'use strict';
(function (g) {
  var _m = {
    a: 'Um9DdXN0b21pemU=',
    b: 'VGhlbWVzICYgdG9vbHMgZm9yIFJvYmxveA==',
    c: 'TG9hZGluZy4uLg==',
    d: 'UmVsb2FkIHRoZSBleHRlbnNpb24gYW5kIHRyeSBhZ2Fpbi4=',
    e: 'Q2FudCBub3QgcmVhY2ggc2VydmVyLiBDaGVjayBjb25uZWN0aW9uLg==',
    f: 'UmVxdWVzdCB0aW1lZCBvdXQuIFRyeSBhZ2Fpbi4=',
    g: 'SWQ=',
    h: 'T3BlbiB0b29s',
  };

  function _d(s) {
    try {
      return decodeURIComponent(escape(g.atob(s)));
    } catch (_) {
      return '';
    }
  }

  g.MRBX_S = {
    t: function (k) {
      return _d(_m[k] || '') || k;
    },
    applyPopupLabels: function () {
      try {
        var title = _d(_m.a);
        if (title) {
          g.document.title = title;
          var hdr = g.document.getElementById('hdrTitle');
          if (hdr) hdr.textContent = title;
        }
        var sub = g.document.getElementById('hdrSub');
        if (sub && !sub.textContent) sub.textContent = _d(_m.b);
        var idLbl = g.document.getElementById('idLbl');
        if (idLbl) idLbl.textContent = _d(_m.g);
        var btn = g.document.getElementById('btnStudio');
        if (btn) {
          var lbl = btn.querySelector('.btn-label');
          if (lbl) lbl.textContent = _d(_m.h);
        }
      } catch (_) {}
    },
  };
})(typeof globalThis !== 'undefined' ? globalThis : self);
