import {g as getLoad, s as staticMethods, a as getParse} from "./common/load-4922a70c.js";
export {h as html, t as text, x as xml} from "./common/load-4922a70c.js";
import {isDocument} from "/-/domhandler@v5.0.3-oHQ1zBLd64RIysV9PvVR/dist=es2019,mode=imports/optimized/domhandler.js";
import {parse as parse$1, parseFragment, serializeOuter} from "/-/parse5@v7.0.0-4AUKIZfwEPUbwYAbyTrt/dist=es2019,mode=imports/optimized/parse5.js";
import {adapter} from "/-/parse5-htmlparser2-tree-adapter@v7.0.0-Yds3pDou8tm4yIHAlVGV/dist=es2019,mode=imports/optimized/parse5-htmlparser2-tree-adapter.js";
import renderWithHtmlparser2 from "/-/dom-serializer@v2.0.0-0QgVINP0DwZRFE7238Nk/dist=es2019,mode=imports/optimized/dom-serializer.js";
import {parseDocument} from "/-/htmlparser2@v8.0.1-5ZdnwUWrSTqKCARDEeGB/dist=es2019,mode=imports/optimized/htmlparser2.js";
import "/-/domutils@v3.0.1-AxLWD9jG78wB01z8Pizf/dist=es2019,mode=imports/optimized/domutils.js";
import "./cheerio/lib/utils.js";
import "/-/cheerio-select@v2.1.0-3jQ9aaXMWR0anNb0rdBs/dist=es2019,mode=imports/optimized/cheerio-select.js";
function parseWithParse5(content, options, isDocument2, context) {
  const opts = {
    scriptingEnabled: typeof options.scriptingEnabled === "boolean" ? options.scriptingEnabled : true,
    treeAdapter: adapter,
    sourceCodeLocationInfo: options.sourceCodeLocationInfo
  };
  return isDocument2 ? parse$1(content, opts) : parseFragment(context, content, opts);
}
const renderOpts = {treeAdapter: adapter};
function renderWithParse5(dom) {
  const nodes = "length" in dom ? dom : [dom];
  for (let index2 = 0; index2 < nodes.length; index2 += 1) {
    const node = nodes[index2];
    if (isDocument(node)) {
      Array.prototype.splice.call(nodes, index2, 1, ...node.children);
    }
  }
  let result = "";
  for (let index2 = 0; index2 < nodes.length; index2 += 1) {
    const node = nodes[index2];
    result += serializeOuter(node, renderOpts);
  }
  return result;
}
const parse = getParse((content, options, isDocument2, context) => options.xmlMode || options._useHtmlParser2 ? parseDocument(content, options) : parseWithParse5(content, options, isDocument2, context));
const load = getLoad(parse, (dom, options) => options.xmlMode || options._useHtmlParser2 ? renderWithHtmlparser2(dom, options) : renderWithParse5(dom));
var index = load([]);
const {contains} = staticMethods;
const {merge} = staticMethods;
const {parseHTML} = staticMethods;
const {root} = staticMethods;
export default index;
export {contains, load, merge, parseHTML, root};

// denoCacheMetadata={"headers":{"x-cache":"HIT","date":"Tue, 28 Jul 2026 12:31:13 GMT","access-control-allow-origin":"*","content-type":"application/javascript; charset=utf-8","x-imports":"./common/load-4922a70c.js, ./common/load-4922a70c.js, /-/domhandler@v5.0.3-oHQ1zBLd64RIysV9PvVR/dist=es2019,mode=imports/optimized/domhandler.js, /-/parse5@v7.0.0-4AUKIZfwEPUbwYAbyTrt/dist=es2019,mode=imports/optimized/parse5.js, /-/parse5-htmlparser2-tree-adapter@v7.0.0-Yds3pDou8tm4yIHAlVGV/dist=es2019,mode=imports/optimized/parse5-htmlparser2-tree-adapter.js, /-/dom-serializer@v2.0.0-0QgVINP0DwZRFE7238Nk/dist=es2019,mode=imports/optimized/dom-serializer.js, /-/htmlparser2@v8.0.1-5ZdnwUWrSTqKCARDEeGB/dist=es2019,mode=imports/optimized/htmlparser2.js, /-/domutils@v3.0.1-AxLWD9jG78wB01z8Pizf/dist=es2019,mode=imports/optimized/domutils.js, ./cheerio/lib/utils.js, /-/cheerio-select@v2.1.0-3jQ9aaXMWR0anNb0rdBs/dist=es2019,mode=imports/optimized/cheerio-select.js","cf-ray":"a223e64e1e7ef8b7-LAX","etag":"W/\"9ef-Cfi8107dRUAAKL7GbF01nwzUiWM\"","x-vercel-cache":"MISS","x-vercel-id":"iad1::sfo1::269gd-1775489853362-d439fcfab4d4","access-control-expose-headers":"Content-Length, X-Imports","age":"0","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=rvqNonefzaSG2hqYIcXFqo0B0T76%2Buhf5efkdpRE77M4axHqlkXCnDsiMTuUPVFefct9On1PqmBfFYFKeJz%2Bkbx8vsislPrvSoloNLPnnFof0MXw81rbBSfwPkJerIGTLg%3D%3D\"}]}","cf-cache-status":"MISS","alt-svc":"h3=\":443\"; ma=86400","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","strict-transport-security":"max-age=63072000","server":"cloudflare","cache-control":"public, max-age=31536000, immutable","vary":"accept-encoding"},"url":"https://cdn.skypack.dev/-/cheerio@v1.0.0-rc.12-d2orEfV7mEyxhcmv8Jbn/dist=es2019,mode=imports/optimized/cheerio.js","time":1785241873}