console.log("AB testing active");let storageKey="ab_testing_persistent";function assignVariant(e,r,n,s,i,a){if(window.location.href===e){if(s+i+a!==100)return console.error("Percentages must sum to 100%."),null;a=Math.floor(100*Math.random())+1;let t;t=a<=s?e:a<=s+i?r:n;e=getPersistantUrl();e?window.location.href!==e&&redirectToVariantUrl(e):(setPersistantUrl(t),redirectToVariantUrl(t))}}function setPersistantUrl(t){sessionStorage.setItem(storageKey,t)}function getPersistantUrl(){return sessionStorage.getItem(storageKey)}function redirectToVariantUrl(t){console.log("redirecting to: "+t),window.location.assign(t)}assignVariant(user_settings.variantAUrl,user_settings.variantBUrl,user_settings.variantCUrl,user_settings.variantAPercentage,user_settings.variantBPercentage,user_settings.variantCPercentage);