{
  "version": 3,
  "sources": ["/cdn/shop/t/38/assets/storm-polish.js?nocache=1794967901957"],
  "sourcesContent": ["/*\n * Storm polish layer: small, quiet details that make the site feel finished.\n * Everything here is an enhancement. If this file fails, the site still works and nothing stays hidden.\n *  1. Lazy product images fade in instead of popping in.\n *  2. A thin loading bar shows while filters, cart and search requests are in flight.\n *  3. Home page sections below the first screen rise in once as they scroll into view.\n * All motion is skipped for visitors who ask their device to reduce motion.\n */\n(() => {\n  const reduce = window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n\n  /* 1. Image fade-in ------------------------------------------------------------------- */\n  const IMG = '.card-gallery img[loading=\"lazy\"], .storm-card__media img[loading=\"lazy\"], .product-media-container img[loading=\"lazy\"]';\n  const markImage = (img) => {\n    if (img.dataset.stormFade) return;\n    img.dataset.stormFade = '1';\n    img.decoding = 'async';\n    if (reduce || img.complete) return;\n    img.classList.add('storm-img-fade');\n    const show = () => img.classList.add('storm-img-in');\n    img.addEventListener('load', show, { once: true });\n    img.addEventListener('error', show, { once: true });\n  };\n  const scanImages = () => document.querySelectorAll(IMG).forEach(markImage);\n  scanImages();\n  let queued = false;\n  new MutationObserver(() => {\n    if (queued) return;\n    queued = true;\n    requestAnimationFrame(() => { queued = false; scanImages(); });\n  }).observe(document.body, { childList: true, subtree: true });\n\n  /* 2. Loading bar for filter, cart and search requests --------------------------------- */\n  const bar = document.createElement('div');\n  bar.id = 'storm-progress';\n  bar.setAttribute('aria-hidden', 'true');\n  document.body.appendChild(bar);\n  const WATCH = /([?&](section_id|sections)=|\\/cart\\/(add|change|update|clear)|\\/search\\/suggest)/;\n  let pending = 0, startTimer = null, visible = false;\n  const begin = () => { clearTimeout(startTimer); startTimer = setTimeout(() => { visible = true; bar.className = 'is-on'; }, 160); };\n  const finish = () => {\n    clearTimeout(startTimer);\n    if (!visible) return;\n    bar.className = 'is-done';\n    setTimeout(() => { bar.className = ''; visible = false; }, 450);\n  };\n  const nativeFetch = window.fetch;\n  window.fetch = function (input) {\n    const url = typeof input === 'string' ? input : input instanceof URL ? input.href : (input && input.url) || '';\n    const request = nativeFetch.apply(this, arguments);\n    if (WATCH.test(url)) {\n      pending++;\n      if (pending === 1) begin();\n      const done = () => { pending = Math.max(0, pending - 1); if (pending === 0) finish(); };\n      request.then(done, done);\n    }\n    return request;\n  };\n\n  /* 3. Home page: sections below the first screen rise in once ----------------------------- */\n  const main = document.querySelector('main[data-template=\"index\"]');\n  if (!reduce && main && 'IntersectionObserver' in window) {\n    const sections = [...main.querySelectorAll(':scope > .shopify-section')].slice(2)\n      .filter((s) => !s.querySelector('.storm-split') && !s.querySelector('marquee-component'));\n    const io = new IntersectionObserver((entries) => {\n      entries.forEach((e) => { if (e.isIntersecting) { e.target.classList.add('storm-in'); io.unobserve(e.target); } });\n    }, { rootMargin: '0px 0px -8% 0px', threshold: 0.05 });\n    sections.forEach((s) => {\n      if (s.getBoundingClientRect().top < window.innerHeight * 0.92) return;   // already on screen: leave it alone\n      s.classList.add('storm-reveal');\n      io.observe(s);\n    });\n  }\n})();\n"],
  "mappings": "CAQC,IAAM,CACL,MAAM,OAAS,OAAO,WAAW,kCAAkC,EAAE,QAG/D,IAAM,0HACN,UAAa,KAAQ,CAIzB,GAHI,IAAI,QAAQ,YAChB,IAAI,QAAQ,UAAY,IACxB,IAAI,SAAW,QACX,QAAU,IAAI,UAAU,OAC5B,IAAI,UAAU,IAAI,gBAAgB,EAClC,MAAM,KAAO,IAAM,IAAI,UAAU,IAAI,cAAc,EACnD,IAAI,iBAAiB,OAAQ,KAAM,CAAE,KAAM,EAAK,CAAC,EACjD,IAAI,iBAAiB,QAAS,KAAM,CAAE,KAAM,EAAK,CAAC,CACpD,EACM,WAAa,IAAM,SAAS,iBAAiB,GAAG,EAAE,QAAQ,SAAS,EACzE,WAAW,EACX,IAAI,OAAS,GACb,IAAI,iBAAiB,IAAM,CACrB,SACJ,OAAS,GACT,sBAAsB,IAAM,CAAE,OAAS,GAAO,WAAW,CAAG,CAAC,EAC/D,CA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