// 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="8105eb596",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 d=(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 c=window.VWO._.cookies.get("_vwo_uuid");let l={};if(Object.keys(d).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];c===n?(l[n]=Object.assign(Object.assign({},a[n]),d),l[n].addVwoPageMeta=!0):(l[n]=a[n],l[c]=d,l[c].addVwoPageMeta=!0,a.multipleDomainCallSent=!0)}}else l=Object.keys(d).length?{[c]:Object.assign(Object.assign({},d),{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 d=Object.keys(o).reduce(((e,t)=>e.replace(new RegExp(`{{${t}}}`,"g"),o[t])),n),c=`${e.DOM}_`;let l=o;const u=(null===(i=o.data)||void 0===i?void 0:i.vwoEventName)||o.vwoEventName;u!==c+r.CLICK&&u!==c+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()}] ${d} ${w(l)}`}}var d=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 c(e,t,n,o){return new(n||(n=Promise))((function(i,r){function s(e){try{d(o.next(e))}catch(e){r(e)}}function a(e){try{d(o.throw(e))}catch(e){r(e)}}function d(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}d((o=o.apply(e,t||[])).next())}))}const l={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",VARIATION_APPLIED_ERROR:"vwo_variationAppliedError",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",DEBUG_EVENT:"vwo_debugLogs"};var u;!function(e){e.ANALYSIS="r",e.ANALYZE_FORM="a",e.ANALYZE_HEATMAP="a",e.ANALYZE_RECORDING="a",e.FUNNEL="t",e.SURVEY="s",e.TRACK="t",e.INSIGHTS_FUNNEL="t",e.INSIGHTS_METRIC="t"}(u||(u={}));class w{otherSide(...e){return e[0]="VWO.modules.tags.dataSync."+e[0],window.fetcher.getValue(...e)}}let _="",p=()=>"",h=e=>e,g=e=>e;window.VWO._.namespaceKeyWithAccId=h;const v="lT",f="sT",O="ivp",E="ca",m=10,S="custom",T=function(){},C=[739074,714884,708439,765649],I={VS_DATA:"vwoVsData"},y={SPLIT_REDIRECT:"_vwo_split_redirect"},A="vwoStandardTrigger",N={get campaignCookies(){return new RegExp("_vis_opt_exp_(\\d+)_(.+)")},get uuidCookie(){return new RegExp("_vwo_uuid_(\\d+)")}},V={SET_COOKIE:"sC",GET_COOKIE:"gC",ERASE_COOKIE:"eC",SET_THIRD_PARTY_COOKIE:"sTPC",SET_THIRD_PARTY_COOKIE_ERROR:"sTPCE"};class b{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(V.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(l.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(l.COOKIE_CONSENT_ACCEPTED,(()=>{e.savedCalls&&(this.syncSaved(e.savedCalls),delete e.savedCalls),this.processQueue(),!e.preview&&this.triggerEvent(l.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},l.REGISTER_CONVERSION)}}handlePreviewMode(e){e.hT&&window.VWO.phoenix&&window.VWO.phoenix('on("${{1}}", "${{2}}")',null,{captureGroups:[l.URL_CHANGED,()=>{window.fetcher.setValue("VWO.consentMode.goalLogs",[])}]}),this.setupConsentTimeoutListener(e),this.setupConsentAcceptedListenerForPreview(e),this.setupConsentRejectedListenerForPreview(e)}setupConsentTimeoutListener(e){window.VWO._.phoenixMT.on(l.COOKIE_CONSENT_TIMEOUT,(()=>{this.triggerEvent(l.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(l.COOKIE_CONSENT_ACCEPTED,(()=>{this.triggerEvent(l.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(l.COOKIE_CONSENT_REJECTED,(()=>{this.triggerEvent(l.COOKIE_CONSENT_REJECTED),window.fetcher.setValue("VWO.consentMode.dT",!0)}))}handleConsentRejected(){window.VWO._.phoenixMT.on(l.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:d,deferredQueue:c}=this.consentMode;if(a)return!0;if(d){if(["applySyncRequest","handlerForReqFromWT"].includes(e)){if(!i.includes("_goal"))return!1;if(this.setGoalCookie(i,r),"handlerForReqFromWT"===e)return c.push({method:e,payload:()=>document.cookie=s[0]})}return i&&i.name===l.VARIATION_SHOWN&&this.saveForSync(r.d),n&&n(o||{}),c.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:l.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(l.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:l.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=`${this.ccN}=`,t=document.cookie.split("; ").find((t=>t.startsWith(e)));if(t){const e=decodeURIComponent(t.split("=")[1]).split(":");if(e.length>1)return e.shift(),"~"===e[0]?null:e.join(":")}return null}updateConsentCookie(e){const t=document.cookie.match(new RegExp(`(^|;\\s*)${this.ccN}=([^;]*)`)),n=t?t[2]:null;let o="";if(n){o=decodeURIComponent(n).split(":")[0]}const i=encodeURIComponent(`${o}:${e}`);document.cookie=`${this.ccN}=${i}; path=/; domain=.${window.VWO.consentMode.domain}; max-age=31536000`}}const R=function(){const e=window.VWO.consentMode;return!!e&&!!e.dT},L=new b;window.VWO.modules.utils.consentModeUtils=L;class W{formatErrorObject(e){return"string"==typeof e&&(e={msg:e}),e}setCustomError(e){const t=this;window.VWO._.customError=function(n){n=t.formatErrorObject(n),e(n)}}}const P=e=>{try{window.VWO._.customError(e)}catch(e){}};function D(e,t={sendErrorLog:!1}){try{return e()}catch(e){return void(t.sendErrorLog&&setTimeout((()=>{try{P({msg:t.msg||"safelyGetValue failed!",url:t.url||"errorHandler.ts",source:t.source||e})}catch(e){}}),100))}}function x(e,t){try{return e()}catch(e){return void(t&&!t.disabledErrLog&&console.error("Error occurred:",e))}}function U(e){window.vwo_iehack_queue||(window.vwo_iehack_queue=[]),window.vwo_iehack_queue.push(e)}function M(e){const{data:t,apiToUse:n,headers:o,success:i,complete:r,error:s}=e,{url:a}=e,d=n&&new(n.get("XMLHttpRequest"))||new XMLHttpRequest;if(d.open("POST",a,!0),o)for(const e in o)o.hasOwnProperty(e)&&d.setRequestHeader(e,o[e]);t instanceof FormData&&(d.formData=t),d.send(t),d.onload=function(){i.call(this),r.call(this,e.callbackContext)},d.onerror=function(){s.call(this),r.call(this,e.callbackContext)}}function k(e,t){const{apiToUse:n,success:o,error:i,complete:r,callbackContext:s}=e;let{url:a}=e;const d=n&&new(n.get("Image"))||new Image;a+=t?"&_bf=1":"",d.src=a,d.onload=function(){o.call(this),r.call(this,s)},d.onerror=function(){i.call(this),r.call(this,{isError:!0})},U(d)}function G(e,t){e.data?M(e):k(e,false)}function F(e){let{url:t,miscOptions:n}=e;t.indexOf("?")<0&&(t+="?");if(t+=n?(void 0!==n.vn?"&vn="+n.vn:"")+(void 0!==n.vns?"&vns="+n.vns:"")+(void 0!==n.vno?"&vno="+n.vno:""):"",t.indexOf("&cu=")<0&&t.indexOf("&url=")<0&&L.addCustomParams(t)){const n=D((()=>e.additionalOptions.cUrl))||window.VWO._.lastPageUnloadURL||document.URL;t+="&_cu="+encodeURIComponent(n.slice(0,100))}return t.indexOf("&cu=")<0&&!L.addCustomParams(t)&&(t+="&_cu="+encodeURIComponent(window.VWO.consentMode.customParams.url.slice(0,100))),document.referrer&&t.indexOf("&ru=")<0&&L.addCustomParams(t)&&(t+="&_ru="+encodeURIComponent(document.referrer.slice(0,100))),t.indexOf("?&")>0&&(t=t.replace("?&","?")),t}const $=function(e){const t=function(){};let n=!1;(e.success||e.error)&&(n=!0),e.success=e.success||t,e.error=e.error||t,e.complete=e.complete||t,e.url=F(e),e.callbackContext=e.callbackContext||{},e.apiToUse=window.DISABLE_NATIVE_CONSTANTS?void 0:window.VWO._.nativeConstants;const{data:o,url:i,useBeacon:r,complete:s}=e;if(n&&!r)return G(e,!1),{typeOfCall:$.callTypes.NONBEACON};{const t=D((()=>window.VWO._.nativeConstants.get("navigator")))||window.navigator;return"function"==typeof t.sendBeacon&&(window.VWO.data&&window.VWO.data.fB||r)&&t.sendBeacon(i,o)?(s(e.callbackContext),{typeOfCall:$.callTypes.BEACON}):(G(e,!0),{typeOfCall:$.callTypes.NONBEACON})}};let j;function B(e){j=e}function H(e){window.VWO=null!=e?e:j}$.shouldCompress=function(e){return e.length>1800},$.callTypes={BEACON:"beacon",NONBEACON:"non-beacon"};var K=parseInt(+new Date/1e3,10),J,q=function(){return J||(J=window.VWO.data.ts||K)};const Y=Object.keys;function X(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}function z(e,t){var n;if(e&&"function"==typeof t)if(e instanceof Array){for(n=0;n{n=!1,e.apply(this,o)}),t))}}function de(e,t,n){var o,i,r,s=!1;return-1===t||n?(i=requestAnimationFrame,r=cancelAnimationFrame):(i=setTimeout,r=clearTimeout),function(...n){s&&(r(o),o=null),o=i((function(){e.apply(this,n)}),t),s=!0}}let ce=0;const le={};function ue(e,t){const n=++ce;le[n]={executeCallback:()=>{delete le[n],e()},animationFrameId:null,timeOutId:null};const o=function(){return window.setTimeout((()=>{le[n]&&(null!==le[n].animationFrameId&&cancelAnimationFrame(le[n].animationFrameId),le[n].executeCallback())}),1e3/60)},i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||o;t||j&&j._&&j._.ac&&j._.ac.aSP?(le[n].animationFrameId=i((()=>{le[n]&&(null!==le[n].timeOutId&&clearTimeout(le[n].timeOutId),le[n].executeCallback())})),o!=i&&(le[n].timeOutId=o())):e()}function we(){var e,t,n;return(null===(n=null===(t=null===(e=window.google_tag_manager)||void 0===e?void 0:e[Object.getOwnPropertyNames(window.google_tag_manager).filter((e=>-1!==e.indexOf("GTM")))[0]])||void 0===t?void 0:t.dataLayer)||void 0===n?void 0:n.name)||"dataLayer"}function _e(e,t,n=""){try{if(!t||"object"!=typeof t)return;let o,i;if(e.endsWith("]")){const t=e.match(/(.+?)\[(\d+)\]/);t&&(i=e,e=t[1],o=parseInt(t[2]))}if(t.hasOwnProperty(e)){let i=t[e];if(void 0!==o){if(!Array.isArray(i))return;i=i[o]}return n?_e(n.slice(1),i):i}{const o=(e=i||e).lastIndexOf(".");if(-1===o)return;const r=e.substring(0,o);return _e(r,t,e.substring(o)+n)}}catch(e){}}function pe(e,t){return e.length>t?e.slice(0,t-1)+"...":e}function he(e){return e?Math.round(100*e)/100:0}function ge(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function ve(){}try{ve.prototype=Object.create(Array.prototype),Object.defineProperty(ve.prototype,"clear",{value:void 0,writable:!0,enumerable:!1})}catch(e){}function fe(e,t,n){if(void 0!==n){const o=e.includes("?")?"&":"?";e+=`${o}${t}=${encodeURIComponent(n)}`}return e}var Oe=Object.freeze({__proto__:null,getKeys:Y,extend:X,forEach:z,arrayContains:Q,setAttrs:Z,isAbsoluteUrl:ee,map:te,filter:ne,getServerStartTimestamp:oe,getCurrentTimestamp:ie,getTimeZoneOffset:re,throttle:se,throttle2:ae,debounce:de,processCallbackInRequestAnimationFrame:ue,getdLName:we,getVariableValue:_e,truncateData:pe,roundNumber:he,isObject:ge,ArrayPrototypeCopy:ve,appendParamIfDefined:fe});const Ee=function(...e){window.fetcher.getValue("VWO._.triggerEvent",e)};var me={PARSE_TLD:"pTLD"},Se=["co","org","com","net","edu","au","ac"];function Te(e){var t,n=e.split("."),o=n.length,i=n[o-2];return i&&Se.includes(i)?(t=n[o-3]+"."+i+"."+n[o-1],Ee(me.PARSE_TLD,e,t),t):(t=i+"."+n[o-1],Ee(me.PARSE_TLD,e,t),t)}window._vwo_evq=window._vwo_evq||[];var Ce="jI",Ie=window._vwo_evq;const ye=window._vwo_ev=window._vwo_ev||function(...e){if(!e[0])throw new Error("Invalid Event:"+e[0]);e[0]!==Ce?Ie.push([].slice.call(arguments)):Ie.unshift([Ce])};window.VWO._.triggerEvent=window._vwo_ev;class Ae{}function Ne(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}var Ve={};function be(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 Re(e,t){Ve.queue=Ve.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 Ve.queue.push({eventName:e,data:t});Ve.queue.push({eventName:e,data:t});const i=Ve.queue.splice(0);for(var r of i)be(r.eventName,r.data)}const Le=(e=(e=>null))=>{window.VWO._.vAEH=e};var We;window.VWO.modules.vwoUtils.utils={customEvent:Re},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"}(We||(We={}));const{toString:Pe}=Object.prototype;function De(e){return"[object Object]"===Pe.call(e)}function xe(e){return"[object Array]"===Pe.call(e)}function Ue(e){return"[object Null]"===Pe.call(e)}function Me(e){return"[object Undefined]"===Pe.call(e)}function ke(e){return!Me(e)&&!Ue(e)}function Ge(e){return!Number.isNaN(e)&&"[object Number]"===Pe.call(e)}function Fe(e){return"[object String]"===Pe.call(e)}let $e=!1;function je(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 Be{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=je(e);t&&this.pop_front(),this.operations.forEach((e=>{n[e.name]=e.value}));return Object.entries(n).map((e=>e.join("="))).join("; ")}}class He{static internalUtils(){var e;return{isCookiePayloadObject:e=>!(!De(e)||!["value","fromThread","origin"].reduce(((t,n)=>t&&n in e),!0)),isCurrentContextMT:!!(null===(e=null===window||void 0===window?void 0:window.mainThread)||void 0===e?void 0:e.webWorker)}}getSetter(e){return t=>{if("string"==typeof t)t={value:t};else if(!He.internalUtils().isCookiePayloadObject(t))return void console.error("Invalid value type!");const{value:n,fromThread:o}=t;let{origin:i}=t,r=!0;return(He.internalUtils().isCurrentContextMT||"MAIN"===o)&&(document.__cookie=n,r="MAIN"!==o),r&&e({type:"sync",data:{propertyName:"cookie",value:{value:He.internalUtils().isCurrentContextMT?document.__cookie:n,fromThread:He.internalUtils().isCurrentContextMT?"MAIN":"WORKER",origin:$e?"WORKER":i}},syncType:We.Document}),!0}}}function Ke(e){if(!He.internalUtils().isCookiePayloadObject(e))return void console.error("Invalid value type!");const{value:t}=e;if(window.VWO.consentMode){if(R())return;let e=t.split("=");if(L.deferOnConsent("handlerForReqFromWT",null,null,null,e[0],e[1],t))return}$e=!0,document.cookie=t,$e=!1}let Je={};{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=(He.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:He.internalUtils().isCurrentContextMT?"MAIN":"WORKER",origin:e}},syncType:We.Document}))}applySyncRequest(e){const{value:t}=e;if(!t)return P({msg:"Syncing error occurred in cookie fallback mode - value not present!",url:"fallback/cookies.ts",source:window.VWO._.native.JSON.stringify(t)});if(window.VWO.consentMode){if(R())return;let n=t.split("=");if(L.deferOnConsent("applySyncRequest",this,null,null,n[0],n[1],e))return}document.cookie=t,this.syncCookieToWorkerThread("WORKER")}}Je=new e}const qe=ge(window._vwoCc)?window._vwoCc:{},Ye=e=>(qe.SPA_SPLIT=qe.SPA_SPLIT||{},!(!qe.SPA_SPLIT[e]&&!qe.SPA_SPLIT["*"])),Xe=(()=>{const e=qe.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}})(),ze=qe.disableAsp,Qe=qe.CLICK_PERF,Ze=qe.tpcBeacon,et=!qe.vwoUuidV2Secure,tt=D((()=>window.VWO._.useCdn))||!1,nt=qe.enableRefreshLimit,ot=qe.expUrlChange,it=window._vwo_acc_id>1044e3||qe.enableLoader;var rt,st=window._vwo_acc_id,at=[],dt=0,ct,lt=!1,ut=function(){for(var e=0;e0;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)&&c&&(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=_t.domain),void 0!==o){o=(null===(d=null===(a=window.VWO._.allSettings.dataStore.plugins.DACDNCONFIG)||void 0===a?void 0:a.jsConfig)||void 0===d?void 0:d.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&&!lt&&(this.create(e,"",!1,o,1,r,!0),lt=!0)):document.cookie=w},create:function(e,t,n,o,i,r,s){this._create(e,t,n,o,i,r,s),Je.syncCookieToWorkerThread(),ye(V.SET_COOKIE,e,t,n,i),Re("meta",{ckName:e,ckValue:t,ckDays:n,ckExpiryTs:i})},get:function(e,t,n,o){var i;e=e.trim(),!n&&wt()&&(e="debug"+e),window.VWO._.cLFE;var r=document.cookie.match(new RegExp("(?:^|;)\\s*"+e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")+"=(.*?)(?:;|$)","i"));return i=r&&decodeURIComponent(r[1]),ye(V.GET_COOKIE,e,i),i},erase:function(e,t,n){this.create(e,"",!1,t,1,n),ye(V.ERASE_COOKIE,e)},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,d,c,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),wt()&&0!==e.indexOf("debug")&&(e="debug"+e),!((l=window.vwo_$)&&i&&u||r||"_vwo"===e))return void ye(V.SET_THIRD_PARTY_COOKIE_ERROR,e,t,n,o);a=l("