const _0x39f638 = _0x34a0;
function _0x34a0(_0x38874f, _0x2442a7) {
  const _0x220a62 = _0x220a();
  return (
    (_0x34a0 = function (_0x34a03f, _0x4b4f2b) {
      _0x34a03f = _0x34a03f - 0xca;
      let _0x1cb717 = _0x220a62[_0x34a03f];
      return _0x1cb717;
    }),
    _0x34a0(_0x38874f, _0x2442a7)
  );
}
(function (_0x49f39f, _0x43eee8) {
  const _0x2d6fcd = _0x34a0,
    _0x9d757 = _0x49f39f();
  while (!![]) {
    try {
      const _0xcd3d75 =
        (parseInt(_0x2d6fcd(0x113)) / 0x1) * (parseInt(_0x2d6fcd(0xef)) / 0x2) +
        -parseInt(_0x2d6fcd(0xce)) / 0x3 +
        (parseInt(_0x2d6fcd(0xe5)) / 0x4) * (-parseInt(_0x2d6fcd(0xfa)) / 0x5) +
        -parseInt(_0x2d6fcd(0x10a)) / 0x6 +
        -parseInt(_0x2d6fcd(0xdb)) / 0x7 +
        parseInt(_0x2d6fcd(0xdf)) / 0x8 +
        (parseInt(_0x2d6fcd(0xe2)) / 0x9) * (parseInt(_0x2d6fcd(0x109)) / 0xa);
      if (_0xcd3d75 === _0x43eee8) break;
      else _0x9d757['push'](_0x9d757['shift']());
    } catch (_0x115504) {
      _0x9d757['push'](_0x9d757['shift']());
    }
  }
})(_0x220a, 0x4f5c5);
document['currentScript'][_0x39f638(0xd5)](_0x39f638(0xd7)) &&
document[_0x39f638(0x10e)]['getAttribute'](_0x39f638(0xd7))[_0x39f638(0xfe)]('?')[0x1]?.[_0x39f638(0xfe)]('=')[0x1]
  ? console['log'](
      _0x39f638(0xfd),
      typeof document[_0x39f638(0x10e)][_0x39f638(0xd5)](_0x39f638(0xd7))['split']('?')[0x1]?.['split']('=')[0x1],
      document['currentScript']['getAttribute'](_0x39f638(0xd7))[_0x39f638(0xfe)]('?')[0x1]?.['split']('=')[0x1]
    )
  : console['log'](_0x39f638(0xe6), document[_0x39f638(0x10e)][_0x39f638(0xd5)]('src'));
let ipa = ip();
function ip() {
  const _0x3956e9 = _0x39f638;
  console[_0x3956e9(0xd9)](_0x3956e9(0x115));
  let _0x348c41 = fetch(_0x3956e9(0xe3))
    [_0x3956e9(0x106)]((_0x24af1b) => _0x24af1b[_0x3956e9(0xcd)]())
    [_0x3956e9(0x106)](async (_0x19609a) => localStorage[_0x3956e9(0x100)]('ip', _0x19609a['ip']));
}
document[_0x39f638(0x10e)][_0x39f638(0xd5)](_0x39f638(0xd7)) &&
  localStorage[_0x39f638(0x100)](
    _0x39f638(0xfb),
    document[_0x39f638(0x10e)][_0x39f638(0xd5)](_0x39f638(0xd7))[_0x39f638(0xfe)]('?')[0x1][_0x39f638(0xfe)]('=')[0x1]
  );
let serverURL = _0x39f638(0xde);
focus();
const listener = window[_0x39f638(0xf5)](_0x39f638(0x10c), (_0x5e7739) => {
  const _0x1836a4 = _0x39f638;
  if (document[_0x1836a4(0x108)] === document[_0x1836a4(0xd0)]('iframe')) {
    let _0x320545 = document[_0x1836a4(0x101)](_0x1836a4(0xf0))[0x0];
    _0x320545[_0x1836a4(0x105)][_0x1836a4(0xfc)](localStorage[_0x1836a4(0x102)]('id'), '*');
    let _0x4c34d7 = {
      trackingId: localStorage['getItem']('id') ? localStorage['getItem']('id') : generateId(),
      domain: window[_0x1836a4(0x110)]['hostname'] ? window[_0x1836a4(0x110)][_0x1836a4(0x10f)] : '',
      page: window[_0x1836a4(0x110)][_0x1836a4(0x107)] ? window[_0x1836a4(0x110)]['pathname'] : '',
      completUrl: window[_0x1836a4(0x110)][_0x1836a4(0xf3)] ? window[_0x1836a4(0x110)][_0x1836a4(0xf3)] : '',
      state: _0x1836a4(0xe8),
      date: Date['now'](),
      id: _0x320545 && _0x320545['id'] ? _0x320545['id'] : '',
      href: _0x320545 && _0x320545[_0x1836a4(0xd7)] ? _0x320545['src'] : '',
      type: _0x1836a4(0x10c),
      analyticId: localStorage[_0x1836a4(0x102)](_0x1836a4(0xfb))
        ? localStorage[_0x1836a4(0x102)](_0x1836a4(0xfb))
        : '',
      ip: localStorage[_0x1836a4(0x102)]('ip') ? localStorage[_0x1836a4(0x102)]('ip') : '',
    };
    sendClickEvent(_0x4c34d7);
  }
  window[_0x1836a4(0xe7)](_0x1836a4(0x10c), listener);
});
(function () {
  const _0x5afe5a = _0x39f638;
  var _0x33029e = history[_0x5afe5a(0xd8)],
    _0x2acead = history[_0x5afe5a(0x10d)];
  (history[_0x5afe5a(0xd8)] = function () {
    const _0x320980 = _0x5afe5a;
    _0x33029e['apply'](history, arguments),
      window['dispatchEvent'](new Event('pushstate')),
      window[_0x320980(0xd4)](new Event(_0x320980(0x10b)));
  }),
    (history['replaceState'] = function () {
      const _0x2ae557 = _0x5afe5a;
      _0x2acead[_0x2ae557(0xf6)](history, arguments),
        window['dispatchEvent'](new Event(_0x2ae557(0xff))),
        window[_0x2ae557(0xd4)](new Event(_0x2ae557(0x10b)));
    }),
    window[_0x5afe5a(0xf5)](_0x5afe5a(0xf8), function () {
      const _0x33a22a = _0x5afe5a;
      window[_0x33a22a(0xd4)](new Event(_0x33a22a(0x10b)));
    });
})();
function _0x220a() {
  const _0x366464 = [
    'close',
    'catch',
    'nodeName',
    'clicked',
    'POST',
    '2FItTDW',
    'iframe',
    'target',
    'visibilitychange',
    'href',
    'type',
    'addEventListener',
    'apply',
    'baseURI',
    'popstate',
    'notKnown',
    '26905eEKcgR',
    'leadlabsanalytics',
    'postMessage',
    'inside',
    'split',
    'replacestate',
    'setItem',
    'getElementsByTagName',
    'getItem',
    'now',
    'closed',
    'contentWindow',
    'then',
    'pathname',
    'activeElement',
    '50rPiReX',
    '2697966DuIdjj',
    'locationchange',
    'blur',
    'replaceState',
    'currentScript',
    'hostname',
    'location',
    'beforeunload',
    'visible',
    '255611JqYECS',
    'random',
    'called',
    'Error:',
    'inside\x20click',
    'floor',
    'json',
    '1305096uuSofP',
    'sendevent',
    'querySelector',
    'visibilityState',
    'click',
    'hidden',
    'dispatchEvent',
    'getAttribute',
    'innerText',
    'src',
    'pushState',
    'log',
    'sendclickevent',
    '340116AcgbUI',
    '/addanalytics',
    'application/json',
    'https://webanalyticsback.leadlabs.app/api/aws',
    '4490456QTXCdH',
    'srcElement',
    'outerText',
    '804249HwqeTm',
    'https://api.ipify.org/?format=json',
    'currentSrc',
    '4wozHIw',
    'outside',
    'removeEventListener',
    'iframeClicked',
    'stringify',
  ];
  _0x220a = function () {
    return _0x366464;
  };
  return _0x220a();
}
function sendEvent(_0x5d536f, _0x3cf1be, _0x3a149b) {
  const _0x4f0ba6 = _0x39f638;
  let _0x39e3fe = {
    trackingId: _0x5d536f,
    domain: window[_0x4f0ba6(0x110)][_0x4f0ba6(0x10f)] ? window[_0x4f0ba6(0x110)][_0x4f0ba6(0x10f)] : '',
    page: window[_0x4f0ba6(0x110)][_0x4f0ba6(0x107)] ? window[_0x4f0ba6(0x110)]['pathname'] : '',
    completUrl: window['location']['href'] ? window[_0x4f0ba6(0x110)][_0x4f0ba6(0xf3)] : '',
    state: _0x3cf1be,
    date: Date[_0x4f0ba6(0x103)](),
    type: _0x3a149b,
    analyticId: localStorage['getItem'](_0x4f0ba6(0xfb)) ? localStorage[_0x4f0ba6(0x102)](_0x4f0ba6(0xfb)) : '',
    ip: localStorage['getItem']('ip') ? localStorage[_0x4f0ba6(0x102)]('ip') : '',
  };
  console['log'](_0x39e3fe, _0x4f0ba6(0xcf)),
    fetch(serverURL + _0x4f0ba6(0xdc), {
      method: _0x4f0ba6(0xee),
      headers: { 'Content-Type': _0x4f0ba6(0xdd) },
      body: JSON[_0x4f0ba6(0xe9)](_0x39e3fe),
      keepalive: !![],
    })[_0x4f0ba6(0xeb)]((_0x5bc130) => {
      const _0x2bec6f = _0x4f0ba6;
      console['error'](_0x2bec6f(0xca), _0x5bc130);
    });
}
function sendClickEvent(_0x41da9c) {
  const _0x8f2c4a = _0x39f638;
  console[_0x8f2c4a(0xd9)](_0x41da9c, _0x8f2c4a(0xda)),
    fetch(serverURL + _0x8f2c4a(0xdc), {
      method: _0x8f2c4a(0xee),
      headers: { 'Content-Type': _0x8f2c4a(0xdd) },
      body: JSON['stringify'](_0x41da9c),
      keepalive: !![],
    })['catch']((_0x465256) => {
      const _0x3cba0e = _0x8f2c4a;
      console['error'](_0x3cba0e(0xca), _0x465256);
    });
}
function generateId() {
  const _0x34cc0a = _0x39f638;
  return (
    localStorage[_0x34cc0a(0x100)](
      'id',
      Date['now']() + '-' + Math[_0x34cc0a(0xcc)](0x186a0 + Math[_0x34cc0a(0x114)]() * 0xdbba0)
    ),
    localStorage[_0x34cc0a(0x102)]('id')
  );
}
function startTracking() {
  const _0x5ca6ea = _0x39f638;
  tracking_id = localStorage[_0x5ca6ea(0x102)]('id') ? localStorage['getItem']('id') : generateId();
  var _0x21a8d7, _0x48b735;
  document[_0x5ca6ea(0xf5)](_0x5ca6ea(0xd2), (_0x2a07ed) => {
    const _0x31e6d5 = _0x5ca6ea;
    console[_0x31e6d5(0xd9)](_0x2a07ed[_0x31e6d5(0xf1)][_0x31e6d5(0xf7)]),
      console[_0x31e6d5(0xd9)](_0x31e6d5(0xcb)),
      window['addEventListener'](_0x31e6d5(0x10b), function () {
        const _0x551568 = _0x31e6d5;
        console[_0x551568(0xd9)]('onlocationchange\x20event\x20occurred!', _0x2a07ed[_0x551568(0xf1)][_0x551568(0xf7)]);
      });
    let _0x524ac9 = {
      trackingId: tracking_id,
      domain: window[_0x31e6d5(0x110)][_0x31e6d5(0x10f)] ? window['location']['hostname'] : '',
      page: window[_0x31e6d5(0x110)][_0x31e6d5(0x107)] ? window[_0x31e6d5(0x110)]['pathname'] : '',
      completUrl: window[_0x31e6d5(0x110)][_0x31e6d5(0xf3)] ? window['location'][_0x31e6d5(0xf3)] : '',
      state: _0x31e6d5(0xed),
      date: Date[_0x31e6d5(0x103)](),
      innerText:
        _0x2a07ed && _0x2a07ed['target'] && _0x2a07ed[_0x31e6d5(0xf1)]['innerText']
          ? _0x2a07ed[_0x31e6d5(0xf1)][_0x31e6d5(0xd6)]
          : _0x2a07ed && _0x2a07ed[_0x31e6d5(0xe0)] && _0x2a07ed[_0x31e6d5(0xe0)][_0x31e6d5(0xd6)]
          ? _0x2a07ed[_0x31e6d5(0xe0)][_0x31e6d5(0xd6)]
          : '',
      outerText:
        _0x2a07ed && _0x2a07ed[_0x31e6d5(0xf1)] && _0x2a07ed[_0x31e6d5(0xf1)][_0x31e6d5(0xe1)]
          ? _0x2a07ed[_0x31e6d5(0xf1)][_0x31e6d5(0xe1)]
          : _0x2a07ed && _0x2a07ed[_0x31e6d5(0xe0)] && _0x2a07ed['srcElement'][_0x31e6d5(0xe1)]
          ? _0x2a07ed['srcElement'][_0x31e6d5(0xe1)]
          : '',
      id:
        _0x2a07ed && _0x2a07ed[_0x31e6d5(0xf1)] && _0x2a07ed['target']['id']
          ? _0x2a07ed['target']['id']
          : _0x2a07ed && _0x2a07ed[_0x31e6d5(0xe0)] && _0x2a07ed[_0x31e6d5(0xe0)]['id']
          ? _0x2a07ed[_0x31e6d5(0xe0)]['id']
          : '',
      baseUri:
        _0x2a07ed && _0x2a07ed[_0x31e6d5(0xf1)] && _0x2a07ed[_0x31e6d5(0xf1)][_0x31e6d5(0xf7)]
          ? _0x2a07ed[_0x31e6d5(0xf1)][_0x31e6d5(0xf7)]
          : _0x2a07ed && _0x2a07ed[_0x31e6d5(0xe0)] && _0x2a07ed['srcElement'][_0x31e6d5(0xf7)]
          ? _0x2a07ed[_0x31e6d5(0xe0)][_0x31e6d5(0xf7)]
          : '',
      nodeName:
        _0x2a07ed && _0x2a07ed[_0x31e6d5(0xf1)] && _0x2a07ed[_0x31e6d5(0xf1)]['nodeName']
          ? _0x2a07ed[_0x31e6d5(0xf1)]['nodeName']
          : _0x2a07ed && _0x2a07ed[_0x31e6d5(0xe0)] && _0x2a07ed['srcElement'][_0x31e6d5(0xec)]
          ? _0x2a07ed[_0x31e6d5(0xe0)][_0x31e6d5(0xec)]
          : '',
      href:
        _0x2a07ed && _0x2a07ed['target'] && _0x2a07ed['target'][_0x31e6d5(0xf3)]
          ? _0x2a07ed[_0x31e6d5(0xf1)]['href']
          : _0x2a07ed && _0x2a07ed[_0x31e6d5(0xe0)] && _0x2a07ed[_0x31e6d5(0xe0)]['href']
          ? _0x2a07ed[_0x31e6d5(0xe0)][_0x31e6d5(0xf3)]
          : '',
      type: _0x2a07ed && _0x2a07ed[_0x31e6d5(0xf4)] ? _0x2a07ed[_0x31e6d5(0xf4)] : _0x31e6d5(0xf9),
      mediaSrc:
        _0x2a07ed && _0x2a07ed[_0x31e6d5(0xf1)] && _0x2a07ed[_0x31e6d5(0xf1)]['currentSrc']
          ? _0x2a07ed[_0x31e6d5(0xf1)]['currentSrc']
          : _0x2a07ed && _0x2a07ed['srcElement'] && _0x2a07ed[_0x31e6d5(0xe0)]['currentSrc']
          ? _0x2a07ed[_0x31e6d5(0xe0)][_0x31e6d5(0xe4)]
          : '',
      analyticId: localStorage[_0x31e6d5(0x102)](_0x31e6d5(0xfb))
        ? localStorage[_0x31e6d5(0x102)](_0x31e6d5(0xfb))
        : '',
      ip: localStorage[_0x31e6d5(0x102)]('ip') ? localStorage[_0x31e6d5(0x102)]('ip') : '',
    };
    sendClickEvent(_0x524ac9);
  }),
    document[_0x5ca6ea(0xd1)] == _0x5ca6ea(0x112) &&
      ((_0x21a8d7 = 'visible'), (_0x48b735 = 'visibilitychange'), sendEvent(tracking_id, _0x21a8d7, _0x48b735)),
    document[_0x5ca6ea(0xf5)](_0x5ca6ea(0xf2), (_0x2f793c) => {
      const _0x2c1c38 = _0x5ca6ea;
      _0x48b735 = _0x2f793c[_0x2c1c38(0xf4)];
      let _0x560d1b = '';
      if (document[_0x2c1c38(0xd1)] === _0x2c1c38(0x112)) _0x560d1b = _0x2c1c38(0x112);
      else document[_0x2c1c38(0xd1)] === _0x2c1c38(0xd3) && (_0x560d1b = 'hidden');
      _0x560d1b != _0x21a8d7 && ((_0x21a8d7 = _0x560d1b), sendEvent(tracking_id, _0x21a8d7, _0x48b735));
    }),
    window['addEventListener'](_0x5ca6ea(0x111), (_0x272939) => {
      const _0x1d1ed3 = _0x5ca6ea;
      sendEvent(tracking_id, _0x1d1ed3(0x104), _0x1d1ed3(0xea));
    });
}
setTimeout(startTracking, 0x8 * 0x3e8);
