").addClass(e).css({position:"absolute",bottom:"0px",right:"0px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(K.getBody()),r=n(),o=j.defer();return function s(e){setTimeout(function(){a(i[0])?(i.remove(),o.resolve()):n()-r>t?(i.remove(),o.reject()):s(100)},e)}(0),o.promise;function a(e){e=V(e);if(e)return"none"===e.display}}function fh(e,t){return t&&t.designer||D.any(e,function(e){return D.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl)})})}function ph(){var e=[];if(!nh())return j.resolve();fh(x(),G)&&e.push(dh("_pendo-default-css_",Df()));var t=((G.guideWidget||{}).data||{}).guideCssUrl,n="_pendo-css_";return t?e.push(dh(n,rd(t))):K("#"+n).remove(),j.all(e)}var hh=function(e){vh.flush(e)},gh=function(){return Bf};function mh(e){var n=e.cache,i=o(e,ls),r=o(e,fs),t=Pa(n);return{push:function(e){t(e,D.noop)},clear:function(){n.length=0},flush:function(e){var t;0!==n.length&&(t=n.slice(),n.length=0,((e||{}).guaranteed?r:i)(t,D.noop))}};function o(e,t){return ka(qa,Ua("visitor_id"),Ua("props.guide_id"),Ua("props.source"),Ka,t(e),Va(e))}}var vh=mh({cache:Bf,apiKey:function(){return G.apiKey},beacon:"guide",allowPost:!0,preferFetch:y.safari}),bh=mh({cache:[],apiKey:function(){return G.apiKey},beacon:"poll",allowPost:!0,preferFetch:y.safari}),yh=function(e){return X.initializeResourceCenter(e)},A={postMessage:D.noop,close:D.noop},wh=function(){vh.clear(),b.appUnloaded.on(function(){hh({guaranteed:!0}),W.dispatch("frames/leave")}),b.metadata.on(function(){Ec()||Mh()}),b.identify.on(function(){Mh()}),b.urlChanged.on(function(){Mh(p.get())}),Af(k0,function(){p.get()===kh.lastUrl&&Fh()});var e=m.get("guides.tooltip.arrowSize");D.isNumber(e)&&(G.TOOLTIP_ARROW_SIZE=e),A=hf(Tf(W),W),W.dispatch("frames/init"),W.dispatch("frames/join"),Pc(),q(L0,"resize",D.debounce(Rh,50)),Nh(),m.get("preferMutationObserver")&&y.MutationObserver&&(C(L0,"animationend",e=function(){W.dispatch("guideUpdate/documentChanged")}),C(L0,"transitionend",e),C(L0,"mouseover",D.debounce(e,50)),Lu.iterator.circular=!1,gl.circular=!1,W.commit("guideUpdate/setUseObserver"),W.commit("guideUpdate/setIterationTimeLimit",50))},Sh=function(){return m.get("guides.disabled",!1)||m.get("disableGuides",!1)||!kr},Ih=function(){return m.get("guides.delay",!1)||m.get("delayGuides",!1)},xh=function(e){var t=m.getLocalConfig();t.disableGuides=e,m.setLocalConfig(t)},Eh=function(e){var t=m.getLocalConfig();t.delayGuides=e,m.setLocalConfig(t)},Ch=Yn(function(e){if(e&&e.length){for(var t=[],n=0;n
of <%= total %>"))({currPos:t.getPositionOfStep(n),total:t.getTotalSteps()})},xg={getActiveGuide:Uh,smartNextStep:yg,smartFirstStep:Sg,advanceOn:wg,renderStepPosition:Ig};function Eg(e,t){var n,i="",r=e.nodeType;if(t=t||128,r===vr||r===Sr)return e.nodeValue;if(!Cg(e)&&(r===br||r===yr||r===wr))for(e=e.firstChild;e;e=e.nextSibling){if(t<=(i+(n=Eg(e,t-i.length))).length)return i+Ag(n.substring(0,t-i.length));i+=n}return i}function Cg(e){return!e.tagName||"textarea"==e.tagName.toLowerCase()}function _g(e){return 55296<=e&&e<=56319}function Tg(e){return 56320<=e&&e<=57343}function Ag(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(_g(t)||Tg(t)){if(1===e.length)return e.slice(0,-1);if(_g(t))return e.slice(0,-1);if(Tg(t))if(!_g(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}function Rg(e,t){e&&D.isString(e)?Ra("track",t,p.get(),e):w("Must provide valid name string for event tracking","",null,qn.Low)}var Ng=function Ng(r){var o=[];function a(e,t,n,i){r?o.push({type:n,message:t,value:i}):I(i)?console[e](t,i):console[e](t)}if("undefined"==typeof console||!console.group)return"Please run this test in the latest version of Chrome, Firefox, Safari, or Internet Explorer";r||console.group("Pendo Install Validation"),G.apiKey||a("error","No Pendo API key configured. Make sure to call pendo.initialize() with a valid Pendo API key.","apiKey");var e=J(),e=(Pn(e)&&a("warn",'The current visitor is not identified and will be treated as "anonymous". Is this expected? (You might have used "VISITOR-UNIQUE-ID" as the visitor ID)',"isAnonymousVisitor"),Gn(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),Jn()),t=(e||a("warn","The current visitor is not associated with an account. Is this expected?","noVisitorInAccount"),"ACCOUNT-UNIQUE-ID"===e&&a("error","The current account ID matches the example account ID from the Pendo installation instructions.","exampleAccountId"),$h(a),m.get("disableCookies")&&a("warn","Cookies are disabled in Pendo config. Is this expected?","disableCookies"),Cc());if(D.each(["visitor","account","parentAccount"],function(n){var i=t&&t[n],e=D.chain(i).keys().value();0e.snoozeEndTime})},this.shouldRepeatGuide=function(){var t;return!(!this.redisplay||this.isExpired()||this.isGuideSnoozed()||this.hasReachedMaxDismissals()||(t=0,D.forEach(this.steps,function(e){t=Math.max(t,e.lastSeenAt||0)}),!t))&&v()-t>=this.redisplay.interval},this.isExpired=function(){return!!this.expiresAfter&&v()>this.expiresAfter},this.calculateDismissCountFromSteps=function(){var t=0;return D.forEach(this.steps,function(e){e.dismissCount&&(t+=e.dismissCount)}),t},this.hasReachedMaxDismissals=function(){return this.redisplay&&0!==this.redisplay.maxDismissals&&this.calculateDismissCountFromSteps()>=this.redisplay.maxDismissals},this}function $g(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){D.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var Xg=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function Yg(){var r,o=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(D.each(this.steps,function(e){e.after("render",function(){D.each(e.elements,function(e){K(e).addClass("_pendo-guide-walkthrough_")})})}),r=null,this.sections=D.reduce(this.steps,function(e,t){var n,i;return i=t,!(n=r)||(n=D.last(n)).attributes.isRequired!=i.attributes.isRequired&&n.attributes.isRequired?(e.push(r),r=[t]):r.push(t),e},[]),this.sections=D.compact(this.sections.concat([r])),this.findSectionForStep=function(t){return D.find(this.sections,function(e){return D.contains(e,t)})},this.getSubSection=function(e,t){t=D.indexOf(e,t);return e.slice(t+1)},this.isContinuation=function(e){var t=this.isTopLevel||this.isModule,n=this.hasResourceCenterContent;return(!t||n)&&!!this.nextStep(e)},this.nextStep=function(t){var e=null;if(this.isGuideSnoozed())return null;t=t||{};for(var n,i,r=0;r=Qg.MAX_ERRORS_PER_MINUTE&&(n="Exceeded error rate limit, dropping guide.\n"+n,jf.addGuide(a),b.trigger("renderFail",a)),o.shift()),w(i,n),i}}}return D.each(["canShow","placeBadge","show"],function(e){a[e]=D.wrap(a[e],t(e))}),a}function em(){return D.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=D.wrap(this.shouldBeAddedToLauncher,function(e){return W.getters["frames/hasFrames"]()?!(!W.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!W.getters["frames/isGuideInDifferentFrame"]()(this)&&W.getters["frames/shouldBeAddedToLauncher"]()(this):e.apply(this,arguments)}),this.shouldBeAddedToResourceCenter=D.wrap(this.shouldBeAddedToResourceCenter,function(e){return W.getters["frames/hasFrames"]()?!(!W.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!W.getters["frames/isGuideInDifferentFrame"]()(this)&&W.getters["frames/shouldBeAddedToResourceCenter"]()(this):e.apply(this,arguments)})),this}function tm(e){var t=this;return"whatsnew"===t.type||D.isFunction(e.isAnnouncement)&&e.isAnnouncement()||(t.isShown=D.wrap(t.isShown,function(e){return e.apply(this,arguments)||W.getters["frames/isShownInAnotherFrame"]()(t)})),t}function nm(o){var a,t,i,s,r,n,u,d=this;return d.pollIds&&d.pollIds.length&&(a="_pendo-poll-selected_",t=D.indexBy(o.polls,"id"),i=D.map(d.pollIds,function(e){return t[e]}),r=function(e,t){if(e&&t!==M0)return e.numericResponses?parseInt(t,10):t},n=function(){var e=o.id,t=d.id,n=v();Np(e,t,J(),d.seenReason,o.language),Yf(e,t,"advanced",n),Mc({guideId:e,guideStepId:t,time:n,state:"advanced"})},u=function(){var e=K("._pendo-poll_"),t=K("._pendo-poll-message_");t.length?(e.addClass("_pendo-poll-submitted_"),t.css("margin-top:-"+t.height()/2+"px"),n()):d.advance()},d.after("render",function(){var n=K("._pendo-poll_")[0],e=K("._pendo-poll-submit_",n)[0];e?d.attachEvent(e,"click",function(e){var t=K("._pendo-poll-question_",n),t=D.map(t,function(e,t){e=K("textarea,input:text,select,input:radio:checked",e);if(e&&e.length&&e[0].value)return{pollId:(t=i[t]).id,value:r(t,e[0].value)}});d.response(D.compact(t)),u()}):d.attachEvent(n,"click",function(e){var t,e=K(vi(e)).closest("._pendo-poll-question_ :button,._pendo-poll-question_ :radio");e.length&&(t=i[0],e=r(t,e.attr("data-pendo-poll-value")||e.attr("value")),d.response([{pollId:t.id,value:e}]),u())})}),d.after("render",function(){var i=K("._pendo-poll_ ._pendo-poll-npsrating_")[0],r=K("._pendo-poll_ ._pendo-poll-submit_"),o="_pendo-poll-npsrating-selected_";i&&(r.css({display:"none"}),d.attachEvent(i,"click",function(e){var t=K(":radio:checked",i)[0],n=K("._pendo-poll_");K("label",i).removeClass(a),n.removeClass(o),t&&(K('label[for="'+t.id+'"]').addClass(a),n.addClass(o),r.css({display:""})),D.isFunction(d.resize)&&d.resize()}))}),d.after("show",function(){s=(new Date).getTime()}),d.response=function(e,r){e&&e.length&&(D.each(e,function(e,t){var n=function(t,e){if(e&&e.polls&&e.polls.length)return D.find(e.polls,function(e){return e.id===t})}(e.pollId,o),i=Fp("pollResponse",d.guideId,d.id,J(),M0,o.language);D.extend(i.props,{poll_id:e.pollId,poll_response:e.value,duration:(new Date).getTime()-s},r),n&&n.attributes&&n.attributes.type&&D.extend(i.props,{poll_type:n.attributes.type}),bh.push(i)}),bh.flush())}),d}Qg.MAX_ERRORS_PER_MINUTE=30;var im=function(){var n=this,o=(this.eventable=Tn.call({}),this.eventable.on("pendoEvent",function(e){try{n.eventHandler(e)}catch(t){w(t,"Error in Action "+(e&&e.action||"NO ACTION DEFINED"))}}),this.eventHandler=function(e){if(!e.ignore)switch(e.action){case o.advanceGuide:lp(e,e.step);break;case o.previousStep:fp(e,e.step);break;case o.goToStep:cp(e);break;case o.submitPoll:this.submitPoll(e);break;case o.guideSnoozed:var t=e&&e.params&&e.params[0]&&e.params[0].value;up(e,e.step,t);break;case o.dismissGuide:X.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return sp();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return X.dismissResourceCenter(t);sp(e,e.step)}(e);break;case o.showElements:this.setElementDisplay(e,"block"),e.srcElement&&jh(e.srcElement),Kd((n=fd(e.step.domJson)).props.id),qd(n.props.id),$.flexAllThings(n.props.id),Jd(n.props.id);break;case o.hideElements:this.setElementDisplay(e,"none"),Kd((n=fd(e.step.domJson)).props.id),qd(n.props.id),$.flexAllThings(n.props.id),Jd(n.props.id);break;case o.slideElement:this.setElementAnimation(e);break;case o.showGuide:t=D.find(e.params,function(e){return"reason"===e.name});Jp(e.params[0].value,t&&t.value);break;case o.launchGuide:G.designer||(sp(e,e.step),e&&e.params&&e.params[0]&&e.params[0].value&&Jp(e.params[0].value));break;case o.renderResourceCenterModule:X.replaceResourceCenterContent(e.params[0].value);break;case o.returnToResourceCenterHome:var n=X.findResourceCenterHomeView(G.guides);n&&(X.attemptToPreserveIntegrationIframes(e),X.replaceResourceCenterContent(n.id,e.params));break;case o.openLink:G.designer||this.openLink(e);break;case o.searchGuides:this.searchGuides(e);break;case o.submitPollAndGoToStep:this.submitPoll(e),cp(e)}},this.submitPoll=function(e){var t=e&&e.action,i=e.step,n=[];e.srcElement&&e.srcElement.getAttribute("data-pendo-poll-type")&&"yesNo"===e.srcElement.getAttribute("data-pendo-poll-type")&&(r=e.srcElement.getAttribute("data-pendo-poll-id"),e=e.srcElement.value,n.push({pollId:r,value:parseInt(e,10)}));var r=K("[data-pendo-poll-id]",i.guideElement[0]);n=n.concat(D.map(r,function(e){var t,n=K("textarea,input:text,select,input:radio:checked",e);if(n&&n.length&&n[0].value)return t=e.getAttribute("data-pendo-poll-id"),e=D.find(i.guide.polls,function(e){return e.id===t}),n=n[0].value,e&&e.numericResponses&&(n=parseInt(n,10)),{pollId:t,value:n}})),i.response&&n?i.response(D.compact(n)):z("[Agent] Error! Trying to submit a poll response but step does not have response function!");t!==o.submitPollAndGoToStep&&i.advance()},this.setElementDisplay=function(e,t){var n=e.step,e=K(D.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);D.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=K(D.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=D.find(e.params,function(e){return"transition"===e.name}).value,e=D.find(e.params,function(e){return"left"===e.name}).value;t.style.transition=n,t.style.left=e},this.openLink=function(e){var t=D.find(e.params,function(e){return"url"===e.name}).value,e=D.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&ra()&&(e="_top");L0.open(t,e)},this.goToStep=cp,this.searchGuides=function(e){var t="",n=e.srcElement.value,i=K("#pendo-resource-center-container")[0],r=K(i).find('[id^="pendo-list-item-"]'),i=K(i).find('[id^="pendo-no-matches-container"]'),o=[],e=D.find(e.params,function(e){return"searchTextInfo"===e.name}),a=(K(i[0].childNodes[0]).text(e.value),!0);if(r)for(var s in r)s&&r[s]&&(K(r[s]).text()&&(-1!==K(r[s]).text().toLowerCase().indexOf(n.toLowerCase())?(K(r[s]).css({display:"list-item"}),a=!1):K(r[s]).css({display:"none"})),D.isFunction(r[s].getAttribute)&&(t=r[s].getAttribute("data-_pendo-text-list-item-1").split(","),D.forEach(t,function(e){D.contains(o,e)||o.push(e)})),this.searchAllTerms(o,t,n)&&r[s]&&(K(r[s]).css({display:"list-item"}),a=!1),t="");a?K(i[0]).css({display:"block"}):K(i[0]).css({display:"none"})},this.searchAllTerms=function(t,e,n){return!!e&&e.some(function(e){return D.contains(t,e)&&e===n})},{advanceGuide:"advanceGuide",previousStep:"previousStep",goToStep:"goToStep",submitPoll:"submitPoll",guideSnoozed:"guideSnoozed",dismissGuide:"dismissGuide",showElements:"showElements",hideElements:"hideElements",slideElement:"slideElement",showGuide:"showGuide",launchGuide:"launchGuide",renderResourceCenterModule:"renderResourceCenterModule",returnToResourceCenterHome:"returnToResourceCenterHome",openLink:"openLink",searchGuides:"searchGuides",submitPollAndGoToStep:"submitPollAndGoToStep"});return this},rm=function(){return{show:function(t,n){if(Uu()&&D.isFunction(t._show))return t._show(n),i(t.isShown());var e=t.getGuide();return"whatsnew"!==t.type?W.getters["frames/hasFrames"]()&&!W.getters["frames/isGuideInThisFrame"]()(e)?o(t,n):function(e){return e.getGuide().isModule&&(e=X.getResourceCenter())?r(e.steps[0],"badge"):i()}(t).then(function(){return r(t,n)}).then(function(e){return!!e||o(t,n)}):r(t,n)},showLocal:r};function i(t){return{then:function(e){return e(t)}}}function r(e,t){return cd.hasContent(e)&&Qu.valid(e)?(e._show(t),i(e.isShown())):(!cd.hasContent(e)||!Qu.invalid(e))&&e.getGuide().canShowOnDevice()&&e.canShowOnPage(Hp())?(e.lock(),cd.fetchContent(e).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&Qu.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(e.unlock(),e._show(t),e.isShown())})):i(!1)}function o(t,e){var n=t.getGuide();return W.getters["frames/hasFrames"]()&&W.getters["frames/isGuideInDifferentFrame"]()(n)?(t.lock(),W.dispatch("frames/showGuideStep",{guideId:t.guideId,stepId:t.id,reason:e}).then(function(e){return t.unlock(),e.isShown},function(){return t.unlock(),!1}).then(function(e){return e&&(clearInterval(t.timeoutTimer),delete t.timeoutTimer),e})):i(!1)}}();function om(u){var e=!1,t=!1;return this.guide=u,this.elements=[],this.handlers=[],this.attributes=this.attributes||{},(this.domUrl||this.domJson)&&(this.eventRouter=new im),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=D.indexOf(t,this),i=Cc();D.isObject(i)||(i=mc());try{var r=this.attributes.variables||{},o={step:{id:this.id,isFirst:0===n,isLast:n===t.length-1,index:n,number:n+1},guide:{id:e.id,name:e.name,publishedAt:e.publishedAt,showsAfter:e.showsAfter,percentComplete:t.length?Math.round((n+1)/t.length*100):0,stepCount:t.length},metadata:pt(i),template:r};return this.template||(this.template=D.template(this.content||"")),rd(this.template(o).replace(/#_pendo_g_undefined/g,"#_pendo_g_"+this.id).replace(/pendo-src="([^"]+)"/g,function(e,t){return/<%=[^>]+>/.test(t)?e:'src="'+t+'"'}))}catch(a){return this.content}},this.isLocked=function(){return e},this.lock=function(){e=!0},this.unlock=function(){e=!1},this.isTimedOut=function(){return t},this.timeout=function(){t=!0},this.isRendered=function(){return this.elements&&0").attr("id",wp(e)).addClass(Wf+" "+r),o=K("").addClass("_pendo-guide-content_").html(e.getContent()),a=K("").addClass("_pendo-guide-container_"),s=K("").addClass("_pendo-backdrop_");r.width(t),r.height(n),a.css({left:i,top:i}),e.isEditable&&o.attr("contenteditable","true"),o.appendTo(a),a.appendTo(r),u&&D.isFunction(u.isOnboarding)&&u.isOnboarding()&&r.addClass("_pendo-onboarding_"),e.overlayDiv=s,e.guideElement=r}},this.teardown=function(){z("guide step teardown","guide","render"),D.each(this.handlers,function(e){_(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,this.attributes.imgCount=0},this.show=function(e){D.contains(["auto","continue"],e)&&W.getters["healthCheck/isRedisplay"]()(this)?W.dispatch("healthCheck/fixSeenStateAndLogError",{step:this,reason:e}):(e=rm.show(this,e))&&e["catch"]&&e["catch"](D.noop)},this.redraw=function(){var e,t,n,i,r;this.guideElement&&!G.designer&&(t=(e=H(u,"attributes.resourceCenter"))&&X.isFullyCustom(u),n=u.activeModule?u.activeModule.activeStep().domJson.props.id:this.containerId,i=this.guideElement.find("#"+n),r=u.activeModule&&"AnnouncementsModule"===H(u.activeModule,"attributes.resourceCenter.moduleId"),b.beforeUpdate.trigger(this),t||r||(g.recalculateGuideWidth(n),g.adjustGuideContentWidth(n)),e?(X.adjustResourceCenterWidth(),r&&u.activeModule.guidesInModule?D.forEach(u.activeModule.guidesInModule,function(e){var t;!D.isUndefined(e.steps[0].attributes.imgCount)&&0!==H(e.steps[0],"attributes.imgCount")||(t=e.steps[0].id,t=K(i).find("#pendo-g-"+t)[0]?t:e.id,g.adjustGuideContentWidth("pendo-g-"+t),g.flexAllThings("pendo-g-"+t))}):g.flexAllThings("pendo-resource-center-container")):g.flexAllThings(n),t||g.recalculateGuideHeight(n),b.updated.trigger(this))},this._show=function(e){b.beforeGuideShow.trigger(this,e),this.canShow()&&(!Uu()&&u.control?this.hasBeenControlled()||this.onControlGuide("control"):(this.render(),this.isShown()&&this.onShown(e)))},this.shouldStartTimer=function(){return u.canShowOnDevice()&&!u.attributes.isAnnouncement&&!hp(this)},this.getStepPollTypes=function(n,e){var i;if(e.pollIds&&e.pollIds.length)return i=[],D.forEach(e.pollIds,function(t){var e=D.find(n.polls,function(e){return e.id===t});e&&e.attributes&&e.attributes.type&&i.push(e.attributes.type)}),i},this.onControlGuide=function(e){var t;Uu()||(this.seenReason=e,qf(v()),t=this.getStepPollTypes(u,this),this.hasBeenControlled())||(Cp(this.guideId,this.id,J(),e,u.language,t),D.each(u.steps,function(e){e.seenState="notSeen"}))},this.onShown=function(t){var e,n,i=this;i.overrideElement&&(K.addClass(i.overrideElement,"triggered"),i.overrideElement.checkAriaExpanded)&&i.overrideElement.checkAriaExpanded(),Uu()||(i.seenReason=t,i.seenState="active",qf(v()),e={last_updated_at:i.lastUpdatedAt},(n=this.getStepPollTypes(u,i))&&(e.step_poll_types=n),Tp(i.guideId,i.id,J(),t,u.language,e),W.dispatch("guideState/updateLastGuideStepSeen",{guideId:u.id,guideStepId:i.id,time:Vf(),state:i.seenState,seenReason:t,visitorId:J()}),D.each(u.steps,function(e){"snoozed"===e.seenState&&(e.snoozeEndTime=0,Lp(u.id,e.id,J(),t,u.language))}),ld.runCustomScripts(i,u)),W.dispatch("frames/guideStepShownInFrame",{guideId:u.id,stepId:i.id,isShown:i.isShown()}),i.guideElement&&i.guideElement[0]&&i.attachEvent(i.guideElement[0],"focusin",function(e){"TEXTAREA"!==e.target.tagName&&"INPUT"!==e.target.tagName||(G.ignoreResize=!0,setTimeout(function(){G.ignoreResize=!1},1e3))})},this.hide=function(e){var t=this;t.unlock(),b.beforeUnmount.trigger(t),t.teardown(),D.each(t.elements,function(e){so(e)}),b.unmounted.trigger(t),t.attributes&&e&&e.stayHidden&&(t.attributes.stayHidden=e.stayHidden),t.elements.length=0,t.element=null,t.guideElement=null,t.overrideElement&&(K.removeClass(t.overrideElement,"triggered"),t.overrideElement.checkAriaExpanded)&&t.overrideElement.checkAriaExpanded(),W.dispatch("frames/guideStepHiddenInFrame",{guideId:u.id,stepId:t.id})},this.advance=function(){"advanced"===this.seenState&&!this.isRendered()||lp(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||sp(this)},this.isPoweredByEnabled=function(){return!0!==this.hideCredits},this.isSnoozed=function(){var e="snoozed"===this.seenState,t=!this.snoozeEndTime||(new Date).getTime()>this.snoozeEndTime;return e&&!t},this.shouldRepeat=function(){return!!this.lastSeenAt&&u.redisplay&&!u.isExpired()&&!this.isSnoozed()&&v()-this.lastSeenAt>=u.redisplay.interval&&!u.hasReachedMaxDismissals()},this.hasBeenControlled=function(){return u.isControlGroup()&&"notSeen"===this.seenState},this.attachEvent=function(e,t,n){var i={element:e,type:t,fn:n};C(e,t,n,!0),this.handlers.push(i)},this.searchFor=function(e){return!(e.length<3)&&wt(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&jd.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&Od(this)},this.getType=function(){return this.domJson?H(this,"attributes.calculatedType"):this.type},this}function am(){return this.after("render",function(){Vl(k0)}),this}function sm(){td.behaviors=[Gc,Zg,Qu.Guide,$g,Yg,Qg,em],nd.behaviors=[Gc,om,tm,cd,Qu.Step,nm,am]}om.isGuideStep=function(e){return!!e&&D.isFunction(e.render)};var um={state:{errorCount:0,errors:{}},actions:{write:function(e,t){t=t.data[0];if(t&&!t.logged){var n=e.getters.hasLogged()(t);if(e.dispatch("update",t),!n){try{t.logged=!0}catch(i){}e="[".concat(t,"]");dn(e),t.priority===qn.High&&(n=L0.pendo_options||{},!1!==G.logStackTraces&&!1!==n.logStackTraces?Ur("".concat(e,"\n").concat(t.getStack())):Fr(e))}}},update:function(e,t){t&&(e.getters.hasLogged()(t)||e.commit("addError",t),e.commit("incrementError",t))}},mutations:{addError:function(e,t){e.errors[t.hashCode()]={count:0,stack:t.getStack()}},incrementError:function(e,t){e.errors[t.hashCode()].count++,e.errorCount++}},getters:{hasLogged:function(t){return function(e){return!!t.errors[e.hashCode()]}}}};function dm(){l.tabIdChanged(function(){var e=l.getTabId();W.commit("frames/setTabId",e),W.dispatch("frames/join")})}function cm(e){var e=e.data[0];e&&(e=lm(e),W.dispatch("frames/updateMetadata",e))}function lm(e){var n;if(e=e||m.getLocalConfig())return n={visitorId:H(e,"visitor.id")||e.visitor_id,accountId:H(e,"account.id")||e.account_id,parentAccountId:H(e,"parentAccount.id"),apiKey:e.apiKey},D.each(D.keys(n),function(e){var t=n[e];I(t)&&(n[e]=""+t)}),n}var fm=function(){var r={};return{actions:{init:function(e){var t,n,i=e.state;i.initialized||(t=l.addTracerIds({}),n=ye(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),dm(),b.metadata.on(cm),b.identify.on(cm),b.urlChanged.on(function(){$t(!0)&&A.postMessage({action:"frames/receiveUrlChange",frameId:i.frameId,href:Ti(),browserUrl:L0.location.href})}),b.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&A.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),e.commit("setInitialized",!0))},changeGuideList:function(e,t){e=e.state,t=a(t);A.postMessage({action:"frames/receiveGuideList",frameId:e.frameId,guides:t})},receiveGuideList:function(e,t){e.commit("setGuideList",t),t.frameId===e.state.frameId&&e.commit("setGuidesLoaded"),pm(e.state)},join:function(e){var t,n,i,r,o;!e.state.disabled&&(al(),t=e.state,n=L0.top==L0,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:a(x())}),r=t.frameId,l.detectClonedSession(r),o=lm())&&e.dispatch("receiveFrame",{cd:r,frame:D.extend({agentInstallType:t.agentInstallType,id:t.frameId,joinedAt:v(),isTop:n,visibility:n?"visible":"unknown",debugMetadata:o,href:Ti(),browserUrl:L0.location.href},i)})},receiveFrame:function(e,t){var n,i,r=e.state;e.getters.isBroadcastChannel()&&t.cd&&l.isClonedSession(t.cd)?A.postMessage({action:"frames/changeTabId",cd:t.cd}):(G.designerv2.launched&&(i=Object.assign({},T.hostConfig,{selectionOnly:!0}),A.postMessage({action:"frames/addSelectionModeToFrames",options:i})),r.frames[t.frame.id]&&r.frames[t.frame.id].id||(e.commit("addFrame",t.frame),e.commit("setGuideList",{frameId:t.frame.id,guides:D.toArray(H(t,"frame.guides",[]))}),i=e.getters.inExtensionLeadershipMode(),n=t.frame.agentInstallType===ve,n=i&&n&&t.frame.isTop,i=!i&&t.frame.isTop,(n||i)&&e.commit("setTopId",t.frame.id),e.commit("setLeadershipMode",t.frame.agentInstallType),t[Tl]&&e.dispatch("receiveStartPreview",t),A.postMessage({action:"frames/receiveFrame",frame:r.frames[r.frameId],cd:t.cd,"pendo-preview":e.rootState.preview.preview}),e.dispatch("waitThenElectLeader")))},changeTabId:function(e,t){t.cd===e.state.frameId&&((t=e.state.tabId)===l.getTabId()&&(l.setParentTabId(t),l.newTabId()),e.commit("setTabId",l.getTabId()))},leave:function(t){var e=t.state;A.postMessage({action:"frames/removeFrame",frameId:e.frameId}),D.each(e.frames,function(e){t.commit("removeFrame",e.id)}),A.close()},removeFrame:function(e,n){e.getters.hasFrame()(n.frameId)&&(e.commit("removeFrame",n.frameId),D.each(r,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete r[t])}),e.dispatch("electLeader"))},waitThenElectLeader:D.debounce(function(e){e.dispatch("electLeader")},50),electLeader:function(e){var t=e.state;t.topId?e.dispatch("followLeader",{leaderId:t.topId}):(t=D.min(t.frames,"joinedAt"),e.dispatch("followLeader",{leaderId:t.id})),pm(e.state)},followLeader:function(e,t){var n=e.state,i=n.leaderId,r=t.leaderId;e.commit("setLeaderId",t.leaderId),i!==r&&b.leaderChanged.trigger({frameId:n.frameId,oldLeaderId:i,newLeaderId:r}),r!==n.frameId&&l.stopCloneDetectionTimer()},showGuideStep:function(t,n){var i=D.filter(t.state.frames,function(e){return e.id!==t.state.frameId&&"hidden"!==e.visibility&&e.guides&&e.guides[n.guideId]});return function r(){var e=i.shift();return e?t.dispatch("requestShowGuideStepInFrame",D.extend({frameId:e.id},n)).then(function(e){return e.error?j.reject(e.error):e.isShown?e:r()}):j.resolve({isShown:!1})}()},requestShowGuideStepInFrame:function(e,t){var n=t.frameId+"/"+bt(32),i=j.defer();return r[n]=i,A.postMessage(D.extend({action:"frames/showGuideStepInFrame",requestId:n},t)),i.promise},showGuideStepInFrame:function(t,n){var e;t.state.frameId===n.frameId&&((e=(e=E(n.guideId))&&e.findStepById(n.stepId))?(e=rm.showLocal(e,n.reason).then(function(e){t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:e})}))&&e["catch"]&&e["catch"](D.noop):t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:!1}))},guideStepShownInFrame:function(e,t){e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:t.isShown}),A.postMessage(D.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame:function(e,t){var n=r[t.requestId];n&&(n.resolve(t),delete r[t.requestId]),e.getters.isShownInFrame()(t.frameId,{id:t.stepId})!==t.isShown&&e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:t.isShown})},hideGuides:function(e,t){t=D.isArray(t)?t:[],A.postMessage({action:"frames/receiveHideGuides",frameId:e.state.frameId,guideIds:t}),e.commit("hideGuides")},receiveHideGuides:function(e,t){e.state.frameId!==t.frameId&&(t.guideIds.length?D.each(D.compact(D.map(t.guideIds,E)),function(e){e.hide()}):ep(),e.commit("hideGuides"))},guideStepHiddenInFrame:function(e,t){var n=e.getters.isShownInFrame()(e.state.frameId,{id:t.stepId});e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:!1}),A.postMessage(D.extend({action:"frames/receiveGuideStepHiddenInFrame",frameId:e.state.frameId},t)),n&&e.dispatch("fixDoubleDisplay",t)},receiveGuideStepHiddenInFrame:function(e,t){e.state.frameId!==t.frameId&&e.getters.isShownInFrame()(t.frameId,{id:t.stepId})&&e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:!1})},fixDoubleDisplay:function(n,i){D.each(n.state.frames,function(e,t){t!==n.state.frameId&&n.getters.isShownInFrame()(t,{id:i.stepId})&&A.postMessage(D.extend({action:"frames/receiveHideGuideInFrame",frameId:t,guideId:i.guideId,stepId:i.stepId},i))})},receiveHideGuideInFrame:function(e,t){e.state.frameId===t.frameId&&(t=(e=E(t.guideId))&&e.findStepById(t.stepId))&&t.hide()},changeLastGuideStepSeen:function(e,t){A.postMessage({action:"frames/receiveLastGuideStepSeen",frameId:e.state.frameId,lastGuideStepSeen:t}),e.commit("updateLastGuideStepSeen",t),e.commit("healthCheck/updateStepState",{id:t.guideStepId,seenState:t.state},{root:!0})},receiveLastGuideStepSeen:function(e,t){var n;t.frameId!==e.state.frameId&&((n=H(e.state.frames[t.frameId],"agentInstallType"))&&n!==e.state.agentInstallType&&delete t.lastGuideStepSeen.visitorId,e.dispatch("guideState/updateLastGuideStepSeen",t.lastGuideStepSeen,{root:!0}),e.dispatch("guideState/write",null,{root:!0}),t=(t=E((n=e.rootState.guideState.lastGuideStepSeen).guideId))&&t.findStepById(n.guideStepId))&&(t.seenState=n.state,t.seenReason=n.seenReason,t.lastSeenAt=n.time,n.dismissCount&&(t.dismissCount=n.dismissCount),n.snoozeEndTime&&(t.snoozeEndTime=n.snoozeEndTime),e.commit("updateLastGuideStepSeen",n),e.commit("healthCheck/updateStepState",t,{root:!0}))},changeThrottlingState:function(e,t){A.postMessage(D.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState:function(e,t){t.frameId!==e.state.frameId&&D.each(kp,function(e){t[e]&&Pp(t[e],e)})},startPreview:function(e){A.postMessage({action:"frames/receiveStartPreview","pendo-preview":e.rootState.preview.preview})},restartPreview:function(e){A.postMessage({action:"frames/receiveRestartPreview","pendo-preview":e.rootState.preview.preview})},stopPreview:function(e,t){A.postMessage(D.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview:function(e,t){e.dispatch("preview/start",t[Tl],{root:!0}),Nl(L0),Fh()},receiveRestartPreview:function(e){var t=kl(x(),Uc());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview:function(e,t){$l({preventWindowClose:!!t.preventWindowClose})},updateFrameVisibility:function(e,t){if(!e.getters.isTop()&&!e.state.disableFrameVisibilityCheck)try{var n="unknown",i=(t=null==t?L0:t).frameElement;i?(n=Co(i)?"visible":"hidden",e.getters.frameVisibility()!==n&&(e.commit("setFrameVisibility",{frameId:e.state.frameId,visibility:n}),A.postMessage({action:"frames/receiveFrameVisibility",frameId:e.state.frameId,visibility:n}))):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},receiveFrameVisibility:function(e,t){e.commit("setFrameVisibility",t)},addSelectionModeToFrames:function(e,t){t=t.options;T.launchInAppDesigner(t)},syncOptions:function(e,t){t.options&&A.postMessage({action:"frames/receiveOptions",options:t.options})},receiveOptions:function(e,t){t.options&&yc(t.options)},syncIdentity:function(e,t){(t.visitorId||t.accountId)&&A.postMessage({action:"frames/receiveIdentity",visitorId:t.visitorId,accountId:t.accountId})},receiveIdentity:function(e,t){(t.visitorId||t.accountId)&&jn(t.visitorId,t.accountId)},updateMetadata:function(e,t){t&&$t(!0)&&(t.frameId=e.state.frameId,A.postMessage({action:"frames/receiveMetadata",debugMetadata:t}))},receiveMetadata:function(e,t){D.extend(t.debugMetadata,{apiKey:t.apiKey}),e.commit("setMetadata",t.debugMetadata)},receiveUrlChange:function(e,t){e.commit("setUrl",t)},receiveGuideSeen:function(e,t){t.frameId!==e.state.frameId&&b.guideSeen.trigger(t.guideSeen)}},mutations:{addFrame:function(e,t){var n=t.id;e.frames[n]=D.extend({},e.frames[n],t)},removeFrame:function(e,t){delete e.frames[t]},setGuideList:function(e,t){var n=t.frameId;e.frames[n]=D.extend({},e.frames[n],{guides:D.indexBy(a(t.guides),"id")})},setStepShown:function(e,t){var n=t.frameId,n=e.frames[n]=D.extend({},e.frames[n]);n.shown=D.extend({},n.shown),n.shown[t.stepId]=t.shown},setInitialized:function(e,t){e.initialized=t},setLeaderId:function(e,t){e.leaderId=t},setFrameId:function(e,t){e.frameId=t},setTabId:function(e,t){e.tabId=t},setTopId:function(e,t){e.topId=t},setAgentInstallType:function(e,t){e.agentInstallType=t},setLeadershipMode:function(e,t){e.leadershipMode!==ve&&(e.leadershipMode=t)},setFrameVisibility:function(e,t){var n=t.frameId;e.frames[n]=D.extend({},e.frames[n],{visibility:t.visibility})},disableFrameVisibilityCheck:function(e){e.disableFrameVisibilityCheck=!0},hideGuides:function(e){D.each(e.frames,function(n){D.each(n.shown,function(e,t){n.shown[t]=!1})})},setChannelType:function(e,t){e.channelType=t},setGuidesLoaded:function(e){e.guidesLoaded=!0},setConnectFailed:function(e){e.connectFailed=!0},updateLastGuideStepSeen:function(e,t){t&&D.each(e.frames,function(e){e.guides&&(e=e.guides[t.guideId])&&(e=D.findWhere(e.steps,{id:t.guideStepId}))&&(e.seenState=t.state,e.lastSeenAt=t.time,e.seenReason=t.seenReason,t.dismissCount&&(e.dismissCount=t.dismissCount),t.snoozeEndTime)&&(e.snoozeEndTime=t.snoozeEndTime)})},setMetadata:function(e,t){var n=t.frameId;delete t.frameId,e.frames[n].debugMetadata=D.extend({},e.frames[n].debugMetadata,t)},setUrl:function(e,t){var n=e.frames[t.frameId];D.each(["href","browserUrl"],function(e){n[e]=t[e]})}},getters:{allFrames:function(e){return e.frames},leaderExists:function(e){return!!e.leaderId},isLeader:function(e){return e.leaderId===e.frameId},isFollower:function(e){return!!e.leaderId&&e.leaderId!==e.frameId},inExtensionLeadershipMode:function(e){return e.leadershipMode===ve},isTop:function(e){return e.topId===e.frameId||L0==L0.top},frameVisibility:function(e){return(e.frames?e.frames[e.frameId]:{}).visibility||"unknown"},isGuideInThisFrame:function(n){return function(e){var t=n.frames&&n.frames[n.frameId];return!!(t&&t.guides||{})[e.id]}},isGuideInDifferentFrame:function(i){return function(n){return D.any(i.frames,function(e,t){return t!==i.frameId&&e.guides&&e.guides[n.id]})}},isShownInAnotherFrame:function(i){return function(n){return D.any(i.frames,function(e,t){return t!==i.frameId&&e.shown&&e.shown[n.id]})}},isShownInFrame:function(n){return function(e,t){e=n.frames&&n.frames[e],e=e&&e.shown||{};return!(!e||!e[t.id])}},hasFrame:function(t){return function(e){return t.frames&&t.frames[e]}},hasFrames:function(e){return 1e.iterationTimeLimit},iterationTimeElapsed:function(e,t){return e.iterationStartTime?t.now()-e.iterationStartTime:null},isUpdateComplete:function(e,t){return D.all(D.keys(e.phases),t.isPhaseComplete())},isUpdating:function(e){return!!e.updateId},isPhaseInProgress:function(e,t){return function(e){return!t.isPhaseComplete()(e)}},isPhaseComplete:function(t){return function(e){e=t.phases[e];return!(!e||!e.completedTime)}},now:function(){return v()},observer:function(){return i},clonePhaseState:function(t){return function(e){return D.extend({},t.phases[e])}}},state:{useObserver:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateStartTime:null,updateTotalTime:0,updateCompleteTime:0,iterationCount:0,iterationStartTime:null,iterationTimeLimit:Infinity,phases:{}}}}(),gm=function(){var i=["advanced","dismissed","snoozed"];return{actions:{init:function(t,e){D.each(e,function(e){D.each(e.steps,function(e){t.commit("updateStepState",e)})})},fixSeenStateAndLogError:function(e,t){var n,i,r=t.step,t=t.reason;e.state.exceptions[r.id]||(n=r.seenState,(i=e.state.steps[r.id])&&i.seenState&&(r.seenState=i.seenState),e.state.exceptions[r.id]=!0,e.dispatch("logRedisplayError",{id:r.id,guideId:r.guideId,reason:t,seenState:i.seenState,previousSeenState:n}))},logRedisplayError:function(e,t){Ur(['Attempted redisplay of guide="',t.guideId,'" step="',t.id,'" reason="',t.reason,'" seenState="',t.seenState,'" previousSeenState="',t.previousSeenState,'"'].join())}},mutations:{updateStepState:function(e,t){var n=v();e.steps[t.id]=D.extend({},e.steps[t.id],{pageId:t.pageId,regexUrlRule:t.regexUrlRule,seenState:t.seenState,updatedAt:n,allowedAt:n+6e4})},resetStepStatus:function(e){e.steps={}}},getters:{isRedisplay:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(e.resetAt>t.updatedAt)&&!(v()>=t.allowedAt)&&D.contains(i,t.seenState)&&!D.contains(i,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}}}(),mm={state:{lastFlush:v(),flushInterval:3e5,counters:{ptmGifFailures:0,guideGifFailures:0}},actions:{flush:function(n){D.each(n.state.counters,function(e,t){n.commit("resetCounter",t)}),n.commit("setLastFlush",n.getters.now())}},mutations:{setLastFlush:function(e,t){e.lastFlush=t},incrementCounter:function(e,t){e.counters[t]!==M0&&e.counters[t]++},resetCounter:function(e,t){e.counters[t]!==M0&&(e.counters[t]=0)}},getters:{shouldFlush:function(e,t){return t.now()-e.lastFlush>=e.flushInterval},payload:function(e){e=D.reduce(e.counters,function(e,t,n){return 0o&&(e.length=o),n=e,i=t.targets,n.length==i.length&&D.all(n,function(e,t){return e===i[t]})||(t.targets=e,d(t,s),D.each(e,function(e){u(e,t,s)}))})}function g(e){m.get("disablePrefetch")||D.each(e,function(e){D.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&D.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent()})}}(),_m;function Tm(){return{dom:K,placeBadge:Zc,showPreview:Ip,stopGuides:al,removeAllBadges:$c,_:D,sizzle:S,tellMaster:ia,tell:ia,log:z,attachEvent:C,createLauncher:D.constant({}),removeLauncher:D.noop,addGuideToLauncher:D.noop,updateLauncherContent:D.noop,DEFAULT_TIMER_LENGTH:il,getOffsetPosition:ro,getScreenDimensions:to,registerMessageHandler:Ko,whenLoadedCall:Ou,loadResource:Po,loadGuideCss:ph,GuideFactory:td,GuideStep:nd,extractElementTreeContext:du,previewGuideFromJSON:g.previewGuideFromJSON,hidePreviewedGuide:g.hidePreviewedGuide,shadowAPI:c,getTarget:vi,pullContentsFromTargetElement:vp,doesElementMatchContainsRules:bp,doesElementContentMatchRule:yp,getGuideAttachPoint:Gu}}var Am=function(){(_m=_m||Tm()).areGuidesEnabled=!Sh(),G.designer||(G.designer=_m)},Rm=function(){G.designer&&(G.designer=null,delete G.designer)},Nm=function(){var r,o;return{initialize:function(e,t){r=e,o=t,ua()||Ko("connect",n);Ko("pendo-designer-launch::launch",i),Ko("pendo-preview::launch",s),e.app_name=k0.title,(ra()||L0.opener)&&L0.addEventListener&&(r.log(e.app_name+": listening to messages"),L0.addEventListener("message",Bo,!1));L0.opener&&r._.isFunction(L0.opener.postMessage)&&L0.opener.postMessage({type:"pendo::ready"},"*");r.onConnectMessage=n,o.Events.appUnloaded.on(u)},onConnectMessage:n,disconnectDesigner:a,launchDesignerListener:i,launchPreviewListener:s};function n(e,t){var n,i;r.isSendingEvents()&&(n=t.origin,r.stopGuides(),r.buffers.lock(),r.designerv2.hostConfig||o.store.dispatch("frames/leave"),zo(i=t.source),o.Events.appUnloaded.on(r._.partial(a,i,n)),Am(),ia(t.source,{status:"success",type:"connect"},n),Xo("selection.js")&&(r.log("Designer Modules already loaded."),ia({type:"ready"},n)),o.Events.designerLaunched.trigger())}function a(e,t){r.buffers.unlock(),Rm(),e&&ia(e,{type:"unload"},t)}function i(e,t){var n,t=t.data.token;t&&(n=t.DADesigner?"da-designer":"in-app-designer",n={lookaside:t.baseUrl,host:t.host,target:t.target||"latest",DADesigner:!!t.DADesigner,gcsBucket:t.gcsBucket||n,forceNativeDesigner:!!t.forceNativeDesigner},r.designerv2.launchInAppDesigner(n))}function s(e,t){o.store.dispatch("preview/exitDesignerPreview"),o.store.dispatch("preview/start",r._.extend({},t.data.config,{apiKey:r.apiKey,origin:t.origin})),Nl(L0)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:r.apiKey,accountId:r.accountId},t.origin),Fh(),o.store.dispatch("frames/startPreview"))}function u(){L0.removeEventListener&&L0.removeEventListener("message",Bo,!1)}}(),Om=function(){var n="promotedAgentMetadataConfigurations",o=[],t={};return{initialize:function(e,t){(o=t.ConfigReader.get(n))&&o.length&&(t.Events.on("metadata",i),t.Events.on("eventCaptured",a))},getPromotedMetadata:function(){return o},hasPromotedMetadataKind:r,setSchemaGroup:i,getSchemaGroup:e,resetSchemaGroup:function(){t={}}};function r(t){return D.some(o,function(e){return e.kind===t})}function e(){return t}function i(e){var n,i,e=e?e.data[0]:Cc();n=e,i=t,D.each(["visitor","account","parentAccount"],function(e){var t=r(e);!D.isEmpty(n[e])&&t&&(t=e.toLowerCase()+"metadata",e=function(e,i){var r={};e&&D.each(e,function(e,t){var n=t.toLowerCase();Boolean(D.find(o,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)});return r}(n[e],e),D.isEmpty(e)||(i[t]=e))}),t=i}function a(e){e=e.data[0];D.isEmpty(t)&&i(),D.isEmpty(t)||("track"===e.type?e.props.__sg__=t:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=t))}}();function Lm(e,t,n){this.element=e,this.method="element"==t?"click":"hover"==t?"mouseover":t,this.step=n,this.guide=n.getGuide()}Lm.prototype.add=function(){0===D.indexOf(this.guide.steps,this.step)&&!Lm.shouldAttachHandler(this.guide,this.method)||Pu(this.guide)&&!Fu(this.guide)||this.setupElementEvent(this.element,this.method)},Lm.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},Lm.prototype.setupElementEvent=function(e,t){this.advanceFn||(this.advanceFn=D.compose(D.bind(this.teardownElementEvent,this,e,t),D.bind(this.step.advance,this.step))),Lm.attach(this.step,e,t,this.advanceFn)},Lm.prototype.teardownElementEvent=function(e,t){z("detach onGuideAdvanced","guide"),_(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},Lm.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||Cm.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector},Lm.attach=function(e,t,n,i){if(e){for(var r=Lm.handlers=Lm.handlers||{},o=r[e.id]=r[e.id]||[],a=0;a "),u=K("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("2*n.height/3||"center"==e.arrow.hbias?e.arrowPosition="bottom":r").addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(Gu())),Ke()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&K(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},fv=function(e){var t=e.guideElement,n=G.TOOLTIP_ARROW_SIZE,i=e.attributes.height,e=e.attributes.width,e=Math.floor(e/2),i=Math.floor(i/2);t.addClass(cv).css({top:"50%",left:"50%","margin-top":-i,"margin-left":-e}),K("._pendo-guide-container_",t).css({bottom:n,right:n}),Ke()&&t.css({position:"absolute"})},pv=function(e,t){t===M0&&(t=rr),e.element=Hu(e),fv(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(lv(n,e),e.guideElement);t.push(n[0]),n.appendTo(Gu())},hv="_pendo-guide-mobile-lb_",gv=function(e){e.guideElement.addClass(hv)},mv=function(e,t){t===M0&&(t=rr),e.element=Hu(e),gv(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=lv(n,e),e=e.guideElement,i=G.TOOLTIP_ARROW_SIZE,i=(e.css({width:"",height:""}),K("._pendo-guide-container_",e).css({bottom:i,right:i}));function r(e){e.preventDefault()}K("._pendo-close-guide_",e).remove().prependTo(i),e.appendTo(Gu()),t.push(e[0]),C(n[0],"touchmove",r),C(e[0],"touchmove",r)};function vv(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||G.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||G.LB_DEFAULT_WIDTH,e.after("render",function(){(Bu()?mv:pv)(e,e.elements)}),e.reposition=function(){Bu()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var bv=500,yv="_pendo-guide-banner_";function wv(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||bv,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=G.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(yv).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),Uu()||e.addClass("_pendo-in_"),K("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=Hu(n),n.elements.push(e[0]),e.appendTo(Gu())})),n}function Sv(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(D.extend(n,{isShown:D.constant(!1),launch:u,onShown:u,render:function(){var e=n.guideElement,t=n.attributes.height;e&&e.html()||(e=K("").attr("id",wp(n)).addClass("_pendo-guide-whatsnew_").html(n.getContent()),D.isNumber(t)&&!n.attributes.autoHeight&&e.height(t),n.seenState===r&&e.addClass(i),n.guideElement=e)},seen:s}),D.extend(t,{addToLauncher:function(){var e=n.guideElement;e&&!fo(e[0])&&(K("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),ld.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){Uu()||a()&&n.seenState!==r&&function(e){{var t,n;if(Co(e,/(auto|scroll|hidden)/))return(t=mo(e))?(t=Z(t),e=Z(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(Tp(n.guideId,n.id,J(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,D.delay(function(){n.guideElement.addClass(i+" out")},D.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function u(){}}var Iv="_pendo-launcher-searching_",xv="._pendo-launcher-search-box_ input";function Ev(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"
$&"):e},clear:function(){K(xv).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,G.disableGuideCenterContentSearch||this.before("update",Nv),this.before("update",function(){t.text=Rv().join(" ");var e=K("._pendo-launcher_");t.text?e.addClass(Iv):e.removeClass(Iv)})),this}function Cv(){var e;if(G.guideWidget)return(e=G.guideWidget.data)&&e.enableSearch}var _v=function(e){return e&&D.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")},Tv;function Av(){return 0
").addClass(e.className).append(e).appendTo(Gu()),e.className="",n.element=t[0])}},dispose:function(){K.removeNode(n.element)},setActive:function(e){e?K(n.element).addClass(Gv):K(n.element).removeClass(Gv)}}),e),e=i.position||"bottom-right",r=k0.createElement("img");K(n.element=r).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+e+"_"),i.launcherBadgeUrl&&(r.src=rd(i.launcherBadgeUrl)),r.onerror=function(e){z("[Agent] Error! Unable to load guide center image "+i.launcherBadgeUrl),w("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},Ke()&&(C(r,"mouseover",function(e){K(r).addClass("_pendo-launcher-badge-active_")}),C(r,"mouseout",function(e){K(r).removeClass("_pendo-launcher-badge-active_")}),K(r).css({position:"absolute"})),Gu().appendChild(r)}function Kv(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=vi(e),t=n();K(e).closest(t).length&&(f0()?d.write("launcher-closed","yes",864e6):G.guideWidget.position(e),m0())}G.guideWidget.removeCountBadge=function(){K("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),D.extend(this,{getLauncherTarget:function(){return K(n())[0]},dispose:function(){_(k0,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&v0()}}),C(k0,"click",t)}function qv(){var n,s="bottom-right",u="bottom-left";return this.update=function(e,t){t=t?e:jv(e),e=Wv(t)+mt(Rv());return e!==n&&(n=e,this.updateLauncherContent(t)),n0(),0").addClass("_pendo-launcher_")),r=(Uv=i[0],ro(Fv.element)),r=tv(r,t,n),o=(i.css({width:n,height:t}),G.TOOLTIP_ARROW_SIZE),n=K("").addClass("_pendo-guide-container_ "+r.arrowPosition).addClass("_pendo-guide-container-"+r.arrowPosition+"_").css({top:o,left:o,width:n-2*o,height:t-2*o}).appendTo(i),t=s0(),o=rd($v(this.template(t))),t=K("").addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),$f(i[0],function(){m0(),d.write("launcher-closed","yes",288e5)}),t.on("click",function(e){var t=K(vi(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=E((t=/^launcher-(.+)$/.exec(at.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(Ep(t.steps[0],"launcher"),m0(),Nu(e))}),Ke()&&(K("._pendo-launcher-header_",i).css({padding:"10px","margin-right":"10px","margin-left":"10px"}),K("._pendo-launcher-footer_",i).css({"border-top":"1px solid #bbb"}),i.css({position:"absolute"})),i.find("[pendo-style]").each(function(){var e=this.getAttribute("pendo-style");K(this).css(e)}),i.appendTo(Gu()),D.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!Ie(9,6)&&(o=e.autoHeight.offset||100,i.css({height:"calc(100% - "+o+"px)",maxHeight:e.height,minHeight:e.height/2}),K("._pendo-guide-container_."+r.arrowPosition).css({maxHeight:e.height-30,minHeight:e.height/2-30,height:"calc(100% - 30px)"}))},this.position=function(e){var t,n,i,r,o,a;e&&(t=this.data,e=ro(e),n=tv(e,this.height,this.width),i=K(Uv),"badge"===(r=t.launchType||"badge")?(o=t.position,D.indexOf(a=[s,u,"top-left","top-right"],t.position)<0&&(o=s),D.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=D.contains([s,u],o)?"bottom":"top",n.arrow.hbias=D.contains([u,"top-left"],o)?"left":"right",n.arrow.floating=!1):"element"===r&&i.css({top:n.top,left:n.left,height:n.height,width:n.width,position:e.fixed?"fixed":"absolute"}),K("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),rv(n,e,{width:Infinity,height:Infinity}),Dm(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=m0,this}function Vv(){var n,i=this;return i.data&&i.data.onboarding&&(n=i.onboarding=i.onboarding||{},i.before("update",function(e){var e=D.filter(e,Xg),t=D.filter(e,function(e){return"complete"==i.guideStatus(e)}),e=n.total=e.length,t=(n.percentComplete=0").addClass("_pendo-launcher-whatsnew-count_");return n.data&&n.data.whatsnew&&n.data.whatsnew.enabled&&(n.before("updateLauncherContent",function(e){e=D.filter(e,function(e){return e.isWhatsNew()});e.sort(t),n.data.whatsnew.total=e.length,n.data.whatsnew.guides=e}),n.after("update",function(e){var t=n.data.whatsnew.guides,t=(D.each(t,function(e){e.show()}),D.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),D.filter(t,function(e){return"active"!==e.steps[0].seenState}).length);t!==n.data.whatsnew.unseenCount&&(i.html(t).css({display:t?"":"none"}),n.data.whatsnew.unseenCount=t,K("span._pendo-launcher-whatsnew-count_").text(n.data.whatsnew.unseenCount))}),n.after("render",function(){o0()?i.appendTo(this.data.launchElement):(Fv.wrap(),i.appendTo(Fv.element))})),n;function t(e,t){var n=function(e,t){e=e.showsAfter||e.publishedAt||0;return(t.showsAfter||t.publishedAt||0)-e}(e,t);return 0===n?(t=t,e=(e=e).name.toLowerCase(),(t=t.name.toLowerCase())").html($v(t(e))),n=e.find("._pendo-launcher-guide-listing_"),t=e.find("._pendo-launcher-footer_").html(),e=e.find("._pendo-launcher-search-results_").html();K("._pendo-launcher_ ._pendo-launcher-guide-listing_").each(function(e,t){K(e).html(n.eq(t).html())}),K("._pendo-launcher_ ._pendo-launcher-footer_").html(t),K("._pendo-launcher_ ._pendo-launcher-search-results_").html(e)}var d0=function(e){var t=k0.createElement("div"),n=(K(t).addClass("_pendo-launcher-item_"),K(t).attr("id","launcher-"+e.id),k0.createElement("a"));return n.href="#",n.innerHTML=e.name,t.appendChild(n),t},c0=D.compose(n0,function(e,t){var n,i;_v(e)&&(n=K("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0])&&(e=(i=K("#launcher-"+e.id)).length?i[0]:d0(e),i=0',i.style.display="inline-block",(r=k0.createElement("div")).style.lineHeight=0,r.style.padding="8px",e&&(r.style.position="absolute",r.style.bottom="100%"),n&&(r.style.paddingLeft=0),r.append(i),t.append(r))}}();function _0(){Vh(Em),Vh(Cm),Vh(Nm),Vh(Om),Vh(E0),Vh(C0)}function T0(i){jg(i),Vg(i),D.each(["identify","updateOptions","pageLoad","track"],function(t){var n=i[t];i[t]=function(){try{mg()?n.apply(this,arguments):ne(i,t,arguments)}catch(e){w(e)}}})}function A0(t){D.each(["initialize","identify","updateOptions","pageLoad","track"],function(e){t[e]=function(){console.log("Pendo is currently disabled.")}})}function R0(e,t){de(t),tt(),!r(t)&&se(t,e,$t(!0))||e&&e.VERSION||(m.get("disablePendo")?A0(e):(Sm(W),hr(),sm(),cd.reset(),W.dispatch("frames/init"),z.init(),c.wrapSizzle(S),S.intercept(Ku),T0(e),b.appUsage.on(Im.handler),b.appUsage.on(xm.handler),b.error.on(D.partial(W.dispatch,"errorLog/write")),b.guideListChanged.on(l.changeSessionId),_0(),bg(e._q,vg,Ou)))}var N0=le(),O0=a(N0);R0(O0,N0)}e("undefined"!=typeof PendoConfig?PendoConfig:{})}()}(window,document);
+})({
+ environmentName: "production",
+ blockAgentMetadata: false,
+
+
+
+
+ dataHost: "data.eu.pendo.io",
+
+
+ stagingServers: [],
+ stagingAgentUrl: `https://pendo-eu-static.storage.googleapis.com/agent/static/${PENDO_API_KEY}/pendo-staging.js`,
+
+ allowedOriginServers: ["https://pendo-eu-static-5984916755841024.storage.googleapis.com"],
+
+
+ adoptPrioritizeAdoptGuides: false,
+ allowCrossOriginFrames: false,
+ disableCookies: false,
+ disableDesignerKeyboardShortcut: false,
+ disableFeedbackAutoInit: false,
+ disableGlobalCSS: false,
+ disableGuidePseudoStyles: false,
+ disablePendo: false,
+ disablePersistence: false,
+ enableDebugEvents: false,
+ enableGuideTimeout: true,
+ enableSignedMetadata: false,
+ eventPropertyConfigurations: [],
+ excludeAllText: false,
+ extensionPersistLocalStorage: false,
+ frameIdentitySync: false,
+ freeNPSData: false,
+ guideValidation: false,
+ interceptElementRemoval: false,
+ isPendoFree: true,
+ localStorageOnly: true,
+ pendoCore: true,
+ pendoFeedback: false,
+ preferBroadcastChannel: true,
+ preferMutationObserver: false,
+ preventCodeInjection: false,
+ promotedAgentMetadataConfigurations: [],
+ recording: {"enabled":false},
+ requireHTTPS: true,
+ requireSignedMetadata: false,
+ restrictP1Access: true,
+ siblingSelectors: false,
+ trainingPartner: false,
+ guideSeenTimeoutLength: 0,
+ xhrTimings: false,
+ xhrWhitelist: null,
+ htmlAttributeBlacklist: null,
+ htmlAttributes: /^(tabindex)$/i,
+ apiKey: PENDO_API_KEY
+});
+!function(){"use strict";var e=function(){var t,i,n={};return{initialize:function(e,a){t=e,i=a,e.excludeAllText=i.ConfigReader.get("excludeAllText");var l=i.ConfigReader.get("allowedText");n=t._.reduce(l,(function(e,i){return t._.isString(i)?(e[i]=!0,e):e}),{}),i.NodeSerializer.add(r),i.Events.on("eventCaptured",t._.partial(u,e))},isEnabled:a,isTextCapturable:function(e){var r=i.util.trim.call(e);return a()||t._.has(n,r)||t._.has(n,e)},hasWhitelist:function(){return t._.size(n)>0},serializer:r};function r(n,r,u){if(r!==u)return n;if(e.isEnabled()||!e.isEnabled()&&e.hasWhitelist()){var a=t.getText(u,128);e.isTextCapturable(a)&&(n.txt=e.hasWhitelist()?i.util.trim.call(a):a)}return n}function u(e,t){if(a()){var i=t.data[0];if(i&&"guideActivity"===i.type){var n=e.getActiveGuide();if(!n)return;var r=(0,e.BuildingBlocks.BuildingBlockGuides.findDomBlockInDomJson)(n.step.domJson,(function(e){return e.props&&e.props.id&&e.props.id===i.props.ui_element_id}));if(!r)return;i.props.ui_element_text=r.content}}}function a(){return!t.excludeAllText}}();pendo.addExtension&&pendo.addExtension({name:"TextCapture",version:"1.0.0",type:"agent",use:"plugin",uri:e})}();
+;