import { getDefaultExportFromCjs } from "../../_virtual/_commonjsHelpers.js";
import { __module as lib } from "../../_virtual/index.js";
import "./lib-default.js";
import "./lib-parser.js";
import { x as xss$1 } from "./lib-xss.js";
import { __exports as _default } from "../../_virtual/default.js";
import { __exports as parser } from "../../_virtual/parser.js";
(function(module, exports) {
  var DEFAULT = _default;
  var parser$1 = parser;
  var FilterXSS = xss$1;
  function filterXSS(html, options) {
    var xss2 = new FilterXSS(options);
    return xss2.process(html);
  }
  exports = module.exports = filterXSS;
  exports.filterXSS = filterXSS;
  exports.FilterXSS = FilterXSS;
  (function() {
    for (var i in DEFAULT) {
      exports[i] = DEFAULT[i];
    }
    for (var j in parser$1) {
      exports[j] = parser$1[j];
    }
  })();
  if (typeof window !== "undefined") {
    window.filterXSS = module.exports;
  }
  function isWorkerEnv() {
    return typeof self !== "undefined" && typeof DedicatedWorkerGlobalScope !== "undefined" && self instanceof DedicatedWorkerGlobalScope;
  }
  if (isWorkerEnv()) {
    self.filterXSS = module.exports;
  }
})(lib, lib.exports);
var libExports = lib.exports;
const xss = /* @__PURE__ */ getDefaultExportFromCjs(libExports);
export {
  xss as default,
  libExports as l
};
//# sourceMappingURL=lib-index.js.map
