This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathassets.min.js
2 lines (2 loc) · 2.72 KB
/
assets.min.js
1
2
/*! For license information please see assets.min.js.LICENSE.txt */
(()=>{var e={806:()=>{var e=window.Pantheon||{};e.varyHeaders=eiGtm.headersEnabled,e.GTM={interest:e.varyHeaders.includes("Interest")?eiGtm.interest:null,geo:e.varyHeaders.includes("Audience")||e.varyHeaders.includes("Audience-Set")?eiGtm.geo:null},e.GTM.dataPush=function(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"pzn",audience:{geo:e.GTM.geo},interest:e.GTM.interest})},e.GTM.dataPush()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}(()=>{"use strict";function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var t=function t(r,n){function i(t,i,o){if("undefined"!==typeof document){"number"===typeof(o=e({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var a in o)o[a]&&(s+="; "+a,!0!==o[a]&&(s+="="+o[a].split(";")[0]));return document.cookie=t+"="+r.write(i,t)+s}}return Object.create({set:i,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},i=0;i<t.length;i++){var o=t[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(n[a]=r.read(s,a),e===a)break}catch(e){}}return e?n[e]:n}},remove:function(t,r){i(t,"",e({},r,{expires:-1}))},withAttributes:function(r){return t(this.converter,e({},this.attributes,r))},withConverter:function(r){return t(e({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(r)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});let n;!function(){class e{constructor(){this.key="eiInterest.interest"}getStorage(){let e=localStorage.getItem(this.key);return e?JSON.parse(e):{}}setStorage(e){localStorage.setItem(this.key,JSON.stringify(e))}}if(!n){n=!0;const r=eiInterest,i=r.interest_threshold?r.interest_threshold:3,o=r.post_terms,s=r.cookie_expiration?r.cookie_expiration:14;if(o){let r=new e,n=r.getStorage();n=function(e,t){return e.forEach((e=>{e in t?t[e]++:t[e]=1})),t}(o,n),r.setStorage(n);let a=function(e,t){let r=0;if(Object.keys(e).forEach((n=>{e[n]>=t&&e[n]>r&&(r=e[n])})),r>0){let t=Object.entries(e);return t=t.filter((([e,t])=>t===r)),Object.fromEntries(t)}return{}}(n,i),c=Object.keys(a);if(c.length>0){const e={expires:parseInt(s)};t.set("interest",c.join("|"),e)}}}}();r(806)})()})();