Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(d){d=(this..

Decoded Output download

<?  window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(d){d=(this.document||this.ownerDocument).querySelectorAll(d);var e=this,g;do for(g=d.length;0<=--g&&d.item(g)!==e;);while(0>g&&(e=e.parentElement));return e}); 
window.Element&&!Element.prototype.matches&&(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(d){d=(this.document||this.ownerDocument).querySelectorAll(d);for(var e=d.length;0<=--e&&d.item(e)!==this;);return-1<e}); 
Object.assign||(Object.assign=function(d,e){if(null===d)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(d),l=1;l<arguments.length;l++){var m=arguments[l];if(null!==m)for(var n in m)Object.prototype.hasOwnProperty.call(m,n)&&(g[n]=m[n])}return g}); 
(function(d){d.forEach(function(d){d.hasOwnProperty("remove")||Object.defineProperty(d,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})})})([Element.prototype,CharacterData.prototype,DocumentType.prototype]); 
(function(){function d(a){a=a.dataset;var d=[],k="image";k=k.charAt(0).toUpperCase()+k.slice(1);k=["is","hook"+k];for(var h in a)if(a.hasOwnProperty(h)){var e=a[h];0===h.indexOf("cmp")&&(h=h.slice(3),h=h.charAt(0).toLowerCase()+h.substring(1),-1===k.indexOf(h)&&(d[h]=e))}return d}function e(a){function d(c){c.element.removeAttribute("data-cmp-is");t(c.options);u(c.element);if(c.options.src&&c.options.hasOwnProperty("dmimage")&&"SmartCrop:Auto"===c.options.smartcroprendition){var f=new XMLHttpRequest; 
c=decodeURIComponent(c.options.src).split("{.width}")[0]+"?req=set,json";f.open("GET.html",c,!1);f.onload=function(){if(200<=f.status&&400>f.status){var b=new RegExp(/^{[\s\S]*}$/gmi),c=(new RegExp(/^(?:\/\*jsonp\*\/)?\s*([^()]+)\(([\s\S]+),\s*"[0-9]*"\);?$/gmi)).exec(f.responseText),a;c&&(c=c[2],b.test(c)&&(a=JSON.parse(c)));if(a&&a.set.relation&&0<a.set.relation.length)for(b=0;b<a.set.relation.length;b++)p[parseInt(a.set.relation[b].userdata.SmartCropWidth)]=":"+a.set.relation[b].userdata.SmartCropDef}}; 
f.send()}b._elements.noscript&&(b._elements.container=b._elements.link?b._elements.link:b._elements.self,g(),b._properties.lazy&&e(),b._elements.map&&b._elements.image.addEventListener("load",v),window.addEventListener("resize",w),"focus click load transitionend animationend scroll".split(" ").forEach(function(c){document.addEventListener(c,b.update)}),b._elements.image.addEventListener("cmp-image-redraw",b.update),b.update())}function k(){var c=b._properties.widths&&0<b._properties.widths.length|| 
0<Object.keys(p).length;if(0<Object.keys(p).length){var f=h(Object.keys(p));f=p[f]}else f=c?(b._properties.dmimage?"":".")+h(b._properties.widths):"";f=b._properties.src.replace("{.width}",f);var a=b._elements.image.getAttribute("src");if(f!==a)if(null===a||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"===a)b._elements.image.setAttribute("src",f);else{var d=b._properties.src.split("{.width}"),e=a.startsWith(d[0]);e&&1<d.length&&(e=a.endsWith(d[d.length-1]));e&&(b._elements.image.setAttribute("src", 
f),c||window.removeEventListener("scroll",b.update))}b._lazyLoaderShowing&&b._elements.image.addEventListener("load",q)}function h(c){for(var f=b._elements.self,a=f.clientWidth;0===a&&f.parentNode;)f=f.parentNode,a=f.clientWidth;f=a*x;a=c.length;for(var d=0;d<a-1&&c[d]<f;)d++;return c[d].toString()}function e(){var c=b._elements.image.getAttribute("width"),a=b._elements.image.getAttribute("height");if(c&&a){var d=m.style;d["padding-bottom"]=a/c*100+"%";for(var e in d)d.hasOwnProperty(e)&&(b._elements.image.style[e]= 
d[e])}b._elements.image.setAttribute("src","data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");b._elements.image.classList.add(m.cssClass);b._lazyLoaderShowing=!0}function g(){var c=b._elements.noscript.textContent.trim();c=c.replace(/&(amp;)*lt;/g,"<");c=c.replace(/&(amp;)*gt;/g,">");c=(new DOMParser).parseFromString(c,"text/html");var a=c.querySelector(l.image);a.removeAttribute("src");b._elements.container.insertBefore(a,b._elements.noscript);(c=c.querySelector(l.map))&& 
b._elements.container.insertBefore(c,b._elements.noscript);b._elements.noscript.parentNode.removeChild(b._elements.noscript);b._elements.container.matches(l.image)?b._elements.image=b._elements.container:b._elements.image=b._elements.container.querySelector(l.image);b._elements.map=b._elements.container.querySelector(l.map);b._elements.areas=b._elements.container.querySelectorAll(l.area)}function q(){b._elements.image.classList.remove(m.cssClass);for(var c in m.style)m.style.hasOwnProperty(c)&&(b._elements.image.style[c]= 
"");b._elements.image.removeEventListener("load",q);b._lazyLoaderShowing=!1}function r(){if(b._elements.areas&&0<b._elements.areas.length)for(var c=0;c<b._elements.areas.length;c++){var a=b._elements.image.width,d=b._elements.image.height;if(a&&d){var e=b._elements.areas[c].dataset.cmpRelcoords;if(e){e=e.split(",");for(var h=Array(e.length),k=0;k<h.length;k++)h[k]=0===k%2?parseInt(e[k]*a):parseInt(e[k]*d);b._elements.areas[c].coords=h}}}}function u(c){b._elements={};b._elements.self=c;c=b._elements.self.querySelectorAll("[data-cmp-hook-image]"); 
for(var a=0;a<c.length;a++){var d=c[a],e="image";e=e.charAt(0).toUpperCase()+e.slice(1);b._elements[d.dataset["cmpHook"+e]]=d}}function t(a){b._properties={};for(var c in n)if(n.hasOwnProperty(c)){var d=n[c];b._properties[c]=a&&null!=a[c]?d&&"function"===typeof d.transform?d.transform(a[c]):a[c]:n[c]["default"]}}function w(){b.update();r()}function v(){r()}var b=this,p={};b.update=function(){if(b._properties.lazy){if(null===b._elements.container.offsetParent)var a=!1;else{a=window.pageYOffset;var d= 
a+document.documentElement.clientHeight,e=b._elements.container.getBoundingClientRect().top+a;a=e+b._elements.container.clientHeight>=a-b._properties.lazythreshold&&e<=d+b._properties.lazythreshold}a&&k()}else k()};a&&a.element&&d(a)}function g(){for(var a=document.querySelectorAll(l.self),g=0;g<a.length;g++)new e({element:a[g],options:d(a[g])});a=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;g=document.querySelector("body");(new a(function(a){a.forEach(function(a){a= 
[].slice.call(a.addedNodes);0<a.length&&a.forEach(function(a){a.querySelectorAll&&[].slice.call(a.querySelectorAll(l.self)).forEach(function(a){new e({element:a,options:d(a)})})})})})).observe(g,{subtree:!0,childList:!0,characterData:!0})}var l={self:'[data-cmp-is="image"]',image:'[data-cmp-hook-image="image"]',map:'[data-cmp-hook-image="map"]',area:'[data-cmp-hook-image="area"]'},m={cssClass:"cmp-image__image--is-loading",style:{height:0,"padding-bottom":""}},n={widths:{"default":[], 
transform:function(a){var d=[];a.split(",").forEach(function(a){a=parseFloat(a);isNaN(a)||d.push(a)});return d}},lazy:{"default":!1,transform:function(a){return!(null===a||"undefined"===typeof a)}},dmimage:{"default":!1,transform:function(a){return!(null===a||"undefined"===typeof a)}},lazythreshold:{"default":0,transform:function(a){a=parseInt(a);return isNaN(a)?0:a}},src:{transform:function(a){return decodeURIComponent(a)}}},x=window.devicePixelRatio||1;"loading"!==document.readyState?g():document.addEventListener("DOMContentLoaded", 
g)})(); ?>

Did this file decode correctly?

Original Code

window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(d){d=(this.document||this.ownerDocument).querySelectorAll(d);var e=this,g;do for(g=d.length;0<=--g&&d.item(g)!==e;);while(0>g&&(e=e.parentElement));return e});
window.Element&&!Element.prototype.matches&&(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(d){d=(this.document||this.ownerDocument).querySelectorAll(d);for(var e=d.length;0<=--e&&d.item(e)!==this;);return-1<e});
Object.assign||(Object.assign=function(d,e){if(null===d)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(d),l=1;l<arguments.length;l++){var m=arguments[l];if(null!==m)for(var n in m)Object.prototype.hasOwnProperty.call(m,n)&&(g[n]=m[n])}return g});
(function(d){d.forEach(function(d){d.hasOwnProperty("remove")||Object.defineProperty(d,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})})})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);
(function(){function d(a){a=a.dataset;var d=[],k="image";k=k.charAt(0).toUpperCase()+k.slice(1);k=["is","hook"+k];for(var h in a)if(a.hasOwnProperty(h)){var e=a[h];0===h.indexOf("cmp")&&(h=h.slice(3),h=h.charAt(0).toLowerCase()+h.substring(1),-1===k.indexOf(h)&&(d[h]=e))}return d}function e(a){function d(c){c.element.removeAttribute("data-cmp-is");t(c.options);u(c.element);if(c.options.src&&c.options.hasOwnProperty("dmimage")&&"SmartCrop:Auto"===c.options.smartcroprendition){var f=new XMLHttpRequest;
c=decodeURIComponent(c.options.src).split("{.width}")[0]+"?req\x3dset,json";f.open("GET.html",c,!1);f.onload=function(){if(200<=f.status&&400>f.status){var b=new RegExp(/^{[\s\S]*}$/gmi),c=(new RegExp(/^(?:\/\*jsonp\*\/)?\s*([^()]+)\(([\s\S]+),\s*"[0-9]*"\);?$/gmi)).exec(f.responseText),a;c&&(c=c[2],b.test(c)&&(a=JSON.parse(c)));if(a&&a.set.relation&&0<a.set.relation.length)for(b=0;b<a.set.relation.length;b++)p[parseInt(a.set.relation[b].userdata.SmartCropWidth)]=":"+a.set.relation[b].userdata.SmartCropDef}};
f.send()}b._elements.noscript&&(b._elements.container=b._elements.link?b._elements.link:b._elements.self,g(),b._properties.lazy&&e(),b._elements.map&&b._elements.image.addEventListener("load",v),window.addEventListener("resize",w),"focus click load transitionend animationend scroll".split(" ").forEach(function(c){document.addEventListener(c,b.update)}),b._elements.image.addEventListener("cmp-image-redraw",b.update),b.update())}function k(){var c=b._properties.widths&&0<b._properties.widths.length||
0<Object.keys(p).length;if(0<Object.keys(p).length){var f=h(Object.keys(p));f=p[f]}else f=c?(b._properties.dmimage?"":".")+h(b._properties.widths):"";f=b._properties.src.replace("{.width}",f);var a=b._elements.image.getAttribute("src");if(f!==a)if(null===a||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"===a)b._elements.image.setAttribute("src",f);else{var d=b._properties.src.split("{.width}"),e=a.startsWith(d[0]);e&&1<d.length&&(e=a.endsWith(d[d.length-1]));e&&(b._elements.image.setAttribute("src",
f),c||window.removeEventListener("scroll",b.update))}b._lazyLoaderShowing&&b._elements.image.addEventListener("load",q)}function h(c){for(var f=b._elements.self,a=f.clientWidth;0===a&&f.parentNode;)f=f.parentNode,a=f.clientWidth;f=a*x;a=c.length;for(var d=0;d<a-1&&c[d]<f;)d++;return c[d].toString()}function e(){var c=b._elements.image.getAttribute("width"),a=b._elements.image.getAttribute("height");if(c&&a){var d=m.style;d["padding-bottom"]=a/c*100+"%";for(var e in d)d.hasOwnProperty(e)&&(b._elements.image.style[e]=
d[e])}b._elements.image.setAttribute("src","data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");b._elements.image.classList.add(m.cssClass);b._lazyLoaderShowing=!0}function g(){var c=b._elements.noscript.textContent.trim();c=c.replace(/&(amp;)*lt;/g,"\x3c");c=c.replace(/&(amp;)*gt;/g,"\x3e");c=(new DOMParser).parseFromString(c,"text/html");var a=c.querySelector(l.image);a.removeAttribute("src");b._elements.container.insertBefore(a,b._elements.noscript);(c=c.querySelector(l.map))&&
b._elements.container.insertBefore(c,b._elements.noscript);b._elements.noscript.parentNode.removeChild(b._elements.noscript);b._elements.container.matches(l.image)?b._elements.image=b._elements.container:b._elements.image=b._elements.container.querySelector(l.image);b._elements.map=b._elements.container.querySelector(l.map);b._elements.areas=b._elements.container.querySelectorAll(l.area)}function q(){b._elements.image.classList.remove(m.cssClass);for(var c in m.style)m.style.hasOwnProperty(c)&&(b._elements.image.style[c]=
"");b._elements.image.removeEventListener("load",q);b._lazyLoaderShowing=!1}function r(){if(b._elements.areas&&0<b._elements.areas.length)for(var c=0;c<b._elements.areas.length;c++){var a=b._elements.image.width,d=b._elements.image.height;if(a&&d){var e=b._elements.areas[c].dataset.cmpRelcoords;if(e){e=e.split(",");for(var h=Array(e.length),k=0;k<h.length;k++)h[k]=0===k%2?parseInt(e[k]*a):parseInt(e[k]*d);b._elements.areas[c].coords=h}}}}function u(c){b._elements={};b._elements.self=c;c=b._elements.self.querySelectorAll("[data-cmp-hook-image]");
for(var a=0;a<c.length;a++){var d=c[a],e="image";e=e.charAt(0).toUpperCase()+e.slice(1);b._elements[d.dataset["cmpHook"+e]]=d}}function t(a){b._properties={};for(var c in n)if(n.hasOwnProperty(c)){var d=n[c];b._properties[c]=a&&null!=a[c]?d&&"function"===typeof d.transform?d.transform(a[c]):a[c]:n[c]["default"]}}function w(){b.update();r()}function v(){r()}var b=this,p={};b.update=function(){if(b._properties.lazy){if(null===b._elements.container.offsetParent)var a=!1;else{a=window.pageYOffset;var d=
a+document.documentElement.clientHeight,e=b._elements.container.getBoundingClientRect().top+a;a=e+b._elements.container.clientHeight>=a-b._properties.lazythreshold&&e<=d+b._properties.lazythreshold}a&&k()}else k()};a&&a.element&&d(a)}function g(){for(var a=document.querySelectorAll(l.self),g=0;g<a.length;g++)new e({element:a[g],options:d(a[g])});a=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;g=document.querySelector("body");(new a(function(a){a.forEach(function(a){a=
[].slice.call(a.addedNodes);0<a.length&&a.forEach(function(a){a.querySelectorAll&&[].slice.call(a.querySelectorAll(l.self)).forEach(function(a){new e({element:a,options:d(a)})})})})})).observe(g,{subtree:!0,childList:!0,characterData:!0})}var l={self:'[data-cmp-is\x3d"image"]',image:'[data-cmp-hook-image\x3d"image"]',map:'[data-cmp-hook-image\x3d"map"]',area:'[data-cmp-hook-image\x3d"area"]'},m={cssClass:"cmp-image__image--is-loading",style:{height:0,"padding-bottom":""}},n={widths:{"default":[],
transform:function(a){var d=[];a.split(",").forEach(function(a){a=parseFloat(a);isNaN(a)||d.push(a)});return d}},lazy:{"default":!1,transform:function(a){return!(null===a||"undefined"===typeof a)}},dmimage:{"default":!1,transform:function(a){return!(null===a||"undefined"===typeof a)}},lazythreshold:{"default":0,transform:function(a){a=parseInt(a);return isNaN(a)?0:a}},src:{transform:function(a){return decodeURIComponent(a)}}},x=window.devicePixelRatio||1;"loading"!==document.readyState?g():document.addEventListener("DOMContentLoaded",
g)})();

Function Calls

None

Variables

None

Stats

MD5 87d90432a2f43d35a6aec133abb56e75
Eval Count 0
Decode Time 64 ms