@iflow-ai/iflow-cli 0.3.14-beta.2 → 0.3.14-beta.5
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.
- package/bundle/iflow.js +7 -7
- package/package.json +1 -1
package/bundle/iflow.js
CHANGED
|
@@ -384,7 +384,7 @@ ${o.authUrl}
|
|
|
384
384
|
|
|
385
385
|
`);try{(await z1(o.authUrl)).on("error",a=>{throw new Error(`BROWSER_LAUNCH_FAILED: ${N.t("oauth2.errors.browserLaunchFailed")}`)})}catch(s){throw new Error(`BROWSER_LAUNCH_FAILED: ${N.t("oauth2.errors.browserLaunchUnexpectedError",{error:s})}`)}return console.log(N.t("oauth2.messages.waitingForAuthentication")),await o.loginCompletePromise,r}async function LH(t,e){return i0e.has(t)||i0e.set(t,F0o(t,e)),i0e.get(t)}async function Q0o(t){let e=await A_t(),r=process.env.OAUTH_CALLBACK_HOST||"localhost",o=`http://localhost:${e}/oauth2callback`,s=M0o.randomBytes(32).toString("hex"),a="https://iflow.cn/oauth",i=`${encodeURIComponent(o)}&state=${s}`,n=`${a}?loginMethod=phone&type=phone&redirect=${i}&client_id=${Aee}`,c=new Promise((u,f)=>{let d=uOr.createServer(async(p,h)=>{try{p.url.indexOf("/oauth2callback")===-1&&(h.writeHead(y_t,{Location:cOr}),h.end(),f(new Error(N.t("oauth2.errors.unexpectedRequest",{url:p.url}))));let m=new k0o.URL(p.url,"http://localhost:3000").searchParams;if(m.get("error"))h.writeHead(y_t,{Location:cOr}),h.end(),f(new Error(N.t("oauth2.errors.authenticationError",{error:m.get("error")})));else if(m.get("state")!==s)h.end("State mismatch. Possible CSRF attack"),f(new Error(N.t("oauth2.errors.stateMismatch")));else if(m.get("code")){let y=await fetch("https://iflow.cn/oauth/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:`Basic ${Buffer.from(`${Aee}:${o0e}`).toString("base64")}`},body:new URLSearchParams({grant_type:"authorization_code",code:m.get("code"),redirect_uri:o,client_id:Aee,client_secret:o0e}).toString()});if(!y.ok)throw new Error(N.t("oauth2.errors.tokenRequestFailed",{status:y.status,statusText:y.statusText}));let g=await y.json(),A={access_token:g.access_token,refresh_token:g.refresh_token,expiry_date:Date.now()+g.expires_in*1e3,token_type:g.token_type,scope:g.scope};t.setCredentials(A);let{apiKey:v}=await mOr(g.access_token);v&&(A.apiKey=v,await NB.cacheIFlowApiKey(v)),await dOr(A),h.writeHead(y_t,{Location:U0o}),h.end(),u()}else f(new Error(N.t("oauth2.errors.noCodeFound")))}catch(m){f(m)}finally{d.close()}});d.listen(e,r)});return{authUrl:n,loginCompletePromise:c}}function A_t(){return new Promise((t,e)=>{let r=0;try{let o=process.env.OAUTH_CALLBACK_PORT;if(o)return r=parseInt(o,10),isNaN(r)||r<=0||r>65535?e(new Error(`Invalid value for OAUTH_CALLBACK_PORT: "${o}"`)):t(r);let s=fOr.createServer();s.listen(0,()=>{r=s.address().port}),s.on("listening",()=>{s.close(),s.unref()}),s.on("error",a=>e(a)),s.on("close",()=>t(r))}catch(o){e(o)}})}async function q0o(t,e){let r=[r3.getOAuthCredsPath()].filter(o=>!!o);for(let o of r)try{let s=await N4.readFile(o,"utf-8");t.setCredentials(JSON.parse(s));let{token:a}=await t.getAccessToken();if(!a)continue;if(e!==br.LOGIN_WITH_IFLOW)await t.getTokenInfo(a);else{let i=JSON.parse(s);if(i.expiry_date&&Date.now()>i.expiry_date){console.warn(N.t("oauth2.errors.tokenExpired"));continue}}return!0}catch{}return!1}async function dOr(t){let e=r3.getOAuthCredsPath();await N4.mkdir(L0o.dirname(e),{recursive:!0});let r=JSON.stringify(t,null,2);await N4.writeFile(e,r,{mode:384})}function v_t(){i0e.clear()}async function G7(){try{await N4.rm(r3.getOAuthCredsPath(),{force:!0}),await NB.clearCachedIFlowAccount(),await NB.clearCachedIFlowApiKey(),v_t()}catch(t){console.error(N.t("oauth2.messages.failedToClearCredentials"),t)}}async function H0o(t){try{let{token:e}=await t.getAccessToken();if(!e)return;let r=await fetch("https://www.googleapis.com/oauth2/v2/userinfo",{headers:{Authorization:`Bearer ${e}`}});if(!r.ok){console.error(N.t("oauth2.messages.failedToFetchUserInfo",{status:r.status,statusText:r.statusText}));return}let o=await r.json();await NB.cacheIFlowAccount(o.email)}catch(e){console.error(N.t("oauth2.messages.errorRetrievingUserInfo"),e)}}async function V0o(t){try{let{token:e}=await t.getAccessToken();if(!e)return;let{apiKey:r}=await mOr(e);if(r){await NB.cacheIFlowApiKey(r);let o=r3.getOAuthCredsPath(),s=await N4.readFile(o,"utf-8"),a=JSON.parse(s);a.apiKey=r,await N4.writeFile(o,JSON.stringify(a,null,2),{mode:384})}}catch(e){console.error(N.t("oauth2.messages.errorRetrievingIflowUserInfo"),e)}}function pOr(){i0e.clear()}async function hOr(){try{let t=r3.getOAuthCredsPath(),e=await N4.readFile(t,"utf-8");return JSON.parse(e).access_token}catch{return}}async function P4(){let t=NB.getCachedIFlowApiKey();if(t)return t;try{let e=r3.getOAuthCredsPath(),r=await N4.readFile(e,"utf-8");return JSON.parse(r).apiKey}catch{return}}async function mOr(t){let r=[1e3,2e3,3e3];for(let o=0;o<3;o++)try{let s=await fetch(`https://iflow.cn/api/oauth/getUserInfo?accessToken=${t}`,{method:"GET"});if(!s.ok){let i=`Failed to fetch iFlow user info: ${s.status} ${s.statusText}`;if((s.status>=500||s.status===408||s.status===429)&&o<2){console.warn(N.t("oauth2.messages.retryingRequest",{errorMessage:i,delay:r[o],attempt:o+1,maxRetries:3})),await new Promise(n=>setTimeout(n,r[o]));continue}return console.error(i),{}}let a=await s.json();if(a.success&&a.data?.apiKey)return{apiKey:a.data.apiKey};continue}catch(s){if(o===2)return console.error(N.t("oauth2.messages.errorAfterAllRetries"),s),{};console.warn(N.t("oauth2.messages.errorWithRetryInfo",{attempt:o+1,maxRetries:3,error:s,delay:r[o]})),await new Promise(i=>setTimeout(i,r[o]))}return{}}async function b_t(t){let e=await fetch("https://iflow.cn/oauth/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:`Basic ${Buffer.from(`${Aee}:${o0e}`).toString("base64")}`},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:t,client_id:Aee,client_secret:o0e}).toString()});if(!e.ok)throw new Error(N.t("oauth2.errors.tokenRefreshFailed",{status:e.status,statusText:e.statusText}));return await e.json()}async function vee(){try{let t=r3.getOAuthCredsPath(),e=await N4.readFile(t,"utf-8"),r=JSON.parse(e);return!!(r.access_token&&r.refresh_token&&r.expiry_date)}catch{return!1}}async function gOr(t={}){let{throwOnExpired:e=!1,silentMode:r=!1}=t;try{let o=r3.getOAuthCredsPath(),s=await N4.readFile(o,"utf-8"),a=JSON.parse(s),i=1440*60*1e3,n=a.expiry_date-Date.now();if(n<0){let c=N.t("oauth2.errors.iflowLoginExpired");if(e)throw new Error(c);return r||console.log(N.t("oauth2.messages.tokenExpiredClearing")),await G7(),{isValid:!1,isExpired:!0,wasRefreshed:!1,error:c}}if(n>0&&n<i){if(!a.refresh_token){let c=N.t("oauth2.errors.tokenExpiresWarningSoon");if(e)throw new Error(c);return r||console.log(N.t("oauth2.messages.tokenExpiresSoonClearing")),await G7(),{isValid:!1,isExpired:!1,wasRefreshed:!1,error:c}}try{let c=await b_t(a.refresh_token),u={...a,access_token:c.access_token,refresh_token:c.refresh_token,expiry_date:Date.now()+c.expires_in*1e3,token_type:c.token_type,scope:c.scope};return await N4.writeFile(o,JSON.stringify(u,null,2),{mode:384}),r||console.log(N.t("oauth2.messages.tokenRefreshedSuccessfully")),{isValid:!0,isExpired:!1,wasRefreshed:!0}}catch(c){let u="Token refresh failed";if(e)throw c instanceof Error&&(c.message.includes("expired")||c.message.includes("refresh"))?new Error(N.t("oauth2.errors.iflowLoginExpired")):c;return r||console.log(N.t("oauth2.messages.tokenRefreshFailedClearing")),await G7(),{isValid:!1,isExpired:!1,wasRefreshed:!1,error:u}}}return{isValid:!0,isExpired:!1,wasRefreshed:!1}}catch(o){if(e)throw o;return{isValid:!0,isExpired:!1,wasRefreshed:!1}}}async function p9e(){await gOr({throwOnExpired:!0,silentMode:!1})}async function h9e(){return(await gOr({throwOnExpired:!1,silentMode:!0})).isValid}var lOr,NB,Aee,o0e,y_t,U0o,cOr,i0e,PB=j(()=>{"use strict";lOr=we(e0e(),1);V7();U7r();IE();o9e();Xi();NB=new s9e,Aee="10009311001",o0e="4Z3YjXycVsQvyGF1etiNlIBB4RsqSDtW",y_t=301,U0o="https://iflow.cn/oauth/success",cOr="https://iflow.cn/oauth/error",i0e=new Map});var S_t,DE,x_t,__t=j(()=>{"use strict";(function(t){t.DASHER_USER="DASHER_USER",t.INELIGIBLE_ACCOUNT="INELIGIBLE_ACCOUNT",t.NON_USER_ACCOUNT="NON_USER_ACCOUNT",t.RESTRICTED_AGE="RESTRICTED_AGE",t.RESTRICTED_NETWORK="RESTRICTED_NETWORK",t.UNKNOWN="UNKNOWN",t.UNKNOWN_LOCATION="UNKNOWN_LOCATION",t.UNSUPPORTED_LOCATION="UNSUPPORTED_LOCATION"})(S_t||(S_t={}));(function(t){t.FREE="free-tier",t.LEGACY="legacy-tier",t.STANDARD="standard-tier"})(DE||(DE={}));(function(t){t.Default="DEFAULT",t.Notice="NOTICE",t.Warning="WARNING",t.Error="ERROR"})(x_t||(x_t={}))});function aRr(t){return{text:t}}function cRr(t){return typeof t=="object"&&t!==null?"fileData"in t||"text"in t||"functionCall"in t||"functionResponse"in t||"inlineData"in t||"videoMetadata"in t||"codeExecutionResult"in t||"executableCode"in t:!1}function j0o(t){let e=[];if(typeof t=="string")e.push(aRr(t));else if(cRr(t))e.push(t);else if(Array.isArray(t)){if(t.length===0)throw new Error("partOrString cannot be an empty array");for(let r of t)if(typeof r=="string")e.push(aRr(r));else if(cRr(r))e.push(r);else throw new Error("element in PartUnion must be a Part object or string")}else throw new Error("partOrString must be a Part object, string, or array");return e}function C_t(t){return{role:"user",parts:j0o(t)}}function $0o(t,e={}){let r=t,o={name:r.name,description:r.description,parametersJsonSchema:r.inputSchema};return r.outputSchema&&(o.responseJsonSchema=r.outputSchema),e.behavior&&(o.behavior=e.behavior),{functionDeclarations:[o]}}function W0o(t,e={}){let r=[],o=new Set;for(let s of t){let a=s.name;if(o.has(a))throw new Error(`Duplicate function name ${a} found in MCP tools. Please ensure function names are unique.`);o.add(a);let i=$0o(s,e);i.functionDeclarations&&r.push(...i.functionDeclarations)}return{functionDeclarations:r}}function uRr(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function s0e(t){return this instanceof s0e?(this.v=t,this):new s0e(t)}function z0o(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r.apply(t,e||[]),s,a=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),n("next"),n("throw"),n("return",i),s[Symbol.asyncIterator]=function(){return this},s;function i(h){return function(m){return Promise.resolve(m).then(h,d)}}function n(h,m){o[h]&&(s[h]=function(y){return new Promise(function(g,A){a.push([h,y,g,A])>1||c(h,y)})},m&&(s[h]=m(s[h])))}function c(h,m){try{u(o[h](m))}catch(y){p(a[0][3],y)}}function u(h){h.value instanceof s0e?Promise.resolve(h.value.v).then(f,d):p(a[0][2],h)}function f(h){c("next",h)}function d(h){c("throw",h)}function p(h,m){h(m),a.shift(),a.length&&c(a[0][0],a[0][1])}}function K0o(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof uRr=="function"?uRr(t):t[Symbol.iterator](),r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r);function o(a){r[a]=t[a]&&function(i){return new Promise(function(n,c){i=t[a](i),s(n,c,i.done,i.value)})}}function s(a,i,n,c){Promise.resolve(c).then(function(u){a({value:u,done:n})},i)}}function X0o(t,e=100){return z0o(this,arguments,function*(){let o,s=0;for(;s<e;){let a=yield s0e(t.listTools({cursor:o}));for(let i of a.tools)yield yield s0e(i),s++;if(!a.nextCursor)break;o=a.nextCursor}})}function Z0o(t){return t!==null&&typeof t=="object"&&"listTools"in t&&typeof t.listTools=="function"}function fRr(...t){if(J0o=!0,t.length===0)throw new Error("No MCP clients provided");let e=t[t.length-1];return Z0o(e)?m9e.create(t,{}):m9e.create(t.slice(0,t.length-1),e)}var G0o,yOr,AOr,Or,vOr,bOr,EOr,SOr,xOr,_Or,COr,BB,TOr,wOr,IOr,DOr,OOr,ROr,NOr,POr,BOr,kOr,MOr,LOr,UOr,FOr,QOr,qOr,HOr,VOr,GOr,jOr,$Or,WOr,zOr,KOr,YOr,JOr,XOr,ZOr,eRr,tRr,rRr,nRr,iRr,oRr,sRr,bee,lRr,Y0o,fMc,J0o,m9e,dMc,Su=j(()=>{G0o=we(e0e(),1);AZ();(function(t){t.OUTCOME_UNSPECIFIED="OUTCOME_UNSPECIFIED",t.OUTCOME_OK="OUTCOME_OK",t.OUTCOME_FAILED="OUTCOME_FAILED",t.OUTCOME_DEADLINE_EXCEEDED="OUTCOME_DEADLINE_EXCEEDED"})(yOr||(yOr={}));(function(t){t.LANGUAGE_UNSPECIFIED="LANGUAGE_UNSPECIFIED",t.PYTHON="PYTHON"})(AOr||(AOr={}));(function(t){t.TYPE_UNSPECIFIED="TYPE_UNSPECIFIED",t.STRING="STRING",t.NUMBER="NUMBER",t.INTEGER="INTEGER",t.BOOLEAN="BOOLEAN",t.ARRAY="ARRAY",t.OBJECT="OBJECT",t.NULL="NULL"})(Or||(Or={}));(function(t){t.HARM_CATEGORY_UNSPECIFIED="HARM_CATEGORY_UNSPECIFIED",t.HARM_CATEGORY_HATE_SPEECH="HARM_CATEGORY_HATE_SPEECH",t.HARM_CATEGORY_DANGEROUS_CONTENT="HARM_CATEGORY_DANGEROUS_CONTENT",t.HARM_CATEGORY_HARASSMENT="HARM_CATEGORY_HARASSMENT",t.HARM_CATEGORY_SEXUALLY_EXPLICIT="HARM_CATEGORY_SEXUALLY_EXPLICIT",t.HARM_CATEGORY_CIVIC_INTEGRITY="HARM_CATEGORY_CIVIC_INTEGRITY",t.HARM_CATEGORY_IMAGE_HATE="HARM_CATEGORY_IMAGE_HATE",t.HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT="HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT",t.HARM_CATEGORY_IMAGE_HARASSMENT="HARM_CATEGORY_IMAGE_HARASSMENT",t.HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT="HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT"})(vOr||(vOr={}));(function(t){t.HARM_BLOCK_METHOD_UNSPECIFIED="HARM_BLOCK_METHOD_UNSPECIFIED",t.SEVERITY="SEVERITY",t.PROBABILITY="PROBABILITY"})(bOr||(bOr={}));(function(t){t.HARM_BLOCK_THRESHOLD_UNSPECIFIED="HARM_BLOCK_THRESHOLD_UNSPECIFIED",t.BLOCK_LOW_AND_ABOVE="BLOCK_LOW_AND_ABOVE",t.BLOCK_MEDIUM_AND_ABOVE="BLOCK_MEDIUM_AND_ABOVE",t.BLOCK_ONLY_HIGH="BLOCK_ONLY_HIGH",t.BLOCK_NONE="BLOCK_NONE",t.OFF="OFF"})(EOr||(EOr={}));(function(t){t.MODE_UNSPECIFIED="MODE_UNSPECIFIED",t.MODE_DYNAMIC="MODE_DYNAMIC"})(SOr||(SOr={}));(function(t){t.AUTH_TYPE_UNSPECIFIED="AUTH_TYPE_UNSPECIFIED",t.NO_AUTH="NO_AUTH",t.API_KEY_AUTH="API_KEY_AUTH",t.HTTP_BASIC_AUTH="HTTP_BASIC_AUTH",t.GOOGLE_SERVICE_ACCOUNT_AUTH="GOOGLE_SERVICE_ACCOUNT_AUTH",t.OAUTH="OAUTH",t.OIDC_AUTH="OIDC_AUTH"})(xOr||(xOr={}));(function(t){t.API_SPEC_UNSPECIFIED="API_SPEC_UNSPECIFIED",t.SIMPLE_SEARCH="SIMPLE_SEARCH",t.ELASTIC_SEARCH="ELASTIC_SEARCH"})(_Or||(_Or={}));(function(t){t.URL_RETRIEVAL_STATUS_UNSPECIFIED="URL_RETRIEVAL_STATUS_UNSPECIFIED",t.URL_RETRIEVAL_STATUS_SUCCESS="URL_RETRIEVAL_STATUS_SUCCESS",t.URL_RETRIEVAL_STATUS_ERROR="URL_RETRIEVAL_STATUS_ERROR",t.URL_RETRIEVAL_STATUS_PAYWALL="URL_RETRIEVAL_STATUS_PAYWALL",t.URL_RETRIEVAL_STATUS_UNSAFE="URL_RETRIEVAL_STATUS_UNSAFE"})(COr||(COr={}));(function(t){t.FINISH_REASON_UNSPECIFIED="FINISH_REASON_UNSPECIFIED",t.STOP="STOP",t.MAX_TOKENS="MAX_TOKENS",t.SAFETY="SAFETY",t.RECITATION="RECITATION",t.LANGUAGE="LANGUAGE",t.OTHER="OTHER",t.BLOCKLIST="BLOCKLIST",t.PROHIBITED_CONTENT="PROHIBITED_CONTENT",t.SPII="SPII",t.MALFORMED_FUNCTION_CALL="MALFORMED_FUNCTION_CALL",t.IMAGE_SAFETY="IMAGE_SAFETY",t.UNEXPECTED_TOOL_CALL="UNEXPECTED_TOOL_CALL"})(BB||(BB={}));(function(t){t.HARM_PROBABILITY_UNSPECIFIED="HARM_PROBABILITY_UNSPECIFIED",t.NEGLIGIBLE="NEGLIGIBLE",t.LOW="LOW",t.MEDIUM="MEDIUM",t.HIGH="HIGH"})(TOr||(TOr={}));(function(t){t.HARM_SEVERITY_UNSPECIFIED="HARM_SEVERITY_UNSPECIFIED",t.HARM_SEVERITY_NEGLIGIBLE="HARM_SEVERITY_NEGLIGIBLE",t.HARM_SEVERITY_LOW="HARM_SEVERITY_LOW",t.HARM_SEVERITY_MEDIUM="HARM_SEVERITY_MEDIUM",t.HARM_SEVERITY_HIGH="HARM_SEVERITY_HIGH"})(wOr||(wOr={}));(function(t){t.BLOCKED_REASON_UNSPECIFIED="BLOCKED_REASON_UNSPECIFIED",t.SAFETY="SAFETY",t.OTHER="OTHER",t.BLOCKLIST="BLOCKLIST",t.PROHIBITED_CONTENT="PROHIBITED_CONTENT",t.IMAGE_SAFETY="IMAGE_SAFETY"})(IOr||(IOr={}));(function(t){t.TRAFFIC_TYPE_UNSPECIFIED="TRAFFIC_TYPE_UNSPECIFIED",t.ON_DEMAND="ON_DEMAND",t.PROVISIONED_THROUGHPUT="PROVISIONED_THROUGHPUT"})(DOr||(DOr={}));(function(t){t.MODALITY_UNSPECIFIED="MODALITY_UNSPECIFIED",t.TEXT="TEXT",t.IMAGE="IMAGE",t.AUDIO="AUDIO"})(OOr||(OOr={}));(function(t){t.MEDIA_RESOLUTION_UNSPECIFIED="MEDIA_RESOLUTION_UNSPECIFIED",t.MEDIA_RESOLUTION_LOW="MEDIA_RESOLUTION_LOW",t.MEDIA_RESOLUTION_MEDIUM="MEDIA_RESOLUTION_MEDIUM",t.MEDIA_RESOLUTION_HIGH="MEDIA_RESOLUTION_HIGH"})(ROr||(ROr={}));(function(t){t.JOB_STATE_UNSPECIFIED="JOB_STATE_UNSPECIFIED",t.JOB_STATE_QUEUED="JOB_STATE_QUEUED",t.JOB_STATE_PENDING="JOB_STATE_PENDING",t.JOB_STATE_RUNNING="JOB_STATE_RUNNING",t.JOB_STATE_SUCCEEDED="JOB_STATE_SUCCEEDED",t.JOB_STATE_FAILED="JOB_STATE_FAILED",t.JOB_STATE_CANCELLING="JOB_STATE_CANCELLING",t.JOB_STATE_CANCELLED="JOB_STATE_CANCELLED",t.JOB_STATE_PAUSED="JOB_STATE_PAUSED",t.JOB_STATE_EXPIRED="JOB_STATE_EXPIRED",t.JOB_STATE_UPDATING="JOB_STATE_UPDATING",t.JOB_STATE_PARTIALLY_SUCCEEDED="JOB_STATE_PARTIALLY_SUCCEEDED"})(NOr||(NOr={}));(function(t){t.TUNING_MODE_UNSPECIFIED="TUNING_MODE_UNSPECIFIED",t.TUNING_MODE_FULL="TUNING_MODE_FULL",t.TUNING_MODE_PEFT_ADAPTER="TUNING_MODE_PEFT_ADAPTER"})(POr||(POr={}));(function(t){t.ADAPTER_SIZE_UNSPECIFIED="ADAPTER_SIZE_UNSPECIFIED",t.ADAPTER_SIZE_ONE="ADAPTER_SIZE_ONE",t.ADAPTER_SIZE_TWO="ADAPTER_SIZE_TWO",t.ADAPTER_SIZE_FOUR="ADAPTER_SIZE_FOUR",t.ADAPTER_SIZE_EIGHT="ADAPTER_SIZE_EIGHT",t.ADAPTER_SIZE_SIXTEEN="ADAPTER_SIZE_SIXTEEN",t.ADAPTER_SIZE_THIRTY_TWO="ADAPTER_SIZE_THIRTY_TWO"})(BOr||(BOr={}));(function(t){t.FEATURE_SELECTION_PREFERENCE_UNSPECIFIED="FEATURE_SELECTION_PREFERENCE_UNSPECIFIED",t.PRIORITIZE_QUALITY="PRIORITIZE_QUALITY",t.BALANCED="BALANCED",t.PRIORITIZE_COST="PRIORITIZE_COST"})(kOr||(kOr={}));(function(t){t.UNSPECIFIED="UNSPECIFIED",t.BLOCKING="BLOCKING",t.NON_BLOCKING="NON_BLOCKING"})(MOr||(MOr={}));(function(t){t.MODE_UNSPECIFIED="MODE_UNSPECIFIED",t.MODE_DYNAMIC="MODE_DYNAMIC"})(LOr||(LOr={}));(function(t){t.ENVIRONMENT_UNSPECIFIED="ENVIRONMENT_UNSPECIFIED",t.ENVIRONMENT_BROWSER="ENVIRONMENT_BROWSER"})(UOr||(UOr={}));(function(t){t.MODE_UNSPECIFIED="MODE_UNSPECIFIED",t.AUTO="AUTO",t.ANY="ANY",t.NONE="NONE",t.VALIDATED="VALIDATED"})(FOr||(FOr={}));(function(t){t.BLOCK_LOW_AND_ABOVE="BLOCK_LOW_AND_ABOVE",t.BLOCK_MEDIUM_AND_ABOVE="BLOCK_MEDIUM_AND_ABOVE",t.BLOCK_ONLY_HIGH="BLOCK_ONLY_HIGH",t.BLOCK_NONE="BLOCK_NONE"})(QOr||(QOr={}));(function(t){t.DONT_ALLOW="DONT_ALLOW",t.ALLOW_ADULT="ALLOW_ADULT",t.ALLOW_ALL="ALLOW_ALL"})(qOr||(qOr={}));(function(t){t.auto="auto",t.en="en",t.ja="ja",t.ko="ko",t.hi="hi",t.zh="zh",t.pt="pt",t.es="es"})(HOr||(HOr={}));(function(t){t.MASK_MODE_DEFAULT="MASK_MODE_DEFAULT",t.MASK_MODE_USER_PROVIDED="MASK_MODE_USER_PROVIDED",t.MASK_MODE_BACKGROUND="MASK_MODE_BACKGROUND",t.MASK_MODE_FOREGROUND="MASK_MODE_FOREGROUND",t.MASK_MODE_SEMANTIC="MASK_MODE_SEMANTIC"})(VOr||(VOr={}));(function(t){t.CONTROL_TYPE_DEFAULT="CONTROL_TYPE_DEFAULT",t.CONTROL_TYPE_CANNY="CONTROL_TYPE_CANNY",t.CONTROL_TYPE_SCRIBBLE="CONTROL_TYPE_SCRIBBLE",t.CONTROL_TYPE_FACE_MESH="CONTROL_TYPE_FACE_MESH"})(GOr||(GOr={}));(function(t){t.SUBJECT_TYPE_DEFAULT="SUBJECT_TYPE_DEFAULT",t.SUBJECT_TYPE_PERSON="SUBJECT_TYPE_PERSON",t.SUBJECT_TYPE_ANIMAL="SUBJECT_TYPE_ANIMAL",t.SUBJECT_TYPE_PRODUCT="SUBJECT_TYPE_PRODUCT"})(jOr||(jOr={}));(function(t){t.EDIT_MODE_DEFAULT="EDIT_MODE_DEFAULT",t.EDIT_MODE_INPAINT_REMOVAL="EDIT_MODE_INPAINT_REMOVAL",t.EDIT_MODE_INPAINT_INSERTION="EDIT_MODE_INPAINT_INSERTION",t.EDIT_MODE_OUTPAINT="EDIT_MODE_OUTPAINT",t.EDIT_MODE_CONTROLLED_EDITING="EDIT_MODE_CONTROLLED_EDITING",t.EDIT_MODE_STYLE="EDIT_MODE_STYLE",t.EDIT_MODE_BGSWAP="EDIT_MODE_BGSWAP",t.EDIT_MODE_PRODUCT_IMAGE="EDIT_MODE_PRODUCT_IMAGE"})($Or||($Or={}));(function(t){t.FOREGROUND="FOREGROUND",t.BACKGROUND="BACKGROUND",t.PROMPT="PROMPT",t.SEMANTIC="SEMANTIC",t.INTERACTIVE="INTERACTIVE"})(WOr||(WOr={}));(function(t){t.ASSET="ASSET",t.STYLE="STYLE"})(zOr||(zOr={}));(function(t){t.OPTIMIZED="OPTIMIZED",t.LOSSLESS="LOSSLESS"})(KOr||(KOr={}));(function(t){t.STATE_UNSPECIFIED="STATE_UNSPECIFIED",t.PROCESSING="PROCESSING",t.ACTIVE="ACTIVE",t.FAILED="FAILED"})(YOr||(YOr={}));(function(t){t.SOURCE_UNSPECIFIED="SOURCE_UNSPECIFIED",t.UPLOADED="UPLOADED",t.GENERATED="GENERATED"})(JOr||(JOr={}));(function(t){t.MODALITY_UNSPECIFIED="MODALITY_UNSPECIFIED",t.TEXT="TEXT",t.IMAGE="IMAGE",t.VIDEO="VIDEO",t.AUDIO="AUDIO",t.DOCUMENT="DOCUMENT"})(XOr||(XOr={}));(function(t){t.START_SENSITIVITY_UNSPECIFIED="START_SENSITIVITY_UNSPECIFIED",t.START_SENSITIVITY_HIGH="START_SENSITIVITY_HIGH",t.START_SENSITIVITY_LOW="START_SENSITIVITY_LOW"})(ZOr||(ZOr={}));(function(t){t.END_SENSITIVITY_UNSPECIFIED="END_SENSITIVITY_UNSPECIFIED",t.END_SENSITIVITY_HIGH="END_SENSITIVITY_HIGH",t.END_SENSITIVITY_LOW="END_SENSITIVITY_LOW"})(eRr||(eRr={}));(function(t){t.ACTIVITY_HANDLING_UNSPECIFIED="ACTIVITY_HANDLING_UNSPECIFIED",t.START_OF_ACTIVITY_INTERRUPTS="START_OF_ACTIVITY_INTERRUPTS",t.NO_INTERRUPTION="NO_INTERRUPTION"})(tRr||(tRr={}));(function(t){t.TURN_COVERAGE_UNSPECIFIED="TURN_COVERAGE_UNSPECIFIED",t.TURN_INCLUDES_ONLY_ACTIVITY="TURN_INCLUDES_ONLY_ACTIVITY",t.TURN_INCLUDES_ALL_INPUT="TURN_INCLUDES_ALL_INPUT"})(rRr||(rRr={}));(function(t){t.SCHEDULING_UNSPECIFIED="SCHEDULING_UNSPECIFIED",t.SILENT="SILENT",t.WHEN_IDLE="WHEN_IDLE",t.INTERRUPT="INTERRUPT"})(nRr||(nRr={}));(function(t){t.SCALE_UNSPECIFIED="SCALE_UNSPECIFIED",t.C_MAJOR_A_MINOR="C_MAJOR_A_MINOR",t.D_FLAT_MAJOR_B_FLAT_MINOR="D_FLAT_MAJOR_B_FLAT_MINOR",t.D_MAJOR_B_MINOR="D_MAJOR_B_MINOR",t.E_FLAT_MAJOR_C_MINOR="E_FLAT_MAJOR_C_MINOR",t.E_MAJOR_D_FLAT_MINOR="E_MAJOR_D_FLAT_MINOR",t.F_MAJOR_D_MINOR="F_MAJOR_D_MINOR",t.G_FLAT_MAJOR_E_FLAT_MINOR="G_FLAT_MAJOR_E_FLAT_MINOR",t.G_MAJOR_E_MINOR="G_MAJOR_E_MINOR",t.A_FLAT_MAJOR_F_MINOR="A_FLAT_MAJOR_F_MINOR",t.A_MAJOR_G_FLAT_MINOR="A_MAJOR_G_FLAT_MINOR",t.B_FLAT_MAJOR_G_MINOR="B_FLAT_MAJOR_G_MINOR",t.B_MAJOR_A_FLAT_MINOR="B_MAJOR_A_FLAT_MINOR"})(iRr||(iRr={}));(function(t){t.MUSIC_GENERATION_MODE_UNSPECIFIED="MUSIC_GENERATION_MODE_UNSPECIFIED",t.QUALITY="QUALITY",t.DIVERSITY="DIVERSITY",t.VOCALIZATION="VOCALIZATION"})(oRr||(oRr={}));(function(t){t.PLAYBACK_CONTROL_UNSPECIFIED="PLAYBACK_CONTROL_UNSPECIFIED",t.PLAY="PLAY",t.PAUSE="PAUSE",t.STOP="STOP",t.RESET_CONTEXT="RESET_CONTEXT"})(sRr||(sRr={}));bee=class{get text(){var e,r,o,s,a,i,n,c;if(((s=(o=(r=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||r===void 0?void 0:r.content)===null||o===void 0?void 0:o.parts)===null||s===void 0?void 0:s.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning text from the first one.");let u="",f=!1,d=[];for(let p of(c=(n=(i=(a=this.candidates)===null||a===void 0?void 0:a[0])===null||i===void 0?void 0:i.content)===null||n===void 0?void 0:n.parts)!==null&&c!==void 0?c:[]){for(let[h,m]of Object.entries(p))h!=="text"&&h!=="thought"&&(m!==null||m!==void 0)&&d.push(h);if(typeof p.text=="string"){if(typeof p.thought=="boolean"&&p.thought)continue;f=!0,u+=p.text}}return d.length>0&&console.warn(`there are non-text parts ${d} in the response, returning concatenation of all text parts. Please refer to the non text parts for a full response from model.`),f?u:void 0}get data(){var e,r,o,s,a,i,n,c;if(((s=(o=(r=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||r===void 0?void 0:r.content)===null||o===void 0?void 0:o.parts)===null||s===void 0?void 0:s.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning data from the first one.");let u="",f=[];for(let d of(c=(n=(i=(a=this.candidates)===null||a===void 0?void 0:a[0])===null||i===void 0?void 0:i.content)===null||n===void 0?void 0:n.parts)!==null&&c!==void 0?c:[]){for(let[p,h]of Object.entries(d))p!=="inlineData"&&(h!==null||h!==void 0)&&f.push(p);d.inlineData&&typeof d.inlineData.data=="string"&&(u+=atob(d.inlineData.data))}return f.length>0&&console.warn(`there are non-data parts ${f} in the response, returning concatenation of all data parts. Please refer to the non data parts for a full response from model.`),u.length>0?btoa(u):void 0}get functionCalls(){var e,r,o,s,a,i,n,c;if(((s=(o=(r=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||r===void 0?void 0:r.content)===null||o===void 0?void 0:o.parts)===null||s===void 0?void 0:s.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning function calls from the first one.");let u=(c=(n=(i=(a=this.candidates)===null||a===void 0?void 0:a[0])===null||i===void 0?void 0:i.content)===null||n===void 0?void 0:n.parts)===null||c===void 0?void 0:c.filter(f=>f.functionCall).map(f=>f.functionCall).filter(f=>f!==void 0);if(u?.length!==0)return u}get executableCode(){var e,r,o,s,a,i,n,c,u;if(((s=(o=(r=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||r===void 0?void 0:r.content)===null||o===void 0?void 0:o.parts)===null||s===void 0?void 0:s.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning executable code from the first one.");let f=(c=(n=(i=(a=this.candidates)===null||a===void 0?void 0:a[0])===null||i===void 0?void 0:i.content)===null||n===void 0?void 0:n.parts)===null||c===void 0?void 0:c.filter(d=>d.executableCode).map(d=>d.executableCode).filter(d=>d!==void 0);if(f?.length!==0)return(u=f?.[0])===null||u===void 0?void 0:u.code}get codeExecutionResult(){var e,r,o,s,a,i,n,c,u;if(((s=(o=(r=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||r===void 0?void 0:r.content)===null||o===void 0?void 0:o.parts)===null||s===void 0?void 0:s.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning code execution result from the first one.");let f=(c=(n=(i=(a=this.candidates)===null||a===void 0?void 0:a[0])===null||i===void 0?void 0:i.content)===null||n===void 0?void 0:n.parts)===null||c===void 0?void 0:c.filter(d=>d.codeExecutionResult).map(d=>d.codeExecutionResult).filter(d=>d!==void 0);if(f?.length!==0)return(u=f?.[0])===null||u===void 0?void 0:u.output}};(function(t){t.PAGED_ITEM_BATCH_JOBS="batchJobs",t.PAGED_ITEM_MODELS="models",t.PAGED_ITEM_TUNING_JOBS="tuningJobs",t.PAGED_ITEM_FILES="files",t.PAGED_ITEM_CACHED_CONTENTS="cachedContents"})(lRr||(lRr={}));Y0o="1.16.0",fMc=`google-genai-sdk/${Y0o}`;J0o=!1;m9e=class t{constructor(e=[],r){this.mcpTools=[],this.functionNameToMcpClient={},this.mcpClients=e,this.config=r}static create(e,r){return new t(e,r)}async initialize(){var e,r,o,s;if(this.mcpTools.length>0)return;let a={},i=[];for(let f of this.mcpClients)try{for(var n=!0,c=(r=void 0,K0o(X0o(f))),u;u=await c.next(),e=u.done,!e;n=!0){s=u.value,n=!1;let d=s;i.push(d);let p=d.name;if(a[p])throw new Error(`Duplicate function name ${p} found in MCP tools. Please ensure function names are unique.`);a[p]=f}}catch(d){r={error:d}}finally{try{!n&&!e&&(o=c.return)&&await o.call(c)}finally{if(r)throw r.error}}this.mcpTools=i,this.functionNameToMcpClient=a}async tool(){return await this.initialize(),W0o(this.mcpTools,this.config)}async callTool(e){await this.initialize();let r=[];for(let o of e)if(o.name in this.functionNameToMcpClient){let s=this.functionNameToMcpClient[o.name],a;this.config.timeout&&(a={timeout:this.config.timeout});let i=await s.callTool({name:o.name,arguments:o.args},void 0,a);r.push({functionResponse:{name:o.name,response:i.isError?{error:i}:i}})}return r}};dMc=1024*1024*8;});function dRr(t){return{request:{model:"models/"+t.model,contents:hRr(t.contents)}}}function pRr(t){return{totalTokens:t.totalTokens}}function w_t(t,e,r,o){return{model:t.model,project:r,user_prompt_id:e,request:e2o(t,o)}}function I_t(t){let e=t.response,r=new bee;return r.candidates=e.candidates,r.automaticFunctionCallingHistory=e.automaticFunctionCallingHistory,r.promptFeedback=e.promptFeedback,r.usageMetadata=e.usageMetadata,r}function e2o(t,e){return{contents:hRr(t.contents),systemInstruction:t2o(t.config?.systemInstruction),cachedContent:t.config?.cachedContent,tools:t.config?.tools,toolConfig:t.config?.toolConfig,labels:t.config?.labels,safetySettings:t.config?.safetySettings,generationConfig:i2o(t.config),session_id:e}}function hRr(t){return Array.isArray(t)?t.map(T_t):[T_t(t)]}function t2o(t){if(t)return T_t(t)}function T_t(t){return Array.isArray(t)?{role:"user",parts:r2o(t)}:typeof t=="string"?{role:"user",parts:[{text:t}]}:"parts"in t?t:{role:"user",parts:[t]}}function r2o(t){return t.map(n2o)}function n2o(t){return typeof t=="string"?{text:t}:t}function i2o(t){if(t)return{temperature:t.temperature,topP:t.topP,topK:t.topK,candidateCount:t.candidateCount,maxOutputTokens:t.maxOutputTokens,stopSequences:t.stopSequences,responseLogprobs:t.responseLogprobs,logprobs:t.logprobs,presencePenalty:t.presencePenalty,frequencyPenalty:t.frequencyPenalty,seed:t.seed,responseMimeType:t.responseMimeType,responseSchema:t.responseSchema,routingConfig:t.routingConfig,modelSelectionConfig:t.modelSelectionConfig,responseModalities:t.responseModalities,mediaResolution:t.mediaResolution,speechConfig:t.speechConfig,audioTimestamp:t.audioTimestamp,thinkingConfig:t.thinkingConfig}}var mRr=j(()=>{"use strict";Su();});import*as gRr from"readline";var yRr,ARr,j7,g9e=j(()=>{"use strict";mRr();yRr="https://cloudcode-pa.googleapis.com",ARr="v1internal",j7=class{client;projectId;httpOptions;sessionId;userTier;constructor(e,r,o={},s,a){this.client=e,this.projectId=r,this.httpOptions=o,this.sessionId=s,this.userTier=a}async generateContentStream(e,r){let o=await this.requestStreamingPost("streamGenerateContent",w_t(e,r,this.projectId,this.sessionId),e.config?.abortSignal);return(async function*(){for await(let s of o)yield I_t(s)})()}async generateContent(e,r){let o=await this.requestPost("generateContent",w_t(e,r,this.projectId,this.sessionId),e.config?.abortSignal);return I_t(o)}async onboardUser(e){return await this.requestPost("onboardUser",e)}async loadCodeAssist(e){return await this.requestPost("loadCodeAssist",e)}async getCodeAssistGlobalUserSetting(){return await this.requestGet("getCodeAssistGlobalUserSetting")}async setCodeAssistGlobalUserSetting(e){return await this.requestPost("setCodeAssistGlobalUserSetting",e)}async countTokens(e,r){let o=await this.requestPost("countTokens",dRr(e));return pRr(o)}async embedContent(e){throw Error()}async requestPost(e,r,o){return(await this.client.request({url:this.getMethodUrl(e),method:"POST",headers:{"Content-Type":"application/json",...this.httpOptions.headers},responseType:"json",body:JSON.stringify(r),signal:o})).data}async requestGet(e,r){return(await this.client.request({url:this.getMethodUrl(e),method:"GET",headers:{"Content-Type":"application/json",...this.httpOptions.headers},responseType:"json",signal:r})).data}async requestStreamingPost(e,r,o){let s=await this.client.request({url:this.getMethodUrl(e),method:"POST",params:{alt:"sse"},headers:{"Content-Type":"application/json",...this.httpOptions.headers},responseType:"stream",body:JSON.stringify(r),signal:o});return(async function*(){let a=gRr.createInterface({input:s.data,crlfDelay:1/0}),i=[];for await(let n of a)if(n===""){if(i.length===0)continue;yield JSON.parse(i.join(`
|
|
386
386
|
`)),i=[]}else if(n.startsWith("data: "))i.push(n.slice(6).trim());else throw new Error(`Unexpected line format in response: ${n}`)})()}getMethodUrl(e){return`${process.env.CODE_ASSIST_ENDPOINT??yRr}/${ARr}:${e}`}}});async function vRr(t){let e=process.env.GOOGLE_CLOUD_PROJECT||void 0,r=new j7(t,e,{},"",void 0),o={ideType:"IDE_UNSPECIFIED",platform:"PLATFORM_UNSPECIFIED",pluginType:"IFLOW",duetProject:e},s=await r.loadCodeAssist({cloudaicompanionProject:e,metadata:o});!e&&s.cloudaicompanionProject&&(e=s.cloudaicompanionProject);let a=o2o(s);if(a.userDefinedCloudaicompanionProject&&!e)throw new D_t;let i={tierId:a.id,cloudaicompanionProject:e,metadata:o},n=await r.onboardUser(i);for(;!n.done;)await new Promise(c=>setTimeout(c,5e3)),n=await r.onboardUser(i);return{projectId:n.response?.cloudaicompanionProject?.id||"",userTier:a.id}}function o2o(t){if(t.currentTier)return t.currentTier;for(let e of t.allowedTiers||[])if(e.isDefault)return e;return{name:"",description:"",id:DE.LEGACY,userDefinedCloudaicompanionProject:!0}}var D_t,bRr=j(()=>{"use strict";__t();g9e();D_t=class extends Error{constructor(){super("This account requires setting the GOOGLE_CLOUD_PROJECT env var. See https://goo.gle/iflow-cli-auth-docs#workspace-gca")}}});function s2o(t){Eee={...Eee,...t}}function a2o(){return Eee}async function ERr(t){try{let{event_name:e,payload:r}=t,o={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)},s=await fetch(`${Eee.endpoint}/${e}`,o);return s.ok?{success:!0}:{success:!1,error:`upload failed: ${s.status} ${s.statusText}`}}catch(e){return{success:!1,error:`Failed to upload data to ${Eee.endpoint}: ${e instanceof Error?e.message:String(e)}`}}}async function a0e(t,e){return c2o.record(t,e)}var Eee,y9e,c2o,O_t=j(()=>{"use strict";Eee={endpoint:"https://gm.mmstat.com"};y9e=class{async record(e,r){return await ERr({event_name:e,payload:r})}},c2o=new y9e});import{randomUUID as l2o}from"crypto";function u2o(){function t(n,c){return Math.floor(Math.random()*(c-n+1))+n}var e,r,o,s=[{first:[1,9],second:[0,255],third:[0,255],fourth:[1,254]},{first:[11,126],second:[0,255],third:[0,255],fourth:[1,254]},{first:[128,169],second:[0,253],third:[0,255],fourth:[1,254]},{first:[169,169],second:[255,255],third:[0,255],fourth:[1,254]},{first:[170,172],second:[0,15],third:[0,255],fourth:[1,254]},{first:[172,172],second:[32,255],third:[0,255],fourth:[1,254]},{first:[173,192],second:[0,167],third:[0,255],fourth:[1,254]},{first:[192,192],second:[169,255],third:[0,255],fourth:[1,254]},{first:[193,223],second:[0,255],third:[0,255],fourth:[1,254]}],a=s[Math.floor(Math.random()*s.length)],i=t(a.first[0],a.first[1]);return e=i===169?a.second[0]===255?255:t(a.second[0],a.second[1]):i===172?a.second[0]===32?t(32,255):t(a.second[0],a.second[1]):i===192&&a.second[0]===169?t(169,255):t(a.second[0],a.second[1]),r=t(a.third[0],a.third[1]),o=t(a.fourth[0],a.fourth[1]),[i,e,r,o].join(".")}function f2o(t){for(var e=t.split("."),r="",o=0;o<e.length;o++){var s=e[o],a=parseInt(s).toString(16);r+=a.length===1?"0"+a:a}return r}function d2o(){return new Date().getTime()}function p2o(){var t=9e3,e=1e3,r=e,o=u2o(),s=d2o(),a=f2o(o),i="d",n="51fc",c=a+s+r+i+n;return r++,r>t&&(r=e),c}function h2o(t){for(var e=new Array(t),r="0123456789abcdef",o=0;o<t;o++)e[o]===void 0&&(e[o]=r[Math.floor(Math.random()*r.length)]);return e.join("")}function A9e(){return p2o()+"00"}function See(){return h2o(16)}function v9e(){return l2o()}function SRr(t,e){return`00-${t}-${e}-00`}var R_t=j(()=>{"use strict"});var b9e,UH,E9e=j(()=>{"use strict";O_t();R_t();b9e=class{currentSession=null;async startSession(e,r,o,s){let{model:a,tool:i}=s||{},n="iflow",c="cli",u=A9e(),f=See(),d=`${n}.${c}.${o}.${u}`,p=SRr(u,f),h=Date.now();this.currentSession={traceId:u,parent_observation_id:f,conversationId:o,sessionId:e,userId:r,pid:n,sceneId:c,sam:d,traceparent:p,startTime:h,model:a,tool:i};let m={gmkey:"AI",gokey:this.stringifyGokey({pid:n,sam:d,trace_id:u,observation_id:f,model:a,tool:i,sessionId:e,user_id:r})};return await a0e("/aitrack.lifecycle.run_started",m),this.currentSession}async endSession(){if(!this.currentSession)return;let{pid:e,sam:r,traceId:o,startTime:s,parent_observation_id:a,model:i,tool:n,sessionId:c,userId:u}=this.currentSession,f=Date.now()-s,d=See(),p={gmkey:"AI",gokey:this.stringifyGokey({pid:e,sam:r,trace_id:o,observation_id:d,parent_observation_id:a,duration:f,model:i,tool:n,sessionId:c,user_id:u})};await a0e("/aitrack.lifecycle.run_finished",p),this.currentSession=null}async recordError(e){if(!this.currentSession)throw new Error("No active session to record error");let{pid:r,sam:o,traceId:s,startTime:a,parent_observation_id:i,model:n,tool:c,sessionId:u,userId:f}=this.currentSession,d=See(),p="",h="";e instanceof Error?(p=e.cause?`${e.message}:${e.cause.message}`:e.message,h=e.cause?e.cause.stack:e.stack):p=String(e);let m={gmkey:"AI",gokey:this.stringifyGokey({pid:r,sam:o,trace_id:s,observation_id:d,parent_observation_id:i,error_msg:`${p}
|
|
387
|
-
${h.slice(0,500)}`,model:n,tool:c,sessionId:u,cliVer:"0.3.14-beta.
|
|
387
|
+
${h.slice(0,500)}`,model:n,tool:c,sessionId:u,cliVer:"0.3.14-beta.5",user_id:f})};await a0e("/aitrack.lifecycle.run_error",m)}getCurrentSession(){return this.currentSession}stringifyGokey(e){return Object.entries(e).map(([r,o])=>`${encodeURIComponent(r)}=${encodeURIComponent(String(o))}`).join("&")}},UH=new b9e});import M5,{dirname as m2o,join as N_t}from"node:path";import S9e from"os";import*as xRr from"crypto";import{fileURLToPath as g2o}from"node:url";import y2o from"node:fs";function L5(t){let e=S9e.homedir();return t.startsWith(e)?t.replace(e,"~"):t}function $l(t,e=35){if(t.length<=e)return t;let o=M5.parse(t).root,s=M5.sep,i=t.substring(o.length).split(s).filter(h=>h!=="");if(i.length<=1){let h=Math.floor((e-3)/2);if(h<=0)return t.substring(0,e-3)+"...";let m=t.substring(0,h),y=t.substring(t.length-h);return`${m}...${y}`}let n=i[0],c=i[i.length-1],u=o+n,f=[],d=s.length+c.length;for(let h=i.length-2;h>=0;h--){let m=i[h],y=d+s.length+m.length;if(y<=e)f.unshift(m),d=y;else break}let p=f.join(s)+s+c;return d>e?p:(p=u+s+p,p.length>e?"..."+p.substring(p.length-e-3):p)}function tp(t,e){let r=M5.resolve(t),o=M5.resolve(e);return M5.relative(o,r)||"."}function c0e(t){let e="";for(let r=0;r<t.length;r++)t[r]===" "&&(r===0||t[r-1]!=="\\")?e+="\\ ":e+=t[r];return e}function FH(t){return t.replace(/\\ /g," ")}function x9e(t){return xRr.createHash("sha256").update(t).digest("hex")}function n3(t){let e=x9e(t);return M5.join(S9e.homedir(),Xg,A2o,e)}function _9e(){return M5.join(S9e.homedir(),Xg,_Rr)}function C9e(t){return M5.join(t,Xg,_Rr)}function T9e(){if(process.env.USE_BUILTIN_RIPGREP==="0")return"rg";let t=m2o(g2o(import.meta.url)),e=[N_t(t,"..","vendors","ripgrep",`${process.arch}-${process.platform}`,`rg${process.platform==="win32"?".exe":""}`),N_t(t,"..","..","..","..","vendors","ripgrep",`${process.arch}-${process.platform}`,`rg${process.platform==="win32"?".exe":""}`),N_t(t,"..","..","..","vendors","ripgrep",`${process.arch}-${process.platform}`,`rg${process.platform==="win32"?".exe":""}`)];for(let r of e)try{if(y2o.existsSync(r))return r}catch{}return e[0]}function l0e(t,e){let o=S9e.platform()==="win32"?M5.win32:M5,s=o.relative(t,e);return!s.startsWith(`..${o.sep}`)&&s!==".."&&!o.isAbsolute(s)}var Xg,P_t,A2o,_Rr,xp=j(()=>{"use strict";Xg=".iflow",P_t="google_accounts.json",A2o="tmp",_Rr="commands"});import*as CRr from"os";import*as $7 from"fs";import*as M_t from"path";import{randomUUID as v2o}from"crypto";function E2o(){$7.existsSync(B_t)||$7.mkdirSync(B_t,{recursive:!0})}function S2o(){return $7.existsSync(k_t)&&$7.readFileSync(k_t,"utf-8").trim()||null}function x2o(t){$7.writeFileSync(k_t,t,"utf-8")}function w9e(){try{E2o();let t=S2o();return t||(t=v2o(),x2o(t)),t}catch(t){return console.error("Error accessing installation ID file, generating ephemeral ID:",t),"123456789"}}var b2o,B_t,k_t,L_t=j(()=>{"use strict";xp();b2o=CRr.homedir()??"",B_t=M_t.join(b2o,Xg),k_t=M_t.join(B_t,"installation_id")});var TRr=E((kMc,_2o)=>{_2o.exports={name:"systeminformation",version:"5.27.10",description:"Advanced, lightweight system and OS information library",license:"MIT",author:"Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",homepage:"https://systeminformation.io",main:"./lib/index.js",type:"commonjs",bin:{systeminformation:"lib/cli.js"},types:"./lib/index.d.ts",scripts:{test:"node ./test/test.js",testDeno:"deno run -A ./test/test.js"},files:["lib/"],keywords:["system information","sysinfo","monitor","monitoring","os","linux","osx","windows","freebsd","openbsd","netbsd","cpu","cpuload","physical cores","logical cores","processor","cores","threads","socket type","memory","file system","fsstats","diskio","block devices","netstats","network","network interfaces","network connections","network stats","iface","printer","processes","users","internet","battery","docker","docker stats","docker processes","graphics","graphic card","graphic controller","gpu","display","smart","disk layout","usb","audio","bluetooth","wifi","wifinetworks","virtual box","virtualbox","vm","backend","hardware","BIOS","chassis"],repository:{type:"git",url:"https://github.com/sebhildebrandt/systeminformation.git"},funding:{type:"Buy me a coffee",url:"https://www.buymeacoffee.com/systeminfo"},os:["darwin","linux","win32","freebsd","openbsd","netbsd","sunos","android"],engines:{node:">=8.0.0"}}});var vm=E(vo=>{"use strict";var _ee=me("os"),M4=me("fs"),C2o=me("path"),G_t=me("child_process").spawn,T2o=me("child_process").exec,Cee=me("child_process").execSync,w2o=me("util"),qH=process.platform,j_t=qH==="linux"||qH==="android",DRr=qH==="darwin",R9e=qH==="win32",ORr=qH==="freebsd",RRr=qH==="openbsd",NRr=qH==="netbsd",U_t=0,QH="",B4="",kB=null,k4=null,$_t=process.env.WINDIR||"C:\\Windows",og,xee="",u0e=[],W_t=!1,D9e="",I2o="$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8 ; ",Q_t="--###START###--",wRr="--ERROR--",O9e="--###ENDCMD###--",q_t="--##ID##--",f0e={windowsHide:!0,maxBuffer:1024*2e4,encoding:"UTF-8",env:Object.assign({},process.env,{LANG:"en_US.UTF-8"})},N9e={maxBuffer:1024*2e4,encoding:"UTF-8",stdio:["pipe","pipe","ignore"]};function D2o(t){let e=parseInt(t,10);return isNaN(e)&&(e=0),e}function O2o(t){let e=!1,r="",o="";for(let s of t)s>="0"&&s<="9"||e?(e=!0,r+=s):o+=s;return[o,r]}var I9e=new String,H_t=new String().replace,V_t=new String().toLowerCase,PRr=new String().toString,BRr=new String().substr,kRr=new String().substring,MRr=new String().trim,LRr=new String().startsWith,URr=Math.min;function R2o(t){return t&&{}.toString.call(t)==="[object Function]"}function N2o(t){let e=[],r={};for(let o=0;o<t.length;o++){let s=Object.keys(t[o]);s.sort(function(i,n){return i-n});let a="";for(let i=0;i<s.length;i++)a+=JSON.stringify(s[i]),a+=JSON.stringify(t[o][s[i]]);({}).hasOwnProperty.call(r,a)||(e.push(t[o]),r[a]=!0)}return e}function P2o(t,e){return t.sort(function(r,o){let s="",a="";return e.forEach(function(i){s=s+r[i],a=a+o[i]}),s<a?-1:s>a?1:0})}function B2o(){return U_t===0&&(U_t=_ee.cpus().length),U_t}function MB(t,e,r,o,s){r=r||":",e=e.toLowerCase(),o=o||!1,s=s||!1;let a="";return t.some(i=>{let n=i.toLowerCase().replace(/\t/g,"");if(o&&(n=n.trim()),n.startsWith(e)&&(!s||n.match(e+r)||n.match(e+" "+r))){let c=o?i.trim().split(r):i.split(r);if(c.length>=2)return c.shift(),a=c.join(r).trim(),!0}}),a}function k2o(t,e){return e=e||16,t.replace(/\\x([0-9A-Fa-f]{2})/g,function(){return String.fromCharCode(parseInt(arguments[1],e))})}function M2o(t){let e="",r=0;return t.split("").forEach(o=>{o>="0"&&o<="9"?r===1&&r++:(r===0&&r++,r===1&&(e+=o))}),e}function L2o(t,e){e=e||"",t=t.toUpperCase();let r=0,o=0,s=M2o(t),a=t.split(s);if(a.length>=2){a[2]&&(a[1]+=a[2]);let i=a[1]&&a[1].toLowerCase().indexOf("pm")>-1||a[1].toLowerCase().indexOf("p.m.")>-1||a[1].toLowerCase().indexOf("p. m.")>-1||a[1].toLowerCase().indexOf("n")>-1||a[1].toLowerCase().indexOf("ch")>-1||a[1].toLowerCase().indexOf("\xF6s")>-1||e&&a[1].toLowerCase().indexOf(e)>-1;return r=parseInt(a[0],10),o=parseInt(a[1],10),r=i&&r<12?r+12:r,("0"+r).substr(-2)+":"+("0"+o).substr(-2)}}function U2o(t,e){let r={date:"",time:""};e=e||{};let o=(e.dateFormat||"").toLowerCase(),s=e.pmDesignator||"",a=t.split(" ");if(a[0]){if(a[0].indexOf("/")>=0){let i=a[0].split("/");i.length===3&&(i[0].length===4?r.date=i[0]+"-"+("0"+i[1]).substr(-2)+"-"+("0"+i[2]).substr(-2):i[2].length===2?(o.indexOf("/d/")>-1||o.indexOf("/dd/")>-1,r.date="20"+i[2]+"-"+("0"+i[1]).substr(-2)+"-"+("0"+i[0]).substr(-2)):(t.toLowerCase().indexOf("pm")>-1||t.toLowerCase().indexOf("p.m.")>-1||t.toLowerCase().indexOf("p. m.")>-1||t.toLowerCase().indexOf("am")>-1||t.toLowerCase().indexOf("a.m.")>-1||t.toLowerCase().indexOf("a. m.")>-1||o.indexOf("/d/")>-1||o.indexOf("/dd/")>-1)&&o.indexOf("dd/")!==0?r.date=i[2]+"-"+("0"+i[0]).substr(-2)+"-"+("0"+i[1]).substr(-2):r.date=i[2]+"-"+("0"+i[1]).substr(-2)+"-"+("0"+i[0]).substr(-2))}if(a[0].indexOf(".")>=0){let i=a[0].split(".");i.length===3&&(o.indexOf(".d.")>-1||o.indexOf(".dd.")>-1?r.date=i[2]+"-"+("0"+i[0]).substr(-2)+"-"+("0"+i[1]).substr(-2):r.date=i[2]+"-"+("0"+i[1]).substr(-2)+"-"+("0"+i[0]).substr(-2))}if(a[0].indexOf("-")>=0){let i=a[0].split("-");i.length===3&&(r.date=i[0]+"-"+("0"+i[1]).substr(-2)+"-"+("0"+i[2]).substr(-2))}}if(a[1]){a.shift();let i=a.join(" ");r.time=L2o(i,s)}return r}function F2o(t,e){let r=e>0,o=1,s=0,a=0,i=[];for(let c=0;c<t.length;c++)o<=e?(/\s/.test(t[c])&&!r&&(a=c-1,i.push({from:s,to:a+1,cap:t.substring(s,a+1)}),s=a+2,o++),r=t[c]===" "):(!/\s/.test(t[c])&&r&&(a=c-1,s<a&&i.push({from:s,to:a,cap:t.substring(s,a)}),s=a+1,o++),r=t[c]===" ");a=5e3,i.push({from:s,to:a,cap:t.substring(s,a)});let n=i.length;for(let c=0;c<n;c++)i[c].cap.replace(/\s/g,"").length===0&&c+1<n&&(i[c].to=i[c+1].to,i[c].cap=i[c].cap+i[c+1].cap,i.splice(c+1,1),n=n-1);return i}function Q2o(t,e,r){for(let o=0;o<t.length;o++)if(t[o][e]===r)return o;return-1}function q2o(){if(D9e="powershell.exe",R9e){let t=`${$_t}\\system32\\WindowsPowerShell\\v1.0\\powershell.exe`;M4.existsSync(t)&&(D9e=t)}}function FRr(){if(_ee.type()==="Windows_NT"&&!QH&&(QH=$_t+"\\system32\\wbem\\wmic.exe",!M4.existsSync(QH)))try{let t=Cee("WHERE WMIC",f0e).toString().split(`\r
|
|
388
388
|
`);t&&t.length?QH=t[0]:QH="wmic"}catch{QH="wmic"}return QH}function H2o(t){return new Promise(e=>{process.nextTick(()=>{try{QRr(FRr()+" "+t).then(r=>{e(r,"")})}catch(r){e("",r)}})})}function V2o(){return R9e?`"${process.env.VBOX_INSTALL_PATH||process.env.VBOX_MSI_INSTALL_PATH}\\VBoxManage.exe"`:"vboxmanage"}function F_t(t){let e="",r,o="";if(t.indexOf(Q_t)>=0){r=t.split(Q_t);let a=r[1].split(q_t);e=a[0],a.length>1&&(t=a.slice(1).join(q_t))}t.indexOf(O9e)>=0&&(r=t.split(O9e),o=r[0]);let s=-1;for(let a=0;a<u0e.length;a++)u0e[a].id===e&&(s=a,u0e[a].callback(o));s>=0&&u0e.splice(s,1)}function G2o(){og||(og=G_t(D9e,["-NoProfile","-NoLogo","-InputFormat","Text","-NoExit","-Command","-"],{stdio:"pipe",windowsHide:!0,maxBuffer:1024*2e4,encoding:"UTF-8",env:Object.assign({},process.env,{LANG:"en_US.UTF-8"})}),og&&og.pid&&(W_t=!0,og.stdout.on("data",function(t){xee=xee+t.toString("utf8"),t.indexOf(O9e)>=0&&(F_t(xee),xee="")}),og.stderr.on("data",function(){F_t(xee+wRr)}),og.on("error",function(){F_t(xee+wRr)}),og.on("close",function(){og&&og.kill()})))}function j2o(){try{og&&(og.stdin.write("exit"+_ee.EOL),og.stdin.end(),W_t=!1)}catch{og&&og.kill()}og=null}function QRr(t){if(W_t){let e=Math.random().toString(36).substring(2,12);return new Promise(r=>{process.nextTick(()=>{function o(s){r(s)}u0e.push({id:e,cmd:t,callback:o,start:new Date});try{og&&og.pid&&og.stdin.write(I2o+"echo "+Q_t+e+q_t+"; "+_ee.EOL+t+_ee.EOL+"echo "+O9e+_ee.EOL)}catch{r("")}})})}else{let e="";return new Promise(r=>{process.nextTick(()=>{try{let o=G_t(D9e,["-NoProfile","-NoLogo","-InputFormat","Text","-ExecutionPolicy","Unrestricted","-Command",t],{stdio:"pipe",windowsHide:!0,maxBuffer:2048e4,encoding:"UTF-8",env:Object.assign({},process.env,{LANG:"en_US.UTF-8"})});o&&!o.pid&&o.on("error",function(){r(e)}),o&&o.pid?(o.stdout.on("data",function(s){e=e+s.toString("utf8")}),o.stderr.on("data",function(){o.kill(),r(e)}),o.on("close",function(){o.kill(),r(e)}),o.on("error",function(){o.kill(),r(e)})):r(e)}catch{r(e)}})})}}function $2o(t,e,r){let o="";return r=r||{},new Promise(s=>{process.nextTick(()=>{try{let a=G_t(t,e,r);a&&!a.pid&&a.on("error",function(){s(o)}),a&&a.pid?(a.stdout.on("data",function(i){o+=i.toString()}),a.on("close",function(){a.kill(),s(o)}),a.on("error",function(){a.kill(),s(o)})):s(o)}catch{s(o)}})})}function W2o(){if(R9e){if(!B4)try{let r=Cee("chcp",f0e).toString().split(`\r
|
|
389
389
|
`)[0].split(":");B4=r.length>1?r[1].replace(".","").trim():""}catch{B4="437"}return B4}if(j_t||DRr||ORr||RRr||NRr){if(!B4)try{let r=Cee("echo $LANG",N9e).toString().split(`\r
|
|
390
390
|
`)[0].split(".");B4=r.length>1?r[1].trim():"",B4||(B4="UTF-8")}catch{B4="UTF-8"}return B4}}function z2o(){if(kB!==null)return kB;if(kB=!1,R9e)try{let t=Cee("WHERE smartctl 2>nul",f0e).toString().split(`\r
|
|
@@ -769,7 +769,7 @@ Bus `);for(let n=1;n<i.length;n++){let c=i3o(i[n]);r.push(c)}}t&&t(r),e(r)}),JAo
|
|
|
769
769
|
`);o3.getValue(n,"name",":")&&r.push(S3o(n))}),t&&t(r),e(r)}),y3o&&e(null)})})}iPr.audio=x3o});var aPr=E((rLc,sPr)=>{"use strict";sPr.exports={0:"Ericsson Technology Licensing",1:"Nokia Mobile Phones",2:"Intel Corp.",3:"IBM Corp.",4:"Toshiba Corp.",5:"3Com",6:"Microsoft",7:"Lucent",8:"Motorola",9:"Infineon Technologies AG",10:"Cambridge Silicon Radio",11:"Silicon Wave",12:"Digianswer A/S",13:"Texas Instruments Inc.",14:"Ceva, Inc. (formerly Parthus Technologies, Inc.)",15:"Broadcom Corporation",16:"Mitel Semiconductor",17:"Widcomm, Inc",18:"Zeevo, Inc.",19:"Atmel Corporation",20:"Mitsubishi Electric Corporation",21:"RTX Telecom A/S",22:"KC Technology Inc.",23:"NewLogic",24:"Transilica, Inc.",25:"Rohde & Schwarz GmbH & Co. KG",26:"TTPCom Limited",27:"Signia Technologies, Inc.",28:"Conexant Systems Inc.",29:"Qualcomm",30:"Inventel",31:"AVM Berlin",32:"BandSpeed, Inc.",33:"Mansella Ltd",34:"NEC Corporation",35:"WavePlus Technology Co., Ltd.",36:"Alcatel",37:"NXP Semiconductors (formerly Philips Semiconductors)",38:"C Technologies",39:"Open Interface",40:"R F Micro Devices",41:"Hitachi Ltd",42:"Symbol Technologies, Inc.",43:"Tenovis",44:"Macronix International Co. Ltd.",45:"GCT Semiconductor",46:"Norwood Systems",47:"MewTel Technology Inc.",48:"ST Microelectronics",49:"Synopsis",50:"Red-M (Communications) Ltd",51:"Commil Ltd",52:"Computer Access Technology Corporation (CATC)",53:"Eclipse (HQ Espana) S.L.",54:"Renesas Electronics Corporation",55:"Mobilian Corporation",56:"Terax",57:"Integrated System Solution Corp.",58:"Matsushita Electric Industrial Co., Ltd.",59:"Gennum Corporation",60:"BlackBerry Limited (formerly Research In Motion)",61:"IPextreme, Inc.",62:"Systems and Chips, Inc.",63:"Bluetooth SIG, Inc.",64:"Seiko Epson Corporation",65:"Integrated Silicon Solution Taiwan, Inc.",66:"CONWISE Technology Corporation Ltd",67:"PARROT SA",68:"Socket Mobile",69:"Atheros Communications, Inc.",70:"MediaTek, Inc.",71:"Bluegiga",72:"Marvell Technology Group Ltd.",73:"3DSP Corporation",74:"Accel Semiconductor Ltd.",75:"Continental Automotive Systems",76:"Apple, Inc.",77:"Staccato Communications, Inc.",78:"Avago Technologies",79:"APT Licensing Ltd.",80:"SiRF Technology",81:"Tzero Technologies, Inc.",82:"J&M Corporation",83:"Free2move AB",84:"3DiJoy Corporation",85:"Plantronics, Inc.",86:"Sony Ericsson Mobile Communications",87:"Harman International Industries, Inc.",88:"Vizio, Inc.",89:"Nordic Semiconductor ASA",90:"EM Microelectronic-Marin SA",91:"Ralink Technology Corporation",92:"Belkin International, Inc.",93:"Realtek Semiconductor Corporation",94:"Stonestreet One, LLC",95:"Wicentric, Inc.",96:"RivieraWaves S.A.S",97:"RDA Microelectronics",98:"Gibson Guitars",99:"MiCommand Inc.",100:"Band XI International, LLC",101:"Hewlett-Packard Company",102:"9Solutions Oy",103:"GN Netcom A/S",104:"General Motors",105:"A&D Engineering, Inc.",106:"MindTree Ltd.",107:"Polar Electro OY",108:"Beautiful Enterprise Co., Ltd.",109:"BriarTek, Inc.",110:"Summit Data Communications, Inc.",111:"Sound ID",112:"Monster, LLC",113:"connectBlue AB",114:"ShangHai Super Smart Electronics Co. Ltd.",115:"Group Sense Ltd.",116:"Zomm, LLC",117:"Samsung Electronics Co. Ltd.",118:"Creative Technology Ltd.",119:"Laird Technologies",120:"Nike, Inc.",121:"lesswire AG",122:"MStar Semiconductor, Inc.",123:"Hanlynn Technologies",124:"A & R Cambridge",125:"Seers Technology Co. Ltd",126:"Sports Tracking Technologies Ltd.",127:"Autonet Mobile",128:"DeLorme Publishing Company, Inc.",129:"WuXi Vimicro",130:"Sennheiser Communications A/S",131:"TimeKeeping Systems, Inc.",132:"Ludus Helsinki Ltd.",133:"BlueRadios, Inc.",134:"equinox AG",135:"Garmin International, Inc.",136:"Ecotest",137:"GN ReSound A/S",138:"Jawbone",139:"Topcorn Positioning Systems, LLC",140:"Gimbal Inc. (formerly Qualcomm Labs, Inc. and Qualcomm Retail Solutions, Inc.)",141:"Zscan Software",142:"Quintic Corp.",143:"Stollman E+V GmbH",144:"Funai Electric Co., Ltd.",145:"Advanced PANMOBIL Systems GmbH & Co. KG",146:"ThinkOptics, Inc.",147:"Universal Electronics, Inc.",148:"Airoha Technology Corp.",149:"NEC Lighting, Ltd.",150:"ODM Technology, Inc.",151:"ConnecteDevice Ltd.",152:"zer01.tv GmbH",153:"i.Tech Dynamic Global Distribution Ltd.",154:"Alpwise",155:"Jiangsu Toppower Automotive Electronics Co., Ltd.",156:"Colorfy, Inc.",157:"Geoforce Inc.",158:"Bose Corporation",159:"Suunto Oy",160:"Kensington Computer Products Group",161:"SR-Medizinelektronik",162:"Vertu Corporation Limited",163:"Meta Watch Ltd.",164:"LINAK A/S",165:"OTL Dynamics LLC",166:"Panda Ocean Inc.",167:"Visteon Corporation",168:"ARP Devices Limited",169:"Magneti Marelli S.p.A",170:"CAEN RFID srl",171:"Ingenieur-Systemgruppe Zahn GmbH",172:"Green Throttle Games",173:"Peter Systemtechnik GmbH",174:"Omegawave Oy",175:"Cinetix",176:"Passif Semiconductor Corp",177:"Saris Cycling Group, Inc",178:"Bekey A/S",179:"Clarinox Technologies Pty. Ltd.",180:"BDE Technology Co., Ltd.",181:"Swirl Networks",182:"Meso international",183:"TreLab Ltd",184:"Qualcomm Innovation Center, Inc. (QuIC)",185:"Johnson Controls, Inc.",186:"Starkey Laboratories Inc.",187:"S-Power Electronics Limited",188:"Ace Sensor Inc",189:"Aplix Corporation",190:"AAMP of America",191:"Stalmart Technology Limited",192:"AMICCOM Electronics Corporation",193:"Shenzhen Excelsecu Data Technology Co.,Ltd",194:"Geneq Inc.",195:"adidas AG",196:"LG Electronics",197:"Onset Computer Corporation",198:"Selfly BV",199:"Quuppa Oy.",200:"GeLo Inc",201:"Evluma",202:"MC10",203:"Binauric SE",204:"Beats Electronics",205:"Microchip Technology Inc.",206:"Elgato Systems GmbH",207:"ARCHOS SA",208:"Dexcom, Inc.",209:"Polar Electro Europe B.V.",210:"Dialog Semiconductor B.V.",211:"Taixingbang\xA0Technology (HK) Co,. LTD.",212:"Kawantech",213:"Austco Communication Systems",214:"Timex Group USA, Inc.",215:"Qualcomm Technologies, Inc.",216:"Qualcomm Connected Experiences, Inc.",217:"Voyetra Turtle Beach",218:"txtr GmbH",219:"Biosentronics",220:"Procter & Gamble",221:"Hosiden Corporation",222:"Muzik LLC",223:"Misfit Wearables Corp",224:"Google",225:"Danlers Ltd",226:"Semilink Inc",227:"inMusic Brands, Inc",228:"L.S. Research Inc.",229:"Eden Software Consultants Ltd.",230:"Freshtemp",231:"KS Technologies",232:"ACTS Technologies",233:"Vtrack Systems",234:"Nielsen-Kellerman Company",235:"Server Technology, Inc.",236:"BioResearch Associates",237:"Jolly Logic, LLC",238:"Above Average Outcomes, Inc.",239:"Bitsplitters GmbH",240:"PayPal, Inc.",241:"Witron Technology Limited",242:"Aether Things\xA0Inc. (formerly Morse Project Inc.)",243:"Kent Displays Inc.",244:"Nautilus Inc.",245:"Smartifier Oy",246:"Elcometer Limited",247:"VSN Technologies Inc.",248:"AceUni Corp., Ltd.",249:"StickNFind",250:"Crystal Code AB",251:"KOUKAAM a.s.",252:"Delphi Corporation",253:"ValenceTech Limited",254:"Reserved",255:"Typo Products, LLC",256:"TomTom International BV",257:"Fugoo, Inc",258:"Keiser Corporation",259:"Bang & Olufsen A/S",260:"PLUS Locations Systems Pty Ltd",261:"Ubiquitous Computing Technology Corporation",262:"Innovative Yachtter Solutions",263:"William Demant Holding A/S",264:"Chicony Electronics Co., Ltd.",265:"Atus BV",266:"Codegate Ltd.",267:"ERi, Inc.",268:"Transducers Direct, LLC",269:"Fujitsu Ten Limited",270:"Audi AG",271:"HiSilicon Technologies Co., Ltd.",272:"Nippon Seiki Co., Ltd.",273:"Steelseries ApS",274:"vyzybl Inc.",275:"Openbrain Technologies, Co., Ltd.",276:"Xensr",277:"e.solutions",278:"1OAK Technologies",279:"Wimoto Technologies Inc",280:"Radius Networks, Inc.",281:"Wize Technology Co., Ltd.",282:"Qualcomm Labs, Inc.",283:"Aruba Networks",284:"Baidu",285:"Arendi AG",286:"Skoda Auto a.s.",287:"Volkswagon AG",288:"Porsche AG",289:"Sino Wealth Electronic Ltd.",290:"AirTurn, Inc.",291:"Kinsa, Inc.",292:"HID Global",293:"SEAT es",294:"Promethean Ltd.",295:"Salutica Allied Solutions",296:"GPSI Group Pty Ltd",297:"Nimble Devices Oy",298:"Changzhou Yongse Infotech Co., Ltd",299:"SportIQ",300:"TEMEC Instruments B.V.",301:"Sony Corporation",302:"ASSA ABLOY",303:"Clarion Co., Ltd.",304:"Warehouse Innovations",305:"Cypress Semiconductor Corporation",306:"MADS Inc",307:"Blue Maestro Limited",308:"Resolution Products, Inc.",309:"Airewear LLC",310:"Seed Labs, Inc. (formerly ETC sp. z.o.o.)",311:"Prestigio Plaza Ltd.",312:"NTEO Inc.",313:"Focus Systems Corporation",314:"Tencent Holdings Limited",315:"Allegion",316:"Murata Manufacuring Co., Ltd.",318:"Nod, Inc.",319:"B&B Manufacturing Company",320:"Alpine\xA0Electronics\xA0(China)\xA0Co.,\xA0Ltd",321:"FedEx Services",322:"Grape Systems Inc.",323:"Bkon Connect",324:"Lintech GmbH",325:"Novatel Wireless",326:"Ciright",327:"Mighty Cast, Inc.",328:"Ambimat Electronics",329:"Perytons Ltd.",330:"Tivoli Audio, LLC",331:"Master Lock",332:"Mesh-Net Ltd",333:"Huizhou Desay SV Automotive CO., LTD.",334:"Tangerine, Inc.",335:"B&W Group Ltd.",336:"Pioneer Corporation",337:"OnBeep",338:"Vernier Software & Technology",339:"ROL Ergo",340:"Pebble Technology",341:"NETATMO",342:"Accumulate AB",343:"Anhui Huami Information Technology Co., Ltd.",344:"Inmite s.r.o.",345:"ChefSteps, Inc.",346:"micas AG",347:"Biomedical Research Ltd.",348:"Pitius Tec S.L.",349:"Estimote, Inc.",350:"Unikey Technologies, Inc.",351:"Timer Cap Co.",352:"AwoX",353:"yikes",354:"MADSGlobal NZ Ltd.",355:"PCH International",356:"Qingdao Yeelink Information Technology Co., Ltd.",357:"Milwaukee Tool (formerly Milwaukee Electric Tools)",358:"MISHIK Pte Ltd",359:"Bayer HealthCare",360:"Spicebox LLC",361:"emberlight",362:"Cooper-Atkins Corporation",363:"Qblinks",364:"MYSPHERA",365:"LifeScan Inc",366:"Volantic AB",367:"Podo Labs, Inc",368:"Roche Diabetes Care AG",369:"Amazon Fulfillment Service",370:"Connovate Technology Private Limited",371:"Kocomojo, LLC",372:"Everykey LLC",373:"Dynamic Controls",374:"SentriLock",375:"I-SYST inc.",376:"CASIO COMPUTER CO., LTD.",377:"LAPIS Semiconductor Co., Ltd.",378:"Telemonitor, Inc.",379:"taskit GmbH",380:"Daimler AG",381:"BatAndCat",382:"BluDotz Ltd",383:"XTel ApS",384:"Gigaset Communications GmbH",385:"Gecko Health Innovations, Inc.",386:"HOP Ubiquitous",387:"To Be Assigned",388:"Nectar",389:"bel\u2019apps LLC",390:"CORE Lighting Ltd",391:"Seraphim Sense Ltd",392:"Unico RBC",393:"Physical Enterprises Inc.",394:"Able Trend Technology Limited",395:"Konica Minolta, Inc.",396:"Wilo SE",397:"Extron Design Services",398:"Fitbit, Inc.",399:"Fireflies Systems",400:"Intelletto Technologies Inc.",401:"FDK CORPORATION",402:"Cloudleaf, Inc",403:"Maveric Automation LLC",404:"Acoustic Stream Corporation",405:"Zuli",406:"Paxton Access Ltd",407:"WiSilica Inc",408:"Vengit Limited",409:"SALTO SYSTEMS S.L.",410:"TRON Forum (formerly T-Engine Forum)",411:"CUBETECH s.r.o.",412:"Cokiya Incorporated",413:"CVS Health",414:"Ceruus",415:"Strainstall Ltd",416:"Channel Enterprises (HK) Ltd.",417:"FIAMM",418:"GIGALANE.CO.,LTD",419:"EROAD",420:"Mine Safety Appliances",421:"Icon Health and Fitness",422:"Asandoo GmbH",423:"ENERGOUS CORPORATION",424:"Taobao",425:"Canon Inc.",426:"Geophysical Technology Inc.",427:"Facebook, Inc.",428:"Nipro Diagnostics, Inc.",429:"FlightSafety International",430:"Earlens Corporation",431:"Sunrise Micro Devices, Inc.",432:"Star Micronics Co., Ltd.",433:"Netizens Sp. z o.o.",434:"Nymi Inc.",435:"Nytec, Inc.",436:"Trineo Sp. z o.o.",437:"Nest Labs Inc.",438:"LM Technologies Ltd",439:"General Electric Company",440:"i+D3 S.L.",441:"HANA Micron",442:"Stages Cycling LLC",443:"Cochlear Bone Anchored Solutions AB",444:"SenionLab AB",445:"Syszone Co., Ltd",446:"Pulsate Mobile Ltd.",447:"Hong Kong HunterSun Electronic Limited",448:"pironex GmbH",449:"BRADATECH Corp.",450:"Transenergooil AG",451:"Bunch",452:"DME Microelectronics",453:"Bitcraze AB",454:"HASWARE Inc.",455:"Abiogenix Inc.",456:"Poly-Control ApS",457:"Avi-on",458:"Laerdal Medical AS",459:"Fetch My Pet",460:"Sam Labs Ltd.",461:"Chengdu Synwing Technology Ltd",462:"HOUWA SYSTEM DESIGN, k.k.",463:"BSH",464:"Primus Inter Pares Ltd",465:"August",466:"Gill Electronics",467:"Sky Wave Design",468:"Newlab S.r.l.",469:"ELAD srl",470:"G-wearables inc.",471:"Squadrone Systems Inc.",472:"Code Corporation",473:"Savant Systems LLC",474:"Logitech International SA",475:"Innblue Consulting",476:"iParking Ltd.",477:"Koninklijke Philips Electronics N.V.",478:"Minelab Electronics Pty Limited",479:"Bison Group Ltd.",480:"Widex A/S",481:"Jolla Ltd",482:"Lectronix, Inc.",483:"Caterpillar Inc",484:"Freedom Innovations",485:"Dynamic Devices Ltd",486:"Technology Solutions (UK) Ltd",487:"IPS Group Inc.",488:"STIR",489:"Sano, Inc",490:"Advanced Application Design, Inc.",491:"AutoMap LLC",492:"Spreadtrum Communications Shanghai Ltd",493:"CuteCircuit LTD",494:"Valeo Service",495:"Fullpower Technologies, Inc.",496:"KloudNation",497:"Zebra Technologies Corporation",498:"Itron, Inc.",499:"The University of Tokyo",500:"UTC Fire and Security",501:"Cool Webthings Limited",502:"DJO Global",503:"Gelliner Limited",504:"Anyka (Guangzhou) Microelectronics Technology Co, LTD",505:"Medtronic, Inc.",506:"Gozio, Inc.",507:"Form Lifting, LLC",508:"Wahoo Fitness, LLC",509:"Kontakt Micro-Location Sp. z o.o.",510:"Radio System Corporation",511:"Freescale Semiconductor, Inc.",512:"Verifone Systems PTe Ltd. Taiwan Branch",513:"AR Timing",514:"Rigado LLC",515:"Kemppi Oy",516:"Tapcentive Inc.",517:"Smartbotics Inc.",518:"Otter Products, LLC",519:"STEMP Inc.",520:"LumiGeek LLC",521:"InvisionHeart Inc.",522:"Macnica Inc. ",523:"Jaguar Land Rover Limited",524:"CoroWare Technologies, Inc",525:"Simplo Technology Co., LTD",526:"Omron Healthcare Co., LTD",527:"Comodule GMBH",528:"ikeGPS",529:"Telink Semiconductor Co. Ltd",530:"Interplan Co., Ltd",531:"Wyler AG",532:"IK Multimedia Production srl",533:"Lukoton Experience Oy",534:"MTI Ltd",535:"Tech4home, Lda",536:"Hiotech AB",537:"DOTT Limited",538:"Blue Speck Labs, LLC",539:"Cisco Systems, Inc",540:"Mobicomm Inc",541:"Edamic",542:"Goodnet, Ltd",543:"Luster Leaf Products Inc",544:"Manus Machina BV",545:"Mobiquity Networks Inc",546:"Praxis Dynamics",547:"Philip Morris Products S.A.",548:"Comarch SA",549:"Nestl Nespresso S.A.",550:"Merlinia A/S",551:"LifeBEAM Technologies",552:"Twocanoes Labs, LLC",553:"Muoverti Limited",554:"Stamer Musikanlagen GMBH",555:"Tesla Motors",556:"Pharynks Corporation",557:"Lupine",558:"Siemens AG",559:"Huami (Shanghai) Culture Communication CO., LTD",560:"Foster Electric Company, Ltd",561:"ETA SA",562:"x-Senso Solutions Kft",563:"Shenzhen SuLong Communication Ltd",564:"FengFan (BeiJing) Technology Co, Ltd",565:"Qrio Inc",566:"Pitpatpet Ltd",567:"MSHeli s.r.l.",568:"Trakm8 Ltd",569:"JIN CO, Ltd",570:"Alatech Tehnology",571:"Beijing CarePulse Electronic Technology Co, Ltd",572:"Awarepoint",573:"ViCentra B.V.",574:"Raven Industries",575:"WaveWare Technologies Inc.",576:"Argenox Technologies",577:"Bragi GmbH",578:"16Lab Inc",579:"Masimo Corp",580:"Iotera Inc",581:"Endress+Hauser",582:"ACKme Networks, Inc.",583:"FiftyThree Inc.",584:"Parker Hannifin Corp",585:"Transcranial Ltd",586:"Uwatec AG",587:"Orlan LLC",588:"Blue Clover Devices",589:"M-Way Solutions GmbH",590:"Microtronics Engineering GmbH",591:"Schneider Schreibgerte GmbH",592:"Sapphire Circuits LLC",593:"Lumo Bodytech Inc.",594:"UKC Technosolution",595:"Xicato Inc.",596:"Playbrush",597:"Dai Nippon Printing Co., Ltd.",598:"G24 Power Limited",599:"AdBabble Local Commerce Inc.",600:"Devialet SA",601:"ALTYOR",602:"University of Applied Sciences Valais/Haute Ecole Valaisanne",603:"Five Interactive, LLC dba Zendo",604:"NetEaseHangzhouNetwork co.Ltd.",605:"Lexmark International Inc.",606:"Fluke Corporation",607:"Yardarm Technologies",608:"SensaRx",609:"SECVRE GmbH",610:"Glacial Ridge Technologies",611:"Identiv, Inc.",612:"DDS, Inc.",613:"SMK Corporation",614:"Schawbel Technologies LLC",615:"XMI Systems SA",616:"Cerevo",617:"Torrox GmbH & Co KG",618:"Gemalto",619:"DEKA Research & Development Corp.",620:"Domster Tadeusz Szydlowski",621:"Technogym SPA",622:"FLEURBAEY BVBA",623:"Aptcode Solutions",624:"LSI ADL Technology",625:"Animas Corp",626:"Alps Electric Co., Ltd.",627:"OCEASOFT",628:"Motsai Research",629:"Geotab",630:"E.G.O. Elektro-Gertebau GmbH",631:"bewhere inc",632:"Johnson Outdoors Inc",633:"steute Schaltgerate GmbH & Co. KG",634:"Ekomini inc.",635:"DEFA AS",636:"Aseptika Ltd",637:"HUAWEI Technologies Co., Ltd. ( )",638:"HabitAware, LLC",639:"ruwido austria gmbh",640:"ITEC corporation",641:"StoneL",642:"Sonova AG",643:"Maven Machines, Inc.",644:"Synapse Electronics",645:"Standard Innovation Inc.",646:"RF Code, Inc.",647:"Wally Ventures S.L.",648:"Willowbank Electronics Ltd",649:"SK Telecom",650:"Jetro AS",651:"Code Gears LTD",652:"NANOLINK APS",653:"IF, LLC",654:"RF Digital Corp",655:"Church & Dwight Co., Inc",656:"Multibit Oy",657:"CliniCloud Inc",658:"SwiftSensors",659:"Blue Bite",660:"ELIAS GmbH",661:"Sivantos GmbH",662:"Petzl",663:"storm power ltd",664:"EISST Ltd",665:"Inexess Technology Simma KG",666:"Currant, Inc.",667:"C2 Development, Inc.",668:"Blue Sky Scientific, LLC",669:"ALOTTAZS LABS, LLC",670:"Kupson spol. s r.o.",671:"Areus Engineering GmbH",672:"Impossible Camera GmbH",673:"InventureTrack Systems",674:"LockedUp",675:"Itude",676:"Pacific Lock Company",677:"Tendyron Corporation ( )",678:"Robert Bosch GmbH",679:"Illuxtron international B.V.",680:"miSport Ltd.",681:"Chargelib",682:"Doppler Lab",683:"BBPOS Limited",684:"RTB Elektronik GmbH & Co. KG",685:"Rx Networks, Inc.",686:"WeatherFlow, Inc.",687:"Technicolor USA Inc.",688:"Bestechnic(Shanghai),Ltd",689:"Raden Inc",690:"JouZen Oy",691:"CLABER S.P.A.",692:"Hyginex, Inc.",693:"HANSHIN ELECTRIC RAILWAY CO.,LTD.",694:"Schneider Electric",695:"Oort Technologies LLC",696:"Chrono Therapeutics",697:"Rinnai Corporation",698:"Swissprime Technologies AG",699:"Koha.,Co.Ltd",700:"Genevac Ltd",701:"Chemtronics",702:"Seguro Technology Sp. z o.o.",703:"Redbird Flight Simulations",704:"Dash Robotics",705:"LINE Corporation",706:"Guillemot Corporation",707:"Techtronic Power Tools Technology Limited",708:"Wilson Sporting Goods",709:"Lenovo (Singapore) Pte Ltd. ( )",710:"Ayatan Sensors",711:"Electronics Tomorrow Limited",712:"VASCO Data Security International, Inc.",713:"PayRange Inc.",714:"ABOV Semiconductor",715:"AINA-Wireless Inc.",716:"Eijkelkamp Soil & Water",717:"BMA ergonomics b.v.",718:"Teva Branded Pharmaceutical Products R&D, Inc.",719:"Anima",720:"3M",721:"Empatica Srl",722:"Afero, Inc.",723:"Powercast Corporation",724:"Secuyou ApS",725:"OMRON Corporation",726:"Send Solutions",727:"NIPPON SYSTEMWARE CO.,LTD.",728:"Neosfar",729:"Fliegl Agrartechnik GmbH",730:"Gilvader",731:"Digi International Inc (R)",732:"DeWalch Technologies, Inc.",733:"Flint Rehabilitation Devices, LLC",734:"Samsung SDS Co., Ltd.",735:"Blur Product Development",736:"University of Michigan",737:"Victron Energy BV",738:"NTT docomo",739:"Carmanah Technologies Corp.",740:"Bytestorm Ltd.",741:"Espressif Incorporated ( () )",742:"Unwire",743:"Connected Yard, Inc.",744:"American Music Environments",745:"Sensogram Technologies, Inc.",746:"Fujitsu Limited",747:"Ardic Technology",748:"Delta Systems, Inc",749:"HTC Corporation",750:"Citizen Holdings Co., Ltd.",751:"SMART-INNOVATION.inc",752:"Blackrat Software",753:"The Idea Cave, LLC",754:"GoPro, Inc.",755:"AuthAir, Inc",756:"Vensi, Inc.",757:"Indagem Tech LLC",758:"Intemo Technologies",759:"DreamVisions co., Ltd.",760:"Runteq Oy Ltd",761:"IMAGINATION TECHNOLOGIES LTD",762:"CoSTAR TEchnologies",763:"Clarius Mobile Health Corp.",764:"Shanghai Frequen Microelectronics Co., Ltd.",765:"Uwanna, Inc.",766:"Lierda Science & Technology Group Co., Ltd.",767:"Silicon Laboratories",768:"World Moto Inc.",769:"Giatec Scientific Inc.",770:"Loop Devices, Inc",771:"IACA electronique",772:"Martians Inc",773:"Swipp ApS",774:"Life Laboratory Inc.",775:"FUJI INDUSTRIAL CO.,LTD.",776:"Surefire, LLC",777:"Dolby Labs",778:"Ellisys",779:"Magnitude Lighting Converters",780:"Hilti AG",781:"Devdata S.r.l.",782:"Deviceworx",783:"Shortcut Labs",784:"SGL Italia S.r.l.",785:"PEEQ DATA",786:"Ducere Technologies Pvt Ltd",787:"DiveNav, Inc.",788:"RIIG AI Sp. z o.o.",789:"Thermo Fisher Scientific",790:"AG Measurematics Pvt. Ltd.",791:"CHUO Electronics CO., LTD.",792:"Aspenta International",793:"Eugster Frismag AG",794:"Amber wireless GmbH",795:"HQ Inc",796:"Lab Sensor Solutions",797:"Enterlab ApS",798:"Eyefi, Inc.",799:"MetaSystem S.p.A.",800:"SONO ELECTRONICS. CO., LTD",801:"Jewelbots",802:"Compumedics Limited",803:"Rotor Bike Components",804:"Astro, Inc.",805:"Amotus Solutions",806:"Healthwear Technologies (Changzhou)Ltd",807:"Essex Electronics",808:"Grundfos A/S",809:"Eargo, Inc.",810:"Electronic Design Lab",811:"ESYLUX",812:"NIPPON SMT.CO.,Ltd",813:"BM innovations GmbH",814:"indoormap",815:"OttoQ Inc",816:"North Pole Engineering",817:"3flares Technologies Inc.",818:"Electrocompaniet A.S.",819:"Mul-T-Lock",820:"Corentium AS",821:"Enlighted Inc",822:"GISTIC",823:"AJP2 Holdings, LLC",824:"COBI GmbH",825:"Blue Sky Scientific, LLC",826:"Appception, Inc.",827:"Courtney Thorne Limited",828:"Virtuosys",829:"TPV Technology Limited",830:"Monitra SA",831:"Automation Components, Inc.",832:"Letsense s.r.l.",833:"Etesian Technologies LLC",834:"GERTEC BRASIL LTDA.",835:"Drekker Development Pty. Ltd.",836:"Whirl Inc",837:"Locus Positioning",838:"Acuity Brands Lighting, Inc",839:"Prevent Biometrics",840:"Arioneo",841:"VersaMe",842:"Vaddio",843:"Libratone A/S",844:"HM Electronics, Inc.",845:"TASER International, Inc.",846:"SafeTrust Inc.",847:"Heartland Payment Systems",848:"Bitstrata Systems Inc.",849:"Pieps GmbH",850:"iRiding(Xiamen)Technology Co.,Ltd.",851:"Alpha Audiotronics, Inc.",852:"TOPPAN FORMS CO.,LTD.",853:"Sigma Designs, Inc.",854:"Spectrum Brands, Inc.",855:"Polymap Wireless",856:"MagniWare Ltd.",857:"Novotec Medical GmbH",858:"Medicom Innovation Partner a/s",859:"Matrix Inc.",860:"Eaton Corporation",861:"KYS",862:"Naya Health, Inc.",863:"Acromag",864:"Insulet Corporation",865:"Wellinks Inc.",866:"ON Semiconductor",867:"FREELAP SA",868:"Favero Electronics Srl",869:"BioMech Sensor LLC",870:"BOLTT Sports technologies Private limited",871:"Saphe International",872:"Metormote AB",873:"littleBits",874:"SetPoint Medical",875:"BRControls Products BV",876:"Zipcar",877:"AirBolt Pty Ltd",878:"KeepTruckin Inc",879:"Motiv, Inc.",880:"Wazombi Labs O",881:"ORBCOMM",882:"Nixie Labs, Inc.",883:"AppNearMe Ltd",884:"Holman Industries",885:"Expain AS",886:"Electronic Temperature Instruments Ltd",887:"Plejd AB",888:"Propeller Health",889:"Shenzhen iMCO Electronic Technology Co.,Ltd",890:"Algoria",891:"Apption Labs Inc.",892:"Cronologics Corporation",893:"MICRODIA Ltd.",894:"lulabytes S.L.",895:"Nestec S.A.",896:"LLC MEGA - F service",897:"Sharp Corporation",898:"Precision Outcomes Ltd",899:"Kronos Incorporated",900:"OCOSMOS Co., Ltd.",901:"Embedded Electronic Solutions Ltd. dba e2Solutions",902:"Aterica Inc.",903:"BluStor PMC, Inc.",904:"Kapsch TrafficCom AB",905:"ActiveBlu Corporation",906:"Kohler Mira Limited",907:"Noke",908:"Appion Inc.",909:"Resmed Ltd",910:"Crownstone B.V.",911:"Xiaomi Inc.",912:"INFOTECH s.r.o.",913:"Thingsquare AB",914:"T&D",915:"LAVAZZA S.p.A.",916:"Netclearance Systems, Inc.",917:"SDATAWAY",918:"BLOKS GmbH",919:"LEGO System A/S",920:"Thetatronics Ltd",921:"Nikon Corporation",922:"NeST",923:"South Silicon Valley Microelectronics",924:"ALE International",925:"CareView Communications, Inc.",926:"SchoolBoard Limited",927:"Molex Corporation",928:"IVT Wireless Limited",929:"Alpine Labs LLC",930:"Candura Instruments",931:"SmartMovt Technology Co., Ltd",932:"Token Zero Ltd",933:"ACE CAD Enterprise Co., Ltd. (ACECAD)",934:"Medela, Inc",935:"AeroScout",936:"Esrille Inc.",937:"THINKERLY SRL",938:"Exon Sp. z o.o.",939:"Meizu Technology Co., Ltd.",940:"Smablo LTD",941:"XiQ",942:"Allswell Inc.",943:"Comm-N-Sense Corp DBA Verigo",944:"VIBRADORM GmbH",945:"Otodata Wireless Network Inc.",946:"Propagation Systems Limited",947:"Midwest Instruments & Controls",948:"Alpha Nodus, inc.",949:"petPOMM, Inc",950:"Mattel",951:"Airbly Inc.",952:"A-Safe Limited",953:"FREDERIQUE CONSTANT SA",954:"Maxscend Microelectronics Company Limited",955:"Abbott Diabetes Care",956:"ASB Bank Ltd",957:"amadas",958:"Applied Science, Inc.",959:"iLumi Solutions Inc.",960:"Arch Systems Inc.",961:"Ember Technologies, Inc.",962:"Snapchat Inc",963:"Casambi Technologies Oy",964:"Pico Technology Inc.",965:"St. Jude Medical, Inc.",966:"Intricon",967:"Structural Health Systems, Inc.",968:"Avvel International",969:"Gallagher Group",970:"In2things Automation Pvt. Ltd.",971:"SYSDEV Srl",972:"Vonkil Technologies Ltd",973:"Wynd Technologies, Inc.",974:"CONTRINEX S.A.",975:"MIRA, Inc.",976:"Watteam Ltd",977:"Density Inc.",978:"IOT Pot India Private Limited",979:"Sigma Connectivity AB",980:"PEG PEREGO SPA",981:"Wyzelink Systems Inc.",982:"Yota Devices LTD",983:"FINSECUR",984:"Zen-Me Labs Ltd",985:"3IWare Co., Ltd.",986:"EnOcean GmbH",987:"Instabeat, Inc",988:"Nima Labs",989:"Andreas Stihl AG & Co. KG",990:"Nathan Rhoades LLC",991:"Grob Technologies, LLC",992:"Actions (Zhuhai) Technology Co., Limited",993:"SPD Development Company Ltd",994:"Sensoan Oy",995:"Qualcomm Life Inc",996:"Chip-ing AG",997:"ffly4u",998:"IoT Instruments Oy",999:"TRUE Fitness Technology",1e3:"Reiner Kartengeraete GmbH & Co. KG.",1001:"SHENZHEN LEMONJOY TECHNOLOGY CO., LTD.",1002:"Hello Inc.",1003:"Evollve Inc.",1004:"Jigowatts Inc.",1005:"BASIC MICRO.COM,INC.",1006:"CUBE TECHNOLOGIES",1007:"foolography GmbH",1008:"CLINK",1009:"Hestan Smart Cooking Inc.",1010:"WindowMaster A/S",1011:"Flowscape AB",1012:"PAL Technologies Ltd",1013:"WHERE, Inc.",1014:"Iton Technology Corp.",1015:"Owl Labs Inc.",1016:"Rockford Corp.",1017:"Becon Technologies Co.,Ltd.",1018:"Vyassoft Technologies Inc",1019:"Nox Medical",1020:"Kimberly-Clark",1021:"Trimble Navigation Ltd.",1022:"Littelfuse",1023:"Withings",1024:"i-developer IT Beratung UG",1026:"Sears Holdings Corporation",1027:"Gantner Electronic GmbH",1028:"Authomate Inc",1029:"Vertex International, Inc.",1030:"Airtago",1031:"Swiss Audio SA",1032:"ToGetHome Inc.",1033:"AXIS",1034:"Openmatics",1035:"Jana Care Inc.",1036:"Senix Corporation",1037:"NorthStar Battery Company, LLC",1038:"SKF (U.K.) Limited",1039:"CO-AX Technology, Inc.",1040:"Fender Musical Instruments",1041:"Luidia Inc",1042:"SEFAM",1043:"Wireless Cables Inc",1044:"Lightning Protection International Pty Ltd",1045:"Uber Technologies Inc",1046:"SODA GmbH",1047:"Fatigue Science",1048:"Alpine Electronics Inc.",1049:"Novalogy LTD",1050:"Friday Labs Limited",1051:"OrthoAccel Technologies",1052:"WaterGuru, Inc.",1053:"Benning Elektrotechnik und Elektronik GmbH & Co. KG",1054:"Dell Computer Corporation",1055:"Kopin Corporation",1056:"TecBakery GmbH",1057:"Backbone Labs, Inc.",1058:"DELSEY SA",1059:"Chargifi Limited",1060:"Trainesense Ltd.",1061:"Unify Software and Solutions GmbH & Co. KG",1062:"Husqvarna AB",1063:"Focus fleet and fuel management inc",1064:"SmallLoop, LLC",1065:"Prolon Inc.",1066:"BD Medical",1067:"iMicroMed Incorporated",1068:"Ticto N.V.",1069:"Meshtech AS",1070:"MemCachier Inc.",1071:"Danfoss A/S",1072:"SnapStyk Inc.",1073:"Amyway Corporation",1074:"Silk Labs, Inc.",1075:"Pillsy Inc.",1076:"Hatch Baby, Inc.",1077:"Blocks Wearables Ltd.",1078:"Drayson Technologies (Europe) Limited",1079:"eBest IOT Inc.",1080:"Helvar Ltd",1081:"Radiance Technologies",1082:"Nuheara Limited",1083:"Appside co., ltd.",1084:"DeLaval",1085:"Coiler Corporation",1086:"Thermomedics, Inc.",1087:"Tentacle Sync GmbH",1088:"Valencell, Inc.",1089:"iProtoXi Oy",1090:"SECOM CO., LTD.",1091:"Tucker International LLC",1092:"Metanate Limited",1093:"Kobian Canada Inc.",1094:"NETGEAR, Inc.",1095:"Fabtronics Australia Pty Ltd",1096:"Grand Centrix GmbH",1097:"1UP USA.com llc",1098:"SHIMANO INC.",1099:"Nain Inc.",1100:"LifeStyle Lock, LLC",1101:"VEGA Grieshaber KG",1102:"Xtrava Inc.",1103:"TTS Tooltechnic Systems AG & Co. KG",1104:"Teenage Engineering AB",1105:"Tunstall Nordic AB",1106:"Svep Design Center AB",1107:"GreenPeak Technologies BV",1108:"Sphinx Electronics GmbH & Co KG",1109:"Atomation",1110:"Nemik Consulting Inc",1111:"RF INNOVATION",1112:"Mini Solution Co., Ltd.",1113:"Lumenetix, Inc",1114:"2048450 Ontario Inc",1115:"SPACEEK LTD",1116:"Delta T Corporation",1117:"Boston Scientific Corporation",1118:"Nuviz, Inc.",1119:"Real Time Automation, Inc.",1120:"Kolibree",1121:"vhf elektronik GmbH",1122:"Bonsai Systems GmbH",1123:"Fathom Systems Inc.",1124:"Bellman & Symfon",1125:"International Forte Group LLC",1126:"CycleLabs Solutions inc.",1127:"Codenex Oy",1128:"Kynesim Ltd",1129:"Palago AB",1130:"INSIGMA INC.",1131:"PMD Solutions",1132:"Qingdao Realtime Technology Co., Ltd.",1133:"BEGA Gantenbrink-Leuchten KG",1134:"Pambor Ltd.",65535:"SPECIAL USE/DEFAULT"}});var lPr=E(cPr=>{"use strict";var _3o=me("child_process").exec,C3o=me("child_process").execSync,T3o=me("path"),Y7=vm(),w3o=aPr(),I3o=me("fs"),ak=process.platform,D3o=ak==="linux"||ak==="android",O3o=ak==="darwin",R3o=ak==="win32",N3o=ak==="freebsd",P3o=ak==="openbsd",B3o=ak==="netbsd",k3o=ak==="sunos";function ICt(t){let e="";return t.indexOf("keyboard")>=0&&(e="Keyboard"),t.indexOf("mouse")>=0&&(e="Mouse"),t.indexOf("trackpad")>=0&&(e="Trackpad"),t.indexOf("speaker")>=0&&(e="Speaker"),t.indexOf("headset")>=0&&(e="Headset"),t.indexOf("phone")>=0&&(e="Phone"),t.indexOf("macbook")>=0&&(e="Computer"),t.indexOf("imac")>=0&&(e="Computer"),t.indexOf("ipad")>=0&&(e="Tablet"),t.indexOf("watch")>=0&&(e="Watch"),t.indexOf("headphone")>=0&&(e="Headset"),e}function M3o(t){let e=t.split(" ")[0];return t=t.toLowerCase(),t.indexOf("apple")>=0&&(e="Apple"),t.indexOf("ipad")>=0&&(e="Apple"),t.indexOf("imac")>=0&&(e="Apple"),t.indexOf("iphone")>=0&&(e="Apple"),t.indexOf("magic mouse")>=0&&(e="Apple"),t.indexOf("magic track")>=0&&(e="Apple"),t.indexOf("macbook")>=0&&(e="Apple"),e}function L3o(t){let e=parseInt(t);if(!isNaN(e))return w3o[e]}function U3o(t,e,r){let o={};return o.device=null,o.name=Y7.getValue(t,"name","="),o.manufacturer=null,o.macDevice=e,o.macHost=r,o.batteryPercent=null,o.type=ICt(o.name.toLowerCase()),o.connected=!1,o}function wCt(t,e){let r={},o=((t.device_minorClassOfDevice_string||t.device_majorClassOfDevice_string||t.device_minorType||"")+(t.device_name||"")).toLowerCase();return r.device=t.device_services||"",r.name=t.device_name||"",r.manufacturer=t.device_manufacturer||L3o(t.device_vendorID)||M3o(t.device_name||"")||"",r.macDevice=(t.device_addr||t.device_address||"").toLowerCase().replace(/-/g,":"),r.macHost=e,r.batteryPercent=t.device_batteryPercent||null,r.type=ICt(o),r.connected=t.device_isconnected==="attrib_Yes"||!1,r}function F3o(t){let e={};return e.device=null,e.name=Y7.getValue(t,"name",":"),e.manufacturer=Y7.getValue(t,"manufacturer",":"),e.macDevice=null,e.macHost=null,e.batteryPercent=null,e.type=ICt(e.name.toLowerCase()),e.connected=null,e}function Q3o(t){return new Promise(e=>{process.nextTick(()=>{let r=[];if(D3o){Y7.getFilesInPath("/var/lib/bluetooth/").forEach(s=>{let a=T3o.basename(s),i=s.split("/"),n=i.length>=6?i[i.length-2]:null,c=i.length>=7?i[i.length-3]:null;if(a==="info"){let u=I3o.readFileSync(s,{encoding:"utf8"}).split(`
|
|
770
770
|
`);r.push(U3o(u,n,c))}});try{let s=C3o("hcitool con",Y7.execOptsLinux).toString().toLowerCase();for(let a=0;a<r.length;a++)r[a].macDevice&&r[a].macDevice.length>10&&s.indexOf(r[a].macDevice.toLowerCase())>=0&&(r[a].connected=!0)}catch{Y7.noop()}t&&t(r),e(r)}O3o&&_3o("system_profiler SPBluetoothDataType -json",function(s,a){if(!s)try{let i=JSON.parse(a.toString());if(i.SPBluetoothDataType&&i.SPBluetoothDataType.length&&i.SPBluetoothDataType[0]&&i.SPBluetoothDataType[0].device_title&&i.SPBluetoothDataType[0].device_title.length){let n=null;i.SPBluetoothDataType[0].local_device_title&&i.SPBluetoothDataType[0].local_device_title.general_address&&(n=i.SPBluetoothDataType[0].local_device_title.general_address.toLowerCase().replace(/-/g,":")),i.SPBluetoothDataType[0].device_title.forEach(c=>{let u=c,f=Object.keys(u);if(f&&f.length===1){let d=u[f[0]];d.device_name=f[0];let p=wCt(d,n);r.push(p)}})}if(i.SPBluetoothDataType&&i.SPBluetoothDataType.length&&i.SPBluetoothDataType[0]&&i.SPBluetoothDataType[0].device_connected&&i.SPBluetoothDataType[0].device_connected.length){let n=i.SPBluetoothDataType[0].controller_properties&&i.SPBluetoothDataType[0].controller_properties.controller_address?i.SPBluetoothDataType[0].controller_properties.controller_address.toLowerCase().replace(/-/g,":"):null;i.SPBluetoothDataType[0].device_connected.forEach(c=>{let u=c,f=Object.keys(u);if(f&&f.length===1){let d=u[f[0]];d.device_name=f[0],d.device_isconnected="attrib_Yes";let p=wCt(d,n);r.push(p)}})}if(i.SPBluetoothDataType&&i.SPBluetoothDataType.length&&i.SPBluetoothDataType[0]&&i.SPBluetoothDataType[0].device_not_connected&&i.SPBluetoothDataType[0].device_not_connected.length){let n=i.SPBluetoothDataType[0].controller_properties&&i.SPBluetoothDataType[0].controller_properties.controller_address?i.SPBluetoothDataType[0].controller_properties.controller_address.toLowerCase().replace(/-/g,":"):null;i.SPBluetoothDataType[0].device_not_connected.forEach(c=>{let u=c,f=Object.keys(u);if(f&&f.length===1){let d=u[f[0]];d.device_name=f[0],d.device_isconnected="attrib_No";let p=wCt(d,n);r.push(p)}})}}catch{Y7.noop()}t&&t(r),e(r)}),R3o&&Y7.powerShell("Get-CimInstance Win32_PNPEntity | select PNPClass, Name, Manufacturer | fl").then((o,s)=>{s||o.toString().split(/\n\s*\n/).forEach(i=>{Y7.getValue(i.split(`
|
|
771
771
|
`),"PNPClass",":")==="Bluetooth"&&r.push(F3o(i.split(`
|
|
772
|
-
`)))}),t&&t(r),e(r)}),(N3o||B3o||P3o||k3o)&&e(null)})})}cPr.bluetoothDevices=Q3o});var EPr=E(Qi=>{"use strict";var q3o=TRr().version,lk=vm(),ck=GRr(),J7=J_t(),Hx=YRr(),c7e=oNr(),uPr=cNr(),fPr=pNr(),q5=ANr(),X7=TNr(),l7e=RNr(),R0e=BNr(),dPr=LNr(),DCt=VNr(),KH=WNr(),H3o=KNr(),pPr=ZNr(),hPr=rPr(),mPr=oPr(),gPr=lPr(),N0e=process.platform,a7e=N0e==="win32",I0e=N0e==="freebsd",D0e=N0e==="openbsd",O0e=N0e==="netbsd",Q5=N0e==="sunos";a7e&&(lk.getCodepage(),lk.getPowershell());function yPr(){return q3o}function APr(t){return new Promise(e=>{process.nextTick(()=>{let r={};r.version=yPr(),Promise.all([ck.system(),ck.bios(),ck.baseboard(),ck.chassis(),J7.osInfo(),J7.uuid(),J7.versions(),Hx.cpu(),Hx.cpuFlags(),fPr.graphics(),X7.networkInterfaces(),c7e.memLayout(),q5.diskLayout(),mPr.audio(),gPr.bluetoothDevices(),hPr.usb(),pPr.printer()]).then(o=>{r.system=o[0],r.bios=o[1],r.baseboard=o[2],r.chassis=o[3],r.os=o[4],r.uuid=o[5],r.versions=o[6],r.cpu=o[7],r.cpu.flags=o[8],r.graphics=o[9],r.net=o[10],r.memLayout=o[11],r.diskLayout=o[12],r.audio=o[13],r.bluetooth=o[14],r.usb=o[15],r.printer=o[16],t&&t(r),e(r)})})})}function vPr(t,e,r){return lk.isFunction(e)&&(r=e,e=""),lk.isFunction(t)&&(r=t,t=""),new Promise(o=>{process.nextTick(()=>{e=e||X7.getDefaultNetworkInterface(),t=t||"";let s=(function(){let i=15;return a7e&&(i=13),(I0e||D0e||O0e)&&(i=11),Q5&&(i=6),function(){--i===0&&(r&&r(a),o(a))}})(),a={};a.time=J7.time(),a.node=process.versions.node,a.v8=process.versions.v8,Hx.cpuCurrentSpeed().then(i=>{a.cpuCurrentSpeed=i,s()}),dPr.users().then(i=>{a.users=i,s()}),R0e.processes().then(i=>{a.processes=i,s()}),Hx.currentLoad().then(i=>{a.currentLoad=i,s()}),Q5||Hx.cpuTemperature().then(i=>{a.temp=i,s()}),!D0e&&!I0e&&!O0e&&!Q5&&X7.networkStats(e).then(i=>{a.networkStats=i,s()}),Q5||X7.networkConnections().then(i=>{a.networkConnections=i,s()}),c7e.mem().then(i=>{a.mem=i,s()}),Q5||uPr().then(i=>{a.battery=i,s()}),Q5||R0e.services(t).then(i=>{a.services=i,s()}),Q5||q5.fsSize().then(i=>{a.fsSize=i,s()}),!a7e&&!D0e&&!I0e&&!O0e&&!Q5&&q5.fsStats().then(i=>{a.fsStats=i,s()}),!a7e&&!D0e&&!I0e&&!O0e&&!Q5&&q5.disksIO().then(i=>{a.disksIO=i,s()}),!D0e&&!I0e&&!O0e&&!Q5&&l7e.wifiNetworks().then(i=>{a.wifiNetworks=i,s()}),DCt.inetLatency().then(i=>{a.inetLatency=i,s()})})})}function V3o(t,e,r){return new Promise(o=>{process.nextTick(()=>{let s={};e&&lk.isFunction(e)&&!r&&(r=e,e=""),t&&lk.isFunction(t)&&!e&&!r&&(r=t,t="",e=""),APr().then(a=>{s=a,vPr(t,e).then(i=>{for(let n in i)({}).hasOwnProperty.call(i,n)&&(s[n]=i[n]);r&&r(s),o(s)})})})})}function bPr(t,e){return new Promise(r=>{process.nextTick(()=>{let o=Object.keys(t).filter(s=>({}).hasOwnProperty.call(Qi,s)).map(s=>{let a=t[s].substring(t[s].lastIndexOf("(")+1,t[s].lastIndexOf(")")),i=s.indexOf(")")>=0?s.split(")")[1].trim():s;return i=s.indexOf("|")>=0?s.split("|")[0].trim():i,a?Qi[i](a):Qi[i]("")});Promise.all(o).then(s=>{let a={},i=0;for(let n in t)if({}.hasOwnProperty.call(t,n)&&{}.hasOwnProperty.call(Qi,n)&&s.length>i){if(t[n]==="*"||t[n]==="all")a[n]=s[i];else{let c=t[n],u="",f=[];if(c.indexOf(")")>=0&&(c=c.split(")")[1].trim()),c.indexOf("|")>=0&&(u=c.split("|")[1].trim(),f=u.split(":"),c=c.split("|")[0].trim()),c=c.replace(/,/g," ").replace(/ +/g," ").split(" "),s[i])if(Array.isArray(s[i])){let d=[];s[i].forEach(p=>{let h={};if(c.length===1&&(c[0]==="*"||c[0]==="all")?h=p:c.forEach(m=>{({}).hasOwnProperty.call(p,m)&&(h[m]=p[m])}),u&&f.length===2){if({}.hasOwnProperty.call(h,f[0].trim())){let m=h[f[0].trim()];typeof m=="number"?m===parseFloat(f[1].trim())&&d.push(h):typeof m=="string"&&m.toLowerCase()===f[1].trim().toLowerCase()&&d.push(h)}}else d.push(h)}),a[n]=d}else{let d={};c.forEach(p=>{({}).hasOwnProperty.call(s[i],p)&&(d[p]=s[i][p])}),a[n]=d}else a[n]={}}i++}e&&e(a),r(a)})})})}function G3o(t,e,r){let o=null;return setInterval(()=>{bPr(t).then(a=>{JSON.stringify(o)!==JSON.stringify(a)&&(o=Object.assign({},a),r(a))})},e)}Qi.version=yPr;Qi.system=ck.system;Qi.bios=ck.bios;Qi.baseboard=ck.baseboard;Qi.chassis=ck.chassis;Qi.time=J7.time;Qi.osInfo=J7.osInfo;Qi.versions=J7.versions;Qi.shell=J7.shell;Qi.uuid=J7.uuid;Qi.cpu=Hx.cpu;Qi.cpuFlags=Hx.cpuFlags;Qi.cpuCache=Hx.cpuCache;Qi.cpuCurrentSpeed=Hx.cpuCurrentSpeed;Qi.cpuTemperature=Hx.cpuTemperature;Qi.currentLoad=Hx.currentLoad;Qi.fullLoad=Hx.fullLoad;Qi.mem=c7e.mem;Qi.memLayout=c7e.memLayout;Qi.battery=uPr;Qi.graphics=fPr.graphics;Qi.fsSize=q5.fsSize;Qi.fsOpenFiles=q5.fsOpenFiles;Qi.blockDevices=q5.blockDevices;Qi.fsStats=q5.fsStats;Qi.disksIO=q5.disksIO;Qi.diskLayout=q5.diskLayout;Qi.networkInterfaceDefault=X7.networkInterfaceDefault;Qi.networkGatewayDefault=X7.networkGatewayDefault;Qi.networkInterfaces=X7.networkInterfaces;Qi.networkStats=X7.networkStats;Qi.networkConnections=X7.networkConnections;Qi.wifiNetworks=l7e.wifiNetworks;Qi.wifiInterfaces=l7e.wifiInterfaces;Qi.wifiConnections=l7e.wifiConnections;Qi.services=R0e.services;Qi.processes=R0e.processes;Qi.processLoad=R0e.processLoad;Qi.users=dPr.users;Qi.inetChecksite=DCt.inetChecksite;Qi.inetLatency=DCt.inetLatency;Qi.dockerInfo=KH.dockerInfo;Qi.dockerImages=KH.dockerImages;Qi.dockerContainers=KH.dockerContainers;Qi.dockerContainerStats=KH.dockerContainerStats;Qi.dockerContainerProcesses=KH.dockerContainerProcesses;Qi.dockerVolumes=KH.dockerVolumes;Qi.dockerAll=KH.dockerAll;Qi.vboxInfo=H3o.vboxInfo;Qi.printer=pPr.printer;Qi.usb=hPr.usb;Qi.audio=mPr.audio;Qi.bluetoothDevices=gPr.bluetoothDevices;Qi.getStaticData=APr;Qi.getDynamicData=vPr;Qi.getAllData=V3o;Qi.get=bPr;Qi.observe=G3o;Qi.powerShellStart=lk.powerShellStart;Qi.powerShellRelease=lk.powerShellRelease});async function OCt(){try{let{displays:t}=await SPr.default.graphics();if(!t?.length)return"-";let e=t.find(s=>s.main)||t[0],r=e.currentResX||e.resolutionX,o=e.currentResY||e.resolutionY;return r&&o?`${r}x${o}`:"-"}catch{return"-"}}var SPr,RCt=j(()=>{"use strict";SPr=we(EPr(),1)});async function u7e(){let t=new AbortController,e=setTimeout(()=>t.abort(),3e3);try{let s=(await(await fetch("https://log.mmstat.com/v.gif",{signal:t.signal})).headers.getSetCookie()).find(a=>a.startsWith("cna="));return s?s.split(";")?.[0]?.split("=")?.[1]:void 0}catch{return}finally{clearTimeout(e)}}async function xPr({cna:t,userId:e,iFlowEnv:r}){if(!(!t||process.env.DISABLE_SEND_PV))try{let o=process.env.IFLOW_NON_INTERACTIVE==="true",a=["logtype=1","title=iFlow-CLI","pre=-",`scr=${await OCt()}`,`cna=${t}`,`spm-cnt=${o?"a2110qe.33796382.46182003.0.0":"a2110qe.32214347.46097794.0.0"}`,"aplus","pid=iflow",`_user_id=${e}`,`cache=${Math.floor(268435456*Math.random()).toString(16)}`,"sidx=aplusSidex","ckx=aplusCkx",`platformType=${process.env.IFLOW_RUN_IN||"pc"}`,`device_model=${W3o[process.platform]||process.platform}`,`os=${j3o[process.platform]||process.platform}`,`o=${$3o[process.platform]||process.platform}`,`node_version=${process.version}`,`language=${process.env.LANG}`,`interactive=${o?0:1}`,`iFlowEnv=${r}`,"_g_encode=utf-8"].join("&");await fetch("https://log.mmstat.com/v.gif",{method:"POST",headers:{"content-type":"text/plain;charset=UTF-8","cache-control":"no-cache"},body:a})}catch{}}var j3o,$3o,W3o,NCt=j(()=>{"use strict";RCt();j3o={darwin:encodeURIComponent("Mac OS X"),win32:"Windows",linux:"Linux"},$3o={darwin:"mac",win32:"win"},W3o={darwin:"Macintosh",win32:"Windows",linux:"Linux"}});var _Pr,CPr=j(()=>{_Pr=typeof globalThis=="object"?globalThis:global});var TPr=j(()=>{CPr()});var wPr=j(()=>{TPr()});var Z7,PCt=j(()=>{Z7="1.9.0"});function z3o(t){var e=new Set([t]),r=new Set,o=t.match(IPr);if(!o)return function(){return!1};var s={major:+o[1],minor:+o[2],patch:+o[3],prerelease:o[4]};if(s.prerelease!=null)return function(c){return c===t};function a(n){return r.add(n),!1}function i(n){return e.add(n),!0}return function(c){if(e.has(c))return!0;if(r.has(c))return!1;var u=c.match(IPr);if(!u)return a(c);var f={major:+u[1],minor:+u[2],patch:+u[3],prerelease:u[4]};return f.prerelease!=null||s.major!==f.major?a(c):s.major===0?s.minor===f.minor&&s.patch<=f.patch?i(c):a(c):s.minor<=f.minor?i(c):a(c)}}var IPr,DPr,OPr=j(()=>{PCt();IPr=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;DPr=z3o(Z7)});function H5(t,e,r,o){var s;o===void 0&&(o=!1);var a=B0e[P0e]=(s=B0e[P0e])!==null&&s!==void 0?s:{version:Z7};if(!o&&a[t]){var i=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(i.stack||i.message),!1}if(a.version!==Z7){var i=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+Z7);return r.error(i.stack||i.message),!1}return a[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+Z7+"."),!0}function RE(t){var e,r,o=(e=B0e[P0e])===null||e===void 0?void 0:e.version;if(!(!o||!DPr(o)))return(r=B0e[P0e])===null||r===void 0?void 0:r[t]}function V5(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+Z7+".");var r=B0e[P0e];r&&delete r[t]}var K3o,P0e,B0e,YH=j(()=>{wPr();PCt();OPr();K3o=Z7.split(".")[0],P0e=Symbol.for("opentelemetry.js.api."+K3o),B0e=_Pr});function k0e(t,e,r){var o=RE("diag");if(o)return r.unshift(e),o[t].apply(o,J3o([],Y3o(r),!1))}var Y3o,J3o,RPr,NPr=j(()=>{YH();Y3o=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},J3o=function(t,e,r){if(r||arguments.length===2)for(var o=0,s=e.length,a;o<s;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return t.concat(a||Array.prototype.slice.call(e))},RPr=(function(){function t(e){this._namespace=e.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return k0e("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return k0e("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return k0e("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return k0e("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return k0e("verbose",this._namespace,e)},t})()});var Sm,f7e=j(()=>{(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(Sm||(Sm={}))});function PPr(t,e){t<Sm.NONE?t=Sm.NONE:t>Sm.ALL&&(t=Sm.ALL),e=e||{};function r(o,s){var a=e[o];return typeof a=="function"&&t>=s?a.bind(e):function(){}}return{error:r("error",Sm.ERROR),warn:r("warn",Sm.WARN),info:r("info",Sm.INFO),debug:r("debug",Sm.DEBUG),verbose:r("verbose",Sm.VERBOSE)}}var BPr=j(()=>{f7e()});var X3o,Z3o,evo,Y1,JH=j(()=>{NPr();BPr();f7e();YH();X3o=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Z3o=function(t,e,r){if(r||arguments.length===2)for(var o=0,s=e.length,a;o<s;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return t.concat(a||Array.prototype.slice.call(e))},evo="diag",Y1=(function(){function t(){function e(s){return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var n=RE("diag");if(n)return n[s].apply(n,Z3o([],X3o(a),!1))}}var r=this,o=function(s,a){var i,n,c;if(a===void 0&&(a={logLevel:Sm.INFO}),s===r){var u=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((i=u.stack)!==null&&i!==void 0?i:u.message),!1}typeof a=="number"&&(a={logLevel:a});var f=RE("diag"),d=PPr((n=a.logLevel)!==null&&n!==void 0?n:Sm.INFO,s);if(f&&!a.suppressOverrideMessage){var p=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";f.warn("Current logger will be overwritten from "+p),d.warn("Current logger will overwrite one already registered from "+p)}return H5("diag",d,r,!0)};r.setLogger=o,r.disable=function(){V5(evo,r)},r.createComponentLogger=function(s){return new RPr(s)},r.verbose=e("verbose"),r.debug=e("debug"),r.info=e("info"),r.warn=e("warn"),r.error=e("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t})()});var tvo,rvo,kPr,MPr=j(()=>{tvo=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},rvo=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},kPr=(function(){function t(e){this._entries=e?new Map(e):new Map}return t.prototype.getEntry=function(e){var r=this._entries.get(e);if(r)return Object.assign({},r)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var r=tvo(e,2),o=r[0],s=r[1];return[o,s]})},t.prototype.setEntry=function(e,r){var o=new t(this._entries);return o._entries.set(e,r),o},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=new t(this._entries);try{for(var i=rvo(o),n=i.next();!n.done;n=i.next()){var c=n.value;a._entries.delete(c)}}catch(u){e={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return a},t.prototype.clear=function(){return new t},t})()});var LPr,UPr=j(()=>{LPr=Symbol("BaggageEntryMetadata")});function FPr(t){return t===void 0&&(t={}),new kPr(new Map(Object.entries(t)))}function QPr(t){return typeof t!="string"&&(nvo.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:LPr,toString:function(){return t}}}var nvo,BCt=j(()=>{JH();MPr();UPr();nvo=Y1.instance()});function Vee(t){return Symbol.for(t)}var ivo,d7e,M0e=j(()=>{ivo=(function(){function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(o){return r._currentContext.get(o)},r.setValue=function(o,s){var a=new t(r._currentContext);return a._currentContext.set(o,s),a},r.deleteValue=function(o){var s=new t(r._currentContext);return s._currentContext.delete(o),s}}return t})(),d7e=new ivo});var kCt,L0e,qPr=j(()=>{kCt=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],L0e=(function(){function t(){function e(o){return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];if(console){var i=console[o];if(typeof i!="function"&&(i=console.log),typeof i=="function")return i.apply(console,s)}}}for(var r=0;r<kCt.length;r++)this[kCt[r].n]=e(kCt[r].c)}return t})()});function HPr(){return LCt}var XH,ovo,p7e,svo,avo,cvo,lvo,MCt,uvo,fvo,dvo,LCt,pvo,hvo,mvo,gvo,yvo,Avo,vvo,UCt=j(()=>{XH=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(o[a]=s[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})(),ovo=(function(){function t(){}return t.prototype.createGauge=function(e,r){return hvo},t.prototype.createHistogram=function(e,r){return mvo},t.prototype.createCounter=function(e,r){return pvo},t.prototype.createUpDownCounter=function(e,r){return gvo},t.prototype.createObservableGauge=function(e,r){return Avo},t.prototype.createObservableCounter=function(e,r){return yvo},t.prototype.createObservableUpDownCounter=function(e,r){return vvo},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t})(),p7e=(function(){function t(){}return t})(),svo=(function(t){XH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,o){},e})(p7e),avo=(function(t){XH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,o){},e})(p7e),cvo=(function(t){XH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,o){},e})(p7e),lvo=(function(t){XH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,o){},e})(p7e),MCt=(function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t})(),uvo=(function(t){XH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(MCt),fvo=(function(t){XH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(MCt),dvo=(function(t){XH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(MCt),LCt=new ovo,pvo=new svo,hvo=new cvo,mvo=new lvo,gvo=new avo,yvo=new uvo,Avo=new fvo,vvo=new dvo});var e0,VPr=j(()=>{(function(t){t[t.INT=0]="INT",t[t.DOUBLE=1]="DOUBLE"})(e0||(e0={}))});var h7e,m7e,FCt=j(()=>{h7e={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},m7e={set:function(t,e,r){t!=null&&(t[e]=r)}}});var bvo,Evo,GPr,jPr=j(()=>{M0e();bvo=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Evo=function(t,e,r){if(r||arguments.length===2)for(var o=0,s=e.length,a;o<s;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return t.concat(a||Array.prototype.slice.call(e))},GPr=(function(){function t(){}return t.prototype.active=function(){return d7e},t.prototype.with=function(e,r,o){for(var s=[],a=3;a<arguments.length;a++)s[a-3]=arguments[a];return r.call.apply(r,Evo([o],bvo(s),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t})()});var Svo,xvo,QCt,_vo,uk,U0e=j(()=>{jPr();YH();JH();Svo=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},xvo=function(t,e,r){if(r||arguments.length===2)for(var o=0,s=e.length,a;o<s;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return t.concat(a||Array.prototype.slice.call(e))},QCt="context",_vo=new GPr,uk=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return H5(QCt,e,Y1.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(e,r,o){for(var s,a=[],i=3;i<arguments.length;i++)a[i-3]=arguments[i];return(s=this._getContextManager()).with.apply(s,xvo([e,r,o],Svo(a),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return RE(QCt)||_vo},t.prototype.disable=function(){this._getContextManager().disable(),V5(QCt,Y1.instance())},t})()});var Gee,qCt=j(()=>{(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(Gee||(Gee={}))});var F0e,Q0e,g7e,y7e=j(()=>{qCt();F0e="0000000000000000",Q0e="00000000000000000000000000000000",g7e={traceId:Q0e,spanId:F0e,traceFlags:Gee.NONE}});var fk,A7e=j(()=>{y7e();fk=(function(){function t(e){e===void 0&&(e=g7e),this._spanContext=e}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,r){return this},t.prototype.setAttributes=function(e){return this},t.prototype.addEvent=function(e,r){return this},t.prototype.addLink=function(e){return this},t.prototype.addLinks=function(e){return this},t.prototype.setStatus=function(e){return this},t.prototype.updateName=function(e){return this},t.prototype.end=function(e){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(e,r){},t})()});function v7e(t){return t.getValue(HCt)||void 0}function $Pr(){return v7e(uk.getInstance().active())}function q0e(t,e){return t.setValue(HCt,e)}function WPr(t){return t.deleteValue(HCt)}function zPr(t,e){return q0e(t,new fk(e))}function b7e(t){var e;return(e=v7e(t))===null||e===void 0?void 0:e.spanContext()}var HCt,VCt=j(()=>{M0e();A7e();U0e();HCt=Vee("OpenTelemetry Context Key SPAN")});function GCt(t){return Cvo.test(t)&&t!==Q0e}function jCt(t){return Tvo.test(t)&&t!==F0e}function jee(t){return GCt(t.traceId)&&jCt(t.spanId)}function KPr(t){return new fk(t)}var Cvo,Tvo,E7e=j(()=>{y7e();A7e();Cvo=/^([0-9a-f]{32})$/i,Tvo=/^[0-9a-f]{16}$/i});function wvo(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var $Ct,S7e,WCt=j(()=>{U0e();VCt();A7e();E7e();$Ct=uk.getInstance(),S7e=(function(){function t(){}return t.prototype.startSpan=function(e,r,o){o===void 0&&(o=$Ct.active());var s=!!r?.root;if(s)return new fk;var a=o&&b7e(o);return wvo(a)&&jee(a)?new fk(a):new fk},t.prototype.startActiveSpan=function(e,r,o,s){var a,i,n;if(!(arguments.length<2)){arguments.length===2?n=r:arguments.length===3?(a=r,n=o):(a=r,i=o,n=s);var c=i??$Ct.active(),u=this.startSpan(e,a,c),f=q0e(c,u);return $Ct.with(f,n,void 0,u)}},t})()});var Ivo,x7e,zCt=j(()=>{WCt();Ivo=new S7e,x7e=(function(){function t(e,r,o,s){this._provider=e,this.name=r,this.version=o,this.options=s}return t.prototype.startSpan=function(e,r,o){return this._getTracer().startSpan(e,r,o)},t.prototype.startActiveSpan=function(e,r,o,s){var a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):Ivo},t})()});var YPr,JPr=j(()=>{WCt();YPr=(function(){function t(){}return t.prototype.getTracer=function(e,r,o){return new S7e},t})()});var Dvo,H0e,KCt=j(()=>{zCt();JPr();Dvo=new YPr,H0e=(function(){function t(){}return t.prototype.getTracer=function(e,r,o){var s;return(s=this.getDelegateTracer(e,r,o))!==null&&s!==void 0?s:new x7e(this,e,r,o)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:Dvo},t.prototype.setDelegate=function(e){this._delegate=e},t.prototype.getDelegateTracer=function(e,r,o){var s;return(s=this._delegate)===null||s===void 0?void 0:s.getTracer(e,r,o)},t})()});var _7e,XPr=j(()=>{(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(_7e||(_7e={}))});var C7e,ZPr=j(()=>{(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(C7e||(C7e={}))});var Vx,eBr=j(()=>{(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(Vx||(Vx={}))});function tBr(t){return Nvo.test(t)}function rBr(t){return Pvo.test(t)&&!Bvo.test(t)}var YCt,Ovo,Rvo,Nvo,Pvo,Bvo,nBr=j(()=>{YCt="[_0-9a-z-*/]",Ovo="[a-z]"+YCt+"{0,255}",Rvo="[a-z0-9]"+YCt+"{0,240}@[a-z]"+YCt+"{0,13}",Nvo=new RegExp("^(?:"+Ovo+"|"+Rvo+")$"),Pvo=/^[ -~]{0,255}[!-~]$/,Bvo=/,|=/});var iBr,kvo,oBr,sBr,aBr,cBr=j(()=>{nBr();iBr=32,kvo=512,oBr=",",sBr="=",aBr=(function(){function t(e){this._internalState=new Map,e&&this._parse(e)}return t.prototype.set=function(e,r){var o=this._clone();return o._internalState.has(e)&&o._internalState.delete(e),o._internalState.set(e,r),o},t.prototype.unset=function(e){var r=this._clone();return r._internalState.delete(e),r},t.prototype.get=function(e){return this._internalState.get(e)},t.prototype.serialize=function(){var e=this;return this._keys().reduce(function(r,o){return r.push(o+sBr+e.get(o)),r},[]).join(oBr)},t.prototype._parse=function(e){e.length>kvo||(this._internalState=e.split(oBr).reverse().reduce(function(r,o){var s=o.trim(),a=s.indexOf(sBr);if(a!==-1){var i=s.slice(0,a),n=s.slice(a+1,o.length);tBr(i)&&rBr(n)&&r.set(i,n)}return r},new Map),this._internalState.size>iBr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,iBr))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t})()});function lBr(t){return new aBr(t)}var uBr=j(()=>{cBr()});var J1,fBr=j(()=>{U0e();J1=uk.getInstance()});var Er,dBr=j(()=>{JH();Er=Y1.instance()});var Mvo,pBr,hBr=j(()=>{UCt();Mvo=(function(){function t(){}return t.prototype.getMeter=function(e,r,o){return LCt},t})(),pBr=new Mvo});var JCt,mBr,gBr=j(()=>{hBr();YH();JH();JCt="metrics",mBr=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return H5(JCt,e,Y1.instance())},t.prototype.getMeterProvider=function(){return RE(JCt)||pBr},t.prototype.getMeter=function(e,r,o){return this.getMeterProvider().getMeter(e,r,o)},t.prototype.disable=function(){V5(JCt,Y1.instance())},t})()});var V0e,yBr=j(()=>{gBr();V0e=mBr.getInstance()});var ABr,vBr=j(()=>{ABr=(function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t})()});function ZCt(t){return t.getValue(XCt)||void 0}function bBr(){return ZCt(uk.getInstance().active())}function EBr(t,e){return t.setValue(XCt,e)}function SBr(t){return t.deleteValue(XCt)}var XCt,xBr=j(()=>{U0e();M0e();XCt=Vee("OpenTelemetry Baggage Key")});var eTt,Lvo,_Br,CBr=j(()=>{YH();vBr();FCt();xBr();BCt();JH();eTt="propagation",Lvo=new ABr,_Br=(function(){function t(){this.createBaggage=FPr,this.getBaggage=ZCt,this.getActiveBaggage=bBr,this.setBaggage=EBr,this.deleteBaggage=SBr}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return H5(eTt,e,Y1.instance())},t.prototype.inject=function(e,r,o){return o===void 0&&(o=m7e),this._getGlobalPropagator().inject(e,r,o)},t.prototype.extract=function(e,r,o){return o===void 0&&(o=h7e),this._getGlobalPropagator().extract(e,r,o)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){V5(eTt,Y1.instance())},t.prototype._getGlobalPropagator=function(){return RE(eTt)||Lvo},t})()});var tTt,TBr=j(()=>{CBr();tTt=_Br.getInstance()});var rTt,wBr,IBr=j(()=>{YH();KCt();E7e();VCt();JH();rTt="trace",wBr=(function(){function t(){this._proxyTracerProvider=new H0e,this.wrapSpanContext=KPr,this.isSpanContextValid=jee,this.deleteSpan=WPr,this.getSpan=v7e,this.getActiveSpan=$Pr,this.getSpanContext=b7e,this.setSpan=q0e,this.setSpanContext=zPr}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=H5(rTt,this._proxyTracerProvider,Y1.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return RE(rTt)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){V5(rTt,Y1.instance()),this._proxyTracerProvider=new H0e},t})()});var s3,DBr=j(()=>{IBr();s3=wBr.getInstance()});var xt={};ss(xt,{DiagConsoleLogger:()=>L0e,DiagLogLevel:()=>Sm,INVALID_SPANID:()=>F0e,INVALID_SPAN_CONTEXT:()=>g7e,INVALID_TRACEID:()=>Q0e,ProxyTracer:()=>x7e,ProxyTracerProvider:()=>H0e,ROOT_CONTEXT:()=>d7e,SamplingDecision:()=>_7e,SpanKind:()=>C7e,SpanStatusCode:()=>Vx,TraceFlags:()=>Gee,ValueType:()=>e0,baggageEntryMetadataFromString:()=>QPr,context:()=>J1,createContextKey:()=>Vee,createNoopMeter:()=>HPr,createTraceState:()=>lBr,default:()=>Uvo,defaultTextMapGetter:()=>h7e,defaultTextMapSetter:()=>m7e,diag:()=>Er,isSpanContextValid:()=>jee,isValidSpanId:()=>jCt,isValidTraceId:()=>GCt,metrics:()=>V0e,propagation:()=>tTt,trace:()=>s3});var Uvo,ut=j(()=>{BCt();M0e();qPr();f7e();UCt();VPr();FCt();zCt();KCt();XPr();ZPr();eBr();qCt();uBr();E7e();y7e();fBr();dBr();yBr();TBr();DBr();Uvo={context:J1,diag:Er,metrics:V0e,propagation:tTt,trace:s3}});var z2,OBr,G0e,RBr,j0e,$0e,NBr,PBr,BBr,kBr,MBr,LBr,UBr,FBr,QBr,qBr,HBr,VBr,GBr,jBr,$Br,W0e=j(()=>{"use strict";z2="iflow-cli",OBr="iflow_cli.user_prompt",G0e="iflow_cli.tool_call",RBr="iflow_cli.api_request",j0e="iflow_cli.api_error",$0e="iflow_cli.api_response",NBr="iflow_cli.config",PBr="iflow_cli.flash_fallback",BBr="iflow_cli.next_speaker_check",kBr="iflow_cli.slash_command",MBr="iflow_cli.tool.call.count",LBr="iflow_cli.tool.call.latency",UBr="gen_ai.client.operation",FBr="gen_ai.client.operation.duration",QBr="gen_ai.client.token.usage",qBr="iflow_cli.session.count",HBr="iflow_cli.file.operation.count",VBr="iflow_cli.user_request.count",GBr="iflow_cli.user_request.latency",jBr="iflow_cli.user_experience.success",$Br="iflow_cli.user.identity"});import*as WBr from"os";function Gx(t){let e="0.3.14-beta.2",r={darwin:"macOS",win32:"Windows",linux:"Linux",freebsd:"FreeBSD",openbsd:"OpenBSD",sunos:"SunOS",aix:"AIX"},o=WBr.platform(),s=r[o]||o,a=t.getModel()||"unknown",i=!1,n=t.getContentGeneratorConfig?.();if(n){let c=n.authType,u=n.baseUrl||"";(c===br.LOGIN_WITH_IFLOW||c===br.IFLOW||c===br.OPENAI_COMPATIBLE&&u.includes("apis.iflow.cn"))&&(i=!0)}return{app_name:z2,tenant__:"gen_ai",version:e,platform:s,model_name:a,is_iflow_open_user:String(i)}}function zBr(){return nTt||(nTt=V0e.getMeter(z2)),nTt}function KBr(){if(F4)return;let t=zBr();t&&(iTt=t.createCounter(MBr,{description:"Counts tool calls, tagged by function name and success.",valueType:e0.INT}),oTt=t.createHistogram(LBr,{description:"Latency of tool calls in milliseconds.",unit:"ms",valueType:e0.INT}),z0e=t.createCounter(UBr,{description:"Counts API requests, tagged by model and status.",valueType:e0.INT}),K0e=t.createHistogram(FBr,{description:"Latency of API requests in milliseconds.",unit:"ms",valueType:e0.INT}),sTt=t.createCounter(QBr,{description:"Counts the total number of tokens used.",valueType:e0.INT}),aTt=t.createCounter(HBr,{description:"Counts file operations (create, read, update).",valueType:e0.INT}),cTt=t.createCounter(VBr,{description:"Counts user requests from prompt to completion.",valueType:e0.INT}),lTt=t.createHistogram(GBr,{description:"End-to-end latency of user requests in milliseconds.",unit:"ms",valueType:e0.INT}),uTt=t.createCounter(jBr,{description:"User experience success rate - counts successful user experiences including retries and fixes.",valueType:e0.INT}),fTt=t.createCounter($Br,{description:"User identity for tracking unique installations.",valueType:e0.INT}),F4=!0)}function T7e(t){let e=zBr();if(!e||!F4)return;e.createCounter(qBr,{description:"Count of CLI sessions started.",valueType:e0.INT}).add(1,Gx(t))}function YBr(t,e,r,o,s){if(!iTt||!oTt||!F4)return;let a={...Gx(t),function_name:e??"unknown",success:String(o),decision:s??"unknown"};iTt.add(1,a),oTt.record(r,{...Gx(t),function_name:e??"unknown"})}function $ee(t,e,r,o){!sTt||!F4||sTt.add(r,{...Gx(t),model:e??"unknown",type:o??"unknown"})}function JBr(t,e,r,o,s,a,i,n){if(!z0e||!K0e||!F4)return;let c={...Gx(t),model:e??"unknown",status_code:String(o??(s?"error":"ok"))};i!==void 0&&(c.http_status_code=String(i)),n!==void 0&&(c.business_code=String(n)),a&&(c.finish_reason=a),z0e.add(1,c);let u={...Gx(t),model:e??"unknown",http_status_code:String(i??200),finish_reason:a??"unknown"};n!=null&&(u.business_code=String(n)),K0e.record(r,u)}function XBr(t,e,r,o,s,a,i){if(!z0e||!K0e||!F4)return;let n={...Gx(t),model:e??"unknown",status_code:String(o??"error"),error:s??"unknown"};a!==void 0&&(n.http_status_code=String(a)),i!==void 0&&(n.business_code=String(i)),z0e.add(1,n);let c={...Gx(t),model:e??"unknown",http_status_code:String(a??0),error:s??"unknown"};i!=null&&(c.business_code=String(i)),K0e.record(r,c)}function ZH(t,e,r,o,s){if(!aTt||!F4)return;let a={...Gx(t),operation:e};r!==void 0&&(a.lines=String(r)),o!==void 0&&(a.mimetype=o),s!==void 0&&(a.extension=s),aTt.add(1,a)}function ZBr(t,e,r,o,s){if(!cTt||!lTt||!F4)return;let a={...Gx(t),prompt_id:e,success:String(o)};s&&(a.error=s),cTt.add(1,a),lTt.record(r,a)}function dTt(t,e,r=!1,o=!1,s){if(!uTt||!F4)return;let a={...Gx(t),success:String(e),had_retries:String(r),had_fixes:String(o)};s&&(a.final_error=s),uTt.add(1,a)}function ekr(t,e){if(!fTt||!F4)return;let r={...Gx(t),user_id:e};fTt.add(1,r)}var eO,nTt,iTt,oTt,z0e,K0e,sTt,aTt,cTt,lTt,uTt,fTt,F4,G5=j(()=>{"use strict";ut();W0e();IE();(function(t){t.CREATE="create",t.READ="read",t.UPDATE="update"})(eO||(eO={}));F4=!1});async function pTt(t,e,r){let o=w9e();try{let s=process.env.IFLOW_ENV||"",a=t.getCna();xPr({cna:a,userId:o,iFlowEnv:s})}catch(s){t.getDebugMode()&&console.error("Failed to send pv",s)}try{if(t.getDisableTelemetry())return;let s=t.getSessionId();ekr(t,o),await UH.startSession(s,o,e,r)}catch(s){t.getDebugMode()&&console.error("Failed to initialize CLI telemetry:",s)}}async function Y0e(t){try{if(t.getDisableTelemetry())return;await UH.endSession()}catch(e){t.getDebugMode()&&console.error("Failed to cleanup CLI telemetry:",e)}}async function w7e(t,e){if(!t.getDisableTelemetry())try{await UH.recordError(e)}catch(r){t.getDebugMode()&&console.error("Failed to record CLI error in telemetry:",r.message)}}var hTt=j(()=>{"use strict";E9e();L_t();NCt();G5();});var tkr=E(J0e=>{"use strict";Object.defineProperty(J0e,"__esModule",{value:!0});J0e.SeverityNumber=void 0;var Fvo;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(Fvo=J0e.SeverityNumber||(J0e.SeverityNumber={}))});var D7e=E(Wee=>{"use strict";Object.defineProperty(Wee,"__esModule",{value:!0});Wee.NOOP_LOGGER=Wee.NoopLogger=void 0;var I7e=class{emit(e){}};Wee.NoopLogger=I7e;Wee.NOOP_LOGGER=new I7e});var R7e=E(zee=>{"use strict";Object.defineProperty(zee,"__esModule",{value:!0});zee.NOOP_LOGGER_PROVIDER=zee.NoopLoggerProvider=void 0;var Qvo=D7e(),O7e=class{getLogger(e,r,o){return new Qvo.NoopLogger}};zee.NoopLoggerProvider=O7e;zee.NOOP_LOGGER_PROVIDER=new O7e});var gTt=E(N7e=>{"use strict";Object.defineProperty(N7e,"__esModule",{value:!0});N7e.ProxyLogger=void 0;var qvo=D7e(),mTt=class{constructor(e,r,o,s){this._provider=e,this.name=r,this.version=o,this.options=s}emit(e){this._getLogger().emit(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):qvo.NOOP_LOGGER}};N7e.ProxyLogger=mTt});var ATt=E(P7e=>{"use strict";Object.defineProperty(P7e,"__esModule",{value:!0});P7e.ProxyLoggerProvider=void 0;var Hvo=R7e(),Vvo=gTt(),yTt=class{getLogger(e,r,o){var s;return(s=this._getDelegateLogger(e,r,o))!==null&&s!==void 0?s:new Vvo.ProxyLogger(this,e,r,o)}_getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:Hvo.NOOP_LOGGER_PROVIDER}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,r,o){var s;return(s=this._delegate)===null||s===void 0?void 0:s.getLogger(e,r,o)}};P7e.ProxyLoggerProvider=yTt});var rkr=E(B7e=>{"use strict";Object.defineProperty(B7e,"__esModule",{value:!0});B7e._globalThis=void 0;B7e._globalThis=typeof globalThis=="object"?globalThis:global});var nkr=E(k7e=>{"use strict";Object.defineProperty(k7e,"__esModule",{value:!0});k7e._globalThis=void 0;var Gvo=rkr();Object.defineProperty(k7e,"_globalThis",{enumerable:!0,get:function(){return Gvo._globalThis}})});var ikr=E(M7e=>{"use strict";Object.defineProperty(M7e,"__esModule",{value:!0});M7e._globalThis=void 0;var jvo=nkr();Object.defineProperty(M7e,"_globalThis",{enumerable:!0,get:function(){return jvo._globalThis}})});var okr=E(j5=>{"use strict";Object.defineProperty(j5,"__esModule",{value:!0});j5.API_BACKWARDS_COMPATIBILITY_VERSION=j5.makeGetter=j5._global=j5.GLOBAL_LOGS_API_KEY=void 0;var $vo=ikr();j5.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");j5._global=$vo._globalThis;function Wvo(t,e,r){return o=>o===t?e:r}j5.makeGetter=Wvo;j5.API_BACKWARDS_COMPATIBILITY_VERSION=1});var akr=E(L7e=>{"use strict";Object.defineProperty(L7e,"__esModule",{value:!0});L7e.LogsAPI=void 0;var jx=okr(),zvo=R7e(),skr=ATt(),vTt=class t{constructor(){this._proxyLoggerProvider=new skr.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return jx._global[jx.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(jx._global[jx.GLOBAL_LOGS_API_KEY]=(0,jx.makeGetter)(jx.API_BACKWARDS_COMPATIBILITY_VERSION,e,zvo.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=jx._global[jx.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(jx._global,jx.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,o){return this.getLoggerProvider().getLogger(e,r,o)}disable(){delete jx._global[jx.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new skr.ProxyLoggerProvider}};L7e.LogsAPI=vTt});var Kee=E(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});t0.logs=t0.ProxyLoggerProvider=t0.ProxyLogger=t0.NoopLoggerProvider=t0.NOOP_LOGGER_PROVIDER=t0.NoopLogger=t0.NOOP_LOGGER=t0.SeverityNumber=void 0;var Kvo=tkr();Object.defineProperty(t0,"SeverityNumber",{enumerable:!0,get:function(){return Kvo.SeverityNumber}});var ckr=D7e();Object.defineProperty(t0,"NOOP_LOGGER",{enumerable:!0,get:function(){return ckr.NOOP_LOGGER}});Object.defineProperty(t0,"NoopLogger",{enumerable:!0,get:function(){return ckr.NoopLogger}});var lkr=R7e();Object.defineProperty(t0,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return lkr.NOOP_LOGGER_PROVIDER}});Object.defineProperty(t0,"NoopLoggerProvider",{enumerable:!0,get:function(){return lkr.NoopLoggerProvider}});var Yvo=gTt();Object.defineProperty(t0,"ProxyLogger",{enumerable:!0,get:function(){return Yvo.ProxyLogger}});var Jvo=ATt();Object.defineProperty(t0,"ProxyLoggerProvider",{enumerable:!0,get:function(){return Jvo.ProxyLoggerProvider}});var Xvo=akr();t0.logs=Xvo.LogsAPI.getInstance()});function Ph(t){let e={},r=t.length;for(let o=0;o<r;o++){let s=t[o];s&&(e[String(s).toUpperCase().replace(/[-.]/g,"_")]=s)}return e}var bTt=j(()=>{});var ukr,fkr,dkr,pkr,hkr,mkr,gkr,ykr,Akr,vkr,bkr,Ekr,Skr,xkr,_kr,Ckr,Tkr,wkr,Ikr,Dkr,Okr,Rkr,Nkr,Pkr,Bkr,kkr,Mkr,Lkr,Ukr,Fkr,Qkr,qkr,Hkr,Vkr,Gkr,jkr,$kr,Wkr,zkr,Kkr,Ykr,Jkr,Xkr,Zkr,eMr,tMr,rMr,nMr,iMr,oMr,sMr,aMr,cMr,lMr,uMr,fMr,dMr,pMr,hMr,mMr,gMr,yMr,AMr,vMr,bMr,EMr,SMr,xMr,_Mr,CMr,TMr,wMr,IMr,DMr,OMr,RMr,NMr,PMr,BMr,kMr,MMr,LMr,UMr,FMr,QMr,qMr,HMr,VMr,GMr,jMr,$Mr,WMr,zMr,KMr,YMr,JMr,XMr,ZMr,eLr,tLr,rLr,nLr,iLr,oLr,sLr,aLr,cLr,lLr,uLr,fLr,dLr,pLr,hLr,mLr,gLr,yLr,ALr,vLr,bLr,ELr,SLr,xLr,_Lr,CLr,TLr,wLr,ILr,DLr,Zvo,ebo,tbo,rbo,nbo,ibo,obo,sbo,abo,cbo,lbo,ubo,fbo,dbo,pbo,hbo,mbo,gbo,ybo,Abo,vbo,bbo,Ebo,Sbo,xbo,_bo,Cbo,Tbo,wbo,Ibo,Dbo,Obo,Rbo,Nbo,Pbo,Bbo,kbo,Mbo,Lbo,Ubo,Fbo,Qbo,qbo,Hbo,Vbo,Gbo,jbo,$bo,Wbo,zbo,Kbo,Ybo,Jbo,Xbo,Zbo,eEo,tEo,rEo,nEo,iEo,oEo,sEo,aEo,cEo,lEo,uEo,fEo,dEo,pEo,hEo,mEo,gEo,yEo,AEo,vEo,bEo,EEo,SEo,xEo,_Eo,CEo,TEo,wEo,IEo,DEo,OEo,REo,NEo,PEo,BEo,kEo,MEo,LEo,UEo,FEo,QEo,qEo,HEo,VEo,GEo,jEo,$Eo,WEo,zEo,KEo,YEo,JEo,XEo,ZEo,eSo,tSo,rSo,nSo,iSo,oSo,sSo,aSo,cSo,lSo,uSo,fSo,dSo,pSo,hSo,mSo,gSo,ySo,ASo,Yee,OLr,RLr,NLr,PLr,BLr,kLr,MLr,LLr,ULr,FLr,QLr,qLr,HLr,VLr,GLr,jLr,$Lr,WLr,zLr,KLr,YLr,JLr,XLr,ZLr,eUr,tUr,rUr,nUr,iUr,oUr,sUr,aUr,cUr,lUr,uUr,fUr,dUr,pUr,hUr,mUr,gUr,yUr,AUr,vUr,bUr,EUr,SUr,vSo,bSo,ESo,SSo,xSo,_So,CSo,TSo,wSo,ISo,DSo,OSo,RSo,NSo,PSo,BSo,kSo,MSo,LSo,USo,FSo,QSo,qSo,HSo,VSo,GSo,jSo,$So,WSo,zSo,KSo,YSo,JSo,XSo,ZSo,exo,txo,rxo,nxo,ixo,oxo,sxo,axo,cxo,lxo,uxo,fxo,dxo,xUr,_Ur,CUr,TUr,wUr,IUr,DUr,OUr,RUr,NUr,PUr,pxo,hxo,mxo,gxo,yxo,Axo,vxo,bxo,Exo,Sxo,xxo,_xo,BUr,kUr,MUr,LUr,UUr,Cxo,Txo,wxo,Ixo,Dxo,Oxo,FUr,QUr,qUr,Rxo,Nxo,Pxo,Bxo,HUr,VUr,GUr,jUr,kxo,Mxo,Lxo,Uxo,Fxo,$Ur,WUr,zUr,KUr,YUr,JUr,XUr,Qxo,qxo,Hxo,Vxo,Gxo,jxo,$xo,Wxo,ZUr,eFr,tFr,rFr,nFr,zxo,Kxo,Yxo,Jxo,Xxo,Zxo,iFr,oFr,sFr,aFr,cFr,lFr,uFr,fFr,dFr,pFr,hFr,mFr,gFr,yFr,AFr,vFr,bFr,EFr,SFr,xFr,_Fr,e_o,t_o,r_o,n_o,i_o,o_o,s_o,a_o,c_o,l_o,u_o,f_o,d_o,p_o,h_o,m_o,g_o,y_o,A_o,v_o,b_o,E_o,CFr,TFr,wFr,IFr,DFr,S_o,x_o,__o,C_o,T_o,w_o,OFr,RFr,I_o,D_o,O_o,NFr,PFr,R_o,N_o,P_o,BFr,kFr,MFr,LFr,UFr,FFr,QFr,qFr,HFr,VFr,GFr,jFr,$Fr,WFr,zFr,KFr,YFr,B_o,k_o,M_o,L_o,U_o,F_o,Q_o,q_o,H_o,V_o,G_o,j_o,$_o,W_o,z_o,K_o,Y_o,J_o,JFr,XFr,X_o,Z_o,eCo,ZFr=j(()=>{bTt();ukr="aws.lambda.invoked_arn",fkr="db.system",dkr="db.connection_string",pkr="db.user",hkr="db.jdbc.driver_classname",mkr="db.name",gkr="db.statement",ykr="db.operation",Akr="db.mssql.instance_name",vkr="db.cassandra.keyspace",bkr="db.cassandra.page_size",Ekr="db.cassandra.consistency_level",Skr="db.cassandra.table",xkr="db.cassandra.idempotence",_kr="db.cassandra.speculative_execution_count",Ckr="db.cassandra.coordinator.id",Tkr="db.cassandra.coordinator.dc",wkr="db.hbase.namespace",Ikr="db.redis.database_index",Dkr="db.mongodb.collection",Okr="db.sql.table",Rkr="exception.type",Nkr="exception.message",Pkr="exception.stacktrace",Bkr="exception.escaped",kkr="faas.trigger",Mkr="faas.execution",Lkr="faas.document.collection",Ukr="faas.document.operation",Fkr="faas.document.time",Qkr="faas.document.name",qkr="faas.time",Hkr="faas.cron",Vkr="faas.coldstart",Gkr="faas.invoked_name",jkr="faas.invoked_provider",$kr="faas.invoked_region",Wkr="net.transport",zkr="net.peer.ip",Kkr="net.peer.port",Ykr="net.peer.name",Jkr="net.host.ip",Xkr="net.host.port",Zkr="net.host.name",eMr="net.host.connection.type",tMr="net.host.connection.subtype",rMr="net.host.carrier.name",nMr="net.host.carrier.mcc",iMr="net.host.carrier.mnc",oMr="net.host.carrier.icc",sMr="peer.service",aMr="enduser.id",cMr="enduser.role",lMr="enduser.scope",uMr="thread.id",fMr="thread.name",dMr="code.function",pMr="code.namespace",hMr="code.filepath",mMr="code.lineno",gMr="http.method",yMr="http.url",AMr="http.target",vMr="http.host",bMr="http.scheme",EMr="http.status_code",SMr="http.flavor",xMr="http.user_agent",_Mr="http.request_content_length",CMr="http.request_content_length_uncompressed",TMr="http.response_content_length",wMr="http.response_content_length_uncompressed",IMr="http.server_name",DMr="http.route",OMr="http.client_ip",RMr="aws.dynamodb.table_names",NMr="aws.dynamodb.consumed_capacity",PMr="aws.dynamodb.item_collection_metrics",BMr="aws.dynamodb.provisioned_read_capacity",kMr="aws.dynamodb.provisioned_write_capacity",MMr="aws.dynamodb.consistent_read",LMr="aws.dynamodb.projection",UMr="aws.dynamodb.limit",FMr="aws.dynamodb.attributes_to_get",QMr="aws.dynamodb.index_name",qMr="aws.dynamodb.select",HMr="aws.dynamodb.global_secondary_indexes",VMr="aws.dynamodb.local_secondary_indexes",GMr="aws.dynamodb.exclusive_start_table",jMr="aws.dynamodb.table_count",$Mr="aws.dynamodb.scan_forward",WMr="aws.dynamodb.segment",zMr="aws.dynamodb.total_segments",KMr="aws.dynamodb.count",YMr="aws.dynamodb.scanned_count",JMr="aws.dynamodb.attribute_definitions",XMr="aws.dynamodb.global_secondary_index_updates",ZMr="messaging.system",eLr="messaging.destination",tLr="messaging.destination_kind",rLr="messaging.temp_destination",nLr="messaging.protocol",iLr="messaging.protocol_version",oLr="messaging.url",sLr="messaging.message_id",aLr="messaging.conversation_id",cLr="messaging.message_payload_size_bytes",lLr="messaging.message_payload_compressed_size_bytes",uLr="messaging.operation",fLr="messaging.consumer_id",dLr="messaging.rabbitmq.routing_key",pLr="messaging.kafka.message_key",hLr="messaging.kafka.consumer_group",mLr="messaging.kafka.client_id",gLr="messaging.kafka.partition",yLr="messaging.kafka.tombstone",ALr="rpc.system",vLr="rpc.service",bLr="rpc.method",ELr="rpc.grpc.status_code",SLr="rpc.jsonrpc.version",xLr="rpc.jsonrpc.request_id",_Lr="rpc.jsonrpc.error_code",CLr="rpc.jsonrpc.error_message",TLr="message.type",wLr="message.id",ILr="message.compressed_size",DLr="message.uncompressed_size",Zvo=ukr,ebo=fkr,tbo=dkr,rbo=pkr,nbo=hkr,ibo=mkr,obo=gkr,sbo=ykr,abo=Akr,cbo=vkr,lbo=bkr,ubo=Ekr,fbo=Skr,dbo=xkr,pbo=_kr,hbo=Ckr,mbo=Tkr,gbo=wkr,ybo=Ikr,Abo=Dkr,vbo=Okr,bbo=Rkr,Ebo=Nkr,Sbo=Pkr,xbo=Bkr,_bo=kkr,Cbo=Mkr,Tbo=Lkr,wbo=Ukr,Ibo=Fkr,Dbo=Qkr,Obo=qkr,Rbo=Hkr,Nbo=Vkr,Pbo=Gkr,Bbo=jkr,kbo=$kr,Mbo=Wkr,Lbo=zkr,Ubo=Kkr,Fbo=Ykr,Qbo=Jkr,qbo=Xkr,Hbo=Zkr,Vbo=eMr,Gbo=tMr,jbo=rMr,$bo=nMr,Wbo=iMr,zbo=oMr,Kbo=sMr,Ybo=aMr,Jbo=cMr,Xbo=lMr,Zbo=uMr,eEo=fMr,tEo=dMr,rEo=pMr,nEo=hMr,iEo=mMr,oEo=gMr,sEo=yMr,aEo=AMr,cEo=vMr,lEo=bMr,uEo=EMr,fEo=SMr,dEo=xMr,pEo=_Mr,hEo=CMr,mEo=TMr,gEo=wMr,yEo=IMr,AEo=DMr,vEo=OMr,bEo=RMr,EEo=NMr,SEo=PMr,xEo=BMr,_Eo=kMr,CEo=MMr,TEo=LMr,wEo=UMr,IEo=FMr,DEo=QMr,OEo=qMr,REo=HMr,NEo=VMr,PEo=GMr,BEo=jMr,kEo=$Mr,MEo=WMr,LEo=zMr,UEo=KMr,FEo=YMr,QEo=JMr,qEo=XMr,HEo=ZMr,VEo=eLr,GEo=tLr,jEo=rLr,$Eo=nLr,WEo=iLr,zEo=oLr,KEo=sLr,YEo=aLr,JEo=cLr,XEo=lLr,ZEo=uLr,eSo=fLr,tSo=dLr,rSo=pLr,nSo=hLr,iSo=mLr,oSo=gLr,sSo=yLr,aSo=ALr,cSo=vLr,lSo=bLr,uSo=ELr,fSo=SLr,dSo=xLr,pSo=_Lr,hSo=CLr,mSo=TLr,gSo=wLr,ySo=ILr,ASo=DLr,Yee=Ph([ukr,fkr,dkr,pkr,hkr,mkr,gkr,ykr,Akr,vkr,bkr,Ekr,Skr,xkr,_kr,Ckr,Tkr,wkr,Ikr,Dkr,Okr,Rkr,Nkr,Pkr,Bkr,kkr,Mkr,Lkr,Ukr,Fkr,Qkr,qkr,Hkr,Vkr,Gkr,jkr,$kr,Wkr,zkr,Kkr,Ykr,Jkr,Xkr,Zkr,eMr,tMr,rMr,nMr,iMr,oMr,sMr,aMr,cMr,lMr,uMr,fMr,dMr,pMr,hMr,mMr,gMr,yMr,AMr,vMr,bMr,EMr,SMr,xMr,_Mr,CMr,TMr,wMr,IMr,DMr,OMr,RMr,NMr,PMr,BMr,kMr,MMr,LMr,UMr,FMr,QMr,qMr,HMr,VMr,GMr,jMr,$Mr,WMr,zMr,KMr,YMr,JMr,XMr,ZMr,eLr,tLr,rLr,nLr,iLr,oLr,sLr,aLr,cLr,lLr,uLr,fLr,dLr,pLr,hLr,mLr,gLr,yLr,ALr,vLr,bLr,ELr,SLr,xLr,_Lr,CLr,TLr,wLr,ILr,DLr]),OLr="other_sql",RLr="mssql",NLr="mysql",PLr="oracle",BLr="db2",kLr="postgresql",MLr="redshift",LLr="hive",ULr="cloudscape",FLr="hsqldb",QLr="progress",qLr="maxdb",HLr="hanadb",VLr="ingres",GLr="firstsql",jLr="edb",$Lr="cache",WLr="adabas",zLr="firebird",KLr="derby",YLr="filemaker",JLr="informix",XLr="instantdb",ZLr="interbase",eUr="mariadb",tUr="netezza",rUr="pervasive",nUr="pointbase",iUr="sqlite",oUr="sybase",sUr="teradata",aUr="vertica",cUr="h2",lUr="coldfusion",uUr="cassandra",fUr="hbase",dUr="mongodb",pUr="redis",hUr="couchbase",mUr="couchdb",gUr="cosmosdb",yUr="dynamodb",AUr="neo4j",vUr="geode",bUr="elasticsearch",EUr="memcached",SUr="cockroachdb",vSo=OLr,bSo=RLr,ESo=NLr,SSo=PLr,xSo=BLr,_So=kLr,CSo=MLr,TSo=LLr,wSo=ULr,ISo=FLr,DSo=QLr,OSo=qLr,RSo=HLr,NSo=VLr,PSo=GLr,BSo=jLr,kSo=$Lr,MSo=WLr,LSo=zLr,USo=KLr,FSo=YLr,QSo=JLr,qSo=XLr,HSo=ZLr,VSo=eUr,GSo=tUr,jSo=rUr,$So=nUr,WSo=iUr,zSo=oUr,KSo=sUr,YSo=aUr,JSo=cUr,XSo=lUr,ZSo=uUr,exo=fUr,txo=dUr,rxo=pUr,nxo=hUr,ixo=mUr,oxo=gUr,sxo=yUr,axo=AUr,cxo=vUr,lxo=bUr,uxo=EUr,fxo=SUr,dxo=Ph([OLr,RLr,NLr,PLr,BLr,kLr,MLr,LLr,ULr,FLr,QLr,qLr,HLr,VLr,GLr,jLr,$Lr,WLr,zLr,KLr,YLr,JLr,XLr,ZLr,eUr,tUr,rUr,nUr,iUr,oUr,sUr,aUr,cUr,lUr,uUr,fUr,dUr,pUr,hUr,mUr,gUr,yUr,AUr,vUr,bUr,EUr,SUr]),xUr="all",_Ur="each_quorum",CUr="quorum",TUr="local_quorum",wUr="one",IUr="two",DUr="three",OUr="local_one",RUr="any",NUr="serial",PUr="local_serial",pxo=xUr,hxo=_Ur,mxo=CUr,gxo=TUr,yxo=wUr,Axo=IUr,vxo=DUr,bxo=OUr,Exo=RUr,Sxo=NUr,xxo=PUr,_xo=Ph([xUr,_Ur,CUr,TUr,wUr,IUr,DUr,OUr,RUr,NUr,PUr]),BUr="datasource",kUr="http",MUr="pubsub",LUr="timer",UUr="other",Cxo=BUr,Txo=kUr,wxo=MUr,Ixo=LUr,Dxo=UUr,Oxo=Ph([BUr,kUr,MUr,LUr,UUr]),FUr="insert",QUr="edit",qUr="delete",Rxo=FUr,Nxo=QUr,Pxo=qUr,Bxo=Ph([FUr,QUr,qUr]),HUr="alibaba_cloud",VUr="aws",GUr="azure",jUr="gcp",kxo=HUr,Mxo=VUr,Lxo=GUr,Uxo=jUr,Fxo=Ph([HUr,VUr,GUr,jUr]),$Ur="ip_tcp",WUr="ip_udp",zUr="ip",KUr="unix",YUr="pipe",JUr="inproc",XUr="other",Qxo=$Ur,qxo=WUr,Hxo=zUr,Vxo=KUr,Gxo=YUr,jxo=JUr,$xo=XUr,Wxo=Ph([$Ur,WUr,zUr,KUr,YUr,JUr,XUr]),ZUr="wifi",eFr="wired",tFr="cell",rFr="unavailable",nFr="unknown",zxo=ZUr,Kxo=eFr,Yxo=tFr,Jxo=rFr,Xxo=nFr,Zxo=Ph([ZUr,eFr,tFr,rFr,nFr]),iFr="gprs",oFr="edge",sFr="umts",aFr="cdma",cFr="evdo_0",lFr="evdo_a",uFr="cdma2000_1xrtt",fFr="hsdpa",dFr="hsupa",pFr="hspa",hFr="iden",mFr="evdo_b",gFr="lte",yFr="ehrpd",AFr="hspap",vFr="gsm",bFr="td_scdma",EFr="iwlan",SFr="nr",xFr="nrnsa",_Fr="lte_ca",e_o=iFr,t_o=oFr,r_o=sFr,n_o=aFr,i_o=cFr,o_o=lFr,s_o=uFr,a_o=fFr,c_o=dFr,l_o=pFr,u_o=hFr,f_o=mFr,d_o=gFr,p_o=yFr,h_o=AFr,m_o=vFr,g_o=bFr,y_o=EFr,A_o=SFr,v_o=xFr,b_o=_Fr,E_o=Ph([iFr,oFr,sFr,aFr,cFr,lFr,uFr,fFr,dFr,pFr,hFr,mFr,gFr,yFr,AFr,vFr,bFr,EFr,SFr,xFr,_Fr]),CFr="1.0",TFr="1.1",wFr="2.0",IFr="SPDY",DFr="QUIC",S_o=CFr,x_o=TFr,__o=wFr,C_o=IFr,T_o=DFr,w_o={HTTP_1_0:CFr,HTTP_1_1:TFr,HTTP_2_0:wFr,SPDY:IFr,QUIC:DFr},OFr="queue",RFr="topic",I_o=OFr,D_o=RFr,O_o=Ph([OFr,RFr]),NFr="receive",PFr="process",R_o=NFr,N_o=PFr,P_o=Ph([NFr,PFr]),BFr=0,kFr=1,MFr=2,LFr=3,UFr=4,FFr=5,QFr=6,qFr=7,HFr=8,VFr=9,GFr=10,jFr=11,$Fr=12,WFr=13,zFr=14,KFr=15,YFr=16,B_o=BFr,k_o=kFr,M_o=MFr,L_o=LFr,U_o=UFr,F_o=FFr,Q_o=QFr,q_o=qFr,H_o=HFr,V_o=VFr,G_o=GFr,j_o=jFr,$_o=$Fr,W_o=WFr,z_o=zFr,K_o=KFr,Y_o=YFr,J_o={OK:BFr,CANCELLED:kFr,UNKNOWN:MFr,INVALID_ARGUMENT:LFr,DEADLINE_EXCEEDED:UFr,NOT_FOUND:FFr,ALREADY_EXISTS:QFr,PERMISSION_DENIED:qFr,RESOURCE_EXHAUSTED:HFr,FAILED_PRECONDITION:VFr,ABORTED:GFr,OUT_OF_RANGE:jFr,UNIMPLEMENTED:$Fr,INTERNAL:WFr,UNAVAILABLE:zFr,DATA_LOSS:KFr,UNAUTHENTICATED:YFr},JFr="SENT",XFr="RECEIVED",X_o=JFr,Z_o=XFr,eCo=Ph([JFr,XFr])});var eQr=j(()=>{ZFr()});var tQr,rQr,nQr,iQr,oQr,sQr,aQr,cQr,lQr,uQr,fQr,dQr,pQr,hQr,mQr,gQr,yQr,AQr,vQr,bQr,EQr,SQr,xQr,_Qr,CQr,TQr,wQr,IQr,DQr,OQr,RQr,NQr,PQr,BQr,kQr,MQr,LQr,UQr,FQr,QQr,qQr,HQr,VQr,GQr,jQr,$Qr,WQr,zQr,KQr,YQr,JQr,XQr,ZQr,eqr,tqr,rqr,nqr,iqr,oqr,sqr,aqr,cqr,lqr,uqr,fqr,dqr,pqr,hqr,mqr,gqr,yqr,Aqr,vqr,bqr,Eqr,Sqr,xqr,_qr,Cqr,Tqr,wqr,tCo,rCo,nCo,iCo,oCo,sCo,aCo,cCo,lCo,uCo,fCo,dCo,pCo,hCo,mCo,gCo,yCo,ACo,vCo,bCo,ECo,SCo,xCo,_Co,CCo,TCo,wCo,ICo,DCo,OCo,RCo,NCo,PCo,BCo,kCo,MCo,LCo,UCo,FCo,QCo,qCo,HCo,VCo,GCo,jCo,$Co,WCo,zCo,KCo,YCo,JCo,XCo,ZCo,eTo,tTo,rTo,nTo,iTo,oTo,sTo,aTo,cTo,lTo,uTo,fTo,dTo,pTo,hTo,mTo,gTo,yTo,ATo,vTo,bTo,ETo,STo,xTo,_To,CTo,TTo,wTo,ITo,Iqr,Dqr,Oqr,Rqr,DTo,OTo,RTo,NTo,PTo,Nqr,Pqr,Bqr,kqr,Mqr,Lqr,Uqr,Fqr,Qqr,qqr,Hqr,Vqr,Gqr,jqr,$qr,Wqr,zqr,BTo,kTo,MTo,LTo,UTo,FTo,QTo,qTo,HTo,VTo,GTo,jTo,$To,WTo,zTo,KTo,YTo,JTo,Kqr,Yqr,XTo,ZTo,e4o,Jqr,Xqr,Zqr,eHr,tHr,rHr,nHr,t4o,r4o,n4o,i4o,o4o,s4o,a4o,c4o,iHr,oHr,sHr,aHr,cHr,lHr,uHr,fHr,dHr,pHr,hHr,l4o,u4o,f4o,d4o,p4o,h4o,m4o,g4o,y4o,A4o,v4o,b4o,mHr,gHr,yHr,AHr,vHr,bHr,EHr,SHr,xHr,_Hr,E4o,S4o,x4o,_4o,C4o,T4o,w4o,I4o,D4o,O4o,R4o,CHr=j(()=>{bTt();tQr="cloud.provider",rQr="cloud.account.id",nQr="cloud.region",iQr="cloud.availability_zone",oQr="cloud.platform",sQr="aws.ecs.container.arn",aQr="aws.ecs.cluster.arn",cQr="aws.ecs.launchtype",lQr="aws.ecs.task.arn",uQr="aws.ecs.task.family",fQr="aws.ecs.task.revision",dQr="aws.eks.cluster.arn",pQr="aws.log.group.names",hQr="aws.log.group.arns",mQr="aws.log.stream.names",gQr="aws.log.stream.arns",yQr="container.name",AQr="container.id",vQr="container.runtime",bQr="container.image.name",EQr="container.image.tag",SQr="deployment.environment",xQr="device.id",_Qr="device.model.identifier",CQr="device.model.name",TQr="faas.name",wQr="faas.id",IQr="faas.version",DQr="faas.instance",OQr="faas.max_memory",RQr="host.id",NQr="host.name",PQr="host.type",BQr="host.arch",kQr="host.image.name",MQr="host.image.id",LQr="host.image.version",UQr="k8s.cluster.name",FQr="k8s.node.name",QQr="k8s.node.uid",qQr="k8s.namespace.name",HQr="k8s.pod.uid",VQr="k8s.pod.name",GQr="k8s.container.name",jQr="k8s.replicaset.uid",$Qr="k8s.replicaset.name",WQr="k8s.deployment.uid",zQr="k8s.deployment.name",KQr="k8s.statefulset.uid",YQr="k8s.statefulset.name",JQr="k8s.daemonset.uid",XQr="k8s.daemonset.name",ZQr="k8s.job.uid",eqr="k8s.job.name",tqr="k8s.cronjob.uid",rqr="k8s.cronjob.name",nqr="os.type",iqr="os.description",oqr="os.name",sqr="os.version",aqr="process.pid",cqr="process.executable.name",lqr="process.executable.path",uqr="process.command",fqr="process.command_line",dqr="process.command_args",pqr="process.owner",hqr="process.runtime.name",mqr="process.runtime.version",gqr="process.runtime.description",yqr="service.name",Aqr="service.namespace",vqr="service.instance.id",bqr="service.version",Eqr="telemetry.sdk.name",Sqr="telemetry.sdk.language",xqr="telemetry.sdk.version",_qr="telemetry.auto.version",Cqr="webengine.name",Tqr="webengine.version",wqr="webengine.description",tCo=tQr,rCo=rQr,nCo=nQr,iCo=iQr,oCo=oQr,sCo=sQr,aCo=aQr,cCo=cQr,lCo=lQr,uCo=uQr,fCo=fQr,dCo=dQr,pCo=pQr,hCo=hQr,mCo=mQr,gCo=gQr,yCo=yQr,ACo=AQr,vCo=vQr,bCo=bQr,ECo=EQr,SCo=SQr,xCo=xQr,_Co=_Qr,CCo=CQr,TCo=TQr,wCo=wQr,ICo=IQr,DCo=DQr,OCo=OQr,RCo=RQr,NCo=NQr,PCo=PQr,BCo=BQr,kCo=kQr,MCo=MQr,LCo=LQr,UCo=UQr,FCo=FQr,QCo=QQr,qCo=qQr,HCo=HQr,VCo=VQr,GCo=GQr,jCo=jQr,$Co=$Qr,WCo=WQr,zCo=zQr,KCo=KQr,YCo=YQr,JCo=JQr,XCo=XQr,ZCo=ZQr,eTo=eqr,tTo=tqr,rTo=rqr,nTo=nqr,iTo=iqr,oTo=oqr,sTo=sqr,aTo=aqr,cTo=cqr,lTo=lqr,uTo=uqr,fTo=fqr,dTo=dqr,pTo=pqr,hTo=hqr,mTo=mqr,gTo=gqr,yTo=yqr,ATo=Aqr,vTo=vqr,bTo=bqr,ETo=Eqr,STo=Sqr,xTo=xqr,_To=_qr,CTo=Cqr,TTo=Tqr,wTo=wqr,ITo=Ph([tQr,rQr,nQr,iQr,oQr,sQr,aQr,cQr,lQr,uQr,fQr,dQr,pQr,hQr,mQr,gQr,yQr,AQr,vQr,bQr,EQr,SQr,xQr,_Qr,CQr,TQr,wQr,IQr,DQr,OQr,RQr,NQr,PQr,BQr,kQr,MQr,LQr,UQr,FQr,QQr,qQr,HQr,VQr,GQr,jQr,$Qr,WQr,zQr,KQr,YQr,JQr,XQr,ZQr,eqr,tqr,rqr,nqr,iqr,oqr,sqr,aqr,cqr,lqr,uqr,fqr,dqr,pqr,hqr,mqr,gqr,yqr,Aqr,vqr,bqr,Eqr,Sqr,xqr,_qr,Cqr,Tqr,wqr]),Iqr="alibaba_cloud",Dqr="aws",Oqr="azure",Rqr="gcp",DTo=Iqr,OTo=Dqr,RTo=Oqr,NTo=Rqr,PTo=Ph([Iqr,Dqr,Oqr,Rqr]),Nqr="alibaba_cloud_ecs",Pqr="alibaba_cloud_fc",Bqr="aws_ec2",kqr="aws_ecs",Mqr="aws_eks",Lqr="aws_lambda",Uqr="aws_elastic_beanstalk",Fqr="azure_vm",Qqr="azure_container_instances",qqr="azure_aks",Hqr="azure_functions",Vqr="azure_app_service",Gqr="gcp_compute_engine",jqr="gcp_cloud_run",$qr="gcp_kubernetes_engine",Wqr="gcp_cloud_functions",zqr="gcp_app_engine",BTo=Nqr,kTo=Pqr,MTo=Bqr,LTo=kqr,UTo=Mqr,FTo=Lqr,QTo=Uqr,qTo=Fqr,HTo=Qqr,VTo=qqr,GTo=Hqr,jTo=Vqr,$To=Gqr,WTo=jqr,zTo=$qr,KTo=Wqr,YTo=zqr,JTo=Ph([Nqr,Pqr,Bqr,kqr,Mqr,Lqr,Uqr,Fqr,Qqr,qqr,Hqr,Vqr,Gqr,jqr,$qr,Wqr,zqr]),Kqr="ec2",Yqr="fargate",XTo=Kqr,ZTo=Yqr,e4o=Ph([Kqr,Yqr]),Jqr="amd64",Xqr="arm32",Zqr="arm64",eHr="ia64",tHr="ppc32",rHr="ppc64",nHr="x86",t4o=Jqr,r4o=Xqr,n4o=Zqr,i4o=eHr,o4o=tHr,s4o=rHr,a4o=nHr,c4o=Ph([Jqr,Xqr,Zqr,eHr,tHr,rHr,nHr]),iHr="windows",oHr="linux",sHr="darwin",aHr="freebsd",cHr="netbsd",lHr="openbsd",uHr="dragonflybsd",fHr="hpux",dHr="aix",pHr="solaris",hHr="z_os",l4o=iHr,u4o=oHr,f4o=sHr,d4o=aHr,p4o=cHr,h4o=lHr,m4o=uHr,g4o=fHr,y4o=dHr,A4o=pHr,v4o=hHr,b4o=Ph([iHr,oHr,sHr,aHr,cHr,lHr,uHr,fHr,dHr,pHr,hHr]),mHr="cpp",gHr="dotnet",yHr="erlang",AHr="go",vHr="java",bHr="nodejs",EHr="php",SHr="python",xHr="ruby",_Hr="webjs",E4o=mHr,S4o=gHr,x4o=yHr,_4o=AHr,C4o=vHr,T4o=bHr,w4o=EHr,I4o=SHr,D4o=xHr,O4o=_Hr,R4o=Ph([mHr,gHr,yHr,AHr,vHr,bHr,EHr,SHr,xHr,_Hr])});var THr=j(()=>{CHr()});var N4o,P4o,B4o,k4o,M4o,L4o,U4o,F4o,Q4o,q4o,H4o,V4o,G4o,j4o,$4o,W4o,z4o,K4o,Y4o,J4o,X4o,Z4o,e6o,t6o,r6o,n6o,i6o,o6o,s6o,a6o,c6o,l6o,u6o,f6o,d6o,p6o,h6o,m6o,g6o,y6o,A6o,v6o,tQc,rQc,b6o,E6o,S6o,x6o,_6o,C6o,T6o,w6o,I6o,D6o,O6o,nQc,R6o,N6o,P6o,B6o,iQc,k6o,M6o,L6o,U6o,F6o,Q6o,q6o,H6o,V6o,G6o,j6o,$6o,W6o,z6o,K6o,oQc,Y6o,J6o,X6o,Z6o,ewo,two,rwo,nwo,iwo,owo,swo,awo,cwo,sQc,aQc,lwo,uwo,fwo,dwo,pwo,hwo,mwo,gwo,cQc,ywo,Awo,vwo,ETt,STt,bwo,Ewo,Swo,xwo,_wo,Cwo,Two,wwo,Iwo,lQc,Dwo,Owo,uQc,Rwo,Nwo,fQc,Pwo,Bwo,kwo,Mwo,Lwo,Uwo,Fwo,Qwo,qwo,Hwo,Vwo,Gwo,jwo,wHr=j(()=>{N4o="aspnetcore.diagnostics.exception.result",P4o="aborted",B4o="handled",k4o="skipped",M4o="unhandled",L4o="aspnetcore.diagnostics.handler.type",U4o="aspnetcore.rate_limiting.policy",F4o="aspnetcore.rate_limiting.result",Q4o="acquired",q4o="endpoint_limiter",H4o="global_limiter",V4o="request_canceled",G4o="aspnetcore.request.is_unhandled",j4o="aspnetcore.routing.is_fallback",$4o="aspnetcore.routing.match_status",W4o="failure",z4o="success",K4o="aspnetcore.user.is_authenticated",Y4o="client.address",J4o="client.port",X4o="code.column.number",Z4o="code.file.path",e6o="code.function.name",t6o="code.line.number",r6o="code.stacktrace",n6o="db.collection.name",i6o="db.namespace",o6o="db.operation.batch.size",s6o="db.operation.name",a6o="db.query.summary",c6o="db.query.text",l6o="db.response.status_code",u6o="db.stored_procedure.name",f6o="db.system.name",d6o="mariadb",p6o="microsoft.sql_server",h6o="mysql",m6o="postgresql",g6o="dotnet.gc.heap.generation",y6o="gen0",A6o="gen1",v6o="gen2",tQc="loh",rQc="poh",b6o="error.type",E6o="_OTHER",S6o="exception.escaped",x6o="exception.message",_6o="exception.stacktrace",C6o="exception.type",T6o=t=>`http.request.header.${t}`,w6o="http.request.method",I6o="_OTHER",D6o="CONNECT",O6o="DELETE",nQc="GET",R6o="HEAD",N6o="OPTIONS",P6o="PATCH",B6o="POST",iQc="PUT",k6o="TRACE",M6o="http.request.method_original",L6o="http.request.resend_count",U6o=t=>`http.response.header.${t}`,F6o="http.response.status_code",Q6o="http.route",q6o="jvm.gc.action",H6o="jvm.gc.name",V6o="jvm.memory.pool.name",G6o="jvm.memory.type",j6o="heap",$6o="non_heap",W6o="jvm.thread.daemon",z6o="jvm.thread.state",K6o="blocked",oQc="new",Y6o="runnable",J6o="terminated",X6o="timed_waiting",Z6o="waiting",ewo="network.local.address",two="network.local.port",rwo="network.peer.address",nwo="network.peer.port",iwo="network.protocol.name",owo="network.protocol.version",swo="network.transport",awo="pipe",cwo="quic",sQc="tcp",aQc="udp",lwo="unix",uwo="network.type",fwo="ipv4",dwo="ipv6",pwo="otel.scope.name",hwo="otel.scope.version",mwo="otel.status_code",gwo="ERROR",cQc="OK",ywo="otel.status_description",Awo="server.address",vwo="server.port",ETt="service.name",STt="service.version",bwo="signalr.connection.status",Ewo="app_shutdown",Swo="normal_closure",xwo="timeout",_wo="signalr.transport",Cwo="long_polling",Two="server_sent_events",wwo="web_sockets",Iwo="telemetry.sdk.language",lQc="cpp",Dwo="dotnet",Owo="erlang",uQc="go",Rwo="java",Nwo="nodejs",fQc="php",Pwo="python",Bwo="ruby",kwo="rust",Mwo="swift",Lwo="webjs",Uwo="telemetry.sdk.name",Fwo="telemetry.sdk.version",Qwo="url.fragment",qwo="url.full",Hwo="url.path",Vwo="url.query",Gwo="url.scheme",jwo="user_agent.original"});var $wo,Wwo,zwo,Kwo,Ywo,Jwo,Xwo,Zwo,e5o,t5o,r5o,n5o,i5o,o5o,s5o,a5o,c5o,l5o,u5o,f5o,d5o,p5o,h5o,m5o,g5o,y5o,A5o,v5o,b5o,E5o,S5o,x5o,_5o,C5o,T5o,w5o,I5o,D5o,O5o,R5o,N5o,P5o,B5o,k5o,M5o,L5o,U5o,F5o,Q5o,q5o,H5o,IHr=j(()=>{$wo="aspnetcore.diagnostics.exceptions",Wwo="aspnetcore.rate_limiting.active_request_leases",zwo="aspnetcore.rate_limiting.queued_requests",Kwo="aspnetcore.rate_limiting.request.time_in_queue",Ywo="aspnetcore.rate_limiting.request_lease.duration",Jwo="aspnetcore.rate_limiting.requests",Xwo="aspnetcore.routing.match_attempts",Zwo="db.client.operation.duration",e5o="dotnet.assembly.count",t5o="dotnet.exceptions",r5o="dotnet.gc.collections",n5o="dotnet.gc.heap.total_allocated",i5o="dotnet.gc.last_collection.heap.fragmentation.size",o5o="dotnet.gc.last_collection.heap.size",s5o="dotnet.gc.last_collection.memory.committed_size",a5o="dotnet.gc.pause.time",c5o="dotnet.jit.compilation.time",l5o="dotnet.jit.compiled_il.size",u5o="dotnet.jit.compiled_methods",f5o="dotnet.monitor.lock_contentions",d5o="dotnet.process.cpu.count",p5o="dotnet.process.cpu.time",h5o="dotnet.process.memory.working_set",m5o="dotnet.thread_pool.queue.length",g5o="dotnet.thread_pool.thread.count",y5o="dotnet.thread_pool.work_item.count",A5o="dotnet.timer.count",v5o="http.client.request.duration",b5o="http.server.request.duration",E5o="jvm.class.count",S5o="jvm.class.loaded",x5o="jvm.class.unloaded",_5o="jvm.cpu.count",C5o="jvm.cpu.recent_utilization",T5o="jvm.cpu.time",w5o="jvm.gc.duration",I5o="jvm.memory.committed",D5o="jvm.memory.limit",O5o="jvm.memory.used",R5o="jvm.memory.used_after_last_gc",N5o="jvm.thread.count",P5o="kestrel.active_connections",B5o="kestrel.active_tls_handshakes",k5o="kestrel.connection.duration",M5o="kestrel.queued_connections",L5o="kestrel.queued_requests",U5o="kestrel.rejected_connections",F5o="kestrel.tls_handshake.duration",Q5o="kestrel.upgraded_connections",q5o="signalr.server.active_connections",H5o="signalr.server.connection.duration"});var V5o,DHr=j(()=>{V5o="exception"});var Uu={};ss(Uu,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>P4o,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>B4o,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>k4o,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>M4o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>Q4o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>q4o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>H4o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>V4o,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>W4o,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>z4o,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>N4o,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>L4o,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>U4o,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>F4o,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>G4o,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>j4o,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>$4o,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:()=>K4o,ATTR_CLIENT_ADDRESS:()=>Y4o,ATTR_CLIENT_PORT:()=>J4o,ATTR_CODE_COLUMN_NUMBER:()=>X4o,ATTR_CODE_FILE_PATH:()=>Z4o,ATTR_CODE_FUNCTION_NAME:()=>e6o,ATTR_CODE_LINE_NUMBER:()=>t6o,ATTR_CODE_STACKTRACE:()=>r6o,ATTR_DB_COLLECTION_NAME:()=>n6o,ATTR_DB_NAMESPACE:()=>i6o,ATTR_DB_OPERATION_BATCH_SIZE:()=>o6o,ATTR_DB_OPERATION_NAME:()=>s6o,ATTR_DB_QUERY_SUMMARY:()=>a6o,ATTR_DB_QUERY_TEXT:()=>c6o,ATTR_DB_RESPONSE_STATUS_CODE:()=>l6o,ATTR_DB_STORED_PROCEDURE_NAME:()=>u6o,ATTR_DB_SYSTEM_NAME:()=>f6o,ATTR_DOTNET_GC_HEAP_GENERATION:()=>g6o,ATTR_ERROR_TYPE:()=>b6o,ATTR_EXCEPTION_ESCAPED:()=>S6o,ATTR_EXCEPTION_MESSAGE:()=>x6o,ATTR_EXCEPTION_STACKTRACE:()=>_6o,ATTR_EXCEPTION_TYPE:()=>C6o,ATTR_HTTP_REQUEST_HEADER:()=>T6o,ATTR_HTTP_REQUEST_METHOD:()=>w6o,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>M6o,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>L6o,ATTR_HTTP_RESPONSE_HEADER:()=>U6o,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>F6o,ATTR_HTTP_ROUTE:()=>Q6o,ATTR_JVM_GC_ACTION:()=>q6o,ATTR_JVM_GC_NAME:()=>H6o,ATTR_JVM_MEMORY_POOL_NAME:()=>V6o,ATTR_JVM_MEMORY_TYPE:()=>G6o,ATTR_JVM_THREAD_DAEMON:()=>W6o,ATTR_JVM_THREAD_STATE:()=>z6o,ATTR_NETWORK_LOCAL_ADDRESS:()=>ewo,ATTR_NETWORK_LOCAL_PORT:()=>two,ATTR_NETWORK_PEER_ADDRESS:()=>rwo,ATTR_NETWORK_PEER_PORT:()=>nwo,ATTR_NETWORK_PROTOCOL_NAME:()=>iwo,ATTR_NETWORK_PROTOCOL_VERSION:()=>owo,ATTR_NETWORK_TRANSPORT:()=>swo,ATTR_NETWORK_TYPE:()=>uwo,ATTR_OTEL_SCOPE_NAME:()=>pwo,ATTR_OTEL_SCOPE_VERSION:()=>hwo,ATTR_OTEL_STATUS_CODE:()=>mwo,ATTR_OTEL_STATUS_DESCRIPTION:()=>ywo,ATTR_SERVER_ADDRESS:()=>Awo,ATTR_SERVER_PORT:()=>vwo,ATTR_SERVICE_NAME:()=>ETt,ATTR_SERVICE_VERSION:()=>STt,ATTR_SIGNALR_CONNECTION_STATUS:()=>bwo,ATTR_SIGNALR_TRANSPORT:()=>_wo,ATTR_TELEMETRY_SDK_LANGUAGE:()=>Iwo,ATTR_TELEMETRY_SDK_NAME:()=>Uwo,ATTR_TELEMETRY_SDK_VERSION:()=>Fwo,ATTR_URL_FRAGMENT:()=>Qwo,ATTR_URL_FULL:()=>qwo,ATTR_URL_PATH:()=>Hwo,ATTR_URL_QUERY:()=>Vwo,ATTR_URL_SCHEME:()=>Gwo,ATTR_USER_AGENT_ORIGINAL:()=>jwo,AWSECSLAUNCHTYPEVALUES_EC2:()=>XTo,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>ZTo,AwsEcsLaunchtypeValues:()=>e4o,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>BTo,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>kTo,CLOUDPLATFORMVALUES_AWS_EC2:()=>MTo,CLOUDPLATFORMVALUES_AWS_ECS:()=>LTo,CLOUDPLATFORMVALUES_AWS_EKS:()=>UTo,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>QTo,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>FTo,CLOUDPLATFORMVALUES_AZURE_AKS:()=>VTo,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>jTo,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>HTo,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>GTo,CLOUDPLATFORMVALUES_AZURE_VM:()=>qTo,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>YTo,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>KTo,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>WTo,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>$To,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>zTo,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>DTo,CLOUDPROVIDERVALUES_AWS:()=>OTo,CLOUDPROVIDERVALUES_AZURE:()=>RTo,CLOUDPROVIDERVALUES_GCP:()=>NTo,CloudPlatformValues:()=>JTo,CloudProviderValues:()=>PTo,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>pxo,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>Exo,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>hxo,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>bxo,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>gxo,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>xxo,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>yxo,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>mxo,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>Sxo,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>vxo,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>Axo,DBSYSTEMVALUES_ADABAS:()=>MSo,DBSYSTEMVALUES_CACHE:()=>kSo,DBSYSTEMVALUES_CASSANDRA:()=>ZSo,DBSYSTEMVALUES_CLOUDSCAPE:()=>wSo,DBSYSTEMVALUES_COCKROACHDB:()=>fxo,DBSYSTEMVALUES_COLDFUSION:()=>XSo,DBSYSTEMVALUES_COSMOSDB:()=>oxo,DBSYSTEMVALUES_COUCHBASE:()=>nxo,DBSYSTEMVALUES_COUCHDB:()=>ixo,DBSYSTEMVALUES_DB2:()=>xSo,DBSYSTEMVALUES_DERBY:()=>USo,DBSYSTEMVALUES_DYNAMODB:()=>sxo,DBSYSTEMVALUES_EDB:()=>BSo,DBSYSTEMVALUES_ELASTICSEARCH:()=>lxo,DBSYSTEMVALUES_FILEMAKER:()=>FSo,DBSYSTEMVALUES_FIREBIRD:()=>LSo,DBSYSTEMVALUES_FIRSTSQL:()=>PSo,DBSYSTEMVALUES_GEODE:()=>cxo,DBSYSTEMVALUES_H2:()=>JSo,DBSYSTEMVALUES_HANADB:()=>RSo,DBSYSTEMVALUES_HBASE:()=>exo,DBSYSTEMVALUES_HIVE:()=>TSo,DBSYSTEMVALUES_HSQLDB:()=>ISo,DBSYSTEMVALUES_INFORMIX:()=>QSo,DBSYSTEMVALUES_INGRES:()=>NSo,DBSYSTEMVALUES_INSTANTDB:()=>qSo,DBSYSTEMVALUES_INTERBASE:()=>HSo,DBSYSTEMVALUES_MARIADB:()=>VSo,DBSYSTEMVALUES_MAXDB:()=>OSo,DBSYSTEMVALUES_MEMCACHED:()=>uxo,DBSYSTEMVALUES_MONGODB:()=>txo,DBSYSTEMVALUES_MSSQL:()=>bSo,DBSYSTEMVALUES_MYSQL:()=>ESo,DBSYSTEMVALUES_NEO4J:()=>axo,DBSYSTEMVALUES_NETEZZA:()=>GSo,DBSYSTEMVALUES_ORACLE:()=>SSo,DBSYSTEMVALUES_OTHER_SQL:()=>vSo,DBSYSTEMVALUES_PERVASIVE:()=>jSo,DBSYSTEMVALUES_POINTBASE:()=>$So,DBSYSTEMVALUES_POSTGRESQL:()=>_So,DBSYSTEMVALUES_PROGRESS:()=>DSo,DBSYSTEMVALUES_REDIS:()=>rxo,DBSYSTEMVALUES_REDSHIFT:()=>CSo,DBSYSTEMVALUES_SQLITE:()=>WSo,DBSYSTEMVALUES_SYBASE:()=>zSo,DBSYSTEMVALUES_TERADATA:()=>KSo,DBSYSTEMVALUES_VERTICA:()=>YSo,DB_SYSTEM_NAME_VALUE_MARIADB:()=>d6o,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:()=>p6o,DB_SYSTEM_NAME_VALUE_MYSQL:()=>h6o,DB_SYSTEM_NAME_VALUE_POSTGRESQL:()=>m6o,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:()=>y6o,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:()=>A6o,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:()=>v6o,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:()=>tQc,DOTNET_GC_HEAP_GENERATION_VALUE_POH:()=>rQc,DbCassandraConsistencyLevelValues:()=>_xo,DbSystemValues:()=>dxo,ERROR_TYPE_VALUE_OTHER:()=>E6o,EVENT_EXCEPTION:()=>V5o,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>Pxo,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>Nxo,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>Rxo,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>kxo,FAASINVOKEDPROVIDERVALUES_AWS:()=>Mxo,FAASINVOKEDPROVIDERVALUES_AZURE:()=>Lxo,FAASINVOKEDPROVIDERVALUES_GCP:()=>Uxo,FAASTRIGGERVALUES_DATASOURCE:()=>Cxo,FAASTRIGGERVALUES_HTTP:()=>Txo,FAASTRIGGERVALUES_OTHER:()=>Dxo,FAASTRIGGERVALUES_PUBSUB:()=>wxo,FAASTRIGGERVALUES_TIMER:()=>Ixo,FaasDocumentOperationValues:()=>Bxo,FaasInvokedProviderValues:()=>Fxo,FaasTriggerValues:()=>Oxo,HOSTARCHVALUES_AMD64:()=>t4o,HOSTARCHVALUES_ARM32:()=>r4o,HOSTARCHVALUES_ARM64:()=>n4o,HOSTARCHVALUES_IA64:()=>i4o,HOSTARCHVALUES_PPC32:()=>o4o,HOSTARCHVALUES_PPC64:()=>s4o,HOSTARCHVALUES_X86:()=>a4o,HTTPFLAVORVALUES_HTTP_1_0:()=>S_o,HTTPFLAVORVALUES_HTTP_1_1:()=>x_o,HTTPFLAVORVALUES_HTTP_2_0:()=>__o,HTTPFLAVORVALUES_QUIC:()=>T_o,HTTPFLAVORVALUES_SPDY:()=>C_o,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>D6o,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>O6o,HTTP_REQUEST_METHOD_VALUE_GET:()=>nQc,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>R6o,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>N6o,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>I6o,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>P6o,HTTP_REQUEST_METHOD_VALUE_POST:()=>B6o,HTTP_REQUEST_METHOD_VALUE_PUT:()=>iQc,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>k6o,HostArchValues:()=>c4o,HttpFlavorValues:()=>w_o,JVM_MEMORY_TYPE_VALUE_HEAP:()=>j6o,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>$6o,JVM_THREAD_STATE_VALUE_BLOCKED:()=>K6o,JVM_THREAD_STATE_VALUE_NEW:()=>oQc,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>Y6o,JVM_THREAD_STATE_VALUE_TERMINATED:()=>J6o,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>X6o,JVM_THREAD_STATE_VALUE_WAITING:()=>Z6o,MESSAGETYPEVALUES_RECEIVED:()=>Z_o,MESSAGETYPEVALUES_SENT:()=>X_o,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>I_o,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>D_o,MESSAGINGOPERATIONVALUES_PROCESS:()=>N_o,MESSAGINGOPERATIONVALUES_RECEIVE:()=>R_o,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>$wo,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>Wwo,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>zwo,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>Jwo,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>Ywo,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>Kwo,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>Xwo,METRIC_DB_CLIENT_OPERATION_DURATION:()=>Zwo,METRIC_DOTNET_ASSEMBLY_COUNT:()=>e5o,METRIC_DOTNET_EXCEPTIONS:()=>t5o,METRIC_DOTNET_GC_COLLECTIONS:()=>r5o,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:()=>n5o,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:()=>i5o,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:()=>o5o,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:()=>s5o,METRIC_DOTNET_GC_PAUSE_TIME:()=>a5o,METRIC_DOTNET_JIT_COMPILATION_TIME:()=>c5o,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:()=>l5o,METRIC_DOTNET_JIT_COMPILED_METHODS:()=>u5o,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:()=>f5o,METRIC_DOTNET_PROCESS_CPU_COUNT:()=>d5o,METRIC_DOTNET_PROCESS_CPU_TIME:()=>p5o,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:()=>h5o,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:()=>m5o,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:()=>g5o,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:()=>y5o,METRIC_DOTNET_TIMER_COUNT:()=>A5o,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>v5o,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>b5o,METRIC_JVM_CLASS_COUNT:()=>E5o,METRIC_JVM_CLASS_LOADED:()=>S5o,METRIC_JVM_CLASS_UNLOADED:()=>x5o,METRIC_JVM_CPU_COUNT:()=>_5o,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>C5o,METRIC_JVM_CPU_TIME:()=>T5o,METRIC_JVM_GC_DURATION:()=>w5o,METRIC_JVM_MEMORY_COMMITTED:()=>I5o,METRIC_JVM_MEMORY_LIMIT:()=>D5o,METRIC_JVM_MEMORY_USED:()=>O5o,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>R5o,METRIC_JVM_THREAD_COUNT:()=>N5o,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>P5o,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>B5o,METRIC_KESTREL_CONNECTION_DURATION:()=>k5o,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>M5o,METRIC_KESTREL_QUEUED_REQUESTS:()=>L5o,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>U5o,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>F5o,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>Q5o,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>q5o,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>H5o,MessageTypeValues:()=>eCo,MessagingDestinationKindValues:()=>O_o,MessagingOperationValues:()=>P_o,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>n_o,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>s_o,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>t_o,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>p_o,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>i_o,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>o_o,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>f_o,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>e_o,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>m_o,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>a_o,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>l_o,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>h_o,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>c_o,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>u_o,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>y_o,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>d_o,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>b_o,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>A_o,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>v_o,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>g_o,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>r_o,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>Yxo,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>Jxo,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>Xxo,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>zxo,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>Kxo,NETTRANSPORTVALUES_INPROC:()=>jxo,NETTRANSPORTVALUES_IP:()=>Hxo,NETTRANSPORTVALUES_IP_TCP:()=>Qxo,NETTRANSPORTVALUES_IP_UDP:()=>qxo,NETTRANSPORTVALUES_OTHER:()=>$xo,NETTRANSPORTVALUES_PIPE:()=>Gxo,NETTRANSPORTVALUES_UNIX:()=>Vxo,NETWORK_TRANSPORT_VALUE_PIPE:()=>awo,NETWORK_TRANSPORT_VALUE_QUIC:()=>cwo,NETWORK_TRANSPORT_VALUE_TCP:()=>sQc,NETWORK_TRANSPORT_VALUE_UDP:()=>aQc,NETWORK_TRANSPORT_VALUE_UNIX:()=>lwo,NETWORK_TYPE_VALUE_IPV4:()=>fwo,NETWORK_TYPE_VALUE_IPV6:()=>dwo,NetHostConnectionSubtypeValues:()=>E_o,NetHostConnectionTypeValues:()=>Zxo,NetTransportValues:()=>Wxo,OSTYPEVALUES_AIX:()=>y4o,OSTYPEVALUES_DARWIN:()=>f4o,OSTYPEVALUES_DRAGONFLYBSD:()=>m4o,OSTYPEVALUES_FREEBSD:()=>d4o,OSTYPEVALUES_HPUX:()=>g4o,OSTYPEVALUES_LINUX:()=>u4o,OSTYPEVALUES_NETBSD:()=>p4o,OSTYPEVALUES_OPENBSD:()=>h4o,OSTYPEVALUES_SOLARIS:()=>A4o,OSTYPEVALUES_WINDOWS:()=>l4o,OSTYPEVALUES_Z_OS:()=>v4o,OTEL_STATUS_CODE_VALUE_ERROR:()=>gwo,OTEL_STATUS_CODE_VALUE_OK:()=>cQc,OsTypeValues:()=>b4o,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>G_o,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>Q_o,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>k_o,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>K_o,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>U_o,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>V_o,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>W_o,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>L_o,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>F_o,RPCGRPCSTATUSCODEVALUES_OK:()=>B_o,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>j_o,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>q_o,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>H_o,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>Y_o,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>z_o,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>$_o,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>M_o,RpcGrpcStatusCodeValues:()=>J_o,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>IEo,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>QEo,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>CEo,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>EEo,SEMATTRS_AWS_DYNAMODB_COUNT:()=>UEo,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>PEo,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>REo,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>qEo,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>DEo,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>SEo,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>wEo,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>NEo,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>TEo,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>xEo,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>_Eo,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>FEo,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>kEo,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>MEo,SEMATTRS_AWS_DYNAMODB_SELECT:()=>OEo,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>BEo,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>bEo,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>LEo,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>Zvo,SEMATTRS_CODE_FILEPATH:()=>nEo,SEMATTRS_CODE_FUNCTION:()=>tEo,SEMATTRS_CODE_LINENO:()=>iEo,SEMATTRS_CODE_NAMESPACE:()=>rEo,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>ubo,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>mbo,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>hbo,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>dbo,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>cbo,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>lbo,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>pbo,SEMATTRS_DB_CASSANDRA_TABLE:()=>fbo,SEMATTRS_DB_CONNECTION_STRING:()=>tbo,SEMATTRS_DB_HBASE_NAMESPACE:()=>gbo,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>nbo,SEMATTRS_DB_MONGODB_COLLECTION:()=>Abo,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>abo,SEMATTRS_DB_NAME:()=>ibo,SEMATTRS_DB_OPERATION:()=>sbo,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>ybo,SEMATTRS_DB_SQL_TABLE:()=>vbo,SEMATTRS_DB_STATEMENT:()=>obo,SEMATTRS_DB_SYSTEM:()=>ebo,SEMATTRS_DB_USER:()=>rbo,SEMATTRS_ENDUSER_ID:()=>Ybo,SEMATTRS_ENDUSER_ROLE:()=>Jbo,SEMATTRS_ENDUSER_SCOPE:()=>Xbo,SEMATTRS_EXCEPTION_ESCAPED:()=>xbo,SEMATTRS_EXCEPTION_MESSAGE:()=>Ebo,SEMATTRS_EXCEPTION_STACKTRACE:()=>Sbo,SEMATTRS_EXCEPTION_TYPE:()=>bbo,SEMATTRS_FAAS_COLDSTART:()=>Nbo,SEMATTRS_FAAS_CRON:()=>Rbo,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>Tbo,SEMATTRS_FAAS_DOCUMENT_NAME:()=>Dbo,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>wbo,SEMATTRS_FAAS_DOCUMENT_TIME:()=>Ibo,SEMATTRS_FAAS_EXECUTION:()=>Cbo,SEMATTRS_FAAS_INVOKED_NAME:()=>Pbo,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>Bbo,SEMATTRS_FAAS_INVOKED_REGION:()=>kbo,SEMATTRS_FAAS_TIME:()=>Obo,SEMATTRS_FAAS_TRIGGER:()=>_bo,SEMATTRS_HTTP_CLIENT_IP:()=>vEo,SEMATTRS_HTTP_FLAVOR:()=>fEo,SEMATTRS_HTTP_HOST:()=>cEo,SEMATTRS_HTTP_METHOD:()=>oEo,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>pEo,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>hEo,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>mEo,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>gEo,SEMATTRS_HTTP_ROUTE:()=>AEo,SEMATTRS_HTTP_SCHEME:()=>lEo,SEMATTRS_HTTP_SERVER_NAME:()=>yEo,SEMATTRS_HTTP_STATUS_CODE:()=>uEo,SEMATTRS_HTTP_TARGET:()=>aEo,SEMATTRS_HTTP_URL:()=>sEo,SEMATTRS_HTTP_USER_AGENT:()=>dEo,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>ySo,SEMATTRS_MESSAGE_ID:()=>gSo,SEMATTRS_MESSAGE_TYPE:()=>mSo,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>ASo,SEMATTRS_MESSAGING_CONSUMER_ID:()=>eSo,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>YEo,SEMATTRS_MESSAGING_DESTINATION:()=>VEo,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>GEo,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>iSo,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>nSo,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>rSo,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>oSo,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>sSo,SEMATTRS_MESSAGING_MESSAGE_ID:()=>KEo,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>XEo,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>JEo,SEMATTRS_MESSAGING_OPERATION:()=>ZEo,SEMATTRS_MESSAGING_PROTOCOL:()=>$Eo,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>WEo,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>tSo,SEMATTRS_MESSAGING_SYSTEM:()=>HEo,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>jEo,SEMATTRS_MESSAGING_URL:()=>zEo,SEMATTRS_NET_HOST_CARRIER_ICC:()=>zbo,SEMATTRS_NET_HOST_CARRIER_MCC:()=>$bo,SEMATTRS_NET_HOST_CARRIER_MNC:()=>Wbo,SEMATTRS_NET_HOST_CARRIER_NAME:()=>jbo,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>Gbo,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>Vbo,SEMATTRS_NET_HOST_IP:()=>Qbo,SEMATTRS_NET_HOST_NAME:()=>Hbo,SEMATTRS_NET_HOST_PORT:()=>qbo,SEMATTRS_NET_PEER_IP:()=>Lbo,SEMATTRS_NET_PEER_NAME:()=>Fbo,SEMATTRS_NET_PEER_PORT:()=>Ubo,SEMATTRS_NET_TRANSPORT:()=>Mbo,SEMATTRS_PEER_SERVICE:()=>Kbo,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>uSo,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>pSo,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>hSo,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>dSo,SEMATTRS_RPC_JSONRPC_VERSION:()=>fSo,SEMATTRS_RPC_METHOD:()=>lSo,SEMATTRS_RPC_SERVICE:()=>cSo,SEMATTRS_RPC_SYSTEM:()=>aSo,SEMATTRS_THREAD_ID:()=>Zbo,SEMATTRS_THREAD_NAME:()=>eEo,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>aCo,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>sCo,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>cCo,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>lCo,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>uCo,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>fCo,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>dCo,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>hCo,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>pCo,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>gCo,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>mCo,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>rCo,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>iCo,SEMRESATTRS_CLOUD_PLATFORM:()=>oCo,SEMRESATTRS_CLOUD_PROVIDER:()=>tCo,SEMRESATTRS_CLOUD_REGION:()=>nCo,SEMRESATTRS_CONTAINER_ID:()=>ACo,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>bCo,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>ECo,SEMRESATTRS_CONTAINER_NAME:()=>yCo,SEMRESATTRS_CONTAINER_RUNTIME:()=>vCo,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>SCo,SEMRESATTRS_DEVICE_ID:()=>xCo,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>_Co,SEMRESATTRS_DEVICE_MODEL_NAME:()=>CCo,SEMRESATTRS_FAAS_ID:()=>wCo,SEMRESATTRS_FAAS_INSTANCE:()=>DCo,SEMRESATTRS_FAAS_MAX_MEMORY:()=>OCo,SEMRESATTRS_FAAS_NAME:()=>TCo,SEMRESATTRS_FAAS_VERSION:()=>ICo,SEMRESATTRS_HOST_ARCH:()=>BCo,SEMRESATTRS_HOST_ID:()=>RCo,SEMRESATTRS_HOST_IMAGE_ID:()=>MCo,SEMRESATTRS_HOST_IMAGE_NAME:()=>kCo,SEMRESATTRS_HOST_IMAGE_VERSION:()=>LCo,SEMRESATTRS_HOST_NAME:()=>NCo,SEMRESATTRS_HOST_TYPE:()=>PCo,SEMRESATTRS_K8S_CLUSTER_NAME:()=>UCo,SEMRESATTRS_K8S_CONTAINER_NAME:()=>GCo,SEMRESATTRS_K8S_CRONJOB_NAME:()=>rTo,SEMRESATTRS_K8S_CRONJOB_UID:()=>tTo,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>XCo,SEMRESATTRS_K8S_DAEMONSET_UID:()=>JCo,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>zCo,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>WCo,SEMRESATTRS_K8S_JOB_NAME:()=>eTo,SEMRESATTRS_K8S_JOB_UID:()=>ZCo,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>qCo,SEMRESATTRS_K8S_NODE_NAME:()=>FCo,SEMRESATTRS_K8S_NODE_UID:()=>QCo,SEMRESATTRS_K8S_POD_NAME:()=>VCo,SEMRESATTRS_K8S_POD_UID:()=>HCo,SEMRESATTRS_K8S_REPLICASET_NAME:()=>$Co,SEMRESATTRS_K8S_REPLICASET_UID:()=>jCo,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>YCo,SEMRESATTRS_K8S_STATEFULSET_UID:()=>KCo,SEMRESATTRS_OS_DESCRIPTION:()=>iTo,SEMRESATTRS_OS_NAME:()=>oTo,SEMRESATTRS_OS_TYPE:()=>nTo,SEMRESATTRS_OS_VERSION:()=>sTo,SEMRESATTRS_PROCESS_COMMAND:()=>uTo,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>dTo,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>fTo,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>cTo,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>lTo,SEMRESATTRS_PROCESS_OWNER:()=>pTo,SEMRESATTRS_PROCESS_PID:()=>aTo,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>gTo,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>hTo,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>mTo,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>vTo,SEMRESATTRS_SERVICE_NAME:()=>yTo,SEMRESATTRS_SERVICE_NAMESPACE:()=>ATo,SEMRESATTRS_SERVICE_VERSION:()=>bTo,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>_To,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>STo,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>ETo,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>xTo,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>wTo,SEMRESATTRS_WEBENGINE_NAME:()=>CTo,SEMRESATTRS_WEBENGINE_VERSION:()=>TTo,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>Ewo,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>Swo,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>xwo,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>Cwo,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>Two,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>wwo,SemanticAttributes:()=>Yee,SemanticResourceAttributes:()=>ITo,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>E4o,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>S4o,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>x4o,TELEMETRYSDKLANGUAGEVALUES_GO:()=>_4o,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>C4o,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>T4o,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>w4o,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>I4o,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>D4o,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>O4o,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>lQc,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>Dwo,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>Owo,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>uQc,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>Rwo,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>Nwo,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>fQc,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>Pwo,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>Bwo,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>kwo,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>Mwo,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>Lwo,TelemetrySdkLanguageValues:()=>R4o});var Wl=j(()=>{eQr();THr();wHr();IHr();DHr()});var U7e,OHr=j(()=>{U7e=class{_delegate;constructor(e){this._delegate=e}export(e,r){this._delegate.export(e,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}});var tO,F7e=j(()=>{tO=class extends Error{code;name="OTLPExporterError";data;constructor(e,r,o){super(e),this.data=o,this.code=r}}});function G5o(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function Q7e(t){if(t!=null)return()=>t}function q7e(t,e,r){return{timeoutMillis:G5o(t.timeoutMillis??e.timeoutMillis??r.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??r.concurrencyLimit,compression:t.compression??e.compression??r.compression}}function H7e(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var X0e=j(()=>{});var V7e,RHr=j(()=>{(function(t){t.NONE="none",t.GZIP="gzip"})(V7e||(V7e={}))});function G7e(t){return new xTt(t.concurrencyLimit)}var xTt,_Tt=j(()=>{xTt=class{_concurrencyLimit;_sendingPromises=[];constructor(e){this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);let r=()=>{let o=this._sendingPromises.indexOf(e);this._sendingPromises.splice(o,1)};e.then(r,r)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}});var Z0e=E(dk=>{"use strict";Object.defineProperty(dk,"__esModule",{value:!0});dk.isTracingSuppressed=dk.unsuppressTracing=dk.suppressTracing=void 0;var j5o=(ut(),nt(xt)),CTt=(0,j5o.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function $5o(t){return t.setValue(CTt,!0)}dk.suppressTracing=$5o;function W5o(t){return t.deleteValue(CTt)}dk.unsuppressTracing=W5o;function z5o(t){return t.getValue(CTt)===!0}dk.isTracingSuppressed=z5o});var TTt=E(X1=>{"use strict";Object.defineProperty(X1,"__esModule",{value:!0});X1.BAGGAGE_MAX_TOTAL_LENGTH=X1.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=X1.BAGGAGE_MAX_NAME_VALUE_PAIRS=X1.BAGGAGE_HEADER=X1.BAGGAGE_ITEMS_SEPARATOR=X1.BAGGAGE_PROPERTIES_SEPARATOR=X1.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;X1.BAGGAGE_KEY_PAIR_SEPARATOR="=";X1.BAGGAGE_PROPERTIES_SEPARATOR=";";X1.BAGGAGE_ITEMS_SEPARATOR=",";X1.BAGGAGE_HEADER="baggage";X1.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;X1.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;X1.BAGGAGE_MAX_TOTAL_LENGTH=8192});var wTt=E($5=>{"use strict";Object.defineProperty($5,"__esModule",{value:!0});$5.parseKeyPairsIntoRecord=$5.parsePairKeyValue=$5.getKeyPairs=$5.serializeKeyPairs=void 0;var K5o=(ut(),nt(xt)),eV=TTt();function Y5o(t){return t.reduce((e,r)=>{let o=`${e}${e!==""?eV.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return o.length>eV.BAGGAGE_MAX_TOTAL_LENGTH?e:o},"")}$5.serializeKeyPairs=Y5o;function J5o(t){return t.getAllEntries().map(([e,r])=>{let o=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(o+=eV.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),o})}$5.getKeyPairs=J5o;function NHr(t){let e=t.split(eV.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let o=r.indexOf(eV.BAGGAGE_KEY_PAIR_SEPARATOR);if(o<=0)return;let s=decodeURIComponent(r.substring(0,o).trim()),a=decodeURIComponent(r.substring(o+1).trim()),i;return e.length>0&&(i=(0,K5o.baggageEntryMetadataFromString)(e.join(eV.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:a,metadata:i}}$5.parsePairKeyValue=NHr;function X5o(t){let e={};return typeof t=="string"&&t.length>0&&t.split(eV.BAGGAGE_ITEMS_SEPARATOR).forEach(r=>{let o=NHr(r);o!==void 0&&o.value.length>0&&(e[o.key]=o.value)}),e}$5.parseKeyPairsIntoRecord=X5o});var PHr=E(j7e=>{"use strict";Object.defineProperty(j7e,"__esModule",{value:!0});j7e.W3CBaggagePropagator=void 0;var ITt=(ut(),nt(xt)),Z5o=Z0e(),tV=TTt(),DTt=wTt(),OTt=class{inject(e,r,o){let s=ITt.propagation.getBaggage(e);if(!s||(0,Z5o.isTracingSuppressed)(e))return;let a=(0,DTt.getKeyPairs)(s).filter(n=>n.length<=tV.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,tV.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,DTt.serializeKeyPairs)(a);i.length>0&&o.set(r,tV.BAGGAGE_HEADER,i)}extract(e,r,o){let s=o.get(r,tV.BAGGAGE_HEADER),a=Array.isArray(s)?s.join(tV.BAGGAGE_ITEMS_SEPARATOR):s;if(!a)return e;let i={};return a.length===0||(a.split(tV.BAGGAGE_ITEMS_SEPARATOR).forEach(c=>{let u=(0,DTt.parsePairKeyValue)(c);if(u){let f={value:u.value};u.metadata&&(f.metadata=u.metadata),i[u.key]=f}}),Object.entries(i).length===0)?e:ITt.propagation.setBaggage(e,ITt.propagation.createBaggage(i))}fields(){return[tV.BAGGAGE_HEADER]}};j7e.W3CBaggagePropagator=OTt});var BHr=E($7e=>{"use strict";Object.defineProperty($7e,"__esModule",{value:!0});$7e.AnchoredClock=void 0;var RTt=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,r){this._monotonicClock=r,this._epochMillis=e.now(),this._performanceMillis=r.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};$7e.AnchoredClock=RTt});var FHr=E(pk=>{"use strict";Object.defineProperty(pk,"__esModule",{value:!0});pk.isAttributeValue=pk.isAttributeKey=pk.sanitizeAttributes=void 0;var kHr=(ut(),nt(xt));function eIo(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,o]of Object.entries(t)){if(!MHr(r)){kHr.diag.warn(`Invalid attribute key: ${r}`);continue}if(!LHr(o)){kHr.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(o)?e[r]=o.slice():e[r]=o}return e}pk.sanitizeAttributes=eIo;function MHr(t){return typeof t=="string"&&t.length>0}pk.isAttributeKey=MHr;function LHr(t){return t==null?!0:Array.isArray(t)?tIo(t):UHr(t)}pk.isAttributeValue=LHr;function tIo(t){let e;for(let r of t)if(r!=null){if(!e){if(UHr(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function UHr(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var NTt=E(W7e=>{"use strict";Object.defineProperty(W7e,"__esModule",{value:!0});W7e.loggingErrorHandler=void 0;var rIo=(ut(),nt(xt));function nIo(){return t=>{rIo.diag.error(iIo(t))}}W7e.loggingErrorHandler=nIo;function iIo(t){return typeof t=="string"?t:JSON.stringify(oIo(t))}function oIo(t){let e={},r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(o=>{if(e[o])return;let s=r[o];s&&(e[o]=String(s))}),r=Object.getPrototypeOf(r);return e}});var qHr=E(Jee=>{"use strict";Object.defineProperty(Jee,"__esModule",{value:!0});Jee.globalErrorHandler=Jee.setGlobalErrorHandler=void 0;var sIo=NTt(),QHr=(0,sIo.loggingErrorHandler)();function aIo(t){QHr=t}Jee.setGlobalErrorHandler=aIo;function cIo(t){try{QHr(t)}catch{}}Jee.globalErrorHandler=cIo});var jHr=E(W5=>{"use strict";Object.defineProperty(W5,"__esModule",{value:!0});W5.getStringListFromEnv=W5.getBooleanFromEnv=W5.getStringFromEnv=W5.getNumberFromEnv=void 0;var HHr=(ut(),nt(xt)),VHr=me("util");function lIo(t){let e=process.env[t];if(e==null||e.trim()==="")return;let r=Number(e);if(isNaN(r)){HHr.diag.warn(`Unknown value ${(0,VHr.inspect)(e)} for ${t}, expected a number, using defaults`);return}return r}W5.getNumberFromEnv=lIo;function GHr(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}W5.getStringFromEnv=GHr;function uIo(t){let e=process.env[t]?.trim().toLowerCase();return e==null||e===""?!1:e==="true"?!0:(e==="false"||HHr.diag.warn(`Unknown value ${(0,VHr.inspect)(e)} for ${t}, expected 'true' or 'false', falling back to 'false' (default)`),!1)}W5.getBooleanFromEnv=uIo;function fIo(t){return GHr(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}W5.getStringListFromEnv=fIo});var $Hr=E(z7e=>{"use strict";Object.defineProperty(z7e,"__esModule",{value:!0});z7e._globalThis=void 0;z7e._globalThis=typeof globalThis=="object"?globalThis:global});var WHr=E(K7e=>{"use strict";Object.defineProperty(K7e,"__esModule",{value:!0});K7e.otperformance=void 0;var dIo=me("perf_hooks");K7e.otperformance=dIo.performance});var zHr=E(Y7e=>{"use strict";Object.defineProperty(Y7e,"__esModule",{value:!0});Y7e.VERSION=void 0;Y7e.VERSION="2.1.0"});var KHr=E(J7e=>{"use strict";Object.defineProperty(J7e,"__esModule",{value:!0});J7e.ATTR_PROCESS_RUNTIME_NAME=void 0;J7e.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var YHr=E(Z7e=>{"use strict";Object.defineProperty(Z7e,"__esModule",{value:!0});Z7e.SDK_INFO=void 0;var pIo=zHr(),X7e=(Wl(),nt(Uu)),hIo=KHr();Z7e.SDK_INFO={[X7e.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[hIo.ATTR_PROCESS_RUNTIME_NAME]:"node",[X7e.ATTR_TELEMETRY_SDK_LANGUAGE]:X7e.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[X7e.ATTR_TELEMETRY_SDK_VERSION]:pIo.VERSION}});var JHr=E(eOe=>{"use strict";Object.defineProperty(eOe,"__esModule",{value:!0});eOe.unrefTimer=void 0;function mIo(t){t.unref()}eOe.unrefTimer=mIo});var XHr=E(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.unrefTimer=r0.SDK_INFO=r0.otperformance=r0._globalThis=r0.getStringListFromEnv=r0.getNumberFromEnv=r0.getBooleanFromEnv=r0.getStringFromEnv=void 0;var tOe=jHr();Object.defineProperty(r0,"getStringFromEnv",{enumerable:!0,get:function(){return tOe.getStringFromEnv}});Object.defineProperty(r0,"getBooleanFromEnv",{enumerable:!0,get:function(){return tOe.getBooleanFromEnv}});Object.defineProperty(r0,"getNumberFromEnv",{enumerable:!0,get:function(){return tOe.getNumberFromEnv}});Object.defineProperty(r0,"getStringListFromEnv",{enumerable:!0,get:function(){return tOe.getStringListFromEnv}});var gIo=$Hr();Object.defineProperty(r0,"_globalThis",{enumerable:!0,get:function(){return gIo._globalThis}});var yIo=WHr();Object.defineProperty(r0,"otperformance",{enumerable:!0,get:function(){return yIo.otperformance}});var AIo=YHr();Object.defineProperty(r0,"SDK_INFO",{enumerable:!0,get:function(){return AIo.SDK_INFO}});var vIo=JHr();Object.defineProperty(r0,"unrefTimer",{enumerable:!0,get:function(){return vIo.unrefTimer}})});var PTt=E(n0=>{"use strict";Object.defineProperty(n0,"__esModule",{value:!0});n0.getStringListFromEnv=n0.getNumberFromEnv=n0.getStringFromEnv=n0.getBooleanFromEnv=n0.unrefTimer=n0.otperformance=n0._globalThis=n0.SDK_INFO=void 0;var hk=XHr();Object.defineProperty(n0,"SDK_INFO",{enumerable:!0,get:function(){return hk.SDK_INFO}});Object.defineProperty(n0,"_globalThis",{enumerable:!0,get:function(){return hk._globalThis}});Object.defineProperty(n0,"otperformance",{enumerable:!0,get:function(){return hk.otperformance}});Object.defineProperty(n0,"unrefTimer",{enumerable:!0,get:function(){return hk.unrefTimer}});Object.defineProperty(n0,"getBooleanFromEnv",{enumerable:!0,get:function(){return hk.getBooleanFromEnv}});Object.defineProperty(n0,"getStringFromEnv",{enumerable:!0,get:function(){return hk.getStringFromEnv}});Object.defineProperty(n0,"getNumberFromEnv",{enumerable:!0,get:function(){return hk.getNumberFromEnv}});Object.defineProperty(n0,"getStringListFromEnv",{enumerable:!0,get:function(){return hk.getStringListFromEnv}})});var rVr=E(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.addHrTimes=Of.isTimeInput=Of.isTimeInputHrTime=Of.hrTimeToMicroseconds=Of.hrTimeToMilliseconds=Of.hrTimeToNanoseconds=Of.hrTimeToTimeStamp=Of.hrTimeDuration=Of.timeInputToHrTime=Of.hrTime=Of.getTimeOrigin=Of.millisToHrTime=void 0;var BTt=PTt(),ZHr=9,bIo=6,EIo=Math.pow(10,bIo),rOe=Math.pow(10,ZHr);function e2e(t){let e=t/1e3,r=Math.trunc(e),o=Math.round(t%1e3*EIo);return[r,o]}Of.millisToHrTime=e2e;function kTt(){let t=BTt.otperformance.timeOrigin;if(typeof t!="number"){let e=BTt.otperformance;t=e.timing&&e.timing.fetchStart}return t}Of.getTimeOrigin=kTt;function eVr(t){let e=e2e(kTt()),r=e2e(typeof t=="number"?t:BTt.otperformance.now());return tVr(e,r)}Of.hrTime=eVr;function SIo(t){if(MTt(t))return t;if(typeof t=="number")return t<kTt()?eVr(t):e2e(t);if(t instanceof Date)return e2e(t.getTime());throw TypeError("Invalid input type")}Of.timeInputToHrTime=SIo;function xIo(t,e){let r=e[0]-t[0],o=e[1]-t[1];return o<0&&(r-=1,o+=rOe),[r,o]}Of.hrTimeDuration=xIo;function _Io(t){let e=ZHr,r=`${"0".repeat(e)}${t[1]}Z`,o=r.substring(r.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",o)}Of.hrTimeToTimeStamp=_Io;function CIo(t){return t[0]*rOe+t[1]}Of.hrTimeToNanoseconds=CIo;function TIo(t){return t[0]*1e3+t[1]/1e6}Of.hrTimeToMilliseconds=TIo;function wIo(t){return t[0]*1e6+t[1]/1e3}Of.hrTimeToMicroseconds=wIo;function MTt(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}Of.isTimeInputHrTime=MTt;function IIo(t){return MTt(t)||typeof t=="number"||t instanceof Date}Of.isTimeInput=IIo;function tVr(t,e){let r=[t[0]+e[0],t[1]+e[1]];return r[1]>=rOe&&(r[1]-=rOe,r[0]+=1),r}Of.addHrTimes=tVr});var nVr=E(t2e=>{"use strict";Object.defineProperty(t2e,"__esModule",{value:!0});t2e.ExportResultCode=void 0;var DIo;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(DIo=t2e.ExportResultCode||(t2e.ExportResultCode={}))});var oVr=E(nOe=>{"use strict";Object.defineProperty(nOe,"__esModule",{value:!0});nOe.CompositePropagator=void 0;var iVr=(ut(),nt(xt)),LTt=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,o)=>r.concat(o),[])))}inject(e,r,o){for(let s of this._propagators)try{s.inject(e,r,o)}catch(a){iVr.diag.warn(`Failed to inject with ${s.constructor.name}. Err: ${a.message}`)}}extract(e,r,o){return this._propagators.reduce((s,a)=>{try{return a.extract(s,r,o)}catch(i){iVr.diag.warn(`Failed to extract with ${a.constructor.name}. Err: ${i.message}`)}return s},e)}fields(){return this._fields.slice()}};nOe.CompositePropagator=LTt});var sVr=E(Xee=>{"use strict";Object.defineProperty(Xee,"__esModule",{value:!0});Xee.validateValue=Xee.validateKey=void 0;var UTt="[_0-9a-z-*/]",OIo=`[a-z]${UTt}{0,255}`,RIo=`[a-z0-9]${UTt}{0,240}@[a-z]${UTt}{0,13}`,NIo=new RegExp(`^(?:${OIo}|${RIo})$`),PIo=/^[ -~]{0,255}[!-~]$/,BIo=/,|=/;function kIo(t){return NIo.test(t)}Xee.validateKey=kIo;function MIo(t){return PIo.test(t)&&!BIo.test(t)}Xee.validateValue=MIo});var QTt=E(iOe=>{"use strict";Object.defineProperty(iOe,"__esModule",{value:!0});iOe.TraceState=void 0;var aVr=sVr(),cVr=32,LIo=512,lVr=",",uVr="=",FTt=class t{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,r){let o=this._clone();return o._internalState.has(e)&&o._internalState.delete(e),o._internalState.set(e,r),o}unset(e){let r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+uVr+this.get(r)),e),[]).join(lVr)}_parse(e){e.length>LIo||(this._internalState=e.split(lVr).reverse().reduce((r,o)=>{let s=o.trim(),a=s.indexOf(uVr);if(a!==-1){let i=s.slice(0,a),n=s.slice(a+1,o.length);(0,aVr.validateKey)(i)&&(0,aVr.validateValue)(n)&&r.set(i,n)}return r},new Map),this._internalState.size>cVr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,cVr))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};iOe.TraceState=FTt});var dVr=E(Z1=>{"use strict";Object.defineProperty(Z1,"__esModule",{value:!0});Z1.W3CTraceContextPropagator=Z1.parseTraceParent=Z1.TRACE_STATE_HEADER=Z1.TRACE_PARENT_HEADER=void 0;var oOe=(ut(),nt(xt)),UIo=Z0e(),FIo=QTt();Z1.TRACE_PARENT_HEADER="traceparent";Z1.TRACE_STATE_HEADER="tracestate";var QIo="00",qIo="(?!ff)[\\da-f]{2}",HIo="(?![0]{32})[\\da-f]{32}",VIo="(?![0]{16})[\\da-f]{16}",GIo="[\\da-f]{2}",jIo=new RegExp(`^\\s?(${qIo})-(${HIo})-(${VIo})-(${GIo})(-.*)?\\s?$`);function fVr(t){let e=jIo.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}Z1.parseTraceParent=fVr;var qTt=class{inject(e,r,o){let s=oOe.trace.getSpanContext(e);if(!s||(0,UIo.isTracingSuppressed)(e)||!(0,oOe.isSpanContextValid)(s))return;let a=`${QIo}-${s.traceId}-${s.spanId}-0${Number(s.traceFlags||oOe.TraceFlags.NONE).toString(16)}`;o.set(r,Z1.TRACE_PARENT_HEADER,a),s.traceState&&o.set(r,Z1.TRACE_STATE_HEADER,s.traceState.serialize())}extract(e,r,o){let s=o.get(r,Z1.TRACE_PARENT_HEADER);if(!s)return e;let a=Array.isArray(s)?s[0]:s;if(typeof a!="string")return e;let i=fVr(a);if(!i)return e;i.isRemote=!0;let n=o.get(r,Z1.TRACE_STATE_HEADER);if(n){let c=Array.isArray(n)?n.join(","):n;i.traceState=new FIo.TraceState(typeof c=="string"?c:void 0)}return oOe.trace.setSpanContext(e,i)}fields(){return[Z1.TRACE_PARENT_HEADER,Z1.TRACE_STATE_HEADER]}};Z1.W3CTraceContextPropagator=qTt});var pVr=E(Q4=>{"use strict";Object.defineProperty(Q4,"__esModule",{value:!0});Q4.getRPCMetadata=Q4.deleteRPCMetadata=Q4.setRPCMetadata=Q4.RPCType=void 0;var $Io=(ut(),nt(xt)),HTt=(0,$Io.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),WIo;(function(t){t.HTTP="http"})(WIo=Q4.RPCType||(Q4.RPCType={}));function zIo(t,e){return t.setValue(HTt,e)}Q4.setRPCMetadata=zIo;function KIo(t){return t.deleteValue(HTt)}Q4.deleteRPCMetadata=KIo;function YIo(t){return t.getValue(HTt)}Q4.getRPCMetadata=YIo});var AVr=E(sOe=>{"use strict";Object.defineProperty(sOe,"__esModule",{value:!0});sOe.isPlainObject=void 0;var JIo="[object Object]",XIo="[object Null]",ZIo="[object Undefined]",e8o=Function.prototype,hVr=e8o.toString,t8o=hVr.call(Object),r8o=Object.getPrototypeOf,mVr=Object.prototype,gVr=mVr.hasOwnProperty,rV=Symbol?Symbol.toStringTag:void 0,yVr=mVr.toString;function n8o(t){if(!i8o(t)||o8o(t)!==JIo)return!1;let e=r8o(t);if(e===null)return!0;let r=gVr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&hVr.call(r)===t8o}sOe.isPlainObject=n8o;function i8o(t){return t!=null&&typeof t=="object"}function o8o(t){return t==null?t===void 0?ZIo:XIo:rV&&rV in Object(t)?s8o(t):a8o(t)}function s8o(t){let e=gVr.call(t,rV),r=t[rV],o=!1;try{t[rV]=void 0,o=!0}catch{}let s=yVr.call(t);return o&&(e?t[rV]=r:delete t[rV]),s}function a8o(t){return yVr.call(t)}});var xVr=E(lOe=>{"use strict";Object.defineProperty(lOe,"__esModule",{value:!0});lOe.merge=void 0;var vVr=AVr(),c8o=20;function l8o(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=EVr(e,t.shift(),0,r);return e}lOe.merge=l8o;function VTt(t){return cOe(t)?t.slice():t}function EVr(t,e,r=0,o){let s;if(!(r>c8o)){if(r++,aOe(t)||aOe(e)||SVr(e))s=VTt(e);else if(cOe(t)){if(s=t.slice(),cOe(e))for(let a=0,i=e.length;a<i;a++)s.push(VTt(e[a]));else if(r2e(e)){let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i];s[c]=VTt(e[c])}}}else if(r2e(t))if(r2e(e)){if(!u8o(t,e))return e;s=Object.assign({},t);let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i],u=e[c];if(aOe(u))typeof u>"u"?delete s[c]:s[c]=u;else{let f=s[c],d=u;if(bVr(t,c,o)||bVr(e,c,o))delete s[c];else{if(r2e(f)&&r2e(d)){let p=o.get(f)||[],h=o.get(d)||[];p.push({obj:t,key:c}),h.push({obj:e,key:c}),o.set(f,p),o.set(d,h)}s[c]=EVr(s[c],u,r,o)}}}}else s=e;return s}}function bVr(t,e,r){let o=r.get(t[e])||[];for(let s=0,a=o.length;s<a;s++){let i=o[s];if(i.key===e&&i.obj===t)return!0}return!1}function cOe(t){return Array.isArray(t)}function SVr(t){return typeof t=="function"}function r2e(t){return!aOe(t)&&!cOe(t)&&!SVr(t)&&typeof t=="object"}function aOe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function u8o(t,e){return!(!(0,vVr.isPlainObject)(t)||!(0,vVr.isPlainObject)(e))}});var _Vr=E(Zee=>{"use strict";Object.defineProperty(Zee,"__esModule",{value:!0});Zee.callWithTimeout=Zee.TimeoutError=void 0;var uOe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};Zee.TimeoutError=uOe;function f8o(t,e){let r,o=new Promise(function(a,i){r=setTimeout(function(){i(new uOe("Operation timed out."))},e)});return Promise.race([t,o]).then(s=>(clearTimeout(r),s),s=>{throw clearTimeout(r),s})}Zee.callWithTimeout=f8o});var TVr=E(ete=>{"use strict";Object.defineProperty(ete,"__esModule",{value:!0});ete.isUrlIgnored=ete.urlMatches=void 0;function CVr(t,e){return typeof e=="string"?t===e:!!t.match(e)}ete.urlMatches=CVr;function d8o(t,e){if(!e)return!1;for(let r of e)if(CVr(t,r))return!0;return!1}ete.isUrlIgnored=d8o});var wVr=E(fOe=>{"use strict";Object.defineProperty(fOe,"__esModule",{value:!0});fOe.Deferred=void 0;var GTt=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};fOe.Deferred=GTt});var IVr=E(dOe=>{"use strict";Object.defineProperty(dOe,"__esModule",{value:!0});dOe.BindOnceFuture=void 0;var p8o=wVr(),jTt=class{_callback;_that;_isCalled=!1;_deferred=new p8o.Deferred;constructor(e,r){this._callback=e,this._that=r}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(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};dOe.BindOnceFuture=jTt});var OVr=E(pOe=>{"use strict";Object.defineProperty(pOe,"__esModule",{value:!0});pOe.diagLogLevelFromString=void 0;var rO=(ut(),nt(xt)),DVr={ALL:rO.DiagLogLevel.ALL,VERBOSE:rO.DiagLogLevel.VERBOSE,DEBUG:rO.DiagLogLevel.DEBUG,INFO:rO.DiagLogLevel.INFO,WARN:rO.DiagLogLevel.WARN,ERROR:rO.DiagLogLevel.ERROR,NONE:rO.DiagLogLevel.NONE};function h8o(t){if(t==null)return;let e=DVr[t.toUpperCase()];return e??(rO.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(DVr)}, using default`),rO.DiagLogLevel.INFO)}pOe.diagLogLevelFromString=h8o});var NVr=E(hOe=>{"use strict";Object.defineProperty(hOe,"__esModule",{value:!0});hOe._export=void 0;var RVr=(ut(),nt(xt)),m8o=Z0e();function g8o(t,e){return new Promise(r=>{RVr.context.with((0,m8o.suppressTracing)(RVr.context.active()),()=>{t.export(e,o=>{r(o)})})})}hOe._export=g8o});var n2e=E(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.internal=an.diagLogLevelFromString=an.BindOnceFuture=an.urlMatches=an.isUrlIgnored=an.callWithTimeout=an.TimeoutError=an.merge=an.TraceState=an.unsuppressTracing=an.suppressTracing=an.isTracingSuppressed=an.setRPCMetadata=an.getRPCMetadata=an.deleteRPCMetadata=an.RPCType=an.parseTraceParent=an.W3CTraceContextPropagator=an.TRACE_STATE_HEADER=an.TRACE_PARENT_HEADER=an.CompositePropagator=an.unrefTimer=an.otperformance=an.getStringListFromEnv=an.getNumberFromEnv=an.getBooleanFromEnv=an.getStringFromEnv=an._globalThis=an.SDK_INFO=an.parseKeyPairsIntoRecord=an.ExportResultCode=an.timeInputToHrTime=an.millisToHrTime=an.isTimeInputHrTime=an.isTimeInput=an.hrTimeToTimeStamp=an.hrTimeToNanoseconds=an.hrTimeToMilliseconds=an.hrTimeToMicroseconds=an.hrTimeDuration=an.hrTime=an.getTimeOrigin=an.addHrTimes=an.loggingErrorHandler=an.setGlobalErrorHandler=an.globalErrorHandler=an.sanitizeAttributes=an.isAttributeValue=an.AnchoredClock=an.W3CBaggagePropagator=void 0;var y8o=PHr();Object.defineProperty(an,"W3CBaggagePropagator",{enumerable:!0,get:function(){return y8o.W3CBaggagePropagator}});var A8o=BHr();Object.defineProperty(an,"AnchoredClock",{enumerable:!0,get:function(){return A8o.AnchoredClock}});var PVr=FHr();Object.defineProperty(an,"isAttributeValue",{enumerable:!0,get:function(){return PVr.isAttributeValue}});Object.defineProperty(an,"sanitizeAttributes",{enumerable:!0,get:function(){return PVr.sanitizeAttributes}});var BVr=qHr();Object.defineProperty(an,"globalErrorHandler",{enumerable:!0,get:function(){return BVr.globalErrorHandler}});Object.defineProperty(an,"setGlobalErrorHandler",{enumerable:!0,get:function(){return BVr.setGlobalErrorHandler}});var v8o=NTt();Object.defineProperty(an,"loggingErrorHandler",{enumerable:!0,get:function(){return v8o.loggingErrorHandler}});var $x=rVr();Object.defineProperty(an,"addHrTimes",{enumerable:!0,get:function(){return $x.addHrTimes}});Object.defineProperty(an,"getTimeOrigin",{enumerable:!0,get:function(){return $x.getTimeOrigin}});Object.defineProperty(an,"hrTime",{enumerable:!0,get:function(){return $x.hrTime}});Object.defineProperty(an,"hrTimeDuration",{enumerable:!0,get:function(){return $x.hrTimeDuration}});Object.defineProperty(an,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return $x.hrTimeToMicroseconds}});Object.defineProperty(an,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return $x.hrTimeToMilliseconds}});Object.defineProperty(an,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return $x.hrTimeToNanoseconds}});Object.defineProperty(an,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return $x.hrTimeToTimeStamp}});Object.defineProperty(an,"isTimeInput",{enumerable:!0,get:function(){return $x.isTimeInput}});Object.defineProperty(an,"isTimeInputHrTime",{enumerable:!0,get:function(){return $x.isTimeInputHrTime}});Object.defineProperty(an,"millisToHrTime",{enumerable:!0,get:function(){return $x.millisToHrTime}});Object.defineProperty(an,"timeInputToHrTime",{enumerable:!0,get:function(){return $x.timeInputToHrTime}});var b8o=nVr();Object.defineProperty(an,"ExportResultCode",{enumerable:!0,get:function(){return b8o.ExportResultCode}});var E8o=wTt();Object.defineProperty(an,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return E8o.parseKeyPairsIntoRecord}});var mk=PTt();Object.defineProperty(an,"SDK_INFO",{enumerable:!0,get:function(){return mk.SDK_INFO}});Object.defineProperty(an,"_globalThis",{enumerable:!0,get:function(){return mk._globalThis}});Object.defineProperty(an,"getStringFromEnv",{enumerable:!0,get:function(){return mk.getStringFromEnv}});Object.defineProperty(an,"getBooleanFromEnv",{enumerable:!0,get:function(){return mk.getBooleanFromEnv}});Object.defineProperty(an,"getNumberFromEnv",{enumerable:!0,get:function(){return mk.getNumberFromEnv}});Object.defineProperty(an,"getStringListFromEnv",{enumerable:!0,get:function(){return mk.getStringListFromEnv}});Object.defineProperty(an,"otperformance",{enumerable:!0,get:function(){return mk.otperformance}});Object.defineProperty(an,"unrefTimer",{enumerable:!0,get:function(){return mk.unrefTimer}});var S8o=oVr();Object.defineProperty(an,"CompositePropagator",{enumerable:!0,get:function(){return S8o.CompositePropagator}});var mOe=dVr();Object.defineProperty(an,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return mOe.TRACE_PARENT_HEADER}});Object.defineProperty(an,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return mOe.TRACE_STATE_HEADER}});Object.defineProperty(an,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return mOe.W3CTraceContextPropagator}});Object.defineProperty(an,"parseTraceParent",{enumerable:!0,get:function(){return mOe.parseTraceParent}});var gOe=pVr();Object.defineProperty(an,"RPCType",{enumerable:!0,get:function(){return gOe.RPCType}});Object.defineProperty(an,"deleteRPCMetadata",{enumerable:!0,get:function(){return gOe.deleteRPCMetadata}});Object.defineProperty(an,"getRPCMetadata",{enumerable:!0,get:function(){return gOe.getRPCMetadata}});Object.defineProperty(an,"setRPCMetadata",{enumerable:!0,get:function(){return gOe.setRPCMetadata}});var $Tt=Z0e();Object.defineProperty(an,"isTracingSuppressed",{enumerable:!0,get:function(){return $Tt.isTracingSuppressed}});Object.defineProperty(an,"suppressTracing",{enumerable:!0,get:function(){return $Tt.suppressTracing}});Object.defineProperty(an,"unsuppressTracing",{enumerable:!0,get:function(){return $Tt.unsuppressTracing}});var x8o=QTt();Object.defineProperty(an,"TraceState",{enumerable:!0,get:function(){return x8o.TraceState}});var _8o=xVr();Object.defineProperty(an,"merge",{enumerable:!0,get:function(){return _8o.merge}});var kVr=_Vr();Object.defineProperty(an,"TimeoutError",{enumerable:!0,get:function(){return kVr.TimeoutError}});Object.defineProperty(an,"callWithTimeout",{enumerable:!0,get:function(){return kVr.callWithTimeout}});var MVr=TVr();Object.defineProperty(an,"isUrlIgnored",{enumerable:!0,get:function(){return MVr.isUrlIgnored}});Object.defineProperty(an,"urlMatches",{enumerable:!0,get:function(){return MVr.urlMatches}});var C8o=IVr();Object.defineProperty(an,"BindOnceFuture",{enumerable:!0,get:function(){return C8o.BindOnceFuture}});var T8o=OVr();Object.defineProperty(an,"diagLogLevelFromString",{enumerable:!0,get:function(){return T8o.diagLogLevelFromString}});var w8o=NVr();an.internal={_export:w8o._export}});function I8o(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function LVr(){return{handleResponse(t){t==null||!I8o(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||Er.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}var UVr=j(()=>{ut()});function yOe(t,e){return new WTt(t.transport,t.serializer,LVr(),t.promiseHandler,e.timeout)}var gk,WTt,zTt=j(()=>{gk=we(n2e());F7e();UVr();ut();WTt=class{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(e,r,o,s,a){this._transport=e,this._serializer=r,this._responseHandler=o,this._promiseQueue=s,this._timeout=a,this._diagLogger=Er.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,r){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){r({code:gk.ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});return}let o=this._serializer.serializeRequest(e);if(o==null){r({code:gk.ExportResultCode.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(o,this._timeout).then(s=>{if(s.status==="success"){if(s.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(s.data))}catch(a){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",a,s.data)}r({code:gk.ExportResultCode.SUCCESS});return}else if(s.status==="failure"&&s.error){r({code:gk.ExportResultCode.FAILED,error:s.error});return}else s.status==="retryable"?r({code:gk.ExportResultCode.FAILED,error:new tO("Export failed with retryable status")}):r({code:gk.ExportResultCode.FAILED,error:new tO("Export failed with unknown error")})},s=>r({code:gk.ExportResultCode.FAILED,error:s})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}});function FVr(t,e,r){return yOe({transport:r,serializer:e,promiseHandler:G7e(t)},{timeout:t.timeoutMillis})}var QVr=j(()=>{_Tt();zTt()});var qVr={};ss(qVr,{CompressionAlgorithm:()=>V7e,OTLPExporterBase:()=>U7e,OTLPExporterError:()=>tO,createOtlpNetworkExportDelegate:()=>FVr,getSharedConfigurationDefaults:()=>H7e,mergeOtlpSharedConfigurationWithDefaults:()=>q7e});var HVr=j(()=>{OHr();F7e();X0e();RHr();QVr()});var KTt=E((Aqc,VVr)=>{"use strict";VVr.exports=D8o;function D8o(t,e){for(var r=new Array(arguments.length-1),o=0,s=2,a=!0;s<arguments.length;)r[o++]=arguments[s++];return new Promise(function(n,c){r[o]=function(f){if(a)if(a=!1,f)c(f);else{for(var d=new Array(arguments.length-1),p=0;p<d.length;)d[p++]=arguments[p];n.apply(null,d)}};try{t.apply(e||null,r)}catch(u){a&&(a=!1,c(u))}})}});var WVr=E($Vr=>{"use strict";var AOe=$Vr;AOe.length=function(e){var r=e.length;if(!r)return 0;for(var o=0;--r%4>1&&e.charAt(r)==="=";)++o;return Math.ceil(e.length*3)/4-o};var tte=new Array(64),jVr=new Array(123);for(q4=0;q4<64;)jVr[tte[q4]=q4<26?q4+65:q4<52?q4+71:q4<62?q4-4:q4-59|43]=q4++;var q4;AOe.encode=function(e,r,o){for(var s=null,a=[],i=0,n=0,c;r<o;){var u=e[r++];switch(n){case 0:a[i++]=tte[u>>2],c=(u&3)<<4,n=1;break;case 1:a[i++]=tte[c|u>>4],c=(u&15)<<2,n=2;break;case 2:a[i++]=tte[c|u>>6],a[i++]=tte[u&63],n=0;break}i>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,a)),i=0)}return n&&(a[i++]=tte[c],a[i++]=61,n===1&&(a[i++]=61)),s?(i&&s.push(String.fromCharCode.apply(String,a.slice(0,i))),s.join("")):String.fromCharCode.apply(String,a.slice(0,i))};var GVr="invalid encoding";AOe.decode=function(e,r,o){for(var s=o,a=0,i,n=0;n<e.length;){var c=e.charCodeAt(n++);if(c===61&&a>1)break;if((c=jVr[c])===void 0)throw Error(GVr);switch(a){case 0:i=c,a=1;break;case 1:r[o++]=i<<2|(c&48)>>4,i=c,a=2;break;case 2:r[o++]=(i&15)<<4|(c&60)>>2,i=c,a=3;break;case 3:r[o++]=(i&3)<<6|c,a=0;break}}if(a===1)throw Error(GVr);return o-s};AOe.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}});var KVr=E((bqc,zVr)=>{"use strict";zVr.exports=vOe;function vOe(){this._listeners={}}vOe.prototype.on=function(e,r,o){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:r,ctx:o||this}),this};vOe.prototype.off=function(e,r){if(e===void 0)this._listeners={};else if(r===void 0)this._listeners[e]=[];else for(var o=this._listeners[e],s=0;s<o.length;)o[s].fn===r?o.splice(s,1):++s;return this};vOe.prototype.emit=function(e){var r=this._listeners[e];if(r){for(var o=[],s=1;s<arguments.length;)o.push(arguments[s++]);for(s=0;s<r.length;)r[s].fn.apply(r[s++].ctx,o)}return this}});var rGr=E((Eqc,tGr)=>{"use strict";tGr.exports=YVr(YVr);function YVr(t){return typeof Float32Array<"u"?(function(){var e=new Float32Array([-0]),r=new Uint8Array(e.buffer),o=r[3]===128;function s(c,u,f){e[0]=c,u[f]=r[0],u[f+1]=r[1],u[f+2]=r[2],u[f+3]=r[3]}function a(c,u,f){e[0]=c,u[f]=r[3],u[f+1]=r[2],u[f+2]=r[1],u[f+3]=r[0]}t.writeFloatLE=o?s:a,t.writeFloatBE=o?a:s;function i(c,u){return r[0]=c[u],r[1]=c[u+1],r[2]=c[u+2],r[3]=c[u+3],e[0]}function n(c,u){return r[3]=c[u],r[2]=c[u+1],r[1]=c[u+2],r[0]=c[u+3],e[0]}t.readFloatLE=o?i:n,t.readFloatBE=o?n:i})():(function(){function e(o,s,a,i){var n=s<0?1:0;if(n&&(s=-s),s===0)o(1/s>0?0:2147483648,a,i);else if(isNaN(s))o(2143289344,a,i);else if(s>34028234663852886e22)o((n<<31|2139095040)>>>0,a,i);else if(s<11754943508222875e-54)o((n<<31|Math.round(s/1401298464324817e-60))>>>0,a,i);else{var c=Math.floor(Math.log(s)/Math.LN2),u=Math.round(s*Math.pow(2,-c)*8388608)&8388607;o((n<<31|c+127<<23|u)>>>0,a,i)}}t.writeFloatLE=e.bind(null,JVr),t.writeFloatBE=e.bind(null,XVr);function r(o,s,a){var i=o(s,a),n=(i>>31)*2+1,c=i>>>23&255,u=i&8388607;return c===255?u?NaN:n*(1/0):c===0?n*1401298464324817e-60*u:n*Math.pow(2,c-150)*(u+8388608)}t.readFloatLE=r.bind(null,ZVr),t.readFloatBE=r.bind(null,eGr)})(),typeof Float64Array<"u"?(function(){var e=new Float64Array([-0]),r=new Uint8Array(e.buffer),o=r[7]===128;function s(c,u,f){e[0]=c,u[f]=r[0],u[f+1]=r[1],u[f+2]=r[2],u[f+3]=r[3],u[f+4]=r[4],u[f+5]=r[5],u[f+6]=r[6],u[f+7]=r[7]}function a(c,u,f){e[0]=c,u[f]=r[7],u[f+1]=r[6],u[f+2]=r[5],u[f+3]=r[4],u[f+4]=r[3],u[f+5]=r[2],u[f+6]=r[1],u[f+7]=r[0]}t.writeDoubleLE=o?s:a,t.writeDoubleBE=o?a:s;function i(c,u){return r[0]=c[u],r[1]=c[u+1],r[2]=c[u+2],r[3]=c[u+3],r[4]=c[u+4],r[5]=c[u+5],r[6]=c[u+6],r[7]=c[u+7],e[0]}function n(c,u){return r[7]=c[u],r[6]=c[u+1],r[5]=c[u+2],r[4]=c[u+3],r[3]=c[u+4],r[2]=c[u+5],r[1]=c[u+6],r[0]=c[u+7],e[0]}t.readDoubleLE=o?i:n,t.readDoubleBE=o?n:i})():(function(){function e(o,s,a,i,n,c){var u=i<0?1:0;if(u&&(i=-i),i===0)o(0,n,c+s),o(1/i>0?0:2147483648,n,c+a);else if(isNaN(i))o(0,n,c+s),o(2146959360,n,c+a);else if(i>17976931348623157e292)o(0,n,c+s),o((u<<31|2146435072)>>>0,n,c+a);else{var f;if(i<22250738585072014e-324)f=i/5e-324,o(f>>>0,n,c+s),o((u<<31|f/4294967296)>>>0,n,c+a);else{var d=Math.floor(Math.log(i)/Math.LN2);d===1024&&(d=1023),f=i*Math.pow(2,-d),o(f*4503599627370496>>>0,n,c+s),o((u<<31|d+1023<<20|f*1048576&1048575)>>>0,n,c+a)}}}t.writeDoubleLE=e.bind(null,JVr,0,4),t.writeDoubleBE=e.bind(null,XVr,4,0);function r(o,s,a,i,n){var c=o(i,n+s),u=o(i,n+a),f=(u>>31)*2+1,d=u>>>20&2047,p=4294967296*(u&1048575)+c;return d===2047?p?NaN:f*(1/0):d===0?f*5e-324*p:f*Math.pow(2,d-1075)*(p+4503599627370496)}t.readDoubleLE=r.bind(null,ZVr,0,4),t.readDoubleBE=r.bind(null,eGr,4,0)})(),t}function JVr(t,e,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}function XVr(t,e,r){e[r]=t>>>24,e[r+1]=t>>>16&255,e[r+2]=t>>>8&255,e[r+3]=t&255}function ZVr(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function eGr(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}});var YTt=E((exports,module)=>{"use strict";module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(t){}return null}});var iGr=E(nGr=>{"use strict";var JTt=nGr;JTt.length=function(e){for(var r=0,o=0,s=0;s<e.length;++s)o=e.charCodeAt(s),o<128?r+=1:o<2048?r+=2:(o&64512)===55296&&(e.charCodeAt(s+1)&64512)===56320?(++s,r+=4):r+=3;return r};JTt.read=function(e,r,o){var s=o-r;if(s<1)return"";for(var a=null,i=[],n=0,c;r<o;)c=e[r++],c<128?i[n++]=c:c>191&&c<224?i[n++]=(c&31)<<6|e[r++]&63:c>239&&c<365?(c=((c&7)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,i[n++]=55296+(c>>10),i[n++]=56320+(c&1023)):i[n++]=(c&15)<<12|(e[r++]&63)<<6|e[r++]&63,n>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,i)),n=0);return a?(n&&a.push(String.fromCharCode.apply(String,i.slice(0,n))),a.join("")):String.fromCharCode.apply(String,i.slice(0,n))};JTt.write=function(e,r,o){for(var s=o,a,i,n=0;n<e.length;++n)a=e.charCodeAt(n),a<128?r[o++]=a:a<2048?(r[o++]=a>>6|192,r[o++]=a&63|128):(a&64512)===55296&&((i=e.charCodeAt(n+1))&64512)===56320?(a=65536+((a&1023)<<10)+(i&1023),++n,r[o++]=a>>18|240,r[o++]=a>>12&63|128,r[o++]=a>>6&63|128,r[o++]=a&63|128):(r[o++]=a>>12|224,r[o++]=a>>6&63|128,r[o++]=a&63|128);return o-s}});var sGr=E((xqc,oGr)=>{"use strict";oGr.exports=O8o;function O8o(t,e,r){var o=r||8192,s=o>>>1,a=null,i=o;return function(c){if(c<1||c>s)return t(c);i+c>o&&(a=t(o),i=0);var u=e.call(a,i,i+=c);return i&7&&(i=(i|7)+1),u}}});var cGr=E((_qc,aGr)=>{"use strict";aGr.exports=i0;var i2e=z5();function i0(t,e){this.lo=t>>>0,this.hi=e>>>0}var nV=i0.zero=new i0(0,0);nV.toNumber=function(){return 0};nV.zzEncode=nV.zzDecode=function(){return this};nV.length=function(){return 1};var R8o=i0.zeroHash="\0\0\0\0\0\0\0\0";i0.fromNumber=function(e){if(e===0)return nV;var r=e<0;r&&(e=-e);var o=e>>>0,s=(e-o)/4294967296>>>0;return r&&(s=~s>>>0,o=~o>>>0,++o>4294967295&&(o=0,++s>4294967295&&(s=0))),new i0(o,s)};i0.from=function(e){if(typeof e=="number")return i0.fromNumber(e);if(i2e.isString(e))if(i2e.Long)e=i2e.Long.fromString(e);else return i0.fromNumber(parseInt(e,10));return e.low||e.high?new i0(e.low>>>0,e.high>>>0):nV};i0.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var r=~this.lo+1>>>0,o=~this.hi>>>0;return r||(o=o+1>>>0),-(r+o*4294967296)}return this.lo+this.hi*4294967296};i0.prototype.toLong=function(e){return i2e.Long?new i2e.Long(this.lo|0,this.hi|0,!!e):{low:this.lo|0,high:this.hi|0,unsigned:!!e}};var yk=String.prototype.charCodeAt;i0.fromHash=function(e){return e===R8o?nV:new i0((yk.call(e,0)|yk.call(e,1)<<8|yk.call(e,2)<<16|yk.call(e,3)<<24)>>>0,(yk.call(e,4)|yk.call(e,5)<<8|yk.call(e,6)<<16|yk.call(e,7)<<24)>>>0)};i0.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};i0.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this};i0.prototype.zzDecode=function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this};i0.prototype.length=function(){var e=this.lo,r=(this.lo>>>28|this.hi<<4)>>>0,o=this.hi>>>24;return o===0?r===0?e<16384?e<128?1:2:e<2097152?3:4:r<16384?r<128?5:6:r<2097152?7:8:o<128?9:10}});var z5=E(XTt=>{"use strict";var bo=XTt;bo.asPromise=KTt();bo.base64=WVr();bo.EventEmitter=KVr();bo.float=rGr();bo.inquire=YTt();bo.utf8=iGr();bo.pool=sGr();bo.LongBits=cGr();bo.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);bo.global=bo.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||XTt;bo.emptyArray=Object.freeze?Object.freeze([]):[];bo.emptyObject=Object.freeze?Object.freeze({}):{};bo.isInteger=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};bo.isString=function(e){return typeof e=="string"||e instanceof String};bo.isObject=function(e){return e&&typeof e=="object"};bo.isset=bo.isSet=function(e,r){var o=e[r];return o!=null&&e.hasOwnProperty(r)?typeof o!="object"||(Array.isArray(o)?o.length:Object.keys(o).length)>0:!1};bo.Buffer=(function(){try{var t=bo.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch{return null}})();bo._Buffer_from=null;bo._Buffer_allocUnsafe=null;bo.newBuffer=function(e){return typeof e=="number"?bo.Buffer?bo._Buffer_allocUnsafe(e):new bo.Array(e):bo.Buffer?bo._Buffer_from(e):typeof Uint8Array>"u"?e:new Uint8Array(e)};bo.Array=typeof Uint8Array<"u"?Uint8Array:Array;bo.Long=bo.global.dcodeIO&&bo.global.dcodeIO.Long||bo.global.Long||bo.inquire("long");bo.key2Re=/^true|false|0|1$/;bo.key32Re=/^-?(?:0|[1-9][0-9]*)$/;bo.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;bo.longToHash=function(e){return e?bo.LongBits.from(e).toHash():bo.LongBits.zeroHash};bo.longFromHash=function(e,r){var o=bo.LongBits.fromHash(e);return bo.Long?bo.Long.fromBits(o.lo,o.hi,r):o.toNumber(!!r)};function lGr(t,e,r){for(var o=Object.keys(e),s=0;s<o.length;++s)(t[o[s]]===void 0||!r)&&(t[o[s]]=e[o[s]]);return t}bo.merge=lGr;bo.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)};function uGr(t){function e(r,o){if(!(this instanceof e))return new e(r,o);Object.defineProperty(this,"message",{get:function(){return r}}),Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:new Error().stack||""}),o&&lGr(this,o)}return e.prototype=Object.create(Error.prototype,{constructor:{value:e,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return t},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),e}bo.newError=uGr;bo.ProtocolError=uGr("ProtocolError");bo.oneOfGetter=function(e){for(var r={},o=0;o<e.length;++o)r[e[o]]=1;return function(){for(var s=Object.keys(this),a=s.length-1;a>-1;--a)if(r[s[a]]===1&&this[s[a]]!==void 0&&this[s[a]]!==null)return s[a]}};bo.oneOfSetter=function(e){return function(r){for(var o=0;o<e.length;++o)e[o]!==r&&delete this[e[o]]}};bo.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};bo._configure=function(){var t=bo.Buffer;if(!t){bo._Buffer_from=bo._Buffer_allocUnsafe=null;return}bo._Buffer_from=t.from!==Uint8Array.from&&t.from||function(r,o){return new t(r,o)},bo._Buffer_allocUnsafe=t.allocUnsafe||function(r){return new t(r)}}});var EOe=E((Tqc,hGr)=>{"use strict";hGr.exports=dl;var Wx=z5(),ZTt,bOe=Wx.LongBits,fGr=Wx.base64,dGr=Wx.utf8;function o2e(t,e,r){this.fn=t,this.len=e,this.next=void 0,this.val=r}function t4t(){}function N8o(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function dl(){this.len=0,this.head=new o2e(t4t,0,0),this.tail=this.head,this.states=null}var pGr=function(){return Wx.Buffer?function(){return(dl.create=function(){return new ZTt})()}:function(){return new dl}};dl.create=pGr();dl.alloc=function(e){return new Wx.Array(e)};Wx.Array!==Array&&(dl.alloc=Wx.pool(dl.alloc,Wx.Array.prototype.subarray));dl.prototype._push=function(e,r,o){return this.tail=this.tail.next=new o2e(e,r,o),this.len+=r,this};function r4t(t,e,r){e[r]=t&255}function P8o(t,e,r){for(;t>127;)e[r++]=t&127|128,t>>>=7;e[r]=t}function n4t(t,e){this.len=t,this.next=void 0,this.val=e}n4t.prototype=Object.create(o2e.prototype);n4t.prototype.fn=P8o;dl.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new n4t((e=e>>>0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this};dl.prototype.int32=function(e){return e<0?this._push(i4t,10,bOe.fromNumber(e)):this.uint32(e)};dl.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function i4t(t,e,r){for(;t.hi;)e[r++]=t.lo&127|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[r++]=t.lo&127|128,t.lo=t.lo>>>7;e[r++]=t.lo}dl.prototype.uint64=function(e){var r=bOe.from(e);return this._push(i4t,r.length(),r)};dl.prototype.int64=dl.prototype.uint64;dl.prototype.sint64=function(e){var r=bOe.from(e).zzEncode();return this._push(i4t,r.length(),r)};dl.prototype.bool=function(e){return this._push(r4t,1,e?1:0)};function e4t(t,e,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}dl.prototype.fixed32=function(e){return this._push(e4t,4,e>>>0)};dl.prototype.sfixed32=dl.prototype.fixed32;dl.prototype.fixed64=function(e){var r=bOe.from(e);return this._push(e4t,4,r.lo)._push(e4t,4,r.hi)};dl.prototype.sfixed64=dl.prototype.fixed64;dl.prototype.float=function(e){return this._push(Wx.float.writeFloatLE,4,e)};dl.prototype.double=function(e){return this._push(Wx.float.writeDoubleLE,8,e)};var B8o=Wx.Array.prototype.set?function(e,r,o){r.set(e,o)}:function(e,r,o){for(var s=0;s<e.length;++s)r[o+s]=e[s]};dl.prototype.bytes=function(e){var r=e.length>>>0;if(!r)return this._push(r4t,1,0);if(Wx.isString(e)){var o=dl.alloc(r=fGr.length(e));fGr.decode(e,o,0),e=o}return this.uint32(r)._push(B8o,r,e)};dl.prototype.string=function(e){var r=dGr.length(e);return r?this.uint32(r)._push(dGr.write,r,e):this._push(r4t,1,0)};dl.prototype.fork=function(){return this.states=new N8o(this),this.head=this.tail=new o2e(t4t,0,0),this.len=0,this};dl.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new o2e(t4t,0,0),this.len=0),this};dl.prototype.ldelim=function(){var e=this.head,r=this.tail,o=this.len;return this.reset().uint32(o),o&&(this.tail.next=e.next,this.tail=r,this.len+=o),this};dl.prototype.finish=function(){for(var e=this.head.next,r=this.constructor.alloc(this.len),o=0;e;)e.fn(e.val,r,o),o+=e.len,e=e.next;return r};dl._configure=function(t){ZTt=t,dl.create=pGr(),ZTt._configure()}});var yGr=E((wqc,gGr)=>{"use strict";gGr.exports=K5;var mGr=EOe();(K5.prototype=Object.create(mGr.prototype)).constructor=K5;var Ak=z5();function K5(){mGr.call(this)}K5._configure=function(){K5.alloc=Ak._Buffer_allocUnsafe,K5.writeBytesBuffer=Ak.Buffer&&Ak.Buffer.prototype instanceof Uint8Array&&Ak.Buffer.prototype.set.name==="set"?function(e,r,o){r.set(e,o)}:function(e,r,o){if(e.copy)e.copy(r,o,0,e.length);else for(var s=0;s<e.length;)r[o++]=e[s++]}};K5.prototype.bytes=function(e){Ak.isString(e)&&(e=Ak._Buffer_from(e,"base64"));var r=e.length>>>0;return this.uint32(r),r&&this._push(K5.writeBytesBuffer,r,e),this};function k8o(t,e,r){t.length<40?Ak.utf8.write(t,e,r):e.utf8Write?e.utf8Write(t,r):e.write(t,r)}K5.prototype.string=function(e){var r=Ak.Buffer.byteLength(e);return this.uint32(r),r&&this._push(k8o,r,e),this};K5._configure()});var xOe=E((Iqc,SGr)=>{"use strict";SGr.exports=Bh;var H4=z5(),s4t,bGr=H4.LongBits,M8o=H4.utf8;function V4(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function Bh(t){this.buf=t,this.pos=0,this.len=t.length}var AGr=typeof Uint8Array<"u"?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new Bh(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new Bh(e);throw Error("illegal buffer")},EGr=function(){return H4.Buffer?function(r){return(Bh.create=function(s){return H4.Buffer.isBuffer(s)?new s4t(s):AGr(s)})(r)}:AGr};Bh.create=EGr();Bh.prototype._slice=H4.Array.prototype.subarray||H4.Array.prototype.slice;Bh.prototype.uint32=(function(){var e=4294967295;return function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,V4(this,10);return e}})();Bh.prototype.int32=function(){return this.uint32()|0};Bh.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function o4t(){var t=new bGr(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(t.lo=(t.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(this.buf[this.pos]&127)<<28)>>>0,t.hi=(t.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return t;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw V4(this);if(t.lo=(t.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(this.buf[this.pos++]&127)<<e*7)>>>0,t}if(this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw V4(this);if(t.hi=(t.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}Bh.prototype.bool=function(){return this.uint32()!==0};function SOe(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}Bh.prototype.fixed32=function(){if(this.pos+4>this.len)throw V4(this,4);return SOe(this.buf,this.pos+=4)};Bh.prototype.sfixed32=function(){if(this.pos+4>this.len)throw V4(this,4);return SOe(this.buf,this.pos+=4)|0};function vGr(){if(this.pos+8>this.len)throw V4(this,8);return new bGr(SOe(this.buf,this.pos+=4),SOe(this.buf,this.pos+=4))}Bh.prototype.float=function(){if(this.pos+4>this.len)throw V4(this,4);var e=H4.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};Bh.prototype.double=function(){if(this.pos+8>this.len)throw V4(this,4);var e=H4.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};Bh.prototype.bytes=function(){var e=this.uint32(),r=this.pos,o=this.pos+e;if(o>this.len)throw V4(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(r,o);if(r===o){var s=H4.Buffer;return s?s.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,r,o)};Bh.prototype.string=function(){var e=this.bytes();return M8o.read(e,0,e.length)};Bh.prototype.skip=function(e){if(typeof e=="number"){if(this.pos+e>this.len)throw V4(this,e);this.pos+=e}else do if(this.pos>=this.len)throw V4(this);while(this.buf[this.pos++]&128);return this};Bh.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(t=this.uint32()&7)!==4;)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this};Bh._configure=function(t){s4t=t,Bh.create=EGr(),s4t._configure();var e=H4.Long?"toLong":"toNumber";H4.merge(Bh.prototype,{int64:function(){return o4t.call(this)[e](!1)},uint64:function(){return o4t.call(this)[e](!0)},sint64:function(){return o4t.call(this).zzDecode()[e](!1)},fixed64:function(){return vGr.call(this)[e](!0)},sfixed64:function(){return vGr.call(this)[e](!1)}})}});var TGr=E((Dqc,CGr)=>{"use strict";CGr.exports=iV;var _Gr=xOe();(iV.prototype=Object.create(_Gr.prototype)).constructor=iV;var xGr=z5();function iV(t){_Gr.call(this,t)}iV._configure=function(){xGr.Buffer&&(iV.prototype._slice=xGr.Buffer.prototype.slice)};iV.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))};iV._configure()});var IGr=E((Oqc,wGr)=>{"use strict";wGr.exports=s2e;var a4t=z5();(s2e.prototype=Object.create(a4t.EventEmitter.prototype)).constructor=s2e;function s2e(t,e,r){if(typeof t!="function")throw TypeError("rpcImpl must be a function");a4t.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!e,this.responseDelimited=!!r}s2e.prototype.rpcCall=function t(e,r,o,s,a){if(!s)throw TypeError("request must be specified");var i=this;if(!a)return a4t.asPromise(t,i,e,r,o,s);if(!i.rpcImpl){setTimeout(function(){a(Error("already ended"))},0);return}try{return i.rpcImpl(e,r[i.requestDelimited?"encodeDelimited":"encode"](s).finish(),function(c,u){if(c)return i.emit("error",c,e),a(c);if(u===null){i.end(!0);return}if(!(u instanceof o))try{u=o[i.responseDelimited?"decodeDelimited":"decode"](u)}catch(f){return i.emit("error",f,e),a(f)}return i.emit("data",u,e),a(null,u)})}catch(n){i.emit("error",n,e),setTimeout(function(){a(n)},0);return}};s2e.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var c4t=E(DGr=>{"use strict";var L8o=DGr;L8o.Service=IGr()});var l4t=E((Nqc,OGr)=>{"use strict";OGr.exports={}});var u4t=E(NGr=>{"use strict";var wv=NGr;wv.build="minimal";wv.Writer=EOe();wv.BufferWriter=yGr();wv.Reader=xOe();wv.BufferReader=TGr();wv.util=z5();wv.rpc=c4t();wv.roots=l4t();wv.configure=RGr;function RGr(){wv.util._configure(),wv.Writer._configure(wv.BufferWriter),wv.Reader._configure(wv.BufferReader)}RGr()});var Y5=E((Bqc,PGr)=>{"use strict";PGr.exports=u4t()});var _Oe=E((BGr,kGr)=>{"use strict";Object.defineProperty(BGr,"__esModule",{value:!0});var Mo=Y5(),Kt=Mo.Reader,sa=Mo.Writer,$e=Mo.util,ke=Mo.roots.default||(Mo.roots.default={});ke.opentelemetry=(function(){var t={};return t.proto=(function(){var e={};return e.common=(function(){var r={};return r.v1=(function(){var o={};return o.AnyValue=(function(){function s(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.stringValue=null,s.prototype.boolValue=null,s.prototype.intValue=null,s.prototype.doubleValue=null,s.prototype.arrayValue=null,s.prototype.kvlistValue=null,s.prototype.bytesValue=null;var a;return Object.defineProperty(s.prototype,"value",{get:$e.oneOfGetter(a=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){return c||(c=sa.create()),n.stringValue!=null&&Object.hasOwnProperty.call(n,"stringValue")&&c.uint32(10).string(n.stringValue),n.boolValue!=null&&Object.hasOwnProperty.call(n,"boolValue")&&c.uint32(16).bool(n.boolValue),n.intValue!=null&&Object.hasOwnProperty.call(n,"intValue")&&c.uint32(24).int64(n.intValue),n.doubleValue!=null&&Object.hasOwnProperty.call(n,"doubleValue")&&c.uint32(33).double(n.doubleValue),n.arrayValue!=null&&Object.hasOwnProperty.call(n,"arrayValue")&&ke.opentelemetry.proto.common.v1.ArrayValue.encode(n.arrayValue,c.uint32(42).fork()).ldelim(),n.kvlistValue!=null&&Object.hasOwnProperty.call(n,"kvlistValue")&&ke.opentelemetry.proto.common.v1.KeyValueList.encode(n.kvlistValue,c.uint32(50).fork()).ldelim(),n.bytesValue!=null&&Object.hasOwnProperty.call(n,"bytesValue")&&c.uint32(58).bytes(n.bytesValue),c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.common.v1.AnyValue;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.stringValue=n.string();break}case 2:{d.boolValue=n.bool();break}case 3:{d.intValue=n.int64();break}case 4:{d.doubleValue=n.double();break}case 5:{d.arrayValue=ke.opentelemetry.proto.common.v1.ArrayValue.decode(n,n.uint32());break}case 6:{d.kvlistValue=ke.opentelemetry.proto.common.v1.KeyValueList.decode(n,n.uint32());break}case 7:{d.bytesValue=n.bytes();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.stringValue!=null&&n.hasOwnProperty("stringValue")&&(c.value=1,!$e.isString(n.stringValue)))return"stringValue: string expected";if(n.boolValue!=null&&n.hasOwnProperty("boolValue")){if(c.value===1)return"value: multiple values";if(c.value=1,typeof n.boolValue!="boolean")return"boolValue: boolean expected"}if(n.intValue!=null&&n.hasOwnProperty("intValue")){if(c.value===1)return"value: multiple values";if(c.value=1,!$e.isInteger(n.intValue)&&!(n.intValue&&$e.isInteger(n.intValue.low)&&$e.isInteger(n.intValue.high)))return"intValue: integer|Long expected"}if(n.doubleValue!=null&&n.hasOwnProperty("doubleValue")){if(c.value===1)return"value: multiple values";if(c.value=1,typeof n.doubleValue!="number")return"doubleValue: number expected"}if(n.arrayValue!=null&&n.hasOwnProperty("arrayValue")){if(c.value===1)return"value: multiple values";c.value=1;{var u=ke.opentelemetry.proto.common.v1.ArrayValue.verify(n.arrayValue);if(u)return"arrayValue."+u}}if(n.kvlistValue!=null&&n.hasOwnProperty("kvlistValue")){if(c.value===1)return"value: multiple values";c.value=1;{var u=ke.opentelemetry.proto.common.v1.KeyValueList.verify(n.kvlistValue);if(u)return"kvlistValue."+u}}if(n.bytesValue!=null&&n.hasOwnProperty("bytesValue")){if(c.value===1)return"value: multiple values";if(c.value=1,!(n.bytesValue&&typeof n.bytesValue.length=="number"||$e.isString(n.bytesValue)))return"bytesValue: buffer expected"}return null},s.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.common.v1.AnyValue)return n;var c=new ke.opentelemetry.proto.common.v1.AnyValue;if(n.stringValue!=null&&(c.stringValue=String(n.stringValue)),n.boolValue!=null&&(c.boolValue=!!n.boolValue),n.intValue!=null&&($e.Long?(c.intValue=$e.Long.fromValue(n.intValue)).unsigned=!1:typeof n.intValue=="string"?c.intValue=parseInt(n.intValue,10):typeof n.intValue=="number"?c.intValue=n.intValue:typeof n.intValue=="object"&&(c.intValue=new $e.LongBits(n.intValue.low>>>0,n.intValue.high>>>0).toNumber())),n.doubleValue!=null&&(c.doubleValue=Number(n.doubleValue)),n.arrayValue!=null){if(typeof n.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");c.arrayValue=ke.opentelemetry.proto.common.v1.ArrayValue.fromObject(n.arrayValue)}if(n.kvlistValue!=null){if(typeof n.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");c.kvlistValue=ke.opentelemetry.proto.common.v1.KeyValueList.fromObject(n.kvlistValue)}return n.bytesValue!=null&&(typeof n.bytesValue=="string"?$e.base64.decode(n.bytesValue,c.bytesValue=$e.newBuffer($e.base64.length(n.bytesValue)),0):n.bytesValue.length>=0&&(c.bytesValue=n.bytesValue)),c},s.toObject=function(n,c){c||(c={});var u={};return n.stringValue!=null&&n.hasOwnProperty("stringValue")&&(u.stringValue=n.stringValue,c.oneofs&&(u.value="stringValue")),n.boolValue!=null&&n.hasOwnProperty("boolValue")&&(u.boolValue=n.boolValue,c.oneofs&&(u.value="boolValue")),n.intValue!=null&&n.hasOwnProperty("intValue")&&(typeof n.intValue=="number"?u.intValue=c.longs===String?String(n.intValue):n.intValue:u.intValue=c.longs===String?$e.Long.prototype.toString.call(n.intValue):c.longs===Number?new $e.LongBits(n.intValue.low>>>0,n.intValue.high>>>0).toNumber():n.intValue,c.oneofs&&(u.value="intValue")),n.doubleValue!=null&&n.hasOwnProperty("doubleValue")&&(u.doubleValue=c.json&&!isFinite(n.doubleValue)?String(n.doubleValue):n.doubleValue,c.oneofs&&(u.value="doubleValue")),n.arrayValue!=null&&n.hasOwnProperty("arrayValue")&&(u.arrayValue=ke.opentelemetry.proto.common.v1.ArrayValue.toObject(n.arrayValue,c),c.oneofs&&(u.value="arrayValue")),n.kvlistValue!=null&&n.hasOwnProperty("kvlistValue")&&(u.kvlistValue=ke.opentelemetry.proto.common.v1.KeyValueList.toObject(n.kvlistValue,c),c.oneofs&&(u.value="kvlistValue")),n.bytesValue!=null&&n.hasOwnProperty("bytesValue")&&(u.bytesValue=c.bytes===String?$e.base64.encode(n.bytesValue,0,n.bytesValue.length):c.bytes===Array?Array.prototype.slice.call(n.bytesValue):n.bytesValue,c.oneofs&&(u.value="bytesValue")),u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.common.v1.AnyValue"},s})(),o.ArrayValue=(function(){function s(a){if(this.values=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.values=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.values!=null&&i.values.length)for(var c=0;c<i.values.length;++c)ke.opentelemetry.proto.common.v1.AnyValue.encode(i.values[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.common.v1.ArrayValue;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.values&&f.values.length||(f.values=[]),f.values.push(ke.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.values!=null&&i.hasOwnProperty("values")){if(!Array.isArray(i.values))return"values: array expected";for(var n=0;n<i.values.length;++n){var c=ke.opentelemetry.proto.common.v1.AnyValue.verify(i.values[n]);if(c)return"values."+c}}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.common.v1.ArrayValue)return i;var n=new ke.opentelemetry.proto.common.v1.ArrayValue;if(i.values){if(!Array.isArray(i.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");n.values=[];for(var c=0;c<i.values.length;++c){if(typeof i.values[c]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");n.values[c]=ke.opentelemetry.proto.common.v1.AnyValue.fromObject(i.values[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.values=[]),i.values&&i.values.length){c.values=[];for(var u=0;u<i.values.length;++u)c.values[u]=ke.opentelemetry.proto.common.v1.AnyValue.toObject(i.values[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.ArrayValue"},s})(),o.KeyValueList=(function(){function s(a){if(this.values=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.values=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.values!=null&&i.values.length)for(var c=0;c<i.values.length;++c)ke.opentelemetry.proto.common.v1.KeyValue.encode(i.values[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.common.v1.KeyValueList;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.values&&f.values.length||(f.values=[]),f.values.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.values!=null&&i.hasOwnProperty("values")){if(!Array.isArray(i.values))return"values: array expected";for(var n=0;n<i.values.length;++n){var c=ke.opentelemetry.proto.common.v1.KeyValue.verify(i.values[n]);if(c)return"values."+c}}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.common.v1.KeyValueList)return i;var n=new ke.opentelemetry.proto.common.v1.KeyValueList;if(i.values){if(!Array.isArray(i.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");n.values=[];for(var c=0;c<i.values.length;++c){if(typeof i.values[c]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");n.values[c]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(i.values[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.values=[]),i.values&&i.values.length){c.values=[];for(var u=0;u<i.values.length;++u)c.values[u]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(i.values[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.KeyValueList"},s})(),o.KeyValue=(function(){function s(a){if(a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.key=null,s.prototype.value=null,s.create=function(i){return new s(i)},s.encode=function(i,n){return n||(n=sa.create()),i.key!=null&&Object.hasOwnProperty.call(i,"key")&&n.uint32(10).string(i.key),i.value!=null&&Object.hasOwnProperty.call(i,"value")&&ke.opentelemetry.proto.common.v1.AnyValue.encode(i.value,n.uint32(18).fork()).ldelim(),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.common.v1.KeyValue;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.key=i.string();break}case 2:{f.value=ke.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32());break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.key!=null&&i.hasOwnProperty("key")&&!$e.isString(i.key))return"key: string expected";if(i.value!=null&&i.hasOwnProperty("value")){var n=ke.opentelemetry.proto.common.v1.AnyValue.verify(i.value);if(n)return"value."+n}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.common.v1.KeyValue)return i;var n=new ke.opentelemetry.proto.common.v1.KeyValue;if(i.key!=null&&(n.key=String(i.key)),i.value!=null){if(typeof i.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");n.value=ke.opentelemetry.proto.common.v1.AnyValue.fromObject(i.value)}return n},s.toObject=function(i,n){n||(n={});var c={};return n.defaults&&(c.key="",c.value=null),i.key!=null&&i.hasOwnProperty("key")&&(c.key=i.key),i.value!=null&&i.hasOwnProperty("value")&&(c.value=ke.opentelemetry.proto.common.v1.AnyValue.toObject(i.value,n)),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.KeyValue"},s})(),o.InstrumentationScope=(function(){function s(a){if(this.attributes=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.name=null,s.prototype.version=null,s.prototype.attributes=$e.emptyArray,s.prototype.droppedAttributesCount=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.name!=null&&Object.hasOwnProperty.call(i,"name")&&n.uint32(10).string(i.name),i.version!=null&&Object.hasOwnProperty.call(i,"version")&&n.uint32(18).string(i.version),i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)ke.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(26).fork()).ldelim();return i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&n.uint32(32).uint32(i.droppedAttributesCount),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.common.v1.InstrumentationScope;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.name=i.string();break}case 2:{f.version=i.string();break}case 3:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 4:{f.droppedAttributesCount=i.uint32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.name!=null&&i.hasOwnProperty("name")&&!$e.isString(i.name))return"name: string expected";if(i.version!=null&&i.hasOwnProperty("version")&&!$e.isString(i.version))return"version: string expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var n=0;n<i.attributes.length;++n){var c=ke.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[n]);if(c)return"attributes."+c}}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(i.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.common.v1.InstrumentationScope)return i;var n=new ke.opentelemetry.proto.common.v1.InstrumentationScope;if(i.name!=null&&(n.name=String(i.name)),i.version!=null&&(n.version=String(i.version)),i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");n.attributes[c]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}return i.droppedAttributesCount!=null&&(n.droppedAttributesCount=i.droppedAttributesCount>>>0),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.attributes=[]),n.defaults&&(c.name="",c.version="",c.droppedAttributesCount=0),i.name!=null&&i.hasOwnProperty("name")&&(c.name=i.name),i.version!=null&&i.hasOwnProperty("version")&&(c.version=i.version),i.attributes&&i.attributes.length){c.attributes=[];for(var u=0;u<i.attributes.length;++u)c.attributes[u]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[u],n)}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=i.droppedAttributesCount),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.InstrumentationScope"},s})(),o.EntityRef=(function(){function s(a){if(this.idKeys=[],this.descriptionKeys=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.schemaUrl=null,s.prototype.type=null,s.prototype.idKeys=$e.emptyArray,s.prototype.descriptionKeys=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(10).string(i.schemaUrl),i.type!=null&&Object.hasOwnProperty.call(i,"type")&&n.uint32(18).string(i.type),i.idKeys!=null&&i.idKeys.length)for(var c=0;c<i.idKeys.length;++c)n.uint32(26).string(i.idKeys[c]);if(i.descriptionKeys!=null&&i.descriptionKeys.length)for(var c=0;c<i.descriptionKeys.length;++c)n.uint32(34).string(i.descriptionKeys[c]);return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.common.v1.EntityRef;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.schemaUrl=i.string();break}case 2:{f.type=i.string();break}case 3:{f.idKeys&&f.idKeys.length||(f.idKeys=[]),f.idKeys.push(i.string());break}case 4:{f.descriptionKeys&&f.descriptionKeys.length||(f.descriptionKeys=[]),f.descriptionKeys.push(i.string());break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl))return"schemaUrl: string expected";if(i.type!=null&&i.hasOwnProperty("type")&&!$e.isString(i.type))return"type: string expected";if(i.idKeys!=null&&i.hasOwnProperty("idKeys")){if(!Array.isArray(i.idKeys))return"idKeys: array expected";for(var n=0;n<i.idKeys.length;++n)if(!$e.isString(i.idKeys[n]))return"idKeys: string[] expected"}if(i.descriptionKeys!=null&&i.hasOwnProperty("descriptionKeys")){if(!Array.isArray(i.descriptionKeys))return"descriptionKeys: array expected";for(var n=0;n<i.descriptionKeys.length;++n)if(!$e.isString(i.descriptionKeys[n]))return"descriptionKeys: string[] expected"}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.common.v1.EntityRef)return i;var n=new ke.opentelemetry.proto.common.v1.EntityRef;if(i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),i.type!=null&&(n.type=String(i.type)),i.idKeys){if(!Array.isArray(i.idKeys))throw TypeError(".opentelemetry.proto.common.v1.EntityRef.idKeys: array expected");n.idKeys=[];for(var c=0;c<i.idKeys.length;++c)n.idKeys[c]=String(i.idKeys[c])}if(i.descriptionKeys){if(!Array.isArray(i.descriptionKeys))throw TypeError(".opentelemetry.proto.common.v1.EntityRef.descriptionKeys: array expected");n.descriptionKeys=[];for(var c=0;c<i.descriptionKeys.length;++c)n.descriptionKeys[c]=String(i.descriptionKeys[c])}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.idKeys=[],c.descriptionKeys=[]),n.defaults&&(c.schemaUrl="",c.type=""),i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),i.type!=null&&i.hasOwnProperty("type")&&(c.type=i.type),i.idKeys&&i.idKeys.length){c.idKeys=[];for(var u=0;u<i.idKeys.length;++u)c.idKeys[u]=i.idKeys[u]}if(i.descriptionKeys&&i.descriptionKeys.length){c.descriptionKeys=[];for(var u=0;u<i.descriptionKeys.length;++u)c.descriptionKeys[u]=i.descriptionKeys[u]}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.EntityRef"},s})(),o})(),r})(),e.resource=(function(){var r={};return r.v1=(function(){var o={};return o.Resource=(function(){function s(a){if(this.attributes=[],this.entityRefs=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.attributes=$e.emptyArray,s.prototype.droppedAttributesCount=null,s.prototype.entityRefs=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)ke.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(10).fork()).ldelim();if(i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&n.uint32(16).uint32(i.droppedAttributesCount),i.entityRefs!=null&&i.entityRefs.length)for(var c=0;c<i.entityRefs.length;++c)ke.opentelemetry.proto.common.v1.EntityRef.encode(i.entityRefs[c],n.uint32(26).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.resource.v1.Resource;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 2:{f.droppedAttributesCount=i.uint32();break}case 3:{f.entityRefs&&f.entityRefs.length||(f.entityRefs=[]),f.entityRefs.push(ke.opentelemetry.proto.common.v1.EntityRef.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var n=0;n<i.attributes.length;++n){var c=ke.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[n]);if(c)return"attributes."+c}}if(i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(i.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(i.entityRefs!=null&&i.hasOwnProperty("entityRefs")){if(!Array.isArray(i.entityRefs))return"entityRefs: array expected";for(var n=0;n<i.entityRefs.length;++n){var c=ke.opentelemetry.proto.common.v1.EntityRef.verify(i.entityRefs[n]);if(c)return"entityRefs."+c}}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.resource.v1.Resource)return i;var n=new ke.opentelemetry.proto.resource.v1.Resource;if(i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");n.attributes[c]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}if(i.droppedAttributesCount!=null&&(n.droppedAttributesCount=i.droppedAttributesCount>>>0),i.entityRefs){if(!Array.isArray(i.entityRefs))throw TypeError(".opentelemetry.proto.resource.v1.Resource.entityRefs: array expected");n.entityRefs=[];for(var c=0;c<i.entityRefs.length;++c){if(typeof i.entityRefs[c]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.entityRefs: object expected");n.entityRefs[c]=ke.opentelemetry.proto.common.v1.EntityRef.fromObject(i.entityRefs[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.attributes=[],c.entityRefs=[]),n.defaults&&(c.droppedAttributesCount=0),i.attributes&&i.attributes.length){c.attributes=[];for(var u=0;u<i.attributes.length;++u)c.attributes[u]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[u],n)}if(i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=i.droppedAttributesCount),i.entityRefs&&i.entityRefs.length){c.entityRefs=[];for(var u=0;u<i.entityRefs.length;++u)c.entityRefs[u]=ke.opentelemetry.proto.common.v1.EntityRef.toObject(i.entityRefs[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.resource.v1.Resource"},s})(),o})(),r})(),e.trace=(function(){var r={};return r.v1=(function(){var o={};return o.TracesData=(function(){function s(a){if(this.resourceSpans=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resourceSpans=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.resourceSpans!=null&&i.resourceSpans.length)for(var c=0;c<i.resourceSpans.length;++c)ke.opentelemetry.proto.trace.v1.ResourceSpans.encode(i.resourceSpans[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.trace.v1.TracesData;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resourceSpans&&f.resourceSpans.length||(f.resourceSpans=[]),f.resourceSpans.push(ke.opentelemetry.proto.trace.v1.ResourceSpans.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resourceSpans!=null&&i.hasOwnProperty("resourceSpans")){if(!Array.isArray(i.resourceSpans))return"resourceSpans: array expected";for(var n=0;n<i.resourceSpans.length;++n){var c=ke.opentelemetry.proto.trace.v1.ResourceSpans.verify(i.resourceSpans[n]);if(c)return"resourceSpans."+c}}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.trace.v1.TracesData)return i;var n=new ke.opentelemetry.proto.trace.v1.TracesData;if(i.resourceSpans){if(!Array.isArray(i.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");n.resourceSpans=[];for(var c=0;c<i.resourceSpans.length;++c){if(typeof i.resourceSpans[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");n.resourceSpans[c]=ke.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(i.resourceSpans[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.resourceSpans=[]),i.resourceSpans&&i.resourceSpans.length){c.resourceSpans=[];for(var u=0;u<i.resourceSpans.length;++u)c.resourceSpans[u]=ke.opentelemetry.proto.trace.v1.ResourceSpans.toObject(i.resourceSpans[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.TracesData"},s})(),o.ResourceSpans=(function(){function s(a){if(this.scopeSpans=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resource=null,s.prototype.scopeSpans=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.resource!=null&&Object.hasOwnProperty.call(i,"resource")&&ke.opentelemetry.proto.resource.v1.Resource.encode(i.resource,n.uint32(10).fork()).ldelim(),i.scopeSpans!=null&&i.scopeSpans.length)for(var c=0;c<i.scopeSpans.length;++c)ke.opentelemetry.proto.trace.v1.ScopeSpans.encode(i.scopeSpans[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.trace.v1.ResourceSpans;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resource=ke.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{f.scopeSpans&&f.scopeSpans.length||(f.scopeSpans=[]),f.scopeSpans.push(ke.opentelemetry.proto.trace.v1.ScopeSpans.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resource!=null&&i.hasOwnProperty("resource")){var n=ke.opentelemetry.proto.resource.v1.Resource.verify(i.resource);if(n)return"resource."+n}if(i.scopeSpans!=null&&i.hasOwnProperty("scopeSpans")){if(!Array.isArray(i.scopeSpans))return"scopeSpans: array expected";for(var c=0;c<i.scopeSpans.length;++c){var n=ke.opentelemetry.proto.trace.v1.ScopeSpans.verify(i.scopeSpans[c]);if(n)return"scopeSpans."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.trace.v1.ResourceSpans)return i;var n=new ke.opentelemetry.proto.trace.v1.ResourceSpans;if(i.resource!=null){if(typeof i.resource!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");n.resource=ke.opentelemetry.proto.resource.v1.Resource.fromObject(i.resource)}if(i.scopeSpans){if(!Array.isArray(i.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");n.scopeSpans=[];for(var c=0;c<i.scopeSpans.length;++c){if(typeof i.scopeSpans[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");n.scopeSpans[c]=ke.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(i.scopeSpans[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.scopeSpans=[]),n.defaults&&(c.resource=null,c.schemaUrl=""),i.resource!=null&&i.hasOwnProperty("resource")&&(c.resource=ke.opentelemetry.proto.resource.v1.Resource.toObject(i.resource,n)),i.scopeSpans&&i.scopeSpans.length){c.scopeSpans=[];for(var u=0;u<i.scopeSpans.length;++u)c.scopeSpans[u]=ke.opentelemetry.proto.trace.v1.ScopeSpans.toObject(i.scopeSpans[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.ResourceSpans"},s})(),o.ScopeSpans=(function(){function s(a){if(this.spans=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.scope=null,s.prototype.spans=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.scope!=null&&Object.hasOwnProperty.call(i,"scope")&&ke.opentelemetry.proto.common.v1.InstrumentationScope.encode(i.scope,n.uint32(10).fork()).ldelim(),i.spans!=null&&i.spans.length)for(var c=0;c<i.spans.length;++c)ke.opentelemetry.proto.trace.v1.Span.encode(i.spans[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.trace.v1.ScopeSpans;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.scope=ke.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{f.spans&&f.spans.length||(f.spans=[]),f.spans.push(ke.opentelemetry.proto.trace.v1.Span.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.scope!=null&&i.hasOwnProperty("scope")){var n=ke.opentelemetry.proto.common.v1.InstrumentationScope.verify(i.scope);if(n)return"scope."+n}if(i.spans!=null&&i.hasOwnProperty("spans")){if(!Array.isArray(i.spans))return"spans: array expected";for(var c=0;c<i.spans.length;++c){var n=ke.opentelemetry.proto.trace.v1.Span.verify(i.spans[c]);if(n)return"spans."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.trace.v1.ScopeSpans)return i;var n=new ke.opentelemetry.proto.trace.v1.ScopeSpans;if(i.scope!=null){if(typeof i.scope!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");n.scope=ke.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(i.scope)}if(i.spans){if(!Array.isArray(i.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");n.spans=[];for(var c=0;c<i.spans.length;++c){if(typeof i.spans[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");n.spans[c]=ke.opentelemetry.proto.trace.v1.Span.fromObject(i.spans[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.spans=[]),n.defaults&&(c.scope=null,c.schemaUrl=""),i.scope!=null&&i.hasOwnProperty("scope")&&(c.scope=ke.opentelemetry.proto.common.v1.InstrumentationScope.toObject(i.scope,n)),i.spans&&i.spans.length){c.spans=[];for(var u=0;u<i.spans.length;++u)c.spans[u]=ke.opentelemetry.proto.trace.v1.Span.toObject(i.spans[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.ScopeSpans"},s})(),o.Span=(function(){function s(a){if(this.attributes=[],this.events=[],this.links=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.traceId=null,s.prototype.spanId=null,s.prototype.traceState=null,s.prototype.parentSpanId=null,s.prototype.flags=null,s.prototype.name=null,s.prototype.kind=null,s.prototype.startTimeUnixNano=null,s.prototype.endTimeUnixNano=null,s.prototype.attributes=$e.emptyArray,s.prototype.droppedAttributesCount=null,s.prototype.events=$e.emptyArray,s.prototype.droppedEventsCount=null,s.prototype.links=$e.emptyArray,s.prototype.droppedLinksCount=null,s.prototype.status=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.traceId!=null&&Object.hasOwnProperty.call(i,"traceId")&&n.uint32(10).bytes(i.traceId),i.spanId!=null&&Object.hasOwnProperty.call(i,"spanId")&&n.uint32(18).bytes(i.spanId),i.traceState!=null&&Object.hasOwnProperty.call(i,"traceState")&&n.uint32(26).string(i.traceState),i.parentSpanId!=null&&Object.hasOwnProperty.call(i,"parentSpanId")&&n.uint32(34).bytes(i.parentSpanId),i.name!=null&&Object.hasOwnProperty.call(i,"name")&&n.uint32(42).string(i.name),i.kind!=null&&Object.hasOwnProperty.call(i,"kind")&&n.uint32(48).int32(i.kind),i.startTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"startTimeUnixNano")&&n.uint32(57).fixed64(i.startTimeUnixNano),i.endTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"endTimeUnixNano")&&n.uint32(65).fixed64(i.endTimeUnixNano),i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)ke.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(74).fork()).ldelim();if(i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&n.uint32(80).uint32(i.droppedAttributesCount),i.events!=null&&i.events.length)for(var c=0;c<i.events.length;++c)ke.opentelemetry.proto.trace.v1.Span.Event.encode(i.events[c],n.uint32(90).fork()).ldelim();if(i.droppedEventsCount!=null&&Object.hasOwnProperty.call(i,"droppedEventsCount")&&n.uint32(96).uint32(i.droppedEventsCount),i.links!=null&&i.links.length)for(var c=0;c<i.links.length;++c)ke.opentelemetry.proto.trace.v1.Span.Link.encode(i.links[c],n.uint32(106).fork()).ldelim();return i.droppedLinksCount!=null&&Object.hasOwnProperty.call(i,"droppedLinksCount")&&n.uint32(112).uint32(i.droppedLinksCount),i.status!=null&&Object.hasOwnProperty.call(i,"status")&&ke.opentelemetry.proto.trace.v1.Status.encode(i.status,n.uint32(122).fork()).ldelim(),i.flags!=null&&Object.hasOwnProperty.call(i,"flags")&&n.uint32(133).fixed32(i.flags),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.trace.v1.Span;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.traceId=i.bytes();break}case 2:{f.spanId=i.bytes();break}case 3:{f.traceState=i.string();break}case 4:{f.parentSpanId=i.bytes();break}case 16:{f.flags=i.fixed32();break}case 5:{f.name=i.string();break}case 6:{f.kind=i.int32();break}case 7:{f.startTimeUnixNano=i.fixed64();break}case 8:{f.endTimeUnixNano=i.fixed64();break}case 9:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 10:{f.droppedAttributesCount=i.uint32();break}case 11:{f.events&&f.events.length||(f.events=[]),f.events.push(ke.opentelemetry.proto.trace.v1.Span.Event.decode(i,i.uint32()));break}case 12:{f.droppedEventsCount=i.uint32();break}case 13:{f.links&&f.links.length||(f.links=[]),f.links.push(ke.opentelemetry.proto.trace.v1.Span.Link.decode(i,i.uint32()));break}case 14:{f.droppedLinksCount=i.uint32();break}case 15:{f.status=ke.opentelemetry.proto.trace.v1.Status.decode(i,i.uint32());break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.traceId!=null&&i.hasOwnProperty("traceId")&&!(i.traceId&&typeof i.traceId.length=="number"||$e.isString(i.traceId)))return"traceId: buffer expected";if(i.spanId!=null&&i.hasOwnProperty("spanId")&&!(i.spanId&&typeof i.spanId.length=="number"||$e.isString(i.spanId)))return"spanId: buffer expected";if(i.traceState!=null&&i.hasOwnProperty("traceState")&&!$e.isString(i.traceState))return"traceState: string expected";if(i.parentSpanId!=null&&i.hasOwnProperty("parentSpanId")&&!(i.parentSpanId&&typeof i.parentSpanId.length=="number"||$e.isString(i.parentSpanId)))return"parentSpanId: buffer expected";if(i.flags!=null&&i.hasOwnProperty("flags")&&!$e.isInteger(i.flags))return"flags: integer expected";if(i.name!=null&&i.hasOwnProperty("name")&&!$e.isString(i.name))return"name: string expected";if(i.kind!=null&&i.hasOwnProperty("kind"))switch(i.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(i.startTimeUnixNano)&&!(i.startTimeUnixNano&&$e.isInteger(i.startTimeUnixNano.low)&&$e.isInteger(i.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(i.endTimeUnixNano!=null&&i.hasOwnProperty("endTimeUnixNano")&&!$e.isInteger(i.endTimeUnixNano)&&!(i.endTimeUnixNano&&$e.isInteger(i.endTimeUnixNano.low)&&$e.isInteger(i.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var n=0;n<i.attributes.length;++n){var c=ke.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[n]);if(c)return"attributes."+c}}if(i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(i.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(i.events!=null&&i.hasOwnProperty("events")){if(!Array.isArray(i.events))return"events: array expected";for(var n=0;n<i.events.length;++n){var c=ke.opentelemetry.proto.trace.v1.Span.Event.verify(i.events[n]);if(c)return"events."+c}}if(i.droppedEventsCount!=null&&i.hasOwnProperty("droppedEventsCount")&&!$e.isInteger(i.droppedEventsCount))return"droppedEventsCount: integer expected";if(i.links!=null&&i.hasOwnProperty("links")){if(!Array.isArray(i.links))return"links: array expected";for(var n=0;n<i.links.length;++n){var c=ke.opentelemetry.proto.trace.v1.Span.Link.verify(i.links[n]);if(c)return"links."+c}}if(i.droppedLinksCount!=null&&i.hasOwnProperty("droppedLinksCount")&&!$e.isInteger(i.droppedLinksCount))return"droppedLinksCount: integer expected";if(i.status!=null&&i.hasOwnProperty("status")){var c=ke.opentelemetry.proto.trace.v1.Status.verify(i.status);if(c)return"status."+c}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.trace.v1.Span)return i;var n=new ke.opentelemetry.proto.trace.v1.Span;switch(i.traceId!=null&&(typeof i.traceId=="string"?$e.base64.decode(i.traceId,n.traceId=$e.newBuffer($e.base64.length(i.traceId)),0):i.traceId.length>=0&&(n.traceId=i.traceId)),i.spanId!=null&&(typeof i.spanId=="string"?$e.base64.decode(i.spanId,n.spanId=$e.newBuffer($e.base64.length(i.spanId)),0):i.spanId.length>=0&&(n.spanId=i.spanId)),i.traceState!=null&&(n.traceState=String(i.traceState)),i.parentSpanId!=null&&(typeof i.parentSpanId=="string"?$e.base64.decode(i.parentSpanId,n.parentSpanId=$e.newBuffer($e.base64.length(i.parentSpanId)),0):i.parentSpanId.length>=0&&(n.parentSpanId=i.parentSpanId)),i.flags!=null&&(n.flags=i.flags>>>0),i.name!=null&&(n.name=String(i.name)),i.kind){default:if(typeof i.kind=="number"){n.kind=i.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:n.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:n.kind=1;break;case"SPAN_KIND_SERVER":case 2:n.kind=2;break;case"SPAN_KIND_CLIENT":case 3:n.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:n.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:n.kind=5;break}if(i.startTimeUnixNano!=null&&($e.Long?(n.startTimeUnixNano=$e.Long.fromValue(i.startTimeUnixNano)).unsigned=!1:typeof i.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(i.startTimeUnixNano,10):typeof i.startTimeUnixNano=="number"?n.startTimeUnixNano=i.startTimeUnixNano:typeof i.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new $e.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber())),i.endTimeUnixNano!=null&&($e.Long?(n.endTimeUnixNano=$e.Long.fromValue(i.endTimeUnixNano)).unsigned=!1:typeof i.endTimeUnixNano=="string"?n.endTimeUnixNano=parseInt(i.endTimeUnixNano,10):typeof i.endTimeUnixNano=="number"?n.endTimeUnixNano=i.endTimeUnixNano:typeof i.endTimeUnixNano=="object"&&(n.endTimeUnixNano=new $e.LongBits(i.endTimeUnixNano.low>>>0,i.endTimeUnixNano.high>>>0).toNumber())),i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");n.attributes[c]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}if(i.droppedAttributesCount!=null&&(n.droppedAttributesCount=i.droppedAttributesCount>>>0),i.events){if(!Array.isArray(i.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");n.events=[];for(var c=0;c<i.events.length;++c){if(typeof i.events[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");n.events[c]=ke.opentelemetry.proto.trace.v1.Span.Event.fromObject(i.events[c])}}if(i.droppedEventsCount!=null&&(n.droppedEventsCount=i.droppedEventsCount>>>0),i.links){if(!Array.isArray(i.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");n.links=[];for(var c=0;c<i.links.length;++c){if(typeof i.links[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");n.links[c]=ke.opentelemetry.proto.trace.v1.Span.Link.fromObject(i.links[c])}}if(i.droppedLinksCount!=null&&(n.droppedLinksCount=i.droppedLinksCount>>>0),i.status!=null){if(typeof i.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");n.status=ke.opentelemetry.proto.trace.v1.Status.fromObject(i.status)}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.attributes=[],c.events=[],c.links=[]),n.defaults){if(n.bytes===String?c.traceId="":(c.traceId=[],n.bytes!==Array&&(c.traceId=$e.newBuffer(c.traceId))),n.bytes===String?c.spanId="":(c.spanId=[],n.bytes!==Array&&(c.spanId=$e.newBuffer(c.spanId))),c.traceState="",n.bytes===String?c.parentSpanId="":(c.parentSpanId=[],n.bytes!==Array&&(c.parentSpanId=$e.newBuffer(c.parentSpanId))),c.name="",c.kind=n.enums===String?"SPAN_KIND_UNSPECIFIED":0,$e.Long){var u=new $e.Long(0,0,!1);c.startTimeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.startTimeUnixNano=n.longs===String?"0":0;if($e.Long){var u=new $e.Long(0,0,!1);c.endTimeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.endTimeUnixNano=n.longs===String?"0":0;c.droppedAttributesCount=0,c.droppedEventsCount=0,c.droppedLinksCount=0,c.status=null,c.flags=0}if(i.traceId!=null&&i.hasOwnProperty("traceId")&&(c.traceId=n.bytes===String?$e.base64.encode(i.traceId,0,i.traceId.length):n.bytes===Array?Array.prototype.slice.call(i.traceId):i.traceId),i.spanId!=null&&i.hasOwnProperty("spanId")&&(c.spanId=n.bytes===String?$e.base64.encode(i.spanId,0,i.spanId.length):n.bytes===Array?Array.prototype.slice.call(i.spanId):i.spanId),i.traceState!=null&&i.hasOwnProperty("traceState")&&(c.traceState=i.traceState),i.parentSpanId!=null&&i.hasOwnProperty("parentSpanId")&&(c.parentSpanId=n.bytes===String?$e.base64.encode(i.parentSpanId,0,i.parentSpanId.length):n.bytes===Array?Array.prototype.slice.call(i.parentSpanId):i.parentSpanId),i.name!=null&&i.hasOwnProperty("name")&&(c.name=i.name),i.kind!=null&&i.hasOwnProperty("kind")&&(c.kind=n.enums===String?ke.opentelemetry.proto.trace.v1.Span.SpanKind[i.kind]===void 0?i.kind:ke.opentelemetry.proto.trace.v1.Span.SpanKind[i.kind]:i.kind),i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&(typeof i.startTimeUnixNano=="number"?c.startTimeUnixNano=n.longs===String?String(i.startTimeUnixNano):i.startTimeUnixNano:c.startTimeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.startTimeUnixNano):n.longs===Number?new $e.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber():i.startTimeUnixNano),i.endTimeUnixNano!=null&&i.hasOwnProperty("endTimeUnixNano")&&(typeof i.endTimeUnixNano=="number"?c.endTimeUnixNano=n.longs===String?String(i.endTimeUnixNano):i.endTimeUnixNano:c.endTimeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.endTimeUnixNano):n.longs===Number?new $e.LongBits(i.endTimeUnixNano.low>>>0,i.endTimeUnixNano.high>>>0).toNumber():i.endTimeUnixNano),i.attributes&&i.attributes.length){c.attributes=[];for(var f=0;f<i.attributes.length;++f)c.attributes[f]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[f],n)}if(i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=i.droppedAttributesCount),i.events&&i.events.length){c.events=[];for(var f=0;f<i.events.length;++f)c.events[f]=ke.opentelemetry.proto.trace.v1.Span.Event.toObject(i.events[f],n)}if(i.droppedEventsCount!=null&&i.hasOwnProperty("droppedEventsCount")&&(c.droppedEventsCount=i.droppedEventsCount),i.links&&i.links.length){c.links=[];for(var f=0;f<i.links.length;++f)c.links[f]=ke.opentelemetry.proto.trace.v1.Span.Link.toObject(i.links[f],n)}return i.droppedLinksCount!=null&&i.hasOwnProperty("droppedLinksCount")&&(c.droppedLinksCount=i.droppedLinksCount),i.status!=null&&i.hasOwnProperty("status")&&(c.status=ke.opentelemetry.proto.trace.v1.Status.toObject(i.status,n)),i.flags!=null&&i.hasOwnProperty("flags")&&(c.flags=i.flags),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.Span"},s.SpanKind=(function(){var a={},i=Object.create(a);return i[a[0]="SPAN_KIND_UNSPECIFIED"]=0,i[a[1]="SPAN_KIND_INTERNAL"]=1,i[a[2]="SPAN_KIND_SERVER"]=2,i[a[3]="SPAN_KIND_CLIENT"]=3,i[a[4]="SPAN_KIND_PRODUCER"]=4,i[a[5]="SPAN_KIND_CONSUMER"]=5,i})(),s.Event=(function(){function a(i){if(this.attributes=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.timeUnixNano=null,a.prototype.name=null,a.prototype.attributes=$e.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=sa.create()),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(9).fixed64(n.timeUnixNano),n.name!=null&&Object.hasOwnProperty.call(n,"name")&&c.uint32(18).string(n.name),n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)ke.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(26).fork()).ldelim();return n.droppedAttributesCount!=null&&Object.hasOwnProperty.call(n,"droppedAttributesCount")&&c.uint32(32).uint32(n.droppedAttributesCount),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.trace.v1.Span.Event;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.timeUnixNano=n.fixed64();break}case 2:{d.name=n.string();break}case 3:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 4:{d.droppedAttributesCount=n.uint32();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.name!=null&&n.hasOwnProperty("name")&&!$e.isString(n.name))return"name: string expected";if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var c=0;c<n.attributes.length;++c){var u=ke.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[c]);if(u)return"attributes."+u}}return n.droppedAttributesCount!=null&&n.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(n.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.trace.v1.Span.Event)return n;var c=new ke.opentelemetry.proto.trace.v1.Span.Event;if(n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.name!=null&&(c.name=String(n.name)),n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");c.attributes[u]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}return n.droppedAttributesCount!=null&&(c.droppedAttributesCount=n.droppedAttributesCount>>>0),c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.attributes=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;u.name="",u.droppedAttributesCount=0}if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.name!=null&&n.hasOwnProperty("name")&&(u.name=n.name),n.attributes&&n.attributes.length){u.attributes=[];for(var d=0;d<n.attributes.length;++d)u.attributes[d]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[d],c)}return n.droppedAttributesCount!=null&&n.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=n.droppedAttributesCount),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.trace.v1.Span.Event"},a})(),s.Link=(function(){function a(i){if(this.attributes=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.traceId=null,a.prototype.spanId=null,a.prototype.traceState=null,a.prototype.attributes=$e.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.flags=null,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=sa.create()),n.traceId!=null&&Object.hasOwnProperty.call(n,"traceId")&&c.uint32(10).bytes(n.traceId),n.spanId!=null&&Object.hasOwnProperty.call(n,"spanId")&&c.uint32(18).bytes(n.spanId),n.traceState!=null&&Object.hasOwnProperty.call(n,"traceState")&&c.uint32(26).string(n.traceState),n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)ke.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(34).fork()).ldelim();return n.droppedAttributesCount!=null&&Object.hasOwnProperty.call(n,"droppedAttributesCount")&&c.uint32(40).uint32(n.droppedAttributesCount),n.flags!=null&&Object.hasOwnProperty.call(n,"flags")&&c.uint32(53).fixed32(n.flags),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.trace.v1.Span.Link;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.traceId=n.bytes();break}case 2:{d.spanId=n.bytes();break}case 3:{d.traceState=n.string();break}case 4:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 5:{d.droppedAttributesCount=n.uint32();break}case 6:{d.flags=n.fixed32();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.traceId!=null&&n.hasOwnProperty("traceId")&&!(n.traceId&&typeof n.traceId.length=="number"||$e.isString(n.traceId)))return"traceId: buffer expected";if(n.spanId!=null&&n.hasOwnProperty("spanId")&&!(n.spanId&&typeof n.spanId.length=="number"||$e.isString(n.spanId)))return"spanId: buffer expected";if(n.traceState!=null&&n.hasOwnProperty("traceState")&&!$e.isString(n.traceState))return"traceState: string expected";if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var c=0;c<n.attributes.length;++c){var u=ke.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[c]);if(u)return"attributes."+u}}return n.droppedAttributesCount!=null&&n.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(n.droppedAttributesCount)?"droppedAttributesCount: integer expected":n.flags!=null&&n.hasOwnProperty("flags")&&!$e.isInteger(n.flags)?"flags: integer expected":null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.trace.v1.Span.Link)return n;var c=new ke.opentelemetry.proto.trace.v1.Span.Link;if(n.traceId!=null&&(typeof n.traceId=="string"?$e.base64.decode(n.traceId,c.traceId=$e.newBuffer($e.base64.length(n.traceId)),0):n.traceId.length>=0&&(c.traceId=n.traceId)),n.spanId!=null&&(typeof n.spanId=="string"?$e.base64.decode(n.spanId,c.spanId=$e.newBuffer($e.base64.length(n.spanId)),0):n.spanId.length>=0&&(c.spanId=n.spanId)),n.traceState!=null&&(c.traceState=String(n.traceState)),n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");c.attributes[u]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}return n.droppedAttributesCount!=null&&(c.droppedAttributesCount=n.droppedAttributesCount>>>0),n.flags!=null&&(c.flags=n.flags>>>0),c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.attributes=[]),c.defaults&&(c.bytes===String?u.traceId="":(u.traceId=[],c.bytes!==Array&&(u.traceId=$e.newBuffer(u.traceId))),c.bytes===String?u.spanId="":(u.spanId=[],c.bytes!==Array&&(u.spanId=$e.newBuffer(u.spanId))),u.traceState="",u.droppedAttributesCount=0,u.flags=0),n.traceId!=null&&n.hasOwnProperty("traceId")&&(u.traceId=c.bytes===String?$e.base64.encode(n.traceId,0,n.traceId.length):c.bytes===Array?Array.prototype.slice.call(n.traceId):n.traceId),n.spanId!=null&&n.hasOwnProperty("spanId")&&(u.spanId=c.bytes===String?$e.base64.encode(n.spanId,0,n.spanId.length):c.bytes===Array?Array.prototype.slice.call(n.spanId):n.spanId),n.traceState!=null&&n.hasOwnProperty("traceState")&&(u.traceState=n.traceState),n.attributes&&n.attributes.length){u.attributes=[];for(var f=0;f<n.attributes.length;++f)u.attributes[f]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[f],c)}return n.droppedAttributesCount!=null&&n.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=n.droppedAttributesCount),n.flags!=null&&n.hasOwnProperty("flags")&&(u.flags=n.flags),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.trace.v1.Span.Link"},a})(),s})(),o.Status=(function(){function s(a){if(a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.message=null,s.prototype.code=null,s.create=function(i){return new s(i)},s.encode=function(i,n){return n||(n=sa.create()),i.message!=null&&Object.hasOwnProperty.call(i,"message")&&n.uint32(18).string(i.message),i.code!=null&&Object.hasOwnProperty.call(i,"code")&&n.uint32(24).int32(i.code),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.trace.v1.Status;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 2:{f.message=i.string();break}case 3:{f.code=i.int32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.message!=null&&i.hasOwnProperty("message")&&!$e.isString(i.message))return"message: string expected";if(i.code!=null&&i.hasOwnProperty("code"))switch(i.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.trace.v1.Status)return i;var n=new ke.opentelemetry.proto.trace.v1.Status;switch(i.message!=null&&(n.message=String(i.message)),i.code){default:if(typeof i.code=="number"){n.code=i.code;break}break;case"STATUS_CODE_UNSET":case 0:n.code=0;break;case"STATUS_CODE_OK":case 1:n.code=1;break;case"STATUS_CODE_ERROR":case 2:n.code=2;break}return n},s.toObject=function(i,n){n||(n={});var c={};return n.defaults&&(c.message="",c.code=n.enums===String?"STATUS_CODE_UNSET":0),i.message!=null&&i.hasOwnProperty("message")&&(c.message=i.message),i.code!=null&&i.hasOwnProperty("code")&&(c.code=n.enums===String?ke.opentelemetry.proto.trace.v1.Status.StatusCode[i.code]===void 0?i.code:ke.opentelemetry.proto.trace.v1.Status.StatusCode[i.code]:i.code),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.Status"},s.StatusCode=(function(){var a={},i=Object.create(a);return i[a[0]="STATUS_CODE_UNSET"]=0,i[a[1]="STATUS_CODE_OK"]=1,i[a[2]="STATUS_CODE_ERROR"]=2,i})(),s})(),o.SpanFlags=(function(){var s={},a=Object.create(s);return a[s[0]="SPAN_FLAGS_DO_NOT_USE"]=0,a[s[255]="SPAN_FLAGS_TRACE_FLAGS_MASK"]=255,a[s[256]="SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK"]=256,a[s[512]="SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK"]=512,a})(),o})(),r})(),e.collector=(function(){var r={};return r.trace=(function(){var o={};return o.v1=(function(){var s={};return s.TraceService=(function(){function a(i,n,c){Mo.rpc.Service.call(this,i,n,c)}return(a.prototype=Object.create(Mo.rpc.Service.prototype)).constructor=a,a.create=function(n,c,u){return new this(n,c,u)},Object.defineProperty(a.prototype.export=function i(n,c){return this.rpcCall(i,ke.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,ke.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,n,c)},"name",{value:"Export"}),a})(),s.ExportTraceServiceRequest=(function(){function a(i){if(this.resourceSpans=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.resourceSpans=$e.emptyArray,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=sa.create()),n.resourceSpans!=null&&n.resourceSpans.length)for(var u=0;u<n.resourceSpans.length;++u)ke.opentelemetry.proto.trace.v1.ResourceSpans.encode(n.resourceSpans[u],c.uint32(10).fork()).ldelim();return c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.resourceSpans&&d.resourceSpans.length||(d.resourceSpans=[]),d.resourceSpans.push(ke.opentelemetry.proto.trace.v1.ResourceSpans.decode(n,n.uint32()));break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.resourceSpans!=null&&n.hasOwnProperty("resourceSpans")){if(!Array.isArray(n.resourceSpans))return"resourceSpans: array expected";for(var c=0;c<n.resourceSpans.length;++c){var u=ke.opentelemetry.proto.trace.v1.ResourceSpans.verify(n.resourceSpans[c]);if(u)return"resourceSpans."+u}}return null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return n;var c=new ke.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(n.resourceSpans){if(!Array.isArray(n.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");c.resourceSpans=[];for(var u=0;u<n.resourceSpans.length;++u){if(typeof n.resourceSpans[u]!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");c.resourceSpans[u]=ke.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(n.resourceSpans[u])}}return c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.resourceSpans=[]),n.resourceSpans&&n.resourceSpans.length){u.resourceSpans=[];for(var f=0;f<n.resourceSpans.length;++f)u.resourceSpans[f]=ke.opentelemetry.proto.trace.v1.ResourceSpans.toObject(n.resourceSpans[f],c)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},a})(),s.ExportTraceServiceResponse=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.partialSuccess=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=sa.create()),n.partialSuccess!=null&&Object.hasOwnProperty.call(n,"partialSuccess")&&ke.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(n.partialSuccess,c.uint32(10).fork()).ldelim(),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.partialSuccess=ke.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(n,n.uint32());break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")){var c=ke.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(n.partialSuccess);if(c)return"partialSuccess."+c}return null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return n;var c=new ke.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(n.partialSuccess!=null){if(typeof n.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");c.partialSuccess=ke.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(n.partialSuccess)}return c},a.toObject=function(n,c){c||(c={});var u={};return c.defaults&&(u.partialSuccess=null),n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")&&(u.partialSuccess=ke.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(n.partialSuccess,c)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},a})(),s.ExportTracePartialSuccess=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.rejectedSpans=null,a.prototype.errorMessage=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=sa.create()),n.rejectedSpans!=null&&Object.hasOwnProperty.call(n,"rejectedSpans")&&c.uint32(8).int64(n.rejectedSpans),n.errorMessage!=null&&Object.hasOwnProperty.call(n,"errorMessage")&&c.uint32(18).string(n.errorMessage),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.rejectedSpans=n.int64();break}case 2:{d.errorMessage=n.string();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){return typeof n!="object"||n===null?"object expected":n.rejectedSpans!=null&&n.hasOwnProperty("rejectedSpans")&&!$e.isInteger(n.rejectedSpans)&&!(n.rejectedSpans&&$e.isInteger(n.rejectedSpans.low)&&$e.isInteger(n.rejectedSpans.high))?"rejectedSpans: integer|Long expected":n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&!$e.isString(n.errorMessage)?"errorMessage: string expected":null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return n;var c=new ke.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return n.rejectedSpans!=null&&($e.Long?(c.rejectedSpans=$e.Long.fromValue(n.rejectedSpans)).unsigned=!1:typeof n.rejectedSpans=="string"?c.rejectedSpans=parseInt(n.rejectedSpans,10):typeof n.rejectedSpans=="number"?c.rejectedSpans=n.rejectedSpans:typeof n.rejectedSpans=="object"&&(c.rejectedSpans=new $e.LongBits(n.rejectedSpans.low>>>0,n.rejectedSpans.high>>>0).toNumber())),n.errorMessage!=null&&(c.errorMessage=String(n.errorMessage)),c},a.toObject=function(n,c){c||(c={});var u={};if(c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.rejectedSpans=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.rejectedSpans=c.longs===String?"0":0;u.errorMessage=""}return n.rejectedSpans!=null&&n.hasOwnProperty("rejectedSpans")&&(typeof n.rejectedSpans=="number"?u.rejectedSpans=c.longs===String?String(n.rejectedSpans):n.rejectedSpans:u.rejectedSpans=c.longs===String?$e.Long.prototype.toString.call(n.rejectedSpans):c.longs===Number?new $e.LongBits(n.rejectedSpans.low>>>0,n.rejectedSpans.high>>>0).toNumber():n.rejectedSpans),n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&(u.errorMessage=n.errorMessage),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},a})(),s})(),o})(),r.metrics=(function(){var o={};return o.v1=(function(){var s={};return s.MetricsService=(function(){function a(i,n,c){Mo.rpc.Service.call(this,i,n,c)}return(a.prototype=Object.create(Mo.rpc.Service.prototype)).constructor=a,a.create=function(n,c,u){return new this(n,c,u)},Object.defineProperty(a.prototype.export=function i(n,c){return this.rpcCall(i,ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,n,c)},"name",{value:"Export"}),a})(),s.ExportMetricsServiceRequest=(function(){function a(i){if(this.resourceMetrics=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.resourceMetrics=$e.emptyArray,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=sa.create()),n.resourceMetrics!=null&&n.resourceMetrics.length)for(var u=0;u<n.resourceMetrics.length;++u)ke.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(n.resourceMetrics[u],c.uint32(10).fork()).ldelim();return c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.resourceMetrics&&d.resourceMetrics.length||(d.resourceMetrics=[]),d.resourceMetrics.push(ke.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(n,n.uint32()));break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.resourceMetrics!=null&&n.hasOwnProperty("resourceMetrics")){if(!Array.isArray(n.resourceMetrics))return"resourceMetrics: array expected";for(var c=0;c<n.resourceMetrics.length;++c){var u=ke.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(n.resourceMetrics[c]);if(u)return"resourceMetrics."+u}}return null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return n;var c=new ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(n.resourceMetrics){if(!Array.isArray(n.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");c.resourceMetrics=[];for(var u=0;u<n.resourceMetrics.length;++u){if(typeof n.resourceMetrics[u]!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");c.resourceMetrics[u]=ke.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(n.resourceMetrics[u])}}return c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.resourceMetrics=[]),n.resourceMetrics&&n.resourceMetrics.length){u.resourceMetrics=[];for(var f=0;f<n.resourceMetrics.length;++f)u.resourceMetrics[f]=ke.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(n.resourceMetrics[f],c)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},a})(),s.ExportMetricsServiceResponse=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.partialSuccess=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=sa.create()),n.partialSuccess!=null&&Object.hasOwnProperty.call(n,"partialSuccess")&&ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(n.partialSuccess,c.uint32(10).fork()).ldelim(),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.partialSuccess=ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(n,n.uint32());break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")){var c=ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(n.partialSuccess);if(c)return"partialSuccess."+c}return null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return n;var c=new ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(n.partialSuccess!=null){if(typeof n.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");c.partialSuccess=ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(n.partialSuccess)}return c},a.toObject=function(n,c){c||(c={});var u={};return c.defaults&&(u.partialSuccess=null),n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")&&(u.partialSuccess=ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(n.partialSuccess,c)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},a})(),s.ExportMetricsPartialSuccess=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.rejectedDataPoints=null,a.prototype.errorMessage=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=sa.create()),n.rejectedDataPoints!=null&&Object.hasOwnProperty.call(n,"rejectedDataPoints")&&c.uint32(8).int64(n.rejectedDataPoints),n.errorMessage!=null&&Object.hasOwnProperty.call(n,"errorMessage")&&c.uint32(18).string(n.errorMessage),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.rejectedDataPoints=n.int64();break}case 2:{d.errorMessage=n.string();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){return typeof n!="object"||n===null?"object expected":n.rejectedDataPoints!=null&&n.hasOwnProperty("rejectedDataPoints")&&!$e.isInteger(n.rejectedDataPoints)&&!(n.rejectedDataPoints&&$e.isInteger(n.rejectedDataPoints.low)&&$e.isInteger(n.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&!$e.isString(n.errorMessage)?"errorMessage: string expected":null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return n;var c=new ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return n.rejectedDataPoints!=null&&($e.Long?(c.rejectedDataPoints=$e.Long.fromValue(n.rejectedDataPoints)).unsigned=!1:typeof n.rejectedDataPoints=="string"?c.rejectedDataPoints=parseInt(n.rejectedDataPoints,10):typeof n.rejectedDataPoints=="number"?c.rejectedDataPoints=n.rejectedDataPoints:typeof n.rejectedDataPoints=="object"&&(c.rejectedDataPoints=new $e.LongBits(n.rejectedDataPoints.low>>>0,n.rejectedDataPoints.high>>>0).toNumber())),n.errorMessage!=null&&(c.errorMessage=String(n.errorMessage)),c},a.toObject=function(n,c){c||(c={});var u={};if(c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.rejectedDataPoints=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.rejectedDataPoints=c.longs===String?"0":0;u.errorMessage=""}return n.rejectedDataPoints!=null&&n.hasOwnProperty("rejectedDataPoints")&&(typeof n.rejectedDataPoints=="number"?u.rejectedDataPoints=c.longs===String?String(n.rejectedDataPoints):n.rejectedDataPoints:u.rejectedDataPoints=c.longs===String?$e.Long.prototype.toString.call(n.rejectedDataPoints):c.longs===Number?new $e.LongBits(n.rejectedDataPoints.low>>>0,n.rejectedDataPoints.high>>>0).toNumber():n.rejectedDataPoints),n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&(u.errorMessage=n.errorMessage),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},a})(),s})(),o})(),r.logs=(function(){var o={};return o.v1=(function(){var s={};return s.LogsService=(function(){function a(i,n,c){Mo.rpc.Service.call(this,i,n,c)}return(a.prototype=Object.create(Mo.rpc.Service.prototype)).constructor=a,a.create=function(n,c,u){return new this(n,c,u)},Object.defineProperty(a.prototype.export=function i(n,c){return this.rpcCall(i,ke.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,ke.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,n,c)},"name",{value:"Export"}),a})(),s.ExportLogsServiceRequest=(function(){function a(i){if(this.resourceLogs=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.resourceLogs=$e.emptyArray,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=sa.create()),n.resourceLogs!=null&&n.resourceLogs.length)for(var u=0;u<n.resourceLogs.length;++u)ke.opentelemetry.proto.logs.v1.ResourceLogs.encode(n.resourceLogs[u],c.uint32(10).fork()).ldelim();return c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.resourceLogs&&d.resourceLogs.length||(d.resourceLogs=[]),d.resourceLogs.push(ke.opentelemetry.proto.logs.v1.ResourceLogs.decode(n,n.uint32()));break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.resourceLogs!=null&&n.hasOwnProperty("resourceLogs")){if(!Array.isArray(n.resourceLogs))return"resourceLogs: array expected";for(var c=0;c<n.resourceLogs.length;++c){var u=ke.opentelemetry.proto.logs.v1.ResourceLogs.verify(n.resourceLogs[c]);if(u)return"resourceLogs."+u}}return null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return n;var c=new ke.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(n.resourceLogs){if(!Array.isArray(n.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");c.resourceLogs=[];for(var u=0;u<n.resourceLogs.length;++u){if(typeof n.resourceLogs[u]!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");c.resourceLogs[u]=ke.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(n.resourceLogs[u])}}return c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.resourceLogs=[]),n.resourceLogs&&n.resourceLogs.length){u.resourceLogs=[];for(var f=0;f<n.resourceLogs.length;++f)u.resourceLogs[f]=ke.opentelemetry.proto.logs.v1.ResourceLogs.toObject(n.resourceLogs[f],c)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},a})(),s.ExportLogsServiceResponse=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.partialSuccess=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=sa.create()),n.partialSuccess!=null&&Object.hasOwnProperty.call(n,"partialSuccess")&&ke.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(n.partialSuccess,c.uint32(10).fork()).ldelim(),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.partialSuccess=ke.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(n,n.uint32());break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")){var c=ke.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(n.partialSuccess);if(c)return"partialSuccess."+c}return null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return n;var c=new ke.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(n.partialSuccess!=null){if(typeof n.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");c.partialSuccess=ke.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(n.partialSuccess)}return c},a.toObject=function(n,c){c||(c={});var u={};return c.defaults&&(u.partialSuccess=null),n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")&&(u.partialSuccess=ke.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(n.partialSuccess,c)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},a})(),s.ExportLogsPartialSuccess=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.rejectedLogRecords=null,a.prototype.errorMessage=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=sa.create()),n.rejectedLogRecords!=null&&Object.hasOwnProperty.call(n,"rejectedLogRecords")&&c.uint32(8).int64(n.rejectedLogRecords),n.errorMessage!=null&&Object.hasOwnProperty.call(n,"errorMessage")&&c.uint32(18).string(n.errorMessage),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.rejectedLogRecords=n.int64();break}case 2:{d.errorMessage=n.string();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){return typeof n!="object"||n===null?"object expected":n.rejectedLogRecords!=null&&n.hasOwnProperty("rejectedLogRecords")&&!$e.isInteger(n.rejectedLogRecords)&&!(n.rejectedLogRecords&&$e.isInteger(n.rejectedLogRecords.low)&&$e.isInteger(n.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&!$e.isString(n.errorMessage)?"errorMessage: string expected":null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return n;var c=new ke.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return n.rejectedLogRecords!=null&&($e.Long?(c.rejectedLogRecords=$e.Long.fromValue(n.rejectedLogRecords)).unsigned=!1:typeof n.rejectedLogRecords=="string"?c.rejectedLogRecords=parseInt(n.rejectedLogRecords,10):typeof n.rejectedLogRecords=="number"?c.rejectedLogRecords=n.rejectedLogRecords:typeof n.rejectedLogRecords=="object"&&(c.rejectedLogRecords=new $e.LongBits(n.rejectedLogRecords.low>>>0,n.rejectedLogRecords.high>>>0).toNumber())),n.errorMessage!=null&&(c.errorMessage=String(n.errorMessage)),c},a.toObject=function(n,c){c||(c={});var u={};if(c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.rejectedLogRecords=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.rejectedLogRecords=c.longs===String?"0":0;u.errorMessage=""}return n.rejectedLogRecords!=null&&n.hasOwnProperty("rejectedLogRecords")&&(typeof n.rejectedLogRecords=="number"?u.rejectedLogRecords=c.longs===String?String(n.rejectedLogRecords):n.rejectedLogRecords:u.rejectedLogRecords=c.longs===String?$e.Long.prototype.toString.call(n.rejectedLogRecords):c.longs===Number?new $e.LongBits(n.rejectedLogRecords.low>>>0,n.rejectedLogRecords.high>>>0).toNumber():n.rejectedLogRecords),n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&(u.errorMessage=n.errorMessage),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},a})(),s})(),o})(),r})(),e.metrics=(function(){var r={};return r.v1=(function(){var o={};return o.MetricsData=(function(){function s(a){if(this.resourceMetrics=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resourceMetrics=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.resourceMetrics!=null&&i.resourceMetrics.length)for(var c=0;c<i.resourceMetrics.length;++c)ke.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(i.resourceMetrics[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.metrics.v1.MetricsData;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resourceMetrics&&f.resourceMetrics.length||(f.resourceMetrics=[]),f.resourceMetrics.push(ke.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resourceMetrics!=null&&i.hasOwnProperty("resourceMetrics")){if(!Array.isArray(i.resourceMetrics))return"resourceMetrics: array expected";for(var n=0;n<i.resourceMetrics.length;++n){var c=ke.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(i.resourceMetrics[n]);if(c)return"resourceMetrics."+c}}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.metrics.v1.MetricsData)return i;var n=new ke.opentelemetry.proto.metrics.v1.MetricsData;if(i.resourceMetrics){if(!Array.isArray(i.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");n.resourceMetrics=[];for(var c=0;c<i.resourceMetrics.length;++c){if(typeof i.resourceMetrics[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");n.resourceMetrics[c]=ke.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(i.resourceMetrics[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.resourceMetrics=[]),i.resourceMetrics&&i.resourceMetrics.length){c.resourceMetrics=[];for(var u=0;u<i.resourceMetrics.length;++u)c.resourceMetrics[u]=ke.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(i.resourceMetrics[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.MetricsData"},s})(),o.ResourceMetrics=(function(){function s(a){if(this.scopeMetrics=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resource=null,s.prototype.scopeMetrics=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.resource!=null&&Object.hasOwnProperty.call(i,"resource")&&ke.opentelemetry.proto.resource.v1.Resource.encode(i.resource,n.uint32(10).fork()).ldelim(),i.scopeMetrics!=null&&i.scopeMetrics.length)for(var c=0;c<i.scopeMetrics.length;++c)ke.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(i.scopeMetrics[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.metrics.v1.ResourceMetrics;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resource=ke.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{f.scopeMetrics&&f.scopeMetrics.length||(f.scopeMetrics=[]),f.scopeMetrics.push(ke.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resource!=null&&i.hasOwnProperty("resource")){var n=ke.opentelemetry.proto.resource.v1.Resource.verify(i.resource);if(n)return"resource."+n}if(i.scopeMetrics!=null&&i.hasOwnProperty("scopeMetrics")){if(!Array.isArray(i.scopeMetrics))return"scopeMetrics: array expected";for(var c=0;c<i.scopeMetrics.length;++c){var n=ke.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(i.scopeMetrics[c]);if(n)return"scopeMetrics."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.metrics.v1.ResourceMetrics)return i;var n=new ke.opentelemetry.proto.metrics.v1.ResourceMetrics;if(i.resource!=null){if(typeof i.resource!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");n.resource=ke.opentelemetry.proto.resource.v1.Resource.fromObject(i.resource)}if(i.scopeMetrics){if(!Array.isArray(i.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");n.scopeMetrics=[];for(var c=0;c<i.scopeMetrics.length;++c){if(typeof i.scopeMetrics[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");n.scopeMetrics[c]=ke.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(i.scopeMetrics[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.scopeMetrics=[]),n.defaults&&(c.resource=null,c.schemaUrl=""),i.resource!=null&&i.hasOwnProperty("resource")&&(c.resource=ke.opentelemetry.proto.resource.v1.Resource.toObject(i.resource,n)),i.scopeMetrics&&i.scopeMetrics.length){c.scopeMetrics=[];for(var u=0;u<i.scopeMetrics.length;++u)c.scopeMetrics[u]=ke.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(i.scopeMetrics[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},s})(),o.ScopeMetrics=(function(){function s(a){if(this.metrics=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.scope=null,s.prototype.metrics=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.scope!=null&&Object.hasOwnProperty.call(i,"scope")&&ke.opentelemetry.proto.common.v1.InstrumentationScope.encode(i.scope,n.uint32(10).fork()).ldelim(),i.metrics!=null&&i.metrics.length)for(var c=0;c<i.metrics.length;++c)ke.opentelemetry.proto.metrics.v1.Metric.encode(i.metrics[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.metrics.v1.ScopeMetrics;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.scope=ke.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{f.metrics&&f.metrics.length||(f.metrics=[]),f.metrics.push(ke.opentelemetry.proto.metrics.v1.Metric.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.scope!=null&&i.hasOwnProperty("scope")){var n=ke.opentelemetry.proto.common.v1.InstrumentationScope.verify(i.scope);if(n)return"scope."+n}if(i.metrics!=null&&i.hasOwnProperty("metrics")){if(!Array.isArray(i.metrics))return"metrics: array expected";for(var c=0;c<i.metrics.length;++c){var n=ke.opentelemetry.proto.metrics.v1.Metric.verify(i.metrics[c]);if(n)return"metrics."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.metrics.v1.ScopeMetrics)return i;var n=new ke.opentelemetry.proto.metrics.v1.ScopeMetrics;if(i.scope!=null){if(typeof i.scope!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");n.scope=ke.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(i.scope)}if(i.metrics){if(!Array.isArray(i.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");n.metrics=[];for(var c=0;c<i.metrics.length;++c){if(typeof i.metrics[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");n.metrics[c]=ke.opentelemetry.proto.metrics.v1.Metric.fromObject(i.metrics[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.metrics=[]),n.defaults&&(c.scope=null,c.schemaUrl=""),i.scope!=null&&i.hasOwnProperty("scope")&&(c.scope=ke.opentelemetry.proto.common.v1.InstrumentationScope.toObject(i.scope,n)),i.metrics&&i.metrics.length){c.metrics=[];for(var u=0;u<i.metrics.length;++u)c.metrics[u]=ke.opentelemetry.proto.metrics.v1.Metric.toObject(i.metrics[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},s})(),o.Metric=(function(){function s(i){if(this.metadata=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.name=null,s.prototype.description=null,s.prototype.unit=null,s.prototype.gauge=null,s.prototype.sum=null,s.prototype.histogram=null,s.prototype.exponentialHistogram=null,s.prototype.summary=null,s.prototype.metadata=$e.emptyArray;var a;return Object.defineProperty(s.prototype,"data",{get:$e.oneOfGetter(a=["gauge","sum","histogram","exponentialHistogram","summary"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=sa.create()),n.name!=null&&Object.hasOwnProperty.call(n,"name")&&c.uint32(10).string(n.name),n.description!=null&&Object.hasOwnProperty.call(n,"description")&&c.uint32(18).string(n.description),n.unit!=null&&Object.hasOwnProperty.call(n,"unit")&&c.uint32(26).string(n.unit),n.gauge!=null&&Object.hasOwnProperty.call(n,"gauge")&&ke.opentelemetry.proto.metrics.v1.Gauge.encode(n.gauge,c.uint32(42).fork()).ldelim(),n.sum!=null&&Object.hasOwnProperty.call(n,"sum")&&ke.opentelemetry.proto.metrics.v1.Sum.encode(n.sum,c.uint32(58).fork()).ldelim(),n.histogram!=null&&Object.hasOwnProperty.call(n,"histogram")&&ke.opentelemetry.proto.metrics.v1.Histogram.encode(n.histogram,c.uint32(74).fork()).ldelim(),n.exponentialHistogram!=null&&Object.hasOwnProperty.call(n,"exponentialHistogram")&&ke.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(n.exponentialHistogram,c.uint32(82).fork()).ldelim(),n.summary!=null&&Object.hasOwnProperty.call(n,"summary")&&ke.opentelemetry.proto.metrics.v1.Summary.encode(n.summary,c.uint32(90).fork()).ldelim(),n.metadata!=null&&n.metadata.length)for(var u=0;u<n.metadata.length;++u)ke.opentelemetry.proto.common.v1.KeyValue.encode(n.metadata[u],c.uint32(98).fork()).ldelim();return c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.metrics.v1.Metric;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.name=n.string();break}case 2:{d.description=n.string();break}case 3:{d.unit=n.string();break}case 5:{d.gauge=ke.opentelemetry.proto.metrics.v1.Gauge.decode(n,n.uint32());break}case 7:{d.sum=ke.opentelemetry.proto.metrics.v1.Sum.decode(n,n.uint32());break}case 9:{d.histogram=ke.opentelemetry.proto.metrics.v1.Histogram.decode(n,n.uint32());break}case 10:{d.exponentialHistogram=ke.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(n,n.uint32());break}case 11:{d.summary=ke.opentelemetry.proto.metrics.v1.Summary.decode(n,n.uint32());break}case 12:{d.metadata&&d.metadata.length||(d.metadata=[]),d.metadata.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.name!=null&&n.hasOwnProperty("name")&&!$e.isString(n.name))return"name: string expected";if(n.description!=null&&n.hasOwnProperty("description")&&!$e.isString(n.description))return"description: string expected";if(n.unit!=null&&n.hasOwnProperty("unit")&&!$e.isString(n.unit))return"unit: string expected";if(n.gauge!=null&&n.hasOwnProperty("gauge")){c.data=1;{var u=ke.opentelemetry.proto.metrics.v1.Gauge.verify(n.gauge);if(u)return"gauge."+u}}if(n.sum!=null&&n.hasOwnProperty("sum")){if(c.data===1)return"data: multiple values";c.data=1;{var u=ke.opentelemetry.proto.metrics.v1.Sum.verify(n.sum);if(u)return"sum."+u}}if(n.histogram!=null&&n.hasOwnProperty("histogram")){if(c.data===1)return"data: multiple values";c.data=1;{var u=ke.opentelemetry.proto.metrics.v1.Histogram.verify(n.histogram);if(u)return"histogram."+u}}if(n.exponentialHistogram!=null&&n.hasOwnProperty("exponentialHistogram")){if(c.data===1)return"data: multiple values";c.data=1;{var u=ke.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(n.exponentialHistogram);if(u)return"exponentialHistogram."+u}}if(n.summary!=null&&n.hasOwnProperty("summary")){if(c.data===1)return"data: multiple values";c.data=1;{var u=ke.opentelemetry.proto.metrics.v1.Summary.verify(n.summary);if(u)return"summary."+u}}if(n.metadata!=null&&n.hasOwnProperty("metadata")){if(!Array.isArray(n.metadata))return"metadata: array expected";for(var f=0;f<n.metadata.length;++f){var u=ke.opentelemetry.proto.common.v1.KeyValue.verify(n.metadata[f]);if(u)return"metadata."+u}}return null},s.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.metrics.v1.Metric)return n;var c=new ke.opentelemetry.proto.metrics.v1.Metric;if(n.name!=null&&(c.name=String(n.name)),n.description!=null&&(c.description=String(n.description)),n.unit!=null&&(c.unit=String(n.unit)),n.gauge!=null){if(typeof n.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");c.gauge=ke.opentelemetry.proto.metrics.v1.Gauge.fromObject(n.gauge)}if(n.sum!=null){if(typeof n.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");c.sum=ke.opentelemetry.proto.metrics.v1.Sum.fromObject(n.sum)}if(n.histogram!=null){if(typeof n.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");c.histogram=ke.opentelemetry.proto.metrics.v1.Histogram.fromObject(n.histogram)}if(n.exponentialHistogram!=null){if(typeof n.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");c.exponentialHistogram=ke.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(n.exponentialHistogram)}if(n.summary!=null){if(typeof n.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");c.summary=ke.opentelemetry.proto.metrics.v1.Summary.fromObject(n.summary)}if(n.metadata){if(!Array.isArray(n.metadata))throw TypeError(".opentelemetry.proto.metrics.v1.Metric.metadata: array expected");c.metadata=[];for(var u=0;u<n.metadata.length;++u){if(typeof n.metadata[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.metadata: object expected");c.metadata[u]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(n.metadata[u])}}return c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.metadata=[]),c.defaults&&(u.name="",u.description="",u.unit=""),n.name!=null&&n.hasOwnProperty("name")&&(u.name=n.name),n.description!=null&&n.hasOwnProperty("description")&&(u.description=n.description),n.unit!=null&&n.hasOwnProperty("unit")&&(u.unit=n.unit),n.gauge!=null&&n.hasOwnProperty("gauge")&&(u.gauge=ke.opentelemetry.proto.metrics.v1.Gauge.toObject(n.gauge,c),c.oneofs&&(u.data="gauge")),n.sum!=null&&n.hasOwnProperty("sum")&&(u.sum=ke.opentelemetry.proto.metrics.v1.Sum.toObject(n.sum,c),c.oneofs&&(u.data="sum")),n.histogram!=null&&n.hasOwnProperty("histogram")&&(u.histogram=ke.opentelemetry.proto.metrics.v1.Histogram.toObject(n.histogram,c),c.oneofs&&(u.data="histogram")),n.exponentialHistogram!=null&&n.hasOwnProperty("exponentialHistogram")&&(u.exponentialHistogram=ke.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(n.exponentialHistogram,c),c.oneofs&&(u.data="exponentialHistogram")),n.summary!=null&&n.hasOwnProperty("summary")&&(u.summary=ke.opentelemetry.proto.metrics.v1.Summary.toObject(n.summary,c),c.oneofs&&(u.data="summary")),n.metadata&&n.metadata.length){u.metadata=[];for(var f=0;f<n.metadata.length;++f)u.metadata[f]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(n.metadata[f],c)}return u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.Metric"},s})(),o.Gauge=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)ke.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.metrics.v1.Gauge;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(ke.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=ke.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.metrics.v1.Gauge)return i;var n=new ke.opentelemetry.proto.metrics.v1.Gauge;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");n.dataPoints[c]=ke.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(i.dataPoints[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=ke.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(i.dataPoints[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Gauge"},s})(),o.Sum=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.prototype.aggregationTemporality=null,s.prototype.isMonotonic=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)ke.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return i.aggregationTemporality!=null&&Object.hasOwnProperty.call(i,"aggregationTemporality")&&n.uint32(16).int32(i.aggregationTemporality),i.isMonotonic!=null&&Object.hasOwnProperty.call(i,"isMonotonic")&&n.uint32(24).bool(i.isMonotonic),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.metrics.v1.Sum;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(ke.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(i,i.uint32()));break}case 2:{f.aggregationTemporality=i.int32();break}case 3:{f.isMonotonic=i.bool();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=ke.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}if(i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality"))switch(i.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return i.isMonotonic!=null&&i.hasOwnProperty("isMonotonic")&&typeof i.isMonotonic!="boolean"?"isMonotonic: boolean expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.metrics.v1.Sum)return i;var n=new ke.opentelemetry.proto.metrics.v1.Sum;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");n.dataPoints[c]=ke.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(i.dataPoints[c])}}switch(i.aggregationTemporality){default:if(typeof i.aggregationTemporality=="number"){n.aggregationTemporality=i.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:n.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:n.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:n.aggregationTemporality=2;break}return i.isMonotonic!=null&&(n.isMonotonic=!!i.isMonotonic),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),n.defaults&&(c.aggregationTemporality=n.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,c.isMonotonic=!1),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=ke.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(i.dataPoints[u],n)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=n.enums===String?ke.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:ke.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]:i.aggregationTemporality),i.isMonotonic!=null&&i.hasOwnProperty("isMonotonic")&&(c.isMonotonic=i.isMonotonic),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Sum"},s})(),o.Histogram=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.prototype.aggregationTemporality=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)ke.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return i.aggregationTemporality!=null&&Object.hasOwnProperty.call(i,"aggregationTemporality")&&n.uint32(16).int32(i.aggregationTemporality),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.metrics.v1.Histogram;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(ke.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(i,i.uint32()));break}case 2:{f.aggregationTemporality=i.int32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=ke.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}if(i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality"))switch(i.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.metrics.v1.Histogram)return i;var n=new ke.opentelemetry.proto.metrics.v1.Histogram;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");n.dataPoints[c]=ke.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(i.dataPoints[c])}}switch(i.aggregationTemporality){default:if(typeof i.aggregationTemporality=="number"){n.aggregationTemporality=i.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:n.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:n.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:n.aggregationTemporality=2;break}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),n.defaults&&(c.aggregationTemporality=n.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=ke.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(i.dataPoints[u],n)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=n.enums===String?ke.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:ke.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]:i.aggregationTemporality),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Histogram"},s})(),o.ExponentialHistogram=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.prototype.aggregationTemporality=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return i.aggregationTemporality!=null&&Object.hasOwnProperty.call(i,"aggregationTemporality")&&n.uint32(16).int32(i.aggregationTemporality),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.metrics.v1.ExponentialHistogram;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(i,i.uint32()));break}case 2:{f.aggregationTemporality=i.int32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}if(i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality"))switch(i.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.metrics.v1.ExponentialHistogram)return i;var n=new ke.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");n.dataPoints[c]=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(i.dataPoints[c])}}switch(i.aggregationTemporality){default:if(typeof i.aggregationTemporality=="number"){n.aggregationTemporality=i.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:n.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:n.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:n.aggregationTemporality=2;break}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),n.defaults&&(c.aggregationTemporality=n.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(i.dataPoints[u],n)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=n.enums===String?ke.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:ke.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]:i.aggregationTemporality),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},s})(),o.Summary=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.metrics.v1.Summary;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.metrics.v1.Summary)return i;var n=new ke.opentelemetry.proto.metrics.v1.Summary;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");n.dataPoints[c]=ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(i.dataPoints[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(i.dataPoints[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Summary"},s})(),o.AggregationTemporality=(function(){var s={},a=Object.create(s);return a[s[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,a[s[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,a[s[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,a})(),o.DataPointFlags=(function(){var s={},a=Object.create(s);return a[s[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,a[s[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,a})(),o.NumberDataPoint=(function(){function s(i){if(this.attributes=[],this.exemplars=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.attributes=$e.emptyArray,s.prototype.startTimeUnixNano=null,s.prototype.timeUnixNano=null,s.prototype.asDouble=null,s.prototype.asInt=null,s.prototype.exemplars=$e.emptyArray,s.prototype.flags=null;var a;return Object.defineProperty(s.prototype,"value",{get:$e.oneOfGetter(a=["asDouble","asInt"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=sa.create()),n.startTimeUnixNano!=null&&Object.hasOwnProperty.call(n,"startTimeUnixNano")&&c.uint32(17).fixed64(n.startTimeUnixNano),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(25).fixed64(n.timeUnixNano),n.asDouble!=null&&Object.hasOwnProperty.call(n,"asDouble")&&c.uint32(33).double(n.asDouble),n.exemplars!=null&&n.exemplars.length)for(var u=0;u<n.exemplars.length;++u)ke.opentelemetry.proto.metrics.v1.Exemplar.encode(n.exemplars[u],c.uint32(42).fork()).ldelim();if(n.asInt!=null&&Object.hasOwnProperty.call(n,"asInt")&&c.uint32(49).sfixed64(n.asInt),n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)ke.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(58).fork()).ldelim();return n.flags!=null&&Object.hasOwnProperty.call(n,"flags")&&c.uint32(64).uint32(n.flags),c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.metrics.v1.NumberDataPoint;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 7:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 2:{d.startTimeUnixNano=n.fixed64();break}case 3:{d.timeUnixNano=n.fixed64();break}case 4:{d.asDouble=n.double();break}case 6:{d.asInt=n.sfixed64();break}case 5:{d.exemplars&&d.exemplars.length||(d.exemplars=[]),d.exemplars.push(ke.opentelemetry.proto.metrics.v1.Exemplar.decode(n,n.uint32()));break}case 8:{d.flags=n.uint32();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var u=0;u<n.attributes.length;++u){var f=ke.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[u]);if(f)return"attributes."+f}}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(n.startTimeUnixNano)&&!(n.startTimeUnixNano&&$e.isInteger(n.startTimeUnixNano.low)&&$e.isInteger(n.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.asDouble!=null&&n.hasOwnProperty("asDouble")&&(c.value=1,typeof n.asDouble!="number"))return"asDouble: number expected";if(n.asInt!=null&&n.hasOwnProperty("asInt")){if(c.value===1)return"value: multiple values";if(c.value=1,!$e.isInteger(n.asInt)&&!(n.asInt&&$e.isInteger(n.asInt.low)&&$e.isInteger(n.asInt.high)))return"asInt: integer|Long expected"}if(n.exemplars!=null&&n.hasOwnProperty("exemplars")){if(!Array.isArray(n.exemplars))return"exemplars: array expected";for(var u=0;u<n.exemplars.length;++u){var f=ke.opentelemetry.proto.metrics.v1.Exemplar.verify(n.exemplars[u]);if(f)return"exemplars."+f}}return n.flags!=null&&n.hasOwnProperty("flags")&&!$e.isInteger(n.flags)?"flags: integer expected":null},s.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.metrics.v1.NumberDataPoint)return n;var c=new ke.opentelemetry.proto.metrics.v1.NumberDataPoint;if(n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");c.attributes[u]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}if(n.startTimeUnixNano!=null&&($e.Long?(c.startTimeUnixNano=$e.Long.fromValue(n.startTimeUnixNano)).unsigned=!1:typeof n.startTimeUnixNano=="string"?c.startTimeUnixNano=parseInt(n.startTimeUnixNano,10):typeof n.startTimeUnixNano=="number"?c.startTimeUnixNano=n.startTimeUnixNano:typeof n.startTimeUnixNano=="object"&&(c.startTimeUnixNano=new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber())),n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.asDouble!=null&&(c.asDouble=Number(n.asDouble)),n.asInt!=null&&($e.Long?(c.asInt=$e.Long.fromValue(n.asInt)).unsigned=!1:typeof n.asInt=="string"?c.asInt=parseInt(n.asInt,10):typeof n.asInt=="number"?c.asInt=n.asInt:typeof n.asInt=="object"&&(c.asInt=new $e.LongBits(n.asInt.low>>>0,n.asInt.high>>>0).toNumber())),n.exemplars){if(!Array.isArray(n.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");c.exemplars=[];for(var u=0;u<n.exemplars.length;++u){if(typeof n.exemplars[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");c.exemplars[u]=ke.opentelemetry.proto.metrics.v1.Exemplar.fromObject(n.exemplars[u])}}return n.flags!=null&&(c.flags=n.flags>>>0),c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.exemplars=[],u.attributes=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.startTimeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.startTimeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;u.flags=0}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&(typeof n.startTimeUnixNano=="number"?u.startTimeUnixNano=c.longs===String?String(n.startTimeUnixNano):n.startTimeUnixNano:u.startTimeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.startTimeUnixNano):c.longs===Number?new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber():n.startTimeUnixNano),n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.asDouble!=null&&n.hasOwnProperty("asDouble")&&(u.asDouble=c.json&&!isFinite(n.asDouble)?String(n.asDouble):n.asDouble,c.oneofs&&(u.value="asDouble")),n.exemplars&&n.exemplars.length){u.exemplars=[];for(var d=0;d<n.exemplars.length;++d)u.exemplars[d]=ke.opentelemetry.proto.metrics.v1.Exemplar.toObject(n.exemplars[d],c)}if(n.asInt!=null&&n.hasOwnProperty("asInt")&&(typeof n.asInt=="number"?u.asInt=c.longs===String?String(n.asInt):n.asInt:u.asInt=c.longs===String?$e.Long.prototype.toString.call(n.asInt):c.longs===Number?new $e.LongBits(n.asInt.low>>>0,n.asInt.high>>>0).toNumber():n.asInt,c.oneofs&&(u.value="asInt")),n.attributes&&n.attributes.length){u.attributes=[];for(var d=0;d<n.attributes.length;++d)u.attributes[d]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[d],c)}return n.flags!=null&&n.hasOwnProperty("flags")&&(u.flags=n.flags),u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},s})(),o.HistogramDataPoint=(function(){function s(i){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.attributes=$e.emptyArray,s.prototype.startTimeUnixNano=null,s.prototype.timeUnixNano=null,s.prototype.count=null,s.prototype.sum=null,s.prototype.bucketCounts=$e.emptyArray,s.prototype.explicitBounds=$e.emptyArray,s.prototype.exemplars=$e.emptyArray,s.prototype.flags=null,s.prototype.min=null,s.prototype.max=null;var a;return Object.defineProperty(s.prototype,"_sum",{get:$e.oneOfGetter(a=["sum"]),set:$e.oneOfSetter(a)}),Object.defineProperty(s.prototype,"_min",{get:$e.oneOfGetter(a=["min"]),set:$e.oneOfSetter(a)}),Object.defineProperty(s.prototype,"_max",{get:$e.oneOfGetter(a=["max"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=sa.create()),n.startTimeUnixNano!=null&&Object.hasOwnProperty.call(n,"startTimeUnixNano")&&c.uint32(17).fixed64(n.startTimeUnixNano),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(25).fixed64(n.timeUnixNano),n.count!=null&&Object.hasOwnProperty.call(n,"count")&&c.uint32(33).fixed64(n.count),n.sum!=null&&Object.hasOwnProperty.call(n,"sum")&&c.uint32(41).double(n.sum),n.bucketCounts!=null&&n.bucketCounts.length){c.uint32(50).fork();for(var u=0;u<n.bucketCounts.length;++u)c.fixed64(n.bucketCounts[u]);c.ldelim()}if(n.explicitBounds!=null&&n.explicitBounds.length){c.uint32(58).fork();for(var u=0;u<n.explicitBounds.length;++u)c.double(n.explicitBounds[u]);c.ldelim()}if(n.exemplars!=null&&n.exemplars.length)for(var u=0;u<n.exemplars.length;++u)ke.opentelemetry.proto.metrics.v1.Exemplar.encode(n.exemplars[u],c.uint32(66).fork()).ldelim();if(n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)ke.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(74).fork()).ldelim();return n.flags!=null&&Object.hasOwnProperty.call(n,"flags")&&c.uint32(80).uint32(n.flags),n.min!=null&&Object.hasOwnProperty.call(n,"min")&&c.uint32(89).double(n.min),n.max!=null&&Object.hasOwnProperty.call(n,"max")&&c.uint32(97).double(n.max),c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.metrics.v1.HistogramDataPoint;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 9:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 2:{d.startTimeUnixNano=n.fixed64();break}case 3:{d.timeUnixNano=n.fixed64();break}case 4:{d.count=n.fixed64();break}case 5:{d.sum=n.double();break}case 6:{if(d.bucketCounts&&d.bucketCounts.length||(d.bucketCounts=[]),(p&7)===2)for(var h=n.uint32()+n.pos;n.pos<h;)d.bucketCounts.push(n.fixed64());else d.bucketCounts.push(n.fixed64());break}case 7:{if(d.explicitBounds&&d.explicitBounds.length||(d.explicitBounds=[]),(p&7)===2)for(var h=n.uint32()+n.pos;n.pos<h;)d.explicitBounds.push(n.double());else d.explicitBounds.push(n.double());break}case 8:{d.exemplars&&d.exemplars.length||(d.exemplars=[]),d.exemplars.push(ke.opentelemetry.proto.metrics.v1.Exemplar.decode(n,n.uint32()));break}case 10:{d.flags=n.uint32();break}case 11:{d.min=n.double();break}case 12:{d.max=n.double();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var u=0;u<n.attributes.length;++u){var f=ke.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[u]);if(f)return"attributes."+f}}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(n.startTimeUnixNano)&&!(n.startTimeUnixNano&&$e.isInteger(n.startTimeUnixNano.low)&&$e.isInteger(n.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.count!=null&&n.hasOwnProperty("count")&&!$e.isInteger(n.count)&&!(n.count&&$e.isInteger(n.count.low)&&$e.isInteger(n.count.high)))return"count: integer|Long expected";if(n.sum!=null&&n.hasOwnProperty("sum")&&(c._sum=1,typeof n.sum!="number"))return"sum: number expected";if(n.bucketCounts!=null&&n.hasOwnProperty("bucketCounts")){if(!Array.isArray(n.bucketCounts))return"bucketCounts: array expected";for(var u=0;u<n.bucketCounts.length;++u)if(!$e.isInteger(n.bucketCounts[u])&&!(n.bucketCounts[u]&&$e.isInteger(n.bucketCounts[u].low)&&$e.isInteger(n.bucketCounts[u].high)))return"bucketCounts: integer|Long[] expected"}if(n.explicitBounds!=null&&n.hasOwnProperty("explicitBounds")){if(!Array.isArray(n.explicitBounds))return"explicitBounds: array expected";for(var u=0;u<n.explicitBounds.length;++u)if(typeof n.explicitBounds[u]!="number")return"explicitBounds: number[] expected"}if(n.exemplars!=null&&n.hasOwnProperty("exemplars")){if(!Array.isArray(n.exemplars))return"exemplars: array expected";for(var u=0;u<n.exemplars.length;++u){var f=ke.opentelemetry.proto.metrics.v1.Exemplar.verify(n.exemplars[u]);if(f)return"exemplars."+f}}return n.flags!=null&&n.hasOwnProperty("flags")&&!$e.isInteger(n.flags)?"flags: integer expected":n.min!=null&&n.hasOwnProperty("min")&&(c._min=1,typeof n.min!="number")?"min: number expected":n.max!=null&&n.hasOwnProperty("max")&&(c._max=1,typeof n.max!="number")?"max: number expected":null},s.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.metrics.v1.HistogramDataPoint)return n;var c=new ke.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");c.attributes[u]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}if(n.startTimeUnixNano!=null&&($e.Long?(c.startTimeUnixNano=$e.Long.fromValue(n.startTimeUnixNano)).unsigned=!1:typeof n.startTimeUnixNano=="string"?c.startTimeUnixNano=parseInt(n.startTimeUnixNano,10):typeof n.startTimeUnixNano=="number"?c.startTimeUnixNano=n.startTimeUnixNano:typeof n.startTimeUnixNano=="object"&&(c.startTimeUnixNano=new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber())),n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.count!=null&&($e.Long?(c.count=$e.Long.fromValue(n.count)).unsigned=!1:typeof n.count=="string"?c.count=parseInt(n.count,10):typeof n.count=="number"?c.count=n.count:typeof n.count=="object"&&(c.count=new $e.LongBits(n.count.low>>>0,n.count.high>>>0).toNumber())),n.sum!=null&&(c.sum=Number(n.sum)),n.bucketCounts){if(!Array.isArray(n.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");c.bucketCounts=[];for(var u=0;u<n.bucketCounts.length;++u)$e.Long?(c.bucketCounts[u]=$e.Long.fromValue(n.bucketCounts[u])).unsigned=!1:typeof n.bucketCounts[u]=="string"?c.bucketCounts[u]=parseInt(n.bucketCounts[u],10):typeof n.bucketCounts[u]=="number"?c.bucketCounts[u]=n.bucketCounts[u]:typeof n.bucketCounts[u]=="object"&&(c.bucketCounts[u]=new $e.LongBits(n.bucketCounts[u].low>>>0,n.bucketCounts[u].high>>>0).toNumber())}if(n.explicitBounds){if(!Array.isArray(n.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");c.explicitBounds=[];for(var u=0;u<n.explicitBounds.length;++u)c.explicitBounds[u]=Number(n.explicitBounds[u])}if(n.exemplars){if(!Array.isArray(n.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");c.exemplars=[];for(var u=0;u<n.exemplars.length;++u){if(typeof n.exemplars[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");c.exemplars[u]=ke.opentelemetry.proto.metrics.v1.Exemplar.fromObject(n.exemplars[u])}}return n.flags!=null&&(c.flags=n.flags>>>0),n.min!=null&&(c.min=Number(n.min)),n.max!=null&&(c.max=Number(n.max)),c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.bucketCounts=[],u.explicitBounds=[],u.exemplars=[],u.attributes=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.startTimeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.startTimeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.count=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.count=c.longs===String?"0":0;u.flags=0}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&(typeof n.startTimeUnixNano=="number"?u.startTimeUnixNano=c.longs===String?String(n.startTimeUnixNano):n.startTimeUnixNano:u.startTimeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.startTimeUnixNano):c.longs===Number?new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber():n.startTimeUnixNano),n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.count!=null&&n.hasOwnProperty("count")&&(typeof n.count=="number"?u.count=c.longs===String?String(n.count):n.count:u.count=c.longs===String?$e.Long.prototype.toString.call(n.count):c.longs===Number?new $e.LongBits(n.count.low>>>0,n.count.high>>>0).toNumber():n.count),n.sum!=null&&n.hasOwnProperty("sum")&&(u.sum=c.json&&!isFinite(n.sum)?String(n.sum):n.sum,c.oneofs&&(u._sum="sum")),n.bucketCounts&&n.bucketCounts.length){u.bucketCounts=[];for(var d=0;d<n.bucketCounts.length;++d)typeof n.bucketCounts[d]=="number"?u.bucketCounts[d]=c.longs===String?String(n.bucketCounts[d]):n.bucketCounts[d]:u.bucketCounts[d]=c.longs===String?$e.Long.prototype.toString.call(n.bucketCounts[d]):c.longs===Number?new $e.LongBits(n.bucketCounts[d].low>>>0,n.bucketCounts[d].high>>>0).toNumber():n.bucketCounts[d]}if(n.explicitBounds&&n.explicitBounds.length){u.explicitBounds=[];for(var d=0;d<n.explicitBounds.length;++d)u.explicitBounds[d]=c.json&&!isFinite(n.explicitBounds[d])?String(n.explicitBounds[d]):n.explicitBounds[d]}if(n.exemplars&&n.exemplars.length){u.exemplars=[];for(var d=0;d<n.exemplars.length;++d)u.exemplars[d]=ke.opentelemetry.proto.metrics.v1.Exemplar.toObject(n.exemplars[d],c)}if(n.attributes&&n.attributes.length){u.attributes=[];for(var d=0;d<n.attributes.length;++d)u.attributes[d]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[d],c)}return n.flags!=null&&n.hasOwnProperty("flags")&&(u.flags=n.flags),n.min!=null&&n.hasOwnProperty("min")&&(u.min=c.json&&!isFinite(n.min)?String(n.min):n.min,c.oneofs&&(u._min="min")),n.max!=null&&n.hasOwnProperty("max")&&(u.max=c.json&&!isFinite(n.max)?String(n.max):n.max,c.oneofs&&(u._max="max")),u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},s})(),o.ExponentialHistogramDataPoint=(function(){function s(i){if(this.attributes=[],this.exemplars=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.attributes=$e.emptyArray,s.prototype.startTimeUnixNano=null,s.prototype.timeUnixNano=null,s.prototype.count=null,s.prototype.sum=null,s.prototype.scale=null,s.prototype.zeroCount=null,s.prototype.positive=null,s.prototype.negative=null,s.prototype.flags=null,s.prototype.exemplars=$e.emptyArray,s.prototype.min=null,s.prototype.max=null,s.prototype.zeroThreshold=null;var a;return Object.defineProperty(s.prototype,"_sum",{get:$e.oneOfGetter(a=["sum"]),set:$e.oneOfSetter(a)}),Object.defineProperty(s.prototype,"_min",{get:$e.oneOfGetter(a=["min"]),set:$e.oneOfSetter(a)}),Object.defineProperty(s.prototype,"_max",{get:$e.oneOfGetter(a=["max"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=sa.create()),n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)ke.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(10).fork()).ldelim();if(n.startTimeUnixNano!=null&&Object.hasOwnProperty.call(n,"startTimeUnixNano")&&c.uint32(17).fixed64(n.startTimeUnixNano),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(25).fixed64(n.timeUnixNano),n.count!=null&&Object.hasOwnProperty.call(n,"count")&&c.uint32(33).fixed64(n.count),n.sum!=null&&Object.hasOwnProperty.call(n,"sum")&&c.uint32(41).double(n.sum),n.scale!=null&&Object.hasOwnProperty.call(n,"scale")&&c.uint32(48).sint32(n.scale),n.zeroCount!=null&&Object.hasOwnProperty.call(n,"zeroCount")&&c.uint32(57).fixed64(n.zeroCount),n.positive!=null&&Object.hasOwnProperty.call(n,"positive")&&ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(n.positive,c.uint32(66).fork()).ldelim(),n.negative!=null&&Object.hasOwnProperty.call(n,"negative")&&ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(n.negative,c.uint32(74).fork()).ldelim(),n.flags!=null&&Object.hasOwnProperty.call(n,"flags")&&c.uint32(80).uint32(n.flags),n.exemplars!=null&&n.exemplars.length)for(var u=0;u<n.exemplars.length;++u)ke.opentelemetry.proto.metrics.v1.Exemplar.encode(n.exemplars[u],c.uint32(90).fork()).ldelim();return n.min!=null&&Object.hasOwnProperty.call(n,"min")&&c.uint32(97).double(n.min),n.max!=null&&Object.hasOwnProperty.call(n,"max")&&c.uint32(105).double(n.max),n.zeroThreshold!=null&&Object.hasOwnProperty.call(n,"zeroThreshold")&&c.uint32(113).double(n.zeroThreshold),c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 2:{d.startTimeUnixNano=n.fixed64();break}case 3:{d.timeUnixNano=n.fixed64();break}case 4:{d.count=n.fixed64();break}case 5:{d.sum=n.double();break}case 6:{d.scale=n.sint32();break}case 7:{d.zeroCount=n.fixed64();break}case 8:{d.positive=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(n,n.uint32());break}case 9:{d.negative=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(n,n.uint32());break}case 10:{d.flags=n.uint32();break}case 11:{d.exemplars&&d.exemplars.length||(d.exemplars=[]),d.exemplars.push(ke.opentelemetry.proto.metrics.v1.Exemplar.decode(n,n.uint32()));break}case 12:{d.min=n.double();break}case 13:{d.max=n.double();break}case 14:{d.zeroThreshold=n.double();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var u=0;u<n.attributes.length;++u){var f=ke.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[u]);if(f)return"attributes."+f}}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(n.startTimeUnixNano)&&!(n.startTimeUnixNano&&$e.isInteger(n.startTimeUnixNano.low)&&$e.isInteger(n.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.count!=null&&n.hasOwnProperty("count")&&!$e.isInteger(n.count)&&!(n.count&&$e.isInteger(n.count.low)&&$e.isInteger(n.count.high)))return"count: integer|Long expected";if(n.sum!=null&&n.hasOwnProperty("sum")&&(c._sum=1,typeof n.sum!="number"))return"sum: number expected";if(n.scale!=null&&n.hasOwnProperty("scale")&&!$e.isInteger(n.scale))return"scale: integer expected";if(n.zeroCount!=null&&n.hasOwnProperty("zeroCount")&&!$e.isInteger(n.zeroCount)&&!(n.zeroCount&&$e.isInteger(n.zeroCount.low)&&$e.isInteger(n.zeroCount.high)))return"zeroCount: integer|Long expected";if(n.positive!=null&&n.hasOwnProperty("positive")){var f=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(n.positive);if(f)return"positive."+f}if(n.negative!=null&&n.hasOwnProperty("negative")){var f=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(n.negative);if(f)return"negative."+f}if(n.flags!=null&&n.hasOwnProperty("flags")&&!$e.isInteger(n.flags))return"flags: integer expected";if(n.exemplars!=null&&n.hasOwnProperty("exemplars")){if(!Array.isArray(n.exemplars))return"exemplars: array expected";for(var u=0;u<n.exemplars.length;++u){var f=ke.opentelemetry.proto.metrics.v1.Exemplar.verify(n.exemplars[u]);if(f)return"exemplars."+f}}return n.min!=null&&n.hasOwnProperty("min")&&(c._min=1,typeof n.min!="number")?"min: number expected":n.max!=null&&n.hasOwnProperty("max")&&(c._max=1,typeof n.max!="number")?"max: number expected":n.zeroThreshold!=null&&n.hasOwnProperty("zeroThreshold")&&typeof n.zeroThreshold!="number"?"zeroThreshold: number expected":null},s.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return n;var c=new ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");c.attributes[u]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}if(n.startTimeUnixNano!=null&&($e.Long?(c.startTimeUnixNano=$e.Long.fromValue(n.startTimeUnixNano)).unsigned=!1:typeof n.startTimeUnixNano=="string"?c.startTimeUnixNano=parseInt(n.startTimeUnixNano,10):typeof n.startTimeUnixNano=="number"?c.startTimeUnixNano=n.startTimeUnixNano:typeof n.startTimeUnixNano=="object"&&(c.startTimeUnixNano=new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber())),n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.count!=null&&($e.Long?(c.count=$e.Long.fromValue(n.count)).unsigned=!1:typeof n.count=="string"?c.count=parseInt(n.count,10):typeof n.count=="number"?c.count=n.count:typeof n.count=="object"&&(c.count=new $e.LongBits(n.count.low>>>0,n.count.high>>>0).toNumber())),n.sum!=null&&(c.sum=Number(n.sum)),n.scale!=null&&(c.scale=n.scale|0),n.zeroCount!=null&&($e.Long?(c.zeroCount=$e.Long.fromValue(n.zeroCount)).unsigned=!1:typeof n.zeroCount=="string"?c.zeroCount=parseInt(n.zeroCount,10):typeof n.zeroCount=="number"?c.zeroCount=n.zeroCount:typeof n.zeroCount=="object"&&(c.zeroCount=new $e.LongBits(n.zeroCount.low>>>0,n.zeroCount.high>>>0).toNumber())),n.positive!=null){if(typeof n.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");c.positive=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(n.positive)}if(n.negative!=null){if(typeof n.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");c.negative=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(n.negative)}if(n.flags!=null&&(c.flags=n.flags>>>0),n.exemplars){if(!Array.isArray(n.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");c.exemplars=[];for(var u=0;u<n.exemplars.length;++u){if(typeof n.exemplars[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");c.exemplars[u]=ke.opentelemetry.proto.metrics.v1.Exemplar.fromObject(n.exemplars[u])}}return n.min!=null&&(c.min=Number(n.min)),n.max!=null&&(c.max=Number(n.max)),n.zeroThreshold!=null&&(c.zeroThreshold=Number(n.zeroThreshold)),c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.attributes=[],u.exemplars=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.startTimeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.startTimeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.count=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.count=c.longs===String?"0":0;if(u.scale=0,$e.Long){var f=new $e.Long(0,0,!1);u.zeroCount=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.zeroCount=c.longs===String?"0":0;u.positive=null,u.negative=null,u.flags=0,u.zeroThreshold=0}if(n.attributes&&n.attributes.length){u.attributes=[];for(var d=0;d<n.attributes.length;++d)u.attributes[d]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[d],c)}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&(typeof n.startTimeUnixNano=="number"?u.startTimeUnixNano=c.longs===String?String(n.startTimeUnixNano):n.startTimeUnixNano:u.startTimeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.startTimeUnixNano):c.longs===Number?new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber():n.startTimeUnixNano),n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.count!=null&&n.hasOwnProperty("count")&&(typeof n.count=="number"?u.count=c.longs===String?String(n.count):n.count:u.count=c.longs===String?$e.Long.prototype.toString.call(n.count):c.longs===Number?new $e.LongBits(n.count.low>>>0,n.count.high>>>0).toNumber():n.count),n.sum!=null&&n.hasOwnProperty("sum")&&(u.sum=c.json&&!isFinite(n.sum)?String(n.sum):n.sum,c.oneofs&&(u._sum="sum")),n.scale!=null&&n.hasOwnProperty("scale")&&(u.scale=n.scale),n.zeroCount!=null&&n.hasOwnProperty("zeroCount")&&(typeof n.zeroCount=="number"?u.zeroCount=c.longs===String?String(n.zeroCount):n.zeroCount:u.zeroCount=c.longs===String?$e.Long.prototype.toString.call(n.zeroCount):c.longs===Number?new $e.LongBits(n.zeroCount.low>>>0,n.zeroCount.high>>>0).toNumber():n.zeroCount),n.positive!=null&&n.hasOwnProperty("positive")&&(u.positive=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(n.positive,c)),n.negative!=null&&n.hasOwnProperty("negative")&&(u.negative=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(n.negative,c)),n.flags!=null&&n.hasOwnProperty("flags")&&(u.flags=n.flags),n.exemplars&&n.exemplars.length){u.exemplars=[];for(var d=0;d<n.exemplars.length;++d)u.exemplars[d]=ke.opentelemetry.proto.metrics.v1.Exemplar.toObject(n.exemplars[d],c)}return n.min!=null&&n.hasOwnProperty("min")&&(u.min=c.json&&!isFinite(n.min)?String(n.min):n.min,c.oneofs&&(u._min="min")),n.max!=null&&n.hasOwnProperty("max")&&(u.max=c.json&&!isFinite(n.max)?String(n.max):n.max,c.oneofs&&(u._max="max")),n.zeroThreshold!=null&&n.hasOwnProperty("zeroThreshold")&&(u.zeroThreshold=c.json&&!isFinite(n.zeroThreshold)?String(n.zeroThreshold):n.zeroThreshold),u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},s.Buckets=(function(){function i(n){if(this.bucketCounts=[],n)for(var c=Object.keys(n),u=0;u<c.length;++u)n[c[u]]!=null&&(this[c[u]]=n[c[u]])}return i.prototype.offset=null,i.prototype.bucketCounts=$e.emptyArray,i.create=function(c){return new i(c)},i.encode=function(c,u){if(u||(u=sa.create()),c.offset!=null&&Object.hasOwnProperty.call(c,"offset")&&u.uint32(8).sint32(c.offset),c.bucketCounts!=null&&c.bucketCounts.length){u.uint32(18).fork();for(var f=0;f<c.bucketCounts.length;++f)u.uint64(c.bucketCounts[f]);u.ldelim()}return u},i.encodeDelimited=function(c,u){return this.encode(c,u).ldelim()},i.decode=function(c,u,f){c instanceof Kt||(c=Kt.create(c));for(var d=u===void 0?c.len:c.pos+u,p=new ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;c.pos<d;){var h=c.uint32();if(h===f)break;switch(h>>>3){case 1:{p.offset=c.sint32();break}case 2:{if(p.bucketCounts&&p.bucketCounts.length||(p.bucketCounts=[]),(h&7)===2)for(var m=c.uint32()+c.pos;c.pos<m;)p.bucketCounts.push(c.uint64());else p.bucketCounts.push(c.uint64());break}default:c.skipType(h&7);break}}return p},i.decodeDelimited=function(c){return c instanceof Kt||(c=new Kt(c)),this.decode(c,c.uint32())},i.verify=function(c){if(typeof c!="object"||c===null)return"object expected";if(c.offset!=null&&c.hasOwnProperty("offset")&&!$e.isInteger(c.offset))return"offset: integer expected";if(c.bucketCounts!=null&&c.hasOwnProperty("bucketCounts")){if(!Array.isArray(c.bucketCounts))return"bucketCounts: array expected";for(var u=0;u<c.bucketCounts.length;++u)if(!$e.isInteger(c.bucketCounts[u])&&!(c.bucketCounts[u]&&$e.isInteger(c.bucketCounts[u].low)&&$e.isInteger(c.bucketCounts[u].high)))return"bucketCounts: integer|Long[] expected"}return null},i.fromObject=function(c){if(c instanceof ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return c;var u=new ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(c.offset!=null&&(u.offset=c.offset|0),c.bucketCounts){if(!Array.isArray(c.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");u.bucketCounts=[];for(var f=0;f<c.bucketCounts.length;++f)$e.Long?(u.bucketCounts[f]=$e.Long.fromValue(c.bucketCounts[f])).unsigned=!0:typeof c.bucketCounts[f]=="string"?u.bucketCounts[f]=parseInt(c.bucketCounts[f],10):typeof c.bucketCounts[f]=="number"?u.bucketCounts[f]=c.bucketCounts[f]:typeof c.bucketCounts[f]=="object"&&(u.bucketCounts[f]=new $e.LongBits(c.bucketCounts[f].low>>>0,c.bucketCounts[f].high>>>0).toNumber(!0))}return u},i.toObject=function(c,u){u||(u={});var f={};if((u.arrays||u.defaults)&&(f.bucketCounts=[]),u.defaults&&(f.offset=0),c.offset!=null&&c.hasOwnProperty("offset")&&(f.offset=c.offset),c.bucketCounts&&c.bucketCounts.length){f.bucketCounts=[];for(var d=0;d<c.bucketCounts.length;++d)typeof c.bucketCounts[d]=="number"?f.bucketCounts[d]=u.longs===String?String(c.bucketCounts[d]):c.bucketCounts[d]:f.bucketCounts[d]=u.longs===String?$e.Long.prototype.toString.call(c.bucketCounts[d]):u.longs===Number?new $e.LongBits(c.bucketCounts[d].low>>>0,c.bucketCounts[d].high>>>0).toNumber(!0):c.bucketCounts[d]}return f},i.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},i.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},i})(),s})(),o.SummaryDataPoint=(function(){function s(a){if(this.attributes=[],this.quantileValues=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.attributes=$e.emptyArray,s.prototype.startTimeUnixNano=null,s.prototype.timeUnixNano=null,s.prototype.count=null,s.prototype.sum=null,s.prototype.quantileValues=$e.emptyArray,s.prototype.flags=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.startTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"startTimeUnixNano")&&n.uint32(17).fixed64(i.startTimeUnixNano),i.timeUnixNano!=null&&Object.hasOwnProperty.call(i,"timeUnixNano")&&n.uint32(25).fixed64(i.timeUnixNano),i.count!=null&&Object.hasOwnProperty.call(i,"count")&&n.uint32(33).fixed64(i.count),i.sum!=null&&Object.hasOwnProperty.call(i,"sum")&&n.uint32(41).double(i.sum),i.quantileValues!=null&&i.quantileValues.length)for(var c=0;c<i.quantileValues.length;++c)ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(i.quantileValues[c],n.uint32(50).fork()).ldelim();if(i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)ke.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(58).fork()).ldelim();return i.flags!=null&&Object.hasOwnProperty.call(i,"flags")&&n.uint32(64).uint32(i.flags),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.metrics.v1.SummaryDataPoint;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 7:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 2:{f.startTimeUnixNano=i.fixed64();break}case 3:{f.timeUnixNano=i.fixed64();break}case 4:{f.count=i.fixed64();break}case 5:{f.sum=i.double();break}case 6:{f.quantileValues&&f.quantileValues.length||(f.quantileValues=[]),f.quantileValues.push(ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(i,i.uint32()));break}case 8:{f.flags=i.uint32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var n=0;n<i.attributes.length;++n){var c=ke.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[n]);if(c)return"attributes."+c}}if(i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(i.startTimeUnixNano)&&!(i.startTimeUnixNano&&$e.isInteger(i.startTimeUnixNano.low)&&$e.isInteger(i.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&!$e.isInteger(i.timeUnixNano)&&!(i.timeUnixNano&&$e.isInteger(i.timeUnixNano.low)&&$e.isInteger(i.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(i.count!=null&&i.hasOwnProperty("count")&&!$e.isInteger(i.count)&&!(i.count&&$e.isInteger(i.count.low)&&$e.isInteger(i.count.high)))return"count: integer|Long expected";if(i.sum!=null&&i.hasOwnProperty("sum")&&typeof i.sum!="number")return"sum: number expected";if(i.quantileValues!=null&&i.hasOwnProperty("quantileValues")){if(!Array.isArray(i.quantileValues))return"quantileValues: array expected";for(var n=0;n<i.quantileValues.length;++n){var c=ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(i.quantileValues[n]);if(c)return"quantileValues."+c}}return i.flags!=null&&i.hasOwnProperty("flags")&&!$e.isInteger(i.flags)?"flags: integer expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.metrics.v1.SummaryDataPoint)return i;var n=new ke.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");n.attributes[c]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}if(i.startTimeUnixNano!=null&&($e.Long?(n.startTimeUnixNano=$e.Long.fromValue(i.startTimeUnixNano)).unsigned=!1:typeof i.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(i.startTimeUnixNano,10):typeof i.startTimeUnixNano=="number"?n.startTimeUnixNano=i.startTimeUnixNano:typeof i.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new $e.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber())),i.timeUnixNano!=null&&($e.Long?(n.timeUnixNano=$e.Long.fromValue(i.timeUnixNano)).unsigned=!1:typeof i.timeUnixNano=="string"?n.timeUnixNano=parseInt(i.timeUnixNano,10):typeof i.timeUnixNano=="number"?n.timeUnixNano=i.timeUnixNano:typeof i.timeUnixNano=="object"&&(n.timeUnixNano=new $e.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber())),i.count!=null&&($e.Long?(n.count=$e.Long.fromValue(i.count)).unsigned=!1:typeof i.count=="string"?n.count=parseInt(i.count,10):typeof i.count=="number"?n.count=i.count:typeof i.count=="object"&&(n.count=new $e.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber())),i.sum!=null&&(n.sum=Number(i.sum)),i.quantileValues){if(!Array.isArray(i.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");n.quantileValues=[];for(var c=0;c<i.quantileValues.length;++c){if(typeof i.quantileValues[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");n.quantileValues[c]=ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(i.quantileValues[c])}}return i.flags!=null&&(n.flags=i.flags>>>0),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.quantileValues=[],c.attributes=[]),n.defaults){if($e.Long){var u=new $e.Long(0,0,!1);c.startTimeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.startTimeUnixNano=n.longs===String?"0":0;if($e.Long){var u=new $e.Long(0,0,!1);c.timeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.timeUnixNano=n.longs===String?"0":0;if($e.Long){var u=new $e.Long(0,0,!1);c.count=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.count=n.longs===String?"0":0;c.sum=0,c.flags=0}if(i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&(typeof i.startTimeUnixNano=="number"?c.startTimeUnixNano=n.longs===String?String(i.startTimeUnixNano):i.startTimeUnixNano:c.startTimeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.startTimeUnixNano):n.longs===Number?new $e.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber():i.startTimeUnixNano),i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&(typeof i.timeUnixNano=="number"?c.timeUnixNano=n.longs===String?String(i.timeUnixNano):i.timeUnixNano:c.timeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.timeUnixNano):n.longs===Number?new $e.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber():i.timeUnixNano),i.count!=null&&i.hasOwnProperty("count")&&(typeof i.count=="number"?c.count=n.longs===String?String(i.count):i.count:c.count=n.longs===String?$e.Long.prototype.toString.call(i.count):n.longs===Number?new $e.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber():i.count),i.sum!=null&&i.hasOwnProperty("sum")&&(c.sum=n.json&&!isFinite(i.sum)?String(i.sum):i.sum),i.quantileValues&&i.quantileValues.length){c.quantileValues=[];for(var f=0;f<i.quantileValues.length;++f)c.quantileValues[f]=ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(i.quantileValues[f],n)}if(i.attributes&&i.attributes.length){c.attributes=[];for(var f=0;f<i.attributes.length;++f)c.attributes[f]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[f],n)}return i.flags!=null&&i.hasOwnProperty("flags")&&(c.flags=i.flags),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},s.ValueAtQuantile=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.quantile=null,a.prototype.value=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=sa.create()),n.quantile!=null&&Object.hasOwnProperty.call(n,"quantile")&&c.uint32(9).double(n.quantile),n.value!=null&&Object.hasOwnProperty.call(n,"value")&&c.uint32(17).double(n.value),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.quantile=n.double();break}case 2:{d.value=n.double();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){return typeof n!="object"||n===null?"object expected":n.quantile!=null&&n.hasOwnProperty("quantile")&&typeof n.quantile!="number"?"quantile: number expected":n.value!=null&&n.hasOwnProperty("value")&&typeof n.value!="number"?"value: number expected":null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return n;var c=new ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return n.quantile!=null&&(c.quantile=Number(n.quantile)),n.value!=null&&(c.value=Number(n.value)),c},a.toObject=function(n,c){c||(c={});var u={};return c.defaults&&(u.quantile=0,u.value=0),n.quantile!=null&&n.hasOwnProperty("quantile")&&(u.quantile=c.json&&!isFinite(n.quantile)?String(n.quantile):n.quantile),n.value!=null&&n.hasOwnProperty("value")&&(u.value=c.json&&!isFinite(n.value)?String(n.value):n.value),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},a})(),s})(),o.Exemplar=(function(){function s(i){if(this.filteredAttributes=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.filteredAttributes=$e.emptyArray,s.prototype.timeUnixNano=null,s.prototype.asDouble=null,s.prototype.asInt=null,s.prototype.spanId=null,s.prototype.traceId=null;var a;return Object.defineProperty(s.prototype,"value",{get:$e.oneOfGetter(a=["asDouble","asInt"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=sa.create()),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(17).fixed64(n.timeUnixNano),n.asDouble!=null&&Object.hasOwnProperty.call(n,"asDouble")&&c.uint32(25).double(n.asDouble),n.spanId!=null&&Object.hasOwnProperty.call(n,"spanId")&&c.uint32(34).bytes(n.spanId),n.traceId!=null&&Object.hasOwnProperty.call(n,"traceId")&&c.uint32(42).bytes(n.traceId),n.asInt!=null&&Object.hasOwnProperty.call(n,"asInt")&&c.uint32(49).sfixed64(n.asInt),n.filteredAttributes!=null&&n.filteredAttributes.length)for(var u=0;u<n.filteredAttributes.length;++u)ke.opentelemetry.proto.common.v1.KeyValue.encode(n.filteredAttributes[u],c.uint32(58).fork()).ldelim();return c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.metrics.v1.Exemplar;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 7:{d.filteredAttributes&&d.filteredAttributes.length||(d.filteredAttributes=[]),d.filteredAttributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 2:{d.timeUnixNano=n.fixed64();break}case 3:{d.asDouble=n.double();break}case 6:{d.asInt=n.sfixed64();break}case 4:{d.spanId=n.bytes();break}case 5:{d.traceId=n.bytes();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.filteredAttributes!=null&&n.hasOwnProperty("filteredAttributes")){if(!Array.isArray(n.filteredAttributes))return"filteredAttributes: array expected";for(var u=0;u<n.filteredAttributes.length;++u){var f=ke.opentelemetry.proto.common.v1.KeyValue.verify(n.filteredAttributes[u]);if(f)return"filteredAttributes."+f}}if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.asDouble!=null&&n.hasOwnProperty("asDouble")&&(c.value=1,typeof n.asDouble!="number"))return"asDouble: number expected";if(n.asInt!=null&&n.hasOwnProperty("asInt")){if(c.value===1)return"value: multiple values";if(c.value=1,!$e.isInteger(n.asInt)&&!(n.asInt&&$e.isInteger(n.asInt.low)&&$e.isInteger(n.asInt.high)))return"asInt: integer|Long expected"}return n.spanId!=null&&n.hasOwnProperty("spanId")&&!(n.spanId&&typeof n.spanId.length=="number"||$e.isString(n.spanId))?"spanId: buffer expected":n.traceId!=null&&n.hasOwnProperty("traceId")&&!(n.traceId&&typeof n.traceId.length=="number"||$e.isString(n.traceId))?"traceId: buffer expected":null},s.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.metrics.v1.Exemplar)return n;var c=new ke.opentelemetry.proto.metrics.v1.Exemplar;if(n.filteredAttributes){if(!Array.isArray(n.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");c.filteredAttributes=[];for(var u=0;u<n.filteredAttributes.length;++u){if(typeof n.filteredAttributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");c.filteredAttributes[u]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(n.filteredAttributes[u])}}return n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.asDouble!=null&&(c.asDouble=Number(n.asDouble)),n.asInt!=null&&($e.Long?(c.asInt=$e.Long.fromValue(n.asInt)).unsigned=!1:typeof n.asInt=="string"?c.asInt=parseInt(n.asInt,10):typeof n.asInt=="number"?c.asInt=n.asInt:typeof n.asInt=="object"&&(c.asInt=new $e.LongBits(n.asInt.low>>>0,n.asInt.high>>>0).toNumber())),n.spanId!=null&&(typeof n.spanId=="string"?$e.base64.decode(n.spanId,c.spanId=$e.newBuffer($e.base64.length(n.spanId)),0):n.spanId.length>=0&&(c.spanId=n.spanId)),n.traceId!=null&&(typeof n.traceId=="string"?$e.base64.decode(n.traceId,c.traceId=$e.newBuffer($e.base64.length(n.traceId)),0):n.traceId.length>=0&&(c.traceId=n.traceId)),c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.filteredAttributes=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;c.bytes===String?u.spanId="":(u.spanId=[],c.bytes!==Array&&(u.spanId=$e.newBuffer(u.spanId))),c.bytes===String?u.traceId="":(u.traceId=[],c.bytes!==Array&&(u.traceId=$e.newBuffer(u.traceId)))}if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.asDouble!=null&&n.hasOwnProperty("asDouble")&&(u.asDouble=c.json&&!isFinite(n.asDouble)?String(n.asDouble):n.asDouble,c.oneofs&&(u.value="asDouble")),n.spanId!=null&&n.hasOwnProperty("spanId")&&(u.spanId=c.bytes===String?$e.base64.encode(n.spanId,0,n.spanId.length):c.bytes===Array?Array.prototype.slice.call(n.spanId):n.spanId),n.traceId!=null&&n.hasOwnProperty("traceId")&&(u.traceId=c.bytes===String?$e.base64.encode(n.traceId,0,n.traceId.length):c.bytes===Array?Array.prototype.slice.call(n.traceId):n.traceId),n.asInt!=null&&n.hasOwnProperty("asInt")&&(typeof n.asInt=="number"?u.asInt=c.longs===String?String(n.asInt):n.asInt:u.asInt=c.longs===String?$e.Long.prototype.toString.call(n.asInt):c.longs===Number?new $e.LongBits(n.asInt.low>>>0,n.asInt.high>>>0).toNumber():n.asInt,c.oneofs&&(u.value="asInt")),n.filteredAttributes&&n.filteredAttributes.length){u.filteredAttributes=[];for(var d=0;d<n.filteredAttributes.length;++d)u.filteredAttributes[d]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(n.filteredAttributes[d],c)}return u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.Exemplar"},s})(),o})(),r})(),e.logs=(function(){var r={};return r.v1=(function(){var o={};return o.LogsData=(function(){function s(a){if(this.resourceLogs=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resourceLogs=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.resourceLogs!=null&&i.resourceLogs.length)for(var c=0;c<i.resourceLogs.length;++c)ke.opentelemetry.proto.logs.v1.ResourceLogs.encode(i.resourceLogs[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.logs.v1.LogsData;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resourceLogs&&f.resourceLogs.length||(f.resourceLogs=[]),f.resourceLogs.push(ke.opentelemetry.proto.logs.v1.ResourceLogs.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resourceLogs!=null&&i.hasOwnProperty("resourceLogs")){if(!Array.isArray(i.resourceLogs))return"resourceLogs: array expected";for(var n=0;n<i.resourceLogs.length;++n){var c=ke.opentelemetry.proto.logs.v1.ResourceLogs.verify(i.resourceLogs[n]);if(c)return"resourceLogs."+c}}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.logs.v1.LogsData)return i;var n=new ke.opentelemetry.proto.logs.v1.LogsData;if(i.resourceLogs){if(!Array.isArray(i.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");n.resourceLogs=[];for(var c=0;c<i.resourceLogs.length;++c){if(typeof i.resourceLogs[c]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");n.resourceLogs[c]=ke.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(i.resourceLogs[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.resourceLogs=[]),i.resourceLogs&&i.resourceLogs.length){c.resourceLogs=[];for(var u=0;u<i.resourceLogs.length;++u)c.resourceLogs[u]=ke.opentelemetry.proto.logs.v1.ResourceLogs.toObject(i.resourceLogs[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.LogsData"},s})(),o.ResourceLogs=(function(){function s(a){if(this.scopeLogs=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resource=null,s.prototype.scopeLogs=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.resource!=null&&Object.hasOwnProperty.call(i,"resource")&&ke.opentelemetry.proto.resource.v1.Resource.encode(i.resource,n.uint32(10).fork()).ldelim(),i.scopeLogs!=null&&i.scopeLogs.length)for(var c=0;c<i.scopeLogs.length;++c)ke.opentelemetry.proto.logs.v1.ScopeLogs.encode(i.scopeLogs[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.logs.v1.ResourceLogs;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resource=ke.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{f.scopeLogs&&f.scopeLogs.length||(f.scopeLogs=[]),f.scopeLogs.push(ke.opentelemetry.proto.logs.v1.ScopeLogs.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resource!=null&&i.hasOwnProperty("resource")){var n=ke.opentelemetry.proto.resource.v1.Resource.verify(i.resource);if(n)return"resource."+n}if(i.scopeLogs!=null&&i.hasOwnProperty("scopeLogs")){if(!Array.isArray(i.scopeLogs))return"scopeLogs: array expected";for(var c=0;c<i.scopeLogs.length;++c){var n=ke.opentelemetry.proto.logs.v1.ScopeLogs.verify(i.scopeLogs[c]);if(n)return"scopeLogs."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.logs.v1.ResourceLogs)return i;var n=new ke.opentelemetry.proto.logs.v1.ResourceLogs;if(i.resource!=null){if(typeof i.resource!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");n.resource=ke.opentelemetry.proto.resource.v1.Resource.fromObject(i.resource)}if(i.scopeLogs){if(!Array.isArray(i.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");n.scopeLogs=[];for(var c=0;c<i.scopeLogs.length;++c){if(typeof i.scopeLogs[c]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");n.scopeLogs[c]=ke.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(i.scopeLogs[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.scopeLogs=[]),n.defaults&&(c.resource=null,c.schemaUrl=""),i.resource!=null&&i.hasOwnProperty("resource")&&(c.resource=ke.opentelemetry.proto.resource.v1.Resource.toObject(i.resource,n)),i.scopeLogs&&i.scopeLogs.length){c.scopeLogs=[];for(var u=0;u<i.scopeLogs.length;++u)c.scopeLogs[u]=ke.opentelemetry.proto.logs.v1.ScopeLogs.toObject(i.scopeLogs[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.ResourceLogs"},s})(),o.ScopeLogs=(function(){function s(a){if(this.logRecords=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.scope=null,s.prototype.logRecords=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.scope!=null&&Object.hasOwnProperty.call(i,"scope")&&ke.opentelemetry.proto.common.v1.InstrumentationScope.encode(i.scope,n.uint32(10).fork()).ldelim(),i.logRecords!=null&&i.logRecords.length)for(var c=0;c<i.logRecords.length;++c)ke.opentelemetry.proto.logs.v1.LogRecord.encode(i.logRecords[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.logs.v1.ScopeLogs;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.scope=ke.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{f.logRecords&&f.logRecords.length||(f.logRecords=[]),f.logRecords.push(ke.opentelemetry.proto.logs.v1.LogRecord.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.scope!=null&&i.hasOwnProperty("scope")){var n=ke.opentelemetry.proto.common.v1.InstrumentationScope.verify(i.scope);if(n)return"scope."+n}if(i.logRecords!=null&&i.hasOwnProperty("logRecords")){if(!Array.isArray(i.logRecords))return"logRecords: array expected";for(var c=0;c<i.logRecords.length;++c){var n=ke.opentelemetry.proto.logs.v1.LogRecord.verify(i.logRecords[c]);if(n)return"logRecords."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.logs.v1.ScopeLogs)return i;var n=new ke.opentelemetry.proto.logs.v1.ScopeLogs;if(i.scope!=null){if(typeof i.scope!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");n.scope=ke.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(i.scope)}if(i.logRecords){if(!Array.isArray(i.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");n.logRecords=[];for(var c=0;c<i.logRecords.length;++c){if(typeof i.logRecords[c]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");n.logRecords[c]=ke.opentelemetry.proto.logs.v1.LogRecord.fromObject(i.logRecords[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.logRecords=[]),n.defaults&&(c.scope=null,c.schemaUrl=""),i.scope!=null&&i.hasOwnProperty("scope")&&(c.scope=ke.opentelemetry.proto.common.v1.InstrumentationScope.toObject(i.scope,n)),i.logRecords&&i.logRecords.length){c.logRecords=[];for(var u=0;u<i.logRecords.length;++u)c.logRecords[u]=ke.opentelemetry.proto.logs.v1.LogRecord.toObject(i.logRecords[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.ScopeLogs"},s})(),o.SeverityNumber=(function(){var s={},a=Object.create(s);return a[s[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,a[s[1]="SEVERITY_NUMBER_TRACE"]=1,a[s[2]="SEVERITY_NUMBER_TRACE2"]=2,a[s[3]="SEVERITY_NUMBER_TRACE3"]=3,a[s[4]="SEVERITY_NUMBER_TRACE4"]=4,a[s[5]="SEVERITY_NUMBER_DEBUG"]=5,a[s[6]="SEVERITY_NUMBER_DEBUG2"]=6,a[s[7]="SEVERITY_NUMBER_DEBUG3"]=7,a[s[8]="SEVERITY_NUMBER_DEBUG4"]=8,a[s[9]="SEVERITY_NUMBER_INFO"]=9,a[s[10]="SEVERITY_NUMBER_INFO2"]=10,a[s[11]="SEVERITY_NUMBER_INFO3"]=11,a[s[12]="SEVERITY_NUMBER_INFO4"]=12,a[s[13]="SEVERITY_NUMBER_WARN"]=13,a[s[14]="SEVERITY_NUMBER_WARN2"]=14,a[s[15]="SEVERITY_NUMBER_WARN3"]=15,a[s[16]="SEVERITY_NUMBER_WARN4"]=16,a[s[17]="SEVERITY_NUMBER_ERROR"]=17,a[s[18]="SEVERITY_NUMBER_ERROR2"]=18,a[s[19]="SEVERITY_NUMBER_ERROR3"]=19,a[s[20]="SEVERITY_NUMBER_ERROR4"]=20,a[s[21]="SEVERITY_NUMBER_FATAL"]=21,a[s[22]="SEVERITY_NUMBER_FATAL2"]=22,a[s[23]="SEVERITY_NUMBER_FATAL3"]=23,a[s[24]="SEVERITY_NUMBER_FATAL4"]=24,a})(),o.LogRecordFlags=(function(){var s={},a=Object.create(s);return a[s[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,a[s[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,a})(),o.LogRecord=(function(){function s(a){if(this.attributes=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.timeUnixNano=null,s.prototype.observedTimeUnixNano=null,s.prototype.severityNumber=null,s.prototype.severityText=null,s.prototype.body=null,s.prototype.attributes=$e.emptyArray,s.prototype.droppedAttributesCount=null,s.prototype.flags=null,s.prototype.traceId=null,s.prototype.spanId=null,s.prototype.eventName=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.timeUnixNano!=null&&Object.hasOwnProperty.call(i,"timeUnixNano")&&n.uint32(9).fixed64(i.timeUnixNano),i.severityNumber!=null&&Object.hasOwnProperty.call(i,"severityNumber")&&n.uint32(16).int32(i.severityNumber),i.severityText!=null&&Object.hasOwnProperty.call(i,"severityText")&&n.uint32(26).string(i.severityText),i.body!=null&&Object.hasOwnProperty.call(i,"body")&&ke.opentelemetry.proto.common.v1.AnyValue.encode(i.body,n.uint32(42).fork()).ldelim(),i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)ke.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(50).fork()).ldelim();return i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&n.uint32(56).uint32(i.droppedAttributesCount),i.flags!=null&&Object.hasOwnProperty.call(i,"flags")&&n.uint32(69).fixed32(i.flags),i.traceId!=null&&Object.hasOwnProperty.call(i,"traceId")&&n.uint32(74).bytes(i.traceId),i.spanId!=null&&Object.hasOwnProperty.call(i,"spanId")&&n.uint32(82).bytes(i.spanId),i.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"observedTimeUnixNano")&&n.uint32(89).fixed64(i.observedTimeUnixNano),i.eventName!=null&&Object.hasOwnProperty.call(i,"eventName")&&n.uint32(98).string(i.eventName),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.logs.v1.LogRecord;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.timeUnixNano=i.fixed64();break}case 11:{f.observedTimeUnixNano=i.fixed64();break}case 2:{f.severityNumber=i.int32();break}case 3:{f.severityText=i.string();break}case 5:{f.body=ke.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32());break}case 6:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 7:{f.droppedAttributesCount=i.uint32();break}case 8:{f.flags=i.fixed32();break}case 9:{f.traceId=i.bytes();break}case 10:{f.spanId=i.bytes();break}case 12:{f.eventName=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&!$e.isInteger(i.timeUnixNano)&&!(i.timeUnixNano&&$e.isInteger(i.timeUnixNano.low)&&$e.isInteger(i.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(i.observedTimeUnixNano!=null&&i.hasOwnProperty("observedTimeUnixNano")&&!$e.isInteger(i.observedTimeUnixNano)&&!(i.observedTimeUnixNano&&$e.isInteger(i.observedTimeUnixNano.low)&&$e.isInteger(i.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(i.severityNumber!=null&&i.hasOwnProperty("severityNumber"))switch(i.severityNumber){default:return"severityNumber: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:break}if(i.severityText!=null&&i.hasOwnProperty("severityText")&&!$e.isString(i.severityText))return"severityText: string expected";if(i.body!=null&&i.hasOwnProperty("body")){var n=ke.opentelemetry.proto.common.v1.AnyValue.verify(i.body);if(n)return"body."+n}if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var c=0;c<i.attributes.length;++c){var n=ke.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[c]);if(n)return"attributes."+n}}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(i.droppedAttributesCount)?"droppedAttributesCount: integer expected":i.flags!=null&&i.hasOwnProperty("flags")&&!$e.isInteger(i.flags)?"flags: integer expected":i.traceId!=null&&i.hasOwnProperty("traceId")&&!(i.traceId&&typeof i.traceId.length=="number"||$e.isString(i.traceId))?"traceId: buffer expected":i.spanId!=null&&i.hasOwnProperty("spanId")&&!(i.spanId&&typeof i.spanId.length=="number"||$e.isString(i.spanId))?"spanId: buffer expected":i.eventName!=null&&i.hasOwnProperty("eventName")&&!$e.isString(i.eventName)?"eventName: string expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.logs.v1.LogRecord)return i;var n=new ke.opentelemetry.proto.logs.v1.LogRecord;switch(i.timeUnixNano!=null&&($e.Long?(n.timeUnixNano=$e.Long.fromValue(i.timeUnixNano)).unsigned=!1:typeof i.timeUnixNano=="string"?n.timeUnixNano=parseInt(i.timeUnixNano,10):typeof i.timeUnixNano=="number"?n.timeUnixNano=i.timeUnixNano:typeof i.timeUnixNano=="object"&&(n.timeUnixNano=new $e.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber())),i.observedTimeUnixNano!=null&&($e.Long?(n.observedTimeUnixNano=$e.Long.fromValue(i.observedTimeUnixNano)).unsigned=!1:typeof i.observedTimeUnixNano=="string"?n.observedTimeUnixNano=parseInt(i.observedTimeUnixNano,10):typeof i.observedTimeUnixNano=="number"?n.observedTimeUnixNano=i.observedTimeUnixNano:typeof i.observedTimeUnixNano=="object"&&(n.observedTimeUnixNano=new $e.LongBits(i.observedTimeUnixNano.low>>>0,i.observedTimeUnixNano.high>>>0).toNumber())),i.severityNumber){default:if(typeof i.severityNumber=="number"){n.severityNumber=i.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:n.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:n.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:n.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:n.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:n.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:n.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:n.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:n.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:n.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:n.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:n.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:n.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:n.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:n.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:n.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:n.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:n.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:n.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:n.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:n.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:n.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:n.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:n.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:n.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:n.severityNumber=24;break}if(i.severityText!=null&&(n.severityText=String(i.severityText)),i.body!=null){if(typeof i.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");n.body=ke.opentelemetry.proto.common.v1.AnyValue.fromObject(i.body)}if(i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");n.attributes[c]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}return i.droppedAttributesCount!=null&&(n.droppedAttributesCount=i.droppedAttributesCount>>>0),i.flags!=null&&(n.flags=i.flags>>>0),i.traceId!=null&&(typeof i.traceId=="string"?$e.base64.decode(i.traceId,n.traceId=$e.newBuffer($e.base64.length(i.traceId)),0):i.traceId.length>=0&&(n.traceId=i.traceId)),i.spanId!=null&&(typeof i.spanId=="string"?$e.base64.decode(i.spanId,n.spanId=$e.newBuffer($e.base64.length(i.spanId)),0):i.spanId.length>=0&&(n.spanId=i.spanId)),i.eventName!=null&&(n.eventName=String(i.eventName)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.attributes=[]),n.defaults){if($e.Long){var u=new $e.Long(0,0,!1);c.timeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.timeUnixNano=n.longs===String?"0":0;if(c.severityNumber=n.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,c.severityText="",c.body=null,c.droppedAttributesCount=0,c.flags=0,n.bytes===String?c.traceId="":(c.traceId=[],n.bytes!==Array&&(c.traceId=$e.newBuffer(c.traceId))),n.bytes===String?c.spanId="":(c.spanId=[],n.bytes!==Array&&(c.spanId=$e.newBuffer(c.spanId))),$e.Long){var u=new $e.Long(0,0,!1);c.observedTimeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.observedTimeUnixNano=n.longs===String?"0":0;c.eventName=""}if(i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&(typeof i.timeUnixNano=="number"?c.timeUnixNano=n.longs===String?String(i.timeUnixNano):i.timeUnixNano:c.timeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.timeUnixNano):n.longs===Number?new $e.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber():i.timeUnixNano),i.severityNumber!=null&&i.hasOwnProperty("severityNumber")&&(c.severityNumber=n.enums===String?ke.opentelemetry.proto.logs.v1.SeverityNumber[i.severityNumber]===void 0?i.severityNumber:ke.opentelemetry.proto.logs.v1.SeverityNumber[i.severityNumber]:i.severityNumber),i.severityText!=null&&i.hasOwnProperty("severityText")&&(c.severityText=i.severityText),i.body!=null&&i.hasOwnProperty("body")&&(c.body=ke.opentelemetry.proto.common.v1.AnyValue.toObject(i.body,n)),i.attributes&&i.attributes.length){c.attributes=[];for(var f=0;f<i.attributes.length;++f)c.attributes[f]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[f],n)}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=i.droppedAttributesCount),i.flags!=null&&i.hasOwnProperty("flags")&&(c.flags=i.flags),i.traceId!=null&&i.hasOwnProperty("traceId")&&(c.traceId=n.bytes===String?$e.base64.encode(i.traceId,0,i.traceId.length):n.bytes===Array?Array.prototype.slice.call(i.traceId):i.traceId),i.spanId!=null&&i.hasOwnProperty("spanId")&&(c.spanId=n.bytes===String?$e.base64.encode(i.spanId,0,i.spanId.length):n.bytes===Array?Array.prototype.slice.call(i.spanId):i.spanId),i.observedTimeUnixNano!=null&&i.hasOwnProperty("observedTimeUnixNano")&&(typeof i.observedTimeUnixNano=="number"?c.observedTimeUnixNano=n.longs===String?String(i.observedTimeUnixNano):i.observedTimeUnixNano:c.observedTimeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.observedTimeUnixNano):n.longs===Number?new $e.LongBits(i.observedTimeUnixNano.low>>>0,i.observedTimeUnixNano.high>>>0).toNumber():i.observedTimeUnixNano),i.eventName!=null&&i.hasOwnProperty("eventName")&&(c.eventName=i.eventName),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.LogRecord"},s})(),o})(),r})(),e})(),t})();kGr.exports=ke});var LGr=E(COe=>{"use strict";Object.defineProperty(COe,"__esModule",{value:!0});COe.hexToBinary=void 0;function MGr(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function U8o(t){let e=new Uint8Array(t.length/2),r=0;for(let o=0;o<t.length;o+=2){let s=MGr(t.charCodeAt(o)),a=MGr(t.charCodeAt(o+1));e[r++]=s<<4|a}return e}COe.hexToBinary=U8o});var TOe=E(zx=>{"use strict";Object.defineProperty(zx,"__esModule",{value:!0});zx.getOtlpEncoder=zx.encodeAsString=zx.encodeAsLongBits=zx.toLongBits=zx.hrTimeToNanos=void 0;var F8o=n2e(),f4t=LGr();function d4t(t){let e=BigInt(1e9);return BigInt(Math.trunc(t[0]))*e+BigInt(Math.trunc(t[1]))}zx.hrTimeToNanos=d4t;function FGr(t){let e=Number(BigInt.asUintN(32,t)),r=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:r}}zx.toLongBits=FGr;function p4t(t){let e=d4t(t);return FGr(e)}zx.encodeAsLongBits=p4t;function QGr(t){return d4t(t).toString()}zx.encodeAsString=QGr;var Q8o=typeof BigInt<"u"?QGr:F8o.hrTimeToNanoseconds;function UGr(t){return t}function qGr(t){if(t!==void 0)return(0,f4t.hexToBinary)(t)}var q8o={encodeHrTime:p4t,encodeSpanContext:f4t.hexToBinary,encodeOptionalSpanContext:qGr};function H8o(t){if(t===void 0)return q8o;let e=t.useLongBits??!0,r=t.useHex??!1;return{encodeHrTime:e?p4t:Q8o,encodeSpanContext:r?UGr:f4t.hexToBinary,encodeOptionalSpanContext:r?UGr:qGr}}zx.getOtlpEncoder=H8o});var wOe=E(Kx=>{"use strict";Object.defineProperty(Kx,"__esModule",{value:!0});Kx.toAnyValue=Kx.toKeyValue=Kx.toAttributes=Kx.createInstrumentationScope=Kx.createResource=void 0;function V8o(t){let e={attributes:HGr(t.attributes),droppedAttributesCount:0},r=t.schemaUrl;return r&&r!==""&&(e.schemaUrl=r),e}Kx.createResource=V8o;function G8o(t){return{name:t.name,version:t.version}}Kx.createInstrumentationScope=G8o;function HGr(t){return Object.keys(t).map(e=>h4t(e,t[e]))}Kx.toAttributes=HGr;function h4t(t,e){return{key:t,value:m4t(e)}}Kx.toKeyValue=h4t;function m4t(t){let e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(m4t)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([r,o])=>h4t(r,o))}}:{}}Kx.toAnyValue=m4t});var g4t=E(rte=>{"use strict";Object.defineProperty(rte,"__esModule",{value:!0});rte.toLogAttributes=rte.createExportLogsServiceRequest=void 0;var j8o=TOe(),IOe=wOe();function $8o(t,e){let r=(0,j8o.getOtlpEncoder)(e);return{resourceLogs:z8o(t,r)}}rte.createExportLogsServiceRequest=$8o;function W8o(t){let e=new Map;for(let r of t){let{resource:o,instrumentationScope:{name:s,version:a="",schemaUrl:i=""}}=r,n=e.get(o);n||(n=new Map,e.set(o,n));let c=`${s}@${a}:${i}`,u=n.get(c);u||(u=[],n.set(c,u)),u.push(r)}return e}function z8o(t,e){let r=W8o(t);return Array.from(r,([o,s])=>{let a=(0,IOe.createResource)(o);return{resource:a,scopeLogs:Array.from(s,([,i])=>({scope:(0,IOe.createInstrumentationScope)(i[0].instrumentationScope),logRecords:i.map(n=>K8o(n,e)),schemaUrl:i[0].instrumentationScope.schemaUrl})),schemaUrl:a.schemaUrl}})}function K8o(t,e){return{timeUnixNano:e.encodeHrTime(t.hrTime),observedTimeUnixNano:e.encodeHrTime(t.hrTimeObserved),severityNumber:t.severityNumber,severityText:t.severityText,body:(0,IOe.toAnyValue)(t.body),eventName:t.eventName,attributes:VGr(t.attributes),droppedAttributesCount:t.droppedAttributesCount,flags:t.spanContext?.traceFlags,traceId:e.encodeOptionalSpanContext(t.spanContext?.traceId),spanId:e.encodeOptionalSpanContext(t.spanContext?.spanId)}}function VGr(t){return Object.keys(t).map(e=>(0,IOe.toKeyValue)(e,t[e]))}rte.toLogAttributes=VGr});var jGr=E(DOe=>{"use strict";Object.defineProperty(DOe,"__esModule",{value:!0});DOe.ProtobufLogsSerializer=void 0;var GGr=_Oe(),Y8o=g4t(),J8o=GGr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,X8o=GGr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;DOe.ProtobufLogsSerializer={serializeRequest:t=>{let e=(0,Y8o.createExportLogsServiceRequest)(t);return X8o.encode(e).finish()},deserializeResponse:t=>J8o.decode(t)}});var $Gr=E(OOe=>{"use strict";Object.defineProperty(OOe,"__esModule",{value:!0});OOe.ProtobufLogsSerializer=void 0;var Z8o=jGr();Object.defineProperty(OOe,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return Z8o.ProtobufLogsSerializer}})});var ROe=E(a2e=>{"use strict";Object.defineProperty(a2e,"__esModule",{value:!0});a2e.AggregationTemporality=void 0;var eDo;(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE"})(eDo=a2e.AggregationTemporality||(a2e.AggregationTemporality={}))});var bk=E(vk=>{"use strict";Object.defineProperty(vk,"__esModule",{value:!0});vk.DataPointType=vk.InstrumentType=void 0;var tDo;(function(t){t.COUNTER="COUNTER",t.GAUGE="GAUGE",t.HISTOGRAM="HISTOGRAM",t.UP_DOWN_COUNTER="UP_DOWN_COUNTER",t.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",t.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",t.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(tDo=vk.InstrumentType||(vk.InstrumentType={}));var rDo;(function(t){t[t.HISTOGRAM=0]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",t[t.GAUGE=2]="GAUGE",t[t.SUM=3]="SUM"})(rDo=vk.DataPointType||(vk.DataPointType={}))});var G4=E(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.equalsCaseInsensitive=rp.binarySearchUB=rp.setEquals=rp.FlatMap=rp.isPromiseAllSettledRejectionResult=rp.PromiseAllSettled=rp.callWithTimeout=rp.TimeoutError=rp.instrumentationScopeId=rp.hashAttributes=rp.isNotNullish=void 0;function nDo(t){return t!=null}rp.isNotNullish=nDo;function iDo(t){let e=Object.keys(t);return e.length===0?"":(e=e.sort(),JSON.stringify(e.map(r=>[r,t[r]])))}rp.hashAttributes=iDo;function oDo(t){return`${t.name}:${t.version??""}:${t.schemaUrl??""}`}rp.instrumentationScopeId=oDo;var NOe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};rp.TimeoutError=NOe;function sDo(t,e){let r,o=new Promise(function(a,i){r=setTimeout(function(){i(new NOe("Operation timed out."))},e)});return Promise.race([t,o]).then(s=>(clearTimeout(r),s),s=>{throw clearTimeout(r),s})}rp.callWithTimeout=sDo;async function aDo(t){return Promise.all(t.map(async e=>{try{return{status:"fulfilled",value:await e}}catch(r){return{status:"rejected",reason:r}}}))}rp.PromiseAllSettled=aDo;function cDo(t){return t.status==="rejected"}rp.isPromiseAllSettledRejectionResult=cDo;function lDo(t,e){let r=[];return t.forEach(o=>{r.push(...e(o))}),r}rp.FlatMap=lDo;function uDo(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}rp.setEquals=uDo;function fDo(t,e){let r=0,o=t.length-1,s=t.length;for(;o>=r;){let a=r+Math.trunc((o-r)/2);t[a]<e?r=a+1:(s=a,o=a-1)}return s}rp.binarySearchUB=fDo;function dDo(t,e){return t.toLowerCase()===e.toLowerCase()}rp.equalsCaseInsensitive=dDo});var nte=E(c2e=>{"use strict";Object.defineProperty(c2e,"__esModule",{value:!0});c2e.AggregatorKind=void 0;var pDo;(function(t){t[t.DROP=0]="DROP",t[t.SUM=1]="SUM",t[t.LAST_VALUE=2]="LAST_VALUE",t[t.HISTOGRAM=3]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(pDo=c2e.AggregatorKind||(c2e.AggregatorKind={}))});var WGr=E(POe=>{"use strict";Object.defineProperty(POe,"__esModule",{value:!0});POe.DropAggregator=void 0;var hDo=nte(),y4t=class{kind=hDo.AggregatorKind.DROP;createAccumulation(){}merge(e,r){}diff(e,r){}toMetricData(e,r,o,s){}};POe.DropAggregator=y4t});var zGr=E(ote=>{"use strict";Object.defineProperty(ote,"__esModule",{value:!0});ote.HistogramAggregator=ote.HistogramAccumulation=void 0;var mDo=nte(),l2e=bk(),gDo=G4();function yDo(t){let e=t.map(()=>0);return e.push(0),{buckets:{boundaries:t,counts:e},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var ite=class{startTime;_boundaries;_recordMinMax;_current;constructor(e,r,o=!0,s=yDo(r)){this.startTime=e,this._boundaries=r,this._recordMinMax=o,this._current=s}record(e){if(Number.isNaN(e))return;this._current.count+=1,this._current.sum+=e,this._recordMinMax&&(this._current.min=Math.min(e,this._current.min),this._current.max=Math.max(e,this._current.max),this._current.hasMinMax=!0);let r=(0,gDo.binarySearchUB)(this._boundaries,e);this._current.buckets.counts[r]+=1}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};ote.HistogramAccumulation=ite;var A4t=class{_boundaries;_recordMinMax;kind=mDo.AggregatorKind.HISTOGRAM;constructor(e,r){this._boundaries=e,this._recordMinMax=r}createAccumulation(e){return new ite(e,this._boundaries,this._recordMinMax)}merge(e,r){let o=e.toPointValue(),s=r.toPointValue(),a=o.buckets.counts,i=s.buckets.counts,n=new Array(a.length);for(let f=0;f<a.length;f++)n[f]=a[f]+i[f];let c=1/0,u=-1/0;return this._recordMinMax&&(o.hasMinMax&&s.hasMinMax?(c=Math.min(o.min,s.min),u=Math.max(o.max,s.max)):o.hasMinMax?(c=o.min,u=o.max):s.hasMinMax&&(c=s.min,u=s.max)),new ite(e.startTime,o.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:o.buckets.boundaries,counts:n},count:o.count+s.count,sum:o.sum+s.sum,hasMinMax:this._recordMinMax&&(o.hasMinMax||s.hasMinMax),min:c,max:u})}diff(e,r){let o=e.toPointValue(),s=r.toPointValue(),a=o.buckets.counts,i=s.buckets.counts,n=new Array(a.length);for(let c=0;c<a.length;c++)n[c]=i[c]-a[c];return new ite(r.startTime,o.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:o.buckets.boundaries,counts:n},count:s.count-o.count,sum:s.sum-o.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:l2e.DataPointType.HISTOGRAM,dataPoints:o.map(([a,i])=>{let n=i.toPointValue(),c=e.type===l2e.InstrumentType.GAUGE||e.type===l2e.InstrumentType.UP_DOWN_COUNTER||e.type===l2e.InstrumentType.OBSERVABLE_GAUGE||e.type===l2e.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:a,startTime:i.startTime,endTime:s,value:{min:n.hasMinMax?n.min:void 0,max:n.hasMinMax?n.max:void 0,sum:c?void 0:n.sum,buckets:n.buckets,count:n.count}}})}}};ote.HistogramAggregator=A4t});var KGr=E(BOe=>{"use strict";Object.defineProperty(BOe,"__esModule",{value:!0});BOe.Buckets=void 0;var v4t=class t{backing;indexBase;indexStart;indexEnd;constructor(e=new b4t,r=0,o=0,s=0){this.backing=e,this.indexBase=r,this.indexStart=o,this.indexEnd=s}get offset(){return this.indexStart}get length(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(e,r)=>this.at(r))}at(e){let r=this.indexBase-this.indexStart;return e<r&&(e+=this.backing.length),e-=r,this.backing.countAt(e)}incrementBucket(e,r){this.backing.increment(e,r)}decrementBucket(e,r){this.backing.decrement(e,r)}trim(){for(let e=0;e<this.length;e++)if(this.at(e)!==0){this.indexStart+=e;break}else if(e===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let e=this.length-1;e>=0;e--)if(this.at(e)!==0){this.indexEnd-=this.length-e-1;break}this._rotate()}downscale(e){this._rotate();let r=1+this.indexEnd-this.indexStart,o=1<<e,s=0,a=0;for(let i=this.indexStart;i<=this.indexEnd;){let n=i%o;n<0&&(n+=o);for(let c=n;c<o&&s<r;c++)this._relocateBucket(a,s),s++,i++;a++}this.indexStart>>=e,this.indexEnd>>=e,this.indexBase=this.indexStart}clone(){return new t(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let e=this.indexBase-this.indexStart;e!==0&&(e>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,e),this.backing.reverse(e,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+e)),this.indexBase=this.indexStart)}_relocateBucket(e,r){e!==r&&this.incrementBucket(e,this.backing.emptyBucket(r))}};BOe.Buckets=v4t;var b4t=class t{_counts;constructor(e=[0]){this._counts=e}get length(){return this._counts.length}countAt(e){return this._counts[e]}growTo(e,r,o){let s=new Array(e).fill(0);s.splice(o,this._counts.length-r,...this._counts.slice(r)),s.splice(0,r,...this._counts.slice(0,r)),this._counts=s}reverse(e,r){let o=Math.floor((e+r)/2)-e;for(let s=0;s<o;s++){let a=this._counts[e+s];this._counts[e+s]=this._counts[r-s-1],this._counts[r-s-1]=a}}emptyBucket(e){let r=this._counts[e];return this._counts[e]=0,r}increment(e,r){this._counts[e]+=r}decrement(e,r){this._counts[e]>=r?this._counts[e]-=r:this._counts[e]=0}clone(){return new t([...this._counts])}}});var S4t=E(Iv=>{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0});Iv.getSignificand=Iv.getNormalBase2=Iv.MIN_VALUE=Iv.MAX_NORMAL_EXPONENT=Iv.MIN_NORMAL_EXPONENT=Iv.SIGNIFICAND_WIDTH=void 0;Iv.SIGNIFICAND_WIDTH=52;var ADo=2146435072,vDo=1048575,E4t=1023;Iv.MIN_NORMAL_EXPONENT=-E4t+1;Iv.MAX_NORMAL_EXPONENT=E4t;Iv.MIN_VALUE=Math.pow(2,-1022);function bDo(t){let e=new DataView(new ArrayBuffer(8));return e.setFloat64(0,t),((e.getUint32(0)&ADo)>>20)-E4t}Iv.getNormalBase2=bDo;function EDo(t){let e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);let r=e.getUint32(0),o=e.getUint32(4);return(r&vDo)*Math.pow(2,32)+o}Iv.getSignificand=EDo});var kOe=E(ste=>{"use strict";Object.defineProperty(ste,"__esModule",{value:!0});ste.nextGreaterSquare=ste.ldexp=void 0;function SDo(t,e){return t===0||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||Number.isNaN(t)?t:t*Math.pow(2,e)}ste.ldexp=SDo;function xDo(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t++,t}ste.nextGreaterSquare=xDo});var LOe=E(MOe=>{"use strict";Object.defineProperty(MOe,"__esModule",{value:!0});MOe.MappingError=void 0;var x4t=class extends Error{};MOe.MappingError=x4t});var JGr=E(UOe=>{"use strict";Object.defineProperty(UOe,"__esModule",{value:!0});UOe.ExponentMapping=void 0;var ate=S4t(),_Do=kOe(),YGr=LOe(),_4t=class{_shift;constructor(e){this._shift=-e}mapToIndex(e){if(e<ate.MIN_VALUE)return this._minNormalLowerBoundaryIndex();let r=ate.getNormalBase2(e),o=this._rightShift(ate.getSignificand(e)-1,ate.SIGNIFICAND_WIDTH);return r+o>>this._shift}lowerBoundary(e){let r=this._minNormalLowerBoundaryIndex();if(e<r)throw new YGr.MappingError(`underflow: ${e} is < minimum lower boundary: ${r}`);let o=this._maxNormalLowerBoundaryIndex();if(e>o)throw new YGr.MappingError(`overflow: ${e} is > maximum lower boundary: ${o}`);return _Do.ldexp(1,e<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let e=ate.MIN_NORMAL_EXPONENT>>this._shift;return this._shift<2&&e--,e}_maxNormalLowerBoundaryIndex(){return ate.MAX_NORMAL_EXPONENT>>this._shift}_rightShift(e,r){return Math.floor(e*Math.pow(2,-r))}};UOe.ExponentMapping=_4t});var ejr=E(FOe=>{"use strict";Object.defineProperty(FOe,"__esModule",{value:!0});FOe.LogarithmMapping=void 0;var cte=S4t(),XGr=kOe(),ZGr=LOe(),C4t=class{_scale;_scaleFactor;_inverseFactor;constructor(e){this._scale=e,this._scaleFactor=XGr.ldexp(Math.LOG2E,e),this._inverseFactor=XGr.ldexp(Math.LN2,-e)}mapToIndex(e){if(e<=cte.MIN_VALUE)return this._minNormalLowerBoundaryIndex()-1;if(cte.getSignificand(e)===0)return(cte.getNormalBase2(e)<<this._scale)-1;let r=Math.floor(Math.log(e)*this._scaleFactor),o=this._maxNormalLowerBoundaryIndex();return r>=o?o:r}lowerBoundary(e){let r=this._maxNormalLowerBoundaryIndex();if(e>=r){if(e===r)return 2*Math.exp((e-(1<<this._scale))/this._scaleFactor);throw new ZGr.MappingError(`overflow: ${e} is > maximum lower boundary: ${r}`)}let o=this._minNormalLowerBoundaryIndex();if(e<=o){if(e===o)return cte.MIN_VALUE;if(e===o-1)return Math.exp((e+(1<<this._scale))/this._scaleFactor)/2;throw new ZGr.MappingError(`overflow: ${e} is < minimum lower boundary: ${o}`)}return Math.exp(e*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return cte.MIN_NORMAL_EXPONENT<<this._scale}_maxNormalLowerBoundaryIndex(){return(cte.MAX_NORMAL_EXPONENT+1<<this._scale)-1}};FOe.LogarithmMapping=C4t});var njr=E(QOe=>{"use strict";Object.defineProperty(QOe,"__esModule",{value:!0});QOe.getMapping=void 0;var CDo=JGr(),TDo=ejr(),wDo=LOe(),tjr=-10,rjr=20,IDo=Array.from({length:31},(t,e)=>e>10?new TDo.LogarithmMapping(e-10):new CDo.ExponentMapping(e-10));function DDo(t){if(t>rjr||t<tjr)throw new wDo.MappingError(`expected scale >= ${tjr} && <= ${rjr}, got: ${t}`);return IDo[t+10]}QOe.getMapping=DDo});var sjr=E(ute=>{"use strict";Object.defineProperty(ute,"__esModule",{value:!0});ute.ExponentialHistogramAggregator=ute.ExponentialHistogramAccumulation=void 0;var ODo=nte(),u2e=bk(),RDo=(ut(),nt(xt)),ijr=KGr(),ojr=njr(),NDo=kOe(),lte=class t{low;high;static combine(e,r){return new t(Math.min(e.low,r.low),Math.max(e.high,r.high))}constructor(e,r){this.low=e,this.high=r}},PDo=20,BDo=160,T4t=2,qOe=class t{startTime;_maxSize;_recordMinMax;_sum;_count;_zeroCount;_min;_max;_positive;_negative;_mapping;constructor(e,r=BDo,o=!0,s=0,a=0,i=0,n=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,u=new ijr.Buckets,f=new ijr.Buckets,d=(0,ojr.getMapping)(PDo)){this.startTime=e,this._maxSize=r,this._recordMinMax=o,this._sum=s,this._count=a,this._zeroCount=i,this._min=n,this._max=c,this._positive=u,this._negative=f,this._mapping=d,this._maxSize<T4t&&(RDo.diag.warn(`Exponential Histogram Max Size set to ${this._maxSize}, changing to the minimum size of: ${T4t}`),this._maxSize=T4t)}record(e){this.updateByIncrement(e,1)}setStartTime(e){this.startTime=e}toPointValue(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}}get sum(){return this._sum}get min(){return this._min}get max(){return this._max}get count(){return this._count}get zeroCount(){return this._zeroCount}get scale(){return this._count===this._zeroCount?0:this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(e,r){if(!Number.isNaN(e)){if(e>this._max&&(this._max=e),e<this._min&&(this._min=e),this._count+=r,e===0){this._zeroCount+=r;return}this._sum+=e*r,e>0?this._updateBuckets(this._positive,e,r):this._updateBuckets(this._negative,-e,r)}}merge(e){this._count===0?(this._min=e.min,this._max=e.max):e.count!==0&&(e.min<this.min&&(this._min=e.min),e.max>this.max&&(this._max=e.max)),this.startTime=e.startTime,this._sum+=e.sum,this._count+=e.count,this._zeroCount+=e.zeroCount;let r=this._minScale(e);this._downscale(this.scale-r),this._mergeBuckets(this.positive,e,e.positive,r),this._mergeBuckets(this.negative,e,e.negative,r)}diff(e){this._min=1/0,this._max=-1/0,this._sum-=e.sum,this._count-=e.count,this._zeroCount-=e.zeroCount;let r=this._minScale(e);this._downscale(this.scale-r),this._diffBuckets(this.positive,e,e.positive,r),this._diffBuckets(this.negative,e,e.negative,r)}clone(){return new t(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)}_updateBuckets(e,r,o){let s=this._mapping.mapToIndex(r),a=!1,i=0,n=0;if(e.length===0?(e.indexStart=s,e.indexEnd=e.indexStart,e.indexBase=e.indexStart):s<e.indexStart&&e.indexEnd-s>=this._maxSize?(a=!0,n=s,i=e.indexEnd):s>e.indexEnd&&s-e.indexStart>=this._maxSize&&(a=!0,n=e.indexStart,i=s),a){let c=this._changeScale(i,n);this._downscale(c),s=this._mapping.mapToIndex(r)}this._incrementIndexBy(e,s,o)}_incrementIndexBy(e,r,o){if(o===0)return;if(e.length===0&&(e.indexStart=e.indexEnd=e.indexBase=r),r<e.indexStart){let a=e.indexEnd-r;a>=e.backing.length&&this._grow(e,a+1),e.indexStart=r}else if(r>e.indexEnd){let a=r-e.indexStart;a>=e.backing.length&&this._grow(e,a+1),e.indexEnd=r}let s=r-e.indexBase;s<0&&(s+=e.backing.length),e.incrementBucket(s,o)}_grow(e,r){let o=e.backing.length,s=e.indexBase-e.indexStart,a=o-s,i=(0,NDo.nextGreaterSquare)(r);i>this._maxSize&&(i=this._maxSize);let n=i-s;e.backing.growTo(i,a,n)}_changeScale(e,r){let o=0;for(;e-r>=this._maxSize;)e>>=1,r>>=1,o++;return o}_downscale(e){if(e===0)return;if(e<0)throw new Error(`impossible change of scale: ${this.scale}`);let r=this._mapping.scale-e;this._positive.downscale(e),this._negative.downscale(e),this._mapping=(0,ojr.getMapping)(r)}_minScale(e){let r=Math.min(this.scale,e.scale),o=lte.combine(this._highLowAtScale(this.positive,this.scale,r),this._highLowAtScale(e.positive,e.scale,r)),s=lte.combine(this._highLowAtScale(this.negative,this.scale,r),this._highLowAtScale(e.negative,e.scale,r));return Math.min(r-this._changeScale(o.high,o.low),r-this._changeScale(s.high,s.low))}_highLowAtScale(e,r,o){if(e.length===0)return new lte(0,-1);let s=r-o;return new lte(e.indexStart>>s,e.indexEnd>>s)}_mergeBuckets(e,r,o,s){let a=o.offset,i=r.scale-s;for(let n=0;n<o.length;n++)this._incrementIndexBy(e,a+n>>i,o.at(n))}_diffBuckets(e,r,o,s){let a=o.offset,i=r.scale-s;for(let n=0;n<o.length;n++){let u=(a+n>>i)-e.indexBase;u<0&&(u+=e.backing.length),e.decrementBucket(u,o.at(n))}e.trim()}};ute.ExponentialHistogramAccumulation=qOe;var w4t=class{_maxSize;_recordMinMax;kind=ODo.AggregatorKind.EXPONENTIAL_HISTOGRAM;constructor(e,r){this._maxSize=e,this._recordMinMax=r}createAccumulation(e){return new qOe(e,this._maxSize,this._recordMinMax)}merge(e,r){let o=r.clone();return o.merge(e),o}diff(e,r){let o=r.clone();return o.diff(e),o}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:u2e.DataPointType.EXPONENTIAL_HISTOGRAM,dataPoints:o.map(([a,i])=>{let n=i.toPointValue(),c=e.type===u2e.InstrumentType.GAUGE||e.type===u2e.InstrumentType.UP_DOWN_COUNTER||e.type===u2e.InstrumentType.OBSERVABLE_GAUGE||e.type===u2e.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:a,startTime:i.startTime,endTime:s,value:{min:n.hasMinMax?n.min:void 0,max:n.hasMinMax?n.max:void 0,sum:c?void 0:n.sum,positive:{offset:n.positive.offset,bucketCounts:n.positive.bucketCounts},negative:{offset:n.negative.offset,bucketCounts:n.negative.bucketCounts},count:n.count,scale:n.scale,zeroCount:n.zeroCount}}})}}};ute.ExponentialHistogramAggregator=w4t});var f2e=E(Ek=>{"use strict";Object.defineProperty(Ek,"__esModule",{value:!0});Ek.isTracingSuppressed=Ek.unsuppressTracing=Ek.suppressTracing=void 0;var kDo=(ut(),nt(xt)),I4t=(0,kDo.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function MDo(t){return t.setValue(I4t,!0)}Ek.suppressTracing=MDo;function LDo(t){return t.deleteValue(I4t)}Ek.unsuppressTracing=LDo;function UDo(t){return t.getValue(I4t)===!0}Ek.isTracingSuppressed=UDo});var D4t=E(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});ey.BAGGAGE_MAX_TOTAL_LENGTH=ey.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=ey.BAGGAGE_MAX_NAME_VALUE_PAIRS=ey.BAGGAGE_HEADER=ey.BAGGAGE_ITEMS_SEPARATOR=ey.BAGGAGE_PROPERTIES_SEPARATOR=ey.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;ey.BAGGAGE_KEY_PAIR_SEPARATOR="=";ey.BAGGAGE_PROPERTIES_SEPARATOR=";";ey.BAGGAGE_ITEMS_SEPARATOR=",";ey.BAGGAGE_HEADER="baggage";ey.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;ey.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;ey.BAGGAGE_MAX_TOTAL_LENGTH=8192});var O4t=E(J5=>{"use strict";Object.defineProperty(J5,"__esModule",{value:!0});J5.parseKeyPairsIntoRecord=J5.parsePairKeyValue=J5.getKeyPairs=J5.serializeKeyPairs=void 0;var FDo=(ut(),nt(xt)),oV=D4t();function QDo(t){return t.reduce((e,r)=>{let o=`${e}${e!==""?oV.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return o.length>oV.BAGGAGE_MAX_TOTAL_LENGTH?e:o},"")}J5.serializeKeyPairs=QDo;function qDo(t){return t.getAllEntries().map(([e,r])=>{let o=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(o+=oV.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),o})}J5.getKeyPairs=qDo;function ajr(t){let e=t.split(oV.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let o=r.indexOf(oV.BAGGAGE_KEY_PAIR_SEPARATOR);if(o<=0)return;let s=decodeURIComponent(r.substring(0,o).trim()),a=decodeURIComponent(r.substring(o+1).trim()),i;return e.length>0&&(i=(0,FDo.baggageEntryMetadataFromString)(e.join(oV.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:a,metadata:i}}J5.parsePairKeyValue=ajr;function HDo(t){let e={};return typeof t=="string"&&t.length>0&&t.split(oV.BAGGAGE_ITEMS_SEPARATOR).forEach(r=>{let o=ajr(r);o!==void 0&&o.value.length>0&&(e[o.key]=o.value)}),e}J5.parseKeyPairsIntoRecord=HDo});var cjr=E(HOe=>{"use strict";Object.defineProperty(HOe,"__esModule",{value:!0});HOe.W3CBaggagePropagator=void 0;var R4t=(ut(),nt(xt)),VDo=f2e(),sV=D4t(),N4t=O4t(),P4t=class{inject(e,r,o){let s=R4t.propagation.getBaggage(e);if(!s||(0,VDo.isTracingSuppressed)(e))return;let a=(0,N4t.getKeyPairs)(s).filter(n=>n.length<=sV.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,sV.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,N4t.serializeKeyPairs)(a);i.length>0&&o.set(r,sV.BAGGAGE_HEADER,i)}extract(e,r,o){let s=o.get(r,sV.BAGGAGE_HEADER),a=Array.isArray(s)?s.join(sV.BAGGAGE_ITEMS_SEPARATOR):s;if(!a)return e;let i={};return a.length===0||(a.split(sV.BAGGAGE_ITEMS_SEPARATOR).forEach(c=>{let u=(0,N4t.parsePairKeyValue)(c);if(u){let f={value:u.value};u.metadata&&(f.metadata=u.metadata),i[u.key]=f}}),Object.entries(i).length===0)?e:R4t.propagation.setBaggage(e,R4t.propagation.createBaggage(i))}fields(){return[sV.BAGGAGE_HEADER]}};HOe.W3CBaggagePropagator=P4t});var ljr=E(VOe=>{"use strict";Object.defineProperty(VOe,"__esModule",{value:!0});VOe.AnchoredClock=void 0;var B4t=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,r){this._monotonicClock=r,this._epochMillis=e.now(),this._performanceMillis=r.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};VOe.AnchoredClock=B4t});var hjr=E(Sk=>{"use strict";Object.defineProperty(Sk,"__esModule",{value:!0});Sk.isAttributeValue=Sk.isAttributeKey=Sk.sanitizeAttributes=void 0;var ujr=(ut(),nt(xt));function GDo(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,o]of Object.entries(t)){if(!fjr(r)){ujr.diag.warn(`Invalid attribute key: ${r}`);continue}if(!djr(o)){ujr.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(o)?e[r]=o.slice():e[r]=o}return e}Sk.sanitizeAttributes=GDo;function fjr(t){return typeof t=="string"&&t.length>0}Sk.isAttributeKey=fjr;function djr(t){return t==null?!0:Array.isArray(t)?jDo(t):pjr(t)}Sk.isAttributeValue=djr;function jDo(t){let e;for(let r of t)if(r!=null){if(!e){if(pjr(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function pjr(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var k4t=E(GOe=>{"use strict";Object.defineProperty(GOe,"__esModule",{value:!0});GOe.loggingErrorHandler=void 0;var $Do=(ut(),nt(xt));function WDo(){return t=>{$Do.diag.error(zDo(t))}}GOe.loggingErrorHandler=WDo;function zDo(t){return typeof t=="string"?t:JSON.stringify(KDo(t))}function KDo(t){let e={},r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(o=>{if(e[o])return;let s=r[o];s&&(e[o]=String(s))}),r=Object.getPrototypeOf(r);return e}});var gjr=E(fte=>{"use strict";Object.defineProperty(fte,"__esModule",{value:!0});fte.globalErrorHandler=fte.setGlobalErrorHandler=void 0;var YDo=k4t(),mjr=(0,YDo.loggingErrorHandler)();function JDo(t){mjr=t}fte.setGlobalErrorHandler=JDo;function XDo(t){try{mjr(t)}catch{}}fte.globalErrorHandler=XDo});var bjr=E(X5=>{"use strict";Object.defineProperty(X5,"__esModule",{value:!0});X5.getStringListFromEnv=X5.getBooleanFromEnv=X5.getStringFromEnv=X5.getNumberFromEnv=void 0;var yjr=(ut(),nt(xt)),Ajr=me("util");function ZDo(t){let e=process.env[t];if(e==null||e.trim()==="")return;let r=Number(e);if(isNaN(r)){yjr.diag.warn(`Unknown value ${(0,Ajr.inspect)(e)} for ${t}, expected a number, using defaults`);return}return r}X5.getNumberFromEnv=ZDo;function vjr(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}X5.getStringFromEnv=vjr;function e9o(t){let e=process.env[t]?.trim().toLowerCase();return e==null||e===""?!1:e==="true"?!0:(e==="false"||yjr.diag.warn(`Unknown value ${(0,Ajr.inspect)(e)} for ${t}, expected 'true' or 'false', falling back to 'false' (default)`),!1)}X5.getBooleanFromEnv=e9o;function t9o(t){return vjr(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}X5.getStringListFromEnv=t9o});var Ejr=E(jOe=>{"use strict";Object.defineProperty(jOe,"__esModule",{value:!0});jOe._globalThis=void 0;jOe._globalThis=typeof globalThis=="object"?globalThis:global});var Sjr=E($Oe=>{"use strict";Object.defineProperty($Oe,"__esModule",{value:!0});$Oe.otperformance=void 0;var r9o=me("perf_hooks");$Oe.otperformance=r9o.performance});var xjr=E(WOe=>{"use strict";Object.defineProperty(WOe,"__esModule",{value:!0});WOe.VERSION=void 0;WOe.VERSION="2.1.0"});var _jr=E(zOe=>{"use strict";Object.defineProperty(zOe,"__esModule",{value:!0});zOe.ATTR_PROCESS_RUNTIME_NAME=void 0;zOe.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var Cjr=E(YOe=>{"use strict";Object.defineProperty(YOe,"__esModule",{value:!0});YOe.SDK_INFO=void 0;var n9o=xjr(),KOe=(Wl(),nt(Uu)),i9o=_jr();YOe.SDK_INFO={[KOe.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[i9o.ATTR_PROCESS_RUNTIME_NAME]:"node",[KOe.ATTR_TELEMETRY_SDK_LANGUAGE]:KOe.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[KOe.ATTR_TELEMETRY_SDK_VERSION]:n9o.VERSION}});var Tjr=E(JOe=>{"use strict";Object.defineProperty(JOe,"__esModule",{value:!0});JOe.unrefTimer=void 0;function o9o(t){t.unref()}JOe.unrefTimer=o9o});var wjr=E(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});o0.unrefTimer=o0.SDK_INFO=o0.otperformance=o0._globalThis=o0.getStringListFromEnv=o0.getNumberFromEnv=o0.getBooleanFromEnv=o0.getStringFromEnv=void 0;var XOe=bjr();Object.defineProperty(o0,"getStringFromEnv",{enumerable:!0,get:function(){return XOe.getStringFromEnv}});Object.defineProperty(o0,"getBooleanFromEnv",{enumerable:!0,get:function(){return XOe.getBooleanFromEnv}});Object.defineProperty(o0,"getNumberFromEnv",{enumerable:!0,get:function(){return XOe.getNumberFromEnv}});Object.defineProperty(o0,"getStringListFromEnv",{enumerable:!0,get:function(){return XOe.getStringListFromEnv}});var s9o=Ejr();Object.defineProperty(o0,"_globalThis",{enumerable:!0,get:function(){return s9o._globalThis}});var a9o=Sjr();Object.defineProperty(o0,"otperformance",{enumerable:!0,get:function(){return a9o.otperformance}});var c9o=Cjr();Object.defineProperty(o0,"SDK_INFO",{enumerable:!0,get:function(){return c9o.SDK_INFO}});var l9o=Tjr();Object.defineProperty(o0,"unrefTimer",{enumerable:!0,get:function(){return l9o.unrefTimer}})});var M4t=E(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});s0.getStringListFromEnv=s0.getNumberFromEnv=s0.getStringFromEnv=s0.getBooleanFromEnv=s0.unrefTimer=s0.otperformance=s0._globalThis=s0.SDK_INFO=void 0;var xk=wjr();Object.defineProperty(s0,"SDK_INFO",{enumerable:!0,get:function(){return xk.SDK_INFO}});Object.defineProperty(s0,"_globalThis",{enumerable:!0,get:function(){return xk._globalThis}});Object.defineProperty(s0,"otperformance",{enumerable:!0,get:function(){return xk.otperformance}});Object.defineProperty(s0,"unrefTimer",{enumerable:!0,get:function(){return xk.unrefTimer}});Object.defineProperty(s0,"getBooleanFromEnv",{enumerable:!0,get:function(){return xk.getBooleanFromEnv}});Object.defineProperty(s0,"getStringFromEnv",{enumerable:!0,get:function(){return xk.getStringFromEnv}});Object.defineProperty(s0,"getNumberFromEnv",{enumerable:!0,get:function(){return xk.getNumberFromEnv}});Object.defineProperty(s0,"getStringListFromEnv",{enumerable:!0,get:function(){return xk.getStringListFromEnv}})});var Rjr=E(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.addHrTimes=Rf.isTimeInput=Rf.isTimeInputHrTime=Rf.hrTimeToMicroseconds=Rf.hrTimeToMilliseconds=Rf.hrTimeToNanoseconds=Rf.hrTimeToTimeStamp=Rf.hrTimeDuration=Rf.timeInputToHrTime=Rf.hrTime=Rf.getTimeOrigin=Rf.millisToHrTime=void 0;var L4t=M4t(),Ijr=9,u9o=6,f9o=Math.pow(10,u9o),ZOe=Math.pow(10,Ijr);function d2e(t){let e=t/1e3,r=Math.trunc(e),o=Math.round(t%1e3*f9o);return[r,o]}Rf.millisToHrTime=d2e;function U4t(){let t=L4t.otperformance.timeOrigin;if(typeof t!="number"){let e=L4t.otperformance;t=e.timing&&e.timing.fetchStart}return t}Rf.getTimeOrigin=U4t;function Djr(t){let e=d2e(U4t()),r=d2e(typeof t=="number"?t:L4t.otperformance.now());return Ojr(e,r)}Rf.hrTime=Djr;function d9o(t){if(F4t(t))return t;if(typeof t=="number")return t<U4t()?Djr(t):d2e(t);if(t instanceof Date)return d2e(t.getTime());throw TypeError("Invalid input type")}Rf.timeInputToHrTime=d9o;function p9o(t,e){let r=e[0]-t[0],o=e[1]-t[1];return o<0&&(r-=1,o+=ZOe),[r,o]}Rf.hrTimeDuration=p9o;function h9o(t){let e=Ijr,r=`${"0".repeat(e)}${t[1]}Z`,o=r.substring(r.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",o)}Rf.hrTimeToTimeStamp=h9o;function m9o(t){return t[0]*ZOe+t[1]}Rf.hrTimeToNanoseconds=m9o;function g9o(t){return t[0]*1e3+t[1]/1e6}Rf.hrTimeToMilliseconds=g9o;function y9o(t){return t[0]*1e6+t[1]/1e3}Rf.hrTimeToMicroseconds=y9o;function F4t(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}Rf.isTimeInputHrTime=F4t;function A9o(t){return F4t(t)||typeof t=="number"||t instanceof Date}Rf.isTimeInput=A9o;function Ojr(t,e){let r=[t[0]+e[0],t[1]+e[1]];return r[1]>=ZOe&&(r[1]-=ZOe,r[0]+=1),r}Rf.addHrTimes=Ojr});var Njr=E(p2e=>{"use strict";Object.defineProperty(p2e,"__esModule",{value:!0});p2e.ExportResultCode=void 0;var v9o;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(v9o=p2e.ExportResultCode||(p2e.ExportResultCode={}))});var Bjr=E(eRe=>{"use strict";Object.defineProperty(eRe,"__esModule",{value:!0});eRe.CompositePropagator=void 0;var Pjr=(ut(),nt(xt)),Q4t=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,o)=>r.concat(o),[])))}inject(e,r,o){for(let s of this._propagators)try{s.inject(e,r,o)}catch(a){Pjr.diag.warn(`Failed to inject with ${s.constructor.name}. Err: ${a.message}`)}}extract(e,r,o){return this._propagators.reduce((s,a)=>{try{return a.extract(s,r,o)}catch(i){Pjr.diag.warn(`Failed to extract with ${a.constructor.name}. Err: ${i.message}`)}return s},e)}fields(){return this._fields.slice()}};eRe.CompositePropagator=Q4t});var kjr=E(dte=>{"use strict";Object.defineProperty(dte,"__esModule",{value:!0});dte.validateValue=dte.validateKey=void 0;var q4t="[_0-9a-z-*/]",b9o=`[a-z]${q4t}{0,255}`,E9o=`[a-z0-9]${q4t}{0,240}@[a-z]${q4t}{0,13}`,S9o=new RegExp(`^(?:${b9o}|${E9o})$`),x9o=/^[ -~]{0,255}[!-~]$/,_9o=/,|=/;function C9o(t){return S9o.test(t)}dte.validateKey=C9o;function T9o(t){return x9o.test(t)&&!_9o.test(t)}dte.validateValue=T9o});var V4t=E(tRe=>{"use strict";Object.defineProperty(tRe,"__esModule",{value:!0});tRe.TraceState=void 0;var Mjr=kjr(),Ljr=32,w9o=512,Ujr=",",Fjr="=",H4t=class t{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,r){let o=this._clone();return o._internalState.has(e)&&o._internalState.delete(e),o._internalState.set(e,r),o}unset(e){let r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+Fjr+this.get(r)),e),[]).join(Ujr)}_parse(e){e.length>w9o||(this._internalState=e.split(Ujr).reverse().reduce((r,o)=>{let s=o.trim(),a=s.indexOf(Fjr);if(a!==-1){let i=s.slice(0,a),n=s.slice(a+1,o.length);(0,Mjr.validateKey)(i)&&(0,Mjr.validateValue)(n)&&r.set(i,n)}return r},new Map),this._internalState.size>Ljr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Ljr))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};tRe.TraceState=H4t});var qjr=E(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});ty.W3CTraceContextPropagator=ty.parseTraceParent=ty.TRACE_STATE_HEADER=ty.TRACE_PARENT_HEADER=void 0;var rRe=(ut(),nt(xt)),I9o=f2e(),D9o=V4t();ty.TRACE_PARENT_HEADER="traceparent";ty.TRACE_STATE_HEADER="tracestate";var O9o="00",R9o="(?!ff)[\\da-f]{2}",N9o="(?![0]{32})[\\da-f]{32}",P9o="(?![0]{16})[\\da-f]{16}",B9o="[\\da-f]{2}",k9o=new RegExp(`^\\s?(${R9o})-(${N9o})-(${P9o})-(${B9o})(-.*)?\\s?$`);function Qjr(t){let e=k9o.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}ty.parseTraceParent=Qjr;var G4t=class{inject(e,r,o){let s=rRe.trace.getSpanContext(e);if(!s||(0,I9o.isTracingSuppressed)(e)||!(0,rRe.isSpanContextValid)(s))return;let a=`${O9o}-${s.traceId}-${s.spanId}-0${Number(s.traceFlags||rRe.TraceFlags.NONE).toString(16)}`;o.set(r,ty.TRACE_PARENT_HEADER,a),s.traceState&&o.set(r,ty.TRACE_STATE_HEADER,s.traceState.serialize())}extract(e,r,o){let s=o.get(r,ty.TRACE_PARENT_HEADER);if(!s)return e;let a=Array.isArray(s)?s[0]:s;if(typeof a!="string")return e;let i=Qjr(a);if(!i)return e;i.isRemote=!0;let n=o.get(r,ty.TRACE_STATE_HEADER);if(n){let c=Array.isArray(n)?n.join(","):n;i.traceState=new D9o.TraceState(typeof c=="string"?c:void 0)}return rRe.trace.setSpanContext(e,i)}fields(){return[ty.TRACE_PARENT_HEADER,ty.TRACE_STATE_HEADER]}};ty.W3CTraceContextPropagator=G4t});var Hjr=E(j4=>{"use strict";Object.defineProperty(j4,"__esModule",{value:!0});j4.getRPCMetadata=j4.deleteRPCMetadata=j4.setRPCMetadata=j4.RPCType=void 0;var M9o=(ut(),nt(xt)),j4t=(0,M9o.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),L9o;(function(t){t.HTTP="http"})(L9o=j4.RPCType||(j4.RPCType={}));function U9o(t,e){return t.setValue(j4t,e)}j4.setRPCMetadata=U9o;function F9o(t){return t.deleteValue(j4t)}j4.deleteRPCMetadata=F9o;function Q9o(t){return t.getValue(j4t)}j4.getRPCMetadata=Q9o});var Wjr=E(nRe=>{"use strict";Object.defineProperty(nRe,"__esModule",{value:!0});nRe.isPlainObject=void 0;var q9o="[object Object]",H9o="[object Null]",V9o="[object Undefined]",G9o=Function.prototype,Vjr=G9o.toString,j9o=Vjr.call(Object),$9o=Object.getPrototypeOf,Gjr=Object.prototype,jjr=Gjr.hasOwnProperty,aV=Symbol?Symbol.toStringTag:void 0,$jr=Gjr.toString;function W9o(t){if(!z9o(t)||K9o(t)!==q9o)return!1;let e=$9o(t);if(e===null)return!0;let r=jjr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Vjr.call(r)===j9o}nRe.isPlainObject=W9o;function z9o(t){return t!=null&&typeof t=="object"}function K9o(t){return t==null?t===void 0?V9o:H9o:aV&&aV in Object(t)?Y9o(t):J9o(t)}function Y9o(t){let e=jjr.call(t,aV),r=t[aV],o=!1;try{t[aV]=void 0,o=!0}catch{}let s=$jr.call(t);return o&&(e?t[aV]=r:delete t[aV]),s}function J9o(t){return $jr.call(t)}});var Xjr=E(sRe=>{"use strict";Object.defineProperty(sRe,"__esModule",{value:!0});sRe.merge=void 0;var zjr=Wjr(),X9o=20;function Z9o(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=Yjr(e,t.shift(),0,r);return e}sRe.merge=Z9o;function $4t(t){return oRe(t)?t.slice():t}function Yjr(t,e,r=0,o){let s;if(!(r>X9o)){if(r++,iRe(t)||iRe(e)||Jjr(e))s=$4t(e);else if(oRe(t)){if(s=t.slice(),oRe(e))for(let a=0,i=e.length;a<i;a++)s.push($4t(e[a]));else if(h2e(e)){let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i];s[c]=$4t(e[c])}}}else if(h2e(t))if(h2e(e)){if(!e7o(t,e))return e;s=Object.assign({},t);let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i],u=e[c];if(iRe(u))typeof u>"u"?delete s[c]:s[c]=u;else{let f=s[c],d=u;if(Kjr(t,c,o)||Kjr(e,c,o))delete s[c];else{if(h2e(f)&&h2e(d)){let p=o.get(f)||[],h=o.get(d)||[];p.push({obj:t,key:c}),h.push({obj:e,key:c}),o.set(f,p),o.set(d,h)}s[c]=Yjr(s[c],u,r,o)}}}}else s=e;return s}}function Kjr(t,e,r){let o=r.get(t[e])||[];for(let s=0,a=o.length;s<a;s++){let i=o[s];if(i.key===e&&i.obj===t)return!0}return!1}function oRe(t){return Array.isArray(t)}function Jjr(t){return typeof t=="function"}function h2e(t){return!iRe(t)&&!oRe(t)&&!Jjr(t)&&typeof t=="object"}function iRe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function e7o(t,e){return!(!(0,zjr.isPlainObject)(t)||!(0,zjr.isPlainObject)(e))}});var Zjr=E(pte=>{"use strict";Object.defineProperty(pte,"__esModule",{value:!0});pte.callWithTimeout=pte.TimeoutError=void 0;var aRe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};pte.TimeoutError=aRe;function t7o(t,e){let r,o=new Promise(function(a,i){r=setTimeout(function(){i(new aRe("Operation timed out."))},e)});return Promise.race([t,o]).then(s=>(clearTimeout(r),s),s=>{throw clearTimeout(r),s})}pte.callWithTimeout=t7o});var t$r=E(hte=>{"use strict";Object.defineProperty(hte,"__esModule",{value:!0});hte.isUrlIgnored=hte.urlMatches=void 0;function e$r(t,e){return typeof e=="string"?t===e:!!t.match(e)}hte.urlMatches=e$r;function r7o(t,e){if(!e)return!1;for(let r of e)if(e$r(t,r))return!0;return!1}hte.isUrlIgnored=r7o});var r$r=E(cRe=>{"use strict";Object.defineProperty(cRe,"__esModule",{value:!0});cRe.Deferred=void 0;var W4t=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};cRe.Deferred=W4t});var n$r=E(lRe=>{"use strict";Object.defineProperty(lRe,"__esModule",{value:!0});lRe.BindOnceFuture=void 0;var n7o=r$r(),z4t=class{_callback;_that;_isCalled=!1;_deferred=new n7o.Deferred;constructor(e,r){this._callback=e,this._that=r}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(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};lRe.BindOnceFuture=z4t});var o$r=E(uRe=>{"use strict";Object.defineProperty(uRe,"__esModule",{value:!0});uRe.diagLogLevelFromString=void 0;var nO=(ut(),nt(xt)),i$r={ALL:nO.DiagLogLevel.ALL,VERBOSE:nO.DiagLogLevel.VERBOSE,DEBUG:nO.DiagLogLevel.DEBUG,INFO:nO.DiagLogLevel.INFO,WARN:nO.DiagLogLevel.WARN,ERROR:nO.DiagLogLevel.ERROR,NONE:nO.DiagLogLevel.NONE};function i7o(t){if(t==null)return;let e=i$r[t.toUpperCase()];return e??(nO.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(i$r)}, using default`),nO.DiagLogLevel.INFO)}uRe.diagLogLevelFromString=i7o});var a$r=E(fRe=>{"use strict";Object.defineProperty(fRe,"__esModule",{value:!0});fRe._export=void 0;var s$r=(ut(),nt(xt)),o7o=f2e();function s7o(t,e){return new Promise(r=>{s$r.context.with((0,o7o.suppressTracing)(s$r.context.active()),()=>{t.export(e,o=>{r(o)})})})}fRe._export=s7o});var cV=E(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.internal=cn.diagLogLevelFromString=cn.BindOnceFuture=cn.urlMatches=cn.isUrlIgnored=cn.callWithTimeout=cn.TimeoutError=cn.merge=cn.TraceState=cn.unsuppressTracing=cn.suppressTracing=cn.isTracingSuppressed=cn.setRPCMetadata=cn.getRPCMetadata=cn.deleteRPCMetadata=cn.RPCType=cn.parseTraceParent=cn.W3CTraceContextPropagator=cn.TRACE_STATE_HEADER=cn.TRACE_PARENT_HEADER=cn.CompositePropagator=cn.unrefTimer=cn.otperformance=cn.getStringListFromEnv=cn.getNumberFromEnv=cn.getBooleanFromEnv=cn.getStringFromEnv=cn._globalThis=cn.SDK_INFO=cn.parseKeyPairsIntoRecord=cn.ExportResultCode=cn.timeInputToHrTime=cn.millisToHrTime=cn.isTimeInputHrTime=cn.isTimeInput=cn.hrTimeToTimeStamp=cn.hrTimeToNanoseconds=cn.hrTimeToMilliseconds=cn.hrTimeToMicroseconds=cn.hrTimeDuration=cn.hrTime=cn.getTimeOrigin=cn.addHrTimes=cn.loggingErrorHandler=cn.setGlobalErrorHandler=cn.globalErrorHandler=cn.sanitizeAttributes=cn.isAttributeValue=cn.AnchoredClock=cn.W3CBaggagePropagator=void 0;var a7o=cjr();Object.defineProperty(cn,"W3CBaggagePropagator",{enumerable:!0,get:function(){return a7o.W3CBaggagePropagator}});var c7o=ljr();Object.defineProperty(cn,"AnchoredClock",{enumerable:!0,get:function(){return c7o.AnchoredClock}});var c$r=hjr();Object.defineProperty(cn,"isAttributeValue",{enumerable:!0,get:function(){return c$r.isAttributeValue}});Object.defineProperty(cn,"sanitizeAttributes",{enumerable:!0,get:function(){return c$r.sanitizeAttributes}});var l$r=gjr();Object.defineProperty(cn,"globalErrorHandler",{enumerable:!0,get:function(){return l$r.globalErrorHandler}});Object.defineProperty(cn,"setGlobalErrorHandler",{enumerable:!0,get:function(){return l$r.setGlobalErrorHandler}});var l7o=k4t();Object.defineProperty(cn,"loggingErrorHandler",{enumerable:!0,get:function(){return l7o.loggingErrorHandler}});var Yx=Rjr();Object.defineProperty(cn,"addHrTimes",{enumerable:!0,get:function(){return Yx.addHrTimes}});Object.defineProperty(cn,"getTimeOrigin",{enumerable:!0,get:function(){return Yx.getTimeOrigin}});Object.defineProperty(cn,"hrTime",{enumerable:!0,get:function(){return Yx.hrTime}});Object.defineProperty(cn,"hrTimeDuration",{enumerable:!0,get:function(){return Yx.hrTimeDuration}});Object.defineProperty(cn,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Yx.hrTimeToMicroseconds}});Object.defineProperty(cn,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Yx.hrTimeToMilliseconds}});Object.defineProperty(cn,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Yx.hrTimeToNanoseconds}});Object.defineProperty(cn,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Yx.hrTimeToTimeStamp}});Object.defineProperty(cn,"isTimeInput",{enumerable:!0,get:function(){return Yx.isTimeInput}});Object.defineProperty(cn,"isTimeInputHrTime",{enumerable:!0,get:function(){return Yx.isTimeInputHrTime}});Object.defineProperty(cn,"millisToHrTime",{enumerable:!0,get:function(){return Yx.millisToHrTime}});Object.defineProperty(cn,"timeInputToHrTime",{enumerable:!0,get:function(){return Yx.timeInputToHrTime}});var u7o=Njr();Object.defineProperty(cn,"ExportResultCode",{enumerable:!0,get:function(){return u7o.ExportResultCode}});var f7o=O4t();Object.defineProperty(cn,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return f7o.parseKeyPairsIntoRecord}});var _k=M4t();Object.defineProperty(cn,"SDK_INFO",{enumerable:!0,get:function(){return _k.SDK_INFO}});Object.defineProperty(cn,"_globalThis",{enumerable:!0,get:function(){return _k._globalThis}});Object.defineProperty(cn,"getStringFromEnv",{enumerable:!0,get:function(){return _k.getStringFromEnv}});Object.defineProperty(cn,"getBooleanFromEnv",{enumerable:!0,get:function(){return _k.getBooleanFromEnv}});Object.defineProperty(cn,"getNumberFromEnv",{enumerable:!0,get:function(){return _k.getNumberFromEnv}});Object.defineProperty(cn,"getStringListFromEnv",{enumerable:!0,get:function(){return _k.getStringListFromEnv}});Object.defineProperty(cn,"otperformance",{enumerable:!0,get:function(){return _k.otperformance}});Object.defineProperty(cn,"unrefTimer",{enumerable:!0,get:function(){return _k.unrefTimer}});var d7o=Bjr();Object.defineProperty(cn,"CompositePropagator",{enumerable:!0,get:function(){return d7o.CompositePropagator}});var dRe=qjr();Object.defineProperty(cn,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return dRe.TRACE_PARENT_HEADER}});Object.defineProperty(cn,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return dRe.TRACE_STATE_HEADER}});Object.defineProperty(cn,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return dRe.W3CTraceContextPropagator}});Object.defineProperty(cn,"parseTraceParent",{enumerable:!0,get:function(){return dRe.parseTraceParent}});var pRe=Hjr();Object.defineProperty(cn,"RPCType",{enumerable:!0,get:function(){return pRe.RPCType}});Object.defineProperty(cn,"deleteRPCMetadata",{enumerable:!0,get:function(){return pRe.deleteRPCMetadata}});Object.defineProperty(cn,"getRPCMetadata",{enumerable:!0,get:function(){return pRe.getRPCMetadata}});Object.defineProperty(cn,"setRPCMetadata",{enumerable:!0,get:function(){return pRe.setRPCMetadata}});var K4t=f2e();Object.defineProperty(cn,"isTracingSuppressed",{enumerable:!0,get:function(){return K4t.isTracingSuppressed}});Object.defineProperty(cn,"suppressTracing",{enumerable:!0,get:function(){return K4t.suppressTracing}});Object.defineProperty(cn,"unsuppressTracing",{enumerable:!0,get:function(){return K4t.unsuppressTracing}});var p7o=V4t();Object.defineProperty(cn,"TraceState",{enumerable:!0,get:function(){return p7o.TraceState}});var h7o=Xjr();Object.defineProperty(cn,"merge",{enumerable:!0,get:function(){return h7o.merge}});var u$r=Zjr();Object.defineProperty(cn,"TimeoutError",{enumerable:!0,get:function(){return u$r.TimeoutError}});Object.defineProperty(cn,"callWithTimeout",{enumerable:!0,get:function(){return u$r.callWithTimeout}});var f$r=t$r();Object.defineProperty(cn,"isUrlIgnored",{enumerable:!0,get:function(){return f$r.isUrlIgnored}});Object.defineProperty(cn,"urlMatches",{enumerable:!0,get:function(){return f$r.urlMatches}});var m7o=n$r();Object.defineProperty(cn,"BindOnceFuture",{enumerable:!0,get:function(){return m7o.BindOnceFuture}});var g7o=o$r();Object.defineProperty(cn,"diagLogLevelFromString",{enumerable:!0,get:function(){return g7o.diagLogLevelFromString}});var y7o=a$r();cn.internal={_export:y7o._export}});var d$r=E(gte=>{"use strict";Object.defineProperty(gte,"__esModule",{value:!0});gte.LastValueAggregator=gte.LastValueAccumulation=void 0;var A7o=nte(),m2e=cV(),v7o=bk(),mte=class{startTime;_current;sampleTime;constructor(e,r=0,o=[0,0]){this.startTime=e,this._current=r,this.sampleTime=o}record(e){this._current=e,this.sampleTime=(0,m2e.millisToHrTime)(Date.now())}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};gte.LastValueAccumulation=mte;var Y4t=class{kind=A7o.AggregatorKind.LAST_VALUE;createAccumulation(e){return new mte(e)}merge(e,r){let o=(0,m2e.hrTimeToMicroseconds)(r.sampleTime)>=(0,m2e.hrTimeToMicroseconds)(e.sampleTime)?r:e;return new mte(e.startTime,o.toPointValue(),o.sampleTime)}diff(e,r){let o=(0,m2e.hrTimeToMicroseconds)(r.sampleTime)>=(0,m2e.hrTimeToMicroseconds)(e.sampleTime)?r:e;return new mte(r.startTime,o.toPointValue(),o.sampleTime)}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:v7o.DataPointType.GAUGE,dataPoints:o.map(([a,i])=>({attributes:a,startTime:i.startTime,endTime:s,value:i.toPointValue()}))}}};gte.LastValueAggregator=Y4t});var p$r=E(yte=>{"use strict";Object.defineProperty(yte,"__esModule",{value:!0});yte.SumAggregator=yte.SumAccumulation=void 0;var b7o=nte(),E7o=bk(),Ck=class{startTime;monotonic;_current;reset;constructor(e,r,o=0,s=!1){this.startTime=e,this.monotonic=r,this._current=o,this.reset=s}record(e){this.monotonic&&e<0||(this._current+=e)}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};yte.SumAccumulation=Ck;var J4t=class{monotonic;kind=b7o.AggregatorKind.SUM;constructor(e){this.monotonic=e}createAccumulation(e){return new Ck(e,this.monotonic)}merge(e,r){let o=e.toPointValue(),s=r.toPointValue();return r.reset?new Ck(r.startTime,this.monotonic,s,r.reset):new Ck(e.startTime,this.monotonic,o+s)}diff(e,r){let o=e.toPointValue(),s=r.toPointValue();return this.monotonic&&o>s?new Ck(r.startTime,this.monotonic,s,!0):new Ck(r.startTime,this.monotonic,s-o)}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:E7o.DataPointType.SUM,dataPoints:o.map(([a,i])=>({attributes:a,startTime:i.startTime,endTime:s,value:i.toPointValue()})),isMonotonic:this.monotonic}}};yte.SumAggregator=J4t});var A$r=E(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.SumAggregator=xm.SumAccumulation=xm.LastValueAggregator=xm.LastValueAccumulation=xm.ExponentialHistogramAggregator=xm.ExponentialHistogramAccumulation=xm.HistogramAggregator=xm.HistogramAccumulation=xm.DropAggregator=void 0;var S7o=WGr();Object.defineProperty(xm,"DropAggregator",{enumerable:!0,get:function(){return S7o.DropAggregator}});var h$r=zGr();Object.defineProperty(xm,"HistogramAccumulation",{enumerable:!0,get:function(){return h$r.HistogramAccumulation}});Object.defineProperty(xm,"HistogramAggregator",{enumerable:!0,get:function(){return h$r.HistogramAggregator}});var m$r=sjr();Object.defineProperty(xm,"ExponentialHistogramAccumulation",{enumerable:!0,get:function(){return m$r.ExponentialHistogramAccumulation}});Object.defineProperty(xm,"ExponentialHistogramAggregator",{enumerable:!0,get:function(){return m$r.ExponentialHistogramAggregator}});var g$r=d$r();Object.defineProperty(xm,"LastValueAccumulation",{enumerable:!0,get:function(){return g$r.LastValueAccumulation}});Object.defineProperty(xm,"LastValueAggregator",{enumerable:!0,get:function(){return g$r.LastValueAggregator}});var y$r=p$r();Object.defineProperty(xm,"SumAccumulation",{enumerable:!0,get:function(){return y$r.SumAccumulation}});Object.defineProperty(xm,"SumAggregator",{enumerable:!0,get:function(){return y$r.SumAggregator}})});var v$r=E(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.DEFAULT_AGGREGATION=Dl.EXPONENTIAL_HISTOGRAM_AGGREGATION=Dl.HISTOGRAM_AGGREGATION=Dl.LAST_VALUE_AGGREGATION=Dl.SUM_AGGREGATION=Dl.DROP_AGGREGATION=Dl.DefaultAggregation=Dl.ExponentialHistogramAggregation=Dl.ExplicitBucketHistogramAggregation=Dl.HistogramAggregation=Dl.LastValueAggregation=Dl.SumAggregation=Dl.DropAggregation=void 0;var x7o=(ut(),nt(xt)),lV=A$r(),Z5=bk(),hRe=class t{static DEFAULT_INSTANCE=new lV.DropAggregator;createAggregator(e){return t.DEFAULT_INSTANCE}};Dl.DropAggregation=hRe;var mRe=class t{static MONOTONIC_INSTANCE=new lV.SumAggregator(!0);static NON_MONOTONIC_INSTANCE=new lV.SumAggregator(!1);createAggregator(e){switch(e.type){case Z5.InstrumentType.COUNTER:case Z5.InstrumentType.OBSERVABLE_COUNTER:case Z5.InstrumentType.HISTOGRAM:return t.MONOTONIC_INSTANCE;default:return t.NON_MONOTONIC_INSTANCE}}};Dl.SumAggregation=mRe;var gRe=class t{static DEFAULT_INSTANCE=new lV.LastValueAggregator;createAggregator(e){return t.DEFAULT_INSTANCE}};Dl.LastValueAggregation=gRe;var yRe=class t{static DEFAULT_INSTANCE=new lV.HistogramAggregator([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);createAggregator(e){return t.DEFAULT_INSTANCE}};Dl.HistogramAggregation=yRe;var ARe=class{_recordMinMax;_boundaries;constructor(e,r=!0){if(this._recordMinMax=r,e==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");e=e.concat(),e=e.sort((a,i)=>a-i);let o=e.lastIndexOf(-1/0),s=e.indexOf(1/0);s===-1&&(s=void 0),this._boundaries=e.slice(o+1,s)}createAggregator(e){return new lV.HistogramAggregator(this._boundaries,this._recordMinMax)}};Dl.ExplicitBucketHistogramAggregation=ARe;var vRe=class{_maxSize;_recordMinMax;constructor(e=160,r=!0){this._maxSize=e,this._recordMinMax=r}createAggregator(e){return new lV.ExponentialHistogramAggregator(this._maxSize,this._recordMinMax)}};Dl.ExponentialHistogramAggregation=vRe;var bRe=class{_resolve(e){switch(e.type){case Z5.InstrumentType.COUNTER:case Z5.InstrumentType.UP_DOWN_COUNTER:case Z5.InstrumentType.OBSERVABLE_COUNTER:case Z5.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return Dl.SUM_AGGREGATION;case Z5.InstrumentType.GAUGE:case Z5.InstrumentType.OBSERVABLE_GAUGE:return Dl.LAST_VALUE_AGGREGATION;case Z5.InstrumentType.HISTOGRAM:return e.advice.explicitBucketBoundaries?new ARe(e.advice.explicitBucketBoundaries):Dl.HISTOGRAM_AGGREGATION}return x7o.diag.warn(`Unable to recognize instrument type: ${e.type}`),Dl.DROP_AGGREGATION}createAggregator(e){return this._resolve(e).createAggregator(e)}};Dl.DefaultAggregation=bRe;Dl.DROP_AGGREGATION=new hRe;Dl.SUM_AGGREGATION=new mRe;Dl.LAST_VALUE_AGGREGATION=new gRe;Dl.HISTOGRAM_AGGREGATION=new yRe;Dl.EXPONENTIAL_HISTOGRAM_AGGREGATION=new vRe;Dl.DEFAULT_AGGREGATION=new bRe});var g2e=E(dV=>{"use strict";Object.defineProperty(dV,"__esModule",{value:!0});dV.toAggregation=dV.AggregationType=void 0;var uV=v$r(),fV;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.DROP=1]="DROP",t[t.SUM=2]="SUM",t[t.LAST_VALUE=3]="LAST_VALUE",t[t.EXPLICIT_BUCKET_HISTOGRAM=4]="EXPLICIT_BUCKET_HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=5]="EXPONENTIAL_HISTOGRAM"})(fV=dV.AggregationType||(dV.AggregationType={}));function _7o(t){switch(t.type){case fV.DEFAULT:return uV.DEFAULT_AGGREGATION;case fV.DROP:return uV.DROP_AGGREGATION;case fV.SUM:return uV.SUM_AGGREGATION;case fV.LAST_VALUE:return uV.LAST_VALUE_AGGREGATION;case fV.EXPONENTIAL_HISTOGRAM:{let e=t;return new uV.ExponentialHistogramAggregation(e.options?.maxSize,e.options?.recordMinMax)}case fV.EXPLICIT_BUCKET_HISTOGRAM:{let e=t;return e.options==null?uV.HISTOGRAM_AGGREGATION:new uV.ExplicitBucketHistogramAggregation(e.options?.boundaries,e.options?.recordMinMax)}default:throw new Error("Unsupported Aggregation")}}dV.toAggregation=_7o});var X4t=E(Ate=>{"use strict";Object.defineProperty(Ate,"__esModule",{value:!0});Ate.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=Ate.DEFAULT_AGGREGATION_SELECTOR=void 0;var C7o=ROe(),T7o=g2e(),w7o=t=>({type:T7o.AggregationType.DEFAULT});Ate.DEFAULT_AGGREGATION_SELECTOR=w7o;var I7o=t=>C7o.AggregationTemporality.CUMULATIVE;Ate.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=I7o});var e6t=E(SRe=>{"use strict";Object.defineProperty(SRe,"__esModule",{value:!0});SRe.MetricReader=void 0;var b$r=(ut(),nt(xt)),ERe=G4(),E$r=X4t(),Z4t=class{_shutdown=!1;_metricProducers;_sdkMetricProducer;_aggregationTemporalitySelector;_aggregationSelector;_cardinalitySelector;constructor(e){this._aggregationSelector=e?.aggregationSelector??E$r.DEFAULT_AGGREGATION_SELECTOR,this._aggregationTemporalitySelector=e?.aggregationTemporalitySelector??E$r.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR,this._metricProducers=e?.metricProducers??[],this._cardinalitySelector=e?.cardinalitySelector}setMetricProducer(e){if(this._sdkMetricProducer)throw new Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=e,this.onInitialized()}selectAggregation(e){return this._aggregationSelector(e)}selectAggregationTemporality(e){return this._aggregationTemporalitySelector(e)}selectCardinalityLimit(e){return this._cardinalitySelector?this._cardinalitySelector(e):2e3}onInitialized(){}async collect(e){if(this._sdkMetricProducer===void 0)throw new Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw new Error("MetricReader is shutdown");let[r,...o]=await Promise.all([this._sdkMetricProducer.collect({timeoutMillis:e?.timeoutMillis}),...this._metricProducers.map(n=>n.collect({timeoutMillis:e?.timeoutMillis}))]),s=r.errors.concat((0,ERe.FlatMap)(o,n=>n.errors)),a=r.resourceMetrics.resource,i=r.resourceMetrics.scopeMetrics.concat((0,ERe.FlatMap)(o,n=>n.resourceMetrics.scopeMetrics));return{resourceMetrics:{resource:a,scopeMetrics:i},errors:s}}async shutdown(e){if(this._shutdown){b$r.diag.error("Cannot call shutdown twice.");return}e?.timeoutMillis==null?await this.onShutdown():await(0,ERe.callWithTimeout)(this.onShutdown(),e.timeoutMillis),this._shutdown=!0}async forceFlush(e){if(this._shutdown){b$r.diag.warn("Cannot forceFlush on already shutdown MetricReader.");return}if(e?.timeoutMillis==null){await this.onForceFlush();return}await(0,ERe.callWithTimeout)(this.onForceFlush(),e.timeoutMillis)}};SRe.MetricReader=Z4t});var x$r=E(xRe=>{"use strict";Object.defineProperty(xRe,"__esModule",{value:!0});xRe.PeriodicExportingMetricReader=void 0;var t6t=(ut(),nt(xt)),y2e=cV(),D7o=e6t(),S$r=G4(),r6t=class extends D7o.MetricReader{_interval;_exporter;_exportInterval;_exportTimeout;constructor(e){if(super({aggregationSelector:e.exporter.selectAggregation?.bind(e.exporter),aggregationTemporalitySelector:e.exporter.selectAggregationTemporality?.bind(e.exporter),metricProducers:e.metricProducers}),e.exportIntervalMillis!==void 0&&e.exportIntervalMillis<=0)throw Error("exportIntervalMillis must be greater than 0");if(e.exportTimeoutMillis!==void 0&&e.exportTimeoutMillis<=0)throw Error("exportTimeoutMillis must be greater than 0");if(e.exportTimeoutMillis!==void 0&&e.exportIntervalMillis!==void 0&&e.exportIntervalMillis<e.exportTimeoutMillis)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");this._exportInterval=e.exportIntervalMillis??6e4,this._exportTimeout=e.exportTimeoutMillis??3e4,this._exporter=e.exporter}async _runOnce(){try{await(0,S$r.callWithTimeout)(this._doRun(),this._exportTimeout)}catch(e){if(e instanceof S$r.TimeoutError){t6t.diag.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout);return}(0,y2e.globalErrorHandler)(e)}}async _doRun(){let{resourceMetrics:e,errors:r}=await this.collect({timeoutMillis:this._exportTimeout});if(r.length>0&&t6t.diag.error("PeriodicExportingMetricReader: metrics collection errors",...r),e.resource.asyncAttributesPending)try{await e.resource.waitForAsyncAttributes?.()}catch(s){t6t.diag.debug("Error while resolving async portion of resource: ",s),(0,y2e.globalErrorHandler)(s)}if(e.scopeMetrics.length===0)return;let o=await y2e.internal._export(this._exporter,e);if(o.code!==y2e.ExportResultCode.SUCCESS)throw new Error(`PeriodicExportingMetricReader: metrics export failed (error ${o.error})`)}onInitialized(){this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),(0,y2e.unrefTimer)(this._interval)}async onForceFlush(){await this._runOnce(),await this._exporter.forceFlush()}async onShutdown(){this._interval&&clearInterval(this._interval),await this.onForceFlush(),await this._exporter.shutdown()}};xRe.PeriodicExportingMetricReader=r6t});var C$r=E(_Re=>{"use strict";Object.defineProperty(_Re,"__esModule",{value:!0});_Re.InMemoryMetricExporter=void 0;var _$r=cV(),n6t=class{_shutdown=!1;_aggregationTemporality;_metrics=[];constructor(e){this._aggregationTemporality=e}export(e,r){if(this._shutdown){setTimeout(()=>r({code:_$r.ExportResultCode.FAILED}),0);return}this._metrics.push(e),setTimeout(()=>r({code:_$r.ExportResultCode.SUCCESS}),0)}getMetrics(){return this._metrics}forceFlush(){return Promise.resolve()}reset(){this._metrics=[]}selectAggregationTemporality(e){return this._aggregationTemporality}shutdown(){return this._shutdown=!0,Promise.resolve()}};_Re.InMemoryMetricExporter=n6t});var w$r=E(CRe=>{"use strict";Object.defineProperty(CRe,"__esModule",{value:!0});CRe.ConsoleMetricExporter=void 0;var T$r=cV(),O7o=X4t(),i6t=class t{_shutdown=!1;_temporalitySelector;constructor(e){this._temporalitySelector=e?.temporalitySelector??O7o.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR}export(e,r){if(this._shutdown){setImmediate(r,{code:T$r.ExportResultCode.FAILED});return}return t._sendMetrics(e,r)}forceFlush(){return Promise.resolve()}selectAggregationTemporality(e){return this._temporalitySelector(e)}shutdown(){return this._shutdown=!0,Promise.resolve()}static _sendMetrics(e,r){for(let o of e.scopeMetrics)for(let s of o.metrics)console.dir({descriptor:s.descriptor,dataPointType:s.dataPointType,dataPoints:s.dataPoints},{depth:null});r({code:T$r.ExportResultCode.SUCCESS})}};CRe.ConsoleMetricExporter=i6t});var A2e=E(Tk=>{"use strict";Object.defineProperty(Tk,"__esModule",{value:!0});Tk.isTracingSuppressed=Tk.unsuppressTracing=Tk.suppressTracing=void 0;var R7o=(ut(),nt(xt)),o6t=(0,R7o.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function N7o(t){return t.setValue(o6t,!0)}Tk.suppressTracing=N7o;function P7o(t){return t.deleteValue(o6t)}Tk.unsuppressTracing=P7o;function B7o(t){return t.getValue(o6t)===!0}Tk.isTracingSuppressed=B7o});var s6t=E(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});ry.BAGGAGE_MAX_TOTAL_LENGTH=ry.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=ry.BAGGAGE_MAX_NAME_VALUE_PAIRS=ry.BAGGAGE_HEADER=ry.BAGGAGE_ITEMS_SEPARATOR=ry.BAGGAGE_PROPERTIES_SEPARATOR=ry.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;ry.BAGGAGE_KEY_PAIR_SEPARATOR="=";ry.BAGGAGE_PROPERTIES_SEPARATOR=";";ry.BAGGAGE_ITEMS_SEPARATOR=",";ry.BAGGAGE_HEADER="baggage";ry.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;ry.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;ry.BAGGAGE_MAX_TOTAL_LENGTH=8192});var a6t=E(eI=>{"use strict";Object.defineProperty(eI,"__esModule",{value:!0});eI.parseKeyPairsIntoRecord=eI.parsePairKeyValue=eI.getKeyPairs=eI.serializeKeyPairs=void 0;var k7o=(ut(),nt(xt)),pV=s6t();function M7o(t){return t.reduce((e,r)=>{let o=`${e}${e!==""?pV.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return o.length>pV.BAGGAGE_MAX_TOTAL_LENGTH?e:o},"")}eI.serializeKeyPairs=M7o;function L7o(t){return t.getAllEntries().map(([e,r])=>{let o=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(o+=pV.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),o})}eI.getKeyPairs=L7o;function I$r(t){let e=t.split(pV.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let o=r.indexOf(pV.BAGGAGE_KEY_PAIR_SEPARATOR);if(o<=0)return;let s=decodeURIComponent(r.substring(0,o).trim()),a=decodeURIComponent(r.substring(o+1).trim()),i;return e.length>0&&(i=(0,k7o.baggageEntryMetadataFromString)(e.join(pV.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:a,metadata:i}}eI.parsePairKeyValue=I$r;function U7o(t){let e={};return typeof t=="string"&&t.length>0&&t.split(pV.BAGGAGE_ITEMS_SEPARATOR).forEach(r=>{let o=I$r(r);o!==void 0&&o.value.length>0&&(e[o.key]=o.value)}),e}eI.parseKeyPairsIntoRecord=U7o});var D$r=E(TRe=>{"use strict";Object.defineProperty(TRe,"__esModule",{value:!0});TRe.W3CBaggagePropagator=void 0;var c6t=(ut(),nt(xt)),F7o=A2e(),hV=s6t(),l6t=a6t(),u6t=class{inject(e,r,o){let s=c6t.propagation.getBaggage(e);if(!s||(0,F7o.isTracingSuppressed)(e))return;let a=(0,l6t.getKeyPairs)(s).filter(n=>n.length<=hV.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,hV.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,l6t.serializeKeyPairs)(a);i.length>0&&o.set(r,hV.BAGGAGE_HEADER,i)}extract(e,r,o){let s=o.get(r,hV.BAGGAGE_HEADER),a=Array.isArray(s)?s.join(hV.BAGGAGE_ITEMS_SEPARATOR):s;if(!a)return e;let i={};return a.length===0||(a.split(hV.BAGGAGE_ITEMS_SEPARATOR).forEach(c=>{let u=(0,l6t.parsePairKeyValue)(c);if(u){let f={value:u.value};u.metadata&&(f.metadata=u.metadata),i[u.key]=f}}),Object.entries(i).length===0)?e:c6t.propagation.setBaggage(e,c6t.propagation.createBaggage(i))}fields(){return[hV.BAGGAGE_HEADER]}};TRe.W3CBaggagePropagator=u6t});var O$r=E(wRe=>{"use strict";Object.defineProperty(wRe,"__esModule",{value:!0});wRe.AnchoredClock=void 0;var f6t=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,r){this._monotonicClock=r,this._epochMillis=e.now(),this._performanceMillis=r.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};wRe.AnchoredClock=f6t});var k$r=E(wk=>{"use strict";Object.defineProperty(wk,"__esModule",{value:!0});wk.isAttributeValue=wk.isAttributeKey=wk.sanitizeAttributes=void 0;var R$r=(ut(),nt(xt));function Q7o(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,o]of Object.entries(t)){if(!N$r(r)){R$r.diag.warn(`Invalid attribute key: ${r}`);continue}if(!P$r(o)){R$r.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(o)?e[r]=o.slice():e[r]=o}return e}wk.sanitizeAttributes=Q7o;function N$r(t){return typeof t=="string"&&t.length>0}wk.isAttributeKey=N$r;function P$r(t){return t==null?!0:Array.isArray(t)?q7o(t):B$r(t)}wk.isAttributeValue=P$r;function q7o(t){let e;for(let r of t)if(r!=null){if(!e){if(B$r(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function B$r(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var d6t=E(IRe=>{"use strict";Object.defineProperty(IRe,"__esModule",{value:!0});IRe.loggingErrorHandler=void 0;var H7o=(ut(),nt(xt));function V7o(){return t=>{H7o.diag.error(G7o(t))}}IRe.loggingErrorHandler=V7o;function G7o(t){return typeof t=="string"?t:JSON.stringify(j7o(t))}function j7o(t){let e={},r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(o=>{if(e[o])return;let s=r[o];s&&(e[o]=String(s))}),r=Object.getPrototypeOf(r);return e}});var L$r=E(vte=>{"use strict";Object.defineProperty(vte,"__esModule",{value:!0});vte.globalErrorHandler=vte.setGlobalErrorHandler=void 0;var $7o=d6t(),M$r=(0,$7o.loggingErrorHandler)();function W7o(t){M$r=t}vte.setGlobalErrorHandler=W7o;function z7o(t){try{M$r(t)}catch{}}vte.globalErrorHandler=z7o});var q$r=E(tI=>{"use strict";Object.defineProperty(tI,"__esModule",{value:!0});tI.getStringListFromEnv=tI.getBooleanFromEnv=tI.getStringFromEnv=tI.getNumberFromEnv=void 0;var U$r=(ut(),nt(xt)),F$r=me("util");function K7o(t){let e=process.env[t];if(e==null||e.trim()==="")return;let r=Number(e);if(isNaN(r)){U$r.diag.warn(`Unknown value ${(0,F$r.inspect)(e)} for ${t}, expected a number, using defaults`);return}return r}tI.getNumberFromEnv=K7o;function Q$r(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}tI.getStringFromEnv=Q$r;function Y7o(t){let e=process.env[t]?.trim().toLowerCase();return e==null||e===""?!1:e==="true"?!0:(e==="false"||U$r.diag.warn(`Unknown value ${(0,F$r.inspect)(e)} for ${t}, expected 'true' or 'false', falling back to 'false' (default)`),!1)}tI.getBooleanFromEnv=Y7o;function J7o(t){return Q$r(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}tI.getStringListFromEnv=J7o});var H$r=E(DRe=>{"use strict";Object.defineProperty(DRe,"__esModule",{value:!0});DRe._globalThis=void 0;DRe._globalThis=typeof globalThis=="object"?globalThis:global});var V$r=E(ORe=>{"use strict";Object.defineProperty(ORe,"__esModule",{value:!0});ORe.otperformance=void 0;var X7o=me("perf_hooks");ORe.otperformance=X7o.performance});var G$r=E(RRe=>{"use strict";Object.defineProperty(RRe,"__esModule",{value:!0});RRe.VERSION=void 0;RRe.VERSION="2.1.0"});var j$r=E(NRe=>{"use strict";Object.defineProperty(NRe,"__esModule",{value:!0});NRe.ATTR_PROCESS_RUNTIME_NAME=void 0;NRe.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var $$r=E(BRe=>{"use strict";Object.defineProperty(BRe,"__esModule",{value:!0});BRe.SDK_INFO=void 0;var Z7o=G$r(),PRe=(Wl(),nt(Uu)),eOo=j$r();BRe.SDK_INFO={[PRe.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[eOo.ATTR_PROCESS_RUNTIME_NAME]:"node",[PRe.ATTR_TELEMETRY_SDK_LANGUAGE]:PRe.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[PRe.ATTR_TELEMETRY_SDK_VERSION]:Z7o.VERSION}});var W$r=E(kRe=>{"use strict";Object.defineProperty(kRe,"__esModule",{value:!0});kRe.unrefTimer=void 0;function tOo(t){t.unref()}kRe.unrefTimer=tOo});var z$r=E(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.unrefTimer=a0.SDK_INFO=a0.otperformance=a0._globalThis=a0.getStringListFromEnv=a0.getNumberFromEnv=a0.getBooleanFromEnv=a0.getStringFromEnv=void 0;var MRe=q$r();Object.defineProperty(a0,"getStringFromEnv",{enumerable:!0,get:function(){return MRe.getStringFromEnv}});Object.defineProperty(a0,"getBooleanFromEnv",{enumerable:!0,get:function(){return MRe.getBooleanFromEnv}});Object.defineProperty(a0,"getNumberFromEnv",{enumerable:!0,get:function(){return MRe.getNumberFromEnv}});Object.defineProperty(a0,"getStringListFromEnv",{enumerable:!0,get:function(){return MRe.getStringListFromEnv}});var rOo=H$r();Object.defineProperty(a0,"_globalThis",{enumerable:!0,get:function(){return rOo._globalThis}});var nOo=V$r();Object.defineProperty(a0,"otperformance",{enumerable:!0,get:function(){return nOo.otperformance}});var iOo=$$r();Object.defineProperty(a0,"SDK_INFO",{enumerable:!0,get:function(){return iOo.SDK_INFO}});var oOo=W$r();Object.defineProperty(a0,"unrefTimer",{enumerable:!0,get:function(){return oOo.unrefTimer}})});var p6t=E(c0=>{"use strict";Object.defineProperty(c0,"__esModule",{value:!0});c0.getStringListFromEnv=c0.getNumberFromEnv=c0.getStringFromEnv=c0.getBooleanFromEnv=c0.unrefTimer=c0.otperformance=c0._globalThis=c0.SDK_INFO=void 0;var Ik=z$r();Object.defineProperty(c0,"SDK_INFO",{enumerable:!0,get:function(){return Ik.SDK_INFO}});Object.defineProperty(c0,"_globalThis",{enumerable:!0,get:function(){return Ik._globalThis}});Object.defineProperty(c0,"otperformance",{enumerable:!0,get:function(){return Ik.otperformance}});Object.defineProperty(c0,"unrefTimer",{enumerable:!0,get:function(){return Ik.unrefTimer}});Object.defineProperty(c0,"getBooleanFromEnv",{enumerable:!0,get:function(){return Ik.getBooleanFromEnv}});Object.defineProperty(c0,"getStringFromEnv",{enumerable:!0,get:function(){return Ik.getStringFromEnv}});Object.defineProperty(c0,"getNumberFromEnv",{enumerable:!0,get:function(){return Ik.getNumberFromEnv}});Object.defineProperty(c0,"getStringListFromEnv",{enumerable:!0,get:function(){return Ik.getStringListFromEnv}})});var X$r=E(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.addHrTimes=Nf.isTimeInput=Nf.isTimeInputHrTime=Nf.hrTimeToMicroseconds=Nf.hrTimeToMilliseconds=Nf.hrTimeToNanoseconds=Nf.hrTimeToTimeStamp=Nf.hrTimeDuration=Nf.timeInputToHrTime=Nf.hrTime=Nf.getTimeOrigin=Nf.millisToHrTime=void 0;var h6t=p6t(),K$r=9,sOo=6,aOo=Math.pow(10,sOo),LRe=Math.pow(10,K$r);function v2e(t){let e=t/1e3,r=Math.trunc(e),o=Math.round(t%1e3*aOo);return[r,o]}Nf.millisToHrTime=v2e;function m6t(){let t=h6t.otperformance.timeOrigin;if(typeof t!="number"){let e=h6t.otperformance;t=e.timing&&e.timing.fetchStart}return t}Nf.getTimeOrigin=m6t;function Y$r(t){let e=v2e(m6t()),r=v2e(typeof t=="number"?t:h6t.otperformance.now());return J$r(e,r)}Nf.hrTime=Y$r;function cOo(t){if(g6t(t))return t;if(typeof t=="number")return t<m6t()?Y$r(t):v2e(t);if(t instanceof Date)return v2e(t.getTime());throw TypeError("Invalid input type")}Nf.timeInputToHrTime=cOo;function lOo(t,e){let r=e[0]-t[0],o=e[1]-t[1];return o<0&&(r-=1,o+=LRe),[r,o]}Nf.hrTimeDuration=lOo;function uOo(t){let e=K$r,r=`${"0".repeat(e)}${t[1]}Z`,o=r.substring(r.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",o)}Nf.hrTimeToTimeStamp=uOo;function fOo(t){return t[0]*LRe+t[1]}Nf.hrTimeToNanoseconds=fOo;function dOo(t){return t[0]*1e3+t[1]/1e6}Nf.hrTimeToMilliseconds=dOo;function pOo(t){return t[0]*1e6+t[1]/1e3}Nf.hrTimeToMicroseconds=pOo;function g6t(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}Nf.isTimeInputHrTime=g6t;function hOo(t){return g6t(t)||typeof t=="number"||t instanceof Date}Nf.isTimeInput=hOo;function J$r(t,e){let r=[t[0]+e[0],t[1]+e[1]];return r[1]>=LRe&&(r[1]-=LRe,r[0]+=1),r}Nf.addHrTimes=J$r});var Z$r=E(b2e=>{"use strict";Object.defineProperty(b2e,"__esModule",{value:!0});b2e.ExportResultCode=void 0;var mOo;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(mOo=b2e.ExportResultCode||(b2e.ExportResultCode={}))});var tWr=E(URe=>{"use strict";Object.defineProperty(URe,"__esModule",{value:!0});URe.CompositePropagator=void 0;var eWr=(ut(),nt(xt)),y6t=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,o)=>r.concat(o),[])))}inject(e,r,o){for(let s of this._propagators)try{s.inject(e,r,o)}catch(a){eWr.diag.warn(`Failed to inject with ${s.constructor.name}. Err: ${a.message}`)}}extract(e,r,o){return this._propagators.reduce((s,a)=>{try{return a.extract(s,r,o)}catch(i){eWr.diag.warn(`Failed to extract with ${a.constructor.name}. Err: ${i.message}`)}return s},e)}fields(){return this._fields.slice()}};URe.CompositePropagator=y6t});var rWr=E(bte=>{"use strict";Object.defineProperty(bte,"__esModule",{value:!0});bte.validateValue=bte.validateKey=void 0;var A6t="[_0-9a-z-*/]",gOo=`[a-z]${A6t}{0,255}`,yOo=`[a-z0-9]${A6t}{0,240}@[a-z]${A6t}{0,13}`,AOo=new RegExp(`^(?:${gOo}|${yOo})$`),vOo=/^[ -~]{0,255}[!-~]$/,bOo=/,|=/;function EOo(t){return AOo.test(t)}bte.validateKey=EOo;function SOo(t){return vOo.test(t)&&!bOo.test(t)}bte.validateValue=SOo});var b6t=E(FRe=>{"use strict";Object.defineProperty(FRe,"__esModule",{value:!0});FRe.TraceState=void 0;var nWr=rWr(),iWr=32,xOo=512,oWr=",",sWr="=",v6t=class t{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,r){let o=this._clone();return o._internalState.has(e)&&o._internalState.delete(e),o._internalState.set(e,r),o}unset(e){let r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+sWr+this.get(r)),e),[]).join(oWr)}_parse(e){e.length>xOo||(this._internalState=e.split(oWr).reverse().reduce((r,o)=>{let s=o.trim(),a=s.indexOf(sWr);if(a!==-1){let i=s.slice(0,a),n=s.slice(a+1,o.length);(0,nWr.validateKey)(i)&&(0,nWr.validateValue)(n)&&r.set(i,n)}return r},new Map),this._internalState.size>iWr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,iWr))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};FRe.TraceState=v6t});var cWr=E(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});ny.W3CTraceContextPropagator=ny.parseTraceParent=ny.TRACE_STATE_HEADER=ny.TRACE_PARENT_HEADER=void 0;var QRe=(ut(),nt(xt)),_Oo=A2e(),COo=b6t();ny.TRACE_PARENT_HEADER="traceparent";ny.TRACE_STATE_HEADER="tracestate";var TOo="00",wOo="(?!ff)[\\da-f]{2}",IOo="(?![0]{32})[\\da-f]{32}",DOo="(?![0]{16})[\\da-f]{16}",OOo="[\\da-f]{2}",ROo=new RegExp(`^\\s?(${wOo})-(${IOo})-(${DOo})-(${OOo})(-.*)?\\s?$`);function aWr(t){let e=ROo.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}ny.parseTraceParent=aWr;var E6t=class{inject(e,r,o){let s=QRe.trace.getSpanContext(e);if(!s||(0,_Oo.isTracingSuppressed)(e)||!(0,QRe.isSpanContextValid)(s))return;let a=`${TOo}-${s.traceId}-${s.spanId}-0${Number(s.traceFlags||QRe.TraceFlags.NONE).toString(16)}`;o.set(r,ny.TRACE_PARENT_HEADER,a),s.traceState&&o.set(r,ny.TRACE_STATE_HEADER,s.traceState.serialize())}extract(e,r,o){let s=o.get(r,ny.TRACE_PARENT_HEADER);if(!s)return e;let a=Array.isArray(s)?s[0]:s;if(typeof a!="string")return e;let i=aWr(a);if(!i)return e;i.isRemote=!0;let n=o.get(r,ny.TRACE_STATE_HEADER);if(n){let c=Array.isArray(n)?n.join(","):n;i.traceState=new COo.TraceState(typeof c=="string"?c:void 0)}return QRe.trace.setSpanContext(e,i)}fields(){return[ny.TRACE_PARENT_HEADER,ny.TRACE_STATE_HEADER]}};ny.W3CTraceContextPropagator=E6t});var lWr=E($4=>{"use strict";Object.defineProperty($4,"__esModule",{value:!0});$4.getRPCMetadata=$4.deleteRPCMetadata=$4.setRPCMetadata=$4.RPCType=void 0;var NOo=(ut(),nt(xt)),S6t=(0,NOo.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),POo;(function(t){t.HTTP="http"})(POo=$4.RPCType||($4.RPCType={}));function BOo(t,e){return t.setValue(S6t,e)}$4.setRPCMetadata=BOo;function kOo(t){return t.deleteValue(S6t)}$4.deleteRPCMetadata=kOo;function MOo(t){return t.getValue(S6t)}$4.getRPCMetadata=MOo});var hWr=E(qRe=>{"use strict";Object.defineProperty(qRe,"__esModule",{value:!0});qRe.isPlainObject=void 0;var LOo="[object Object]",UOo="[object Null]",FOo="[object Undefined]",QOo=Function.prototype,uWr=QOo.toString,qOo=uWr.call(Object),HOo=Object.getPrototypeOf,fWr=Object.prototype,dWr=fWr.hasOwnProperty,mV=Symbol?Symbol.toStringTag:void 0,pWr=fWr.toString;function VOo(t){if(!GOo(t)||jOo(t)!==LOo)return!1;let e=HOo(t);if(e===null)return!0;let r=dWr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&uWr.call(r)===qOo}qRe.isPlainObject=VOo;function GOo(t){return t!=null&&typeof t=="object"}function jOo(t){return t==null?t===void 0?FOo:UOo:mV&&mV in Object(t)?$Oo(t):WOo(t)}function $Oo(t){let e=dWr.call(t,mV),r=t[mV],o=!1;try{t[mV]=void 0,o=!0}catch{}let s=pWr.call(t);return o&&(e?t[mV]=r:delete t[mV]),s}function WOo(t){return pWr.call(t)}});var vWr=E(GRe=>{"use strict";Object.defineProperty(GRe,"__esModule",{value:!0});GRe.merge=void 0;var mWr=hWr(),zOo=20;function KOo(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=yWr(e,t.shift(),0,r);return e}GRe.merge=KOo;function x6t(t){return VRe(t)?t.slice():t}function yWr(t,e,r=0,o){let s;if(!(r>zOo)){if(r++,HRe(t)||HRe(e)||AWr(e))s=x6t(e);else if(VRe(t)){if(s=t.slice(),VRe(e))for(let a=0,i=e.length;a<i;a++)s.push(x6t(e[a]));else if(E2e(e)){let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i];s[c]=x6t(e[c])}}}else if(E2e(t))if(E2e(e)){if(!YOo(t,e))return e;s=Object.assign({},t);let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i],u=e[c];if(HRe(u))typeof u>"u"?delete s[c]:s[c]=u;else{let f=s[c],d=u;if(gWr(t,c,o)||gWr(e,c,o))delete s[c];else{if(E2e(f)&&E2e(d)){let p=o.get(f)||[],h=o.get(d)||[];p.push({obj:t,key:c}),h.push({obj:e,key:c}),o.set(f,p),o.set(d,h)}s[c]=yWr(s[c],u,r,o)}}}}else s=e;return s}}function gWr(t,e,r){let o=r.get(t[e])||[];for(let s=0,a=o.length;s<a;s++){let i=o[s];if(i.key===e&&i.obj===t)return!0}return!1}function VRe(t){return Array.isArray(t)}function AWr(t){return typeof t=="function"}function E2e(t){return!HRe(t)&&!VRe(t)&&!AWr(t)&&typeof t=="object"}function HRe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function YOo(t,e){return!(!(0,mWr.isPlainObject)(t)||!(0,mWr.isPlainObject)(e))}});var bWr=E(Ete=>{"use strict";Object.defineProperty(Ete,"__esModule",{value:!0});Ete.callWithTimeout=Ete.TimeoutError=void 0;var jRe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};Ete.TimeoutError=jRe;function JOo(t,e){let r,o=new Promise(function(a,i){r=setTimeout(function(){i(new jRe("Operation timed out."))},e)});return Promise.race([t,o]).then(s=>(clearTimeout(r),s),s=>{throw clearTimeout(r),s})}Ete.callWithTimeout=JOo});var SWr=E(Ste=>{"use strict";Object.defineProperty(Ste,"__esModule",{value:!0});Ste.isUrlIgnored=Ste.urlMatches=void 0;function EWr(t,e){return typeof e=="string"?t===e:!!t.match(e)}Ste.urlMatches=EWr;function XOo(t,e){if(!e)return!1;for(let r of e)if(EWr(t,r))return!0;return!1}Ste.isUrlIgnored=XOo});var xWr=E($Re=>{"use strict";Object.defineProperty($Re,"__esModule",{value:!0});$Re.Deferred=void 0;var _6t=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};$Re.Deferred=_6t});var _Wr=E(WRe=>{"use strict";Object.defineProperty(WRe,"__esModule",{value:!0});WRe.BindOnceFuture=void 0;var ZOo=xWr(),C6t=class{_callback;_that;_isCalled=!1;_deferred=new ZOo.Deferred;constructor(e,r){this._callback=e,this._that=r}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(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};WRe.BindOnceFuture=C6t});var TWr=E(zRe=>{"use strict";Object.defineProperty(zRe,"__esModule",{value:!0});zRe.diagLogLevelFromString=void 0;var iO=(ut(),nt(xt)),CWr={ALL:iO.DiagLogLevel.ALL,VERBOSE:iO.DiagLogLevel.VERBOSE,DEBUG:iO.DiagLogLevel.DEBUG,INFO:iO.DiagLogLevel.INFO,WARN:iO.DiagLogLevel.WARN,ERROR:iO.DiagLogLevel.ERROR,NONE:iO.DiagLogLevel.NONE};function eRo(t){if(t==null)return;let e=CWr[t.toUpperCase()];return e??(iO.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(CWr)}, using default`),iO.DiagLogLevel.INFO)}zRe.diagLogLevelFromString=eRo});var IWr=E(KRe=>{"use strict";Object.defineProperty(KRe,"__esModule",{value:!0});KRe._export=void 0;var wWr=(ut(),nt(xt)),tRo=A2e();function rRo(t,e){return new Promise(r=>{wWr.context.with((0,tRo.suppressTracing)(wWr.context.active()),()=>{t.export(e,o=>{r(o)})})})}KRe._export=rRo});var w6t=E(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.internal=ln.diagLogLevelFromString=ln.BindOnceFuture=ln.urlMatches=ln.isUrlIgnored=ln.callWithTimeout=ln.TimeoutError=ln.merge=ln.TraceState=ln.unsuppressTracing=ln.suppressTracing=ln.isTracingSuppressed=ln.setRPCMetadata=ln.getRPCMetadata=ln.deleteRPCMetadata=ln.RPCType=ln.parseTraceParent=ln.W3CTraceContextPropagator=ln.TRACE_STATE_HEADER=ln.TRACE_PARENT_HEADER=ln.CompositePropagator=ln.unrefTimer=ln.otperformance=ln.getStringListFromEnv=ln.getNumberFromEnv=ln.getBooleanFromEnv=ln.getStringFromEnv=ln._globalThis=ln.SDK_INFO=ln.parseKeyPairsIntoRecord=ln.ExportResultCode=ln.timeInputToHrTime=ln.millisToHrTime=ln.isTimeInputHrTime=ln.isTimeInput=ln.hrTimeToTimeStamp=ln.hrTimeToNanoseconds=ln.hrTimeToMilliseconds=ln.hrTimeToMicroseconds=ln.hrTimeDuration=ln.hrTime=ln.getTimeOrigin=ln.addHrTimes=ln.loggingErrorHandler=ln.setGlobalErrorHandler=ln.globalErrorHandler=ln.sanitizeAttributes=ln.isAttributeValue=ln.AnchoredClock=ln.W3CBaggagePropagator=void 0;var nRo=D$r();Object.defineProperty(ln,"W3CBaggagePropagator",{enumerable:!0,get:function(){return nRo.W3CBaggagePropagator}});var iRo=O$r();Object.defineProperty(ln,"AnchoredClock",{enumerable:!0,get:function(){return iRo.AnchoredClock}});var DWr=k$r();Object.defineProperty(ln,"isAttributeValue",{enumerable:!0,get:function(){return DWr.isAttributeValue}});Object.defineProperty(ln,"sanitizeAttributes",{enumerable:!0,get:function(){return DWr.sanitizeAttributes}});var OWr=L$r();Object.defineProperty(ln,"globalErrorHandler",{enumerable:!0,get:function(){return OWr.globalErrorHandler}});Object.defineProperty(ln,"setGlobalErrorHandler",{enumerable:!0,get:function(){return OWr.setGlobalErrorHandler}});var oRo=d6t();Object.defineProperty(ln,"loggingErrorHandler",{enumerable:!0,get:function(){return oRo.loggingErrorHandler}});var Jx=X$r();Object.defineProperty(ln,"addHrTimes",{enumerable:!0,get:function(){return Jx.addHrTimes}});Object.defineProperty(ln,"getTimeOrigin",{enumerable:!0,get:function(){return Jx.getTimeOrigin}});Object.defineProperty(ln,"hrTime",{enumerable:!0,get:function(){return Jx.hrTime}});Object.defineProperty(ln,"hrTimeDuration",{enumerable:!0,get:function(){return Jx.hrTimeDuration}});Object.defineProperty(ln,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Jx.hrTimeToMicroseconds}});Object.defineProperty(ln,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Jx.hrTimeToMilliseconds}});Object.defineProperty(ln,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Jx.hrTimeToNanoseconds}});Object.defineProperty(ln,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Jx.hrTimeToTimeStamp}});Object.defineProperty(ln,"isTimeInput",{enumerable:!0,get:function(){return Jx.isTimeInput}});Object.defineProperty(ln,"isTimeInputHrTime",{enumerable:!0,get:function(){return Jx.isTimeInputHrTime}});Object.defineProperty(ln,"millisToHrTime",{enumerable:!0,get:function(){return Jx.millisToHrTime}});Object.defineProperty(ln,"timeInputToHrTime",{enumerable:!0,get:function(){return Jx.timeInputToHrTime}});var sRo=Z$r();Object.defineProperty(ln,"ExportResultCode",{enumerable:!0,get:function(){return sRo.ExportResultCode}});var aRo=a6t();Object.defineProperty(ln,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return aRo.parseKeyPairsIntoRecord}});var Dk=p6t();Object.defineProperty(ln,"SDK_INFO",{enumerable:!0,get:function(){return Dk.SDK_INFO}});Object.defineProperty(ln,"_globalThis",{enumerable:!0,get:function(){return Dk._globalThis}});Object.defineProperty(ln,"getStringFromEnv",{enumerable:!0,get:function(){return Dk.getStringFromEnv}});Object.defineProperty(ln,"getBooleanFromEnv",{enumerable:!0,get:function(){return Dk.getBooleanFromEnv}});Object.defineProperty(ln,"getNumberFromEnv",{enumerable:!0,get:function(){return Dk.getNumberFromEnv}});Object.defineProperty(ln,"getStringListFromEnv",{enumerable:!0,get:function(){return Dk.getStringListFromEnv}});Object.defineProperty(ln,"otperformance",{enumerable:!0,get:function(){return Dk.otperformance}});Object.defineProperty(ln,"unrefTimer",{enumerable:!0,get:function(){return Dk.unrefTimer}});var cRo=tWr();Object.defineProperty(ln,"CompositePropagator",{enumerable:!0,get:function(){return cRo.CompositePropagator}});var YRe=cWr();Object.defineProperty(ln,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return YRe.TRACE_PARENT_HEADER}});Object.defineProperty(ln,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return YRe.TRACE_STATE_HEADER}});Object.defineProperty(ln,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return YRe.W3CTraceContextPropagator}});Object.defineProperty(ln,"parseTraceParent",{enumerable:!0,get:function(){return YRe.parseTraceParent}});var JRe=lWr();Object.defineProperty(ln,"RPCType",{enumerable:!0,get:function(){return JRe.RPCType}});Object.defineProperty(ln,"deleteRPCMetadata",{enumerable:!0,get:function(){return JRe.deleteRPCMetadata}});Object.defineProperty(ln,"getRPCMetadata",{enumerable:!0,get:function(){return JRe.getRPCMetadata}});Object.defineProperty(ln,"setRPCMetadata",{enumerable:!0,get:function(){return JRe.setRPCMetadata}});var T6t=A2e();Object.defineProperty(ln,"isTracingSuppressed",{enumerable:!0,get:function(){return T6t.isTracingSuppressed}});Object.defineProperty(ln,"suppressTracing",{enumerable:!0,get:function(){return T6t.suppressTracing}});Object.defineProperty(ln,"unsuppressTracing",{enumerable:!0,get:function(){return T6t.unsuppressTracing}});var lRo=b6t();Object.defineProperty(ln,"TraceState",{enumerable:!0,get:function(){return lRo.TraceState}});var uRo=vWr();Object.defineProperty(ln,"merge",{enumerable:!0,get:function(){return uRo.merge}});var RWr=bWr();Object.defineProperty(ln,"TimeoutError",{enumerable:!0,get:function(){return RWr.TimeoutError}});Object.defineProperty(ln,"callWithTimeout",{enumerable:!0,get:function(){return RWr.callWithTimeout}});var NWr=SWr();Object.defineProperty(ln,"isUrlIgnored",{enumerable:!0,get:function(){return NWr.isUrlIgnored}});Object.defineProperty(ln,"urlMatches",{enumerable:!0,get:function(){return NWr.urlMatches}});var fRo=_Wr();Object.defineProperty(ln,"BindOnceFuture",{enumerable:!0,get:function(){return fRo.BindOnceFuture}});var dRo=TWr();Object.defineProperty(ln,"diagLogLevelFromString",{enumerable:!0,get:function(){return dRo.diagLogLevelFromString}});var pRo=IWr();ln.internal={_export:pRo._export}});var PWr=E(XRe=>{"use strict";Object.defineProperty(XRe,"__esModule",{value:!0});XRe.defaultServiceName=void 0;function hRo(){return`unknown_service:${process.argv0}`}XRe.defaultServiceName=hRo});var BWr=E(ZRe=>{"use strict";Object.defineProperty(ZRe,"__esModule",{value:!0});ZRe.defaultServiceName=void 0;var mRo=PWr();Object.defineProperty(ZRe,"defaultServiceName",{enumerable:!0,get:function(){return mRo.defaultServiceName}})});var I6t=E(eNe=>{"use strict";Object.defineProperty(eNe,"__esModule",{value:!0});eNe.defaultServiceName=void 0;var gRo=BWr();Object.defineProperty(eNe,"defaultServiceName",{enumerable:!0,get:function(){return gRo.defaultServiceName}})});var kWr=E(xte=>{"use strict";Object.defineProperty(xte,"__esModule",{value:!0});xte.identity=xte.isPromiseLike=void 0;var yRo=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";xte.isPromiseLike=yRo;function ARo(t){return t}xte.identity=ARo});var R6t=E(rI=>{"use strict";Object.defineProperty(rI,"__esModule",{value:!0});rI.defaultResource=rI.emptyResource=rI.resourceFromDetectedResource=rI.resourceFromAttributes=void 0;var x2e=(ut(),nt(xt)),D6t=w6t(),gV=(Wl(),nt(Uu)),vRo=I6t(),S2e=kWr(),tNe=class t{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(e,r){let o=new t({},r);return o._rawAttributes=MWr(e),o._asyncAttributesPending=e.filter(([s,a])=>(0,S2e.isPromiseLike)(a)).length>0,o}constructor(e,r){let o=e.attributes??{};this._rawAttributes=Object.entries(o).map(([s,a])=>((0,S2e.isPromiseLike)(a)&&(this._asyncAttributesPending=!0),[s,a])),this._rawAttributes=MWr(this._rawAttributes),this._schemaUrl=xRo(r?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){let[r,o]=this._rawAttributes[e];this._rawAttributes[e]=[r,(0,S2e.isPromiseLike)(o)?await o:o]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&x2e.diag.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let e={};for(let[r,o]of this._rawAttributes){if((0,S2e.isPromiseLike)(o)){x2e.diag.debug(`Unsettled resource attribute ${r} skipped`);continue}o!=null&&(e[r]??=o)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(e){if(e==null)return this;let r=_Ro(this,e),o=r?{schemaUrl:r}:void 0;return t.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()],o)}};function O6t(t,e){return tNe.FromAttributeList(Object.entries(t),e)}rI.resourceFromAttributes=O6t;function bRo(t,e){return new tNe(t,e)}rI.resourceFromDetectedResource=bRo;function ERo(){return O6t({})}rI.emptyResource=ERo;function SRo(){return O6t({[gV.ATTR_SERVICE_NAME]:(0,vRo.defaultServiceName)(),[gV.ATTR_TELEMETRY_SDK_LANGUAGE]:D6t.SDK_INFO[gV.ATTR_TELEMETRY_SDK_LANGUAGE],[gV.ATTR_TELEMETRY_SDK_NAME]:D6t.SDK_INFO[gV.ATTR_TELEMETRY_SDK_NAME],[gV.ATTR_TELEMETRY_SDK_VERSION]:D6t.SDK_INFO[gV.ATTR_TELEMETRY_SDK_VERSION]})}rI.defaultResource=SRo;function MWr(t){return t.map(([e,r])=>(0,S2e.isPromiseLike)(r)?[e,r.catch(o=>{x2e.diag.debug("promise rejection for resource attribute: %s - %s",e,o)})]:[e,r])}function xRo(t){if(typeof t=="string"||t===void 0)return t;x2e.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",t)}function _Ro(t,e){let r=t?.schemaUrl,o=e?.schemaUrl,s=r===void 0||r==="",a=o===void 0||o==="";if(s)return o;if(a||r===o)return r;x2e.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',r,o)}});var UWr=E(rNe=>{"use strict";Object.defineProperty(rNe,"__esModule",{value:!0});rNe.detectResources=void 0;var LWr=(ut(),nt(xt)),N6t=R6t(),CRo=(t={})=>(t.detectors||[]).map(r=>{try{let o=(0,N6t.resourceFromDetectedResource)(r.detect(t));return LWr.diag.debug(`${r.constructor.name} found resource.`,o),o}catch(o){return LWr.diag.debug(`${r.constructor.name} failed: ${o.message}`),(0,N6t.emptyResource)()}}).reduce((r,o)=>r.merge(o),(0,N6t.emptyResource)());rNe.detectResources=CRo});var QWr=E(nNe=>{"use strict";Object.defineProperty(nNe,"__esModule",{value:!0});nNe.envDetector=void 0;var TRo=(ut(),nt(xt)),wRo=(Wl(),nt(Uu)),FWr=w6t(),P6t=class{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";_ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.";_ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters.";detect(e){let r={},o=(0,FWr.getStringFromEnv)("OTEL_RESOURCE_ATTRIBUTES"),s=(0,FWr.getStringFromEnv)("OTEL_SERVICE_NAME");if(o)try{let a=this._parseResourceAttributes(o);Object.assign(r,a)}catch(a){TRo.diag.debug(`EnvDetector failed: ${a.message}`)}return s&&(r[wRo.ATTR_SERVICE_NAME]=s),{attributes:r}}_parseResourceAttributes(e){if(!e)return{};let r={},o=e.split(this._COMMA_SEPARATOR,-1);for(let s of o){let a=s.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(a.length!==2)continue;let[i,n]=a;if(i=i.trim(),n=n.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(i))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(n))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);r[i]=decodeURIComponent(n)}return r}_isValid(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)}_isBaggageOctetString(e){for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o<33||o===44||o===59||o===92||o>126)return!1}return!0}_isValidAndNotEmpty(e){return e.length>0&&this._isValid(e)}};nNe.envDetector=new P6t});var _2e=E(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.ATTR_WEBENGINE_VERSION=di.ATTR_WEBENGINE_NAME=di.ATTR_WEBENGINE_DESCRIPTION=di.ATTR_SERVICE_NAMESPACE=di.ATTR_SERVICE_INSTANCE_ID=di.ATTR_PROCESS_RUNTIME_VERSION=di.ATTR_PROCESS_RUNTIME_NAME=di.ATTR_PROCESS_RUNTIME_DESCRIPTION=di.ATTR_PROCESS_PID=di.ATTR_PROCESS_OWNER=di.ATTR_PROCESS_EXECUTABLE_PATH=di.ATTR_PROCESS_EXECUTABLE_NAME=di.ATTR_PROCESS_COMMAND_ARGS=di.ATTR_PROCESS_COMMAND=di.ATTR_OS_VERSION=di.ATTR_OS_TYPE=di.ATTR_K8S_POD_NAME=di.ATTR_K8S_NAMESPACE_NAME=di.ATTR_K8S_DEPLOYMENT_NAME=di.ATTR_K8S_CLUSTER_NAME=di.ATTR_HOST_TYPE=di.ATTR_HOST_NAME=di.ATTR_HOST_IMAGE_VERSION=di.ATTR_HOST_IMAGE_NAME=di.ATTR_HOST_IMAGE_ID=di.ATTR_HOST_ID=di.ATTR_HOST_ARCH=di.ATTR_CONTAINER_NAME=di.ATTR_CONTAINER_IMAGE_TAGS=di.ATTR_CONTAINER_IMAGE_NAME=di.ATTR_CONTAINER_ID=di.ATTR_CLOUD_REGION=di.ATTR_CLOUD_PROVIDER=di.ATTR_CLOUD_AVAILABILITY_ZONE=di.ATTR_CLOUD_ACCOUNT_ID=void 0;di.ATTR_CLOUD_ACCOUNT_ID="cloud.account.id";di.ATTR_CLOUD_AVAILABILITY_ZONE="cloud.availability_zone";di.ATTR_CLOUD_PROVIDER="cloud.provider";di.ATTR_CLOUD_REGION="cloud.region";di.ATTR_CONTAINER_ID="container.id";di.ATTR_CONTAINER_IMAGE_NAME="container.image.name";di.ATTR_CONTAINER_IMAGE_TAGS="container.image.tags";di.ATTR_CONTAINER_NAME="container.name";di.ATTR_HOST_ARCH="host.arch";di.ATTR_HOST_ID="host.id";di.ATTR_HOST_IMAGE_ID="host.image.id";di.ATTR_HOST_IMAGE_NAME="host.image.name";di.ATTR_HOST_IMAGE_VERSION="host.image.version";di.ATTR_HOST_NAME="host.name";di.ATTR_HOST_TYPE="host.type";di.ATTR_K8S_CLUSTER_NAME="k8s.cluster.name";di.ATTR_K8S_DEPLOYMENT_NAME="k8s.deployment.name";di.ATTR_K8S_NAMESPACE_NAME="k8s.namespace.name";di.ATTR_K8S_POD_NAME="k8s.pod.name";di.ATTR_OS_TYPE="os.type";di.ATTR_OS_VERSION="os.version";di.ATTR_PROCESS_COMMAND="process.command";di.ATTR_PROCESS_COMMAND_ARGS="process.command_args";di.ATTR_PROCESS_EXECUTABLE_NAME="process.executable.name";di.ATTR_PROCESS_EXECUTABLE_PATH="process.executable.path";di.ATTR_PROCESS_OWNER="process.owner";di.ATTR_PROCESS_PID="process.pid";di.ATTR_PROCESS_RUNTIME_DESCRIPTION="process.runtime.description";di.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name";di.ATTR_PROCESS_RUNTIME_VERSION="process.runtime.version";di.ATTR_SERVICE_INSTANCE_ID="service.instance.id";di.ATTR_SERVICE_NAMESPACE="service.namespace";di.ATTR_WEBENGINE_DESCRIPTION="webengine.description";di.ATTR_WEBENGINE_NAME="webengine.name";di.ATTR_WEBENGINE_VERSION="webengine.version"});var oNe=E(iNe=>{"use strict";Object.defineProperty(iNe,"__esModule",{value:!0});iNe.execAsync=void 0;var IRo=me("child_process"),DRo=me("util");iNe.execAsync=DRo.promisify(IRo.exec)});var qWr=E(sNe=>{"use strict";Object.defineProperty(sNe,"__esModule",{value:!0});sNe.getMachineId=void 0;var ORo=oNe(),RRo=(ut(),nt(xt));async function NRo(){try{let e=(await(0,ORo.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
|
|
772
|
+
`)))}),t&&t(r),e(r)}),(N3o||B3o||P3o||k3o)&&e(null)})})}cPr.bluetoothDevices=Q3o});var EPr=E(Qi=>{"use strict";var q3o=TRr().version,lk=vm(),ck=GRr(),J7=J_t(),Hx=YRr(),c7e=oNr(),uPr=cNr(),fPr=pNr(),q5=ANr(),X7=TNr(),l7e=RNr(),R0e=BNr(),dPr=LNr(),DCt=VNr(),KH=WNr(),H3o=KNr(),pPr=ZNr(),hPr=rPr(),mPr=oPr(),gPr=lPr(),N0e=process.platform,a7e=N0e==="win32",I0e=N0e==="freebsd",D0e=N0e==="openbsd",O0e=N0e==="netbsd",Q5=N0e==="sunos";a7e&&(lk.getCodepage(),lk.getPowershell());function yPr(){return q3o}function APr(t){return new Promise(e=>{process.nextTick(()=>{let r={};r.version=yPr(),Promise.all([ck.system(),ck.bios(),ck.baseboard(),ck.chassis(),J7.osInfo(),J7.uuid(),J7.versions(),Hx.cpu(),Hx.cpuFlags(),fPr.graphics(),X7.networkInterfaces(),c7e.memLayout(),q5.diskLayout(),mPr.audio(),gPr.bluetoothDevices(),hPr.usb(),pPr.printer()]).then(o=>{r.system=o[0],r.bios=o[1],r.baseboard=o[2],r.chassis=o[3],r.os=o[4],r.uuid=o[5],r.versions=o[6],r.cpu=o[7],r.cpu.flags=o[8],r.graphics=o[9],r.net=o[10],r.memLayout=o[11],r.diskLayout=o[12],r.audio=o[13],r.bluetooth=o[14],r.usb=o[15],r.printer=o[16],t&&t(r),e(r)})})})}function vPr(t,e,r){return lk.isFunction(e)&&(r=e,e=""),lk.isFunction(t)&&(r=t,t=""),new Promise(o=>{process.nextTick(()=>{e=e||X7.getDefaultNetworkInterface(),t=t||"";let s=(function(){let i=15;return a7e&&(i=13),(I0e||D0e||O0e)&&(i=11),Q5&&(i=6),function(){--i===0&&(r&&r(a),o(a))}})(),a={};a.time=J7.time(),a.node=process.versions.node,a.v8=process.versions.v8,Hx.cpuCurrentSpeed().then(i=>{a.cpuCurrentSpeed=i,s()}),dPr.users().then(i=>{a.users=i,s()}),R0e.processes().then(i=>{a.processes=i,s()}),Hx.currentLoad().then(i=>{a.currentLoad=i,s()}),Q5||Hx.cpuTemperature().then(i=>{a.temp=i,s()}),!D0e&&!I0e&&!O0e&&!Q5&&X7.networkStats(e).then(i=>{a.networkStats=i,s()}),Q5||X7.networkConnections().then(i=>{a.networkConnections=i,s()}),c7e.mem().then(i=>{a.mem=i,s()}),Q5||uPr().then(i=>{a.battery=i,s()}),Q5||R0e.services(t).then(i=>{a.services=i,s()}),Q5||q5.fsSize().then(i=>{a.fsSize=i,s()}),!a7e&&!D0e&&!I0e&&!O0e&&!Q5&&q5.fsStats().then(i=>{a.fsStats=i,s()}),!a7e&&!D0e&&!I0e&&!O0e&&!Q5&&q5.disksIO().then(i=>{a.disksIO=i,s()}),!D0e&&!I0e&&!O0e&&!Q5&&l7e.wifiNetworks().then(i=>{a.wifiNetworks=i,s()}),DCt.inetLatency().then(i=>{a.inetLatency=i,s()})})})}function V3o(t,e,r){return new Promise(o=>{process.nextTick(()=>{let s={};e&&lk.isFunction(e)&&!r&&(r=e,e=""),t&&lk.isFunction(t)&&!e&&!r&&(r=t,t="",e=""),APr().then(a=>{s=a,vPr(t,e).then(i=>{for(let n in i)({}).hasOwnProperty.call(i,n)&&(s[n]=i[n]);r&&r(s),o(s)})})})})}function bPr(t,e){return new Promise(r=>{process.nextTick(()=>{let o=Object.keys(t).filter(s=>({}).hasOwnProperty.call(Qi,s)).map(s=>{let a=t[s].substring(t[s].lastIndexOf("(")+1,t[s].lastIndexOf(")")),i=s.indexOf(")")>=0?s.split(")")[1].trim():s;return i=s.indexOf("|")>=0?s.split("|")[0].trim():i,a?Qi[i](a):Qi[i]("")});Promise.all(o).then(s=>{let a={},i=0;for(let n in t)if({}.hasOwnProperty.call(t,n)&&{}.hasOwnProperty.call(Qi,n)&&s.length>i){if(t[n]==="*"||t[n]==="all")a[n]=s[i];else{let c=t[n],u="",f=[];if(c.indexOf(")")>=0&&(c=c.split(")")[1].trim()),c.indexOf("|")>=0&&(u=c.split("|")[1].trim(),f=u.split(":"),c=c.split("|")[0].trim()),c=c.replace(/,/g," ").replace(/ +/g," ").split(" "),s[i])if(Array.isArray(s[i])){let d=[];s[i].forEach(p=>{let h={};if(c.length===1&&(c[0]==="*"||c[0]==="all")?h=p:c.forEach(m=>{({}).hasOwnProperty.call(p,m)&&(h[m]=p[m])}),u&&f.length===2){if({}.hasOwnProperty.call(h,f[0].trim())){let m=h[f[0].trim()];typeof m=="number"?m===parseFloat(f[1].trim())&&d.push(h):typeof m=="string"&&m.toLowerCase()===f[1].trim().toLowerCase()&&d.push(h)}}else d.push(h)}),a[n]=d}else{let d={};c.forEach(p=>{({}).hasOwnProperty.call(s[i],p)&&(d[p]=s[i][p])}),a[n]=d}else a[n]={}}i++}e&&e(a),r(a)})})})}function G3o(t,e,r){let o=null;return setInterval(()=>{bPr(t).then(a=>{JSON.stringify(o)!==JSON.stringify(a)&&(o=Object.assign({},a),r(a))})},e)}Qi.version=yPr;Qi.system=ck.system;Qi.bios=ck.bios;Qi.baseboard=ck.baseboard;Qi.chassis=ck.chassis;Qi.time=J7.time;Qi.osInfo=J7.osInfo;Qi.versions=J7.versions;Qi.shell=J7.shell;Qi.uuid=J7.uuid;Qi.cpu=Hx.cpu;Qi.cpuFlags=Hx.cpuFlags;Qi.cpuCache=Hx.cpuCache;Qi.cpuCurrentSpeed=Hx.cpuCurrentSpeed;Qi.cpuTemperature=Hx.cpuTemperature;Qi.currentLoad=Hx.currentLoad;Qi.fullLoad=Hx.fullLoad;Qi.mem=c7e.mem;Qi.memLayout=c7e.memLayout;Qi.battery=uPr;Qi.graphics=fPr.graphics;Qi.fsSize=q5.fsSize;Qi.fsOpenFiles=q5.fsOpenFiles;Qi.blockDevices=q5.blockDevices;Qi.fsStats=q5.fsStats;Qi.disksIO=q5.disksIO;Qi.diskLayout=q5.diskLayout;Qi.networkInterfaceDefault=X7.networkInterfaceDefault;Qi.networkGatewayDefault=X7.networkGatewayDefault;Qi.networkInterfaces=X7.networkInterfaces;Qi.networkStats=X7.networkStats;Qi.networkConnections=X7.networkConnections;Qi.wifiNetworks=l7e.wifiNetworks;Qi.wifiInterfaces=l7e.wifiInterfaces;Qi.wifiConnections=l7e.wifiConnections;Qi.services=R0e.services;Qi.processes=R0e.processes;Qi.processLoad=R0e.processLoad;Qi.users=dPr.users;Qi.inetChecksite=DCt.inetChecksite;Qi.inetLatency=DCt.inetLatency;Qi.dockerInfo=KH.dockerInfo;Qi.dockerImages=KH.dockerImages;Qi.dockerContainers=KH.dockerContainers;Qi.dockerContainerStats=KH.dockerContainerStats;Qi.dockerContainerProcesses=KH.dockerContainerProcesses;Qi.dockerVolumes=KH.dockerVolumes;Qi.dockerAll=KH.dockerAll;Qi.vboxInfo=H3o.vboxInfo;Qi.printer=pPr.printer;Qi.usb=hPr.usb;Qi.audio=mPr.audio;Qi.bluetoothDevices=gPr.bluetoothDevices;Qi.getStaticData=APr;Qi.getDynamicData=vPr;Qi.getAllData=V3o;Qi.get=bPr;Qi.observe=G3o;Qi.powerShellStart=lk.powerShellStart;Qi.powerShellRelease=lk.powerShellRelease});async function OCt(){try{let{displays:t}=await SPr.default.graphics();if(!t?.length)return"-";let e=t.find(s=>s.main)||t[0],r=e.currentResX||e.resolutionX,o=e.currentResY||e.resolutionY;return r&&o?`${r}x${o}`:"-"}catch{return"-"}}var SPr,RCt=j(()=>{"use strict";SPr=we(EPr(),1)});async function u7e(){let t=new AbortController,e=setTimeout(()=>t.abort(),3e3);try{let s=(await(await fetch("https://log.mmstat.com/v.gif",{signal:t.signal})).headers.getSetCookie()).find(a=>a.startsWith("cna="));return s?s.split(";")?.[0]?.split("=")?.[1]:void 0}catch{return}finally{clearTimeout(e)}}async function xPr({cna:t,userId:e,iFlowEnv:r}){if(!(!t||process.env.DISABLE_SEND_PV))try{let o=process.env.IFLOW_NON_INTERACTIVE==="true",a=["logtype=1","title=iFlow-CLI","pre=-",`scr=${await OCt()}`,`cna=${t}`,`spm-cnt=${o?"a2110qe.33796382.46182003.0.0":"a2110qe.32214347.46097794.0.0"}`,"aplus","pid=iflow",`_user_id=${e}`,`cache=${Math.floor(268435456*Math.random()).toString(16)}`,"sidx=aplusSidex","ckx=aplusCkx",`platformType=${process.env.IFLOW_RUN_IN||"pc"}`,`device_model=${W3o[process.platform]||process.platform}`,`os=${j3o[process.platform]||process.platform}`,`o=${$3o[process.platform]||process.platform}`,`node_version=${process.version}`,`language=${process.env.LANG}`,`interactive=${o?0:1}`,`iFlowEnv=${r}`,"_g_encode=utf-8"].join("&");await fetch("https://log.mmstat.com/v.gif",{method:"POST",headers:{"content-type":"text/plain;charset=UTF-8","cache-control":"no-cache"},body:a})}catch{}}var j3o,$3o,W3o,NCt=j(()=>{"use strict";RCt();j3o={darwin:encodeURIComponent("Mac OS X"),win32:"Windows",linux:"Linux"},$3o={darwin:"mac",win32:"win"},W3o={darwin:"Macintosh",win32:"Windows",linux:"Linux"}});var _Pr,CPr=j(()=>{_Pr=typeof globalThis=="object"?globalThis:global});var TPr=j(()=>{CPr()});var wPr=j(()=>{TPr()});var Z7,PCt=j(()=>{Z7="1.9.0"});function z3o(t){var e=new Set([t]),r=new Set,o=t.match(IPr);if(!o)return function(){return!1};var s={major:+o[1],minor:+o[2],patch:+o[3],prerelease:o[4]};if(s.prerelease!=null)return function(c){return c===t};function a(n){return r.add(n),!1}function i(n){return e.add(n),!0}return function(c){if(e.has(c))return!0;if(r.has(c))return!1;var u=c.match(IPr);if(!u)return a(c);var f={major:+u[1],minor:+u[2],patch:+u[3],prerelease:u[4]};return f.prerelease!=null||s.major!==f.major?a(c):s.major===0?s.minor===f.minor&&s.patch<=f.patch?i(c):a(c):s.minor<=f.minor?i(c):a(c)}}var IPr,DPr,OPr=j(()=>{PCt();IPr=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;DPr=z3o(Z7)});function H5(t,e,r,o){var s;o===void 0&&(o=!1);var a=B0e[P0e]=(s=B0e[P0e])!==null&&s!==void 0?s:{version:Z7};if(!o&&a[t]){var i=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(i.stack||i.message),!1}if(a.version!==Z7){var i=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+Z7);return r.error(i.stack||i.message),!1}return a[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+Z7+"."),!0}function RE(t){var e,r,o=(e=B0e[P0e])===null||e===void 0?void 0:e.version;if(!(!o||!DPr(o)))return(r=B0e[P0e])===null||r===void 0?void 0:r[t]}function V5(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+Z7+".");var r=B0e[P0e];r&&delete r[t]}var K3o,P0e,B0e,YH=j(()=>{wPr();PCt();OPr();K3o=Z7.split(".")[0],P0e=Symbol.for("opentelemetry.js.api."+K3o),B0e=_Pr});function k0e(t,e,r){var o=RE("diag");if(o)return r.unshift(e),o[t].apply(o,J3o([],Y3o(r),!1))}var Y3o,J3o,RPr,NPr=j(()=>{YH();Y3o=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},J3o=function(t,e,r){if(r||arguments.length===2)for(var o=0,s=e.length,a;o<s;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return t.concat(a||Array.prototype.slice.call(e))},RPr=(function(){function t(e){this._namespace=e.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return k0e("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return k0e("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return k0e("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return k0e("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return k0e("verbose",this._namespace,e)},t})()});var Sm,f7e=j(()=>{(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(Sm||(Sm={}))});function PPr(t,e){t<Sm.NONE?t=Sm.NONE:t>Sm.ALL&&(t=Sm.ALL),e=e||{};function r(o,s){var a=e[o];return typeof a=="function"&&t>=s?a.bind(e):function(){}}return{error:r("error",Sm.ERROR),warn:r("warn",Sm.WARN),info:r("info",Sm.INFO),debug:r("debug",Sm.DEBUG),verbose:r("verbose",Sm.VERBOSE)}}var BPr=j(()=>{f7e()});var X3o,Z3o,evo,Y1,JH=j(()=>{NPr();BPr();f7e();YH();X3o=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Z3o=function(t,e,r){if(r||arguments.length===2)for(var o=0,s=e.length,a;o<s;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return t.concat(a||Array.prototype.slice.call(e))},evo="diag",Y1=(function(){function t(){function e(s){return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var n=RE("diag");if(n)return n[s].apply(n,Z3o([],X3o(a),!1))}}var r=this,o=function(s,a){var i,n,c;if(a===void 0&&(a={logLevel:Sm.INFO}),s===r){var u=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((i=u.stack)!==null&&i!==void 0?i:u.message),!1}typeof a=="number"&&(a={logLevel:a});var f=RE("diag"),d=PPr((n=a.logLevel)!==null&&n!==void 0?n:Sm.INFO,s);if(f&&!a.suppressOverrideMessage){var p=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";f.warn("Current logger will be overwritten from "+p),d.warn("Current logger will overwrite one already registered from "+p)}return H5("diag",d,r,!0)};r.setLogger=o,r.disable=function(){V5(evo,r)},r.createComponentLogger=function(s){return new RPr(s)},r.verbose=e("verbose"),r.debug=e("debug"),r.info=e("info"),r.warn=e("warn"),r.error=e("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t})()});var tvo,rvo,kPr,MPr=j(()=>{tvo=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},rvo=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},kPr=(function(){function t(e){this._entries=e?new Map(e):new Map}return t.prototype.getEntry=function(e){var r=this._entries.get(e);if(r)return Object.assign({},r)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var r=tvo(e,2),o=r[0],s=r[1];return[o,s]})},t.prototype.setEntry=function(e,r){var o=new t(this._entries);return o._entries.set(e,r),o},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=new t(this._entries);try{for(var i=rvo(o),n=i.next();!n.done;n=i.next()){var c=n.value;a._entries.delete(c)}}catch(u){e={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return a},t.prototype.clear=function(){return new t},t})()});var LPr,UPr=j(()=>{LPr=Symbol("BaggageEntryMetadata")});function FPr(t){return t===void 0&&(t={}),new kPr(new Map(Object.entries(t)))}function QPr(t){return typeof t!="string"&&(nvo.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:LPr,toString:function(){return t}}}var nvo,BCt=j(()=>{JH();MPr();UPr();nvo=Y1.instance()});function Vee(t){return Symbol.for(t)}var ivo,d7e,M0e=j(()=>{ivo=(function(){function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(o){return r._currentContext.get(o)},r.setValue=function(o,s){var a=new t(r._currentContext);return a._currentContext.set(o,s),a},r.deleteValue=function(o){var s=new t(r._currentContext);return s._currentContext.delete(o),s}}return t})(),d7e=new ivo});var kCt,L0e,qPr=j(()=>{kCt=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],L0e=(function(){function t(){function e(o){return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];if(console){var i=console[o];if(typeof i!="function"&&(i=console.log),typeof i=="function")return i.apply(console,s)}}}for(var r=0;r<kCt.length;r++)this[kCt[r].n]=e(kCt[r].c)}return t})()});function HPr(){return LCt}var XH,ovo,p7e,svo,avo,cvo,lvo,MCt,uvo,fvo,dvo,LCt,pvo,hvo,mvo,gvo,yvo,Avo,vvo,UCt=j(()=>{XH=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(o[a]=s[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})(),ovo=(function(){function t(){}return t.prototype.createGauge=function(e,r){return hvo},t.prototype.createHistogram=function(e,r){return mvo},t.prototype.createCounter=function(e,r){return pvo},t.prototype.createUpDownCounter=function(e,r){return gvo},t.prototype.createObservableGauge=function(e,r){return Avo},t.prototype.createObservableCounter=function(e,r){return yvo},t.prototype.createObservableUpDownCounter=function(e,r){return vvo},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t})(),p7e=(function(){function t(){}return t})(),svo=(function(t){XH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,o){},e})(p7e),avo=(function(t){XH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,o){},e})(p7e),cvo=(function(t){XH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,o){},e})(p7e),lvo=(function(t){XH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,o){},e})(p7e),MCt=(function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t})(),uvo=(function(t){XH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(MCt),fvo=(function(t){XH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(MCt),dvo=(function(t){XH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(MCt),LCt=new ovo,pvo=new svo,hvo=new cvo,mvo=new lvo,gvo=new avo,yvo=new uvo,Avo=new fvo,vvo=new dvo});var e0,VPr=j(()=>{(function(t){t[t.INT=0]="INT",t[t.DOUBLE=1]="DOUBLE"})(e0||(e0={}))});var h7e,m7e,FCt=j(()=>{h7e={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},m7e={set:function(t,e,r){t!=null&&(t[e]=r)}}});var bvo,Evo,GPr,jPr=j(()=>{M0e();bvo=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Evo=function(t,e,r){if(r||arguments.length===2)for(var o=0,s=e.length,a;o<s;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return t.concat(a||Array.prototype.slice.call(e))},GPr=(function(){function t(){}return t.prototype.active=function(){return d7e},t.prototype.with=function(e,r,o){for(var s=[],a=3;a<arguments.length;a++)s[a-3]=arguments[a];return r.call.apply(r,Evo([o],bvo(s),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t})()});var Svo,xvo,QCt,_vo,uk,U0e=j(()=>{jPr();YH();JH();Svo=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},xvo=function(t,e,r){if(r||arguments.length===2)for(var o=0,s=e.length,a;o<s;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return t.concat(a||Array.prototype.slice.call(e))},QCt="context",_vo=new GPr,uk=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return H5(QCt,e,Y1.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(e,r,o){for(var s,a=[],i=3;i<arguments.length;i++)a[i-3]=arguments[i];return(s=this._getContextManager()).with.apply(s,xvo([e,r,o],Svo(a),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return RE(QCt)||_vo},t.prototype.disable=function(){this._getContextManager().disable(),V5(QCt,Y1.instance())},t})()});var Gee,qCt=j(()=>{(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(Gee||(Gee={}))});var F0e,Q0e,g7e,y7e=j(()=>{qCt();F0e="0000000000000000",Q0e="00000000000000000000000000000000",g7e={traceId:Q0e,spanId:F0e,traceFlags:Gee.NONE}});var fk,A7e=j(()=>{y7e();fk=(function(){function t(e){e===void 0&&(e=g7e),this._spanContext=e}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,r){return this},t.prototype.setAttributes=function(e){return this},t.prototype.addEvent=function(e,r){return this},t.prototype.addLink=function(e){return this},t.prototype.addLinks=function(e){return this},t.prototype.setStatus=function(e){return this},t.prototype.updateName=function(e){return this},t.prototype.end=function(e){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(e,r){},t})()});function v7e(t){return t.getValue(HCt)||void 0}function $Pr(){return v7e(uk.getInstance().active())}function q0e(t,e){return t.setValue(HCt,e)}function WPr(t){return t.deleteValue(HCt)}function zPr(t,e){return q0e(t,new fk(e))}function b7e(t){var e;return(e=v7e(t))===null||e===void 0?void 0:e.spanContext()}var HCt,VCt=j(()=>{M0e();A7e();U0e();HCt=Vee("OpenTelemetry Context Key SPAN")});function GCt(t){return Cvo.test(t)&&t!==Q0e}function jCt(t){return Tvo.test(t)&&t!==F0e}function jee(t){return GCt(t.traceId)&&jCt(t.spanId)}function KPr(t){return new fk(t)}var Cvo,Tvo,E7e=j(()=>{y7e();A7e();Cvo=/^([0-9a-f]{32})$/i,Tvo=/^[0-9a-f]{16}$/i});function wvo(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var $Ct,S7e,WCt=j(()=>{U0e();VCt();A7e();E7e();$Ct=uk.getInstance(),S7e=(function(){function t(){}return t.prototype.startSpan=function(e,r,o){o===void 0&&(o=$Ct.active());var s=!!r?.root;if(s)return new fk;var a=o&&b7e(o);return wvo(a)&&jee(a)?new fk(a):new fk},t.prototype.startActiveSpan=function(e,r,o,s){var a,i,n;if(!(arguments.length<2)){arguments.length===2?n=r:arguments.length===3?(a=r,n=o):(a=r,i=o,n=s);var c=i??$Ct.active(),u=this.startSpan(e,a,c),f=q0e(c,u);return $Ct.with(f,n,void 0,u)}},t})()});var Ivo,x7e,zCt=j(()=>{WCt();Ivo=new S7e,x7e=(function(){function t(e,r,o,s){this._provider=e,this.name=r,this.version=o,this.options=s}return t.prototype.startSpan=function(e,r,o){return this._getTracer().startSpan(e,r,o)},t.prototype.startActiveSpan=function(e,r,o,s){var a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):Ivo},t})()});var YPr,JPr=j(()=>{WCt();YPr=(function(){function t(){}return t.prototype.getTracer=function(e,r,o){return new S7e},t})()});var Dvo,H0e,KCt=j(()=>{zCt();JPr();Dvo=new YPr,H0e=(function(){function t(){}return t.prototype.getTracer=function(e,r,o){var s;return(s=this.getDelegateTracer(e,r,o))!==null&&s!==void 0?s:new x7e(this,e,r,o)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:Dvo},t.prototype.setDelegate=function(e){this._delegate=e},t.prototype.getDelegateTracer=function(e,r,o){var s;return(s=this._delegate)===null||s===void 0?void 0:s.getTracer(e,r,o)},t})()});var _7e,XPr=j(()=>{(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(_7e||(_7e={}))});var C7e,ZPr=j(()=>{(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(C7e||(C7e={}))});var Vx,eBr=j(()=>{(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(Vx||(Vx={}))});function tBr(t){return Nvo.test(t)}function rBr(t){return Pvo.test(t)&&!Bvo.test(t)}var YCt,Ovo,Rvo,Nvo,Pvo,Bvo,nBr=j(()=>{YCt="[_0-9a-z-*/]",Ovo="[a-z]"+YCt+"{0,255}",Rvo="[a-z0-9]"+YCt+"{0,240}@[a-z]"+YCt+"{0,13}",Nvo=new RegExp("^(?:"+Ovo+"|"+Rvo+")$"),Pvo=/^[ -~]{0,255}[!-~]$/,Bvo=/,|=/});var iBr,kvo,oBr,sBr,aBr,cBr=j(()=>{nBr();iBr=32,kvo=512,oBr=",",sBr="=",aBr=(function(){function t(e){this._internalState=new Map,e&&this._parse(e)}return t.prototype.set=function(e,r){var o=this._clone();return o._internalState.has(e)&&o._internalState.delete(e),o._internalState.set(e,r),o},t.prototype.unset=function(e){var r=this._clone();return r._internalState.delete(e),r},t.prototype.get=function(e){return this._internalState.get(e)},t.prototype.serialize=function(){var e=this;return this._keys().reduce(function(r,o){return r.push(o+sBr+e.get(o)),r},[]).join(oBr)},t.prototype._parse=function(e){e.length>kvo||(this._internalState=e.split(oBr).reverse().reduce(function(r,o){var s=o.trim(),a=s.indexOf(sBr);if(a!==-1){var i=s.slice(0,a),n=s.slice(a+1,o.length);tBr(i)&&rBr(n)&&r.set(i,n)}return r},new Map),this._internalState.size>iBr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,iBr))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t})()});function lBr(t){return new aBr(t)}var uBr=j(()=>{cBr()});var J1,fBr=j(()=>{U0e();J1=uk.getInstance()});var Er,dBr=j(()=>{JH();Er=Y1.instance()});var Mvo,pBr,hBr=j(()=>{UCt();Mvo=(function(){function t(){}return t.prototype.getMeter=function(e,r,o){return LCt},t})(),pBr=new Mvo});var JCt,mBr,gBr=j(()=>{hBr();YH();JH();JCt="metrics",mBr=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return H5(JCt,e,Y1.instance())},t.prototype.getMeterProvider=function(){return RE(JCt)||pBr},t.prototype.getMeter=function(e,r,o){return this.getMeterProvider().getMeter(e,r,o)},t.prototype.disable=function(){V5(JCt,Y1.instance())},t})()});var V0e,yBr=j(()=>{gBr();V0e=mBr.getInstance()});var ABr,vBr=j(()=>{ABr=(function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t})()});function ZCt(t){return t.getValue(XCt)||void 0}function bBr(){return ZCt(uk.getInstance().active())}function EBr(t,e){return t.setValue(XCt,e)}function SBr(t){return t.deleteValue(XCt)}var XCt,xBr=j(()=>{U0e();M0e();XCt=Vee("OpenTelemetry Baggage Key")});var eTt,Lvo,_Br,CBr=j(()=>{YH();vBr();FCt();xBr();BCt();JH();eTt="propagation",Lvo=new ABr,_Br=(function(){function t(){this.createBaggage=FPr,this.getBaggage=ZCt,this.getActiveBaggage=bBr,this.setBaggage=EBr,this.deleteBaggage=SBr}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return H5(eTt,e,Y1.instance())},t.prototype.inject=function(e,r,o){return o===void 0&&(o=m7e),this._getGlobalPropagator().inject(e,r,o)},t.prototype.extract=function(e,r,o){return o===void 0&&(o=h7e),this._getGlobalPropagator().extract(e,r,o)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){V5(eTt,Y1.instance())},t.prototype._getGlobalPropagator=function(){return RE(eTt)||Lvo},t})()});var tTt,TBr=j(()=>{CBr();tTt=_Br.getInstance()});var rTt,wBr,IBr=j(()=>{YH();KCt();E7e();VCt();JH();rTt="trace",wBr=(function(){function t(){this._proxyTracerProvider=new H0e,this.wrapSpanContext=KPr,this.isSpanContextValid=jee,this.deleteSpan=WPr,this.getSpan=v7e,this.getActiveSpan=$Pr,this.getSpanContext=b7e,this.setSpan=q0e,this.setSpanContext=zPr}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=H5(rTt,this._proxyTracerProvider,Y1.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return RE(rTt)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){V5(rTt,Y1.instance()),this._proxyTracerProvider=new H0e},t})()});var s3,DBr=j(()=>{IBr();s3=wBr.getInstance()});var xt={};ss(xt,{DiagConsoleLogger:()=>L0e,DiagLogLevel:()=>Sm,INVALID_SPANID:()=>F0e,INVALID_SPAN_CONTEXT:()=>g7e,INVALID_TRACEID:()=>Q0e,ProxyTracer:()=>x7e,ProxyTracerProvider:()=>H0e,ROOT_CONTEXT:()=>d7e,SamplingDecision:()=>_7e,SpanKind:()=>C7e,SpanStatusCode:()=>Vx,TraceFlags:()=>Gee,ValueType:()=>e0,baggageEntryMetadataFromString:()=>QPr,context:()=>J1,createContextKey:()=>Vee,createNoopMeter:()=>HPr,createTraceState:()=>lBr,default:()=>Uvo,defaultTextMapGetter:()=>h7e,defaultTextMapSetter:()=>m7e,diag:()=>Er,isSpanContextValid:()=>jee,isValidSpanId:()=>jCt,isValidTraceId:()=>GCt,metrics:()=>V0e,propagation:()=>tTt,trace:()=>s3});var Uvo,ut=j(()=>{BCt();M0e();qPr();f7e();UCt();VPr();FCt();zCt();KCt();XPr();ZPr();eBr();qCt();uBr();E7e();y7e();fBr();dBr();yBr();TBr();DBr();Uvo={context:J1,diag:Er,metrics:V0e,propagation:tTt,trace:s3}});var z2,OBr,G0e,RBr,j0e,$0e,NBr,PBr,BBr,kBr,MBr,LBr,UBr,FBr,QBr,qBr,HBr,VBr,GBr,jBr,$Br,W0e=j(()=>{"use strict";z2="iflow-cli",OBr="iflow_cli.user_prompt",G0e="iflow_cli.tool_call",RBr="iflow_cli.api_request",j0e="iflow_cli.api_error",$0e="iflow_cli.api_response",NBr="iflow_cli.config",PBr="iflow_cli.flash_fallback",BBr="iflow_cli.next_speaker_check",kBr="iflow_cli.slash_command",MBr="iflow_cli.tool.call.count",LBr="iflow_cli.tool.call.latency",UBr="gen_ai.client.operation",FBr="gen_ai.client.operation.duration",QBr="gen_ai.client.token.usage",qBr="iflow_cli.session.count",HBr="iflow_cli.file.operation.count",VBr="iflow_cli.user_request.count",GBr="iflow_cli.user_request.latency",jBr="iflow_cli.user_experience.success",$Br="iflow_cli.user.identity"});import*as WBr from"os";function Gx(t){let e="0.3.14-beta.5",r={darwin:"macOS",win32:"Windows",linux:"Linux",freebsd:"FreeBSD",openbsd:"OpenBSD",sunos:"SunOS",aix:"AIX"},o=WBr.platform(),s=r[o]||o,a=t.getModel()||"unknown",i=!1,n=t.getContentGeneratorConfig?.();if(n){let c=n.authType,u=n.baseUrl||"";(c===br.LOGIN_WITH_IFLOW||c===br.IFLOW||c===br.OPENAI_COMPATIBLE&&u.includes("apis.iflow.cn"))&&(i=!0)}return{app_name:z2,tenant__:"gen_ai",version:e,platform:s,model_name:a,is_iflow_open_user:String(i)}}function zBr(){return nTt||(nTt=V0e.getMeter(z2)),nTt}function KBr(){if(F4)return;let t=zBr();t&&(iTt=t.createCounter(MBr,{description:"Counts tool calls, tagged by function name and success.",valueType:e0.INT}),oTt=t.createHistogram(LBr,{description:"Latency of tool calls in milliseconds.",unit:"ms",valueType:e0.INT}),z0e=t.createCounter(UBr,{description:"Counts API requests, tagged by model and status.",valueType:e0.INT}),K0e=t.createHistogram(FBr,{description:"Latency of API requests in milliseconds.",unit:"ms",valueType:e0.INT}),sTt=t.createCounter(QBr,{description:"Counts the total number of tokens used.",valueType:e0.INT}),aTt=t.createCounter(HBr,{description:"Counts file operations (create, read, update).",valueType:e0.INT}),cTt=t.createCounter(VBr,{description:"Counts user requests from prompt to completion.",valueType:e0.INT}),lTt=t.createHistogram(GBr,{description:"End-to-end latency of user requests in milliseconds.",unit:"ms",valueType:e0.INT}),uTt=t.createCounter(jBr,{description:"User experience success rate - counts successful user experiences including retries and fixes.",valueType:e0.INT}),fTt=t.createCounter($Br,{description:"User identity for tracking unique installations.",valueType:e0.INT}),F4=!0)}function T7e(t){let e=zBr();if(!e||!F4)return;e.createCounter(qBr,{description:"Count of CLI sessions started.",valueType:e0.INT}).add(1,Gx(t))}function YBr(t,e,r,o,s){if(!iTt||!oTt||!F4)return;let a={...Gx(t),function_name:e??"unknown",success:String(o),decision:s??"unknown"};iTt.add(1,a),oTt.record(r,{...Gx(t),function_name:e??"unknown"})}function $ee(t,e,r,o){!sTt||!F4||sTt.add(r,{...Gx(t),model:e??"unknown",type:o??"unknown"})}function JBr(t,e,r,o,s,a,i,n){if(!z0e||!K0e||!F4)return;let c={...Gx(t),model:e??"unknown",status_code:String(o??(s?"error":"ok"))};i!==void 0&&(c.http_status_code=String(i)),n!==void 0&&(c.business_code=String(n)),a&&(c.finish_reason=a),z0e.add(1,c);let u={...Gx(t),model:e??"unknown",http_status_code:String(i??200),finish_reason:a??"unknown"};n!=null&&(u.business_code=String(n)),K0e.record(r,u)}function XBr(t,e,r,o,s,a,i){if(!z0e||!K0e||!F4)return;let n={...Gx(t),model:e??"unknown",status_code:String(o??"error"),error:s??"unknown"};a!==void 0&&(n.http_status_code=String(a)),i!==void 0&&(n.business_code=String(i)),z0e.add(1,n);let c={...Gx(t),model:e??"unknown",http_status_code:String(a??0),error:s??"unknown"};i!=null&&(c.business_code=String(i)),K0e.record(r,c)}function ZH(t,e,r,o,s){if(!aTt||!F4)return;let a={...Gx(t),operation:e};r!==void 0&&(a.lines=String(r)),o!==void 0&&(a.mimetype=o),s!==void 0&&(a.extension=s),aTt.add(1,a)}function ZBr(t,e,r,o,s){if(!cTt||!lTt||!F4)return;let a={...Gx(t),prompt_id:e,success:String(o)};s&&(a.error=s),cTt.add(1,a),lTt.record(r,a)}function dTt(t,e,r=!1,o=!1,s){if(!uTt||!F4)return;let a={...Gx(t),success:String(e),had_retries:String(r),had_fixes:String(o)};s&&(a.final_error=s),uTt.add(1,a)}function ekr(t,e){if(!fTt||!F4)return;let r={...Gx(t),user_id:e};fTt.add(1,r)}var eO,nTt,iTt,oTt,z0e,K0e,sTt,aTt,cTt,lTt,uTt,fTt,F4,G5=j(()=>{"use strict";ut();W0e();IE();(function(t){t.CREATE="create",t.READ="read",t.UPDATE="update"})(eO||(eO={}));F4=!1});async function pTt(t,e,r){let o=w9e();try{let s=process.env.IFLOW_ENV||"",a=t.getCna();xPr({cna:a,userId:o,iFlowEnv:s})}catch(s){t.getDebugMode()&&console.error("Failed to send pv",s)}try{if(t.getDisableTelemetry())return;let s=t.getSessionId();ekr(t,o),await UH.startSession(s,o,e,r)}catch(s){t.getDebugMode()&&console.error("Failed to initialize CLI telemetry:",s)}}async function Y0e(t){try{if(t.getDisableTelemetry())return;await UH.endSession()}catch(e){t.getDebugMode()&&console.error("Failed to cleanup CLI telemetry:",e)}}async function w7e(t,e){if(!t.getDisableTelemetry())try{await UH.recordError(e)}catch(r){t.getDebugMode()&&console.error("Failed to record CLI error in telemetry:",r.message)}}var hTt=j(()=>{"use strict";E9e();L_t();NCt();G5();});var tkr=E(J0e=>{"use strict";Object.defineProperty(J0e,"__esModule",{value:!0});J0e.SeverityNumber=void 0;var Fvo;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(Fvo=J0e.SeverityNumber||(J0e.SeverityNumber={}))});var D7e=E(Wee=>{"use strict";Object.defineProperty(Wee,"__esModule",{value:!0});Wee.NOOP_LOGGER=Wee.NoopLogger=void 0;var I7e=class{emit(e){}};Wee.NoopLogger=I7e;Wee.NOOP_LOGGER=new I7e});var R7e=E(zee=>{"use strict";Object.defineProperty(zee,"__esModule",{value:!0});zee.NOOP_LOGGER_PROVIDER=zee.NoopLoggerProvider=void 0;var Qvo=D7e(),O7e=class{getLogger(e,r,o){return new Qvo.NoopLogger}};zee.NoopLoggerProvider=O7e;zee.NOOP_LOGGER_PROVIDER=new O7e});var gTt=E(N7e=>{"use strict";Object.defineProperty(N7e,"__esModule",{value:!0});N7e.ProxyLogger=void 0;var qvo=D7e(),mTt=class{constructor(e,r,o,s){this._provider=e,this.name=r,this.version=o,this.options=s}emit(e){this._getLogger().emit(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):qvo.NOOP_LOGGER}};N7e.ProxyLogger=mTt});var ATt=E(P7e=>{"use strict";Object.defineProperty(P7e,"__esModule",{value:!0});P7e.ProxyLoggerProvider=void 0;var Hvo=R7e(),Vvo=gTt(),yTt=class{getLogger(e,r,o){var s;return(s=this._getDelegateLogger(e,r,o))!==null&&s!==void 0?s:new Vvo.ProxyLogger(this,e,r,o)}_getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:Hvo.NOOP_LOGGER_PROVIDER}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,r,o){var s;return(s=this._delegate)===null||s===void 0?void 0:s.getLogger(e,r,o)}};P7e.ProxyLoggerProvider=yTt});var rkr=E(B7e=>{"use strict";Object.defineProperty(B7e,"__esModule",{value:!0});B7e._globalThis=void 0;B7e._globalThis=typeof globalThis=="object"?globalThis:global});var nkr=E(k7e=>{"use strict";Object.defineProperty(k7e,"__esModule",{value:!0});k7e._globalThis=void 0;var Gvo=rkr();Object.defineProperty(k7e,"_globalThis",{enumerable:!0,get:function(){return Gvo._globalThis}})});var ikr=E(M7e=>{"use strict";Object.defineProperty(M7e,"__esModule",{value:!0});M7e._globalThis=void 0;var jvo=nkr();Object.defineProperty(M7e,"_globalThis",{enumerable:!0,get:function(){return jvo._globalThis}})});var okr=E(j5=>{"use strict";Object.defineProperty(j5,"__esModule",{value:!0});j5.API_BACKWARDS_COMPATIBILITY_VERSION=j5.makeGetter=j5._global=j5.GLOBAL_LOGS_API_KEY=void 0;var $vo=ikr();j5.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");j5._global=$vo._globalThis;function Wvo(t,e,r){return o=>o===t?e:r}j5.makeGetter=Wvo;j5.API_BACKWARDS_COMPATIBILITY_VERSION=1});var akr=E(L7e=>{"use strict";Object.defineProperty(L7e,"__esModule",{value:!0});L7e.LogsAPI=void 0;var jx=okr(),zvo=R7e(),skr=ATt(),vTt=class t{constructor(){this._proxyLoggerProvider=new skr.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return jx._global[jx.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(jx._global[jx.GLOBAL_LOGS_API_KEY]=(0,jx.makeGetter)(jx.API_BACKWARDS_COMPATIBILITY_VERSION,e,zvo.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=jx._global[jx.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(jx._global,jx.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,o){return this.getLoggerProvider().getLogger(e,r,o)}disable(){delete jx._global[jx.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new skr.ProxyLoggerProvider}};L7e.LogsAPI=vTt});var Kee=E(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});t0.logs=t0.ProxyLoggerProvider=t0.ProxyLogger=t0.NoopLoggerProvider=t0.NOOP_LOGGER_PROVIDER=t0.NoopLogger=t0.NOOP_LOGGER=t0.SeverityNumber=void 0;var Kvo=tkr();Object.defineProperty(t0,"SeverityNumber",{enumerable:!0,get:function(){return Kvo.SeverityNumber}});var ckr=D7e();Object.defineProperty(t0,"NOOP_LOGGER",{enumerable:!0,get:function(){return ckr.NOOP_LOGGER}});Object.defineProperty(t0,"NoopLogger",{enumerable:!0,get:function(){return ckr.NoopLogger}});var lkr=R7e();Object.defineProperty(t0,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return lkr.NOOP_LOGGER_PROVIDER}});Object.defineProperty(t0,"NoopLoggerProvider",{enumerable:!0,get:function(){return lkr.NoopLoggerProvider}});var Yvo=gTt();Object.defineProperty(t0,"ProxyLogger",{enumerable:!0,get:function(){return Yvo.ProxyLogger}});var Jvo=ATt();Object.defineProperty(t0,"ProxyLoggerProvider",{enumerable:!0,get:function(){return Jvo.ProxyLoggerProvider}});var Xvo=akr();t0.logs=Xvo.LogsAPI.getInstance()});function Ph(t){let e={},r=t.length;for(let o=0;o<r;o++){let s=t[o];s&&(e[String(s).toUpperCase().replace(/[-.]/g,"_")]=s)}return e}var bTt=j(()=>{});var ukr,fkr,dkr,pkr,hkr,mkr,gkr,ykr,Akr,vkr,bkr,Ekr,Skr,xkr,_kr,Ckr,Tkr,wkr,Ikr,Dkr,Okr,Rkr,Nkr,Pkr,Bkr,kkr,Mkr,Lkr,Ukr,Fkr,Qkr,qkr,Hkr,Vkr,Gkr,jkr,$kr,Wkr,zkr,Kkr,Ykr,Jkr,Xkr,Zkr,eMr,tMr,rMr,nMr,iMr,oMr,sMr,aMr,cMr,lMr,uMr,fMr,dMr,pMr,hMr,mMr,gMr,yMr,AMr,vMr,bMr,EMr,SMr,xMr,_Mr,CMr,TMr,wMr,IMr,DMr,OMr,RMr,NMr,PMr,BMr,kMr,MMr,LMr,UMr,FMr,QMr,qMr,HMr,VMr,GMr,jMr,$Mr,WMr,zMr,KMr,YMr,JMr,XMr,ZMr,eLr,tLr,rLr,nLr,iLr,oLr,sLr,aLr,cLr,lLr,uLr,fLr,dLr,pLr,hLr,mLr,gLr,yLr,ALr,vLr,bLr,ELr,SLr,xLr,_Lr,CLr,TLr,wLr,ILr,DLr,Zvo,ebo,tbo,rbo,nbo,ibo,obo,sbo,abo,cbo,lbo,ubo,fbo,dbo,pbo,hbo,mbo,gbo,ybo,Abo,vbo,bbo,Ebo,Sbo,xbo,_bo,Cbo,Tbo,wbo,Ibo,Dbo,Obo,Rbo,Nbo,Pbo,Bbo,kbo,Mbo,Lbo,Ubo,Fbo,Qbo,qbo,Hbo,Vbo,Gbo,jbo,$bo,Wbo,zbo,Kbo,Ybo,Jbo,Xbo,Zbo,eEo,tEo,rEo,nEo,iEo,oEo,sEo,aEo,cEo,lEo,uEo,fEo,dEo,pEo,hEo,mEo,gEo,yEo,AEo,vEo,bEo,EEo,SEo,xEo,_Eo,CEo,TEo,wEo,IEo,DEo,OEo,REo,NEo,PEo,BEo,kEo,MEo,LEo,UEo,FEo,QEo,qEo,HEo,VEo,GEo,jEo,$Eo,WEo,zEo,KEo,YEo,JEo,XEo,ZEo,eSo,tSo,rSo,nSo,iSo,oSo,sSo,aSo,cSo,lSo,uSo,fSo,dSo,pSo,hSo,mSo,gSo,ySo,ASo,Yee,OLr,RLr,NLr,PLr,BLr,kLr,MLr,LLr,ULr,FLr,QLr,qLr,HLr,VLr,GLr,jLr,$Lr,WLr,zLr,KLr,YLr,JLr,XLr,ZLr,eUr,tUr,rUr,nUr,iUr,oUr,sUr,aUr,cUr,lUr,uUr,fUr,dUr,pUr,hUr,mUr,gUr,yUr,AUr,vUr,bUr,EUr,SUr,vSo,bSo,ESo,SSo,xSo,_So,CSo,TSo,wSo,ISo,DSo,OSo,RSo,NSo,PSo,BSo,kSo,MSo,LSo,USo,FSo,QSo,qSo,HSo,VSo,GSo,jSo,$So,WSo,zSo,KSo,YSo,JSo,XSo,ZSo,exo,txo,rxo,nxo,ixo,oxo,sxo,axo,cxo,lxo,uxo,fxo,dxo,xUr,_Ur,CUr,TUr,wUr,IUr,DUr,OUr,RUr,NUr,PUr,pxo,hxo,mxo,gxo,yxo,Axo,vxo,bxo,Exo,Sxo,xxo,_xo,BUr,kUr,MUr,LUr,UUr,Cxo,Txo,wxo,Ixo,Dxo,Oxo,FUr,QUr,qUr,Rxo,Nxo,Pxo,Bxo,HUr,VUr,GUr,jUr,kxo,Mxo,Lxo,Uxo,Fxo,$Ur,WUr,zUr,KUr,YUr,JUr,XUr,Qxo,qxo,Hxo,Vxo,Gxo,jxo,$xo,Wxo,ZUr,eFr,tFr,rFr,nFr,zxo,Kxo,Yxo,Jxo,Xxo,Zxo,iFr,oFr,sFr,aFr,cFr,lFr,uFr,fFr,dFr,pFr,hFr,mFr,gFr,yFr,AFr,vFr,bFr,EFr,SFr,xFr,_Fr,e_o,t_o,r_o,n_o,i_o,o_o,s_o,a_o,c_o,l_o,u_o,f_o,d_o,p_o,h_o,m_o,g_o,y_o,A_o,v_o,b_o,E_o,CFr,TFr,wFr,IFr,DFr,S_o,x_o,__o,C_o,T_o,w_o,OFr,RFr,I_o,D_o,O_o,NFr,PFr,R_o,N_o,P_o,BFr,kFr,MFr,LFr,UFr,FFr,QFr,qFr,HFr,VFr,GFr,jFr,$Fr,WFr,zFr,KFr,YFr,B_o,k_o,M_o,L_o,U_o,F_o,Q_o,q_o,H_o,V_o,G_o,j_o,$_o,W_o,z_o,K_o,Y_o,J_o,JFr,XFr,X_o,Z_o,eCo,ZFr=j(()=>{bTt();ukr="aws.lambda.invoked_arn",fkr="db.system",dkr="db.connection_string",pkr="db.user",hkr="db.jdbc.driver_classname",mkr="db.name",gkr="db.statement",ykr="db.operation",Akr="db.mssql.instance_name",vkr="db.cassandra.keyspace",bkr="db.cassandra.page_size",Ekr="db.cassandra.consistency_level",Skr="db.cassandra.table",xkr="db.cassandra.idempotence",_kr="db.cassandra.speculative_execution_count",Ckr="db.cassandra.coordinator.id",Tkr="db.cassandra.coordinator.dc",wkr="db.hbase.namespace",Ikr="db.redis.database_index",Dkr="db.mongodb.collection",Okr="db.sql.table",Rkr="exception.type",Nkr="exception.message",Pkr="exception.stacktrace",Bkr="exception.escaped",kkr="faas.trigger",Mkr="faas.execution",Lkr="faas.document.collection",Ukr="faas.document.operation",Fkr="faas.document.time",Qkr="faas.document.name",qkr="faas.time",Hkr="faas.cron",Vkr="faas.coldstart",Gkr="faas.invoked_name",jkr="faas.invoked_provider",$kr="faas.invoked_region",Wkr="net.transport",zkr="net.peer.ip",Kkr="net.peer.port",Ykr="net.peer.name",Jkr="net.host.ip",Xkr="net.host.port",Zkr="net.host.name",eMr="net.host.connection.type",tMr="net.host.connection.subtype",rMr="net.host.carrier.name",nMr="net.host.carrier.mcc",iMr="net.host.carrier.mnc",oMr="net.host.carrier.icc",sMr="peer.service",aMr="enduser.id",cMr="enduser.role",lMr="enduser.scope",uMr="thread.id",fMr="thread.name",dMr="code.function",pMr="code.namespace",hMr="code.filepath",mMr="code.lineno",gMr="http.method",yMr="http.url",AMr="http.target",vMr="http.host",bMr="http.scheme",EMr="http.status_code",SMr="http.flavor",xMr="http.user_agent",_Mr="http.request_content_length",CMr="http.request_content_length_uncompressed",TMr="http.response_content_length",wMr="http.response_content_length_uncompressed",IMr="http.server_name",DMr="http.route",OMr="http.client_ip",RMr="aws.dynamodb.table_names",NMr="aws.dynamodb.consumed_capacity",PMr="aws.dynamodb.item_collection_metrics",BMr="aws.dynamodb.provisioned_read_capacity",kMr="aws.dynamodb.provisioned_write_capacity",MMr="aws.dynamodb.consistent_read",LMr="aws.dynamodb.projection",UMr="aws.dynamodb.limit",FMr="aws.dynamodb.attributes_to_get",QMr="aws.dynamodb.index_name",qMr="aws.dynamodb.select",HMr="aws.dynamodb.global_secondary_indexes",VMr="aws.dynamodb.local_secondary_indexes",GMr="aws.dynamodb.exclusive_start_table",jMr="aws.dynamodb.table_count",$Mr="aws.dynamodb.scan_forward",WMr="aws.dynamodb.segment",zMr="aws.dynamodb.total_segments",KMr="aws.dynamodb.count",YMr="aws.dynamodb.scanned_count",JMr="aws.dynamodb.attribute_definitions",XMr="aws.dynamodb.global_secondary_index_updates",ZMr="messaging.system",eLr="messaging.destination",tLr="messaging.destination_kind",rLr="messaging.temp_destination",nLr="messaging.protocol",iLr="messaging.protocol_version",oLr="messaging.url",sLr="messaging.message_id",aLr="messaging.conversation_id",cLr="messaging.message_payload_size_bytes",lLr="messaging.message_payload_compressed_size_bytes",uLr="messaging.operation",fLr="messaging.consumer_id",dLr="messaging.rabbitmq.routing_key",pLr="messaging.kafka.message_key",hLr="messaging.kafka.consumer_group",mLr="messaging.kafka.client_id",gLr="messaging.kafka.partition",yLr="messaging.kafka.tombstone",ALr="rpc.system",vLr="rpc.service",bLr="rpc.method",ELr="rpc.grpc.status_code",SLr="rpc.jsonrpc.version",xLr="rpc.jsonrpc.request_id",_Lr="rpc.jsonrpc.error_code",CLr="rpc.jsonrpc.error_message",TLr="message.type",wLr="message.id",ILr="message.compressed_size",DLr="message.uncompressed_size",Zvo=ukr,ebo=fkr,tbo=dkr,rbo=pkr,nbo=hkr,ibo=mkr,obo=gkr,sbo=ykr,abo=Akr,cbo=vkr,lbo=bkr,ubo=Ekr,fbo=Skr,dbo=xkr,pbo=_kr,hbo=Ckr,mbo=Tkr,gbo=wkr,ybo=Ikr,Abo=Dkr,vbo=Okr,bbo=Rkr,Ebo=Nkr,Sbo=Pkr,xbo=Bkr,_bo=kkr,Cbo=Mkr,Tbo=Lkr,wbo=Ukr,Ibo=Fkr,Dbo=Qkr,Obo=qkr,Rbo=Hkr,Nbo=Vkr,Pbo=Gkr,Bbo=jkr,kbo=$kr,Mbo=Wkr,Lbo=zkr,Ubo=Kkr,Fbo=Ykr,Qbo=Jkr,qbo=Xkr,Hbo=Zkr,Vbo=eMr,Gbo=tMr,jbo=rMr,$bo=nMr,Wbo=iMr,zbo=oMr,Kbo=sMr,Ybo=aMr,Jbo=cMr,Xbo=lMr,Zbo=uMr,eEo=fMr,tEo=dMr,rEo=pMr,nEo=hMr,iEo=mMr,oEo=gMr,sEo=yMr,aEo=AMr,cEo=vMr,lEo=bMr,uEo=EMr,fEo=SMr,dEo=xMr,pEo=_Mr,hEo=CMr,mEo=TMr,gEo=wMr,yEo=IMr,AEo=DMr,vEo=OMr,bEo=RMr,EEo=NMr,SEo=PMr,xEo=BMr,_Eo=kMr,CEo=MMr,TEo=LMr,wEo=UMr,IEo=FMr,DEo=QMr,OEo=qMr,REo=HMr,NEo=VMr,PEo=GMr,BEo=jMr,kEo=$Mr,MEo=WMr,LEo=zMr,UEo=KMr,FEo=YMr,QEo=JMr,qEo=XMr,HEo=ZMr,VEo=eLr,GEo=tLr,jEo=rLr,$Eo=nLr,WEo=iLr,zEo=oLr,KEo=sLr,YEo=aLr,JEo=cLr,XEo=lLr,ZEo=uLr,eSo=fLr,tSo=dLr,rSo=pLr,nSo=hLr,iSo=mLr,oSo=gLr,sSo=yLr,aSo=ALr,cSo=vLr,lSo=bLr,uSo=ELr,fSo=SLr,dSo=xLr,pSo=_Lr,hSo=CLr,mSo=TLr,gSo=wLr,ySo=ILr,ASo=DLr,Yee=Ph([ukr,fkr,dkr,pkr,hkr,mkr,gkr,ykr,Akr,vkr,bkr,Ekr,Skr,xkr,_kr,Ckr,Tkr,wkr,Ikr,Dkr,Okr,Rkr,Nkr,Pkr,Bkr,kkr,Mkr,Lkr,Ukr,Fkr,Qkr,qkr,Hkr,Vkr,Gkr,jkr,$kr,Wkr,zkr,Kkr,Ykr,Jkr,Xkr,Zkr,eMr,tMr,rMr,nMr,iMr,oMr,sMr,aMr,cMr,lMr,uMr,fMr,dMr,pMr,hMr,mMr,gMr,yMr,AMr,vMr,bMr,EMr,SMr,xMr,_Mr,CMr,TMr,wMr,IMr,DMr,OMr,RMr,NMr,PMr,BMr,kMr,MMr,LMr,UMr,FMr,QMr,qMr,HMr,VMr,GMr,jMr,$Mr,WMr,zMr,KMr,YMr,JMr,XMr,ZMr,eLr,tLr,rLr,nLr,iLr,oLr,sLr,aLr,cLr,lLr,uLr,fLr,dLr,pLr,hLr,mLr,gLr,yLr,ALr,vLr,bLr,ELr,SLr,xLr,_Lr,CLr,TLr,wLr,ILr,DLr]),OLr="other_sql",RLr="mssql",NLr="mysql",PLr="oracle",BLr="db2",kLr="postgresql",MLr="redshift",LLr="hive",ULr="cloudscape",FLr="hsqldb",QLr="progress",qLr="maxdb",HLr="hanadb",VLr="ingres",GLr="firstsql",jLr="edb",$Lr="cache",WLr="adabas",zLr="firebird",KLr="derby",YLr="filemaker",JLr="informix",XLr="instantdb",ZLr="interbase",eUr="mariadb",tUr="netezza",rUr="pervasive",nUr="pointbase",iUr="sqlite",oUr="sybase",sUr="teradata",aUr="vertica",cUr="h2",lUr="coldfusion",uUr="cassandra",fUr="hbase",dUr="mongodb",pUr="redis",hUr="couchbase",mUr="couchdb",gUr="cosmosdb",yUr="dynamodb",AUr="neo4j",vUr="geode",bUr="elasticsearch",EUr="memcached",SUr="cockroachdb",vSo=OLr,bSo=RLr,ESo=NLr,SSo=PLr,xSo=BLr,_So=kLr,CSo=MLr,TSo=LLr,wSo=ULr,ISo=FLr,DSo=QLr,OSo=qLr,RSo=HLr,NSo=VLr,PSo=GLr,BSo=jLr,kSo=$Lr,MSo=WLr,LSo=zLr,USo=KLr,FSo=YLr,QSo=JLr,qSo=XLr,HSo=ZLr,VSo=eUr,GSo=tUr,jSo=rUr,$So=nUr,WSo=iUr,zSo=oUr,KSo=sUr,YSo=aUr,JSo=cUr,XSo=lUr,ZSo=uUr,exo=fUr,txo=dUr,rxo=pUr,nxo=hUr,ixo=mUr,oxo=gUr,sxo=yUr,axo=AUr,cxo=vUr,lxo=bUr,uxo=EUr,fxo=SUr,dxo=Ph([OLr,RLr,NLr,PLr,BLr,kLr,MLr,LLr,ULr,FLr,QLr,qLr,HLr,VLr,GLr,jLr,$Lr,WLr,zLr,KLr,YLr,JLr,XLr,ZLr,eUr,tUr,rUr,nUr,iUr,oUr,sUr,aUr,cUr,lUr,uUr,fUr,dUr,pUr,hUr,mUr,gUr,yUr,AUr,vUr,bUr,EUr,SUr]),xUr="all",_Ur="each_quorum",CUr="quorum",TUr="local_quorum",wUr="one",IUr="two",DUr="three",OUr="local_one",RUr="any",NUr="serial",PUr="local_serial",pxo=xUr,hxo=_Ur,mxo=CUr,gxo=TUr,yxo=wUr,Axo=IUr,vxo=DUr,bxo=OUr,Exo=RUr,Sxo=NUr,xxo=PUr,_xo=Ph([xUr,_Ur,CUr,TUr,wUr,IUr,DUr,OUr,RUr,NUr,PUr]),BUr="datasource",kUr="http",MUr="pubsub",LUr="timer",UUr="other",Cxo=BUr,Txo=kUr,wxo=MUr,Ixo=LUr,Dxo=UUr,Oxo=Ph([BUr,kUr,MUr,LUr,UUr]),FUr="insert",QUr="edit",qUr="delete",Rxo=FUr,Nxo=QUr,Pxo=qUr,Bxo=Ph([FUr,QUr,qUr]),HUr="alibaba_cloud",VUr="aws",GUr="azure",jUr="gcp",kxo=HUr,Mxo=VUr,Lxo=GUr,Uxo=jUr,Fxo=Ph([HUr,VUr,GUr,jUr]),$Ur="ip_tcp",WUr="ip_udp",zUr="ip",KUr="unix",YUr="pipe",JUr="inproc",XUr="other",Qxo=$Ur,qxo=WUr,Hxo=zUr,Vxo=KUr,Gxo=YUr,jxo=JUr,$xo=XUr,Wxo=Ph([$Ur,WUr,zUr,KUr,YUr,JUr,XUr]),ZUr="wifi",eFr="wired",tFr="cell",rFr="unavailable",nFr="unknown",zxo=ZUr,Kxo=eFr,Yxo=tFr,Jxo=rFr,Xxo=nFr,Zxo=Ph([ZUr,eFr,tFr,rFr,nFr]),iFr="gprs",oFr="edge",sFr="umts",aFr="cdma",cFr="evdo_0",lFr="evdo_a",uFr="cdma2000_1xrtt",fFr="hsdpa",dFr="hsupa",pFr="hspa",hFr="iden",mFr="evdo_b",gFr="lte",yFr="ehrpd",AFr="hspap",vFr="gsm",bFr="td_scdma",EFr="iwlan",SFr="nr",xFr="nrnsa",_Fr="lte_ca",e_o=iFr,t_o=oFr,r_o=sFr,n_o=aFr,i_o=cFr,o_o=lFr,s_o=uFr,a_o=fFr,c_o=dFr,l_o=pFr,u_o=hFr,f_o=mFr,d_o=gFr,p_o=yFr,h_o=AFr,m_o=vFr,g_o=bFr,y_o=EFr,A_o=SFr,v_o=xFr,b_o=_Fr,E_o=Ph([iFr,oFr,sFr,aFr,cFr,lFr,uFr,fFr,dFr,pFr,hFr,mFr,gFr,yFr,AFr,vFr,bFr,EFr,SFr,xFr,_Fr]),CFr="1.0",TFr="1.1",wFr="2.0",IFr="SPDY",DFr="QUIC",S_o=CFr,x_o=TFr,__o=wFr,C_o=IFr,T_o=DFr,w_o={HTTP_1_0:CFr,HTTP_1_1:TFr,HTTP_2_0:wFr,SPDY:IFr,QUIC:DFr},OFr="queue",RFr="topic",I_o=OFr,D_o=RFr,O_o=Ph([OFr,RFr]),NFr="receive",PFr="process",R_o=NFr,N_o=PFr,P_o=Ph([NFr,PFr]),BFr=0,kFr=1,MFr=2,LFr=3,UFr=4,FFr=5,QFr=6,qFr=7,HFr=8,VFr=9,GFr=10,jFr=11,$Fr=12,WFr=13,zFr=14,KFr=15,YFr=16,B_o=BFr,k_o=kFr,M_o=MFr,L_o=LFr,U_o=UFr,F_o=FFr,Q_o=QFr,q_o=qFr,H_o=HFr,V_o=VFr,G_o=GFr,j_o=jFr,$_o=$Fr,W_o=WFr,z_o=zFr,K_o=KFr,Y_o=YFr,J_o={OK:BFr,CANCELLED:kFr,UNKNOWN:MFr,INVALID_ARGUMENT:LFr,DEADLINE_EXCEEDED:UFr,NOT_FOUND:FFr,ALREADY_EXISTS:QFr,PERMISSION_DENIED:qFr,RESOURCE_EXHAUSTED:HFr,FAILED_PRECONDITION:VFr,ABORTED:GFr,OUT_OF_RANGE:jFr,UNIMPLEMENTED:$Fr,INTERNAL:WFr,UNAVAILABLE:zFr,DATA_LOSS:KFr,UNAUTHENTICATED:YFr},JFr="SENT",XFr="RECEIVED",X_o=JFr,Z_o=XFr,eCo=Ph([JFr,XFr])});var eQr=j(()=>{ZFr()});var tQr,rQr,nQr,iQr,oQr,sQr,aQr,cQr,lQr,uQr,fQr,dQr,pQr,hQr,mQr,gQr,yQr,AQr,vQr,bQr,EQr,SQr,xQr,_Qr,CQr,TQr,wQr,IQr,DQr,OQr,RQr,NQr,PQr,BQr,kQr,MQr,LQr,UQr,FQr,QQr,qQr,HQr,VQr,GQr,jQr,$Qr,WQr,zQr,KQr,YQr,JQr,XQr,ZQr,eqr,tqr,rqr,nqr,iqr,oqr,sqr,aqr,cqr,lqr,uqr,fqr,dqr,pqr,hqr,mqr,gqr,yqr,Aqr,vqr,bqr,Eqr,Sqr,xqr,_qr,Cqr,Tqr,wqr,tCo,rCo,nCo,iCo,oCo,sCo,aCo,cCo,lCo,uCo,fCo,dCo,pCo,hCo,mCo,gCo,yCo,ACo,vCo,bCo,ECo,SCo,xCo,_Co,CCo,TCo,wCo,ICo,DCo,OCo,RCo,NCo,PCo,BCo,kCo,MCo,LCo,UCo,FCo,QCo,qCo,HCo,VCo,GCo,jCo,$Co,WCo,zCo,KCo,YCo,JCo,XCo,ZCo,eTo,tTo,rTo,nTo,iTo,oTo,sTo,aTo,cTo,lTo,uTo,fTo,dTo,pTo,hTo,mTo,gTo,yTo,ATo,vTo,bTo,ETo,STo,xTo,_To,CTo,TTo,wTo,ITo,Iqr,Dqr,Oqr,Rqr,DTo,OTo,RTo,NTo,PTo,Nqr,Pqr,Bqr,kqr,Mqr,Lqr,Uqr,Fqr,Qqr,qqr,Hqr,Vqr,Gqr,jqr,$qr,Wqr,zqr,BTo,kTo,MTo,LTo,UTo,FTo,QTo,qTo,HTo,VTo,GTo,jTo,$To,WTo,zTo,KTo,YTo,JTo,Kqr,Yqr,XTo,ZTo,e4o,Jqr,Xqr,Zqr,eHr,tHr,rHr,nHr,t4o,r4o,n4o,i4o,o4o,s4o,a4o,c4o,iHr,oHr,sHr,aHr,cHr,lHr,uHr,fHr,dHr,pHr,hHr,l4o,u4o,f4o,d4o,p4o,h4o,m4o,g4o,y4o,A4o,v4o,b4o,mHr,gHr,yHr,AHr,vHr,bHr,EHr,SHr,xHr,_Hr,E4o,S4o,x4o,_4o,C4o,T4o,w4o,I4o,D4o,O4o,R4o,CHr=j(()=>{bTt();tQr="cloud.provider",rQr="cloud.account.id",nQr="cloud.region",iQr="cloud.availability_zone",oQr="cloud.platform",sQr="aws.ecs.container.arn",aQr="aws.ecs.cluster.arn",cQr="aws.ecs.launchtype",lQr="aws.ecs.task.arn",uQr="aws.ecs.task.family",fQr="aws.ecs.task.revision",dQr="aws.eks.cluster.arn",pQr="aws.log.group.names",hQr="aws.log.group.arns",mQr="aws.log.stream.names",gQr="aws.log.stream.arns",yQr="container.name",AQr="container.id",vQr="container.runtime",bQr="container.image.name",EQr="container.image.tag",SQr="deployment.environment",xQr="device.id",_Qr="device.model.identifier",CQr="device.model.name",TQr="faas.name",wQr="faas.id",IQr="faas.version",DQr="faas.instance",OQr="faas.max_memory",RQr="host.id",NQr="host.name",PQr="host.type",BQr="host.arch",kQr="host.image.name",MQr="host.image.id",LQr="host.image.version",UQr="k8s.cluster.name",FQr="k8s.node.name",QQr="k8s.node.uid",qQr="k8s.namespace.name",HQr="k8s.pod.uid",VQr="k8s.pod.name",GQr="k8s.container.name",jQr="k8s.replicaset.uid",$Qr="k8s.replicaset.name",WQr="k8s.deployment.uid",zQr="k8s.deployment.name",KQr="k8s.statefulset.uid",YQr="k8s.statefulset.name",JQr="k8s.daemonset.uid",XQr="k8s.daemonset.name",ZQr="k8s.job.uid",eqr="k8s.job.name",tqr="k8s.cronjob.uid",rqr="k8s.cronjob.name",nqr="os.type",iqr="os.description",oqr="os.name",sqr="os.version",aqr="process.pid",cqr="process.executable.name",lqr="process.executable.path",uqr="process.command",fqr="process.command_line",dqr="process.command_args",pqr="process.owner",hqr="process.runtime.name",mqr="process.runtime.version",gqr="process.runtime.description",yqr="service.name",Aqr="service.namespace",vqr="service.instance.id",bqr="service.version",Eqr="telemetry.sdk.name",Sqr="telemetry.sdk.language",xqr="telemetry.sdk.version",_qr="telemetry.auto.version",Cqr="webengine.name",Tqr="webengine.version",wqr="webengine.description",tCo=tQr,rCo=rQr,nCo=nQr,iCo=iQr,oCo=oQr,sCo=sQr,aCo=aQr,cCo=cQr,lCo=lQr,uCo=uQr,fCo=fQr,dCo=dQr,pCo=pQr,hCo=hQr,mCo=mQr,gCo=gQr,yCo=yQr,ACo=AQr,vCo=vQr,bCo=bQr,ECo=EQr,SCo=SQr,xCo=xQr,_Co=_Qr,CCo=CQr,TCo=TQr,wCo=wQr,ICo=IQr,DCo=DQr,OCo=OQr,RCo=RQr,NCo=NQr,PCo=PQr,BCo=BQr,kCo=kQr,MCo=MQr,LCo=LQr,UCo=UQr,FCo=FQr,QCo=QQr,qCo=qQr,HCo=HQr,VCo=VQr,GCo=GQr,jCo=jQr,$Co=$Qr,WCo=WQr,zCo=zQr,KCo=KQr,YCo=YQr,JCo=JQr,XCo=XQr,ZCo=ZQr,eTo=eqr,tTo=tqr,rTo=rqr,nTo=nqr,iTo=iqr,oTo=oqr,sTo=sqr,aTo=aqr,cTo=cqr,lTo=lqr,uTo=uqr,fTo=fqr,dTo=dqr,pTo=pqr,hTo=hqr,mTo=mqr,gTo=gqr,yTo=yqr,ATo=Aqr,vTo=vqr,bTo=bqr,ETo=Eqr,STo=Sqr,xTo=xqr,_To=_qr,CTo=Cqr,TTo=Tqr,wTo=wqr,ITo=Ph([tQr,rQr,nQr,iQr,oQr,sQr,aQr,cQr,lQr,uQr,fQr,dQr,pQr,hQr,mQr,gQr,yQr,AQr,vQr,bQr,EQr,SQr,xQr,_Qr,CQr,TQr,wQr,IQr,DQr,OQr,RQr,NQr,PQr,BQr,kQr,MQr,LQr,UQr,FQr,QQr,qQr,HQr,VQr,GQr,jQr,$Qr,WQr,zQr,KQr,YQr,JQr,XQr,ZQr,eqr,tqr,rqr,nqr,iqr,oqr,sqr,aqr,cqr,lqr,uqr,fqr,dqr,pqr,hqr,mqr,gqr,yqr,Aqr,vqr,bqr,Eqr,Sqr,xqr,_qr,Cqr,Tqr,wqr]),Iqr="alibaba_cloud",Dqr="aws",Oqr="azure",Rqr="gcp",DTo=Iqr,OTo=Dqr,RTo=Oqr,NTo=Rqr,PTo=Ph([Iqr,Dqr,Oqr,Rqr]),Nqr="alibaba_cloud_ecs",Pqr="alibaba_cloud_fc",Bqr="aws_ec2",kqr="aws_ecs",Mqr="aws_eks",Lqr="aws_lambda",Uqr="aws_elastic_beanstalk",Fqr="azure_vm",Qqr="azure_container_instances",qqr="azure_aks",Hqr="azure_functions",Vqr="azure_app_service",Gqr="gcp_compute_engine",jqr="gcp_cloud_run",$qr="gcp_kubernetes_engine",Wqr="gcp_cloud_functions",zqr="gcp_app_engine",BTo=Nqr,kTo=Pqr,MTo=Bqr,LTo=kqr,UTo=Mqr,FTo=Lqr,QTo=Uqr,qTo=Fqr,HTo=Qqr,VTo=qqr,GTo=Hqr,jTo=Vqr,$To=Gqr,WTo=jqr,zTo=$qr,KTo=Wqr,YTo=zqr,JTo=Ph([Nqr,Pqr,Bqr,kqr,Mqr,Lqr,Uqr,Fqr,Qqr,qqr,Hqr,Vqr,Gqr,jqr,$qr,Wqr,zqr]),Kqr="ec2",Yqr="fargate",XTo=Kqr,ZTo=Yqr,e4o=Ph([Kqr,Yqr]),Jqr="amd64",Xqr="arm32",Zqr="arm64",eHr="ia64",tHr="ppc32",rHr="ppc64",nHr="x86",t4o=Jqr,r4o=Xqr,n4o=Zqr,i4o=eHr,o4o=tHr,s4o=rHr,a4o=nHr,c4o=Ph([Jqr,Xqr,Zqr,eHr,tHr,rHr,nHr]),iHr="windows",oHr="linux",sHr="darwin",aHr="freebsd",cHr="netbsd",lHr="openbsd",uHr="dragonflybsd",fHr="hpux",dHr="aix",pHr="solaris",hHr="z_os",l4o=iHr,u4o=oHr,f4o=sHr,d4o=aHr,p4o=cHr,h4o=lHr,m4o=uHr,g4o=fHr,y4o=dHr,A4o=pHr,v4o=hHr,b4o=Ph([iHr,oHr,sHr,aHr,cHr,lHr,uHr,fHr,dHr,pHr,hHr]),mHr="cpp",gHr="dotnet",yHr="erlang",AHr="go",vHr="java",bHr="nodejs",EHr="php",SHr="python",xHr="ruby",_Hr="webjs",E4o=mHr,S4o=gHr,x4o=yHr,_4o=AHr,C4o=vHr,T4o=bHr,w4o=EHr,I4o=SHr,D4o=xHr,O4o=_Hr,R4o=Ph([mHr,gHr,yHr,AHr,vHr,bHr,EHr,SHr,xHr,_Hr])});var THr=j(()=>{CHr()});var N4o,P4o,B4o,k4o,M4o,L4o,U4o,F4o,Q4o,q4o,H4o,V4o,G4o,j4o,$4o,W4o,z4o,K4o,Y4o,J4o,X4o,Z4o,e6o,t6o,r6o,n6o,i6o,o6o,s6o,a6o,c6o,l6o,u6o,f6o,d6o,p6o,h6o,m6o,g6o,y6o,A6o,v6o,tQc,rQc,b6o,E6o,S6o,x6o,_6o,C6o,T6o,w6o,I6o,D6o,O6o,nQc,R6o,N6o,P6o,B6o,iQc,k6o,M6o,L6o,U6o,F6o,Q6o,q6o,H6o,V6o,G6o,j6o,$6o,W6o,z6o,K6o,oQc,Y6o,J6o,X6o,Z6o,ewo,two,rwo,nwo,iwo,owo,swo,awo,cwo,sQc,aQc,lwo,uwo,fwo,dwo,pwo,hwo,mwo,gwo,cQc,ywo,Awo,vwo,ETt,STt,bwo,Ewo,Swo,xwo,_wo,Cwo,Two,wwo,Iwo,lQc,Dwo,Owo,uQc,Rwo,Nwo,fQc,Pwo,Bwo,kwo,Mwo,Lwo,Uwo,Fwo,Qwo,qwo,Hwo,Vwo,Gwo,jwo,wHr=j(()=>{N4o="aspnetcore.diagnostics.exception.result",P4o="aborted",B4o="handled",k4o="skipped",M4o="unhandled",L4o="aspnetcore.diagnostics.handler.type",U4o="aspnetcore.rate_limiting.policy",F4o="aspnetcore.rate_limiting.result",Q4o="acquired",q4o="endpoint_limiter",H4o="global_limiter",V4o="request_canceled",G4o="aspnetcore.request.is_unhandled",j4o="aspnetcore.routing.is_fallback",$4o="aspnetcore.routing.match_status",W4o="failure",z4o="success",K4o="aspnetcore.user.is_authenticated",Y4o="client.address",J4o="client.port",X4o="code.column.number",Z4o="code.file.path",e6o="code.function.name",t6o="code.line.number",r6o="code.stacktrace",n6o="db.collection.name",i6o="db.namespace",o6o="db.operation.batch.size",s6o="db.operation.name",a6o="db.query.summary",c6o="db.query.text",l6o="db.response.status_code",u6o="db.stored_procedure.name",f6o="db.system.name",d6o="mariadb",p6o="microsoft.sql_server",h6o="mysql",m6o="postgresql",g6o="dotnet.gc.heap.generation",y6o="gen0",A6o="gen1",v6o="gen2",tQc="loh",rQc="poh",b6o="error.type",E6o="_OTHER",S6o="exception.escaped",x6o="exception.message",_6o="exception.stacktrace",C6o="exception.type",T6o=t=>`http.request.header.${t}`,w6o="http.request.method",I6o="_OTHER",D6o="CONNECT",O6o="DELETE",nQc="GET",R6o="HEAD",N6o="OPTIONS",P6o="PATCH",B6o="POST",iQc="PUT",k6o="TRACE",M6o="http.request.method_original",L6o="http.request.resend_count",U6o=t=>`http.response.header.${t}`,F6o="http.response.status_code",Q6o="http.route",q6o="jvm.gc.action",H6o="jvm.gc.name",V6o="jvm.memory.pool.name",G6o="jvm.memory.type",j6o="heap",$6o="non_heap",W6o="jvm.thread.daemon",z6o="jvm.thread.state",K6o="blocked",oQc="new",Y6o="runnable",J6o="terminated",X6o="timed_waiting",Z6o="waiting",ewo="network.local.address",two="network.local.port",rwo="network.peer.address",nwo="network.peer.port",iwo="network.protocol.name",owo="network.protocol.version",swo="network.transport",awo="pipe",cwo="quic",sQc="tcp",aQc="udp",lwo="unix",uwo="network.type",fwo="ipv4",dwo="ipv6",pwo="otel.scope.name",hwo="otel.scope.version",mwo="otel.status_code",gwo="ERROR",cQc="OK",ywo="otel.status_description",Awo="server.address",vwo="server.port",ETt="service.name",STt="service.version",bwo="signalr.connection.status",Ewo="app_shutdown",Swo="normal_closure",xwo="timeout",_wo="signalr.transport",Cwo="long_polling",Two="server_sent_events",wwo="web_sockets",Iwo="telemetry.sdk.language",lQc="cpp",Dwo="dotnet",Owo="erlang",uQc="go",Rwo="java",Nwo="nodejs",fQc="php",Pwo="python",Bwo="ruby",kwo="rust",Mwo="swift",Lwo="webjs",Uwo="telemetry.sdk.name",Fwo="telemetry.sdk.version",Qwo="url.fragment",qwo="url.full",Hwo="url.path",Vwo="url.query",Gwo="url.scheme",jwo="user_agent.original"});var $wo,Wwo,zwo,Kwo,Ywo,Jwo,Xwo,Zwo,e5o,t5o,r5o,n5o,i5o,o5o,s5o,a5o,c5o,l5o,u5o,f5o,d5o,p5o,h5o,m5o,g5o,y5o,A5o,v5o,b5o,E5o,S5o,x5o,_5o,C5o,T5o,w5o,I5o,D5o,O5o,R5o,N5o,P5o,B5o,k5o,M5o,L5o,U5o,F5o,Q5o,q5o,H5o,IHr=j(()=>{$wo="aspnetcore.diagnostics.exceptions",Wwo="aspnetcore.rate_limiting.active_request_leases",zwo="aspnetcore.rate_limiting.queued_requests",Kwo="aspnetcore.rate_limiting.request.time_in_queue",Ywo="aspnetcore.rate_limiting.request_lease.duration",Jwo="aspnetcore.rate_limiting.requests",Xwo="aspnetcore.routing.match_attempts",Zwo="db.client.operation.duration",e5o="dotnet.assembly.count",t5o="dotnet.exceptions",r5o="dotnet.gc.collections",n5o="dotnet.gc.heap.total_allocated",i5o="dotnet.gc.last_collection.heap.fragmentation.size",o5o="dotnet.gc.last_collection.heap.size",s5o="dotnet.gc.last_collection.memory.committed_size",a5o="dotnet.gc.pause.time",c5o="dotnet.jit.compilation.time",l5o="dotnet.jit.compiled_il.size",u5o="dotnet.jit.compiled_methods",f5o="dotnet.monitor.lock_contentions",d5o="dotnet.process.cpu.count",p5o="dotnet.process.cpu.time",h5o="dotnet.process.memory.working_set",m5o="dotnet.thread_pool.queue.length",g5o="dotnet.thread_pool.thread.count",y5o="dotnet.thread_pool.work_item.count",A5o="dotnet.timer.count",v5o="http.client.request.duration",b5o="http.server.request.duration",E5o="jvm.class.count",S5o="jvm.class.loaded",x5o="jvm.class.unloaded",_5o="jvm.cpu.count",C5o="jvm.cpu.recent_utilization",T5o="jvm.cpu.time",w5o="jvm.gc.duration",I5o="jvm.memory.committed",D5o="jvm.memory.limit",O5o="jvm.memory.used",R5o="jvm.memory.used_after_last_gc",N5o="jvm.thread.count",P5o="kestrel.active_connections",B5o="kestrel.active_tls_handshakes",k5o="kestrel.connection.duration",M5o="kestrel.queued_connections",L5o="kestrel.queued_requests",U5o="kestrel.rejected_connections",F5o="kestrel.tls_handshake.duration",Q5o="kestrel.upgraded_connections",q5o="signalr.server.active_connections",H5o="signalr.server.connection.duration"});var V5o,DHr=j(()=>{V5o="exception"});var Uu={};ss(Uu,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>P4o,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>B4o,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>k4o,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>M4o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>Q4o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>q4o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>H4o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>V4o,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>W4o,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>z4o,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>N4o,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>L4o,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>U4o,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>F4o,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>G4o,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>j4o,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>$4o,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:()=>K4o,ATTR_CLIENT_ADDRESS:()=>Y4o,ATTR_CLIENT_PORT:()=>J4o,ATTR_CODE_COLUMN_NUMBER:()=>X4o,ATTR_CODE_FILE_PATH:()=>Z4o,ATTR_CODE_FUNCTION_NAME:()=>e6o,ATTR_CODE_LINE_NUMBER:()=>t6o,ATTR_CODE_STACKTRACE:()=>r6o,ATTR_DB_COLLECTION_NAME:()=>n6o,ATTR_DB_NAMESPACE:()=>i6o,ATTR_DB_OPERATION_BATCH_SIZE:()=>o6o,ATTR_DB_OPERATION_NAME:()=>s6o,ATTR_DB_QUERY_SUMMARY:()=>a6o,ATTR_DB_QUERY_TEXT:()=>c6o,ATTR_DB_RESPONSE_STATUS_CODE:()=>l6o,ATTR_DB_STORED_PROCEDURE_NAME:()=>u6o,ATTR_DB_SYSTEM_NAME:()=>f6o,ATTR_DOTNET_GC_HEAP_GENERATION:()=>g6o,ATTR_ERROR_TYPE:()=>b6o,ATTR_EXCEPTION_ESCAPED:()=>S6o,ATTR_EXCEPTION_MESSAGE:()=>x6o,ATTR_EXCEPTION_STACKTRACE:()=>_6o,ATTR_EXCEPTION_TYPE:()=>C6o,ATTR_HTTP_REQUEST_HEADER:()=>T6o,ATTR_HTTP_REQUEST_METHOD:()=>w6o,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>M6o,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>L6o,ATTR_HTTP_RESPONSE_HEADER:()=>U6o,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>F6o,ATTR_HTTP_ROUTE:()=>Q6o,ATTR_JVM_GC_ACTION:()=>q6o,ATTR_JVM_GC_NAME:()=>H6o,ATTR_JVM_MEMORY_POOL_NAME:()=>V6o,ATTR_JVM_MEMORY_TYPE:()=>G6o,ATTR_JVM_THREAD_DAEMON:()=>W6o,ATTR_JVM_THREAD_STATE:()=>z6o,ATTR_NETWORK_LOCAL_ADDRESS:()=>ewo,ATTR_NETWORK_LOCAL_PORT:()=>two,ATTR_NETWORK_PEER_ADDRESS:()=>rwo,ATTR_NETWORK_PEER_PORT:()=>nwo,ATTR_NETWORK_PROTOCOL_NAME:()=>iwo,ATTR_NETWORK_PROTOCOL_VERSION:()=>owo,ATTR_NETWORK_TRANSPORT:()=>swo,ATTR_NETWORK_TYPE:()=>uwo,ATTR_OTEL_SCOPE_NAME:()=>pwo,ATTR_OTEL_SCOPE_VERSION:()=>hwo,ATTR_OTEL_STATUS_CODE:()=>mwo,ATTR_OTEL_STATUS_DESCRIPTION:()=>ywo,ATTR_SERVER_ADDRESS:()=>Awo,ATTR_SERVER_PORT:()=>vwo,ATTR_SERVICE_NAME:()=>ETt,ATTR_SERVICE_VERSION:()=>STt,ATTR_SIGNALR_CONNECTION_STATUS:()=>bwo,ATTR_SIGNALR_TRANSPORT:()=>_wo,ATTR_TELEMETRY_SDK_LANGUAGE:()=>Iwo,ATTR_TELEMETRY_SDK_NAME:()=>Uwo,ATTR_TELEMETRY_SDK_VERSION:()=>Fwo,ATTR_URL_FRAGMENT:()=>Qwo,ATTR_URL_FULL:()=>qwo,ATTR_URL_PATH:()=>Hwo,ATTR_URL_QUERY:()=>Vwo,ATTR_URL_SCHEME:()=>Gwo,ATTR_USER_AGENT_ORIGINAL:()=>jwo,AWSECSLAUNCHTYPEVALUES_EC2:()=>XTo,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>ZTo,AwsEcsLaunchtypeValues:()=>e4o,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>BTo,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>kTo,CLOUDPLATFORMVALUES_AWS_EC2:()=>MTo,CLOUDPLATFORMVALUES_AWS_ECS:()=>LTo,CLOUDPLATFORMVALUES_AWS_EKS:()=>UTo,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>QTo,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>FTo,CLOUDPLATFORMVALUES_AZURE_AKS:()=>VTo,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>jTo,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>HTo,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>GTo,CLOUDPLATFORMVALUES_AZURE_VM:()=>qTo,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>YTo,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>KTo,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>WTo,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>$To,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>zTo,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>DTo,CLOUDPROVIDERVALUES_AWS:()=>OTo,CLOUDPROVIDERVALUES_AZURE:()=>RTo,CLOUDPROVIDERVALUES_GCP:()=>NTo,CloudPlatformValues:()=>JTo,CloudProviderValues:()=>PTo,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>pxo,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>Exo,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>hxo,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>bxo,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>gxo,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>xxo,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>yxo,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>mxo,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>Sxo,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>vxo,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>Axo,DBSYSTEMVALUES_ADABAS:()=>MSo,DBSYSTEMVALUES_CACHE:()=>kSo,DBSYSTEMVALUES_CASSANDRA:()=>ZSo,DBSYSTEMVALUES_CLOUDSCAPE:()=>wSo,DBSYSTEMVALUES_COCKROACHDB:()=>fxo,DBSYSTEMVALUES_COLDFUSION:()=>XSo,DBSYSTEMVALUES_COSMOSDB:()=>oxo,DBSYSTEMVALUES_COUCHBASE:()=>nxo,DBSYSTEMVALUES_COUCHDB:()=>ixo,DBSYSTEMVALUES_DB2:()=>xSo,DBSYSTEMVALUES_DERBY:()=>USo,DBSYSTEMVALUES_DYNAMODB:()=>sxo,DBSYSTEMVALUES_EDB:()=>BSo,DBSYSTEMVALUES_ELASTICSEARCH:()=>lxo,DBSYSTEMVALUES_FILEMAKER:()=>FSo,DBSYSTEMVALUES_FIREBIRD:()=>LSo,DBSYSTEMVALUES_FIRSTSQL:()=>PSo,DBSYSTEMVALUES_GEODE:()=>cxo,DBSYSTEMVALUES_H2:()=>JSo,DBSYSTEMVALUES_HANADB:()=>RSo,DBSYSTEMVALUES_HBASE:()=>exo,DBSYSTEMVALUES_HIVE:()=>TSo,DBSYSTEMVALUES_HSQLDB:()=>ISo,DBSYSTEMVALUES_INFORMIX:()=>QSo,DBSYSTEMVALUES_INGRES:()=>NSo,DBSYSTEMVALUES_INSTANTDB:()=>qSo,DBSYSTEMVALUES_INTERBASE:()=>HSo,DBSYSTEMVALUES_MARIADB:()=>VSo,DBSYSTEMVALUES_MAXDB:()=>OSo,DBSYSTEMVALUES_MEMCACHED:()=>uxo,DBSYSTEMVALUES_MONGODB:()=>txo,DBSYSTEMVALUES_MSSQL:()=>bSo,DBSYSTEMVALUES_MYSQL:()=>ESo,DBSYSTEMVALUES_NEO4J:()=>axo,DBSYSTEMVALUES_NETEZZA:()=>GSo,DBSYSTEMVALUES_ORACLE:()=>SSo,DBSYSTEMVALUES_OTHER_SQL:()=>vSo,DBSYSTEMVALUES_PERVASIVE:()=>jSo,DBSYSTEMVALUES_POINTBASE:()=>$So,DBSYSTEMVALUES_POSTGRESQL:()=>_So,DBSYSTEMVALUES_PROGRESS:()=>DSo,DBSYSTEMVALUES_REDIS:()=>rxo,DBSYSTEMVALUES_REDSHIFT:()=>CSo,DBSYSTEMVALUES_SQLITE:()=>WSo,DBSYSTEMVALUES_SYBASE:()=>zSo,DBSYSTEMVALUES_TERADATA:()=>KSo,DBSYSTEMVALUES_VERTICA:()=>YSo,DB_SYSTEM_NAME_VALUE_MARIADB:()=>d6o,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:()=>p6o,DB_SYSTEM_NAME_VALUE_MYSQL:()=>h6o,DB_SYSTEM_NAME_VALUE_POSTGRESQL:()=>m6o,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:()=>y6o,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:()=>A6o,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:()=>v6o,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:()=>tQc,DOTNET_GC_HEAP_GENERATION_VALUE_POH:()=>rQc,DbCassandraConsistencyLevelValues:()=>_xo,DbSystemValues:()=>dxo,ERROR_TYPE_VALUE_OTHER:()=>E6o,EVENT_EXCEPTION:()=>V5o,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>Pxo,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>Nxo,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>Rxo,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>kxo,FAASINVOKEDPROVIDERVALUES_AWS:()=>Mxo,FAASINVOKEDPROVIDERVALUES_AZURE:()=>Lxo,FAASINVOKEDPROVIDERVALUES_GCP:()=>Uxo,FAASTRIGGERVALUES_DATASOURCE:()=>Cxo,FAASTRIGGERVALUES_HTTP:()=>Txo,FAASTRIGGERVALUES_OTHER:()=>Dxo,FAASTRIGGERVALUES_PUBSUB:()=>wxo,FAASTRIGGERVALUES_TIMER:()=>Ixo,FaasDocumentOperationValues:()=>Bxo,FaasInvokedProviderValues:()=>Fxo,FaasTriggerValues:()=>Oxo,HOSTARCHVALUES_AMD64:()=>t4o,HOSTARCHVALUES_ARM32:()=>r4o,HOSTARCHVALUES_ARM64:()=>n4o,HOSTARCHVALUES_IA64:()=>i4o,HOSTARCHVALUES_PPC32:()=>o4o,HOSTARCHVALUES_PPC64:()=>s4o,HOSTARCHVALUES_X86:()=>a4o,HTTPFLAVORVALUES_HTTP_1_0:()=>S_o,HTTPFLAVORVALUES_HTTP_1_1:()=>x_o,HTTPFLAVORVALUES_HTTP_2_0:()=>__o,HTTPFLAVORVALUES_QUIC:()=>T_o,HTTPFLAVORVALUES_SPDY:()=>C_o,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>D6o,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>O6o,HTTP_REQUEST_METHOD_VALUE_GET:()=>nQc,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>R6o,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>N6o,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>I6o,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>P6o,HTTP_REQUEST_METHOD_VALUE_POST:()=>B6o,HTTP_REQUEST_METHOD_VALUE_PUT:()=>iQc,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>k6o,HostArchValues:()=>c4o,HttpFlavorValues:()=>w_o,JVM_MEMORY_TYPE_VALUE_HEAP:()=>j6o,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>$6o,JVM_THREAD_STATE_VALUE_BLOCKED:()=>K6o,JVM_THREAD_STATE_VALUE_NEW:()=>oQc,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>Y6o,JVM_THREAD_STATE_VALUE_TERMINATED:()=>J6o,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>X6o,JVM_THREAD_STATE_VALUE_WAITING:()=>Z6o,MESSAGETYPEVALUES_RECEIVED:()=>Z_o,MESSAGETYPEVALUES_SENT:()=>X_o,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>I_o,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>D_o,MESSAGINGOPERATIONVALUES_PROCESS:()=>N_o,MESSAGINGOPERATIONVALUES_RECEIVE:()=>R_o,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>$wo,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>Wwo,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>zwo,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>Jwo,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>Ywo,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>Kwo,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>Xwo,METRIC_DB_CLIENT_OPERATION_DURATION:()=>Zwo,METRIC_DOTNET_ASSEMBLY_COUNT:()=>e5o,METRIC_DOTNET_EXCEPTIONS:()=>t5o,METRIC_DOTNET_GC_COLLECTIONS:()=>r5o,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:()=>n5o,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:()=>i5o,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:()=>o5o,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:()=>s5o,METRIC_DOTNET_GC_PAUSE_TIME:()=>a5o,METRIC_DOTNET_JIT_COMPILATION_TIME:()=>c5o,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:()=>l5o,METRIC_DOTNET_JIT_COMPILED_METHODS:()=>u5o,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:()=>f5o,METRIC_DOTNET_PROCESS_CPU_COUNT:()=>d5o,METRIC_DOTNET_PROCESS_CPU_TIME:()=>p5o,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:()=>h5o,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:()=>m5o,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:()=>g5o,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:()=>y5o,METRIC_DOTNET_TIMER_COUNT:()=>A5o,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>v5o,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>b5o,METRIC_JVM_CLASS_COUNT:()=>E5o,METRIC_JVM_CLASS_LOADED:()=>S5o,METRIC_JVM_CLASS_UNLOADED:()=>x5o,METRIC_JVM_CPU_COUNT:()=>_5o,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>C5o,METRIC_JVM_CPU_TIME:()=>T5o,METRIC_JVM_GC_DURATION:()=>w5o,METRIC_JVM_MEMORY_COMMITTED:()=>I5o,METRIC_JVM_MEMORY_LIMIT:()=>D5o,METRIC_JVM_MEMORY_USED:()=>O5o,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>R5o,METRIC_JVM_THREAD_COUNT:()=>N5o,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>P5o,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>B5o,METRIC_KESTREL_CONNECTION_DURATION:()=>k5o,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>M5o,METRIC_KESTREL_QUEUED_REQUESTS:()=>L5o,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>U5o,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>F5o,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>Q5o,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>q5o,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>H5o,MessageTypeValues:()=>eCo,MessagingDestinationKindValues:()=>O_o,MessagingOperationValues:()=>P_o,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>n_o,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>s_o,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>t_o,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>p_o,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>i_o,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>o_o,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>f_o,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>e_o,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>m_o,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>a_o,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>l_o,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>h_o,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>c_o,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>u_o,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>y_o,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>d_o,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>b_o,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>A_o,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>v_o,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>g_o,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>r_o,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>Yxo,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>Jxo,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>Xxo,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>zxo,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>Kxo,NETTRANSPORTVALUES_INPROC:()=>jxo,NETTRANSPORTVALUES_IP:()=>Hxo,NETTRANSPORTVALUES_IP_TCP:()=>Qxo,NETTRANSPORTVALUES_IP_UDP:()=>qxo,NETTRANSPORTVALUES_OTHER:()=>$xo,NETTRANSPORTVALUES_PIPE:()=>Gxo,NETTRANSPORTVALUES_UNIX:()=>Vxo,NETWORK_TRANSPORT_VALUE_PIPE:()=>awo,NETWORK_TRANSPORT_VALUE_QUIC:()=>cwo,NETWORK_TRANSPORT_VALUE_TCP:()=>sQc,NETWORK_TRANSPORT_VALUE_UDP:()=>aQc,NETWORK_TRANSPORT_VALUE_UNIX:()=>lwo,NETWORK_TYPE_VALUE_IPV4:()=>fwo,NETWORK_TYPE_VALUE_IPV6:()=>dwo,NetHostConnectionSubtypeValues:()=>E_o,NetHostConnectionTypeValues:()=>Zxo,NetTransportValues:()=>Wxo,OSTYPEVALUES_AIX:()=>y4o,OSTYPEVALUES_DARWIN:()=>f4o,OSTYPEVALUES_DRAGONFLYBSD:()=>m4o,OSTYPEVALUES_FREEBSD:()=>d4o,OSTYPEVALUES_HPUX:()=>g4o,OSTYPEVALUES_LINUX:()=>u4o,OSTYPEVALUES_NETBSD:()=>p4o,OSTYPEVALUES_OPENBSD:()=>h4o,OSTYPEVALUES_SOLARIS:()=>A4o,OSTYPEVALUES_WINDOWS:()=>l4o,OSTYPEVALUES_Z_OS:()=>v4o,OTEL_STATUS_CODE_VALUE_ERROR:()=>gwo,OTEL_STATUS_CODE_VALUE_OK:()=>cQc,OsTypeValues:()=>b4o,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>G_o,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>Q_o,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>k_o,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>K_o,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>U_o,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>V_o,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>W_o,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>L_o,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>F_o,RPCGRPCSTATUSCODEVALUES_OK:()=>B_o,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>j_o,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>q_o,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>H_o,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>Y_o,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>z_o,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>$_o,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>M_o,RpcGrpcStatusCodeValues:()=>J_o,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>IEo,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>QEo,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>CEo,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>EEo,SEMATTRS_AWS_DYNAMODB_COUNT:()=>UEo,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>PEo,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>REo,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>qEo,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>DEo,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>SEo,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>wEo,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>NEo,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>TEo,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>xEo,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>_Eo,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>FEo,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>kEo,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>MEo,SEMATTRS_AWS_DYNAMODB_SELECT:()=>OEo,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>BEo,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>bEo,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>LEo,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>Zvo,SEMATTRS_CODE_FILEPATH:()=>nEo,SEMATTRS_CODE_FUNCTION:()=>tEo,SEMATTRS_CODE_LINENO:()=>iEo,SEMATTRS_CODE_NAMESPACE:()=>rEo,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>ubo,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>mbo,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>hbo,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>dbo,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>cbo,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>lbo,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>pbo,SEMATTRS_DB_CASSANDRA_TABLE:()=>fbo,SEMATTRS_DB_CONNECTION_STRING:()=>tbo,SEMATTRS_DB_HBASE_NAMESPACE:()=>gbo,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>nbo,SEMATTRS_DB_MONGODB_COLLECTION:()=>Abo,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>abo,SEMATTRS_DB_NAME:()=>ibo,SEMATTRS_DB_OPERATION:()=>sbo,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>ybo,SEMATTRS_DB_SQL_TABLE:()=>vbo,SEMATTRS_DB_STATEMENT:()=>obo,SEMATTRS_DB_SYSTEM:()=>ebo,SEMATTRS_DB_USER:()=>rbo,SEMATTRS_ENDUSER_ID:()=>Ybo,SEMATTRS_ENDUSER_ROLE:()=>Jbo,SEMATTRS_ENDUSER_SCOPE:()=>Xbo,SEMATTRS_EXCEPTION_ESCAPED:()=>xbo,SEMATTRS_EXCEPTION_MESSAGE:()=>Ebo,SEMATTRS_EXCEPTION_STACKTRACE:()=>Sbo,SEMATTRS_EXCEPTION_TYPE:()=>bbo,SEMATTRS_FAAS_COLDSTART:()=>Nbo,SEMATTRS_FAAS_CRON:()=>Rbo,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>Tbo,SEMATTRS_FAAS_DOCUMENT_NAME:()=>Dbo,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>wbo,SEMATTRS_FAAS_DOCUMENT_TIME:()=>Ibo,SEMATTRS_FAAS_EXECUTION:()=>Cbo,SEMATTRS_FAAS_INVOKED_NAME:()=>Pbo,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>Bbo,SEMATTRS_FAAS_INVOKED_REGION:()=>kbo,SEMATTRS_FAAS_TIME:()=>Obo,SEMATTRS_FAAS_TRIGGER:()=>_bo,SEMATTRS_HTTP_CLIENT_IP:()=>vEo,SEMATTRS_HTTP_FLAVOR:()=>fEo,SEMATTRS_HTTP_HOST:()=>cEo,SEMATTRS_HTTP_METHOD:()=>oEo,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>pEo,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>hEo,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>mEo,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>gEo,SEMATTRS_HTTP_ROUTE:()=>AEo,SEMATTRS_HTTP_SCHEME:()=>lEo,SEMATTRS_HTTP_SERVER_NAME:()=>yEo,SEMATTRS_HTTP_STATUS_CODE:()=>uEo,SEMATTRS_HTTP_TARGET:()=>aEo,SEMATTRS_HTTP_URL:()=>sEo,SEMATTRS_HTTP_USER_AGENT:()=>dEo,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>ySo,SEMATTRS_MESSAGE_ID:()=>gSo,SEMATTRS_MESSAGE_TYPE:()=>mSo,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>ASo,SEMATTRS_MESSAGING_CONSUMER_ID:()=>eSo,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>YEo,SEMATTRS_MESSAGING_DESTINATION:()=>VEo,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>GEo,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>iSo,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>nSo,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>rSo,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>oSo,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>sSo,SEMATTRS_MESSAGING_MESSAGE_ID:()=>KEo,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>XEo,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>JEo,SEMATTRS_MESSAGING_OPERATION:()=>ZEo,SEMATTRS_MESSAGING_PROTOCOL:()=>$Eo,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>WEo,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>tSo,SEMATTRS_MESSAGING_SYSTEM:()=>HEo,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>jEo,SEMATTRS_MESSAGING_URL:()=>zEo,SEMATTRS_NET_HOST_CARRIER_ICC:()=>zbo,SEMATTRS_NET_HOST_CARRIER_MCC:()=>$bo,SEMATTRS_NET_HOST_CARRIER_MNC:()=>Wbo,SEMATTRS_NET_HOST_CARRIER_NAME:()=>jbo,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>Gbo,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>Vbo,SEMATTRS_NET_HOST_IP:()=>Qbo,SEMATTRS_NET_HOST_NAME:()=>Hbo,SEMATTRS_NET_HOST_PORT:()=>qbo,SEMATTRS_NET_PEER_IP:()=>Lbo,SEMATTRS_NET_PEER_NAME:()=>Fbo,SEMATTRS_NET_PEER_PORT:()=>Ubo,SEMATTRS_NET_TRANSPORT:()=>Mbo,SEMATTRS_PEER_SERVICE:()=>Kbo,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>uSo,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>pSo,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>hSo,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>dSo,SEMATTRS_RPC_JSONRPC_VERSION:()=>fSo,SEMATTRS_RPC_METHOD:()=>lSo,SEMATTRS_RPC_SERVICE:()=>cSo,SEMATTRS_RPC_SYSTEM:()=>aSo,SEMATTRS_THREAD_ID:()=>Zbo,SEMATTRS_THREAD_NAME:()=>eEo,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>aCo,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>sCo,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>cCo,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>lCo,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>uCo,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>fCo,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>dCo,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>hCo,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>pCo,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>gCo,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>mCo,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>rCo,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>iCo,SEMRESATTRS_CLOUD_PLATFORM:()=>oCo,SEMRESATTRS_CLOUD_PROVIDER:()=>tCo,SEMRESATTRS_CLOUD_REGION:()=>nCo,SEMRESATTRS_CONTAINER_ID:()=>ACo,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>bCo,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>ECo,SEMRESATTRS_CONTAINER_NAME:()=>yCo,SEMRESATTRS_CONTAINER_RUNTIME:()=>vCo,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>SCo,SEMRESATTRS_DEVICE_ID:()=>xCo,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>_Co,SEMRESATTRS_DEVICE_MODEL_NAME:()=>CCo,SEMRESATTRS_FAAS_ID:()=>wCo,SEMRESATTRS_FAAS_INSTANCE:()=>DCo,SEMRESATTRS_FAAS_MAX_MEMORY:()=>OCo,SEMRESATTRS_FAAS_NAME:()=>TCo,SEMRESATTRS_FAAS_VERSION:()=>ICo,SEMRESATTRS_HOST_ARCH:()=>BCo,SEMRESATTRS_HOST_ID:()=>RCo,SEMRESATTRS_HOST_IMAGE_ID:()=>MCo,SEMRESATTRS_HOST_IMAGE_NAME:()=>kCo,SEMRESATTRS_HOST_IMAGE_VERSION:()=>LCo,SEMRESATTRS_HOST_NAME:()=>NCo,SEMRESATTRS_HOST_TYPE:()=>PCo,SEMRESATTRS_K8S_CLUSTER_NAME:()=>UCo,SEMRESATTRS_K8S_CONTAINER_NAME:()=>GCo,SEMRESATTRS_K8S_CRONJOB_NAME:()=>rTo,SEMRESATTRS_K8S_CRONJOB_UID:()=>tTo,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>XCo,SEMRESATTRS_K8S_DAEMONSET_UID:()=>JCo,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>zCo,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>WCo,SEMRESATTRS_K8S_JOB_NAME:()=>eTo,SEMRESATTRS_K8S_JOB_UID:()=>ZCo,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>qCo,SEMRESATTRS_K8S_NODE_NAME:()=>FCo,SEMRESATTRS_K8S_NODE_UID:()=>QCo,SEMRESATTRS_K8S_POD_NAME:()=>VCo,SEMRESATTRS_K8S_POD_UID:()=>HCo,SEMRESATTRS_K8S_REPLICASET_NAME:()=>$Co,SEMRESATTRS_K8S_REPLICASET_UID:()=>jCo,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>YCo,SEMRESATTRS_K8S_STATEFULSET_UID:()=>KCo,SEMRESATTRS_OS_DESCRIPTION:()=>iTo,SEMRESATTRS_OS_NAME:()=>oTo,SEMRESATTRS_OS_TYPE:()=>nTo,SEMRESATTRS_OS_VERSION:()=>sTo,SEMRESATTRS_PROCESS_COMMAND:()=>uTo,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>dTo,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>fTo,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>cTo,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>lTo,SEMRESATTRS_PROCESS_OWNER:()=>pTo,SEMRESATTRS_PROCESS_PID:()=>aTo,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>gTo,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>hTo,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>mTo,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>vTo,SEMRESATTRS_SERVICE_NAME:()=>yTo,SEMRESATTRS_SERVICE_NAMESPACE:()=>ATo,SEMRESATTRS_SERVICE_VERSION:()=>bTo,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>_To,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>STo,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>ETo,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>xTo,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>wTo,SEMRESATTRS_WEBENGINE_NAME:()=>CTo,SEMRESATTRS_WEBENGINE_VERSION:()=>TTo,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>Ewo,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>Swo,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>xwo,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>Cwo,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>Two,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>wwo,SemanticAttributes:()=>Yee,SemanticResourceAttributes:()=>ITo,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>E4o,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>S4o,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>x4o,TELEMETRYSDKLANGUAGEVALUES_GO:()=>_4o,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>C4o,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>T4o,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>w4o,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>I4o,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>D4o,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>O4o,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>lQc,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>Dwo,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>Owo,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>uQc,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>Rwo,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>Nwo,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>fQc,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>Pwo,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>Bwo,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>kwo,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>Mwo,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>Lwo,TelemetrySdkLanguageValues:()=>R4o});var Wl=j(()=>{eQr();THr();wHr();IHr();DHr()});var U7e,OHr=j(()=>{U7e=class{_delegate;constructor(e){this._delegate=e}export(e,r){this._delegate.export(e,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}});var tO,F7e=j(()=>{tO=class extends Error{code;name="OTLPExporterError";data;constructor(e,r,o){super(e),this.data=o,this.code=r}}});function G5o(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function Q7e(t){if(t!=null)return()=>t}function q7e(t,e,r){return{timeoutMillis:G5o(t.timeoutMillis??e.timeoutMillis??r.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??r.concurrencyLimit,compression:t.compression??e.compression??r.compression}}function H7e(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var X0e=j(()=>{});var V7e,RHr=j(()=>{(function(t){t.NONE="none",t.GZIP="gzip"})(V7e||(V7e={}))});function G7e(t){return new xTt(t.concurrencyLimit)}var xTt,_Tt=j(()=>{xTt=class{_concurrencyLimit;_sendingPromises=[];constructor(e){this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);let r=()=>{let o=this._sendingPromises.indexOf(e);this._sendingPromises.splice(o,1)};e.then(r,r)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}});var Z0e=E(dk=>{"use strict";Object.defineProperty(dk,"__esModule",{value:!0});dk.isTracingSuppressed=dk.unsuppressTracing=dk.suppressTracing=void 0;var j5o=(ut(),nt(xt)),CTt=(0,j5o.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function $5o(t){return t.setValue(CTt,!0)}dk.suppressTracing=$5o;function W5o(t){return t.deleteValue(CTt)}dk.unsuppressTracing=W5o;function z5o(t){return t.getValue(CTt)===!0}dk.isTracingSuppressed=z5o});var TTt=E(X1=>{"use strict";Object.defineProperty(X1,"__esModule",{value:!0});X1.BAGGAGE_MAX_TOTAL_LENGTH=X1.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=X1.BAGGAGE_MAX_NAME_VALUE_PAIRS=X1.BAGGAGE_HEADER=X1.BAGGAGE_ITEMS_SEPARATOR=X1.BAGGAGE_PROPERTIES_SEPARATOR=X1.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;X1.BAGGAGE_KEY_PAIR_SEPARATOR="=";X1.BAGGAGE_PROPERTIES_SEPARATOR=";";X1.BAGGAGE_ITEMS_SEPARATOR=",";X1.BAGGAGE_HEADER="baggage";X1.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;X1.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;X1.BAGGAGE_MAX_TOTAL_LENGTH=8192});var wTt=E($5=>{"use strict";Object.defineProperty($5,"__esModule",{value:!0});$5.parseKeyPairsIntoRecord=$5.parsePairKeyValue=$5.getKeyPairs=$5.serializeKeyPairs=void 0;var K5o=(ut(),nt(xt)),eV=TTt();function Y5o(t){return t.reduce((e,r)=>{let o=`${e}${e!==""?eV.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return o.length>eV.BAGGAGE_MAX_TOTAL_LENGTH?e:o},"")}$5.serializeKeyPairs=Y5o;function J5o(t){return t.getAllEntries().map(([e,r])=>{let o=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(o+=eV.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),o})}$5.getKeyPairs=J5o;function NHr(t){let e=t.split(eV.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let o=r.indexOf(eV.BAGGAGE_KEY_PAIR_SEPARATOR);if(o<=0)return;let s=decodeURIComponent(r.substring(0,o).trim()),a=decodeURIComponent(r.substring(o+1).trim()),i;return e.length>0&&(i=(0,K5o.baggageEntryMetadataFromString)(e.join(eV.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:a,metadata:i}}$5.parsePairKeyValue=NHr;function X5o(t){let e={};return typeof t=="string"&&t.length>0&&t.split(eV.BAGGAGE_ITEMS_SEPARATOR).forEach(r=>{let o=NHr(r);o!==void 0&&o.value.length>0&&(e[o.key]=o.value)}),e}$5.parseKeyPairsIntoRecord=X5o});var PHr=E(j7e=>{"use strict";Object.defineProperty(j7e,"__esModule",{value:!0});j7e.W3CBaggagePropagator=void 0;var ITt=(ut(),nt(xt)),Z5o=Z0e(),tV=TTt(),DTt=wTt(),OTt=class{inject(e,r,o){let s=ITt.propagation.getBaggage(e);if(!s||(0,Z5o.isTracingSuppressed)(e))return;let a=(0,DTt.getKeyPairs)(s).filter(n=>n.length<=tV.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,tV.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,DTt.serializeKeyPairs)(a);i.length>0&&o.set(r,tV.BAGGAGE_HEADER,i)}extract(e,r,o){let s=o.get(r,tV.BAGGAGE_HEADER),a=Array.isArray(s)?s.join(tV.BAGGAGE_ITEMS_SEPARATOR):s;if(!a)return e;let i={};return a.length===0||(a.split(tV.BAGGAGE_ITEMS_SEPARATOR).forEach(c=>{let u=(0,DTt.parsePairKeyValue)(c);if(u){let f={value:u.value};u.metadata&&(f.metadata=u.metadata),i[u.key]=f}}),Object.entries(i).length===0)?e:ITt.propagation.setBaggage(e,ITt.propagation.createBaggage(i))}fields(){return[tV.BAGGAGE_HEADER]}};j7e.W3CBaggagePropagator=OTt});var BHr=E($7e=>{"use strict";Object.defineProperty($7e,"__esModule",{value:!0});$7e.AnchoredClock=void 0;var RTt=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,r){this._monotonicClock=r,this._epochMillis=e.now(),this._performanceMillis=r.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};$7e.AnchoredClock=RTt});var FHr=E(pk=>{"use strict";Object.defineProperty(pk,"__esModule",{value:!0});pk.isAttributeValue=pk.isAttributeKey=pk.sanitizeAttributes=void 0;var kHr=(ut(),nt(xt));function eIo(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,o]of Object.entries(t)){if(!MHr(r)){kHr.diag.warn(`Invalid attribute key: ${r}`);continue}if(!LHr(o)){kHr.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(o)?e[r]=o.slice():e[r]=o}return e}pk.sanitizeAttributes=eIo;function MHr(t){return typeof t=="string"&&t.length>0}pk.isAttributeKey=MHr;function LHr(t){return t==null?!0:Array.isArray(t)?tIo(t):UHr(t)}pk.isAttributeValue=LHr;function tIo(t){let e;for(let r of t)if(r!=null){if(!e){if(UHr(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function UHr(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var NTt=E(W7e=>{"use strict";Object.defineProperty(W7e,"__esModule",{value:!0});W7e.loggingErrorHandler=void 0;var rIo=(ut(),nt(xt));function nIo(){return t=>{rIo.diag.error(iIo(t))}}W7e.loggingErrorHandler=nIo;function iIo(t){return typeof t=="string"?t:JSON.stringify(oIo(t))}function oIo(t){let e={},r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(o=>{if(e[o])return;let s=r[o];s&&(e[o]=String(s))}),r=Object.getPrototypeOf(r);return e}});var qHr=E(Jee=>{"use strict";Object.defineProperty(Jee,"__esModule",{value:!0});Jee.globalErrorHandler=Jee.setGlobalErrorHandler=void 0;var sIo=NTt(),QHr=(0,sIo.loggingErrorHandler)();function aIo(t){QHr=t}Jee.setGlobalErrorHandler=aIo;function cIo(t){try{QHr(t)}catch{}}Jee.globalErrorHandler=cIo});var jHr=E(W5=>{"use strict";Object.defineProperty(W5,"__esModule",{value:!0});W5.getStringListFromEnv=W5.getBooleanFromEnv=W5.getStringFromEnv=W5.getNumberFromEnv=void 0;var HHr=(ut(),nt(xt)),VHr=me("util");function lIo(t){let e=process.env[t];if(e==null||e.trim()==="")return;let r=Number(e);if(isNaN(r)){HHr.diag.warn(`Unknown value ${(0,VHr.inspect)(e)} for ${t}, expected a number, using defaults`);return}return r}W5.getNumberFromEnv=lIo;function GHr(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}W5.getStringFromEnv=GHr;function uIo(t){let e=process.env[t]?.trim().toLowerCase();return e==null||e===""?!1:e==="true"?!0:(e==="false"||HHr.diag.warn(`Unknown value ${(0,VHr.inspect)(e)} for ${t}, expected 'true' or 'false', falling back to 'false' (default)`),!1)}W5.getBooleanFromEnv=uIo;function fIo(t){return GHr(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}W5.getStringListFromEnv=fIo});var $Hr=E(z7e=>{"use strict";Object.defineProperty(z7e,"__esModule",{value:!0});z7e._globalThis=void 0;z7e._globalThis=typeof globalThis=="object"?globalThis:global});var WHr=E(K7e=>{"use strict";Object.defineProperty(K7e,"__esModule",{value:!0});K7e.otperformance=void 0;var dIo=me("perf_hooks");K7e.otperformance=dIo.performance});var zHr=E(Y7e=>{"use strict";Object.defineProperty(Y7e,"__esModule",{value:!0});Y7e.VERSION=void 0;Y7e.VERSION="2.1.0"});var KHr=E(J7e=>{"use strict";Object.defineProperty(J7e,"__esModule",{value:!0});J7e.ATTR_PROCESS_RUNTIME_NAME=void 0;J7e.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var YHr=E(Z7e=>{"use strict";Object.defineProperty(Z7e,"__esModule",{value:!0});Z7e.SDK_INFO=void 0;var pIo=zHr(),X7e=(Wl(),nt(Uu)),hIo=KHr();Z7e.SDK_INFO={[X7e.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[hIo.ATTR_PROCESS_RUNTIME_NAME]:"node",[X7e.ATTR_TELEMETRY_SDK_LANGUAGE]:X7e.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[X7e.ATTR_TELEMETRY_SDK_VERSION]:pIo.VERSION}});var JHr=E(eOe=>{"use strict";Object.defineProperty(eOe,"__esModule",{value:!0});eOe.unrefTimer=void 0;function mIo(t){t.unref()}eOe.unrefTimer=mIo});var XHr=E(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.unrefTimer=r0.SDK_INFO=r0.otperformance=r0._globalThis=r0.getStringListFromEnv=r0.getNumberFromEnv=r0.getBooleanFromEnv=r0.getStringFromEnv=void 0;var tOe=jHr();Object.defineProperty(r0,"getStringFromEnv",{enumerable:!0,get:function(){return tOe.getStringFromEnv}});Object.defineProperty(r0,"getBooleanFromEnv",{enumerable:!0,get:function(){return tOe.getBooleanFromEnv}});Object.defineProperty(r0,"getNumberFromEnv",{enumerable:!0,get:function(){return tOe.getNumberFromEnv}});Object.defineProperty(r0,"getStringListFromEnv",{enumerable:!0,get:function(){return tOe.getStringListFromEnv}});var gIo=$Hr();Object.defineProperty(r0,"_globalThis",{enumerable:!0,get:function(){return gIo._globalThis}});var yIo=WHr();Object.defineProperty(r0,"otperformance",{enumerable:!0,get:function(){return yIo.otperformance}});var AIo=YHr();Object.defineProperty(r0,"SDK_INFO",{enumerable:!0,get:function(){return AIo.SDK_INFO}});var vIo=JHr();Object.defineProperty(r0,"unrefTimer",{enumerable:!0,get:function(){return vIo.unrefTimer}})});var PTt=E(n0=>{"use strict";Object.defineProperty(n0,"__esModule",{value:!0});n0.getStringListFromEnv=n0.getNumberFromEnv=n0.getStringFromEnv=n0.getBooleanFromEnv=n0.unrefTimer=n0.otperformance=n0._globalThis=n0.SDK_INFO=void 0;var hk=XHr();Object.defineProperty(n0,"SDK_INFO",{enumerable:!0,get:function(){return hk.SDK_INFO}});Object.defineProperty(n0,"_globalThis",{enumerable:!0,get:function(){return hk._globalThis}});Object.defineProperty(n0,"otperformance",{enumerable:!0,get:function(){return hk.otperformance}});Object.defineProperty(n0,"unrefTimer",{enumerable:!0,get:function(){return hk.unrefTimer}});Object.defineProperty(n0,"getBooleanFromEnv",{enumerable:!0,get:function(){return hk.getBooleanFromEnv}});Object.defineProperty(n0,"getStringFromEnv",{enumerable:!0,get:function(){return hk.getStringFromEnv}});Object.defineProperty(n0,"getNumberFromEnv",{enumerable:!0,get:function(){return hk.getNumberFromEnv}});Object.defineProperty(n0,"getStringListFromEnv",{enumerable:!0,get:function(){return hk.getStringListFromEnv}})});var rVr=E(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.addHrTimes=Of.isTimeInput=Of.isTimeInputHrTime=Of.hrTimeToMicroseconds=Of.hrTimeToMilliseconds=Of.hrTimeToNanoseconds=Of.hrTimeToTimeStamp=Of.hrTimeDuration=Of.timeInputToHrTime=Of.hrTime=Of.getTimeOrigin=Of.millisToHrTime=void 0;var BTt=PTt(),ZHr=9,bIo=6,EIo=Math.pow(10,bIo),rOe=Math.pow(10,ZHr);function e2e(t){let e=t/1e3,r=Math.trunc(e),o=Math.round(t%1e3*EIo);return[r,o]}Of.millisToHrTime=e2e;function kTt(){let t=BTt.otperformance.timeOrigin;if(typeof t!="number"){let e=BTt.otperformance;t=e.timing&&e.timing.fetchStart}return t}Of.getTimeOrigin=kTt;function eVr(t){let e=e2e(kTt()),r=e2e(typeof t=="number"?t:BTt.otperformance.now());return tVr(e,r)}Of.hrTime=eVr;function SIo(t){if(MTt(t))return t;if(typeof t=="number")return t<kTt()?eVr(t):e2e(t);if(t instanceof Date)return e2e(t.getTime());throw TypeError("Invalid input type")}Of.timeInputToHrTime=SIo;function xIo(t,e){let r=e[0]-t[0],o=e[1]-t[1];return o<0&&(r-=1,o+=rOe),[r,o]}Of.hrTimeDuration=xIo;function _Io(t){let e=ZHr,r=`${"0".repeat(e)}${t[1]}Z`,o=r.substring(r.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",o)}Of.hrTimeToTimeStamp=_Io;function CIo(t){return t[0]*rOe+t[1]}Of.hrTimeToNanoseconds=CIo;function TIo(t){return t[0]*1e3+t[1]/1e6}Of.hrTimeToMilliseconds=TIo;function wIo(t){return t[0]*1e6+t[1]/1e3}Of.hrTimeToMicroseconds=wIo;function MTt(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}Of.isTimeInputHrTime=MTt;function IIo(t){return MTt(t)||typeof t=="number"||t instanceof Date}Of.isTimeInput=IIo;function tVr(t,e){let r=[t[0]+e[0],t[1]+e[1]];return r[1]>=rOe&&(r[1]-=rOe,r[0]+=1),r}Of.addHrTimes=tVr});var nVr=E(t2e=>{"use strict";Object.defineProperty(t2e,"__esModule",{value:!0});t2e.ExportResultCode=void 0;var DIo;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(DIo=t2e.ExportResultCode||(t2e.ExportResultCode={}))});var oVr=E(nOe=>{"use strict";Object.defineProperty(nOe,"__esModule",{value:!0});nOe.CompositePropagator=void 0;var iVr=(ut(),nt(xt)),LTt=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,o)=>r.concat(o),[])))}inject(e,r,o){for(let s of this._propagators)try{s.inject(e,r,o)}catch(a){iVr.diag.warn(`Failed to inject with ${s.constructor.name}. Err: ${a.message}`)}}extract(e,r,o){return this._propagators.reduce((s,a)=>{try{return a.extract(s,r,o)}catch(i){iVr.diag.warn(`Failed to extract with ${a.constructor.name}. Err: ${i.message}`)}return s},e)}fields(){return this._fields.slice()}};nOe.CompositePropagator=LTt});var sVr=E(Xee=>{"use strict";Object.defineProperty(Xee,"__esModule",{value:!0});Xee.validateValue=Xee.validateKey=void 0;var UTt="[_0-9a-z-*/]",OIo=`[a-z]${UTt}{0,255}`,RIo=`[a-z0-9]${UTt}{0,240}@[a-z]${UTt}{0,13}`,NIo=new RegExp(`^(?:${OIo}|${RIo})$`),PIo=/^[ -~]{0,255}[!-~]$/,BIo=/,|=/;function kIo(t){return NIo.test(t)}Xee.validateKey=kIo;function MIo(t){return PIo.test(t)&&!BIo.test(t)}Xee.validateValue=MIo});var QTt=E(iOe=>{"use strict";Object.defineProperty(iOe,"__esModule",{value:!0});iOe.TraceState=void 0;var aVr=sVr(),cVr=32,LIo=512,lVr=",",uVr="=",FTt=class t{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,r){let o=this._clone();return o._internalState.has(e)&&o._internalState.delete(e),o._internalState.set(e,r),o}unset(e){let r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+uVr+this.get(r)),e),[]).join(lVr)}_parse(e){e.length>LIo||(this._internalState=e.split(lVr).reverse().reduce((r,o)=>{let s=o.trim(),a=s.indexOf(uVr);if(a!==-1){let i=s.slice(0,a),n=s.slice(a+1,o.length);(0,aVr.validateKey)(i)&&(0,aVr.validateValue)(n)&&r.set(i,n)}return r},new Map),this._internalState.size>cVr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,cVr))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};iOe.TraceState=FTt});var dVr=E(Z1=>{"use strict";Object.defineProperty(Z1,"__esModule",{value:!0});Z1.W3CTraceContextPropagator=Z1.parseTraceParent=Z1.TRACE_STATE_HEADER=Z1.TRACE_PARENT_HEADER=void 0;var oOe=(ut(),nt(xt)),UIo=Z0e(),FIo=QTt();Z1.TRACE_PARENT_HEADER="traceparent";Z1.TRACE_STATE_HEADER="tracestate";var QIo="00",qIo="(?!ff)[\\da-f]{2}",HIo="(?![0]{32})[\\da-f]{32}",VIo="(?![0]{16})[\\da-f]{16}",GIo="[\\da-f]{2}",jIo=new RegExp(`^\\s?(${qIo})-(${HIo})-(${VIo})-(${GIo})(-.*)?\\s?$`);function fVr(t){let e=jIo.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}Z1.parseTraceParent=fVr;var qTt=class{inject(e,r,o){let s=oOe.trace.getSpanContext(e);if(!s||(0,UIo.isTracingSuppressed)(e)||!(0,oOe.isSpanContextValid)(s))return;let a=`${QIo}-${s.traceId}-${s.spanId}-0${Number(s.traceFlags||oOe.TraceFlags.NONE).toString(16)}`;o.set(r,Z1.TRACE_PARENT_HEADER,a),s.traceState&&o.set(r,Z1.TRACE_STATE_HEADER,s.traceState.serialize())}extract(e,r,o){let s=o.get(r,Z1.TRACE_PARENT_HEADER);if(!s)return e;let a=Array.isArray(s)?s[0]:s;if(typeof a!="string")return e;let i=fVr(a);if(!i)return e;i.isRemote=!0;let n=o.get(r,Z1.TRACE_STATE_HEADER);if(n){let c=Array.isArray(n)?n.join(","):n;i.traceState=new FIo.TraceState(typeof c=="string"?c:void 0)}return oOe.trace.setSpanContext(e,i)}fields(){return[Z1.TRACE_PARENT_HEADER,Z1.TRACE_STATE_HEADER]}};Z1.W3CTraceContextPropagator=qTt});var pVr=E(Q4=>{"use strict";Object.defineProperty(Q4,"__esModule",{value:!0});Q4.getRPCMetadata=Q4.deleteRPCMetadata=Q4.setRPCMetadata=Q4.RPCType=void 0;var $Io=(ut(),nt(xt)),HTt=(0,$Io.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),WIo;(function(t){t.HTTP="http"})(WIo=Q4.RPCType||(Q4.RPCType={}));function zIo(t,e){return t.setValue(HTt,e)}Q4.setRPCMetadata=zIo;function KIo(t){return t.deleteValue(HTt)}Q4.deleteRPCMetadata=KIo;function YIo(t){return t.getValue(HTt)}Q4.getRPCMetadata=YIo});var AVr=E(sOe=>{"use strict";Object.defineProperty(sOe,"__esModule",{value:!0});sOe.isPlainObject=void 0;var JIo="[object Object]",XIo="[object Null]",ZIo="[object Undefined]",e8o=Function.prototype,hVr=e8o.toString,t8o=hVr.call(Object),r8o=Object.getPrototypeOf,mVr=Object.prototype,gVr=mVr.hasOwnProperty,rV=Symbol?Symbol.toStringTag:void 0,yVr=mVr.toString;function n8o(t){if(!i8o(t)||o8o(t)!==JIo)return!1;let e=r8o(t);if(e===null)return!0;let r=gVr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&hVr.call(r)===t8o}sOe.isPlainObject=n8o;function i8o(t){return t!=null&&typeof t=="object"}function o8o(t){return t==null?t===void 0?ZIo:XIo:rV&&rV in Object(t)?s8o(t):a8o(t)}function s8o(t){let e=gVr.call(t,rV),r=t[rV],o=!1;try{t[rV]=void 0,o=!0}catch{}let s=yVr.call(t);return o&&(e?t[rV]=r:delete t[rV]),s}function a8o(t){return yVr.call(t)}});var xVr=E(lOe=>{"use strict";Object.defineProperty(lOe,"__esModule",{value:!0});lOe.merge=void 0;var vVr=AVr(),c8o=20;function l8o(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=EVr(e,t.shift(),0,r);return e}lOe.merge=l8o;function VTt(t){return cOe(t)?t.slice():t}function EVr(t,e,r=0,o){let s;if(!(r>c8o)){if(r++,aOe(t)||aOe(e)||SVr(e))s=VTt(e);else if(cOe(t)){if(s=t.slice(),cOe(e))for(let a=0,i=e.length;a<i;a++)s.push(VTt(e[a]));else if(r2e(e)){let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i];s[c]=VTt(e[c])}}}else if(r2e(t))if(r2e(e)){if(!u8o(t,e))return e;s=Object.assign({},t);let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i],u=e[c];if(aOe(u))typeof u>"u"?delete s[c]:s[c]=u;else{let f=s[c],d=u;if(bVr(t,c,o)||bVr(e,c,o))delete s[c];else{if(r2e(f)&&r2e(d)){let p=o.get(f)||[],h=o.get(d)||[];p.push({obj:t,key:c}),h.push({obj:e,key:c}),o.set(f,p),o.set(d,h)}s[c]=EVr(s[c],u,r,o)}}}}else s=e;return s}}function bVr(t,e,r){let o=r.get(t[e])||[];for(let s=0,a=o.length;s<a;s++){let i=o[s];if(i.key===e&&i.obj===t)return!0}return!1}function cOe(t){return Array.isArray(t)}function SVr(t){return typeof t=="function"}function r2e(t){return!aOe(t)&&!cOe(t)&&!SVr(t)&&typeof t=="object"}function aOe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function u8o(t,e){return!(!(0,vVr.isPlainObject)(t)||!(0,vVr.isPlainObject)(e))}});var _Vr=E(Zee=>{"use strict";Object.defineProperty(Zee,"__esModule",{value:!0});Zee.callWithTimeout=Zee.TimeoutError=void 0;var uOe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};Zee.TimeoutError=uOe;function f8o(t,e){let r,o=new Promise(function(a,i){r=setTimeout(function(){i(new uOe("Operation timed out."))},e)});return Promise.race([t,o]).then(s=>(clearTimeout(r),s),s=>{throw clearTimeout(r),s})}Zee.callWithTimeout=f8o});var TVr=E(ete=>{"use strict";Object.defineProperty(ete,"__esModule",{value:!0});ete.isUrlIgnored=ete.urlMatches=void 0;function CVr(t,e){return typeof e=="string"?t===e:!!t.match(e)}ete.urlMatches=CVr;function d8o(t,e){if(!e)return!1;for(let r of e)if(CVr(t,r))return!0;return!1}ete.isUrlIgnored=d8o});var wVr=E(fOe=>{"use strict";Object.defineProperty(fOe,"__esModule",{value:!0});fOe.Deferred=void 0;var GTt=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};fOe.Deferred=GTt});var IVr=E(dOe=>{"use strict";Object.defineProperty(dOe,"__esModule",{value:!0});dOe.BindOnceFuture=void 0;var p8o=wVr(),jTt=class{_callback;_that;_isCalled=!1;_deferred=new p8o.Deferred;constructor(e,r){this._callback=e,this._that=r}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(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};dOe.BindOnceFuture=jTt});var OVr=E(pOe=>{"use strict";Object.defineProperty(pOe,"__esModule",{value:!0});pOe.diagLogLevelFromString=void 0;var rO=(ut(),nt(xt)),DVr={ALL:rO.DiagLogLevel.ALL,VERBOSE:rO.DiagLogLevel.VERBOSE,DEBUG:rO.DiagLogLevel.DEBUG,INFO:rO.DiagLogLevel.INFO,WARN:rO.DiagLogLevel.WARN,ERROR:rO.DiagLogLevel.ERROR,NONE:rO.DiagLogLevel.NONE};function h8o(t){if(t==null)return;let e=DVr[t.toUpperCase()];return e??(rO.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(DVr)}, using default`),rO.DiagLogLevel.INFO)}pOe.diagLogLevelFromString=h8o});var NVr=E(hOe=>{"use strict";Object.defineProperty(hOe,"__esModule",{value:!0});hOe._export=void 0;var RVr=(ut(),nt(xt)),m8o=Z0e();function g8o(t,e){return new Promise(r=>{RVr.context.with((0,m8o.suppressTracing)(RVr.context.active()),()=>{t.export(e,o=>{r(o)})})})}hOe._export=g8o});var n2e=E(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.internal=an.diagLogLevelFromString=an.BindOnceFuture=an.urlMatches=an.isUrlIgnored=an.callWithTimeout=an.TimeoutError=an.merge=an.TraceState=an.unsuppressTracing=an.suppressTracing=an.isTracingSuppressed=an.setRPCMetadata=an.getRPCMetadata=an.deleteRPCMetadata=an.RPCType=an.parseTraceParent=an.W3CTraceContextPropagator=an.TRACE_STATE_HEADER=an.TRACE_PARENT_HEADER=an.CompositePropagator=an.unrefTimer=an.otperformance=an.getStringListFromEnv=an.getNumberFromEnv=an.getBooleanFromEnv=an.getStringFromEnv=an._globalThis=an.SDK_INFO=an.parseKeyPairsIntoRecord=an.ExportResultCode=an.timeInputToHrTime=an.millisToHrTime=an.isTimeInputHrTime=an.isTimeInput=an.hrTimeToTimeStamp=an.hrTimeToNanoseconds=an.hrTimeToMilliseconds=an.hrTimeToMicroseconds=an.hrTimeDuration=an.hrTime=an.getTimeOrigin=an.addHrTimes=an.loggingErrorHandler=an.setGlobalErrorHandler=an.globalErrorHandler=an.sanitizeAttributes=an.isAttributeValue=an.AnchoredClock=an.W3CBaggagePropagator=void 0;var y8o=PHr();Object.defineProperty(an,"W3CBaggagePropagator",{enumerable:!0,get:function(){return y8o.W3CBaggagePropagator}});var A8o=BHr();Object.defineProperty(an,"AnchoredClock",{enumerable:!0,get:function(){return A8o.AnchoredClock}});var PVr=FHr();Object.defineProperty(an,"isAttributeValue",{enumerable:!0,get:function(){return PVr.isAttributeValue}});Object.defineProperty(an,"sanitizeAttributes",{enumerable:!0,get:function(){return PVr.sanitizeAttributes}});var BVr=qHr();Object.defineProperty(an,"globalErrorHandler",{enumerable:!0,get:function(){return BVr.globalErrorHandler}});Object.defineProperty(an,"setGlobalErrorHandler",{enumerable:!0,get:function(){return BVr.setGlobalErrorHandler}});var v8o=NTt();Object.defineProperty(an,"loggingErrorHandler",{enumerable:!0,get:function(){return v8o.loggingErrorHandler}});var $x=rVr();Object.defineProperty(an,"addHrTimes",{enumerable:!0,get:function(){return $x.addHrTimes}});Object.defineProperty(an,"getTimeOrigin",{enumerable:!0,get:function(){return $x.getTimeOrigin}});Object.defineProperty(an,"hrTime",{enumerable:!0,get:function(){return $x.hrTime}});Object.defineProperty(an,"hrTimeDuration",{enumerable:!0,get:function(){return $x.hrTimeDuration}});Object.defineProperty(an,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return $x.hrTimeToMicroseconds}});Object.defineProperty(an,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return $x.hrTimeToMilliseconds}});Object.defineProperty(an,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return $x.hrTimeToNanoseconds}});Object.defineProperty(an,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return $x.hrTimeToTimeStamp}});Object.defineProperty(an,"isTimeInput",{enumerable:!0,get:function(){return $x.isTimeInput}});Object.defineProperty(an,"isTimeInputHrTime",{enumerable:!0,get:function(){return $x.isTimeInputHrTime}});Object.defineProperty(an,"millisToHrTime",{enumerable:!0,get:function(){return $x.millisToHrTime}});Object.defineProperty(an,"timeInputToHrTime",{enumerable:!0,get:function(){return $x.timeInputToHrTime}});var b8o=nVr();Object.defineProperty(an,"ExportResultCode",{enumerable:!0,get:function(){return b8o.ExportResultCode}});var E8o=wTt();Object.defineProperty(an,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return E8o.parseKeyPairsIntoRecord}});var mk=PTt();Object.defineProperty(an,"SDK_INFO",{enumerable:!0,get:function(){return mk.SDK_INFO}});Object.defineProperty(an,"_globalThis",{enumerable:!0,get:function(){return mk._globalThis}});Object.defineProperty(an,"getStringFromEnv",{enumerable:!0,get:function(){return mk.getStringFromEnv}});Object.defineProperty(an,"getBooleanFromEnv",{enumerable:!0,get:function(){return mk.getBooleanFromEnv}});Object.defineProperty(an,"getNumberFromEnv",{enumerable:!0,get:function(){return mk.getNumberFromEnv}});Object.defineProperty(an,"getStringListFromEnv",{enumerable:!0,get:function(){return mk.getStringListFromEnv}});Object.defineProperty(an,"otperformance",{enumerable:!0,get:function(){return mk.otperformance}});Object.defineProperty(an,"unrefTimer",{enumerable:!0,get:function(){return mk.unrefTimer}});var S8o=oVr();Object.defineProperty(an,"CompositePropagator",{enumerable:!0,get:function(){return S8o.CompositePropagator}});var mOe=dVr();Object.defineProperty(an,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return mOe.TRACE_PARENT_HEADER}});Object.defineProperty(an,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return mOe.TRACE_STATE_HEADER}});Object.defineProperty(an,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return mOe.W3CTraceContextPropagator}});Object.defineProperty(an,"parseTraceParent",{enumerable:!0,get:function(){return mOe.parseTraceParent}});var gOe=pVr();Object.defineProperty(an,"RPCType",{enumerable:!0,get:function(){return gOe.RPCType}});Object.defineProperty(an,"deleteRPCMetadata",{enumerable:!0,get:function(){return gOe.deleteRPCMetadata}});Object.defineProperty(an,"getRPCMetadata",{enumerable:!0,get:function(){return gOe.getRPCMetadata}});Object.defineProperty(an,"setRPCMetadata",{enumerable:!0,get:function(){return gOe.setRPCMetadata}});var $Tt=Z0e();Object.defineProperty(an,"isTracingSuppressed",{enumerable:!0,get:function(){return $Tt.isTracingSuppressed}});Object.defineProperty(an,"suppressTracing",{enumerable:!0,get:function(){return $Tt.suppressTracing}});Object.defineProperty(an,"unsuppressTracing",{enumerable:!0,get:function(){return $Tt.unsuppressTracing}});var x8o=QTt();Object.defineProperty(an,"TraceState",{enumerable:!0,get:function(){return x8o.TraceState}});var _8o=xVr();Object.defineProperty(an,"merge",{enumerable:!0,get:function(){return _8o.merge}});var kVr=_Vr();Object.defineProperty(an,"TimeoutError",{enumerable:!0,get:function(){return kVr.TimeoutError}});Object.defineProperty(an,"callWithTimeout",{enumerable:!0,get:function(){return kVr.callWithTimeout}});var MVr=TVr();Object.defineProperty(an,"isUrlIgnored",{enumerable:!0,get:function(){return MVr.isUrlIgnored}});Object.defineProperty(an,"urlMatches",{enumerable:!0,get:function(){return MVr.urlMatches}});var C8o=IVr();Object.defineProperty(an,"BindOnceFuture",{enumerable:!0,get:function(){return C8o.BindOnceFuture}});var T8o=OVr();Object.defineProperty(an,"diagLogLevelFromString",{enumerable:!0,get:function(){return T8o.diagLogLevelFromString}});var w8o=NVr();an.internal={_export:w8o._export}});function I8o(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function LVr(){return{handleResponse(t){t==null||!I8o(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||Er.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}var UVr=j(()=>{ut()});function yOe(t,e){return new WTt(t.transport,t.serializer,LVr(),t.promiseHandler,e.timeout)}var gk,WTt,zTt=j(()=>{gk=we(n2e());F7e();UVr();ut();WTt=class{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(e,r,o,s,a){this._transport=e,this._serializer=r,this._responseHandler=o,this._promiseQueue=s,this._timeout=a,this._diagLogger=Er.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,r){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){r({code:gk.ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});return}let o=this._serializer.serializeRequest(e);if(o==null){r({code:gk.ExportResultCode.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(o,this._timeout).then(s=>{if(s.status==="success"){if(s.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(s.data))}catch(a){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",a,s.data)}r({code:gk.ExportResultCode.SUCCESS});return}else if(s.status==="failure"&&s.error){r({code:gk.ExportResultCode.FAILED,error:s.error});return}else s.status==="retryable"?r({code:gk.ExportResultCode.FAILED,error:new tO("Export failed with retryable status")}):r({code:gk.ExportResultCode.FAILED,error:new tO("Export failed with unknown error")})},s=>r({code:gk.ExportResultCode.FAILED,error:s})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}});function FVr(t,e,r){return yOe({transport:r,serializer:e,promiseHandler:G7e(t)},{timeout:t.timeoutMillis})}var QVr=j(()=>{_Tt();zTt()});var qVr={};ss(qVr,{CompressionAlgorithm:()=>V7e,OTLPExporterBase:()=>U7e,OTLPExporterError:()=>tO,createOtlpNetworkExportDelegate:()=>FVr,getSharedConfigurationDefaults:()=>H7e,mergeOtlpSharedConfigurationWithDefaults:()=>q7e});var HVr=j(()=>{OHr();F7e();X0e();RHr();QVr()});var KTt=E((Aqc,VVr)=>{"use strict";VVr.exports=D8o;function D8o(t,e){for(var r=new Array(arguments.length-1),o=0,s=2,a=!0;s<arguments.length;)r[o++]=arguments[s++];return new Promise(function(n,c){r[o]=function(f){if(a)if(a=!1,f)c(f);else{for(var d=new Array(arguments.length-1),p=0;p<d.length;)d[p++]=arguments[p];n.apply(null,d)}};try{t.apply(e||null,r)}catch(u){a&&(a=!1,c(u))}})}});var WVr=E($Vr=>{"use strict";var AOe=$Vr;AOe.length=function(e){var r=e.length;if(!r)return 0;for(var o=0;--r%4>1&&e.charAt(r)==="=";)++o;return Math.ceil(e.length*3)/4-o};var tte=new Array(64),jVr=new Array(123);for(q4=0;q4<64;)jVr[tte[q4]=q4<26?q4+65:q4<52?q4+71:q4<62?q4-4:q4-59|43]=q4++;var q4;AOe.encode=function(e,r,o){for(var s=null,a=[],i=0,n=0,c;r<o;){var u=e[r++];switch(n){case 0:a[i++]=tte[u>>2],c=(u&3)<<4,n=1;break;case 1:a[i++]=tte[c|u>>4],c=(u&15)<<2,n=2;break;case 2:a[i++]=tte[c|u>>6],a[i++]=tte[u&63],n=0;break}i>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,a)),i=0)}return n&&(a[i++]=tte[c],a[i++]=61,n===1&&(a[i++]=61)),s?(i&&s.push(String.fromCharCode.apply(String,a.slice(0,i))),s.join("")):String.fromCharCode.apply(String,a.slice(0,i))};var GVr="invalid encoding";AOe.decode=function(e,r,o){for(var s=o,a=0,i,n=0;n<e.length;){var c=e.charCodeAt(n++);if(c===61&&a>1)break;if((c=jVr[c])===void 0)throw Error(GVr);switch(a){case 0:i=c,a=1;break;case 1:r[o++]=i<<2|(c&48)>>4,i=c,a=2;break;case 2:r[o++]=(i&15)<<4|(c&60)>>2,i=c,a=3;break;case 3:r[o++]=(i&3)<<6|c,a=0;break}}if(a===1)throw Error(GVr);return o-s};AOe.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}});var KVr=E((bqc,zVr)=>{"use strict";zVr.exports=vOe;function vOe(){this._listeners={}}vOe.prototype.on=function(e,r,o){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:r,ctx:o||this}),this};vOe.prototype.off=function(e,r){if(e===void 0)this._listeners={};else if(r===void 0)this._listeners[e]=[];else for(var o=this._listeners[e],s=0;s<o.length;)o[s].fn===r?o.splice(s,1):++s;return this};vOe.prototype.emit=function(e){var r=this._listeners[e];if(r){for(var o=[],s=1;s<arguments.length;)o.push(arguments[s++]);for(s=0;s<r.length;)r[s].fn.apply(r[s++].ctx,o)}return this}});var rGr=E((Eqc,tGr)=>{"use strict";tGr.exports=YVr(YVr);function YVr(t){return typeof Float32Array<"u"?(function(){var e=new Float32Array([-0]),r=new Uint8Array(e.buffer),o=r[3]===128;function s(c,u,f){e[0]=c,u[f]=r[0],u[f+1]=r[1],u[f+2]=r[2],u[f+3]=r[3]}function a(c,u,f){e[0]=c,u[f]=r[3],u[f+1]=r[2],u[f+2]=r[1],u[f+3]=r[0]}t.writeFloatLE=o?s:a,t.writeFloatBE=o?a:s;function i(c,u){return r[0]=c[u],r[1]=c[u+1],r[2]=c[u+2],r[3]=c[u+3],e[0]}function n(c,u){return r[3]=c[u],r[2]=c[u+1],r[1]=c[u+2],r[0]=c[u+3],e[0]}t.readFloatLE=o?i:n,t.readFloatBE=o?n:i})():(function(){function e(o,s,a,i){var n=s<0?1:0;if(n&&(s=-s),s===0)o(1/s>0?0:2147483648,a,i);else if(isNaN(s))o(2143289344,a,i);else if(s>34028234663852886e22)o((n<<31|2139095040)>>>0,a,i);else if(s<11754943508222875e-54)o((n<<31|Math.round(s/1401298464324817e-60))>>>0,a,i);else{var c=Math.floor(Math.log(s)/Math.LN2),u=Math.round(s*Math.pow(2,-c)*8388608)&8388607;o((n<<31|c+127<<23|u)>>>0,a,i)}}t.writeFloatLE=e.bind(null,JVr),t.writeFloatBE=e.bind(null,XVr);function r(o,s,a){var i=o(s,a),n=(i>>31)*2+1,c=i>>>23&255,u=i&8388607;return c===255?u?NaN:n*(1/0):c===0?n*1401298464324817e-60*u:n*Math.pow(2,c-150)*(u+8388608)}t.readFloatLE=r.bind(null,ZVr),t.readFloatBE=r.bind(null,eGr)})(),typeof Float64Array<"u"?(function(){var e=new Float64Array([-0]),r=new Uint8Array(e.buffer),o=r[7]===128;function s(c,u,f){e[0]=c,u[f]=r[0],u[f+1]=r[1],u[f+2]=r[2],u[f+3]=r[3],u[f+4]=r[4],u[f+5]=r[5],u[f+6]=r[6],u[f+7]=r[7]}function a(c,u,f){e[0]=c,u[f]=r[7],u[f+1]=r[6],u[f+2]=r[5],u[f+3]=r[4],u[f+4]=r[3],u[f+5]=r[2],u[f+6]=r[1],u[f+7]=r[0]}t.writeDoubleLE=o?s:a,t.writeDoubleBE=o?a:s;function i(c,u){return r[0]=c[u],r[1]=c[u+1],r[2]=c[u+2],r[3]=c[u+3],r[4]=c[u+4],r[5]=c[u+5],r[6]=c[u+6],r[7]=c[u+7],e[0]}function n(c,u){return r[7]=c[u],r[6]=c[u+1],r[5]=c[u+2],r[4]=c[u+3],r[3]=c[u+4],r[2]=c[u+5],r[1]=c[u+6],r[0]=c[u+7],e[0]}t.readDoubleLE=o?i:n,t.readDoubleBE=o?n:i})():(function(){function e(o,s,a,i,n,c){var u=i<0?1:0;if(u&&(i=-i),i===0)o(0,n,c+s),o(1/i>0?0:2147483648,n,c+a);else if(isNaN(i))o(0,n,c+s),o(2146959360,n,c+a);else if(i>17976931348623157e292)o(0,n,c+s),o((u<<31|2146435072)>>>0,n,c+a);else{var f;if(i<22250738585072014e-324)f=i/5e-324,o(f>>>0,n,c+s),o((u<<31|f/4294967296)>>>0,n,c+a);else{var d=Math.floor(Math.log(i)/Math.LN2);d===1024&&(d=1023),f=i*Math.pow(2,-d),o(f*4503599627370496>>>0,n,c+s),o((u<<31|d+1023<<20|f*1048576&1048575)>>>0,n,c+a)}}}t.writeDoubleLE=e.bind(null,JVr,0,4),t.writeDoubleBE=e.bind(null,XVr,4,0);function r(o,s,a,i,n){var c=o(i,n+s),u=o(i,n+a),f=(u>>31)*2+1,d=u>>>20&2047,p=4294967296*(u&1048575)+c;return d===2047?p?NaN:f*(1/0):d===0?f*5e-324*p:f*Math.pow(2,d-1075)*(p+4503599627370496)}t.readDoubleLE=r.bind(null,ZVr,0,4),t.readDoubleBE=r.bind(null,eGr,4,0)})(),t}function JVr(t,e,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}function XVr(t,e,r){e[r]=t>>>24,e[r+1]=t>>>16&255,e[r+2]=t>>>8&255,e[r+3]=t&255}function ZVr(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function eGr(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}});var YTt=E((exports,module)=>{"use strict";module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(t){}return null}});var iGr=E(nGr=>{"use strict";var JTt=nGr;JTt.length=function(e){for(var r=0,o=0,s=0;s<e.length;++s)o=e.charCodeAt(s),o<128?r+=1:o<2048?r+=2:(o&64512)===55296&&(e.charCodeAt(s+1)&64512)===56320?(++s,r+=4):r+=3;return r};JTt.read=function(e,r,o){var s=o-r;if(s<1)return"";for(var a=null,i=[],n=0,c;r<o;)c=e[r++],c<128?i[n++]=c:c>191&&c<224?i[n++]=(c&31)<<6|e[r++]&63:c>239&&c<365?(c=((c&7)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,i[n++]=55296+(c>>10),i[n++]=56320+(c&1023)):i[n++]=(c&15)<<12|(e[r++]&63)<<6|e[r++]&63,n>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,i)),n=0);return a?(n&&a.push(String.fromCharCode.apply(String,i.slice(0,n))),a.join("")):String.fromCharCode.apply(String,i.slice(0,n))};JTt.write=function(e,r,o){for(var s=o,a,i,n=0;n<e.length;++n)a=e.charCodeAt(n),a<128?r[o++]=a:a<2048?(r[o++]=a>>6|192,r[o++]=a&63|128):(a&64512)===55296&&((i=e.charCodeAt(n+1))&64512)===56320?(a=65536+((a&1023)<<10)+(i&1023),++n,r[o++]=a>>18|240,r[o++]=a>>12&63|128,r[o++]=a>>6&63|128,r[o++]=a&63|128):(r[o++]=a>>12|224,r[o++]=a>>6&63|128,r[o++]=a&63|128);return o-s}});var sGr=E((xqc,oGr)=>{"use strict";oGr.exports=O8o;function O8o(t,e,r){var o=r||8192,s=o>>>1,a=null,i=o;return function(c){if(c<1||c>s)return t(c);i+c>o&&(a=t(o),i=0);var u=e.call(a,i,i+=c);return i&7&&(i=(i|7)+1),u}}});var cGr=E((_qc,aGr)=>{"use strict";aGr.exports=i0;var i2e=z5();function i0(t,e){this.lo=t>>>0,this.hi=e>>>0}var nV=i0.zero=new i0(0,0);nV.toNumber=function(){return 0};nV.zzEncode=nV.zzDecode=function(){return this};nV.length=function(){return 1};var R8o=i0.zeroHash="\0\0\0\0\0\0\0\0";i0.fromNumber=function(e){if(e===0)return nV;var r=e<0;r&&(e=-e);var o=e>>>0,s=(e-o)/4294967296>>>0;return r&&(s=~s>>>0,o=~o>>>0,++o>4294967295&&(o=0,++s>4294967295&&(s=0))),new i0(o,s)};i0.from=function(e){if(typeof e=="number")return i0.fromNumber(e);if(i2e.isString(e))if(i2e.Long)e=i2e.Long.fromString(e);else return i0.fromNumber(parseInt(e,10));return e.low||e.high?new i0(e.low>>>0,e.high>>>0):nV};i0.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var r=~this.lo+1>>>0,o=~this.hi>>>0;return r||(o=o+1>>>0),-(r+o*4294967296)}return this.lo+this.hi*4294967296};i0.prototype.toLong=function(e){return i2e.Long?new i2e.Long(this.lo|0,this.hi|0,!!e):{low:this.lo|0,high:this.hi|0,unsigned:!!e}};var yk=String.prototype.charCodeAt;i0.fromHash=function(e){return e===R8o?nV:new i0((yk.call(e,0)|yk.call(e,1)<<8|yk.call(e,2)<<16|yk.call(e,3)<<24)>>>0,(yk.call(e,4)|yk.call(e,5)<<8|yk.call(e,6)<<16|yk.call(e,7)<<24)>>>0)};i0.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};i0.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this};i0.prototype.zzDecode=function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this};i0.prototype.length=function(){var e=this.lo,r=(this.lo>>>28|this.hi<<4)>>>0,o=this.hi>>>24;return o===0?r===0?e<16384?e<128?1:2:e<2097152?3:4:r<16384?r<128?5:6:r<2097152?7:8:o<128?9:10}});var z5=E(XTt=>{"use strict";var bo=XTt;bo.asPromise=KTt();bo.base64=WVr();bo.EventEmitter=KVr();bo.float=rGr();bo.inquire=YTt();bo.utf8=iGr();bo.pool=sGr();bo.LongBits=cGr();bo.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);bo.global=bo.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||XTt;bo.emptyArray=Object.freeze?Object.freeze([]):[];bo.emptyObject=Object.freeze?Object.freeze({}):{};bo.isInteger=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};bo.isString=function(e){return typeof e=="string"||e instanceof String};bo.isObject=function(e){return e&&typeof e=="object"};bo.isset=bo.isSet=function(e,r){var o=e[r];return o!=null&&e.hasOwnProperty(r)?typeof o!="object"||(Array.isArray(o)?o.length:Object.keys(o).length)>0:!1};bo.Buffer=(function(){try{var t=bo.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch{return null}})();bo._Buffer_from=null;bo._Buffer_allocUnsafe=null;bo.newBuffer=function(e){return typeof e=="number"?bo.Buffer?bo._Buffer_allocUnsafe(e):new bo.Array(e):bo.Buffer?bo._Buffer_from(e):typeof Uint8Array>"u"?e:new Uint8Array(e)};bo.Array=typeof Uint8Array<"u"?Uint8Array:Array;bo.Long=bo.global.dcodeIO&&bo.global.dcodeIO.Long||bo.global.Long||bo.inquire("long");bo.key2Re=/^true|false|0|1$/;bo.key32Re=/^-?(?:0|[1-9][0-9]*)$/;bo.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;bo.longToHash=function(e){return e?bo.LongBits.from(e).toHash():bo.LongBits.zeroHash};bo.longFromHash=function(e,r){var o=bo.LongBits.fromHash(e);return bo.Long?bo.Long.fromBits(o.lo,o.hi,r):o.toNumber(!!r)};function lGr(t,e,r){for(var o=Object.keys(e),s=0;s<o.length;++s)(t[o[s]]===void 0||!r)&&(t[o[s]]=e[o[s]]);return t}bo.merge=lGr;bo.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)};function uGr(t){function e(r,o){if(!(this instanceof e))return new e(r,o);Object.defineProperty(this,"message",{get:function(){return r}}),Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:new Error().stack||""}),o&&lGr(this,o)}return e.prototype=Object.create(Error.prototype,{constructor:{value:e,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return t},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),e}bo.newError=uGr;bo.ProtocolError=uGr("ProtocolError");bo.oneOfGetter=function(e){for(var r={},o=0;o<e.length;++o)r[e[o]]=1;return function(){for(var s=Object.keys(this),a=s.length-1;a>-1;--a)if(r[s[a]]===1&&this[s[a]]!==void 0&&this[s[a]]!==null)return s[a]}};bo.oneOfSetter=function(e){return function(r){for(var o=0;o<e.length;++o)e[o]!==r&&delete this[e[o]]}};bo.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};bo._configure=function(){var t=bo.Buffer;if(!t){bo._Buffer_from=bo._Buffer_allocUnsafe=null;return}bo._Buffer_from=t.from!==Uint8Array.from&&t.from||function(r,o){return new t(r,o)},bo._Buffer_allocUnsafe=t.allocUnsafe||function(r){return new t(r)}}});var EOe=E((Tqc,hGr)=>{"use strict";hGr.exports=dl;var Wx=z5(),ZTt,bOe=Wx.LongBits,fGr=Wx.base64,dGr=Wx.utf8;function o2e(t,e,r){this.fn=t,this.len=e,this.next=void 0,this.val=r}function t4t(){}function N8o(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function dl(){this.len=0,this.head=new o2e(t4t,0,0),this.tail=this.head,this.states=null}var pGr=function(){return Wx.Buffer?function(){return(dl.create=function(){return new ZTt})()}:function(){return new dl}};dl.create=pGr();dl.alloc=function(e){return new Wx.Array(e)};Wx.Array!==Array&&(dl.alloc=Wx.pool(dl.alloc,Wx.Array.prototype.subarray));dl.prototype._push=function(e,r,o){return this.tail=this.tail.next=new o2e(e,r,o),this.len+=r,this};function r4t(t,e,r){e[r]=t&255}function P8o(t,e,r){for(;t>127;)e[r++]=t&127|128,t>>>=7;e[r]=t}function n4t(t,e){this.len=t,this.next=void 0,this.val=e}n4t.prototype=Object.create(o2e.prototype);n4t.prototype.fn=P8o;dl.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new n4t((e=e>>>0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this};dl.prototype.int32=function(e){return e<0?this._push(i4t,10,bOe.fromNumber(e)):this.uint32(e)};dl.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function i4t(t,e,r){for(;t.hi;)e[r++]=t.lo&127|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[r++]=t.lo&127|128,t.lo=t.lo>>>7;e[r++]=t.lo}dl.prototype.uint64=function(e){var r=bOe.from(e);return this._push(i4t,r.length(),r)};dl.prototype.int64=dl.prototype.uint64;dl.prototype.sint64=function(e){var r=bOe.from(e).zzEncode();return this._push(i4t,r.length(),r)};dl.prototype.bool=function(e){return this._push(r4t,1,e?1:0)};function e4t(t,e,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}dl.prototype.fixed32=function(e){return this._push(e4t,4,e>>>0)};dl.prototype.sfixed32=dl.prototype.fixed32;dl.prototype.fixed64=function(e){var r=bOe.from(e);return this._push(e4t,4,r.lo)._push(e4t,4,r.hi)};dl.prototype.sfixed64=dl.prototype.fixed64;dl.prototype.float=function(e){return this._push(Wx.float.writeFloatLE,4,e)};dl.prototype.double=function(e){return this._push(Wx.float.writeDoubleLE,8,e)};var B8o=Wx.Array.prototype.set?function(e,r,o){r.set(e,o)}:function(e,r,o){for(var s=0;s<e.length;++s)r[o+s]=e[s]};dl.prototype.bytes=function(e){var r=e.length>>>0;if(!r)return this._push(r4t,1,0);if(Wx.isString(e)){var o=dl.alloc(r=fGr.length(e));fGr.decode(e,o,0),e=o}return this.uint32(r)._push(B8o,r,e)};dl.prototype.string=function(e){var r=dGr.length(e);return r?this.uint32(r)._push(dGr.write,r,e):this._push(r4t,1,0)};dl.prototype.fork=function(){return this.states=new N8o(this),this.head=this.tail=new o2e(t4t,0,0),this.len=0,this};dl.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new o2e(t4t,0,0),this.len=0),this};dl.prototype.ldelim=function(){var e=this.head,r=this.tail,o=this.len;return this.reset().uint32(o),o&&(this.tail.next=e.next,this.tail=r,this.len+=o),this};dl.prototype.finish=function(){for(var e=this.head.next,r=this.constructor.alloc(this.len),o=0;e;)e.fn(e.val,r,o),o+=e.len,e=e.next;return r};dl._configure=function(t){ZTt=t,dl.create=pGr(),ZTt._configure()}});var yGr=E((wqc,gGr)=>{"use strict";gGr.exports=K5;var mGr=EOe();(K5.prototype=Object.create(mGr.prototype)).constructor=K5;var Ak=z5();function K5(){mGr.call(this)}K5._configure=function(){K5.alloc=Ak._Buffer_allocUnsafe,K5.writeBytesBuffer=Ak.Buffer&&Ak.Buffer.prototype instanceof Uint8Array&&Ak.Buffer.prototype.set.name==="set"?function(e,r,o){r.set(e,o)}:function(e,r,o){if(e.copy)e.copy(r,o,0,e.length);else for(var s=0;s<e.length;)r[o++]=e[s++]}};K5.prototype.bytes=function(e){Ak.isString(e)&&(e=Ak._Buffer_from(e,"base64"));var r=e.length>>>0;return this.uint32(r),r&&this._push(K5.writeBytesBuffer,r,e),this};function k8o(t,e,r){t.length<40?Ak.utf8.write(t,e,r):e.utf8Write?e.utf8Write(t,r):e.write(t,r)}K5.prototype.string=function(e){var r=Ak.Buffer.byteLength(e);return this.uint32(r),r&&this._push(k8o,r,e),this};K5._configure()});var xOe=E((Iqc,SGr)=>{"use strict";SGr.exports=Bh;var H4=z5(),s4t,bGr=H4.LongBits,M8o=H4.utf8;function V4(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function Bh(t){this.buf=t,this.pos=0,this.len=t.length}var AGr=typeof Uint8Array<"u"?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new Bh(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new Bh(e);throw Error("illegal buffer")},EGr=function(){return H4.Buffer?function(r){return(Bh.create=function(s){return H4.Buffer.isBuffer(s)?new s4t(s):AGr(s)})(r)}:AGr};Bh.create=EGr();Bh.prototype._slice=H4.Array.prototype.subarray||H4.Array.prototype.slice;Bh.prototype.uint32=(function(){var e=4294967295;return function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,V4(this,10);return e}})();Bh.prototype.int32=function(){return this.uint32()|0};Bh.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function o4t(){var t=new bGr(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(t.lo=(t.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(this.buf[this.pos]&127)<<28)>>>0,t.hi=(t.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return t;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw V4(this);if(t.lo=(t.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(this.buf[this.pos++]&127)<<e*7)>>>0,t}if(this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw V4(this);if(t.hi=(t.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}Bh.prototype.bool=function(){return this.uint32()!==0};function SOe(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}Bh.prototype.fixed32=function(){if(this.pos+4>this.len)throw V4(this,4);return SOe(this.buf,this.pos+=4)};Bh.prototype.sfixed32=function(){if(this.pos+4>this.len)throw V4(this,4);return SOe(this.buf,this.pos+=4)|0};function vGr(){if(this.pos+8>this.len)throw V4(this,8);return new bGr(SOe(this.buf,this.pos+=4),SOe(this.buf,this.pos+=4))}Bh.prototype.float=function(){if(this.pos+4>this.len)throw V4(this,4);var e=H4.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};Bh.prototype.double=function(){if(this.pos+8>this.len)throw V4(this,4);var e=H4.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};Bh.prototype.bytes=function(){var e=this.uint32(),r=this.pos,o=this.pos+e;if(o>this.len)throw V4(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(r,o);if(r===o){var s=H4.Buffer;return s?s.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,r,o)};Bh.prototype.string=function(){var e=this.bytes();return M8o.read(e,0,e.length)};Bh.prototype.skip=function(e){if(typeof e=="number"){if(this.pos+e>this.len)throw V4(this,e);this.pos+=e}else do if(this.pos>=this.len)throw V4(this);while(this.buf[this.pos++]&128);return this};Bh.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(t=this.uint32()&7)!==4;)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this};Bh._configure=function(t){s4t=t,Bh.create=EGr(),s4t._configure();var e=H4.Long?"toLong":"toNumber";H4.merge(Bh.prototype,{int64:function(){return o4t.call(this)[e](!1)},uint64:function(){return o4t.call(this)[e](!0)},sint64:function(){return o4t.call(this).zzDecode()[e](!1)},fixed64:function(){return vGr.call(this)[e](!0)},sfixed64:function(){return vGr.call(this)[e](!1)}})}});var TGr=E((Dqc,CGr)=>{"use strict";CGr.exports=iV;var _Gr=xOe();(iV.prototype=Object.create(_Gr.prototype)).constructor=iV;var xGr=z5();function iV(t){_Gr.call(this,t)}iV._configure=function(){xGr.Buffer&&(iV.prototype._slice=xGr.Buffer.prototype.slice)};iV.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))};iV._configure()});var IGr=E((Oqc,wGr)=>{"use strict";wGr.exports=s2e;var a4t=z5();(s2e.prototype=Object.create(a4t.EventEmitter.prototype)).constructor=s2e;function s2e(t,e,r){if(typeof t!="function")throw TypeError("rpcImpl must be a function");a4t.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!e,this.responseDelimited=!!r}s2e.prototype.rpcCall=function t(e,r,o,s,a){if(!s)throw TypeError("request must be specified");var i=this;if(!a)return a4t.asPromise(t,i,e,r,o,s);if(!i.rpcImpl){setTimeout(function(){a(Error("already ended"))},0);return}try{return i.rpcImpl(e,r[i.requestDelimited?"encodeDelimited":"encode"](s).finish(),function(c,u){if(c)return i.emit("error",c,e),a(c);if(u===null){i.end(!0);return}if(!(u instanceof o))try{u=o[i.responseDelimited?"decodeDelimited":"decode"](u)}catch(f){return i.emit("error",f,e),a(f)}return i.emit("data",u,e),a(null,u)})}catch(n){i.emit("error",n,e),setTimeout(function(){a(n)},0);return}};s2e.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var c4t=E(DGr=>{"use strict";var L8o=DGr;L8o.Service=IGr()});var l4t=E((Nqc,OGr)=>{"use strict";OGr.exports={}});var u4t=E(NGr=>{"use strict";var wv=NGr;wv.build="minimal";wv.Writer=EOe();wv.BufferWriter=yGr();wv.Reader=xOe();wv.BufferReader=TGr();wv.util=z5();wv.rpc=c4t();wv.roots=l4t();wv.configure=RGr;function RGr(){wv.util._configure(),wv.Writer._configure(wv.BufferWriter),wv.Reader._configure(wv.BufferReader)}RGr()});var Y5=E((Bqc,PGr)=>{"use strict";PGr.exports=u4t()});var _Oe=E((BGr,kGr)=>{"use strict";Object.defineProperty(BGr,"__esModule",{value:!0});var Mo=Y5(),Kt=Mo.Reader,sa=Mo.Writer,$e=Mo.util,ke=Mo.roots.default||(Mo.roots.default={});ke.opentelemetry=(function(){var t={};return t.proto=(function(){var e={};return e.common=(function(){var r={};return r.v1=(function(){var o={};return o.AnyValue=(function(){function s(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.stringValue=null,s.prototype.boolValue=null,s.prototype.intValue=null,s.prototype.doubleValue=null,s.prototype.arrayValue=null,s.prototype.kvlistValue=null,s.prototype.bytesValue=null;var a;return Object.defineProperty(s.prototype,"value",{get:$e.oneOfGetter(a=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){return c||(c=sa.create()),n.stringValue!=null&&Object.hasOwnProperty.call(n,"stringValue")&&c.uint32(10).string(n.stringValue),n.boolValue!=null&&Object.hasOwnProperty.call(n,"boolValue")&&c.uint32(16).bool(n.boolValue),n.intValue!=null&&Object.hasOwnProperty.call(n,"intValue")&&c.uint32(24).int64(n.intValue),n.doubleValue!=null&&Object.hasOwnProperty.call(n,"doubleValue")&&c.uint32(33).double(n.doubleValue),n.arrayValue!=null&&Object.hasOwnProperty.call(n,"arrayValue")&&ke.opentelemetry.proto.common.v1.ArrayValue.encode(n.arrayValue,c.uint32(42).fork()).ldelim(),n.kvlistValue!=null&&Object.hasOwnProperty.call(n,"kvlistValue")&&ke.opentelemetry.proto.common.v1.KeyValueList.encode(n.kvlistValue,c.uint32(50).fork()).ldelim(),n.bytesValue!=null&&Object.hasOwnProperty.call(n,"bytesValue")&&c.uint32(58).bytes(n.bytesValue),c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.common.v1.AnyValue;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.stringValue=n.string();break}case 2:{d.boolValue=n.bool();break}case 3:{d.intValue=n.int64();break}case 4:{d.doubleValue=n.double();break}case 5:{d.arrayValue=ke.opentelemetry.proto.common.v1.ArrayValue.decode(n,n.uint32());break}case 6:{d.kvlistValue=ke.opentelemetry.proto.common.v1.KeyValueList.decode(n,n.uint32());break}case 7:{d.bytesValue=n.bytes();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.stringValue!=null&&n.hasOwnProperty("stringValue")&&(c.value=1,!$e.isString(n.stringValue)))return"stringValue: string expected";if(n.boolValue!=null&&n.hasOwnProperty("boolValue")){if(c.value===1)return"value: multiple values";if(c.value=1,typeof n.boolValue!="boolean")return"boolValue: boolean expected"}if(n.intValue!=null&&n.hasOwnProperty("intValue")){if(c.value===1)return"value: multiple values";if(c.value=1,!$e.isInteger(n.intValue)&&!(n.intValue&&$e.isInteger(n.intValue.low)&&$e.isInteger(n.intValue.high)))return"intValue: integer|Long expected"}if(n.doubleValue!=null&&n.hasOwnProperty("doubleValue")){if(c.value===1)return"value: multiple values";if(c.value=1,typeof n.doubleValue!="number")return"doubleValue: number expected"}if(n.arrayValue!=null&&n.hasOwnProperty("arrayValue")){if(c.value===1)return"value: multiple values";c.value=1;{var u=ke.opentelemetry.proto.common.v1.ArrayValue.verify(n.arrayValue);if(u)return"arrayValue."+u}}if(n.kvlistValue!=null&&n.hasOwnProperty("kvlistValue")){if(c.value===1)return"value: multiple values";c.value=1;{var u=ke.opentelemetry.proto.common.v1.KeyValueList.verify(n.kvlistValue);if(u)return"kvlistValue."+u}}if(n.bytesValue!=null&&n.hasOwnProperty("bytesValue")){if(c.value===1)return"value: multiple values";if(c.value=1,!(n.bytesValue&&typeof n.bytesValue.length=="number"||$e.isString(n.bytesValue)))return"bytesValue: buffer expected"}return null},s.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.common.v1.AnyValue)return n;var c=new ke.opentelemetry.proto.common.v1.AnyValue;if(n.stringValue!=null&&(c.stringValue=String(n.stringValue)),n.boolValue!=null&&(c.boolValue=!!n.boolValue),n.intValue!=null&&($e.Long?(c.intValue=$e.Long.fromValue(n.intValue)).unsigned=!1:typeof n.intValue=="string"?c.intValue=parseInt(n.intValue,10):typeof n.intValue=="number"?c.intValue=n.intValue:typeof n.intValue=="object"&&(c.intValue=new $e.LongBits(n.intValue.low>>>0,n.intValue.high>>>0).toNumber())),n.doubleValue!=null&&(c.doubleValue=Number(n.doubleValue)),n.arrayValue!=null){if(typeof n.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");c.arrayValue=ke.opentelemetry.proto.common.v1.ArrayValue.fromObject(n.arrayValue)}if(n.kvlistValue!=null){if(typeof n.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");c.kvlistValue=ke.opentelemetry.proto.common.v1.KeyValueList.fromObject(n.kvlistValue)}return n.bytesValue!=null&&(typeof n.bytesValue=="string"?$e.base64.decode(n.bytesValue,c.bytesValue=$e.newBuffer($e.base64.length(n.bytesValue)),0):n.bytesValue.length>=0&&(c.bytesValue=n.bytesValue)),c},s.toObject=function(n,c){c||(c={});var u={};return n.stringValue!=null&&n.hasOwnProperty("stringValue")&&(u.stringValue=n.stringValue,c.oneofs&&(u.value="stringValue")),n.boolValue!=null&&n.hasOwnProperty("boolValue")&&(u.boolValue=n.boolValue,c.oneofs&&(u.value="boolValue")),n.intValue!=null&&n.hasOwnProperty("intValue")&&(typeof n.intValue=="number"?u.intValue=c.longs===String?String(n.intValue):n.intValue:u.intValue=c.longs===String?$e.Long.prototype.toString.call(n.intValue):c.longs===Number?new $e.LongBits(n.intValue.low>>>0,n.intValue.high>>>0).toNumber():n.intValue,c.oneofs&&(u.value="intValue")),n.doubleValue!=null&&n.hasOwnProperty("doubleValue")&&(u.doubleValue=c.json&&!isFinite(n.doubleValue)?String(n.doubleValue):n.doubleValue,c.oneofs&&(u.value="doubleValue")),n.arrayValue!=null&&n.hasOwnProperty("arrayValue")&&(u.arrayValue=ke.opentelemetry.proto.common.v1.ArrayValue.toObject(n.arrayValue,c),c.oneofs&&(u.value="arrayValue")),n.kvlistValue!=null&&n.hasOwnProperty("kvlistValue")&&(u.kvlistValue=ke.opentelemetry.proto.common.v1.KeyValueList.toObject(n.kvlistValue,c),c.oneofs&&(u.value="kvlistValue")),n.bytesValue!=null&&n.hasOwnProperty("bytesValue")&&(u.bytesValue=c.bytes===String?$e.base64.encode(n.bytesValue,0,n.bytesValue.length):c.bytes===Array?Array.prototype.slice.call(n.bytesValue):n.bytesValue,c.oneofs&&(u.value="bytesValue")),u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.common.v1.AnyValue"},s})(),o.ArrayValue=(function(){function s(a){if(this.values=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.values=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.values!=null&&i.values.length)for(var c=0;c<i.values.length;++c)ke.opentelemetry.proto.common.v1.AnyValue.encode(i.values[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.common.v1.ArrayValue;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.values&&f.values.length||(f.values=[]),f.values.push(ke.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.values!=null&&i.hasOwnProperty("values")){if(!Array.isArray(i.values))return"values: array expected";for(var n=0;n<i.values.length;++n){var c=ke.opentelemetry.proto.common.v1.AnyValue.verify(i.values[n]);if(c)return"values."+c}}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.common.v1.ArrayValue)return i;var n=new ke.opentelemetry.proto.common.v1.ArrayValue;if(i.values){if(!Array.isArray(i.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");n.values=[];for(var c=0;c<i.values.length;++c){if(typeof i.values[c]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");n.values[c]=ke.opentelemetry.proto.common.v1.AnyValue.fromObject(i.values[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.values=[]),i.values&&i.values.length){c.values=[];for(var u=0;u<i.values.length;++u)c.values[u]=ke.opentelemetry.proto.common.v1.AnyValue.toObject(i.values[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.ArrayValue"},s})(),o.KeyValueList=(function(){function s(a){if(this.values=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.values=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.values!=null&&i.values.length)for(var c=0;c<i.values.length;++c)ke.opentelemetry.proto.common.v1.KeyValue.encode(i.values[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.common.v1.KeyValueList;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.values&&f.values.length||(f.values=[]),f.values.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.values!=null&&i.hasOwnProperty("values")){if(!Array.isArray(i.values))return"values: array expected";for(var n=0;n<i.values.length;++n){var c=ke.opentelemetry.proto.common.v1.KeyValue.verify(i.values[n]);if(c)return"values."+c}}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.common.v1.KeyValueList)return i;var n=new ke.opentelemetry.proto.common.v1.KeyValueList;if(i.values){if(!Array.isArray(i.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");n.values=[];for(var c=0;c<i.values.length;++c){if(typeof i.values[c]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");n.values[c]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(i.values[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.values=[]),i.values&&i.values.length){c.values=[];for(var u=0;u<i.values.length;++u)c.values[u]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(i.values[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.KeyValueList"},s})(),o.KeyValue=(function(){function s(a){if(a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.key=null,s.prototype.value=null,s.create=function(i){return new s(i)},s.encode=function(i,n){return n||(n=sa.create()),i.key!=null&&Object.hasOwnProperty.call(i,"key")&&n.uint32(10).string(i.key),i.value!=null&&Object.hasOwnProperty.call(i,"value")&&ke.opentelemetry.proto.common.v1.AnyValue.encode(i.value,n.uint32(18).fork()).ldelim(),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.common.v1.KeyValue;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.key=i.string();break}case 2:{f.value=ke.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32());break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.key!=null&&i.hasOwnProperty("key")&&!$e.isString(i.key))return"key: string expected";if(i.value!=null&&i.hasOwnProperty("value")){var n=ke.opentelemetry.proto.common.v1.AnyValue.verify(i.value);if(n)return"value."+n}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.common.v1.KeyValue)return i;var n=new ke.opentelemetry.proto.common.v1.KeyValue;if(i.key!=null&&(n.key=String(i.key)),i.value!=null){if(typeof i.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");n.value=ke.opentelemetry.proto.common.v1.AnyValue.fromObject(i.value)}return n},s.toObject=function(i,n){n||(n={});var c={};return n.defaults&&(c.key="",c.value=null),i.key!=null&&i.hasOwnProperty("key")&&(c.key=i.key),i.value!=null&&i.hasOwnProperty("value")&&(c.value=ke.opentelemetry.proto.common.v1.AnyValue.toObject(i.value,n)),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.KeyValue"},s})(),o.InstrumentationScope=(function(){function s(a){if(this.attributes=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.name=null,s.prototype.version=null,s.prototype.attributes=$e.emptyArray,s.prototype.droppedAttributesCount=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.name!=null&&Object.hasOwnProperty.call(i,"name")&&n.uint32(10).string(i.name),i.version!=null&&Object.hasOwnProperty.call(i,"version")&&n.uint32(18).string(i.version),i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)ke.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(26).fork()).ldelim();return i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&n.uint32(32).uint32(i.droppedAttributesCount),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.common.v1.InstrumentationScope;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.name=i.string();break}case 2:{f.version=i.string();break}case 3:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 4:{f.droppedAttributesCount=i.uint32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.name!=null&&i.hasOwnProperty("name")&&!$e.isString(i.name))return"name: string expected";if(i.version!=null&&i.hasOwnProperty("version")&&!$e.isString(i.version))return"version: string expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var n=0;n<i.attributes.length;++n){var c=ke.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[n]);if(c)return"attributes."+c}}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(i.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.common.v1.InstrumentationScope)return i;var n=new ke.opentelemetry.proto.common.v1.InstrumentationScope;if(i.name!=null&&(n.name=String(i.name)),i.version!=null&&(n.version=String(i.version)),i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");n.attributes[c]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}return i.droppedAttributesCount!=null&&(n.droppedAttributesCount=i.droppedAttributesCount>>>0),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.attributes=[]),n.defaults&&(c.name="",c.version="",c.droppedAttributesCount=0),i.name!=null&&i.hasOwnProperty("name")&&(c.name=i.name),i.version!=null&&i.hasOwnProperty("version")&&(c.version=i.version),i.attributes&&i.attributes.length){c.attributes=[];for(var u=0;u<i.attributes.length;++u)c.attributes[u]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[u],n)}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=i.droppedAttributesCount),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.InstrumentationScope"},s})(),o.EntityRef=(function(){function s(a){if(this.idKeys=[],this.descriptionKeys=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.schemaUrl=null,s.prototype.type=null,s.prototype.idKeys=$e.emptyArray,s.prototype.descriptionKeys=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(10).string(i.schemaUrl),i.type!=null&&Object.hasOwnProperty.call(i,"type")&&n.uint32(18).string(i.type),i.idKeys!=null&&i.idKeys.length)for(var c=0;c<i.idKeys.length;++c)n.uint32(26).string(i.idKeys[c]);if(i.descriptionKeys!=null&&i.descriptionKeys.length)for(var c=0;c<i.descriptionKeys.length;++c)n.uint32(34).string(i.descriptionKeys[c]);return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.common.v1.EntityRef;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.schemaUrl=i.string();break}case 2:{f.type=i.string();break}case 3:{f.idKeys&&f.idKeys.length||(f.idKeys=[]),f.idKeys.push(i.string());break}case 4:{f.descriptionKeys&&f.descriptionKeys.length||(f.descriptionKeys=[]),f.descriptionKeys.push(i.string());break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl))return"schemaUrl: string expected";if(i.type!=null&&i.hasOwnProperty("type")&&!$e.isString(i.type))return"type: string expected";if(i.idKeys!=null&&i.hasOwnProperty("idKeys")){if(!Array.isArray(i.idKeys))return"idKeys: array expected";for(var n=0;n<i.idKeys.length;++n)if(!$e.isString(i.idKeys[n]))return"idKeys: string[] expected"}if(i.descriptionKeys!=null&&i.hasOwnProperty("descriptionKeys")){if(!Array.isArray(i.descriptionKeys))return"descriptionKeys: array expected";for(var n=0;n<i.descriptionKeys.length;++n)if(!$e.isString(i.descriptionKeys[n]))return"descriptionKeys: string[] expected"}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.common.v1.EntityRef)return i;var n=new ke.opentelemetry.proto.common.v1.EntityRef;if(i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),i.type!=null&&(n.type=String(i.type)),i.idKeys){if(!Array.isArray(i.idKeys))throw TypeError(".opentelemetry.proto.common.v1.EntityRef.idKeys: array expected");n.idKeys=[];for(var c=0;c<i.idKeys.length;++c)n.idKeys[c]=String(i.idKeys[c])}if(i.descriptionKeys){if(!Array.isArray(i.descriptionKeys))throw TypeError(".opentelemetry.proto.common.v1.EntityRef.descriptionKeys: array expected");n.descriptionKeys=[];for(var c=0;c<i.descriptionKeys.length;++c)n.descriptionKeys[c]=String(i.descriptionKeys[c])}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.idKeys=[],c.descriptionKeys=[]),n.defaults&&(c.schemaUrl="",c.type=""),i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),i.type!=null&&i.hasOwnProperty("type")&&(c.type=i.type),i.idKeys&&i.idKeys.length){c.idKeys=[];for(var u=0;u<i.idKeys.length;++u)c.idKeys[u]=i.idKeys[u]}if(i.descriptionKeys&&i.descriptionKeys.length){c.descriptionKeys=[];for(var u=0;u<i.descriptionKeys.length;++u)c.descriptionKeys[u]=i.descriptionKeys[u]}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.EntityRef"},s})(),o})(),r})(),e.resource=(function(){var r={};return r.v1=(function(){var o={};return o.Resource=(function(){function s(a){if(this.attributes=[],this.entityRefs=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.attributes=$e.emptyArray,s.prototype.droppedAttributesCount=null,s.prototype.entityRefs=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)ke.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(10).fork()).ldelim();if(i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&n.uint32(16).uint32(i.droppedAttributesCount),i.entityRefs!=null&&i.entityRefs.length)for(var c=0;c<i.entityRefs.length;++c)ke.opentelemetry.proto.common.v1.EntityRef.encode(i.entityRefs[c],n.uint32(26).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.resource.v1.Resource;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 2:{f.droppedAttributesCount=i.uint32();break}case 3:{f.entityRefs&&f.entityRefs.length||(f.entityRefs=[]),f.entityRefs.push(ke.opentelemetry.proto.common.v1.EntityRef.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var n=0;n<i.attributes.length;++n){var c=ke.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[n]);if(c)return"attributes."+c}}if(i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(i.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(i.entityRefs!=null&&i.hasOwnProperty("entityRefs")){if(!Array.isArray(i.entityRefs))return"entityRefs: array expected";for(var n=0;n<i.entityRefs.length;++n){var c=ke.opentelemetry.proto.common.v1.EntityRef.verify(i.entityRefs[n]);if(c)return"entityRefs."+c}}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.resource.v1.Resource)return i;var n=new ke.opentelemetry.proto.resource.v1.Resource;if(i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");n.attributes[c]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}if(i.droppedAttributesCount!=null&&(n.droppedAttributesCount=i.droppedAttributesCount>>>0),i.entityRefs){if(!Array.isArray(i.entityRefs))throw TypeError(".opentelemetry.proto.resource.v1.Resource.entityRefs: array expected");n.entityRefs=[];for(var c=0;c<i.entityRefs.length;++c){if(typeof i.entityRefs[c]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.entityRefs: object expected");n.entityRefs[c]=ke.opentelemetry.proto.common.v1.EntityRef.fromObject(i.entityRefs[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.attributes=[],c.entityRefs=[]),n.defaults&&(c.droppedAttributesCount=0),i.attributes&&i.attributes.length){c.attributes=[];for(var u=0;u<i.attributes.length;++u)c.attributes[u]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[u],n)}if(i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=i.droppedAttributesCount),i.entityRefs&&i.entityRefs.length){c.entityRefs=[];for(var u=0;u<i.entityRefs.length;++u)c.entityRefs[u]=ke.opentelemetry.proto.common.v1.EntityRef.toObject(i.entityRefs[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.resource.v1.Resource"},s})(),o})(),r})(),e.trace=(function(){var r={};return r.v1=(function(){var o={};return o.TracesData=(function(){function s(a){if(this.resourceSpans=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resourceSpans=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.resourceSpans!=null&&i.resourceSpans.length)for(var c=0;c<i.resourceSpans.length;++c)ke.opentelemetry.proto.trace.v1.ResourceSpans.encode(i.resourceSpans[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.trace.v1.TracesData;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resourceSpans&&f.resourceSpans.length||(f.resourceSpans=[]),f.resourceSpans.push(ke.opentelemetry.proto.trace.v1.ResourceSpans.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resourceSpans!=null&&i.hasOwnProperty("resourceSpans")){if(!Array.isArray(i.resourceSpans))return"resourceSpans: array expected";for(var n=0;n<i.resourceSpans.length;++n){var c=ke.opentelemetry.proto.trace.v1.ResourceSpans.verify(i.resourceSpans[n]);if(c)return"resourceSpans."+c}}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.trace.v1.TracesData)return i;var n=new ke.opentelemetry.proto.trace.v1.TracesData;if(i.resourceSpans){if(!Array.isArray(i.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");n.resourceSpans=[];for(var c=0;c<i.resourceSpans.length;++c){if(typeof i.resourceSpans[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");n.resourceSpans[c]=ke.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(i.resourceSpans[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.resourceSpans=[]),i.resourceSpans&&i.resourceSpans.length){c.resourceSpans=[];for(var u=0;u<i.resourceSpans.length;++u)c.resourceSpans[u]=ke.opentelemetry.proto.trace.v1.ResourceSpans.toObject(i.resourceSpans[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.TracesData"},s})(),o.ResourceSpans=(function(){function s(a){if(this.scopeSpans=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resource=null,s.prototype.scopeSpans=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.resource!=null&&Object.hasOwnProperty.call(i,"resource")&&ke.opentelemetry.proto.resource.v1.Resource.encode(i.resource,n.uint32(10).fork()).ldelim(),i.scopeSpans!=null&&i.scopeSpans.length)for(var c=0;c<i.scopeSpans.length;++c)ke.opentelemetry.proto.trace.v1.ScopeSpans.encode(i.scopeSpans[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.trace.v1.ResourceSpans;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resource=ke.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{f.scopeSpans&&f.scopeSpans.length||(f.scopeSpans=[]),f.scopeSpans.push(ke.opentelemetry.proto.trace.v1.ScopeSpans.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resource!=null&&i.hasOwnProperty("resource")){var n=ke.opentelemetry.proto.resource.v1.Resource.verify(i.resource);if(n)return"resource."+n}if(i.scopeSpans!=null&&i.hasOwnProperty("scopeSpans")){if(!Array.isArray(i.scopeSpans))return"scopeSpans: array expected";for(var c=0;c<i.scopeSpans.length;++c){var n=ke.opentelemetry.proto.trace.v1.ScopeSpans.verify(i.scopeSpans[c]);if(n)return"scopeSpans."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.trace.v1.ResourceSpans)return i;var n=new ke.opentelemetry.proto.trace.v1.ResourceSpans;if(i.resource!=null){if(typeof i.resource!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");n.resource=ke.opentelemetry.proto.resource.v1.Resource.fromObject(i.resource)}if(i.scopeSpans){if(!Array.isArray(i.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");n.scopeSpans=[];for(var c=0;c<i.scopeSpans.length;++c){if(typeof i.scopeSpans[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");n.scopeSpans[c]=ke.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(i.scopeSpans[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.scopeSpans=[]),n.defaults&&(c.resource=null,c.schemaUrl=""),i.resource!=null&&i.hasOwnProperty("resource")&&(c.resource=ke.opentelemetry.proto.resource.v1.Resource.toObject(i.resource,n)),i.scopeSpans&&i.scopeSpans.length){c.scopeSpans=[];for(var u=0;u<i.scopeSpans.length;++u)c.scopeSpans[u]=ke.opentelemetry.proto.trace.v1.ScopeSpans.toObject(i.scopeSpans[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.ResourceSpans"},s})(),o.ScopeSpans=(function(){function s(a){if(this.spans=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.scope=null,s.prototype.spans=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.scope!=null&&Object.hasOwnProperty.call(i,"scope")&&ke.opentelemetry.proto.common.v1.InstrumentationScope.encode(i.scope,n.uint32(10).fork()).ldelim(),i.spans!=null&&i.spans.length)for(var c=0;c<i.spans.length;++c)ke.opentelemetry.proto.trace.v1.Span.encode(i.spans[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.trace.v1.ScopeSpans;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.scope=ke.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{f.spans&&f.spans.length||(f.spans=[]),f.spans.push(ke.opentelemetry.proto.trace.v1.Span.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.scope!=null&&i.hasOwnProperty("scope")){var n=ke.opentelemetry.proto.common.v1.InstrumentationScope.verify(i.scope);if(n)return"scope."+n}if(i.spans!=null&&i.hasOwnProperty("spans")){if(!Array.isArray(i.spans))return"spans: array expected";for(var c=0;c<i.spans.length;++c){var n=ke.opentelemetry.proto.trace.v1.Span.verify(i.spans[c]);if(n)return"spans."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.trace.v1.ScopeSpans)return i;var n=new ke.opentelemetry.proto.trace.v1.ScopeSpans;if(i.scope!=null){if(typeof i.scope!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");n.scope=ke.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(i.scope)}if(i.spans){if(!Array.isArray(i.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");n.spans=[];for(var c=0;c<i.spans.length;++c){if(typeof i.spans[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");n.spans[c]=ke.opentelemetry.proto.trace.v1.Span.fromObject(i.spans[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.spans=[]),n.defaults&&(c.scope=null,c.schemaUrl=""),i.scope!=null&&i.hasOwnProperty("scope")&&(c.scope=ke.opentelemetry.proto.common.v1.InstrumentationScope.toObject(i.scope,n)),i.spans&&i.spans.length){c.spans=[];for(var u=0;u<i.spans.length;++u)c.spans[u]=ke.opentelemetry.proto.trace.v1.Span.toObject(i.spans[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.ScopeSpans"},s})(),o.Span=(function(){function s(a){if(this.attributes=[],this.events=[],this.links=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.traceId=null,s.prototype.spanId=null,s.prototype.traceState=null,s.prototype.parentSpanId=null,s.prototype.flags=null,s.prototype.name=null,s.prototype.kind=null,s.prototype.startTimeUnixNano=null,s.prototype.endTimeUnixNano=null,s.prototype.attributes=$e.emptyArray,s.prototype.droppedAttributesCount=null,s.prototype.events=$e.emptyArray,s.prototype.droppedEventsCount=null,s.prototype.links=$e.emptyArray,s.prototype.droppedLinksCount=null,s.prototype.status=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.traceId!=null&&Object.hasOwnProperty.call(i,"traceId")&&n.uint32(10).bytes(i.traceId),i.spanId!=null&&Object.hasOwnProperty.call(i,"spanId")&&n.uint32(18).bytes(i.spanId),i.traceState!=null&&Object.hasOwnProperty.call(i,"traceState")&&n.uint32(26).string(i.traceState),i.parentSpanId!=null&&Object.hasOwnProperty.call(i,"parentSpanId")&&n.uint32(34).bytes(i.parentSpanId),i.name!=null&&Object.hasOwnProperty.call(i,"name")&&n.uint32(42).string(i.name),i.kind!=null&&Object.hasOwnProperty.call(i,"kind")&&n.uint32(48).int32(i.kind),i.startTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"startTimeUnixNano")&&n.uint32(57).fixed64(i.startTimeUnixNano),i.endTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"endTimeUnixNano")&&n.uint32(65).fixed64(i.endTimeUnixNano),i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)ke.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(74).fork()).ldelim();if(i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&n.uint32(80).uint32(i.droppedAttributesCount),i.events!=null&&i.events.length)for(var c=0;c<i.events.length;++c)ke.opentelemetry.proto.trace.v1.Span.Event.encode(i.events[c],n.uint32(90).fork()).ldelim();if(i.droppedEventsCount!=null&&Object.hasOwnProperty.call(i,"droppedEventsCount")&&n.uint32(96).uint32(i.droppedEventsCount),i.links!=null&&i.links.length)for(var c=0;c<i.links.length;++c)ke.opentelemetry.proto.trace.v1.Span.Link.encode(i.links[c],n.uint32(106).fork()).ldelim();return i.droppedLinksCount!=null&&Object.hasOwnProperty.call(i,"droppedLinksCount")&&n.uint32(112).uint32(i.droppedLinksCount),i.status!=null&&Object.hasOwnProperty.call(i,"status")&&ke.opentelemetry.proto.trace.v1.Status.encode(i.status,n.uint32(122).fork()).ldelim(),i.flags!=null&&Object.hasOwnProperty.call(i,"flags")&&n.uint32(133).fixed32(i.flags),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.trace.v1.Span;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.traceId=i.bytes();break}case 2:{f.spanId=i.bytes();break}case 3:{f.traceState=i.string();break}case 4:{f.parentSpanId=i.bytes();break}case 16:{f.flags=i.fixed32();break}case 5:{f.name=i.string();break}case 6:{f.kind=i.int32();break}case 7:{f.startTimeUnixNano=i.fixed64();break}case 8:{f.endTimeUnixNano=i.fixed64();break}case 9:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 10:{f.droppedAttributesCount=i.uint32();break}case 11:{f.events&&f.events.length||(f.events=[]),f.events.push(ke.opentelemetry.proto.trace.v1.Span.Event.decode(i,i.uint32()));break}case 12:{f.droppedEventsCount=i.uint32();break}case 13:{f.links&&f.links.length||(f.links=[]),f.links.push(ke.opentelemetry.proto.trace.v1.Span.Link.decode(i,i.uint32()));break}case 14:{f.droppedLinksCount=i.uint32();break}case 15:{f.status=ke.opentelemetry.proto.trace.v1.Status.decode(i,i.uint32());break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.traceId!=null&&i.hasOwnProperty("traceId")&&!(i.traceId&&typeof i.traceId.length=="number"||$e.isString(i.traceId)))return"traceId: buffer expected";if(i.spanId!=null&&i.hasOwnProperty("spanId")&&!(i.spanId&&typeof i.spanId.length=="number"||$e.isString(i.spanId)))return"spanId: buffer expected";if(i.traceState!=null&&i.hasOwnProperty("traceState")&&!$e.isString(i.traceState))return"traceState: string expected";if(i.parentSpanId!=null&&i.hasOwnProperty("parentSpanId")&&!(i.parentSpanId&&typeof i.parentSpanId.length=="number"||$e.isString(i.parentSpanId)))return"parentSpanId: buffer expected";if(i.flags!=null&&i.hasOwnProperty("flags")&&!$e.isInteger(i.flags))return"flags: integer expected";if(i.name!=null&&i.hasOwnProperty("name")&&!$e.isString(i.name))return"name: string expected";if(i.kind!=null&&i.hasOwnProperty("kind"))switch(i.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(i.startTimeUnixNano)&&!(i.startTimeUnixNano&&$e.isInteger(i.startTimeUnixNano.low)&&$e.isInteger(i.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(i.endTimeUnixNano!=null&&i.hasOwnProperty("endTimeUnixNano")&&!$e.isInteger(i.endTimeUnixNano)&&!(i.endTimeUnixNano&&$e.isInteger(i.endTimeUnixNano.low)&&$e.isInteger(i.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var n=0;n<i.attributes.length;++n){var c=ke.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[n]);if(c)return"attributes."+c}}if(i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(i.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(i.events!=null&&i.hasOwnProperty("events")){if(!Array.isArray(i.events))return"events: array expected";for(var n=0;n<i.events.length;++n){var c=ke.opentelemetry.proto.trace.v1.Span.Event.verify(i.events[n]);if(c)return"events."+c}}if(i.droppedEventsCount!=null&&i.hasOwnProperty("droppedEventsCount")&&!$e.isInteger(i.droppedEventsCount))return"droppedEventsCount: integer expected";if(i.links!=null&&i.hasOwnProperty("links")){if(!Array.isArray(i.links))return"links: array expected";for(var n=0;n<i.links.length;++n){var c=ke.opentelemetry.proto.trace.v1.Span.Link.verify(i.links[n]);if(c)return"links."+c}}if(i.droppedLinksCount!=null&&i.hasOwnProperty("droppedLinksCount")&&!$e.isInteger(i.droppedLinksCount))return"droppedLinksCount: integer expected";if(i.status!=null&&i.hasOwnProperty("status")){var c=ke.opentelemetry.proto.trace.v1.Status.verify(i.status);if(c)return"status."+c}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.trace.v1.Span)return i;var n=new ke.opentelemetry.proto.trace.v1.Span;switch(i.traceId!=null&&(typeof i.traceId=="string"?$e.base64.decode(i.traceId,n.traceId=$e.newBuffer($e.base64.length(i.traceId)),0):i.traceId.length>=0&&(n.traceId=i.traceId)),i.spanId!=null&&(typeof i.spanId=="string"?$e.base64.decode(i.spanId,n.spanId=$e.newBuffer($e.base64.length(i.spanId)),0):i.spanId.length>=0&&(n.spanId=i.spanId)),i.traceState!=null&&(n.traceState=String(i.traceState)),i.parentSpanId!=null&&(typeof i.parentSpanId=="string"?$e.base64.decode(i.parentSpanId,n.parentSpanId=$e.newBuffer($e.base64.length(i.parentSpanId)),0):i.parentSpanId.length>=0&&(n.parentSpanId=i.parentSpanId)),i.flags!=null&&(n.flags=i.flags>>>0),i.name!=null&&(n.name=String(i.name)),i.kind){default:if(typeof i.kind=="number"){n.kind=i.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:n.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:n.kind=1;break;case"SPAN_KIND_SERVER":case 2:n.kind=2;break;case"SPAN_KIND_CLIENT":case 3:n.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:n.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:n.kind=5;break}if(i.startTimeUnixNano!=null&&($e.Long?(n.startTimeUnixNano=$e.Long.fromValue(i.startTimeUnixNano)).unsigned=!1:typeof i.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(i.startTimeUnixNano,10):typeof i.startTimeUnixNano=="number"?n.startTimeUnixNano=i.startTimeUnixNano:typeof i.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new $e.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber())),i.endTimeUnixNano!=null&&($e.Long?(n.endTimeUnixNano=$e.Long.fromValue(i.endTimeUnixNano)).unsigned=!1:typeof i.endTimeUnixNano=="string"?n.endTimeUnixNano=parseInt(i.endTimeUnixNano,10):typeof i.endTimeUnixNano=="number"?n.endTimeUnixNano=i.endTimeUnixNano:typeof i.endTimeUnixNano=="object"&&(n.endTimeUnixNano=new $e.LongBits(i.endTimeUnixNano.low>>>0,i.endTimeUnixNano.high>>>0).toNumber())),i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");n.attributes[c]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}if(i.droppedAttributesCount!=null&&(n.droppedAttributesCount=i.droppedAttributesCount>>>0),i.events){if(!Array.isArray(i.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");n.events=[];for(var c=0;c<i.events.length;++c){if(typeof i.events[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");n.events[c]=ke.opentelemetry.proto.trace.v1.Span.Event.fromObject(i.events[c])}}if(i.droppedEventsCount!=null&&(n.droppedEventsCount=i.droppedEventsCount>>>0),i.links){if(!Array.isArray(i.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");n.links=[];for(var c=0;c<i.links.length;++c){if(typeof i.links[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");n.links[c]=ke.opentelemetry.proto.trace.v1.Span.Link.fromObject(i.links[c])}}if(i.droppedLinksCount!=null&&(n.droppedLinksCount=i.droppedLinksCount>>>0),i.status!=null){if(typeof i.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");n.status=ke.opentelemetry.proto.trace.v1.Status.fromObject(i.status)}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.attributes=[],c.events=[],c.links=[]),n.defaults){if(n.bytes===String?c.traceId="":(c.traceId=[],n.bytes!==Array&&(c.traceId=$e.newBuffer(c.traceId))),n.bytes===String?c.spanId="":(c.spanId=[],n.bytes!==Array&&(c.spanId=$e.newBuffer(c.spanId))),c.traceState="",n.bytes===String?c.parentSpanId="":(c.parentSpanId=[],n.bytes!==Array&&(c.parentSpanId=$e.newBuffer(c.parentSpanId))),c.name="",c.kind=n.enums===String?"SPAN_KIND_UNSPECIFIED":0,$e.Long){var u=new $e.Long(0,0,!1);c.startTimeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.startTimeUnixNano=n.longs===String?"0":0;if($e.Long){var u=new $e.Long(0,0,!1);c.endTimeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.endTimeUnixNano=n.longs===String?"0":0;c.droppedAttributesCount=0,c.droppedEventsCount=0,c.droppedLinksCount=0,c.status=null,c.flags=0}if(i.traceId!=null&&i.hasOwnProperty("traceId")&&(c.traceId=n.bytes===String?$e.base64.encode(i.traceId,0,i.traceId.length):n.bytes===Array?Array.prototype.slice.call(i.traceId):i.traceId),i.spanId!=null&&i.hasOwnProperty("spanId")&&(c.spanId=n.bytes===String?$e.base64.encode(i.spanId,0,i.spanId.length):n.bytes===Array?Array.prototype.slice.call(i.spanId):i.spanId),i.traceState!=null&&i.hasOwnProperty("traceState")&&(c.traceState=i.traceState),i.parentSpanId!=null&&i.hasOwnProperty("parentSpanId")&&(c.parentSpanId=n.bytes===String?$e.base64.encode(i.parentSpanId,0,i.parentSpanId.length):n.bytes===Array?Array.prototype.slice.call(i.parentSpanId):i.parentSpanId),i.name!=null&&i.hasOwnProperty("name")&&(c.name=i.name),i.kind!=null&&i.hasOwnProperty("kind")&&(c.kind=n.enums===String?ke.opentelemetry.proto.trace.v1.Span.SpanKind[i.kind]===void 0?i.kind:ke.opentelemetry.proto.trace.v1.Span.SpanKind[i.kind]:i.kind),i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&(typeof i.startTimeUnixNano=="number"?c.startTimeUnixNano=n.longs===String?String(i.startTimeUnixNano):i.startTimeUnixNano:c.startTimeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.startTimeUnixNano):n.longs===Number?new $e.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber():i.startTimeUnixNano),i.endTimeUnixNano!=null&&i.hasOwnProperty("endTimeUnixNano")&&(typeof i.endTimeUnixNano=="number"?c.endTimeUnixNano=n.longs===String?String(i.endTimeUnixNano):i.endTimeUnixNano:c.endTimeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.endTimeUnixNano):n.longs===Number?new $e.LongBits(i.endTimeUnixNano.low>>>0,i.endTimeUnixNano.high>>>0).toNumber():i.endTimeUnixNano),i.attributes&&i.attributes.length){c.attributes=[];for(var f=0;f<i.attributes.length;++f)c.attributes[f]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[f],n)}if(i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=i.droppedAttributesCount),i.events&&i.events.length){c.events=[];for(var f=0;f<i.events.length;++f)c.events[f]=ke.opentelemetry.proto.trace.v1.Span.Event.toObject(i.events[f],n)}if(i.droppedEventsCount!=null&&i.hasOwnProperty("droppedEventsCount")&&(c.droppedEventsCount=i.droppedEventsCount),i.links&&i.links.length){c.links=[];for(var f=0;f<i.links.length;++f)c.links[f]=ke.opentelemetry.proto.trace.v1.Span.Link.toObject(i.links[f],n)}return i.droppedLinksCount!=null&&i.hasOwnProperty("droppedLinksCount")&&(c.droppedLinksCount=i.droppedLinksCount),i.status!=null&&i.hasOwnProperty("status")&&(c.status=ke.opentelemetry.proto.trace.v1.Status.toObject(i.status,n)),i.flags!=null&&i.hasOwnProperty("flags")&&(c.flags=i.flags),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.Span"},s.SpanKind=(function(){var a={},i=Object.create(a);return i[a[0]="SPAN_KIND_UNSPECIFIED"]=0,i[a[1]="SPAN_KIND_INTERNAL"]=1,i[a[2]="SPAN_KIND_SERVER"]=2,i[a[3]="SPAN_KIND_CLIENT"]=3,i[a[4]="SPAN_KIND_PRODUCER"]=4,i[a[5]="SPAN_KIND_CONSUMER"]=5,i})(),s.Event=(function(){function a(i){if(this.attributes=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.timeUnixNano=null,a.prototype.name=null,a.prototype.attributes=$e.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=sa.create()),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(9).fixed64(n.timeUnixNano),n.name!=null&&Object.hasOwnProperty.call(n,"name")&&c.uint32(18).string(n.name),n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)ke.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(26).fork()).ldelim();return n.droppedAttributesCount!=null&&Object.hasOwnProperty.call(n,"droppedAttributesCount")&&c.uint32(32).uint32(n.droppedAttributesCount),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.trace.v1.Span.Event;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.timeUnixNano=n.fixed64();break}case 2:{d.name=n.string();break}case 3:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 4:{d.droppedAttributesCount=n.uint32();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.name!=null&&n.hasOwnProperty("name")&&!$e.isString(n.name))return"name: string expected";if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var c=0;c<n.attributes.length;++c){var u=ke.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[c]);if(u)return"attributes."+u}}return n.droppedAttributesCount!=null&&n.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(n.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.trace.v1.Span.Event)return n;var c=new ke.opentelemetry.proto.trace.v1.Span.Event;if(n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.name!=null&&(c.name=String(n.name)),n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");c.attributes[u]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}return n.droppedAttributesCount!=null&&(c.droppedAttributesCount=n.droppedAttributesCount>>>0),c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.attributes=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;u.name="",u.droppedAttributesCount=0}if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.name!=null&&n.hasOwnProperty("name")&&(u.name=n.name),n.attributes&&n.attributes.length){u.attributes=[];for(var d=0;d<n.attributes.length;++d)u.attributes[d]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[d],c)}return n.droppedAttributesCount!=null&&n.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=n.droppedAttributesCount),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.trace.v1.Span.Event"},a})(),s.Link=(function(){function a(i){if(this.attributes=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.traceId=null,a.prototype.spanId=null,a.prototype.traceState=null,a.prototype.attributes=$e.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.flags=null,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=sa.create()),n.traceId!=null&&Object.hasOwnProperty.call(n,"traceId")&&c.uint32(10).bytes(n.traceId),n.spanId!=null&&Object.hasOwnProperty.call(n,"spanId")&&c.uint32(18).bytes(n.spanId),n.traceState!=null&&Object.hasOwnProperty.call(n,"traceState")&&c.uint32(26).string(n.traceState),n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)ke.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(34).fork()).ldelim();return n.droppedAttributesCount!=null&&Object.hasOwnProperty.call(n,"droppedAttributesCount")&&c.uint32(40).uint32(n.droppedAttributesCount),n.flags!=null&&Object.hasOwnProperty.call(n,"flags")&&c.uint32(53).fixed32(n.flags),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.trace.v1.Span.Link;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.traceId=n.bytes();break}case 2:{d.spanId=n.bytes();break}case 3:{d.traceState=n.string();break}case 4:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 5:{d.droppedAttributesCount=n.uint32();break}case 6:{d.flags=n.fixed32();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.traceId!=null&&n.hasOwnProperty("traceId")&&!(n.traceId&&typeof n.traceId.length=="number"||$e.isString(n.traceId)))return"traceId: buffer expected";if(n.spanId!=null&&n.hasOwnProperty("spanId")&&!(n.spanId&&typeof n.spanId.length=="number"||$e.isString(n.spanId)))return"spanId: buffer expected";if(n.traceState!=null&&n.hasOwnProperty("traceState")&&!$e.isString(n.traceState))return"traceState: string expected";if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var c=0;c<n.attributes.length;++c){var u=ke.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[c]);if(u)return"attributes."+u}}return n.droppedAttributesCount!=null&&n.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(n.droppedAttributesCount)?"droppedAttributesCount: integer expected":n.flags!=null&&n.hasOwnProperty("flags")&&!$e.isInteger(n.flags)?"flags: integer expected":null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.trace.v1.Span.Link)return n;var c=new ke.opentelemetry.proto.trace.v1.Span.Link;if(n.traceId!=null&&(typeof n.traceId=="string"?$e.base64.decode(n.traceId,c.traceId=$e.newBuffer($e.base64.length(n.traceId)),0):n.traceId.length>=0&&(c.traceId=n.traceId)),n.spanId!=null&&(typeof n.spanId=="string"?$e.base64.decode(n.spanId,c.spanId=$e.newBuffer($e.base64.length(n.spanId)),0):n.spanId.length>=0&&(c.spanId=n.spanId)),n.traceState!=null&&(c.traceState=String(n.traceState)),n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");c.attributes[u]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}return n.droppedAttributesCount!=null&&(c.droppedAttributesCount=n.droppedAttributesCount>>>0),n.flags!=null&&(c.flags=n.flags>>>0),c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.attributes=[]),c.defaults&&(c.bytes===String?u.traceId="":(u.traceId=[],c.bytes!==Array&&(u.traceId=$e.newBuffer(u.traceId))),c.bytes===String?u.spanId="":(u.spanId=[],c.bytes!==Array&&(u.spanId=$e.newBuffer(u.spanId))),u.traceState="",u.droppedAttributesCount=0,u.flags=0),n.traceId!=null&&n.hasOwnProperty("traceId")&&(u.traceId=c.bytes===String?$e.base64.encode(n.traceId,0,n.traceId.length):c.bytes===Array?Array.prototype.slice.call(n.traceId):n.traceId),n.spanId!=null&&n.hasOwnProperty("spanId")&&(u.spanId=c.bytes===String?$e.base64.encode(n.spanId,0,n.spanId.length):c.bytes===Array?Array.prototype.slice.call(n.spanId):n.spanId),n.traceState!=null&&n.hasOwnProperty("traceState")&&(u.traceState=n.traceState),n.attributes&&n.attributes.length){u.attributes=[];for(var f=0;f<n.attributes.length;++f)u.attributes[f]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[f],c)}return n.droppedAttributesCount!=null&&n.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=n.droppedAttributesCount),n.flags!=null&&n.hasOwnProperty("flags")&&(u.flags=n.flags),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.trace.v1.Span.Link"},a})(),s})(),o.Status=(function(){function s(a){if(a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.message=null,s.prototype.code=null,s.create=function(i){return new s(i)},s.encode=function(i,n){return n||(n=sa.create()),i.message!=null&&Object.hasOwnProperty.call(i,"message")&&n.uint32(18).string(i.message),i.code!=null&&Object.hasOwnProperty.call(i,"code")&&n.uint32(24).int32(i.code),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.trace.v1.Status;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 2:{f.message=i.string();break}case 3:{f.code=i.int32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.message!=null&&i.hasOwnProperty("message")&&!$e.isString(i.message))return"message: string expected";if(i.code!=null&&i.hasOwnProperty("code"))switch(i.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.trace.v1.Status)return i;var n=new ke.opentelemetry.proto.trace.v1.Status;switch(i.message!=null&&(n.message=String(i.message)),i.code){default:if(typeof i.code=="number"){n.code=i.code;break}break;case"STATUS_CODE_UNSET":case 0:n.code=0;break;case"STATUS_CODE_OK":case 1:n.code=1;break;case"STATUS_CODE_ERROR":case 2:n.code=2;break}return n},s.toObject=function(i,n){n||(n={});var c={};return n.defaults&&(c.message="",c.code=n.enums===String?"STATUS_CODE_UNSET":0),i.message!=null&&i.hasOwnProperty("message")&&(c.message=i.message),i.code!=null&&i.hasOwnProperty("code")&&(c.code=n.enums===String?ke.opentelemetry.proto.trace.v1.Status.StatusCode[i.code]===void 0?i.code:ke.opentelemetry.proto.trace.v1.Status.StatusCode[i.code]:i.code),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.Status"},s.StatusCode=(function(){var a={},i=Object.create(a);return i[a[0]="STATUS_CODE_UNSET"]=0,i[a[1]="STATUS_CODE_OK"]=1,i[a[2]="STATUS_CODE_ERROR"]=2,i})(),s})(),o.SpanFlags=(function(){var s={},a=Object.create(s);return a[s[0]="SPAN_FLAGS_DO_NOT_USE"]=0,a[s[255]="SPAN_FLAGS_TRACE_FLAGS_MASK"]=255,a[s[256]="SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK"]=256,a[s[512]="SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK"]=512,a})(),o})(),r})(),e.collector=(function(){var r={};return r.trace=(function(){var o={};return o.v1=(function(){var s={};return s.TraceService=(function(){function a(i,n,c){Mo.rpc.Service.call(this,i,n,c)}return(a.prototype=Object.create(Mo.rpc.Service.prototype)).constructor=a,a.create=function(n,c,u){return new this(n,c,u)},Object.defineProperty(a.prototype.export=function i(n,c){return this.rpcCall(i,ke.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,ke.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,n,c)},"name",{value:"Export"}),a})(),s.ExportTraceServiceRequest=(function(){function a(i){if(this.resourceSpans=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.resourceSpans=$e.emptyArray,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=sa.create()),n.resourceSpans!=null&&n.resourceSpans.length)for(var u=0;u<n.resourceSpans.length;++u)ke.opentelemetry.proto.trace.v1.ResourceSpans.encode(n.resourceSpans[u],c.uint32(10).fork()).ldelim();return c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.resourceSpans&&d.resourceSpans.length||(d.resourceSpans=[]),d.resourceSpans.push(ke.opentelemetry.proto.trace.v1.ResourceSpans.decode(n,n.uint32()));break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.resourceSpans!=null&&n.hasOwnProperty("resourceSpans")){if(!Array.isArray(n.resourceSpans))return"resourceSpans: array expected";for(var c=0;c<n.resourceSpans.length;++c){var u=ke.opentelemetry.proto.trace.v1.ResourceSpans.verify(n.resourceSpans[c]);if(u)return"resourceSpans."+u}}return null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return n;var c=new ke.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(n.resourceSpans){if(!Array.isArray(n.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");c.resourceSpans=[];for(var u=0;u<n.resourceSpans.length;++u){if(typeof n.resourceSpans[u]!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");c.resourceSpans[u]=ke.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(n.resourceSpans[u])}}return c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.resourceSpans=[]),n.resourceSpans&&n.resourceSpans.length){u.resourceSpans=[];for(var f=0;f<n.resourceSpans.length;++f)u.resourceSpans[f]=ke.opentelemetry.proto.trace.v1.ResourceSpans.toObject(n.resourceSpans[f],c)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},a})(),s.ExportTraceServiceResponse=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.partialSuccess=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=sa.create()),n.partialSuccess!=null&&Object.hasOwnProperty.call(n,"partialSuccess")&&ke.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(n.partialSuccess,c.uint32(10).fork()).ldelim(),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.partialSuccess=ke.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(n,n.uint32());break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")){var c=ke.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(n.partialSuccess);if(c)return"partialSuccess."+c}return null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return n;var c=new ke.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(n.partialSuccess!=null){if(typeof n.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");c.partialSuccess=ke.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(n.partialSuccess)}return c},a.toObject=function(n,c){c||(c={});var u={};return c.defaults&&(u.partialSuccess=null),n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")&&(u.partialSuccess=ke.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(n.partialSuccess,c)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},a})(),s.ExportTracePartialSuccess=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.rejectedSpans=null,a.prototype.errorMessage=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=sa.create()),n.rejectedSpans!=null&&Object.hasOwnProperty.call(n,"rejectedSpans")&&c.uint32(8).int64(n.rejectedSpans),n.errorMessage!=null&&Object.hasOwnProperty.call(n,"errorMessage")&&c.uint32(18).string(n.errorMessage),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.rejectedSpans=n.int64();break}case 2:{d.errorMessage=n.string();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){return typeof n!="object"||n===null?"object expected":n.rejectedSpans!=null&&n.hasOwnProperty("rejectedSpans")&&!$e.isInteger(n.rejectedSpans)&&!(n.rejectedSpans&&$e.isInteger(n.rejectedSpans.low)&&$e.isInteger(n.rejectedSpans.high))?"rejectedSpans: integer|Long expected":n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&!$e.isString(n.errorMessage)?"errorMessage: string expected":null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return n;var c=new ke.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return n.rejectedSpans!=null&&($e.Long?(c.rejectedSpans=$e.Long.fromValue(n.rejectedSpans)).unsigned=!1:typeof n.rejectedSpans=="string"?c.rejectedSpans=parseInt(n.rejectedSpans,10):typeof n.rejectedSpans=="number"?c.rejectedSpans=n.rejectedSpans:typeof n.rejectedSpans=="object"&&(c.rejectedSpans=new $e.LongBits(n.rejectedSpans.low>>>0,n.rejectedSpans.high>>>0).toNumber())),n.errorMessage!=null&&(c.errorMessage=String(n.errorMessage)),c},a.toObject=function(n,c){c||(c={});var u={};if(c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.rejectedSpans=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.rejectedSpans=c.longs===String?"0":0;u.errorMessage=""}return n.rejectedSpans!=null&&n.hasOwnProperty("rejectedSpans")&&(typeof n.rejectedSpans=="number"?u.rejectedSpans=c.longs===String?String(n.rejectedSpans):n.rejectedSpans:u.rejectedSpans=c.longs===String?$e.Long.prototype.toString.call(n.rejectedSpans):c.longs===Number?new $e.LongBits(n.rejectedSpans.low>>>0,n.rejectedSpans.high>>>0).toNumber():n.rejectedSpans),n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&(u.errorMessage=n.errorMessage),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},a})(),s})(),o})(),r.metrics=(function(){var o={};return o.v1=(function(){var s={};return s.MetricsService=(function(){function a(i,n,c){Mo.rpc.Service.call(this,i,n,c)}return(a.prototype=Object.create(Mo.rpc.Service.prototype)).constructor=a,a.create=function(n,c,u){return new this(n,c,u)},Object.defineProperty(a.prototype.export=function i(n,c){return this.rpcCall(i,ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,n,c)},"name",{value:"Export"}),a})(),s.ExportMetricsServiceRequest=(function(){function a(i){if(this.resourceMetrics=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.resourceMetrics=$e.emptyArray,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=sa.create()),n.resourceMetrics!=null&&n.resourceMetrics.length)for(var u=0;u<n.resourceMetrics.length;++u)ke.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(n.resourceMetrics[u],c.uint32(10).fork()).ldelim();return c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.resourceMetrics&&d.resourceMetrics.length||(d.resourceMetrics=[]),d.resourceMetrics.push(ke.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(n,n.uint32()));break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.resourceMetrics!=null&&n.hasOwnProperty("resourceMetrics")){if(!Array.isArray(n.resourceMetrics))return"resourceMetrics: array expected";for(var c=0;c<n.resourceMetrics.length;++c){var u=ke.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(n.resourceMetrics[c]);if(u)return"resourceMetrics."+u}}return null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return n;var c=new ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(n.resourceMetrics){if(!Array.isArray(n.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");c.resourceMetrics=[];for(var u=0;u<n.resourceMetrics.length;++u){if(typeof n.resourceMetrics[u]!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");c.resourceMetrics[u]=ke.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(n.resourceMetrics[u])}}return c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.resourceMetrics=[]),n.resourceMetrics&&n.resourceMetrics.length){u.resourceMetrics=[];for(var f=0;f<n.resourceMetrics.length;++f)u.resourceMetrics[f]=ke.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(n.resourceMetrics[f],c)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},a})(),s.ExportMetricsServiceResponse=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.partialSuccess=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=sa.create()),n.partialSuccess!=null&&Object.hasOwnProperty.call(n,"partialSuccess")&&ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(n.partialSuccess,c.uint32(10).fork()).ldelim(),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.partialSuccess=ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(n,n.uint32());break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")){var c=ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(n.partialSuccess);if(c)return"partialSuccess."+c}return null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return n;var c=new ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(n.partialSuccess!=null){if(typeof n.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");c.partialSuccess=ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(n.partialSuccess)}return c},a.toObject=function(n,c){c||(c={});var u={};return c.defaults&&(u.partialSuccess=null),n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")&&(u.partialSuccess=ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(n.partialSuccess,c)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},a})(),s.ExportMetricsPartialSuccess=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.rejectedDataPoints=null,a.prototype.errorMessage=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=sa.create()),n.rejectedDataPoints!=null&&Object.hasOwnProperty.call(n,"rejectedDataPoints")&&c.uint32(8).int64(n.rejectedDataPoints),n.errorMessage!=null&&Object.hasOwnProperty.call(n,"errorMessage")&&c.uint32(18).string(n.errorMessage),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.rejectedDataPoints=n.int64();break}case 2:{d.errorMessage=n.string();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){return typeof n!="object"||n===null?"object expected":n.rejectedDataPoints!=null&&n.hasOwnProperty("rejectedDataPoints")&&!$e.isInteger(n.rejectedDataPoints)&&!(n.rejectedDataPoints&&$e.isInteger(n.rejectedDataPoints.low)&&$e.isInteger(n.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&!$e.isString(n.errorMessage)?"errorMessage: string expected":null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return n;var c=new ke.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return n.rejectedDataPoints!=null&&($e.Long?(c.rejectedDataPoints=$e.Long.fromValue(n.rejectedDataPoints)).unsigned=!1:typeof n.rejectedDataPoints=="string"?c.rejectedDataPoints=parseInt(n.rejectedDataPoints,10):typeof n.rejectedDataPoints=="number"?c.rejectedDataPoints=n.rejectedDataPoints:typeof n.rejectedDataPoints=="object"&&(c.rejectedDataPoints=new $e.LongBits(n.rejectedDataPoints.low>>>0,n.rejectedDataPoints.high>>>0).toNumber())),n.errorMessage!=null&&(c.errorMessage=String(n.errorMessage)),c},a.toObject=function(n,c){c||(c={});var u={};if(c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.rejectedDataPoints=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.rejectedDataPoints=c.longs===String?"0":0;u.errorMessage=""}return n.rejectedDataPoints!=null&&n.hasOwnProperty("rejectedDataPoints")&&(typeof n.rejectedDataPoints=="number"?u.rejectedDataPoints=c.longs===String?String(n.rejectedDataPoints):n.rejectedDataPoints:u.rejectedDataPoints=c.longs===String?$e.Long.prototype.toString.call(n.rejectedDataPoints):c.longs===Number?new $e.LongBits(n.rejectedDataPoints.low>>>0,n.rejectedDataPoints.high>>>0).toNumber():n.rejectedDataPoints),n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&(u.errorMessage=n.errorMessage),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},a})(),s})(),o})(),r.logs=(function(){var o={};return o.v1=(function(){var s={};return s.LogsService=(function(){function a(i,n,c){Mo.rpc.Service.call(this,i,n,c)}return(a.prototype=Object.create(Mo.rpc.Service.prototype)).constructor=a,a.create=function(n,c,u){return new this(n,c,u)},Object.defineProperty(a.prototype.export=function i(n,c){return this.rpcCall(i,ke.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,ke.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,n,c)},"name",{value:"Export"}),a})(),s.ExportLogsServiceRequest=(function(){function a(i){if(this.resourceLogs=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.resourceLogs=$e.emptyArray,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=sa.create()),n.resourceLogs!=null&&n.resourceLogs.length)for(var u=0;u<n.resourceLogs.length;++u)ke.opentelemetry.proto.logs.v1.ResourceLogs.encode(n.resourceLogs[u],c.uint32(10).fork()).ldelim();return c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.resourceLogs&&d.resourceLogs.length||(d.resourceLogs=[]),d.resourceLogs.push(ke.opentelemetry.proto.logs.v1.ResourceLogs.decode(n,n.uint32()));break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.resourceLogs!=null&&n.hasOwnProperty("resourceLogs")){if(!Array.isArray(n.resourceLogs))return"resourceLogs: array expected";for(var c=0;c<n.resourceLogs.length;++c){var u=ke.opentelemetry.proto.logs.v1.ResourceLogs.verify(n.resourceLogs[c]);if(u)return"resourceLogs."+u}}return null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return n;var c=new ke.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(n.resourceLogs){if(!Array.isArray(n.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");c.resourceLogs=[];for(var u=0;u<n.resourceLogs.length;++u){if(typeof n.resourceLogs[u]!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");c.resourceLogs[u]=ke.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(n.resourceLogs[u])}}return c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.resourceLogs=[]),n.resourceLogs&&n.resourceLogs.length){u.resourceLogs=[];for(var f=0;f<n.resourceLogs.length;++f)u.resourceLogs[f]=ke.opentelemetry.proto.logs.v1.ResourceLogs.toObject(n.resourceLogs[f],c)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},a})(),s.ExportLogsServiceResponse=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.partialSuccess=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=sa.create()),n.partialSuccess!=null&&Object.hasOwnProperty.call(n,"partialSuccess")&&ke.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(n.partialSuccess,c.uint32(10).fork()).ldelim(),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.partialSuccess=ke.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(n,n.uint32());break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")){var c=ke.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(n.partialSuccess);if(c)return"partialSuccess."+c}return null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return n;var c=new ke.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(n.partialSuccess!=null){if(typeof n.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");c.partialSuccess=ke.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(n.partialSuccess)}return c},a.toObject=function(n,c){c||(c={});var u={};return c.defaults&&(u.partialSuccess=null),n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")&&(u.partialSuccess=ke.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(n.partialSuccess,c)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},a})(),s.ExportLogsPartialSuccess=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.rejectedLogRecords=null,a.prototype.errorMessage=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=sa.create()),n.rejectedLogRecords!=null&&Object.hasOwnProperty.call(n,"rejectedLogRecords")&&c.uint32(8).int64(n.rejectedLogRecords),n.errorMessage!=null&&Object.hasOwnProperty.call(n,"errorMessage")&&c.uint32(18).string(n.errorMessage),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.rejectedLogRecords=n.int64();break}case 2:{d.errorMessage=n.string();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){return typeof n!="object"||n===null?"object expected":n.rejectedLogRecords!=null&&n.hasOwnProperty("rejectedLogRecords")&&!$e.isInteger(n.rejectedLogRecords)&&!(n.rejectedLogRecords&&$e.isInteger(n.rejectedLogRecords.low)&&$e.isInteger(n.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&!$e.isString(n.errorMessage)?"errorMessage: string expected":null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return n;var c=new ke.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return n.rejectedLogRecords!=null&&($e.Long?(c.rejectedLogRecords=$e.Long.fromValue(n.rejectedLogRecords)).unsigned=!1:typeof n.rejectedLogRecords=="string"?c.rejectedLogRecords=parseInt(n.rejectedLogRecords,10):typeof n.rejectedLogRecords=="number"?c.rejectedLogRecords=n.rejectedLogRecords:typeof n.rejectedLogRecords=="object"&&(c.rejectedLogRecords=new $e.LongBits(n.rejectedLogRecords.low>>>0,n.rejectedLogRecords.high>>>0).toNumber())),n.errorMessage!=null&&(c.errorMessage=String(n.errorMessage)),c},a.toObject=function(n,c){c||(c={});var u={};if(c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.rejectedLogRecords=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.rejectedLogRecords=c.longs===String?"0":0;u.errorMessage=""}return n.rejectedLogRecords!=null&&n.hasOwnProperty("rejectedLogRecords")&&(typeof n.rejectedLogRecords=="number"?u.rejectedLogRecords=c.longs===String?String(n.rejectedLogRecords):n.rejectedLogRecords:u.rejectedLogRecords=c.longs===String?$e.Long.prototype.toString.call(n.rejectedLogRecords):c.longs===Number?new $e.LongBits(n.rejectedLogRecords.low>>>0,n.rejectedLogRecords.high>>>0).toNumber():n.rejectedLogRecords),n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&(u.errorMessage=n.errorMessage),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},a})(),s})(),o})(),r})(),e.metrics=(function(){var r={};return r.v1=(function(){var o={};return o.MetricsData=(function(){function s(a){if(this.resourceMetrics=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resourceMetrics=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.resourceMetrics!=null&&i.resourceMetrics.length)for(var c=0;c<i.resourceMetrics.length;++c)ke.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(i.resourceMetrics[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.metrics.v1.MetricsData;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resourceMetrics&&f.resourceMetrics.length||(f.resourceMetrics=[]),f.resourceMetrics.push(ke.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resourceMetrics!=null&&i.hasOwnProperty("resourceMetrics")){if(!Array.isArray(i.resourceMetrics))return"resourceMetrics: array expected";for(var n=0;n<i.resourceMetrics.length;++n){var c=ke.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(i.resourceMetrics[n]);if(c)return"resourceMetrics."+c}}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.metrics.v1.MetricsData)return i;var n=new ke.opentelemetry.proto.metrics.v1.MetricsData;if(i.resourceMetrics){if(!Array.isArray(i.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");n.resourceMetrics=[];for(var c=0;c<i.resourceMetrics.length;++c){if(typeof i.resourceMetrics[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");n.resourceMetrics[c]=ke.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(i.resourceMetrics[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.resourceMetrics=[]),i.resourceMetrics&&i.resourceMetrics.length){c.resourceMetrics=[];for(var u=0;u<i.resourceMetrics.length;++u)c.resourceMetrics[u]=ke.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(i.resourceMetrics[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.MetricsData"},s})(),o.ResourceMetrics=(function(){function s(a){if(this.scopeMetrics=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resource=null,s.prototype.scopeMetrics=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.resource!=null&&Object.hasOwnProperty.call(i,"resource")&&ke.opentelemetry.proto.resource.v1.Resource.encode(i.resource,n.uint32(10).fork()).ldelim(),i.scopeMetrics!=null&&i.scopeMetrics.length)for(var c=0;c<i.scopeMetrics.length;++c)ke.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(i.scopeMetrics[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.metrics.v1.ResourceMetrics;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resource=ke.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{f.scopeMetrics&&f.scopeMetrics.length||(f.scopeMetrics=[]),f.scopeMetrics.push(ke.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resource!=null&&i.hasOwnProperty("resource")){var n=ke.opentelemetry.proto.resource.v1.Resource.verify(i.resource);if(n)return"resource."+n}if(i.scopeMetrics!=null&&i.hasOwnProperty("scopeMetrics")){if(!Array.isArray(i.scopeMetrics))return"scopeMetrics: array expected";for(var c=0;c<i.scopeMetrics.length;++c){var n=ke.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(i.scopeMetrics[c]);if(n)return"scopeMetrics."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.metrics.v1.ResourceMetrics)return i;var n=new ke.opentelemetry.proto.metrics.v1.ResourceMetrics;if(i.resource!=null){if(typeof i.resource!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");n.resource=ke.opentelemetry.proto.resource.v1.Resource.fromObject(i.resource)}if(i.scopeMetrics){if(!Array.isArray(i.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");n.scopeMetrics=[];for(var c=0;c<i.scopeMetrics.length;++c){if(typeof i.scopeMetrics[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");n.scopeMetrics[c]=ke.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(i.scopeMetrics[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.scopeMetrics=[]),n.defaults&&(c.resource=null,c.schemaUrl=""),i.resource!=null&&i.hasOwnProperty("resource")&&(c.resource=ke.opentelemetry.proto.resource.v1.Resource.toObject(i.resource,n)),i.scopeMetrics&&i.scopeMetrics.length){c.scopeMetrics=[];for(var u=0;u<i.scopeMetrics.length;++u)c.scopeMetrics[u]=ke.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(i.scopeMetrics[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},s})(),o.ScopeMetrics=(function(){function s(a){if(this.metrics=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.scope=null,s.prototype.metrics=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.scope!=null&&Object.hasOwnProperty.call(i,"scope")&&ke.opentelemetry.proto.common.v1.InstrumentationScope.encode(i.scope,n.uint32(10).fork()).ldelim(),i.metrics!=null&&i.metrics.length)for(var c=0;c<i.metrics.length;++c)ke.opentelemetry.proto.metrics.v1.Metric.encode(i.metrics[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.metrics.v1.ScopeMetrics;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.scope=ke.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{f.metrics&&f.metrics.length||(f.metrics=[]),f.metrics.push(ke.opentelemetry.proto.metrics.v1.Metric.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.scope!=null&&i.hasOwnProperty("scope")){var n=ke.opentelemetry.proto.common.v1.InstrumentationScope.verify(i.scope);if(n)return"scope."+n}if(i.metrics!=null&&i.hasOwnProperty("metrics")){if(!Array.isArray(i.metrics))return"metrics: array expected";for(var c=0;c<i.metrics.length;++c){var n=ke.opentelemetry.proto.metrics.v1.Metric.verify(i.metrics[c]);if(n)return"metrics."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.metrics.v1.ScopeMetrics)return i;var n=new ke.opentelemetry.proto.metrics.v1.ScopeMetrics;if(i.scope!=null){if(typeof i.scope!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");n.scope=ke.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(i.scope)}if(i.metrics){if(!Array.isArray(i.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");n.metrics=[];for(var c=0;c<i.metrics.length;++c){if(typeof i.metrics[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");n.metrics[c]=ke.opentelemetry.proto.metrics.v1.Metric.fromObject(i.metrics[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.metrics=[]),n.defaults&&(c.scope=null,c.schemaUrl=""),i.scope!=null&&i.hasOwnProperty("scope")&&(c.scope=ke.opentelemetry.proto.common.v1.InstrumentationScope.toObject(i.scope,n)),i.metrics&&i.metrics.length){c.metrics=[];for(var u=0;u<i.metrics.length;++u)c.metrics[u]=ke.opentelemetry.proto.metrics.v1.Metric.toObject(i.metrics[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},s})(),o.Metric=(function(){function s(i){if(this.metadata=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.name=null,s.prototype.description=null,s.prototype.unit=null,s.prototype.gauge=null,s.prototype.sum=null,s.prototype.histogram=null,s.prototype.exponentialHistogram=null,s.prototype.summary=null,s.prototype.metadata=$e.emptyArray;var a;return Object.defineProperty(s.prototype,"data",{get:$e.oneOfGetter(a=["gauge","sum","histogram","exponentialHistogram","summary"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=sa.create()),n.name!=null&&Object.hasOwnProperty.call(n,"name")&&c.uint32(10).string(n.name),n.description!=null&&Object.hasOwnProperty.call(n,"description")&&c.uint32(18).string(n.description),n.unit!=null&&Object.hasOwnProperty.call(n,"unit")&&c.uint32(26).string(n.unit),n.gauge!=null&&Object.hasOwnProperty.call(n,"gauge")&&ke.opentelemetry.proto.metrics.v1.Gauge.encode(n.gauge,c.uint32(42).fork()).ldelim(),n.sum!=null&&Object.hasOwnProperty.call(n,"sum")&&ke.opentelemetry.proto.metrics.v1.Sum.encode(n.sum,c.uint32(58).fork()).ldelim(),n.histogram!=null&&Object.hasOwnProperty.call(n,"histogram")&&ke.opentelemetry.proto.metrics.v1.Histogram.encode(n.histogram,c.uint32(74).fork()).ldelim(),n.exponentialHistogram!=null&&Object.hasOwnProperty.call(n,"exponentialHistogram")&&ke.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(n.exponentialHistogram,c.uint32(82).fork()).ldelim(),n.summary!=null&&Object.hasOwnProperty.call(n,"summary")&&ke.opentelemetry.proto.metrics.v1.Summary.encode(n.summary,c.uint32(90).fork()).ldelim(),n.metadata!=null&&n.metadata.length)for(var u=0;u<n.metadata.length;++u)ke.opentelemetry.proto.common.v1.KeyValue.encode(n.metadata[u],c.uint32(98).fork()).ldelim();return c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.metrics.v1.Metric;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.name=n.string();break}case 2:{d.description=n.string();break}case 3:{d.unit=n.string();break}case 5:{d.gauge=ke.opentelemetry.proto.metrics.v1.Gauge.decode(n,n.uint32());break}case 7:{d.sum=ke.opentelemetry.proto.metrics.v1.Sum.decode(n,n.uint32());break}case 9:{d.histogram=ke.opentelemetry.proto.metrics.v1.Histogram.decode(n,n.uint32());break}case 10:{d.exponentialHistogram=ke.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(n,n.uint32());break}case 11:{d.summary=ke.opentelemetry.proto.metrics.v1.Summary.decode(n,n.uint32());break}case 12:{d.metadata&&d.metadata.length||(d.metadata=[]),d.metadata.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.name!=null&&n.hasOwnProperty("name")&&!$e.isString(n.name))return"name: string expected";if(n.description!=null&&n.hasOwnProperty("description")&&!$e.isString(n.description))return"description: string expected";if(n.unit!=null&&n.hasOwnProperty("unit")&&!$e.isString(n.unit))return"unit: string expected";if(n.gauge!=null&&n.hasOwnProperty("gauge")){c.data=1;{var u=ke.opentelemetry.proto.metrics.v1.Gauge.verify(n.gauge);if(u)return"gauge."+u}}if(n.sum!=null&&n.hasOwnProperty("sum")){if(c.data===1)return"data: multiple values";c.data=1;{var u=ke.opentelemetry.proto.metrics.v1.Sum.verify(n.sum);if(u)return"sum."+u}}if(n.histogram!=null&&n.hasOwnProperty("histogram")){if(c.data===1)return"data: multiple values";c.data=1;{var u=ke.opentelemetry.proto.metrics.v1.Histogram.verify(n.histogram);if(u)return"histogram."+u}}if(n.exponentialHistogram!=null&&n.hasOwnProperty("exponentialHistogram")){if(c.data===1)return"data: multiple values";c.data=1;{var u=ke.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(n.exponentialHistogram);if(u)return"exponentialHistogram."+u}}if(n.summary!=null&&n.hasOwnProperty("summary")){if(c.data===1)return"data: multiple values";c.data=1;{var u=ke.opentelemetry.proto.metrics.v1.Summary.verify(n.summary);if(u)return"summary."+u}}if(n.metadata!=null&&n.hasOwnProperty("metadata")){if(!Array.isArray(n.metadata))return"metadata: array expected";for(var f=0;f<n.metadata.length;++f){var u=ke.opentelemetry.proto.common.v1.KeyValue.verify(n.metadata[f]);if(u)return"metadata."+u}}return null},s.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.metrics.v1.Metric)return n;var c=new ke.opentelemetry.proto.metrics.v1.Metric;if(n.name!=null&&(c.name=String(n.name)),n.description!=null&&(c.description=String(n.description)),n.unit!=null&&(c.unit=String(n.unit)),n.gauge!=null){if(typeof n.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");c.gauge=ke.opentelemetry.proto.metrics.v1.Gauge.fromObject(n.gauge)}if(n.sum!=null){if(typeof n.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");c.sum=ke.opentelemetry.proto.metrics.v1.Sum.fromObject(n.sum)}if(n.histogram!=null){if(typeof n.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");c.histogram=ke.opentelemetry.proto.metrics.v1.Histogram.fromObject(n.histogram)}if(n.exponentialHistogram!=null){if(typeof n.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");c.exponentialHistogram=ke.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(n.exponentialHistogram)}if(n.summary!=null){if(typeof n.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");c.summary=ke.opentelemetry.proto.metrics.v1.Summary.fromObject(n.summary)}if(n.metadata){if(!Array.isArray(n.metadata))throw TypeError(".opentelemetry.proto.metrics.v1.Metric.metadata: array expected");c.metadata=[];for(var u=0;u<n.metadata.length;++u){if(typeof n.metadata[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.metadata: object expected");c.metadata[u]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(n.metadata[u])}}return c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.metadata=[]),c.defaults&&(u.name="",u.description="",u.unit=""),n.name!=null&&n.hasOwnProperty("name")&&(u.name=n.name),n.description!=null&&n.hasOwnProperty("description")&&(u.description=n.description),n.unit!=null&&n.hasOwnProperty("unit")&&(u.unit=n.unit),n.gauge!=null&&n.hasOwnProperty("gauge")&&(u.gauge=ke.opentelemetry.proto.metrics.v1.Gauge.toObject(n.gauge,c),c.oneofs&&(u.data="gauge")),n.sum!=null&&n.hasOwnProperty("sum")&&(u.sum=ke.opentelemetry.proto.metrics.v1.Sum.toObject(n.sum,c),c.oneofs&&(u.data="sum")),n.histogram!=null&&n.hasOwnProperty("histogram")&&(u.histogram=ke.opentelemetry.proto.metrics.v1.Histogram.toObject(n.histogram,c),c.oneofs&&(u.data="histogram")),n.exponentialHistogram!=null&&n.hasOwnProperty("exponentialHistogram")&&(u.exponentialHistogram=ke.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(n.exponentialHistogram,c),c.oneofs&&(u.data="exponentialHistogram")),n.summary!=null&&n.hasOwnProperty("summary")&&(u.summary=ke.opentelemetry.proto.metrics.v1.Summary.toObject(n.summary,c),c.oneofs&&(u.data="summary")),n.metadata&&n.metadata.length){u.metadata=[];for(var f=0;f<n.metadata.length;++f)u.metadata[f]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(n.metadata[f],c)}return u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.Metric"},s})(),o.Gauge=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)ke.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.metrics.v1.Gauge;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(ke.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=ke.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.metrics.v1.Gauge)return i;var n=new ke.opentelemetry.proto.metrics.v1.Gauge;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");n.dataPoints[c]=ke.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(i.dataPoints[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=ke.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(i.dataPoints[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Gauge"},s})(),o.Sum=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.prototype.aggregationTemporality=null,s.prototype.isMonotonic=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)ke.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return i.aggregationTemporality!=null&&Object.hasOwnProperty.call(i,"aggregationTemporality")&&n.uint32(16).int32(i.aggregationTemporality),i.isMonotonic!=null&&Object.hasOwnProperty.call(i,"isMonotonic")&&n.uint32(24).bool(i.isMonotonic),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.metrics.v1.Sum;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(ke.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(i,i.uint32()));break}case 2:{f.aggregationTemporality=i.int32();break}case 3:{f.isMonotonic=i.bool();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=ke.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}if(i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality"))switch(i.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return i.isMonotonic!=null&&i.hasOwnProperty("isMonotonic")&&typeof i.isMonotonic!="boolean"?"isMonotonic: boolean expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.metrics.v1.Sum)return i;var n=new ke.opentelemetry.proto.metrics.v1.Sum;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");n.dataPoints[c]=ke.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(i.dataPoints[c])}}switch(i.aggregationTemporality){default:if(typeof i.aggregationTemporality=="number"){n.aggregationTemporality=i.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:n.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:n.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:n.aggregationTemporality=2;break}return i.isMonotonic!=null&&(n.isMonotonic=!!i.isMonotonic),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),n.defaults&&(c.aggregationTemporality=n.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,c.isMonotonic=!1),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=ke.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(i.dataPoints[u],n)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=n.enums===String?ke.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:ke.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]:i.aggregationTemporality),i.isMonotonic!=null&&i.hasOwnProperty("isMonotonic")&&(c.isMonotonic=i.isMonotonic),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Sum"},s})(),o.Histogram=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.prototype.aggregationTemporality=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)ke.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return i.aggregationTemporality!=null&&Object.hasOwnProperty.call(i,"aggregationTemporality")&&n.uint32(16).int32(i.aggregationTemporality),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.metrics.v1.Histogram;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(ke.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(i,i.uint32()));break}case 2:{f.aggregationTemporality=i.int32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=ke.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}if(i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality"))switch(i.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.metrics.v1.Histogram)return i;var n=new ke.opentelemetry.proto.metrics.v1.Histogram;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");n.dataPoints[c]=ke.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(i.dataPoints[c])}}switch(i.aggregationTemporality){default:if(typeof i.aggregationTemporality=="number"){n.aggregationTemporality=i.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:n.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:n.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:n.aggregationTemporality=2;break}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),n.defaults&&(c.aggregationTemporality=n.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=ke.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(i.dataPoints[u],n)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=n.enums===String?ke.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:ke.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]:i.aggregationTemporality),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Histogram"},s})(),o.ExponentialHistogram=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.prototype.aggregationTemporality=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return i.aggregationTemporality!=null&&Object.hasOwnProperty.call(i,"aggregationTemporality")&&n.uint32(16).int32(i.aggregationTemporality),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.metrics.v1.ExponentialHistogram;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(i,i.uint32()));break}case 2:{f.aggregationTemporality=i.int32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}if(i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality"))switch(i.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.metrics.v1.ExponentialHistogram)return i;var n=new ke.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");n.dataPoints[c]=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(i.dataPoints[c])}}switch(i.aggregationTemporality){default:if(typeof i.aggregationTemporality=="number"){n.aggregationTemporality=i.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:n.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:n.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:n.aggregationTemporality=2;break}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),n.defaults&&(c.aggregationTemporality=n.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(i.dataPoints[u],n)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=n.enums===String?ke.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:ke.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]:i.aggregationTemporality),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},s})(),o.Summary=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.metrics.v1.Summary;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.metrics.v1.Summary)return i;var n=new ke.opentelemetry.proto.metrics.v1.Summary;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");n.dataPoints[c]=ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(i.dataPoints[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(i.dataPoints[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Summary"},s})(),o.AggregationTemporality=(function(){var s={},a=Object.create(s);return a[s[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,a[s[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,a[s[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,a})(),o.DataPointFlags=(function(){var s={},a=Object.create(s);return a[s[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,a[s[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,a})(),o.NumberDataPoint=(function(){function s(i){if(this.attributes=[],this.exemplars=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.attributes=$e.emptyArray,s.prototype.startTimeUnixNano=null,s.prototype.timeUnixNano=null,s.prototype.asDouble=null,s.prototype.asInt=null,s.prototype.exemplars=$e.emptyArray,s.prototype.flags=null;var a;return Object.defineProperty(s.prototype,"value",{get:$e.oneOfGetter(a=["asDouble","asInt"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=sa.create()),n.startTimeUnixNano!=null&&Object.hasOwnProperty.call(n,"startTimeUnixNano")&&c.uint32(17).fixed64(n.startTimeUnixNano),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(25).fixed64(n.timeUnixNano),n.asDouble!=null&&Object.hasOwnProperty.call(n,"asDouble")&&c.uint32(33).double(n.asDouble),n.exemplars!=null&&n.exemplars.length)for(var u=0;u<n.exemplars.length;++u)ke.opentelemetry.proto.metrics.v1.Exemplar.encode(n.exemplars[u],c.uint32(42).fork()).ldelim();if(n.asInt!=null&&Object.hasOwnProperty.call(n,"asInt")&&c.uint32(49).sfixed64(n.asInt),n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)ke.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(58).fork()).ldelim();return n.flags!=null&&Object.hasOwnProperty.call(n,"flags")&&c.uint32(64).uint32(n.flags),c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.metrics.v1.NumberDataPoint;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 7:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 2:{d.startTimeUnixNano=n.fixed64();break}case 3:{d.timeUnixNano=n.fixed64();break}case 4:{d.asDouble=n.double();break}case 6:{d.asInt=n.sfixed64();break}case 5:{d.exemplars&&d.exemplars.length||(d.exemplars=[]),d.exemplars.push(ke.opentelemetry.proto.metrics.v1.Exemplar.decode(n,n.uint32()));break}case 8:{d.flags=n.uint32();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var u=0;u<n.attributes.length;++u){var f=ke.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[u]);if(f)return"attributes."+f}}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(n.startTimeUnixNano)&&!(n.startTimeUnixNano&&$e.isInteger(n.startTimeUnixNano.low)&&$e.isInteger(n.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.asDouble!=null&&n.hasOwnProperty("asDouble")&&(c.value=1,typeof n.asDouble!="number"))return"asDouble: number expected";if(n.asInt!=null&&n.hasOwnProperty("asInt")){if(c.value===1)return"value: multiple values";if(c.value=1,!$e.isInteger(n.asInt)&&!(n.asInt&&$e.isInteger(n.asInt.low)&&$e.isInteger(n.asInt.high)))return"asInt: integer|Long expected"}if(n.exemplars!=null&&n.hasOwnProperty("exemplars")){if(!Array.isArray(n.exemplars))return"exemplars: array expected";for(var u=0;u<n.exemplars.length;++u){var f=ke.opentelemetry.proto.metrics.v1.Exemplar.verify(n.exemplars[u]);if(f)return"exemplars."+f}}return n.flags!=null&&n.hasOwnProperty("flags")&&!$e.isInteger(n.flags)?"flags: integer expected":null},s.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.metrics.v1.NumberDataPoint)return n;var c=new ke.opentelemetry.proto.metrics.v1.NumberDataPoint;if(n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");c.attributes[u]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}if(n.startTimeUnixNano!=null&&($e.Long?(c.startTimeUnixNano=$e.Long.fromValue(n.startTimeUnixNano)).unsigned=!1:typeof n.startTimeUnixNano=="string"?c.startTimeUnixNano=parseInt(n.startTimeUnixNano,10):typeof n.startTimeUnixNano=="number"?c.startTimeUnixNano=n.startTimeUnixNano:typeof n.startTimeUnixNano=="object"&&(c.startTimeUnixNano=new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber())),n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.asDouble!=null&&(c.asDouble=Number(n.asDouble)),n.asInt!=null&&($e.Long?(c.asInt=$e.Long.fromValue(n.asInt)).unsigned=!1:typeof n.asInt=="string"?c.asInt=parseInt(n.asInt,10):typeof n.asInt=="number"?c.asInt=n.asInt:typeof n.asInt=="object"&&(c.asInt=new $e.LongBits(n.asInt.low>>>0,n.asInt.high>>>0).toNumber())),n.exemplars){if(!Array.isArray(n.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");c.exemplars=[];for(var u=0;u<n.exemplars.length;++u){if(typeof n.exemplars[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");c.exemplars[u]=ke.opentelemetry.proto.metrics.v1.Exemplar.fromObject(n.exemplars[u])}}return n.flags!=null&&(c.flags=n.flags>>>0),c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.exemplars=[],u.attributes=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.startTimeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.startTimeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;u.flags=0}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&(typeof n.startTimeUnixNano=="number"?u.startTimeUnixNano=c.longs===String?String(n.startTimeUnixNano):n.startTimeUnixNano:u.startTimeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.startTimeUnixNano):c.longs===Number?new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber():n.startTimeUnixNano),n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.asDouble!=null&&n.hasOwnProperty("asDouble")&&(u.asDouble=c.json&&!isFinite(n.asDouble)?String(n.asDouble):n.asDouble,c.oneofs&&(u.value="asDouble")),n.exemplars&&n.exemplars.length){u.exemplars=[];for(var d=0;d<n.exemplars.length;++d)u.exemplars[d]=ke.opentelemetry.proto.metrics.v1.Exemplar.toObject(n.exemplars[d],c)}if(n.asInt!=null&&n.hasOwnProperty("asInt")&&(typeof n.asInt=="number"?u.asInt=c.longs===String?String(n.asInt):n.asInt:u.asInt=c.longs===String?$e.Long.prototype.toString.call(n.asInt):c.longs===Number?new $e.LongBits(n.asInt.low>>>0,n.asInt.high>>>0).toNumber():n.asInt,c.oneofs&&(u.value="asInt")),n.attributes&&n.attributes.length){u.attributes=[];for(var d=0;d<n.attributes.length;++d)u.attributes[d]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[d],c)}return n.flags!=null&&n.hasOwnProperty("flags")&&(u.flags=n.flags),u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},s})(),o.HistogramDataPoint=(function(){function s(i){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.attributes=$e.emptyArray,s.prototype.startTimeUnixNano=null,s.prototype.timeUnixNano=null,s.prototype.count=null,s.prototype.sum=null,s.prototype.bucketCounts=$e.emptyArray,s.prototype.explicitBounds=$e.emptyArray,s.prototype.exemplars=$e.emptyArray,s.prototype.flags=null,s.prototype.min=null,s.prototype.max=null;var a;return Object.defineProperty(s.prototype,"_sum",{get:$e.oneOfGetter(a=["sum"]),set:$e.oneOfSetter(a)}),Object.defineProperty(s.prototype,"_min",{get:$e.oneOfGetter(a=["min"]),set:$e.oneOfSetter(a)}),Object.defineProperty(s.prototype,"_max",{get:$e.oneOfGetter(a=["max"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=sa.create()),n.startTimeUnixNano!=null&&Object.hasOwnProperty.call(n,"startTimeUnixNano")&&c.uint32(17).fixed64(n.startTimeUnixNano),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(25).fixed64(n.timeUnixNano),n.count!=null&&Object.hasOwnProperty.call(n,"count")&&c.uint32(33).fixed64(n.count),n.sum!=null&&Object.hasOwnProperty.call(n,"sum")&&c.uint32(41).double(n.sum),n.bucketCounts!=null&&n.bucketCounts.length){c.uint32(50).fork();for(var u=0;u<n.bucketCounts.length;++u)c.fixed64(n.bucketCounts[u]);c.ldelim()}if(n.explicitBounds!=null&&n.explicitBounds.length){c.uint32(58).fork();for(var u=0;u<n.explicitBounds.length;++u)c.double(n.explicitBounds[u]);c.ldelim()}if(n.exemplars!=null&&n.exemplars.length)for(var u=0;u<n.exemplars.length;++u)ke.opentelemetry.proto.metrics.v1.Exemplar.encode(n.exemplars[u],c.uint32(66).fork()).ldelim();if(n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)ke.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(74).fork()).ldelim();return n.flags!=null&&Object.hasOwnProperty.call(n,"flags")&&c.uint32(80).uint32(n.flags),n.min!=null&&Object.hasOwnProperty.call(n,"min")&&c.uint32(89).double(n.min),n.max!=null&&Object.hasOwnProperty.call(n,"max")&&c.uint32(97).double(n.max),c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.metrics.v1.HistogramDataPoint;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 9:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 2:{d.startTimeUnixNano=n.fixed64();break}case 3:{d.timeUnixNano=n.fixed64();break}case 4:{d.count=n.fixed64();break}case 5:{d.sum=n.double();break}case 6:{if(d.bucketCounts&&d.bucketCounts.length||(d.bucketCounts=[]),(p&7)===2)for(var h=n.uint32()+n.pos;n.pos<h;)d.bucketCounts.push(n.fixed64());else d.bucketCounts.push(n.fixed64());break}case 7:{if(d.explicitBounds&&d.explicitBounds.length||(d.explicitBounds=[]),(p&7)===2)for(var h=n.uint32()+n.pos;n.pos<h;)d.explicitBounds.push(n.double());else d.explicitBounds.push(n.double());break}case 8:{d.exemplars&&d.exemplars.length||(d.exemplars=[]),d.exemplars.push(ke.opentelemetry.proto.metrics.v1.Exemplar.decode(n,n.uint32()));break}case 10:{d.flags=n.uint32();break}case 11:{d.min=n.double();break}case 12:{d.max=n.double();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var u=0;u<n.attributes.length;++u){var f=ke.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[u]);if(f)return"attributes."+f}}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(n.startTimeUnixNano)&&!(n.startTimeUnixNano&&$e.isInteger(n.startTimeUnixNano.low)&&$e.isInteger(n.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.count!=null&&n.hasOwnProperty("count")&&!$e.isInteger(n.count)&&!(n.count&&$e.isInteger(n.count.low)&&$e.isInteger(n.count.high)))return"count: integer|Long expected";if(n.sum!=null&&n.hasOwnProperty("sum")&&(c._sum=1,typeof n.sum!="number"))return"sum: number expected";if(n.bucketCounts!=null&&n.hasOwnProperty("bucketCounts")){if(!Array.isArray(n.bucketCounts))return"bucketCounts: array expected";for(var u=0;u<n.bucketCounts.length;++u)if(!$e.isInteger(n.bucketCounts[u])&&!(n.bucketCounts[u]&&$e.isInteger(n.bucketCounts[u].low)&&$e.isInteger(n.bucketCounts[u].high)))return"bucketCounts: integer|Long[] expected"}if(n.explicitBounds!=null&&n.hasOwnProperty("explicitBounds")){if(!Array.isArray(n.explicitBounds))return"explicitBounds: array expected";for(var u=0;u<n.explicitBounds.length;++u)if(typeof n.explicitBounds[u]!="number")return"explicitBounds: number[] expected"}if(n.exemplars!=null&&n.hasOwnProperty("exemplars")){if(!Array.isArray(n.exemplars))return"exemplars: array expected";for(var u=0;u<n.exemplars.length;++u){var f=ke.opentelemetry.proto.metrics.v1.Exemplar.verify(n.exemplars[u]);if(f)return"exemplars."+f}}return n.flags!=null&&n.hasOwnProperty("flags")&&!$e.isInteger(n.flags)?"flags: integer expected":n.min!=null&&n.hasOwnProperty("min")&&(c._min=1,typeof n.min!="number")?"min: number expected":n.max!=null&&n.hasOwnProperty("max")&&(c._max=1,typeof n.max!="number")?"max: number expected":null},s.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.metrics.v1.HistogramDataPoint)return n;var c=new ke.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");c.attributes[u]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}if(n.startTimeUnixNano!=null&&($e.Long?(c.startTimeUnixNano=$e.Long.fromValue(n.startTimeUnixNano)).unsigned=!1:typeof n.startTimeUnixNano=="string"?c.startTimeUnixNano=parseInt(n.startTimeUnixNano,10):typeof n.startTimeUnixNano=="number"?c.startTimeUnixNano=n.startTimeUnixNano:typeof n.startTimeUnixNano=="object"&&(c.startTimeUnixNano=new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber())),n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.count!=null&&($e.Long?(c.count=$e.Long.fromValue(n.count)).unsigned=!1:typeof n.count=="string"?c.count=parseInt(n.count,10):typeof n.count=="number"?c.count=n.count:typeof n.count=="object"&&(c.count=new $e.LongBits(n.count.low>>>0,n.count.high>>>0).toNumber())),n.sum!=null&&(c.sum=Number(n.sum)),n.bucketCounts){if(!Array.isArray(n.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");c.bucketCounts=[];for(var u=0;u<n.bucketCounts.length;++u)$e.Long?(c.bucketCounts[u]=$e.Long.fromValue(n.bucketCounts[u])).unsigned=!1:typeof n.bucketCounts[u]=="string"?c.bucketCounts[u]=parseInt(n.bucketCounts[u],10):typeof n.bucketCounts[u]=="number"?c.bucketCounts[u]=n.bucketCounts[u]:typeof n.bucketCounts[u]=="object"&&(c.bucketCounts[u]=new $e.LongBits(n.bucketCounts[u].low>>>0,n.bucketCounts[u].high>>>0).toNumber())}if(n.explicitBounds){if(!Array.isArray(n.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");c.explicitBounds=[];for(var u=0;u<n.explicitBounds.length;++u)c.explicitBounds[u]=Number(n.explicitBounds[u])}if(n.exemplars){if(!Array.isArray(n.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");c.exemplars=[];for(var u=0;u<n.exemplars.length;++u){if(typeof n.exemplars[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");c.exemplars[u]=ke.opentelemetry.proto.metrics.v1.Exemplar.fromObject(n.exemplars[u])}}return n.flags!=null&&(c.flags=n.flags>>>0),n.min!=null&&(c.min=Number(n.min)),n.max!=null&&(c.max=Number(n.max)),c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.bucketCounts=[],u.explicitBounds=[],u.exemplars=[],u.attributes=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.startTimeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.startTimeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.count=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.count=c.longs===String?"0":0;u.flags=0}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&(typeof n.startTimeUnixNano=="number"?u.startTimeUnixNano=c.longs===String?String(n.startTimeUnixNano):n.startTimeUnixNano:u.startTimeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.startTimeUnixNano):c.longs===Number?new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber():n.startTimeUnixNano),n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.count!=null&&n.hasOwnProperty("count")&&(typeof n.count=="number"?u.count=c.longs===String?String(n.count):n.count:u.count=c.longs===String?$e.Long.prototype.toString.call(n.count):c.longs===Number?new $e.LongBits(n.count.low>>>0,n.count.high>>>0).toNumber():n.count),n.sum!=null&&n.hasOwnProperty("sum")&&(u.sum=c.json&&!isFinite(n.sum)?String(n.sum):n.sum,c.oneofs&&(u._sum="sum")),n.bucketCounts&&n.bucketCounts.length){u.bucketCounts=[];for(var d=0;d<n.bucketCounts.length;++d)typeof n.bucketCounts[d]=="number"?u.bucketCounts[d]=c.longs===String?String(n.bucketCounts[d]):n.bucketCounts[d]:u.bucketCounts[d]=c.longs===String?$e.Long.prototype.toString.call(n.bucketCounts[d]):c.longs===Number?new $e.LongBits(n.bucketCounts[d].low>>>0,n.bucketCounts[d].high>>>0).toNumber():n.bucketCounts[d]}if(n.explicitBounds&&n.explicitBounds.length){u.explicitBounds=[];for(var d=0;d<n.explicitBounds.length;++d)u.explicitBounds[d]=c.json&&!isFinite(n.explicitBounds[d])?String(n.explicitBounds[d]):n.explicitBounds[d]}if(n.exemplars&&n.exemplars.length){u.exemplars=[];for(var d=0;d<n.exemplars.length;++d)u.exemplars[d]=ke.opentelemetry.proto.metrics.v1.Exemplar.toObject(n.exemplars[d],c)}if(n.attributes&&n.attributes.length){u.attributes=[];for(var d=0;d<n.attributes.length;++d)u.attributes[d]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[d],c)}return n.flags!=null&&n.hasOwnProperty("flags")&&(u.flags=n.flags),n.min!=null&&n.hasOwnProperty("min")&&(u.min=c.json&&!isFinite(n.min)?String(n.min):n.min,c.oneofs&&(u._min="min")),n.max!=null&&n.hasOwnProperty("max")&&(u.max=c.json&&!isFinite(n.max)?String(n.max):n.max,c.oneofs&&(u._max="max")),u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},s})(),o.ExponentialHistogramDataPoint=(function(){function s(i){if(this.attributes=[],this.exemplars=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.attributes=$e.emptyArray,s.prototype.startTimeUnixNano=null,s.prototype.timeUnixNano=null,s.prototype.count=null,s.prototype.sum=null,s.prototype.scale=null,s.prototype.zeroCount=null,s.prototype.positive=null,s.prototype.negative=null,s.prototype.flags=null,s.prototype.exemplars=$e.emptyArray,s.prototype.min=null,s.prototype.max=null,s.prototype.zeroThreshold=null;var a;return Object.defineProperty(s.prototype,"_sum",{get:$e.oneOfGetter(a=["sum"]),set:$e.oneOfSetter(a)}),Object.defineProperty(s.prototype,"_min",{get:$e.oneOfGetter(a=["min"]),set:$e.oneOfSetter(a)}),Object.defineProperty(s.prototype,"_max",{get:$e.oneOfGetter(a=["max"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=sa.create()),n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)ke.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(10).fork()).ldelim();if(n.startTimeUnixNano!=null&&Object.hasOwnProperty.call(n,"startTimeUnixNano")&&c.uint32(17).fixed64(n.startTimeUnixNano),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(25).fixed64(n.timeUnixNano),n.count!=null&&Object.hasOwnProperty.call(n,"count")&&c.uint32(33).fixed64(n.count),n.sum!=null&&Object.hasOwnProperty.call(n,"sum")&&c.uint32(41).double(n.sum),n.scale!=null&&Object.hasOwnProperty.call(n,"scale")&&c.uint32(48).sint32(n.scale),n.zeroCount!=null&&Object.hasOwnProperty.call(n,"zeroCount")&&c.uint32(57).fixed64(n.zeroCount),n.positive!=null&&Object.hasOwnProperty.call(n,"positive")&&ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(n.positive,c.uint32(66).fork()).ldelim(),n.negative!=null&&Object.hasOwnProperty.call(n,"negative")&&ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(n.negative,c.uint32(74).fork()).ldelim(),n.flags!=null&&Object.hasOwnProperty.call(n,"flags")&&c.uint32(80).uint32(n.flags),n.exemplars!=null&&n.exemplars.length)for(var u=0;u<n.exemplars.length;++u)ke.opentelemetry.proto.metrics.v1.Exemplar.encode(n.exemplars[u],c.uint32(90).fork()).ldelim();return n.min!=null&&Object.hasOwnProperty.call(n,"min")&&c.uint32(97).double(n.min),n.max!=null&&Object.hasOwnProperty.call(n,"max")&&c.uint32(105).double(n.max),n.zeroThreshold!=null&&Object.hasOwnProperty.call(n,"zeroThreshold")&&c.uint32(113).double(n.zeroThreshold),c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 2:{d.startTimeUnixNano=n.fixed64();break}case 3:{d.timeUnixNano=n.fixed64();break}case 4:{d.count=n.fixed64();break}case 5:{d.sum=n.double();break}case 6:{d.scale=n.sint32();break}case 7:{d.zeroCount=n.fixed64();break}case 8:{d.positive=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(n,n.uint32());break}case 9:{d.negative=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(n,n.uint32());break}case 10:{d.flags=n.uint32();break}case 11:{d.exemplars&&d.exemplars.length||(d.exemplars=[]),d.exemplars.push(ke.opentelemetry.proto.metrics.v1.Exemplar.decode(n,n.uint32()));break}case 12:{d.min=n.double();break}case 13:{d.max=n.double();break}case 14:{d.zeroThreshold=n.double();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var u=0;u<n.attributes.length;++u){var f=ke.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[u]);if(f)return"attributes."+f}}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(n.startTimeUnixNano)&&!(n.startTimeUnixNano&&$e.isInteger(n.startTimeUnixNano.low)&&$e.isInteger(n.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.count!=null&&n.hasOwnProperty("count")&&!$e.isInteger(n.count)&&!(n.count&&$e.isInteger(n.count.low)&&$e.isInteger(n.count.high)))return"count: integer|Long expected";if(n.sum!=null&&n.hasOwnProperty("sum")&&(c._sum=1,typeof n.sum!="number"))return"sum: number expected";if(n.scale!=null&&n.hasOwnProperty("scale")&&!$e.isInteger(n.scale))return"scale: integer expected";if(n.zeroCount!=null&&n.hasOwnProperty("zeroCount")&&!$e.isInteger(n.zeroCount)&&!(n.zeroCount&&$e.isInteger(n.zeroCount.low)&&$e.isInteger(n.zeroCount.high)))return"zeroCount: integer|Long expected";if(n.positive!=null&&n.hasOwnProperty("positive")){var f=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(n.positive);if(f)return"positive."+f}if(n.negative!=null&&n.hasOwnProperty("negative")){var f=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(n.negative);if(f)return"negative."+f}if(n.flags!=null&&n.hasOwnProperty("flags")&&!$e.isInteger(n.flags))return"flags: integer expected";if(n.exemplars!=null&&n.hasOwnProperty("exemplars")){if(!Array.isArray(n.exemplars))return"exemplars: array expected";for(var u=0;u<n.exemplars.length;++u){var f=ke.opentelemetry.proto.metrics.v1.Exemplar.verify(n.exemplars[u]);if(f)return"exemplars."+f}}return n.min!=null&&n.hasOwnProperty("min")&&(c._min=1,typeof n.min!="number")?"min: number expected":n.max!=null&&n.hasOwnProperty("max")&&(c._max=1,typeof n.max!="number")?"max: number expected":n.zeroThreshold!=null&&n.hasOwnProperty("zeroThreshold")&&typeof n.zeroThreshold!="number"?"zeroThreshold: number expected":null},s.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return n;var c=new ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");c.attributes[u]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}if(n.startTimeUnixNano!=null&&($e.Long?(c.startTimeUnixNano=$e.Long.fromValue(n.startTimeUnixNano)).unsigned=!1:typeof n.startTimeUnixNano=="string"?c.startTimeUnixNano=parseInt(n.startTimeUnixNano,10):typeof n.startTimeUnixNano=="number"?c.startTimeUnixNano=n.startTimeUnixNano:typeof n.startTimeUnixNano=="object"&&(c.startTimeUnixNano=new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber())),n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.count!=null&&($e.Long?(c.count=$e.Long.fromValue(n.count)).unsigned=!1:typeof n.count=="string"?c.count=parseInt(n.count,10):typeof n.count=="number"?c.count=n.count:typeof n.count=="object"&&(c.count=new $e.LongBits(n.count.low>>>0,n.count.high>>>0).toNumber())),n.sum!=null&&(c.sum=Number(n.sum)),n.scale!=null&&(c.scale=n.scale|0),n.zeroCount!=null&&($e.Long?(c.zeroCount=$e.Long.fromValue(n.zeroCount)).unsigned=!1:typeof n.zeroCount=="string"?c.zeroCount=parseInt(n.zeroCount,10):typeof n.zeroCount=="number"?c.zeroCount=n.zeroCount:typeof n.zeroCount=="object"&&(c.zeroCount=new $e.LongBits(n.zeroCount.low>>>0,n.zeroCount.high>>>0).toNumber())),n.positive!=null){if(typeof n.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");c.positive=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(n.positive)}if(n.negative!=null){if(typeof n.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");c.negative=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(n.negative)}if(n.flags!=null&&(c.flags=n.flags>>>0),n.exemplars){if(!Array.isArray(n.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");c.exemplars=[];for(var u=0;u<n.exemplars.length;++u){if(typeof n.exemplars[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");c.exemplars[u]=ke.opentelemetry.proto.metrics.v1.Exemplar.fromObject(n.exemplars[u])}}return n.min!=null&&(c.min=Number(n.min)),n.max!=null&&(c.max=Number(n.max)),n.zeroThreshold!=null&&(c.zeroThreshold=Number(n.zeroThreshold)),c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.attributes=[],u.exemplars=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.startTimeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.startTimeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.count=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.count=c.longs===String?"0":0;if(u.scale=0,$e.Long){var f=new $e.Long(0,0,!1);u.zeroCount=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.zeroCount=c.longs===String?"0":0;u.positive=null,u.negative=null,u.flags=0,u.zeroThreshold=0}if(n.attributes&&n.attributes.length){u.attributes=[];for(var d=0;d<n.attributes.length;++d)u.attributes[d]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[d],c)}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&(typeof n.startTimeUnixNano=="number"?u.startTimeUnixNano=c.longs===String?String(n.startTimeUnixNano):n.startTimeUnixNano:u.startTimeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.startTimeUnixNano):c.longs===Number?new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber():n.startTimeUnixNano),n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.count!=null&&n.hasOwnProperty("count")&&(typeof n.count=="number"?u.count=c.longs===String?String(n.count):n.count:u.count=c.longs===String?$e.Long.prototype.toString.call(n.count):c.longs===Number?new $e.LongBits(n.count.low>>>0,n.count.high>>>0).toNumber():n.count),n.sum!=null&&n.hasOwnProperty("sum")&&(u.sum=c.json&&!isFinite(n.sum)?String(n.sum):n.sum,c.oneofs&&(u._sum="sum")),n.scale!=null&&n.hasOwnProperty("scale")&&(u.scale=n.scale),n.zeroCount!=null&&n.hasOwnProperty("zeroCount")&&(typeof n.zeroCount=="number"?u.zeroCount=c.longs===String?String(n.zeroCount):n.zeroCount:u.zeroCount=c.longs===String?$e.Long.prototype.toString.call(n.zeroCount):c.longs===Number?new $e.LongBits(n.zeroCount.low>>>0,n.zeroCount.high>>>0).toNumber():n.zeroCount),n.positive!=null&&n.hasOwnProperty("positive")&&(u.positive=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(n.positive,c)),n.negative!=null&&n.hasOwnProperty("negative")&&(u.negative=ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(n.negative,c)),n.flags!=null&&n.hasOwnProperty("flags")&&(u.flags=n.flags),n.exemplars&&n.exemplars.length){u.exemplars=[];for(var d=0;d<n.exemplars.length;++d)u.exemplars[d]=ke.opentelemetry.proto.metrics.v1.Exemplar.toObject(n.exemplars[d],c)}return n.min!=null&&n.hasOwnProperty("min")&&(u.min=c.json&&!isFinite(n.min)?String(n.min):n.min,c.oneofs&&(u._min="min")),n.max!=null&&n.hasOwnProperty("max")&&(u.max=c.json&&!isFinite(n.max)?String(n.max):n.max,c.oneofs&&(u._max="max")),n.zeroThreshold!=null&&n.hasOwnProperty("zeroThreshold")&&(u.zeroThreshold=c.json&&!isFinite(n.zeroThreshold)?String(n.zeroThreshold):n.zeroThreshold),u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},s.Buckets=(function(){function i(n){if(this.bucketCounts=[],n)for(var c=Object.keys(n),u=0;u<c.length;++u)n[c[u]]!=null&&(this[c[u]]=n[c[u]])}return i.prototype.offset=null,i.prototype.bucketCounts=$e.emptyArray,i.create=function(c){return new i(c)},i.encode=function(c,u){if(u||(u=sa.create()),c.offset!=null&&Object.hasOwnProperty.call(c,"offset")&&u.uint32(8).sint32(c.offset),c.bucketCounts!=null&&c.bucketCounts.length){u.uint32(18).fork();for(var f=0;f<c.bucketCounts.length;++f)u.uint64(c.bucketCounts[f]);u.ldelim()}return u},i.encodeDelimited=function(c,u){return this.encode(c,u).ldelim()},i.decode=function(c,u,f){c instanceof Kt||(c=Kt.create(c));for(var d=u===void 0?c.len:c.pos+u,p=new ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;c.pos<d;){var h=c.uint32();if(h===f)break;switch(h>>>3){case 1:{p.offset=c.sint32();break}case 2:{if(p.bucketCounts&&p.bucketCounts.length||(p.bucketCounts=[]),(h&7)===2)for(var m=c.uint32()+c.pos;c.pos<m;)p.bucketCounts.push(c.uint64());else p.bucketCounts.push(c.uint64());break}default:c.skipType(h&7);break}}return p},i.decodeDelimited=function(c){return c instanceof Kt||(c=new Kt(c)),this.decode(c,c.uint32())},i.verify=function(c){if(typeof c!="object"||c===null)return"object expected";if(c.offset!=null&&c.hasOwnProperty("offset")&&!$e.isInteger(c.offset))return"offset: integer expected";if(c.bucketCounts!=null&&c.hasOwnProperty("bucketCounts")){if(!Array.isArray(c.bucketCounts))return"bucketCounts: array expected";for(var u=0;u<c.bucketCounts.length;++u)if(!$e.isInteger(c.bucketCounts[u])&&!(c.bucketCounts[u]&&$e.isInteger(c.bucketCounts[u].low)&&$e.isInteger(c.bucketCounts[u].high)))return"bucketCounts: integer|Long[] expected"}return null},i.fromObject=function(c){if(c instanceof ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return c;var u=new ke.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(c.offset!=null&&(u.offset=c.offset|0),c.bucketCounts){if(!Array.isArray(c.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");u.bucketCounts=[];for(var f=0;f<c.bucketCounts.length;++f)$e.Long?(u.bucketCounts[f]=$e.Long.fromValue(c.bucketCounts[f])).unsigned=!0:typeof c.bucketCounts[f]=="string"?u.bucketCounts[f]=parseInt(c.bucketCounts[f],10):typeof c.bucketCounts[f]=="number"?u.bucketCounts[f]=c.bucketCounts[f]:typeof c.bucketCounts[f]=="object"&&(u.bucketCounts[f]=new $e.LongBits(c.bucketCounts[f].low>>>0,c.bucketCounts[f].high>>>0).toNumber(!0))}return u},i.toObject=function(c,u){u||(u={});var f={};if((u.arrays||u.defaults)&&(f.bucketCounts=[]),u.defaults&&(f.offset=0),c.offset!=null&&c.hasOwnProperty("offset")&&(f.offset=c.offset),c.bucketCounts&&c.bucketCounts.length){f.bucketCounts=[];for(var d=0;d<c.bucketCounts.length;++d)typeof c.bucketCounts[d]=="number"?f.bucketCounts[d]=u.longs===String?String(c.bucketCounts[d]):c.bucketCounts[d]:f.bucketCounts[d]=u.longs===String?$e.Long.prototype.toString.call(c.bucketCounts[d]):u.longs===Number?new $e.LongBits(c.bucketCounts[d].low>>>0,c.bucketCounts[d].high>>>0).toNumber(!0):c.bucketCounts[d]}return f},i.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},i.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},i})(),s})(),o.SummaryDataPoint=(function(){function s(a){if(this.attributes=[],this.quantileValues=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.attributes=$e.emptyArray,s.prototype.startTimeUnixNano=null,s.prototype.timeUnixNano=null,s.prototype.count=null,s.prototype.sum=null,s.prototype.quantileValues=$e.emptyArray,s.prototype.flags=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.startTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"startTimeUnixNano")&&n.uint32(17).fixed64(i.startTimeUnixNano),i.timeUnixNano!=null&&Object.hasOwnProperty.call(i,"timeUnixNano")&&n.uint32(25).fixed64(i.timeUnixNano),i.count!=null&&Object.hasOwnProperty.call(i,"count")&&n.uint32(33).fixed64(i.count),i.sum!=null&&Object.hasOwnProperty.call(i,"sum")&&n.uint32(41).double(i.sum),i.quantileValues!=null&&i.quantileValues.length)for(var c=0;c<i.quantileValues.length;++c)ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(i.quantileValues[c],n.uint32(50).fork()).ldelim();if(i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)ke.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(58).fork()).ldelim();return i.flags!=null&&Object.hasOwnProperty.call(i,"flags")&&n.uint32(64).uint32(i.flags),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.metrics.v1.SummaryDataPoint;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 7:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 2:{f.startTimeUnixNano=i.fixed64();break}case 3:{f.timeUnixNano=i.fixed64();break}case 4:{f.count=i.fixed64();break}case 5:{f.sum=i.double();break}case 6:{f.quantileValues&&f.quantileValues.length||(f.quantileValues=[]),f.quantileValues.push(ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(i,i.uint32()));break}case 8:{f.flags=i.uint32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var n=0;n<i.attributes.length;++n){var c=ke.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[n]);if(c)return"attributes."+c}}if(i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(i.startTimeUnixNano)&&!(i.startTimeUnixNano&&$e.isInteger(i.startTimeUnixNano.low)&&$e.isInteger(i.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&!$e.isInteger(i.timeUnixNano)&&!(i.timeUnixNano&&$e.isInteger(i.timeUnixNano.low)&&$e.isInteger(i.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(i.count!=null&&i.hasOwnProperty("count")&&!$e.isInteger(i.count)&&!(i.count&&$e.isInteger(i.count.low)&&$e.isInteger(i.count.high)))return"count: integer|Long expected";if(i.sum!=null&&i.hasOwnProperty("sum")&&typeof i.sum!="number")return"sum: number expected";if(i.quantileValues!=null&&i.hasOwnProperty("quantileValues")){if(!Array.isArray(i.quantileValues))return"quantileValues: array expected";for(var n=0;n<i.quantileValues.length;++n){var c=ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(i.quantileValues[n]);if(c)return"quantileValues."+c}}return i.flags!=null&&i.hasOwnProperty("flags")&&!$e.isInteger(i.flags)?"flags: integer expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.metrics.v1.SummaryDataPoint)return i;var n=new ke.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");n.attributes[c]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}if(i.startTimeUnixNano!=null&&($e.Long?(n.startTimeUnixNano=$e.Long.fromValue(i.startTimeUnixNano)).unsigned=!1:typeof i.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(i.startTimeUnixNano,10):typeof i.startTimeUnixNano=="number"?n.startTimeUnixNano=i.startTimeUnixNano:typeof i.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new $e.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber())),i.timeUnixNano!=null&&($e.Long?(n.timeUnixNano=$e.Long.fromValue(i.timeUnixNano)).unsigned=!1:typeof i.timeUnixNano=="string"?n.timeUnixNano=parseInt(i.timeUnixNano,10):typeof i.timeUnixNano=="number"?n.timeUnixNano=i.timeUnixNano:typeof i.timeUnixNano=="object"&&(n.timeUnixNano=new $e.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber())),i.count!=null&&($e.Long?(n.count=$e.Long.fromValue(i.count)).unsigned=!1:typeof i.count=="string"?n.count=parseInt(i.count,10):typeof i.count=="number"?n.count=i.count:typeof i.count=="object"&&(n.count=new $e.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber())),i.sum!=null&&(n.sum=Number(i.sum)),i.quantileValues){if(!Array.isArray(i.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");n.quantileValues=[];for(var c=0;c<i.quantileValues.length;++c){if(typeof i.quantileValues[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");n.quantileValues[c]=ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(i.quantileValues[c])}}return i.flags!=null&&(n.flags=i.flags>>>0),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.quantileValues=[],c.attributes=[]),n.defaults){if($e.Long){var u=new $e.Long(0,0,!1);c.startTimeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.startTimeUnixNano=n.longs===String?"0":0;if($e.Long){var u=new $e.Long(0,0,!1);c.timeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.timeUnixNano=n.longs===String?"0":0;if($e.Long){var u=new $e.Long(0,0,!1);c.count=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.count=n.longs===String?"0":0;c.sum=0,c.flags=0}if(i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&(typeof i.startTimeUnixNano=="number"?c.startTimeUnixNano=n.longs===String?String(i.startTimeUnixNano):i.startTimeUnixNano:c.startTimeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.startTimeUnixNano):n.longs===Number?new $e.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber():i.startTimeUnixNano),i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&(typeof i.timeUnixNano=="number"?c.timeUnixNano=n.longs===String?String(i.timeUnixNano):i.timeUnixNano:c.timeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.timeUnixNano):n.longs===Number?new $e.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber():i.timeUnixNano),i.count!=null&&i.hasOwnProperty("count")&&(typeof i.count=="number"?c.count=n.longs===String?String(i.count):i.count:c.count=n.longs===String?$e.Long.prototype.toString.call(i.count):n.longs===Number?new $e.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber():i.count),i.sum!=null&&i.hasOwnProperty("sum")&&(c.sum=n.json&&!isFinite(i.sum)?String(i.sum):i.sum),i.quantileValues&&i.quantileValues.length){c.quantileValues=[];for(var f=0;f<i.quantileValues.length;++f)c.quantileValues[f]=ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(i.quantileValues[f],n)}if(i.attributes&&i.attributes.length){c.attributes=[];for(var f=0;f<i.attributes.length;++f)c.attributes[f]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[f],n)}return i.flags!=null&&i.hasOwnProperty("flags")&&(c.flags=i.flags),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},s.ValueAtQuantile=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.quantile=null,a.prototype.value=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=sa.create()),n.quantile!=null&&Object.hasOwnProperty.call(n,"quantile")&&c.uint32(9).double(n.quantile),n.value!=null&&Object.hasOwnProperty.call(n,"value")&&c.uint32(17).double(n.value),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.quantile=n.double();break}case 2:{d.value=n.double();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){return typeof n!="object"||n===null?"object expected":n.quantile!=null&&n.hasOwnProperty("quantile")&&typeof n.quantile!="number"?"quantile: number expected":n.value!=null&&n.hasOwnProperty("value")&&typeof n.value!="number"?"value: number expected":null},a.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return n;var c=new ke.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return n.quantile!=null&&(c.quantile=Number(n.quantile)),n.value!=null&&(c.value=Number(n.value)),c},a.toObject=function(n,c){c||(c={});var u={};return c.defaults&&(u.quantile=0,u.value=0),n.quantile!=null&&n.hasOwnProperty("quantile")&&(u.quantile=c.json&&!isFinite(n.quantile)?String(n.quantile):n.quantile),n.value!=null&&n.hasOwnProperty("value")&&(u.value=c.json&&!isFinite(n.value)?String(n.value):n.value),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},a})(),s})(),o.Exemplar=(function(){function s(i){if(this.filteredAttributes=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.filteredAttributes=$e.emptyArray,s.prototype.timeUnixNano=null,s.prototype.asDouble=null,s.prototype.asInt=null,s.prototype.spanId=null,s.prototype.traceId=null;var a;return Object.defineProperty(s.prototype,"value",{get:$e.oneOfGetter(a=["asDouble","asInt"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=sa.create()),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(17).fixed64(n.timeUnixNano),n.asDouble!=null&&Object.hasOwnProperty.call(n,"asDouble")&&c.uint32(25).double(n.asDouble),n.spanId!=null&&Object.hasOwnProperty.call(n,"spanId")&&c.uint32(34).bytes(n.spanId),n.traceId!=null&&Object.hasOwnProperty.call(n,"traceId")&&c.uint32(42).bytes(n.traceId),n.asInt!=null&&Object.hasOwnProperty.call(n,"asInt")&&c.uint32(49).sfixed64(n.asInt),n.filteredAttributes!=null&&n.filteredAttributes.length)for(var u=0;u<n.filteredAttributes.length;++u)ke.opentelemetry.proto.common.v1.KeyValue.encode(n.filteredAttributes[u],c.uint32(58).fork()).ldelim();return c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new ke.opentelemetry.proto.metrics.v1.Exemplar;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 7:{d.filteredAttributes&&d.filteredAttributes.length||(d.filteredAttributes=[]),d.filteredAttributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 2:{d.timeUnixNano=n.fixed64();break}case 3:{d.asDouble=n.double();break}case 6:{d.asInt=n.sfixed64();break}case 4:{d.spanId=n.bytes();break}case 5:{d.traceId=n.bytes();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.filteredAttributes!=null&&n.hasOwnProperty("filteredAttributes")){if(!Array.isArray(n.filteredAttributes))return"filteredAttributes: array expected";for(var u=0;u<n.filteredAttributes.length;++u){var f=ke.opentelemetry.proto.common.v1.KeyValue.verify(n.filteredAttributes[u]);if(f)return"filteredAttributes."+f}}if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.asDouble!=null&&n.hasOwnProperty("asDouble")&&(c.value=1,typeof n.asDouble!="number"))return"asDouble: number expected";if(n.asInt!=null&&n.hasOwnProperty("asInt")){if(c.value===1)return"value: multiple values";if(c.value=1,!$e.isInteger(n.asInt)&&!(n.asInt&&$e.isInteger(n.asInt.low)&&$e.isInteger(n.asInt.high)))return"asInt: integer|Long expected"}return n.spanId!=null&&n.hasOwnProperty("spanId")&&!(n.spanId&&typeof n.spanId.length=="number"||$e.isString(n.spanId))?"spanId: buffer expected":n.traceId!=null&&n.hasOwnProperty("traceId")&&!(n.traceId&&typeof n.traceId.length=="number"||$e.isString(n.traceId))?"traceId: buffer expected":null},s.fromObject=function(n){if(n instanceof ke.opentelemetry.proto.metrics.v1.Exemplar)return n;var c=new ke.opentelemetry.proto.metrics.v1.Exemplar;if(n.filteredAttributes){if(!Array.isArray(n.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");c.filteredAttributes=[];for(var u=0;u<n.filteredAttributes.length;++u){if(typeof n.filteredAttributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");c.filteredAttributes[u]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(n.filteredAttributes[u])}}return n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.asDouble!=null&&(c.asDouble=Number(n.asDouble)),n.asInt!=null&&($e.Long?(c.asInt=$e.Long.fromValue(n.asInt)).unsigned=!1:typeof n.asInt=="string"?c.asInt=parseInt(n.asInt,10):typeof n.asInt=="number"?c.asInt=n.asInt:typeof n.asInt=="object"&&(c.asInt=new $e.LongBits(n.asInt.low>>>0,n.asInt.high>>>0).toNumber())),n.spanId!=null&&(typeof n.spanId=="string"?$e.base64.decode(n.spanId,c.spanId=$e.newBuffer($e.base64.length(n.spanId)),0):n.spanId.length>=0&&(c.spanId=n.spanId)),n.traceId!=null&&(typeof n.traceId=="string"?$e.base64.decode(n.traceId,c.traceId=$e.newBuffer($e.base64.length(n.traceId)),0):n.traceId.length>=0&&(c.traceId=n.traceId)),c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.filteredAttributes=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;c.bytes===String?u.spanId="":(u.spanId=[],c.bytes!==Array&&(u.spanId=$e.newBuffer(u.spanId))),c.bytes===String?u.traceId="":(u.traceId=[],c.bytes!==Array&&(u.traceId=$e.newBuffer(u.traceId)))}if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.asDouble!=null&&n.hasOwnProperty("asDouble")&&(u.asDouble=c.json&&!isFinite(n.asDouble)?String(n.asDouble):n.asDouble,c.oneofs&&(u.value="asDouble")),n.spanId!=null&&n.hasOwnProperty("spanId")&&(u.spanId=c.bytes===String?$e.base64.encode(n.spanId,0,n.spanId.length):c.bytes===Array?Array.prototype.slice.call(n.spanId):n.spanId),n.traceId!=null&&n.hasOwnProperty("traceId")&&(u.traceId=c.bytes===String?$e.base64.encode(n.traceId,0,n.traceId.length):c.bytes===Array?Array.prototype.slice.call(n.traceId):n.traceId),n.asInt!=null&&n.hasOwnProperty("asInt")&&(typeof n.asInt=="number"?u.asInt=c.longs===String?String(n.asInt):n.asInt:u.asInt=c.longs===String?$e.Long.prototype.toString.call(n.asInt):c.longs===Number?new $e.LongBits(n.asInt.low>>>0,n.asInt.high>>>0).toNumber():n.asInt,c.oneofs&&(u.value="asInt")),n.filteredAttributes&&n.filteredAttributes.length){u.filteredAttributes=[];for(var d=0;d<n.filteredAttributes.length;++d)u.filteredAttributes[d]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(n.filteredAttributes[d],c)}return u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.Exemplar"},s})(),o})(),r})(),e.logs=(function(){var r={};return r.v1=(function(){var o={};return o.LogsData=(function(){function s(a){if(this.resourceLogs=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resourceLogs=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.resourceLogs!=null&&i.resourceLogs.length)for(var c=0;c<i.resourceLogs.length;++c)ke.opentelemetry.proto.logs.v1.ResourceLogs.encode(i.resourceLogs[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.logs.v1.LogsData;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resourceLogs&&f.resourceLogs.length||(f.resourceLogs=[]),f.resourceLogs.push(ke.opentelemetry.proto.logs.v1.ResourceLogs.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resourceLogs!=null&&i.hasOwnProperty("resourceLogs")){if(!Array.isArray(i.resourceLogs))return"resourceLogs: array expected";for(var n=0;n<i.resourceLogs.length;++n){var c=ke.opentelemetry.proto.logs.v1.ResourceLogs.verify(i.resourceLogs[n]);if(c)return"resourceLogs."+c}}return null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.logs.v1.LogsData)return i;var n=new ke.opentelemetry.proto.logs.v1.LogsData;if(i.resourceLogs){if(!Array.isArray(i.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");n.resourceLogs=[];for(var c=0;c<i.resourceLogs.length;++c){if(typeof i.resourceLogs[c]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");n.resourceLogs[c]=ke.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(i.resourceLogs[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.resourceLogs=[]),i.resourceLogs&&i.resourceLogs.length){c.resourceLogs=[];for(var u=0;u<i.resourceLogs.length;++u)c.resourceLogs[u]=ke.opentelemetry.proto.logs.v1.ResourceLogs.toObject(i.resourceLogs[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.LogsData"},s})(),o.ResourceLogs=(function(){function s(a){if(this.scopeLogs=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resource=null,s.prototype.scopeLogs=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.resource!=null&&Object.hasOwnProperty.call(i,"resource")&&ke.opentelemetry.proto.resource.v1.Resource.encode(i.resource,n.uint32(10).fork()).ldelim(),i.scopeLogs!=null&&i.scopeLogs.length)for(var c=0;c<i.scopeLogs.length;++c)ke.opentelemetry.proto.logs.v1.ScopeLogs.encode(i.scopeLogs[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.logs.v1.ResourceLogs;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resource=ke.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{f.scopeLogs&&f.scopeLogs.length||(f.scopeLogs=[]),f.scopeLogs.push(ke.opentelemetry.proto.logs.v1.ScopeLogs.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resource!=null&&i.hasOwnProperty("resource")){var n=ke.opentelemetry.proto.resource.v1.Resource.verify(i.resource);if(n)return"resource."+n}if(i.scopeLogs!=null&&i.hasOwnProperty("scopeLogs")){if(!Array.isArray(i.scopeLogs))return"scopeLogs: array expected";for(var c=0;c<i.scopeLogs.length;++c){var n=ke.opentelemetry.proto.logs.v1.ScopeLogs.verify(i.scopeLogs[c]);if(n)return"scopeLogs."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.logs.v1.ResourceLogs)return i;var n=new ke.opentelemetry.proto.logs.v1.ResourceLogs;if(i.resource!=null){if(typeof i.resource!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");n.resource=ke.opentelemetry.proto.resource.v1.Resource.fromObject(i.resource)}if(i.scopeLogs){if(!Array.isArray(i.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");n.scopeLogs=[];for(var c=0;c<i.scopeLogs.length;++c){if(typeof i.scopeLogs[c]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");n.scopeLogs[c]=ke.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(i.scopeLogs[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.scopeLogs=[]),n.defaults&&(c.resource=null,c.schemaUrl=""),i.resource!=null&&i.hasOwnProperty("resource")&&(c.resource=ke.opentelemetry.proto.resource.v1.Resource.toObject(i.resource,n)),i.scopeLogs&&i.scopeLogs.length){c.scopeLogs=[];for(var u=0;u<i.scopeLogs.length;++u)c.scopeLogs[u]=ke.opentelemetry.proto.logs.v1.ScopeLogs.toObject(i.scopeLogs[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.ResourceLogs"},s})(),o.ScopeLogs=(function(){function s(a){if(this.logRecords=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.scope=null,s.prototype.logRecords=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.scope!=null&&Object.hasOwnProperty.call(i,"scope")&&ke.opentelemetry.proto.common.v1.InstrumentationScope.encode(i.scope,n.uint32(10).fork()).ldelim(),i.logRecords!=null&&i.logRecords.length)for(var c=0;c<i.logRecords.length;++c)ke.opentelemetry.proto.logs.v1.LogRecord.encode(i.logRecords[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.logs.v1.ScopeLogs;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.scope=ke.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{f.logRecords&&f.logRecords.length||(f.logRecords=[]),f.logRecords.push(ke.opentelemetry.proto.logs.v1.LogRecord.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.scope!=null&&i.hasOwnProperty("scope")){var n=ke.opentelemetry.proto.common.v1.InstrumentationScope.verify(i.scope);if(n)return"scope."+n}if(i.logRecords!=null&&i.hasOwnProperty("logRecords")){if(!Array.isArray(i.logRecords))return"logRecords: array expected";for(var c=0;c<i.logRecords.length;++c){var n=ke.opentelemetry.proto.logs.v1.LogRecord.verify(i.logRecords[c]);if(n)return"logRecords."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.logs.v1.ScopeLogs)return i;var n=new ke.opentelemetry.proto.logs.v1.ScopeLogs;if(i.scope!=null){if(typeof i.scope!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");n.scope=ke.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(i.scope)}if(i.logRecords){if(!Array.isArray(i.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");n.logRecords=[];for(var c=0;c<i.logRecords.length;++c){if(typeof i.logRecords[c]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");n.logRecords[c]=ke.opentelemetry.proto.logs.v1.LogRecord.fromObject(i.logRecords[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.logRecords=[]),n.defaults&&(c.scope=null,c.schemaUrl=""),i.scope!=null&&i.hasOwnProperty("scope")&&(c.scope=ke.opentelemetry.proto.common.v1.InstrumentationScope.toObject(i.scope,n)),i.logRecords&&i.logRecords.length){c.logRecords=[];for(var u=0;u<i.logRecords.length;++u)c.logRecords[u]=ke.opentelemetry.proto.logs.v1.LogRecord.toObject(i.logRecords[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.ScopeLogs"},s})(),o.SeverityNumber=(function(){var s={},a=Object.create(s);return a[s[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,a[s[1]="SEVERITY_NUMBER_TRACE"]=1,a[s[2]="SEVERITY_NUMBER_TRACE2"]=2,a[s[3]="SEVERITY_NUMBER_TRACE3"]=3,a[s[4]="SEVERITY_NUMBER_TRACE4"]=4,a[s[5]="SEVERITY_NUMBER_DEBUG"]=5,a[s[6]="SEVERITY_NUMBER_DEBUG2"]=6,a[s[7]="SEVERITY_NUMBER_DEBUG3"]=7,a[s[8]="SEVERITY_NUMBER_DEBUG4"]=8,a[s[9]="SEVERITY_NUMBER_INFO"]=9,a[s[10]="SEVERITY_NUMBER_INFO2"]=10,a[s[11]="SEVERITY_NUMBER_INFO3"]=11,a[s[12]="SEVERITY_NUMBER_INFO4"]=12,a[s[13]="SEVERITY_NUMBER_WARN"]=13,a[s[14]="SEVERITY_NUMBER_WARN2"]=14,a[s[15]="SEVERITY_NUMBER_WARN3"]=15,a[s[16]="SEVERITY_NUMBER_WARN4"]=16,a[s[17]="SEVERITY_NUMBER_ERROR"]=17,a[s[18]="SEVERITY_NUMBER_ERROR2"]=18,a[s[19]="SEVERITY_NUMBER_ERROR3"]=19,a[s[20]="SEVERITY_NUMBER_ERROR4"]=20,a[s[21]="SEVERITY_NUMBER_FATAL"]=21,a[s[22]="SEVERITY_NUMBER_FATAL2"]=22,a[s[23]="SEVERITY_NUMBER_FATAL3"]=23,a[s[24]="SEVERITY_NUMBER_FATAL4"]=24,a})(),o.LogRecordFlags=(function(){var s={},a=Object.create(s);return a[s[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,a[s[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,a})(),o.LogRecord=(function(){function s(a){if(this.attributes=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.timeUnixNano=null,s.prototype.observedTimeUnixNano=null,s.prototype.severityNumber=null,s.prototype.severityText=null,s.prototype.body=null,s.prototype.attributes=$e.emptyArray,s.prototype.droppedAttributesCount=null,s.prototype.flags=null,s.prototype.traceId=null,s.prototype.spanId=null,s.prototype.eventName=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=sa.create()),i.timeUnixNano!=null&&Object.hasOwnProperty.call(i,"timeUnixNano")&&n.uint32(9).fixed64(i.timeUnixNano),i.severityNumber!=null&&Object.hasOwnProperty.call(i,"severityNumber")&&n.uint32(16).int32(i.severityNumber),i.severityText!=null&&Object.hasOwnProperty.call(i,"severityText")&&n.uint32(26).string(i.severityText),i.body!=null&&Object.hasOwnProperty.call(i,"body")&&ke.opentelemetry.proto.common.v1.AnyValue.encode(i.body,n.uint32(42).fork()).ldelim(),i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)ke.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(50).fork()).ldelim();return i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&n.uint32(56).uint32(i.droppedAttributesCount),i.flags!=null&&Object.hasOwnProperty.call(i,"flags")&&n.uint32(69).fixed32(i.flags),i.traceId!=null&&Object.hasOwnProperty.call(i,"traceId")&&n.uint32(74).bytes(i.traceId),i.spanId!=null&&Object.hasOwnProperty.call(i,"spanId")&&n.uint32(82).bytes(i.spanId),i.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"observedTimeUnixNano")&&n.uint32(89).fixed64(i.observedTimeUnixNano),i.eventName!=null&&Object.hasOwnProperty.call(i,"eventName")&&n.uint32(98).string(i.eventName),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new ke.opentelemetry.proto.logs.v1.LogRecord;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.timeUnixNano=i.fixed64();break}case 11:{f.observedTimeUnixNano=i.fixed64();break}case 2:{f.severityNumber=i.int32();break}case 3:{f.severityText=i.string();break}case 5:{f.body=ke.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32());break}case 6:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(ke.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 7:{f.droppedAttributesCount=i.uint32();break}case 8:{f.flags=i.fixed32();break}case 9:{f.traceId=i.bytes();break}case 10:{f.spanId=i.bytes();break}case 12:{f.eventName=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&!$e.isInteger(i.timeUnixNano)&&!(i.timeUnixNano&&$e.isInteger(i.timeUnixNano.low)&&$e.isInteger(i.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(i.observedTimeUnixNano!=null&&i.hasOwnProperty("observedTimeUnixNano")&&!$e.isInteger(i.observedTimeUnixNano)&&!(i.observedTimeUnixNano&&$e.isInteger(i.observedTimeUnixNano.low)&&$e.isInteger(i.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(i.severityNumber!=null&&i.hasOwnProperty("severityNumber"))switch(i.severityNumber){default:return"severityNumber: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:break}if(i.severityText!=null&&i.hasOwnProperty("severityText")&&!$e.isString(i.severityText))return"severityText: string expected";if(i.body!=null&&i.hasOwnProperty("body")){var n=ke.opentelemetry.proto.common.v1.AnyValue.verify(i.body);if(n)return"body."+n}if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var c=0;c<i.attributes.length;++c){var n=ke.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[c]);if(n)return"attributes."+n}}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(i.droppedAttributesCount)?"droppedAttributesCount: integer expected":i.flags!=null&&i.hasOwnProperty("flags")&&!$e.isInteger(i.flags)?"flags: integer expected":i.traceId!=null&&i.hasOwnProperty("traceId")&&!(i.traceId&&typeof i.traceId.length=="number"||$e.isString(i.traceId))?"traceId: buffer expected":i.spanId!=null&&i.hasOwnProperty("spanId")&&!(i.spanId&&typeof i.spanId.length=="number"||$e.isString(i.spanId))?"spanId: buffer expected":i.eventName!=null&&i.hasOwnProperty("eventName")&&!$e.isString(i.eventName)?"eventName: string expected":null},s.fromObject=function(i){if(i instanceof ke.opentelemetry.proto.logs.v1.LogRecord)return i;var n=new ke.opentelemetry.proto.logs.v1.LogRecord;switch(i.timeUnixNano!=null&&($e.Long?(n.timeUnixNano=$e.Long.fromValue(i.timeUnixNano)).unsigned=!1:typeof i.timeUnixNano=="string"?n.timeUnixNano=parseInt(i.timeUnixNano,10):typeof i.timeUnixNano=="number"?n.timeUnixNano=i.timeUnixNano:typeof i.timeUnixNano=="object"&&(n.timeUnixNano=new $e.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber())),i.observedTimeUnixNano!=null&&($e.Long?(n.observedTimeUnixNano=$e.Long.fromValue(i.observedTimeUnixNano)).unsigned=!1:typeof i.observedTimeUnixNano=="string"?n.observedTimeUnixNano=parseInt(i.observedTimeUnixNano,10):typeof i.observedTimeUnixNano=="number"?n.observedTimeUnixNano=i.observedTimeUnixNano:typeof i.observedTimeUnixNano=="object"&&(n.observedTimeUnixNano=new $e.LongBits(i.observedTimeUnixNano.low>>>0,i.observedTimeUnixNano.high>>>0).toNumber())),i.severityNumber){default:if(typeof i.severityNumber=="number"){n.severityNumber=i.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:n.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:n.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:n.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:n.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:n.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:n.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:n.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:n.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:n.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:n.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:n.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:n.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:n.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:n.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:n.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:n.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:n.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:n.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:n.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:n.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:n.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:n.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:n.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:n.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:n.severityNumber=24;break}if(i.severityText!=null&&(n.severityText=String(i.severityText)),i.body!=null){if(typeof i.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");n.body=ke.opentelemetry.proto.common.v1.AnyValue.fromObject(i.body)}if(i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");n.attributes[c]=ke.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}return i.droppedAttributesCount!=null&&(n.droppedAttributesCount=i.droppedAttributesCount>>>0),i.flags!=null&&(n.flags=i.flags>>>0),i.traceId!=null&&(typeof i.traceId=="string"?$e.base64.decode(i.traceId,n.traceId=$e.newBuffer($e.base64.length(i.traceId)),0):i.traceId.length>=0&&(n.traceId=i.traceId)),i.spanId!=null&&(typeof i.spanId=="string"?$e.base64.decode(i.spanId,n.spanId=$e.newBuffer($e.base64.length(i.spanId)),0):i.spanId.length>=0&&(n.spanId=i.spanId)),i.eventName!=null&&(n.eventName=String(i.eventName)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.attributes=[]),n.defaults){if($e.Long){var u=new $e.Long(0,0,!1);c.timeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.timeUnixNano=n.longs===String?"0":0;if(c.severityNumber=n.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,c.severityText="",c.body=null,c.droppedAttributesCount=0,c.flags=0,n.bytes===String?c.traceId="":(c.traceId=[],n.bytes!==Array&&(c.traceId=$e.newBuffer(c.traceId))),n.bytes===String?c.spanId="":(c.spanId=[],n.bytes!==Array&&(c.spanId=$e.newBuffer(c.spanId))),$e.Long){var u=new $e.Long(0,0,!1);c.observedTimeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.observedTimeUnixNano=n.longs===String?"0":0;c.eventName=""}if(i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&(typeof i.timeUnixNano=="number"?c.timeUnixNano=n.longs===String?String(i.timeUnixNano):i.timeUnixNano:c.timeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.timeUnixNano):n.longs===Number?new $e.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber():i.timeUnixNano),i.severityNumber!=null&&i.hasOwnProperty("severityNumber")&&(c.severityNumber=n.enums===String?ke.opentelemetry.proto.logs.v1.SeverityNumber[i.severityNumber]===void 0?i.severityNumber:ke.opentelemetry.proto.logs.v1.SeverityNumber[i.severityNumber]:i.severityNumber),i.severityText!=null&&i.hasOwnProperty("severityText")&&(c.severityText=i.severityText),i.body!=null&&i.hasOwnProperty("body")&&(c.body=ke.opentelemetry.proto.common.v1.AnyValue.toObject(i.body,n)),i.attributes&&i.attributes.length){c.attributes=[];for(var f=0;f<i.attributes.length;++f)c.attributes[f]=ke.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[f],n)}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=i.droppedAttributesCount),i.flags!=null&&i.hasOwnProperty("flags")&&(c.flags=i.flags),i.traceId!=null&&i.hasOwnProperty("traceId")&&(c.traceId=n.bytes===String?$e.base64.encode(i.traceId,0,i.traceId.length):n.bytes===Array?Array.prototype.slice.call(i.traceId):i.traceId),i.spanId!=null&&i.hasOwnProperty("spanId")&&(c.spanId=n.bytes===String?$e.base64.encode(i.spanId,0,i.spanId.length):n.bytes===Array?Array.prototype.slice.call(i.spanId):i.spanId),i.observedTimeUnixNano!=null&&i.hasOwnProperty("observedTimeUnixNano")&&(typeof i.observedTimeUnixNano=="number"?c.observedTimeUnixNano=n.longs===String?String(i.observedTimeUnixNano):i.observedTimeUnixNano:c.observedTimeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.observedTimeUnixNano):n.longs===Number?new $e.LongBits(i.observedTimeUnixNano.low>>>0,i.observedTimeUnixNano.high>>>0).toNumber():i.observedTimeUnixNano),i.eventName!=null&&i.hasOwnProperty("eventName")&&(c.eventName=i.eventName),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Mo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.LogRecord"},s})(),o})(),r})(),e})(),t})();kGr.exports=ke});var LGr=E(COe=>{"use strict";Object.defineProperty(COe,"__esModule",{value:!0});COe.hexToBinary=void 0;function MGr(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function U8o(t){let e=new Uint8Array(t.length/2),r=0;for(let o=0;o<t.length;o+=2){let s=MGr(t.charCodeAt(o)),a=MGr(t.charCodeAt(o+1));e[r++]=s<<4|a}return e}COe.hexToBinary=U8o});var TOe=E(zx=>{"use strict";Object.defineProperty(zx,"__esModule",{value:!0});zx.getOtlpEncoder=zx.encodeAsString=zx.encodeAsLongBits=zx.toLongBits=zx.hrTimeToNanos=void 0;var F8o=n2e(),f4t=LGr();function d4t(t){let e=BigInt(1e9);return BigInt(Math.trunc(t[0]))*e+BigInt(Math.trunc(t[1]))}zx.hrTimeToNanos=d4t;function FGr(t){let e=Number(BigInt.asUintN(32,t)),r=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:r}}zx.toLongBits=FGr;function p4t(t){let e=d4t(t);return FGr(e)}zx.encodeAsLongBits=p4t;function QGr(t){return d4t(t).toString()}zx.encodeAsString=QGr;var Q8o=typeof BigInt<"u"?QGr:F8o.hrTimeToNanoseconds;function UGr(t){return t}function qGr(t){if(t!==void 0)return(0,f4t.hexToBinary)(t)}var q8o={encodeHrTime:p4t,encodeSpanContext:f4t.hexToBinary,encodeOptionalSpanContext:qGr};function H8o(t){if(t===void 0)return q8o;let e=t.useLongBits??!0,r=t.useHex??!1;return{encodeHrTime:e?p4t:Q8o,encodeSpanContext:r?UGr:f4t.hexToBinary,encodeOptionalSpanContext:r?UGr:qGr}}zx.getOtlpEncoder=H8o});var wOe=E(Kx=>{"use strict";Object.defineProperty(Kx,"__esModule",{value:!0});Kx.toAnyValue=Kx.toKeyValue=Kx.toAttributes=Kx.createInstrumentationScope=Kx.createResource=void 0;function V8o(t){let e={attributes:HGr(t.attributes),droppedAttributesCount:0},r=t.schemaUrl;return r&&r!==""&&(e.schemaUrl=r),e}Kx.createResource=V8o;function G8o(t){return{name:t.name,version:t.version}}Kx.createInstrumentationScope=G8o;function HGr(t){return Object.keys(t).map(e=>h4t(e,t[e]))}Kx.toAttributes=HGr;function h4t(t,e){return{key:t,value:m4t(e)}}Kx.toKeyValue=h4t;function m4t(t){let e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(m4t)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([r,o])=>h4t(r,o))}}:{}}Kx.toAnyValue=m4t});var g4t=E(rte=>{"use strict";Object.defineProperty(rte,"__esModule",{value:!0});rte.toLogAttributes=rte.createExportLogsServiceRequest=void 0;var j8o=TOe(),IOe=wOe();function $8o(t,e){let r=(0,j8o.getOtlpEncoder)(e);return{resourceLogs:z8o(t,r)}}rte.createExportLogsServiceRequest=$8o;function W8o(t){let e=new Map;for(let r of t){let{resource:o,instrumentationScope:{name:s,version:a="",schemaUrl:i=""}}=r,n=e.get(o);n||(n=new Map,e.set(o,n));let c=`${s}@${a}:${i}`,u=n.get(c);u||(u=[],n.set(c,u)),u.push(r)}return e}function z8o(t,e){let r=W8o(t);return Array.from(r,([o,s])=>{let a=(0,IOe.createResource)(o);return{resource:a,scopeLogs:Array.from(s,([,i])=>({scope:(0,IOe.createInstrumentationScope)(i[0].instrumentationScope),logRecords:i.map(n=>K8o(n,e)),schemaUrl:i[0].instrumentationScope.schemaUrl})),schemaUrl:a.schemaUrl}})}function K8o(t,e){return{timeUnixNano:e.encodeHrTime(t.hrTime),observedTimeUnixNano:e.encodeHrTime(t.hrTimeObserved),severityNumber:t.severityNumber,severityText:t.severityText,body:(0,IOe.toAnyValue)(t.body),eventName:t.eventName,attributes:VGr(t.attributes),droppedAttributesCount:t.droppedAttributesCount,flags:t.spanContext?.traceFlags,traceId:e.encodeOptionalSpanContext(t.spanContext?.traceId),spanId:e.encodeOptionalSpanContext(t.spanContext?.spanId)}}function VGr(t){return Object.keys(t).map(e=>(0,IOe.toKeyValue)(e,t[e]))}rte.toLogAttributes=VGr});var jGr=E(DOe=>{"use strict";Object.defineProperty(DOe,"__esModule",{value:!0});DOe.ProtobufLogsSerializer=void 0;var GGr=_Oe(),Y8o=g4t(),J8o=GGr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,X8o=GGr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;DOe.ProtobufLogsSerializer={serializeRequest:t=>{let e=(0,Y8o.createExportLogsServiceRequest)(t);return X8o.encode(e).finish()},deserializeResponse:t=>J8o.decode(t)}});var $Gr=E(OOe=>{"use strict";Object.defineProperty(OOe,"__esModule",{value:!0});OOe.ProtobufLogsSerializer=void 0;var Z8o=jGr();Object.defineProperty(OOe,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return Z8o.ProtobufLogsSerializer}})});var ROe=E(a2e=>{"use strict";Object.defineProperty(a2e,"__esModule",{value:!0});a2e.AggregationTemporality=void 0;var eDo;(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE"})(eDo=a2e.AggregationTemporality||(a2e.AggregationTemporality={}))});var bk=E(vk=>{"use strict";Object.defineProperty(vk,"__esModule",{value:!0});vk.DataPointType=vk.InstrumentType=void 0;var tDo;(function(t){t.COUNTER="COUNTER",t.GAUGE="GAUGE",t.HISTOGRAM="HISTOGRAM",t.UP_DOWN_COUNTER="UP_DOWN_COUNTER",t.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",t.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",t.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(tDo=vk.InstrumentType||(vk.InstrumentType={}));var rDo;(function(t){t[t.HISTOGRAM=0]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",t[t.GAUGE=2]="GAUGE",t[t.SUM=3]="SUM"})(rDo=vk.DataPointType||(vk.DataPointType={}))});var G4=E(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.equalsCaseInsensitive=rp.binarySearchUB=rp.setEquals=rp.FlatMap=rp.isPromiseAllSettledRejectionResult=rp.PromiseAllSettled=rp.callWithTimeout=rp.TimeoutError=rp.instrumentationScopeId=rp.hashAttributes=rp.isNotNullish=void 0;function nDo(t){return t!=null}rp.isNotNullish=nDo;function iDo(t){let e=Object.keys(t);return e.length===0?"":(e=e.sort(),JSON.stringify(e.map(r=>[r,t[r]])))}rp.hashAttributes=iDo;function oDo(t){return`${t.name}:${t.version??""}:${t.schemaUrl??""}`}rp.instrumentationScopeId=oDo;var NOe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};rp.TimeoutError=NOe;function sDo(t,e){let r,o=new Promise(function(a,i){r=setTimeout(function(){i(new NOe("Operation timed out."))},e)});return Promise.race([t,o]).then(s=>(clearTimeout(r),s),s=>{throw clearTimeout(r),s})}rp.callWithTimeout=sDo;async function aDo(t){return Promise.all(t.map(async e=>{try{return{status:"fulfilled",value:await e}}catch(r){return{status:"rejected",reason:r}}}))}rp.PromiseAllSettled=aDo;function cDo(t){return t.status==="rejected"}rp.isPromiseAllSettledRejectionResult=cDo;function lDo(t,e){let r=[];return t.forEach(o=>{r.push(...e(o))}),r}rp.FlatMap=lDo;function uDo(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}rp.setEquals=uDo;function fDo(t,e){let r=0,o=t.length-1,s=t.length;for(;o>=r;){let a=r+Math.trunc((o-r)/2);t[a]<e?r=a+1:(s=a,o=a-1)}return s}rp.binarySearchUB=fDo;function dDo(t,e){return t.toLowerCase()===e.toLowerCase()}rp.equalsCaseInsensitive=dDo});var nte=E(c2e=>{"use strict";Object.defineProperty(c2e,"__esModule",{value:!0});c2e.AggregatorKind=void 0;var pDo;(function(t){t[t.DROP=0]="DROP",t[t.SUM=1]="SUM",t[t.LAST_VALUE=2]="LAST_VALUE",t[t.HISTOGRAM=3]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(pDo=c2e.AggregatorKind||(c2e.AggregatorKind={}))});var WGr=E(POe=>{"use strict";Object.defineProperty(POe,"__esModule",{value:!0});POe.DropAggregator=void 0;var hDo=nte(),y4t=class{kind=hDo.AggregatorKind.DROP;createAccumulation(){}merge(e,r){}diff(e,r){}toMetricData(e,r,o,s){}};POe.DropAggregator=y4t});var zGr=E(ote=>{"use strict";Object.defineProperty(ote,"__esModule",{value:!0});ote.HistogramAggregator=ote.HistogramAccumulation=void 0;var mDo=nte(),l2e=bk(),gDo=G4();function yDo(t){let e=t.map(()=>0);return e.push(0),{buckets:{boundaries:t,counts:e},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var ite=class{startTime;_boundaries;_recordMinMax;_current;constructor(e,r,o=!0,s=yDo(r)){this.startTime=e,this._boundaries=r,this._recordMinMax=o,this._current=s}record(e){if(Number.isNaN(e))return;this._current.count+=1,this._current.sum+=e,this._recordMinMax&&(this._current.min=Math.min(e,this._current.min),this._current.max=Math.max(e,this._current.max),this._current.hasMinMax=!0);let r=(0,gDo.binarySearchUB)(this._boundaries,e);this._current.buckets.counts[r]+=1}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};ote.HistogramAccumulation=ite;var A4t=class{_boundaries;_recordMinMax;kind=mDo.AggregatorKind.HISTOGRAM;constructor(e,r){this._boundaries=e,this._recordMinMax=r}createAccumulation(e){return new ite(e,this._boundaries,this._recordMinMax)}merge(e,r){let o=e.toPointValue(),s=r.toPointValue(),a=o.buckets.counts,i=s.buckets.counts,n=new Array(a.length);for(let f=0;f<a.length;f++)n[f]=a[f]+i[f];let c=1/0,u=-1/0;return this._recordMinMax&&(o.hasMinMax&&s.hasMinMax?(c=Math.min(o.min,s.min),u=Math.max(o.max,s.max)):o.hasMinMax?(c=o.min,u=o.max):s.hasMinMax&&(c=s.min,u=s.max)),new ite(e.startTime,o.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:o.buckets.boundaries,counts:n},count:o.count+s.count,sum:o.sum+s.sum,hasMinMax:this._recordMinMax&&(o.hasMinMax||s.hasMinMax),min:c,max:u})}diff(e,r){let o=e.toPointValue(),s=r.toPointValue(),a=o.buckets.counts,i=s.buckets.counts,n=new Array(a.length);for(let c=0;c<a.length;c++)n[c]=i[c]-a[c];return new ite(r.startTime,o.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:o.buckets.boundaries,counts:n},count:s.count-o.count,sum:s.sum-o.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:l2e.DataPointType.HISTOGRAM,dataPoints:o.map(([a,i])=>{let n=i.toPointValue(),c=e.type===l2e.InstrumentType.GAUGE||e.type===l2e.InstrumentType.UP_DOWN_COUNTER||e.type===l2e.InstrumentType.OBSERVABLE_GAUGE||e.type===l2e.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:a,startTime:i.startTime,endTime:s,value:{min:n.hasMinMax?n.min:void 0,max:n.hasMinMax?n.max:void 0,sum:c?void 0:n.sum,buckets:n.buckets,count:n.count}}})}}};ote.HistogramAggregator=A4t});var KGr=E(BOe=>{"use strict";Object.defineProperty(BOe,"__esModule",{value:!0});BOe.Buckets=void 0;var v4t=class t{backing;indexBase;indexStart;indexEnd;constructor(e=new b4t,r=0,o=0,s=0){this.backing=e,this.indexBase=r,this.indexStart=o,this.indexEnd=s}get offset(){return this.indexStart}get length(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(e,r)=>this.at(r))}at(e){let r=this.indexBase-this.indexStart;return e<r&&(e+=this.backing.length),e-=r,this.backing.countAt(e)}incrementBucket(e,r){this.backing.increment(e,r)}decrementBucket(e,r){this.backing.decrement(e,r)}trim(){for(let e=0;e<this.length;e++)if(this.at(e)!==0){this.indexStart+=e;break}else if(e===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let e=this.length-1;e>=0;e--)if(this.at(e)!==0){this.indexEnd-=this.length-e-1;break}this._rotate()}downscale(e){this._rotate();let r=1+this.indexEnd-this.indexStart,o=1<<e,s=0,a=0;for(let i=this.indexStart;i<=this.indexEnd;){let n=i%o;n<0&&(n+=o);for(let c=n;c<o&&s<r;c++)this._relocateBucket(a,s),s++,i++;a++}this.indexStart>>=e,this.indexEnd>>=e,this.indexBase=this.indexStart}clone(){return new t(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let e=this.indexBase-this.indexStart;e!==0&&(e>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,e),this.backing.reverse(e,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+e)),this.indexBase=this.indexStart)}_relocateBucket(e,r){e!==r&&this.incrementBucket(e,this.backing.emptyBucket(r))}};BOe.Buckets=v4t;var b4t=class t{_counts;constructor(e=[0]){this._counts=e}get length(){return this._counts.length}countAt(e){return this._counts[e]}growTo(e,r,o){let s=new Array(e).fill(0);s.splice(o,this._counts.length-r,...this._counts.slice(r)),s.splice(0,r,...this._counts.slice(0,r)),this._counts=s}reverse(e,r){let o=Math.floor((e+r)/2)-e;for(let s=0;s<o;s++){let a=this._counts[e+s];this._counts[e+s]=this._counts[r-s-1],this._counts[r-s-1]=a}}emptyBucket(e){let r=this._counts[e];return this._counts[e]=0,r}increment(e,r){this._counts[e]+=r}decrement(e,r){this._counts[e]>=r?this._counts[e]-=r:this._counts[e]=0}clone(){return new t([...this._counts])}}});var S4t=E(Iv=>{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0});Iv.getSignificand=Iv.getNormalBase2=Iv.MIN_VALUE=Iv.MAX_NORMAL_EXPONENT=Iv.MIN_NORMAL_EXPONENT=Iv.SIGNIFICAND_WIDTH=void 0;Iv.SIGNIFICAND_WIDTH=52;var ADo=2146435072,vDo=1048575,E4t=1023;Iv.MIN_NORMAL_EXPONENT=-E4t+1;Iv.MAX_NORMAL_EXPONENT=E4t;Iv.MIN_VALUE=Math.pow(2,-1022);function bDo(t){let e=new DataView(new ArrayBuffer(8));return e.setFloat64(0,t),((e.getUint32(0)&ADo)>>20)-E4t}Iv.getNormalBase2=bDo;function EDo(t){let e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);let r=e.getUint32(0),o=e.getUint32(4);return(r&vDo)*Math.pow(2,32)+o}Iv.getSignificand=EDo});var kOe=E(ste=>{"use strict";Object.defineProperty(ste,"__esModule",{value:!0});ste.nextGreaterSquare=ste.ldexp=void 0;function SDo(t,e){return t===0||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||Number.isNaN(t)?t:t*Math.pow(2,e)}ste.ldexp=SDo;function xDo(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t++,t}ste.nextGreaterSquare=xDo});var LOe=E(MOe=>{"use strict";Object.defineProperty(MOe,"__esModule",{value:!0});MOe.MappingError=void 0;var x4t=class extends Error{};MOe.MappingError=x4t});var JGr=E(UOe=>{"use strict";Object.defineProperty(UOe,"__esModule",{value:!0});UOe.ExponentMapping=void 0;var ate=S4t(),_Do=kOe(),YGr=LOe(),_4t=class{_shift;constructor(e){this._shift=-e}mapToIndex(e){if(e<ate.MIN_VALUE)return this._minNormalLowerBoundaryIndex();let r=ate.getNormalBase2(e),o=this._rightShift(ate.getSignificand(e)-1,ate.SIGNIFICAND_WIDTH);return r+o>>this._shift}lowerBoundary(e){let r=this._minNormalLowerBoundaryIndex();if(e<r)throw new YGr.MappingError(`underflow: ${e} is < minimum lower boundary: ${r}`);let o=this._maxNormalLowerBoundaryIndex();if(e>o)throw new YGr.MappingError(`overflow: ${e} is > maximum lower boundary: ${o}`);return _Do.ldexp(1,e<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let e=ate.MIN_NORMAL_EXPONENT>>this._shift;return this._shift<2&&e--,e}_maxNormalLowerBoundaryIndex(){return ate.MAX_NORMAL_EXPONENT>>this._shift}_rightShift(e,r){return Math.floor(e*Math.pow(2,-r))}};UOe.ExponentMapping=_4t});var ejr=E(FOe=>{"use strict";Object.defineProperty(FOe,"__esModule",{value:!0});FOe.LogarithmMapping=void 0;var cte=S4t(),XGr=kOe(),ZGr=LOe(),C4t=class{_scale;_scaleFactor;_inverseFactor;constructor(e){this._scale=e,this._scaleFactor=XGr.ldexp(Math.LOG2E,e),this._inverseFactor=XGr.ldexp(Math.LN2,-e)}mapToIndex(e){if(e<=cte.MIN_VALUE)return this._minNormalLowerBoundaryIndex()-1;if(cte.getSignificand(e)===0)return(cte.getNormalBase2(e)<<this._scale)-1;let r=Math.floor(Math.log(e)*this._scaleFactor),o=this._maxNormalLowerBoundaryIndex();return r>=o?o:r}lowerBoundary(e){let r=this._maxNormalLowerBoundaryIndex();if(e>=r){if(e===r)return 2*Math.exp((e-(1<<this._scale))/this._scaleFactor);throw new ZGr.MappingError(`overflow: ${e} is > maximum lower boundary: ${r}`)}let o=this._minNormalLowerBoundaryIndex();if(e<=o){if(e===o)return cte.MIN_VALUE;if(e===o-1)return Math.exp((e+(1<<this._scale))/this._scaleFactor)/2;throw new ZGr.MappingError(`overflow: ${e} is < minimum lower boundary: ${o}`)}return Math.exp(e*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return cte.MIN_NORMAL_EXPONENT<<this._scale}_maxNormalLowerBoundaryIndex(){return(cte.MAX_NORMAL_EXPONENT+1<<this._scale)-1}};FOe.LogarithmMapping=C4t});var njr=E(QOe=>{"use strict";Object.defineProperty(QOe,"__esModule",{value:!0});QOe.getMapping=void 0;var CDo=JGr(),TDo=ejr(),wDo=LOe(),tjr=-10,rjr=20,IDo=Array.from({length:31},(t,e)=>e>10?new TDo.LogarithmMapping(e-10):new CDo.ExponentMapping(e-10));function DDo(t){if(t>rjr||t<tjr)throw new wDo.MappingError(`expected scale >= ${tjr} && <= ${rjr}, got: ${t}`);return IDo[t+10]}QOe.getMapping=DDo});var sjr=E(ute=>{"use strict";Object.defineProperty(ute,"__esModule",{value:!0});ute.ExponentialHistogramAggregator=ute.ExponentialHistogramAccumulation=void 0;var ODo=nte(),u2e=bk(),RDo=(ut(),nt(xt)),ijr=KGr(),ojr=njr(),NDo=kOe(),lte=class t{low;high;static combine(e,r){return new t(Math.min(e.low,r.low),Math.max(e.high,r.high))}constructor(e,r){this.low=e,this.high=r}},PDo=20,BDo=160,T4t=2,qOe=class t{startTime;_maxSize;_recordMinMax;_sum;_count;_zeroCount;_min;_max;_positive;_negative;_mapping;constructor(e,r=BDo,o=!0,s=0,a=0,i=0,n=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,u=new ijr.Buckets,f=new ijr.Buckets,d=(0,ojr.getMapping)(PDo)){this.startTime=e,this._maxSize=r,this._recordMinMax=o,this._sum=s,this._count=a,this._zeroCount=i,this._min=n,this._max=c,this._positive=u,this._negative=f,this._mapping=d,this._maxSize<T4t&&(RDo.diag.warn(`Exponential Histogram Max Size set to ${this._maxSize}, changing to the minimum size of: ${T4t}`),this._maxSize=T4t)}record(e){this.updateByIncrement(e,1)}setStartTime(e){this.startTime=e}toPointValue(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}}get sum(){return this._sum}get min(){return this._min}get max(){return this._max}get count(){return this._count}get zeroCount(){return this._zeroCount}get scale(){return this._count===this._zeroCount?0:this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(e,r){if(!Number.isNaN(e)){if(e>this._max&&(this._max=e),e<this._min&&(this._min=e),this._count+=r,e===0){this._zeroCount+=r;return}this._sum+=e*r,e>0?this._updateBuckets(this._positive,e,r):this._updateBuckets(this._negative,-e,r)}}merge(e){this._count===0?(this._min=e.min,this._max=e.max):e.count!==0&&(e.min<this.min&&(this._min=e.min),e.max>this.max&&(this._max=e.max)),this.startTime=e.startTime,this._sum+=e.sum,this._count+=e.count,this._zeroCount+=e.zeroCount;let r=this._minScale(e);this._downscale(this.scale-r),this._mergeBuckets(this.positive,e,e.positive,r),this._mergeBuckets(this.negative,e,e.negative,r)}diff(e){this._min=1/0,this._max=-1/0,this._sum-=e.sum,this._count-=e.count,this._zeroCount-=e.zeroCount;let r=this._minScale(e);this._downscale(this.scale-r),this._diffBuckets(this.positive,e,e.positive,r),this._diffBuckets(this.negative,e,e.negative,r)}clone(){return new t(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)}_updateBuckets(e,r,o){let s=this._mapping.mapToIndex(r),a=!1,i=0,n=0;if(e.length===0?(e.indexStart=s,e.indexEnd=e.indexStart,e.indexBase=e.indexStart):s<e.indexStart&&e.indexEnd-s>=this._maxSize?(a=!0,n=s,i=e.indexEnd):s>e.indexEnd&&s-e.indexStart>=this._maxSize&&(a=!0,n=e.indexStart,i=s),a){let c=this._changeScale(i,n);this._downscale(c),s=this._mapping.mapToIndex(r)}this._incrementIndexBy(e,s,o)}_incrementIndexBy(e,r,o){if(o===0)return;if(e.length===0&&(e.indexStart=e.indexEnd=e.indexBase=r),r<e.indexStart){let a=e.indexEnd-r;a>=e.backing.length&&this._grow(e,a+1),e.indexStart=r}else if(r>e.indexEnd){let a=r-e.indexStart;a>=e.backing.length&&this._grow(e,a+1),e.indexEnd=r}let s=r-e.indexBase;s<0&&(s+=e.backing.length),e.incrementBucket(s,o)}_grow(e,r){let o=e.backing.length,s=e.indexBase-e.indexStart,a=o-s,i=(0,NDo.nextGreaterSquare)(r);i>this._maxSize&&(i=this._maxSize);let n=i-s;e.backing.growTo(i,a,n)}_changeScale(e,r){let o=0;for(;e-r>=this._maxSize;)e>>=1,r>>=1,o++;return o}_downscale(e){if(e===0)return;if(e<0)throw new Error(`impossible change of scale: ${this.scale}`);let r=this._mapping.scale-e;this._positive.downscale(e),this._negative.downscale(e),this._mapping=(0,ojr.getMapping)(r)}_minScale(e){let r=Math.min(this.scale,e.scale),o=lte.combine(this._highLowAtScale(this.positive,this.scale,r),this._highLowAtScale(e.positive,e.scale,r)),s=lte.combine(this._highLowAtScale(this.negative,this.scale,r),this._highLowAtScale(e.negative,e.scale,r));return Math.min(r-this._changeScale(o.high,o.low),r-this._changeScale(s.high,s.low))}_highLowAtScale(e,r,o){if(e.length===0)return new lte(0,-1);let s=r-o;return new lte(e.indexStart>>s,e.indexEnd>>s)}_mergeBuckets(e,r,o,s){let a=o.offset,i=r.scale-s;for(let n=0;n<o.length;n++)this._incrementIndexBy(e,a+n>>i,o.at(n))}_diffBuckets(e,r,o,s){let a=o.offset,i=r.scale-s;for(let n=0;n<o.length;n++){let u=(a+n>>i)-e.indexBase;u<0&&(u+=e.backing.length),e.decrementBucket(u,o.at(n))}e.trim()}};ute.ExponentialHistogramAccumulation=qOe;var w4t=class{_maxSize;_recordMinMax;kind=ODo.AggregatorKind.EXPONENTIAL_HISTOGRAM;constructor(e,r){this._maxSize=e,this._recordMinMax=r}createAccumulation(e){return new qOe(e,this._maxSize,this._recordMinMax)}merge(e,r){let o=r.clone();return o.merge(e),o}diff(e,r){let o=r.clone();return o.diff(e),o}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:u2e.DataPointType.EXPONENTIAL_HISTOGRAM,dataPoints:o.map(([a,i])=>{let n=i.toPointValue(),c=e.type===u2e.InstrumentType.GAUGE||e.type===u2e.InstrumentType.UP_DOWN_COUNTER||e.type===u2e.InstrumentType.OBSERVABLE_GAUGE||e.type===u2e.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:a,startTime:i.startTime,endTime:s,value:{min:n.hasMinMax?n.min:void 0,max:n.hasMinMax?n.max:void 0,sum:c?void 0:n.sum,positive:{offset:n.positive.offset,bucketCounts:n.positive.bucketCounts},negative:{offset:n.negative.offset,bucketCounts:n.negative.bucketCounts},count:n.count,scale:n.scale,zeroCount:n.zeroCount}}})}}};ute.ExponentialHistogramAggregator=w4t});var f2e=E(Ek=>{"use strict";Object.defineProperty(Ek,"__esModule",{value:!0});Ek.isTracingSuppressed=Ek.unsuppressTracing=Ek.suppressTracing=void 0;var kDo=(ut(),nt(xt)),I4t=(0,kDo.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function MDo(t){return t.setValue(I4t,!0)}Ek.suppressTracing=MDo;function LDo(t){return t.deleteValue(I4t)}Ek.unsuppressTracing=LDo;function UDo(t){return t.getValue(I4t)===!0}Ek.isTracingSuppressed=UDo});var D4t=E(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});ey.BAGGAGE_MAX_TOTAL_LENGTH=ey.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=ey.BAGGAGE_MAX_NAME_VALUE_PAIRS=ey.BAGGAGE_HEADER=ey.BAGGAGE_ITEMS_SEPARATOR=ey.BAGGAGE_PROPERTIES_SEPARATOR=ey.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;ey.BAGGAGE_KEY_PAIR_SEPARATOR="=";ey.BAGGAGE_PROPERTIES_SEPARATOR=";";ey.BAGGAGE_ITEMS_SEPARATOR=",";ey.BAGGAGE_HEADER="baggage";ey.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;ey.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;ey.BAGGAGE_MAX_TOTAL_LENGTH=8192});var O4t=E(J5=>{"use strict";Object.defineProperty(J5,"__esModule",{value:!0});J5.parseKeyPairsIntoRecord=J5.parsePairKeyValue=J5.getKeyPairs=J5.serializeKeyPairs=void 0;var FDo=(ut(),nt(xt)),oV=D4t();function QDo(t){return t.reduce((e,r)=>{let o=`${e}${e!==""?oV.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return o.length>oV.BAGGAGE_MAX_TOTAL_LENGTH?e:o},"")}J5.serializeKeyPairs=QDo;function qDo(t){return t.getAllEntries().map(([e,r])=>{let o=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(o+=oV.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),o})}J5.getKeyPairs=qDo;function ajr(t){let e=t.split(oV.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let o=r.indexOf(oV.BAGGAGE_KEY_PAIR_SEPARATOR);if(o<=0)return;let s=decodeURIComponent(r.substring(0,o).trim()),a=decodeURIComponent(r.substring(o+1).trim()),i;return e.length>0&&(i=(0,FDo.baggageEntryMetadataFromString)(e.join(oV.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:a,metadata:i}}J5.parsePairKeyValue=ajr;function HDo(t){let e={};return typeof t=="string"&&t.length>0&&t.split(oV.BAGGAGE_ITEMS_SEPARATOR).forEach(r=>{let o=ajr(r);o!==void 0&&o.value.length>0&&(e[o.key]=o.value)}),e}J5.parseKeyPairsIntoRecord=HDo});var cjr=E(HOe=>{"use strict";Object.defineProperty(HOe,"__esModule",{value:!0});HOe.W3CBaggagePropagator=void 0;var R4t=(ut(),nt(xt)),VDo=f2e(),sV=D4t(),N4t=O4t(),P4t=class{inject(e,r,o){let s=R4t.propagation.getBaggage(e);if(!s||(0,VDo.isTracingSuppressed)(e))return;let a=(0,N4t.getKeyPairs)(s).filter(n=>n.length<=sV.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,sV.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,N4t.serializeKeyPairs)(a);i.length>0&&o.set(r,sV.BAGGAGE_HEADER,i)}extract(e,r,o){let s=o.get(r,sV.BAGGAGE_HEADER),a=Array.isArray(s)?s.join(sV.BAGGAGE_ITEMS_SEPARATOR):s;if(!a)return e;let i={};return a.length===0||(a.split(sV.BAGGAGE_ITEMS_SEPARATOR).forEach(c=>{let u=(0,N4t.parsePairKeyValue)(c);if(u){let f={value:u.value};u.metadata&&(f.metadata=u.metadata),i[u.key]=f}}),Object.entries(i).length===0)?e:R4t.propagation.setBaggage(e,R4t.propagation.createBaggage(i))}fields(){return[sV.BAGGAGE_HEADER]}};HOe.W3CBaggagePropagator=P4t});var ljr=E(VOe=>{"use strict";Object.defineProperty(VOe,"__esModule",{value:!0});VOe.AnchoredClock=void 0;var B4t=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,r){this._monotonicClock=r,this._epochMillis=e.now(),this._performanceMillis=r.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};VOe.AnchoredClock=B4t});var hjr=E(Sk=>{"use strict";Object.defineProperty(Sk,"__esModule",{value:!0});Sk.isAttributeValue=Sk.isAttributeKey=Sk.sanitizeAttributes=void 0;var ujr=(ut(),nt(xt));function GDo(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,o]of Object.entries(t)){if(!fjr(r)){ujr.diag.warn(`Invalid attribute key: ${r}`);continue}if(!djr(o)){ujr.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(o)?e[r]=o.slice():e[r]=o}return e}Sk.sanitizeAttributes=GDo;function fjr(t){return typeof t=="string"&&t.length>0}Sk.isAttributeKey=fjr;function djr(t){return t==null?!0:Array.isArray(t)?jDo(t):pjr(t)}Sk.isAttributeValue=djr;function jDo(t){let e;for(let r of t)if(r!=null){if(!e){if(pjr(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function pjr(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var k4t=E(GOe=>{"use strict";Object.defineProperty(GOe,"__esModule",{value:!0});GOe.loggingErrorHandler=void 0;var $Do=(ut(),nt(xt));function WDo(){return t=>{$Do.diag.error(zDo(t))}}GOe.loggingErrorHandler=WDo;function zDo(t){return typeof t=="string"?t:JSON.stringify(KDo(t))}function KDo(t){let e={},r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(o=>{if(e[o])return;let s=r[o];s&&(e[o]=String(s))}),r=Object.getPrototypeOf(r);return e}});var gjr=E(fte=>{"use strict";Object.defineProperty(fte,"__esModule",{value:!0});fte.globalErrorHandler=fte.setGlobalErrorHandler=void 0;var YDo=k4t(),mjr=(0,YDo.loggingErrorHandler)();function JDo(t){mjr=t}fte.setGlobalErrorHandler=JDo;function XDo(t){try{mjr(t)}catch{}}fte.globalErrorHandler=XDo});var bjr=E(X5=>{"use strict";Object.defineProperty(X5,"__esModule",{value:!0});X5.getStringListFromEnv=X5.getBooleanFromEnv=X5.getStringFromEnv=X5.getNumberFromEnv=void 0;var yjr=(ut(),nt(xt)),Ajr=me("util");function ZDo(t){let e=process.env[t];if(e==null||e.trim()==="")return;let r=Number(e);if(isNaN(r)){yjr.diag.warn(`Unknown value ${(0,Ajr.inspect)(e)} for ${t}, expected a number, using defaults`);return}return r}X5.getNumberFromEnv=ZDo;function vjr(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}X5.getStringFromEnv=vjr;function e9o(t){let e=process.env[t]?.trim().toLowerCase();return e==null||e===""?!1:e==="true"?!0:(e==="false"||yjr.diag.warn(`Unknown value ${(0,Ajr.inspect)(e)} for ${t}, expected 'true' or 'false', falling back to 'false' (default)`),!1)}X5.getBooleanFromEnv=e9o;function t9o(t){return vjr(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}X5.getStringListFromEnv=t9o});var Ejr=E(jOe=>{"use strict";Object.defineProperty(jOe,"__esModule",{value:!0});jOe._globalThis=void 0;jOe._globalThis=typeof globalThis=="object"?globalThis:global});var Sjr=E($Oe=>{"use strict";Object.defineProperty($Oe,"__esModule",{value:!0});$Oe.otperformance=void 0;var r9o=me("perf_hooks");$Oe.otperformance=r9o.performance});var xjr=E(WOe=>{"use strict";Object.defineProperty(WOe,"__esModule",{value:!0});WOe.VERSION=void 0;WOe.VERSION="2.1.0"});var _jr=E(zOe=>{"use strict";Object.defineProperty(zOe,"__esModule",{value:!0});zOe.ATTR_PROCESS_RUNTIME_NAME=void 0;zOe.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var Cjr=E(YOe=>{"use strict";Object.defineProperty(YOe,"__esModule",{value:!0});YOe.SDK_INFO=void 0;var n9o=xjr(),KOe=(Wl(),nt(Uu)),i9o=_jr();YOe.SDK_INFO={[KOe.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[i9o.ATTR_PROCESS_RUNTIME_NAME]:"node",[KOe.ATTR_TELEMETRY_SDK_LANGUAGE]:KOe.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[KOe.ATTR_TELEMETRY_SDK_VERSION]:n9o.VERSION}});var Tjr=E(JOe=>{"use strict";Object.defineProperty(JOe,"__esModule",{value:!0});JOe.unrefTimer=void 0;function o9o(t){t.unref()}JOe.unrefTimer=o9o});var wjr=E(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});o0.unrefTimer=o0.SDK_INFO=o0.otperformance=o0._globalThis=o0.getStringListFromEnv=o0.getNumberFromEnv=o0.getBooleanFromEnv=o0.getStringFromEnv=void 0;var XOe=bjr();Object.defineProperty(o0,"getStringFromEnv",{enumerable:!0,get:function(){return XOe.getStringFromEnv}});Object.defineProperty(o0,"getBooleanFromEnv",{enumerable:!0,get:function(){return XOe.getBooleanFromEnv}});Object.defineProperty(o0,"getNumberFromEnv",{enumerable:!0,get:function(){return XOe.getNumberFromEnv}});Object.defineProperty(o0,"getStringListFromEnv",{enumerable:!0,get:function(){return XOe.getStringListFromEnv}});var s9o=Ejr();Object.defineProperty(o0,"_globalThis",{enumerable:!0,get:function(){return s9o._globalThis}});var a9o=Sjr();Object.defineProperty(o0,"otperformance",{enumerable:!0,get:function(){return a9o.otperformance}});var c9o=Cjr();Object.defineProperty(o0,"SDK_INFO",{enumerable:!0,get:function(){return c9o.SDK_INFO}});var l9o=Tjr();Object.defineProperty(o0,"unrefTimer",{enumerable:!0,get:function(){return l9o.unrefTimer}})});var M4t=E(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});s0.getStringListFromEnv=s0.getNumberFromEnv=s0.getStringFromEnv=s0.getBooleanFromEnv=s0.unrefTimer=s0.otperformance=s0._globalThis=s0.SDK_INFO=void 0;var xk=wjr();Object.defineProperty(s0,"SDK_INFO",{enumerable:!0,get:function(){return xk.SDK_INFO}});Object.defineProperty(s0,"_globalThis",{enumerable:!0,get:function(){return xk._globalThis}});Object.defineProperty(s0,"otperformance",{enumerable:!0,get:function(){return xk.otperformance}});Object.defineProperty(s0,"unrefTimer",{enumerable:!0,get:function(){return xk.unrefTimer}});Object.defineProperty(s0,"getBooleanFromEnv",{enumerable:!0,get:function(){return xk.getBooleanFromEnv}});Object.defineProperty(s0,"getStringFromEnv",{enumerable:!0,get:function(){return xk.getStringFromEnv}});Object.defineProperty(s0,"getNumberFromEnv",{enumerable:!0,get:function(){return xk.getNumberFromEnv}});Object.defineProperty(s0,"getStringListFromEnv",{enumerable:!0,get:function(){return xk.getStringListFromEnv}})});var Rjr=E(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.addHrTimes=Rf.isTimeInput=Rf.isTimeInputHrTime=Rf.hrTimeToMicroseconds=Rf.hrTimeToMilliseconds=Rf.hrTimeToNanoseconds=Rf.hrTimeToTimeStamp=Rf.hrTimeDuration=Rf.timeInputToHrTime=Rf.hrTime=Rf.getTimeOrigin=Rf.millisToHrTime=void 0;var L4t=M4t(),Ijr=9,u9o=6,f9o=Math.pow(10,u9o),ZOe=Math.pow(10,Ijr);function d2e(t){let e=t/1e3,r=Math.trunc(e),o=Math.round(t%1e3*f9o);return[r,o]}Rf.millisToHrTime=d2e;function U4t(){let t=L4t.otperformance.timeOrigin;if(typeof t!="number"){let e=L4t.otperformance;t=e.timing&&e.timing.fetchStart}return t}Rf.getTimeOrigin=U4t;function Djr(t){let e=d2e(U4t()),r=d2e(typeof t=="number"?t:L4t.otperformance.now());return Ojr(e,r)}Rf.hrTime=Djr;function d9o(t){if(F4t(t))return t;if(typeof t=="number")return t<U4t()?Djr(t):d2e(t);if(t instanceof Date)return d2e(t.getTime());throw TypeError("Invalid input type")}Rf.timeInputToHrTime=d9o;function p9o(t,e){let r=e[0]-t[0],o=e[1]-t[1];return o<0&&(r-=1,o+=ZOe),[r,o]}Rf.hrTimeDuration=p9o;function h9o(t){let e=Ijr,r=`${"0".repeat(e)}${t[1]}Z`,o=r.substring(r.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",o)}Rf.hrTimeToTimeStamp=h9o;function m9o(t){return t[0]*ZOe+t[1]}Rf.hrTimeToNanoseconds=m9o;function g9o(t){return t[0]*1e3+t[1]/1e6}Rf.hrTimeToMilliseconds=g9o;function y9o(t){return t[0]*1e6+t[1]/1e3}Rf.hrTimeToMicroseconds=y9o;function F4t(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}Rf.isTimeInputHrTime=F4t;function A9o(t){return F4t(t)||typeof t=="number"||t instanceof Date}Rf.isTimeInput=A9o;function Ojr(t,e){let r=[t[0]+e[0],t[1]+e[1]];return r[1]>=ZOe&&(r[1]-=ZOe,r[0]+=1),r}Rf.addHrTimes=Ojr});var Njr=E(p2e=>{"use strict";Object.defineProperty(p2e,"__esModule",{value:!0});p2e.ExportResultCode=void 0;var v9o;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(v9o=p2e.ExportResultCode||(p2e.ExportResultCode={}))});var Bjr=E(eRe=>{"use strict";Object.defineProperty(eRe,"__esModule",{value:!0});eRe.CompositePropagator=void 0;var Pjr=(ut(),nt(xt)),Q4t=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,o)=>r.concat(o),[])))}inject(e,r,o){for(let s of this._propagators)try{s.inject(e,r,o)}catch(a){Pjr.diag.warn(`Failed to inject with ${s.constructor.name}. Err: ${a.message}`)}}extract(e,r,o){return this._propagators.reduce((s,a)=>{try{return a.extract(s,r,o)}catch(i){Pjr.diag.warn(`Failed to extract with ${a.constructor.name}. Err: ${i.message}`)}return s},e)}fields(){return this._fields.slice()}};eRe.CompositePropagator=Q4t});var kjr=E(dte=>{"use strict";Object.defineProperty(dte,"__esModule",{value:!0});dte.validateValue=dte.validateKey=void 0;var q4t="[_0-9a-z-*/]",b9o=`[a-z]${q4t}{0,255}`,E9o=`[a-z0-9]${q4t}{0,240}@[a-z]${q4t}{0,13}`,S9o=new RegExp(`^(?:${b9o}|${E9o})$`),x9o=/^[ -~]{0,255}[!-~]$/,_9o=/,|=/;function C9o(t){return S9o.test(t)}dte.validateKey=C9o;function T9o(t){return x9o.test(t)&&!_9o.test(t)}dte.validateValue=T9o});var V4t=E(tRe=>{"use strict";Object.defineProperty(tRe,"__esModule",{value:!0});tRe.TraceState=void 0;var Mjr=kjr(),Ljr=32,w9o=512,Ujr=",",Fjr="=",H4t=class t{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,r){let o=this._clone();return o._internalState.has(e)&&o._internalState.delete(e),o._internalState.set(e,r),o}unset(e){let r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+Fjr+this.get(r)),e),[]).join(Ujr)}_parse(e){e.length>w9o||(this._internalState=e.split(Ujr).reverse().reduce((r,o)=>{let s=o.trim(),a=s.indexOf(Fjr);if(a!==-1){let i=s.slice(0,a),n=s.slice(a+1,o.length);(0,Mjr.validateKey)(i)&&(0,Mjr.validateValue)(n)&&r.set(i,n)}return r},new Map),this._internalState.size>Ljr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Ljr))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};tRe.TraceState=H4t});var qjr=E(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});ty.W3CTraceContextPropagator=ty.parseTraceParent=ty.TRACE_STATE_HEADER=ty.TRACE_PARENT_HEADER=void 0;var rRe=(ut(),nt(xt)),I9o=f2e(),D9o=V4t();ty.TRACE_PARENT_HEADER="traceparent";ty.TRACE_STATE_HEADER="tracestate";var O9o="00",R9o="(?!ff)[\\da-f]{2}",N9o="(?![0]{32})[\\da-f]{32}",P9o="(?![0]{16})[\\da-f]{16}",B9o="[\\da-f]{2}",k9o=new RegExp(`^\\s?(${R9o})-(${N9o})-(${P9o})-(${B9o})(-.*)?\\s?$`);function Qjr(t){let e=k9o.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}ty.parseTraceParent=Qjr;var G4t=class{inject(e,r,o){let s=rRe.trace.getSpanContext(e);if(!s||(0,I9o.isTracingSuppressed)(e)||!(0,rRe.isSpanContextValid)(s))return;let a=`${O9o}-${s.traceId}-${s.spanId}-0${Number(s.traceFlags||rRe.TraceFlags.NONE).toString(16)}`;o.set(r,ty.TRACE_PARENT_HEADER,a),s.traceState&&o.set(r,ty.TRACE_STATE_HEADER,s.traceState.serialize())}extract(e,r,o){let s=o.get(r,ty.TRACE_PARENT_HEADER);if(!s)return e;let a=Array.isArray(s)?s[0]:s;if(typeof a!="string")return e;let i=Qjr(a);if(!i)return e;i.isRemote=!0;let n=o.get(r,ty.TRACE_STATE_HEADER);if(n){let c=Array.isArray(n)?n.join(","):n;i.traceState=new D9o.TraceState(typeof c=="string"?c:void 0)}return rRe.trace.setSpanContext(e,i)}fields(){return[ty.TRACE_PARENT_HEADER,ty.TRACE_STATE_HEADER]}};ty.W3CTraceContextPropagator=G4t});var Hjr=E(j4=>{"use strict";Object.defineProperty(j4,"__esModule",{value:!0});j4.getRPCMetadata=j4.deleteRPCMetadata=j4.setRPCMetadata=j4.RPCType=void 0;var M9o=(ut(),nt(xt)),j4t=(0,M9o.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),L9o;(function(t){t.HTTP="http"})(L9o=j4.RPCType||(j4.RPCType={}));function U9o(t,e){return t.setValue(j4t,e)}j4.setRPCMetadata=U9o;function F9o(t){return t.deleteValue(j4t)}j4.deleteRPCMetadata=F9o;function Q9o(t){return t.getValue(j4t)}j4.getRPCMetadata=Q9o});var Wjr=E(nRe=>{"use strict";Object.defineProperty(nRe,"__esModule",{value:!0});nRe.isPlainObject=void 0;var q9o="[object Object]",H9o="[object Null]",V9o="[object Undefined]",G9o=Function.prototype,Vjr=G9o.toString,j9o=Vjr.call(Object),$9o=Object.getPrototypeOf,Gjr=Object.prototype,jjr=Gjr.hasOwnProperty,aV=Symbol?Symbol.toStringTag:void 0,$jr=Gjr.toString;function W9o(t){if(!z9o(t)||K9o(t)!==q9o)return!1;let e=$9o(t);if(e===null)return!0;let r=jjr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Vjr.call(r)===j9o}nRe.isPlainObject=W9o;function z9o(t){return t!=null&&typeof t=="object"}function K9o(t){return t==null?t===void 0?V9o:H9o:aV&&aV in Object(t)?Y9o(t):J9o(t)}function Y9o(t){let e=jjr.call(t,aV),r=t[aV],o=!1;try{t[aV]=void 0,o=!0}catch{}let s=$jr.call(t);return o&&(e?t[aV]=r:delete t[aV]),s}function J9o(t){return $jr.call(t)}});var Xjr=E(sRe=>{"use strict";Object.defineProperty(sRe,"__esModule",{value:!0});sRe.merge=void 0;var zjr=Wjr(),X9o=20;function Z9o(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=Yjr(e,t.shift(),0,r);return e}sRe.merge=Z9o;function $4t(t){return oRe(t)?t.slice():t}function Yjr(t,e,r=0,o){let s;if(!(r>X9o)){if(r++,iRe(t)||iRe(e)||Jjr(e))s=$4t(e);else if(oRe(t)){if(s=t.slice(),oRe(e))for(let a=0,i=e.length;a<i;a++)s.push($4t(e[a]));else if(h2e(e)){let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i];s[c]=$4t(e[c])}}}else if(h2e(t))if(h2e(e)){if(!e7o(t,e))return e;s=Object.assign({},t);let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i],u=e[c];if(iRe(u))typeof u>"u"?delete s[c]:s[c]=u;else{let f=s[c],d=u;if(Kjr(t,c,o)||Kjr(e,c,o))delete s[c];else{if(h2e(f)&&h2e(d)){let p=o.get(f)||[],h=o.get(d)||[];p.push({obj:t,key:c}),h.push({obj:e,key:c}),o.set(f,p),o.set(d,h)}s[c]=Yjr(s[c],u,r,o)}}}}else s=e;return s}}function Kjr(t,e,r){let o=r.get(t[e])||[];for(let s=0,a=o.length;s<a;s++){let i=o[s];if(i.key===e&&i.obj===t)return!0}return!1}function oRe(t){return Array.isArray(t)}function Jjr(t){return typeof t=="function"}function h2e(t){return!iRe(t)&&!oRe(t)&&!Jjr(t)&&typeof t=="object"}function iRe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function e7o(t,e){return!(!(0,zjr.isPlainObject)(t)||!(0,zjr.isPlainObject)(e))}});var Zjr=E(pte=>{"use strict";Object.defineProperty(pte,"__esModule",{value:!0});pte.callWithTimeout=pte.TimeoutError=void 0;var aRe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};pte.TimeoutError=aRe;function t7o(t,e){let r,o=new Promise(function(a,i){r=setTimeout(function(){i(new aRe("Operation timed out."))},e)});return Promise.race([t,o]).then(s=>(clearTimeout(r),s),s=>{throw clearTimeout(r),s})}pte.callWithTimeout=t7o});var t$r=E(hte=>{"use strict";Object.defineProperty(hte,"__esModule",{value:!0});hte.isUrlIgnored=hte.urlMatches=void 0;function e$r(t,e){return typeof e=="string"?t===e:!!t.match(e)}hte.urlMatches=e$r;function r7o(t,e){if(!e)return!1;for(let r of e)if(e$r(t,r))return!0;return!1}hte.isUrlIgnored=r7o});var r$r=E(cRe=>{"use strict";Object.defineProperty(cRe,"__esModule",{value:!0});cRe.Deferred=void 0;var W4t=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};cRe.Deferred=W4t});var n$r=E(lRe=>{"use strict";Object.defineProperty(lRe,"__esModule",{value:!0});lRe.BindOnceFuture=void 0;var n7o=r$r(),z4t=class{_callback;_that;_isCalled=!1;_deferred=new n7o.Deferred;constructor(e,r){this._callback=e,this._that=r}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(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};lRe.BindOnceFuture=z4t});var o$r=E(uRe=>{"use strict";Object.defineProperty(uRe,"__esModule",{value:!0});uRe.diagLogLevelFromString=void 0;var nO=(ut(),nt(xt)),i$r={ALL:nO.DiagLogLevel.ALL,VERBOSE:nO.DiagLogLevel.VERBOSE,DEBUG:nO.DiagLogLevel.DEBUG,INFO:nO.DiagLogLevel.INFO,WARN:nO.DiagLogLevel.WARN,ERROR:nO.DiagLogLevel.ERROR,NONE:nO.DiagLogLevel.NONE};function i7o(t){if(t==null)return;let e=i$r[t.toUpperCase()];return e??(nO.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(i$r)}, using default`),nO.DiagLogLevel.INFO)}uRe.diagLogLevelFromString=i7o});var a$r=E(fRe=>{"use strict";Object.defineProperty(fRe,"__esModule",{value:!0});fRe._export=void 0;var s$r=(ut(),nt(xt)),o7o=f2e();function s7o(t,e){return new Promise(r=>{s$r.context.with((0,o7o.suppressTracing)(s$r.context.active()),()=>{t.export(e,o=>{r(o)})})})}fRe._export=s7o});var cV=E(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.internal=cn.diagLogLevelFromString=cn.BindOnceFuture=cn.urlMatches=cn.isUrlIgnored=cn.callWithTimeout=cn.TimeoutError=cn.merge=cn.TraceState=cn.unsuppressTracing=cn.suppressTracing=cn.isTracingSuppressed=cn.setRPCMetadata=cn.getRPCMetadata=cn.deleteRPCMetadata=cn.RPCType=cn.parseTraceParent=cn.W3CTraceContextPropagator=cn.TRACE_STATE_HEADER=cn.TRACE_PARENT_HEADER=cn.CompositePropagator=cn.unrefTimer=cn.otperformance=cn.getStringListFromEnv=cn.getNumberFromEnv=cn.getBooleanFromEnv=cn.getStringFromEnv=cn._globalThis=cn.SDK_INFO=cn.parseKeyPairsIntoRecord=cn.ExportResultCode=cn.timeInputToHrTime=cn.millisToHrTime=cn.isTimeInputHrTime=cn.isTimeInput=cn.hrTimeToTimeStamp=cn.hrTimeToNanoseconds=cn.hrTimeToMilliseconds=cn.hrTimeToMicroseconds=cn.hrTimeDuration=cn.hrTime=cn.getTimeOrigin=cn.addHrTimes=cn.loggingErrorHandler=cn.setGlobalErrorHandler=cn.globalErrorHandler=cn.sanitizeAttributes=cn.isAttributeValue=cn.AnchoredClock=cn.W3CBaggagePropagator=void 0;var a7o=cjr();Object.defineProperty(cn,"W3CBaggagePropagator",{enumerable:!0,get:function(){return a7o.W3CBaggagePropagator}});var c7o=ljr();Object.defineProperty(cn,"AnchoredClock",{enumerable:!0,get:function(){return c7o.AnchoredClock}});var c$r=hjr();Object.defineProperty(cn,"isAttributeValue",{enumerable:!0,get:function(){return c$r.isAttributeValue}});Object.defineProperty(cn,"sanitizeAttributes",{enumerable:!0,get:function(){return c$r.sanitizeAttributes}});var l$r=gjr();Object.defineProperty(cn,"globalErrorHandler",{enumerable:!0,get:function(){return l$r.globalErrorHandler}});Object.defineProperty(cn,"setGlobalErrorHandler",{enumerable:!0,get:function(){return l$r.setGlobalErrorHandler}});var l7o=k4t();Object.defineProperty(cn,"loggingErrorHandler",{enumerable:!0,get:function(){return l7o.loggingErrorHandler}});var Yx=Rjr();Object.defineProperty(cn,"addHrTimes",{enumerable:!0,get:function(){return Yx.addHrTimes}});Object.defineProperty(cn,"getTimeOrigin",{enumerable:!0,get:function(){return Yx.getTimeOrigin}});Object.defineProperty(cn,"hrTime",{enumerable:!0,get:function(){return Yx.hrTime}});Object.defineProperty(cn,"hrTimeDuration",{enumerable:!0,get:function(){return Yx.hrTimeDuration}});Object.defineProperty(cn,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Yx.hrTimeToMicroseconds}});Object.defineProperty(cn,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Yx.hrTimeToMilliseconds}});Object.defineProperty(cn,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Yx.hrTimeToNanoseconds}});Object.defineProperty(cn,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Yx.hrTimeToTimeStamp}});Object.defineProperty(cn,"isTimeInput",{enumerable:!0,get:function(){return Yx.isTimeInput}});Object.defineProperty(cn,"isTimeInputHrTime",{enumerable:!0,get:function(){return Yx.isTimeInputHrTime}});Object.defineProperty(cn,"millisToHrTime",{enumerable:!0,get:function(){return Yx.millisToHrTime}});Object.defineProperty(cn,"timeInputToHrTime",{enumerable:!0,get:function(){return Yx.timeInputToHrTime}});var u7o=Njr();Object.defineProperty(cn,"ExportResultCode",{enumerable:!0,get:function(){return u7o.ExportResultCode}});var f7o=O4t();Object.defineProperty(cn,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return f7o.parseKeyPairsIntoRecord}});var _k=M4t();Object.defineProperty(cn,"SDK_INFO",{enumerable:!0,get:function(){return _k.SDK_INFO}});Object.defineProperty(cn,"_globalThis",{enumerable:!0,get:function(){return _k._globalThis}});Object.defineProperty(cn,"getStringFromEnv",{enumerable:!0,get:function(){return _k.getStringFromEnv}});Object.defineProperty(cn,"getBooleanFromEnv",{enumerable:!0,get:function(){return _k.getBooleanFromEnv}});Object.defineProperty(cn,"getNumberFromEnv",{enumerable:!0,get:function(){return _k.getNumberFromEnv}});Object.defineProperty(cn,"getStringListFromEnv",{enumerable:!0,get:function(){return _k.getStringListFromEnv}});Object.defineProperty(cn,"otperformance",{enumerable:!0,get:function(){return _k.otperformance}});Object.defineProperty(cn,"unrefTimer",{enumerable:!0,get:function(){return _k.unrefTimer}});var d7o=Bjr();Object.defineProperty(cn,"CompositePropagator",{enumerable:!0,get:function(){return d7o.CompositePropagator}});var dRe=qjr();Object.defineProperty(cn,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return dRe.TRACE_PARENT_HEADER}});Object.defineProperty(cn,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return dRe.TRACE_STATE_HEADER}});Object.defineProperty(cn,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return dRe.W3CTraceContextPropagator}});Object.defineProperty(cn,"parseTraceParent",{enumerable:!0,get:function(){return dRe.parseTraceParent}});var pRe=Hjr();Object.defineProperty(cn,"RPCType",{enumerable:!0,get:function(){return pRe.RPCType}});Object.defineProperty(cn,"deleteRPCMetadata",{enumerable:!0,get:function(){return pRe.deleteRPCMetadata}});Object.defineProperty(cn,"getRPCMetadata",{enumerable:!0,get:function(){return pRe.getRPCMetadata}});Object.defineProperty(cn,"setRPCMetadata",{enumerable:!0,get:function(){return pRe.setRPCMetadata}});var K4t=f2e();Object.defineProperty(cn,"isTracingSuppressed",{enumerable:!0,get:function(){return K4t.isTracingSuppressed}});Object.defineProperty(cn,"suppressTracing",{enumerable:!0,get:function(){return K4t.suppressTracing}});Object.defineProperty(cn,"unsuppressTracing",{enumerable:!0,get:function(){return K4t.unsuppressTracing}});var p7o=V4t();Object.defineProperty(cn,"TraceState",{enumerable:!0,get:function(){return p7o.TraceState}});var h7o=Xjr();Object.defineProperty(cn,"merge",{enumerable:!0,get:function(){return h7o.merge}});var u$r=Zjr();Object.defineProperty(cn,"TimeoutError",{enumerable:!0,get:function(){return u$r.TimeoutError}});Object.defineProperty(cn,"callWithTimeout",{enumerable:!0,get:function(){return u$r.callWithTimeout}});var f$r=t$r();Object.defineProperty(cn,"isUrlIgnored",{enumerable:!0,get:function(){return f$r.isUrlIgnored}});Object.defineProperty(cn,"urlMatches",{enumerable:!0,get:function(){return f$r.urlMatches}});var m7o=n$r();Object.defineProperty(cn,"BindOnceFuture",{enumerable:!0,get:function(){return m7o.BindOnceFuture}});var g7o=o$r();Object.defineProperty(cn,"diagLogLevelFromString",{enumerable:!0,get:function(){return g7o.diagLogLevelFromString}});var y7o=a$r();cn.internal={_export:y7o._export}});var d$r=E(gte=>{"use strict";Object.defineProperty(gte,"__esModule",{value:!0});gte.LastValueAggregator=gte.LastValueAccumulation=void 0;var A7o=nte(),m2e=cV(),v7o=bk(),mte=class{startTime;_current;sampleTime;constructor(e,r=0,o=[0,0]){this.startTime=e,this._current=r,this.sampleTime=o}record(e){this._current=e,this.sampleTime=(0,m2e.millisToHrTime)(Date.now())}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};gte.LastValueAccumulation=mte;var Y4t=class{kind=A7o.AggregatorKind.LAST_VALUE;createAccumulation(e){return new mte(e)}merge(e,r){let o=(0,m2e.hrTimeToMicroseconds)(r.sampleTime)>=(0,m2e.hrTimeToMicroseconds)(e.sampleTime)?r:e;return new mte(e.startTime,o.toPointValue(),o.sampleTime)}diff(e,r){let o=(0,m2e.hrTimeToMicroseconds)(r.sampleTime)>=(0,m2e.hrTimeToMicroseconds)(e.sampleTime)?r:e;return new mte(r.startTime,o.toPointValue(),o.sampleTime)}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:v7o.DataPointType.GAUGE,dataPoints:o.map(([a,i])=>({attributes:a,startTime:i.startTime,endTime:s,value:i.toPointValue()}))}}};gte.LastValueAggregator=Y4t});var p$r=E(yte=>{"use strict";Object.defineProperty(yte,"__esModule",{value:!0});yte.SumAggregator=yte.SumAccumulation=void 0;var b7o=nte(),E7o=bk(),Ck=class{startTime;monotonic;_current;reset;constructor(e,r,o=0,s=!1){this.startTime=e,this.monotonic=r,this._current=o,this.reset=s}record(e){this.monotonic&&e<0||(this._current+=e)}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};yte.SumAccumulation=Ck;var J4t=class{monotonic;kind=b7o.AggregatorKind.SUM;constructor(e){this.monotonic=e}createAccumulation(e){return new Ck(e,this.monotonic)}merge(e,r){let o=e.toPointValue(),s=r.toPointValue();return r.reset?new Ck(r.startTime,this.monotonic,s,r.reset):new Ck(e.startTime,this.monotonic,o+s)}diff(e,r){let o=e.toPointValue(),s=r.toPointValue();return this.monotonic&&o>s?new Ck(r.startTime,this.monotonic,s,!0):new Ck(r.startTime,this.monotonic,s-o)}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:E7o.DataPointType.SUM,dataPoints:o.map(([a,i])=>({attributes:a,startTime:i.startTime,endTime:s,value:i.toPointValue()})),isMonotonic:this.monotonic}}};yte.SumAggregator=J4t});var A$r=E(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.SumAggregator=xm.SumAccumulation=xm.LastValueAggregator=xm.LastValueAccumulation=xm.ExponentialHistogramAggregator=xm.ExponentialHistogramAccumulation=xm.HistogramAggregator=xm.HistogramAccumulation=xm.DropAggregator=void 0;var S7o=WGr();Object.defineProperty(xm,"DropAggregator",{enumerable:!0,get:function(){return S7o.DropAggregator}});var h$r=zGr();Object.defineProperty(xm,"HistogramAccumulation",{enumerable:!0,get:function(){return h$r.HistogramAccumulation}});Object.defineProperty(xm,"HistogramAggregator",{enumerable:!0,get:function(){return h$r.HistogramAggregator}});var m$r=sjr();Object.defineProperty(xm,"ExponentialHistogramAccumulation",{enumerable:!0,get:function(){return m$r.ExponentialHistogramAccumulation}});Object.defineProperty(xm,"ExponentialHistogramAggregator",{enumerable:!0,get:function(){return m$r.ExponentialHistogramAggregator}});var g$r=d$r();Object.defineProperty(xm,"LastValueAccumulation",{enumerable:!0,get:function(){return g$r.LastValueAccumulation}});Object.defineProperty(xm,"LastValueAggregator",{enumerable:!0,get:function(){return g$r.LastValueAggregator}});var y$r=p$r();Object.defineProperty(xm,"SumAccumulation",{enumerable:!0,get:function(){return y$r.SumAccumulation}});Object.defineProperty(xm,"SumAggregator",{enumerable:!0,get:function(){return y$r.SumAggregator}})});var v$r=E(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.DEFAULT_AGGREGATION=Dl.EXPONENTIAL_HISTOGRAM_AGGREGATION=Dl.HISTOGRAM_AGGREGATION=Dl.LAST_VALUE_AGGREGATION=Dl.SUM_AGGREGATION=Dl.DROP_AGGREGATION=Dl.DefaultAggregation=Dl.ExponentialHistogramAggregation=Dl.ExplicitBucketHistogramAggregation=Dl.HistogramAggregation=Dl.LastValueAggregation=Dl.SumAggregation=Dl.DropAggregation=void 0;var x7o=(ut(),nt(xt)),lV=A$r(),Z5=bk(),hRe=class t{static DEFAULT_INSTANCE=new lV.DropAggregator;createAggregator(e){return t.DEFAULT_INSTANCE}};Dl.DropAggregation=hRe;var mRe=class t{static MONOTONIC_INSTANCE=new lV.SumAggregator(!0);static NON_MONOTONIC_INSTANCE=new lV.SumAggregator(!1);createAggregator(e){switch(e.type){case Z5.InstrumentType.COUNTER:case Z5.InstrumentType.OBSERVABLE_COUNTER:case Z5.InstrumentType.HISTOGRAM:return t.MONOTONIC_INSTANCE;default:return t.NON_MONOTONIC_INSTANCE}}};Dl.SumAggregation=mRe;var gRe=class t{static DEFAULT_INSTANCE=new lV.LastValueAggregator;createAggregator(e){return t.DEFAULT_INSTANCE}};Dl.LastValueAggregation=gRe;var yRe=class t{static DEFAULT_INSTANCE=new lV.HistogramAggregator([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);createAggregator(e){return t.DEFAULT_INSTANCE}};Dl.HistogramAggregation=yRe;var ARe=class{_recordMinMax;_boundaries;constructor(e,r=!0){if(this._recordMinMax=r,e==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");e=e.concat(),e=e.sort((a,i)=>a-i);let o=e.lastIndexOf(-1/0),s=e.indexOf(1/0);s===-1&&(s=void 0),this._boundaries=e.slice(o+1,s)}createAggregator(e){return new lV.HistogramAggregator(this._boundaries,this._recordMinMax)}};Dl.ExplicitBucketHistogramAggregation=ARe;var vRe=class{_maxSize;_recordMinMax;constructor(e=160,r=!0){this._maxSize=e,this._recordMinMax=r}createAggregator(e){return new lV.ExponentialHistogramAggregator(this._maxSize,this._recordMinMax)}};Dl.ExponentialHistogramAggregation=vRe;var bRe=class{_resolve(e){switch(e.type){case Z5.InstrumentType.COUNTER:case Z5.InstrumentType.UP_DOWN_COUNTER:case Z5.InstrumentType.OBSERVABLE_COUNTER:case Z5.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return Dl.SUM_AGGREGATION;case Z5.InstrumentType.GAUGE:case Z5.InstrumentType.OBSERVABLE_GAUGE:return Dl.LAST_VALUE_AGGREGATION;case Z5.InstrumentType.HISTOGRAM:return e.advice.explicitBucketBoundaries?new ARe(e.advice.explicitBucketBoundaries):Dl.HISTOGRAM_AGGREGATION}return x7o.diag.warn(`Unable to recognize instrument type: ${e.type}`),Dl.DROP_AGGREGATION}createAggregator(e){return this._resolve(e).createAggregator(e)}};Dl.DefaultAggregation=bRe;Dl.DROP_AGGREGATION=new hRe;Dl.SUM_AGGREGATION=new mRe;Dl.LAST_VALUE_AGGREGATION=new gRe;Dl.HISTOGRAM_AGGREGATION=new yRe;Dl.EXPONENTIAL_HISTOGRAM_AGGREGATION=new vRe;Dl.DEFAULT_AGGREGATION=new bRe});var g2e=E(dV=>{"use strict";Object.defineProperty(dV,"__esModule",{value:!0});dV.toAggregation=dV.AggregationType=void 0;var uV=v$r(),fV;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.DROP=1]="DROP",t[t.SUM=2]="SUM",t[t.LAST_VALUE=3]="LAST_VALUE",t[t.EXPLICIT_BUCKET_HISTOGRAM=4]="EXPLICIT_BUCKET_HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=5]="EXPONENTIAL_HISTOGRAM"})(fV=dV.AggregationType||(dV.AggregationType={}));function _7o(t){switch(t.type){case fV.DEFAULT:return uV.DEFAULT_AGGREGATION;case fV.DROP:return uV.DROP_AGGREGATION;case fV.SUM:return uV.SUM_AGGREGATION;case fV.LAST_VALUE:return uV.LAST_VALUE_AGGREGATION;case fV.EXPONENTIAL_HISTOGRAM:{let e=t;return new uV.ExponentialHistogramAggregation(e.options?.maxSize,e.options?.recordMinMax)}case fV.EXPLICIT_BUCKET_HISTOGRAM:{let e=t;return e.options==null?uV.HISTOGRAM_AGGREGATION:new uV.ExplicitBucketHistogramAggregation(e.options?.boundaries,e.options?.recordMinMax)}default:throw new Error("Unsupported Aggregation")}}dV.toAggregation=_7o});var X4t=E(Ate=>{"use strict";Object.defineProperty(Ate,"__esModule",{value:!0});Ate.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=Ate.DEFAULT_AGGREGATION_SELECTOR=void 0;var C7o=ROe(),T7o=g2e(),w7o=t=>({type:T7o.AggregationType.DEFAULT});Ate.DEFAULT_AGGREGATION_SELECTOR=w7o;var I7o=t=>C7o.AggregationTemporality.CUMULATIVE;Ate.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=I7o});var e6t=E(SRe=>{"use strict";Object.defineProperty(SRe,"__esModule",{value:!0});SRe.MetricReader=void 0;var b$r=(ut(),nt(xt)),ERe=G4(),E$r=X4t(),Z4t=class{_shutdown=!1;_metricProducers;_sdkMetricProducer;_aggregationTemporalitySelector;_aggregationSelector;_cardinalitySelector;constructor(e){this._aggregationSelector=e?.aggregationSelector??E$r.DEFAULT_AGGREGATION_SELECTOR,this._aggregationTemporalitySelector=e?.aggregationTemporalitySelector??E$r.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR,this._metricProducers=e?.metricProducers??[],this._cardinalitySelector=e?.cardinalitySelector}setMetricProducer(e){if(this._sdkMetricProducer)throw new Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=e,this.onInitialized()}selectAggregation(e){return this._aggregationSelector(e)}selectAggregationTemporality(e){return this._aggregationTemporalitySelector(e)}selectCardinalityLimit(e){return this._cardinalitySelector?this._cardinalitySelector(e):2e3}onInitialized(){}async collect(e){if(this._sdkMetricProducer===void 0)throw new Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw new Error("MetricReader is shutdown");let[r,...o]=await Promise.all([this._sdkMetricProducer.collect({timeoutMillis:e?.timeoutMillis}),...this._metricProducers.map(n=>n.collect({timeoutMillis:e?.timeoutMillis}))]),s=r.errors.concat((0,ERe.FlatMap)(o,n=>n.errors)),a=r.resourceMetrics.resource,i=r.resourceMetrics.scopeMetrics.concat((0,ERe.FlatMap)(o,n=>n.resourceMetrics.scopeMetrics));return{resourceMetrics:{resource:a,scopeMetrics:i},errors:s}}async shutdown(e){if(this._shutdown){b$r.diag.error("Cannot call shutdown twice.");return}e?.timeoutMillis==null?await this.onShutdown():await(0,ERe.callWithTimeout)(this.onShutdown(),e.timeoutMillis),this._shutdown=!0}async forceFlush(e){if(this._shutdown){b$r.diag.warn("Cannot forceFlush on already shutdown MetricReader.");return}if(e?.timeoutMillis==null){await this.onForceFlush();return}await(0,ERe.callWithTimeout)(this.onForceFlush(),e.timeoutMillis)}};SRe.MetricReader=Z4t});var x$r=E(xRe=>{"use strict";Object.defineProperty(xRe,"__esModule",{value:!0});xRe.PeriodicExportingMetricReader=void 0;var t6t=(ut(),nt(xt)),y2e=cV(),D7o=e6t(),S$r=G4(),r6t=class extends D7o.MetricReader{_interval;_exporter;_exportInterval;_exportTimeout;constructor(e){if(super({aggregationSelector:e.exporter.selectAggregation?.bind(e.exporter),aggregationTemporalitySelector:e.exporter.selectAggregationTemporality?.bind(e.exporter),metricProducers:e.metricProducers}),e.exportIntervalMillis!==void 0&&e.exportIntervalMillis<=0)throw Error("exportIntervalMillis must be greater than 0");if(e.exportTimeoutMillis!==void 0&&e.exportTimeoutMillis<=0)throw Error("exportTimeoutMillis must be greater than 0");if(e.exportTimeoutMillis!==void 0&&e.exportIntervalMillis!==void 0&&e.exportIntervalMillis<e.exportTimeoutMillis)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");this._exportInterval=e.exportIntervalMillis??6e4,this._exportTimeout=e.exportTimeoutMillis??3e4,this._exporter=e.exporter}async _runOnce(){try{await(0,S$r.callWithTimeout)(this._doRun(),this._exportTimeout)}catch(e){if(e instanceof S$r.TimeoutError){t6t.diag.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout);return}(0,y2e.globalErrorHandler)(e)}}async _doRun(){let{resourceMetrics:e,errors:r}=await this.collect({timeoutMillis:this._exportTimeout});if(r.length>0&&t6t.diag.error("PeriodicExportingMetricReader: metrics collection errors",...r),e.resource.asyncAttributesPending)try{await e.resource.waitForAsyncAttributes?.()}catch(s){t6t.diag.debug("Error while resolving async portion of resource: ",s),(0,y2e.globalErrorHandler)(s)}if(e.scopeMetrics.length===0)return;let o=await y2e.internal._export(this._exporter,e);if(o.code!==y2e.ExportResultCode.SUCCESS)throw new Error(`PeriodicExportingMetricReader: metrics export failed (error ${o.error})`)}onInitialized(){this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),(0,y2e.unrefTimer)(this._interval)}async onForceFlush(){await this._runOnce(),await this._exporter.forceFlush()}async onShutdown(){this._interval&&clearInterval(this._interval),await this.onForceFlush(),await this._exporter.shutdown()}};xRe.PeriodicExportingMetricReader=r6t});var C$r=E(_Re=>{"use strict";Object.defineProperty(_Re,"__esModule",{value:!0});_Re.InMemoryMetricExporter=void 0;var _$r=cV(),n6t=class{_shutdown=!1;_aggregationTemporality;_metrics=[];constructor(e){this._aggregationTemporality=e}export(e,r){if(this._shutdown){setTimeout(()=>r({code:_$r.ExportResultCode.FAILED}),0);return}this._metrics.push(e),setTimeout(()=>r({code:_$r.ExportResultCode.SUCCESS}),0)}getMetrics(){return this._metrics}forceFlush(){return Promise.resolve()}reset(){this._metrics=[]}selectAggregationTemporality(e){return this._aggregationTemporality}shutdown(){return this._shutdown=!0,Promise.resolve()}};_Re.InMemoryMetricExporter=n6t});var w$r=E(CRe=>{"use strict";Object.defineProperty(CRe,"__esModule",{value:!0});CRe.ConsoleMetricExporter=void 0;var T$r=cV(),O7o=X4t(),i6t=class t{_shutdown=!1;_temporalitySelector;constructor(e){this._temporalitySelector=e?.temporalitySelector??O7o.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR}export(e,r){if(this._shutdown){setImmediate(r,{code:T$r.ExportResultCode.FAILED});return}return t._sendMetrics(e,r)}forceFlush(){return Promise.resolve()}selectAggregationTemporality(e){return this._temporalitySelector(e)}shutdown(){return this._shutdown=!0,Promise.resolve()}static _sendMetrics(e,r){for(let o of e.scopeMetrics)for(let s of o.metrics)console.dir({descriptor:s.descriptor,dataPointType:s.dataPointType,dataPoints:s.dataPoints},{depth:null});r({code:T$r.ExportResultCode.SUCCESS})}};CRe.ConsoleMetricExporter=i6t});var A2e=E(Tk=>{"use strict";Object.defineProperty(Tk,"__esModule",{value:!0});Tk.isTracingSuppressed=Tk.unsuppressTracing=Tk.suppressTracing=void 0;var R7o=(ut(),nt(xt)),o6t=(0,R7o.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function N7o(t){return t.setValue(o6t,!0)}Tk.suppressTracing=N7o;function P7o(t){return t.deleteValue(o6t)}Tk.unsuppressTracing=P7o;function B7o(t){return t.getValue(o6t)===!0}Tk.isTracingSuppressed=B7o});var s6t=E(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});ry.BAGGAGE_MAX_TOTAL_LENGTH=ry.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=ry.BAGGAGE_MAX_NAME_VALUE_PAIRS=ry.BAGGAGE_HEADER=ry.BAGGAGE_ITEMS_SEPARATOR=ry.BAGGAGE_PROPERTIES_SEPARATOR=ry.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;ry.BAGGAGE_KEY_PAIR_SEPARATOR="=";ry.BAGGAGE_PROPERTIES_SEPARATOR=";";ry.BAGGAGE_ITEMS_SEPARATOR=",";ry.BAGGAGE_HEADER="baggage";ry.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;ry.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;ry.BAGGAGE_MAX_TOTAL_LENGTH=8192});var a6t=E(eI=>{"use strict";Object.defineProperty(eI,"__esModule",{value:!0});eI.parseKeyPairsIntoRecord=eI.parsePairKeyValue=eI.getKeyPairs=eI.serializeKeyPairs=void 0;var k7o=(ut(),nt(xt)),pV=s6t();function M7o(t){return t.reduce((e,r)=>{let o=`${e}${e!==""?pV.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return o.length>pV.BAGGAGE_MAX_TOTAL_LENGTH?e:o},"")}eI.serializeKeyPairs=M7o;function L7o(t){return t.getAllEntries().map(([e,r])=>{let o=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(o+=pV.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),o})}eI.getKeyPairs=L7o;function I$r(t){let e=t.split(pV.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let o=r.indexOf(pV.BAGGAGE_KEY_PAIR_SEPARATOR);if(o<=0)return;let s=decodeURIComponent(r.substring(0,o).trim()),a=decodeURIComponent(r.substring(o+1).trim()),i;return e.length>0&&(i=(0,k7o.baggageEntryMetadataFromString)(e.join(pV.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:a,metadata:i}}eI.parsePairKeyValue=I$r;function U7o(t){let e={};return typeof t=="string"&&t.length>0&&t.split(pV.BAGGAGE_ITEMS_SEPARATOR).forEach(r=>{let o=I$r(r);o!==void 0&&o.value.length>0&&(e[o.key]=o.value)}),e}eI.parseKeyPairsIntoRecord=U7o});var D$r=E(TRe=>{"use strict";Object.defineProperty(TRe,"__esModule",{value:!0});TRe.W3CBaggagePropagator=void 0;var c6t=(ut(),nt(xt)),F7o=A2e(),hV=s6t(),l6t=a6t(),u6t=class{inject(e,r,o){let s=c6t.propagation.getBaggage(e);if(!s||(0,F7o.isTracingSuppressed)(e))return;let a=(0,l6t.getKeyPairs)(s).filter(n=>n.length<=hV.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,hV.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,l6t.serializeKeyPairs)(a);i.length>0&&o.set(r,hV.BAGGAGE_HEADER,i)}extract(e,r,o){let s=o.get(r,hV.BAGGAGE_HEADER),a=Array.isArray(s)?s.join(hV.BAGGAGE_ITEMS_SEPARATOR):s;if(!a)return e;let i={};return a.length===0||(a.split(hV.BAGGAGE_ITEMS_SEPARATOR).forEach(c=>{let u=(0,l6t.parsePairKeyValue)(c);if(u){let f={value:u.value};u.metadata&&(f.metadata=u.metadata),i[u.key]=f}}),Object.entries(i).length===0)?e:c6t.propagation.setBaggage(e,c6t.propagation.createBaggage(i))}fields(){return[hV.BAGGAGE_HEADER]}};TRe.W3CBaggagePropagator=u6t});var O$r=E(wRe=>{"use strict";Object.defineProperty(wRe,"__esModule",{value:!0});wRe.AnchoredClock=void 0;var f6t=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,r){this._monotonicClock=r,this._epochMillis=e.now(),this._performanceMillis=r.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};wRe.AnchoredClock=f6t});var k$r=E(wk=>{"use strict";Object.defineProperty(wk,"__esModule",{value:!0});wk.isAttributeValue=wk.isAttributeKey=wk.sanitizeAttributes=void 0;var R$r=(ut(),nt(xt));function Q7o(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,o]of Object.entries(t)){if(!N$r(r)){R$r.diag.warn(`Invalid attribute key: ${r}`);continue}if(!P$r(o)){R$r.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(o)?e[r]=o.slice():e[r]=o}return e}wk.sanitizeAttributes=Q7o;function N$r(t){return typeof t=="string"&&t.length>0}wk.isAttributeKey=N$r;function P$r(t){return t==null?!0:Array.isArray(t)?q7o(t):B$r(t)}wk.isAttributeValue=P$r;function q7o(t){let e;for(let r of t)if(r!=null){if(!e){if(B$r(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function B$r(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var d6t=E(IRe=>{"use strict";Object.defineProperty(IRe,"__esModule",{value:!0});IRe.loggingErrorHandler=void 0;var H7o=(ut(),nt(xt));function V7o(){return t=>{H7o.diag.error(G7o(t))}}IRe.loggingErrorHandler=V7o;function G7o(t){return typeof t=="string"?t:JSON.stringify(j7o(t))}function j7o(t){let e={},r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(o=>{if(e[o])return;let s=r[o];s&&(e[o]=String(s))}),r=Object.getPrototypeOf(r);return e}});var L$r=E(vte=>{"use strict";Object.defineProperty(vte,"__esModule",{value:!0});vte.globalErrorHandler=vte.setGlobalErrorHandler=void 0;var $7o=d6t(),M$r=(0,$7o.loggingErrorHandler)();function W7o(t){M$r=t}vte.setGlobalErrorHandler=W7o;function z7o(t){try{M$r(t)}catch{}}vte.globalErrorHandler=z7o});var q$r=E(tI=>{"use strict";Object.defineProperty(tI,"__esModule",{value:!0});tI.getStringListFromEnv=tI.getBooleanFromEnv=tI.getStringFromEnv=tI.getNumberFromEnv=void 0;var U$r=(ut(),nt(xt)),F$r=me("util");function K7o(t){let e=process.env[t];if(e==null||e.trim()==="")return;let r=Number(e);if(isNaN(r)){U$r.diag.warn(`Unknown value ${(0,F$r.inspect)(e)} for ${t}, expected a number, using defaults`);return}return r}tI.getNumberFromEnv=K7o;function Q$r(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}tI.getStringFromEnv=Q$r;function Y7o(t){let e=process.env[t]?.trim().toLowerCase();return e==null||e===""?!1:e==="true"?!0:(e==="false"||U$r.diag.warn(`Unknown value ${(0,F$r.inspect)(e)} for ${t}, expected 'true' or 'false', falling back to 'false' (default)`),!1)}tI.getBooleanFromEnv=Y7o;function J7o(t){return Q$r(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}tI.getStringListFromEnv=J7o});var H$r=E(DRe=>{"use strict";Object.defineProperty(DRe,"__esModule",{value:!0});DRe._globalThis=void 0;DRe._globalThis=typeof globalThis=="object"?globalThis:global});var V$r=E(ORe=>{"use strict";Object.defineProperty(ORe,"__esModule",{value:!0});ORe.otperformance=void 0;var X7o=me("perf_hooks");ORe.otperformance=X7o.performance});var G$r=E(RRe=>{"use strict";Object.defineProperty(RRe,"__esModule",{value:!0});RRe.VERSION=void 0;RRe.VERSION="2.1.0"});var j$r=E(NRe=>{"use strict";Object.defineProperty(NRe,"__esModule",{value:!0});NRe.ATTR_PROCESS_RUNTIME_NAME=void 0;NRe.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var $$r=E(BRe=>{"use strict";Object.defineProperty(BRe,"__esModule",{value:!0});BRe.SDK_INFO=void 0;var Z7o=G$r(),PRe=(Wl(),nt(Uu)),eOo=j$r();BRe.SDK_INFO={[PRe.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[eOo.ATTR_PROCESS_RUNTIME_NAME]:"node",[PRe.ATTR_TELEMETRY_SDK_LANGUAGE]:PRe.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[PRe.ATTR_TELEMETRY_SDK_VERSION]:Z7o.VERSION}});var W$r=E(kRe=>{"use strict";Object.defineProperty(kRe,"__esModule",{value:!0});kRe.unrefTimer=void 0;function tOo(t){t.unref()}kRe.unrefTimer=tOo});var z$r=E(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.unrefTimer=a0.SDK_INFO=a0.otperformance=a0._globalThis=a0.getStringListFromEnv=a0.getNumberFromEnv=a0.getBooleanFromEnv=a0.getStringFromEnv=void 0;var MRe=q$r();Object.defineProperty(a0,"getStringFromEnv",{enumerable:!0,get:function(){return MRe.getStringFromEnv}});Object.defineProperty(a0,"getBooleanFromEnv",{enumerable:!0,get:function(){return MRe.getBooleanFromEnv}});Object.defineProperty(a0,"getNumberFromEnv",{enumerable:!0,get:function(){return MRe.getNumberFromEnv}});Object.defineProperty(a0,"getStringListFromEnv",{enumerable:!0,get:function(){return MRe.getStringListFromEnv}});var rOo=H$r();Object.defineProperty(a0,"_globalThis",{enumerable:!0,get:function(){return rOo._globalThis}});var nOo=V$r();Object.defineProperty(a0,"otperformance",{enumerable:!0,get:function(){return nOo.otperformance}});var iOo=$$r();Object.defineProperty(a0,"SDK_INFO",{enumerable:!0,get:function(){return iOo.SDK_INFO}});var oOo=W$r();Object.defineProperty(a0,"unrefTimer",{enumerable:!0,get:function(){return oOo.unrefTimer}})});var p6t=E(c0=>{"use strict";Object.defineProperty(c0,"__esModule",{value:!0});c0.getStringListFromEnv=c0.getNumberFromEnv=c0.getStringFromEnv=c0.getBooleanFromEnv=c0.unrefTimer=c0.otperformance=c0._globalThis=c0.SDK_INFO=void 0;var Ik=z$r();Object.defineProperty(c0,"SDK_INFO",{enumerable:!0,get:function(){return Ik.SDK_INFO}});Object.defineProperty(c0,"_globalThis",{enumerable:!0,get:function(){return Ik._globalThis}});Object.defineProperty(c0,"otperformance",{enumerable:!0,get:function(){return Ik.otperformance}});Object.defineProperty(c0,"unrefTimer",{enumerable:!0,get:function(){return Ik.unrefTimer}});Object.defineProperty(c0,"getBooleanFromEnv",{enumerable:!0,get:function(){return Ik.getBooleanFromEnv}});Object.defineProperty(c0,"getStringFromEnv",{enumerable:!0,get:function(){return Ik.getStringFromEnv}});Object.defineProperty(c0,"getNumberFromEnv",{enumerable:!0,get:function(){return Ik.getNumberFromEnv}});Object.defineProperty(c0,"getStringListFromEnv",{enumerable:!0,get:function(){return Ik.getStringListFromEnv}})});var X$r=E(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.addHrTimes=Nf.isTimeInput=Nf.isTimeInputHrTime=Nf.hrTimeToMicroseconds=Nf.hrTimeToMilliseconds=Nf.hrTimeToNanoseconds=Nf.hrTimeToTimeStamp=Nf.hrTimeDuration=Nf.timeInputToHrTime=Nf.hrTime=Nf.getTimeOrigin=Nf.millisToHrTime=void 0;var h6t=p6t(),K$r=9,sOo=6,aOo=Math.pow(10,sOo),LRe=Math.pow(10,K$r);function v2e(t){let e=t/1e3,r=Math.trunc(e),o=Math.round(t%1e3*aOo);return[r,o]}Nf.millisToHrTime=v2e;function m6t(){let t=h6t.otperformance.timeOrigin;if(typeof t!="number"){let e=h6t.otperformance;t=e.timing&&e.timing.fetchStart}return t}Nf.getTimeOrigin=m6t;function Y$r(t){let e=v2e(m6t()),r=v2e(typeof t=="number"?t:h6t.otperformance.now());return J$r(e,r)}Nf.hrTime=Y$r;function cOo(t){if(g6t(t))return t;if(typeof t=="number")return t<m6t()?Y$r(t):v2e(t);if(t instanceof Date)return v2e(t.getTime());throw TypeError("Invalid input type")}Nf.timeInputToHrTime=cOo;function lOo(t,e){let r=e[0]-t[0],o=e[1]-t[1];return o<0&&(r-=1,o+=LRe),[r,o]}Nf.hrTimeDuration=lOo;function uOo(t){let e=K$r,r=`${"0".repeat(e)}${t[1]}Z`,o=r.substring(r.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",o)}Nf.hrTimeToTimeStamp=uOo;function fOo(t){return t[0]*LRe+t[1]}Nf.hrTimeToNanoseconds=fOo;function dOo(t){return t[0]*1e3+t[1]/1e6}Nf.hrTimeToMilliseconds=dOo;function pOo(t){return t[0]*1e6+t[1]/1e3}Nf.hrTimeToMicroseconds=pOo;function g6t(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}Nf.isTimeInputHrTime=g6t;function hOo(t){return g6t(t)||typeof t=="number"||t instanceof Date}Nf.isTimeInput=hOo;function J$r(t,e){let r=[t[0]+e[0],t[1]+e[1]];return r[1]>=LRe&&(r[1]-=LRe,r[0]+=1),r}Nf.addHrTimes=J$r});var Z$r=E(b2e=>{"use strict";Object.defineProperty(b2e,"__esModule",{value:!0});b2e.ExportResultCode=void 0;var mOo;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(mOo=b2e.ExportResultCode||(b2e.ExportResultCode={}))});var tWr=E(URe=>{"use strict";Object.defineProperty(URe,"__esModule",{value:!0});URe.CompositePropagator=void 0;var eWr=(ut(),nt(xt)),y6t=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,o)=>r.concat(o),[])))}inject(e,r,o){for(let s of this._propagators)try{s.inject(e,r,o)}catch(a){eWr.diag.warn(`Failed to inject with ${s.constructor.name}. Err: ${a.message}`)}}extract(e,r,o){return this._propagators.reduce((s,a)=>{try{return a.extract(s,r,o)}catch(i){eWr.diag.warn(`Failed to extract with ${a.constructor.name}. Err: ${i.message}`)}return s},e)}fields(){return this._fields.slice()}};URe.CompositePropagator=y6t});var rWr=E(bte=>{"use strict";Object.defineProperty(bte,"__esModule",{value:!0});bte.validateValue=bte.validateKey=void 0;var A6t="[_0-9a-z-*/]",gOo=`[a-z]${A6t}{0,255}`,yOo=`[a-z0-9]${A6t}{0,240}@[a-z]${A6t}{0,13}`,AOo=new RegExp(`^(?:${gOo}|${yOo})$`),vOo=/^[ -~]{0,255}[!-~]$/,bOo=/,|=/;function EOo(t){return AOo.test(t)}bte.validateKey=EOo;function SOo(t){return vOo.test(t)&&!bOo.test(t)}bte.validateValue=SOo});var b6t=E(FRe=>{"use strict";Object.defineProperty(FRe,"__esModule",{value:!0});FRe.TraceState=void 0;var nWr=rWr(),iWr=32,xOo=512,oWr=",",sWr="=",v6t=class t{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,r){let o=this._clone();return o._internalState.has(e)&&o._internalState.delete(e),o._internalState.set(e,r),o}unset(e){let r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+sWr+this.get(r)),e),[]).join(oWr)}_parse(e){e.length>xOo||(this._internalState=e.split(oWr).reverse().reduce((r,o)=>{let s=o.trim(),a=s.indexOf(sWr);if(a!==-1){let i=s.slice(0,a),n=s.slice(a+1,o.length);(0,nWr.validateKey)(i)&&(0,nWr.validateValue)(n)&&r.set(i,n)}return r},new Map),this._internalState.size>iWr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,iWr))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};FRe.TraceState=v6t});var cWr=E(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});ny.W3CTraceContextPropagator=ny.parseTraceParent=ny.TRACE_STATE_HEADER=ny.TRACE_PARENT_HEADER=void 0;var QRe=(ut(),nt(xt)),_Oo=A2e(),COo=b6t();ny.TRACE_PARENT_HEADER="traceparent";ny.TRACE_STATE_HEADER="tracestate";var TOo="00",wOo="(?!ff)[\\da-f]{2}",IOo="(?![0]{32})[\\da-f]{32}",DOo="(?![0]{16})[\\da-f]{16}",OOo="[\\da-f]{2}",ROo=new RegExp(`^\\s?(${wOo})-(${IOo})-(${DOo})-(${OOo})(-.*)?\\s?$`);function aWr(t){let e=ROo.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}ny.parseTraceParent=aWr;var E6t=class{inject(e,r,o){let s=QRe.trace.getSpanContext(e);if(!s||(0,_Oo.isTracingSuppressed)(e)||!(0,QRe.isSpanContextValid)(s))return;let a=`${TOo}-${s.traceId}-${s.spanId}-0${Number(s.traceFlags||QRe.TraceFlags.NONE).toString(16)}`;o.set(r,ny.TRACE_PARENT_HEADER,a),s.traceState&&o.set(r,ny.TRACE_STATE_HEADER,s.traceState.serialize())}extract(e,r,o){let s=o.get(r,ny.TRACE_PARENT_HEADER);if(!s)return e;let a=Array.isArray(s)?s[0]:s;if(typeof a!="string")return e;let i=aWr(a);if(!i)return e;i.isRemote=!0;let n=o.get(r,ny.TRACE_STATE_HEADER);if(n){let c=Array.isArray(n)?n.join(","):n;i.traceState=new COo.TraceState(typeof c=="string"?c:void 0)}return QRe.trace.setSpanContext(e,i)}fields(){return[ny.TRACE_PARENT_HEADER,ny.TRACE_STATE_HEADER]}};ny.W3CTraceContextPropagator=E6t});var lWr=E($4=>{"use strict";Object.defineProperty($4,"__esModule",{value:!0});$4.getRPCMetadata=$4.deleteRPCMetadata=$4.setRPCMetadata=$4.RPCType=void 0;var NOo=(ut(),nt(xt)),S6t=(0,NOo.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),POo;(function(t){t.HTTP="http"})(POo=$4.RPCType||($4.RPCType={}));function BOo(t,e){return t.setValue(S6t,e)}$4.setRPCMetadata=BOo;function kOo(t){return t.deleteValue(S6t)}$4.deleteRPCMetadata=kOo;function MOo(t){return t.getValue(S6t)}$4.getRPCMetadata=MOo});var hWr=E(qRe=>{"use strict";Object.defineProperty(qRe,"__esModule",{value:!0});qRe.isPlainObject=void 0;var LOo="[object Object]",UOo="[object Null]",FOo="[object Undefined]",QOo=Function.prototype,uWr=QOo.toString,qOo=uWr.call(Object),HOo=Object.getPrototypeOf,fWr=Object.prototype,dWr=fWr.hasOwnProperty,mV=Symbol?Symbol.toStringTag:void 0,pWr=fWr.toString;function VOo(t){if(!GOo(t)||jOo(t)!==LOo)return!1;let e=HOo(t);if(e===null)return!0;let r=dWr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&uWr.call(r)===qOo}qRe.isPlainObject=VOo;function GOo(t){return t!=null&&typeof t=="object"}function jOo(t){return t==null?t===void 0?FOo:UOo:mV&&mV in Object(t)?$Oo(t):WOo(t)}function $Oo(t){let e=dWr.call(t,mV),r=t[mV],o=!1;try{t[mV]=void 0,o=!0}catch{}let s=pWr.call(t);return o&&(e?t[mV]=r:delete t[mV]),s}function WOo(t){return pWr.call(t)}});var vWr=E(GRe=>{"use strict";Object.defineProperty(GRe,"__esModule",{value:!0});GRe.merge=void 0;var mWr=hWr(),zOo=20;function KOo(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=yWr(e,t.shift(),0,r);return e}GRe.merge=KOo;function x6t(t){return VRe(t)?t.slice():t}function yWr(t,e,r=0,o){let s;if(!(r>zOo)){if(r++,HRe(t)||HRe(e)||AWr(e))s=x6t(e);else if(VRe(t)){if(s=t.slice(),VRe(e))for(let a=0,i=e.length;a<i;a++)s.push(x6t(e[a]));else if(E2e(e)){let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i];s[c]=x6t(e[c])}}}else if(E2e(t))if(E2e(e)){if(!YOo(t,e))return e;s=Object.assign({},t);let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i],u=e[c];if(HRe(u))typeof u>"u"?delete s[c]:s[c]=u;else{let f=s[c],d=u;if(gWr(t,c,o)||gWr(e,c,o))delete s[c];else{if(E2e(f)&&E2e(d)){let p=o.get(f)||[],h=o.get(d)||[];p.push({obj:t,key:c}),h.push({obj:e,key:c}),o.set(f,p),o.set(d,h)}s[c]=yWr(s[c],u,r,o)}}}}else s=e;return s}}function gWr(t,e,r){let o=r.get(t[e])||[];for(let s=0,a=o.length;s<a;s++){let i=o[s];if(i.key===e&&i.obj===t)return!0}return!1}function VRe(t){return Array.isArray(t)}function AWr(t){return typeof t=="function"}function E2e(t){return!HRe(t)&&!VRe(t)&&!AWr(t)&&typeof t=="object"}function HRe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function YOo(t,e){return!(!(0,mWr.isPlainObject)(t)||!(0,mWr.isPlainObject)(e))}});var bWr=E(Ete=>{"use strict";Object.defineProperty(Ete,"__esModule",{value:!0});Ete.callWithTimeout=Ete.TimeoutError=void 0;var jRe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};Ete.TimeoutError=jRe;function JOo(t,e){let r,o=new Promise(function(a,i){r=setTimeout(function(){i(new jRe("Operation timed out."))},e)});return Promise.race([t,o]).then(s=>(clearTimeout(r),s),s=>{throw clearTimeout(r),s})}Ete.callWithTimeout=JOo});var SWr=E(Ste=>{"use strict";Object.defineProperty(Ste,"__esModule",{value:!0});Ste.isUrlIgnored=Ste.urlMatches=void 0;function EWr(t,e){return typeof e=="string"?t===e:!!t.match(e)}Ste.urlMatches=EWr;function XOo(t,e){if(!e)return!1;for(let r of e)if(EWr(t,r))return!0;return!1}Ste.isUrlIgnored=XOo});var xWr=E($Re=>{"use strict";Object.defineProperty($Re,"__esModule",{value:!0});$Re.Deferred=void 0;var _6t=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};$Re.Deferred=_6t});var _Wr=E(WRe=>{"use strict";Object.defineProperty(WRe,"__esModule",{value:!0});WRe.BindOnceFuture=void 0;var ZOo=xWr(),C6t=class{_callback;_that;_isCalled=!1;_deferred=new ZOo.Deferred;constructor(e,r){this._callback=e,this._that=r}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(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};WRe.BindOnceFuture=C6t});var TWr=E(zRe=>{"use strict";Object.defineProperty(zRe,"__esModule",{value:!0});zRe.diagLogLevelFromString=void 0;var iO=(ut(),nt(xt)),CWr={ALL:iO.DiagLogLevel.ALL,VERBOSE:iO.DiagLogLevel.VERBOSE,DEBUG:iO.DiagLogLevel.DEBUG,INFO:iO.DiagLogLevel.INFO,WARN:iO.DiagLogLevel.WARN,ERROR:iO.DiagLogLevel.ERROR,NONE:iO.DiagLogLevel.NONE};function eRo(t){if(t==null)return;let e=CWr[t.toUpperCase()];return e??(iO.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(CWr)}, using default`),iO.DiagLogLevel.INFO)}zRe.diagLogLevelFromString=eRo});var IWr=E(KRe=>{"use strict";Object.defineProperty(KRe,"__esModule",{value:!0});KRe._export=void 0;var wWr=(ut(),nt(xt)),tRo=A2e();function rRo(t,e){return new Promise(r=>{wWr.context.with((0,tRo.suppressTracing)(wWr.context.active()),()=>{t.export(e,o=>{r(o)})})})}KRe._export=rRo});var w6t=E(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.internal=ln.diagLogLevelFromString=ln.BindOnceFuture=ln.urlMatches=ln.isUrlIgnored=ln.callWithTimeout=ln.TimeoutError=ln.merge=ln.TraceState=ln.unsuppressTracing=ln.suppressTracing=ln.isTracingSuppressed=ln.setRPCMetadata=ln.getRPCMetadata=ln.deleteRPCMetadata=ln.RPCType=ln.parseTraceParent=ln.W3CTraceContextPropagator=ln.TRACE_STATE_HEADER=ln.TRACE_PARENT_HEADER=ln.CompositePropagator=ln.unrefTimer=ln.otperformance=ln.getStringListFromEnv=ln.getNumberFromEnv=ln.getBooleanFromEnv=ln.getStringFromEnv=ln._globalThis=ln.SDK_INFO=ln.parseKeyPairsIntoRecord=ln.ExportResultCode=ln.timeInputToHrTime=ln.millisToHrTime=ln.isTimeInputHrTime=ln.isTimeInput=ln.hrTimeToTimeStamp=ln.hrTimeToNanoseconds=ln.hrTimeToMilliseconds=ln.hrTimeToMicroseconds=ln.hrTimeDuration=ln.hrTime=ln.getTimeOrigin=ln.addHrTimes=ln.loggingErrorHandler=ln.setGlobalErrorHandler=ln.globalErrorHandler=ln.sanitizeAttributes=ln.isAttributeValue=ln.AnchoredClock=ln.W3CBaggagePropagator=void 0;var nRo=D$r();Object.defineProperty(ln,"W3CBaggagePropagator",{enumerable:!0,get:function(){return nRo.W3CBaggagePropagator}});var iRo=O$r();Object.defineProperty(ln,"AnchoredClock",{enumerable:!0,get:function(){return iRo.AnchoredClock}});var DWr=k$r();Object.defineProperty(ln,"isAttributeValue",{enumerable:!0,get:function(){return DWr.isAttributeValue}});Object.defineProperty(ln,"sanitizeAttributes",{enumerable:!0,get:function(){return DWr.sanitizeAttributes}});var OWr=L$r();Object.defineProperty(ln,"globalErrorHandler",{enumerable:!0,get:function(){return OWr.globalErrorHandler}});Object.defineProperty(ln,"setGlobalErrorHandler",{enumerable:!0,get:function(){return OWr.setGlobalErrorHandler}});var oRo=d6t();Object.defineProperty(ln,"loggingErrorHandler",{enumerable:!0,get:function(){return oRo.loggingErrorHandler}});var Jx=X$r();Object.defineProperty(ln,"addHrTimes",{enumerable:!0,get:function(){return Jx.addHrTimes}});Object.defineProperty(ln,"getTimeOrigin",{enumerable:!0,get:function(){return Jx.getTimeOrigin}});Object.defineProperty(ln,"hrTime",{enumerable:!0,get:function(){return Jx.hrTime}});Object.defineProperty(ln,"hrTimeDuration",{enumerable:!0,get:function(){return Jx.hrTimeDuration}});Object.defineProperty(ln,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Jx.hrTimeToMicroseconds}});Object.defineProperty(ln,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Jx.hrTimeToMilliseconds}});Object.defineProperty(ln,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Jx.hrTimeToNanoseconds}});Object.defineProperty(ln,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Jx.hrTimeToTimeStamp}});Object.defineProperty(ln,"isTimeInput",{enumerable:!0,get:function(){return Jx.isTimeInput}});Object.defineProperty(ln,"isTimeInputHrTime",{enumerable:!0,get:function(){return Jx.isTimeInputHrTime}});Object.defineProperty(ln,"millisToHrTime",{enumerable:!0,get:function(){return Jx.millisToHrTime}});Object.defineProperty(ln,"timeInputToHrTime",{enumerable:!0,get:function(){return Jx.timeInputToHrTime}});var sRo=Z$r();Object.defineProperty(ln,"ExportResultCode",{enumerable:!0,get:function(){return sRo.ExportResultCode}});var aRo=a6t();Object.defineProperty(ln,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return aRo.parseKeyPairsIntoRecord}});var Dk=p6t();Object.defineProperty(ln,"SDK_INFO",{enumerable:!0,get:function(){return Dk.SDK_INFO}});Object.defineProperty(ln,"_globalThis",{enumerable:!0,get:function(){return Dk._globalThis}});Object.defineProperty(ln,"getStringFromEnv",{enumerable:!0,get:function(){return Dk.getStringFromEnv}});Object.defineProperty(ln,"getBooleanFromEnv",{enumerable:!0,get:function(){return Dk.getBooleanFromEnv}});Object.defineProperty(ln,"getNumberFromEnv",{enumerable:!0,get:function(){return Dk.getNumberFromEnv}});Object.defineProperty(ln,"getStringListFromEnv",{enumerable:!0,get:function(){return Dk.getStringListFromEnv}});Object.defineProperty(ln,"otperformance",{enumerable:!0,get:function(){return Dk.otperformance}});Object.defineProperty(ln,"unrefTimer",{enumerable:!0,get:function(){return Dk.unrefTimer}});var cRo=tWr();Object.defineProperty(ln,"CompositePropagator",{enumerable:!0,get:function(){return cRo.CompositePropagator}});var YRe=cWr();Object.defineProperty(ln,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return YRe.TRACE_PARENT_HEADER}});Object.defineProperty(ln,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return YRe.TRACE_STATE_HEADER}});Object.defineProperty(ln,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return YRe.W3CTraceContextPropagator}});Object.defineProperty(ln,"parseTraceParent",{enumerable:!0,get:function(){return YRe.parseTraceParent}});var JRe=lWr();Object.defineProperty(ln,"RPCType",{enumerable:!0,get:function(){return JRe.RPCType}});Object.defineProperty(ln,"deleteRPCMetadata",{enumerable:!0,get:function(){return JRe.deleteRPCMetadata}});Object.defineProperty(ln,"getRPCMetadata",{enumerable:!0,get:function(){return JRe.getRPCMetadata}});Object.defineProperty(ln,"setRPCMetadata",{enumerable:!0,get:function(){return JRe.setRPCMetadata}});var T6t=A2e();Object.defineProperty(ln,"isTracingSuppressed",{enumerable:!0,get:function(){return T6t.isTracingSuppressed}});Object.defineProperty(ln,"suppressTracing",{enumerable:!0,get:function(){return T6t.suppressTracing}});Object.defineProperty(ln,"unsuppressTracing",{enumerable:!0,get:function(){return T6t.unsuppressTracing}});var lRo=b6t();Object.defineProperty(ln,"TraceState",{enumerable:!0,get:function(){return lRo.TraceState}});var uRo=vWr();Object.defineProperty(ln,"merge",{enumerable:!0,get:function(){return uRo.merge}});var RWr=bWr();Object.defineProperty(ln,"TimeoutError",{enumerable:!0,get:function(){return RWr.TimeoutError}});Object.defineProperty(ln,"callWithTimeout",{enumerable:!0,get:function(){return RWr.callWithTimeout}});var NWr=SWr();Object.defineProperty(ln,"isUrlIgnored",{enumerable:!0,get:function(){return NWr.isUrlIgnored}});Object.defineProperty(ln,"urlMatches",{enumerable:!0,get:function(){return NWr.urlMatches}});var fRo=_Wr();Object.defineProperty(ln,"BindOnceFuture",{enumerable:!0,get:function(){return fRo.BindOnceFuture}});var dRo=TWr();Object.defineProperty(ln,"diagLogLevelFromString",{enumerable:!0,get:function(){return dRo.diagLogLevelFromString}});var pRo=IWr();ln.internal={_export:pRo._export}});var PWr=E(XRe=>{"use strict";Object.defineProperty(XRe,"__esModule",{value:!0});XRe.defaultServiceName=void 0;function hRo(){return`unknown_service:${process.argv0}`}XRe.defaultServiceName=hRo});var BWr=E(ZRe=>{"use strict";Object.defineProperty(ZRe,"__esModule",{value:!0});ZRe.defaultServiceName=void 0;var mRo=PWr();Object.defineProperty(ZRe,"defaultServiceName",{enumerable:!0,get:function(){return mRo.defaultServiceName}})});var I6t=E(eNe=>{"use strict";Object.defineProperty(eNe,"__esModule",{value:!0});eNe.defaultServiceName=void 0;var gRo=BWr();Object.defineProperty(eNe,"defaultServiceName",{enumerable:!0,get:function(){return gRo.defaultServiceName}})});var kWr=E(xte=>{"use strict";Object.defineProperty(xte,"__esModule",{value:!0});xte.identity=xte.isPromiseLike=void 0;var yRo=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";xte.isPromiseLike=yRo;function ARo(t){return t}xte.identity=ARo});var R6t=E(rI=>{"use strict";Object.defineProperty(rI,"__esModule",{value:!0});rI.defaultResource=rI.emptyResource=rI.resourceFromDetectedResource=rI.resourceFromAttributes=void 0;var x2e=(ut(),nt(xt)),D6t=w6t(),gV=(Wl(),nt(Uu)),vRo=I6t(),S2e=kWr(),tNe=class t{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(e,r){let o=new t({},r);return o._rawAttributes=MWr(e),o._asyncAttributesPending=e.filter(([s,a])=>(0,S2e.isPromiseLike)(a)).length>0,o}constructor(e,r){let o=e.attributes??{};this._rawAttributes=Object.entries(o).map(([s,a])=>((0,S2e.isPromiseLike)(a)&&(this._asyncAttributesPending=!0),[s,a])),this._rawAttributes=MWr(this._rawAttributes),this._schemaUrl=xRo(r?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){let[r,o]=this._rawAttributes[e];this._rawAttributes[e]=[r,(0,S2e.isPromiseLike)(o)?await o:o]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&x2e.diag.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let e={};for(let[r,o]of this._rawAttributes){if((0,S2e.isPromiseLike)(o)){x2e.diag.debug(`Unsettled resource attribute ${r} skipped`);continue}o!=null&&(e[r]??=o)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(e){if(e==null)return this;let r=_Ro(this,e),o=r?{schemaUrl:r}:void 0;return t.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()],o)}};function O6t(t,e){return tNe.FromAttributeList(Object.entries(t),e)}rI.resourceFromAttributes=O6t;function bRo(t,e){return new tNe(t,e)}rI.resourceFromDetectedResource=bRo;function ERo(){return O6t({})}rI.emptyResource=ERo;function SRo(){return O6t({[gV.ATTR_SERVICE_NAME]:(0,vRo.defaultServiceName)(),[gV.ATTR_TELEMETRY_SDK_LANGUAGE]:D6t.SDK_INFO[gV.ATTR_TELEMETRY_SDK_LANGUAGE],[gV.ATTR_TELEMETRY_SDK_NAME]:D6t.SDK_INFO[gV.ATTR_TELEMETRY_SDK_NAME],[gV.ATTR_TELEMETRY_SDK_VERSION]:D6t.SDK_INFO[gV.ATTR_TELEMETRY_SDK_VERSION]})}rI.defaultResource=SRo;function MWr(t){return t.map(([e,r])=>(0,S2e.isPromiseLike)(r)?[e,r.catch(o=>{x2e.diag.debug("promise rejection for resource attribute: %s - %s",e,o)})]:[e,r])}function xRo(t){if(typeof t=="string"||t===void 0)return t;x2e.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",t)}function _Ro(t,e){let r=t?.schemaUrl,o=e?.schemaUrl,s=r===void 0||r==="",a=o===void 0||o==="";if(s)return o;if(a||r===o)return r;x2e.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',r,o)}});var UWr=E(rNe=>{"use strict";Object.defineProperty(rNe,"__esModule",{value:!0});rNe.detectResources=void 0;var LWr=(ut(),nt(xt)),N6t=R6t(),CRo=(t={})=>(t.detectors||[]).map(r=>{try{let o=(0,N6t.resourceFromDetectedResource)(r.detect(t));return LWr.diag.debug(`${r.constructor.name} found resource.`,o),o}catch(o){return LWr.diag.debug(`${r.constructor.name} failed: ${o.message}`),(0,N6t.emptyResource)()}}).reduce((r,o)=>r.merge(o),(0,N6t.emptyResource)());rNe.detectResources=CRo});var QWr=E(nNe=>{"use strict";Object.defineProperty(nNe,"__esModule",{value:!0});nNe.envDetector=void 0;var TRo=(ut(),nt(xt)),wRo=(Wl(),nt(Uu)),FWr=w6t(),P6t=class{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";_ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.";_ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters.";detect(e){let r={},o=(0,FWr.getStringFromEnv)("OTEL_RESOURCE_ATTRIBUTES"),s=(0,FWr.getStringFromEnv)("OTEL_SERVICE_NAME");if(o)try{let a=this._parseResourceAttributes(o);Object.assign(r,a)}catch(a){TRo.diag.debug(`EnvDetector failed: ${a.message}`)}return s&&(r[wRo.ATTR_SERVICE_NAME]=s),{attributes:r}}_parseResourceAttributes(e){if(!e)return{};let r={},o=e.split(this._COMMA_SEPARATOR,-1);for(let s of o){let a=s.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(a.length!==2)continue;let[i,n]=a;if(i=i.trim(),n=n.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(i))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(n))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);r[i]=decodeURIComponent(n)}return r}_isValid(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)}_isBaggageOctetString(e){for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o<33||o===44||o===59||o===92||o>126)return!1}return!0}_isValidAndNotEmpty(e){return e.length>0&&this._isValid(e)}};nNe.envDetector=new P6t});var _2e=E(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.ATTR_WEBENGINE_VERSION=di.ATTR_WEBENGINE_NAME=di.ATTR_WEBENGINE_DESCRIPTION=di.ATTR_SERVICE_NAMESPACE=di.ATTR_SERVICE_INSTANCE_ID=di.ATTR_PROCESS_RUNTIME_VERSION=di.ATTR_PROCESS_RUNTIME_NAME=di.ATTR_PROCESS_RUNTIME_DESCRIPTION=di.ATTR_PROCESS_PID=di.ATTR_PROCESS_OWNER=di.ATTR_PROCESS_EXECUTABLE_PATH=di.ATTR_PROCESS_EXECUTABLE_NAME=di.ATTR_PROCESS_COMMAND_ARGS=di.ATTR_PROCESS_COMMAND=di.ATTR_OS_VERSION=di.ATTR_OS_TYPE=di.ATTR_K8S_POD_NAME=di.ATTR_K8S_NAMESPACE_NAME=di.ATTR_K8S_DEPLOYMENT_NAME=di.ATTR_K8S_CLUSTER_NAME=di.ATTR_HOST_TYPE=di.ATTR_HOST_NAME=di.ATTR_HOST_IMAGE_VERSION=di.ATTR_HOST_IMAGE_NAME=di.ATTR_HOST_IMAGE_ID=di.ATTR_HOST_ID=di.ATTR_HOST_ARCH=di.ATTR_CONTAINER_NAME=di.ATTR_CONTAINER_IMAGE_TAGS=di.ATTR_CONTAINER_IMAGE_NAME=di.ATTR_CONTAINER_ID=di.ATTR_CLOUD_REGION=di.ATTR_CLOUD_PROVIDER=di.ATTR_CLOUD_AVAILABILITY_ZONE=di.ATTR_CLOUD_ACCOUNT_ID=void 0;di.ATTR_CLOUD_ACCOUNT_ID="cloud.account.id";di.ATTR_CLOUD_AVAILABILITY_ZONE="cloud.availability_zone";di.ATTR_CLOUD_PROVIDER="cloud.provider";di.ATTR_CLOUD_REGION="cloud.region";di.ATTR_CONTAINER_ID="container.id";di.ATTR_CONTAINER_IMAGE_NAME="container.image.name";di.ATTR_CONTAINER_IMAGE_TAGS="container.image.tags";di.ATTR_CONTAINER_NAME="container.name";di.ATTR_HOST_ARCH="host.arch";di.ATTR_HOST_ID="host.id";di.ATTR_HOST_IMAGE_ID="host.image.id";di.ATTR_HOST_IMAGE_NAME="host.image.name";di.ATTR_HOST_IMAGE_VERSION="host.image.version";di.ATTR_HOST_NAME="host.name";di.ATTR_HOST_TYPE="host.type";di.ATTR_K8S_CLUSTER_NAME="k8s.cluster.name";di.ATTR_K8S_DEPLOYMENT_NAME="k8s.deployment.name";di.ATTR_K8S_NAMESPACE_NAME="k8s.namespace.name";di.ATTR_K8S_POD_NAME="k8s.pod.name";di.ATTR_OS_TYPE="os.type";di.ATTR_OS_VERSION="os.version";di.ATTR_PROCESS_COMMAND="process.command";di.ATTR_PROCESS_COMMAND_ARGS="process.command_args";di.ATTR_PROCESS_EXECUTABLE_NAME="process.executable.name";di.ATTR_PROCESS_EXECUTABLE_PATH="process.executable.path";di.ATTR_PROCESS_OWNER="process.owner";di.ATTR_PROCESS_PID="process.pid";di.ATTR_PROCESS_RUNTIME_DESCRIPTION="process.runtime.description";di.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name";di.ATTR_PROCESS_RUNTIME_VERSION="process.runtime.version";di.ATTR_SERVICE_INSTANCE_ID="service.instance.id";di.ATTR_SERVICE_NAMESPACE="service.namespace";di.ATTR_WEBENGINE_DESCRIPTION="webengine.description";di.ATTR_WEBENGINE_NAME="webengine.name";di.ATTR_WEBENGINE_VERSION="webengine.version"});var oNe=E(iNe=>{"use strict";Object.defineProperty(iNe,"__esModule",{value:!0});iNe.execAsync=void 0;var IRo=me("child_process"),DRo=me("util");iNe.execAsync=DRo.promisify(IRo.exec)});var qWr=E(sNe=>{"use strict";Object.defineProperty(sNe,"__esModule",{value:!0});sNe.getMachineId=void 0;var ORo=oNe(),RRo=(ut(),nt(xt));async function NRo(){try{let e=(await(0,ORo.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
|
|
773
773
|
`).find(o=>o.includes("IOPlatformUUID"));if(!e)return;let r=e.split('" = "');if(r.length===2)return r[1].slice(0,-1)}catch(t){RRo.diag.debug(`error reading machine id: ${t}`)}}sNe.getMachineId=NRo});var HWr=E(aNe=>{"use strict";Object.defineProperty(aNe,"__esModule",{value:!0});aNe.getMachineId=void 0;var PRo=me("fs"),BRo=(ut(),nt(xt));async function kRo(){let t=["/etc/machine-id","/var/lib/dbus/machine-id"];for(let e of t)try{return(await PRo.promises.readFile(e,{encoding:"utf8"})).trim()}catch(r){BRo.diag.debug(`error reading machine id: ${r}`)}}aNe.getMachineId=kRo});var GWr=E(cNe=>{"use strict";Object.defineProperty(cNe,"__esModule",{value:!0});cNe.getMachineId=void 0;var MRo=me("fs"),LRo=oNe(),VWr=(ut(),nt(xt));async function URo(){try{return(await MRo.promises.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(t){VWr.diag.debug(`error reading machine id: ${t}`)}try{return(await(0,LRo.execAsync)("kenv -q smbios.system.uuid")).stdout.trim()}catch(t){VWr.diag.debug(`error reading machine id: ${t}`)}}cNe.getMachineId=URo});var $Wr=E(lNe=>{"use strict";Object.defineProperty(lNe,"__esModule",{value:!0});lNe.getMachineId=void 0;var jWr=me("process"),FRo=oNe(),QRo=(ut(),nt(xt));async function qRo(){let t="QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",e="%windir%\\System32\\REG.exe";jWr.arch==="ia32"&&"PROCESSOR_ARCHITEW6432"in jWr.env&&(e="%windir%\\sysnative\\cmd.exe /c "+e);try{let o=(await(0,FRo.execAsync)(`${e} ${t}`)).stdout.split("REG_SZ");if(o.length===2)return o[1].trim()}catch(r){QRo.diag.debug(`error reading machine id: ${r}`)}}lNe.getMachineId=qRo});var WWr=E(uNe=>{"use strict";Object.defineProperty(uNe,"__esModule",{value:!0});uNe.getMachineId=void 0;var HRo=(ut(),nt(xt));async function VRo(){HRo.diag.debug("could not read machine-id: unsupported platform")}uNe.getMachineId=VRo});var zWr=E(fNe=>{"use strict";Object.defineProperty(fNe,"__esModule",{value:!0});fNe.getMachineId=void 0;var GRo=me("process"),yV;async function jRo(){if(!yV)switch(GRo.platform){case"darwin":yV=(await Promise.resolve().then(()=>we(qWr()))).getMachineId;break;case"linux":yV=(await Promise.resolve().then(()=>we(HWr()))).getMachineId;break;case"freebsd":yV=(await Promise.resolve().then(()=>we(GWr()))).getMachineId;break;case"win32":yV=(await Promise.resolve().then(()=>we($Wr()))).getMachineId;break;default:yV=(await Promise.resolve().then(()=>we(WWr()))).getMachineId;break}return yV()}fNe.getMachineId=jRo});var B6t=E(_te=>{"use strict";Object.defineProperty(_te,"__esModule",{value:!0});_te.normalizeType=_te.normalizeArch=void 0;var $Ro=t=>{switch(t){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return t}};_te.normalizeArch=$Ro;var WRo=t=>{switch(t){case"sunos":return"solaris";case"win32":return"windows";default:return t}};_te.normalizeType=WRo});var YWr=E(dNe=>{"use strict";Object.defineProperty(dNe,"__esModule",{value:!0});dNe.hostDetector=void 0;var k6t=_2e(),KWr=me("os"),zRo=zWr(),KRo=B6t(),M6t=class{detect(e){return{attributes:{[k6t.ATTR_HOST_NAME]:(0,KWr.hostname)(),[k6t.ATTR_HOST_ARCH]:(0,KRo.normalizeArch)((0,KWr.arch)()),[k6t.ATTR_HOST_ID]:(0,zRo.getMachineId)()}}}};dNe.hostDetector=new M6t});var ZWr=E(pNe=>{"use strict";Object.defineProperty(pNe,"__esModule",{value:!0});pNe.osDetector=void 0;var JWr=_2e(),XWr=me("os"),YRo=B6t(),L6t=class{detect(e){return{attributes:{[JWr.ATTR_OS_TYPE]:(0,YRo.normalizeType)((0,XWr.platform)()),[JWr.ATTR_OS_VERSION]:(0,XWr.release)()}}}};pNe.osDetector=new L6t});var ezr=E(hNe=>{"use strict";Object.defineProperty(hNe,"__esModule",{value:!0});hNe.processDetector=void 0;var JRo=(ut(),nt(xt)),oO=_2e(),XRo=me("os"),U6t=class{detect(e){let r={[oO.ATTR_PROCESS_PID]:process.pid,[oO.ATTR_PROCESS_EXECUTABLE_NAME]:process.title,[oO.ATTR_PROCESS_EXECUTABLE_PATH]:process.execPath,[oO.ATTR_PROCESS_COMMAND_ARGS]:[process.argv[0],...process.execArgv,...process.argv.slice(1)],[oO.ATTR_PROCESS_RUNTIME_VERSION]:process.versions.node,[oO.ATTR_PROCESS_RUNTIME_NAME]:"nodejs",[oO.ATTR_PROCESS_RUNTIME_DESCRIPTION]:"Node.js"};process.argv.length>1&&(r[oO.ATTR_PROCESS_COMMAND]=process.argv[1]);try{let o=XRo.userInfo();r[oO.ATTR_PROCESS_OWNER]=o.username}catch(o){JRo.diag.debug(`error obtaining process owner: ${o}`)}return{attributes:r}}};hNe.processDetector=new U6t});var tzr=E(mNe=>{"use strict";Object.defineProperty(mNe,"__esModule",{value:!0});mNe.serviceInstanceIdDetector=void 0;var ZRo=_2e(),eNo=me("crypto"),F6t=class{detect(e){return{attributes:{[ZRo.ATTR_SERVICE_INSTANCE_ID]:(0,eNo.randomUUID)()}}}};mNe.serviceInstanceIdDetector=new F6t});var rzr=E(nI=>{"use strict";Object.defineProperty(nI,"__esModule",{value:!0});nI.serviceInstanceIdDetector=nI.processDetector=nI.osDetector=nI.hostDetector=void 0;var tNo=YWr();Object.defineProperty(nI,"hostDetector",{enumerable:!0,get:function(){return tNo.hostDetector}});var rNo=ZWr();Object.defineProperty(nI,"osDetector",{enumerable:!0,get:function(){return rNo.osDetector}});var nNo=ezr();Object.defineProperty(nI,"processDetector",{enumerable:!0,get:function(){return nNo.processDetector}});var iNo=tzr();Object.defineProperty(nI,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return iNo.serviceInstanceIdDetector}})});var nzr=E(iI=>{"use strict";Object.defineProperty(iI,"__esModule",{value:!0});iI.serviceInstanceIdDetector=iI.processDetector=iI.osDetector=iI.hostDetector=void 0;var gNe=rzr();Object.defineProperty(iI,"hostDetector",{enumerable:!0,get:function(){return gNe.hostDetector}});Object.defineProperty(iI,"osDetector",{enumerable:!0,get:function(){return gNe.osDetector}});Object.defineProperty(iI,"processDetector",{enumerable:!0,get:function(){return gNe.processDetector}});Object.defineProperty(iI,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return gNe.serviceInstanceIdDetector}})});var izr=E(Cte=>{"use strict";Object.defineProperty(Cte,"__esModule",{value:!0});Cte.noopDetector=Cte.NoopDetector=void 0;var yNe=class{detect(){return{attributes:{}}}};Cte.NoopDetector=yNe;Cte.noopDetector=new yNe});var ozr=E(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0});Dv.noopDetector=Dv.serviceInstanceIdDetector=Dv.processDetector=Dv.osDetector=Dv.hostDetector=Dv.envDetector=void 0;var oNo=QWr();Object.defineProperty(Dv,"envDetector",{enumerable:!0,get:function(){return oNo.envDetector}});var ANe=nzr();Object.defineProperty(Dv,"hostDetector",{enumerable:!0,get:function(){return ANe.hostDetector}});Object.defineProperty(Dv,"osDetector",{enumerable:!0,get:function(){return ANe.osDetector}});Object.defineProperty(Dv,"processDetector",{enumerable:!0,get:function(){return ANe.processDetector}});Object.defineProperty(Dv,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return ANe.serviceInstanceIdDetector}});var sNo=izr();Object.defineProperty(Dv,"noopDetector",{enumerable:!0,get:function(){return sNo.noopDetector}})});var Ok=E(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});Jp.defaultServiceName=Jp.emptyResource=Jp.defaultResource=Jp.resourceFromAttributes=Jp.serviceInstanceIdDetector=Jp.processDetector=Jp.osDetector=Jp.hostDetector=Jp.envDetector=Jp.detectResources=void 0;var aNo=UWr();Object.defineProperty(Jp,"detectResources",{enumerable:!0,get:function(){return aNo.detectResources}});var C2e=ozr();Object.defineProperty(Jp,"envDetector",{enumerable:!0,get:function(){return C2e.envDetector}});Object.defineProperty(Jp,"hostDetector",{enumerable:!0,get:function(){return C2e.hostDetector}});Object.defineProperty(Jp,"osDetector",{enumerable:!0,get:function(){return C2e.osDetector}});Object.defineProperty(Jp,"processDetector",{enumerable:!0,get:function(){return C2e.processDetector}});Object.defineProperty(Jp,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return C2e.serviceInstanceIdDetector}});var Q6t=R6t();Object.defineProperty(Jp,"resourceFromAttributes",{enumerable:!0,get:function(){return Q6t.resourceFromAttributes}});Object.defineProperty(Jp,"defaultResource",{enumerable:!0,get:function(){return Q6t.defaultResource}});Object.defineProperty(Jp,"emptyResource",{enumerable:!0,get:function(){return Q6t.emptyResource}});var cNo=I6t();Object.defineProperty(Jp,"defaultServiceName",{enumerable:!0,get:function(){return cNo.defaultServiceName}})});var szr=E(vNe=>{"use strict";Object.defineProperty(vNe,"__esModule",{value:!0});vNe.ViewRegistry=void 0;var q6t=class{_registeredViews=[];addView(e){this._registeredViews.push(e)}findViews(e,r){return this._registeredViews.filter(s=>this._matchInstrument(s.instrumentSelector,e)&&this._matchMeter(s.meterSelector,r))}_matchInstrument(e,r){return(e.getType()===void 0||r.type===e.getType())&&e.getNameFilter().match(r.name)&&e.getUnitFilter().match(r.unit)}_matchMeter(e,r){return e.getNameFilter().match(r.name)&&(r.version===void 0||e.getVersionFilter().match(r.version))&&(r.schemaUrl===void 0||e.getSchemaUrlFilter().match(r.schemaUrl))}};vNe.ViewRegistry=q6t});var T2e=E(oI=>{"use strict";Object.defineProperty(oI,"__esModule",{value:!0});oI.isValidName=oI.isDescriptorCompatibleWith=oI.createInstrumentDescriptorWithView=oI.createInstrumentDescriptor=void 0;var azr=(ut(),nt(xt)),lNo=G4();function uNo(t,e,r){return czr(t)||azr.diag.warn(`Invalid metric name: "${t}". The metric name should be a ASCII string with a length no greater than 255 characters.`),{name:t,type:e,description:r?.description??"",unit:r?.unit??"",valueType:r?.valueType??azr.ValueType.DOUBLE,advice:r?.advice??{}}}oI.createInstrumentDescriptor=uNo;function fNo(t,e){return{name:t.name??e.name,description:t.description??e.description,type:e.type,unit:e.unit,valueType:e.valueType,advice:e.advice}}oI.createInstrumentDescriptorWithView=fNo;function dNo(t,e){return(0,lNo.equalsCaseInsensitive)(t.name,e.name)&&t.unit===e.unit&&t.type===e.type&&t.valueType===e.valueType}oI.isDescriptorCompatibleWith=dNo;var pNo=/^[a-z][a-z0-9_.\-/]{0,254}$/i;function czr(t){return t.match(pNo)!=null}oI.isValidName=czr});var bNe=E(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});Xp.isObservableInstrument=Xp.ObservableUpDownCounterInstrument=Xp.ObservableGaugeInstrument=Xp.ObservableCounterInstrument=Xp.ObservableInstrument=Xp.HistogramInstrument=Xp.GaugeInstrument=Xp.CounterInstrument=Xp.UpDownCounterInstrument=Xp.SyncInstrument=void 0;var Tte=(ut(),nt(xt)),hNo=cV(),AV=class{_writableMetricStorage;_descriptor;constructor(e,r){this._writableMetricStorage=e,this._descriptor=r}_record(e,r={},o=Tte.context.active()){if(typeof e!="number"){Tte.diag.warn(`non-number value provided to metric ${this._descriptor.name}: ${e}`);return}this._descriptor.valueType===Tte.ValueType.INT&&!Number.isInteger(e)&&(Tte.diag.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),e=Math.trunc(e),!Number.isInteger(e))||this._writableMetricStorage.record(e,r,o,(0,hNo.millisToHrTime)(Date.now()))}};Xp.SyncInstrument=AV;var H6t=class extends AV{add(e,r,o){this._record(e,r,o)}};Xp.UpDownCounterInstrument=H6t;var V6t=class extends AV{add(e,r,o){if(e<0){Tte.diag.warn(`negative value provided to counter ${this._descriptor.name}: ${e}`);return}this._record(e,r,o)}};Xp.CounterInstrument=V6t;var G6t=class extends AV{record(e,r,o){this._record(e,r,o)}};Xp.GaugeInstrument=G6t;var j6t=class extends AV{record(e,r,o){if(e<0){Tte.diag.warn(`negative value provided to histogram ${this._descriptor.name}: ${e}`);return}this._record(e,r,o)}};Xp.HistogramInstrument=j6t;var vV=class{_observableRegistry;_metricStorages;_descriptor;constructor(e,r,o){this._observableRegistry=o,this._descriptor=e,this._metricStorages=r}addCallback(e){this._observableRegistry.addCallback(e,this)}removeCallback(e){this._observableRegistry.removeCallback(e,this)}};Xp.ObservableInstrument=vV;var $6t=class extends vV{};Xp.ObservableCounterInstrument=$6t;var W6t=class extends vV{};Xp.ObservableGaugeInstrument=W6t;var z6t=class extends vV{};Xp.ObservableUpDownCounterInstrument=z6t;function mNo(t){return t instanceof vV}Xp.isObservableInstrument=mNo});var lzr=E(ENe=>{"use strict";Object.defineProperty(ENe,"__esModule",{value:!0});ENe.Meter=void 0;var bV=T2e(),EV=bNe(),SV=bk(),K6t=class{_meterSharedState;constructor(e){this._meterSharedState=e}createGauge(e,r){let o=(0,bV.createInstrumentDescriptor)(e,SV.InstrumentType.GAUGE,r),s=this._meterSharedState.registerMetricStorage(o);return new EV.GaugeInstrument(s,o)}createHistogram(e,r){let o=(0,bV.createInstrumentDescriptor)(e,SV.InstrumentType.HISTOGRAM,r),s=this._meterSharedState.registerMetricStorage(o);return new EV.HistogramInstrument(s,o)}createCounter(e,r){let o=(0,bV.createInstrumentDescriptor)(e,SV.InstrumentType.COUNTER,r),s=this._meterSharedState.registerMetricStorage(o);return new EV.CounterInstrument(s,o)}createUpDownCounter(e,r){let o=(0,bV.createInstrumentDescriptor)(e,SV.InstrumentType.UP_DOWN_COUNTER,r),s=this._meterSharedState.registerMetricStorage(o);return new EV.UpDownCounterInstrument(s,o)}createObservableGauge(e,r){let o=(0,bV.createInstrumentDescriptor)(e,SV.InstrumentType.OBSERVABLE_GAUGE,r),s=this._meterSharedState.registerAsyncMetricStorage(o);return new EV.ObservableGaugeInstrument(o,s,this._meterSharedState.observableRegistry)}createObservableCounter(e,r){let o=(0,bV.createInstrumentDescriptor)(e,SV.InstrumentType.OBSERVABLE_COUNTER,r),s=this._meterSharedState.registerAsyncMetricStorage(o);return new EV.ObservableCounterInstrument(o,s,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(e,r){let o=(0,bV.createInstrumentDescriptor)(e,SV.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER,r),s=this._meterSharedState.registerAsyncMetricStorage(o);return new EV.ObservableUpDownCounterInstrument(o,s,this._meterSharedState.observableRegistry)}addBatchObservableCallback(e,r){this._meterSharedState.observableRegistry.addBatchCallback(e,r)}removeBatchObservableCallback(e,r){this._meterSharedState.observableRegistry.removeBatchCallback(e,r)}};ENe.Meter=K6t});var J6t=E(SNe=>{"use strict";Object.defineProperty(SNe,"__esModule",{value:!0});SNe.MetricStorage=void 0;var gNo=T2e(),Y6t=class{_instrumentDescriptor;constructor(e){this._instrumentDescriptor=e}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(e){this._instrumentDescriptor=(0,gNo.createInstrumentDescriptor)(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:e,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}};SNe.MetricStorage=Y6t});var w2e=E(wte=>{"use strict";Object.defineProperty(wte,"__esModule",{value:!0});wte.AttributeHashMap=wte.HashMap=void 0;var yNo=G4(),xNe=class{_hash;_valueMap=new Map;_keyMap=new Map;constructor(e){this._hash=e}get(e,r){return r??=this._hash(e),this._valueMap.get(r)}getOrDefault(e,r){let o=this._hash(e);if(this._valueMap.has(o))return this._valueMap.get(o);let s=r();return this._keyMap.has(o)||this._keyMap.set(o,e),this._valueMap.set(o,s),s}set(e,r,o){o??=this._hash(e),this._keyMap.has(o)||this._keyMap.set(o,e),this._valueMap.set(o,r)}has(e,r){return r??=this._hash(e),this._valueMap.has(r)}*keys(){let e=this._keyMap.entries(),r=e.next();for(;r.done!==!0;)yield[r.value[1],r.value[0]],r=e.next()}*entries(){let e=this._valueMap.entries(),r=e.next();for(;r.done!==!0;)yield[this._keyMap.get(r.value[0]),r.value[1],r.value[0]],r=e.next()}get size(){return this._valueMap.size}};wte.HashMap=xNe;var X6t=class extends xNe{constructor(){super(yNo.hashAttributes)}};wte.AttributeHashMap=X6t});var twt=E(_Ne=>{"use strict";Object.defineProperty(_Ne,"__esModule",{value:!0});_Ne.DeltaMetricProcessor=void 0;var ANo=G4(),Z6t=w2e(),ewt=class{_aggregator;_activeCollectionStorage=new Z6t.AttributeHashMap;_cumulativeMemoStorage=new Z6t.AttributeHashMap;_cardinalityLimit;_overflowAttributes={"otel.metric.overflow":!0};_overflowHashCode;constructor(e,r){this._aggregator=e,this._cardinalityLimit=(r??2e3)-1,this._overflowHashCode=(0,ANo.hashAttributes)(this._overflowAttributes)}record(e,r,o,s){let a=this._activeCollectionStorage.get(r);if(!a){if(this._activeCollectionStorage.size>=this._cardinalityLimit){this._activeCollectionStorage.getOrDefault(this._overflowAttributes,()=>this._aggregator.createAccumulation(s))?.record(e);return}a=this._aggregator.createAccumulation(s),this._activeCollectionStorage.set(r,a)}a?.record(e)}batchCumulate(e,r){Array.from(e.entries()).forEach(([o,s,a])=>{let i=this._aggregator.createAccumulation(r);i?.record(s);let n=i;if(this._cumulativeMemoStorage.has(o,a)){let c=this._cumulativeMemoStorage.get(o,a);n=this._aggregator.diff(c,i)}else if(this._cumulativeMemoStorage.size>=this._cardinalityLimit&&(o=this._overflowAttributes,a=this._overflowHashCode,this._cumulativeMemoStorage.has(o,a))){let c=this._cumulativeMemoStorage.get(o,a);n=this._aggregator.diff(c,i)}if(this._activeCollectionStorage.has(o,a)){let c=this._activeCollectionStorage.get(o,a);n=this._aggregator.merge(c,n)}this._cumulativeMemoStorage.set(o,i,a),this._activeCollectionStorage.set(o,n,a)})}collect(){let e=this._activeCollectionStorage;return this._activeCollectionStorage=new Z6t.AttributeHashMap,e}};_Ne.DeltaMetricProcessor=ewt});var nwt=E(CNe=>{"use strict";Object.defineProperty(CNe,"__esModule",{value:!0});CNe.TemporalMetricProcessor=void 0;var vNo=ROe(),bNo=w2e(),rwt=class t{_aggregator;_unreportedAccumulations=new Map;_reportHistory=new Map;constructor(e,r){this._aggregator=e,r.forEach(o=>{this._unreportedAccumulations.set(o,[])})}buildMetrics(e,r,o,s){this._stashAccumulations(o);let a=this._getMergedUnreportedAccumulations(e),i=a,n;if(this._reportHistory.has(e)){let u=this._reportHistory.get(e),f=u.collectionTime;n=u.aggregationTemporality,n===vNo.AggregationTemporality.CUMULATIVE?i=t.merge(u.accumulations,a,this._aggregator):i=t.calibrateStartTime(u.accumulations,a,f)}else n=e.selectAggregationTemporality(r.type);this._reportHistory.set(e,{accumulations:i,collectionTime:s,aggregationTemporality:n});let c=ENo(i);if(c.length!==0)return this._aggregator.toMetricData(r,n,c,s)}_stashAccumulations(e){let r=this._unreportedAccumulations.keys();for(let o of r){let s=this._unreportedAccumulations.get(o);s===void 0&&(s=[],this._unreportedAccumulations.set(o,s)),s.push(e)}}_getMergedUnreportedAccumulations(e){let r=new bNo.AttributeHashMap,o=this._unreportedAccumulations.get(e);if(this._unreportedAccumulations.set(e,[]),o===void 0)return r;for(let s of o)r=t.merge(r,s,this._aggregator);return r}static merge(e,r,o){let s=e,a=r.entries(),i=a.next();for(;i.done!==!0;){let[n,c,u]=i.value;if(e.has(n,u)){let f=e.get(n,u),d=o.merge(f,c);s.set(n,d,u)}else s.set(n,c,u);i=a.next()}return s}static calibrateStartTime(e,r,o){for(let[s,a]of e.keys())r.get(s,a)?.setStartTime(o);return r}};CNe.TemporalMetricProcessor=rwt;function ENo(t){return Array.from(t.entries())}});var uzr=E(TNe=>{"use strict";Object.defineProperty(TNe,"__esModule",{value:!0});TNe.AsyncMetricStorage=void 0;var SNo=J6t(),xNo=twt(),_No=nwt(),CNo=w2e(),iwt=class extends SNo.MetricStorage{_attributesProcessor;_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;constructor(e,r,o,s,a){super(e),this._attributesProcessor=o,this._aggregationCardinalityLimit=a,this._deltaMetricStorage=new xNo.DeltaMetricProcessor(r,this._aggregationCardinalityLimit),this._temporalMetricStorage=new _No.TemporalMetricProcessor(r,s)}record(e,r){let o=new CNo.AttributeHashMap;Array.from(e.entries()).forEach(([s,a])=>{o.set(this._attributesProcessor.process(s),a)}),this._deltaMetricStorage.batchCumulate(o,r)}collect(e,r){let o=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(e,this._instrumentDescriptor,o,r)}};TNe.AsyncMetricStorage=iwt});var mzr=E(Ov=>{"use strict";Object.defineProperty(Ov,"__esModule",{value:!0});Ov.getConflictResolutionRecipe=Ov.getDescriptionResolutionRecipe=Ov.getTypeConflictResolutionRecipe=Ov.getUnitConflictResolutionRecipe=Ov.getValueTypeConflictResolutionRecipe=Ov.getIncompatibilityDetails=void 0;function TNo(t,e){let r="";return t.unit!==e.unit&&(r+=` - Unit '${t.unit}' does not match '${e.unit}'
|
|
774
774
|
`),t.type!==e.type&&(r+=` - Type '${t.type}' does not match '${e.type}'
|
|
775
775
|
`),t.valueType!==e.valueType&&(r+=` - Value Type '${t.valueType}' does not match '${e.valueType}'
|
|
@@ -891,14 +891,14 @@ Otherwise navigate to:
|
|
|
891
891
|
|
|
892
892
|
${e}
|
|
893
893
|
|
|
894
|
-
`);try{(await z1(e)).on("error",a=>{throw new Error(`BROWSER_LAUNCH_FAILED: Failed to open browser automatically: ${a.message}. Please navigate to the URL manually.`)})}catch(s){throw new Error(`BROWSER_LAUNCH_FAILED: An unexpected error occurred while trying to open the browser: ${s}. Please navigate to the URL manually.`)}console.log("Waiting for authentication...");let o=0;for(;o<r.maxRetries;){await a6n(r.pollInterval);let s=await c6n(t,r);if(s.isSuccess()){let a=s.getPrivateToken();return await qO.savePrivateToken(a),console.log("Aone authentication successful!"),!0}s.getError()&&console.log(`Waiting for authentication... (${o+1}/${r.maxRetries})`),o++}throw new Error("Authentication timeout. Please try again.")}async function cYe(t=new Nie){return await qO.hasValidToken()?(console.log("Using cached Aone authentication."),!0):await l6n(t)}async function U8(){return await qO.loadPrivateToken()}async function lYe(){await qO.clearPrivateToken(),console.log("Aone authentication cleared.")}async function sws(){return await qO.hasValidToken()}async function aws(t=new Nie){return await lYe(),await cYe(t)}var uYe=j(()=>{"use strict";gFt();V7();i6n();o6n();s6n();});async function yFt(t,e,r,o){if(e===br.LOGIN_WITH_IFLOW){let s=await LH(e,r),a=await P4();if(!a)throw new Error("No API key found. Please re-authenticate.");let i=r.getContentGeneratorConfig();return new oj({model:r.getModel(),apiKey:a,baseUrl:i?.baseUrl||i3e,authType:e,debugMode:r.getDebugMode(),multimodalModelName:"qwen3-vl-plus",config:r})}if(e===br.LOGIN_WITH_AONE){if(!await cYe())throw new Error("Aone authentication failed. Please try again.");let a=await U8();if(!a)throw new Error("No Aone private token found. Please re-authenticate.");let i=r.getContentGeneratorConfig(),n=Buffer.from(a,"utf8").toString("base64");return new oj({model:r.getModel(),apiKey:n,baseUrl:i?.baseUrl||"https://ducky.code.alibaba-inc.com/v1/openai",authType:e,debugMode:r.getDebugMode(),multimodalModelName:i?.multimodalModelName,config:r})}if(e===br.CLOUD_SHELL){let s=await LH(e,r),a=await vRr(s);return new j7(s,a.projectId,t,o,a.userTier)}throw new Error(`Unsupported authType: ${e}`)}var AFt=j(()=>{"use strict";IE();PB();bRr();g9e();lFt();x6();uYe();});function cws(t){return t.replace(/([a-z])([A-Z])/g,"$1_$2").toUpperCase()}function F8(t){let e=cws(t),r=`IFLOW_${t}`;if(process.env[r])return process.env[r];let o=`IFLOW_${e}`;if(process.env[o])return process.env[o];let s=`iflow_${t}`;if(process.env[s])return process.env[s];let a=`iflow_${e}`;if(process.env[a])return process.env[a]}function c3e(){return F8("apiKey")}function l3e(){return F8("baseUrl")||F8("url")}function u3e(){return F8("modelName")||F8("model")}function u6n(t){let e=F8(t);if(e===void 0)return;let r=e.toLowerCase();if(r==="true"||r==="1"||r==="yes")return!0;if(r==="false"||r==="0"||r==="no")return!1}function f6n(t){let e=F8(t);if(e===void 0)return;let r=Number(e);return isNaN(r)?void 0:r}function d6n(t){let e=F8(t);if(e!==void 0)return e.split(",").map(r=>r.trim()).filter(r=>r.length>0)}function fYe(){return!!(c3e()||l3e()||u3e())}function vFt(){let t={},e=["theme","selectedAuthType","sandbox","toolDiscoveryCommand","toolCallCommand","mcpServerCommand","contextFileName","preferredEditor","apiKey","baseUrl","modelName","searchApiKey","multimodalModelName","memoryImportFormat"],r=["useExternalAuth","showMemoryUsage","usageStatisticsEnabled","autoConfigureMaxOldSpaceSize","hideWindowTitle","hideTips","hideBanner","vimMode","ideModeFeature","ideMode","disableAutoUpdate","skipNextSpeakerCheck","useRipgrep","debugKeystrokeLogging","pasteFromClipboard"],o=["maxSessionTurns","memoryDiscoveryMaxDirs","tokensLimit","compressionTokenThreshold","shellTimeout","temperature","topP"],s=["coreTools","excludeTools","allowMCPServers","excludeMCPServers"];return e.forEach(a=>{let i=F8(a);i!==void 0&&(t[a]=i)}),r.forEach(a=>{let i=u6n(a);i!==void 0&&(t[a]=i)}),o.forEach(a=>{let i=f6n(a);i!==void 0&&(t[a]=i)}),s.forEach(a=>{let i=d6n(a);i!==void 0&&(t[a]=i)}),t}function lws(){return{apiKey:c3e(),baseUrl:l3e(),model:u3e()}}var bFt=j(()=>{"use strict";});async function EFt(t,e,r){await vee()&&(await h9e()||console.log("OAuth2 credentials cleared due to expiration. Please authenticate when prompted."));let s=c3e(),a=l3e(),i=u3e(),n=r?.apiKey||s,c=r?.baseUrl||a||uws[e],u=t.getModel()||i||HE,f={model:u,authType:e,proxy:t?.getProxy(),debugMode:t?.getDebugMode(),config:t};return e===br.CLOUD_SHELL?f:e===br.LOGIN_WITH_IFLOW?(f.baseUrl=c||i3e,f.multimodalModelName="qwen3-vl-plus",n&&(f.apiKey=n),f):([...VE,br.OPENAI_COMPATIBLE].includes(e)&&n&&(f.apiKey=n,f.baseUrl=c,f.model=u),f)}async function SFt(t,e,r){let s={headers:{"User-Agent":`iFlowCLI/0.3.14-beta.
|
|
894
|
+
`);try{(await z1(e)).on("error",a=>{throw new Error(`BROWSER_LAUNCH_FAILED: Failed to open browser automatically: ${a.message}. Please navigate to the URL manually.`)})}catch(s){throw new Error(`BROWSER_LAUNCH_FAILED: An unexpected error occurred while trying to open the browser: ${s}. Please navigate to the URL manually.`)}console.log("Waiting for authentication...");let o=0;for(;o<r.maxRetries;){await a6n(r.pollInterval);let s=await c6n(t,r);if(s.isSuccess()){let a=s.getPrivateToken();return await qO.savePrivateToken(a),console.log("Aone authentication successful!"),!0}s.getError()&&console.log(`Waiting for authentication... (${o+1}/${r.maxRetries})`),o++}throw new Error("Authentication timeout. Please try again.")}async function cYe(t=new Nie){return await qO.hasValidToken()?(console.log("Using cached Aone authentication."),!0):await l6n(t)}async function U8(){return await qO.loadPrivateToken()}async function lYe(){await qO.clearPrivateToken(),console.log("Aone authentication cleared.")}async function sws(){return await qO.hasValidToken()}async function aws(t=new Nie){return await lYe(),await cYe(t)}var uYe=j(()=>{"use strict";gFt();V7();i6n();o6n();s6n();});async function yFt(t,e,r,o){if(e===br.LOGIN_WITH_IFLOW){let s=await LH(e,r),a=await P4();if(!a)throw new Error("No API key found. Please re-authenticate.");let i=r.getContentGeneratorConfig();return new oj({model:r.getModel(),apiKey:a,baseUrl:i?.baseUrl||i3e,authType:e,debugMode:r.getDebugMode(),multimodalModelName:"qwen3-vl-plus",config:r})}if(e===br.LOGIN_WITH_AONE){if(!await cYe())throw new Error("Aone authentication failed. Please try again.");let a=await U8();if(!a)throw new Error("No Aone private token found. Please re-authenticate.");let i=r.getContentGeneratorConfig(),n=Buffer.from(a,"utf8").toString("base64");return new oj({model:r.getModel(),apiKey:n,baseUrl:i?.baseUrl||"https://ducky.code.alibaba-inc.com/v1/openai",authType:e,debugMode:r.getDebugMode(),multimodalModelName:i?.multimodalModelName,config:r})}if(e===br.CLOUD_SHELL){let s=await LH(e,r),a=await vRr(s);return new j7(s,a.projectId,t,o,a.userTier)}throw new Error(`Unsupported authType: ${e}`)}var AFt=j(()=>{"use strict";IE();PB();bRr();g9e();lFt();x6();uYe();});function cws(t){return t.replace(/([a-z])([A-Z])/g,"$1_$2").toUpperCase()}function F8(t){let e=cws(t),r=`IFLOW_${t}`;if(process.env[r])return process.env[r];let o=`IFLOW_${e}`;if(process.env[o])return process.env[o];let s=`iflow_${t}`;if(process.env[s])return process.env[s];let a=`iflow_${e}`;if(process.env[a])return process.env[a]}function c3e(){return F8("apiKey")}function l3e(){return F8("baseUrl")||F8("url")}function u3e(){return F8("modelName")||F8("model")}function u6n(t){let e=F8(t);if(e===void 0)return;let r=e.toLowerCase();if(r==="true"||r==="1"||r==="yes")return!0;if(r==="false"||r==="0"||r==="no")return!1}function f6n(t){let e=F8(t);if(e===void 0)return;let r=Number(e);return isNaN(r)?void 0:r}function d6n(t){let e=F8(t);if(e!==void 0)return e.split(",").map(r=>r.trim()).filter(r=>r.length>0)}function fYe(){return!!(c3e()||l3e()||u3e())}function vFt(){let t={},e=["theme","selectedAuthType","sandbox","toolDiscoveryCommand","toolCallCommand","mcpServerCommand","contextFileName","preferredEditor","apiKey","baseUrl","modelName","searchApiKey","multimodalModelName","memoryImportFormat"],r=["useExternalAuth","showMemoryUsage","usageStatisticsEnabled","autoConfigureMaxOldSpaceSize","hideWindowTitle","hideTips","hideBanner","vimMode","ideModeFeature","ideMode","disableAutoUpdate","skipNextSpeakerCheck","useRipgrep","debugKeystrokeLogging","pasteFromClipboard"],o=["maxSessionTurns","memoryDiscoveryMaxDirs","tokensLimit","compressionTokenThreshold","shellTimeout","temperature","topP"],s=["coreTools","excludeTools","allowMCPServers","excludeMCPServers"];return e.forEach(a=>{let i=F8(a);i!==void 0&&(t[a]=i)}),r.forEach(a=>{let i=u6n(a);i!==void 0&&(t[a]=i)}),o.forEach(a=>{let i=f6n(a);i!==void 0&&(t[a]=i)}),s.forEach(a=>{let i=d6n(a);i!==void 0&&(t[a]=i)}),t}function lws(){return{apiKey:c3e(),baseUrl:l3e(),model:u3e()}}var bFt=j(()=>{"use strict";});async function EFt(t,e,r){await vee()&&(await h9e()||console.log("OAuth2 credentials cleared due to expiration. Please authenticate when prompted."));let s=c3e(),a=l3e(),i=u3e(),n=r?.apiKey||s,c=r?.baseUrl||a||uws[e],u=t.getModel()||i||HE,f={model:u,authType:e,proxy:t?.getProxy(),debugMode:t?.getDebugMode(),config:t};return e===br.CLOUD_SHELL?f:e===br.LOGIN_WITH_IFLOW?(f.baseUrl=c||i3e,f.multimodalModelName="qwen3-vl-plus",n&&(f.apiKey=n),f):([...VE,br.OPENAI_COMPATIBLE].includes(e)&&n&&(f.apiKey=n,f.baseUrl=c,f.model=u),f)}async function SFt(t,e,r){let s={headers:{"User-Agent":`iFlowCLI/0.3.14-beta.5 (${process.platform}; ${process.arch})`}};if(t.authType&&[...VE,br.IDEA_LAB].includes(t.authType)||t.authType===br.OPENAI_COMPATIBLE)return new oj({...t,config:e});if(t.authType===br.LOGIN_WITH_IFLOW||t.authType===br.LOGIN_WITH_AONE||t.authType===br.CLOUD_SHELL)return yFt(s,t.authType,e,r);throw new Error(`Error creating contentGenerator: Unsupported authType: ${t.authType}`)}var br,VE,uws,IE=j(()=>{"use strict";AFt();x6();lFt();bFt();PB();(function(t){t.LOGIN_WITH_IFLOW="oauth-iflow",t.LOGIN_WITH_AONE="oauth-aone",t.CLOUD_SHELL="cloud-shell",t.IFLOW="iflow",t.AONE="aone",t.IDEA_LAB="idealab",t.OPENAI_COMPATIBLE="openai-compatible"})(br||(br={}));VE=[br.IFLOW,br.AONE],uws={[br.IDEA_LAB]:"https://idealab.alibaba-inc.com/api/openai/v1",[br.IFLOW]:i3e,[br.AONE]:U4n}});var dYe,p6n=j(()=>{"use strict";dYe=class{prompts=new Map;registerPrompt(e){if(this.prompts.has(e.name)){let r=`${e.serverName}_${e.name}`;console.warn(`Prompt with name "${e.name}" is already registered. Renaming to "${r}".`),this.prompts.set(r,{...e,name:r})}else this.prompts.set(e.name,e)}getAllPrompts(){return Array.from(this.prompts.values()).sort((e,r)=>e.name.localeCompare(r.name))}getPrompt(e){return this.prompts.get(e)}getPromptsByServer(e){let r=[];for(let o of this.prompts.values())o.serverName===e&&r.push(o);return r.sort((o,s)=>o.name.localeCompare(s.name))}clear(){this.prompts.clear()}removePromptsByServer(e){for(let[r,o]of this.prompts.entries())o.serverName===e&&this.prompts.delete(r)}}});var Kn,GE=j(()=>{"use strict";(function(t){t.INVALID_TOOL_PARAMS="invalid_tool_params",t.UNKNOWN="unknown",t.UNHANDLED_EXCEPTION="unhandled_exception",t.TOOL_NOT_REGISTERED="tool_not_registered",t.EXECUTION_FAILED="execution_failed",t.FILE_NOT_FOUND="file_not_found",t.FILE_WRITE_FAILURE="file_write_failure",t.READ_CONTENT_FAILURE="read_content_failure",t.ATTEMPT_TO_CREATE_EXISTING_FILE="attempt_to_create_existing_file",t.FILE_TOO_LARGE="file_too_large",t.PERMISSION_DENIED="permission_denied",t.NO_SPACE_LEFT="no_space_left",t.TARGET_IS_DIRECTORY="target_is_directory",t.PATH_NOT_IN_WORKSPACE="path_not_in_workspace",t.SEARCH_PATH_NOT_FOUND="search_path_not_found",t.SEARCH_PATH_NOT_A_DIRECTORY="search_path_not_a_directory",t.EDIT_PREPARATION_FAILURE="edit_preparation_failure",t.EDIT_NO_OCCURRENCE_FOUND="edit_no_occurrence_found",t.EDIT_EXPECTED_OCCURRENCE_MISMATCH="edit_expected_occurrence_mismatch",t.EDIT_NO_CHANGE="edit_no_change",t.GLOB_EXECUTION_ERROR="glob_execution_error",t.GREP_EXECUTION_ERROR="grep_execution_error",t.LS_EXECUTION_ERROR="ls_execution_error",t.PATH_IS_NOT_A_DIRECTORY="path_is_not_a_directory",t.MCP_TOOL_ERROR="mcp_tool_error",t.MEMORY_TOOL_EXECUTION_ERROR="memory_tool_execution_error",t.READ_MANY_FILES_SEARCH_ERROR="read_many_files_search_error",t.DISCOVERED_TOOL_EXECUTION_ERROR="discovered_tool_execution_error",t.WEB_FETCH_NO_URL_IN_PROMPT="web_fetch_no_url_in_prompt",t.WEB_FETCH_FALLBACK_FAILED="web_fetch_fallback_failed",t.WEB_FETCH_PROCESSING_ERROR="web_fetch_processing_error",t.WEB_SEARCH_FAILED="web_search_failed",t.HOOK_BLOCKED="hook_blocked"})(Kn||(Kn={}))});function fws(t){return{text:t.text}}function dws(t,e){return[{text:N.t("mcpTool.messages.mediaDataProvided",{toolName:e,type:t.type,mimeType:t.mimeType})},{inlineData:{mimeType:t.mimeType,data:t.data}}]}function pws(t,e){let r=t.resource;if(r?.text)return{text:r.text};if(r?.blob){let o=r.mimeType||"application/octet-stream";return[{text:N.t("mcpTool.messages.embeddedResourceProvided",{toolName:e,mimeType:o})},{inlineData:{mimeType:o,data:r.blob}}]}return null}function hws(t){return{text:N.t("mcpTool.messages.resourceLink",{title:t.title||t.name,uri:t.uri})}}function mws(t){let e=t?.[0]?.functionResponse,r=e?.response?.content,o=e?.name||"unknown tool";return Array.isArray(r)?r.flatMap(a=>{switch(a.type){case"text":return fws(a);case"image":case"audio":return dws(a,o);case"resource":return pws(a,o);case"resource_link":return hws(a);default:return null}}).filter(a=>a!==null):[{text:N.t("mcpTool.errors.parseResponseFailed")}]}function gws(t){let e=t?.[0]?.functionResponse?.response?.content;return Array.isArray(e)?e.map(o=>{switch(o.type){case"text":return o.text;case"image":return N.t("mcpTool.display.image",{mimeType:o.mimeType});case"audio":return N.t("mcpTool.display.audio",{mimeType:o.mimeType});case"resource_link":return N.t("mcpTool.display.resourceLink",{title:o.title||o.name,uri:o.uri});case"resource":return o.resource?.text?o.resource.text:N.t("mcpTool.display.embeddedResource",{mimeType:o.resource?.mimeType||N.t("mcpTool.display.unknownType")});default:return N.t("mcpTool.display.unknownContentType",{type:o.type})}}).join(`
|
|
895
895
|
`):"```json\n"+JSON.stringify(t,null,2)+"\n```"}function h6n(t){let e=t.replace(/[^a-zA-Z0-9_.-]/g,"_");return e.length>63&&(e=e.slice(0,28)+"___"+e.slice(-32)),e}var r1,f3e=j(()=>{"use strict";MKe();GE();np();Su();Xi();r1=class t extends Fs{mcpTool;serverName;serverToolName;parameterSchemaJson;timeout;trust;static allowlist=new Set;constructor(e,r,o,s,a,i,n,c){super(c??h6n(o),`${o} (${r} MCP Server)`,s,Qs.Hammer,qs.Other,{type:Or.OBJECT},!0,!1),this.mcpTool=e,this.serverName=r,this.serverToolName=o,this.parameterSchemaJson=a,this.timeout=i,this.trust=n}asFullyQualifiedTool(){return new t(this.mcpTool,this.serverName,this.serverToolName,this.description,this.parameterSchemaJson,this.timeout,this.trust,`${this.serverName}__${this.serverToolName}`)}get schema(){return{name:this.name,description:this.description,parametersJsonSchema:this.parameterSchemaJson}}async shouldConfirmExecute(e,r){let o=this.serverName,s=`${this.serverName}.${this.serverToolName}`;return this.trust||t.allowlist.has(o)||t.allowlist.has(s)?!1:{type:"mcp",title:N.t("mcpTool.messages.confirmExecution"),serverName:this.serverName,toolName:this.serverToolName,toolDisplayName:this.name,onConfirm:async i=>{i===ii.ProceedAlwaysServer?t.allowlist.add(o):i===ii.ProceedAlwaysTool&&t.allowlist.add(s)}}}isMCPToolError(e){let o=e?.[0]?.functionResponse?.response;if(o){let s=o?.error,a=s?.isError;if(s&&(a===!0||a==="true"))return!0}return!1}async execute(e){let{callId:r,...o}=e,s=[{name:this.serverToolName,args:o}],a=await this.mcpTool.callTool(s);if(this.isMCPToolError(a)){let n=`MCP tool '${this.serverToolName}' reported tool error for function call: ${tj(s[0])} with response: ${tj(a)}`;return{llmContent:n,returnDisplay:N.t("mcpTool.errors.toolReportedError",{toolName:this.serverToolName}),error:{message:n,type:Kn.MCP_TOOL_ERROR}}}return{llmContent:mws(a),returnDisplay:gws(a)}}}});var g6n=E((X1l,m6n)=>{"use strict";m6n.exports=function(e){return e.map(function(r){return r===""?"''":r&&typeof r=="object"?r.op.replace(/(.)/g,"\\$1"):/["\s\\]/.test(r)&&!/'/.test(r)?"'"+r.replace(/(['])/g,"\\$1")+"'":/["'\s]/.test(r)?'"'+r.replace(/(["\\$`!])/g,"\\$1")+'"':String(r).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g,"$1\\$2")}).join(" ")}});var x6n=E((Z1l,S6n)=>{"use strict";var E6n="(?:"+["\\|\\|","\\&\\&",";;","\\|\\&","\\<\\(","\\<\\<\\<",">>",">\\&","<\\&","[&;()|<>]"].join("|")+")",y6n=new RegExp("^"+E6n+"$"),A6n="|&;()<> \\t",yws='"((\\\\"|[^"])*?)"',Aws="'((\\\\'|[^'])*?)'",vws=/^#$/,v6n="'",b6n='"',xFt="$",sj="",bws=4294967296;for(_Ft=0;_Ft<4;_Ft++)sj+=(bws*Math.random()).toString(16);var _Ft,Ews=new RegExp("^"+sj);function Sws(t,e){for(var r=e.lastIndex,o=[],s;s=e.exec(t);)o.push(s),e.lastIndex===s.index&&(e.lastIndex+=1);return e.lastIndex=r,o}function xws(t,e,r){var o=typeof t=="function"?t(r):t[r];return typeof o>"u"&&r!=""?o="":typeof o>"u"&&(o="$"),typeof o=="object"?e+sj+JSON.stringify(o)+sj:e+o}function _ws(t,e,r){r||(r={});var o=r.escape||"\\",s="(\\"+o+`['"`+A6n+`]|[^\\s'"`+A6n+"])+",a=new RegExp(["("+E6n+")","("+s+"|"+yws+"|"+Aws+")+"].join("|"),"g"),i=Sws(t,a);if(i.length===0)return[];e||(e={});var n=!1;return i.map(function(c){var u=c[0];if(!u||n)return;if(y6n.test(u))return{op:u};var f=!1,d=!1,p="",h=!1,m;function y(){m+=1;var v,b,x=u.charAt(m);if(x==="{"){if(m+=1,u.charAt(m)==="}")throw new Error("Bad substitution: "+u.slice(m-2,m+1));if(v=u.indexOf("}",m),v<0)throw new Error("Bad substitution: "+u.slice(m));b=u.slice(m,v),m=v}else if(/[*@#?$!_-]/.test(x))b=x,m+=1;else{var T=u.slice(m);v=T.match(/[^\w\d_]/),v?(b=T.slice(0,v.index),m+=v.index-1):(b=T,m=u.length)}return xws(e,"",b)}for(m=0;m<u.length;m++){var g=u.charAt(m);if(h=h||!f&&(g==="*"||g==="?"),d)p+=g,d=!1;else if(f)g===f?f=!1:f==v6n?p+=g:g===o?(m+=1,g=u.charAt(m),g===b6n||g===o||g===xFt?p+=g:p+=o+g):g===xFt?p+=y():p+=g;else if(g===b6n||g===v6n)f=g;else{if(y6n.test(g))return{op:u};if(vws.test(g)){n=!0;var A={comment:t.slice(c.index+m+1)};return p.length?[p,A]:[A]}else g===o?d=!0:g===xFt?p+=y():p+=g}}return h?{op:"glob",pattern:p}:p}).reduce(function(c,u){return typeof u>"u"?c:c.concat(u)},[])}S6n.exports=function(e,r,o){var s=_ws(e,r,o);return typeof r!="function"?s:s.reduce(function(a,i){if(typeof i=="object")return a.concat(i);var n=i.split(RegExp("("+sj+".*?"+sj+")","g"));return n.length===1?a.concat(n[0]):a.concat(n.filter(Boolean).map(function(c){return Ews.test(c)?JSON.parse(c.split(sj)[1]):c}))},[])}});var pYe=E(CFt=>{"use strict";CFt.quote=g6n();CFt.parse=x6n()});var Ac,TFt,yi,Q8,d3e=j(()=>{(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function r(s){throw new Error}t.assertNever=r,t.arrayToEnum=s=>{let a={};for(let i of s)a[i]=i;return a},t.getValidEnumValues=s=>{let a=t.objectKeys(s).filter(n=>typeof s[s[n]]!="number"),i={};for(let n of a)i[n]=s[n];return t.objectValues(i)},t.objectValues=s=>t.objectKeys(s).map(function(a){return s[a]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{let a=[];for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&a.push(i);return a},t.find=(s,a)=>{for(let i of s)if(a(i))return i},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function o(s,a=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(a)}t.joinValues=o,t.jsonStringifyReplacer=(s,a)=>typeof a=="bigint"?a.toString():a})(Ac||(Ac={}));(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(TFt||(TFt={}));yi=Ac.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Q8=t=>{switch(typeof t){case"undefined":return yi.undefined;case"string":return yi.string;case"number":return Number.isNaN(t)?yi.nan:yi.number;case"boolean":return yi.boolean;case"function":return yi.function;case"bigint":return yi.bigint;case"symbol":return yi.symbol;case"object":return Array.isArray(t)?yi.array:t===null?yi.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?yi.promise:typeof Map<"u"&&t instanceof Map?yi.map:typeof Set<"u"&&t instanceof Set?yi.set:typeof Date<"u"&&t instanceof Date?yi.date:yi.object;default:return yi.unknown}}});var Dn,Cws,Xv,hYe=j(()=>{d3e();Dn=Ac.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Cws=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Xv=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=o=>{this.issues=[...this.issues,o]},this.addIssues=(o=[])=>{this.issues=[...this.issues,...o]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){let r=e||function(a){return a.message},o={_errors:[]},s=a=>{for(let i of a.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)o._errors.push(r(i));else{let n=o,c=0;for(;c<i.path.length;){let u=i.path[c];c===i.path.length-1?(n[u]=n[u]||{_errors:[]},n[u]._errors.push(r(i))):n[u]=n[u]||{_errors:[]},n=n[u],c++}}};return s(this),o}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ac.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},o=[];for(let s of this.issues)if(s.path.length>0){let a=s.path[0];r[a]=r[a]||[],r[a].push(e(s))}else o.push(e(s));return{formErrors:o,fieldErrors:r}}get formErrors(){return this.flatten()}};Xv.create=t=>new Xv(t)});var Tws,HO,wFt=j(()=>{hYe();d3e();Tws=(t,e)=>{let r;switch(t.code){case Dn.invalid_type:t.received===yi.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case Dn.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,Ac.jsonStringifyReplacer)}`;break;case Dn.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ac.joinValues(t.keys,", ")}`;break;case Dn.invalid_union:r="Invalid input";break;case Dn.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ac.joinValues(t.options)}`;break;case Dn.invalid_enum_value:r=`Invalid enum value. Expected ${Ac.joinValues(t.options)}, received '${t.received}'`;break;case Dn.invalid_arguments:r="Invalid function arguments";break;case Dn.invalid_return_type:r="Invalid function return type";break;case Dn.invalid_date:r="Invalid date";break;case Dn.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:Ac.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case Dn.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case Dn.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case Dn.custom:r="Invalid input";break;case Dn.invalid_intersection_types:r="Intersection results could not be merged";break;case Dn.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case Dn.not_finite:r="Number must be finite";break;default:r=e.defaultError,Ac.assertNever(t)}return{message:r}},HO=Tws});function wws(t){_6n=t}function Pie(){return _6n}var _6n,mYe=j(()=>{wFt();_6n=HO});function oi(t,e){let r=Pie(),o=p3e({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===HO?void 0:HO].filter(s=>!!s)});t.common.issues.push(o)}var p3e,Iws,n1,rs,aj,Uy,gYe,yYe,mL,Bie,IFt=j(()=>{mYe();wFt();p3e=t=>{let{data:e,path:r,errorMaps:o,issueData:s}=t,a=[...r,...s.path||[]],i={...s,path:a};if(s.message!==void 0)return{...s,path:a,message:s.message};let n="",c=o.filter(u=>!!u).slice().reverse();for(let u of c)n=u(i,{data:e,defaultError:n}).message;return{...s,path:a,message:n}},Iws=[];n1=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let o=[];for(let s of r){if(s.status==="aborted")return rs;s.status==="dirty"&&e.dirty(),o.push(s.value)}return{status:e.value,value:o}}static async mergeObjectAsync(e,r){let o=[];for(let s of r){let a=await s.key,i=await s.value;o.push({key:a,value:i})}return t.mergeObjectSync(e,o)}static mergeObjectSync(e,r){let o={};for(let s of r){let{key:a,value:i}=s;if(a.status==="aborted"||i.status==="aborted")return rs;a.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),a.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(o[a.value]=i.value)}return{status:e.value,value:o}}},rs=Object.freeze({status:"aborted"}),aj=t=>({status:"dirty",value:t}),Uy=t=>({status:"valid",value:t}),gYe=t=>t.status==="aborted",yYe=t=>t.status==="dirty",mL=t=>t.status==="valid",Bie=t=>typeof Promise<"u"&&t instanceof Promise});var C6n=j(()=>{});var to,T6n=j(()=>{(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(to||(to={}))});function ba(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:o,description:s}=t;if(e&&(r||o))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(i,n)=>{let{message:c}=t;return i.code==="invalid_enum_value"?{message:c??n.defaultError}:typeof n.data>"u"?{message:c??o??n.defaultError}:i.code!=="invalid_type"?{message:n.defaultError}:{message:c??r??n.defaultError}},description:s}}function O6n(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function jws(t){return new RegExp(`^${O6n(t)}$`)}function R6n(t){let e=`${D6n}T${O6n(t)}`,r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function $ws(t,e){return!!((e==="v4"||!e)&&Uws.test(t)||(e==="v6"||!e)&&Qws.test(t))}function Wws(t,e){if(!Bws.test(t))return!1;try{let[r]=t.split(".");if(!r)return!1;let o=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),s=JSON.parse(atob(o));return!(typeof s!="object"||s===null||"typ"in s&&s?.typ!=="JWT"||!s.alg||e&&s.alg!==e)}catch{return!1}}function zws(t,e){return!!((e==="v4"||!e)&&Fws.test(t)||(e==="v6"||!e)&&qws.test(t))}function Kws(t,e){let r=(t.toString().split(".")[1]||"").length,o=(e.toString().split(".")[1]||"").length,s=r>o?r:o,a=Number.parseInt(t.toFixed(s).replace(".","")),i=Number.parseInt(e.toFixed(s).replace(".",""));return a%i/10**s}function kie(t){if(t instanceof Zv){let e={};for(let r in t.shape){let o=t.shape[r];e[r]=Y_.create(kie(o))}return new Zv({...t._def,shape:()=>e})}else return t instanceof jO?new jO({...t._def,type:kie(t.element)}):t instanceof Y_?Y_.create(kie(t.unwrap())):t instanceof H8?H8.create(kie(t.unwrap())):t instanceof q8?q8.create(t.items.map(e=>kie(e))):t}function OFt(t,e){let r=Q8(t),o=Q8(e);if(t===e)return{valid:!0,data:t};if(r===yi.object&&o===yi.object){let s=Ac.objectKeys(e),a=Ac.objectKeys(t).filter(n=>s.indexOf(n)!==-1),i={...t,...e};for(let n of a){let c=OFt(t[n],e[n]);if(!c.valid)return{valid:!1};i[n]=c.data}return{valid:!0,data:i}}else if(r===yi.array&&o===yi.array){if(t.length!==e.length)return{valid:!1};let s=[];for(let a=0;a<t.length;a++){let i=t[a],n=e[a],c=OFt(i,n);if(!c.valid)return{valid:!1};s.push(c.data)}return{valid:!0,data:s}}else return r===yi.date&&o===yi.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}function N6n(t,e){return new Aj({values:t,typeName:ls.ZodEnum,...ba(e)})}function I6n(t,e){let r=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof r=="string"?{message:r}:r}function P6n(t,e={},r){return t?yL.create().superRefine((o,s)=>{let a=t(o);if(a instanceof Promise)return a.then(i=>{if(!i){let n=I6n(e,o),c=n.fatal??r??!0;s.addIssue({code:"custom",...n,fatal:c})}});if(!a){let i=I6n(e,o),n=i.fatal??r??!0;s.addIssue({code:"custom",...i,fatal:n})}}):yL.create()}var J_,w6n,Ua,Dws,Ows,Rws,Nws,Pws,Bws,kws,Mws,Lws,DFt,Uws,Fws,Qws,qws,Hws,Vws,D6n,Gws,gL,cj,lj,uj,fj,Mie,dj,pj,yL,GO,_6,Lie,jO,Zv,hj,VO,AYe,mj,q8,vYe,Uie,Fie,bYe,gj,yj,Aj,vj,AL,X_,Y_,H8,bj,Ej,Qie,Yws,h3e,m3e,Sj,Jws,ls,Xws,B6n,k6n,Zws,e5s,M6n,t5s,r5s,n5s,i5s,o5s,s5s,a5s,c5s,l5s,u5s,f5s,d5s,p5s,h5s,m5s,g5s,y5s,A5s,v5s,b5s,E5s,S5s,x5s,_5s,C5s,T5s,w5s,I5s,D5s,O5s,R5s,N5s,P5s,B5s,L6n=j(()=>{hYe();mYe();T6n();IFt();d3e();J_=class{constructor(e,r,o,s){this._cachedPath=[],this.parent=e,this.data=r,this._path=o,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},w6n=(t,e)=>{if(mL(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Xv(t.common.issues);return this._error=r,this._error}}};Ua=class{get description(){return this._def.description}_getType(e){return Q8(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Q8(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new n1,ctx:{common:e.parent.common,data:e.data,parsedType:Q8(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(Bie(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let o=this.safeParse(e,r);if(o.success)return o.data;throw o.error}safeParse(e,r){let o={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Q8(e)},s=this._parseSync({data:e,path:o.path,parent:o});return w6n(o,s)}"~validate"(e){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Q8(e)};if(!this["~standard"].async)try{let o=this._parseSync({data:e,path:[],parent:r});return mL(o)?{value:o.value}:{issues:r.common.issues}}catch(o){o?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(o=>mL(o)?{value:o.value}:{issues:r.common.issues})}async parseAsync(e,r){let o=await this.safeParseAsync(e,r);if(o.success)return o.data;throw o.error}async safeParseAsync(e,r){let o={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Q8(e)},s=this._parse({data:e,path:o.path,parent:o}),a=await(Bie(s)?s:Promise.resolve(s));return w6n(o,a)}refine(e,r){let o=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,a)=>{let i=e(s),n=()=>a.addIssue({code:Dn.custom,...o(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(c=>c?!0:(n(),!1)):i?!0:(n(),!1)})}refinement(e,r){return this._refinement((o,s)=>e(o)?!0:(s.addIssue(typeof r=="function"?r(o,s):r),!1))}_refinement(e){return new X_({schema:this,typeName:ls.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Y_.create(this,this._def)}nullable(){return H8.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return jO.create(this)}promise(){return AL.create(this,this._def)}or(e){return hj.create([this,e],this._def)}and(e){return mj.create(this,e,this._def)}transform(e){return new X_({...ba(this._def),schema:this,typeName:ls.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new bj({...ba(this._def),innerType:this,defaultValue:r,typeName:ls.ZodDefault})}brand(){return new h3e({typeName:ls.ZodBranded,type:this,...ba(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new Ej({...ba(this._def),innerType:this,catchValue:r,typeName:ls.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return m3e.create(this,e)}readonly(){return Sj.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Dws=/^c[^\s-]{8,}$/i,Ows=/^[0-9a-z]+$/,Rws=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Nws=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Pws=/^[a-z0-9_-]{21}$/i,Bws=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,kws=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Mws=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Lws="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Uws=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Fws=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Qws=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,qws=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Hws=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Vws=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,D6n="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Gws=new RegExp(`^${D6n}$`);gL=class t extends Ua{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==yi.string){let a=this._getOrReturnCtx(e);return oi(a,{code:Dn.invalid_type,expected:yi.string,received:a.parsedType}),rs}let o=new n1,s;for(let a of this._def.checks)if(a.kind==="min")e.data.length<a.value&&(s=this._getOrReturnCtx(e,s),oi(s,{code:Dn.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),o.dirty());else if(a.kind==="max")e.data.length>a.value&&(s=this._getOrReturnCtx(e,s),oi(s,{code:Dn.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),o.dirty());else if(a.kind==="length"){let i=e.data.length>a.value,n=e.data.length<a.value;(i||n)&&(s=this._getOrReturnCtx(e,s),i?oi(s,{code:Dn.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):n&&oi(s,{code:Dn.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),o.dirty())}else if(a.kind==="email")Mws.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"email",code:Dn.invalid_string,message:a.message}),o.dirty());else if(a.kind==="emoji")DFt||(DFt=new RegExp(Lws,"u")),DFt.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"emoji",code:Dn.invalid_string,message:a.message}),o.dirty());else if(a.kind==="uuid")Nws.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"uuid",code:Dn.invalid_string,message:a.message}),o.dirty());else if(a.kind==="nanoid")Pws.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"nanoid",code:Dn.invalid_string,message:a.message}),o.dirty());else if(a.kind==="cuid")Dws.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"cuid",code:Dn.invalid_string,message:a.message}),o.dirty());else if(a.kind==="cuid2")Ows.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"cuid2",code:Dn.invalid_string,message:a.message}),o.dirty());else if(a.kind==="ulid")Rws.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"ulid",code:Dn.invalid_string,message:a.message}),o.dirty());else if(a.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),oi(s,{validation:"url",code:Dn.invalid_string,message:a.message}),o.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"regex",code:Dn.invalid_string,message:a.message}),o.dirty())):a.kind==="trim"?e.data=e.data.trim():a.kind==="includes"?e.data.includes(a.value,a.position)||(s=this._getOrReturnCtx(e,s),oi(s,{code:Dn.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),o.dirty()):a.kind==="toLowerCase"?e.data=e.data.toLowerCase():a.kind==="toUpperCase"?e.data=e.data.toUpperCase():a.kind==="startsWith"?e.data.startsWith(a.value)||(s=this._getOrReturnCtx(e,s),oi(s,{code:Dn.invalid_string,validation:{startsWith:a.value},message:a.message}),o.dirty()):a.kind==="endsWith"?e.data.endsWith(a.value)||(s=this._getOrReturnCtx(e,s),oi(s,{code:Dn.invalid_string,validation:{endsWith:a.value},message:a.message}),o.dirty()):a.kind==="datetime"?R6n(a).test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{code:Dn.invalid_string,validation:"datetime",message:a.message}),o.dirty()):a.kind==="date"?Gws.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{code:Dn.invalid_string,validation:"date",message:a.message}),o.dirty()):a.kind==="time"?jws(a).test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{code:Dn.invalid_string,validation:"time",message:a.message}),o.dirty()):a.kind==="duration"?kws.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"duration",code:Dn.invalid_string,message:a.message}),o.dirty()):a.kind==="ip"?$ws(e.data,a.version)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"ip",code:Dn.invalid_string,message:a.message}),o.dirty()):a.kind==="jwt"?Wws(e.data,a.alg)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"jwt",code:Dn.invalid_string,message:a.message}),o.dirty()):a.kind==="cidr"?zws(e.data,a.version)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"cidr",code:Dn.invalid_string,message:a.message}),o.dirty()):a.kind==="base64"?Hws.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"base64",code:Dn.invalid_string,message:a.message}),o.dirty()):a.kind==="base64url"?Vws.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"base64url",code:Dn.invalid_string,message:a.message}),o.dirty()):Ac.assertNever(a);return{status:o.value,value:e.data}}_regex(e,r,o){return this.refinement(s=>e.test(s),{validation:r,code:Dn.invalid_string,...to.errToObj(o)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...to.errToObj(e)})}url(e){return this._addCheck({kind:"url",...to.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...to.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...to.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...to.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...to.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...to.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...to.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...to.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...to.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...to.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...to.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...to.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...to.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...to.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...to.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...to.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...to.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...to.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...to.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...to.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...to.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...to.errToObj(r)})}nonempty(e){return this.min(1,to.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};gL.create=t=>new gL({checks:[],typeName:ls.ZodString,coerce:t?.coerce??!1,...ba(t)});cj=class t extends Ua{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==yi.number){let a=this._getOrReturnCtx(e);return oi(a,{code:Dn.invalid_type,expected:yi.number,received:a.parsedType}),rs}let o,s=new n1;for(let a of this._def.checks)a.kind==="int"?Ac.isInteger(e.data)||(o=this._getOrReturnCtx(e,o),oi(o,{code:Dn.invalid_type,expected:"integer",received:"float",message:a.message}),s.dirty()):a.kind==="min"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(o=this._getOrReturnCtx(e,o),oi(o,{code:Dn.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),s.dirty()):a.kind==="max"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(o=this._getOrReturnCtx(e,o),oi(o,{code:Dn.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),s.dirty()):a.kind==="multipleOf"?Kws(e.data,a.value)!==0&&(o=this._getOrReturnCtx(e,o),oi(o,{code:Dn.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):a.kind==="finite"?Number.isFinite(e.data)||(o=this._getOrReturnCtx(e,o),oi(o,{code:Dn.not_finite,message:a.message}),s.dirty()):Ac.assertNever(a);return{status:s.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,to.toString(r))}gt(e,r){return this.setLimit("min",e,!1,to.toString(r))}lte(e,r){return this.setLimit("max",e,!0,to.toString(r))}lt(e,r){return this.setLimit("max",e,!1,to.toString(r))}setLimit(e,r,o,s){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:o,message:to.toString(s)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:to.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:to.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:to.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:to.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:to.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:to.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:to.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:to.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:to.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Ac.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let o of this._def.checks){if(o.kind==="finite"||o.kind==="int"||o.kind==="multipleOf")return!0;o.kind==="min"?(r===null||o.value>r)&&(r=o.value):o.kind==="max"&&(e===null||o.value<e)&&(e=o.value)}return Number.isFinite(r)&&Number.isFinite(e)}};cj.create=t=>new cj({checks:[],typeName:ls.ZodNumber,coerce:t?.coerce||!1,...ba(t)});lj=class t extends Ua{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==yi.bigint)return this._getInvalidInput(e);let o,s=new n1;for(let a of this._def.checks)a.kind==="min"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(o=this._getOrReturnCtx(e,o),oi(o,{code:Dn.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),s.dirty()):a.kind==="max"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(o=this._getOrReturnCtx(e,o),oi(o,{code:Dn.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),s.dirty()):a.kind==="multipleOf"?e.data%a.value!==BigInt(0)&&(o=this._getOrReturnCtx(e,o),oi(o,{code:Dn.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):Ac.assertNever(a);return{status:s.value,value:e.data}}_getInvalidInput(e){let r=this._getOrReturnCtx(e);return oi(r,{code:Dn.invalid_type,expected:yi.bigint,received:r.parsedType}),rs}gte(e,r){return this.setLimit("min",e,!0,to.toString(r))}gt(e,r){return this.setLimit("min",e,!1,to.toString(r))}lte(e,r){return this.setLimit("max",e,!0,to.toString(r))}lt(e,r){return this.setLimit("max",e,!1,to.toString(r))}setLimit(e,r,o,s){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:o,message:to.toString(s)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:to.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:to.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:to.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:to.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:to.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};lj.create=t=>new lj({checks:[],typeName:ls.ZodBigInt,coerce:t?.coerce??!1,...ba(t)});uj=class extends Ua{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==yi.boolean){let o=this._getOrReturnCtx(e);return oi(o,{code:Dn.invalid_type,expected:yi.boolean,received:o.parsedType}),rs}return Uy(e.data)}};uj.create=t=>new uj({typeName:ls.ZodBoolean,coerce:t?.coerce||!1,...ba(t)});fj=class t extends Ua{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==yi.date){let a=this._getOrReturnCtx(e);return oi(a,{code:Dn.invalid_type,expected:yi.date,received:a.parsedType}),rs}if(Number.isNaN(e.data.getTime())){let a=this._getOrReturnCtx(e);return oi(a,{code:Dn.invalid_date}),rs}let o=new n1,s;for(let a of this._def.checks)a.kind==="min"?e.data.getTime()<a.value&&(s=this._getOrReturnCtx(e,s),oi(s,{code:Dn.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),o.dirty()):a.kind==="max"?e.data.getTime()>a.value&&(s=this._getOrReturnCtx(e,s),oi(s,{code:Dn.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),o.dirty()):Ac.assertNever(a);return{status:o.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:to.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:to.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};fj.create=t=>new fj({checks:[],coerce:t?.coerce||!1,typeName:ls.ZodDate,...ba(t)});Mie=class extends Ua{_parse(e){if(this._getType(e)!==yi.symbol){let o=this._getOrReturnCtx(e);return oi(o,{code:Dn.invalid_type,expected:yi.symbol,received:o.parsedType}),rs}return Uy(e.data)}};Mie.create=t=>new Mie({typeName:ls.ZodSymbol,...ba(t)});dj=class extends Ua{_parse(e){if(this._getType(e)!==yi.undefined){let o=this._getOrReturnCtx(e);return oi(o,{code:Dn.invalid_type,expected:yi.undefined,received:o.parsedType}),rs}return Uy(e.data)}};dj.create=t=>new dj({typeName:ls.ZodUndefined,...ba(t)});pj=class extends Ua{_parse(e){if(this._getType(e)!==yi.null){let o=this._getOrReturnCtx(e);return oi(o,{code:Dn.invalid_type,expected:yi.null,received:o.parsedType}),rs}return Uy(e.data)}};pj.create=t=>new pj({typeName:ls.ZodNull,...ba(t)});yL=class extends Ua{constructor(){super(...arguments),this._any=!0}_parse(e){return Uy(e.data)}};yL.create=t=>new yL({typeName:ls.ZodAny,...ba(t)});GO=class extends Ua{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Uy(e.data)}};GO.create=t=>new GO({typeName:ls.ZodUnknown,...ba(t)});_6=class extends Ua{_parse(e){let r=this._getOrReturnCtx(e);return oi(r,{code:Dn.invalid_type,expected:yi.never,received:r.parsedType}),rs}};_6.create=t=>new _6({typeName:ls.ZodNever,...ba(t)});Lie=class extends Ua{_parse(e){if(this._getType(e)!==yi.undefined){let o=this._getOrReturnCtx(e);return oi(o,{code:Dn.invalid_type,expected:yi.void,received:o.parsedType}),rs}return Uy(e.data)}};Lie.create=t=>new Lie({typeName:ls.ZodVoid,...ba(t)});jO=class t extends Ua{_parse(e){let{ctx:r,status:o}=this._processInputParams(e),s=this._def;if(r.parsedType!==yi.array)return oi(r,{code:Dn.invalid_type,expected:yi.array,received:r.parsedType}),rs;if(s.exactLength!==null){let i=r.data.length>s.exactLength.value,n=r.data.length<s.exactLength.value;(i||n)&&(oi(r,{code:i?Dn.too_big:Dn.too_small,minimum:n?s.exactLength.value:void 0,maximum:i?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),o.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(oi(r,{code:Dn.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),o.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(oi(r,{code:Dn.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),o.dirty()),r.common.async)return Promise.all([...r.data].map((i,n)=>s.type._parseAsync(new J_(r,i,r.path,n)))).then(i=>n1.mergeArray(o,i));let a=[...r.data].map((i,n)=>s.type._parseSync(new J_(r,i,r.path,n)));return n1.mergeArray(o,a)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:to.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:to.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:to.toString(r)}})}nonempty(e){return this.min(1,e)}};jO.create=(t,e)=>new jO({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ls.ZodArray,...ba(e)});Zv=class t extends Ua{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=Ac.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==yi.object){let u=this._getOrReturnCtx(e);return oi(u,{code:Dn.invalid_type,expected:yi.object,received:u.parsedType}),rs}let{status:o,ctx:s}=this._processInputParams(e),{shape:a,keys:i}=this._getCached(),n=[];if(!(this._def.catchall instanceof _6&&this._def.unknownKeys==="strip"))for(let u in s.data)i.includes(u)||n.push(u);let c=[];for(let u of i){let f=a[u],d=s.data[u];c.push({key:{status:"valid",value:u},value:f._parse(new J_(s,d,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof _6){let u=this._def.unknownKeys;if(u==="passthrough")for(let f of n)c.push({key:{status:"valid",value:f},value:{status:"valid",value:s.data[f]}});else if(u==="strict")n.length>0&&(oi(s,{code:Dn.unrecognized_keys,keys:n}),o.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let f of n){let d=s.data[f];c.push({key:{status:"valid",value:f},value:u._parse(new J_(s,d,s.path,f)),alwaysSet:f in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let u=[];for(let f of c){let d=await f.key,p=await f.value;u.push({key:d,value:p,alwaysSet:f.alwaysSet})}return u}).then(u=>n1.mergeObjectSync(o,u)):n1.mergeObjectSync(o,c)}get shape(){return this._def.shape()}strict(e){return to.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,o)=>{let s=this._def.errorMap?.(r,o).message??o.defaultError;return r.code==="unrecognized_keys"?{message:to.errToObj(e).message??s}:{message:s}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ls.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};for(let o of Ac.objectKeys(e))e[o]&&this.shape[o]&&(r[o]=this.shape[o]);return new t({...this._def,shape:()=>r})}omit(e){let r={};for(let o of Ac.objectKeys(this.shape))e[o]||(r[o]=this.shape[o]);return new t({...this._def,shape:()=>r})}deepPartial(){return kie(this)}partial(e){let r={};for(let o of Ac.objectKeys(this.shape)){let s=this.shape[o];e&&!e[o]?r[o]=s:r[o]=s.optional()}return new t({...this._def,shape:()=>r})}required(e){let r={};for(let o of Ac.objectKeys(this.shape))if(e&&!e[o])r[o]=this.shape[o];else{let a=this.shape[o];for(;a instanceof Y_;)a=a._def.innerType;r[o]=a}return new t({...this._def,shape:()=>r})}keyof(){return N6n(Ac.objectKeys(this.shape))}};Zv.create=(t,e)=>new Zv({shape:()=>t,unknownKeys:"strip",catchall:_6.create(),typeName:ls.ZodObject,...ba(e)});Zv.strictCreate=(t,e)=>new Zv({shape:()=>t,unknownKeys:"strict",catchall:_6.create(),typeName:ls.ZodObject,...ba(e)});Zv.lazycreate=(t,e)=>new Zv({shape:t,unknownKeys:"strip",catchall:_6.create(),typeName:ls.ZodObject,...ba(e)});hj=class extends Ua{_parse(e){let{ctx:r}=this._processInputParams(e),o=this._def.options;function s(a){for(let n of a)if(n.result.status==="valid")return n.result;for(let n of a)if(n.result.status==="dirty")return r.common.issues.push(...n.ctx.common.issues),n.result;let i=a.map(n=>new Xv(n.ctx.common.issues));return oi(r,{code:Dn.invalid_union,unionErrors:i}),rs}if(r.common.async)return Promise.all(o.map(async a=>{let i={...r,common:{...r.common,issues:[]},parent:null};return{result:await a._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(s);{let a,i=[];for(let c of o){let u={...r,common:{...r.common,issues:[]},parent:null},f=c._parseSync({data:r.data,path:r.path,parent:u});if(f.status==="valid")return f;f.status==="dirty"&&!a&&(a={result:f,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(a)return r.common.issues.push(...a.ctx.common.issues),a.result;let n=i.map(c=>new Xv(c));return oi(r,{code:Dn.invalid_union,unionErrors:n}),rs}}get options(){return this._def.options}};hj.create=(t,e)=>new hj({options:t,typeName:ls.ZodUnion,...ba(e)});VO=t=>t instanceof gj?VO(t.schema):t instanceof X_?VO(t.innerType()):t instanceof yj?[t.value]:t instanceof Aj?t.options:t instanceof vj?Ac.objectValues(t.enum):t instanceof bj?VO(t._def.innerType):t instanceof dj?[void 0]:t instanceof pj?[null]:t instanceof Y_?[void 0,...VO(t.unwrap())]:t instanceof H8?[null,...VO(t.unwrap())]:t instanceof h3e||t instanceof Sj?VO(t.unwrap()):t instanceof Ej?VO(t._def.innerType):[],AYe=class t extends Ua{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==yi.object)return oi(r,{code:Dn.invalid_type,expected:yi.object,received:r.parsedType}),rs;let o=this.discriminator,s=r.data[o],a=this.optionsMap.get(s);return a?r.common.async?a._parseAsync({data:r.data,path:r.path,parent:r}):a._parseSync({data:r.data,path:r.path,parent:r}):(oi(r,{code:Dn.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[o]}),rs)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,o){let s=new Map;for(let a of r){let i=VO(a.shape[e]);if(!i.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let n of i){if(s.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);s.set(n,a)}}return new t({typeName:ls.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:s,...ba(o)})}};mj=class extends Ua{_parse(e){let{status:r,ctx:o}=this._processInputParams(e),s=(a,i)=>{if(gYe(a)||gYe(i))return rs;let n=OFt(a.value,i.value);return n.valid?((yYe(a)||yYe(i))&&r.dirty(),{status:r.value,value:n.data}):(oi(o,{code:Dn.invalid_intersection_types}),rs)};return o.common.async?Promise.all([this._def.left._parseAsync({data:o.data,path:o.path,parent:o}),this._def.right._parseAsync({data:o.data,path:o.path,parent:o})]).then(([a,i])=>s(a,i)):s(this._def.left._parseSync({data:o.data,path:o.path,parent:o}),this._def.right._parseSync({data:o.data,path:o.path,parent:o}))}};mj.create=(t,e,r)=>new mj({left:t,right:e,typeName:ls.ZodIntersection,...ba(r)});q8=class t extends Ua{_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==yi.array)return oi(o,{code:Dn.invalid_type,expected:yi.array,received:o.parsedType}),rs;if(o.data.length<this._def.items.length)return oi(o,{code:Dn.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),rs;!this._def.rest&&o.data.length>this._def.items.length&&(oi(o,{code:Dn.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let a=[...o.data].map((i,n)=>{let c=this._def.items[n]||this._def.rest;return c?c._parse(new J_(o,i,o.path,n)):null}).filter(i=>!!i);return o.common.async?Promise.all(a).then(i=>n1.mergeArray(r,i)):n1.mergeArray(r,a)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};q8.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new q8({items:t,typeName:ls.ZodTuple,rest:null,...ba(e)})};vYe=class t extends Ua{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==yi.object)return oi(o,{code:Dn.invalid_type,expected:yi.object,received:o.parsedType}),rs;let s=[],a=this._def.keyType,i=this._def.valueType;for(let n in o.data)s.push({key:a._parse(new J_(o,n,o.path,n)),value:i._parse(new J_(o,o.data[n],o.path,n)),alwaysSet:n in o.data});return o.common.async?n1.mergeObjectAsync(r,s):n1.mergeObjectSync(r,s)}get element(){return this._def.valueType}static create(e,r,o){return r instanceof Ua?new t({keyType:e,valueType:r,typeName:ls.ZodRecord,...ba(o)}):new t({keyType:gL.create(),valueType:e,typeName:ls.ZodRecord,...ba(r)})}},Uie=class extends Ua{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==yi.map)return oi(o,{code:Dn.invalid_type,expected:yi.map,received:o.parsedType}),rs;let s=this._def.keyType,a=this._def.valueType,i=[...o.data.entries()].map(([n,c],u)=>({key:s._parse(new J_(o,n,o.path,[u,"key"])),value:a._parse(new J_(o,c,o.path,[u,"value"]))}));if(o.common.async){let n=new Map;return Promise.resolve().then(async()=>{for(let c of i){let u=await c.key,f=await c.value;if(u.status==="aborted"||f.status==="aborted")return rs;(u.status==="dirty"||f.status==="dirty")&&r.dirty(),n.set(u.value,f.value)}return{status:r.value,value:n}})}else{let n=new Map;for(let c of i){let u=c.key,f=c.value;if(u.status==="aborted"||f.status==="aborted")return rs;(u.status==="dirty"||f.status==="dirty")&&r.dirty(),n.set(u.value,f.value)}return{status:r.value,value:n}}}};Uie.create=(t,e,r)=>new Uie({valueType:e,keyType:t,typeName:ls.ZodMap,...ba(r)});Fie=class t extends Ua{_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==yi.set)return oi(o,{code:Dn.invalid_type,expected:yi.set,received:o.parsedType}),rs;let s=this._def;s.minSize!==null&&o.data.size<s.minSize.value&&(oi(o,{code:Dn.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&o.data.size>s.maxSize.value&&(oi(o,{code:Dn.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());let a=this._def.valueType;function i(c){let u=new Set;for(let f of c){if(f.status==="aborted")return rs;f.status==="dirty"&&r.dirty(),u.add(f.value)}return{status:r.value,value:u}}let n=[...o.data.values()].map((c,u)=>a._parse(new J_(o,c,o.path,u)));return o.common.async?Promise.all(n).then(c=>i(c)):i(n)}min(e,r){return new t({...this._def,minSize:{value:e,message:to.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:to.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};Fie.create=(t,e)=>new Fie({valueType:t,minSize:null,maxSize:null,typeName:ls.ZodSet,...ba(e)});bYe=class t extends Ua{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==yi.function)return oi(r,{code:Dn.invalid_type,expected:yi.function,received:r.parsedType}),rs;function o(n,c){return p3e({data:n,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Pie(),HO].filter(u=>!!u),issueData:{code:Dn.invalid_arguments,argumentsError:c}})}function s(n,c){return p3e({data:n,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Pie(),HO].filter(u=>!!u),issueData:{code:Dn.invalid_return_type,returnTypeError:c}})}let a={errorMap:r.common.contextualErrorMap},i=r.data;if(this._def.returns instanceof AL){let n=this;return Uy(async function(...c){let u=new Xv([]),f=await n._def.args.parseAsync(c,a).catch(h=>{throw u.addIssue(o(c,h)),u}),d=await Reflect.apply(i,this,f);return await n._def.returns._def.type.parseAsync(d,a).catch(h=>{throw u.addIssue(s(d,h)),u})})}else{let n=this;return Uy(function(...c){let u=n._def.args.safeParse(c,a);if(!u.success)throw new Xv([o(c,u.error)]);let f=Reflect.apply(i,this,u.data),d=n._def.returns.safeParse(f,a);if(!d.success)throw new Xv([s(f,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:q8.create(e).rest(GO.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,o){return new t({args:e||q8.create([]).rest(GO.create()),returns:r||GO.create(),typeName:ls.ZodFunction,...ba(o)})}},gj=class extends Ua{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};gj.create=(t,e)=>new gj({getter:t,typeName:ls.ZodLazy,...ba(e)});yj=class extends Ua{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return oi(r,{received:r.data,code:Dn.invalid_literal,expected:this._def.value}),rs}return{status:"valid",value:e.data}}get value(){return this._def.value}};yj.create=(t,e)=>new yj({value:t,typeName:ls.ZodLiteral,...ba(e)});Aj=class t extends Ua{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),o=this._def.values;return oi(r,{expected:Ac.joinValues(o),received:r.parsedType,code:Dn.invalid_type}),rs}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let r=this._getOrReturnCtx(e),o=this._def.values;return oi(r,{received:r.data,code:Dn.invalid_enum_value,options:o}),rs}return Uy(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return t.create(e,{...this._def,...r})}exclude(e,r=this._def){return t.create(this.options.filter(o=>!e.includes(o)),{...this._def,...r})}};Aj.create=N6n;vj=class extends Ua{_parse(e){let r=Ac.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(e);if(o.parsedType!==yi.string&&o.parsedType!==yi.number){let s=Ac.objectValues(r);return oi(o,{expected:Ac.joinValues(s),received:o.parsedType,code:Dn.invalid_type}),rs}if(this._cache||(this._cache=new Set(Ac.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let s=Ac.objectValues(r);return oi(o,{received:o.data,code:Dn.invalid_enum_value,options:s}),rs}return Uy(e.data)}get enum(){return this._def.values}};vj.create=(t,e)=>new vj({values:t,typeName:ls.ZodNativeEnum,...ba(e)});AL=class extends Ua{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==yi.promise&&r.common.async===!1)return oi(r,{code:Dn.invalid_type,expected:yi.promise,received:r.parsedType}),rs;let o=r.parsedType===yi.promise?r.data:Promise.resolve(r.data);return Uy(o.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}};AL.create=(t,e)=>new AL({type:t,typeName:ls.ZodPromise,...ba(e)});X_=class extends Ua{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ls.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:o}=this._processInputParams(e),s=this._def.effect||null,a={addIssue:i=>{oi(o,i),i.fatal?r.abort():r.dirty()},get path(){return o.path}};if(a.addIssue=a.addIssue.bind(a),s.type==="preprocess"){let i=s.transform(o.data,a);if(o.common.async)return Promise.resolve(i).then(async n=>{if(r.value==="aborted")return rs;let c=await this._def.schema._parseAsync({data:n,path:o.path,parent:o});return c.status==="aborted"?rs:c.status==="dirty"?aj(c.value):r.value==="dirty"?aj(c.value):c});{if(r.value==="aborted")return rs;let n=this._def.schema._parseSync({data:i,path:o.path,parent:o});return n.status==="aborted"?rs:n.status==="dirty"?aj(n.value):r.value==="dirty"?aj(n.value):n}}if(s.type==="refinement"){let i=n=>{let c=s.refinement(n,a);if(o.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return n};if(o.common.async===!1){let n=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});return n.status==="aborted"?rs:(n.status==="dirty"&&r.dirty(),i(n.value),{status:r.value,value:n.value})}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(n=>n.status==="aborted"?rs:(n.status==="dirty"&&r.dirty(),i(n.value).then(()=>({status:r.value,value:n.value}))))}if(s.type==="transform")if(o.common.async===!1){let i=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});if(!mL(i))return rs;let n=s.transform(i.value,a);if(n instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:n}}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(i=>mL(i)?Promise.resolve(s.transform(i.value,a)).then(n=>({status:r.value,value:n})):rs);Ac.assertNever(s)}};X_.create=(t,e,r)=>new X_({schema:t,typeName:ls.ZodEffects,effect:e,...ba(r)});X_.createWithPreprocess=(t,e,r)=>new X_({schema:e,effect:{type:"preprocess",transform:t},typeName:ls.ZodEffects,...ba(r)});Y_=class extends Ua{_parse(e){return this._getType(e)===yi.undefined?Uy(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Y_.create=(t,e)=>new Y_({innerType:t,typeName:ls.ZodOptional,...ba(e)});H8=class extends Ua{_parse(e){return this._getType(e)===yi.null?Uy(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};H8.create=(t,e)=>new H8({innerType:t,typeName:ls.ZodNullable,...ba(e)});bj=class extends Ua{_parse(e){let{ctx:r}=this._processInputParams(e),o=r.data;return r.parsedType===yi.undefined&&(o=this._def.defaultValue()),this._def.innerType._parse({data:o,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};bj.create=(t,e)=>new bj({innerType:t,typeName:ls.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ba(e)});Ej=class extends Ua{_parse(e){let{ctx:r}=this._processInputParams(e),o={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:o.data,path:o.path,parent:{...o}});return Bie(s)?s.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Xv(o.common.issues)},input:o.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Xv(o.common.issues)},input:o.data})}}removeCatch(){return this._def.innerType}};Ej.create=(t,e)=>new Ej({innerType:t,typeName:ls.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ba(e)});Qie=class extends Ua{_parse(e){if(this._getType(e)!==yi.nan){let o=this._getOrReturnCtx(e);return oi(o,{code:Dn.invalid_type,expected:yi.nan,received:o.parsedType}),rs}return{status:"valid",value:e.data}}};Qie.create=t=>new Qie({typeName:ls.ZodNaN,...ba(t)});Yws=Symbol("zod_brand"),h3e=class extends Ua{_parse(e){let{ctx:r}=this._processInputParams(e),o=r.data;return this._def.type._parse({data:o,path:r.path,parent:r})}unwrap(){return this._def.type}},m3e=class t extends Ua{_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.common.async)return(async()=>{let a=await this._def.in._parseAsync({data:o.data,path:o.path,parent:o});return a.status==="aborted"?rs:a.status==="dirty"?(r.dirty(),aj(a.value)):this._def.out._parseAsync({data:a.value,path:o.path,parent:o})})();{let s=this._def.in._parseSync({data:o.data,path:o.path,parent:o});return s.status==="aborted"?rs:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:o.path,parent:o})}}static create(e,r){return new t({in:e,out:r,typeName:ls.ZodPipeline})}},Sj=class extends Ua{_parse(e){let r=this._def.innerType._parse(e),o=s=>(mL(s)&&(s.value=Object.freeze(s.value)),s);return Bie(r)?r.then(s=>o(s)):o(r)}unwrap(){return this._def.innerType}};Sj.create=(t,e)=>new Sj({innerType:t,typeName:ls.ZodReadonly,...ba(e)});Jws={object:Zv.lazycreate};(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ls||(ls={}));Xws=(t,e={message:`Input not instance of ${t.name}`})=>P6n(r=>r instanceof t,e),B6n=gL.create,k6n=cj.create,Zws=Qie.create,e5s=lj.create,M6n=uj.create,t5s=fj.create,r5s=Mie.create,n5s=dj.create,i5s=pj.create,o5s=yL.create,s5s=GO.create,a5s=_6.create,c5s=Lie.create,l5s=jO.create,u5s=Zv.create,f5s=Zv.strictCreate,d5s=hj.create,p5s=AYe.create,h5s=mj.create,m5s=q8.create,g5s=vYe.create,y5s=Uie.create,A5s=Fie.create,v5s=bYe.create,b5s=gj.create,E5s=yj.create,S5s=Aj.create,x5s=vj.create,_5s=AL.create,C5s=X_.create,T5s=Y_.create,w5s=H8.create,I5s=X_.createWithPreprocess,D5s=m3e.create,O5s=()=>B6n().optional(),R5s=()=>k6n().optional(),N5s=()=>M6n().optional(),P5s={string:(t=>gL.create({...t,coerce:!0})),number:(t=>cj.create({...t,coerce:!0})),boolean:(t=>uj.create({...t,coerce:!0})),bigint:(t=>lj.create({...t,coerce:!0})),date:(t=>fj.create({...t,coerce:!0}))},B5s=rs});var re={};ss(re,{BRAND:()=>Yws,DIRTY:()=>aj,EMPTY_PATH:()=>Iws,INVALID:()=>rs,NEVER:()=>B5s,OK:()=>Uy,ParseStatus:()=>n1,Schema:()=>Ua,ZodAny:()=>yL,ZodArray:()=>jO,ZodBigInt:()=>lj,ZodBoolean:()=>uj,ZodBranded:()=>h3e,ZodCatch:()=>Ej,ZodDate:()=>fj,ZodDefault:()=>bj,ZodDiscriminatedUnion:()=>AYe,ZodEffects:()=>X_,ZodEnum:()=>Aj,ZodError:()=>Xv,ZodFirstPartyTypeKind:()=>ls,ZodFunction:()=>bYe,ZodIntersection:()=>mj,ZodIssueCode:()=>Dn,ZodLazy:()=>gj,ZodLiteral:()=>yj,ZodMap:()=>Uie,ZodNaN:()=>Qie,ZodNativeEnum:()=>vj,ZodNever:()=>_6,ZodNull:()=>pj,ZodNullable:()=>H8,ZodNumber:()=>cj,ZodObject:()=>Zv,ZodOptional:()=>Y_,ZodParsedType:()=>yi,ZodPipeline:()=>m3e,ZodPromise:()=>AL,ZodReadonly:()=>Sj,ZodRecord:()=>vYe,ZodSchema:()=>Ua,ZodSet:()=>Fie,ZodString:()=>gL,ZodSymbol:()=>Mie,ZodTransformer:()=>X_,ZodTuple:()=>q8,ZodType:()=>Ua,ZodUndefined:()=>dj,ZodUnion:()=>hj,ZodUnknown:()=>GO,ZodVoid:()=>Lie,addIssueToContext:()=>oi,any:()=>o5s,array:()=>l5s,bigint:()=>e5s,boolean:()=>M6n,coerce:()=>P5s,custom:()=>P6n,date:()=>t5s,datetimeRegex:()=>R6n,defaultErrorMap:()=>HO,discriminatedUnion:()=>p5s,effect:()=>C5s,enum:()=>S5s,function:()=>v5s,getErrorMap:()=>Pie,getParsedType:()=>Q8,instanceof:()=>Xws,intersection:()=>h5s,isAborted:()=>gYe,isAsync:()=>Bie,isDirty:()=>yYe,isValid:()=>mL,late:()=>Jws,lazy:()=>b5s,literal:()=>E5s,makeIssue:()=>p3e,map:()=>y5s,nan:()=>Zws,nativeEnum:()=>x5s,never:()=>a5s,null:()=>i5s,nullable:()=>w5s,number:()=>k6n,object:()=>u5s,objectUtil:()=>TFt,oboolean:()=>N5s,onumber:()=>R5s,optional:()=>T5s,ostring:()=>O5s,pipeline:()=>D5s,preprocess:()=>I5s,promise:()=>_5s,quotelessJson:()=>Cws,record:()=>g5s,set:()=>A5s,setErrorMap:()=>wws,strictObject:()=>f5s,string:()=>B6n,symbol:()=>r5s,transformer:()=>C5s,tuple:()=>m5s,undefined:()=>n5s,union:()=>d5s,unknown:()=>s5s,util:()=>Ac,void:()=>c5s});var RFt=j(()=>{mYe();IFt();C6n();d3e();L6n();hYe()});var vL=j(()=>{RFt();RFt()});var qie,U6n,EYe,F6n,Q6n,k5s,tC,eb,g3e,V8,rC,SYe,q6n,xYe,H6n,V6n,G6n,y3e,Z_,j6n,$6n,bL,xj,_Ye,A3e,W6n,M5s,L5s,U5s,NFt,z6n,K6n,CYe,F5s,TYe,wYe,IYe,Y6n,J6n,PFt,X6n,Z6n,Q5s,q5s,BFt,H5s,kFt,V5s,MFt,G5s,j5s,$5s,W5s,z5s,K5s,Y5s,v3e,J5s,LFt,UFt,FFt,X5s,Z5s,ewn,eIs,b3e,tIs,rIs,nIs,iIs,QFt,DYe,Iyl,oIs,sIs,twn,aIs,cIs,lIs,uIs,fIs,dIs,pIs,hIs,mIs,gIs,yIs,AIs,vIs,bIs,EIs,SIs,xIs,qFt,_Is,OYe,CIs,TIs,Dyl,Oyl,Ryl,Nyl,Pyl,Byl,eC,EL=j(()=>{vL();qie="2025-06-18",U6n=[qie,"2025-03-26","2024-11-05","2024-10-07"],EYe="2.0",F6n=re.union([re.string(),re.number().int()]),Q6n=re.string(),k5s=re.object({progressToken:re.optional(F6n)}).passthrough(),tC=re.object({_meta:re.optional(k5s)}).passthrough(),eb=re.object({method:re.string(),params:re.optional(tC)}),g3e=re.object({_meta:re.optional(re.object({}).passthrough())}).passthrough(),V8=re.object({method:re.string(),params:re.optional(g3e)}),rC=re.object({_meta:re.optional(re.object({}).passthrough())}).passthrough(),SYe=re.union([re.string(),re.number().int()]),q6n=re.object({jsonrpc:re.literal(EYe),id:SYe}).merge(eb).strict(),xYe=t=>q6n.safeParse(t).success,H6n=re.object({jsonrpc:re.literal(EYe)}).merge(V8).strict(),V6n=t=>H6n.safeParse(t).success,G6n=re.object({jsonrpc:re.literal(EYe),id:SYe,result:rC}).strict(),y3e=t=>G6n.safeParse(t).success;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError"})(Z_||(Z_={}));j6n=re.object({jsonrpc:re.literal(EYe),id:SYe,error:re.object({code:re.number().int(),message:re.string(),data:re.optional(re.unknown())})}).strict(),$6n=t=>j6n.safeParse(t).success,bL=re.union([q6n,H6n,G6n,j6n]),xj=rC.strict(),_Ye=V8.extend({method:re.literal("notifications/cancelled"),params:g3e.extend({requestId:SYe,reason:re.string().optional()})}),A3e=re.object({name:re.string(),title:re.optional(re.string())}).passthrough(),W6n=A3e.extend({version:re.string()}),M5s=re.object({experimental:re.optional(re.object({}).passthrough()),sampling:re.optional(re.object({}).passthrough()),elicitation:re.optional(re.object({}).passthrough()),roots:re.optional(re.object({listChanged:re.optional(re.boolean())}).passthrough())}).passthrough(),L5s=eb.extend({method:re.literal("initialize"),params:tC.extend({protocolVersion:re.string(),capabilities:M5s,clientInfo:W6n})}),U5s=re.object({experimental:re.optional(re.object({}).passthrough()),logging:re.optional(re.object({}).passthrough()),completions:re.optional(re.object({}).passthrough()),prompts:re.optional(re.object({listChanged:re.optional(re.boolean())}).passthrough()),resources:re.optional(re.object({subscribe:re.optional(re.boolean()),listChanged:re.optional(re.boolean())}).passthrough()),tools:re.optional(re.object({listChanged:re.optional(re.boolean())}).passthrough())}).passthrough(),NFt=rC.extend({protocolVersion:re.string(),capabilities:U5s,serverInfo:W6n,instructions:re.optional(re.string())}),z6n=V8.extend({method:re.literal("notifications/initialized")}),K6n=t=>z6n.safeParse(t).success,CYe=eb.extend({method:re.literal("ping")}),F5s=re.object({progress:re.number(),total:re.optional(re.number()),message:re.optional(re.string())}).passthrough(),TYe=V8.extend({method:re.literal("notifications/progress"),params:g3e.merge(F5s).extend({progressToken:F6n})}),wYe=eb.extend({params:tC.extend({cursor:re.optional(Q6n)}).optional()}),IYe=rC.extend({nextCursor:re.optional(Q6n)}),Y6n=re.object({uri:re.string(),mimeType:re.optional(re.string()),_meta:re.optional(re.object({}).passthrough())}).passthrough(),J6n=Y6n.extend({text:re.string()}),PFt=re.string().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),X6n=Y6n.extend({blob:PFt}),Z6n=A3e.extend({uri:re.string(),description:re.optional(re.string()),mimeType:re.optional(re.string()),_meta:re.optional(re.object({}).passthrough())}),Q5s=A3e.extend({uriTemplate:re.string(),description:re.optional(re.string()),mimeType:re.optional(re.string()),_meta:re.optional(re.object({}).passthrough())}),q5s=wYe.extend({method:re.literal("resources/list")}),BFt=IYe.extend({resources:re.array(Z6n)}),H5s=wYe.extend({method:re.literal("resources/templates/list")}),kFt=IYe.extend({resourceTemplates:re.array(Q5s)}),V5s=eb.extend({method:re.literal("resources/read"),params:tC.extend({uri:re.string()})}),MFt=rC.extend({contents:re.array(re.union([J6n,X6n]))}),G5s=V8.extend({method:re.literal("notifications/resources/list_changed")}),j5s=eb.extend({method:re.literal("resources/subscribe"),params:tC.extend({uri:re.string()})}),$5s=eb.extend({method:re.literal("resources/unsubscribe"),params:tC.extend({uri:re.string()})}),W5s=V8.extend({method:re.literal("notifications/resources/updated"),params:g3e.extend({uri:re.string()})}),z5s=re.object({name:re.string(),description:re.optional(re.string()),required:re.optional(re.boolean())}).passthrough(),K5s=A3e.extend({description:re.optional(re.string()),arguments:re.optional(re.array(z5s)),_meta:re.optional(re.object({}).passthrough())}),Y5s=wYe.extend({method:re.literal("prompts/list")}),v3e=IYe.extend({prompts:re.array(K5s)}),J5s=eb.extend({method:re.literal("prompts/get"),params:tC.extend({name:re.string(),arguments:re.optional(re.record(re.string()))})}),LFt=re.object({type:re.literal("text"),text:re.string(),_meta:re.optional(re.object({}).passthrough())}).passthrough(),UFt=re.object({type:re.literal("image"),data:PFt,mimeType:re.string(),_meta:re.optional(re.object({}).passthrough())}).passthrough(),FFt=re.object({type:re.literal("audio"),data:PFt,mimeType:re.string(),_meta:re.optional(re.object({}).passthrough())}).passthrough(),X5s=re.object({type:re.literal("resource"),resource:re.union([J6n,X6n]),_meta:re.optional(re.object({}).passthrough())}).passthrough(),Z5s=Z6n.extend({type:re.literal("resource_link")}),ewn=re.union([LFt,UFt,FFt,Z5s,X5s]),eIs=re.object({role:re.enum(["user","assistant"]),content:ewn}).passthrough(),b3e=rC.extend({description:re.optional(re.string()),messages:re.array(eIs)}),tIs=V8.extend({method:re.literal("notifications/prompts/list_changed")}),rIs=re.object({title:re.optional(re.string()),readOnlyHint:re.optional(re.boolean()),destructiveHint:re.optional(re.boolean()),idempotentHint:re.optional(re.boolean()),openWorldHint:re.optional(re.boolean())}).passthrough(),nIs=A3e.extend({description:re.optional(re.string()),inputSchema:re.object({type:re.literal("object"),properties:re.optional(re.object({}).passthrough()),required:re.optional(re.array(re.string()))}).passthrough(),outputSchema:re.optional(re.object({type:re.literal("object"),properties:re.optional(re.object({}).passthrough()),required:re.optional(re.array(re.string()))}).passthrough()),annotations:re.optional(rIs),_meta:re.optional(re.object({}).passthrough())}),iIs=wYe.extend({method:re.literal("tools/list")}),QFt=IYe.extend({tools:re.array(nIs)}),DYe=rC.extend({content:re.array(ewn).default([]),structuredContent:re.object({}).passthrough().optional(),isError:re.optional(re.boolean())}),Iyl=DYe.or(rC.extend({toolResult:re.unknown()})),oIs=eb.extend({method:re.literal("tools/call"),params:tC.extend({name:re.string(),arguments:re.optional(re.record(re.unknown()))})}),sIs=V8.extend({method:re.literal("notifications/tools/list_changed")}),twn=re.enum(["debug","info","notice","warning","error","critical","alert","emergency"]),aIs=eb.extend({method:re.literal("logging/setLevel"),params:tC.extend({level:twn})}),cIs=V8.extend({method:re.literal("notifications/message"),params:g3e.extend({level:twn,logger:re.optional(re.string()),data:re.unknown()})}),lIs=re.object({name:re.string().optional()}).passthrough(),uIs=re.object({hints:re.optional(re.array(lIs)),costPriority:re.optional(re.number().min(0).max(1)),speedPriority:re.optional(re.number().min(0).max(1)),intelligencePriority:re.optional(re.number().min(0).max(1))}).passthrough(),fIs=re.object({role:re.enum(["user","assistant"]),content:re.union([LFt,UFt,FFt])}).passthrough(),dIs=eb.extend({method:re.literal("sampling/createMessage"),params:tC.extend({messages:re.array(fIs),systemPrompt:re.optional(re.string()),includeContext:re.optional(re.enum(["none","thisServer","allServers"])),temperature:re.optional(re.number()),maxTokens:re.number().int(),stopSequences:re.optional(re.array(re.string())),metadata:re.optional(re.object({}).passthrough()),modelPreferences:re.optional(uIs)})}),pIs=rC.extend({model:re.string(),stopReason:re.optional(re.enum(["endTurn","stopSequence","maxTokens"]).or(re.string())),role:re.enum(["user","assistant"]),content:re.discriminatedUnion("type",[LFt,UFt,FFt])}),hIs=re.object({type:re.literal("boolean"),title:re.optional(re.string()),description:re.optional(re.string()),default:re.optional(re.boolean())}).passthrough(),mIs=re.object({type:re.literal("string"),title:re.optional(re.string()),description:re.optional(re.string()),minLength:re.optional(re.number()),maxLength:re.optional(re.number()),format:re.optional(re.enum(["email","uri","date","date-time"]))}).passthrough(),gIs=re.object({type:re.enum(["number","integer"]),title:re.optional(re.string()),description:re.optional(re.string()),minimum:re.optional(re.number()),maximum:re.optional(re.number())}).passthrough(),yIs=re.object({type:re.literal("string"),title:re.optional(re.string()),description:re.optional(re.string()),enum:re.array(re.string()),enumNames:re.optional(re.array(re.string()))}).passthrough(),AIs=re.union([hIs,mIs,gIs,yIs]),vIs=eb.extend({method:re.literal("elicitation/create"),params:tC.extend({message:re.string(),requestedSchema:re.object({type:re.literal("object"),properties:re.record(re.string(),AIs),required:re.optional(re.array(re.string()))}).passthrough()})}),bIs=rC.extend({action:re.enum(["accept","decline","cancel"]),content:re.optional(re.record(re.string(),re.unknown()))}),EIs=re.object({type:re.literal("ref/resource"),uri:re.string()}).passthrough(),SIs=re.object({type:re.literal("ref/prompt"),name:re.string()}).passthrough(),xIs=eb.extend({method:re.literal("completion/complete"),params:tC.extend({ref:re.union([SIs,EIs]),argument:re.object({name:re.string(),value:re.string()}).passthrough(),context:re.optional(re.object({arguments:re.optional(re.record(re.string(),re.string()))}))})}),qFt=rC.extend({completion:re.object({values:re.array(re.string()).max(100),total:re.optional(re.number().int()),hasMore:re.optional(re.boolean())}).passthrough()}),_Is=re.object({uri:re.string().startsWith("file://"),name:re.optional(re.string()),_meta:re.optional(re.object({}).passthrough())}).passthrough(),OYe=eb.extend({method:re.literal("roots/list")}),CIs=rC.extend({roots:re.array(_Is)}),TIs=V8.extend({method:re.literal("notifications/roots/list_changed")}),Dyl=re.union([CYe,L5s,xIs,aIs,J5s,Y5s,q5s,H5s,V5s,j5s,$5s,oIs,iIs]),Oyl=re.union([_Ye,TYe,z6n,TIs]),Ryl=re.union([xj,pIs,bIs,CIs]),Nyl=re.union([CYe,dIs,vIs,OYe]),Pyl=re.union([_Ye,TYe,cIs,W5s,G5s,sIs,tIs]),Byl=re.union([xj,NFt,qFt,b3e,v3e,BFt,kFt,MFt,DYe,QFt]),eC=class extends Error{constructor(e,r,o){super(`MCP error ${e}: ${r}`),this.code=e,this.data=o,this.name="McpError"}}});function rwn(t,e){return Object.entries(e).reduce((r,[o,s])=>(s&&typeof s=="object"?r[o]=r[o]?{...r[o],...s}:s:r[o]=s,r),{...t})}var wIs,RYe,nwn=j(()=>{EL();wIs=6e4,RYe=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this.setNotificationHandler(_Ye,r=>{let o=this._requestHandlerAbortControllers.get(r.params.requestId);o?.abort(r.params.reason)}),this.setNotificationHandler(TYe,r=>{this._onprogress(r)}),this.setRequestHandler(CYe,r=>({}))}_setupTimeout(e,r,o,s,a=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(s,r),startTime:Date.now(),timeout:r,maxTotalTimeout:o,resetTimeoutOnProgress:a,onTimeout:s})}_resetTimeout(e){let r=this._timeoutInfo.get(e);if(!r)return!1;let o=Date.now()-r.startTime;if(r.maxTotalTimeout&&o>=r.maxTotalTimeout)throw this._timeoutInfo.delete(e),new eC(Z_.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:o});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(e){let r=this._timeoutInfo.get(e);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(e))}async connect(e){var r,o,s;this._transport=e;let a=(r=this.transport)===null||r===void 0?void 0:r.onclose;this._transport.onclose=()=>{a?.(),this._onclose()};let i=(o=this.transport)===null||o===void 0?void 0:o.onerror;this._transport.onerror=c=>{i?.(c),this._onerror(c)};let n=(s=this._transport)===null||s===void 0?void 0:s.onmessage;this._transport.onmessage=(c,u)=>{n?.(c,u),y3e(c)||$6n(c)?this._onresponse(c):xYe(c)?this._onrequest(c,u):V6n(c)?this._onnotification(c):this._onerror(new Error(`Unknown message type: ${JSON.stringify(c)}`))},await this._transport.start()}_onclose(){var e;let r=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._pendingDebouncedNotifications.clear(),this._transport=void 0,(e=this.onclose)===null||e===void 0||e.call(this);let o=new eC(Z_.ConnectionClosed,"Connection closed");for(let s of r.values())s(o)}_onerror(e){var r;(r=this.onerror)===null||r===void 0||r.call(this,e)}_onnotification(e){var r;let o=(r=this._notificationHandlers.get(e.method))!==null&&r!==void 0?r:this.fallbackNotificationHandler;o!==void 0&&Promise.resolve().then(()=>o(e)).catch(s=>this._onerror(new Error(`Uncaught error in notification handler: ${s}`)))}_onrequest(e,r){var o,s;let a=(o=this._requestHandlers.get(e.method))!==null&&o!==void 0?o:this.fallbackRequestHandler,i=this._transport;if(a===void 0){i?.send({jsonrpc:"2.0",id:e.id,error:{code:Z_.MethodNotFound,message:"Method not found"}}).catch(u=>this._onerror(new Error(`Failed to send an error response: ${u}`)));return}let n=new AbortController;this._requestHandlerAbortControllers.set(e.id,n);let c={signal:n.signal,sessionId:i?.sessionId,_meta:(s=e.params)===null||s===void 0?void 0:s._meta,sendNotification:u=>this.notification(u,{relatedRequestId:e.id}),sendRequest:(u,f,d)=>this.request(u,f,{...d,relatedRequestId:e.id}),authInfo:r?.authInfo,requestId:e.id,requestInfo:r?.requestInfo};Promise.resolve().then(()=>a(e,c)).then(u=>{if(!n.signal.aborted)return i?.send({result:u,jsonrpc:"2.0",id:e.id})},u=>{var f;if(!n.signal.aborted)return i?.send({jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(u.code)?u.code:Z_.InternalError,message:(f=u.message)!==null&&f!==void 0?f:"Internal error"}})}).catch(u=>this._onerror(new Error(`Failed to send response: ${u}`))).finally(()=>{this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:r,...o}=e.params,s=Number(r),a=this._progressHandlers.get(s);if(!a){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let i=this._responseHandlers.get(s),n=this._timeoutInfo.get(s);if(n&&i&&n.resetTimeoutOnProgress)try{this._resetTimeout(s)}catch(c){i(c);return}a(o)}_onresponse(e){let r=Number(e.id),o=this._responseHandlers.get(r);if(o===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}if(this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),y3e(e))o(e);else{let s=new eC(e.error.code,e.error.message,e.error.data);o(s)}}get transport(){return this._transport}async close(){var e;await((e=this._transport)===null||e===void 0?void 0:e.close())}request(e,r,o){let{relatedRequestId:s,resumptionToken:a,onresumptiontoken:i}=o??{};return new Promise((n,c)=>{var u,f,d,p,h,m;if(!this._transport){c(new Error("Not connected"));return}((u=this._options)===null||u===void 0?void 0:u.enforceStrictCapabilities)===!0&&this.assertCapabilityForMethod(e.method),(f=o?.signal)===null||f===void 0||f.throwIfAborted();let y=this._requestMessageId++,g={...e,jsonrpc:"2.0",id:y};o?.onprogress&&(this._progressHandlers.set(y,o.onprogress),g.params={...e.params,_meta:{...((d=e.params)===null||d===void 0?void 0:d._meta)||{},progressToken:y}});let A=x=>{var T;this._responseHandlers.delete(y),this._progressHandlers.delete(y),this._cleanupTimeout(y),(T=this._transport)===null||T===void 0||T.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:y,reason:String(x)}},{relatedRequestId:s,resumptionToken:a,onresumptiontoken:i}).catch(D=>this._onerror(new Error(`Failed to send cancellation: ${D}`))),c(x)};this._responseHandlers.set(y,x=>{var T;if(!(!((T=o?.signal)===null||T===void 0)&&T.aborted)){if(x instanceof Error)return c(x);try{let D=r.parse(x.result);n(D)}catch(D){c(D)}}}),(p=o?.signal)===null||p===void 0||p.addEventListener("abort",()=>{var x;A((x=o?.signal)===null||x===void 0?void 0:x.reason)});let v=(h=o?.timeout)!==null&&h!==void 0?h:wIs,b=()=>A(new eC(Z_.RequestTimeout,"Request timed out",{timeout:v}));this._setupTimeout(y,v,o?.maxTotalTimeout,b,(m=o?.resetTimeoutOnProgress)!==null&&m!==void 0?m:!1),this._transport.send(g,{relatedRequestId:s,resumptionToken:a,onresumptiontoken:i}).catch(x=>{this._cleanupTimeout(y),c(x)})})}async notification(e,r){var o,s;if(!this._transport)throw new Error("Not connected");if(this.assertNotificationCapability(e.method),((s=(o=this._options)===null||o===void 0?void 0:o.debouncedNotificationMethods)!==null&&s!==void 0?s:[]).includes(e.method)&&!e.params&&!r?.relatedRequestId){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{var c;if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let u={...e,jsonrpc:"2.0"};(c=this._transport)===null||c===void 0||c.send(u,r).catch(f=>this._onerror(f))});return}let n={...e,jsonrpc:"2.0"};await this._transport.send(n,r)}setRequestHandler(e,r){let o=e.shape.method.value;this.assertRequestHandlerCapability(o),this._requestHandlers.set(o,(s,a)=>Promise.resolve(r(e.parse(s),a)))}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,r){this._notificationHandlers.set(e.shape.method.value,o=>Promise.resolve(r(e.parse(o))))}removeNotificationHandler(e){this._notificationHandlers.delete(e)}}});var own=E((NYe,iwn)=>{(function(t,e){typeof NYe=="object"&&typeof iwn<"u"?e(NYe):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(NYe,(function(t){"use strict";function e(){for(var wt=arguments.length,pt=Array(wt),Ot=0;Ot<wt;Ot++)pt[Ot]=arguments[Ot];if(pt.length>1){pt[0]=pt[0].slice(0,-1);for(var Ht=pt.length-1,jt=1;jt<Ht;++jt)pt[jt]=pt[jt].slice(1,-1);return pt[Ht]=pt[Ht].slice(1),pt.join("")}else return pt[0]}function r(wt){return"(?:"+wt+")"}function o(wt){return wt===void 0?"undefined":wt===null?"null":Object.prototype.toString.call(wt).split(" ").pop().split("]").shift().toLowerCase()}function s(wt){return wt.toUpperCase()}function a(wt){return wt!=null?wt instanceof Array?wt:typeof wt.length!="number"||wt.split||wt.setInterval||wt.call?[wt]:Array.prototype.slice.call(wt):[]}function i(wt,pt){var Ot=wt;if(pt)for(var Ht in pt)Ot[Ht]=pt[Ht];return Ot}function n(wt){var pt="[A-Za-z]",Ot="[\\x0D]",Ht="[0-9]",jt="[\\x22]",qr=e(Ht,"[A-Fa-f]"),Nn="[\\x0A]",ei="[\\x20]",Ui=r(r("%[EFef]"+qr+"%"+qr+qr+"%"+qr+qr)+"|"+r("%[89A-Fa-f]"+qr+"%"+qr+qr)+"|"+r("%"+qr+qr)),ko="[\\:\\/\\?\\#\\[\\]\\@]",To="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Xo=e(ko,To),xs=wt?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ki=wt?"[\\uE000-\\uF8FF]":"[]",Zo=e(pt,Ht,"[\\-\\.\\_\\~]",xs),Oa=r(pt+e(pt,Ht,"[\\+\\-\\.]")+"*"),$s=r(r(Ui+"|"+e(Zo,To,"[\\:]"))+"*"),ef=r(r("25[0-5]")+"|"+r("2[0-4]"+Ht)+"|"+r("1"+Ht+Ht)+"|"+r("[1-9]"+Ht)+"|"+Ht),Hl=r(r("25[0-5]")+"|"+r("2[0-4]"+Ht)+"|"+r("1"+Ht+Ht)+"|"+r("0?[1-9]"+Ht)+"|0?0?"+Ht),tf=r(Hl+"\\."+Hl+"\\."+Hl+"\\."+Hl),Ws=r(qr+"{1,4}"),pd=r(r(Ws+"\\:"+Ws)+"|"+tf),$a=r(r(Ws+"\\:")+"{6}"+pd),ps=r("\\:\\:"+r(Ws+"\\:")+"{5}"+pd),Ch=r(r(Ws)+"?\\:\\:"+r(Ws+"\\:")+"{4}"+pd),hd=r(r(r(Ws+"\\:")+"{0,1}"+Ws)+"?\\:\\:"+r(Ws+"\\:")+"{3}"+pd),dm=r(r(r(Ws+"\\:")+"{0,2}"+Ws)+"?\\:\\:"+r(Ws+"\\:")+"{2}"+pd),Th=r(r(r(Ws+"\\:")+"{0,3}"+Ws)+"?\\:\\:"+Ws+"\\:"+pd),al=r(r(r(Ws+"\\:")+"{0,4}"+Ws)+"?\\:\\:"+pd),Gc=r(r(r(Ws+"\\:")+"{0,5}"+Ws)+"?\\:\\:"+Ws),yp=r(r(r(Ws+"\\:")+"{0,6}"+Ws)+"?\\:\\:"),ot=r([$a,ps,Ch,hd,dm,Th,al,Gc,yp].join("|")),at=r(r(Zo+"|"+Ui)+"+"),kt=r(ot+"\\%25"+at),Vt=r(ot+r("\\%25|\\%(?!"+qr+"{2})")+at),sr=r("[vV]"+qr+"+\\."+e(Zo,To,"[\\:]")+"+"),Cr=r("\\["+r(Vt+"|"+ot+"|"+sr)+"\\]"),zr=r(r(Ui+"|"+e(Zo,To))+"*"),jr=r(Cr+"|"+tf+"(?!"+zr+")|"+zr),Rn=r(Ht+"*"),Cn=r(r($s+"@")+"?"+jr+r("\\:"+Rn)+"?"),Hn=r(Ui+"|"+e(Zo,To,"[\\:\\@]")),Yi=r(Hn+"*"),hs=r(Hn+"+"),jc=r(r(Ui+"|"+e(Zo,To,"[\\@]"))+"+"),os=r(r("\\/"+Yi)+"*"),bu=r("\\/"+r(hs+os)+"?"),Eu=r(jc+os),Lg=r(hs+os),cl="(?!"+Hn+")",zT=r(os+"|"+bu+"|"+Eu+"|"+Lg+"|"+cl),pm=r(r(Hn+"|"+e("[\\/\\?]",Ki))+"*"),Hp=r(r(Hn+"|[\\/\\?]")+"*"),HA=r(r("\\/\\/"+Cn+os)+"|"+bu+"|"+Lg+"|"+cl),KT=r(Oa+"\\:"+HA+r("\\?"+pm)+"?"+r("\\#"+Hp)+"?"),aE=r(r("\\/\\/"+Cn+os)+"|"+bu+"|"+Eu+"|"+cl),md=r(aE+r("\\?"+pm)+"?"+r("\\#"+Hp)+"?"),R2=r(KT+"|"+md),Ym=r(Oa+"\\:"+HA+r("\\?"+pm)+"?"),VA="^("+Oa+")\\:"+r(r("\\/\\/("+r("("+$s+")@")+"?("+jr+")"+r("\\:("+Rn+")")+"?)")+"?("+os+"|"+bu+"|"+Lg+"|"+cl+")")+r("\\?("+pm+")")+"?"+r("\\#("+Hp+")")+"?$",av="^(){0}"+r(r("\\/\\/("+r("("+$s+")@")+"?("+jr+")"+r("\\:("+Rn+")")+"?)")+"?("+os+"|"+bu+"|"+Eu+"|"+cl+")")+r("\\?("+pm+")")+"?"+r("\\#("+Hp+")")+"?$",cv="^("+Oa+")\\:"+r(r("\\/\\/("+r("("+$s+")@")+"?("+jr+")"+r("\\:("+Rn+")")+"?)")+"?("+os+"|"+bu+"|"+Lg+"|"+cl+")")+r("\\?("+pm+")")+"?$",Vp="^"+r("\\#("+Hp+")")+"?$",zw="^"+r("("+$s+")@")+"?("+jr+")"+r("\\:("+Rn+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",pt,Ht,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",Zo,To),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",Zo,To),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",Zo,To),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",Zo,To),"g"),NOT_QUERY:new RegExp(e("[^\\%]",Zo,To,"[\\:\\@\\/\\?]",Ki),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",Zo,To,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",Zo,To),"g"),UNRESERVED:new RegExp(Zo,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",Zo,Xo),"g"),PCT_ENCODED:new RegExp(Ui,"g"),IPV4ADDRESS:new RegExp("^("+tf+")$"),IPV6ADDRESS:new RegExp("^\\[?("+ot+")"+r(r("\\%25|\\%(?!"+qr+"{2})")+"("+at+")")+"?\\]?$")}}var c=n(!1),u=n(!0),f=(function(){function wt(pt,Ot){var Ht=[],jt=!0,qr=!1,Nn=void 0;try{for(var ei=pt[Symbol.iterator](),Ui;!(jt=(Ui=ei.next()).done)&&(Ht.push(Ui.value),!(Ot&&Ht.length===Ot));jt=!0);}catch(ko){qr=!0,Nn=ko}finally{try{!jt&&ei.return&&ei.return()}finally{if(qr)throw Nn}}return Ht}return function(pt,Ot){if(Array.isArray(pt))return pt;if(Symbol.iterator in Object(pt))return wt(pt,Ot);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),d=function(wt){if(Array.isArray(wt)){for(var pt=0,Ot=Array(wt.length);pt<wt.length;pt++)Ot[pt]=wt[pt];return Ot}else return Array.from(wt)},p=2147483647,h=36,m=1,y=26,g=38,A=700,v=72,b=128,x="-",T=/^xn--/,D=/[^\0-\x7E]/,I=/[\x2E\u3002\uFF0E\uFF61]/g,B={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=h-m,R=Math.floor,O=String.fromCharCode;function M(wt){throw new RangeError(B[wt])}function k(wt,pt){for(var Ot=[],Ht=wt.length;Ht--;)Ot[Ht]=pt(wt[Ht]);return Ot}function P(wt,pt){var Ot=wt.split("@"),Ht="";Ot.length>1&&(Ht=Ot[0]+"@",wt=Ot[1]),wt=wt.replace(I,".");var jt=wt.split("."),qr=k(jt,pt).join(".");return Ht+qr}function q(wt){for(var pt=[],Ot=0,Ht=wt.length;Ot<Ht;){var jt=wt.charCodeAt(Ot++);if(jt>=55296&&jt<=56319&&Ot<Ht){var qr=wt.charCodeAt(Ot++);(qr&64512)==56320?pt.push(((jt&1023)<<10)+(qr&1023)+65536):(pt.push(jt),Ot--)}else pt.push(jt)}return pt}var F=function(pt){return String.fromCodePoint.apply(String,d(pt))},G=function(pt){return pt-48<10?pt-22:pt-65<26?pt-65:pt-97<26?pt-97:h},H=function(pt,Ot){return pt+22+75*(pt<26)-((Ot!=0)<<5)},U=function(pt,Ot,Ht){var jt=0;for(pt=Ht?R(pt/A):pt>>1,pt+=R(pt/Ot);pt>w*y>>1;jt+=h)pt=R(pt/w);return R(jt+(w+1)*pt/(pt+g))},$=function(pt){var Ot=[],Ht=pt.length,jt=0,qr=b,Nn=v,ei=pt.lastIndexOf(x);ei<0&&(ei=0);for(var Ui=0;Ui<ei;++Ui)pt.charCodeAt(Ui)>=128&&M("not-basic"),Ot.push(pt.charCodeAt(Ui));for(var ko=ei>0?ei+1:0;ko<Ht;){for(var To=jt,Xo=1,xs=h;;xs+=h){ko>=Ht&&M("invalid-input");var Ki=G(pt.charCodeAt(ko++));(Ki>=h||Ki>R((p-jt)/Xo))&&M("overflow"),jt+=Ki*Xo;var Zo=xs<=Nn?m:xs>=Nn+y?y:xs-Nn;if(Ki<Zo)break;var Oa=h-Zo;Xo>R(p/Oa)&&M("overflow"),Xo*=Oa}var $s=Ot.length+1;Nn=U(jt-To,$s,To==0),R(jt/$s)>p-qr&&M("overflow"),qr+=R(jt/$s),jt%=$s,Ot.splice(jt++,0,qr)}return String.fromCodePoint.apply(String,Ot)},Y=function(pt){var Ot=[];pt=q(pt);var Ht=pt.length,jt=b,qr=0,Nn=v,ei=!0,Ui=!1,ko=void 0;try{for(var To=pt[Symbol.iterator](),Xo;!(ei=(Xo=To.next()).done);ei=!0){var xs=Xo.value;xs<128&&Ot.push(O(xs))}}catch(Vt){Ui=!0,ko=Vt}finally{try{!ei&&To.return&&To.return()}finally{if(Ui)throw ko}}var Ki=Ot.length,Zo=Ki;for(Ki&&Ot.push(x);Zo<Ht;){var Oa=p,$s=!0,ef=!1,Hl=void 0;try{for(var tf=pt[Symbol.iterator](),Ws;!($s=(Ws=tf.next()).done);$s=!0){var pd=Ws.value;pd>=jt&&pd<Oa&&(Oa=pd)}}catch(Vt){ef=!0,Hl=Vt}finally{try{!$s&&tf.return&&tf.return()}finally{if(ef)throw Hl}}var $a=Zo+1;Oa-jt>R((p-qr)/$a)&&M("overflow"),qr+=(Oa-jt)*$a,jt=Oa;var ps=!0,Ch=!1,hd=void 0;try{for(var dm=pt[Symbol.iterator](),Th;!(ps=(Th=dm.next()).done);ps=!0){var al=Th.value;if(al<jt&&++qr>p&&M("overflow"),al==jt){for(var Gc=qr,yp=h;;yp+=h){var ot=yp<=Nn?m:yp>=Nn+y?y:yp-Nn;if(Gc<ot)break;var at=Gc-ot,kt=h-ot;Ot.push(O(H(ot+at%kt,0))),Gc=R(at/kt)}Ot.push(O(H(Gc,0))),Nn=U(qr,$a,Zo==Ki),qr=0,++Zo}}}catch(Vt){Ch=!0,hd=Vt}finally{try{!ps&&dm.return&&dm.return()}finally{if(Ch)throw hd}}++qr,++jt}return Ot.join("")},se=function(pt){return P(pt,function(Ot){return T.test(Ot)?$(Ot.slice(4).toLowerCase()):Ot})},J=function(pt){return P(pt,function(Ot){return D.test(Ot)?"xn--"+Y(Ot):Ot})},fe={version:"2.1.0",ucs2:{decode:q,encode:F},decode:$,encode:Y,toASCII:J,toUnicode:se},Ae={};function ne(wt){var pt=wt.charCodeAt(0),Ot=void 0;return pt<16?Ot="%0"+pt.toString(16).toUpperCase():pt<128?Ot="%"+pt.toString(16).toUpperCase():pt<2048?Ot="%"+(pt>>6|192).toString(16).toUpperCase()+"%"+(pt&63|128).toString(16).toUpperCase():Ot="%"+(pt>>12|224).toString(16).toUpperCase()+"%"+(pt>>6&63|128).toString(16).toUpperCase()+"%"+(pt&63|128).toString(16).toUpperCase(),Ot}function ge(wt){for(var pt="",Ot=0,Ht=wt.length;Ot<Ht;){var jt=parseInt(wt.substr(Ot+1,2),16);if(jt<128)pt+=String.fromCharCode(jt),Ot+=3;else if(jt>=194&&jt<224){if(Ht-Ot>=6){var qr=parseInt(wt.substr(Ot+4,2),16);pt+=String.fromCharCode((jt&31)<<6|qr&63)}else pt+=wt.substr(Ot,6);Ot+=6}else if(jt>=224){if(Ht-Ot>=9){var Nn=parseInt(wt.substr(Ot+4,2),16),ei=parseInt(wt.substr(Ot+7,2),16);pt+=String.fromCharCode((jt&15)<<12|(Nn&63)<<6|ei&63)}else pt+=wt.substr(Ot,9);Ot+=9}else pt+=wt.substr(Ot,3),Ot+=3}return pt}function ee(wt,pt){function Ot(Ht){var jt=ge(Ht);return jt.match(pt.UNRESERVED)?jt:Ht}return wt.scheme&&(wt.scheme=String(wt.scheme).replace(pt.PCT_ENCODED,Ot).toLowerCase().replace(pt.NOT_SCHEME,"")),wt.userinfo!==void 0&&(wt.userinfo=String(wt.userinfo).replace(pt.PCT_ENCODED,Ot).replace(pt.NOT_USERINFO,ne).replace(pt.PCT_ENCODED,s)),wt.host!==void 0&&(wt.host=String(wt.host).replace(pt.PCT_ENCODED,Ot).toLowerCase().replace(pt.NOT_HOST,ne).replace(pt.PCT_ENCODED,s)),wt.path!==void 0&&(wt.path=String(wt.path).replace(pt.PCT_ENCODED,Ot).replace(wt.scheme?pt.NOT_PATH:pt.NOT_PATH_NOSCHEME,ne).replace(pt.PCT_ENCODED,s)),wt.query!==void 0&&(wt.query=String(wt.query).replace(pt.PCT_ENCODED,Ot).replace(pt.NOT_QUERY,ne).replace(pt.PCT_ENCODED,s)),wt.fragment!==void 0&&(wt.fragment=String(wt.fragment).replace(pt.PCT_ENCODED,Ot).replace(pt.NOT_FRAGMENT,ne).replace(pt.PCT_ENCODED,s)),wt}function X(wt){return wt.replace(/^0*(.*)/,"$1")||"0"}function ue(wt,pt){var Ot=wt.match(pt.IPV4ADDRESS)||[],Ht=f(Ot,2),jt=Ht[1];return jt?jt.split(".").map(X).join("."):wt}function oe(wt,pt){var Ot=wt.match(pt.IPV6ADDRESS)||[],Ht=f(Ot,3),jt=Ht[1],qr=Ht[2];if(jt){for(var Nn=jt.toLowerCase().split("::").reverse(),ei=f(Nn,2),Ui=ei[0],ko=ei[1],To=ko?ko.split(":").map(X):[],Xo=Ui.split(":").map(X),xs=pt.IPV4ADDRESS.test(Xo[Xo.length-1]),Ki=xs?7:8,Zo=Xo.length-Ki,Oa=Array(Ki),$s=0;$s<Ki;++$s)Oa[$s]=To[$s]||Xo[Zo+$s]||"";xs&&(Oa[Ki-1]=ue(Oa[Ki-1],pt));var ef=Oa.reduce(function($a,ps,Ch){if(!ps||ps==="0"){var hd=$a[$a.length-1];hd&&hd.index+hd.length===Ch?hd.length++:$a.push({index:Ch,length:1})}return $a},[]),Hl=ef.sort(function($a,ps){return ps.length-$a.length})[0],tf=void 0;if(Hl&&Hl.length>1){var Ws=Oa.slice(0,Hl.index),pd=Oa.slice(Hl.index+Hl.length);tf=Ws.join(":")+"::"+pd.join(":")}else tf=Oa.join(":");return qr&&(tf+="%"+qr),tf}else return wt}var ae=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,pe="".match(/(){0}/)[1]===void 0;function te(wt){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ot={},Ht=pt.iri!==!1?u:c;pt.reference==="suffix"&&(wt=(pt.scheme?pt.scheme+":":"")+"//"+wt);var jt=wt.match(ae);if(jt){pe?(Ot.scheme=jt[1],Ot.userinfo=jt[3],Ot.host=jt[4],Ot.port=parseInt(jt[5],10),Ot.path=jt[6]||"",Ot.query=jt[7],Ot.fragment=jt[8],isNaN(Ot.port)&&(Ot.port=jt[5])):(Ot.scheme=jt[1]||void 0,Ot.userinfo=wt.indexOf("@")!==-1?jt[3]:void 0,Ot.host=wt.indexOf("//")!==-1?jt[4]:void 0,Ot.port=parseInt(jt[5],10),Ot.path=jt[6]||"",Ot.query=wt.indexOf("?")!==-1?jt[7]:void 0,Ot.fragment=wt.indexOf("#")!==-1?jt[8]:void 0,isNaN(Ot.port)&&(Ot.port=wt.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?jt[4]:void 0)),Ot.host&&(Ot.host=oe(ue(Ot.host,Ht),Ht)),Ot.scheme===void 0&&Ot.userinfo===void 0&&Ot.host===void 0&&Ot.port===void 0&&!Ot.path&&Ot.query===void 0?Ot.reference="same-document":Ot.scheme===void 0?Ot.reference="relative":Ot.fragment===void 0?Ot.reference="absolute":Ot.reference="uri",pt.reference&&pt.reference!=="suffix"&&pt.reference!==Ot.reference&&(Ot.error=Ot.error||"URI is not a "+pt.reference+" reference.");var qr=Ae[(pt.scheme||Ot.scheme||"").toLowerCase()];if(!pt.unicodeSupport&&(!qr||!qr.unicodeSupport)){if(Ot.host&&(pt.domainHost||qr&&qr.domainHost))try{Ot.host=fe.toASCII(Ot.host.replace(Ht.PCT_ENCODED,ge).toLowerCase())}catch(Nn){Ot.error=Ot.error||"Host's domain name can not be converted to ASCII via punycode: "+Nn}ee(Ot,c)}else ee(Ot,Ht);qr&&qr.parse&&qr.parse(Ot,pt)}else Ot.error=Ot.error||"URI can not be parsed.";return Ot}function z(wt,pt){var Ot=pt.iri!==!1?u:c,Ht=[];return wt.userinfo!==void 0&&(Ht.push(wt.userinfo),Ht.push("@")),wt.host!==void 0&&Ht.push(oe(ue(String(wt.host),Ot),Ot).replace(Ot.IPV6ADDRESS,function(jt,qr,Nn){return"["+qr+(Nn?"%25"+Nn:"")+"]"})),(typeof wt.port=="number"||typeof wt.port=="string")&&(Ht.push(":"),Ht.push(String(wt.port))),Ht.length?Ht.join(""):void 0}var K=/^\.\.?\//,Ee=/^\/\.(\/|$)/,be=/^\/\.\.(\/|$)/,ie=/^\/?(?:.|\n)*?(?=\/|$)/;function Oe(wt){for(var pt=[];wt.length;)if(wt.match(K))wt=wt.replace(K,"");else if(wt.match(Ee))wt=wt.replace(Ee,"/");else if(wt.match(be))wt=wt.replace(be,"/"),pt.pop();else if(wt==="."||wt==="..")wt="";else{var Ot=wt.match(ie);if(Ot){var Ht=Ot[0];wt=wt.slice(Ht.length),pt.push(Ht)}else throw new Error("Unexpected dot segment condition")}return pt.join("")}function tt(wt){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ot=pt.iri?u:c,Ht=[],jt=Ae[(pt.scheme||wt.scheme||"").toLowerCase()];if(jt&&jt.serialize&&jt.serialize(wt,pt),wt.host&&!Ot.IPV6ADDRESS.test(wt.host)){if(pt.domainHost||jt&&jt.domainHost)try{wt.host=pt.iri?fe.toUnicode(wt.host):fe.toASCII(wt.host.replace(Ot.PCT_ENCODED,ge).toLowerCase())}catch(ei){wt.error=wt.error||"Host's domain name can not be converted to "+(pt.iri?"Unicode":"ASCII")+" via punycode: "+ei}}ee(wt,Ot),pt.reference!=="suffix"&&wt.scheme&&(Ht.push(wt.scheme),Ht.push(":"));var qr=z(wt,pt);if(qr!==void 0&&(pt.reference!=="suffix"&&Ht.push("//"),Ht.push(qr),wt.path&&wt.path.charAt(0)!=="/"&&Ht.push("/")),wt.path!==void 0){var Nn=wt.path;!pt.absolutePath&&(!jt||!jt.absolutePath)&&(Nn=Oe(Nn)),qr===void 0&&(Nn=Nn.replace(/^\/\//,"/%2F")),Ht.push(Nn)}return wt.query!==void 0&&(Ht.push("?"),Ht.push(wt.query)),wt.fragment!==void 0&&(Ht.push("#"),Ht.push(wt.fragment)),Ht.join("")}function Pe(wt,pt){var Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ht=arguments[3],jt={};return Ht||(wt=te(tt(wt,Ot),Ot),pt=te(tt(pt,Ot),Ot)),Ot=Ot||{},!Ot.tolerant&&pt.scheme?(jt.scheme=pt.scheme,jt.userinfo=pt.userinfo,jt.host=pt.host,jt.port=pt.port,jt.path=Oe(pt.path||""),jt.query=pt.query):(pt.userinfo!==void 0||pt.host!==void 0||pt.port!==void 0?(jt.userinfo=pt.userinfo,jt.host=pt.host,jt.port=pt.port,jt.path=Oe(pt.path||""),jt.query=pt.query):(pt.path?(pt.path.charAt(0)==="/"?jt.path=Oe(pt.path):((wt.userinfo!==void 0||wt.host!==void 0||wt.port!==void 0)&&!wt.path?jt.path="/"+pt.path:wt.path?jt.path=wt.path.slice(0,wt.path.lastIndexOf("/")+1)+pt.path:jt.path=pt.path,jt.path=Oe(jt.path)),jt.query=pt.query):(jt.path=wt.path,pt.query!==void 0?jt.query=pt.query:jt.query=wt.query),jt.userinfo=wt.userinfo,jt.host=wt.host,jt.port=wt.port),jt.scheme=wt.scheme),jt.fragment=pt.fragment,jt}function je(wt,pt,Ot){var Ht=i({scheme:"null"},Ot);return tt(Pe(te(wt,Ht),te(pt,Ht),Ht,!0),Ht)}function de(wt,pt){return typeof wt=="string"?wt=tt(te(wt,pt),pt):o(wt)==="object"&&(wt=te(tt(wt,pt),pt)),wt}function Ce(wt,pt,Ot){return typeof wt=="string"?wt=tt(te(wt,Ot),Ot):o(wt)==="object"&&(wt=tt(wt,Ot)),typeof pt=="string"?pt=tt(te(pt,Ot),Ot):o(pt)==="object"&&(pt=tt(pt,Ot)),wt===pt}function De(wt,pt){return wt&&wt.toString().replace(!pt||!pt.iri?c.ESCAPE:u.ESCAPE,ne)}function Re(wt,pt){return wt&&wt.toString().replace(!pt||!pt.iri?c.PCT_ENCODED:u.PCT_ENCODED,ge)}var Ne={scheme:"http",domainHost:!0,parse:function(pt,Ot){return pt.host||(pt.error=pt.error||"HTTP URIs must have a host."),pt},serialize:function(pt,Ot){var Ht=String(pt.scheme).toLowerCase()==="https";return(pt.port===(Ht?443:80)||pt.port==="")&&(pt.port=void 0),pt.path||(pt.path="/"),pt}},Be={scheme:"https",domainHost:Ne.domainHost,parse:Ne.parse,serialize:Ne.serialize};function rt(wt){return typeof wt.secure=="boolean"?wt.secure:String(wt.scheme).toLowerCase()==="wss"}var it={scheme:"ws",domainHost:!0,parse:function(pt,Ot){var Ht=pt;return Ht.secure=rt(Ht),Ht.resourceName=(Ht.path||"/")+(Ht.query?"?"+Ht.query:""),Ht.path=void 0,Ht.query=void 0,Ht},serialize:function(pt,Ot){if((pt.port===(rt(pt)?443:80)||pt.port==="")&&(pt.port=void 0),typeof pt.secure=="boolean"&&(pt.scheme=pt.secure?"wss":"ws",pt.secure=void 0),pt.resourceName){var Ht=pt.resourceName.split("?"),jt=f(Ht,2),qr=jt[0],Nn=jt[1];pt.path=qr&&qr!=="/"?qr:void 0,pt.query=Nn,pt.resourceName=void 0}return pt.fragment=void 0,pt}},At={scheme:"wss",domainHost:it.domainHost,parse:it.parse,serialize:it.serialize},$t={},vr=!0,xe="[A-Za-z0-9\\-\\.\\_\\~"+(vr?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Te="[0-9A-Fa-f]",Ge=r(r("%[EFef]"+Te+"%"+Te+Te+"%"+Te+Te)+"|"+r("%[89A-Fa-f]"+Te+"%"+Te+Te)+"|"+r("%"+Te+Te)),St="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",dt="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",lt=e(dt,'[\\"\\\\]'),Dt="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",_t=new RegExp(xe,"g"),Ut=new RegExp(Ge,"g"),pr=new RegExp(e("[^]",St,"[\\.]",'[\\"]',lt),"g"),Sr=new RegExp(e("[^]",xe,Dt),"g"),_r=Sr;function Kr(wt){var pt=ge(wt);return pt.match(_t)?pt:wt}var qn={scheme:"mailto",parse:function(pt,Ot){var Ht=pt,jt=Ht.to=Ht.path?Ht.path.split(","):[];if(Ht.path=void 0,Ht.query){for(var qr=!1,Nn={},ei=Ht.query.split("&"),Ui=0,ko=ei.length;Ui<ko;++Ui){var To=ei[Ui].split("=");switch(To[0]){case"to":for(var Xo=To[1].split(","),xs=0,Ki=Xo.length;xs<Ki;++xs)jt.push(Xo[xs]);break;case"subject":Ht.subject=Re(To[1],Ot);break;case"body":Ht.body=Re(To[1],Ot);break;default:qr=!0,Nn[Re(To[0],Ot)]=Re(To[1],Ot);break}}qr&&(Ht.headers=Nn)}Ht.query=void 0;for(var Zo=0,Oa=jt.length;Zo<Oa;++Zo){var $s=jt[Zo].split("@");if($s[0]=Re($s[0]),Ot.unicodeSupport)$s[1]=Re($s[1],Ot).toLowerCase();else try{$s[1]=fe.toASCII(Re($s[1],Ot).toLowerCase())}catch(ef){Ht.error=Ht.error||"Email address's domain name can not be converted to ASCII via punycode: "+ef}jt[Zo]=$s.join("@")}return Ht},serialize:function(pt,Ot){var Ht=pt,jt=a(pt.to);if(jt){for(var qr=0,Nn=jt.length;qr<Nn;++qr){var ei=String(jt[qr]),Ui=ei.lastIndexOf("@"),ko=ei.slice(0,Ui).replace(Ut,Kr).replace(Ut,s).replace(pr,ne),To=ei.slice(Ui+1);try{To=Ot.iri?fe.toUnicode(To):fe.toASCII(Re(To,Ot).toLowerCase())}catch(Zo){Ht.error=Ht.error||"Email address's domain name can not be converted to "+(Ot.iri?"Unicode":"ASCII")+" via punycode: "+Zo}jt[qr]=ko+"@"+To}Ht.path=jt.join(",")}var Xo=pt.headers=pt.headers||{};pt.subject&&(Xo.subject=pt.subject),pt.body&&(Xo.body=pt.body);var xs=[];for(var Ki in Xo)Xo[Ki]!==$t[Ki]&&xs.push(Ki.replace(Ut,Kr).replace(Ut,s).replace(Sr,ne)+"="+Xo[Ki].replace(Ut,Kr).replace(Ut,s).replace(_r,ne));return xs.length&&(Ht.query=xs.join("&")),Ht}},Un=/^([^\:]+)\:(.*)/,Jn={scheme:"urn",parse:function(pt,Ot){var Ht=pt.path&&pt.path.match(Un),jt=pt;if(Ht){var qr=Ot.scheme||jt.scheme||"urn",Nn=Ht[1].toLowerCase(),ei=Ht[2],Ui=qr+":"+(Ot.nid||Nn),ko=Ae[Ui];jt.nid=Nn,jt.nss=ei,jt.path=void 0,ko&&(jt=ko.parse(jt,Ot))}else jt.error=jt.error||"URN can not be parsed.";return jt},serialize:function(pt,Ot){var Ht=Ot.scheme||pt.scheme||"urn",jt=pt.nid,qr=Ht+":"+(Ot.nid||jt),Nn=Ae[qr];Nn&&(pt=Nn.serialize(pt,Ot));var ei=pt,Ui=pt.nss;return ei.path=(jt||Ot.nid)+":"+Ui,ei}},_o=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Co={scheme:"urn:uuid",parse:function(pt,Ot){var Ht=pt;return Ht.uuid=Ht.nss,Ht.nss=void 0,!Ot.tolerant&&(!Ht.uuid||!Ht.uuid.match(_o))&&(Ht.error=Ht.error||"UUID is not valid."),Ht},serialize:function(pt,Ot){var Ht=pt;return Ht.nss=(pt.uuid||"").toLowerCase(),Ht}};Ae[Ne.scheme]=Ne,Ae[Be.scheme]=Be,Ae[it.scheme]=it,Ae[At.scheme]=At,Ae[qn.scheme]=qn,Ae[Jn.scheme]=Jn,Ae[Co.scheme]=Co,t.SCHEMES=Ae,t.pctEncChar=ne,t.pctDecChars=ge,t.parse=te,t.removeDotSegments=Oe,t.serialize=tt,t.resolveComponents=Pe,t.resolve=je,t.normalize=de,t.equal=Ce,t.escapeComponent=De,t.unescapeComponent=Re,Object.defineProperty(t,"__esModule",{value:!0})}))});var Hie=E((Uyl,swn)=>{"use strict";swn.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var o,s,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(s=o;s--!==0;)if(!t(e[s],r[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(a=Object.keys(e),o=a.length,o!==Object.keys(r).length)return!1;for(s=o;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[s]))return!1;for(s=o;s--!==0;){var i=a[s];if(!t(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}});var cwn=E((Fyl,awn)=>{"use strict";awn.exports=function(e){for(var r=0,o=e.length,s=0,a;s<o;)r++,a=e.charCodeAt(s++),a>=55296&&a<=56319&&s<o&&(a=e.charCodeAt(s),(a&64512)==56320&&s++);return r}});var _j=E((Qyl,fwn)=>{"use strict";fwn.exports={copy:IIs,checkDataType:HFt,checkDataTypes:DIs,coerceToTypes:OIs,toHash:GFt,getProperty:jFt,escapeQuotes:$Ft,equal:Hie(),ucs2length:cwn(),varOccurences:PIs,varReplace:BIs,schemaHasRules:kIs,schemaHasRulesExcept:MIs,schemaUnknownRules:LIs,toQuotedString:VFt,getPathExpr:UIs,getPath:FIs,getData:HIs,unescapeFragment:VIs,unescapeJsonPointer:zFt,escapeFragment:GIs,escapeJsonPointer:WFt};function IIs(t,e){e=e||{};for(var r in t)e[r]=t[r];return e}function HFt(t,e,r,o){var s=o?" !== ":" === ",a=o?" || ":" && ",i=o?"!":"",n=o?"":"!";switch(t){case"null":return e+s+"null";case"array":return i+"Array.isArray("+e+")";case"object":return"("+i+e+a+"typeof "+e+s+'"object"'+a+n+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+s+'"number"'+a+n+"("+e+" % 1)"+a+e+s+e+(r?a+i+"isFinite("+e+")":"")+")";case"number":return"(typeof "+e+s+'"'+t+'"'+(r?a+i+"isFinite("+e+")":"")+")";default:return"typeof "+e+s+'"'+t+'"'}}function DIs(t,e,r){switch(t.length){case 1:return HFt(t[0],e,r,!0);default:var o="",s=GFt(t);s.array&&s.object&&(o=s.null?"(":"(!"+e+" || ",o+="typeof "+e+' !== "object")',delete s.null,delete s.array,delete s.object),s.number&&delete s.integer;for(var a in s)o+=(o?" && ":"")+HFt(a,e,r,!0);return o}}var lwn=GFt(["string","number","integer","boolean","null"]);function OIs(t,e){if(Array.isArray(e)){for(var r=[],o=0;o<e.length;o++){var s=e[o];(lwn[s]||t==="array"&&s==="array")&&(r[r.length]=s)}if(r.length)return r}else{if(lwn[e])return[e];if(t==="array"&&e==="array")return["array"]}}function GFt(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=!0;return e}var RIs=/^[a-z$_][a-z$_0-9]*$/i,NIs=/'|\\/g;function jFt(t){return typeof t=="number"?"["+t+"]":RIs.test(t)?"."+t:"['"+$Ft(t)+"']"}function $Ft(t){return t.replace(NIs,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function PIs(t,e){e+="[^0-9]";var r=t.match(new RegExp(e,"g"));return r?r.length:0}function BIs(t,e,r){return e+="([^0-9])",r=r.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),r+"$1")}function kIs(t,e){if(typeof t=="boolean")return!t;for(var r in t)if(e[r])return!0}function MIs(t,e,r){if(typeof t=="boolean")return!t&&r!="not";for(var o in t)if(o!=r&&e[o])return!0}function LIs(t,e){if(typeof t!="boolean"){for(var r in t)if(!e[r])return r}}function VFt(t){return"'"+$Ft(t)+"'"}function UIs(t,e,r,o){var s=r?"'/' + "+e+(o?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):o?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return uwn(t,s)}function FIs(t,e,r){var o=VFt(r?"/"+WFt(e):jFt(e));return uwn(t,o)}var QIs=/^\/(?:[^~]|~0|~1)*$/,qIs=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function HIs(t,e,r){var o,s,a,i;if(t==="")return"rootData";if(t[0]=="/"){if(!QIs.test(t))throw new Error("Invalid JSON-pointer: "+t);s=t,a="rootData"}else{if(i=t.match(qIs),!i)throw new Error("Invalid JSON-pointer: "+t);if(o=+i[1],s=i[2],s=="#"){if(o>=e)throw new Error("Cannot access property/index "+o+" levels up, current level is "+e);return r[e-o]}if(o>e)throw new Error("Cannot access data "+o+" levels up, current level is "+e);if(a="data"+(e-o||""),!s)return a}for(var n=a,c=s.split("/"),u=0;u<c.length;u++){var f=c[u];f&&(a+=jFt(zFt(f)),n+=" && "+a)}return n}function uwn(t,e){return t=='""'?e:(t+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function VIs(t){return zFt(decodeURIComponent(t))}function GIs(t){return encodeURIComponent(WFt(t))}function WFt(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function zFt(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}});var KFt=E((qyl,dwn)=>{"use strict";var jIs=_j();dwn.exports=$Is;function $Is(t){jIs.copy(t,this)}});var hwn=E((Hyl,pwn)=>{"use strict";var SL=pwn.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var o=typeof r=="function"?r:r.pre||function(){},s=r.post||function(){};PYe(e,o,s,t,"",t)};SL.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};SL.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};SL.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};SL.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function PYe(t,e,r,o,s,a,i,n,c,u){if(o&&typeof o=="object"&&!Array.isArray(o)){e(o,s,a,i,n,c,u);for(var f in o){var d=o[f];if(Array.isArray(d)){if(f in SL.arrayKeywords)for(var p=0;p<d.length;p++)PYe(t,e,r,d[p],s+"/"+f+"/"+p,a,s,f,o,p)}else if(f in SL.propsKeywords){if(d&&typeof d=="object")for(var h in d)PYe(t,e,r,d[h],s+"/"+f+"/"+WIs(h),a,s,f,o,h)}else(f in SL.keywords||t.allKeys&&!(f in SL.skipKeywords))&&PYe(t,e,r,d,s+"/"+f,a,s,f,o)}r(o,s,a,i,n,c,u)}}function WIs(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var FYe=E((Vyl,Awn)=>{"use strict";var E3e=own(),mwn=Hie(),LYe=_j(),BYe=KFt(),zIs=hwn();Awn.exports=_L;_L.normalizeId=xL;_L.fullPath=kYe;_L.url=MYe;_L.ids=ZIs;_L.inlineRef=YFt;_L.schema=UYe;function _L(t,e,r){var o=this._refs[r];if(typeof o=="string")if(this._refs[o])o=this._refs[o];else return _L.call(this,t,e,o);if(o=o||this._schemas[r],o instanceof BYe)return YFt(o.schema,this._opts.inlineRefs)?o.schema:o.validate||this._compile(o);var s=UYe.call(this,e,r),a,i,n;return s&&(a=s.schema,e=s.root,n=s.baseId),a instanceof BYe?i=a.validate||t.call(this,a.schema,e,void 0,n):a!==void 0&&(i=YFt(a,this._opts.inlineRefs)?a:t.call(this,a,e,void 0,n)),i}function UYe(t,e){var r=E3e.parse(e),o=ywn(r),s=kYe(this._getId(t.schema));if(Object.keys(t.schema).length===0||o!==s){var a=xL(o),i=this._refs[a];if(typeof i=="string")return KIs.call(this,t,i,r);if(i instanceof BYe)i.validate||this._compile(i),t=i;else if(i=this._schemas[a],i instanceof BYe){if(i.validate||this._compile(i),a==xL(e))return{schema:i,root:t,baseId:s};t=i}else return;if(!t.schema)return;s=kYe(this._getId(t.schema))}return gwn.call(this,r,s,t.schema,t)}function KIs(t,e,r){var o=UYe.call(this,t,e);if(o){var s=o.schema,a=o.baseId;t=o.root;var i=this._getId(s);return i&&(a=MYe(a,i)),gwn.call(this,r,a,s,t)}}var YIs=LYe.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function gwn(t,e,r,o){if(t.fragment=t.fragment||"",t.fragment.slice(0,1)=="/"){for(var s=t.fragment.split("/"),a=1;a<s.length;a++){var i=s[a];if(i){if(i=LYe.unescapeFragment(i),r=r[i],r===void 0)break;var n;if(!YIs[i]&&(n=this._getId(r),n&&(e=MYe(e,n)),r.$ref)){var c=MYe(e,r.$ref),u=UYe.call(this,o,c);u&&(r=u.schema,o=u.root,e=u.baseId)}}}if(r!==void 0&&r!==o.schema)return{schema:r,root:o,baseId:e}}}var JIs=LYe.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function YFt(t,e){if(e===!1)return!1;if(e===void 0||e===!0)return JFt(t);if(e)return XFt(t)<=e}function JFt(t){var e;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(e=t[r],typeof e=="object"&&!JFt(e))return!1}else for(var o in t)if(o=="$ref"||(e=t[o],typeof e=="object"&&!JFt(e)))return!1;return!0}function XFt(t){var e=0,r;if(Array.isArray(t)){for(var o=0;o<t.length;o++)if(r=t[o],typeof r=="object"&&(e+=XFt(r)),e==1/0)return 1/0}else for(var s in t){if(s=="$ref")return 1/0;if(JIs[s])e++;else if(r=t[s],typeof r=="object"&&(e+=XFt(r)+1),e==1/0)return 1/0}return e}function kYe(t,e){e!==!1&&(t=xL(t));var r=E3e.parse(t);return ywn(r)}function ywn(t){return E3e.serialize(t).split("#")[0]+"#"}var XIs=/#\/?$/;function xL(t){return t?t.replace(XIs,""):""}function MYe(t,e){return e=xL(e),E3e.resolve(t,e)}function ZIs(t){var e=xL(this._getId(t)),r={"":e},o={"":kYe(e,!1)},s={},a=this;return zIs(t,{allKeys:!0},function(i,n,c,u,f,d,p){if(n!==""){var h=a._getId(i),m=r[u],y=o[u]+"/"+f;if(p!==void 0&&(y+="/"+(typeof p=="number"?p:LYe.escapeFragment(p))),typeof h=="string"){h=m=xL(m?E3e.resolve(m,h):h);var g=a._refs[h];if(typeof g=="string"&&(g=a._refs[g]),g&&g.schema){if(!mwn(i,g.schema))throw new Error('id "'+h+'" resolves to more than one schema')}else if(h!=xL(y))if(h[0]=="#"){if(s[h]&&!mwn(i,s[h]))throw new Error('id "'+h+'" resolves to more than one schema');s[h]=i}else a._refs[h]=y}r[n]=m,o[n]=y}}),s}});var QYe=E((Gyl,bwn)=>{"use strict";var ZFt=FYe();bwn.exports={Validation:vwn(e8s),MissingRef:vwn(eQt)};function e8s(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}eQt.message=function(t,e){return"can't resolve reference "+e+" from id "+t};function eQt(t,e,r){this.message=r||eQt.message(t,e),this.missingRef=ZFt.url(t,e),this.missingSchema=ZFt.normalizeId(ZFt.fullPath(this.missingRef))}function vwn(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}});var tQt=E((jyl,Ewn)=>{"use strict";Ewn.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,o=e.cmp&&(function(a){return function(i){return function(n,c){var u={key:n,value:i[n]},f={key:c,value:i[c]};return a(u,f)}}})(e.cmp),s=[];return(function a(i){if(i&&i.toJSON&&typeof i.toJSON=="function"&&(i=i.toJSON()),i!==void 0){if(typeof i=="number")return isFinite(i)?""+i:"null";if(typeof i!="object")return JSON.stringify(i);var n,c;if(Array.isArray(i)){for(c="[",n=0;n<i.length;n++)n&&(c+=","),c+=a(i[n])||"null";return c+"]"}if(i===null)return"null";if(s.indexOf(i)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=s.push(i)-1,f=Object.keys(i).sort(o&&o(i));for(c="",n=0;n<f.length;n++){var d=f[n],p=a(i[d]);p&&(c&&(c+=","),c+=JSON.stringify(d)+":"+p)}return s.splice(u,1),"{"+c+"}"}})(t)}});var rQt=E(($yl,Swn)=>{"use strict";Swn.exports=function(e,r,o){var s="",a=e.schema.$async===!0,i=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),n=e.self._getId(e.schema);if(e.opts.strictKeywords){var c=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(c){var u="unknown keyword: "+c;if(e.opts.strictKeywords==="log")e.logger.warn(u);else throw new Error(u)}}if(e.isTop&&(s+=" var validate = ",a&&(e.async=!0,s+="async "),s+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",n&&(e.opts.sourceCode||e.opts.processCode)&&(s+=" "+("/*# sourceURL="+n+" */")+" ")),typeof e.schema=="boolean"||!(i||e.schema.$ref)){var r="false schema",f=e.level,d=e.dataLevel,p=e.schema[r],h=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,T=!e.opts.allErrors,B,y="data"+(d||""),x="valid"+f;if(e.schema===!1){e.isTop?T=!0:s+=" var "+x+" = false; ";var g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(B||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'boolean schema is false' "),e.opts.verbose&&(s+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),s+=" } "):s+=" {} ";var A=s;s=g.pop(),!e.compositeRule&&T?e.async?s+=" throw new ValidationError(["+A+"]); ":s+=" validate.errors = ["+A+"]; return false; ":s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?a?s+=" return data; ":s+=" validate.errors = null; return true; ":s+=" var "+x+" = true; ";return e.isTop&&(s+=" }; return validate; "),s}if(e.isTop){var v=e.isTop,f=e.level=0,d=e.dataLevel=0,y="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(b);else throw new Error(b)}s+=" var vErrors = null; ",s+=" var errors = 0; ",s+=" if (rootData === undefined) rootData = data; "}else{var f=e.level,d=e.dataLevel,y="data"+(d||"");if(n&&(e.baseId=e.resolve.url(e.baseId,n)),a&&!e.async)throw new Error("async schema in sync schema");s+=" var errs_"+f+" = errors;"}var x="valid"+f,T=!e.opts.allErrors,D="",I="",B,w=e.schema.type,R=Array.isArray(w);if(w&&e.opts.nullable&&e.schema.nullable===!0&&(R?w.indexOf("null")==-1&&(w=w.concat("null")):w!="null"&&(w=[w,"null"],R=!0)),R&&w.length==1&&(w=w[0],R=!1),e.schema.$ref&&i){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(i=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(s+=" "+e.RULES.all.$comment.code(e,"$comment")),w){if(e.opts.coerceTypes)var O=e.util.coerceToTypes(e.opts.coerceTypes,w);var M=e.RULES.types[w];if(O||R||M===!0||M&&!ie(M)){var h=e.schemaPath+".type",m=e.errSchemaPath+"/type",h=e.schemaPath+".type",m=e.errSchemaPath+"/type",k=R?"checkDataTypes":"checkDataType";if(s+=" if ("+e.util[k](w,y,e.opts.strictNumbers,!0)+") { ",O){var P="dataType"+f,q="coerced"+f;s+=" var "+P+" = typeof "+y+"; var "+q+" = undefined; ",e.opts.coerceTypes=="array"&&(s+=" if ("+P+" == 'object' && Array.isArray("+y+") && "+y+".length == 1) { "+y+" = "+y+"[0]; "+P+" = typeof "+y+"; if ("+e.util.checkDataType(e.schema.type,y,e.opts.strictNumbers)+") "+q+" = "+y+"; } "),s+=" if ("+q+" !== undefined) ; ";var F=O;if(F)for(var G,H=-1,U=F.length-1;H<U;)G=F[H+=1],G=="string"?s+=" else if ("+P+" == 'number' || "+P+" == 'boolean') "+q+" = '' + "+y+"; else if ("+y+" === null) "+q+" = ''; ":G=="number"||G=="integer"?(s+=" else if ("+P+" == 'boolean' || "+y+" === null || ("+P+" == 'string' && "+y+" && "+y+" == +"+y+" ",G=="integer"&&(s+=" && !("+y+" % 1)"),s+=")) "+q+" = +"+y+"; "):G=="boolean"?s+=" else if ("+y+" === 'false' || "+y+" === 0 || "+y+" === null) "+q+" = false; else if ("+y+" === 'true' || "+y+" === 1) "+q+" = true; ":G=="null"?s+=" else if ("+y+" === '' || "+y+" === 0 || "+y+" === false) "+q+" = null; ":e.opts.coerceTypes=="array"&&G=="array"&&(s+=" else if ("+P+" == 'string' || "+P+" == 'number' || "+P+" == 'boolean' || "+y+" == null) "+q+" = ["+y+"]; ");s+=" else { ";var g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(B||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",R?s+=""+w.join(","):s+=""+w,s+="' } ",e.opts.messages!==!1&&(s+=" , message: 'should be ",R?s+=""+w.join(","):s+=""+w,s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),s+=" } "):s+=" {} ";var A=s;s=g.pop(),!e.compositeRule&&T?e.async?s+=" throw new ValidationError(["+A+"]); ":s+=" validate.errors = ["+A+"]; return false; ":s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } if ("+q+" !== undefined) { ";var $=d?"data"+(d-1||""):"parentData",Y=d?e.dataPathArr[d]:"parentDataProperty";s+=" "+y+" = "+q+"; ",d||(s+="if ("+$+" !== undefined)"),s+=" "+$+"["+Y+"] = "+q+"; } "}else{var g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(B||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",R?s+=""+w.join(","):s+=""+w,s+="' } ",e.opts.messages!==!1&&(s+=" , message: 'should be ",R?s+=""+w.join(","):s+=""+w,s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),s+=" } "):s+=" {} ";var A=s;s=g.pop(),!e.compositeRule&&T?e.async?s+=" throw new ValidationError(["+A+"]); ":s+=" validate.errors = ["+A+"]; return false; ":s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } "}}if(e.schema.$ref&&!i)s+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",T&&(s+=" } if (errors === ",v?s+="0":s+="errs_"+f,s+=") { ",I+="}");else{var se=e.RULES;if(se){for(var M,J=-1,fe=se.length-1;J<fe;)if(M=se[J+=1],ie(M)){if(M.type&&(s+=" if ("+e.util.checkDataType(M.type,y,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(M.type=="object"&&e.schema.properties){var p=e.schema.properties,Ae=Object.keys(p),ne=Ae;if(ne)for(var ge,ee=-1,X=ne.length-1;ee<X;){ge=ne[ee+=1];var ue=p[ge];if(ue.default!==void 0){var oe=y+e.util.getProperty(ge);if(e.compositeRule){if(e.opts.strictDefaults){var b="default is ignored for: "+oe;if(e.opts.strictDefaults==="log")e.logger.warn(b);else throw new Error(b)}}else s+=" if ("+oe+" === undefined ",e.opts.useDefaults=="empty"&&(s+=" || "+oe+" === null || "+oe+" === '' "),s+=" ) "+oe+" = ",e.opts.useDefaults=="shared"?s+=" "+e.useDefault(ue.default)+" ":s+=" "+JSON.stringify(ue.default)+" ",s+="; "}}}else if(M.type=="array"&&Array.isArray(e.schema.items)){var ae=e.schema.items;if(ae){for(var ue,H=-1,pe=ae.length-1;H<pe;)if(ue=ae[H+=1],ue.default!==void 0){var oe=y+"["+H+"]";if(e.compositeRule){if(e.opts.strictDefaults){var b="default is ignored for: "+oe;if(e.opts.strictDefaults==="log")e.logger.warn(b);else throw new Error(b)}}else s+=" if ("+oe+" === undefined ",e.opts.useDefaults=="empty"&&(s+=" || "+oe+" === null || "+oe+" === '' "),s+=" ) "+oe+" = ",e.opts.useDefaults=="shared"?s+=" "+e.useDefault(ue.default)+" ":s+=" "+JSON.stringify(ue.default)+" ",s+="; "}}}}var te=M.rules;if(te){for(var z,K=-1,Ee=te.length-1;K<Ee;)if(z=te[K+=1],Oe(z)){var be=z.code(e,z.keyword,M.type);be&&(s+=" "+be+" ",T&&(D+="}"))}}if(T&&(s+=" "+D+" ",D=""),M.type&&(s+=" } ",w&&w===M.type&&!O)){s+=" else { ";var h=e.schemaPath+".type",m=e.errSchemaPath+"/type",g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(B||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",R?s+=""+w.join(","):s+=""+w,s+="' } ",e.opts.messages!==!1&&(s+=" , message: 'should be ",R?s+=""+w.join(","):s+=""+w,s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),s+=" } "):s+=" {} ";var A=s;s=g.pop(),!e.compositeRule&&T?e.async?s+=" throw new ValidationError(["+A+"]); ":s+=" validate.errors = ["+A+"]; return false; ":s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } "}T&&(s+=" if (errors === ",v?s+="0":s+="errs_"+f,s+=") { ",I+="}")}}}T&&(s+=" "+I+" "),v?(a?(s+=" if (errors === 0) return data; ",s+=" else throw new ValidationError(vErrors); "):(s+=" validate.errors = vErrors; ",s+=" return errors === 0; "),s+=" }; return validate;"):s+=" var "+x+" = errors === errs_"+f+";";function ie(Pe){for(var je=Pe.rules,de=0;de<je.length;de++)if(Oe(je[de]))return!0}function Oe(Pe){return e.schema[Pe.keyword]!==void 0||Pe.implements&&tt(Pe)}function tt(Pe){for(var je=Pe.implements,de=0;de<je.length;de++)if(e.schema[je[de]]!==void 0)return!0}return s}});var wwn=E((Wyl,Twn)=>{"use strict";var qYe=FYe(),VYe=_j(),_wn=QYe(),t8s=tQt(),xwn=rQt(),r8s=VYe.ucs2length,n8s=Hie(),i8s=_wn.Validation;Twn.exports=nQt;function nQt(t,e,r,o){var s=this,a=this._opts,i=[void 0],n={},c=[],u={},f=[],d={},p=[];e=e||{schema:t,refVal:i,refs:n};var h=o8s.call(this,t,e,o),m=this._compilations[h.index];if(h.compiling)return m.callValidate=b;var y=this._formats,g=this.RULES;try{var A=x(t,e,r,o);m.validate=A;var v=m.callValidate;return v&&(v.schema=A.schema,v.errors=null,v.refs=A.refs,v.refVal=A.refVal,v.root=A.root,v.$async=A.$async,a.sourceCode&&(v.source=A.source)),A}finally{s8s.call(this,t,e,o)}function b(){var k=m.validate,P=k.apply(this,arguments);return b.errors=k.errors,P}function x(k,P,q,F){var G=!P||P&&P.schema==k;if(P.schema!=e.schema)return nQt.call(s,k,P,q,F);var H=k.$async===!0,U=xwn({isTop:!0,schema:k,isRoot:G,baseId:F,root:P,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:_wn.MissingRef,RULES:g,validate:xwn,util:VYe,resolve:qYe,resolveRef:T,usePattern:R,useDefault:O,useCustomRule:M,opts:a,formats:y,logger:s.logger,self:s});U=HYe(i,l8s)+HYe(c,a8s)+HYe(f,c8s)+HYe(p,u8s)+U,a.processCode&&(U=a.processCode(U,k));var $;try{var Y=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",U);$=Y(s,g,y,e,i,f,p,n8s,r8s,i8s),i[0]=$}catch(se){throw s.logger.error("Error compiling schema, function code:",U),se}return $.schema=k,$.errors=null,$.refs=n,$.refVal=i,$.root=G?$:P,H&&($.$async=!0),a.sourceCode===!0&&($.source={code:U,patterns:c,defaults:f}),$}function T(k,P,q){P=qYe.url(k,P);var F=n[P],G,H;if(F!==void 0)return G=i[F],H="refVal["+F+"]",w(G,H);if(!q&&e.refs){var U=e.refs[P];if(U!==void 0)return G=e.refVal[U],H=D(P,G),w(G,H)}H=D(P);var $=qYe.call(s,x,e,P);if($===void 0){var Y=r&&r[P];Y&&($=qYe.inlineRef(Y,a.inlineRefs)?Y:nQt.call(s,Y,e,r,k))}if($===void 0)I(P);else return B(P,$),w($,H)}function D(k,P){var q=i.length;return i[q]=P,n[k]=q,"refVal"+q}function I(k){delete n[k]}function B(k,P){var q=n[k];i[q]=P}function w(k,P){return typeof k=="object"||typeof k=="boolean"?{code:P,schema:k,inline:!0}:{code:P,$async:k&&!!k.$async}}function R(k){var P=u[k];return P===void 0&&(P=u[k]=c.length,c[P]=k),"pattern"+P}function O(k){switch(typeof k){case"boolean":case"number":return""+k;case"string":return VYe.toQuotedString(k);case"object":if(k===null)return"null";var P=t8s(k),q=d[P];return q===void 0&&(q=d[P]=f.length,f[q]=k),"default"+q}}function M(k,P,q,F){if(s._opts.validateSchema!==!1){var G=k.definition.dependencies;if(G&&!G.every(function(ne){return Object.prototype.hasOwnProperty.call(q,ne)}))throw new Error("parent schema must have all required keywords: "+G.join(","));var H=k.definition.validateSchema;if(H){var U=H(P);if(!U){var $="keyword schema is invalid: "+s.errorsText(H.errors);if(s._opts.validateSchema=="log")s.logger.error($);else throw new Error($)}}}var Y=k.definition.compile,se=k.definition.inline,J=k.definition.macro,fe;if(Y)fe=Y.call(s,P,q,F);else if(J)fe=J.call(s,P,q,F),a.validateSchema!==!1&&s.validateSchema(fe,!0);else if(se)fe=se.call(s,F,k.keyword,P,q);else if(fe=k.definition.validate,!fe)return;if(fe===void 0)throw new Error('custom keyword "'+k.keyword+'"failed to compile');var Ae=p.length;return p[Ae]=fe,{code:"customRule"+Ae,validate:fe}}}function o8s(t,e,r){var o=Cwn.call(this,t,e,r);return o>=0?{index:o,compiling:!0}:(o=this._compilations.length,this._compilations[o]={schema:t,root:e,baseId:r},{index:o,compiling:!1})}function s8s(t,e,r){var o=Cwn.call(this,t,e,r);o>=0&&this._compilations.splice(o,1)}function Cwn(t,e,r){for(var o=0;o<this._compilations.length;o++){var s=this._compilations[o];if(s.schema==t&&s.root==e&&s.baseId==r)return o}return-1}function a8s(t,e){return"var pattern"+t+" = new RegExp("+VYe.toQuotedString(e[t])+");"}function c8s(t){return"var default"+t+" = defaults["+t+"];"}function l8s(t,e){return e[t]===void 0?"":"var refVal"+t+" = refVal["+t+"];"}function u8s(t){return"var customRule"+t+" = customRules["+t+"];"}function HYe(t,e){if(!t.length)return"";for(var r="",o=0;o<t.length;o++)r+=e(o,t);return r}});var Dwn=E((zyl,Iwn)=>{"use strict";var GYe=Iwn.exports=function(){this._cache={}};GYe.prototype.put=function(e,r){this._cache[e]=r};GYe.prototype.get=function(e){return this._cache[e]};GYe.prototype.del=function(e){delete this._cache[e]};GYe.prototype.clear=function(){this._cache={}}});var qwn=E((Kyl,Qwn)=>{"use strict";var f8s=_j(),d8s=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,p8s=[0,31,28,31,30,31,30,31,31,30,31,30,31],h8s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Own=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,m8s=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,g8s=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Rwn=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,Nwn=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,Pwn=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Bwn=/^(?:\/(?:[^~/]|~0|~1)*)*$/,kwn=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Mwn=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;Qwn.exports=jYe;function jYe(t){return t=t=="full"?"full":"fast",f8s.copy(jYe[t])}jYe.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":Rwn,url:Nwn,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:Own,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Fwn,uuid:Pwn,"json-pointer":Bwn,"json-pointer-uri-fragment":kwn,"relative-json-pointer":Mwn};jYe.full={date:Lwn,time:Uwn,"date-time":v8s,uri:E8s,"uri-reference":g8s,"uri-template":Rwn,url:Nwn,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:Own,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Fwn,uuid:Pwn,"json-pointer":Bwn,"json-pointer-uri-fragment":kwn,"relative-json-pointer":Mwn};function y8s(t){return t%4===0&&(t%100!==0||t%400===0)}function Lwn(t){var e=t.match(d8s);if(!e)return!1;var r=+e[1],o=+e[2],s=+e[3];return o>=1&&o<=12&&s>=1&&s<=(o==2&&y8s(r)?29:p8s[o])}function Uwn(t,e){var r=t.match(h8s);if(!r)return!1;var o=r[1],s=r[2],a=r[3],i=r[5];return(o<=23&&s<=59&&a<=59||o==23&&s==59&&a==60)&&(!e||i)}var A8s=/t|\s/i;function v8s(t){var e=t.split(A8s);return e.length==2&&Lwn(e[0])&&Uwn(e[1],!0)}var b8s=/\/|:/;function E8s(t){return b8s.test(t)&&m8s.test(t)}var S8s=/[^\\]\\Z/;function Fwn(t){if(S8s.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var Vwn=E((Yyl,Hwn)=>{"use strict";Hwn.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,f="data"+(i||""),d="valid"+a,p,h;if(n=="#"||n=="#/")e.isRoot?(p=e.async,h="validate"):(p=e.root.schema.$async===!0,h="root.refVal[0]");else{var m=e.resolveRef(e.baseId,n,e.isRoot);if(m===void 0){var y=e.MissingRefError.message(e.baseId,n);if(e.opts.missingRefs=="fail"){e.logger.error(y);var g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { ref: '"+e.util.escapeQuotes(n)+"' } ",e.opts.messages!==!1&&(s+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(n)+"' "),e.opts.verbose&&(s+=" , schema: "+e.util.toQuotedString(n)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var A=s;s=g.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+A+"]); ":s+=" validate.errors = ["+A+"]; return false; ":s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(s+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(y),u&&(s+=" if (true) { ");else throw new e.MissingRefError(e.baseId,n,y)}else if(m.inline){var v=e.util.copy(e);v.level++;var b="valid"+v.level;v.schema=m.schema,v.schemaPath="",v.errSchemaPath=n;var x=e.validate(v).replace(/validate\.schema/g,m.code);s+=" "+x+" ",u&&(s+=" if ("+b+") { ")}else p=m.$async===!0||e.async&&m.$async!==!1,h=m.code}if(h){var g=g||[];g.push(s),s="",e.opts.passContext?s+=" "+h+".call(this, ":s+=" "+h+"( ",s+=" "+f+", (dataPath || '')",e.errorPath!='""'&&(s+=" + "+e.errorPath);var T=i?"data"+(i-1||""):"parentData",D=i?e.dataPathArr[i]:"parentDataProperty";s+=" , "+T+" , "+D+", rootData) ";var I=s;if(s=g.pop(),p){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(s+=" var "+d+"; "),s+=" try { await "+I+"; ",u&&(s+=" "+d+" = true; "),s+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(s+=" "+d+" = false; "),s+=" } ",u&&(s+=" if ("+d+") { ")}else s+=" if (!"+I+") { if (vErrors === null) vErrors = "+h+".errors; else vErrors = vErrors.concat("+h+".errors); errors = vErrors.length; } ",u&&(s+=" else { ")}return s}});var jwn=E((Jyl,Gwn)=>{"use strict";Gwn.exports=function(e,r,o){var s=" ",a=e.schema[r],i=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u=e.util.copy(e),f="";u.level++;var d="valid"+u.level,p=u.baseId,h=!0,m=a;if(m)for(var y,g=-1,A=m.length-1;g<A;)y=m[g+=1],(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all))&&(h=!1,u.schema=y,u.schemaPath=i+"["+g+"]",u.errSchemaPath=n+"/"+g,s+=" "+e.validate(u)+" ",u.baseId=p,c&&(s+=" if ("+d+") { ",f+="}"));return c&&(h?s+=" if (true) { ":s+=" "+f.slice(0,-1)+" "),s}});var Wwn=E((Xyl,$wn)=>{"use strict";$wn.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="valid"+a,h="errs__"+a,m=e.util.copy(e),y="";m.level++;var g="valid"+m.level,A=n.every(function(B){return e.opts.strictKeywords?typeof B=="object"&&Object.keys(B).length>0||B===!1:e.util.schemaHasRules(B,e.RULES.all)});if(A){var v=m.baseId;s+=" var "+h+" = errors; var "+p+" = false; ";var b=e.compositeRule;e.compositeRule=m.compositeRule=!0;var x=n;if(x)for(var T,D=-1,I=x.length-1;D<I;)T=x[D+=1],m.schema=T,m.schemaPath=c+"["+D+"]",m.errSchemaPath=u+"/"+D,s+=" "+e.validate(m)+" ",m.baseId=v,s+=" "+p+" = "+p+" || "+g+"; if (!"+p+") { ",y+="}";e.compositeRule=m.compositeRule=b,s+=" "+y+" if (!"+p+") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(s+=" } ")}else f&&(s+=" if (true) { ");return s}});var Kwn=E((Zyl,zwn)=>{"use strict";zwn.exports=function(e,r,o){var s=" ",a=e.schema[r],i=e.errSchemaPath+"/"+r,n=!e.opts.allErrors,c=e.util.toQuotedString(a);return e.opts.$comment===!0?s+=" console.log("+c+");":typeof e.opts.$comment=="function"&&(s+=" self._opts.$comment("+c+", "+e.util.toQuotedString(i)+", validate.root.schema);"),s}});var Jwn=E((eAl,Ywn)=>{"use strict";Ywn.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="valid"+a,h=e.opts.$data&&n&&n.$data,m;h?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",m="schema"+a):m=n,h||(s+=" var schema"+a+" = validate.schema"+c+";"),s+="var "+p+" = equal("+d+", schema"+a+"); if (!"+p+") { ";var y=y||[];y.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValue: schema"+a+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be equal to constant' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var g=s;return s=y.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+g+"]); ":s+=" validate.errors = ["+g+"]; return false; ":s+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" }",f&&(s+=" else { "),s}});var Zwn=E((tAl,Xwn)=>{"use strict";Xwn.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="valid"+a,h="errs__"+a,m=e.util.copy(e),y="";m.level++;var g="valid"+m.level,A="i"+a,v=m.dataLevel=e.dataLevel+1,b="data"+v,x=e.baseId,T=e.opts.strictKeywords?typeof n=="object"&&Object.keys(n).length>0||n===!1:e.util.schemaHasRules(n,e.RULES.all);if(s+="var "+h+" = errors;var "+p+";",T){var D=e.compositeRule;e.compositeRule=m.compositeRule=!0,m.schema=n,m.schemaPath=c,m.errSchemaPath=u,s+=" var "+g+" = false; for (var "+A+" = 0; "+A+" < "+d+".length; "+A+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,!0);var I=d+"["+A+"]";m.dataPathArr[v]=A;var B=e.validate(m);m.baseId=x,e.util.varOccurences(B,b)<2?s+=" "+e.util.varReplace(B,b,I)+" ":s+=" var "+b+" = "+I+"; "+B+" ",s+=" if ("+g+") break; } ",e.compositeRule=m.compositeRule=D,s+=" "+y+" if (!"+g+") {"}else s+=" if ("+d+".length == 0) {";var w=w||[];w.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'should contain a valid item' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var R=s;return s=w.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+R+"]); ":s+=" validate.errors = ["+R+"]; return false; ":s+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { ",T&&(s+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } "),e.opts.allErrors&&(s+=" } "),s}});var t5n=E((rAl,e5n)=>{"use strict";e5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="errs__"+a,h=e.util.copy(e),m="";h.level++;var y="valid"+h.level,g={},A={},v=e.opts.ownProperties;for(D in n)if(D!="__proto__"){var b=n[D],x=Array.isArray(b)?A:g;x[D]=b}s+="var "+p+" = errors;";var T=e.errorPath;s+="var missing"+a+";";for(var D in A)if(x=A[D],x.length){if(s+=" if ( "+d+e.util.getProperty(D)+" !== undefined ",v&&(s+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(D)+"') "),f){s+=" && ( ";var I=x;if(I)for(var B,w=-1,R=I.length-1;w<R;){B=I[w+=1],w&&(s+=" || ");var O=e.util.getProperty(B),M=d+O;s+=" ( ( "+M+" === undefined ",v&&(s+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(B)+"') "),s+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?B:O)+") ) "}s+=")) { ";var k="missing"+a,P="' + "+k+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(T,k,!0):T+" + "+k);var q=q||[];q.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(D)+"', missingProperty: '"+P+"', depsCount: "+x.length+", deps: '"+e.util.escapeQuotes(x.length==1?x[0]:x.join(", "))+"' } ",e.opts.messages!==!1&&(s+=" , message: 'should have ",x.length==1?s+="property "+e.util.escapeQuotes(x[0]):s+="properties "+e.util.escapeQuotes(x.join(", ")),s+=" when property "+e.util.escapeQuotes(D)+" is present' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var F=s;s=q.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+F+"]); ":s+=" validate.errors = ["+F+"]; return false; ":s+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{s+=" ) { ";var G=x;if(G)for(var B,H=-1,U=G.length-1;H<U;){B=G[H+=1];var O=e.util.getProperty(B),P=e.util.escapeQuotes(B),M=d+O;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(T,B,e.opts.jsonPointers)),s+=" if ( "+M+" === undefined ",v&&(s+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(B)+"') "),s+=") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(D)+"', missingProperty: '"+P+"', depsCount: "+x.length+", deps: '"+e.util.escapeQuotes(x.length==1?x[0]:x.join(", "))+"' } ",e.opts.messages!==!1&&(s+=" , message: 'should have ",x.length==1?s+="property "+e.util.escapeQuotes(x[0]):s+="properties "+e.util.escapeQuotes(x.join(", ")),s+=" when property "+e.util.escapeQuotes(D)+" is present' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}s+=" } ",f&&(m+="}",s+=" else { ")}e.errorPath=T;var $=h.baseId;for(var D in g){var b=g[D];(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0||b===!1:e.util.schemaHasRules(b,e.RULES.all))&&(s+=" "+y+" = true; if ( "+d+e.util.getProperty(D)+" !== undefined ",v&&(s+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(D)+"') "),s+=") { ",h.schema=b,h.schemaPath=c+e.util.getProperty(D),h.errSchemaPath=u+"/"+e.util.escapeFragment(D),s+=" "+e.validate(h)+" ",h.baseId=$,s+=" } ",f&&(s+=" if ("+y+") { ",m+="}"))}return f&&(s+=" "+m+" if ("+p+" == errors) {"),s}});var n5n=E((nAl,r5n)=>{"use strict";r5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="valid"+a,h=e.opts.$data&&n&&n.$data,m;h?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",m="schema"+a):m=n;var y="i"+a,g="schema"+a;h||(s+=" var "+g+" = validate.schema"+c+";"),s+="var "+p+";",h&&(s+=" if (schema"+a+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+a+")) "+p+" = false; else {"),s+=""+p+" = false;for (var "+y+"=0; "+y+"<"+g+".length; "+y+"++) if (equal("+d+", "+g+"["+y+"])) { "+p+" = true; break; }",h&&(s+=" } "),s+=" if (!"+p+") { ";var A=A||[];A.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValues: schema"+a+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var v=s;return s=A.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+v+"]); ":s+=" validate.errors = ["+v+"]; return false; ":s+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" }",f&&(s+=" else { "),s}});var o5n=E((iAl,i5n)=>{"use strict";i5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||"");if(e.opts.format===!1)return f&&(s+=" if (true) { "),s;var p=e.opts.$data&&n&&n.$data,h;p?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",h="schema"+a):h=n;var m=e.opts.unknownFormats,y=Array.isArray(m);if(p){var g="format"+a,A="isObject"+a,v="formatType"+a;s+=" var "+g+" = formats["+h+"]; var "+A+" = typeof "+g+" == 'object' && !("+g+" instanceof RegExp) && "+g+".validate; var "+v+" = "+A+" && "+g+".type || 'string'; if ("+A+") { ",e.async&&(s+=" var async"+a+" = "+g+".async; "),s+=" "+g+" = "+g+".validate; } if ( ",p&&(s+=" ("+h+" !== undefined && typeof "+h+" != 'string') || "),s+=" (",m!="ignore"&&(s+=" ("+h+" && !"+g+" ",y&&(s+=" && self._opts.unknownFormats.indexOf("+h+") == -1 "),s+=") || "),s+=" ("+g+" && "+v+" == '"+o+"' && !(typeof "+g+" == 'function' ? ",e.async?s+=" (async"+a+" ? await "+g+"("+d+") : "+g+"("+d+")) ":s+=" "+g+"("+d+") ",s+=" : "+g+".test("+d+"))))) {"}else{var g=e.formats[n];if(!g){if(m=="ignore")return e.logger.warn('unknown format "'+n+'" ignored in schema at path "'+e.errSchemaPath+'"'),f&&(s+=" if (true) { "),s;if(y&&m.indexOf(n)>=0)return f&&(s+=" if (true) { "),s;throw new Error('unknown format "'+n+'" is used in schema at path "'+e.errSchemaPath+'"')}var A=typeof g=="object"&&!(g instanceof RegExp)&&g.validate,v=A&&g.type||"string";if(A){var b=g.async===!0;g=g.validate}if(v!=o)return f&&(s+=" if (true) { "),s;if(b){if(!e.async)throw new Error("async format in sync schema");var x="formats"+e.util.getProperty(n)+".validate";s+=" if (!(await "+x+"("+d+"))) { "}else{s+=" if (! ";var x="formats"+e.util.getProperty(n);A&&(x+=".validate"),typeof g=="function"?s+=" "+x+"("+d+") ":s+=" "+x+".test("+d+") ",s+=") { "}}var T=T||[];T.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { format: ",p?s+=""+h:s+=""+e.util.toQuotedString(n),s+=" } ",e.opts.messages!==!1&&(s+=` , message: 'should match format "`,p?s+="' + "+h+" + '":s+=""+e.util.escapeQuotes(n),s+=`"' `),e.opts.verbose&&(s+=" , schema: ",p?s+="validate.schema"+c:s+=""+e.util.toQuotedString(n),s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var D=s;return s=T.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+D+"]); ":s+=" validate.errors = ["+D+"]; return false; ":s+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",f&&(s+=" else { "),s}});var a5n=E((oAl,s5n)=>{"use strict";s5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="valid"+a,h="errs__"+a,m=e.util.copy(e);m.level++;var y="valid"+m.level,g=e.schema.then,A=e.schema.else,v=g!==void 0&&(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all)),b=A!==void 0&&(e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:e.util.schemaHasRules(A,e.RULES.all)),x=m.baseId;if(v||b){var T;m.createErrors=!1,m.schema=n,m.schemaPath=c,m.errSchemaPath=u,s+=" var "+h+" = errors; var "+p+" = true; ";var D=e.compositeRule;e.compositeRule=m.compositeRule=!0,s+=" "+e.validate(m)+" ",m.baseId=x,m.createErrors=!0,s+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.compositeRule=m.compositeRule=D,v?(s+=" if ("+y+") { ",m.schema=e.schema.then,m.schemaPath=e.schemaPath+".then",m.errSchemaPath=e.errSchemaPath+"/then",s+=" "+e.validate(m)+" ",m.baseId=x,s+=" "+p+" = "+y+"; ",v&&b?(T="ifClause"+a,s+=" var "+T+" = 'then'; "):T="'then'",s+=" } ",b&&(s+=" else { ")):s+=" if (!"+y+") { ",b&&(m.schema=e.schema.else,m.schemaPath=e.schemaPath+".else",m.errSchemaPath=e.errSchemaPath+"/else",s+=" "+e.validate(m)+" ",m.baseId=x,s+=" "+p+" = "+y+"; ",v&&b?(T="ifClause"+a,s+=" var "+T+" = 'else'; "):T="'else'",s+=" } "),s+=" if (!"+p+") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { failingKeyword: "+T+" } ",e.opts.messages!==!1&&(s+=` , message: 'should match "' + `+T+` + '" schema' `),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+=" } ",f&&(s+=" else { ")}else f&&(s+=" if (true) { ");return s}});var l5n=E((sAl,c5n)=>{"use strict";c5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="valid"+a,h="errs__"+a,m=e.util.copy(e),y="";m.level++;var g="valid"+m.level,A="i"+a,v=m.dataLevel=e.dataLevel+1,b="data"+v,x=e.baseId;if(s+="var "+h+" = errors;var "+p+";",Array.isArray(n)){var T=e.schema.additionalItems;if(T===!1){s+=" "+p+" = "+d+".length <= "+n.length+"; ";var D=u;u=e.errSchemaPath+"/additionalItems",s+=" if (!"+p+") { ";var I=I||[];I.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n.length+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have more than "+n.length+" items' "),e.opts.verbose&&(s+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var B=s;s=I.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+B+"]); ":s+=" validate.errors = ["+B+"]; return false; ":s+=" var err = "+B+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",u=D,f&&(y+="}",s+=" else { ")}var w=n;if(w){for(var R,O=-1,M=w.length-1;O<M;)if(R=w[O+=1],e.opts.strictKeywords?typeof R=="object"&&Object.keys(R).length>0||R===!1:e.util.schemaHasRules(R,e.RULES.all)){s+=" "+g+" = true; if ("+d+".length > "+O+") { ";var k=d+"["+O+"]";m.schema=R,m.schemaPath=c+"["+O+"]",m.errSchemaPath=u+"/"+O,m.errorPath=e.util.getPathExpr(e.errorPath,O,e.opts.jsonPointers,!0),m.dataPathArr[v]=O;var P=e.validate(m);m.baseId=x,e.util.varOccurences(P,b)<2?s+=" "+e.util.varReplace(P,b,k)+" ":s+=" var "+b+" = "+k+"; "+P+" ",s+=" } ",f&&(s+=" if ("+g+") { ",y+="}")}}if(typeof T=="object"&&(e.opts.strictKeywords?typeof T=="object"&&Object.keys(T).length>0||T===!1:e.util.schemaHasRules(T,e.RULES.all))){m.schema=T,m.schemaPath=e.schemaPath+".additionalItems",m.errSchemaPath=e.errSchemaPath+"/additionalItems",s+=" "+g+" = true; if ("+d+".length > "+n.length+") { for (var "+A+" = "+n.length+"; "+A+" < "+d+".length; "+A+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,!0);var k=d+"["+A+"]";m.dataPathArr[v]=A;var P=e.validate(m);m.baseId=x,e.util.varOccurences(P,b)<2?s+=" "+e.util.varReplace(P,b,k)+" ":s+=" var "+b+" = "+k+"; "+P+" ",f&&(s+=" if (!"+g+") break; "),s+=" } } ",f&&(s+=" if ("+g+") { ",y+="}")}}else if(e.opts.strictKeywords?typeof n=="object"&&Object.keys(n).length>0||n===!1:e.util.schemaHasRules(n,e.RULES.all)){m.schema=n,m.schemaPath=c,m.errSchemaPath=u,s+=" for (var "+A+" = 0; "+A+" < "+d+".length; "+A+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,!0);var k=d+"["+A+"]";m.dataPathArr[v]=A;var P=e.validate(m);m.baseId=x,e.util.varOccurences(P,b)<2?s+=" "+e.util.varReplace(P,b,k)+" ":s+=" var "+b+" = "+k+"; "+P+" ",f&&(s+=" if (!"+g+") break; "),s+=" }"}return f&&(s+=" "+y+" if ("+h+" == errors) {"),s}});var iQt=E((aAl,u5n)=>{"use strict";u5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,x,d="data"+(i||""),p=e.opts.$data&&n&&n.$data,h;p?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",h="schema"+a):h=n;var m=r=="maximum",y=m?"exclusiveMaximum":"exclusiveMinimum",g=e.schema[y],A=e.opts.$data&&g&&g.$data,v=m?"<":">",b=m?">":"<",x=void 0;if(!(p||typeof n=="number"||n===void 0))throw new Error(r+" must be number");if(!(A||g===void 0||typeof g=="number"||typeof g=="boolean"))throw new Error(y+" must be number or boolean");if(A){var T=e.util.getData(g.$data,i,e.dataPathArr),D="exclusive"+a,I="exclType"+a,B="exclIsNumber"+a,w="op"+a,R="' + "+w+" + '";s+=" var schemaExcl"+a+" = "+T+"; ",T="schemaExcl"+a,s+=" var "+D+"; var "+I+" = typeof "+T+"; if ("+I+" != 'boolean' && "+I+" != 'undefined' && "+I+" != 'number') { ";var x=y,O=O||[];O.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(x||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: '"+y+" should be boolean' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var M=s;s=O.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+M+"]); ":s+=" validate.errors = ["+M+"]; return false; ":s+=" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else if ( ",p&&(s+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "),s+=" "+I+" == 'number' ? ( ("+D+" = "+h+" === undefined || "+T+" "+v+"= "+h+") ? "+d+" "+b+"= "+T+" : "+d+" "+b+" "+h+" ) : ( ("+D+" = "+T+" === true) ? "+d+" "+b+"= "+h+" : "+d+" "+b+" "+h+" ) || "+d+" !== "+d+") { var op"+a+" = "+D+" ? '"+v+"' : '"+v+"='; ",n===void 0&&(x=y,u=e.errSchemaPath+"/"+y,h=T,p=A)}else{var B=typeof g=="number",R=v;if(B&&p){var w="'"+R+"'";s+=" if ( ",p&&(s+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "),s+=" ( "+h+" === undefined || "+g+" "+v+"= "+h+" ? "+d+" "+b+"= "+g+" : "+d+" "+b+" "+h+" ) || "+d+" !== "+d+") { "}else{B&&n===void 0?(D=!0,x=y,u=e.errSchemaPath+"/"+y,h=g,b+="="):(B&&(h=Math[m?"min":"max"](g,n)),g===(B?h:!0)?(D=!0,x=y,u=e.errSchemaPath+"/"+y,b+="="):(D=!1,R+="="));var w="'"+R+"'";s+=" if ( ",p&&(s+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "),s+=" "+d+" "+b+" "+h+" || "+d+" !== "+d+") { "}}x=x||r;var O=O||[];O.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(x||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+w+", limit: "+h+", exclusive: "+D+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be "+R+" ",p?s+="' + "+h:s+=""+h+"'"),e.opts.verbose&&(s+=" , schema: ",p?s+="validate.schema"+c:s+=""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var M=s;return s=O.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+M+"]); ":s+=" validate.errors = ["+M+"]; return false; ":s+=" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",f&&(s+=" else { "),s}});var oQt=E((cAl,f5n)=>{"use strict";f5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,y,d="data"+(i||""),p=e.opts.$data&&n&&n.$data,h;if(p?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",h="schema"+a):h=n,!(p||typeof n=="number"))throw new Error(r+" must be number");var m=r=="maxItems"?">":"<";s+="if ( ",p&&(s+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "),s+=" "+d+".length "+m+" "+h+") { ";var y=r,g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(y||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+h+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have ",r=="maxItems"?s+="more":s+="fewer",s+=" than ",p?s+="' + "+h+" + '":s+=""+n,s+=" items' "),e.opts.verbose&&(s+=" , schema: ",p?s+="validate.schema"+c:s+=""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var A=s;return s=g.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+A+"]); ":s+=" validate.errors = ["+A+"]; return false; ":s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",f&&(s+=" else { "),s}});var sQt=E((lAl,d5n)=>{"use strict";d5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,y,d="data"+(i||""),p=e.opts.$data&&n&&n.$data,h;if(p?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",h="schema"+a):h=n,!(p||typeof n=="number"))throw new Error(r+" must be number");var m=r=="maxLength"?">":"<";s+="if ( ",p&&(s+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "),e.opts.unicode===!1?s+=" "+d+".length ":s+=" ucs2length("+d+") ",s+=" "+m+" "+h+") { ";var y=r,g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(y||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+h+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT be ",r=="maxLength"?s+="longer":s+="shorter",s+=" than ",p?s+="' + "+h+" + '":s+=""+n,s+=" characters' "),e.opts.verbose&&(s+=" , schema: ",p?s+="validate.schema"+c:s+=""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var A=s;return s=g.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+A+"]); ":s+=" validate.errors = ["+A+"]; return false; ":s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",f&&(s+=" else { "),s}});var aQt=E((uAl,p5n)=>{"use strict";p5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,y,d="data"+(i||""),p=e.opts.$data&&n&&n.$data,h;if(p?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",h="schema"+a):h=n,!(p||typeof n=="number"))throw new Error(r+" must be number");var m=r=="maxProperties"?">":"<";s+="if ( ",p&&(s+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "),s+=" Object.keys("+d+").length "+m+" "+h+") { ";var y=r,g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(y||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+h+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have ",r=="maxProperties"?s+="more":s+="fewer",s+=" than ",p?s+="' + "+h+" + '":s+=""+n,s+=" properties' "),e.opts.verbose&&(s+=" , schema: ",p?s+="validate.schema"+c:s+=""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var A=s;return s=g.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+A+"]); ":s+=" validate.errors = ["+A+"]; return false; ":s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",f&&(s+=" else { "),s}});var m5n=E((fAl,h5n)=>{"use strict";h5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p=e.opts.$data&&n&&n.$data,h;if(p?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",h="schema"+a):h=n,!(p||typeof n=="number"))throw new Error(r+" must be number");s+="var division"+a+";if (",p&&(s+=" "+h+" !== undefined && ( typeof "+h+" != 'number' || "),s+=" (division"+a+" = "+d+" / "+h+", ",e.opts.multipleOfPrecision?s+=" Math.abs(Math.round(division"+a+") - division"+a+") > 1e-"+e.opts.multipleOfPrecision+" ":s+=" division"+a+" !== parseInt(division"+a+") ",s+=" ) ",p&&(s+=" ) "),s+=" ) { ";var m=m||[];m.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+h+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be multiple of ",p?s+="' + "+h:s+=""+h+"'"),e.opts.verbose&&(s+=" , schema: ",p?s+="validate.schema"+c:s+=""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var y=s;return s=m.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+y+"]); ":s+=" validate.errors = ["+y+"]; return false; ":s+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",f&&(s+=" else { "),s}});var y5n=E((dAl,g5n)=>{"use strict";g5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="errs__"+a,h=e.util.copy(e);h.level++;var m="valid"+h.level;if(e.opts.strictKeywords?typeof n=="object"&&Object.keys(n).length>0||n===!1:e.util.schemaHasRules(n,e.RULES.all)){h.schema=n,h.schemaPath=c,h.errSchemaPath=u,s+=" var "+p+" = errors; ";var y=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.createErrors=!1;var g;h.opts.allErrors&&(g=h.opts.allErrors,h.opts.allErrors=!1),s+=" "+e.validate(h)+" ",h.createErrors=!0,g&&(h.opts.allErrors=g),e.compositeRule=h.compositeRule=y,s+=" if ("+m+") { ";var A=A||[];A.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'should NOT be valid' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var v=s;s=A.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+v+"]); ":s+=" validate.errors = ["+v+"]; return false; ":s+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(s+=" } ")}else s+=" var err = ",e.createErrors!==!1?(s+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'should NOT be valid' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",f&&(s+=" if (false) { ");return s}});var v5n=E((pAl,A5n)=>{"use strict";A5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="valid"+a,h="errs__"+a,m=e.util.copy(e),y="";m.level++;var g="valid"+m.level,A=m.baseId,v="prevValid"+a,b="passingSchemas"+a;s+="var "+h+" = errors , "+v+" = false , "+p+" = false , "+b+" = null; ";var x=e.compositeRule;e.compositeRule=m.compositeRule=!0;var T=n;if(T)for(var D,I=-1,B=T.length-1;I<B;)D=T[I+=1],(e.opts.strictKeywords?typeof D=="object"&&Object.keys(D).length>0||D===!1:e.util.schemaHasRules(D,e.RULES.all))?(m.schema=D,m.schemaPath=c+"["+I+"]",m.errSchemaPath=u+"/"+I,s+=" "+e.validate(m)+" ",m.baseId=A):s+=" var "+g+" = true; ",I&&(s+=" if ("+g+" && "+v+") { "+p+" = false; "+b+" = ["+b+", "+I+"]; } else { ",y+="}"),s+=" if ("+g+") { "+p+" = "+v+" = true; "+b+" = "+I+"; }";return e.compositeRule=m.compositeRule=x,s+=""+y+"if (!"+p+") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { passingSchemas: "+b+" } ",e.opts.messages!==!1&&(s+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+="} else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; }",e.opts.allErrors&&(s+=" } "),s}});var E5n=E((hAl,b5n)=>{"use strict";b5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p=e.opts.$data&&n&&n.$data,h;p?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",h="schema"+a):h=n;var m=p?"(new RegExp("+h+"))":e.usePattern(n);s+="if ( ",p&&(s+=" ("+h+" !== undefined && typeof "+h+" != 'string') || "),s+=" !"+m+".test("+d+") ) { ";var y=y||[];y.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",p?s+=""+h:s+=""+e.util.toQuotedString(n),s+=" } ",e.opts.messages!==!1&&(s+=` , message: 'should match pattern "`,p?s+="' + "+h+" + '":s+=""+e.util.escapeQuotes(n),s+=`"' `),e.opts.verbose&&(s+=" , schema: ",p?s+="validate.schema"+c:s+=""+e.util.toQuotedString(n),s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var g=s;return s=y.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+g+"]); ":s+=" validate.errors = ["+g+"]; return false; ":s+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",f&&(s+=" else { "),s}});var x5n=E((mAl,S5n)=>{"use strict";S5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="errs__"+a,h=e.util.copy(e),m="";h.level++;var y="valid"+h.level,g="key"+a,A="idx"+a,v=h.dataLevel=e.dataLevel+1,b="data"+v,x="dataProperties"+a,T=Object.keys(n||{}).filter(H),D=e.schema.patternProperties||{},I=Object.keys(D).filter(H),B=e.schema.additionalProperties,w=T.length||I.length,R=B===!1,O=typeof B=="object"&&Object.keys(B).length,M=e.opts.removeAdditional,k=R||O||M,P=e.opts.ownProperties,q=e.baseId,F=e.schema.required;if(F&&!(e.opts.$data&&F.$data)&&F.length<e.opts.loopRequired)var G=e.util.toHash(F);function H(Re){return Re!=="__proto__"}if(s+="var "+p+" = errors;var "+y+" = true;",P&&(s+=" var "+x+" = undefined;"),k){if(P?s+=" "+x+" = "+x+" || Object.keys("+d+"); for (var "+A+"=0; "+A+"<"+x+".length; "+A+"++) { var "+g+" = "+x+"["+A+"]; ":s+=" for (var "+g+" in "+d+") { ",w){if(s+=" var isAdditional"+a+" = !(false ",T.length)if(T.length>8)s+=" || validate.schema"+c+".hasOwnProperty("+g+") ";else{var U=T;if(U)for(var $,Y=-1,se=U.length-1;Y<se;)$=U[Y+=1],s+=" || "+g+" == "+e.util.toQuotedString($)+" "}if(I.length){var J=I;if(J)for(var fe,Ae=-1,ne=J.length-1;Ae<ne;)fe=J[Ae+=1],s+=" || "+e.usePattern(fe)+".test("+g+") "}s+=" ); if (isAdditional"+a+") { "}if(M=="all")s+=" delete "+d+"["+g+"]; ";else{var ge=e.errorPath,ee="' + "+g+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers)),R)if(M)s+=" delete "+d+"["+g+"]; ";else{s+=" "+y+" = false; ";var X=u;u=e.errSchemaPath+"/additionalProperties";var ue=ue||[];ue.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { additionalProperty: '"+ee+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is an invalid additional property":s+="should NOT have additional properties",s+="' "),e.opts.verbose&&(s+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var oe=s;s=ue.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+oe+"]); ":s+=" validate.errors = ["+oe+"]; return false; ":s+=" var err = "+oe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=X,f&&(s+=" break; ")}else if(O)if(M=="failing"){s+=" var "+p+" = errors; ";var ae=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=B,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers);var pe=d+"["+g+"]";h.dataPathArr[v]=g;var te=e.validate(h);h.baseId=q,e.util.varOccurences(te,b)<2?s+=" "+e.util.varReplace(te,b,pe)+" ":s+=" var "+b+" = "+pe+"; "+te+" ",s+=" if (!"+y+") { errors = "+p+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+d+"["+g+"]; } ",e.compositeRule=h.compositeRule=ae}else{h.schema=B,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers);var pe=d+"["+g+"]";h.dataPathArr[v]=g;var te=e.validate(h);h.baseId=q,e.util.varOccurences(te,b)<2?s+=" "+e.util.varReplace(te,b,pe)+" ":s+=" var "+b+" = "+pe+"; "+te+" ",f&&(s+=" if (!"+y+") break; ")}e.errorPath=ge}w&&(s+=" } "),s+=" } ",f&&(s+=" if ("+y+") { ",m+="}")}var z=e.opts.useDefaults&&!e.compositeRule;if(T.length){var K=T;if(K)for(var $,Ee=-1,be=K.length-1;Ee<be;){$=K[Ee+=1];var ie=n[$];if(e.opts.strictKeywords?typeof ie=="object"&&Object.keys(ie).length>0||ie===!1:e.util.schemaHasRules(ie,e.RULES.all)){var Oe=e.util.getProperty($),pe=d+Oe,tt=z&&ie.default!==void 0;h.schema=ie,h.schemaPath=c+Oe,h.errSchemaPath=u+"/"+e.util.escapeFragment($),h.errorPath=e.util.getPath(e.errorPath,$,e.opts.jsonPointers),h.dataPathArr[v]=e.util.toQuotedString($);var te=e.validate(h);if(h.baseId=q,e.util.varOccurences(te,b)<2){te=e.util.varReplace(te,b,pe);var Pe=pe}else{var Pe=b;s+=" var "+b+" = "+pe+"; "}if(tt)s+=" "+te+" ";else{if(G&&G[$]){s+=" if ( "+Pe+" === undefined ",P&&(s+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes($)+"') "),s+=") { "+y+" = false; ";var ge=e.errorPath,X=u,je=e.util.escapeQuotes($);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(ge,$,e.opts.jsonPointers)),u=e.errSchemaPath+"/required";var ue=ue||[];ue.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+je+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+je+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var oe=s;s=ue.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+oe+"]); ":s+=" validate.errors = ["+oe+"]; return false; ":s+=" var err = "+oe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=X,e.errorPath=ge,s+=" } else { "}else f?(s+=" if ( "+Pe+" === undefined ",P&&(s+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes($)+"') "),s+=") { "+y+" = true; } else { "):(s+=" if ("+Pe+" !== undefined ",P&&(s+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes($)+"') "),s+=" ) { ");s+=" "+te+" } "}}f&&(s+=" if ("+y+") { ",m+="}")}}if(I.length){var de=I;if(de)for(var fe,Ce=-1,De=de.length-1;Ce<De;){fe=de[Ce+=1];var ie=D[fe];if(e.opts.strictKeywords?typeof ie=="object"&&Object.keys(ie).length>0||ie===!1:e.util.schemaHasRules(ie,e.RULES.all)){h.schema=ie,h.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(fe),h.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(fe),P?s+=" "+x+" = "+x+" || Object.keys("+d+"); for (var "+A+"=0; "+A+"<"+x+".length; "+A+"++) { var "+g+" = "+x+"["+A+"]; ":s+=" for (var "+g+" in "+d+") { ",s+=" if ("+e.usePattern(fe)+".test("+g+")) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers);var pe=d+"["+g+"]";h.dataPathArr[v]=g;var te=e.validate(h);h.baseId=q,e.util.varOccurences(te,b)<2?s+=" "+e.util.varReplace(te,b,pe)+" ":s+=" var "+b+" = "+pe+"; "+te+" ",f&&(s+=" if (!"+y+") break; "),s+=" } ",f&&(s+=" else "+y+" = true; "),s+=" } ",f&&(s+=" if ("+y+") { ",m+="}")}}}return f&&(s+=" "+m+" if ("+p+" == errors) {"),s}});var C5n=E((gAl,_5n)=>{"use strict";_5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="errs__"+a,h=e.util.copy(e),m="";h.level++;var y="valid"+h.level;if(s+="var "+p+" = errors;",e.opts.strictKeywords?typeof n=="object"&&Object.keys(n).length>0||n===!1:e.util.schemaHasRules(n,e.RULES.all)){h.schema=n,h.schemaPath=c,h.errSchemaPath=u;var g="key"+a,A="idx"+a,v="i"+a,b="' + "+g+" + '",x=h.dataLevel=e.dataLevel+1,T="data"+x,D="dataProperties"+a,I=e.opts.ownProperties,B=e.baseId;I&&(s+=" var "+D+" = undefined; "),I?s+=" "+D+" = "+D+" || Object.keys("+d+"); for (var "+A+"=0; "+A+"<"+D+".length; "+A+"++) { var "+g+" = "+D+"["+A+"]; ":s+=" for (var "+g+" in "+d+") { ",s+=" var startErrs"+a+" = errors; ";var w=g,R=e.compositeRule;e.compositeRule=h.compositeRule=!0;var O=e.validate(h);h.baseId=B,e.util.varOccurences(O,T)<2?s+=" "+e.util.varReplace(O,T,w)+" ":s+=" var "+T+" = "+w+"; "+O+" ",e.compositeRule=h.compositeRule=R,s+=" if (!"+y+") { for (var "+v+"=startErrs"+a+"; "+v+"<errors; "+v+"++) { vErrors["+v+"].propertyName = "+g+"; } var err = ",e.createErrors!==!1?(s+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { propertyName: '"+b+"' } ",e.opts.messages!==!1&&(s+=" , message: 'property name \\'"+b+"\\' is invalid' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),f&&(s+=" break; "),s+=" } }"}return f&&(s+=" "+m+" if ("+p+" == errors) {"),s}});var w5n=E((yAl,T5n)=>{"use strict";T5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="valid"+a,h=e.opts.$data&&n&&n.$data,m;h?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",m="schema"+a):m=n;var y="schema"+a;if(!h)if(n.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var g=[],A=n;if(A)for(var v,b=-1,x=A.length-1;b<x;){v=A[b+=1];var T=e.schema.properties[v];T&&(e.opts.strictKeywords?typeof T=="object"&&Object.keys(T).length>0||T===!1:e.util.schemaHasRules(T,e.RULES.all))||(g[g.length]=v)}}else var g=n;if(h||g.length){var D=e.errorPath,I=h||g.length>=e.opts.loopRequired,B=e.opts.ownProperties;if(f)if(s+=" var missing"+a+"; ",I){h||(s+=" var "+y+" = validate.schema"+c+"; ");var w="i"+a,R="schema"+a+"["+w+"]",O="' + "+R+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(D,R,e.opts.jsonPointers)),s+=" var "+p+" = true; ",h&&(s+=" if (schema"+a+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+a+")) "+p+" = false; else {"),s+=" for (var "+w+" = 0; "+w+" < "+y+".length; "+w+"++) { "+p+" = "+d+"["+y+"["+w+"]] !== undefined ",B&&(s+=" && Object.prototype.hasOwnProperty.call("+d+", "+y+"["+w+"]) "),s+="; if (!"+p+") break; } ",h&&(s+=" } "),s+=" if (!"+p+") { ";var M=M||[];M.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+O+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+O+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var k=s;s=M.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+k+"]); ":s+=" validate.errors = ["+k+"]; return false; ":s+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { "}else{s+=" if ( ";var P=g;if(P)for(var q,w=-1,F=P.length-1;w<F;){q=P[w+=1],w&&(s+=" || ");var G=e.util.getProperty(q),H=d+G;s+=" ( ( "+H+" === undefined ",B&&(s+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(q)+"') "),s+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?q:G)+") ) "}s+=") { ";var R="missing"+a,O="' + "+R+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(D,R,!0):D+" + "+R);var M=M||[];M.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+O+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+O+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var k=s;s=M.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+k+"]); ":s+=" validate.errors = ["+k+"]; return false; ":s+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { "}else if(I){h||(s+=" var "+y+" = validate.schema"+c+"; ");var w="i"+a,R="schema"+a+"["+w+"]",O="' + "+R+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(D,R,e.opts.jsonPointers)),h&&(s+=" if ("+y+" && !Array.isArray("+y+")) { var err = ",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+O+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+O+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+y+" !== undefined) { "),s+=" for (var "+w+" = 0; "+w+" < "+y+".length; "+w+"++) { if ("+d+"["+y+"["+w+"]] === undefined ",B&&(s+=" || ! Object.prototype.hasOwnProperty.call("+d+", "+y+"["+w+"]) "),s+=") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+O+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+O+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",h&&(s+=" } ")}else{var U=g;if(U)for(var q,$=-1,Y=U.length-1;$<Y;){q=U[$+=1];var G=e.util.getProperty(q),O=e.util.escapeQuotes(q),H=d+G;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(D,q,e.opts.jsonPointers)),s+=" if ( "+H+" === undefined ",B&&(s+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(q)+"') "),s+=") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+O+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+O+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=D}else f&&(s+=" if (true) {");return s}});var D5n=E((AAl,I5n)=>{"use strict";I5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="valid"+a,h=e.opts.$data&&n&&n.$data,m;if(h?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",m="schema"+a):m=n,(n||h)&&e.opts.uniqueItems!==!1){h&&(s+=" var "+p+"; if ("+m+" === false || "+m+" === undefined) "+p+" = true; else if (typeof "+m+" != 'boolean') "+p+" = false; else { "),s+=" var i = "+d+".length , "+p+" = true , j; if (i > 1) { ";var y=e.schema.items&&e.schema.items.type,g=Array.isArray(y);if(!y||y=="object"||y=="array"||g&&(y.indexOf("object")>=0||y.indexOf("array")>=0))s+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+p+" = false; break outer; } } } ";else{s+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var A="checkDataType"+(g?"s":"");s+=" if ("+e.util[A](y,"item",e.opts.strictNumbers,!0)+") continue; ",g&&(s+=` if (typeof item == 'string') item = '"' + item; `),s+=" if (typeof itemIndices[item] == 'number') { "+p+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}s+=" } ",h&&(s+=" } "),s+=" if (!"+p+") { ";var v=v||[];v.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(s+=" , schema: ",h?s+="validate.schema"+c:s+=""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var b=s;s=v.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+b+"]); ":s+=" validate.errors = ["+b+"]; return false; ":s+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",f&&(s+=" else { ")}else f&&(s+=" if (true) { ");return s}});var R5n=E((vAl,O5n)=>{"use strict";O5n.exports={$ref:Vwn(),allOf:jwn(),anyOf:Wwn(),$comment:Kwn(),const:Jwn(),contains:Zwn(),dependencies:t5n(),enum:n5n(),format:o5n(),if:a5n(),items:l5n(),maximum:iQt(),minimum:iQt(),maxItems:oQt(),minItems:oQt(),maxLength:sQt(),minLength:sQt(),maxProperties:aQt(),minProperties:aQt(),multipleOf:m5n(),not:y5n(),oneOf:v5n(),pattern:E5n(),properties:x5n(),propertyNames:C5n(),required:w5n(),uniqueItems:D5n(),validate:rQt()}});var B5n=E((bAl,P5n)=>{"use strict";var N5n=R5n(),cQt=_j().toHash;P5n.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],r=["type","$comment"],o=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],s=["number","integer","string","array","object","boolean","null"];return e.all=cQt(r),e.types=cQt(s),e.forEach(function(a){a.rules=a.rules.map(function(i){var n;if(typeof i=="object"){var c=Object.keys(i)[0];n=i[c],i=c,n.forEach(function(f){r.push(f),e.all[f]=!0})}r.push(i);var u=e.all[i]={keyword:i,code:N5n[i],implements:n};return u}),e.all.$comment={keyword:"$comment",code:N5n.$comment},a.type&&(e.types[a.type]=a)}),e.keywords=cQt(r.concat(o)),e.custom={},e}});var L5n=E((EAl,M5n)=>{"use strict";var k5n=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];M5n.exports=function(t,e){for(var r=0;r<e.length;r++){t=JSON.parse(JSON.stringify(t));var o=e[r].split("/"),s=t,a;for(a=1;a<o.length;a++)s=s[o[a]];for(a=0;a<k5n.length;a++){var i=k5n[a],n=s[i];n&&(s[i]={anyOf:[n,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return t}});var Q5n=E((SAl,F5n)=>{"use strict";var x8s=QYe().MissingRef;F5n.exports=U5n;function U5n(t,e,r){var o=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof e=="function"&&(r=e,e=void 0);var s=a(t).then(function(){var n=o._addSchema(t,void 0,e);return n.validate||i(n)});return r&&s.then(function(n){r(null,n)},r),s;function a(n){var c=n.$schema;return c&&!o.getSchema(c)?U5n.call(o,{$ref:c},!0):Promise.resolve()}function i(n){try{return o._compile(n)}catch(u){if(u instanceof x8s)return c(u);throw u}function c(u){var f=u.missingSchema;if(h(f))throw new Error("Schema "+f+" is loaded but "+u.missingRef+" cannot be resolved");var d=o._loadingSchemas[f];return d||(d=o._loadingSchemas[f]=o._opts.loadSchema(f),d.then(p,p)),d.then(function(m){if(!h(f))return a(m).then(function(){h(f)||o.addSchema(m,f,void 0,e)})}).then(function(){return i(n)});function p(){delete o._loadingSchemas[f]}function h(m){return o._refs[m]||o._schemas[m]}}}}});var H5n=E((xAl,q5n)=>{"use strict";q5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d,p="data"+(i||""),h="valid"+a,m="errs__"+a,y=e.opts.$data&&n&&n.$data,g;y?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",g="schema"+a):g=n;var A=this,v="definition"+a,b=A.definition,x="",T,D,I,B,w;if(y&&b.$data){w="keywordValidate"+a;var R=b.validateSchema;s+=" var "+v+" = RULES.custom['"+r+"'].definition; var "+w+" = "+v+".validate;"}else{if(B=e.useCustomRule(A,n,e.schema,e),!B)return;g="validate.schema"+c,w=B.code,T=b.compile,D=b.inline,I=b.macro}var O=w+".errors",M="i"+a,k="ruleErr"+a,P=b.async;if(P&&!e.async)throw new Error("async keyword in sync schema");if(D||I||(s+=""+O+" = null;"),s+="var "+m+" = errors;var "+h+";",y&&b.$data&&(x+="}",s+=" if ("+g+" === undefined) { "+h+" = true; } else { ",R&&(x+="}",s+=" "+h+" = "+v+".validateSchema("+g+"); if ("+h+") { ")),D)b.statements?s+=" "+B.validate+" ":s+=" "+h+" = "+B.validate+"; ";else if(I){var q=e.util.copy(e),x="";q.level++;var F="valid"+q.level;q.schema=B.validate,q.schemaPath="";var G=e.compositeRule;e.compositeRule=q.compositeRule=!0;var H=e.validate(q).replace(/validate\.schema/g,w);e.compositeRule=q.compositeRule=G,s+=" "+H}else{var U=U||[];U.push(s),s="",s+=" "+w+".call( ",e.opts.passContext?s+="this":s+="self",T||b.schema===!1?s+=" , "+p+" ":s+=" , "+g+" , "+p+" , validate.schema"+e.schemaPath+" ",s+=" , (dataPath || '')",e.errorPath!='""'&&(s+=" + "+e.errorPath);var $=i?"data"+(i-1||""):"parentData",Y=i?e.dataPathArr[i]:"parentDataProperty";s+=" , "+$+" , "+Y+" , rootData ) ";var se=s;s=U.pop(),b.errors===!1?(s+=" "+h+" = ",P&&(s+="await "),s+=""+se+"; "):P?(O="customErrors"+a,s+=" var "+O+" = null; try { "+h+" = await "+se+"; } catch (e) { "+h+" = false; if (e instanceof ValidationError) "+O+" = e.errors; else throw e; } "):s+=" "+O+" = null; "+h+" = "+se+"; "}if(b.modifying&&(s+=" if ("+$+") "+p+" = "+$+"["+Y+"];"),s+=""+x,b.valid)f&&(s+=" if (true) { ");else{s+=" if ( ",b.valid===void 0?(s+=" !",I?s+=""+F:s+=""+h):s+=" "+!b.valid+" ",s+=") { ",d=A.keyword;var U=U||[];U.push(s),s="";var U=U||[];U.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(d||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+A.keyword+"' } ",e.opts.messages!==!1&&(s+=` , message: 'should pass "`+A.keyword+`" keyword validation' `),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var J=s;s=U.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+J+"]); ":s+=" validate.errors = ["+J+"]; return false; ":s+=" var err = "+J+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var fe=s;s=U.pop(),D?b.errors?b.errors!="full"&&(s+=" for (var "+M+"="+m+"; "+M+"<errors; "+M+"++) { var "+k+" = vErrors["+M+"]; if ("+k+".dataPath === undefined) "+k+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+k+".schemaPath === undefined) { "+k+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(s+=" "+k+".schema = "+g+"; "+k+".data = "+p+"; "),s+=" } "):b.errors===!1?s+=" "+fe+" ":(s+=" if ("+m+" == errors) { "+fe+" } else { for (var "+M+"="+m+"; "+M+"<errors; "+M+"++) { var "+k+" = vErrors["+M+"]; if ("+k+".dataPath === undefined) "+k+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+k+".schemaPath === undefined) { "+k+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(s+=" "+k+".schema = "+g+"; "+k+".data = "+p+"; "),s+=" } } "):I?(s+=" var err = ",e.createErrors!==!1?(s+=" { keyword: '"+(d||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+A.keyword+"' } ",e.opts.messages!==!1&&(s+=` , message: 'should pass "`+A.keyword+`" keyword validation' `),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; ")):b.errors===!1?s+=" "+fe+" ":(s+=" if (Array.isArray("+O+")) { if (vErrors === null) vErrors = "+O+"; else vErrors = vErrors.concat("+O+"); errors = vErrors.length; for (var "+M+"="+m+"; "+M+"<errors; "+M+"++) { var "+k+" = vErrors["+M+"]; if ("+k+".dataPath === undefined) "+k+".dataPath = (dataPath || '') + "+e.errorPath+"; "+k+'.schemaPath = "'+u+'"; ',e.opts.verbose&&(s+=" "+k+".schema = "+g+"; "+k+".data = "+p+"; "),s+=" } } else { "+fe+" } "),s+=" } ",f&&(s+=" else { ")}return s}});var lQt=E((_Al,_8s)=>{_8s.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var j5n=E((CAl,G5n)=>{"use strict";var V5n=lQt();G5n.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:V5n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:V5n.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var W5n=E((TAl,$5n)=>{"use strict";var C8s=/^[a-z_$][a-z0-9_$-]*$/i,T8s=H5n(),w8s=j5n();$5n.exports={add:I8s,get:D8s,remove:O8s,validate:uQt};function I8s(t,e){var r=this.RULES;if(r.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!C8s.test(t))throw new Error("Keyword "+t+" is not a valid identifier");if(e){this.validateKeyword(e,!0);var o=e.type;if(Array.isArray(o))for(var s=0;s<o.length;s++)i(t,o[s],e);else i(t,o,e);var a=e.metaSchema;a&&(e.$data&&this._opts.$data&&(a={anyOf:[a,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),e.validateSchema=this.compile(a,!0))}r.keywords[t]=r.all[t]=!0;function i(n,c,u){for(var f,d=0;d<r.length;d++){var p=r[d];if(p.type==c){f=p;break}}f||(f={type:c,rules:[]},r.push(f));var h={keyword:n,definition:u,custom:!0,code:T8s,implements:u.implements};f.rules.push(h),r.custom[n]=h}return this}function D8s(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1}function O8s(t){var e=this.RULES;delete e.keywords[t],delete e.all[t],delete e.custom[t];for(var r=0;r<e.length;r++)for(var o=e[r].rules,s=0;s<o.length;s++)if(o[s].keyword==t){o.splice(s,1);break}return this}function uQt(t,e){uQt.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(w8s,!0);if(r(t))return!0;if(uQt.errors=r.errors,e)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}});var z5n=E((wAl,R8s)=>{R8s.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var iIn=E((IAl,nIn)=>{"use strict";var Y5n=wwn(),Cj=FYe(),N8s=Dwn(),J5n=KFt(),P8s=tQt(),B8s=qwn(),k8s=B5n(),X5n=L5n(),Z5n=_j();nIn.exports=rh;rh.prototype.validate=L8s;rh.prototype.compile=U8s;rh.prototype.addSchema=F8s;rh.prototype.addMetaSchema=Q8s;rh.prototype.validateSchema=q8s;rh.prototype.getSchema=V8s;rh.prototype.removeSchema=j8s;rh.prototype.addFormat=Z8s;rh.prototype.errorsText=X8s;rh.prototype._addSchema=$8s;rh.prototype._compile=W8s;rh.prototype.compileAsync=Q5n();var zYe=W5n();rh.prototype.addKeyword=zYe.add;rh.prototype.getKeyword=zYe.get;rh.prototype.removeKeyword=zYe.remove;rh.prototype.validateKeyword=zYe.validate;var eIn=QYe();rh.ValidationError=eIn.Validation;rh.MissingRefError=eIn.MissingRef;rh.$dataMetaSchema=X5n;var WYe="http://json-schema.org/draft-07/schema",K5n=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],M8s=["/properties"];function rh(t){if(!(this instanceof rh))return new rh(t);t=this._opts=Z5n.copy(t)||{},oDs(this),this._schemas={},this._refs={},this._fragments={},this._formats=B8s(t.format),this._cache=t.cache||new N8s,this._loadingSchemas={},this._compilations=[],this.RULES=k8s(),this._getId=z8s(t),t.loopRequired=t.loopRequired||1/0,t.errorDataPath=="property"&&(t._errorDataPathProperty=!0),t.serialize===void 0&&(t.serialize=P8s),this._metaOpts=iDs(this),t.formats&&rDs(this),t.keywords&&nDs(this),eDs(this),typeof t.meta=="object"&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),tDs(this)}function L8s(t,e){var r;if(typeof t=="string"){if(r=this.getSchema(t),!r)throw new Error('no schema with key or ref "'+t+'"')}else{var o=this._addSchema(t);r=o.validate||this._compile(o)}var s=r(e);return r.$async!==!0&&(this.errors=r.errors),s}function U8s(t,e){var r=this._addSchema(t,void 0,e);return r.validate||this._compile(r)}function F8s(t,e,r,o){if(Array.isArray(t)){for(var s=0;s<t.length;s++)this.addSchema(t[s],void 0,r,o);return this}var a=this._getId(t);if(a!==void 0&&typeof a!="string")throw new Error("schema id must be string");return e=Cj.normalizeId(e||a),rIn(this,e),this._schemas[e]=this._addSchema(t,r,o,!0),this}function Q8s(t,e,r){return this.addSchema(t,e,r,!0),this}function q8s(t,e){var r=t.$schema;if(r!==void 0&&typeof r!="string")throw new Error("$schema must be a string");if(r=r||this._opts.defaultMeta||H8s(this),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var o=this.validate(r,t);if(!o&&e){var s="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(s);else throw new Error(s)}return o}function H8s(t){var e=t._opts.meta;return t._opts.defaultMeta=typeof e=="object"?t._getId(e)||e:t.getSchema(WYe)?WYe:void 0,t._opts.defaultMeta}function V8s(t){var e=tIn(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return G8s(this,t)}}function G8s(t,e){var r=Cj.schema.call(t,{schema:{}},e);if(r){var o=r.schema,s=r.root,a=r.baseId,i=Y5n.call(t,o,s,void 0,a);return t._fragments[e]=new J5n({ref:e,fragment:!0,schema:o,root:s,baseId:a,validate:i}),i}}function tIn(t,e){return e=Cj.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function j8s(t){if(t instanceof RegExp)return $Ye(this,this._schemas,t),$Ye(this,this._refs,t),this;switch(typeof t){case"undefined":return $Ye(this,this._schemas),$Ye(this,this._refs),this._cache.clear(),this;case"string":var e=tIn(this,t);return e&&this._cache.del(e.cacheKey),delete this._schemas[t],delete this._refs[t],this;case"object":var r=this._opts.serialize,o=r?r(t):t;this._cache.del(o);var s=this._getId(t);s&&(s=Cj.normalizeId(s),delete this._schemas[s],delete this._refs[s])}return this}function $Ye(t,e,r){for(var o in e){var s=e[o];!s.meta&&(!r||r.test(o))&&(t._cache.del(s.cacheKey),delete e[o])}}function $8s(t,e,r,o){if(typeof t!="object"&&typeof t!="boolean")throw new Error("schema should be object or boolean");var s=this._opts.serialize,a=s?s(t):t,i=this._cache.get(a);if(i)return i;o=o||this._opts.addUsedSchema!==!1;var n=Cj.normalizeId(this._getId(t));n&&o&&rIn(this,n);var c=this._opts.validateSchema!==!1&&!e,u;c&&!(u=n&&n==Cj.normalizeId(t.$schema))&&this.validateSchema(t,!0);var f=Cj.ids.call(this,t),d=new J5n({id:n,schema:t,localRefs:f,cacheKey:a,meta:r});return n[0]!="#"&&o&&(this._refs[n]=d),this._cache.put(a,d),c&&u&&this.validateSchema(t,!0),d}function W8s(t,e){if(t.compiling)return t.validate=s,s.schema=t.schema,s.errors=null,s.root=e||s,t.schema.$async===!0&&(s.$async=!0),s;t.compiling=!0;var r;t.meta&&(r=this._opts,this._opts=this._metaOpts);var o;try{o=Y5n.call(this,t.schema,e,t.localRefs)}catch(a){throw delete t.validate,a}finally{t.compiling=!1,t.meta&&(this._opts=r)}return t.validate=o,t.refs=o.refs,t.refVal=o.refVal,t.root=o.root,o;function s(){var a=t.validate,i=a.apply(this,arguments);return s.errors=a.errors,i}}function z8s(t){switch(t.schemaId){case"auto":return J8s;case"id":return K8s;default:return Y8s}}function K8s(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function Y8s(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function J8s(t){if(t.$id&&t.id&&t.$id!=t.id)throw new Error("schema $id is different from id");return t.$id||t.id}function X8s(t,e){if(t=t||this.errors,!t)return"No errors";e=e||{};for(var r=e.separator===void 0?", ":e.separator,o=e.dataVar===void 0?"data":e.dataVar,s="",a=0;a<t.length;a++){var i=t[a];i&&(s+=o+i.dataPath+" "+i.message+r)}return s.slice(0,-r.length)}function Z8s(t,e){return typeof e=="string"&&(e=new RegExp(e)),this._formats[t]=e,this}function eDs(t){var e;if(t._opts.$data&&(e=z5n(),t.addMetaSchema(e,e.$id,!0)),t._opts.meta!==!1){var r=lQt();t._opts.$data&&(r=X5n(r,M8s)),t.addMetaSchema(r,WYe,!0),t._refs["http://json-schema.org/schema"]=WYe}}function tDs(t){var e=t._opts.schemas;if(e)if(Array.isArray(e))t.addSchema(e);else for(var r in e)t.addSchema(e[r],r)}function rDs(t){for(var e in t._opts.formats){var r=t._opts.formats[e];t.addFormat(e,r)}}function nDs(t){for(var e in t._opts.keywords){var r=t._opts.keywords[e];t.addKeyword(e,r)}}function rIn(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function iDs(t){for(var e=Z5n.copy(t._opts),r=0;r<K5n.length;r++)delete e[K5n[r]];return e}function oDs(t){var e=t._opts.logger;if(e===!1)t.logger={log:fQt,warn:fQt,error:fQt};else{if(e===void 0&&(e=console),!(typeof e=="object"&&e.log&&e.warn&&e.error))throw new Error("logger must implement log, warn and error methods");t.logger=e}}function fQt(){}});var oIn,jE,Vie=j(()=>{nwn();EL();oIn=we(iIn(),1),jE=class extends RYe{constructor(e,r){var o;super(r),this._clientInfo=e,this._cachedToolOutputValidators=new Map,this._capabilities=(o=r?.capabilities)!==null&&o!==void 0?o:{},this._ajv=new oIn.default}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=rwn(this._capabilities,e)}assertCapability(e,r){var o;if(!(!((o=this._serverCapabilities)===null||o===void 0)&&o[e]))throw new Error(`Server does not support ${e} (required for ${r})`)}async connect(e,r){if(await super.connect(e),e.sessionId===void 0)try{let o=await this.request({method:"initialize",params:{protocolVersion:qie,capabilities:this._capabilities,clientInfo:this._clientInfo}},NFt,r);if(o===void 0)throw new Error(`Server sent invalid initialize result: ${o}`);if(!U6n.includes(o.protocolVersion))throw new Error(`Server's protocol version is not supported: ${o.protocolVersion}`);this._serverCapabilities=o.capabilities,this._serverVersion=o.serverInfo,e.setProtocolVersion&&e.setProtocolVersion(o.protocolVersion),this._instructions=o.instructions,await this.notification({method:"notifications/initialized"})}catch(o){throw this.close(),o}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(e){var r,o,s,a,i;switch(e){case"logging/setLevel":if(!(!((r=this._serverCapabilities)===null||r===void 0)&&r.logging))throw new Error(`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!(!((o=this._serverCapabilities)===null||o===void 0)&&o.prompts))throw new Error(`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!(!((s=this._serverCapabilities)===null||s===void 0)&&s.resources))throw new Error(`Server does not support resources (required for ${e})`);if(e==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw new Error(`Server does not support resource subscriptions (required for ${e})`);break;case"tools/call":case"tools/list":if(!(!((a=this._serverCapabilities)===null||a===void 0)&&a.tools))throw new Error(`Server does not support tools (required for ${e})`);break;case"completion/complete":if(!(!((i=this._serverCapabilities)===null||i===void 0)&&i.completions))throw new Error(`Server does not support completions (required for ${e})`);break;case"initialize":break;case"ping":break}}assertNotificationCapability(e){var r;switch(e){case"notifications/roots/list_changed":if(!(!((r=this._capabilities.roots)===null||r===void 0)&&r.listChanged))throw new Error(`Client does not support roots list changed notifications (required for ${e})`);break;case"notifications/initialized":break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(e){switch(e){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Client does not support sampling capability (required for ${e})`);break;case"elicitation/create":if(!this._capabilities.elicitation)throw new Error(`Client does not support elicitation capability (required for ${e})`);break;case"roots/list":if(!this._capabilities.roots)throw new Error(`Client does not support roots capability (required for ${e})`);break;case"ping":break}}async ping(e){return this.request({method:"ping"},xj,e)}async complete(e,r){return this.request({method:"completion/complete",params:e},qFt,r)}async setLoggingLevel(e,r){return this.request({method:"logging/setLevel",params:{level:e}},xj,r)}async getPrompt(e,r){return this.request({method:"prompts/get",params:e},b3e,r)}async listPrompts(e,r){return this.request({method:"prompts/list",params:e},v3e,r)}async listResources(e,r){return this.request({method:"resources/list",params:e},BFt,r)}async listResourceTemplates(e,r){return this.request({method:"resources/templates/list",params:e},kFt,r)}async readResource(e,r){return this.request({method:"resources/read",params:e},MFt,r)}async subscribeResource(e,r){return this.request({method:"resources/subscribe",params:e},xj,r)}async unsubscribeResource(e,r){return this.request({method:"resources/unsubscribe",params:e},xj,r)}async callTool(e,r=DYe,o){let s=await this.request({method:"tools/call",params:e},r,o),a=this.getToolOutputValidator(e.name);if(a){if(!s.structuredContent&&!s.isError)throw new eC(Z_.InvalidRequest,`Tool ${e.name} has an output schema but did not return structured content`);if(s.structuredContent)try{if(!a(s.structuredContent))throw new eC(Z_.InvalidParams,`Structured content does not match the tool's output schema: ${this._ajv.errorsText(a.errors)}`)}catch(i){throw i instanceof eC?i:new eC(Z_.InvalidParams,`Failed to validate structured content: ${i instanceof Error?i.message:String(i)}`)}}return s}cacheToolOutputSchemas(e){this._cachedToolOutputValidators.clear();for(let r of e)if(r.outputSchema)try{let o=this._ajv.compile(r.outputSchema);this._cachedToolOutputValidators.set(r.name,o)}catch{}}getToolOutputValidator(e){return this._cachedToolOutputValidators.get(e)}async listTools(e,r){let o=await this.request({method:"tools/list",params:e},QFt,r);return this.cacheToolOutputSchemas(o.tools),o}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}}});var uIn=E((NAl,lIn)=>{lIn.exports=cIn;cIn.sync=aDs;var sIn=me("fs");function sDs(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var o=0;o<r.length;o++){var s=r[o].toLowerCase();if(s&&t.substr(-s.length).toLowerCase()===s)return!0}return!1}function aIn(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:sDs(e,r)}function cIn(t,e,r){sIn.stat(t,function(o,s){r(o,o?!1:aIn(s,t,e))})}function aDs(t,e){return aIn(sIn.statSync(t),t,e)}});var mIn=E((PAl,hIn)=>{hIn.exports=dIn;dIn.sync=cDs;var fIn=me("fs");function dIn(t,e,r){fIn.stat(t,function(o,s){r(o,o?!1:pIn(s,e))})}function cDs(t,e){return pIn(fIn.statSync(t),e)}function pIn(t,e){return t.isFile()&&lDs(t,e)}function lDs(t,e){var r=t.mode,o=t.uid,s=t.gid,a=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),i=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),n=parseInt("100",8),c=parseInt("010",8),u=parseInt("001",8),f=n|c,d=r&u||r&c&&s===i||r&n&&o===a||r&f&&a===0;return d}});var yIn=E((kAl,gIn)=>{var BAl=me("fs"),KYe;process.platform==="win32"||global.TESTING_WINDOWS?KYe=uIn():KYe=mIn();gIn.exports=dQt;dQt.sync=uDs;function dQt(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(o,s){dQt(t,e||{},function(a,i){a?s(a):o(i)})})}KYe(t,e||{},function(o,s){o&&(o.code==="EACCES"||e&&e.ignoreErrors)&&(o=null,s=!1),r(o,s)})}function uDs(t,e){try{return KYe.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var _In=E((MAl,xIn)=>{var Gie=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",AIn=me("path"),fDs=Gie?";":":",vIn=yIn(),bIn=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),EIn=(t,e)=>{let r=e.colon||fDs,o=t.match(/\//)||Gie&&t.match(/\\/)?[""]:[...Gie?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],s=Gie?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=Gie?s.split(r):[""];return Gie&&t.indexOf(".")!==-1&&a[0]!==""&&a.unshift(""),{pathEnv:o,pathExt:a,pathExtExe:s}},SIn=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:o,pathExt:s,pathExtExe:a}=EIn(t,e),i=[],n=u=>new Promise((f,d)=>{if(u===o.length)return e.all&&i.length?f(i):d(bIn(t));let p=o[u],h=/^".*"$/.test(p)?p.slice(1,-1):p,m=AIn.join(h,t),y=!h&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;f(c(y,u,0))}),c=(u,f,d)=>new Promise((p,h)=>{if(d===s.length)return p(n(f+1));let m=s[d];vIn(u+m,{pathExt:a},(y,g)=>{if(!y&&g)if(e.all)i.push(u+m);else return p(u+m);return p(c(u,f,d+1))})});return r?n(0).then(u=>r(null,u),r):n(0)},dDs=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:o,pathExtExe:s}=EIn(t,e),a=[];for(let i=0;i<r.length;i++){let n=r[i],c=/^".*"$/.test(n)?n.slice(1,-1):n,u=AIn.join(c,t),f=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+u:u;for(let d=0;d<o.length;d++){let p=f+o[d];try{if(vIn.sync(p,{pathExt:s}))if(e.all)a.push(p);else return p}catch{}}}if(e.all&&a.length)return a;if(e.nothrow)return null;throw bIn(t)};xIn.exports=SIn;SIn.sync=dDs});var TIn=E((LAl,pQt)=>{"use strict";var CIn=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(o=>o.toUpperCase()==="PATH")||"Path"};pQt.exports=CIn;pQt.exports.default=CIn});var OIn=E((UAl,DIn)=>{"use strict";var wIn=me("path"),pDs=_In(),hDs=TIn();function IIn(t,e){let r=t.options.env||process.env,o=process.cwd(),s=t.options.cwd!=null,a=s&&process.chdir!==void 0&&!process.chdir.disabled;if(a)try{process.chdir(t.options.cwd)}catch{}let i;try{i=pDs.sync(t.command,{path:r[hDs({env:r})],pathExt:e?wIn.delimiter:void 0})}catch{}finally{a&&process.chdir(o)}return i&&(i=wIn.resolve(s?t.options.cwd:"",i)),i}function mDs(t){return IIn(t)||IIn(t,!0)}DIn.exports=mDs});var RIn=E((FAl,mQt)=>{"use strict";var hQt=/([()\][%!^"`<>&|;, *?])/g;function gDs(t){return t=t.replace(hQt,"^$1"),t}function yDs(t,e){return t=`${t}`,t=t.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),t=t.replace(/(?=(\\+?)?)\1$/,"$1$1"),t=`"${t}"`,t=t.replace(hQt,"^$1"),e&&(t=t.replace(hQt,"^$1")),t}mQt.exports.command=gDs;mQt.exports.argument=yDs});var PIn=E((QAl,NIn)=>{"use strict";NIn.exports=/^#!(.*)/});var kIn=E((qAl,BIn)=>{"use strict";var ADs=PIn();BIn.exports=(t="")=>{let e=t.match(ADs);if(!e)return null;let[r,o]=e[0].replace(/#! ?/,"").split(" "),s=r.split("/").pop();return s==="env"?o:o?`${s} ${o}`:s}});var LIn=E((HAl,MIn)=>{"use strict";var gQt=me("fs"),vDs=kIn();function bDs(t){let r=Buffer.alloc(150),o;try{o=gQt.openSync(t,"r"),gQt.readSync(o,r,0,150,0),gQt.closeSync(o)}catch{}return vDs(r.toString())}MIn.exports=bDs});var qIn=E((VAl,QIn)=>{"use strict";var EDs=me("path"),UIn=OIn(),FIn=RIn(),SDs=LIn(),xDs=process.platform==="win32",_Ds=/\.(?:com|exe)$/i,CDs=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function TDs(t){t.file=UIn(t);let e=t.file&&SDs(t.file);return e?(t.args.unshift(t.file),t.command=e,UIn(t)):t.file}function wDs(t){if(!xDs)return t;let e=TDs(t),r=!_Ds.test(e);if(t.options.forceShell||r){let o=CDs.test(e);t.command=EDs.normalize(t.command),t.command=FIn.command(t.command),t.args=t.args.map(a=>FIn.argument(a,o));let s=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${s}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function IDs(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let o={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?o:wDs(o)}QIn.exports=IDs});var GIn=E((GAl,VIn)=>{"use strict";var yQt=process.platform==="win32";function AQt(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function DDs(t,e){if(!yQt)return;let r=t.emit;t.emit=function(o,s){if(o==="exit"){let a=HIn(s,e);if(a)return r.call(t,"error",a)}return r.apply(t,arguments)}}function HIn(t,e){return yQt&&t===1&&!e.file?AQt(e.original,"spawn"):null}function ODs(t,e){return yQt&&t===1&&!e.file?AQt(e.original,"spawnSync"):null}VIn.exports={hookChildProcess:DDs,verifyENOENT:HIn,verifyENOENTSync:ODs,notFoundError:AQt}});var WIn=E((jAl,jie)=>{"use strict";var jIn=me("child_process"),vQt=qIn(),bQt=GIn();function $In(t,e,r){let o=vQt(t,e,r),s=jIn.spawn(o.command,o.args,o.options);return bQt.hookChildProcess(s,o),s}function RDs(t,e,r){let o=vQt(t,e,r),s=jIn.spawnSync(o.command,o.args,o.options);return s.error=s.error||bQt.verifyENOENTSync(s.status,o),s}jie.exports=$In;jie.exports.spawn=$In;jie.exports.sync=RDs;jie.exports._parse=vQt;jie.exports._enoent=bQt});function NDs(t){return bL.parse(JSON.parse(t))}function zIn(t){return JSON.stringify(t)+`
|
|
896
896
|
`}var YYe,KIn=j(()=>{EL();YYe=class{append(e){this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){if(!this._buffer)return null;let e=this._buffer.indexOf(`
|
|
897
897
|
`);if(e===-1)return null;let r=this._buffer.toString("utf8",0,e).replace(/\r$/,"");return this._buffer=this._buffer.subarray(e+1),NDs(r)}clear(){this._buffer=void 0}}});import JYe from"node:process";import{PassThrough as PDs}from"node:stream";function kDs(){let t={};for(let e of BDs){let r=JYe.env[e];r!==void 0&&(r.startsWith("()")||(t[e]=r))}return t}function MDs(){return"type"in JYe}var YIn,BDs,$ie,EQt=j(()=>{YIn=we(WIn(),1);KIn();BDs=JYe.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"];$ie=class{constructor(e){this._abortController=new AbortController,this._readBuffer=new YYe,this._stderrStream=null,this._serverParams=e,(e.stderr==="pipe"||e.stderr==="overlapped")&&(this._stderrStream=new PDs)}async start(){if(this._process)throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((e,r)=>{var o,s,a,i,n;this._process=(0,YIn.default)(this._serverParams.command,(o=this._serverParams.args)!==null&&o!==void 0?o:[],{env:{...kDs(),...this._serverParams.env},stdio:["pipe","pipe",(s=this._serverParams.stderr)!==null&&s!==void 0?s:"inherit"],shell:!1,signal:this._abortController.signal,windowsHide:JYe.platform==="win32"&&MDs(),cwd:this._serverParams.cwd}),this._process.on("error",c=>{var u,f;if(c.name==="AbortError"){(u=this.onclose)===null||u===void 0||u.call(this);return}r(c),(f=this.onerror)===null||f===void 0||f.call(this,c)}),this._process.on("spawn",()=>{e()}),this._process.on("close",c=>{var u;this._process=void 0,(u=this.onclose)===null||u===void 0||u.call(this)}),(a=this._process.stdin)===null||a===void 0||a.on("error",c=>{var u;(u=this.onerror)===null||u===void 0||u.call(this,c)}),(i=this._process.stdout)===null||i===void 0||i.on("data",c=>{this._readBuffer.append(c),this.processReadBuffer()}),(n=this._process.stdout)===null||n===void 0||n.on("error",c=>{var u;(u=this.onerror)===null||u===void 0||u.call(this,c)}),this._stderrStream&&this._process.stderr&&this._process.stderr.pipe(this._stderrStream)})}get stderr(){var e,r;return this._stderrStream?this._stderrStream:(r=(e=this._process)===null||e===void 0?void 0:e.stderr)!==null&&r!==void 0?r:null}get pid(){var e,r;return(r=(e=this._process)===null||e===void 0?void 0:e.pid)!==null&&r!==void 0?r:null}processReadBuffer(){for(var e,r;;)try{let o=this._readBuffer.readMessage();if(o===null)break;(e=this.onmessage)===null||e===void 0||e.call(this,o)}catch(o){(r=this.onerror)===null||r===void 0||r.call(this,o)}}async close(){this._abortController.abort(),this._process=void 0,this._readBuffer.clear()}send(e){return new Promise(r=>{var o;if(!(!((o=this._process)===null||o===void 0)&&o.stdin))throw new Error("Not connected");let s=zIn(e);this._process.stdin.write(s)?r():this._process.stdin.once("drain",r)})}}});function SQt(t){}function ZYe(t){if(typeof t=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:e=SQt,onError:r=SQt,onRetry:o=SQt,onComment:s}=t,a="",i=!0,n,c="",u="";function f(y){let g=i?y.replace(/^\xEF\xBB\xBF/,""):y,[A,v]=LDs(`${a}${g}`);for(let b of A)d(b);a=v,i=!1}function d(y){if(y===""){h();return}if(y.startsWith(":")){s&&s(y.slice(y.startsWith(": ")?2:1));return}let g=y.indexOf(":");if(g!==-1){let A=y.slice(0,g),v=y[g+1]===" "?2:1,b=y.slice(g+v);p(A,b,y);return}p(y,"",y)}function p(y,g,A){switch(y){case"event":u=g;break;case"data":c=`${c}${g}
|
|
898
898
|
`;break;case"id":n=g.includes("\0")?void 0:g;break;case"retry":/^\d+$/.test(g)?o(parseInt(g,10)):r(new XYe(`Invalid \`retry\` value: "${g}"`,{type:"invalid-retry",value:g,line:A}));break;default:r(new XYe(`Unknown field "${y.length>20?`${y.slice(0,20)}\u2026`:y}"`,{type:"unknown-field",field:y,value:g,line:A}));break}}function h(){c.length>0&&e({id:n,event:u||void 0,data:c.endsWith(`
|
|
899
899
|
`)?c.slice(0,-1):c}),n=void 0,c="",u=""}function m(y={}){a&&y.consume&&d(a),i=!0,n=void 0,c="",u="",a=""}return{feed:f,reset:m}}function LDs(t){let e=[],r="",o=0;for(;o<t.length;){let s=t.indexOf("\r",o),a=t.indexOf(`
|
|
900
900
|
`,o),i=-1;if(s!==-1&&a!==-1?i=Math.min(s,a):s!==-1?s===t.length-1?i=-1:i=s:a!==-1&&(i=a),i===-1){r=t.slice(o);break}else{let n=t.slice(o,i);e.push(n),o=i+1,t[o-1]==="\r"&&t[o]===`
|
|
901
|
-
`&&o++}}return[e,r]}var XYe,xQt=j(()=>{XYe=class extends Error{constructor(e,r){super(e),this.name="ParseError",this.type=r.type,this.field=r.field,this.value=r.value,this.line=r.line}}});function UDs(t){let e=globalThis.DOMException;return typeof e=="function"?new e(t,"SyntaxError"):new SyntaxError(t)}function _Qt(t){return t instanceof Error?"errors"in t&&Array.isArray(t.errors)?t.errors.map(_Qt).join(", "):"cause"in t&&t.cause instanceof Error?`${t}: ${_Qt(t.cause)}`:t.message:`${t}`}function JIn(t){return{type:t.type,message:t.message,code:t.code,defaultPrevented:t.defaultPrevented,cancelable:t.cancelable,timeStamp:t.timeStamp}}function FDs(){let t="document"in globalThis?globalThis.document:void 0;return t&&typeof t=="object"&&"baseURI"in t&&typeof t.baseURI=="string"?t.baseURI:void 0}var tJe,ZIn,NQt,vc,ug,ip,$O,tb,Tj,Wie,eJe,rJe,_3e,Yie,C3e,CL,zie,Jie,Kie,S3e,C6,CQt,TQt,wQt,XIn,IQt,DQt,x3e,OQt,RQt,wj,e8n=j(()=>{xQt();tJe=class extends Event{constructor(e,r){var o,s;super(e),this.code=(o=r?.code)!=null?o:void 0,this.message=(s=r?.message)!=null?s:void 0}[Symbol.for("nodejs.util.inspect.custom")](e,r,o){return o(JIn(this),r)}[Symbol.for("Deno.customInspect")](e,r){return e(JIn(this),r)}};ZIn=t=>{throw TypeError(t)},NQt=(t,e,r)=>e.has(t)||ZIn("Cannot "+r),vc=(t,e,r)=>(NQt(t,e,"read from private field"),r?r.call(t):e.get(t)),ug=(t,e,r)=>e.has(t)?ZIn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),ip=(t,e,r,o)=>(NQt(t,e,"write to private field"),e.set(t,r),r),$O=(t,e,r)=>(NQt(t,e,"access private method"),r),wj=class extends EventTarget{constructor(e,r){var o,s;super(),ug(this,C6),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,ug(this,tb),ug(this,Tj),ug(this,Wie),ug(this,eJe),ug(this,rJe),ug(this,_3e),ug(this,Yie),ug(this,C3e,null),ug(this,CL),ug(this,zie),ug(this,Jie,null),ug(this,Kie,null),ug(this,S3e,null),ug(this,TQt,async a=>{var i;vc(this,zie).reset();let{body:n,redirected:c,status:u,headers:f}=a;if(u===204){$O(this,C6,x3e).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(c?ip(this,Wie,new URL(a.url)):ip(this,Wie,void 0),u!==200){$O(this,C6,x3e).call(this,`Non-200 status code (${u})`,u);return}if(!(f.get("content-type")||"").startsWith("text/event-stream")){$O(this,C6,x3e).call(this,'Invalid content type, expected "text/event-stream"',u);return}if(vc(this,tb)===this.CLOSED)return;ip(this,tb,this.OPEN);let d=new Event("open");if((i=vc(this,S3e))==null||i.call(this,d),this.dispatchEvent(d),typeof n!="object"||!n||!("getReader"in n)){$O(this,C6,x3e).call(this,"Invalid response body, expected a web ReadableStream",u),this.close();return}let p=new TextDecoder,h=n.getReader(),m=!0;do{let{done:y,value:g}=await h.read();g&&vc(this,zie).feed(p.decode(g,{stream:!y})),y&&(m=!1,vc(this,zie).reset(),$O(this,C6,OQt).call(this))}while(m)}),ug(this,wQt,a=>{ip(this,CL,void 0),!(a.name==="AbortError"||a.type==="aborted")&&$O(this,C6,OQt).call(this,_Qt(a))}),ug(this,IQt,a=>{typeof a.id=="string"&&ip(this,C3e,a.id);let i=new MessageEvent(a.event||"message",{data:a.data,origin:vc(this,Wie)?vc(this,Wie).origin:vc(this,Tj).origin,lastEventId:a.id||""});vc(this,Kie)&&(!a.event||a.event==="message")&&vc(this,Kie).call(this,i),this.dispatchEvent(i)}),ug(this,DQt,a=>{ip(this,_3e,a)}),ug(this,RQt,()=>{ip(this,Yie,void 0),vc(this,tb)===this.CONNECTING&&$O(this,C6,CQt).call(this)});try{if(e instanceof URL)ip(this,Tj,e);else if(typeof e=="string")ip(this,Tj,new URL(e,FDs()));else throw new Error("Invalid URL")}catch{throw UDs("An invalid or illegal string was specified")}ip(this,zie,ZYe({onEvent:vc(this,IQt),onRetry:vc(this,DQt)})),ip(this,tb,this.CONNECTING),ip(this,_3e,3e3),ip(this,rJe,(o=r?.fetch)!=null?o:globalThis.fetch),ip(this,eJe,(s=r?.withCredentials)!=null?s:!1),$O(this,C6,CQt).call(this)}get readyState(){return vc(this,tb)}get url(){return vc(this,Tj).href}get withCredentials(){return vc(this,eJe)}get onerror(){return vc(this,Jie)}set onerror(e){ip(this,Jie,e)}get onmessage(){return vc(this,Kie)}set onmessage(e){ip(this,Kie,e)}get onopen(){return vc(this,S3e)}set onopen(e){ip(this,S3e,e)}addEventListener(e,r,o){let s=r;super.addEventListener(e,s,o)}removeEventListener(e,r,o){let s=r;super.removeEventListener(e,s,o)}close(){vc(this,Yie)&&clearTimeout(vc(this,Yie)),vc(this,tb)!==this.CLOSED&&(vc(this,CL)&&vc(this,CL).abort(),ip(this,tb,this.CLOSED),ip(this,CL,void 0))}};tb=new WeakMap,Tj=new WeakMap,Wie=new WeakMap,eJe=new WeakMap,rJe=new WeakMap,_3e=new WeakMap,Yie=new WeakMap,C3e=new WeakMap,CL=new WeakMap,zie=new WeakMap,Jie=new WeakMap,Kie=new WeakMap,S3e=new WeakMap,C6=new WeakSet,CQt=function(){ip(this,tb,this.CONNECTING),ip(this,CL,new AbortController),vc(this,rJe)(vc(this,Tj),$O(this,C6,XIn).call(this)).then(vc(this,TQt)).catch(vc(this,wQt))},TQt=new WeakMap,wQt=new WeakMap,XIn=function(){var t;let e={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...vc(this,C3e)?{"Last-Event-ID":vc(this,C3e)}:void 0},cache:"no-store",signal:(t=vc(this,CL))==null?void 0:t.signal};return"window"in globalThis&&(e.credentials=this.withCredentials?"include":"same-origin"),e},IQt=new WeakMap,DQt=new WeakMap,x3e=function(t,e){var r;vc(this,tb)!==this.CLOSED&&ip(this,tb,this.CLOSED);let o=new tJe("error",{code:e,message:t});(r=vc(this,Jie))==null||r.call(this,o),this.dispatchEvent(o)},OQt=function(t,e){var r;if(vc(this,tb)===this.CLOSED)return;ip(this,tb,this.CONNECTING);let o=new tJe("error",{code:e,message:t});(r=vc(this,Jie))==null||r.call(this,o),this.dispatchEvent(o),ip(this,Yie,setTimeout(vc(this,RQt),vc(this,_3e)))},RQt=new WeakMap,wj.CONNECTING=0,wj.OPEN=1,wj.CLOSED=2});async function QDs(t){return(await PQt).getRandomValues(new Uint8Array(t))}async function qDs(t){let e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",r="",o=await QDs(t);for(let s=0;s<t;s++){let a=o[s]%e.length;r+=e[a]}return r}async function HDs(t){return await qDs(t)}async function VDs(t){let e=await(await PQt).subtle.digest("SHA-256",new TextEncoder().encode(t));return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function BQt(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;let e=await HDs(t),r=await VDs(e);return{code_verifier:e,code_challenge:r}}var PQt,t8n=j(()=>{PQt=globalThis.crypto?.webcrypto??globalThis.crypto??import("node:crypto").then(t=>t.webcrypto)});var Q0,r8n,kQt,GDs,n8n,MQt,i8n,jDs,$Ds,o8n,n3l,i3l,LQt=j(()=>{vL();Q0=re.string().url().superRefine((t,e)=>{if(!URL.canParse(t))return e.addIssue({code:re.ZodIssueCode.custom,message:"URL must be parseable",fatal:!0}),re.NEVER}).refine(t=>{let e=new URL(t);return e.protocol!=="javascript:"&&e.protocol!=="data:"&&e.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),r8n=re.object({resource:re.string().url(),authorization_servers:re.array(Q0).optional(),jwks_uri:re.string().url().optional(),scopes_supported:re.array(re.string()).optional(),bearer_methods_supported:re.array(re.string()).optional(),resource_signing_alg_values_supported:re.array(re.string()).optional(),resource_name:re.string().optional(),resource_documentation:re.string().optional(),resource_policy_uri:re.string().url().optional(),resource_tos_uri:re.string().url().optional(),tls_client_certificate_bound_access_tokens:re.boolean().optional(),authorization_details_types_supported:re.array(re.string()).optional(),dpop_signing_alg_values_supported:re.array(re.string()).optional(),dpop_bound_access_tokens_required:re.boolean().optional()}).passthrough(),kQt=re.object({issuer:re.string(),authorization_endpoint:Q0,token_endpoint:Q0,registration_endpoint:Q0.optional(),scopes_supported:re.array(re.string()).optional(),response_types_supported:re.array(re.string()),response_modes_supported:re.array(re.string()).optional(),grant_types_supported:re.array(re.string()).optional(),token_endpoint_auth_methods_supported:re.array(re.string()).optional(),token_endpoint_auth_signing_alg_values_supported:re.array(re.string()).optional(),service_documentation:Q0.optional(),revocation_endpoint:Q0.optional(),revocation_endpoint_auth_methods_supported:re.array(re.string()).optional(),revocation_endpoint_auth_signing_alg_values_supported:re.array(re.string()).optional(),introspection_endpoint:re.string().optional(),introspection_endpoint_auth_methods_supported:re.array(re.string()).optional(),introspection_endpoint_auth_signing_alg_values_supported:re.array(re.string()).optional(),code_challenge_methods_supported:re.array(re.string()).optional()}).passthrough(),GDs=re.object({issuer:re.string(),authorization_endpoint:Q0,token_endpoint:Q0,userinfo_endpoint:Q0.optional(),jwks_uri:Q0,registration_endpoint:Q0.optional(),scopes_supported:re.array(re.string()).optional(),response_types_supported:re.array(re.string()),response_modes_supported:re.array(re.string()).optional(),grant_types_supported:re.array(re.string()).optional(),acr_values_supported:re.array(re.string()).optional(),subject_types_supported:re.array(re.string()),id_token_signing_alg_values_supported:re.array(re.string()),id_token_encryption_alg_values_supported:re.array(re.string()).optional(),id_token_encryption_enc_values_supported:re.array(re.string()).optional(),userinfo_signing_alg_values_supported:re.array(re.string()).optional(),userinfo_encryption_alg_values_supported:re.array(re.string()).optional(),userinfo_encryption_enc_values_supported:re.array(re.string()).optional(),request_object_signing_alg_values_supported:re.array(re.string()).optional(),request_object_encryption_alg_values_supported:re.array(re.string()).optional(),request_object_encryption_enc_values_supported:re.array(re.string()).optional(),token_endpoint_auth_methods_supported:re.array(re.string()).optional(),token_endpoint_auth_signing_alg_values_supported:re.array(re.string()).optional(),display_values_supported:re.array(re.string()).optional(),claim_types_supported:re.array(re.string()).optional(),claims_supported:re.array(re.string()).optional(),service_documentation:re.string().optional(),claims_locales_supported:re.array(re.string()).optional(),ui_locales_supported:re.array(re.string()).optional(),claims_parameter_supported:re.boolean().optional(),request_parameter_supported:re.boolean().optional(),request_uri_parameter_supported:re.boolean().optional(),require_request_uri_registration:re.boolean().optional(),op_policy_uri:Q0.optional(),op_tos_uri:Q0.optional()}).passthrough(),n8n=GDs.merge(kQt.pick({code_challenge_methods_supported:!0})),MQt=re.object({access_token:re.string(),id_token:re.string().optional(),token_type:re.string(),expires_in:re.number().optional(),scope:re.string().optional(),refresh_token:re.string().optional()}).strip(),i8n=re.object({error:re.string(),error_description:re.string().optional(),error_uri:re.string().optional()}),jDs=re.object({redirect_uris:re.array(Q0),token_endpoint_auth_method:re.string().optional(),grant_types:re.array(re.string()).optional(),response_types:re.array(re.string()).optional(),client_name:re.string().optional(),client_uri:Q0.optional(),logo_uri:Q0.optional(),scope:re.string().optional(),contacts:re.array(re.string()).optional(),tos_uri:Q0.optional(),policy_uri:re.string().optional(),jwks_uri:Q0.optional(),jwks:re.any().optional(),software_id:re.string().optional(),software_version:re.string().optional(),software_statement:re.string().optional()}).strip(),$Ds=re.object({client_id:re.string(),client_secret:re.string().optional(),client_id_issued_at:re.number().optional(),client_secret_expires_at:re.number().optional()}).strip(),o8n=jDs.merge($Ds),n3l=re.object({error:re.string(),error_description:re.string().optional()}).strip(),i3l=re.object({token:re.string(),token_type_hint:re.string().optional()}).strip()});function s8n(t){let e=typeof t=="string"?new URL(t):new URL(t.href);return e.hash="",e}function a8n({requestedResource:t,configuredResource:e}){let r=typeof t=="string"?new URL(t):new URL(t.href),o=typeof e=="string"?new URL(e):new URL(e.href);if(r.origin!==o.origin||r.pathname.length<o.pathname.length)return!1;let s=r.pathname.endsWith("/")?r.pathname:r.pathname+"/",a=o.pathname.endsWith("/")?o.pathname:o.pathname+"/";return s.startsWith(a)}var c8n=j(()=>{});var Dm,T3e,Ij,Dj,Oj,w3e,I3e,D3e,WO,O3e,R3e,N3e,P3e,B3e,k3e,M3e,L3e,l8n,u8n=j(()=>{Dm=class extends Error{constructor(e,r){super(e),this.errorUri=r,this.name=this.constructor.name}toResponseObject(){let e={error:this.errorCode,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}get errorCode(){return this.constructor.errorCode}},T3e=class extends Dm{};T3e.errorCode="invalid_request";Ij=class extends Dm{};Ij.errorCode="invalid_client";Dj=class extends Dm{};Dj.errorCode="invalid_grant";Oj=class extends Dm{};Oj.errorCode="unauthorized_client";w3e=class extends Dm{};w3e.errorCode="unsupported_grant_type";I3e=class extends Dm{};I3e.errorCode="invalid_scope";D3e=class extends Dm{};D3e.errorCode="access_denied";WO=class extends Dm{};WO.errorCode="server_error";O3e=class extends Dm{};O3e.errorCode="temporarily_unavailable";R3e=class extends Dm{};R3e.errorCode="unsupported_response_type";N3e=class extends Dm{};N3e.errorCode="unsupported_token_type";P3e=class extends Dm{};P3e.errorCode="invalid_token";B3e=class extends Dm{};B3e.errorCode="method_not_allowed";k3e=class extends Dm{};k3e.errorCode="too_many_requests";M3e=class extends Dm{};M3e.errorCode="invalid_client_metadata";L3e=class extends Dm{};L3e.errorCode="insufficient_scope";l8n={[T3e.errorCode]:T3e,[Ij.errorCode]:Ij,[Dj.errorCode]:Dj,[Oj.errorCode]:Oj,[w3e.errorCode]:w3e,[I3e.errorCode]:I3e,[D3e.errorCode]:D3e,[WO.errorCode]:WO,[O3e.errorCode]:O3e,[R3e.errorCode]:R3e,[N3e.errorCode]:N3e,[P3e.errorCode]:P3e,[B3e.errorCode]:B3e,[k3e.errorCode]:k3e,[M3e.errorCode]:M3e,[L3e.errorCode]:L3e}});function d8n(t,e){let r=t.client_secret!==void 0;return e.length===0?r?"client_secret_post":"none":r&&e.includes("client_secret_basic")?"client_secret_basic":r&&e.includes("client_secret_post")?"client_secret_post":e.includes("none")?"none":r?"client_secret_post":"none"}function p8n(t,e,r,o){let{client_id:s,client_secret:a}=e;switch(t){case"client_secret_basic":WDs(s,a,r);return;case"client_secret_post":zDs(s,a,o);return;case"none":KDs(s,o);return;default:throw new Error(`Unsupported client authentication method: ${t}`)}}function WDs(t,e,r){if(!e)throw new Error("client_secret_basic authentication requires a client_secret");let o=btoa(`${t}:${e}`);r.set("Authorization",`Basic ${o}`)}function zDs(t,e,r){r.set("client_id",t),e&&r.set("client_secret",e)}function KDs(t,e){e.set("client_id",t)}async function FQt(t){let e=t instanceof Response?t.status:void 0,r=t instanceof Response?await t.text():t;try{let o=i8n.parse(JSON.parse(r)),{error:s,error_description:a,error_uri:i}=o,n=l8n[s]||WO;return new n(a||"",i)}catch(o){let s=`${e?`HTTP ${e}: `:""}Invalid OAuth error response: ${o}. Raw body: ${r}`;return new WO(s)}}async function TL(t,e){var r,o;try{return await UQt(t,e)}catch(s){if(s instanceof Ij||s instanceof Oj)return await((r=t.invalidateCredentials)===null||r===void 0?void 0:r.call(t,"all")),await UQt(t,e);if(s instanceof Dj)return await((o=t.invalidateCredentials)===null||o===void 0?void 0:o.call(t,"tokens")),await UQt(t,e);throw s}}async function UQt(t,{serverUrl:e,authorizationCode:r,scope:o,resourceMetadataUrl:s,fetchFn:a}){let i,n;try{i=await JDs(e,{resourceMetadataUrl:s},a),i.authorization_servers&&i.authorization_servers.length>0&&(n=i.authorization_servers[0])}catch{}n||(n=e);let c=await YDs(e,t,i),u=await r9s(n,{fetchFn:a}),f=await Promise.resolve(t.clientInformation());if(!f){if(r!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");if(!t.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");let y=await i9s(n,{metadata:u,clientMetadata:t.clientMetadata,fetchFn:a});await t.saveClientInformation(y),f=y}if(r!==void 0){let y=await t.codeVerifier(),g=await qQt(n,{metadata:u,clientInformation:f,authorizationCode:r,codeVerifier:y,redirectUri:t.redirectUrl,resource:c,addClientAuthentication:t.addClientAuthentication,fetchFn:a});return await t.saveTokens(g),"AUTHORIZED"}let d=await t.tokens();if(d?.refresh_token)try{let y=await HQt(n,{metadata:u,clientInformation:f,refreshToken:d.refresh_token,resource:c,addClientAuthentication:t.addClientAuthentication,fetchFn:a});return await t.saveTokens(y),"AUTHORIZED"}catch(y){if(!(!(y instanceof Dm)||y instanceof WO))throw y}let p=t.state?await t.state():void 0,{authorizationUrl:h,codeVerifier:m}=await n9s(n,{metadata:u,clientInformation:f,state:p,redirectUrl:t.redirectUrl,scope:o||t.clientMetadata.scope,resource:c});return await t.saveCodeVerifier(m),await t.redirectToAuthorization(h),"REDIRECT"}async function YDs(t,e,r){let o=s8n(t);if(e.validateResourceURL)return await e.validateResourceURL(o,r?.resource);if(r){if(!a8n({requestedResource:o,configuredResource:r.resource}))throw new Error(`Protected resource ${r.resource} does not match expected ${o} (or origin)`);return new URL(r.resource)}}function U3e(t){let e=t.headers.get("WWW-Authenticate");if(!e)return;let[r,o]=e.split(" ");if(r.toLowerCase()!=="bearer"||!o)return;let a=/resource_metadata="([^"]*)"/.exec(e);if(a)try{return new URL(a[1])}catch{return}}async function JDs(t,e,r=fetch){let o=await e9s(t,"oauth-protected-resource",r,{protocolVersion:e?.protocolVersion,metadataUrl:e?.resourceMetadataUrl});if(!o||o.status===404)throw new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!o.ok)throw new Error(`HTTP ${o.status} trying to load well-known OAuth protected resource metadata.`);return r8n.parse(await o.json())}async function QQt(t,e,r=fetch){try{return await r(t,{headers:e})}catch(o){if(o instanceof TypeError)return e?QQt(t,void 0,r):void 0;throw o}}function XDs(t,e="",r={}){return e.endsWith("/")&&(e=e.slice(0,-1)),r.prependPathname?`${e}/.well-known/${t}`:`/.well-known/${t}${e}`}async function f8n(t,e,r=fetch){return await QQt(t,{"MCP-Protocol-Version":e},r)}function ZDs(t,e){return!t||t.status>=400&&t.status<500&&e!=="/"}async function e9s(t,e,r,o){var s,a;let i=new URL(t),n=(s=o?.protocolVersion)!==null&&s!==void 0?s:qie,c;if(o?.metadataUrl)c=new URL(o.metadataUrl);else{let f=XDs(e,i.pathname);c=new URL(f,(a=o?.metadataServerUrl)!==null&&a!==void 0?a:i),c.search=i.search}let u=await f8n(c,n,r);if(!o?.metadataUrl&&ZDs(u,i.pathname)){let f=new URL(`/.well-known/${e}`,i);u=await f8n(f,n,r)}return u}function t9s(t){let e=typeof t=="string"?new URL(t):t,r=e.pathname!=="/",o=[];if(!r)return o.push({url:new URL("/.well-known/oauth-authorization-server",e.origin),type:"oauth"}),o.push({url:new URL("/.well-known/openid-configuration",e.origin),type:"oidc"}),o;let s=e.pathname;return s.endsWith("/")&&(s=s.slice(0,-1)),o.push({url:new URL(`/.well-known/oauth-authorization-server${s}`,e.origin),type:"oauth"}),o.push({url:new URL("/.well-known/oauth-authorization-server",e.origin),type:"oauth"}),o.push({url:new URL(`/.well-known/openid-configuration${s}`,e.origin),type:"oidc"}),o.push({url:new URL(`${s}/.well-known/openid-configuration`,e.origin),type:"oidc"}),o}async function r9s(t,{fetchFn:e=fetch,protocolVersion:r=qie}={}){var o;let s={"MCP-Protocol-Version":r},a=t9s(t);for(let{url:i,type:n}of a){let c=await QQt(i,s,e);if(c){if(!c.ok){if(c.status>=400&&c.status<500)continue;throw new Error(`HTTP ${c.status} trying to load ${n==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}if(n==="oauth")return kQt.parse(await c.json());{let u=n8n.parse(await c.json());if(!(!((o=u.code_challenge_methods_supported)===null||o===void 0)&&o.includes("S256")))throw new Error(`Incompatible OIDC provider at ${i}: does not support S256 code challenge method required by MCP specification`);return u}}}}async function n9s(t,{metadata:e,clientInformation:r,redirectUrl:o,scope:s,state:a,resource:i}){let n="code",c="S256",u;if(e){if(u=new URL(e.authorization_endpoint),!e.response_types_supported.includes(n))throw new Error(`Incompatible auth server: does not support response type ${n}`);if(!e.code_challenge_methods_supported||!e.code_challenge_methods_supported.includes(c))throw new Error(`Incompatible auth server: does not support code challenge method ${c}`)}else u=new URL("/authorize",t);let f=await BQt(),d=f.code_verifier,p=f.code_challenge;return u.searchParams.set("response_type",n),u.searchParams.set("client_id",r.client_id),u.searchParams.set("code_challenge",p),u.searchParams.set("code_challenge_method",c),u.searchParams.set("redirect_uri",String(o)),a&&u.searchParams.set("state",a),s&&u.searchParams.set("scope",s),s?.includes("offline_access")&&u.searchParams.append("prompt","consent"),i&&u.searchParams.set("resource",i.href),{authorizationUrl:u,codeVerifier:d}}async function qQt(t,{metadata:e,clientInformation:r,authorizationCode:o,codeVerifier:s,redirectUri:a,resource:i,addClientAuthentication:n,fetchFn:c}){var u;let f="authorization_code",d=e?.token_endpoint?new URL(e.token_endpoint):new URL("/token",t);if(e?.grant_types_supported&&!e.grant_types_supported.includes(f))throw new Error(`Incompatible auth server: does not support grant type ${f}`);let p=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"}),h=new URLSearchParams({grant_type:f,code:o,code_verifier:s,redirect_uri:String(a)});if(n)n(p,h,t,e);else{let y=(u=e?.token_endpoint_auth_methods_supported)!==null&&u!==void 0?u:[],g=d8n(r,y);p8n(g,r,p,h)}i&&h.set("resource",i.href);let m=await(c??fetch)(d,{method:"POST",headers:p,body:h});if(!m.ok)throw await FQt(m);return MQt.parse(await m.json())}async function HQt(t,{metadata:e,clientInformation:r,refreshToken:o,resource:s,addClientAuthentication:a,fetchFn:i}){var n;let c="refresh_token",u;if(e){if(u=new URL(e.token_endpoint),e.grant_types_supported&&!e.grant_types_supported.includes(c))throw new Error(`Incompatible auth server: does not support grant type ${c}`)}else u=new URL("/token",t);let f=new Headers({"Content-Type":"application/x-www-form-urlencoded"}),d=new URLSearchParams({grant_type:c,refresh_token:o});if(a)a(f,d,t,e);else{let h=(n=e?.token_endpoint_auth_methods_supported)!==null&&n!==void 0?n:[],m=d8n(r,h);p8n(m,r,f,d)}s&&d.set("resource",s.href);let p=await(i??fetch)(u,{method:"POST",headers:f,body:d});if(!p.ok)throw await FQt(p);return MQt.parse({refresh_token:o,...await p.json()})}async function i9s(t,{metadata:e,clientMetadata:r,fetchFn:o}){let s;if(e){if(!e.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");s=new URL(e.registration_endpoint)}else s=new URL("/register",t);let a=await(o??fetch)(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!a.ok)throw await FQt(a);return o8n.parse(await a.json())}var rb,nJe=j(()=>{t8n();EL();LQt();LQt();c8n();u8n();rb=class extends Error{constructor(e){super(e??"Unauthorized")}}});var VQt,Xie,h8n=j(()=>{e8n();EL();nJe();VQt=class extends Error{constructor(e,r,o){super(`SSE error: ${r}`),this.code=e,this.event=o}},Xie=class{constructor(e,r){this._url=e,this._resourceMetadataUrl=void 0,this._eventSourceInit=r?.eventSourceInit,this._requestInit=r?.requestInit,this._authProvider=r?.authProvider,this._fetch=r?.fetch}async _authThenStart(){var e;if(!this._authProvider)throw new rb("No auth provider");let r;try{r=await TL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})}catch(o){throw(e=this.onerror)===null||e===void 0||e.call(this,o),o}if(r!=="AUTHORIZED")throw new rb;return await this._startOrAuth()}async _commonHeaders(){var e;let r={};if(this._authProvider){let o=await this._authProvider.tokens();o&&(r.Authorization=`Bearer ${o.access_token}`)}return this._protocolVersion&&(r["mcp-protocol-version"]=this._protocolVersion),new Headers({...r,...(e=this._requestInit)===null||e===void 0?void 0:e.headers})}_startOrAuth(){var e,r,o;let s=(o=(r=(e=this===null||this===void 0?void 0:this._eventSourceInit)===null||e===void 0?void 0:e.fetch)!==null&&r!==void 0?r:this._fetch)!==null&&o!==void 0?o:fetch;return new Promise((a,i)=>{this._eventSource=new wj(this._url.href,{...this._eventSourceInit,fetch:async(n,c)=>{let u=await this._commonHeaders();u.set("Accept","text/event-stream");let f=await s(n,{...c,headers:u});return f.status===401&&f.headers.has("www-authenticate")&&(this._resourceMetadataUrl=U3e(f)),f}}),this._abortController=new AbortController,this._eventSource.onerror=n=>{var c;if(n.code===401&&this._authProvider){this._authThenStart().then(a,i);return}let u=new VQt(n.code,n.message,n);i(u),(c=this.onerror)===null||c===void 0||c.call(this,u)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",n=>{var c;let u=n;try{if(this._endpoint=new URL(u.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(f){i(f),(c=this.onerror)===null||c===void 0||c.call(this,f),this.close();return}a()}),this._eventSource.onmessage=n=>{var c,u;let f=n,d;try{d=bL.parse(JSON.parse(f.data))}catch(p){(c=this.onerror)===null||c===void 0||c.call(this,p);return}(u=this.onmessage)===null||u===void 0||u.call(this,d)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(e){if(!this._authProvider)throw new rb("No auth provider");if(await TL(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new rb("Failed to authorize")}async close(){var e,r,o;(e=this._abortController)===null||e===void 0||e.abort(),(r=this._eventSource)===null||r===void 0||r.close(),(o=this.onclose)===null||o===void 0||o.call(this)}async send(e){var r,o,s;if(!this._endpoint)throw new Error("Not connected");try{let a=await this._commonHeaders();a.set("content-type","application/json");let i={...this._requestInit,method:"POST",headers:a,body:JSON.stringify(e),signal:(r=this._abortController)===null||r===void 0?void 0:r.signal},n=await((o=this._fetch)!==null&&o!==void 0?o:fetch)(this._endpoint,i);if(!n.ok){if(n.status===401&&this._authProvider){if(this._resourceMetadataUrl=U3e(n),await TL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new rb;return this.send(e)}let c=await n.text().catch(()=>null);throw new Error(`Error POSTing to endpoint (HTTP ${n.status}): ${c}`)}}catch(a){throw(s=this.onerror)===null||s===void 0||s.call(this,a),a}}setProtocolVersion(e){this._protocolVersion=e}}});var iJe,m8n=j(()=>{xQt();iJe=class extends TransformStream{constructor({onError:e,onRetry:r,onComment:o}={}){let s;super({start(a){s=ZYe({onEvent:i=>{a.enqueue(i)},onError(i){e==="terminate"?a.error(i):typeof e=="function"&&e(i)},onRetry:r,onComment:o})},transform(a){s.feed(a)}})}}});var o9s,F3e,wL,GQt=j(()=>{EL();nJe();m8n();o9s={initialReconnectionDelay:1e3,maxReconnectionDelay:3e4,reconnectionDelayGrowFactor:1.5,maxRetries:2},F3e=class extends Error{constructor(e,r){super(`Streamable HTTP error: ${r}`),this.code=e}},wL=class{constructor(e,r){var o;this._url=e,this._resourceMetadataUrl=void 0,this._requestInit=r?.requestInit,this._authProvider=r?.authProvider,this._fetch=r?.fetch,this._sessionId=r?.sessionId,this._reconnectionOptions=(o=r?.reconnectionOptions)!==null&&o!==void 0?o:o9s}async _authThenStart(){var e;if(!this._authProvider)throw new rb("No auth provider");let r;try{r=await TL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})}catch(o){throw(e=this.onerror)===null||e===void 0||e.call(this,o),o}if(r!=="AUTHORIZED")throw new rb;return await this._startOrAuthSse({resumptionToken:void 0})}async _commonHeaders(){var e;let r={};if(this._authProvider){let s=await this._authProvider.tokens();s&&(r.Authorization=`Bearer ${s.access_token}`)}this._sessionId&&(r["mcp-session-id"]=this._sessionId),this._protocolVersion&&(r["mcp-protocol-version"]=this._protocolVersion);let o=this._normalizeHeaders((e=this._requestInit)===null||e===void 0?void 0:e.headers);return new Headers({...r,...o})}async _startOrAuthSse(e){var r,o,s;let{resumptionToken:a}=e;try{let i=await this._commonHeaders();i.set("Accept","text/event-stream"),a&&i.set("last-event-id",a);let n=await((r=this._fetch)!==null&&r!==void 0?r:fetch)(this._url,{method:"GET",headers:i,signal:(o=this._abortController)===null||o===void 0?void 0:o.signal});if(!n.ok){if(n.status===401&&this._authProvider)return await this._authThenStart();if(n.status===405)return;throw new F3e(n.status,`Failed to open SSE stream: ${n.statusText}`)}this._handleSseStream(n.body,e,!0)}catch(i){throw(s=this.onerror)===null||s===void 0||s.call(this,i),i}}_getNextReconnectionDelay(e){let r=this._reconnectionOptions.initialReconnectionDelay,o=this._reconnectionOptions.reconnectionDelayGrowFactor,s=this._reconnectionOptions.maxReconnectionDelay;return Math.min(r*Math.pow(o,e),s)}_normalizeHeaders(e){return e?e instanceof Headers?Object.fromEntries(e.entries()):Array.isArray(e)?Object.fromEntries(e):{...e}:{}}_scheduleReconnection(e,r=0){var o;let s=this._reconnectionOptions.maxRetries;if(s>0&&r>=s){(o=this.onerror)===null||o===void 0||o.call(this,new Error(`Maximum reconnection attempts (${s}) exceeded.`));return}let a=this._getNextReconnectionDelay(r);setTimeout(()=>{this._startOrAuthSse(e).catch(i=>{var n;(n=this.onerror)===null||n===void 0||n.call(this,new Error(`Failed to reconnect SSE stream: ${i instanceof Error?i.message:String(i)}`)),this._scheduleReconnection(e,r+1)})},a)}_handleSseStream(e,r,o){if(!e)return;let{onresumptiontoken:s,replayMessageId:a}=r,i;(async()=>{var c,u,f,d;try{let p=e.pipeThrough(new TextDecoderStream).pipeThrough(new iJe).getReader();for(;;){let{value:h,done:m}=await p.read();if(m)break;if(h.id&&(i=h.id,s?.(h.id)),!h.event||h.event==="message")try{let y=bL.parse(JSON.parse(h.data));a!==void 0&&y3e(y)&&(y.id=a),(c=this.onmessage)===null||c===void 0||c.call(this,y)}catch(y){(u=this.onerror)===null||u===void 0||u.call(this,y)}}}catch(p){if((f=this.onerror)===null||f===void 0||f.call(this,new Error(`SSE stream disconnected: ${p}`)),o&&this._abortController&&!this._abortController.signal.aborted)try{this._scheduleReconnection({resumptionToken:i,onresumptiontoken:s,replayMessageId:a},0)}catch(h){(d=this.onerror)===null||d===void 0||d.call(this,new Error(`Failed to reconnect: ${h instanceof Error?h.message:String(h)}`))}}})()}async start(){if(this._abortController)throw new Error("StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.");this._abortController=new AbortController}async finishAuth(e){if(!this._authProvider)throw new rb("No auth provider");if(await TL(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new rb("Failed to authorize")}async close(){var e,r;(e=this._abortController)===null||e===void 0||e.abort(),(r=this.onclose)===null||r===void 0||r.call(this)}async send(e,r){var o,s,a,i;try{let{resumptionToken:n,onresumptiontoken:c}=r||{};if(n){this._startOrAuthSse({resumptionToken:n,replayMessageId:xYe(e)?e.id:void 0}).catch(g=>{var A;return(A=this.onerror)===null||A===void 0?void 0:A.call(this,g)});return}let u=await this._commonHeaders();u.set("content-type","application/json"),u.set("accept","application/json, text/event-stream");let f={...this._requestInit,method:"POST",headers:u,body:JSON.stringify(e),signal:(o=this._abortController)===null||o===void 0?void 0:o.signal},d=await((s=this._fetch)!==null&&s!==void 0?s:fetch)(this._url,f),p=d.headers.get("mcp-session-id");if(p&&(this._sessionId=p),!d.ok){if(d.status===401&&this._authProvider){if(this._resourceMetadataUrl=U3e(d),await TL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new rb;return this.send(e)}let g=await d.text().catch(()=>null);throw new Error(`Error POSTing to endpoint (HTTP ${d.status}): ${g}`)}if(d.status===202){K6n(e)&&this._startOrAuthSse({resumptionToken:void 0}).catch(g=>{var A;return(A=this.onerror)===null||A===void 0?void 0:A.call(this,g)});return}let m=(Array.isArray(e)?e:[e]).filter(g=>"method"in g&&"id"in g&&g.id!==void 0).length>0,y=d.headers.get("content-type");if(m)if(y?.includes("text/event-stream"))this._handleSseStream(d.body,{onresumptiontoken:c},!1);else if(y?.includes("application/json")){let g=await d.json(),A=Array.isArray(g)?g.map(v=>bL.parse(v)):[bL.parse(g)];for(let v of A)(a=this.onmessage)===null||a===void 0||a.call(this,v)}else throw new F3e(-1,`Unexpected content type: ${y}`)}catch(n){throw(i=this.onerror)===null||i===void 0||i.call(this,n),n}}get sessionId(){return this._sessionId}async terminateSession(){var e,r,o;if(this._sessionId)try{let s=await this._commonHeaders(),a={...this._requestInit,method:"DELETE",headers:s,signal:(e=this._abortController)===null||e===void 0?void 0:e.signal},i=await((r=this._fetch)!==null&&r!==void 0?r:fetch)(this._url,a);if(!i.ok&&i.status!==405)throw new F3e(i.status,`Failed to terminate session: ${i.statusText}`);this._sessionId=void 0}catch(s){throw(o=this.onerror)===null||o===void 0||o.call(this,s),s}}setProtocolVersion(e){this._protocolVersion=e}get protocolVersion(){return this._protocolVersion}}});import{readFile as s9s}from"node:fs/promises";var Q3e,q3e,Rj,jQt=j(()=>{"use strict";AZ();nJe();Xi();(function(t){t.CLI_CONNECT="cli_connect",t.PING="ping",t.GET_ACTIVE_FILE="get_active_file",t.GET_FILE_CONTENT="get_file_content",t.GET_SELECTED_TEXT="get_selected_text",t.SHOW_DIFF="show_diff"})(Q3e||(Q3e={}));q3e=class extends Error{code;constructor(e,r){super(r),this.code=e}},Rj=class{_websocket;_url;_authProvider;_websocketOptions;_WebSocket;_protocolVersion;_isClosed=!1;_specialIds=new Set;onclose;onerror;onmessage;sessionId;constructor(e,r){this._url=e,this._authProvider=r?.authProvider,this._websocketOptions=r?.websocketOptions,this._WebSocket=r?.WebSocket||mB.default}async start(){if(this._isClosed)throw new Error(N.t("websocketClient.errors.transportClosed"));let e=null;if(this._authProvider)try{let s=await this._authProvider.tokens();s?.access_token&&(e=s.access_token)}catch(s){try{let a=await this._authProvider.clientInformation();if(a){let i=await this._authProvider.tokens();if(i?.refresh_token){let n=await HQt(this._url,{clientInformation:a,refreshToken:i.refresh_token,addClientAuthentication:this._authProvider.addClientAuthentication});await this._authProvider.saveTokens(n),n?.access_token&&(e=n.access_token)}}}catch{if(this._authProvider.redirectToAuthorization){let i=this._authProvider.redirectUrl;throw await this._authProvider.redirectToAuthorization(typeof i=="string"?new URL(i):i),new Error(N.t("websocketClient.errors.unauthorizedOAuth"))}throw s}}let r={...this._websocketOptions?.headers};e&&(r.Authorization=`Bearer ${e}`),this._protocolVersion&&(r["MCP-Protocol-Version"]=this._protocolVersion);let o=new URL(this._url.toString());return o.protocol==="http:"?o.protocol="ws:":o.protocol==="https:"&&(o.protocol="wss:"),new Promise((s,a)=>{try{let i={headers:r};this._websocket=new this._WebSocket(o.toString(),i),this._websocket.on("open",()=>{s()}),this._websocket.on("error",n=>{let c=n.code!==void 0?n.code:void 0;a(new q3e(c,`WebSocket error: ${n.message}`))}),this._websocket.on("message",async n=>{try{let c=n.toString(),u=JSON.parse(c);if(this._specialIds.has(Number(u.id))||u.type==="welcome")return;this.onmessage?.(await this._transformResponse(u))}catch(c){this.onerror?.(new Error(`Failed to parse WebSocket message: ${c instanceof Error?c.message:String(c)}`))}}),this._websocket.on("close",()=>{this._isClosed||(this._isClosed=!0,this.onclose?.())})}catch(i){a(new q3e(void 0,`Failed to create WebSocket: ${i}`))}})}async finishAuth(e){if(!this._authProvider)throw new Error(N.t("websocketClient.errors.noAuthProvider"));try{let r=await this._authProvider.clientInformation();if(r){let o=this._authProvider.redirectUrl.toString(),s=await qQt(this._url,{clientInformation:r,authorizationCode:e,codeVerifier:await this._authProvider.codeVerifier(),redirectUri:o,addClientAuthentication:this._authProvider.addClientAuthentication});await this._authProvider.saveTokens(s)}else throw new Error(N.t("websocketClient.errors.clientInfoNotAvailable"))}catch(r){throw new Error(`Failed to exchange authorization code for access token: ${r}`)}}async close(){this._isClosed=!0,this._websocket&&this._websocket.readyState===mB.default.OPEN?this._websocket.close():this.onclose?.()}async send(e){if(this._isClosed)throw new Error(N.t("websocketClient.errors.transportClosed"));if(!this._websocket)throw new Error(N.t("websocketClient.errors.transportNotStarted"));if(this._websocket.readyState!==mB.default.OPEN)throw new Error(N.t("websocketClient.errors.websocketNotOpen"));try{if(e.method==="notifications/initialized")return;let r=await this._transformRequest(e),o=JSON.stringify(r);this._websocket.send(o)}catch(r){throw new q3e(void 0,`Failed to send message: ${r instanceof Error?r.message:String(r)}`)}}async _transformRequest(e){if(e.method==="initialize")return{type:Q3e.CLI_CONNECT,id:e.id,timestamp:Date.now(),payload:{clientInfo:{version:"0.3.14-beta.2",platform:process.platform,workingDirectory:process.cwd()}}};if(e.method==="tools/call"&&e.params?.name==="openDiff"){let{arguments:r}=e.params||{},{filePath:o,newContent:s}=r||{};return{type:Q3e.SHOW_DIFF,id:e.id,timestamp:Date.now(),payload:{originalText:await s9s(o,"utf8"),modifiedText:s}}}return e}async _transformResponse(e){if(e.type==="connection_ack")return{jsonrpc:"2.0",id:e.id,result:{protocolVersion:"2024-11-05",capabilities:{logging:{},prompts:{},resources:{},tools:{}},serverInfo:{name:"JetBrains Plugin Server",title:"JetBrains Plugin Server",version:"1.0.0"}}};if(e.type==="selection_changed"){let r=await this._getSelectedText();return{jsonrpc:"2.0",method:"ide/contextUpdate",params:{workspaceState:{openFiles:[{path:e.payload.fileName,timestamp:Date.now(),isActive:!0,selectedText:r}]}}}}return e.type==="active_file_changed"?{jsonrpc:"2.0",method:"ide/contextUpdate",params:{workspaceState:{openFiles:[{path:e.payload.fileName,timestamp:Date.now(),isActive:!0}]}}}:e}async _getSelectedText(){if(!this._websocket)return"";let e=performance.now();return this._specialIds.add(e),this._websocket.send(JSON.stringify({type:Q3e.GET_SELECTED_TEXT,id:e,timestamp:Date.now()})),new Promise((r,o)=>{this._websocket.once("message",s=>{try{let a=JSON.parse(s.toString());Number(a.id)===e&&(this._specialIds.delete(e),a.payload.success?r(a.payload.data.text):o(a.payload.error))}catch{r("")}})})}setProtocolVersion(e){this._protocolVersion=e}}});var g8n,oJe,y8n=j(()=>{"use strict";g8n=we(e0e(),1);Xi();oJe=class{config;auth;redirectUrl="";clientMetadata={client_name:"iFlow CLI (Google ADC)",redirect_uris:[],grant_types:[],response_types:[],token_endpoint_auth_method:"none"};_clientInformation;constructor(e){this.config=e;let r=this.config?.oauth?.scopes;if(!r||r.length===0)throw new Error(N.t("mcp.auth.scopesRequired"));this.auth=new g8n.GoogleAuth({scopes:r})}clientInformation(){return this._clientInformation}saveClientInformation(e){this._clientInformation=e}async tokens(){let r=await(await this.auth.getClient()).getAccessToken();if(!r.token){console.error(N.t("mcp.auth.failedToGetAccessToken"));return}return{access_token:r.token,token_type:"Bearer"}}saveTokens(e){}redirectToAuthorization(e){}saveCodeVerifier(e){}codeVerifier(){return""}}});import{execFile as a9s}from"node:child_process";import{promisify as c9s}from"node:util";import{platform as l9s}from"node:os";import{URL as u9s}from"node:url";function f9s(t){let e;try{e=new u9s(t)}catch{throw new Error(`Invalid URL: ${t}`)}if(e.protocol!=="http:"&&e.protocol!=="https:")throw new Error(`Unsafe protocol: ${e.protocol}. Only HTTP and HTTPS are allowed.`);if(/[\r\n\x00-\x1f]/.test(t))throw new Error("URL contains invalid characters")}async function v8n(t){f9s(t);let e=l9s(),r,o;switch(e){case"darwin":r="open",o=[t];break;case"win32":r="powershell.exe",o=["-NoProfile","-NonInteractive","-WindowStyle","Hidden","-Command",`Start-Process '${t.replace(/'/g,"''")}'`];break;case"linux":case"freebsd":case"openbsd":r="xdg-open",o=[t];break;default:throw new Error(`Unsupported platform: ${e}`)}let s={env:{...process.env,SHELL:void 0},detached:!0,stdio:"ignore"};try{await A8n(r,o,s)}catch(a){if((e==="linux"||e==="freebsd"||e==="openbsd")&&r==="xdg-open"){let i=["gnome-open","kde-open","firefox","chromium","google-chrome"];for(let n of i)try{await A8n(n,[t],s);return}catch{continue}}throw new Error(`Failed to open browser: ${a instanceof Error?a.message:"Unknown error"}`)}}var A8n,b8n=j(()=>{"use strict";A8n=c9s(a9s)});function ma(t){return t instanceof Error&&"code"in t}function $r(t){if(t instanceof Error)return t.message;try{return String(t)}catch{return"Failed to get error details"}}function $Qt(t){if(t&&typeof t=="object"&&"response"in t){let r=d9s(t);if(r.error&&r.error.message&&r.error.code)switch(r.error.code){case 400:return new aJe(r.error.message);case 401:return new IL(r.error.message);case 403:return new sJe(r.error.message);default:}}return t}function d9s(t){return typeof t.response?.data=="string"?JSON.parse(t.response?.data):t.response?.data}var sJe,IL,aJe,Ed=j(()=>{"use strict";sJe=class extends Error{},IL=class extends Error{},aJe=class extends Error{}});import{promises as Zie}from"node:fs";import*as cJe from"node:path";import*as E8n from"node:os";var q0,lJe=j(()=>{"use strict";Ed();Xi();q0=class{static TOKEN_FILE="mcp-oauth-tokens.json";static CONFIG_DIR=".iflow";static getTokenFilePath(){let e=E8n.homedir();return cJe.join(e,this.CONFIG_DIR,this.TOKEN_FILE)}static async ensureConfigDir(){let e=cJe.dirname(this.getTokenFilePath());await Zie.mkdir(e,{recursive:!0})}static async loadTokens(){let e=new Map;try{let r=this.getTokenFilePath(),o=await Zie.readFile(r,"utf-8"),s=JSON.parse(o);for(let a of s)e.set(a.serverName,a)}catch(r){r.code!=="ENOENT"&&console.error(N.t("mcp.tokenStorage.errors.failedToLoadTokens",{error:$r(r)}))}return e}static async saveToken(e,r,o,s,a){await this.ensureConfigDir();let i=await this.loadTokens(),n={serverName:e,token:r,clientId:o,tokenUrl:s,mcpServerUrl:a,updatedAt:Date.now()};i.set(e,n);let c=Array.from(i.values()),u=this.getTokenFilePath();try{await Zie.writeFile(u,JSON.stringify(c,null,2),{mode:384})}catch(f){throw console.error(N.t("mcp.tokenStorage.errors.failedToSaveToken",{error:$r(f)})),f}}static async getToken(e){return(await this.loadTokens()).get(e)||null}static async removeToken(e){let r=await this.loadTokens();if(r.delete(e)){let o=Array.from(r.values()),s=this.getTokenFilePath();try{o.length===0?await Zie.unlink(s):await Zie.writeFile(s,JSON.stringify(o,null,2),{mode:384})}catch(a){console.error(N.t("mcp.tokenStorage.errors.failedToRemoveToken",{error:$r(a)}))}}}static isTokenExpired(e){if(!e.expiresAt)return!1;let r=300*1e3;return Date.now()+r>=e.expiresAt}static async clearAllTokens(){try{let e=this.getTokenFilePath();await Zie.unlink(e)}catch(e){e.code!=="ENOENT"&&console.error(N.t("mcp.tokenStorage.errors.failedToClearTokens",{error:$r(e)}))}}}});var H0,uJe=j(()=>{"use strict";Ed();Xi();H0=class{static buildWellKnownUrls(e){let r=new URL(e),o=`${r.protocol}//${r.host}`;return{protectedResource:new URL("/.well-known/oauth-protected-resource",o).toString(),authorizationServer:new URL("/.well-known/oauth-authorization-server",o).toString()}}static async fetchProtectedResourceMetadata(e){try{let r=await fetch(e);return r.ok?await r.json():null}catch(r){return console.debug(`Failed to fetch protected resource metadata from ${e}: ${$r(r)}`),null}}static async fetchAuthorizationServerMetadata(e){try{let r=await fetch(e);return r.ok?await r.json():null}catch(r){return console.debug(`Failed to fetch authorization server metadata from ${e}: ${$r(r)}`),null}}static metadataToOAuthConfig(e){return{authorizationUrl:e.authorization_endpoint,tokenUrl:e.token_endpoint,scopes:e.scopes_supported||[]}}static async discoverOAuthConfig(e){try{let r=this.buildWellKnownUrls(e),o=await this.fetchProtectedResourceMetadata(r.protectedResource);if(o?.authorization_servers?.length){let a=o.authorization_servers[0],i=new URL("/.well-known/oauth-authorization-server",a).toString(),n=await this.fetchAuthorizationServerMetadata(i);if(n){let c=this.metadataToOAuthConfig(n);return n.registration_endpoint&&console.log(N.t("mcp.oauth.discovery.dynamicRegistrationSupported"),n.registration_endpoint),c}}console.debug(`Trying OAuth discovery fallback at ${r.authorizationServer}`);let s=await this.fetchAuthorizationServerMetadata(r.authorizationServer);if(s){let a=this.metadataToOAuthConfig(s);return s.registration_endpoint&&console.log(N.t("mcp.oauth.discovery.dynamicRegistrationSupported"),s.registration_endpoint),a}return null}catch(r){return console.debug(`Failed to discover OAuth configuration: ${$r(r)}`),null}}static parseWWWAuthenticateHeader(e){let r=e.match(/resource_metadata="([^"]+)"/);return r?r[1]:null}static async discoverOAuthFromWWWAuthenticate(e){let r=this.parseWWWAuthenticateHeader(e);if(!r)return null;console.log(N.t("mcp.oauth.discovery.foundResourceMetadataUri",{uri:r}));let o=await this.fetchProtectedResourceMetadata(r);if(!o?.authorization_servers?.length)return null;let s=o.authorization_servers[0],a=new URL("/.well-known/oauth-authorization-server",s).toString(),i=await this.fetchAuthorizationServerMetadata(a);return i?(console.log(N.t("mcp.oauth.discovery.configDiscoveredFromWwwAuth")),this.metadataToOAuthConfig(i)):null}static extractBaseUrl(e){let r=new URL(e);return`${r.protocol}//${r.host}`}static isSSEEndpoint(e){return e.includes("/sse")||!e.includes("/mcp")}static buildResourceParameter(e){let r=new URL(e);return`${r.protocol}//${r.host}`}}});import*as S8n from"node:http";import*as H3e from"node:crypto";import{URL as WQt}from"node:url";var $E,zQt=j(()=>{"use strict";b8n();lJe();Ed();uJe();Xi();$E=class{static REDIRECT_PORT=7777;static REDIRECT_PATH="/oauth/callback";static HTTP_OK=200;static HTTP_REDIRECT=302;static async registerClient(e,r){let s={client_name:"iFlow CLI MCP Client",redirect_uris:[r.redirectUri||`http://localhost:${this.REDIRECT_PORT}${this.REDIRECT_PATH}`],grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none",code_challenge_method:["S256"],scope:r.scopes?.join(" ")||""},a=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!a.ok){let i=await a.text();throw new Error(N.t("mcp.auth.clientRegistrationFailed",{status:a.status,statusText:a.statusText,error:i}))}return await a.json()}static async discoverOAuthFromMCPServer(e){let r=H0.extractBaseUrl(e);return H0.discoverOAuthConfig(r)}static generatePKCEParams(){let e=H3e.randomBytes(32).toString("base64url"),r=H3e.createHash("sha256").update(e).digest("base64url"),o=H3e.randomBytes(16).toString("base64url");return{codeVerifier:e,codeChallenge:r,state:o}}static async startCallbackServer(e){return new Promise((r,o)=>{let s=S8n.createServer(async(a,i)=>{try{let n=new WQt(a.url,`http://localhost:${this.REDIRECT_PORT}`);if(n.pathname!==this.REDIRECT_PATH){i.writeHead(404),i.end(N.t("mcp.ui.notFound"));return}let c=n.searchParams.get("code"),u=n.searchParams.get("state"),f=n.searchParams.get("error");if(f){i.writeHead(this.HTTP_OK,{"Content-Type":"text/html"}),i.end(`
|
|
901
|
+
`&&o++}}return[e,r]}var XYe,xQt=j(()=>{XYe=class extends Error{constructor(e,r){super(e),this.name="ParseError",this.type=r.type,this.field=r.field,this.value=r.value,this.line=r.line}}});function UDs(t){let e=globalThis.DOMException;return typeof e=="function"?new e(t,"SyntaxError"):new SyntaxError(t)}function _Qt(t){return t instanceof Error?"errors"in t&&Array.isArray(t.errors)?t.errors.map(_Qt).join(", "):"cause"in t&&t.cause instanceof Error?`${t}: ${_Qt(t.cause)}`:t.message:`${t}`}function JIn(t){return{type:t.type,message:t.message,code:t.code,defaultPrevented:t.defaultPrevented,cancelable:t.cancelable,timeStamp:t.timeStamp}}function FDs(){let t="document"in globalThis?globalThis.document:void 0;return t&&typeof t=="object"&&"baseURI"in t&&typeof t.baseURI=="string"?t.baseURI:void 0}var tJe,ZIn,NQt,vc,ug,ip,$O,tb,Tj,Wie,eJe,rJe,_3e,Yie,C3e,CL,zie,Jie,Kie,S3e,C6,CQt,TQt,wQt,XIn,IQt,DQt,x3e,OQt,RQt,wj,e8n=j(()=>{xQt();tJe=class extends Event{constructor(e,r){var o,s;super(e),this.code=(o=r?.code)!=null?o:void 0,this.message=(s=r?.message)!=null?s:void 0}[Symbol.for("nodejs.util.inspect.custom")](e,r,o){return o(JIn(this),r)}[Symbol.for("Deno.customInspect")](e,r){return e(JIn(this),r)}};ZIn=t=>{throw TypeError(t)},NQt=(t,e,r)=>e.has(t)||ZIn("Cannot "+r),vc=(t,e,r)=>(NQt(t,e,"read from private field"),r?r.call(t):e.get(t)),ug=(t,e,r)=>e.has(t)?ZIn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),ip=(t,e,r,o)=>(NQt(t,e,"write to private field"),e.set(t,r),r),$O=(t,e,r)=>(NQt(t,e,"access private method"),r),wj=class extends EventTarget{constructor(e,r){var o,s;super(),ug(this,C6),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,ug(this,tb),ug(this,Tj),ug(this,Wie),ug(this,eJe),ug(this,rJe),ug(this,_3e),ug(this,Yie),ug(this,C3e,null),ug(this,CL),ug(this,zie),ug(this,Jie,null),ug(this,Kie,null),ug(this,S3e,null),ug(this,TQt,async a=>{var i;vc(this,zie).reset();let{body:n,redirected:c,status:u,headers:f}=a;if(u===204){$O(this,C6,x3e).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(c?ip(this,Wie,new URL(a.url)):ip(this,Wie,void 0),u!==200){$O(this,C6,x3e).call(this,`Non-200 status code (${u})`,u);return}if(!(f.get("content-type")||"").startsWith("text/event-stream")){$O(this,C6,x3e).call(this,'Invalid content type, expected "text/event-stream"',u);return}if(vc(this,tb)===this.CLOSED)return;ip(this,tb,this.OPEN);let d=new Event("open");if((i=vc(this,S3e))==null||i.call(this,d),this.dispatchEvent(d),typeof n!="object"||!n||!("getReader"in n)){$O(this,C6,x3e).call(this,"Invalid response body, expected a web ReadableStream",u),this.close();return}let p=new TextDecoder,h=n.getReader(),m=!0;do{let{done:y,value:g}=await h.read();g&&vc(this,zie).feed(p.decode(g,{stream:!y})),y&&(m=!1,vc(this,zie).reset(),$O(this,C6,OQt).call(this))}while(m)}),ug(this,wQt,a=>{ip(this,CL,void 0),!(a.name==="AbortError"||a.type==="aborted")&&$O(this,C6,OQt).call(this,_Qt(a))}),ug(this,IQt,a=>{typeof a.id=="string"&&ip(this,C3e,a.id);let i=new MessageEvent(a.event||"message",{data:a.data,origin:vc(this,Wie)?vc(this,Wie).origin:vc(this,Tj).origin,lastEventId:a.id||""});vc(this,Kie)&&(!a.event||a.event==="message")&&vc(this,Kie).call(this,i),this.dispatchEvent(i)}),ug(this,DQt,a=>{ip(this,_3e,a)}),ug(this,RQt,()=>{ip(this,Yie,void 0),vc(this,tb)===this.CONNECTING&&$O(this,C6,CQt).call(this)});try{if(e instanceof URL)ip(this,Tj,e);else if(typeof e=="string")ip(this,Tj,new URL(e,FDs()));else throw new Error("Invalid URL")}catch{throw UDs("An invalid or illegal string was specified")}ip(this,zie,ZYe({onEvent:vc(this,IQt),onRetry:vc(this,DQt)})),ip(this,tb,this.CONNECTING),ip(this,_3e,3e3),ip(this,rJe,(o=r?.fetch)!=null?o:globalThis.fetch),ip(this,eJe,(s=r?.withCredentials)!=null?s:!1),$O(this,C6,CQt).call(this)}get readyState(){return vc(this,tb)}get url(){return vc(this,Tj).href}get withCredentials(){return vc(this,eJe)}get onerror(){return vc(this,Jie)}set onerror(e){ip(this,Jie,e)}get onmessage(){return vc(this,Kie)}set onmessage(e){ip(this,Kie,e)}get onopen(){return vc(this,S3e)}set onopen(e){ip(this,S3e,e)}addEventListener(e,r,o){let s=r;super.addEventListener(e,s,o)}removeEventListener(e,r,o){let s=r;super.removeEventListener(e,s,o)}close(){vc(this,Yie)&&clearTimeout(vc(this,Yie)),vc(this,tb)!==this.CLOSED&&(vc(this,CL)&&vc(this,CL).abort(),ip(this,tb,this.CLOSED),ip(this,CL,void 0))}};tb=new WeakMap,Tj=new WeakMap,Wie=new WeakMap,eJe=new WeakMap,rJe=new WeakMap,_3e=new WeakMap,Yie=new WeakMap,C3e=new WeakMap,CL=new WeakMap,zie=new WeakMap,Jie=new WeakMap,Kie=new WeakMap,S3e=new WeakMap,C6=new WeakSet,CQt=function(){ip(this,tb,this.CONNECTING),ip(this,CL,new AbortController),vc(this,rJe)(vc(this,Tj),$O(this,C6,XIn).call(this)).then(vc(this,TQt)).catch(vc(this,wQt))},TQt=new WeakMap,wQt=new WeakMap,XIn=function(){var t;let e={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...vc(this,C3e)?{"Last-Event-ID":vc(this,C3e)}:void 0},cache:"no-store",signal:(t=vc(this,CL))==null?void 0:t.signal};return"window"in globalThis&&(e.credentials=this.withCredentials?"include":"same-origin"),e},IQt=new WeakMap,DQt=new WeakMap,x3e=function(t,e){var r;vc(this,tb)!==this.CLOSED&&ip(this,tb,this.CLOSED);let o=new tJe("error",{code:e,message:t});(r=vc(this,Jie))==null||r.call(this,o),this.dispatchEvent(o)},OQt=function(t,e){var r;if(vc(this,tb)===this.CLOSED)return;ip(this,tb,this.CONNECTING);let o=new tJe("error",{code:e,message:t});(r=vc(this,Jie))==null||r.call(this,o),this.dispatchEvent(o),ip(this,Yie,setTimeout(vc(this,RQt),vc(this,_3e)))},RQt=new WeakMap,wj.CONNECTING=0,wj.OPEN=1,wj.CLOSED=2});async function QDs(t){return(await PQt).getRandomValues(new Uint8Array(t))}async function qDs(t){let e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",r="",o=await QDs(t);for(let s=0;s<t;s++){let a=o[s]%e.length;r+=e[a]}return r}async function HDs(t){return await qDs(t)}async function VDs(t){let e=await(await PQt).subtle.digest("SHA-256",new TextEncoder().encode(t));return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function BQt(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;let e=await HDs(t),r=await VDs(e);return{code_verifier:e,code_challenge:r}}var PQt,t8n=j(()=>{PQt=globalThis.crypto?.webcrypto??globalThis.crypto??import("node:crypto").then(t=>t.webcrypto)});var Q0,r8n,kQt,GDs,n8n,MQt,i8n,jDs,$Ds,o8n,n3l,i3l,LQt=j(()=>{vL();Q0=re.string().url().superRefine((t,e)=>{if(!URL.canParse(t))return e.addIssue({code:re.ZodIssueCode.custom,message:"URL must be parseable",fatal:!0}),re.NEVER}).refine(t=>{let e=new URL(t);return e.protocol!=="javascript:"&&e.protocol!=="data:"&&e.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),r8n=re.object({resource:re.string().url(),authorization_servers:re.array(Q0).optional(),jwks_uri:re.string().url().optional(),scopes_supported:re.array(re.string()).optional(),bearer_methods_supported:re.array(re.string()).optional(),resource_signing_alg_values_supported:re.array(re.string()).optional(),resource_name:re.string().optional(),resource_documentation:re.string().optional(),resource_policy_uri:re.string().url().optional(),resource_tos_uri:re.string().url().optional(),tls_client_certificate_bound_access_tokens:re.boolean().optional(),authorization_details_types_supported:re.array(re.string()).optional(),dpop_signing_alg_values_supported:re.array(re.string()).optional(),dpop_bound_access_tokens_required:re.boolean().optional()}).passthrough(),kQt=re.object({issuer:re.string(),authorization_endpoint:Q0,token_endpoint:Q0,registration_endpoint:Q0.optional(),scopes_supported:re.array(re.string()).optional(),response_types_supported:re.array(re.string()),response_modes_supported:re.array(re.string()).optional(),grant_types_supported:re.array(re.string()).optional(),token_endpoint_auth_methods_supported:re.array(re.string()).optional(),token_endpoint_auth_signing_alg_values_supported:re.array(re.string()).optional(),service_documentation:Q0.optional(),revocation_endpoint:Q0.optional(),revocation_endpoint_auth_methods_supported:re.array(re.string()).optional(),revocation_endpoint_auth_signing_alg_values_supported:re.array(re.string()).optional(),introspection_endpoint:re.string().optional(),introspection_endpoint_auth_methods_supported:re.array(re.string()).optional(),introspection_endpoint_auth_signing_alg_values_supported:re.array(re.string()).optional(),code_challenge_methods_supported:re.array(re.string()).optional()}).passthrough(),GDs=re.object({issuer:re.string(),authorization_endpoint:Q0,token_endpoint:Q0,userinfo_endpoint:Q0.optional(),jwks_uri:Q0,registration_endpoint:Q0.optional(),scopes_supported:re.array(re.string()).optional(),response_types_supported:re.array(re.string()),response_modes_supported:re.array(re.string()).optional(),grant_types_supported:re.array(re.string()).optional(),acr_values_supported:re.array(re.string()).optional(),subject_types_supported:re.array(re.string()),id_token_signing_alg_values_supported:re.array(re.string()),id_token_encryption_alg_values_supported:re.array(re.string()).optional(),id_token_encryption_enc_values_supported:re.array(re.string()).optional(),userinfo_signing_alg_values_supported:re.array(re.string()).optional(),userinfo_encryption_alg_values_supported:re.array(re.string()).optional(),userinfo_encryption_enc_values_supported:re.array(re.string()).optional(),request_object_signing_alg_values_supported:re.array(re.string()).optional(),request_object_encryption_alg_values_supported:re.array(re.string()).optional(),request_object_encryption_enc_values_supported:re.array(re.string()).optional(),token_endpoint_auth_methods_supported:re.array(re.string()).optional(),token_endpoint_auth_signing_alg_values_supported:re.array(re.string()).optional(),display_values_supported:re.array(re.string()).optional(),claim_types_supported:re.array(re.string()).optional(),claims_supported:re.array(re.string()).optional(),service_documentation:re.string().optional(),claims_locales_supported:re.array(re.string()).optional(),ui_locales_supported:re.array(re.string()).optional(),claims_parameter_supported:re.boolean().optional(),request_parameter_supported:re.boolean().optional(),request_uri_parameter_supported:re.boolean().optional(),require_request_uri_registration:re.boolean().optional(),op_policy_uri:Q0.optional(),op_tos_uri:Q0.optional()}).passthrough(),n8n=GDs.merge(kQt.pick({code_challenge_methods_supported:!0})),MQt=re.object({access_token:re.string(),id_token:re.string().optional(),token_type:re.string(),expires_in:re.number().optional(),scope:re.string().optional(),refresh_token:re.string().optional()}).strip(),i8n=re.object({error:re.string(),error_description:re.string().optional(),error_uri:re.string().optional()}),jDs=re.object({redirect_uris:re.array(Q0),token_endpoint_auth_method:re.string().optional(),grant_types:re.array(re.string()).optional(),response_types:re.array(re.string()).optional(),client_name:re.string().optional(),client_uri:Q0.optional(),logo_uri:Q0.optional(),scope:re.string().optional(),contacts:re.array(re.string()).optional(),tos_uri:Q0.optional(),policy_uri:re.string().optional(),jwks_uri:Q0.optional(),jwks:re.any().optional(),software_id:re.string().optional(),software_version:re.string().optional(),software_statement:re.string().optional()}).strip(),$Ds=re.object({client_id:re.string(),client_secret:re.string().optional(),client_id_issued_at:re.number().optional(),client_secret_expires_at:re.number().optional()}).strip(),o8n=jDs.merge($Ds),n3l=re.object({error:re.string(),error_description:re.string().optional()}).strip(),i3l=re.object({token:re.string(),token_type_hint:re.string().optional()}).strip()});function s8n(t){let e=typeof t=="string"?new URL(t):new URL(t.href);return e.hash="",e}function a8n({requestedResource:t,configuredResource:e}){let r=typeof t=="string"?new URL(t):new URL(t.href),o=typeof e=="string"?new URL(e):new URL(e.href);if(r.origin!==o.origin||r.pathname.length<o.pathname.length)return!1;let s=r.pathname.endsWith("/")?r.pathname:r.pathname+"/",a=o.pathname.endsWith("/")?o.pathname:o.pathname+"/";return s.startsWith(a)}var c8n=j(()=>{});var Dm,T3e,Ij,Dj,Oj,w3e,I3e,D3e,WO,O3e,R3e,N3e,P3e,B3e,k3e,M3e,L3e,l8n,u8n=j(()=>{Dm=class extends Error{constructor(e,r){super(e),this.errorUri=r,this.name=this.constructor.name}toResponseObject(){let e={error:this.errorCode,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}get errorCode(){return this.constructor.errorCode}},T3e=class extends Dm{};T3e.errorCode="invalid_request";Ij=class extends Dm{};Ij.errorCode="invalid_client";Dj=class extends Dm{};Dj.errorCode="invalid_grant";Oj=class extends Dm{};Oj.errorCode="unauthorized_client";w3e=class extends Dm{};w3e.errorCode="unsupported_grant_type";I3e=class extends Dm{};I3e.errorCode="invalid_scope";D3e=class extends Dm{};D3e.errorCode="access_denied";WO=class extends Dm{};WO.errorCode="server_error";O3e=class extends Dm{};O3e.errorCode="temporarily_unavailable";R3e=class extends Dm{};R3e.errorCode="unsupported_response_type";N3e=class extends Dm{};N3e.errorCode="unsupported_token_type";P3e=class extends Dm{};P3e.errorCode="invalid_token";B3e=class extends Dm{};B3e.errorCode="method_not_allowed";k3e=class extends Dm{};k3e.errorCode="too_many_requests";M3e=class extends Dm{};M3e.errorCode="invalid_client_metadata";L3e=class extends Dm{};L3e.errorCode="insufficient_scope";l8n={[T3e.errorCode]:T3e,[Ij.errorCode]:Ij,[Dj.errorCode]:Dj,[Oj.errorCode]:Oj,[w3e.errorCode]:w3e,[I3e.errorCode]:I3e,[D3e.errorCode]:D3e,[WO.errorCode]:WO,[O3e.errorCode]:O3e,[R3e.errorCode]:R3e,[N3e.errorCode]:N3e,[P3e.errorCode]:P3e,[B3e.errorCode]:B3e,[k3e.errorCode]:k3e,[M3e.errorCode]:M3e,[L3e.errorCode]:L3e}});function d8n(t,e){let r=t.client_secret!==void 0;return e.length===0?r?"client_secret_post":"none":r&&e.includes("client_secret_basic")?"client_secret_basic":r&&e.includes("client_secret_post")?"client_secret_post":e.includes("none")?"none":r?"client_secret_post":"none"}function p8n(t,e,r,o){let{client_id:s,client_secret:a}=e;switch(t){case"client_secret_basic":WDs(s,a,r);return;case"client_secret_post":zDs(s,a,o);return;case"none":KDs(s,o);return;default:throw new Error(`Unsupported client authentication method: ${t}`)}}function WDs(t,e,r){if(!e)throw new Error("client_secret_basic authentication requires a client_secret");let o=btoa(`${t}:${e}`);r.set("Authorization",`Basic ${o}`)}function zDs(t,e,r){r.set("client_id",t),e&&r.set("client_secret",e)}function KDs(t,e){e.set("client_id",t)}async function FQt(t){let e=t instanceof Response?t.status:void 0,r=t instanceof Response?await t.text():t;try{let o=i8n.parse(JSON.parse(r)),{error:s,error_description:a,error_uri:i}=o,n=l8n[s]||WO;return new n(a||"",i)}catch(o){let s=`${e?`HTTP ${e}: `:""}Invalid OAuth error response: ${o}. Raw body: ${r}`;return new WO(s)}}async function TL(t,e){var r,o;try{return await UQt(t,e)}catch(s){if(s instanceof Ij||s instanceof Oj)return await((r=t.invalidateCredentials)===null||r===void 0?void 0:r.call(t,"all")),await UQt(t,e);if(s instanceof Dj)return await((o=t.invalidateCredentials)===null||o===void 0?void 0:o.call(t,"tokens")),await UQt(t,e);throw s}}async function UQt(t,{serverUrl:e,authorizationCode:r,scope:o,resourceMetadataUrl:s,fetchFn:a}){let i,n;try{i=await JDs(e,{resourceMetadataUrl:s},a),i.authorization_servers&&i.authorization_servers.length>0&&(n=i.authorization_servers[0])}catch{}n||(n=e);let c=await YDs(e,t,i),u=await r9s(n,{fetchFn:a}),f=await Promise.resolve(t.clientInformation());if(!f){if(r!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");if(!t.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");let y=await i9s(n,{metadata:u,clientMetadata:t.clientMetadata,fetchFn:a});await t.saveClientInformation(y),f=y}if(r!==void 0){let y=await t.codeVerifier(),g=await qQt(n,{metadata:u,clientInformation:f,authorizationCode:r,codeVerifier:y,redirectUri:t.redirectUrl,resource:c,addClientAuthentication:t.addClientAuthentication,fetchFn:a});return await t.saveTokens(g),"AUTHORIZED"}let d=await t.tokens();if(d?.refresh_token)try{let y=await HQt(n,{metadata:u,clientInformation:f,refreshToken:d.refresh_token,resource:c,addClientAuthentication:t.addClientAuthentication,fetchFn:a});return await t.saveTokens(y),"AUTHORIZED"}catch(y){if(!(!(y instanceof Dm)||y instanceof WO))throw y}let p=t.state?await t.state():void 0,{authorizationUrl:h,codeVerifier:m}=await n9s(n,{metadata:u,clientInformation:f,state:p,redirectUrl:t.redirectUrl,scope:o||t.clientMetadata.scope,resource:c});return await t.saveCodeVerifier(m),await t.redirectToAuthorization(h),"REDIRECT"}async function YDs(t,e,r){let o=s8n(t);if(e.validateResourceURL)return await e.validateResourceURL(o,r?.resource);if(r){if(!a8n({requestedResource:o,configuredResource:r.resource}))throw new Error(`Protected resource ${r.resource} does not match expected ${o} (or origin)`);return new URL(r.resource)}}function U3e(t){let e=t.headers.get("WWW-Authenticate");if(!e)return;let[r,o]=e.split(" ");if(r.toLowerCase()!=="bearer"||!o)return;let a=/resource_metadata="([^"]*)"/.exec(e);if(a)try{return new URL(a[1])}catch{return}}async function JDs(t,e,r=fetch){let o=await e9s(t,"oauth-protected-resource",r,{protocolVersion:e?.protocolVersion,metadataUrl:e?.resourceMetadataUrl});if(!o||o.status===404)throw new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!o.ok)throw new Error(`HTTP ${o.status} trying to load well-known OAuth protected resource metadata.`);return r8n.parse(await o.json())}async function QQt(t,e,r=fetch){try{return await r(t,{headers:e})}catch(o){if(o instanceof TypeError)return e?QQt(t,void 0,r):void 0;throw o}}function XDs(t,e="",r={}){return e.endsWith("/")&&(e=e.slice(0,-1)),r.prependPathname?`${e}/.well-known/${t}`:`/.well-known/${t}${e}`}async function f8n(t,e,r=fetch){return await QQt(t,{"MCP-Protocol-Version":e},r)}function ZDs(t,e){return!t||t.status>=400&&t.status<500&&e!=="/"}async function e9s(t,e,r,o){var s,a;let i=new URL(t),n=(s=o?.protocolVersion)!==null&&s!==void 0?s:qie,c;if(o?.metadataUrl)c=new URL(o.metadataUrl);else{let f=XDs(e,i.pathname);c=new URL(f,(a=o?.metadataServerUrl)!==null&&a!==void 0?a:i),c.search=i.search}let u=await f8n(c,n,r);if(!o?.metadataUrl&&ZDs(u,i.pathname)){let f=new URL(`/.well-known/${e}`,i);u=await f8n(f,n,r)}return u}function t9s(t){let e=typeof t=="string"?new URL(t):t,r=e.pathname!=="/",o=[];if(!r)return o.push({url:new URL("/.well-known/oauth-authorization-server",e.origin),type:"oauth"}),o.push({url:new URL("/.well-known/openid-configuration",e.origin),type:"oidc"}),o;let s=e.pathname;return s.endsWith("/")&&(s=s.slice(0,-1)),o.push({url:new URL(`/.well-known/oauth-authorization-server${s}`,e.origin),type:"oauth"}),o.push({url:new URL("/.well-known/oauth-authorization-server",e.origin),type:"oauth"}),o.push({url:new URL(`/.well-known/openid-configuration${s}`,e.origin),type:"oidc"}),o.push({url:new URL(`${s}/.well-known/openid-configuration`,e.origin),type:"oidc"}),o}async function r9s(t,{fetchFn:e=fetch,protocolVersion:r=qie}={}){var o;let s={"MCP-Protocol-Version":r},a=t9s(t);for(let{url:i,type:n}of a){let c=await QQt(i,s,e);if(c){if(!c.ok){if(c.status>=400&&c.status<500)continue;throw new Error(`HTTP ${c.status} trying to load ${n==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}if(n==="oauth")return kQt.parse(await c.json());{let u=n8n.parse(await c.json());if(!(!((o=u.code_challenge_methods_supported)===null||o===void 0)&&o.includes("S256")))throw new Error(`Incompatible OIDC provider at ${i}: does not support S256 code challenge method required by MCP specification`);return u}}}}async function n9s(t,{metadata:e,clientInformation:r,redirectUrl:o,scope:s,state:a,resource:i}){let n="code",c="S256",u;if(e){if(u=new URL(e.authorization_endpoint),!e.response_types_supported.includes(n))throw new Error(`Incompatible auth server: does not support response type ${n}`);if(!e.code_challenge_methods_supported||!e.code_challenge_methods_supported.includes(c))throw new Error(`Incompatible auth server: does not support code challenge method ${c}`)}else u=new URL("/authorize",t);let f=await BQt(),d=f.code_verifier,p=f.code_challenge;return u.searchParams.set("response_type",n),u.searchParams.set("client_id",r.client_id),u.searchParams.set("code_challenge",p),u.searchParams.set("code_challenge_method",c),u.searchParams.set("redirect_uri",String(o)),a&&u.searchParams.set("state",a),s&&u.searchParams.set("scope",s),s?.includes("offline_access")&&u.searchParams.append("prompt","consent"),i&&u.searchParams.set("resource",i.href),{authorizationUrl:u,codeVerifier:d}}async function qQt(t,{metadata:e,clientInformation:r,authorizationCode:o,codeVerifier:s,redirectUri:a,resource:i,addClientAuthentication:n,fetchFn:c}){var u;let f="authorization_code",d=e?.token_endpoint?new URL(e.token_endpoint):new URL("/token",t);if(e?.grant_types_supported&&!e.grant_types_supported.includes(f))throw new Error(`Incompatible auth server: does not support grant type ${f}`);let p=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"}),h=new URLSearchParams({grant_type:f,code:o,code_verifier:s,redirect_uri:String(a)});if(n)n(p,h,t,e);else{let y=(u=e?.token_endpoint_auth_methods_supported)!==null&&u!==void 0?u:[],g=d8n(r,y);p8n(g,r,p,h)}i&&h.set("resource",i.href);let m=await(c??fetch)(d,{method:"POST",headers:p,body:h});if(!m.ok)throw await FQt(m);return MQt.parse(await m.json())}async function HQt(t,{metadata:e,clientInformation:r,refreshToken:o,resource:s,addClientAuthentication:a,fetchFn:i}){var n;let c="refresh_token",u;if(e){if(u=new URL(e.token_endpoint),e.grant_types_supported&&!e.grant_types_supported.includes(c))throw new Error(`Incompatible auth server: does not support grant type ${c}`)}else u=new URL("/token",t);let f=new Headers({"Content-Type":"application/x-www-form-urlencoded"}),d=new URLSearchParams({grant_type:c,refresh_token:o});if(a)a(f,d,t,e);else{let h=(n=e?.token_endpoint_auth_methods_supported)!==null&&n!==void 0?n:[],m=d8n(r,h);p8n(m,r,f,d)}s&&d.set("resource",s.href);let p=await(i??fetch)(u,{method:"POST",headers:f,body:d});if(!p.ok)throw await FQt(p);return MQt.parse({refresh_token:o,...await p.json()})}async function i9s(t,{metadata:e,clientMetadata:r,fetchFn:o}){let s;if(e){if(!e.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");s=new URL(e.registration_endpoint)}else s=new URL("/register",t);let a=await(o??fetch)(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!a.ok)throw await FQt(a);return o8n.parse(await a.json())}var rb,nJe=j(()=>{t8n();EL();LQt();LQt();c8n();u8n();rb=class extends Error{constructor(e){super(e??"Unauthorized")}}});var VQt,Xie,h8n=j(()=>{e8n();EL();nJe();VQt=class extends Error{constructor(e,r,o){super(`SSE error: ${r}`),this.code=e,this.event=o}},Xie=class{constructor(e,r){this._url=e,this._resourceMetadataUrl=void 0,this._eventSourceInit=r?.eventSourceInit,this._requestInit=r?.requestInit,this._authProvider=r?.authProvider,this._fetch=r?.fetch}async _authThenStart(){var e;if(!this._authProvider)throw new rb("No auth provider");let r;try{r=await TL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})}catch(o){throw(e=this.onerror)===null||e===void 0||e.call(this,o),o}if(r!=="AUTHORIZED")throw new rb;return await this._startOrAuth()}async _commonHeaders(){var e;let r={};if(this._authProvider){let o=await this._authProvider.tokens();o&&(r.Authorization=`Bearer ${o.access_token}`)}return this._protocolVersion&&(r["mcp-protocol-version"]=this._protocolVersion),new Headers({...r,...(e=this._requestInit)===null||e===void 0?void 0:e.headers})}_startOrAuth(){var e,r,o;let s=(o=(r=(e=this===null||this===void 0?void 0:this._eventSourceInit)===null||e===void 0?void 0:e.fetch)!==null&&r!==void 0?r:this._fetch)!==null&&o!==void 0?o:fetch;return new Promise((a,i)=>{this._eventSource=new wj(this._url.href,{...this._eventSourceInit,fetch:async(n,c)=>{let u=await this._commonHeaders();u.set("Accept","text/event-stream");let f=await s(n,{...c,headers:u});return f.status===401&&f.headers.has("www-authenticate")&&(this._resourceMetadataUrl=U3e(f)),f}}),this._abortController=new AbortController,this._eventSource.onerror=n=>{var c;if(n.code===401&&this._authProvider){this._authThenStart().then(a,i);return}let u=new VQt(n.code,n.message,n);i(u),(c=this.onerror)===null||c===void 0||c.call(this,u)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",n=>{var c;let u=n;try{if(this._endpoint=new URL(u.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(f){i(f),(c=this.onerror)===null||c===void 0||c.call(this,f),this.close();return}a()}),this._eventSource.onmessage=n=>{var c,u;let f=n,d;try{d=bL.parse(JSON.parse(f.data))}catch(p){(c=this.onerror)===null||c===void 0||c.call(this,p);return}(u=this.onmessage)===null||u===void 0||u.call(this,d)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(e){if(!this._authProvider)throw new rb("No auth provider");if(await TL(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new rb("Failed to authorize")}async close(){var e,r,o;(e=this._abortController)===null||e===void 0||e.abort(),(r=this._eventSource)===null||r===void 0||r.close(),(o=this.onclose)===null||o===void 0||o.call(this)}async send(e){var r,o,s;if(!this._endpoint)throw new Error("Not connected");try{let a=await this._commonHeaders();a.set("content-type","application/json");let i={...this._requestInit,method:"POST",headers:a,body:JSON.stringify(e),signal:(r=this._abortController)===null||r===void 0?void 0:r.signal},n=await((o=this._fetch)!==null&&o!==void 0?o:fetch)(this._endpoint,i);if(!n.ok){if(n.status===401&&this._authProvider){if(this._resourceMetadataUrl=U3e(n),await TL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new rb;return this.send(e)}let c=await n.text().catch(()=>null);throw new Error(`Error POSTing to endpoint (HTTP ${n.status}): ${c}`)}}catch(a){throw(s=this.onerror)===null||s===void 0||s.call(this,a),a}}setProtocolVersion(e){this._protocolVersion=e}}});var iJe,m8n=j(()=>{xQt();iJe=class extends TransformStream{constructor({onError:e,onRetry:r,onComment:o}={}){let s;super({start(a){s=ZYe({onEvent:i=>{a.enqueue(i)},onError(i){e==="terminate"?a.error(i):typeof e=="function"&&e(i)},onRetry:r,onComment:o})},transform(a){s.feed(a)}})}}});var o9s,F3e,wL,GQt=j(()=>{EL();nJe();m8n();o9s={initialReconnectionDelay:1e3,maxReconnectionDelay:3e4,reconnectionDelayGrowFactor:1.5,maxRetries:2},F3e=class extends Error{constructor(e,r){super(`Streamable HTTP error: ${r}`),this.code=e}},wL=class{constructor(e,r){var o;this._url=e,this._resourceMetadataUrl=void 0,this._requestInit=r?.requestInit,this._authProvider=r?.authProvider,this._fetch=r?.fetch,this._sessionId=r?.sessionId,this._reconnectionOptions=(o=r?.reconnectionOptions)!==null&&o!==void 0?o:o9s}async _authThenStart(){var e;if(!this._authProvider)throw new rb("No auth provider");let r;try{r=await TL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})}catch(o){throw(e=this.onerror)===null||e===void 0||e.call(this,o),o}if(r!=="AUTHORIZED")throw new rb;return await this._startOrAuthSse({resumptionToken:void 0})}async _commonHeaders(){var e;let r={};if(this._authProvider){let s=await this._authProvider.tokens();s&&(r.Authorization=`Bearer ${s.access_token}`)}this._sessionId&&(r["mcp-session-id"]=this._sessionId),this._protocolVersion&&(r["mcp-protocol-version"]=this._protocolVersion);let o=this._normalizeHeaders((e=this._requestInit)===null||e===void 0?void 0:e.headers);return new Headers({...r,...o})}async _startOrAuthSse(e){var r,o,s;let{resumptionToken:a}=e;try{let i=await this._commonHeaders();i.set("Accept","text/event-stream"),a&&i.set("last-event-id",a);let n=await((r=this._fetch)!==null&&r!==void 0?r:fetch)(this._url,{method:"GET",headers:i,signal:(o=this._abortController)===null||o===void 0?void 0:o.signal});if(!n.ok){if(n.status===401&&this._authProvider)return await this._authThenStart();if(n.status===405)return;throw new F3e(n.status,`Failed to open SSE stream: ${n.statusText}`)}this._handleSseStream(n.body,e,!0)}catch(i){throw(s=this.onerror)===null||s===void 0||s.call(this,i),i}}_getNextReconnectionDelay(e){let r=this._reconnectionOptions.initialReconnectionDelay,o=this._reconnectionOptions.reconnectionDelayGrowFactor,s=this._reconnectionOptions.maxReconnectionDelay;return Math.min(r*Math.pow(o,e),s)}_normalizeHeaders(e){return e?e instanceof Headers?Object.fromEntries(e.entries()):Array.isArray(e)?Object.fromEntries(e):{...e}:{}}_scheduleReconnection(e,r=0){var o;let s=this._reconnectionOptions.maxRetries;if(s>0&&r>=s){(o=this.onerror)===null||o===void 0||o.call(this,new Error(`Maximum reconnection attempts (${s}) exceeded.`));return}let a=this._getNextReconnectionDelay(r);setTimeout(()=>{this._startOrAuthSse(e).catch(i=>{var n;(n=this.onerror)===null||n===void 0||n.call(this,new Error(`Failed to reconnect SSE stream: ${i instanceof Error?i.message:String(i)}`)),this._scheduleReconnection(e,r+1)})},a)}_handleSseStream(e,r,o){if(!e)return;let{onresumptiontoken:s,replayMessageId:a}=r,i;(async()=>{var c,u,f,d;try{let p=e.pipeThrough(new TextDecoderStream).pipeThrough(new iJe).getReader();for(;;){let{value:h,done:m}=await p.read();if(m)break;if(h.id&&(i=h.id,s?.(h.id)),!h.event||h.event==="message")try{let y=bL.parse(JSON.parse(h.data));a!==void 0&&y3e(y)&&(y.id=a),(c=this.onmessage)===null||c===void 0||c.call(this,y)}catch(y){(u=this.onerror)===null||u===void 0||u.call(this,y)}}}catch(p){if((f=this.onerror)===null||f===void 0||f.call(this,new Error(`SSE stream disconnected: ${p}`)),o&&this._abortController&&!this._abortController.signal.aborted)try{this._scheduleReconnection({resumptionToken:i,onresumptiontoken:s,replayMessageId:a},0)}catch(h){(d=this.onerror)===null||d===void 0||d.call(this,new Error(`Failed to reconnect: ${h instanceof Error?h.message:String(h)}`))}}})()}async start(){if(this._abortController)throw new Error("StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.");this._abortController=new AbortController}async finishAuth(e){if(!this._authProvider)throw new rb("No auth provider");if(await TL(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new rb("Failed to authorize")}async close(){var e,r;(e=this._abortController)===null||e===void 0||e.abort(),(r=this.onclose)===null||r===void 0||r.call(this)}async send(e,r){var o,s,a,i;try{let{resumptionToken:n,onresumptiontoken:c}=r||{};if(n){this._startOrAuthSse({resumptionToken:n,replayMessageId:xYe(e)?e.id:void 0}).catch(g=>{var A;return(A=this.onerror)===null||A===void 0?void 0:A.call(this,g)});return}let u=await this._commonHeaders();u.set("content-type","application/json"),u.set("accept","application/json, text/event-stream");let f={...this._requestInit,method:"POST",headers:u,body:JSON.stringify(e),signal:(o=this._abortController)===null||o===void 0?void 0:o.signal},d=await((s=this._fetch)!==null&&s!==void 0?s:fetch)(this._url,f),p=d.headers.get("mcp-session-id");if(p&&(this._sessionId=p),!d.ok){if(d.status===401&&this._authProvider){if(this._resourceMetadataUrl=U3e(d),await TL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new rb;return this.send(e)}let g=await d.text().catch(()=>null);throw new Error(`Error POSTing to endpoint (HTTP ${d.status}): ${g}`)}if(d.status===202){K6n(e)&&this._startOrAuthSse({resumptionToken:void 0}).catch(g=>{var A;return(A=this.onerror)===null||A===void 0?void 0:A.call(this,g)});return}let m=(Array.isArray(e)?e:[e]).filter(g=>"method"in g&&"id"in g&&g.id!==void 0).length>0,y=d.headers.get("content-type");if(m)if(y?.includes("text/event-stream"))this._handleSseStream(d.body,{onresumptiontoken:c},!1);else if(y?.includes("application/json")){let g=await d.json(),A=Array.isArray(g)?g.map(v=>bL.parse(v)):[bL.parse(g)];for(let v of A)(a=this.onmessage)===null||a===void 0||a.call(this,v)}else throw new F3e(-1,`Unexpected content type: ${y}`)}catch(n){throw(i=this.onerror)===null||i===void 0||i.call(this,n),n}}get sessionId(){return this._sessionId}async terminateSession(){var e,r,o;if(this._sessionId)try{let s=await this._commonHeaders(),a={...this._requestInit,method:"DELETE",headers:s,signal:(e=this._abortController)===null||e===void 0?void 0:e.signal},i=await((r=this._fetch)!==null&&r!==void 0?r:fetch)(this._url,a);if(!i.ok&&i.status!==405)throw new F3e(i.status,`Failed to terminate session: ${i.statusText}`);this._sessionId=void 0}catch(s){throw(o=this.onerror)===null||o===void 0||o.call(this,s),s}}setProtocolVersion(e){this._protocolVersion=e}get protocolVersion(){return this._protocolVersion}}});import{readFile as s9s}from"node:fs/promises";var Q3e,q3e,Rj,jQt=j(()=>{"use strict";AZ();nJe();Xi();(function(t){t.CLI_CONNECT="cli_connect",t.PING="ping",t.GET_ACTIVE_FILE="get_active_file",t.GET_FILE_CONTENT="get_file_content",t.GET_SELECTED_TEXT="get_selected_text",t.SHOW_DIFF="show_diff"})(Q3e||(Q3e={}));q3e=class extends Error{code;constructor(e,r){super(r),this.code=e}},Rj=class{_websocket;_url;_authProvider;_websocketOptions;_WebSocket;_protocolVersion;_isClosed=!1;_specialIds=new Set;onclose;onerror;onmessage;sessionId;constructor(e,r){this._url=e,this._authProvider=r?.authProvider,this._websocketOptions=r?.websocketOptions,this._WebSocket=r?.WebSocket||mB.default}async start(){if(this._isClosed)throw new Error(N.t("websocketClient.errors.transportClosed"));let e=null;if(this._authProvider)try{let s=await this._authProvider.tokens();s?.access_token&&(e=s.access_token)}catch(s){try{let a=await this._authProvider.clientInformation();if(a){let i=await this._authProvider.tokens();if(i?.refresh_token){let n=await HQt(this._url,{clientInformation:a,refreshToken:i.refresh_token,addClientAuthentication:this._authProvider.addClientAuthentication});await this._authProvider.saveTokens(n),n?.access_token&&(e=n.access_token)}}}catch{if(this._authProvider.redirectToAuthorization){let i=this._authProvider.redirectUrl;throw await this._authProvider.redirectToAuthorization(typeof i=="string"?new URL(i):i),new Error(N.t("websocketClient.errors.unauthorizedOAuth"))}throw s}}let r={...this._websocketOptions?.headers};e&&(r.Authorization=`Bearer ${e}`),this._protocolVersion&&(r["MCP-Protocol-Version"]=this._protocolVersion);let o=new URL(this._url.toString());return o.protocol==="http:"?o.protocol="ws:":o.protocol==="https:"&&(o.protocol="wss:"),new Promise((s,a)=>{try{let i={headers:r};this._websocket=new this._WebSocket(o.toString(),i),this._websocket.on("open",()=>{s()}),this._websocket.on("error",n=>{let c=n.code!==void 0?n.code:void 0;a(new q3e(c,`WebSocket error: ${n.message}`))}),this._websocket.on("message",async n=>{try{let c=n.toString(),u=JSON.parse(c);if(this._specialIds.has(Number(u.id))||u.type==="welcome")return;this.onmessage?.(await this._transformResponse(u))}catch(c){this.onerror?.(new Error(`Failed to parse WebSocket message: ${c instanceof Error?c.message:String(c)}`))}}),this._websocket.on("close",()=>{this._isClosed||(this._isClosed=!0,this.onclose?.())})}catch(i){a(new q3e(void 0,`Failed to create WebSocket: ${i}`))}})}async finishAuth(e){if(!this._authProvider)throw new Error(N.t("websocketClient.errors.noAuthProvider"));try{let r=await this._authProvider.clientInformation();if(r){let o=this._authProvider.redirectUrl.toString(),s=await qQt(this._url,{clientInformation:r,authorizationCode:e,codeVerifier:await this._authProvider.codeVerifier(),redirectUri:o,addClientAuthentication:this._authProvider.addClientAuthentication});await this._authProvider.saveTokens(s)}else throw new Error(N.t("websocketClient.errors.clientInfoNotAvailable"))}catch(r){throw new Error(`Failed to exchange authorization code for access token: ${r}`)}}async close(){this._isClosed=!0,this._websocket&&this._websocket.readyState===mB.default.OPEN?this._websocket.close():this.onclose?.()}async send(e){if(this._isClosed)throw new Error(N.t("websocketClient.errors.transportClosed"));if(!this._websocket)throw new Error(N.t("websocketClient.errors.transportNotStarted"));if(this._websocket.readyState!==mB.default.OPEN)throw new Error(N.t("websocketClient.errors.websocketNotOpen"));try{if(e.method==="notifications/initialized")return;let r=await this._transformRequest(e),o=JSON.stringify(r);this._websocket.send(o)}catch(r){throw new q3e(void 0,`Failed to send message: ${r instanceof Error?r.message:String(r)}`)}}async _transformRequest(e){if(e.method==="initialize")return{type:Q3e.CLI_CONNECT,id:e.id,timestamp:Date.now(),payload:{clientInfo:{version:"0.3.14-beta.5",platform:process.platform,workingDirectory:process.cwd()}}};if(e.method==="tools/call"&&e.params?.name==="openDiff"){let{arguments:r}=e.params||{},{filePath:o,newContent:s}=r||{};return{type:Q3e.SHOW_DIFF,id:e.id,timestamp:Date.now(),payload:{originalText:await s9s(o,"utf8"),modifiedText:s}}}return e}async _transformResponse(e){if(e.type==="connection_ack")return{jsonrpc:"2.0",id:e.id,result:{protocolVersion:"2024-11-05",capabilities:{logging:{},prompts:{},resources:{},tools:{}},serverInfo:{name:"JetBrains Plugin Server",title:"JetBrains Plugin Server",version:"1.0.0"}}};if(e.type==="selection_changed"){let r=await this._getSelectedText();return{jsonrpc:"2.0",method:"ide/contextUpdate",params:{workspaceState:{openFiles:[{path:e.payload.fileName,timestamp:Date.now(),isActive:!0,selectedText:r}]}}}}return e.type==="active_file_changed"?{jsonrpc:"2.0",method:"ide/contextUpdate",params:{workspaceState:{openFiles:[{path:e.payload.fileName,timestamp:Date.now(),isActive:!0}]}}}:e}async _getSelectedText(){if(!this._websocket)return"";let e=performance.now();return this._specialIds.add(e),this._websocket.send(JSON.stringify({type:Q3e.GET_SELECTED_TEXT,id:e,timestamp:Date.now()})),new Promise((r,o)=>{this._websocket.once("message",s=>{try{let a=JSON.parse(s.toString());Number(a.id)===e&&(this._specialIds.delete(e),a.payload.success?r(a.payload.data.text):o(a.payload.error))}catch{r("")}})})}setProtocolVersion(e){this._protocolVersion=e}}});var g8n,oJe,y8n=j(()=>{"use strict";g8n=we(e0e(),1);Xi();oJe=class{config;auth;redirectUrl="";clientMetadata={client_name:"iFlow CLI (Google ADC)",redirect_uris:[],grant_types:[],response_types:[],token_endpoint_auth_method:"none"};_clientInformation;constructor(e){this.config=e;let r=this.config?.oauth?.scopes;if(!r||r.length===0)throw new Error(N.t("mcp.auth.scopesRequired"));this.auth=new g8n.GoogleAuth({scopes:r})}clientInformation(){return this._clientInformation}saveClientInformation(e){this._clientInformation=e}async tokens(){let r=await(await this.auth.getClient()).getAccessToken();if(!r.token){console.error(N.t("mcp.auth.failedToGetAccessToken"));return}return{access_token:r.token,token_type:"Bearer"}}saveTokens(e){}redirectToAuthorization(e){}saveCodeVerifier(e){}codeVerifier(){return""}}});import{execFile as a9s}from"node:child_process";import{promisify as c9s}from"node:util";import{platform as l9s}from"node:os";import{URL as u9s}from"node:url";function f9s(t){let e;try{e=new u9s(t)}catch{throw new Error(`Invalid URL: ${t}`)}if(e.protocol!=="http:"&&e.protocol!=="https:")throw new Error(`Unsafe protocol: ${e.protocol}. Only HTTP and HTTPS are allowed.`);if(/[\r\n\x00-\x1f]/.test(t))throw new Error("URL contains invalid characters")}async function v8n(t){f9s(t);let e=l9s(),r,o;switch(e){case"darwin":r="open",o=[t];break;case"win32":r="powershell.exe",o=["-NoProfile","-NonInteractive","-WindowStyle","Hidden","-Command",`Start-Process '${t.replace(/'/g,"''")}'`];break;case"linux":case"freebsd":case"openbsd":r="xdg-open",o=[t];break;default:throw new Error(`Unsupported platform: ${e}`)}let s={env:{...process.env,SHELL:void 0},detached:!0,stdio:"ignore"};try{await A8n(r,o,s)}catch(a){if((e==="linux"||e==="freebsd"||e==="openbsd")&&r==="xdg-open"){let i=["gnome-open","kde-open","firefox","chromium","google-chrome"];for(let n of i)try{await A8n(n,[t],s);return}catch{continue}}throw new Error(`Failed to open browser: ${a instanceof Error?a.message:"Unknown error"}`)}}var A8n,b8n=j(()=>{"use strict";A8n=c9s(a9s)});function ma(t){return t instanceof Error&&"code"in t}function $r(t){if(t instanceof Error)return t.message;try{return String(t)}catch{return"Failed to get error details"}}function $Qt(t){if(t&&typeof t=="object"&&"response"in t){let r=d9s(t);if(r.error&&r.error.message&&r.error.code)switch(r.error.code){case 400:return new aJe(r.error.message);case 401:return new IL(r.error.message);case 403:return new sJe(r.error.message);default:}}return t}function d9s(t){return typeof t.response?.data=="string"?JSON.parse(t.response?.data):t.response?.data}var sJe,IL,aJe,Ed=j(()=>{"use strict";sJe=class extends Error{},IL=class extends Error{},aJe=class extends Error{}});import{promises as Zie}from"node:fs";import*as cJe from"node:path";import*as E8n from"node:os";var q0,lJe=j(()=>{"use strict";Ed();Xi();q0=class{static TOKEN_FILE="mcp-oauth-tokens.json";static CONFIG_DIR=".iflow";static getTokenFilePath(){let e=E8n.homedir();return cJe.join(e,this.CONFIG_DIR,this.TOKEN_FILE)}static async ensureConfigDir(){let e=cJe.dirname(this.getTokenFilePath());await Zie.mkdir(e,{recursive:!0})}static async loadTokens(){let e=new Map;try{let r=this.getTokenFilePath(),o=await Zie.readFile(r,"utf-8"),s=JSON.parse(o);for(let a of s)e.set(a.serverName,a)}catch(r){r.code!=="ENOENT"&&console.error(N.t("mcp.tokenStorage.errors.failedToLoadTokens",{error:$r(r)}))}return e}static async saveToken(e,r,o,s,a){await this.ensureConfigDir();let i=await this.loadTokens(),n={serverName:e,token:r,clientId:o,tokenUrl:s,mcpServerUrl:a,updatedAt:Date.now()};i.set(e,n);let c=Array.from(i.values()),u=this.getTokenFilePath();try{await Zie.writeFile(u,JSON.stringify(c,null,2),{mode:384})}catch(f){throw console.error(N.t("mcp.tokenStorage.errors.failedToSaveToken",{error:$r(f)})),f}}static async getToken(e){return(await this.loadTokens()).get(e)||null}static async removeToken(e){let r=await this.loadTokens();if(r.delete(e)){let o=Array.from(r.values()),s=this.getTokenFilePath();try{o.length===0?await Zie.unlink(s):await Zie.writeFile(s,JSON.stringify(o,null,2),{mode:384})}catch(a){console.error(N.t("mcp.tokenStorage.errors.failedToRemoveToken",{error:$r(a)}))}}}static isTokenExpired(e){if(!e.expiresAt)return!1;let r=300*1e3;return Date.now()+r>=e.expiresAt}static async clearAllTokens(){try{let e=this.getTokenFilePath();await Zie.unlink(e)}catch(e){e.code!=="ENOENT"&&console.error(N.t("mcp.tokenStorage.errors.failedToClearTokens",{error:$r(e)}))}}}});var H0,uJe=j(()=>{"use strict";Ed();Xi();H0=class{static buildWellKnownUrls(e){let r=new URL(e),o=`${r.protocol}//${r.host}`;return{protectedResource:new URL("/.well-known/oauth-protected-resource",o).toString(),authorizationServer:new URL("/.well-known/oauth-authorization-server",o).toString()}}static async fetchProtectedResourceMetadata(e){try{let r=await fetch(e);return r.ok?await r.json():null}catch(r){return console.debug(`Failed to fetch protected resource metadata from ${e}: ${$r(r)}`),null}}static async fetchAuthorizationServerMetadata(e){try{let r=await fetch(e);return r.ok?await r.json():null}catch(r){return console.debug(`Failed to fetch authorization server metadata from ${e}: ${$r(r)}`),null}}static metadataToOAuthConfig(e){return{authorizationUrl:e.authorization_endpoint,tokenUrl:e.token_endpoint,scopes:e.scopes_supported||[]}}static async discoverOAuthConfig(e){try{let r=this.buildWellKnownUrls(e),o=await this.fetchProtectedResourceMetadata(r.protectedResource);if(o?.authorization_servers?.length){let a=o.authorization_servers[0],i=new URL("/.well-known/oauth-authorization-server",a).toString(),n=await this.fetchAuthorizationServerMetadata(i);if(n){let c=this.metadataToOAuthConfig(n);return n.registration_endpoint&&console.log(N.t("mcp.oauth.discovery.dynamicRegistrationSupported"),n.registration_endpoint),c}}console.debug(`Trying OAuth discovery fallback at ${r.authorizationServer}`);let s=await this.fetchAuthorizationServerMetadata(r.authorizationServer);if(s){let a=this.metadataToOAuthConfig(s);return s.registration_endpoint&&console.log(N.t("mcp.oauth.discovery.dynamicRegistrationSupported"),s.registration_endpoint),a}return null}catch(r){return console.debug(`Failed to discover OAuth configuration: ${$r(r)}`),null}}static parseWWWAuthenticateHeader(e){let r=e.match(/resource_metadata="([^"]+)"/);return r?r[1]:null}static async discoverOAuthFromWWWAuthenticate(e){let r=this.parseWWWAuthenticateHeader(e);if(!r)return null;console.log(N.t("mcp.oauth.discovery.foundResourceMetadataUri",{uri:r}));let o=await this.fetchProtectedResourceMetadata(r);if(!o?.authorization_servers?.length)return null;let s=o.authorization_servers[0],a=new URL("/.well-known/oauth-authorization-server",s).toString(),i=await this.fetchAuthorizationServerMetadata(a);return i?(console.log(N.t("mcp.oauth.discovery.configDiscoveredFromWwwAuth")),this.metadataToOAuthConfig(i)):null}static extractBaseUrl(e){let r=new URL(e);return`${r.protocol}//${r.host}`}static isSSEEndpoint(e){return e.includes("/sse")||!e.includes("/mcp")}static buildResourceParameter(e){let r=new URL(e);return`${r.protocol}//${r.host}`}}});import*as S8n from"node:http";import*as H3e from"node:crypto";import{URL as WQt}from"node:url";var $E,zQt=j(()=>{"use strict";b8n();lJe();Ed();uJe();Xi();$E=class{static REDIRECT_PORT=7777;static REDIRECT_PATH="/oauth/callback";static HTTP_OK=200;static HTTP_REDIRECT=302;static async registerClient(e,r){let s={client_name:"iFlow CLI MCP Client",redirect_uris:[r.redirectUri||`http://localhost:${this.REDIRECT_PORT}${this.REDIRECT_PATH}`],grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none",code_challenge_method:["S256"],scope:r.scopes?.join(" ")||""},a=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!a.ok){let i=await a.text();throw new Error(N.t("mcp.auth.clientRegistrationFailed",{status:a.status,statusText:a.statusText,error:i}))}return await a.json()}static async discoverOAuthFromMCPServer(e){let r=H0.extractBaseUrl(e);return H0.discoverOAuthConfig(r)}static generatePKCEParams(){let e=H3e.randomBytes(32).toString("base64url"),r=H3e.createHash("sha256").update(e).digest("base64url"),o=H3e.randomBytes(16).toString("base64url");return{codeVerifier:e,codeChallenge:r,state:o}}static async startCallbackServer(e){return new Promise((r,o)=>{let s=S8n.createServer(async(a,i)=>{try{let n=new WQt(a.url,`http://localhost:${this.REDIRECT_PORT}`);if(n.pathname!==this.REDIRECT_PATH){i.writeHead(404),i.end(N.t("mcp.ui.notFound"));return}let c=n.searchParams.get("code"),u=n.searchParams.get("state"),f=n.searchParams.get("error");if(f){i.writeHead(this.HTTP_OK,{"Content-Type":"text/html"}),i.end(`
|
|
902
902
|
<html>
|
|
903
903
|
<body>
|
|
904
904
|
<h1>${N.t("mcp.ui.authenticationFailed")}</h1>
|
|
@@ -4412,7 +4412,7 @@ ${Pe.description}`:Pe.subject||Pe.description||"Thinking...",[]),Ee=(0,Tc.useCal
|
|
|
4412
4412
|
`,e-1);return{line:r===-1?0:t.slice(0,r+1).match(/\n/g).length,column:e-r-1}}function pvr(t,e,{oneBased:r=!1}={}){if(typeof t!="string")throw new TypeError("Text parameter should be a string");if(!Number.isInteger(e))throw new TypeError("Index parameter should be an integer");if(e<0||e>t.length)throw new RangeError("Index out of bounds");let o=Y0c(t,e);return r?{line:o.line+1,column:o.column+1}:o}var J0c=t=>`\\u{${t.codePointAt(0).toString(16)}}`,hvr=class t extends Error{name="JSONError";fileName;#e;#t;#r;#n;#o;constructor(e){if(typeof e=="string")super(),this.#r=e;else{let{jsonParseError:r,fileName:o,input:s}=e;super(void 0,{cause:r}),this.#e=s,this.#t=r,this.fileName=o}Error.captureStackTrace?.(this,t)}get message(){this.#r??=`${Z0c(this.#t.message)}${this.#e===""?" while parsing empty string":""}`;let{codeFrame:e}=this;return`${this.#r}${this.fileName?` in ${this.fileName}`:""}${e?`
|
|
4413
4413
|
|
|
4414
4414
|
${e}
|
|
4415
|
-
`:""}`}set message(e){this.#r=e}#i(e){if(!this.#t)return;let r=this.#e,o=X0c(r,this.#t.message);if(o)return(0,dqi.codeFrameColumns)(r,{start:o},{highlightCode:e})}get codeFrame(){return this.#n??=this.#i(!0),this.#n}get rawCodeFrame(){return this.#o??=this.#i(!1),this.#o}},X0c=(t,e)=>{let r=e.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);if(!r)return;let{index:o,line:s,column:a}=r.groups;return s&&a?{line:Number(s),column:Number(a)}:pvr(t,Number(o),{oneBased:!0})},Z0c=t=>t.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(e,r,o)=>`"${o}"(${J0c(o)})`);function mvr(t,e,r){typeof e=="string"&&(r=e,e=void 0);try{return JSON.parse(t,e)}catch(o){throw new hvr({jsonParseError:o,fileName:r,input:t})}}var SHi=we(bHi(),1);import{fileURLToPath as S1c}from"node:url";function EHi(t){return t instanceof URL?S1c(t):t}var C1c=t=>_1c.resolve(EHi(t)??".","package.json"),T1c=(t,e)=>{let r=typeof t=="string"?mvr(t):t;return e&&(0,SHi.default)(r),r};async function xHi({cwd:t,normalize:e=!0}={}){let r=await x1c.readFile(C1c(t),"utf8");return T1c(r,e)}async function _Hi(t){let e=await qQi("package.json",t);if(e)return{packageJson:await xHi({...t,cwd:w1c.dirname(e)}),path:e}}import{fileURLToPath as I1c}from"url";import D1c from"path";var O1c=I1c(import.meta.url),R1c=D1c.dirname(O1c),Q2t;async function ZQ(){if(Q2t)return Q2t;let t=await _Hi({cwd:R1c});if(t)return Q2t=t.packageJson,Q2t}async function eq(){let t=await ZQ();return"0.3.14-beta.
|
|
4415
|
+
`:""}`}set message(e){this.#r=e}#i(e){if(!this.#t)return;let r=this.#e,o=X0c(r,this.#t.message);if(o)return(0,dqi.codeFrameColumns)(r,{start:o},{highlightCode:e})}get codeFrame(){return this.#n??=this.#i(!0),this.#n}get rawCodeFrame(){return this.#o??=this.#i(!1),this.#o}},X0c=(t,e)=>{let r=e.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);if(!r)return;let{index:o,line:s,column:a}=r.groups;return s&&a?{line:Number(s),column:Number(a)}:pvr(t,Number(o),{oneBased:!0})},Z0c=t=>t.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(e,r,o)=>`"${o}"(${J0c(o)})`);function mvr(t,e,r){typeof e=="string"&&(r=e,e=void 0);try{return JSON.parse(t,e)}catch(o){throw new hvr({jsonParseError:o,fileName:r,input:t})}}var SHi=we(bHi(),1);import{fileURLToPath as S1c}from"node:url";function EHi(t){return t instanceof URL?S1c(t):t}var C1c=t=>_1c.resolve(EHi(t)??".","package.json"),T1c=(t,e)=>{let r=typeof t=="string"?mvr(t):t;return e&&(0,SHi.default)(r),r};async function xHi({cwd:t,normalize:e=!0}={}){let r=await x1c.readFile(C1c(t),"utf8");return T1c(r,e)}async function _Hi(t){let e=await qQi("package.json",t);if(e)return{packageJson:await xHi({...t,cwd:w1c.dirname(e)}),path:e}}import{fileURLToPath as I1c}from"url";import D1c from"path";var O1c=I1c(import.meta.url),R1c=D1c.dirname(O1c),Q2t;async function ZQ(){if(Q2t)return Q2t;let t=await _Hi({cwd:R1c});if(t)return Q2t=t.packageJson,Q2t}async function eq(){let t=await ZQ();return"0.3.14-beta.5"}Ya();gr();import iJ from"node:process";var CHi={name:"about",description:N.t("command.about"),kind:"built-in",action:async t=>{let e=iJ.platform,r=N.t("aboutCommand.noSandbox");iJ.env.SANDBOX&&iJ.env.SANDBOX!=="sandbox-exec"?r=iJ.env.SANDBOX:iJ.env.SANDBOX==="sandbox-exec"&&(r=`sandbox-exec (${iJ.env.SEATBELT_PROFILE||N.t("aboutCommand.unknown")})`);let o=t.services.config?.getModel()||N.t("aboutCommand.unknown"),s=await eq(),a=t.services.settings.merged.selectedAuthType||"",i=iJ.env.GOOGLE_CLOUD_PROJECT||"",n={type:"about",cliVersion:s,osVersion:e,sandboxEnv:r,modelVersion:o,selectedAuthType:a,gcpProject:i};t.ui.addItem(n,Date.now())}};gr();gr();Ya();var H2t="\x1B[32m";var wHi="\x1B[31m",tq="\x1B[36m",k1="\x1B[90m";var ou="\x1B[0m";function q2t(t,e,r,o=!1){let s="";if(t.length===0)return s="\u{1F534} ",`${s}${e}
|
|
4416
4416
|
${wHi}${N.t("agentsCommand.list.noAgentsFound")}${ou}
|
|
4417
4417
|
`;s="\u{1F7E2} ";let a=`${s}${e}
|
|
4418
4418
|
`;for(let i of t)o?a+=N1c(i):a+=`${H2t}- ${i.agentType}${ou}
|
|
@@ -4455,7 +4455,7 @@ ${k1}${N.t("agentsCommand.list.builtinAgents")}${ou}
|
|
|
4455
4455
|
${k1}${N.t("agentsCommand.list.generalPurpose")}
|
|
4456
4456
|
${ou}`;let c=o.length+s.length;t.ui.addItem({type:"info",text:`${H2t}${N.t("agentsCommand.refresh.success",{count:c})}${ou}
|
|
4457
4457
|
|
|
4458
|
-
${H2t}${n.trim()}${ou}`},Date.now())}catch(e){let r=$r(e);t.ui.addItem({type:"error",text:`${wHi}${N.t("agentsCommand.refresh.error",{error:r})}${ou}`},Date.now())}}},{name:"online",description:N.t("agentsCommand.subCommands.online"),kind:"built-in",action:(t,e)=>({type:"dialog",dialog:"agents-online"})},{name:"install",description:N.t("agentsCommand.subCommands.install"),kind:"built-in",action:(t,e)=>({type:"dialog",dialog:"agent-install"})}]};gr();var DHi={name:"auth",description:N.t("command.auth"),kind:"built-in",action:(t,e)=>({type:"dialog",dialog:"auth"})};V7();import wP from"node:process";import P1c from"node:os";Ya();gr();var Tpe="
|
|
4458
|
+
${H2t}${n.trim()}${ou}`},Date.now())}catch(e){let r=$r(e);t.ui.addItem({type:"error",text:`${wHi}${N.t("agentsCommand.refresh.error",{error:r})}${ou}`},Date.now())}}},{name:"online",description:N.t("agentsCommand.subCommands.online"),kind:"built-in",action:(t,e)=>({type:"dialog",dialog:"agents-online"})},{name:"install",description:N.t("agentsCommand.subCommands.install"),kind:"built-in",action:(t,e)=>({type:"dialog",dialog:"agent-install"})}]};gr();var DHi={name:"auth",description:N.t("command.auth"),kind:"built-in",action:(t,e)=>({type:"dialog",dialog:"auth"})};V7();import wP from"node:process";import P1c from"node:os";Ya();gr();var Tpe="4de8bd5d (local modifications)";gr();async function B1c(t,e){let r="https://apis.iflow.cn/v1/bug/report",s={content:JSON.stringify(t,null,2)},a={"Content-Type":"application/json"};e&&(a.Authorization=`Bearer ${e}`);try{let i=await fetch(r,{method:"POST",headers:a,body:JSON.stringify(s)});if(i.ok){let n=await i.json();return console.log("Bug report data sent successfully to endpoint"),n.success&&n.data?n.data:(console.warn("Unexpected response format from endpoint:",n),null)}else return console.warn(`Failed to send bug report to endpoint: ${i.status} ${i.statusText}`),null}catch(i){return console.warn("Failed to send bug report to endpoint:",i),null}}var OHi={name:"bug",description:N.t("command.bug"),kind:"built-in",action:async(t,e)=>{let r=(e||"").trim(),{config:o}=t.services,s=nj(),a=`${wP.platform} ${wP.version}`,i=N.t("bugCommand.noSandbox");wP.env.SANDBOX&&wP.env.SANDBOX!=="sandbox-exec"?i=wP.env.SANDBOX.replace(/^iflow-(?:code-)?/,""):wP.env.SANDBOX==="sandbox-exec"&&(i=`sandbox-exec (${wP.env.SEATBELT_PROFILE||"unknown"})`);let n=o?.getModel()||N.t("bugCommand.unknown"),c=await eq(),u=rpe(wP.memoryUsage().rss),f=s.getInMemoryErrors(),d=N.t("bugCommand.noRecentErrors");f.length>0&&(d=f.slice(-3).map(D=>N.t("bugCommand.errorWithTimestamp",{timestamp:D.timestamp,error:D.error})).join(`
|
|
4459
4459
|
|
|
4460
4460
|
`));let p=P1c.userInfo().username,h=T=>{if(!p)return T;let D=new RegExp(`/${p}/`,"g");return T.replace(D,"/user/")},m=`CLI Version: ${c}
|
|
4461
4461
|
Git Commit: ${Tpe}
|
|
@@ -5515,7 +5515,7 @@ ${N.t("gemini.errors.criticalUnhandledRejection")}
|
|
|
5515
5515
|
=========================================
|
|
5516
5516
|
${N.t("gemini.errors.reason",{reason:e})}${e instanceof Error&&e.stack?`
|
|
5517
5517
|
${N.t("gemini.errors.stackTrace")}
|
|
5518
|
-
${e.stack}`:""}`;Cc.emit("log-error",o),t||(t=!0,Cc.emit("open-debug-console"))})}function mIc(){console.log(N.t("gemini.crashDiagnosticsEnabled")),process.setUncaughtExceptionCaptureCallback(t=>{let e={timestamp:new Date().toISOString(),error:{name:t.name,message:t.message,stack:t.stack},memory:process.memoryUsage(),pid:process.pid,cwd:process.cwd(),nodeVersion:process.version,platform:process.platform,arch:process.arch,uptime:process.uptime(),env:{NODE_ENV:"production",SANDBOX:process.env.SANDBOX,CLI_VERSION:"0.3.14-beta.
|
|
5518
|
+
${e.stack}`:""}`;Cc.emit("log-error",o),t||(t=!0,Cc.emit("open-debug-console"))})}function mIc(){console.log(N.t("gemini.crashDiagnosticsEnabled")),process.setUncaughtExceptionCaptureCallback(t=>{let e={timestamp:new Date().toISOString(),error:{name:t.name,message:t.message,stack:t.stack},memory:process.memoryUsage(),pid:process.pid,cwd:process.cwd(),nodeVersion:process.version,platform:process.platform,arch:process.arch,uptime:process.uptime(),env:{NODE_ENV:"production",SANDBOX:process.env.SANDBOX,CLI_VERSION:"0.3.14-beta.5"}},r=`crash-${Date.now()}-${process.pid}.json`,o=oIc.join(process.cwd(),r);try{uIc.writeFileSync(o,JSON.stringify(e,null,2)),console.error(N.t("gemini.crashDetected",{crashFilePath:o})),console.error(N.t("gemini.coreDumpWillBeGenerated"))}catch(s){console.error(N.t("gemini.failedToWriteCrashFile"),s)}process.abort()}),process.on("warning",t=>{console.warn(N.t("gemini.debug.nodejsWarning"),{name:t.name,message:t.message,stack:t.stack})}),process.on("unhandledRejection",(t,e)=>{console.error(N.t("gemini.debug.unhandledPromiseRejectionDetected"),{reason:t,promise:e.toString()})})}async function ioo(){hIc();let t=process.cwd(),e=Nu(t);if(!e.user.settings.cna){let p=await u7e();p&&e.setValue("User","cna",p)}if(await Yto(),e.errors.length>0){for(let p of e.errors){let h=N.t("gemini.errorInFile",{path:p.path,message:p.message});process.env.NO_COLOR||(h=`\x1B[31m${h}\x1B[0m`),console.error(h),console.error(N.t("gemini.pleaseFixFileAndTryAgain",{path:p.path}))}process.exit(1)}let r=await hAt();(!!r.prompt&&!r.promptInteractive&&!r.continue&&!r.resume||r.experimentalAcp)&&(process.env.IFLOW_NON_INTERACTIVE="true");let s=gq(t),a=await $J(e.merged,s,B1.generateSessionId(),r);if(N.changeLanguage(a.getLanguage()),a.getDebugMode()&&mIc(),cIc.setDefaultResultOrder(fIc(e.merged.dnsResolutionOrder)),r.promptInteractive&&!process.stdin.isTTY&&(console.error(N.t("gemini.errors.promptInteractiveFlagNotSupported")),process.exit(1)),a.getListExtensions()){console.debug(N.t("gemini.installedExtensions"));for(let p of s)console.debug(`- ${p.config.name}`);process.exit(0)}if(r._&&r._[0]==="agent"){let{agentCommand:p}=await Promise.resolve().then(()=>(Uxr(),Vto)),h=(await Promise.resolve().then(()=>(oCr(),iCr))).default;await h().scriptName("iflow").command(p).help().version(!1).parse(),process.exit(0)}if(r._&&r._[0]==="commands"){let{commandsCommand:p}=await Promise.resolve().then(()=>(Mxr(),Oto)),h=(await Promise.resolve().then(()=>(oCr(),iCr))).default;await h().scriptName("iflow").command(p).help().version(!1).parse(),process.exit(0)}if(e.merged.selectedAuthType||process.env.CLOUD_SHELL==="true"&&e.setValue("User","selectedAuthType",br.CLOUD_SHELL),aXi(a.getDebugMode()),await a.initialize(),uc.loadCustomThemes(e.merged.customThemes),e.merged.theme&&(uc.setActiveTheme(e.merged.theme)||console.warn(N.t("gemini.themeNotFound",{theme:e.merged.theme}))),!process.env.SANDBOX){let p=e.merged.autoConfigureMaxOldSpaceSize?dIc(a):[],h=a.getSandbox();if(h){if(e.merged.selectedAuthType&&!e.merged.useExternalAuth)try{let m=NJ(e.merged.selectedAuthType);if(m)throw new Error(m);await a.refreshAuth(e.merged.selectedAuthType,{apiKey:e.merged.apiKey,baseUrl:e.merged.baseUrl,modelName:e.merged.modelName})}catch(m){console.error(N.t("gemini.errorAuthenticating"),m),process.exit(1)}await $no(h,p,a),process.exit(0)}else p.length>0&&(await pIc(p),process.exit(0))}if(e.merged.selectedAuthType===br.LOGIN_WITH_IFLOW&&a.isBrowserLaunchSuppressed()&&await LH(e.merged.selectedAuthType,a),a.getExperimentalAcp())return a.getAcpPort()?await mio(a,e,s,r,a.getAcpPort()):cio(a,e,s,r);let i=a.getQuestion(),n=[...await Wno(),...await Kno(t)];if(!!r.promptInteractive||!!r.continue||!!r.resume||process.stdin.isTTY&&i?.length===0){console.clear();let p=await eq();noo(roo(t),e);try{await vYi()}catch(v){a.getDebugMode()&&console.warn("Failed to detect/enable Kitty protocol:",v)}try{await a.setIdeModeAndSyncConnection(!0)}catch(v){console.error(N.t("gemini.failedToConnectToIdeServer"),v)}let h,m=async()=>{try{if(console.clear(),noo(roo(t),e),h)try{h.unmount(),await new Promise(x=>process.nextTick(x))}catch(x){console.error(N.t("gemini.errorDuringUnmount"),x)}let{executeSessionStartHooks:v}=await Promise.resolve().then(()=>(aJ(),sJ)),b=await v(a,"resume");h=D8e((0,C5e.jsx)(sCr.default.StrictMode,{children:(0,C5e.jsx)(m_r,{instance:()=>h,config:a,settings:e,startupWarnings:n,version:p,continueMode:!!r.continue,resumeMode:!!r.resume,resumeSessionId:r.resume,fgMode:!0,sessionStartContext:b})}),{exitOnCtrlC:!1,isScreenReaderEnabled:!1,stdout:Gvr()})}catch(v){console.error(N.t("gemini.errorDuringResume"),v)}};process.on("SIGCONT",m),d5e(()=>{process.off("SIGCONT",m)});let y="startup";(r.continue||r.resume)&&(y="resume");let{executeSessionStartHooks:g}=await Promise.resolve().then(()=>(aJ(),sJ)),A=await g(a,y);h=D8e((0,C5e.jsx)(sCr.default.StrictMode,{children:(0,C5e.jsx)(m_r,{instance:()=>h,config:a,settings:e,startupWarnings:n,version:p,continueMode:!!r.continue,resumeMode:!!r.resume,resumeSessionId:r.resume,sessionStartContext:A})}),{exitOnCtrlC:!1,isScreenReaderEnabled:!1,stdout:Gvr()}),e.merged.disableAutoUpdate||P1t().then(v=>{sno(v,e,a.getProjectRoot())}).catch(v=>{a.getDebugMode()&&console.error(N.t("gemini.updateCheckFailed"),v)}),d5e(()=>h.unmount());return}!process.stdin.isTTY&&!i&&(i+=await Hno()),i||(console.error(N.t("gemini.noInputProvidedViaStdin")),process.exit(1));let u=Math.random().toString(16).slice(2);Cie(a,{"event.name":"user_prompt","event.timestamp":new Date().toISOString(),prompt:i,prompt_id:u,auth_type:a.getContentGeneratorConfig()?.authType,prompt_length:i.length});let f=await gIc(a,s,e,r),d=r.outputFile||r.output_file;await Xno(f,i,u,d),process.exit(0)}function noo(t,e){if(!e.merged.hideWindowTitle){let r=(process.env.CLI_TITLE||`iFlow - ${t}`).replace(/[\x00-\x1F\x7F]/g,"");process.stdout.write(`\x1B]2;${r}\x07`),process.on("exit",()=>{process.stdout.write("\x1B]2;\x07")})}}async function gIc(t,e,r,o){let s=t;if(t.getApprovalMode()!==ki.YOLO){let a=r.merged.excludeTools||[],i=[lp.Name,Lm.Name,fh.Name],n=[...new Set([...a,...i])],c={...r.merged,excludeTools:n},u={...o};s=await $J(c,e,t.getSessionId(),u),await s.initialize()}return await yIc(r.merged.selectedAuthType,s,r)}async function yIc(t,e,r){!t&&!process.env.GEMINI_API_KEY&&!fYe()&&(console.error(N.t("gemini.pleaseSetAuthMethod",{userSettingsPath:XY})),process.exit(1)),t||(fYe()?t=br.IFLOW:t=br.IFLOW);let o=NJ(t);return o!=null&&(console.error(o),process.exit(1)),await e.refreshAuth(t,{apiKey:r.merged.apiKey,baseUrl:r.merged.baseUrl,modelName:r.merged.modelName}),e}ioo().catch(t=>{console.error("An unexpected critical error occurred:"),t instanceof Error?console.error(t.stack):console.error(String(t)),process.exit(1)});
|
|
5519
5519
|
/**
|
|
5520
5520
|
* @license
|
|
5521
5521
|
* Copyright 2025 Google LLC
|