Уважаемые пользователи!
C 7 ноября 2020 года phpBB Group прекратила выпуск обновлений и завершила дальнейшее развитие phpBB версии 3.2.
С 1 августа 2024 года phpBB Group прекращает поддержку phpBB 3.2 на официальном сайте.
Сайт официальной русской поддержки phpBB Guru продолжит поддержку phpBB 3.2 до 31 декабря 2024 года.
С учетом этого, настоятельно рекомендуется обновить конференции до версии 3.3.

Странный файл js в потерянных вложениях

Вопросы без привязки к версии. Установлена авточистка (2 года).
Правила форума
Местная Конституция | Шаблон запроса | Документация (phpBB3) | Переход на 3.0.6 и выше | FAQ | Как задавать вопросы | Как устанавливать расширения

Ваш вопрос может быть удален без объяснения причин, если на него есть ответы по приведённым ссылкам (а вы рискуете получить предупреждение ;) ).
Аватара пользователя
southklad
phpBB 3.1.0 RC2
Сообщения: 3232
Стаж: 12 лет 3 месяца
Благодарил (а): 704 раза
Поблагодарили: 152 раза

Странный файл js в потерянных вложениях

Сообщение southklad »

Сегодня увидел в потерянных файл js интересно что это такое и для чего хотели загрузить на форум? ПРилагаю его ниже.

Код: Выделить всё

(()=>{"use strict";var t={10509:(t,e,r)=>{var n=r(69985),i=r(23691),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(i(t)+" is not a function")}},85027:(t,e,r)=>{var n=r(48999),i=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(i(t)+" is not an object")}},84328:(t,e,r)=>{var n=r(65290),i=r(27578),o=r(6310),a=function(t){return function(e,r,a){var c,l=n(e),u=o(l),s=i(a,u);if(t&&r!=r){for(;u>s;)if((c=l[s++])!=c)return!0}else for(;u>s;s++)if((t||s in l)&&l[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},5649:(t,e,r)=>{var n=r(67697),i=r(92297),o=TypeError,a=Object.getOwnPropertyDescriptor,c=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=c?function(t,e){if(i(t)&&!a(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},6648:(t,e,r)=>{var n=r(68844),i=n({}.toString),o=n("".slice);t.exports=function(t){return o(i(t),8,-1)}},8758:(t,e,r)=>{var n=r(36812),i=r(19152),o=r(82474),a=r(72560);t.exports=function(t,e,r){for(var c=i(e),l=a.f,u=o.f,s=0;s<c.length;s++){var f=c[s];n(t,f)||r&&n(r,f)||l(t,f,u(e,f))}}},75773:(t,e,r)=>{var n=r(67697),i=r(72560),o=r(75684);t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},75684:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},11880:(t,e,r)=>{var n=r(69985),i=r(72560),o=r(98702),a=r(95014);t.exports=function(t,e,r,c){c||(c={});var l=c.enumerable,u=void 0!==c.name?c.name:e;if(n(r)&&o(r,u,c),c.global)l?t[e]=r:a(e,r);else{try{c.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=r:i.f(t,e,{value:r,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},95014:(t,e,r)=>{var n=r(19037),i=Object.defineProperty;t.exports=function(t,e){try{i(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},67697:(t,e,r)=>{var n=r(3689);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},22659:t=>{var e="object"==typeof document&&document.all,r=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:r}},36420:(t,e,r)=>{var n=r(19037),i=r(48999),o=n.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},55565:t=>{var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},30071:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3615:(t,e,r)=>{var n,i,o=r(19037),a=r(30071),c=o.process,l=o.Deno,u=c&&c.versions||l&&l.version,s=u&&u.v8;s&&(i=(n=s.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),t.exports=i},72739:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(t,e,r)=>{var n=r(19037),i=r(82474).f,o=r(75773),a=r(11880),c=r(95014),l=r(8758),u=r(35266);t.exports=function(t,e){var r,s,f,d,v,p=t.target,h=t.global,m=t.stat;if(r=h?n:m?n[p]||c(p,{}):(n[p]||{}).prototype)for(s in e){if(d=e[s],f=t.dontCallGetSet?(v=i(r,s))&&v.value:r[s],!u(h?s:p+(m?".":"#")+s,t.forced)&&void 0!==f){if(typeof d==typeof f)continue;l(d,f)}(t.sham||f&&f.sham)&&o(d,"sham",!0),a(r,s,d,t)}}},3689:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},97215:(t,e,r)=>{var n=r(3689);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},22615:(t,e,r)=>{var n=r(97215),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},41236:(t,e,r)=>{var n=r(67697),i=r(36812),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,c=i(o,"name"),l=c&&"something"===function(){}.name,u=c&&(!n||n&&a(o,"name").configurable);t.exports={EXISTS:c,PROPER:l,CONFIGURABLE:u}},68844:(t,e,r)=>{var n=r(97215),i=Function.prototype,o=i.call,a=n&&i.bind.bind(o,o);t.exports=n?a:function(t){return function(){return o.apply(t,arguments)}}},76058:(t,e,r)=>{var n=r(19037),i=r(69985);t.exports=function(t,e){return arguments.length<2?(r=n[t],i(r)?r:void 0):n[t]&&n[t][e];var r}},54849:(t,e,r)=>{var n=r(10509),i=r(981);t.exports=function(t,e){var r=t[e];return i(r)?void 0:n(r)}},19037:function(t,e,r){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},36812:(t,e,r)=>{var n=r(68844),i=r(90690),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},57248:t=>{t.exports={}},68506:(t,e,r)=>{var n=r(67697),i=r(3689),o=r(36420);t.exports=!n&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},94413:(t,e,r)=>{var n=r(68844),i=r(3689),o=r(6648),a=Object,c=n("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?c(t,""):a(t)}:a},6738:(t,e,r)=>{var n=r(68844),i=r(69985),o=r(84091),a=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},618:(t,e,r)=>{var n,i,o,a=r(59834),c=r(19037),l=r(48999),u=r(75773),s=r(36812),f=r(84091),d=r(2713),v=r(57248),p="Object already initialized",h=c.TypeError,m=c.WeakMap;if(a||f.state){var y=f.state||(f.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,n=function(t,e){if(y.has(t))throw new h(p);return e.facade=t,y.set(t,e),e},i=function(t){return y.get(t)||{}},o=function(t){return y.has(t)}}else{var b=d("state");v[b]=!0,n=function(t,e){if(s(t,b))throw new h(p);return e.facade=t,u(t,b,e),e},i=function(t){return s(t,b)?t[b]:{}},o=function(t){return s(t,b)}}t.exports={set:n,get:i,has:o,enforce:function(t){return o(t)?i(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!l(e)||(r=i(e)).type!==t)throw new h("Incompatible receiver, "+t+" required");return r}}}},92297:(t,e,r)=>{var n=r(6648);t.exports=Array.isArray||function(t){return"Array"===n(t)}},69985:(t,e,r)=>{var n=r(22659),i=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},35266:(t,e,r)=>{var n=r(3689),i=r(69985),o=/#|\.prototype\./,a=function(t,e){var r=l[c(t)];return r===s||r!==u&&(i(e)?n(e):!!e)},c=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",s=a.POLYFILL="P";t.exports=a},981:t=>{t.exports=function(t){return null==t}},48999:(t,e,r)=>{var n=r(69985),i=r(22659),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===o}:function(t){return"object"==typeof t?null!==t:n(t)}},53931:t=>{t.exports=!1},30734:(t,e,r)=>{var n=r(76058),i=r(69985),o=r(23622),a=r(39525),c=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return i(e)&&o(e.prototype,c(t))}},6310:(t,e,r)=>{var n=r(43126);t.exports=function(t){return n(t.length)}},98702:(t,e,r)=>{var n=r(68844),i=r(3689),o=r(69985),a=r(36812),c=r(67697),l=r(41236).CONFIGURABLE,u=r(6738),s=r(618),f=s.enforce,d=s.get,v=String,p=Object.defineProperty,h=n("".slice),m=n("".replace),y=n([].join),b=c&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),g=String(String).split("String"),w=t.exports=function(t,e,r){"Symbol("===h(v(e),0,7)&&(e="["+m(v(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(c?p(t,"name",{value:e,configurable:!0}):t.name=e),b&&r&&a(r,"arity")&&t.length!==r.arity&&p(t,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?c&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=f(t);return a(n,"source")||(n.source=y(g,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return o(this)&&d(this).source||u(this)}),"toString")},58828:t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},72560:(t,e,r)=>{var n=r(67697),i=r(68506),o=r(15648),a=r(85027),c=r(18360),l=TypeError,u=Object.defineProperty,s=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",v="writable";e.f=n?o?function(t,e,r){if(a(t),e=c(e),a(r),"function"==typeof t&&"prototype"===e&&"value"in r&&v in r&&!r[v]){var n=s(t,e);n&&n[v]&&(t[e]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:f in r?r[f]:n[f],writable:!1})}return u(t,e,r)}:u:function(t,e,r){if(a(t),e=c(e),a(r),i)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},82474:(t,e,r)=>{var n=r(67697),i=r(22615),o=r(49556),a=r(75684),c=r(65290),l=r(18360),u=r(36812),s=r(68506),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=c(t),e=l(e),s)try{return f(t,e)}catch(t){}if(u(t,e))return a(!i(o.f,t,e),t[e])}},72741:(t,e,r)=>{var n=r(54948),i=r(72739).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},7518:(t,e)=>{e.f=Object.getOwnPropertySymbols},23622:(t,e,r)=>{var n=r(68844);t.exports=n({}.isPrototypeOf)},54948:(t,e,r)=>{var n=r(68844),i=r(36812),o=r(65290),a=r(84328).indexOf,c=r(57248),l=n([].push);t.exports=function(t,e){var r,n=o(t),u=0,s=[];for(r in n)!i(c,r)&&i(n,r)&&l(s,r);for(;e.length>u;)i(n,r=e[u++])&&(~a(s,r)||l(s,r));return s}},49556:(t,e)=>{var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);e.f=i?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},35899:(t,e,r)=>{var n=r(22615),i=r(69985),o=r(48999),a=TypeError;t.exports=function(t,e){var r,c;if("string"===e&&i(r=t.toString)&&!o(c=n(r,t)))return c;if(i(r=t.valueOf)&&!o(c=n(r,t)))return c;if("string"!==e&&i(r=t.toString)&&!o(c=n(r,t)))return c;throw new a("Can't convert object to primitive value")}},19152:(t,e,r)=>{var n=r(76058),i=r(68844),o=r(72741),a=r(7518),c=r(85027),l=i([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(c(t)),r=a.f;return r?l(e,r(t)):e}},74684:(t,e,r)=>{var n=r(981),i=TypeError;t.exports=function(t){if(n(t))throw new i("Can't call method on "+t);return t}},2713:(t,e,r)=>{var n=r(83430),i=r(14630),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},84091:(t,e,r)=>{var n=r(19037),i=r(95014),o="__core-js_shared__",a=n[o]||i(o,{});t.exports=a},83430:(t,e,r)=>{var n=r(53931),i=r(84091);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.2",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"})},50146:(t,e,r)=>{var n=r(3615),i=r(3689),o=r(19037).String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},27578:(t,e,r)=>{var n=r(68700),i=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):o(r,e)}},65290:(t,e,r)=>{var n=r(94413),i=r(74684);t.exports=function(t){return n(i(t))}},68700:(t,e,r)=>{var n=r(58828);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},43126:(t,e,r)=>{var n=r(68700),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},90690:(t,e,r)=>{var n=r(74684),i=Object;t.exports=function(t){return i(n(t))}},88732:(t,e,r)=>{var n=r(22615),i=r(48999),o=r(30734),a=r(54849),c=r(35899),l=r(44201),u=TypeError,s=l("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var r,l=a(t,s);if(l){if(void 0===e&&(e="default"),r=n(l,t,e),!i(r)||o(r))return r;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},18360:(t,e,r)=>{var n=r(88732),i=r(30734);t.exports=function(t){var e=n(t,"string");return i(e)?e:e+""}},23691:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},14630:(t,e,r)=>{var n=r(68844),i=0,o=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},39525:(t,e,r)=>{var n=r(50146);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},15648:(t,e,r)=>{var n=r(67697),i=r(3689);t.exports=n&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},59834:(t,e,r)=>{var n=r(19037),i=r(69985),o=n.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},44201:(t,e,r)=>{var n=r(19037),i=r(83430),o=r(36812),a=r(14630),c=r(50146),l=r(39525),u=n.Symbol,s=i("wks"),f=l?u.for||u:u&&u.withoutSetter||a;t.exports=function(t){return o(s,t)||(s[t]=c&&o(u,t)?u[t]:f("Symbol."+t)),s[t]}},70560:(t,e,r)=>{var n=r(79989),i=r(90690),o=r(6310),a=r(5649),c=r(55565);n({target:"Array",proto:!0,arity:1,forced:r(3689)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=i(this),r=o(e),n=arguments.length;c(r+n);for(var l=0;l<n;l++)e[r]=arguments[l],r++;return a(e,r),r}})}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,r),o.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),(()=>{r(70560);var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","`":"&#x60;"},e=function(t){var e=function(e){return t[e]},r="(?:"+Object.keys(t).join("|")+")",n=RegExp(r),i=RegExp(r,"g");return function(t){return t=null==t?"":String(t),n.test(t)?t.replace(i,e):t}},n=(e(t),e(function(t){for(var e={},r=Object.keys(t),n=0,i=r.length;n<i;n++)e[t[r[n]]]=r[n];return e}(t)),function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}),i=["localhost","webads.rbdev.mail.ru"],o=function(t,e){if(t){var r=e||document.body;"createPixel ".concat(t);var n=document.createElement("img");n.src=t,n.style.display="none",r.appendChild(n)}},a=function(t,e,r){var n;void 0===r&&(r=!0),"function"==typeof window.CustomEvent?n=new CustomEvent(e,{bubbles:r}):(n=document.createEvent("CustomEvent")).initCustomEvent(e,r,!1,null),t.dispatchEvent(n)},c=function(t,e){var r=e.id,n=e.className,i=e.href;if("link"===t)return l(i);var o=document.createElement(t);return r&&(o.id=r),n&&o.classList.add(n),o},l=function(t){var e=document.createElement("link");return e.href=t,e.rel="stylesheet",e.setAttribute("crossorigin","anonymous"),e},u=function(t,e,r,n){void 0===n&&(n=!1);var i=document.createElement("script");return r&&Object.keys(r).forEach((function(t){return i.setAttribute(t,r[t])})),t&&(n&&!/https?/.test(t)?i.src="https:"+t:i.src=t,i.setAttribute("crossorigin","anonymous")),e&&"function"==typeof e&&(i.onload=e),i},s=function(t,e,r){void 0===r&&(r=!1);for(var i=[],o=function(){i.length&&t.body.appendChild(i.pop())},a=function(a){var c=e[a],l=void 0,s=n("string"==typeof c?[c]:c,2),f=s[0],d=s[1];if(t.querySelector('script[src="'.concat(f,'"]')))return null==d||d(),"continue";if("string"==typeof c)l=u(c,o,{},r);else{var v=n(c,2),p=v[0],h=v[1];l=u(p,(function(){o(),h()}),{},r)}i.push(l)},c=e.length-1;c>=0;c--)a(c);o()},f=function(t){var e=document.createElement("a");return e.href=t,e},d=function(t,e){var r=c("link",{href:e});t.querySelector('link[href="'.concat(e,'"]'))||t.head.appendChild(r)},v="trg-visibility-counted",p=function(){return p=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},p.apply(this,arguments)},h=function(t,e){return null==t?void 0:t.forEach((function(t){return o(t,e||document.body)}))},m=function(t){return t.hasOwnProperty(v)&&Boolean(t[v])},y=function(t){return t.mozVisibilityState?"mozvisibilitychange":t.webkitVisibilityState?"webkitvisibilitychange":t.visibilityState?"visibilitychange":""},b=function(t){return t[function(t){return"hidden"in t?"hidden":"webkitHidden"in t?"webkitHidden":"mozHidden"in t?"mozHidden":""}(t)]},g=function(t){return(t.right-t.left)*(t.bottom-t.top)},w=function(t,e){return{left:t.left+e.left,right:t.right+e.left,top:t.top+e.top,bottom:t.bottom+e.top}},x=function(t){return Boolean(t)&&!isNaN(t)?t:null},E=function(t,e){var r=t.document,n="width"===e?"clientWidth":"clientHeight",i=t["width"===e?"innerWidth":"innerHeight"],o=r.body[n],a=r.documentElement[n],c=1/0;return c=x(o)||c,c=x(a)||c,Boolean(i)&&!isNaN(i)&&(c=Math.min(c,i)),c},O=function(t,e){var r,n={width:E(r=e,"width"),height:E(r,"height")};return{left:Math.max(0,t.left),right:Math.min(n.width,t.right),top:Math.max(0,t.top),bottom:Math.min(n.height,t.bottom)}},S=function(t){return Boolean(t.hasOwnProperty("IntersectionObserver"))},T=function(t,e){return!S(t)&&"XD_FRAME"!==function(t,e){try{var r=e?t.parent:t;if(r===t.top)return"ON_PAGE";for(var n=r;n!==n.parent;){if(n.document.domain!==n.parent.document.domain)return"XD_FRAME";n=n.parent}return"S_FRAME"}catch(t){}return"XD_FRAME"}(t,e)},j=function(t,e){var r=e,n="",i=function(t){var e=t||window;try{for(;e.parent!==e&&e.document.domain===e.parent.document.domain;)e=e.parent}catch(t){}return e}(e);if(t)try{return i.document.referrer||""}catch(t){return""}try{n=r.top.location.href}catch(t){if(i&&i.parent===r.top&&(n=i.document.referrer),!n){var o=r.location.ancestorOrigins;(null==o?void 0:o.length)&&(n=o[o.length-1])}}return n||""},_=function(t){var e="";try{e=f(t).hostname}catch(t){}return e},A=function(t){return t.replace(/^(www[0-9]?\.)?/,"")},B=function(t,e,r){var n=null,i=_(r),o=j(!0,t),a="";try{var c=f(o).search.replace("?","").split("&").filter((function(t){return t.includes("referrer=")}))[0];c&&(a=c.replace("referrer=",""))}catch(t){}var l,u,s=j(!1,t),d=a||s&&_(s)||"";d&&((u=d,!(l=i)||!u||(l=A(l),u=A(u),new RegExp("^"+u.replace(/^(\*\.?)/,"([^/]*.)?").replace(/\./g,"\\.")+"$").test(l)))||((new Image).src=e,n=100));return n},C=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function I(t,e,r){var n,i,c=this,l=!1,u=!0,s={},f=r,d=r?e.parent:e,x=r?function(t,e){try{return e.parent.document||t}catch(e){return t}}(t,e):t,E=function(t){var r,i;try{for(var o=C(Object.keys(s)),a=o.next();!a.done;a=o.next()){var c=a.value,l=s[c];if(!l||x.getElementById(c)){var u=L(l.bannerWrapContainer),d=l.timer,v=l.percent;if(l&&u>=v&&k()&&!d)R(c,l.duration);else if(l&&u<v){if(!d)continue;clearTimeout(l.timer),delete l.timer}else if(l&&!k()){if(!d)continue;clearTimeout(l.timer),delete l.timer,clearTimeout(n),t=!1}else l||W(c)}else W(c)}}catch(t){r={error:t}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}if(t){clearTimeout(n);var p=T(e,f)?300:1e4;n=setTimeout((function(){return E(!0)}),p)}},j=function(){u=!0,E(!0)},_=function(){return u=!1},A=function(){F(),P()},I=function(){b(t)?_():j()},k=function(){var t=y(x);return b(x)?u=!b(x):t||"function"!=typeof x.hasFocus||(u=x.hasFocus()),u},L=function(t){var r=t.id,n=s[r];return r&&n&&n.useObserver?n.visibilityArea||0:function(t,e){try{for(var r=t.getBoundingClientRect(),n=g(r),i=e.parent,o=i.parent;i!==o;){var a=i.frameElement.getBoundingClientRect();r=w(r,a);var c=Math.max(a.left,r.left),l=Math.min(a.right,r.right),u=Math.max(a.top,r.top),s=Math.min(a.bottom,r.bottom);r.left=c,r.right=l<c?c:l,r.top=u,r.bottom=s<u?u:s,i=i.parent}r=O(r,o);var f=g(r);return p(p({},r),{percent:f/n*100})}catch(t){return{left:0,right:0,top:0,bottom:0,percent:0}}}(t,e).percent},R=function(t,e){s[t].timer=setTimeout((function(){try{M(t)}catch(t){console.warn(t)}}),e)},M=function(e){if(x.getElementById(e)){if(s[e]){var r=s[e].bannerWrapContainer,n=s[e].percent;if(!k()||L(r)<n)W(e,!0);else{for(var i=s[e].px.length-1;i>=0;i--)o(s[e].px[i],f?t.body:r);a(d,"mrg-viewable"),r[v]=!0;var c=s[e].cb;if(c&&"function"==typeof c)try{c()}catch(t){console.warn(t)}W(e),Object.keys(s).length||P()}}}else W(e)},P=function(){var e=y(t);d.removeEventListener("unload",A,!1),d.removeEventListener("resize",E.bind(c),!1),d.removeEventListener("scroll",E.bind(c),!1),e&&x.removeEventListener(e,I,!1),d.removeEventListener("focus",j,!1),d.removeEventListener("blur",_,!1),i&&(i.disconnect(),i=null),clearTimeout(n),l=!1},W=function(t,e,r){var o,a;if(t&&s[t]){if(clearTimeout(s[t].timer),s[t].timer=null,!e){var c=s[t].bannerWrapContainer;s[t].useObserver&&i&&i.unobserve(c),r||m(c)||(h(s[t].px_nv,c),c[v]=!0),s[t].bannerWrapContainer=null,delete s[t]}}else{clearTimeout(n),n=null;try{for(var l=C(Object.keys(s)),u=l.next();!u.done;u=l.next()){var f=u.value;s[f].timer&&W(f,!0)}}catch(t){o={error:t}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}}},F=function(){var t,e;try{for(var r=C(Object.keys(s)),n=r.next();!n.done;n=r.next()){var i=n.value;W(i)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},H=function(t,r,n){var o=f?r.frameElement:n.elem;if(o){var a=S(r);if(!a&&!T(r,f))return h(n.pixels_undetermined,o),void(n.elem[v]=!0);h(n.pixels_viewable,o),n.pixels_viewable=[],o.id||(o.id="".concat("trg").concat((new Date).getTime()).concat(Math.round(1e6*Math.random())));var u=o.id;s[u]||(s[u]={bannerWrapContainer:o,bannerDomEl:n.elem,px:n.pixels,px_un:n.pixels_undetermined,px_nv:n.pixels_nonviewable,cb:n.callback,useObserver:a,percent:n.percent||50,duration:1e3*(n.duration||1)}),function(){if(!l){T(e,f)&&(d.addEventListener("resize",E.bind(c),!1),d.addEventListener("scroll",E.bind(c),!1)),S(e)&&(i=new IntersectionObserver((function(t){t.forEach((function(t){var e=t.target.id;e&&s[e]&&(s[e].visibilityArea=Math.round(100*t.intersectionRatio))})),E()}),{threshold:[.1,.2,.3,.4,.5,.6,.7,.8,.9,1]}));var t=y(x);t?x.addEventListener(t,I,!1):(d.addEventListener("blur",_,!1),d.addEventListener("focus",j,!1)),d.addEventListener("unload",A,!1),l=!0}}(),a&&i&&i.observe(o),E(!0)}},D=function(t,e,r){if("[object Array]"===Object.prototype.toString.call(r)){!function(t,e){if(t.length)for(var r=t.length-1;r>=0;r--){var n=t[r].elem.id;n&&e[n]&&W(n,!1,!0)}}(r,s);for(var n=r.length-1;n>=0;n--)m(r[n].elem)||H(0,e,r[n])}};return{inspect:function(t){return D(0,e,t)},getAdsContainers:function(r){return function(t,e,r){var n,i,o,a="trg-visibility-check",c=a+"-counter",l=a+"-callback",u="data-counter",s=u+"-un",f=u+"-nv",d=u+"-vb",v=(null==r?void 0:r.isIframed)||!1,p=(null==r?void 0:r.viewableElement)||null,h=(null==r?void 0:r.viewability)||null,m=(n="badReferer",i=null==r?void 0:r.statistics,(null===(o=i.find((function(t){return t.type===n})))||void 0===o?void 0:o.url)||""),y=(null==h?void 0:h.referer)||"",b=(null==h?void 0:h.isHbid)&&(null==h?void 0:h.percent)&&B(e,m,y)||(null==h?void 0:h.percent)||50,g=(null==h?void 0:h.duration)||1;(null==r?void 0:r.timeFix)&&(g-=r.timeFix/1e3);var w=[];if(!v&&!p)return null;for(var x=v?Array.from(t.getElementsByClassName(a)||[]):[p],E=x.length-1;E>=0;E--){var O=x[E],S=O.querySelectorAll("span.".concat(c));w[E]={elem:O,pixels:[],pixels_undetermined:[],pixels_nonviewable:[],pixels_viewable:[],isObserver:O.hasAttribute("data-observer"),percent:b,duration:g};var T=w[E],j=O.getAttribute(u);j&&T.pixels.push(j);for(var _=S.length-1;_>=0;_--){var A=S[_];(v?A.parentNode:A.parentNode.parentNode)===T.elem&&((j=A.getAttribute(u))&&T.pixels.push(j),(j=A.getAttribute(s))&&T.pixels_undetermined.push(j),(j=A.getAttribute(f))&&T.pixels_nonviewable.push(j),(j=A.getAttribute(d))&&T.pixels_viewable.push(j))}var C=O.querySelectorAll("span.".concat(l))[0]||null;if(C){var I=C.getAttribute("data-callback"),k=e.parent.RB_CALLBACKS;I&&k&&k[I]&&(T.callback=k[I])}T.pixels.length||w.splice(E,1)}return w}(t,e,r)}}}var k=function(t){var e,r,n,o=t.code,a=t.message,c=t.data;return function(t){var e=t.code,r=t.message,n=t.template,o=t.pattern,a=t.id,c=t.pad,l=new Image,u=["err=".concat(e),"id=".concat(a),"br=".concat(window.navigator.userAgent),"msg=".concat(encodeURI(r))];o&&u.push("ptrn=".concat(o)),n&&u.push("tpl=".concat(n)),c&&u.push("p=".concat(c)),-1===i.indexOf(window.top.location.hostname)?l.src="".concat("https://ad.mail.ru/web/log/","?").concat(u.join("&")):console.log("Log error: ".concat(u.join("&")))}({code:o,message:a,id:c.banner.id,pad:(null===(e=c.libOptions)||void 0===e?void 0:e.pad)||"",pattern:(null===(r=c.libOptions)||void 0===r?void 0:r.pattern)||"",template:(null===(n=c.libOptions)||void 0===n?void 0:n.template)||""})},L=function(t,e){var r,n=t.creativeType;if(e?!(null===(r=e.contentWindow)||void 0===r?void 0:r.TRGBView):!(null===window||void 0===window?void 0:window.TRGBView))return k({code:"trg_load",message:"cannot load trg",data:t}),console.warn("Не удалось загрузить библиотеку TRG"),{creativeLib:void 0,isError:!0};var i=e?e.contentWindow.TRGBView:window.TRGBView;if(!i)return k({code:"lib_load",message:"cannot load lib",data:t}),console.warn("Не удалось загрузить библиотеку рендера TRG"),{creativeLib:void 0,isError:!0};var o=i[n];return"function"!=typeof(null==o?void 0:o.init)?(k({code:"lib_init",message:"cannot init lib",data:t}),console.warn("Не удалось инициализировать рендер креатива TRG"),{creativeLib:void 0,isError:!0}):{creativeLib:o,isError:!1}};function R(t,e,r,n){var i=t.querySelector('link[rel="stylesheet"]'),o=Array.from(i.sheet.cssRules).filter((function(t){return-1!==t.cssText.indexOf(e)})).map((function(t){return t.cssText})),a=function(t){var e=document.createElement("style");return e.appendChild(document.createTextNode("")),t.appendChild(e),e.sheet}(n?r.parentNode:r);o.forEach((function(t,e){var r=t;a.insertRule(r,e)})),r.classList.add(e)}function M(t){var e=t.frame,r=t.inlineElem,n=t.innerElement,i=t.maxWidth;e.style.visibility="hidden";var o=r.style.cssText;r.style.cssText=o+";width:100%!important;";var a=r.offsetWidth;e.width="".concat(a,"px");var c=n.offsetWidth,l=a>c?c:a,u=parseInt(i);i&&Number(u)&&l>u&&(l=u),r.style.cssText=o,e.width="".concat(l,"px"),e.style.visibility="visible"}var P=function(t,e,r,n){var i="iframe"===e.nodeName.toLowerCase(),o=I(t,(null==e?void 0:e.contentWindow)||window,i);o.inspect(o.getAdsContainers({viewability:r.viewability||{},statistics:r.statistics,timeFix:n,isIframed:i,viewableElement:i?null:e}))},W=function(t){var e=t.data,r=t.frame,n=t.rootElem,i=e.placeholderID,o=e.libcss,a=e.libjs,l=e.libOptions,u=r.contentWindow?r.contentWindow.document:r.contentDocument,f=c("div",{id:i}),v=function(){var t=document.createElement("meta");return t.setAttribute("charset","UTF-8"),t}();u.head.appendChild(v),u.body.appendChild(f),d(u,o);s(u,["https://r.mradx.net/img/83/F6B8B1.js",[a,function(){var t=L(e,r),o=t.creativeLib;if(!t.isError){var a;o.isFullscreenMode&&(a=r)&&(a.style.position="fixed",a.style.width="100%",a.style.height="100%",a.style.left="0",a.style.top="0",a.style.zIndex="2147483640",a.style.transform="translate3d(0, 0, 0)"),o.fullWidth&&!e.width&&(r.width="100%"),o.fullHeight&&function(t){t&&(t.style.height="100%",t.style.minHeight="600px",t.style.maxHeight="1500px",t.style.right="0",t.style.top="0",t.style.position="absolute")}(r),o.parentHeight&&(r.style.minHeight="".concat(n.clientHeight,"px")),o.parentWidth&&(r.style.minWidth="".concat(n.clientWidth,"px"));var c=o.frameCustomSettings||{},s=c.className,f=c.closeButton,d=c.closeButtonName;if(f&&d){var v=document.createElement("div");v.classList.add(d),n.appendChild(v),v.addEventListener("click",(function(){return n.parentNode.removeChild(n)}),!1)}try{o.init(e)}catch(t){return k({code:"lib_render",message:"cannot render lib: ".concat(t),data:e}),void console.warn("Не удалось отрендерить креатив: ",t)}r.addEventListener("mrg-render-init",(function(){var t;if(o.isFullscreenMode||e.height&&!o.fullWidth||!e.height&&o.fullHeight||(null==l?void 0:l.stickToBody))P(u,r,e);else if(o.parentHeight)r.style.minHeight="".concat(u.getElementById(i).offsetHeight,"px"),P(u,r,e,500),setInterval((function(){r.style.minHeight="".concat(u.getElementById(i).offsetHeight,"px")}),500);else{var a=!1,c=(null===(t=e.pad.styles)||void 0===t?void 0:t.block__width)||null,f="100%"===c||"auto"===c;if(o.widthByContent&&f){a=!0,r.style.visibility="hidden";var v=u.querySelector("#".concat(i," > [data-trg-id]"));r.width="".concat(v.offsetWidth,"px");var p=setInterval((function(){parseInt(r.width)<=v.offsetWidth?r.width="".concat(parseInt(r.width)+1,"px"):(clearInterval(p),r.width="".concat(parseInt(r.width)-1,"px"),r.style.visibility="visible",P(u,r,e))}),0)}else if(o.stretchToParentInlineBlock){var h=c&&!f?c:null;a=!0;var m=function(t,e){for(var r=t,n=function(){var t=getComputedStyle(r),n=!0;if(Object.keys(e).forEach((function(r){t.getPropertyValue(r)!==e[r]&&(n=!1)})),n)return{value:r};r=r.parentElement};r;){var i=n();if("object"==typeof i)return i.value}return null}(n,{display:"inline-block"});if(m){var y=u.querySelector("#".concat(i," > [data-trg-id]"));setTimeout((function(){M({frame:r,inlineElem:m,innerElement:y,maxWidth:h}),P(u,r,e)}),100),window.addEventListener("resize",(function(){M({frame:r,inlineElem:m,innerElement:y,maxWidth:h})}))}else r.style.visibility="visible",P(u,r,e)}r.height="".concat(u.getElementById(i).offsetHeight,"px"),setInterval((function(){r.height="".concat(u.getElementById(i).offsetHeight,"px")}),500),a||setTimeout((function(){P(u,r,e,500)}),500)}if(s&&R(u,s,r,!0),d){var b=n.querySelector(".".concat(d));b&&R(u,d,b,!0)}}))}}]],null==l?void 0:l.forSDK)},F=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function H(t){var e=document.createElement("iframe");return e.scrolling="no",e.marginWidth="0",e.marginHeight="0",e.frameBorder="0",e.src="about:blank",e.id="trg-adfr-".concat(t,"-").concat(Math.round(1e5*Math.random())),e.style.display="block",e.style.transform="translate3d(0, 0, 0)",e.className="mrg-trgb-iframe-check",e}var D=window.TRGBViewCore||{};D.globInit=function(t){var e,r,n,i,o;Array.isArray(t)||(t=[t]);var c=t.filter((function(t){var e;return!(null===(e=t.libOptions)||void 0===e?void 0:e.isFrame)})),l=t.filter((function(t){var e;return null===(e=t.libOptions)||void 0===e?void 0:e.isFrame})),u=function(t){window.TRGBView_libs_queue||(window.TRGBView_libs_queue={});var e=t.placeholderID,r=t.libcss,n=t.libjs,i=document.getElementById(e);if(!i)return{value:void 0};d(document,r);var a=function(){var e=L(t),r=e.creativeLib;if(e.isError)console.log("check for lib errors did not pass");else{i.setAttribute("data-rendertype","native");try{r.init(t);var n=i.children.length&&i.children[0];n&&t.width&&(n.style.width="".concat(t.width,"px")),n&&t.height&&(n.style.height="".concat(t.height,"px"))}catch(e){return k({code:"lib_render",message:"cannot render lib: ".concat(e),data:t}),void console.warn("Не удалось отрендерить креатив: ",e)}i.addEventListener("mrg-render-init",(function(){setTimeout((function(){P(document,i,t)}),100)}))}};if(window.TRGBView_libs_queue[n])window.TRGBView_libs_queue[n].push(a);else{window.TRGBView_libs_queue[n]=[a];s(document,["https://r.mradx.net/img/83/F6B8B1.js",[n,function(){var t,e;if(window.TRGBView_libs_queue[n])try{for(var r=(t=void 0,F(window.TRGBView_libs_queue[n])),i=r.next();!i.done;i=r.next()){(0,i.value)()}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}window.TRGBView_libs_queue[n]=void 0}]],null===(o=null==t?void 0:t.libOptions)||void 0===o?void 0:o.forSDK)}};try{for(var f=F(c),v=f.next();!v.done;v=f.next()){var p=u(v.value);if("object"==typeof p)return p.value}}catch(t){e={error:t}}finally{try{v&&!v.done&&(r=f.return)&&r.call(f)}finally{if(e)throw e.error}}var h=function(t){var e=t.placeholderID,r=t.libOptions,n=t.banner.id,i=H(e),o=document.getElementById(e);i.width=t.width?"".concat(t.width,"px"):"100%",i.height=t.height?"".concat(t.height,"px"):"100%",i.style.display="block",i.setAttribute("data-exclude-id",n.toString()),i.onload=function(){W({data:t,frame:i,rootElem:o})},(null==r?void 0:r.stickToBody)&&document.body.appendChild(o),o.appendChild(i)};try{for(var m=F(l),y=m.next();!y.done;y=m.next()){h(y.value)}}catch(t){n={error:t}}finally{try{y&&!y.done&&(i=m.return)&&i.call(m)}finally{if(n)throw n.error}}a(window,"mrg-render")},window.TRGBViewCore=D})()})();
Изображение
Аватара пользователя
KEMnEP
phpBB 2.0.17
Сообщения: 1123
Стаж: 9 лет 1 месяц
Благодарил (а): 42 раза
Поблагодарили: 282 раза

Re: Странный файл js в потерянных вложениях

Сообщение KEMnEP »

southklad, код обфусцирован, поэтому труден для чтения, единственное там как то завязан плагин r.mradx.net (Плагин расширение для браузера mradx Mail Ru ADs eXchange) Либо их рекламная сеть. В любом случае ушки mail.ru торчат :D

Вернуться в «phpBB-пространство»