/* For license info, refer to: https://dev.visualwebsiteoptimizer.com/cdn/edrv/license.txt */ (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="4d011d977d",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 l=(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 d={};if(Object.keys(l).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?(d[n]=Object.assign(Object.assign({},a[n]),l),d[n].addVwoPageMeta=!0):(d[n]=a[n],d[c]=l,d[c].addVwoPageMeta=!0,a.multipleDomainCallSent=!0)}}else d=Object.keys(l).length?{[c]:Object.assign(Object.assign({},l),{addVwoPageMeta:!0})}:a||{};s._vwo=s._vwo||{},s._vwo.eventDataConfig=d,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 l=Object.keys(o).reduce(((e,t)=>e.replace(new RegExp(`{{${t}}}`,"g"),o[t])),n),c=`${e.DOM}_`;let d=o;const u=(null===(i=o.data)||void 0===i?void 0:i.vwoEventName)||o.vwoEventName;u!==c+r.CLICK&&u!==c+r.SUBMIT||(d=o.data?null===(a=o.data)||void 0===a?void 0:a.props:d.props,d=d||{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()}] ${l} ${w(d)}`}}var l=new a("warn");class c{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 d=e=>{try{window.VWO._.customError(e)}catch(e){}};function u(e,t={sendErrorLog:!1},n){try{return e()}catch(e){return t.sendErrorLog&&setTimeout((()=>{try{d({msg:t.msg||"safelyGetValue failed!",url:t.url||"errorHandler.ts",source:t.source||e})}catch(e){}}),100),n}}function w(e,t){try{return e()}catch(e){return void(t&&!t.disabledErrLog&&console.error("Error occurred:",e))}}function _(e,t={sendErrorLog:!0}){return u((()=>e.toLowerCase()),t,"")}const g={isVisBucketedForTrack:()=>u((()=>window.VWO._.insights.isVisBucketedForTrack())),includeFunnel:e=>u((()=>window.VWO._.insights.includeFunnel(e))),excludeFunnel:e=>u((()=>window.VWO._.insights.excludeFunnel(e))),isFunnelIncluded:e=>u((()=>window.VWO._.insights.isFunnelIncluded(e))),isFunnelExcluded:e=>u((()=>window.VWO._.insights.isFunnelExcluded(e))),activateFunnels:()=>u((()=>window.VWO._.insights.activateFunnels())),markFunnelValue:(e,t,n,o)=>u((()=>window.VWO._.insights.markFunnelValue(e,t,n,o))),includeInsightsMetric:e=>u((()=>window.VWO._.insights.includeInsightsMetric(e))),isMetircTriggered:e=>u((()=>window.VWO._.insights.isMetircTriggered(e)))},h=()=>window.VWO._.CampaignEnum||{},p=()=>window.VWO._.insightsCampaignUtils||{},v=()=>window.VWO._.insightsLibUtils||{};function f(e,t,n,o){return new(n||(n=Promise))((function(i,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((o=o.apply(e,t||[])).next())}))}window.VWO._=window.VWO._||{},window.VWO._.insightsUtils=window.VWO._.insightsUtils||g;const{toString:O}=Object.prototype;function E(e){return"[object Object]"===O.call(e)}function m(e){return"[object Array]"===O.call(e)}function S(e){return"[object Null]"===O.call(e)}function T(e){return"[object Undefined]"===O.call(e)}function C(e){return!T(e)&&!S(e)}function I(e){return!Number.isNaN(e)&&"[object Number]"===O.call(e)}function y(e){return"[object String]"===O.call(e)}class A{mergeNestedObjects(...e){return e.reduce(((e,t)=>this.recursivelyMerge(e,t)))}mergeNestedObjectsV2(e={mergeArrays:!1},...t){return t.reduce(((t,n)=>this.recursivelyMerge(t,n,{},e)))}createNestedObjects(e,t){let n=e;return t&&t.split(".").forEach((e=>{Object.prototype.hasOwnProperty.call(n,e)||(n[e]={}),n=n[e]})),n}clearNestedObject(e,t){let n=e;const o=t.split("."),i=o[o.length-1];for(let e=0;e{i[e]=1}));const r=Object.getOwnPropertyDescriptors(e),s=Object.getOwnPropertyDescriptors(t);return Object.keys(i).forEach((i=>{s[i]?Object.defineProperty(n,i,s[i]):Object.defineProperty(n,i,r[i]),this.recursivelyMerge(e[i],t[i],n[i],o)})),n}return o.mergeArrays&&m(e)&&m(t)?(m(n)||(n=[]),n.splice(0,n.length,...e.concat(t)),n):t||e}}var V=new A;function N(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}const b=function(e){const t=e.toString();let n,o;((n=t.match(/^(?:async\s+)?([A-Za-z0-9_$]*)\s*=>/))||(n=t.match(/^(?:async\s+)?\((.*)\)\s*=>/))||(n=t.match(/^(?:async\s+)?function(?:\s+[A-Za-z_$]*)?\s*\((.*)\)\s*{/)))&&(o=n[1]);const i={};let r=!1;return o.split(",").forEach(((e,t)=>{"vwo_$"===e.trim()&&(i[t]=window.vwo_$,r=!0)})),r?function(...t){return Object.keys(i).forEach((e=>{+enull))=>{window.VWO._.vAEH=e};var j;window.VWO.modules.vwoUtils.utils={customEvent:F},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"}(j||(j={}));const B={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",HTML_ELEMENT_HYDRATED:"vwo_elementHydrated",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",SEGMENTATION_FAILED:"sF",ELEMENTS_SHOWN_WITHOUT_CHANGES:"eSWC",CUSTOM_CONVERSION:"vwo_conversion",REVENUE_CONVERSION:"vwo_revenue",DOM_SUBMIT:"vwo_dom_submit",DOM_CLICK:"vwo_dom_click",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_ACCEPTED_INSIGHTS:"cCAI",COOKIE_CONSENT_REJECTED_INSIGHTS:"cCRI",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",NEW_SESSION_TRACKED:"vwo_newSnTracked",GOAL_CONVERSION_FAILED:"vwo_goalConversionFailed"};let H="",K=()=>"",J=e=>e,q=e=>e;var X;window.VWO._.namespaceKeyWithAccId=J;const Y=null===(X=window._vwoCc)||void 0===X?void 0:X.cookiePrefix,z=e=>Y?e.startsWith(Y)?e:`${Y}${e}`:e,Q=e=>{if(!Y)return e;const t=e.replace(/^(\^)/,"").replace(/(\$)$/,"");return`^${Y.replace(/([.*+?^${}()|[\]\\])/g,"\\$1")}${t}$`};class Z{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(D.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.setTimeOutFlags(e),this.triggerEvent(B.COOKIE_CONSENT_TIMEOUT)),e.hT&&this.setupConsentAcceptedListener(e),"B"!==e.cConfig.cPB||e.timeOut||this.setupConsentTimeoutListener(e),"P"===e.cConfig.cPB&&this.handlePartiallyBlocked(e),e.preview)return this.handlePreviewMode(e);this.handleConsentRejected(),this.setupInsightsConsentActionListener()}setupInsightsConsentActionListener(){window.VWO._.phoenixMT.on(B.COOKIE_CONSENT_REJECTED_INSIGHTS,(()=>{window.fetcher.setValue("VWO.consentMode.dTI",!0),this.triggerEvent(B.COOKIE_CONSENT_REJECTED_INSIGHTS)}))}handlePartiallyBlocked(e){if(e.savedCalls=this.extractSavedCalls(),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(B.COOKIE_CONSENT_ACCEPTED,(()=>{e.savedCalls&&(this.syncSaved(e.savedCalls),delete e.savedCalls),this.processQueue(),!e.preview&&this.triggerEvent(B.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},B.REGISTER_CONVERSION)}}handlePreviewMode(e){e.hT&&window.VWO.phoenix&&window.VWO.phoenix('on("${{1}}", "${{2}}")',null,{captureGroups:[B.URL_CHANGED,()=>{window.fetcher.setValue("VWO.consentMode.goalLogs",[])}]}),this.setupConsentAcceptedListenerForPreview(e),this.setupConsentRejectedListenerForPreview()}setupConsentTimeoutListener(e){window.VWO._.phoenixMT.on(B.COOKIE_CONSENT_TIMEOUT,(()=>{this.triggerEvent(B.COOKIE_CONSENT_TIMEOUT),this.setTimeOutFlags(e)}))}setTimeOutFlags(e){e.dTI=!0,window.fetcher.setValue("VWO.consentMode.dTI",!0),e.dT=!0,window.fetcher.setValue("VWO.consentMode.dT",!0),e.wFC&&window.fetcher.setValue("VWO.consentMode.wFC",!1)}setupConsentAcceptedListenerForPreview(e){window.VWO._.phoenixMT.on(B.COOKIE_CONSENT_ACCEPTED,(()=>{this.triggerEvent(B.COOKIE_CONSENT_ACCEPTED),this.triggerGoalLogs(),e.wFC&&window.fetcher.setValue("VWO.consentMode.wFC",!1),!e.dT&&window.fetcher.setValue("VWO.consentMode.dT",!1)}))}setupConsentRejectedListenerForPreview(){window.VWO._.phoenixMT.on(B.COOKIE_CONSENT_REJECTED,(()=>{this.triggerEvent(B.COOKIE_CONSENT_REJECTED),window.fetcher.setValue("VWO.consentMode.dT",!0)}))}handleConsentRejected(){window.VWO._.phoenixMT.on(B.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){const t=e;return this.goalCookieStore[z(t)]}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:l,deferredQueue:c}=this.consentMode;if(a)return!0;if(l){if(["applySyncRequest","handlerForReqFromWT","processVariationAppliedCallback"].includes(e)){if("processVariationAppliedCallback"===e)return c.push({method:e,payload:()=>n.apply(o,s)});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===B.VARIATION_SHOWN&&this.saveForSync(r.d),n&&n(o||{}),c.push({method:e,payload:()=>u((()=>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:t,variation:e.variation,isFirst:1},name:B.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(B.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:B.VARIATION_SHOWN,props:{},time:Date.now()};Object.keys(e).map((n=>{const o=e[n],i=window._vwo_exp[n];let r=null,s=null;if("SPLIT_URL"===i.type&&(r=!0,s="1"!=o.variation),!window.VWO._.cookies.get("_vis_opt_exp_"+n+"_combi"))return;const a=this.prepareDataForSync(o,n,s);window.VWO.modules.tags.dataSync.utils.addDataFromMTAndSend(null,null,a,null,!0,null,t,+n),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_${t}`,e.mId.split("-")[0],3650,void 0,t,void 0,o];!i&&window.VWO._.cookies.createThirdParty(...r),r[0]=`_vis_opt_exp_${t}_combi`,r[1]=e.variation,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="+t+"&account_id="+window._vwo_acc_id+"&cu="+encodeURIComponent(e.p.u)+"&combination="+e.variation+"&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,variation:e.event.props.variation},r=Object.assign(Object.assign({},n),{[e.event.props.id]: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}`);window.VWO.consentMode.setCookie(i)}}const ee=function(){const e=window.VWO.consentMode;return!!e&&!!e.dT},te=new Z;window.VWO.modules.utils.consentModeUtils=te;let ne=!1;function oe(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 ie{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=oe(e);t&&this.pop_front(),this.operations.forEach((e=>{n[e.name]=e.value}));return Object.entries(n).map((e=>e.join("="))).join("; ")}}class re{static internalUtils(){var e;return{isCookiePayloadObject:e=>!(!E(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(!re.internalUtils().isCookiePayloadObject(t))return void console.error("Invalid value type!");const{value:n,fromThread:o}=t;let{origin:i}=t,r=!0;return(re.internalUtils().isCurrentContextMT||"MAIN"===o)&&(document.__cookie=n,r="MAIN"!==o),r&&e({type:"sync",data:{propertyName:"cookie",value:{value:re.internalUtils().isCurrentContextMT?document.__cookie:n,fromThread:re.internalUtils().isCurrentContextMT?"MAIN":"WORKER",origin:ne?"WORKER":i}},syncType:j.Document}),!0}}}function se(e){if(!re.internalUtils().isCookiePayloadObject(e))return void console.error("Invalid value type!");const{value:t}=e;if(window.VWO.consentMode){if(ee())return;let e=t.split("=");if(te.deferOnConsent("handlerForReqFromWT",null,null,null,e[0],e[1],t))return}ne=!0,document.cookie=t,ne=!1}let ae={},le;{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=(re.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:re.internalUtils().isCurrentContextMT?"MAIN":"WORKER",origin:e}},syncType:j.Document}))}applySyncRequest(e){const{value:t}=e;if(!t)return d({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(ee())return;let n=t.split("=");if(te.deferOnConsent("applySyncRequest",this,null,null,n[0],n[1],e))return}document.cookie=t,this.syncCookieToWorkerThread("WORKER")}}ae=new e}function ce(e){le=e}function de(e){window.VWO=null!=e?e:le}var ue=parseInt(+new Date/1e3,10),we,_e=function(){return we||(we=window.VWO.data.ts||ue)};const ge=Object.keys;function he(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}function pe(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 ye(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 Ae=0;const Ve={};function Ne(e,t){const n=++Ae;Ve[n]={executeCallback:()=>{delete Ve[n],e()},animationFrameId:null,timeOutId:null};const o=function(){return window.setTimeout((()=>{Ve[n]&&(null!==Ve[n].animationFrameId&&cancelAnimationFrame(Ve[n].animationFrameId),Ve[n].executeCallback())}),1e3/60)},i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||o;t||le&&le._&&le._.ac&&le._.ac.aSP?(Ve[n].animationFrameId=i((()=>{Ve[n]&&(null!==Ve[n].timeOutId&&clearTimeout(Ve[n].timeOutId),Ve[n].executeCallback())})),o!=i&&(Ve[n].timeOutId=o())):e()}function be(){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 Re(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?Re(n.slice(1),i):i}{const o=(e=i||e).lastIndexOf(".");if(-1===o)return;const r=e.substring(0,o);return Re(r,t,e.substring(o)+n)}}catch(e){}}function Le(e,t){return e.length>t?e.slice(0,t-1)+"...":e}function We(e){return e?Math.round(100*e)/100:0}function De(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function Pe(){}try{Pe.prototype=Object.create(Array.prototype),Object.defineProperty(Pe.prototype,"clear",{value:void 0,writable:!0,enumerable:!1})}catch(e){}function xe(e){return null==e}function Ue({baseUrl:e,pathname:t,queryParams:n}){const o=new URL(e);return o.pathname=t,Object.entries(n).forEach((([e,t])=>{o.searchParams.set(e,String(t))})),o.href}function Me(e,t,n){if(void 0!==n){const o=e.includes("?")?"&":"?";e+=`${o}${t}=${encodeURIComponent(n)}`}return e}function ke(e){return u((()=>e.length>0),void 0,!1)}function Ge(e){try{if(!e)return!1;return"https:"===new URL(e).protocol}catch(e){return!1}}var Fe=Object.freeze({__proto__:null,getKeys:ge,extend:he,forEach:pe,arrayContains:ve,setAttrs:fe,isAbsoluteUrl:Oe,map:Ee,filter:me,getServerStartTimestamp:Se,getCurrentTimestamp:Te,getTimeZoneOffset:Ce,throttle2:Ie,debounce:ye,processCallbackInRequestAnimationFrame:Ne,getdLName:be,getVariableValue:Re,truncateData:Le,roundNumber:We,isObject:De,ArrayPrototypeCopy:Pe,isUndefinedOrNull:xe,buildUrl:Ue,appendParamIfDefined:Me,arrayHasElements:ke,isURLValid:Ge});const $e=({url:e,method:t="POST",cacheBurst:n=!1,body:o,includeCredentials:i=!0},{onSuccessCallback:r=(()=>null),onErrorCallback:s=(()=>null)}={})=>f(void 0,void 0,void 0,(function*(){n&&(e=Me(Me(e,"eTime",Te()),"v",window.VWO.v_e));try{const n=yield fetch(e,Object.assign(Object.assign({method:t},De(o)?{body:window.VWO._.native.JSON.stringify(o)}:{}),{credentials:i?"include":"omit"}));if(n.ok)return r(n),n;throw new Error(n.statusText)}catch(e){throw s(e),e}})),je={request:$e},Be=window.VWO.TRACK_SESSION_COOKIE_EXPIRY_CUSTOM||1/48,He={TRACK_GLOBAL_COOKIE_NAME:"_vwo_ds",TRACK_SESSION_COOKIE_NAME:"_vwo_sn",TRACK_SESSION_COOKIE_EXPIRY:Be,SESSION_TIMER_EXPIRE:60*Be*60*1e3*24,COOKIE_VERSION:3,COOKIE_TS_INDEX:1,COOKIE_VERSION_INDEX:0,FIRST_SESSION_ID_INDEX:0,PC_TRAFFIC_INDEX:1,RELATIVE_SESSION_ID_INDEX:0,PAGE_ID_INFORMATION_INDEX:1,SESSION_SYNCED_STATE_INDEX:4,PAGE_ID_EXPIRY:15,GLOBAL_OPT_OUT:"_vwo_global_opt_out",OPT_OUT:"_vis_opt_out",TEST_COOKIE:"_vis_opt_test_cookie",COOKIE_JAR:"_vwo",SAME_SITE:"_vwo_ssm",UUID:"uuid",UUID_V2:"uuid_v2",VWO_COOKIE_QUERY_PARAM:"vwo_q",DEFAULT_EXPIRY:100,UUID_COOKIE_EXPIRY:365.2425};function Ke(){return Math.min(window.VWO.TRACK_GLOBAL_COOKIE_EXPIRY_CUSTOM||window.VWO.data.rp||90,90)}var Je,qe=window._vwo_acc_id,Xe=[],Ye,ze=!1,Qe=function(){for(var e=0;e0;let u=window._vis_opt_cookieDays;window.VWO._.cLFE&&(r=!1),"_vwo_sn"!==e&&"_vwo_ds"!==e&&"_vis_opt_test_cookie"!==e&&!isNaN(u=parseFloat(u))&&isFinite(u)&&d&&(n=u);var w="";if(i?w+="; expires="+new Date(i).toGMTString():n?w+="; expires="+new Date((new Date).getTime()+864e5*n).toGMTString():!1===n&&(w="; expires=Thu, 01 Jan 1970 00:00:01 GMT"),o||(o=et.domain),void 0!==o){o=(null===(c=null===(l=window.VWO._.allSettings.dataStore.plugins.DACDNCONFIG)||void 0===l?void 0:l.jsConfig)||void 0===c?void 0:c.dNISD)&&!window._vis_opt_domain?"":"; domain=."+o}const _=z(e+"="+(a&&a.ignoreUrlEncoding?t:encodeURIComponent(t))+w+(o||"")+"; path=/");window.VWO._.ss&&!s?(document.cookie=_+"; secure; samesite=none; Partitioned;",6===window._vwo_acc_id&&e.indexOf("_vwo_ds")>-1&&!ze&&(this.create(e,"",!1,o,1,r,!0),ze=!0)):document.cookie=_},create:function(e,t,n,o,i,r,s,a){this._create(e,t,n,o,i,r,s,a),ae.syncCookieToWorkerThread(),U(D.SET_COOKIE,e,t,n,i),F("meta",{ckName:e,ckValue:t,ckDays:n,ckExpiryTs:i})},get:function(e,t,n,o){var i;e=e.trim(),!n&&Ze()&&(e="debug"+e),window.VWO._.cLFE,e=z(e);var r=document.cookie.match(new RegExp("(?:^|;)\\s*"+e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")+"=(.*?)(?:;|$)","i"));return i=r&&decodeURIComponent(r[1]),U(D.GET_COOKIE,e,i),i},erase:function(e,t,n){this.create(e,"",!1,t,1,n),U(D.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]);let a=!1;if(i&&(a=s?s.multiple_domains:window._vwo_exp[i].multiple_domains),"_vwo"!==e&&this._create(e,t,n,o),Ze()&&0!==e.indexOf("debug")&&(e="debug"+e),!(i&&a||r||"_vwo"===e))return void U(D.SET_THIRD_PARTY_COOKIE_ERROR,e,t,n,o);const l=window._vwo_server_url||"https://dev.visualwebsiteoptimizer.com";je.request({url:l+"ping_tpc.php?account="+qe+"&name="+encodeURIComponent(e)+"&value="+encodeURIComponent(t)+"&days="+n+"&random="+Math.random(),method:"GET",cacheBurst:!0},{onSuccessCallback:Qe,onErrorCallback:e=>{d({msg:"Error setting third party cookie",url:"cookies.ts"})}}),U(D.SET_COOKIE,e,t,n,i,!0)},waitForThirdPartySync:function(e){return f(this,void 0,void 0,(function*(){window.mainThread?Xe.push({c:e}):yield window.fetcher.getValue('VWO._.cookies.waitForThirdPartySync("${{1}}")',null,{captureGroups:[e]})}))},getAll:function(e=!1){const t=document.cookie.split(/; ?/),n={};for(let e=0;e-1||e.indexOf("_vwo_")>-1?this.get(e)||this.get(e,!0):this.get(e,!0,!0,!0)},setItem:function(e,t){this.create(e,t)},includes:function(e,t=!1){e=Q(e);const n=new RegExp(e),o=Object.keys(et.getAll());for(let e=0;ee.additionalOptions.cUrl))||window.VWO._.lastPageUnloadURL||document.URL;t+="&_cu="+encodeURIComponent(n.slice(0,100))}return t.indexOf("&cu=")<0&&!te.addCustomParams(t)&&(t+="&_cu="+encodeURIComponent(window.VWO.consentMode.customParams.url.slice(0,100))),document.referrer&&t.indexOf("&ru=")<0&&te.addCustomParams(t)&&(t+="&_ru="+encodeURIComponent(document.referrer.slice(0,100))),t.indexOf("?&")>0&&(t=t.replace("?&","?")),t}window.VWO.modules.vwoUtils.optOut=at;const _t=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=wt(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 ut(e,!1),{typeOfCall:_t.callTypes.NONBEACON};{const t=u((()=>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:_t.callTypes.BEACON}):(ut(e,!0),{typeOfCall:_t.callTypes.NONBEACON})}};function gt(e,t,n,o=!1){var i,r;if(!o&&!at.shouldWeTrackVisitor())return;if(te.deferOnConsent("sendCall",this,t,null,null,null,e,null,n,o))return;e.serverUrl=(null===(r=null===(i=window.VWO.data)||void 0===i?void 0:i.accountJSInfo)||void 0===r?void 0:r.collUrl)||e.serverUrl||window._vwo_server_url;var s=e.serverUrl+e.url;s=Me(s,"vn",e.vn),s=Me(s,"vns",e.vns),s=Me(s,"vno",e.vno),s=Me(s,"eTime",Te()),s=Me(s,"v",window.VWO.v_e);const a={url:s+="&random="+Math.random(),success:t,error:n,miscOptions:{vn:e.vn,vns:e.vns,vno:e.vno}};_t(a)}_t.shouldCompress=function(e){return e.length>1800},_t.callTypes={BEACON:"beacon",NONBEACON:"non-beacon"},window.VWO.modules.vwoUtils.sendCall=gt;var ht={};const pt=function(e,t){this.dependencies={},this.callback=e,this.name=t};pt.prototype.add=function(e){e&&(this.dependencies[e]=0)},pt.prototype.unResolve=function(e){if(e)for(var t in this.dependencies)this.dependencies.hasOwnProperty(t)&&t===e&&(this.remove(e),this.add(e))},pt.prototype.resolve=function(e){if(e){for(var t in this.dependencies)this.dependencies.hasOwnProperty(t)&&t===e&&(this.dependencies[t]=1);this.canResolve(this.dependencies)&&this.callback()}},pt.prototype.remove=function(e){delete this.dependencies[e]},pt.prototype.canResolve=function(){for(var e in this.dependencies)if(this.dependencies.hasOwnProperty(e)&&!this.dependencies[e])return!1;return!0};const vt={init:function(e,t){var n=new pt(e,t);return t&&(ht[t]=n),n},getDependencyManager:function(e){return ht[e]}};let ft=3,Ot=50,Et=window._vwo_server_url||"https://dev.visualwebsiteoptimizer.com/",mt={TPC_SUPPORT_DETECTION_FAILED:"TPC_SUPPORT_DETECTION_FAILED",TPC_NOT_SUPPORTED:"TPC_NOT_SUPPORTED",LOCAL_OPT_OUT_PARTIALLY_FAILED:"LOCAL_OPT_OUT_PARTIALLY_FAILED",GLOBAL_OPT_OUT_DETECTON_FAILED:"GLOBAL_OPT_OUT_DETECTON_FAILED",GLOBAL_OPT_OUT_PARTIALLY_FAILED:"GLOBAL_OPT_OUT_PARTIALLY_FAILED"},St={GLOBAL_OPT_OUT:"_vwo_global_opt_out",OPT_OUT:"_vis_opt_out",UUID:"_vwo_uuid",UUID_V2:"_vwo_uuid_v2",_VIS_OPT_:"_vis_opt_",_VWO_:"_vwo_"},Tt=function(){},Ct;const It=function(e,t){const n=document.createElement("script"),o=100*Math.random(),i="jsonpCallback"+parseInt(o,10),r=document.getElementsByTagName("head")[0];window[i]=function(e){delete window[i],r.removeChild(n),t(e)},n.src=e+"?callback="+i+"&random="+Math.random(),window.VWO.nonce&&(n.nonce=window.VWO.nonce),r.appendChild(n)},yt={init:function(e){e&&(yt.options=e,yt.serverUrl=Et,e.exG?(Ct=vt.init((function(){e.success(Vt)}),"optOutDM"),Ct.add("thirdPartyCookieSupport"),Ct.add("globalOptOutStatus"),Vt.isThirdPartyCookiesSupported({success:function(t){t?Ct.resolve("thirdPartyCookieSupport"):e.error({errorType:mt.TPC_NOT_SUPPORTED})},error:function(){e.error({errorType:mt.TPC_SUPPORT_DETECTION_FAILED})}}),Vt.checkGlobalOptOutStatus({success:function(){Ct.resolve("globalOptOutStatus")},error:function(){e.error({errorType:mt.GLOBAL_OPT_OUT_DETECTON_FAILED})}})):(At.isOptedOut=At.checkOptOutStatus(),e.success(At)))},process:function(e,t){const n=et.get(St.OPT_OUT,!0),o=window.location.href.indexOf("vwo_disable_alert")>-1;if(n||window.location.href.indexOf("vwo_opt_out=1")>-1)return n||o||alert("You have successfully opted out of VWO for this website."),At.isOptedOut=!0,"0"!==n&&("2"!==n?yt.optOut(e,t):Nt(),!0)},optOut:function(e,t){if(!e)return;at.callStopAnalyzeAndSurvey(),e.domain||(e.domain=window._vwo_cookieDomain),(t=t||{}).success=t.success||Tt,t.error=t.error||Tt;const n=e.optOutExpiry||3650,o=et.get(St.OPT_OUT,!0);if(e.config&&e.config.maintainExperiences)return et.create(St.OPT_OUT,0,n,e.domain,void 0,!0),void at.setOptOutStateConfig();o&&"0"!==o||(et.create(St.OPT_OUT,1,100,e.domain,void 0,!0),at.setOptOutStateConfig()),e.url="cdc?cookies="+window.VWO._.native.JSON.stringify([{name_regex:"_vwo_uuid_*",isDeleted:1}])+"&accountId="+e.accountId+"&r="+Math.random(),e.serverUrl=Et,e.retryRequest=e.retryRequest||0;const i=document.cookie.split(";");for(let t=0;t-1||i[t].indexOf(St._VWO_)>-1)&&i[t].indexOf(St.OPT_OUT)<0){const[n,o]=i[t].split("=");n&&et.erase(n.trim(),e.domain,!0)}Nt(),bt(),gt(e,(function(){bt(),et.create(St.OPT_OUT,2,100,e.domain,void 0,!0),window.VWO.phoenix&&window.VWO.phoenix("deactivate"),at.setOptOutStateConfig(),t.success()}),(function(){e.retryRequest++,e.retryRequest<=ft?setTimeout((function(){yt.optOut(e,t)}),Ot):t.error({errorType:mt.LOCAL_OPT_OUT_PARTIALLY_FAILED})}),!0)},updateGlobalOptOutState:function(e,t){yt.options=e,Vt.checkGlobalOptOutStatus(t)}},At={checkOptOutStatus:function(){return!!et.get(St.OPT_OUT,!0)},optOut:function(e,t){e?yt.process(yt.options,t):(et.erase(St.OPT_OUT,yt.options.domain,!0),At.isOptedOut=!1)}},Vt={globalOptOut:function(e,t){const n=yt.options,o=e?1:0,i=[{name:St.GLOBAL_OPT_OUT,value:o,isDeleted:0}];t=t||{},n.url="cdc?cookies="+window.VWO._.native.JSON.stringify(i)+"&accountId="+n.accountId+"&r="+Math.random(),n.serverUrl=Et,gt(n,(function(){Vt.isGloballyOptedOut=e,t.success()}),(function(){t.error(mt.GLOBAL_OPT_OUT_PARTIALLY_FAILED)}),!0)},checkGlobalOptOutStatus:function(e){(e=e||{}).success=e.success||Tt,e.error=e.error||Tt,Vt.isThirdPartyCookiesSupported({success:function(t){Vt.isGloballyOptedOut=!!t&&!!parseInt(t[St.GLOBAL_OPT_OUT],10),e.success(Vt.isGloballyOptedOut)},error:e.error})},isThirdPartyCookiesSupported:function(e){(e=e||{}).success=e.success||Tt,e.error=e.error||Tt;const t=yt.options.accountId;gt({url:"cdc?cookies="+window.VWO._.native.JSON.stringify([{name:"_vis_opt_test_cookie",value:1,isDeleted:0}])+"&accountId="+t+"&r="+Math.random(),serverUrl:Et,vn:window.VWO.v_e},(function(){It(Et+"cdc",(function(n){n&&n["_vis_opt_test_cookie_"+t]?(Vt.tpc=!0,e.success(n)):(Vt.tpc=!1,e.success(Vt.tpc))}))}),(function(){e.error({errorType:mt.TPC_SUPPORT_DETECTION_FAILED})}),!0)}};function Nt(){let e=window.VWO._.localStorageService;et.erase("_vwo",window._vwo_cookieDomain,!0),e.deleteItem("_vwo");try{e.deleteItem("vwoSn"),e.deleteItem("_vwo_nls_q_"+window._vwo_acc_id)}catch(e){}}function bt(){const e=window._vwo_exp_ids||[];for(let t=0;t40&&(o=o.slice(0,40),console.warn(Dt.ATTRIBUTE_MORE_THAN_LIMIT));const i=E(e[n])||m(e[n])?window.VWO._.native.JSON.stringify(e[n]):e[n];["name","time"].includes(o)?(t.conflictingPropsData=t.conflictingPropsData||{},t.conflictingPropsData[o]=i):t[o]=i}return t}static logWarningAndReportError(e){console.log("%cVWO Event API Error:","font-weight:bold;",e),d({msg:"VWO Event API Error: "+e,url:"NamingUtil.ts"})}}var xt;Pt.whiteListedProps={vwo_hubspot_id:!0},Pt.whiteListedEvents={[B.RECOM_BLOCK_SHOWN]:!0,[B.DEBUG_EVENT]:!0},function(e){e.PRE="PRE",e.POST="POST"}(xt||(xt={}));const Ut={[B.VARIATION_SHOWN]:{ignoreMetricDataCheck:!0},[B.PAGE_VIEW]:{},[B.DOM_CLICK]:{},[B.DOM_SUBMIT]:{},[B.CUSTOM_CONVERSION]:{},[B.REVENUE_CONVERSION]:{},[B.SYNC_VISITOR_PROP]:{ignoreMetricDataCheck:!0},[B.PAGE_UNLOAD]:{},[B.DEBUG_EVENT]:{ignoreMetricDataCheck:!0}},Mt=e=>!!Ut[e],kt=e=>!!u((()=>window.VWO._.allSettings.dataStore.events[e].ls)),Gt=e=>u((()=>!!window.VWO._.allSettings.dataStore.events[e])),Ft=e=>u((()=>!!window.VWO._.allSettings.dataStore.events[e].aT)),$t=()=>{let e=[],t=[],n=!1;const o=n=>{const o=e.length>0,i=t.length>0;return n?n===xt.PRE?o:n===xt.POST?i:void 0:o||i},i=(i,r)=>{if(!n||!o(i))return r;const s=!r||!De(r),a=Object.assign({},u((()=>r.d.event.props))||{}),c=u((()=>r.d.event.name));let d=Object.assign({},r);const w=i===xt.POST?t:e;for(const e of w)if("function"==typeof e)try{const t=e(d)||d;if(-1===t)return-1;d=t}catch(e){l.warn(`Error while running ${i}-Hook callback!`)}return s?r:(i===xt.PRE&&Mt(c)&&((e,t)=>{const n=e.d.event.name,o=window.VWO._.allSettings.dataStore.events[n];if(!o.wP)return;Object.assign(t,o.wP||{});const i=e.d.event.props;for(const e in i)Object.prototype.hasOwnProperty.call(i,e)&&!(e in t)&&delete i[e]})(d,a),d)};return{init:(o,i)=>{Array.isArray(i.preHookList)&&(e=[...e,...i.preHookList]),Array.isArray(i.postHookList)&&(t=[...t,...i.postHookList]),o.event.addPreHook=t=>(e.push(t),e.length-1),o.event.addPostHook=e=>(t.push(e),t.length-1),n=!0},runAllHooks(e,t){const n=i(xt.PRE,e);if(-1===n)return{processedData:n,wrappedCallback:t};return{processedData:n,wrappedCallback:(...e)=>{i(xt.POST,n),t(...e)}}},canRunHook:o}},jt=$t(),Bt="lT",Ht="sT",Kt="ivp",Jt="ca",qt=10,Xt="custom",Yt=function(){},zt=[739074,714884,708439,765649],Qt={VS_DATA:"vwoVsData",THIRD_PARTY_UUIDS:"_vwo_cD"},Zt={SPLIT_REDIRECT:"_vwo_split_redirect"},en="vwoStandardTrigger",tn={get campaignCookies(){return new RegExp("_vis_opt_exp_(\\d+)_(.+)")},get uuidCookie(){return new RegExp("_vwo_uuid_(\\d+)")}},nn=1,on=":",rn="-",sn="|",an={combi:"cb",goal:"gl",exclude:"ex",uuid:"ud",split:"sp"},ln=()=>{const e={q:He.VWO_COOKIE_QUERY_PARAM,d:""};try{let t="";const n=window._vwo_exp||{},o=window.VWO._.cookies.getAll(),i={};for(const e in o)if(o[e]){const r=o[e],s=tn.campaignCookies.exec(e),a=tn.uuidCookie.exec(e),l=(s||a||[])[1];if(!l||n[l]&&!n[l].multiple_domains)continue;if(a&&a[1])t+=`ud_${a[1]}=${r}`;else if(s&&s[1]){const e=s[2].split("_"),n=e[0],o=e[1],a=an[n];if(!a)continue;if("goal"===n){const e=`${a}_${l}`;if(+r>1)t+=`${e}_${o}=${r}`;else{i[e]=i[e]||"";const t=i[e].length;t>0&&","!==i[e][t-1]&&(i[e]+=","),i[e]+=o}}else t+=`${a}_${l}=${r}`}"|"!==t[t.length-1]&&(t+="|")}Object.keys(i).forEach((e=>{t+=`${e}_${i[e]}=1|`})),e.d=t&&encodeURIComponent(t.slice(0,t.length-1))}catch(e){}return e},cn=()=>{if(!window._vwo_code)return null;const e=window._vwo_code||{},t=window.performance.getEntriesByType("resource").find((e=>e.name.includes("/j.php?a=")));let n=-1,o=-1;if(t){const e=Math.abs(t.fetchStart-t.startTime),i=Math.abs(t.requestStart-t.fetchStart),r=Math.abs(t.responseEnd-t.responseStart),s=+window._VWO_Jphp_StartTime;o=e+i+r,n=isNaN(s)?-1:s-t.responseEnd}return{settings_tolerance:u((()=>e.settings_tolerance())),library_tolerance:u((()=>e.library_tolerance())),settingsTimedOut:!!e.sT,libraryTimedOut:!!e.lT,timeToStartExecuteJphp:n,totalDownloadTime:o}},dn=function(...e){window.fetcher.getValue("VWO._.triggerEvent",e)};var un={PARSE_TLD:"pTLD"},wn=["co","org","com","net","edu","au","ac"];function _n(e){var t,n=e.split("."),o=n.length,i=n[o-2];return i&&wn.includes(i)?(t=n[o-3]+"."+i+"."+n[o-1],dn(un.PARSE_TLD,e,t),t):(t=i+"."+n[o-1],dn(un.PARSE_TLD,e,t),t)}const gn="_vwo_referrer",hn=.00139;let pn;const vn={updateReferrer(e){pn=e},init(){{const e=u((()=>{const e=window.VWO._.allSettings.dataStore.crossDomain.eC;return delete window.VWO._.allSettings.dataStore.crossDomain.eC,e}))||{};pn=et.get(gn)||e[gn],e[gn]&&et.createThirdParty(gn,"",-1,void 0,void 0,!0,void 0),"string"!=typeof pn&&this.updateReferrer(document.referrer),window.fetcher.getValue('window.VWO.modules.vwoUtils.referrer.updateReferrer("${{1}}")',null,{captureGroups:[pn]})}},get:()=>-1!==location.search.search("_vwo_test_ref")?document.referrer:pn,set(){pn&&et.createThirdParty(gn,pn,hn,void 0,void 0,!0,void 0)}};window.VWO.modules.vwoUtils.referrer=vn;const fn={get navigator(){return navigator},get pageTitle(){return document.title},get doNotTrack(){return window.doNotTrack},get windowName(){return window.name},get currentUrl(){return window._vis_opt_url||window.location.href},get location(){return window.location},get document(){return window.location},get history(){return window.history},get accountId(){return window._vwo_acc_id},get smartCodeVersion(){return window._vwo_code_version},get serverUrl(){return window._vwo_server_url||"https://dev.visualwebsiteoptimizer.com/"},get vwoText(){return window._vwo_text},get vwoCode(){return window._vwo_code},get MutationObserver(){let e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;return window.Zone&&window.Zone.__symbol__&&(e=window[window.Zone.__symbol__("MutationObserver")]),e},get vwoInternalProperties(){return window.VWO._},get cookie(){return document.cookie},get visDebug(){return window._vis_debug},get cookieDomain(){return window._vis_opt_domain||window._vwo_cookieDomain||_n(window.location.host||new URL(document.URL).host)},get vwoStyle(){return window._vwo_style},get screen(){return window.screen},get vwoCss(){return window._vwo_css},get visOptUrl(){return window._vis_opt_url},get allSettings(){return window.VWO._.allSettings},get apiSectionCallback(){return window._vwo_api_section_callback},get encodeURIComponent(){return window.encodeURIComponent},get page(){return{title:fn.pageTitle,url:fn.currentUrl,referrerUrl:vn.get()}},get timeSpentInASession(){var e,t,n,o,i,r;return+Date.now()-1e3*+(null===(n=null===(t=null===(e=window.VWO.phoenix)||void 0===e?void 0:e.store)||void 0===t?void 0:t.getters)||void 0===n?void 0:n.sessionStart)?(+Date.now()-1e3*+(null===(r=null===(i=null===(o=window.VWO.phoenix)||void 0===o?void 0:o.store)||void 0===i?void 0:i.getters)||void 0===r?void 0:r.sessionStart))/1e3:0},get vwoUUID(){return window._vwo_uuid}};window.VWO.modules.dataStorePlugin=fn;const On=/:nth-parent\((\d+)\)$/,En=/[A-Za-z1-9]*?:tm\(["']([\s\S]*?)["']\)(?:\:nth-parent\(\d\))?/,mn=e=>e.indexOf(":tm(")>-1,Sn=e=>!!mn(e),Tn=e=>{const t=e.match(On)||[];if(t.length<2)return;const n=+t[1];return isNaN(n)?void 0:n};function Cn(){const e={};return function(t){if(e[t])return e[t];if(mn(t)){const{targetElement:n,targetText:o,ancestorLevelCount:i,childSel:r}=(e=>{const t=e.match(En)||[e],n=t[0],[o]=e.split(":tm("),i=t[1],r=Tn(n),s=void 0!==t.index?e.slice(t.index+n.length,e.length).trim():"",a=o.trim().split(" ");return{targetElement:1==a.length?a[0].toUpperCase():a.map((e=>(-1===e.search(/(\.|#)/)&&(e=e.toUpperCase()),e))).join(" "),targetText:i,ancestorLevelCount:r,childSel:s}})(t);return e[t]={targetElement:n,targetText:o,ancestorLevelCount:i,childSel:r}}return{targetElement:"",targetText:""}}}const In=Cn(),yn={};function An(e){if(Array.isArray(yn[e]))return yn[e];const t=e.split("");return 1===t.length?yn[e]=[{sel:e,isTxtSel:!0}]:yn[e]=t.map((e=>({sel:e.trim(),isTxtSel:Sn(e)})))}const Vn=e=>"number"==typeof e,Nn=(e,t)=>!(!e||e.sel!==t),bn=(e,t)=>Vn(e)&&e===t,Rn=({targetElement:e,targetText:t,ancestorLevelCount:n,childSel:o},i)=>{const r=[e,t].join(".");if(!i||!Array.isArray(i[r]))return null;for(let e=0;eObject.assign({},u((()=>window.VWO._.txtCfg))||{}),Wn=Ln(),Dn=()=>{Wn.o&&u((()=>{Wn.o.d()}))};window.VWO.modules.utils.textBasedSelectorUtils={disconnectMutationObserver:Dn};const Pn=e=>{const t=An(e),n=window.VWO._.txtCfg||{},o=n.mp=n.mp||{};let i="";const r=e=>{i+=e+","};for(const e of t)if(e.isTxtSel)if(o[e.sel])r(o[e.sel]);else{const t=In(e.sel),i=Rn(t,n.txtSelMap);if(i&&i.s){const t="."+i.s;r(t),o[e.sel]=t}}else r(e.sel);return i},xn=()=>{window.VWO._.txtCfg&&window.VWO._.txtCfg.mp&&window.fetcher.setValue("window.VWO._.txtCfg.mp",window.VWO._.txtCfg.mp)},Un=De(window._vwoCc)?window._vwoCc:{},Mn=e=>(Un.SPA_SPLIT=Un.SPA_SPLIT||{},!(!Un.SPA_SPLIT[e]&&!Un.SPA_SPLIT["*"])),kn=(()=>{const e=Un.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,IN_LIST_DEBUG:e.IN_LIST_DEBUG}})(),Gn=!!Un.debugLogs,Fn=Un.disableAsp,$n=!Un.vwoUuidV2Secure,jn=u((()=>window.VWO._.useCdn))||!1,Bn=Un.enableRefreshLimit,Hn=Un.expUrlChange,Kn=window._vwo_acc_id>1044e3||Un.enableLoader,Jn=!!Un.eblCSync,qn=!!Un.hdPR,Xn=!!Un.cPM,Yn=!!Un.svIdInSyncListDbgLog;function zn(){return window.VWO.eB&&!Un.dB}const Qn=!!Un.wMS,Zn=()=>u((()=>window._vwoCc.vPH))||!1,eo=!!Un.mEPR,to=!!Un.cA_csa,no=!!Un.dAM,oo=!!Un.observeHTML,io=!!Un.mSSR,ro=!!Un.allowWinnerSelection,so=Un.dNcLT,ao=(!!Un.sPCe||window._vwo_acc_id>1e6)&&!Un.dsPCe,lo=!!Un.vTsPU,co=!!Un.vTST,uo=!!Un.aRVId,wo="ev",_o="dslv",go="fn";class ho{constructor(){this.uuid="",this.preview=W,this.hideElExpression="{opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important;}"}otherSide(...e){return e[0]="VWO.modules.utils.libUtils."+e[0],e[2]&&(e[2]={captureGroups:e[2]}),window.fetcher.getValue(...e)}isDomDependent(e){return"VISUAL_AB"===e||"VISUAL"===e}isTestingCampaign(e){return this.isDomDependent(e)||"SPLIT_URL"===e}generateUUID(){return"Jxxxxxxxxxxx4xxxyxxxxxx5xxxxxxxx9".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16).toUpperCase()}))}isBot2(){return window.VWO._.isBot||_(window.navigator.userAgent).indexOf("bot")>=0||_(window.navigator.userAgent).indexOf("spider")>=0||_(window.navigator.userAgent).indexOf("preview")>=0}isPageBasedGoal(e){return"SEPARATE_PAGE"===e||"CUSTOM_GOAL"===e||"REVENUE_TRACKING"===e}isSplitVariation(e){return"SPLIT_URL"===e.type&&e[Kt]}getUUIDString(e){return e?"&u="+e:""}updateGoalsKind(e,t){const n={};return Object.keys(e).forEach((o=>{const i=e[o],r=i.mt;r&&Object.keys(i.goals).length&&Object.entries(r).forEach((([e,i])=>{const r=this.getGoalKind(i),s=i=>{!i||t&&!t[i]||(n[o]=n[o]||{},n[o][e]=i)};Array.isArray(r)?r.forEach(s):s(r)}))})),t||(window.VWO._.goalsToBeConvertedSynchronously=n),n}getGoalKind(e){let t;const n=window.VWO._.allSettings.triggers[e],o=u((()=>n.cnds)),i=3===u((()=>n[_o]));i||u((()=>Object.keys(o).length))||d({msg:"Trigger definition is empty",event:{triggerName:e}});const r=e=>{switch(e){case B.DOM_CLICK:return"CLICK_ELEMENT";case B.DOM_SUBMIT:return"FORM_SUBMIT";case B.PAGE_UNLOAD:return"PAGE_UNLOAD";default:return""}};if(i)return Object.keys(n[wo]).map(r);if(o&&"object"==typeof o[0]){t=r(o[0].event)}else{switch(u((()=>o[1].event))){case B.DOM_SUBMIT:case B.DOM_CLICK:t="ENGAGEMENT"}}return t}isXpathAllHead(e,t,n=!1){if(e.muts=e.muts||{},"boolean"==typeof e.muts.pvtMut&&!n)return e.muts.pvtMut;const o=t.split(",");let i=!0;for(let e=0;e{try{0;return window.localStorage.getItem(e)}catch(e){return""}},set:(e,t)=>{try{return Oo._setItem(e,t)}catch(e){return""}},remove:e=>{try{return Oo._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 mo(e){Oo=e}window.VWO._.localStorageService=Eo;class So{modifyTriggerConditions(e,t){const n=[];return Array.isArray(e)?(e.forEach((e=>{if(Array.isArray(e))n.push(this.modifyTriggerConditions(e,t));else{const o=t(e);n.push(o)}})),n):e}getExitTrigger(e){for(let t=0;te&&"object"==typeof e&&!Array.isArray(e),[Ao,Vo]=function(){let e={};return window.VWO._.phoenixMT.on("vwo_urlChangeMt",(()=>{e={}})),[(t,n)=>{e[t]=e[t]||{},e[t][n]=!0},(t,n)=>yo(e[t])&&!!e[t][n]]}();function No({triggerId:e,eventName:t,triggerObj:n}){const o=(n||window.VWO._.allSettings.triggers[e]||{}).cnds||[];for(let e=0;e-1)return!0;return!1}function bo(){let e,t=!1,n={};const o=window.VWO._.phoenixMT,i={attach:()=>{if(!t){e=new MutationObserver((()=>{Object.keys(n).forEach((e=>{o.trigger(e)}))}));try{const n=Co();e.observe(n,{childList:!0,subtree:!0}),t=!0}catch(e){}}},remove:()=>{e&&(e.disconnect(),e=null,t=!1)},fireEventOnMutation:e=>{n[e]=1}};return o.on("vwo_urlChangeMt",(()=>{i.remove(),o.getAllEvents().forEach((e=>{e.indexOf("vwo_mutObs")>-1&&o.clearEvent(e)})),n={}})),i}const Ro=bo();function Lo(e){yo(e)&&Object.assign(Io.state,e)}function Wo(e){window.fetcher.getValue('window.VWO.modules.utils.tagExecutor.fireTagEvaluatedEvent("${{1}}")',null,{captureGroups:[e]})}function Do(e,t){const{amt:n,campId:o}=e,i=e.t,r=()=>{try{t(),Io.state[i]=!0}catch(e){d({msg:`Error occurred while executing "${i}" trigger`,url:"triggerBasedTagExecutorMT.ts",source:e})}};n&&(Ro.attach(),Ro.fireEventOnMutation(`vwo_mutObs.${i}`));const s=No({triggerId:i,eventName:B.CAMPAIGN_UNLOADED});if((!i||Io.state[i])&&!s)return r();Vo(e.tag,i)||(Ao(e.tag,i),window.fetcher.getValue('window.VWO.modules.utils.tagExecutor.attachTriggerListenersForTagExecution("${{1}}", "${{2}}", "${{3}}")',null,{captureGroups:[i,r,{isWaitForElementEvent:n,campId:o,preventCallBackRemovalOnSpa:s,isCampUnloadEvent:s}]}))}function Po(e){if("object"!=typeof e)return'"'+e+'"';let t="";try{const n=ge(e);let o=n.length;for(;o--;){const i=n[o];t+='"'+i+'":'+Po(e[i])+","}t="{"+t.slice(0,-1)+"}"}catch(t){d({msg:"Error in json stringify - "+e,url:"utils.js",source:encodeURIComponent("json-stringify")})}return t}function xo(e,t){let n=!1;return function(){n||(e.call(this,arguments),n=!0,setTimeout((function(){n=!1}),t))}}function Uo(e,t){let n,o=!1;return function(...i){o&&(clearTimeout(n),n=null),n=setTimeout((function(){e.apply(null,i)}),t),o=!0}}function Mo(e,t,n){let o=document.URL;e&&window.history?function(e,t){const n=function(n){const i=e[n];e[n]=function(n){const r=i.apply(e,[].slice.call(arguments));return window.fetcher.postMessage({type:"sync",property:"URL",value:document.URL,syncType:2}),t({state:n,currentUrl:document.URL,previousUrl:o}),o=document.URL,r}};n("pushState"),n("replaceState")}(window.history,t):window.addEventListener("hashchange",t,!1)}function ko(e){e.fn.nonEmptyContents=function(){if(!this||!this.length)return this.contents();const e=this.contents();let t;for(let n=e.length;n--;)t=e.get(n),3!==t.nodeType||/\S/.test(t.nodeValue)||e.splice(n,1);return e};const t=function(e,t,n){(navigator.userAgent.indexOf("MSIE ")>-1||navigator.userAgent.indexOf("Trident/")>-1)&&e.style.setProperty(t,n.replace("!important","").trim()),e.style.setProperty(t,n.replace("!important",""),"important")};e.fn.vwoCss=function(){let n;try{this.each((function(){this.hasOwnProperty("__vwoControlStyleAttr")||(this.__vwoControlStyleAttr=this.getAttribute("style")||"")}))}catch(e){const t="[JSLIB] Error during storing control style attribute value";d({msg:t,url:"utils.js",source:encodeURIComponent(t)})}if(1===arguments.length){if("string"==typeof arguments[0])return this.css(arguments[0]);for(const e in arguments[0])arguments[0].hasOwnProperty(e)&&(n=arguments[0][e].toString(),n.indexOf("important")>-1?this.each((function(){t(this,e,n)})):this.css(arguments[0]))}else if(2===arguments.length){const e=arguments[0].toString();n=arguments[1]?arguments[1].toString():null,n&&n.indexOf("important")>-1?this.each((function(){t(this,e,n)})):this.css(e,n)}else e.fn.css.apply(this,arguments);return this},e.fn.vwoAttr=function(){if(this&&this.length){if(2!==arguments.length){if(1===arguments.length){if("string"==typeof arguments[0])return this.attr(arguments[0]);{var t=arguments[0];try{this.each((function(){if(!this.hasOwnProperty("__vwoControlVwoAttr")){this.__vwoControlVwoAttr={};Object.keys(t).forEach((e=>{switch(e){case"class":this.hasAttribute(e)?(this.__vwoControlVwoAttr.attrsToAddOrModify=this.__vwoControlVwoAttr.attrsToAddOrModify||[],this.__vwoControlVwoAttr.attrsToAddOrModify.push({name:e,value:this.getAttribute(e)})):(this.__vwoControlVwoAttr.attrsToRemove=this.__vwoControlVwoAttr.attrsToRemove||[],this.__vwoControlVwoAttr.attrsToRemove.push(e));break;case"removedAttributes":t.removedAttributes.forEach((e=>{this.hasAttribute(e)&&(this.__vwoControlVwoAttr.attrsToAddOrModify=this.__vwoControlVwoAttr.attrsToAddOrModify||[],this.__vwoControlVwoAttr.attrsToAddOrModify.push({name:e,value:this.getAttribute(e)}))}));break;default:this.hasAttribute(e)?(this.__vwoControlVwoAttr.attrsToAddOrModify=this.__vwoControlVwoAttr.attrsToAddOrModify||[],this.__vwoControlVwoAttr.attrsToAddOrModify.push({name:e,value:this.getAttribute(e)})):(this.__vwoControlVwoAttr.attrsToRemove=this.__vwoControlVwoAttr.attrsToRemove||[],this.__vwoControlVwoAttr.attrsToRemove.push(e))}}))}}))}catch(e){const t="[JSLIB] Error during storing control attributes values";d({msg:t,url:"utils.js",source:encodeURIComponent(t)})}const n=e.extend({},t);if(Array.isArray(n.removedAttributes))for(let e=n.removedAttributes.length-1;e>=0;e--)n[n.removedAttributes[e]]&&delete n[n.removedAttributes[e]];else delete n.removedAttributes;const o=["type","height","width"],i=this.get(0);for(let e in o)if(o.hasOwnProperty(e)){const t=o[e];n[t]&&(i.setAttribute(t,n[t]),delete n[t])}if(n.class){const e=n.class.addedClasses,t=n.class.removedClasses;e&&e.length>0&&this.addClass(e.join(" ")),t&&t.length>0&&this.removeClass(t.join(" ")),delete n.class}if(n.removedAttributes&&n.removedAttributes.length>0){for(let e=0;e.${t}{width:${n.width}px;height:${n.height}px;animation-timing-function: linear;animation-duration: ${n.loaderConfig.as};animation-iteration-count: infinite;animation-name: placeHolderShimmer;background: #ccc;background: linear-gradient(to right, ${n.loaderConfig.pc} 8%, ${n.loaderConfig.sc} 38%, ${n.loaderConfig.pc} 54%);display: inline-block;}@keyframes placeHolderShimmer{0%{background-position: -468px 0}100%{background-position: 468px 0}}`);const s=new Image;s.onload=s.onerror=()=>{window._vwo_handleMutations&&window._vwo_handleMutations(this.get(0),(()=>{this.attr("src",o),i&&this.attr("srcset",i),e(`#${t}`).remove(),this.removeClass(t)}))},s.src=o,i&&(s.srcset=i),this.addClass(t)}["src","srcSet","loader","loaderConfig"].forEach((e=>{delete n[e]}))}else if(u((()=>le._.ac.hIF))&&(n.src||n.srcset)&&["IMG","SOURCE"].includes(this.get(0).tagName)){let e=n.src,t=n.srcset;e&&(n.src=r),t&&(n.srcset=r),setTimeout((()=>{window._vwo_handleMutations&&window._vwo_handleMutations(this.get(0),(()=>{e&&this.attr("src",e),t&&this.attr("srcset",t)}))}),0)}return window.VWOspvEventListenerAdded||document.addEventListener("securitypolicyviolation",(e=>{e.blockedURI.includes(".vwo.io")&&(window.VwoIoImageLoadFailed=!0)})),window.VWOspvEventListenerAdded=!0,"IMG"===i.tagName&&t.src&&t.src.includes(".vwo.io")&&(i.onerror=()=>{window.VwoIoImageLoadFailed&&window._vwo_handleMutations&&window._vwo_handleMutations(i,(()=>{this.attr("src",t.src.replace("vwo.io","visualwebsiteoptimizer.com")),t.srcset&&this.attr("srcset",t.srcset.replace("vwo.io","visualwebsiteoptimizer.com")),delete window.VwoIoImageLoadFailed}))}),this.attr(n)}}return e.fn.attr.apply(this,arguments)}this.get(0).setAttribute(arguments[0],arguments[1])}return this};const n=window._vwo_editorOperationTracker={},o={};window.VWO._.phoenixMT.once("vwo_domClicked",(e=>{const t=Object.keys(o);for(let n=0;n${e.html}`:n+=`
${e.html}
`,e.js&&e.js.data&&(n+=`