PageSourceSearch

https://monday.com/webflow-scripts/vendor-shared.e0b28d2c.js

js monday.com collected 2026-09-24 08:24:33 UTC 46,978 bytes, 1 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[166],{505:e=>{const t="production",s="staging";e.exports=class{constructor(e,r,n,a,i){if(this.env=e,this.source=r,this.logger=n,this.fetchClient=a,this.uuidGen=i,this.env===t?this.bigBrainDomain="https://track.bigbrain.me/prod":this.env===s?this.bigBrainDomain="https://track.bigbrainstaging.me/stage":(this.bigBrainDomain="http://localhost:3002",this.source="test"),!this.source)throw new Error("No appName given")}async track(e,r={}){if(this.env!==t&&this.env!==s)return void this.logger.info(r,`BigBrain event: ${e}`);const n={name:e,source:this.source,uuid:this.uuidGen.v4(),...r};try{await this.fetchClient(`${this.bigBrainDomain}/event`,{method:"POST",body:JSON.stringify(n),headers:{"User-Agent":"monday","Content-Type":"application/json"}})}catch(e){this.logger.error({error:{message:e.message,stack:e.stack},event:n},"While trying to send BigBrain track event, caught error")}}}},2610:(e,t,s)=>{"use strict";s.d(t,{Z:()=>ge});var r={};s.r(r),s.d(r,{NIL:()=>L,parse:()=>M,stringify:()=>v,v1:()=>A,v3:()=>U,v4:()=>C,v5:()=>B,validate:()=>y,version:()=>R});const n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let a;const i=new Uint8Array(16);function o(){if(!a&&(a="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!a))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(i)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));const h=function(e,t,s){if(n.randomUUID&&!t&&!e)return n.randomUUID();const r=(e=e||{}).random||(e.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){s=s||0;for(let e=0;e<16;++e)t[s+e]=r[e];return t}return function(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}(r)};var f,d=s(4098),l=s.n(d),u=new Uint8Array(16);function p(){if(!f&&!(f="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return f(u)}const m=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,y=function(e){return"string"==typeof e&&m.test(e)};for(var g=[],b=0;b<256;++b)g.push((b+256).toString(16).substr(1));const v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=(g[e[t+0]]+g[e[t+1]]+g[e[t+2]]+g[e[t+3]]+"-"+g[e[t+4]]+g[e[t+5]]+"-"+g[e[t+6]]+g[e[t+7]]+"-"+g[e[t+8]]+g[e[t+9]]+"-"+g[e[t+10]]+g[e[t+11]]+g[e[t+12]]+g[e[t+13]]+g[e[t+14]]+g[e[t+15]]).toLowerCase();if(!y(s))throw TypeError("Stringified UUID is invalid");return s};var w,S,E=0,_=0;const A=function(e,t,s){var r=t&&s||0,n=t||new Array(16),a=(e=e||{}).node||w,i=void 0!==e.clockseq?e.clockseq:S;if(null==a||null==i){var o=e.random||(e.rng||p)();null==a&&(a=w=[1|o[0],o[1],o[2],o[3],o[4],o[5]]),null==i&&(i=S=16383&(o[6]<<8|o[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:_+1,f=c-E+(h-_)/1e4;if(f<0&&void 0===e.clockseq&&(i=i+1&16383),(f<0||c>E)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");E=c,_=h,S=i;var d=(1e4*(268435455&(c+=122192928e5))+h)%4294967296;n[r++]=d>>>24&255,n[r++]=d>>>16&255,n[r++]=d>>>8&255,n[r++]=255&d;var l=c/4294967296*1e4&268435455;n[r++]=l>>>8&255,n[r++]=255&l,n[r++]=l>>>24&15|16,n[r++]=l>>>16&255,n[r++]=i>>>8|128,n[r++]=255&i;for(var u=0;u<6;++u)n[r+u]=a[u];return t||v(n)},M=function(e){if(!y(e))throw TypeError("Invalid UUID");var t,s=new Uint8Array(16);return s[0]=(t=parseInt(e.slice(0,8),16))>>>24,s[1]=t>>>16&255,s[2]=t>>>8&255,s[3]=255&t,s[4]=(t=parseInt(e.slice(9,13),16))>>>8,s[5]=255&t,s[6]=(t=parseInt(e.slice(14,18),16))>>>8,s[7]=255&t,s[8]=(t=parseInt(e.slice(19,23),16))>>>
vendor: 5,473 bytes, line 1
18,s[9]=255&t,s[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,s[11]=t/4294967296&255,s[12]=t>>>24&255,s[13]=t>>>16&255,s[14]=t>>>8&255,s[15]=255&t,s};function D(e,t,s){function r(e,r,n,a){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],s=0;s<e.length;++s)t.push(e.charCodeAt(s));return t}(e)),"string"==typeof r&&(r=M(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+e.length);if(i.set(r),i.set(e,r.length),(i=s(i))[6]=15&i[6]|t,i[8]=63&i[8]|128,n){a=a||0;for(var o=0;o<16;++o)n[a+o]=i[o];return n}return v(i)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function F(e){return 14+(e+64>>>9<<4)+1}function k(e,t){var s=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(s>>16)<<16|65535&s}function T(e,t,s,r,n,a){return k((i=k(k(t,e),k(r,a)))<<(o=n)|i>>>32-o,s);var i,o}function I(e,t,s,r,n,a,i){return T(t&s|~t&r,e,t,n,a,i)}function x(e,t,s,r,n,a,i){return T(t&r|s&~r,e,t,n,a,i)}function O(e,t,s,r,n,a,i){return T(t^s^r,e,t,n,a,i)}function P(e,t,s,r,n,a,i){return T(s^(t|~r),e,t,n,a,i)}const U=D("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var s=0;s<t.length;++s)e[s]=t.charCodeAt(s)}return function(e){for(var t=[],s=32*e.length,r="0123456789abcdef",n=0;n<s;n+=8){var a=e[n>>5]>>>n%32&255,i=parseInt(r.charAt(a>>>4&15)+r.charAt(15&a),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[F(t)-1]=t;for(var s=1732584193,r=-271733879,n=-1732584194,a=271733878,i=0;i<e.length;i+=16){var o=s,c=r,h=n,f=a;s=I(s,r,n,a,e[i],7,-680876936),a=I(a,s,r,n,e[i+1],12,-389564586),n=I(n,a,s,r,e[i+2],17,606105819),r=I(r,n,a,s,e[i+3],22,-1044525330),s=I(s,r,n,a,e[i+4],7,-176418897),a=I(a,s,r,n,e[i+5],12,1200080426),n=I(n,a,s,r,e[i+6],17,-1473231341),r=I(r,n,a,s,e[i+7],22,-45705983),s=I(s,r,n,a,e[i+8],7,1770035416),a=I(a,s,r,n,e[i+9],12,-1958414417),n=I(n,a,s,r,e[i+10],17,-42063),r=I(r,n,a,s,e[i+11],22,-1990404162),s=I(s,r,n,a,e[i+12],7,1804603682),a=I(a,s,r,n,e[i+13],12,-40341101),n=I(n,a,s,r,e[i+14],17,-1502002290),s=x(s,r=I(r,n,a,s,e[i+15],22,1236535329),n,a,e[i+1],5,-165796510),a=x(a,s,r,n,e[i+6],9,-1069501632),n=x(n,a,s,r,e[i+11],14,643717713),r=x(r,n,a,s,e[i],20,-373897302),s=x(s,r,n,a,e[i+5],5,-701558691),a=x(a,s,r,n,e[i+10],9,38016083),n=x(n,a,s,r,e[i+15],14,-660478335),r=x(r,n,a,s,e[i+4],20,-405537848),s=x(s,r,n,a,e[i+9],5,568446438),a=x(a,s,r,n,e[i+14],9,-1019803690),n=x(n,a,s,r,e[i+3],14,-187363961),r=x(r,n,a,s,e[i+8],20,1163531501),s=x(s,r,n,a,e[i+13],5,-1444681467),a=x(a,s,r,n,e[i+2],9,-51403784),n=x(n,a,s,r,e[i+7],14,1735328473),s=O(s,r=x(r,n,a,s,e[i+12],20,-1926607734),n,a,e[i+5],4,-378558),a=O(a,s,r,n,e[i+8],11,-2022574463),n=O(n,a,s,r,e[i+11],16,1839030562),r=O(r,n,a,s,e[i+14],23,-35309556),s=O(s,r,n,a,e[i+1],4,-1530992060),a=O(a,s,r,n,e[i+4],11,1272893353),n=O(n,a,s,r,e[i+7],16,-155497632),r=O(r,n,a,s,e[i+10],23,-1094730640),s=O(s,r,n,a,e[i+13],4,681279174),a=O(a,s,r,n,e[i],11,-358537222),n=O(n,a,s,r,e[i+3],16,-722521979),r=O(r,n,a,s,e[i+6],23,76029189),s=O(s,r,n,a,e[i+9],4,-640364487),a=O(a,s,r,n,e[i+12],11,-421815835),n=O(n,a,s,r,e[i+15],16,530742520),s=P(s,r=O(r,n,a,s,e[i+2],23,-995338651),n,a,e[i],6,-198630844),a=P(a,s,r,n,e[i+7],10,1126891415),n=P(n,a,s,r,e[i+14],15,-1416354905),r=P(r,n,a,s,e[i+5],21,-57434055),s=P(s,r,n,a,e[i+12],6,1700485571),a=P(a,s,r,n,e[i+3],10,-1894986606),n=P(n,a,s,r,e[i+10],15,-1051523),r=P(r,n,a,s,e[i+1],21,-2054922799),s=P(s,r,n,a,e[i+8],6,1873313359),a=P(a,s,r,n,e[i+15],10,-30611744),n=P(n,a,s,r,e[i+6],15,-1560198380),r=P(r,n,a,s,e[i+13],21,1309151649),s=P(s,r,n,a,e[i+4],6,-145523070),a=P(a,s,r,n,e[i+11],10,-1120210379),n=P(n,a,s,r,e[i+2],15,718787259),r=P(r,n,a,s,e[i+9],21,-343485551),s=k(s,o),r=k(r,c),n=k(n,h),a=k(a,f)}return[s,r,n,a]}(function(e){if(0===e.length)return[];for(var t=8*e.length,s=new Uint32Array(F(t)),r=0;r<t;r+=8)s[r>>5]|=(255&e[r/8])<<r%32;return s}(e),8*e.length))})),C=function(e,t,s){var r=(e=e||{}).random||(e.rng||p)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){s=s||0;for(var n=0;n<16;++n)t[s+n]=r[n];return t}return v(r)};function N(e,t,s,r){switch(e){case 0:return t&s^~t&r;case 1:case 3:return t^s^r;case 2:return t&s^t&r^s&r}}function j(e,t){return e<<t|e>>>32-t}const B=D("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],s=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var n=0;n<r.length;++n)e.push(r.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var a=e.length/4+2,i=Math.ceil(a/16),o=new Array(i),c=0;c<i;++c){for(var h=new Uint32Array(16),f=0;f<16;++f)h[f]=e[64*c+4*f]<<24|e[64*c+4*f+1]<<16|e[64*c+4*f+2]<<8|e[64*c+4*f+3];o[c]=h}o[i-1][14]=8*(e.length-1)/Math.pow(2,32),o[i-1][14]=Math.floor(o[i-1][14]),o[i-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<i;++d){for(var l=new Uint32Array(80),u=0;u<16;++u)l[u]=o[d][u];for(var p=16;p<80;++p)l[p]=j(l[p-3]^l[p-8]^l[p-14]^l[p-16],1);for(var m=s[0],y=s[1],g=s[2],b=s[3],v=s[4],w=0;w<80;++w){var S=Math.floor(w/20),E=j(m,5)+N(S,y,g,b)+v+t[S]+l[w]>>>0;v=b,b=g,g=j(y,30)>>>0,y=m,m=E}s[0]=s[0]+m>>>0,s[1]=s[1]+y>>>0,s[2]=s[2]+g>>>0,s[3]=s[3]+b>>>0,s[4]=s[4]+v>>>0}return[s[0]>>24&255,s[0]>>16&255,s[0]>>8&255,255&s[0],s[1]>>24&255,s[1]>>16&255,s[1]>>8&255,255&s[1],s[2]>>24&255,s[2]>>16&255,s[2]>>8&255,255&s[2],s[3]>
1>24&255,s[3]>>16&255,s[3]>>8&255,255&s[3],s[4]>>24&255,s[4]>>16&255,s[4]>>8&255,255&s[4]]})),L="00000000-0000-0000-0000-000000000000",R=function(e){if(!y(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)};var $,H,J,q=s(505),G=s.n(q);!function(e){e[e.js=0]="js",e[e.css=1]="css"}($||($={})),function(e){e.development="development",e.staging="staging",e.production="production"}(H||(H={})),function(e){e.SkeletonCreated="skeleton_created",e.GetAllMfsStart="get_all_mfs_start",e.GetAllMfsSuccess="get_all_mfs_success",e.GetAllMfsError="get_all_mfs_error",e.InitMF="init_mf",e.MFLoadStart="mf_load_start",e.PrefetchMF="prefetch_mf",e.FetchMfAssetsStart="fetch_mf_assets_start",e.FetchMfAssetsSuccess="fetch_mf_assets_success",e.FetchMfAssetsError="fetch_mf_assets_error",e.FetchMfAssetsFallbackSuccess="fetch_mf_assets_fallback_success",e.FetchMfAssetsFallbackError="fetch_mf_assets_fallback_error",e.MFNotInList="mf_not_in_list",e.UseLocalMetaData="use_local_meta_data",e.StartFetchingMetaData="start_fetching_meta_data",e.SuccessFetchingMetaData="success_fetching_meta_data",e.ErrorFetchingMetaData="error_fetching_meta_data",e.StartFetchingManifest="start_fetching_manifest",e.SuccessFetchingManifest="sucess_fetching_manifest",e.ErrorFetchingManifest="error_fetching_manifest",e.SharedDependenciesLoadStart="shared_dependencies_load_start",e.SharedDependenciesLoadEnd="shared_dependencies_load_end",e.StartLoadingJsAssets="start_loading_js_assets",e.SuccessLoadingJsAssets="sucsess_loading_js_assets",e.SuccessLoadingJSAsset="sucsess_loading_js_asset",e.ErrorLoadingJSAsset="error_loading_js_assets",e.SuccessLoadingCSSAsset="sucsess_loading_css_asset",e.ErrorLoadingCSSAsset="error_loading_asset_css",e.StartPreFetchMF="start_prefetch_mf",e.ErrorPreFetchMF="error_prefetch_mf",e.MfUserInitStart="mf_user_init_start",e.MfUserInitSuccess="mf_user_init_success",e.MfUserInitError="mf_user_init_error",e.MfUserRenderStart="mf_user_render_start",e.MfUserRenderSuccess="mf_user_render_success",e.MfUserRenderError="mf_user_render_error",e.MfUserUpdateInitialDataError="mf_user_update_initial_data_error",e.MfUseruUnmountError="mf_user_unmount_error",e.MFLoadDone="mf_load_done"}(J||(J={}));const V="is_in_canary_experimental_group",W="is_mf_in_canary",z="version",Q="init",K={getAllMfs:"getAllMfs",fetchingMetaData:"fetchingMetaData",fetchingManifest:"fetchingManifest",loadExternals:"loadExternals",loadJsAssets:"loadJsAssets",userInit:"userInit"},X="render";class Z{constructor(e,t){this.transactionsByMf={},this.createTransaction=e,this.preloadedMFs=t}getTransactionByMf(e,t){const s=this.transactionsByMf[e];return s?s[t]:null}startTransaction(e,t,s={}){var r;const n=this.createTransaction(t,e,s);(r=this.transactionsByMf)[e]||(r[e]={}),this.transactionsByMf[e][t]=n}finishTransaction(e,t){this.getTransactionByMf(e,t)?.finish()}startSpan(e,t,s){const r=this.getTransactionByMf(e,t);r&&(this.transactionsByMf[e][s]=r.startChild({op:s,description:s}))}finishSpan(e,t){e&&t&&this.getTransactionByMf(e,t)?.finish()}track(e,t={}){const{mfName:s,mfCanary:r={},version:n}=t,{isInCanaryExperimentalGroup:a,isMfInCanary:i}=r;try{switch(e){case J.MFLoadStart:this.startTransaction(s,Q,{[V]:a,[W]:i,[z]:n});break;case J.MFLoadDone:this.finishTransaction(s,Q);break;case J.StartFetchingMetaData:this.startSpan(s,Q,K.fetchingMetaData);break;case J.SuccessFetchingMetaData:this.finishSpan(s,K.fetchingMetaData);break;case J.StartFetchingManifest:this.startSpan(s,Q,K.fetchingManifest);break;case J.SuccessFetchingManifest:this.finishSpan(s,K.fetchingManifest);break;case J.SharedDependenciesLoadStart:this.startSpan(s,Q,K.loadExternals);break;case J.SharedDependenciesLoadEnd:this.finishSpan(s,K.loadExternals);break;case J.StartLoadingJsAssets:this.startSpan(s,Q,K.loadJsAssets);break;case J.SuccessLoadingJsAssets:this.finishSpan(s,K.loadJsAssets);break;case J.MfUserInitStart:this.preloadedMFs.has(s)&&this.startTransaction(s,Q,{[V]:a,[W]:i,[z]:n}),this.startSpan(s,Q,K.userInit);break;case J.MfUserInitSuccess:this.finishSpan(s,K.userInit),this.preloadedMFs.has(s)&&this.finishTransaction(s,Q);break;case J.MfUserRenderStart:{this.startTransaction(s,X);const e=new MutationObserver((t=>{for(const r of t)if("childList"===r.type){this.finishTransaction(s,X),e.disconnect();break}}
1));e.observe(t.element,{childList:!0});break}}}catch(s){console.error(`Failed creating sentry transactions. event: ${e}. data:${JSON.stringify(t)}`)}}}class Y{constructor({host:e,api:t,preloadedMFs:s}){var n,a;this.uuid=h(),this.host=e,this.api=t,this.bigbrain=(n=e.environment,a=e.name,new(G())(n,a,console,l(),r)),this.host.environment===H.production&&this.api?.loggerService?.startTransaction?this.transactionsManager=new Z(this.api.loggerService.startTransaction,s):this.transactionsManager=null}track(e,t={}){this.transactionsManager&&this.transactionsManager.track(e,t),this.bigbrainSample(e,t)}cleanBigbrainData(e){const{error:t}=e;return{...e,error:t?t.message:void 0,element:void 0}}bigbrainSample(e,t){if(Math.random()<.005){const s={kind:e,data:{uuid:this.uuid,time:Date.now(),...this.cleanBigbrainData(t)}};this.bigbrain.track("trident-metrics",s)}}}var ee=s(7563);async function te(e,t){return(await fetch(e,t)).json()}function se(){}function re(e){return e.endsWith("/")?e.slice(0,-1):e}function ne(){return function(){try{const e=window.localStorage?.getItem("mf-localstorage-dev")||"[]";return JSON.parse(e)}catch(e){return console.error("Error getting local MFs",e),[]}}().reduce(((e,t)=>(e[t.name]=e[t.name]||{},e[t.name].endpoint=t.endpoint,e[t.name].version=t.version,e[t.name].active=t.active,e)),{})}function ae(e){return ne()[e]?.active||!1}function ie({mfName:e,src:t,onEvent:s=se,assetType:r=$.js,appendScript:n}){const a=document.createElement("link");a.href=t,a.rel="preload",a.as=r===$.js?"script":"style";const i=new Promise((e=>{a.onload=e}));return a.onerror=()=>{s(r===$.js?J.ErrorLoadingJSAsset:J.ErrorLoadingCSSAsset,{mfName:e,src:t,mfResource:t})},n?n(a):document.body.appendChild(a),i}var oe;!function(e){e[e.preFetchOnly=0]="preFetchOnly",e[e.skipPreFetch=1]="skipPreFetch",e[e.withPreFetch=2]="withPreFetch"}(oe||(oe={}));class ce{constructor({emitSkeletonEvent:e,sharedDependencies:t}){this.emitSkeletonEvent=e,this.sharedDependencies=t}async loadMfAssets({mfName:e,manifest:t,assetsDir:s,mode:r=oe.withPreFetch,appendScript:n}){const a=this.getSharedDependenciesBuckets({manifest:t}),i=t.entrypoints.map((e=>`${s}/${e}`));return this.loadAssets({mfName:e,mode:r,sharedDependenciesBuckets:a,mfAssets:i,appendScript:n})}async batchLoadMfsAssets({mfNames:e,mfAssets:t,sharedDependenciesBuckets:s,mode:r=oe.withPreFetch}){return this.loadAssets({mfName:e.join(","),mode:r,sharedDependenciesBuckets:s,mfAssets:t})}async loadAssets({mfName:e,mfAssets:t,sharedDependenciesBuckets:s,mode:r=oe.withPreFetch,appendScript:n}){if(r!==oe.skipPreFetch){const r=s.flat().filter((e=>!this.sharedDependencies.getDependencyLoadPromise(e.globalName)));this.preload({mfAssets:t,sharedDependenciesBuckets:[r],mfName:e,appendScript:n})}return r===oe.preFetchOnly?{assetsLoadTime:0}:(await this.loadSharedDependencies({mfName:e,sharedDependenciesBuckets:s}),{assetsLoadTime:await this.loadManifestAssets({mfAssets:t,mfName:e,appendScript:n})})}getSharedDependenciesBuckets({manifest:e}){const{shared:t,sameAsHost:s}=e||{};if(!t?.length)return[];if(!0===s)return[];const r=[];return t.forEach((({globalName:e,dependencies:t})=>{if(!e)throw new Error('Attempted to load a shared dependency with missing globalName".        This most likely means that the MF has an old Trident version which is no longer supported');const s=this.sharedDependencies.getUrl(e),n=Object.keys(t).length;r[n]||(r[n]=[]),r[n].push({globalName:e,url:s})})),r}async loadSharedDependencies({sharedDependenciesBuckets:e,mfName:t,appendScript:s}){const r=Date.now();this.emitSkeletonEvent(J.SharedDependenciesLoadStart,{mfName:t});for(let r=0;r<e.length;r++){const n=e[r]||[],a=Promise.all(n.map((e=>this.sharedDependencies.ensureDependencyLoadPromise(e.globalName,(()=>this.loadAsset({mfName:t,src:e.url,appendScript:s}))))));await a}this.emitSkeletonEvent(J.SharedDependenciesLoadEnd,{mfName:t,loadTime:Date.now()-r})}preload({mfAssets:e,sharedDependenciesBuckets:t,mfName:s,appendScript:r}){const n=[...t.flat().map((({url:e})=>e)),...e].filter((e=>e.endsWith(".js"))),a=e.filter((e=>e.endsWith(".css")));Promise.all([...n.map((e=>ie({mfName:s,src:e,appendScript:r}))),...a.map((e=>ie({mfName:s,src:e,assetType:$.css})))]).catch((e=>{throw e}))}async loadAsset({src:e,mfName:t,appendScript:s}){e.endsWith(".js")?await function({mfName:e,src:t,onEvent:s=se,appendScript:r}){const n=document.createElement("script");n.src=t;const a=new Promise((e=>{n.onload=e}));return n.onerror=()=>{s(J.ErrorLoadingJSAsset,{mfName:e,src:t,mfResource:t})},r?r(n):document.body.appendChild(n),a}({mfName:t,src:e,onEvent:this.emitSkeletonEvent,appendScript:s}):e.endsWith(".css")&&await function({mfName:e,src:t,onEvent:s=se}){const r=document.createElement("link");r.href=t,r.rel="stylesheet";const n=new Promise((e=>{r.onload=e}));return r.onerror=()=>{s(J.ErrorLoadingCSSAsset,{mfName:e,src:t,mfResource:t})},document.head.appendChild(r),n}({mfName:t,src:e,onEvent:this.emitSkeletonEvent})}async loadManifestAssets({mfAssets:e,mfName:t,appendScript:s}){this.emitSkeletonEvent(J.StartLoadingJsAssets,{mfName:t});const r=Date.now(),n=[],{cssFiles:a,jsFiles:i}=e.reduce(((e,t)=>(t.endsWith(".js")?e.jsFiles.push(t):t.endsWith(".css")&&e.cssFiles.push(t),e)),{cssFiles:[],jsFiles:[]});a.forEach((e=>{n.push(this.loadAsset({mfName:t,src:e}))}));for(const e of i)await this.loadAsset({mfName:t,src:e,appendScript:s});return this.emitSkeletonEvent(J.SuccessLoadingJsAssets,{mfName:t}),await Promise.all(n),Date.now()-r}}const he="__SHARED_DEPENDENCIES__";class fe{constructor(){const e=void 0!==globalThis[he]?globalThis[he]:{};
1this.globalDependencies=new Map,Object.keys(e).forEach((e=>{this.globalDependencies.set(e,{loadFrom:"preloaded-from-host",loadPromise:Promise.resolve()})}))}ensureDependencyLoadPromise(e,t){const s=this.globalDependencies.get(e);return s?(s.loadPromise||(s.loadPromise=t()),s.loadPromise):null}getDependencyLoadPromise(e){const t=this.globalDependencies.get(e);return t&&t.loadPromise||null}addKnownDependencies(e){e.forEach((({globalName:e,url:t})=>{this.globalDependencies.has(e)||this.globalDependencies.set(e,{loadFrom:t,loadPromise:null})}))}getUrl(e){const t=this.globalDependencies.get(e);if(!t)throw new Error(`Attempted getting URL to load of a missing global dependency: ${e}`);return t.loadFrom}}const de="We noticed you had CSP errors while loading a local MF. Please refer to this guide: https://trident.monday.beer/docs/frontend/getting-started/develop-mf#working-with-a-remote-host",le=/https?:\/\/localhost/;class ue{constructor({name:e,initConfig:t,skeletonContext:s,mfCanary:r,version:n}){if(this.preFetched=!1,this.name=e,this.skeletonContext=s,this.mfCanary=r||{isInCanaryExperimentalGroup:!1,isMfInCanary:!1},this.version=n,this.initType=t.type,"preloaded"===t.type)this.handleLoadedEntrypointScripts(t.entrypoints);else if("withAssetsDir"===t.type)this.assetsDir=t.assetsDir,this.manifestPath=t.manifestPath||`${re(t.assetsDir)}/asset-manifest.json`;else{if("withAssetsData"!==t.type)throw new Error(`Unexpected initialization type for MF "${this.name}": "${t.type}"`);this.assetsManifest=t.manifest,this.assetsDir=t.assetsDir}}render(e,t={}){if(!this.mfInterface)return;const{emitSkeletonEvent:s}=this.skeletonContext;try{s(J.MfUserRenderStart,{mfName:this.name,element:e}),this.mfInterface.render(e,t),s(J.MfUserRenderSuccess,{mfName:this.name})}catch(e){s(J.MfUserRenderError,{mfName:this.name,error:e})}}async preFetch(){if(this.preFetched||this.initOncePromise)return;const{emitSkeletonEvent:e}=this.skeletonContext;if(this.validateAssetsDataInput()&&this.validateAssetsDirInput())try{this.preFetched=!0;const e=re(this.assetsDir);let t;t="withAssetsData"===this.initType?this.assetsManifest:await te(this.manifestPath,{mode:"cors"}),await this.skeletonContext.manifestHandler.loadMfAssets({mfName:this.name,manifest:t,assetsDir:e,mode:oe.preFetchOnly})}catch(t){e(J.ErrorPreFetchMF,{mfName:this.name,error:t})}else e(J.ErrorPreFetchMF,{mfName:this.name,error:new Error(`Attempt to prefetch MF: ${this.name} with a missing params. assetsDir: ${this.assetsDir}, manifestPath: ${this.manifestPath}`)})}async initOnce(e,t){return this.initOncePromise||(this.initOncePromise=this.initOnceImpl(e,t)),this.initOncePromise}validateAssetsDirInput(){return!!("withAssetsDir"!==this.initType||this.assetsDir&&this.manifestPath)}validateAssetsDataInput(){return!!("withAssetsData"!==this.initType||this.assetsManifest&&0!==Object.keys(this.assetsManifest).length&&this.assetsDir)}validateInputByInitType(){if(!this.validateAssetsDirInput())throw new Error(`Attempt to initialize MF: ${this.name} with a missing params. init type: ${this.initType} assetsDir: ${this.assetsDir}, manifestPath: ${this.manifestPath}\nThis probably means that an MF was preloaded and attempted to be initialized afterwards.`);if(!this.validateAssetsDataInput())throw new Error(`Attempt to initialize MF: ${this.name}, init type: ${this.initType} with a missing assets manifest.`)}async initOnceImpl(e,t){if(this.mfInterface)return this.mfInterface;this.validateInputByInitType();const{emitSkeletonEvent:s}=this.skeletonContext;s(J.MFLoadStart,{mfName:this.name,mfCanary:this.mfCanary,version:this.version});const r=re(this.assetsDir);if("withAssetsDir"===this.initType){s(J.StartFetchingManifest,{mfName:this.name,version:this.version?.toString()||"",mfResource:r});try{const n=await te(this.manifestPath,{mode:"cors"});s(J.SuccessFetchingManifest,{mfName:this.name}),await this.handleManifestFiles({manifest:n,assetsDir:r,timeStart:e,appendScript:t})}catch(e){(function(e,t){if("object"!=typeof e||"Failed to fetch"!==e.message)return!1;const s=le.test(t),r="localhost"===window.location.hostname;return s&&!r})(e,this.manifestPath)&&(console.log(`\n======================\n${de}\n======================\n`),alert(de)),s(J.ErrorFetchingManifest,{mfName:this.name,error:e,manifestURL:this.manifestPath})}}else{if("withAssetsData"!==this.initType)throw new Error(`Unexpected initialization type for MF "${this.name}": "${this.initType}"`);{const s={shared:this.assetsManifest.shared,entrypoints:this.assetsManifest.entrypoints,sameAsHost:this.assetsManifest.sameAsHost||!1};await this.handleManifestFiles({manifest:s,assetsDir:r,timeStart:e,appendScript:t})}}return this.mfInterface}async handleManifestFiles({manifest:e,assetsDir:t,timeStart:s,appendScript:r}){if(!e)return;const{assetsLoadTime:n}=await this.skeletonContext.manifestHandler.loadMfAssets({mfName:this.name,manifest:e,assetsDir:t,mode:this.preFetched?oe.skipPreFetch:oe.withPreFetch,appendScript:r});this.handleLoadedEntrypointScripts(e.entrypoints),this.skeletonContext.emitSkeletonEvent(J.MFLoadDone,{mfName:this.name,totalLoadTime:Date.now()-s,assetsLoadTime:n})}handleLoadedEntrypointScripts(e){const t=e.find((e=>e.startsWith("MF-")));if(!t)throw new Error(`No Main MF file found for MF: "${this.name}"`);const{emitSkeletonEvent:s,mfApi:r}=this.skeletonContext,[n]=t.split("."),a=window[n];try{this.mfInterface=a;const e={mfUuid:n,mfName:this.name};
1s(J.MfUserInitStart,e),a.init({api:r}),s(J.MfUserInitSuccess,e)}catch(e){s(J.MfUserInitError,{error:e,mfName:this.name})}}}const pe="mfs-canary";class me{isInCanary(e,t){return!(!t||!localStorage)&&this.getCanaryPercentage(t)>=this.getAndSetUserCanaryExperimentalGroup(e,t.version)}getCanaryPercentage(e){const{startTimestamp:t,endTimestamp:s}=e,r=new Date(s).valueOf()-new Date(t).valueOf(),n=(new Date).valueOf()-new Date(t).valueOf();return(a=Math.round(n/r*100))>100?100:a<0?0:a;var a}getAndSetUserCanaryExperimentalGroup(e,t){const s=(e=>{try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch(e){return null}})(pe)||{};let r=s[e]?.[t];return r||(r=Math.round(100*Math.random()),s[e]={[t]:r},n=pe,a=s,localStorage&&localStorage.setItem(n,JSON.stringify(a)),r);var n,a}}function ye(){return(0,ee.parse)(window.location.search).mf_test_version}class ge{constructor({api:e,mfUrl:t,preloadedMFs:s={},isDev:r=!1,mfTestVersion:n=ye(),onEvent:a=se,host:i,mfAssets:o}){this.canaryManager=new me,this.emitEvent=(e,t)=>{this.tracker.track(e,t),this.onEvent(e,t)},this.renderMF=async(e,t,s={})=>{const r=this.mfs.get(e);r?r.render(t,s):console.warn(`Tried to render a non-existing MF: ${e}`)},this.ensureMfInstance=async e=>{if(this.mfs.has(e)||await this.initializeMfsPromise,!this.mfs.has(e)){const t=this.getLocalMfAssetsDir(e),s=new ue({name:e,skeletonContext:this.context,initConfig:{type:"withAssetsDir",assetsDir:t}});this.mfs.set(e,s)}},this.preFetchMF=async e=>(this.emitEvent(J.PrefetchMF,{mfName:e}),await this.ensureMfInstance(e),this.mfs.get(e).preFetch()),this.initMF=async(e,t)=>{this.emitEvent(J.InitMF,{mfName:e,initializedMFs:[...this.mfs.keys()]});const s=Date.now();return await this.ensureMfInstance(e),this.mfs.get(e).initOnce(s,t)},this.handleManifestFiles=async(e,t,s,{timeStart:r})=>{const n=this.mfs.get(e);n?await n.handleManifestFiles({manifest:t,assetsDir:s,timeStart:r}):console.warn(`Tried to handle manifest files for a non-existing MF: ${e}`)},this.mfUrl=t,this.onEvent=a;const c=this.emitEvent.bind(this);this.globalSharedDependencies=new fe,this.mfs=new Map;const h=new ce({emitSkeletonEvent:c,sharedDependencies:this.globalSharedDependencies});this.context={skeleton:this,isDev:r,emitSkeletonEvent:c,mfApi:e,manifestHandler:h},this.tracker=new Y({host:i,api:e,preloadedMFs:new Set(Object.keys(s))}),this.emitEvent(J.SkeletonCreated,{preloaded:s}),this.mfTestVersion=function(e){if(!e||["null","null~undefined"].includes(e))return;const[t,s,r]=e.split("~");return{mfName:t,version:s,testEnvOverride:r}}(n),this.handlePreloadedMfs(s),this.initializeMfsPromise=this.fetchCurrentMfsWithAssets(o)}async fetchCurrentMfsWithAssets(e){const{mfs:t,globalSharedDependencies:s}=this,{assets:r,sharedDependencyLocations:n}=e||await async function({testOverridesQueryParams:e,mfUrl:t,emitSkeletonEvent:s=se}){s(J.FetchMfAssetsStart);const r=ee.stringify({"test_overrides[]":e}),n=r?`?${r}`:"";try{const e=await te(`${t}/mf-assets${n}`);return s(J.FetchMfAssetsSuccess),e}catch(t){if(s(J.FetchMfAssetsError,{error:t}),!e)try{const e=await te("/microfrontends/mf_assets");return s(J.FetchMfAssetsFallbackSuccess),e}catch(e){s(J.FetchMfAssetsFallbackError,{error:e})}throw new Error("Failed to fetch mf-assets")}}({testOverridesQueryParams:this.testOverridesQueryParams,mfUrl:this.mfUrl,emitSkeletonEvent:this.emitEvent});Object.entries(r).forEach((([e,s])=>{if(t.has(e))return;const r=this.canaryManager.isInCanary(e,s.canary),n=!!s.canary,a=r?s.canary:s;if(ae(e)){const s=a.url,{assetsDir:i,manifestPath:o}=function({mfName:e,assetsDir:t,manifestPath:s}){if(!ae(e))return{assetsDir:t,manifestPath:s};const r=ne(),{endpoint:n,version:a}=r[e]||{};if(n)return{assetsDir:n,manifestPath:`${n}/asset-manifest.json`};if(a){if(s)return{assetsDir:t,manifestPath:`${s.split("asset-manifest")[0]}asset-manifest.${a}.json`};const e=t.lastIndexOf("/"),r=`${t.substring(0,e+1)}${a}`;return{assetsDir:r,manifestPath:`${r}/asset-manifest.json`}}return{assetsDir:t,manifestPath:s}}({mfName:e,assetsDir:s,manifestPath:a.url}),c=new ue({name:e,initConfig:{type:"withAssetsDir",assetsDir:i,manifestPath:o},mfCanary:{isInCanaryExperimentalGroup:r,isMfInCanary:n},version:a.version,skeletonContext:this.context});return void t.set(e,c)}const i=new ue({name:e,initConfig:{type:"withAssetsData",assetsDir:a.url,manifest:a},mfCanary:{isInCanaryExperimentalGroup:r,isMfInCanary:n},version:a.version,skeletonContext:this.context});t.set(e,i)}));const a=Object.entries(n).map((([e,t])=>({globalName:e,url:t})));s.addKnownDependencies(a)}handlePreloadedMfs(e){Object.entries(e).filter((([e])=>
1!ae(e))).forEach((([e,t])=>{const s=new ue({name:e,skeletonContext:this.context,initConfig:{type:"preloaded",entrypoints:t}});this.mfs.set(e,s)}))}getLocalMfAssetsDir(e){const{endpoint:t}=ae(e)&&ne()[e]||{};if(!t)throw this.emitEvent(J.MFNotInList,{mfName:e}),new Error(`'${e}' does not exist in Micro frontends list`);return t}get testOverridesQueryParams(){if(!this.mfTestVersion)return;const{mfName:e,version:t,testEnvOverride:s}=this.mfTestVersion;return`${e}~${t}${s?`~${s}`:""}`}}},4098:(e,t,s)=>{var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==s.g&&s.g,n=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==s.g&&s.g||{},n="URLSearchParams"in r,a="Symbol"in r&&"iterator"in Symbol,i="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in r,c="ArrayBuffer"in r;if(c)var h=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(e){return e&&h.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return a&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function y(e){return new Promise((function(t,s){e.onload=function(){t(e.result)},e.onerror=function(){s(e.error)}}))}function g(e){var t=new FileReader,s=y(t);return t.readAsArrayBuffer(e),s}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():c&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(e)||f(e))?this._bodyArrayBuffer=b(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return m(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(i)return this.blob().then(g);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,s,r,n,a=m(this);if(a)return a;
vendor: 4,309 bytes, line 1
1if(this._bodyBlob)return e=this._bodyBlob,s=y(t=new FileReader),n=(r=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?r[1]:"utf-8",t.readAsText(e,n),s;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),s=new Array(t.length),r=0;r<t.length;r++)s[r]=String.fromCharCode(t[r]);return s.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=d(e),t=l(t);var s=this.map[e];this.map[e]=s?s+", "+t:t},p.prototype.delete=function(e){delete this.map[d(e)]},p.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},p.prototype.set=function(e,t){this.map[d(e)]=l(t)},p.prototype.forEach=function(e,t){for(var s in this.map)this.map.hasOwnProperty(s)&&e.call(t,this.map[s],s,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,s){e.push(s)})),u(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),u(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,s){e.push([s,t])})),u(e)},a&&(p.prototype[Symbol.iterator]=p.prototype.entries);var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var s,n,a=(t=t||{}).body;if(e instanceof S){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,a||null==e._bodyInit||(a=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(n=(s=t.method||this.method||"GET").toUpperCase(),w.indexOf(n)>-1?n:s),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(a),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function E(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var s=e.split("="),r=s.shift().replace(/\+/g," "),n=s.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(n))}})),t}function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})},v.call(S.prototype),v.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var A=[301,302,303,307,308];_.redirect=function(e,t){if(-1===A.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var s=Error(e);this.stack=s.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function M(e,s){return new Promise((function(n,a){var o=new S(e,s
1);if(o.signal&&o.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var h=new XMLHttpRequest;function f(){h.abort()}if(h.onload=function(){var e,t,s={statusText:h.statusText,headers:(e=h.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var s=e.split(":"),r=s.shift().trim();if(r){var n=s.join(":").trim();try{t.append(r,n)}catch(e){console.warn("Response "+e.message)}}})),t)};0===o.url.indexOf("file://")&&(h.status<200||h.status>599)?s.status=200:s.status=h.status,s.url="responseURL"in h?h.responseURL:s.headers.get("X-Request-URL");var r="response"in h?h.response:h.responseText;setTimeout((function(){n(new _(r,s))}),0)},h.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},h.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request timed out"))}),0)},h.onabort=function(){setTimeout((function(){a(new t.DOMException("Aborted","AbortError"))}),0)},h.open(o.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?h.withCredentials=!0:"omit"===o.credentials&&(h.withCredentials=!1),"responseType"in h&&(i?h.responseType="blob":c&&(h.responseType="arraybuffer")),s&&"object"==typeof s.headers&&!(s.headers instanceof p||r.Headers&&s.headers instanceof r.Headers)){var u=[];Object.getOwnPropertyNames(s.headers).forEach((function(e){u.push(d(e)),h.setRequestHeader(e,l(s.headers[e]))})),o.headers.forEach((function(e,t){-1===u.indexOf(t)&&h.setRequestHeader(t,e)}))}else o.headers.forEach((function(e,t){h.setRequestHeader(t,e)}));o.signal&&(o.signal.addEventListener("abort",f),h.onreadystatechange=function(){4===h.readyState&&o.signal.removeEventListener("abort",f)}),h.send(void 0===o._bodyInit?null:o._bodyInit)}))}M.polyfill=!0,r.fetch||(r.fetch=M,r.Headers=p,r.Request=S,r.Response=_),t.Headers=p,t.Request=S,t.Response=_,t.fetch=M,Object.defineProperty(t,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var a=r.fetch?r:n;(t=a.fetch).default=a.fetch,t.fetch=a.fetch,t.Headers=a.Headers,t.Request=a.Request,t.Response=a.Response,e.exports=t},4020:e=>{"use strict";var t="%[a-f0-9]{2}",s=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function n(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var s=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],n(s),n(r))}function a(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(s)||[],r=1;r<t.length;r++)t=(e=n(t,r).join("")).match(s)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},s=r.exec(e);s;){try{t[s[0]]=decodeURIComponent(s[0])}catch(e){var n=a(s[0]);n!==s[0]&&(t[s[0]]=n)}s=r.exec(e)}t["%C2"]="�";for(var i=Object.keys(t),o=0;o<i.length;o++){var c=i[o];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},2806:e=>{"use strict";e.exports=function(e,t){for(var s={},r=Object.keys(e),n=Array.isArray(t),a=0;a<r.length;a++){var i=r[a],o=e[i];(n?-1!==t.indexOf(i):t(i,o,e))&&(s[i]=o)}return s}},7563:(e,t,s)=>{"use strict";const r=s(610),n=s(4020),a=s(500),i=s(2806),o=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function h(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function f(e,t){return t.decode?n(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function l(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function u(e){const t=(e=l(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const s=function(e){let t;switch(e.arrayFormat){case"index":return(e,s,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=s):r[e]=s};case"bracket":return(e,s,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],s):r[e]=[s]:r[e]=s};case"colon-list-separator":return(e,s,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],s):r[e]=[s]:r[e]=s};case"comma":case"separator":return(t,s,r)=>{const n="string"==typeof s&&s.includes(e.arrayFormatSeparator),a="string"==typeof s&&!n&&f(s,e).includes(e.arrayFormatSeparator);s=a?f(s,e):s;const i=n||a?s.split(e.arrayFormatSeparator).map((t=>f(t,e))):null===s?s:f(s,e);r[t]=i};case"bracket-separator":return(t,s,r)=>{const n=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!n)return void(r[t]=s?f(s,e):s);const a=null===s?[]:s.split(e.arrayFormatSeparator).map((t=>f(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],a):r[t]=a};default:return(e,t,s)=>{void 0!==s[e]?s[e]=[].concat(s[e],t):s[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const n of e.split("&")){if(""===n)continue;let[e,i]=a(t.decode?n.replace(/\+/g," "):n,"=");i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:f(i,t),s(f(e,t),i,r)}for(const e of Object.keys(r)){const s=r[e];if("object"==typeof s&&null!==s)for(const e of Object.keys(s))s[e]=p(s[e],t);else r[e]=p(s,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const s=r[t];return Boolean(s)&&"object"==typeof s&&!Array.isArray(s)?e[t]=d(s):e[t]=s,e}),Object.create(null))}t.extract=u,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const s=s=>t.skipNull&&null==e[s]||t.skipEmptyString&&""===e[s],r=function(e){switch(e.arrayFormat){case"index":return t=>(s,r)=>{const n=s.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?s:null===r?[...s,[h(t,e),"[",n,"]"].join("")]:[...s,[h(t,e),"[",h(n,e),"]=",h(r,e)].join("")]};case"bracket":return t=>(s,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?s:null===r?[...s,[h(t,e),"[]"].join("")]:[...s,[h(t,e),"[]=",h(r,e)].join("")];case"colon-list-separator":return t=>(s,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?s:null===r?[...s,[h(t,e),":list="].join("")]:[...s,[h(t,e),":list=",h(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return s=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:(n=null===n?"":n,0===r.length?[[h(s,e),t,h(n,e)].join("")]:[[r,h(n,e)].join(e.arrayFormatSeparator)])}default:return t=>(s,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?s:null===r?[...s,h(t,e)]:[...s,[h(t,e),"=",h(r,e)].join("")]}}(t),n={};for(const t of Object.keys(e))s(t)||(n[t]=e[t]);const a=Object.keys(n);return!1!==t.sort&&a.sort(t.sort),a.map((s=>{const n=e[s];return void 0===n?"":null===n?h(s,t):Array.isArray(n)?0===n.length&&"bracket-separator"===t.arrayFormat?h(s,t)+"[]":n.reduce(r(s),[]).join("&"):h(s,t)+"="+h(n,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>
1{t=Object.assign({decode:!0},t);const[s,r]=a(e,"#");return Object.assign({url:s.split("?")[0]||"",query:m(u(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:f(r,t)}:{})},t.stringifyUrl=(e,s)=>{s=Object.assign({encode:!0,strict:!0,[o]:!0},s);const r=l(e.url).split("?")[0]||"",n=t.extract(e.url),a=t.parse(n,{sort:!1}),i=Object.assign(a,e.query);let c=t.stringify(i,s);c&&(c=`?${c}`);let f=function(e){let t="";const s=e.indexOf("#");return-1!==s&&(t=e.slice(s)),t}(e.url);return e.fragmentIdentifier&&(f=`#${s[o]?h(e.fragmentIdentifier,s):e.fragmentIdentifier}`),`${r}${c}${f}`},t.pick=(e,s,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[o]:!1},r);const{url:n,query:a,fragmentIdentifier:c}=t.parseUrl(e,r);return t.stringifyUrl({url:n,query:i(a,s),fragmentIdentifier:c},r)},t.exclude=(e,s,r)=>{const n=Array.isArray(s)?e=>!s.includes(e):(e,t)=>!s(e,t);return t.pick(e,n,r)}},500:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const s=e.indexOf(t);return-1===s?[e]:[e.slice(0,s),e.slice(s+t.length)]}},610:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.