"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const index = require("../zwitch/index.cjs");
const comment = require("./lib-handle-comment.cjs");
const doctype = require("./lib-handle-doctype.cjs");
const element = require("./lib-handle-element.cjs");
const raw = require("./lib-handle-raw.cjs");
const root = require("./lib-handle-root.cjs");
const text = require("./lib-handle-text.cjs");
const handle = index.zwitch("type", {
  invalid,
  unknown,
  handlers: { comment: comment.comment, doctype: doctype.doctype, element: element.element, raw: raw.raw, root: root.root, text: text.text }
});
function invalid(node) {
  throw new Error("Expected node, not `" + node + "`");
}
function unknown(node_) {
  const node = (
    /** @type {Nodes} */
    node_
  );
  throw new Error("Cannot compile unknown node `" + node.type + "`");
}
exports.handle = handle;
//# sourceMappingURL=lib-handle-index.cjs.map
