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,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vc3JjL3J1bnRpbWUvY2xpZW50L2htci50cyJdLAogICJtYXBwaW5ncyI6ICJBQUFBLElBQUksWUFBWSxLQUFLO0FBQ25CLFFBQU0sU0FBUyxJQUFJO0FBQ25CLGNBQVksSUFBSSxHQUFHLGdCQUFnQixPQUFPLENBQUUsVUFBNkI7QUFDdkUsVUFBTSxDQUFFLFNBQVMsWUFBYSxNQUFNLE9BQU87QUFDM0MsVUFBTSxNQUFNLE9BQU8sZ0JBQWdCLE1BQU07QUFFekMsYUFBUyxTQUFTLE1BQU0sSUFBSSxNQUFNO0FBQUEsTUFDaEMsa0JBQWtCLFFBQVEsTUFBTTtBQUM5QixZQUFJLE9BQU8sWUFBWSxPQUFPO0FBQzVCLGlCQUFPO0FBQUE7QUFHVCxlQUFPO0FBQUE7QUFBQTtBQUlYLGFBQVMsU0FBUyxNQUFNLElBQUksTUFBTTtBQUFBLE1BQ2hDLGtCQUFrQixRQUFRLE1BQU07QUFDOUIsWUFBSSxPQUFPLGNBQWMsY0FBYztBQUNyQyxpQkFBTyxPQUFPLGFBQWEsV0FBVyxLQUFLLGFBQWE7QUFBQTtBQUcxRCxZQUFJLE9BQU8sWUFBWSxPQUFPO0FBQzVCLGlCQUFPO0FBQUE7QUFHVCxlQUFPO0FBQUE7QUFBQTtBQUFBO0FBQUE7IiwKICAibmFtZXMiOiBbXQp9Cg==
