cdn.optimizely.com
Open in
urlscan Pro
2600:141b:5000:59e::13b8
Public Scan
URL:
https://cdn.optimizely.com/js/6931781924.js
Submission: On January 12 via manual from CA — Scanned from CA
Submission: On January 12 via manual from CA — Scanned from CA
Form analysis
0 forms found in the DOMText Content
!(function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)})([(function(e,t,i){function n(){function e(e){var t=i(147),n=[t];n.push(i(149)),n.push(i(155)),n.push(i(158)),n.push(i(161)),n.push(i(163)),n.push(i(172)),n.push(i(175)),n.push(i(177)),n.push(i(180)),n.push(i(183)),n.push(i(187)),n.push(i(190)),n.push(i(193)),n.push(i(197)),n.push(i(201)),n.push(i(206)),n.push(i(207)),n.push(i(208)),n.push(i(211)),n.push(i(212)),n.push(i(216)),n.push(i(221)),n.push(i(222)),p.initializePlugins(n)}function t(e,t,i){return"/dist/preview_data.js?token=__TOKEN__&preview_layer_ids=__PREVIEW_LAYER_IDS__".replace("__TOKEN__",e).replace("__PROJECT_ID__",t).replace("__PREVIEW_LAYER_IDS__",i.join(",")).replace("__GET_ONLY_PREVIEW_LAYERS__",!0)}window.performance&&window.performance.mark&&window.performance.mark("optimizely:blockBegin");var n=i(1);n.initialize();var r=i(82),a=i(23),o=i(16);i(128);var s=o.get("stores/directive"),c=i(90);if(!c.isCORSSupported())throw new Error("CORS is not supported on this browser, aborting.");var u,l=i(130),d=i(117),f=i(131),g={"layers": [{"holdback": null, "activation": {}, "integrationSettings": {}, "integrationStringVersion": 2, "viewIds": ["20894862574"], "experiments": [{"weightDistributions": [{"entityId": "20917312669", "endOfRange": 5000}, {"entityId": "20901831784", "endOfRange": 10000}], "audienceName": "Desktop Only (1024px)", "name": "IPV-272 [Solutions] Higher CTA on Page", "bucketingStrategy": null, "variations": [{"id": "20917312669", "actions": [{"viewId": "20894862574", "changes": []}], "name": "v0: Control (IPV-272)"}, {"id": "20901831784", "actions": [{"viewId": "20894862574", "changes": [{"value": function($){!function(o,i,n){var r=20886222144,t=window["CRO_SHARED_"+r]||(window["CRO_SHARED_"+r]={}),w=window.optimizely.get("utils"),e=w.error&&w.error.bind(window,o)||console.error.bind(window,"[cro] [".concat(o,"]"));try{t.applyTreatment("v1","solutions-pages")}catch(o){e(o)}}("ipv272"); }, "dependencies": [], "type": "custom_code", "id": "b4b35124-90f4-489a-b8c4-38647e77d050"}]}], "name": "v1: CTA Blocks"}], "audienceIds": ["and", "20221898409"], "changes": null, "id": "20886222144", "integrationSettings": null}], "id": "20890822815", "weightDistributions": null, "name": "IPV-272 [Solutions] Higher CTA on Page", "groupId": null, "commitId": "20973420020", "decisionMetadata": {"experimentPriorities": [[{"entityId": "20886222144", "endOfRange": null}]], "offerConsistency": null}, "policy": "single_experiment", "changes": [{"dependencies": [], "type": "custom_code", "id": "a828fa32-8911-490c-82d9-259701052576", "value": function($){!function(e){var t=20886222144,a=window["CRO_SHARED_"+t]||(window["CRO_SHARED_"+t]={}),r=window.optimizely.get("utils"),o=r.log&&r.log.bind(window,"[".concat(e,"]"))||console.warn.bind(window,"[cro] [".concat(e,"]")),n=r.error&&r.error.bind(window,e)||console.error.bind(window,"[cro] [".concat(e,"]"));o("v1.2");var i={"cta1":{"text":"2021 KuppingerCole Leadership Compass for Database and Big Data Security","link":"https://www.imperva.com/resources/resource-library/reports/kuppingercole-2021-leadership-compass-full-report/"},"cta2":{"text":"Forrester Research: Total Economic Impact™ of the Imperva Data Protection Solution","link":"https://www.imperva.com/resources/resource-library/reports/the-total-economic-impact-of-the-imperva-data-protection-solution-full-report/"},"cta3":{"text":"The Forrester New Wave™ Bot Management Report: The 13 Providers That Matter Most","link":"https://www.imperva.com/resources/resource-library/reports/forrester-new-wave-bot-management-q1-2020-13-providers-that-matter-most-and-how-they-stack-up/"},"cta4":{"text":"Omdia Market Radar for Next-Generation Application Security: Runtime","link":"https://www.imperva.com/resources/resource-library/reports/omdia-market-radar-for-next-generation-application-security-runtime/"},"cta5":{"text":"The Forrester Wave™: DDoS Mitigation Solutions, Q1 2021","link":"https://www.imperva.com/resources/resource-library/reports/the-forrester-wave-ddos-mitigation-solutions-q1-2021/"}},c={"safeguard-sensitive-and-personal-data":i.cta1,"advancing-data-governance":i.cta1,"mitigating-malicious-data-activity":i.cta1,"automating-insider-threat-management":i.cta1,"securely-move-your-data-to-the-cloud":i.cta1,"assuring-data-compliance-and-privacy":i.cta2,"preventing-account-takeover-fraud":i.cta3,"ensuring-consistent-application-availability":i.cta5,"stopping-software-supply-chain-attacks":i.cta4},s=function(){var e,t,a,r,o,n,i,s=window.location.href.split("?")[0].split("solutions")[1].replace(/\//g,"");return Object.keys(c).indexOf(s)>-1?(e=s,t=document.createElement("div"),a=document.createElement("div"),r=document.createElement("p"),o=document.createTextNode(c[e].text),n=document.createElement("a"),i=document.createTextNode("Get the Report"),t.classList.add("cro-block"),a.classList.add("cro-block--inner"),n.classList="btn impv-yellow-square-btn arrow-btn d-none d-md-block ths-free-trial-cta not-link cro-getthereport",n.setAttribute("id","cro-button"),n.href=c[e].link,r.appendChild(o),n.appendChild(i),a.append(r,n),t.appendChild(a),t):null};a.applyTreatment=function(t,a){!function(t,a){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.documentElement;r.classList.add(e),r.classList.add(e+t),o("Variation ".concat(t,", page ").concat(a))}(t,a);var i=s();r.waitForElement(".required-capabilities-panel").then((function(e){null!==i&&e.parentElement.insertBefore(i,e)}))["catch"](n)}}("ipv272"); }}, {"dependencies": [], "type": "append", "id": "608f8b42-6d97-41b5-bf61-8bc404aa6dd9", "value": "<style>.ipv272 .pain-points-panel{padding-bottom:50px}.ipv272 .cro-block{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;width:100%;background-color:#050507;background-image:url(//cdn.optimizely.com/img/6931781924/b8c071be34e44d67b6cd560610cf5ea6.png);background-size:cover;height:212px;margin-bottom:40px}.ipv272 .cro-block .cro-block--inner{background:none;width:68%;min-width:820px;height:84%;border:rgba(255,255,255,0.26) solid 1px;border-radius:20px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;text-align:center;padding:15px 15%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}@media only screen and (max-width: 1460px){.ipv272 .cro-block .cro-block--inner{padding:15px 10%}}@media only screen and (max-width: 1170px){.ipv272 .cro-block .cro-block--inner{padding:15px 100px}}@media only screen and (max-width: 1130px){.ipv272 .cro-block .cro-block--inner{padding:15px 50px}}.ipv272 .cro-block .cro-block--inner p{font-family:Inter, Verdana, sans-serif;color:white;font-size:24px;font-weight:800;line-height:1.5}.ipv272 .cro-block .cro-block--inner a#cro-button{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;font-size:14px;padding:8px 30px}.ipv272 .cro-block .cro-block--inner a#cro-button:hover{text-decoration:underline}</style>", "selector": "head"}]}, {"holdback": null, "activation": {}, "integrationSettings": {}, "integrationStringVersion": 2, "viewIds": ["20932640488"], "experiments": [{"weightDistributions": [{"entityId": "20961690495", "endOfRange": 5000}, {"entityId": "20979920349", "endOfRange": 10000}], "audienceName": "Desktop Only (1024px)", "name": "IPV-276 [DataSec][Desktop] DataSec-specific \"Start for Free\" link", "bucketingStrategy": null, "variations": [{"id": "20961690495", "actions": [{"viewId": "20932640488", "changes": []}, {"viewId": "20932640488", "changes": []}, {"viewId": "20932640488", "changes": []}, {"viewId": "20932640488", "changes": []}, {"viewId": "20932640488", "changes": []}, {"viewId": "20932640488", "changes": []}, {"viewId": "20932640488", "changes": []}, {"viewId": "20932640488", "changes": []}, {"viewId": "20932640488", "changes": []}, {"viewId": "20932640488", "changes": []}], "name": "v0: Control (IPV-276)"}, {"id": "20979920349", "actions": [{"viewId": "20932640488", "changes": [{"value": function($){!function(o,r,i){var n=20960140710,t=window["CRO_SHARED_"+n]||(window["CRO_SHARED_"+n]={}),e=window.optimizely.get("utils"),w=e.error&&e.error.bind(window,o)||console.error.bind(window,"[cro] [".concat(o,"]"));try{t.applyTreatment("v1","data-sec-product-solution-pages")}catch(o){w(o)}}("ipv276"); }, "dependencies": [], "type": "custom_code", "id": "fbbc7440-f47d-4e99-b058-1cca5d03be96"}]}, {"viewId": "20932640488", "changes": [{"value": function($){!function(o,r,i){var n=20960140710,t=window["CRO_SHARED_"+n]||(window["CRO_SHARED_"+n]={}),e=window.optimizely.get("utils"),w=e.error&&e.error.bind(window,o)||console.error.bind(window,"[cro] [".concat(o,"]"));try{t.applyTreatment("v1","data-sec-product-solution-pages")}catch(o){w(o)}}("ipv276"); }, "dependencies": [], "type": "custom_code", "id": "d61546b3-c961-4d80-a344-df36c4b50f55"}]}, {"viewId": "20932640488", "changes": [{"value": function($){!function(o,r,i){var n=20960140710,t=window["CRO_SHARED_"+n]||(window["CRO_SHARED_"+n]={}),e=window.optimizely.get("utils"),w=e.error&&e.error.bind(window,o)||console.error.bind(window,"[cro] [".concat(o,"]"));try{t.applyTreatment("v1","data-sec-product-solution-pages")}catch(o){w(o)}}("ipv276"); }, "dependencies": [], "type": "custom_code", "id": "0d95b5df-000f-4fc6-a082-6dd439eb2405"}]}, {"viewId": "20932640488", "changes": [{"value": function($){!function(o,r,i){var n=20960140710,t=window["CRO_SHARED_"+n]||(window["CRO_SHARED_"+n]={}),e=window.optimizely.get("utils"),w=e.error&&e.error.bind(window,o)||console.error.bind(window,"[cro] [".concat(o,"]"));try{t.applyTreatment("v1","data-sec-product-solution-pages")}catch(o){w(o)}}("ipv276"); }, "dependencies": [], "type": "custom_code", "id": "129d6c77-8f24-442f-a194-80d26d986a00"}]}, {"viewId": "20932640488", "changes": [{"value": function($){!function(o,r,i){var n=20960140710,t=window["CRO_SHARED_"+n]||(window["CRO_SHARED_"+n]={}),e=window.optimizely.get("utils"),w=e.error&&e.error.bind(window,o)||console.error.bind(window,"[cro] [".concat(o,"]"));try{t.applyTreatment("v1","data-sec-product-solution-pages")}catch(o){w(o)}}("ipv276"); }, "dependencies": [], "type": "custom_code", "id": "e30d7e62-c8d6-4021-84c5-df8f355be502"}]}, {"viewId": "20932640488", "changes": [{"value": function($){!function(o,r,i){var n=20960140710,t=window["CRO_SHARED_"+n]||(window["CRO_SHARED_"+n]={}),e=window.optimizely.get("utils"),w=e.error&&e.error.bind(window,o)||console.error.bind(window,"[cro] [".concat(o,"]"));try{t.applyTreatment("v1","data-sec-product-solution-pages")}catch(o){w(o)}}("ipv276"); }, "dependencies": [], "type": "custom_code", "id": "e076b470-cd78-47be-87b4-d9aa98b604de"}]}, {"viewId": "20932640488", "changes": [{"value": function($){!function(o,r,i){var n=20960140710,t=window["CRO_SHARED_"+n]||(window["CRO_SHARED_"+n]={}),e=window.optimizely.get("utils"),w=e.error&&e.error.bind(window,o)||console.error.bind(window,"[cro] [".concat(o,"]"));try{t.applyTreatment("v1","data-sec-product-solution-pages")}catch(o){w(o)}}("ipv276"); }, "dependencies": [], "type": "custom_code", "id": "0c90da0d-530f-49f1-b387-e96ffc191c49"}]}, {"viewId": "20932640488", "changes": [{"value": function($){!function(o,r,i){var n=20960140710,t=window["CRO_SHARED_"+n]||(window["CRO_SHARED_"+n]={}),e=window.optimizely.get("utils"),w=e.error&&e.error.bind(window,o)||console.error.bind(window,"[cro] [".concat(o,"]"));try{t.applyTreatment("v1","data-sec-product-solution-pages")}catch(o){w(o)}}("ipv276"); }, "dependencies": [], "type": "custom_code", "id": "3b0ffa31-4047-44ad-9e3e-94b4831b3bc9"}]}, {"viewId": "20932640488", "changes": [{"value": function($){!function(o,r,i){var n=20960140710,t=window["CRO_SHARED_"+n]||(window["CRO_SHARED_"+n]={}),e=window.optimizely.get("utils"),w=e.error&&e.error.bind(window,o)||console.error.bind(window,"[cro] [".concat(o,"]"));try{t.applyTreatment("v1","data-sec-product-solution-pages")}catch(o){w(o)}}("ipv276"); }, "dependencies": [], "type": "custom_code", "id": "cc8983ec-9760-4205-ab57-9dc877fed3c8"}]}, {"viewId": "20932640488", "changes": [{"value": function($){!function(o,r,i){var n=20960140710,t=window["CRO_SHARED_"+n]||(window["CRO_SHARED_"+n]={}),e=window.optimizely.get("utils"),w=e.error&&e.error.bind(window,o)||console.error.bind(window,"[cro] [".concat(o,"]"));try{t.applyTreatment("v1","data-sec-product-solution-pages")}catch(o){w(o)}}("ipv276"); }, "dependencies": [], "type": "custom_code", "id": "85a4fdfe-de60-442f-9035-bf80dbe220ae"}]}], "name": "v1: Link to Cloud Data tab"}], "audienceIds": ["and", "20221898409"], "changes": null, "id": "20960140710", "integrationSettings": null}], "id": "20985400799", "weightDistributions": null, "name": "IPV-276 [DataSec][Desktop] DataSec-specific \"Start for Free\" link", "groupId": null, "commitId": "21005440567", "decisionMetadata": {"experimentPriorities": [[{"entityId": "20960140710", "endOfRange": null}]], "offerConsistency": null}, "policy": "single_experiment", "changes": [{"dependencies": [], "type": "custom_code", "id": "e8c68782-208a-490f-a562-620fc1593a57", "value": function($){!function(n){var o=20960140710,t=window["CRO_SHARED_"+o]||(window["CRO_SHARED_"+o]={}),e=window.optimizely.get("utils"),r=e.log&&e.log.bind(window,"[".concat(n,"]"))||console.warn.bind(window,"[cro] [".concat(n,"]")),c=e.error&&e.error.bind(window,n)||console.error.bind(window,"[cro] [".concat(n,"]"));r("v0.1"),t.applyTreatment=function(o,t){!function(o,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.documentElement;e.classList.add(n),e.classList.add(n+o),r("Variation ".concat(o,", page ").concat(t))}(o,t);var i="/products/data-privacy/"===window.location.pathname?2:4;e.waitUntil((function(){return document.querySelectorAll('a[href^="/free-trial/"]').length>=i})).then((function(){document.querySelectorAll('a[href^="/free-trial/"]').forEach((function(n){n.href="https://www.imperva.com/free-trial/?prod=cloud-data-security"}))}))["catch"](c)}}("ipv276"); }}]}, {"holdback": null, "activation": {}, "integrationSettings": {}, "integrationStringVersion": 2, "viewIds": ["20583073604"], "experiments": [{"weightDistributions": [{"entityId": "21041540028", "endOfRange": 10000}], "audienceName": "Desktop Only (1024px)", "name": "[100% v1] IPV-268: [Learning Center DDoS][Desktop] Banner in Sidebar", "bucketingStrategy": null, "variations": [{"id": "21026072157", "actions": [{"viewId": "20583073604", "changes": []}], "name": "v0: Control (IPV268)"}, {"id": "21041540028", "actions": [{"viewId": "20583073604", "changes": [{"value": function($){!function(n,r,e){var i=20830400042,o=window["CRO_SHARED_"+i]||(window["CRO_SHARED_"+i]={}),t=window.optimizely.get("utils"),w=t.error&&t.error.bind(window,n)||console.error.bind(window,"[cro] [".concat(n,"]"));try{o.applyTreatment("v1","edge-security-pages-in-learning-center")}catch(n){w(n)}}("ipv268"); }, "dependencies": [], "type": "custom_code", "id": "b49c3624cd414937825dbc0418388b63"}]}], "name": "v1: Sidebar Banner"}], "audienceIds": ["and", "20221898409"], "changes": null, "id": "21016482540", "integrationSettings": null}], "id": "21024840177", "weightDistributions": null, "name": "[100% v1] IPV-268: [Learning Center DDoS][Desktop] Banner in Sidebar", "groupId": null, "commitId": "21020193398", "decisionMetadata": null, "policy": "single_experiment", "changes": [{"dependencies": [], "type": "custom_code", "id": "d54b9b8ba7074ec2bc1d352274f3d708", "value": function($){!function(n){var a=20830400042,r=window["CRO_SHARED_"+a]||(window["CRO_SHARED_"+a]={}),e=window.optimizely.get("utils"),o=e.log&&e.log.bind(window,"[".concat(n,"]"))||console.warn.bind(window,"[cro] [".concat(n,"]")),c=e.error&&e.error.bind(window,n)||console.error.bind(window,"[cro] [".concat(n,"]"));o("v0.1"),r.applyTreatment=function(a,r){!function(a,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.documentElement;e.classList.add(n),e.classList.add(n+a),o("Variation ".concat(a,", page ").concat(r))}(a,r),e.waitForElement(".sticky-wrap-sidebar-col .sidebar-col").then((function(n){n.insertAdjacentHTML("beforeEnd",'\n <a class="gartner-sidebar-banner" href="https://www.imperva.com/resources/resource-library/reports/magic-quadrant-for-web-application-api-protection-waap/">\n <div class="banner-text">\n <span class="banner-header">Gartner® Magic Quadrant™ for WAAP 2021</span>\n <span class="banner-copy">Get the 2021 Report →</span>\n </div>\n <img class="banner-graph" src="//cdn.optimizely.com/img/6931781924/c9f1f57d75bf4bb0bb99d9b30055e86e.png"/>\n </a>\n ')}))["catch"](c)}}("ipv268"); }}, {"dependencies": [], "type": "append", "id": "52fd524b3bde45a59ce1367467ac2e38", "value": "<style>.ipv268 .gartner-sidebar-banner{background-image:url(//cdn.optimizely.com/img/6931781924/86a07954be6344fda7ab6627f2a50d1e.png);background-size:cover;background-position:right center;width:100%;padding:1.5rem;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:1.5rem;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border-radius:12px;margin-top:60px}.ipv268 .gartner-sidebar-banner span{color:white;text-decoration:none;line-height:26px;display:block}.ipv268 .gartner-sidebar-banner span.banner-header{font-size:18px;font-weight:bold}.ipv268 .gartner-sidebar-banner span.banner-copy{font-size:16px}.ipv268 .gartner-sidebar-banner .banner-graph{max-width:80px}@media (max-width: 1300px){.ipv268 .gartner-sidebar-banner .banner-graph{max-width:95px}}</style>", "selector": "head"}]}, {"holdback": null, "activation": {}, "integrationSettings": {}, "integrationStringVersion": 2, "viewIds": ["21035261630"], "experiments": [{"weightDistributions": [{"entityId": "20994691647", "endOfRange": 5000}, {"entityId": "20992132435", "endOfRange": 10000}], "audienceName": "[QA] Cro Metrics Test Cookie (OLI),Desktop Only (1024px)", "name": "[TEST COOKIE] IPV-282 [Snapshot][Desktop] Registration Modal", "bucketingStrategy": null, "variations": [{"id": "20994691647", "actions": [{"viewId": "21035261630", "changes": [{"value": function($){!function(o,i,r){var n=21000152280,w=window["CRO_SHARED_"+n]||(window["CRO_SHARED_"+n]={}),c=window.optimizely.get("utils"),t=c.error&&c.error.bind(window,o)||console.error.bind(window,"[cro] [".concat(o,"]"));try{w.applyMetrics("v0")}catch(o){t(o)}}("ipv282"); }, "dependencies": [], "type": "custom_code", "id": "635a3d9e-2d41-416b-9179-3ec0a75eb558"}]}], "name": "v0: Control IPV-282"}, {"id": "20992132435", "actions": [{"viewId": "21035261630", "changes": [{"value": function($){!function(r,o,i){var n=21000152280,e=window["CRO_SHARED_"+n]||(window["CRO_SHARED_"+n]={}),t=window.optimizely.get("utils"),w=t.error&&t.error.bind(window,r)||console.error.bind(window,"[cro] [".concat(r,"]"));try{e.applyMetrics("v1"),e.applyTreatment("v1","resources-imperva-snapshot")}catch(r){w(r)}}("ipv282"); }, "dependencies": [], "type": "custom_code", "id": "6890987b-4fcc-4e77-b706-b9f85e96073b"}]}], "name": "v1: Registration Modal"}], "audienceIds": ["and", "15708121423", "20221898409"], "changes": null, "id": "21000152280", "integrationSettings": null}], "id": "21026740128", "weightDistributions": null, "name": "[TEST COOKIE] IPV-282 [Snapshot][Desktop] Registration Modal", "groupId": null, "commitId": "21053810493", "decisionMetadata": {"experimentPriorities": [[{"entityId": "21000152280", "endOfRange": null}]], "offerConsistency": null}, "policy": "single_experiment", "changes": [{"dependencies": [], "type": "custom_code", "id": "6c597f0b-e056-46c2-8d44-17b067d3ecb9", "value": function($){function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}!function(e){var t=21000152280,r=window["CRO_SHARED_"+t]||(window["CRO_SHARED_"+t]={}),o=window.optimizely.get("utils"),n=o.log&&o.log.bind(window,"[".concat(e,"]"))||console.warn.bind(window,"[cro] [".concat(e,"]")),a=o.error&&o.error.bind(window,e)||console.error.bind(window,"[cro] [".concat(e,"]"));n("v0.4"),r.applyMetrics=function(){o.waitForElement(".resource-content iframe").then((function(t){var r,o;o=function(){n("iframe interaction"),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.optimizely.push({"type":"event","eventName":e,"tags":t})}("".concat(e,"_snapshot_video_interaction"))},(r=t).hovering=!1,r.addEventListener("mouseover",(function(){r.hovering=!0})),r.addEventListener("mouseleave",(function(){r.hovering=!1})),window.addEventListener("blur",(function(){r.hovering&&o()}))}))["catch"](a)},r.applyTreatment=function(t,r){!function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.documentElement;o.classList.add(e),o.classList.add(e+t),n("Variation ".concat(t,", page ").concat(r))}(t,r),o.waitForElement(".grey-box.form-section").then((function(t){var r=document.createElement("div");r.setAttribute("class","".concat(e,"-modal-overlay")),r.dataset.cro="modal-close";var o=document.createElement("div");o.setAttribute("class","".concat(e,"-modal-form")),o.innerHTML='<div class="close" data-cro="modal-close">×</div>',r.insertAdjacentElement("beforeend",o),_toConsumableArray(t.querySelectorAll(":scope > *")).forEach((function(e){o.insertAdjacentElement("beforeend",e)})),document.querySelector("body > div.wrapper").insertAdjacentElement("beforeend",r),t.innerHTML='<h3 class="box-title">Start Your Free Scan</h3>';var n=document.createElement("button");n.setAttribute("class","".concat(e,"-modal-trigger btn btn-impv")),n.setAttribute("type","button"),n.dataset.cro="trigger",n.textContent="Get Started",t.insertAdjacentElement("beforeend",n),n.onclick=function(){r.classList.add("cro-modal-show"),document.body.classList.add("modal-open")},document.querySelectorAll('[data-cro="modal-close"]').forEach((function(e){e.addEventListener("click",(function(e){e.stopPropagation(),e.target.matches('[data-cro="modal-close"]')&&(r.classList.remove("cro-modal-show"),document.body.classList.remove("modal-open"))}))}))}))["catch"](a)}}("ipv282"); }}, {"dependencies": [], "type": "append", "id": "f185c1a5-f3f1-465d-824d-2cff109a6cbe", "value": "<style>@media (max-width: 767px){.ipv282 #gated-ungated .grey-box h3.box-title{font-size:1.5rem}}.ipv282-modal-trigger{background-color:#285ae6;color:#fff;margin-right:auto;display:block;font-size:1rem;font-weight:400;max-width:350px;width:auto}@media (max-width: 767px){.ipv282-modal-trigger{width:100%}}.ipv282-modal-trigger:hover{color:#fff;background-color:#5e89ff;--box-shadow-color: rgba(58,109,252,0.5)}.ipv282-modal-overlay{display:none;position:fixed;top:0;left:0;height:100vh;width:100vw;background:rgba(33,33,33,0.65);z-index:2222223;padding:25px 0;overflow-x:hidden;overflow-y:auto !important}.ipv282-modal-overlay.cro-modal-show{display:block}.ipv282-modal-form{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%);background:#fff;padding:50px 60px;width:90vw;max-width:584px}@media (max-width: 767px){.ipv282-modal-form{position:relative;top:initial;left:initial;margin:5vh auto;width:95vw;max-width:initial;-webkit-transform:none;-ms-transform:none;transform:none;padding:30px}}.ipv282-modal-form h3{font-size:1.875rem;line-height:1.2;font-weight:600;margin:0 0 20px}@media (max-width: 767px){.ipv282-modal-form h3{font-size:1.5rem}}.ipv282-modal-form div.close{font-size:1.9375rem;font-weight:300;line-height:1;color:#d0d0d0;position:absolute;top:.25rem;right:.75rem}.ipv282-modal-form div.close:hover{cursor:pointer}.ipv282-modal-form section.form-section{padding:0}.ipv282-modal-form section.form-section .col-12{padding:0}.ipv282-modal-form section.form-section .row{margin:0}.ipv282-modal-form section.form-section .mktoFieldDescriptor{margin-bottom:17px !important}.ipv282-modal-form section.form-section form.mktoForm{max-width:100%;padding:0 !important}.ipv282-modal-form section.form-section form.mktoForm .inputType_text label,.ipv282-modal-form section.form-section form.mktoForm .inputType_email label,.ipv282-modal-form section.form-section form.mktoForm .inputType_tel label{display:none !important}.ipv282-modal-form section.form-section form.mktoForm .mktoFieldWrap.inputType_text.mktoInvalidField.mktoFieldTouched input[type=\"text\"].mktoInvalid,.ipv282-modal-form section.form-section form.mktoForm .mktoFieldWrap.inputType_tel.mktoInvalidField.mktoFieldTouched input[type=\"tel\"].mktoInvalid,.ipv282-modal-form section.form-section form.mktoForm .mktoFieldWrap.inputType_email.mktoInvalidField.mktoFieldTouched input[type=\"email\"].mktoInvalid{background-position-y:50% !important}.ipv282-modal-form section.form-section form.mktoForm input{font-size:1rem !important;border-color:#acb9c5 !important}.ipv282-modal-form section.form-section form.mktoForm input:not[type=\"checkbox\"]{padding:10px 20px !important;height:50px !important}.ipv282-modal-form section.form-section form.mktoForm input::-webkit-input-placeholder{color:rgba(0,0,0,0.3) !important;opacity:1 !important;font-size:1rem !important}.ipv282-modal-form section.form-section form.mktoForm input::-moz-placeholder{color:rgba(0,0,0,0.3) !important;opacity:1 !important;font-size:1rem !important}.ipv282-modal-form section.form-section form.mktoForm input:-ms-input-placeholder{color:rgba(0,0,0,0.3) !important;opacity:1 !important;font-size:1rem !important}.ipv282-modal-form section.form-section form.mktoForm input::-ms-input-placeholder{color:rgba(0,0,0,0.3) !important;opacity:1 !important;font-size:1rem !important}.ipv282-modal-form section.form-section form.mktoForm input::placeholder{color:rgba(0,0,0,0.3) !important;opacity:1 !important;font-size:1rem !important}.ipv282-modal-form section.form-section form.mktoForm input+.mktoError{padding-top:2px}.ipv282-modal-form section.form-section form.mktoForm button[type=\"submit\"]{padding:11px 30px !important;max-width:70%;margin-top:20px}@media (max-width: 767px){.ipv282-modal-form section.form-section form.mktoForm button[type=\"submit\"]{max-width:initial}}</style>", "selector": "head"}]}], "visitorIdLocator": null, "listTargetingKeys": [], "groups": [], "views": [{"category": "other", "staticConditions": ["and", ["or", {"type": "url", "value": "https://www.imperva.com", "match": "substring"}], ["not", ["or", {"type": "url", "value": "https://dev.imperva.com/", "match": "substring"}, {"type": "url", "value": "https://test.imperva.com/", "match": "substring"}, {"type": "url", "value": "https://www.imperva.com/de/", "match": "substring"}, {"type": "url", "value": "https://www.imperva.com/jp/", "match": "substring"}]]], "activationType": "callback", "name": "Sitewide (exclude Homepage)", "apiName": "6931781924_sitewide_exclude_homepage", "tags": [], "undoOnDeactivation": false, "activationCode": function callbackFn(activate, options) { window.optimizely.get('utils').waitUntil(function() { return document.querySelector('.page-template-page-home-page') || document.readyState === 'complete'; }).then(function() { if (!document.querySelector('.page-template-page-home-page')) activate(); }); } , "deactivationEnabled": false, "id": "17880360331"}, {"category": "other", "staticConditions": ["and", ["or", {"type": "url", "value": "https://www.imperva.com", "match": "substring"}, {"type": "url", "value": "https://www.imperva.com/", "match": "simple"}], ["not", ["or", {"type": "url", "value": "https://dev.imperva.com/", "match": "substring"}, {"type": "url", "value": "https://test.imperva.com/", "match": "substring"}, {"type": "url", "value": "https://www.imperva.com/de/", "match": "substring"}, {"type": "url", "value": "https://www.imperva.com/jp/", "match": "substring"}]]], "name": "[IPV-101] Sitewide", "apiName": "6931781924_ipv101_sitewide", "tags": [], "undoOnDeactivation": false, "activationCode": function callbackFn(activate, options) { window.optimizely.get('utils').waitUntil(function() { return document.querySelector('.page-template-page-home-page') || document.readyState === 'complete'; }).then(function() { if (document.querySelector('.page-template-page-home-page')) activate(); }); } , "deactivationEnabled": false, "id": "17895720239"}, {"category": "other", "staticConditions": ["and", ["or", {"type": "url", "value": "https://www.imperva.com/free-trial", "match": "simple"}]], "name": "Free Trial", "apiName": "6931781924_free_trial", "tags": [], "undoOnDeactivation": false, "deactivationEnabled": false, "id": "20052915561"}, {"category": "other", "staticConditions": ["and", ["or", {"type": "url", "value": "https://www.imperva.com/learn/", "match": "substring"}], ["or", {"type": "element_present", "value": ".hero-tags a[href*=\"/learn/edge-security\"]"}]], "name": "Edge Security pages in Learning Center", "apiName": "6931781924_edge_security_pages_in_learning_center", "tags": [], "undoOnDeactivation": false, "deactivationEnabled": false, "id": "20583073604"}, {"category": "other", "staticConditions": ["and", ["or", {"type": "url", "value": "https://www.imperva.com/resources/resource-library/reports/magic-quadrant-for-web-application-api-protection-waap/", "match": "simple"}]], "name": "Gartner Report Page", "apiName": "6931781924_gartner_report_page", "tags": [], "undoOnDeactivation": false, "deactivationEnabled": false, "id": "20804370146"}, {"category": "other", "staticConditions": ["and", ["or", {"type": "url", "value": "^https://www.imperva.com/solutions/*", "match": "regex"}], ["not", ["or", {"type": "url", "value": "https://www.imperva.com/solutions/government-cyber-protection/", "match": "simple"}]], ["not", ["or", {"type": "url", "value": "https://www.imperva.com/solutions/healthcare-services-protection/", "match": "simple"}]], ["not", ["or", {"type": "url", "value": "https://www.imperva.com/solutions/financial-services-protection/", "match": "simple"}]], ["not", ["or", {"type": "url", "value": "https://www.imperva.com/solutions/protection-for-telecoms-and-isps/", "match": "simple"}]], ["not", ["or", {"type": "url", "value": "https://www.imperva.com/solutions/retail-and-ecommerce-protection/", "match": "simple"}]]], "name": "Solutions Pages", "apiName": "6931781924_solutions_pages", "tags": [], "undoOnDeactivation": false, "deactivationEnabled": false, "id": "20894862574"}, {"category": "other", "staticConditions": ["and", ["or", {"type": "url", "value": "https://www.imperva.com/products/cloud-data-protection/", "match": "simple"}, {"type": "url", "value": "https://www.imperva.com/products/database-risk-compliance/", "match": "simple"}, {"type": "url", "value": "https://www.imperva.com/products/data-user-behavior-analytics/", "match": "simple"}, {"type": "url", "value": "https://www.imperva.com/products/data-privacy/", "match": "simple"}, {"type": "url", "value": "https://www.imperva.com/products/cloud-data-security/", "match": "simple"}, {"type": "url", "value": "https://www.imperva.com/solutions/safeguard-sensitive-and-personal-data/", "match": "simple"}, {"type": "url", "value": "https://www.imperva.com/solutions/assuring-data-compliance-and-privacy/", "match": "simple"}, {"type": "url", "value": "https://www.imperva.com/solutions/advancing-data-governance/", "match": "simple"}, {"type": "url", "value": "https://www.imperva.com/solutions/mitigating-malicious-data-activity/", "match": "simple"}, {"type": "url", "value": "https://www.imperva.com/solutions/automating-insider-threat-management/", "match": "simple"}]], "name": "Data Sec Product & Solution Pages", "apiName": "6931781924_data_sec_product__solution_pages", "tags": [], "undoOnDeactivation": false, "deactivationEnabled": false, "id": "20932640488"}, {"category": "other", "staticConditions": ["and", ["or", {"type": "url", "value": "https://www.imperva.com/resources/snapshot-thank-you/", "match": "simple"}]], "name": "Snapshot Confirmation Page Views", "apiName": "6931781924_snapshot_form_submissions", "tags": [], "undoOnDeactivation": false, "deactivationEnabled": false, "id": "20998271801"}, {"category": "other", "staticConditions": ["and", ["or", {"type": "url", "value": "https://www.imperva.com/resources/free-cyber-security-testing-tools/imperva-snapshot-cloud-data-security-posture/", "match": "simple"}]], "name": "Resources: Imperva Snapshot", "apiName": "6931781924_resources_imperva_snapshot", "tags": [], "undoOnDeactivation": false, "deactivationEnabled": false, "id": "21035261630"}], "projectId": "6931781924", "namespace": "6931781924", "tagGroups": [], "integrationSettings": [], "interestGroups": [], "dimensions": [{"segmentId": null, "id": "14425470172", "apiName": "pjs_utm_term", "name": "[PJS] UTM Term"}, {"segmentId": null, "id": "14427280365", "apiName": "pjs_returning_visitor", "name": "[PJS] New or Returning"}, {"segmentId": null, "id": "14433130501", "apiName": "pjs_referrer_domain", "name": "[PJS] Referrer Domain"}, {"segmentId": null, "id": "14434940470", "apiName": "pjs_utm_campaign", "name": "[PJS] UTM Campaign"}, {"segmentId": null, "id": "14435050259", "apiName": "pjs_referrer_subdomain", "name": "[PJS] Referrer Subdomain"}, {"segmentId": null, "id": "14437290120", "apiName": "pjs_utm_content", "name": "[PJS] UTM Content"}, {"segmentId": null, "id": "14451100126", "apiName": "pjs_referrer_url", "name": "[PJS] Referrer URL"}, {"segmentId": null, "id": "14453050102", "apiName": "pjs_utm_source", "name": "[PJS] UTM Source"}, {"segmentId": null, "id": "14454930182", "apiName": "pjs_referrer_page", "name": "[PJS] Referrer Page"}, {"segmentId": null, "id": "14460960078", "apiName": "pjs_utm_medium", "name": "[PJS] UTM Medium"}, {"segmentId": null, "id": "17535600441", "apiName": "pjs_returning_user", "name": "[PJS] [Community] New/Returning User"}, {"segmentId": null, "id": "18269151328", "apiName": "ipv96_visited_ddos_landing_page", "name": "[IPV96] Visited DDoS Landing Page"}, {"segmentId": null, "id": "19402911375", "apiName": "ipv139_visited_tryimperva_com_ddosprotection", "name": "[IPV139] Visited try.imperva.com/ddosprotection"}, {"segmentId": null, "id": "19404601667", "apiName": "ipv139_visited_tryimperva_com_gdprcompliance", "name": "[IPV139] Visited try.imperva.com/gdprcompliance"}, {"segmentId": null, "id": "19406140953", "apiName": "ipv139_visited_tryimperva_com_newdatasecurity", "name": "[IPV139] Visited try.imperva.com/newdatasecurity"}, {"segmentId": null, "id": "19406312220", "apiName": "ipv139_visited_tryimperva_com_datasecurity", "name": "[IPV139] Visited try.imperva.com/datasecurity"}, {"segmentId": null, "id": "19426731885", "apiName": "ipv139_visited_tryimperva_com_securesphere", "name": "[IPV139] Visited try.imperva.com/securesphere"}, {"segmentId": null, "id": "19431582218", "apiName": "ipv139_visited_tryimperva_com_appsecurity", "name": "[IPV139] Visited try.imperva.com/appsecurity"}, {"segmentId": null, "id": "19431691584", "apiName": "ipv139_visited_tryimperva_com_bots", "name": "[IPV139] Visited try.imperva.com/bots"}, {"segmentId": null, "id": "19435013244", "apiName": "ipv139_visited_tryimperva_com_demo", "name": "[IPV139] Visited try.imperva.com/demo"}, {"segmentId": null, "id": "19440952354", "apiName": "ipv139_visited_tryimperva_com_finserv", "name": "[IPV139] Visited try.imperva.com/finserv"}, {"segmentId": null, "id": "19745388286", "apiName": "ipv151_viewed", "name": "[IPV151] Viewed"}, {"segmentId": null, "id": "20372815195", "apiName": "ipv232-learning-center-article-25-scroll", "name": "[IPV-232] Learning Center Article 25% Scroll"}, {"segmentId": null, "id": "20970651011", "apiName": "pjs_datasec_interest", "name": "[PJS] DataSec Interest"}], "audiences": [{"conditions": ["and", ["or", ["or", {"value": "qa", "type": "cookies", "name": "cro_mode", "match": "exact"}], ["or", {"value": "true", "type": "cookies", "name": "crometrics_test_cookie", "match": "exact"}], ["or", {"value": "true", "type": "query", "name": "crometrics_test_cookie", "match": "exact"}]]], "id": "15708121423", "name": "[QA] Cro Metrics Test Cookie (OLI)"}, {"conditions": ["and", ["or", ["or", {"value": " //target desktop viewports greater than 1024px\n window.innerWidth > 1024", "type": "code", "name": null, "match": null}]]], "id": "20221898409", "name": "Desktop Only (1024px)"}], "anonymizeIP": false, "projectJS": function(){/********************************************************************************** * Version: 1.03 * * Project: Imperva [6931781924] * * Updated: Thu, 16 Dec 2021 18:51:57 GMT * * Supports IE: No * * Minified: No * * Modules: * * - x/detect-async {e67052b82a85ed9088539895e05c4f42} * * - x/cro-metrics-utilities {d884fef02b5977dcc25301d16d24dbc2} * * - x/engagement {dc6af109a7cd92f8ad124627e3b6845e} * * - inc-hotjar {dd970328c97c4b0672ca85942ddb37c6} * * - x/hj {9a066ed6e587c9c11c59d95ca1c50294} * * - ipv-marketo-form-submissions {cdaab2cab4557ed1bd9c2e7496d80b96} * * - ipv-chat-submissions {67f9c62868e83f62d34c22f91c31e74a} * * - ipv-community-existing-user {7ba1bb54a24d73edd83195b2097d51a3} * * - inc-exclude-testers {76f4a83c59ae88f1bbe3862ccdfa79d3} * * - general/scroll-events {3b5f8f79d8dbb847cfe96df6f050af23} * * - general/timer-events {b5a64d352efa21438d89f34109a24982} * * - inc-chat-msg-sent {f10ce5566aa1386628c280cad3e04b3b} * * - inc-internal-links {5638fd1cfd18402acaee6aa26893f497} * * - x/shim/crometrics-test-cookie {889b7bfdf708bdfa907654078595f827} * * - x/returning-visitors-segmentation-v2 {1a0b28f55b6ca2cad7eaa079aff1d3fe} * * - x/referrer-campaign-segmentation {64c00291a8230311445396ed7b38966a} * * - fullstory {54560ba0943cca1c58308e6e6b9322be} * * - marketo-optimizely-campaign-sync {60abd3ddfcf83424cf80962d29b33b30} * * - general/xhrEventPatch {505d85a1d438c8eda607696eb89b8a27} * * - analytics/track-to-ga {e3734b8a59b7578d8095951eac588d03} * * - learning-center-article-scroll-attribute {287c0ee5536bc2b440eec55f0b3826d2} * * - pages-per-visit-metrics {312c347261b5b897ad5598af93deca89} * * - time-spent-on-site-metrics {f848cc408110cb064f17ecd850fd1270} * * - data-sec-form-submission {b9f5f655051e9c6454ebd2b2249ac8fa} * * Contact engineering@crometrics.com for support. * **********************************************************************************/ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } !function () { window.optimizely = window.optimizely || []; window.CROQ = window.CROQ || []; var PJS = window.CRO_PJS || (window.CRO_PJS = { supportsIE: false, log: console && console.info && console.info.bind(window, '[PJS]'), error: function error(errorCode, details) { if (console && console.error) console.error('PJS Error:', errorCode, '\n', details); } }); try { /* Local Storage is required */ var key = 'optimizely-store-required'; window.localStorage.setItem(key, true); window.localStorage.removeItem(key); } catch (e) { window.optimizely.push({ "type": "disable" }); return; } if (window.navigator.userAgent.indexOf("MSIE ") > -1 || window.navigator.userAgent.indexOf("Trident/") > -1) { /* Disable Optimizely on IE <= 10 and IE11 */ PJS.log("IE detected; disabling Optimizely"); window.optimizely.push({ "type": "disable" }); return; } try { !function (TAG) { /** Detect Async Loading @author Amanda Smith <amanda.smith@crometrics.com> Last Modified: 12/7/18 Attempts to detect whether Optimizely is running async. Done by looking for a body element -- if Optly is sync and running in the head, it should render-block the body from being loaded while the PJS is running. */ if (!!document.querySelector("body")) { // we can change this to do something fancier later PJS.log("Nonstandard Optimizely loading detected! Check whether the snippet is running async, " + "through a tag manager, or in the body. Ideally Optimizely should be installed sync, directly in the head."); } }("x/detect-async"); } catch (e) { PJS.error("x/detect-async", e); } try { !function (TAG) { var waitForUtils = function waitForUtils(callback) { onInitialized(function () { callback(window.optimizely.get('utils')); }); }; var onInitialized = function onInitialized(callback) { window.optimizely.initialized && callback() || window.optimizely.push({ type: 'addListener', filter: { type: "lifecycle", name: "initialized" }, handler: callback }); }; var onTrackEvent = function onTrackEvent(callback) { window.optimizely.push({ type: "addListener", filter: { type: "analytics", name: "trackEvent" }, handler: function handler(event) { event.data.id = event.data.id || event.data.apiName; //This is to make the output more consistent between platforms callback(event.data); } }); }; /** * @param {HTMLFormElement} elForm a form element * @param {undefined|(el:HTMLElement)=>string?} validator (optional) each form element in the form is passed to this function, if it returns a string this indicates a validation error * Best to wrap your usage of this in a try/catch to catch validation errors. * * @return {Record<string, string>} returns the form values as a key/value object with the element name attribute as the key */ /** * Parse the query parameters of a url into a key/value object * @param {string} search (optional) a string in the format `?param=value¶m2=value2`, default is `window.location.search` * @return {Record<string, string>} ex: { "param": "value", "param2": "value2" } */ var parseParams = function parseParams() { var search = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.location.search; if (search.substr(0, 1) === '?') search = search.substr(1); return search.split('&').reduce(function (out, param) { var split = param.split('='); if (split[0].length) out[split[0]] = decodeURIComponent(split[1]); return out; }, {}); }; /** * Takes a key/value object representing params and returns the params suitable for use in a URL. * @param {Record<string, string>} paramsObj an object in the form returned by parseParams * @return ex: `param=value¶m2=value2` * Note: The string doesn't include the leading `?` character since this format can also be used by form encoded network requests which don't include the `?`. */ var buildParamsString = function buildParamsString(paramsObj) { return Object.keys(paramsObj).map(function (param) { return param + (paramsObj[param] ? '=' + encodeURIComponent(paramsObj[param]) : ''); }).join('&'); }; /** * Takes a key/value object representing params and sets the `.search` value of the supplied object (usually window.location) * @param {Record<string, string>} paramsObj an object in the form returned by parseParams * @param {Location|HTMLElement} target (optional) the target object to set the `.search` value on. Default is `window.location`, might also be used with an <a> tag for example. * @return {undefined} */ var setParams = function setParams(paramsObj) { var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location; target.search = '?' + buildParamsString(paramsObj); }; /** * Get a single parameter from the provided search string (default is the current page params). * @param {string} param the name of the desired query param * @param {string} search (optional) a string in the format `?param=value¶m2=value2`, default is `window.location.search` * @return {string} ex: "value" */ var getParam = function getParam(param) { var search = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.search; return parseParams(search)[param]; }; /** * @desc set() sets a cookie with optional days * @param {String} name - the name of the cookie * @param {String} value - the value of the cookie * @param {Number} optDays - days the cookie will exist for * NOTE: Not passing optDays will create a "Session Cookie" * @param {String} domain - the domain value of the cookie * Example: ".domain.com" would span all sub domains of domain.com * @return {Undefined} */ var setCookie = function setCookie(name, value, optDays) { var domain = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '.' + window.location.hostname.split(".").slice(-2).join("."); var cookie = name + '=' + value + '; path=/'; var date; if (optDays instanceof Date) { date = optDays; } else if (optDays > 0) { date = new Date(); date.setTime(date.getTime() + optDays * 24 * 60 * 60 * 1000); } if (date) { cookie += '; expires=' + date.toGMTString(); } if (domain) { cookie += '; domain=' + domain; } document.cookie = cookie; }; /** * @desc get() gets value of cookie * @param {String} name - name of cookie to get * @return {String|Null} - string value of cookie NOT A BOOL! * */ var getCookie = function getCookie(name) { var nameEQ = name + '='; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i].trim(); if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length); } return null; }; /** * @desc del() removes cookie * @param {String} name - name of cookie to delete * @return {Undefined} */ var delCookie = function delCookie(name) { var domain = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '.' + window.location.hostname.split(".").slice(-2).join("."); var cookie = "".concat(name, "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"); if (domain) { cookie += '; domain=' + domain; } document.cookie = cookie; }; var PARAM_NAME = "cro_mode"; //The name of the query parameter var setCroMode = function setCroMode(newMode, domain) { if (!/^[\w\-_]+$/.test(newMode)) newMode = undefined; if (newMode) { setCookie(PARAM_NAME, newMode, null, domain); console.log("Cro Metrics \"".concat(newMode, "\" mode enabled.")); } else { delCookie(PARAM_NAME, domain); console.log("Cro Metrics logging and qa modes disabled."); } return newMode; }; var getCroMode = function getCroMode() { return getParam(PARAM_NAME) || getCookie(PARAM_NAME); }; var PJS_FORMAT = "color:white;background:#12659d;"; var EXPERIMENT_FORMAT = "color:white;background:#ff590b;"; var NOOP = function NOOP() {}; /** * experimentLog() is console.info prefixed with a colorized `[cro]` label, used by experiment code. */ var getExperimentLog = function getExperimentLog(shouldLog) { return shouldLog && console.info.bind(console, '%c[cro]', EXPERIMENT_FORMAT) || NOOP; }; /** * experimentError() is console.error prefixed with a colorized `[cro]` label, used by experiment code. */ var experimentError = function experimentError(errorLocation, details) { console.error('%c[cro]', EXPERIMENT_FORMAT, "[".concat(errorLocation, "]"), details); }; /** * pjsLog() is console.info prefixed with a colorized `[PJS]` label, used by project javascript code. */ var getPjsLog = function getPjsLog(shouldLog) { return shouldLog && console.info.bind(console, '%c[PJS]', PJS_FORMAT) || NOOP; }; /** * pjsError() is console.error prefixed with a colorized `[PJS]` label, used by project javascript code. */ var pjsError = function pjsError(errorLocation, details) { console.error('%c[PJS]', PJS_FORMAT, "[".concat(errorLocation, "]"), details); }; var initUtilities = function initUtilities(PJS) { //PJS.utils allows us to access a subset of utils earlier than they would ordinarily become available. This is only relevant on certain testing platforms. var utils = PJS.utils || (PJS.utils = {}); utils.cookie = { set: setCookie, get: getCookie, del: delCookie }; utils.params = { parse: parseParams, buildString: buildParamsString, set: setParams }; utils.getParam = getParam; //Initially logging is turned off PJS.log = utils.log = NOOP; utils.error = experimentError; PJS.error = pjsError; //Utilities show up after a delay on certain platforms waitForUtils(function (utils) { if (PJS.utils === utils) return; //Add PJS.utils to the default utils for (var fnName in PJS.utils) { utils[fnName] = PJS.utils[fnName]; } PJS.utils = utils; //Make the two the same }); PJS.setMode = function (newMode) { PJS.mode = setCroMode(newMode, PJS.COOKIE_DOMAIN); PJS.log = getPjsLog(PJS.mode); waitForUtils(function (utils) { utils.log = getExperimentLog(PJS.mode); }); }; //PJS.mode could be initialized by another module before this runs. //This might be used by shims that help enable a particular mode. //Alternatively modules can leverage PJS.setMode() to trigger a specific mode dynamically. var initialMode = getCroMode() || PJS.mode; if (initialMode) PJS.setMode(initialMode); }; /** * Cro Metrics Utilities * @author andrew.wessels@crometrics.com (2/8/2020) * * Looks for ?cro_mode query parameter and sets a cookie (by the same name) to persist the value. * The cookie is leveraged by our standard QA audience, used to QA tests before launch. * * Activates our logging in "log" or "qa" modes. * Also provides standard cookie and parameter manipulation utility functions. */ initUtilities(PJS); onTrackEvent(function (data) { PJS.log("Metric fired: ".concat(data.name, " <").concat(data.apiName, ">"), data.tags); }); }("x/cro-metrics-utilities"); } catch (e) { PJS.error("x/cro-metrics-utilities", e); } try { !function (TAG) { /* [PJS] Engagement Author: Matthew Gossage (matthew.gossage@crometrics.com) Author: Eihab Ibrahim (eihab.ibrahim@crometrics.com) Last Modified: 04/16/18 Version: crometrics-engagement-1.0.2 Optimizely X 'Engagement' */ // Fires engagement goal once and removes handler var fireGoal = function fireGoal() { window.optimizely.push({ type: 'event', eventName: 'pjs-engagement' }); document.removeEventListener('click', fireGoal); }; window.optimizely.push({ type: "addListener", filter: { type: "lifecycle", name: "initialized" }, handler: function handler() { document.addEventListener('click', fireGoal); } }); }("x/engagement"); } catch (e) { PJS.error("x/engagement", e); } try { !function (TAG) { /* * Incapsula Hotjar Snippet */ (function (h, o, t, j, a, r) { // If we're not on the right domain (or a subdomain thereof), return. if (window.location.hostname.indexOf("incapsula.com") === -1) return; h.hj = h.hj || function () { (h.hj.q = h.hj.q || []).push(arguments); }; h._hjSettings = { hjid: 124327, hjsv: 5 }; a = o.getElementsByTagName('head')[0]; r = o.createElement('script'); r.async = 1; r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv; a.appendChild(r); })(window, document, '//static.hotjar.com/c/hotjar-', '.js?sv='); }("inc-hotjar"); } catch (e) { PJS.error("inc-hotjar", e); } try { !function (TAG) { var onCampaignDecided = function onCampaignDecided(callback) { window.optimizely.push({ type: "addListener", filter: { type: "lifecycle", name: "campaignDecided" }, handler: function handler(event) { callback(event.data); } }); }; /** * HotJar Triggering and Recording Tagging * @deprecated analytics/track-to-hj * @author matthew.gossage@crometrics.com (2/3/2017) * @author chase.marlow@crometrics.com (12/22/2017) * @author amanda.smith@crometrics.com (5/22/2018) * @author andrew.wessels@crometrics.com (9/14/2020) * * Adds a `campaignDecided` listener and uses it to trigger and tag hotjar recordings. */ //Note: name values are not available if "Mask descriptive names in project code and third-party integrations" snippet privacy setting is enabled. var parseTag = function parseTag(name) { var availableCharacters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 36; if (name) { var nameMatch = name.match(/^([a-zA-Z]+)-?([\d\.]+)/); if (nameMatch) { return "".concat(nameMatch[1].toLowerCase()).concat(nameMatch[2]); } else { return name.toLowerCase().substr(0, availableCharacters).trim().replace(/[^a-z0-9]+/g, '-'); } } }; var getCampaignTag = function getCampaignTag(campaign, experience, availableCharacters) { var campaignName = parseTag(experience.campaignName) || campaign.id || 'unknown'; //experience.name if a name is explicitly set, experience.audienceName if one is implicitly given var audienceName = parseTag(experience.name || experience.audienceName) || experience.id || 'unknown'; if (campaignName.length + audienceName.length + 1 > availableCharacters) { //if the name is too long, trim the longer of the two values if (campaignName.length > audienceName.length) { campaignName = campaignName.substr(0, availableCharacters - audienceName.length - 1); } else { audienceName = audienceName.substr(0, availableCharacters - campaignName.length - 1); } } return campaignName + '-' + audienceName; }; var getExperimentTag = function getExperimentTag(experiment, availableCharacters) { return parseTag(experiment.name, availableCharacters) || experiment.id || 'unknown'; }; var pollForHJ = function () { var callbacks = []; var resolve = function resolve(v) { callbacks.map(function (c) { return c(v); }); callbacks = { push: function push(c) { return c(v); } }; }; (function poll() { if (window.hj && window.hj.q) { resolve(window.hj); } else if (document.readyState === "complete") { PJS.log("Hotjar not found"); callbacks = { push: function push() {} }; } else { setTimeout(poll, 500); } })(); return function (callback) { callbacks.push(callback); }; }(); // Trigger and Tag Hotjar. onCampaignDecided(function (data) { // Also, only track if we're not part of the holdback. if (data.decision.isCampaignHoldback === false && data.decision.variationId !== null) { var decision = data.decision; var campaign = data.campaign; var experiment = window.optimizely.get('data').experiments[decision.experimentId]; var varTag = function (variations, variationId) { for (var i = 0; i < variations.length; i++) { if (variations[i].id === variationId) { return 'v' + i; } } return variationId; }(experiment.variations, decision.variationId); var availableCharacters = 50 - varTag.length - 1; var experimentTag = experiment.hasOwnProperty('campaignName') ? getCampaignTag(campaign, experiment, availableCharacters) : getExperimentTag(experiment, availableCharacters); //note: trigger_name.length must be <= 50 var trigger_name = (experimentTag + '-' + varTag).substr(0, 50); //failsafe truncation pollForHJ(function (hj) { hj('trigger', trigger_name); hj('tagRecording', [trigger_name]); PJS.log('Triggered Hotjar: ' + trigger_name, data); }); } }); }("x/hj"); } catch (e) { PJS.error("x/hj", e); } try { !function (TAG) { /** * Send a custom event to Optimizely */ var sendEvent = function sendEvent(eventName) { var tags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; window.optimizely.push({ type: "event", eventName: eventName, tags: tags }); }; /** * Marketo Form Submissions * @author jared.schoen@crometrics.com (03/20/19) * @author eric.barber@crometrics.com (12/09/19) * @author brandon.henry@crometrics.com (3/08/21) * @author shawn.mitchell@crometrics.com (3/15/21) * * Fires specific Submission goals for forms. * * Events: * [PJS] Overall Form Submissions * [PJS] Total Conversion Engagements * [PJS] Asset Download Form Submissions * [PJS] Request a Demo Form Submissions * [PJS] Contact Us Form Submissions * [PJS] Request a Demo and Contact Us Form Submissions * [PJS] Request a Demo Form Submissions Modal Only * [PJS] Try.Imperva Form Submissions * [PJS] Free Trial Submissions * [PJS] Under Attack Form Submissions */ var initialized = function initialized() { //const $ = window.jQuery, // jshint ignore:line var utils = window.optimizely.get('utils'); utils.waitUntil(function () { return window.jQuery; }).then(function () { var path = window.location.pathname; // Free trial page does not seem to have any kind of form submission or success and can't listen for btn clicks so just listen for the thank you modal if (path === '/free-trial/') { utils.waitForElement('.show#thankyoumodal').then(function () { sendEvent('pjs_free_trial_form_submissions'); sendEvent('pjs_overall_form_submissions'); sendEvent('pjs_total_conversion_engagements'); })["catch"](function (err) { return PJS.log(err); }); } utils.waitUntil(function () { return window.MktoForms2; }).then(function () { window.MktoForms2.whenReady(function (form) { var formID = form.getId(); form.onSuccess(function () { window.optimizely.push({ type: 'event', eventName: 'pjs_overall_form_submissions' }); window.optimizely.push({ type: 'event', eventName: 'pjs_total_conversion_engagements' }); if (formID === 3495) { window.optimizely.push({ type: 'event', eventName: 'pjs_request_a_demo_form_submissions' }); window.optimizely.push({ type: 'event', eventName: 'pjs_request_a_demo_and_contact_us_form_submissions' }); window.optimizely.push({ type: 'event', eventName: 'pjs_request_demo_modal' }); } if (formID === 2491) { window.optimizely.push({ type: 'event', eventName: 'pjs_get_quote_form_submissions' }); } if (path.indexOf('/resources/resource-library/') > -1) { window.optimizely.push({ type: 'event', eventName: 'pjs_asset_download_form_submissions' }); window.localStorage.setItem('cameFromForm', true); } if (path === '/request-demo/') { window.optimizely.push({ type: 'event', eventName: 'pjs_request_a_demo_form_submissions' }); window.optimizely.push({ type: 'event', eventName: 'pjs_demo_page_form_submissions' }); window.optimizely.push({ type: 'event', eventName: 'pjs_request_a_demo_and_contact_us_form_submissions' }); } if (path === '/contact-us/' && [2941, 3871].includes(formID)) { window.optimizely.push({ type: 'event', eventName: 'pjs_contact_us_form_submissions' }); window.optimizely.push({ type: 'event', eventName: 'pjs_request_a_demo_and_contact_us_form_submissions' }); } if (path === '/get-quote/') { window.optimizely.push({ type: 'event', eventName: 'pjs_get_quote_form_submissions' }); } if (path === '/resources/resource-library/reports/magic-quadrant-for-web-application-firewalls/') { window.optimizely.push({ type: 'event', eventName: 'pjs_gartner_form_submission' }); } if (window.location.hostname === 'try.imperva.com') { window.optimizely.push({ type: 'event', eventName: 'pjs_try_imperva_form_submissions' }); } if (path === '/under-ddos-attack/' && [2941, 3871].includes(formID)) { window.optimizely.push({ type: 'event', eventName: 'pjs_under_attack_form_submissions' }); } }); }); })["catch"](PJS.error); // also track Trendemon AJAX window.jQuery(document).ready(function () { if (window.jQuery('#trd-exitintentbox #trd_confirmform').length) { utils.waitUntil(function () { return window.jQuery('#trd-exitintentbox #trd_confirmform').css('visibility') === 'visible'; }).then(function () { window.optimizely.push({ type: 'event', eventName: 'pjs_overall_form_submissions' }); window.optimizely.push({ type: 'event', eventName: 'pjs_total_conversion_engagements' }); })["catch"](PJS.error); } }); PJS.log('PJS Marketo submissions initialized'); // also track resource downloads if (path.indexOf('/resources/resource-library/') > -1 && window.localStorage.getItem('cameFromForm') === "true") { PJS.log("Detected user came from form..."); window.localStorage.removeItem('cameFromForm'); window.optimizely.push({ type: "event", eventName: "pjs_form_download_after_submit" }); PJS.log("PJS Form Download fired!"); } })["catch"](PJS.error); }; window.optimizely.push({ type: 'addListener', filter: { type: 'lifecycle', name: 'initialized' }, handler: initialized }); }("ipv-marketo-form-submissions"); } catch (e) { PJS.error("ipv-marketo-form-submissions", e); } try { !function (TAG) { /** * Chat Submissions * @author jared.schoen@crometrics.com (03/20/19) * * Fires goals when user sends message via live chat. * * Events: * [PJS] Chat - Send * [PJS] Chat - Opened * [PJS] Total Conversion Engagements */ var initialized = function initialized() { var utils = window.optimizely.get('utils'); utils.waitUntil(function () { return window.LC_API && window.LC_API.on_chat_started; }).then(function () { window.LC_API.on_chat_started = function () { window.optimizely.push({ type: 'event', eventName: 'pjs_chat_send' }); window.optimizely.push({ type: 'event', eventName: 'pjs_total_conversion_engagements' }); }; window.LC_API.on_chat_window_opened = function () { window.optimizely.push({ type: 'event', eventName: 'pjs_chat_opened' }); }; }); }; window.optimizely.push({ type: 'addListener', filter: { type: 'lifecycle', name: 'initialized' }, handler: initialized }); }("ipv-chat-submissions"); } catch (e) { PJS.error("ipv-chat-submissions", e); } try { !function (TAG) { /** * Community - Get/Set existing user * @author Ahmad Kayyali <ahmad.kayyali@crometrics.com> * Date: Feb 8th, 2020 * * @attributes * pjs_returning_user */ function initialized() { var utils = window.optimizely.get("utils"); var cookie = utils.cookie, waitForElement = utils.waitForElement; var domain = window.location.hostname; var isCommunity = domain == "community.imperva.com"; var isSubmissionUrl = window.location.pathname == "/login/hlactivationpending"; // If we're not on the community portal pages -- do nothing if (!isCommunity) return; // Look for cookie var ourCookie = cookie.get("existingUser"); // If successfully signed up // create cookie and not an existing user // Otherwise check if logged in var promiseToComplete = new Promise(function (resolve, reject) { if (isSubmissionUrl) { cookie.set("existingUser", "first-time", 365, domain); resolve(cookie.get("existingUser")); } else { // Logged in waitForElement(".user-name-dropdown").then(function (loggedIn) { // 1st time users that are returning will have a existingUser=first-time cookie if (ourCookie !== "true") cookie.set("existingUser", "true", 365, domain); resolve(cookie.get("existingUser")); })["catch"](function () { return reject("Congrats on getting here, how did you do it?"); }); // Not Logged in waitForElement("#Welcome_NotLoggedIn").then(function (signInBtn) { // If the cookie doesn't exist either user cleared all cookies or it never was ourCookie === null ? cookie.set("existingUser", "false", 365, domain) : ourCookie == "false" ? null : cookie.set("existingUser", "true", 365, domain); resolve(cookie.get("existingUser")); })["catch"](function () { return reject("Congrats on getting here, how did you do it?"); }); } }); // Attributes being fired before code does its thing promiseToComplete.then(function (cookie) { // If none of the conditions match, existingUser will remain false window.optimizely.push({ type: "user", attributes: { pjs_returning_user: cookie } }); window.optimizely.push({ type: "event", eventName: "pushing attribute" }); })["catch"](function (error) { return PJS.log(error); }); } window.optimizely.push({ type: "addListener", filter: { type: "lifecycle", name: "initialized" }, handler: initialized }); }("ipv-community-existing-user"); } catch (e) { PJS.error("ipv-community-existing-user", e); } try { !function (TAG) { /** * Exclude Testers * @author Tracy Schuler <tracy.schuler@crometrics.com> * @author Andrew Wessels <andrew.wessels@crometrics.com> * Date: 12/7/17 * Updated: 12/28/17 * * Disable optimizely for all internal testers. */ (function () { // If we're not on the right domain (or a subdomain thereof), return. if (window.location.hostname.indexOf("incapsula.com") === -1) return; var host = window.location.hostname; var path = window.location.pathname; var referrer = document.referrer; var params = {}; window.location.search.replace(/[?&]+([^=&]+)=([^&]*)/gi, function (str, key, value) { params[key] = value; }); if (referrer.indexOf('/_Incapsula_Resource') > -1 || referrer.indexOf('eltek.co.il') > -1 || params.src === '23' || params.utm_source === 'test' || params.utm_source && params.utm_source.indexOf('blockingpages') > -1 || params.utm_campaign === 'test' || host === 'localhost' || host === '34.225.213.153' || host.indexOf('staging.') > -1 || host.indexOf('stage.') > -1 || path.indexOf('orderBy') > -1 || path === '/LiveChat/Invitation/Auto/' || path === '/login' || path === '/logout' || navigator.appVersion.indexOf('99.0') > -1 || params.utm_source && params.utm_source.indexOf('sevendollarclick.com') > -1 || params.utm_source && params.utm_source.indexOf('fourdollarclick.com') > -1) { document.cookie = 'optimizelyOptOut=true;domain=.incapsula.com;path=/;'; } })(); }("inc-exclude-testers"); } catch (e) { PJS.error("inc-exclude-testers", e); } try { !function (TAG) { /** * [PJS] Scroll Events * @author matthew.gossage@crometrics.com (05/10/2017) * @author jared.schoen@crometrics.com (01/10/2019) * @author amanda.smith@crometrics.com (06/03/2019) * @author ahmad.kayyali@crometrics.com (09/13/2019) * @author andrew.wessels@crometrics.com (09/13/2019) * @author chase.marlow@crometrics.com (02/11/2020) * * Metrics: * - [PJS] Scrolled Past 1% of Page <pjs-scrolled-past-1-of-page> * - [PJS] Scrolled Past 25% of Page <pjs-scrolled-past-25-of-page> * - [PJS] Scrolled Past 50% of Page <pjs-scrolled-past-50-of-page> * - [PJS] Scrolled Past 75% of Page <pjs-scrolled-past-75-of-page> * - [PJS] Scrolled to End <pjs-scrolled-to-end> * * Events for scrolling down the page varying percentages. */ var percentages = [// Scrolled Past 1% of Page (basically scrolled any amount) { 'amount': 1, 'event': 'pjs-scrolled-past-1-of-page', 'fired': false }, // Scrolled Past 25% of Page { 'amount': 25, 'event': 'pjs-scrolled-past-25-of-page', 'fired': false }, // Scrolled Past 50% of Page { 'amount': 50, 'event': 'pjs-scrolled-past-50-of-page', 'fired': false }, // Scrolled Past 75% of Page { 'amount': 75, 'event': 'pjs-scrolled-past-75-of-page', 'fired': false }, // Scrolled to end - 100% - of page { 'amount': 100, 'event': 'pjs-scrolled-to-end', 'fired': false }]; function debounce(func, wait, immediate) { var timeout; return function () { var context = this, args = arguments; var later = function later() { timeout = null; if (!immediate) func.apply(context, args); }; var callNow = immediate && !timeout; clearTimeout(timeout); timeout = setTimeout(later, wait); if (callNow) func.apply(context, args); }; } window.addEventListener('scroll', debounce(function () { var scrollPosition = Math.max(window.pageYOffset, document.documentElement.scrollTop, document.body.scrollTop); var fullHeight = Math.max(document.body.offsetHeight, document.body.scrollHeight); var scrollPercentage = scrollPosition / (fullHeight - window.innerHeight) * 100; for (var i = 0; i < percentages.length; i++) { var percent = percentages[i]; // Dedupe. if (percent.fired) continue; // If we've crested this percent amount threshold. if (scrollPercentage >= percent.amount) { PJS.log("Scrolled past ".concat(percent.amount, "% of page.")); window.optimizely.push({ type: 'event', eventName: percent.event }); percent.fired = true; } } }, 250)); }("general/scroll-events"); } catch (e) { PJS.error("general/scroll-events", e); } try { !function (TAG) { /* [PJS] Timer Events Author: Matthew Gossage (matthew.gossage@crometrics.com) Date: 05/10/17 Version: crometrics-timer-events-1.0.0 Events for being on a page for a certain duration. */ (function () { // Prepare Optimizely reference. window.optimizely = window.optimizely || []; // Spent 30s or More on Page setTimeout(function () { window.optimizely.push({ type: 'event', eventName: 'pjs-spent-30s-or-more-on-page' }); }, 1000 * 30); // Spent 45s or More on Page setTimeout(function () { window.optimizely.push({ type: 'event', eventName: 'pjs-spent-45s-or-more-on-page' }); }, 1000 * 45); })(); }("general/timer-events"); } catch (e) { PJS.error("general/timer-events", e); } try { !function (TAG) { /** * Chat message sent event * @author Eric Newland <eric@crometrics.com> * @author Andrew Wessels <andrew.wessels@crometrics.com> * Date: 4/27/16 * Updated: 12/28/17 * * Events: * chat_message_sent * * Track chat session start */ (function () { // If we're not on the right domain (or a subdomain thereof), return. if (window.location.hostname.indexOf("incapsula.com") === -1) return; window.addEventListener('message', function (e) { if (typeof e.data === 'string' && e.data.indexOf('message_sent') !== -1) { window.optimizely.push(['trackEvent', 'chat_message_sent']); } }); })(); }("inc-chat-msg-sent"); } catch (e) { PJS.error("inc-chat-msg-sent", e); } try { !function (TAG) { /** * Internal links Event * @author Eric Newland <eric@crometrics.com> * @author Andrew Wessels <andrew.wessels@crometrics.com> * Date: 4/27/16 * Updated: 12/28/17 * * Events: * internal_link_clicked */ (function () { // If we're not on the right domain (or a subdomain thereof), return. if (window.location.hostname.indexOf("incapsula.com") === -1) return; function isLinkInternal(link) { var domainRegex = /(\w+)\.com/i; var linkDomain = link.hostname.match(domainRegex)[1]; var locationDomain = location.hostname.match(domainRegex)[1]; // If same base domain and different from current path return linkDomain === locationDomain && link.pathname !== location.pathname; } function initialized() { var utils = window.optimizely.get('utils'); utils.waitUntil(function () { return window.jQuery; }).then(function () { PJS.log('Jquery available'); //const $ = window.jQuery; window.jQuery(document).delegate('a', 'mousedown', function () { if (isLinkInternal(this)) { window.optimizely.push(['trackEvent', 'internal_link_clicked']); } }); }); } window.optimizely.push({ type: "addListener", filter: { type: "lifecycle", name: "initialized" }, handler: initialized }); })(); }("inc-internal-links"); } catch (e) { PJS.error("inc-internal-links", e); } try { !function (TAG) { /** * @param {HTMLFormElement} elForm a form element * @param {undefined|(el:HTMLElement)=>string?} validator (optional) each form element in the form is passed to this function, if it returns a string this indicates a validation error * Best to wrap your usage of this in a try/catch to catch validation errors. * * @return {Record<string, string>} returns the form values as a key/value object with the element name attribute as the key */ /** * Takes a key/value object representing params and returns the params suitable for use in a URL * @param {string} param the name of the desired query param * @param {string?} value (optional) if specified, the param will be required to have this value to return `true`. If undefined, the param must only be found, regardless of it's value. * @return {boolean} if the param is found in the provided search string */ var hasParam = function hasParam(param, value) { var search = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : window.location.search; return new RegExp("(^\\?|&)".concat(param).concat(value !== undefined ? "=".concat(value) : '(=.*)?', "(&|$)")).test(search); }; /** * @desc set() sets a cookie with optional days * @param {String} name - the name of the cookie * @param {String} value - the value of the cookie * @param {Number} optDays - days the cookie will exist for * NOTE: Not passing optDays will create a "Session Cookie" * @param {String} domain - the domain value of the cookie * Example: ".domain.com" would span all sub domains of domain.com * @return {Undefined} */ var cookieExists = function cookieExists(param, value) { return new RegExp("(^|; )".concat(param).concat(value !== undefined ? "=".concat(value) : '(=.*)?', "(;|$)")).test(document.cookie); }; /** * Shim for Cro Metrics Test Cookie * @author andrew.wessels@crometrics.com (9/8/2020) * @deprecated * * Looks for ?crometrics_test_cookie query parameter and sets `PJS.mode`. * This is to help migrate to the new ?cro_mode parameter. */ var PARAM_NAME = "crometrics_test_cookie"; // This will match if the cookie or enable query param are present. if (hasParam(PARAM_NAME) || cookieExists(PARAM_NAME)) { PJS.mode = 'qa'; } else if (PJS.isDev) { PJS.mode = 'log'; } }("x/shim/crometrics-test-cookie"); } catch (e) { PJS.error("x/shim/crometrics-test-cookie", e); } try { !function (TAG) { /** * Returning Visitors Segmentation * @author Matthew Gossage <matthew.gossage@crometrics.com> * @author Chase Marlow <chase.marlow@crometrics.com> * @author Andrew Wessels <andrew.wessels@crometrics.com> * Date: 11/16/17 * Updated: 5/23/18 * Attributes: * [PJS] New or Returning <pjs_returning_visitor> * * Apply an attribute which segments new vs returning visitors in experiment results. * * New users status is based on whether this is the first session * the user has been exposed to the client's Optimizely snippet. */ function stateRequired() { //Wait for the Activated event so state information is available. window.optimizely.push({ "type": "user", "attributes": { "pjs_returning_visitor": window.optimizely.get('visitor').first_session ? 'New' : 'Returning' } }); } window.optimizely.push({ type: "addListener", filter: { type: "lifecycle", name: "activated" }, handler: stateRequired }); }("x/returning-visitors-segmentation-v2"); } catch (e) { PJS.error("x/returning-visitors-segmentation-v2", e); } try { !function (TAG) { /** Referrer/Campaign Segmentation @author Amanda Smith & Tracy Schuler Last Modified: 04/05/2018 Pushes custom attributes for referrer URLs and UTM parameters, if they exist. API names used: - pjs_referrer_url - pjs_utm_source - pjs_utm_medium - pjs_utm_campaign - pjs_utm_term - pjs_utm_content ______ ADDED 04/05/2018 - pjs_referrer_page - pjs_referrer_domain - pjs_referrer_subdomain */ function getCookie(name) { var nameEQ = name + '='; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) === ' ') { c = c.substring(1, c.length); } if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length); } return null; } function getQueryParameter(name, url) { if (!url) url = window.location.href; name = name.replace(/[\[\]]/g, "\\$&"); var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), results = regex.exec(url); if (!results) return null; if (!results[2]) return ''; return decodeURIComponent(results[2].replace(/\+/g, " ")); } function getDomainOnly(domain) { // this should work by pulling the TLD (.com, .net, .co.uk, etc) into a placeholder // then parsing out the last element in an array made by splitting on '.' var TWO_PART_TLD_REGEX = /\.[a-z]{2,3}\.[a-z]{2}$/i; var ONE_PART_TLD_REGEX = /\.[a-z]{2,4}$/i; var tld = ''; // REMOVES '.??.??' OR '.???.??' FROM END - e.g. '.CO.UK', '.COM.AU' if (domain.match(TWO_PART_TLD_REGEX)) { tld = domain.match(TWO_PART_TLD_REGEX)[0]; domain = domain.replace(TWO_PART_TLD_REGEX, ''); // REMOVES '.??' or '.???' or '.????' FROM END - e.g. '.US', '.COM', '.INFO' } else if (domain.match(ONE_PART_TLD_REGEX)) { tld = domain.match(ONE_PART_TLD_REGEX)[0]; domain = domain.replace(ONE_PART_TLD_REGEX, ''); } var domainParts = domain.split('.'); return domainParts[domainParts.length - 1] + tld; } function parseReferrerUrl(url) { // create a link element and set the URL so that the path, host, and hash become easily accessible var link = document.createElement('a'); link.href = url; return { 'domain': getDomainOnly(link.host), 'subdomain': link.host, 'page': link.host + link.pathname + link.hash }; } var cookiePrefix = "cro_segment_"; // make sure to push "none" in the attribute if they don't have it // this way we can make sure the user has the most up-to-date data in reporting // (if they visit once from a referral and the next time directly, for example) window.optimizely.push({ type: "addListener", filter: { type: "lifecycle", name: "activated" }, handler: function handler() { // segment around referrer URL, page, domain, and subdomain if (getCookie(cookiePrefix + "referrer") === null) { // check if this session hasn't been tracked var referrer = window.optimizely.get("visitor").referrer || "none"; document.cookie = cookiePrefix + "referrer=" + referrer; // dedupe the session since referral method doesn't change (even with new tabs) window["optimizely"].push({ "type": "user", "attributes": { "pjs_referrer_url": referrer } }); if (referrer !== 'none') { var referrerParts = parseReferrerUrl(referrer); window["optimizely"].push({ "type": "user", "attributes": { "pjs_referrer_page": referrerParts.page } }); window["optimizely"].push({ "type": "user", "attributes": { "pjs_referrer_domain": referrerParts.domain } }); window["optimizely"].push({ "type": "user", "attributes": { "pjs_referrer_subdomain": referrerParts.subdomain } }); } } // segment around UTM parameters var utms = ["utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content"]; utms.forEach(function (utm) { var currentValue = getQueryParameter(utm); var prevValue = getCookie(cookiePrefix + utm); // check if this session hasn't been tracked OR the utm parameter has changed between pageviews if (!prevValue || prevValue !== currentValue) { var valueToSet = currentValue || "none"; document.cookie = cookiePrefix + utm + "=" + valueToSet; window["optimizely"].push({ "type": "user", "attributes": _defineProperty({}, "pjs_" + utm, valueToSet) }); } }); } }); }("x/referrer-campaign-segmentation"); } catch (e) { PJS.error("x/referrer-campaign-segmentation", e); } try { !function (TAG) { var tag = "fullstory"; var log = function log() { return PJS.log.apply(PJS, ["[".concat(tag, "]")].concat(Array.prototype.slice.call(arguments))); }; var error = function error() { return PJS.error.apply(PJS, [tag].concat(Array.prototype.slice.call(arguments))); }; var onCampaignDecided = function onCampaignDecided(callback) { window.optimizely.push({ type: "addListener", filter: { type: "lifecycle", name: "campaignDecided" }, handler: function handler(event) { callback(event.data); } }); }; /** * Fullstory * * @author brandon.henry@crometrics.com (4/21/2021) * @author brian.norman@crometrics.com (12/30/2020) * * @description This module is adding the FullStory snippet to the site. */ var FULLSTORY_SNIPPET_HTML = "<script>window['_fs_debug'] = false;window['_fs_host'] = 'fullstory.com';window['_fs_script'] = 'edge.fullstory.com/s/fs.js';window['_fs_org'] = 'Y5R7X';window['_fs_namespace'] = 'FS';(function(m,n,e,t,l,o,g,y){if (e in m) {if(m.console && m.console.log) { m.console.console.log('FullStory namespace conflict. Please set window[\"_fs_namespace\"].');} return;}g=m[e]=function(a,b,s){g.q?g.q.push([a,b,s]):g._api(a,b,s);};g.q=[];o=n.createElement(t);o.async=1;o.crossOrigin='anonymous';o.src='https://'+_fs_script;y=n.getElementsByTagName(t)[0];y.parentNode.insertBefore(o,y);g.identify=function(i,v,s){g(l,{uid:i},s);if(v)g(l,v,s)};g.setUserVars=function(v,s){g(l,v,s)};g.event=function(i,v,s){g('event',{n:i,p:v},s)};g.anonymize=function(){g.identify(!!0)};g.shutdown=function(){g(\"rec\",!1)};g.restart=function(){g(\"rec\",!0)};g.log = function(a,b){g(\"log\",[a,b])};g.consent=function(a){g(\"consent\",!arguments.length||a)};g.identifyAccount=function(i,v){o='account';v=v||{};v.acctId=i;g(o,v)};g.clearUserCookie=function(){};g.setVars=function(n, p){g('setVars',[n,p]);};g._w={};y='XMLHttpRequest';g._w[y]=m[y];y='fetch';g._w[y]=m[y];if(m[y])m[y]=function(){return g._w[y].apply(this,arguments)};g._v=\"1.3.0\";})(window,document,window['_fs_namespace'],'script','user');</script>"; document.head.insertAdjacentHTML('beforeend', FULLSTORY_SNIPPET_HTML); log('Fullstory snippet inserted on page'); onCampaignDecided(function (event) { var decision = event.decision; var campaign = event.campaign; var isInHoldback = decision.isCampaignHoldback; var experimentId = decision.experimentId; var experimentName = campaign.name; var variationId = decision.variationId; var variationName; var variations = campaign.experiments[0].variations; variations.forEach(function (variation) { if (variation.id === variationId) { variationName = variation.name; } }); if (!experimentId || !variationId || isInHoldback) return; var utils = window.optimizely.get('utils'); utils.waitUntil(function () { return window.FS && window.FS.event; }).then(function () { var fsData = { 'experimentId': experimentId, 'experimentName': experimentName, 'variationId': variationId, 'variationName': variationName }; log('fsData', fsData); window.FS.event('Optimizely Experiment Activated', fsData); })["catch"](error); }); }("fullstory"); } catch (e) { PJS.error("fullstory", e); } try { !function (TAG) { var tag = "marketo-optimizely-campaign-sync"; var error = function error() { return PJS.error.apply(PJS, [tag].concat(Array.prototype.slice.call(arguments))); }; var onInitialized = function onInitialized(callback) { window.optimizely.initialized && callback() || window.optimizely.push({ type: 'addListener', filter: { type: "lifecycle", name: "initialized" }, handler: callback }); }; /** * Marketo Optimizely Campaign Sync * @author eric.barber@crometrics.com (12/1/2020) * * * This module passes the FIRST active Optimizely campaign/variantion IDs to Imperva's Marketo forms on submit. */ onInitialized(function () { var utils = window.optimizely.get('utils'); utils.waitUntil(function () { return window.jQuery; // Marketo relies on jQuery }).then(function () { // Assumes form is a Marketo fom object var setOptimizelyData = function setOptimizelyData(form) { var active = window.optimizely.get('state').getCampaignStates({ isActive: true }); if (active) { active = Object.values(active); var firstCampaign = active[0]; if (firstCampaign) { var campaignID = firstCampaign.id; var variationID = firstCampaign.variation.id; // Safe to use even if client updates form - this will do nothing in that case form.vals({ "Optimizely_Campaign_ID__c": campaignID }); form.vals({ "Optimizely_Variation_ID__c": variationID }); } } }; utils.waitUntil(function () { return window.MktoForms2; }).then(function () { window.MktoForms2.whenReady(function (form) { // Technically not neccessary as submit will override this initial value // I'm grabbing whatever the active test is at the time of load just to populate this early // Left this in just to account for any potential timing issues setOptimizelyData(form); // On submit, re-set experiment data (e.g. delayed activation). If this is a normal page, the data should really just match the initial ID form.onSubmit(function () { setOptimizelyData(form); }); }); })["catch"](error); })["catch"](error); }); }("marketo-optimizely-campaign-sync"); } catch (e) { PJS.error("marketo-optimizely-campaign-sync", e); } try { !function (TAG) { /** * @desc xhrEventPatch() monkey patches all XMLHttpRequest events to fire a custom event to consume in other modules. * * Note - This only works for XMLHttpRequests and NOT the fetch API. */ var xhr_open = XMLHttpRequest.prototype.open; XMLHttpRequest.prototype.open = function () { var xhr = this; xhr.addEventListener("readystatechange", function () { if (xhr.readyState !== 4) return; if (xhr.response) { // Passing original XHR and arguments var response = { xhr: xhr, body: xhr.response }; window.dispatchEvent(new CustomEvent('xhrComplete', { 'detail': response })); } }); return xhr_open.apply(this, arguments); }; }("general/xhrEventPatch"); } catch (e) { PJS.error("general/xhrEventPatch", e); } PJS.googleAnalyticsProperty = 'UA-114236658-1'; try { !function (TAG) { var tag = "analytics/track-to-ga"; var platform = "Optimizely"; var log = function log() { return PJS.log.apply(PJS, ["[".concat(tag, "]")].concat(Array.prototype.slice.call(arguments))); }; var error = function error() { return PJS.error.apply(PJS, [tag].concat(Array.prototype.slice.call(arguments))); }; var waitForUtils = function waitForUtils(callback) { onInitialized(function () { callback(window.optimizely.get('utils')); }); }; var onInitialized = function onInitialized(callback) { window.optimizely.initialized && callback() || window.optimizely.push({ type: 'addListener', filter: { type: "lifecycle", name: "initialized" }, handler: callback }); }; var onCampaignDecided = function onCampaignDecided(callback) { window.optimizely.push({ type: "addListener", filter: { type: "lifecycle", name: "campaignDecided" }, handler: function handler(event) { callback(event.data); } }); }; var onTrackEvent = function onTrackEvent(callback) { window.optimizely.push({ type: "addListener", filter: { type: "analytics", name: "trackEvent" }, handler: function handler(event) { event.data.id = event.data.id || event.data.apiName; //This is to make the output more consistent between platforms callback(event.data); } }); }; var onTrackActivation = function onTrackActivation(callback) { onCampaignDecided(function (data) { var eventDecision = data.decision; var isCampaignHoldback = eventDecision.isCampaignHoldback; var experimentId = eventDecision.experimentId; var variationId = eventDecision.variationId; if (!isCampaignHoldback && experimentId && variationId) { //Note: There may be multiple experiments in the campaign if this is a p13n campaign versus a standard experiment. var optlyExperiment = data.campaign.experiments.find(function (experiment) { return experiment.id === experimentId; }); var variations = optlyExperiment.variations; var experiment = { name: optlyExperiment.name, id: optlyExperiment.id }; for (var i = 0; i < variations.length; i++) { var optlyVariation = variations[i]; if (variationId === optlyVariation.id) { var variation = { name: optlyVariation.name, id: optlyVariation.id, tag: "v" + i }; return callback(experiment, variation); } } } }); }; /* eslint-disable no-unused-vars */ var trackEvents = function trackEvents(eventCallback) { var inputSettings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var settings = Object.assign({ trackEvents: true, //Determine if this event data should be tracked shouldTrackEvent: function shouldTrackEvent(event) { return event.type !== 'pageview' && event.name !== 'push_attribute'; }, //Transform the event data into parameters accepted by the eventCallback function parseEvent: function parseEvent(event) { var eventAction = 'Conversion'; var eventLabel = event.name || event.id; return [eventAction, eventLabel]; } }, inputSettings); if (settings.trackEvents) { onTrackEvent(function (event) { try { if (settings.shouldTrackEvent(event)) { eventCallback.apply(window, settings.parseEvent(event)); } } catch (e) { error('Error in onTrackEvent', e); } }); } }; var trackActivations = function trackActivations(eventCallback) { var inputSettings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var settings = Object.assign({ trackActivations: true, //Transform the experiment and variation data into parameters accepted by the eventCallback function parseActivation: function parseActivation(experiment, variation) { var eventAction = experiment.name || experiment.id; var eventLabel = variation.name || variation.id; return [eventAction, eventLabel]; } }, inputSettings); if (settings.trackActivations) { onTrackActivation(function (experiment, variation) { try { eventCallback.apply(window, settings.parseActivation(experiment, variation)); } catch (e) { error('Error in onTrackActivation', e); } }); } }; /** * Track experiment and event activations to Google Analytics * @author brian.norman@crometrics.com (2/11/2021) * @author brian.norman@crometrics.com (added events: 4/9/2021) * @author andrew.wessels@crometrics.com (4/15/2021) * @author brian.norman@crometrics.com (updated: 5/7/2021) - removed GA property requirement * * This module sends information about experiments activating, and events firing to Google Analytics. * * This module no longer requires Custom Dimensions to be defined to deploy (required in previous iterations) * * This module can be configured using the `PJS.trackToGA` object. * Settings within this object also apply to `startTracking` functionality. * * IMPORTANT: You must set the `PJS.googleAnalyticsProperty` or `PJS.trackToGA.property` variable in project.js prior to this module's import in order * to define a new tracker. If `PJS.googleAnalyticsProperty` doesn't exist, the module will fall back to the default trackerObject. * Example settings: * ``` * PJS.trackToGA = { property: 'UA-21401193-1', trackerProperties: { allowLinker: true } }; * ``` * * Optional settings to be set in `PJS.trackToGA` object: * - property <string> : The GA property associated with the new trackerObject created. * - tracker <string> : The custom GA tracker name. Default = "cro_metrics_tracker" * - eventCategory <string> : The GA category to use for all events. Default is the platform name, e.g. "Optimizely" * */ var settings = Object.assign({ property: PJS.googleAnalyticsProperty, tracker: 'cro_metrics_tracker', trackerProperties: {}, // Additional tracker properties, eg. allowLinker, useAmpClientId eventCategory: platform //Optimizely, Convert, etc. }, PJS.trackToGA || {}); var customTracker = settings.property && settings.tracker; waitForUtils(function (utils) { var waitForGA = utils.waitUntil(function () { return window.ga && window.ga.getByName; }).then(function () { if (customTracker && !window.ga.getByName(customTracker)) { window.ga("create", settings.property, _objectSpread({ name: customTracker, cookieDomain: "auto" }, settings.trackerProperties)); log("Found GA and created \"".concat(customTracker, "\" tracker.")); } else { log("Found GA and using default tracker."); } })["catch"](error); var gaSendString = customTracker ? "".concat(customTracker, ".send") : 'send'; var sendEventToGA = function sendEventToGA(eventAction, eventLabel) { waitForGA.then(function () { window.ga(gaSendString, 'event', settings.eventCategory, eventAction, eventLabel, { nonInteraction: 1 // Don't count this event towards bounce metrics }); log("Tracked to GA:", { category: settings.eventCategory, action: eventAction, label: eventLabel }); })["catch"](error); }; trackEvents(sendEventToGA, settings); trackActivations(sendEventToGA, settings); }); }("analytics/track-to-ga"); } catch (e) { PJS.error("analytics/track-to-ga", e); } try { !function (TAG) { /** * Send a custom event to Optimizely */ var sendEvent = function sendEvent(eventName) { var tags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; window.optimizely.push({ type: "event", eventName: eventName, tags: tags }); }; var onTrackEvent = function onTrackEvent(callback) { window.optimizely.push({ type: "addListener", filter: { type: "analytics", name: "trackEvent" }, handler: function handler(event) { event.data.id = event.data.id || event.data.apiName; //This is to make the output more consistent between platforms callback(event.data); } }); }; /** * Learning center article scroll attribute * * Attributes: * - [IPV-232] Learning Center Article 25% Scroll <ipv232-learning-center-article-25-scroll> [20372815195] * * Tracks when users scroll past 25% on learning center articles */ // Match any learning center article page, ex: https://www.imperva.com/learn/this-is-an-example // Note that this will *not* match https://www.imperva.com/learn/ // Actual match should be `/learn/...` if (/^\/learn\/[^?].*/gmi.test(window.location.pathname)) { onTrackEvent(function (event) { if (event.id === "pjs-scrolled-past-25-of-page") { window.optimizely.push({ "type": "user", "attributes": { "ipv232-learning-center-article-25-scroll": "true" } }); sendEvent("push_attributes"); } }); } }("learning-center-article-scroll-attribute"); } catch (e) { PJS.error("learning-center-article-scroll-attribute", e); } try { !function (TAG) { /** * Send a custom event to Optimizely */ var sendEvent = function sendEvent(eventName) { var tags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; window.optimizely.push({ type: "event", eventName: eventName, tags: tags }); }; /** * Pages Per Visit Metrics * @description Sends an event when a user passes a threshold of total page views per session * * Metrics: * - [PJS] Visited 2+ Pages <pjs-visited-2-pages> * - [PJS] Visited 3+ Pages <pjs-visited-3-pages> * - [PJS] Visited 5+ Pages <pjs-visited-5-pages> */ // Get the last visited page var lastPage = sessionStorage.getItem("pjs-last-visited-page"); // Make sure the last page is not the current page (stops reloads from counting) if (lastPage === null || lastPage !== window.location.pathname) { sessionStorage.setItem("pjs-last-visited-page", window.location.pathname); // Get the number of pages visited (defaults to 1) var pagesVisited = 1 + Number.parseInt(sessionStorage.getItem("pjs-pages-visited") || 0); sessionStorage.setItem("pjs-pages-visited", pagesVisited); var breakpoints = [2, 3, 5]; if (breakpoints.includes(pagesVisited)) { sendEvent("pjs-visited-".concat(pagesVisited, "-pages")); } } }("pages-per-visit-metrics"); } catch (e) { PJS.error("pages-per-visit-metrics", e); } try { !function (TAG) { /** * Send a custom event to Optimizely */ var sendEvent = function sendEvent(eventName) { var tags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; window.optimizely.push({ type: "event", eventName: eventName, tags: tags }); }; /** * Time Spent on Site Metrics * @description Sends events after certain thresholds of time have passed. The amount of time is summed across pages. * * Metrics: * - [PJS] Spent 1 min on Site <pjs-spent-1-min-on-site> * - [PJS] Spent 1 min:30 sec on Site <pjs-spent-1-min-30-sec-on-site> * - [PJS] Spent 2 min on Site <pjs-spent-2-min-on-site> * - [PJS] Spent 2 min:30 sec on Site <pjs-spent-2-min-30-sec-on-site> */ var thresholds = { 60: "pjs-spent-1-min-on-site", 90: "pjs-spent-1-min-30-sec-on-site", 120: "pjs-spent-2-min-on-site", 150: "pjs-spent-2-min-30-sec-on-site" }; // Sort the thresholds in decending order (highest number is first) and convert them from strings to numbers var keys = Object.keys(thresholds).sort(function (a, b) { return b - a; }).map(function (key) { return Number.parseInt(key); }); // Get the current number of seconds spent on the site this session var seconds = Number.parseInt(sessionStorage.getItem("pjs-time-spent-on-site") || 0); // Get the maximum number of seconds the interval should run for var maxSeconds = Number.parseInt(keys[0]); if (seconds !== maxSeconds) { var handle = window.setInterval(function () { // Check if a threshold has been hit if (keys.includes(++seconds)) { sendEvent(thresholds[seconds]); } // Check if the interval can stop if (seconds === maxSeconds) { window.clearInterval(handle); } // Record the number of seconds spent sessionStorage.setItem("pjs-time-spent-on-site", seconds); }, 1000); } }("time-spent-on-site-metrics"); } catch (e) { PJS.error("time-spent-on-site-metrics", e); } try { !function (TAG) { var tag = "data-sec-form-submission"; /** * @description Sets an Optimizely custom attribute (or attributes) and pushes a custom event afterwards to ensure that Optimizely's API picks up the attributes. * @param { [key:string|number]: string } attributes * An object of key (id or attribute name) to attribute value mappings. Accepts multiple attributes at once. * @param { string } [eventName="push_attribute"] * Optional machine name of an event to send out after setting the attributes, * making sure the attributes are captured by Optimizely's API. */ var setAttributes = function setAttributes(attributes) { var eventName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "push_attribute"; window.optimizely.push({ type: "user", attributes: attributes }); window.optimizely.push({ type: "event", eventName: eventName }); }; /* Examples: import { initializeAttributes } from 'cromedics/x/attributes'; initializeAttributes([12345, 54321, 98765], 'none'); initializeAttributes(101010, 'brand new'); */ /** * Send a custom event to Optimizely */ var sendEvent = function sendEvent(eventName) { var tags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; window.optimizely.push({ type: "event", eventName: eventName, tags: tags }); }; var log = function log() { return PJS.log.apply(PJS, ["[".concat(tag, "]")].concat(Array.prototype.slice.call(arguments))); }; var error = function error() { return PJS.error.apply(PJS, [tag].concat(Array.prototype.slice.call(arguments))); }; var waitForUtils = function waitForUtils(callback) { onInitialized(function () { callback(window.optimizely.get('utils')); }); }; var onInitialized = function onInitialized(callback) { window.optimizely.initialized && callback() || window.optimizely.push({ type: 'addListener', filter: { type: "lifecycle", name: "initialized" }, handler: callback }); }; /** * data-sec-form-submission * @description fire pjs goal upon successfull form submission and tab "cloud data security" selected * module waits for #thankyoumodal modal to be shown, then checks if correct tab is displayed * Metrics: * - [PJS] Data Sec Trial Form Submissions <pjs_data_sec_trial_form_submission> 20966290643 * * Attributes: * - [PJS] DataSec Interest pjs_datasec_interest 20970651011 */ if (window.location.pathname === '/free-trial/') { log('activated.'); var applyAttribute = function applyAttribute() { if (window.location.search.match('prod=cloud-data-security')) { setAttributes({ 'pjs_datasec_interest': 'true' }); } else { document.querySelector('#signup-form-section .tabs-wrapper a[right-checklist-target="cloud-data-security"]').addEventListener('click', function () { setAttributes({ 'pjs_datasec_interest': 'true' }); }); } }; onInitialized(function () { waitForUtils(function (utils) { utils.waitForElement('.show#thankyoumodal').then(function () { if (document.querySelector('#signup-form-section .tabs-wrapper a[right-checklist-target="cloud-data-security"].active')) { sendEvent('pjs_data_sec_trial_form_submission'); } })["catch"](error); applyAttribute(); }); }); } }("data-sec-form-submission"); } catch (e) { PJS.error("data-sec-form-submission", e); } !function () { var queue = window.CROQ; window.CROQ = { initialized: true, push: function push(fn) { try { fn(); } catch (e) { PJS.error(e); } } }; queue.forEach(window.CROQ.push); }(); }(); }, "visitorAttributes": [], "enableForceParameters": true, "accountId": "6931781924", "events": [{"category": "other", "name": "[PJS] Contact Us Form Submissions", "eventType": "custom", "viewId": null, "apiName": "pjs_contact_us_form_submissions", "id": "9183330536", "eventFilter": null}, {"category": "other", "name": "[PJS] Request a Demo Form Submissions", "eventType": "custom", "viewId": null, "apiName": "pjs_request_a_demo_form_submissions", "id": "9189340679", "eventFilter": null}, {"category": "other", "name": "[PJS] Scrolled Past 50% of Page", "eventType": "custom", "viewId": null, "apiName": "pjs-scrolled-past-50-of-page", "id": "10311227317", "eventFilter": null}, {"category": "other", "name": "[PJS] Scrolled Past 25% of Page", "eventType": "custom", "viewId": null, "apiName": "pjs-scrolled-past-25-of-page", "id": "10316605495", "eventFilter": null}, {"category": "other", "name": "[PJS] Gartner Report Form Submission", "eventType": "custom", "viewId": null, "apiName": "pjs_gartner_form_submission", "id": "11692111428", "eventFilter": null}, {"category": "other", "name": "[PJS] Overall Form Submissions", "eventType": "custom", "viewId": null, "apiName": "pjs_overall_form_submissions", "id": "12727890135", "eventFilter": null}, {"category": "other", "name": "[PJS] Asset download form submissions (Resource Library)", "eventType": "custom", "viewId": null, "apiName": "pjs_asset_download_form_submissions", "id": "14045570121", "eventFilter": null}, {"category": "other", "name": "[PJS] 45+ Seconds on Page", "eventType": "custom", "viewId": null, "apiName": "pjs-spent-45s-or-more-on-page", "id": "14168790123", "eventFilter": null}, {"category": "other", "name": "[PJS] 30+ Seconds on Page", "eventType": "custom", "viewId": null, "apiName": "pjs-spent-30s-or-more-on-page", "id": "14176640075", "eventFilter": null}, {"category": "other", "name": "[PJS] Total Conversion Engagements", "eventType": "custom", "viewId": null, "apiName": "pjs_total_conversion_engagements", "id": "14189670320", "eventFilter": null}, {"category": "other", "name": "[PJS] Chat - Send", "eventType": "custom", "viewId": null, "apiName": "pjs_chat_send", "id": "14189940185", "eventFilter": null}, {"category": "other", "name": "[PJS] Get Quote Form Submissions", "eventType": "custom", "viewId": null, "apiName": "pjs_get_quote_form_submissions", "id": "14200190026", "eventFilter": null}, {"category": "other", "name": "[PJS] Chat - Window Opened", "eventType": "custom", "viewId": null, "apiName": "pjs_chat_opened", "id": "14205980152", "eventFilter": null}, {"category": "other", "name": "[IPV-60] Close Request Demo Modal", "eventType": "custom", "viewId": null, "apiName": "ipv60_close_request_modal", "id": "14776860586", "eventFilter": null}, {"category": "other", "name": "[IPV-75] Get Quote Clicks All", "eventType": "custom", "viewId": null, "apiName": "ipv75_get_quote_clicks_all", "id": "16904343344", "eventFilter": null}, {"category": "other", "name": "[IPV-81] Request A Demo Clicks", "eventType": "custom", "viewId": null, "apiName": "ipv81_request_demo_clicks", "id": "17065111080", "eventFilter": null}, {"category": "other", "name": "[PJS] Request a Demo Form Submissions Modal Only", "eventType": "custom", "viewId": null, "apiName": "pjs_request_demo_modal", "id": "17117250146", "eventFilter": null}, {"category": "other", "name": "[IPV-91] Get a Quote: Closed modal", "eventType": "custom", "viewId": null, "apiName": "ipv91_closed_modal", "id": "17444951077", "eventFilter": null}, {"category": "other", "name": "[PJS] Scrolled Past 1% of Page", "eventType": "custom", "viewId": null, "apiName": "pjs-scrolled-past-1-of-page", "id": "17447452768", "eventFilter": null}, {"category": "other", "name": "[IPV-91] Get a Quote Form Submissions - Modal only", "eventType": "custom", "viewId": null, "apiName": "ipv91_modal_submit", "id": "17453760011", "eventFilter": null}, {"category": "other", "name": "[PJS] Scrolled to End", "eventType": "custom", "viewId": null, "apiName": "pjs-scrolled-to-end", "id": "17461780816", "eventFilter": null}, {"category": "other", "name": "[PJS] Scrolled Past 75% of Page", "eventType": "custom", "viewId": null, "apiName": "pjs-scrolled-past-75-of-page", "id": "17463800447", "eventFilter": null}, {"category": "other", "name": "[IPV-88] Clicks on Community CTA", "eventType": "custom", "viewId": null, "apiName": "ipv88_ clicks_on_community_cta", "id": "17520090136", "eventFilter": null}, {"category": "other", "name": "[IPV-94] [Homepage] Clicks - Product Icons", "eventType": "custom", "viewId": null, "apiName": "ipv94_homepage_clicks_product_icons", "id": "17647891661", "eventFilter": null}, {"category": "other", "name": "[IPV96] Total Form Submissions", "eventType": "custom", "viewId": null, "apiName": "ipv96_total_form_submissions", "id": "18156590159", "eventFilter": null}, {"category": "other", "name": "[IPV96] Request Demo Form Submissions", "eventType": "custom", "viewId": null, "apiName": "ipv96_request_demo_form_submission", "id": "18257991004", "eventFilter": null}, {"category": "other", "name": "[IPV96] Download Now Form Submissions", "eventType": "custom", "viewId": null, "apiName": "ipv96_download_now_form_submission", "id": "18269600791", "eventFilter": null}, {"category": "other", "name": "[PJS] Form Downloads After Submit", "eventType": "custom", "viewId": null, "apiName": "pjs_form_download_after_submit", "id": "18568771067", "eventFilter": null}, {"category": "other", "name": "[IPV117] Click - CTA", "eventType": "custom", "viewId": null, "apiName": "ipv117_click_cta", "id": "18570531932", "eventFilter": null}, {"category": "other", "name": "[ipv140] Error Shown - Request Demo modal", "eventType": "custom", "viewId": null, "apiName": "ipv140_error_shown_modal", "id": "19187422300", "eventFilter": null}, {"category": "other", "name": "[PJS] Try.Imperva Form Submissions", "eventType": "custom", "viewId": null, "apiName": "pjs_try_imperva_form_submissions", "id": "19215971521", "eventFilter": null}, {"category": "other", "name": "[IPV130] Work Email Filled", "eventType": "custom", "viewId": null, "apiName": "ipv130_work_email_filled", "id": "19396903530", "eventFilter": null}, {"category": "other", "name": "[ipv150] Highlight Field - Company name", "eventType": "custom", "viewId": null, "apiName": "highlight_company", "id": "19402531049", "eventFilter": null}, {"category": "other", "name": "[ipv150] Highlight Field - Full Name", "eventType": "custom", "viewId": null, "apiName": "highlight_fullName", "id": "19428070602", "eventFilter": null}, {"category": "other", "name": "[IPV130] How Can We Help You Filled", "eventType": "custom", "viewId": null, "apiName": "ipv130_how_can_we_help_you_filled", "id": "19433384260", "eventFilter": null}, {"category": "other", "name": "[ipv150] Highlight Field - Work email", "eventType": "custom", "viewId": null, "apiName": "highlight_email", "id": "19447191670", "eventFilter": null}, {"category": "other", "name": "[ipv150] Highlight Field - Phone", "eventType": "custom", "viewId": null, "apiName": "highlight_phone", "id": "19449200746", "eventFilter": null}, {"category": "other", "name": "[IPV130] Job Title Filled", "eventType": "custom", "viewId": null, "apiName": "ipv130_job_title_filled", "id": "19451123905", "eventFilter": null}, {"category": "other", "name": "[IPV130] Company Name Filled", "eventType": "custom", "viewId": null, "apiName": "ipv130_company_name_filled", "id": "19451823362", "eventFilter": null}, {"category": "other", "name": "[IPV130] Name Filled", "eventType": "custom", "viewId": null, "apiName": "ipv130_name_filled", "id": "19508720003", "eventFilter": null}, {"category": "other", "name": "[IPV130] Step 1 Complete", "eventType": "custom", "viewId": null, "apiName": "ipv130_step_1_complete", "id": "19522510120", "eventFilter": null}, {"category": "other", "name": "[IPV142] Click - Homepage Hero CTA", "eventType": "custom", "viewId": null, "apiName": "ipv142_click_homepage_hero_cta", "id": "19527040215", "eventFilter": null}, {"category": "other", "name": "[IPV142] Click - Hero Header only", "eventType": "custom", "viewId": null, "apiName": "ipv142_click_hero_header_only", "id": "19581830530", "eventFilter": null}, {"category": "other", "name": "[IPV142] Click - Hero Image only", "eventType": "custom", "viewId": null, "apiName": "ipv142_click_hero_image_only", "id": "19591310425", "eventFilter": null}, {"category": "other", "name": "[IPV151] Click - CTI Page - Request Demo", "eventType": "custom", "viewId": null, "apiName": "ipv151_click_cti_page_request_demo", "id": "19734707363", "eventFilter": null}, {"category": "other", "name": "[PJS] Free Trial Submissions", "eventType": "custom", "viewId": null, "apiName": "pjs_free_trial_form_submissions", "id": "20080250294", "eventFilter": null}, {"category": "other", "name": "Visit Page: Trial - Cloud Data Sec - Thank You", "eventType": "custom", "viewId": null, "apiName": "visit_page_trial_cloud_data_sec_thank_you", "id": "20106445541", "eventFilter": null}, {"category": "other", "name": "[PJS] Under Attack Form Submissions", "eventType": "custom", "viewId": null, "apiName": "pjs_under_attack_form_submissions", "id": "20113062619", "eventFilter": null}, {"category": "other", "name": "Visit Page: Trial - App Sec - Thank You", "eventType": "custom", "viewId": null, "apiName": "visit_page_trial_app_sec_thank_you", "id": "20122384798", "eventFilter": null}, {"category": "other", "name": "[IPV180] Click - Start Now", "eventType": "click", "viewId": "20052915561", "apiName": "6931781924_ipv180_click__start_now", "id": "20125533492", "eventFilter": {"filterType": "target_selector", "selector": ".origSubmitBtn"}}, {"category": "other", "name": "[IPV180] Click - Continue - Step1", "eventType": "custom", "viewId": null, "apiName": "ipv180_click_continue_step1", "id": "20125633923", "eventFilter": null}, {"category": "other", "name": "[IPV-186] Closes Download Modal", "eventType": "custom", "viewId": null, "apiName": "ipv186_close_modal", "id": "20220431639", "eventFilter": null}, {"category": "other", "name": "[IPV-186] Clicks to open Download Modal", "eventType": "custom", "viewId": null, "apiName": "ipv186_clicks_to_download", "id": "20224013545", "eventFilter": null}, {"category": "other", "name": "[IPV232] Webinar Banner clicks", "eventType": "custom", "viewId": null, "apiName": "ipv232-webinar-banner-clicks", "id": "20319885519", "eventFilter": null}, {"category": "other", "name": "[IPV232] Clicks Proceed in Webinar Registration Modal", "eventType": "custom", "viewId": null, "apiName": "ipv232-clicks-proceed-in-webinar-registration-modal", "id": "20328325290", "eventFilter": null}, {"category": "other", "name": "[PJS] Spent 2 min on Site", "eventType": "custom", "viewId": null, "apiName": "pjs-spent-2-min-on-site", "id": "20449807201", "eventFilter": null}, {"category": "other", "name": "[PJS] Demo Page Form Submissions", "eventType": "custom", "viewId": null, "apiName": "pjs_demo_page_form_submissions", "id": "20476631579", "eventFilter": null}, {"category": "other", "name": "[PJS] Visited 2+ pages", "eventType": "custom", "viewId": null, "apiName": "pjs-visited-2-pages", "id": "20488250293", "eventFilter": null}, {"category": "other", "name": "[PJS] Visited 3+ pages", "eventType": "custom", "viewId": null, "apiName": "pjs-visited-3-pages", "id": "20490770505", "eventFilter": null}, {"category": "other", "name": "[PJS] Visited 5+ pages", "eventType": "custom", "viewId": null, "apiName": "pjs-visited-5-pages", "id": "20494044185", "eventFilter": null}, {"category": "other", "name": "[PJS] Spent 1 min on Site", "eventType": "custom", "viewId": null, "apiName": "pjs-spent-1-min-on-site", "id": "20499721559", "eventFilter": null}, {"category": "other", "name": "[PJS] Spent 2 min:30 sec on Site", "eventType": "custom", "viewId": null, "apiName": "pjs-spent-2-min-30-sec-on-site", "id": "20502130371", "eventFilter": null}, {"category": "other", "name": "[PJS] Spent 1 min:30 sec on Site", "eventType": "custom", "viewId": null, "apiName": "pjs-spent-1-min-30-sec-on-site", "id": "20513090192", "eventFilter": null}, {"category": "other", "name": "[IPV-269] Clicks Emergency DDoS help on Nav Submenu", "eventType": "custom", "viewId": null, "apiName": "ipv269-clicks-emergency-ddos-help-on-nav-submenu", "id": "20550062102", "eventFilter": null}, {"category": "other", "name": "[IPV-269] Clicks Technical Support on Nav Submenu", "eventType": "custom", "viewId": null, "apiName": "ipv269-clicks-technical-support-on-nav-submenu", "id": "20564791462", "eventFilter": null}, {"category": "other", "name": "[IPV-269] Clicks Contact Sales on Nav Submenu", "eventType": "custom", "viewId": null, "apiName": "ipv269-clicks-contact-sales-on-nav-submenu", "id": "20592960070", "eventFilter": null}, {"category": "other", "name": "[IPV250] Clicked Related Articles in Sidebar", "eventType": "click", "viewId": "20583073604", "apiName": "6931781924_ipv250_clicked_related_articles_in_sidebar", "id": "20601711490", "eventFilter": {"filterType": "target_selector", "selector": ".more-articles .article-link"}}, {"category": "other", "name": "[IPV-260] Clicks on Edge Security in subnav", "eventType": "custom", "viewId": null, "apiName": "ipv260-clicks-on-edge-sec", "id": "20766030257", "eventFilter": null}, {"category": "other", "name": "[IPV-260] Clicks on Application Security in subnav", "eventType": "custom", "viewId": null, "apiName": "ipv260-clicks-on-app-sec", "id": "20774020258", "eventFilter": null}, {"category": "other", "name": "[IPV-260] Clicks on Data Security in subnav", "eventType": "custom", "viewId": null, "apiName": "ipv260-clicks-on-data-sec", "id": "20791020233", "eventFilter": null}, {"category": "other", "name": "[IPV268] Clicked Report Banner in Sidebar", "eventType": "click", "viewId": "20583073604", "apiName": "6931781924_ipv268_clicked_report_banner_in_sidebar", "id": "20834740119", "eventFilter": {"filterType": "target_selector", "selector": ".gartner-sidebar-banner"}}, {"category": "other", "name": "[IPV-272] Clicks \"Get the Report\" CTA on Solutions Pages", "eventType": "click", "viewId": "20894862574", "apiName": "6931781924_ipv272_clicks_get_the_report_cta_on_solutions_pages", "id": "20913612497", "eventFilter": {"filterType": "target_selector", "selector": ".cro-getthereport"}}, {"category": "other", "name": "Trial Page: Clicks \"Application Security\"", "eventType": "click", "viewId": "20052915561", "apiName": "6931781924_trial_page_clicks_application_security", "id": "20944760858", "eventFilter": {"filterType": "target_selector", "selector": "#signup-form-section .tabs-wrapper a[right-checklist-target=\"application-security\"]"}}, {"category": "other", "name": "[PJS] Data Sec Trial Form Submissions", "eventType": "custom", "viewId": null, "apiName": "pjs_data_sec_trial_form_submission", "id": "20966290643", "eventFilter": null}, {"category": "other", "name": "Trial Page: Clicks \"Cloud Data Security\"", "eventType": "click", "viewId": "20052915561", "apiName": "6931781924_trial_page_clicks_cloud_data_security", "id": "20995180667", "eventFilter": {"filterType": "target_selector", "selector": "#signup-form-section .tabs-wrapper a[right-checklist-target=\"cloud-data-security\"]"}}, {"category": "other", "name": "[IPV282] Snapshot: Clicks \"Get Started\"", "eventType": "click", "viewId": "21035261630", "apiName": "6931781924_ipv282_snapshot_clicks_get_started", "id": "21013134730", "eventFilter": {"filterType": "target_selector", "selector": ".ipv282-modal-trigger"}}, {"category": "other", "name": "Snapshot: Clicks \"Get a sample report\"", "eventType": "click", "viewId": "21035261630", "apiName": "6931781924_snapshot_clicks_get_a_sample_report", "id": "21016502896", "eventFilter": {"filterType": "target_selector", "selector": "a[href=\"https://www.imperva.com/resources/wp-content/uploads/sites/6/2021/10/ImpervaSnapshot-SampleReport.pdf\"]"}}, {"category": "other", "name": "[IPV282] Snapshot: Video Interaction", "eventType": "custom", "viewId": null, "apiName": "ipv282_snapshot_video_interaction", "id": "21026072217", "eventFilter": null}, {"category": "other", "name": "Snapshot: Clicks \"Download brief\" CTA", "eventType": "click", "viewId": "21035261630", "apiName": "6931781924_snapshot_clicks_download_brief_cta", "id": "21049290064", "eventFilter": {"filterType": "target_selector", "selector": "a[href=\"https://www.imperva.com/resources/wp-content/uploads/sites/6/2021/12/Solution-Brief-Snapshot.pdf\"]"}}], "experimental": {"trimPages": true}, "revision": "7971"},p=i(132),h="initializeOptimizelyPreview";if(p.initGlobalStore(g),d.populateDirectiveData(),s.clientHasAlreadyInitialized())return void a.warn("Main / Disabling because Optimizely has already initialized on this page load. Are there multiple snippets on the page?");if(s.shouldBailForDesktopApp())return void a.log("Main / Disabling because of desktop app.");if(s.conflictInObservingChanges())return void a.log("Main / Disabling: Observe Changes Indefinitely is on, but browser does not support it.");if(s.shouldLoadInnie())l.registerFunction("getProjectId",(function(){return g.projectId})),l.registerFunction("getAccountId",(function(){return g.accountId})),f.addScriptAsync("https://app.optimizely.com/js/innie.js"),a.log("Main / Disabling in favor of the editor client.");else if(s.shouldLoadPreview()){var _;_=s.isSlave()?window.optimizely:window.optimizely=window.optimizely||[],_.push({type:"load",data:g}),a.log("Main / Disabling in favor of the preview client."),i(146).setupPreviewGlobal(),i(146).pushToPreviewGlobal({type:"pushPreviewData",name:"liveCommitData",data:g}),s.isSlave()||(l.registerFunction("getProjectId",(function(){return g.projectId})),f.addScriptSync("https://cdn-assets-prod.s3.amazonaws.com/js/preview2/6931781924.js"))}else if(s.shouldBootstrapDataForPreview()){l.registerFunction(h,(function(t){e(t),l.unregisterFunction(h)}));var v=s.isSlave()?PROJECT_ID_FOR_SLAVE_PREVIEW:l.getFunction("getProjectId")();u=t(s.getProjectToken(),v,s.getPreviewLayerIds()),f.addScriptSync(u),i(146).setupPreviewGlobal(),f.addScriptAsync("/dist/js/preview_ui.js")}else s.shouldBootstrapDataForEditor()?(l.registerFunction(h,(function(t){e(t),l.unregisterFunction(h)})),f.addScriptAsync(window.optimizely_editor_data_endpoint)):s.shouldInitialize()&&e(g);r.timeEnd("block")}try{n()}catch(e){try{i(119).handleError(e)}catch(e){console.log(e)}}}),(function(e,t,i){function n(){s();var e=x.getRumData();return e.extras=e.extras||{},e.extras.beacon={cjsTimeout:!0},e=_.pickBy(e,(function(e){return!_.isUndefined(e)})),a(e)}function r(e){var t=L.getPromise("RUM_FIRST_BEACON");return t?t.then(e):E.makeAsyncRequest("RUM_FIRST_BEACON",e)}function a(e){return _.isEmpty(e)?R.resolve():r((function(){return O.request({url:B,method:"POST",data:e,withCredentials:!0}).then((function(e){return E.resolveRequest("RUM_FIRST_BEACON",e),e}))["catch"]((function(e){throw A.error("POST to client-rum failed:",e),E.rejectRequest("RUM_FIRST_BEACON",e),e}))}))}function o(){var e=y.getCurrentScript();if(e)return e.src}function s(){var e={id:x.getRumId(),v:j,account:k.getAccountId(),project:k.getSnippetId()||k.getProjectId(),snippet:k.getSnippetId(),revision:k.getRevision(),clientVersion:V.getClientVersion(),hasSlave:!1,wxhr:!0,extras:{}},t=D.getPersistedBehaviorEventCount(),i=m.getEventCount();e["numBehaviorEvents"]=i;var n=i-t;_.extend(e.extras,{behaviorEventCountDiff:n,behaviorEventCountDecreased:n<0}),_.assign(e,c(),d()),S.dispatch(N.SET_RUM_DATA,{data:e})}function c(){var e=b.getGlobal("performance");if(e){var t,i=x.getScriptSrc();try{if(i){A.debug("Using derived script src: ",i);var n=e.getEntriesByName(i);n.length>0&&(t=n[0])}if(!t){var r=/\/\/[^.]+\.optimizely\.(com|test)\/(js|api\/client)\/[\d]+\.js/gi;A.debug("Scanning resource timing entries with regex");var a=e.getEntriesByType("resource");t=_.find(a,(function(e){return r.test(e.name)}))}if(t)return _.mapValues(C.ResourceTimingAttributes,(function(e,i){var n=t[i];return"number"==typeof n?Math.round(1e3*(n||0))/1e3:"serverTiming"===i?n||[]:void 0}))}catch(e){return}}}function u(){try{return!y.querySelector("body")}catch(e){return null}}function l(){try{b.getGlobal("requestAnimationFrame")((function(){var e=x.getRumData().timebase;S.dispatch(N.SET_RUM_DATA,{data:{render:I.now()-(e||0)}})}))}catch(e){return}}function d(){return F.getDurationsFor(_.values(C.RUMPerformanceTimingAttributes))}function f(){var e=T.keys(),t=_.filter(_.map(e,(function(e){var t=D.getStorageKeyFromKey(e);return t?{key:e,isForeign:D.isForeignKey(e),category:t,size:e.length+T.getItem(e).length}:null}))),i=_.reduce(t,(function(e,t){var i=t.key,n=D.getIdFromKey(i);if(!n)return e;var r=t.isForeign?e.foreign:e.local;return r[n]=!0,e}),{local:{},foreign:{}}),n=_.chain(t).filter({isForeign:!0}).reduce((function(e,t){var i=t.key.split("_")[0];return e[i]=!0,e}),{}).value(),r={local:0,foreign:0},a={local:{},foreign:{}};_.forEach(t,(function(e){var t=e.isForeign?"foreign":"local";r[t]+=e.size,a[t][e.category]||(a[t][e.category]=0),a[t][e.category]+=e.size}));var o={numKeys:T.allKeys().length,sizeKeys:T.allKeys().toString().length,sizeValues:T.allValues().toString().length,idCounts:{local:_.keys(i.local).length,foreign:_.keys(i.foreign).length},foreignOriginCount:_.keys(n).length,byteTotals:r,byteTotalsByCategory:a},s=w.estimateStorage();return s.then((function(e){return _.assign(o,{storageEstimate:e})}))}function g(){var e=b.getGlobal("performance"),t=e?e.timing:{},i=F.getMarks()||{},n=x.getApiData(),r=x.getDOMObservationData(),o=G.get("state").getActiveExperimentIds(),s=x.getFeaturesNeededData(),c=y.parseUri(x.getScriptSrc()),u=x.getRumData()||{},l=u.extras||{};_.assign(l,{apiCalls:n,DOMObservationData:r,paintTimings:h(),activeExperimentIds:o,numPages:U.getNumberOfPages(),snippet:{scheme:c.protocol.slice(0,-1),host:c.host,path:c.pathname},networkInfo:p(),experimental:k.getExperimental(),featuresNeeded:s,beacon:{cjsOnload:!0}});var d=b.getGlobal("Prototype");d&&!_.isUndefined(d.Version)&&(l.prototypeJS=d.Version);var g=!1;g=!0;var v=M.getFrames();v.length&&(l.xdFramesLoaded=v.length);var E={id:x.getRumId(),v:j,project:k.getSnippetId()||k.getProjectId(),navigationTimings:t,userTimings:i,xd:g,apis:_.keys(n),extras:l,sampleRate:u.sampleRate};f().then((function(e){var t=_.assign(E,{lsMetrics:e});a(t)}))}function p(){var e=b.getGlobal("navigator");if(e&&e.connection)return _.pick(e.connection,["downlink","rtt","effectiveType"])}function h(){var e=b.getGlobal("performance");if(e)try{var t=e.getEntriesByType("paint");if(_.isEmpty(t))return;return _.reduce(t,(function(e,t){return e[t.name]=Math.round(t.startTime),e}),{})}catch(e){return}}var _=i(2),v=i(5),E=i(6),m=i(70),I=i(24),y=i(79),S=i(9),T=i(80).LocalStorage,A=i(23),w=i(89),R=i(12).Promise,D=i(73),b=i(40),O=i(90),N=i(7),C=i(25),P=i(16),L=P.get("stores/async_request"),V=P.get("stores/client_metadata"),k=P.get("stores/global"),x=P.get("stores/rum"),F=P.get("stores/performance"),M=P.get("stores/xdomain"),U=P.get("stores/view_data"),G=i(92),B="https://rum.optimizely.com/rum",z=3e3,j="1.0",H=.01;t.initialize=function(){var e,t=v.generate().replace(/-/g,"");e=Math.random()<H;var i=o();S.dispatch(N.SET_RUM_DATA,{id:t,RumHost:B,inRumSample:e,src:i,data:{id:t,sync:u(),timebase:I.now(),sampleRate:H,url:i,extras:{initialDOMState:y.getReadyState()}}})},t.queueBeacons=function(){return x.getSampleRum()?(l(),y.isLoaded()?b.setTimeout(g,z):b.addEventListener("load",g),new R(function(e,t){b.setTimeout((function(){n().then(e,t)}),z)}).catch((function(e){A.warn("RUM / Error sending data:",e)}))):R.resolve()}}),(function(e,t,i){e.exports=i(3)._.noConflict()}),(function(e,t,i){(function(e,i){(function(){function n(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function a(e,t){return c(De(e),fi)}function o(e,t){return!!e.length&&f(e,t,0)>-1}function s(e,t,i){for(var n=-1,r=e.length;++n<r;)if(i(t,e[n]))return!0;return!1}function c(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e}function u(e,t,i){for(var n=-1,r=e.length;++n<r;){var a=e[n],o=t(a);if(null!=o&&(s===Ti?o===o:i(o,s)))var s=o,c=a}return c}function l(e,t,i,n){var r;return i(e,(function(e,i,a){if(t(e,i,a))return r=n?i:e,!1})),r}function d(e,t,i){for(var n=e.length,r=i?n:-1;i?r--:++r<n;)if(t(e[r],r,e))return r;return-1}function f(e,t,i){if(t!==t)return I(e,i);for(var n=i-1,r=e.length;++n<r;)if(e[n]===t)return n;return-1}function g(e,t,i,n,r){return r(e,(function(e,r,a){i=n?(n=!1,e):t(i,e,r,a)})),i}function p(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}function h(e){return function(t){return e(t)}}function _(e,t){return me(t,(function(t){return e[t]}))}function v(e){return e&&e.Object===Object?e:null}function E(e,t){if(e!==t){var i=null===e,n=e===Ti,r=e===e,a=null===t,o=t===Ti,s=t===t;if(e>t&&!a||!r||i&&!o&&s||n&&s)return 1;if(e<t&&!i||!s||a&&!n&&r||o&&r)return-1}return 0}function m(e){return pn[e]}function I(e,t,i){for(var n=e.length,r=t+(i?0:-1);i?r--:++r<n;){var a=e[r];if(a!==a)return r}return-1}function y(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function S(e,t){return e="number"==typeof e||dn.test(e)?+e:-1,t=null==t?Li:t,e>-1&&e%1==0&&e<t}function T(e){for(var t,i=[];!(t=e.next()).done;)i.push(t.value);return i}function A(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i}function w(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}function R(e){if(jt(e)&&!dr(e)){if(e instanceof D)return e;if(Dn.call(e,"__wrapped__"))return tt(e)}return new D(e)}function D(e,t){this.e=e,this.u=[],this.l=!!t}function b(){}function O(e,t){return C(e,t)&&delete e[t]}function N(e,t){if(Xn){var i=e[t];return i===Di?Ti:i}return Dn.call(e,t)?e[t]:Ti}function C(e,t){return Xn?e[t]!==Ti:Dn.call(e,t)}function P(e,t,i){e[t]=Xn&&i===Ti?Di:i}function L(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function V(){this.d={hash:new b,map:Yn?new Yn:[],string:new b}}function k(e){var t=this.d;return Ze(e)?O("string"==typeof e?t.string:t.hash,e):Yn?t.map["delete"](e):W(t.map,e)}function x(e){var t=this.d;return Ze(e)?N("string"==typeof e?t.string:t.hash,e):Yn?t.map.get(e):X(t.map,e)}function F(e){var t=this.d;return Ze(e)?C("string"==typeof e?t.string:t.hash,e):Yn?t.map.has(e):Q(t.map,e)}function M(e,t){var i=this.d;return Ze(e)?P("string"==typeof e?i.string:i.hash,e,t):Yn?i.map.set(e,t):J(i.map,e,t),this}function U(e){var t=-1,i=e?e.length:0;for(this.d=new L;++t<i;)this.push(e[t])}function G(e,t){var i=e.d;if(Ze(t)){var n=i.d,r="string"==typeof t?n.string:n.hash;return r[t]===Di}return i.has(t)}function B(e){var t=this.d;if(Ze(e)){var i=t.d,n="string"==typeof e?i.string:i.hash;n[e]=Di}else t.set(e,Di)}function z(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function j(){this.d={array:[],map:null}}function H(e){var t=this.d,i=t.array;return i?W(i,e):t.map["delete"](e)}function K(e){var t=this.d,i=t.array;return i?X(i,e):t.map.get(e)}function Y(e){var t=this.d,i=t.array;return i?Q(i,e):t.map.has(e)}function q(e,t){var i=this.d,n=i.array;n&&(n.length<wi-1?J(n,e,t):(i.array=null,i.map=new L(n)));var r=i.map;return r&&r.set(e,t),this}function W(e,t){var i=$(e,t);if(i<0)return!1;var n=e.length-1;return i==n?e.pop():zn.call(e,i,1),!0}function X(e,t){var i=$(e,t);return i<0?Ti:e[i][1]}function Q(e,t){return $(e,t)>-1}function $(e,t){for(var i=e.length;i--;)if(Nt(e[i][0],t))return i;return-1}function J(e,t,i){var n=$(e,t);n<0?e.push([t,i]):e[n][1]=i}function Z(e,t,i,n){return e===Ti||Nt(e,wn[i])&&!Dn.call(n,i)?t:e}function ee(e,t,i){(i===Ti||Nt(e[t],i))&&("number"!=typeof t||i!==Ti||t in e)||(e[t]=i)}function te(e,t,i){var n=e[t];Dn.call(e,t)&&Nt(n,i)&&(i!==Ti||t in e)||(e[t]=i)}function ie(e,t){return e&&nr(t,oi(t),e)}function ne(e){return"function"==typeof e?e:hi}function re(e,t,i,n,r,a,o){var s;if(n&&(s=a?n(e,r,a,o):n(e)),s!==Ti)return s;if(!zt(e))return e;var c=dr(e);if(c){if(s=Xe(e),!t)return De(e,s)}else{var u=We(e),l=u==Ui||u==Gi;if(fr(e))return Ne(e,t);if(u==ji||u==Vi||l&&!a){if(y(e))return a?e:{};if(s=Qe(l?{}:e),!t)return s=ie(s,e),i?Me(e,s):s}else{if(!gn[u])return a?e:{};s=$e(e,u,t)}}o||(o=new z);var d=o.get(e);return d?d:(o.set(e,s),(c?tr:fe)(e,(function(r,a){te(s,a,re(r,t,i,n,a,e,o))})),i&&!c?Me(e,s):s)}function ae(e){return zt(e)?Gn(e):{}}function oe(e,t,i){if("function"!=typeof e)throw new TypeError(Ri);return setTimeout((function(){e.apply(Ti,i)}),t)}function se(e,t,i,n){var r=-1,a=o,c=!0,u=e.length,l=[],d=t.length;if(!u)return l;i&&(t=me(t,h(i))),n?(a=s,c=!1):t.length>=wi&&(a=G,c=!1,t=new U(t));e:for(;++r<u;){var f=e[r],g=i?i(f):f;if(c&&g===g){for(var p=d;p--;)if(t[p]===g)continue e;l.push(f)}else a(t,g,n)||l.push(f)}return l}function ce(e,t){var i=!0;return tr(e,(function(e,n,r){return i=!!t(e,n,r)})),i}function ue(e,t){var i=[];return tr(e,(function(e,n,r){t(e,n,r)&&i.push(e)})),i}function le(e,t,i,n){n||(n=[]);for(var r=-1,a=e.length;++r<a;){var o=e[r];t>0&&Vt(o)&&(i||dr(o)||Pt(o))?t>1?le(o,t-1,i,n):c(n,o):i||(n[n.length]=o)}return n}function de(e,t){return null==e?e:ir(e,t,si)}function fe(e,t){return e&&ir(e,t,oi)}function ge(e,t){return ue(t,(function(t){return Gt(e[t])}))}function pe(e,t,i,n,r){return e===t||(null==e||null==t||!zt(e)&&!jt(t)?e!==e&&t!==t:he(e,t,pe,i,n,r))}function he(e,t,i,n,r,a){var o=dr(e),s=dr(t),c=ki,u=ki;o||(c=Nn.call(e),c=c==Vi?ji:c),s||(u=Nn.call(t),u=u==Vi?ji:u);var l=c==ji&&!y(e),d=u==ji&&!y(t),f=c==u;a||(a=[]);var g=_t(a,(function(t){return t[0]===e}));if(g&&g[1])return g[1]==t;if(a.push([e,t]),f&&!l){var p=o||$t(e)?He(e,t,i,n,r,a):Ke(e,t,c,i,n,r,a);return a.pop(),p}if(!(r&Ci)){var h=l&&Dn.call(e,"__wrapped__"),_=d&&Dn.call(t,"__wrapped__");if(h||_){var p=i(h?e.value():e,_?t.value():t,n,r,a);return a.pop(),p}}if(!f)return!1;var p=Ye(e,t,i,n,r,a);return a.pop(),p}function _e(e){var t=typeof e;return"function"==t?e:null==e?hi:("object"==t?Ie:we)(e)}function ve(e){return Hn(Object(e))}function Ee(e){e=null==e?e:Object(e);var t=[];for(var i in e)t.push(i);return t}function me(e,t){var i=-1,n=Lt(e)?Array(e.length):[];return tr(e,(function(e,r,a){n[++i]=t(e,r,a)})),n}function Ie(e){var t=oi(e);return function(i){var n=t.length;if(null==i)return!n;for(i=Object(i);n--;){var r=t[n];if(!(r in i&&pe(e[r],i[r],Ti,Ni|Ci)))return!1}return!0}}function ye(e,t,i,n,r){if(e!==t){var a=dr(t)||$t(t)?Ti:si(t);tr(a||t,(function(o,s){if(a&&(s=o,o=t[s]),zt(o))r||(r=new z),Se(e,t,s,i,ye,n,r);else{var c=n?n(e[s],o,s+"",e,t,r):Ti;c===Ti&&(c=o),ee(e,s,c)}}))}}function Se(e,t,i,n,r,a,o){var s=e[i],c=t[i],u=o.get(c);if(u)return void ee(e,i,u);var l=a?a(s,c,i+"",e,t,o):Ti,d=l===Ti;d&&(l=c,dr(c)||$t(c)?dr(s)?l=s:Vt(s)?l=De(s):(d=!1,l=re(c,!a)):Wt(c)||Pt(c)?Pt(s)?l=ti(s):!zt(s)||n&&Gt(s)?(d=!1,l=re(c,!a)):l=s:d=!1),o.set(c,l),d&&r(l,c,n,a,o),o["delete"](c),ee(e,i,l)}function Te(e,t){return e=Object(e),It(t,(function(t,i){return i in e&&(t[i]=e[i]),t}),{})}function Ae(e,t){var i={};return de(e,(function(e,n){t(e,n)&&(i[n]=e)})),i}function we(e){return function(t){return null==t?Ti:t[e]}}function Re(e,t,i){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),i=i>r?r:i,i<0&&(i+=r),r=t>i?0:i-t>>>0,t>>>=0;for(var a=Array(r);++n<r;)a[n]=e[n+t];return a}function De(e){return Re(e,0,e.length)}function be(e,t){var i;return tr(e,(function(e,n,r){return i=t(e,n,r),!i})),!!i}function Oe(e,t){var i=e;return It(t,(function(e,t){return t.func.apply(t.thisArg,c([e],t.args))}),i)}function Ne(e,t){if(t)return e.slice();var i=new e.constructor(e.length);return e.copy(i),i}function Ce(e){var t=new e.constructor(e.byteLength);return new xn(t).set(new xn(e)),t}function Pe(e){return It(A(e),n,new e.constructor)}function Le(e){var t=new e.constructor(e.source,un.exec(e));return t.lastIndex=e.lastIndex,t}function Ve(e){return It(w(e),r,new e.constructor)}function ke(e){return er?Object(er.call(e)):{}}function xe(e,t){var i=t?Ce(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function Fe(e,t,i,n){i||(i={});for(var r=-1,a=t.length;++r<a;){var o=t[r],s=n?n(i[o],e[o],o,i,e):e[o];te(i,o,s)}return i}function Me(e,t){return nr(e,ar(e),t)}function Ue(e){return Dt((function(t,i){var n=-1,r=i.length,a=r>1?i[r-1]:Ti;for(a="function"==typeof a?(r--,a):Ti,t=Object(t);++n<r;){var o=i[n];o&&e(t,o,n,a)}return t}))}function Ge(e,t){return function(i,n){if(null==i)return i;if(!Lt(i))return e(i,n);for(var r=i.length,a=t?r:-1,o=Object(i);(t?a--:++a<r)&&n(o[a],a,o)!==!1;);return i}}function Be(e){return function(t,i,n){for(var r=-1,a=Object(t),o=n(t),s=o.length;s--;){var c=o[e?s:++r];if(i(a[c],c,a)===!1)break}return t}}function ze(e){return function(){var t=arguments,i=ae(e.prototype),n=e.apply(i,t);return zt(n)?n:i}}function je(e,t,i,n){function r(){for(var t=-1,s=arguments.length,c=-1,u=n.length,l=Array(u+s),d=this&&this!==Tn&&this instanceof r?o:e;++c<u;)l[c]=n[c];for(;s--;)l[c++]=arguments[++t];return d.apply(a?i:this,l)}if("function"!=typeof e)throw new TypeError(Ri);var a=t&bi,o=ze(e);return r}function He(e,t,i,n,r,a){var o=-1,s=r&Ci,c=r&Ni,u=e.length,l=t.length;if(u!=l&&!(s&&l>u))return!1;for(var d=!0;++o<u;){var f,g=e[o],p=t[o];if(f!==Ti){if(f)continue;d=!1;break}if(c){if(!be(t,(function(e){return g===e||i(g,e,n,r,a)}))){d=!1;break}}else if(g!==p&&!i(g,p,n,r,a)){d=!1;break}}return d}function Ke(e,t,i,n,r,a,o){switch(i){case xi:case Fi:return+e==+t;case Mi:return e.name==t.name&&e.message==t.message;case zi:return e!=+e?t!=+t:e==+t;case Hi:case Yi:return e==t+""}return!1}function Ye(e,t,i,n,r,a){var o=r&Ci,s=oi(e),c=s.length,u=oi(t),l=u.length;if(c!=l&&!o)return!1;for(var d=c;d--;){var f=s[d];if(!(o?f in t:Dn.call(t,f)))return!1}for(var g=!0,p=o;++d<c;){f=s[d];var h,_=e[f],v=t[f];if(!(h===Ti?_===v||i(_,v,n,r,a):h)){g=!1;break}p||(p="constructor"==f)}if(g&&!p){var E=e.constructor,m=t.constructor;E!=m&&"constructor"in e&&"constructor"in t&&!("function"==typeof E&&E instanceof E&&"function"==typeof m&&m instanceof m)&&(g=!1)}return g}function qe(e,t){var i=e[t];return Kt(i)?i:Ti}function We(e){return Nn.call(e)}function Xe(e){var t=e.length,i=e.constructor(t);return t&&"string"==typeof e[0]&&Dn.call(e,"index")&&(i.index=e.index,i.input=e.input),i}function Qe(e){return"function"!=typeof e.constructor||et(e)?{}:ae(Mn(e))}function $e(e,t,i){var n=e.constructor;switch(t){case Xi:return Ce(e);case xi:case Fi:return new n(+e);case Qi:case $i:case Ji:case Zi:case en:case tn:case nn:case rn:case an:return xe(e,i);case Bi:return Pe(e);case zi:case Yi:return new n(e);case Hi:return Le(e);case Ki:return Ve(e);case qi:return ke(e)}}function Je(e){var t=e?e.length:Ti;return Bt(t)&&(dr(e)||Qt(e)||Pt(e))?p(t,String):null}function Ze(e){var t=typeof e;return"number"==t||"boolean"==t||"string"==t&&"__proto__"!=e||null==e}function et(e){var t=e&&e.constructor,i="function"==typeof t&&t.prototype||wn;return e===i}function tt(e){var t=new D(e.e,e.l);return t.u=De(e.u),t}function it(e){return ue(e,Boolean)}function nt(e,t){return e&&e.length?d(e,_e(t,3)):-1}function rt(e){var t=e?e.length:0;return t?le(e,1):[]}function at(e){var t=e?e.length:0;return t?le(e,Pi):[]}function ot(e){return e?e[0]:Ti}function st(e,t,i){var n=e?e.length:0;i="number"==typeof i?i<0?Kn(n+i,0):i:0;for(var r=(i||0)-1,a=t===t;++r<n;){var o=e[r];if(a?o===t:o!==o)return r}return-1}function ct(e){var t=e?e.length:0;return t?e[t-1]:Ti}function ut(e,t,i){var n=e?e.length:0;return t=null==t?0:+t,i=i===Ti?n:+i,n?Re(e,t,i):[]}function lt(e){var t=R(e);return t.l=!0,t}function dt(e,t){return t(e),e}function ft(e,t){return t(e)}function gt(){return Oe(this.e,this.u)}function pt(e,t,i){return t=i?Ti:t,ce(e,_e(t))}function ht(e,t){return ue(e,_e(t))}function _t(e,t){return l(e,_e(t),tr)}function vt(e,t){return tr(e,ne(t))}function Et(e,t,i,n){e=Lt(e)?e:fi(e),i=i&&!n?gr(i):0;var r=e.length;return i<0&&(i=Kn(r+i,0)),Qt(e)?i<=r&&e.indexOf(t,i)>-1:!!r&&f(e,t,i)>-1}function mt(e,t){return me(e,_e(t))}function It(e,t,i){return g(e,_e(t),i,arguments.length<3,tr)}function yt(e){return null==e?0:(e=Lt(e)?e:oi(e),e.length)}function St(e,t,i){return t=i?Ti:t,be(e,_e(t))}function Tt(e,t){var i=0;return t=_e(t),me(me(e,(function(e,n,r){return{value:e,index:i++,criteria:t(e,n,r)}})).sort((function(e,t){return E(e.criteria,t.criteria)||e.index-t.index})),we("value"))}function At(e,t){var i;if("function"!=typeof t)throw new TypeError(Ri);return e=gr(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=Ti),i}}function wt(e){if("function"!=typeof e)throw new TypeError(Ri);return function(){return!e.apply(this,arguments)}}function Rt(e){return At(2,e)}function Dt(e,t){if("function"!=typeof e)throw new TypeError(Ri);return t=Kn(t===Ti?e.length-1:gr(t),0),function(){for(var i=arguments,n=-1,r=Kn(i.length-t,0),a=Array(r);++n<r;)a[n]=i[t+n];var o=Array(t+1);for(n=-1;++n<t;)o[n]=i[n];return o[t]=a,e.apply(this,o)}}function bt(e){return zt(e)?dr(e)?De(e):nr(e,oi(e)):e}function Ot(e){return re(e,!0,!0)}function Nt(e,t){return e===t||e!==e&&t!==t}function Ct(e,t){return e>t}function Pt(e){return Vt(e)&&Dn.call(e,"callee")&&(!Bn.call(e,"callee")||Nn.call(e)==Vi)}function Lt(e){return null!=e&&Bt(rr(e))&&!Gt(e)}function Vt(e){return jt(e)&&Lt(e)}function kt(e){return e===!0||e===!1||jt(e)&&Nn.call(e)==xi}function xt(e){return jt(e)&&Nn.call(e)==Fi}function Ft(e){if(Lt(e)&&(dr(e)||Qt(e)||Gt(e.splice)||Pt(e)))return!e.length;for(var t in e)if(Dn.call(e,t))return!1;return!0}function Mt(e,t){return pe(e,t)}function Ut(e){return"number"==typeof e&&jn(e)}function Gt(e){var t=zt(e)?Nn.call(e):"";return t==Ui||t==Gi}function Bt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Li}function zt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function jt(e){return!!e&&"object"==typeof e}function Ht(e){return qt(e)&&e!=+e}function Kt(e){return null!=e&&(Gt(e)?Pn.test(Rn.call(e)):jt(e)&&(y(e)?Pn:ln).test(e))}function Yt(e){return null===e}function qt(e){return"number"==typeof e||jt(e)&&Nn.call(e)==zi}function Wt(e){if(!jt(e)||Nn.call(e)!=ji||y(e))return!1;var t=Mn(e);if(null===t)return!0;var i=t.constructor;return"function"==typeof i&&i instanceof i&&Rn.call(i)==On}function Xt(e){return zt(e)&&Nn.call(e)==Hi}function Qt(e){return"string"==typeof e||!dr(e)&&jt(e)&&Nn.call(e)==Yi}function $t(e){return jt(e)&&Bt(e.length)&&!!fn[Nn.call(e)]}function Jt(e){return e===Ti}function Zt(e,t){return e<t}function ei(e){return Lt(e)?e.length?De(e):[]:fi(e)}function ti(e){return nr(e,si(e))}function ii(e){return"string"==typeof e?e:null==e?"":e+""}function ni(e,t){var i=ae(e);return t?hr(i,t):i}function ri(e,t){return e&&fe(e,ne(t))}function ai(e,t){return null!=e&&Dn.call(e,t)}function oi(e){var t=et(e);if(!t&&!Lt(e))return ve(e);var i=Je(e),n=!!i,r=i||[],a=r.length;for(var o in e)!Dn.call(e,o)||n&&("length"==o||S(o,a))||t&&"constructor"==o||r.push(o);return r}function si(e){for(var t=-1,i=et(e),n=Ee(e),r=n.length,a=Je(e),o=!!a,s=a||[],c=s.length;++t<r;){var u=n[t];o&&("length"==u||S(u,c))||"constructor"==u&&(i||!Dn.call(e,u))||s.push(u)}return s}function ci(e,t){var i={};return t=_e(t,3),fe(e,(function(e,n,r){i[n]=t(e,n,r)})),i}function ui(e,t){return t=_e(t),Ae(e,(function(e,i){return!t(e,i)}))}function li(e,t){return null==e?{}:Ae(e,_e(t))}function di(e,t,i){var n=null==e?Ti:e[t];return n===Ti&&(n=i),Gt(n)?n.call(e):n}function fi(e){return e?_(e,oi(e)):[]}function gi(e){return e=ii(e),e&&sn.test(e)?e.replace(on,m):e}function pi(e){return function(){return e}}function hi(e){return e}function _i(e){return Ie(hr({},e))}function vi(e,t,i){var n=oi(t),r=ge(t,n);null!=i||zt(t)&&(r.length||!n.length)||(i=t,t=e,e=this,r=ge(t,oi(t)));var a=!(zt(i)&&"chain"in i)||i.chain,o=Gt(e);return tr(r,(function(i){var n=t[i];e[i]=n,o&&(e.prototype[i]=function(){var t=this.l;if(a||t){var i=e(this.e),r=i.u=De(this.u);return r.push({func:n,args:arguments,thisArg:e}),i.l=t,i}return n.apply(e,c([this.value()],arguments))})})),e}function Ei(){return Tn._===this&&(Tn._=Cn),this}function mi(){}function Ii(e){var t=++bn;return ii(e)+t}function yi(e){return e&&e.length?u(e,hi,Ct):Ti}function Si(e){return e&&e.length?u(e,hi,Zt):Ti}var Ti,Ai="4.6.1",wi=200,Ri="Expected a function",Di="__lodash_hash_undefined__",bi=1,Oi=32,Ni=1,Ci=2,Pi=1/0,Li=9007199254740991,Vi="[object Arguments]",ki="[object Array]",xi="[object Boolean]",Fi="[object Date]",Mi="[object Error]",Ui="[object Function]",Gi="[object GeneratorFunction]",Bi="[object Map]",zi="[object Number]",ji="[object Object]",Hi="[object RegExp]",Ki="[object Set]",Yi="[object String]",qi="[object Symbol]",Wi="[object WeakMap]",Xi="[object ArrayBuffer]",Qi="[object Float32Array]",$i="[object Float64Array]",Ji="[object Int8Array]",Zi="[object Int16Array]",en="[object Int32Array]",tn="[object Uint8Array]",nn="[object Uint8ClampedArray]",rn="[object Uint16Array]",an="[object Uint32Array]",on=/[&<>"'`]/g,sn=RegExp(on.source),cn=/[\\^$.*+?()[\]{}|]/g,un=/\w*$/,ln=/^\[object .+?Constructor\]$/,dn=/^(?:0|[1-9]\d*)$/,fn={};fn[Qi]=fn[$i]=fn[Ji]=fn[Zi]=fn[en]=fn[tn]=fn[nn]=fn[rn]=fn[an]=!0,fn[Vi]=fn[ki]=fn[Xi]=fn[xi]=fn[Fi]=fn[Mi]=fn[Ui]=fn[Bi]=fn[zi]=fn[ji]=fn[Hi]=fn[Ki]=fn[Yi]=fn[Wi]=!1;var gn={};gn[Vi]=gn[ki]=gn[Xi]=gn[xi]=gn[Fi]=gn[Qi]=gn[$i]=gn[Ji]=gn[Zi]=gn[en]=gn[Bi]=gn[zi]=gn[ji]=gn[Hi]=gn[Ki]=gn[Yi]=gn[qi]=gn[tn]=gn[nn]=gn[rn]=gn[an]=!0,gn[Mi]=gn[Ui]=gn[Wi]=!1;var pn={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},hn={"function":!0,object:!0},_n=hn[typeof t]&&t&&!t.nodeType?t:Ti,vn=hn[typeof e]&&e&&!e.nodeType?e:Ti,En=vn&&vn.exports===_n?_n:Ti,mn=v(_n&&vn&&"object"==typeof i&&i),In=v(hn[typeof self]&&self),yn=v(hn[typeof window]&&window),Sn=v(hn[typeof this]&&this),Tn=mn||yn!==(Sn&&Sn.window)&&yn||In||Sn||Function("return this")(),An=Array.prototype,wn=Object.prototype,Rn=Function.prototype.toString,Dn=wn.hasOwnProperty,bn=0,On=Rn.call(Object),Nn=wn.toString,Cn=Tn._,Pn=RegExp("^"+Rn.call(Dn).replace(cn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ln=En?Ti:Ti,Vn=Tn.Reflect,kn=Tn.Symbol,xn=Tn.Uint8Array,Fn=Vn?Vn.enumerate:Ti,Mn=Object.getPrototypeOf,Un=Object.getOwnPropertySymbols,Gn=Object.create,Bn=wn.propertyIsEnumerable,zn=An.splice,jn=Tn.isFinite,Hn=Object.keys,Kn=Math.max,Yn=qe(Tn,"Map"),qn=qe(Tn,"Set"),Wn=qe(Tn,"WeakMap"),Xn=qe(Object,"create"),Qn=Yn?Rn.call(Yn):"",$n=qn?Rn.call(qn):"",Jn=Wn?Rn.call(Wn):"",Zn=kn?kn.prototype:Ti,er=Zn?Zn.valueOf:Ti,tr=Ge(fe),ir=Be();Fn&&!Bn.call({valueOf:1},"valueOf")&&(Ee=function(e){return T(Fn(e))});var nr=Fe,rr=we("length"),ar=Un||function(){return[]};(Yn&&We(new Yn)!=Bi||qn&&We(new qn)!=Ki||Wn&&We(new Wn)!=Wi)&&(We=function(e){var t=Nn.call(e),i=t==ji?e.constructor:null,n="function"==typeof i?Rn.call(i):"";if(n)switch(n){case Qn:return Bi;case $n:return Ki;case Jn:return Wi}return t});var or=Dt((function(e,t){return dr(e)||(e=null==e?[]:[Object(e)]),t=le(t,1),a(e,t)})),sr=Dt((function(e,t,i){return je(e,bi|Oi,t,i)})),cr=Dt((function(e,t){return oe(e,1,t)})),ur=Dt((function(e,t,i){return oe(e,pr(t)||0,i)})),lr=Dt((function(e,t){return je(e,Oi,Ti,t)})),dr=Array.isArray,fr=Ln?function(e){return e instanceof Ln}:pi(!1),gr=Number,pr=Number,hr=Ue((function(e,t){nr(t,oi(t),e)})),_r=Ue((function(e,t){nr(t,si(t),e)})),vr=Ue((function(e,t,i,n){Fe(t,si(t),e,n)})),Er=Dt((function(e){return e.push(Ti,Z),vr.apply(Ti,e)})),mr=Ue((function(e,t,i){ye(e,t,i)})),Ir=Dt((function(e,t){return null==e?{}:(t=me(le(t,1),String),Te(e,se(si(e),t)))})),yr=Dt((function(e,t){return null==e?{}:Te(e,le(t,1))})),Sr=_e;D.prototype=ae(R.prototype),D.prototype.constructor=D,b.prototype=Xn?Xn(null):wn,L.prototype.clear=V,L.prototype["delete"]=k,L.prototype.get=x,L.prototype.has=F,L.prototype.set=M,U.prototype.push=B,z.prototype.clear=j,z.prototype["delete"]=H,z.prototype.get=K,z.prototype.has=Y,z.prototype.set=q,R.assign=hr,R.assignIn=_r,R.before=At,R.bind=sr,R.chain=lt,R.compact=it,R.concat=or,R.create=ni,R.defaults=Er,R.defer=cr,R.delay=ur,R.filter=ht,R.flatten=rt,R.flattenDeep=at,R.iteratee=Sr,R.keys=oi,R.map=mt,R.mapValues=ci,R.matches=_i,R.merge=mr,R.mixin=vi,R.negate=wt,R.omit=Ir,R.omitBy=ui,R.once=Rt,R.partial=lr,R.pick=yr,R.pickBy=li,R.slice=ut,R.sortBy=Tt,R.tap=dt,R.thru=ft,R.toArray=ei,R.values=fi,R.extend=_r,vi(R,R),R.clone=bt,R.cloneDeep=Ot,R.escape=gi,R.every=pt,R.find=_t,R.findIndex=nt,R.forEach=vt,R.forOwn=ri,R.has=ai,R.head=ot,R.identity=hi,R.includes=Et,R.indexOf=st,R.isArguments=Pt,R.isArray=dr,R.isBoolean=kt,R.isDate=xt,R.isEmpty=Ft,R.isEqual=Mt,R.isFinite=Ut,R.isFunction=Gt,R.isNaN=Ht,R.isNull=Yt,R.isNumber=qt,R.isObject=zt,R.isRegExp=Xt,R.isString=Qt,R.isUndefined=Jt,R.last=ct,R.max=yi,R.min=Si,R.noConflict=Ei,R.noop=mi,R.reduce=It,R.result=di,R.size=yt,R.some=St,R.uniqueId=Ii,R.each=vt,R.first=ot,vi(R,(function(){var e={};return fe(R,(function(t,i){Dn.call(R.prototype,i)||(e[i]=t)})),e})(),{chain:!1}),R.VERSION=Ai,tr(["pop","join","replace","reverse","split","push","shift","sort","splice","unshift"],(function(e){var t=(/^(?:replace|split)$/.test(e)?String.prototype:An)[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|join|replace|shift)$/.test(e);R.prototype[e]=function(){var e=arguments;return n&&!this.l?t.apply(this.value(),e):this[i]((function(i){return t.apply(i,e)}))}})),R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=gt,(yn||In||{})._=R,_n&&vn&&(En&&((vn.exports=R)._=R),_n._=R)}).call(this)}).call(t,i(4)(e),(function(){return this})())}),(function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}}),(function(e,t){t.generate=function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)}}),(function(e,t,i){var n=i(7),r=i(9),a=i(12).Promise,o=i(16),s=o.get("stores/async_request");t.makeAsyncRequest=function(e,t){var i=s.getPromise(e);if(i)return i;var o,c,u=new a(function(e,t){o=e,c=t});return r.dispatch(n.REGISTER_ASYNC_DEFERRED,{source:e,promise:u,resolver:o,rejecter:c}),t&&t(),u},t.resolveRequest=function(e,t){r.dispatch(n.RESOLVE_DEFERRED,{source:e,resolveWith:t})},t.rejectRequest=function(e,t){r.dispatch(n.REJECT_DEFERRED,{source:e,rejectWith:t})}}),(function(e,t,i){var n=i(8);e.exports=n({LOG:null,SET_LOGLEVEL:null,INITIALIZE_STATE:null,SET_DOMCONTENTLOADED:null,ACTIVATE:null,UPDATE_BEHAVIOR_STORE:null,DATA_LOADED:null,SET_CLIENT_NAME:null,SET_CLIENT_VERSION:null,LOAD_PERSISTED_LAYER_STATES:null,RECORD_GLOBAL_DECISION:null,RECORD_LAYER_DECISION:null,ENSURE_ORIGINAL_PUSHSTATE:null,ENSURE_ORIGINAL_REPLACESTATE:null,SET_VISITOR_ATTRIBUTES:null,SET_VISITOR_ATTRIBUTE_PENDING:null,LOAD_EXISTING_VISITOR_PROFILE:null,SET_VISITOR_EVENTS:null,SET_FOREIGN_VISITOR_EVENTS:null,SET_FOREIGN_VISITOR_EVENT_QUEUE:null,SET_VISITOR_ID:null,SET_VISITOR_ID_VIA_API:null,REFRESH_SESSION:null,LOAD_SESSION_STATE:null,UPDATE_VARIATION_ID_MAP:null,MERGE_VARIATION_ID_MAP:null,UPDATE_PREFERRED_LAYER_MAP:null,MERGE_PREFERRED_LAYER_MAP:null,RECORD_LAYER_DECISION_EVENT_ID:null,TRACK_VIEW_ACTIVATED_EVENT:null,REGISTER_ASYNC_DEFERRED:null,RESOLVE_DEFERRED:null,REJECT_DEFERRED:null,REGISTER_PLUGIN:null,ADD_CLEANUP_FN:null,CLEAR_CLEANUP_FN:null,ACTION_EXECUTED:null,REGISTER_ACTION:null,SET_VIEW_ACTIVE_STATE:null,UPDATE_PARSED_VIEW_METADATA:null,UPDATE_USER_SUPPLIED_METADATA:null,REGISTER_VIEWS:null,SET_GLOBAL_TAGS:null,SET_VIEW_BATCHING:null,RESET_VIEW_STATES:null,ATTACH_EVENT_STREAM_PUBLISHERS:null,DETACH_EVENT_STREAM_PUBLISHERS:null,LOAD_DIRECTIVE:null,SET_COOKIE_AGE:null,SET_COOKIE_DOMAIN:null,SET_COOKIE_AUTO_REFRESH:null,XDOMAIN_SET_DEFAULT_FRAME:null,XDOMAIN_ADD_FRAME:null,XDOMAIN_SET_MESSAGE:null,XDOMAIN_ADD_SUBSCRIBER:null,XDOMAIN_SET_CANONICAL_ORIGINS:null, XDOMAIN_SET_DISABLED:null,ADD_EMITTER_HANDLER:null,REMOVE_EMITTER_HANDLER:null,SET_INTEGRATION_SETTINGS:null,ADD_CHANGE:null,SET_CHANGE_APPLIER:null,REMOVE_ACTION_STATE:null,ANNOUNCE_PENDING_REDIRECT:null,LOAD_REDIRECT_DATA:null,REGISTER_TRACKED_REDIRECT_DATA:null,SET_PENDING_EVENT:null,REMOVE_PENDING_EVENT:null,LOAD_PENDING_EVENTS:null,SANDBOXED_FUNCTIONS_ADDED:null,SET_RUM_DATA:null,RECORD_API_USAGE:null,INITIALIZE_CHANGE_METRICS:null,RECORD_ACTIVATION_TYPE_USAGE:null,RECORD_AUDIENCE_USAGE:null,RECORD_CHANGE_MACROTASK_RATE:null,RECORD_CHANGE_OVERHEATED:null,RECORD_CHANGE_TYPE_USAGE:null,RECORD_DOM_OBSERVATION_OCCURENCE:null,RECORD_INTEGRATION_USAGE:null,RECORD_LAYER_FEATURE_USAGE:null,RECORD_LAYER_POLICY_USAGE:null,RECORD_RECOMMENDATIONS_USAGE:null,RECORD_VIEW_FEATURE_USAGE:null,RECORD_VIEWS_INITIALLY_ACTIVATED_COUNT:null,RECORD_VISITOR_ID_LOCATOR_USAGE:null,RECORD_VISITOR_ID_ERROR:null,RECORD_STICKY_BUCKETING_FEATURE:null,SET_PERFORMANCE_MARKS_DATA:null,FINALIZE_BATCH_SNAPSHOT:null,REGISTER_PREVIOUS_BATCH:null,REGISTER_TRACKER_VISITOR:null,REGISTER_TRACKER_EVENT:null,REGISTER_TRACKER_DECISION:null,RESET_TRACKER_EVENTS:null,RESET_TRACKER_PREVIOUS_BATCHES:null,RESET_TRACKER_STORE:null,SET_TRACKER_POLLING:null,SET_TRACKER_BATCHING:null,SET_TRACKER_SEND_EVENTS:null,SET_TRACKER_PERSISTABLE_STATE:null,SET_TRACKER_DIRTY:null,UPDATE_TRACKER_VISITOR_ATTRIBUTES:null,SET_UA_DATA:null})}),(function(e,t){"use strict";var i=function(e){var t,i={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(i[t]=t);return i};e.exports=i}),(function(e,t,i){var n=i(10);e.exports=n.create()}),(function(e,t,i){function n(e){e=e||{},this.f={},this.g={},this.I=0,this.S=[],this.T=[]}function r(e,t){return function(){var i=e.indexOf(t);i!==-1&&e.splice(i,1)}}var a=i(2),o=i(11);n.prototype.registerStores=function(e){a.forOwn(e,a.bind((function(e,t){this.f[t]=new o(t,this,e)}),this))},n.prototype.getStore=function(e){return this.f[e]},n.prototype.dispatch=function(e,t){this.dispatchId++,a.each(this.S,a.bind((function(i){i.call(this,e,t)}),this)),a.forOwn(this.f,(function(i){i.A(e,t)})),a.each(this.T,a.bind((function(i){i.call(this,e,t)}),this)),a.forOwn(this.f,a.bind((function(e,t){e.hasChanges()&&this.g[t]&&(e.resetChange(),a.each(this.g[t],(function(t){t(e)})))}),this))},n.prototype.reset=function(){this.g={},a.forOwn(this.f,(function(e,t){e.w()}))},n.prototype.getState=function(){var e={};return a.forOwn(this.f,(function(t,i){e[i]=t.R()})),e},n.prototype.onPreAction=function(e){var t=this.S;return t.push(e),r(t,e)},n.prototype.onPostAction=function(e){var t=this.T;return t.push(e),r(t,e)},n.prototype.D=function(e,t){this.g[e]||(this.g[e]=[]),this.g[e].push(t);var i=this.g[e];return r(i,t)},e.exports={create:function(e){return new n(e)}}}),(function(e,t,i){function n(e,t,i){this.b=e,this.O=t,this.N=0,this.C=!1,this.P={},r.extend(this,i),this.L={},this.initialize&&this.initialize()}var r=i(2);n.prototype.A=function(e,t){var i=this.P[e];i&&"function"==typeof i&&i.call(this,t,e)},n.prototype.R=function(){return r.cloneDeep(this.L)},n.prototype.on=function(e,t){this.P[e]=r.bind(t,this)},n.prototype.observe=function(e){return this.O.D(this.b,e)},n.prototype.emitChange=function(){this.C=!0,this.N++},n.prototype.hasChanges=function(){return this.C},n.prototype.resetChange=function(){this.C=!1},n.prototype.getStateId=function(){return this.N},n.prototype.w=function(){this.reset&&"function"==typeof this.reset&&this.reset(),this.initialize()},e.exports=n}),(function(e,t,i){e.exports=i(13)}),(function(e,t,i){(function(t,n){/*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version 4.1.0 */ !(function(t,i){e.exports=i()})(this,(function(){"use strict";function e(e){return"function"==typeof e||"object"==typeof e&&null!==e}function r(e){return"function"==typeof e}function a(e){X=e}function o(e){Q=e}function s(){return function(){return t.nextTick(f)}}function c(){return"undefined"!=typeof W?function(){W(f)}:d()}function u(){var e=0,t=new Z(f),i=document.createTextNode("");return t.observe(i,{characterData:!0}),function(){i.data=e=++e%2}}function l(){var e=new MessageChannel;return e.port1.onmessage=f,function(){return e.port2.postMessage(0)}}function d(){var e=setTimeout;return function(){return e(f,1)}}function f(){for(var e=0;e<q;e+=2){var t=ie[e],i=ie[e+1];t(i),ie[e]=void 0,ie[e+1]=void 0}q=0}function g(){try{var e=i(15);return W=e.runOnLoop||e.runOnContext,c()}catch(e){return d()}}function p(e,t){var i=arguments,n=this,r=new this.constructor(_);void 0===r[re]&&k(r);var a=n._state;return a?!(function(){var e=i[a-1];Q((function(){return P(a,r,e,n._result)}))})():b(n,r,e,t),r}function h(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var i=new t(_);return A(i,e),i}function _(){}function v(){return new TypeError("You cannot resolve a promise with itself")}function E(){return new TypeError("A promises callback cannot return that same promise.")}function m(e){try{return e.then}catch(e){return ce.error=e,ce}}function I(e,t,i,n){try{e.call(t,i,n)}catch(e){return e}}function y(e,t,i){Q((function(e){var n=!1,r=I(i,t,(function(i){n||(n=!0,t!==i?A(e,i):R(e,i))}),(function(t){n||(n=!0,D(e,t))}),"Settle: "+(e._label||" unknown promise"));!n&&r&&(n=!0,D(e,r))}),e)}function S(e,t){t._state===oe?R(e,t._result):t._state===se?D(e,t._result):b(t,void 0,(function(t){return A(e,t)}),(function(t){return D(e,t)}))}function T(e,t,i){t.constructor===e.constructor&&i===p&&t.constructor.resolve===h?S(e,t):i===ce?(D(e,ce.error),ce.error=null):void 0===i?R(e,t):r(i)?y(e,t,i):R(e,t)}function A(t,i){t===i?D(t,v()):e(i)?T(t,i,m(i)):R(t,i)}function w(e){e._onerror&&e._onerror(e._result),O(e)}function R(e,t){e._state===ae&&(e._result=t,e._state=oe,0!==e._subscribers.length&&Q(O,e))}function D(e,t){e._state===ae&&(e._state=se,e._result=t,Q(w,e))}function b(e,t,i,n){var r=e._subscribers,a=r.length;e._onerror=null,r[a]=t,r[a+oe]=i,r[a+se]=n,0===a&&e._state&&Q(O,e)}function O(e){var t=e._subscribers,i=e._state;if(0!==t.length){for(var n=void 0,r=void 0,a=e._result,o=0;o<t.length;o+=3)n=t[o],r=t[o+i],n?P(i,n,r,a):r(a);e._subscribers.length=0}}function N(){this.error=null}function C(e,t){try{return e(t)}catch(e){return ue.error=e,ue}}function P(e,t,i,n){var a=r(i),o=void 0,s=void 0,c=void 0,u=void 0;if(a){if(o=C(i,n),o===ue?(u=!0,s=o.error,o.error=null):c=!0,t===o)return void D(t,E())}else o=n,c=!0;t._state!==ae||(a&&c?A(t,o):u?D(t,s):e===oe?R(t,o):e===se&&D(t,o))}function L(e,t){try{t((function(t){A(e,t)}),(function(t){D(e,t)}))}catch(t){D(e,t)}}function V(){return le++}function k(e){e[re]=le++,e._state=void 0,e._result=void 0,e._subscribers=[]}function x(e,t){this._instanceConstructor=e,this.promise=new e(_),this.promise[re]||k(this.promise),Y(t)?(this._input=t,this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?R(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&R(this.promise,this._result))):D(this.promise,F())}function F(){return new Error("Array Methods must be provided an Array")}function M(e){return new x(this,e).promise}function U(e){var t=this;return new t(Y(e)?function(i,n){for(var r=e.length,a=0;a<r;a++)t.resolve(e[a]).then(i,n)}:function(e,t){return t(new TypeError("You must pass an array to race."))})}function G(e){var t=this,i=new t(_);return D(i,e),i}function B(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function z(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function j(e){this[re]=V(),this._result=this._state=void 0,this._subscribers=[],_!==e&&("function"!=typeof e&&B(),this instanceof j?L(this,e):z())}function H(){var e=void 0;if("undefined"!=typeof n)e=n;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var i=null;try{i=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===i&&!t.cast)return}e.Promise=j}var K=void 0;K=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var Y=K,q=0,W=void 0,X=void 0,Q=function(e,t){ie[q]=e,ie[q+1]=t,q+=2,2===q&&(X?X(f):ne())},$="undefined"!=typeof window?window:void 0,J=$||{},Z=J.MutationObserver||J.WebKitMutationObserver,ee="undefined"==typeof self&&"undefined"!=typeof t&&"[object process]"==={}.toString.call(t),te="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,ie=new Array(1e3),ne=void 0;ne=ee?s():Z?u():te?l():void 0===$?g():d();var re=Math.random().toString(36).substring(16),ae=void 0,oe=1,se=2,ce=new N,ue=new N,le=0;return x.prototype._enumerate=function(){for(var e=this.length,t=this._input,i=0;this._state===ae&&i<e;i++)this._eachEntry(t[i],i)},x.prototype._eachEntry=function(e,t){var i=this._instanceConstructor,n=i.resolve;if(n===h){var r=m(e);if(r===p&&e._state!==ae)this._settledAt(e._state,t,e._result);else if("function"!=typeof r)this._remaining--,this._result[t]=e;else if(i===j){var a=new i(_);T(a,e,r),this._willSettleAt(a,t)}else this._willSettleAt(new i(function(t){return t(e)}),t)}else this._willSettleAt(n(e),t)},x.prototype._settledAt=function(e,t,i){var n=this.promise;n._state===ae&&(this._remaining--,e===se?D(n,i):this._result[t]=i),0===this._remaining&&R(n,this._result)},x.prototype._willSettleAt=function(e,t){var i=this;b(e,void 0,(function(e){return i._settledAt(oe,t,e)}),(function(e){return i._settledAt(se,t,e)}))},j.all=M,j.race=U,j.resolve=h,j.reject=G,j._setScheduler=a,j._setAsap=o,j._asap=Q,j.prototype={constructor:j,then:p,"catch":function(e){return this.then(null,e)}},j.polyfill=H,j.Promise=j,j}))}).call(t,i(14),(function(){return this})())}),(function(e,t){function i(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function r(e){if(l===setTimeout)return setTimeout(e,0);if((l===i||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function a(e){if(d===clearTimeout)return clearTimeout(e);if((d===n||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function o(){h&&g&&(h=!1,g.length?p=g.concat(p):_=-1,p.length&&s())}function s(){if(!h){var e=r(o);h=!0;for(var t=p.length;t;){for(g=p,p=[];++_<t;)g&&g[_].run();_=-1,t=p.length}g=null,h=!1,a(e)}}function c(e,t){this.fun=e,this.array=t}function u(){}var l,d,f=e.exports={};!(function(){try{l="function"==typeof setTimeout?setTimeout:i}catch(e){l=i}try{d="function"==typeof clearTimeout?clearTimeout:n}catch(e){d=n}})();var g,p=[],h=!1,_=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];p.push(new c(e,t)),1!==p.length||h||r(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}}),(function(e,t){}),(function(e,t,i){var n=i(2),r=i(17),a=i(9),o=i(18),s=r.create(),c={action_data:i(21),async_request:i(27),audience_data:i(28),change_data:i(29),cleanup:i(30),client_metadata:i(31),cookie_options:i(33),event_data:i(34),event_emitter:i(35),dimension_data:i(36),directive:i(37),global:i(38),history:i(39),integration_settings:i(41),layer:i(42),layer_data:i(43),log:i(45),observed_redirect:i(46),pending_events:i(47),performance:i(48),plugins:i(49),provider_status:i(50),pending_redirect:i(51),rum:i(52),sandbox:i(53),session:i(54),tracker_optimizely:i(55),ua_data:i(56),view:i(57),view_data:i(58),visitor:i(59),visitor_attribute_entity:i(60),visitor_events:i(61),visitor_events_manager:i(66),visitor_id:i(67),visitor_bucketing:i(68),xdomain:i(69)};a.registerStores(c),n.forOwn(c,(function(e,t){s.register("stores/"+t,a.getStore(t))})),s.register("core/plugins/matchers/key_value",o),e.exports=s}),(function(e,t,i){function n(){this.V={}}var r=i(2);n.prototype.register=function(e,t){if(1===arguments.length){var i=this;return void r.each(e,(function(e,t){i.register(t,e)}))}if(this.V[e])throw new Error("Module already registered for: "+e);this.V[e]=t},n.prototype.get=function(e){return this.V[e]},n.prototype.getModuleKeys=function(){var e=this.V;return r.keys(e)},n.prototype.evaluate=function(e){var t=e.length,i=e.slice(0,t-1),n=e[t-1];if("function"!=typeof n)throw new Error("Evaluate must take a function as last element in array");var a=r.map(i,r.bind(this.get,this));return n.apply(null,a)},n.prototype.reset=function(){this.V={}},e.exports={create:function(){return new n}}}),(function(e,t,i){var n=i(2),r=i(19).getFieldValue,a=i(20);e.exports=function(e,t){var i=r(e,t.name.split("."));return n.isArray(i)?n.some(i,n.partial(a.hasMatch,t.value,t.match)):a.hasMatch(t.value,t.match,i)}}),(function(e,t,i){var n=i(2);t.getFieldValue=function(e,t){n.isArray(t)||(t=[t]);for(var i=e,r=0;r<t.length;r++){var a=t[r];if(!n.isObject(i)||!i.hasOwnProperty(a))return;i=i[a]}return i},t.setFieldValue=function(e,t,i){if(!n.isArray(t)||n.isEmpty(t))throw new Error("Attempted to set an invalid key path: "+t);for(var r=e,a=0;a<t.length-1;a++){var o=t[a];n.isObject(r[o])||(r[o]={}),r=r[o]}r[t[t.length-1]]=i}}),(function(e,t,i){var n=i(2);t.hasMatch=function(e,t,i){var r=!n.isUndefined(i)&&null!==i,a=!n.isUndefined(e)&&null!==e,o=t||(a?"exact":"exists");switch(o){case"exists":return r;case"exact":return r&&String(i)===e;case"substring":return r&&String(i).indexOf(e)>-1;case"regex":try{if(a&&r){var s=new RegExp(e);return s.test(String(i))}return!1}catch(e){}return!1;case"range":var c=e.split(":"),u=parseFloat(c[0]),l=parseFloat(c[1]),d=parseFloat(i);return d>=u&&d<=l;default:return!1}}}),(function(e,t,i){var n=i(2),r=i(7),a=i(22),o=i(23);e.exports={initialize:function(){this.L={actions:{},actionState:{}},this.on(r.DATA_LOADED,this.k),this.on(r.ACTION_EXECUTED,this.F),this.on(r.SET_CHANGE_APPLIER,this.M),this.on(r.REMOVE_ACTION_STATE,this.U)},k:function(e){var t=this;n.isEmpty(e.data.layers)||(n.each(e.data.layers,(function(e){var i;if(e.changes){var r="layerId:"+e.id;i={id:r,layerId:e.id,changeSet:e.changes,type:"layer"},a.deepFreeze(i),t.L.actions[r]=i}n.each(e.experiments,(function(r){if(r.changes){var o="experimentId:"+r.id;i={id:o,layerId:e.id,experimentId:r.id,changeSet:r.changes,type:"experiment"},a.deepFreeze(i),t.L.actions[o]=i}n.each(r.variations,(function(o){n.each(o.actions,(function(n){var s=n.pageId||n.viewId,c=r.id+":"+o.id+":"+s;i={id:c,layerId:e.id,experimentId:r.id,variationId:o.id,pageId:s,changeSet:n.changes,type:"variation"},a.deepFreeze(i),t.L.actions[c]=i}))}))}))})),this.emitChange())},F:function(e){var t=e.actionId;n.isUndefined(t)||this.L.actionState[t]||(this.L.actionState[t]={})},M:function(e){var t=e.actionId,i=e.changeId;return this.L.actionState[t]?void(this.L.actionState[t][i]=e.changeApplier):void o.warn("Action Data / Attempted to set changeApplier for inactive action: ",t)},U:function(e){delete this.L.actionState[e.actionId]},get:function(e){return a.safeReference(this.L.actions[e])},getActionState:function(e){return a.safeReference(this.L.actionState[e])},getByChangeId:function(e){return n.find(this.L.actions,{changeSet:[{id:e}]})},getAllActionIdsByPageId:function(e){return n.map(n.filter(this.L.actions,{pageId:e}),"id")},getChangeApplier:function(e,t){var i=this.L.actionState[t];if(i)return i[e]},getExperimentVariationActions:function(e,t){return a.safeReference(n.filter(this.L.actions,{experimentId:e,variationId:t}))},getLayerActions:function(e){return a.safeReference(n.filter(this.L.actions,{id:"layerId:"+e}))},getExperimentActions:function(e){return a.safeReference(n.filter(this.L.actions,{id:"experimentId:"+e}))},getAll:function(){return a.safeReference(n.values(this.L.actions))}}}),(function(e,t,i){var n=i(2),r=!1;t.deepFreeze=function e(t){r&&n.isObject(t)&&!n.isFunction(t)&&(n.forOwn(t,e),Object.freeze(t))},t.safeReference=function e(t){return r?!n.isObject(t)||n.isFunction(t)||Object.isFrozen(t)?t:n.isArray(t)?n.map(t,e):n.reduce(t,(function(t,i,n){return t[n]=e(i),t}),{}):n.cloneDeep(t)}}),(function(e,t,i){function n(){this.logLevel=null,this.logMatch=null,this.logs=[],this.timebase=o.now()}var r=i(2),a=i(7),o=i(24),s=i(25),c=i(9),u=i(26);n.prototype.G=function(){return!r.isNull(this.logLevel)},n.prototype.setLogLevel=function(e){var t=this.B(e);null===t?console.error("Unknown log level: "+e):this.logLevel!==t&&(this.log("Setting log level to "+t),this.logLevel=t,this.flush())},n.prototype.setLogMatcher=function(e){r.isString(e)?this.logMatcher=e:this.logMatcher="",this.logGroup=0},n.prototype.shouldLog=function(e){return this.G()&&this.logLevel>=e},n.prototype.matchesLogMessage=function(e,t){var i=this.logMatcher;if(!this.logMatcher)return!0;if(this.logGroup)return"GROUPSTART"===e?this.logGroup++:"GROUPEND"===e&&this.logGroup--,!0;var n=r.some(t,(function(e){if(!r.isString(e))try{e=u.stringify(e)}catch(e){}return r.isString(e)&&r.includes(e,i)}));return n&&"GROUPSTART"===e&&this.logGroup++,n},n.prototype.storeLog=function(e,t){var i={logLevel:e,logMessage:t};c.dispatch(a.LOG,i)},n.prototype.flush=function(){var e=i(16),t=e.get("stores/log");this.logGroup=0;var n=t.getLogs();r.each(n,r.bind((function(e){this.z(e.logLevel,e.logMessage,!0)}),this))},n.prototype.z=function(e,t,i){var n,a=e;if(console)switch(e){case"GROUPSTART":n=console.groupCollapsed,a=s.LogLevel.DEBUG;break;case"GROUPEND":n=console.groupEnd,a=s.LogLevel.DEBUG;break;case s.LogLevel.ERROR:n=console.error;break;case s.LogLevel.WARN:n=console.warn;break;case s.LogLevel.DEBUG:n=console.debug;break;default:n=console.log}try{i||this.G()&&!this.shouldLog(a)||(r.isArray(t)&&r.isString(t[0])&&(t=this.j(t)),this.storeLog(e,t)),n&&this.shouldLog(a)&&this.matchesLogMessage(e,t)&&n.apply(console,t)}catch(e){console&&(console.error?console.error(e):console.log(e))}},n.prototype.debug=function(){this.z(s.LogLevel.DEBUG,[].slice.call(arguments))},n.prototype.log=function(){this.z(s.LogLevel.INFO,[].slice.call(arguments))},n.prototype.logAlways=function(){var e=this.j([].slice.call(arguments));console&&console.log&&console.log.apply&&console.log.apply(console,e),this.storeLog(s.LogLevel.INFO,e)},n.prototype.warn=function(){this.z(s.LogLevel.WARN,[].slice.call(arguments))},n.prototype.error=function(e){var t=[].slice.call(arguments);1===t.length&&e.stack?(this.z(s.LogLevel.ERROR,[this.H(),e]),this.z(s.LogLevel.INFO,[e.stack])):this.z(s.LogLevel.ERROR,t)},n.prototype.groupCollapsed=function(){this.z("GROUPSTART",[].slice.call(arguments))},n.prototype.groupEnd=function(){this.z("GROUPEND",[].slice.call(arguments))},n.prototype.j=function(e){var t=this.H().toString();return t.length<6&&(t=(" "+t).slice(-6)),[t+"| Optly / "+e[0]].concat(e.slice(1))},n.prototype.H=function(){return this.timebase?o.now()-this.timebase:0},n.prototype.B=function(e){return e&&(e=e.toUpperCase(),"TRUE"===e&&(e="INFO"),"FALSE"===e&&(e="OFF"),"ALL"===e&&(e="DEBUG"),!r.isUndefined(s.LogLevel[e]))?s.LogLevel[e]:null},e.exports=new n}),(function(e,t){t.now=function(){return+new Date}}),(function(e,t,i){var n=i(2),r=i(8);t.COOKIES={OPT_OUT:"optimizelyOptOut",PREVIEW:"optimizelyPreview",REDIRECT:"optimizelyRedirectData",SESSION_STATE:"optimizelySessionState",TOKEN:"optimizelyToken",VISITOR_ID:"optimizelyEndUserId",VISITOR_UUID:"optimizelyPPID"},t.LayerActivationTypes={CONDITIONAL:"conditional",IMMEDIATE:"immediate",MANUAL:"manual",READY:"ready",TIMEOUT:"timeout"},t.LogLevel={OFF:0,ERROR:1,WARN:2,INFO:3,DEBUG:4},t.Lifecycle=r({preActivate:null,postVisitorProfileLoad:null,postViewsActivated:null,postActivate:null}),t.ViewActivationTypes={immediate:"immediate",manual:"manual",callback:"callback",polling:"polling",URLChanged:"url_changed",DOMChanged:"dom_changed"},t.StorageKeys={PENDING_EVENTS:"pending_events",RELAYED_EVENTS:"relayed_events"},t.PluginTypes=r({visitorProfileProviders:null,viewProviders:null,audienceMatchers:null,viewMatchers:null,analyticsTrackers:null,viewTagLocators:null,userFeatureDefs:null,apiModules:null,changeAppliers:null,deciders:null,eventImplementations:null,viewTriggers:null}),t.ResourceTimingAttributes=r({connectStart:null,connectEnd:null,decodedBodySize:null,domainLookupStart:null,domainLookupEnd:null,duration:null,encodedBodySize:null,fetchStart:null,requestStart:null,responseStart:null,responseEnd:null,secureConnectionStart:null,startTime:null,transferSize:null,serverTiming:null}),t.RUMPerformanceTimingAttributes=r({blockTime:null}),t.AttributionTypes=r({FIRST_TOUCH:null,LAST_TOUCH:null}),t.SandboxedFunctions=r({XMLHttpRequest:null}),t.PerformanceData=r({performance_marks:null,resource_timing:null,performance_timing:null}),t.PerformanceCounters=r({mutation_observer_invocation:null,polling_invocation:null,match_selector_invocation:null}),t.VisitorStorageKeys={EVENTS:"events",EVENT_QUEUE:"event_queue",LAYER_MAP:"layer_map",LAYER_STATES:"layer_states",SESSION_STATE:"session_state",VISITOR_PROFILE:"visitor_profile",VARIATION_MAP:"variation_map",TRACKER_OPTIMIZELY:"tracker_optimizely"},t.AllStorageKeys=n.assign({},t.StorageKeys,t.VisitorStorageKeys),t.ListTargetingKeyTypes={COOKIE:"c",QUERY:"q",JS_VARIABLE:"j"},t.VisitorIdLocatorType={COOKIE:"cookie",JS_VARIABLE:"js",LOCALSTORAGE:"localStorage",QUERY:"query"}}),(function(e,t,i){function n(e){var t=[Array.prototype],i=[];r.each(t,(function(e){r.isUndefined(e.toJSON)||(i.push(e.toJSON),delete e.toJSON)}));var n,a;try{n=e()}catch(e){a=e}finally{r.each(i,(function(e,i){t[i].toJSON=e}))}if(a)throw a;return n}var r=i(2);t.stringify=function(){return n(r.bind((function(){return JSON.stringify.apply(null,this)}),arguments))},t.parse=JSON.parse}),(function(e,t,i){var n=i(7);e.exports={initialize:function(){this.L={},this.on(n.REGISTER_ASYNC_DEFERRED,this.K),this.on(n.RESOLVE_DEFERRED,this.Y),this.on(n.REJECT_DEFERRED,this.q)},getRequest:function(e){return this.L[e]},getPromise:function(e){var t=this.getRequest(e);if(t)return t.promise},K:function(e){this.L[e.source]={promise:e.promise,resolver:e.resolver,rejecter:e.rejecter}},Y:function(e){var t=this.getRequest(e.source);if(!t)throw new Error("No request registered for source: "+e.source);t.resolver(e.resolveWith)},q:function(e){var t=this.getRequest(e.source);if(!t)throw new Error("No request registered for source: "+e.source);if(!t.rejecter)throw new Error("No rejecter registered for source: "+e.source);t.rejecter(e.rejectWith)}}}),(function(e,t,i){function n(e,t){return t||(t={}),e?(r.each(e,(function(e){if(!r.isString(e)){if(r.isObject(e)){var i=e.type,a=e.name||"_";t[i]||(t[i]={}),t[i][a]=!0}r.isArray(e)&&n(e,t)}})),t):t}var r=i(2),a=i(7),o=i(22);e.exports={initialize:function(){this.L={audiences:{},featuresNeeded:{}},this.on(a.DATA_LOADED,this.k)},k:function(e){r.isEmpty(e.data.audiences)||(r.each(e.data.audiences,r.bind((function(e){o.deepFreeze(e),r.merge(this.L.featuresNeeded,n(e.conditions)),this.L.audiences[e.id]=e}),this)),this.emitChange())},getAll:function(){return o.safeReference(r.values(this.L.audiences))},getFeaturesNeeded:function(e){return o.safeReference(this.L.featuresNeeded[e]||{})},getAudiencesMap:function(){return o.safeReference(this.L.audiences)},get:function(e){return o.safeReference(this.L.audiences[e])},getAudienceName:function(e){var t=r.find(r.values(this.L.audiences),{id:e});return t.name||"Aud "+e}}}),(function(e,t,i){var n=i(2),r=i(7),a=i(22);e.exports={initialize:function(){this.L={},this.on(r.ADD_CHANGE,this.W),this.on(r.DATA_LOADED,this.k)},getChange:function(e){return this.L[e]},k:function(e){n.isEmpty(e.data.changes)||n.each(e.data.changes,n.bind(this.W,this))},W:function(e){a.deepFreeze(e),this.L[e.id]=e,this.emitChange()}}}),(function(e,t,i){var n=i(2),r=i(7),a=i(25);e.exports={initialize:function(){this.L={},n.each(a.Lifecycle,n.bind((function(e){this.L[e]=[]}),this)),this.on(r.ADD_CLEANUP_FN,this.X),this.on(r.CLEAR_CLEANUP_FN,this.Q)},getCleanupFns:function(e){return n.cloneDeep(this.L[e])},X:function(e){this.L[e.lifecycle].push(e.cleanupFn),this.emitChange()},Q:function(e){var t=this.L[e.lifecycle];if(e.cleanupFn){var i=t.indexOf(e.cleanupFn);i>-1&&(t.splice(i,1),this.emitChange())}else this.L[e.lifecycle]=[],this.emitChange()}}}),(function(e,t,i){var n=i(7),r=i(32);e.exports={initialize:function(){this.L={name:r.NAME,version:r.VERSION},this.on(n.SET_CLIENT_NAME,this.$),this.on(n.SET_CLIENT_VERSION,this.J)},getClientName:function(){return this.L.name},getClientVersion:function(){return this.L.version},$:function(e){e&&(this.L.name=e),this.emitChange()},J:function(e){e&&(this.L.version=e),this.emitChange()}}}),(function(e,t,i){t.VERSION="0.169.0",t.NAME="js"}),(function(e,t,i){var n=i(7),r=15552e3,a=!0;e.exports={initialize:function(){this.L={currentDomain:null,defaultAgeSeconds:r,autoRefresh:a},this.on(n.SET_COOKIE_DOMAIN,this.Z),this.on(n.SET_COOKIE_AGE,this.ee),this.on(n.SET_COOKIE_AUTO_REFRESH,this.te)},getCurrentDomain:function(){return this.L.currentDomain},getDefaultAgeInSeconds:function(){return this.L.defaultAgeSeconds},getAutoRefresh:function(){return this.L.autoRefresh},Z:function(e){this.L.currentDomain=e,this.emitChange()},ee:function(e){this.L.defaultAgeSeconds=e,this.emitChange()},te:function(e){this.L.autoRefresh=e,this.emitChange()}}}),(function(e,t,i){var n=i(2),r=i(7),a=i(22);e.exports={initialize:function(){this.L={},this.on(r.DATA_LOADED,this.k)},getAll:function(){return a.safeReference(n.values(this.L))},getEventsMap:function(){return a.safeReference(this.L)},get:function(e){return a.safeReference(this.L[e])},getByApiName:function(e){return a.safeReference(n.find(n.values(this.L),{apiName:e}))},getByPageId:function(e){return a.safeReference(n.filter(this.L,{pageId:e}))},k:function(e){n.isEmpty(e.data.events)||(n.each(e.data.events,n.bind((function(e){e.pageId||(e.pageId=e.viewId),a.deepFreeze(e),this.L[e.id]=e}),this)),this.emitChange())}}}),(function(e,t,i){function n(e){var t=[];return e&&r.isObject(e)?(e.type&&t.push(e.type),t.push(o),e.type&&e.name&&t.push(e.name),t.join("")):o}var r=i(2),a=i(7),o="|";e.exports={initialize:function(){this.L={handlers:{}},this.on(a.ADD_EMITTER_HANDLER,this.ne),this.on(a.REMOVE_EMITTER_HANDLER,this.re)},getHandlers:function(e,t){var i=[null,{type:e.type},{type:e.type,name:e.name}],a=[];return r.each(i,r.bind((function(e){var t=n(e),i=this.L.handlers[t];i&&(a=a.concat(i))}),this)),t&&(a=r.filter(a,(function(e){return!e.publicOnly}))),a},ne:function(e){var t=n(e.filter);this.L.handlers[t]||(this.L.handlers[t]=[]),this.L.handlers[t].push({handler:e.handler,token:e.token,publicOnly:!!e.publicOnly,emitErrors:!!e.emitErrors}),this.emitChange()},re:function(e){var t=!1,i=e.token;r.forOwn(this.L.handlers,r.bind((function(e,n){var a=r.filter(e,(function(e){return e.token!==i}));a.length!==e.length&&(t=!0,this.L.handlers[n]=a)}),this)),t&&this.emitChange()}}}),(function(e,t,i){var n=i(2),r=i(7),a=i(22);e.exports={initialize:function(){this.L={},this.on(r.DATA_LOADED,this.k)},k:function(e){n.isEmpty(e.data.dimensions)||(n.each(e.data.dimensions,n.bind((function(e){a.deepFreeze(e),this.L[e.id]=e}),this)),this.emitChange())},getAll:function(){return a.safeReference(n.values(this.L))},getById:function(e){return a.safeReference(this.L[e])},getByApiName:function(e){return a.safeReference(n.find(n.values(this.L),{apiName:e}))}}}),(function(e,t,i){var n=i(2),r=i(7);e.exports={initialize:function(){this.L={disabled:!1,forceAudienceIds:[],forceVariationIds:[],alreadyInitialized:!1,mutationObserverAPISupported:!1,isEditor:!1,isPreview:!1,isLegacyPreview:!1,isSlave:!1,previewLayerIds:[],projectToken:null,shouldOptOut:!1,trackingDisabled:!1,isRunningInV2Editor:!1,isRunningInDesktopApp:!1,forceTracking:!1},this.on(r.LOAD_DIRECTIVE,this.ae)},getAll:function(){return n.cloneDeep(this.L)},conflictInObservingChanges:function(){return!1},isDisabled:function(){return this.L.disabled},isEditor:function(){return this.L.isEditor},clientHasAlreadyInitialized:function(){return this.L.alreadyInitialized},getForceAudienceIds:function(){return this.L.forceAudienceIds},getForceVariationIds:function(){return this.L.forceVariationIds},getPreviewLayerIds:function(){return this.L.previewLayerIds},getProjectToken:function(){return this.L.projectToken},getForceTracking:function(){return this.L.forceTracking},shouldActivate:function(){return!this.L.isEditor&&!this.isDisabled()},shouldBootstrapDataForPreview:function(){return this.L.isPreview},shouldBootstrapDataForEditor:function(){return this.L.isEditor},shouldInitialize:function(){return!(this.shouldLoadPreview()||this.isDisabled()||this.getProjectToken())},shouldLoadPreview:function(){return!(this.L.isPreview||this.L.isLegacyPreview||!this.getProjectToken()||this.L.isEditor)},shouldBailForDesktopApp:function(){return!this.L.isEditor&&this.L.isRunningInDesktopApp},shouldLoadInnie:function(){return!this.L.isSlave&&!this.L.isEditor&&this.L.isRunningInV2Editor},shouldObserveChangesIndefinitely:function(){return!1},shouldObserveChangesUntilTimeout:function(){return!this.shouldObserveChangesIndefinitely()},shouldOptOut:function(){return this.L.shouldOptOut},shouldSendTrackingData:function(){return!this.L.trackingDisabled&&(!!this.L.forceTracking||!this.L.isPreview&&n.isEmpty(this.getForceVariationIds())&&n.isEmpty(this.getForceAudienceIds()))},isSlave:function(){return this.L.isSlave},isRunningInDesktopApp:function(){return this.L.isRunningInDesktopApp},isRunningInV2Editor:function(){return this.L.isRunningInV2Editor},ae:function(e){n.extend(this.L,e),this.emitChange()}}}),(function(e,t,i){var n=i(2),r=i(7),a=i(22);e.exports={initialize:function(){this.L={holdback:0,isGlobalHoldback:null,listTargetingKeys:[],revision:null,projectId:null,accountId:null,namespace:null,activationId:null,activationTimestamp:null,dcpServiceId:null,dcpKeyfieldLocators:[],recommenderServices:[],anonymizeIP:null,projectJS:null,snippetId:null,plugins:[],domContentLoaded:!1,experimental:{}},this.on(r.DATA_LOADED,this.oe),this.on(r.ACTIVATE,this.se),this.on(r.RECORD_GLOBAL_DECISION,this.ce),this.on(r.SET_DOMCONTENTLOADED,this.ue)},getRevision:function(){return this.L.revision},getGlobalHoldbackThreshold:function(){return this.L.holdback},getProjectId:function(){return this.L.projectId},getSnippetId:function(){return this.L.snippetId},getAccountId:function(){return this.L.accountId},getNamespace:function(){return this.L.namespace},getActivationId:function(){return this.L.activationId},getActivationTimestamp:function(){return this.L.activationTimestamp},getAnonymizeIP:function(){return this.L.anonymizeIP},isGlobalHoldback:function(){return!!this.L.isGlobalHoldback},getListTargetingKeys:function(){return this.L.listTargetingKeys.slice()},getDCPServiceId:function(){return this.L.dcpServiceId},getDCPKeyfieldLocators:function(){return this.L.dcpKeyfieldLocators},getRecommenderServices:function(){return this.L.recommenderServices},getProjectJS:function(){return this.L.projectJS},getPlugins:function(){return this.L.plugins},getExperimental:function(){return a.safeReference(this.L.experimental)},domContentLoadedHasFired:function(){return this.L.domContentLoaded},se:function(e){this.L.activationId=e.activationId,this.L.activationTimestamp=e.activationTimestamp,this.L.isGlobalHoldback=null},ce:function(e){var t=e.isGlobalHoldback;if(null!==this.L.isGlobalHoldback&&this.L.isGlobalHoldback!==t)throw new Error("Attempted to change already set global holdback!");this.L.isGlobalHoldback=t,this.emitChange()},oe:function(e){var t=n.pick(e.data,["holdback","accountId","projectId","snippetId","namespace","revision","listTargetingKeys","dcpServiceId","dcpKeyfieldLocators","recommenderServices","anonymizeIP","plugins","projectJS","experimental"]);if(0!==n.keys(t).length){var i={listTargetingKeys:[],dcpServiceId:null,dcpKeyfieldLocators:[]};n.extend(this.L,i,t),this.emitChange()}},ue:function(){this.L.domContentLoaded=!0,this.emitChange()}}}),(function(e,t,i){var n=i(2),r=i(7),a=i(40);e.exports={initialize:function(){this.L={originalPushState:null,originalReplaceState:null},this.on(r.ENSURE_ORIGINAL_PUSHSTATE,this.le),this.on(r.ENSURE_ORIGINAL_REPLACESTATE,this.de)},getOriginalPushState:function(){return this.L.originalPushState},getOriginalReplaceState:function(){return this.L.originalReplaceState},le:function(){this.L.originalPushState||(this.L.originalPushState=n.bind(a.getGlobal("history").pushState,a.getGlobal("history")))},de:function(){this.L.originalReplaceState||(this.L.originalReplaceState=n.bind(a.getGlobal("history").replaceState,a.getGlobal("history")))}}}),(function(e,t,i){var n=i(2),r=i(23);t.getUserAgent=function(){return window.navigator.userAgent},t.getLocationSearch=function(){return window.location.search},t.getNavigatorLanguage=function(){return window.navigator.language||window.navigator.userLanguage},t.getHref=function(){return window.location.href},t.getLocation=function(){return window.location},t.setLocation=function(e){window.location.replace(e)},t.setGlobal=function(e,t){window[e]=t},t.getGlobal=function(e){return window[e]},t.getGlobalByPath=function(e){for(var t=e.split("."),i=window;t.length;)try{i=i[t.shift()]}catch(t){throw r.error("Attempted to access nonexistent property. Path ",e),new Error("Attempted to access nonexistent property. Path ",e)}return i},t.addEventListener=function(){return window.addEventListener.apply(window,arguments)},t.removeEventListener=function(){return window.removeEventListener.apply(window,arguments)},t.isMutationObserverAPISupported=function(){return!n.isUndefined(window.MutationObserver)},t.alert=function(e){alert(e)},t.setTimeout=function(e,t){return setTimeout((function(){try{e()}catch(e){r.warn("Deferred function threw error:",e)}}),t)},t.setInterval=function(e,t){return setInterval((function(){try{e()}catch(e){r.warn("Polling function threw error:",e)}}),t)}}),(function(e,t,i){var n=i(2),r=i(7);e.exports={initialize:function(){this.L={},this.on(r.DATA_LOADED,this.k),this.on(r.SET_INTEGRATION_SETTINGS,this.fe)},k:function(e){n.isEmpty(e.data.integrationSettings)||(n.each(e.data.integrationSettings,n.bind((function(e){this.L[e.id]=e}),this)),this.emitChange())},fe:function(e){var t=this.L[e.id];t?n.extend(t,e):this.L[e.id]=e},getAll:function(){return n.cloneDeep(n.values(this.L))},get:function(e){return n.cloneDeep(this.L[e])},getReference:function(e){return this.L[e]}}}),(function(e,t,i){var n=i(2),r=i(7),a=i(23),o="*";e.exports={initialize:function(){this.L={},this.on(r.LOAD_PERSISTED_LAYER_STATES,this.ge),this.on(r.RECORD_LAYER_DECISION,this.pe),this.on(r.RECORD_LAYER_DECISION_EVENT_ID,this.he)},getLayerState:function(e,t){if(this.L[e]){var i=this.L[e];if(n.keys(i).length>1&&!t)throw new Error("View Id must be specified when more than one layerState for layer.");return t?n.cloneDeep(n.find(i,{pageId:t})):n.cloneDeep(i[o])}},getLayerStates:function(e){var t=[];for(var i in this.L)n.forEach(this.L[i],(function(i){(n.isUndefined(e)||i.namespace===e)&&t.push(n.cloneDeep(i))}));return t},getLayerStatesForAnalytics:function(){var e=[];for(var t in this.L)n.forEach(this.L[t],(function(t){e.push(n.pick(t,["layerId","decision","decisionEventId"]))}));return e},ge:function(e){e.merge||(this.L={}),n.each(e.layerStates,n.bind((function(e){var t=e.layerId;e.pageId||(e.pageId=e.viewId); var i=e.pageId||o,r=this.L[t];if(n.isUndefined(r))this.L[t]={},this.L[t][i]=e;else{var a=r[i];(!a||e.decisionTimestamp>(a.decisionTimestamp||0))&&(this.L[t][i]=e)}}),this)),this.emitChange()},pe:function(e){var t={layerId:e.layerId,revision:e.revision,namespace:e.namespace,pageId:e.pageId,decisionTicket:e.decisionTicket,decision:e.decision,decisionActivationId:e.activationId,decisionTimestamp:e.timestamp,decisionEventId:null},i=this.L[e.layerId]||{};e.pageId?(delete i[o],i[e.pageId]=t):(i={},i[o]=t),this.L[e.layerId]=i,this.emitChange()},he:function(e){var t=e.layerId,i=e.pageId||o;return this.L[t]?this.L[t][i]?(this.L[t][i].decisionEventId=e.decisionId,void this.emitChange()):void a.warn("Not recording decision event: Layer state not found for view",i):void a.warn("Not recording decision event: Campaign not registered",t)}}}),(function(e,t,i){var n=i(2),r=i(7),a=i(22),o=i(44);e.exports={initialize:function(){this.L={layers:{},experiments:{},variations:{}},this.on(r.DATA_LOADED,this.k)},k:function(e){if(!n.isEmpty(e.data.layers)){var t=this;n.each(e.data.layers,(function(e){n.each(e.experiments,(function(i){e.pageIds||(e.pageIds=e.viewIds),i.campaignName||o.isSingleExperimentPolicy(e.policy)?(o.isSingleExperimentPolicy(e.policy),1):i.campaignName=e.name,n.each(i.variations,(function(e){n.each(e.actions,(function(e){e.pageId||(e.pageId=e.viewId)})),t.L.variations[e.id]=e})),t.L.experiments[i.id]=i})),a.deepFreeze(e),t.L.layers[e.id]=e})),this.emitChange()}},getAll:function(){return a.safeReference(n.values(this.L.layers))},getCampaignsMap:function(){return a.safeReference(this.L.layers)},getExperimentsMap:function(){return a.safeReference(this.L.experiments)},getVariationsMap:function(){return a.safeReference(this.L.variations)},getCount:function(){return n.keys(this.L.layers).length},getAllByPageIds:function(e){return a.safeReference(n.filter(this.L.layers,(function(t){return n.some(e,n.partial(n.includes,t.pageIds))})))},get:function(e){return a.safeReference(this.L.layers[e])},getLayerByExperimentId:function(e){var t=n.find(this.L.layers,(function(t){return n.find(t.experiments,{id:e})}));return a.safeReference(t)},getExperimentByVariationId:function(e){var t;return n.some(this.L.layers,(function(i){return n.some(i.experiments,(function(i){return n.find(i.variations,{id:e})&&(t=i),t})),t})),a.safeReference(t)}}}),(function(e,t){var i="single_experiment",n="multivariate";t.isSingleExperimentPolicy=function(e){return e===i||e===n}}),(function(e,t,i){var n=i(7);e.exports={initialize:function(){this.L={logs:[]},this.on(n.LOG,this._e)},getLogs:function(){return this.L.logs},_e:function(e){this.L.logs.push(e),this.emitChange()},R:function(){return this.L.logs.slice()}}}),(function(e,t,i){var n=i(7),r=i(22);e.exports={initialize:function(){this.L={data:null,hasTracked:null},this.on(n.LOAD_REDIRECT_DATA,this.ve),this.on(n.REGISTER_TRACKED_REDIRECT_DATA,this.Ee)},get:function(){return r.safeReference(this.L.data)},hasTracked:function(){return this.L.hasTracked},ve:function(e){r.deepFreeze(e),this.L.data=e,this.L.hasTracked=!1,this.emitChange()},Ee:function(){this.L.hasTracked=!0}}}),(function(e,t,i){var n=i(2),r=i(7),a=i(26),o=1e3;e.exports={initialize:function(){this.L={},this.on(r.SET_PENDING_EVENT,this.me),this.on(r.REMOVE_PENDING_EVENT,this.Ie),this.on(r.LOAD_PENDING_EVENTS,this.ye)},getEvents:function(){return this.L},getEventsString:function(){return a.stringify(this.L)},me:function(e){n.keys(this.L).length>=o&&this.Se();var t=e.id,i=e.retryCount;this.L[t]&&this.L[t].retryCount===i||(this.L[t]={id:t,timeStamp:e.timeStamp,data:e.data,retryCount:i},this.emitChange())},Ie:function(e){delete this.L[e.id],this.emitChange()},ye:function(e){this.L=e.events,this.Se(),this.emitChange()},Se:function(){for(var e=n.sortBy(this.L,"timeStamp"),t=0;t<=e.length-o;t++)delete this.L[e[t].id];this.emitChange()}}}),(function(e,t,i){var n=i(2),r=i(7),a=i(25);e.exports={initialize:function(){this.L={},this.L[a.PerformanceData.performance_marks]={},this.on(r.SET_PERFORMANCE_MARKS_DATA,this.Te)},Te:function(e){n.isUndefined(this.L[a.PerformanceData.performance_marks][e.name])&&(this.L[a.PerformanceData.performance_marks][e.name]=[]),this.L[a.PerformanceData.performance_marks][e.name].push(e.data),this.emitChange()},getMarks:function(){return n.mapValues(this.L[a.PerformanceData.performance_marks],(function(e){return n.map(e,(function(e){return[e.startTime,e.duration]}))}))},getDurationsFor:function(e){return n.reduce(e,n.bind((function(e,t){var i=this.L[a.PerformanceData.performance_marks][t];return i&&(e[t]=Math.round(n.reduce(i,(function(e,t){return e+t.duration}),0))),e}),this),{})}}}),(function(e,t,i){var n=i(2),r=i(7),a=i(25),o=i(23);e.exports={initialize:function(){this.L=n.mapValues(a.PluginTypes,(function(){return{}})),this.on(r.REGISTER_PLUGIN,this.Ae)},Ae:function(e){var t=e.type,i=e.name,n=e.plugin;if(!t||!i)throw new Error("Missing information needed to register plugins: "+t+":"+i);if(!this.L[t])throw new Error("Invalid plugin type specified: "+t);this.L[t][i]=n,o.debug("Plugin Store: Registering Plugin :",e)},getAllPlugins:function(e){if(e){if(this.L[e])return this.L[e];throw new Error("Invalid plugin type: "+e)}return this.L},getPlugin:function(e,t){if(!t||!e)throw new Error("Missing plugin parameters");var i=this.getAllPlugins(e);return i[t]||null}}}),(function(e,t,i){var n=i(2),r=i(7),a=i(19);e.exports={initialize:function(){this.L={},this.on(r.SET_VISITOR_ATTRIBUTE_PENDING,this.we)},getPendingAttributeValue:function(e){return e=n.isArray(e)?e.concat("pending"):[e,"pending"],a.getFieldValue(this.L,e)},we:function(e){a.setFieldValue(this.L,e.key,{pending:e.pending}),this.emitChange()}}}),(function(e,t,i){var n=i(2),r=i(7);e.exports={initialize:function(){this.L={layerId:null},this.on(r.ANNOUNCE_PENDING_REDIRECT,this.ve)},isExpectingRedirect:function(){return n.isString(this.L.layerId)},getLayerId:function(){return this.L.layerId},ve:function(e){this.isExpectingRedirect()||(this.L.layerId=e.layerId,this.emitChange())}}}),(function(e,t,i){var n=i(2),r=i(7);e.exports={initialize:function(){this.L={inRumSample:!1,id:null,src:null,RumHost:null,data:{extras:{}},apis:{},DOMObservation:{},featuresNeeded:{}},this.on(r.SET_RUM_DATA,this.Re),this.on(r.RECORD_API_USAGE,this.De),this.on(r.INITIALIZE_CHANGE_METRICS,this.be),this.on(r.RECORD_ACTIVATION_TYPE_USAGE,this.Oe),this.on(r.RECORD_AUDIENCE_USAGE,this.Ne),this.on(r.RECORD_CHANGE_MACROTASK_RATE,this.Ce),this.on(r.RECORD_CHANGE_OVERHEATED,this.Pe),this.on(r.RECORD_CHANGE_TYPE_USAGE,this.Le),this.on(r.RECORD_DOM_OBSERVATION_OCCURENCE,this.Ve),this.on(r.RECORD_INTEGRATION_USAGE,this.ke),this.on(r.RECORD_LAYER_FEATURE_USAGE,this.xe),this.on(r.RECORD_LAYER_POLICY_USAGE,this.Fe),this.on(r.RECORD_VIEW_FEATURE_USAGE,this.Me),this.on(r.RECORD_VIEWS_INITIALLY_ACTIVATED_COUNT,this.Ue),this.on(r.RECORD_VISITOR_ID_LOCATOR_USAGE,this.Ge),this.on(r.RECORD_VISITOR_ID_ERROR,this.Be),this.on(r.RECORD_STICKY_BUCKETING_FEATURE,this.ze)},Re:function(e){n.merge(this.L,e),this.emitChange()},De:function(e){this.L.apis[e.methodName]||(this.L.apis[e.methodName]=0),this.L.apis[e.methodName]++,this.emitChange()},be:function(){n.isUndefined(this.L.data.extras.changeMacrotaskRate)&&(this.L.data.extras.changeMacrotaskRate=0),n.isUndefined(this.L.data.extras.numOverheatedChanges)&&(this.L.data.extras.numOverheatedChanges=0)},Ce:function(e){n.isUndefined(this.L.data.extras.changeMacrotaskRate)&&(this.L.data.extras.changeMacrotaskRate=0),e.changeMacrotaskRate>this.L.data.extras.changeMacrotaskRate&&(this.L.data.extras.changeMacrotaskRate=e.changeMacrotaskRate),this.emitChange()},Pe:function(){n.isUndefined(this.L.data.extras.numOverheatedChanges)&&(this.L.data.extras.numOverheatedChanges=0),this.L.data.extras.numOverheatedChanges++,this.emitChange()},Ve:function(e){this.L.DOMObservation[e.counterName]||(this.L.DOMObservation[e.counterName]=0),this.L.DOMObservation[e.counterName]++,this.emitChange()},je:function(e,t,i){n.isUndefined(this.L.featuresNeeded[e])&&(this.L.featuresNeeded[e]={});var r=this.L.featuresNeeded[e];n.each(t,(function(e){r[e]||(r[e]={}),r[e][i]||(r[e][i]=!0)}))},ke:function(e){this.je("integrations",e.integrations,e.layerId)},Le:function(e){this.je("changeTypes",e.changeTypes,e.layerId)},Oe:function(e){this.je("activationTypes",[e.activationType],e.entityId),this.emitChange()},Me:function(e){this.je("viewFeatures",e.featuresUsed,e.entityId),this.emitChange()},xe:function(e){this.je("layerFeatures",[e.feature],e.entityId),this.emitChange()},Fe:function(e){this.je("policy",[e.policy],e.layerId),this.emitChange()},Ne:function(e){this.je("audiences",e.audienceTypes,e.layerId),this.emitChange()},Ue:function(e){this.L.data.extras.viewsInitiallyActivatedCount=e.viewsInitiallyActivatedCount,this.emitChange()},Ge:function(e){this.je("visitorIdLocatorType",[e.visitorIdLocatorType],e.entityId),this.emitChange()},Be:function(e){this.L.data.extras.errorCustomVisitorId=e.isError,this.emitChange()},ze:function(e){this.je("stickyBucketing",[e.feature],e.id)},getSampleRum:function(){return this.L.inRumSample},getRumId:function(){return this.L.id},getRumHost:function(){return this.L.RumHost},getApiData:function(){return this.L.apis},getDOMObservationData:function(){return this.L.DOMObservation},getRumData:function(){return n.cloneDeep(this.L.data)},getScriptSrc:function(){return this.L.src},getFeaturesNeededData:function(){var e=this.L.featuresNeeded,t={};return n.forOwn(e,(function(e,i){var r=n.keys(e);n.isEmpty(r)||(t[i]={}),n.forEach(r,(function(r){t[i][r]=n.keys(e[r]).length}))})),t}}}),(function(e,t,i){var n=i(7);e.exports={initialize:function(){this.L={initialized:!1,natives:{}},this.on(n.SANDBOXED_FUNCTIONS_ADDED,this.He)},He:function(e){if(!e.sandboxedFunctions)throw new Error("No sandboxedFunctions found in payload");this.L.natives=e.sandboxedFunctions,this.L.initialized=!0,this.emitChange()},getAll:function(){return this.L.natives},get:function(e){if(!e)throw new Error("Missing name parameter");return this.L.natives[e]||null},isInitialized:function(){return this.L.initialized}}}),(function(e,t,i){var n=i(2),r=i(7),a=i(24),o=i(5),s=18e5;e.exports={initialize:function(){this.L={lastSessionTimestamp:0,sessionId:null},this.on(r.REFRESH_SESSION,this.Ke),this.on(r.LOAD_SESSION_STATE,this.Ye)},getState:function(){return n.cloneDeep(this.L)},getSessionId:function(){return this.L.sessionId},Ye:function(e){this.L.sessionId=e.sessionId,this.L.lastSessionTimestamp=e.lastSessionTimestamp,this.emitChange()},Ke:function(){var e=a.now(),t=this.L.lastSessionTimestamp;(!this.L.sessionId||e-t>s)&&(this.L.sessionId=o.generate()),this.L.lastSessionTimestamp=e,this.emitChange()}}}),(function(e,t,i){var n=i(2),r=i(7);e.exports={initialize:function(){this.qe(),this.on(r.FINALIZE_BATCH_SNAPSHOT,this.We),this.on(r.REGISTER_PREVIOUS_BATCH,this.Xe),this.on(r.REGISTER_TRACKER_VISITOR,this.Qe),this.on(r.REGISTER_TRACKER_EVENT,this.$e),this.on(r.REGISTER_TRACKER_DECISION,this.Je),this.on(r.RESET_TRACKER_EVENTS,this.Ze),this.on(r.RESET_TRACKER_STORE,this.qe),this.on(r.RESET_TRACKER_PREVIOUS_BATCHES,this.et),this.on(r.SET_TRACKER_POLLING,this.tt),this.on(r.SET_TRACKER_BATCHING,this.it),this.on(r.SET_TRACKER_SEND_EVENTS,this.nt),this.on(r.SET_TRACKER_PERSISTABLE_STATE,this.rt),this.on(r.SET_TRACKER_DIRTY,this.ot),this.on(r.UPDATE_TRACKER_VISITOR_ATTRIBUTES,this.st)},getPersistableState:function(){return this.L.isDirty?this.hasEventsToSend()||this.hasPreviousBatchesToSend()?{data:this.L.data,decisions:this.L.decisions,decisionEvents:this.L.decisionEvents,previousBatches:this.L.previousBatches}:{}:null},rt:function(e){n.isEmpty(this.L.data)||n.isEmpty(e.data)||(this.We(),this.L.previousBatches.push(this.getEventBatch())),this.L.data=e.data||{},this.L.decisions=e.decisions||[],this.L.decisionEvents=e.decisionEvents||[],n.isEmpty(this.L.previousBatches)||n.isEmpty(e.previousBatches)?this.L.previousBatches=e.previousBatches||[]:this.L.previousBatches=this.L.previousBatches.concat(e.previousBatches),this.emitChange()},ot:function(e){this.L.isDirty=e,this.emitChange()},$e:function(e){var t=this.ct();!n.isEmpty(t.snapshots)&&n.isEmpty(this.L.decisionEvents)||this.ut(),this.dt().events.push(e.event),this.L.decisions=e.decisions,this.ot(!0)},Je:function(e){this.L.decisionEvents.push(e.decisionEvent),this.L.decisions=e.decisions,this.ot(!0)},Qe:function(e){n.isEmpty(this.L.data)?this.L.data=e.data:this.We(),this.L.data.visitors.push(e.visitor),this.L.decisions=e.decisions,this.L.decisionEvents=[],this.ot(!0)},Xe:function(e){this.L.previousBatches.push(e),this.ot(!0)},qe:function(){this.L={polling:!1,shouldBatch:!0,data:{},decisions:[],decisionEvents:[],canSend:!1,isDirty:!1,previousBatches:[]},this.emitChange()},Ze:function(){var e=this.ct();this.L.data.visitors=[e],e.snapshots=[],this.ot(!0)},et:function(){this.L.previousBatches=[],this.ot(!0)},tt:function(e){this.L.polling=e,this.emitChange()},it:function(e){this.L.shouldBatch=e,this.emitChange()},nt:function(e){this.L.canSend=e,this.emitChange()},getEventBatch:function(){return n.cloneDeep(this.L.data)},getPreviousBatches:function(){return n.cloneDeep(this.L.previousBatches)},ft:function(){return this.L.decisionEvents.slice()},pt:function(){this.L.decisionEvents=[]},ht:function(){return this.L.decisions.slice()},isPolling:function(){return this.L.polling},shouldBatch:function(){return this.L.shouldBatch},dt:function(){return n.last(this.ct().snapshots)},ct:function(){return n.last(this.L.data.visitors)},ut:function(){var e=this.ft(),t=this.ct();t.snapshots.push({decisions:this.ht(),events:e}),this.pt(),this.ot(!0)},We:function(){this.L.decisionEvents.length>0&&this.ut()},hasEventsToSend:function(){if(!n.isEmpty(this.L.decisionEvents))return!0;if(!n.isEmpty(this.L.data)){var e=n.some(this.L.data.visitors||[],(function(e){return e.snapshots.length>0}));if(e)return!0}return!1},hasPreviousBatchesToSend:function(){return!n.isEmpty(this.L.previousBatches)},canSend:function(){return this.L.canSend},st:function(e){var t=this.ct();t&&(t.attributes=e.attributes)}}}),(function(e,t,i){var n=i(2),r=i(7);e.exports={initialize:function(){this.L={},this.on(r.SET_UA_DATA,this.k)},k:function(e){n.isEmpty(this.L)&&(this.L=e.data)},get:function(){return n.cloneDeep(this.L)}}}),(function(e,t,i){var n=i(2),r=i(7),a=i(23),o=!1,s={globalTags:{},viewStates:{},shouldBatch:!1};e.exports={initialize:function(){this.L=n.cloneDeep(s),this.on(r.REGISTER_VIEWS,this._t),this.on(r.SET_VIEW_ACTIVE_STATE,this.vt),this.on(r.UPDATE_PARSED_VIEW_METADATA,this.Et),this.on(r.UPDATE_USER_SUPPLIED_METADATA,this.mt),this.on(r.TRACK_VIEW_ACTIVATED_EVENT,this.It),this.on(r.SET_GLOBAL_TAGS,this.yt),this.on(r.RESET_VIEW_STATES,this.St),this.on(r.SET_VIEW_BATCHING,this.it)},getAll:function(){var e={};for(var t in this.L.viewStates)e[t]=this.getViewState(t);return e},shouldBatch:function(){return this.L.shouldBatch},getViewState:function(e){var t=n.cloneDeep(this.L.viewStates[e]),i=this.L.globalTags;return t.metadata=n.extend({},t.parsedMetadata,i,t.userSuppliedMetadata),t},getActiveViewTags:function(){var e=this.getActiveViewStates(),t=n.map(e,(function(e){return e.metadata})),i=[{}].concat(t);return n.extend.apply(n,i)},getActivationEventId:function(e){return this.L.viewStates[e]?this.L.viewStates[e].activationEventId:null},getActiveViewStates:function(){return n.reduce(this.L.viewStates,n.bind((function(e,t,i){return this.isViewActive(i)&&e.push(this.getViewState(i)),e}),this),[])},isViewActive:function(e){var t=this.L.viewStates[e];return t||a.warn("No Page registered with id",e),!!t.isActive},getGlobalTags:function(){return n.cloneDeep(this.L.globalTags)},St:function(){this.L.viewStates={},this.emitChange()},_t:function(e){n.each(e.views,n.bind((function(e){var t=e.id;o&&this.L.viewStates[t]||(this.L.viewStates[t]={id:t,isActive:n.isBoolean(e.isActive)?e.isActive:null,activatedTimestamp:null,activationEventId:null,parsedMetadata:{},userSuppliedMetadata:{}})}),this)),this.emitChange()},vt:function(e){var t=e.view.id;if(!this.L.viewStates[t])throw new Error("No view exists with id "+t);this.L.viewStates[t].isActive=e.isActive,e.isActive?this.L.viewStates[t].activatedTimestamp=e.timestamp:(this.L.viewStates[t].parsedMetadata={},this.L.viewStates[t].userSuppliedMetadata={}),this.emitChange()},Et:function(e){var t=e.pageId;if(!this.L.viewStates[t])throw new Error("No view exists with id "+t);n.assign(this.L.viewStates[t].parsedMetadata,e.metadata),this.emitChange()},mt:function(e){var t=e.pageId;if(!this.L.viewStates[t])throw new Error("No view exists with id "+t);n.assign(this.L.viewStates[t].userSuppliedMetadata,e.metadata),this.emitChange()},It:function(e){var t=e.pageId;this.L.viewStates[t]&&(this.L.viewStates[t].activationEventId=e.eventData.eventId,this.emitChange())},yt:function(e){n.extend(this.L.globalTags,e),this.emitChange()},it:function(e){this.L.shouldBatch=e,this.emitChange()}}}),(function(e,t,i){var n=i(2),r=i(7),a=i(22);e.exports={initialize:function(){this.L={views:{},apiNamesToViews:{}},this.on(r.DATA_LOADED,this.k)},getAll:function(){return a.safeReference(n.values(this.L.views))},getPagesMap:function(){return a.safeReference(this.L.views)},get:function(e){return a.safeReference(this.L.views[e])},getByApiName:function(e){return a.safeReference(this.L.apiNamesToViews[e])},apiNameToId:function(e){var t=this.L.apiNamesToViews[e];if(t)return t.id},idToApiName:function(e){var t=this.L.views[e];if(t)return t.apiName},getNumberOfPages:function(){return n.keys(this.L.views).length},getAllViewsForActivationType:function(e){return n.filter(this.L.views,{activationType:e})},k:function(e){n.isEmpty(e.data.views)||(n.each(e.data.views,n.bind((function(e){a.deepFreeze(e),this.L.views[e.id]=e,this.L.apiNamesToViews[e.apiName]=e}),this)),this.emitChange())}}}),(function(e,t,i){var n=i(2),r=i(7),a=i(19);e.exports={initialize:function(){this.L={profile:{},metadata:{},visitorId:null},this.on(r.SET_VISITOR_ID_VIA_API,this.Tt),this.on(r.SET_VISITOR_ATTRIBUTES,this.At),this.on(r.LOAD_EXISTING_VISITOR_PROFILE,this.wt)},getVisitorProfile:function(){return this.L.profile},getVisitorProfileMetadata:function(){return this.L.metadata},getAttribute:function(e){var t=this.L.profile;return n.cloneDeep(a.getFieldValue(t,e))},getAttributeMetadata:function(e){return n.cloneDeep(this.L.metadata[e])},getVisitorIdFromAPI:function(){return this.L.visitorId},wt:function(e){this.L.profile=e.profile,this.L.metadata=e.metadata,this.emitChange()},At:function(e){n.each(e.attributes,n.bind((function(e){var t=e.key;a.setFieldValue(this.L.profile,t,e.value),e.metadata&&n.forOwn(e.metadata,n.bind((function(e,i){a.setFieldValue(this.L.metadata,t.concat(i),e)}),this))}),this)),this.emitChange()},Tt:function(e){this.L.visitorId=e,this.emitChange()}}}),(function(e,t,i){var n=i(2),r=i(7);e.exports={initialize:function(){this.L={},this.on(r.DATA_LOADED,this.Rt)},getCustomBehavioralAttributes:function(){return n.filter(this.L,(function(e){return!!e.rule_json}))},getVisitorAttribute:function(e){var t=n.values(this.L);if(e.datasourceId&&(t=n.filter(t,{dcp_datasource_id:String(e.datasourceId)})),e.attributeName&&e.attributeId)throw new Error("Must not specify both attribute name and attribute ID");if(e.attributeId){var i=this.L[e.attributeId];if(!i)throw new Error("Unrecognized attribute ID: "+e.attributeId);return i}if(e.attributeName){var r=n.filter(t,{name:e.attributeName});if(!r.length)throw new Error("Unrecognized attribute name: "+e.attributeName);if(r.length>1)throw new Error("Too many attributes with name: "+e.attributeName);return r[0]}throw new Error("Must specify attribute name or attribute ID")},Rt:function(e){n.isEmpty(e.data.visitorAttributes)||(n.each(e.data.visitorAttributes,n.bind((function(e){this.L[e.id]=e}),this)),this.emitChange())}}}),(function(e,t,i){var n=(i(2),i(7));i(62).Event;e.exports={initialize:function(){this.L={events:[],foreignEvents:{},foreignEventQueues:{}},this.on(n.SET_VISITOR_EVENTS,this.k),this.on(n.SET_FOREIGN_VISITOR_EVENTS,this.Dt),this.on(n.SET_FOREIGN_VISITOR_EVENT_QUEUE,this.bt)},getEvents:function(){return this.L.events},getForeignEvents:function(){return this.L.foreignEvents},getForeignEventQueues:function(){return this.L.foreignEventQueues},k:function(e){this.L.events=e,this.emitChange()},Dt:function(e){this.L.foreignEvents[e.key]=e.value},bt:function(e){this.L.foreignEventQueues[e.key]=e.value}}}),(function(e,t,i){function n(e,t,i,n,r){this[o.FIELDS.NAME]=e,this[o.FIELDS.TYPE]=t,a.isString(i)&&i.trim().length>0&&(this[o.FIELDS.CATEGORY]=i),n&&a.keys(n).length>0&&(this[o.FIELDS.OPTIONS]=n),a.isUndefined(r)||(this[o.FIELDS.REVENUE]=r)}function r(e,t,i,n){this.eventBase=e,this[o.FIELDS.TIME]=t,a.isUndefined(i)||(this[o.FIELDS.SESSION_ID]=i),a.isUndefined(n)||(this[o.FIELDS.SESSION_INDEX]=n)}var a=i(2),o=i(63),s=i(19).getFieldValue,c=i(64);t.EventBase=n,n.prototype.digest=function(){var e=function(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(t)},t=[];if(t.push(e(o.FIELDS.NAME,this[o.FIELDS.NAME])),t.push(e(o.FIELDS.TYPE,this[o.FIELDS.TYPE])),this[o.FIELDS.CATEGORY]&&t.push(e(o.FIELDS.CATEGORY,this[o.FIELDS.CATEGORY])),this[o.FIELDS.REVENUE]&&t.push(e(o.FIELDS.REVENUE,this[o.FIELDS.REVENUE])),!this[o.FIELDS.OPTIONS])return t.join("&");var i=this[o.FIELDS.OPTIONS]||{},n=a.filter(a.keys(i),(function(e){return i.hasOwnProperty(e)}));n=n.sort();for(var r=0;r<n.length;r++)t.push(e(n[r],i[n[r]]));return t.join("&")},n.prototype.hash=function(){return this.hash_?this.hash_:(this.hash_=c.hashToHex(c.toByteString(this.digest()),c.Seed.BEHAVIOR_EVENT),this.hash_)},n.prototype.setHash=function(e){this.hash_=e},n.prototype.reHash=function(){this.hash_=null,this.hash()},n.prototype.equals=function(e){if(this.hash()!==e.hash())return!1;if(this[o.FIELDS.NAME]!==e[o.FIELDS.NAME]||this[o.FIELDS.TYPE]!==e[o.FIELDS.TYPE]||this[o.FIELDS.CATEGORY]!==e[o.FIELDS.CATEGORY]||this[o.FIELDS.REVENUE]!==e[o.FIELDS.REVENUE])return!1;if(!this[o.FIELDS.OPTIONS]&&!e[o.FIELDS.OPTIONS])return!0;var t=this[o.FIELDS.OPTIONS]||{},i=e[o.FIELDS.OPTIONS]||{},n=a.filter(a.keys(t),(function(e){return t.hasOwnProperty(e)})),r=a.filter(a.keys(i),(function(e){return i.hasOwnProperty(e)}));if(n.length!==r.length)return!1;for(var s=0;s<n.length;s++){var c=n[s];if(!i.hasOwnProperty(c)||t[c]!==i[c])return!1}return!0},n.prototype.getValueOrDefault=function(e,t){var i=s(this,e);return a.isUndefined(i)?t:i},n.prototype.setFieldValue=function(e,t){e!==o.FIELDS.NAME&&e!==o.FIELDS.TYPE&&e!==o.FIELDS.CATEGORY&&e!==o.FIELDS.REVENUE&&e!==o.FIELDS.OPTIONS||(this[e]=t,this.reHash())},t.Event=r,r.prototype.getValueOrDefault=function(e,t){if(0===e.length)return this;var i={};i[o.FIELDS.TIME]=this[o.FIELDS.TIME],i[o.FIELDS.SESSION_ID]=this[o.FIELDS.SESSION_ID],i[o.FIELDS.SESSION_INDEX]=this[o.FIELDS.SESSION_INDEX];var n=s(i,e);return a.isUndefined(n)?this.eventBase.getValueOrDefault(e,t):n},r.prototype.setFieldValue=function(e,t){e===o.FIELDS.TIME||e===o.FIELDS.SESSION_ID||e===o.FIELDS.SESSION_INDEX?this[e]=t:this.eventBase.setFieldValue(e,t)};var u={n:"name",y:"type",c:"category",r:"revenue",s:"session_id",o:"tags",si:"session_index"};r.prototype.readableEvent=function(){var e,t,i=function(e){return a.isString(e)?'"'+e+'"':e},n=this,r=[];a.each([o.FIELDS.NAME,o.FIELDS.TYPE,o.FIELDS.CATEGORY,o.FIELDS.REVENUE,o.FIELDS.SESSION_ID],(function(o){e=u[o],t=n.getValueOrDefault([o]),a.isUndefined(t)||r.push(e+": "+i(t))}));var s=[];if(e=u[o.FIELDS.OPTIONS],t=n.getValueOrDefault([o.FIELDS.OPTIONS]),a.isUndefined(t)||(a.each(t,(function(e,t){s.push(t+": "+String(i(e)))})),r.push(e+": {\n\t\t"+s.join(",\n\t\t")+"\n\t}")),t=n.getValueOrDefault([o.FIELDS.TIME]),a.isNumber(t)&&(t=i(new Date(t).toString())),!a.isUndefined(t)){var c="timestamp";r.push(c+": "+t)}return"{\n\t"+r.join(",\n\t")+"\n}"},r.prototype.toObject=function(e){var t,i,n={},r=this;a.each([o.FIELDS.NAME,o.FIELDS.TYPE,o.FIELDS.CATEGORY,o.FIELDS.REVENUE,o.FIELDS.OPTIONS,o.FIELDS.SESSION_INDEX],(function(e){t=u[e],i=r.getValueOrDefault([e],e===o.FIELDS.OPTIONS?{}:void 0),a.isUndefined(i)||(n[t]=i)}));var s=u[o.FIELDS.OPTIONS],c=u[o.FIELDS.REVENUE];if(e&&e.revenueAsTag&&n[c]&&(n[s]=n[s]||{},n[s][c]=n[c],delete n[c]),i=r.getValueOrDefault([o.FIELDS.TIME]),a.isNumber(i))if(e&&e.timeAsTimestamp){var l="timestamp";n[l]=new Date(i)}else{var d="time";n[d]=i}return n}}),(function(e,t){t.FIELDS={NAME:"n",TIME:"t",TYPE:"y",CATEGORY:"c",REVENUE:"r",SESSION_ID:"s",OPTIONS:"o",SESSION_INDEX:"si"},t.FIELDS_V0_2={name:t.FIELDS.NAME,time:t.FIELDS.TIME,type:t.FIELDS.TYPE,category:t.FIELDS.CATEGORY,tags:t.FIELDS.OPTIONS,session_index:t.FIELDS.SESSION_INDEX}}),(function(e,t,i){var n=i(65).v3,r={IGNORING:0,BUCKETING:1,FALLBACK:2,HOLDBACK:3,BEHAVIOR_EVENT:2716770798},a=Math.pow(2,32),o=function(e,t,i){return Math.floor(c(e,t)*i)},s=function(e,t){var i=n(e,t);return(i>>>16).toString(16)+(65535&i).toString(16)},c=function(e,t){var i=n(e,t);return(i>>>0)/a},u=function(e){var t=String.fromCharCode;return e.replace(/[\S\s]/gi,(function(e){e=e.charCodeAt(0);var i=t(255&e);return e>255&&(i=t(e>>>8&255)+i),e>65535&&(i=t(e>>>16)+i),i}))};e.exports={Seed:r,hashToHex:s,hashToInt:o,hashToReal:c,toByteString:u}}),(function(e,t,i){!(function(){function t(e,t){for(var i,n=e.length,r=t^n,a=0;n>=4;)i=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24,i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16),i^=i>>>24,i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^i,n-=4,++a;switch(n){case 3:r^=(255&e.charCodeAt(a+2))<<16;case 2:r^=(255&e.charCodeAt(a+1))<<8;case 1:r^=255&e.charCodeAt(a),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)}return r^=r>>>13,r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16),r^=r>>>15,r>>>0}function i(e,t){var i,n,r,a,o,s,c,u;for(i=3&e.length,n=e.length-i,r=t,o=3432918353,s=461845907,u=0;u<n;)c=255&e.charCodeAt(u)|(255&e.charCodeAt(++u))<<8|(255&e.charCodeAt(++u))<<16|(255&e.charCodeAt(++u))<<24,++u,c=(65535&c)*o+(((c>>>16)*o&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(65535&c)*s+(((c>>>16)*s&65535)<<16)&4294967295,r^=c,r=r<<13|r>>>19,a=5*(65535&r)+((5*(r>>>16)&65535)<<16)&4294967295,r=(65535&a)+27492+(((a>>>16)+58964&65535)<<16);switch(c=0,i){case 3:c^=(255&e.charCodeAt(u+2))<<16;case 2:c^=(255&e.charCodeAt(u+1))<<8;case 1:c^=255&e.charCodeAt(u),c=(65535&c)*o+(((c>>>16)*o&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(65535&c)*s+(((c>>>16)*s&65535)<<16)&4294967295,r^=c}return r^=e.length,r^=r>>>16,r=2246822507*(65535&r)+((2246822507*(r>>>16)&65535)<<16)&4294967295,r^=r>>>13,r=3266489909*(65535&r)+((3266489909*(r>>>16)&65535)<<16)&4294967295,r^=r>>>16,r>>>0}var n=i;n.v2=t,n.v3=i;e.exports=n})()}),(function(e,t,i){var n=i(7);e.exports={initialize:function(){this.L={baseMap:{},eventQueue:[],lastEvent:null,initialized:!1,cleared:!1},this.on(n.UPDATE_BEHAVIOR_STORE,this.Ot)},getBaseMap:function(){return this.L.baseMap},getEventQueue:function(){return this.L.eventQueue},getLastEvent:function(){return this.L.lastEvent},getCleared:function(){return this.L.cleared},getInitialized:function(){return this.L.initialized},Ot:function(e){this.L[e.key]=e.value}}}),(function(e,t,i){var n=i(2),r=i(7);e.exports={initialize:function(){this.L={randomId:null,visitorIdLocator:null},this.on(r.SET_VISITOR_ID,this.k),this.on(r.DATA_LOADED,this.Nt)},getBucketingId:function(){return this.getRandomId()},getRandomId:function(){return this.L.randomId},getVisitorIdLocator:function(){return this.L.visitorIdLocator},k:function(e){n.extend(this.L,e),this.emitChange()},Nt:function(e){n.isEmpty(e.data.visitorIdLocator)||(this.L.visitorIdLocator=e.data.visitorIdLocator,this.emitChange())}}}),(function(e,t,i){var n=i(2),r=i(7),a=i(26);e.exports={initialize:function(){this.L={variationIdMap:{},preferredLayerMap:{}},this.on(r.UPDATE_VARIATION_ID_MAP,this.Ct),this.on(r.MERGE_VARIATION_ID_MAP,this.Pt),this.on(r.UPDATE_PREFERRED_LAYER_MAP,this.Lt),this.on(r.MERGE_PREFERRED_LAYER_MAP,this.Vt)},getVariationIdMap:function(){return n.cloneDeep(this.L.variationIdMap)},getVariationIdMapString:function(){return a.stringify(this.L.variationIdMap)},Ct:function(e){var t=this.L.variationIdMap,i=t[e.layerId]||{};i[e.experimentId]!==e.variationId&&(i[e.experimentId]=e.variationId,this.L.variationIdMap[e.layerId]=i,this.emitChange())},Pt:function(e){var t=this.getVariationIdMap(),i=e.variationIdMap;n.each(t||{},(function(e,t){i[t]?n.assign(i[t],e):i[t]=e})),this.L.variationIdMap=i,this.emitChange()},getPreferredLayerMap:function(){return n.cloneDeep(this.L.preferredLayerMap)},getPreferredLayerMapString:function(){return a.stringify(this.L.preferredLayerMap)},getPreferredLayerId:function(e){return this.L.preferredLayerMap[e]},Lt:function(e){this.L.preferredLayerMap[e.groupId]!==e.layerId&&(this.L.preferredLayerMap[e.groupId]=e.layerId,this.emitChange())},Vt:function(e){var t=this.getPreferredLayerMap(),i=e.preferredLayerMap;n.assign(i,t),this.L.preferredLayerMap=i,this.emitChange()}}}),(function(e,t,i){var n=i(2),r=i(23),a=i(7),o=1e3;e.exports={initialize:function(){this.L={frames:[],defaultFrame:null,messages:[],subscribers:[],canonicalOrigins:null,disabled:!1},this.on(a.XDOMAIN_SET_DEFAULT_FRAME,this.kt),this.on(a.XDOMAIN_ADD_FRAME,this.xt),this.on(a.XDOMAIN_SET_MESSAGE,this.Ft),this.on(a.XDOMAIN_ADD_SUBSCRIBER,this.Mt),this.on(a.XDOMAIN_SET_CANONICAL_ORIGINS,this.Ut),this.on(a.XDOMAIN_SET_DISABLED,this.Gt)},getMessages:function(){return n.cloneDeep(this.L.messages)},getOffset:function(){return 0===this.L.messages.length?0:this.L.messages[0].data.id},getNextMessageId:function(){return this.L.messages.length+this.getOffset()},getMessageById:function(e){return this.L.messages[e-this.getOffset()]},getSubscribers:function(){return this.L.subscribers},getFrames:function(){return this.L.frames},getNextFrameId:function(){return this.L.frames.length},getDefaultFrame:function(){return this.L.defaultFrame},getCanonicalOrigins:function(){return n.cloneDeep(this.L.canonicalOrigins)},isDisabled:function(){return this.L.disabled},kt:function(e){this.L.defaultFrame=e},xt:function(e){this.L.frames.push(e)},Ft:function(e){for(this.L.messages[e.messageId-this.getOffset()]=e.message;this.L.messages.length>o;){var t=this.L.messages.shift();r.debug("XDomainStorage: Cleared old message: "+t.data.id)}},Mt:function(e){this.L.subscribers.push(e.subscriber)},Ut:function(e){this.L.canonicalOrigins=e.canonicalOrigins},Gt:function(e){this.L.disabled=e.disabled}}}),(function(e,t,i){var n=i(71);t.initializeStore=n.initialize,t.addEvent=n.addEvent,t.getEvents=n.getEvents,t.getEventCount=n.getEventCount}),(function(e,t,i){function n(e){I.dispatch(v.SET_VISITOR_EVENTS,e)}function r(e){I.dispatch(v.UPDATE_BEHAVIOR_STORE,{key:"baseMap",value:e})}function a(e){I.dispatch(v.UPDATE_BEHAVIOR_STORE,{key:"eventQueue",value:e})}function o(e){I.dispatch(v.UPDATE_BEHAVIOR_STORE,{key:"lastEvent",value:e})}function s(e){I.dispatch(v.UPDATE_BEHAVIOR_STORE,{key:"cleared",value:e})}function c(){I.dispatch(v.UPDATE_BEHAVIOR_STORE,{key:"initialized",value:!0})}function u(){return O.getEvents()}function l(){return N.getBaseMap()}function d(){return N.getEventQueue()}function f(){return N.getLastEvent()}function g(){return N.getCleared()}function p(){return N.getInitialized()}function h(){var e=u().concat(d()),t=!1;return e.length>P&&(e=e.slice(-P),t=!0),n(e),a([]),t}var _=i(2),v=i(7),E=i(24),m=i(72),I=i(9),y=i(23),S=i(73),T=t,A=i(62).Event,w=i(63),R=i(62).EventBase,D=i(88),b=i(16),O=b.get("stores/visitor_events"),N=b.get("stores/visitor_events_manager"),C={EVENTBASE:"eb",HASH:"h",TIMEBASE:"tb",TIMESTAMPS:"ts",DELTA:"d",INDEX:"i"},P=1e3;t.initialize=function(e,t){if(!p()){T.Bt(e,t);var i=u();i.length>0&&o(i[i.length-1]);var n=d();n.length>0&&o(n[n.length-1]),c()}},t.addEvent=function(e){y.debug("Behavior store: adding event",e);var t=T.zt(e);o(t),a(d().concat(t)),D.reindexIfNecessary(f(),u(),d()),T.jt(d())},t.getEvents=function(){return d().length>0&&(h()&&D.sessionize(u()),T.Ht(u()),T.jt(d())),u()},t.getEventCount=function(){return d().length+u().length},T.Bt=function(e,t){T.Kt(e,t)&&(T.Ht(u()),T.jt(d())),D.sessionize(u())},T.Kt=function(e,t){ if(0===e.length&&0===t.length)return n([]),a([]),!1;var i=!1,r=e[0]||t[0];return C.EVENTBASE in r?(n(T.Yt(e)),a(T.Yt(t))):(i=!0,n(T.qt(e)),a(T.qt(t))),d().length>0&&(h(),i=!0),n(T._updateBaseMapAndMaybeDedupe(u())),T._migrateEventBasesAndUpdateStore()&&(i=!0),i},T.qt=function(e){for(var t=[],i=0;i<e.length;i++){var n=e[i],r=T.Wt(n);t[i]=new A(r,n[w.FIELDS.TIME])}return t},T._migrateEventBasesAndUpdateStore=function(){var e=!1,t=T.Xt();return D.applyMigrations(t)&&(e=!0,r({}),n(T._updateBaseMapAndMaybeDedupe(u())),a(T._updateBaseMapAndMaybeDedupe(d()))),e},T.Qt=function(){return E.now()},T.zt=function(e){var t,i=e.name,n=e.type||"default",r=e.category||m.OTHER,a=e.tags||{};e.revenue&&(t=e.revenue);var o=new R(i,n,r,a,t);o=T.$t(o);var s=T.Qt(),c=new A(o,s,-1);return D.updateSessionId(f(),c),D.updateSessionIndex(f(),c),c},T._updateBaseMapAndMaybeDedupe=function(e){for(var t=0;t<e.length;t++)e[t].eventBase=T.$t(e[t].eventBase);return e},T.Ht=function(e){var t=T.Jt(e);S.persistBehaviorEvents(t)},T.jt=function(e){var t=T.Jt(e);S.persistBehaviorEventQueue(t)},T.Zt=function(){g()||(n([]),a([]),T.Ht(u()),T.jt(d()),r({}),o(null),s(!0))},T.$t=function(e){var t=e.hash(),i=l(),n=i[t];if(_.isUndefined(n))return i[t]=[e],r(i),e;for(var a=0;a<n.length;a++)if(e.equals(n[a]))return n[a];return n.push(e),r(i),e},T.Xt=function(){var e=[],t=l();for(var i in t)t.hasOwnProperty(i)&&(e=e.concat(t[i]));return e},T.Jt=function(e){for(var t=function(e){var t={};t[w.FIELDS.NAME]=e.getValueOrDefault([w.FIELDS.NAME]),t[w.FIELDS.TYPE]=e.getValueOrDefault([w.FIELDS.TYPE]);var i=e.getValueOrDefault([w.FIELDS.CATEGORY]);_.isUndefined(i)||(t[w.FIELDS.CATEGORY]=i);var n=e.getValueOrDefault([w.FIELDS.REVENUE]);_.isUndefined(n)||(t[w.FIELDS.REVENUE]=n);var r=e.getValueOrDefault([w.FIELDS.OPTIONS]);return _.isUndefined(r)||(t[w.FIELDS.OPTIONS]=r),t},i=C,n=[],r="_idx_",a=0;a<e.length;a++){var o,s,c=e[a],u=c.eventBase;if(u.hasOwnProperty(r)){o=n[u[r]];var l=c[w.FIELDS.TIME]-(o[i.TIMEBASE]||0);s={},s[i.DELTA]=l,s[i.INDEX]=a,o[i.TIMESTAMPS].push(s)}else o={},o[i.EVENTBASE]=t(c),o[i.HASH]=u.hash(),o[i.TIMEBASE]=c[w.FIELDS.TIME],s={},s[i.DELTA]=0,s[i.INDEX]=a,o[i.TIMESTAMPS]=[s],n.push(o),u[r]=n.length-1}for(a=0;a<e.length;a++)delete e[a].eventBase[r];return n},T.Wt=function(e,t){var i=new R(e[w.FIELDS.NAME],e[w.FIELDS.TYPE],e[w.FIELDS.CATEGORY],e[w.FIELDS.OPTIONS],e[w.FIELDS.REVENUE]);return _.isUndefined(t)||i.setHash(t),i},T.Yt=function(e){for(var t=C,i=[],n=0;n<e.length;n++)for(var r=e[n],a=T.Wt(r[t.EVENTBASE],r[t.HASH]),o=r[t.TIMEBASE],s=r[t.TIMESTAMPS],c=0;c<s.length;c++){var u=s[c],l=new A(a,o+u[t.DELTA]),d=u[t.INDEX];i[d]=l}return i},t.deserialize=function(e){return T.Yt(e)},t.mergeAllEvents=function(e){var t=[].concat.apply([],e);return t.sort(D.sessionSortPredicate),D.sessionize(t),t}}),(function(e,t){e.exports={OTHER:"other"}}),(function(e,t,i){function n(e){w.dispatch(R.SET_TRACKER_PERSISTABLE_STATE,e)}function r(e,t){function i(e,i){var n;t.attributionType&&(n=N.now()),w.dispatch(R.SET_VISITOR_ATTRIBUTES,{attributes:[{key:e,value:i,metadata:{lastModified:n}}]})}if(t.getter){var n=t.provides;if(A.isArray(n)||(n=[n]),!$||!A.includes(["queryParams","url"],n[0])){var r=t.isSticky&&!A.isUndefined(V.getFieldValue(e,n));if(!r){var a;try{var o=C.evaluate(t.getter);A.isFunction(o)&&(o=o((function(){return V.getFieldValue(e,n)}),(function(e){i(n,e)}))),A.isUndefined(o)||(t.isAsync?(a=o.then((function(e){i(n,e)}),(function(e){x.warn('Failed to evaluate provider for "'+t.provides+'"; error was:',e)})),w.dispatch(R.SET_VISITOR_ATTRIBUTE_PENDING,{key:n,pending:a})):i(n,o))}catch(e){x.warn('Failed to evaluate getter for provider for "'+t.provides+'"; error was: '+e.message)}return a}}}}function a(){_(o(U.EVENTS)||[],o(U.EVENT_QUEUE)||[]);var e=u(U.LAYER_STATES);A.forEach(e,(function(e){e.item=A.map(e.item,c)})),v(s(e)),E(o(U.SESSION_STATE)||{}),y(o(U.VISITOR_PROFILE)||{});var i=o(U.TRACKER_OPTIMIZELY);i&&n(i),t.loadForeignData(),t.removeLegacySessionStateCookies()}function o(e){var t=d(e),i=k.getItem(t);return A.isString(i)&&(i=S(i)),i}function s(e){var t=[];return A.each(e,(function(e){A.each(e.item,(function(i){i.namespace=e.namespace,t.push(i)}))})),t}function c(e){var t;return t=e.layerId?e:{layerId:e.i,pageId:e.p,decisionTimestamp:e.t,decisionTicket:{audienceIds:e.a||[]},decision:{layerId:e.i,experimentId:e.x||null,variationId:e.v||null,isLayerHoldback:e.h||!1}}}function u(e){var t=q.getBucketingId(),i=[],n=t+"\\$\\$([^$]+?)\\$\\$"+e,r=new RegExp(n);return A.each(k.keys(),(function(e){var n=e.match(r);if(n){var a={namespace:n[1],userId:t,item:S(k.getItem(e))};i.push(a)}})),i}function l(e,t,i){try{var n=d(e);i||(t=L.stringify(t));try{k.setItem(n,t)}catch(e){throw x.warn("Visitor / Unable to set localStorage key, error was:",e),new Error("Unable to set localStorage")}T.setItem(n,t)}catch(e){x.warn("Unable to persist visitor data:",e.message)}}function d(e){var i=q.getBucketingId();if(!i)throw new Error("Visitor bucketingId not set");var n=t.getNamespace();if(!n)throw new Error("Namespace is not set");return[i,n,e].join("$$")}function f(e,i){if(!q.getBucketingId())throw new Error("Cannot update local store because bucketingId not set");if(p(e)){var n=t.getStorageKeyFromKey(e);if(A.includes(U,n)){var r=d(n);if(!(e.indexOf(r)<=0)&&(i=S(i)))if(n===U.EVENT_QUEUE)w.dispatch(R.SET_FOREIGN_VISITOR_EVENT_QUEUE,{key:e,value:b.deserialize(i)});else if(n===U.EVENTS)w.dispatch(R.SET_FOREIGN_VISITOR_EVENTS,{key:e,value:b.deserialize(i)});else if(n===U.LAYER_STATES)w.dispatch(R.LOAD_PERSISTED_LAYER_STATES,{layerStates:A.map(i,c),merge:!0});else if(n===U.VARIATION_MAP)w.dispatch(R.MERGE_VARIATION_ID_MAP,{variationIdMap:i});else if(n===U.VISITOR_PROFILE){var a=["custom"],o=i;A.each(a,(function(e){var t=H.getPlugin(P.PluginTypes.visitorProfileProviders,e);if(t){if(o.profile&&o.metadata){var i=g(o,e,t.attributionType);if(!A.isEmpty(i)){var n=[];A.forOwn(i.data,(function(t,r){var a=i.metadata[r],o={key:[e,r],value:t,metadata:a};n.push(o)})),w.dispatch(R.SET_VISITOR_ATTRIBUTES,{attributes:n})}}}else x.debug("Attribute type",e,"not used by any audiences")}))}}}}function g(e,t,i){var n=X.getAttribute(t),r=X.getAttributeMetadata(t),a=e.profile[t],o=e.metadata[t];if(A.isEmpty(n))return{data:a,metadata:o};var s={};return A.forOwn(a,(function(e,t){var n;r&&r[t]&&(n=r[t].lastModified);var a;o&&o[t]&&(a=o[t].lastModified),(i===P.AttributionTypes.FIRST_TOUCH&&n>=a||i===P.AttributionTypes.LAST_TOUCH&&a>=n||A.isUndefined(n)&&a)&&(s.data=s.data||{},s.data[t]=e,a&&(s.metadata=s.metadata||{},s.metadata[t]=s.metadata[t]||{},s.metadata[t].lastModified=a))})),s}function p(e){var t=e.split("$$")[0];return t.indexOf("://")>0}function h(){var e=X.getVisitorProfile(),t=X.getVisitorProfileMetadata(),i=H.getAllPlugins(P.PluginTypes.visitorProfileProviders);if(i){var n=A.reduce(i,(function(e,t){return t.provides&&(e[t.provides]=t),e}),{});e=A.omitBy(e,(function(e,t){var i=n[t];return i&&i.isTransient}))}return{profile:e,metadata:t}}function _(e,t){D.initializeStore(e,t)}function v(e){w.dispatch(R.LOAD_PERSISTED_LAYER_STATES,{layerStates:A.filter(e,(function(e){return!!e.decision}))})}function E(e){e=A.extend({lastSessionTimestamp:0,sessionId:null},e),w.dispatch(R.LOAD_SESSION_STATE,e)}function m(e){var t,i=e.name;switch(e.type){case P.VisitorIdLocatorType.COOKIE:t=O.get(i);break;case P.VisitorIdLocatorType.JS_VARIABLE:t=G.getGlobalByPath(i);break;case P.VisitorIdLocatorType.LOCALSTORAGE:try{var n=G.getGlobal("localStorage");t=n.getItem(i)}catch(e){throw new Error("Unable to read localStorage: "+e.toString())}break;case P.VisitorIdLocatorType.QUERY:t=M.getQueryParamValue(i)}try{if(!t)throw x.error("Visitor / Customer provided visitor id cannot be found. Type:",e.type," Name:",i),new Error("Failure to obtain visitor id from "+e.type);if(!A.isString(t)&&!A.isNumber(t))throw x.error("Visitor / Customer provided visitor id is not a string or number. Type:",e.type," Name:",i," Id Type:",typeof t),new Error("Customer provided visitor id is not a string or number")}catch(e){throw K.getSampleRum()&&w.dispatch(R.RECORD_VISITOR_ID_ERROR,{isError:!0}),e}return K.getSampleRum()&&(w.dispatch(R.RECORD_VISITOR_ID_ERROR,{isError:!1}),w.dispatch(R.RECORD_VISITOR_ID_LOCATOR_USAGE,{visitorIdLocatorType:e.type,entityId:t})),String(t)}function I(){return"oeu"+N.now()+"r"+Math.random()}function y(e){var t,i,n=H.getAllPlugins(P.PluginTypes.visitorProfileProviders),r=A.filter(n,(function(e){return A.isFunction(e.restorer)}));e.profile&&e.metadata?(t=e.profile,i=e.metadata):(t=e,i={}),t=A.reduce(t,(function(e,t,i){var n=t,a=A.find(r,{provides:i});return a&&(n=a.restorer(t)),e[i]=n,e}),{}),w.dispatch(R.LOAD_EXISTING_VISITOR_PROFILE,{profile:t,metadata:i})}function S(e){try{return L.parse(e)}catch(t){return x.debug("Failed to parse: ",e,t),null}}var T,A=i(2),w=i(9),R=i(7),D=i(70),b=i(71),O=i(74),N=i(24),C=i(16),P=i(25),L=i(26),V=i(19),k=i(80).LocalStorage,x=i(23),F=i(12).Promise,M=i(83),U=i(25).VisitorStorageKeys,G=i(40);T=i(84);var B=C.get("stores/cookie_options"),z=C.get("stores/global"),j=C.get("stores/layer"),H=C.get("stores/plugins"),K=C.get("stores/rum"),Y=C.get("stores/session"),q=C.get("stores/visitor_id"),W=C.get("stores/visitor_bucketing"),X=C.get("stores/visitor"),Q=C.get("stores/provider_status"),$=!1;t.getOrGenerateId=function(){return{randomId:t.getCurrentId()||I()}},t.getCurrentId=function(){var e=q.getVisitorIdLocator();return X.getVisitorIdFromAPI()||(e?m(e):O.get(P.COOKIES.VISITOR_ID))},t.hasSomeData=function(){return k.keys().length>0},t.setId=function(e){var i=q.getBucketingId();w.dispatch(R.SET_VISITOR_ID,e),q.getBucketingId()!==i&&(a(),t.deleteOldLocalData(),T.deleteData(e));try{q.getVisitorIdLocator()||t.maybePersistVisitorId(e)}catch(e){if(x.error("Visitor / Unable to persist visitorId, disabling tracking"),w.dispatch(R.LOAD_DIRECTIVE,{trackingDisabled:!0}),e instanceof O.MismatchError)throw x.error("Visitor / Cookie not set to correct value:",e),new Error("Cookie mismatch error while persisting visitorId");throw e}t.refreshSession()},t.getVariationIdMap=function(){return o(U.VARIATION_MAP)||{}},t.updateVariationIdMap=function(e,t,i){w.dispatch(R.UPDATE_VARIATION_ID_MAP,{layerId:e,experimentId:t,variationId:i})},t.persistVariationIdMap=function(){var e=W.getVariationIdMapString();l(U.VARIATION_MAP,e,!0)},t.persistTrackerOptimizelyData=function(e){l(U.TRACKER_OPTIMIZELY,e)},t.refreshSession=function(){w.dispatch(R.REFRESH_SESSION)},t.populateEagerVisitorData=function(e,i){var n=A.filter(e,(function(e){return!e.isLazy})),r=t.populateVisitorData(n,i);return r},t.populateLazyVisitorData=function(e,i){var n=A.filter(e,(function(e){return e.isLazy}));return t.populateVisitorData(n,i)},t.populateVisitorData=function(e,t){t=t||{};var i=A.partial(r,t),n=A(e).filter({isAsync:!0}).map(i).filter().value();return A.forEach(A.filter(e,(function(e){return!e.isAsync})),i),n.length>0?F.all(n):F.resolve()},t.persistBehaviorEvents=function(e){l(U.EVENTS,e)},t.persistBehaviorEventQueue=function(e){l(U.EVENT_QUEUE,e)},t.getPersistedBehaviorEventCount=function(){var e=o(U.EVENTS)||[],t=o(U.EVENT_QUEUE)||[];return b.deserialize(e).length+b.deserialize(t).length},t.persistLayerStates=function(){var e=j.getLayerStates(t.getNamespace());e=A.map(e,(function(e){return A.omit(e,"namespace")})),l(U.LAYER_STATES,e)},t.persistSessionState=function(){l(U.SESSION_STATE,Y.getState())},t.persistVisitorProfile=function(){l(U.VISITOR_PROFILE,h())},t.persistVisitorBucketingStore=function(){t.persistVariationIdMap()},t.getUserIdFromKey=function(e,i){var n;return A.includes(e,i)&&A.includes(e,"_")&&A.includes(e,"$$")&&A.includes(e.slice(e.indexOf("$$")),t.getNamespace())&&(n=e.slice(e.indexOf("_")+1,e.indexOf("$$"))),n},t.maybePersistVisitorId=function(e){e.randomId&&(B.getAutoRefresh()||t.getCurrentId()!==e.randomId?(O.set(P.COOKIES.VISITOR_ID,e.randomId),x.log("Persisting visitorId:",e.randomId)):x.log("Not persisting visitorId: value is not changed and also auto-refresh is disabled"))},t.getAttribute=function(e){return X.getAttribute(e)},t.getPendingAttributeValue=function(e){return Q.getPendingAttributeValue(e)},t.isForeignKey=p,t.checkKeyForVisitorId=function(e){var i=q.getBucketingId()||t.getCurrentId(),n=t.getIdFromKey(e);return!n||n===i},t.getIdFromKey=function(e){var i=e.split("$$")[0],n=t.getStorageKeyFromKey(e),r=A.includes(P.StorageKeys,n);if(r)return null;var a=i.indexOf("_"),o=a===-1;return o?i:i.substring(a+1)},t.getStorageKeyFromKey=function(e){var t,i=e.split("$$").pop(),n=i.indexOf("://")>-1;if(n){var r=i.indexOf("_");t=i.substring(r+1)}else t=i;return A.includes(A.values(P.AllStorageKeys),t)?t:null},t.deleteOldLocalData=function(){var e=k.keys();A.each(e,(function(e){t.isForeignKey(e)||t.checkKeyForVisitorId(e)||k.removeItem(e)}))},t.deleteOldForeignData=function(){var e=k.keys();A.each(e,(function(e){t.isForeignKey(e)&&k.removeItem(e)}))},t.loadForeignData=function(){A.each(k.keys(),(function(e){var t=k.getItem(e);t&&f(e,t)}))},t.getNamespace=function(){return z.getNamespace()},t.serializeFieldKey=function(e){return A.isArray(e)?e.join("$$"):e},t.removeLegacySessionStateCookies=function(){var e=O.getAll();A.forEach(A.keys(e),(function(e){0===e.indexOf(P.COOKIES.SESSION_STATE+"$$")&&O.remove(e)}))}}),(function(e,t,i){function n(e,i){i!==!1&&(i=!0);for(var n,a,o=e.hostname.split("."),s=[],c=null,l=o.length-1;l>=0;l--)if(s.unshift(o[l]),n=s.join("."),!r.includes(h,n)){a={domain:i?"."+n:n};try{t.set(_,Math.random().toString(),a),t.remove(_,a),c=a.domain;break}catch(e){}}return d.dispatch(u.SET_COOKIE_DOMAIN,c),c}var r=i(2),a=i(75).create,o=i(24),s=i(79),c=i(40),u=i(7),l=i(16),d=i(9),f=l.get("stores/cookie_options"),g=t.SetError=a("CookieSetError"),p=t.MismatchError=a("CookieMismatchError");t.getAll=function(e){r.isUndefined(e)&&(e=!0);var i,n,a,o,c;i=s.getCookieString().split(/\s*;\s*/);var u={};for(a=0;a<i.length;a++)if(n=i[a],o=n.indexOf("="),o>0&&(c=t.safeDecodeURIComponent(n.substring(0,o)),void 0===u[c])){var l=n.substring(o+1);e&&(l=t.safeDecodeURIComponent(l)),u[c]=l}return u},t.safeDecodeURIComponent=function(e){try{return decodeURIComponent(e)}catch(t){return e}},t.get=function(e,i){var n=t.getAll(i);return n[e]},t.set=function(e,i,a,u){a=r.extend({encodeValue:!0},a),u!==!1&&(u=!0);var l=[];if(r.isUndefined(a.domain)){var d=f.getCurrentDomain();d||(d=n(c.getLocation(),!0)),a.domain=d}if(a.domain&&l.push("domain="+a.domain),r.isUndefined(a.path)&&(a.path="/"),a.path&&l.push("path="+a.path),r.isUndefined(a.expires)){var h=r.isUndefined(a.maxAge)?f.getDefaultAgeInSeconds():a.maxAge;a.expires=new Date(o.now()+1e3*h)}if(r.isUndefined(a.expires)||l.push("expires="+a.expires.toUTCString()),a.secure&&l.push("secure"),l=l.join(";"),s.setCookie(e+"="+(a.encodeValue?encodeURIComponent(i):i)+";"+l),u){var _=a.encodeValue,v=t.get(e,_);if(v!==i){if(!v)throw new g('Failed to set cookie "'+e+'"');throw new p('Expected "'+i+'" for "'+e+'", got "'+v+'"')}}},t.remove=function(e,i){for(var n=c.getLocation().hostname.split(".");n.length>0;)t.set(e,null,r.extend({},i,{domain:"."+n.join("."),expires:new Date(0)}),!1),n.shift()};var h=["optimizely.test"],_="optimizelyDomainTestCookie"}),(function(e,t,i){var n=i(76),r=n("InternalError");t.BaseError=r,t.create=function(e){return n(e,r)}}),(function(e,t,i){function n(e,t){function i(t){if(!(this instanceof i))return new i(t);try{throw new Error(t)}catch(t){t.name=e,this.stack=t.stack}r&&this.stack&&(this.stack=a(this.stack,e,t)),this.message=t||"",this.name=e}return i.prototype=new(t||Error),i.prototype.constructor=i,i.prototype.inspect=function(){return this.message?"["+e+": "+this.message+"]":"["+e+"]"},i.prototype.name=e,i}var r=i(77)(),a=i(78);e.exports=n}),(function(e,t){"use strict";e.exports=function(){var e=new Error("yep");return!!e.stack&&"Error: yep\n"===e.stack.substr(0,11)}}),(function(e,t){"use strict";e.exports=function(e,t,i){var n=t;return i&&(n+=": "+i),e=n+e.slice(e.indexOf("\n"))}}),(function(e,t,i){function n(){return"loading"===t.getReadyState()}var r=i(16),a=r.get("stores/global");t.getDocumentElement=function(){return document.documentElement},t.getCookieString=function(){return document.cookie||""},t.setCookie=function(e){document.cookie=e},t.querySelector=function(e){return document.querySelector(e)},t.querySelectorAll=function(e){return document.querySelectorAll(e)},t.parseUri=function(e){var i=t.createElement("a");return i.href=e,i},t.childrenOf=function(e){return Array.prototype.slice.call(e.querySelectorAll("*"))},t.createElement=function(e){return document.createElement(e)},t.isReady=function(){return a.domContentLoadedHasFired()||"interactive"===document.readyState||"complete"===document.readyState},t.isLoaded=function(){return"complete"===document.readyState},t.addReadyHandler=function(e){return document.addEventListener("DOMContentLoaded",e),function(){t.removeReadyHandler(e)}},t.removeReadyHandler=function(e){return function(){document.removeEventListener("DOMContentLoaded",e)}},t.getReferrer=function(){return document.referrer},t.getReadyState=function(){return document.readyState},t.write=function(e){if(!n())throw new Error("Aborting attempt to write to already-loaded document");document.write(e)},t.appendToHead=function(e){return t.appendTo(document.head,e)},t.appendTo=function(e,t){e.appendChild(t)},t.addEventListener=function(e,t,i){return document.addEventListener(e,t,i),function(){document.removeEventListener(e,t,i)}},t.getCurrentScript=function(){if(document.currentScript)return document.currentScript},t.parentElement=function(e){for(var t=e.parentNode;t.nodeType!==Node.ELEMENT_NODE;)t=t.parentNode;return t}}),(function(e,t,i){var n,r,a="optimizely_data",o=i(75).create,s=i(81),c=i(40),u=t.Error=o("StorageError");try{r=c.getGlobal("localStorage")}catch(e){throw new u("Unable to read localStorage: "+e.toString())}if(!r)throw new u("localStorage is undefined");n=s.create(r,a),t.LocalStorage=n,t.isOptimizelyKey=function(e){return e.slice(0,a.length)===a}}),(function(e,t,i){function n(e,t){this.ei=e,this.ti=t}var r=i(2),a=i(23),o="$$";n.prototype.ii=function(e){return[this.ti,e].join(o)},n.prototype.ni=function(e){return e.replace(this.ti+o,"")},n.prototype.setItem=function(e,t){try{this.ei.setItem(this.ii(e),t)}catch(t){a.warn("Failed to save",e,"to localStorage:",t)}},n.prototype.removeItem=function(e){this.ei.removeItem(this.ii(e))},n.prototype.getItem=function(e){var t=null;try{t=this.ei.getItem(this.ii(e))}catch(e){}return t},n.prototype.keys=function(){var e=r.keys(this.ei);return r.map(r.filter(e,r.bind((function(e){return r.includes(e,this.ti)}),this)),r.bind(this.ni,this))},n.prototype.allKeys=function(){return r.keys(this.ei)},n.prototype.allValues=function(){return r.values(this.ei)},e.exports={create:function(e,t){return new n(e,t)},mockStorage:{keys:function(){},getItem:function(e){},removeItem:function(e){},setItem:function(e,t){}}}}),(function(e,t,i){function n(){return c.getGlobal("performance")}var r=i(7),a=i(75).create,o=i(24),s=i(9),c=i(40),u=i(16),l=u.get("stores/rum"),d="optimizely:",f=t.Error=a("PerformanceError");t.time=function(e){if(l.getSampleRum()){var t=n();if(t&&t.mark){var i=d+e;t.clearMarks(i+"Begin"),t.mark(i+"Begin")}}},t.timeEnd=function(e){if(l.getSampleRum()){var t=n();if(t&&t.mark){var i=d+e,a=t.getEntriesByName(i+"Begin");if(0===a.length)throw new f("Called timeEnd without matching time: "+e);t.clearMarks(i+"End"),t.mark(i+"End");var o=t.getEntriesByName(i+"End"),c=e+"Time",u=o[0].startTime-a[0].startTime;s.dispatch(r.SET_PERFORMANCE_MARKS_DATA,{name:c,data:{startTime:Math.round(1e3*a[0].startTime)/1e3,duration:Math.round(1e3*u)/1e3}})}}},t.now=function(){var e=n();return e?e.now():o.now()}}),(function(e,t,i){var n=i(2),r=i(40);t.getQueryParams=function(){var e=r.getLocationSearch()||"";if(0===e.indexOf("?")&&(e=e.substring(1)),0===e.length)return[];for(var t=e.split("&"),i=[],n=0;n<t.length;n++){var a="",o="",s=t[n].split("=");s.length>0&&(a=s[0]),s.length>1&&(o=s[1]),i.push([a,o])}return i},t.getQueryParamValue=function(e){for(var i=t.getQueryParams(),n=0;n<i.length;n++)if(i[n][0]===e)return i[n][1]},t.queryStringFromMap=function(e){return n.map(e,(function(e,t){return t+"="+e})).join("&")}}),(function(e,t,i){function n(e){var t;if(!o.find(I.getFrames(),{origin:e.origin}))return void m.debug("XDomain","No frame found for origin: "+e.origin);try{t=h.parse(e.data)}catch(t){return void m.debug("XDomain","Ignoring malformed message event:",e)}if("ERROR"===t.type)l.dispatch(c.XDOMAIN_SET_DISABLED,{disabled:!0}),d.emitInternalError(new y("Xdomain Error: "+t.response));else if("SYNC"===t.type)o.each(I.getSubscribers(),(function(e){e(t.response.key,t.response.value)}));else{var i=I.getMessageById(t.id);if(!i){if(m.warn("XDomain","No stored message found for ID",t.id),o.isNumber(t.id)){var n=I.getNextMessageId();t.id>=n?d.emitInternalError(new y("Message ID is greater than expected maximum ID ("+t.id+">"+n+")")):t.id<0?d.emitInternalError(new y("Message ID is < 0: "+t.id)):d.emitInternalError(new y("No stored message found for message ID: "+t.id))}else d.emitInternalError(new y("Message ID is not a number: "+t.id));return}if(!i.resolver)return void m.warn("XDomain","Message already resolved, ignoring:",t.id);i.resolver(t.response),l.dispatch(c.XDOMAIN_SET_MESSAGE,{messageId:t.id,message:{data:{id:t.id,type:i.data.type,key:i.data.key},startTime:i.startTime,endTime:g.now()}})}}function r(e,t){return t||(t=I.getDefaultFrame()),new s(function(i){var n={data:o.extend({},e,{id:I.getNextMessageId()}),resolver:i};t?I.isDisabled()||a(n,t):l.dispatch(c.XDOMAIN_SET_MESSAGE,{messageId:n.data.id,message:n})})}function a(e,t){var i=e.data;l.dispatch(c.XDOMAIN_SET_MESSAGE,{messageId:e.data.id,message:o.extend({},e,{startTime:g.now()})}),t.target.postMessage(h.stringify(i),t.origin)}var o=i(2),s=i(12).Promise,c=i(7),u=i(16),l=i(9),d=i(85),f=i(75).create,g=i(24),p=i(79),h=i(26),_=i(87),v=i(73),E=i(40),m=i(23),I=u.get("stores/xdomain"),y=t.Error=f("XDomainStorageError");t.setItem=function(e,t,i){return r({type:"PUT",key:e,value:t},i)},t.getItem=function(e,t){return r({type:"GET",key:e},t)},t.fetchAll=function(e){return r({type:"GETALL"},e)},t.deleteData=function(e,t){return r({type:"DELETE",visitorId:e},t)},t.subscribe=function(e){l.dispatch(c.XDOMAIN_ADD_SUBSCRIBER,{subscriber:e})},t.loadIframe=function(e,t){return new s(function(i){var n=p.createElement("iframe");n.src=e+t,n.hidden=!0,n.setAttribute("tabindex","-1"),n.setAttribute("title","Optimizely Internal Frame"),n.style.display="none",n.height=0,n.width=0,n.onload=function(){var r={id:I.getNextFrameId(),target:n.contentWindow,origin:e,path:t};l.dispatch(c.XDOMAIN_ADD_FRAME,r),i(r)},p.appendTo(p.querySelector("body"),n)})},t.getXDomainUserId=function(e,t){var i,n={},r=o.keys(e);return o.each(t,(function(e){n[e]=[],o.each(r,(function(t){var r=v.getUserIdFromKey(t,e);!i&&r&&(i=r),r&&!o.includes(n[e],r)&&n[e].push(r)}))})),m.debug("XDomain: Found userIds:",n),i},t.load=function(e,i){E.addEventListener("message",n);var r=function(){return!!p.querySelector("body")},s=function(){return t.loadIframe(e,i)};return _.pollFor(r).then(s).then((function(e){l.dispatch(c.XDOMAIN_SET_DEFAULT_FRAME,e),I.isDisabled()||o.each(I.getMessages(),(function(t){t.startTime||a(t,e)}))}))}}),(function(e,t,i){var n=i(86);t.emitError=function(e,t,i){var r=!0;n.emit({type:"error",name:e.name||"Error",data:{error:e,metadata:t}},i||!1,r)},t.emitInternalError=function(e,i){t.emitError(e,i,!0)},t.emitAnalyticsEvent=function(e,t){var i={type:"analytics",name:"trackEvent",data:e};n.emit(i,t)}}),(function(e,t,i){var n=i(2),r=i(5),a=i(7),o=i(85),s=i(16),c=i(9),u=i(23),l=s.get("stores/event_emitter");t.on=function(e){return e.token||(e.token=r.generate()),c.dispatch(a.ADD_EMITTER_HANDLER,e),e.token},t.off=function(e){c.dispatch(a.REMOVE_EMITTER_HANDLER,{token:e})},t.emit=function(e,t,i){var r=l.getHandlers(e,t);n.each(r,(function(n){try{n.handler.call({$di:s},e)}catch(r){!i&&n.emitErrors?(u.error("Error in handler for event:",e,r),o.emitError(r,null,t)):u.warn("Suppressed error in handler for event:",e,r)}}))}}),(function(e,t,i){var n=i(2),r=i(12).Promise,a=i(40),o=100,s=50;t.pollFor=function(e,t,i){var c,u;return n.isFunction(i)?u=i:(c=i||o,u=function(){return c--,c<-1}),t=t||s,new r(function(i,n){!(function r(){var o;if(!u()){try{var s=e();if(s)return i(s)}catch(e){o=e}return a.setTimeout(r,t)}n(o||new Error("Poll timed out"))})()})}}),(function(e,t,i){function n(e,i){var n;n=t.isInSameSession(e,i)?e.getValueOrDefault([s.FIELDS.SESSION_ID]):i.getValueOrDefault([s.FIELDS.TIME]),i.setFieldValue(s.FIELDS.SESSION_ID,n)}function r(e,i,n){var r,a=e.getValueOrDefault([s.FIELDS.SESSION_INDEX]);r=t.isInSameSession(i,e)?a:n?a+1:a-1,i.setFieldValue(s.FIELDS.SESSION_INDEX,r)}var a=i(62).Event,o=i(24),s=i(63),c=i(62).EventBase;t.CURRENT_SESSION_INDEX=0;var u=18e5;t.isInSameSession=function(e,t){var i=e.getValueOrDefault([s.FIELDS.TIME],0),n=t.getValueOrDefault([s.FIELDS.TIME],0);return Math.abs(i-n)<u},t.updateSessionId=function(e,t){if(!e)return void t.setFieldValue(s.FIELDS.SESSION_ID,t.getValueOrDefault([s.FIELDS.TIME]));var i=e.getValueOrDefault([s.FIELDS.TIME]),r=e.getValueOrDefault([s.FIELDS.SESSION_ID]),o=t.getValueOrDefault([s.FIELDS.TIME]);i="number"!=typeof i?o-36e5:i,r="number"!=typeof r?i:r,e=new a(new c("",""),i,r),n(e,t)},t.updateSessionIndex=function(e,t){if(!e)return void t.setFieldValue(s.FIELDS.SESSION_INDEX,0);var i=e.getValueOrDefault([s.FIELDS.TIME]),n=e.getValueOrDefault([s.FIELDS.SESSION_INDEX]),o=t.getValueOrDefault([s.FIELDS.TIME]),u=e.getValueOrDefault([s.FIELDS.SESSION_ID]);i="number"!=typeof i?o-36e5:i,n="number"!=typeof n?0:n,u="number"!=typeof u?i:u,e=new a(new c("",""),i,u,n),r(e,t,!1)},t.sessionize=function(e){var i=e.length;if(0!==i){e[0].setFieldValue(s.FIELDS.SESSION_ID,e[0].getValueOrDefault([s.FIELDS.TIME]));for(var a=1;a<i;a++)n(e[a-1],e[a]);var c=t.CURRENT_SESSION_INDEX,l=e[i-1].getValueOrDefault([s.FIELDS.TIME]),d=o.now();d-l>u&&(c+=1),e[i-1].setFieldValue(s.FIELDS.SESSION_INDEX,c);for(var a=i-1;a>0;a--)r(e[a],e[a-1],!0)}},t.reindexIfNecessary=function(e,t,i){function n(e){for(var t=0;t<e.length;t++){var i=e[t].getValueOrDefault([s.FIELDS.SESSION_INDEX]);e[t].setFieldValue(s.FIELDS.SESSION_INDEX,i+1)}}e.getValueOrDefault([s.FIELDS.SESSION_INDEX])===-1&&(n(t),n(i))},t.sessionSortPredicate=function(e,t){return e[s.FIELDS.TIME]-t[s.FIELDS.TIME]},t.applyMigrations=function(e){return!1}}),(function(e,t,i){var n=i(12).Promise,r=i(40);t.estimateStorage=function(){var e=r.getGlobal("navigator");try{return e.storage.estimate()}catch(e){return n.resolve({usage:null,quota:null})}}}),(function(e,t,i){var n=i(2),r=i(7),a=i(24),o=i(9),s=i(26),c=i(23),u=i(12).Promise,l=i(91),d=3;t.isCORSSupported=function(){var e=l.get("XMLHttpRequest");return"withCredentials"in new e},t.request=function(e){return e=n.extend({method:"GET",async:!0,contentType:"text/plain;charset=UTF-8"},e),new u(function(i,r){if(!t.isCORSSupported())return r("CORS is not supported");var a=l.get("XMLHttpRequest"),o=new a;o.onload=function(){e.success&&e.success(o),i(o)},o.onerror=function(){e.error&&e.error(o),r(o)},n.isObject(e.data)&&(e.data=s.stringify(e.data)),o.open(e.method,e.url,e.async),e.withCredentials&&(o.withCredentials=e.withCredentials),o.setRequestHeader("Content-Type",e.contentType),o.send(e.data)})},t.retryableRequest=function(e,i,s,l){if(!i)return u.reject(new Error("No id specified for request."));if(!t.isCORSSupported())return u.reject(new Error("CORS is not supported."));n.isUndefined(l)&&(l=d),n.isUndefined(s)&&(s=0);var f={id:i,timeStamp:a.now(),data:e,retryCount:s};return o.dispatch(r.SET_PENDING_EVENT,f),c.debug("Sending event ",i),t.request(e).then((function(e){return o.dispatch(r.REMOVE_PENDING_EVENT,{id:i}),e}),(function(e){throw f.retryCount>=l?(o.dispatch(r.REMOVE_PENDING_EVENT,{id:i}),c.warn("Event ",f," could not be sent after ",l," attempts.")):(f.retryCount++,o.dispatch(r.SET_PENDING_EVENT,f),c.debug("Event ",f," failed to send, with error ",e," It will be retried ",l-s," times.")),e}))},t.sendBeacon=t.request}),(function(e,t,i){var n=i(2),r=i(7),a=i(24),o=i(16),s=i(79),c=i(25),u=i(9),l=i(23),d=o.get("stores/sandbox"),f=i(40);t.shouldSandbox=function(){return!1},t.get=function(e){if(!e)throw new Error("Name is required");if(t.shouldSandbox()){d.isInitialized()||g();var i=d.get(e);if(i)return i}return f.getGlobal(e)};var g=function(){try{var e="optimizely_"+a.now(),t=s.createElement("iframe");t.name=e,t.style.display="none",s.appendToHead(t);var i=t.contentWindow,o=t.contentDocument;o.write("<script></script>"),o.close();var d=n.mapValues(c.SandboxedFunctions,(function(e){return i[e]}));u.dispatch(r.SANDBOXED_FUNCTIONS_ADDED,{sandboxedFunctions:d}),t.parentNode.removeChild(t)}catch(e){l.warn("Unable to create a sandbox: ",e)}}}),(function(e,t,i){var n=i(2),r=i(23),a=i(93),o=i(16),s=o.get("stores/plugins"),c=i(7),u=i(25),l=i(9),d=!1,f=[i(106),i(107),i(127)],g=["clientMetadata","cookieDomain","disable","load","optOut","rum"];t.push=function(e,t){var i,a,o,s;if(!n.isArray(e)&&n.isObject(e))s=n.isUndefined(e.version)?1:e.version,i=e.type,o=[e];else if(n.isArray(e))s=0,i=e[0],o=e.slice(1);else{if(!n.isString(e))return r.warn("API / Ignoring non-array/object/string argument:",e),!1;s=0,i=e,o=[]}if(f[s]&&(a=f[s][i]),t&&g.indexOf(i)===-1)return r.debug("API / Ignoring non high priority function:",i,o),!1;if(!a)return r.warn('API / No function found for "'+i+'" (v'+s+") with arguments:",o),!1;r.log('API / Executing: "'+i,'" with arguments:',o);try{a.apply(null,o),l.dispatch(c.RECORD_API_USAGE,{methodName:s?"v"+s+"."+i:i})}catch(e){r.error(e)}return!0},t.get=function(e){if(d&&"state"!==e)return void r.warn('Module "'+e+'" not found.');r.log('API / Getting module: "'+e+'"');var t=a[e];return t?n.isArray(t)&&(t=o.evaluate(t)):t=s.getPlugin(u.PluginTypes.apiModules,e),t?(l.dispatch(c.RECORD_API_USAGE,{methodName:"get."+e}),t):void r.warn('Module "'+e+'" not found.')}}),(function(e,t,i){function n(e,t,i,n){var r=e.getLayerState(n),a=t.get(n),s=i.get();if(!r||!a)return s?{layer:{name:s.layerName,id:s.layerId,policy:s.layerPolicy,integrationStringVersion:s.integrationStringVersion},experiment:{name:s.experimentName,id:s.experimentId},variation:{name:s.variationName,id:s.variationId},isLayerHoldback:!1}:null;if(l.isSingleExperimentPolicy(a.policy)&&r.decision.isLayerHoldback)return null;var c=r.decision.experimentId,u=r.decision.variationId;if(!c||!u)return null;var d,f;return(d=o.find(a.experiments,{id:c}))?(f=o.find(d.variations,{id:u}),f?{layer:{name:a.name,id:a.id,policy:a.policy,integrationStringVersion:a.integrationStringVersion},experiment:{name:d.name,id:d.id},variation:{name:f.name,id:f.id},isLayerHoldback:r.decision.isLayerHoldback}:null):null}function r(e,t,i,n,r,s){var c=[],u=e.getLayerStates();s.onlySingleExperiments&&(u=o.filter(u,(function(e){var i=t.get(e.layerId);return i&&l.isSingleExperimentPolicy(i.policy)})));var f=o.map(u,(function(e){var t=!!e.decision.variationId,i=e.decisionActivationId&&e.decisionActivationId===n.getActivationId(),r=d.getExperimentAndVariation(),a=r?r.variationId:null,s=t&&e.decision.variationId===a;return o.extend(e,{isActive:t&&i||s,visitorRedirected:s})})),g=r?o.filter(f,r):f;return o.each(g,(function(e){var n=a(e,t,i,s.includeOfferConsistency);n&&c.push(n)})),c}function a(e,t,i,n){var r,a,s=e.layerId,c=t.get(s)||{},u=o.map(c.experiments,(function(e){return o.pick(e,["id","name"])}));if(n||!c.decisionMetadata||!c.decisionMetadata.offerConsistency){var l={id:s,campaignName:c.name||null,experiment:null,allExperiments:u,variation:null,reason:e.decision.reason,isActive:!!e.isActive,visitorRedirected:e.visitorRedirected,isInCampaignHoldback:e.decision.isLayerHoldback};e.decision&&e.decision.experimentId&&(r=o.find(c.experiments,{id:e.decision.experimentId})),r&&(l.experiment=o.pick(r,["id","name","campaignName"])),r&&e.decision.variationId&&(a=o.find(r.variations,{id:e.decision.variationId})),a&&(l.variation=o.pick(a,["id","name"]));var d=o.map(e.decisionTicket.audienceIds,(function(e){return o.pick(i.get(e),["id","name"])}));return l.audiences=d,c.decisionMetadata&&c.decisionMetadata.offerConsistency&&(l.pageId=e.pageId), l}}var o=i(2),s=i(94),c=i(95),u=i(97),l=i(44),d=i(98);t.data=["stores/audience_data","stores/client_metadata","stores/event_data","stores/layer_data","stores/view_data","stores/group_data","stores/interest_group","stores/tag_group","stores/global",function(e,t,i,n,r,a,s,l,d){var f={},g={},p={},h={audiences:e.getAudiencesMap(),events:i.getEventsMap(),campaigns:f,pages:r.getPagesMap(),experiments:g,variations:p,projectId:d.getProjectId(),snippetId:d.getSnippetId(),accountId:d.getAccountId(),dcpServiceId:d.getDCPServiceId(),revision:d.getRevision(),clientName:t.getClientName(),clientVersion:t.getClientVersion()},_=u.dereferenceChangeId;return o.each(n.getAll(),(function(e){c.defineProperty(f,e.id,(function(){var t=o.extend({},e);return c.defineProperty(t,"changes",(function(){return o.map(e.changes,_)}),"campaign"),c.defineProperty(t,"experiments",(function(){return o.map(e.experiments,(function(e){return g[e.id]}))}),"campaign"),t}),"campaignMap","byId"),o.each(e.experiments,(function(e){c.defineProperty(g,e.id,(function(){var t=o.extend({},e);return c.defineProperty(t,"changes",(function(){return o.map(e.changes,_)}),"experiment"),c.defineProperty(t,"variations",(function(){return o.map(e.variations,(function(e){return p[e.id]}))}),"experiment"),t}),"experimentMap","byId"),o.each(e.variations,(function(e){c.defineProperty(p,e.id,(function(){var t=o.extend({},e);return c.defineProperty(t,"actions",(function(){return o.map(e.actions,(function(e){return o.extend({},e,{changes:o.map(e.changes,_)})}))}),"variation"),t}),"variationMap","byId")}))}))})),h}],t.visitor=["stores/visitor",function(e){return o.cloneDeep(e.getVisitorProfile())}],t.visitor_id=["stores/visitor_id",function(e){return{randomId:e.getRandomId()}}],t.state=["stores/audience_data","stores/layer_data","stores/layer","stores/view_data","stores/view","stores/global","stores/observed_redirect",function(e,t,i,a,c,u,f){return{getCampaignStates:function(n){var a={},s=r(i,t,e,u,n,{includeOfferConsistency:!1});return o.each(s,(function(e){a[e.id]=e})),a},getExperimentStates:function(n){var a=r(i,t,e,u,n,{includeOfferConsistency:!1,onlySingleExperiments:!0}),s=["audiences","variation","reason","visitorRedirected","isActive"],c=o.reduce(a,(function(e,t){var i=t.allExperiments[0];return e[i.id]=o.extend({},o.pick(t,s),{id:i.id,experimentName:i.name,isInExperimentHoldback:t.isInCampaignHoldback}),e}),{});return c},getCampaignStateLists:function(n){var a={},s=r(i,t,e,u,n,{includeOfferConsistency:!0});return o.each(s,(function(e){var t=e.id;a[t]||(a[t]=[]),a[t].push(e)})),a},getPageStates:function(e){var t=c.getAll(),i=o.reduce(t,(function(e,t){var i=a.get(t.id);return e[t.id]=o.extend({},o.pick(i,["id","name","apiName","category","staticConditions","tags"]),o.pick(t,["isActive","metadata"])),e[t.id].isActive=!!e[t.id].isActive,e}),{});return e?o.pickBy(i,e):i},isGlobalHoldback:function(){return u.isGlobalHoldback()},getActivationId:function(){return u.getActivationId()},getVariationMap:function(){var e=i.getLayerStates(),n={};return o.each(e,(function(e){var i=t.get(e.layerId);if(e.decision&&e.decision.experimentId&&(n[e.decision.experimentId]={id:e.decision.variationId,name:null,index:null},i)){var r=o.find(i.experiments,{id:e.decision.experimentId});if(r&&e.decision.variationId)var a=o.find(r.variations,{id:e.decision.variationId}),s=o.findIndex(r.variations,{id:e.decision.variationId});a&&(n[e.decision.experimentId]={id:e.decision.variationId,name:a.name,index:s})}})),n},getActiveExperimentIds:function(){var e={};return o.each(this.getCampaignStateLists({isActive:!0}),(function(t){o.each(t,(function(t){e[t.experiment.id]=!0}))})),o.keys(e)},getRedirectInfo:function(){var e=d.getExperimentAndVariation();return e&&(e.referrer=d.getReferrer()),e},getDecisionString:function(e){if(!e)throw new Error("Must pass a config to getDecisionString");e=o.extend({maxLength:255,shouldCleanString:!1},e);var r=n(i,t,f,e.campaignId);return r?s.generateAnalyticsString(r.layer,r.experiment,r.variation,r.isLayerHoldback,e.maxLength,e.shouldCleanString):null},getDecisionObject:function(e){if(!e)throw new Error("Must pass a config to getDecisionObject");e=o.extend({maxLength:255,shouldCleanString:!1},e);var r=n(i,t,f,e.campaignId);if(!r)return null;var a=s.formatNamesAndIdsForAnalytics(r.layer,r.experiment,r.variation,e.shouldCleanString),c=o.mapValues(a.names,(function(t,i){return s.combineAndTruncateIdAndName(t,a.idStrings[i],e.maxLength)})),u={experiment:c.experiment,variation:c.variation};return l.isSingleExperimentPolicy(r.layer.policy)||o.extend(u,{campaign:c.layer,holdback:r.isLayerHoldback}),u}}}],t.utils=i(99).create(),t.jquery=["env/jquery",function(e){return e}],t.event_emitter=i(105)}),(function(e,t,i){function n(e){return e.replace(/[^a-zA-Z0-9\.\~\!\*\(\)\']+/g,"_")}function r(e){return!c.isEmpty(e)&&c.includes(["and","or","not"],e[0])}function a(e,t){var i="";return c.isEmpty(t)?i=d:(i=c.reduce(t,(function(t,i){var r=e.get(i);return r?t+n(r.name?r.name:r.id)+",":t}),""),i=i.slice(0,-1)),i}function o(e,i,n,r,a,o){if(!_.isSingleExperimentPolicy(e.policy)||!r){var s=!_.isSingleExperimentPolicy(e.policy)&&r,u=t.formatNamesAndIdsForAnalytics(e,i,n,o),d=[u.names.experiment,u.names.variation],g=[u.idStrings.experiment,u.idStrings.variation];_.isSingleExperimentPolicy(e.policy)||(d.unshift(u.names.layer),g.unshift(u.idStrings.layer));var p=c.reduce(g,(function(e,t){return e+t.length}),0),h=d.length-1+(s?1:0),v=h*l.length,E=p+v;if(s&&(E+=f.length),E>a)throw new Error("The analytics string size is too low to send the entity IDs.");for(var m=a-E,I=d.length,y=[],S=d.length-1;S>=0;S--){var T=d[S],A=Math.min(T.length,Math.floor(m/I));m-=A,I--,y.unshift(T.substring(0,A))}var w=c.map(y,(function(e,t){return e+g[t]}));return s&&w.push(f),w.join(l)}}function s(e,i,n,r,a,o){var s=r?f:g,u=3*l.length,d=t.formatNamesAndIdsForAnalytics(e,i,n,o),p=d.names,h=d.idStrings,v=c.reduce(h,(function(e,t){return e+t.length}),0);if(v+u+s.length>a)throw new Error("The analytics string size is too low to send the campaign, experiment, and variation IDs.");var E=a-v-u-s.length,m={};m.variation=Math.min(p.variation.length,Math.floor(E/3)),E-=m.variation,m.experiment=Math.min(p.experiment.length,Math.floor(E/2)),E-=m.experiment,m.layer=E;var I={};c.each(p,(function(e,t){I[t]=e.substring(0,m[t])}));var y=[];return _.isSingleExperimentPolicy(e.policy)||y.push(I.layer+h.layer),y=y.concat([I.experiment+h.experiment,I.variation+h.variation,s]),y.join(l)}var c=i(2),u=i(16),l=":",d="everyone_else",f="holdback",g="treatment",p="",h=i(23),_=i(44),v=!1;t.formatNamesAndIdsForAnalytics=function(e,t,i,o){var s={layer:e.name||p,experiment:t.name||p,variation:i.name||p};o&&(s=c.mapValues(s,n));var l=v?1===e.integrationStringVersion:!e.integrationStringVersion||1===e.integrationStringVersion;if(s.experiment===p&&l)if(r(t.audienceIds))s.experiment="Exp";else{var d=u.get("stores/audience_data");s.experiment=a(d,t.audienceIds)}var f={layer:"("+n(e.id)+")",experiment:"("+n(t.id)+")",variation:"("+n(i.id)+")"};return{names:s,idStrings:f}},t.combineAndTruncateIdAndName=function(e,t,i){var n=i-t.length;if(n<0&&(h.warn("maxLength must be at least long enough to fit the entity ID, which is length"+t.length+". Defaulting to only use entity ID as name."),e=p),e===p)return t;if(e.length>n){var r=Math.min(e.length,n);return e=e.substring(0,r),e+t}return e+" "+t},t.generateAnalyticsString=function(e,t,i,n,r,a){return e.integrationStringVersion&&2===e.integrationStringVersion?o(e,t,i,n,r,a):s(e,t,i,n,r,a)}}),(function(e,t,i){var n=i(96),r=i(7),a=i(9),o=i(23);t.defineProperty=function(e,t,i,s,c){n(e,t,(function(){var e=["prop",s,c||t].join(".");return o.debug('Evaluating getter: "'+e+'"'),a.dispatch(r.RECORD_API_USAGE,{methodName:e}),i()}),!0)}}),(function(e,t){"use strict";function i(e,t,i,n){Object.defineProperty(e,t,{get:function(){var e=i.call(this);return Object.defineProperty(this,t,{value:e,enumerable:!!n,writable:!0}),e},set:function(e){return Object.defineProperty(this,t,{value:e,enumerable:!!n,writable:!0}),e},enumerable:!!n,configurable:!0})}e.exports=i}),(function(e,t,i){function n(e){var i=r.cloneDeep(e);return i.changes&&(i.changes=r.map(i.changes,t.dereferenceChangeId)),i.experiments&&r.each(i.experiments,(function(e){e.changes&&(e.changes=r.map(e.changes,t.dereferenceChangeId)),e.variations&&r.each(e.variations,(function(e){e.actions&&r.each(e.actions,(function(e){e.changes&&(e.changes=r.map(e.changes,t.dereferenceChangeId))}))}))})),i}var r=i(2),a=i(16),o=i(22),s=i(95),c=a.get("stores/change_data");t.translateDecisionToCampaignDecision=function(e){return u(r.cloneDeep(e),{layerId:"campaignId",isLayerHoldback:"isCampaignHoldback"})},t.translateLayerEventToCampaignEvent=function(e){var t={};return s.defineProperty(t,"campaign",(function(){var t=n(e.data.layer);return t}),"campaignEvent"),t.decisionTicket=e.data.decisionTicket,t.decision=this.translateDecisionToCampaignDecision(e.data.decision),t.audiences=e.data.audiences,{type:"lifecycle",name:"campaignDecided",data:t}},t.translateViewActivatedToPageActivated=function(e){return{type:"lifecycle",name:"pageActivated",data:{page:e.data.view}}},t.dereferenceChangeId=function(e){var t=c.getChange(e);return t?o.safeReference(t):e};var u=function(e,t){var i=r.omit(e,r.keys(t));return r.each(t,(function(t,n){i[t]=e[n]})),i}}),(function(e,t,i){var n=i(2),r=i(16),a=r.get("stores/observed_redirect");t.getReferrer=function(){var e=a.get();return e?e.referrer:null},t.getExperimentAndVariation=function(){var e=a.get();return e&&n.isString(e.variationId)?n.pick(e,["experimentId","variationId"]):null}}),(function(e,t,i){var n=i(12).Promise,r=i(100).observeSelector,a=i(101).poll,o=i(103).waitForElement,s=i(104).waitUntil;t.create=function(){return{observeSelector:r,poll:a,Promise:n,waitForElement:o,waitUntil:s}}}),(function(e,t,i){function n(){if(f.shouldObserveChangesIndefinitely()){var e={attributes:!0,childList:!0,subtree:!0,characterData:!0},t=g.getDocumentElement(),i=new MutationObserver(function(){this.disconnect(),l.each(l.keys(E),a),this.observe(t,e)});return function(n){var r=E[n];i.observe(t,e),r.cancelObservation=function(){delete E[n],l.isEmpty(E)&&i.disconnect()}}}return function(e){var t=h.poll(l.partial(a,e));E[e].cancelObservation=function(){t(),delete E[e]}}}function r(e){var t=E[e];t&&t.cancelObservation&&t.cancelObservation()}function a(e){if(E[e]){if(o(E[e]))return 0===E[e].matchedCount&&l.isFunction(E[e].options.onTimeout)&&E[e].options.onTimeout(),void r(e);var t=document.querySelectorAll(E[e].selector);t.length&&(l.each(t,(function(t){t.ri&&t.ri[e]||E[e].callbackQueue.push(t)})),s(e))}}function o(e){var t=e.options.timeout;if(null!==t)if("function"==typeof t)try{return t()}catch(e){}else if(Date.now()-e.startTime>t)return!0;return!1}function s(e){for(;E[e]&&E[e].callbackQueue.length;){var t=E[e].callbackQueue.shift();if(c(t,e),E[e].matchedCount=E[e].matchedCount+1,E[e].callback(t),E[e]&&E[e].options.once)return void r(e)}}function c(e,t){e.ri||(e.ri={}),e.ri[t]=!0}function u(e){try{document.querySelector(e)}catch(e){return!1}return!0}var l=i(2),d=(i(7),i(16)),f=d.get("stores/directive"),g=i(79),p=(i(25),i(9),i(5).generate),h=i(101),_=i(40),v=(d.get("stores/rum"),{once:!1,onTimeout:null,timeout:null}),E={},m=function(e){(m=n())(e)};t.observeSelector=function(e,t,i){if(!u(e))throw new Error("observeSelector expects a valid css selector as its first argument");if(!l.isFunction(t))throw new Error("observeSelector expects a function as its second argument");if(i&&(!l.isObject(i)||l.isFunction(i)))throw new Error("observeSelector expects an object as its third argument");var n=p();return i=l.assign({},v,i||{}),E[n]={callback:t,callbackQueue:[],matchedCount:0,options:i,selector:e,startTime:Date.now()},m(n),_.setTimeout(l.bind(a,null,n),0),l.partial(r,n)}}),(function(e,t,i){function n(e){l[e]&&a.each(l[e].callbacks,(function(e){e.call(null)}))}function r(e,t){l[t]&&l[t].callbacks[e]&&(delete l[t].callbacks[e],a.some(l[t].callbacks)||(clearInterval(l[t].id),delete l[t]))}var a=i(2),o=(i(7),i(16)),s=(i(25),i(9),i(5).generate),c=i(40),u=i(102).DEFAULT_INTERVAL,l=(o.get("stores/rum"),{});t.poll=function(e,t){a.isNumber(t)||(t=u),l[t]||(l[t]={callbacks:{},id:c.setInterval(a.partial(n,t),t)});var i=s();return l[t].callbacks[i]=e,a.partial(r,i,t)},t.cancelAll=function(){a.each(l,(function(e,t){clearInterval(e.id),delete l[t]}))}}),(function(e,t){e.exports={DEFAULT_INTERVAL:20}}),(function(e,t,i){var n=i(12).Promise,r=i(100).observeSelector;t.waitForElement=function(e){return new n(function(t,i){r(e,t,{once:!0})})}}),(function(e,t,i){var n=i(12).Promise,r=i(101).poll;t.waitUntil=function(e){return new n(function(t,i){if(e())return void t();var n=r((function(){e()&&(n(),t())}))})}}),(function(e,t,i){var n=i(86);t.on=function(e){return e.publicOnly=!0,n.on(e)},t.off=n.off,t.emit=function(e){n.emit(e)}}),(function(e,t,i){function n(e){var t,i={};if(e)if(r(e))t=Number(e);else{if("object"!=typeof e)throw new Error("tracker","Revenue argument",e,"not a number.");if(i=a.extend({},e),"revenue"in i){if(!r(i["revenue"]))throw new Error("tracker","Revenue value",i["revenue"],"not a number.");t=Number(i["revenue"]),delete i["revenue"]}}return a.isUndefined(t)||(i.revenue=t),i}function r(e){return a.isNumber(e)||a.isString(e)&&Number(e)==e}var a=i(2),o=i(107);t.activateGeoDelayedExperiments=function(e,t){t||(t=e.lists?"odds":"cdn3"),o.dataFromSource({data:e,source:t})},t.activateSiteCatalyst=function(e){e&&e.sVariable&&o.integrationSettings({id:"adobe_analytics",settings:{sVariableReference:e.sVariable}})},t.bucketUser=t.bucketVisitor=function(e,t){if(e&&t){var i={experimentId:String(e)};t>256?i.variationId=String(t):i.variationIndex=String(t),o.bucketVisitor(i)}},t.disable=function(e){o.disable({scope:e})},t.log=function(e){a.isUndefined(e)&&(e=!0),o.log({level:e?"INFO":"OFF"})},t.optOut=function(e){a.isUndefined(e)&&(e=!0),o.optOut({isOptOut:e})},t.setCookieDomain=function(e){o.cookieDomain({cookieDomain:e})},t.setCookieExpiration=function(e){o.cookieExpiration({cookieExpirationDays:e})},t.setDimensionValue=function(e,t){var i={};i[e]=t,o.user({attributes:i})},t.setUserId=function(e){o.user({userId:e})},t.storeThirdPartyData=function(e,t){o.dataFromSource({source:e,data:t})},t.trackEvent=function(e,t){o.event({eventName:e,tags:n(t)})}}),(function(e,t,i){function n(e){var t;return e.eventId&&(t=I.create(e.eventId,e.eventName,"custom")),b.updateAllViewTags(),function(){var i=g.trackCustomEvent(e.eventName,e.tags,t);i?w.log("API / Tracking custom event:",e.eventName,e.tags):w.log("API / Not tracking custom event:",e.eventName)}}function r(e){var t;return e.eventData&&(t=I.create(e.eventData.id,e.eventData.apiName,"click",e.eventData)),function(){var e=g.trackClickEvent(t);e?w.log("API / Tracking click event:",e):w.log("API / Not tracking click event:",e)}}function a(e){var t=e.eventData,i=A.createLayerState(t.layerId,t.experimentId,t.variationId,t.isLayerHoldback),n=A.createSingle(t.layerId,t.experimentId,t.variationId);return function(){A.recordLayerDecision(i.layerId,i.decisionTicket,i.decision),w.log("API / Tracking decision event:",i),g.trackDecisionEvent(i.decision,i.decisionTicket,n)}}function o(e){var t=b.create(e.eventData.id,e.eventData.apiName),i=b.createState(t.id);return function(){var e=g.trackViewActivation(t,i);e?w.log("API / Tracking pageview event:",e):w.log("API / Not tracking pageview event:",e)}}var s=i(2),c=i(7),u=i(92),l=i(93),d=i(108),f=i(25),g=i(109),p=i(116),h=i(6),_=i(75).create,v=i(24),E=i(117),m=i(119),I=i(120),y=i(86),S=i(9),T=i(26),A=i(112),w=i(23),R=i(121),D=i(113),b=i(122),O=i(73),N=i(16),C=N.get("stores/dimension_data"),P=N.get("stores/view"),L=N.get("stores/view_data"),V=N.get("stores/visitor_id"),k=N.get("stores/layer_data"),x=N.get("stores/directive"),F=!1,M=!1,U=F||M,G=86400,B=90,z=t.ApiListenerError=_("ApiListenerError");t.event=function(e){var t;switch(e.eventType){case"click":t=r(e);break;case"decision":t=a(e);break;case"pageview":t=o(e);break;case"custom":default:t=n(e)}V.getBucketingId()?t():S.dispatch(c.ADD_CLEANUP_FN,{lifecycle:f.Lifecycle.postActivate,cleanupFn:t})},t.clientMetadata=function(e){U&&(S.dispatch(c.SET_CLIENT_NAME,e.clientName),S.dispatch(c.SET_CLIENT_VERSION,e.clientVersion)),F&&e.forceVariationIds&&S.dispatch(c.LOAD_DIRECTIVE,{forceVariationIds:e.forceVariationIds})},t.priorRedirectString=function(e){U&&D.load(e.value)},t.microsnippetError=function(e){if(U){var t=e.errorData.metadata&&e.errorData.metadata.err||{};t.name=e.errorData.code;var i={engine:e.engine,msVersion:e.errorData.msVersion,requestId:e.errorData.requestId,projectId:e.errorData.projectId,snippetKey:e.errorData.snippetKey,args:e.errorData.args};m.handleError(t,i)}},t.rum=function(e){S.dispatch(c.SET_RUM_DATA,e.eventData)},t.initialViewStates=function(e){var t=s.map(e.states,(function(e,t){return{id:t,isActive:e}}));b.registerViews(t)},t.page=function(e){var t=L.getByApiName(e.pageName);if(!t)throw new Error('Unknown page "'+e.pageName+'"');var i=!e.hasOwnProperty("isActive")||e.isActive,n=function(){i?b.activateViaAPI(t,e.tags):(b.deactivate(t),w.log("API / Deactivated Page",b.description(t)))};V.getBucketingId()?n():S.dispatch(c.ADD_CLEANUP_FN,{lifecycle:f.Lifecycle.postViewsActivated,cleanupFn:n})},t.tags=function(e){b.setGlobalTags(e.tags)},t.user=function(e){U&&e.visitorId&&(V.getBucketingId()?(w.log("API / Setting visitor Id:",e.visitorId),O.setId({randomId:e.visitorId})):(w.log("API / Setting visitor Id for activation:",e.visitorId),S.dispatch(c.SET_VISITOR_ID_VIA_API,e.visitorId))),F&&s.each(["IP","location","queryParams","url"],(function(t){e[t]&&(w.log("API / Setting",t,":",e[t]),j(t,e[t],!1))})),w.log("API / Setting visitor custom attributes:",e.attributes),s.each(e.attributes,(function(e,t){var i,n,r=t,a=C.getById(t)||C.getByApiName(t);a&&(r=a.id,i=a.apiName,n=a.segmentId||a.id);var o={id:n,value:e};i&&(o.name=i),j(r,o,!0)}))};var j=function(e,t,i){var n=[{key:i?["custom",e]:[e],value:t,metadata:{lastModified:v.now()}}],r=function(){S.dispatch(c.SET_VISITOR_ATTRIBUTES,{attributes:n})};V.getBucketingId()?r():S.dispatch(c.ADD_CLEANUP_FN,{lifecycle:f.Lifecycle.postVisitorProfileLoad,cleanupFn:r})};t.optOut=function(e){var t=!e.hasOwnProperty("isOptOut")||e.isOptOut;E.setOptOut(t)},t.cookieExpiration=function(e){var t=e.cookieExpirationDays;t<B&&(w.error('Argument "cookieExpirationDays"=',t,"less than minimum days:",B,", setting to minimum."),t=B),w.log("API / Setting cookie age to",t,"days."),S.dispatch(c.SET_COOKIE_AGE,t*G)},t.extendCookieLifetime=function(e){e=s.extend({isEnabled:!0},e),w.log("API / Setting cookie automatic lifetime extension to",e.isEnabled),S.dispatch(c.SET_COOKIE_AUTO_REFRESH,e.isEnabled)},t.cookieDomain=function(e){w.log("API / Setting cookie domain to",e.cookieDomain),S.dispatch(c.SET_COOKIE_DOMAIN,e.cookieDomain)},t.disable=function(e){if(e.scope){if("tracking"!==e.scope)throw new Error('Unknown "scope" for disable: '+e.scope);w.log("API / Disabling tracking"),S.dispatch(c.LOAD_DIRECTIVE,{trackingDisabled:!0})}else w.log("API / Disabling everything"),S.dispatch(c.LOAD_DIRECTIVE,{disabled:!0})},t.log=function(e){var t=e.level,i=e.match;s.isUndefined(t)&&(t="INFO"),s.isUndefined(i)&&(i=""),w.setLogMatcher(i),w.setLogLevel(t)},t.registerModule=function(e){var t="custom/"+e.moduleName;if(l[t]||u.get(t))throw new Error('Module name "'+t+'" is reserved. Will not be registered as plugin.');R.registerApiModule(t,e.module)},t.dataFromSource=function(e){var t=e.source;h.makeAsyncRequest(t),h.resolveRequest(t,e.data)},t.addListener=function(e){if(!s.isFunction(e.handler))throw new Error("A handler function must be supplied");e=s.omit(e,"type"),e.publicOnly=!0,e.emitErrors=!0;var t=e.handler;e.handler=function(e){try{return t(e)}catch(e){throw new z(e)}},y.on(e)},t.removeListener=function(e){if(!e.token)throw new Error("Must supply a token to removeListener");y.off(e.token)},t.load=function(e){e.data=s.extend({},e.data),d.normalizeClientData(e.data),S.dispatch(c.DATA_LOADED,{data:e.data})},t.integrationSettings=function(e){if(!e.id)throw new Error("id is required");if(!e.settings)throw new Error("settings is required");S.dispatch(c.SET_INTEGRATION_SETTINGS,s.extend({},e.settings,{id:e.id}))},t.bucketVisitor=function(e){if(!e.variationId&&s.isUndefined(e.variationIndex)||e.variationId&&e.variationIndex)throw new Error("One of a variationId or a variationIndex is required.");if(!e.experimentId)throw new Error("An experimentId is required.");var t,i,n=e.campaignId;if(n){if(t=k.get(n),!t)throw new Error("Could not find layer "+n)}else if(t=k.getLayerByExperimentId(e.experimentId),n=t.id,!n)throw new Error("Could not find layer for experiment "+e.experimentId);if(i=s.find(t.experiments,{id:e.experimentId}),!i)throw new Error("Could not find experiment "+e.experimentId+" in layer "+n);var r=e.variationId;if(s.isUndefined(e.variationIndex)){if(!s.find(i.variations,{id:r}))throw new Error("Cound not find variation "+r+" in experiment "+e.experimentId)}else if(r=i.variations[e.variationIndex].id,!r)throw new Error("Could not find variation at index "+e.variationIndex+" in experiment "+e.experimentId);O.updateVariationIdMap(n,e.experimentId,r),V.getBucketingId()&&O.persistVariationIdMap()},t.waitForOriginSync=function(e){if(!s.isArray(e.canonicalOrigins))throw new Error("canonicalOrigins must be an array. Got: "+T.stringify(e.canonicalOrigins));s.each(e.canonicalOrigins,(function(e){if(!s.isString(e))throw new Error("Each item in canonicalOrigins must be a string. Found type "+typeof e)})),S.dispatch(c.XDOMAIN_SET_CANONICAL_ORIGINS,{canonicalOrigins:e.canonicalOrigins})},t.disableCrossOrigin=function(){w.log("API / cross origin tracking is DISABLED"),S.dispatch(c.XDOMAIN_SET_DISABLED,{disabled:!0})},t.activate=function(){x.shouldActivate()&&!F?(s.forEach(P.getActiveViewStates(),(function(e){b.deactivate(L.get(e.id))})),S.dispatch(c.RESET_VIEW_STATES),p.emitActivateEvent()):w.debug("Not activating.")},t.sendEvents=function(){p.emitSendEvents()},t.holdEvents=function(){p.emitHoldEvents()}}),(function(e,t,i){var n=i(2),r=i(25);t.normalizeClientData=function(e){!e.listTargetingKeys&&e.listTargetingCookies&&(e.listTargetingKeys=n.map(e.listTargetingCookies,(function(e){return{type:r.ListTargetingKeyTypes.COOKIE,key:e}})),delete e.listTargetingCookies)}}),(function(e,t,i){function n(e,t,i){var n=u({activeViewStates:z.getActiveViewStates(),visitorProfile:W.getVisitorProfile(),layerStates:H.getLayerStatesForAnalytics()}),r=i&&i.pageId?d(i):z.getActiveViewTags(),a=v.extend({},r,t),o=i&&i.category?i.category:R.OTHER;return v.extend(n,{eventEntityId:i&&i.id,eventApiName:e,eventCategory:o,eventTags:a})}function r(e,t){var i=u({activeViewStates:z.getActiveViewStates(),visitorProfile:W.getVisitorProfile(),layerStates:H.getLayerStatesForAnalytics()});return v.extend(i,{pageId:e.id,pageApiName:e.apiName,viewCategory:e.category,eventTags:t.metadata})}function a(e){var t=u({activeViewStates:z.getActiveViewStates(),visitorProfile:W.getVisitorProfile(),layerStates:H.getLayerStatesForAnalytics()}),i=e.config&&e.config.selector?e.config.selector:e.eventFilter.selector,n=e.apiName,r=e.category||R.OTHER,a=e.id,o=d(e);return v.extend(t,{eventApiName:n,eventCategory:r,eventEntityId:a,eventTags:o,pageId:e.pageId,selector:i})}function o(){var e=u({activeViewStates:[],visitorProfile:W.getVisitorProfile(),layerStates:H.getLayerStatesForAnalytics()});return v.extend(e,{eventTags:{}})}function s(e,t,i,n){var r=null,a=null,o=null;if(t.experimentId){var s=v.find(n.experiments,{id:t.experimentId});if(s&&(r=s.name||null,o=s.integrationSettings,t.variationId)){var c=v.find(s.variations,{id:t.variationId});c&&(a=c.name||null)}}var u=V.getReferrer()||A.getReferrer(),l={sessionId:B.getSessionId(),decisionTicketAudienceIds:i.audienceIds,visitorId:$.getRandomId(),decisionId:e,activationId:G.getActivationId(),namespace:G.getNamespace(),timestamp:y.now(),pageId:i.pageId||null,variationId:t.variationId,variationName:a,experimentId:t.experimentId,experimentName:r,layerId:t.layerId,layerName:n.name,layerPolicy:n.policy,accountId:G.getAccountId(),projectId:G.getProjectId(),revision:String(G.getRevision()),clientName:U.getClientName(),clientVersion:U.getClientVersion(),referrer:u,integrationStringVersion:te?n.integrationStringVersion:n.integrationStringVersion||1,integrationSettings:v.extend({},n.integrationSettings,o)};return l}function c(e,t){var i=v.extend({},e,{isLayerHoldback:t,isGlobalHoldback:!1,clientName:v.isNull(e.clientName)?S.NAME:e.clientName,integrationStringVersion:te?e.integrationStringVersion:v.isNull(e.integrationStringVersion)?1:e.integrationStringVersion,anonymizeIP:v.isNull(G.getAnonymizeIP())?void 0:G.getAnonymizeIP(),activationId:G.getActivationId(),decisionTicketAudienceIds:[],sessionId:B.getSessionId(),activeViewStates:[],userFeatures:f(W.getVisitorProfile()),layerStates:H.getLayerStatesForAnalytics()});return i}function u(e){var t=V.getReferrer()||A.getReferrer(),i={eventId:M.generate(),timestamp:y.now(),revision:G.getRevision(),clientName:U.getClientName(),clientVersion:U.getClientVersion(),projectId:G.getProjectId(),accountId:G.getAccountId(),activationId:G.getActivationId(),sessionId:B.getSessionId(),isGlobalHoldback:G.isGlobalHoldback(),namespace:G.getNamespace(),referrer:t,visitorId:$.getRandomId(),activeViewStates:e.activeViewStates,layerStates:e.layerStates,userFeatures:f(e.visitorProfile)};return i}function l(e){var t=z.getViewState(e),i=t&&t.isActive?t.metadata:{};return i}function d(e){var t={};return e.pageId?l(e.pageId):t}function f(e){var t=j.getAllPlugins(w.PluginTypes.visitorProfileProviders),i=v.filter(t,{shouldTrack:!0}),n={id:null,type:null,name:"",value:null,shouldIndex:!0};return v.reduce(i,(function(t,i){try{var r=i.provides,a=e[r],o=[];if(!v.isUndefined(a)){v.isObject(a)?o=v.map(a,(function(e,t){var i=v.isObject(e)?e:{value:e};return v.extend({},{type:r,name:t},i)})):o.push({type:r,value:a});var s=v(o).map((function(e){return v.pick(v.extend({},n,e),v.keys(n))})).filter((function(e){return!!e.value})).value();t=t.concat(s)}}catch(e){P.warn("Error evaluating userFeature against visitorProfile:",e)}return t}),[])}function g(e,t,i){var n=p(e,i);P.debug("Found "+n.length+" analytics integrations defining a "+e+" hook"),P.debug("Calling each with data: ",t),v.each(n,(function(e){try{P.debug("Calling plugin: "+e.name),e.hookFn(t),P.debug("Called plugin: "+e.name)}catch(e){P.error(e)}}))}function p(e,t){var i=[];return v.each(j.getAllPlugins(w.PluginTypes.analyticsTrackers),(function(n,r){if(n[e]&&(!t||!n[t]))try{i.push({name:r,hookFn:T.evaluate(n[e])})}catch(e){P.error(e)}})),i}function h(e,t,i){var n=_(e,t);P.debug("Found "+n.length+" analytics integrations defining a trackLayerDecision "+e+" timing of "+t.join("|")),P.debug("Calling each with data: ",i),v.each(n,(function(e){try{P.debug("Calling plugin: "+e.name),e.hookFn(i),P.debug("Called plugin: "+e.name)}catch(e){P.error(e)}}))}function _(e,t){var i=[];return v.each(j.getAllPlugins(w.PluginTypes.analyticsTrackers),(function(n,r){v.includes(t,n[e])&&i.push({name:r,hookFn:n.trackLayerDecision})})),i}var v=i(2),E=i(7),m=i(85),I=i(70),y=i(24),S=i(32),T=i(16),A=i(79),w=i(25),R=i(72),D=i(86),b=i(110),O=i(111),N=i(9),C=i(112),P=i(23),L=(i(82),i(12).Promise),V=i(98),k=i(113),x=i(115),F=i(114),M=i(5),U=T.get("stores/client_metadata"),G=T.get("stores/global"),B=T.get("stores/session"),z=T.get("stores/view"),j=T.get("stores/plugins"),H=T.get("stores/layer"),K=T.get("stores/layer_data"),Y=T.get("stores/observed_redirect"),q=T.get("stores/pending_redirect"),W=T.get("stores/visitor"),X=T.get("stores/directive"),Q=T.get("stores/event_data"),$=T.get("stores/visitor_id"),J="COOKIE",Z=!0,ee=1e3,te=!1;t.trackClientActivation=function(){if(X.shouldSendTrackingData()){var e=o();return g("onClientActivation",e),e}},t.trackCustomEvent=function(e,t,i){t=t||{},i||(i=Q.getByApiName(e));var r=n(e,t,i),a={name:e,type:O.CUSTOM,category:r.eventCategory,tags:v.omit(r.eventTags,"revenue")};if(v.isUndefined(t.revenue)||(a.revenue=t.revenue),m.emitAnalyticsEvent({name:i?i.name||i.apiName:e,apiName:i?i.apiName:void 0,type:O.CUSTOM,tags:v.omit(r.eventTags,"revenue"),category:r.eventCategory,metrics:a.revenue?{revenue:a.revenue}:{}},!X.shouldSendTrackingData()),X.shouldSendTrackingData())return I.addEvent(a),g("onCustomEvent",r),r},t.trackDecisionEvent=function(e,t,i){i||(i=K.get(e.layerId));var n=M.generate();N.dispatch(E.RECORD_LAYER_DECISION_EVENT_ID,{layerId:e.layerId,pageId:t.pageId,decisionId:n});var r=s(n,e,t,i),a=q.isExpectingRedirect(),o=q.getLayerId(),u=C.description(i);if(a&&o===i.id&&(k.persist(r,J),P.log("Relaying decision for redirect Campaign",u)),!X.shouldSendTrackingData())return void P.log("Analytics / Not tracking decision for Campaign",C.description(i));var l=c(r,e.isLayerHoldback);if(a&&o===i.id){var d=F.TrackLayerDecisionTimingFlags.preRedirectPolicy;l.timing=d,h(d,[F.PreRedirectPolicies.PERSIST_BEFORE_AND_TRACK_DURING_REDIRECT],l),P.log("Called trackLayerDecision for redirect Campaign",u,l)}else{var d=F.TrackLayerDecisionTimingFlags.nonRedirectPolicy;l.timing=d,h(d,[F.NonRedirectPolicies.TRACK_IMMEDIATELY],l),P.log("Called trackLayerDecision for non-redirect Campaign",u,l)}},t.trackPostRedirectDecisionEvent=function(){if(!X.shouldSendTrackingData())return L.resolve();if(Y.hasTracked())return L.resolve();var e=Y.get();if(!e)return L.resolve();var t=c(e,!1),i=F.TrackLayerDecisionTimingFlags.postRedirectPolicy;if(t.timing=i,h(i,[F.PostRedirectPolicies.TRACK_IMMEDIATELY],t),Z){var n=new L(function(e){var t=D.on({filter:{type:b.TYPES.LIFECYCLE,name:"originsSynced"},handler:function(){e(),D.off(t)}})}),r=x.makeTimeoutPromise(ee);return L.race([n,r]).then((function(){P.log("Calling trackers after successful sync")}),(function(e){P.warn("Calling trackers after failed sync:",e)})).then((function(){t=c(e,!1),t.timing=F.TrackLayerDecisionTimingFlags.postRedirectPolicy,h(F.TrackLayerDecisionTimingFlags.postRedirectPolicy,[F.PostRedirectPolicies.TRACK_AFTER_SYNC],t),N.dispatch(E.REGISTER_TRACKED_REDIRECT_DATA)}))["catch"]((function(e){P.error("Error when calling trackers after sync:",e)}))}return h(F.TrackLayerDecisionTimingFlags.postRedirectPolicy,[F.PostRedirectPolicies.TRACK_AFTER_SYNC],t),N.dispatch(E.REGISTER_TRACKED_REDIRECT_DATA),L.resolve()},t.trackClickEvent=function(e){var t=a(e),i={name:e.apiName,type:e.eventType,category:t.eventCategory,tags:t.eventTags};if(m.emitAnalyticsEvent({name:e.name||e.apiName,apiName:e?e.apiName:void 0,type:e.eventType,category:t.eventCategory,tags:t.eventTags,metrics:{}},!X.shouldSendTrackingData()),X.shouldSendTrackingData())return I.addEvent(i),g("onClickEvent",t),t},t.trackViewActivation=function(e,t){if(t||(t=z.getViewState(e.id)),!t.isActive)return void P.debug("Inactive view passed to `trackViewActivation`");var i=r(e,t);return m.emitAnalyticsEvent({name:e.name||i.pageApiName,apiName:i.pageApiName,type:O.PAGEVIEW,category:i.viewCategory,tags:i.eventTags,metrics:{}},!X.shouldSendTrackingData()),X.shouldSendTrackingData()?(I.addEvent({name:i.pageApiName,type:O.PAGEVIEW,category:i.viewCategory,tags:i.eventTags}),N.dispatch(E.TRACK_VIEW_ACTIVATED_EVENT,{pageId:e.id,eventData:i}),g("onPageActivated",i),i):void 0}}),(function(e,t){t.TYPES={ACTION:"action",ANALYTICS:"analytics",EDITOR:"editor",LIFECYCLE:"lifecycle"}}),(function(e,t){e.exports={CLICK:"click",CUSTOM:"custom",ENGAGEMENT:"engagement",PAGEVIEW:"pageview"}}),(function(e,t,i){var n=i(2),r=i(7),a=i(24),o=i(16),s=i(9),c=o.get("stores/global"),u=o.get("stores/session"),l=2e3;t.recordLayerDecision=function(e,t,i){return s.dispatch(r.RECORD_LAYER_DECISION,{layerId:e,decision:i,decisionTicket:t,sessionId:u.getSessionId(),activationId:c.getActivationId(),timestamp:a.now(),revision:c.getRevision(),namespace:c.getNamespace(),pageId:t.pageId}),i},t.relatedAudienceIds=function(e){var t={},i=["and","or","not"];return n.each(e.experiments,(function(e){n.each(n.flattenDeep(e.audienceIds),(function(e){n.includes(i,e)||(t[e]=!0)}))})),n.keys(t)},t.getActivationTimeout=function(e){var t=e.activation;return t&&null!==t.timeout&&void 0!==t.timeout?t.timeout:l},t.description=function(e){ return(e.name?'"'+e.name+'" ':"")+"("+e.id+")"},t.createSingle=function(e,t,i){var n={id:e,policy:"single_experiment",holdback:0,experiments:[{id:t||"",variations:[{id:i||"",actions:[]}]}],integrationStringVersion:1};return n},t.createLayerState=function(e,t,i,n){var r={layerId:e,decision:{layerId:e,experimentId:t,variationId:i,isLayerHoldback:n||!1},decisionTicket:{audienceIds:[]}};return r},t.getIntegrationTypes=function(e){return n.keys(n.reduce(n.keys(e.integrationSettings),(function(e,t){return n.isNaN(Number(t))||(t="custom"),e[t]=1,e}),{}))}}),(function(e,t,i){function n(e){try{var t=r(e)}catch(e){return v.error("Relay / Error computing redirect relay cookie: ",e),void g.emitError(e)}v.debug("Relay / Setting redirect relay cookie:",t);try{f.set(h.COOKIES.REDIRECT,t,{maxAge:5,encodeValue:!1})}catch(e){v.error("Relay / Failed to set redirect relay cookie",e),g.emitError(e)}}function r(e){var t=[],i=l.reduce(e,(function(e,i,n){var r=S[n];return r?(r.isMulti?l.forEach(i,(function(t,i){t=r.valueToValueString?r.valueToValueString(t,i):String(t),l.isNull(t)||(t=(r.encodeValueString||encodeURIComponent)(t),e.push(encodeURIComponent(r.relayName+I+i)+"="+t))})):l.isNull(i)||(i=(r.valueToValueString||String)(i),i=(r.encodeValueString||encodeURIComponent)(i),e.push(r.relayName+"="+i)),e):(t.push(n),e)}),[]);if(t.length)throw new Error("Relay / Don't know how to relay some fields:",t);return i.sort(),i.join("&")}function a(){var e=f.get(h.COOKIES.REDIRECT,!1);if(e)return v.log("Relay / Found redirect cookie:",e),e}function o(e){var t={},i=e.split("&");return l.forEach(i,(function(e){var i=e.split("=");if(2!==i.length)return void v.warn("Relay / Skipping invalid segment:",e);var n=f.safeDecodeURIComponent(i[0]),r=T[n];if(!r&&(r=l.find(y,(function(e){return e.isMulti&&0===n.indexOf(e.relayName+I)})),!r))return void v.warn("Relay / Skipping segment with unknown field identifier:",e,n);var a=i[1];try{if(r.isMulti){t[r.name]=t[r.name]||{};var o=n.substring(r.relayName.length+I.length);a=(r.decodeValueString||f.safeDecodeURIComponent)(a),a=(r.valueFromValueString||l.identity)(a,o),t[r.name][o]=a}else a=(r.decodeValueString||f.safeDecodeURIComponent)(a),a=(r.valueFromValueString||l.identity)(a),t[r.name]=a}catch(t){return v.warn("Relay / Skipping segment due to decode or parse error:",e,t),void g.emitError(t)}})),t}function s(e,t){var i=null;if(e){var n=m.getPlugin(h.PluginTypes.analyticsTrackers,t);if(n&&l.isFunction(n.serializeSettings))try{i=n.serializeSettings(e)}catch(e){v.warn("Analytics / Failed to persist integrationSettings for plugin:",t,e)}}return i}function c(e,t){var i=null,n=m.getPlugin(h.PluginTypes.analyticsTrackers,t);if(n&&l.isFunction(n.deserializeSettings))try{i=n.deserializeSettings(e)}catch(e){v.warn("Analytics / Failed to persist integrationSettings for plugin:",t,e)}return i}function u(e){var t=e.pageId||void 0;_.dispatch(d.RECORD_LAYER_DECISION,{layerId:e.layerId,decision:{layerId:e.layerId,experimentId:e.experimentId,variationId:e.variationId,isLayerHoldback:!1},decisionTicket:{audienceIds:e.decisionTicketAudienceIds,bucketingId:e.visitorId,globalHoldback:0,preferredVariationMap:void 0,pageId:t,activationId:e.activationId},sessionId:e.sessionId,activationId:e.activationId,timestamp:e.timestamp,revision:e.revision,namespace:e.namespace,pageId:t}),_.dispatch(d.RECORD_LAYER_DECISION_EVENT_ID,{layerId:e.layerId,pageId:t,decisionId:e.decisionId}),_.dispatch(d.ACTION_EXECUTED,{sessionId:e.sessionId,layerId:e.layerId,pageId:e.pageId,timestamp:e.timestamp,activationId:e.activationId})}var l=i(2),d=i(7),f=i(74),g=i(85),p=i(16),h=i(25),_=i(9),v=i(23),E=i(114),m=p.get("stores/plugins"),I=".",y=[{name:"sessionId",relayName:"s"},{name:"decisionTicketAudienceIds",relayName:"as",valueToValueString:function(e){return l.map(e,encodeURIComponent).join(",")},encodeValueString:l.identity,decodeValueString:l.identity,valueFromValueString:function(e){return l.map(e.split(","),f.safeDecodeURIComponent)}},{name:"decisionId",relayName:"d"},{name:"activationId",relayName:"aId"},{name:"pageId",relayName:"vId",isNullable:!0},{name:"variationId",relayName:"v",isNullable:!0},{name:"referrer",relayName:"r"},{name:"timestamp",relayName:"t",valueFromValueString:Number},{name:"visitorId",relayName:"i"},{name:"projectId",relayName:"p"},{name:"revision",relayName:"n"},{name:"clientName",relayName:"cN",isNullable:!0},{name:"clientVersion",relayName:"cV"},{name:"namespace",relayName:"ns"},{name:"accountId",relayName:"a"},{name:"layerId",relayName:"l"},{name:"layerName",relayName:"lN",isNullable:!0},{name:"layerPolicy",relayName:"lP"},{name:"experimentId",relayName:"x",isNullable:!0},{name:"experimentName",relayName:"xN",isNullable:!0},{name:"variationName",relayName:"vN",isNullable:!0},{name:"integrationStringVersion",relayName:"isv",valueFromValueString:Number,isNullable:!0},{name:"integrationSettings",relayName:"iS",isMulti:!0,valueToValueString:s,valueFromValueString:c,isNullable:!0}],S={},T={};l.forEach(y,(function(e){S[e.name]=e,T[e.relayName]=e})),t.persist=function(e,t){t===E.RedirectRelayMedia.COOKIE?n(e):v.error("Relay / Unsupported redirect relay medium: "+t)},t.load=function(e){if(e||(e=a()),e){var t=o(e);if(t){var i=[];return l.forEach(y,(function(e){(l.isNull(t[e.name])||l.isUndefined(t[e.name]))&&(e.isNullable?t[e.name]=null:(delete t[e.name],i.push(e.name)))})),i.length?void v.error("Relay / Observed redirect data with missing fields:",i):(_.dispatch(d.LOAD_REDIRECT_DATA,t),_.dispatch(d.ADD_CLEANUP_FN,{lifecycle:h.Lifecycle.postVisitorProfileLoad,cleanupFn:function(){u(t)}}),t)}}}}),(function(e,t,i){var n=i(8);t.TrackLayerDecisionTimingFlags=n({preRedirectPolicy:null,postRedirectPolicy:null,nonRedirectPolicy:null}),t.PreRedirectPolicies=n({PERSIST_BEFORE_AND_TRACK_DURING_REDIRECT:null,PERSIST_BEFORE_REDIRECT:null}),t.PostRedirectPolicies=n({TRACK_IMMEDIATELY:null,TRACK_AFTER_SYNC:null}),t.NonRedirectPolicies=n({TRACK_IMMEDIATELY:null}),t.RedirectRelayMedia=n({COOKIE:null})}),(function(e,t,i){var n=i(12).Promise,r=i(40);t.makeTimeoutPromise=function(e){return new n(function(t,i){r.setTimeout((function(){i(new Error("Timed out after "+e+" ms"))}),e)})}}),(function(e,t,i){function n(e){var t=["type","selector","attributes","value"],i=r.extend({},e);return i.changeSet=r.map(e.changeSet,(function(e){return r.pick(l.dereferenceChangeId(e),t)})),i}var r=i(2),a=i(16),o=a.get("stores/audience_data"),s=i(86),c=i(110),u=i(95),l=i(97);t.emitLayerDecided=function(e){var t=e.decisionTicket?e.decisionTicket.audienceIds:[],i=r.map(t,(function(e){return{id:e,name:o.get(e).name}})),n={type:c.TYPES.LIFECYCLE,name:"layerDecided",data:r.extend(e,{audiences:i})},a=l.translateLayerEventToCampaignEvent(n);s.emit(n),s.emit(a)},t.emitViewActivated=function(e){var t={type:c.TYPES.LIFECYCLE,name:"viewActivated",data:e},i=l.translateViewActivatedToPageActivated(t);s.emit(t),s.emit(i)},t.emitViewsActivated=function(e){var t={type:c.TYPES.LIFECYCLE,name:"viewsActivated",data:e};s.emit(t)},t.emitPageDeactivated=function(e){var t={type:c.TYPES.LIFECYCLE,name:"pageDeactivated",data:e};s.emit(t)},t.emitActivateEvent=function(){s.emit({type:c.TYPES.LIFECYCLE,name:"activate"},!0)},t.emitActivatedEvent=function(){s.emit({type:c.TYPES.LIFECYCLE,name:"activated"})},t.emitInitializedEvent=function(){var e={type:c.TYPES.LIFECYCLE,name:"initialized"};window.optimizely&&(window.optimizely.initialized=!0),s.emit(e)},t.emitOriginsSyncedEvent=function(){var e={type:c.TYPES.LIFECYCLE,name:"originsSynced"};s.emit(e)},t.emitActionAppliedEvent=function(e){var t={type:e.type,campaignId:e.layerId,pageId:e.pageId,experimentId:e.experimentId,variationId:e.variationId};u.defineProperty(t,"changes",(function(){return n(e).changeSet}),"actionAppliedEvent");var i={type:c.TYPES.ACTION,name:"applied",data:t};s.emit(i)},t.emitActionsForDecisionAppliedEvent=function(e,t){var i={decision:e};u.defineProperty(i,"actions",(function(){return r.map(t,n)}),"appliedAllForDecisionEvent");var a={type:c.TYPES.ACTION,name:"appliedAllForDecision",data:i};s.emit(a)},t.emitSendEvents=function(){var e={type:c.TYPES.ANALYTICS,name:"sendEvents"};s.emit(e)},t.emitHoldEvents=function(){var e={type:c.TYPES.ANALYTICS,name:"holdEvents"};s.emit(e)}}),(function(e,t,i){function n(){var e=Boolean(m.result(window.optimizely,"initialized"));w.dispatch(I.LOAD_DIRECTIVE,{alreadyInitialized:e})}function r(){w.dispatch(I.LOAD_DIRECTIVE,{mutationObserverAPISupported:N.isMutationObserverAPISupported()})}function a(){var e=N.getUserAgent()||"";if(!m.isString(e))return void R.warn("Directive / userAgent not a string");e=e.toLowerCase();var t=["googlebot","yahoo! slurp","bingbot","bingpreview","msnbot","keynote","ktxn","khte","gomezagent","alertsite","yottaamonitor","pingdom.com_bot","aihitbot","baiduspider","adsbot-google","mediapartners-google","applebot","catchpoint","phantomjs","moatbot","facebookexternalhit"],i=function(t){if(m.includes(e,t))return R.warn("Directive / Matches bot:",t),!0};m.some(t,i)&&(R.log("Directive / Disabling tracking"),w.dispatch(I.LOAD_DIRECTIVE,{trackingDisabled:!0}))}function o(){var e=S.get(A.COOKIES.OPT_OUT),t=b.getQueryParamValue(C.OPT_OUT),i="You have successfully opted out of Optimizely for this domain.",n="You are NOT opted out of Optimizely for this domain.",r="true"===t||"false"===t;if(r){var a="true"===t;w.dispatch(I.LOAD_DIRECTIVE,{shouldOptOut:a}),N.alert(a?i:n)}else e&&w.dispatch(I.LOAD_DIRECTIVE,{shouldOptOut:"true"===e})}function s(){var e=!1,t=[C.AB_PREVIEW,C.DISABLE];t.push(C.EDITOR);for(var i=0;i<t.length;i++)if("true"===b.getQueryParamValue(t[i])){R.warn("Directive / Not activating because "+t[i]+" is set."),e=!0;break}w.dispatch(I.LOAD_DIRECTIVE,{disabled:e})}function c(){w.dispatch(I.LOAD_DIRECTIVE,{isPreview:!1})}function u(){var e=b.getQueryParamValue(C.LEGACY_PREVIEW);e&&R.log("Directive / Is legacy preview mode"),w.dispatch(I.LOAD_DIRECTIVE,{isLegacyPreview:!!e})}function l(){w.dispatch(I.LOAD_DIRECTIVE,{isEditor:!1})}function d(){w.dispatch(I.LOAD_DIRECTIVE,{isSlave:!1})}function f(){var e=N.getGlobal("optlyDesktop"),t=!(!e||m.isUndefined(e["p13nInner"]));t&&R.log("Directive / Is running in desktop app editor"),w.dispatch(I.LOAD_DIRECTIVE,{isRunningInDesktopApp:t})}function g(){var e="true"===b.getQueryParamValue(C.EDITOR_V2);e&&R.log("Directive / Is running in editor"),w.dispatch(I.LOAD_DIRECTIVE,{isRunningInV2Editor:e})}function p(){var e=S.get(A.COOKIES.TOKEN)||null,t=b.getQueryParamValue(C.TOKEN)||e;w.dispatch(I.LOAD_DIRECTIVE,{projectToken:t})}function h(){var e=S.get(A.COOKIES.PREVIEW),t=[],i=b.getQueryParamValue(C.FORCE_AUDIENCES);if(i)t=S.safeDecodeURIComponent(i).split(",");else if(e)try{var n=O.parse(e);t=n.forceAudienceIds}catch(t){var r=new D("Failed to parse previewCookie in registerForceAudienceIds: "+e),a={originalMessage:t.message,userError:!0};y.emitError(r,a)}t.length&&(R.log("Directive / Force Audience IDs:",t),w.dispatch(I.LOAD_DIRECTIVE,{forceAudienceIds:t}))}function _(){var e=S.get(A.COOKIES.PREVIEW),t=[],i=b.getQueryParamValue(C.FORCE_VARIATIONS);if(i)t=S.safeDecodeURIComponent(i).split(",");else if(e)try{var n=O.parse(e);t=n.forceVariationIds}catch(t){var r=new D("Failed to parse previewCookie in registerForceVariationIds: "+e),a={originalMessage:t.message,userError:!0};y.emitError(r,a)}t.length&&(R.log("Directive / Force Variation IDs:",t),w.dispatch(I.LOAD_DIRECTIVE,{forceVariationIds:t}))}function v(){var e=b.getQueryParamValue(C.FORCE_TRACKING);e&&w.dispatch(I.LOAD_DIRECTIVE,{forceTracking:e})}function E(){var e="OFF",t=b.getQueryParamValue("optimizely_log");if(t){var i=t.split(":");""!==i[0]&&(e=String(i[0]).toUpperCase()),"undefined"!=typeof i[1]&&R.setLogMatch(i[1])}R.setLogLevel(e)}var m=i(2),I=i(7),y=i(85),S=i(74),T=i(75).create,A=i(25),w=i(9),R=i(23),D=t.JSONParseError=T("JSONParseError"),b=i(118),O=i(26),N=i(40),C={AB_PREVIEW:"optimizely_show_preview",DISABLE:"optimizely_disable",EDITOR:"optimizely_editor",EDITOR_V2:"optimizely_p13n",FORCE_AUDIENCES:"optimizely_x_audiences",FORCE_VARIATIONS:"optimizely_x",LEGACY_PREVIEW:"optimizely_show_preview",OPT_OUT:"optimizely_opt_out",PREVIEW_LAYER_IDS:"optimizely_preview_layer_ids",TOKEN:"optimizely_token",FORCE_TRACKING:"optimizely_force_tracking"};t.populateDirectiveData=function(){E(),a(),n(),r(),o(),s(),l(),c(),u(),d(),f(),g(),p(),h(),_(),v()};var P=31536e3;t.setOptOut=function(e){e?(R.warn("Directive / Opting out"),S.set(A.COOKIES.OPT_OUT,"true",{maxAge:10*P},!0)):S.remove(A.COOKIES.OPT_OUT),w.dispatch(I.LOAD_DIRECTIVE,{shouldOptOut:e})}}),(function(e,t,i){var n=i(83),r=i(40);t.getLanguage=function(){return r.getNavigatorLanguage()},t.getQueryParams=n.getQueryParams,t.getQueryParamValue=n.getQueryParamValue,t.getUrl=function(){return r.getHref()}}),(function(e,t,i){function n(e){return e&&e.engine?e.engine:_?"edge-tracking":h?"edge-helper":f.getClientName()}var r=i(2),a=i(75).BaseError,o=i(24),s=i(16),c=i(79),u=i(23),l=i(40),d=i(90),f=s.get("stores/client_metadata"),g=s.get("stores/global"),p="https://errors.client.optimizely.com",h=!1,_=!1;t.handleError=function(e,t){function i(){return d.request({url:p+"/log",method:"POST",data:v,contentType:"application/json"}).then((function(e){u.log("Error Monitor / Logged error with response: ",e)}),(function(e){u.error("Failed to log error, response was: ",e)}))}var s=e.name||"Error",h=e.message||"",_=e.stack||null;e instanceof a&&(h instanceof Error?(h=h.message,_=e.message.stack):_=null);var v={timestamp:o.now(),clientEngine:n(t),clientVersion:f.getClientVersion(),accountId:g.getAccountId(),projectId:g.getProjectId(),errorClass:s,message:h,stacktrace:_},E=r.map(g.getExperimental(),(function(e,t){return{key:"exp_"+t,value:String(e)}}));t&&r.forEach(t,(function(e,t){r.isObject(e)||E.push({key:t,value:String(e)})}),[]),r.isEmpty(E)||(v.metadata=E),u.error("Logging error",v),c.isLoaded()?i():l.addEventListener("load",i)}}),(function(e,t,i){var n=i(2);t.create=function(e,t,i,r){var a=n.extend({category:"other"},r,{id:e,apiName:t,eventType:i});return a}}),(function(e,t,i){var n=i(2),r=i(7),a=i(16),o=i(25),s=i(86),c=i(9);t.registerApiModule=function(e,t){n.isArray(t)&&(t=a.evaluate(t)),c.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.apiModules,name:e,plugin:t})},t.registerDependency=function(e,t){var i=a.get(e);i||a.register(e,t)},t.registerVisitorProfileProvider=function(e){c.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.visitorProfileProviders,name:e.provides,plugin:e})},t.registerViewProvider=function(e){c.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.viewProviders,name:e.provides,plugin:e})},t.registerAudienceMatcher=function(e,t){c.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.audienceMatchers,name:e,plugin:t})},t.registerViewMatcher=function(e,t){c.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.viewMatchers,name:e,plugin:t})},t.registerAnalyticsTracker=function(e,t){c.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.analyticsTrackers,name:e,plugin:t})},t.registerViewTagLocator=function(e,t){c.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.viewTagLocators,name:e,plugin:t})},t.registerAudiencePlugin=function(e){e.dependencies&&n.each(e.dependencies,(function(e,i){t.registerDependency(i,e)}));var i,r="vendor."+e.vendor;i=n.isString(e.provider)?a.get(e.provider)(e.vendor):n.isFunction(e.provider)?e.provider(e.vendor):n.cloneDeep(e.provider),t.registerVisitorProfileProvider(n.extend(i,{provides:r}));var o;o=n.isString(e.matcher)?a.get(e.matcher):e.matcher;var s={fieldsNeeded:[r],match:function(e,t){return o(e[r],t)}};t.registerAudienceMatcher(r,s)},t.registerWidget=function(e){n.isArray(e)&&(e=a.evaluate(e));var t=s.on({filter:{type:"showWidget",name:e.widgetId},handler:e.showFn}),i=s.on({filter:{type:"hideWidget",name:e.widgetId},handler:e.hideFn});return{showToken:t,hideToken:i}},t.registerChangeApplier=function(e,t){c.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.changeAppliers,name:e,plugin:t})},t.registerDecider=function(e,t){c.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.deciders,name:e,plugin:t})},t.registerEventImplementation=function(e,t){c.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.eventImplementations,name:e,plugin:t})},t.registerViewTrigger=function(e,t){c.dispatch(r.REGISTER_PLUGIN,{type:o.PluginTypes.viewTriggers,name:e,plugin:t})}}),(function(e,t,i){function n(e,t){r.forEach(e,(function(e){if(e.eventType!==d.CUSTOM){var i=_.getPlugin(l.PluginTypes.eventImplementations,e.eventType);i?t?i.attach(e):i.detach(e):g.warn("No implementation found for event type:",e.eventType,"needed for event:",e)}}))}var r=i(2),a=i(7),o=i(116),s=i(123),c=i(24),u=i(16),l=i(25),d=i(111),f=i(9),g=i(23),p=i(124),h=u.get("stores/event_data"),_=u.get("stores/plugins"),v=u.get("stores/rum"),E=u.get("stores/view"),m=u.get("stores/view_data");t.parseViewTags=function(e){var i=t.evaluateViewTags(e);t.setParsedViewTags(e.id,i)},t.updateAllViewTags=function(){var e=E.getActiveViewStates();r.each(e,(function(e){var i=m.get(e.id);t.parseViewTags(i)}))},t.evaluateViewTags=function(e){if(!e.tags)return{};var t=r.reduce(e.tags,(function(e,t){try{e[t.apiName]=p.getTagValue(t)}catch(e){e instanceof p.Error?g.warn("Page / Ignoring unparseable tag",t,e):g.error(e)}return e}),{});return t},t.createViewTicket=function(){var e={};return r.each(_.getAllPlugins(l.PluginTypes.viewProviders),(function(t){e[t.provides]=u.evaluate(t.getter)})),e},t.registerViews=function(e){f.dispatch(a.REGISTER_VIEWS,{views:e})},t.activateViaAPI=function(e,i){i&&t.setUserSuppliedViewTags(e.id,i),t.activateMultiple([e],i)},t.getViewsAndActivate=function(e){var i=m.getAllViewsForActivationType(e);t.activateMultiple(i)},t.activateMultiple=function(e,i){var s=[];return r.each(e,(function(e){var c,u=E.getViewState(e.id),d=t.createViewTicket();if(u.isActive)if(e.deactivationEnabled)try{t.hasValidStaticConditions(e,d)||t.deactivate(e)}catch(i){g.error("Page / Error evaluating whether to deactivate page ",t.description(e),i)}else g.log("Not activating Page, already active ",t.description(e));else{try{if(c=t.hasValidStaticConditions(e,d),!c)return r.isBoolean(u.isActive)||t.setViewActiveState(e,!1),void g.log("Page / Failed to match page conditions for "+t.description(e),e.staticConditions)}catch(i){return r.isBoolean(u.isActive)||t.setViewActiveState(e,!1),void g.error("Page / Error evaluating whether to activate page ",t.description(e),i)}if(s.push(e),t.setViewActiveState(e,!0),g.log("Activated Page",t.description(e)),o.emitViewActivated({view:e,metadata:i}),v.getSampleRum()){var p=e.activationType||l.ViewActivationTypes.immediate;f.dispatch(a.RECORD_ACTIVATION_TYPE_USAGE,{activationType:p,entityId:e.id})}var _=h.getByPageId(e.id);n(_,!0)}})),r.isEmpty(s)||o.emitViewsActivated({views:s}),s},t.deactivate=function(e){var i=E.getViewState(e.id);if(!i.isActive)return void g.log("Not deactivating Page, already inactive ",t.description(e));t.setViewActiveState(e,!1),g.log("Deactivated Page",t.description(e)),o.emitPageDeactivated({page:e});var r=h.getByPageId(e.id);n(r,!1)},t.setViewActiveState=function(e,t){f.dispatch(a.SET_VIEW_ACTIVE_STATE,{view:e,timestamp:c.now(),isActive:t})},t.setGlobalTags=function(e){f.dispatch(a.SET_GLOBAL_TAGS,e)},t.setParsedViewTags=function(e,t){f.dispatch(a.UPDATE_PARSED_VIEW_METADATA,{pageId:e,metadata:t})},t.setUserSuppliedViewTags=function(e,t){f.dispatch(a.UPDATE_USER_SUPPLIED_METADATA,{pageId:e,metadata:t})},t.hasValidStaticConditions=function(e,t){var i={};if(r.isEmpty(e.staticConditions))return!0;var n=_.getAllPlugins(l.PluginTypes.viewMatchers);g.groupCollapsed("Page / Evaluating staticConditions:",e.staticConditions),g.debug("Matching to current value:",t);var o=s.evaluate(e.staticConditions,(function(e){var r=e.type,a=n[r];if(!a)throw new Error("Page / No matcher found for type="+r);return a&&(i[e.type]||(i[e.type]=!0)),a.match(t,e)}));return g.groupEnd(),v.getSampleRum()&&o&&f.dispatch(a.RECORD_VIEW_FEATURE_USAGE,{featuresUsed:r.keys(i),entityId:e.id}),o},t.description=function(e){return'"'+e.name+'" ('+e.id+")"},t.isActivationTypeImmediate=function(e){return e===l.ViewActivationTypes.immediate||!e},t.shouldTriggerImmediately=function(e){return e===l.ViewActivationTypes.DOMChanged||e===l.ViewActivationTypes.URLChanged||e===l.ViewActivationTypes.immediate||!e},t.create=function(e,t){var i={id:e,apiName:t,category:"other"};return i},t.createState=function(e){var t={id:e,isActive:!0,metadata:{},parsedMetadata:{},userSuppliedMetadata:{}};return t}}),(function(e,t,i){function n(e,t){for(var i,n,r=0;r<e.length;r++){if(i=o(e[r],t),i===!1)return!1;s.isUndefined(i)&&(n=!0)}if(!n)return!0}function r(e,t){for(var i,n=!1,r=0;r<e.length;r++){if(i=o(e[r],t),i===!0)return!0;s.isUndefined(i)&&(n=!0)}if(!n)return!1}function a(e,t){if(1!==e.length)return!1;var i=o(e[0],t);return s.isUndefined(i)?void 0:!i}function o(e,t){var i;if(s.isArray(e)){var n,r;e[0]in d?(n=e[0],r=e.slice(1)):(n=l.OR,r=e),u.groupCollapsed('Condition / Applying operator "'+n+'" with args',c.stringify(r));try{i=d[n](r,t),u.debug("Condition / Result:",i)}finally{u.groupEnd()}return i}return i=t(e),u.debug("Condition / Evaluated:",c.stringify(e),":",i),i}var s=i(2),c=i(26),u=i(23),l={AND:"and",OR:"or",NOT:"not"},d={};d[l.AND]=n,d[l.OR]=r,d[l.NOT]=a,e.exports={evaluate:o}}),(function(e,t,i){var n=i(25).PluginTypes,r=i(16),a=r.get("stores/plugins");t.getTagValue=function(e){var i=a.getPlugin(n.viewTagLocators,e.locatorType);if(!i)throw new t.Error("No locator registered for tag locatorType: "+e.locatorType);return i(e)},t.enums=i(125),t.Error=i(126).Error}),(function(e,t){t.locatorType={CSS_SELECTOR:"css_selector",JAVASCRIPT:"javascript",URL_REGEX:"url_regex"},t.valueType={STRING:"string",NUMBER:"number",CURRENCY:"currency"},t.nodeNames={INPUT:"INPUT",SELECT:"SELECT"}}),(function(e,t,i){var n=i(75).create;t.Error=n("TagError")}),(function(e,t){}),(function(e,t,i){var n=i(16);n.register("env/jquery",i(129))}),(function(e,t,i){var n,r=i(40);try{n=$}catch(e){}var a=r.getGlobal("$");n&&n!==a?e.exports=n:e.exports=a}),(function(e,t,i){var n=i(23),r=i(40),a="optimizelyDataApi";t.registerFunction=function(e,t){var i=r.getGlobal(a);i||(i={},r.setGlobal(a,i)),i[e]||(i[e]=t)},t.unregisterFunction=function(e){var t=r.getGlobal(a);t&&t[e]&&(t[e]=function(){n.log('Ignoring attempt to call "'+a+"."+e+'" which has been unregistered.')})},t.getFunction=function(e){return r.getGlobal(a)[e]}}),(function(e,t,i){var n=i(79),r=i(23),a=i(90);t.addScriptAsync=function(e,t){var i=n.querySelector("head"),a=n.createElement("script");a.type="text/javascript",a.async=!0,a.src=e,t&&(a.onload=t),i.insertBefore(a,i.firstChild),r.debug("Asynchronously requesting "+e)},t.addScriptSync=function(e,i){try{var o="optimizely_synchronous_script_"+Math.floor(1e5*Math.random());if(e.indexOf('"')!==-1)return void r.error("Blocked attempt to load unsafe script: "+e);n.write('<script id="'+o+'" src="'+e+'"></script>');var s=n.querySelector("#"+o);if(!s)throw new Error("Document.write failed to append script");s.onload=i,s.onerror=function(n){r.warn("Failed to load script ("+e+") synchronously:",n),t.addScriptAsync(e,i)}}catch(n){r.debug("Document.write failed for "+e+": "+n.message);var c=function(e){var t=new Function(e.responseText);t(),i&&i()};return a.request({url:e,async:!1,contentType:"text/plain",success:c})["catch"]((function(n){r.error("Failed to load "+e+" via synchronous XHR: "+n.message),t.addScriptAsync(e,i)}))}}}),(function(e,t,i){function n(){var e=null;w.isNumber(e)&&0===ge.getCount()?(W.log("Activating after delay of",e,"ms because no Experiments are running"),K.dispatch(N.SET_RUM_DATA,{data:{activateDfd:!0}}),oe.setTimeout(P.emitActivateEvent,e)):P.emitActivateEvent()}function r(e){we.handleError(e.data.error,e.data.metadata)}function a(){w.isArray(window.optimizely)&&(window.optimizely=w.filter(window.optimizely,(function(e){var t=!0;return!Ae.push(e,t)})))}function o(){var e=i(84),n=!!ae.getCurrentId(),r=!!n&&ae.hasSomeData();n?r?W.log("xd / Existing visitor; has data on this origin"):W.log("xd / Existing visitor; new to this origin"):W.log("xd / New visitor");var a=fe.getAccountId(),o="https://a6931781924.cdn.optimizely.com".replace("__SUBDOMAIN__","a"+a+"."),c="/client_storage/a"+a+".html";e.subscribe((function(e,t){ae.checkKeyForVisitorId(e)&&q.setItem(e,t)}));var u=e.fetchAll().then((function(t){if(!ye.getVisitorIdLocator()){var i=Te.getCanonicalOrigins();if(i){var n=e.getXDomainUserId(t,i);n&&(W.log("Syncing cross-origin visitor randomId:",n),ae.maybePersistVisitorId({randomId:n}))}}return ae.deleteOldForeignData(),t})).then(t.persistItemsWithId).then((function(e){if(ae.loadForeignData(),n&&!r){var t=!w.isEmpty(e);W.debug("xd / Loaded foreign data? ",t),s(t)}W.log("Loaded visitor data from foreign origins"),P.emitOriginsSyncedEvent()}),(function(e){throw n&&!r&&(W.debug("xd / Failed to load foreign data:",e),s(!1,e)),e}));return Z.all([e.load(o,c)["catch"]((function(e){throw W.debug("xd / Failed to load iframe:",e),n&&!r&&s(!1,e),e})),u["catch"]((function(e){W.debug("xd / Ignored error syncing foreign data (expected if waitForOriginSync used):",e.message),W.debug("xd / Enqueuing sync to happen after visitorId set."),K.dispatch(N.ADD_CLEANUP_FN,{lifecycle:B.Lifecycle.postVisitorProfileLoad,cleanupFn:P.emitOriginsSyncedEvent})}))])}function s(e,t){K.dispatch(N.SET_RUM_DATA,{data:{extras:{xdAttempt:e,xdError:t?t.toString():void 0}}})}function c(e){var t=Ee.getVisitorProfile();return ae.populateEagerVisitorData(e,t)}function u(e,t,i){e=e||[];var n=_e.getAllPlugins(B.PluginTypes.visitorProfileProviders),r=fe.getGlobalHoldbackThreshold(),a=Ee.getVisitorProfile();ae.populateLazyVisitorData(n,a);var o=ye.getBucketingId();if(!o)throw new Error("bucketingId not set");var s,c=Ee.getVisitorProfile();if(t&&!Oe){var u=Se.getVariationIdMap();s=u[t.id]}var l={bucketingId:o,visitorProfile:c,audiences:e,globalHoldback:r,preferredVariationMap:s,layer:t};return t&&i&&F.isPageIdRelevant(t)?w.map(i,(function(e){return F.createTicket(w.extend({},l,{pageId:e}))})):[F.createTicket(l)]}function l(e){var i=ge.getAllByPageIds(e),n=de.getForceVariationIds(),r=de.getForceAudienceIds(),a=!w.isEmpty(n);a&&W.log("Force variations are in use. Disabling mutual exclusivity.");var o={individual:i};W.log("Deciding Campaigns/Experiments for Page(s)",e);var s=w.map(o.individual,Y.description).join(", ");W.log("Campaigns/Experiments not in Groups (by Campaign id):",s);var c=[],u=w.map(o.individual,(function(i){var a=w.filter(i.pageIds,w.partial(w.includes,e));return t.decideAndExecuteLayerASAP(n,r,a,i)})),l=c.concat(u);return Z.all(l).then((function(t){var i=w.filter(t,(function(e){return!!e}));return W.log("All Campaigns/Experiments for Page(s) (by Campaign id)",e,"resolved:",w.map(i,Y.description).join(", ")),i}))}function d(e,t,i,n){return new Z(function(r,a){try{_(n,e,t,i,(function(a){w.each(a,(function(r){var a=r.pageId?[r.pageId]:i;W.debug("Deciding layer: ",n,"with decisionTicket: ",r,"and actionViewIds: ",a),f(n,e,t,a,r)})),r(n)}))}catch(e){W.error("Error getting decision for Campaign: "+Y.description(n),e),a(e)}})}function f(e,i,n,r,a){var o=Y.description(e);W.log("Activating Campaign",o,"on Page(s)",r),n.length&&(W.log("Applying force audienceIds:",n,"to Campaign",o),a=w.cloneDeep(a),a.audienceIds=n);var s=t.decideLayer(e,a,i),c=!(!i.length&&!n.length),u=t.getActionsForDecision(e,s,c),l=A(u.actions,r);if(u.maybeExecute&&g(l,e,s,r),w.forEach(r,(function(){C.trackDecisionEvent(s,a)})),P.emitLayerDecided({layer:e,decisionTicket:a,decision:s}),s.error)throw s.error;if(ve.getSampleRum()){K.dispatch(N.RECORD_LAYER_POLICY_USAGE,{policy:e.policy,layerId:e.id});var d=h(u.actions);K.dispatch(N.RECORD_CHANGE_TYPE_USAGE,{changeTypes:w.keys(d),layerId:e.id}),w.isEmpty(e.integrationSettings)||K.dispatch(N.RECORD_INTEGRATION_USAGE,{integrations:Y.getIntegrationTypes(e),layerId:e.id})}return F.isInCohort(s)?void(u.maybeExecute&&p(l,e,s,r)):void W.log("Not activating Campaign: "+Y.description(e)+"; not in the cohort because:",s.reason)}function g(e,t,i,n){var r=Y.description(t);W.log("Preparing actions",e,"for Campaign",r,"on Page(s)",n),w.forEach(e,O.prepareAction)}function p(e,t,i,n){var r=Y.description(t);return W.log("Executing actions",e,"for Campaign",r,"on Page(s)",n),Z.all(w.map(e,(function(e){return O.executePreparedAction(e).then(w.partial(P.emitActionAppliedEvent,e))}))).then((function(){W.log("All page actions for",i,"applied:",e),P.emitActionsForDecisionAppliedEvent(i,e)}))["catch"]((function(e){W.warn("Error evaluating page actions for decision",i,"because:",e)}))}function h(e){var t={};return w.each(e,(function(e){w.each(e.changeSet,(function(e){t[e.type]||(t[e.type]=!0)}))})),t}function _(e,t,i,n,r){if(t.length||i.length)return void r(u([],void 0,n));var a=Y.relatedAudienceIds(e),o=w.reduce(a,(function(e,t){var i=ce.get(t);return i&&e.push(i),e}),[]),s=_e.getAllPlugins(B.PluginTypes.audienceMatchers);if(ve.getSampleRum()){var c={};if(w.each(o,(function(e){w.extend(c,v(e.conditions,s))})),!w.isEmpty(c)){var l=w.keys(c);K.dispatch(N.RECORD_AUDIENCE_USAGE,{audienceTypes:l,layerId:e.id})}}I(o,s,Y.getActivationTimeout(e),(function(){var t=u(o,e,n);w.map(t,(function(t){E(t,o,e)})),r(t)}))}function v(e,t){var i={};return w.each(e,(function(e){w.isArray(e)?w.extend(i,v(e,t)):w.isObject(e)&&t[e.type]&&(i[e.type]=!0)})),i}function E(e,t,i){var n=w.map(e.audienceIds,w.bind(ce.get,ce)),r=w.filter(t,(function(t){return!w.includes(e.audienceIds,t.id)}));W.log("When deciding Campaign",Y.description(i),"visitor is in audiences:",m(n),"and not in audiences:",m(r))}function m(e){var t=[];return w.each(e,(function(e){t.push(e.name,e)})),t}function I(e,t,i,n){var r=w.reduce(e,(function(e,i){return w.extend(e,L.requiredAudienceFieldsForConditions(i.conditions,t))}),{}),a=w.reduce(r,(function(e,t){if(w.isUndefined(ae.getAttribute(t))){var i=ae.getPendingAttributeValue(t);w.isUndefined(i)||e.push(i)}return e}),[]);if(0===a.length)return n();var o=[].concat(e),s=ee.firstToResolve(w.map(a,(function(e){return Z.resolve(e).then((function(){var e=Ee.getVisitorProfile();if(o=w.filter(o,(function(i){return w.isUndefined(L.isInAudience(e,i,t))})),!w.isEmpty(o))throw new Error("At least one audience is still pending")}))})));Z.race([s,new Z(function(e,t){oe.setTimeout(t,i)})]).then((function(){W.log("Activating Campaign after pending Audiences resolved",e),n()}),(function(){W.log("Activating Campaign after timeout on Audiences",e),n()}))}function y(e,t,i){var n,r=Y.description(e);return n=i.length?F.getDummyLayerDecision(e,i):F.decideLayer(e,t),W.log("Recording decision for Campaign",r,t,"->",n),Y.recordLayerDecision(e.id,t,n),Oe||n.variationId&&n.experimentId&&ae.updateVariationIdMap(e.id,n.experimentId,n.variationId),n}function S(e){var t=le.getCleanupFns(e);if(t.length>0){for(;t.length>0;)t.shift()();K.dispatch(N.CLEAR_CLEANUP_FN,{lifecycle:e})}}function T(e,t,i){var n=Y.description(e),r="NOT applying changes for Campaign",a={actions:[],maybeExecute:!1};return a.actions=[].concat(ue.getLayerActions(t.layerId)||[],ue.getExperimentActions(t.experimentId)||[],ue.getExperimentVariationActions(t.experimentId,t.variationId)||[]),!i&&fe.isGlobalHoldback()?(W.log(r,n,"(visitor is in global holdback)"),a):t.isLayerHoldback?(W.log(r,n,"(visitor is in layer holdback)"),a):t.experimentId&&t.variationId?(a.maybeExecute=!0,W.log("Got Actions for Campaign:",n,a.actions),a):(W.log(r,n,"(visitor is not eligible for any Experiments)"),a)}function A(e,t){return w.filter(e,(function(e){return w.isUndefined(e.pageId)||w.includes(t,e.pageId)}))}var w=i(2),R=i(75).create,D=t.ActivationCodeError=R("ActivationCodeError"),b=t.ProjectJSError=R("ProjectJSError"),O=i(133),N=i(7),C=i(109),P=i(116),L=i(137),V=i(85),k=i(108),x=i(24),F=i(138),M=i(16),U=i(117),G=i(79),B=i(25),z=i(86),j=i(110),H=i(143),K=i(9),Y=(i(142),i(112)),q=i(80).LocalStorage,W=i(23),X=i(144),Q=i(82),$=i(121),J=i(87),Z=i(12).Promise,ee=i(145),te=i(113),ie=i(115),ne=i(135),re=i(122),ae=i(73),oe=i(40),M=i(16),se=M.get("stores/session"),ce=M.get("stores/audience_data"),ue=M.get("stores/action_data"),le=M.get("stores/cleanup"),de=M.get("stores/directive"),fe=M.get("stores/global"),ge=(M.get("stores/group_data"),M.get("stores/layer_data")),pe=M.get("stores/layer"),he=M.get("stores/pending_events"),_e=M.get("stores/plugins"),ve=M.get("stores/rum"),Ee=M.get("stores/visitor"),me=M.get("stores/view_data"),Ie=M.get("stores/view"),ye=M.get("stores/visitor_id"),Se=M.get("stores/visitor_bucketing"),Te=M.get("stores/xdomain"),Ae=i(92),we=i(119),Re=i(1),De=1e3,be=!1,Oe=!1,Ne=!1,Ce=Oe||Ne,Pe=1e3,Le=t; t.initialize=function(e){return this.initGlobalStore(e.clientData),this.initializePlugins(e.plugins)},t.initGlobalStore=function(e){var e=e;k.normalizeClientData(e),z.on({filter:{type:"error"},handler:r}),K.dispatch(N.DATA_LOADED,{data:e}),W.log("Initialized with DATA:",e)},t.initializePlugins=function(e){if(a(),U.setOptOut(de.shouldOptOut()),de.isDisabled()||de.shouldOptOut())return void W.log("Controller / Is disabled");if(Re.queueBeacons(),G.isReady()?K.dispatch(N.SET_DOMCONTENTLOADED):G.addReadyHandler((function(){K.dispatch(N.SET_DOMCONTENTLOADED)})),!Ce){Q.time("projectJS");var i=fe.getProjectJS();if(w.isFunction(i))try{H.apply(i)}catch(e){W.error("Error while executing projectJS: ",e),V.emitError(new b(e))}Q.timeEnd("projectJS")}w.each(e||[],(function(e){try{e($)}catch(e){V.emitInternalError(e)}})),w.each(fe.getPlugins()||[],(function(e){try{H.apply(e,[$])}catch(e){V.emitError(e)}})),te.load();var r=z.on({filter:{type:"lifecycle",name:"activated"},handler:function(){Ee.observe(ae.persistVisitorProfile),pe.observe(ae.persistLayerStates),se.observe(ae.persistSessionState),he.observe(X.persistPendingEvents),Oe||Se.observe(ae.persistVisitorBucketingStore),z.off(r)}});z.on({filter:{type:"lifecycle",name:"viewsActivated"},handler:t.onViewsActivated}),z.on({filter:{type:"lifecycle",name:"pageDeactivated"},handler:t.onPageDeactivated}),t.initializeApi();var o=X.getPendingEvents();if(o&&(K.dispatch(N.LOAD_PENDING_EVENTS,{events:o}),X.retryPendingEvents(o)),z.on({filter:{type:"lifecycle",name:"activate"},handler:t.activate}),P.emitInitializedEvent(),!de.shouldActivate())return Z.resolve();var s=[];if(Te.isDisabled())n();else{var c=t.initializeXDomainStorage();s.push(c);var u=Boolean(Te.getCanonicalOrigins());if(u){var l=ie.makeTimeoutPromise(Pe);Z.race([c,l])["catch"]((function(e){W.error("Failed to initialize xDomain storage: ",e)})).then(n)["catch"](we.handleError)}else n()}return Z.all(s)},t.activate=function(){try{var e=[];W.log("Activated client"),S(B.Lifecycle.preActivate);var t=x.now();K.dispatch(N.ACTIVATE,{activationId:String(t),activationTimestamp:t});var i=me.getAll();re.registerViews(i),ae.setId(ae.getOrGenerateId()),e.push(C.trackPostRedirectDecisionEvent()),K.dispatch(N.MERGE_VARIATION_ID_MAP,{variationIdMap:ae.getVariationIdMap()}),S(B.Lifecycle.postVisitorProfileLoad),e.push(c(_e.getAllPlugins(B.PluginTypes.visitorProfileProviders)).then((function(){W.log("Populated visitor profile")})));var n=u(),r=F.decideGlobal(n);W.log("Made global decision",n,"->",r),K.dispatch(N.RECORD_GLOBAL_DECISION,r);var a=C.trackClientActivation();a?W.log("Tracked activation event",a):W.log("Not tracking activation event");var o=Le.setUpViewActivation(i),s=[];return be?s=re.activateMultiple(o):w.each(o,(function(e){s=s.concat(re.activateMultiple([e]))})),Oe&&ve.getSampleRum()&&K.dispatch(N.RECORD_VIEWS_INITIALLY_ACTIVATED_COUNT,{viewsInitiallyActivatedCount:s.length}),S(B.Lifecycle.postViewsActivated),S(B.Lifecycle.postActivate),P.emitActivatedEvent(),Z.all(e).then((function(){z.emit({type:j.TYPES.LIFECYCLE,name:"activateDeferredDone"}),W.log("All immediate effects of activation resolved")}),V.emitError)}catch(e){return V.emitError(e),Z.reject(e)}},Le.setUpViewActivation=function(e){var t=[];return w.each(e,(function(e){w.isBoolean(Ie.getViewState(e.id).isActive)&&re.isActivationTypeImmediate(e.activationType)?W.debug("Skipping page: already evaluated, presumably at the edge",re.description(e)):re.shouldTriggerImmediately(e.activationType)?t.push(e):e.activationType===B.ViewActivationTypes.callback?(W.debug("Setting up conditional activation for Page",re.description(e)),Le.activateViewOnCallback(e)):e.activationType===B.ViewActivationTypes.polling?(W.debug("Setting up polling activation for Page",re.description(e)),J.pollFor(w.partial(H.apply,e.activationCode),null,w.partial(ne.isTimedOut,x.now())).then((function(){re.activateMultiple([e])}))["catch"]((function(t){W.warn("Failed to activate view ",e,t)}))):e.activationType!==B.ViewActivationTypes.manual&&V.emitError(new Error("Unknown view activationType: "+e.activationType))})),t},Le.activateViewOnCallback=function(e){var t=function(t){var i=w.extend({},t,{pageName:e.apiName,type:"page"});Ae.push(i)},i={pageId:e.id};Object.defineProperty(i,"isActive",{get:function(){return Ie.isViewActive(e.id)}});try{H.apply(e.activationCode,[t,i])}catch(t){var n=new D("("+t.toString()+") in activationCode for "+re.description(e));V.emitError(n,{originalError:t,userError:!0})}},t.onViewsActivated=function(e){var t,i=e.data.views,n=w.map(i,"id");try{if(!ye.getBucketingId())throw new Error("View activated with no visitorId set");var r=l(n)["catch"](V.emitError);return t=Z.all(w.map(i,(function(e){var t=function(){re.parseViewTags(e);var t=C.trackViewActivation(e);t?W.log("Tracked activation for Page",re.description(e),t):W.log("Not Tracking activation for Page",re.description(e))};return G.isReady()?Z.resolve(t()):J.pollFor(G.isReady,De).then(t)}))),Z.all([r,t])}catch(e){V.emitError(e)}},t.onPageDeactivated=function(e){var t=e.data.page,i=ue.getAllActionIdsByPageId(t.id);w.each(i,(function(e){var i=ue.getActionState(e);i&&(w.each(i,(function(e,i){if(e.cancel)try{e.cancel(),W.debug("Controller / Canceled change",i,"observation due to deactivation of page:",t)}catch(e){W.error("Controller / Error canceling change",i,"observation upon deactivation of page.",e)}if(t.undoOnDeactivation&&e.undo)try{e.undo(),W.debug("Controller / Undid change",i,"due to deactivation of page:",t)}catch(e){W.error("Controller / Error undoing change upon deactivation of page.",e)}})),K.dispatch(N.REMOVE_ACTION_STATE,{actionId:e}),W.debug("Controller / Undid changes and/or canceled change observation due to deactivation of page:",t,e))}))},t.initializeApi=function(){var e={push:Ae.push};Ne||(e.get=Ae.get);var t=window.optimizely;w.isArray(t)&&w.each(t,(function(t){e.push(t)})),e.data={note:"Obsolete, use optimizely.get('data') instead"},e.state={},window.optimizely=e},t.persistItemsWithId=function(e){return w.each(e,(function(e,t){ae.checkKeyForVisitorId(t)&&q.setItem(t,e)})),e},t.initializeXDomainStorage=o,t.decideAndExecuteLayerASAP=d,t.decideLayer=y,t.getActionsForDecision=T}),(function(e,t,i){function n(e,t,i){var n=v.getActionState(t.id);if(!n)return void g.warn("Action / Attempted to prepare change for inactive action: ",t);var r=v.getChangeApplier(e.id,t.id);if(!a.isUndefined(r))return void g.warn("Action / Attempted to prepare a change which is already being applied: ",e);var s={changeId:e.id,actionId:t.id,changeApplier:I.create(e,t,i)};f.dispatch(o.SET_CHANGE_APPLIER,s)}function r(e,t,i,o){if(a.includes(o,t))return void g.error("Change with id "+t+" has circular dependencies: "+o.concat(t));if(!e[t]){var u=E.getChange(t);if(!u){var d="Change with id "+t+" is absent";return o.length&&(d+=" but listed as a dependency for "+o[o.length-1]),void g.warn(d)}e[t]=new p(function(d){var f=a.map(u.dependencies||[],(function(n){return r(e,n,i,o.concat([t]))}));if(u.src){var _="change_"+u.src,m=c.makeAsyncRequest(_,(function(){return h.addScriptAsync("https://cdn.optimizely.com/public/6931781924/data"+u.src,(function(){c.resolveRequest(_)}))})).then((function(){var e=E.getChange(u.id);e||s.emitError(new S("Failed to load async change from src: "+u.src)),n(e,i,l.now())}));f.push(m)}p.all(f).then((function(){var e=l.now(),n=v.getChangeApplier(t,i.id);return n?(g.debug("Action / Applying change:",u),n.apply().then((function(t){t?g.log(t):g.debug("Action / Applied change for the first time in "+(l.now()-e)+"ms:",u),d()}))):(g.debug("Action / Not applying change ",t," - No changeApplier found."),void d())}))["catch"]((function(e){g.error("Action / Failed to apply change:",u,e),d()}))})}return e[t]}var a=i(2),o=i(7),s=i(85),c=i(6),u=i(75).create,l=i(24),d=i(16),f=i(9),g=i(23),p=i(12).Promise,h=i(131),_=d.get("stores/global"),v=d.get("stores/action_data"),E=d.get("stores/change_data"),m=d.get("stores/session"),I=i(134),y=i(135);y.initialize();var S=u("ActionError");t.prepareAction=function(e){g.debug("Action / Preparing:",e),f.dispatch(o.ACTION_EXECUTED,{actionId:e.id,sessionId:m.getSessionId(),layerId:e.layerId,pageId:e.pageId,timestamp:l.now(),activationId:_.getActivationId()});var t=l.now();a.forEach(e.changeSet,(function(i){var r=a.isObject(i)?i.id:i,s=E.getChange(r);s||(f.dispatch(o.ADD_CHANGE,i),s=E.getChange(i.id)),s.src||n(s,e,t)}))},t.executePreparedAction=function(e){g.debug("Action / Executing:",e);var t={},i=a.map(e.changeSet,(function(i){var n=a.isObject(i)?i.id:i;return r(t,n,e,[])}));return p.all(i).then((function(){g.debug("changes for action id="+e.id+" applied")}))}}),(function(e,t,i){var n=i(13).Promise,r=i(24),a=i(16),o=a.get("stores/plugins"),s=i(25),c=i(23);t.create=function(e,t,i){var a={identifier:e.id,action:t,startTime:i||r.now()};try{var u=o.getPlugin(s.PluginTypes.changeAppliers,e.type);if(!u)throw new Error("Unrecognized change type "+e.type);return new u(e,a)}catch(e){c.error("Change applier was never properly constructed:",e);var l={apply:function(){return n.reject(e)}};return l}}}),(function(e,t,i){function n(){"interactive"!==document.readyState&&"complete"!==document.readyState||(t.domReadyTime=Date.now())}var r=i(136),a=i(16).get("stores/directive");t.domReadyTime=null,t.initialize=function(){n(),document.addEventListener("readystatechange",n,!0)},t.isTimedOut=function(e){var i=Date.now();if(!t.domReadyTime||!e)return!1;var n=Math.max(e,t.domReadyTime);return a.isEditor()&&(n=t.domReadyTime),!(i-n<r.SELECTOR_POLLING_MAX_TIME)}}),(function(e,t){e.exports={SELECTOR_POLLING_MAX_TIME:2e3,CHANGE_DATA_KEY:"optimizelyChangeData",CHANGE_ID_ATTRIBUTE_PREFIX:"data-optly-"}}),(function(e,t,i){function n(e,t){return function(i){var n=i.type,a=t[n];if(!a)throw new Error("Audience / No matcher found for type="+n);if(a.fieldsNeeded)for(var s=r(a.fieldsNeeded,i),l=0;l<s.length;l++){var d=s[l],f=c.getFieldValue(e,d);if(o.isUndefined(f))return void u.debug("Audience / Required field",d,"for type",n,"has no value")}u.debug("Matching condition:",i,"to values:",e);var g=a.match(e,i);if(!o.isUndefined(g))return!!g}}function r(e,t){var i="function"==typeof e?e(t):e;return o.isString(i)&&(i=[i]),o.isArray(i)?i:(u.warn("Couldn't determine fieldsNeeded for matcher; assuming []"),[])}function a(e){return e.name?e.name+" ("+e.id+")":e.id}var o=i(2),s=i(123),c=i(19),u=i(23),l=i(73);t.isInAudience=function(e,t,i){var r=n(e,i);u.groupCollapsed("Checking audience",t.name,t.id,t),u.debug("Visitor Profile:",e);var o;try{var c=s.evaluate(t.conditions,r)}catch(e){o=e,c=!1}return u.groupEnd(),o&&u.error("Audience / Error evaluating audience",a(t),":",o),u.log("Is "+(c?"in":"NOT in")+" audience:",a(t)),c},t.requiredAudienceFieldsForConditions=function e(t,i){var n={};return o.each(t,(function(t){if(o.isArray(t))o.extend(n,e(t,i));else if(o.isObject(t)){var a=i[t.type];if(a){var s=r(a.fieldsNeeded,t);o.each(s,(function(e){n[l.serializeFieldKey(e)]=e}))}}})),n}}),(function(e,t,i){function n(e,t){for(var i=0;i<e.experiments.length;i++)for(var n=0;n<e.experiments[i].variations.length;n++)if(t.indexOf(e.experiments[i].variations[n].id)>-1)return{experimentId:e.experiments[i].id,variationId:e.experiments[i].variations[n].id};return null}function r(e){var t=v.getPlugin(g.PluginTypes.deciders,e);if(o.isEmpty(t))throw new Error("No deciders found for policy: "+e);return t}function a(e,t){var i=v.getAllPlugins(g.PluginTypes.audienceMatchers);return o.reduce(t,(function(t,n){return c.isInAudience(e,n,i)&&t.push(n.id),t}),[])}var o=i(2),s=(i(7),i(85)),c=i(137),u=i(139),l=i(140),d=i(141).DecisionError,f=i(16),g=i(25),p=(i(9),i(142),i(112)),h=i(23),_=i(44),v=f.get("stores/plugins"),E=f.get("stores/global"),m=f.get("stores/layer_data");t.isPageIdRelevant=function(e){if(!e)return!1;var t=r(e.policy);return o.isFunction(t.includePageIdInDecisionTicket)?t.includePageIdInDecisionTicket(e):t.includePageIdInDecisionTicket===!0},t.createTicket=function(e){var t=o.pick(e,["bucketingId","globalHoldback","preferredVariationMap","pageId"]);return o.extend(t,{audienceIds:a(e.visitorProfile,e.audiences),activationId:E.getActivationId()}),t},t.decideGlobal=function(e){var t=u.isHoldback(e.bucketingId,{id:null,holdback:e.globalHoldback});return{isGlobalHoldback:t}},t.decideLayer=function(e,t){h.debug("Deciding: ",e,t);var i,n,a=r(e.policy),c={layerId:e.id,experimentId:null,variationId:null,isLayerHoldback:u.isHoldback(t.bucketingId,e)};if(o.isEmpty(e.experiments))throw new d("No experiments in layer.");try{if(a.decideLayer){h.debug("Decision / Using decider's custom decideLayer.");var f=a.decideLayer(e,t);i=f.experiment,n=f.variation}else h.debug("Decision / Using default decideLayer behavior."),i=a.selectExperiment(e,t.audienceIds,t.bucketingId),n=l.selectVariation(i,t.audienceIds,t.bucketingId,t.activationId,t.preferredVariationMap)}catch(e){e instanceof d?c.reason=e.message:c.error=e}return c.experimentId=i?i.id:null,c.variationId=n?n.id:null,c.error&&(c.error.name="DecisionEngineError",s.emitError(c.error)),c},t.getDummyLayerDecision=function(e,t){var i,r=n(e,t);return r?(h.log("Decision / Applying force variation:",r.variationId,"to Campaign",p.description(e)),i={layerId:e.id,variationId:r.variationId,experimentId:r.experimentId,isLayerHoldback:!1,reason:"force"}):(h.log("No variation matches ids:",t,"in Campaign",p.description(e)),i={layerId:e.id,variationId:null,experimentId:null,isLayerHoldback:!1,reason:"force"}),i},t.isInCohort=function(e){if(!e.experimentId||!e.variationId)return!1;var t=m.get(e.layerId);return!(_.isSingleExperimentPolicy(t.policy)&&e.isLayerHoldback)}}),(function(e,t,i){var n=i(64),r=t.TOTAL_POINTS=1e4;t.bucketingNumber=function(e,t,i){var a=n.hashToInt(e+t,i,r);return a},t.isHoldback=function(e,i){return t.bucketingNumber(e,i.id,n.Seed.IGNORING)<(i.holdback||0)},t.chooseWeightedCandidate=function(e,i,r){for(var a=t.bucketingNumber(e,i,n.Seed.BUCKETING),o=0;o<r.length;o++)if(r[o].endOfRange>a)return r[o].entityId;throw new Error("Unable to choose candidate")}}),(function(e,t,i){var n=i(2),r=i(7),a=i(139),o=i(123),s=i(141).DecisionError,c=i(9),u=i(23),l="impression";t.isValidExperiment=function(e,t){var i,r=n.partial(n.includes,e);return u.groupCollapsed("Decision / Evaluating audiences for experiment:",t,e),i=!t.audienceIds||o.evaluate(t.audienceIds,r),u.groupEnd(),u.debug("Decision / Experiment",t,"is valid?",i),i},t.selectVariation=function(e,t,i,o,d){if(!e.variations||0===e.variations.length)throw new s('No variations in selected experiment "'+e.id+'"');if(!e.weightDistributions&&e.variations.length>1)throw new s('On selected experiment "'+e.id+'", weightDistributions must be defined if # variations > 1');var f;if(e.bucketingStrategy&&e.bucketingStrategy===l)if(1===e.variations.length)f=e.variations[0].id;else{var g=o;f=a.chooseWeightedCandidate(i+g,e.id,e.weightDistributions)}else if(f=1===e.variations.length?e.variations[0].id:a.chooseWeightedCandidate(i,e.id,e.weightDistributions),d&&d[e.id]){u.debug("Decision / Using preferredVariationMap to select variation for experiment:",e.id);var p=d[e.id];if(!n.find(e.variations,{id:p}))return c.dispatch(r.RECORD_STICKY_BUCKETING_FEATURE,{feature:"stoppedVariation",id:e.id}),u.debug("Decision / Preferred variation:",p,"not found on experiment:",e.id,". Visitor not bucketed."),null;p!==f&&(c.dispatch(r.RECORD_STICKY_BUCKETING_FEATURE,{feature:"preferredVariation",id:e.id}),f=p)}var h=n.find(e.variations,{id:f});if(h)return u.debug("Decision / Selected variation:",h),h;throw new s('Unable to find selected variation: "'+f+'".')},t.getExperimentById=function(e,t){var i=n.find(e.experiments,{id:t});if(i)return i;throw new s("Unable to find selected experiment.")},t.hasVariationActionsOnView=function(e,t){return u.debug("Decision / Checking variation:",e,"for actions on pageId:",t),!!n.find(e.actions,(function(e){return e.pageId===t&&!n.isEmpty(e.changes)}))}}),(function(e,t){function i(e){this.message=e}i.prototype=new Error,t.DecisionError=i}),(function(e,t,i){function n(e){return r.map(e.weightDistributions,"entityId")}var r=i(2);t.description=function(e){var t=!!e.name,i=t?'"'+e.name+'" ':"",r=n(e).join(", ");return i+"(id "+e.id+", campaigns: "+r+")"}}),(function(module,exports,__webpack_require__){var createError=__webpack_require__(76),di=__webpack_require__(16),Logger=__webpack_require__(23),CSP_MODE=!1,EXEC_WITH_JQUERY=!0,ExecError=exports.Error=createError("ExecError");exports.apply=function(e,t){t=t||[],EXEC_WITH_JQUERY&&(t=t.concat(di.get("env/jquery")));try{return e.apply(void 0,t)}catch(i){throw Logger.warn("Error applying function",e,"with args:",t,i),new ExecError(i)}},exports.eval=function(str){if(CSP_MODE)throw new ExecError("eval is not supported in CSP mode");try{return EXEC_WITH_JQUERY&&(str="var $ = optimizely.get('jquery');"+str),eval(str)}catch(e){throw Logger.warn("Error executing JS:",str,e),new ExecError(e)}}}),(function(e,t,i){var n=i(2),r=i(85),a=i(25),o=i(26),s=i(80).LocalStorage,c=i(23),u=i(90),l=i(16),d=l.get("stores/pending_events"),f=a.StorageKeys.PENDING_EVENTS;t.persistPendingEvents=function(){try{var e=d.getEventsString();s.setItem(f,e),i(84).setItem(f,e)}catch(e){c.warn("PendingEvents / Unable to set localStorage key, error was: ",e),r.emitInternalError(e)}},t.getPendingEvents=function(){try{return o.parse(s.getItem(f))}catch(e){return null}},t.retryPendingEvents=function(e){n.forOwn(e,(function(e,t){u.retryableRequest(e.data,t,e.retryCount)})),n.isEmpty(e)||c.log("Retried pending events: ",e)}}),(function(e,t,i){var n=i(2),r=i(12).Promise;t.firstToResolve=function(e){return new r(function(t){n.each(e,(function(e){r.resolve(e).then(t,(function(){}))}))})}}),(function(e,t,i){function n(e){var t=!1;if(a.isArray(window.optimizely)&&a.each(window.optimizely,(function(i){a.isArray(i)&&"verifyPreviewProject"===i[0]&&String(i[1])===e&&(t=!0)})),!t)throw new Error("Preview projectId: "+e+" does not match expected")}function r(){s.on({filter:{type:c.TYPES.ANALYTICS,name:"trackEvent"},handler:f}),s.on({filter:{type:c.TYPES.LIFECYCLE,name:"viewActivated"},handler:f}),s.on({filter:{type:c.TYPES.LIFECYCLE,name:"layerDecided"},handler:f}),s.on({filter:{type:"error"},publicOnly:!0,handler:f})}var a=i(2),o=i(16),s=i(86),c=i(110),u=i(40),l=o.get("stores/directive"),d="optimizelyPreview",f=function(e){var t=u.getGlobal(d);t.push(e)};t.initialize=function(e){l.isSlave()&&n(e),r()},t.setupPreviewGlobal=function(){u.getGlobal(d)||u.setGlobal(d,[])},t.pushToPreviewGlobal=function(e){f(e)}}),(function(e,t,i){e.exports=function(e){e.registerVisitorProfileProvider(i(148))}}),(function(e,t){e.exports={provides:"visitorId",getter:["stores/visitor_id",function(e){return e.getRandomId()}]}}),(function(e,t,i){e.exports=function(e){e.registerVisitorProfileProvider(i(150)),e.registerAudienceMatcher("behavior",i(152))}}),(function(e,t,i){var n=i(151);e.exports={provides:"events",isTransient:!0,getter:[function(){return n.getEvents()}]}}),(function(e,t,i){var n=i(2),r=i(71),a=i(16),o=a.get("stores/visitor_events"),s=1e3;t.getEvents=function(){var e=r.getEvents(),t=[].concat.apply([],n.values(o.getForeignEvents())),i=[].concat.apply([],n.values(o.getForeignEventQueues())),a=r.mergeAllEvents([e,t,i]);return a.slice(a.length-s)}}),(function(e,t,i){var n=i(2),r=i(26),a=i(153),o=i(154);e.exports={fieldsNeeded:["events"],match:function(e,t){var i=[],s=r.parse(t.value);return i=n.isUndefined(s.version)?[s]:a.buildFromSpecV0_1(s),n.every(i,(function(t){return o.isSatisfied(t,e.events)}))}}}),(function(e,t,i){function n(e){return e=(e||"").toString().trim(),g[e]||e}function r(e,t,i){var n={where:t};if(e.count&&(n["limit"]=e.count),e.modifier===s.FREQUENCY_FILTERS.MOST_FREQUENT){var r=s.getFieldKeyPathForSource(e.name,i),a=s.aggregate("count"),o=s.aggregateField("count"),l=s.groupField(r);return c.extend(n,{select:[{field:l}],groupBy:s.groupBy([r]),aggregate:[a],orderBy:[{field:o,direction:"DESC"}]})}return c.extend(n,{orderBy:[{field:[u.FIELDS.TIME],direction:"DESC"}]})}function a(e){var t=[];if(c.isUndefined(e))throw new Error("rule is undefined");if(!c.isObject(e))throw new Error("rule is not an Object");"0.2"!==e["version"]&&t.push('version: not "0.2"'),e["filter"]&&(c.isArray(e["filter"])?c.each(e["filter"],(function(e,i){var n=s.validateFieldKeyPathV0_2(e["field"],s.FieldPurpose.FILTER);n&&t.push("filter["+i+"]: "+n);var r=s.validateComparatorAndValue(e["comparator"],e["value"]);r&&t.push("filter["+i+"]: "+r)})):t.push("filter: not an array"));var i=[],n=[];if(e["sort"]&&(e["reduce"]&&e["reduce"]["aggregator"]&&"nth"!==e["reduce"]["aggregator"]&&t.push("sort: superfluous because we can apply aggregator "+l.stringify(e["reduce"]["aggregator"])+" to unsorted items"),c.isArray(e["sort"])?c.each(e["sort"],(function(e,r){var a=s.validateFieldKeyPathV0_2(e["field"],s.FieldPurpose.SORT);a&&t.push("sort["+r+"]: "+a),e["field"]&&"frequency"===e["field"][0]?i.push(e):n.push(e);var c=o(e["direction"]);c&&t.push("sort["+r+"]: "+c)})):t.push("sort: not an array"),i.length&&n.length&&t.push('sort: sorting by non-["frequency"] field is pointless because we are going to sort the picked values by ["frequency"]'),i.length&&!e["pick"]&&t.push('sort: sorting by ["frequency"] is impossible because no values have been picked')),e["pick"]){e["reduce"]&&"count"===e["reduce"]["aggregator"]&&t.push('pick: superfluous because we can apply aggregator "count" to raw events');var r=s.validateFieldKeyPathV0_2(e["pick"]["field"]);r&&t.push("pick: "+r)}if(e["reduce"]){var a=e["reduce"]["aggregator"],u="aggregator "+(l.stringify(a)||String(a)),d=e["reduce"]["n"],f="index "+(l.stringify(d)||String(d));c.includes(["sum","avg","max","min","count","nth"],a)||t.push("reduce: "+u+" is unknown"),c.includes(["sum","avg","max","min"],a)&&(e["pick"]||t.push("reduce: "+u+" is impossible to use because no values have been picked")),"nth"===a?((!c.isNumber(d)||isNaN(d)||parseInt(d,10)!==d||d<0)&&t.push("reduce: "+f+" is not a non-negative integer (mandated by "+u+")"),e["sort"]||t.push('reduce: aggregator "nth" is meaningless without a specific sort order')):c.isUndefined(d)||t.push("reduce: "+f+" is defined (not mandated by "+u+")")}if(t.length)throw new Error(t.join("\n"))}function o(e){var t="direction "+(l.stringify(e)||String(e));if(!c.includes(["ascending","descending"],e))return t+' is not "ascending" or "descending"'}var s=t,c=i(2),u={FIELDS:i(63).FIELDS,FIELDS_V0_2:i(63).FIELDS_V0_2},l=i(26),d=i(23),f=i(154);s.MILLIS_IN_A_DAY=864e5,s.aggregateField=function(e,t){return c.isString(t)&&(t=[t]),t=t||f.DEFAULT_FIELD,[f.generateAlias(e,t)]},s.groupField=function(e){return c.isString(e)&&(e=[e]),e=e||f.DEFAULT_FIELD,[e.join(".")]};var g={"<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","==":"eq"};s.fieldComparison=function(e,t,i){return e=n(e),c.isString(t)&&(t=[t]),"exists"===e?{op:e,args:[{field:t}]}:{op:e,args:[{field:t},{value:i}]}},s.relativeTimeComparison=function(e,t){return{op:n(e),args:[{op:"-",args:[{eval:"now"},{field:[u.FIELDS.TIME]}]},{value:t*s.MILLIS_IN_A_DAY}]}},s.rangeTimeComparison=function(e){return c.isArray(e)?{op:"between",args:[{field:[u.FIELDS.TIME]},{value:[e[0]||+new Date(0),e[1]||+new Date]}]}:(d.error("Rule builder","rangeTimeComparison passed invalid range",e),null)},s.groupBy=function(e){for(var t=[],i=0;i<e.length;i++)t[i]={field:e[i]};return t},s.aggregate=function(e,t){return c.isString(t)&&(t=[t]),t=t||f.DEFAULT_FIELD,{op:e,args:[{field:t}]}},s.SOURCE_TYPES={BEHAVIOR:"events",CUSTOM_BEHAVIOR:"custom_behavior",DCP:"dcp"},s.FREQUENCY_FILTERS={MOST_FREQUENT:"most_frequent",LEAST_FREQUENT:"least_frequent"},s.RECENCY_FILTERS={MOST_RECENT:"most_recent",LEAST_RECENT:"least_recent"},s.getFieldKeyPathForSource=function(e,t){t=t||s.SOURCE_TYPES.BEHAVIOR;var i=[];return c.isString(e)?(i=[e],t!==s.SOURCE_TYPES.BEHAVIOR||c.includes(c.values(u.FIELDS),e)||(i=[u.FIELDS.OPTIONS,e])):i=e,i},s.buildFromSpecV0_1=function(e){if(!(e.action||e.filters&&0!==e.filters.length))throw new Error('Audience spec must have an "action" field or at least one "filter" '+l.stringify(e));var t=s.fieldComparison("gt",u.FIELDS.TIME,0),i=[],n=[];if(e.action&&(n.push(s.fieldComparison("eq",u.FIELDS.NAME,e.action.value)),e.action.type&&n.push(s.fieldComparison("eq",u.FIELDS.TYPE,e.action.type))),e.time)if("last_days"===e.time.type)n.push(s.relativeTimeComparison("lte",e.time.days));else if("range"===e.time.type){var a=s.rangeTimeComparison([e.time.start,e.time.stop]);a&&n.push(a)}else d.error("Rule builder",'Audience spec has bad "time" type',e.time.type);if(t={op:"and",args:n},e.count&&i.push({where:s.fieldComparison(e.count.comparator,"0",e.count.value),from:{select:[{field:s.aggregateField("count")}],where:t,aggregate:[s.aggregate("count")]}}),e.filters&&c.each(e.filters,(function(r){var a,o,c=s.getFieldKeyPathForSource(r.name,e.source);if(r.modifier===s.FREQUENCY_FILTERS.MOST_FREQUENT?(a=s.aggregate("count"),o=s.aggregateField("count")):r.modifier===s.RECENCY_FILTERS.MOST_RECENT&&(a=s.aggregate("max",u.FIELDS.TIME),o=s.aggregateField("max",u.FIELDS.TIME)),a){var l=c,d=s.groupField(l);i.push({where:s.fieldComparison(r.comparator,"0",r.value),from:{select:[{field:d}],where:t,groupBy:s.groupBy([l]),aggregate:[a],orderBy:[{field:o,direction:"DESC"}],limit:1}})}else n.push(s.fieldComparison(r.comparator,c,r.value))})),e.pick){if(i.length>0)throw new Error('A "pick" clause must not be specified with "count" or "most_recent", "most_frequent" modifiers'+l.stringify(e));return[r(e.pick,t,e.source)]}return i.length>0?i:[{where:t}]},s.buildFromSpecV0_2=function(e){a(e);var t={where:{op:"and",args:c.map(e["filter"]||[],(function(e){return"age"===e["field"][0]?s.relativeTimeComparison(e["comparator"]||"eq",e["value"]/s.MILLIS_IN_A_DAY):s.fieldComparison(e["comparator"]||"eq",s.convertFieldKeyPathFromSpecV0_2(e["field"]),e["value"])}))}};if(e["reduce"]&&"count"===e["reduce"]["aggregator"])return c.extend(t,{aggregate:[{op:"count",args:[{field:["*"]}]}],select:[{field:["_count_*"]}]});var i=[],n=[];if(e["sort"]&&(c.each(e["sort"],(function(e){c.includes(["ascending","descending"],e["direction"])&&(c.includes(["time","age"],e["field"][0])&&n.push(e),"frequency"===e["field"][0]&&i.push(e))})),n.length&&!i.length&&(t["orderBy"]=c.filter(c.map(n,(function(e){return"time"===e["field"][0]?{field:s.convertFieldKeyPathFromSpecV0_2(["time"]),direction:"ascending"===e["direction"]?"ASC":"DESC"}:"age"===e["field"][0]?{field:s.convertFieldKeyPathFromSpecV0_2(["time"]),direction:"ascending"===e["direction"]?"DESC":"ASC"}:void 0}))))),e["pick"]&&e["pick"]["field"]){var r=s.convertFieldKeyPathFromSpecV0_2(e["pick"]["field"]);if(e["reduce"]&&c.includes(["avg","max","min","sum"],e["reduce"]["aggregator"]))return c.extend(t,{aggregate:[{op:e["reduce"]["aggregator"],args:[{field:r}]}],select:[{field:[f.generateAlias(e["reduce"]["aggregator"],r)]}]});t=i.length?c.extend(t,{groupBy:[{field:r}],aggregate:[{op:"count",args:[{field:["*"]}]}],orderBy:[{field:["_count_*"],direction:"ascending"===i[0]["direction"]?"ASC":"DESC"}],select:[{field:[r.join(".")]}]}):c.extend(t,{select:[{field:r}]})}if(e["reduce"]&&"nth"===e["reduce"]["aggregator"]){var o=e["reduce"]["n"];if(c.isNumber(o)&&o>=0&&Number(o)===Math.floor(Number(o)))return c.extend(t,{offset:o,limit:1})}return t},s.convertFieldKeyPathFromSpecV0_2=function(e){return"tags"===e[0]&&"revenue"===e[1]?["r"]:[u.FIELDS_V0_2[e[0]]].concat(e.slice(1))},s.FieldPurpose={FILTER:"filter",SORT:"sort",PICK:"pick"},s.validateFieldKeyPathV0_2=function(e,t){var i="field "+(l.stringify(e)||String(e));if(!c.isArray(e)||!c.every(e,c.isString))return i+" is not an array of strings";if("tags"===e[0]&&e.length>2||"tags"!==e[0]&&e.length>1)return i+" includes too many strings";if("tags"===e[0]&&e.length<2)return i+" does not specify an exact tag";if(e.length<1)return i+" does not specify a top-level field";var n=c.keys(u.FIELDS_V0_2),r=["age","frequency"];return t===s.FieldPurpose.FILTER&&(n.push("age"),r=["frequency"]),t===s.FieldPurpose.SORT&&(n=["time","age","frequency"],r=["name","type","category","tags"]),c.includes(r,e[0])?i+" is not supported here":c.includes(n,e[0])?void 0:i+" is unknown"},s.validateComparatorAndValue=function(e,t){var i="comparator "+(l.stringify(e)||String(e)),n="value "+(l.stringify(t)||String(t));if(!c.isString(e)&&!c.isUndefined(e))return i+" is not a string";switch(e){case void 0:case"eq":case"is":case"contains":break;case"lt":case"gt":case"lte":case"gte":if(!c.isNumber(t))return n+" is not a number (mandated by "+i+")";break;case"in":if(!c.isArray(t))return n+" is not an array (mandated by "+i+")";break;case"between":if(!(c.isArray(t)&&2===t.length&&c.isNumber(t[0])&&c.isNumber(t[1])&&t[0]<=t[1]))return n+" is not a pair of increasing numbers (mandated by "+i+")";break;case"regex":if(!(c.isString(t)||c.isArray(t)&&2===t.length&&c.isString(t[0])&&c.isString(t[1])))return n+" is not a pattern string or a [pattern string, flags string] array (mandated by "+i+")";break;case"exists":if(!c.isUndefined(t))return n+" is not undefined (mandated by "+i+")";break;default:return i+" is unknown"}}}),(function(e,t,i){var n=i(2),r=i(25),a=i(23),o=n.bind(a.log,a),s=i(24),c=i(19).getFieldValue,u=i(26),l=function(e,t,i){if(e.getValueOrDefault)return e.getValueOrDefault(t,i);if(!n.isArray(t))return i;var r=c(e,t);return"undefined"==typeof r&&(r=i),r},d=function(e){return"string"==typeof e?e.trim().toLowerCase():e};t.clause={WHERE:"where",GROUP_BY:"groupBy",AGGREGATE:"aggregate",HAVING:"having",ORDER_BY:"orderBy",SELECT:"select",OFFSET:"offset",LIMIT:"limit",FROM:"from"},t.DEFAULT_FIELD=["*"],t.booleanOperators={eq:function(e){var t=n.map(e,d);return t[0]==t[1]},is:function(e){return e[0]===e[1]},gt:function(e){return e[0]>e[1]},lt:function(e){return e[0]<e[1]},gte:function(e){return e[0]>=e[1]},lte:function(e){return e[0]<=e[1]},"in":function(e){var t=n.map(e[1]||[],d);return n.includes(t,d(e[0]))},between:function(e){return e[1][0]<=e[0]&&e[0]<=e[1][1]},contains:function(e){var t=n.map(e,(function(e){return"string"==typeof e?e.toLowerCase():e}));return(t[0]||"").indexOf(t[1])!==-1},regex:function(e){try{var t,i;return n.isString(e[1])?(t=e[1],i="i"):(t=e[1][0]||"",i=e[1][1]||""),new RegExp(t,i).test(e[0])}catch(e){return a.error("Rules",'In operator "regex", error: '+(e.message||"invalid RegExp /"+[t,i].join("/"))),!1}},exists:function(e){return"undefined"!=typeof e[0]},and:function(e){return n.every(e,(function(e){return e}))},or:function(e){return n.some(e,(function(e){return e}))},not:function(e){return!e[0]}},t.arithmeticOperators={"+":function(e){return(e[0]||0)+(e[1]||0)},"-":function(e){return(e[0]||0)-(e[1]||0)},"/":function(e){return(e[0]||0)/(e[1]||1)},"%":function(e){return(e[0]||0)%(e[1]||1)}},t.aggregateOperators={sum:function(e,i){for(var n=e[0]||t.DEFAULT_FIELD,r=0,a=0;a<i.length;a++)r+=l(i[a],n,0);return r},avg:function(e,i){if(0===i.length)return 0;for(var n=e[0]||t.DEFAULT_FIELD,r=0,a=0;a<i.length;a++)r+=l(i[a],n,0);return r/i.length},max:function(e,i){for(var n=e[0]||t.DEFAULT_FIELD,r=Number.NEGATIVE_INFINITY,a=0;a<i.length;a++)r=Math.max(r,l(i[a],n,Number.NEGATIVE_INFINITY));return r},min:function(e,i){for(var n=e[0]||t.DEFAULT_FIELD,r=Number.POSITIVE_INFINITY,a=0;a<i.length;a++)r=Math.min(r,l(i[a],n,Number.POSITIVE_INFINITY));return r},count:function(e,t){return t.length}};var f={now:function(){return s.now()}},g=function(e){return e in t.booleanOperators?t.booleanOperators[e]:e in t.arithmeticOperators?t.arithmeticOperators[e]:null},p=function(e,t){if(t.hasOwnProperty("value"))return t["value"];if(t.hasOwnProperty("field"))return l(e,t["field"]);if(t.hasOwnProperty("eval"))return t["eval"]in f?f[t["eval"]]():void a.error("Rules","Unknown function: "+t["eval"]);if(!t["op"])return void a.error("Rules","No operator specified: "+u.stringify(t));var i=g(t["op"]);if(!i)return void a.error("Rules","Unknown operator: "+t["op"]);var r=n.partial(p,e),o=t["args"]||[],s=n.map(o,(function(e){return r(e)}));return i(s,e)},h=function(e,t){var i={};if("undefined"==typeof e||!n.isArray(e)||0===e.length)return i["*"]={fieldValues:{},events:t},i;for(var r=n.map(e,(function(e){return e["field"]})),a=0;a<t.length;a++){for(var o=t[a],s=[],c={},d=0;d<r.length;d++){ var f=r[d],g=l(o,f),p=f.join(".");c[p]=g,s.push(encodeURIComponent(p)+"="+encodeURIComponent(u.stringify(g)))}var h=s.join("&");i.hasOwnProperty(h)||(i[h]={fieldValues:c,events:[]}),i[h].events.push(o)}return i};t.generateAlias=function(e,t){return"_"+e+"_"+t.join(".")};var _=function(e,i){var r={};return n.each(i,(function(i,n){r[n]={};for(var o=0;o<e.length;o++){var s=e[o],c=s["op"];if(c in t.aggregateOperators){var u=(s["args"]&&s["args"][0]||{})["field"]||t.DEFAULT_FIELD,l=t.generateAlias(c,u),d=t.aggregateOperators[c]([u],i.events);r[n][l]=d}else a.error("Rules","Unknown aggregate operator "+c)}})),r},v=function(e,t){var i=[];return n.each(e,(function(e,r){var a=n.extend({},e.fieldValues),o=t[r]||{};n.extend(a,o),i.push(a)})),i},E=function(e,t){return n.isArray(e)?0===e.length?t:t.sort((function(t,i){for(var n=0;n<e.length;n++){var r=e[n],a=r["direction"]||"ASC",o="ASC"===a?1:-1,s=r["field"],c=l(t,s,0),u=l(i,s,0);if(c<u)return-o;if(c>u)return o}return 0})):(o("Rules","groupBy rule must be an array"),t)};t.rewrite=function(e){function i(e,s){if(n.isArray(e)&&("and"!==e[0]&&"or"!==e[0]&&"not"!==e[0]&&a.error("Rules","Unexpected operation "+e[0]+". Continuing optimistically."),e={op:e[0],args:e.slice(1)}),e.hasOwnProperty("field")||e.hasOwnProperty("value")||e.hasOwnProperty("eval"))return e;if(s&&e["op"]in t.aggregateOperators){var c=(e["args"]&&e["args"][0]||{})["field"]||t.DEFAULT_FIELD,u=t.generateAlias(e["op"],c);return u in o||(r.push({op:e["op"],args:e["args"]}),o[u]=!0),{field:[u]}}for(var l=[],d=e["args"]||[],f=0;f<d.length;f++)l[f]=i(d[f],s);return{op:e["op"],args:l}}var r=[],o={},s={};e.hasOwnProperty(t.clause.WHERE)&&(s[t.clause.WHERE]=i(e[t.clause.WHERE],!1)),e.hasOwnProperty(t.clause.HAVING)&&(s[t.clause.HAVING]=i(e[t.clause.HAVING],!0)),(e.hasOwnProperty(t.clause.AGGREGATE)||r.length>0)&&(s[t.clause.AGGREGATE]=(e[t.clause.AGGREGATE]||[]).concat(r));for(var c=[t.clause.GROUP_BY,t.clause.ORDER_BY,t.clause.SELECT,t.clause.OFFSET,t.clause.LIMIT],u=0;u<c.length;u++)e.hasOwnProperty(c[u])&&(s[c[u]]=e[c[u]]);return e.hasOwnProperty(t.clause.FROM)&&(s[t.clause.FROM]=t.rewrite(e[t.clause.FROM])),s};var m=function(e,i){i=i||0;var r=[];if(e.hasOwnProperty(t.clause.WHERE)?e[t.clause.WHERE]["op"]?e[t.clause.WHERE]["op"]in t.booleanOperators||r.push("Non-boolean WHERE clause operator"):r.push("Missing WHERE clause operator"):r.push("Missing WHERE clause"),e.hasOwnProperty(t.clause.HAVING)&&(e[t.clause.HAVING]["op"]?e[t.clause.HAVING]["op"]in t.booleanOperators||r.push("Non-boolean HAVING clause operator"):r.push("Missing HAVING clause operator")),e.hasOwnProperty(t.clause.GROUP_BY)&&!e.hasOwnProperty(t.clause.AGGREGATE)&&r.push("No AGGREGATE clause specified with GROUP_BY clause"),e.hasOwnProperty(t.clause.SELECT)){var a=e[t.clause.SELECT];if(n.isArray(a))for(var o=0;o<a.length;o++)a[o]["op"]&&a[o]["op"]in t.aggregateOperators&&r.push('In SELECT clause, aggregate operator "'+a[o]["op"]+'" specified in selector at index '+o);else r.push("SELECT clause must be an array")}if(e.hasOwnProperty(t.clause.OFFSET)){var s=e[t.clause.OFFSET];(!n.isNumber(s)||Number(s)<0||Number(s)!==Math.floor(Number(s)))&&r.push("OFFSET must be a non-negative integer")}if(e.hasOwnProperty(t.clause.LIMIT)){var c=e[t.clause.LIMIT];(!n.isNumber(c)||Number(c)<0||Number(c)!==Math.floor(Number(c)))&&r.push("LIMIT must be a non-negative integer")}return i>0&&(r=n.map(r,(function(e){return"Sub-rule "+i+": "+e}))),e.hasOwnProperty(t.clause.FROM)&&(r=r.concat(m(e[t.clause.FROM],i+1))),r},I=function(e,t){return n.map(t,(function(t){return n.map(e,(function(e){return p(t,e)}))}))},y=function(e,i){var r=i;if(e.hasOwnProperty(t.clause.FROM)&&(a.debug("Evaluating FROM clause:",e[t.clause.FROM]),r=y(e[t.clause.FROM],r),a.debug("Results after FROM:",r)),a.debug("Evaluating WHERE clause:",e[t.clause.WHERE]),r=n.filter(r,(function(i){return p(i,e[t.clause.WHERE])})),a.debug("Results after WHERE:",r),e.hasOwnProperty(t.clause.AGGREGATE)){a.debug("Evaluating AGGREGATE clause:",e[t.clause.AGGREGATE]);var o=h(e[t.clause.GROUP_BY],r),s=_(e[t.clause.AGGREGATE],o);r=v(o,s),a.debug("Results after AGGREGATE:",r)}e.hasOwnProperty(t.clause.HAVING)&&(a.debug("Evaluating HAVING clause:",e[t.clause.HAVING]),r=n.filter(r,(function(i){return p(i,e[t.clause.HAVING])})),a.debug("Results after HAVING:",r)),e.hasOwnProperty(t.clause.ORDER_BY)&&(a.debug("Evaluating ORDER_BY clause:",e[t.clause.ORDER_BY]),r=E(e[t.clause.ORDER_BY],r),a.debug("Results after ORDER_BY:",r));var c=0;e.hasOwnProperty(t.clause.OFFSET)&&(a.debug("Evaluating OFFSET clause:",e[t.clause.OFFSET]),c=Number(e[t.clause.OFFSET]));var u;return e.hasOwnProperty(t.clause.LIMIT)&&(a.debug("Evaluating LIMIT clause:",e[t.clause.LIMIT]),u=c+Number(e[t.clause.LIMIT])),(c>0||!n.isUndefined(u))&&(r=r.slice(c,u),a.debug("Results after OFFSET/LIMIT:",r)),e.hasOwnProperty(t.clause.SELECT)&&(a.debug("Evaluating SELECT clause:",e[t.clause.SELECT]),r=I(e[t.clause.SELECT],r),a.debug("Results after SELECT:",r)),r};t.execute=function(e,i){e=t.rewrite(e),a.shouldLog(r.LogLevel.DEBUG)&&a.groupCollapsed("Evaluating Behavioral Rule"),a.debug("Rule:",e,u.stringify(e)),a.debug("Events:",i);var n=m(e);if(n.length>0)throw new Error("Rule "+u.stringify(e)+" has violations: "+n.join("\n"));var o=y(e,i);return a.debug("Rule result:",o),a.shouldLog(r.LogLevel.DEBUG)&&a.groupEnd(),o},t.isSatisfied=function(e,i){try{return t.execute(e,i).length>0}catch(t){return a.error("Rules","Error "+t.toString()+" while evaluating rule "+u.stringify(e)),!1}}}),(function(e,t,i){e.exports=function(e){e.registerVisitorProfileProvider(i(156))}}),(function(e,t,i){var n=i(2),r=i(157),a=i(151),o=i(26),s=i(153);e.exports={provides:"customBehavior",shouldTrack:!0,isLazy:!1,getter:["stores/global","stores/visitor_attribute_entity",function(e,t){var i=e.getProjectId(),c=n.filter(n.map(t.getCustomBehavioralAttributes(i),(function(e){try{return{id:e.id,granularity:r.GRANULARITY.ALL,rule:s.buildFromSpecV0_2(o.parse(e.rule_json))}}catch(e){return}}))),u=a.getEvents();return r.evaluate(c,u)}]}}),(function(e,t,i){function n(e){if(0===e.length)return[];for(var t=e.length-1,i=o.FIELDS.SESSION_ID,n=e[t][i];t>0&&n===e[t-1][i];)t--;return e.slice(t)}function r(e,t){if(0===e.length||t<=0)return[];var i=+new Date-t*s.MILLIS_IN_A_DAY;i-=i%s.MILLIS_IN_A_DAY;for(var n=e.length;n>0&&i<=e[n-1][o.FIELDS.TIME];)n--;return e.slice(n)}var a=i(23),o={FIELDS:i(63).FIELDS},s=i(153),c=i(154);t.GRANULARITY={ALL:"all",CURRENT_SESSION:"current_session",LAST_30_DAYS:"last_30_days",LAST_60_DAYS:"last_60_days"},t.evaluate=function(e,i){var o={};if(0===i.length){for(var s=0;s<e.length;s++)o[e[s].id]=e[s].defaultValue;return o}var u=n(i),l=r(i,60);for(s=0;s<e.length;s++){var d=e[s],f=i;d.granularity===t.GRANULARITY.CURRENT_SESSION?f=u:d.granularity===t.GRANULARITY.LAST_60_DAYS&&(f=l);try{var g=f;d.rule&&(g=c.execute(d.rule,f)),o[d.id]=d.defaultValue,1===g.length?o[d.id]=g[0][0]||d.defaultValue:a.debug("Behavior / Rule for",d.id,"returned",g.length,"results, expected 1")}catch(e){a.error("Behavior / Rule for",d.id,"failed with",e.message||"")}}return o}}),(function(e,t,i){e.exports=function(e){e.registerVisitorProfileProvider(i(159)),e.registerAudienceMatcher("first_session",i(160))}}),(function(e,t,i){var n=i(63),r=i(151),a=i(19).getFieldValue,o=i(88).CURRENT_SESSION_INDEX;e.exports={provides:"first_session",shouldTrack:!0,getter:[function(){var e=r.getEvents();if(e&&e.length>0){var t=e[0],i=a(t,[n.FIELDS.SESSION_INDEX]);return i===o}return!0}]}}),(function(e,t){e.exports={fieldsNeeded:["first_session"],match:function(e){return!!e.first_session}}}),(function(e,t,i){e.exports=function(e){e.registerApiModule("behavior",i(162))}}),(function(e,t,i){function n(e,t){var i=d.buildFromSpecV0_1(t);if(1!==i.length)throw new Error("Invalid query descriptor; verify that no aggregators are specified");return f.execute(i[0],e)}function r(e,t){return u.map(e,(function(e){return u.isFunction(e.toObject)?e.toObject(t):e}))}function a(e,t){if(!e)return["Descriptor not defined"];var i=[];return e.count&&i.push('Unexpected "count" clause specified'),e.pick&&e.pick.modifier&&t.indexOf(e.pick.modifier)===-1&&i.push('Invalid "pick" modifier "'+e.pick.modifier+'"'),u.each(e.filters,(function(e){u.isUndefined(e.modifier)||i.push('Unexpected "filter" modifier "'+e.modifier+'"')})),i.length>0?i:void 0}function o(e,t){var i,o={revenueAsTag:!1,timeAsTimestamp:!0};if(u.isUndefined(t))return i=l.getEvents(e),r(i,o);if(u.isNumber(t)){if(t<=0)throw new Error("Count must be a positive integer, got "+t);return i=l.getEvents(e),r(i.slice(-t),o)}var s=a(t,u.values(d.RECENCY_FILTERS));if(s)throw new Error(s.join("\n"));return i=l.getEvents(e),r(n(i,t),o)}function s(e,t){if(t=u.cloneDeep(t)||{},!t.pick)throw new Error('No "pick" clause provided in query descriptor');if(!t.pick.name)throw new Error('No field name provided in "pick" clause');t.pick.modifier=t.pick.modifier||d.FREQUENCY_FILTERS.MOST_FREQUENT;var i=a(t,u.values(d.FREQUENCY_FILTERS));if(i)throw new Error(i.join("\n"));var r=l.getEvents(e);return n(r,t)}function c(e,t){var i=d.buildFromSpecV0_2(t),n=l.getEvents(e),a=r(f.execute(i,n),{revenueAsTag:!0,timeAsTimestamp:!1});return(t.pick||t.reduce&&"count"===t.reduce.aggregator)&&(a=u.flatten(a)),t.reduce&&(a=a[0]),a}var u=i(2),l=i(151),d=i(153),f=i(154);e.exports=["stores/visitor_events",function(e){return{getEvents:u.partial(o,e),getByFrequency:u.partial(s,e),query:u.partial(c,e)}}]}),(function(e,t,i){e.exports=function(e){e.registerDependency("sources/browser_id",i(164)),e.registerVisitorProfileProvider(i(168)),e.registerVisitorProfileProvider(i(169)),e.registerAudienceMatcher("browser_version",i(170))}}),(function(e,t,i){var n=i(165);t.getId=function(){return n.get().browser.id},t.getVersion=function(){return n.get().browser.version}}),(function(e,t,i){var n=i(2),r=i(166),a=i(40),o=i(7),s=i(16),c=i(9),u=s.get("stores/ua_data");t.get=function(){var e=u.get();return n.isEmpty(e)&&(e=r.parseUA(a.getUserAgent()),c.dispatch(o.SET_UA_DATA,{data:e})),e}}),(function(e,t,i){function n(e){if(e=(e||"").toLowerCase(),e in c)return e;var t=a.keys(c);return a.find(t,(function(t){var i=c[t];return a.includes(i,e)}))||"unknown"}function r(e,t,i){return t?t:"unknown"===e?"unknown":i?"mobile":"desktop_laptop"}var a=i(2),o=i(167);t.parseUA=function(e){var t=new o(e),i=t.getBrowser(),a=t.getOS(),c=t.getDevice(),l=(a.name||"unknown").toLowerCase(),d=(i.name||"unknown").toLowerCase(),f=s(c.type,d,l);return{browser:{id:n(i.name),version:i.version},platform:{name:l,version:a.version},device:{model:u[c.model]||"unknown",type:r(d,c.type,f),isMobile:f}}};var s=function(e,t,i){if(a.includes(["mobile","tablet"],e))return!0;if(a.includes(["opera mini"],t))return!0;var n=["android","blackberry","ios","windows phone"];return!!a.includes(n,i)},c={gc:["chrome","chromium","silk","yandex","maxthon","chrome webview"],edge:["edge"],ie:["internet explorer","iemobile"],ff:["firefox","iceweasel"],opera:["opera","opera mini","opera tablet"],safari:["safari","mobile safari","webkit"],ucbrowser:["uc browser"]},u={iPhone:"iphone",iPad:"ipad"}}),(function(e,t,i){var n;/*! * UAParser.js v0.7.24 * Lightweight JavaScript-based User-Agent string parser * https://github.com/faisalman/ua-parser-js * * Copyright © 2012-2021 Faisal Salman <f@faisalman.com> * Licensed under MIT License */ !(function(r,a){"use strict";var o="0.7.24",s="",c="?",u="function",l="undefined",d="object",f="string",g="major",p="model",h="name",_="type",v="vendor",E="version",m="architecture",I="console",y="mobile",S="tablet",T="smarttv",A="wearable",w="embedded",R={extend:function(e,t){var i={};for(var n in e)t[n]&&t[n].length%2===0?i[n]=t[n].concat(e[n]):i[n]=e[n];return i},has:function(e,t){return"string"==typeof e&&t.toLowerCase().indexOf(e.toLowerCase())!==-1},lowerize:function(e){return e.toLowerCase()},major:function(e){return typeof e===f?e.replace(/[^\d\.]/g,"").split(".")[0]:a},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},D={rgx:function(e,t){for(var i,n,r,o,s,c,l=0;l<t.length&&!s;){var f=t[l],g=t[l+1];for(i=n=0;i<f.length&&!s;)if(s=f[i++].exec(e))for(r=0;r<g.length;r++)c=s[++n],o=g[r],typeof o===d&&o.length>0?2==o.length?typeof o[1]==u?this[o[0]]=o[1].call(this,c):this[o[0]]=o[1]:3==o.length?typeof o[1]!==u||o[1].exec&&o[1].test?this[o[0]]=c?c.replace(o[1],o[2]):a:this[o[0]]=c?o[1].call(this,c,o[2]):a:4==o.length&&(this[o[0]]=c?o[3].call(this,c.replace(o[1],o[2])):a):this[o]=c?c:a;l+=2}},str:function(e,t){for(var i in t)if(typeof t[i]===d&&t[i].length>0){for(var n=0;n<t[i].length;n++)if(R.has(t[i][n],e))return i===c?a:i}else if(R.has(t[i],e))return i===c?a:i;return e}},b={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2000:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},O={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]{3,6}).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[h,E],[/(opios)[\/\s]+([\w\.]+)/i],[[h,"Opera Mini"],E],[/\s(opr)\/([\w\.]+)/i],[[h,"Opera"],E],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[h,E],[/(konqueror)\/([\w\.]+)/i],[[h,"Konqueror"],E],[/(trident).+rv[:\s]([\w\.]{1,9}).+like\sgecko/i],[[h,"IE"],E],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[h,"Edge"],E],[/(yabrowser)\/([\w\.]+)/i],[[h,"Yandex"],E],[/(Avast)\/([\w\.]+)/i],[[h,"Avast Secure Browser"],E],[/(AVG)\/([\w\.]+)/i],[[h,"AVG Secure Browser"],E],[/(puffin)\/([\w\.]+)/i],[[h,"Puffin"],E],[/(focus)\/([\w\.]+)/i],[[h,"Firefox Focus"],E],[/(opt)\/([\w\.]+)/i],[[h,"Opera Touch"],E],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[h,"UCBrowser"],E],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],E],[/(windowswechat qbcore)\/([\w\.]+)/i],[[h,"WeChat(Win) Desktop"],E],[/(micromessenger)\/([\w\.]+)/i],[[h,"WeChat"],E],[/(brave)\/([\w\.]+)/i],[[h,"Brave"],E],[/(whale)\/([\w\.]+)/i],[[h,"Whale"],E],[/(qqbrowserlite)\/([\w\.]+)/i],[h,E],[/(QQ)\/([\d\.]+)/i],[h,E],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[h,E],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[h,E],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[h,E],[/(MetaSr)[\/\s]?([\w\.]+)/i],[h],[/(LBBROWSER)/i],[h],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[E,[h,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[E,[h,"Facebook"]],[/FBAN\/FBIOS|FB_IAB\/FB4A/i],[[h,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[h,E],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[E,[h,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[h,/(.+)/,"$1 WebView"],E],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[h,/(.+(?:g|us))(.+)/,"$1 $2"],E],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[E,[h,"Android Browser"]],[/(coc_coc_browser)\/([\w\.]+)/i],[[h,"Coc Coc"],E],[/(sailfishbrowser)\/([\w\.]+)/i],[[h,"Sailfish Browser"],E],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[h,E],[/(dolfin)\/([\w\.]+)/i],[[h,"Dolphin"],E],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[h,"360 Browser"]],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[h,"Chrome"],E],[/(coast)\/([\w\.]+)/i],[[h,"Opera Coast"],E],[/fxios\/([\w\.-]+)/i],[E,[h,"Firefox"]],[/version\/([\w\.]+)\s.*mobile\/\w+\s(safari)/i],[E,[h,"Mobile Safari"]],[/version\/([\w\.]+)\s.*(mobile\s?safari|safari)/i],[E,h],[/webkit.+?(gsa)\/([\w\.]+)\s.*(mobile\s?safari|safari)(\/[\w\.]+)/i],[[h,"GSA"],E],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[h,[E,D.str,b.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[h,E],[/(navigator|netscape)\/([\w\.-]+)/i],[[h,"Netscape"],E],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(firefox)\/([\w\.]+)\s[\w\s\-]+\/[\w\.]+$/i,/(mozilla)\/([\w\.]+)\s.+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[h,E]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,R.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[m,/ower/,"",R.lowerize]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[m,R.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[p,v,[_,S]],[/applecoremedia\/[\w\.]+ \((ipad)/],[p,[v,"Apple"],[_,S]],[/(apple\s{0,1}tv)/i],[[p,"Apple TV"],[v,"Apple"],[_,T]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[v,p,[_,S]],[/(kf[A-z]+)(\sbuild\/|\)).+silk\//i],[p,[v,"Amazon"],[_,S]],[/(sd|kf)[0349hijorstuw]+(\sbuild\/|\)).+silk\//i],[[p,D.str,b.device.amazon.model],[v,"Amazon"],[_,y]],[/android.+aft([\w])(\sbuild\/|\))/i],[p,[v,"Amazon"],[_,T]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[p,v,[_,y]],[/\((ip[honed|\s\w*]+);/i],[p,[v,"Apple"],[_,y]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[v,p,[_,y]],[/\(bb10;\s(\w+)/i],[p,[v,"BlackBerry"],[_,y]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[p,[v,"Asus"],[_,S]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[v,"Sony"],[p,"Xperia Tablet"],[_,S]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[p,[v,"Sony"],[_,y]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[v,p,[_,I]],[/android.+;\s(shield)\sbuild/i],[p,[v,"Nvidia"],[_,I]],[/(playstation\s[34portablevi]+)/i],[p,[v,"Sony"],[_,I]],[/(sprint\s(\w+))/i],[[v,D.str,b.device.sprint.vendor],[p,D.str,b.device.sprint.model],[_,y]],[/(htc)[;_\s-]{1,2}([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[v,[p,/_/g," "],[_,y]],[/(nexus\s9)/i],[p,[v,"HTC"],[_,S]],[/d\/huawei([\w\s-]+)[;\)]/i,/android.+\s(nexus\s6p|vog-[at]?l\d\d|ane-[at]?l[x\d]\d|eml-a?l\d\da?|lya-[at]?l\d[\dc]|clt-a?l\d\di?)/i],[p,[v,"Huawei"],[_,y]],[/android.+(bah2?-a?[lw]\d{2})/i],[p,[v,"Huawei"],[_,S]],[/(microsoft);\s(lumia[\s\w]+)/i],[v,p,[_,y]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[p,[v,"Microsoft"],[_,I]],[/(kin\.[onetw]{3})/i],[[p,/\./g," "],[v,"Microsoft"],[_,y]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[p,[v,"Motorola"],[_,y]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[p,[v,"Motorola"],[_,S]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[v,R.trim],[p,R.trim],[_,T]],[/hbbtv.+maple;(\d+)/i],[[p,/^/,"SmartTV"],[v,"Samsung"],[_,T]],[/\(dtv[\);].+(aquos)/i],[p,[v,"Sharp"],[_,T]],[/android.+((sch-i[89]0\d|shw-m380s|SM-P605|SM-P610|SM-P587|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[v,"Samsung"],p,[_,S]],[/smart-tv.+(samsung)/i],[v,[_,T],p],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[v,"Samsung"],p,[_,y]],[/sie-(\w*)/i],[p,[v,"Siemens"],[_,y]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[v,"Nokia"],p,[_,y]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[p,[v,"Acer"],[_,S]],[/android.+([vl]k\-?\d{3})\s+build/i],[p,[v,"LG"],[_,S]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[v,"LG"],p,[_,S]],[/linux;\snetcast.+smarttv/i,/lg\snetcast\.tv-201\d/i],[[v,"LG"],p,[_,T]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[p,[v,"LG"],[_,y]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[v,p,[_,S]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[p,[v,"Lenovo"],[_,S]],[/(lenovo)[_\s-]?([\w-]+)/i],[v,p,[_,y]],[/linux;.+((jolla));/i],[v,p,[_,y]],[/((pebble))app\/[\d\.]+\s/i],[v,p,[_,A]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[v,p,[_,y]],[/crkey/i],[[p,"Chromecast"],[v,"Google"],[_,T]],[/android.+;\s(glass)\s\d/i],[p,[v,"Google"],[_,A]],[/android.+;\s(pixel c)[\s)]/i],[p,[v,"Google"],[_,S]],[/android.+;\s(pixel( [2-9]a?)?( xl)?)[\s)]/i],[p,[v,"Google"],[_,y]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]?note?[\s_]?(?:\d\w)?)\sbuild/i,/android.+(redmi[\s\-_]?(?:note|k)?(?:[\s_]?[\w\s]+))(?:\sbuild|\))/i,/android.+(mi[\s\-_]?(?:a\d|one|one[\s_]plus|note lte)?[\s_]?(?:\d?\w?)[\s_]?(?:plus)?)\sbuild/i],[[p,/_/g," "],[v,"Xiaomi"],[_,y]],[/android.+(mi[\s\-_]?(?:pad)(?:[\s_]?[\w\s]+))(?:\sbuild|\))/i],[[p,/_/g," "],[v,"Xiaomi"],[_,S]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[p,[v,"Meizu"],[_,y]],[/(mz)-([\w-]{2,})/i],[[v,"Meizu"],p,[_,y]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[p,[v,"OnePlus"],[_,y]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[p,[v,"RCA"],[_,S]],[/android.+[;\/\s](Venue[\d\s]{2,7})\s+build/i],[p,[v,"Dell"],[_,S]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[p,[v,"Verizon"],[_,S]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(\S(?:.*\S)?)\s+build/i],[[v,"Barnes & Noble"],p,[_,S]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[p,[v,"NuVision"],[_,S]],[/android.+;\s(k88)\sbuild/i],[p,[v,"ZTE"],[_,S]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[p,[v,"Swiss"],[_,y]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[p,[v,"Swiss"],[_,S]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[p,[v,"Zeki"],[_,S]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[v,"Dragon Touch"],p,[_,S]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[p,[v,"Insignia"],[_,S]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[p,[v,"NextBook"],[_,S]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[v,"Voice"],p,[_,y]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[v,"LvTel"],p,[_,y]],[/android.+;\s(PH-1)\s/i],[p,[v,"Essential"],[_,y]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[p,[v,"Envizen"],[_,S]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[v,p,[_,S]],[/android.+[;\/]\s*(Trio[\s\w\-\.]+)\s+build/i],[p,[v,"MachSpeed"],[_,S]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[v,p,[_,S]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[p,[v,"Rotor"],[_,S]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[v,p,[_,S]],[/android .+?; ([^;]+?)(?: build|\) applewebkit).+? mobile safari/i],[p,[_,y]],[/android .+?;\s([^;]+?)(?: build|\) applewebkit).+?(?! mobile) safari/i],[p,[_,S]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[_,R.lowerize],v,p],[/[\s\/\(](smart-?tv)[;\)]/i],[[_,T]],[/(android[\w\.\s\-]{0,9});.+build/i],[p,[v,"Generic"]],[/(phone)/i],[[_,y]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[E,[h,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[E,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[h,E],[/rv\:([\w\.]{1,9}).+(gecko)/i],[E,h]],os:[[/(xbox);\s+xbox\s([^\);]+)/i,/microsoft\s(windows)\s(vista|xp)/i],[h,E],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[h,[E,D.str,b.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[h,"Windows"],[E,D.str,b.os.windows.version]],[/\((bb)(10);/i],[[h,"BlackBerry"],E],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[h,E],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[h,"Symbian"],E],[/\((series40);/i],[h],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[h,"Firefox OS"],E],[/crkey\/([\d\.]+)/i],[E,[h,"Chromecast"]],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[h,E],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[h,"Chromium OS"],E],[/(sunos)\s?([\w\.\d]*)/i],[[h,"Solaris"],E],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[h,E],[/(haiku)\s(\w+)/i],[h,E],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[E,/_/g,"."],[h,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[h,"Mac OS"],[E,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[h,E]]},N=function(e,t){if("object"==typeof e&&(t=e,e=a),!(this instanceof N))return new N(e,t).getResult();var i=e||(r&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:s),n=t?R.extend(O,t):O;return this.getBrowser=function(){var e={name:a,version:a};return D.rgx.call(e,i,n.browser),e.major=R.major(e.version),e},this.getCPU=function(){var e={architecture:a};return D.rgx.call(e,i,n.cpu),e},this.getDevice=function(){var e={vendor:a,model:a,type:a};return D.rgx.call(e,i,n.device),e},this.getEngine=function(){var e={name:a,version:a};return D.rgx.call(e,i,n.engine),e},this.getOS=function(){var e={name:a,version:a};return D.rgx.call(e,i,n.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return i},this.setUA=function(e){return i=e,this},this};N.VERSION=o,N.BROWSER={NAME:h,MAJOR:g,VERSION:E},N.CPU={ARCHITECTURE:m},N.DEVICE={MODEL:p,VENDOR:v,TYPE:_,CONSOLE:I,MOBILE:y,SMARTTV:T,TABLET:S,WEARABLE:A,EMBEDDED:w},N.ENGINE={NAME:h,VERSION:E},N.OS={NAME:h,VERSION:E},typeof t!==l?(typeof e!==l&&e.exports&&(t=e.exports=N),t.UAParser=N):(n=function(){return N}.call(t,i,t,e),!(n!==a&&(e.exports=n)))})("object"==typeof window?window:this)}),(function(e,t){e.exports={provides:"browserId",shouldTrack:!0,isSticky:!0,getter:["sources/browser_id",function(e){return e.getId()}]}}),(function(e,t){e.exports={provides:"browserVersion",getter:["sources/browser_id",function(e){return e.getVersion()}]}}),(function(e,t,i){var n=i(171).compareVersion;e.exports={fieldsNeeded:["browserVersion","browserId"],match:function(e,t){var i=t.value,r=e.browserId,a=e.browserVersion;if(0===i.indexOf(r)){var o=i.substr(r.length);return 0===n(a,o)}return!1}}}),(function(e,t,i){var n=i(2);t.compareVersion=function(e,t){if(!t)return 0;for(var i=t.toString().split("."),r=e.toString().split("."),a=0;a<i.length;a++){if(n.isUndefined(r[a]))return-1;if(isNaN(Number(r[a]))){if(r[a]!==i[a])return-1}else{if(Number(r[a])<Number(i[a]))return-1;if(Number(r[a])>Number(i[a]))return 1}}return 0}}),(function(e,t,i){e.exports=function(e){e.registerVisitorProfileProvider(i(173)),e.registerAudienceMatcher("campaign",i(174))}}),(function(e,t,i){var n=i(118);e.exports={provides:"campaign",shouldTrack:!0,isSticky:!0,getter:[function(){return n.getQueryParamValue("utm_campaign")}]}}),(function(e,t,i){var n=i(20);e.exports={fieldsNeeded:["campaign"],match:function(e,t){return n.hasMatch(t.value,t.match,e.campaign)}}}),(function(e,t,i){e.exports=function(e){e.registerAudienceMatcher("code",i(176))}}),(function(e,t,i){var n=i(2),r=i(143);t.fieldsNeeded=[],t.match=function(e,t){if(n.isUndefined(t.value))return!0;if("function"==typeof t.value)try{return Boolean(r.apply(t.value))}catch(e){return!1}else try{return Boolean(r.eval(t.value))}catch(e){return!1}return!1}}),(function(e,t,i){e.exports=function(e){e.registerVisitorProfileProvider(i(178)),e.registerAudienceMatcher("cookies",i(179))}}),(function(e,t,i){var n=i(2),r=i(74),a=i(16),o=a.get("stores/audience_data");e.exports={provides:"cookies",isLazy:!0,getter:[function(){var e=r.getAll(),t=o.getFeaturesNeeded("cookies");return n.reduce(e,(function(e,i,r){return n.has(t,r)&&(e[r]=i),e}),{})}]}}),(function(e,t,i){var n=i(20);e.exports={fieldsNeeded:["cookies"],match:function(e,t){var i=t.name,r=t.value,a=t.match,o=e.cookies[i];return n.hasMatch(r,a,o)}}}),(function(e,t,i){e.exports=function(e){e.registerVisitorProfileProvider(i(181));var t=i(182);e.registerAudienceMatcher("custom_attribute",t),e.registerAudienceMatcher("custom_dimension",t)}}),(function(e,t,i){var n=i(2),r=i(25),a=i(23),o=i(16),s=o.get("stores/dimension_data");e.exports={provides:"custom",attributionType:r.AttributionTypes.LAST_TOUCH,restorer:function(e){return n.reduce(e,(function(e,t,i){var r=i,o=s.getByApiName(i),c=s.getById(i),u=c;return n.isObject(t)?(!t.id&&o&&(u=o,r=o.id,n.extend(t,{id:u.segmentId||u.id})),t.name||u&&u.apiName&&(t.name=u.apiName),t.id||u||a.warn("Unable to determine ID for custom attribute:",i,"; segmentation is disabled."),e[r]=t,e):(a.error('Unable to restore custom attribute "'+i+'" because value is not an object'),e)}),{})},shouldTrack:!0}}),(function(e,t,i){var n=i(2),r=i(20);t.match=function(e,t){var i;return e.custom&&(i=e.custom[t.name]),n.isObject(i)&&(i=i.value),r.hasMatch(t.value,t.match,i)}}),(function(e,t,i){e.exports=function(e){e.registerDependency("sources/device",i(184)),e.registerVisitorProfileProvider(i(185)),e.registerAudienceMatcher("device",i(186))}}),(function(e,t,i){var n=i(165);t.getDevice=function(){var e=n.get().device;return"unknown"!==e.model?e.model:"tablet"===e.type?"tablet":e.isMobile?"mobile":"desktop"}}),(function(e,t){e.exports={provides:"device",shouldTrack:!0,isSticky:!0,getter:["sources/device",function(e){return e.getDevice()}]}}),(function(e,t){e.exports={fieldsNeeded:["device"],match:function(e,t){return e.device===t.value}}}),(function(e,t,i){e.exports=function(e){e.registerVisitorProfileProvider(i(188)),e.registerAudienceMatcher("device_type",i(189))}}),(function(e,t,i){var n=i(165);e.exports={provides:"device_type",shouldTrack:!0,isSticky:!0,getter:[function(){var e=n.get().device;switch(e.type){case"mobile":return"phone";case"tablet":case"desktop_laptop":return e.type;default:return"other"}}]}}),(function(e,t){e.exports={fieldsNeeded:["device_type"],match:function(e,t){return e.device_type===t.value}}}),(function(e,t,i){e.exports=function(e){e.registerVisitorProfileProvider(i(191)),e.registerAudienceMatcher("query",i(192))}}),(function(e,t,i){var n=i(118);e.exports={provides:"queryParams",getter:[function(){return n.getQueryParams()}]}}),(function(e,t,i){var n=i(2),r=i(20);t.fieldsNeeded=["queryParams"],t.match=function(e,t){var i=n.find(e.queryParams,(function(e){return e[0]===t.name}));return r.hasMatch(t.value,t.match,i?i[1]:null)}}),(function(e,t,i){e.exports=function(e){e.registerVisitorProfileProvider(i(194)),e.registerAudienceMatcher("referrer",i(195))}}),(function(e,t,i){var n=i(79),r=i(98);e.exports={provides:"referrer",shouldTrack:!0,isSticky:!0,getter:[function(){var e=r.getReferrer()||n.getReferrer();return""===e&&(e=null),e}]}}),(function(e,t,i){var n=i(196);t.fieldsNeeded=["referrer"],t.match=function(e,t){return null!==e.referrer&&n(e.referrer,t)}}),(function(e,t,i){function n(e){var t=e.indexOf("?");return t!==-1&&(e=e.substring(0,t)),t=e.indexOf("#"),t!==-1&&(e=e.substring(0,t)),e}function r(e){return a(n(e))}function a(e,t){e=e.replace("/?","?"),e=e.toLowerCase().replace(/[/&?]+$/,"");var i=l.slice(0);t||(i=i.concat(c));for(var n=i.length,r=0;r<n;r++){var a=i[r],o=new RegExp("^"+a);e=e.replace(o,"")}return e}function o(e){var t=e.split("?");if(t[1]){var i=t[1].split("#"),n=i[0],r=i[1],a=n.split("&"),o=[];return s.each(a,(function(e){0!==e.indexOf(u)&&o.push(e)})),t[1]="",o.length>0&&(t[1]="?"+o.join("&")),r&&(t[1]+="#"+r),t.join("")}return e}var s=i(2);e.exports=function(e,t){e=o(e);var i=t.value;switch(t.match){case"exact":return e=a(e),e===a(i);case"regex":try{return Boolean(e.match(i))}catch(e){}return!1;case"simple":return e=r(e),i=r(i),e===i;case"substring":return e=a(e,!0),i=a(i,!0),e.indexOf(i)!==-1;default:return!1}};var c=["www."],u="optimizely_",l=["https?://.*?.?optimizelyedit.(com|test)/","https?://.*.?optimizelypreview.(com|test)/","https?://(edit|preview)(-hrd|-devel)?.optimizely.(com|test)/","https?://.*?.?optimizelyedit(-hrd)?.appspot.com/","https?://"]}),(function(e,t,i){e.exports=function(e){e.registerVisitorProfileProvider(i(198)),e.registerAudienceMatcher("source_type",i(200))}}),(function(e,t,i){var n=i(118),r=i(79),a=i(98),o=i(199),s=["google\\.\\w{2,3}(\\.\\w{2,3})?/(search|url)","bing\\.\\w{2,3}(\\.\\w{2,3})?/(search|url)","yahoo\\.\\w{2,3}(\\.\\w{2,3})?/search","baidu\\.\\w{2,3}(\\.\\w{2,3})?/","https://(www)?\\.google\\..*?/?$","https://search\\.yahoo\\..*?/?$","https://(www)?\\.bing\\..*?/?$"];e.exports={provides:"source_type",shouldTrack:!0,isSticky:!1,getter:[function(){return function(e,t){var i=function(){if(n.getQueryParamValue("utm_source")||n.getQueryParamValue("gclid")||n.getQueryParamValue("otm_source"))return"campaign";for(var e=a.getReferrer()||r.getReferrer(),t=0;t<s.length;t++){var i=s[t],c=e.match(i);if(c)return"search"}return e&&o.guessDomain(e)!==o.guessDomain(n.getUrl())?"referral":"direct"},c=function(e,t){return!e||"direct"!==t},u=e(),l=i();c(u,l)&&t(l)}}]}}),(function(e,t){t.guessDomain=function(e,t){if(!e)return"";try{return t?e.match(/:\/\/(.[^/]+)/)[1]:e.match(/:\/\/(?:www[0-9]?\.)?(.[^/:]+)/)[1]}catch(e){return""}}}),(function(e,t,i){var n=i(20);t.fieldsNeeded=["source_type"],t.match=function(e,t){return n.hasMatch(t.value,t.match,e.source_type)}}),(function(e,t,i){e.exports=function(e){e.registerVisitorProfileProvider(i(202)),e.registerVisitorProfileProvider(i(203)),e.registerAudienceMatcher("time_and_day",i(204))}}),(function(e,t,i){var n=i(24);e.exports={provides:"currentTimestamp",shouldTrack:!0,isLazy:!0,getter:[function(){return n.now()}]}}),(function(e,t){e.exports={provides:"offset",shouldTrack:!0,isLazy:!0,getter:[function(){return(new Date).getTimezoneOffset()}]}}),(function(e,t,i){var n=i(205);t.fieldsNeeded=["currentTimestamp"],t.match=function(e,t){return n.test(t.value,new Date(e.currentTimestamp))}}),(function(e,t,i){function n(e){var t=e.split(o);if(3!==t.length)throw new Error("Invalid time and day string "+e);var i=t[2].split(s);return{start_time:t[0],end_time:t[1],days:i}}function r(e){var t=e.split(c);if(2!==t.length)throw new Error("optly.timeAndDayInterval.timeStringToMinutes: Invalid time string "+e);return 60*parseInt(t[0],10)+parseInt(t[1],10)}var a=i(2),o="_",s=",",c=":";t.test=function(e,t){var i=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],o=n(e),s=r(o.start_time),c=r(o.end_time),u=60*t.getHours()+t.getMinutes(),l=i[t.getDay()];return u>=s&&u<=c&&a.includes(o.days,l)}}),(function(e,t,i){function n(e){var t=e.getGlobal(l);return t?e.getGlobal(t):null}var r=i(26),a=i(23),o=i(87),s=i(98),c=i(114),u=i(40),l="GoogleAnalyticsObject",d=150,f="google_universal_analytics",g=i(94),p=function(e){var t=e.integrationSettings;if(t&&t[f]&&e.experimentId&&e.variationId){var i={id:e.layerId,name:e.layerName,policy:e.layerPolicy,integrationStringVersion:e.integrationStringVersion},n={id:e.experimentId,name:e.experimentName},r={id:e.variationId,name:e.variationName},o=e.isLayerHoldback,s=g.generateAnalyticsString(i,n,r,o,d,!0);if(s)return h(s,t[f])["catch"]((function(e){a.warn("Tracker for",f,"failed:",e)}))}},h=function(e,t){var i=50,r=200;return o.pollFor((function(){return n(u)}),r,i).then((function(i){var n=t.universal_analytics_tracker,r=n?n+".":"",a=t.universal_analytics_slot,o=s.getReferrer();o&&i(r+"set","referrer",o);var c={nonInteraction:!0};c["dimension"+a]=e,i(r+"send","event","Optimizely","Assigned To Campaign",c)}))},_={preRedirectPolicy:c.PreRedirectPolicies.PERSIST_BEFORE_REDIRECT,postRedirectPolicy:c.PostRedirectPolicies.TRACK_IMMEDIATELY,nonRedirectPolicy:c.NonRedirectPolicies.TRACK_IMMEDIATELY,trackLayerDecision:p,serializeSettings:r.stringify,deserializeSettings:r.parse};e.exports=function(e){e.registerAnalyticsTracker("google_universal_analytics",_)}}),(function(e,t,i){function n(e){function t(e,t,i){try{c(t),e[i]=t}catch(e){C.emitError(new X("Bad value for eventTags["+i+"]: "+e.message))}return e}var i=N.keys(ie),n=N.omit(e,i),r=N.pick(e,i),a=N.reduce(n,t,{}),o=N.reduce(r,(function(e,i,n){var r=ie[n];r.excludeFeature||t(a,i,n);try{r.validate(i),e[n]=r.sanitize(i),a[n]=e[n]}catch(e){C.emitError(new X("Bad value for eventMetrics["+n+"]: "+e.message))}return e}),{});return o.tags=a,o}function r(e){var t=N.extend({entity_id:e.pageId,key:e.pageApiName,timestamp:e.timestamp,uuid:e.eventId,type:J},n(e.eventTags));return t}function a(e){return N.extend({entity_id:e.eventEntityId,key:e.eventApiName,timestamp:e.timestamp,uuid:e.eventId,type:e.eventCategory},n(e.eventTags))}function o(e){return N.extend({entity_id:e.eventEntityId,key:e.eventApiName,timestamp:e.timestamp,uuid:e.eventId,type:e.eventCategory},n(e.eventTags))}function s(e){return{entity_id:null,type:Q,uuid:e.eventId,timestamp:e.timestamp}}function c(e){if(null==e)throw new Error("Feature value is null");if("object"==typeof e){var t;try{t=x.stringify(e)}catch(e){}throw new Error('Feature value is complex: "'+t||'[object]"')}}function u(e){if(null==e)throw new Error("Metric value is null");if(!N.isNumber(e))throw new Error("Metric value is not numeric")}function l(e){return N.reduce(e,(function(e,t){try{c(t.value),e.push({entity_id:t.id||null,key:t.name,type:t.type,value:t.value})}catch(e){F.warn("Error evaluating user feature",t,e)}return e}),[])}function d(e,t,i){Y.dispatch(V.REGISTER_TRACKER_EVENT,{event:e,decisions:i}),f(t),D()}function f(e){var t=l(e);Y.dispatch(V.UPDATE_TRACKER_VISITOR_ATTRIBUTES,{attributes:t})}function g(e){var t=l(e.userFeatures),i={account_id:e.accountId,anonymize_ip:e.anonymizeIP,client_name:e.clientName,client_version:e.clientVersion,project_id:e.projectId,visitors:[{session_id:h(e.sessionId),visitor_id:e.visitorId,attributes:t,snapshots:[{decisions:[{campaign_id:e.layerId,experiment_id:e.experimentId,variation_id:e.variationId,is_campaign_holdback:e.isLayerHoldback}],events:[{uuid:e.decisionId,entity_id:e.layerId,timestamp:e.timestamp,type:$}]}]}]};Y.dispatch(V.REGISTER_PREVIOUS_BATCH,i),D()}function p(e){var t=N.isNull(q.getAnonymizeIP())?void 0:q.getAnonymizeIP(),i={account_id:e.accountId,anonymize_ip:t,client_name:e.clientName,client_version:e.clientVersion,project_id:e.projectId,visitors:[]};i.revision=e.revision,Z&&(i.enrich_decisions=!0);var n={session_id:h(e.sessionId),visitor_id:e.visitorId,attributes:[],snapshots:[]},r=b(e.layerStates);Y.dispatch(V.REGISTER_TRACKER_VISITOR,{data:i,visitor:n,decisions:r}),D()}function h(e){return oe?ae:e}function _(e){var t={entity_id:e.layerId,type:$,uuid:e.decisionId,timestamp:e.timestamp};Y.dispatch(V.REGISTER_TRACKER_DECISION,{decisionEvent:t,decisions:b(e.layerStates)}),f(e.userFeatures),D()}function v(){if(!W.canSend())return void F.debug("Not sending events (holding)");var e=W.hasEventsToSend(),t=W.hasPreviousBatchesToSend();return e||t?(t&&(N.each(W.getPreviousBatches(),E),Y.dispatch(V.RESET_TRACKER_PREVIOUS_BATCHES)),void(e&&(Y.dispatch(V.FINALIZE_BATCH_SNAPSHOT),E(W.getEventBatch()),Y.dispatch(V.RESET_TRACKER_EVENTS)))):void F.debug("Not sending events because there are no events to send")}function E(e){F.debug("Sending ticket:",e);var t=P.generate();B.retryableRequest({url:L,method:"POST",data:m(e)},t)}function m(e){var t=N.extend({},N.pick(e,["account_id","anonymize_ip","client_name","client_version","enrich_decisions","project_id","revision"]),{visitors:N.map(e.visitors,I)});return t}function I(e){return{visitor_id:e.visitor_id,session_id:ae,attributes:N.map(e.attributes,y),snapshots:N.map(e.snapshots,S)}}function y(e){return R(e,{entity_id:"e",key:"k",type:"t",value:"v"})}function S(e){var t=e.events;return t=T(t),{activationTimestamp:q.getActivationTimestamp(),decisions:N.map(e.decisions,A),events:N.map(t,w)}}function T(e){var t=N.reduce(e,(function(e,t){var i,n=t.type===J&&N.isEmpty(t.tags)&&N.isEmpty(N.pick(t,N.keys(ie)));if(i=n?t.type:t.uuid,e[i]){var r=e[i].timestamp;t.timestamp>r&&(r=t.timestamp),e[i]=N.extend({},e[i],{key:e[i].key+"-"+(t.key||""),entity_id:e[i].entity_id+"-"+t.entity_id,timestamp:r})}else e[i]=t;return e}),{});return N.values(t)}function A(e){return R(e,{campaign_id:"c",experiment_id:"x",is_campaign_holdback:"h",variation_id:"v"})}function w(e){return e.key===$&&(e.type=$,delete e.key),R(e,{entity_id:"e",key:"k",quantity:"q",revenue:"$",tags:"a",timestamp:"t",uuid:"u",value:"v",type:"y"})}function R(e,t){return N.reduce(e,(function(e,i,n){return n in t&&(e[t[n]||n]=i),e}),{})}function D(){function e(){var t=!ne||j.isLoaded();t&&v(),W.isPolling()&&G.setTimeout(e,te)}return W.shouldBatch()?void(W.isPolling()||(G.setTimeout(e,te),Y.dispatch(V.SET_TRACKER_POLLING,!0),G.setTimeout((function(){Y.dispatch(V.SET_TRACKER_BATCHING,!1),Y.dispatch(V.SET_TRACKER_POLLING,!1)}),ee))):void v()}function b(e){return N.map(e,(function(e){return{campaign_id:e.layerId,experiment_id:e.decision.experimentId,variation_id:e.decision.variationId,is_campaign_holdback:e.decision.isLayerHoldback}}))}function O(){var e=W.getPersistableState();if(e)try{F.debug("Persisting pending batch:",e),U.persistTrackerOptimizelyData(e),Y.dispatch(V.SET_TRACKER_DIRTY,!1)}catch(e){F.debug("Failed to persist pending batch:",e)}}var N=i(2),C=i(85),P=i(5),L="https://logx.optimizely.com/v1/events",V=i(7),k=i(75).create,x=i(26),F=i(23),M=i(114),U=i(73),G=i(40),B=i(90),z=i(16),j=i(79),H=i(86),K=i(110),Y=i(9),q=z.get("stores/global"),W=z.get("stores/tracker_optimizely"),X=t.Error=k("OptimizelyTrackerError"),Q="client_activation",$="campaign_activated",J="view_activated",Z=!0,ee=1e4,te=1e3,ie={revenue:{validate:u,sanitize:Math.floor,excludeFeature:!0},quantity:{validate:u,sanitize:Math.floor,excludeFeature:!0},value:{validate:u,sanitize:N.identity}},ne=!1,re=!1,ae="AUTO",oe=!0,se=function(e){e.timing===M.TrackLayerDecisionTimingFlags.postRedirectPolicy?g(e):_(e)},ce=[function(){return function(e){d(r(e),e.userFeatures,b(e.layerStates))}}],ue=[function(){return function(e){p(e),d(s(e),e.userFeatures,b(e.layerStates))}}],le=[function(){return function(e){d(o(e),e.userFeatures,b(e.layerStates))}}],de=[function(){return function(e){d(a(e),e.userFeatures,b(e.layerStates))}}],fe={trackLayerDecision:se,postRedirectPolicy:M.PostRedirectPolicies.TRACK_AFTER_SYNC,nonRedirectPolicy:M.NonRedirectPolicies.TRACK_IMMEDIATELY,onPageActivated:ce,onClientActivation:ue,onClickEvent:de,onCustomEvent:le};e.exports=function(e){e.registerAnalyticsTracker("optimizely",fe),H.on({filter:{type:K.TYPES.ANALYTICS,name:"sendEvents"},handler:function(){Y.dispatch(V.SET_TRACKER_SEND_EVENTS,!0),W.isPolling()||v()}}),H.on({filter:{type:K.TYPES.ANALYTICS,name:"holdEvents"},handler:function(){Y.dispatch(V.SET_TRACKER_SEND_EVENTS,!1)}}),Y.dispatch(V.SET_TRACKER_SEND_EVENTS,!re);var t=H.on({filter:{type:"lifecycle",name:"activated"},handler:function(){ W.observe(O),H.off(t)}})}}),(function(e,t,i){e.exports=function(e){e.registerViewProvider(i(209)),e.registerViewMatcher("url",i(210))}}),(function(e,t,i){var n=i(118);e.exports={provides:"url",getter:[function(){return n.getUrl()}]}}),(function(e,t,i){var n=i(196);e.exports={fieldsNeeded:["url"],match:function(e,t){return n(e.url,t)}}}),(function(e,t,i){var n="element_present",r={match:function(e,t){return!!document.querySelector(t.value)}};e.exports=function(e){e.registerViewMatcher(n,r)}}),(function(e,t,i){function n(e){return"apiName: "+e.apiName+", selector: "+e.eventFilter.selector}var r=i(109),a=i(213),o=i(23),s=i(122);e.exports=function(e){var t=new a(function(e){s.updateAllViewTags();var t=r.trackClickEvent(e);t?o.log("Tracking click event:",e):o.log("Not tracking click event:",e)});e.registerEventImplementation("click",{attach:function(e){t.hasEvents()||t.listen(),t.addEvent(e),o.debug("Started listening for click event ("+n(e)+"):",e)},detach:function(e){t.removeEvent(e),t.hasEvents()||t.unlisten(),o.debug("Stopped listening for click event ("+n(e)+"):",e)}})}}),(function(e,t,i){function n(e){this.handler=e,this.events=[],this.unlistenFn=null,this.clickHandler=a.bind((function(e){a.forEach(this.events,a.bind((function(t){try{var i=t.config&&t.config.selector?t.config.selector:t.eventFilter.selector;r(e,i,t)&&this.handler(t)}catch(e){o.emitError(new l("Unable to handle click for selector"+i+":"+e.message))}}),this))}),this)}function r(e,t,i){for(var n=e.target,r=0;n;){var s;try{s=u(n,t)}catch(s){var c={typeofElementValue:typeof n,nodeName:a.result(n,["nodeName"],null),nodeType:a.result(n,["nodeType"],null),targetName:a.result(e,["target","nodeName"],null),targetType:a.result(e,["target","nodeType"],null),numParentsTraversed:r,selector:t,errorMessage:s.message,eventId:i.id};return o.emitError(new l("Unable to evaluate match for element"),c),!1}if(s)return!0;n=n.parentElement,r++}return!1}var a=i(2),o=i(85),s=i(75).create,c=i(79),u=i(214),l=t.Error=s("ClickDelegateError");n.prototype.listen=function(){this.unlistenFn=c.addEventListener("click",this.clickHandler,!0)},n.prototype.unlisten=function(){this.unlistenFn&&(this.unlistenFn(),this.unlistenFn=null)},n.prototype.hasEvents=function(){return this.events.length>0},n.prototype.addEvent=function(e){this.events.push(e)},n.prototype.removeEvent=function(e){this.events=a.filter(this.events,(function(t){return t.apiName!==e.apiName}))},e.exports=n}),(function(e,t,i){e.exports=i(215)}),(function(e,t){"use strict";function i(e,t){if(r)return r.call(e,t);for(var i=e.parentNode.querySelectorAll(t),n=0;n<i.length;n++)if(i[n]==e)return!0;return!1}var n=Element.prototype,r=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector;e.exports=i}),(function(e,t,i){function n(e,t){if(this.change=e,this.identifier=t.identifier,this.startTime=t.startTime,d.shouldObserveChangesIndefinitely()){p.dispatch(a.INITIALIZE_CHANGE_METRICS),this.rateMeter=new _(m.MOVING_WINDOW_MILLISECONDS);var i=r.isNull(m.MAX_MACROTASKS_IN_MOVING_WINDOW)?Number.POSITIVE_INFINITY:m.MAX_MACROTASKS_IN_MOVING_WINDOW;this.rateMeter.addListener(i,r.bind((function(){h.warn("AppendChange",this,"has overheated and will no longer apply or reapply"),this.cancel(),p.dispatch(a.RECORD_CHANGE_OVERHEATED),o.emitError(new I("Change "+this.identifier+" has overheated"),{layerId:t.action&&t.action.layerId,experimentId:t.action&&t.action.experimentId,variationId:t.action&&t.action.variationId,changeId:e.id,changeType:e.type,movingWindowMilliseconds:m.MOVING_WINDOW_MILLISECONDS,maxMacroTasksInMovingWindow:i})}),this));for(var n=Math.min(i,50),s=0;s<=n;s++)this.rateMeter.addListener(s,r.partial((function(e){p.dispatch(a.RECORD_CHANGE_MACROTASK_RATE,{changeMacrotaskRate:e})}),s))}}var r=i(2),a=i(7),o=i(85),s=i(136),c=i(75).create,u=i(217),l=i(218),d=i(16).get("stores/directive"),f=i(79),g=i(219),p=i(9),h=i(23),_=i(220),v=i(135),E=i(99).create(),m={MOVING_WINDOW_MILLISECONDS:1e3,MAX_MACROTASKS_IN_MOVING_WINDOW:10},I=c("ChangeOverheatError");n.prototype.numberOfRootNodes=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes.length},n.prototype.getSiblingElements=function(e,t,i){for(var n=e,r=[],a=0;a<t;a++)i?(r.push(n.nextSibling),n=n.nextSibling):(r.push(n.previousSibling),n=n.previousSibling);return r},n.prototype.apply=function(){this.applyDeferred=l();try{var e=this.numberOfRootNodes(this.change.value);if(!e)throw new Error("No DOM elements to be created for this change: "+this.change.value);var t=r.partial(this.applyDeferred.reject,new Error("Unable to find selector.")),i={};d.shouldObserveChangesUntilTimeout()?i={timeout:r.partial(v.isTimedOut,this.startTime),onTimeout:t}:d.isEditor()&&E.waitUntil(r.partial(v.isTimedOut,this.startTime)).then(t,t),this.unobserveSelector=E.observeSelector(this.change.selector,r.bind(this.maybeApplyToElement,this),i);var n=f.querySelectorAll(this.change.selector);r.each(n,r.bind(this.maybeApplyToElement,this))}catch(e){this.applyDeferred.reject(e)}return this.applyDeferred},n.prototype.maybeApplyToElement=function(e){var t=s.CHANGE_ID_ATTRIBUTE_PREFIX+this.change.id;if(e.hasAttribute(t))return h.debug("Not applying AppendChange to element",e,"because it was inserted by this change"),void this.applyDeferred.resolve();this.rateMeter&&this.rateMeter.countCurrentTick();var i=r.bind(this.applyOrReapplyToElement,this,e,t);i(),this.applyDeferred.resolve()},n.prototype.applyOrReapplyToElement=function(e,t){var i;switch(this.change.operator){case g.DOMInsertionType.AFTER:i=g.insertAdjacentHTMLType.AFTER_END;break;case g.DOMInsertionType.APPEND:i=g.insertAdjacentHTMLType.BEFORE_END;break;case g.DOMInsertionType.BEFORE:i=g.insertAdjacentHTMLType.BEFORE_BEGIN;break;case g.DOMInsertionType.PREPEND:i=g.insertAdjacentHTMLType.AFTER_BEGIN;break;default:i=g.insertAdjacentHTMLType.BEFORE_END}e.insertAdjacentHTML(i,this.change.value),e.setAttribute(t,""),u.setData(e,this.change.id,this.identifier,[]);var n,a,o=this.numberOfRootNodes(this.change.value)-1;i===g.insertAdjacentHTMLType.BEFORE_END?(n=e.lastChild,a=this.getSiblingElements(n,o,!1)):i===g.insertAdjacentHTMLType.AFTER_BEGIN?(n=e.firstChild,a=this.getSiblingElements(n,o,!0)):i===g.insertAdjacentHTMLType.BEFORE_BEGIN?(n=e.previousSibling,a=this.getSiblingElements(n,o,!1)):i===g.insertAdjacentHTMLType.AFTER_END&&(n=e.nextSibling,a=this.getSiblingElements(n,o,!0)),a.unshift(n),r.each(a,r.bind((function(e){var i=e.nodeType===Node.ELEMENT_NODE?e:f.parentElement(e);i.setAttribute(t,"");var n=u.getData(i,this.change.id,this.identifier)||[];n.push(e),u.setData(i,this.change.id,this.identifier,n),r.each(f.childrenOf(i),(function(e){e.setAttribute(t,"")}))}),this))},n.prototype.cancel=function(){this.unobserveSelector&&this.unobserveSelector()},e.exports=function(e){e.registerChangeApplier(g.changeType.APPEND,n)}}),(function(e,t,i){function n(e,t){return[e,t].join("_")}var r=i(2),a=i(136).CHANGE_DATA_KEY;t.getData=function(e,t,i){var r=n(t,i);return e[a]&&e[a][r]?e[a][r]:null},t.hasData=function(e){return Boolean(e&&e[a]&&!r.isEmpty(e[a]))},t.removeData=function(e,t,i){e[a]&&delete e[a][n(t,i)]},t.setData=function(e,t,i,r){if("object"!=typeof r)throw new Error("setData expects an object");e[a]||(e[a]={}),e[a][n(t,i)]=r}}),(function(e,t,i){var n=i(2),r=i(12).Promise,a=function(){var e,t,i=new r(function(i,n){e=i,t=n});return i.resolve=function(){return e.apply(null,n.toArray(arguments)),i},i.reject=function(){return t.apply(null,n.toArray(arguments)),i},i};e.exports=a}),(function(e,t,i){var n=i(8);e.exports={changeType:{CUSTOM_CODE:"custom_code",ATTRIBUTE:"attribute",APPEND:"append",REARRANGE:"rearrange",REDIRECT:"redirect",WIDGET:"widget"},DOMInsertionType:{AFTER:"after",APPEND:"append",BEFORE:"before",PREPEND:"prepend"},insertAdjacentHTMLType:{AFTER_BEGIN:"afterbegin",AFTER_END:"afterend",BEFORE_BEGIN:"beforebegin",BEFORE_END:"beforeend"},selectorChangeType:{CLASS:"class",HTML:"html",HREF:"href",SRC:"src",STYLE:"style",TEXT:"text",HIDE:"hide",REMOVE:"remove"},changeApplierState:n({APPLIED:null,APPLYING:null,UNAPPLIED:null,UNDOING:null}),changeState:n({BLOCKED:null,UNAPPLIED:null,APPLIED:null,APPLYING:null,UNDOING:null,TIMED_OUT:null,IGNORED:null,ERROR:null})}}),(function(e,t,i){function n(e){this.windowLength=e,this.count=0,this.listeners={},this.isIncrementingTick=!1}var r=i(2),a=i(23),o=i(40);n.prototype.countCurrentTick=function(){this.isIncrementingTick||(this.isIncrementingTick=!0,this.increment(),o.setTimeout(r.bind((function(){this.isIncrementingTick=!1}),this),0))},n.prototype.increment=function(){this.count+=1,r.forEach(this.listeners[String(this.count)],(function(e){e()})),o.setTimeout(r.bind(this.decrement,this),this.windowLength)},n.prototype.decrement=function(){this.count-=1,this.count<0&&(a.warn("Decremented down to negative count: ",this.count),this.count=0)},n.prototype.addListener=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},e.exports=n}),(function(e,t,i){function n(e,t){if(!r.isFunction(e.value))throw new Error("Custom code must be a function");this.change=e}var r=i(2),a=i(218),o=i(219),s=i(143);n.prototype.apply=function(){var e=a();try{s.apply(this.change.value),e.resolve()}catch(t){e.reject(t)}return e},e.exports=function(e){e.registerChangeApplier(o.changeType.CUSTOM_CODE,n)}}),(function(e,t,i){var n=i(140),r=i(141).DecisionError,a="single_experiment",o="multivariate",s={selectExperiment:function(e,t,i){if(e.experiments.length<1)throw new r("Unable to find experiment to bucket user into");var a=e.experiments[0];if(!n.isValidExperiment(t,a))throw new r('Audience conditions failed for experiment: "'+a.id+'".');return a}};e.exports=function(e){e.registerDecider(a,s),e.registerDecider(o,s)}})]);