// This file uses references and method signatures that can be found in jquery.js and cash.js. // Copyright JS Foundation and other contributors, https://js.foundation/ // Copyright (c) 2014-present Ken Wheeler // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the // * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to // * permit persons to whom the Software is furnished to do so, subject to the following conditions: // * // * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the // * Software. // * // * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE // * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR // * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. (function(){"use strict";if(window.VWO=window.VWO||[],window.VWO.coreLibExecuted)return;var e,t,n,o,i,r,s;window.VWO.coreLibExecuted=1,window.VWO.v="7.0",window.VWO.v_e="b5b74c9ae",window._VWO_VaGQ_StartTime=performance.now(),window.VWO.modules={vwoUtils:{cookies:{}},utils:{},tags:{},phoenixPlugins:{events:{predefinedEvents:{}}},otherLibDeps:{}},window.VWO._=window.VWO._||{},Object.defineProperty(window.VWO._,"phoenixMT",{value:{bus:{},idMapping:{},counter:0,eventHistory:{},on:function(e,t,n){this.bus[e]=this.bus[e]||[],n&&n.syncToDataLayer&&(t.syncToDataLayer=!!n.syncToDataLayer);const o=this.bus[e].push(t);return this.idMapping[this.counter]=[e,o-1],this.counter++},once:function(e,t){this.bus[e]&&1==this.bus[e].length?this.bus[e][0]=t:this.on(e,t)},getAllEvents:function(){return Object.keys(this.bus)},trigger:function(e,t={}){var n;let o=[];if(!this.bus[e])return this.eventHistory[e]=this.eventHistory[e]||[],this.eventHistory[e].push(t);((null===(n=window._vwoCc)||void 0===n?void 0:n.delayCustomGoal)||["vwo_campaignsLoaded","vwo_insightsFunnel"].indexOf(e)>-1)&&(this.eventHistory[e]=this.eventHistory[e]||[],this.eventHistory[e].push(t));for(let n=(this.bus[e]||[]).length-1;n>=0;n--)if(this.bus[e][n])try{const i=this.bus[e][n];i.syncToDataLayer?o.push(i):i.call(this,t)}catch(e){}const i=o.length;if(i){for(let e=i-1;e>=0;e--)o[e].call(this,t);this.mergeEventPayloadAndDispatchCall(t)}},getEventHistory:function(e){return this.eventHistory[e]},clearEventHistory:function(e){delete this.eventHistory[e]},mergeEventPayloadAndDispatchCall(e){var t,n,o,i,r;const s=(null===(t=e._vwo)||void 0===t?void 0:t.syncEventData)||{},a=(null===(n=e._vwo)||void 0===n?void 0:n.eventDataConfig)||{};let c=(null===(r=null===(i=null===(o=window.VWO)||void 0===o?void 0:o.nls)||void 0===i?void 0:i.getEventsProps)||void 0===r?void 0:r.call(i,e))||{};const d=window.VWO._.cookies.get("_vwo_uuid");let l={};if(Object.keys(c).length&&Object.keys(a).length&&!a.multipleDomainCallSent){const e=Object.keys(a);for(let t=e.length-1;t>=0;--t){const n=e[t];d===n?(l[n]=Object.assign(Object.assign({},a[n]),c),l[n].addVwoPageMeta=!0):(l[n]=a[n],l[d]=c,l[d].addVwoPageMeta=!0,a.multipleDomainCallSent=!0)}}else l=Object.keys(c).length?{[d]:Object.assign(Object.assign({},c),{addVwoPageMeta:!0})}:a||{};s._vwo=s._vwo||{},s._vwo.eventDataConfig=l,Object.keys(s).length&&this.trigger("syncDataToDataLayer",{event:e,eventName:e.vwoEventName,syncEventData:s})},triggerForBothSides:function(e,t={}){this.trigger(e,t),window.VWO.phoenix('trigger("${{1}}", "${{2}}")',null,{captureGroups:[e,t]})},off:function(e){if(this.idMapping[e]){const[t,n]=this.idMapping[e];t&&(this.bus[t][n]=null,delete this.idMapping[e])}},clearEvent:function(e){if(this.bus[e]&&0!==this.bus[e].length){for(let t=0;t=this.logLevel){const a=this.formatMessage(e,t,n);null===(s=null===(r=null===(i=window.VWOEvents)||void 0===i?void 0:i.store)||void 0===r?void 0:r.actions)||void 0===s||s.addLogsForDebugging(a),o?o(a):this.consoleLog(e,[a])}}consoleLog(e,t){switch(e){case s.INFO:console.info(...t);break;case s.WARN:console.warn(...t);break;case s.ERROR:console.error(...t);break;default:console.log(...t)}}formatMessage(t,n,o){var i,a;const c=Object.keys(o).reduce(((e,t)=>e.replace(new RegExp(`{{${t}}}`,"g"),o[t])),n),d=`${e.DOM}_`;let l=o;const u=(null===(i=o.data)||void 0===i?void 0:i.vwoEventName)||o.vwoEventName;u!==d+r.CLICK&&u!==d+r.SUBMIT||(l=o.data?null===(a=o.data)||void 0===a?void 0:a.props:l.props,l=l||{name:u});let w=JSON.stringify;try{w=window.VWO._.native.JSON.stringify||JSON.stringify}catch(e){}return`VWO: [${s[t].toUpperCase()}] [${(new Date).toUTCString()}] ${c} ${w(l)}`}}var c=new a("warn"); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */function d(e,t,n,o){return new(n||(n=Promise))((function(i,r){function s(e){try{c(o.next(e))}catch(e){r(e)}}function a(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((o=o.apply(e,t||[])).next())}))}const l=function(...e){window.fetcher.getValue("VWO._.triggerEvent",e)};var u={PARSE_TLD:"pTLD"},w=["co","org","com","net","edu","au","ac"];function _(e){var t,n=e.split("."),o=n.length,i=n[o-2];return i&&w.includes(i)?(t=n[o-3]+"."+i+"."+n[o-1],l(u.PARSE_TLD,e,t),t):(t=i+"."+n[o-1],l(u.PARSE_TLD,e,t),t)}const h={SET_COOKIE:"sC",GET_COOKIE:"gC",ERASE_COOKIE:"eC",SET_THIRD_PARTY_COOKIE:"sTPC",SET_THIRD_PARTY_COOKIE_ERROR:"sTPCE"};window._vwo_evq=window._vwo_evq||[];var g="jI",p=window._vwo_evq;const v=window._vwo_ev=window._vwo_ev||function(...e){if(!e[0])throw new Error("Invalid Event:"+e[0]);e[0]!==g?p.push([].slice.call(arguments)):p.unshift([g])};let f;window.VWO._.triggerEvent=window._vwo_ev;const O={get:e=>{try{return window.localStorage.getItem(e)}catch(e){return""}},set:(e,t)=>{try{return f._setItem(e,t)}catch(e){return""}},remove:e=>{try{return f._removeItem(e)}catch(e){return!1}},getItem:function(e){return this.get(e)},setItem:function(e,t){this.set(e,t)},deleteAll:function(){},deleteItem:function(e){this.remove(e)}};function m(e){f=e}let E;function S(e){E=e}function T(e){window.VWO=null!=e?e:E}window.VWO._.localStorageService=O;const C=window.VWO._&&window.VWO._.customError||function(){},y=window.encodeURIComponent,I=window.decodeURIComponent,V=function(e){return btoa&&E._.ac&&E._.ac.bsECJ?btoa(e):y(e)},A=function(e){if(atob)try{return atob(e)}catch(e){}return I(e)},N=O.set,b=O.get,R=window.clearTimeout,L=window.setTimeout,W=Math.floor,P=Math.pow,D="(",x=")",U="_vis_opt_",k="_vwo_",M="_vis_",G=864e5,F=31536e6,$={[U+"out"]:0,[U+"exp_*_combi"]:10,[U+"exp_*_combi_choose"]:11,[U+"exp_*_goal_*"]:12,[U+"exp_*_exclude"]:13,[U+"exp_*_split"]:14,[U+"test_cookie"]:20,[U+"s"]:21,[k+"ds"]:22,[k+"sn"]:23,[k+"referrer"]:24,[k+"uuid"]:30,[k+"uuid_*"]:31,[k+"uuid_v2"]:32,[k+"app_version_*_*"]:40,[M+"preview_*"]:41,[M+"editor"]:42,[M+"heatmap_*"]:43};let j;for(const e in $)$[e]=z($[e]),$["debug"+e]="d"+$[e];function B(){for(var e=document.cookie.split(/; ?/),t={},n=0;n-1||e.indexOf("_vwo_")>-1||e.indexOf("_vis_")>-1)}function K(e){let t,n;return()=>(n=n||L((()=>{n=t=void 0}),1),t=t||e())}let J=K(B);function q(e){return J()[I(e)]}function Y(e,t,n,o=4e12){t="_vwo"===e?V(t):y(t);let i=y(e)+"="+t+"; ";n&&(i+="domain="+n+"; "),"_vwo"===e&&(o=Date.now()+F),o&&(i+="expires="+new Date(o).toUTCString()+"; "),i+="path=/",window.VWO._=window.VWO._||{},window.VWO._.ss&&(i+="; secure; samesite=none; Partitioned;"),document.cookie=i,J=K(B)}function X(){J=K(B)}function z(e){"string"==typeof e&&(e=+e),e<0&&(e=0);let t="";for(;e;){const n=e%64;let o=n.toString(36);n>=36&&(o=String.fromCharCode(n+29)),62===n&&(o="_"),63===n&&(o="-"),t=o+t,e=W(e/64)}return t||e+""}function Q(e){let t=0,n=0;for(;e;){const o=e.slice(-1);let i=26*+/[A-Z]/.test(o)+parseInt(o,36);"_"===o&&(i=62),"-"===o&&(i=63),t+=i*P(64,n++),e=e.slice(0,-1)}return t}function Z(e,t){return!e||"number"!=typeof e[2]||Date.now()>t+e[2]*G}class ee{constructor(e,t,n="cookie",o=!0,i,r,s){var a,c,d,l;this.threadInstanceSync=!1,this.defaultDelim1=(null===(c=null===(a=window._vwoCc)||void 0===a?void 0:a.cJ)||void 0===c?void 0:c.pd)||"~",this.delim1=(null===(l=null===(d=window._vwoCc)||void 0===d?void 0:d.cJ)||void 0===l?void 0:l.cd)||this.defaultDelim1,this.backwardCompatible=o,this.cookieSyncUrl=i,this.jarName=e,this.cookieStorageStrategy=n,this.domain=t,this.syncingOff=r,this.strategyConfig=s,this.syncingOff?this.cookies=this.syncFromTPCValue():this.cookies=this.syncFromCookies(),this.strategyConfig&&(this.strategyConfig.callback=this.strategyConfig.callback||function(){},this.strategyConfig.cookieJarValue=this.strategyConfig.cookieJarValue||""),j=Q(this.getInJar("ts")||"0")||Date.now(),this.setInJar("ts",z(j),2e3),this.backwardCompatible&&this.getAll(!1,!0),this.backwardCompatible||this.syncingOff||"custom"===n||this.syncCookiesToJar(),this.threadInstanceSync=!0}syncCookiesToJar(){const e=document.cookie.split(/; ?/),t=this.getAll();for(var n=0;n-1?this.delim1:this.defaultDelim1;if(e.indexOf(n)>-1)t=e.split(n);else{const n=/ts(.)/.exec(e),o=n&&n[1];o&&(t=e.split(o),this.delim1=o)}const o=t[1].split(D);return[t[0],o[0],Q(o[1])/100]}catch(n){const o=`Error occurred while decoding the cookie in cookieJar for strategy: ${t}. Cookie Value to be decoded: ${e}. ${n}`;return void C({msg:o,url:"cookie-jar.js",lineno:257,colno:26,source:y(o)})}}mapKey(e){if($[e])return $[e];const t=/([0-9]+)/g,n=e.replace(t,"*");if($[n]){const o=e.match(t)||[];return $[n]+"*"+o.map(z).join("*")}return e}unmapKey(e){const t=e.split("*"),n=t[0];let o="";for(const e in $)if($[e]===n){o=e;break}for(let e=1;e{this.syncViaXML(this.xmlSuccess)}),1e3))}updateJarMemory(e,t){this.cookies[e]=t}otherSide(...e){e[0]="VWO.modules.vwoUtils.cookies.CookieJar."+e[0],window.fetcher.getValue(...e)}}const te={primary:(e,t,n=!1,o,i)=>new Proxy(t,{construct(t,r){this.store=this.store||["1"];const s=new t(...r),a=this.store.length;this.store.push(s);let c=r;n&&(c=o(s)),Object.defineProperty(s,"otherSideCreated",{value:!1,enumerable:!1,writable:!0}),s.otherSide=(...e)=>s.otherSideCreated.then((()=>s.otherSide(...e).then((e=>e))));const d={type:"vwoClassInstanceBridge",id:a,args:c,path:e};return s.otherSideCreated=new Promise((t=>{window.fetcher.request(d).send().then((n=>{s.otherSide=(...t)=>{const o=e.dest+"."+n+"."+t[0];return t[0]=o,window.fetcher.getValue(...t)},t(null),i&&i(n)}))})),s},get(e,t){return"symbol"==typeof t||isNaN(+t)?e:this.store[t]}}),secondary:(e,t,n)=>new Proxy(t,{construct(e,t){this.store=this.store||["1"];const o=new e(...t),i=this.store.length;return this.store.push(o),n&&n(o),[i,o]},get(e,t){return"symbol"==typeof t||isNaN(+t)?e:this.store[t]}})};class ne extends ee{syncViaXML(e){if(!window.XMLHttpRequest)return;const t=new XMLHttpRequest;t.addEventListener("load",e),t.open("GET",this.cookieSyncUrl,!0),t.withCredentials=!0,t.send(null)}}const oe=te.primary({src:"VWO.modules.vwoUtils.cookies.CookieJar",dest:"VWO.modules.vwoUtils.cookies.CookieJar"},ne);function ie(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}window.VWO.modules.vwoUtils.cookies.CookieJar=oe;var re={},se;function ae(e,t){const n=document.createEvent("Event");e="vwo."+e,n.initEvent&&(n.initEvent(e,!1,!1),n.data=t,document.dispatchEvent&&document.dispatchEvent(n))}function ce(e,t){re.queue=re.queue||[];const n=window.VWO._.ac&&window.VWO._.ac.rdbg;if("meta"==e&&!n)return;if(!document.createEvent)return;const o=window.VWO;if(!o.nls||!o.nls.Recording)return void re.queue.push({eventName:e,data:t});re.queue.push({eventName:e,data:t});const i=re.queue.splice(0);for(var r of i)ae(r.eventName,r.data)}window.VWO.modules.vwoUtils.utils={customEvent:ce},function(e){e[e.Object=0]="Object",e[e.Property=1]="Property",e[e.Document=2]="Document",e[e.Variable=3]="Variable",e[e.OverWrite=4]="OverWrite",e[e.Delete=5]="Delete"}(se||(se={}));const de={CAMPAIGN_FLOW_START:"cFS",TEST_NOT_RUNNING:"tNR",CAMPAIGN_FLOW_END:"cFE",REGISTER_CONVERSION:"vwo_rC",CONVERT_GOAL_FOR_ALL_EXPERIMENTS:"cGFAE",UNHIDE_ALL_VARIATIONS:"uAV",DIMENSION_TAG_PUSHED:"dTP",CONVERT_VISIT_GOAL_FOR_EXPERIMENT:"cVGFE",UNHIDE_SECTION:"uS",EXCLUDE_URL:"eURL",BEFORE_REDIRECT_TO_URL:"bRTR",URL_CHANGED:"uC",HIDE_ELEMENTS:"hE",ELEMENT_LOAD_ERROR:"eLTTE",NOT_REDIRECTING:"vwo_notRedirecting",VISIBILITY_TRIGGERED:"vwo_visibilityTriggered",VARIATION_APPLIED:"vwo_vA",ELEMENT_LOAD_TIMER_STOP:"eLTSt",SEND_NEW_VISITOR_CALL:"sNVC",CONVERT_REVENUE_GOALS_FOR_EXPERIMENT:"cRGFE",CHOOSE_COMBINATION:"cC",START_APPLY_CHANGES:"sAC",END_APPLY_CHANGES:"eAC",CAMPAIGN_COMBI_CREATED:"cCC",ELEMENT_LOADED:"eL",ELEMENT_NOT_LOADED:"eNL",MATCH_WILDCARD:"mW",DELETE_CSS_RULE:"dCSSR",SPLIT_READY_TO_REDIRECT:"sURL",SESSION:"vwo_session",NEW_SESSION:"newSession",UNHIDE_VARIATION:"uV",NEW_SESSION_CREATED:"newSessionCreated",PAUSE:"pause",SPLIT_URL:"sURL",SHOULD_EXECUTE_LIB_ERROR:"shouldExecLib",UPDATE_SETTINGS_CALL:"uSC",EXCLUDE_GOAL_URL:"eGURL",HEATMAP_CLICK:"hCl",POST_URL_CHANGE:"hC",AFTER_SAMPLING_TRIGGER:"sT",CONVERT_ALL_VISIT_GOALS_FOR_EXPERIMENT:"cAVGFE",OPT_OUT:"oO",POST_INIT:"vwo_postInit",PAGE_VIEW:"vwo_pageView",ELEMENT_CHANGES_APPLIED:"elementChangesApplied",REGISTER_HIT:"registerHit",REDIRECT_DECISION:"rD",RETRACK_VISITOR:"retrackVisitor",CAMPAIGN_NOT_ELIGIBLE:"runCampaign.notEligible",UNHIDE_ELEMENT:"unhideElement",TOGGLE_VISIBILITY_LOCK:"runCampaign.toggleVisibilityLock",CAMPAIGN_READY:"runCampaign.campaignReady",MODIFIED_ELEMENT:"runTestCampaign.modifiedEl",ERROR:"error",SSR_COMPLETE:"vwo_mutationObserved",SET_ENV:"setEnvironment",ACTIVATED:"vwo_activated",_ACTIVATED:"vwo__activated",RECORDING_NOT_ELIGIBLE:"rNE",VARIATION_SHOWN:"vwo_variationShown",NEW_SURVEY_FOUND:"nSF",SYNC_VISITOR_PROP:"vwo_syncVisitorProp",TAG_EVALUATED:"vwo_tagEval",HTML_ELEMENT_LOADED:"vwo_elementLoaded",CAMPAIGN_UNLOADED:"vwo_campUnload",CAMPAIGNS_LOADED:"vwo_campaignsLoaded",EXECUTE_FUNNEL_FOR_GOAL_CAMPAIGN:"executeFunnelCampForGoalCampaign",EDITOR_APPLY_CHANGES_COMPLETE:"editorApplyChangesComplete",INIT_VWO_INTERNALS:"initVWOInternals",SET_CAMPAIGN_TO_OBSERVE:"setCampaignToObserve",SEGMENTATION_EVALUATED:"sE",ELEMENTS_SHOWN_WITHOUT_CHANGES:"eSWC",CUSTOM_CONVERSION:"vwo_conversion",REVENUE_CONVERSION:"vwo_revenue",DOM_SUBMIT:"vwo_dom_submit",DOM_CLICK:"vwo_dom_click",ERROR_ONPAGE:"vwo_errorOnPage",CURSOR_THRASHED:"vwo_cursorThrashed",PAGE_REFRESHED:"vwo_pageRefreshed",QUICK_BACK:"vwo_quickBack",COPY:"vwo_copy",SELECTION:"vwo_selection",LEAVE_INTENT:"vwo_leaveIntent",TAB_IN:"vwo_tabIn",TAB_OUT:"vwo_tabOut",REPEATED_SCROLLED:"vwo_repeatedScrolled",REPEATED_HOVERED:"vwo_repeatedHovered",GOAL_CONVERTED:"vwo_goalConverted",GOAL_VISIT:"vwo_goalVisit",EVALUATE_GOAL_PAGE_FOR_PREJS:"vwo_evalPreCampJs",GROUP_WINNER_CHOOSEN:"vwo_groupWinnerChosen",CHECK_SEGMENTATION:"checkSegmentation",TRACK_NEW_SESSION_CREATED:"tnSC",TRACK_SESSION_CREATED:"tSC",PAGE_UNLOAD:"vwo_pageUnload",SPA_VISIBILITY_SERVICE:"visibilityForSpa",SESSION_INIT_COMPLETE:"vwo_sessionInitComplete",TIB_DONE:"vwo_topInitializeBeginDone",TOGGLE_MUT_OBSERVER:"toggleMutationObserver",DOM_CONTENTLOADED:"vwo_dom_DOMContentLoaded",SPLIT_VARIATION_SHOWN:"splitVariationShown",VWO_EXECUTED:"vE",ACTIVATE_API_TRIGGERED:"aAT",CAMPAIGN_TAG_EXECUTED:"cTE",RUN_REVERT_TAGS:"runrT",VARIATION_SHOWN_SENT:"vwo_variationShownSent",PAGE_EXIT:"pageExitEvent",COOKIE_CONSENT_ACCEPTED:"cCA",COOKIE_CONSENT_REJECTED:"cCR",COOKIE_CONSENT_TIMEOUT:"cCT",LOAD_SURVEY_LIB:"loadSurveyLib",NATIVE_DOM_CONTENT_LOADED:"vwo_domReady",RECOM_BLOCK_SHOWN:"vwo_recommendation_block_shown",SYNC_EVENTS_COMPLETED:"vwo_syncEventsCallCompleted",SEND_SYNC_CALL:"vwo_sendSyncCall",LOAD_SETTINGS:"vwo_loadSettings"};class le{constructor(){this.handleEmptyValue=e=>""===e?"~":e,this.revertEmptyValue=e=>"~"===e?"":e,this.encodeData=e=>{const t=Object.entries(e);let n="";for(let e=0;e{if("~"===e)return;const t={},n=e.split("|");for(let e=0;e0;){const n=t.shift();null===(e=n.payload)||void 0===e||e.call(n)}}extractSavedCalls(){const e=this.getSyncDataFromConsentCookie();if(e)return this.decodeData(e)}overrideCookies(e){const t=e._create;e._create=(...n)=>{if(!this.consentMode.dT)return this.consentMode.hT&&n[0].includes("_goal")?(this.setGoalCookie(n[0],n[1]),void this.consentMode.deferredQueue.push({method:"fn",payload:()=>t.apply(e,n)})):t.apply(e,n)};const n=e.createThirdParty;e.createThirdParty=function(...t){const o=window.VWO.consentMode;if(!o.dT){if(!o.hT)return n.apply(e,t);{const[i,r,s,a]=t;if(window.VWO.modules.utils.consentModeUtils.triggerEvent(h.SET_COOKIE,i,r,s,a,!0),"_vwo"!==i&&this._create(i,r,s,a),"_combi_choose"===i.slice(-13))return;o.deferredQueue.push({method:"fn",payload:()=>n.apply(e,t)})}}};const o=e.get;e.get=(...t)=>{if(!this.consentMode.dT||"_vis_opt_test_cookie"!==t[0]){if(this.consentMode.hT){const e=this.getGoalCookie(t[0]);if(e)return e}return o.apply(e,t)}};const i=e.waitForThirdPartySync;e.waitForThirdPartySync=function(t){return window.VWO.consentMode.hT?t():i.apply(e,t)}}initConsentMode(){const e=this.consentMode||{};if(e.goalLogs=[],window.VWO.consentMode.deferredQueue=window.VWO.consentMode.deferredQueue||[],e.timeOut&&(this.consentMode.wFC=!1,this.consentMode.dT=!0,this.triggerEvent(de.COOKIE_CONSENT_TIMEOUT)),"P"===e.cConfig.cPB&&this.handlePartiallyBlocked(e),e.preview)return this.handlePreviewMode(e);this.handleConsentRejected()}handlePartiallyBlocked(e){if(e.savedCalls=this.extractSavedCalls(),e.hT&&this.setupConsentAcceptedListener(e),e.cCA&&e.savedCalls&&window.VWO._.phoenixMT.on("vwo_phoenixInitialized",(()=>{this.syncSaved(e.savedCalls),this.updateConsentCookie("~"),delete e.savedCalls})),!1===e.hT&&e.preview&&!e.dT&&!e.cCA){let e;for(const t in window._vwo_exp){e=window._vwo_exp[t];break}const t=window.VWO._.cookies.get("_vis_opt_exp_"+e.id+"_combi");if(e.multiple_domains&&t){const n="SPLIT_URL"===e.type||null,o={id:e.id,mId:""};this.syncTpc(o,t,n,e,!0)}}}setupConsentAcceptedListener(e){const t=window.VWO._.phoenixMT.on(de.COOKIE_CONSENT_ACCEPTED,(()=>{e.savedCalls&&(this.syncSaved(e.savedCalls),delete e.savedCalls),this.processQueue(),!e.preview&&this.triggerEvent(de.COOKIE_CONSENT_ACCEPTED),this.updateConsentCookie("~"),window.VWO._.phoenixMT.off(t)}))}queueGoalLogs(e,t,n,o){const i=window.VWO.consentMode;if(!i||!i.preview)return!0;if(i.dT)return!1;if(!i.hT)return!0;if(!window.mainThread)return window.fetcher.getValue('VWO.modules.utils.consentModeUtils.queueGoalLogs("${{1}}","${{2}}", "${{3}}", "${{4}}")',null,{captureGroups:[e,t,n,o]}),!1;let{goalLogs:r}=i;return r.push({expId:e,goalId:t,revenue:n,success:o}),!1}triggerGoalLogs(){const e=window.VWO.consentMode.goalLogs;for(;e.length>0;){const t=e.shift(),{expId:n,goalId:o,revenue:i,success:r}=t;window.VWO.modules.tags.wildCardCallback({oldArgs:[n,o,i,r],campaignId:n,goalId:o},de.REGISTER_CONVERSION)}}handlePreviewMode(e){e.hT&&window.VWO.phoenix&&window.VWO.phoenix('on("${{1}}", "${{2}}")',null,{captureGroups:[de.URL_CHANGED,()=>{window.fetcher.setValue("VWO.consentMode.goalLogs",[])}]}),this.setupConsentTimeoutListener(e),this.setupConsentAcceptedListenerForPreview(e),this.setupConsentRejectedListenerForPreview(e)}setupConsentTimeoutListener(e){window.VWO._.phoenixMT.on(de.COOKIE_CONSENT_TIMEOUT,(()=>{this.triggerEvent(de.COOKIE_CONSENT_TIMEOUT),e.wFC&&window.fetcher.setValue("VWO.consentMode.wFC",!1),window.fetcher.setValue("VWO.consentMode.dT",!0)}))}setupConsentAcceptedListenerForPreview(e){window.VWO._.phoenixMT.on(de.COOKIE_CONSENT_ACCEPTED,(()=>{this.triggerEvent(de.COOKIE_CONSENT_ACCEPTED),this.triggerGoalLogs(),e.wFC&&window.fetcher.setValue("VWO.consentMode.wFC",!1),!e.dT&&window.fetcher.setValue("VWO.consentMode.dT",!1)}))}setupConsentRejectedListenerForPreview(e){window.VWO._.phoenixMT.on(de.COOKIE_CONSENT_REJECTED,(()=>{this.triggerEvent(de.COOKIE_CONSENT_REJECTED),window.fetcher.setValue("VWO.consentMode.dT",!0)}))}handleConsentRejected(){window.VWO._.phoenixMT.on(de.COOKIE_CONSENT_REJECTED,(()=>{window.fetcher.setValue("VWO.consentMode.dT",!0)}))}triggerEvent(e){window.VWO.phoenix&&window.VWO.phoenix('trigger("${{1}}")',null,{captureGroups:[e]})}getGoalCookie(e){return this.goalCookieStore[e]}setGoalCookie(e,t){return window.mainThread&&window.fetcher.getValue('VWO.modules.utils.consentModeUtils.setGoalCookie("${{1}}","${{2}}")',null,{captureGroups:[e,t]}),this.goalCookieStore[e]=t}deferOnConsent(e,t,n,o,i,r,...s){if(!this.consentMode)return;const{dT:a,hT:c,deferredQueue:d}=this.consentMode;if(a)return!0;if(c){if(["applySyncRequest","handlerForReqFromWT"].includes(e)){if(!i.includes("_goal"))return!1;if(this.setGoalCookie(i,r),"handlerForReqFromWT"===e)return d.push({method:e,payload:()=>document.cookie=s[0]})}return i&&i.name===de.VARIATION_SHOWN&&this.saveForSync(r.d),n&&n(o||{}),d.push({method:e,payload:()=>t[e].apply(t,s)}),!0}}prepareDataForSync(e,t,n){const o={d:{}};o.d.msgId=e.mId,o.d.visId=e.mId.split("-")[0],o.d.sessionId=e.sId;const i={title:e.p.t,url:e.p.u,referrerUrl:e.p.rU};return this.consentMode.customParams=i,o.d.event={props:{page:i,id:e.id,variation:t,isFirst:1},name:de.VARIATION_SHOWN,time:Date.now()},null!=n&&(o.d.event.props.isSplitVariation=n),o}addCustomParams(e){const t=this.consentMode;return!t||(!t.customParams||(!e.includes(de.VARIATION_SHOWN)&&!e.includes("l.gif")||"P"!==t.cConfig.cPB||!("P"===t.cConfig.cPB&&!t.hT)))}syncSaved(e){const t={VWO:{firedTime:Date.now()},executingTagTrigger:null,name:de.VARIATION_SHOWN,props:{},time:Date.now()};Object.keys(e).map((n=>{const o=e[n],i=window._vwo_exp[o.id];let r=null,s=null;if("SPLIT_URL"===i.type&&(r=!0,s="1"!=n),!window.VWO._.cookies.get("_vis_opt_exp_"+o.id+"_combi"))return;const a=this.prepareDataForSync(o,n,s);window.VWO.modules.tags.dataSync.utils.addDataFromMTAndSend(null,null,a,null,!0,null,t,+o.id),this.syncImg(o,n,i),this.syncTpc(o,n,r,i)}))}syncTpc(e,t,n,o,i=!1){if(!o.multiple_domains)return;const r=[`_vwo_uuid_${e.id}`,e.mId.split("-")[0],3650,void 0,e.id,void 0,o];!i&&window.VWO._.cookies.createThirdParty(...r),r[0]=`_vis_opt_exp_${e.id}_combi`,r[1]=t,r[3]=100,window.VWO._.cookies.createThirdParty(...r),null!=n&&(r[0]=`_vis_opt_exp_${e.id}_split`,window.VWO._.cookies.createThirdParty(...r))}syncImg(e,t,n){let o=window.VWO.modules.utils.libUtils.extraData2();const i=encodeURIComponent(o);o=n.ps||void 0===n.ps?"&ed="+i:"";const r="l.gif?experiment_id="+e.id+"&account_id="+window._vwo_acc_id+"&cu="+encodeURIComponent(e.p.u)+"&combination="+t+"&s=1&sId="+e.sId+"&u="+e.mId.split("-")[0]+o;window.VWO.modules.tags.dataSync.utils.sendCall(null,{url:r},null,null,!0)}saveForSync(e){let t=this.getSyncDataFromConsentCookie(),n=t?this.decodeData(t):{};const o={rU:e.event.props.page.referrerUrl,u:e.event.props.page.url,t:e.event.props.page.title},i={sId:e.sessionId,mId:e.msgId,p:o,id:e.event.props.id},r=Object.assign(Object.assign({},n),{[e.event.props.variation]:i});let s=this.encodeData(r);this.updateConsentCookie(s)}getSyncDataFromConsentCookie(){const e=document.cookie.split("; ").find((e=>e.startsWith("_vwo_consent=")));if(e){const t=decodeURIComponent(e.split("=")[1]).split(":");if(t.length>1)return t.shift(),"~"===t[0]?null:t.join(":")}return null}updateConsentCookie(e){const t=document.cookie.match(/(^|;\s*)_vwo_consent=([^;]*)/),n=t?t[2]:null;let o="";if(n){o=decodeURIComponent(n).split(":")[0]}const i=encodeURIComponent(`${o}:${e}`);document.cookie=`_vwo_consent=${i}; path=/; domain=.${window.VWO.consentMode.domain}; max-age=31536000`}}const ue=function(){const e=window.VWO.consentMode;return!!e&&!!e.dT},we=new le;window.VWO.modules.utils.consentModeUtils=we;const{toString:_e}=Object.prototype;function he(e){return"[object Object]"===_e.call(e)}function ge(e){return"[object Array]"===_e.call(e)}function pe(e){return"[object Null]"===_e.call(e)}function ve(e){return"[object Undefined]"===_e.call(e)}function fe(e){return!ve(e)&&!pe(e)}function Oe(e){return!Number.isNaN(e)&&"[object Number]"===_e.call(e)}function me(e){return"[object String]"===_e.call(e)}let Ee=!1;function Se(e){return e.split(";").reduce(((e,t)=>{const n=t.indexOf("=");if(-1!==n){const o=t.substring(0,n).trim(),i=t.substring(n+1).trim();e[o]=i}else e[t.trim()]="";return e}),{})}class Te{constructor(){this.operations=[]}push(e,t){this.operations.push({name:e,value:t})}pop_front(){this.operations.splice(0,1)}fullfil(e,t=!0){const n=Se(e);t&&this.pop_front(),this.operations.forEach((e=>{n[e.name]=e.value}));return Object.entries(n).map((e=>e.join("="))).join("; ")}}class Ce{static internalUtils(){var e,t;return{isCookiePayloadObject:e=>!(!he(e)||!["value","fromThread","origin"].reduce(((t,n)=>t&&n in e),!0)),isCurrentContextMT:!!(null===(t=null===(e=window)||void 0===e?void 0:e.mainThread)||void 0===t?void 0:t.webWorker)}}getSetter(e){return t=>{if("string"==typeof t)t={value:t};else if(!Ce.internalUtils().isCookiePayloadObject(t))return void console.error("Invalid value type!");const{value:n,fromThread:o}=t;let{origin:i}=t,r=!0;return(Ce.internalUtils().isCurrentContextMT||"MAIN"===o)&&(document.__cookie=n,r="MAIN"!==o),r&&e({type:"sync",data:{propertyName:"cookie",value:{value:Ce.internalUtils().isCurrentContextMT?document.__cookie:n,fromThread:Ce.internalUtils().isCurrentContextMT?"MAIN":"WORKER",origin:Ee?"WORKER":i}},syncType:se.Document}),!0}}}function ye(e){if(!Ce.internalUtils().isCookiePayloadObject(e))return void console.error("Invalid value type!");const{value:t}=e;if(window.VWO.consentMode){if(ue())return;let e=t.split("=");if(we.deferOnConsent("handlerForReqFromWT",null,null,null,e[0],e[1],t))return}Ee=!0,document.cookie=t,Ee=!1}let Ie={};{class e{constructor(){this.enabled=!1,this.lastSentCookieString=""}isEnabled(){return this.enabled}enable(){this.enabled||(this.enabled=!0,window.fetcher.setValue("window.VWO._.isCookieFallbackEnabled",!0))}syncCookieToWorkerThread(e=(Ce.internalUtils().isCurrentContextMT?"MAIN":"WORKER")){!this.enabled||this.lastSentCookieString===document.cookie&&"WORKER"!==e||(this.lastSentCookieString=document.cookie,window.fetcher.postMessage({type:"sync",data:{propertyName:"cookie",value:{value:document.cookie,fromThread:Ce.internalUtils().isCurrentContextMT?"MAIN":"WORKER",origin:e}},syncType:se.Document}))}applySyncRequest(e){const{value:t}=e;if(!t)return window.VWO&&window.VWO._&&window.VWO._.customError&&window.VWO._.customError({msg:"Syncing error occurred in cookie fallback mode - value not present!",url:"fallback/cookies.ts",lineno:65,colno:10,source:window.VWO._.native.JSON.stringify(t)});if(window.VWO.consentMode){if(ue())return;let n=t.split("=");if(we.deferOnConsent("applySyncRequest",this,null,null,n[0],n[1],e))return}document.cookie=t,this.syncCookieToWorkerThread("WORKER")}}Ie=new e}function Ve(e,t={sendErrorLog:!1}){try{return e()}catch(e){return void(t.sendErrorLog&&setTimeout((()=>{try{window.VWO._.customError({msg:t.msg||"safelyGetValue failed!",url:t.url||"errorHandler.ts",lineno:t.lineno||15,colno:t.colno||16,source:t.source||e})}catch(e){}}),100))}}function Ae(e,t){try{return e()}catch(e){return void(t&&!t.disabledErrLog&&console.error("Error occurred:",e))}}const Ne=()=>window._vwoCc||{},be=e=>{const t=Ne();return t.SPA_SPLIT=t.SPA_SPLIT||{},!(!t.SPA_SPLIT[e]&&!t.SPA_SPLIT["*"])},Re=(()=>{const e=Ne().debugConfig||{};return{CLICK_DEBUG:e.CLICK_DEBUG,TIMEOUT_DEBUG:e.TIMEOUT_DEBUG,GA_DEBUG:e.GA_DEBUG,URL_DEBUG:e.URL_DEBUG,VARIATION_SHOWN_DEBUG:e.VARIATION_SHOWN_DEBUG}})(),Le=()=>Ne().disableAsp,We=Ne().CLICK_PERF||window._vwo_acc_id>=9e5,Pe=Ne().tpcBeacon,De=Ve((()=>window.VWO._.useCdn))||!1,xe=()=>Ne().enableRefreshLimit,Ue=Ne().expUrlChange;var ke,Me=window._vwo_acc_id,Ge=[],Fe=0,$e,je=!1,Be=function(){for(var e=0;evoid 0===e))||(e.backwardCompatible=t.data.cj.bc||!1,e.strategy=e.strategy||t.data.cj.s),e}const Je={domain:void 0,_create:function(e,t,n,o,i,r,s){var a,c;He()&&0!==e.indexOf("debug")&&(e="debug"+e);const d=n>0;let l=window._vis_opt_cookieDays;window.VWO._.cLFE&&(r=!1),"_vwo_sn"!==e&&"_vwo_ds"!==e&&"_vis_opt_test_cookie"!==e&&!isNaN(l=parseFloat(l))&&isFinite(l)&&d&&(n=l);var u="";if(i?u+="; expires="+new Date(i).toGMTString():n?u+="; expires="+new Date((new Date).getTime()+864e5*n).toGMTString():!1===n&&(u="; expires=Thu, 01 Jan 1970 00:00:01 GMT"),o||(o=Je.domain),void 0!==o){o=(null===(c=null===(a=window.VWO._.allSettings.dataStore.plugins.DACDNCONFIG)||void 0===a?void 0:a.jsConfig)||void 0===c?void 0:c.dNISD)&&!window._vis_opt_domain?"":"; domain=."+o}const w=e+"="+encodeURIComponent(t)+u+(o||"")+"; path=/";window.VWO._.ss&&!s?(document.cookie=w+"; secure; samesite=none; Partitioned;",6===window._vwo_acc_id&&e.indexOf("_vwo_ds")>-1&&!je&&(this.create(e,"",!1,o,1,r,!0),je=!0)):document.cookie=w},create:function(e,t,n,o,i,r,s){this._create(e,t,n,o,i,r,s),Ie.syncCookieToWorkerThread(),v(h.SET_COOKIE,e,t,n,i),ce("meta",{ckName:e,ckValue:t,ckDays:n,ckExpiryTs:i})},get:function(e,t,n){var o;e=e.trim(),!n&&He()&&(e="debug"+e),window.VWO._.cLFE;var i=document.cookie.match(new RegExp("(?:^|;)\\s*"+e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")+"=(.*?)(?:;|$)","i"));return o=i&&decodeURIComponent(i[1]),v(h.GET_COOKIE,e,o),o},erase:function(e,t,n){this.create(e,"",!1,t,1,n),v(h.ERASE_COOKIE,e)},mergeInFPJar:function(){if(window.VWO._.cLFE)return;const e=this.createThirdPartyJar().getAll(!0);for(const t in e){if("ts"===t)continue;const n=e[t][1],o=e[t][0];window.VWO._.jar.set(t,o,(n-Date.now())/864e5)}},createThirdPartyJar:function(){return ke||(ke=new oe("_vwo_third_party",Je.domain,void 0,!1,void 0,!0),window.VWO._.tpj=ke,ke)},setThirdPartyCookiesInJar:function(e,t,n,o){const i=this.createThirdPartyJar(),r=o?(o-Date.now())/864e5:n;i.set(e,t,r)},getThirdPartyJarValue:function(){const e=ke.getStoredJarValue();return e.length?e:null},createThirdParty:function(e,t,n,o,i,r,s){if(!window.mainThread)return window.fetcher.getValue("VWO._.cookies.createThirdParty",[e,t,n,o,i,r,s]);var a,c,d,l;let u=!1;if(i&&(u=s?s.multiple_domains:window._vwo_exp[i].multiple_domains),"_vwo"!==e&&this._create(e,t,n,o),He()&&0!==e.indexOf("debug")&&(e="debug"+e),!((l=window.vwo_$)&&i&&u||r||"_vwo"===e))return void v(h.SET_THIRD_PARTY_COOKIE_ERROR,e,t,n,o);a=l("