PageSourceSearch

https://shop.agakhanmuseum.org/cdn/shopifycloud/checkout-web/assets/c1/55098bf1.CrP8QF43.js

js agakhanmuseum.org collected 2026-10-01 10:37:52 UTC 1,692 bytes, 1 lines download raw bytes

1import{A as e,h as s,u as t}from"./2c1ab0fe.D_oO1jU7.js";import{bS as n}from"./164ad2e3.DgUUtBtV.js";function r(e){return null!=e?.assets?.main?.url}function i(e,s){const t=new WebSocket(e),n=({data:t})=>{try{const{event:e,data:n}=JSON.parse(t);if("update"!==e)return;s(n)}catch(n){console.log(`error parsing update message from ${e} : ${n}`)}};return t.addEventListener("message",n),()=>{t.removeEventListener("message",n),t.close()}}function o(e,s){const t=new Map,n=new Map;return e.extensions.forEach((({uuid:e,assets:{main:{lastUpdated:s}},localization:r})=>{t.set(e,s),r&&n.set(e,r.lastUpdated)})),i(e.socket.url,(({extensions:e})=>{e.forEach((({uuid:e,assets:{main:{lastUpdated:r}},localization:i})=>{const o=t.get(e),a=n.get(e),u=r&&o!==r,c=i?.lastUpdated&&a!==i.lastUpdated;let d;u&&(t.set(e,r),d=()=>s(e)),c&&(n.set(e,i.lastUpdated),d=()=>s(e,i)),d&&d()}))}))}function a(e,s){const{uuid:t,socketUrl:n}=e,r=i(n,(({extensions:e})=>{e.find((({uuid:e})=>e===t))&&(r(),s())}))}function u({impressionType:r,impressionFeatures:i,enabled:o,children:a}){const u=function({impressionType:t,impressionFeatures:r,enabled:i=!0}){const o=n(),a=e(null),u=e(!1),c=e({impressionType:t,impressionFeatures:r});return c.current={impressionType:t,impressionFeatures:r},s((()=>{if(!i||u.current||!window.IntersectionObserver)return;const e=new IntersectionObserver((t=>{const n=t.some((({isIntersecting:e})=>e));s&&n&&(e.unobserve(s),u.current=!0,o("impression",{...c.current,timestamp:new Date}))}),{threshold:1}),s=a.current;return s&&e.observe(s),()=>{s&&e.unobserve(s)}}),[o,i]),a}({impressionType:r,impressionFeatures:i,enabled:o});return t("div",{ref:u,children:a})}export{u as I,a,r as i,o as s};

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.