Benign javascript Download

es-module-shims.wasm.min.js

JavaScript string is at least two KiBCalls postMessage with wildcard target origin
SHA-2565be3f1ae0fdcecac9f3657f3d1f3f8503f90a38f655efeb89d054b8b5f46f398

Evidence

JSON.parse call, dotted or computed member lines 5–7
5:81… w.jsdelivr.com/using-sri-with-dynamic-files
6 */
7!function(){const A="undefined"!=typeof document,e=()=>{},t=A?document.querySelector("script[type=esms-options]"):void 0,Q=t?JSON.parse(t.innerHTML):{};Object.assign(Q,self.esmsInitOptions||{});let o=!A||!!Q.shimMode;const B=I(o&&Q.onimport),E=I(o&&Q.resolve);let C=Q.fetch?I(Q.fetch):fetch;const n=Q.meta?I(o&&Q.meta):e,s=Q.mapOverrides;let i=Q.nonce;if(!i&&A){const A=document.querySelector("script[nonce]");A&&(i=A.nonce||A.getAttribute("nonce"))}const r=I(Q.onerror||e),{revokeBlobURLs:g,noLoadEventRetriggers:a,globalLoadEventRetrigger:c,enforceIntegrity:l}=Q;function I(A){return"string"==typeof A?self …
Reads browser User-Agent string line 7
7:631… Array(Q.polyfillEnable)?Q.polyfillEnable:[],p=w.includes("css-modules"),f=w.includes("json-modules"),m=w.includes("wasm-modules"),u=w.includes("source-phase"),d=Q.onpolyfill?I(Q.onpolyfill):()=>{console.log("%c^^ Module error above is polyfilled and can be ignored ^^","font-weight:900;color:#391")},K=!navigator.userAgentData&&!!navigator.userAgent.match(/Edge\/\d+\.\d+/),D=A?document.baseURI:`${location.protocol}//${location.host}${location.pathname.includes("/")?location.pathname.slice(0,location.pathname.lastIndexOf("/")+1):location.pathname}`,k=(A,e="text/javascript")=>UR …
Constructs URL object from variable line 7
7:1611… nction N(A){return A?` imported from ${A}`:""}let J=!1;if(!o)if(document.querySelectorAll("script[type=module-shim],script[type=importmap-shim],link[rel=modulepreload-shim]").length)o=!0;else{let A=!1;for(const e of document.querySelectorAll("script[type=module],script[type=importmap]"))if(A){if("importmap"===e.type&&A){J=!0;break}}else"module"!==e.type||e.ep||(A=!0)}const U=/\\/g;function b(A){try{if(-1!==A.indexOf(":"))return new URL(A).href}catch(A){}}function R(A,e){return S(A,e)||b(A)||S("./"+A,e)}function S(A,e){const t=e.indexOf("#"),Q=e.indexOf("?");if(t+Q>-2&&(e=e.slice(0,-1===t?Q:-1===Q||Q>t?t:Q)),-1!==A.indexOf("\\")&&(A=A.replace(U,"/")),"/"===A[0]&&"/"===A[1])return e.slice(0,e.indexOf(":")+1)+A;if("."===A[0]&&("/"===A[1]||"."===A[1]&&("/"===A[2]||2===A.length& …
Searches string for a forward-slash delimiter line 7
7:2568… elative url or base scheme isn't hierarchical.`);let Q;if("/"===e[t.length+1]?"file:"!==t?(Q=e.slice(t.length+2),Q=Q.slice(Q.indexOf("/")+1)):Q=e.slice(8):Q=e.slice(t.length+("/"===e[t.length])),"/"===A[0])return e.slice(0,e.length-Q.length-1)+A;const o=Q.slice(0,Q.lastIndexOf("/")+1)+A,B=[];let E=-1;for(let A=0;A<o.length;A++)if(-1===E){if("."===o[A]){if("."===o[A+1]&&("/"===o[A+2]||A+2===o.length)){B.pop(),A+=2;continue}if("/"===o[A+1]||A+1===o.length){A+=1;continue}}for(;"/"===o[A];)A++;E=A}else"/"===o[A]&&(B.push(o.slice(E,A+1)),E=-1);return-1!==E&&B.push(o.slice(E)),e.slice(0,e.length-Q.length)+B.join("")}}function F(A,e,t){const Q={imports:Object.assign({},t.imports),scopes:Object.assign({},t.s …
Indirect eval via comma operator line 7
7:4063… ts)||-1!==e.indexOf(":")&&e}function v(A,e,t,Q){for(let B in A){const E=S(B,t)||B;if((!o||!s)&&e[E]&&e[E]!==A[E])throw Error(`Rejected map override "${E}" from ${e[E]} to ${A[E]}.`);let C=A[B];if("string"!=typeof C)continue;const n=Y(Q,S(C,t)||C,t);n?e[E]=n:console.warn(`Mapping "${B}" -> "${A[B]}" does not resolve`)}}let $,H=!A&&(0,eval)("u=>import(u)");const q=A&&new Promise((A=>{const e=Object.assign(document.createElement("script"),{src:k("self._d=u=>import(u)"),ep:!0 …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.