var t = require; var e = module; var i = exports; Object.defineProperty(i, "__esModule", {value: !0}), (i.DebugUtils = void 0); const s = new WeakMap(); class o {} (window.CacheTest = o), (i.DebugUtils = class { constructor() { (this._threshold = 0.5), (this._log = null), (this._startTimes = {}), (this._lastTimes = {}); } addCache(t) { s.set(t, new o()); } checkObj() { queryObjects(o); } isOpen(t) { this._isOpen = t; } get isDebug() { return this._isOpen; } start(t) { this._isOpen && (delete this._lastTimes[t], (this._startTimes[t] = window.performance.now())); } stop(t, ...e) { if (!this._isOpen) return 0; if (!this._startTimes[t]) return 0; var i = window.performance.now(), s = Math.floor(1e3 * (i - this._startTimes[t])) / 1e3; return ( s > this._threshold && (this._lastTimes[t] ? Log.trace("DebugUtils", t + ": " + s, Math.floor(i - this._lastTimes[t]), ...e) : Log.trace("DebugUtils", t + ": " + s, ...e), (this._lastTimes[t] = i)), s ); } setThreshold(t) { this._threshold = t; } });