@its/core 2.0.4 → 2.0.6
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/dist/core.es.js +1 -1
- package/dist/core.umd.js +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -12
package/dist/core.es.js
CHANGED
|
@@ -46470,7 +46470,7 @@ function IOe(e) {
|
|
|
46470
46470
|
if (t && !isNaN(t))
|
|
46471
46471
|
return t;
|
|
46472
46472
|
}
|
|
46473
|
-
const S8 = "0.
|
|
46473
|
+
const S8 = "0.203.0", kOe = 300, A8 = typeof process == "object" && process.release?.name === "node";
|
|
46474
46474
|
class DOe extends yOe {
|
|
46475
46475
|
component = "fetch";
|
|
46476
46476
|
version = S8;
|
package/dist/core.umd.js
CHANGED
|
@@ -199,7 +199,7 @@ Valid keys: `+JSON.stringify(Object.keys(k),null," "));var se=Oe(be,ge,ae,oe,ve
|
|
|
199
199
|
C268.103,7.763,253.549,0,236.836,0c-3.938,0-7.872,0.101-11.817,0.292c-11.649,0.583-23.073,2.016-34.225,4.215v191.531\r
|
|
200
200
|
L66.808,72.055c-7.618,7.861-14.704,16.237-21.189,25.089l79.313,79.313l20.291,20.284H3.448C1.227,209.784,0,223.164,0,236.844\r
|
|
201
201
|
c0,17.034,1.84,33.626,5.25,49.643h184.834L70.847,405.724c7.808,7.67,16.121,14.813,24.921,21.349l95.023-95.023v137.116\r
|
|
202
|
-
c11.151,2.199,22.583,3.631,34.232,4.215c3.938,0.191,7.872,0.299,11.81,0.299C253.549,473.68,268.103,465.917,280.545,452.432z`})]});function Q0e({size:e=24,color:t="currentColor"}){return w.jsx(ie.SvgIcon,{children:w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",width:e,height:e,viewBox:"0 0 24 24",fill:t,children:w.jsx("path",{d:"M4,6H6V18H4V6M7,6H8V18H7V6M9,6H12V18H9V6M13,6H14V18H13V6M16,6H18V18H16V6M19,6H20V18H19V6M2,4V8H0V4A2,2 0 0,1 2,2H6V4H2M22,2A2,2 0 0,1 24,4V8H22V4H18V2H22M2,16V20H6V22H2A2,2 0 0,1 0,20V16H2M22,20V16H24V20A2,2 0 0,1 22,22H18V20H22Z"})})})}const{slice:eye,forEach:tye}=[];function nye(e){return tye.call(eye.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function rye(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const VN=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,iye=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t);let o=`${e}=${i}`;if(r.maxAge>0){const a=r.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(a)}`}if(r.domain){if(!VN.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!VN.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(o+="; Partitioned"),o},HN={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=iye(e,t,i)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var oye={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return HN.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:o}=t;n&&typeof document<"u"&&HN.create(n,e,r,i,o)}},aye={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const o=r.substring(1).split("&");for(let a=0;a<o.length;a++){const s=o[a].indexOf("=");s>0&&o[a].substring(0,s)===t&&(n=o[a].substring(s+1))}}return n}},sye={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:i}=window.location;if(i&&i.length>2){const o=i.substring(1);if(t){const a=o.split("&");for(let s=0;s<a.length;s++){const u=a[s].indexOf("=");u>0&&a[s].substring(0,u)===t&&(r=a[s].substring(u+1))}}if(r)return r;if(!r&&n>-1){const a=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(a)?a[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let Sc=null;const UN=()=>{if(Sc!==null)return Sc;try{if(Sc=typeof window<"u"&&window.localStorage!==null,!Sc)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Sc=!1}return Sc};var uye={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&UN())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&UN()&&window.localStorage.setItem(n,e)}};let Ac=null;const GN=()=>{if(Ac!==null)return Ac;try{if(Ac=typeof window<"u"&&window.sessionStorage!==null,!Ac)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Ac=!1}return Ac};var lye={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&GN())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&GN()&&window.sessionStorage.setItem(n,e)}},cye={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let o=0;o<n.length;o++)t.push(n[o]);r&&t.push(r),i&&t.push(i)}return t.length>0?t:void 0}},fye={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},dye={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},hye={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let KN=!1;try{document.cookie,KN=!0}catch{}const YN=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];KN||YN.splice(1,1);const pye=()=>({order:YN,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class XN{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=nye(n,this.options||{},pye()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(oye),this.addDetector(aye),this.addDetector(uye),this.addDetector(lye),this.addDetector(cye),this.addDetector(fye),this.addDetector(dye),this.addDetector(hye),this.addDetector(sye)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(n=n.concat(i))}}),n=n.filter(r=>r!=null&&!rye(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}XN.type="languageDetector";const gye=e=>{let t={};for(const r of Object.keys(e)){const i=r.match(/\w+\.json/);if(i){const o=i[0]?.split(".")[0];t={...t,[o]:{translation:e[r]}}}}const n=Object.keys(t);return Ka.use(XN).use(Et.initReactI18next).init({resources:t,fallbackLng:"en",interpolation:{escapeValue:!1},supportedLngs:n,missingKeyHandler:function(r,i,o){console.warn(`MISSING TRANSLATION: [${r}] ${i}:${o}`)}}),Ka};function ZN({children:e}){return w.jsx(yn,{paddingBottom:"16px",gap:"8px",children:e})}function JN({children:e}){return w.jsx(Hc,{mt:"auto",mb:"auto",width:"100%",children:w.jsx(ie.Paper,{sx:{width:"100%"},children:w.jsx(yn,{height:"70px",flexDirection:"row",alignItems:"center",gap:"16px",padding:"16px",children:e})})})}function QN({tabValue:e,columnValues:t,columnWidths:n}){const{t:r}=Et.useTranslation();return w.jsx(ie.Paper,{sx:{display:"grid",gridTemplateColumns:n?.[e]??[],padding:"0.5rem",fontWeight:"bold",position:"sticky",textAlign:"center",zIndex:10,top:0,border:"none",gap:"8px"},children:t[e].map((i,o)=>w.jsx(ie.Typography,{children:w.jsx("b",{children:r(i)})},o))})}function vye({InnerHeaderContent:e,TableHeaderContent:t,FirstTabContent:n,SecondTabContent:r,ThirdTabContent:i,tabValue:o,columnValues:a,columnWidths:s,FirstTabNearbyContent:u,SecondTabNearbyContent:l,ThirdTabNearbyContent:c}){return w.jsxs(Bs,{gap:"16px",children:[w.jsx(JN,{children:e}),w.jsxs(Ry,{gap:"16px",children:[w.jsxs(ie.Paper,{sx:{padding:"16px",overflow:"hidden",flexGrow:2,minWidth:u&&o===0||l&&o===1||c&&o===2?"70%":"unset",maxWidth:u&&o===0||l&&o===1||c&&o===2?"70%":"unset"},children:[w.jsx(ZN,{children:t}),w.jsxs(Bs,{children:[w.jsx(QN,{columnValues:a,columnWidths:s,tabValue:o}),w.jsx(ie.Divider,{sx:{marginBottom:"16px"}}),w.jsxs(Bs,{gap:"16px",overflow:"auto",paddingTop:0,sx:{scrollbarWidth:"none",paddingBottom:"72px"},children:[o===0?w.jsx(n,{}):null,o===1?w.jsx(r,{}):null,o===2&&i?w.jsx(i,{}):null]})]})]}),o===0&&u?w.jsx(ie.Paper,{sx:{padding:"16px",overflow:"hidden",flexGrow:1},children:u}):null,o===1&&l?w.jsx(ie.Paper,{sx:{padding:"16px",flexGrow:1,overflow:"hidden"},children:l}):null,o===2&&c?w.jsx(ie.Paper,{sx:{padding:"16px",flexGrow:1,overflow:"hidden"},children:c}):null]})]})}function yye({children:e,position:t}){return w.jsx(kA.SnackbarProvider,{maxSnack:3,autoHideDuration:3e3,anchorOrigin:{vertical:"bottom",horizontal:t??"center"},preventDuplicate:!0,Components:{default:Wd,info:Wd,success:Wd,error:Wd,warning:Wd},children:e})}const vo={};function mye(e,t){return{name:"vite-plugin-graphql-rewrite",enforce:"pre",resolveId(n,r){if(n.endsWith(".graphql")){const i=vo.resolve(n),o=vo.basename(i);if(!r.includes(t))return vo.resolve(e,"graphQL","__generated__",`${o}.ts`);const a=vo.resolve(__dirname,".."),s=r.slice(a.length).split("/")[1];return vo.resolve(a,s,"__generated__",`${o}.ts`)}return null}}}function bye(e,t){return{name:"vite-plugin-graphql-rewrite-build",enforce:"pre",resolveId(n,r){if(n.endsWith(".graphql")){const i=vo.resolve(n),o=vo.basename(i),a=vo.resolve(e,".."),s=vo.resolve(a,t,"__generated__",`${o}.ts`);return console.log("corepath",t),console.log("reporoot",a),console.log("fileproject",s),console.log("importer",r),r.includes(t)?vo.resolve(a,t,"__generated__",`${o}.ts`):vo.resolve(e,"graphQL","__generated__",`${o}.ts`)}return null}}}var wye=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},$u="1.9.0",eL=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function _ye(e){var t=new Set([e]),n=new Set,r=e.match(eL);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(u){return u===e};function o(s){return n.add(s),!1}function a(s){return t.add(s),!0}return function(u){if(t.has(u))return!0;if(n.has(u))return!1;var l=u.match(eL);if(!l)return o(u);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||i.major!==c.major?o(u):i.major===0?i.minor===c.minor&&i.patch<=c.patch?a(u):o(u):i.minor<=c.minor?a(u):o(u)}}var xye=_ye($u),Eye=$u.split(".")[0],qd=Symbol.for("opentelemetry.js.api."+Eye),Vd=wye;function Hd(e,t,n,r){var i;r===void 0&&(r=!1);var o=Vd[qd]=(i=Vd[qd])!==null&&i!==void 0?i:{version:$u};if(!r&&o[e]){var a=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(a.stack||a.message),!1}if(o.version!==$u){var a=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+e+" does not match previously registered API v"+$u);return n.error(a.stack||a.message),!1}return o[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+$u+"."),!0}function ju(e){var t,n,r=(t=Vd[qd])===null||t===void 0?void 0:t.version;if(!(!r||!xye(r)))return(n=Vd[qd])===null||n===void 0?void 0:n[e]}function Ud(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+$u+".");var n=Vd[qd];n&&delete n[e]}var Sye=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},Aye=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},Tye=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Gd("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Gd("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Gd("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Gd("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Gd("verbose",this._namespace,t)},e}();function Gd(e,t,n){var r=ju("diag");if(r)return n.unshift(t),r[e].apply(r,Aye([],Sye(n),!1))}var Ai;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(Ai||(Ai={}));function Oye(e,t){e<Ai.NONE?e=Ai.NONE:e>Ai.ALL&&(e=Ai.ALL),t=t||{};function n(r,i){var o=t[r];return typeof o=="function"&&e>=i?o.bind(t):function(){}}return{error:n("error",Ai.ERROR),warn:n("warn",Ai.WARN),info:n("info",Ai.INFO),debug:n("debug",Ai.DEBUG),verbose:n("verbose",Ai.VERBOSE)}}var Pye=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},Cye=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},Mye="diag",Go=function(){function e(){function t(i){return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=ju("diag");if(s)return s[i].apply(s,Cye([],Pye(o),!1))}}var n=this,r=function(i,o){var a,s,u;if(o===void 0&&(o={logLevel:Ai.INFO}),i===n){var l=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((a=l.stack)!==null&&a!==void 0?a:l.message),!1}typeof o=="number"&&(o={logLevel:o});var c=ju("diag"),d=Oye((s=o.logLevel)!==null&&s!==void 0?s:Ai.INFO,i);if(c&&!o.suppressOverrideMessage){var h=(u=new Error().stack)!==null&&u!==void 0?u:"<failed to generate stacktrace>";c.warn("Current logger will be overwritten from "+h),d.warn("Current logger will overwrite one already registered from "+h)}return Hd("diag",d,n,!0)};n.setLogger=r,n.disable=function(){Ud(Mye,n)},n.createComponentLogger=function(i){return new Tye(i)},n.verbose=t("verbose"),n.debug=t("debug"),n.info=t("info"),n.warn=t("warn"),n.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),kye=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},Iye=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Dye=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var n=this._entries.get(t);if(n)return Object.assign({},n)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var n=kye(t,2),r=n[0],i=n[1];return[r,i]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=new e(this._entries);try{for(var a=Iye(r),s=a.next();!s.done;s=a.next()){var u=s.value;o._entries.delete(u)}}catch(l){t={error:l}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o},e.prototype.clear=function(){return new e},e}(),Nye=Symbol("BaggageEntryMetadata"),Lye=Go.instance();function $ye(e){return e===void 0&&(e={}),new Dye(new Map(Object.entries(e)))}function jye(e){return typeof e!="string"&&(Lye.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:Nye,toString:function(){return e}}}function jE(e){return Symbol.for(e)}var Bye=function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(r){return n._currentContext.get(r)},n.setValue=function(r,i){var o=new e(n._currentContext);return o._currentContext.set(r,i),o},n.deleteValue=function(r){var i=new e(n._currentContext);return i._currentContext.delete(r),i}}return e}(),Ia=new Bye,Bu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zye=function(){function e(){}return e.prototype.createGauge=function(t,n){return Yye},e.prototype.createHistogram=function(t,n){return Xye},e.prototype.createCounter=function(t,n){return Kye},e.prototype.createUpDownCounter=function(t,n){return Zye},e.prototype.createObservableGauge=function(t,n){return Qye},e.prototype.createObservableCounter=function(t,n){return Jye},e.prototype.createObservableUpDownCounter=function(t,n){return eme},e.prototype.addBatchObservableCallback=function(t,n){},e.prototype.removeBatchObservableCallback=function(t){},e}(),N0=function(){function e(){}return e}(),Fye=function(e){Bu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t}(N0),Rye=function(e){Bu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t}(N0),Wye=function(e){Bu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t}(N0),qye=function(e){Bu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t}(N0),BE=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),Vye=function(e){Bu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(BE),Hye=function(e){Bu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(BE),Uye=function(e){Bu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(BE),Gye=new zye,Kye=new Fye,Yye=new Wye,Xye=new qye,Zye=new Rye,Jye=new Vye,Qye=new Hye,eme=new Uye,tme={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},nme={set:function(e,t,n){e!=null&&(e[t]=n)}},rme=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},ime=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},ome=function(){function e(){}return e.prototype.active=function(){return Ia},e.prototype.with=function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return n.call.apply(n,ime([r],rme(i),!1))},e.prototype.bind=function(t,n){return n},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),ame=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},sme=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},zE="context",ume=new ome,L0=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Hd(zE,t,Go.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,n,r){for(var i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return(i=this._getContextManager()).with.apply(i,sme([t,n,r],ame(o),!1))},e.prototype.bind=function(t,n){return this._getContextManager().bind(t,n)},e.prototype._getContextManager=function(){return ju(zE)||ume},e.prototype.disable=function(){this._getContextManager().disable(),Ud(zE,Go.instance())},e}(),Da;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Da||(Da={}));var tL="0000000000000000",nL="00000000000000000000000000000000",rL={traceId:nL,spanId:tL,traceFlags:Da.NONE},Kd=function(){function e(t){t===void 0&&(t=rL),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,n){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,n){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,n){},e}(),FE=jE("OpenTelemetry Context Key SPAN");function RE(e){return e.getValue(FE)||void 0}function lme(){return RE(L0.getInstance().active())}function WE(e,t){return e.setValue(FE,t)}function cme(e){return e.deleteValue(FE)}function fme(e,t){return WE(e,new Kd(t))}function iL(e){var t;return(t=RE(e))===null||t===void 0?void 0:t.spanContext()}var dme=/^([0-9a-f]{32})$/i,hme=/^[0-9a-f]{16}$/i;function oL(e){return dme.test(e)&&e!==nL}function pme(e){return hme.test(e)&&e!==tL}function $0(e){return oL(e.traceId)&&pme(e.spanId)}function gme(e){return new Kd(e)}var qE=L0.getInstance(),aL=function(){function e(){}return e.prototype.startSpan=function(t,n,r){r===void 0&&(r=qE.active());var i=!!n?.root;if(i)return new Kd;var o=r&&iL(r);return vme(o)&&$0(o)?new Kd(o):new Kd},e.prototype.startActiveSpan=function(t,n,r,i){var o,a,s;if(!(arguments.length<2)){arguments.length===2?s=n:arguments.length===3?(o=n,s=r):(o=n,a=r,s=i);var u=a??qE.active(),l=this.startSpan(t,o,u),c=WE(u,l);return qE.with(c,s,void 0,l)}},e}();function vme(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var yme=new aL,mme=function(){function e(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}return e.prototype.startSpan=function(t,n,r){return this._getTracer().startSpan(t,n,r)},e.prototype.startActiveSpan=function(t,n,r,i){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):yme},e}(),bme=function(){function e(){}return e.prototype.getTracer=function(t,n,r){return new aL},e}(),wme=new bme,sL=function(){function e(){}return e.prototype.getTracer=function(t,n,r){var i;return(i=this.getDelegateTracer(t,n,r))!==null&&i!==void 0?i:new mme(this,t,n,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:wme},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,n,r)},e}(),j0;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(j0||(j0={}));var B0;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(B0||(B0={}));var zu;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(zu||(zu={}));var fr=L0.getInstance(),Wt=Go.instance(),_me=function(){function e(){}return e.prototype.getMeter=function(t,n,r){return Gye},e}(),xme=new _me,VE="metrics",Eme=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Hd(VE,t,Go.instance())},e.prototype.getMeterProvider=function(){return ju(VE)||xme},e.prototype.getMeter=function(t,n,r){return this.getMeterProvider().getMeter(t,n,r)},e.prototype.disable=function(){Ud(VE,Go.instance())},e}(),uL=Eme.getInstance(),Sme=function(){function e(){}return e.prototype.inject=function(t,n){},e.prototype.extract=function(t,n){return t},e.prototype.fields=function(){return[]},e}(),HE=jE("OpenTelemetry Baggage Key");function lL(e){return e.getValue(HE)||void 0}function Ame(){return lL(L0.getInstance().active())}function Tme(e,t){return e.setValue(HE,t)}function Ome(e){return e.deleteValue(HE)}var UE="propagation",Pme=new Sme,Cme=function(){function e(){this.createBaggage=$ye,this.getBaggage=lL,this.getActiveBaggage=Ame,this.setBaggage=Tme,this.deleteBaggage=Ome}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Hd(UE,t,Go.instance())},e.prototype.inject=function(t,n,r){return r===void 0&&(r=nme),this._getGlobalPropagator().inject(t,n,r)},e.prototype.extract=function(t,n,r){return r===void 0&&(r=tme),this._getGlobalPropagator().extract(t,n,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Ud(UE,Go.instance())},e.prototype._getGlobalPropagator=function(){return ju(UE)||Pme},e}(),Ko=Cme.getInstance(),GE="trace",Mme=function(){function e(){this._proxyTracerProvider=new sL,this.wrapSpanContext=gme,this.isSpanContextValid=$0,this.deleteSpan=cme,this.getSpan=RE,this.getActiveSpan=lme,this.getSpanContext=iL,this.setSpan=WE,this.setSpanContext=fme}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var n=Hd(GE,this._proxyTracerProvider,Go.instance());return n&&this._proxyTracerProvider.setDelegate(t),n},e.prototype.getTracerProvider=function(){return ju(GE)||this._proxyTracerProvider},e.prototype.getTracer=function(t,n){return this.getTracerProvider().getTracer(t,n)},e.prototype.disable=function(){Ud(GE,Go.instance()),this._proxyTracerProvider=new sL},e}(),Wr=Mme.getInstance();function si(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Fu(e){return si(e)==="object"}function kme(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function cL(e,t){return e.length<124?e:t}const Ime="graphql-transport-ws";var Ki=(e=>(e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",e))(Ki||{}),Yi=(e=>(e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete",e))(Yi||{});function fL(e){if(!Fu(e))throw new Error(`Message is expected to be an object, but got ${si(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${si(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(e.payload!=null&&!Fu(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case"subscribe":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${si(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Fu(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${si(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${si(e.payload.query)}`);if(e.payload.variables!=null&&!Fu(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${si(e.payload.variables)}`);if(e.payload.operationName!=null&&si(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${si(e.payload.operationName)}`);if(e.payload.extensions!=null&&!Fu(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${si(e.payload.extensions)}`);break}case"next":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${si(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Fu(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${si(e.payload)}`);break}case"error":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${si(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!kme(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case"complete":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${si(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function Dme(e,t){return fL(typeof e=="string"?JSON.parse(e,t):e)}function Yd(e,t){return fL(e),JSON.stringify(e,t)}function Nme(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:o=0,keepAlive:a=0,disablePong:s,connectionAckWaitTimeout:u=0,retryAttempts:l=5,retryWait:c=async function(z){const $=Math.pow(2,z);await new Promise(V=>setTimeout(V,$*1e3+Math.floor(Math.random()*2700+300)))},shouldRetry:d=KE,on:h,webSocketImpl:g,generateID:m=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,z=>{const $=Math.random()*16|0;return(z=="x"?$:$&3|8).toString(16)})},jsonMessageReplacer:v,jsonMessageReviver:y}=e;let b;if(g){if(!$me(g))throw new Error("Invalid WebSocket implementation provided");b=g}else typeof WebSocket<"u"?b=WebSocket:typeof global<"u"?b=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(b=window.WebSocket||window.MozWebSocket);if(!b)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const x=b,E=(()=>{const C=(()=>{const $={};return{on(V,J){return $[V]=J,()=>{delete $[V]}},emit(V){"id"in V&&$[V.id]?.(V)}}})(),z={connecting:h?.connecting?[h.connecting]:[],opened:h?.opened?[h.opened]:[],connected:h?.connected?[h.connected]:[],ping:h?.ping?[h.ping]:[],pong:h?.pong?[h.pong]:[],message:h?.message?[C.emit,h.message]:[C.emit],closed:h?.closed?[h.closed]:[],error:h?.error?[h.error]:[]};return{onMessage:C.on,on($,V){const J=z[$];return J.push(V),()=>{J.splice(J.indexOf(V),1)}},emit($,...V){for(const J of[...z[$]])J(...V)}}})();function S(C){const z=[E.on("error",$=>{z.forEach(V=>V()),C($)}),E.on("closed",$=>{z.forEach(V=>V()),C($)})]}let A,T=0,P,M=!1,j=0,F=!1;async function N(){clearTimeout(P);const[C,z]=await(A??(A=new Promise((J,Y)=>(async()=>{if(M){if(await c(j),!T)return A=void 0,Y({code:1e3,reason:"All Subscriptions Gone"});j++}E.emit("connecting",M);const k=new x(typeof t=="function"?await t():t,Ime);let W,U;function X(){isFinite(a)&&a>0&&(clearTimeout(U),U=setTimeout(()=>{k.readyState===x.OPEN&&(k.send(Yd({type:Yi.Ping})),E.emit("ping",!1,void 0))},a))}S(oe=>{A=void 0,clearTimeout(W),clearTimeout(U),Y(oe),oe instanceof dL&&(k.close(4499,"Terminated"),k.onerror=null,k.onclose=null)}),k.onerror=oe=>E.emit("error",oe),k.onclose=oe=>E.emit("closed",oe),k.onopen=async()=>{try{E.emit("opened",k);const oe=typeof n=="function"?await n():n;if(k.readyState!==x.OPEN)return;k.send(Yd(oe?{type:Yi.ConnectionInit,payload:oe}:{type:Yi.ConnectionInit},v)),isFinite(u)&&u>0&&(W=setTimeout(()=>{k.close(Ki.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},u)),X()}catch(oe){E.emit("error",oe),k.close(Ki.InternalClientError,cL(oe instanceof Error?oe.message:String(oe),"Internal client error"))}};let ae=!1;k.onmessage=({data:oe})=>{try{const ve=Dme(oe,y);if(E.emit("message",ve),ve.type==="ping"||ve.type==="pong"){E.emit(ve.type,!0,ve.payload),ve.type==="pong"?X():s||(k.send(Yd(ve.payload?{type:Yi.Pong,payload:ve.payload}:{type:Yi.Pong})),E.emit("pong",!1,ve.payload));return}if(ae)return;if(ve.type!==Yi.ConnectionAck)throw new Error(`First message cannot be of type ${ve.type}`);clearTimeout(W),ae=!0,E.emit("connected",k,ve.payload,M),M=!1,j=0,J([k,new Promise((be,Ee)=>S(Ee))])}catch(ve){k.onmessage=null,E.emit("error",ve),k.close(Ki.BadResponse,cL(ve instanceof Error?ve.message:String(ve),"Bad response"))}}})())));C.readyState===x.CLOSING&&await z;let $=()=>{};const V=new Promise(J=>$=J);return[C,$,Promise.race([V.then(()=>{if(!T){const J=()=>C.close(1e3,"Normal Closure");isFinite(o)&&o>0?P=setTimeout(()=>{C.readyState===x.OPEN&&J()},o):J()}}),z])]}function H(C){if(KE(C)&&(Lme(C.code)||[Ki.InternalServerError,Ki.InternalClientError,Ki.BadRequest,Ki.BadResponse,Ki.Unauthorized,Ki.SubprotocolNotAcceptable,Ki.SubscriberAlreadyExists,Ki.TooManyInitialisationRequests].includes(C.code)))throw C;if(F)return!1;if(KE(C)&&C.code===1e3)return T>0;if(!l||j>=l||!d(C))throw C;return M=!0}r||(async()=>{for(T++;;)try{const[,,C]=await N();await C}catch(C){try{if(!H(C))return}catch(z){return i?.(z)}}})();function L(C,z){const $=m(C);let V=!1,J=!1,Y=()=>{T--,V=!0};return(async()=>{for(T++;;)try{const[k,W,U]=await N();if(V)return W();const X=E.onMessage($,ae=>{switch(ae.type){case Yi.Next:{z.next(ae.payload);return}case Yi.Error:{J=!0,V=!0,z.error(ae.payload),Y();return}case Yi.Complete:{V=!0,Y();return}}});k.send(Yd({id:$,type:Yi.Subscribe,payload:C},v)),Y=()=>{!V&&k.readyState===x.OPEN&&k.send(Yd({id:$,type:Yi.Complete},v)),T--,V=!0,W()},await U.finally(X);return}catch(k){if(!H(k))return}})().then(()=>{J||z.complete()}).catch(k=>{z.error(k)}),()=>{V||Y()}}return{on:E.on,subscribe:L,iterate(C){const z=[],$={done:!1,error:null,resolve:()=>{}},V=L(C,{next(Y){z.push(Y),$.resolve()},error(Y){$.done=!0,$.error=Y,$.resolve()},complete(){$.done=!0,$.resolve()}}),J=async function*(){for(;;){for(z.length||await new Promise(k=>$.resolve=k);z.length;)yield z.shift();if($.error)throw $.error;if($.done)return}}();return J.throw=async Y=>($.done||($.done=!0,$.error=Y,$.resolve()),{done:!0,value:void 0}),J.return=async()=>(V(),{done:!0,value:void 0}),J},async dispose(){if(F=!0,A){const[C]=await A;C.close(1e3,"Normal Closure")}},terminate(){A&&E.emit("closed",new dL)}}}class dL extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function KE(e){return Fu(e)&&"code"in e&&"reason"in e}function Lme(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function $me(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}const jme=e=>Nme({url:e.API_URL}),Bme=(e,t,n)=>tl.Observable.create(r=>jme(n).subscribe({operationName:e.name,query:e.text,variables:t},r)),zme=(e,t,n)=>tl.Observable.from(fr.with(fr.active(),()=>{const r=Wr.getTracer("RelayNetwork").startSpan("GraphQL fetch");r.setAttribute("variables",JSON.stringify(t)),r.setAttribute("path",e.name);const i=r.spanContext();return fetch(n.API_URL,{method:"POST",headers:{"Content-Type":"application/json",traceparent:`00-${i.traceId}-${i.spanId}-01`,...localStorage.getItem("token")?{authorization:localStorage.getItem("token")}:{},"x-auth-scheme":n.AUTH_SCHEMA,...n.CUSTOM_HEADERS},body:JSON.stringify({query:e.text,variables:t}),...n.AUTH_SCHEMA==="Cookies"?{credentials:"include"}:{}}).then(o=>o.json().then(a=>(a.errors?(r.setStatus({code:zu.ERROR}),r.recordException(JSON.stringify(a.errors))):r.setStatus({code:zu.OK}),a))).catch(o=>{r.setStatus({code:zu.ERROR}),r.recordException(JSON.stringify(o))}).finally(()=>r.end())})),Fme=e=>{const t=e.id;return t!==null&&typeof t!="string"?String(t):t};function hL(e){return new tl.Environment({network:tl.Network.create((t,n)=>zme(t,n,e),(t,n)=>Bme(t,n,e)),store:new tl.Store(new tl.RecordSource),getDataID:Fme})}function Rme({children:e}){const t=Dh(),n=hL(t);return w.jsx(TA.RelayEnvironmentProvider,{environment:n,children:e})}const Wme=(e,t,n)=>{const r=[];for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const o=e[i],a=i.match(/pages\/(?!core)(.*)\/index\.ts?$/);if(!a)continue;const s=a[1],u=Object.keys(t).find(b=>b.includes(`${s}/loader.ts`)),l=Object.keys(n).find(b=>b.includes(`${s}/action.ts`)),c=s.match(/\[(.+)\]/)?s.replace(/\[(.+)\]/,"$1/:data"):s.replace(/\/index/,""),d=s==="index"?"/":`${c.toLowerCase()}`,h=I.lazy(o),g=I.lazy(async()=>({default:(await o()).icon||oo.BlurCircularOutlined})),m=u?t[u].default:void 0,v=l?n[l].default:void 0,y={id:d,Icon:g,name:c,path:d,element:w.jsx(I.Suspense,{fallback:w.jsx(kh,{}),children:w.jsx(h,{})}),...u?{loader:m}:{},...l?{action:v}:{}};r.push(y)}return r};var pL=(e=>(e[e.Container=1]="Container",e[e.File=2]="File",e[e.Rad=3]="Rad",e))(pL||{});const qme={createState:e=>{const t=IA.atom(e),n=IA.getDefaultStore();return{get:()=>n.get(t),set:r=>n.set(t,r),subscribe:r=>{const i=()=>{const o=n.get(t);r(o)};return n.sub(t,i)}}},type:"jotaiAdapter"};function Vme(){return{createState:e=>{const t=Vc.atom({key:`recoilAtom_${Math.random()}`,default:e});return{get:()=>(console.log("Getting value from Recoil atom"),Vc.useRecoilValue(t)),set:o=>{console.log("Setting value to Recoil atom"),Vc.useSetRecoilState(t)(o)},subscribe:o=>(console.log("Subscribing to Recoil atom"),Vc.useRecoilCallback(({snapshot:s})=>()=>{const u=s.getLoadable(t).contents;o(u)}))}},type:"recoilAdapter"}}const gL=I.createContext([!1,{lockInIdleMode:()=>{},unlockIdleMode:()=>{}}]);function Hme({timer:e,children:t}){const n=BA(e);return w.jsx(gL.Provider,{value:n,children:t})}const YE={palette:{greyCustom:{main:"#787474",light:"#f8f4f4",dark:"#464646"}},components:{MuiButton:{defaultProps:{variant:"contained",disableElevation:!0},styleOverrides:{root:{borderRadius:"24px",textTransform:"capitalize",fontSize:"1rem"}}},MuiOutlinedInput:{styleOverrides:{root:{borderRadius:"12px"}},defaultProps:{style:{borderRadius:"12px"}}},MuiSelect:{defaultProps:{IconComponent:JB}},MuiFilledInput:{defaultProps:{sx:{backgroundColor:"rgba(255,255,255,0.3)",borderRadius:"12px","&:hover::before":{border:"unset!important"},"&::before":{borderBottom:"unset"},"&::after":{borderBottom:"unset"}}}},MuiTextField:{defaultProps:{fullWidth:!0,variant:"outlined"}},MuiFormControl:{defaultProps:{fullWidth:!0,variant:"outlined"}},MuiPaper:{defaultProps:{variant:"outlined"},styleOverrides:{root:{borderRadius:"18px",backgroundImage:"unset",transition:"all 0.5s ease-in-out"}}},MuiCheckbox:{defaultProps:{color:"primary"}},MuiTypography:{defaultProps:{variant:"body1"}}},typography:{fontFamily:"Manrope"}},Ume={light:e=>DA.deepmerge({...YE,...e},{palette:{primary:{main:"#00796b",border:"rgba(0, 0, 0, 0.12)"},mode:"light",background:{default:"#fafafa"}}}),dark:e=>DA.deepmerge({...YE,...e},{palette:{primary:{main:"#009f93",border:"rgba(255, 255, 255, 0.12)"},mode:"dark",background:{default:"#111111",paper:"#171717"}}})};function Gme({children:e,theme:t}){const[n]=zs();return w.jsx(ie.ThemeProvider,{theme:ie.createTheme(Ume[n](t)),children:e})}const Kme=(e,t,n)=>{if(!xc(e))return;const r=new Date(e);switch(n){case"milliseconds":r.setMilliseconds(r.getMilliseconds()+t);break;case"seconds":r.setSeconds(r.getSeconds()+t);break;case"minutes":r.setMinutes(r.getMinutes()+t);break;case"hours":r.setHours(r.getHours()+t);break;case"days":r.setDate(r.getDate()+t);break;case"weeks":r.setDate(r.getDate()+t*7);break;case"months":r.setMonth(r.getMonth()+t);break;case"years":r.setFullYear(r.getFullYear()+t);break;default:throw new Error(`Unsupported time unit: ${n}`)}return r};var vL=(e=>(e[e.days=86400]="days",e[e.hours=3600]="hours",e[e.minutes=6e4]="minutes",e[e.seconds=1e3]="seconds",e[e.milliseconds=1]="milliseconds",e))(vL||{});const Yme=(e,t,n="milliseconds")=>{if(!xc(e)||!xc(t))return;const r=new Date(e).getTime();return(new Date(t).getTime()-r)/vL[n]},Xme=e=>{if(e==null)return"";const t=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),r=Math.floor(e%3600/60),i=e%60;return[t?`${t}d`:"",n?`${n}h`:"",r?`${r}min`:"",i?`${i}sec`:""].filter(Boolean).join(" ")},Zme=(e,t,n)=>{if(!xc(e))throw new Error("Invalid Date");const r=new Date(e);switch(n){case"milliseconds":r.setMilliseconds(r.getMilliseconds()-t);break;case"seconds":r.setSeconds(r.getSeconds()-t);break;case"minutes":r.setMinutes(r.getMinutes()-t);break;case"hours":r.setHours(r.getHours()-t);break;case"days":r.setDate(r.getDate()-t);break;case"weeks":r.setDate(r.getDate()-t*7);break;case"months":r.setMonth(r.getMonth()-t);break;case"years":r.setFullYear(r.getFullYear()-t);break;default:throw new Error(`Unsupported time unit: ${n}`)}return r},Jme=(e,t)=>e<=1?12:Math.floor(12/t),Qme=(e,t)=>(e&t)===t;function e1e(e){const t={};function n(r){Object.prototype.hasOwnProperty.call(r,"edges")&&(t.edges=r.edges);for(const i in r)typeof r[i]=="object"&&r[i]!==null&&n(r[i])}return n(e),t}const yL=jE("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function t1e(e){return e.setValue(yL,!0)}function XE(e){return e.getValue(yL)===!0}const n1e="=",ZE=";",JE=",",QE="baggage",r1e=180,i1e=4096,o1e=8192;function a1e(e){return e.reduce((t,n)=>{const r=`${t}${t!==""?JE:""}${n}`;return r.length>o1e?t:r},"")}function s1e(e){return e.getAllEntries().map(([t,n])=>{let r=`${encodeURIComponent(t)}=${encodeURIComponent(n.value)}`;return n.metadata!==void 0&&(r+=ZE+n.metadata.toString()),r})}function u1e(e){const t=e.split(ZE);if(t.length<=0)return;const n=t.shift();if(!n)return;const r=n.indexOf(n1e);if(r<=0)return;const i=decodeURIComponent(n.substring(0,r).trim()),o=decodeURIComponent(n.substring(r+1).trim());let a;return t.length>0&&(a=jye(t.join(ZE))),{key:i,value:o,metadata:a}}class l1e{inject(t,n,r){const i=Ko.getBaggage(t);if(!i||XE(t))return;const o=s1e(i).filter(s=>s.length<=i1e).slice(0,r1e),a=a1e(o);a.length>0&&r.set(n,QE,a)}extract(t,n,r){const i=r.get(n,QE),o=Array.isArray(i)?i.join(JE):i;if(!o)return t;const a={};return o.length===0||(o.split(JE).forEach(u=>{const l=u1e(u);if(l){const c={value:l.value};l.metadata&&(c.metadata=l.metadata),a[l.key]=c}}),Object.entries(a).length===0)?t:Ko.setBaggage(t,Ko.createBaggage(a))}fields(){return[QE]}}function z0(e){const t={};if(typeof e!="object"||e==null)return t;for(const[n,r]of Object.entries(e)){if(!c1e(n)){Wt.warn(`Invalid attribute key: ${n}`);continue}if(!mL(r)){Wt.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?t[n]=r.slice():t[n]=r}return t}function c1e(e){return typeof e=="string"&&e.length>0}function mL(e){return e==null?!0:Array.isArray(e)?f1e(e):bL(e)}function f1e(e){let t;for(const n of e)if(n!=null){if(!t){if(bL(n)){t=typeof n;continue}return!1}if(typeof n!==t)return!1}return!0}function bL(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function d1e(){return e=>{Wt.error(h1e(e))}}function h1e(e){return typeof e=="string"?e:JSON.stringify(p1e(e))}function p1e(e){const t={};let n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r=>{if(t[r])return;const i=n[r];i&&(t[r]=String(i))}),n=Object.getPrototypeOf(n);return t}let g1e=d1e();function eS(e){try{g1e(e)}catch{}}function m3e(e){}const tS=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Tc=performance,v1e="2.0.1",y1e="error.type",nS="exception.message",m1e="exception.stacktrace",rS="exception.type",b1e="http.request.method",w1e="http.request.method_original",_1e="http.response.status_code",x1e="server.address",E1e="server.port",wL="service.name",iS="telemetry.sdk.language",S1e="webjs",oS="telemetry.sdk.name",aS="telemetry.sdk.version",A1e="url.full",T1e="process.runtime.name",sS={[oS]:"opentelemetry",[T1e]:"browser",[iS]:S1e,[aS]:v1e},O1e=9,P1e=Math.pow(10,6),F0=Math.pow(10,O1e);function Na(e){const t=e/1e3,n=Math.trunc(t),r=Math.round(e%1e3*P1e);return[n,r]}function uS(){let e=Tc.timeOrigin;if(typeof e!="number"){const t=Tc;e=t.timing&&t.timing.fetchStart}return e}function R0(e){const t=Na(uS()),n=Na(typeof e=="number"?e:Tc.now());return EL(t,n)}function Xd(e){if(lS(e))return e;if(typeof e=="number")return e<uS()?R0(e):Na(e);if(e instanceof Date)return Na(e.getTime());throw TypeError("Invalid input type")}function C1e(e,t){let n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=F0),[n,r]}function La(e){return e[0]*F0+e[1]}function _L(e){return e[0]*1e6+e[1]/1e3}function lS(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function xL(e){return lS(e)||typeof e=="number"||e instanceof Date}function EL(e,t){const n=[e[0]+t[0],e[1]+t[1]];return n[1]>=F0&&(n[1]-=F0,n[0]+=1),n}var yo;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(yo||(yo={}));class M1e{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,r)=>n.concat(r),[])))}inject(t,n,r){for(const i of this._propagators)try{i.inject(t,n,r)}catch(o){Wt.warn(`Failed to inject with ${i.constructor.name}. Err: ${o.message}`)}}extract(t,n,r){return this._propagators.reduce((i,o)=>{try{return o.extract(i,n,r)}catch(a){Wt.warn(`Failed to extract with ${o.constructor.name}. Err: ${a.message}`)}return i},t)}fields(){return this._fields.slice()}}const cS="[_0-9a-z-*/]",k1e=`[a-z]${cS}{0,255}`,I1e=`[a-z0-9]${cS}{0,240}@[a-z]${cS}{0,13}`,D1e=new RegExp(`^(?:${k1e}|${I1e})$`),N1e=/^[ -~]{0,255}[!-~]$/,L1e=/,|=/;function $1e(e){return D1e.test(e)}function j1e(e){return N1e.test(e)&&!L1e.test(e)}const SL=32,B1e=512,AL=",",TL="=";class fS{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,n){const r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,n),r}unset(t){const n=this._clone();return n._internalState.delete(t),n}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,n)=>(t.push(n+TL+this.get(n)),t),[]).join(AL)}_parse(t){t.length>B1e||(this._internalState=t.split(AL).reverse().reduce((n,r)=>{const i=r.trim(),o=i.indexOf(TL);if(o!==-1){const a=i.slice(0,o),s=i.slice(o+1,r.length);$1e(a)&&j1e(s)&&n.set(a,s)}return n},new Map),this._internalState.size>SL&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,SL))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new fS;return t._internalState=new Map(this._internalState),t}}const dS="traceparent",hS="tracestate",z1e="00",F1e="(?!ff)[\\da-f]{2}",R1e="(?![0]{32})[\\da-f]{32}",W1e="(?![0]{16})[\\da-f]{16}",q1e="[\\da-f]{2}",V1e=new RegExp(`^\\s?(${F1e})-(${R1e})-(${W1e})-(${q1e})(-.*)?\\s?$`);function H1e(e){const t=V1e.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class U1e{inject(t,n,r){const i=Wr.getSpanContext(t);if(!i||XE(t)||!$0(i))return;const o=`${z1e}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||Da.NONE).toString(16)}`;r.set(n,dS,o),i.traceState&&r.set(n,hS,i.traceState.serialize())}extract(t,n,r){const i=r.get(n,dS);if(!i)return t;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return t;const a=H1e(o);if(!a)return t;a.isRemote=!0;const s=r.get(n,hS);if(s){const u=Array.isArray(s)?s.join(","):s;a.traceState=new fS(typeof u=="string"?u:void 0)}return Wr.setSpanContext(t,a)}fields(){return[dS,hS]}}const G1e="[object Object]",K1e="[object Null]",Y1e="[object Undefined]",OL=Function.prototype.toString,X1e=OL.call(Object),Z1e=Object.getPrototypeOf,PL=Object.prototype,CL=PL.hasOwnProperty,Ru=Symbol?Symbol.toStringTag:void 0,ML=PL.toString;function kL(e){if(!J1e(e)||Q1e(e)!==G1e)return!1;const t=Z1e(e);if(t===null)return!0;const n=CL.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&OL.call(n)===X1e}function J1e(e){return e!=null&&typeof e=="object"}function Q1e(e){return e==null?e===void 0?Y1e:K1e:Ru&&Ru in Object(e)?ebe(e):tbe(e)}function ebe(e){const t=CL.call(e,Ru),n=e[Ru];let r=!1;try{e[Ru]=void 0,r=!0}catch{}const i=ML.call(e);return r&&(t?e[Ru]=n:delete e[Ru]),i}function tbe(e){return ML.call(e)}const nbe=20;function rbe(...e){let t=e.shift();const n=new WeakMap;for(;e.length>0;)t=IL(t,e.shift(),0,n);return t}function pS(e){return W0(e)?e.slice():e}function IL(e,t,n=0,r){let i;if(!(n>nbe)){if(n++,q0(e)||q0(t)||NL(t))i=pS(t);else if(W0(e)){if(i=e.slice(),W0(t))for(let o=0,a=t.length;o<a;o++)i.push(pS(t[o]));else if(Zd(t)){const o=Object.keys(t);for(let a=0,s=o.length;a<s;a++){const u=o[a];i[u]=pS(t[u])}}}else if(Zd(e))if(Zd(t)){if(!ibe(e,t))return t;i=Object.assign({},e);const o=Object.keys(t);for(let a=0,s=o.length;a<s;a++){const u=o[a],l=t[u];if(q0(l))typeof l>"u"?delete i[u]:i[u]=l;else{const c=i[u],d=l;if(DL(e,u,r)||DL(t,u,r))delete i[u];else{if(Zd(c)&&Zd(d)){const h=r.get(c)||[],g=r.get(d)||[];h.push({obj:e,key:u}),g.push({obj:t,key:u}),r.set(c,h),r.set(d,g)}i[u]=IL(i[u],l,n,r)}}}}else i=t;return i}}function DL(e,t,n){const r=n.get(e[t])||[];for(let i=0,o=r.length;i<o;i++){const a=r[i];if(a.key===t&&a.obj===e)return!0}return!1}function W0(e){return Array.isArray(e)}function NL(e){return typeof e=="function"}function Zd(e){return!q0(e)&&!W0(e)&&!NL(e)&&typeof e=="object"}function q0(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function ibe(e,t){return!(!kL(e)||!kL(t))}function LL(e,t){return typeof t=="string"?e===t:!!e.match(t)}function obe(e,t){if(!t)return!1;for(const n of t)if(LL(e,n))return!0;return!1}class abe{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,n)=>{this._resolve=t,this._reject=n})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class sbe{_callback;_that;_isCalled=!1;_deferred=new abe;constructor(t,n){this._callback=t,this._that=n}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(n=>this._deferred.resolve(n),n=>this._deferred.reject(n))}catch(n){this._deferred.reject(n)}}return this._deferred.promise}}function ube(e,t){return new Promise(n=>{fr.with(t1e(fr.active()),()=>{e.export(t,r=>{n(r)})})})}const lbe={_export:ube};function cbe(){return"unknown_service"}const Jd=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class V0{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(t){const n=new V0({});return n._rawAttributes=jL(t),n._asyncAttributesPending=t.filter(([r,i])=>Jd(i)).length>0,n}constructor(t){const n=t.attributes??{};this._rawAttributes=Object.entries(n).map(([r,i])=>(Jd(i)&&(this._asyncAttributesPending=!0),[r,i])),this._rawAttributes=jL(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[n,r]=this._rawAttributes[t];this._rawAttributes[t]=[n,Jd(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Wt.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[n,r]of this._rawAttributes){if(Jd(r)){Wt.debug(`Unsettled resource attribute ${n} skipped`);continue}r!=null&&(t[n]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}merge(t){return t==null?this:V0.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()])}}function $L(e){return V0.FromAttributeList(Object.entries(e))}function fbe(){return $L({[wL]:cbe(),[iS]:sS[iS],[oS]:sS[oS],[aS]:sS[aS]})}function jL(e){return e.map(([t,n])=>Jd(n)?[t,n.catch(r=>{Wt.debug("promise rejection for resource attribute: %s - %s",t,r)})]:[t,n])}const dbe="exception";class hbe{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:zu.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const n=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=Tc.now(),this._performanceOffset=n-(this._performanceStartTime+uS()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??n),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,n){if(n==null||this._isSpanEnded())return this;if(t.length===0)return Wt.warn(`Invalid attribute key: ${t}`),this;if(!mL(n))return Wt.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:r}=this._spanLimits;return r!==void 0&&Object.keys(this.attributes).length>=r&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(n),this)}setAttributes(t){for(const[n,r]of Object.entries(t))this.setAttribute(n,r);return this}addEvent(t,n,r){if(this._isSpanEnded())return this;const{eventCountLimit:i}=this._spanLimits;if(i===0)return Wt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&Wt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),xL(n)&&(xL(r)||(r=n),n=void 0);const o=z0(n);return this.events.push({name:t,attributes:o,time:this._getTime(r),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(Wt.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){Wt.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(t),this._duration=C1e(this.startTime,this.endTime),this._duration[0]<0&&(Wt.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&Wt.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=Tc.now())return R0(t+this._performanceOffset);if(typeof t=="number")return Na(t);if(t instanceof Date)return Na(t.getTime());if(lS(t))return t;if(this._startTimeProvided)return Na(Date.now());const n=Tc.now()-this._performanceStartTime;return EL(this.startTime,Na(n))}isRecording(){return this._ended===!1}recordException(t,n){const r={};typeof t=="string"?r[nS]=t:t&&(t.code?r[rS]=t.code.toString():t.name&&(r[rS]=t.name),t.message&&(r[nS]=t.message),t.stack&&(r[m1e]=t.stack)),r[rS]||r[nS]?this.addEvent(dbe,r,n):Wt.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);Wt.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,n){return t.length<=n?t:t.substring(0,n)}_truncateToSize(t){const n=this._attributeValueLengthLimit;return n<=0?(Wt.warn(`Attribute value limit must be positive, got ${n}`),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,n):r):t}}var Oc;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Oc||(Oc={}));class H0{shouldSample(){return{decision:Oc.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Pc{shouldSample(){return{decision:Oc.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class U0{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(eS(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Pc),this._remoteParentSampled=t.remoteParentSampled??new Pc,this._remoteParentNotSampled=t.remoteParentNotSampled??new H0,this._localParentSampled=t.localParentSampled??new Pc,this._localParentNotSampled=t.localParentNotSampled??new H0}shouldSample(t,n,r,i,o,a){const s=Wr.getSpanContext(t);return!s||!$0(s)?this._root.shouldSample(t,n,r,i,o,a):s.isRemote?s.traceFlags&Da.SAMPLED?this._remoteParentSampled.shouldSample(t,n,r,i,o,a):this._remoteParentNotSampled.shouldSample(t,n,r,i,o,a):s.traceFlags&Da.SAMPLED?this._localParentSampled.shouldSample(t,n,r,i,o,a):this._localParentNotSampled.shouldSample(t,n,r,i,o,a)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class BL{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,n){return{decision:oL(n)&&this._accumulate(n)<this._upperBound?Oc.RECORD_AND_SAMPLED:Oc.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let n=0;for(let r=0;r<t.length/8;r++){const i=r*8,o=parseInt(t.slice(i,i+8),16);n=(n^o)>>>0}return n}}const zL=1;function FL(){return{sampler:RL(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function RL(){const e="parentbased_always_on";switch(e){case"always_on":return new Pc;case"always_off":return new H0;case"parentbased_always_on":return new U0({root:new Pc});case"parentbased_always_off":return new U0({root:new H0});case"traceidratio":return new BL(WL());case"parentbased_traceidratio":return new U0({root:new BL(WL())});default:return Wt.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new U0({root:new Pc})}}function WL(){return Wt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${zL}.`),zL}const pbe=128,gbe=1/0;function vbe(e){const t={sampler:RL()},n=FL(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}function ybe(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??pbe,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??gbe,Object.assign({},e,{spanLimits:t})}const mbe=8,bbe=16;class wbe{generateTraceId=qL(bbe);generateSpanId=qL(mbe)}const G0=Array(32);function qL(e){return function(){for(let n=0;n<e*2;n++)G0[n]=Math.floor(Math.random()*16)+48,G0[n]>=58&&(G0[n]+=39);return String.fromCharCode.apply(null,G0.slice(0,e*2))}}class _be{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,n,r,i){const o=vbe(n);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=n.idGenerator||new wbe,this._resource=r,this._spanProcessor=i,this.instrumentationScope=t}startSpan(t,n={},r=fr.active()){n.root&&(r=Wr.deleteSpan(r));const i=Wr.getSpan(r);if(XE(r))return Wt.debug("Instrumentation suppressed, returning Noop Span"),Wr.wrapSpanContext(rL);const o=i?.spanContext(),a=this._idGenerator.generateSpanId();let s,u,l;!o||!Wr.isSpanContextValid(o)?u=this._idGenerator.generateTraceId():(u=o.traceId,l=o.traceState,s=o);const c=n.kind??B0.INTERNAL,d=(n.links??[]).map(x=>({context:x.context,attributes:z0(x.attributes)})),h=z0(n.attributes),g=this._sampler.shouldSample(r,u,t,c,h,d);l=g.traceState??l;const m=g.decision===j0.RECORD_AND_SAMPLED?Da.SAMPLED:Da.NONE,v={traceId:u,spanId:a,traceFlags:m,traceState:l};if(g.decision===j0.NOT_RECORD)return Wt.debug("Recording is off, propagating context in a non-recording span"),Wr.wrapSpanContext(v);const y=z0(Object.assign(h,g.attributes));return new hbe({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:v,name:t,kind:c,links:d,parentSpanContext:s,attributes:y,startTime:n.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,n,r,i){let o,a,s;if(arguments.length<2)return;arguments.length===2?s=n:arguments.length===3?(o=n,s=r):(o=n,a=r,s=i);const u=a??fr.active(),l=this.startSpan(t,o,u),c=Wr.setSpan(u,l);return fr.with(c,s,void 0,l)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class xbe{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const n of this._spanProcessors)t.push(n.forceFlush());return new Promise(n=>{Promise.all(t).then(()=>{n()}).catch(r=>{eS(r||new Error("MultiSpanProcessor: forceFlush failed")),n()})})}onStart(t,n){for(const r of this._spanProcessors)r.onStart(t,n)}onEnd(t){for(const n of this._spanProcessors)n.onEnd(t)}shutdown(){const t=[];for(const n of this._spanProcessors)t.push(n.shutdown());return new Promise((n,r)=>{Promise.all(t).then(()=>{n()},r)})}}var Wu;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(Wu||(Wu={}));class Ebe{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const n=rbe({},FL(),ybe(t));this._resource=n.resource??fbe(),this._config=Object.assign({},n,{resource:this._resource});const r=[];t.spanProcessors?.length&&r.push(...t.spanProcessors),this._activeSpanProcessor=new xbe(r)}getTracer(t,n,r){const i=`${t}@${n||""}:${r?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new _be({name:t,version:n,schemaUrl:r?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,n=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(i=>{let o;const a=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${t} ms`)),o=Wu.timeout},t);r.forceFlush().then(()=>{clearTimeout(a),o!==Wu.timeout&&(o=Wu.resolved,i(o))}).catch(s=>{clearTimeout(a),o=Wu.error,i(s)})}));return new Promise((r,i)=>{Promise.all(n).then(o=>{const a=o.filter(s=>s!==Wu.resolved);a.length>0?i(a):r()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class Sbe{export(t,n){return this._sendSpans(t,n)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(t){return{resource:{attributes:t.resource.attributes},instrumentationScope:t.instrumentationScope,traceId:t.spanContext().traceId,parentSpanContext:t.parentSpanContext,traceState:t.spanContext().traceState?.serialize(),name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:_L(t.startTime),duration:_L(t.duration),attributes:t.attributes,status:t.status,events:t.events,links:t.links}}_sendSpans(t,n){for(const r of t)console.dir(this._exportInfo(r),{depth:3});if(n)return n({code:yo.SUCCESS})}}class VL{_exporter;_shutdownOnce;_pendingExports;constructor(t){this._exporter=t,this._shutdownOnce=new sbe(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(t,n){}onEnd(t){if(this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Da.SAMPLED)===0)return;const n=this._doExport(t).catch(r=>eS(r));this._pendingExports.add(n),n.finally(()=>this._pendingExports.delete(n))}async _doExport(t){t.resource.asyncAttributesPending&&await t.resource.waitForAsyncAttributes?.();const n=await lbe._export(this._exporter,[t]);if(n.code!==yo.SUCCESS)throw n.error??new Error(`SimpleSpanProcessor: span export failed (status ${n})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}class Abe{_enabled=!1;_currentContext=Ia;_bindFunction(t=Ia,n){const r=this,i=function(...o){return r.with(t,()=>n.apply(this,o))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i}active(){return this._currentContext}bind(t,n){return t===void 0&&(t=this.active()),typeof n=="function"?this._bindFunction(t,n):n}disable(){return this._currentContext=Ia,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Ia,this)}with(t,n,r,...i){const o=this._currentContext;this._currentContext=t||Ia;try{return n.call(r,...i)}finally{this._currentContext=o}}}function Tbe(e){if(e!==null){if(e===void 0){const t=new Abe;t.enable(),fr.setGlobalContextManager(t);return}e.enable(),fr.setGlobalContextManager(e)}}function Obe(e){if(e!==null){if(e===void 0){Ko.setGlobalPropagator(new M1e({propagators:[new U1e,new l1e]}));return}Ko.setGlobalPropagator(e)}}class Pbe extends Ebe{constructor(t={}){super(t)}register(t={}){Wr.setGlobalTracerProvider(this),Obe(t.propagator),Tbe(t.contextManager)}}var dn;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.START_TIME="startTime",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})(dn||(dn={}));const Cbe="http.response_content_length",Mbe="http.response_content_length_uncompressed";let gS;function kbe(){return gS||(gS=document.createElement("a")),gS}function Ibe(e,t){return t in e}function $a(e,t,n,r=!0){if(Ibe(n,t)&&typeof n[t]=="number"&&!(r&&n[t]===0))return e.addEvent(t,n[t])}function HL(e,t,n=!1,r,i){if(r===void 0&&(r=t[dn.START_TIME]!==0),n||($a(e,dn.FETCH_START,t,r),$a(e,dn.DOMAIN_LOOKUP_START,t,r),$a(e,dn.DOMAIN_LOOKUP_END,t,r),$a(e,dn.CONNECT_START,t,r),$a(e,dn.SECURE_CONNECTION_START,t,r),$a(e,dn.CONNECT_END,t,r),$a(e,dn.REQUEST_START,t,r),$a(e,dn.RESPONSE_START,t,r),$a(e,dn.RESPONSE_END,t,r)),!i){const o=t[dn.ENCODED_BODY_SIZE];o!==void 0&&e.setAttribute(Cbe,o);const a=t[dn.DECODED_BODY_SIZE];a!==void 0&&o!==a&&e.setAttribute(Mbe,a)}}function Dbe(e){return e.slice().sort((t,n)=>{const r=t[dn.FETCH_START],i=n[dn.FETCH_START];return r>i?1:r<i?-1:0})}function UL(){return typeof location<"u"?location.origin:void 0}function Nbe(e,t,n,r,i=new WeakSet,o){const a=K0(e);e=a.toString();const s=$be(e,t,n,r,i,o);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};const u=Dbe(s);if(a.origin!==UL()&&u.length>1){let l=u[0],c=Lbe(u,l[dn.RESPONSE_END],n);const d=l[dn.RESPONSE_END];return c[dn.FETCH_START]<d&&(c=l,l=void 0),{corsPreFlightRequest:l,mainRequest:c}}else return{mainRequest:s[0]}}function Lbe(e,t,n){const r=La(n),i=La(Xd(t));let o=e[1],a;const s=e.length;for(let u=1;u<s;u++){const l=e[u],c=La(Xd(l[dn.FETCH_START])),d=La(Xd(l[dn.RESPONSE_END])),h=r-d;c>=i&&(!a||h<a)&&(a=h,o=l)}return o}function $be(e,t,n,r,i,o){const a=La(t),s=La(n);let u=r.filter(l=>{const c=La(Xd(l[dn.FETCH_START])),d=La(Xd(l[dn.RESPONSE_END]));return l.initiatorType.toLowerCase()===o&&l.name===e&&c>=a&&d<=s});return u.length>0&&(u=u.filter(l=>!i.has(l))),u}function K0(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);const t=kbe();return t.href=e,t}function jbe(e,t){let n=t||[];return(typeof n=="string"||n instanceof RegExp)&&(n=[n]),K0(e).origin===UL()?!0:n.some(i=>LL(e,i))}class Bbe{_delegate;constructor(t){this._delegate=t}export(t,n){this._delegate.export(t,n)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class GL extends Error{code;name="OTLPExporterError";data;constructor(t,n,r){super(t),this.data=r,this.code=n}}function zbe(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function Fbe(e){if(e!=null)return()=>e}function Rbe(e,t,n){return{timeoutMillis:zbe(e.timeoutMillis??t.timeoutMillis??n.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??n.concurrencyLimit,compression:e.compression??t.compression??n.compression}}function Wbe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class qbe{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const n=()=>{const r=this._sendingPromises.indexOf(t);this._sendingPromises.splice(r,1)};t.then(n,n)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function Vbe(e){return new qbe(e.concurrencyLimit)}function Hbe(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function Ube(){return{handleResponse(e){e==null||!Hbe(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||Wt.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class Gbe{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(t,n,r,i,o){this._transport=t,this._serializer=n,this._responseHandler=r,this._promiseQueue=i,this._timeout=o,this._diagLogger=Wt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,n){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){n({code:yo.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(t);if(r==null){n({code:yo.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(o){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",o,i.data)}n({code:yo.SUCCESS});return}else if(i.status==="failure"&&i.error){n({code:yo.FAILED,error:i.error});return}else i.status==="retryable"?n({code:yo.FAILED,error:new GL("Export failed with retryable status")}):n({code:yo.FAILED,error:new GL("Export failed with unknown error")})},i=>n({code:yo.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function Kbe(e,t){return new Gbe(e.transport,e.serializer,Ube(),e.promiseHandler,t.timeout)}function KL(e,t,n){return Kbe({transport:n,serializer:t,promiseHandler:Vbe(e)},{timeout:e.timeoutMillis})}function YL(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function XL(e){const t=new Uint8Array(e.length/2);let n=0;for(let r=0;r<e.length;r+=2){const i=YL(e.charCodeAt(r)),o=YL(e.charCodeAt(r+1));t[n++]=i<<4|o}return t}function ZL(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function Ybe(e){const t=Number(BigInt.asUintN(32,e)),n=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:n}}function Xbe(e){const t=ZL(e);return Ybe(t)}function Zbe(e){return ZL(e).toString()}const Jbe=typeof BigInt<"u"?Zbe:La;function JL(e){return e}function Qbe(e){if(e!==void 0)return XL(e)}const ewe={encodeHrTime:Xbe,encodeSpanContext:XL,encodeOptionalSpanContext:Qbe};function twe(e){return e===void 0?ewe:{encodeHrTime:Jbe,encodeSpanContext:JL,encodeOptionalSpanContext:JL}}function nwe(e){return{attributes:Y0(e.attributes),droppedAttributesCount:0}}function rwe(e){return{name:e.name,version:e.version}}function Y0(e){return Object.keys(e).map(t=>QL(t,e[t]))}function QL(e,t){return{key:e,value:e$(t)}}function e$(e){const t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(e$)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([n,r])=>QL(n,r))}}:{}}function iwe(e,t){const n=e.spanContext(),r=e.status,i=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:i,traceState:n.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:Y0(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(o=>awe(o,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(o=>owe(o,t)),droppedLinksCount:e.droppedLinksCount}}function owe(e,t){return{attributes:e.attributes?Y0(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function awe(e,t){return{attributes:e.attributes?Y0(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function swe(e,t){const n=twe(t);return{resourceSpans:lwe(e,n)}}function uwe(e){const t=new Map;for(const n of e){let r=t.get(n.resource);r||(r=new Map,t.set(n.resource,r));const i=`${n.instrumentationScope.name}@${n.instrumentationScope.version||""}:${n.instrumentationScope.schemaUrl||""}`;let o=r.get(i);o||(o=[],r.set(i,o)),o.push(n)}return t}function lwe(e,t){const n=uwe(e),r=[],i=n.entries();let o=i.next();for(;!o.done;){const[a,s]=o.value,u=[],l=s.values();let c=l.next();for(;!c.done;){const h=c.value;if(h.length>0){const g=h.map(m=>iwe(m,t));u.push({scope:rwe(h[0].instrumentationScope),spans:g,schemaUrl:h[0].instrumentationScope.schemaUrl})}c=l.next()}const d={resource:nwe(a),scopeSpans:u,schemaUrl:void 0};r.push(d),o=i.next()}return r}const cwe={serializeRequest:e=>{const t=swe(e,{});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}},fwe=5,dwe=1e3,hwe=5e3,pwe=1.5,t$=.2;function gwe(){return Math.random()*(2*t$)-t$}class vwe{_transport;constructor(t){this._transport=t}retry(t,n,r){return new Promise((i,o)=>{setTimeout(()=>{this._transport.send(t,n).then(i,o)},r)})}async send(t,n){const r=Date.now()+n;let i=await this._transport.send(t,n),o=fwe,a=dwe;for(;i.status==="retryable"&&o>0;){o--;const s=Math.max(Math.min(a,hwe)+gwe(),0);a=a*pwe;const u=i.retryInMillis??s,l=r-Date.now();if(u>l)return i;i=await this.retry(t,l,u)}return i}shutdown(){return this._transport.shutdown()}}function n$(e){return new vwe(e.transport)}function ywe(e){return[429,502,503,504].includes(e)}function mwe(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const n=new Date(e).getTime()-Date.now();return n>=0?n:0}class bwe{_parameters;constructor(t){this._parameters=t}send(t,n){return new Promise(r=>{const i=new XMLHttpRequest;i.timeout=n,i.open("POST",this._parameters.url);const o=this._parameters.headers();Object.entries(o).forEach(([a,s])=>{i.setRequestHeader(a,s)}),i.ontimeout=a=>{r({status:"failure",error:new Error("XHR request timed out")})},i.onreadystatechange=()=>{i.status>=200&&i.status<=299?(Wt.debug("XHR success"),r({status:"success"})):i.status&&ywe(i.status)?r({status:"retryable",retryInMillis:mwe(i.getResponseHeader("Retry-After"))}):i.status!==0&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},i.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},i.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},i.send(t)})}shutdown(){}}function wwe(e){return new bwe(e)}class _we{_params;constructor(t){this._params=t}send(t){return new Promise(n=>{navigator.sendBeacon(this._params.url,new Blob([t],{type:this._params.blobType}))?(Wt.debug("SendBeacon success"),n({status:"success"})):n({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function xwe(e){return new _we(e)}function Ewe(e,t){return KL(e,t,n$({transport:wwe(e)}))}function Swe(e,t){return KL(e,t,n$({transport:xwe({url:e.url,blobType:e.headers()["Content-Type"]})}))}function Awe(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([n,r])=>{typeof r<"u"?t[n]=String(r):Wt.warn(`Header "${n}" has invalid value (${r}) and will be ignored`)}),t}}function Twe(e,t,n){const r={...n()},i={};return()=>(t!=null&&Object.assign(i,t()),e!=null&&Object.assign(i,e()),Object.assign(i,r))}function Owe(e){if(e!=null)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function Pwe(e,t,n){return{...Rbe(e,t,n),headers:Twe(Awe(e.headers),t.headers,n.headers),url:Owe(e.url)??t.url??n.url,agentOptions:e.agentOptions??t.agentOptions??n.agentOptions}}function Cwe(e,t){return{...Wbe(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}function Mwe(e,t,n){return Pwe({url:e.url,timeoutMillis:e.timeoutMillis,headers:Fbe(e.headers),concurrencyLimit:e.concurrencyLimit},{},Cwe(n,t))}function kwe(e,t,n,r){const i=!!e.headers||typeof navigator.sendBeacon!="function",o=Mwe(e,n,r);return i?Ewe(o,t):Swe(o,t)}class Iwe extends Bbe{constructor(t={}){super(kwe(t,cwe,"v1/traces",{"Content-Type":"application/json"}))}}class r${emit(t){}}const Dwe=new r$;class Nwe{getLogger(t,n,r){return new r$}}const i$=new Nwe;class Lwe{constructor(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}emit(t){this._getLogger().emit(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):Dwe}}class o${getLogger(t,n,r){var i;return(i=this.getDelegateLogger(t,n,r))!==null&&i!==void 0?i:new Lwe(this,t,n,r)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:i$}setDelegate(t){this._delegate=t}getDelegateLogger(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(t,n,r)}}const $we=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},X0=Symbol.for("io.opentelemetry.js.api.logs"),Qd=$we;function jwe(e,t,n){return r=>r===e?t:n}const a$=1;class vS{constructor(){this._proxyLoggerProvider=new o$}static getInstance(){return this._instance||(this._instance=new vS),this._instance}setGlobalLoggerProvider(t){return Qd[X0]?this.getLoggerProvider():(Qd[X0]=jwe(a$,t,i$),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,n;return(n=(t=Qd[X0])===null||t===void 0?void 0:t.call(Qd,a$))!==null&&n!==void 0?n:this._proxyLoggerProvider}getLogger(t,n,r){return this.getLoggerProvider().getLogger(t,n,r)}disable(){delete Qd[X0],this._proxyLoggerProvider=new o$}}const s$=vS.getInstance();function Bwe(e,t,n,r){for(let i=0,o=e.length;i<o;i++){const a=e[i];t&&a.setTracerProvider(t),n&&a.setMeterProvider(n),r&&a.setLoggerProvider&&a.setLoggerProvider(r),a.getConfig().enabled||a.enable()}}function zwe(e){e.forEach(t=>t.disable())}function Fwe(e){const t=e.tracerProvider||Wr.getTracerProvider(),n=e.meterProvider||uL.getMeterProvider(),r=e.loggerProvider||s$.getLoggerProvider(),i=e.instrumentations?.flat()??[];return Bwe(i,t,n,r),()=>{zwe(i)}}let Ti=console.error.bind(console);function eh(e,t,n){const r=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}const u$=(e,t,n)=>{if(!e||!e[t]){Ti("no original function "+String(t)+" to wrap");return}if(!n){Ti("no wrapper function"),Ti(new Error().stack);return}const r=e[t];if(typeof r!="function"||typeof n!="function"){Ti("original object and wrapper must be functions");return}const i=n(r,t);return eh(i,"__original",r),eh(i,"__unwrap",()=>{e[t]===i&&eh(e,t,r)}),eh(i,"__wrapped",!0),eh(e,t,i),i},Rwe=(e,t,n)=>{if(e)Array.isArray(e)||(e=[e]);else{Ti("must provide one or more modules to patch"),Ti(new Error().stack);return}if(!(t&&Array.isArray(t))){Ti("must provide one or more functions to wrap on modules");return}e.forEach(r=>{t.forEach(i=>{u$(r,i,n)})})},l$=(e,t)=>{if(!e||!e[t]){Ti("no function to unwrap."),Ti(new Error().stack);return}const n=e[t];if(!n.__unwrap)Ti("no original to unwrap to -- has "+String(t)+" already been unwrapped?");else{n.__unwrap();return}},Wwe=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{Ti("must provide one or more modules to patch"),Ti(new Error().stack);return}if(!(t&&Array.isArray(t))){Ti("must provide one or more functions to unwrap on modules");return}e.forEach(n=>{t.forEach(r=>{l$(n,r)})})};class qwe{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(t,n,r){this.instrumentationName=t,this.instrumentationVersion=n,this.setConfig(r),this._diag=Wt.createComponentLogger({namespace:t}),this._tracer=Wr.getTracer(t,n),this._meter=uL.getMeter(t,n),this._logger=s$.getLogger(t,n),this._updateMetricInstruments()}_wrap=u$;_unwrap=l$;_massWrap=Rwe;_massUnwrap=Wwe;get meter(){return this._meter}setMeterProvider(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const t=this.init()??[];return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(t){this._config={enabled:!0,...t}}setTracerProvider(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(t,n,r,i){if(t)try{t(r,i)}catch(o){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:n},o)}}}class Vwe extends qwe{constructor(t,n,r){super(t,n,r),this._config.enabled&&this.enable()}}function c$(e,t,n){let r,i;try{i=e()}catch(o){r=o}finally{return t(r,i),i}}function Hwe(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var ui;(function(e){e[e.STABLE=1]="STABLE",e[e.OLD=2]="OLD",e[e.DUPLICATE=3]="DUPLICATE"})(ui||(ui={}));function Uwe(e,t){let n=ui.OLD;const r=t?.split(",").map(i=>i.trim()).filter(i=>i!=="");for(const i of r??[])if(i.toLowerCase()===e+"/dup"){n=ui.DUPLICATE;break}else i.toLowerCase()===e&&(n=ui.STABLE);return n}var Z0;(function(e){e.COMPONENT="component",e.HTTP_STATUS_TEXT="http.status_text"})(Z0||(Z0={}));var Dn={},f$;function Gwe(){return f$||(f$=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.ATTR_HTTP_USER_AGENT=Dn.ATTR_HTTP_URL=Dn.ATTR_HTTP_STATUS_CODE=Dn.ATTR_HTTP_SCHEME=Dn.ATTR_HTTP_RESPONSE_CONTENT_LENGTH=Dn.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=Dn.ATTR_HTTP_REQUEST_BODY_SIZE=Dn.ATTR_HTTP_METHOD=Dn.ATTR_HTTP_HOST=void 0,Dn.ATTR_HTTP_HOST="http.host",Dn.ATTR_HTTP_METHOD="http.method",Dn.ATTR_HTTP_REQUEST_BODY_SIZE="http.request.body.size",Dn.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED="http.request_content_length_uncompressed",Dn.ATTR_HTTP_RESPONSE_CONTENT_LENGTH="http.response_content_length",Dn.ATTR_HTTP_SCHEME="http.scheme",Dn.ATTR_HTTP_STATUS_CODE="http.status_code",Dn.ATTR_HTTP_URL="http.url",Dn.ATTR_HTTP_USER_AGENT="http.user_agent"),Dn}var As=Gwe();const d$=Wt.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function Kwe(...e){if(e[0]instanceof URL||typeof e[0]=="string"){const t=e[1];if(!t?.body)return Promise.resolve();if(t.body instanceof ReadableStream){const{body:n,length:r}=Ywe(t.body);return t.body=n,r}else return Promise.resolve(Zwe(t.body))}else{const t=e[0];return t?.body?t.clone().text().then(n=>yS(n)):Promise.resolve()}}function Ywe(e){if(!e.pipeThrough)return d$.warn("Platform has ReadableStream but not pipeThrough!"),{body:e,length:Promise.resolve(void 0)};let t=0,n;const r=new Promise(o=>{n=o}),i=new TransformStream({start(){},async transform(o,a){const s=await o;t+=s.byteLength,a.enqueue(o)},flush(){n(t)}});return{body:e.pipeThrough(i),length:r}}function Xwe(e){return typeof Document<"u"&&e instanceof Document}function Zwe(e){if(Xwe(e))return new XMLSerializer().serializeToString(document).length;if(typeof e=="string")return yS(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return Qwe(e);if(e instanceof URLSearchParams)return yS(e.toString());if(e.byteLength!==void 0)return e.byteLength;d$.warn("unknown body type")}const Jwe=new TextEncoder;function yS(e){return Jwe.encode(e).byteLength}function Qwe(e){let t=0;for(const[n,r]of e.entries())t+=n.length,r instanceof Blob?t+=r.size:t+=r.length;return t}function e_e(e){const t=n_e(),n=e.toUpperCase();return n in t?n:"_OTHER"}const t_e={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0};let mS;function n_e(){return mS===void 0&&(mS=t_e),mS}const r_e={"https:":"443","http:":"80"};function i_e(e){const t=Number(e.port||r_e[e.protocol]);if(t&&!isNaN(t))return t}const h$="0.202.0",o_e=300,p$=typeof process=="object"&&process.release?.name==="node";class a_e extends Vwe{component="fetch";version=h$;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(t={}){super("@opentelemetry/instrumentation-fetch",h$,t),this._semconvStability=Uwe("http",t?.semconvStabilityOptIn)}init(){}_addChildSpan(t,n){const r=this.tracer.startSpan("CORS Preflight",{startTime:n[dn.FETCH_START]},Wr.setSpan(fr.active(),t)),i=!(this._semconvStability&ui.OLD);HL(r,n,this.getConfig().ignoreNetworkEvents,void 0,i),r.end(n[dn.RESPONSE_END])}_addFinalSpanAttributes(t,n){const r=K0(n.url);if(this._semconvStability&ui.OLD&&(t.setAttribute(As.ATTR_HTTP_STATUS_CODE,n.status),n.statusText!=null&&t.setAttribute(Z0.HTTP_STATUS_TEXT,n.statusText),t.setAttribute(As.ATTR_HTTP_HOST,r.host),t.setAttribute(As.ATTR_HTTP_SCHEME,r.protocol.replace(":","")),typeof navigator<"u"&&t.setAttribute(As.ATTR_HTTP_USER_AGENT,navigator.userAgent)),this._semconvStability&ui.STABLE){t.setAttribute(_1e,n.status),t.setAttribute(x1e,r.hostname);const i=i_e(r);i&&t.setAttribute(E1e,i)}}_addHeaders(t,n){if(!jbe(n,this.getConfig().propagateTraceHeaderCorsUrls)){const r={};Ko.inject(fr.active(),r),Object.keys(r).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(t instanceof Request)Ko.inject(fr.active(),t.headers,{set:(r,i,o)=>r.set(i,typeof o=="string"?o:String(o))});else if(t.headers instanceof Headers)Ko.inject(fr.active(),t.headers,{set:(r,i,o)=>r.set(i,typeof o=="string"?o:String(o))});else if(t.headers instanceof Map)Ko.inject(fr.active(),t.headers,{set:(r,i,o)=>r.set(i,typeof o=="string"?o:String(o))});else{const r={};Ko.inject(fr.active(),r),t.headers=Object.assign({},r,t.headers||{})}}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(t,n={}){if(obe(t,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}let r="";const i={};if(this._semconvStability&ui.OLD){const o=(n.method||"GET").toUpperCase();r=`HTTP ${o}`,i[Z0.COMPONENT]=this.moduleName,i[As.ATTR_HTTP_METHOD]=o,i[As.ATTR_HTTP_URL]=t}if(this._semconvStability&ui.STABLE){const o=n.method,a=e_e(n.method||"GET");r||(r=a),i[b1e]=a,a!==o&&(i[w1e]=o),i[A1e]=t}return this.tracer.startSpan(r,{kind:B0.CLIENT,attributes:i})}_findResourceAndAddNetworkEvents(t,n,r){let i=n.entries;if(!i.length){if(!performance.getEntriesByType)return;i=performance.getEntriesByType("resource")}const o=Nbe(n.spanUrl,n.startTime,r,i,this._usedResources,"fetch");if(o.mainRequest){const a=o.mainRequest;this._markResourceAsUsed(a);const s=o.corsPreFlightRequest;s&&(this._addChildSpan(t,s),this._markResourceAsUsed(s));const u=!(this._semconvStability&ui.OLD);HL(t,a,this.getConfig().ignoreNetworkEvents,void 0,u)}}_markResourceAsUsed(t){this._usedResources.add(t)}_endSpan(t,n,r){const i=Na(Date.now()),o=R0();this._addFinalSpanAttributes(t,r),this._semconvStability&ui.STABLE&&r.status>=400&&(t.setStatus({code:zu.ERROR}),t.setAttribute(y1e,String(r.status))),setTimeout(()=>{n.observer?.disconnect(),this._findResourceAndAddNetworkEvents(t,n,o),this._tasksCount--,this._clearResources(),t.end(i)},o_e)}_patchConstructor(){return t=>{const n=this;return function(...i){const o=this,a=K0(i[0]instanceof Request?i[0].url:String(i[0])).href,s=i[0]instanceof Request?i[0]:i[1]||{},u=n._createSpan(a,s);if(!u)return t.apply(this,i);const l=n._prepareSpanData(a);n.getConfig().measureRequestSize&&Kwe(...i).then(m=>{m&&(n._semconvStability&ui.OLD&&u.setAttribute(As.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,m),n._semconvStability&ui.STABLE&&u.setAttribute(As.ATTR_HTTP_REQUEST_BODY_SIZE,m))}).catch(m=>{n._diag.warn("getFetchBodyLength",m)});function c(m,v){n._applyAttributesAfterFetch(m,s,v),n._endSpan(m,l,{status:v.status||0,statusText:v.message,url:a})}function d(m,v){n._applyAttributesAfterFetch(m,s,v),v.status>=200&&v.status<400?n._endSpan(m,l,v):n._endSpan(m,l,{status:v.status,statusText:v.statusText,url:a})}function h(m,v,y){try{const x=y.clone().body;if(x){const E=x.getReader(),S=()=>{E.read().then(({done:A})=>{A?d(m,y):S()},A=>{c(m,A)})};S()}else d(m,y)}finally{v(y)}}function g(m,v,y){try{c(m,y)}finally{v(y)}}return new Promise((m,v)=>fr.with(Wr.setSpan(fr.active(),u),()=>(n._addHeaders(s,a),n._callRequestHook(u,s),n._tasksCount++,t.apply(o,s instanceof Request?[s]:[a,s]).then(h.bind(o,u,m),g.bind(o,u,v)))))}}}_applyAttributesAfterFetch(t,n,r){const i=this.getConfig().applyCustomAttributesOnSpan;i&&c$(()=>i(t,n,r),o=>{o&&this._diag.error("applyCustomAttributesOnSpan",o)})}_callRequestHook(t,n){const r=this.getConfig().requestHook;r&&c$(()=>r(t,n),i=>{i&&this._diag.error("requestHook",i)})}_prepareSpanData(t){const n=R0(),r=[];if(typeof PerformanceObserver!="function")return{entries:r,startTime:n,spanUrl:t};const i=new PerformanceObserver(o=>{o.getEntries().forEach(s=>{s.initiatorType==="fetch"&&s.name===t&&r.push(s)})});return i.observe({entryTypes:["resource"]}),{entries:r,observer:i,startTime:n,spanUrl:t}}enable(){if(p$){this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()");return}Hwe(fetch)&&(this._unwrap(tS,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(tS,"fetch",this._patchConstructor())}disable(){p$||(this._unwrap(tS,"fetch"),this._usedResources=new WeakSet)}}function s_e(e){return typeof e=="object"&&e!==null&&"addEventListener"in e&&typeof e.addEventListener=="function"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"}const g$="OT_ZONE_CONTEXT";class u_e{_enabled=!1;_zoneCounter=0;_activeContextFromZone(t){return t&&t.get(g$)||Ia}_bindFunction(t,n){const r=this,i=function(...o){return r.with(t,()=>n.apply(this,o))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i}_bindListener(t,n){const r=n;return r.__ot_listeners!==void 0||(r.__ot_listeners={},typeof r.addEventListener=="function"&&(r.addEventListener=this._patchAddEventListener(r,r.addEventListener,t)),typeof r.removeEventListener=="function"&&(r.removeEventListener=this._patchRemoveEventListener(r,r.removeEventListener))),n}_createZoneName(){this._zoneCounter++;const t=Math.random();return`${this._zoneCounter}-${t}`}_createZone(t,n){return Zone.current.fork({name:t,properties:{[g$]:n}})}_getActiveZone(){return Zone.current}_patchAddEventListener(t,n,r){const i=this;return function(o,a,s){t.__ot_listeners===void 0&&(t.__ot_listeners={});let u=t.__ot_listeners[o];u===void 0&&(u=new WeakMap,t.__ot_listeners[o]=u);const l=i.bind(r,a);return u.set(a,l),n.call(this,o,l,s)}}_patchRemoveEventListener(t,n){return function(r,i){if(t.__ot_listeners===void 0||t.__ot_listeners[r]===void 0)return n.call(this,r,i);const o=t.__ot_listeners[r],a=o.get(i);return o.delete(i),n.call(this,r,a||i)}}active(){if(!this._enabled)return Ia;const t=this._getActiveZone(),n=this._activeContextFromZone(t);return n||Ia}bind(t,n){return t===void 0&&(t=this.active()),typeof n=="function"?this._bindFunction(t,n):(s_e(n)&&this._bindListener(t,n),n)}disable(){return this._enabled=!1,this}enable(){return this._enabled=!0,this}with(t,n,r,...i){const o=this._createZoneName();return this._createZone(o,t).run(n,r,i)}}var v$={},y$;function l_e(){if(y$)return v$;y$=1;/**
|
|
202
|
+
c11.151,2.199,22.583,3.631,34.232,4.215c3.938,0.191,7.872,0.299,11.81,0.299C253.549,473.68,268.103,465.917,280.545,452.432z`})]});function Q0e({size:e=24,color:t="currentColor"}){return w.jsx(ie.SvgIcon,{children:w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",width:e,height:e,viewBox:"0 0 24 24",fill:t,children:w.jsx("path",{d:"M4,6H6V18H4V6M7,6H8V18H7V6M9,6H12V18H9V6M13,6H14V18H13V6M16,6H18V18H16V6M19,6H20V18H19V6M2,4V8H0V4A2,2 0 0,1 2,2H6V4H2M22,2A2,2 0 0,1 24,4V8H22V4H18V2H22M2,16V20H6V22H2A2,2 0 0,1 0,20V16H2M22,20V16H24V20A2,2 0 0,1 22,22H18V20H22Z"})})})}const{slice:eye,forEach:tye}=[];function nye(e){return tye.call(eye.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function rye(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const VN=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,iye=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t);let o=`${e}=${i}`;if(r.maxAge>0){const a=r.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(a)}`}if(r.domain){if(!VN.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!VN.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(o+="; Partitioned"),o},HN={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=iye(e,t,i)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var oye={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return HN.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:o}=t;n&&typeof document<"u"&&HN.create(n,e,r,i,o)}},aye={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const o=r.substring(1).split("&");for(let a=0;a<o.length;a++){const s=o[a].indexOf("=");s>0&&o[a].substring(0,s)===t&&(n=o[a].substring(s+1))}}return n}},sye={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:i}=window.location;if(i&&i.length>2){const o=i.substring(1);if(t){const a=o.split("&");for(let s=0;s<a.length;s++){const u=a[s].indexOf("=");u>0&&a[s].substring(0,u)===t&&(r=a[s].substring(u+1))}}if(r)return r;if(!r&&n>-1){const a=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(a)?a[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let Sc=null;const UN=()=>{if(Sc!==null)return Sc;try{if(Sc=typeof window<"u"&&window.localStorage!==null,!Sc)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Sc=!1}return Sc};var uye={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&UN())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&UN()&&window.localStorage.setItem(n,e)}};let Ac=null;const GN=()=>{if(Ac!==null)return Ac;try{if(Ac=typeof window<"u"&&window.sessionStorage!==null,!Ac)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Ac=!1}return Ac};var lye={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&GN())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&GN()&&window.sessionStorage.setItem(n,e)}},cye={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let o=0;o<n.length;o++)t.push(n[o]);r&&t.push(r),i&&t.push(i)}return t.length>0?t:void 0}},fye={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},dye={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},hye={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let KN=!1;try{document.cookie,KN=!0}catch{}const YN=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];KN||YN.splice(1,1);const pye=()=>({order:YN,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class XN{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=nye(n,this.options||{},pye()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(oye),this.addDetector(aye),this.addDetector(uye),this.addDetector(lye),this.addDetector(cye),this.addDetector(fye),this.addDetector(dye),this.addDetector(hye),this.addDetector(sye)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(n=n.concat(i))}}),n=n.filter(r=>r!=null&&!rye(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}XN.type="languageDetector";const gye=e=>{let t={};for(const r of Object.keys(e)){const i=r.match(/\w+\.json/);if(i){const o=i[0]?.split(".")[0];t={...t,[o]:{translation:e[r]}}}}const n=Object.keys(t);return Ka.use(XN).use(Et.initReactI18next).init({resources:t,fallbackLng:"en",interpolation:{escapeValue:!1},supportedLngs:n,missingKeyHandler:function(r,i,o){console.warn(`MISSING TRANSLATION: [${r}] ${i}:${o}`)}}),Ka};function ZN({children:e}){return w.jsx(yn,{paddingBottom:"16px",gap:"8px",children:e})}function JN({children:e}){return w.jsx(Hc,{mt:"auto",mb:"auto",width:"100%",children:w.jsx(ie.Paper,{sx:{width:"100%"},children:w.jsx(yn,{height:"70px",flexDirection:"row",alignItems:"center",gap:"16px",padding:"16px",children:e})})})}function QN({tabValue:e,columnValues:t,columnWidths:n}){const{t:r}=Et.useTranslation();return w.jsx(ie.Paper,{sx:{display:"grid",gridTemplateColumns:n?.[e]??[],padding:"0.5rem",fontWeight:"bold",position:"sticky",textAlign:"center",zIndex:10,top:0,border:"none",gap:"8px"},children:t[e].map((i,o)=>w.jsx(ie.Typography,{children:w.jsx("b",{children:r(i)})},o))})}function vye({InnerHeaderContent:e,TableHeaderContent:t,FirstTabContent:n,SecondTabContent:r,ThirdTabContent:i,tabValue:o,columnValues:a,columnWidths:s,FirstTabNearbyContent:u,SecondTabNearbyContent:l,ThirdTabNearbyContent:c}){return w.jsxs(Bs,{gap:"16px",children:[w.jsx(JN,{children:e}),w.jsxs(Ry,{gap:"16px",children:[w.jsxs(ie.Paper,{sx:{padding:"16px",overflow:"hidden",flexGrow:2,minWidth:u&&o===0||l&&o===1||c&&o===2?"70%":"unset",maxWidth:u&&o===0||l&&o===1||c&&o===2?"70%":"unset"},children:[w.jsx(ZN,{children:t}),w.jsxs(Bs,{children:[w.jsx(QN,{columnValues:a,columnWidths:s,tabValue:o}),w.jsx(ie.Divider,{sx:{marginBottom:"16px"}}),w.jsxs(Bs,{gap:"16px",overflow:"auto",paddingTop:0,sx:{scrollbarWidth:"none",paddingBottom:"72px"},children:[o===0?w.jsx(n,{}):null,o===1?w.jsx(r,{}):null,o===2&&i?w.jsx(i,{}):null]})]})]}),o===0&&u?w.jsx(ie.Paper,{sx:{padding:"16px",overflow:"hidden",flexGrow:1},children:u}):null,o===1&&l?w.jsx(ie.Paper,{sx:{padding:"16px",flexGrow:1,overflow:"hidden"},children:l}):null,o===2&&c?w.jsx(ie.Paper,{sx:{padding:"16px",flexGrow:1,overflow:"hidden"},children:c}):null]})]})}function yye({children:e,position:t}){return w.jsx(kA.SnackbarProvider,{maxSnack:3,autoHideDuration:3e3,anchorOrigin:{vertical:"bottom",horizontal:t??"center"},preventDuplicate:!0,Components:{default:Wd,info:Wd,success:Wd,error:Wd,warning:Wd},children:e})}const vo={};function mye(e,t){return{name:"vite-plugin-graphql-rewrite",enforce:"pre",resolveId(n,r){if(n.endsWith(".graphql")){const i=vo.resolve(n),o=vo.basename(i);if(!r.includes(t))return vo.resolve(e,"graphQL","__generated__",`${o}.ts`);const a=vo.resolve(__dirname,".."),s=r.slice(a.length).split("/")[1];return vo.resolve(a,s,"__generated__",`${o}.ts`)}return null}}}function bye(e,t){return{name:"vite-plugin-graphql-rewrite-build",enforce:"pre",resolveId(n,r){if(n.endsWith(".graphql")){const i=vo.resolve(n),o=vo.basename(i),a=vo.resolve(e,".."),s=vo.resolve(a,t,"__generated__",`${o}.ts`);return console.log("corepath",t),console.log("reporoot",a),console.log("fileproject",s),console.log("importer",r),r.includes(t)?vo.resolve(a,t,"__generated__",`${o}.ts`):vo.resolve(e,"graphQL","__generated__",`${o}.ts`)}return null}}}var wye=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},$u="1.9.0",eL=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function _ye(e){var t=new Set([e]),n=new Set,r=e.match(eL);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(u){return u===e};function o(s){return n.add(s),!1}function a(s){return t.add(s),!0}return function(u){if(t.has(u))return!0;if(n.has(u))return!1;var l=u.match(eL);if(!l)return o(u);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||i.major!==c.major?o(u):i.major===0?i.minor===c.minor&&i.patch<=c.patch?a(u):o(u):i.minor<=c.minor?a(u):o(u)}}var xye=_ye($u),Eye=$u.split(".")[0],qd=Symbol.for("opentelemetry.js.api."+Eye),Vd=wye;function Hd(e,t,n,r){var i;r===void 0&&(r=!1);var o=Vd[qd]=(i=Vd[qd])!==null&&i!==void 0?i:{version:$u};if(!r&&o[e]){var a=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(a.stack||a.message),!1}if(o.version!==$u){var a=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+e+" does not match previously registered API v"+$u);return n.error(a.stack||a.message),!1}return o[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+$u+"."),!0}function ju(e){var t,n,r=(t=Vd[qd])===null||t===void 0?void 0:t.version;if(!(!r||!xye(r)))return(n=Vd[qd])===null||n===void 0?void 0:n[e]}function Ud(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+$u+".");var n=Vd[qd];n&&delete n[e]}var Sye=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},Aye=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},Tye=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Gd("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Gd("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Gd("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Gd("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Gd("verbose",this._namespace,t)},e}();function Gd(e,t,n){var r=ju("diag");if(r)return n.unshift(t),r[e].apply(r,Aye([],Sye(n),!1))}var Ai;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(Ai||(Ai={}));function Oye(e,t){e<Ai.NONE?e=Ai.NONE:e>Ai.ALL&&(e=Ai.ALL),t=t||{};function n(r,i){var o=t[r];return typeof o=="function"&&e>=i?o.bind(t):function(){}}return{error:n("error",Ai.ERROR),warn:n("warn",Ai.WARN),info:n("info",Ai.INFO),debug:n("debug",Ai.DEBUG),verbose:n("verbose",Ai.VERBOSE)}}var Pye=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},Cye=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},Mye="diag",Go=function(){function e(){function t(i){return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=ju("diag");if(s)return s[i].apply(s,Cye([],Pye(o),!1))}}var n=this,r=function(i,o){var a,s,u;if(o===void 0&&(o={logLevel:Ai.INFO}),i===n){var l=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((a=l.stack)!==null&&a!==void 0?a:l.message),!1}typeof o=="number"&&(o={logLevel:o});var c=ju("diag"),d=Oye((s=o.logLevel)!==null&&s!==void 0?s:Ai.INFO,i);if(c&&!o.suppressOverrideMessage){var h=(u=new Error().stack)!==null&&u!==void 0?u:"<failed to generate stacktrace>";c.warn("Current logger will be overwritten from "+h),d.warn("Current logger will overwrite one already registered from "+h)}return Hd("diag",d,n,!0)};n.setLogger=r,n.disable=function(){Ud(Mye,n)},n.createComponentLogger=function(i){return new Tye(i)},n.verbose=t("verbose"),n.debug=t("debug"),n.info=t("info"),n.warn=t("warn"),n.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),kye=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},Iye=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Dye=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var n=this._entries.get(t);if(n)return Object.assign({},n)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var n=kye(t,2),r=n[0],i=n[1];return[r,i]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=new e(this._entries);try{for(var a=Iye(r),s=a.next();!s.done;s=a.next()){var u=s.value;o._entries.delete(u)}}catch(l){t={error:l}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o},e.prototype.clear=function(){return new e},e}(),Nye=Symbol("BaggageEntryMetadata"),Lye=Go.instance();function $ye(e){return e===void 0&&(e={}),new Dye(new Map(Object.entries(e)))}function jye(e){return typeof e!="string"&&(Lye.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:Nye,toString:function(){return e}}}function jE(e){return Symbol.for(e)}var Bye=function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(r){return n._currentContext.get(r)},n.setValue=function(r,i){var o=new e(n._currentContext);return o._currentContext.set(r,i),o},n.deleteValue=function(r){var i=new e(n._currentContext);return i._currentContext.delete(r),i}}return e}(),Ia=new Bye,Bu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zye=function(){function e(){}return e.prototype.createGauge=function(t,n){return Yye},e.prototype.createHistogram=function(t,n){return Xye},e.prototype.createCounter=function(t,n){return Kye},e.prototype.createUpDownCounter=function(t,n){return Zye},e.prototype.createObservableGauge=function(t,n){return Qye},e.prototype.createObservableCounter=function(t,n){return Jye},e.prototype.createObservableUpDownCounter=function(t,n){return eme},e.prototype.addBatchObservableCallback=function(t,n){},e.prototype.removeBatchObservableCallback=function(t){},e}(),N0=function(){function e(){}return e}(),Fye=function(e){Bu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t}(N0),Rye=function(e){Bu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t}(N0),Wye=function(e){Bu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t}(N0),qye=function(e){Bu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t}(N0),BE=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),Vye=function(e){Bu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(BE),Hye=function(e){Bu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(BE),Uye=function(e){Bu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(BE),Gye=new zye,Kye=new Fye,Yye=new Wye,Xye=new qye,Zye=new Rye,Jye=new Vye,Qye=new Hye,eme=new Uye,tme={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},nme={set:function(e,t,n){e!=null&&(e[t]=n)}},rme=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},ime=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},ome=function(){function e(){}return e.prototype.active=function(){return Ia},e.prototype.with=function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return n.call.apply(n,ime([r],rme(i),!1))},e.prototype.bind=function(t,n){return n},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),ame=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},sme=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},zE="context",ume=new ome,L0=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Hd(zE,t,Go.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,n,r){for(var i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return(i=this._getContextManager()).with.apply(i,sme([t,n,r],ame(o),!1))},e.prototype.bind=function(t,n){return this._getContextManager().bind(t,n)},e.prototype._getContextManager=function(){return ju(zE)||ume},e.prototype.disable=function(){this._getContextManager().disable(),Ud(zE,Go.instance())},e}(),Da;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Da||(Da={}));var tL="0000000000000000",nL="00000000000000000000000000000000",rL={traceId:nL,spanId:tL,traceFlags:Da.NONE},Kd=function(){function e(t){t===void 0&&(t=rL),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,n){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,n){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,n){},e}(),FE=jE("OpenTelemetry Context Key SPAN");function RE(e){return e.getValue(FE)||void 0}function lme(){return RE(L0.getInstance().active())}function WE(e,t){return e.setValue(FE,t)}function cme(e){return e.deleteValue(FE)}function fme(e,t){return WE(e,new Kd(t))}function iL(e){var t;return(t=RE(e))===null||t===void 0?void 0:t.spanContext()}var dme=/^([0-9a-f]{32})$/i,hme=/^[0-9a-f]{16}$/i;function oL(e){return dme.test(e)&&e!==nL}function pme(e){return hme.test(e)&&e!==tL}function $0(e){return oL(e.traceId)&&pme(e.spanId)}function gme(e){return new Kd(e)}var qE=L0.getInstance(),aL=function(){function e(){}return e.prototype.startSpan=function(t,n,r){r===void 0&&(r=qE.active());var i=!!n?.root;if(i)return new Kd;var o=r&&iL(r);return vme(o)&&$0(o)?new Kd(o):new Kd},e.prototype.startActiveSpan=function(t,n,r,i){var o,a,s;if(!(arguments.length<2)){arguments.length===2?s=n:arguments.length===3?(o=n,s=r):(o=n,a=r,s=i);var u=a??qE.active(),l=this.startSpan(t,o,u),c=WE(u,l);return qE.with(c,s,void 0,l)}},e}();function vme(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var yme=new aL,mme=function(){function e(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}return e.prototype.startSpan=function(t,n,r){return this._getTracer().startSpan(t,n,r)},e.prototype.startActiveSpan=function(t,n,r,i){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):yme},e}(),bme=function(){function e(){}return e.prototype.getTracer=function(t,n,r){return new aL},e}(),wme=new bme,sL=function(){function e(){}return e.prototype.getTracer=function(t,n,r){var i;return(i=this.getDelegateTracer(t,n,r))!==null&&i!==void 0?i:new mme(this,t,n,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:wme},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,n,r)},e}(),j0;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(j0||(j0={}));var B0;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(B0||(B0={}));var zu;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(zu||(zu={}));var fr=L0.getInstance(),Wt=Go.instance(),_me=function(){function e(){}return e.prototype.getMeter=function(t,n,r){return Gye},e}(),xme=new _me,VE="metrics",Eme=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Hd(VE,t,Go.instance())},e.prototype.getMeterProvider=function(){return ju(VE)||xme},e.prototype.getMeter=function(t,n,r){return this.getMeterProvider().getMeter(t,n,r)},e.prototype.disable=function(){Ud(VE,Go.instance())},e}(),uL=Eme.getInstance(),Sme=function(){function e(){}return e.prototype.inject=function(t,n){},e.prototype.extract=function(t,n){return t},e.prototype.fields=function(){return[]},e}(),HE=jE("OpenTelemetry Baggage Key");function lL(e){return e.getValue(HE)||void 0}function Ame(){return lL(L0.getInstance().active())}function Tme(e,t){return e.setValue(HE,t)}function Ome(e){return e.deleteValue(HE)}var UE="propagation",Pme=new Sme,Cme=function(){function e(){this.createBaggage=$ye,this.getBaggage=lL,this.getActiveBaggage=Ame,this.setBaggage=Tme,this.deleteBaggage=Ome}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Hd(UE,t,Go.instance())},e.prototype.inject=function(t,n,r){return r===void 0&&(r=nme),this._getGlobalPropagator().inject(t,n,r)},e.prototype.extract=function(t,n,r){return r===void 0&&(r=tme),this._getGlobalPropagator().extract(t,n,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Ud(UE,Go.instance())},e.prototype._getGlobalPropagator=function(){return ju(UE)||Pme},e}(),Ko=Cme.getInstance(),GE="trace",Mme=function(){function e(){this._proxyTracerProvider=new sL,this.wrapSpanContext=gme,this.isSpanContextValid=$0,this.deleteSpan=cme,this.getSpan=RE,this.getActiveSpan=lme,this.getSpanContext=iL,this.setSpan=WE,this.setSpanContext=fme}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var n=Hd(GE,this._proxyTracerProvider,Go.instance());return n&&this._proxyTracerProvider.setDelegate(t),n},e.prototype.getTracerProvider=function(){return ju(GE)||this._proxyTracerProvider},e.prototype.getTracer=function(t,n){return this.getTracerProvider().getTracer(t,n)},e.prototype.disable=function(){Ud(GE,Go.instance()),this._proxyTracerProvider=new sL},e}(),Wr=Mme.getInstance();function si(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Fu(e){return si(e)==="object"}function kme(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function cL(e,t){return e.length<124?e:t}const Ime="graphql-transport-ws";var Ki=(e=>(e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",e))(Ki||{}),Yi=(e=>(e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete",e))(Yi||{});function fL(e){if(!Fu(e))throw new Error(`Message is expected to be an object, but got ${si(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${si(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(e.payload!=null&&!Fu(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case"subscribe":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${si(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Fu(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${si(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${si(e.payload.query)}`);if(e.payload.variables!=null&&!Fu(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${si(e.payload.variables)}`);if(e.payload.operationName!=null&&si(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${si(e.payload.operationName)}`);if(e.payload.extensions!=null&&!Fu(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${si(e.payload.extensions)}`);break}case"next":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${si(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Fu(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${si(e.payload)}`);break}case"error":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${si(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!kme(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case"complete":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${si(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function Dme(e,t){return fL(typeof e=="string"?JSON.parse(e,t):e)}function Yd(e,t){return fL(e),JSON.stringify(e,t)}function Nme(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:o=0,keepAlive:a=0,disablePong:s,connectionAckWaitTimeout:u=0,retryAttempts:l=5,retryWait:c=async function(z){const $=Math.pow(2,z);await new Promise(V=>setTimeout(V,$*1e3+Math.floor(Math.random()*2700+300)))},shouldRetry:d=KE,on:h,webSocketImpl:g,generateID:m=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,z=>{const $=Math.random()*16|0;return(z=="x"?$:$&3|8).toString(16)})},jsonMessageReplacer:v,jsonMessageReviver:y}=e;let b;if(g){if(!$me(g))throw new Error("Invalid WebSocket implementation provided");b=g}else typeof WebSocket<"u"?b=WebSocket:typeof global<"u"?b=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(b=window.WebSocket||window.MozWebSocket);if(!b)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const x=b,E=(()=>{const C=(()=>{const $={};return{on(V,J){return $[V]=J,()=>{delete $[V]}},emit(V){"id"in V&&$[V.id]?.(V)}}})(),z={connecting:h?.connecting?[h.connecting]:[],opened:h?.opened?[h.opened]:[],connected:h?.connected?[h.connected]:[],ping:h?.ping?[h.ping]:[],pong:h?.pong?[h.pong]:[],message:h?.message?[C.emit,h.message]:[C.emit],closed:h?.closed?[h.closed]:[],error:h?.error?[h.error]:[]};return{onMessage:C.on,on($,V){const J=z[$];return J.push(V),()=>{J.splice(J.indexOf(V),1)}},emit($,...V){for(const J of[...z[$]])J(...V)}}})();function S(C){const z=[E.on("error",$=>{z.forEach(V=>V()),C($)}),E.on("closed",$=>{z.forEach(V=>V()),C($)})]}let A,T=0,P,M=!1,j=0,F=!1;async function N(){clearTimeout(P);const[C,z]=await(A??(A=new Promise((J,Y)=>(async()=>{if(M){if(await c(j),!T)return A=void 0,Y({code:1e3,reason:"All Subscriptions Gone"});j++}E.emit("connecting",M);const k=new x(typeof t=="function"?await t():t,Ime);let W,U;function X(){isFinite(a)&&a>0&&(clearTimeout(U),U=setTimeout(()=>{k.readyState===x.OPEN&&(k.send(Yd({type:Yi.Ping})),E.emit("ping",!1,void 0))},a))}S(oe=>{A=void 0,clearTimeout(W),clearTimeout(U),Y(oe),oe instanceof dL&&(k.close(4499,"Terminated"),k.onerror=null,k.onclose=null)}),k.onerror=oe=>E.emit("error",oe),k.onclose=oe=>E.emit("closed",oe),k.onopen=async()=>{try{E.emit("opened",k);const oe=typeof n=="function"?await n():n;if(k.readyState!==x.OPEN)return;k.send(Yd(oe?{type:Yi.ConnectionInit,payload:oe}:{type:Yi.ConnectionInit},v)),isFinite(u)&&u>0&&(W=setTimeout(()=>{k.close(Ki.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},u)),X()}catch(oe){E.emit("error",oe),k.close(Ki.InternalClientError,cL(oe instanceof Error?oe.message:String(oe),"Internal client error"))}};let ae=!1;k.onmessage=({data:oe})=>{try{const ve=Dme(oe,y);if(E.emit("message",ve),ve.type==="ping"||ve.type==="pong"){E.emit(ve.type,!0,ve.payload),ve.type==="pong"?X():s||(k.send(Yd(ve.payload?{type:Yi.Pong,payload:ve.payload}:{type:Yi.Pong})),E.emit("pong",!1,ve.payload));return}if(ae)return;if(ve.type!==Yi.ConnectionAck)throw new Error(`First message cannot be of type ${ve.type}`);clearTimeout(W),ae=!0,E.emit("connected",k,ve.payload,M),M=!1,j=0,J([k,new Promise((be,Ee)=>S(Ee))])}catch(ve){k.onmessage=null,E.emit("error",ve),k.close(Ki.BadResponse,cL(ve instanceof Error?ve.message:String(ve),"Bad response"))}}})())));C.readyState===x.CLOSING&&await z;let $=()=>{};const V=new Promise(J=>$=J);return[C,$,Promise.race([V.then(()=>{if(!T){const J=()=>C.close(1e3,"Normal Closure");isFinite(o)&&o>0?P=setTimeout(()=>{C.readyState===x.OPEN&&J()},o):J()}}),z])]}function H(C){if(KE(C)&&(Lme(C.code)||[Ki.InternalServerError,Ki.InternalClientError,Ki.BadRequest,Ki.BadResponse,Ki.Unauthorized,Ki.SubprotocolNotAcceptable,Ki.SubscriberAlreadyExists,Ki.TooManyInitialisationRequests].includes(C.code)))throw C;if(F)return!1;if(KE(C)&&C.code===1e3)return T>0;if(!l||j>=l||!d(C))throw C;return M=!0}r||(async()=>{for(T++;;)try{const[,,C]=await N();await C}catch(C){try{if(!H(C))return}catch(z){return i?.(z)}}})();function L(C,z){const $=m(C);let V=!1,J=!1,Y=()=>{T--,V=!0};return(async()=>{for(T++;;)try{const[k,W,U]=await N();if(V)return W();const X=E.onMessage($,ae=>{switch(ae.type){case Yi.Next:{z.next(ae.payload);return}case Yi.Error:{J=!0,V=!0,z.error(ae.payload),Y();return}case Yi.Complete:{V=!0,Y();return}}});k.send(Yd({id:$,type:Yi.Subscribe,payload:C},v)),Y=()=>{!V&&k.readyState===x.OPEN&&k.send(Yd({id:$,type:Yi.Complete},v)),T--,V=!0,W()},await U.finally(X);return}catch(k){if(!H(k))return}})().then(()=>{J||z.complete()}).catch(k=>{z.error(k)}),()=>{V||Y()}}return{on:E.on,subscribe:L,iterate(C){const z=[],$={done:!1,error:null,resolve:()=>{}},V=L(C,{next(Y){z.push(Y),$.resolve()},error(Y){$.done=!0,$.error=Y,$.resolve()},complete(){$.done=!0,$.resolve()}}),J=async function*(){for(;;){for(z.length||await new Promise(k=>$.resolve=k);z.length;)yield z.shift();if($.error)throw $.error;if($.done)return}}();return J.throw=async Y=>($.done||($.done=!0,$.error=Y,$.resolve()),{done:!0,value:void 0}),J.return=async()=>(V(),{done:!0,value:void 0}),J},async dispose(){if(F=!0,A){const[C]=await A;C.close(1e3,"Normal Closure")}},terminate(){A&&E.emit("closed",new dL)}}}class dL extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function KE(e){return Fu(e)&&"code"in e&&"reason"in e}function Lme(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function $me(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}const jme=e=>Nme({url:e.API_URL}),Bme=(e,t,n)=>tl.Observable.create(r=>jme(n).subscribe({operationName:e.name,query:e.text,variables:t},r)),zme=(e,t,n)=>tl.Observable.from(fr.with(fr.active(),()=>{const r=Wr.getTracer("RelayNetwork").startSpan("GraphQL fetch");r.setAttribute("variables",JSON.stringify(t)),r.setAttribute("path",e.name);const i=r.spanContext();return fetch(n.API_URL,{method:"POST",headers:{"Content-Type":"application/json",traceparent:`00-${i.traceId}-${i.spanId}-01`,...localStorage.getItem("token")?{authorization:localStorage.getItem("token")}:{},"x-auth-scheme":n.AUTH_SCHEMA,...n.CUSTOM_HEADERS},body:JSON.stringify({query:e.text,variables:t}),...n.AUTH_SCHEMA==="Cookies"?{credentials:"include"}:{}}).then(o=>o.json().then(a=>(a.errors?(r.setStatus({code:zu.ERROR}),r.recordException(JSON.stringify(a.errors))):r.setStatus({code:zu.OK}),a))).catch(o=>{r.setStatus({code:zu.ERROR}),r.recordException(JSON.stringify(o))}).finally(()=>r.end())})),Fme=e=>{const t=e.id;return t!==null&&typeof t!="string"?String(t):t};function hL(e){return new tl.Environment({network:tl.Network.create((t,n)=>zme(t,n,e),(t,n)=>Bme(t,n,e)),store:new tl.Store(new tl.RecordSource),getDataID:Fme})}function Rme({children:e}){const t=Dh(),n=hL(t);return w.jsx(TA.RelayEnvironmentProvider,{environment:n,children:e})}const Wme=(e,t,n)=>{const r=[];for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const o=e[i],a=i.match(/pages\/(?!core)(.*)\/index\.ts?$/);if(!a)continue;const s=a[1],u=Object.keys(t).find(b=>b.includes(`${s}/loader.ts`)),l=Object.keys(n).find(b=>b.includes(`${s}/action.ts`)),c=s.match(/\[(.+)\]/)?s.replace(/\[(.+)\]/,"$1/:data"):s.replace(/\/index/,""),d=s==="index"?"/":`${c.toLowerCase()}`,h=I.lazy(o),g=I.lazy(async()=>({default:(await o()).icon||oo.BlurCircularOutlined})),m=u?t[u].default:void 0,v=l?n[l].default:void 0,y={id:d,Icon:g,name:c,path:d,element:w.jsx(I.Suspense,{fallback:w.jsx(kh,{}),children:w.jsx(h,{})}),...u?{loader:m}:{},...l?{action:v}:{}};r.push(y)}return r};var pL=(e=>(e[e.Container=1]="Container",e[e.File=2]="File",e[e.Rad=3]="Rad",e))(pL||{});const qme={createState:e=>{const t=IA.atom(e),n=IA.getDefaultStore();return{get:()=>n.get(t),set:r=>n.set(t,r),subscribe:r=>{const i=()=>{const o=n.get(t);r(o)};return n.sub(t,i)}}},type:"jotaiAdapter"};function Vme(){return{createState:e=>{const t=Vc.atom({key:`recoilAtom_${Math.random()}`,default:e});return{get:()=>(console.log("Getting value from Recoil atom"),Vc.useRecoilValue(t)),set:o=>{console.log("Setting value to Recoil atom"),Vc.useSetRecoilState(t)(o)},subscribe:o=>(console.log("Subscribing to Recoil atom"),Vc.useRecoilCallback(({snapshot:s})=>()=>{const u=s.getLoadable(t).contents;o(u)}))}},type:"recoilAdapter"}}const gL=I.createContext([!1,{lockInIdleMode:()=>{},unlockIdleMode:()=>{}}]);function Hme({timer:e,children:t}){const n=BA(e);return w.jsx(gL.Provider,{value:n,children:t})}const YE={palette:{greyCustom:{main:"#787474",light:"#f8f4f4",dark:"#464646"}},components:{MuiButton:{defaultProps:{variant:"contained",disableElevation:!0},styleOverrides:{root:{borderRadius:"24px",textTransform:"capitalize",fontSize:"1rem"}}},MuiOutlinedInput:{styleOverrides:{root:{borderRadius:"12px"}},defaultProps:{style:{borderRadius:"12px"}}},MuiSelect:{defaultProps:{IconComponent:JB}},MuiFilledInput:{defaultProps:{sx:{backgroundColor:"rgba(255,255,255,0.3)",borderRadius:"12px","&:hover::before":{border:"unset!important"},"&::before":{borderBottom:"unset"},"&::after":{borderBottom:"unset"}}}},MuiTextField:{defaultProps:{fullWidth:!0,variant:"outlined"}},MuiFormControl:{defaultProps:{fullWidth:!0,variant:"outlined"}},MuiPaper:{defaultProps:{variant:"outlined"},styleOverrides:{root:{borderRadius:"18px",backgroundImage:"unset",transition:"all 0.5s ease-in-out"}}},MuiCheckbox:{defaultProps:{color:"primary"}},MuiTypography:{defaultProps:{variant:"body1"}}},typography:{fontFamily:"Manrope"}},Ume={light:e=>DA.deepmerge({...YE,...e},{palette:{primary:{main:"#00796b",border:"rgba(0, 0, 0, 0.12)"},mode:"light",background:{default:"#fafafa"}}}),dark:e=>DA.deepmerge({...YE,...e},{palette:{primary:{main:"#009f93",border:"rgba(255, 255, 255, 0.12)"},mode:"dark",background:{default:"#111111",paper:"#171717"}}})};function Gme({children:e,theme:t}){const[n]=zs();return w.jsx(ie.ThemeProvider,{theme:ie.createTheme(Ume[n](t)),children:e})}const Kme=(e,t,n)=>{if(!xc(e))return;const r=new Date(e);switch(n){case"milliseconds":r.setMilliseconds(r.getMilliseconds()+t);break;case"seconds":r.setSeconds(r.getSeconds()+t);break;case"minutes":r.setMinutes(r.getMinutes()+t);break;case"hours":r.setHours(r.getHours()+t);break;case"days":r.setDate(r.getDate()+t);break;case"weeks":r.setDate(r.getDate()+t*7);break;case"months":r.setMonth(r.getMonth()+t);break;case"years":r.setFullYear(r.getFullYear()+t);break;default:throw new Error(`Unsupported time unit: ${n}`)}return r};var vL=(e=>(e[e.days=86400]="days",e[e.hours=3600]="hours",e[e.minutes=6e4]="minutes",e[e.seconds=1e3]="seconds",e[e.milliseconds=1]="milliseconds",e))(vL||{});const Yme=(e,t,n="milliseconds")=>{if(!xc(e)||!xc(t))return;const r=new Date(e).getTime();return(new Date(t).getTime()-r)/vL[n]},Xme=e=>{if(e==null)return"";const t=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),r=Math.floor(e%3600/60),i=e%60;return[t?`${t}d`:"",n?`${n}h`:"",r?`${r}min`:"",i?`${i}sec`:""].filter(Boolean).join(" ")},Zme=(e,t,n)=>{if(!xc(e))throw new Error("Invalid Date");const r=new Date(e);switch(n){case"milliseconds":r.setMilliseconds(r.getMilliseconds()-t);break;case"seconds":r.setSeconds(r.getSeconds()-t);break;case"minutes":r.setMinutes(r.getMinutes()-t);break;case"hours":r.setHours(r.getHours()-t);break;case"days":r.setDate(r.getDate()-t);break;case"weeks":r.setDate(r.getDate()-t*7);break;case"months":r.setMonth(r.getMonth()-t);break;case"years":r.setFullYear(r.getFullYear()-t);break;default:throw new Error(`Unsupported time unit: ${n}`)}return r},Jme=(e,t)=>e<=1?12:Math.floor(12/t),Qme=(e,t)=>(e&t)===t;function e1e(e){const t={};function n(r){Object.prototype.hasOwnProperty.call(r,"edges")&&(t.edges=r.edges);for(const i in r)typeof r[i]=="object"&&r[i]!==null&&n(r[i])}return n(e),t}const yL=jE("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function t1e(e){return e.setValue(yL,!0)}function XE(e){return e.getValue(yL)===!0}const n1e="=",ZE=";",JE=",",QE="baggage",r1e=180,i1e=4096,o1e=8192;function a1e(e){return e.reduce((t,n)=>{const r=`${t}${t!==""?JE:""}${n}`;return r.length>o1e?t:r},"")}function s1e(e){return e.getAllEntries().map(([t,n])=>{let r=`${encodeURIComponent(t)}=${encodeURIComponent(n.value)}`;return n.metadata!==void 0&&(r+=ZE+n.metadata.toString()),r})}function u1e(e){const t=e.split(ZE);if(t.length<=0)return;const n=t.shift();if(!n)return;const r=n.indexOf(n1e);if(r<=0)return;const i=decodeURIComponent(n.substring(0,r).trim()),o=decodeURIComponent(n.substring(r+1).trim());let a;return t.length>0&&(a=jye(t.join(ZE))),{key:i,value:o,metadata:a}}class l1e{inject(t,n,r){const i=Ko.getBaggage(t);if(!i||XE(t))return;const o=s1e(i).filter(s=>s.length<=i1e).slice(0,r1e),a=a1e(o);a.length>0&&r.set(n,QE,a)}extract(t,n,r){const i=r.get(n,QE),o=Array.isArray(i)?i.join(JE):i;if(!o)return t;const a={};return o.length===0||(o.split(JE).forEach(u=>{const l=u1e(u);if(l){const c={value:l.value};l.metadata&&(c.metadata=l.metadata),a[l.key]=c}}),Object.entries(a).length===0)?t:Ko.setBaggage(t,Ko.createBaggage(a))}fields(){return[QE]}}function z0(e){const t={};if(typeof e!="object"||e==null)return t;for(const[n,r]of Object.entries(e)){if(!c1e(n)){Wt.warn(`Invalid attribute key: ${n}`);continue}if(!mL(r)){Wt.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?t[n]=r.slice():t[n]=r}return t}function c1e(e){return typeof e=="string"&&e.length>0}function mL(e){return e==null?!0:Array.isArray(e)?f1e(e):bL(e)}function f1e(e){let t;for(const n of e)if(n!=null){if(!t){if(bL(n)){t=typeof n;continue}return!1}if(typeof n!==t)return!1}return!0}function bL(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function d1e(){return e=>{Wt.error(h1e(e))}}function h1e(e){return typeof e=="string"?e:JSON.stringify(p1e(e))}function p1e(e){const t={};let n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r=>{if(t[r])return;const i=n[r];i&&(t[r]=String(i))}),n=Object.getPrototypeOf(n);return t}let g1e=d1e();function eS(e){try{g1e(e)}catch{}}function m3e(e){}const tS=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Tc=performance,v1e="2.0.1",y1e="error.type",nS="exception.message",m1e="exception.stacktrace",rS="exception.type",b1e="http.request.method",w1e="http.request.method_original",_1e="http.response.status_code",x1e="server.address",E1e="server.port",wL="service.name",iS="telemetry.sdk.language",S1e="webjs",oS="telemetry.sdk.name",aS="telemetry.sdk.version",A1e="url.full",T1e="process.runtime.name",sS={[oS]:"opentelemetry",[T1e]:"browser",[iS]:S1e,[aS]:v1e},O1e=9,P1e=Math.pow(10,6),F0=Math.pow(10,O1e);function Na(e){const t=e/1e3,n=Math.trunc(t),r=Math.round(e%1e3*P1e);return[n,r]}function uS(){let e=Tc.timeOrigin;if(typeof e!="number"){const t=Tc;e=t.timing&&t.timing.fetchStart}return e}function R0(e){const t=Na(uS()),n=Na(typeof e=="number"?e:Tc.now());return EL(t,n)}function Xd(e){if(lS(e))return e;if(typeof e=="number")return e<uS()?R0(e):Na(e);if(e instanceof Date)return Na(e.getTime());throw TypeError("Invalid input type")}function C1e(e,t){let n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=F0),[n,r]}function La(e){return e[0]*F0+e[1]}function _L(e){return e[0]*1e6+e[1]/1e3}function lS(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function xL(e){return lS(e)||typeof e=="number"||e instanceof Date}function EL(e,t){const n=[e[0]+t[0],e[1]+t[1]];return n[1]>=F0&&(n[1]-=F0,n[0]+=1),n}var yo;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(yo||(yo={}));class M1e{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,r)=>n.concat(r),[])))}inject(t,n,r){for(const i of this._propagators)try{i.inject(t,n,r)}catch(o){Wt.warn(`Failed to inject with ${i.constructor.name}. Err: ${o.message}`)}}extract(t,n,r){return this._propagators.reduce((i,o)=>{try{return o.extract(i,n,r)}catch(a){Wt.warn(`Failed to extract with ${o.constructor.name}. Err: ${a.message}`)}return i},t)}fields(){return this._fields.slice()}}const cS="[_0-9a-z-*/]",k1e=`[a-z]${cS}{0,255}`,I1e=`[a-z0-9]${cS}{0,240}@[a-z]${cS}{0,13}`,D1e=new RegExp(`^(?:${k1e}|${I1e})$`),N1e=/^[ -~]{0,255}[!-~]$/,L1e=/,|=/;function $1e(e){return D1e.test(e)}function j1e(e){return N1e.test(e)&&!L1e.test(e)}const SL=32,B1e=512,AL=",",TL="=";class fS{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,n){const r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,n),r}unset(t){const n=this._clone();return n._internalState.delete(t),n}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,n)=>(t.push(n+TL+this.get(n)),t),[]).join(AL)}_parse(t){t.length>B1e||(this._internalState=t.split(AL).reverse().reduce((n,r)=>{const i=r.trim(),o=i.indexOf(TL);if(o!==-1){const a=i.slice(0,o),s=i.slice(o+1,r.length);$1e(a)&&j1e(s)&&n.set(a,s)}return n},new Map),this._internalState.size>SL&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,SL))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new fS;return t._internalState=new Map(this._internalState),t}}const dS="traceparent",hS="tracestate",z1e="00",F1e="(?!ff)[\\da-f]{2}",R1e="(?![0]{32})[\\da-f]{32}",W1e="(?![0]{16})[\\da-f]{16}",q1e="[\\da-f]{2}",V1e=new RegExp(`^\\s?(${F1e})-(${R1e})-(${W1e})-(${q1e})(-.*)?\\s?$`);function H1e(e){const t=V1e.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class U1e{inject(t,n,r){const i=Wr.getSpanContext(t);if(!i||XE(t)||!$0(i))return;const o=`${z1e}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||Da.NONE).toString(16)}`;r.set(n,dS,o),i.traceState&&r.set(n,hS,i.traceState.serialize())}extract(t,n,r){const i=r.get(n,dS);if(!i)return t;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return t;const a=H1e(o);if(!a)return t;a.isRemote=!0;const s=r.get(n,hS);if(s){const u=Array.isArray(s)?s.join(","):s;a.traceState=new fS(typeof u=="string"?u:void 0)}return Wr.setSpanContext(t,a)}fields(){return[dS,hS]}}const G1e="[object Object]",K1e="[object Null]",Y1e="[object Undefined]",OL=Function.prototype.toString,X1e=OL.call(Object),Z1e=Object.getPrototypeOf,PL=Object.prototype,CL=PL.hasOwnProperty,Ru=Symbol?Symbol.toStringTag:void 0,ML=PL.toString;function kL(e){if(!J1e(e)||Q1e(e)!==G1e)return!1;const t=Z1e(e);if(t===null)return!0;const n=CL.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&OL.call(n)===X1e}function J1e(e){return e!=null&&typeof e=="object"}function Q1e(e){return e==null?e===void 0?Y1e:K1e:Ru&&Ru in Object(e)?ebe(e):tbe(e)}function ebe(e){const t=CL.call(e,Ru),n=e[Ru];let r=!1;try{e[Ru]=void 0,r=!0}catch{}const i=ML.call(e);return r&&(t?e[Ru]=n:delete e[Ru]),i}function tbe(e){return ML.call(e)}const nbe=20;function rbe(...e){let t=e.shift();const n=new WeakMap;for(;e.length>0;)t=IL(t,e.shift(),0,n);return t}function pS(e){return W0(e)?e.slice():e}function IL(e,t,n=0,r){let i;if(!(n>nbe)){if(n++,q0(e)||q0(t)||NL(t))i=pS(t);else if(W0(e)){if(i=e.slice(),W0(t))for(let o=0,a=t.length;o<a;o++)i.push(pS(t[o]));else if(Zd(t)){const o=Object.keys(t);for(let a=0,s=o.length;a<s;a++){const u=o[a];i[u]=pS(t[u])}}}else if(Zd(e))if(Zd(t)){if(!ibe(e,t))return t;i=Object.assign({},e);const o=Object.keys(t);for(let a=0,s=o.length;a<s;a++){const u=o[a],l=t[u];if(q0(l))typeof l>"u"?delete i[u]:i[u]=l;else{const c=i[u],d=l;if(DL(e,u,r)||DL(t,u,r))delete i[u];else{if(Zd(c)&&Zd(d)){const h=r.get(c)||[],g=r.get(d)||[];h.push({obj:e,key:u}),g.push({obj:t,key:u}),r.set(c,h),r.set(d,g)}i[u]=IL(i[u],l,n,r)}}}}else i=t;return i}}function DL(e,t,n){const r=n.get(e[t])||[];for(let i=0,o=r.length;i<o;i++){const a=r[i];if(a.key===t&&a.obj===e)return!0}return!1}function W0(e){return Array.isArray(e)}function NL(e){return typeof e=="function"}function Zd(e){return!q0(e)&&!W0(e)&&!NL(e)&&typeof e=="object"}function q0(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function ibe(e,t){return!(!kL(e)||!kL(t))}function LL(e,t){return typeof t=="string"?e===t:!!e.match(t)}function obe(e,t){if(!t)return!1;for(const n of t)if(LL(e,n))return!0;return!1}class abe{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,n)=>{this._resolve=t,this._reject=n})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class sbe{_callback;_that;_isCalled=!1;_deferred=new abe;constructor(t,n){this._callback=t,this._that=n}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(n=>this._deferred.resolve(n),n=>this._deferred.reject(n))}catch(n){this._deferred.reject(n)}}return this._deferred.promise}}function ube(e,t){return new Promise(n=>{fr.with(t1e(fr.active()),()=>{e.export(t,r=>{n(r)})})})}const lbe={_export:ube};function cbe(){return"unknown_service"}const Jd=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class V0{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(t){const n=new V0({});return n._rawAttributes=jL(t),n._asyncAttributesPending=t.filter(([r,i])=>Jd(i)).length>0,n}constructor(t){const n=t.attributes??{};this._rawAttributes=Object.entries(n).map(([r,i])=>(Jd(i)&&(this._asyncAttributesPending=!0),[r,i])),this._rawAttributes=jL(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[n,r]=this._rawAttributes[t];this._rawAttributes[t]=[n,Jd(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Wt.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[n,r]of this._rawAttributes){if(Jd(r)){Wt.debug(`Unsettled resource attribute ${n} skipped`);continue}r!=null&&(t[n]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}merge(t){return t==null?this:V0.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()])}}function $L(e){return V0.FromAttributeList(Object.entries(e))}function fbe(){return $L({[wL]:cbe(),[iS]:sS[iS],[oS]:sS[oS],[aS]:sS[aS]})}function jL(e){return e.map(([t,n])=>Jd(n)?[t,n.catch(r=>{Wt.debug("promise rejection for resource attribute: %s - %s",t,r)})]:[t,n])}const dbe="exception";class hbe{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:zu.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const n=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=Tc.now(),this._performanceOffset=n-(this._performanceStartTime+uS()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??n),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,n){if(n==null||this._isSpanEnded())return this;if(t.length===0)return Wt.warn(`Invalid attribute key: ${t}`),this;if(!mL(n))return Wt.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:r}=this._spanLimits;return r!==void 0&&Object.keys(this.attributes).length>=r&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(n),this)}setAttributes(t){for(const[n,r]of Object.entries(t))this.setAttribute(n,r);return this}addEvent(t,n,r){if(this._isSpanEnded())return this;const{eventCountLimit:i}=this._spanLimits;if(i===0)return Wt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&Wt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),xL(n)&&(xL(r)||(r=n),n=void 0);const o=z0(n);return this.events.push({name:t,attributes:o,time:this._getTime(r),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(Wt.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){Wt.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(t),this._duration=C1e(this.startTime,this.endTime),this._duration[0]<0&&(Wt.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&Wt.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=Tc.now())return R0(t+this._performanceOffset);if(typeof t=="number")return Na(t);if(t instanceof Date)return Na(t.getTime());if(lS(t))return t;if(this._startTimeProvided)return Na(Date.now());const n=Tc.now()-this._performanceStartTime;return EL(this.startTime,Na(n))}isRecording(){return this._ended===!1}recordException(t,n){const r={};typeof t=="string"?r[nS]=t:t&&(t.code?r[rS]=t.code.toString():t.name&&(r[rS]=t.name),t.message&&(r[nS]=t.message),t.stack&&(r[m1e]=t.stack)),r[rS]||r[nS]?this.addEvent(dbe,r,n):Wt.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);Wt.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,n){return t.length<=n?t:t.substring(0,n)}_truncateToSize(t){const n=this._attributeValueLengthLimit;return n<=0?(Wt.warn(`Attribute value limit must be positive, got ${n}`),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,n):r):t}}var Oc;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Oc||(Oc={}));class H0{shouldSample(){return{decision:Oc.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Pc{shouldSample(){return{decision:Oc.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class U0{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(eS(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Pc),this._remoteParentSampled=t.remoteParentSampled??new Pc,this._remoteParentNotSampled=t.remoteParentNotSampled??new H0,this._localParentSampled=t.localParentSampled??new Pc,this._localParentNotSampled=t.localParentNotSampled??new H0}shouldSample(t,n,r,i,o,a){const s=Wr.getSpanContext(t);return!s||!$0(s)?this._root.shouldSample(t,n,r,i,o,a):s.isRemote?s.traceFlags&Da.SAMPLED?this._remoteParentSampled.shouldSample(t,n,r,i,o,a):this._remoteParentNotSampled.shouldSample(t,n,r,i,o,a):s.traceFlags&Da.SAMPLED?this._localParentSampled.shouldSample(t,n,r,i,o,a):this._localParentNotSampled.shouldSample(t,n,r,i,o,a)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class BL{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,n){return{decision:oL(n)&&this._accumulate(n)<this._upperBound?Oc.RECORD_AND_SAMPLED:Oc.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let n=0;for(let r=0;r<t.length/8;r++){const i=r*8,o=parseInt(t.slice(i,i+8),16);n=(n^o)>>>0}return n}}const zL=1;function FL(){return{sampler:RL(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function RL(){const e="parentbased_always_on";switch(e){case"always_on":return new Pc;case"always_off":return new H0;case"parentbased_always_on":return new U0({root:new Pc});case"parentbased_always_off":return new U0({root:new H0});case"traceidratio":return new BL(WL());case"parentbased_traceidratio":return new U0({root:new BL(WL())});default:return Wt.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new U0({root:new Pc})}}function WL(){return Wt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${zL}.`),zL}const pbe=128,gbe=1/0;function vbe(e){const t={sampler:RL()},n=FL(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}function ybe(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??pbe,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??gbe,Object.assign({},e,{spanLimits:t})}const mbe=8,bbe=16;class wbe{generateTraceId=qL(bbe);generateSpanId=qL(mbe)}const G0=Array(32);function qL(e){return function(){for(let n=0;n<e*2;n++)G0[n]=Math.floor(Math.random()*16)+48,G0[n]>=58&&(G0[n]+=39);return String.fromCharCode.apply(null,G0.slice(0,e*2))}}class _be{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,n,r,i){const o=vbe(n);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=n.idGenerator||new wbe,this._resource=r,this._spanProcessor=i,this.instrumentationScope=t}startSpan(t,n={},r=fr.active()){n.root&&(r=Wr.deleteSpan(r));const i=Wr.getSpan(r);if(XE(r))return Wt.debug("Instrumentation suppressed, returning Noop Span"),Wr.wrapSpanContext(rL);const o=i?.spanContext(),a=this._idGenerator.generateSpanId();let s,u,l;!o||!Wr.isSpanContextValid(o)?u=this._idGenerator.generateTraceId():(u=o.traceId,l=o.traceState,s=o);const c=n.kind??B0.INTERNAL,d=(n.links??[]).map(x=>({context:x.context,attributes:z0(x.attributes)})),h=z0(n.attributes),g=this._sampler.shouldSample(r,u,t,c,h,d);l=g.traceState??l;const m=g.decision===j0.RECORD_AND_SAMPLED?Da.SAMPLED:Da.NONE,v={traceId:u,spanId:a,traceFlags:m,traceState:l};if(g.decision===j0.NOT_RECORD)return Wt.debug("Recording is off, propagating context in a non-recording span"),Wr.wrapSpanContext(v);const y=z0(Object.assign(h,g.attributes));return new hbe({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:v,name:t,kind:c,links:d,parentSpanContext:s,attributes:y,startTime:n.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,n,r,i){let o,a,s;if(arguments.length<2)return;arguments.length===2?s=n:arguments.length===3?(o=n,s=r):(o=n,a=r,s=i);const u=a??fr.active(),l=this.startSpan(t,o,u),c=Wr.setSpan(u,l);return fr.with(c,s,void 0,l)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class xbe{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const n of this._spanProcessors)t.push(n.forceFlush());return new Promise(n=>{Promise.all(t).then(()=>{n()}).catch(r=>{eS(r||new Error("MultiSpanProcessor: forceFlush failed")),n()})})}onStart(t,n){for(const r of this._spanProcessors)r.onStart(t,n)}onEnd(t){for(const n of this._spanProcessors)n.onEnd(t)}shutdown(){const t=[];for(const n of this._spanProcessors)t.push(n.shutdown());return new Promise((n,r)=>{Promise.all(t).then(()=>{n()},r)})}}var Wu;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(Wu||(Wu={}));class Ebe{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const n=rbe({},FL(),ybe(t));this._resource=n.resource??fbe(),this._config=Object.assign({},n,{resource:this._resource});const r=[];t.spanProcessors?.length&&r.push(...t.spanProcessors),this._activeSpanProcessor=new xbe(r)}getTracer(t,n,r){const i=`${t}@${n||""}:${r?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new _be({name:t,version:n,schemaUrl:r?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,n=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(i=>{let o;const a=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${t} ms`)),o=Wu.timeout},t);r.forceFlush().then(()=>{clearTimeout(a),o!==Wu.timeout&&(o=Wu.resolved,i(o))}).catch(s=>{clearTimeout(a),o=Wu.error,i(s)})}));return new Promise((r,i)=>{Promise.all(n).then(o=>{const a=o.filter(s=>s!==Wu.resolved);a.length>0?i(a):r()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class Sbe{export(t,n){return this._sendSpans(t,n)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(t){return{resource:{attributes:t.resource.attributes},instrumentationScope:t.instrumentationScope,traceId:t.spanContext().traceId,parentSpanContext:t.parentSpanContext,traceState:t.spanContext().traceState?.serialize(),name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:_L(t.startTime),duration:_L(t.duration),attributes:t.attributes,status:t.status,events:t.events,links:t.links}}_sendSpans(t,n){for(const r of t)console.dir(this._exportInfo(r),{depth:3});if(n)return n({code:yo.SUCCESS})}}class VL{_exporter;_shutdownOnce;_pendingExports;constructor(t){this._exporter=t,this._shutdownOnce=new sbe(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(t,n){}onEnd(t){if(this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Da.SAMPLED)===0)return;const n=this._doExport(t).catch(r=>eS(r));this._pendingExports.add(n),n.finally(()=>this._pendingExports.delete(n))}async _doExport(t){t.resource.asyncAttributesPending&&await t.resource.waitForAsyncAttributes?.();const n=await lbe._export(this._exporter,[t]);if(n.code!==yo.SUCCESS)throw n.error??new Error(`SimpleSpanProcessor: span export failed (status ${n})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}class Abe{_enabled=!1;_currentContext=Ia;_bindFunction(t=Ia,n){const r=this,i=function(...o){return r.with(t,()=>n.apply(this,o))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i}active(){return this._currentContext}bind(t,n){return t===void 0&&(t=this.active()),typeof n=="function"?this._bindFunction(t,n):n}disable(){return this._currentContext=Ia,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Ia,this)}with(t,n,r,...i){const o=this._currentContext;this._currentContext=t||Ia;try{return n.call(r,...i)}finally{this._currentContext=o}}}function Tbe(e){if(e!==null){if(e===void 0){const t=new Abe;t.enable(),fr.setGlobalContextManager(t);return}e.enable(),fr.setGlobalContextManager(e)}}function Obe(e){if(e!==null){if(e===void 0){Ko.setGlobalPropagator(new M1e({propagators:[new U1e,new l1e]}));return}Ko.setGlobalPropagator(e)}}class Pbe extends Ebe{constructor(t={}){super(t)}register(t={}){Wr.setGlobalTracerProvider(this),Obe(t.propagator),Tbe(t.contextManager)}}var dn;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.START_TIME="startTime",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})(dn||(dn={}));const Cbe="http.response_content_length",Mbe="http.response_content_length_uncompressed";let gS;function kbe(){return gS||(gS=document.createElement("a")),gS}function Ibe(e,t){return t in e}function $a(e,t,n,r=!0){if(Ibe(n,t)&&typeof n[t]=="number"&&!(r&&n[t]===0))return e.addEvent(t,n[t])}function HL(e,t,n=!1,r,i){if(r===void 0&&(r=t[dn.START_TIME]!==0),n||($a(e,dn.FETCH_START,t,r),$a(e,dn.DOMAIN_LOOKUP_START,t,r),$a(e,dn.DOMAIN_LOOKUP_END,t,r),$a(e,dn.CONNECT_START,t,r),$a(e,dn.SECURE_CONNECTION_START,t,r),$a(e,dn.CONNECT_END,t,r),$a(e,dn.REQUEST_START,t,r),$a(e,dn.RESPONSE_START,t,r),$a(e,dn.RESPONSE_END,t,r)),!i){const o=t[dn.ENCODED_BODY_SIZE];o!==void 0&&e.setAttribute(Cbe,o);const a=t[dn.DECODED_BODY_SIZE];a!==void 0&&o!==a&&e.setAttribute(Mbe,a)}}function Dbe(e){return e.slice().sort((t,n)=>{const r=t[dn.FETCH_START],i=n[dn.FETCH_START];return r>i?1:r<i?-1:0})}function UL(){return typeof location<"u"?location.origin:void 0}function Nbe(e,t,n,r,i=new WeakSet,o){const a=K0(e);e=a.toString();const s=$be(e,t,n,r,i,o);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};const u=Dbe(s);if(a.origin!==UL()&&u.length>1){let l=u[0],c=Lbe(u,l[dn.RESPONSE_END],n);const d=l[dn.RESPONSE_END];return c[dn.FETCH_START]<d&&(c=l,l=void 0),{corsPreFlightRequest:l,mainRequest:c}}else return{mainRequest:s[0]}}function Lbe(e,t,n){const r=La(n),i=La(Xd(t));let o=e[1],a;const s=e.length;for(let u=1;u<s;u++){const l=e[u],c=La(Xd(l[dn.FETCH_START])),d=La(Xd(l[dn.RESPONSE_END])),h=r-d;c>=i&&(!a||h<a)&&(a=h,o=l)}return o}function $be(e,t,n,r,i,o){const a=La(t),s=La(n);let u=r.filter(l=>{const c=La(Xd(l[dn.FETCH_START])),d=La(Xd(l[dn.RESPONSE_END]));return l.initiatorType.toLowerCase()===o&&l.name===e&&c>=a&&d<=s});return u.length>0&&(u=u.filter(l=>!i.has(l))),u}function K0(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);const t=kbe();return t.href=e,t}function jbe(e,t){let n=t||[];return(typeof n=="string"||n instanceof RegExp)&&(n=[n]),K0(e).origin===UL()?!0:n.some(i=>LL(e,i))}class Bbe{_delegate;constructor(t){this._delegate=t}export(t,n){this._delegate.export(t,n)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class GL extends Error{code;name="OTLPExporterError";data;constructor(t,n,r){super(t),this.data=r,this.code=n}}function zbe(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function Fbe(e){if(e!=null)return()=>e}function Rbe(e,t,n){return{timeoutMillis:zbe(e.timeoutMillis??t.timeoutMillis??n.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??n.concurrencyLimit,compression:e.compression??t.compression??n.compression}}function Wbe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class qbe{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const n=()=>{const r=this._sendingPromises.indexOf(t);this._sendingPromises.splice(r,1)};t.then(n,n)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function Vbe(e){return new qbe(e.concurrencyLimit)}function Hbe(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function Ube(){return{handleResponse(e){e==null||!Hbe(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||Wt.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class Gbe{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(t,n,r,i,o){this._transport=t,this._serializer=n,this._responseHandler=r,this._promiseQueue=i,this._timeout=o,this._diagLogger=Wt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,n){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){n({code:yo.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(t);if(r==null){n({code:yo.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(o){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",o,i.data)}n({code:yo.SUCCESS});return}else if(i.status==="failure"&&i.error){n({code:yo.FAILED,error:i.error});return}else i.status==="retryable"?n({code:yo.FAILED,error:new GL("Export failed with retryable status")}):n({code:yo.FAILED,error:new GL("Export failed with unknown error")})},i=>n({code:yo.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function Kbe(e,t){return new Gbe(e.transport,e.serializer,Ube(),e.promiseHandler,t.timeout)}function KL(e,t,n){return Kbe({transport:n,serializer:t,promiseHandler:Vbe(e)},{timeout:e.timeoutMillis})}function YL(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function XL(e){const t=new Uint8Array(e.length/2);let n=0;for(let r=0;r<e.length;r+=2){const i=YL(e.charCodeAt(r)),o=YL(e.charCodeAt(r+1));t[n++]=i<<4|o}return t}function ZL(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function Ybe(e){const t=Number(BigInt.asUintN(32,e)),n=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:n}}function Xbe(e){const t=ZL(e);return Ybe(t)}function Zbe(e){return ZL(e).toString()}const Jbe=typeof BigInt<"u"?Zbe:La;function JL(e){return e}function Qbe(e){if(e!==void 0)return XL(e)}const ewe={encodeHrTime:Xbe,encodeSpanContext:XL,encodeOptionalSpanContext:Qbe};function twe(e){return e===void 0?ewe:{encodeHrTime:Jbe,encodeSpanContext:JL,encodeOptionalSpanContext:JL}}function nwe(e){return{attributes:Y0(e.attributes),droppedAttributesCount:0}}function rwe(e){return{name:e.name,version:e.version}}function Y0(e){return Object.keys(e).map(t=>QL(t,e[t]))}function QL(e,t){return{key:e,value:e$(t)}}function e$(e){const t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(e$)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([n,r])=>QL(n,r))}}:{}}function iwe(e,t){const n=e.spanContext(),r=e.status,i=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:i,traceState:n.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:Y0(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(o=>awe(o,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(o=>owe(o,t)),droppedLinksCount:e.droppedLinksCount}}function owe(e,t){return{attributes:e.attributes?Y0(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function awe(e,t){return{attributes:e.attributes?Y0(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function swe(e,t){const n=twe(t);return{resourceSpans:lwe(e,n)}}function uwe(e){const t=new Map;for(const n of e){let r=t.get(n.resource);r||(r=new Map,t.set(n.resource,r));const i=`${n.instrumentationScope.name}@${n.instrumentationScope.version||""}:${n.instrumentationScope.schemaUrl||""}`;let o=r.get(i);o||(o=[],r.set(i,o)),o.push(n)}return t}function lwe(e,t){const n=uwe(e),r=[],i=n.entries();let o=i.next();for(;!o.done;){const[a,s]=o.value,u=[],l=s.values();let c=l.next();for(;!c.done;){const h=c.value;if(h.length>0){const g=h.map(m=>iwe(m,t));u.push({scope:rwe(h[0].instrumentationScope),spans:g,schemaUrl:h[0].instrumentationScope.schemaUrl})}c=l.next()}const d={resource:nwe(a),scopeSpans:u,schemaUrl:void 0};r.push(d),o=i.next()}return r}const cwe={serializeRequest:e=>{const t=swe(e,{});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}},fwe=5,dwe=1e3,hwe=5e3,pwe=1.5,t$=.2;function gwe(){return Math.random()*(2*t$)-t$}class vwe{_transport;constructor(t){this._transport=t}retry(t,n,r){return new Promise((i,o)=>{setTimeout(()=>{this._transport.send(t,n).then(i,o)},r)})}async send(t,n){const r=Date.now()+n;let i=await this._transport.send(t,n),o=fwe,a=dwe;for(;i.status==="retryable"&&o>0;){o--;const s=Math.max(Math.min(a,hwe)+gwe(),0);a=a*pwe;const u=i.retryInMillis??s,l=r-Date.now();if(u>l)return i;i=await this.retry(t,l,u)}return i}shutdown(){return this._transport.shutdown()}}function n$(e){return new vwe(e.transport)}function ywe(e){return[429,502,503,504].includes(e)}function mwe(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const n=new Date(e).getTime()-Date.now();return n>=0?n:0}class bwe{_parameters;constructor(t){this._parameters=t}send(t,n){return new Promise(r=>{const i=new XMLHttpRequest;i.timeout=n,i.open("POST",this._parameters.url);const o=this._parameters.headers();Object.entries(o).forEach(([a,s])=>{i.setRequestHeader(a,s)}),i.ontimeout=a=>{r({status:"failure",error:new Error("XHR request timed out")})},i.onreadystatechange=()=>{i.status>=200&&i.status<=299?(Wt.debug("XHR success"),r({status:"success"})):i.status&&ywe(i.status)?r({status:"retryable",retryInMillis:mwe(i.getResponseHeader("Retry-After"))}):i.status!==0&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},i.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},i.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},i.send(t)})}shutdown(){}}function wwe(e){return new bwe(e)}class _we{_params;constructor(t){this._params=t}send(t){return new Promise(n=>{navigator.sendBeacon(this._params.url,new Blob([t],{type:this._params.blobType}))?(Wt.debug("SendBeacon success"),n({status:"success"})):n({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function xwe(e){return new _we(e)}function Ewe(e,t){return KL(e,t,n$({transport:wwe(e)}))}function Swe(e,t){return KL(e,t,n$({transport:xwe({url:e.url,blobType:e.headers()["Content-Type"]})}))}function Awe(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([n,r])=>{typeof r<"u"?t[n]=String(r):Wt.warn(`Header "${n}" has invalid value (${r}) and will be ignored`)}),t}}function Twe(e,t,n){const r={...n()},i={};return()=>(t!=null&&Object.assign(i,t()),e!=null&&Object.assign(i,e()),Object.assign(i,r))}function Owe(e){if(e!=null)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function Pwe(e,t,n){return{...Rbe(e,t,n),headers:Twe(Awe(e.headers),t.headers,n.headers),url:Owe(e.url)??t.url??n.url,agentOptions:e.agentOptions??t.agentOptions??n.agentOptions}}function Cwe(e,t){return{...Wbe(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}function Mwe(e,t,n){return Pwe({url:e.url,timeoutMillis:e.timeoutMillis,headers:Fbe(e.headers),concurrencyLimit:e.concurrencyLimit},{},Cwe(n,t))}function kwe(e,t,n,r){const i=!!e.headers||typeof navigator.sendBeacon!="function",o=Mwe(e,n,r);return i?Ewe(o,t):Swe(o,t)}class Iwe extends Bbe{constructor(t={}){super(kwe(t,cwe,"v1/traces",{"Content-Type":"application/json"}))}}class r${emit(t){}}const Dwe=new r$;class Nwe{getLogger(t,n,r){return new r$}}const i$=new Nwe;class Lwe{constructor(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}emit(t){this._getLogger().emit(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):Dwe}}class o${getLogger(t,n,r){var i;return(i=this.getDelegateLogger(t,n,r))!==null&&i!==void 0?i:new Lwe(this,t,n,r)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:i$}setDelegate(t){this._delegate=t}getDelegateLogger(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(t,n,r)}}const $we=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},X0=Symbol.for("io.opentelemetry.js.api.logs"),Qd=$we;function jwe(e,t,n){return r=>r===e?t:n}const a$=1;class vS{constructor(){this._proxyLoggerProvider=new o$}static getInstance(){return this._instance||(this._instance=new vS),this._instance}setGlobalLoggerProvider(t){return Qd[X0]?this.getLoggerProvider():(Qd[X0]=jwe(a$,t,i$),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,n;return(n=(t=Qd[X0])===null||t===void 0?void 0:t.call(Qd,a$))!==null&&n!==void 0?n:this._proxyLoggerProvider}getLogger(t,n,r){return this.getLoggerProvider().getLogger(t,n,r)}disable(){delete Qd[X0],this._proxyLoggerProvider=new o$}}const s$=vS.getInstance();function Bwe(e,t,n,r){for(let i=0,o=e.length;i<o;i++){const a=e[i];t&&a.setTracerProvider(t),n&&a.setMeterProvider(n),r&&a.setLoggerProvider&&a.setLoggerProvider(r),a.getConfig().enabled||a.enable()}}function zwe(e){e.forEach(t=>t.disable())}function Fwe(e){const t=e.tracerProvider||Wr.getTracerProvider(),n=e.meterProvider||uL.getMeterProvider(),r=e.loggerProvider||s$.getLoggerProvider(),i=e.instrumentations?.flat()??[];return Bwe(i,t,n,r),()=>{zwe(i)}}let Ti=console.error.bind(console);function eh(e,t,n){const r=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}const u$=(e,t,n)=>{if(!e||!e[t]){Ti("no original function "+String(t)+" to wrap");return}if(!n){Ti("no wrapper function"),Ti(new Error().stack);return}const r=e[t];if(typeof r!="function"||typeof n!="function"){Ti("original object and wrapper must be functions");return}const i=n(r,t);return eh(i,"__original",r),eh(i,"__unwrap",()=>{e[t]===i&&eh(e,t,r)}),eh(i,"__wrapped",!0),eh(e,t,i),i},Rwe=(e,t,n)=>{if(e)Array.isArray(e)||(e=[e]);else{Ti("must provide one or more modules to patch"),Ti(new Error().stack);return}if(!(t&&Array.isArray(t))){Ti("must provide one or more functions to wrap on modules");return}e.forEach(r=>{t.forEach(i=>{u$(r,i,n)})})},l$=(e,t)=>{if(!e||!e[t]){Ti("no function to unwrap."),Ti(new Error().stack);return}const n=e[t];if(!n.__unwrap)Ti("no original to unwrap to -- has "+String(t)+" already been unwrapped?");else{n.__unwrap();return}},Wwe=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{Ti("must provide one or more modules to patch"),Ti(new Error().stack);return}if(!(t&&Array.isArray(t))){Ti("must provide one or more functions to unwrap on modules");return}e.forEach(n=>{t.forEach(r=>{l$(n,r)})})};class qwe{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(t,n,r){this.instrumentationName=t,this.instrumentationVersion=n,this.setConfig(r),this._diag=Wt.createComponentLogger({namespace:t}),this._tracer=Wr.getTracer(t,n),this._meter=uL.getMeter(t,n),this._logger=s$.getLogger(t,n),this._updateMetricInstruments()}_wrap=u$;_unwrap=l$;_massWrap=Rwe;_massUnwrap=Wwe;get meter(){return this._meter}setMeterProvider(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const t=this.init()??[];return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(t){this._config={enabled:!0,...t}}setTracerProvider(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(t,n,r,i){if(t)try{t(r,i)}catch(o){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:n},o)}}}class Vwe extends qwe{constructor(t,n,r){super(t,n,r),this._config.enabled&&this.enable()}}function c$(e,t,n){let r,i;try{i=e()}catch(o){r=o}finally{return t(r,i),i}}function Hwe(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var ui;(function(e){e[e.STABLE=1]="STABLE",e[e.OLD=2]="OLD",e[e.DUPLICATE=3]="DUPLICATE"})(ui||(ui={}));function Uwe(e,t){let n=ui.OLD;const r=t?.split(",").map(i=>i.trim()).filter(i=>i!=="");for(const i of r??[])if(i.toLowerCase()===e+"/dup"){n=ui.DUPLICATE;break}else i.toLowerCase()===e&&(n=ui.STABLE);return n}var Z0;(function(e){e.COMPONENT="component",e.HTTP_STATUS_TEXT="http.status_text"})(Z0||(Z0={}));var Dn={},f$;function Gwe(){return f$||(f$=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.ATTR_HTTP_USER_AGENT=Dn.ATTR_HTTP_URL=Dn.ATTR_HTTP_STATUS_CODE=Dn.ATTR_HTTP_SCHEME=Dn.ATTR_HTTP_RESPONSE_CONTENT_LENGTH=Dn.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=Dn.ATTR_HTTP_REQUEST_BODY_SIZE=Dn.ATTR_HTTP_METHOD=Dn.ATTR_HTTP_HOST=void 0,Dn.ATTR_HTTP_HOST="http.host",Dn.ATTR_HTTP_METHOD="http.method",Dn.ATTR_HTTP_REQUEST_BODY_SIZE="http.request.body.size",Dn.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED="http.request_content_length_uncompressed",Dn.ATTR_HTTP_RESPONSE_CONTENT_LENGTH="http.response_content_length",Dn.ATTR_HTTP_SCHEME="http.scheme",Dn.ATTR_HTTP_STATUS_CODE="http.status_code",Dn.ATTR_HTTP_URL="http.url",Dn.ATTR_HTTP_USER_AGENT="http.user_agent"),Dn}var As=Gwe();const d$=Wt.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function Kwe(...e){if(e[0]instanceof URL||typeof e[0]=="string"){const t=e[1];if(!t?.body)return Promise.resolve();if(t.body instanceof ReadableStream){const{body:n,length:r}=Ywe(t.body);return t.body=n,r}else return Promise.resolve(Zwe(t.body))}else{const t=e[0];return t?.body?t.clone().text().then(n=>yS(n)):Promise.resolve()}}function Ywe(e){if(!e.pipeThrough)return d$.warn("Platform has ReadableStream but not pipeThrough!"),{body:e,length:Promise.resolve(void 0)};let t=0,n;const r=new Promise(o=>{n=o}),i=new TransformStream({start(){},async transform(o,a){const s=await o;t+=s.byteLength,a.enqueue(o)},flush(){n(t)}});return{body:e.pipeThrough(i),length:r}}function Xwe(e){return typeof Document<"u"&&e instanceof Document}function Zwe(e){if(Xwe(e))return new XMLSerializer().serializeToString(document).length;if(typeof e=="string")return yS(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return Qwe(e);if(e instanceof URLSearchParams)return yS(e.toString());if(e.byteLength!==void 0)return e.byteLength;d$.warn("unknown body type")}const Jwe=new TextEncoder;function yS(e){return Jwe.encode(e).byteLength}function Qwe(e){let t=0;for(const[n,r]of e.entries())t+=n.length,r instanceof Blob?t+=r.size:t+=r.length;return t}function e_e(e){const t=n_e(),n=e.toUpperCase();return n in t?n:"_OTHER"}const t_e={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0};let mS;function n_e(){return mS===void 0&&(mS=t_e),mS}const r_e={"https:":"443","http:":"80"};function i_e(e){const t=Number(e.port||r_e[e.protocol]);if(t&&!isNaN(t))return t}const h$="0.203.0",o_e=300,p$=typeof process=="object"&&process.release?.name==="node";class a_e extends Vwe{component="fetch";version=h$;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(t={}){super("@opentelemetry/instrumentation-fetch",h$,t),this._semconvStability=Uwe("http",t?.semconvStabilityOptIn)}init(){}_addChildSpan(t,n){const r=this.tracer.startSpan("CORS Preflight",{startTime:n[dn.FETCH_START]},Wr.setSpan(fr.active(),t)),i=!(this._semconvStability&ui.OLD);HL(r,n,this.getConfig().ignoreNetworkEvents,void 0,i),r.end(n[dn.RESPONSE_END])}_addFinalSpanAttributes(t,n){const r=K0(n.url);if(this._semconvStability&ui.OLD&&(t.setAttribute(As.ATTR_HTTP_STATUS_CODE,n.status),n.statusText!=null&&t.setAttribute(Z0.HTTP_STATUS_TEXT,n.statusText),t.setAttribute(As.ATTR_HTTP_HOST,r.host),t.setAttribute(As.ATTR_HTTP_SCHEME,r.protocol.replace(":","")),typeof navigator<"u"&&t.setAttribute(As.ATTR_HTTP_USER_AGENT,navigator.userAgent)),this._semconvStability&ui.STABLE){t.setAttribute(_1e,n.status),t.setAttribute(x1e,r.hostname);const i=i_e(r);i&&t.setAttribute(E1e,i)}}_addHeaders(t,n){if(!jbe(n,this.getConfig().propagateTraceHeaderCorsUrls)){const r={};Ko.inject(fr.active(),r),Object.keys(r).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(t instanceof Request)Ko.inject(fr.active(),t.headers,{set:(r,i,o)=>r.set(i,typeof o=="string"?o:String(o))});else if(t.headers instanceof Headers)Ko.inject(fr.active(),t.headers,{set:(r,i,o)=>r.set(i,typeof o=="string"?o:String(o))});else if(t.headers instanceof Map)Ko.inject(fr.active(),t.headers,{set:(r,i,o)=>r.set(i,typeof o=="string"?o:String(o))});else{const r={};Ko.inject(fr.active(),r),t.headers=Object.assign({},r,t.headers||{})}}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(t,n={}){if(obe(t,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}let r="";const i={};if(this._semconvStability&ui.OLD){const o=(n.method||"GET").toUpperCase();r=`HTTP ${o}`,i[Z0.COMPONENT]=this.moduleName,i[As.ATTR_HTTP_METHOD]=o,i[As.ATTR_HTTP_URL]=t}if(this._semconvStability&ui.STABLE){const o=n.method,a=e_e(n.method||"GET");r||(r=a),i[b1e]=a,a!==o&&(i[w1e]=o),i[A1e]=t}return this.tracer.startSpan(r,{kind:B0.CLIENT,attributes:i})}_findResourceAndAddNetworkEvents(t,n,r){let i=n.entries;if(!i.length){if(!performance.getEntriesByType)return;i=performance.getEntriesByType("resource")}const o=Nbe(n.spanUrl,n.startTime,r,i,this._usedResources,"fetch");if(o.mainRequest){const a=o.mainRequest;this._markResourceAsUsed(a);const s=o.corsPreFlightRequest;s&&(this._addChildSpan(t,s),this._markResourceAsUsed(s));const u=!(this._semconvStability&ui.OLD);HL(t,a,this.getConfig().ignoreNetworkEvents,void 0,u)}}_markResourceAsUsed(t){this._usedResources.add(t)}_endSpan(t,n,r){const i=Na(Date.now()),o=R0();this._addFinalSpanAttributes(t,r),this._semconvStability&ui.STABLE&&r.status>=400&&(t.setStatus({code:zu.ERROR}),t.setAttribute(y1e,String(r.status))),setTimeout(()=>{n.observer?.disconnect(),this._findResourceAndAddNetworkEvents(t,n,o),this._tasksCount--,this._clearResources(),t.end(i)},o_e)}_patchConstructor(){return t=>{const n=this;return function(...i){const o=this,a=K0(i[0]instanceof Request?i[0].url:String(i[0])).href,s=i[0]instanceof Request?i[0]:i[1]||{},u=n._createSpan(a,s);if(!u)return t.apply(this,i);const l=n._prepareSpanData(a);n.getConfig().measureRequestSize&&Kwe(...i).then(m=>{m&&(n._semconvStability&ui.OLD&&u.setAttribute(As.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,m),n._semconvStability&ui.STABLE&&u.setAttribute(As.ATTR_HTTP_REQUEST_BODY_SIZE,m))}).catch(m=>{n._diag.warn("getFetchBodyLength",m)});function c(m,v){n._applyAttributesAfterFetch(m,s,v),n._endSpan(m,l,{status:v.status||0,statusText:v.message,url:a})}function d(m,v){n._applyAttributesAfterFetch(m,s,v),v.status>=200&&v.status<400?n._endSpan(m,l,v):n._endSpan(m,l,{status:v.status,statusText:v.statusText,url:a})}function h(m,v,y){try{const x=y.clone().body;if(x){const E=x.getReader(),S=()=>{E.read().then(({done:A})=>{A?d(m,y):S()},A=>{c(m,A)})};S()}else d(m,y)}finally{v(y)}}function g(m,v,y){try{c(m,y)}finally{v(y)}}return new Promise((m,v)=>fr.with(Wr.setSpan(fr.active(),u),()=>(n._addHeaders(s,a),n._callRequestHook(u,s),n._tasksCount++,t.apply(o,s instanceof Request?[s]:[a,s]).then(h.bind(o,u,m),g.bind(o,u,v)))))}}}_applyAttributesAfterFetch(t,n,r){const i=this.getConfig().applyCustomAttributesOnSpan;i&&c$(()=>i(t,n,r),o=>{o&&this._diag.error("applyCustomAttributesOnSpan",o)})}_callRequestHook(t,n){const r=this.getConfig().requestHook;r&&c$(()=>r(t,n),i=>{i&&this._diag.error("requestHook",i)})}_prepareSpanData(t){const n=R0(),r=[];if(typeof PerformanceObserver!="function")return{entries:r,startTime:n,spanUrl:t};const i=new PerformanceObserver(o=>{o.getEntries().forEach(s=>{s.initiatorType==="fetch"&&s.name===t&&r.push(s)})});return i.observe({entryTypes:["resource"]}),{entries:r,observer:i,startTime:n,spanUrl:t}}enable(){if(p$){this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()");return}Hwe(fetch)&&(this._unwrap(tS,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(tS,"fetch",this._patchConstructor())}disable(){p$||(this._unwrap(tS,"fetch"),this._usedResources=new WeakSet)}}function s_e(e){return typeof e=="object"&&e!==null&&"addEventListener"in e&&typeof e.addEventListener=="function"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"}const g$="OT_ZONE_CONTEXT";class u_e{_enabled=!1;_zoneCounter=0;_activeContextFromZone(t){return t&&t.get(g$)||Ia}_bindFunction(t,n){const r=this,i=function(...o){return r.with(t,()=>n.apply(this,o))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i}_bindListener(t,n){const r=n;return r.__ot_listeners!==void 0||(r.__ot_listeners={},typeof r.addEventListener=="function"&&(r.addEventListener=this._patchAddEventListener(r,r.addEventListener,t)),typeof r.removeEventListener=="function"&&(r.removeEventListener=this._patchRemoveEventListener(r,r.removeEventListener))),n}_createZoneName(){this._zoneCounter++;const t=Math.random();return`${this._zoneCounter}-${t}`}_createZone(t,n){return Zone.current.fork({name:t,properties:{[g$]:n}})}_getActiveZone(){return Zone.current}_patchAddEventListener(t,n,r){const i=this;return function(o,a,s){t.__ot_listeners===void 0&&(t.__ot_listeners={});let u=t.__ot_listeners[o];u===void 0&&(u=new WeakMap,t.__ot_listeners[o]=u);const l=i.bind(r,a);return u.set(a,l),n.call(this,o,l,s)}}_patchRemoveEventListener(t,n){return function(r,i){if(t.__ot_listeners===void 0||t.__ot_listeners[r]===void 0)return n.call(this,r,i);const o=t.__ot_listeners[r],a=o.get(i);return o.delete(i),n.call(this,r,a||i)}}active(){if(!this._enabled)return Ia;const t=this._getActiveZone(),n=this._activeContextFromZone(t);return n||Ia}bind(t,n){return t===void 0&&(t=this.active()),typeof n=="function"?this._bindFunction(t,n):(s_e(n)&&this._bindListener(t,n),n)}disable(){return this._enabled=!1,this}enable(){return this._enabled=!0,this}with(t,n,r,...i){const o=this._createZoneName();return this._createZone(o,t).run(n,r,i)}}var v$={},y$;function l_e(){if(y$)return v$;y$=1;/**
|
|
203
203
|
* @license Angular v<unknown>
|
|
204
204
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
205
205
|
* License: MIT
|