shadow$provide.module$node_modules$pixi_DOT_js$lib$scene$text_html$HTMLText = function(global, require, module, exports) {
  var TextureSource = require("module$node_modules$pixi_DOT_js$lib$rendering$renderers$shared$texture$sources$TextureSource"), TextureStyle = require("module$node_modules$pixi_DOT_js$lib$rendering$renderers$shared$texture$TextureStyle"), AbstractText = require("module$node_modules$pixi_DOT_js$lib$scene$text$AbstractText"), HTMLTextStyle = require("module$node_modules$pixi_DOT_js$lib$scene$text_html$HTMLTextStyle"), measureHtmlText = require("module$node_modules$pixi_DOT_js$lib$scene$text_html$utils$measureHtmlText");
  require("module$node_modules$pixi_DOT_js$lib$scene$text_html$init");
  "use strict";
  class HTMLText extends AbstractText.AbstractText {
    constructor(...args) {
      args = AbstractText.ensureTextOptions(args, "HtmlText");
      super(args, HTMLTextStyle.HTMLTextStyle);
      this.renderPipeId = "htmlText";
      args.textureStyle && (this.textureStyle = args.textureStyle instanceof TextureStyle.TextureStyle ? args.textureStyle : new TextureStyle.TextureStyle(args.textureStyle));
      this.autoGenerateMipmaps = args.autoGenerateMipmaps ?? TextureSource.TextureSource.defaultOptions.autoGenerateMipmaps;
    }
    updateBounds() {
      const bounds = this._bounds, anchor = this._anchor, htmlMeasurement = measureHtmlText.measureHtmlText(this.text, this._style), {width, height} = htmlMeasurement;
      bounds.minX = -anchor._x * width;
      bounds.maxX = bounds.minX + width;
      bounds.minY = -anchor._y * height;
      bounds.maxY = bounds.minY + height;
    }
    get text() {
      return this._text;
    }
    set text(text) {
      super.text = this._sanitiseText(text.toString());
    }
    _sanitiseText(text) {
      return this._removeInvalidHtmlTags(text.replace(/<br>/gi, "\x3cbr/\x3e").replace(/<hr>/gi, "\x3chr/\x3e").replace(/&nbsp;/gi, "\x26#160;"));
    }
    _removeInvalidHtmlTags(input) {
      return input.replace(/<[^>]*?(?=<|$)/g, "");
    }
  }
  exports.HTMLText = HTMLText;
};

//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$scene$text_html$HTMLText.js.map
