import "@vite/client";
if (import.meta.hot) {
  const parser = new DOMParser();
  import.meta.hot.on("astro:reload", async ({html}) => {
    const {default: morphdom} = await import("morphdom");
    const doc = parser.parseFromString(html, "text/html");
    morphdom(document.head, doc.head, {
      onBeforeElUpdated: function(fromEl, toEl) {
        if (fromEl.isEqualNode(toEl)) {
          return false;
        }
        return true;
      }
    });
    morphdom(document.body, doc.body, {
      onBeforeElUpdated: function(fromEl, toEl) {
        if (fromEl.localName === "astro-root") {
          return fromEl.getAttribute("uid") !== toEl.getAttribute("uid");
        }
        if (fromEl.isEqualNode(toEl)) {
          return false;
        }
        return true;
      }
    });
  });
}
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vc3JjL3J1bnRpbWUvY2xpZW50L2htci50cyJdLAogICJtYXBwaW5ncyI6ICJBQUFBO0FBRUEsSUFBSSxZQUFZLEtBQUs7QUFDbkIsUUFBTSxTQUFTLElBQUk7QUFDbkIsY0FBWSxJQUFJLEdBQUcsZ0JBQWdCLE9BQU8sQ0FBRSxVQUE2QjtBQUN2RSxVQUFNLENBQUUsU0FBUyxZQUFhLE1BQU0sT0FBTztBQUMzQyxVQUFNLE1BQU0sT0FBTyxnQkFBZ0IsTUFBTTtBQUV6QyxhQUFTLFNBQVMsTUFBTSxJQUFJLE1BQU07QUFBQSxNQUNoQyxtQkFBbUIsU0FBVSxRQUFRLE1BQU07QUFDekMsWUFBSSxPQUFPLFlBQVksT0FBTztBQUM1QixpQkFBTztBQUFBO0FBR1QsZUFBTztBQUFBO0FBQUE7QUFJWCxhQUFTLFNBQVMsTUFBTSxJQUFJLE1BQU07QUFBQSxNQUNoQyxtQkFBbUIsU0FBVSxRQUFRLE1BQU07QUFDekMsWUFBSSxPQUFPLGNBQWMsY0FBYztBQUNyQyxpQkFBTyxPQUFPLGFBQWEsV0FBVyxLQUFLLGFBQWE7QUFBQTtBQUcxRCxZQUFJLE9BQU8sWUFBWSxPQUFPO0FBQzVCLGlCQUFPO0FBQUE7QUFHVCxlQUFPO0FBQUE7QUFBQTtBQUFBO0FBQUE7IiwKICAibmFtZXMiOiBbXQp9Cg==
