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(fromEl, toEl) {
        if (fromEl.isEqualNode(toEl)) {
          return false;
        }
        return true;
      }
    });
    morphdom(document.body, doc.body, {
      onBeforeElUpdated(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,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vc3JjL3J1bnRpbWUvY2xpZW50L2htci50cyJdLAogICJtYXBwaW5ncyI6ICJBQUFBO0FBRUEsSUFBSSxZQUFZLEtBQUs7QUFDbkIsUUFBTSxTQUFTLElBQUk7QUFDbkIsY0FBWSxJQUFJLEdBQUcsZ0JBQWdCLE9BQU8sQ0FBRSxVQUE2QjtBQUN2RSxVQUFNLENBQUUsU0FBUyxZQUFhLE1BQU0sT0FBTztBQUMzQyxVQUFNLE1BQU0sT0FBTyxnQkFBZ0IsTUFBTTtBQUV6QyxhQUFTLFNBQVMsTUFBTSxJQUFJLE1BQU07QUFBQSxNQUNoQyxrQkFBa0IsUUFBUSxNQUFNO0FBQzlCLFlBQUksT0FBTyxZQUFZLE9BQU87QUFDNUIsaUJBQU87QUFBQTtBQUdULGVBQU87QUFBQTtBQUFBO0FBSVgsYUFBUyxTQUFTLE1BQU0sSUFBSSxNQUFNO0FBQUEsTUFDaEMsa0JBQWtCLFFBQVEsTUFBTTtBQUM5QixZQUFJLE9BQU8sY0FBYyxjQUFjO0FBQ3JDLGlCQUFPLE9BQU8sYUFBYSxXQUFXLEtBQUssYUFBYTtBQUFBO0FBRzFELFlBQUksT0FBTyxZQUFZLE9BQU87QUFDNUIsaUJBQU87QUFBQTtBQUdULGVBQU87QUFBQTtBQUFBO0FBQUE7QUFBQTsiLAogICJuYW1lcyI6IFtdCn0K
