"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _importCdnJs = _interopRequireDefault(require("import-cdn-js"));

var _getVersion = require("../get-version");

require("./index.less");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
var _default = function _default() {
  var showDebug = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['develop', 'trial'].includes(_getVersion.envVersion) || window.location.hostname === '122.9.36.145' || window.location.href.includes('isDebug=true');

  if (showDebug) {
    (0, _importCdnJs.default)('//cdn.bootcss.com/eruda/1.4.4/eruda.min.js', 'eruda').then(function (eruda) {
      eruda.init();
    });
  }
};

exports.default = _default;