var $jscomp$this=this,$jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(b){return b.raw=b};$jscomp.createTemplateTagFirstArgWithRaw=function(b,c){b.raw=c;return b};$jscomp.arrayIteratorImpl=function(b){var c=0;return function(){return c>>0,$jscomp.propertyToPolyfillSymbol[q]=$jscomp.IS_SYMBOL_NATIVE? $jscomp.global.Symbol(q):$jscomp.POLYFILL_PREFIX+f+"$"+q),$jscomp.defineProperty(m,$jscomp.propertyToPolyfillSymbol[q],{configurable:!0,writable:!0,value:c})))};$jscomp.assign=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(b,c){for(var f=1;f>>0)+"_",m=0,q=function(x){if(this instanceof q)throw new TypeError("Symbol is not a constructor");return new c(f+(x||"")+"_"+m++,x)};return q},"es6","es3"); $jscomp.polyfill("Symbol.iterator",function(b){if(b)return b;b=Symbol("Symbol.iterator");for(var c="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),f=0;ff&&(f=Math.max(f+q,0));f=x}},"es6","es3");$jscomp.polyfill("Object.values",function(b){return b?b:function(c){var f=[],m;for(m in c)$jscomp.owns(c,m)&&f.push(c[m]);return f}},"es8","es3"); $jscomp.polyfill("String.prototype.replaceAll",function(b){return b?b:function(c,f){if(c instanceof RegExp&&!c.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return c instanceof RegExp?this.replace(c,f):this.replace(new RegExp(String(c).replace(/([-()\[\]{}+?*.$\^|,:#e;e+=1){if(4===e||6===e||8===e||10===e)d+="-";var n=a[e];d+="0123456789abcdef"[Math.floor(n/16)]+"0123456789abcdef"[n%16]}return d}function L(a, d){var e=C(),n=window.LogRocket&&!!document.getElementById("mvf-chameleon-logrocket"),l={id:e,width:"100%",style:"overflow: hidden; border: 0; transition: 110ms ease height; min-width: 300px; height: "+MINIMUM_HEIGHT+"px; max-width: 800px;",loading:"lazy",sandbox:(!0===n?"allow-same-origin ":"")+"allow-forms allow-modals allow-popups allow-scripts allow-top-navigation allow-presentation allow-popups-to-escape-sandbox",title:"MVF GLOBAL WEBFORM EMBED"};e="dev"===(null==a?void 0:a.env)?"http://chameleon.localhost:2000/formLoaderError": "https://chameleon-frontend-"+sanitiseEnvironmentAndDomain(null==a?void 0:a.env,null==a?void 0:a.domain)+".mvfglobal.com/formLoaderError";var g=document.createElement("iframe");n=document.createElement("div");(null==a?0:a.containerId)&&(a=document.getElementById(null==a?void 0:a.containerId))&&(n=a);a=document.currentScript;a.parentNode.insertBefore(n,a);d="?supportId="+ma()+"&message="+encodeURIComponent(d);g.src=e+d;n.appendChild(g);Object.keys(l).forEach(function(u){g.setAttribute(u,l[u])})}function na(a, d,e){var n={widgetLabel:d,iFrameId:e.id};if(window.IntersectionObserver){var l=new IntersectionObserver(function(v){!0===v[0].isIntersecting&&(window.chameleon.shouldLogEventsToConsole&&(console.info("MVF EMBED EVENT INFO"),console.info("MVF EMBED EVENT Type: widgetVisible"),console.info("MVF EMBED EVENT DETAILS: widgetLabel: ",d),console.info("MVF EMBED IFRAMEID OF EVENT ORIGIN: ",e.id)),a(n),l.unobserve(e))},{threshold:[.75]});l.observe(e)}else{var g=.75*e.offsetHeight,u=function(){var v=e.getBoundingClientRect(); v.top=g&&(a(n),window.removeEventListener("scroll",u))};window.addEventListener("scroll",u)}}function W(a){return a?Math.min(Math.max(a,MINIMUM_HEIGHT),MAXIMUM_HEIGHT):MINIMUM_HEIGHT}function X(a){function d(l){return"string"===typeof l}if("object"!==typeof a)return!0;var e={formId:{validationFunction:function(l){return"number"===typeof l||d(l)&&/^-?\d+$/.test(l)},errorMessage:"formId should be a number"},features:{validationFunction:function(l){return Array.isArray(l)&& l.every(d)},errorMessage:"features should be an array of strings"},componentExperiments:{validationFunction:ha,errorMessage:"componentExperiments should be an object with component names or ids as keys and experiment names as values"}},n=[];Object.keys(a).forEach(function(l){if(Object.prototype.hasOwnProperty.call(e,l)){var g=e[l];g.validationFunction(a[l])||n.push("Invalid data type for the value of nested key-value pair: "+g.errorMessage)}else n.push("Invalid key name for the key-value pair: "+ l+"' => '"+a[l])});return 0!==n.length?(console.info("MVF Test Setting Error(s) below:\n"+n.join("\n")+"\n\nPlease contact your MVF support team if you cannot resolve these via the provided suggestions."),!1):!0}function oa(a){return X(a)&&a&&a.features&&0!==a.features.length?a.features.filter(function(d){return RUNTIME_ONLY_APP_FEATURES.includes(d)?!0:!1}):[]}function pa(a,d,e,n){var l=X(d);var g=ka(d,l);g=la(g);l=d&&l?d.formId?d.formId:a.formId:a.formId;var u=encodeURIComponent(document.location.href); n=encodeURIComponent(n);return getHost(a,d)+"/forms/"+l+"/"+g+"/"+e+"#iFrameId="+n+"&parentPageUrl="+u}function Y(a){var d="rgb(134, 134, 134)";a.paletteOverrides&&a.paletteOverrides.progressBarFilledColor?d=a.paletteOverrides.progressBarFilledColor:a.paletteOverrides&&a.paletteOverrides.answerSelectedColor&&(d=a.paletteOverrides.answerSelectedColor);return{custom:{primaryColour:d,secondaryColour:"rgb(247,247, 247)"},chameleon:{primaryColour:"rgb(26, 155, 219)",secondaryColour:"rgb(247,247, 247)"}, indigo:{primaryColour:"rgb(0, 181, 155)",secondaryColour:"rgb(247,247, 247)"},rhubarb:{primaryColour:"rgb(30, 188, 216)",secondaryColour:"rgb(247,247, 247)"},atlantic:{primaryColour:"rgb(18, 189, 156)",secondaryColour:"rgb(247,247, 247)"},gowizard:{primaryColour:"rgb(85, 191, 229)",secondaryColour:"rgb(247,247, 247)"}}[c(a.themeName)]}function qa(a,d,e){var n=a.clientWidth,l=a.clientHeight;a=document.createElement("div");var g=document.createElement("div"),u=document.createElement("div"),v=document.createElement("div"), r=document.createElement("div");e="gowizard"!==c(e.themeName)?e.containerId?e.borderEnabled||void 0===e.borderEnabled?"border-radius: 4px; border-style: none;":"border-radius: inherit; border-style: none;":e.borderEnabled||void 0===e.borderEnabled?"border-radius: 4px; border-style: none;":"border: none;":e.borderEnabled||void 0===e.borderEnabled?"border-radius: 13px; border-style: none;":"border-radius: inherit; border-style: none;";a.setAttribute("style",e+"overflow: hidden; position: absolute; width: "+ (n+"px; height: "+l+"px"));var h=(Date.now()+"-"+Math.random()).replace(".","");e="mvf-loading-slider-"+h;l="mvf-loading-line-"+h;var y="mvf-loading-subline-"+h;g.setAttribute("class",e);u.setAttribute("class",l);v.setAttribute("class",y+" mvf-loading-inc-");r.setAttribute("class",y+" mvf-loading-dec-");h=document.createElement("style");h.setAttribute("type","text/css");d=document.createTextNode("."+e+" {\nbox-sizing: border-box; position: relative; width:"+(n+"px; height:25px; overflow-x: hidden\n}\n.")+ (l+" {\nbox-sizing: border-box; position: absolute; background:"+d.secondaryColour+";width:100%; height:25px;\n}\n.")+(y+" {\nbox-sizing: border-box; position:absolute; background:"+d.primaryColour+";height:25px;\n}\n.mvf-loading-inc- {\nanimation: increase 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n}\n.mvf-loading-dec- {animation: decrease 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n}@keyframes increase {\n from { left: -5%; width: 5%; }\n to { left: 130%; width: 100%; }\n}\n@keyframes decrease {\n from { left: -80%; width: 80%; }\nto { left: 110%; width: 10%;}\n}")); h.appendChild(d);document.getElementsByTagName("head")[0].appendChild(h);g.appendChild(u);g.appendChild(v);g.appendChild(r);a.appendChild(g);return a}function ra(a,d,e){var n=a.clientWidth,l=a.clientHeight;a=document.createElement("div");var g=document.createElement("div"),u=document.createElement("span"),v=document.createElement("h2"),r=document.createTextNode("Loading..."),h=c(e.themeName),y=(l>=MAXIMUM_HEIGHT?MAXIMUM_HEIGHT:l<=MINIMUM_HEIGHT?MINIMUM_HEIGHT:l)/5,I=y/10;n="width: "+n+"px; height: "+ l+"px";l=m()||q()?"Helvetica":"Arial";l="fontWeight: 700; "+(e.fontOverride||e.betaFontOverride?"font-family: "+(e.fontOverride||e.betaFontOverride)+";":"font-family: "+l+", sans-serif;")+";";a.setAttribute("style",("gowizard"!==h?e.containerId?e.borderEnabled||void 0===e.borderEnabled?"border-radius: 4px; border-style: none;":"border-radius: inherit; border-style: none;":e.borderEnabled||void 0===e.borderEnabled?"border-radius: 4px; border-style: none;":"border: none;":e.borderEnabled||void 0=== e.borderEnabled?"border-radius: 13px; border-style: none;":"border-radius: inherit; border-style: none;")+" z-index: 9999; overflow: hidden; background: rgb(255, 255, 255, 0.9);position: absolute; "+n);g.setAttribute("style","position: absolute; width: 100%; top: calc(50% - "+y+"px); margin: 0;");v.setAttribute("style","opacity: 0; margin-block-start: 0.83em; margin-block-end: 0.83em;text-align: center; color: black; width: 100%; "+l);h=(Date.now()+"-"+Math.random()).replace(".","");n="mvf-loading-spinner-"+ h;l="mvf-loading-text-"+h;u.setAttribute("class",n);v.setAttribute("class",l);v.setAttribute("id","mvf-loading-text-1");e=document.createElement("style");e.setAttribute("type","text/css");d=document.createTextNode("."+n+" {\nborder-radius: 50%; animation: rotate-"+h+" 1s linear infinite;left: calc(50% - "+(y+"px / 2); display: block; position: relative; width: ")+(y+"px; height: "+y+"px; overflow-x: hidden;\n}\n.")+(n+"::before , ."+n+'::after {\ncontent: ""; box-sizing: border-box; position: absolute; inset: 0px; border-radius: 50%; border: ')+ (I+"px solid "+d.secondaryColour+"; animation: prixClipFix-")+(h+" 2s linear infinite;\n}\n."+n+"::after {\ntransform: rotate3d(90, 90, 0, 180deg );border-color: ")+(d.primaryColour+";\n}\n\n@keyframes rotate-"+h+" {\x00% {transform: rotate(0deg)}\n100% {transform: rotate(360deg)}\n}\n\n@keyframes prixClipFix-")+(h+" {\n0% {clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}\n50% {clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}\n75%, 100% {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}\n}@media (max-width: 309.95px) {\n.")+ (l+" {\nfont-size: 16px;\n}\n}\n@media (min-width: 310px) and (max-width: 499.95px) {\n."+(l+" {\nfont-size: 17px;\n}\n}\n@media (min-width: 500px) and (max-width: 707.95px) {\n.")+(l+" {\nfont-size: 18px;\n}\n}\n@media (min-width: 708px) and (max-width: 899.95px) {\n.")+(l+" {\nfont-size: 22px;\n}\n}\n@media (min-width: 900px) {\n.")+(l+" {\nfont-size: 24px;\n}\n}\n\n@keyframes fadeTextInAndUp {\n0% {\nopacity: 0;\ntransform: translateY(5px);\n}\n100% {\nopacity: 1;\ntransform: translateY(0px);\n}\n}\n\n@keyframes fadeTextOutAndUp {\n0% {\nopacity: 1;\ntransform: translateY(0px);\n}\n100% {\nopacity: 0;\ntransform: translateY(-5px);\n}\n}"))); e.appendChild(d);document.getElementsByTagName("head")[0].appendChild(e);v.appendChild(r);g.appendChild(u);g.appendChild(v);a.appendChild(g);return a}function sa(a){if(a){if("object"===typeof a&&!Array.isArray(a)){var d={formId:"string",themeName:"string",campaignId:"string",widgetLabel:"string",testMode:"boolean",containerId:"string",height:"number",maxWidth:"number",isConsentStatementAboveNavigation:"boolean",borderEnabled:"boolean",headerEnabled:"boolean",paletteOverrides:"object",eventHandlers:"object", env:"string",domain:"string",belowFold:"boolean",dynamicHeight:"boolean",autoScroll:"boolean",fontOverride:"string",useCidFromURL:"boolean",formIdentifier:"string",betaDynamicHeight:"boolean",betaAutoScroll:"boolean",betaFontOverride:"string"},e={initialWidgetLoad:"function",initialWidgetInteraction:"function",widgetVisible:"function",pageChanged:"function",userAction:"function",questionAnswered:"function",finalSubmission:"function",formSubmit:"function",partialFormSubmit:"function",submissionStatusUpdated:"function", formError:"function",failedForwardPageNavigation:"function",customerMatchesRequested:"function",subcategoryMatchesRequested:"function",thankYouPageReached:"function"},n="answerSelectedColor widgetBackgroundColor secondaryBackgroundColor answerBackgroundColor answerUnselectedColor continueButtonColor continueButtonHoverColor scrollIndicatorColor backButtonColor backButtonHoverColor primaryTextColor secondaryTextColor continueButtonTextColor progressBarFilledColor".split(" "),l={formId:!1},g=Object.keys(a), u=a.eventHandlers&&"object"===typeof a.eventHandlers&&!Array.isArray(a.eventHandlers)?Object.keys(a.eventHandlers):[],v=a.paletteOverrides&&"object"===typeof a.paletteOverrides&&!Array.isArray(a.paletteOverrides)?Object.keys(a.paletteOverrides):[],r=[];g.forEach(function(h){Object.prototype.hasOwnProperty.call(d,h)?((typeof a[h]!==d[h]||"eventHandlers"===h&&Array.isArray(a[h])||"campaignId"===h&&!a[h].match(/^[0-9a-fA-F]{13}$/))&&r.push("Invalid data type for the value of key-value pair: '"+h+"' => '"+ a[h]+"'. Please change this value to be a "+("campaignId"===h?"string with a format of 13 hex characters, e.g. '0123456abcdef'":d[h])+"."),l[h]=!0):r.push("Invalid key name for the key-value pair: '"+h+"' => '"+a[h]+"'. Please check the spelling and make use of the following key names only: "+Object.keys(d))});Object.keys(l).forEach(function(h){!1===l[h]&&r.push("Missing mandatory key-value pair for the key: '"+h+"'. Please add this into your inputConfig data for calling the 'runFormWidgetLoader()' function of this loader script.")}); u.forEach(function(h){Object.prototype.hasOwnProperty.call(e,h)?typeof a.eventHandlers[h]!==e[h]&&r.push("Invalid data type for the value of nested key-value pair: eventHandlers."+h+" => '"+a.eventHandlers[h]+"'. Please change this value to be a function."):r.push("Invalid key name for the nested key-value pair: eventHandlers."+h+" => '"+a.eventHandlers[h]+"'. Please check the spelling and make use of the following event names only: "+Object.keys(e)+".")});v.forEach(function(h){var y=a.paletteOverrides[h]; if(0<=!n.indexOf(h)){var I=/^(#)((?:[A-Fa-f0-9]{3,4}){1,2})$/,p=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/;"string"===typeof y&&(null!==I.exec(y)||null!==p.exec(y))||r.push("Invalid data type for the value of nested key-value pair: eventHandlers."+h+" => '"+y+"'. Please change this value to be an RGB/RGBA/Hex/Hex+A color code string.")}else r.push("Invalid key name for the nested key-value pair: paletteOverrides."+h+" => '"+a.paletteOverrides[h]+"'. Please check the spelling and make use of the following event names only: "+ Object.keys(n)+".")});if(0===r.length){if(a.containerId){if(document.getElementById(a.containerId))return!0;g="MVF Form Loader Error - Container element of your provided id '"+a.containerId+"' for mvfFormWidget cannot be found. Please check the spelling and make sure that the HTML element is present on the page and is positioned above the loader scripts in the body section. Alternatively, please contact your MVF support team.";console.info(g);w.loadingErrors.push(g);return!1}return!0}g="MVF Form Loader Error(s) below:\n"+ r.join("\n")+"\n\nPlease contact your MVF support team if you cannot resolve these via the provided suggestions.";console.info(g);w.loadingErrors.push(g);L(a,g);return!1}g="MVF Form Loader Error - Invalid input argument\n"+a+"\n. Please pass in a JS object to the 'runFormWidgetLoader()' function call or contact your MVF support team, alternatively.";console.info(g);w.loadingErrors.push(g);L(a,g);return!1}console.info("MVF Form Loader Error - Missing input argument. Please pass in a JS object to the 'runFormWidgetLoader()' function call or contact your MVF support team, alternatively."); w.loadingErrors.push("MVF Form Loader Error - Missing input argument. Please pass in a JS object to the 'runFormWidgetLoader()' function call or contact your MVF support team, alternatively.");L(a,"MVF Form Loader Error - Missing input argument. Please pass in a JS object to the 'runFormWidgetLoader()' function call or contact your MVF support team, alternatively.");return!1}function Z(a,d,e){function n(g){if((void 0!==g&&!g||1!==window.__private__.paging[a.id].currentPage||void 0!==window.__private__.paging[a.id].previousPage)&& !window.__private__.isAutoScrollTempDisabled){window.__private__.isAutoScrollInitiated=!0;a:{if("object"===typeof a&&a.parentNode&&a!==document&&a!==window)for(g=a.parentNode;g&&"object"===typeof g&&g!==document&&g!==window;){var u=window.getComputedStyle(g,null),v="auto"===u.overflowY||"scroll"===u.overflowY,r=0parseInt(O,10)&&(t=O),t!==D&&(B.style.height=t,B.parentNode.style.height=t));k.data.startsWith("userIdentityUpdateRequested")&&(t={},window.jstag&&"function"===typeof window.jstag.getCookieValue&&(E=window.jstag.getCookieValue())&&(t.lytics=E),0