@iflow-ai/iflow-cli 0.3.15-beta.0 → 0.3.15
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
CHANGED
|
@@ -393,7 +393,7 @@ ${o.authUrl}
|
|
|
393
393
|
|
|
394
394
|
`);try{(await z1(o.authUrl)).on("error",a=>{throw new Error(`BROWSER_LAUNCH_FAILED: ${R.t("oauth2.errors.browserLaunchFailed")}`)})}catch(s){throw new Error(`BROWSER_LAUNCH_FAILED: ${R.t("oauth2.errors.browserLaunchUnexpectedError",{error:s})}`)}return console.log(R.t("oauth2.messages.waitingForAuthentication")),await o.loginCompletePromise,r}async function UH(t,e){return s0e.has(t)||s0e.set(t,q0o(t,e)),s0e.get(t)}async function H0o(t){let e=await A_t(),r=process.env.OAUTH_CALLBACK_HOST||"localhost",o=`http://localhost:${e}/oauth2callback`,s=U0o.randomBytes(32).toString("hex"),a="https://iflow.cn/oauth",i=`${encodeURIComponent(o)}&state=${s}`,n=`${a}?loginMethod=phone&type=phone&redirect=${i}&client_id=${vee}`,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(R.t("oauth2.errors.unexpectedRequest",{url:p.url}))));let m=new L0o.URL(p.url,"http://localhost:3000").searchParams;if(m.get("error"))h.writeHead(y_t,{Location:cOr}),h.end(),f(new Error(R.t("oauth2.errors.authenticationError",{error:m.get("error")})));else if(m.get("state")!==s)h.end("State mismatch. Possible CSRF attack"),f(new Error(R.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(`${vee}:${a0e}`).toString("base64")}`},body:new URLSearchParams({grant_type:"authorization_code",code:m.get("code"),redirect_uri:o,client_id:vee,client_secret:a0e}).toString()});if(!y.ok)throw new Error(R.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 Nk.cacheIFlowApiKey(v)),await dOr(A),h.writeHead(y_t,{Location:Q0o}),h.end(),u()}else f(new Error(R.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 V0o(t,e){let r=[r3.getOAuthCredsPath()].filter(o=>!!o);for(let o of r)try{let s=await k4.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(R.t("oauth2.errors.tokenExpired"));continue}}return!0}catch{}return!1}async function dOr(t){let e=r3.getOAuthCredsPath();await k4.mkdir(F0o.dirname(e),{recursive:!0});let r=JSON.stringify(t,null,2);await k4.writeFile(e,r,{mode:384})}function v_t(){s0e.clear()}async function j7(){try{await k4.rm(r3.getOAuthCredsPath(),{force:!0}),await Nk.clearCachedIFlowAccount(),await Nk.clearCachedIFlowApiKey(),v_t()}catch(t){console.error(R.t("oauth2.messages.failedToClearCredentials"),t)}}async function G0o(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(R.t("oauth2.messages.failedToFetchUserInfo",{status:r.status,statusText:r.statusText}));return}let o=await r.json();await Nk.cacheIFlowAccount(o.email)}catch(e){console.error(R.t("oauth2.messages.errorRetrievingUserInfo"),e)}}async function j0o(t){try{let{token:e}=await t.getAccessToken();if(!e)return;let{apiKey:r}=await mOr(e);if(r){await Nk.cacheIFlowApiKey(r);let o=r3.getOAuthCredsPath(),s=await k4.readFile(o,"utf-8"),a=JSON.parse(s);a.apiKey=r,await k4.writeFile(o,JSON.stringify(a,null,2),{mode:384})}}catch(e){console.error(R.t("oauth2.messages.errorRetrievingIflowUserInfo"),e)}}function pOr(){s0e.clear()}async function hOr(){try{let t=r3.getOAuthCredsPath(),e=await k4.readFile(t,"utf-8");return JSON.parse(e).access_token}catch{return}}async function B4(){let t=Nk.getCachedIFlowApiKey();if(t)return t;try{let e=r3.getOAuthCredsPath(),r=await k4.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(R.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(R.t("oauth2.messages.errorAfterAllRetries"),s),{};console.warn(R.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(`${vee}:${a0e}`).toString("base64")}`},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:t,client_id:vee,client_secret:a0e}).toString()});if(!e.ok)throw new Error(R.t("oauth2.errors.tokenRefreshFailed",{status:e.status,statusText:e.statusText}));return await e.json()}async function bee(){try{let t=r3.getOAuthCredsPath(),e=await k4.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 k4.readFile(o,"utf-8"),a=JSON.parse(s),i=1440*60*1e3,n=a.expiry_date-Date.now();if(n<0){let c=R.t("oauth2.errors.iflowLoginExpired");if(e)throw new Error(c);return r||console.log(R.t("oauth2.messages.tokenExpiredClearing")),await j7(),{isValid:!1,isExpired:!0,wasRefreshed:!1,error:c}}if(n>0&&n<i){if(!a.refresh_token){let c=R.t("oauth2.errors.tokenExpiresWarningSoon");if(e)throw new Error(c);return r||console.log(R.t("oauth2.messages.tokenExpiresSoonClearing")),await j7(),{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 k4.writeFile(o,JSON.stringify(u,null,2),{mode:384}),r||console.log(R.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(R.t("oauth2.errors.iflowLoginExpired")):c;return r||console.log(R.t("oauth2.messages.tokenRefreshFailedClearing")),await j7(),{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,Nk,vee,a0e,y_t,Q0o,cOr,s0e,Pk=j(()=>{"use strict";lOr=we(r0e(),1);G7();U7r();DE();o9e();Xi();Nk=new s9e,vee="10009311001",a0e="4Z3YjXycVsQvyGF1etiNlIBB4RsqSDtW",y_t=301,Q0o="https://iflow.cn/oauth/success",cOr="https://iflow.cn/oauth/error",s0e=new Map});var S_t,OE,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"})(OE||(OE={}));(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 W0o(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:W0o(t)}}function z0o(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 K0o(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=z0o(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 c0e(t){return this instanceof c0e?(this.v=t,this):new c0e(t)}function Y0o(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 c0e?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 J0o(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 e2o(t,e=100){return Y0o(this,arguments,function*(){let o,s=0;for(;s<e;){let a=yield c0e(t.listTools({cursor:o}));for(let i of a.tools)yield yield c0e(i),s++;if(!a.nextCursor)break;o=a.nextCursor}})}function t2o(t){return t!==null&&typeof t=="object"&&"listTools"in t&&typeof t.listTools=="function"}function fRr(...t){if(Z0o=!0,t.length===0)throw new Error("No MCP clients provided");let e=t[t.length-1];return t2o(e)?m9e.create(t,{}):m9e.create(t.slice(0,t.length-1),e)}var $0o,yOr,AOr,Or,vOr,bOr,EOr,SOr,xOr,_Or,COr,kk,TOr,wOr,IOr,DOr,OOr,ROr,NOr,POr,kOr,BOr,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,Eee,lRr,X0o,uMc,Z0o,m9e,fMc,Su=j(()=>{$0o=we(r0e(),1);vZ();(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"})(kk||(kk={}));(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"})(kOr||(kOr={}));(function(t){t.FEATURE_SELECTION_PREFERENCE_UNSPECIFIED="FEATURE_SELECTION_PREFERENCE_UNSPECIFIED",t.PRIORITIZE_QUALITY="PRIORITIZE_QUALITY",t.BALANCED="BALANCED",t.PRIORITIZE_COST="PRIORITIZE_COST"})(BOr||(BOr={}));(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={}));Eee=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={}));X0o="1.16.0",uMc=`google-genai-sdk/${X0o}`;Z0o=!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,J0o(e2o(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(),K0o(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}};fMc=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:r2o(t,o)}}function I_t(t){let e=t.response,r=new Eee;return r.candidates=e.candidates,r.automaticFunctionCallingHistory=e.automaticFunctionCallingHistory,r.promptFeedback=e.promptFeedback,r.usageMetadata=e.usageMetadata,r}function r2o(t,e){return{contents:hRr(t.contents),systemInstruction:n2o(t.config?.systemInstruction),cachedContent:t.config?.cachedContent,tools:t.config?.tools,toolConfig:t.config?.toolConfig,labels:t.config?.labels,safetySettings:t.config?.safetySettings,generationConfig:s2o(t.config),session_id:e}}function hRr(t){return Array.isArray(t)?t.map(T_t):[T_t(t)]}function n2o(t){if(t)return T_t(t)}function T_t(t){return Array.isArray(t)?{role:"user",parts:i2o(t)}:typeof t=="string"?{role:"user",parts:[{text:t}]}:"parts"in t?t:{role:"user",parts:[t]}}function i2o(t){return t.map(o2o)}function o2o(t){return typeof t=="string"?{text:t}:t}function s2o(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,$7,g9e=j(()=>{"use strict";mRr();yRr="https://cloudcode-pa.googleapis.com",ARr="v1internal",$7=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(`
|
|
395
395
|
`)),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 $7(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=a2o(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 a2o(t){if(t.currentTier)return t.currentTier;for(let e of t.allowedTiers||[])if(e.isDefault)return e;return{name:"",description:"",id:OE.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 c2o(t){See={...See,...t}}function l2o(){return See}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(`${See.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 ${See.endpoint}: ${e instanceof Error?e.message:String(e)}`}}}async function l0e(t,e){return u2o.record(t,e)}var See,y9e,u2o,O_t=j(()=>{"use strict";See={endpoint:"https://gm.mmstat.com"};y9e=class{async record(e,r){return await ERr({event_name:e,payload:r})}},u2o=new y9e});import{randomUUID as f2o}from"crypto";function d2o(){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 p2o(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 h2o(){return new Date().getTime()}function m2o(){var t=9e3,e=1e3,r=e,o=d2o(),s=h2o(),a=p2o(o),i="d",n="51fc",c=a+s+r+i+n;return r++,r>t&&(r=e),c}function g2o(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 m2o()+"00"}function xee(){return g2o(16)}function v9e(){return f2o()}function SRr(t,e){return`00-${t}-${e}-00`}var R_t=j(()=>{"use strict"});var b9e,FH,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=xee(),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 l0e("/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=xee(),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 l0e("/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=xee(),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}
|
|
396
|
-
${h.slice(0,500)}`,model:n,tool:c,sessionId:u,cliVer:"0.3.15
|
|
396
|
+
${h.slice(0,500)}`,model:n,tool:c,sessionId:u,cliVer:"0.3.15",user_id:f})};await l0e("/aitrack.lifecycle.run_error",m)}getCurrentSession(){return this.currentSession}stringifyGokey(e){return Object.entries(e).map(([r,o])=>`${encodeURIComponent(r)}=${encodeURIComponent(String(o))}`).join("&")}},FH=new b9e});import L5,{dirname as y2o,join as N_t}from"node:path";import S9e from"os";import*as xRr from"crypto";import{fileURLToPath as A2o}from"node:url";import v2o from"node:fs";function U5(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=L5.parse(t).root,s=L5.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=L5.resolve(t),o=L5.resolve(e);return L5.relative(o,r)||"."}function u0e(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 QH(t){return t.replace(/\\ /g," ")}function x9e(t){return xRr.createHash("sha256").update(t).digest("hex")}function n3(t){let e=x9e(t);return L5.join(S9e.homedir(),Xg,b2o,e)}function _9e(){return L5.join(S9e.homedir(),Xg,_Rr)}function C9e(t){return L5.join(t,Xg,_Rr)}function T9e(){if(process.env.USE_BUILTIN_RIPGREP==="0")return"rg";let t=y2o(A2o(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(v2o.existsSync(r))return r}catch{}return e[0]}function f0e(t,e){let o=S9e.platform()==="win32"?L5.win32:L5,s=o.relative(t,e);return!s.startsWith(`..${o.sep}`)&&s!==".."&&!o.isAbsolute(s)}var Xg,P_t,b2o,_Rr,_p=j(()=>{"use strict";Xg=".iflow",P_t="google_accounts.json",b2o="tmp",_Rr="commands"});import*as CRr from"os";import*as W7 from"fs";import*as M_t from"path";import{randomUUID as E2o}from"crypto";function x2o(){W7.existsSync(k_t)||W7.mkdirSync(k_t,{recursive:!0})}function _2o(){return W7.existsSync(B_t)&&W7.readFileSync(B_t,"utf-8").trim()||null}function C2o(t){W7.writeFileSync(B_t,t,"utf-8")}function w9e(){try{x2o();let t=_2o();return t||(t=E2o(),C2o(t)),t}catch(t){return console.error("Error accessing installation ID file, generating ephemeral ID:",t),"123456789"}}var S2o,k_t,B_t,L_t=j(()=>{"use strict";_p();S2o=CRr.homedir()??"",k_t=M_t.join(S2o,Xg),B_t=M_t.join(k_t,"installation_id")});var TRr=E((kMc,T2o)=>{T2o.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 Cee=me("os"),U4=me("fs"),w2o=me("path"),G_t=me("child_process").spawn,I2o=me("child_process").exec,Tee=me("child_process").execSync,D2o=me("util"),HH=process.platform,j_t=HH==="linux"||HH==="android",DRr=HH==="darwin",R9e=HH==="win32",ORr=HH==="freebsd",RRr=HH==="openbsd",NRr=HH==="netbsd",U_t=0,qH="",M4="",Bk=null,L4=null,$_t=process.env.WINDIR||"C:\\Windows",og,_ee="",d0e=[],W_t=!1,D9e="",O2o="$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8 ; ",Q_t="--###START###--",wRr="--ERROR--",O9e="--###ENDCMD###--",q_t="--##ID##--",p0e={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 R2o(t){let e=parseInt(t,10);return isNaN(e)&&(e=0),e}function N2o(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,kRr=new String().substr,BRr=new String().substring,MRr=new String().trim,LRr=new String().startsWith,URr=Math.min;function P2o(t){return t&&{}.toString.call(t)==="[object Function]"}function k2o(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 B2o(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 M2o(){return U_t===0&&(U_t=Cee.cpus().length),U_t}function Mk(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 L2o(t,e){return e=e||16,t.replace(/\\x([0-9A-Fa-f]{2})/g,function(){return String.fromCharCode(parseInt(arguments[1],e))})}function U2o(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 F2o(t,e){e=e||"",t=t.toUpperCase();let r=0,o=0,s=U2o(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 Q2o(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=F2o(i,s)}return r}function q2o(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 H2o(t,e,r){for(let o=0;o<t.length;o++)if(t[o][e]===r)return o;return-1}function V2o(){if(D9e="powershell.exe",R9e){let t=`${$_t}\\system32\\WindowsPowerShell\\v1.0\\powershell.exe`;U4.existsSync(t)&&(D9e=t)}}function FRr(){if(Cee.type()==="Windows_NT"&&!qH&&(qH=$_t+"\\system32\\wbem\\wmic.exe",!U4.existsSync(qH)))try{let t=Tee("WHERE WMIC",p0e).toString().split(`\r
|
|
397
397
|
`);t&&t.length?qH=t[0]:qH="wmic"}catch{qH="wmic"}return qH}function G2o(t){return new Promise(e=>{process.nextTick(()=>{try{QRr(FRr()+" "+t).then(r=>{e(r,"")})}catch(r){e("",r)}})})}function j2o(){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<d0e.length;a++)d0e[a].id===e&&(s=a,d0e[a].callback(o));s>=0&&d0e.splice(s,1)}function $2o(){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){_ee=_ee+t.toString("utf8"),t.indexOf(O9e)>=0&&(F_t(_ee),_ee="")}),og.stderr.on("data",function(){F_t(_ee+wRr)}),og.on("error",function(){F_t(_ee+wRr)}),og.on("close",function(){og&&og.kill()})))}function W2o(){try{og&&(og.stdin.write("exit"+Cee.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)}d0e.push({id:e,cmd:t,callback:o,start:new Date});try{og&&og.pid&&og.stdin.write(O2o+"echo "+Q_t+e+q_t+"; "+Cee.EOL+t+Cee.EOL+"echo "+O9e+Cee.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 z2o(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 K2o(){if(R9e){if(!M4)try{let r=Tee("chcp",p0e).toString().split(`\r
|
|
398
398
|
`)[0].split(":");M4=r.length>1?r[1].replace(".","").trim():""}catch{M4="437"}return M4}if(j_t||DRr||ORr||RRr||NRr){if(!M4)try{let r=Tee("echo $LANG",N9e).toString().split(`\r
|
|
399
399
|
`)[0].split(".");M4=r.length>1?r[1].trim():"",M4||(M4="UTF-8")}catch{M4="UTF-8"}return M4}}function Y2o(){if(Bk!==null)return Bk;if(Bk=!1,R9e)try{let t=Tee("WHERE smartctl 2>nul",p0e).toString().split(`\r
|
|
@@ -778,7 +778,7 @@ Bus `);for(let n=1;n<i.length;n++){let c=s3o(i[n]);r.push(c)}}t&&t(r),e(r)}),ZAo
|
|
|
778
778
|
`);o3.getValue(n,"name",":")&&r.push(_3o(n))}),t&&t(r),e(r)}),v3o&&e(null)})})}iPr.audio=C3o});var aPr=E((tLc,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 T3o=me("child_process").exec,w3o=me("child_process").execSync,I3o=me("path"),J7=vm(),D3o=aPr(),O3o=me("fs"),aB=process.platform,R3o=aB==="linux"||aB==="android",N3o=aB==="darwin",P3o=aB==="win32",k3o=aB==="freebsd",B3o=aB==="openbsd",M3o=aB==="netbsd",L3o=aB==="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 U3o(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 F3o(t){let e=parseInt(t);if(!isNaN(e))return D3o[e]}function Q3o(t,e,r){let o={};return o.device=null,o.name=J7.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||F3o(t.device_vendorID)||U3o(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 q3o(t){let e={};return e.device=null,e.name=J7.getValue(t,"name",":"),e.manufacturer=J7.getValue(t,"manufacturer",":"),e.macDevice=null,e.macHost=null,e.batteryPercent=null,e.type=ICt(e.name.toLowerCase()),e.connected=null,e}function H3o(t){return new Promise(e=>{process.nextTick(()=>{let r=[];if(R3o){J7.getFilesInPath("/var/lib/bluetooth/").forEach(s=>{let a=I3o.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=O3o.readFileSync(s,{encoding:"utf8"}).split(`
|
|
779
779
|
`);r.push(Q3o(u,n,c))}});try{let s=w3o("hcitool con",J7.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{J7.noop()}t&&t(r),e(r)}N3o&&T3o("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{J7.noop()}t&&t(r),e(r)}),P3o&&J7.powerShell("Get-CimInstance Win32_PNPEntity | select PNPClass, Name, Manufacturer | fl").then((o,s)=>{s||o.toString().split(/\n\s*\n/).forEach(i=>{J7.getValue(i.split(`
|
|
780
780
|
`),"PNPClass",":")==="Bluetooth"&&r.push(q3o(i.split(`
|
|
781
|
-
`)))}),t&&t(r),e(r)}),(k3o||M3o||B3o||L3o)&&e(null)})})}cPr.bluetoothDevices=H3o});var EPr=E(Qi=>{"use strict";var V3o=TRr().version,lB=vm(),cB=GRr(),X7=J_t(),Vx=YRr(),c7e=oNr(),uPr=cNr(),fPr=pNr(),H5=ANr(),Z7=TNr(),l7e=RNr(),P0e=kNr(),dPr=LNr(),DCt=VNr(),YH=WNr(),G3o=KNr(),pPr=ZNr(),hPr=rPr(),mPr=oPr(),gPr=lPr(),k0e=process.platform,a7e=k0e==="win32",O0e=k0e==="freebsd",R0e=k0e==="openbsd",N0e=k0e==="netbsd",q5=k0e==="sunos";a7e&&(lB.getCodepage(),lB.getPowershell());function yPr(){return V3o}function APr(t){return new Promise(e=>{process.nextTick(()=>{let r={};r.version=yPr(),Promise.all([cB.system(),cB.bios(),cB.baseboard(),cB.chassis(),X7.osInfo(),X7.uuid(),X7.versions(),Vx.cpu(),Vx.cpuFlags(),fPr.graphics(),Z7.networkInterfaces(),c7e.memLayout(),H5.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 lB.isFunction(e)&&(r=e,e=""),lB.isFunction(t)&&(r=t,t=""),new Promise(o=>{process.nextTick(()=>{e=e||Z7.getDefaultNetworkInterface(),t=t||"";let s=(function(){let i=15;return a7e&&(i=13),(O0e||R0e||N0e)&&(i=11),q5&&(i=6),function(){--i===0&&(r&&r(a),o(a))}})(),a={};a.time=X7.time(),a.node=process.versions.node,a.v8=process.versions.v8,Vx.cpuCurrentSpeed().then(i=>{a.cpuCurrentSpeed=i,s()}),dPr.users().then(i=>{a.users=i,s()}),P0e.processes().then(i=>{a.processes=i,s()}),Vx.currentLoad().then(i=>{a.currentLoad=i,s()}),q5||Vx.cpuTemperature().then(i=>{a.temp=i,s()}),!R0e&&!O0e&&!N0e&&!q5&&Z7.networkStats(e).then(i=>{a.networkStats=i,s()}),q5||Z7.networkConnections().then(i=>{a.networkConnections=i,s()}),c7e.mem().then(i=>{a.mem=i,s()}),q5||uPr().then(i=>{a.battery=i,s()}),q5||P0e.services(t).then(i=>{a.services=i,s()}),q5||H5.fsSize().then(i=>{a.fsSize=i,s()}),!a7e&&!R0e&&!O0e&&!N0e&&!q5&&H5.fsStats().then(i=>{a.fsStats=i,s()}),!a7e&&!R0e&&!O0e&&!N0e&&!q5&&H5.disksIO().then(i=>{a.disksIO=i,s()}),!R0e&&!O0e&&!N0e&&!q5&&l7e.wifiNetworks().then(i=>{a.wifiNetworks=i,s()}),DCt.inetLatency().then(i=>{a.inetLatency=i,s()})})})}function j3o(t,e,r){return new Promise(o=>{process.nextTick(()=>{let s={};e&&lB.isFunction(e)&&!r&&(r=e,e=""),t&&lB.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 $3o(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=cB.system;Qi.bios=cB.bios;Qi.baseboard=cB.baseboard;Qi.chassis=cB.chassis;Qi.time=X7.time;Qi.osInfo=X7.osInfo;Qi.versions=X7.versions;Qi.shell=X7.shell;Qi.uuid=X7.uuid;Qi.cpu=Vx.cpu;Qi.cpuFlags=Vx.cpuFlags;Qi.cpuCache=Vx.cpuCache;Qi.cpuCurrentSpeed=Vx.cpuCurrentSpeed;Qi.cpuTemperature=Vx.cpuTemperature;Qi.currentLoad=Vx.currentLoad;Qi.fullLoad=Vx.fullLoad;Qi.mem=c7e.mem;Qi.memLayout=c7e.memLayout;Qi.battery=uPr;Qi.graphics=fPr.graphics;Qi.fsSize=H5.fsSize;Qi.fsOpenFiles=H5.fsOpenFiles;Qi.blockDevices=H5.blockDevices;Qi.fsStats=H5.fsStats;Qi.disksIO=H5.disksIO;Qi.diskLayout=H5.diskLayout;Qi.networkInterfaceDefault=Z7.networkInterfaceDefault;Qi.networkGatewayDefault=Z7.networkGatewayDefault;Qi.networkInterfaces=Z7.networkInterfaces;Qi.networkStats=Z7.networkStats;Qi.networkConnections=Z7.networkConnections;Qi.wifiNetworks=l7e.wifiNetworks;Qi.wifiInterfaces=l7e.wifiInterfaces;Qi.wifiConnections=l7e.wifiConnections;Qi.services=P0e.services;Qi.processes=P0e.processes;Qi.processLoad=P0e.processLoad;Qi.users=dPr.users;Qi.inetChecksite=DCt.inetChecksite;Qi.inetLatency=DCt.inetLatency;Qi.dockerInfo=YH.dockerInfo;Qi.dockerImages=YH.dockerImages;Qi.dockerContainers=YH.dockerContainers;Qi.dockerContainerStats=YH.dockerContainerStats;Qi.dockerContainerProcesses=YH.dockerContainerProcesses;Qi.dockerVolumes=YH.dockerVolumes;Qi.dockerAll=YH.dockerAll;Qi.vboxInfo=G3o.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=j3o;Qi.get=bPr;Qi.observe=$3o;Qi.powerShellStart=lB.powerShellStart;Qi.powerShellRelease=lB.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=${K3o[process.platform]||process.platform}`,`os=${W3o[process.platform]||process.platform}`,`o=${z3o[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 W3o,z3o,K3o,NCt=j(()=>{"use strict";RCt();W3o={darwin:encodeURIComponent("Mac OS X"),win32:"Windows",linux:"Linux"},z3o={darwin:"mac",win32:"win"},K3o={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 eO,PCt=j(()=>{eO="1.9.0"});function Y3o(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=Y3o(eO)});function V5(t,e,r,o){var s;o===void 0&&(o=!1);var a=M0e[B0e]=(s=M0e[B0e])!==null&&s!==void 0?s:{version:eO};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!==eO){var i=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+eO);return r.error(i.stack||i.message),!1}return a[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+eO+"."),!0}function NE(t){var e,r,o=(e=M0e[B0e])===null||e===void 0?void 0:e.version;if(!(!o||!DPr(o)))return(r=M0e[B0e])===null||r===void 0?void 0:r[t]}function G5(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+eO+".");var r=M0e[B0e];r&&delete r[t]}var J3o,B0e,M0e,JH=j(()=>{wPr();PCt();OPr();J3o=eO.split(".")[0],B0e=Symbol.for("opentelemetry.js.api."+J3o),M0e=_Pr});function L0e(t,e,r){var o=NE("diag");if(o)return r.unshift(e),o[t].apply(o,Z3o([],X3o(r),!1))}var X3o,Z3o,RPr,NPr=j(()=>{JH();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))},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 L0e("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return L0e("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return L0e("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return L0e("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return L0e("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 kPr=j(()=>{f7e()});var evo,tvo,rvo,Y1,XH=j(()=>{NPr();kPr();f7e();JH();evo=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},tvo=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))},rvo="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=NE("diag");if(n)return n[s].apply(n,tvo([],evo(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=NE("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 V5("diag",d,r,!0)};r.setLogger=o,r.disable=function(){G5(rvo,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 nvo,ivo,BPr,MPr=j(()=>{nvo=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},ivo=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.")},BPr=(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=nvo(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=ivo(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 BPr(new Map(Object.entries(t)))}function QPr(t){return typeof t!="string"&&(ovo.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:LPr,toString:function(){return t}}}var ovo,kCt=j(()=>{XH();MPr();UPr();ovo=Y1.instance()});function Gee(t){return Symbol.for(t)}var svo,d7e,U0e=j(()=>{svo=(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 svo});var BCt,F0e,qPr=j(()=>{BCt=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],F0e=(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<BCt.length;r++)this[BCt[r].n]=e(BCt[r].c)}return t})()});function HPr(){return LCt}var ZH,avo,p7e,cvo,lvo,uvo,fvo,MCt,dvo,pvo,hvo,LCt,mvo,gvo,yvo,Avo,vvo,bvo,Evo,UCt=j(()=>{ZH=(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)}})(),avo=(function(){function t(){}return t.prototype.createGauge=function(e,r){return gvo},t.prototype.createHistogram=function(e,r){return yvo},t.prototype.createCounter=function(e,r){return mvo},t.prototype.createUpDownCounter=function(e,r){return Avo},t.prototype.createObservableGauge=function(e,r){return bvo},t.prototype.createObservableCounter=function(e,r){return vvo},t.prototype.createObservableUpDownCounter=function(e,r){return Evo},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t})(),p7e=(function(){function t(){}return t})(),cvo=(function(t){ZH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,o){},e})(p7e),lvo=(function(t){ZH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,o){},e})(p7e),uvo=(function(t){ZH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,o){},e})(p7e),fvo=(function(t){ZH(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})(),dvo=(function(t){ZH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(MCt),pvo=(function(t){ZH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(MCt),hvo=(function(t){ZH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(MCt),LCt=new avo,mvo=new cvo,gvo=new uvo,yvo=new fvo,Avo=new lvo,vvo=new dvo,bvo=new pvo,Evo=new hvo});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 Svo,xvo,GPr,jPr=j(()=>{U0e();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))},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,xvo([o],Svo(s),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t})()});var _vo,Cvo,QCt,Tvo,uB,Q0e=j(()=>{jPr();JH();XH();_vo=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},Cvo=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",Tvo=new GPr,uB=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return V5(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,Cvo([e,r,o],_vo(a),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return NE(QCt)||Tvo},t.prototype.disable=function(){this._getContextManager().disable(),G5(QCt,Y1.instance())},t})()});var jee,qCt=j(()=>{(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(jee||(jee={}))});var q0e,H0e,g7e,y7e=j(()=>{qCt();q0e="0000000000000000",H0e="00000000000000000000000000000000",g7e={traceId:H0e,spanId:q0e,traceFlags:jee.NONE}});var fB,A7e=j(()=>{y7e();fB=(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(uB.getInstance().active())}function V0e(t,e){return t.setValue(HCt,e)}function WPr(t){return t.deleteValue(HCt)}function zPr(t,e){return V0e(t,new fB(e))}function b7e(t){var e;return(e=v7e(t))===null||e===void 0?void 0:e.spanContext()}var HCt,VCt=j(()=>{U0e();A7e();Q0e();HCt=Gee("OpenTelemetry Context Key SPAN")});function GCt(t){return wvo.test(t)&&t!==H0e}function jCt(t){return Ivo.test(t)&&t!==q0e}function $ee(t){return GCt(t.traceId)&&jCt(t.spanId)}function KPr(t){return new fB(t)}var wvo,Ivo,E7e=j(()=>{y7e();A7e();wvo=/^([0-9a-f]{32})$/i,Ivo=/^[0-9a-f]{16}$/i});function Dvo(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var $Ct,S7e,WCt=j(()=>{Q0e();VCt();A7e();E7e();$Ct=uB.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 fB;var a=o&&b7e(o);return Dvo(a)&&$ee(a)?new fB(a):new fB},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=V0e(c,u);return $Ct.with(f,n,void 0,u)}},t})()});var Ovo,x7e,zCt=j(()=>{WCt();Ovo=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):Ovo},t})()});var YPr,JPr=j(()=>{WCt();YPr=(function(){function t(){}return t.prototype.getTracer=function(e,r,o){return new S7e},t})()});var Rvo,G0e,KCt=j(()=>{zCt();JPr();Rvo=new YPr,G0e=(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:Rvo},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 Gx,ekr=j(()=>{(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(Gx||(Gx={}))});function tkr(t){return kvo.test(t)}function rkr(t){return Bvo.test(t)&&!Mvo.test(t)}var YCt,Nvo,Pvo,kvo,Bvo,Mvo,nkr=j(()=>{YCt="[_0-9a-z-*/]",Nvo="[a-z]"+YCt+"{0,255}",Pvo="[a-z0-9]"+YCt+"{0,240}@[a-z]"+YCt+"{0,13}",kvo=new RegExp("^(?:"+Nvo+"|"+Pvo+")$"),Bvo=/^[ -~]{0,255}[!-~]$/,Mvo=/,|=/});var ikr,Lvo,okr,skr,akr,ckr=j(()=>{nkr();ikr=32,Lvo=512,okr=",",skr="=",akr=(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+skr+e.get(o)),r},[]).join(okr)},t.prototype._parse=function(e){e.length>Lvo||(this._internalState=e.split(okr).reverse().reduce(function(r,o){var s=o.trim(),a=s.indexOf(skr);if(a!==-1){var i=s.slice(0,a),n=s.slice(a+1,o.length);tkr(i)&&rkr(n)&&r.set(i,n)}return r},new Map),this._internalState.size>ikr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,ikr))))},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 lkr(t){return new akr(t)}var ukr=j(()=>{ckr()});var J1,fkr=j(()=>{Q0e();J1=uB.getInstance()});var Er,dkr=j(()=>{XH();Er=Y1.instance()});var Uvo,pkr,hkr=j(()=>{UCt();Uvo=(function(){function t(){}return t.prototype.getMeter=function(e,r,o){return LCt},t})(),pkr=new Uvo});var JCt,mkr,gkr=j(()=>{hkr();JH();XH();JCt="metrics",mkr=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return V5(JCt,e,Y1.instance())},t.prototype.getMeterProvider=function(){return NE(JCt)||pkr},t.prototype.getMeter=function(e,r,o){return this.getMeterProvider().getMeter(e,r,o)},t.prototype.disable=function(){G5(JCt,Y1.instance())},t})()});var j0e,ykr=j(()=>{gkr();j0e=mkr.getInstance()});var Akr,vkr=j(()=>{Akr=(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 bkr(){return ZCt(uB.getInstance().active())}function Ekr(t,e){return t.setValue(XCt,e)}function Skr(t){return t.deleteValue(XCt)}var XCt,xkr=j(()=>{Q0e();U0e();XCt=Gee("OpenTelemetry Baggage Key")});var eTt,Fvo,_kr,Ckr=j(()=>{JH();vkr();FCt();xkr();kCt();XH();eTt="propagation",Fvo=new Akr,_kr=(function(){function t(){this.createBaggage=FPr,this.getBaggage=ZCt,this.getActiveBaggage=bkr,this.setBaggage=Ekr,this.deleteBaggage=Skr}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return V5(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(){G5(eTt,Y1.instance())},t.prototype._getGlobalPropagator=function(){return NE(eTt)||Fvo},t})()});var tTt,Tkr=j(()=>{Ckr();tTt=_kr.getInstance()});var rTt,wkr,Ikr=j(()=>{JH();KCt();E7e();VCt();XH();rTt="trace",wkr=(function(){function t(){this._proxyTracerProvider=new G0e,this.wrapSpanContext=KPr,this.isSpanContextValid=$ee,this.deleteSpan=WPr,this.getSpan=v7e,this.getActiveSpan=$Pr,this.getSpanContext=b7e,this.setSpan=V0e,this.setSpanContext=zPr}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=V5(rTt,this._proxyTracerProvider,Y1.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return NE(rTt)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){G5(rTt,Y1.instance()),this._proxyTracerProvider=new G0e},t})()});var s3,Dkr=j(()=>{Ikr();s3=wkr.getInstance()});var xt={};ss(xt,{DiagConsoleLogger:()=>F0e,DiagLogLevel:()=>Sm,INVALID_SPANID:()=>q0e,INVALID_SPAN_CONTEXT:()=>g7e,INVALID_TRACEID:()=>H0e,ProxyTracer:()=>x7e,ProxyTracerProvider:()=>G0e,ROOT_CONTEXT:()=>d7e,SamplingDecision:()=>_7e,SpanKind:()=>C7e,SpanStatusCode:()=>Gx,TraceFlags:()=>jee,ValueType:()=>e0,baggageEntryMetadataFromString:()=>QPr,context:()=>J1,createContextKey:()=>Gee,createNoopMeter:()=>HPr,createTraceState:()=>lkr,default:()=>Qvo,defaultTextMapGetter:()=>h7e,defaultTextMapSetter:()=>m7e,diag:()=>Er,isSpanContextValid:()=>$ee,isValidSpanId:()=>jCt,isValidTraceId:()=>GCt,metrics:()=>j0e,propagation:()=>tTt,trace:()=>s3});var Qvo,ut=j(()=>{kCt();U0e();qPr();f7e();UCt();VPr();FCt();zCt();KCt();XPr();ZPr();ekr();qCt();ukr();E7e();y7e();fkr();dkr();ykr();Tkr();Dkr();Qvo={context:J1,diag:Er,metrics:j0e,propagation:tTt,trace:s3}});var z2,Okr,$0e,Rkr,W0e,z0e,Nkr,Pkr,kkr,Bkr,Mkr,Lkr,Ukr,Fkr,Qkr,qkr,Hkr,Vkr,Gkr,jkr,$kr,K0e=j(()=>{"use strict";z2="iflow-cli",Okr="iflow_cli.user_prompt",$0e="iflow_cli.tool_call",Rkr="iflow_cli.api_request",W0e="iflow_cli.api_error",z0e="iflow_cli.api_response",Nkr="iflow_cli.config",Pkr="iflow_cli.flash_fallback",kkr="iflow_cli.next_speaker_check",Bkr="iflow_cli.slash_command",Mkr="iflow_cli.tool.call.count",Lkr="iflow_cli.tool.call.latency",Ukr="gen_ai.client.operation",Fkr="gen_ai.client.operation.duration",Qkr="gen_ai.client.token.usage",qkr="iflow_cli.session.count",Hkr="iflow_cli.file.operation.count",Vkr="iflow_cli.user_request.count",Gkr="iflow_cli.user_request.latency",jkr="iflow_cli.user_experience.success",$kr="iflow_cli.user.identity"});import*as Wkr from"os";function jx(t){let e="0.3.15-beta.0",r={darwin:"macOS",win32:"Windows",linux:"Linux",freebsd:"FreeBSD",openbsd:"OpenBSD",sunos:"SunOS",aix:"AIX"},o=Wkr.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 zkr(){return nTt||(nTt=j0e.getMeter(z2)),nTt}function Kkr(){if(q4)return;let t=zkr();t&&(iTt=t.createCounter(Mkr,{description:"Counts tool calls, tagged by function name and success.",valueType:e0.INT}),oTt=t.createHistogram(Lkr,{description:"Latency of tool calls in milliseconds.",unit:"ms",valueType:e0.INT}),Y0e=t.createCounter(Ukr,{description:"Counts API requests, tagged by model and status.",valueType:e0.INT}),J0e=t.createHistogram(Fkr,{description:"Latency of API requests in milliseconds.",unit:"ms",valueType:e0.INT}),sTt=t.createCounter(Qkr,{description:"Counts the total number of tokens used.",valueType:e0.INT}),aTt=t.createCounter(Hkr,{description:"Counts file operations (create, read, update).",valueType:e0.INT}),cTt=t.createCounter(Vkr,{description:"Counts user requests from prompt to completion.",valueType:e0.INT}),lTt=t.createHistogram(Gkr,{description:"End-to-end latency of user requests in milliseconds.",unit:"ms",valueType:e0.INT}),uTt=t.createCounter(jkr,{description:"User experience success rate - counts successful user experiences including retries and fixes.",valueType:e0.INT}),fTt=t.createCounter($kr,{description:"User identity for tracking unique installations.",valueType:e0.INT}),q4=!0)}function T7e(t){let e=zkr();if(!e||!q4)return;e.createCounter(qkr,{description:"Count of CLI sessions started.",valueType:e0.INT}).add(1,jx(t))}function Ykr(t,e,r,o,s){if(!iTt||!oTt||!q4)return;let a={...jx(t),function_name:e??"unknown",success:String(o),decision:s??"unknown"};iTt.add(1,a),oTt.record(r,{...jx(t),function_name:e??"unknown"})}function Wee(t,e,r,o){!sTt||!q4||sTt.add(r,{...jx(t),model:e??"unknown",type:o??"unknown"})}function Jkr(t,e,r,o,s,a,i,n){if(!Y0e||!J0e||!q4)return;let c={...jx(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),Y0e.add(1,c);let u={...jx(t),model:e??"unknown",http_status_code:String(i??200),finish_reason:a??"unknown"};n!=null&&(u.business_code=String(n)),J0e.record(r,u)}function Xkr(t,e,r,o,s,a,i){if(!Y0e||!J0e||!q4)return;let n={...jx(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)),Y0e.add(1,n);let c={...jx(t),model:e??"unknown",http_status_code:String(a??0),error:s??"unknown"};i!=null&&(c.business_code=String(i)),J0e.record(r,c)}function eV(t,e,r,o,s){if(!aTt||!q4)return;let a={...jx(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 Zkr(t,e,r,o,s){if(!cTt||!lTt||!q4)return;let a={...jx(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||!q4)return;let a={...jx(t),success:String(e),had_retries:String(r),had_fixes:String(o)};s&&(a.final_error=s),uTt.add(1,a)}function eBr(t,e){if(!fTt||!q4)return;let r={...jx(t),user_id:e};fTt.add(1,r)}var tO,nTt,iTt,oTt,Y0e,J0e,sTt,aTt,cTt,lTt,uTt,fTt,q4,j5=j(()=>{"use strict";ut();K0e();DE();(function(t){t.CREATE="create",t.READ="read",t.UPDATE="update"})(tO||(tO={}));q4=!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();eBr(t,o),await FH.startSession(s,o,e,r)}catch(s){t.getDebugMode()&&console.error("Failed to initialize CLI telemetry:",s)}}async function X0e(t){try{if(t.getDisableTelemetry())return;await FH.endSession()}catch(e){t.getDebugMode()&&console.error("Failed to cleanup CLI telemetry:",e)}}async function w7e(t,e){if(!t.getDisableTelemetry())try{await FH.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();j5();});var tBr=E(Z0e=>{"use strict";Object.defineProperty(Z0e,"__esModule",{value:!0});Z0e.SeverityNumber=void 0;var qvo;(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"})(qvo=Z0e.SeverityNumber||(Z0e.SeverityNumber={}))});var D7e=E(zee=>{"use strict";Object.defineProperty(zee,"__esModule",{value:!0});zee.NOOP_LOGGER=zee.NoopLogger=void 0;var I7e=class{emit(e){}};zee.NoopLogger=I7e;zee.NOOP_LOGGER=new I7e});var R7e=E(Kee=>{"use strict";Object.defineProperty(Kee,"__esModule",{value:!0});Kee.NOOP_LOGGER_PROVIDER=Kee.NoopLoggerProvider=void 0;var Hvo=D7e(),O7e=class{getLogger(e,r,o){return new Hvo.NoopLogger}};Kee.NoopLoggerProvider=O7e;Kee.NOOP_LOGGER_PROVIDER=new O7e});var gTt=E(N7e=>{"use strict";Object.defineProperty(N7e,"__esModule",{value:!0});N7e.ProxyLogger=void 0;var Vvo=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):Vvo.NOOP_LOGGER}};N7e.ProxyLogger=mTt});var ATt=E(P7e=>{"use strict";Object.defineProperty(P7e,"__esModule",{value:!0});P7e.ProxyLoggerProvider=void 0;var Gvo=R7e(),jvo=gTt(),yTt=class{getLogger(e,r,o){var s;return(s=this._getDelegateLogger(e,r,o))!==null&&s!==void 0?s:new jvo.ProxyLogger(this,e,r,o)}_getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:Gvo.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 rBr=E(k7e=>{"use strict";Object.defineProperty(k7e,"__esModule",{value:!0});k7e._globalThis=void 0;k7e._globalThis=typeof globalThis=="object"?globalThis:global});var nBr=E(B7e=>{"use strict";Object.defineProperty(B7e,"__esModule",{value:!0});B7e._globalThis=void 0;var $vo=rBr();Object.defineProperty(B7e,"_globalThis",{enumerable:!0,get:function(){return $vo._globalThis}})});var iBr=E(M7e=>{"use strict";Object.defineProperty(M7e,"__esModule",{value:!0});M7e._globalThis=void 0;var Wvo=nBr();Object.defineProperty(M7e,"_globalThis",{enumerable:!0,get:function(){return Wvo._globalThis}})});var oBr=E($5=>{"use strict";Object.defineProperty($5,"__esModule",{value:!0});$5.API_BACKWARDS_COMPATIBILITY_VERSION=$5.makeGetter=$5._global=$5.GLOBAL_LOGS_API_KEY=void 0;var zvo=iBr();$5.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");$5._global=zvo._globalThis;function Kvo(t,e,r){return o=>o===t?e:r}$5.makeGetter=Kvo;$5.API_BACKWARDS_COMPATIBILITY_VERSION=1});var aBr=E(L7e=>{"use strict";Object.defineProperty(L7e,"__esModule",{value:!0});L7e.LogsAPI=void 0;var $x=oBr(),Yvo=R7e(),sBr=ATt(),vTt=class t{constructor(){this._proxyLoggerProvider=new sBr.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return $x._global[$x.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():($x._global[$x.GLOBAL_LOGS_API_KEY]=(0,$x.makeGetter)($x.API_BACKWARDS_COMPATIBILITY_VERSION,e,Yvo.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=$x._global[$x.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call($x._global,$x.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,o){return this.getLoggerProvider().getLogger(e,r,o)}disable(){delete $x._global[$x.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new sBr.ProxyLoggerProvider}};L7e.LogsAPI=vTt});var Yee=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 Jvo=tBr();Object.defineProperty(t0,"SeverityNumber",{enumerable:!0,get:function(){return Jvo.SeverityNumber}});var cBr=D7e();Object.defineProperty(t0,"NOOP_LOGGER",{enumerable:!0,get:function(){return cBr.NOOP_LOGGER}});Object.defineProperty(t0,"NoopLogger",{enumerable:!0,get:function(){return cBr.NoopLogger}});var lBr=R7e();Object.defineProperty(t0,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return lBr.NOOP_LOGGER_PROVIDER}});Object.defineProperty(t0,"NoopLoggerProvider",{enumerable:!0,get:function(){return lBr.NoopLoggerProvider}});var Xvo=gTt();Object.defineProperty(t0,"ProxyLogger",{enumerable:!0,get:function(){return Xvo.ProxyLogger}});var Zvo=ATt();Object.defineProperty(t0,"ProxyLoggerProvider",{enumerable:!0,get:function(){return Zvo.ProxyLoggerProvider}});var ebo=aBr();t0.logs=ebo.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 uBr,fBr,dBr,pBr,hBr,mBr,gBr,yBr,ABr,vBr,bBr,EBr,SBr,xBr,_Br,CBr,TBr,wBr,IBr,DBr,OBr,RBr,NBr,PBr,kBr,BBr,MBr,LBr,UBr,FBr,QBr,qBr,HBr,VBr,GBr,jBr,$Br,WBr,zBr,KBr,YBr,JBr,XBr,ZBr,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,kMr,BMr,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,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,kbo,Bbo,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,kEo,BEo,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,vSo,bSo,Jee,OLr,RLr,NLr,PLr,kLr,BLr,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,ESo,SSo,xSo,_So,CSo,TSo,wSo,ISo,DSo,OSo,RSo,NSo,PSo,kSo,BSo,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,pxo,hxo,xUr,_Ur,CUr,TUr,wUr,IUr,DUr,OUr,RUr,NUr,PUr,mxo,gxo,yxo,Axo,vxo,bxo,Exo,Sxo,xxo,_xo,Cxo,Txo,kUr,BUr,MUr,LUr,UUr,wxo,Ixo,Dxo,Oxo,Rxo,Nxo,FUr,QUr,qUr,Pxo,kxo,Bxo,Mxo,HUr,VUr,GUr,jUr,Lxo,Uxo,Fxo,Qxo,qxo,$Ur,WUr,zUr,KUr,YUr,JUr,XUr,Hxo,Vxo,Gxo,jxo,$xo,Wxo,zxo,Kxo,ZUr,eFr,tFr,rFr,nFr,Yxo,Jxo,Xxo,Zxo,e_o,t_o,iFr,oFr,sFr,aFr,cFr,lFr,uFr,fFr,dFr,pFr,hFr,mFr,gFr,yFr,AFr,vFr,bFr,EFr,SFr,xFr,_Fr,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,S_o,x_o,CFr,TFr,wFr,IFr,DFr,__o,C_o,T_o,w_o,I_o,D_o,OFr,RFr,O_o,R_o,N_o,NFr,PFr,P_o,k_o,B_o,kFr,BFr,MFr,LFr,UFr,FFr,QFr,qFr,HFr,VFr,GFr,jFr,$Fr,WFr,zFr,KFr,YFr,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,X_o,Z_o,JFr,XFr,eCo,tCo,rCo,ZFr=j(()=>{bTt();uBr="aws.lambda.invoked_arn",fBr="db.system",dBr="db.connection_string",pBr="db.user",hBr="db.jdbc.driver_classname",mBr="db.name",gBr="db.statement",yBr="db.operation",ABr="db.mssql.instance_name",vBr="db.cassandra.keyspace",bBr="db.cassandra.page_size",EBr="db.cassandra.consistency_level",SBr="db.cassandra.table",xBr="db.cassandra.idempotence",_Br="db.cassandra.speculative_execution_count",CBr="db.cassandra.coordinator.id",TBr="db.cassandra.coordinator.dc",wBr="db.hbase.namespace",IBr="db.redis.database_index",DBr="db.mongodb.collection",OBr="db.sql.table",RBr="exception.type",NBr="exception.message",PBr="exception.stacktrace",kBr="exception.escaped",BBr="faas.trigger",MBr="faas.execution",LBr="faas.document.collection",UBr="faas.document.operation",FBr="faas.document.time",QBr="faas.document.name",qBr="faas.time",HBr="faas.cron",VBr="faas.coldstart",GBr="faas.invoked_name",jBr="faas.invoked_provider",$Br="faas.invoked_region",WBr="net.transport",zBr="net.peer.ip",KBr="net.peer.port",YBr="net.peer.name",JBr="net.host.ip",XBr="net.host.port",ZBr="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",kMr="aws.dynamodb.provisioned_read_capacity",BMr="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",tbo=uBr,rbo=fBr,nbo=dBr,ibo=pBr,obo=hBr,sbo=mBr,abo=gBr,cbo=yBr,lbo=ABr,ubo=vBr,fbo=bBr,dbo=EBr,pbo=SBr,hbo=xBr,mbo=_Br,gbo=CBr,ybo=TBr,Abo=wBr,vbo=IBr,bbo=DBr,Ebo=OBr,Sbo=RBr,xbo=NBr,_bo=PBr,Cbo=kBr,Tbo=BBr,wbo=MBr,Ibo=LBr,Dbo=UBr,Obo=FBr,Rbo=QBr,Nbo=qBr,Pbo=HBr,kbo=VBr,Bbo=GBr,Mbo=jBr,Lbo=$Br,Ubo=WBr,Fbo=zBr,Qbo=KBr,qbo=YBr,Hbo=JBr,Vbo=XBr,Gbo=ZBr,jbo=eMr,$bo=tMr,Wbo=rMr,zbo=nMr,Kbo=iMr,Ybo=oMr,Jbo=sMr,Xbo=aMr,Zbo=cMr,eEo=lMr,tEo=uMr,rEo=fMr,nEo=dMr,iEo=pMr,oEo=hMr,sEo=mMr,aEo=gMr,cEo=yMr,lEo=AMr,uEo=vMr,fEo=bMr,dEo=EMr,pEo=SMr,hEo=xMr,mEo=_Mr,gEo=CMr,yEo=TMr,AEo=wMr,vEo=IMr,bEo=DMr,EEo=OMr,SEo=RMr,xEo=NMr,_Eo=PMr,CEo=kMr,TEo=BMr,wEo=MMr,IEo=LMr,DEo=UMr,OEo=FMr,REo=QMr,NEo=qMr,PEo=HMr,kEo=VMr,BEo=GMr,MEo=jMr,LEo=$Mr,UEo=WMr,FEo=zMr,QEo=KMr,qEo=YMr,HEo=JMr,VEo=XMr,GEo=ZMr,jEo=eLr,$Eo=tLr,WEo=rLr,zEo=nLr,KEo=iLr,YEo=oLr,JEo=sLr,XEo=aLr,ZEo=cLr,eSo=lLr,tSo=uLr,rSo=fLr,nSo=dLr,iSo=pLr,oSo=hLr,sSo=mLr,aSo=gLr,cSo=yLr,lSo=ALr,uSo=vLr,fSo=bLr,dSo=ELr,pSo=SLr,hSo=xLr,mSo=_Lr,gSo=CLr,ySo=TLr,ASo=wLr,vSo=ILr,bSo=DLr,Jee=Ph([uBr,fBr,dBr,pBr,hBr,mBr,gBr,yBr,ABr,vBr,bBr,EBr,SBr,xBr,_Br,CBr,TBr,wBr,IBr,DBr,OBr,RBr,NBr,PBr,kBr,BBr,MBr,LBr,UBr,FBr,QBr,qBr,HBr,VBr,GBr,jBr,$Br,WBr,zBr,KBr,YBr,JBr,XBr,ZBr,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,kMr,BMr,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",kLr="db2",BLr="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",ESo=OLr,SSo=RLr,xSo=NLr,_So=PLr,CSo=kLr,TSo=BLr,wSo=MLr,ISo=LLr,DSo=ULr,OSo=FLr,RSo=QLr,NSo=qLr,PSo=HLr,kSo=VLr,BSo=GLr,MSo=jLr,LSo=$Lr,USo=WLr,FSo=zLr,QSo=KLr,qSo=YLr,HSo=JLr,VSo=XLr,GSo=ZLr,jSo=eUr,$So=tUr,WSo=rUr,zSo=nUr,KSo=iUr,YSo=oUr,JSo=sUr,XSo=aUr,ZSo=cUr,exo=lUr,txo=uUr,rxo=fUr,nxo=dUr,ixo=pUr,oxo=hUr,sxo=mUr,axo=gUr,cxo=yUr,lxo=AUr,uxo=vUr,fxo=bUr,dxo=EUr,pxo=SUr,hxo=Ph([OLr,RLr,NLr,PLr,kLr,BLr,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",mxo=xUr,gxo=_Ur,yxo=CUr,Axo=TUr,vxo=wUr,bxo=IUr,Exo=DUr,Sxo=OUr,xxo=RUr,_xo=NUr,Cxo=PUr,Txo=Ph([xUr,_Ur,CUr,TUr,wUr,IUr,DUr,OUr,RUr,NUr,PUr]),kUr="datasource",BUr="http",MUr="pubsub",LUr="timer",UUr="other",wxo=kUr,Ixo=BUr,Dxo=MUr,Oxo=LUr,Rxo=UUr,Nxo=Ph([kUr,BUr,MUr,LUr,UUr]),FUr="insert",QUr="edit",qUr="delete",Pxo=FUr,kxo=QUr,Bxo=qUr,Mxo=Ph([FUr,QUr,qUr]),HUr="alibaba_cloud",VUr="aws",GUr="azure",jUr="gcp",Lxo=HUr,Uxo=VUr,Fxo=GUr,Qxo=jUr,qxo=Ph([HUr,VUr,GUr,jUr]),$Ur="ip_tcp",WUr="ip_udp",zUr="ip",KUr="unix",YUr="pipe",JUr="inproc",XUr="other",Hxo=$Ur,Vxo=WUr,Gxo=zUr,jxo=KUr,$xo=YUr,Wxo=JUr,zxo=XUr,Kxo=Ph([$Ur,WUr,zUr,KUr,YUr,JUr,XUr]),ZUr="wifi",eFr="wired",tFr="cell",rFr="unavailable",nFr="unknown",Yxo=ZUr,Jxo=eFr,Xxo=tFr,Zxo=rFr,e_o=nFr,t_o=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",r_o=iFr,n_o=oFr,i_o=sFr,o_o=aFr,s_o=cFr,a_o=lFr,c_o=uFr,l_o=fFr,u_o=dFr,f_o=pFr,d_o=hFr,p_o=mFr,h_o=gFr,m_o=yFr,g_o=AFr,y_o=vFr,A_o=bFr,v_o=EFr,b_o=SFr,E_o=xFr,S_o=_Fr,x_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",__o=CFr,C_o=TFr,T_o=wFr,w_o=IFr,I_o=DFr,D_o={HTTP_1_0:CFr,HTTP_1_1:TFr,HTTP_2_0:wFr,SPDY:IFr,QUIC:DFr},OFr="queue",RFr="topic",O_o=OFr,R_o=RFr,N_o=Ph([OFr,RFr]),NFr="receive",PFr="process",P_o=NFr,k_o=PFr,B_o=Ph([NFr,PFr]),kFr=0,BFr=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,M_o=kFr,L_o=BFr,U_o=MFr,F_o=LFr,Q_o=UFr,q_o=FFr,H_o=QFr,V_o=qFr,G_o=HFr,j_o=VFr,$_o=GFr,W_o=jFr,z_o=$Fr,K_o=WFr,Y_o=zFr,J_o=KFr,X_o=YFr,Z_o={OK:kFr,CANCELLED:BFr,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",eCo=JFr,tCo=XFr,rCo=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,kQr,BQr,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,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,kCo,BCo,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,DTo,OTo,Iqr,Dqr,Oqr,Rqr,RTo,NTo,PTo,kTo,BTo,Nqr,Pqr,kqr,Bqr,Mqr,Lqr,Uqr,Fqr,Qqr,qqr,Hqr,Vqr,Gqr,jqr,$qr,Wqr,zqr,MTo,LTo,UTo,FTo,QTo,qTo,HTo,VTo,GTo,jTo,$To,WTo,zTo,KTo,YTo,JTo,XTo,ZTo,Kqr,Yqr,e4o,t4o,r4o,Jqr,Xqr,Zqr,eHr,tHr,rHr,nHr,n4o,i4o,o4o,s4o,a4o,c4o,l4o,u4o,iHr,oHr,sHr,aHr,cHr,lHr,uHr,fHr,dHr,pHr,hHr,f4o,d4o,p4o,h4o,m4o,g4o,y4o,A4o,v4o,b4o,E4o,S4o,mHr,gHr,yHr,AHr,vHr,bHr,EHr,SHr,xHr,_Hr,x4o,_4o,C4o,T4o,w4o,I4o,D4o,O4o,R4o,N4o,P4o,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",kQr="host.arch",BQr="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",nCo=tQr,iCo=rQr,oCo=nQr,sCo=iQr,aCo=oQr,cCo=sQr,lCo=aQr,uCo=cQr,fCo=lQr,dCo=uQr,pCo=fQr,hCo=dQr,mCo=pQr,gCo=hQr,yCo=mQr,ACo=gQr,vCo=yQr,bCo=AQr,ECo=vQr,SCo=bQr,xCo=EQr,_Co=SQr,CCo=xQr,TCo=_Qr,wCo=CQr,ICo=TQr,DCo=wQr,OCo=IQr,RCo=DQr,NCo=OQr,PCo=RQr,kCo=NQr,BCo=PQr,MCo=kQr,LCo=BQr,UCo=MQr,FCo=LQr,QCo=UQr,qCo=FQr,HCo=QQr,VCo=qQr,GCo=HQr,jCo=VQr,$Co=GQr,WCo=jQr,zCo=$Qr,KCo=WQr,YCo=zQr,JCo=KQr,XCo=YQr,ZCo=JQr,eTo=XQr,tTo=ZQr,rTo=eqr,nTo=tqr,iTo=rqr,oTo=nqr,sTo=iqr,aTo=oqr,cTo=sqr,lTo=aqr,uTo=cqr,fTo=lqr,dTo=uqr,pTo=fqr,hTo=dqr,mTo=pqr,gTo=hqr,yTo=mqr,ATo=gqr,vTo=yqr,bTo=Aqr,ETo=vqr,STo=bqr,xTo=Eqr,_To=Sqr,CTo=xqr,TTo=_qr,wTo=Cqr,ITo=Tqr,DTo=wqr,OTo=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,kQr,BQr,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",RTo=Iqr,NTo=Dqr,PTo=Oqr,kTo=Rqr,BTo=Ph([Iqr,Dqr,Oqr,Rqr]),Nqr="alibaba_cloud_ecs",Pqr="alibaba_cloud_fc",kqr="aws_ec2",Bqr="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",MTo=Nqr,LTo=Pqr,UTo=kqr,FTo=Bqr,QTo=Mqr,qTo=Lqr,HTo=Uqr,VTo=Fqr,GTo=Qqr,jTo=qqr,$To=Hqr,WTo=Vqr,zTo=Gqr,KTo=jqr,YTo=$qr,JTo=Wqr,XTo=zqr,ZTo=Ph([Nqr,Pqr,kqr,Bqr,Mqr,Lqr,Uqr,Fqr,Qqr,qqr,Hqr,Vqr,Gqr,jqr,$qr,Wqr,zqr]),Kqr="ec2",Yqr="fargate",e4o=Kqr,t4o=Yqr,r4o=Ph([Kqr,Yqr]),Jqr="amd64",Xqr="arm32",Zqr="arm64",eHr="ia64",tHr="ppc32",rHr="ppc64",nHr="x86",n4o=Jqr,i4o=Xqr,o4o=Zqr,s4o=eHr,a4o=tHr,c4o=rHr,l4o=nHr,u4o=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",f4o=iHr,d4o=oHr,p4o=sHr,h4o=aHr,m4o=cHr,g4o=lHr,y4o=uHr,A4o=fHr,v4o=dHr,b4o=pHr,E4o=hHr,S4o=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",x4o=mHr,_4o=gHr,C4o=yHr,T4o=AHr,w4o=vHr,I4o=bHr,D4o=EHr,O4o=SHr,R4o=xHr,N4o=_Hr,P4o=Ph([mHr,gHr,yHr,AHr,vHr,bHr,EHr,SHr,xHr,_Hr])});var THr=j(()=>{CHr()});var k4o,B4o,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,b6o,E6o,eQc,tQc,S6o,x6o,_6o,C6o,T6o,w6o,I6o,D6o,O6o,R6o,N6o,rQc,P6o,k6o,B6o,M6o,nQc,L6o,U6o,F6o,Q6o,q6o,H6o,V6o,G6o,j6o,$6o,W6o,z6o,K6o,Y6o,J6o,iQc,X6o,Z6o,ewo,two,rwo,nwo,iwo,owo,swo,awo,cwo,lwo,uwo,oQc,sQc,fwo,dwo,pwo,hwo,mwo,gwo,ywo,Awo,aQc,vwo,bwo,Ewo,ETt,STt,Swo,xwo,_wo,Cwo,Two,wwo,Iwo,Dwo,Owo,cQc,Rwo,Nwo,lQc,Pwo,kwo,uQc,Bwo,Mwo,Lwo,Uwo,Fwo,Qwo,qwo,Hwo,Vwo,Gwo,jwo,$wo,Wwo,wHr=j(()=>{k4o="aspnetcore.diagnostics.exception.result",B4o="aborted",M4o="handled",L4o="skipped",U4o="unhandled",F4o="aspnetcore.diagnostics.handler.type",Q4o="aspnetcore.rate_limiting.policy",q4o="aspnetcore.rate_limiting.result",H4o="acquired",V4o="endpoint_limiter",G4o="global_limiter",j4o="request_canceled",$4o="aspnetcore.request.is_unhandled",W4o="aspnetcore.routing.is_fallback",z4o="aspnetcore.routing.match_status",K4o="failure",Y4o="success",J4o="aspnetcore.user.is_authenticated",X4o="client.address",Z4o="client.port",e6o="code.column.number",t6o="code.file.path",r6o="code.function.name",n6o="code.line.number",i6o="code.stacktrace",o6o="db.collection.name",s6o="db.namespace",a6o="db.operation.batch.size",c6o="db.operation.name",l6o="db.query.summary",u6o="db.query.text",f6o="db.response.status_code",d6o="db.stored_procedure.name",p6o="db.system.name",h6o="mariadb",m6o="microsoft.sql_server",g6o="mysql",y6o="postgresql",A6o="dotnet.gc.heap.generation",v6o="gen0",b6o="gen1",E6o="gen2",eQc="loh",tQc="poh",S6o="error.type",x6o="_OTHER",_6o="exception.escaped",C6o="exception.message",T6o="exception.stacktrace",w6o="exception.type",I6o=t=>`http.request.header.${t}`,D6o="http.request.method",O6o="_OTHER",R6o="CONNECT",N6o="DELETE",rQc="GET",P6o="HEAD",k6o="OPTIONS",B6o="PATCH",M6o="POST",nQc="PUT",L6o="TRACE",U6o="http.request.method_original",F6o="http.request.resend_count",Q6o=t=>`http.response.header.${t}`,q6o="http.response.status_code",H6o="http.route",V6o="jvm.gc.action",G6o="jvm.gc.name",j6o="jvm.memory.pool.name",$6o="jvm.memory.type",W6o="heap",z6o="non_heap",K6o="jvm.thread.daemon",Y6o="jvm.thread.state",J6o="blocked",iQc="new",X6o="runnable",Z6o="terminated",ewo="timed_waiting",two="waiting",rwo="network.local.address",nwo="network.local.port",iwo="network.peer.address",owo="network.peer.port",swo="network.protocol.name",awo="network.protocol.version",cwo="network.transport",lwo="pipe",uwo="quic",oQc="tcp",sQc="udp",fwo="unix",dwo="network.type",pwo="ipv4",hwo="ipv6",mwo="otel.scope.name",gwo="otel.scope.version",ywo="otel.status_code",Awo="ERROR",aQc="OK",vwo="otel.status_description",bwo="server.address",Ewo="server.port",ETt="service.name",STt="service.version",Swo="signalr.connection.status",xwo="app_shutdown",_wo="normal_closure",Cwo="timeout",Two="signalr.transport",wwo="long_polling",Iwo="server_sent_events",Dwo="web_sockets",Owo="telemetry.sdk.language",cQc="cpp",Rwo="dotnet",Nwo="erlang",lQc="go",Pwo="java",kwo="nodejs",uQc="php",Bwo="python",Mwo="ruby",Lwo="rust",Uwo="swift",Fwo="webjs",Qwo="telemetry.sdk.name",qwo="telemetry.sdk.version",Hwo="url.fragment",Vwo="url.full",Gwo="url.path",jwo="url.query",$wo="url.scheme",Wwo="user_agent.original"});var 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,k5o,B5o,M5o,L5o,U5o,F5o,Q5o,q5o,H5o,V5o,G5o,IHr=j(()=>{zwo="aspnetcore.diagnostics.exceptions",Kwo="aspnetcore.rate_limiting.active_request_leases",Ywo="aspnetcore.rate_limiting.queued_requests",Jwo="aspnetcore.rate_limiting.request.time_in_queue",Xwo="aspnetcore.rate_limiting.request_lease.duration",Zwo="aspnetcore.rate_limiting.requests",e5o="aspnetcore.routing.match_attempts",t5o="db.client.operation.duration",r5o="dotnet.assembly.count",n5o="dotnet.exceptions",i5o="dotnet.gc.collections",o5o="dotnet.gc.heap.total_allocated",s5o="dotnet.gc.last_collection.heap.fragmentation.size",a5o="dotnet.gc.last_collection.heap.size",c5o="dotnet.gc.last_collection.memory.committed_size",l5o="dotnet.gc.pause.time",u5o="dotnet.jit.compilation.time",f5o="dotnet.jit.compiled_il.size",d5o="dotnet.jit.compiled_methods",p5o="dotnet.monitor.lock_contentions",h5o="dotnet.process.cpu.count",m5o="dotnet.process.cpu.time",g5o="dotnet.process.memory.working_set",y5o="dotnet.thread_pool.queue.length",A5o="dotnet.thread_pool.thread.count",v5o="dotnet.thread_pool.work_item.count",b5o="dotnet.timer.count",E5o="http.client.request.duration",S5o="http.server.request.duration",x5o="jvm.class.count",_5o="jvm.class.loaded",C5o="jvm.class.unloaded",T5o="jvm.cpu.count",w5o="jvm.cpu.recent_utilization",I5o="jvm.cpu.time",D5o="jvm.gc.duration",O5o="jvm.memory.committed",R5o="jvm.memory.limit",N5o="jvm.memory.used",P5o="jvm.memory.used_after_last_gc",k5o="jvm.thread.count",B5o="kestrel.active_connections",M5o="kestrel.active_tls_handshakes",L5o="kestrel.connection.duration",U5o="kestrel.queued_connections",F5o="kestrel.queued_requests",Q5o="kestrel.rejected_connections",q5o="kestrel.tls_handshake.duration",H5o="kestrel.upgraded_connections",V5o="signalr.server.active_connections",G5o="signalr.server.connection.duration"});var j5o,DHr=j(()=>{j5o="exception"});var Uu={};ss(Uu,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>B4o,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>M4o,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>L4o,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>U4o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>H4o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>V4o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>G4o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>j4o,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>K4o,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>Y4o,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>k4o,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>F4o,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>Q4o,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>q4o,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>$4o,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>W4o,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>z4o,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:()=>J4o,ATTR_CLIENT_ADDRESS:()=>X4o,ATTR_CLIENT_PORT:()=>Z4o,ATTR_CODE_COLUMN_NUMBER:()=>e6o,ATTR_CODE_FILE_PATH:()=>t6o,ATTR_CODE_FUNCTION_NAME:()=>r6o,ATTR_CODE_LINE_NUMBER:()=>n6o,ATTR_CODE_STACKTRACE:()=>i6o,ATTR_DB_COLLECTION_NAME:()=>o6o,ATTR_DB_NAMESPACE:()=>s6o,ATTR_DB_OPERATION_BATCH_SIZE:()=>a6o,ATTR_DB_OPERATION_NAME:()=>c6o,ATTR_DB_QUERY_SUMMARY:()=>l6o,ATTR_DB_QUERY_TEXT:()=>u6o,ATTR_DB_RESPONSE_STATUS_CODE:()=>f6o,ATTR_DB_STORED_PROCEDURE_NAME:()=>d6o,ATTR_DB_SYSTEM_NAME:()=>p6o,ATTR_DOTNET_GC_HEAP_GENERATION:()=>A6o,ATTR_ERROR_TYPE:()=>S6o,ATTR_EXCEPTION_ESCAPED:()=>_6o,ATTR_EXCEPTION_MESSAGE:()=>C6o,ATTR_EXCEPTION_STACKTRACE:()=>T6o,ATTR_EXCEPTION_TYPE:()=>w6o,ATTR_HTTP_REQUEST_HEADER:()=>I6o,ATTR_HTTP_REQUEST_METHOD:()=>D6o,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>U6o,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>F6o,ATTR_HTTP_RESPONSE_HEADER:()=>Q6o,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>q6o,ATTR_HTTP_ROUTE:()=>H6o,ATTR_JVM_GC_ACTION:()=>V6o,ATTR_JVM_GC_NAME:()=>G6o,ATTR_JVM_MEMORY_POOL_NAME:()=>j6o,ATTR_JVM_MEMORY_TYPE:()=>$6o,ATTR_JVM_THREAD_DAEMON:()=>K6o,ATTR_JVM_THREAD_STATE:()=>Y6o,ATTR_NETWORK_LOCAL_ADDRESS:()=>rwo,ATTR_NETWORK_LOCAL_PORT:()=>nwo,ATTR_NETWORK_PEER_ADDRESS:()=>iwo,ATTR_NETWORK_PEER_PORT:()=>owo,ATTR_NETWORK_PROTOCOL_NAME:()=>swo,ATTR_NETWORK_PROTOCOL_VERSION:()=>awo,ATTR_NETWORK_TRANSPORT:()=>cwo,ATTR_NETWORK_TYPE:()=>dwo,ATTR_OTEL_SCOPE_NAME:()=>mwo,ATTR_OTEL_SCOPE_VERSION:()=>gwo,ATTR_OTEL_STATUS_CODE:()=>ywo,ATTR_OTEL_STATUS_DESCRIPTION:()=>vwo,ATTR_SERVER_ADDRESS:()=>bwo,ATTR_SERVER_PORT:()=>Ewo,ATTR_SERVICE_NAME:()=>ETt,ATTR_SERVICE_VERSION:()=>STt,ATTR_SIGNALR_CONNECTION_STATUS:()=>Swo,ATTR_SIGNALR_TRANSPORT:()=>Two,ATTR_TELEMETRY_SDK_LANGUAGE:()=>Owo,ATTR_TELEMETRY_SDK_NAME:()=>Qwo,ATTR_TELEMETRY_SDK_VERSION:()=>qwo,ATTR_URL_FRAGMENT:()=>Hwo,ATTR_URL_FULL:()=>Vwo,ATTR_URL_PATH:()=>Gwo,ATTR_URL_QUERY:()=>jwo,ATTR_URL_SCHEME:()=>$wo,ATTR_USER_AGENT_ORIGINAL:()=>Wwo,AWSECSLAUNCHTYPEVALUES_EC2:()=>e4o,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>t4o,AwsEcsLaunchtypeValues:()=>r4o,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>MTo,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>LTo,CLOUDPLATFORMVALUES_AWS_EC2:()=>UTo,CLOUDPLATFORMVALUES_AWS_ECS:()=>FTo,CLOUDPLATFORMVALUES_AWS_EKS:()=>QTo,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>HTo,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>qTo,CLOUDPLATFORMVALUES_AZURE_AKS:()=>jTo,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>WTo,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>GTo,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>$To,CLOUDPLATFORMVALUES_AZURE_VM:()=>VTo,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>XTo,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>JTo,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>KTo,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>zTo,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>YTo,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>RTo,CLOUDPROVIDERVALUES_AWS:()=>NTo,CLOUDPROVIDERVALUES_AZURE:()=>PTo,CLOUDPROVIDERVALUES_GCP:()=>kTo,CloudPlatformValues:()=>ZTo,CloudProviderValues:()=>BTo,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>mxo,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>xxo,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>gxo,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>Sxo,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>Axo,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>Cxo,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>vxo,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>yxo,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>_xo,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>Exo,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>bxo,DBSYSTEMVALUES_ADABAS:()=>USo,DBSYSTEMVALUES_CACHE:()=>LSo,DBSYSTEMVALUES_CASSANDRA:()=>txo,DBSYSTEMVALUES_CLOUDSCAPE:()=>DSo,DBSYSTEMVALUES_COCKROACHDB:()=>pxo,DBSYSTEMVALUES_COLDFUSION:()=>exo,DBSYSTEMVALUES_COSMOSDB:()=>axo,DBSYSTEMVALUES_COUCHBASE:()=>oxo,DBSYSTEMVALUES_COUCHDB:()=>sxo,DBSYSTEMVALUES_DB2:()=>CSo,DBSYSTEMVALUES_DERBY:()=>QSo,DBSYSTEMVALUES_DYNAMODB:()=>cxo,DBSYSTEMVALUES_EDB:()=>MSo,DBSYSTEMVALUES_ELASTICSEARCH:()=>fxo,DBSYSTEMVALUES_FILEMAKER:()=>qSo,DBSYSTEMVALUES_FIREBIRD:()=>FSo,DBSYSTEMVALUES_FIRSTSQL:()=>BSo,DBSYSTEMVALUES_GEODE:()=>uxo,DBSYSTEMVALUES_H2:()=>ZSo,DBSYSTEMVALUES_HANADB:()=>PSo,DBSYSTEMVALUES_HBASE:()=>rxo,DBSYSTEMVALUES_HIVE:()=>ISo,DBSYSTEMVALUES_HSQLDB:()=>OSo,DBSYSTEMVALUES_INFORMIX:()=>HSo,DBSYSTEMVALUES_INGRES:()=>kSo,DBSYSTEMVALUES_INSTANTDB:()=>VSo,DBSYSTEMVALUES_INTERBASE:()=>GSo,DBSYSTEMVALUES_MARIADB:()=>jSo,DBSYSTEMVALUES_MAXDB:()=>NSo,DBSYSTEMVALUES_MEMCACHED:()=>dxo,DBSYSTEMVALUES_MONGODB:()=>nxo,DBSYSTEMVALUES_MSSQL:()=>SSo,DBSYSTEMVALUES_MYSQL:()=>xSo,DBSYSTEMVALUES_NEO4J:()=>lxo,DBSYSTEMVALUES_NETEZZA:()=>$So,DBSYSTEMVALUES_ORACLE:()=>_So,DBSYSTEMVALUES_OTHER_SQL:()=>ESo,DBSYSTEMVALUES_PERVASIVE:()=>WSo,DBSYSTEMVALUES_POINTBASE:()=>zSo,DBSYSTEMVALUES_POSTGRESQL:()=>TSo,DBSYSTEMVALUES_PROGRESS:()=>RSo,DBSYSTEMVALUES_REDIS:()=>ixo,DBSYSTEMVALUES_REDSHIFT:()=>wSo,DBSYSTEMVALUES_SQLITE:()=>KSo,DBSYSTEMVALUES_SYBASE:()=>YSo,DBSYSTEMVALUES_TERADATA:()=>JSo,DBSYSTEMVALUES_VERTICA:()=>XSo,DB_SYSTEM_NAME_VALUE_MARIADB:()=>h6o,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:()=>m6o,DB_SYSTEM_NAME_VALUE_MYSQL:()=>g6o,DB_SYSTEM_NAME_VALUE_POSTGRESQL:()=>y6o,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:()=>v6o,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:()=>b6o,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:()=>E6o,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:()=>eQc,DOTNET_GC_HEAP_GENERATION_VALUE_POH:()=>tQc,DbCassandraConsistencyLevelValues:()=>Txo,DbSystemValues:()=>hxo,ERROR_TYPE_VALUE_OTHER:()=>x6o,EVENT_EXCEPTION:()=>j5o,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>Bxo,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>kxo,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>Pxo,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>Lxo,FAASINVOKEDPROVIDERVALUES_AWS:()=>Uxo,FAASINVOKEDPROVIDERVALUES_AZURE:()=>Fxo,FAASINVOKEDPROVIDERVALUES_GCP:()=>Qxo,FAASTRIGGERVALUES_DATASOURCE:()=>wxo,FAASTRIGGERVALUES_HTTP:()=>Ixo,FAASTRIGGERVALUES_OTHER:()=>Rxo,FAASTRIGGERVALUES_PUBSUB:()=>Dxo,FAASTRIGGERVALUES_TIMER:()=>Oxo,FaasDocumentOperationValues:()=>Mxo,FaasInvokedProviderValues:()=>qxo,FaasTriggerValues:()=>Nxo,HOSTARCHVALUES_AMD64:()=>n4o,HOSTARCHVALUES_ARM32:()=>i4o,HOSTARCHVALUES_ARM64:()=>o4o,HOSTARCHVALUES_IA64:()=>s4o,HOSTARCHVALUES_PPC32:()=>a4o,HOSTARCHVALUES_PPC64:()=>c4o,HOSTARCHVALUES_X86:()=>l4o,HTTPFLAVORVALUES_HTTP_1_0:()=>__o,HTTPFLAVORVALUES_HTTP_1_1:()=>C_o,HTTPFLAVORVALUES_HTTP_2_0:()=>T_o,HTTPFLAVORVALUES_QUIC:()=>I_o,HTTPFLAVORVALUES_SPDY:()=>w_o,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>R6o,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>N6o,HTTP_REQUEST_METHOD_VALUE_GET:()=>rQc,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>P6o,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>k6o,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>O6o,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>B6o,HTTP_REQUEST_METHOD_VALUE_POST:()=>M6o,HTTP_REQUEST_METHOD_VALUE_PUT:()=>nQc,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>L6o,HostArchValues:()=>u4o,HttpFlavorValues:()=>D_o,JVM_MEMORY_TYPE_VALUE_HEAP:()=>W6o,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>z6o,JVM_THREAD_STATE_VALUE_BLOCKED:()=>J6o,JVM_THREAD_STATE_VALUE_NEW:()=>iQc,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>X6o,JVM_THREAD_STATE_VALUE_TERMINATED:()=>Z6o,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>ewo,JVM_THREAD_STATE_VALUE_WAITING:()=>two,MESSAGETYPEVALUES_RECEIVED:()=>tCo,MESSAGETYPEVALUES_SENT:()=>eCo,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>O_o,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>R_o,MESSAGINGOPERATIONVALUES_PROCESS:()=>k_o,MESSAGINGOPERATIONVALUES_RECEIVE:()=>P_o,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>zwo,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>Kwo,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>Ywo,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>Zwo,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>Xwo,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>Jwo,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>e5o,METRIC_DB_CLIENT_OPERATION_DURATION:()=>t5o,METRIC_DOTNET_ASSEMBLY_COUNT:()=>r5o,METRIC_DOTNET_EXCEPTIONS:()=>n5o,METRIC_DOTNET_GC_COLLECTIONS:()=>i5o,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:()=>o5o,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:()=>s5o,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:()=>a5o,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:()=>c5o,METRIC_DOTNET_GC_PAUSE_TIME:()=>l5o,METRIC_DOTNET_JIT_COMPILATION_TIME:()=>u5o,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:()=>f5o,METRIC_DOTNET_JIT_COMPILED_METHODS:()=>d5o,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:()=>p5o,METRIC_DOTNET_PROCESS_CPU_COUNT:()=>h5o,METRIC_DOTNET_PROCESS_CPU_TIME:()=>m5o,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:()=>g5o,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:()=>y5o,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:()=>A5o,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:()=>v5o,METRIC_DOTNET_TIMER_COUNT:()=>b5o,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>E5o,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>S5o,METRIC_JVM_CLASS_COUNT:()=>x5o,METRIC_JVM_CLASS_LOADED:()=>_5o,METRIC_JVM_CLASS_UNLOADED:()=>C5o,METRIC_JVM_CPU_COUNT:()=>T5o,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>w5o,METRIC_JVM_CPU_TIME:()=>I5o,METRIC_JVM_GC_DURATION:()=>D5o,METRIC_JVM_MEMORY_COMMITTED:()=>O5o,METRIC_JVM_MEMORY_LIMIT:()=>R5o,METRIC_JVM_MEMORY_USED:()=>N5o,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>P5o,METRIC_JVM_THREAD_COUNT:()=>k5o,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>B5o,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>M5o,METRIC_KESTREL_CONNECTION_DURATION:()=>L5o,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>U5o,METRIC_KESTREL_QUEUED_REQUESTS:()=>F5o,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>Q5o,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>q5o,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>H5o,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>V5o,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>G5o,MessageTypeValues:()=>rCo,MessagingDestinationKindValues:()=>N_o,MessagingOperationValues:()=>B_o,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>o_o,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>c_o,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>n_o,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>m_o,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>s_o,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>a_o,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>p_o,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>r_o,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>y_o,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>l_o,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>f_o,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>g_o,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>u_o,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>d_o,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>v_o,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>h_o,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>S_o,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>b_o,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>E_o,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>A_o,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>i_o,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>Xxo,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>Zxo,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>e_o,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>Yxo,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>Jxo,NETTRANSPORTVALUES_INPROC:()=>Wxo,NETTRANSPORTVALUES_IP:()=>Gxo,NETTRANSPORTVALUES_IP_TCP:()=>Hxo,NETTRANSPORTVALUES_IP_UDP:()=>Vxo,NETTRANSPORTVALUES_OTHER:()=>zxo,NETTRANSPORTVALUES_PIPE:()=>$xo,NETTRANSPORTVALUES_UNIX:()=>jxo,NETWORK_TRANSPORT_VALUE_PIPE:()=>lwo,NETWORK_TRANSPORT_VALUE_QUIC:()=>uwo,NETWORK_TRANSPORT_VALUE_TCP:()=>oQc,NETWORK_TRANSPORT_VALUE_UDP:()=>sQc,NETWORK_TRANSPORT_VALUE_UNIX:()=>fwo,NETWORK_TYPE_VALUE_IPV4:()=>pwo,NETWORK_TYPE_VALUE_IPV6:()=>hwo,NetHostConnectionSubtypeValues:()=>x_o,NetHostConnectionTypeValues:()=>t_o,NetTransportValues:()=>Kxo,OSTYPEVALUES_AIX:()=>v4o,OSTYPEVALUES_DARWIN:()=>p4o,OSTYPEVALUES_DRAGONFLYBSD:()=>y4o,OSTYPEVALUES_FREEBSD:()=>h4o,OSTYPEVALUES_HPUX:()=>A4o,OSTYPEVALUES_LINUX:()=>d4o,OSTYPEVALUES_NETBSD:()=>m4o,OSTYPEVALUES_OPENBSD:()=>g4o,OSTYPEVALUES_SOLARIS:()=>b4o,OSTYPEVALUES_WINDOWS:()=>f4o,OSTYPEVALUES_Z_OS:()=>E4o,OTEL_STATUS_CODE_VALUE_ERROR:()=>Awo,OTEL_STATUS_CODE_VALUE_OK:()=>aQc,OsTypeValues:()=>S4o,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>$_o,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>H_o,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>L_o,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>J_o,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>Q_o,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>j_o,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>K_o,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>F_o,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>q_o,RPCGRPCSTATUSCODEVALUES_OK:()=>M_o,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>W_o,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>V_o,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>G_o,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>X_o,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>Y_o,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>z_o,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>U_o,RpcGrpcStatusCodeValues:()=>Z_o,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>OEo,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>HEo,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>wEo,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>xEo,SEMATTRS_AWS_DYNAMODB_COUNT:()=>QEo,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>BEo,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>PEo,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>VEo,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>REo,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>_Eo,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>DEo,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>kEo,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>IEo,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>CEo,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>TEo,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>qEo,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>LEo,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>UEo,SEMATTRS_AWS_DYNAMODB_SELECT:()=>NEo,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>MEo,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>SEo,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>FEo,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>tbo,SEMATTRS_CODE_FILEPATH:()=>oEo,SEMATTRS_CODE_FUNCTION:()=>nEo,SEMATTRS_CODE_LINENO:()=>sEo,SEMATTRS_CODE_NAMESPACE:()=>iEo,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>dbo,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>ybo,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>gbo,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>hbo,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>ubo,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>fbo,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>mbo,SEMATTRS_DB_CASSANDRA_TABLE:()=>pbo,SEMATTRS_DB_CONNECTION_STRING:()=>nbo,SEMATTRS_DB_HBASE_NAMESPACE:()=>Abo,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>obo,SEMATTRS_DB_MONGODB_COLLECTION:()=>bbo,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>lbo,SEMATTRS_DB_NAME:()=>sbo,SEMATTRS_DB_OPERATION:()=>cbo,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>vbo,SEMATTRS_DB_SQL_TABLE:()=>Ebo,SEMATTRS_DB_STATEMENT:()=>abo,SEMATTRS_DB_SYSTEM:()=>rbo,SEMATTRS_DB_USER:()=>ibo,SEMATTRS_ENDUSER_ID:()=>Xbo,SEMATTRS_ENDUSER_ROLE:()=>Zbo,SEMATTRS_ENDUSER_SCOPE:()=>eEo,SEMATTRS_EXCEPTION_ESCAPED:()=>Cbo,SEMATTRS_EXCEPTION_MESSAGE:()=>xbo,SEMATTRS_EXCEPTION_STACKTRACE:()=>_bo,SEMATTRS_EXCEPTION_TYPE:()=>Sbo,SEMATTRS_FAAS_COLDSTART:()=>kbo,SEMATTRS_FAAS_CRON:()=>Pbo,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>Ibo,SEMATTRS_FAAS_DOCUMENT_NAME:()=>Rbo,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>Dbo,SEMATTRS_FAAS_DOCUMENT_TIME:()=>Obo,SEMATTRS_FAAS_EXECUTION:()=>wbo,SEMATTRS_FAAS_INVOKED_NAME:()=>Bbo,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>Mbo,SEMATTRS_FAAS_INVOKED_REGION:()=>Lbo,SEMATTRS_FAAS_TIME:()=>Nbo,SEMATTRS_FAAS_TRIGGER:()=>Tbo,SEMATTRS_HTTP_CLIENT_IP:()=>EEo,SEMATTRS_HTTP_FLAVOR:()=>pEo,SEMATTRS_HTTP_HOST:()=>uEo,SEMATTRS_HTTP_METHOD:()=>aEo,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>mEo,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>gEo,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>yEo,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>AEo,SEMATTRS_HTTP_ROUTE:()=>bEo,SEMATTRS_HTTP_SCHEME:()=>fEo,SEMATTRS_HTTP_SERVER_NAME:()=>vEo,SEMATTRS_HTTP_STATUS_CODE:()=>dEo,SEMATTRS_HTTP_TARGET:()=>lEo,SEMATTRS_HTTP_URL:()=>cEo,SEMATTRS_HTTP_USER_AGENT:()=>hEo,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>vSo,SEMATTRS_MESSAGE_ID:()=>ASo,SEMATTRS_MESSAGE_TYPE:()=>ySo,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>bSo,SEMATTRS_MESSAGING_CONSUMER_ID:()=>rSo,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>XEo,SEMATTRS_MESSAGING_DESTINATION:()=>jEo,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>$Eo,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>sSo,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>oSo,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>iSo,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>aSo,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>cSo,SEMATTRS_MESSAGING_MESSAGE_ID:()=>JEo,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>eSo,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>ZEo,SEMATTRS_MESSAGING_OPERATION:()=>tSo,SEMATTRS_MESSAGING_PROTOCOL:()=>zEo,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>KEo,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>nSo,SEMATTRS_MESSAGING_SYSTEM:()=>GEo,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>WEo,SEMATTRS_MESSAGING_URL:()=>YEo,SEMATTRS_NET_HOST_CARRIER_ICC:()=>Ybo,SEMATTRS_NET_HOST_CARRIER_MCC:()=>zbo,SEMATTRS_NET_HOST_CARRIER_MNC:()=>Kbo,SEMATTRS_NET_HOST_CARRIER_NAME:()=>Wbo,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>$bo,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>jbo,SEMATTRS_NET_HOST_IP:()=>Hbo,SEMATTRS_NET_HOST_NAME:()=>Gbo,SEMATTRS_NET_HOST_PORT:()=>Vbo,SEMATTRS_NET_PEER_IP:()=>Fbo,SEMATTRS_NET_PEER_NAME:()=>qbo,SEMATTRS_NET_PEER_PORT:()=>Qbo,SEMATTRS_NET_TRANSPORT:()=>Ubo,SEMATTRS_PEER_SERVICE:()=>Jbo,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>dSo,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>mSo,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>gSo,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>hSo,SEMATTRS_RPC_JSONRPC_VERSION:()=>pSo,SEMATTRS_RPC_METHOD:()=>fSo,SEMATTRS_RPC_SERVICE:()=>uSo,SEMATTRS_RPC_SYSTEM:()=>lSo,SEMATTRS_THREAD_ID:()=>tEo,SEMATTRS_THREAD_NAME:()=>rEo,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>lCo,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>cCo,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>uCo,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>fCo,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>dCo,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>pCo,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>hCo,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>gCo,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>mCo,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>ACo,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>yCo,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>iCo,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>sCo,SEMRESATTRS_CLOUD_PLATFORM:()=>aCo,SEMRESATTRS_CLOUD_PROVIDER:()=>nCo,SEMRESATTRS_CLOUD_REGION:()=>oCo,SEMRESATTRS_CONTAINER_ID:()=>bCo,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>SCo,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>xCo,SEMRESATTRS_CONTAINER_NAME:()=>vCo,SEMRESATTRS_CONTAINER_RUNTIME:()=>ECo,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>_Co,SEMRESATTRS_DEVICE_ID:()=>CCo,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>TCo,SEMRESATTRS_DEVICE_MODEL_NAME:()=>wCo,SEMRESATTRS_FAAS_ID:()=>DCo,SEMRESATTRS_FAAS_INSTANCE:()=>RCo,SEMRESATTRS_FAAS_MAX_MEMORY:()=>NCo,SEMRESATTRS_FAAS_NAME:()=>ICo,SEMRESATTRS_FAAS_VERSION:()=>OCo,SEMRESATTRS_HOST_ARCH:()=>MCo,SEMRESATTRS_HOST_ID:()=>PCo,SEMRESATTRS_HOST_IMAGE_ID:()=>UCo,SEMRESATTRS_HOST_IMAGE_NAME:()=>LCo,SEMRESATTRS_HOST_IMAGE_VERSION:()=>FCo,SEMRESATTRS_HOST_NAME:()=>kCo,SEMRESATTRS_HOST_TYPE:()=>BCo,SEMRESATTRS_K8S_CLUSTER_NAME:()=>QCo,SEMRESATTRS_K8S_CONTAINER_NAME:()=>$Co,SEMRESATTRS_K8S_CRONJOB_NAME:()=>iTo,SEMRESATTRS_K8S_CRONJOB_UID:()=>nTo,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>eTo,SEMRESATTRS_K8S_DAEMONSET_UID:()=>ZCo,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>YCo,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>KCo,SEMRESATTRS_K8S_JOB_NAME:()=>rTo,SEMRESATTRS_K8S_JOB_UID:()=>tTo,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>VCo,SEMRESATTRS_K8S_NODE_NAME:()=>qCo,SEMRESATTRS_K8S_NODE_UID:()=>HCo,SEMRESATTRS_K8S_POD_NAME:()=>jCo,SEMRESATTRS_K8S_POD_UID:()=>GCo,SEMRESATTRS_K8S_REPLICASET_NAME:()=>zCo,SEMRESATTRS_K8S_REPLICASET_UID:()=>WCo,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>XCo,SEMRESATTRS_K8S_STATEFULSET_UID:()=>JCo,SEMRESATTRS_OS_DESCRIPTION:()=>sTo,SEMRESATTRS_OS_NAME:()=>aTo,SEMRESATTRS_OS_TYPE:()=>oTo,SEMRESATTRS_OS_VERSION:()=>cTo,SEMRESATTRS_PROCESS_COMMAND:()=>dTo,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>hTo,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>pTo,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>uTo,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>fTo,SEMRESATTRS_PROCESS_OWNER:()=>mTo,SEMRESATTRS_PROCESS_PID:()=>lTo,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>ATo,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>gTo,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>yTo,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>ETo,SEMRESATTRS_SERVICE_NAME:()=>vTo,SEMRESATTRS_SERVICE_NAMESPACE:()=>bTo,SEMRESATTRS_SERVICE_VERSION:()=>STo,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>TTo,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>_To,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>xTo,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>CTo,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>DTo,SEMRESATTRS_WEBENGINE_NAME:()=>wTo,SEMRESATTRS_WEBENGINE_VERSION:()=>ITo,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>xwo,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>_wo,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>Cwo,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>wwo,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>Iwo,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>Dwo,SemanticAttributes:()=>Jee,SemanticResourceAttributes:()=>OTo,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>x4o,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>_4o,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>C4o,TELEMETRYSDKLANGUAGEVALUES_GO:()=>T4o,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>w4o,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>I4o,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>D4o,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>O4o,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>R4o,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>N4o,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>cQc,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>Rwo,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>Nwo,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>lQc,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>Pwo,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>kwo,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>uQc,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>Bwo,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>Mwo,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>Lwo,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>Uwo,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>Fwo,TelemetrySdkLanguageValues:()=>P4o});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 rO,F7e=j(()=>{rO=class extends Error{code;name="OTLPExporterError";data;constructor(e,r,o){super(e),this.data=o,this.code=r}}});function $5o(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:$5o(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 e2e=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 t2e=E(dB=>{"use strict";Object.defineProperty(dB,"__esModule",{value:!0});dB.isTracingSuppressed=dB.unsuppressTracing=dB.suppressTracing=void 0;var W5o=(ut(),nt(xt)),CTt=(0,W5o.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function z5o(t){return t.setValue(CTt,!0)}dB.suppressTracing=z5o;function K5o(t){return t.deleteValue(CTt)}dB.unsuppressTracing=K5o;function Y5o(t){return t.getValue(CTt)===!0}dB.isTracingSuppressed=Y5o});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(W5=>{"use strict";Object.defineProperty(W5,"__esModule",{value:!0});W5.parseKeyPairsIntoRecord=W5.parsePairKeyValue=W5.getKeyPairs=W5.serializeKeyPairs=void 0;var J5o=(ut(),nt(xt)),tV=TTt();function X5o(t){return t.reduce((e,r)=>{let o=`${e}${e!==""?tV.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return o.length>tV.BAGGAGE_MAX_TOTAL_LENGTH?e:o},"")}W5.serializeKeyPairs=X5o;function Z5o(t){return t.getAllEntries().map(([e,r])=>{let o=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(o+=tV.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),o})}W5.getKeyPairs=Z5o;function NHr(t){let e=t.split(tV.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let o=r.indexOf(tV.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,J5o.baggageEntryMetadataFromString)(e.join(tV.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:a,metadata:i}}W5.parsePairKeyValue=NHr;function eIo(t){let e={};return typeof t=="string"&&t.length>0&&t.split(tV.BAGGAGE_ITEMS_SEPARATOR).forEach(r=>{let o=NHr(r);o!==void 0&&o.value.length>0&&(e[o.key]=o.value)}),e}W5.parseKeyPairsIntoRecord=eIo});var PHr=E(j7e=>{"use strict";Object.defineProperty(j7e,"__esModule",{value:!0});j7e.W3CBaggagePropagator=void 0;var ITt=(ut(),nt(xt)),tIo=t2e(),rV=TTt(),DTt=wTt(),OTt=class{inject(e,r,o){let s=ITt.propagation.getBaggage(e);if(!s||(0,tIo.isTracingSuppressed)(e))return;let a=(0,DTt.getKeyPairs)(s).filter(n=>n.length<=rV.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,rV.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,DTt.serializeKeyPairs)(a);i.length>0&&o.set(r,rV.BAGGAGE_HEADER,i)}extract(e,r,o){let s=o.get(r,rV.BAGGAGE_HEADER),a=Array.isArray(s)?s.join(rV.BAGGAGE_ITEMS_SEPARATOR):s;if(!a)return e;let i={};return a.length===0||(a.split(rV.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[rV.BAGGAGE_HEADER]}};j7e.W3CBaggagePropagator=OTt});var kHr=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(pB=>{"use strict";Object.defineProperty(pB,"__esModule",{value:!0});pB.isAttributeValue=pB.isAttributeKey=pB.sanitizeAttributes=void 0;var BHr=(ut(),nt(xt));function rIo(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,o]of Object.entries(t)){if(!MHr(r)){BHr.diag.warn(`Invalid attribute key: ${r}`);continue}if(!LHr(o)){BHr.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(o)?e[r]=o.slice():e[r]=o}return e}pB.sanitizeAttributes=rIo;function MHr(t){return typeof t=="string"&&t.length>0}pB.isAttributeKey=MHr;function LHr(t){return t==null?!0:Array.isArray(t)?nIo(t):UHr(t)}pB.isAttributeValue=LHr;function nIo(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 iIo=(ut(),nt(xt));function oIo(){return t=>{iIo.diag.error(sIo(t))}}W7e.loggingErrorHandler=oIo;function sIo(t){return typeof t=="string"?t:JSON.stringify(aIo(t))}function aIo(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(Xee=>{"use strict";Object.defineProperty(Xee,"__esModule",{value:!0});Xee.globalErrorHandler=Xee.setGlobalErrorHandler=void 0;var cIo=NTt(),QHr=(0,cIo.loggingErrorHandler)();function lIo(t){QHr=t}Xee.setGlobalErrorHandler=lIo;function uIo(t){try{QHr(t)}catch{}}Xee.globalErrorHandler=uIo});var jHr=E(z5=>{"use strict";Object.defineProperty(z5,"__esModule",{value:!0});z5.getStringListFromEnv=z5.getBooleanFromEnv=z5.getStringFromEnv=z5.getNumberFromEnv=void 0;var HHr=(ut(),nt(xt)),VHr=me("util");function fIo(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}z5.getNumberFromEnv=fIo;function GHr(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}z5.getStringFromEnv=GHr;function dIo(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)}z5.getBooleanFromEnv=dIo;function pIo(t){return GHr(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}z5.getStringListFromEnv=pIo});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 hIo=me("perf_hooks");K7e.otperformance=hIo.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 mIo=zHr(),X7e=(Wl(),nt(Uu)),gIo=KHr();Z7e.SDK_INFO={[X7e.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[gIo.ATTR_PROCESS_RUNTIME_NAME]:"node",[X7e.ATTR_TELEMETRY_SDK_LANGUAGE]:X7e.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[X7e.ATTR_TELEMETRY_SDK_VERSION]:mIo.VERSION}});var JHr=E(eOe=>{"use strict";Object.defineProperty(eOe,"__esModule",{value:!0});eOe.unrefTimer=void 0;function yIo(t){t.unref()}eOe.unrefTimer=yIo});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 AIo=$Hr();Object.defineProperty(r0,"_globalThis",{enumerable:!0,get:function(){return AIo._globalThis}});var vIo=WHr();Object.defineProperty(r0,"otperformance",{enumerable:!0,get:function(){return vIo.otperformance}});var bIo=YHr();Object.defineProperty(r0,"SDK_INFO",{enumerable:!0,get:function(){return bIo.SDK_INFO}});var EIo=JHr();Object.defineProperty(r0,"unrefTimer",{enumerable:!0,get:function(){return EIo.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 hB=XHr();Object.defineProperty(n0,"SDK_INFO",{enumerable:!0,get:function(){return hB.SDK_INFO}});Object.defineProperty(n0,"_globalThis",{enumerable:!0,get:function(){return hB._globalThis}});Object.defineProperty(n0,"otperformance",{enumerable:!0,get:function(){return hB.otperformance}});Object.defineProperty(n0,"unrefTimer",{enumerable:!0,get:function(){return hB.unrefTimer}});Object.defineProperty(n0,"getBooleanFromEnv",{enumerable:!0,get:function(){return hB.getBooleanFromEnv}});Object.defineProperty(n0,"getStringFromEnv",{enumerable:!0,get:function(){return hB.getStringFromEnv}});Object.defineProperty(n0,"getNumberFromEnv",{enumerable:!0,get:function(){return hB.getNumberFromEnv}});Object.defineProperty(n0,"getStringListFromEnv",{enumerable:!0,get:function(){return hB.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 kTt=PTt(),ZHr=9,SIo=6,xIo=Math.pow(10,SIo),rOe=Math.pow(10,ZHr);function r2e(t){let e=t/1e3,r=Math.trunc(e),o=Math.round(t%1e3*xIo);return[r,o]}Of.millisToHrTime=r2e;function BTt(){let t=kTt.otperformance.timeOrigin;if(typeof t!="number"){let e=kTt.otperformance;t=e.timing&&e.timing.fetchStart}return t}Of.getTimeOrigin=BTt;function eVr(t){let e=r2e(BTt()),r=r2e(typeof t=="number"?t:kTt.otperformance.now());return tVr(e,r)}Of.hrTime=eVr;function _Io(t){if(MTt(t))return t;if(typeof t=="number")return t<BTt()?eVr(t):r2e(t);if(t instanceof Date)return r2e(t.getTime());throw TypeError("Invalid input type")}Of.timeInputToHrTime=_Io;function CIo(t,e){let r=e[0]-t[0],o=e[1]-t[1];return o<0&&(r-=1,o+=rOe),[r,o]}Of.hrTimeDuration=CIo;function TIo(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=TIo;function wIo(t){return t[0]*rOe+t[1]}Of.hrTimeToNanoseconds=wIo;function IIo(t){return t[0]*1e3+t[1]/1e6}Of.hrTimeToMilliseconds=IIo;function DIo(t){return t[0]*1e6+t[1]/1e3}Of.hrTimeToMicroseconds=DIo;function MTt(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}Of.isTimeInputHrTime=MTt;function OIo(t){return MTt(t)||typeof t=="number"||t instanceof Date}Of.isTimeInput=OIo;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(n2e=>{"use strict";Object.defineProperty(n2e,"__esModule",{value:!0});n2e.ExportResultCode=void 0;var RIo;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(RIo=n2e.ExportResultCode||(n2e.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(Zee=>{"use strict";Object.defineProperty(Zee,"__esModule",{value:!0});Zee.validateValue=Zee.validateKey=void 0;var UTt="[_0-9a-z-*/]",NIo=`[a-z]${UTt}{0,255}`,PIo=`[a-z0-9]${UTt}{0,240}@[a-z]${UTt}{0,13}`,kIo=new RegExp(`^(?:${NIo}|${PIo})$`),BIo=/^[ -~]{0,255}[!-~]$/,MIo=/,|=/;function LIo(t){return kIo.test(t)}Zee.validateKey=LIo;function UIo(t){return BIo.test(t)&&!MIo.test(t)}Zee.validateValue=UIo});var QTt=E(iOe=>{"use strict";Object.defineProperty(iOe,"__esModule",{value:!0});iOe.TraceState=void 0;var aVr=sVr(),cVr=32,FIo=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>FIo||(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)),QIo=t2e(),qIo=QTt();Z1.TRACE_PARENT_HEADER="traceparent";Z1.TRACE_STATE_HEADER="tracestate";var HIo="00",VIo="(?!ff)[\\da-f]{2}",GIo="(?![0]{32})[\\da-f]{32}",jIo="(?![0]{16})[\\da-f]{16}",$Io="[\\da-f]{2}",WIo=new RegExp(`^\\s?(${VIo})-(${GIo})-(${jIo})-(${$Io})(-.*)?\\s?$`);function fVr(t){let e=WIo.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,QIo.isTracingSuppressed)(e)||!(0,oOe.isSpanContextValid)(s))return;let a=`${HIo}-${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 qIo.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(H4=>{"use strict";Object.defineProperty(H4,"__esModule",{value:!0});H4.getRPCMetadata=H4.deleteRPCMetadata=H4.setRPCMetadata=H4.RPCType=void 0;var zIo=(ut(),nt(xt)),HTt=(0,zIo.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),KIo;(function(t){t.HTTP="http"})(KIo=H4.RPCType||(H4.RPCType={}));function YIo(t,e){return t.setValue(HTt,e)}H4.setRPCMetadata=YIo;function JIo(t){return t.deleteValue(HTt)}H4.deleteRPCMetadata=JIo;function XIo(t){return t.getValue(HTt)}H4.getRPCMetadata=XIo});var AVr=E(sOe=>{"use strict";Object.defineProperty(sOe,"__esModule",{value:!0});sOe.isPlainObject=void 0;var ZIo="[object Object]",e8o="[object Null]",t8o="[object Undefined]",r8o=Function.prototype,hVr=r8o.toString,n8o=hVr.call(Object),i8o=Object.getPrototypeOf,mVr=Object.prototype,gVr=mVr.hasOwnProperty,nV=Symbol?Symbol.toStringTag:void 0,yVr=mVr.toString;function o8o(t){if(!s8o(t)||a8o(t)!==ZIo)return!1;let e=i8o(t);if(e===null)return!0;let r=gVr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&hVr.call(r)===n8o}sOe.isPlainObject=o8o;function s8o(t){return t!=null&&typeof t=="object"}function a8o(t){return t==null?t===void 0?t8o:e8o:nV&&nV in Object(t)?c8o(t):l8o(t)}function c8o(t){let e=gVr.call(t,nV),r=t[nV],o=!1;try{t[nV]=void 0,o=!0}catch{}let s=yVr.call(t);return o&&(e?t[nV]=r:delete t[nV]),s}function l8o(t){return yVr.call(t)}});var xVr=E(lOe=>{"use strict";Object.defineProperty(lOe,"__esModule",{value:!0});lOe.merge=void 0;var vVr=AVr(),u8o=20;function f8o(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=EVr(e,t.shift(),0,r);return e}lOe.merge=f8o;function VTt(t){return cOe(t)?t.slice():t}function EVr(t,e,r=0,o){let s;if(!(r>u8o)){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(i2e(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(i2e(t))if(i2e(e)){if(!d8o(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(i2e(f)&&i2e(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 i2e(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 d8o(t,e){return!(!(0,vVr.isPlainObject)(t)||!(0,vVr.isPlainObject)(e))}});var _Vr=E(ete=>{"use strict";Object.defineProperty(ete,"__esModule",{value:!0});ete.callWithTimeout=ete.TimeoutError=void 0;var uOe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};ete.TimeoutError=uOe;function p8o(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})}ete.callWithTimeout=p8o});var TVr=E(tte=>{"use strict";Object.defineProperty(tte,"__esModule",{value:!0});tte.isUrlIgnored=tte.urlMatches=void 0;function CVr(t,e){return typeof e=="string"?t===e:!!t.match(e)}tte.urlMatches=CVr;function h8o(t,e){if(!e)return!1;for(let r of e)if(CVr(t,r))return!0;return!1}tte.isUrlIgnored=h8o});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 m8o=wVr(),jTt=class{_callback;_that;_isCalled=!1;_deferred=new m8o.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 nO=(ut(),nt(xt)),DVr={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 g8o(t){if(t==null)return;let e=DVr[t.toUpperCase()];return e??(nO.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(DVr)}, using default`),nO.DiagLogLevel.INFO)}pOe.diagLogLevelFromString=g8o});var NVr=E(hOe=>{"use strict";Object.defineProperty(hOe,"__esModule",{value:!0});hOe._export=void 0;var RVr=(ut(),nt(xt)),y8o=t2e();function A8o(t,e){return new Promise(r=>{RVr.context.with((0,y8o.suppressTracing)(RVr.context.active()),()=>{t.export(e,o=>{r(o)})})})}hOe._export=A8o});var o2e=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 v8o=PHr();Object.defineProperty(an,"W3CBaggagePropagator",{enumerable:!0,get:function(){return v8o.W3CBaggagePropagator}});var b8o=kHr();Object.defineProperty(an,"AnchoredClock",{enumerable:!0,get:function(){return b8o.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 kVr=qHr();Object.defineProperty(an,"globalErrorHandler",{enumerable:!0,get:function(){return kVr.globalErrorHandler}});Object.defineProperty(an,"setGlobalErrorHandler",{enumerable:!0,get:function(){return kVr.setGlobalErrorHandler}});var E8o=NTt();Object.defineProperty(an,"loggingErrorHandler",{enumerable:!0,get:function(){return E8o.loggingErrorHandler}});var Wx=rVr();Object.defineProperty(an,"addHrTimes",{enumerable:!0,get:function(){return Wx.addHrTimes}});Object.defineProperty(an,"getTimeOrigin",{enumerable:!0,get:function(){return Wx.getTimeOrigin}});Object.defineProperty(an,"hrTime",{enumerable:!0,get:function(){return Wx.hrTime}});Object.defineProperty(an,"hrTimeDuration",{enumerable:!0,get:function(){return Wx.hrTimeDuration}});Object.defineProperty(an,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Wx.hrTimeToMicroseconds}});Object.defineProperty(an,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Wx.hrTimeToMilliseconds}});Object.defineProperty(an,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Wx.hrTimeToNanoseconds}});Object.defineProperty(an,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Wx.hrTimeToTimeStamp}});Object.defineProperty(an,"isTimeInput",{enumerable:!0,get:function(){return Wx.isTimeInput}});Object.defineProperty(an,"isTimeInputHrTime",{enumerable:!0,get:function(){return Wx.isTimeInputHrTime}});Object.defineProperty(an,"millisToHrTime",{enumerable:!0,get:function(){return Wx.millisToHrTime}});Object.defineProperty(an,"timeInputToHrTime",{enumerable:!0,get:function(){return Wx.timeInputToHrTime}});var S8o=nVr();Object.defineProperty(an,"ExportResultCode",{enumerable:!0,get:function(){return S8o.ExportResultCode}});var x8o=wTt();Object.defineProperty(an,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return x8o.parseKeyPairsIntoRecord}});var mB=PTt();Object.defineProperty(an,"SDK_INFO",{enumerable:!0,get:function(){return mB.SDK_INFO}});Object.defineProperty(an,"_globalThis",{enumerable:!0,get:function(){return mB._globalThis}});Object.defineProperty(an,"getStringFromEnv",{enumerable:!0,get:function(){return mB.getStringFromEnv}});Object.defineProperty(an,"getBooleanFromEnv",{enumerable:!0,get:function(){return mB.getBooleanFromEnv}});Object.defineProperty(an,"getNumberFromEnv",{enumerable:!0,get:function(){return mB.getNumberFromEnv}});Object.defineProperty(an,"getStringListFromEnv",{enumerable:!0,get:function(){return mB.getStringListFromEnv}});Object.defineProperty(an,"otperformance",{enumerable:!0,get:function(){return mB.otperformance}});Object.defineProperty(an,"unrefTimer",{enumerable:!0,get:function(){return mB.unrefTimer}});var _8o=oVr();Object.defineProperty(an,"CompositePropagator",{enumerable:!0,get:function(){return _8o.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=t2e();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 C8o=QTt();Object.defineProperty(an,"TraceState",{enumerable:!0,get:function(){return C8o.TraceState}});var T8o=xVr();Object.defineProperty(an,"merge",{enumerable:!0,get:function(){return T8o.merge}});var BVr=_Vr();Object.defineProperty(an,"TimeoutError",{enumerable:!0,get:function(){return BVr.TimeoutError}});Object.defineProperty(an,"callWithTimeout",{enumerable:!0,get:function(){return BVr.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 w8o=IVr();Object.defineProperty(an,"BindOnceFuture",{enumerable:!0,get:function(){return w8o.BindOnceFuture}});var I8o=OVr();Object.defineProperty(an,"diagLogLevelFromString",{enumerable:!0,get:function(){return I8o.diagLogLevelFromString}});var D8o=NVr();an.internal={_export:D8o._export}});function O8o(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function LVr(){return{handleResponse(t){t==null||!O8o(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 gB,WTt,zTt=j(()=>{gB=we(o2e());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:gB.ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});return}let o=this._serializer.serializeRequest(e);if(o==null){r({code:gB.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:gB.ExportResultCode.SUCCESS});return}else if(s.status==="failure"&&s.error){r({code:gB.ExportResultCode.FAILED,error:s.error});return}else s.status==="retryable"?r({code:gB.ExportResultCode.FAILED,error:new rO("Export failed with retryable status")}):r({code:gB.ExportResultCode.FAILED,error:new rO("Export failed with unknown error")})},s=>r({code:gB.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:()=>rO,createOtlpNetworkExportDelegate:()=>FVr,getSharedConfigurationDefaults:()=>H7e,mergeOtlpSharedConfigurationWithDefaults:()=>q7e});var HVr=j(()=>{OHr();F7e();e2e();RHr();QVr()});var KTt=E((yqc,VVr)=>{"use strict";VVr.exports=R8o;function R8o(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 rte=new Array(64),jVr=new Array(123);for(V4=0;V4<64;)jVr[rte[V4]=V4<26?V4+65:V4<52?V4+71:V4<62?V4-4:V4-59|43]=V4++;var V4;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++]=rte[u>>2],c=(u&3)<<4,n=1;break;case 1:a[i++]=rte[c|u>>4],c=(u&15)<<2,n=2;break;case 2:a[i++]=rte[c|u>>6],a[i++]=rte[u&63],n=0;break}i>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,a)),i=0)}return n&&(a[i++]=rte[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((vqc,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((bqc,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((Sqc,oGr)=>{"use strict";oGr.exports=N8o;function N8o(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((xqc,aGr)=>{"use strict";aGr.exports=i0;var s2e=K5();function i0(t,e){this.lo=t>>>0,this.hi=e>>>0}var iV=i0.zero=new i0(0,0);iV.toNumber=function(){return 0};iV.zzEncode=iV.zzDecode=function(){return this};iV.length=function(){return 1};var P8o=i0.zeroHash="\0\0\0\0\0\0\0\0";i0.fromNumber=function(e){if(e===0)return iV;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(s2e.isString(e))if(s2e.Long)e=s2e.Long.fromString(e);else return i0.fromNumber(parseInt(e,10));return e.low||e.high?new i0(e.low>>>0,e.high>>>0):iV};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 s2e.Long?new s2e.Long(this.lo|0,this.hi|0,!!e):{low:this.lo|0,high:this.hi|0,unsigned:!!e}};var yB=String.prototype.charCodeAt;i0.fromHash=function(e){return e===P8o?iV:new i0((yB.call(e,0)|yB.call(e,1)<<8|yB.call(e,2)<<16|yB.call(e,3)<<24)>>>0,(yB.call(e,4)|yB.call(e,5)<<8|yB.call(e,6)<<16|yB.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 K5=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((Cqc,hGr)=>{"use strict";hGr.exports=dl;var zx=K5(),ZTt,bOe=zx.LongBits,fGr=zx.base64,dGr=zx.utf8;function a2e(t,e,r){this.fn=t,this.len=e,this.next=void 0,this.val=r}function t4t(){}function k8o(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 a2e(t4t,0,0),this.tail=this.head,this.states=null}var pGr=function(){return zx.Buffer?function(){return(dl.create=function(){return new ZTt})()}:function(){return new dl}};dl.create=pGr();dl.alloc=function(e){return new zx.Array(e)};zx.Array!==Array&&(dl.alloc=zx.pool(dl.alloc,zx.Array.prototype.subarray));dl.prototype._push=function(e,r,o){return this.tail=this.tail.next=new a2e(e,r,o),this.len+=r,this};function r4t(t,e,r){e[r]=t&255}function B8o(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(a2e.prototype);n4t.prototype.fn=B8o;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(zx.float.writeFloatLE,4,e)};dl.prototype.double=function(e){return this._push(zx.float.writeDoubleLE,8,e)};var M8o=zx.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(zx.isString(e)){var o=dl.alloc(r=fGr.length(e));fGr.decode(e,o,0),e=o}return this.uint32(r)._push(M8o,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 k8o(this),this.head=this.tail=new a2e(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 a2e(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((Tqc,gGr)=>{"use strict";gGr.exports=Y5;var mGr=EOe();(Y5.prototype=Object.create(mGr.prototype)).constructor=Y5;var AB=K5();function Y5(){mGr.call(this)}Y5._configure=function(){Y5.alloc=AB._Buffer_allocUnsafe,Y5.writeBytesBuffer=AB.Buffer&&AB.Buffer.prototype instanceof Uint8Array&&AB.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++]}};Y5.prototype.bytes=function(e){AB.isString(e)&&(e=AB._Buffer_from(e,"base64"));var r=e.length>>>0;return this.uint32(r),r&&this._push(Y5.writeBytesBuffer,r,e),this};function L8o(t,e,r){t.length<40?AB.utf8.write(t,e,r):e.utf8Write?e.utf8Write(t,r):e.write(t,r)}Y5.prototype.string=function(e){var r=AB.Buffer.byteLength(e);return this.uint32(r),r&&this._push(L8o,r,e),this};Y5._configure()});var xOe=E((wqc,SGr)=>{"use strict";SGr.exports=kh;var G4=K5(),s4t,bGr=G4.LongBits,U8o=G4.utf8;function j4(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function kh(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 kh(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new kh(e);throw Error("illegal buffer")},EGr=function(){return G4.Buffer?function(r){return(kh.create=function(s){return G4.Buffer.isBuffer(s)?new s4t(s):AGr(s)})(r)}:AGr};kh.create=EGr();kh.prototype._slice=G4.Array.prototype.subarray||G4.Array.prototype.slice;kh.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,j4(this,10);return e}})();kh.prototype.int32=function(){return this.uint32()|0};kh.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 j4(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 j4(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")}kh.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}kh.prototype.fixed32=function(){if(this.pos+4>this.len)throw j4(this,4);return SOe(this.buf,this.pos+=4)};kh.prototype.sfixed32=function(){if(this.pos+4>this.len)throw j4(this,4);return SOe(this.buf,this.pos+=4)|0};function vGr(){if(this.pos+8>this.len)throw j4(this,8);return new bGr(SOe(this.buf,this.pos+=4),SOe(this.buf,this.pos+=4))}kh.prototype.float=function(){if(this.pos+4>this.len)throw j4(this,4);var e=G4.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};kh.prototype.double=function(){if(this.pos+8>this.len)throw j4(this,4);var e=G4.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};kh.prototype.bytes=function(){var e=this.uint32(),r=this.pos,o=this.pos+e;if(o>this.len)throw j4(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(r,o);if(r===o){var s=G4.Buffer;return s?s.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,r,o)};kh.prototype.string=function(){var e=this.bytes();return U8o.read(e,0,e.length)};kh.prototype.skip=function(e){if(typeof e=="number"){if(this.pos+e>this.len)throw j4(this,e);this.pos+=e}else do if(this.pos>=this.len)throw j4(this);while(this.buf[this.pos++]&128);return this};kh.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};kh._configure=function(t){s4t=t,kh.create=EGr(),s4t._configure();var e=G4.Long?"toLong":"toNumber";G4.merge(kh.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((Iqc,CGr)=>{"use strict";CGr.exports=oV;var _Gr=xOe();(oV.prototype=Object.create(_Gr.prototype)).constructor=oV;var xGr=K5();function oV(t){_Gr.call(this,t)}oV._configure=function(){xGr.Buffer&&(oV.prototype._slice=xGr.Buffer.prototype.slice)};oV.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))};oV._configure()});var IGr=E((Dqc,wGr)=>{"use strict";wGr.exports=c2e;var a4t=K5();(c2e.prototype=Object.create(a4t.EventEmitter.prototype)).constructor=c2e;function c2e(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}c2e.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}};c2e.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 F8o=DGr;F8o.Service=IGr()});var l4t=E((Rqc,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=K5();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 J5=E((Pqc,PGr)=>{"use strict";PGr.exports=u4t()});var _Oe=E((kGr,BGr)=>{"use strict";Object.defineProperty(kGr,"__esModule",{value:!0});var Mo=J5(),Kt=Mo.Reader,sa=Mo.Writer,$e=Mo.util,Be=Mo.roots.default||(Mo.roots.default={});Be.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")&&Be.opentelemetry.proto.common.v1.ArrayValue.encode(n.arrayValue,c.uint32(42).fork()).ldelim(),n.kvlistValue!=null&&Object.hasOwnProperty.call(n,"kvlistValue")&&Be.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 Be.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=Be.opentelemetry.proto.common.v1.ArrayValue.decode(n,n.uint32());break}case 6:{d.kvlistValue=Be.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=Be.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=Be.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 Be.opentelemetry.proto.common.v1.AnyValue)return n;var c=new Be.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=Be.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=Be.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=Be.opentelemetry.proto.common.v1.ArrayValue.toObject(n.arrayValue,c),c.oneofs&&(u.value="arrayValue")),n.kvlistValue!=null&&n.hasOwnProperty("kvlistValue")&&(u.kvlistValue=Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.common.v1.AnyValue.verify(i.values[n]);if(c)return"values."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.common.v1.ArrayValue)return i;var n=new Be.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]=Be.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]=Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.common.v1.KeyValue.verify(i.values[n]);if(c)return"values."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.common.v1.KeyValueList)return i;var n=new Be.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]=Be.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]=Be.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")&&Be.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 Be.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=Be.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=Be.opentelemetry.proto.common.v1.AnyValue.verify(i.value);if(n)return"value."+n}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.common.v1.KeyValue)return i;var n=new Be.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=Be.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=Be.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)Be.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 Be.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(Be.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=Be.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 Be.opentelemetry.proto.common.v1.InstrumentationScope)return i;var n=new Be.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]=Be.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]=Be.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 Be.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 Be.opentelemetry.proto.common.v1.EntityRef)return i;var n=new Be.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)Be.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)Be.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 Be.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(Be.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(Be.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=Be.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=Be.opentelemetry.proto.common.v1.EntityRef.verify(i.entityRefs[n]);if(c)return"entityRefs."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.resource.v1.Resource)return i;var n=new Be.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]=Be.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]=Be.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]=Be.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]=Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.trace.v1.ResourceSpans.verify(i.resourceSpans[n]);if(c)return"resourceSpans."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.trace.v1.TracesData)return i;var n=new Be.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]=Be.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]=Be.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")&&Be.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)Be.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 Be.opentelemetry.proto.trace.v1.ResourceSpans;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resource=Be.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{f.scopeSpans&&f.scopeSpans.length||(f.scopeSpans=[]),f.scopeSpans.push(Be.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=Be.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=Be.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 Be.opentelemetry.proto.trace.v1.ResourceSpans)return i;var n=new Be.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=Be.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]=Be.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=Be.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]=Be.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")&&Be.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)Be.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 Be.opentelemetry.proto.trace.v1.ScopeSpans;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{f.spans&&f.spans.length||(f.spans=[]),f.spans.push(Be.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=Be.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=Be.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 Be.opentelemetry.proto.trace.v1.ScopeSpans)return i;var n=new Be.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=Be.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]=Be.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=Be.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]=Be.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)Be.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)Be.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)Be.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")&&Be.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 Be.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(Be.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(Be.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(Be.opentelemetry.proto.trace.v1.Span.Link.decode(i,i.uint32()));break}case 14:{f.droppedLinksCount=i.uint32();break}case 15:{f.status=Be.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=Be.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=Be.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=Be.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=Be.opentelemetry.proto.trace.v1.Status.verify(i.status);if(c)return"status."+c}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.trace.v1.Span)return i;var n=new Be.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]=Be.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]=Be.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]=Be.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=Be.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?Be.opentelemetry.proto.trace.v1.Span.SpanKind[i.kind]===void 0?i.kind:Be.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]=Be.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]=Be.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]=Be.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=Be.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)Be.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 Be.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(Be.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=Be.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 Be.opentelemetry.proto.trace.v1.Span.Event)return n;var c=new Be.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]=Be.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]=Be.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)Be.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 Be.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(Be.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=Be.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 Be.opentelemetry.proto.trace.v1.Span.Link)return n;var c=new Be.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]=Be.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]=Be.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 Be.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 Be.opentelemetry.proto.trace.v1.Status)return i;var n=new Be.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?Be.opentelemetry.proto.trace.v1.Status.StatusCode[i.code]===void 0?i.code:Be.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,Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.trace.v1.ResourceSpans.verify(n.resourceSpans[c]);if(u)return"resourceSpans."+u}}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return n;var c=new Be.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]=Be.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]=Be.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")&&Be.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 Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.partialSuccess=Be.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=Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(n.partialSuccess);if(c)return"partialSuccess."+c}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return n;var c=new Be.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=Be.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=Be.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 Be.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 Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return n;var c=new Be.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,Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(n.resourceMetrics[c]);if(u)return"resourceMetrics."+u}}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return n;var c=new Be.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]=Be.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]=Be.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")&&Be.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 Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.partialSuccess=Be.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=Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(n.partialSuccess);if(c)return"partialSuccess."+c}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return n;var c=new Be.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=Be.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=Be.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 Be.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 Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return n;var c=new Be.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,Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.logs.v1.ResourceLogs.verify(n.resourceLogs[c]);if(u)return"resourceLogs."+u}}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return n;var c=new Be.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]=Be.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]=Be.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")&&Be.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 Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.partialSuccess=Be.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=Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(n.partialSuccess);if(c)return"partialSuccess."+c}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return n;var c=new Be.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=Be.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=Be.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 Be.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 Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return n;var c=new Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(i.resourceMetrics[n]);if(c)return"resourceMetrics."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.MetricsData)return i;var n=new Be.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]=Be.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]=Be.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")&&Be.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)Be.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 Be.opentelemetry.proto.metrics.v1.ResourceMetrics;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resource=Be.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{f.scopeMetrics&&f.scopeMetrics.length||(f.scopeMetrics=[]),f.scopeMetrics.push(Be.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=Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.ResourceMetrics)return i;var n=new Be.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=Be.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]=Be.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=Be.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]=Be.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")&&Be.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)Be.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 Be.opentelemetry.proto.metrics.v1.ScopeMetrics;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{f.metrics&&f.metrics.length||(f.metrics=[]),f.metrics.push(Be.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=Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.ScopeMetrics)return i;var n=new Be.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=Be.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]=Be.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=Be.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]=Be.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")&&Be.opentelemetry.proto.metrics.v1.Gauge.encode(n.gauge,c.uint32(42).fork()).ldelim(),n.sum!=null&&Object.hasOwnProperty.call(n,"sum")&&Be.opentelemetry.proto.metrics.v1.Sum.encode(n.sum,c.uint32(58).fork()).ldelim(),n.histogram!=null&&Object.hasOwnProperty.call(n,"histogram")&&Be.opentelemetry.proto.metrics.v1.Histogram.encode(n.histogram,c.uint32(74).fork()).ldelim(),n.exponentialHistogram!=null&&Object.hasOwnProperty.call(n,"exponentialHistogram")&&Be.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(n.exponentialHistogram,c.uint32(82).fork()).ldelim(),n.summary!=null&&Object.hasOwnProperty.call(n,"summary")&&Be.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)Be.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 Be.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=Be.opentelemetry.proto.metrics.v1.Gauge.decode(n,n.uint32());break}case 7:{d.sum=Be.opentelemetry.proto.metrics.v1.Sum.decode(n,n.uint32());break}case 9:{d.histogram=Be.opentelemetry.proto.metrics.v1.Histogram.decode(n,n.uint32());break}case 10:{d.exponentialHistogram=Be.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(n,n.uint32());break}case 11:{d.summary=Be.opentelemetry.proto.metrics.v1.Summary.decode(n,n.uint32());break}case 12:{d.metadata&&d.metadata.length||(d.metadata=[]),d.metadata.push(Be.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=Be.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=Be.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=Be.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=Be.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=Be.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=Be.opentelemetry.proto.common.v1.KeyValue.verify(n.metadata[f]);if(u)return"metadata."+u}}return null},s.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.metrics.v1.Metric)return n;var c=new Be.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=Be.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=Be.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=Be.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=Be.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=Be.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]=Be.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=Be.opentelemetry.proto.metrics.v1.Gauge.toObject(n.gauge,c),c.oneofs&&(u.data="gauge")),n.sum!=null&&n.hasOwnProperty("sum")&&(u.sum=Be.opentelemetry.proto.metrics.v1.Sum.toObject(n.sum,c),c.oneofs&&(u.data="sum")),n.histogram!=null&&n.hasOwnProperty("histogram")&&(u.histogram=Be.opentelemetry.proto.metrics.v1.Histogram.toObject(n.histogram,c),c.oneofs&&(u.data="histogram")),n.exponentialHistogram!=null&&n.hasOwnProperty("exponentialHistogram")&&(u.exponentialHistogram=Be.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(n.exponentialHistogram,c),c.oneofs&&(u.data="exponentialHistogram")),n.summary!=null&&n.hasOwnProperty("summary")&&(u.summary=Be.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]=Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.Gauge)return i;var n=new Be.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]=Be.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]=Be.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)Be.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 Be.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(Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.Sum)return i;var n=new Be.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]=Be.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]=Be.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(i.dataPoints[u],n)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=n.enums===String?Be.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:Be.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)Be.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 Be.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(Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.Histogram)return i;var n=new Be.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]=Be.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]=Be.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(i.dataPoints[u],n)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=n.enums===String?Be.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:Be.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)Be.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 Be.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(Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.ExponentialHistogram)return i;var n=new Be.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]=Be.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]=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(i.dataPoints[u],n)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=n.enums===String?Be.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.Summary)return i;var n=new Be.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]=Be.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]=Be.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)Be.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)Be.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 Be.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(Be.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(Be.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=Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.NumberDataPoint)return n;var c=new Be.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]=Be.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]=Be.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]=Be.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]=Be.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)Be.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)Be.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 Be.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(Be.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(Be.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=Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.HistogramDataPoint)return n;var c=new Be.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]=Be.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]=Be.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]=Be.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]=Be.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)Be.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")&&Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(n.positive,c.uint32(66).fork()).ldelim(),n.negative!=null&&Object.hasOwnProperty.call(n,"negative")&&Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(n,n.uint32());break}case 9:{d.negative=Be.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(Be.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=Be.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=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(n.positive);if(f)return"positive."+f}if(n.negative!=null&&n.hasOwnProperty("negative")){var f=Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return n;var c=new Be.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]=Be.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=Be.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=Be.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]=Be.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]=Be.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=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(n.positive,c)),n.negative!=null&&n.hasOwnProperty("negative")&&(u.negative=Be.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]=Be.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 Be.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 Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return c;var u=new Be.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)Be.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)Be.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 Be.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(Be.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(Be.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=Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.SummaryDataPoint)return i;var n=new Be.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]=Be.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]=Be.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]=Be.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]=Be.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 Be.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 Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return n;var c=new Be.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)Be.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 Be.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(Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.Exemplar)return n;var c=new Be.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]=Be.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]=Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.logs.v1.ResourceLogs.verify(i.resourceLogs[n]);if(c)return"resourceLogs."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.logs.v1.LogsData)return i;var n=new Be.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]=Be.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]=Be.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")&&Be.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)Be.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 Be.opentelemetry.proto.logs.v1.ResourceLogs;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resource=Be.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{f.scopeLogs&&f.scopeLogs.length||(f.scopeLogs=[]),f.scopeLogs.push(Be.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=Be.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=Be.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 Be.opentelemetry.proto.logs.v1.ResourceLogs)return i;var n=new Be.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=Be.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]=Be.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=Be.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]=Be.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")&&Be.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)Be.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 Be.opentelemetry.proto.logs.v1.ScopeLogs;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{f.logRecords&&f.logRecords.length||(f.logRecords=[]),f.logRecords.push(Be.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=Be.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=Be.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 Be.opentelemetry.proto.logs.v1.ScopeLogs)return i;var n=new Be.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=Be.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]=Be.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=Be.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]=Be.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")&&Be.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)Be.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 Be.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=Be.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32());break}case 6:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(Be.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=Be.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=Be.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 Be.opentelemetry.proto.logs.v1.LogRecord)return i;var n=new Be.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=Be.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]=Be.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?Be.opentelemetry.proto.logs.v1.SeverityNumber[i.severityNumber]===void 0?i.severityNumber:Be.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=Be.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]=Be.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})();BGr.exports=Be});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 Q8o(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=Q8o});var TOe=E(Kx=>{"use strict";Object.defineProperty(Kx,"__esModule",{value:!0});Kx.getOtlpEncoder=Kx.encodeAsString=Kx.encodeAsLongBits=Kx.toLongBits=Kx.hrTimeToNanos=void 0;var q8o=o2e(),f4t=LGr();function d4t(t){let e=BigInt(1e9);return BigInt(Math.trunc(t[0]))*e+BigInt(Math.trunc(t[1]))}Kx.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}}Kx.toLongBits=FGr;function p4t(t){let e=d4t(t);return FGr(e)}Kx.encodeAsLongBits=p4t;function QGr(t){return d4t(t).toString()}Kx.encodeAsString=QGr;var H8o=typeof BigInt<"u"?QGr:q8o.hrTimeToNanoseconds;function UGr(t){return t}function qGr(t){if(t!==void 0)return(0,f4t.hexToBinary)(t)}var V8o={encodeHrTime:p4t,encodeSpanContext:f4t.hexToBinary,encodeOptionalSpanContext:qGr};function G8o(t){if(t===void 0)return V8o;let e=t.useLongBits??!0,r=t.useHex??!1;return{encodeHrTime:e?p4t:H8o,encodeSpanContext:r?UGr:f4t.hexToBinary,encodeOptionalSpanContext:r?UGr:qGr}}Kx.getOtlpEncoder=G8o});var wOe=E(Yx=>{"use strict";Object.defineProperty(Yx,"__esModule",{value:!0});Yx.toAnyValue=Yx.toKeyValue=Yx.toAttributes=Yx.createInstrumentationScope=Yx.createResource=void 0;function j8o(t){let e={attributes:HGr(t.attributes),droppedAttributesCount:0},r=t.schemaUrl;return r&&r!==""&&(e.schemaUrl=r),e}Yx.createResource=j8o;function $8o(t){return{name:t.name,version:t.version}}Yx.createInstrumentationScope=$8o;function HGr(t){return Object.keys(t).map(e=>h4t(e,t[e]))}Yx.toAttributes=HGr;function h4t(t,e){return{key:t,value:m4t(e)}}Yx.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))}}:{}}Yx.toAnyValue=m4t});var g4t=E(nte=>{"use strict";Object.defineProperty(nte,"__esModule",{value:!0});nte.toLogAttributes=nte.createExportLogsServiceRequest=void 0;var W8o=TOe(),IOe=wOe();function z8o(t,e){let r=(0,W8o.getOtlpEncoder)(e);return{resourceLogs:Y8o(t,r)}}nte.createExportLogsServiceRequest=z8o;function K8o(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 Y8o(t,e){let r=K8o(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=>J8o(n,e)),schemaUrl:i[0].instrumentationScope.schemaUrl})),schemaUrl:a.schemaUrl}})}function J8o(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]))}nte.toLogAttributes=VGr});var jGr=E(DOe=>{"use strict";Object.defineProperty(DOe,"__esModule",{value:!0});DOe.ProtobufLogsSerializer=void 0;var GGr=_Oe(),X8o=g4t(),Z8o=GGr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,eDo=GGr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;DOe.ProtobufLogsSerializer={serializeRequest:t=>{let e=(0,X8o.createExportLogsServiceRequest)(t);return eDo.encode(e).finish()},deserializeResponse:t=>Z8o.decode(t)}});var $Gr=E(OOe=>{"use strict";Object.defineProperty(OOe,"__esModule",{value:!0});OOe.ProtobufLogsSerializer=void 0;var tDo=jGr();Object.defineProperty(OOe,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return tDo.ProtobufLogsSerializer}})});var ROe=E(l2e=>{"use strict";Object.defineProperty(l2e,"__esModule",{value:!0});l2e.AggregationTemporality=void 0;var rDo;(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE"})(rDo=l2e.AggregationTemporality||(l2e.AggregationTemporality={}))});var bB=E(vB=>{"use strict";Object.defineProperty(vB,"__esModule",{value:!0});vB.DataPointType=vB.InstrumentType=void 0;var nDo;(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"})(nDo=vB.InstrumentType||(vB.InstrumentType={}));var iDo;(function(t){t[t.HISTOGRAM=0]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",t[t.GAUGE=2]="GAUGE",t[t.SUM=3]="SUM"})(iDo=vB.DataPointType||(vB.DataPointType={}))});var $4=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 oDo(t){return t!=null}rp.isNotNullish=oDo;function sDo(t){let e=Object.keys(t);return e.length===0?"":(e=e.sort(),JSON.stringify(e.map(r=>[r,t[r]])))}rp.hashAttributes=sDo;function aDo(t){return`${t.name}:${t.version??""}:${t.schemaUrl??""}`}rp.instrumentationScopeId=aDo;var NOe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};rp.TimeoutError=NOe;function cDo(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=cDo;async function lDo(t){return Promise.all(t.map(async e=>{try{return{status:"fulfilled",value:await e}}catch(r){return{status:"rejected",reason:r}}}))}rp.PromiseAllSettled=lDo;function uDo(t){return t.status==="rejected"}rp.isPromiseAllSettledRejectionResult=uDo;function fDo(t,e){let r=[];return t.forEach(o=>{r.push(...e(o))}),r}rp.FlatMap=fDo;function dDo(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}rp.setEquals=dDo;function pDo(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=pDo;function hDo(t,e){return t.toLowerCase()===e.toLowerCase()}rp.equalsCaseInsensitive=hDo});var ite=E(u2e=>{"use strict";Object.defineProperty(u2e,"__esModule",{value:!0});u2e.AggregatorKind=void 0;var mDo;(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"})(mDo=u2e.AggregatorKind||(u2e.AggregatorKind={}))});var WGr=E(POe=>{"use strict";Object.defineProperty(POe,"__esModule",{value:!0});POe.DropAggregator=void 0;var gDo=ite(),y4t=class{kind=gDo.AggregatorKind.DROP;createAccumulation(){}merge(e,r){}diff(e,r){}toMetricData(e,r,o,s){}};POe.DropAggregator=y4t});var zGr=E(ste=>{"use strict";Object.defineProperty(ste,"__esModule",{value:!0});ste.HistogramAggregator=ste.HistogramAccumulation=void 0;var yDo=ite(),f2e=bB(),ADo=$4();function vDo(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 ote=class{startTime;_boundaries;_recordMinMax;_current;constructor(e,r,o=!0,s=vDo(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,ADo.binarySearchUB)(this._boundaries,e);this._current.buckets.counts[r]+=1}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};ste.HistogramAccumulation=ote;var A4t=class{_boundaries;_recordMinMax;kind=yDo.AggregatorKind.HISTOGRAM;constructor(e,r){this._boundaries=e,this._recordMinMax=r}createAccumulation(e){return new ote(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 ote(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 ote(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:f2e.DataPointType.HISTOGRAM,dataPoints:o.map(([a,i])=>{let n=i.toPointValue(),c=e.type===f2e.InstrumentType.GAUGE||e.type===f2e.InstrumentType.UP_DOWN_COUNTER||e.type===f2e.InstrumentType.OBSERVABLE_GAUGE||e.type===f2e.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}}})}}};ste.HistogramAggregator=A4t});var KGr=E(kOe=>{"use strict";Object.defineProperty(kOe,"__esModule",{value:!0});kOe.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))}};kOe.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 bDo=2146435072,EDo=1048575,E4t=1023;Iv.MIN_NORMAL_EXPONENT=-E4t+1;Iv.MAX_NORMAL_EXPONENT=E4t;Iv.MIN_VALUE=Math.pow(2,-1022);function SDo(t){let e=new DataView(new ArrayBuffer(8));return e.setFloat64(0,t),((e.getUint32(0)&bDo)>>20)-E4t}Iv.getNormalBase2=SDo;function xDo(t){let e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);let r=e.getUint32(0),o=e.getUint32(4);return(r&EDo)*Math.pow(2,32)+o}Iv.getSignificand=xDo});var BOe=E(ate=>{"use strict";Object.defineProperty(ate,"__esModule",{value:!0});ate.nextGreaterSquare=ate.ldexp=void 0;function _Do(t,e){return t===0||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||Number.isNaN(t)?t:t*Math.pow(2,e)}ate.ldexp=_Do;function CDo(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t++,t}ate.nextGreaterSquare=CDo});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 cte=S4t(),TDo=BOe(),YGr=LOe(),_4t=class{_shift;constructor(e){this._shift=-e}mapToIndex(e){if(e<cte.MIN_VALUE)return this._minNormalLowerBoundaryIndex();let r=cte.getNormalBase2(e),o=this._rightShift(cte.getSignificand(e)-1,cte.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 TDo.ldexp(1,e<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let e=cte.MIN_NORMAL_EXPONENT>>this._shift;return this._shift<2&&e--,e}_maxNormalLowerBoundaryIndex(){return cte.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 lte=S4t(),XGr=BOe(),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<=lte.MIN_VALUE)return this._minNormalLowerBoundaryIndex()-1;if(lte.getSignificand(e)===0)return(lte.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 lte.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 lte.MIN_NORMAL_EXPONENT<<this._scale}_maxNormalLowerBoundaryIndex(){return(lte.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 wDo=JGr(),IDo=ejr(),DDo=LOe(),tjr=-10,rjr=20,ODo=Array.from({length:31},(t,e)=>e>10?new IDo.LogarithmMapping(e-10):new wDo.ExponentMapping(e-10));function RDo(t){if(t>rjr||t<tjr)throw new DDo.MappingError(`expected scale >= ${tjr} && <= ${rjr}, got: ${t}`);return ODo[t+10]}QOe.getMapping=RDo});var sjr=E(fte=>{"use strict";Object.defineProperty(fte,"__esModule",{value:!0});fte.ExponentialHistogramAggregator=fte.ExponentialHistogramAccumulation=void 0;var NDo=ite(),d2e=bB(),PDo=(ut(),nt(xt)),ijr=KGr(),ojr=njr(),kDo=BOe(),ute=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}},BDo=20,MDo=160,T4t=2,qOe=class t{startTime;_maxSize;_recordMinMax;_sum;_count;_zeroCount;_min;_max;_positive;_negative;_mapping;constructor(e,r=MDo,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)(BDo)){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&&(PDo.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,kDo.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=ute.combine(this._highLowAtScale(this.positive,this.scale,r),this._highLowAtScale(e.positive,e.scale,r)),s=ute.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 ute(0,-1);let s=r-o;return new ute(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()}};fte.ExponentialHistogramAccumulation=qOe;var w4t=class{_maxSize;_recordMinMax;kind=NDo.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:d2e.DataPointType.EXPONENTIAL_HISTOGRAM,dataPoints:o.map(([a,i])=>{let n=i.toPointValue(),c=e.type===d2e.InstrumentType.GAUGE||e.type===d2e.InstrumentType.UP_DOWN_COUNTER||e.type===d2e.InstrumentType.OBSERVABLE_GAUGE||e.type===d2e.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}}})}}};fte.ExponentialHistogramAggregator=w4t});var p2e=E(EB=>{"use strict";Object.defineProperty(EB,"__esModule",{value:!0});EB.isTracingSuppressed=EB.unsuppressTracing=EB.suppressTracing=void 0;var LDo=(ut(),nt(xt)),I4t=(0,LDo.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function UDo(t){return t.setValue(I4t,!0)}EB.suppressTracing=UDo;function FDo(t){return t.deleteValue(I4t)}EB.unsuppressTracing=FDo;function QDo(t){return t.getValue(I4t)===!0}EB.isTracingSuppressed=QDo});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(X5=>{"use strict";Object.defineProperty(X5,"__esModule",{value:!0});X5.parseKeyPairsIntoRecord=X5.parsePairKeyValue=X5.getKeyPairs=X5.serializeKeyPairs=void 0;var qDo=(ut(),nt(xt)),sV=D4t();function HDo(t){return t.reduce((e,r)=>{let o=`${e}${e!==""?sV.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return o.length>sV.BAGGAGE_MAX_TOTAL_LENGTH?e:o},"")}X5.serializeKeyPairs=HDo;function VDo(t){return t.getAllEntries().map(([e,r])=>{let o=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(o+=sV.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),o})}X5.getKeyPairs=VDo;function ajr(t){let e=t.split(sV.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let o=r.indexOf(sV.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,qDo.baggageEntryMetadataFromString)(e.join(sV.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:a,metadata:i}}X5.parsePairKeyValue=ajr;function GDo(t){let e={};return typeof t=="string"&&t.length>0&&t.split(sV.BAGGAGE_ITEMS_SEPARATOR).forEach(r=>{let o=ajr(r);o!==void 0&&o.value.length>0&&(e[o.key]=o.value)}),e}X5.parseKeyPairsIntoRecord=GDo});var cjr=E(HOe=>{"use strict";Object.defineProperty(HOe,"__esModule",{value:!0});HOe.W3CBaggagePropagator=void 0;var R4t=(ut(),nt(xt)),jDo=p2e(),aV=D4t(),N4t=O4t(),P4t=class{inject(e,r,o){let s=R4t.propagation.getBaggage(e);if(!s||(0,jDo.isTracingSuppressed)(e))return;let a=(0,N4t.getKeyPairs)(s).filter(n=>n.length<=aV.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,aV.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,N4t.serializeKeyPairs)(a);i.length>0&&o.set(r,aV.BAGGAGE_HEADER,i)}extract(e,r,o){let s=o.get(r,aV.BAGGAGE_HEADER),a=Array.isArray(s)?s.join(aV.BAGGAGE_ITEMS_SEPARATOR):s;if(!a)return e;let i={};return a.length===0||(a.split(aV.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[aV.BAGGAGE_HEADER]}};HOe.W3CBaggagePropagator=P4t});var ljr=E(VOe=>{"use strict";Object.defineProperty(VOe,"__esModule",{value:!0});VOe.AnchoredClock=void 0;var k4t=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=k4t});var hjr=E(SB=>{"use strict";Object.defineProperty(SB,"__esModule",{value:!0});SB.isAttributeValue=SB.isAttributeKey=SB.sanitizeAttributes=void 0;var ujr=(ut(),nt(xt));function $Do(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}SB.sanitizeAttributes=$Do;function fjr(t){return typeof t=="string"&&t.length>0}SB.isAttributeKey=fjr;function djr(t){return t==null?!0:Array.isArray(t)?WDo(t):pjr(t)}SB.isAttributeValue=djr;function WDo(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 B4t=E(GOe=>{"use strict";Object.defineProperty(GOe,"__esModule",{value:!0});GOe.loggingErrorHandler=void 0;var zDo=(ut(),nt(xt));function KDo(){return t=>{zDo.diag.error(YDo(t))}}GOe.loggingErrorHandler=KDo;function YDo(t){return typeof t=="string"?t:JSON.stringify(JDo(t))}function JDo(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(dte=>{"use strict";Object.defineProperty(dte,"__esModule",{value:!0});dte.globalErrorHandler=dte.setGlobalErrorHandler=void 0;var XDo=B4t(),mjr=(0,XDo.loggingErrorHandler)();function ZDo(t){mjr=t}dte.setGlobalErrorHandler=ZDo;function e9o(t){try{mjr(t)}catch{}}dte.globalErrorHandler=e9o});var bjr=E(Z5=>{"use strict";Object.defineProperty(Z5,"__esModule",{value:!0});Z5.getStringListFromEnv=Z5.getBooleanFromEnv=Z5.getStringFromEnv=Z5.getNumberFromEnv=void 0;var yjr=(ut(),nt(xt)),Ajr=me("util");function t9o(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}Z5.getNumberFromEnv=t9o;function vjr(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}Z5.getStringFromEnv=vjr;function r9o(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)}Z5.getBooleanFromEnv=r9o;function n9o(t){return vjr(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}Z5.getStringListFromEnv=n9o});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 i9o=me("perf_hooks");$Oe.otperformance=i9o.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 o9o=xjr(),KOe=(Wl(),nt(Uu)),s9o=_jr();YOe.SDK_INFO={[KOe.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[s9o.ATTR_PROCESS_RUNTIME_NAME]:"node",[KOe.ATTR_TELEMETRY_SDK_LANGUAGE]:KOe.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[KOe.ATTR_TELEMETRY_SDK_VERSION]:o9o.VERSION}});var Tjr=E(JOe=>{"use strict";Object.defineProperty(JOe,"__esModule",{value:!0});JOe.unrefTimer=void 0;function a9o(t){t.unref()}JOe.unrefTimer=a9o});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 c9o=Ejr();Object.defineProperty(o0,"_globalThis",{enumerable:!0,get:function(){return c9o._globalThis}});var l9o=Sjr();Object.defineProperty(o0,"otperformance",{enumerable:!0,get:function(){return l9o.otperformance}});var u9o=Cjr();Object.defineProperty(o0,"SDK_INFO",{enumerable:!0,get:function(){return u9o.SDK_INFO}});var f9o=Tjr();Object.defineProperty(o0,"unrefTimer",{enumerable:!0,get:function(){return f9o.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 xB=wjr();Object.defineProperty(s0,"SDK_INFO",{enumerable:!0,get:function(){return xB.SDK_INFO}});Object.defineProperty(s0,"_globalThis",{enumerable:!0,get:function(){return xB._globalThis}});Object.defineProperty(s0,"otperformance",{enumerable:!0,get:function(){return xB.otperformance}});Object.defineProperty(s0,"unrefTimer",{enumerable:!0,get:function(){return xB.unrefTimer}});Object.defineProperty(s0,"getBooleanFromEnv",{enumerable:!0,get:function(){return xB.getBooleanFromEnv}});Object.defineProperty(s0,"getStringFromEnv",{enumerable:!0,get:function(){return xB.getStringFromEnv}});Object.defineProperty(s0,"getNumberFromEnv",{enumerable:!0,get:function(){return xB.getNumberFromEnv}});Object.defineProperty(s0,"getStringListFromEnv",{enumerable:!0,get:function(){return xB.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,d9o=6,p9o=Math.pow(10,d9o),ZOe=Math.pow(10,Ijr);function h2e(t){let e=t/1e3,r=Math.trunc(e),o=Math.round(t%1e3*p9o);return[r,o]}Rf.millisToHrTime=h2e;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=h2e(U4t()),r=h2e(typeof t=="number"?t:L4t.otperformance.now());return Ojr(e,r)}Rf.hrTime=Djr;function h9o(t){if(F4t(t))return t;if(typeof t=="number")return t<U4t()?Djr(t):h2e(t);if(t instanceof Date)return h2e(t.getTime());throw TypeError("Invalid input type")}Rf.timeInputToHrTime=h9o;function m9o(t,e){let r=e[0]-t[0],o=e[1]-t[1];return o<0&&(r-=1,o+=ZOe),[r,o]}Rf.hrTimeDuration=m9o;function g9o(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=g9o;function y9o(t){return t[0]*ZOe+t[1]}Rf.hrTimeToNanoseconds=y9o;function A9o(t){return t[0]*1e3+t[1]/1e6}Rf.hrTimeToMilliseconds=A9o;function v9o(t){return t[0]*1e6+t[1]/1e3}Rf.hrTimeToMicroseconds=v9o;function F4t(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}Rf.isTimeInputHrTime=F4t;function b9o(t){return F4t(t)||typeof t=="number"||t instanceof Date}Rf.isTimeInput=b9o;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(m2e=>{"use strict";Object.defineProperty(m2e,"__esModule",{value:!0});m2e.ExportResultCode=void 0;var E9o;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(E9o=m2e.ExportResultCode||(m2e.ExportResultCode={}))});var kjr=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 Bjr=E(pte=>{"use strict";Object.defineProperty(pte,"__esModule",{value:!0});pte.validateValue=pte.validateKey=void 0;var q4t="[_0-9a-z-*/]",S9o=`[a-z]${q4t}{0,255}`,x9o=`[a-z0-9]${q4t}{0,240}@[a-z]${q4t}{0,13}`,_9o=new RegExp(`^(?:${S9o}|${x9o})$`),C9o=/^[ -~]{0,255}[!-~]$/,T9o=/,|=/;function w9o(t){return _9o.test(t)}pte.validateKey=w9o;function I9o(t){return C9o.test(t)&&!T9o.test(t)}pte.validateValue=I9o});var V4t=E(tRe=>{"use strict";Object.defineProperty(tRe,"__esModule",{value:!0});tRe.TraceState=void 0;var Mjr=Bjr(),Ljr=32,D9o=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>D9o||(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)),O9o=p2e(),R9o=V4t();ty.TRACE_PARENT_HEADER="traceparent";ty.TRACE_STATE_HEADER="tracestate";var N9o="00",P9o="(?!ff)[\\da-f]{2}",k9o="(?![0]{32})[\\da-f]{32}",B9o="(?![0]{16})[\\da-f]{16}",M9o="[\\da-f]{2}",L9o=new RegExp(`^\\s?(${P9o})-(${k9o})-(${B9o})-(${M9o})(-.*)?\\s?$`);function Qjr(t){let e=L9o.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,O9o.isTracingSuppressed)(e)||!(0,rRe.isSpanContextValid)(s))return;let a=`${N9o}-${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 R9o.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(W4=>{"use strict";Object.defineProperty(W4,"__esModule",{value:!0});W4.getRPCMetadata=W4.deleteRPCMetadata=W4.setRPCMetadata=W4.RPCType=void 0;var U9o=(ut(),nt(xt)),j4t=(0,U9o.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),F9o;(function(t){t.HTTP="http"})(F9o=W4.RPCType||(W4.RPCType={}));function Q9o(t,e){return t.setValue(j4t,e)}W4.setRPCMetadata=Q9o;function q9o(t){return t.deleteValue(j4t)}W4.deleteRPCMetadata=q9o;function H9o(t){return t.getValue(j4t)}W4.getRPCMetadata=H9o});var Wjr=E(nRe=>{"use strict";Object.defineProperty(nRe,"__esModule",{value:!0});nRe.isPlainObject=void 0;var V9o="[object Object]",G9o="[object Null]",j9o="[object Undefined]",$9o=Function.prototype,Vjr=$9o.toString,W9o=Vjr.call(Object),z9o=Object.getPrototypeOf,Gjr=Object.prototype,jjr=Gjr.hasOwnProperty,cV=Symbol?Symbol.toStringTag:void 0,$jr=Gjr.toString;function K9o(t){if(!Y9o(t)||J9o(t)!==V9o)return!1;let e=z9o(t);if(e===null)return!0;let r=jjr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Vjr.call(r)===W9o}nRe.isPlainObject=K9o;function Y9o(t){return t!=null&&typeof t=="object"}function J9o(t){return t==null?t===void 0?j9o:G9o:cV&&cV in Object(t)?X9o(t):Z9o(t)}function X9o(t){let e=jjr.call(t,cV),r=t[cV],o=!1;try{t[cV]=void 0,o=!0}catch{}let s=$jr.call(t);return o&&(e?t[cV]=r:delete t[cV]),s}function Z9o(t){return $jr.call(t)}});var Xjr=E(sRe=>{"use strict";Object.defineProperty(sRe,"__esModule",{value:!0});sRe.merge=void 0;var zjr=Wjr(),e7o=20;function t7o(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=Yjr(e,t.shift(),0,r);return e}sRe.merge=t7o;function $4t(t){return oRe(t)?t.slice():t}function Yjr(t,e,r=0,o){let s;if(!(r>e7o)){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(g2e(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(g2e(t))if(g2e(e)){if(!r7o(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(g2e(f)&&g2e(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 g2e(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 r7o(t,e){return!(!(0,zjr.isPlainObject)(t)||!(0,zjr.isPlainObject)(e))}});var Zjr=E(hte=>{"use strict";Object.defineProperty(hte,"__esModule",{value:!0});hte.callWithTimeout=hte.TimeoutError=void 0;var aRe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};hte.TimeoutError=aRe;function n7o(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})}hte.callWithTimeout=n7o});var t$r=E(mte=>{"use strict";Object.defineProperty(mte,"__esModule",{value:!0});mte.isUrlIgnored=mte.urlMatches=void 0;function e$r(t,e){return typeof e=="string"?t===e:!!t.match(e)}mte.urlMatches=e$r;function i7o(t,e){if(!e)return!1;for(let r of e)if(e$r(t,r))return!0;return!1}mte.isUrlIgnored=i7o});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 o7o=r$r(),z4t=class{_callback;_that;_isCalled=!1;_deferred=new o7o.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 iO=(ut(),nt(xt)),i$r={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 s7o(t){if(t==null)return;let e=i$r[t.toUpperCase()];return e??(iO.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(i$r)}, using default`),iO.DiagLogLevel.INFO)}uRe.diagLogLevelFromString=s7o});var a$r=E(fRe=>{"use strict";Object.defineProperty(fRe,"__esModule",{value:!0});fRe._export=void 0;var s$r=(ut(),nt(xt)),a7o=p2e();function c7o(t,e){return new Promise(r=>{s$r.context.with((0,a7o.suppressTracing)(s$r.context.active()),()=>{t.export(e,o=>{r(o)})})})}fRe._export=c7o});var lV=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 l7o=cjr();Object.defineProperty(cn,"W3CBaggagePropagator",{enumerable:!0,get:function(){return l7o.W3CBaggagePropagator}});var u7o=ljr();Object.defineProperty(cn,"AnchoredClock",{enumerable:!0,get:function(){return u7o.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 f7o=B4t();Object.defineProperty(cn,"loggingErrorHandler",{enumerable:!0,get:function(){return f7o.loggingErrorHandler}});var Jx=Rjr();Object.defineProperty(cn,"addHrTimes",{enumerable:!0,get:function(){return Jx.addHrTimes}});Object.defineProperty(cn,"getTimeOrigin",{enumerable:!0,get:function(){return Jx.getTimeOrigin}});Object.defineProperty(cn,"hrTime",{enumerable:!0,get:function(){return Jx.hrTime}});Object.defineProperty(cn,"hrTimeDuration",{enumerable:!0,get:function(){return Jx.hrTimeDuration}});Object.defineProperty(cn,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Jx.hrTimeToMicroseconds}});Object.defineProperty(cn,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Jx.hrTimeToMilliseconds}});Object.defineProperty(cn,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Jx.hrTimeToNanoseconds}});Object.defineProperty(cn,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Jx.hrTimeToTimeStamp}});Object.defineProperty(cn,"isTimeInput",{enumerable:!0,get:function(){return Jx.isTimeInput}});Object.defineProperty(cn,"isTimeInputHrTime",{enumerable:!0,get:function(){return Jx.isTimeInputHrTime}});Object.defineProperty(cn,"millisToHrTime",{enumerable:!0,get:function(){return Jx.millisToHrTime}});Object.defineProperty(cn,"timeInputToHrTime",{enumerable:!0,get:function(){return Jx.timeInputToHrTime}});var d7o=Njr();Object.defineProperty(cn,"ExportResultCode",{enumerable:!0,get:function(){return d7o.ExportResultCode}});var p7o=O4t();Object.defineProperty(cn,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return p7o.parseKeyPairsIntoRecord}});var _B=M4t();Object.defineProperty(cn,"SDK_INFO",{enumerable:!0,get:function(){return _B.SDK_INFO}});Object.defineProperty(cn,"_globalThis",{enumerable:!0,get:function(){return _B._globalThis}});Object.defineProperty(cn,"getStringFromEnv",{enumerable:!0,get:function(){return _B.getStringFromEnv}});Object.defineProperty(cn,"getBooleanFromEnv",{enumerable:!0,get:function(){return _B.getBooleanFromEnv}});Object.defineProperty(cn,"getNumberFromEnv",{enumerable:!0,get:function(){return _B.getNumberFromEnv}});Object.defineProperty(cn,"getStringListFromEnv",{enumerable:!0,get:function(){return _B.getStringListFromEnv}});Object.defineProperty(cn,"otperformance",{enumerable:!0,get:function(){return _B.otperformance}});Object.defineProperty(cn,"unrefTimer",{enumerable:!0,get:function(){return _B.unrefTimer}});var h7o=kjr();Object.defineProperty(cn,"CompositePropagator",{enumerable:!0,get:function(){return h7o.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=p2e();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 m7o=V4t();Object.defineProperty(cn,"TraceState",{enumerable:!0,get:function(){return m7o.TraceState}});var g7o=Xjr();Object.defineProperty(cn,"merge",{enumerable:!0,get:function(){return g7o.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 y7o=n$r();Object.defineProperty(cn,"BindOnceFuture",{enumerable:!0,get:function(){return y7o.BindOnceFuture}});var A7o=o$r();Object.defineProperty(cn,"diagLogLevelFromString",{enumerable:!0,get:function(){return A7o.diagLogLevelFromString}});var v7o=a$r();cn.internal={_export:v7o._export}});var d$r=E(yte=>{"use strict";Object.defineProperty(yte,"__esModule",{value:!0});yte.LastValueAggregator=yte.LastValueAccumulation=void 0;var b7o=ite(),y2e=lV(),E7o=bB(),gte=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,y2e.millisToHrTime)(Date.now())}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};yte.LastValueAccumulation=gte;var Y4t=class{kind=b7o.AggregatorKind.LAST_VALUE;createAccumulation(e){return new gte(e)}merge(e,r){let o=(0,y2e.hrTimeToMicroseconds)(r.sampleTime)>=(0,y2e.hrTimeToMicroseconds)(e.sampleTime)?r:e;return new gte(e.startTime,o.toPointValue(),o.sampleTime)}diff(e,r){let o=(0,y2e.hrTimeToMicroseconds)(r.sampleTime)>=(0,y2e.hrTimeToMicroseconds)(e.sampleTime)?r:e;return new gte(r.startTime,o.toPointValue(),o.sampleTime)}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:E7o.DataPointType.GAUGE,dataPoints:o.map(([a,i])=>({attributes:a,startTime:i.startTime,endTime:s,value:i.toPointValue()}))}}};yte.LastValueAggregator=Y4t});var p$r=E(Ate=>{"use strict";Object.defineProperty(Ate,"__esModule",{value:!0});Ate.SumAggregator=Ate.SumAccumulation=void 0;var S7o=ite(),x7o=bB(),CB=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}};Ate.SumAccumulation=CB;var J4t=class{monotonic;kind=S7o.AggregatorKind.SUM;constructor(e){this.monotonic=e}createAccumulation(e){return new CB(e,this.monotonic)}merge(e,r){let o=e.toPointValue(),s=r.toPointValue();return r.reset?new CB(r.startTime,this.monotonic,s,r.reset):new CB(e.startTime,this.monotonic,o+s)}diff(e,r){let o=e.toPointValue(),s=r.toPointValue();return this.monotonic&&o>s?new CB(r.startTime,this.monotonic,s,!0):new CB(r.startTime,this.monotonic,s-o)}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:x7o.DataPointType.SUM,dataPoints:o.map(([a,i])=>({attributes:a,startTime:i.startTime,endTime:s,value:i.toPointValue()})),isMonotonic:this.monotonic}}};Ate.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 _7o=WGr();Object.defineProperty(xm,"DropAggregator",{enumerable:!0,get:function(){return _7o.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 C7o=(ut(),nt(xt)),uV=A$r(),eI=bB(),hRe=class t{static DEFAULT_INSTANCE=new uV.DropAggregator;createAggregator(e){return t.DEFAULT_INSTANCE}};Dl.DropAggregation=hRe;var mRe=class t{static MONOTONIC_INSTANCE=new uV.SumAggregator(!0);static NON_MONOTONIC_INSTANCE=new uV.SumAggregator(!1);createAggregator(e){switch(e.type){case eI.InstrumentType.COUNTER:case eI.InstrumentType.OBSERVABLE_COUNTER:case eI.InstrumentType.HISTOGRAM:return t.MONOTONIC_INSTANCE;default:return t.NON_MONOTONIC_INSTANCE}}};Dl.SumAggregation=mRe;var gRe=class t{static DEFAULT_INSTANCE=new uV.LastValueAggregator;createAggregator(e){return t.DEFAULT_INSTANCE}};Dl.LastValueAggregation=gRe;var yRe=class t{static DEFAULT_INSTANCE=new uV.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 uV.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 uV.ExponentialHistogramAggregator(this._maxSize,this._recordMinMax)}};Dl.ExponentialHistogramAggregation=vRe;var bRe=class{_resolve(e){switch(e.type){case eI.InstrumentType.COUNTER:case eI.InstrumentType.UP_DOWN_COUNTER:case eI.InstrumentType.OBSERVABLE_COUNTER:case eI.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return Dl.SUM_AGGREGATION;case eI.InstrumentType.GAUGE:case eI.InstrumentType.OBSERVABLE_GAUGE:return Dl.LAST_VALUE_AGGREGATION;case eI.InstrumentType.HISTOGRAM:return e.advice.explicitBucketBoundaries?new ARe(e.advice.explicitBucketBoundaries):Dl.HISTOGRAM_AGGREGATION}return C7o.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 A2e=E(pV=>{"use strict";Object.defineProperty(pV,"__esModule",{value:!0});pV.toAggregation=pV.AggregationType=void 0;var fV=v$r(),dV;(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"})(dV=pV.AggregationType||(pV.AggregationType={}));function T7o(t){switch(t.type){case dV.DEFAULT:return fV.DEFAULT_AGGREGATION;case dV.DROP:return fV.DROP_AGGREGATION;case dV.SUM:return fV.SUM_AGGREGATION;case dV.LAST_VALUE:return fV.LAST_VALUE_AGGREGATION;case dV.EXPONENTIAL_HISTOGRAM:{let e=t;return new fV.ExponentialHistogramAggregation(e.options?.maxSize,e.options?.recordMinMax)}case dV.EXPLICIT_BUCKET_HISTOGRAM:{let e=t;return e.options==null?fV.HISTOGRAM_AGGREGATION:new fV.ExplicitBucketHistogramAggregation(e.options?.boundaries,e.options?.recordMinMax)}default:throw new Error("Unsupported Aggregation")}}pV.toAggregation=T7o});var X4t=E(vte=>{"use strict";Object.defineProperty(vte,"__esModule",{value:!0});vte.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=vte.DEFAULT_AGGREGATION_SELECTOR=void 0;var w7o=ROe(),I7o=A2e(),D7o=t=>({type:I7o.AggregationType.DEFAULT});vte.DEFAULT_AGGREGATION_SELECTOR=D7o;var O7o=t=>w7o.AggregationTemporality.CUMULATIVE;vte.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=O7o});var e6t=E(SRe=>{"use strict";Object.defineProperty(SRe,"__esModule",{value:!0});SRe.MetricReader=void 0;var b$r=(ut(),nt(xt)),ERe=$4(),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)),v2e=lV(),R7o=e6t(),S$r=$4(),r6t=class extends R7o.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,v2e.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,v2e.globalErrorHandler)(s)}if(e.scopeMetrics.length===0)return;let o=await v2e.internal._export(this._exporter,e);if(o.code!==v2e.ExportResultCode.SUCCESS)throw new Error(`PeriodicExportingMetricReader: metrics export failed (error ${o.error})`)}onInitialized(){this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),(0,v2e.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=lV(),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=lV(),N7o=X4t(),i6t=class t{_shutdown=!1;_temporalitySelector;constructor(e){this._temporalitySelector=e?.temporalitySelector??N7o.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 b2e=E(TB=>{"use strict";Object.defineProperty(TB,"__esModule",{value:!0});TB.isTracingSuppressed=TB.unsuppressTracing=TB.suppressTracing=void 0;var P7o=(ut(),nt(xt)),o6t=(0,P7o.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function k7o(t){return t.setValue(o6t,!0)}TB.suppressTracing=k7o;function B7o(t){return t.deleteValue(o6t)}TB.unsuppressTracing=B7o;function M7o(t){return t.getValue(o6t)===!0}TB.isTracingSuppressed=M7o});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(tI=>{"use strict";Object.defineProperty(tI,"__esModule",{value:!0});tI.parseKeyPairsIntoRecord=tI.parsePairKeyValue=tI.getKeyPairs=tI.serializeKeyPairs=void 0;var L7o=(ut(),nt(xt)),hV=s6t();function U7o(t){return t.reduce((e,r)=>{let o=`${e}${e!==""?hV.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return o.length>hV.BAGGAGE_MAX_TOTAL_LENGTH?e:o},"")}tI.serializeKeyPairs=U7o;function F7o(t){return t.getAllEntries().map(([e,r])=>{let o=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(o+=hV.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),o})}tI.getKeyPairs=F7o;function I$r(t){let e=t.split(hV.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let o=r.indexOf(hV.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,L7o.baggageEntryMetadataFromString)(e.join(hV.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:a,metadata:i}}tI.parsePairKeyValue=I$r;function Q7o(t){let e={};return typeof t=="string"&&t.length>0&&t.split(hV.BAGGAGE_ITEMS_SEPARATOR).forEach(r=>{let o=I$r(r);o!==void 0&&o.value.length>0&&(e[o.key]=o.value)}),e}tI.parseKeyPairsIntoRecord=Q7o});var D$r=E(TRe=>{"use strict";Object.defineProperty(TRe,"__esModule",{value:!0});TRe.W3CBaggagePropagator=void 0;var c6t=(ut(),nt(xt)),q7o=b2e(),mV=s6t(),l6t=a6t(),u6t=class{inject(e,r,o){let s=c6t.propagation.getBaggage(e);if(!s||(0,q7o.isTracingSuppressed)(e))return;let a=(0,l6t.getKeyPairs)(s).filter(n=>n.length<=mV.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,mV.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,l6t.serializeKeyPairs)(a);i.length>0&&o.set(r,mV.BAGGAGE_HEADER,i)}extract(e,r,o){let s=o.get(r,mV.BAGGAGE_HEADER),a=Array.isArray(s)?s.join(mV.BAGGAGE_ITEMS_SEPARATOR):s;if(!a)return e;let i={};return a.length===0||(a.split(mV.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[mV.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 B$r=E(wB=>{"use strict";Object.defineProperty(wB,"__esModule",{value:!0});wB.isAttributeValue=wB.isAttributeKey=wB.sanitizeAttributes=void 0;var R$r=(ut(),nt(xt));function H7o(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}wB.sanitizeAttributes=H7o;function N$r(t){return typeof t=="string"&&t.length>0}wB.isAttributeKey=N$r;function P$r(t){return t==null?!0:Array.isArray(t)?V7o(t):k$r(t)}wB.isAttributeValue=P$r;function V7o(t){let e;for(let r of t)if(r!=null){if(!e){if(k$r(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function k$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 G7o=(ut(),nt(xt));function j7o(){return t=>{G7o.diag.error($7o(t))}}IRe.loggingErrorHandler=j7o;function $7o(t){return typeof t=="string"?t:JSON.stringify(W7o(t))}function W7o(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(bte=>{"use strict";Object.defineProperty(bte,"__esModule",{value:!0});bte.globalErrorHandler=bte.setGlobalErrorHandler=void 0;var z7o=d6t(),M$r=(0,z7o.loggingErrorHandler)();function K7o(t){M$r=t}bte.setGlobalErrorHandler=K7o;function Y7o(t){try{M$r(t)}catch{}}bte.globalErrorHandler=Y7o});var q$r=E(rI=>{"use strict";Object.defineProperty(rI,"__esModule",{value:!0});rI.getStringListFromEnv=rI.getBooleanFromEnv=rI.getStringFromEnv=rI.getNumberFromEnv=void 0;var U$r=(ut(),nt(xt)),F$r=me("util");function J7o(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}rI.getNumberFromEnv=J7o;function Q$r(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}rI.getStringFromEnv=Q$r;function X7o(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)}rI.getBooleanFromEnv=X7o;function Z7o(t){return Q$r(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}rI.getStringListFromEnv=Z7o});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 eOo=me("perf_hooks");ORe.otperformance=eOo.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(kRe=>{"use strict";Object.defineProperty(kRe,"__esModule",{value:!0});kRe.SDK_INFO=void 0;var tOo=G$r(),PRe=(Wl(),nt(Uu)),rOo=j$r();kRe.SDK_INFO={[PRe.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[rOo.ATTR_PROCESS_RUNTIME_NAME]:"node",[PRe.ATTR_TELEMETRY_SDK_LANGUAGE]:PRe.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[PRe.ATTR_TELEMETRY_SDK_VERSION]:tOo.VERSION}});var W$r=E(BRe=>{"use strict";Object.defineProperty(BRe,"__esModule",{value:!0});BRe.unrefTimer=void 0;function nOo(t){t.unref()}BRe.unrefTimer=nOo});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 iOo=H$r();Object.defineProperty(a0,"_globalThis",{enumerable:!0,get:function(){return iOo._globalThis}});var oOo=V$r();Object.defineProperty(a0,"otperformance",{enumerable:!0,get:function(){return oOo.otperformance}});var sOo=$$r();Object.defineProperty(a0,"SDK_INFO",{enumerable:!0,get:function(){return sOo.SDK_INFO}});var aOo=W$r();Object.defineProperty(a0,"unrefTimer",{enumerable:!0,get:function(){return aOo.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 IB=z$r();Object.defineProperty(c0,"SDK_INFO",{enumerable:!0,get:function(){return IB.SDK_INFO}});Object.defineProperty(c0,"_globalThis",{enumerable:!0,get:function(){return IB._globalThis}});Object.defineProperty(c0,"otperformance",{enumerable:!0,get:function(){return IB.otperformance}});Object.defineProperty(c0,"unrefTimer",{enumerable:!0,get:function(){return IB.unrefTimer}});Object.defineProperty(c0,"getBooleanFromEnv",{enumerable:!0,get:function(){return IB.getBooleanFromEnv}});Object.defineProperty(c0,"getStringFromEnv",{enumerable:!0,get:function(){return IB.getStringFromEnv}});Object.defineProperty(c0,"getNumberFromEnv",{enumerable:!0,get:function(){return IB.getNumberFromEnv}});Object.defineProperty(c0,"getStringListFromEnv",{enumerable:!0,get:function(){return IB.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,cOo=6,lOo=Math.pow(10,cOo),LRe=Math.pow(10,K$r);function E2e(t){let e=t/1e3,r=Math.trunc(e),o=Math.round(t%1e3*lOo);return[r,o]}Nf.millisToHrTime=E2e;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=E2e(m6t()),r=E2e(typeof t=="number"?t:h6t.otperformance.now());return J$r(e,r)}Nf.hrTime=Y$r;function uOo(t){if(g6t(t))return t;if(typeof t=="number")return t<m6t()?Y$r(t):E2e(t);if(t instanceof Date)return E2e(t.getTime());throw TypeError("Invalid input type")}Nf.timeInputToHrTime=uOo;function fOo(t,e){let r=e[0]-t[0],o=e[1]-t[1];return o<0&&(r-=1,o+=LRe),[r,o]}Nf.hrTimeDuration=fOo;function dOo(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=dOo;function pOo(t){return t[0]*LRe+t[1]}Nf.hrTimeToNanoseconds=pOo;function hOo(t){return t[0]*1e3+t[1]/1e6}Nf.hrTimeToMilliseconds=hOo;function mOo(t){return t[0]*1e6+t[1]/1e3}Nf.hrTimeToMicroseconds=mOo;function g6t(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}Nf.isTimeInputHrTime=g6t;function gOo(t){return g6t(t)||typeof t=="number"||t instanceof Date}Nf.isTimeInput=gOo;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(S2e=>{"use strict";Object.defineProperty(S2e,"__esModule",{value:!0});S2e.ExportResultCode=void 0;var yOo;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(yOo=S2e.ExportResultCode||(S2e.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(Ete=>{"use strict";Object.defineProperty(Ete,"__esModule",{value:!0});Ete.validateValue=Ete.validateKey=void 0;var A6t="[_0-9a-z-*/]",AOo=`[a-z]${A6t}{0,255}`,vOo=`[a-z0-9]${A6t}{0,240}@[a-z]${A6t}{0,13}`,bOo=new RegExp(`^(?:${AOo}|${vOo})$`),EOo=/^[ -~]{0,255}[!-~]$/,SOo=/,|=/;function xOo(t){return bOo.test(t)}Ete.validateKey=xOo;function _Oo(t){return EOo.test(t)&&!SOo.test(t)}Ete.validateValue=_Oo});var b6t=E(FRe=>{"use strict";Object.defineProperty(FRe,"__esModule",{value:!0});FRe.TraceState=void 0;var nWr=rWr(),iWr=32,COo=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>COo||(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)),TOo=b2e(),wOo=b6t();ny.TRACE_PARENT_HEADER="traceparent";ny.TRACE_STATE_HEADER="tracestate";var IOo="00",DOo="(?!ff)[\\da-f]{2}",OOo="(?![0]{32})[\\da-f]{32}",ROo="(?![0]{16})[\\da-f]{16}",NOo="[\\da-f]{2}",POo=new RegExp(`^\\s?(${DOo})-(${OOo})-(${ROo})-(${NOo})(-.*)?\\s?$`);function aWr(t){let e=POo.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,TOo.isTracingSuppressed)(e)||!(0,QRe.isSpanContextValid)(s))return;let a=`${IOo}-${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 wOo.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(z4=>{"use strict";Object.defineProperty(z4,"__esModule",{value:!0});z4.getRPCMetadata=z4.deleteRPCMetadata=z4.setRPCMetadata=z4.RPCType=void 0;var kOo=(ut(),nt(xt)),S6t=(0,kOo.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),BOo;(function(t){t.HTTP="http"})(BOo=z4.RPCType||(z4.RPCType={}));function MOo(t,e){return t.setValue(S6t,e)}z4.setRPCMetadata=MOo;function LOo(t){return t.deleteValue(S6t)}z4.deleteRPCMetadata=LOo;function UOo(t){return t.getValue(S6t)}z4.getRPCMetadata=UOo});var hWr=E(qRe=>{"use strict";Object.defineProperty(qRe,"__esModule",{value:!0});qRe.isPlainObject=void 0;var FOo="[object Object]",QOo="[object Null]",qOo="[object Undefined]",HOo=Function.prototype,uWr=HOo.toString,VOo=uWr.call(Object),GOo=Object.getPrototypeOf,fWr=Object.prototype,dWr=fWr.hasOwnProperty,gV=Symbol?Symbol.toStringTag:void 0,pWr=fWr.toString;function jOo(t){if(!$Oo(t)||WOo(t)!==FOo)return!1;let e=GOo(t);if(e===null)return!0;let r=dWr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&uWr.call(r)===VOo}qRe.isPlainObject=jOo;function $Oo(t){return t!=null&&typeof t=="object"}function WOo(t){return t==null?t===void 0?qOo:QOo:gV&&gV in Object(t)?zOo(t):KOo(t)}function zOo(t){let e=dWr.call(t,gV),r=t[gV],o=!1;try{t[gV]=void 0,o=!0}catch{}let s=pWr.call(t);return o&&(e?t[gV]=r:delete t[gV]),s}function KOo(t){return pWr.call(t)}});var vWr=E(GRe=>{"use strict";Object.defineProperty(GRe,"__esModule",{value:!0});GRe.merge=void 0;var mWr=hWr(),YOo=20;function JOo(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=yWr(e,t.shift(),0,r);return e}GRe.merge=JOo;function x6t(t){return VRe(t)?t.slice():t}function yWr(t,e,r=0,o){let s;if(!(r>YOo)){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(x2e(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(x2e(t))if(x2e(e)){if(!XOo(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(x2e(f)&&x2e(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 x2e(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 XOo(t,e){return!(!(0,mWr.isPlainObject)(t)||!(0,mWr.isPlainObject)(e))}});var bWr=E(Ste=>{"use strict";Object.defineProperty(Ste,"__esModule",{value:!0});Ste.callWithTimeout=Ste.TimeoutError=void 0;var jRe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};Ste.TimeoutError=jRe;function ZOo(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})}Ste.callWithTimeout=ZOo});var SWr=E(xte=>{"use strict";Object.defineProperty(xte,"__esModule",{value:!0});xte.isUrlIgnored=xte.urlMatches=void 0;function EWr(t,e){return typeof e=="string"?t===e:!!t.match(e)}xte.urlMatches=EWr;function eRo(t,e){if(!e)return!1;for(let r of e)if(EWr(t,r))return!0;return!1}xte.isUrlIgnored=eRo});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 tRo=xWr(),C6t=class{_callback;_that;_isCalled=!1;_deferred=new tRo.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 oO=(ut(),nt(xt)),CWr={ALL:oO.DiagLogLevel.ALL,VERBOSE:oO.DiagLogLevel.VERBOSE,DEBUG:oO.DiagLogLevel.DEBUG,INFO:oO.DiagLogLevel.INFO,WARN:oO.DiagLogLevel.WARN,ERROR:oO.DiagLogLevel.ERROR,NONE:oO.DiagLogLevel.NONE};function rRo(t){if(t==null)return;let e=CWr[t.toUpperCase()];return e??(oO.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(CWr)}, using default`),oO.DiagLogLevel.INFO)}zRe.diagLogLevelFromString=rRo});var IWr=E(KRe=>{"use strict";Object.defineProperty(KRe,"__esModule",{value:!0});KRe._export=void 0;var wWr=(ut(),nt(xt)),nRo=b2e();function iRo(t,e){return new Promise(r=>{wWr.context.with((0,nRo.suppressTracing)(wWr.context.active()),()=>{t.export(e,o=>{r(o)})})})}KRe._export=iRo});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 oRo=D$r();Object.defineProperty(ln,"W3CBaggagePropagator",{enumerable:!0,get:function(){return oRo.W3CBaggagePropagator}});var sRo=O$r();Object.defineProperty(ln,"AnchoredClock",{enumerable:!0,get:function(){return sRo.AnchoredClock}});var DWr=B$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 aRo=d6t();Object.defineProperty(ln,"loggingErrorHandler",{enumerable:!0,get:function(){return aRo.loggingErrorHandler}});var Xx=X$r();Object.defineProperty(ln,"addHrTimes",{enumerable:!0,get:function(){return Xx.addHrTimes}});Object.defineProperty(ln,"getTimeOrigin",{enumerable:!0,get:function(){return Xx.getTimeOrigin}});Object.defineProperty(ln,"hrTime",{enumerable:!0,get:function(){return Xx.hrTime}});Object.defineProperty(ln,"hrTimeDuration",{enumerable:!0,get:function(){return Xx.hrTimeDuration}});Object.defineProperty(ln,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Xx.hrTimeToMicroseconds}});Object.defineProperty(ln,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Xx.hrTimeToMilliseconds}});Object.defineProperty(ln,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Xx.hrTimeToNanoseconds}});Object.defineProperty(ln,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Xx.hrTimeToTimeStamp}});Object.defineProperty(ln,"isTimeInput",{enumerable:!0,get:function(){return Xx.isTimeInput}});Object.defineProperty(ln,"isTimeInputHrTime",{enumerable:!0,get:function(){return Xx.isTimeInputHrTime}});Object.defineProperty(ln,"millisToHrTime",{enumerable:!0,get:function(){return Xx.millisToHrTime}});Object.defineProperty(ln,"timeInputToHrTime",{enumerable:!0,get:function(){return Xx.timeInputToHrTime}});var cRo=Z$r();Object.defineProperty(ln,"ExportResultCode",{enumerable:!0,get:function(){return cRo.ExportResultCode}});var lRo=a6t();Object.defineProperty(ln,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return lRo.parseKeyPairsIntoRecord}});var DB=p6t();Object.defineProperty(ln,"SDK_INFO",{enumerable:!0,get:function(){return DB.SDK_INFO}});Object.defineProperty(ln,"_globalThis",{enumerable:!0,get:function(){return DB._globalThis}});Object.defineProperty(ln,"getStringFromEnv",{enumerable:!0,get:function(){return DB.getStringFromEnv}});Object.defineProperty(ln,"getBooleanFromEnv",{enumerable:!0,get:function(){return DB.getBooleanFromEnv}});Object.defineProperty(ln,"getNumberFromEnv",{enumerable:!0,get:function(){return DB.getNumberFromEnv}});Object.defineProperty(ln,"getStringListFromEnv",{enumerable:!0,get:function(){return DB.getStringListFromEnv}});Object.defineProperty(ln,"otperformance",{enumerable:!0,get:function(){return DB.otperformance}});Object.defineProperty(ln,"unrefTimer",{enumerable:!0,get:function(){return DB.unrefTimer}});var uRo=tWr();Object.defineProperty(ln,"CompositePropagator",{enumerable:!0,get:function(){return uRo.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=b2e();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 fRo=b6t();Object.defineProperty(ln,"TraceState",{enumerable:!0,get:function(){return fRo.TraceState}});var dRo=vWr();Object.defineProperty(ln,"merge",{enumerable:!0,get:function(){return dRo.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 pRo=_Wr();Object.defineProperty(ln,"BindOnceFuture",{enumerable:!0,get:function(){return pRo.BindOnceFuture}});var hRo=TWr();Object.defineProperty(ln,"diagLogLevelFromString",{enumerable:!0,get:function(){return hRo.diagLogLevelFromString}});var mRo=IWr();ln.internal={_export:mRo._export}});var PWr=E(XRe=>{"use strict";Object.defineProperty(XRe,"__esModule",{value:!0});XRe.defaultServiceName=void 0;function gRo(){return`unknown_service:${process.argv0}`}XRe.defaultServiceName=gRo});var kWr=E(ZRe=>{"use strict";Object.defineProperty(ZRe,"__esModule",{value:!0});ZRe.defaultServiceName=void 0;var yRo=PWr();Object.defineProperty(ZRe,"defaultServiceName",{enumerable:!0,get:function(){return yRo.defaultServiceName}})});var I6t=E(eNe=>{"use strict";Object.defineProperty(eNe,"__esModule",{value:!0});eNe.defaultServiceName=void 0;var ARo=kWr();Object.defineProperty(eNe,"defaultServiceName",{enumerable:!0,get:function(){return ARo.defaultServiceName}})});var BWr=E(_te=>{"use strict";Object.defineProperty(_te,"__esModule",{value:!0});_te.identity=_te.isPromiseLike=void 0;var vRo=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";_te.isPromiseLike=vRo;function bRo(t){return t}_te.identity=bRo});var R6t=E(nI=>{"use strict";Object.defineProperty(nI,"__esModule",{value:!0});nI.defaultResource=nI.emptyResource=nI.resourceFromDetectedResource=nI.resourceFromAttributes=void 0;var C2e=(ut(),nt(xt)),D6t=w6t(),yV=(Wl(),nt(Uu)),ERo=I6t(),_2e=BWr(),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,_2e.isPromiseLike)(a)).length>0,o}constructor(e,r){let o=e.attributes??{};this._rawAttributes=Object.entries(o).map(([s,a])=>((0,_2e.isPromiseLike)(a)&&(this._asyncAttributesPending=!0),[s,a])),this._rawAttributes=MWr(this._rawAttributes),this._schemaUrl=CRo(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,_2e.isPromiseLike)(o)?await o:o]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&C2e.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,_2e.isPromiseLike)(o)){C2e.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=TRo(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)}nI.resourceFromAttributes=O6t;function SRo(t,e){return new tNe(t,e)}nI.resourceFromDetectedResource=SRo;function xRo(){return O6t({})}nI.emptyResource=xRo;function _Ro(){return O6t({[yV.ATTR_SERVICE_NAME]:(0,ERo.defaultServiceName)(),[yV.ATTR_TELEMETRY_SDK_LANGUAGE]:D6t.SDK_INFO[yV.ATTR_TELEMETRY_SDK_LANGUAGE],[yV.ATTR_TELEMETRY_SDK_NAME]:D6t.SDK_INFO[yV.ATTR_TELEMETRY_SDK_NAME],[yV.ATTR_TELEMETRY_SDK_VERSION]:D6t.SDK_INFO[yV.ATTR_TELEMETRY_SDK_VERSION]})}nI.defaultResource=_Ro;function MWr(t){return t.map(([e,r])=>(0,_2e.isPromiseLike)(r)?[e,r.catch(o=>{C2e.diag.debug("promise rejection for resource attribute: %s - %s",e,o)})]:[e,r])}function CRo(t){if(typeof t=="string"||t===void 0)return t;C2e.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",t)}function TRo(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;C2e.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(),wRo=(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=wRo});var QWr=E(nNe=>{"use strict";Object.defineProperty(nNe,"__esModule",{value:!0});nNe.envDetector=void 0;var IRo=(ut(),nt(xt)),DRo=(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){IRo.diag.debug(`EnvDetector failed: ${a.message}`)}return s&&(r[DRo.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 T2e=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 ORo=me("child_process"),RRo=me("util");iNe.execAsync=RRo.promisify(ORo.exec)});var qWr=E(sNe=>{"use strict";Object.defineProperty(sNe,"__esModule",{value:!0});sNe.getMachineId=void 0;var NRo=oNe(),PRo=(ut(),nt(xt));async function kRo(){try{let e=(await(0,NRo.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
|
|
781
|
+
`)))}),t&&t(r),e(r)}),(k3o||M3o||B3o||L3o)&&e(null)})})}cPr.bluetoothDevices=H3o});var EPr=E(Qi=>{"use strict";var V3o=TRr().version,lB=vm(),cB=GRr(),X7=J_t(),Vx=YRr(),c7e=oNr(),uPr=cNr(),fPr=pNr(),H5=ANr(),Z7=TNr(),l7e=RNr(),P0e=kNr(),dPr=LNr(),DCt=VNr(),YH=WNr(),G3o=KNr(),pPr=ZNr(),hPr=rPr(),mPr=oPr(),gPr=lPr(),k0e=process.platform,a7e=k0e==="win32",O0e=k0e==="freebsd",R0e=k0e==="openbsd",N0e=k0e==="netbsd",q5=k0e==="sunos";a7e&&(lB.getCodepage(),lB.getPowershell());function yPr(){return V3o}function APr(t){return new Promise(e=>{process.nextTick(()=>{let r={};r.version=yPr(),Promise.all([cB.system(),cB.bios(),cB.baseboard(),cB.chassis(),X7.osInfo(),X7.uuid(),X7.versions(),Vx.cpu(),Vx.cpuFlags(),fPr.graphics(),Z7.networkInterfaces(),c7e.memLayout(),H5.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 lB.isFunction(e)&&(r=e,e=""),lB.isFunction(t)&&(r=t,t=""),new Promise(o=>{process.nextTick(()=>{e=e||Z7.getDefaultNetworkInterface(),t=t||"";let s=(function(){let i=15;return a7e&&(i=13),(O0e||R0e||N0e)&&(i=11),q5&&(i=6),function(){--i===0&&(r&&r(a),o(a))}})(),a={};a.time=X7.time(),a.node=process.versions.node,a.v8=process.versions.v8,Vx.cpuCurrentSpeed().then(i=>{a.cpuCurrentSpeed=i,s()}),dPr.users().then(i=>{a.users=i,s()}),P0e.processes().then(i=>{a.processes=i,s()}),Vx.currentLoad().then(i=>{a.currentLoad=i,s()}),q5||Vx.cpuTemperature().then(i=>{a.temp=i,s()}),!R0e&&!O0e&&!N0e&&!q5&&Z7.networkStats(e).then(i=>{a.networkStats=i,s()}),q5||Z7.networkConnections().then(i=>{a.networkConnections=i,s()}),c7e.mem().then(i=>{a.mem=i,s()}),q5||uPr().then(i=>{a.battery=i,s()}),q5||P0e.services(t).then(i=>{a.services=i,s()}),q5||H5.fsSize().then(i=>{a.fsSize=i,s()}),!a7e&&!R0e&&!O0e&&!N0e&&!q5&&H5.fsStats().then(i=>{a.fsStats=i,s()}),!a7e&&!R0e&&!O0e&&!N0e&&!q5&&H5.disksIO().then(i=>{a.disksIO=i,s()}),!R0e&&!O0e&&!N0e&&!q5&&l7e.wifiNetworks().then(i=>{a.wifiNetworks=i,s()}),DCt.inetLatency().then(i=>{a.inetLatency=i,s()})})})}function j3o(t,e,r){return new Promise(o=>{process.nextTick(()=>{let s={};e&&lB.isFunction(e)&&!r&&(r=e,e=""),t&&lB.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 $3o(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=cB.system;Qi.bios=cB.bios;Qi.baseboard=cB.baseboard;Qi.chassis=cB.chassis;Qi.time=X7.time;Qi.osInfo=X7.osInfo;Qi.versions=X7.versions;Qi.shell=X7.shell;Qi.uuid=X7.uuid;Qi.cpu=Vx.cpu;Qi.cpuFlags=Vx.cpuFlags;Qi.cpuCache=Vx.cpuCache;Qi.cpuCurrentSpeed=Vx.cpuCurrentSpeed;Qi.cpuTemperature=Vx.cpuTemperature;Qi.currentLoad=Vx.currentLoad;Qi.fullLoad=Vx.fullLoad;Qi.mem=c7e.mem;Qi.memLayout=c7e.memLayout;Qi.battery=uPr;Qi.graphics=fPr.graphics;Qi.fsSize=H5.fsSize;Qi.fsOpenFiles=H5.fsOpenFiles;Qi.blockDevices=H5.blockDevices;Qi.fsStats=H5.fsStats;Qi.disksIO=H5.disksIO;Qi.diskLayout=H5.diskLayout;Qi.networkInterfaceDefault=Z7.networkInterfaceDefault;Qi.networkGatewayDefault=Z7.networkGatewayDefault;Qi.networkInterfaces=Z7.networkInterfaces;Qi.networkStats=Z7.networkStats;Qi.networkConnections=Z7.networkConnections;Qi.wifiNetworks=l7e.wifiNetworks;Qi.wifiInterfaces=l7e.wifiInterfaces;Qi.wifiConnections=l7e.wifiConnections;Qi.services=P0e.services;Qi.processes=P0e.processes;Qi.processLoad=P0e.processLoad;Qi.users=dPr.users;Qi.inetChecksite=DCt.inetChecksite;Qi.inetLatency=DCt.inetLatency;Qi.dockerInfo=YH.dockerInfo;Qi.dockerImages=YH.dockerImages;Qi.dockerContainers=YH.dockerContainers;Qi.dockerContainerStats=YH.dockerContainerStats;Qi.dockerContainerProcesses=YH.dockerContainerProcesses;Qi.dockerVolumes=YH.dockerVolumes;Qi.dockerAll=YH.dockerAll;Qi.vboxInfo=G3o.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=j3o;Qi.get=bPr;Qi.observe=$3o;Qi.powerShellStart=lB.powerShellStart;Qi.powerShellRelease=lB.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=${K3o[process.platform]||process.platform}`,`os=${W3o[process.platform]||process.platform}`,`o=${z3o[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 W3o,z3o,K3o,NCt=j(()=>{"use strict";RCt();W3o={darwin:encodeURIComponent("Mac OS X"),win32:"Windows",linux:"Linux"},z3o={darwin:"mac",win32:"win"},K3o={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 eO,PCt=j(()=>{eO="1.9.0"});function Y3o(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=Y3o(eO)});function V5(t,e,r,o){var s;o===void 0&&(o=!1);var a=M0e[B0e]=(s=M0e[B0e])!==null&&s!==void 0?s:{version:eO};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!==eO){var i=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+eO);return r.error(i.stack||i.message),!1}return a[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+eO+"."),!0}function NE(t){var e,r,o=(e=M0e[B0e])===null||e===void 0?void 0:e.version;if(!(!o||!DPr(o)))return(r=M0e[B0e])===null||r===void 0?void 0:r[t]}function G5(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+eO+".");var r=M0e[B0e];r&&delete r[t]}var J3o,B0e,M0e,JH=j(()=>{wPr();PCt();OPr();J3o=eO.split(".")[0],B0e=Symbol.for("opentelemetry.js.api."+J3o),M0e=_Pr});function L0e(t,e,r){var o=NE("diag");if(o)return r.unshift(e),o[t].apply(o,Z3o([],X3o(r),!1))}var X3o,Z3o,RPr,NPr=j(()=>{JH();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))},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 L0e("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return L0e("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return L0e("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return L0e("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return L0e("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 kPr=j(()=>{f7e()});var evo,tvo,rvo,Y1,XH=j(()=>{NPr();kPr();f7e();JH();evo=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},tvo=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))},rvo="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=NE("diag");if(n)return n[s].apply(n,tvo([],evo(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=NE("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 V5("diag",d,r,!0)};r.setLogger=o,r.disable=function(){G5(rvo,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 nvo,ivo,BPr,MPr=j(()=>{nvo=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},ivo=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.")},BPr=(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=nvo(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=ivo(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 BPr(new Map(Object.entries(t)))}function QPr(t){return typeof t!="string"&&(ovo.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:LPr,toString:function(){return t}}}var ovo,kCt=j(()=>{XH();MPr();UPr();ovo=Y1.instance()});function Gee(t){return Symbol.for(t)}var svo,d7e,U0e=j(()=>{svo=(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 svo});var BCt,F0e,qPr=j(()=>{BCt=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],F0e=(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<BCt.length;r++)this[BCt[r].n]=e(BCt[r].c)}return t})()});function HPr(){return LCt}var ZH,avo,p7e,cvo,lvo,uvo,fvo,MCt,dvo,pvo,hvo,LCt,mvo,gvo,yvo,Avo,vvo,bvo,Evo,UCt=j(()=>{ZH=(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)}})(),avo=(function(){function t(){}return t.prototype.createGauge=function(e,r){return gvo},t.prototype.createHistogram=function(e,r){return yvo},t.prototype.createCounter=function(e,r){return mvo},t.prototype.createUpDownCounter=function(e,r){return Avo},t.prototype.createObservableGauge=function(e,r){return bvo},t.prototype.createObservableCounter=function(e,r){return vvo},t.prototype.createObservableUpDownCounter=function(e,r){return Evo},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t})(),p7e=(function(){function t(){}return t})(),cvo=(function(t){ZH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,o){},e})(p7e),lvo=(function(t){ZH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,o){},e})(p7e),uvo=(function(t){ZH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,o){},e})(p7e),fvo=(function(t){ZH(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})(),dvo=(function(t){ZH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(MCt),pvo=(function(t){ZH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(MCt),hvo=(function(t){ZH(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(MCt),LCt=new avo,mvo=new cvo,gvo=new uvo,yvo=new fvo,Avo=new lvo,vvo=new dvo,bvo=new pvo,Evo=new hvo});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 Svo,xvo,GPr,jPr=j(()=>{U0e();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))},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,xvo([o],Svo(s),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t})()});var _vo,Cvo,QCt,Tvo,uB,Q0e=j(()=>{jPr();JH();XH();_vo=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},Cvo=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",Tvo=new GPr,uB=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return V5(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,Cvo([e,r,o],_vo(a),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return NE(QCt)||Tvo},t.prototype.disable=function(){this._getContextManager().disable(),G5(QCt,Y1.instance())},t})()});var jee,qCt=j(()=>{(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(jee||(jee={}))});var q0e,H0e,g7e,y7e=j(()=>{qCt();q0e="0000000000000000",H0e="00000000000000000000000000000000",g7e={traceId:H0e,spanId:q0e,traceFlags:jee.NONE}});var fB,A7e=j(()=>{y7e();fB=(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(uB.getInstance().active())}function V0e(t,e){return t.setValue(HCt,e)}function WPr(t){return t.deleteValue(HCt)}function zPr(t,e){return V0e(t,new fB(e))}function b7e(t){var e;return(e=v7e(t))===null||e===void 0?void 0:e.spanContext()}var HCt,VCt=j(()=>{U0e();A7e();Q0e();HCt=Gee("OpenTelemetry Context Key SPAN")});function GCt(t){return wvo.test(t)&&t!==H0e}function jCt(t){return Ivo.test(t)&&t!==q0e}function $ee(t){return GCt(t.traceId)&&jCt(t.spanId)}function KPr(t){return new fB(t)}var wvo,Ivo,E7e=j(()=>{y7e();A7e();wvo=/^([0-9a-f]{32})$/i,Ivo=/^[0-9a-f]{16}$/i});function Dvo(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var $Ct,S7e,WCt=j(()=>{Q0e();VCt();A7e();E7e();$Ct=uB.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 fB;var a=o&&b7e(o);return Dvo(a)&&$ee(a)?new fB(a):new fB},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=V0e(c,u);return $Ct.with(f,n,void 0,u)}},t})()});var Ovo,x7e,zCt=j(()=>{WCt();Ovo=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):Ovo},t})()});var YPr,JPr=j(()=>{WCt();YPr=(function(){function t(){}return t.prototype.getTracer=function(e,r,o){return new S7e},t})()});var Rvo,G0e,KCt=j(()=>{zCt();JPr();Rvo=new YPr,G0e=(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:Rvo},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 Gx,ekr=j(()=>{(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(Gx||(Gx={}))});function tkr(t){return kvo.test(t)}function rkr(t){return Bvo.test(t)&&!Mvo.test(t)}var YCt,Nvo,Pvo,kvo,Bvo,Mvo,nkr=j(()=>{YCt="[_0-9a-z-*/]",Nvo="[a-z]"+YCt+"{0,255}",Pvo="[a-z0-9]"+YCt+"{0,240}@[a-z]"+YCt+"{0,13}",kvo=new RegExp("^(?:"+Nvo+"|"+Pvo+")$"),Bvo=/^[ -~]{0,255}[!-~]$/,Mvo=/,|=/});var ikr,Lvo,okr,skr,akr,ckr=j(()=>{nkr();ikr=32,Lvo=512,okr=",",skr="=",akr=(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+skr+e.get(o)),r},[]).join(okr)},t.prototype._parse=function(e){e.length>Lvo||(this._internalState=e.split(okr).reverse().reduce(function(r,o){var s=o.trim(),a=s.indexOf(skr);if(a!==-1){var i=s.slice(0,a),n=s.slice(a+1,o.length);tkr(i)&&rkr(n)&&r.set(i,n)}return r},new Map),this._internalState.size>ikr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,ikr))))},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 lkr(t){return new akr(t)}var ukr=j(()=>{ckr()});var J1,fkr=j(()=>{Q0e();J1=uB.getInstance()});var Er,dkr=j(()=>{XH();Er=Y1.instance()});var Uvo,pkr,hkr=j(()=>{UCt();Uvo=(function(){function t(){}return t.prototype.getMeter=function(e,r,o){return LCt},t})(),pkr=new Uvo});var JCt,mkr,gkr=j(()=>{hkr();JH();XH();JCt="metrics",mkr=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return V5(JCt,e,Y1.instance())},t.prototype.getMeterProvider=function(){return NE(JCt)||pkr},t.prototype.getMeter=function(e,r,o){return this.getMeterProvider().getMeter(e,r,o)},t.prototype.disable=function(){G5(JCt,Y1.instance())},t})()});var j0e,ykr=j(()=>{gkr();j0e=mkr.getInstance()});var Akr,vkr=j(()=>{Akr=(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 bkr(){return ZCt(uB.getInstance().active())}function Ekr(t,e){return t.setValue(XCt,e)}function Skr(t){return t.deleteValue(XCt)}var XCt,xkr=j(()=>{Q0e();U0e();XCt=Gee("OpenTelemetry Baggage Key")});var eTt,Fvo,_kr,Ckr=j(()=>{JH();vkr();FCt();xkr();kCt();XH();eTt="propagation",Fvo=new Akr,_kr=(function(){function t(){this.createBaggage=FPr,this.getBaggage=ZCt,this.getActiveBaggage=bkr,this.setBaggage=Ekr,this.deleteBaggage=Skr}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return V5(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(){G5(eTt,Y1.instance())},t.prototype._getGlobalPropagator=function(){return NE(eTt)||Fvo},t})()});var tTt,Tkr=j(()=>{Ckr();tTt=_kr.getInstance()});var rTt,wkr,Ikr=j(()=>{JH();KCt();E7e();VCt();XH();rTt="trace",wkr=(function(){function t(){this._proxyTracerProvider=new G0e,this.wrapSpanContext=KPr,this.isSpanContextValid=$ee,this.deleteSpan=WPr,this.getSpan=v7e,this.getActiveSpan=$Pr,this.getSpanContext=b7e,this.setSpan=V0e,this.setSpanContext=zPr}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=V5(rTt,this._proxyTracerProvider,Y1.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return NE(rTt)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){G5(rTt,Y1.instance()),this._proxyTracerProvider=new G0e},t})()});var s3,Dkr=j(()=>{Ikr();s3=wkr.getInstance()});var xt={};ss(xt,{DiagConsoleLogger:()=>F0e,DiagLogLevel:()=>Sm,INVALID_SPANID:()=>q0e,INVALID_SPAN_CONTEXT:()=>g7e,INVALID_TRACEID:()=>H0e,ProxyTracer:()=>x7e,ProxyTracerProvider:()=>G0e,ROOT_CONTEXT:()=>d7e,SamplingDecision:()=>_7e,SpanKind:()=>C7e,SpanStatusCode:()=>Gx,TraceFlags:()=>jee,ValueType:()=>e0,baggageEntryMetadataFromString:()=>QPr,context:()=>J1,createContextKey:()=>Gee,createNoopMeter:()=>HPr,createTraceState:()=>lkr,default:()=>Qvo,defaultTextMapGetter:()=>h7e,defaultTextMapSetter:()=>m7e,diag:()=>Er,isSpanContextValid:()=>$ee,isValidSpanId:()=>jCt,isValidTraceId:()=>GCt,metrics:()=>j0e,propagation:()=>tTt,trace:()=>s3});var Qvo,ut=j(()=>{kCt();U0e();qPr();f7e();UCt();VPr();FCt();zCt();KCt();XPr();ZPr();ekr();qCt();ukr();E7e();y7e();fkr();dkr();ykr();Tkr();Dkr();Qvo={context:J1,diag:Er,metrics:j0e,propagation:tTt,trace:s3}});var z2,Okr,$0e,Rkr,W0e,z0e,Nkr,Pkr,kkr,Bkr,Mkr,Lkr,Ukr,Fkr,Qkr,qkr,Hkr,Vkr,Gkr,jkr,$kr,K0e=j(()=>{"use strict";z2="iflow-cli",Okr="iflow_cli.user_prompt",$0e="iflow_cli.tool_call",Rkr="iflow_cli.api_request",W0e="iflow_cli.api_error",z0e="iflow_cli.api_response",Nkr="iflow_cli.config",Pkr="iflow_cli.flash_fallback",kkr="iflow_cli.next_speaker_check",Bkr="iflow_cli.slash_command",Mkr="iflow_cli.tool.call.count",Lkr="iflow_cli.tool.call.latency",Ukr="gen_ai.client.operation",Fkr="gen_ai.client.operation.duration",Qkr="gen_ai.client.token.usage",qkr="iflow_cli.session.count",Hkr="iflow_cli.file.operation.count",Vkr="iflow_cli.user_request.count",Gkr="iflow_cli.user_request.latency",jkr="iflow_cli.user_experience.success",$kr="iflow_cli.user.identity"});import*as Wkr from"os";function jx(t){let e="0.3.15",r={darwin:"macOS",win32:"Windows",linux:"Linux",freebsd:"FreeBSD",openbsd:"OpenBSD",sunos:"SunOS",aix:"AIX"},o=Wkr.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 zkr(){return nTt||(nTt=j0e.getMeter(z2)),nTt}function Kkr(){if(q4)return;let t=zkr();t&&(iTt=t.createCounter(Mkr,{description:"Counts tool calls, tagged by function name and success.",valueType:e0.INT}),oTt=t.createHistogram(Lkr,{description:"Latency of tool calls in milliseconds.",unit:"ms",valueType:e0.INT}),Y0e=t.createCounter(Ukr,{description:"Counts API requests, tagged by model and status.",valueType:e0.INT}),J0e=t.createHistogram(Fkr,{description:"Latency of API requests in milliseconds.",unit:"ms",valueType:e0.INT}),sTt=t.createCounter(Qkr,{description:"Counts the total number of tokens used.",valueType:e0.INT}),aTt=t.createCounter(Hkr,{description:"Counts file operations (create, read, update).",valueType:e0.INT}),cTt=t.createCounter(Vkr,{description:"Counts user requests from prompt to completion.",valueType:e0.INT}),lTt=t.createHistogram(Gkr,{description:"End-to-end latency of user requests in milliseconds.",unit:"ms",valueType:e0.INT}),uTt=t.createCounter(jkr,{description:"User experience success rate - counts successful user experiences including retries and fixes.",valueType:e0.INT}),fTt=t.createCounter($kr,{description:"User identity for tracking unique installations.",valueType:e0.INT}),q4=!0)}function T7e(t){let e=zkr();if(!e||!q4)return;e.createCounter(qkr,{description:"Count of CLI sessions started.",valueType:e0.INT}).add(1,jx(t))}function Ykr(t,e,r,o,s){if(!iTt||!oTt||!q4)return;let a={...jx(t),function_name:e??"unknown",success:String(o),decision:s??"unknown"};iTt.add(1,a),oTt.record(r,{...jx(t),function_name:e??"unknown"})}function Wee(t,e,r,o){!sTt||!q4||sTt.add(r,{...jx(t),model:e??"unknown",type:o??"unknown"})}function Jkr(t,e,r,o,s,a,i,n){if(!Y0e||!J0e||!q4)return;let c={...jx(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),Y0e.add(1,c);let u={...jx(t),model:e??"unknown",http_status_code:String(i??200),finish_reason:a??"unknown"};n!=null&&(u.business_code=String(n)),J0e.record(r,u)}function Xkr(t,e,r,o,s,a,i){if(!Y0e||!J0e||!q4)return;let n={...jx(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)),Y0e.add(1,n);let c={...jx(t),model:e??"unknown",http_status_code:String(a??0),error:s??"unknown"};i!=null&&(c.business_code=String(i)),J0e.record(r,c)}function eV(t,e,r,o,s){if(!aTt||!q4)return;let a={...jx(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 Zkr(t,e,r,o,s){if(!cTt||!lTt||!q4)return;let a={...jx(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||!q4)return;let a={...jx(t),success:String(e),had_retries:String(r),had_fixes:String(o)};s&&(a.final_error=s),uTt.add(1,a)}function eBr(t,e){if(!fTt||!q4)return;let r={...jx(t),user_id:e};fTt.add(1,r)}var tO,nTt,iTt,oTt,Y0e,J0e,sTt,aTt,cTt,lTt,uTt,fTt,q4,j5=j(()=>{"use strict";ut();K0e();DE();(function(t){t.CREATE="create",t.READ="read",t.UPDATE="update"})(tO||(tO={}));q4=!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();eBr(t,o),await FH.startSession(s,o,e,r)}catch(s){t.getDebugMode()&&console.error("Failed to initialize CLI telemetry:",s)}}async function X0e(t){try{if(t.getDisableTelemetry())return;await FH.endSession()}catch(e){t.getDebugMode()&&console.error("Failed to cleanup CLI telemetry:",e)}}async function w7e(t,e){if(!t.getDisableTelemetry())try{await FH.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();j5();});var tBr=E(Z0e=>{"use strict";Object.defineProperty(Z0e,"__esModule",{value:!0});Z0e.SeverityNumber=void 0;var qvo;(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"})(qvo=Z0e.SeverityNumber||(Z0e.SeverityNumber={}))});var D7e=E(zee=>{"use strict";Object.defineProperty(zee,"__esModule",{value:!0});zee.NOOP_LOGGER=zee.NoopLogger=void 0;var I7e=class{emit(e){}};zee.NoopLogger=I7e;zee.NOOP_LOGGER=new I7e});var R7e=E(Kee=>{"use strict";Object.defineProperty(Kee,"__esModule",{value:!0});Kee.NOOP_LOGGER_PROVIDER=Kee.NoopLoggerProvider=void 0;var Hvo=D7e(),O7e=class{getLogger(e,r,o){return new Hvo.NoopLogger}};Kee.NoopLoggerProvider=O7e;Kee.NOOP_LOGGER_PROVIDER=new O7e});var gTt=E(N7e=>{"use strict";Object.defineProperty(N7e,"__esModule",{value:!0});N7e.ProxyLogger=void 0;var Vvo=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):Vvo.NOOP_LOGGER}};N7e.ProxyLogger=mTt});var ATt=E(P7e=>{"use strict";Object.defineProperty(P7e,"__esModule",{value:!0});P7e.ProxyLoggerProvider=void 0;var Gvo=R7e(),jvo=gTt(),yTt=class{getLogger(e,r,o){var s;return(s=this._getDelegateLogger(e,r,o))!==null&&s!==void 0?s:new jvo.ProxyLogger(this,e,r,o)}_getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:Gvo.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 rBr=E(k7e=>{"use strict";Object.defineProperty(k7e,"__esModule",{value:!0});k7e._globalThis=void 0;k7e._globalThis=typeof globalThis=="object"?globalThis:global});var nBr=E(B7e=>{"use strict";Object.defineProperty(B7e,"__esModule",{value:!0});B7e._globalThis=void 0;var $vo=rBr();Object.defineProperty(B7e,"_globalThis",{enumerable:!0,get:function(){return $vo._globalThis}})});var iBr=E(M7e=>{"use strict";Object.defineProperty(M7e,"__esModule",{value:!0});M7e._globalThis=void 0;var Wvo=nBr();Object.defineProperty(M7e,"_globalThis",{enumerable:!0,get:function(){return Wvo._globalThis}})});var oBr=E($5=>{"use strict";Object.defineProperty($5,"__esModule",{value:!0});$5.API_BACKWARDS_COMPATIBILITY_VERSION=$5.makeGetter=$5._global=$5.GLOBAL_LOGS_API_KEY=void 0;var zvo=iBr();$5.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");$5._global=zvo._globalThis;function Kvo(t,e,r){return o=>o===t?e:r}$5.makeGetter=Kvo;$5.API_BACKWARDS_COMPATIBILITY_VERSION=1});var aBr=E(L7e=>{"use strict";Object.defineProperty(L7e,"__esModule",{value:!0});L7e.LogsAPI=void 0;var $x=oBr(),Yvo=R7e(),sBr=ATt(),vTt=class t{constructor(){this._proxyLoggerProvider=new sBr.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return $x._global[$x.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():($x._global[$x.GLOBAL_LOGS_API_KEY]=(0,$x.makeGetter)($x.API_BACKWARDS_COMPATIBILITY_VERSION,e,Yvo.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=$x._global[$x.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call($x._global,$x.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,o){return this.getLoggerProvider().getLogger(e,r,o)}disable(){delete $x._global[$x.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new sBr.ProxyLoggerProvider}};L7e.LogsAPI=vTt});var Yee=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 Jvo=tBr();Object.defineProperty(t0,"SeverityNumber",{enumerable:!0,get:function(){return Jvo.SeverityNumber}});var cBr=D7e();Object.defineProperty(t0,"NOOP_LOGGER",{enumerable:!0,get:function(){return cBr.NOOP_LOGGER}});Object.defineProperty(t0,"NoopLogger",{enumerable:!0,get:function(){return cBr.NoopLogger}});var lBr=R7e();Object.defineProperty(t0,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return lBr.NOOP_LOGGER_PROVIDER}});Object.defineProperty(t0,"NoopLoggerProvider",{enumerable:!0,get:function(){return lBr.NoopLoggerProvider}});var Xvo=gTt();Object.defineProperty(t0,"ProxyLogger",{enumerable:!0,get:function(){return Xvo.ProxyLogger}});var Zvo=ATt();Object.defineProperty(t0,"ProxyLoggerProvider",{enumerable:!0,get:function(){return Zvo.ProxyLoggerProvider}});var ebo=aBr();t0.logs=ebo.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 uBr,fBr,dBr,pBr,hBr,mBr,gBr,yBr,ABr,vBr,bBr,EBr,SBr,xBr,_Br,CBr,TBr,wBr,IBr,DBr,OBr,RBr,NBr,PBr,kBr,BBr,MBr,LBr,UBr,FBr,QBr,qBr,HBr,VBr,GBr,jBr,$Br,WBr,zBr,KBr,YBr,JBr,XBr,ZBr,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,kMr,BMr,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,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,kbo,Bbo,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,kEo,BEo,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,vSo,bSo,Jee,OLr,RLr,NLr,PLr,kLr,BLr,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,ESo,SSo,xSo,_So,CSo,TSo,wSo,ISo,DSo,OSo,RSo,NSo,PSo,kSo,BSo,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,pxo,hxo,xUr,_Ur,CUr,TUr,wUr,IUr,DUr,OUr,RUr,NUr,PUr,mxo,gxo,yxo,Axo,vxo,bxo,Exo,Sxo,xxo,_xo,Cxo,Txo,kUr,BUr,MUr,LUr,UUr,wxo,Ixo,Dxo,Oxo,Rxo,Nxo,FUr,QUr,qUr,Pxo,kxo,Bxo,Mxo,HUr,VUr,GUr,jUr,Lxo,Uxo,Fxo,Qxo,qxo,$Ur,WUr,zUr,KUr,YUr,JUr,XUr,Hxo,Vxo,Gxo,jxo,$xo,Wxo,zxo,Kxo,ZUr,eFr,tFr,rFr,nFr,Yxo,Jxo,Xxo,Zxo,e_o,t_o,iFr,oFr,sFr,aFr,cFr,lFr,uFr,fFr,dFr,pFr,hFr,mFr,gFr,yFr,AFr,vFr,bFr,EFr,SFr,xFr,_Fr,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,S_o,x_o,CFr,TFr,wFr,IFr,DFr,__o,C_o,T_o,w_o,I_o,D_o,OFr,RFr,O_o,R_o,N_o,NFr,PFr,P_o,k_o,B_o,kFr,BFr,MFr,LFr,UFr,FFr,QFr,qFr,HFr,VFr,GFr,jFr,$Fr,WFr,zFr,KFr,YFr,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,X_o,Z_o,JFr,XFr,eCo,tCo,rCo,ZFr=j(()=>{bTt();uBr="aws.lambda.invoked_arn",fBr="db.system",dBr="db.connection_string",pBr="db.user",hBr="db.jdbc.driver_classname",mBr="db.name",gBr="db.statement",yBr="db.operation",ABr="db.mssql.instance_name",vBr="db.cassandra.keyspace",bBr="db.cassandra.page_size",EBr="db.cassandra.consistency_level",SBr="db.cassandra.table",xBr="db.cassandra.idempotence",_Br="db.cassandra.speculative_execution_count",CBr="db.cassandra.coordinator.id",TBr="db.cassandra.coordinator.dc",wBr="db.hbase.namespace",IBr="db.redis.database_index",DBr="db.mongodb.collection",OBr="db.sql.table",RBr="exception.type",NBr="exception.message",PBr="exception.stacktrace",kBr="exception.escaped",BBr="faas.trigger",MBr="faas.execution",LBr="faas.document.collection",UBr="faas.document.operation",FBr="faas.document.time",QBr="faas.document.name",qBr="faas.time",HBr="faas.cron",VBr="faas.coldstart",GBr="faas.invoked_name",jBr="faas.invoked_provider",$Br="faas.invoked_region",WBr="net.transport",zBr="net.peer.ip",KBr="net.peer.port",YBr="net.peer.name",JBr="net.host.ip",XBr="net.host.port",ZBr="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",kMr="aws.dynamodb.provisioned_read_capacity",BMr="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",tbo=uBr,rbo=fBr,nbo=dBr,ibo=pBr,obo=hBr,sbo=mBr,abo=gBr,cbo=yBr,lbo=ABr,ubo=vBr,fbo=bBr,dbo=EBr,pbo=SBr,hbo=xBr,mbo=_Br,gbo=CBr,ybo=TBr,Abo=wBr,vbo=IBr,bbo=DBr,Ebo=OBr,Sbo=RBr,xbo=NBr,_bo=PBr,Cbo=kBr,Tbo=BBr,wbo=MBr,Ibo=LBr,Dbo=UBr,Obo=FBr,Rbo=QBr,Nbo=qBr,Pbo=HBr,kbo=VBr,Bbo=GBr,Mbo=jBr,Lbo=$Br,Ubo=WBr,Fbo=zBr,Qbo=KBr,qbo=YBr,Hbo=JBr,Vbo=XBr,Gbo=ZBr,jbo=eMr,$bo=tMr,Wbo=rMr,zbo=nMr,Kbo=iMr,Ybo=oMr,Jbo=sMr,Xbo=aMr,Zbo=cMr,eEo=lMr,tEo=uMr,rEo=fMr,nEo=dMr,iEo=pMr,oEo=hMr,sEo=mMr,aEo=gMr,cEo=yMr,lEo=AMr,uEo=vMr,fEo=bMr,dEo=EMr,pEo=SMr,hEo=xMr,mEo=_Mr,gEo=CMr,yEo=TMr,AEo=wMr,vEo=IMr,bEo=DMr,EEo=OMr,SEo=RMr,xEo=NMr,_Eo=PMr,CEo=kMr,TEo=BMr,wEo=MMr,IEo=LMr,DEo=UMr,OEo=FMr,REo=QMr,NEo=qMr,PEo=HMr,kEo=VMr,BEo=GMr,MEo=jMr,LEo=$Mr,UEo=WMr,FEo=zMr,QEo=KMr,qEo=YMr,HEo=JMr,VEo=XMr,GEo=ZMr,jEo=eLr,$Eo=tLr,WEo=rLr,zEo=nLr,KEo=iLr,YEo=oLr,JEo=sLr,XEo=aLr,ZEo=cLr,eSo=lLr,tSo=uLr,rSo=fLr,nSo=dLr,iSo=pLr,oSo=hLr,sSo=mLr,aSo=gLr,cSo=yLr,lSo=ALr,uSo=vLr,fSo=bLr,dSo=ELr,pSo=SLr,hSo=xLr,mSo=_Lr,gSo=CLr,ySo=TLr,ASo=wLr,vSo=ILr,bSo=DLr,Jee=Ph([uBr,fBr,dBr,pBr,hBr,mBr,gBr,yBr,ABr,vBr,bBr,EBr,SBr,xBr,_Br,CBr,TBr,wBr,IBr,DBr,OBr,RBr,NBr,PBr,kBr,BBr,MBr,LBr,UBr,FBr,QBr,qBr,HBr,VBr,GBr,jBr,$Br,WBr,zBr,KBr,YBr,JBr,XBr,ZBr,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,kMr,BMr,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",kLr="db2",BLr="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",ESo=OLr,SSo=RLr,xSo=NLr,_So=PLr,CSo=kLr,TSo=BLr,wSo=MLr,ISo=LLr,DSo=ULr,OSo=FLr,RSo=QLr,NSo=qLr,PSo=HLr,kSo=VLr,BSo=GLr,MSo=jLr,LSo=$Lr,USo=WLr,FSo=zLr,QSo=KLr,qSo=YLr,HSo=JLr,VSo=XLr,GSo=ZLr,jSo=eUr,$So=tUr,WSo=rUr,zSo=nUr,KSo=iUr,YSo=oUr,JSo=sUr,XSo=aUr,ZSo=cUr,exo=lUr,txo=uUr,rxo=fUr,nxo=dUr,ixo=pUr,oxo=hUr,sxo=mUr,axo=gUr,cxo=yUr,lxo=AUr,uxo=vUr,fxo=bUr,dxo=EUr,pxo=SUr,hxo=Ph([OLr,RLr,NLr,PLr,kLr,BLr,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",mxo=xUr,gxo=_Ur,yxo=CUr,Axo=TUr,vxo=wUr,bxo=IUr,Exo=DUr,Sxo=OUr,xxo=RUr,_xo=NUr,Cxo=PUr,Txo=Ph([xUr,_Ur,CUr,TUr,wUr,IUr,DUr,OUr,RUr,NUr,PUr]),kUr="datasource",BUr="http",MUr="pubsub",LUr="timer",UUr="other",wxo=kUr,Ixo=BUr,Dxo=MUr,Oxo=LUr,Rxo=UUr,Nxo=Ph([kUr,BUr,MUr,LUr,UUr]),FUr="insert",QUr="edit",qUr="delete",Pxo=FUr,kxo=QUr,Bxo=qUr,Mxo=Ph([FUr,QUr,qUr]),HUr="alibaba_cloud",VUr="aws",GUr="azure",jUr="gcp",Lxo=HUr,Uxo=VUr,Fxo=GUr,Qxo=jUr,qxo=Ph([HUr,VUr,GUr,jUr]),$Ur="ip_tcp",WUr="ip_udp",zUr="ip",KUr="unix",YUr="pipe",JUr="inproc",XUr="other",Hxo=$Ur,Vxo=WUr,Gxo=zUr,jxo=KUr,$xo=YUr,Wxo=JUr,zxo=XUr,Kxo=Ph([$Ur,WUr,zUr,KUr,YUr,JUr,XUr]),ZUr="wifi",eFr="wired",tFr="cell",rFr="unavailable",nFr="unknown",Yxo=ZUr,Jxo=eFr,Xxo=tFr,Zxo=rFr,e_o=nFr,t_o=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",r_o=iFr,n_o=oFr,i_o=sFr,o_o=aFr,s_o=cFr,a_o=lFr,c_o=uFr,l_o=fFr,u_o=dFr,f_o=pFr,d_o=hFr,p_o=mFr,h_o=gFr,m_o=yFr,g_o=AFr,y_o=vFr,A_o=bFr,v_o=EFr,b_o=SFr,E_o=xFr,S_o=_Fr,x_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",__o=CFr,C_o=TFr,T_o=wFr,w_o=IFr,I_o=DFr,D_o={HTTP_1_0:CFr,HTTP_1_1:TFr,HTTP_2_0:wFr,SPDY:IFr,QUIC:DFr},OFr="queue",RFr="topic",O_o=OFr,R_o=RFr,N_o=Ph([OFr,RFr]),NFr="receive",PFr="process",P_o=NFr,k_o=PFr,B_o=Ph([NFr,PFr]),kFr=0,BFr=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,M_o=kFr,L_o=BFr,U_o=MFr,F_o=LFr,Q_o=UFr,q_o=FFr,H_o=QFr,V_o=qFr,G_o=HFr,j_o=VFr,$_o=GFr,W_o=jFr,z_o=$Fr,K_o=WFr,Y_o=zFr,J_o=KFr,X_o=YFr,Z_o={OK:kFr,CANCELLED:BFr,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",eCo=JFr,tCo=XFr,rCo=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,kQr,BQr,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,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,kCo,BCo,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,DTo,OTo,Iqr,Dqr,Oqr,Rqr,RTo,NTo,PTo,kTo,BTo,Nqr,Pqr,kqr,Bqr,Mqr,Lqr,Uqr,Fqr,Qqr,qqr,Hqr,Vqr,Gqr,jqr,$qr,Wqr,zqr,MTo,LTo,UTo,FTo,QTo,qTo,HTo,VTo,GTo,jTo,$To,WTo,zTo,KTo,YTo,JTo,XTo,ZTo,Kqr,Yqr,e4o,t4o,r4o,Jqr,Xqr,Zqr,eHr,tHr,rHr,nHr,n4o,i4o,o4o,s4o,a4o,c4o,l4o,u4o,iHr,oHr,sHr,aHr,cHr,lHr,uHr,fHr,dHr,pHr,hHr,f4o,d4o,p4o,h4o,m4o,g4o,y4o,A4o,v4o,b4o,E4o,S4o,mHr,gHr,yHr,AHr,vHr,bHr,EHr,SHr,xHr,_Hr,x4o,_4o,C4o,T4o,w4o,I4o,D4o,O4o,R4o,N4o,P4o,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",kQr="host.arch",BQr="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",nCo=tQr,iCo=rQr,oCo=nQr,sCo=iQr,aCo=oQr,cCo=sQr,lCo=aQr,uCo=cQr,fCo=lQr,dCo=uQr,pCo=fQr,hCo=dQr,mCo=pQr,gCo=hQr,yCo=mQr,ACo=gQr,vCo=yQr,bCo=AQr,ECo=vQr,SCo=bQr,xCo=EQr,_Co=SQr,CCo=xQr,TCo=_Qr,wCo=CQr,ICo=TQr,DCo=wQr,OCo=IQr,RCo=DQr,NCo=OQr,PCo=RQr,kCo=NQr,BCo=PQr,MCo=kQr,LCo=BQr,UCo=MQr,FCo=LQr,QCo=UQr,qCo=FQr,HCo=QQr,VCo=qQr,GCo=HQr,jCo=VQr,$Co=GQr,WCo=jQr,zCo=$Qr,KCo=WQr,YCo=zQr,JCo=KQr,XCo=YQr,ZCo=JQr,eTo=XQr,tTo=ZQr,rTo=eqr,nTo=tqr,iTo=rqr,oTo=nqr,sTo=iqr,aTo=oqr,cTo=sqr,lTo=aqr,uTo=cqr,fTo=lqr,dTo=uqr,pTo=fqr,hTo=dqr,mTo=pqr,gTo=hqr,yTo=mqr,ATo=gqr,vTo=yqr,bTo=Aqr,ETo=vqr,STo=bqr,xTo=Eqr,_To=Sqr,CTo=xqr,TTo=_qr,wTo=Cqr,ITo=Tqr,DTo=wqr,OTo=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,kQr,BQr,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",RTo=Iqr,NTo=Dqr,PTo=Oqr,kTo=Rqr,BTo=Ph([Iqr,Dqr,Oqr,Rqr]),Nqr="alibaba_cloud_ecs",Pqr="alibaba_cloud_fc",kqr="aws_ec2",Bqr="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",MTo=Nqr,LTo=Pqr,UTo=kqr,FTo=Bqr,QTo=Mqr,qTo=Lqr,HTo=Uqr,VTo=Fqr,GTo=Qqr,jTo=qqr,$To=Hqr,WTo=Vqr,zTo=Gqr,KTo=jqr,YTo=$qr,JTo=Wqr,XTo=zqr,ZTo=Ph([Nqr,Pqr,kqr,Bqr,Mqr,Lqr,Uqr,Fqr,Qqr,qqr,Hqr,Vqr,Gqr,jqr,$qr,Wqr,zqr]),Kqr="ec2",Yqr="fargate",e4o=Kqr,t4o=Yqr,r4o=Ph([Kqr,Yqr]),Jqr="amd64",Xqr="arm32",Zqr="arm64",eHr="ia64",tHr="ppc32",rHr="ppc64",nHr="x86",n4o=Jqr,i4o=Xqr,o4o=Zqr,s4o=eHr,a4o=tHr,c4o=rHr,l4o=nHr,u4o=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",f4o=iHr,d4o=oHr,p4o=sHr,h4o=aHr,m4o=cHr,g4o=lHr,y4o=uHr,A4o=fHr,v4o=dHr,b4o=pHr,E4o=hHr,S4o=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",x4o=mHr,_4o=gHr,C4o=yHr,T4o=AHr,w4o=vHr,I4o=bHr,D4o=EHr,O4o=SHr,R4o=xHr,N4o=_Hr,P4o=Ph([mHr,gHr,yHr,AHr,vHr,bHr,EHr,SHr,xHr,_Hr])});var THr=j(()=>{CHr()});var k4o,B4o,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,b6o,E6o,eQc,tQc,S6o,x6o,_6o,C6o,T6o,w6o,I6o,D6o,O6o,R6o,N6o,rQc,P6o,k6o,B6o,M6o,nQc,L6o,U6o,F6o,Q6o,q6o,H6o,V6o,G6o,j6o,$6o,W6o,z6o,K6o,Y6o,J6o,iQc,X6o,Z6o,ewo,two,rwo,nwo,iwo,owo,swo,awo,cwo,lwo,uwo,oQc,sQc,fwo,dwo,pwo,hwo,mwo,gwo,ywo,Awo,aQc,vwo,bwo,Ewo,ETt,STt,Swo,xwo,_wo,Cwo,Two,wwo,Iwo,Dwo,Owo,cQc,Rwo,Nwo,lQc,Pwo,kwo,uQc,Bwo,Mwo,Lwo,Uwo,Fwo,Qwo,qwo,Hwo,Vwo,Gwo,jwo,$wo,Wwo,wHr=j(()=>{k4o="aspnetcore.diagnostics.exception.result",B4o="aborted",M4o="handled",L4o="skipped",U4o="unhandled",F4o="aspnetcore.diagnostics.handler.type",Q4o="aspnetcore.rate_limiting.policy",q4o="aspnetcore.rate_limiting.result",H4o="acquired",V4o="endpoint_limiter",G4o="global_limiter",j4o="request_canceled",$4o="aspnetcore.request.is_unhandled",W4o="aspnetcore.routing.is_fallback",z4o="aspnetcore.routing.match_status",K4o="failure",Y4o="success",J4o="aspnetcore.user.is_authenticated",X4o="client.address",Z4o="client.port",e6o="code.column.number",t6o="code.file.path",r6o="code.function.name",n6o="code.line.number",i6o="code.stacktrace",o6o="db.collection.name",s6o="db.namespace",a6o="db.operation.batch.size",c6o="db.operation.name",l6o="db.query.summary",u6o="db.query.text",f6o="db.response.status_code",d6o="db.stored_procedure.name",p6o="db.system.name",h6o="mariadb",m6o="microsoft.sql_server",g6o="mysql",y6o="postgresql",A6o="dotnet.gc.heap.generation",v6o="gen0",b6o="gen1",E6o="gen2",eQc="loh",tQc="poh",S6o="error.type",x6o="_OTHER",_6o="exception.escaped",C6o="exception.message",T6o="exception.stacktrace",w6o="exception.type",I6o=t=>`http.request.header.${t}`,D6o="http.request.method",O6o="_OTHER",R6o="CONNECT",N6o="DELETE",rQc="GET",P6o="HEAD",k6o="OPTIONS",B6o="PATCH",M6o="POST",nQc="PUT",L6o="TRACE",U6o="http.request.method_original",F6o="http.request.resend_count",Q6o=t=>`http.response.header.${t}`,q6o="http.response.status_code",H6o="http.route",V6o="jvm.gc.action",G6o="jvm.gc.name",j6o="jvm.memory.pool.name",$6o="jvm.memory.type",W6o="heap",z6o="non_heap",K6o="jvm.thread.daemon",Y6o="jvm.thread.state",J6o="blocked",iQc="new",X6o="runnable",Z6o="terminated",ewo="timed_waiting",two="waiting",rwo="network.local.address",nwo="network.local.port",iwo="network.peer.address",owo="network.peer.port",swo="network.protocol.name",awo="network.protocol.version",cwo="network.transport",lwo="pipe",uwo="quic",oQc="tcp",sQc="udp",fwo="unix",dwo="network.type",pwo="ipv4",hwo="ipv6",mwo="otel.scope.name",gwo="otel.scope.version",ywo="otel.status_code",Awo="ERROR",aQc="OK",vwo="otel.status_description",bwo="server.address",Ewo="server.port",ETt="service.name",STt="service.version",Swo="signalr.connection.status",xwo="app_shutdown",_wo="normal_closure",Cwo="timeout",Two="signalr.transport",wwo="long_polling",Iwo="server_sent_events",Dwo="web_sockets",Owo="telemetry.sdk.language",cQc="cpp",Rwo="dotnet",Nwo="erlang",lQc="go",Pwo="java",kwo="nodejs",uQc="php",Bwo="python",Mwo="ruby",Lwo="rust",Uwo="swift",Fwo="webjs",Qwo="telemetry.sdk.name",qwo="telemetry.sdk.version",Hwo="url.fragment",Vwo="url.full",Gwo="url.path",jwo="url.query",$wo="url.scheme",Wwo="user_agent.original"});var 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,k5o,B5o,M5o,L5o,U5o,F5o,Q5o,q5o,H5o,V5o,G5o,IHr=j(()=>{zwo="aspnetcore.diagnostics.exceptions",Kwo="aspnetcore.rate_limiting.active_request_leases",Ywo="aspnetcore.rate_limiting.queued_requests",Jwo="aspnetcore.rate_limiting.request.time_in_queue",Xwo="aspnetcore.rate_limiting.request_lease.duration",Zwo="aspnetcore.rate_limiting.requests",e5o="aspnetcore.routing.match_attempts",t5o="db.client.operation.duration",r5o="dotnet.assembly.count",n5o="dotnet.exceptions",i5o="dotnet.gc.collections",o5o="dotnet.gc.heap.total_allocated",s5o="dotnet.gc.last_collection.heap.fragmentation.size",a5o="dotnet.gc.last_collection.heap.size",c5o="dotnet.gc.last_collection.memory.committed_size",l5o="dotnet.gc.pause.time",u5o="dotnet.jit.compilation.time",f5o="dotnet.jit.compiled_il.size",d5o="dotnet.jit.compiled_methods",p5o="dotnet.monitor.lock_contentions",h5o="dotnet.process.cpu.count",m5o="dotnet.process.cpu.time",g5o="dotnet.process.memory.working_set",y5o="dotnet.thread_pool.queue.length",A5o="dotnet.thread_pool.thread.count",v5o="dotnet.thread_pool.work_item.count",b5o="dotnet.timer.count",E5o="http.client.request.duration",S5o="http.server.request.duration",x5o="jvm.class.count",_5o="jvm.class.loaded",C5o="jvm.class.unloaded",T5o="jvm.cpu.count",w5o="jvm.cpu.recent_utilization",I5o="jvm.cpu.time",D5o="jvm.gc.duration",O5o="jvm.memory.committed",R5o="jvm.memory.limit",N5o="jvm.memory.used",P5o="jvm.memory.used_after_last_gc",k5o="jvm.thread.count",B5o="kestrel.active_connections",M5o="kestrel.active_tls_handshakes",L5o="kestrel.connection.duration",U5o="kestrel.queued_connections",F5o="kestrel.queued_requests",Q5o="kestrel.rejected_connections",q5o="kestrel.tls_handshake.duration",H5o="kestrel.upgraded_connections",V5o="signalr.server.active_connections",G5o="signalr.server.connection.duration"});var j5o,DHr=j(()=>{j5o="exception"});var Uu={};ss(Uu,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>B4o,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>M4o,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>L4o,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>U4o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>H4o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>V4o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>G4o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>j4o,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>K4o,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>Y4o,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>k4o,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>F4o,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>Q4o,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>q4o,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>$4o,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>W4o,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>z4o,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:()=>J4o,ATTR_CLIENT_ADDRESS:()=>X4o,ATTR_CLIENT_PORT:()=>Z4o,ATTR_CODE_COLUMN_NUMBER:()=>e6o,ATTR_CODE_FILE_PATH:()=>t6o,ATTR_CODE_FUNCTION_NAME:()=>r6o,ATTR_CODE_LINE_NUMBER:()=>n6o,ATTR_CODE_STACKTRACE:()=>i6o,ATTR_DB_COLLECTION_NAME:()=>o6o,ATTR_DB_NAMESPACE:()=>s6o,ATTR_DB_OPERATION_BATCH_SIZE:()=>a6o,ATTR_DB_OPERATION_NAME:()=>c6o,ATTR_DB_QUERY_SUMMARY:()=>l6o,ATTR_DB_QUERY_TEXT:()=>u6o,ATTR_DB_RESPONSE_STATUS_CODE:()=>f6o,ATTR_DB_STORED_PROCEDURE_NAME:()=>d6o,ATTR_DB_SYSTEM_NAME:()=>p6o,ATTR_DOTNET_GC_HEAP_GENERATION:()=>A6o,ATTR_ERROR_TYPE:()=>S6o,ATTR_EXCEPTION_ESCAPED:()=>_6o,ATTR_EXCEPTION_MESSAGE:()=>C6o,ATTR_EXCEPTION_STACKTRACE:()=>T6o,ATTR_EXCEPTION_TYPE:()=>w6o,ATTR_HTTP_REQUEST_HEADER:()=>I6o,ATTR_HTTP_REQUEST_METHOD:()=>D6o,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>U6o,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>F6o,ATTR_HTTP_RESPONSE_HEADER:()=>Q6o,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>q6o,ATTR_HTTP_ROUTE:()=>H6o,ATTR_JVM_GC_ACTION:()=>V6o,ATTR_JVM_GC_NAME:()=>G6o,ATTR_JVM_MEMORY_POOL_NAME:()=>j6o,ATTR_JVM_MEMORY_TYPE:()=>$6o,ATTR_JVM_THREAD_DAEMON:()=>K6o,ATTR_JVM_THREAD_STATE:()=>Y6o,ATTR_NETWORK_LOCAL_ADDRESS:()=>rwo,ATTR_NETWORK_LOCAL_PORT:()=>nwo,ATTR_NETWORK_PEER_ADDRESS:()=>iwo,ATTR_NETWORK_PEER_PORT:()=>owo,ATTR_NETWORK_PROTOCOL_NAME:()=>swo,ATTR_NETWORK_PROTOCOL_VERSION:()=>awo,ATTR_NETWORK_TRANSPORT:()=>cwo,ATTR_NETWORK_TYPE:()=>dwo,ATTR_OTEL_SCOPE_NAME:()=>mwo,ATTR_OTEL_SCOPE_VERSION:()=>gwo,ATTR_OTEL_STATUS_CODE:()=>ywo,ATTR_OTEL_STATUS_DESCRIPTION:()=>vwo,ATTR_SERVER_ADDRESS:()=>bwo,ATTR_SERVER_PORT:()=>Ewo,ATTR_SERVICE_NAME:()=>ETt,ATTR_SERVICE_VERSION:()=>STt,ATTR_SIGNALR_CONNECTION_STATUS:()=>Swo,ATTR_SIGNALR_TRANSPORT:()=>Two,ATTR_TELEMETRY_SDK_LANGUAGE:()=>Owo,ATTR_TELEMETRY_SDK_NAME:()=>Qwo,ATTR_TELEMETRY_SDK_VERSION:()=>qwo,ATTR_URL_FRAGMENT:()=>Hwo,ATTR_URL_FULL:()=>Vwo,ATTR_URL_PATH:()=>Gwo,ATTR_URL_QUERY:()=>jwo,ATTR_URL_SCHEME:()=>$wo,ATTR_USER_AGENT_ORIGINAL:()=>Wwo,AWSECSLAUNCHTYPEVALUES_EC2:()=>e4o,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>t4o,AwsEcsLaunchtypeValues:()=>r4o,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>MTo,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>LTo,CLOUDPLATFORMVALUES_AWS_EC2:()=>UTo,CLOUDPLATFORMVALUES_AWS_ECS:()=>FTo,CLOUDPLATFORMVALUES_AWS_EKS:()=>QTo,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>HTo,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>qTo,CLOUDPLATFORMVALUES_AZURE_AKS:()=>jTo,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>WTo,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>GTo,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>$To,CLOUDPLATFORMVALUES_AZURE_VM:()=>VTo,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>XTo,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>JTo,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>KTo,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>zTo,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>YTo,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>RTo,CLOUDPROVIDERVALUES_AWS:()=>NTo,CLOUDPROVIDERVALUES_AZURE:()=>PTo,CLOUDPROVIDERVALUES_GCP:()=>kTo,CloudPlatformValues:()=>ZTo,CloudProviderValues:()=>BTo,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>mxo,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>xxo,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>gxo,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>Sxo,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>Axo,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>Cxo,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>vxo,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>yxo,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>_xo,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>Exo,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>bxo,DBSYSTEMVALUES_ADABAS:()=>USo,DBSYSTEMVALUES_CACHE:()=>LSo,DBSYSTEMVALUES_CASSANDRA:()=>txo,DBSYSTEMVALUES_CLOUDSCAPE:()=>DSo,DBSYSTEMVALUES_COCKROACHDB:()=>pxo,DBSYSTEMVALUES_COLDFUSION:()=>exo,DBSYSTEMVALUES_COSMOSDB:()=>axo,DBSYSTEMVALUES_COUCHBASE:()=>oxo,DBSYSTEMVALUES_COUCHDB:()=>sxo,DBSYSTEMVALUES_DB2:()=>CSo,DBSYSTEMVALUES_DERBY:()=>QSo,DBSYSTEMVALUES_DYNAMODB:()=>cxo,DBSYSTEMVALUES_EDB:()=>MSo,DBSYSTEMVALUES_ELASTICSEARCH:()=>fxo,DBSYSTEMVALUES_FILEMAKER:()=>qSo,DBSYSTEMVALUES_FIREBIRD:()=>FSo,DBSYSTEMVALUES_FIRSTSQL:()=>BSo,DBSYSTEMVALUES_GEODE:()=>uxo,DBSYSTEMVALUES_H2:()=>ZSo,DBSYSTEMVALUES_HANADB:()=>PSo,DBSYSTEMVALUES_HBASE:()=>rxo,DBSYSTEMVALUES_HIVE:()=>ISo,DBSYSTEMVALUES_HSQLDB:()=>OSo,DBSYSTEMVALUES_INFORMIX:()=>HSo,DBSYSTEMVALUES_INGRES:()=>kSo,DBSYSTEMVALUES_INSTANTDB:()=>VSo,DBSYSTEMVALUES_INTERBASE:()=>GSo,DBSYSTEMVALUES_MARIADB:()=>jSo,DBSYSTEMVALUES_MAXDB:()=>NSo,DBSYSTEMVALUES_MEMCACHED:()=>dxo,DBSYSTEMVALUES_MONGODB:()=>nxo,DBSYSTEMVALUES_MSSQL:()=>SSo,DBSYSTEMVALUES_MYSQL:()=>xSo,DBSYSTEMVALUES_NEO4J:()=>lxo,DBSYSTEMVALUES_NETEZZA:()=>$So,DBSYSTEMVALUES_ORACLE:()=>_So,DBSYSTEMVALUES_OTHER_SQL:()=>ESo,DBSYSTEMVALUES_PERVASIVE:()=>WSo,DBSYSTEMVALUES_POINTBASE:()=>zSo,DBSYSTEMVALUES_POSTGRESQL:()=>TSo,DBSYSTEMVALUES_PROGRESS:()=>RSo,DBSYSTEMVALUES_REDIS:()=>ixo,DBSYSTEMVALUES_REDSHIFT:()=>wSo,DBSYSTEMVALUES_SQLITE:()=>KSo,DBSYSTEMVALUES_SYBASE:()=>YSo,DBSYSTEMVALUES_TERADATA:()=>JSo,DBSYSTEMVALUES_VERTICA:()=>XSo,DB_SYSTEM_NAME_VALUE_MARIADB:()=>h6o,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:()=>m6o,DB_SYSTEM_NAME_VALUE_MYSQL:()=>g6o,DB_SYSTEM_NAME_VALUE_POSTGRESQL:()=>y6o,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:()=>v6o,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:()=>b6o,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:()=>E6o,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:()=>eQc,DOTNET_GC_HEAP_GENERATION_VALUE_POH:()=>tQc,DbCassandraConsistencyLevelValues:()=>Txo,DbSystemValues:()=>hxo,ERROR_TYPE_VALUE_OTHER:()=>x6o,EVENT_EXCEPTION:()=>j5o,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>Bxo,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>kxo,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>Pxo,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>Lxo,FAASINVOKEDPROVIDERVALUES_AWS:()=>Uxo,FAASINVOKEDPROVIDERVALUES_AZURE:()=>Fxo,FAASINVOKEDPROVIDERVALUES_GCP:()=>Qxo,FAASTRIGGERVALUES_DATASOURCE:()=>wxo,FAASTRIGGERVALUES_HTTP:()=>Ixo,FAASTRIGGERVALUES_OTHER:()=>Rxo,FAASTRIGGERVALUES_PUBSUB:()=>Dxo,FAASTRIGGERVALUES_TIMER:()=>Oxo,FaasDocumentOperationValues:()=>Mxo,FaasInvokedProviderValues:()=>qxo,FaasTriggerValues:()=>Nxo,HOSTARCHVALUES_AMD64:()=>n4o,HOSTARCHVALUES_ARM32:()=>i4o,HOSTARCHVALUES_ARM64:()=>o4o,HOSTARCHVALUES_IA64:()=>s4o,HOSTARCHVALUES_PPC32:()=>a4o,HOSTARCHVALUES_PPC64:()=>c4o,HOSTARCHVALUES_X86:()=>l4o,HTTPFLAVORVALUES_HTTP_1_0:()=>__o,HTTPFLAVORVALUES_HTTP_1_1:()=>C_o,HTTPFLAVORVALUES_HTTP_2_0:()=>T_o,HTTPFLAVORVALUES_QUIC:()=>I_o,HTTPFLAVORVALUES_SPDY:()=>w_o,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>R6o,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>N6o,HTTP_REQUEST_METHOD_VALUE_GET:()=>rQc,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>P6o,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>k6o,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>O6o,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>B6o,HTTP_REQUEST_METHOD_VALUE_POST:()=>M6o,HTTP_REQUEST_METHOD_VALUE_PUT:()=>nQc,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>L6o,HostArchValues:()=>u4o,HttpFlavorValues:()=>D_o,JVM_MEMORY_TYPE_VALUE_HEAP:()=>W6o,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>z6o,JVM_THREAD_STATE_VALUE_BLOCKED:()=>J6o,JVM_THREAD_STATE_VALUE_NEW:()=>iQc,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>X6o,JVM_THREAD_STATE_VALUE_TERMINATED:()=>Z6o,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>ewo,JVM_THREAD_STATE_VALUE_WAITING:()=>two,MESSAGETYPEVALUES_RECEIVED:()=>tCo,MESSAGETYPEVALUES_SENT:()=>eCo,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>O_o,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>R_o,MESSAGINGOPERATIONVALUES_PROCESS:()=>k_o,MESSAGINGOPERATIONVALUES_RECEIVE:()=>P_o,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>zwo,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>Kwo,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>Ywo,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>Zwo,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>Xwo,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>Jwo,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>e5o,METRIC_DB_CLIENT_OPERATION_DURATION:()=>t5o,METRIC_DOTNET_ASSEMBLY_COUNT:()=>r5o,METRIC_DOTNET_EXCEPTIONS:()=>n5o,METRIC_DOTNET_GC_COLLECTIONS:()=>i5o,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:()=>o5o,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:()=>s5o,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:()=>a5o,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:()=>c5o,METRIC_DOTNET_GC_PAUSE_TIME:()=>l5o,METRIC_DOTNET_JIT_COMPILATION_TIME:()=>u5o,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:()=>f5o,METRIC_DOTNET_JIT_COMPILED_METHODS:()=>d5o,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:()=>p5o,METRIC_DOTNET_PROCESS_CPU_COUNT:()=>h5o,METRIC_DOTNET_PROCESS_CPU_TIME:()=>m5o,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:()=>g5o,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:()=>y5o,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:()=>A5o,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:()=>v5o,METRIC_DOTNET_TIMER_COUNT:()=>b5o,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>E5o,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>S5o,METRIC_JVM_CLASS_COUNT:()=>x5o,METRIC_JVM_CLASS_LOADED:()=>_5o,METRIC_JVM_CLASS_UNLOADED:()=>C5o,METRIC_JVM_CPU_COUNT:()=>T5o,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>w5o,METRIC_JVM_CPU_TIME:()=>I5o,METRIC_JVM_GC_DURATION:()=>D5o,METRIC_JVM_MEMORY_COMMITTED:()=>O5o,METRIC_JVM_MEMORY_LIMIT:()=>R5o,METRIC_JVM_MEMORY_USED:()=>N5o,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>P5o,METRIC_JVM_THREAD_COUNT:()=>k5o,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>B5o,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>M5o,METRIC_KESTREL_CONNECTION_DURATION:()=>L5o,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>U5o,METRIC_KESTREL_QUEUED_REQUESTS:()=>F5o,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>Q5o,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>q5o,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>H5o,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>V5o,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>G5o,MessageTypeValues:()=>rCo,MessagingDestinationKindValues:()=>N_o,MessagingOperationValues:()=>B_o,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>o_o,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>c_o,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>n_o,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>m_o,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>s_o,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>a_o,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>p_o,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>r_o,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>y_o,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>l_o,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>f_o,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>g_o,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>u_o,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>d_o,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>v_o,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>h_o,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>S_o,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>b_o,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>E_o,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>A_o,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>i_o,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>Xxo,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>Zxo,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>e_o,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>Yxo,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>Jxo,NETTRANSPORTVALUES_INPROC:()=>Wxo,NETTRANSPORTVALUES_IP:()=>Gxo,NETTRANSPORTVALUES_IP_TCP:()=>Hxo,NETTRANSPORTVALUES_IP_UDP:()=>Vxo,NETTRANSPORTVALUES_OTHER:()=>zxo,NETTRANSPORTVALUES_PIPE:()=>$xo,NETTRANSPORTVALUES_UNIX:()=>jxo,NETWORK_TRANSPORT_VALUE_PIPE:()=>lwo,NETWORK_TRANSPORT_VALUE_QUIC:()=>uwo,NETWORK_TRANSPORT_VALUE_TCP:()=>oQc,NETWORK_TRANSPORT_VALUE_UDP:()=>sQc,NETWORK_TRANSPORT_VALUE_UNIX:()=>fwo,NETWORK_TYPE_VALUE_IPV4:()=>pwo,NETWORK_TYPE_VALUE_IPV6:()=>hwo,NetHostConnectionSubtypeValues:()=>x_o,NetHostConnectionTypeValues:()=>t_o,NetTransportValues:()=>Kxo,OSTYPEVALUES_AIX:()=>v4o,OSTYPEVALUES_DARWIN:()=>p4o,OSTYPEVALUES_DRAGONFLYBSD:()=>y4o,OSTYPEVALUES_FREEBSD:()=>h4o,OSTYPEVALUES_HPUX:()=>A4o,OSTYPEVALUES_LINUX:()=>d4o,OSTYPEVALUES_NETBSD:()=>m4o,OSTYPEVALUES_OPENBSD:()=>g4o,OSTYPEVALUES_SOLARIS:()=>b4o,OSTYPEVALUES_WINDOWS:()=>f4o,OSTYPEVALUES_Z_OS:()=>E4o,OTEL_STATUS_CODE_VALUE_ERROR:()=>Awo,OTEL_STATUS_CODE_VALUE_OK:()=>aQc,OsTypeValues:()=>S4o,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>$_o,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>H_o,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>L_o,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>J_o,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>Q_o,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>j_o,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>K_o,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>F_o,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>q_o,RPCGRPCSTATUSCODEVALUES_OK:()=>M_o,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>W_o,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>V_o,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>G_o,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>X_o,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>Y_o,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>z_o,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>U_o,RpcGrpcStatusCodeValues:()=>Z_o,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>OEo,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>HEo,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>wEo,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>xEo,SEMATTRS_AWS_DYNAMODB_COUNT:()=>QEo,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>BEo,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>PEo,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>VEo,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>REo,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>_Eo,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>DEo,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>kEo,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>IEo,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>CEo,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>TEo,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>qEo,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>LEo,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>UEo,SEMATTRS_AWS_DYNAMODB_SELECT:()=>NEo,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>MEo,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>SEo,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>FEo,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>tbo,SEMATTRS_CODE_FILEPATH:()=>oEo,SEMATTRS_CODE_FUNCTION:()=>nEo,SEMATTRS_CODE_LINENO:()=>sEo,SEMATTRS_CODE_NAMESPACE:()=>iEo,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>dbo,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>ybo,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>gbo,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>hbo,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>ubo,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>fbo,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>mbo,SEMATTRS_DB_CASSANDRA_TABLE:()=>pbo,SEMATTRS_DB_CONNECTION_STRING:()=>nbo,SEMATTRS_DB_HBASE_NAMESPACE:()=>Abo,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>obo,SEMATTRS_DB_MONGODB_COLLECTION:()=>bbo,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>lbo,SEMATTRS_DB_NAME:()=>sbo,SEMATTRS_DB_OPERATION:()=>cbo,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>vbo,SEMATTRS_DB_SQL_TABLE:()=>Ebo,SEMATTRS_DB_STATEMENT:()=>abo,SEMATTRS_DB_SYSTEM:()=>rbo,SEMATTRS_DB_USER:()=>ibo,SEMATTRS_ENDUSER_ID:()=>Xbo,SEMATTRS_ENDUSER_ROLE:()=>Zbo,SEMATTRS_ENDUSER_SCOPE:()=>eEo,SEMATTRS_EXCEPTION_ESCAPED:()=>Cbo,SEMATTRS_EXCEPTION_MESSAGE:()=>xbo,SEMATTRS_EXCEPTION_STACKTRACE:()=>_bo,SEMATTRS_EXCEPTION_TYPE:()=>Sbo,SEMATTRS_FAAS_COLDSTART:()=>kbo,SEMATTRS_FAAS_CRON:()=>Pbo,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>Ibo,SEMATTRS_FAAS_DOCUMENT_NAME:()=>Rbo,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>Dbo,SEMATTRS_FAAS_DOCUMENT_TIME:()=>Obo,SEMATTRS_FAAS_EXECUTION:()=>wbo,SEMATTRS_FAAS_INVOKED_NAME:()=>Bbo,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>Mbo,SEMATTRS_FAAS_INVOKED_REGION:()=>Lbo,SEMATTRS_FAAS_TIME:()=>Nbo,SEMATTRS_FAAS_TRIGGER:()=>Tbo,SEMATTRS_HTTP_CLIENT_IP:()=>EEo,SEMATTRS_HTTP_FLAVOR:()=>pEo,SEMATTRS_HTTP_HOST:()=>uEo,SEMATTRS_HTTP_METHOD:()=>aEo,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>mEo,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>gEo,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>yEo,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>AEo,SEMATTRS_HTTP_ROUTE:()=>bEo,SEMATTRS_HTTP_SCHEME:()=>fEo,SEMATTRS_HTTP_SERVER_NAME:()=>vEo,SEMATTRS_HTTP_STATUS_CODE:()=>dEo,SEMATTRS_HTTP_TARGET:()=>lEo,SEMATTRS_HTTP_URL:()=>cEo,SEMATTRS_HTTP_USER_AGENT:()=>hEo,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>vSo,SEMATTRS_MESSAGE_ID:()=>ASo,SEMATTRS_MESSAGE_TYPE:()=>ySo,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>bSo,SEMATTRS_MESSAGING_CONSUMER_ID:()=>rSo,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>XEo,SEMATTRS_MESSAGING_DESTINATION:()=>jEo,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>$Eo,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>sSo,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>oSo,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>iSo,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>aSo,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>cSo,SEMATTRS_MESSAGING_MESSAGE_ID:()=>JEo,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>eSo,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>ZEo,SEMATTRS_MESSAGING_OPERATION:()=>tSo,SEMATTRS_MESSAGING_PROTOCOL:()=>zEo,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>KEo,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>nSo,SEMATTRS_MESSAGING_SYSTEM:()=>GEo,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>WEo,SEMATTRS_MESSAGING_URL:()=>YEo,SEMATTRS_NET_HOST_CARRIER_ICC:()=>Ybo,SEMATTRS_NET_HOST_CARRIER_MCC:()=>zbo,SEMATTRS_NET_HOST_CARRIER_MNC:()=>Kbo,SEMATTRS_NET_HOST_CARRIER_NAME:()=>Wbo,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>$bo,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>jbo,SEMATTRS_NET_HOST_IP:()=>Hbo,SEMATTRS_NET_HOST_NAME:()=>Gbo,SEMATTRS_NET_HOST_PORT:()=>Vbo,SEMATTRS_NET_PEER_IP:()=>Fbo,SEMATTRS_NET_PEER_NAME:()=>qbo,SEMATTRS_NET_PEER_PORT:()=>Qbo,SEMATTRS_NET_TRANSPORT:()=>Ubo,SEMATTRS_PEER_SERVICE:()=>Jbo,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>dSo,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>mSo,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>gSo,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>hSo,SEMATTRS_RPC_JSONRPC_VERSION:()=>pSo,SEMATTRS_RPC_METHOD:()=>fSo,SEMATTRS_RPC_SERVICE:()=>uSo,SEMATTRS_RPC_SYSTEM:()=>lSo,SEMATTRS_THREAD_ID:()=>tEo,SEMATTRS_THREAD_NAME:()=>rEo,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>lCo,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>cCo,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>uCo,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>fCo,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>dCo,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>pCo,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>hCo,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>gCo,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>mCo,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>ACo,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>yCo,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>iCo,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>sCo,SEMRESATTRS_CLOUD_PLATFORM:()=>aCo,SEMRESATTRS_CLOUD_PROVIDER:()=>nCo,SEMRESATTRS_CLOUD_REGION:()=>oCo,SEMRESATTRS_CONTAINER_ID:()=>bCo,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>SCo,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>xCo,SEMRESATTRS_CONTAINER_NAME:()=>vCo,SEMRESATTRS_CONTAINER_RUNTIME:()=>ECo,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>_Co,SEMRESATTRS_DEVICE_ID:()=>CCo,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>TCo,SEMRESATTRS_DEVICE_MODEL_NAME:()=>wCo,SEMRESATTRS_FAAS_ID:()=>DCo,SEMRESATTRS_FAAS_INSTANCE:()=>RCo,SEMRESATTRS_FAAS_MAX_MEMORY:()=>NCo,SEMRESATTRS_FAAS_NAME:()=>ICo,SEMRESATTRS_FAAS_VERSION:()=>OCo,SEMRESATTRS_HOST_ARCH:()=>MCo,SEMRESATTRS_HOST_ID:()=>PCo,SEMRESATTRS_HOST_IMAGE_ID:()=>UCo,SEMRESATTRS_HOST_IMAGE_NAME:()=>LCo,SEMRESATTRS_HOST_IMAGE_VERSION:()=>FCo,SEMRESATTRS_HOST_NAME:()=>kCo,SEMRESATTRS_HOST_TYPE:()=>BCo,SEMRESATTRS_K8S_CLUSTER_NAME:()=>QCo,SEMRESATTRS_K8S_CONTAINER_NAME:()=>$Co,SEMRESATTRS_K8S_CRONJOB_NAME:()=>iTo,SEMRESATTRS_K8S_CRONJOB_UID:()=>nTo,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>eTo,SEMRESATTRS_K8S_DAEMONSET_UID:()=>ZCo,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>YCo,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>KCo,SEMRESATTRS_K8S_JOB_NAME:()=>rTo,SEMRESATTRS_K8S_JOB_UID:()=>tTo,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>VCo,SEMRESATTRS_K8S_NODE_NAME:()=>qCo,SEMRESATTRS_K8S_NODE_UID:()=>HCo,SEMRESATTRS_K8S_POD_NAME:()=>jCo,SEMRESATTRS_K8S_POD_UID:()=>GCo,SEMRESATTRS_K8S_REPLICASET_NAME:()=>zCo,SEMRESATTRS_K8S_REPLICASET_UID:()=>WCo,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>XCo,SEMRESATTRS_K8S_STATEFULSET_UID:()=>JCo,SEMRESATTRS_OS_DESCRIPTION:()=>sTo,SEMRESATTRS_OS_NAME:()=>aTo,SEMRESATTRS_OS_TYPE:()=>oTo,SEMRESATTRS_OS_VERSION:()=>cTo,SEMRESATTRS_PROCESS_COMMAND:()=>dTo,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>hTo,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>pTo,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>uTo,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>fTo,SEMRESATTRS_PROCESS_OWNER:()=>mTo,SEMRESATTRS_PROCESS_PID:()=>lTo,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>ATo,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>gTo,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>yTo,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>ETo,SEMRESATTRS_SERVICE_NAME:()=>vTo,SEMRESATTRS_SERVICE_NAMESPACE:()=>bTo,SEMRESATTRS_SERVICE_VERSION:()=>STo,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>TTo,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>_To,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>xTo,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>CTo,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>DTo,SEMRESATTRS_WEBENGINE_NAME:()=>wTo,SEMRESATTRS_WEBENGINE_VERSION:()=>ITo,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>xwo,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>_wo,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>Cwo,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>wwo,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>Iwo,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>Dwo,SemanticAttributes:()=>Jee,SemanticResourceAttributes:()=>OTo,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>x4o,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>_4o,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>C4o,TELEMETRYSDKLANGUAGEVALUES_GO:()=>T4o,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>w4o,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>I4o,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>D4o,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>O4o,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>R4o,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>N4o,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>cQc,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>Rwo,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>Nwo,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>lQc,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>Pwo,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>kwo,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>uQc,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>Bwo,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>Mwo,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>Lwo,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>Uwo,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>Fwo,TelemetrySdkLanguageValues:()=>P4o});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 rO,F7e=j(()=>{rO=class extends Error{code;name="OTLPExporterError";data;constructor(e,r,o){super(e),this.data=o,this.code=r}}});function $5o(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:$5o(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 e2e=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 t2e=E(dB=>{"use strict";Object.defineProperty(dB,"__esModule",{value:!0});dB.isTracingSuppressed=dB.unsuppressTracing=dB.suppressTracing=void 0;var W5o=(ut(),nt(xt)),CTt=(0,W5o.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function z5o(t){return t.setValue(CTt,!0)}dB.suppressTracing=z5o;function K5o(t){return t.deleteValue(CTt)}dB.unsuppressTracing=K5o;function Y5o(t){return t.getValue(CTt)===!0}dB.isTracingSuppressed=Y5o});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(W5=>{"use strict";Object.defineProperty(W5,"__esModule",{value:!0});W5.parseKeyPairsIntoRecord=W5.parsePairKeyValue=W5.getKeyPairs=W5.serializeKeyPairs=void 0;var J5o=(ut(),nt(xt)),tV=TTt();function X5o(t){return t.reduce((e,r)=>{let o=`${e}${e!==""?tV.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return o.length>tV.BAGGAGE_MAX_TOTAL_LENGTH?e:o},"")}W5.serializeKeyPairs=X5o;function Z5o(t){return t.getAllEntries().map(([e,r])=>{let o=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(o+=tV.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),o})}W5.getKeyPairs=Z5o;function NHr(t){let e=t.split(tV.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let o=r.indexOf(tV.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,J5o.baggageEntryMetadataFromString)(e.join(tV.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:a,metadata:i}}W5.parsePairKeyValue=NHr;function eIo(t){let e={};return typeof t=="string"&&t.length>0&&t.split(tV.BAGGAGE_ITEMS_SEPARATOR).forEach(r=>{let o=NHr(r);o!==void 0&&o.value.length>0&&(e[o.key]=o.value)}),e}W5.parseKeyPairsIntoRecord=eIo});var PHr=E(j7e=>{"use strict";Object.defineProperty(j7e,"__esModule",{value:!0});j7e.W3CBaggagePropagator=void 0;var ITt=(ut(),nt(xt)),tIo=t2e(),rV=TTt(),DTt=wTt(),OTt=class{inject(e,r,o){let s=ITt.propagation.getBaggage(e);if(!s||(0,tIo.isTracingSuppressed)(e))return;let a=(0,DTt.getKeyPairs)(s).filter(n=>n.length<=rV.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,rV.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,DTt.serializeKeyPairs)(a);i.length>0&&o.set(r,rV.BAGGAGE_HEADER,i)}extract(e,r,o){let s=o.get(r,rV.BAGGAGE_HEADER),a=Array.isArray(s)?s.join(rV.BAGGAGE_ITEMS_SEPARATOR):s;if(!a)return e;let i={};return a.length===0||(a.split(rV.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[rV.BAGGAGE_HEADER]}};j7e.W3CBaggagePropagator=OTt});var kHr=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(pB=>{"use strict";Object.defineProperty(pB,"__esModule",{value:!0});pB.isAttributeValue=pB.isAttributeKey=pB.sanitizeAttributes=void 0;var BHr=(ut(),nt(xt));function rIo(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,o]of Object.entries(t)){if(!MHr(r)){BHr.diag.warn(`Invalid attribute key: ${r}`);continue}if(!LHr(o)){BHr.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(o)?e[r]=o.slice():e[r]=o}return e}pB.sanitizeAttributes=rIo;function MHr(t){return typeof t=="string"&&t.length>0}pB.isAttributeKey=MHr;function LHr(t){return t==null?!0:Array.isArray(t)?nIo(t):UHr(t)}pB.isAttributeValue=LHr;function nIo(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 iIo=(ut(),nt(xt));function oIo(){return t=>{iIo.diag.error(sIo(t))}}W7e.loggingErrorHandler=oIo;function sIo(t){return typeof t=="string"?t:JSON.stringify(aIo(t))}function aIo(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(Xee=>{"use strict";Object.defineProperty(Xee,"__esModule",{value:!0});Xee.globalErrorHandler=Xee.setGlobalErrorHandler=void 0;var cIo=NTt(),QHr=(0,cIo.loggingErrorHandler)();function lIo(t){QHr=t}Xee.setGlobalErrorHandler=lIo;function uIo(t){try{QHr(t)}catch{}}Xee.globalErrorHandler=uIo});var jHr=E(z5=>{"use strict";Object.defineProperty(z5,"__esModule",{value:!0});z5.getStringListFromEnv=z5.getBooleanFromEnv=z5.getStringFromEnv=z5.getNumberFromEnv=void 0;var HHr=(ut(),nt(xt)),VHr=me("util");function fIo(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}z5.getNumberFromEnv=fIo;function GHr(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}z5.getStringFromEnv=GHr;function dIo(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)}z5.getBooleanFromEnv=dIo;function pIo(t){return GHr(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}z5.getStringListFromEnv=pIo});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 hIo=me("perf_hooks");K7e.otperformance=hIo.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 mIo=zHr(),X7e=(Wl(),nt(Uu)),gIo=KHr();Z7e.SDK_INFO={[X7e.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[gIo.ATTR_PROCESS_RUNTIME_NAME]:"node",[X7e.ATTR_TELEMETRY_SDK_LANGUAGE]:X7e.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[X7e.ATTR_TELEMETRY_SDK_VERSION]:mIo.VERSION}});var JHr=E(eOe=>{"use strict";Object.defineProperty(eOe,"__esModule",{value:!0});eOe.unrefTimer=void 0;function yIo(t){t.unref()}eOe.unrefTimer=yIo});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 AIo=$Hr();Object.defineProperty(r0,"_globalThis",{enumerable:!0,get:function(){return AIo._globalThis}});var vIo=WHr();Object.defineProperty(r0,"otperformance",{enumerable:!0,get:function(){return vIo.otperformance}});var bIo=YHr();Object.defineProperty(r0,"SDK_INFO",{enumerable:!0,get:function(){return bIo.SDK_INFO}});var EIo=JHr();Object.defineProperty(r0,"unrefTimer",{enumerable:!0,get:function(){return EIo.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 hB=XHr();Object.defineProperty(n0,"SDK_INFO",{enumerable:!0,get:function(){return hB.SDK_INFO}});Object.defineProperty(n0,"_globalThis",{enumerable:!0,get:function(){return hB._globalThis}});Object.defineProperty(n0,"otperformance",{enumerable:!0,get:function(){return hB.otperformance}});Object.defineProperty(n0,"unrefTimer",{enumerable:!0,get:function(){return hB.unrefTimer}});Object.defineProperty(n0,"getBooleanFromEnv",{enumerable:!0,get:function(){return hB.getBooleanFromEnv}});Object.defineProperty(n0,"getStringFromEnv",{enumerable:!0,get:function(){return hB.getStringFromEnv}});Object.defineProperty(n0,"getNumberFromEnv",{enumerable:!0,get:function(){return hB.getNumberFromEnv}});Object.defineProperty(n0,"getStringListFromEnv",{enumerable:!0,get:function(){return hB.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 kTt=PTt(),ZHr=9,SIo=6,xIo=Math.pow(10,SIo),rOe=Math.pow(10,ZHr);function r2e(t){let e=t/1e3,r=Math.trunc(e),o=Math.round(t%1e3*xIo);return[r,o]}Of.millisToHrTime=r2e;function BTt(){let t=kTt.otperformance.timeOrigin;if(typeof t!="number"){let e=kTt.otperformance;t=e.timing&&e.timing.fetchStart}return t}Of.getTimeOrigin=BTt;function eVr(t){let e=r2e(BTt()),r=r2e(typeof t=="number"?t:kTt.otperformance.now());return tVr(e,r)}Of.hrTime=eVr;function _Io(t){if(MTt(t))return t;if(typeof t=="number")return t<BTt()?eVr(t):r2e(t);if(t instanceof Date)return r2e(t.getTime());throw TypeError("Invalid input type")}Of.timeInputToHrTime=_Io;function CIo(t,e){let r=e[0]-t[0],o=e[1]-t[1];return o<0&&(r-=1,o+=rOe),[r,o]}Of.hrTimeDuration=CIo;function TIo(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=TIo;function wIo(t){return t[0]*rOe+t[1]}Of.hrTimeToNanoseconds=wIo;function IIo(t){return t[0]*1e3+t[1]/1e6}Of.hrTimeToMilliseconds=IIo;function DIo(t){return t[0]*1e6+t[1]/1e3}Of.hrTimeToMicroseconds=DIo;function MTt(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}Of.isTimeInputHrTime=MTt;function OIo(t){return MTt(t)||typeof t=="number"||t instanceof Date}Of.isTimeInput=OIo;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(n2e=>{"use strict";Object.defineProperty(n2e,"__esModule",{value:!0});n2e.ExportResultCode=void 0;var RIo;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(RIo=n2e.ExportResultCode||(n2e.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(Zee=>{"use strict";Object.defineProperty(Zee,"__esModule",{value:!0});Zee.validateValue=Zee.validateKey=void 0;var UTt="[_0-9a-z-*/]",NIo=`[a-z]${UTt}{0,255}`,PIo=`[a-z0-9]${UTt}{0,240}@[a-z]${UTt}{0,13}`,kIo=new RegExp(`^(?:${NIo}|${PIo})$`),BIo=/^[ -~]{0,255}[!-~]$/,MIo=/,|=/;function LIo(t){return kIo.test(t)}Zee.validateKey=LIo;function UIo(t){return BIo.test(t)&&!MIo.test(t)}Zee.validateValue=UIo});var QTt=E(iOe=>{"use strict";Object.defineProperty(iOe,"__esModule",{value:!0});iOe.TraceState=void 0;var aVr=sVr(),cVr=32,FIo=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>FIo||(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)),QIo=t2e(),qIo=QTt();Z1.TRACE_PARENT_HEADER="traceparent";Z1.TRACE_STATE_HEADER="tracestate";var HIo="00",VIo="(?!ff)[\\da-f]{2}",GIo="(?![0]{32})[\\da-f]{32}",jIo="(?![0]{16})[\\da-f]{16}",$Io="[\\da-f]{2}",WIo=new RegExp(`^\\s?(${VIo})-(${GIo})-(${jIo})-(${$Io})(-.*)?\\s?$`);function fVr(t){let e=WIo.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,QIo.isTracingSuppressed)(e)||!(0,oOe.isSpanContextValid)(s))return;let a=`${HIo}-${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 qIo.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(H4=>{"use strict";Object.defineProperty(H4,"__esModule",{value:!0});H4.getRPCMetadata=H4.deleteRPCMetadata=H4.setRPCMetadata=H4.RPCType=void 0;var zIo=(ut(),nt(xt)),HTt=(0,zIo.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),KIo;(function(t){t.HTTP="http"})(KIo=H4.RPCType||(H4.RPCType={}));function YIo(t,e){return t.setValue(HTt,e)}H4.setRPCMetadata=YIo;function JIo(t){return t.deleteValue(HTt)}H4.deleteRPCMetadata=JIo;function XIo(t){return t.getValue(HTt)}H4.getRPCMetadata=XIo});var AVr=E(sOe=>{"use strict";Object.defineProperty(sOe,"__esModule",{value:!0});sOe.isPlainObject=void 0;var ZIo="[object Object]",e8o="[object Null]",t8o="[object Undefined]",r8o=Function.prototype,hVr=r8o.toString,n8o=hVr.call(Object),i8o=Object.getPrototypeOf,mVr=Object.prototype,gVr=mVr.hasOwnProperty,nV=Symbol?Symbol.toStringTag:void 0,yVr=mVr.toString;function o8o(t){if(!s8o(t)||a8o(t)!==ZIo)return!1;let e=i8o(t);if(e===null)return!0;let r=gVr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&hVr.call(r)===n8o}sOe.isPlainObject=o8o;function s8o(t){return t!=null&&typeof t=="object"}function a8o(t){return t==null?t===void 0?t8o:e8o:nV&&nV in Object(t)?c8o(t):l8o(t)}function c8o(t){let e=gVr.call(t,nV),r=t[nV],o=!1;try{t[nV]=void 0,o=!0}catch{}let s=yVr.call(t);return o&&(e?t[nV]=r:delete t[nV]),s}function l8o(t){return yVr.call(t)}});var xVr=E(lOe=>{"use strict";Object.defineProperty(lOe,"__esModule",{value:!0});lOe.merge=void 0;var vVr=AVr(),u8o=20;function f8o(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=EVr(e,t.shift(),0,r);return e}lOe.merge=f8o;function VTt(t){return cOe(t)?t.slice():t}function EVr(t,e,r=0,o){let s;if(!(r>u8o)){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(i2e(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(i2e(t))if(i2e(e)){if(!d8o(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(i2e(f)&&i2e(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 i2e(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 d8o(t,e){return!(!(0,vVr.isPlainObject)(t)||!(0,vVr.isPlainObject)(e))}});var _Vr=E(ete=>{"use strict";Object.defineProperty(ete,"__esModule",{value:!0});ete.callWithTimeout=ete.TimeoutError=void 0;var uOe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};ete.TimeoutError=uOe;function p8o(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})}ete.callWithTimeout=p8o});var TVr=E(tte=>{"use strict";Object.defineProperty(tte,"__esModule",{value:!0});tte.isUrlIgnored=tte.urlMatches=void 0;function CVr(t,e){return typeof e=="string"?t===e:!!t.match(e)}tte.urlMatches=CVr;function h8o(t,e){if(!e)return!1;for(let r of e)if(CVr(t,r))return!0;return!1}tte.isUrlIgnored=h8o});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 m8o=wVr(),jTt=class{_callback;_that;_isCalled=!1;_deferred=new m8o.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 nO=(ut(),nt(xt)),DVr={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 g8o(t){if(t==null)return;let e=DVr[t.toUpperCase()];return e??(nO.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(DVr)}, using default`),nO.DiagLogLevel.INFO)}pOe.diagLogLevelFromString=g8o});var NVr=E(hOe=>{"use strict";Object.defineProperty(hOe,"__esModule",{value:!0});hOe._export=void 0;var RVr=(ut(),nt(xt)),y8o=t2e();function A8o(t,e){return new Promise(r=>{RVr.context.with((0,y8o.suppressTracing)(RVr.context.active()),()=>{t.export(e,o=>{r(o)})})})}hOe._export=A8o});var o2e=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 v8o=PHr();Object.defineProperty(an,"W3CBaggagePropagator",{enumerable:!0,get:function(){return v8o.W3CBaggagePropagator}});var b8o=kHr();Object.defineProperty(an,"AnchoredClock",{enumerable:!0,get:function(){return b8o.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 kVr=qHr();Object.defineProperty(an,"globalErrorHandler",{enumerable:!0,get:function(){return kVr.globalErrorHandler}});Object.defineProperty(an,"setGlobalErrorHandler",{enumerable:!0,get:function(){return kVr.setGlobalErrorHandler}});var E8o=NTt();Object.defineProperty(an,"loggingErrorHandler",{enumerable:!0,get:function(){return E8o.loggingErrorHandler}});var Wx=rVr();Object.defineProperty(an,"addHrTimes",{enumerable:!0,get:function(){return Wx.addHrTimes}});Object.defineProperty(an,"getTimeOrigin",{enumerable:!0,get:function(){return Wx.getTimeOrigin}});Object.defineProperty(an,"hrTime",{enumerable:!0,get:function(){return Wx.hrTime}});Object.defineProperty(an,"hrTimeDuration",{enumerable:!0,get:function(){return Wx.hrTimeDuration}});Object.defineProperty(an,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Wx.hrTimeToMicroseconds}});Object.defineProperty(an,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Wx.hrTimeToMilliseconds}});Object.defineProperty(an,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Wx.hrTimeToNanoseconds}});Object.defineProperty(an,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Wx.hrTimeToTimeStamp}});Object.defineProperty(an,"isTimeInput",{enumerable:!0,get:function(){return Wx.isTimeInput}});Object.defineProperty(an,"isTimeInputHrTime",{enumerable:!0,get:function(){return Wx.isTimeInputHrTime}});Object.defineProperty(an,"millisToHrTime",{enumerable:!0,get:function(){return Wx.millisToHrTime}});Object.defineProperty(an,"timeInputToHrTime",{enumerable:!0,get:function(){return Wx.timeInputToHrTime}});var S8o=nVr();Object.defineProperty(an,"ExportResultCode",{enumerable:!0,get:function(){return S8o.ExportResultCode}});var x8o=wTt();Object.defineProperty(an,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return x8o.parseKeyPairsIntoRecord}});var mB=PTt();Object.defineProperty(an,"SDK_INFO",{enumerable:!0,get:function(){return mB.SDK_INFO}});Object.defineProperty(an,"_globalThis",{enumerable:!0,get:function(){return mB._globalThis}});Object.defineProperty(an,"getStringFromEnv",{enumerable:!0,get:function(){return mB.getStringFromEnv}});Object.defineProperty(an,"getBooleanFromEnv",{enumerable:!0,get:function(){return mB.getBooleanFromEnv}});Object.defineProperty(an,"getNumberFromEnv",{enumerable:!0,get:function(){return mB.getNumberFromEnv}});Object.defineProperty(an,"getStringListFromEnv",{enumerable:!0,get:function(){return mB.getStringListFromEnv}});Object.defineProperty(an,"otperformance",{enumerable:!0,get:function(){return mB.otperformance}});Object.defineProperty(an,"unrefTimer",{enumerable:!0,get:function(){return mB.unrefTimer}});var _8o=oVr();Object.defineProperty(an,"CompositePropagator",{enumerable:!0,get:function(){return _8o.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=t2e();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 C8o=QTt();Object.defineProperty(an,"TraceState",{enumerable:!0,get:function(){return C8o.TraceState}});var T8o=xVr();Object.defineProperty(an,"merge",{enumerable:!0,get:function(){return T8o.merge}});var BVr=_Vr();Object.defineProperty(an,"TimeoutError",{enumerable:!0,get:function(){return BVr.TimeoutError}});Object.defineProperty(an,"callWithTimeout",{enumerable:!0,get:function(){return BVr.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 w8o=IVr();Object.defineProperty(an,"BindOnceFuture",{enumerable:!0,get:function(){return w8o.BindOnceFuture}});var I8o=OVr();Object.defineProperty(an,"diagLogLevelFromString",{enumerable:!0,get:function(){return I8o.diagLogLevelFromString}});var D8o=NVr();an.internal={_export:D8o._export}});function O8o(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function LVr(){return{handleResponse(t){t==null||!O8o(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 gB,WTt,zTt=j(()=>{gB=we(o2e());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:gB.ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});return}let o=this._serializer.serializeRequest(e);if(o==null){r({code:gB.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:gB.ExportResultCode.SUCCESS});return}else if(s.status==="failure"&&s.error){r({code:gB.ExportResultCode.FAILED,error:s.error});return}else s.status==="retryable"?r({code:gB.ExportResultCode.FAILED,error:new rO("Export failed with retryable status")}):r({code:gB.ExportResultCode.FAILED,error:new rO("Export failed with unknown error")})},s=>r({code:gB.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:()=>rO,createOtlpNetworkExportDelegate:()=>FVr,getSharedConfigurationDefaults:()=>H7e,mergeOtlpSharedConfigurationWithDefaults:()=>q7e});var HVr=j(()=>{OHr();F7e();e2e();RHr();QVr()});var KTt=E((yqc,VVr)=>{"use strict";VVr.exports=R8o;function R8o(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 rte=new Array(64),jVr=new Array(123);for(V4=0;V4<64;)jVr[rte[V4]=V4<26?V4+65:V4<52?V4+71:V4<62?V4-4:V4-59|43]=V4++;var V4;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++]=rte[u>>2],c=(u&3)<<4,n=1;break;case 1:a[i++]=rte[c|u>>4],c=(u&15)<<2,n=2;break;case 2:a[i++]=rte[c|u>>6],a[i++]=rte[u&63],n=0;break}i>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,a)),i=0)}return n&&(a[i++]=rte[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((vqc,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((bqc,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((Sqc,oGr)=>{"use strict";oGr.exports=N8o;function N8o(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((xqc,aGr)=>{"use strict";aGr.exports=i0;var s2e=K5();function i0(t,e){this.lo=t>>>0,this.hi=e>>>0}var iV=i0.zero=new i0(0,0);iV.toNumber=function(){return 0};iV.zzEncode=iV.zzDecode=function(){return this};iV.length=function(){return 1};var P8o=i0.zeroHash="\0\0\0\0\0\0\0\0";i0.fromNumber=function(e){if(e===0)return iV;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(s2e.isString(e))if(s2e.Long)e=s2e.Long.fromString(e);else return i0.fromNumber(parseInt(e,10));return e.low||e.high?new i0(e.low>>>0,e.high>>>0):iV};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 s2e.Long?new s2e.Long(this.lo|0,this.hi|0,!!e):{low:this.lo|0,high:this.hi|0,unsigned:!!e}};var yB=String.prototype.charCodeAt;i0.fromHash=function(e){return e===P8o?iV:new i0((yB.call(e,0)|yB.call(e,1)<<8|yB.call(e,2)<<16|yB.call(e,3)<<24)>>>0,(yB.call(e,4)|yB.call(e,5)<<8|yB.call(e,6)<<16|yB.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 K5=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((Cqc,hGr)=>{"use strict";hGr.exports=dl;var zx=K5(),ZTt,bOe=zx.LongBits,fGr=zx.base64,dGr=zx.utf8;function a2e(t,e,r){this.fn=t,this.len=e,this.next=void 0,this.val=r}function t4t(){}function k8o(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 a2e(t4t,0,0),this.tail=this.head,this.states=null}var pGr=function(){return zx.Buffer?function(){return(dl.create=function(){return new ZTt})()}:function(){return new dl}};dl.create=pGr();dl.alloc=function(e){return new zx.Array(e)};zx.Array!==Array&&(dl.alloc=zx.pool(dl.alloc,zx.Array.prototype.subarray));dl.prototype._push=function(e,r,o){return this.tail=this.tail.next=new a2e(e,r,o),this.len+=r,this};function r4t(t,e,r){e[r]=t&255}function B8o(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(a2e.prototype);n4t.prototype.fn=B8o;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(zx.float.writeFloatLE,4,e)};dl.prototype.double=function(e){return this._push(zx.float.writeDoubleLE,8,e)};var M8o=zx.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(zx.isString(e)){var o=dl.alloc(r=fGr.length(e));fGr.decode(e,o,0),e=o}return this.uint32(r)._push(M8o,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 k8o(this),this.head=this.tail=new a2e(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 a2e(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((Tqc,gGr)=>{"use strict";gGr.exports=Y5;var mGr=EOe();(Y5.prototype=Object.create(mGr.prototype)).constructor=Y5;var AB=K5();function Y5(){mGr.call(this)}Y5._configure=function(){Y5.alloc=AB._Buffer_allocUnsafe,Y5.writeBytesBuffer=AB.Buffer&&AB.Buffer.prototype instanceof Uint8Array&&AB.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++]}};Y5.prototype.bytes=function(e){AB.isString(e)&&(e=AB._Buffer_from(e,"base64"));var r=e.length>>>0;return this.uint32(r),r&&this._push(Y5.writeBytesBuffer,r,e),this};function L8o(t,e,r){t.length<40?AB.utf8.write(t,e,r):e.utf8Write?e.utf8Write(t,r):e.write(t,r)}Y5.prototype.string=function(e){var r=AB.Buffer.byteLength(e);return this.uint32(r),r&&this._push(L8o,r,e),this};Y5._configure()});var xOe=E((wqc,SGr)=>{"use strict";SGr.exports=kh;var G4=K5(),s4t,bGr=G4.LongBits,U8o=G4.utf8;function j4(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function kh(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 kh(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new kh(e);throw Error("illegal buffer")},EGr=function(){return G4.Buffer?function(r){return(kh.create=function(s){return G4.Buffer.isBuffer(s)?new s4t(s):AGr(s)})(r)}:AGr};kh.create=EGr();kh.prototype._slice=G4.Array.prototype.subarray||G4.Array.prototype.slice;kh.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,j4(this,10);return e}})();kh.prototype.int32=function(){return this.uint32()|0};kh.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 j4(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 j4(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")}kh.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}kh.prototype.fixed32=function(){if(this.pos+4>this.len)throw j4(this,4);return SOe(this.buf,this.pos+=4)};kh.prototype.sfixed32=function(){if(this.pos+4>this.len)throw j4(this,4);return SOe(this.buf,this.pos+=4)|0};function vGr(){if(this.pos+8>this.len)throw j4(this,8);return new bGr(SOe(this.buf,this.pos+=4),SOe(this.buf,this.pos+=4))}kh.prototype.float=function(){if(this.pos+4>this.len)throw j4(this,4);var e=G4.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};kh.prototype.double=function(){if(this.pos+8>this.len)throw j4(this,4);var e=G4.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};kh.prototype.bytes=function(){var e=this.uint32(),r=this.pos,o=this.pos+e;if(o>this.len)throw j4(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(r,o);if(r===o){var s=G4.Buffer;return s?s.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,r,o)};kh.prototype.string=function(){var e=this.bytes();return U8o.read(e,0,e.length)};kh.prototype.skip=function(e){if(typeof e=="number"){if(this.pos+e>this.len)throw j4(this,e);this.pos+=e}else do if(this.pos>=this.len)throw j4(this);while(this.buf[this.pos++]&128);return this};kh.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};kh._configure=function(t){s4t=t,kh.create=EGr(),s4t._configure();var e=G4.Long?"toLong":"toNumber";G4.merge(kh.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((Iqc,CGr)=>{"use strict";CGr.exports=oV;var _Gr=xOe();(oV.prototype=Object.create(_Gr.prototype)).constructor=oV;var xGr=K5();function oV(t){_Gr.call(this,t)}oV._configure=function(){xGr.Buffer&&(oV.prototype._slice=xGr.Buffer.prototype.slice)};oV.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))};oV._configure()});var IGr=E((Dqc,wGr)=>{"use strict";wGr.exports=c2e;var a4t=K5();(c2e.prototype=Object.create(a4t.EventEmitter.prototype)).constructor=c2e;function c2e(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}c2e.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}};c2e.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 F8o=DGr;F8o.Service=IGr()});var l4t=E((Rqc,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=K5();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 J5=E((Pqc,PGr)=>{"use strict";PGr.exports=u4t()});var _Oe=E((kGr,BGr)=>{"use strict";Object.defineProperty(kGr,"__esModule",{value:!0});var Mo=J5(),Kt=Mo.Reader,sa=Mo.Writer,$e=Mo.util,Be=Mo.roots.default||(Mo.roots.default={});Be.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")&&Be.opentelemetry.proto.common.v1.ArrayValue.encode(n.arrayValue,c.uint32(42).fork()).ldelim(),n.kvlistValue!=null&&Object.hasOwnProperty.call(n,"kvlistValue")&&Be.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 Be.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=Be.opentelemetry.proto.common.v1.ArrayValue.decode(n,n.uint32());break}case 6:{d.kvlistValue=Be.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=Be.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=Be.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 Be.opentelemetry.proto.common.v1.AnyValue)return n;var c=new Be.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=Be.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=Be.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=Be.opentelemetry.proto.common.v1.ArrayValue.toObject(n.arrayValue,c),c.oneofs&&(u.value="arrayValue")),n.kvlistValue!=null&&n.hasOwnProperty("kvlistValue")&&(u.kvlistValue=Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.common.v1.AnyValue.verify(i.values[n]);if(c)return"values."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.common.v1.ArrayValue)return i;var n=new Be.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]=Be.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]=Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.common.v1.KeyValue.verify(i.values[n]);if(c)return"values."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.common.v1.KeyValueList)return i;var n=new Be.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]=Be.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]=Be.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")&&Be.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 Be.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=Be.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=Be.opentelemetry.proto.common.v1.AnyValue.verify(i.value);if(n)return"value."+n}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.common.v1.KeyValue)return i;var n=new Be.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=Be.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=Be.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)Be.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 Be.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(Be.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=Be.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 Be.opentelemetry.proto.common.v1.InstrumentationScope)return i;var n=new Be.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]=Be.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]=Be.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 Be.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 Be.opentelemetry.proto.common.v1.EntityRef)return i;var n=new Be.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)Be.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)Be.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 Be.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(Be.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(Be.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=Be.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=Be.opentelemetry.proto.common.v1.EntityRef.verify(i.entityRefs[n]);if(c)return"entityRefs."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.resource.v1.Resource)return i;var n=new Be.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]=Be.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]=Be.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]=Be.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]=Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.trace.v1.ResourceSpans.verify(i.resourceSpans[n]);if(c)return"resourceSpans."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.trace.v1.TracesData)return i;var n=new Be.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]=Be.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]=Be.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")&&Be.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)Be.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 Be.opentelemetry.proto.trace.v1.ResourceSpans;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resource=Be.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{f.scopeSpans&&f.scopeSpans.length||(f.scopeSpans=[]),f.scopeSpans.push(Be.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=Be.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=Be.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 Be.opentelemetry.proto.trace.v1.ResourceSpans)return i;var n=new Be.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=Be.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]=Be.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=Be.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]=Be.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")&&Be.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)Be.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 Be.opentelemetry.proto.trace.v1.ScopeSpans;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{f.spans&&f.spans.length||(f.spans=[]),f.spans.push(Be.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=Be.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=Be.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 Be.opentelemetry.proto.trace.v1.ScopeSpans)return i;var n=new Be.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=Be.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]=Be.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=Be.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]=Be.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)Be.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)Be.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)Be.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")&&Be.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 Be.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(Be.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(Be.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(Be.opentelemetry.proto.trace.v1.Span.Link.decode(i,i.uint32()));break}case 14:{f.droppedLinksCount=i.uint32();break}case 15:{f.status=Be.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=Be.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=Be.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=Be.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=Be.opentelemetry.proto.trace.v1.Status.verify(i.status);if(c)return"status."+c}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.trace.v1.Span)return i;var n=new Be.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]=Be.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]=Be.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]=Be.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=Be.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?Be.opentelemetry.proto.trace.v1.Span.SpanKind[i.kind]===void 0?i.kind:Be.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]=Be.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]=Be.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]=Be.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=Be.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)Be.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 Be.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(Be.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=Be.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 Be.opentelemetry.proto.trace.v1.Span.Event)return n;var c=new Be.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]=Be.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]=Be.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)Be.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 Be.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(Be.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=Be.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 Be.opentelemetry.proto.trace.v1.Span.Link)return n;var c=new Be.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]=Be.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]=Be.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 Be.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 Be.opentelemetry.proto.trace.v1.Status)return i;var n=new Be.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?Be.opentelemetry.proto.trace.v1.Status.StatusCode[i.code]===void 0?i.code:Be.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,Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.trace.v1.ResourceSpans.verify(n.resourceSpans[c]);if(u)return"resourceSpans."+u}}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return n;var c=new Be.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]=Be.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]=Be.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")&&Be.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 Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.partialSuccess=Be.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=Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(n.partialSuccess);if(c)return"partialSuccess."+c}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return n;var c=new Be.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=Be.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=Be.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 Be.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 Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return n;var c=new Be.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,Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(n.resourceMetrics[c]);if(u)return"resourceMetrics."+u}}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return n;var c=new Be.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]=Be.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]=Be.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")&&Be.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 Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.partialSuccess=Be.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=Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(n.partialSuccess);if(c)return"partialSuccess."+c}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return n;var c=new Be.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=Be.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=Be.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 Be.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 Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return n;var c=new Be.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,Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.logs.v1.ResourceLogs.verify(n.resourceLogs[c]);if(u)return"resourceLogs."+u}}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return n;var c=new Be.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]=Be.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]=Be.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")&&Be.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 Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.partialSuccess=Be.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=Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(n.partialSuccess);if(c)return"partialSuccess."+c}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return n;var c=new Be.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=Be.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=Be.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 Be.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 Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return n;var c=new Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(i.resourceMetrics[n]);if(c)return"resourceMetrics."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.MetricsData)return i;var n=new Be.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]=Be.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]=Be.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")&&Be.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)Be.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 Be.opentelemetry.proto.metrics.v1.ResourceMetrics;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resource=Be.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{f.scopeMetrics&&f.scopeMetrics.length||(f.scopeMetrics=[]),f.scopeMetrics.push(Be.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=Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.ResourceMetrics)return i;var n=new Be.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=Be.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]=Be.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=Be.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]=Be.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")&&Be.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)Be.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 Be.opentelemetry.proto.metrics.v1.ScopeMetrics;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{f.metrics&&f.metrics.length||(f.metrics=[]),f.metrics.push(Be.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=Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.ScopeMetrics)return i;var n=new Be.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=Be.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]=Be.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=Be.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]=Be.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")&&Be.opentelemetry.proto.metrics.v1.Gauge.encode(n.gauge,c.uint32(42).fork()).ldelim(),n.sum!=null&&Object.hasOwnProperty.call(n,"sum")&&Be.opentelemetry.proto.metrics.v1.Sum.encode(n.sum,c.uint32(58).fork()).ldelim(),n.histogram!=null&&Object.hasOwnProperty.call(n,"histogram")&&Be.opentelemetry.proto.metrics.v1.Histogram.encode(n.histogram,c.uint32(74).fork()).ldelim(),n.exponentialHistogram!=null&&Object.hasOwnProperty.call(n,"exponentialHistogram")&&Be.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(n.exponentialHistogram,c.uint32(82).fork()).ldelim(),n.summary!=null&&Object.hasOwnProperty.call(n,"summary")&&Be.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)Be.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 Be.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=Be.opentelemetry.proto.metrics.v1.Gauge.decode(n,n.uint32());break}case 7:{d.sum=Be.opentelemetry.proto.metrics.v1.Sum.decode(n,n.uint32());break}case 9:{d.histogram=Be.opentelemetry.proto.metrics.v1.Histogram.decode(n,n.uint32());break}case 10:{d.exponentialHistogram=Be.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(n,n.uint32());break}case 11:{d.summary=Be.opentelemetry.proto.metrics.v1.Summary.decode(n,n.uint32());break}case 12:{d.metadata&&d.metadata.length||(d.metadata=[]),d.metadata.push(Be.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=Be.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=Be.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=Be.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=Be.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=Be.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=Be.opentelemetry.proto.common.v1.KeyValue.verify(n.metadata[f]);if(u)return"metadata."+u}}return null},s.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.metrics.v1.Metric)return n;var c=new Be.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=Be.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=Be.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=Be.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=Be.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=Be.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]=Be.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=Be.opentelemetry.proto.metrics.v1.Gauge.toObject(n.gauge,c),c.oneofs&&(u.data="gauge")),n.sum!=null&&n.hasOwnProperty("sum")&&(u.sum=Be.opentelemetry.proto.metrics.v1.Sum.toObject(n.sum,c),c.oneofs&&(u.data="sum")),n.histogram!=null&&n.hasOwnProperty("histogram")&&(u.histogram=Be.opentelemetry.proto.metrics.v1.Histogram.toObject(n.histogram,c),c.oneofs&&(u.data="histogram")),n.exponentialHistogram!=null&&n.hasOwnProperty("exponentialHistogram")&&(u.exponentialHistogram=Be.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(n.exponentialHistogram,c),c.oneofs&&(u.data="exponentialHistogram")),n.summary!=null&&n.hasOwnProperty("summary")&&(u.summary=Be.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]=Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.Gauge)return i;var n=new Be.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]=Be.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]=Be.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)Be.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 Be.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(Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.Sum)return i;var n=new Be.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]=Be.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]=Be.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(i.dataPoints[u],n)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=n.enums===String?Be.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:Be.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)Be.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 Be.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(Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.Histogram)return i;var n=new Be.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]=Be.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]=Be.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(i.dataPoints[u],n)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=n.enums===String?Be.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:Be.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)Be.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 Be.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(Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.ExponentialHistogram)return i;var n=new Be.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]=Be.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]=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(i.dataPoints[u],n)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=n.enums===String?Be.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.Summary)return i;var n=new Be.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]=Be.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]=Be.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)Be.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)Be.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 Be.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(Be.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(Be.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=Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.NumberDataPoint)return n;var c=new Be.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]=Be.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]=Be.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]=Be.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]=Be.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)Be.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)Be.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 Be.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(Be.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(Be.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=Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.HistogramDataPoint)return n;var c=new Be.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]=Be.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]=Be.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]=Be.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]=Be.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)Be.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")&&Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(n.positive,c.uint32(66).fork()).ldelim(),n.negative!=null&&Object.hasOwnProperty.call(n,"negative")&&Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(n,n.uint32());break}case 9:{d.negative=Be.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(Be.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=Be.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=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(n.positive);if(f)return"positive."+f}if(n.negative!=null&&n.hasOwnProperty("negative")){var f=Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return n;var c=new Be.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]=Be.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=Be.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=Be.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]=Be.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]=Be.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=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(n.positive,c)),n.negative!=null&&n.hasOwnProperty("negative")&&(u.negative=Be.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]=Be.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 Be.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 Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return c;var u=new Be.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)Be.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)Be.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 Be.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(Be.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(Be.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=Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.SummaryDataPoint)return i;var n=new Be.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]=Be.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]=Be.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]=Be.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]=Be.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 Be.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 Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return n;var c=new Be.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)Be.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 Be.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(Be.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=Be.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 Be.opentelemetry.proto.metrics.v1.Exemplar)return n;var c=new Be.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]=Be.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]=Be.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)Be.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 Be.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(Be.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=Be.opentelemetry.proto.logs.v1.ResourceLogs.verify(i.resourceLogs[n]);if(c)return"resourceLogs."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.logs.v1.LogsData)return i;var n=new Be.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]=Be.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]=Be.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")&&Be.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)Be.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 Be.opentelemetry.proto.logs.v1.ResourceLogs;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resource=Be.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{f.scopeLogs&&f.scopeLogs.length||(f.scopeLogs=[]),f.scopeLogs.push(Be.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=Be.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=Be.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 Be.opentelemetry.proto.logs.v1.ResourceLogs)return i;var n=new Be.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=Be.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]=Be.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=Be.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]=Be.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")&&Be.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)Be.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 Be.opentelemetry.proto.logs.v1.ScopeLogs;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{f.logRecords&&f.logRecords.length||(f.logRecords=[]),f.logRecords.push(Be.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=Be.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=Be.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 Be.opentelemetry.proto.logs.v1.ScopeLogs)return i;var n=new Be.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=Be.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]=Be.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=Be.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]=Be.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")&&Be.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)Be.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 Be.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=Be.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32());break}case 6:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(Be.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=Be.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=Be.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 Be.opentelemetry.proto.logs.v1.LogRecord)return i;var n=new Be.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=Be.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]=Be.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?Be.opentelemetry.proto.logs.v1.SeverityNumber[i.severityNumber]===void 0?i.severityNumber:Be.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=Be.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]=Be.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})();BGr.exports=Be});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 Q8o(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=Q8o});var TOe=E(Kx=>{"use strict";Object.defineProperty(Kx,"__esModule",{value:!0});Kx.getOtlpEncoder=Kx.encodeAsString=Kx.encodeAsLongBits=Kx.toLongBits=Kx.hrTimeToNanos=void 0;var q8o=o2e(),f4t=LGr();function d4t(t){let e=BigInt(1e9);return BigInt(Math.trunc(t[0]))*e+BigInt(Math.trunc(t[1]))}Kx.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}}Kx.toLongBits=FGr;function p4t(t){let e=d4t(t);return FGr(e)}Kx.encodeAsLongBits=p4t;function QGr(t){return d4t(t).toString()}Kx.encodeAsString=QGr;var H8o=typeof BigInt<"u"?QGr:q8o.hrTimeToNanoseconds;function UGr(t){return t}function qGr(t){if(t!==void 0)return(0,f4t.hexToBinary)(t)}var V8o={encodeHrTime:p4t,encodeSpanContext:f4t.hexToBinary,encodeOptionalSpanContext:qGr};function G8o(t){if(t===void 0)return V8o;let e=t.useLongBits??!0,r=t.useHex??!1;return{encodeHrTime:e?p4t:H8o,encodeSpanContext:r?UGr:f4t.hexToBinary,encodeOptionalSpanContext:r?UGr:qGr}}Kx.getOtlpEncoder=G8o});var wOe=E(Yx=>{"use strict";Object.defineProperty(Yx,"__esModule",{value:!0});Yx.toAnyValue=Yx.toKeyValue=Yx.toAttributes=Yx.createInstrumentationScope=Yx.createResource=void 0;function j8o(t){let e={attributes:HGr(t.attributes),droppedAttributesCount:0},r=t.schemaUrl;return r&&r!==""&&(e.schemaUrl=r),e}Yx.createResource=j8o;function $8o(t){return{name:t.name,version:t.version}}Yx.createInstrumentationScope=$8o;function HGr(t){return Object.keys(t).map(e=>h4t(e,t[e]))}Yx.toAttributes=HGr;function h4t(t,e){return{key:t,value:m4t(e)}}Yx.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))}}:{}}Yx.toAnyValue=m4t});var g4t=E(nte=>{"use strict";Object.defineProperty(nte,"__esModule",{value:!0});nte.toLogAttributes=nte.createExportLogsServiceRequest=void 0;var W8o=TOe(),IOe=wOe();function z8o(t,e){let r=(0,W8o.getOtlpEncoder)(e);return{resourceLogs:Y8o(t,r)}}nte.createExportLogsServiceRequest=z8o;function K8o(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 Y8o(t,e){let r=K8o(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=>J8o(n,e)),schemaUrl:i[0].instrumentationScope.schemaUrl})),schemaUrl:a.schemaUrl}})}function J8o(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]))}nte.toLogAttributes=VGr});var jGr=E(DOe=>{"use strict";Object.defineProperty(DOe,"__esModule",{value:!0});DOe.ProtobufLogsSerializer=void 0;var GGr=_Oe(),X8o=g4t(),Z8o=GGr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,eDo=GGr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;DOe.ProtobufLogsSerializer={serializeRequest:t=>{let e=(0,X8o.createExportLogsServiceRequest)(t);return eDo.encode(e).finish()},deserializeResponse:t=>Z8o.decode(t)}});var $Gr=E(OOe=>{"use strict";Object.defineProperty(OOe,"__esModule",{value:!0});OOe.ProtobufLogsSerializer=void 0;var tDo=jGr();Object.defineProperty(OOe,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return tDo.ProtobufLogsSerializer}})});var ROe=E(l2e=>{"use strict";Object.defineProperty(l2e,"__esModule",{value:!0});l2e.AggregationTemporality=void 0;var rDo;(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE"})(rDo=l2e.AggregationTemporality||(l2e.AggregationTemporality={}))});var bB=E(vB=>{"use strict";Object.defineProperty(vB,"__esModule",{value:!0});vB.DataPointType=vB.InstrumentType=void 0;var nDo;(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"})(nDo=vB.InstrumentType||(vB.InstrumentType={}));var iDo;(function(t){t[t.HISTOGRAM=0]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",t[t.GAUGE=2]="GAUGE",t[t.SUM=3]="SUM"})(iDo=vB.DataPointType||(vB.DataPointType={}))});var $4=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 oDo(t){return t!=null}rp.isNotNullish=oDo;function sDo(t){let e=Object.keys(t);return e.length===0?"":(e=e.sort(),JSON.stringify(e.map(r=>[r,t[r]])))}rp.hashAttributes=sDo;function aDo(t){return`${t.name}:${t.version??""}:${t.schemaUrl??""}`}rp.instrumentationScopeId=aDo;var NOe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};rp.TimeoutError=NOe;function cDo(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=cDo;async function lDo(t){return Promise.all(t.map(async e=>{try{return{status:"fulfilled",value:await e}}catch(r){return{status:"rejected",reason:r}}}))}rp.PromiseAllSettled=lDo;function uDo(t){return t.status==="rejected"}rp.isPromiseAllSettledRejectionResult=uDo;function fDo(t,e){let r=[];return t.forEach(o=>{r.push(...e(o))}),r}rp.FlatMap=fDo;function dDo(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}rp.setEquals=dDo;function pDo(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=pDo;function hDo(t,e){return t.toLowerCase()===e.toLowerCase()}rp.equalsCaseInsensitive=hDo});var ite=E(u2e=>{"use strict";Object.defineProperty(u2e,"__esModule",{value:!0});u2e.AggregatorKind=void 0;var mDo;(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"})(mDo=u2e.AggregatorKind||(u2e.AggregatorKind={}))});var WGr=E(POe=>{"use strict";Object.defineProperty(POe,"__esModule",{value:!0});POe.DropAggregator=void 0;var gDo=ite(),y4t=class{kind=gDo.AggregatorKind.DROP;createAccumulation(){}merge(e,r){}diff(e,r){}toMetricData(e,r,o,s){}};POe.DropAggregator=y4t});var zGr=E(ste=>{"use strict";Object.defineProperty(ste,"__esModule",{value:!0});ste.HistogramAggregator=ste.HistogramAccumulation=void 0;var yDo=ite(),f2e=bB(),ADo=$4();function vDo(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 ote=class{startTime;_boundaries;_recordMinMax;_current;constructor(e,r,o=!0,s=vDo(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,ADo.binarySearchUB)(this._boundaries,e);this._current.buckets.counts[r]+=1}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};ste.HistogramAccumulation=ote;var A4t=class{_boundaries;_recordMinMax;kind=yDo.AggregatorKind.HISTOGRAM;constructor(e,r){this._boundaries=e,this._recordMinMax=r}createAccumulation(e){return new ote(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 ote(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 ote(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:f2e.DataPointType.HISTOGRAM,dataPoints:o.map(([a,i])=>{let n=i.toPointValue(),c=e.type===f2e.InstrumentType.GAUGE||e.type===f2e.InstrumentType.UP_DOWN_COUNTER||e.type===f2e.InstrumentType.OBSERVABLE_GAUGE||e.type===f2e.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}}})}}};ste.HistogramAggregator=A4t});var KGr=E(kOe=>{"use strict";Object.defineProperty(kOe,"__esModule",{value:!0});kOe.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))}};kOe.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 bDo=2146435072,EDo=1048575,E4t=1023;Iv.MIN_NORMAL_EXPONENT=-E4t+1;Iv.MAX_NORMAL_EXPONENT=E4t;Iv.MIN_VALUE=Math.pow(2,-1022);function SDo(t){let e=new DataView(new ArrayBuffer(8));return e.setFloat64(0,t),((e.getUint32(0)&bDo)>>20)-E4t}Iv.getNormalBase2=SDo;function xDo(t){let e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);let r=e.getUint32(0),o=e.getUint32(4);return(r&EDo)*Math.pow(2,32)+o}Iv.getSignificand=xDo});var BOe=E(ate=>{"use strict";Object.defineProperty(ate,"__esModule",{value:!0});ate.nextGreaterSquare=ate.ldexp=void 0;function _Do(t,e){return t===0||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||Number.isNaN(t)?t:t*Math.pow(2,e)}ate.ldexp=_Do;function CDo(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t++,t}ate.nextGreaterSquare=CDo});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 cte=S4t(),TDo=BOe(),YGr=LOe(),_4t=class{_shift;constructor(e){this._shift=-e}mapToIndex(e){if(e<cte.MIN_VALUE)return this._minNormalLowerBoundaryIndex();let r=cte.getNormalBase2(e),o=this._rightShift(cte.getSignificand(e)-1,cte.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 TDo.ldexp(1,e<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let e=cte.MIN_NORMAL_EXPONENT>>this._shift;return this._shift<2&&e--,e}_maxNormalLowerBoundaryIndex(){return cte.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 lte=S4t(),XGr=BOe(),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<=lte.MIN_VALUE)return this._minNormalLowerBoundaryIndex()-1;if(lte.getSignificand(e)===0)return(lte.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 lte.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 lte.MIN_NORMAL_EXPONENT<<this._scale}_maxNormalLowerBoundaryIndex(){return(lte.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 wDo=JGr(),IDo=ejr(),DDo=LOe(),tjr=-10,rjr=20,ODo=Array.from({length:31},(t,e)=>e>10?new IDo.LogarithmMapping(e-10):new wDo.ExponentMapping(e-10));function RDo(t){if(t>rjr||t<tjr)throw new DDo.MappingError(`expected scale >= ${tjr} && <= ${rjr}, got: ${t}`);return ODo[t+10]}QOe.getMapping=RDo});var sjr=E(fte=>{"use strict";Object.defineProperty(fte,"__esModule",{value:!0});fte.ExponentialHistogramAggregator=fte.ExponentialHistogramAccumulation=void 0;var NDo=ite(),d2e=bB(),PDo=(ut(),nt(xt)),ijr=KGr(),ojr=njr(),kDo=BOe(),ute=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}},BDo=20,MDo=160,T4t=2,qOe=class t{startTime;_maxSize;_recordMinMax;_sum;_count;_zeroCount;_min;_max;_positive;_negative;_mapping;constructor(e,r=MDo,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)(BDo)){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&&(PDo.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,kDo.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=ute.combine(this._highLowAtScale(this.positive,this.scale,r),this._highLowAtScale(e.positive,e.scale,r)),s=ute.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 ute(0,-1);let s=r-o;return new ute(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()}};fte.ExponentialHistogramAccumulation=qOe;var w4t=class{_maxSize;_recordMinMax;kind=NDo.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:d2e.DataPointType.EXPONENTIAL_HISTOGRAM,dataPoints:o.map(([a,i])=>{let n=i.toPointValue(),c=e.type===d2e.InstrumentType.GAUGE||e.type===d2e.InstrumentType.UP_DOWN_COUNTER||e.type===d2e.InstrumentType.OBSERVABLE_GAUGE||e.type===d2e.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}}})}}};fte.ExponentialHistogramAggregator=w4t});var p2e=E(EB=>{"use strict";Object.defineProperty(EB,"__esModule",{value:!0});EB.isTracingSuppressed=EB.unsuppressTracing=EB.suppressTracing=void 0;var LDo=(ut(),nt(xt)),I4t=(0,LDo.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function UDo(t){return t.setValue(I4t,!0)}EB.suppressTracing=UDo;function FDo(t){return t.deleteValue(I4t)}EB.unsuppressTracing=FDo;function QDo(t){return t.getValue(I4t)===!0}EB.isTracingSuppressed=QDo});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(X5=>{"use strict";Object.defineProperty(X5,"__esModule",{value:!0});X5.parseKeyPairsIntoRecord=X5.parsePairKeyValue=X5.getKeyPairs=X5.serializeKeyPairs=void 0;var qDo=(ut(),nt(xt)),sV=D4t();function HDo(t){return t.reduce((e,r)=>{let o=`${e}${e!==""?sV.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return o.length>sV.BAGGAGE_MAX_TOTAL_LENGTH?e:o},"")}X5.serializeKeyPairs=HDo;function VDo(t){return t.getAllEntries().map(([e,r])=>{let o=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(o+=sV.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),o})}X5.getKeyPairs=VDo;function ajr(t){let e=t.split(sV.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let o=r.indexOf(sV.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,qDo.baggageEntryMetadataFromString)(e.join(sV.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:a,metadata:i}}X5.parsePairKeyValue=ajr;function GDo(t){let e={};return typeof t=="string"&&t.length>0&&t.split(sV.BAGGAGE_ITEMS_SEPARATOR).forEach(r=>{let o=ajr(r);o!==void 0&&o.value.length>0&&(e[o.key]=o.value)}),e}X5.parseKeyPairsIntoRecord=GDo});var cjr=E(HOe=>{"use strict";Object.defineProperty(HOe,"__esModule",{value:!0});HOe.W3CBaggagePropagator=void 0;var R4t=(ut(),nt(xt)),jDo=p2e(),aV=D4t(),N4t=O4t(),P4t=class{inject(e,r,o){let s=R4t.propagation.getBaggage(e);if(!s||(0,jDo.isTracingSuppressed)(e))return;let a=(0,N4t.getKeyPairs)(s).filter(n=>n.length<=aV.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,aV.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,N4t.serializeKeyPairs)(a);i.length>0&&o.set(r,aV.BAGGAGE_HEADER,i)}extract(e,r,o){let s=o.get(r,aV.BAGGAGE_HEADER),a=Array.isArray(s)?s.join(aV.BAGGAGE_ITEMS_SEPARATOR):s;if(!a)return e;let i={};return a.length===0||(a.split(aV.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[aV.BAGGAGE_HEADER]}};HOe.W3CBaggagePropagator=P4t});var ljr=E(VOe=>{"use strict";Object.defineProperty(VOe,"__esModule",{value:!0});VOe.AnchoredClock=void 0;var k4t=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=k4t});var hjr=E(SB=>{"use strict";Object.defineProperty(SB,"__esModule",{value:!0});SB.isAttributeValue=SB.isAttributeKey=SB.sanitizeAttributes=void 0;var ujr=(ut(),nt(xt));function $Do(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}SB.sanitizeAttributes=$Do;function fjr(t){return typeof t=="string"&&t.length>0}SB.isAttributeKey=fjr;function djr(t){return t==null?!0:Array.isArray(t)?WDo(t):pjr(t)}SB.isAttributeValue=djr;function WDo(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 B4t=E(GOe=>{"use strict";Object.defineProperty(GOe,"__esModule",{value:!0});GOe.loggingErrorHandler=void 0;var zDo=(ut(),nt(xt));function KDo(){return t=>{zDo.diag.error(YDo(t))}}GOe.loggingErrorHandler=KDo;function YDo(t){return typeof t=="string"?t:JSON.stringify(JDo(t))}function JDo(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(dte=>{"use strict";Object.defineProperty(dte,"__esModule",{value:!0});dte.globalErrorHandler=dte.setGlobalErrorHandler=void 0;var XDo=B4t(),mjr=(0,XDo.loggingErrorHandler)();function ZDo(t){mjr=t}dte.setGlobalErrorHandler=ZDo;function e9o(t){try{mjr(t)}catch{}}dte.globalErrorHandler=e9o});var bjr=E(Z5=>{"use strict";Object.defineProperty(Z5,"__esModule",{value:!0});Z5.getStringListFromEnv=Z5.getBooleanFromEnv=Z5.getStringFromEnv=Z5.getNumberFromEnv=void 0;var yjr=(ut(),nt(xt)),Ajr=me("util");function t9o(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}Z5.getNumberFromEnv=t9o;function vjr(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}Z5.getStringFromEnv=vjr;function r9o(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)}Z5.getBooleanFromEnv=r9o;function n9o(t){return vjr(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}Z5.getStringListFromEnv=n9o});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 i9o=me("perf_hooks");$Oe.otperformance=i9o.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 o9o=xjr(),KOe=(Wl(),nt(Uu)),s9o=_jr();YOe.SDK_INFO={[KOe.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[s9o.ATTR_PROCESS_RUNTIME_NAME]:"node",[KOe.ATTR_TELEMETRY_SDK_LANGUAGE]:KOe.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[KOe.ATTR_TELEMETRY_SDK_VERSION]:o9o.VERSION}});var Tjr=E(JOe=>{"use strict";Object.defineProperty(JOe,"__esModule",{value:!0});JOe.unrefTimer=void 0;function a9o(t){t.unref()}JOe.unrefTimer=a9o});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 c9o=Ejr();Object.defineProperty(o0,"_globalThis",{enumerable:!0,get:function(){return c9o._globalThis}});var l9o=Sjr();Object.defineProperty(o0,"otperformance",{enumerable:!0,get:function(){return l9o.otperformance}});var u9o=Cjr();Object.defineProperty(o0,"SDK_INFO",{enumerable:!0,get:function(){return u9o.SDK_INFO}});var f9o=Tjr();Object.defineProperty(o0,"unrefTimer",{enumerable:!0,get:function(){return f9o.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 xB=wjr();Object.defineProperty(s0,"SDK_INFO",{enumerable:!0,get:function(){return xB.SDK_INFO}});Object.defineProperty(s0,"_globalThis",{enumerable:!0,get:function(){return xB._globalThis}});Object.defineProperty(s0,"otperformance",{enumerable:!0,get:function(){return xB.otperformance}});Object.defineProperty(s0,"unrefTimer",{enumerable:!0,get:function(){return xB.unrefTimer}});Object.defineProperty(s0,"getBooleanFromEnv",{enumerable:!0,get:function(){return xB.getBooleanFromEnv}});Object.defineProperty(s0,"getStringFromEnv",{enumerable:!0,get:function(){return xB.getStringFromEnv}});Object.defineProperty(s0,"getNumberFromEnv",{enumerable:!0,get:function(){return xB.getNumberFromEnv}});Object.defineProperty(s0,"getStringListFromEnv",{enumerable:!0,get:function(){return xB.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,d9o=6,p9o=Math.pow(10,d9o),ZOe=Math.pow(10,Ijr);function h2e(t){let e=t/1e3,r=Math.trunc(e),o=Math.round(t%1e3*p9o);return[r,o]}Rf.millisToHrTime=h2e;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=h2e(U4t()),r=h2e(typeof t=="number"?t:L4t.otperformance.now());return Ojr(e,r)}Rf.hrTime=Djr;function h9o(t){if(F4t(t))return t;if(typeof t=="number")return t<U4t()?Djr(t):h2e(t);if(t instanceof Date)return h2e(t.getTime());throw TypeError("Invalid input type")}Rf.timeInputToHrTime=h9o;function m9o(t,e){let r=e[0]-t[0],o=e[1]-t[1];return o<0&&(r-=1,o+=ZOe),[r,o]}Rf.hrTimeDuration=m9o;function g9o(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=g9o;function y9o(t){return t[0]*ZOe+t[1]}Rf.hrTimeToNanoseconds=y9o;function A9o(t){return t[0]*1e3+t[1]/1e6}Rf.hrTimeToMilliseconds=A9o;function v9o(t){return t[0]*1e6+t[1]/1e3}Rf.hrTimeToMicroseconds=v9o;function F4t(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}Rf.isTimeInputHrTime=F4t;function b9o(t){return F4t(t)||typeof t=="number"||t instanceof Date}Rf.isTimeInput=b9o;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(m2e=>{"use strict";Object.defineProperty(m2e,"__esModule",{value:!0});m2e.ExportResultCode=void 0;var E9o;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(E9o=m2e.ExportResultCode||(m2e.ExportResultCode={}))});var kjr=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 Bjr=E(pte=>{"use strict";Object.defineProperty(pte,"__esModule",{value:!0});pte.validateValue=pte.validateKey=void 0;var q4t="[_0-9a-z-*/]",S9o=`[a-z]${q4t}{0,255}`,x9o=`[a-z0-9]${q4t}{0,240}@[a-z]${q4t}{0,13}`,_9o=new RegExp(`^(?:${S9o}|${x9o})$`),C9o=/^[ -~]{0,255}[!-~]$/,T9o=/,|=/;function w9o(t){return _9o.test(t)}pte.validateKey=w9o;function I9o(t){return C9o.test(t)&&!T9o.test(t)}pte.validateValue=I9o});var V4t=E(tRe=>{"use strict";Object.defineProperty(tRe,"__esModule",{value:!0});tRe.TraceState=void 0;var Mjr=Bjr(),Ljr=32,D9o=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>D9o||(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)),O9o=p2e(),R9o=V4t();ty.TRACE_PARENT_HEADER="traceparent";ty.TRACE_STATE_HEADER="tracestate";var N9o="00",P9o="(?!ff)[\\da-f]{2}",k9o="(?![0]{32})[\\da-f]{32}",B9o="(?![0]{16})[\\da-f]{16}",M9o="[\\da-f]{2}",L9o=new RegExp(`^\\s?(${P9o})-(${k9o})-(${B9o})-(${M9o})(-.*)?\\s?$`);function Qjr(t){let e=L9o.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,O9o.isTracingSuppressed)(e)||!(0,rRe.isSpanContextValid)(s))return;let a=`${N9o}-${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 R9o.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(W4=>{"use strict";Object.defineProperty(W4,"__esModule",{value:!0});W4.getRPCMetadata=W4.deleteRPCMetadata=W4.setRPCMetadata=W4.RPCType=void 0;var U9o=(ut(),nt(xt)),j4t=(0,U9o.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),F9o;(function(t){t.HTTP="http"})(F9o=W4.RPCType||(W4.RPCType={}));function Q9o(t,e){return t.setValue(j4t,e)}W4.setRPCMetadata=Q9o;function q9o(t){return t.deleteValue(j4t)}W4.deleteRPCMetadata=q9o;function H9o(t){return t.getValue(j4t)}W4.getRPCMetadata=H9o});var Wjr=E(nRe=>{"use strict";Object.defineProperty(nRe,"__esModule",{value:!0});nRe.isPlainObject=void 0;var V9o="[object Object]",G9o="[object Null]",j9o="[object Undefined]",$9o=Function.prototype,Vjr=$9o.toString,W9o=Vjr.call(Object),z9o=Object.getPrototypeOf,Gjr=Object.prototype,jjr=Gjr.hasOwnProperty,cV=Symbol?Symbol.toStringTag:void 0,$jr=Gjr.toString;function K9o(t){if(!Y9o(t)||J9o(t)!==V9o)return!1;let e=z9o(t);if(e===null)return!0;let r=jjr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Vjr.call(r)===W9o}nRe.isPlainObject=K9o;function Y9o(t){return t!=null&&typeof t=="object"}function J9o(t){return t==null?t===void 0?j9o:G9o:cV&&cV in Object(t)?X9o(t):Z9o(t)}function X9o(t){let e=jjr.call(t,cV),r=t[cV],o=!1;try{t[cV]=void 0,o=!0}catch{}let s=$jr.call(t);return o&&(e?t[cV]=r:delete t[cV]),s}function Z9o(t){return $jr.call(t)}});var Xjr=E(sRe=>{"use strict";Object.defineProperty(sRe,"__esModule",{value:!0});sRe.merge=void 0;var zjr=Wjr(),e7o=20;function t7o(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=Yjr(e,t.shift(),0,r);return e}sRe.merge=t7o;function $4t(t){return oRe(t)?t.slice():t}function Yjr(t,e,r=0,o){let s;if(!(r>e7o)){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(g2e(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(g2e(t))if(g2e(e)){if(!r7o(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(g2e(f)&&g2e(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 g2e(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 r7o(t,e){return!(!(0,zjr.isPlainObject)(t)||!(0,zjr.isPlainObject)(e))}});var Zjr=E(hte=>{"use strict";Object.defineProperty(hte,"__esModule",{value:!0});hte.callWithTimeout=hte.TimeoutError=void 0;var aRe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};hte.TimeoutError=aRe;function n7o(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})}hte.callWithTimeout=n7o});var t$r=E(mte=>{"use strict";Object.defineProperty(mte,"__esModule",{value:!0});mte.isUrlIgnored=mte.urlMatches=void 0;function e$r(t,e){return typeof e=="string"?t===e:!!t.match(e)}mte.urlMatches=e$r;function i7o(t,e){if(!e)return!1;for(let r of e)if(e$r(t,r))return!0;return!1}mte.isUrlIgnored=i7o});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 o7o=r$r(),z4t=class{_callback;_that;_isCalled=!1;_deferred=new o7o.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 iO=(ut(),nt(xt)),i$r={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 s7o(t){if(t==null)return;let e=i$r[t.toUpperCase()];return e??(iO.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(i$r)}, using default`),iO.DiagLogLevel.INFO)}uRe.diagLogLevelFromString=s7o});var a$r=E(fRe=>{"use strict";Object.defineProperty(fRe,"__esModule",{value:!0});fRe._export=void 0;var s$r=(ut(),nt(xt)),a7o=p2e();function c7o(t,e){return new Promise(r=>{s$r.context.with((0,a7o.suppressTracing)(s$r.context.active()),()=>{t.export(e,o=>{r(o)})})})}fRe._export=c7o});var lV=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 l7o=cjr();Object.defineProperty(cn,"W3CBaggagePropagator",{enumerable:!0,get:function(){return l7o.W3CBaggagePropagator}});var u7o=ljr();Object.defineProperty(cn,"AnchoredClock",{enumerable:!0,get:function(){return u7o.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 f7o=B4t();Object.defineProperty(cn,"loggingErrorHandler",{enumerable:!0,get:function(){return f7o.loggingErrorHandler}});var Jx=Rjr();Object.defineProperty(cn,"addHrTimes",{enumerable:!0,get:function(){return Jx.addHrTimes}});Object.defineProperty(cn,"getTimeOrigin",{enumerable:!0,get:function(){return Jx.getTimeOrigin}});Object.defineProperty(cn,"hrTime",{enumerable:!0,get:function(){return Jx.hrTime}});Object.defineProperty(cn,"hrTimeDuration",{enumerable:!0,get:function(){return Jx.hrTimeDuration}});Object.defineProperty(cn,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Jx.hrTimeToMicroseconds}});Object.defineProperty(cn,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Jx.hrTimeToMilliseconds}});Object.defineProperty(cn,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Jx.hrTimeToNanoseconds}});Object.defineProperty(cn,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Jx.hrTimeToTimeStamp}});Object.defineProperty(cn,"isTimeInput",{enumerable:!0,get:function(){return Jx.isTimeInput}});Object.defineProperty(cn,"isTimeInputHrTime",{enumerable:!0,get:function(){return Jx.isTimeInputHrTime}});Object.defineProperty(cn,"millisToHrTime",{enumerable:!0,get:function(){return Jx.millisToHrTime}});Object.defineProperty(cn,"timeInputToHrTime",{enumerable:!0,get:function(){return Jx.timeInputToHrTime}});var d7o=Njr();Object.defineProperty(cn,"ExportResultCode",{enumerable:!0,get:function(){return d7o.ExportResultCode}});var p7o=O4t();Object.defineProperty(cn,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return p7o.parseKeyPairsIntoRecord}});var _B=M4t();Object.defineProperty(cn,"SDK_INFO",{enumerable:!0,get:function(){return _B.SDK_INFO}});Object.defineProperty(cn,"_globalThis",{enumerable:!0,get:function(){return _B._globalThis}});Object.defineProperty(cn,"getStringFromEnv",{enumerable:!0,get:function(){return _B.getStringFromEnv}});Object.defineProperty(cn,"getBooleanFromEnv",{enumerable:!0,get:function(){return _B.getBooleanFromEnv}});Object.defineProperty(cn,"getNumberFromEnv",{enumerable:!0,get:function(){return _B.getNumberFromEnv}});Object.defineProperty(cn,"getStringListFromEnv",{enumerable:!0,get:function(){return _B.getStringListFromEnv}});Object.defineProperty(cn,"otperformance",{enumerable:!0,get:function(){return _B.otperformance}});Object.defineProperty(cn,"unrefTimer",{enumerable:!0,get:function(){return _B.unrefTimer}});var h7o=kjr();Object.defineProperty(cn,"CompositePropagator",{enumerable:!0,get:function(){return h7o.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=p2e();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 m7o=V4t();Object.defineProperty(cn,"TraceState",{enumerable:!0,get:function(){return m7o.TraceState}});var g7o=Xjr();Object.defineProperty(cn,"merge",{enumerable:!0,get:function(){return g7o.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 y7o=n$r();Object.defineProperty(cn,"BindOnceFuture",{enumerable:!0,get:function(){return y7o.BindOnceFuture}});var A7o=o$r();Object.defineProperty(cn,"diagLogLevelFromString",{enumerable:!0,get:function(){return A7o.diagLogLevelFromString}});var v7o=a$r();cn.internal={_export:v7o._export}});var d$r=E(yte=>{"use strict";Object.defineProperty(yte,"__esModule",{value:!0});yte.LastValueAggregator=yte.LastValueAccumulation=void 0;var b7o=ite(),y2e=lV(),E7o=bB(),gte=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,y2e.millisToHrTime)(Date.now())}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};yte.LastValueAccumulation=gte;var Y4t=class{kind=b7o.AggregatorKind.LAST_VALUE;createAccumulation(e){return new gte(e)}merge(e,r){let o=(0,y2e.hrTimeToMicroseconds)(r.sampleTime)>=(0,y2e.hrTimeToMicroseconds)(e.sampleTime)?r:e;return new gte(e.startTime,o.toPointValue(),o.sampleTime)}diff(e,r){let o=(0,y2e.hrTimeToMicroseconds)(r.sampleTime)>=(0,y2e.hrTimeToMicroseconds)(e.sampleTime)?r:e;return new gte(r.startTime,o.toPointValue(),o.sampleTime)}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:E7o.DataPointType.GAUGE,dataPoints:o.map(([a,i])=>({attributes:a,startTime:i.startTime,endTime:s,value:i.toPointValue()}))}}};yte.LastValueAggregator=Y4t});var p$r=E(Ate=>{"use strict";Object.defineProperty(Ate,"__esModule",{value:!0});Ate.SumAggregator=Ate.SumAccumulation=void 0;var S7o=ite(),x7o=bB(),CB=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}};Ate.SumAccumulation=CB;var J4t=class{monotonic;kind=S7o.AggregatorKind.SUM;constructor(e){this.monotonic=e}createAccumulation(e){return new CB(e,this.monotonic)}merge(e,r){let o=e.toPointValue(),s=r.toPointValue();return r.reset?new CB(r.startTime,this.monotonic,s,r.reset):new CB(e.startTime,this.monotonic,o+s)}diff(e,r){let o=e.toPointValue(),s=r.toPointValue();return this.monotonic&&o>s?new CB(r.startTime,this.monotonic,s,!0):new CB(r.startTime,this.monotonic,s-o)}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:x7o.DataPointType.SUM,dataPoints:o.map(([a,i])=>({attributes:a,startTime:i.startTime,endTime:s,value:i.toPointValue()})),isMonotonic:this.monotonic}}};Ate.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 _7o=WGr();Object.defineProperty(xm,"DropAggregator",{enumerable:!0,get:function(){return _7o.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 C7o=(ut(),nt(xt)),uV=A$r(),eI=bB(),hRe=class t{static DEFAULT_INSTANCE=new uV.DropAggregator;createAggregator(e){return t.DEFAULT_INSTANCE}};Dl.DropAggregation=hRe;var mRe=class t{static MONOTONIC_INSTANCE=new uV.SumAggregator(!0);static NON_MONOTONIC_INSTANCE=new uV.SumAggregator(!1);createAggregator(e){switch(e.type){case eI.InstrumentType.COUNTER:case eI.InstrumentType.OBSERVABLE_COUNTER:case eI.InstrumentType.HISTOGRAM:return t.MONOTONIC_INSTANCE;default:return t.NON_MONOTONIC_INSTANCE}}};Dl.SumAggregation=mRe;var gRe=class t{static DEFAULT_INSTANCE=new uV.LastValueAggregator;createAggregator(e){return t.DEFAULT_INSTANCE}};Dl.LastValueAggregation=gRe;var yRe=class t{static DEFAULT_INSTANCE=new uV.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 uV.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 uV.ExponentialHistogramAggregator(this._maxSize,this._recordMinMax)}};Dl.ExponentialHistogramAggregation=vRe;var bRe=class{_resolve(e){switch(e.type){case eI.InstrumentType.COUNTER:case eI.InstrumentType.UP_DOWN_COUNTER:case eI.InstrumentType.OBSERVABLE_COUNTER:case eI.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return Dl.SUM_AGGREGATION;case eI.InstrumentType.GAUGE:case eI.InstrumentType.OBSERVABLE_GAUGE:return Dl.LAST_VALUE_AGGREGATION;case eI.InstrumentType.HISTOGRAM:return e.advice.explicitBucketBoundaries?new ARe(e.advice.explicitBucketBoundaries):Dl.HISTOGRAM_AGGREGATION}return C7o.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 A2e=E(pV=>{"use strict";Object.defineProperty(pV,"__esModule",{value:!0});pV.toAggregation=pV.AggregationType=void 0;var fV=v$r(),dV;(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"})(dV=pV.AggregationType||(pV.AggregationType={}));function T7o(t){switch(t.type){case dV.DEFAULT:return fV.DEFAULT_AGGREGATION;case dV.DROP:return fV.DROP_AGGREGATION;case dV.SUM:return fV.SUM_AGGREGATION;case dV.LAST_VALUE:return fV.LAST_VALUE_AGGREGATION;case dV.EXPONENTIAL_HISTOGRAM:{let e=t;return new fV.ExponentialHistogramAggregation(e.options?.maxSize,e.options?.recordMinMax)}case dV.EXPLICIT_BUCKET_HISTOGRAM:{let e=t;return e.options==null?fV.HISTOGRAM_AGGREGATION:new fV.ExplicitBucketHistogramAggregation(e.options?.boundaries,e.options?.recordMinMax)}default:throw new Error("Unsupported Aggregation")}}pV.toAggregation=T7o});var X4t=E(vte=>{"use strict";Object.defineProperty(vte,"__esModule",{value:!0});vte.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=vte.DEFAULT_AGGREGATION_SELECTOR=void 0;var w7o=ROe(),I7o=A2e(),D7o=t=>({type:I7o.AggregationType.DEFAULT});vte.DEFAULT_AGGREGATION_SELECTOR=D7o;var O7o=t=>w7o.AggregationTemporality.CUMULATIVE;vte.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=O7o});var e6t=E(SRe=>{"use strict";Object.defineProperty(SRe,"__esModule",{value:!0});SRe.MetricReader=void 0;var b$r=(ut(),nt(xt)),ERe=$4(),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)),v2e=lV(),R7o=e6t(),S$r=$4(),r6t=class extends R7o.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,v2e.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,v2e.globalErrorHandler)(s)}if(e.scopeMetrics.length===0)return;let o=await v2e.internal._export(this._exporter,e);if(o.code!==v2e.ExportResultCode.SUCCESS)throw new Error(`PeriodicExportingMetricReader: metrics export failed (error ${o.error})`)}onInitialized(){this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),(0,v2e.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=lV(),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=lV(),N7o=X4t(),i6t=class t{_shutdown=!1;_temporalitySelector;constructor(e){this._temporalitySelector=e?.temporalitySelector??N7o.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 b2e=E(TB=>{"use strict";Object.defineProperty(TB,"__esModule",{value:!0});TB.isTracingSuppressed=TB.unsuppressTracing=TB.suppressTracing=void 0;var P7o=(ut(),nt(xt)),o6t=(0,P7o.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function k7o(t){return t.setValue(o6t,!0)}TB.suppressTracing=k7o;function B7o(t){return t.deleteValue(o6t)}TB.unsuppressTracing=B7o;function M7o(t){return t.getValue(o6t)===!0}TB.isTracingSuppressed=M7o});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(tI=>{"use strict";Object.defineProperty(tI,"__esModule",{value:!0});tI.parseKeyPairsIntoRecord=tI.parsePairKeyValue=tI.getKeyPairs=tI.serializeKeyPairs=void 0;var L7o=(ut(),nt(xt)),hV=s6t();function U7o(t){return t.reduce((e,r)=>{let o=`${e}${e!==""?hV.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return o.length>hV.BAGGAGE_MAX_TOTAL_LENGTH?e:o},"")}tI.serializeKeyPairs=U7o;function F7o(t){return t.getAllEntries().map(([e,r])=>{let o=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(o+=hV.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),o})}tI.getKeyPairs=F7o;function I$r(t){let e=t.split(hV.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let o=r.indexOf(hV.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,L7o.baggageEntryMetadataFromString)(e.join(hV.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:a,metadata:i}}tI.parsePairKeyValue=I$r;function Q7o(t){let e={};return typeof t=="string"&&t.length>0&&t.split(hV.BAGGAGE_ITEMS_SEPARATOR).forEach(r=>{let o=I$r(r);o!==void 0&&o.value.length>0&&(e[o.key]=o.value)}),e}tI.parseKeyPairsIntoRecord=Q7o});var D$r=E(TRe=>{"use strict";Object.defineProperty(TRe,"__esModule",{value:!0});TRe.W3CBaggagePropagator=void 0;var c6t=(ut(),nt(xt)),q7o=b2e(),mV=s6t(),l6t=a6t(),u6t=class{inject(e,r,o){let s=c6t.propagation.getBaggage(e);if(!s||(0,q7o.isTracingSuppressed)(e))return;let a=(0,l6t.getKeyPairs)(s).filter(n=>n.length<=mV.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,mV.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,l6t.serializeKeyPairs)(a);i.length>0&&o.set(r,mV.BAGGAGE_HEADER,i)}extract(e,r,o){let s=o.get(r,mV.BAGGAGE_HEADER),a=Array.isArray(s)?s.join(mV.BAGGAGE_ITEMS_SEPARATOR):s;if(!a)return e;let i={};return a.length===0||(a.split(mV.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[mV.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 B$r=E(wB=>{"use strict";Object.defineProperty(wB,"__esModule",{value:!0});wB.isAttributeValue=wB.isAttributeKey=wB.sanitizeAttributes=void 0;var R$r=(ut(),nt(xt));function H7o(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}wB.sanitizeAttributes=H7o;function N$r(t){return typeof t=="string"&&t.length>0}wB.isAttributeKey=N$r;function P$r(t){return t==null?!0:Array.isArray(t)?V7o(t):k$r(t)}wB.isAttributeValue=P$r;function V7o(t){let e;for(let r of t)if(r!=null){if(!e){if(k$r(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function k$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 G7o=(ut(),nt(xt));function j7o(){return t=>{G7o.diag.error($7o(t))}}IRe.loggingErrorHandler=j7o;function $7o(t){return typeof t=="string"?t:JSON.stringify(W7o(t))}function W7o(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(bte=>{"use strict";Object.defineProperty(bte,"__esModule",{value:!0});bte.globalErrorHandler=bte.setGlobalErrorHandler=void 0;var z7o=d6t(),M$r=(0,z7o.loggingErrorHandler)();function K7o(t){M$r=t}bte.setGlobalErrorHandler=K7o;function Y7o(t){try{M$r(t)}catch{}}bte.globalErrorHandler=Y7o});var q$r=E(rI=>{"use strict";Object.defineProperty(rI,"__esModule",{value:!0});rI.getStringListFromEnv=rI.getBooleanFromEnv=rI.getStringFromEnv=rI.getNumberFromEnv=void 0;var U$r=(ut(),nt(xt)),F$r=me("util");function J7o(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}rI.getNumberFromEnv=J7o;function Q$r(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}rI.getStringFromEnv=Q$r;function X7o(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)}rI.getBooleanFromEnv=X7o;function Z7o(t){return Q$r(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}rI.getStringListFromEnv=Z7o});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 eOo=me("perf_hooks");ORe.otperformance=eOo.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(kRe=>{"use strict";Object.defineProperty(kRe,"__esModule",{value:!0});kRe.SDK_INFO=void 0;var tOo=G$r(),PRe=(Wl(),nt(Uu)),rOo=j$r();kRe.SDK_INFO={[PRe.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[rOo.ATTR_PROCESS_RUNTIME_NAME]:"node",[PRe.ATTR_TELEMETRY_SDK_LANGUAGE]:PRe.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[PRe.ATTR_TELEMETRY_SDK_VERSION]:tOo.VERSION}});var W$r=E(BRe=>{"use strict";Object.defineProperty(BRe,"__esModule",{value:!0});BRe.unrefTimer=void 0;function nOo(t){t.unref()}BRe.unrefTimer=nOo});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 iOo=H$r();Object.defineProperty(a0,"_globalThis",{enumerable:!0,get:function(){return iOo._globalThis}});var oOo=V$r();Object.defineProperty(a0,"otperformance",{enumerable:!0,get:function(){return oOo.otperformance}});var sOo=$$r();Object.defineProperty(a0,"SDK_INFO",{enumerable:!0,get:function(){return sOo.SDK_INFO}});var aOo=W$r();Object.defineProperty(a0,"unrefTimer",{enumerable:!0,get:function(){return aOo.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 IB=z$r();Object.defineProperty(c0,"SDK_INFO",{enumerable:!0,get:function(){return IB.SDK_INFO}});Object.defineProperty(c0,"_globalThis",{enumerable:!0,get:function(){return IB._globalThis}});Object.defineProperty(c0,"otperformance",{enumerable:!0,get:function(){return IB.otperformance}});Object.defineProperty(c0,"unrefTimer",{enumerable:!0,get:function(){return IB.unrefTimer}});Object.defineProperty(c0,"getBooleanFromEnv",{enumerable:!0,get:function(){return IB.getBooleanFromEnv}});Object.defineProperty(c0,"getStringFromEnv",{enumerable:!0,get:function(){return IB.getStringFromEnv}});Object.defineProperty(c0,"getNumberFromEnv",{enumerable:!0,get:function(){return IB.getNumberFromEnv}});Object.defineProperty(c0,"getStringListFromEnv",{enumerable:!0,get:function(){return IB.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,cOo=6,lOo=Math.pow(10,cOo),LRe=Math.pow(10,K$r);function E2e(t){let e=t/1e3,r=Math.trunc(e),o=Math.round(t%1e3*lOo);return[r,o]}Nf.millisToHrTime=E2e;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=E2e(m6t()),r=E2e(typeof t=="number"?t:h6t.otperformance.now());return J$r(e,r)}Nf.hrTime=Y$r;function uOo(t){if(g6t(t))return t;if(typeof t=="number")return t<m6t()?Y$r(t):E2e(t);if(t instanceof Date)return E2e(t.getTime());throw TypeError("Invalid input type")}Nf.timeInputToHrTime=uOo;function fOo(t,e){let r=e[0]-t[0],o=e[1]-t[1];return o<0&&(r-=1,o+=LRe),[r,o]}Nf.hrTimeDuration=fOo;function dOo(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=dOo;function pOo(t){return t[0]*LRe+t[1]}Nf.hrTimeToNanoseconds=pOo;function hOo(t){return t[0]*1e3+t[1]/1e6}Nf.hrTimeToMilliseconds=hOo;function mOo(t){return t[0]*1e6+t[1]/1e3}Nf.hrTimeToMicroseconds=mOo;function g6t(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}Nf.isTimeInputHrTime=g6t;function gOo(t){return g6t(t)||typeof t=="number"||t instanceof Date}Nf.isTimeInput=gOo;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(S2e=>{"use strict";Object.defineProperty(S2e,"__esModule",{value:!0});S2e.ExportResultCode=void 0;var yOo;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(yOo=S2e.ExportResultCode||(S2e.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(Ete=>{"use strict";Object.defineProperty(Ete,"__esModule",{value:!0});Ete.validateValue=Ete.validateKey=void 0;var A6t="[_0-9a-z-*/]",AOo=`[a-z]${A6t}{0,255}`,vOo=`[a-z0-9]${A6t}{0,240}@[a-z]${A6t}{0,13}`,bOo=new RegExp(`^(?:${AOo}|${vOo})$`),EOo=/^[ -~]{0,255}[!-~]$/,SOo=/,|=/;function xOo(t){return bOo.test(t)}Ete.validateKey=xOo;function _Oo(t){return EOo.test(t)&&!SOo.test(t)}Ete.validateValue=_Oo});var b6t=E(FRe=>{"use strict";Object.defineProperty(FRe,"__esModule",{value:!0});FRe.TraceState=void 0;var nWr=rWr(),iWr=32,COo=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>COo||(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)),TOo=b2e(),wOo=b6t();ny.TRACE_PARENT_HEADER="traceparent";ny.TRACE_STATE_HEADER="tracestate";var IOo="00",DOo="(?!ff)[\\da-f]{2}",OOo="(?![0]{32})[\\da-f]{32}",ROo="(?![0]{16})[\\da-f]{16}",NOo="[\\da-f]{2}",POo=new RegExp(`^\\s?(${DOo})-(${OOo})-(${ROo})-(${NOo})(-.*)?\\s?$`);function aWr(t){let e=POo.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,TOo.isTracingSuppressed)(e)||!(0,QRe.isSpanContextValid)(s))return;let a=`${IOo}-${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 wOo.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(z4=>{"use strict";Object.defineProperty(z4,"__esModule",{value:!0});z4.getRPCMetadata=z4.deleteRPCMetadata=z4.setRPCMetadata=z4.RPCType=void 0;var kOo=(ut(),nt(xt)),S6t=(0,kOo.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),BOo;(function(t){t.HTTP="http"})(BOo=z4.RPCType||(z4.RPCType={}));function MOo(t,e){return t.setValue(S6t,e)}z4.setRPCMetadata=MOo;function LOo(t){return t.deleteValue(S6t)}z4.deleteRPCMetadata=LOo;function UOo(t){return t.getValue(S6t)}z4.getRPCMetadata=UOo});var hWr=E(qRe=>{"use strict";Object.defineProperty(qRe,"__esModule",{value:!0});qRe.isPlainObject=void 0;var FOo="[object Object]",QOo="[object Null]",qOo="[object Undefined]",HOo=Function.prototype,uWr=HOo.toString,VOo=uWr.call(Object),GOo=Object.getPrototypeOf,fWr=Object.prototype,dWr=fWr.hasOwnProperty,gV=Symbol?Symbol.toStringTag:void 0,pWr=fWr.toString;function jOo(t){if(!$Oo(t)||WOo(t)!==FOo)return!1;let e=GOo(t);if(e===null)return!0;let r=dWr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&uWr.call(r)===VOo}qRe.isPlainObject=jOo;function $Oo(t){return t!=null&&typeof t=="object"}function WOo(t){return t==null?t===void 0?qOo:QOo:gV&&gV in Object(t)?zOo(t):KOo(t)}function zOo(t){let e=dWr.call(t,gV),r=t[gV],o=!1;try{t[gV]=void 0,o=!0}catch{}let s=pWr.call(t);return o&&(e?t[gV]=r:delete t[gV]),s}function KOo(t){return pWr.call(t)}});var vWr=E(GRe=>{"use strict";Object.defineProperty(GRe,"__esModule",{value:!0});GRe.merge=void 0;var mWr=hWr(),YOo=20;function JOo(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=yWr(e,t.shift(),0,r);return e}GRe.merge=JOo;function x6t(t){return VRe(t)?t.slice():t}function yWr(t,e,r=0,o){let s;if(!(r>YOo)){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(x2e(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(x2e(t))if(x2e(e)){if(!XOo(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(x2e(f)&&x2e(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 x2e(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 XOo(t,e){return!(!(0,mWr.isPlainObject)(t)||!(0,mWr.isPlainObject)(e))}});var bWr=E(Ste=>{"use strict";Object.defineProperty(Ste,"__esModule",{value:!0});Ste.callWithTimeout=Ste.TimeoutError=void 0;var jRe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};Ste.TimeoutError=jRe;function ZOo(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})}Ste.callWithTimeout=ZOo});var SWr=E(xte=>{"use strict";Object.defineProperty(xte,"__esModule",{value:!0});xte.isUrlIgnored=xte.urlMatches=void 0;function EWr(t,e){return typeof e=="string"?t===e:!!t.match(e)}xte.urlMatches=EWr;function eRo(t,e){if(!e)return!1;for(let r of e)if(EWr(t,r))return!0;return!1}xte.isUrlIgnored=eRo});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 tRo=xWr(),C6t=class{_callback;_that;_isCalled=!1;_deferred=new tRo.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 oO=(ut(),nt(xt)),CWr={ALL:oO.DiagLogLevel.ALL,VERBOSE:oO.DiagLogLevel.VERBOSE,DEBUG:oO.DiagLogLevel.DEBUG,INFO:oO.DiagLogLevel.INFO,WARN:oO.DiagLogLevel.WARN,ERROR:oO.DiagLogLevel.ERROR,NONE:oO.DiagLogLevel.NONE};function rRo(t){if(t==null)return;let e=CWr[t.toUpperCase()];return e??(oO.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(CWr)}, using default`),oO.DiagLogLevel.INFO)}zRe.diagLogLevelFromString=rRo});var IWr=E(KRe=>{"use strict";Object.defineProperty(KRe,"__esModule",{value:!0});KRe._export=void 0;var wWr=(ut(),nt(xt)),nRo=b2e();function iRo(t,e){return new Promise(r=>{wWr.context.with((0,nRo.suppressTracing)(wWr.context.active()),()=>{t.export(e,o=>{r(o)})})})}KRe._export=iRo});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 oRo=D$r();Object.defineProperty(ln,"W3CBaggagePropagator",{enumerable:!0,get:function(){return oRo.W3CBaggagePropagator}});var sRo=O$r();Object.defineProperty(ln,"AnchoredClock",{enumerable:!0,get:function(){return sRo.AnchoredClock}});var DWr=B$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 aRo=d6t();Object.defineProperty(ln,"loggingErrorHandler",{enumerable:!0,get:function(){return aRo.loggingErrorHandler}});var Xx=X$r();Object.defineProperty(ln,"addHrTimes",{enumerable:!0,get:function(){return Xx.addHrTimes}});Object.defineProperty(ln,"getTimeOrigin",{enumerable:!0,get:function(){return Xx.getTimeOrigin}});Object.defineProperty(ln,"hrTime",{enumerable:!0,get:function(){return Xx.hrTime}});Object.defineProperty(ln,"hrTimeDuration",{enumerable:!0,get:function(){return Xx.hrTimeDuration}});Object.defineProperty(ln,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Xx.hrTimeToMicroseconds}});Object.defineProperty(ln,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Xx.hrTimeToMilliseconds}});Object.defineProperty(ln,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Xx.hrTimeToNanoseconds}});Object.defineProperty(ln,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Xx.hrTimeToTimeStamp}});Object.defineProperty(ln,"isTimeInput",{enumerable:!0,get:function(){return Xx.isTimeInput}});Object.defineProperty(ln,"isTimeInputHrTime",{enumerable:!0,get:function(){return Xx.isTimeInputHrTime}});Object.defineProperty(ln,"millisToHrTime",{enumerable:!0,get:function(){return Xx.millisToHrTime}});Object.defineProperty(ln,"timeInputToHrTime",{enumerable:!0,get:function(){return Xx.timeInputToHrTime}});var cRo=Z$r();Object.defineProperty(ln,"ExportResultCode",{enumerable:!0,get:function(){return cRo.ExportResultCode}});var lRo=a6t();Object.defineProperty(ln,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return lRo.parseKeyPairsIntoRecord}});var DB=p6t();Object.defineProperty(ln,"SDK_INFO",{enumerable:!0,get:function(){return DB.SDK_INFO}});Object.defineProperty(ln,"_globalThis",{enumerable:!0,get:function(){return DB._globalThis}});Object.defineProperty(ln,"getStringFromEnv",{enumerable:!0,get:function(){return DB.getStringFromEnv}});Object.defineProperty(ln,"getBooleanFromEnv",{enumerable:!0,get:function(){return DB.getBooleanFromEnv}});Object.defineProperty(ln,"getNumberFromEnv",{enumerable:!0,get:function(){return DB.getNumberFromEnv}});Object.defineProperty(ln,"getStringListFromEnv",{enumerable:!0,get:function(){return DB.getStringListFromEnv}});Object.defineProperty(ln,"otperformance",{enumerable:!0,get:function(){return DB.otperformance}});Object.defineProperty(ln,"unrefTimer",{enumerable:!0,get:function(){return DB.unrefTimer}});var uRo=tWr();Object.defineProperty(ln,"CompositePropagator",{enumerable:!0,get:function(){return uRo.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=b2e();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 fRo=b6t();Object.defineProperty(ln,"TraceState",{enumerable:!0,get:function(){return fRo.TraceState}});var dRo=vWr();Object.defineProperty(ln,"merge",{enumerable:!0,get:function(){return dRo.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 pRo=_Wr();Object.defineProperty(ln,"BindOnceFuture",{enumerable:!0,get:function(){return pRo.BindOnceFuture}});var hRo=TWr();Object.defineProperty(ln,"diagLogLevelFromString",{enumerable:!0,get:function(){return hRo.diagLogLevelFromString}});var mRo=IWr();ln.internal={_export:mRo._export}});var PWr=E(XRe=>{"use strict";Object.defineProperty(XRe,"__esModule",{value:!0});XRe.defaultServiceName=void 0;function gRo(){return`unknown_service:${process.argv0}`}XRe.defaultServiceName=gRo});var kWr=E(ZRe=>{"use strict";Object.defineProperty(ZRe,"__esModule",{value:!0});ZRe.defaultServiceName=void 0;var yRo=PWr();Object.defineProperty(ZRe,"defaultServiceName",{enumerable:!0,get:function(){return yRo.defaultServiceName}})});var I6t=E(eNe=>{"use strict";Object.defineProperty(eNe,"__esModule",{value:!0});eNe.defaultServiceName=void 0;var ARo=kWr();Object.defineProperty(eNe,"defaultServiceName",{enumerable:!0,get:function(){return ARo.defaultServiceName}})});var BWr=E(_te=>{"use strict";Object.defineProperty(_te,"__esModule",{value:!0});_te.identity=_te.isPromiseLike=void 0;var vRo=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";_te.isPromiseLike=vRo;function bRo(t){return t}_te.identity=bRo});var R6t=E(nI=>{"use strict";Object.defineProperty(nI,"__esModule",{value:!0});nI.defaultResource=nI.emptyResource=nI.resourceFromDetectedResource=nI.resourceFromAttributes=void 0;var C2e=(ut(),nt(xt)),D6t=w6t(),yV=(Wl(),nt(Uu)),ERo=I6t(),_2e=BWr(),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,_2e.isPromiseLike)(a)).length>0,o}constructor(e,r){let o=e.attributes??{};this._rawAttributes=Object.entries(o).map(([s,a])=>((0,_2e.isPromiseLike)(a)&&(this._asyncAttributesPending=!0),[s,a])),this._rawAttributes=MWr(this._rawAttributes),this._schemaUrl=CRo(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,_2e.isPromiseLike)(o)?await o:o]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&C2e.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,_2e.isPromiseLike)(o)){C2e.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=TRo(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)}nI.resourceFromAttributes=O6t;function SRo(t,e){return new tNe(t,e)}nI.resourceFromDetectedResource=SRo;function xRo(){return O6t({})}nI.emptyResource=xRo;function _Ro(){return O6t({[yV.ATTR_SERVICE_NAME]:(0,ERo.defaultServiceName)(),[yV.ATTR_TELEMETRY_SDK_LANGUAGE]:D6t.SDK_INFO[yV.ATTR_TELEMETRY_SDK_LANGUAGE],[yV.ATTR_TELEMETRY_SDK_NAME]:D6t.SDK_INFO[yV.ATTR_TELEMETRY_SDK_NAME],[yV.ATTR_TELEMETRY_SDK_VERSION]:D6t.SDK_INFO[yV.ATTR_TELEMETRY_SDK_VERSION]})}nI.defaultResource=_Ro;function MWr(t){return t.map(([e,r])=>(0,_2e.isPromiseLike)(r)?[e,r.catch(o=>{C2e.diag.debug("promise rejection for resource attribute: %s - %s",e,o)})]:[e,r])}function CRo(t){if(typeof t=="string"||t===void 0)return t;C2e.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",t)}function TRo(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;C2e.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(),wRo=(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=wRo});var QWr=E(nNe=>{"use strict";Object.defineProperty(nNe,"__esModule",{value:!0});nNe.envDetector=void 0;var IRo=(ut(),nt(xt)),DRo=(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){IRo.diag.debug(`EnvDetector failed: ${a.message}`)}return s&&(r[DRo.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 T2e=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 ORo=me("child_process"),RRo=me("util");iNe.execAsync=RRo.promisify(ORo.exec)});var qWr=E(sNe=>{"use strict";Object.defineProperty(sNe,"__esModule",{value:!0});sNe.getMachineId=void 0;var NRo=oNe(),PRo=(ut(),nt(xt));async function kRo(){try{let e=(await(0,NRo.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
|
|
782
782
|
`).find(o=>o.includes("IOPlatformUUID"));if(!e)return;let r=e.split('" = "');if(r.length===2)return r[1].slice(0,-1)}catch(t){PRo.diag.debug(`error reading machine id: ${t}`)}}sNe.getMachineId=kRo});var HWr=E(aNe=>{"use strict";Object.defineProperty(aNe,"__esModule",{value:!0});aNe.getMachineId=void 0;var BRo=me("fs"),MRo=(ut(),nt(xt));async function LRo(){let t=["/etc/machine-id","/var/lib/dbus/machine-id"];for(let e of t)try{return(await BRo.promises.readFile(e,{encoding:"utf8"})).trim()}catch(r){MRo.diag.debug(`error reading machine id: ${r}`)}}aNe.getMachineId=LRo});var GWr=E(cNe=>{"use strict";Object.defineProperty(cNe,"__esModule",{value:!0});cNe.getMachineId=void 0;var URo=me("fs"),FRo=oNe(),VWr=(ut(),nt(xt));async function QRo(){try{return(await URo.promises.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(t){VWr.diag.debug(`error reading machine id: ${t}`)}try{return(await(0,FRo.execAsync)("kenv -q smbios.system.uuid")).stdout.trim()}catch(t){VWr.diag.debug(`error reading machine id: ${t}`)}}cNe.getMachineId=QRo});var $Wr=E(lNe=>{"use strict";Object.defineProperty(lNe,"__esModule",{value:!0});lNe.getMachineId=void 0;var jWr=me("process"),qRo=oNe(),HRo=(ut(),nt(xt));async function VRo(){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,qRo.execAsync)(`${e} ${t}`)).stdout.split("REG_SZ");if(o.length===2)return o[1].trim()}catch(r){HRo.diag.debug(`error reading machine id: ${r}`)}}lNe.getMachineId=VRo});var WWr=E(uNe=>{"use strict";Object.defineProperty(uNe,"__esModule",{value:!0});uNe.getMachineId=void 0;var GRo=(ut(),nt(xt));async function jRo(){GRo.diag.debug("could not read machine-id: unsupported platform")}uNe.getMachineId=jRo});var zWr=E(fNe=>{"use strict";Object.defineProperty(fNe,"__esModule",{value:!0});fNe.getMachineId=void 0;var $Ro=me("process"),AV;async function WRo(){if(!AV)switch($Ro.platform){case"darwin":AV=(await Promise.resolve().then(()=>we(qWr()))).getMachineId;break;case"linux":AV=(await Promise.resolve().then(()=>we(HWr()))).getMachineId;break;case"freebsd":AV=(await Promise.resolve().then(()=>we(GWr()))).getMachineId;break;case"win32":AV=(await Promise.resolve().then(()=>we($Wr()))).getMachineId;break;default:AV=(await Promise.resolve().then(()=>we(WWr()))).getMachineId;break}return AV()}fNe.getMachineId=WRo});var k6t=E(Cte=>{"use strict";Object.defineProperty(Cte,"__esModule",{value:!0});Cte.normalizeType=Cte.normalizeArch=void 0;var zRo=t=>{switch(t){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return t}};Cte.normalizeArch=zRo;var KRo=t=>{switch(t){case"sunos":return"solaris";case"win32":return"windows";default:return t}};Cte.normalizeType=KRo});var YWr=E(dNe=>{"use strict";Object.defineProperty(dNe,"__esModule",{value:!0});dNe.hostDetector=void 0;var B6t=T2e(),KWr=me("os"),YRo=zWr(),JRo=k6t(),M6t=class{detect(e){return{attributes:{[B6t.ATTR_HOST_NAME]:(0,KWr.hostname)(),[B6t.ATTR_HOST_ARCH]:(0,JRo.normalizeArch)((0,KWr.arch)()),[B6t.ATTR_HOST_ID]:(0,YRo.getMachineId)()}}}};dNe.hostDetector=new M6t});var ZWr=E(pNe=>{"use strict";Object.defineProperty(pNe,"__esModule",{value:!0});pNe.osDetector=void 0;var JWr=T2e(),XWr=me("os"),XRo=k6t(),L6t=class{detect(e){return{attributes:{[JWr.ATTR_OS_TYPE]:(0,XRo.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 ZRo=(ut(),nt(xt)),sO=T2e(),eNo=me("os"),U6t=class{detect(e){let r={[sO.ATTR_PROCESS_PID]:process.pid,[sO.ATTR_PROCESS_EXECUTABLE_NAME]:process.title,[sO.ATTR_PROCESS_EXECUTABLE_PATH]:process.execPath,[sO.ATTR_PROCESS_COMMAND_ARGS]:[process.argv[0],...process.execArgv,...process.argv.slice(1)],[sO.ATTR_PROCESS_RUNTIME_VERSION]:process.versions.node,[sO.ATTR_PROCESS_RUNTIME_NAME]:"nodejs",[sO.ATTR_PROCESS_RUNTIME_DESCRIPTION]:"Node.js"};process.argv.length>1&&(r[sO.ATTR_PROCESS_COMMAND]=process.argv[1]);try{let o=eNo.userInfo();r[sO.ATTR_PROCESS_OWNER]=o.username}catch(o){ZRo.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 tNo=T2e(),rNo=me("crypto"),F6t=class{detect(e){return{attributes:{[tNo.ATTR_SERVICE_INSTANCE_ID]:(0,rNo.randomUUID)()}}}};mNe.serviceInstanceIdDetector=new F6t});var rzr=E(iI=>{"use strict";Object.defineProperty(iI,"__esModule",{value:!0});iI.serviceInstanceIdDetector=iI.processDetector=iI.osDetector=iI.hostDetector=void 0;var nNo=YWr();Object.defineProperty(iI,"hostDetector",{enumerable:!0,get:function(){return nNo.hostDetector}});var iNo=ZWr();Object.defineProperty(iI,"osDetector",{enumerable:!0,get:function(){return iNo.osDetector}});var oNo=ezr();Object.defineProperty(iI,"processDetector",{enumerable:!0,get:function(){return oNo.processDetector}});var sNo=tzr();Object.defineProperty(iI,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return sNo.serviceInstanceIdDetector}})});var nzr=E(oI=>{"use strict";Object.defineProperty(oI,"__esModule",{value:!0});oI.serviceInstanceIdDetector=oI.processDetector=oI.osDetector=oI.hostDetector=void 0;var gNe=rzr();Object.defineProperty(oI,"hostDetector",{enumerable:!0,get:function(){return gNe.hostDetector}});Object.defineProperty(oI,"osDetector",{enumerable:!0,get:function(){return gNe.osDetector}});Object.defineProperty(oI,"processDetector",{enumerable:!0,get:function(){return gNe.processDetector}});Object.defineProperty(oI,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return gNe.serviceInstanceIdDetector}})});var izr=E(Tte=>{"use strict";Object.defineProperty(Tte,"__esModule",{value:!0});Tte.noopDetector=Tte.NoopDetector=void 0;var yNe=class{detect(){return{attributes:{}}}};Tte.NoopDetector=yNe;Tte.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 aNo=QWr();Object.defineProperty(Dv,"envDetector",{enumerable:!0,get:function(){return aNo.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 cNo=izr();Object.defineProperty(Dv,"noopDetector",{enumerable:!0,get:function(){return cNo.noopDetector}})});var OB=E(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});Xp.defaultServiceName=Xp.emptyResource=Xp.defaultResource=Xp.resourceFromAttributes=Xp.serviceInstanceIdDetector=Xp.processDetector=Xp.osDetector=Xp.hostDetector=Xp.envDetector=Xp.detectResources=void 0;var lNo=UWr();Object.defineProperty(Xp,"detectResources",{enumerable:!0,get:function(){return lNo.detectResources}});var w2e=ozr();Object.defineProperty(Xp,"envDetector",{enumerable:!0,get:function(){return w2e.envDetector}});Object.defineProperty(Xp,"hostDetector",{enumerable:!0,get:function(){return w2e.hostDetector}});Object.defineProperty(Xp,"osDetector",{enumerable:!0,get:function(){return w2e.osDetector}});Object.defineProperty(Xp,"processDetector",{enumerable:!0,get:function(){return w2e.processDetector}});Object.defineProperty(Xp,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return w2e.serviceInstanceIdDetector}});var Q6t=R6t();Object.defineProperty(Xp,"resourceFromAttributes",{enumerable:!0,get:function(){return Q6t.resourceFromAttributes}});Object.defineProperty(Xp,"defaultResource",{enumerable:!0,get:function(){return Q6t.defaultResource}});Object.defineProperty(Xp,"emptyResource",{enumerable:!0,get:function(){return Q6t.emptyResource}});var uNo=I6t();Object.defineProperty(Xp,"defaultServiceName",{enumerable:!0,get:function(){return uNo.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 I2e=E(sI=>{"use strict";Object.defineProperty(sI,"__esModule",{value:!0});sI.isValidName=sI.isDescriptorCompatibleWith=sI.createInstrumentDescriptorWithView=sI.createInstrumentDescriptor=void 0;var azr=(ut(),nt(xt)),fNo=$4();function dNo(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??{}}}sI.createInstrumentDescriptor=dNo;function pNo(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}}sI.createInstrumentDescriptorWithView=pNo;function hNo(t,e){return(0,fNo.equalsCaseInsensitive)(t.name,e.name)&&t.unit===e.unit&&t.type===e.type&&t.valueType===e.valueType}sI.isDescriptorCompatibleWith=hNo;var mNo=/^[a-z][a-z0-9_.\-/]{0,254}$/i;function czr(t){return t.match(mNo)!=null}sI.isValidName=czr});var bNe=E(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.isObservableInstrument=Zp.ObservableUpDownCounterInstrument=Zp.ObservableGaugeInstrument=Zp.ObservableCounterInstrument=Zp.ObservableInstrument=Zp.HistogramInstrument=Zp.GaugeInstrument=Zp.CounterInstrument=Zp.UpDownCounterInstrument=Zp.SyncInstrument=void 0;var wte=(ut(),nt(xt)),gNo=lV(),vV=class{_writableMetricStorage;_descriptor;constructor(e,r){this._writableMetricStorage=e,this._descriptor=r}_record(e,r={},o=wte.context.active()){if(typeof e!="number"){wte.diag.warn(`non-number value provided to metric ${this._descriptor.name}: ${e}`);return}this._descriptor.valueType===wte.ValueType.INT&&!Number.isInteger(e)&&(wte.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,gNo.millisToHrTime)(Date.now()))}};Zp.SyncInstrument=vV;var H6t=class extends vV{add(e,r,o){this._record(e,r,o)}};Zp.UpDownCounterInstrument=H6t;var V6t=class extends vV{add(e,r,o){if(e<0){wte.diag.warn(`negative value provided to counter ${this._descriptor.name}: ${e}`);return}this._record(e,r,o)}};Zp.CounterInstrument=V6t;var G6t=class extends vV{record(e,r,o){this._record(e,r,o)}};Zp.GaugeInstrument=G6t;var j6t=class extends vV{record(e,r,o){if(e<0){wte.diag.warn(`negative value provided to histogram ${this._descriptor.name}: ${e}`);return}this._record(e,r,o)}};Zp.HistogramInstrument=j6t;var bV=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)}};Zp.ObservableInstrument=bV;var $6t=class extends bV{};Zp.ObservableCounterInstrument=$6t;var W6t=class extends bV{};Zp.ObservableGaugeInstrument=W6t;var z6t=class extends bV{};Zp.ObservableUpDownCounterInstrument=z6t;function yNo(t){return t instanceof bV}Zp.isObservableInstrument=yNo});var lzr=E(ENe=>{"use strict";Object.defineProperty(ENe,"__esModule",{value:!0});ENe.Meter=void 0;var EV=I2e(),SV=bNe(),xV=bB(),K6t=class{_meterSharedState;constructor(e){this._meterSharedState=e}createGauge(e,r){let o=(0,EV.createInstrumentDescriptor)(e,xV.InstrumentType.GAUGE,r),s=this._meterSharedState.registerMetricStorage(o);return new SV.GaugeInstrument(s,o)}createHistogram(e,r){let o=(0,EV.createInstrumentDescriptor)(e,xV.InstrumentType.HISTOGRAM,r),s=this._meterSharedState.registerMetricStorage(o);return new SV.HistogramInstrument(s,o)}createCounter(e,r){let o=(0,EV.createInstrumentDescriptor)(e,xV.InstrumentType.COUNTER,r),s=this._meterSharedState.registerMetricStorage(o);return new SV.CounterInstrument(s,o)}createUpDownCounter(e,r){let o=(0,EV.createInstrumentDescriptor)(e,xV.InstrumentType.UP_DOWN_COUNTER,r),s=this._meterSharedState.registerMetricStorage(o);return new SV.UpDownCounterInstrument(s,o)}createObservableGauge(e,r){let o=(0,EV.createInstrumentDescriptor)(e,xV.InstrumentType.OBSERVABLE_GAUGE,r),s=this._meterSharedState.registerAsyncMetricStorage(o);return new SV.ObservableGaugeInstrument(o,s,this._meterSharedState.observableRegistry)}createObservableCounter(e,r){let o=(0,EV.createInstrumentDescriptor)(e,xV.InstrumentType.OBSERVABLE_COUNTER,r),s=this._meterSharedState.registerAsyncMetricStorage(o);return new SV.ObservableCounterInstrument(o,s,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(e,r){let o=(0,EV.createInstrumentDescriptor)(e,xV.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER,r),s=this._meterSharedState.registerAsyncMetricStorage(o);return new SV.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 ANo=I2e(),Y6t=class{_instrumentDescriptor;constructor(e){this._instrumentDescriptor=e}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(e){this._instrumentDescriptor=(0,ANo.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 D2e=E(Ite=>{"use strict";Object.defineProperty(Ite,"__esModule",{value:!0});Ite.AttributeHashMap=Ite.HashMap=void 0;var vNo=$4(),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}};Ite.HashMap=xNe;var X6t=class extends xNe{constructor(){super(vNo.hashAttributes)}};Ite.AttributeHashMap=X6t});var twt=E(_Ne=>{"use strict";Object.defineProperty(_Ne,"__esModule",{value:!0});_Ne.DeltaMetricProcessor=void 0;var bNo=$4(),Z6t=D2e(),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,bNo.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 ENo=ROe(),SNo=D2e(),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===ENo.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=xNo(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 SNo.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 xNo(t){return Array.from(t.entries())}});var uzr=E(TNe=>{"use strict";Object.defineProperty(TNe,"__esModule",{value:!0});TNe.AsyncMetricStorage=void 0;var _No=J6t(),CNo=twt(),TNo=nwt(),wNo=D2e(),iwt=class extends _No.MetricStorage{_attributesProcessor;_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;constructor(e,r,o,s,a){super(e),this._attributesProcessor=o,this._aggregationCardinalityLimit=a,this._deltaMetricStorage=new CNo.DeltaMetricProcessor(r,this._aggregationCardinalityLimit),this._temporalMetricStorage=new TNo.TemporalMetricProcessor(r,s)}record(e,r){let o=new wNo.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 INo(t,e){let r="";return t.unit!==e.unit&&(r+=` - Unit '${t.unit}' does not match '${e.unit}'
|
|
783
783
|
`),t.type!==e.type&&(r+=` - Type '${t.type}' does not match '${e.type}'
|
|
784
784
|
`),t.valueType!==e.valueType&&(r+=` - Value Type '${t.valueType}' does not match '${e.valueType}'
|
|
@@ -900,14 +900,14 @@ Otherwise navigate to:
|
|
|
900
900
|
|
|
901
901
|
${e}
|
|
902
902
|
|
|
903
|
-
`);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 Pie){return await qO.hasValidToken()?(console.log("Using cached Aone authentication."),!0):await l6n(t)}async function F8(){return await qO.loadPrivateToken()}async function lYe(){await qO.clearPrivateToken(),console.log("Aone authentication cleared.")}async function cws(){return await qO.hasValidToken()}async function lws(t=new Pie){return await lYe(),await cYe(t)}var uYe=j(()=>{"use strict";gFt();G7();i6n();o6n();s6n();});async function yFt(t,e,r,o){if(e===br.LOGIN_WITH_IFLOW){let s=await UH(e,r),a=await B4();if(!a)throw new Error("No API key found. Please re-authenticate.");let i=r.getContentGeneratorConfig();return new sj({model:r.getModel(),apiKey:a,baseUrl:i?.baseUrl||s3e,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 F8();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 sj({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 UH(e,r),a=await vRr(s);return new $7(s,a.projectId,t,o,a.userTier)}throw new Error(`Unsupported authType: ${e}`)}var AFt=j(()=>{"use strict";DE();Pk();bRr();g9e();lFt();_6();uYe();});function uws(t){return t.replace(/([a-z])([A-Z])/g,"$1_$2").toUpperCase()}function Q8(t){let e=uws(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 u3e(){return Q8("apiKey")}function f3e(){return Q8("baseUrl")||Q8("url")}function d3e(){return Q8("modelName")||Q8("model")}function u6n(t){let e=Q8(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=Q8(t);if(e===void 0)return;let r=Number(e);return isNaN(r)?void 0:r}function d6n(t){let e=Q8(t);if(e!==void 0)return e.split(",").map(r=>r.trim()).filter(r=>r.length>0)}function fYe(){return!!(u3e()||f3e()||d3e())}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=Q8(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 fws(){return{apiKey:u3e(),baseUrl:f3e(),model:d3e()}}var bFt=j(()=>{"use strict";});async function EFt(t,e,r){await bee()&&(await h9e()||console.log("OAuth2 credentials cleared due to expiration. Please authenticate when prompted."));let s=u3e(),a=f3e(),i=d3e(),n=r?.apiKey||s,c=r?.baseUrl||a||dws[e],u=t.getModel()||i||VE,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||s3e,f.multimodalModelName="qwen3-vl-plus",n&&(f.apiKey=n),f):([...GE,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.15
|
|
903
|
+
`);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 Pie){return await qO.hasValidToken()?(console.log("Using cached Aone authentication."),!0):await l6n(t)}async function F8(){return await qO.loadPrivateToken()}async function lYe(){await qO.clearPrivateToken(),console.log("Aone authentication cleared.")}async function cws(){return await qO.hasValidToken()}async function lws(t=new Pie){return await lYe(),await cYe(t)}var uYe=j(()=>{"use strict";gFt();G7();i6n();o6n();s6n();});async function yFt(t,e,r,o){if(e===br.LOGIN_WITH_IFLOW){let s=await UH(e,r),a=await B4();if(!a)throw new Error("No API key found. Please re-authenticate.");let i=r.getContentGeneratorConfig();return new sj({model:r.getModel(),apiKey:a,baseUrl:i?.baseUrl||s3e,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 F8();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 sj({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 UH(e,r),a=await vRr(s);return new $7(s,a.projectId,t,o,a.userTier)}throw new Error(`Unsupported authType: ${e}`)}var AFt=j(()=>{"use strict";DE();Pk();bRr();g9e();lFt();_6();uYe();});function uws(t){return t.replace(/([a-z])([A-Z])/g,"$1_$2").toUpperCase()}function Q8(t){let e=uws(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 u3e(){return Q8("apiKey")}function f3e(){return Q8("baseUrl")||Q8("url")}function d3e(){return Q8("modelName")||Q8("model")}function u6n(t){let e=Q8(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=Q8(t);if(e===void 0)return;let r=Number(e);return isNaN(r)?void 0:r}function d6n(t){let e=Q8(t);if(e!==void 0)return e.split(",").map(r=>r.trim()).filter(r=>r.length>0)}function fYe(){return!!(u3e()||f3e()||d3e())}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=Q8(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 fws(){return{apiKey:u3e(),baseUrl:f3e(),model:d3e()}}var bFt=j(()=>{"use strict";});async function EFt(t,e,r){await bee()&&(await h9e()||console.log("OAuth2 credentials cleared due to expiration. Please authenticate when prompted."));let s=u3e(),a=f3e(),i=d3e(),n=r?.apiKey||s,c=r?.baseUrl||a||dws[e],u=t.getModel()||i||VE,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||s3e,f.multimodalModelName="qwen3-vl-plus",n&&(f.apiKey=n),f):([...GE,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.15 (${process.platform}; ${process.arch})`}};if(t.authType&&[...GE,br.IDEA_LAB].includes(t.authType)||t.authType===br.OPENAI_COMPATIBLE)return new sj({...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,GE,dws,DE=j(()=>{"use strict";AFt();_6();lFt();bFt();Pk();(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={}));GE=[br.IFLOW,br.AONE],dws={[br.IDEA_LAB]:"https://idealab.alibaba-inc.com/api/openai/v1",[br.IFLOW]:s3e,[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,jE=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 pws(t){return{text:t.text}}function hws(t,e){return[{text:R.t("mcpTool.messages.mediaDataProvided",{toolName:e,type:t.type,mimeType:t.mimeType})},{inlineData:{mimeType:t.mimeType,data:t.data}}]}function mws(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:R.t("mcpTool.messages.embeddedResourceProvided",{toolName:e,mimeType:o})},{inlineData:{mimeType:o,data:r.blob}}]}return null}function gws(t){return{text:R.t("mcpTool.messages.resourceLink",{title:t.title||t.name,uri:t.uri})}}function yws(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 pws(a);case"image":case"audio":return hws(a,o);case"resource":return mws(a,o);case"resource_link":return gws(a);default:return null}}).filter(a=>a!==null):[{text:R.t("mcpTool.errors.parseResponseFailed")}]}function Aws(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 R.t("mcpTool.display.image",{mimeType:o.mimeType});case"audio":return R.t("mcpTool.display.audio",{mimeType:o.mimeType});case"resource_link":return R.t("mcpTool.display.resourceLink",{title:o.title||o.name,uri:o.uri});case"resource":return o.resource?.text?o.resource.text:R.t("mcpTool.display.embeddedResource",{mimeType:o.resource?.mimeType||R.t("mcpTool.display.unknownType")});default:return R.t("mcpTool.display.unknownContentType",{type:o.type})}}).join(`
|
|
904
904
|
`):"```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,p3e=j(()=>{"use strict";MKe();jE();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:R.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: ${rj(s[0])} with response: ${rj(a)}`;return{llmContent:n,returnDisplay:R.t("mcpTool.errors.toolReportedError",{toolName:this.serverToolName}),error:{message:n,type:Kn.MCP_TOOL_ERROR}}}return{llmContent:yws(a),returnDisplay:Aws(a)}}}});var g6n=E((J1l,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((X1l,S6n)=>{"use strict";var E6n="(?:"+["\\|\\|","\\&\\&",";;","\\|\\&","\\<\\(","\\<\\<\\<",">>",">\\&","<\\&","[&;()|<>]"].join("|")+")",y6n=new RegExp("^"+E6n+"$"),A6n="|&;()<> \\t",vws='"((\\\\"|[^"])*?)"',bws="'((\\\\'|[^'])*?)'",Ews=/^#$/,v6n="'",b6n='"',xFt="$",aj="",Sws=4294967296;for(_Ft=0;_Ft<4;_Ft++)aj+=(Sws*Math.random()).toString(16);var _Ft,xws=new RegExp("^"+aj);function _ws(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 Cws(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+aj+JSON.stringify(o)+aj:e+o}function Tws(t,e,r){r||(r={});var o=r.escape||"\\",s="(\\"+o+`['"`+A6n+`]|[^\\s'"`+A6n+"])+",a=new RegExp(["("+E6n+")","("+s+"|"+vws+"|"+bws+")+"].join("|"),"g"),i=_ws(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 Cws(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(Ews.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=Tws(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("("+aj+".*?"+aj+")","g"));return n.length===1?a.concat(n[0]):a.concat(n.filter(Boolean).map(function(c){return xws.test(c)?JSON.parse(c.split(aj)[1]):c}))},[])}});var pYe=E(CFt=>{"use strict";CFt.quote=g6n();CFt.parse=x6n()});var vc,TFt,yi,q8,h3e=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})(vc||(vc={}));(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(TFt||(TFt={}));yi=vc.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,wws,Zv,hYe=j(()=>{h3e();Dn=vc.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"]),wws=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Zv=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,vc.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()}};Zv.create=t=>new Zv(t)});var Iws,HO,wFt=j(()=>{hYe();h3e();Iws=(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,vc.jsonStringifyReplacer)}`;break;case Dn.unrecognized_keys:r=`Unrecognized key(s) in object: ${vc.joinValues(t.keys,", ")}`;break;case Dn.invalid_union:r="Invalid input";break;case Dn.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${vc.joinValues(t.options)}`;break;case Dn.invalid_enum_value:r=`Invalid enum value. Expected ${vc.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}"`:vc.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,vc.assertNever(t)}return{message:r}},HO=Iws});function Dws(t){_6n=t}function kie(){return _6n}var _6n,mYe=j(()=>{wFt();_6n=HO});function oi(t,e){let r=kie(),o=m3e({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 m3e,Ows,n1,rs,cj,Uy,gYe,yYe,mL,Bie,IFt=j(()=>{mYe();wFt();m3e=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}},Ows=[];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"}),cj=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 Wws(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 zws(t,e){return!!((e==="v4"||!e)&&Qws.test(t)||(e==="v6"||!e)&&Hws.test(t))}function Kws(t,e){if(!Mws.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 Yws(t,e){return!!((e==="v4"||!e)&&qws.test(t)||(e==="v6"||!e)&&Vws.test(t))}function Jws(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 Mie(t){if(t instanceof eb){let e={};for(let r in t.shape){let o=t.shape[r];e[r]=X_.create(Mie(o))}return new eb({...t._def,shape:()=>e})}else return t instanceof jO?new jO({...t._def,type:Mie(t.element)}):t instanceof X_?X_.create(Mie(t.unwrap())):t instanceof V8?V8.create(Mie(t.unwrap())):t instanceof H8?H8.create(t.items.map(e=>Mie(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=vc.objectKeys(e),a=vc.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 vj({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 Z_,w6n,Ua,Rws,Nws,Pws,kws,Bws,Mws,Lws,Uws,Fws,DFt,Qws,qws,Hws,Vws,Gws,jws,D6n,$ws,gL,lj,uj,fj,dj,Lie,pj,hj,yL,GO,C6,Uie,jO,eb,mj,VO,AYe,gj,H8,vYe,Fie,Qie,bYe,yj,Aj,vj,bj,AL,eC,X_,V8,Ej,Sj,qie,Xws,g3e,y3e,xj,Zws,ls,e5s,k6n,B6n,t5s,r5s,M6n,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,k5s,B5s,M5s,L6n=j(()=>{hYe();mYe();T6n();IFt();h3e();Z_=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 Zv(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 eC({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 X_.create(this,this._def)}nullable(){return V8.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return jO.create(this)}promise(){return AL.create(this,this._def)}or(e){return mj.create([this,e],this._def)}and(e){return gj.create(this,e,this._def)}transform(e){return new eC({...ba(this._def),schema:this,typeName:ls.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new Ej({...ba(this._def),innerType:this,defaultValue:r,typeName:ls.ZodDefault})}brand(){return new g3e({typeName:ls.ZodBranded,type:this,...ba(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new Sj({...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 y3e.create(this,e)}readonly(){return xj.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Rws=/^c[^\s-]{8,}$/i,Nws=/^[0-9a-z]+$/,Pws=/^[0-9A-HJKMNP-TV-Z]{26}$/i,kws=/^[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,Bws=/^[a-z0-9_-]{21}$/i,Mws=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Lws=/^[-+]?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)?)??$/,Uws=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Fws="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Qws=/^(?:(?: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])$/,qws=/^(?:(?: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])$/,Hws=/^(([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]))$/,Vws=/^(([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])$/,Gws=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,jws=/^([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])))",$ws=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")Uws.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(Fws,"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")kws.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")Bws.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")Rws.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")Nws.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")Pws.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"?$ws.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{code:Dn.invalid_string,validation:"date",message:a.message}),o.dirty()):a.kind==="time"?Wws(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"?Lws.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"duration",code:Dn.invalid_string,message:a.message}),o.dirty()):a.kind==="ip"?zws(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"?Kws(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"?Yws(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"?Gws.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"base64",code:Dn.invalid_string,message:a.message}),o.dirty()):a.kind==="base64url"?jws.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"base64url",code:Dn.invalid_string,message:a.message}),o.dirty()):vc.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)});lj=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"?vc.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"?Jws(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()):vc.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"&&vc.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)}};lj.create=t=>new lj({checks:[],typeName:ls.ZodNumber,coerce:t?.coerce||!1,...ba(t)});uj=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()):vc.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}};uj.create=t=>new uj({checks:[],typeName:ls.ZodBigInt,coerce:t?.coerce??!1,...ba(t)});fj=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)}};fj.create=t=>new fj({typeName:ls.ZodBoolean,coerce:t?.coerce||!1,...ba(t)});dj=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()):vc.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}};dj.create=t=>new dj({checks:[],coerce:t?.coerce||!1,typeName:ls.ZodDate,...ba(t)});Lie=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)}};Lie.create=t=>new Lie({typeName:ls.ZodSymbol,...ba(t)});pj=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)}};pj.create=t=>new pj({typeName:ls.ZodUndefined,...ba(t)});hj=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)}};hj.create=t=>new hj({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)});C6=class extends Ua{_parse(e){let r=this._getOrReturnCtx(e);return oi(r,{code:Dn.invalid_type,expected:yi.never,received:r.parsedType}),rs}};C6.create=t=>new C6({typeName:ls.ZodNever,...ba(t)});Uie=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)}};Uie.create=t=>new Uie({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 Z_(r,i,r.path,n)))).then(i=>n1.mergeArray(o,i));let a=[...r.data].map((i,n)=>s.type._parseSync(new Z_(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)});eb=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=vc.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 C6&&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 Z_(s,d,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof C6){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 Z_(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 vc.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 vc.objectKeys(this.shape))e[o]||(r[o]=this.shape[o]);return new t({...this._def,shape:()=>r})}deepPartial(){return Mie(this)}partial(e){let r={};for(let o of vc.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 vc.objectKeys(this.shape))if(e&&!e[o])r[o]=this.shape[o];else{let a=this.shape[o];for(;a instanceof X_;)a=a._def.innerType;r[o]=a}return new t({...this._def,shape:()=>r})}keyof(){return N6n(vc.objectKeys(this.shape))}};eb.create=(t,e)=>new eb({shape:()=>t,unknownKeys:"strip",catchall:C6.create(),typeName:ls.ZodObject,...ba(e)});eb.strictCreate=(t,e)=>new eb({shape:()=>t,unknownKeys:"strict",catchall:C6.create(),typeName:ls.ZodObject,...ba(e)});eb.lazycreate=(t,e)=>new eb({shape:t,unknownKeys:"strip",catchall:C6.create(),typeName:ls.ZodObject,...ba(e)});mj=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 Zv(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 Zv(c));return oi(r,{code:Dn.invalid_union,unionErrors:n}),rs}}get options(){return this._def.options}};mj.create=(t,e)=>new mj({options:t,typeName:ls.ZodUnion,...ba(e)});VO=t=>t instanceof yj?VO(t.schema):t instanceof eC?VO(t.innerType()):t instanceof Aj?[t.value]:t instanceof vj?t.options:t instanceof bj?vc.objectValues(t.enum):t instanceof Ej?VO(t._def.innerType):t instanceof pj?[void 0]:t instanceof hj?[null]:t instanceof X_?[void 0,...VO(t.unwrap())]:t instanceof V8?[null,...VO(t.unwrap())]:t instanceof g3e||t instanceof xj?VO(t.unwrap()):t instanceof Sj?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)})}};gj=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}))}};gj.create=(t,e,r)=>new gj({left:t,right:e,typeName:ls.ZodIntersection,...ba(r)});H8=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 Z_(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})}};H8.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new H8({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 Z_(o,n,o.path,n)),value:i._parse(new Z_(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)})}},Fie=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 Z_(o,n,o.path,[u,"key"])),value:a._parse(new Z_(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}}}};Fie.create=(t,e,r)=>new Fie({valueType:e,keyType:t,typeName:ls.ZodMap,...ba(r)});Qie=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 Z_(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)}};Qie.create=(t,e)=>new Qie({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 m3e({data:n,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,kie(),HO].filter(u=>!!u),issueData:{code:Dn.invalid_arguments,argumentsError:c}})}function s(n,c){return m3e({data:n,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,kie(),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 Zv([]),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 Zv([o(c,u.error)]);let f=Reflect.apply(i,this,u.data),d=n._def.returns.safeParse(f,a);if(!d.success)throw new Zv([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:H8.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||H8.create([]).rest(GO.create()),returns:r||GO.create(),typeName:ls.ZodFunction,...ba(o)})}},yj=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})}};yj.create=(t,e)=>new yj({getter:t,typeName:ls.ZodLazy,...ba(e)});Aj=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}};Aj.create=(t,e)=>new Aj({value:t,typeName:ls.ZodLiteral,...ba(e)});vj=class t extends Ua{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),o=this._def.values;return oi(r,{expected:vc.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})}};vj.create=N6n;bj=class extends Ua{_parse(e){let r=vc.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(e);if(o.parsedType!==yi.string&&o.parsedType!==yi.number){let s=vc.objectValues(r);return oi(o,{expected:vc.joinValues(s),received:o.parsedType,code:Dn.invalid_type}),rs}if(this._cache||(this._cache=new Set(vc.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let s=vc.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}};bj.create=(t,e)=>new bj({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)});eC=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"?cj(c.value):r.value==="dirty"?cj(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"?cj(n.value):r.value==="dirty"?cj(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);vc.assertNever(s)}};eC.create=(t,e,r)=>new eC({schema:t,typeName:ls.ZodEffects,effect:e,...ba(r)});eC.createWithPreprocess=(t,e,r)=>new eC({schema:e,effect:{type:"preprocess",transform:t},typeName:ls.ZodEffects,...ba(r)});X_=class extends Ua{_parse(e){return this._getType(e)===yi.undefined?Uy(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};X_.create=(t,e)=>new X_({innerType:t,typeName:ls.ZodOptional,...ba(e)});V8=class extends Ua{_parse(e){return this._getType(e)===yi.null?Uy(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};V8.create=(t,e)=>new V8({innerType:t,typeName:ls.ZodNullable,...ba(e)});Ej=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}};Ej.create=(t,e)=>new Ej({innerType:t,typeName:ls.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ba(e)});Sj=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 Zv(o.common.issues)},input:o.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Zv(o.common.issues)},input:o.data})}}removeCatch(){return this._def.innerType}};Sj.create=(t,e)=>new Sj({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)});Xws=Symbol("zod_brand"),g3e=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}},y3e=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(),cj(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})}},xj=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}};xj.create=(t,e)=>new xj({innerType:t,typeName:ls.ZodReadonly,...ba(e)});Zws={object:eb.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={}));e5s=(t,e={message:`Input not instance of ${t.name}`})=>P6n(r=>r instanceof t,e),k6n=gL.create,B6n=lj.create,t5s=qie.create,r5s=uj.create,M6n=fj.create,n5s=dj.create,i5s=Lie.create,o5s=pj.create,s5s=hj.create,a5s=yL.create,c5s=GO.create,l5s=C6.create,u5s=Uie.create,f5s=jO.create,d5s=eb.create,p5s=eb.strictCreate,h5s=mj.create,m5s=AYe.create,g5s=gj.create,y5s=H8.create,A5s=vYe.create,v5s=Fie.create,b5s=Qie.create,E5s=bYe.create,S5s=yj.create,x5s=Aj.create,_5s=vj.create,C5s=bj.create,T5s=AL.create,w5s=eC.create,I5s=X_.create,D5s=V8.create,O5s=eC.createWithPreprocess,R5s=y3e.create,N5s=()=>k6n().optional(),P5s=()=>B6n().optional(),k5s=()=>M6n().optional(),B5s={string:(t=>gL.create({...t,coerce:!0})),number:(t=>lj.create({...t,coerce:!0})),boolean:(t=>fj.create({...t,coerce:!0})),bigint:(t=>uj.create({...t,coerce:!0})),date:(t=>dj.create({...t,coerce:!0}))},M5s=rs});var re={};ss(re,{BRAND:()=>Xws,DIRTY:()=>cj,EMPTY_PATH:()=>Ows,INVALID:()=>rs,NEVER:()=>M5s,OK:()=>Uy,ParseStatus:()=>n1,Schema:()=>Ua,ZodAny:()=>yL,ZodArray:()=>jO,ZodBigInt:()=>uj,ZodBoolean:()=>fj,ZodBranded:()=>g3e,ZodCatch:()=>Sj,ZodDate:()=>dj,ZodDefault:()=>Ej,ZodDiscriminatedUnion:()=>AYe,ZodEffects:()=>eC,ZodEnum:()=>vj,ZodError:()=>Zv,ZodFirstPartyTypeKind:()=>ls,ZodFunction:()=>bYe,ZodIntersection:()=>gj,ZodIssueCode:()=>Dn,ZodLazy:()=>yj,ZodLiteral:()=>Aj,ZodMap:()=>Fie,ZodNaN:()=>qie,ZodNativeEnum:()=>bj,ZodNever:()=>C6,ZodNull:()=>hj,ZodNullable:()=>V8,ZodNumber:()=>lj,ZodObject:()=>eb,ZodOptional:()=>X_,ZodParsedType:()=>yi,ZodPipeline:()=>y3e,ZodPromise:()=>AL,ZodReadonly:()=>xj,ZodRecord:()=>vYe,ZodSchema:()=>Ua,ZodSet:()=>Qie,ZodString:()=>gL,ZodSymbol:()=>Lie,ZodTransformer:()=>eC,ZodTuple:()=>H8,ZodType:()=>Ua,ZodUndefined:()=>pj,ZodUnion:()=>mj,ZodUnknown:()=>GO,ZodVoid:()=>Uie,addIssueToContext:()=>oi,any:()=>a5s,array:()=>f5s,bigint:()=>r5s,boolean:()=>M6n,coerce:()=>B5s,custom:()=>P6n,date:()=>n5s,datetimeRegex:()=>R6n,defaultErrorMap:()=>HO,discriminatedUnion:()=>m5s,effect:()=>w5s,enum:()=>_5s,function:()=>E5s,getErrorMap:()=>kie,getParsedType:()=>q8,instanceof:()=>e5s,intersection:()=>g5s,isAborted:()=>gYe,isAsync:()=>Bie,isDirty:()=>yYe,isValid:()=>mL,late:()=>Zws,lazy:()=>S5s,literal:()=>x5s,makeIssue:()=>m3e,map:()=>v5s,nan:()=>t5s,nativeEnum:()=>C5s,never:()=>l5s,null:()=>s5s,nullable:()=>D5s,number:()=>B6n,object:()=>d5s,objectUtil:()=>TFt,oboolean:()=>k5s,onumber:()=>P5s,optional:()=>I5s,ostring:()=>N5s,pipeline:()=>R5s,preprocess:()=>O5s,promise:()=>T5s,quotelessJson:()=>wws,record:()=>A5s,set:()=>b5s,setErrorMap:()=>Dws,strictObject:()=>p5s,string:()=>k6n,symbol:()=>i5s,transformer:()=>w5s,tuple:()=>y5s,undefined:()=>o5s,union:()=>h5s,unknown:()=>c5s,util:()=>vc,void:()=>u5s});var RFt=j(()=>{mYe();IFt();C6n();h3e();L6n();hYe()});var vL=j(()=>{RFt();RFt()});var Hie,U6n,EYe,F6n,Q6n,L5s,nC,tb,A3e,G8,iC,SYe,q6n,xYe,H6n,V6n,G6n,v3e,tC,j6n,$6n,bL,_j,_Ye,b3e,W6n,U5s,F5s,Q5s,NFt,z6n,K6n,CYe,q5s,TYe,wYe,IYe,Y6n,J6n,PFt,X6n,Z6n,H5s,V5s,kFt,G5s,BFt,j5s,MFt,$5s,W5s,z5s,K5s,Y5s,J5s,X5s,E3e,Z5s,LFt,UFt,FFt,eIs,tIs,ewn,rIs,S3e,nIs,iIs,oIs,sIs,QFt,DYe,wyl,aIs,cIs,twn,lIs,uIs,fIs,dIs,pIs,hIs,mIs,gIs,yIs,AIs,vIs,bIs,EIs,SIs,xIs,_Is,CIs,qFt,TIs,OYe,wIs,IIs,Iyl,Dyl,Oyl,Ryl,Nyl,Pyl,rC,EL=j(()=>{vL();Hie="2025-06-18",U6n=[Hie,"2025-03-26","2024-11-05","2024-10-07"],EYe="2.0",F6n=re.union([re.string(),re.number().int()]),Q6n=re.string(),L5s=re.object({progressToken:re.optional(F6n)}).passthrough(),nC=re.object({_meta:re.optional(L5s)}).passthrough(),tb=re.object({method:re.string(),params:re.optional(nC)}),A3e=re.object({_meta:re.optional(re.object({}).passthrough())}).passthrough(),G8=re.object({method:re.string(),params:re.optional(A3e)}),iC=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(tb).strict(),xYe=t=>q6n.safeParse(t).success,H6n=re.object({jsonrpc:re.literal(EYe)}).merge(G8).strict(),V6n=t=>H6n.safeParse(t).success,G6n=re.object({jsonrpc:re.literal(EYe),id:SYe,result:iC}).strict(),v3e=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"})(tC||(tC={}));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]),_j=iC.strict(),_Ye=G8.extend({method:re.literal("notifications/cancelled"),params:A3e.extend({requestId:SYe,reason:re.string().optional()})}),b3e=re.object({name:re.string(),title:re.optional(re.string())}).passthrough(),W6n=b3e.extend({version:re.string()}),U5s=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(),F5s=tb.extend({method:re.literal("initialize"),params:nC.extend({protocolVersion:re.string(),capabilities:U5s,clientInfo:W6n})}),Q5s=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=iC.extend({protocolVersion:re.string(),capabilities:Q5s,serverInfo:W6n,instructions:re.optional(re.string())}),z6n=G8.extend({method:re.literal("notifications/initialized")}),K6n=t=>z6n.safeParse(t).success,CYe=tb.extend({method:re.literal("ping")}),q5s=re.object({progress:re.number(),total:re.optional(re.number()),message:re.optional(re.string())}).passthrough(),TYe=G8.extend({method:re.literal("notifications/progress"),params:A3e.merge(q5s).extend({progressToken:F6n})}),wYe=tb.extend({params:nC.extend({cursor:re.optional(Q6n)}).optional()}),IYe=iC.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=b3e.extend({uri:re.string(),description:re.optional(re.string()),mimeType:re.optional(re.string()),_meta:re.optional(re.object({}).passthrough())}),H5s=b3e.extend({uriTemplate:re.string(),description:re.optional(re.string()),mimeType:re.optional(re.string()),_meta:re.optional(re.object({}).passthrough())}),V5s=wYe.extend({method:re.literal("resources/list")}),kFt=IYe.extend({resources:re.array(Z6n)}),G5s=wYe.extend({method:re.literal("resources/templates/list")}),BFt=IYe.extend({resourceTemplates:re.array(H5s)}),j5s=tb.extend({method:re.literal("resources/read"),params:nC.extend({uri:re.string()})}),MFt=iC.extend({contents:re.array(re.union([J6n,X6n]))}),$5s=G8.extend({method:re.literal("notifications/resources/list_changed")}),W5s=tb.extend({method:re.literal("resources/subscribe"),params:nC.extend({uri:re.string()})}),z5s=tb.extend({method:re.literal("resources/unsubscribe"),params:nC.extend({uri:re.string()})}),K5s=G8.extend({method:re.literal("notifications/resources/updated"),params:A3e.extend({uri:re.string()})}),Y5s=re.object({name:re.string(),description:re.optional(re.string()),required:re.optional(re.boolean())}).passthrough(),J5s=b3e.extend({description:re.optional(re.string()),arguments:re.optional(re.array(Y5s)),_meta:re.optional(re.object({}).passthrough())}),X5s=wYe.extend({method:re.literal("prompts/list")}),E3e=IYe.extend({prompts:re.array(J5s)}),Z5s=tb.extend({method:re.literal("prompts/get"),params:nC.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(),eIs=re.object({type:re.literal("resource"),resource:re.union([J6n,X6n]),_meta:re.optional(re.object({}).passthrough())}).passthrough(),tIs=Z6n.extend({type:re.literal("resource_link")}),ewn=re.union([LFt,UFt,FFt,tIs,eIs]),rIs=re.object({role:re.enum(["user","assistant"]),content:ewn}).passthrough(),S3e=iC.extend({description:re.optional(re.string()),messages:re.array(rIs)}),nIs=G8.extend({method:re.literal("notifications/prompts/list_changed")}),iIs=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(),oIs=b3e.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(iIs),_meta:re.optional(re.object({}).passthrough())}),sIs=wYe.extend({method:re.literal("tools/list")}),QFt=IYe.extend({tools:re.array(oIs)}),DYe=iC.extend({content:re.array(ewn).default([]),structuredContent:re.object({}).passthrough().optional(),isError:re.optional(re.boolean())}),wyl=DYe.or(iC.extend({toolResult:re.unknown()})),aIs=tb.extend({method:re.literal("tools/call"),params:nC.extend({name:re.string(),arguments:re.optional(re.record(re.unknown()))})}),cIs=G8.extend({method:re.literal("notifications/tools/list_changed")}),twn=re.enum(["debug","info","notice","warning","error","critical","alert","emergency"]),lIs=tb.extend({method:re.literal("logging/setLevel"),params:nC.extend({level:twn})}),uIs=G8.extend({method:re.literal("notifications/message"),params:A3e.extend({level:twn,logger:re.optional(re.string()),data:re.unknown()})}),fIs=re.object({name:re.string().optional()}).passthrough(),dIs=re.object({hints:re.optional(re.array(fIs)),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(),pIs=re.object({role:re.enum(["user","assistant"]),content:re.union([LFt,UFt,FFt])}).passthrough(),hIs=tb.extend({method:re.literal("sampling/createMessage"),params:nC.extend({messages:re.array(pIs),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(dIs)})}),mIs=iC.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])}),gIs=re.object({type:re.literal("boolean"),title:re.optional(re.string()),description:re.optional(re.string()),default:re.optional(re.boolean())}).passthrough(),yIs=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(),AIs=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(),vIs=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(),bIs=re.union([gIs,yIs,AIs,vIs]),EIs=tb.extend({method:re.literal("elicitation/create"),params:nC.extend({message:re.string(),requestedSchema:re.object({type:re.literal("object"),properties:re.record(re.string(),bIs),required:re.optional(re.array(re.string()))}).passthrough()})}),SIs=iC.extend({action:re.enum(["accept","decline","cancel"]),content:re.optional(re.record(re.string(),re.unknown()))}),xIs=re.object({type:re.literal("ref/resource"),uri:re.string()}).passthrough(),_Is=re.object({type:re.literal("ref/prompt"),name:re.string()}).passthrough(),CIs=tb.extend({method:re.literal("completion/complete"),params:nC.extend({ref:re.union([_Is,xIs]),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=iC.extend({completion:re.object({values:re.array(re.string()).max(100),total:re.optional(re.number().int()),hasMore:re.optional(re.boolean())}).passthrough()}),TIs=re.object({uri:re.string().startsWith("file://"),name:re.optional(re.string()),_meta:re.optional(re.object({}).passthrough())}).passthrough(),OYe=tb.extend({method:re.literal("roots/list")}),wIs=iC.extend({roots:re.array(TIs)}),IIs=G8.extend({method:re.literal("notifications/roots/list_changed")}),Iyl=re.union([CYe,F5s,CIs,lIs,Z5s,X5s,V5s,G5s,j5s,W5s,z5s,aIs,sIs]),Dyl=re.union([_Ye,TYe,z6n,IIs]),Oyl=re.union([_j,mIs,SIs,wIs]),Ryl=re.union([CYe,hIs,EIs,OYe]),Nyl=re.union([_Ye,TYe,uIs,K5s,$5s,cIs,nIs]),Pyl=re.union([_j,NFt,qFt,S3e,E3e,kFt,BFt,MFt,DYe,QFt]),rC=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 DIs,RYe,nwn=j(()=>{EL();DIs=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 rC(tC.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),v3e(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 rC(tC.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:tC.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:tC.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),v3e(e))o(e);else{let s=new rC(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:DIs,b=()=>A(new rC(tC.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)),Bo="[\\:\\/\\?\\#\\[\\]\\@]",To="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Xo=e(Bo,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),Ap=r(r(r(Ws+"\\:")+"{0,6}"+Ws)+"?\\:\\:"),ot=r([$a,ps,Ch,hd,dm,Th,al,Gc,Ap].join("|")),at=r(r(Zo+"|"+Ui)+"+"),Bt=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+")",YT=r(os+"|"+bu+"|"+Eu+"|"+Lg+"|"+cl),pm=r(r(Hn+"|"+e("[\\/\\?]",Ki))+"*"),Vp=r(r(Hn+"|[\\/\\?]")+"*"),HA=r(r("\\/\\/"+Cn+os)+"|"+bu+"|"+Lg+"|"+cl),JT=r(Oa+"\\:"+HA+r("\\?"+pm)+"?"+r("\\#"+Vp)+"?"),cE=r(r("\\/\\/"+Cn+os)+"|"+bu+"|"+Eu+"|"+cl),md=r(cE+r("\\?"+pm)+"?"+r("\\#"+Vp)+"?"),R2=r(JT+"|"+md),Ym=r(Oa+"\\:"+HA+r("\\?"+pm)+"?"),VA="^("+Oa+")\\:"+r(r("\\/\\/("+r("("+$s+")@")+"?("+jr+")"+r("\\:("+Rn+")")+"?)")+"?("+os+"|"+bu+"|"+Lg+"|"+cl+")")+r("\\?("+pm+")")+"?"+r("\\#("+Vp+")")+"?$",av="^(){0}"+r(r("\\/\\/("+r("("+$s+")@")+"?("+jr+")"+r("\\:("+Rn+")")+"?)")+"?("+os+"|"+bu+"|"+Eu+"|"+cl+")")+r("\\?("+pm+")")+"?"+r("\\#("+Vp+")")+"?$",cv="^("+Oa+")\\:"+r(r("\\/\\/("+r("("+$s+")@")+"?("+jr+")"+r("\\:("+Rn+")")+"?)")+"?("+os+"|"+bu+"|"+Lg+"|"+cl+")")+r("\\?("+pm+")")+"?$",Gp="^"+r("\\#("+Vp+")")+"?$",Kw="^"+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(Bo){qr=!0,Nn=Bo}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,k={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,N=Math.floor,O=String.fromCharCode;function M(wt){throw new RangeError(k[wt])}function B(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=B(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?N(pt/A):pt>>1,pt+=N(pt/Ot);pt>w*y>>1;jt+=h)pt=N(pt/w);return N(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 Bo=ei>0?ei+1:0;Bo<Ht;){for(var To=jt,Xo=1,xs=h;;xs+=h){Bo>=Ht&&M("invalid-input");var Ki=G(pt.charCodeAt(Bo++));(Ki>=h||Ki>N((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>N(p/Oa)&&M("overflow"),Xo*=Oa}var $s=Ot.length+1;Nn=U(jt-To,$s,To==0),N(jt/$s)>p-qr&&M("overflow"),qr+=N(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,Bo=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,Bo=Vt}finally{try{!ei&&To.return&&To.return()}finally{if(Ui)throw Bo}}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>N((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,Ap=h;;Ap+=h){var ot=Ap<=Nn?m:Ap>=Nn+y?y:Ap-Nn;if(Gc<ot)break;var at=Gc-ot,Bt=h-ot;Ot.push(O(H(ot+at%Bt,0))),Gc=N(at/Bt)}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],Bo=ei[1],To=Bo?Bo.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}},ke={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,Bo=ei.length;Ui<Bo;++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("@"),Bo=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]=Bo+"@"+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),Bo=Ae[Ui];jt.nid=Nn,jt.nss=ei,jt.path=void 0,Bo&&(jt=Bo.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[ke.scheme]=ke,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 Vie=E((Lyl,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((Uyl,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 Cj=E((Fyl,fwn)=>{"use strict";fwn.exports={copy:OIs,checkDataType:HFt,checkDataTypes:RIs,coerceToTypes:NIs,toHash:GFt,getProperty:jFt,escapeQuotes:$Ft,equal:Vie(),ucs2length:cwn(),varOccurences:BIs,varReplace:MIs,schemaHasRules:LIs,schemaHasRulesExcept:UIs,schemaUnknownRules:FIs,toQuotedString:VFt,getPathExpr:QIs,getPath:qIs,getData:GIs,unescapeFragment:jIs,unescapeJsonPointer:zFt,escapeFragment:$Is,escapeJsonPointer:WFt};function OIs(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 RIs(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 NIs(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 PIs=/^[a-z$_][a-z$_0-9]*$/i,kIs=/'|\\/g;function jFt(t){return typeof t=="number"?"["+t+"]":PIs.test(t)?"."+t:"['"+$Ft(t)+"']"}function $Ft(t){return t.replace(kIs,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function BIs(t,e){e+="[^0-9]";var r=t.match(new RegExp(e,"g"));return r?r.length:0}function MIs(t,e,r){return e+="([^0-9])",r=r.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),r+"$1")}function LIs(t,e){if(typeof t=="boolean")return!t;for(var r in t)if(e[r])return!0}function UIs(t,e,r){if(typeof t=="boolean")return!t&&r!="not";for(var o in t)if(o!=r&&e[o])return!0}function FIs(t,e){if(typeof t!="boolean"){for(var r in t)if(!e[r])return r}}function VFt(t){return"'"+$Ft(t)+"'"}function QIs(t,e,r,o){var s=r?"'/' + "+e+(o?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):o?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return uwn(t,s)}function qIs(t,e,r){var o=VFt(r?"/"+WFt(e):jFt(e));return uwn(t,o)}var HIs=/^\/(?:[^~]|~0|~1)*$/,VIs=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function GIs(t,e,r){var o,s,a,i;if(t==="")return"rootData";if(t[0]=="/"){if(!HIs.test(t))throw new Error("Invalid JSON-pointer: "+t);s=t,a="rootData"}else{if(i=t.match(VIs),!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 jIs(t){return zFt(decodeURIComponent(t))}function $Is(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 WIs=Cj();dwn.exports=zIs;function zIs(t){WIs.copy(t,this)}});var hwn=E((qyl,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+"/"+KIs(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 KIs(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var FYe=E((Hyl,Awn)=>{"use strict";var x3e=own(),mwn=Vie(),LYe=Cj(),kYe=KFt(),YIs=hwn();Awn.exports=_L;_L.normalizeId=xL;_L.fullPath=BYe;_L.url=MYe;_L.ids=t8s;_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 kYe)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 kYe?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=x3e.parse(e),o=ywn(r),s=BYe(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 JIs.call(this,t,i,r);if(i instanceof kYe)i.validate||this._compile(i),t=i;else if(i=this._schemas[a],i instanceof kYe){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=BYe(this._getId(t.schema))}return gwn.call(this,r,s,t.schema,t)}function JIs(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 XIs=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(!XIs[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 ZIs=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(ZIs[s])e++;else if(r=t[s],typeof r=="object"&&(e+=XFt(r)+1),e==1/0)return 1/0}return e}function BYe(t,e){e!==!1&&(t=xL(t));var r=x3e.parse(t);return ywn(r)}function ywn(t){return x3e.serialize(t).split("#")[0]+"#"}var e8s=/#\/?$/;function xL(t){return t?t.replace(e8s,""):""}function MYe(t,e){return e=xL(e),x3e.resolve(t,e)}function t8s(t){var e=xL(this._getId(t)),r={"":e},o={"":BYe(e,!1)},s={},a=this;return YIs(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?x3e.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((Vyl,bwn)=>{"use strict";var ZFt=FYe();bwn.exports={Validation:vwn(r8s),MissingRef:vwn(eQt)};function r8s(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((Gyl,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((jyl,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,k,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: '"+(k||"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="",k,w=e.schema.type,N=Array.isArray(w);if(w&&e.opts.nullable&&e.schema.nullable===!0&&(N?w.indexOf("null")==-1&&(w=w.concat("null")):w!="null"&&(w=[w,"null"],N=!0)),N&&w.length==1&&(w=w[0],N=!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||N||M===!0||M&&!ie(M)){var h=e.schemaPath+".type",m=e.errSchemaPath+"/type",h=e.schemaPath+".type",m=e.errSchemaPath+"/type",B=N?"checkDataTypes":"checkDataType";if(s+=" if ("+e.util[B](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: '"+(k||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",N?s+=""+w.join(","):s+=""+w,s+="' } ",e.opts.messages!==!1&&(s+=" , message: 'should be ",N?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: '"+(k||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",N?s+=""+w.join(","):s+=""+w,s+="' } ",e.opts.messages!==!1&&(s+=" , message: 'should be ",N?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: '"+(k||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",N?s+=""+w.join(","):s+=""+w,s+="' } ",e.opts.messages!==!1&&(s+=" , message: 'should be ",N?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(($yl,Twn)=>{"use strict";var qYe=FYe(),VYe=Cj(),_wn=QYe(),n8s=tQt(),xwn=rQt(),i8s=VYe.ucs2length,o8s=Vie(),s8s=_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=a8s.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{c8s.call(this,t,e,o)}function b(){var B=m.validate,P=B.apply(this,arguments);return b.errors=B.errors,P}function x(B,P,q,F){var G=!P||P&&P.schema==B;if(P.schema!=e.schema)return nQt.call(s,B,P,q,F);var H=B.$async===!0,U=xwn({isTop:!0,schema:B,isRoot:G,baseId:F,root:P,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:_wn.MissingRef,RULES:g,validate:xwn,util:VYe,resolve:qYe,resolveRef:T,usePattern:N,useDefault:O,useCustomRule:M,opts:a,formats:y,logger:s.logger,self:s});U=HYe(i,f8s)+HYe(c,l8s)+HYe(f,u8s)+HYe(p,d8s)+U,a.processCode&&(U=a.processCode(U,B));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,o8s,i8s,s8s),i[0]=$}catch(se){throw s.logger.error("Error compiling schema, function code:",U),se}return $.schema=B,$.errors=null,$.refs=n,$.refVal=i,$.root=G?$:P,H&&($.$async=!0),a.sourceCode===!0&&($.source={code:U,patterns:c,defaults:f}),$}function T(B,P,q){P=qYe.url(B,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,B))}if($===void 0)I(P);else return k(P,$),w($,H)}function D(B,P){var q=i.length;return i[q]=P,n[B]=q,"refVal"+q}function I(B){delete n[B]}function k(B,P){var q=n[B];i[q]=P}function w(B,P){return typeof B=="object"||typeof B=="boolean"?{code:P,schema:B,inline:!0}:{code:P,$async:B&&!!B.$async}}function N(B){var P=u[B];return P===void 0&&(P=u[B]=c.length,c[P]=B),"pattern"+P}function O(B){switch(typeof B){case"boolean":case"number":return""+B;case"string":return VYe.toQuotedString(B);case"object":if(B===null)return"null";var P=n8s(B),q=d[P];return q===void 0&&(q=d[P]=f.length,f[q]=B),"default"+q}}function M(B,P,q,F){if(s._opts.validateSchema!==!1){var G=B.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=B.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=B.definition.compile,se=B.definition.inline,J=B.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,B.keyword,P,q);else if(fe=B.definition.validate,!fe)return;if(fe===void 0)throw new Error('custom keyword "'+B.keyword+'"failed to compile');var Ae=p.length;return p[Ae]=fe,{code:"customRule"+Ae,validate:fe}}}function a8s(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 c8s(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 l8s(t,e){return"var pattern"+t+" = new RegExp("+VYe.toQuotedString(e[t])+");"}function u8s(t){return"var default"+t+" = defaults["+t+"];"}function f8s(t,e){return e[t]===void 0?"":"var refVal"+t+" = refVal["+t+"];"}function d8s(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((Wyl,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((zyl,Qwn)=>{"use strict";var p8s=Cj(),h8s=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,m8s=[0,31,28,31,30,31,30,31,31,30,31,30,31],g8s=/^(\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,y8s=/^(?:[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,A8s=/^(?:[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,kwn=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Bwn=/^#(?:\/(?:[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",p8s.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":kwn,"json-pointer-uri-fragment":Bwn,"relative-json-pointer":Mwn};jYe.full={date:Lwn,time:Uwn,"date-time":E8s,uri:x8s,"uri-reference":A8s,"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":kwn,"json-pointer-uri-fragment":Bwn,"relative-json-pointer":Mwn};function v8s(t){return t%4===0&&(t%100!==0||t%400===0)}function Lwn(t){var e=t.match(h8s);if(!e)return!1;var r=+e[1],o=+e[2],s=+e[3];return o>=1&&o<=12&&s>=1&&s<=(o==2&&v8s(r)?29:m8s[o])}function Uwn(t,e){var r=t.match(g8s);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 b8s=/t|\s/i;function E8s(t){var e=t.split(b8s);return e.length==2&&Lwn(e[0])&&Uwn(e[1],!0)}var S8s=/\/|:/;function x8s(t){return S8s.test(t)&&y8s.test(t)}var _8s=/[^\\]\\Z/;function Fwn(t){if(_8s.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var Vwn=E((Kyl,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((Yyl,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((Jyl,$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(k){return e.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0||k===!1:e.util.schemaHasRules(k,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((Xyl,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((Zyl,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((eAl,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 k=e.validate(m);m.baseId=x,e.util.varOccurences(k,b)<2?s+=" "+e.util.varReplace(k,b,I)+" ":s+=" var "+b+" = "+I+"; "+k+" ",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 N=s;return s=w.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+N+"]); ":s+=" validate.errors = ["+N+"]; return false; ":s+=" var err = "+N+"; 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((tAl,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 k,w=-1,N=I.length-1;w<N;){k=I[w+=1],w&&(s+=" || ");var O=e.util.getProperty(k),M=d+O;s+=" ( ( "+M+" === undefined ",v&&(s+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(k)+"') "),s+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?k:O)+") ) "}s+=")) { ";var B="missing"+a,P="' + "+B+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(T,B,!0):T+" + "+B);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 k,H=-1,U=G.length-1;H<U;){k=G[H+=1];var O=e.util.getProperty(k),P=e.util.escapeQuotes(k),M=d+O;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(T,k,e.opts.jsonPointers)),s+=" if ( "+M+" === undefined ",v&&(s+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(k)+"') "),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((rAl,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((nAl,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((iAl,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((oAl,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 k=s;s=I.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+=" } ",u=D,f&&(y+="}",s+=" else { ")}var w=n;if(w){for(var N,O=-1,M=w.length-1;O<M;)if(N=w[O+=1],e.opts.strictKeywords?typeof N=="object"&&Object.keys(N).length>0||N===!1:e.util.schemaHasRules(N,e.RULES.all)){s+=" "+g+" = true; if ("+d+".length > "+O+") { ";var B=d+"["+O+"]";m.schema=N,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,B)+" ":s+=" var "+b+" = "+B+"; "+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 B=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,B)+" ":s+=" var "+b+" = "+B+"; "+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 B=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,B)+" ":s+=" var "+b+" = "+B+"; "+P+" ",f&&(s+=" if (!"+g+") break; "),s+=" }"}return f&&(s+=" "+y+" if ("+h+" == errors) {"),s}});var iQt=E((sAl,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,k="exclIsNumber"+a,w="op"+a,N="' + "+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 k=typeof g=="number",N=v;if(k&&p){var w="'"+N+"'";s+=" if ( ",p&&(s+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "),s+=" ( "+h+" === undefined || "+g+" "+v+"= "+h+" ? "+d+" "+b+"= "+g+" : "+d+" "+b+" "+h+" ) || "+d+" !== "+d+") { "}else{k&&n===void 0?(D=!0,x=y,u=e.errSchemaPath+"/"+y,h=g,b+="="):(k&&(h=Math[m?"min":"max"](g,n)),g===(k?h:!0)?(D=!0,x=y,u=e.errSchemaPath+"/"+y,b+="="):(D=!1,N+="="));var w="'"+N+"'";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 "+N+" ",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((aAl,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((cAl,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((lAl,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((uAl,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((fAl,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((dAl,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,k=T.length-1;I<k;)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((pAl,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((hAl,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),k=e.schema.additionalProperties,w=T.length||I.length,N=k===!1,O=typeof k=="object"&&Object.keys(k).length,M=e.opts.removeAdditional,B=N||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;"),B){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)),N)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=k,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=k,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((mAl,_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,k=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,N=e.compositeRule;e.compositeRule=h.compositeRule=!0;var O=e.validate(h);h.baseId=k,e.util.varOccurences(O,T)<2?s+=" "+e.util.varReplace(O,T,w)+" ":s+=" var "+T+" = "+w+"; "+O+" ",e.compositeRule=h.compositeRule=N,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((gAl,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,k=e.opts.ownProperties;if(f)if(s+=" var missing"+a+"; ",I){h||(s+=" var "+y+" = validate.schema"+c+"; ");var w="i"+a,N="schema"+a+"["+w+"]",O="' + "+N+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(D,N,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 ",k&&(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 B=s;s=M.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+=" } 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 ",k&&(s+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(q)+"') "),s+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?q:G)+") ) "}s+=") { ";var N="missing"+a,O="' + "+N+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(D,N,!0):D+" + "+N);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 B=s;s=M.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+=" } else { "}else if(I){h||(s+=" var "+y+" = validate.schema"+c+"; ");var w="i"+a,N="schema"+a+"["+w+"]",O="' + "+N+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(D,N,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 ",k&&(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 ",k&&(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((yAl,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((AAl,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 k5n=E((vAl,P5n)=>{"use strict";var N5n=R5n(),cQt=Cj().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((bAl,M5n)=>{"use strict";var B5n=["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<B5n.length;a++){var i=B5n[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((EAl,F5n)=>{"use strict";var C8s=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 C8s)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((SAl,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,k,w;if(y&&b.$data){w="keywordValidate"+a;var N=b.validateSchema;s+=" var "+v+" = RULES.custom['"+r+"'].definition; var "+w+" = "+v+".validate;"}else{if(k=e.useCustomRule(A,n,e.schema,e),!k)return;g="validate.schema"+c,w=k.code,T=b.compile,D=b.inline,I=b.macro}var O=w+".errors",M="i"+a,B="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 { ",N&&(x+="}",s+=" "+h+" = "+v+".validateSchema("+g+"); if ("+h+") { ")),D)b.statements?s+=" "+k.validate+" ":s+=" "+h+" = "+k.validate+"; ";else if(I){var q=e.util.copy(e),x="";q.level++;var F="valid"+q.level;q.schema=k.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 "+B+" = vErrors["+M+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+B+".schemaPath === undefined) { "+B+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(s+=" "+B+".schema = "+g+"; "+B+".data = "+p+"; "),s+=" } "):b.errors===!1?s+=" "+fe+" ":(s+=" if ("+m+" == errors) { "+fe+" } else { for (var "+M+"="+m+"; "+M+"<errors; "+M+"++) { var "+B+" = vErrors["+M+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+B+".schemaPath === undefined) { "+B+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(s+=" "+B+".schema = "+g+"; "+B+".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 "+B+" = vErrors["+M+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; "+B+'.schemaPath = "'+u+'"; ',e.opts.verbose&&(s+=" "+B+".schema = "+g+"; "+B+".data = "+p+"; "),s+=" } } else { "+fe+" } "),s+=" } ",f&&(s+=" else { ")}return s}});var lQt=E((xAl,T8s)=>{T8s.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((_Al,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((CAl,$5n)=>{"use strict";var w8s=/^[a-z_$][a-z0-9_$-]*$/i,I8s=H5n(),D8s=j5n();$5n.exports={add:O8s,get:R8s,remove:N8s,validate:uQt};function O8s(t,e){var r=this.RULES;if(r.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!w8s.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:I8s,implements:u.implements};f.rules.push(h),r.custom[n]=h}return this}function R8s(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1}function N8s(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(D8s,!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((TAl,P8s)=>{P8s.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((wAl,nIn)=>{"use strict";var Y5n=wwn(),Tj=FYe(),k8s=Dwn(),J5n=KFt(),B8s=tQt(),M8s=qwn(),L8s=k5n(),X5n=L5n(),Z5n=Cj();nIn.exports=nh;nh.prototype.validate=F8s;nh.prototype.compile=Q8s;nh.prototype.addSchema=q8s;nh.prototype.addMetaSchema=H8s;nh.prototype.validateSchema=V8s;nh.prototype.getSchema=j8s;nh.prototype.removeSchema=W8s;nh.prototype.addFormat=tDs;nh.prototype.errorsText=eDs;nh.prototype._addSchema=z8s;nh.prototype._compile=K8s;nh.prototype.compileAsync=Q5n();var zYe=W5n();nh.prototype.addKeyword=zYe.add;nh.prototype.getKeyword=zYe.get;nh.prototype.removeKeyword=zYe.remove;nh.prototype.validateKeyword=zYe.validate;var eIn=QYe();nh.ValidationError=eIn.Validation;nh.MissingRefError=eIn.MissingRef;nh.$dataMetaSchema=X5n;var WYe="http://json-schema.org/draft-07/schema",K5n=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],U8s=["/properties"];function nh(t){if(!(this instanceof nh))return new nh(t);t=this._opts=Z5n.copy(t)||{},aDs(this),this._schemas={},this._refs={},this._fragments={},this._formats=M8s(t.format),this._cache=t.cache||new k8s,this._loadingSchemas={},this._compilations=[],this.RULES=L8s(),this._getId=Y8s(t),t.loopRequired=t.loopRequired||1/0,t.errorDataPath=="property"&&(t._errorDataPathProperty=!0),t.serialize===void 0&&(t.serialize=B8s),this._metaOpts=sDs(this),t.formats&&iDs(this),t.keywords&&oDs(this),rDs(this),typeof t.meta=="object"&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),nDs(this)}function F8s(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 Q8s(t,e){var r=this._addSchema(t,void 0,e);return r.validate||this._compile(r)}function q8s(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=Tj.normalizeId(e||a),rIn(this,e),this._schemas[e]=this._addSchema(t,r,o,!0),this}function H8s(t,e,r){return this.addSchema(t,e,r,!0),this}function V8s(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||G8s(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 G8s(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 j8s(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 $8s(this,t)}}function $8s(t,e){var r=Tj.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=Tj.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function W8s(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=Tj.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 z8s(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=Tj.normalizeId(this._getId(t));n&&o&&rIn(this,n);var c=this._opts.validateSchema!==!1&&!e,u;c&&!(u=n&&n==Tj.normalizeId(t.$schema))&&this.validateSchema(t,!0);var f=Tj.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 K8s(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 Y8s(t){switch(t.schemaId){case"auto":return Z8s;case"id":return J8s;default:return X8s}}function J8s(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function X8s(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function Z8s(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 eDs(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 tDs(t,e){return typeof e=="string"&&(e=new RegExp(e)),this._formats[t]=e,this}function rDs(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,U8s)),t.addMetaSchema(r,WYe,!0),t._refs["http://json-schema.org/schema"]=WYe}}function nDs(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 iDs(t){for(var e in t._opts.formats){var r=t._opts.formats[e];t.addFormat(e,r)}}function oDs(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 sDs(t){for(var e=Z5n.copy(t._opts),r=0;r<K5n.length;r++)delete e[K5n[r]];return e}function aDs(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,$E,Gie=j(()=>{nwn();EL();oIn=we(iIn(),1),$E=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:Hie,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"},_j,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}},_j,r)}async getPrompt(e,r){return this.request({method:"prompts/get",params:e},S3e,r)}async listPrompts(e,r){return this.request({method:"prompts/list",params:e},E3e,r)}async listResources(e,r){return this.request({method:"resources/list",params:e},kFt,r)}async listResourceTemplates(e,r){return this.request({method:"resources/templates/list",params:e},BFt,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},_j,r)}async unsubscribeResource(e,r){return this.request({method:"resources/unsubscribe",params:e},_j,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 rC(tC.InvalidRequest,`Tool ${e.name} has an output schema but did not return structured content`);if(s.structuredContent)try{if(!a(s.structuredContent))throw new rC(tC.InvalidParams,`Structured content does not match the tool's output schema: ${this._ajv.errorsText(a.errors)}`)}catch(i){throw i instanceof rC?i:new rC(tC.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((RAl,lIn)=>{lIn.exports=cIn;cIn.sync=lDs;var sIn=me("fs");function cDs(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:cDs(e,r)}function cIn(t,e,r){sIn.stat(t,function(o,s){r(o,o?!1:aIn(s,t,e))})}function lDs(t,e){return aIn(sIn.statSync(t),t,e)}});var mIn=E((NAl,hIn)=>{hIn.exports=dIn;dIn.sync=uDs;var fIn=me("fs");function dIn(t,e,r){fIn.stat(t,function(o,s){r(o,o?!1:pIn(s,e))})}function uDs(t,e){return pIn(fIn.statSync(t),e)}function pIn(t,e){return t.isFile()&&fDs(t,e)}function fDs(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 PAl=me("fs"),KYe;process.platform==="win32"||global.TESTING_WINDOWS?KYe=uIn():KYe=mIn();gIn.exports=dQt;dQt.sync=dDs;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 dDs(t,e){try{return KYe.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var _In=E((BAl,xIn)=>{var jie=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",AIn=me("path"),pDs=jie?";":":",vIn=yIn(),bIn=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),EIn=(t,e)=>{let r=e.colon||pDs,o=t.match(/\//)||jie&&t.match(/\\/)?[""]:[...jie?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],s=jie?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=jie?s.split(r):[""];return jie&&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)},hDs=(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=hDs});var TIn=E((MAl,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((LAl,DIn)=>{"use strict";var wIn=me("path"),mDs=_In(),gDs=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=mDs.sync(t.command,{path:r[gDs({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 yDs(t){return IIn(t)||IIn(t,!0)}DIn.exports=yDs});var RIn=E((UAl,mQt)=>{"use strict";var hQt=/([()\][%!^"`<>&|;, *?])/g;function ADs(t){return t=t.replace(hQt,"^$1"),t}function vDs(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=ADs;mQt.exports.argument=vDs});var PIn=E((FAl,NIn)=>{"use strict";NIn.exports=/^#!(.*)/});var BIn=E((QAl,kIn)=>{"use strict";var bDs=PIn();kIn.exports=(t="")=>{let e=t.match(bDs);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((qAl,MIn)=>{"use strict";var gQt=me("fs"),EDs=BIn();function SDs(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 EDs(r.toString())}MIn.exports=SDs});var qIn=E((HAl,QIn)=>{"use strict";var xDs=me("path"),UIn=OIn(),FIn=RIn(),_Ds=LIn(),CDs=process.platform==="win32",TDs=/\.(?:com|exe)$/i,wDs=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function IDs(t){t.file=UIn(t);let e=t.file&&_Ds(t.file);return e?(t.args.unshift(t.file),t.command=e,UIn(t)):t.file}function DDs(t){if(!CDs)return t;let e=IDs(t),r=!TDs.test(e);if(t.options.forceShell||r){let o=wDs.test(e);t.command=xDs.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 ODs(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:DDs(o)}QIn.exports=ODs});var GIn=E((VAl,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 RDs(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 NDs(t,e){return yQt&&t===1&&!e.file?AQt(e.original,"spawnSync"):null}VIn.exports={hookChildProcess:RDs,verifyENOENT:HIn,verifyENOENTSync:NDs,notFoundError:AQt}});var WIn=E((GAl,$ie)=>{"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 PDs(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}$ie.exports=$In;$ie.exports.spawn=$In;$ie.exports.sync=PDs;$ie.exports._parse=vQt;$ie.exports._enoent=bQt});function kDs(t){return bL.parse(JSON.parse(t))}function zIn(t){return JSON.stringify(t)+`
|
|
905
905
|
`}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(`
|
|
906
906
|
`);if(e===-1)return null;let r=this._buffer.toString("utf8",0,e).replace(/\r$/,"");return this._buffer=this._buffer.subarray(e+1),kDs(r)}clear(){this._buffer=void 0}}});import JYe from"node:process";import{PassThrough as BDs}from"node:stream";function LDs(){let t={};for(let e of MDs){let r=JYe.env[e];r!==void 0&&(r.startsWith("()")||(t[e]=r))}return t}function UDs(){return"type"in JYe}var YIn,MDs,Wie,EQt=j(()=>{YIn=we(WIn(),1);KIn();MDs=JYe.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"];Wie=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 BDs)}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:{...LDs(),...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"&&UDs(),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]=FDs(`${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}
|
|
907
907
|
`;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(`
|
|
908
908
|
`)?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 FDs(t){let e=[],r="",o=0;for(;o<t.length;){let s=t.indexOf("\r",o),a=t.indexOf(`
|
|
909
909
|
`,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]===`
|
|
910
|
-
`&&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 QDs(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 qDs(){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,bc,ug,ip,$O,rb,wj,zie,eJe,rJe,T3e,Jie,w3e,CL,Kie,Xie,Yie,_3e,T6,CQt,TQt,wQt,XIn,IQt,DQt,C3e,OQt,RQt,Ij,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),bc=(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),Ij=class extends EventTarget{constructor(e,r){var o,s;super(),ug(this,T6),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,ug(this,rb),ug(this,wj),ug(this,zie),ug(this,eJe),ug(this,rJe),ug(this,T3e),ug(this,Jie),ug(this,w3e,null),ug(this,CL),ug(this,Kie),ug(this,Xie,null),ug(this,Yie,null),ug(this,_3e,null),ug(this,TQt,async a=>{var i;bc(this,Kie).reset();let{body:n,redirected:c,status:u,headers:f}=a;if(u===204){$O(this,T6,C3e).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(c?ip(this,zie,new URL(a.url)):ip(this,zie,void 0),u!==200){$O(this,T6,C3e).call(this,`Non-200 status code (${u})`,u);return}if(!(f.get("content-type")||"").startsWith("text/event-stream")){$O(this,T6,C3e).call(this,'Invalid content type, expected "text/event-stream"',u);return}if(bc(this,rb)===this.CLOSED)return;ip(this,rb,this.OPEN);let d=new Event("open");if((i=bc(this,_3e))==null||i.call(this,d),this.dispatchEvent(d),typeof n!="object"||!n||!("getReader"in n)){$O(this,T6,C3e).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&&bc(this,Kie).feed(p.decode(g,{stream:!y})),y&&(m=!1,bc(this,Kie).reset(),$O(this,T6,OQt).call(this))}while(m)}),ug(this,wQt,a=>{ip(this,CL,void 0),!(a.name==="AbortError"||a.type==="aborted")&&$O(this,T6,OQt).call(this,_Qt(a))}),ug(this,IQt,a=>{typeof a.id=="string"&&ip(this,w3e,a.id);let i=new MessageEvent(a.event||"message",{data:a.data,origin:bc(this,zie)?bc(this,zie).origin:bc(this,wj).origin,lastEventId:a.id||""});bc(this,Yie)&&(!a.event||a.event==="message")&&bc(this,Yie).call(this,i),this.dispatchEvent(i)}),ug(this,DQt,a=>{ip(this,T3e,a)}),ug(this,RQt,()=>{ip(this,Jie,void 0),bc(this,rb)===this.CONNECTING&&$O(this,T6,CQt).call(this)});try{if(e instanceof URL)ip(this,wj,e);else if(typeof e=="string")ip(this,wj,new URL(e,qDs()));else throw new Error("Invalid URL")}catch{throw QDs("An invalid or illegal string was specified")}ip(this,Kie,ZYe({onEvent:bc(this,IQt),onRetry:bc(this,DQt)})),ip(this,rb,this.CONNECTING),ip(this,T3e,3e3),ip(this,rJe,(o=r?.fetch)!=null?o:globalThis.fetch),ip(this,eJe,(s=r?.withCredentials)!=null?s:!1),$O(this,T6,CQt).call(this)}get readyState(){return bc(this,rb)}get url(){return bc(this,wj).href}get withCredentials(){return bc(this,eJe)}get onerror(){return bc(this,Xie)}set onerror(e){ip(this,Xie,e)}get onmessage(){return bc(this,Yie)}set onmessage(e){ip(this,Yie,e)}get onopen(){return bc(this,_3e)}set onopen(e){ip(this,_3e,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(){bc(this,Jie)&&clearTimeout(bc(this,Jie)),bc(this,rb)!==this.CLOSED&&(bc(this,CL)&&bc(this,CL).abort(),ip(this,rb,this.CLOSED),ip(this,CL,void 0))}};rb=new WeakMap,wj=new WeakMap,zie=new WeakMap,eJe=new WeakMap,rJe=new WeakMap,T3e=new WeakMap,Jie=new WeakMap,w3e=new WeakMap,CL=new WeakMap,Kie=new WeakMap,Xie=new WeakMap,Yie=new WeakMap,_3e=new WeakMap,T6=new WeakSet,CQt=function(){ip(this,rb,this.CONNECTING),ip(this,CL,new AbortController),bc(this,rJe)(bc(this,wj),$O(this,T6,XIn).call(this)).then(bc(this,TQt)).catch(bc(this,wQt))},TQt=new WeakMap,wQt=new WeakMap,XIn=function(){var t;let e={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...bc(this,w3e)?{"Last-Event-ID":bc(this,w3e)}:void 0},cache:"no-store",signal:(t=bc(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,C3e=function(t,e){var r;bc(this,rb)!==this.CLOSED&&ip(this,rb,this.CLOSED);let o=new tJe("error",{code:e,message:t});(r=bc(this,Xie))==null||r.call(this,o),this.dispatchEvent(o)},OQt=function(t,e){var r;if(bc(this,rb)===this.CLOSED)return;ip(this,rb,this.CONNECTING);let o=new tJe("error",{code:e,message:t});(r=bc(this,Xie))==null||r.call(this,o),this.dispatchEvent(o),ip(this,Jie,setTimeout(bc(this,RQt),bc(this,T3e)))},RQt=new WeakMap,Ij.CONNECTING=0,Ij.OPEN=1,Ij.CLOSED=2});async function HDs(t){return(await PQt).getRandomValues(new Uint8Array(t))}async function VDs(t){let e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",r="",o=await HDs(t);for(let s=0;s<t;s++){let a=o[s]%e.length;r+=e[a]}return r}async function GDs(t){return await VDs(t)}async function jDs(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 kQt(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;let e=await GDs(t),r=await jDs(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,BQt,$Ds,n8n,MQt,i8n,WDs,zDs,o8n,r3l,n3l,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(),BQt=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(),$Ds=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=$Ds.merge(BQt.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()}),WDs=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(),zDs=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=WDs.merge(zDs),r3l=re.object({error:re.string(),error_description:re.string().optional()}).strip(),n3l=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,I3e,Dj,Oj,Rj,D3e,O3e,R3e,WO,N3e,P3e,k3e,B3e,M3e,L3e,U3e,F3e,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}},I3e=class extends Dm{};I3e.errorCode="invalid_request";Dj=class extends Dm{};Dj.errorCode="invalid_client";Oj=class extends Dm{};Oj.errorCode="invalid_grant";Rj=class extends Dm{};Rj.errorCode="unauthorized_client";D3e=class extends Dm{};D3e.errorCode="unsupported_grant_type";O3e=class extends Dm{};O3e.errorCode="invalid_scope";R3e=class extends Dm{};R3e.errorCode="access_denied";WO=class extends Dm{};WO.errorCode="server_error";N3e=class extends Dm{};N3e.errorCode="temporarily_unavailable";P3e=class extends Dm{};P3e.errorCode="unsupported_response_type";k3e=class extends Dm{};k3e.errorCode="unsupported_token_type";B3e=class extends Dm{};B3e.errorCode="invalid_token";M3e=class extends Dm{};M3e.errorCode="method_not_allowed";L3e=class extends Dm{};L3e.errorCode="too_many_requests";U3e=class extends Dm{};U3e.errorCode="invalid_client_metadata";F3e=class extends Dm{};F3e.errorCode="insufficient_scope";l8n={[I3e.errorCode]:I3e,[Dj.errorCode]:Dj,[Oj.errorCode]:Oj,[Rj.errorCode]:Rj,[D3e.errorCode]:D3e,[O3e.errorCode]:O3e,[R3e.errorCode]:R3e,[WO.errorCode]:WO,[N3e.errorCode]:N3e,[P3e.errorCode]:P3e,[k3e.errorCode]:k3e,[B3e.errorCode]:B3e,[M3e.errorCode]:M3e,[L3e.errorCode]:L3e,[U3e.errorCode]:U3e,[F3e.errorCode]:F3e}});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":KDs(s,a,r);return;case"client_secret_post":YDs(s,a,o);return;case"none":JDs(s,o);return;default:throw new Error(`Unsupported client authentication method: ${t}`)}}function KDs(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 YDs(t,e,r){r.set("client_id",t),e&&r.set("client_secret",e)}function JDs(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 Dj||s instanceof Rj)return await((r=t.invalidateCredentials)===null||r===void 0?void 0:r.call(t,"all")),await UQt(t,e);if(s instanceof Oj)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 ZDs(e,{resourceMetadataUrl:s},a),i.authorization_servers&&i.authorization_servers.length>0&&(n=i.authorization_servers[0])}catch{}n||(n=e);let c=await XDs(e,t,i),u=await i9s(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 s9s(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 o9s(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 XDs(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 Q3e(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 ZDs(t,e,r=fetch){let o=await r9s(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 e9s(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 t9s(t,e){return!t||t.status>=400&&t.status<500&&e!=="/"}async function r9s(t,e,r,o){var s,a;let i=new URL(t),n=(s=o?.protocolVersion)!==null&&s!==void 0?s:Hie,c;if(o?.metadataUrl)c=new URL(o.metadataUrl);else{let f=e9s(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&&t9s(u,i.pathname)){let f=new URL(`/.well-known/${e}`,i);u=await f8n(f,n,r)}return u}function n9s(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 i9s(t,{fetchFn:e=fetch,protocolVersion:r=Hie}={}){var o;let s={"MCP-Protocol-Version":r},a=n9s(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 BQt.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 o9s(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 kQt(),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 s9s(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 nb,nJe=j(()=>{t8n();EL();LQt();LQt();c8n();u8n();nb=class extends Error{constructor(e){super(e??"Unauthorized")}}});var VQt,Zie,h8n=j(()=>{e8n();EL();nJe();VQt=class extends Error{constructor(e,r,o){super(`SSE error: ${r}`),this.code=e,this.event=o}},Zie=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 nb("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 nb;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 Ij(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=Q3e(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 nb("No auth provider");if(await TL(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new nb("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=Q3e(n),await TL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new nb;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 a9s,q3e,wL,GQt=j(()=>{EL();nJe();m8n();a9s={initialReconnectionDelay:1e3,maxReconnectionDelay:3e4,reconnectionDelayGrowFactor:1.5,maxRetries:2},q3e=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:a9s}async _authThenStart(){var e;if(!this._authProvider)throw new nb("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 nb;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 q3e(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&&v3e(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 nb("No auth provider");if(await TL(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new nb("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=Q3e(d),await TL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new nb;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 q3e(-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 q3e(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 c9s}from"node:fs/promises";var H3e,V3e,Nj,jQt=j(()=>{"use strict";vZ();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"})(H3e||(H3e={}));V3e=class extends Error{code;constructor(e,r){super(r),this.code=e}},Nj=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||mk.default}async start(){if(this._isClosed)throw new Error(R.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(R.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 V3e(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 V3e(void 0,`Failed to create WebSocket: ${i}`))}})}async finishAuth(e){if(!this._authProvider)throw new Error(R.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(R.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===mk.default.OPEN?this._websocket.close():this.onclose?.()}async send(e){if(this._isClosed)throw new Error(R.t("websocketClient.errors.transportClosed"));if(!this._websocket)throw new Error(R.t("websocketClient.errors.transportNotStarted"));if(this._websocket.readyState!==mk.default.OPEN)throw new Error(R.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 V3e(void 0,`Failed to send message: ${r instanceof Error?r.message:String(r)}`)}}async _transformRequest(e){if(e.method==="initialize")return{type:H3e.CLI_CONNECT,id:e.id,timestamp:Date.now(),payload:{clientInfo:{version:"0.3.15-beta.0",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:H3e.SHOW_DIFF,id:e.id,timestamp:Date.now(),payload:{originalText:await c9s(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:H3e.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(r0e(),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(R.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(R.t("mcp.auth.failedToGetAccessToken"));return}return{access_token:r.token,token_type:"Bearer"}}saveTokens(e){}redirectToAuthorization(e){}saveCodeVerifier(e){}codeVerifier(){return""}}});import{execFile as l9s}from"node:child_process";import{promisify as u9s}from"node:util";import{platform as f9s}from"node:os";import{URL as d9s}from"node:url";function p9s(t){let e;try{e=new d9s(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){p9s(t);let e=f9s(),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=u9s(l9s)});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=h9s(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 h9s(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 eoe}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 eoe.mkdir(e,{recursive:!0})}static async loadTokens(){let e=new Map;try{let r=this.getTokenFilePath(),o=await eoe.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(R.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 eoe.writeFile(u,JSON.stringify(c,null,2),{mode:384})}catch(f){throw console.error(R.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 eoe.unlink(s):await eoe.writeFile(s,JSON.stringify(o,null,2),{mode:384})}catch(a){console.error(R.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 eoe.unlink(e)}catch(e){e.code!=="ENOENT"&&console.error(R.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(R.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(R.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(R.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(R.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 G3e from"node:crypto";import{URL as WQt}from"node:url";var WE,zQt=j(()=>{"use strict";b8n();lJe();Ed();uJe();Xi();WE=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(R.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=G3e.randomBytes(32).toString("base64url"),r=G3e.createHash("sha256").update(e).digest("base64url"),o=G3e.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(R.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(`
|
|
910
|
+
`&&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 QDs(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 qDs(){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,bc,ug,ip,$O,rb,wj,zie,eJe,rJe,T3e,Jie,w3e,CL,Kie,Xie,Yie,_3e,T6,CQt,TQt,wQt,XIn,IQt,DQt,C3e,OQt,RQt,Ij,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),bc=(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),Ij=class extends EventTarget{constructor(e,r){var o,s;super(),ug(this,T6),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,ug(this,rb),ug(this,wj),ug(this,zie),ug(this,eJe),ug(this,rJe),ug(this,T3e),ug(this,Jie),ug(this,w3e,null),ug(this,CL),ug(this,Kie),ug(this,Xie,null),ug(this,Yie,null),ug(this,_3e,null),ug(this,TQt,async a=>{var i;bc(this,Kie).reset();let{body:n,redirected:c,status:u,headers:f}=a;if(u===204){$O(this,T6,C3e).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(c?ip(this,zie,new URL(a.url)):ip(this,zie,void 0),u!==200){$O(this,T6,C3e).call(this,`Non-200 status code (${u})`,u);return}if(!(f.get("content-type")||"").startsWith("text/event-stream")){$O(this,T6,C3e).call(this,'Invalid content type, expected "text/event-stream"',u);return}if(bc(this,rb)===this.CLOSED)return;ip(this,rb,this.OPEN);let d=new Event("open");if((i=bc(this,_3e))==null||i.call(this,d),this.dispatchEvent(d),typeof n!="object"||!n||!("getReader"in n)){$O(this,T6,C3e).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&&bc(this,Kie).feed(p.decode(g,{stream:!y})),y&&(m=!1,bc(this,Kie).reset(),$O(this,T6,OQt).call(this))}while(m)}),ug(this,wQt,a=>{ip(this,CL,void 0),!(a.name==="AbortError"||a.type==="aborted")&&$O(this,T6,OQt).call(this,_Qt(a))}),ug(this,IQt,a=>{typeof a.id=="string"&&ip(this,w3e,a.id);let i=new MessageEvent(a.event||"message",{data:a.data,origin:bc(this,zie)?bc(this,zie).origin:bc(this,wj).origin,lastEventId:a.id||""});bc(this,Yie)&&(!a.event||a.event==="message")&&bc(this,Yie).call(this,i),this.dispatchEvent(i)}),ug(this,DQt,a=>{ip(this,T3e,a)}),ug(this,RQt,()=>{ip(this,Jie,void 0),bc(this,rb)===this.CONNECTING&&$O(this,T6,CQt).call(this)});try{if(e instanceof URL)ip(this,wj,e);else if(typeof e=="string")ip(this,wj,new URL(e,qDs()));else throw new Error("Invalid URL")}catch{throw QDs("An invalid or illegal string was specified")}ip(this,Kie,ZYe({onEvent:bc(this,IQt),onRetry:bc(this,DQt)})),ip(this,rb,this.CONNECTING),ip(this,T3e,3e3),ip(this,rJe,(o=r?.fetch)!=null?o:globalThis.fetch),ip(this,eJe,(s=r?.withCredentials)!=null?s:!1),$O(this,T6,CQt).call(this)}get readyState(){return bc(this,rb)}get url(){return bc(this,wj).href}get withCredentials(){return bc(this,eJe)}get onerror(){return bc(this,Xie)}set onerror(e){ip(this,Xie,e)}get onmessage(){return bc(this,Yie)}set onmessage(e){ip(this,Yie,e)}get onopen(){return bc(this,_3e)}set onopen(e){ip(this,_3e,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(){bc(this,Jie)&&clearTimeout(bc(this,Jie)),bc(this,rb)!==this.CLOSED&&(bc(this,CL)&&bc(this,CL).abort(),ip(this,rb,this.CLOSED),ip(this,CL,void 0))}};rb=new WeakMap,wj=new WeakMap,zie=new WeakMap,eJe=new WeakMap,rJe=new WeakMap,T3e=new WeakMap,Jie=new WeakMap,w3e=new WeakMap,CL=new WeakMap,Kie=new WeakMap,Xie=new WeakMap,Yie=new WeakMap,_3e=new WeakMap,T6=new WeakSet,CQt=function(){ip(this,rb,this.CONNECTING),ip(this,CL,new AbortController),bc(this,rJe)(bc(this,wj),$O(this,T6,XIn).call(this)).then(bc(this,TQt)).catch(bc(this,wQt))},TQt=new WeakMap,wQt=new WeakMap,XIn=function(){var t;let e={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...bc(this,w3e)?{"Last-Event-ID":bc(this,w3e)}:void 0},cache:"no-store",signal:(t=bc(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,C3e=function(t,e){var r;bc(this,rb)!==this.CLOSED&&ip(this,rb,this.CLOSED);let o=new tJe("error",{code:e,message:t});(r=bc(this,Xie))==null||r.call(this,o),this.dispatchEvent(o)},OQt=function(t,e){var r;if(bc(this,rb)===this.CLOSED)return;ip(this,rb,this.CONNECTING);let o=new tJe("error",{code:e,message:t});(r=bc(this,Xie))==null||r.call(this,o),this.dispatchEvent(o),ip(this,Jie,setTimeout(bc(this,RQt),bc(this,T3e)))},RQt=new WeakMap,Ij.CONNECTING=0,Ij.OPEN=1,Ij.CLOSED=2});async function HDs(t){return(await PQt).getRandomValues(new Uint8Array(t))}async function VDs(t){let e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",r="",o=await HDs(t);for(let s=0;s<t;s++){let a=o[s]%e.length;r+=e[a]}return r}async function GDs(t){return await VDs(t)}async function jDs(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 kQt(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;let e=await GDs(t),r=await jDs(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,BQt,$Ds,n8n,MQt,i8n,WDs,zDs,o8n,r3l,n3l,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(),BQt=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(),$Ds=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=$Ds.merge(BQt.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()}),WDs=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(),zDs=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=WDs.merge(zDs),r3l=re.object({error:re.string(),error_description:re.string().optional()}).strip(),n3l=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,I3e,Dj,Oj,Rj,D3e,O3e,R3e,WO,N3e,P3e,k3e,B3e,M3e,L3e,U3e,F3e,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}},I3e=class extends Dm{};I3e.errorCode="invalid_request";Dj=class extends Dm{};Dj.errorCode="invalid_client";Oj=class extends Dm{};Oj.errorCode="invalid_grant";Rj=class extends Dm{};Rj.errorCode="unauthorized_client";D3e=class extends Dm{};D3e.errorCode="unsupported_grant_type";O3e=class extends Dm{};O3e.errorCode="invalid_scope";R3e=class extends Dm{};R3e.errorCode="access_denied";WO=class extends Dm{};WO.errorCode="server_error";N3e=class extends Dm{};N3e.errorCode="temporarily_unavailable";P3e=class extends Dm{};P3e.errorCode="unsupported_response_type";k3e=class extends Dm{};k3e.errorCode="unsupported_token_type";B3e=class extends Dm{};B3e.errorCode="invalid_token";M3e=class extends Dm{};M3e.errorCode="method_not_allowed";L3e=class extends Dm{};L3e.errorCode="too_many_requests";U3e=class extends Dm{};U3e.errorCode="invalid_client_metadata";F3e=class extends Dm{};F3e.errorCode="insufficient_scope";l8n={[I3e.errorCode]:I3e,[Dj.errorCode]:Dj,[Oj.errorCode]:Oj,[Rj.errorCode]:Rj,[D3e.errorCode]:D3e,[O3e.errorCode]:O3e,[R3e.errorCode]:R3e,[WO.errorCode]:WO,[N3e.errorCode]:N3e,[P3e.errorCode]:P3e,[k3e.errorCode]:k3e,[B3e.errorCode]:B3e,[M3e.errorCode]:M3e,[L3e.errorCode]:L3e,[U3e.errorCode]:U3e,[F3e.errorCode]:F3e}});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":KDs(s,a,r);return;case"client_secret_post":YDs(s,a,o);return;case"none":JDs(s,o);return;default:throw new Error(`Unsupported client authentication method: ${t}`)}}function KDs(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 YDs(t,e,r){r.set("client_id",t),e&&r.set("client_secret",e)}function JDs(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 Dj||s instanceof Rj)return await((r=t.invalidateCredentials)===null||r===void 0?void 0:r.call(t,"all")),await UQt(t,e);if(s instanceof Oj)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 ZDs(e,{resourceMetadataUrl:s},a),i.authorization_servers&&i.authorization_servers.length>0&&(n=i.authorization_servers[0])}catch{}n||(n=e);let c=await XDs(e,t,i),u=await i9s(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 s9s(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 o9s(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 XDs(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 Q3e(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 ZDs(t,e,r=fetch){let o=await r9s(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 e9s(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 t9s(t,e){return!t||t.status>=400&&t.status<500&&e!=="/"}async function r9s(t,e,r,o){var s,a;let i=new URL(t),n=(s=o?.protocolVersion)!==null&&s!==void 0?s:Hie,c;if(o?.metadataUrl)c=new URL(o.metadataUrl);else{let f=e9s(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&&t9s(u,i.pathname)){let f=new URL(`/.well-known/${e}`,i);u=await f8n(f,n,r)}return u}function n9s(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 i9s(t,{fetchFn:e=fetch,protocolVersion:r=Hie}={}){var o;let s={"MCP-Protocol-Version":r},a=n9s(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 BQt.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 o9s(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 kQt(),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 s9s(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 nb,nJe=j(()=>{t8n();EL();LQt();LQt();c8n();u8n();nb=class extends Error{constructor(e){super(e??"Unauthorized")}}});var VQt,Zie,h8n=j(()=>{e8n();EL();nJe();VQt=class extends Error{constructor(e,r,o){super(`SSE error: ${r}`),this.code=e,this.event=o}},Zie=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 nb("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 nb;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 Ij(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=Q3e(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 nb("No auth provider");if(await TL(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new nb("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=Q3e(n),await TL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new nb;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 a9s,q3e,wL,GQt=j(()=>{EL();nJe();m8n();a9s={initialReconnectionDelay:1e3,maxReconnectionDelay:3e4,reconnectionDelayGrowFactor:1.5,maxRetries:2},q3e=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:a9s}async _authThenStart(){var e;if(!this._authProvider)throw new nb("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 nb;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 q3e(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&&v3e(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 nb("No auth provider");if(await TL(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new nb("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=Q3e(d),await TL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new nb;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 q3e(-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 q3e(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 c9s}from"node:fs/promises";var H3e,V3e,Nj,jQt=j(()=>{"use strict";vZ();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"})(H3e||(H3e={}));V3e=class extends Error{code;constructor(e,r){super(r),this.code=e}},Nj=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||mk.default}async start(){if(this._isClosed)throw new Error(R.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(R.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 V3e(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 V3e(void 0,`Failed to create WebSocket: ${i}`))}})}async finishAuth(e){if(!this._authProvider)throw new Error(R.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(R.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===mk.default.OPEN?this._websocket.close():this.onclose?.()}async send(e){if(this._isClosed)throw new Error(R.t("websocketClient.errors.transportClosed"));if(!this._websocket)throw new Error(R.t("websocketClient.errors.transportNotStarted"));if(this._websocket.readyState!==mk.default.OPEN)throw new Error(R.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 V3e(void 0,`Failed to send message: ${r instanceof Error?r.message:String(r)}`)}}async _transformRequest(e){if(e.method==="initialize")return{type:H3e.CLI_CONNECT,id:e.id,timestamp:Date.now(),payload:{clientInfo:{version:"0.3.15",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:H3e.SHOW_DIFF,id:e.id,timestamp:Date.now(),payload:{originalText:await c9s(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:H3e.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(r0e(),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(R.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(R.t("mcp.auth.failedToGetAccessToken"));return}return{access_token:r.token,token_type:"Bearer"}}saveTokens(e){}redirectToAuthorization(e){}saveCodeVerifier(e){}codeVerifier(){return""}}});import{execFile as l9s}from"node:child_process";import{promisify as u9s}from"node:util";import{platform as f9s}from"node:os";import{URL as d9s}from"node:url";function p9s(t){let e;try{e=new d9s(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){p9s(t);let e=f9s(),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=u9s(l9s)});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=h9s(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 h9s(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 eoe}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 eoe.mkdir(e,{recursive:!0})}static async loadTokens(){let e=new Map;try{let r=this.getTokenFilePath(),o=await eoe.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(R.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 eoe.writeFile(u,JSON.stringify(c,null,2),{mode:384})}catch(f){throw console.error(R.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 eoe.unlink(s):await eoe.writeFile(s,JSON.stringify(o,null,2),{mode:384})}catch(a){console.error(R.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 eoe.unlink(e)}catch(e){e.code!=="ENOENT"&&console.error(R.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(R.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(R.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(R.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(R.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 G3e from"node:crypto";import{URL as WQt}from"node:url";var WE,zQt=j(()=>{"use strict";b8n();lJe();Ed();uJe();Xi();WE=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(R.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=G3e.randomBytes(32).toString("base64url"),r=G3e.createHash("sha256").update(e).digest("base64url"),o=G3e.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(R.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(`
|
|
911
911
|
<html>
|
|
912
912
|
<body>
|
|
913
913
|
<h1>${R.t("mcp.ui.authenticationFailed")}</h1>
|
|
@@ -4421,7 +4421,7 @@ ${Pe.description}`:Pe.subject||Pe.description||"Thinking...",[]),Ee=(0,Tc.useCal
|
|
|
4421
4421
|
`,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=X0c(t,e);return r?{line:o.line+1,column:o.column+1}:o}var Z0c=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??=`${t2c(this.#t.message)}${this.#e===""?" while parsing empty string":""}`;let{codeFrame:e}=this;return`${this.#r}${this.fileName?` in ${this.fileName}`:""}${e?`
|
|
4422
4422
|
|
|
4423
4423
|
${e}
|
|
4424
|
-
`:""}`}set message(e){this.#r=e}#i(e){if(!this.#t)return;let r=this.#e,o=e2c(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}},e2c=(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})},t2c=t=>t.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(e,r,o)=>`"${o}"(${Z0c(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 _1c}from"node:url";function EHi(t){return t instanceof URL?_1c(t):t}var w1c=t=>T1c.resolve(EHi(t)??".","package.json"),I1c=(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 C1c.readFile(w1c(t),"utf8");return I1c(r,e)}async function _Hi(t){let e=await qQi("package.json",t);if(e)return{packageJson:await xHi({...t,cwd:D1c.dirname(e)}),path:e}}import{fileURLToPath as O1c}from"url";import R1c from"path";var N1c=O1c(import.meta.url),P1c=R1c.dirname(N1c),Q2t;async function eq(){if(Q2t)return Q2t;let t=await _Hi({cwd:P1c});if(t)return Q2t=t.packageJson,Q2t}async function tq(){let t=await eq();return"0.3.15
|
|
4424
|
+
`:""}`}set message(e){this.#r=e}#i(e){if(!this.#t)return;let r=this.#e,o=e2c(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}},e2c=(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})},t2c=t=>t.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(e,r,o)=>`"${o}"(${Z0c(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 _1c}from"node:url";function EHi(t){return t instanceof URL?_1c(t):t}var w1c=t=>T1c.resolve(EHi(t)??".","package.json"),I1c=(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 C1c.readFile(w1c(t),"utf8");return I1c(r,e)}async function _Hi(t){let e=await qQi("package.json",t);if(e)return{packageJson:await xHi({...t,cwd:D1c.dirname(e)}),path:e}}import{fileURLToPath as O1c}from"url";import R1c from"path";var N1c=O1c(import.meta.url),P1c=R1c.dirname(N1c),Q2t;async function eq(){if(Q2t)return Q2t;let t=await _Hi({cwd:P1c});if(t)return Q2t=t.packageJson,Q2t}async function tq(){let t=await eq();return"0.3.15"}Ya();gr();import iJ from"node:process";var CHi={name:"about",description:R.t("command.about"),kind:"built-in",action:async t=>{let e=iJ.platform,r=R.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||R.t("aboutCommand.unknown")})`);let o=t.services.config?.getModel()||R.t("aboutCommand.unknown"),s=await tq(),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",rq="\x1B[36m",B1="\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}
|
|
4425
4425
|
${wHi}${R.t("agentsCommand.list.noAgentsFound")}${ou}
|
|
4426
4426
|
`;s="\u{1F7E2} ";let a=`${s}${e}
|
|
4427
4427
|
`;for(let i of t)o?a+=k1c(i):a+=`${H2t}- ${i.agentType}${ou}
|
|
@@ -4464,7 +4464,7 @@ ${B1}${R.t("agentsCommand.list.builtinAgents")}${ou}
|
|
|
4464
4464
|
${B1}${R.t("agentsCommand.list.generalPurpose")}
|
|
4465
4465
|
${ou}`;let c=o.length+s.length;t.ui.addItem({type:"info",text:`${H2t}${R.t("agentsCommand.refresh.success",{count:c})}${ou}
|
|
4466
4466
|
|
|
4467
|
-
${H2t}${n.trim()}${ou}`},Date.now())}catch(e){let r=$r(e);t.ui.addItem({type:"error",text:`${wHi}${R.t("agentsCommand.refresh.error",{error:r})}${ou}`},Date.now())}}},{name:"online",description:R.t("agentsCommand.subCommands.online"),kind:"built-in",action:(t,e)=>({type:"dialog",dialog:"agents-online"})},{name:"install",description:R.t("agentsCommand.subCommands.install"),kind:"built-in",action:(t,e)=>({type:"dialog",dialog:"agent-install"})}]};gr();var DHi={name:"auth",description:R.t("command.auth"),kind:"built-in",action:(t,e)=>({type:"dialog",dialog:"auth"})};G7();import wP from"node:process";import B1c from"node:os";Ya();gr();var Ipe="
|
|
4467
|
+
${H2t}${n.trim()}${ou}`},Date.now())}catch(e){let r=$r(e);t.ui.addItem({type:"error",text:`${wHi}${R.t("agentsCommand.refresh.error",{error:r})}${ou}`},Date.now())}}},{name:"online",description:R.t("agentsCommand.subCommands.online"),kind:"built-in",action:(t,e)=>({type:"dialog",dialog:"agents-online"})},{name:"install",description:R.t("agentsCommand.subCommands.install"),kind:"built-in",action:(t,e)=>({type:"dialog",dialog:"agent-install"})}]};gr();var DHi={name:"auth",description:R.t("command.auth"),kind:"built-in",action:(t,e)=>({type:"dialog",dialog:"auth"})};G7();import wP from"node:process";import B1c from"node:os";Ya();gr();var Ipe="b41761ae (local modifications)";gr();async function M1c(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:R.t("command.bug"),kind:"built-in",action:async(t,e)=>{let r=(e||"").trim(),{config:o}=t.services,s=ij(),a=`${wP.platform} ${wP.version}`,i=R.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()||R.t("bugCommand.unknown"),c=await tq(),u=npe(wP.memoryUsage().rss),f=s.getInMemoryErrors(),d=R.t("bugCommand.noRecentErrors");f.length>0&&(d=f.slice(-3).map(D=>R.t("bugCommand.errorWithTimestamp",{timestamp:D.timestamp,error:D.error})).join(`
|
|
4468
4468
|
|
|
4469
4469
|
`));let p=B1c.userInfo().username,h=T=>{if(!p)return T;let D=new RegExp(`/${p}/`,"g");return T.replace(D,"/user/")},m=`CLI Version: ${c}
|
|
4470
4470
|
Git Commit: ${Ipe}
|
|
@@ -5516,7 +5516,7 @@ ${R.t("gemini.errors.criticalUnhandledRejection")}
|
|
|
5516
5516
|
=========================================
|
|
5517
5517
|
${R.t("gemini.errors.reason",{reason:e})}${e instanceof Error&&e.stack?`
|
|
5518
5518
|
${R.t("gemini.errors.stackTrace")}
|
|
5519
|
-
${e.stack}`:""}`;tc.emit("log-error",o),t||(t=!0,tc.emit("open-debug-console"))})}function hIc(){console.log(R.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.15
|
|
5519
|
+
${e.stack}`:""}`;tc.emit("log-error",o),t||(t=!0,tc.emit("open-debug-console"))})}function hIc(){console.log(R.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.15"}},r=`crash-${Date.now()}-${process.pid}.json`,o=iIc.join(process.cwd(),r);try{lIc.writeFileSync(o,JSON.stringify(e,null,2)),console.error(R.t("gemini.crashDetected",{crashFilePath:o})),console.error(R.t("gemini.coreDumpWillBeGenerated"))}catch(s){console.error(R.t("gemini.failedToWriteCrashFile"),s)}process.abort()}),process.on("warning",t=>{console.warn(R.t("gemini.debug.nodejsWarning"),{name:t.name,message:t.message,stack:t.stack})}),process.on("unhandledRejection",(t,e)=>{console.error(R.t("gemini.debug.unhandledPromiseRejectionDetected"),{reason:t,promise:e.toString()})})}async function soo(){pIc();let t=process.cwd(),e=Nu(t);if(!e.user.settings.cna){let p=await u7e();p&&e.setValue("User","cna",p)}if(await Xto(),e.errors.length>0){for(let p of e.errors){let h=R.t("gemini.errorInFile",{path:p.path,message:p.message});process.env.NO_COLOR||(h=`\x1B[31m${h}\x1B[0m`),console.error(h),console.error(R.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=yq(t),a=await $J(e.merged,s,k1.generateSessionId(),r);if(R.changeLanguage(a.getLanguage()),a.getDebugMode()&&hIc(),aIc.setDefaultResultOrder(uIc(e.merged.dnsResolutionOrder)),r.promptInteractive&&!process.stdin.isTTY&&(console.error(R.t("gemini.errors.promptInteractiveFlagNotSupported")),process.exit(1)),a.getListExtensions()){console.debug(R.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(),jto)),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(),Rto)),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(),fc.loadCustomThemes(e.merged.customThemes),e.merged.theme&&(fc.setActiveTheme(e.merged.theme)||console.warn(R.t("gemini.themeNotFound",{theme:e.merged.theme}))),!process.env.SANDBOX){let p=e.merged.autoConfigureMaxOldSpaceSize?fIc(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(R.t("gemini.errorAuthenticating"),m),process.exit(1)}await zno(h,p,a),process.exit(0)}else p.length>0&&(await dIc(p),process.exit(0))}if(e.merged.selectedAuthType===br.LOGIN_WITH_IFLOW&&a.isBrowserLaunchSuppressed()&&await UH(e.merged.selectedAuthType,a),a.getExperimentalAcp())return a.getAcpPort()?await yio(a,e,s,r,a.getAcpPort()):uio(a,e,s,r);let i=a.getQuestion(),n=[...await Kno(),...await Jno(t)];if(!!r.promptInteractive||!!r.continue||!!r.resume||process.stdin.isTTY&&i?.length===0){console.clear();let p=await tq();ooo(ioo(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(R.t("gemini.failedToConnectToIdeServer"),v)}let h,m=async()=>{try{if(console.clear(),ooo(ioo(t),e),h)try{h.unmount(),await new Promise(x=>process.nextTick(x))}catch(x){console.error(R.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(R.t("gemini.errorDuringResume"),v)}};process.on("SIGCONT",m),p5e(()=>{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=>{cno(v,e,a.getProjectRoot())}).catch(v=>{a.getDebugMode()&&console.error(R.t("gemini.updateCheckFailed"),v)}),p5e(()=>h.unmount());return}!process.stdin.isTTY&&!i&&(i+=await Gno()),i||(console.error(R.t("gemini.noInputProvidedViaStdin")),process.exit(1));let u=Math.random().toString(16).slice(2);Tie(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 mIc(a,s,e,r),d=r.outputFile||r.output_file;await eio(f,i,u,d),process.exit(0)}function ooo(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 mIc(t,e,r,o){let s=t;if(t.getApprovalMode()!==Bi.YOLO){let a=r.merged.excludeTools||[],i=[up.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 gIc(r.merged.selectedAuthType,s,r)}async function gIc(t,e,r){!t&&!process.env.GEMINI_API_KEY&&!fYe()&&(console.error(R.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}soo().catch(t=>{console.error("An unexpected critical error occurred:"),t instanceof Error?console.error(t.stack):console.error(String(t)),process.exit(1)});
|
|
5520
5520
|
/**
|
|
5521
5521
|
* @license
|
|
5522
5522
|
* Copyright 2025 Google LLC
|