try { if (window.QSI === undefined) window.QSI = {}; if (QSI.reg === undefined) QSI.reg = {}; if (QSI.ed === undefined) QSI.ed = {}; if (QSI.reqID === undefined) QSI.reqID = {}; if (typeof QSI.isFullDbgInitialized === "undefined") { QSI.isFullDbgInitialized = false; } QSI.initFullDbg = function() { if (QSI.isFullDbgInitialized === true) { return; } QSI.isFullDbgInitialized = true; QSI.dbg = { log: function() {}, c: function(m) { try {console.log(m);}catch(e){alert(m);} QSI.dbg.log(m); }, d: function(m) { try {console.dir(m);}catch(e){} QSI.dbg.log(m); }, t: function(m) { try {console.trace();}catch(e){} QSI.dbg.log(m); }, e: function(m) { var message = "error"; if(m.message) message = m.message try { console.log(message); console.error(m); } catch(e) { try { console.log(message); console.log(m); } catch (e) { alert(message); } } QSI.dbg.log(m); } }; }; if (window.location.href.indexOf('Q_DEBUG') === -1) { QSI.dbg = { log: function() {}, c: function(m) { QSI.dbg.log(m); }, d: function(m) { QSI.dbg.log(m); }, t: function(m) { QSI.dbg.log(m); }, e: function(m) { QSI.dbg.log(m); } }; } else { QSI.initFullDbg(); } if (QSI.global === undefined) { QSI.global = { currentZIndex: 2000000000, imagePath: 'https://zn_5u81q8n4jdu5ls9-cbs.siteintercept.qualtrics.com/WRSiteInterceptEngine/../WRQualtricsShared/Graphics/', graphicPath: 'https://az1.qualtrics.com/WRQualtricsSiteIntercept/Graphic.php?IM=', modulePath: 'https://a248.e.akamai.net/img.qualtrics.com/WRQualtricsShared/JavaScript/SiteInterceptEngine/', intercepts: {}, eventTrackers: [] }; } QSI.global.legacyId = 'ZN_5u81q8n4JDU5Ls9'; QSI.global.baseURL = '//siteintercept.qualtrics.com'; QSI.baseURL = 'https://siteintercept.qualtrics.com/WRSiteInterceptEngine/'; QSI.Browser = {}; QSI.Verify={sendPostMessageToOpenerForVerifyInstall:function(){QSI.util.getQueryParam(window.location.href,"Q_VERIFY")&&window.opener.postMessage(QSI.global.legacyId,"*")},displaySuccessMessageForVerification:function(){if(QSI.util.getQueryParam(window.location.href,"Q_VERIFY")===QSI.global.legacyId){highestPriorityZIndex=2147483647;var a=QSI.util.build("span",{style:{display:"block",fontSize:"16px",fontFamily:'"Qualtrics Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif',fontWeight:"800",color:"#222222"}},["Qualtrics is successfully installed!"]),b=QSI.util.build("span",{style:{display:"block",fontSize:"14px",fontFamily:'"Qualtrics Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif',color:"#737373",marginTop:"8px"}},["You can close this window"]),c=QSI.util.build("img",{src:QSI.baseURL+"../WRQualtricsShared/Graphics/siteintercept/VerifyInstallCheckmark.svg",style:{width:"40px",height:"40px"}},[]),d=QSI.util.build("div",{id:"QSI_Verify_QualtricsVerificationDiv",style:{position:"fixed",top:"20px",left:"20px",zIndex:highestPriorityZIndex,width:"312px",height:"115px",textAlign:"center",backgroundColor:"white",border:"2px solid #696969",display:"block"}},[c,a,b]);document.body.appendChild(d)}}};QSI.profile||(QSI.profile={namespace:"QSI_",set:function(a,b,c,d){if(void 0===a||void 0===b||void 0===c)throw new Error("To few arguments");try{var e=this.getStorage(d),f=this.namespace+a,g=e.getItem(f);g=g?JSON.parse(g):{},g[b]=c,g=JSON.stringify(g),e.setItem(f,g)}catch(h){QSI.dbg.e("error setting profile item"),QSI.dbg.e(h)}},get:function(a,b,c){var d=this.getStorage(c),e=this.namespace+a,f=d.getItem(e);return f?(f=JSON.parse(f),b?f[b]?f[b]:null:f):null},erase:function(a,b,c){var d=this.getStorage(c),e=this.namespace+a;if(b){var f=JSON.parse(d.getItem(e));delete f[b],f=JSON.stringify(f),d.setItem(e,f)}else d.removeItem(e)},getStorage:function(a){if(this.hasSessionStorage())return a?localStorage:sessionStorage;if(QSI.UserDataStorage){var b=QSI.UserDataStorage;return b.isPermanent(a?!0:!1),b}return QSI.CookieStorage},hasSessionStorage:function(){var a="qualtricssessionstoragetestkey",b=window.sessionStorage;try{return b.setItem(a,a),b.removeItem(a),!0}catch(c){return!1}}});void 0===QSI.util&&(QSI.util={$:function(a){return"string"==typeof a&&(a=document.getElementById(a)),a},forOwn:function(a,b){if(a&&a instanceof Object&&this.isFunction(b))for(var c in a)a.hasOwnProperty(c)&&b(a[c],c,a)},build:function(a,b,c){var d=document.createElement(a);if(b){var e=this;QSI.util.forOwn(b,function(a,c){switch(c){case"style":e.setStyle(d,b[c]);break;case"className":d.className=b[c];break;case"id":d.id=b[c];break;default:d.setAttribute(c,b[c])}})}if(c)if(QSI.util.isString(c))"style"==a&&d.styleSheet?d.styleSheet.cssText=c:d.appendChild(document.createTextNode(String(c)));else if(QSI.util.isArray(c))for(var f=0,g=c.length;g>f;f++){var h=c[f];"string"==typeof h||"number"==typeof h?d.appendChild(document.createTextNode(String(h))):h&&h.nodeType&&d.appendChild(h)}return d},setStyle:function(a,b){QSI.util.forOwn(b,function(c,d){try{a.style[d]=b[d]}catch(e){QSI.dbg.e(e)}})},isString:function(a){return"string"==typeof a},isArray:function(a){return"object"==typeof a&&a instanceof Array},getQueryParam:function(a,b){b=b.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c="[\\?&]"+b+"=([^&#]*)",d=new RegExp(c),e=d.exec(a);return null===e?"":e[1]},observe:function(a,b,c){this.obs=this.obs||[],a&&(this.obs.push({el:a,e:b,f:c}),a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent?a.attachEvent("on"+b,c):a["on"+this.capFirst(b)]&&(a["on"+this.capFirst(b)]=c))},stopObserving:function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent?a.detachEvent("on"+b,c):a["on"+this.capFirst(b)]&&(a["on"+this.capFirst(b)]=null)},removeObservers:function(){var a=this;this.each(this.obs||[],function(b){a.stopObserving(b.el,b.e,b.f)})},remove:function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},isFunction:function(a){return"function"==typeof a||!1},capFirst:function(a){return a.charAt(0).toUpperCase()+a.slice(1)},each:function(a,b){var c=a.length;if(c)for(var d=0;c>d;d++)b(a[d],d)}});(!QSI.API||window.QTest)&&(QSI.API={load:function(){function a(a){try{if(QSI.reg||this.unloading)return void a.reject();void 0===window.QSI&&(window.QSI={}),void 0===QSI.reg&&(QSI.reg={}),void 0===QSI.ed&&(QSI.ed={}),void 0===QSI.reqID&&(QSI.reqID={}),void 0===QSI.Request&&(QSI.Request={}),void 0===QSI.styleElements&&(QSI.styleElements=[]),QSI.util.forOwn(QSI.reqID,function(b,c){var d={};d.loadingFromAPI=!0,d.id=c,"Editing"===QSI.version&&(d.Q_VERSION="0"),0===c.search(/ZN/)?d.ZoneID=c:d.InterceptID=c,QSI.isDebug&&(d.Q_DEBUG=null),d.deferred=a,function(){QSI.Orchestrator.load(d)}(d)})}catch(b){QSI.dbg.e(b)}}try{var b=QSI.Orchestrator.Deferred(),c=b.promise();return QSI.PendingQueue||(QSI.PendingQueue=[]),QSI.LoadingState&&QSI.LoadingState.length>0?QSI.PendingQueue.push(a.bind(this,b)):a.bind(this,b)(),c}catch(d){QSI.dbg.e(d)}},unload:function(){try{if(QSI.PendingQueue||(QSI.PendingQueue=[]),QSI.LoadingState&&QSI.LoadingState.length>0)return void QSI.PendingQueue.push(QSI.API.unload);if(this.unloading=!0,QSI.reg&&(QSI.util.forOwn(QSI.reg,function(a,b){var c=QSI.reg[b];c.remove()}),QSI.util.removeObservers()),QSI.debug&&(QSI.util.remove(QSI.util.$("QSI_Debug")),QSI.debuggerHasDisplayed=!1),QSI.styleElements)for(var a=QSI.styleElements,b=0;b0)return void QSI.PendingQueue.push(QSI.API.run);QSI.InterceptsRan||void 0===QSI.reg||QSI.RunIntercepts(null,!0)}catch(a){QSI.dbg.e(a)}},Events:{increment:function(a){try{QSI.EventTracker.track(a)}catch(b){QSI.dbg.e(b)}},count:function(a){try{return QSI.EventTracker.get(a)}catch(b){QSI.dbg.e(b)}},push:function(a){try{QSI.EventTracker.track(a)}catch(b){QSI.dbg.e(b)}}}});QSI.AssetManager={loadedScripts:{},promiseFetch:function(a,b,c){var d=QSI.Orchestrator.Deferred(),e=new XMLHttpRequest;return e.open(a,b,!0),e.withCredentials=!0,"POST"===a&&e.setRequestHeader("Content-type","application/x-www-form-urlencoded"),e.onreadystatechange=function(){4==e.readyState&&(200==e.status?d.resolve(e.responseText):d.reject(e.responseText))},e.send(c),d.promise()},generateDefinitionRequestURL:function(a,b,c,d){var e=QSI.baseURL+"Asset.php?",f=[];return f.push("Module="+a),f.push("Version="+b),void 0!==d&&null!==d&&f.push("Q_InterceptID="+d),null===c.Q_NOCACHE&&f.push("Q_NOCACHE"),void 0!==c.Q_VERSION&&null!==c.Q_VERSION&&f.push("Q_VERSION="+c.Q_VERSION),QSI.CORSOrigin&&f.push("Q_ORIGIN="+QSI.CORSOrigin),e+=f.join("&")},loadDefinition:function(a,b){var c=QSI.Orchestrator.Deferred(),d=new XMLHttpRequest;return d.open("GET",a,!0),d.onreadystatechange=function(){if(4==d.readyState)if(200==d.status)try{var a=JSON.parse(d.responseText);a.Error?c.reject(a):(b(a),c.resolve(d.responseText))}catch(e){c.reject(d.responseText)}else c.reject(d.responseText)},d.send(),c.promise()},promiseLoadIntercept:function(a,b,c){var d=QSI.AssetManager.generateDefinitionRequestURL(b.InterceptID,b.InterceptRevision,c);return QSI.AssetManager.loadDefinition(d,function(b){QSI.Request[a].Intercepts[b.InterceptDefinition.InterceptID].Intercept=b.InterceptDefinition})},promiseLoadCreative:function(a,b,c){if("CR_NoCreative"!==b.Decision.Creative.ID){var d=QSI.AssetManager.generateDefinitionRequestURL(b.Decision.Creative.ID,b.Decision.Creative.Revision,c,b.InterceptID);return QSI.AssetManager.loadDefinition(d,function(c){c.CreativeDefinition=QSI.AssetManager.sortCreativeDefinition(c.CreativeDefinition),QSI.Request[a].Intercepts[b.InterceptID].Creative=c.CreativeDefinition})}return QSI.Request[a].Intercepts[b.InterceptID].Creative=null,QSI.Orchestrator.Deferred().resolve(null)},promiseLoadPopUnderTarget:function(a,b,c){var d=QSI.AssetManager.generateDefinitionRequestURL(b.Decision.PopUnderTarget.ID,b.Decision.PopUnderTarget.Revision,c,b.InterceptID);return QSI.AssetManager.loadDefinition(d,function(c){QSI.Request[a].Intercepts[b.InterceptID].PopUnderTarget=c.CreativeDefinition})},promiseLoadScript:function(a,b){var c;if(this.alreadyFetched(a))return c=QSI.Orchestrator.Deferred(),c.resolve(QSI.AssetManager.loadedScripts[a]),c.promise();c=QSI.Orchestrator.Deferred();var d=document.createElement("script");return d.src=QSI.baseURL+"Asset.php?Module="+a+"&Version="+b,d.defer=!0,d.addEventListener("load",function(){QSI.AssetManager.loadedScripts[a]=d,c.resolve(d)},!1),d.addEventListener("error",function(){c.reject(d),QSI.dbg.e("Script "+a+" failed to load.")}),document.body.appendChild(d),c.promise()},alreadyFetched:function(a){return a in QSI.AssetManager.loadedScripts},sortCreativeDefinition:function(a){if(a&&a.Options&&a.Options.elements&&a.Options.elements.Elements){var b=a.Options.elements.Elements;b=QSI.util.stableSort(b,function(a,b){return Number(a.style.zIndex)Number(b.style.zIndex)?1:0});for(var c=0;cNumber(b.position.left)?1:0}),b=QSI.util.stableSort(b,function(a,b){return Number(a.position.top)Number(b.position.top)?1:0}),a.Options.elements.Elements=b,a}return a}};QSI.CreativeManager={runEmpty:function(a){!function(){var b=new QSI.Empty({id:a.interceptID,type:QSI.util.creativeTypes.EMPTY});QSI.reg[a.interceptID]=b}()},runFeedbackLink:function(a){!function(){var b=new QSI.FeedbackLink({id:a.interceptID,type:QSI.util.creativeTypes.FEEDBACK_LINK,targetURL:a.decision.Target.URL,impressionURL:QSI.CreativeManager.Utilities.getImpressionURL({interceptID:a.interceptID,creativeID:a.decision.Creative.ID,asid:a.decision.ActionSetID}),interceptDisplayOptions:a.intercept.DisplayOptions,actionOptions:a.actionSet.ActionOptions,insertionLocation:a.actionSet.ActionOptions.displayElement?a.actionSet.ActionOptions.displayElement:a.id,displayOptions:a.creative.Options});QSI.reg[a.interceptID]=b}()},runHTTPRedirect:function(a){!function(){var b=new QSI.HTTPRedirect({id:a.interceptID,type:QSI.util.creativeTypes.HTTP_REDIRECT,targetURL:a.decision.Target.URL,impressionURL:QSI.CreativeManager.Utilities.getImpressionURL({interceptID:a.interceptID,creativeID:a.decision.Creative.ID,asid:a.decision.ActionSetID}),interceptDisplayOptions:a.intercept.DisplayOptions,actionOptions:a.actionSet.ActionOptions});QSI.reg[a.interceptID]=b}()},runIFrame:function(a){!function(){var b=new QSI.IFrame({id:a.interceptID,type:QSI.util.creativeTypes.IFRAME,targetURL:a.decision.Target.URL,impressionURL:QSI.CreativeManager.Utilities.getImpressionURL({interceptID:a.interceptID,creativeID:a.decision.Creative.ID,asid:a.decision.ActionSetID}),interceptDisplayOptions:a.intercept.DisplayOptions,actionOptions:a.actionSet.ActionOptions,iframeOptions:a.creative.Options,insertionLocation:a.actionSet.ActionOptions.displayElement?a.actionSet.ActionOptions.displayElement:a.id});QSI.reg[a.interceptID]=b}()},runInfoBar:function(a){!function(){var b={id:a.interceptID,type:QSI.util.creativeTypes.INFO_BAR,targetURL:a.decision.Target.URL,impressionURL:QSI.CreativeManager.Utilities.getImpressionURL({interceptID:a.interceptID,creativeID:a.decision.Creative.ID,asid:a.decision.ActionSetID}),interceptDisplayOptions:a.intercept.DisplayOptions,actionOptions:a.actionSet.ActionOptions,displayOptions:a.creative.Options.displayOptions};if(a.creative.Options.elements)b.elements=a.creative.Options.elements,b.resetStyle=QSI.CreativeManager.Utilities.getResetStyle("QSIInfoBar");else{b.infoBarOptions=a.creative.Options;var c=QSI.CreativeManager.Utilities.parsePipedText(a.creative.Options.content);c&&c.length>0&&(b.locators=c)}var d=new QSI.InfoBar(b);QSI.reg[a.interceptID]=d}()},runLink:function(a){!function(){var b=QSI.CreativeManager.Utilities.parsePipedText(a.creative.Options.linkText),c=new QSI.Link({id:a.interceptID,type:QSI.util.creativeTypes.LINK,targetURL:a.decision.Target.URL,impressionURL:QSI.CreativeManager.Utilities.getImpressionURL({interceptID:a.interceptID,creativeID:a.decision.Creative.ID,asid:a.decision.ActionSetID}),interceptDisplayOptions:a.intercept.DisplayOptions,actionOptions:a.actionSet.ActionOptions,text:a.creative.Options.linkText,insertionLocation:a.actionSet.ActionOptions.displayElement?a.actionSet.ActionOptions.displayElement:a.id,locators:b&&b.length>0?b:null});QSI.reg[a.interceptID]=c}()},runNoCreative:function(a){!function(){var b=new QSI.NoCreative({id:a.interceptID,type:QSI.util.creativeTypes.NO_CREATIVE,actionOptions:a.actionSet.ActionOptions,interceptDisplayOptions:a.intercept.DisplayOptions});QSI.reg[a.interceptID]=b}()},runPopOver:function(a){!function(){var b=new QSI.PopOver({id:a.interceptID,type:QSI.util.creativeTypes.POP_OVER,targetURL:a.decision.Target.URL,hasCreativeEmbeddedTarget:QSI.CreativeManager.Utilities.hasCreativeEmbeddedTarget(a.creative),impressionURL:QSI.CreativeManager.Utilities.getImpressionURL({interceptID:a.interceptID,creativeID:a.decision.Creative.ID,asid:a.decision.ActionSetID}),interceptDisplayOptions:a.intercept.DisplayOptions,actionOptions:a.actionSet.ActionOptions,elements:a.creative.Options.elements,displayOptions:a.creative.Options.displayOptions,resetStyle:QSI.CreativeManager.Utilities.getResetStyle("QSIPopOver")});QSI.reg[a.interceptID]=b}()},runPopUnder:function(a){!function(){if(!("Chrome"===QSI.Browser.name&&QSI.Browser.version>29)){var b=a.creative.Options,c={id:a.interceptID,type:QSI.util.creativeTypes.POP_UNDER,targetURL:a.decision.Target.URL,impressionURL:QSI.CreativeManager.Utilities.getImpressionURL({interceptID:a.interceptID,creativeID:a.decision.Creative.ID,asid:a.decision.ActionSetID}),interceptDisplayOptions:a.intercept.DisplayOptions,actionOptions:a.actionSet.ActionOptions};if(a.creative.Options.elements){c.elements=a.creative.Options.elements;var d="body { background-color: "+b.baseElement.style.backgroundColor+"; } .QSIPopUnder .close { color: #000000; text-decoration: none; } ";c.resetStyle=d+QSI.CreativeManager.Utilities.getResetStyle("QSIPopUnder"),b.width=b.baseElement.style.width,b.height=b.baseElement.style.height}else c.locators=QSI.CreativeManager.Utilities.parsePipedText(null);b.helperScriptSrc=QSI.baseURL+"Orchestrator.php?InterceptID="+a.interceptID+"&Q_Type=PopUnderHelper";var e={onPopForwardShowTarget:b.showTargetOnPopForward,showOnPageChange:b.showOnPageChange,showOnSiteExit:b.showOnSiteExit,checkThreshold:3,watchInterval:1e3,targetWidth:a.actionSet.ActionOptions.targetWidth,targetHeight:a.actionSet.ActionOptions.targetHeight,targetFullScreen:a.actionSet.ActionOptions.targetFullScreen,impressionURL:QSI.CreativeManager.Utilities.getImpressionURL({interceptID:a.interceptID,creativeID:a.decision.Creative.ID,asid:a.decision.ActionSetID})};c.popunderOptions=b,c.popunderHelperOptions=e;var f=new QSI.PopUnder(c);QSI.reg[a.interceptID]=f}}()},runPopUnderHelper:function(a){QualtricsSI[a.interceptID].popunderCheckThreshold=null,QualtricsSI[a.interceptID].popunderWatchInterval=null,QualtricsSI.PopunderWatcherModule.startWatching(a.interceptID)},runPopUp:function(a){!function(){var b=new QSI.PopUp({id:a.interceptID,type:QSI.util.creativeTypes.POP_UP,targetURL:a.decision.Target.URL,impressionURL:QSI.CreativeManager.Utilities.getImpressionURL({interceptID:a.interceptID,creativeID:a.decision.Creative.ID,asid:a.decision.ActionSetID}),interceptDisplayOptions:a.intercept.DisplayOptions,actionOptions:a.actionSet.ActionOptions,creativeOptions:a.creative.Options});QSI.reg[a.interceptID]=b}()},runRelay:function(a){!function(){var b=new QSI.Relay({id:a.interceptID,type:QSI.util.creativeTypes.RELAY,targetURL:a.decision.Target.URL,impressionURL:QSI.CreativeManager.Utilities.getImpressionURL({interceptID:a.interceptID,creativeID:a.decision.Creative.ID,asid:a.decision.ActionSetID}),interceptDisplayOptions:a.intercept.DisplayOptions,actionOptions:a.actionSet.ActionOptions,elements:a.creative.Options.elements,containerElement:a.creative.Options.baseElement,displayOptions:a.creative.Options.displayOptions,resetStyle:QSI.CreativeManager.Utilities.getResetStyle("QSIRelay")});QSI.reg[a.interceptID]=b}()},runSlider:function(a){!function(){var b=new QSI.Slider({id:a.interceptID,type:QSI.util.creativeTypes.SLIDER,targetURL:a.decision.Target.URL,hasCreativeEmbeddedTarget:QSI.CreativeManager.Utilities.hasCreativeEmbeddedTarget(a.creative),impressionURL:QSI.CreativeManager.Utilities.getImpressionURL({interceptID:a.interceptID,creativeID:a.decision.Creative.ID,asid:a.decision.ActionSetID}),interceptDisplayOptions:a.intercept.DisplayOptions,actionOptions:a.actionSet.ActionOptions,elements:a.creative.Options.elements,displayOptions:a.creative.Options.displayOptions,resetStyle:QSI.CreativeManager.Utilities.getResetStyle("QSISlider")});QSI.reg[a.interceptID]=b}()},runSocialMedia:function(a){!function(){var b=new QSI.SocialMedia({id:a.interceptID,type:QSI.util.creativeTypes.SOCIAL_MEDIA,impressionURL:QSI.CreativeManager.Utilities.getImpressionURL({interceptID:a.interceptID,creativeID:a.decision.Creative.ID,asid:a.decision.ActionSetID}),interceptDisplayOptions:a.intercept.DisplayOptions,actionOptions:a.actionSet.ActionOptions,buttons:a.creative.Options.buttons,buttonStyles:QSI.CreativeManager.SocialMediaHelper.getButtonStyles(a.creative),displayOptions:a.creative.Options.displayOptions,insertionLocation:a.actionSet.ActionOptions.displayElement?a.actionSet.ActionOptions.displayElement:a.id});QSI.reg[a.interceptID]=b}()},runUserDefinedHTML:function(a){!function(){var b={id:a.interceptID,type:QSI.util.creativeTypes.USER_DEFINED_HTML,targetURL:a.decision.Target.URL,impressionURL:QSI.CreativeManager.Utilities.getImpressionURL({interceptID:a.interceptID,creativeID:a.decision.Creative.ID,asid:a.decision.ActionSetID}),interceptDisplayOptions:a.intercept.DisplayOptions,actionOptions:a.actionSet.ActionOptions,displayOptions:a.creative.Options.displayOptions,insertionLocation:a.actionSet.ActionOptions.displayElement?a.actionSet.ActionOptions.displayElement:a.id};if(a.creative.Options.elements)b.elements=a.creative.Options.elements,b.resetStyle=QSI.CreativeManager.Utilities.getResetStyle("QSIUserDefinedHTML");else{b.html=a.creative.Options.html,b.size=a.creative.Options.size;var c=QSI.CreativeManager.Utilities.parsePipedText(a.creative.Options.html);c&&c.length>0&&(b.locators=c)}var d=new QSI.UserDefinedHTML(b);QSI.reg[a.interceptID]=d}()}};QSI.CreativeManager.SocialMediaHelper={getButtonStyles:function(a){var b=a.Options.displayOptions.size;a.Options.displayOptions.useWidget&&(b="Large"===b?"80px":"");var c=QSI.CreativeManager.SocialMediaHelper.getThemeStyles(a),d=QSI.CreativeManager.SocialMediaHelper.getPadding(b),e=QSI.CreativeManager.SocialMediaHelper.getBoxShadow(a,b),f=QSI.CreativeManager.SocialMediaHelper.getWidth(a,b),g=".QSI_SocialMediaButton { float: left; cursor: pointer; background: "+c.background+"; border-bottom: "+c.border+"; border-right: "+c.border+"; border-top: "+c.highlight+"; border-left: "+c.highlight+"; } #QSI_SocialMediaContainer { border-top: "+c.border+"; border-left: "+c.border+"; box-shadow: "+e.shadowOutset+"; border-radius: "+e.borderRadius+"; } ";return a.Options.displayOptions.useWidget?(g+=QSI.CreativeManager.SocialMediaHelper.getWidgetStyles(a,b),"Large"===b&&(g+="#QSI_SocialMediaContainer { width: "+f+"; } ")):g+="#QSI_SocialMediaContainer { width: "+f+"; } .QSI_SocialMediaButton { padding: "+d+"; width: "+b+"; height: "+b+"; } ",g+=1==QSI.CreativeManager.SocialMediaHelper.getMaxCols(a)?".QSI_First .QSI_SocialMediaButton { border-radius: "+e.firstBorderRadius+"; } .QSI_Last .QSI_SocialMediaButton { border-radius: "+e.lastBorderRadius+"; } ":".QSI_First .QSI_SocialMediaButton.QSI_First { border-radius: "+e.tlBorderRadius+"; } QSI_First .QSI_SocialMediaButton.QSI_Last { border-radius: "+e.trBorderRadius+"; } QSI_Last .QSI_SocialMediaButton.QSI_First { border-radius: "+e.blBorderRadius+"; } QSI_Last .QSI_SocialMediaButton.QSI_Last { border-radius: "+e.brBorderRadius+"; } "},getThemeStyles:function(a){var b={background:"none",border:"none",highlight:"none"};switch(a.Options.displayOptions.theme){case"Transparent":break;case"Glass":if(!("Internet Explorer"===QSI.Browser.name&&QSI.Browser.version<8)){b.background="rgba(255, 255, 255, .4)",b.border="1px solid rgba(200, 200, 200, .6)",b.highlight="1px solid rgba(255, 255, 255, .8)";break}case"Light":b.background="#E6E6E6",b.border="1px solid #B3B3B3",b.highlight="1px solid #FFFFFF";break;case"Medium":b.background="#666666",b.border="1px solid #4D4D4D",b.highlight="1px solid #7D7D7D";break;case"Dark":b.background="#333333",b.border="1px solid #1A1A1A",b.highlight="1px solid #484848"}return b},getPadding:function(a){var b="";switch(a){case"64px":b="8px";break;case"48px":b="7px";break;case"32px":b="6px";break;case"24px":b="5px";break;case"Large":}return b},getBoxShadow:function(a,b){var c="0",d={};if("Small"===b)return{shadowOutset:"none",shadowInset:"none",borderRadius:"none",tlBorderRadius:"none",trBorderRadius:"none",blBorderRadius:"none",brBorderRadius:"none",firstBorderRadius:"none",lastBorderRadius:"none"};switch(a.Options.displayOptions.theme){case"Transparent":break;case"Glass":c=.15;break;case"Light":c=.25;break;case"Medium":c=.45;break;case"Dark":c=.6}d.shadowOutset="0px 0px 10px 0px rgba(0, 0, 0, "+c+")",d.shadowInset="none";var e="3px";switch(b){case"64px":e="6px";break;case"48px":e="5px";break;case"32px":e="4px";break;case"24px":e="3px"}if(d.borderRadius=e,d.tlBorderRadius=e+" 0px 0px 0px",d.trBorderRadius="0px "+e+" 0px 0px",d.blBorderRadius="0px 0px 0px "+e,d.brBorderRadius="0px 0px "+e+" 0px",d.firstBorderRadius=e+" "+e+" 0px 0px",d.lastBorderRadius="0px 0px "+e+" "+e,0===a.Options.displayOptions.xOffset)switch(a.Options.displayOptions.position){case"OTLL":case"OML":case"OBLL":d.shadowOutset="0px -4px 10px -2px rgba(0, 0, 0, "+c+"), -5px 0px 10px -4px rgba(0, 0, 0, "+c+"), -2px 4px 10px -3px rgba(0, 0, 0, "+c+")",d.borderRadius=e+" 0px 0px "+e,d.tlBorderRadius=e+" 0px 0px "+e,d.trBorderRadius="none",d.blBorderRadius="0px 0px 0px "+e,d.brBorderRadius="none",d.firstBorderRadius=e+" 0px 0px 0px",d.lastBorderRadius="0px 0px 0px "+e;break;case"OTRR":case"OMR":case"OBRR":d.shadowOutset="2px -5px 10px -3px rgba(0, 0, 0, "+c+"), 8px 0px 10px -6px rgba(0, 0, 0, "+c+"), 0px 5px 10px -3px rgba(0, 0, 0, "+c+")",d.borderRadius="0px "+e+" "+e+" 0px",d.tlBorderRadius="none",d.trBorderRadius="0px "+e+" 0px 0px",d.blBorderRadius="none",d.brBorderRadius="0px 0px "+e+" 0px",d.firstBorderRadius="0px "+e+" 0px 0px",d.lastBorderRadius="0px 0px "+e+"0px"}return d},getWidth:function(a,b){var c=0;switch(b){case"64px":c=82;break;case"48px":c=64;break;case"32px":c=46;break;case"24px":c=38;break;case"Large":case"Small":c=82}return c*QSI.CreativeManager.SocialMediaHelper.getMaxCols(a)},getMaxCols:function(a){var b=0;for(var c in a.Options.buttons)b=Math.max(b,a.Options.buttons[c].length);return b},getWidgetStyles:function(a,b){var c=".QSI_SocialMediaButton {position:relative;} ";c+="Small"===b?".QSI_SocialMediaButton .Content { height: 20px; padding: 3px; } ":".QSI_SocialMediaButton { height: 80px; width: 80px; } ";for(var d in a.Options.buttons){var e=a.Options.buttons[d];if(e)switch(e.type){case"Facebook":c+="Large"===b?".QSI_SocialMediaButton.QSI_Facebook .Content { width: 48px; height: 62px; position: absolute; top: 9px; left: 17px; } ":".QSI_SocialMediaButton.QSI_Facebook .Content { width: 90px; } ";break;case"GooglePlus":c+="Large"===b?".QSI_SocialMediaButton.QSI_GooglePlus .Content { width: 50px; height: 60px; position: absolute; top: 11px; left: 16px; } ":".QSI_SocialMediaButton.QSI_GooglePlus .Content { width: 90px; } ";break;case"Twitter":c+="Large"===b?".QSI_SocialMediaButton.QSI_Twitter .Content { width: 55px; height: 62px; position: absolute; top: 10px; left: 13px; } ":".QSI_SocialMediaButton.QSI_Twitter .Content { width: 107px; } ";break;case"LinkedIn":c+="Large"===b?".QSI_SocialMediaButton.QSI_LinkedIn .Content { height: 62px; position: absolute; top: 9px; left: 11px; } ":".QSI_SocialMediaButton.QSI_LinkedIn .Content { width: 93px; } ";break;case"Reddit":c+="Large"===b?".QSI_SocialMediaButton.QSI_Reddit .Content { width: 50px; height: 66px; position: absolute; top: 5px; left: 15px; } ":".QSI_SocialMediaButton.QSI_Reddit .Content { height: 17px; width: 75px; margin-top: 3px; } ";break;case"Digg":c+="Large"===b?".QSI_SocialMediaButton.QSI_Digg .Content { width: 54px; height: 69px; position: absolute; top: 6px; left: 14px; } ":".QSI_SocialMediaButton.QSI_Digg .Content { width: 76px; } "}}return c}};QSI.CreativeManager.Utilities={getImpressionURL:function(a){var b={Q_Impress:1,Q_CID:a.creativeID,Q_SIID:a.interceptID,Q_ASID:a.asid,Q_LOC:window.location.href.split("?")[0]};return QSI.baseURL+"?"+QSI.Orchestrator.generateQueryString(b)},getResetStyle:function(a){var b="."+a,c=b+" div,"+b+" dl,"+b+" dt,"+b+" dd,"+b+" ul,"+b+" ol,"+b+" li,"+b+" h1,"+b+" h2,"+b+" h3,"+b+" h4,"+b+" h5,"+b+" h6,"+b+" pre,"+b+" form,"+b+" fieldset,"+b+" textarea,"+b+" p,"+b+" blockquote,"+b+" th,"+b+" td {margin: 0;padding: 0;color: black;font-family: arial;font-size: 12px;line-height: normal;}"+b+" ul {margin: 12px 0;padding-left: 40px;}"+b+" ol,"+b+" ul {margin: 12px 0;padding-left: 40px;}"+b+" ul li {list-style-type: disc;}"+b+" ol li {list-style-type: decimal;}"+b+" .scrollable {-webkit-overflow-scrolling: touch;}"+b+" table {border-collapse: collapse;border-spacing: 0;}"+b+" table td {padding: 2px;}.QSIPopOver *,.QSISlider *,.QSIPopUnder *,.QSIEmbeddedTarget * {box-sizing: content-box;}";return c},hasCreativeEmbeddedTarget:function(a){if(!a||!a.Options.elements||!a.Options.elements.Elements)return!1;var b=a.Options.elements.Elements;for(var c in b){var d=b[c];if(d.type&&"EmbeddedTarget"===d.type)return!0}return!1},parsePipedText:function(a){var b,c=/\$\{(SI)?([A-Za-z]*):\/\/([^\}]*)\}/g,d=[];do b=c.exec(a),b&&d.push(b);while(b);return d}};QSI.Orchestrator={init:function(){if(QSI.Verify.sendPostMessageToOpenerForVerifyInstall(),QSI.Verify.displaySuccessMessageForVerification(),this.setupScreenCapEventHandlerForIOSOptimization(),QSI.global.latency={si:{latencyStartTime:void 0,requestURL:void 0,metricID:"2"},siDPR:{latencyStartTime:void 0,requestURL:void 0,metricID:"3"}},QSI.LoadingState||(QSI.LoadingState=[]),QSI.PendingQueue||(QSI.PendingQueue=[]),QSI.global.latency.si.latencyStartTime=Date.now(),QSI.global.legacyId){QSI.Request||(QSI.Request={}),QSI.debug={};var a=QSI.global.legacyId,b={id:a};0===a.indexOf("ZN")?b.ZoneID=a:b.InterceptID=a;var c;if(document.currentScript)c=document.currentScript.src;else try{var d=document.querySelectorAll("script"),e=[];for(var f in d)e[f]=d[f];var g=QSI.global.baseURL;0===g.indexOf("https://")?g=g.substring(8):0===g.indexOf("http://")?g=g.substring(7):0===g.indexOf("//")&&(g=g.substring(2));var h=e.filter(function(a){return-1!==a.src.indexOf(g+"/WRSiteInterceptEngine/?")||-1!==a.src.indexOf(g+"/SIE/?")?-1===a.src.indexOf("Q_Impress")&&-1===a.src.indexOf("Q_Redirect")&&-1===a.src.indexOf("Q_Click")&&-1===a.src.indexOf("Q_DPR"):!1});c=h[0].src}catch(i){QSI.dbg.e("An error occurred while loading the intercept.",i)}var j=QSI.Orchestrator.parseQueryString(c);void 0!==j.Q_NOCACHE&&(b.Q_NOCACHE=null),void 0!==j.Q_BOOKMARKLET&&(b.Q_BOOKMARKLET=null,b.Q_DEBUG=null,QSI.initFullDbg()),void 0!==j.Q_DEBUG&&(b.Q_DEBUG=null,QSI.initFullDbg()),void 0!==j.Q_VERSION&&(b.Q_VERSION=j.Q_VERSION),QSI.Orchestrator.load(b)}else if(!QSI.Request){QSI.Request={};for(var k=document.querySelectorAll("[data-siteinterceptscript]"),l=0;l1?c:QSI.Orchestrator.createArrayFromArguments(arguments),--d||e.resolve(b)}};if(c>1)for(var g=0;c>g;g++)b[g]&&b[g].promise?b[g].promise().done(f(g,b)).fail(e.reject):d--;return 1>d&&e.resolve(b),e.promise()},createArrayFromArguments:function(a){return a?Array.prototype.slice.call(a):[]},isFunction:function(a){return"function"==typeof a||!1},forOwn:function(a,b){if(a&&a instanceof Object&&this.isFunction(b))for(var c in a)a.hasOwnProperty(c)&&b(a[c],c,a)},each:function(a,b){var c=a.length;if(c)for(var d=0;c>d;d++)b(a[d],d)},doneLoading:function(a){if(QSI.LoadingState.pop(),0===QSI.LoadingState.length){if(a.loadingFromAPI!==!0){var b=document.createEvent("Event");b.initEvent("qsi_js_loaded",!0,!0),window.dispatchEvent(b)}for(var c=QSI.PendingQueue.length,d=0;c>d;d++){var e=QSI.PendingQueue.shift();e()}}},setupScreenCapEventHandlerForIOSOptimization:function(){var a=function(a){return'{"event":"canScreenCapture","to":"SI","from":"JFE"}'===a&&"iOS"===QSI.OS.name},b=function(a){a.postMessage({event:"addIOSSIWorkaround",from:"SI",to:"JFE"},"*")};window.addEventListener("message",function(c){a(c.data)&&b(c.source)})}};QSI.RunIntercepts=function(a,b){"undefined"==typeof a&&(a=null),QSI.util.observe(window,"message",function(a){if(a.data&&"string"==typeof a.data){var b=a.data.split("|");if("QualtricsEOS"==b[0]){var c=b[1],d=b[2];QSI.history.logSurvey(c,d)}}});for(var c=a?[a]:Object.keys(QSI.Request),d=0;d