"use strict";this.default_IdentityRotateCookiesHttp=this.default_IdentityRotateCookiesHttp||{};(function(_){var window=this; try{ _._F_toggles_initialize=function(a){("undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:this)._F_toggles=a||[]};(0,_._F_toggles_initialize)([0xc0, ]); /* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var q=function(a){return aa?p?p.brands.some(function(b){return(b=b.brand)&&-1!=b.indexOf(a)}):!1:!1},t=function(a){var b;a:{if(b=r.navigator)if(b=b.userAgent)break a;b=""}return-1!=b.indexOf(a)},u=function(){return aa?!!p&&0a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=y(z(c,a)),b=c.next().value, a=c.next().value,c=b);A=c>>>0;B=a>>>0},ca=function(a,b){b>>>=0;a>>>=0;if(2097151>=b)var c=""+(4294967296*b+a);else x()?c=""+(BigInt(b)<>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+6777216*c+6710656*b,c+=8147497*b,b*=2,1E7<=a&&(c+=Math.floor(a/1E7),a%=1E7),1E7<=c&&(b+=Math.floor(c/1E7),c%=1E7),c=b+ba(c)+ba(a));return c},ba=function(a){a=String(a);return"0000000".slice(a.length)+a},da=function(){var a=A,b=B;b&2147483648?x()?a=""+(BigInt(b|0)<>>0)): (b=y(z(a,b)),a=b.next().value,b=b.next().value,a="-"+ca(a,b)):a=ca(a,b);return a},z=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]},ea=function(a){a=a>>14&1023;return 0===a?536870912:a},ha=function(a){return!(!a||"object"!==typeof a||a.g!==fa)},E=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object},H=function(a,b,c){if(!Array.isArray(a)||a.length)return!1;var e=F(a);if(e&1)return!0;if(!(b&&(Array.isArray(b)?b.includes(c):b.has(c))))return!1;G(a,e|1);return!0}, I=function(a){a=Error(a);a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity="warning";return a},ja=function(a){var b=typeof a;return"number"===b?Number.isFinite(a):"string"!==b?!1:ia.test(a)},ka=function(a){return"-"===a[0]?20>a.length?!0:20===a.length&&-922337a.length?!0:19===a.length&&922337>Number(a.substring(0,6))},la=function(a){a=Math.trunc(a);if(!Number.isSafeInteger(a)){C(a);var b=A,c=B;if(a= c&2147483648)b=~b+1>>>0,c=~c>>>0,0==b&&(c=c+1>>>0);b=4294967296*c+(b>>>0);a=a?-b:b}return a},ma=function(a){var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");-1!==b&&(a=a.substring(0,b));if(!ka(a)){if(16>a.length)C(Number(a));else if(x())a=BigInt(a),A=Number(a&BigInt(4294967295))>>>0,B=Number(a>>BigInt(32)&BigInt(4294967295));else{b=+("-"===a[0]);B=A=0;for(var c=a.length,e=b,f=(c-b)%6+b;f<=c;e=f,f+=6)e=Number(a.slice(e,f)),B*=1E6,A=1E6*A+e,4294967296<=A&&(B+= Math.trunc(A/4294967296),B>>>=0,A>>>=0);b&&(b=y(z(A,B)),a=b.next().value,b=b.next().value,A=a,B=b)}a=da()}return a},K=function(a,b,c){null==a&&(a=J);J=void 0;if(null==a){var e=96;c?(a=[c],e|=512):a=[];b&&(e=e&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("i");e=F(a);if(e&2048)throw Error("j");if(e&64)return a;e|=64;if(c&&(e|=512,c!==a[0]))throw Error("k");a:{c=a;var f=c.length;if(f){var k=f-1;if(E(c[k])){e|=256;b=k-(+!!(e&512)-1);if(1024<=b)throw Error("l");e=e&-16760833|(b&1023)<< 14;break a}}if(b){b=Math.max(b,f-(+!!(e&512)-1));if(1024f;f++){var k=c.concat(e[f].split(""));ra[f]=k;for(var d=0;d>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|g>>6];g=b[g&63];c[f++]=d+h+l+g}d=0;g=e;switch(a.length- k){case 2:d=a[k+1],g=b[(d&15)<<2]||e;case 1:a=a[k],c[f]=b[a>>2]+b[(a&3)<<4|d>>4]+g+e}a=c.join("")}return a}}return a},ta=function(a,b,c,e,f){if(null!=a){if(Array.isArray(a))a=H(a,void 0,0)?void 0:f&&F(a)&2?a:sa(a,b,c,void 0!==e,f);else if(E(a)){var k={},d;for(d in a)k[d]=ta(a[d],b,c,e,f);a=k}else a=b(a,e);return a}},sa=function(a,b,c,e,f){var k=e||c?F(a):0;e=e?!!(k&32):void 0;a=Array.prototype.slice.call(a);for(var d=0;db?-c:c}});P("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});P("Array.prototype.includes",function(a){return a?a:function(b,c){var e=this;e instanceof String&&(e=String(e));var f=e.length;c=c||0;for(0>c&&(c=Math.max(c+f,0));c=k){var d=f;if(f&256)var g=e[e.length-1];else{if(null==c)break a;g=e[k+(+!!(f&512)-1)]={};d|=256}g[b]=c;b=e?a=c&256?a[a.length-1][1]:void 0:(c=1+(+!!(c&512)-1),a=0>c||c>=a.length||c>=e?void 0:a[c]);a=null==a?a:ja(a)?"number"===typeof a? la(a):ma(a):void 0;return null!=a?a:b},Qa=function(a,b,c){if(null!=c){if("number"!==typeof c)throw I("int32");if(!Number.isFinite(c))throw I("int32");c|=0}Oa(a,b,c)};var T=function(a,b,c){this.j=K(a,b,c)};T.prototype.toJSON=function(){return Na?N(this,this.j,!1):N(this,sa(this.j,va,void 0,void 0,!1),!0)};var Ra=function(a){Na=!0;try{return JSON.stringify(a.toJSON(),oa)}finally{Na=!1}};T.prototype.G=ua;T.prototype.toString=function(){return N(this,this.j,!1).toString()};var Sa=function(a){this.j=K(a)};Ea(Sa,T);var Ta=function(a){this.j=K(a,0,"identity.hfcr")};Ea(Ta,T);var Ua=function(a){return function(b){if(null==b||""==b)b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("n");Ma(b,32);J=b;b=new a(b);J=void 0}return b}}(Ta);var Va=function(a,b,c,e,f){this.m=a;this.i=b;this.l=c;this.h=e;this.g=f};Va.prototype.start=function(){var a=this;if("undefined"!==typeof fetch)if(Wa()){var b=Xa(),c=Date.now();b&&b>c+1E3*this.g&&(b=Date.now()+1E3*this.g,U(b));var e=function(){Ya(a).then(function(){setTimeout(e,1E3*a.g)})};setTimeout(function(){e()},b&&b>c?b-c:0)}else Za(this)}; var Za=function(a){$a(a).then(function(){var b=function(){$a(a).then(function(){setTimeout(b,1E3*a.g)})};setTimeout(function(){b()},1E3*a.g)})},$a=function(a){var b=ab(a);return bb(b).then(function(c){c=cb(Pa(c));c!==a.g&&(a.g=c)}).catch(function(){a.g*=2})},Ya=function(a){var b=Xa();if(!b||Date.now()>=b){var c=Math.floor(1E3*Math.random());return new Promise(function(e){setTimeout(function(){var f=Xa();!f||Date.now()>=f?e(db(a)):e()},c)})}return Promise.resolve()},bb=function(a){a={method:"POST", credentials:"same-origin",cache:"no-store",mode:"same-origin",headers:{"Content-Type":"application/json"},body:Ra(a)};if("undefined"!==typeof AbortController){var b=new AbortController;setTimeout(function(){b.abort()},3E4);a.signal=b.signal}return fetch(new Request("/RotateCookies",a)).then(function(c){return c.text()}).then(function(c){return Ua(JSON.stringify(JSON.parse(c.substring(5))[0]))})},ab=function(a){var b=new Sa;var c=a.m;if(null!=c){var e=!!e;if(!ja(c))throw I("int64");"string"===typeof c? c=ma(c):e?(c=Math.trunc(c),Number.isSafeInteger(c)?c=String(c):(e=String(c),ka(e)?c=e:(C(c),c=da()))):c=la(c)}b=Oa(b,2,c);0!==a.i&&Qa(b,1,a.i);0!==a.l&&Qa(b,3,a.l);0!==a.h&&Qa(b,4,a.h);return b},db=function(a){U(Date.now()+1E3*a.g);var b=ab(a);return bb(b).then(function(c){c=cb(Pa(c));c!==a.g&&(U(Date.now()+1E3*c),a.g=c)}).catch(function(){a.g*=2;U(Date.now()+1E3*a.g)})},Wa=function(){try{var a=window.localStorage;if(!a)return!1;a.setItem("cookieRotationStorageAccessTest","1");a.removeItem("cookieRotationStorageAccessTest"); return!0}catch(b){return!1}},cb=function(a){60>a&&(a=60);return a},Xa=function(){try{var a=window.localStorage.getItem("nextRotationAttemptTs");if(!a)return null;var b=Math.floor(Number(a));return Number.isNaN(b)?null:b}catch(c){return null}},U=function(a){try{window.localStorage.setItem("nextRotationAttemptTs",a.toString())}catch(b){}};var eb=function(a,b,c,e,f){(new Va(a,b,c,e,f)).start()},V=["init"],W=r;V[0]in W||"undefined"==typeof W.execScript||W.execScript("var "+V[0]);for(var X;V.length&&(X=V.shift());)V.length||void 0===eb?W[X]&&W[X]!==Object.prototype[X]?W=W[X]:W=W[X]={}:W[X]=eb; }catch(e){_._DumpException(e)} }).call(this,this.default_IdentityRotateCookiesHttp); // Google Inc.