/* The buffer module from node.js, for the browser. @author Feross Aboukhadijeh @license MIT EventEmitter2 https://github.com/hij1nx/EventEmitter2 Copyright (c) 2013 hij1nx Licensed under the MIT license. ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,h,c){a!=Array.prototype&&a!=Object.prototype&&(a[h]=c.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_"; $jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var a=0;return function(h){return $jscomp.SYMBOL_PREFIX+(h||"")+a++}}(); $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var h=0;return $jscomp.iteratorPrototype(function(){return hc&&(c=Math.max(0,h+c));if(null==e||e>h)e=h;e=Number(e);0>e&&(e=Math.max(0,h+e));for(c=Number(c||0);cc&&(c=Math.max(c+h,0));cc.length&&(c=[].concat($jscomp.arrayFromIterable(c),$jscomp.arrayFromIterable(envDetector.createVersionParts(3- c.length)))):c=[];c=c.join(".");var e=envDetector.detectOS(a);return(a=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/.exec(a))&&a[1]?Object.assign({},envDetector.SearchBotDeviceInfo,{name:h,version:c,os:e,bot:a[1]}):Object.assign({},envDetector.BrowserInfo,{name:h,version:c,os:e})},detectOS:function(a){for(var h=0,c=envDetector.operatingSystemRules.length;h>>0;if("function"!==typeof a)throw new TypeError(a+" is not a function");1a;b=d?b.substr(0,a-1):b;b=c&&d?b.substr(0,b.lastIndexOf(" ")):b;return d?b+"\x26hellip;":b},getMetaData:function(b){try{var a= window.top.document}catch(K){a=document}a=a.getElementsByTagName("meta");for(var c,e=0;e(new Date).getTime())return b.b}catch(d){}return null},setThirdPartyCookieBlocked:function(b){try{localStorage.setItem("tpcblocked",JSON.stringify({b:!!b,ts:(new Date).getTime()}))}catch(d){}},shouldSendBldid:function(){return g.isSafariFamilyBrowser()||!0===g.getThirdPartyCookieBlocked()},checkThirdPartyCookies:function(){return new Promise(function(b){if(g.isSafariFamilyBrowser()||null!==g.getThirdPartyCookieBlocked()||!document.body)b();else{var a=document.createElement("iframe"); a.setAttribute("width","0");a.setAttribute("height","0");a.setAttribute("frameborder","0");a.setAttribute("style","border-width: 0px; margin: 0px; display: none;");a.src="https://c.blendee.com/if/a.html?origin\x3d"+encodeURIComponent(location.origin);var c=!1,e=function(){c||(c=!0,clearTimeout(l),window.removeEventListener("message",h),a.parentNode&&a.parentNode.removeChild(a),b())},h=function(b){if("https://c.blendee.com"===b.origin&&b.data&&"tpc-check"===b.data.type){try{var a=!0!==b.data.standard; g.setThirdPartyCookieBlocked(a);g.log("[bldid][3p-cookie-check] "+(a?"[NOT MATCH] cookie di terze parti BLOCCATI -\x3e il bldid verr\u00e0 inviato":"[MATCH] cookie di terze parti accettati -\x3e bldid non inviato")+" (standard\x3d"+b.data.standard+", partitioned\x3d"+b.data.partitioned+", storageAccess\x3d"+b.data.storageAccess+")")}catch(O){g.log("[bldid][3p-cookie-check] errore nella gestione della risposta -\x3e check non concluso")}e()}},l=setTimeout(function(){g.log("[bldid][3p-cookie-check] nessuna risposta entro 1500ms -\x3e check non concluso, bldid non inviato"); e()},1500);window.addEventListener("message",h,!1);document.body.appendChild(a)}})},setBldidInSpecificBrowser:function(b){if(g.shouldSendBldid()){var a=g.getBldid();if(!a)return b;b=new URL(b);b.searchParams.set("bldid",a);b.searchParams.set("newbldid",encodeURIComponent(g.getNewBldid()));return b.href}return b},getBldid:function(){var b=localStorage.getItem("bldid");return b&&88===b.length?b:null},setBldid:function(b){localStorage.setItem("bldid",b)},getNewBldid:function(){return"true"===sessionStorage.getItem("newbldid")}, setNewBldid:function(b){sessionStorage.setItem("newbldid",b)},logThirdPartyCookieHeuristic:function(b){switch(b){case "recognized":g.log("[bldid][3p-cookie-check] [MATCH] did.blendee.com ha riconosciuto il device (newbldid\x3dfalse) -\x3e storage/cookie di terze parti verso did.blendee.com sembrano ACCETTATI in questo browser.");break;case "new":g.log("[bldid][3p-cookie-check] [NOT MATCH] did.blendee.com NON ha riconosciuto il device (newbldid\x3dtrue) -\x3e possibile BLOCCO dello storage di terze parti in questo browser (oppure \u00e8 realmente la prima visita: dal solo dato di questa pageview i due casi non sono distinguibili)."); break;case "malformed":g.log("[bldid][3p-cookie-check] risposta dell'iframe non nel formato atteso (bldid/newbldid) -\x3e nessuna euristica affidabile su questa pageview.");break;default:g.log("[bldid][3p-cookie-check] bldid gi\u00e0 presente in localStorage di prima parte per questa pageview -\x3e nessuna nuova chiamata verso did.blendee.com, nessuna euristica calcolabile su questo caricamento.")}}},A=null,L=null,Y={randHex:function(b){var a=Math.pow(16,Math.min(b,8)-1);max=Math.pow(16,Math.min(b, 8))-1;n=Math.floor(Math.random()*(max-a+1))+a;for(r=n.toString(16);r.length>18&63]+t[b>>12&63]+t[b>>6&63]+t[b&63]);return d.join("")}c.byteLength=function(a){a=d(a);var b=a[1];return 3*(a[0]+b)/4-b};c.toByteArray=function(a){var b=d(a);var c=b[0];b=b[1];var t=new h(3*(c+b)/4-b),e=0,z=0>16&255,t[e++]=c>>8&255,t[e++]=c&255;2===b&&(c=g[a.charCodeAt(D)]<<2|g[a.charCodeAt(D+1)]>>4,t[e++]=c&255);1===b&&(c= g[a.charCodeAt(D)]<<10|g[a.charCodeAt(D+1)]<<4|g[a.charCodeAt(D+2)]>>2,t[e++]=c>>8&255,t[e++]=c&255);return t};c.fromByteArray=function(a){for(var b=a.length,c=b%3,d=[],g=0,z=b-c;gz?z:g+16383));1===c?(a=a[b-1],d.push(t[a>>2]+t[a<<4&63]+"\x3d\x3d")):2===c&&(a=(a[b-2]<<8)+a[b-1],d.push(t[a>>10]+t[a>>4&63]+t[a<<2&63]+"\x3d"));return d.join("")};var t=[],g=[],h="undefined"!==typeof Uint8Array?Uint8Array:Array;for(a=0;64>a;++a)t[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[a], g["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(a)]=a;g[45]=62;g[95]=63},{}],2:[function(a,b,c){(function(b){(function(){function b(f){if(f>x)throw new RangeError('The value "'+f+'" is invalid for option "size"');f=new Uint8Array(f);f.__proto__=d.prototype;return f}function d(f,k,a){if("number"===typeof f){if("string"===typeof k)throw new TypeError('The "string" argument must be of type string. Received type number');return z(f)}return e(f,k,a)}function e(f,k,a){if("string"=== typeof f){var v=k;if("string"!==typeof v||""===v)v="utf8";if(!d.isEncoding(v))throw new TypeError("Unknown encoding: "+v);k=F(f,v)|0;a=b(k);f=a.write(f,v);f!==k&&(a=a.slice(0,f));return a}if(ArrayBuffer.isView(f))return h(f);if(null==f)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f);if(I(f,ArrayBuffer)||f&&I(f.buffer,ArrayBuffer)){if(0>k||f.byteLengthf)throw new RangeError('The value "'+f+'" is invalid for option "size"');}function z(f){g(f);return b(0>f?0:u(f)| 0)}function h(f){for(var k=0>f.length?0:u(f.length)|0,a=b(k),c=0;c=x)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+x.toString(16)+" bytes");return f|0}function F(f, k){if(d.isBuffer(f))return f.length;if(ArrayBuffer.isView(f)||I(f,ArrayBuffer))return f.byteLength;if("string"!==typeof f)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof f);var a=f.length,b=2>>1;case "base64":return M.toByteArray(q(f)).length;default:if(c)return b?-1:m(f).length;k=(""+k).toLowerCase();c=!0}}function U(f,k,a){var b=!1;if(void 0===k||0>k)k=0;if(k>this.length)return"";if(void 0===a||a>this.length)a=this.length;if(0>=a)return"";a>>>=0;k>>>=0;if(a<=k)return"";for(f||(f="utf8");;)switch(f){case "hex":f=k;k=a;a=this.length;if(!f||0>f)f=0;if(!k||0>k||k>a)k=a;b="";for(a=f;ab?"0"+b.toString(16):b.toString(16),b=f+b;return b;case "utf8":case "utf-8":return T(this, k,a);case "ascii":f="";for(a=Math.min(this.length,a);kb&&(b=-2147483648);b=+b;b!==b&&(b=e?0:f.length-1);0>b&&(b=f.length+b);if(b>=f.length){if(e)return-1;b=f.length-1}else if(0>b)if(e)b=0;else return-1;"string"===typeof a&&(a=d.from(a,c));if(d.isBuffer(a))return 0===a.length?-1:l(f,a,b,c,e);if("number"===typeof a)return a&=255,"function"===typeof Uint8Array.prototype.indexOf? e?Uint8Array.prototype.indexOf.call(f,a,b):Uint8Array.prototype.lastIndexOf.call(f,a,b):l(f,[a],b,c,e);throw new TypeError("val must be string, number or Buffer");}function l(f,a,b,c,d){function k(f,a){return 1===v?f[a]:f.readUInt16BE(a*v)}var v=1,V=f.length,e=a.length;if(void 0!==c&&(c=String(c).toLowerCase(),"ucs2"===c||"ucs-2"===c||"utf16le"===c||"utf-16le"===c)){if(2>f.length||2>a.length)return-1;v=2;V/=2;e/=2;b/=2}if(d)for(c=-1;bV&&(b=V-e);0<=b;b--){V=!0;for(c=0;cv&&(c=v);break;case 2:var e=f[a+1];128===(e&192)&&(v=(v&31)<<6|e&63,127v||57343v&&(c=v))}null===c?(c=65533,d=1):65535>>10&1023|55296),c=56320|c&1023);k.push(c);a+=d}f=k.length;if(f<=ja)k=String.fromCharCode.apply(String,k);else{b="";for(a=0;af)throw new RangeError("offset is not uint");if(f+a>b)throw new RangeError("Trying to access beyond buffer length"); }function G(f,a,b,c,e,m){if(!d.isBuffer(f))throw new TypeError('"buffer" argument must be a Buffer instance');if(a>e||af.length)throw new RangeError("Index out of range");}function C(f,a,b,c,d,e){if(b+c>f.length)throw new RangeError("Index out of range");if(0>b)throw new RangeError("Index out of range");}function p(f,a,b,c,d){a=+a;b>>>=0;d||C(f,a,b,4,3.4028234663852886e+38,-3.4028234663852886e+38);ca.write(f,a,b,c,23,4);return b+ 4}function ka(f,a,b,c,d){a=+a;b>>>=0;d||C(f,a,b,8,1.7976931348623157e+308,-1.7976931348623157e+308);ca.write(f,a,b,c,52,8);return b+8}function q(f){f=f.split("\x3d")[0];f=f.trim().replace(ha,"");if(2>f.length)return"";for(;0!==f.length%4;)f+="\x3d";return f}function m(f,a){a=a||Infinity;for(var b,k=f.length,c=null,d=[],e=0;eb){if(!c){if(56319 b){-1<(a-=3)&&d.push(239,191,189);c=b;continue}b=(c-55296<<10|b-56320)+65536}else c&&-1<(a-=3)&&d.push(239,191,189);c=null;if(128>b){if(0>--a)break;d.push(b)}else if(2048>b){if(0>(a-=2))break;d.push(b>>6|192,b&63|128)}else if(65536>b){if(0>(a-=3))break;d.push(b>>12|224,b>>6&63|128,b&63|128)}else if(1114112>b){if(0>(a-=4))break;d.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw Error("Invalid code point");}return d}function y(f){for(var a=[],b=0;b=a.length||k>=f.length);++k)a[k+b]=f[k];return k}function I(f,a){return f instanceof a||null!=f&&null!=f.constructor&&null!=f.constructor.name&&f.constructor.name===a.name}var M=a("base64-js"),ca=a("ieee754");c.Buffer=d;c.SlowBuffer=function(f){+f!=f&&(f=0);return d.alloc(+f)};c.INSPECT_MAX_BYTES=50;var x=2147483647;c.kMaxLength=x;d.TYPED_ARRAY_SUPPORT=function(){try{var f=new Uint8Array(1);f.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}}; return 42===f.foo()}catch(k){return!1}}();d.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}});Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}}); $jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();"undefined"!==typeof Symbol&&null!=Symbol.species&&d[Symbol.species]===d&&($jscomp.initSymbol(),Object.defineProperty(d,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));d.poolSize=8192;d.from=function(f,a,b){return e(f,a,b)};d.prototype.__proto__=Uint8Array.prototype;d.__proto__=Uint8Array;d.alloc=function(f,a,c){g(f);f=0>=f?b(f):void 0!==a?"string"===typeof c?b(f).fill(a,c):b(f).fill(a):b(f);return f};d.allocUnsafe= function(f){return z(f)};d.allocUnsafeSlow=function(f){return z(f)};d.isBuffer=function(f){return null!=f&&!0===f._isBuffer&&f!==d.prototype};d.compare=function(f,a){I(f,Uint8Array)&&(f=d.from(f,f.offset,f.byteLength));I(a,Uint8Array)&&(a=d.from(a,a.offset,a.byteLength));if(!d.isBuffer(f)||!d.isBuffer(a))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(f===a)return 0;for(var b=f.length,k=a.length,c=0,e=Math.min(b,k);cf&&(a+=" ... ");return"\x3cBuffer "+a+"\x3e"};d.prototype.compare=function(f,a,b,c,e){I(f,Uint8Array)&&(f=d.from(f,f.offset,f.byteLength));if(!d.isBuffer(f))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof f);void 0===a&&(a=0);void 0===b&&(b=f?f.length:0);void 0===c&& (c=0);void 0===e&&(e=this.length);if(0>a||b>f.length||0>c||e>this.length)throw new RangeError("out of range index");if(c>=e&&a>=b)return 0;if(c>=e)return-1;if(a>=b)return 1;a>>>=0;b>>>=0;c>>>=0;e>>>=0;if(this===f)return 0;var k=e-c,v=b-a,V=Math.min(k,v);c=this.slice(c,e);f=f.slice(a,b);for(a=0;a>>=0,isFinite(b)?(b>>>=0,void 0===c&&(c="utf8")):(c=b,b=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var k=this.length-a;if(void 0===b||b>k)b=k;if(0b||0>a)||a>this.length)throw new RangeError("Attempt to write outside buffer bounds"); c||(c="utf8");for(k=!1;;)switch(c){case "hex":a:{a=Number(a)||0;c=this.length-a;b?(b=Number(b),b>c&&(b=c)):b=c;c=f.length;b>c/2&&(b=c/2);for(c=0;c(k-=2));++v){var e=c.charCodeAt(v);f=e>>8;e%=256;d.push(e);d.push(f)}return J(d,this,a,b);default:if(k)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase();k=!0}};d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ja=4096;d.prototype.slice=function(a,b){var f=this.length;a=~~a;b=void 0===b?f:~~b;0>a?(a+=f,0>a&&(a=0)):a>f&&(a=f);0>b?(b+=f,0>b&&(b=0)):b>f&&(b=f);b>>=0;b>>>=0;c||H(a,b,this.length);c=this[a];for(var f=1,k=0;++k>>=0;b>>>=0;c||H(a,b,this.length);c=this[a+--b];for(var f=1;0>>=0;b||H(a,1,this.length);return this[a]};d.prototype.readUInt16LE=function(a,b){a>>>=0;b||H(a,2,this.length);return this[a]|this[a+1]<<8};d.prototype.readUInt16BE= function(a,b){a>>>=0;b||H(a,2,this.length);return this[a]<<8|this[a+1]};d.prototype.readUInt32LE=function(a,b){a>>>=0;b||H(a,4,this.length);return(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]};d.prototype.readUInt32BE=function(a,b){a>>>=0;b||H(a,4,this.length);return 16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])};d.prototype.readIntLE=function(a,b,c){a>>>=0;b>>>=0;c||H(a,b,this.length);c=this[a];for(var f=1,k=0;++k=128*f&&(c-=Math.pow(2,8*b));return c}; d.prototype.readIntBE=function(a,b,c){a>>>=0;b>>>=0;c||H(a,b,this.length);c=b;for(var f=1,k=this[a+--c];0=128*f&&(k-=Math.pow(2,8*b));return k};d.prototype.readInt8=function(a,b){a>>>=0;b||H(a,1,this.length);return this[a]&128?-1*(255-this[a]+1):this[a]};d.prototype.readInt16LE=function(a,b){a>>>=0;b||H(a,2,this.length);a=this[a]|this[a+1]<<8;return a&32768?a|4294901760:a};d.prototype.readInt16BE=function(a,b){a>>>=0;b||H(a,2,this.length);a=this[a+1]|this[a]<<8;return a& 32768?a|4294901760:a};d.prototype.readInt32LE=function(a,b){a>>>=0;b||H(a,4,this.length);return this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24};d.prototype.readInt32BE=function(a,b){a>>>=0;b||H(a,4,this.length);return this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]};d.prototype.readFloatLE=function(a,b){a>>>=0;b||H(a,4,this.length);return ca.read(this,a,!0,23,4)};d.prototype.readFloatBE=function(a,b){a>>>=0;b||H(a,4,this.length);return ca.read(this,a,!1,23,4)};d.prototype.readDoubleLE=function(a, b){a>>>=0;b||H(a,8,this.length);return ca.read(this,a,!0,52,8)};d.prototype.readDoubleBE=function(a,b){a>>>=0;b||H(a,8,this.length);return ca.read(this,a,!1,52,8)};d.prototype.writeUIntLE=function(a,b,c,d){a=+a;b>>>=0;c>>>=0;d||G(this,a,b,c,Math.pow(2,8*c)-1,0);d=1;var f=0;for(this[b]=a&255;++f>>=0;c>>>=0;d||G(this,a,b,c,Math.pow(2,8*c)-1,0);d=c-1;var f=1;for(this[b+d]=a&255;0<=--d&&(f*=256);)this[b+d]=a/ f&255;return b+c};d.prototype.writeUInt8=function(a,b,c){a=+a;b>>>=0;c||G(this,a,b,1,255,0);this[b]=a&255;return b+1};d.prototype.writeUInt16LE=function(a,b,c){a=+a;b>>>=0;c||G(this,a,b,2,65535,0);this[b]=a&255;this[b+1]=a>>>8;return b+2};d.prototype.writeUInt16BE=function(a,b,c){a=+a;b>>>=0;c||G(this,a,b,2,65535,0);this[b]=a>>>8;this[b+1]=a&255;return b+2};d.prototype.writeUInt32LE=function(a,b,c){a=+a;b>>>=0;c||G(this,a,b,4,4294967295,0);this[b+3]=a>>>24;this[b+2]=a>>>16;this[b+1]=a>>>8;this[b]= a&255;return b+4};d.prototype.writeUInt32BE=function(a,b,c){a=+a;b>>>=0;c||G(this,a,b,4,4294967295,0);this[b]=a>>>24;this[b+1]=a>>>16;this[b+2]=a>>>8;this[b+3]=a&255;return b+4};d.prototype.writeIntLE=function(a,b,c,d){a=+a;b>>>=0;d||(d=Math.pow(2,8*c-1),G(this,a,b,c,d-1,-d));d=0;var f=1,k=0;for(this[b]=a&255;++da&&0===k&&0!==this[b+d-1]&&(k=1),this[b+d]=(a/f>>0)-k&255;return b+c};d.prototype.writeIntBE=function(a,b,c,d){a=+a;b>>>=0;d||(d=Math.pow(2,8*c-1),G(this,a,b,c,d-1,-d));d= c-1;var f=1,k=0;for(this[b+d]=a&255;0<=--d&&(f*=256);)0>a&&0===k&&0!==this[b+d+1]&&(k=1),this[b+d]=(a/f>>0)-k&255;return b+c};d.prototype.writeInt8=function(a,b,c){a=+a;b>>>=0;c||G(this,a,b,1,127,-128);0>a&&(a=255+a+1);this[b]=a&255;return b+1};d.prototype.writeInt16LE=function(a,b,c){a=+a;b>>>=0;c||G(this,a,b,2,32767,-32768);this[b]=a&255;this[b+1]=a>>>8;return b+2};d.prototype.writeInt16BE=function(a,b,c){a=+a;b>>>=0;c||G(this,a,b,2,32767,-32768);this[b]=a>>>8;this[b+1]=a&255;return b+2};d.prototype.writeInt32LE= function(a,b,c){a=+a;b>>>=0;c||G(this,a,b,4,2147483647,-2147483648);this[b]=a&255;this[b+1]=a>>>8;this[b+2]=a>>>16;this[b+3]=a>>>24;return b+4};d.prototype.writeInt32BE=function(a,b,c){a=+a;b>>>=0;c||G(this,a,b,4,2147483647,-2147483648);0>a&&(a=4294967295+a+1);this[b]=a>>>24;this[b+1]=a>>>16;this[b+2]=a>>>8;this[b+3]=a&255;return b+4};d.prototype.writeFloatLE=function(a,b,c){return p(this,a,b,!0,c)};d.prototype.writeFloatBE=function(a,b,c){return p(this,a,b,!1,c)};d.prototype.writeDoubleLE=function(a, b,c){return ka(this,a,b,!0,c)};d.prototype.writeDoubleBE=function(a,b,c){return ka(this,a,b,!1,c)};d.prototype.copy=function(a,b,c,e){if(!d.isBuffer(a))throw new TypeError("argument should be a Buffer");c||(c=0);e||0===e||(e=this.length);b>=a.length&&(b=a.length);b||(b=0);0b)throw new RangeError("targetStart out of bounds");if(0>c||c>=this.length)throw new RangeError("Index out of range");if(0>e)throw new RangeError("sourceEnd out of bounds"); e>this.length&&(e=this.length);a.length-bf||"latin1"===e)a=f}}else"number"===typeof a&&(a&=255);if(0>b||this.length>>=0;c=void 0===c?this.length:c>>>0;a||(a=0);if("number"===typeof a)for(e=b;ea||!Number.isFinite(a))&&b("timeout must be a positive number");return a}});f=!c.overload&&"function"===typeof a.prototype.cancel&&"function"===typeof y;var z=function(a){p();g(a)},h=function(a){p();v(a)};f?b(z,h,y):(d=[function(a){h(a||Error("canceled"))}],b(z,h,function(a){if(e)throw Error("Unable to subscribe on cancel event asynchronously");if("function"!==typeof a)throw TypeError("onCancel callback must be a function");d.push(a)}),e=!0);0 this._maxListeners&&(a._listeners.warned=!0,z.call(this,a._listeners.length,k))):a._listeners=b;break a}}return f}this._events[a]?("function"===typeof this._events[a]&&(this._events[a]=[this._events[a]]),c?this._events[a].unshift(b):this._events[a].push(b),!this._events[a].warned&&0this._maxListeners&&(this._events[a].warned=!0,z.call(this,this._events[a].length,a))):this._events[a]=b;return f};p.prototype.off=function(a,b){if("function"!==typeof b)throw Error("removeListener only takes instances of Function"); var c=[];if(this.wildcard){var d="string"===typeof a?a.split(this.delimiter):a.slice();c=l.call(this,null,d,this.listenerTree,0);if(!c)return this}else{if(!this._events[a])return this;d=this._events[a];c.push({_listeners:d})}for(var f=0;fk)continue;this.wildcard?e._listeners.splice(k,1):this._events[a].splice(k,1);0===d.length&& (this.wildcard?delete e._listeners:delete this._events[a]);this._removeListener&&this.emit("removeListener",a,b);return this}if(d===b||d.listener&&d.listener===b||d._origin&&d._origin===b)this.wildcard?delete e._listeners:delete this._events[a],this._removeListener&&this.emit("removeListener",a,b)}this.listenerTree&&G(this.listenerTree);return this};p.prototype.offAny=function(a){var b;if(a&&this._all&&0a||Number.isNaN(a))throw TypeError("n must be a non-negative number");ha._maxListeners=a},enumerable:!0},once:{value:function(a,b,c){c=u(c,{Promise:Promise,timeout:0,overload:!1},{Promise:F});return w(c.Promise,function(c,d,f){if("function"===typeof a.addEventListener){var e=function(){c(x.apply(null,arguments))};f(function(){a.removeEventListener(b,e)});a.addEventListener(b,e,{once:!0})}else{var m= function(){g&&a.removeListener("error",g);c(x.apply(null,arguments))};if("error"!==b){var g=function(c){a.removeListener(b,m);d(c)};a.once("error",g)}f(function(){g&&a.removeListener("error",g);a.removeListener(b,m)});a.once(b,m)}},{timeout:c.timeout,overload:c.overload})},writable:!0,configurable:!0}});Object.defineProperties(ha,{_maxListeners:{value:10,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}});"function"===typeof define&&define.amd?define(function(){return p}): "object"===typeof c?b.exports=p:(new Function("","return this"))().EventEmitter2=p}()}).call(this)}).call(this,a("_process"),a("timers").setImmediate)},{_process:21,timers:22}],5:[function(a,b,c){(function(a){(function(){(function(a,d){"object"===typeof c&&"undefined"!==typeof b?d(c):"function"===typeof define&&define.amd?define(["exports"],d):(a="undefined"!==typeof globalThis?globalThis:a||self,d(a["hash-it"]={}))})(this,function(b){function c(a,b){return a[0]>b[0]}function d(a,b){return a>b}function e(a, b){for(var c,d,e=0;e>>0)+(d>>>0)};Object.defineProperty(b,"__esModule",{value:!0})})}).call(this)}).call(this,a("buffer").Buffer)}, {buffer:2}],6:[function(a,b,c){c.read=function(a,b,c,d,e){var g=8*e-d-1;var h=(1<>1,t=-7;e=c?e-1:0;var F=c?-1:1,D=a[b+e];e+=F;c=D&(1<<-t)-1;D>>=-t;for(t+=g;0>=-t;for(t+=d;0>1,E=23===e?Math.pow(2,-24)-Math.pow(2,-77):0;g=d?0:g-1;var D=d?1:-1, u=0>b||0===b&&0>1/b?1:0;b=Math.abs(b);isNaN(b)||Infinity===b?(b=isNaN(b)?1:0,d=t):(d=Math.floor(Math.log(b)/Math.LN2),1>b*(h=Math.pow(2,-d))&&(d--,h*=2),b=1<=d+F?b+E/h:b+E*Math.pow(2,1-F),2<=b*h&&(d++,h/=2),d+F>=t?(b=0,d=t):1<=d+F?(b=(b*h-1)*Math.pow(2,e),d+=F):(b=b*Math.pow(2,F-1)*Math.pow(2,e),d=0));for(;8<=e;a[c+g]=b&255,g+=D,b/=256,e-=8);d=d<b},d));b.push(new a.default("greaterThanInclusive",function(a,b){return a>=b},d));c.default=b},{"./operator":16}],11:[function(a,b,c){function d(a){return a&&a.__esModule?a:{default:a}}function e(a, b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?a:b}function g(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(c,"__esModule", {value:!0});c.FINISHED=c.RUNNING=c.READY=void 0;var h=function(){function a(a,b){for(var c=0;cNumber(b)?-1:1}).map(function(b){return a[b]})}return this.prioritizedRules}},{key:"stop",value:function(){this.status=P;return this}},{key:"getFact",value:function(a){return this.facts.get(a)}},{key:"evaluateRules",value:function(a,b){var c=this;return Promise.all(a.map(function(a){return c.status!==G?((0,x.default)("engine::run status:"+c.status+"; skipping remaining rules"),Promise.resolve()):a.evaluate(b).then(function(a){(0, x.default)("engine::run ruleResult:"+a.result);b.addResult(a);if(a.result)return b.addEvent(a.event,"success"),c.emitAsync("success",a.event,b,a).then(function(){return c.emitAsync(a.event.type,a.event.params,b,a)});b.addEvent(a.event,"failure");return c.emitAsync("failure",a.event,b,a)})}))}},{key:"run",value:function(){var a=this,b=0=a)throw Error("Priority must be greater than zero");this.priority=a;return this}},{key:"setName",value:function(a){if(!a&&0!==a)throw Error('Rule "name" must be defined');this.name=a;return this}},{key:"setConditions",value:function(a){if(!(Object.prototype.hasOwnProperty.call(a,"all")||Object.prototype.hasOwnProperty.call(a,"any")||Object.prototype.hasOwnProperty.call(a,"not")||Object.prototype.hasOwnProperty.call(a, "condition")))throw Error('"conditions" root must contain a single instance of "all", "any", "not", or "condition"');this.conditions=new h.default(a);return this}},{key:"setEvent",value:function(a){if(!a)throw Error("Rule: setEvent() requires event object");if(!Object.prototype.hasOwnProperty.call(a,"type"))throw Error('Rule: setEvent() requires event object with "type" property');this.ruleEvent={type:a.type};a.params&&(this.ruleEvent.params=a.params);return this}},{key:"getEvent",value:function(){return this.ruleEvent}}, {key:"getPriority",value:function(){return this.priority}},{key:"getConditions",value:function(){return this.conditions}},{key:"getEngine",value:function(){return this.engine}},{key:"setEngine",value:function(a){this.engine=a;return this}},{key:"toJSON",value:function(){var a=0Number(b)?-1:1}).map(function(a){return c[a]})}},{key:"evaluate",value:function(a){var b=this,c=new u.default(this.conditions,this.ruleEvent,this.priority,this.name),d=function(c){if(c.isConditionReference())return x(c);if(c.isBooleanOperator()){var d=c[c.operator],e=void 0;e="all"===c.operator?g(d,"all"): "any"===c.operator?g(d,"any"):h(d);return e.then(function(a){a=!0===a;return c.result=a})}return c.evaluate(a,b.engine.operators).then(function(a){var b=a.result;c.factResult=a.leftHandSideValue;return c.result=b})},e=function(a,b){Array.isArray(a)||(a=[a]);return Promise.all(a.map(function(a){return d(a)})).then(function(a){(0,w.default)("rule::evaluateConditions results",a);return b.call(a,function(a){return!0===a})})},g=function(a,c){if(0===a.length)return Promise.resolve(!0);if(1===a.length)return d(a[0]); var g=Array.prototype.some;"all"===c&&(g=Array.prototype.every);var m=b.prioritizeConditions(a),y=Promise.resolve();a=function(a){var b=m[a],d=!1;y=y.then(function(a){return"any"===c&&!0===a||d?((0,w.default)("prioritizeAndRun::detected truthy result; skipping remaining conditions"),d=!0):"all"===c&&!1===a||d?((0,w.default)("prioritizeAndRun::detected falsey result; skipping remaining conditions"),d=!0,!1):e(b,g)})};for(var h=0;ha.length)b=a.length;for(var c=0,d=Array(b);c=a.length?{done:!0}:{done:!1,value:a[d++]}},e:function(a){throw a;},f:b}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var e=!0,g=!1,m;return{s:function(){c=c.call(a)},n:function(){var a=c.next();e=a.done;return a},e:function(a){g=!0;m=a},f:function(){try{e||null==c.return||c.return()}finally{if(g)throw m;}}}}function H(a,b){a=a.slice();a.push(b); return a}function da(a,b){b=b.slice();b.unshift(a);return b}function C(a,b,c,e,g){if(!(this instanceof C))try{return new C(a,b,c,e,g)}catch(fa){if(!fa.avoidNew)throw fa;return fa.value}"string"===typeof a&&(g=e,e=c,c=b,b=a,a=null);var m=a&&"object"===d(a);a=a||{};this.json=a.json||c;this.path=a.path||b;this.resultType=a.resultType||"value";this.flatten=a.flatten||!1;this.wrap=p.call(a,"wrap")?a.wrap:!0;this.sandbox=a.sandbox||{};this.preventEval=a.preventEval||!1;this.parent=a.parent||null;this.parentProperty= a.parentProperty||null;this.callback=a.callback||e||null;this.otherTypeCallback=a.otherTypeCallback||g||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.");};if(!1!==a.autostart){b={path:m?a.path:b};m?"json"in a&&(b.json=a.json):b.json=c;a=this.evaluate(b);if(!a||"object"!==d(a))throw new T(a);return a}}Object.defineProperty(c,"__esModule",{value:!0});c.JSONPath=C;var p=Object.prototype.hasOwnProperty,T=function(a){function b(a){e(this, b);var d=c.call(this,'JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)');d.avoidNew=!0;d.value=a;d.name="NewError";return d}u(b,a);var c=K(b);return h(b)}(B(Error));C.prototype.evaluate=function(a,b,c,e){var g=this,h=this.parent,m=this.parentProperty,u=this.flatten,w=this.wrap;this.currResultType=this.resultType;this.currPreventEval=this.preventEval;this.currSandbox=this.sandbox;c=c||this.callback;this.currOtherTypeCallback=e||this.otherTypeCallback;b=b|| this.json;if((a=a||this.path)&&"object"===d(a)&&!Array.isArray(a)){if(!a.path&&""!==a.path)throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!p.call(a,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');b=a.json;u=p.call(a,"flatten")?a.flatten:u;this.currResultType=p.call(a,"resultType")?a.resultType:this.currResultType;this.currSandbox=p.call(a,"sandbox")?a.sandbox: this.currSandbox;w=p.call(a,"wrap")?a.wrap:w;this.currPreventEval=p.call(a,"preventEval")?a.preventEval:this.currPreventEval;c=p.call(a,"callback")?a.callback:c;this.currOtherTypeCallback=p.call(a,"otherTypeCallback")?a.otherTypeCallback:this.currOtherTypeCallback;h=p.call(a,"parent")?a.parent:h;m=p.call(a,"parentProperty")?a.parentProperty:m;a=a.path}h=h||null;m=m||null;Array.isArray(a)&&(a=C.toPathString(a));if((a||""===a)&&b)return a=C.toPathArray(a),"$"===a[0]&&1f?Math.max(0,f+m):Math.min(m,f);u=0>u?Math.max(0,u+m):Math.min(m,u);var k=[];for(m=f;marguments.length?!1:u.call(arguments,1);w[b]=!0;g(function(){w[b]&&(d?a.apply(null,d):a.call(null),c.clearImmediate(b))});return b};c.clearImmediate="function"===typeof d?d:function(a){delete w[a]}}).call(this)}).call(this,a("timers").setImmediate,a("timers").clearImmediate)},{"process/browser.js":21,timers:22}],23:[function(d,e,h){d=new (d("json-rules-engine").Engine);d.addRule(b);var u=c._edgeRuleFacts||{},w=function(a,b){var d= (new Date).getTime();try{c.getIdGraphProviderId();var e=c.tcfData&&""!==c.tcfData.gdpr_consent?"\x26gdpr\x3d"+c.tcfData.gdpr+"\x26gdpr_consent\x3d"+c.tcfData.gdpr_consent:"";(new Image).src="https://tra.neodatagroup.com/seg?id\x3d"+c.tagId+"\x26ad\x3d"+c.advId+"\x26sid\x3d"+c.customerId+"\x26seg\x3d"+b+"\x26rnd\x3d"+c.random+e;window.audienceSync=window._exaudirai.getSegments();localStorage.setItem(a,d)}catch(ma){g.log(ma.toString())}};d.run(u).then(function(c){c.events.map(function(c){g.logRuleEvaluation(!0, u,c,a,b);c=(new Date).getTime();if("blendee_a"in localStorage){var d=JSON.parse(localStorage.getItem("blendee_a"));a in d?864E5c},q.updateRuleLocalStorage=function(a,c,e,g){localStorage.setItem(a,e);g&&localStorage.setItem(c,(new Date).getTime())},q.touchClassification=function(){var a=btoa(window.location.origin+window.location.pathname),d={};try{d=JSON.parse(c.getLocal("neoLastSync_rtClassify"))||{}}catch(w){}var e=Object.keys(d);10<=e.length&&!d[a]&&(e=e.reduce(function(a,b){return d[b].ts< d[a].ts?b:a},e[0]),delete d[e]);d[a]={value:d[a]&&d[a].value||null,ts:(new Date).getTime()};c.setLocal("neoLastSync_rtClassify",JSON.stringify(d))},q.setClassification=function(a,d){g.log("Classification received "+a+", processing...");if(!d)g.log("Classification is not cached, we'll try next time");else if(a&&"object"===typeof a){d=window.location.origin+window.location.pathname;var b=c.getLocal("neoLastSync_rtClassify"),e={};try{e=JSON.parse(b)||{}}catch(K){}10<=Object.keys(e).length&&!e[btoa(d)]&& (g.log("More than 10 classifications detected, searching oldest classification..."),b=Object.entries(e).reduce(function(a,b){b=$jscomp.makeIterator(b);var c=b.next().value;return b.next().value.tsa.length)){var b=a[0];(a=a[1])&&"string"===typeof a&&(a=a.replace(/_/g,"-").replace(/,/g,"-"));h.push("c"+encodeURIComponent("|")+encodeURIComponent(b).toLowerCase()+"_"+encodeURIComponent(a).toLowerCase())}},this);if(a&&g.isArray(a.pv))for(var q=new aa,B=a.objectName||"dataLayer", x=0;x