import { zwitch as e } from "../../../zwitch/index.js";
import { comment as t } from "./comment.js";
import { doctype as n } from "./doctype.js";
import { element as r } from "./element.js";
import { text as i } from "./text.js";
import { raw as a } from "./raw.js";
import { root as o } from "./root.js";
//#region ../../node_modules/hast-util-to-html/lib/handle/index.js
var s = e("type", {
	invalid: c,
	unknown: l,
	handlers: {
		comment: t,
		doctype: n,
		element: r,
		raw: a,
		root: o,
		text: i
	}
});
function c(e) {
	throw Error("Expected node, not `" + e + "`");
}
function l(e) {
	throw Error("Cannot compile unknown node `" + e.type + "`");
}
//#endregion
export { s as handle };
