Professional Documents
Culture Documents
F
F
SPDX-License-Identifier: Apache-2.0
*/
const K=[];var L=a=>{var c;if(c=G(J(),"safevalues").o){var b=`A URL with content '$
{a}' was sanitized away.`,d=y;if(a=c)if(a=c&&d){a=d.value;var e=c?
D(G(J(),c.h())):x;a=a>=e.value}if(a){d=d||x;a=G(J(),c.h());"function"===typeof
b&&(b=b());B||(B=new A);e=B;c=c.h();if(0<e.g){var f=(e.j+1)%e.g;e.j=f;e.l?
(e=e.i[f],e.reset(d,b,c),c=e):(e.l=f==e.g-1,c=e.i[f]=new C(d,b,c))}else c=new
C(d,b,c);E(a,c)}}};-1===K.indexOf(L)&&K.push(L);(function(a,...c){if(!
Array.isArray(a)||!Array.isArray(a.raw))throw new TypeError("trustedResourceUrl is
a template literal tag function and can only be called as such (e.g.
trustedResourceUrl`/somepath.js`)");if(0===c.length)return u(a[0]);var
b=a[0].toLowerCase();if(/^data:/.test(b))throw Error("Data URLs cannot have
expressions in the template literal
input.");if(/^https:\/\//.test(b)||/^\/\//.test(b)){var d=b.indexOf("//")+2;var
e=b.indexOf("/",d);if(e<=d)throw Error("Can't interpolate data in a url's origin,
Please make sure to fully specify the origin, terminated with '/'.");
d=b.substring(d,e);if(!/^[0-9a-z.:-]+$/i.test(d))throw Error("The origin contains
unsupported characters.");if(!/^[^:]*(:[0-9]+)?$/i.test(d))throw Error("Invalid
port number.");if(!/(^|\.)[a-z][^.]*$/i.test(d))throw Error("The top-level domain
must start with a letter.");d=!0}else d=!1;if(d=!d){if(/^\//.test(b))if("/"===b||
1<b.length&&"/"!==b[1]&&"\\"!==b[1])d=!0;else throw Error("The path start in the
url is invalid.");else d=!1;d=!d}if(d){if(/^about:blank/.test(b)){if("about:blank"!
==b&&!/^about:blank#/.test(b))throw Error("The about url is invalid.");
b=!0}else b=!1;d=!b}if(d)throw Error("Trying to interpolate expressions in an
unsupported url format.");b=[a[0]];for(d=0;d<c.length;d+
+)b.push(encodeURIComponent(c[d])),b.push(a[d+1]);return
u(b.join(""))})`https://securepubads.g.doubleclick.net/pagead/js/car.js`;async
function M(a){var c=N;var b=(b=g.performance)&&b.now&&b.timing?Math.floor(b.now()
+b.timing.navigationStart):Date.now();c=await c.sharedStorage.get("privacy-sandbox-
client-creation-timestamp");c=Number(c);if(!c)return 0;b=(b-c)/864E5;return 0>b?
0:Math.min(a.length-1,Math.floor(Math.log2(b+1))+1)};const N=globalThis;class
O{async run(a){return M(a)}}N.register("privacy-sandbox-client-age-select-url",O);