!function(){"use strict";var a=window.puffergoLangRedirect;if(a&&Array.isArray(a.languages)&&!(a.languages.length<2)&&(e=a.cookieName,!((t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)")))&&decodeURIComponent(t[1])||function(){try{return window.localStorage.getItem(a.storageKey)}catch(a){return null}}()))){var e,t,n=Array.isArray(navigator.languages)&&navigator.languages.length?navigator.languages:[navigator.language||navigator.userLanguage||""],o={},r={},g={};a.languages.forEach(function(a){o[a.slug]=a,r[a.locale.toLowerCase()]=a;var e=d(a.locale);g[e]||(g[e]=a)});for(var l=null,u=0;u<n.length;u++){var i=String(n[u]||"").toLowerCase();if(i){if(d(i)===a.defaultLang||g[d(i)]&&g[d(i)].slug===a.defaultLang){l=a.defaultLang;break}var c=r[i];if(c&&c.slug!==a.defaultLang){l=c.slug;break}}}if(l&&l!==a.defaultLang){var s=o[l];s&&s.url&&(f(s.slug),window.location.replace(s.url))}else f(a.defaultLang)}function f(e){try{document.cookie=a.cookieName+"="+encodeURIComponent(e)+"; path=/; max-age=31536000; SameSite=Lax"+("https:"===window.location.protocol?"; Secure":"")}catch(a){}try{window.localStorage.setItem(a.storageKey,e)}catch(a){}}function d(a){return String(a||"").split("-")[0].toLowerCase()}}();