@pendo/agent 2.292.0 → 2.292.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dom.esm.js +3 -14
- package/dist/pendo.module.js +12 -22
- package/dist/pendo.module.min.js +7 -7
- package/package.json +1 -1
package/dist/pendo.module.min.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license https://agent.pendo.io/licenses
|
|
3
3
|
*/
|
|
4
|
-
function loadAgent(d){s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");var s,c={uint8ToBase64:function(e){var t,n,i,r=e.length%3,o="";for(t=0,i=e.length-r;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=function(e){return s[e>>18&63]+s[e>>12&63]+s[e>>6&63]+s[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=s[n>>2])+s[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=s[n>>10])+s[n>>4&63])+s[n<<2&63]}return o}},Gt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var G,o,B,z,j,H,q,W={exports:{}};function V(e){e?(H[0]=H[16]=H[1]=H[2]=H[3]=H[4]=H[5]=H[6]=H[7]=H[8]=H[9]=H[10]=H[11]=H[12]=H[13]=H[14]=H[15]=0,this.blocks=H):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}t=W,G="object"==typeof window?window:{},e=!G.JS_SHA1_NO_COMMON_JS&&t.exports,o="0123456789abcdef".split(""),B=[-2147483648,8388608,32768,128],z=[24,16,8,0],j=["hex","array","digest","arrayBuffer"],H=[],q=function(t){return function(e){return new V(!0).update(e)[t]()}},V.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===G.ArrayBuffer?new Uint8Array(e):e).length||0,a=this.blocks;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),i)for(n=this.start;r<o&&n<64;++r)a[n>>2]|=e[r]<<z[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<z[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<z[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<z[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<z[3&n++],a[n>>2]|=(128|t>>12&63)<<z[3&n++]),a[n>>2]|=(128|t>>6&63)<<z[3&n++]),a[n>>2]|=(128|63&t)<<z[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,64<=n?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},V.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=B[3&t],this.block=e[16],56<=t&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash())},V.prototype.hash=function(){for(var e,t=this.h0,n=this.h1,i=this.h2,r=this.h3,o=this.h4,a=this.blocks,s=16;s<80;++s)e=a[s-3]^a[s-8]^a[s-14]^a[s-16],a[s]=e<<1|e>>>31;for(s=0;s<20;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|~n&r)+o+1518500249+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|~t&i)+r+1518500249+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|~o&n)+i+1518500249+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|~r&t)+n+1518500249+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|~i&o)+t+1518500249+a[s+4]<<0,i=i<<30|i>>>2;for(;s<40;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o+1859775393+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r+1859775393+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i+1859775393+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n+1859775393+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t+1859775393+a[s+4]<<0,i=i<<30|i>>>2;for(;s<60;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|n&r|i&r)+o-1894007588+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|t&i|n&i)+r-1894007588+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|o&n|t&n)+i-1894007588+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|r&t|o&t)+n-1894007588+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|i&o|r&o)+t-1894007588+a[s+4]<<0,i=i<<30|i>>>2;for(;s<80;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o-899497514+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r-899497514+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i-899497514+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n-899497514+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t-899497514+a[s+4]<<0,i=i<<30|i>>>2;this.h0=this.h0+t<<0,this.h1=this.h1+n<<0,this.h2=this.h2+i<<0,this.h3=this.h3+r<<0,this.h4=this.h4+o<<0},V.prototype.toString=V.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return o[e>>28&15]+o[e>>24&15]+o[e>>20&15]+o[e>>16&15]+o[e>>12&15]+o[e>>8&15]+o[e>>4&15]+o[15&e]+o[t>>28&15]+o[t>>24&15]+o[t>>20&15]+o[t>>16&15]+o[t>>12&15]+o[t>>8&15]+o[t>>4&15]+o[15&t]+o[n>>28&15]+o[n>>24&15]+o[n>>20&15]+o[n>>16&15]+o[n>>12&15]+o[n>>8&15]+o[n>>4&15]+o[15&n]+o[i>>28&15]+o[i>>24&15]+o[i>>20&15]+o[i>>16&15]+o[i>>12&15]+o[i>>8&15]+o[i>>4&15]+o[15&i]+o[r>>28&15]+o[r>>24&15]+o[r>>20&15]+o[r>>16&15]+o[r>>12&15]+o[r>>8&15]+o[r>>4&15]+o[15&r]},V.prototype.array=V.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r]},V.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(20),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),e},Ge=function(){var t=q("hex");t.create=function(){return new V},t.update=function(e){return t.create().update(e)};for(var e=0;e<j.length;++e){var n=j[e];t[n]=q(n)}return t}(),e?t.exports=Ge:G.sha1=Ge;var J=p(W.exports);let K;const $={createScriptURL:e=>e,createHTML:e=>e};function Z(e){return K||(K=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",$):$),e.trustedTypesPolicy=K),K}var E,X="stagingServerHashes",Y={};function Q(e){return e.loadAsModule}function ee(e){return"staging"===e.environmentName}function te(e){return"extension"===e.installType}function ne(t=[],n){if(document.currentScript)return document.currentScript;var i=/^https:\/\/[\w\-.]*cdn[\w\-.]*\.(pendo-dev\.com|pendo\.io)\/agent\/static\/([\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}|PENDO_API_KEY)\/pendo\.js$/g;for(let e=0;e<t.length;e++){var r=t[e];if(i.test(r.src)||r.id==="pendo-"+n)return r}}function ie(e,t,n){e=function(e=[]){if(e=ne(e))return e.src.replace(/\.js$/,"-staging.js")}(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function re(e,t){if(ee(e=e||Y))return!0;if(t=t||window.location,(o=e)&&o.stagingAgentUrl&&o[X]){o=t.host;for(var n=c.uint8ToBase64(J.create().update(o).digest()),i=0,r=e[X].length;i<r;++i)if(e[X][i]===n)return!0}var o;if((o=e)&&o.stagingAgentUrl&&o.stagingServers)for(var a=0,s=e.stagingServers.length;a<s;++a){var u=e.stagingServers[a];if((u="string"==typeof u?new RegExp("^"+u+"$"):u)instanceof RegExp&&u.test(t.host))return!0}return!1}var oe=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function ae(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function se(e){if(!e._q)for(var t=oe,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){ae(t,e,arguments)}}(t[n],e)}function ue(e,t,n){if(!te(i=e)&&!ee(i)&&re(i)){i=ie(e,!0,n);if(i)return se(t),ce(i,t),!0}var i;return!1}function de(e,t,n){if(r=n,!te(i=e)&&!i.unminified&&r){i=ie(e,!1,n);if(i)return se(t),ce(i,t),!0}var i,r;return!1}function ce(e,t){var n=document.createElement("script"),t=(n["async"]=!0,n.src=Z(t).createScriptURL(e),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(n,t):(document.head||document.body).appendChild(n)}function le(e){Y=e}function pe(){return void 0===d?{}:d}function he(e){return Y[e]}fe(window.setTimeout,window);function fe(e,t){return"function"==typeof e.bind?e.bind(t):e}var ge,Ut=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return fe(e[t],e)}(window),_=p(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Gt&&Gt.global===Gt&&Gt||Function("return this")()||{},i=Array.prototype,F=Object.prototype,D="undefined"!=typeof Symbol?Symbol.prototype:null,U=i.push,u=i.slice,l=F.toString,G=F.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),B=Array.isArray,z=Object.keys,j=Object.create,H=t&&ArrayBuffer.isView,q=isNaN,W=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],K=Math.pow(2,53)-1;function c(r,o){return o=null==o?r.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),n=0;n<e;n++)t[n]=arguments[n+o];switch(o){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}for(var i=Array(o+1),n=0;n<o;n++)i[n]=arguments[n];return i[o]=t,r.apply(this,i)}}function o(e){var t=typeof e;return"function"==t||"object"==t&&!!e}function $(e){return void 0===e}function Z(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var X=r("String"),Y=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=B||r("Array");function g(e,t){return null!=e&&G.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return Y(e)&&q(e)}function ue(e){return function(){return e}}function de(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=K}}function ce(t){return function(e){return null==e?void 0:e[t]}}var m=ce("byteLength"),le=de(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return H?H(e)&&!h(e):le(e)&&pe.test(l.call(e))}:ue(!1),v=ce("length");function fe(e,t){t=function(t){for(var n={},e=t.length,i=0;i<e;++i)n[t[i]]=!0;return{contains:function(e){return!0===n[e]},push:function(e){return n[e]=!0,t.push(e)}}}(t);var n=J.length,i=e.constructor,r=p(i)&&i.prototype||F,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=J[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(z)return z(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return V&&fe(e,n),n}function ge(e,t){var n=y(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function c(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=l.call(e);if(r!==l.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return D.valueOf.call(e)===D.valueOf.call(t);case"[object ArrayBuffer]":case ve:return c(me(e),me(t),n,i)}r="[object Array]"===r;if(!r&&he(e)){var o=m(e);if(o!==m(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];i=i||[];var s=n.length;for(;s--;)if(n[s]===e)return i[s]===t;n.push(e);i.push(t);if(r){if((s=e.length)!==t.length)return!1;for(;s--;)if(!ye(e[s],t[s],n,i))return!1}else{var u,d=y(e);if(s=d.length,y(t).length!==s)return!1;for(;s--;)if(u=d[s],!g(t,u)||!ye(e[u],t[u],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function d(e){if(!o(e))return[];var t,n=[];for(t in e)n.push(t);return V&&fe(e,n),n}function be(i){var r=v(i);return function(e){if(null==e)return!1;var t=d(e);if(v(t))return!1;for(var n=0;n<r;n++)if(!p(e[i[n]]))return!1;return i!==Se||!p(e[we])}}var we="forEach",e=["clear","delete"],n=["get","has","set"],B=e.concat(we,n),Se=e.concat(n),t=["add"].concat(e,we,"has"),n=a?be(B):r("Map"),e=a?be(Se):r("WeakMap"),B=a?be(t):r("Set"),a=r("WeakSet");function w(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ee(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Ie(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function _e(u,d){return function(e){var t=arguments.length;if(d&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=u(i),o=r.length,a=0;a<o;a++){var s=r[a];d&&void 0!==e[s]||(e[s]=i[s])}return e}}var Ce=_e(d),s=_e(y),xe=_e(d,!0);function Te(e){var t;return o(e)?j?j(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function ke(e){return f(e)?e:[e]}function S(e){return b.toPath(e)}function Ae(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function Re(e,t,n){e=Ae(e,S(t));return $(e)?n:e}function Oe(e){return e}function E(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return Ae(e,t)}}function I(r,o,e){if(void 0===o)return r;switch(null==e?3:e){case 1:return function(e){return r.call(o,e)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return function(){return r.apply(o,arguments)}}function Me(e,t,n){return null==e?Oe:p(e)?I(e,t,n):(o(e)&&!f(e)?E:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function _(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Pe(){}function Fe(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=ke,b.iteratee=Le;var C=Date.now||function(){return(new Date).getTime()};function De(t){var n=function(e){return t[e]},e="(?:"+y(t).join("|")+")",i=RegExp(e),r=RegExp(e,"g");return function(e){return i.test(e=null==e?"":""+e)?e.replace(r,n):e}}var t={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Ue=De(t),t=De(Ee(t)),Ge=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Be=/(.)^/,ze={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},je=/\\|'|\r|\n|\u2028|\u2029/g;function He(e){return"\\"+ze[e]}var qe=/^\s*(\w|\$)+\s*$/;var We=0;function Ve(e,t,n,i,r){return i instanceof t?(i=Te(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var x=c(function(r,o){var a=x.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),i=0;i<t;i++)n[i]=o[i]===a?arguments[e++]:o[i];for(;e<arguments.length;)n.push(arguments[e++]);return Ve(r,s,this,this,n)};return s}),Je=(x.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return Ve(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),T=de(v);function k(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=Infinity;for(var r=i.length,o=0,a=v(e);o<a;o++){var s=e[o];if(T(s)&&(f(s)||ae(s)))if(1<t)k(s,t-1,n,i),r=i.length;else for(var u=0,d=s.length;u<d;)i[r++]=s[u++];else n||(i[r++]=s)}return i}var Ke=c(function(e,t){var n=(t=k(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Je(e[i],e)}return e});var $e=c(function(e,t,n){return Ut(function(){return e.apply(null,n)},t)}),Ze=x($e,b,1);function Xe(e){return function(){return!e.apply(this,arguments)}}function Ye(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=x(Ye,2);function et(e,t,n){t=_(t,n);for(var i,r=y(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function tt(o){return function(e,t,n){t=_(t,n);for(var i=v(e),r=0<o?0:i-1;0<=r&&r<i;r+=o)if(t(e[r],r,e))return r;return-1}}var nt=tt(1),it=tt(-1);function rt(e,t,n,i){for(var r=(n=_(n,i,1))(t),o=0,a=v(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function ot(o,a,s){return function(e,t,n){var i=0,r=v(e);if("number"==typeof n)0<o?i=0<=n?n:Math.max(n+r,i):r=0<=n?Math.min(n+1,r):n+r+1;else if(s&&n&&r)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(u.call(e,i,r),se))?n+i:-1;for(n=0<o?i:r-1;0<=n&&n<r;n+=o)if(e[n]===t)return n;return-1}}var at=ot(1,nt,rt),st=ot(-1,it);function ut(e,t,n){t=(T(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function A(e,t,n){if(t=I(t,n),T(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function R(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function dt(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=I(t,i,4),s=n,u=!T(o)&&y(o),d=(u||o).length,c=0<p?0:d-1;for(r||(s=o[u?u[c]:c],c+=p);0<=c&&c<d;c+=p){var l=u?u[c]:c;s=a(s,o[l],l,o)}return s}}var ct=dt(1),lt=dt(-1);function O(e,i,t){var r=[];return i=_(i,t),A(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function N(e,t,n,i){return T(e)||(e=w(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=c(function(e,n,i){var r,o;return p(n)?o=n:(n=S(n),r=n.slice(0,-1),n=n[n.length-1]),R(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Ae(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return R(e,Ne(t))}function mt(e,i,t){var n,r,o=-Infinity,a=-Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=T(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&o<n&&(o=n);else i=_(i,t),A(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?u.call(e):X(e)?e.match(vt):T(e)?R(e,Oe):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=T(e)?e:w(e))[Fe(e.length-1)];for(var i=yt(e),n=v(i),r=(t=Math.max(Math.min(t,n),0),n-1),o=0;o<t;o++){var a=Fe(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function M(o,t){return function(n,i,e){var r=t?[[],[]]:{};return i=_(i,e),A(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var wt=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),St=M(function(e,t,n){e[n]=t}),Et=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),It=M(function(e,t,n){e[n?0:1].push(t)},!0);function _t(e,t,n){return t in n}var Ct=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=I(i,t[1])),t=d(e)):(i=_t,t=k(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=e[a];i(s,a,e)&&(n[a]=s)}}return n}),xt=c(function(e,n){var t,i=n[0];return p(i)?(i=Xe(i),1<n.length&&(t=n[1])):(n=R(k(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Ct(e,i,t)});function Tt(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function kt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Tt(e,e.length-t)}function L(e,t,n){return u.call(e,null==t||n?1:t)}var At=c(function(e,t){return t=k(t,!0,!0),O(e,function(e){return!N(t,e)})}),Rt=c(function(e,t){return At(e,t)});function Ot(e,t,n,i){Z(t)||(i=n,n=t,t=!1),null!=n&&(n=_(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var u=e[a],d=n?n(u,a,e):u;t&&!n?(a&&o===d||r.push(u),o=d):n?N(o,d)||(o.push(d),r.push(u)):N(r,u)||r.push(u)}return r}var Nt=c(function(e){return Ot(k(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Pt(e,t){return e._chain?b(t).chain():t}function Ft(n){return A(Ie(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return U.apply(e,arguments),Pt(this,t.apply(b,e))}}),b}A(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Pt(this,e)}}),A(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Pt(this,e=null!=e?t.apply(e,arguments):e)}});var P=Ft({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:$,isBoolean:Z,isElement:function(e){return!(!e||1!==e.nodeType)},isString:X,isNumber:Y,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&W(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||X(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:B,isWeakSet:a,keys:y,allKeys:d,values:w,pairs:function(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:Ee,functions:Ie,methods:Ie,extend:Ce,extendOwn:s,assign:s,defaults:xe,create:function(e,t){return e=Te(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:Re,has:function(e,t){for(var n=(t=S(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=_(t,n);for(var i=y(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Oe,constant:ue,noop:Pe,toPath:ke,property:Ne,propertyOf:function(t){return null==t?Pe:function(e){return Re(t,e)}},matcher:E,matches:E,times:function(e,t,n){var i=Array(Math.max(0,e));t=I(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:Fe,now:C,escape:Ue,unescape:t,templateSettings:Ge,template:function(o,e,t){e=xe({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||Be).source,(e.interpolate||Be).source,(e.evaluate||Be).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace(je,He),a=r+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(s+="';\n"+i+"\n__p+='"),e}),s+="';\n",t=e.variable){if(!qe.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{throw new Error("Function constructor not supported")}catch(n){throw n.source=s,n}return(e=function(e){return(void 0).call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=S(t)).length;if(!i)return p(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++We+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:x,bind:Je,bindAll:Ke,memoize:function(i,r){var o=function(e){var t=o.cache,n=""+(r?r.apply(this,arguments):e);return g(t,n)||(t[n]=i.apply(this,arguments)),t[n]};return o.cache={},o},delay:$e,defer:Ze,throttle:function(n,i,r){var o,a,s,u,d=0,c=(r=r||{},function(){d=!1===r.leading?0:C(),o=null,u=n.apply(a,s),o||(a=s=null)}),e=function(){var e=C(),t=(d||!1!==r.leading||(d=e),i-(e-d));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout(o),o=null),d=e,u=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=Ut(c,t)),u};return e.cancel=function(){clearTimeout(o),d=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,u,d=function(){var e=C()-o;e<n?r=Ut(d,n-e):(r=null,i||(s=t.apply(u,a)),r||(a=u=null))},e=c(function(e){return u=this,a=e,o=C(),r||(r=Ut(d,n),i&&(s=t.apply(u,a))),s});return e.cancel=function(){clearTimeout(r),r=a=u=null},e},wrap:function(e,t){return x(t,e)},negate:Xe,compose:function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:Ye,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:ut,detect:ut,findWhere:function(e,t){return ut(e,E(t))},each:A,forEach:A,map:R,collect:R,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Xe(_(t)),n)},every:pt,all:pt,some:ht,any:ht,contains:N,includes:N,include:N,invoke:ft,pluck:gt,where:function(e,t){return O(e,E(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=T(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&n<o&&(o=n);else i=_(i,t),A(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=_(i,t),gt(R(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:wt,indexBy:St,countBy:Et,partition:It,toArray:yt,size:function(e){return null==e?0:(T(e)?e:y(e)).length},pick:Ct,omit:xt,first:kt,head:kt,take:kt,initial:Tt,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return O(e,Boolean)},flatten:function(e,t){return k(e,t,!1)},without:Rt,uniq:Ot,unique:Ot,union:Nt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=v(e);i<r;i++){var o=e[i];if(!N(t,o)){for(var a=1;a<n&&N(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:At,unzip:Mt,transpose:Mt,zip:Lt,object:function(e,t){for(var n={},i=0,r=v(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n=n||(t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(u.call(e,i,i+=t));return n},mixin:Ft,"default":b}),Dt=P.toPath;return P.mixin({toPath:function(e){return P.isString(e)?e.split("."):Dt(e)}}),P._=P}());function me(e){return!(null==e)}function ve(e){return _.isFunction(e)||_.isRegExp(e)?e:_.isArray(e)?_.map(e,ve):_.isObject(e)?_.reduce(e,function(e,t,n){return e[n]=ve(t),e},{}):e}var f=function(){var i=_.all,r=_.each,o=_.filter,a=_.first,s=_.find,n=_.map,u=_.pluck,d="snippet",c="pendoconfig",l="global",p="default";const h={};function e(e,t=[c],n,i){e&&!h[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),h[e]=n)}e("additionalApiKeys",[c,d]),e("allowedOriginServers"),e("allowMixedApiKeyFrames",[d,c],!0),e("annotateUrl",[d]),e("apiKey",[c,d]),e("assetHost",[d,c]),e("autoFrameInstall",[d,c],!1),e("blockAgentMetadata",[c],!1),e("contentHost",[d,c]),e("cookieDomain",[d,c]),e("dataHost",[d,c]),e("disableAutoInitialize"),e("disableCookies",[d,c]),e("disablePendo",[d,c],!1),e("disablePersistence",[d,c]),e("enableSignedMetadata",[c],!1),e("frameIdentitySync",[d,c],!1),e("frameIdentityTopDownOnly",[d,c],!0),e("forceAnonymous",[d,c],!1),e("identityStorageLifetime",[d,c]),e("identityStorageSuffix",[d,c]),e("ignoreHashRouting",[d,c]),e("initializeImmediately",[d,c],!1),e("installType"),e("localStorageOnly",[d,c]),e("location.pushState",[d,c],!0),e("maxCookieTTLDays",[d,c],Infinity),e("observeShadowRoots",[d,c],!1),e("pendoCore",[c],!0),e("pendoGlobalKey",[c]),e("preferBroadcastChannel",[d,c],!1),e("preferMutationObserver",[d,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[d,c],!1),e("promotedAgentMetadataConfigurations",[c]),e("queryStringWhitelist",[d]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[d]),e("selfHosted"),e("selfHostedAgentUrl",[d,c]),e("sendEventsWithPostOnly",[d,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[d,c],[]),e("analytics.excludeEvents",[d,c],[]),e("analytics.localStorageUnload",[d,c],!1),e("enableDebugEvents",[d,c]),e("freeNPSData"),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[d,c],!0),e("excludeAllText",[c,d],!1,!0),e("excludeNonGuideAnalytics",[d,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptElementRemoval",[d,c],!1),e("interceptPreventDefault",[d,c],!0),e("interceptStopPropagation",[d,c],!0),e("syntheticClicks.elementRemoval",[d,c],!1),e("syntheticClicks.targetChanged",[d,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[d,c]),e("cacheGuides",[d,c],!1),e("cacheGuidesTimeout",[c],6e5),e("delayGuides",[d]),e("disableDesigner",[c,d],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[d,c],!1),e("disableGuidePseudoStyles",[d,c],!1),e("disableGuides",[d]),e("disablePrefetch",[d,c]),e("enableDesignerKeyboardShortcut",[d]),e("enableGuideTimeout",[c,d],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,d],1e4),e("guideTimeout",[d]),e("guideValidation",[d,c],!1),e("guides.attachPoint",[d]),e("guides.delay",[d]),e("guides.disabled",[d]),e("guides.ejectOnTimeout",[d,c],!1),e("guides.globalScripts",[d,c],[]),e("guides.timeout",[d]),e("guides.tooltip.arrowSize",[d]),e("inlineStyleNonce",[d]),e("leaderKey",[d,c],[]),e("preventCodeInjection",[c,d,l],!1),e("previewModeAssetPath"),e("useAssetHostForDesigner",[d,c],!1),e("storage.allowKeys",[d],"*"),e("disableFeedback",[d]),e("disableFeedbackAutoInit"),e("feedbackSettings",[c],{}),e("pendoFeedback",[c],!1),e("crossAppGuideStorageSuffix",[d,c]),e("enableCrossOriginIsolation",[d,c],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("agentDebuggerPluginLoader"),e("allowPartnerAnalyticsForwarding",[d],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerAgentPluginsLoader",[c,d]),e("trainingPartner"),e("errorClickLogging",[c],!1),e("enableAllEmbeddedGuideEvents",[c],!1),e("formValidation",[c],!1);var f={};function g(e){return h[e]||{name:e}}function m(e,t){if(t)return t=t(),me(e=_.get(t.lookup,(t=e,_.get(t,"key")||_.get(t,"name"))))?e:undefined}function v(e,t){var n=m(e,f[t]);return new w(e.name,n,t)}function y(e,t){return t=t||_.get(e,"supportedSources",[d,c,l]),o(n(t,_.partial(v,e)),function(e){return me(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||_.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&me(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function w(e,t,n){this.name=e,this.value=t,this.source=n}function S(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(u(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[d]=function(){return{lookup:ge||window.pendo_options,name:d}},f[c]=function(){return{lookup:Y,name:c}},f[l]=function(){return{lookup:E,name:l}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get(e,t){return b(e,t).value},getLocalConfig(e,t){return arguments.length?b(e,t,[d]).value:ve(ge)},getHostedConfig(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig(e){ge=e},options:()=>u(h,"name"),sources:{SNIPPET_SRC:d,PENDO_CONFIG_SRC:c,GLOBAL_SRC:l,DEFAULT_SRC:p},validate(t){t.groupCollapsed("Validate Config options"),r(S(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}(),ye="prod",be="extension",we="native";function Se(){return f.get("installType")||pe().installType||we}function Ee(){return Se()===be}function Ie(e){var t;return e===ye?"pendo-io-static":"prod-jp"===e?"pendo-jp-prod-static":"pendo-"+((t=/^prod-(.+)$/.exec(e))&&1<t.length?t[1]:e)+"-static"}function _e(e){return/native/.test(e)}const Ce=e=>{e=_.get(window,e);return e&&_e(e)};var xe,Te=function(e,t){return e=e||10,(t=!isNaN(Ne)&&(!t||Ne<t))&&xe<e};function ke(e){return parseInt(e,10)}var Ae=function(e){return _.isString(e)?e.toLowerCase():e};function Re(){return(window.navigator||{}).userAgent}e=Re(),t=ke((/msie (\d+)/.exec(Ae(e))||[])[1]),xe=t=isNaN(t)?ke((/trident\/.*; rv:(\d+)/.exec(Ae(e))||[])[1]):t;var Oe,Ne=function(e,t){e=ke((/trident\/(\d+)/.exec(Ae(e))||[])[1]);return e=isNaN(e)&&7==t?3:e}(Re(),xe),Me={},Le=ke((/android (\d+)/.exec(Ae(Re()))||[])[1]),Pe=/Boxee/i.test(Re()),Fe=window.document||{},De=Fe.documentMode,Ue=/^(Moz|webkit|O|ms)(?=[A-Z])/,Ge=Fe.body&&Fe.body.style,W=!1,e=!1;if(Ge){for(var Be in Ge)if(Be=Ue.exec(Be)){Oe=(Oe=Be[0]).substr(0,1).toUpperCase()+Oe.substr(1);break}Oe=Oe||"WebkitOpacity"in Ge&&"webkit",W=!!("transition"in Ge||Oe+"Transition"in Ge),e=!!("animation"in Ge||Oe+"Animation"in Ge),!Le||W&&e||(W=_.isString(Fe.body.style.webkitTransition),e=_.isString(Fe.body.style.webkitAnimation))}var t=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id;var ze={supportsHistoryApi:_.memoize(function(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&_.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&_.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&_.get(n,"pushState.writable",!0)&&_.get(n,"replaceState.writable",!0);return!(!e||t||!n||!!(Le<4)||Pe||Ee())}),supportsHashChange:function(){return!(!("onhashchange"in window)||!(!De||7<De)||Ee())},hasEvent(e){var t;return("input"!=e||9!=xe)&&(_.isUndefined(Me[e])&&(t=Fe.createElement("div"),Me[e]="on"+e in t),Me[e])},vendorPrefix:Oe,transitions:W,animations:e,android:Le,msie:xe,msieDocumentMode:De,safari:/apple/i.test(navigator.vendor),sri:"integrity"in document.createElement("script"),addEventListener:_.isFunction(window.addEventListener),MutationObserver:_e(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:_.memoize(function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Re())}),isChromeExtension:t},je=function(){return!isNaN(xe)&&11!=xe&&"CSS1Compat"!==document.compatMode},He=function(e,t){var n,i=e.height,r=e.width;return"top"==e.arrowPosition||"bottom"==e.arrowPosition?(n=0,"top"==e.arrowPosition?(e.top=t.top+t.height,n=-1,e.arrow.top=3,xe<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+E.TOOLTIP_ARROW_SIZE),e.arrow.top=i-E.TOOLTIP_ARROW_SIZE,10==xe?e.arrow.top--:xe<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=10+E.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*E.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-E.TOOLTIP_ARROW_SIZE),e.arrow.border.top=e.arrow.top+n,e.arrow.border.left=e.arrow.left):("left"==e.arrow.hbias?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left-1):"right"==e.arrow.hbias&&(e.left=Math.max(0,t.left-r-E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left+1),e.top=t.top+t.height/2-i/2,e.arrow.top=i/2-E.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e},qe="",We="",Ve="",Je="",Ge="",Ke="2.292.0_",W="2.292.0",$e="xhr",Ze=function(){return je()?Ke+"+quirksmode":Ke};var Xe=/^\s+|\s+$/g;function Ye(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||57344<=i?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}var Qe=(Qe=String.prototype.trim)||function(){return this.replace(Xe,"")},e={exports:{}};!function(){var Y=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===Y?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&u(this)}function u(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(d[255&e]<<24|d[e>>>8&255]<<16|d[e>>>16&255]<<8|d[e>>>24&255])>>32-t:d[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=d[s],s=0,o===r.length)&&(r=u(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=d[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var d=t;function c(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&e instanceof Array?new Uint8Array(e):e,this.c=0,t&&(t.lazy&&(this.i=t.lazy),"number"==typeof t.compressionType&&(this.d=t.compressionType),t.outputBuffer&&(this.a=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.prototype.push=function(e,t){var n,i,r=this.buffer,o=this.length;for(r[this.length++]=t,r[this.length++]=e;0<o&&(n=this.getParent(o),r[o]>r[n]);)i=r[o],r[o]=r[n],r[n]=i,i=r[o+1],r[o+1]=r[n+1],r[n+1]=i,o=n;return this.length},c.prototype.pop=function(){var e,t,n,i=this.buffer,r=i[0],o=i[1];for(this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],n=0;!((t=2*n+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[n]);)e=i[n],i[n]=i[t],i[t]=e,e=i[n+1],i[n+1]=i[t+1],i[t+1]=e,n=t;return{index:o,value:r,length:this.length}};for(var ne=2,l={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,F,n=this.input;switch(this.d){case 0:for(t=0,F=n.length;t<F;){var D,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===F,o=Y,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),D=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&D,a[s++]=D>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,U=i.length;o<U;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var u,d=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(d.b(1,1,Q),d.b(1,2,Q),re(this,n)),l=0,G=c.length;l<G;l++)if(u=c[l],te.prototype.b.apply(d,ie[u]),256<u)d.b(c[++l],c[++l],Q),d.b(c[++l],5),d.b(c[++l],c[++l],Q);else if(256===u)break;this.a=d.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,z,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,x,T,k,q=h,W=f,A=new(ee?Uint32Array:Array)(q+W),R=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<q;N++)A[_++]=m[N];for(N=0;N<W;N++)A[_++]=v[N];if(!ee)for(N=0,x=O.length;N<x;++N)O[N]=0;for(N=T=0,x=A.length;N<x;N+=_){for(_=1;N+_<x&&A[N+_]===A[N];++_);if(C=_,0===A[N])if(C<3)for(;0<C--;)O[R[T++]=0]++;else for(;0<C;)(k=C-3<(k=C<138?C:138)&&k<C?C-3:k)<=10?(R[T++]=17,R[T++]=k-3,O[17]++):(R[T++]=18,R[T++]=k-11,O[18]++),C-=k;else if(R[T++]=A[N],O[A[N]]++,--C<3)for(;0<C--;)R[T++]=A[N],O[A[N]]++;else for(;0<C;)C-3<(k=C<6?C:6)&&k<C&&(k=C-3),R[T++]=16,R[T++]=k-3,O[16]++,C-=k}for(e=ee?R.subarray(0,T):R.slice(0,T),y=oe(O,7),S=0;S<19;S++)H[S]=y[j[S]];for(g=19;4<g&&0===H[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(H[S],3,Q);for(S=0,z=e.length;S<z;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],J=I[0],K=I[1],$=L[0],Z=L[1],P=0,X=p.length;P<X;++P)if(M=p[P],E.b(J[M],K[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b($[V],Z[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,u=w[e.length];switch(a[s++]=65535&u,a[s++]=u>>16&255,a[s++]=u>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(u=n,a[s++]=u[0],a[+s]=u[1],a[5]=u[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,c=null}var i,r,o,a,s,u,d,c,l,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===Y&&(p[s]=[]),u=p[s],!(0<g--)){for(;0<u.length&&32768<i-u[0];)u.shift();if(r<=i+3){for(c&&n(c,-1),o=0,a=r-i;o<a;++o)l=t[i+o],h[f++]=l,++m[l];break}0<u.length?(d=function(e,t,n){var i,r,o,a,s,u,d=0,c=e.length;a=0,u=n.length;e:for(;a<u;a++){if(i=n[u-a-1],(o=3)<d){for(s=d;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=d}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(d<o&&(r=i,d=o),258===o)break}return new b(d,t-r)}(t,i,u),c?c.length<d.length?(l=t[i-1],h[f++]=l,++m[l],n(d,0)):n(c,-1):d.length<y?c=d:n(d,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}u.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,u=new c(572),d=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)d[o]=0;for(o=0;o<s;++o)0<e[o]&&u.push(o,e[o]);if(n=Array(u.length/2),i=new(ee?Uint32Array:Array)(u.length/2),1===n.length)d[u.pop().index]=1;else{for(o=0,a=u.length/2;o<a;++o)n[o]=u.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,u=new(ee?Uint16Array:Array)(t),d=new(ee?Uint8Array:Array)(t),c=new(ee?Uint8Array:Array)(n),l=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(u[t-1]=n,r=0;r<t;++r)f<g?d[r]=0:(d[r]=1,f-=g),f<<=1,u[t-2-r]=(u[t-1-r]/2|0)+n;for(u[0]=d[0],l[0]=Array(u[0]),p[0]=Array(u[0]),r=1;r<t;++r)u[r]>2*u[r-1]+d[r]&&(u[r]=2*u[r-1]+d[r]),l[r]=Array(u[r]),p[r]=Array(u[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<u[t-1];++o)l[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===d[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<u[r];o++)(a=l[r+1][s]+l[r+1][s+1])>e[i]?(l[r][o]=a,p[r][o]=n,s+=2):(l[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===d[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--c[t],++h[e]}(r)}return c}(i,i.length,t),o=0,a=n.length;o<a;++o)d[n[o].index]=r[o]}return d}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,u=e.length;s<u;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,u=16;s<=u;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,u=e.length;s<u;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,S=l,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,u=a.length;s<u;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var d,c=1,l=0,p=o.length,h=0;0<p;){for(p-=d=1024<p?1024:p;l+=c+=o[h++],--d;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call(e.exports);var et={Deflate:p(e.exports).Zlib.Deflate},tt="base64url";function nt(e,t){t=t||tt;e=Ye("string"==typeof e?e:JSON.stringify(e)),e=new et.Deflate(e).compress();return t===tt?c.uint8ToBase64(e):e}t={exports:{}};!function(){var o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||void 0===t?r=r[n]||(r[n]={}):r[n]=t}var a={c:function(e,t,n){return a.update(e,0,t,n)},update:function(e,t,n,i){var r=a.a,o="number"==typeof n?n:n=0,i="number"==typeof i?i:e.length;for(t^=4294967295,o=7&i;o--;++n)t=t>>>8^r[255&(t^e[n])];for(o=i>>3;o--;n+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^r[255&(t^e[n])])>>>8^r[255&(t^e[n+1])])>>>8^r[255&(t^e[n+2])])>>>8^r[255&(t^e[n+3])])>>>8^r[255&(t^e[n+4])])>>>8^r[255&(t^e[n+5])])>>>8^r[255&(t^e[n+6])])>>>8^r[255&(t^e[n+7])];return(4294967295^t)>>>0},d:function(e,t){return(a.a[255&(e^t)]^e>>>8)>>>0},b:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]};a.a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?new Uint32Array(a.b):a.b,e("Zlib.CRC32",a),e("Zlib.CRC32.calc",a.c),e("Zlib.CRC32.update",a.update)}.call(t.exports);var it={CRC32:p(t.exports).Zlib.CRC32},rt=function(e,n){var i;return 200<=(n=n||0)?e:_.isArray(e)?_.map(e,function(e){return rt(e,n+1)}):!_.isObject(e)||_.isDate(e)||_.isRegExp(e)||_.isElement(e)?_.isString(e)?_.escape(e):e:(i={},_.each(e,function(e,t){i[t]=rt(e,n+1)}),i)},ot=function(e){e=Ye(e);return c.uint8ToBase64(e)},at=function(e){if(void 0!==e)return e=Ye(e=_.isString(e)?e:JSON.stringify(e)),it.CRC32.calc(e,0,e.length)};function st(e){return e[Math.floor(Math.random()*e.length)]}function ut(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=st(i);return n}var dt=function(e,t,n){return!(!me(e)||!me(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function v(){return(new Date).getTime()}function ct(){return"undefined"!=typeof $A&&_.isFunction($A.get)&&_.isString($A.get("$Browser.formFactor"))}function lt(e,t=window){var[e,t,n=window]=[_,e,t],i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}e=window;var pt=_.isFunction(e.isFinite)?e.isFinite:e.Number&&_.isFunction(e.Number.isFinite)?e.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function ht(e){return"number"==typeof e&&pt(e)&&Math.floor(e)===e}function ft(e,t,n,i){(t=t||{}).maxRetries=ht(t.maxRetries)?t.maxRetries:10,t.delay=ht(t.delay)?t.delay:50,t.exponentialBackoff=t.exponentialBackoff||!1;var r=function(e){return e&&"[object Function]"==={}.toString.call(e)},o=r(n)?n:function(){},a=r(i)?i:function(){},n=e();n?o(n):0<t.maxRetries?Ut(function(){t.maxRetries=--t.maxRetries,t.delay=t.exponentialBackoff?2*t.delay:t.delay,ft(e,t,o,a)},t.delay):(a||function(){})()}var gt=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function mt(e){return _.isObject(e)&&_.isFunction(e.then)}var vt,yt=_.isFunction(window.decodeURIComponent)?window.decodeURIComponent:_.identity,bt=_.isFunction(window.encodeURIComponent)?window.encodeURIComponent:_.identity;class wt{constructor(){this.listeners={}}addEventListener(e,t){let n=this.listeners[e];n||(n=[],this.listeners[e]=n),_.findIndex(n,e=>t===e)<0&&n.push(t)}removeEventListener(e,t){var n,i=this.listeners[e];i&&0<=(n=_.findIndex(i,e=>t===e))&&(i.splice(n,1),i.length||delete this.listeners[e])}dispatchEvent(t){var e=this.listeners[t.type];e&&_.each(e,e=>{e(t)})}}class St{constructor(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}toString(){let e=this.message;return this.error&&e!==this.error.message&&(e=e+":"+this.error.message),this.attributes&&(e+=": "+_.map(this.attributes,(e,t)=>t+"="+e)),e}hashCode(){return this.toString()}}(t=vt=vt||{}).Debug="debug",t.Info="info",t.Warn="warn",t.Error="error",t.Critical="critical";class Et extends wt{write(e,t,n){this.dispatchEvent(new St(t,e,n))}writeError(e,t,n){let i,r;_.isString(e)?(i=e,r={message:i}):(r=e,i=r.message),n&&n.error&&(r=n.error,delete n.error);e=new St(t,i,n);e.error=r,this.dispatchEvent(e)}debug(e,t){this.write(e,vt.Debug,t)}info(e,t){this.write(e,vt.Info,t)}warn(e,t){this.writeError(e,vt.Warn,t)}error(e,t){this.writeError(e,vt.Error,t)}critical(e,t){this.writeError(e,vt.Critical,t)}}const C=new Et;function It(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const _t=function(){var e=f.get("storage.allowKeys")||"*";return _.isArray(e)?_.indexBy(e):e};function Ct(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function xt(n){_.forEach(_.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function Tt(e){var t=_.noop,t={getItem:()=>null,setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:Ct(n,n.getItem,null),setItem:Ct(n,n.setItem),removeItem:Ct(n,n.removeItem),clearPendo:_.partial(xt,n)}:t}catch(i){return t}}var kt=Tt(function(){return window.localStorage}),At=Tt(function(){return window.sessionStorage});function Rt(e){try{return JSON.parse(e)}catch(t){return null}}var Ot,Nt={},Mt=!0,Lt=function(){return f.get("localStorageOnly")},Pt=function(){return!!f.get("disableCookies")};function Ft(e){Mt=e}var Dt=function(e){var t=Pt()||Lt()?Nt[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?yt(e[2]):null},Bt=function(e,t,n,i){var r,o;!Mt||f.get("preventCookieRefresh")&&Dt(e)===t||(o=Vt(n),(r=new Date).setTime(r.getTime()+o),o=e+"="+bt(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict",Ot&&(o+=";domain="+Ot),Pt()||Lt()?Nt[e]=o:document.cookie=o)};function zt(e){Ot?Bt(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var jt=function(e,t){return`_pendo_${e}.`+(t||E.apiKey)},Ht=function(e,t){return Dt(jt(e,t))};const qt=864e5,Wt=100*qt,Vt=(e=Wt)=>{var t=f.get("maxCookieTTLDays"),t=t<Infinity?t*qt:Infinity;return Math.min(e,t)};var Jt=function(e,t,n,i,r){n=n||Wt,Bt(jt(e,r),t,n,i)};class Kt{constructor(){this.keys={}}addLocal(e,t){this._add(e,"local",t)}addSession(e,t){this._add(e,"session",t)}hasLocal(e){return this._has(e,"local")}hasSession(e){return this._has(e,"session")}getKeyConfig(e,t,n){return me(n)?n:this.keys[e]?this.keys[e][t]:undefined}getKeySerializer(e){return this.keys[e]?this.keys[e].serializer:_.identity}getKeyDeserializer(e){return this.keys[e]?this.keys[e].deserializer:_.identity}_add(e,t,n={}){n=_.extend({type:t,duration:null,isPlain:!1,isSecure:!1,cookieSuffix:undefined,serializer:_.identity,deserializer:_.identity},n),this.keys[e]||(this.keys[e]=n)}_has(e,t){return!!this.keys[e]&&this.keys[e].type===t}}var $t,Zt,Xt,Yt,m,h=function(){const u=new Kt;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=_t())||n[t])return u[r](e)||C.warn(`storage key ${e} is not registered`),i.apply(this,arguments);C.debug(`writing storage key ${e} is not allowed`)}}function d(){return!Pt()&&!Ot&&c("localStorage")}var c=_.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}});function l(e){e.cache&&(e.cache={})}function o(e,t,n){t=u.getKeyConfig(e,"isPlain",t),n=u.getKeyConfig(e,"cookieSuffix",n);t=t?e:jt(e,n);if(d())return localStorage.removeItem(t);zt(t)}const t=_.extend({},At),n=(t.setItem=e(t.setItem,"hasSession"),_.extend({},kt));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){t=u.getKeyConfig(e,"isPlain",t),n=u.getKeyConfig(e,"cookieSuffix",n);let i;var r;return d()?(r=t?e:jt(e,n),null===(i=function(e){if(null===e)return null;try{var t=JSON.parse(e);return t.ttl?t.ttl<(new Date).getTime()?null:String(t.value||t):e}catch(n){return e}}(localStorage.getItem(r)))&&o(e,t,n)):i=t?Dt(e):Ht(e,n),u.getKeyDeserializer(e)(i)},write:e(function(e,t,n,i,r,o){if(n=u.getKeyConfig(e,"duration",n),i=u.getKeyConfig(e,"isPlain",i),r=u.getKeyConfig(e,"isSecure",r),o=u.getKeyConfig(e,"cookieSuffix",o),t=u.getKeySerializer(e)(t),l(c),d())try{var a=i?e:jt(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+Vt(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void l(c)}catch(s){}if(!i)return Jt(e,t,n,r,o);Bt(e,t,n,r)},"hasLocal"),clear:o,registry:u,getLocal:()=>n,getSession:()=>t}}(),Qt=(window.Promise,e=function(){var t=Ut;function d(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void u(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!d(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function u(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){u(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)u(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!d(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a},"function"==typeof(t=window.Promise)&&/native/.test(t)?t:e()),t=(Zt=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},Xt=function(n,i){var r=$t.defer(),o=function(n,i){Ut(function(){var e;try{e=n(i)}catch(t){return void r.reject(t)}e===r.promise?r.reject(new TypeError("Cannot resolve promise with itself")):r.resolve(e)},1)};return{promise:r.promise,handle:function(e,t){e===Yt?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},Yt=1,($t={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,_.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(Yt,e)},a=function(e){t(2,e)},s=function(e,t){e=Xt(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},u=function(e){var t=Zt();try{e(t(d),t(a))}catch(n){t(a)(n)}},d=function(e){var t;try{t=function(e){var t=e&&e.then;if("object"==typeof e&&"function"==typeof t)return function(){return t.apply(e,arguments)}}(e)}catch(n){return void a(n)}t?u(t):o(e)},e=Zt();return{resolve:e(d),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},$t);function en(e){var n,i=m.defer(),r=_.isArray(e)?[]:{},o=_.size(e);return o?(n=!1,_.each(e,function(e,t){m.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):m.resolve(e)}!Ee()&&ze.isMinimumIEVersion(11)?m={all:function(e){return _.isArray(e)?Qt.all.apply(Qt,arguments):en(e)},reject:function(){return Qt.reject.apply(Qt,arguments)},resolve:function(){return Qt.resolve.apply(Qt,arguments)},defer:function(){var n={};return n.promise=new Qt(function(e,t){n.resolve=e,n.reject=t}),n}}:((m=t).all=en,m.reject=function(e){var t=m.defer();return t.reject(e),t.promise},m.resolve=function(e){var t=m.defer();return t.resolve(e),t.promise});const tn=h.getSession(),nn="pendo_tabId",rn="pendo_parentTabId";on=window,e=_.partial,an=_.extend,sn=_.omit,un={data:{},getItem(e){return un.data[e]},setItem(e,t){un.data[e]=t},removeItem(e){un.data[e]=null,delete un.data[e]}},dn=e(fn,nn,gn),cn=e(fn,"pendo_frameId",un);var on,an,sn,un,dn,cn,ln={addTracerIds(e){return sn(an(e,{parentTabId:pn(rn,gn),tabId:dn(),frameId:cn()}),function(e){return e===undefined})},setParentTabId:function(e){hn(rn,e,gn)},newTabId:function(){var e=ut(16);return hn(nn,e,gn),e},getTabId:dn,getFrameId:cn,tabIdChanged:function(t){var e;if(ze.addEventListener)return on.addEventListener("storage",e=function(e){e.key===nn&&(un.removeItem(nn),t())}),function(){on.removeEventListener("storage",e)}}};function pn(e,t){return(_.isFunction(t)?t():t).getItem(e)}function hn(e,t,n){(_.isFunction(n)?n():n).setItem(e,t)}function fn(e,t){var n=pn(e,t);return n||hn(e,n=ut(16),t),n}function gn(){return n=un,i=tn,{getItem(e){var t=n.getItem(e);return t===undefined&&(t=i.getItem(e),n.setItem(e,t)),t},setItem(e,t){n.setItem(e,t),i.setItem(e,t)},removeItem(e){n.removeItem(e),i.removeItem(e)}};var n,i}function mn(){var i=this._handlers={};return this.addEventListener=function(){this.on.apply(this,arguments)},this.removeEventListener=function(){this.off.apply(this,arguments)},this.on=function(e,t){var n;return(_.isString(e)||_.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),_.indexOf(n,t)<0)&&n.push(t),this},this.one=function(e,t){var n=this,i=function(){n.off(e,i),t.apply(this,arguments)};return this.on(e,i)},this.once=this.one,this.off=function(e,t){var n,e=i[e];return _.isFunction(t)?(n=_.indexOf(e,t),e&&0<=n&&e.splice(n,1)):e&&t===undefined&&(e.length=0),this},this.trigger=function(e){var t=i[e]?i[e].slice():[],n=_.toArray(arguments).slice(1);return _.map(t,function(e){return e.apply(E,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return _.map(e,function(e){if(!t.cancel)return e.apply(E,[t])})},this.triggerAsync=function(){var e=_.map(this.trigger.apply(this,arguments),function(e){return!1===e?m.reject():e});return m.all(e)},this}mn.clear=function(t){t&&_.each(_.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};Ri={DEBUG:t="debug",FRAMES:e="frames",LIFECYCLE:i="lifecycle",RUNTIME:Di="runtime"},vn=[new n("ready",[t,i]),new n("deliverablesLoaded",[t,i]),new n("guidesFailed",[t,i]),new n("guidesLoaded",[t,i]),new n("guideListChanged",[t,i]),new n("guideSeen",[t,i]),new n("guideNotSeen",[t,i]),new n("guideAdvanced",[t,i]),new n("guideDismissed",[t,i]),new n("guideSnoozed",[t,i]),new n("beforeGuideShow",[i]),new n("beforeMount",[Di]),new n("beforeAdvance",[Di]),new n("beforePrevious",[Di]),new n("beforeSnooze",[Di]),new n("beforeDismiss",[Di]),new n("beforeUnmount",[Di]),new n("unmounted",[Di]),new n("beforeUpdate",[Di]),new n("updated",[Di]),new n("guideSnoozeCancelled",[t,i]),new n("guideTimeout",[t,i]),new n("guideLoopStopped",[t,i]),new n("guideUpdateComplete",[i]),new n("designerLaunched",[t,i]),new n("debuggerLaunched",[t,i]),new n("stepEligibility",[t]),new n("identify",[t,i]),new n("metadata",[t,i]),new n("appUnloaded",[t,i]),new n("appHidden",[t,i]),new n("startPreview",[t]),new n("resourceFetchFail",[t]),new n("contentVerificationFail",[t]),new n("contentValidationFail",[t]),new n("renderFail",[t]),new n("appUsage",[i]),new n("eventCaptured",[t]),new n("error",[t,i]),new n("onClickCaptured",[t]),new n("urlChanged",[i]),new n("leaderChanged",[i,e]),new n("transmit:locked",[i]),new n("transmit:unlocked",[i]),new n("sessionChanged",[i]),new n("ptm:unpaused",[i]),new n("ptm:paused",[i]),new n("childFrameJoined",[e]),new n("tabIdChanged:self",[t,i])],yn=mn.call({}),bn={debug(){return ln.addTracerIds(Sn.apply(null,arguments))},lifecycle:Sn,runtime:Sn,frames:Sn},wn=yn.trigger,yn.trigger=En,_.each(_.values(Ri),function(e){yn[e]={on:_.partial(yn.on,e),one:_.partial(yn.one,e),off:_.partial(yn.off,e)}}),_.each(vn,function(e){e=e.name,yn[e]={on:_.partial(yn.on,e),one:_.partial(yn.one,e),off:_.partial(yn.off,e),trigger:_.partial(En,e)}});var vn,yn,bn,wn,y=yn;function n(e,t){this.name=e,this.groups=t||[]}function Sn(e,t){e={type:e,ts:v()};return me(t)&&_.isObject(t)&&(e.data=t),e}function En(t){var e=_.findWhere(vn,{name:t}),n=_.toArray(arguments).slice(1),i={};return _.each(e.groups,function(e){i.cancel||(i=bn[e](t,n),wn.apply(yn,[e].concat(i)))}),i.cancel||(i=Sn(t,n),wn.apply(yn,[t].concat(i))),i}function In(e){var i=[],r=[],o={},a={},s={state:{},commit:function(t,n){var e=o[t];if(!e)throw new Error("mutation "+t+" not found");e(n),_.each(i,function(e){e({type:t,payload:n},s.state)})},dispatch:function(t,n){var e=a[t];if(e)return e=e(n),_.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:_.partial(t,i),subscribeAction:_.partial(t,r),registerModule:function h(n,e){_.isString(n)&&(n=[n]);var t=d(s.state,e,n);_.extend(s.getters,p(e,t,s,n));_.extend(o,c(e,t,n));_.extend(a,l(e,t,s,n));_.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return _.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):_.noop;var n,i}function u(e,t){return(e=t?e.concat([t]):e).join("/")}function d(e,t,n){var i=e;return _.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),_.extend(i,ve(t.state||{}))}function c(e,n,i){var r={};return _.each(e.mutations,function(e,t){r[u(i,t)]=_.partial(e,n)}),r}function l(e,t,i,r){var n={},o={state:t,rootState:i.state,commit:function(e,t,n){n=n&&n.root?e:u(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:u(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=u(t);i&&(i+="/");return _.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return _.each(e.actions,function(e,t){n[u(r,t)]=_.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return _.each(e.getters,function(e,t){a[t]=o[u(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var g=In(),_n=(g.subscribe(function(e,t){}),"_PENDO_T_"),Cn=11;const xn="visitorId",Tn="oldVisitorId",kn="accountId";var An=function(e=""){return e+ut(Cn)};var Rn=function(e){return me(e)&&""!==e&&e!==Fn&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===Qe.call(e).length)},On=function(e){return!(!e||"number"==typeof e)&&e.substring(0,_n.length)===_n},Nn=function(){return!f.get("disablePersistence")},Mn=function(e){e=e||[xn,kn,Tn];const t=f.get("identityStorageSuffix")||E.apiKey;_.each(e,function(e){zt(jt(e,t)),h.clear(e,!1,t)})},Ln="VISITOR-UNIQUE-ID",Pn=function(e){return Ln===e},Fn="::",Dn=function(e){return new RegExp(Fn).test(e)};function Un(e){return e.old_visitor_id!==e.visitor_id}var Gn,Bn=function(e,t){var n,i={old_visitor_id:b(),old_account_id:qn()};Rn(e)?(Rn(n=e)?jn(""+n):C.info("Invalid visitor id "+n),n=t,_.isUndefined(n)?C.info("No account id provided"):Rn(n)?(E.accountId=""+n,Nn()&&Wn(kn,E.accountId)):(delete E.accountId,delete(t=f.getLocalConfig()).account,f.setLocalConfig(t),g.commit("metadata/clearAccount"),Nn()&&h.clear(kn),C.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=b({generate:!0}),i.account_id=qn(),!Un(t=i)&&t.old_account_id===t.account_id||(Un(i)&&(n=i.old_visitor_id)&&(Gn=n,Wn(Tn,Gn)),y.identify.trigger(i))):C.info("Invalid visitor id "+e)};function zn(){return An(_n)}function jn(e){E.visitorId!==e&&(Nn()&&Wn(xn,e),E.visitorId=e)}function b(e={}){var t=function(){if(Rn(E.visitorId))return E.visitorId;var e=f.get("forceAnonymous");if(Nn()){var t=Vn(xn);if(Rn(t)&&(!e||On(t)))return t}return undefined}();return jn(t=!t&&e.generate?zn():t),t}function Hn(){return b()||zn()}var qn=function(){var e=f.get("forceAnonymous");return Rn(E.accountId)||!Nn()||e||(e=Vn(kn),E.accountId=e),E.accountId};function Wn(e,t){var n=f.get("identityStorageLifetime")||Wt,i=f.get("identityStorageSuffix")||E.apiKey;h.write(e,t,n,!1,!0,i)}function Vn(e){var t=f.get("identityStorageSuffix"),n=t||E.apiKey,n=h.read(e,!1,n)||h.read(e,!1,E.apiKey);return t&&h.clear(e,!1,E.apiKey),n}function Jn(){var e={old_visitor_id:b({generate:!1}),old_account_id:qn(),wasCleared:!0};Mn(),delete E.visitorId,delete E.accountId,b({generate:!0}),_.extend(e,{visitor_id:b(),account_id:qn()}),y.identify.trigger(e)}function Kn(e){e=e.data[0];return _.get(e,"wasCleared")}var $n=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||C.critical(e)}}};Di=function(n){return function Zn(e){var t=n.createElement("a");if(t.href=e,":"===t.protocol)throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");if(t.href!==e&&t.href!==encodeURI(e))throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return t.toString||(t.toString=function(){return t.href}),null==t.origin&&(t.origin=t.protocol+"//"+t.hostname,"80"!==t.port)&&"443"!==t.port&&(t.origin+=":"+t.port),t}};var Zn="function"==typeof(e=window.URL)&&/native/.test(e)?e:Di(document);function Xn(e){if((t=e)&&_.isFunction(t.composedPath))try{return e.composedPath()}catch(n){return e.path}var t;return null}function Yn(e){return e.shadowRoot}function Qn(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function ei(e,t){return Qn(e,t)?e.host:e.parentNode}var ti={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:Xn,getShadowRoot:Yn,isElementShadowRoot:Qn,getParent:ei,isShadowSelector:ni,wrapSizzle(i,d){i.intercept(function(a,t,n,i,r){var e,o;if(ni(t))return _.isFunction(document.documentElement.attachShadow)?(o=a,e=(e=t).replace(ti.PSEUDO_REGEX,ti.PSEUDO_SAFE),e=_.map(o.tokenize(e),ii),_.reduce(e,function(e,t){return e.concat(s(t,n,i,r))},[])):a(t.replace(ti.PSEUDO_REGEX,""),n,i,r);{const u=a(t,n,i,r);return 0<d.cache.size&&d.cache.forEach(e=>{n&&n!==document&&!function(e,t,n){let i=t;for(;i;){if(i===e)return 1;i=ei(i,n)}}(n,e)||u.push(...a(t,e,i,r))}),u}function s(e,t,n,i){var r,o;return ni(e)?(o=s((r={baseCss:(o=(o=e).split(ti.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(ti.PSEUDO_ELEMENT)}).baseCss,t),_.reduce(o,function(e,t){return ti.getShadowRoot(t)?e.concat(s(r.shadowCss,ti.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!ti.isElementShadowRoot(t)&&(ni(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function ni(e){return!!e&&-1<e.indexOf(ti.PSEUDO_ELEMENT)}function ii(e){return _.reduce(e,function(e,t){return t.value===ti.PSEUDO_SAFE?e+ti.PSEUDO_ELEMENT:e+t.value},"")}var ri,w,S,oi,ai,si,ui,di,ci,li,pi,hi,I,fi,gi,mi,vi,yi,bi,t={exports:{}},i=t,wi=window,x="sizzle"+ +new Date,Si=wi.document,Ei=0,Ii=0,_i=or(),Ci=or(),xi=or(),Ti=or(),ki=function(e,t){return e===t&&(pi=!0),0},Ai={}.hasOwnProperty,Ri=[],Oi=Ri.pop,Ni=Ri.push,Mi=Ri.push,Li=Ri.slice,Pi=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},Fi="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",e="(?:\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Di="\\["+r+"*("+e+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+e+"))|)"+r+"*\\]",Ui=":("+e+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Di+")*)|.*)\\)|)",Gi=new RegExp(r+"+","g"),Bi=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),zi=new RegExp("^"+r+"*,"+r+"*"),ji=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),Hi=new RegExp(r+"|>"),qi=new RegExp(Ui),Wi=new RegExp("^"+e+"$"),Vi={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+Di),PSEUDO:new RegExp("^"+Ui),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+Fi+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},Ji=/HTML$/i,Ki=/^(?:input|select|textarea|button)$/i,$i=/^h\d$/i,Zi=/^[^{]+\{\s*\[native \w/,Xi=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Yi=/[+~]/,Qi=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),er=function(e,t){e="0x"+e.slice(1)-65536;return t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))},tr=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,nr=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ir=function(){hi()},rr=gr(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Mi.apply(Ri=Li.call(Si.childNodes),Si.childNodes),Ri[Si.childNodes.length].nodeType}catch(aS){Mi={apply:Ri.length?function(e,t){Ni.apply(e,Li.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function T(e,t,n,i){var r,o,a,s,u,d,c=t&&t.ownerDocument,l=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==l&&9!==l&&11!==l)return n;if(!i&&(hi(t),t=t||I,gi)){if(11!==l&&(s=Xi.exec(e)))if(r=s[1]){if(9===l){if(!(d=t.getElementById(r)))return n;if(d.id===r)return n.push(d),n}else if(c&&(d=c.getElementById(r))&&bi(t,d)&&d.id===r)return n.push(d),n}else{if(s[2])return Mi.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&w.getElementsByClassName&&t.getElementsByClassName)return Mi.apply(n,t.getElementsByClassName(r)),n}if(w.qsa&&!Ti[e+" "]&&(!mi||!mi.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(d=e,c=t,1===l&&(Hi.test(e)||ji.test(e))){for((c=Yi.test(e)&&pr(t.parentNode)||t)===t&&w.scope||((a=t.getAttribute("id"))?a=a.replace(tr,nr):t.setAttribute("id",a=x)),o=(u=si(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+fr(u[o]);d=u.join(",")}try{return Mi.apply(n,c.querySelectorAll(d)),n}catch(p){Ti(e,!0)}finally{a===x&&t.removeAttribute("id")}}}return di(e.replace(Bi,"$1"),t,n,i)}function or(){var n=[];function i(e,t){return n.push(e+" ")>S.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function ar(e){return e[x]=!0,e}function sr(e){var t=I.createElement("fieldset");try{return!!e(t)}catch(aS){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ur(e,t){for(var n=e.split("|"),i=n.length;i--;)S.attrHandle[n[i]]=t}function dr(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function cr(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&rr(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function lr(a){return ar(function(o){return o=+o,ar(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function pr(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ri in w=T.support={},ai=T.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!Ji.test(t||e&&e.nodeName||"HTML")},hi=T.setDocument=function(e){var e=e?e.ownerDocument||e:Si;return e!=I&&9===e.nodeType&&e.documentElement&&(fi=(I=e).documentElement,gi=!ai(I),Si!=I&&(e=I.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",ir,!1):e.attachEvent&&e.attachEvent("onunload",ir)),w.scope=sr(function(e){return fi.appendChild(e).appendChild(I.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),w.attributes=sr(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=sr(function(e){return e.appendChild(I.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=!!I.getElementsByClassName,w.getById=sr(function(e){return fi.appendChild(e).id=x,!I.getElementsByName||!I.getElementsByName(x).length}),w.getById?(S.filter.ID=function(e){var t=e.replace(Qi,er);return function(e){return e.getAttribute("id")===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&gi)return(e=t.getElementById(e))?[e]:[]}):(S.filter.ID=function(e){var t=e.replace(Qi,er);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&gi){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),S.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},S.find.CLASS=w.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&gi?t.getElementsByClassName(e):w.qsa&&gi?t.querySelectorAll("."+e):void 0},vi=[],mi=[],(w.qsa=!!I.querySelectorAll)&&(sr(function(e){var t;fi.appendChild(e).innerHTML=Z().createHTML("<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&mi.push("[*^$]="+r+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||mi.push("\\["+r+"*(?:value|"+Fi+")"),e.querySelectorAll("[id~="+x+"-]").length||mi.push("~="),(t=I.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||mi.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||mi.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||mi.push(".#.+[+~]"),e.querySelectorAll("\\\f"),mi.push("[\\r\\n\\f]")}),sr(function(e){e.innerHTML=Z().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=I.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&mi.push("name"+r+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&mi.push(":enabled",":disabled"),fi.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&mi.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),mi.push(",.*:")})),(w.matchesSelector=Zi.test(yi=fi.matches||fi.webkitMatchesSelector||fi.mozMatchesSelector||fi.oMatchesSelector||fi.msMatchesSelector))&&sr(function(e){w.disconnectedMatch=yi.call(e,"*"),yi.call(e,"[s!='']:x"),vi.push("!=",Ui)}),mi=mi.length&&new RegExp(mi.join("|")),vi=vi.length&&new RegExp(vi.join("|")),e=!!fi.compareDocumentPosition,bi=e||fi.contains?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},ki=e?function(e,t){var n;return e===t?(pi=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!w.sortDetached&&t.compareDocumentPosition(e)===n?e==I||e.ownerDocument==Si&&bi(Si,e)?-1:t==I||t.ownerDocument==Si&&bi(Si,t)?1:li?Pi(li,e)-Pi(li,t):0:4&n?-1:1)}:function(e,t){if(e===t)return pi=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==I?-1:t==I?1:r?-1:o?1:li?Pi(li,e)-Pi(li,t):0;if(r===o)return dr(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?dr(a[i],s[i]):a[i]==Si?-1:s[i]==Si?1:0}),I},T.matches=function(e,t){return T(e,null,null,t)},T.matchesSelector=function(e,t){if(hi(e),w.matchesSelector&&gi&&!Ti[t+" "]&&(!vi||!vi.test(t))&&(!mi||!mi.test(t)))try{var n=yi.call(e,t);if(n||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(aS){Ti(t,!0)}return 0<T(t,I,null,[e]).length},T.contains=function(e,t){return(e.ownerDocument||e)!=I&&hi(e),bi(e,t)},T.attr=function(e,t){(e.ownerDocument||e)!=I&&hi(e);var n=S.attrHandle[t.toLowerCase()],n=n&&Ai.call(S.attrHandle,t.toLowerCase())?n(e,t,!gi):undefined;return n!==undefined?n:w.attributes||!gi?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},T.escape=function(e){return(e+"").replace(tr,nr)},T.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,n=[],i=0,r=0;if(pi=!w.detectDuplicates,li=!w.sortStable&&e.slice(0),e.sort(ki),pi){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return li=null,e},oi=T.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=oi(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=oi(t);return n},(S=T.selectors={cacheLength:50,createPseudo:ar,match:Vi,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Qi,er),e[3]=(e[3]||e[4]||e[5]||"").replace(Qi,er),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||T.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&T.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Vi.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&qi.test(n)&&(t=(t=si(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Qi,er).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=_i[e+" "];return t||(t=new RegExp("(^|"+r+")"+e+"("+r+"|$)"))&&_i(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=T.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e.replace(Gi," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,e,t,g,m){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,u,d=v!=y?"nextSibling":"previousSibling",c=e.parentNode,l=b&&e.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(v){for(;d;){for(a=e;a=a[d];)if(b?a.nodeName.toLowerCase()===l:1===a.nodeType)return!1;u=d="only"===f&&!u&&"nextSibling"}return!0}if(u=[y?c.firstChild:c.lastChild],y&&p){for(h=(s=(i=(r=(o=(a=c)[x]||(a[x]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Ei&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[d]||(h=s=0,u.pop());)if(1===a.nodeType&&++h&&a===e){r[f]=[Ei,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[x]||(a[x]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Ei&&i[1]:h))for(;(a=++s&&a&&a[d]||(h=s=0,u.pop()))&&((b?a.nodeName.toLowerCase()!==l:1!==a.nodeType)||!++h||(p&&((r=(o=a[x]||(a[x]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[Ei,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=S.pseudos[e]||S.setFilters[e.toLowerCase()]||T.error("unsupported pseudo: "+e);return a[x]?a(o):1<a.length?(t=[e,e,"",o],S.setFilters.hasOwnProperty(e.toLowerCase())?ar(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=Pi(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:ar(function(e){var i=[],r=[],s=ui(e.replace(Bi,"$1"));return s[x]?ar(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),i[0]=null,!r.pop()}}),has:ar(function(t){return function(e){return 0<T(t,e).length}}),contains:ar(function(t){return t=t.replace(Qi,er),function(e){return-1<(e.textContent||oi(e)).indexOf(t)}}),lang:ar(function(n){return Wi.test(n||"")||T.error("unsupported lang: "+n),n=n.replace(Qi,er).toLowerCase(),function(e){var t;do{if(t=gi?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=wi.location&&wi.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===fi},focus:function(e){return e===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:cr(!1),disabled:cr(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!S.pseudos.empty(e)},header:function(e){return $i.test(e.nodeName)},input:function(e){return Ki.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:lr(function(){return[0]}),last:lr(function(e,t){return[t-1]}),eq:lr(function(e,t,n){return[n<0?n+t:n]}),even:lr(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:lr(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:lr(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:lr(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=S.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.pseudos[ri]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ri);for(ri in{submit:!0,reset:!0})S.pseudos[ri]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ri);function hr(){}function fr(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function gr(a,e,t){var s=e.dir,u=e.next,d=u||s,c=t&&"parentNode"===d,l=Ii++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var i,r,o=[Ei,l];if(n){for(;e=e[s];)if((1===e.nodeType||c)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||c)if(r=(r=e[x]||(e[x]={}))[e.uniqueID]||(r[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[d])&&i[0]===Ei&&i[1]===l)return o[2]=i[2];if((r[d]=o)[2]=a(e,t,n))return!0}return!1}}function mr(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function vr(e,t,n,i,r){for(var o,a=[],s=0,u=e.length,d=null!=t;s<u;s++)!(o=e[s])||n&&!n(o,i,r)||(a.push(o),d&&t.push(s));return a}function yr(h,f,g,m,v,e){return m&&!m[x]&&(m=yr(m)),v&&!v[x]&&(v=yr(v,e)),ar(function(e,t,n,i){var r,o,a,s=[],u=[],d=t.length,c=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)T(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),l=!h||!e&&f?c:vr(c,s,h,n,i),p=g?v||(e?h:d||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=vr(p,u),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[u[o]]=!(l[u[o]]=a));if(e){if(v||h){if(v){for(r=[],o=p.length;o--;)(a=p[o])&&r.push(l[o]=a);v(null,p=[],r,i)}for(o=p.length;o--;)(a=p[o])&&-1<(r=v?Pi(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=vr(p===t?p.splice(d,p.length):p),v?v(null,t,p,i):Mi.apply(t,p)})}hr.prototype=S.filters=S.pseudos,S.setFilters=new hr,si=T.tokenize=function(e,t){var n,i,r,o,a,s,u,d=Ci[e+" "];if(d)return t?0:d.slice(0);for(a=e,s=[],u=S.preFilter;a;){for(o in n&&!(i=zi.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=ji.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Bi," ")}),a=a.slice(n.length)),S.filter)S.filter.hasOwnProperty(o)&&(i=Vi[o].exec(a))&&(!u[o]||(i=u[o](i)))&&(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?T.error(e):Ci(e,s).slice(0)},ui=T.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=xi[e+" "];if(!a){for(n=(t=t||si(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=S.relative[e[0].type],a=o||S.relative[" "],s=o?1:0,u=gr(function(e){return e===i},a,!0),d=gr(function(e){return-1<Pi(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==ci)||((i=t).nodeType?u:d)(e,t,n),i=null,e}];s<r;s++)if(t=S.relative[e[s].type])c=[gr(mr(c),t)];else{if((t=S.filter[e[s].type].apply(null,e[s].matches))[x]){for(n=++s;n<r&&!S.relative[e[n].type];n++);return yr(1<s&&mr(c),1<s&&fr(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Bi,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&fr(e))}c.push(t)}return mr(c)}(t[n]))[x]?r:o).push(a);(a=xi(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,u=0,d="0",c=e&&[],l=[],p=ci,h=e||b&&S.find.TAG("*",r),f=Ei+=null==p?1:Math.random()||.1,g=h.length;for(r&&(ci=t==I||t||r);d!==g&&null!=(o=h[d]);d++){if(b&&o){for(a=0,t||o.ownerDocument==I||(hi(o),n=!gi);s=m[a++];)if(s(o,t||I,n)){i.push(o);break}r&&(Ei=f)}y&&((o=!s&&o)&&u--,e)&&c.push(o)}if(u+=d,y&&d!==u){for(a=0;s=v[a++];)s(c,l,t,n);if(e){if(0<u)for(;d--;)c[d]||l[d]||(l[d]=Oi.call(i));l=vr(l)}Mi.apply(i,l),r&&!e&&0<l.length&&1<u+v.length&&T.uniqueSort(i)}return r&&(Ei=f,ci=p),c},y?ar(i):i))).selector=e}return a},di=T.select=function(e,t,n,i){var r,o,a,s,u,d="function"==typeof e&&e,c=!i&&si(e=d.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&gi&&S.relative[o[1].type]){if(!(t=(S.find.ID(a.matches[0].replace(Qi,er),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Vi.needsContext.test(e)?0:o.length;r--&&(a=o[r],!S.relative[s=a.type]);)if((u=S.find[s])&&(i=u(a.matches[0].replace(Qi,er),Yi.test(o[0].type)&&pr(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&fr(o))break;return Mi.apply(n,i),n}}return(d||ui(e,c))(i,t,!gi,n,!t||Yi.test(e)&&pr(t.parentNode)||t),n},w.sortStable=x.split("").sort(ki).join("")===x,w.detectDuplicates=!!pi,hi(),w.sortDetached=sr(function(e){return 1&e.compareDocumentPosition(I.createElement("fieldset"))}),sr(function(e){return e.innerHTML=Z().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||ur("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&sr(function(e){return e.innerHTML=Z().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ur("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),sr(function(e){return null==e.getAttribute("disabled")})||ur(Fi,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var br=wi.Sizzle;T.noConflict=function(){return wi.Sizzle===T&&(wi.Sizzle=br),T},i.exports?i.exports=T:wi.Sizzle=T;wr=p(t.exports),(Sr=_.extend(function(){return Sr.Sizzle.apply(this,arguments)},wr)).reset=function(){Sr.Sizzle=wr,Sr.matchesSelector=wr.matchesSelector,Sr.matches=wr.matches},Sr.intercept=function(e,t="Sizzle"){Sr[t]=_.wrap(Sr[t],e)},Sr.reset();var wr,Sr,u=Sr;function k(e,t){var n,i=this;if(e&&e instanceof k)return e;if(!(i instanceof k))return new k(e,t);if(e)if(e.nodeType)n=[e];else if(r=/^<(\w+)\/?>$/.exec(e))n=[document.createElement(r[1])];else if(/^<[\w\W]+>$/.test(e)){var r=document.createElement("div");r.innerHTML=e,n=_.toArray(r.childNodes)}else if(_.isString(e)){t instanceof k&&(t=0<t.length?t[0]:null);try{n=u(e,t)}catch(o){n=[]}}else n=[e];else n=[];return _.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,"undefined"!=typeof Symbol&&Symbol.iterator&&(i[Symbol.iterator]=function*(){for(const e of n)yield e}),i}function Er(){this.ownerKey="_pendo_"+ut(8)}_.extend(Er.prototype,{cache(e){var t;return _.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set(e,t,n){e=this.cache(e);return e[t]=n,e},get(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!_.isEmpty(n)||(e[this.ownerKey]=undefined)}});var Ir=new Er,_r=1;function Cr(e){return _.isNumber(e.eventPhase)&&e.eventPhase===_r}function xr(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?lt("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{Tr(e,t,n,i)}):_.noop}function Tr(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?lt("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var kr=function(e){var t=ti.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},Ar={add(t,e){var n=Ir.get(t),i=(n.handle||(n.handle=function(e){Ar.dispatch(t,e)}),e.id=_.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||xr(t,e.type,n.handle,e.capture),i.push(e),()=>{k.event.remove(t,e.type,e.handler,e.capture)}},dispatch(r,o){var e,t,a;r&&(e=(Ir.get(r,"captureEvents")||{})[o.type]||[],t=(Ir.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=Ir.get(o)).ignore&&(a.handled=a.handled||{},_.each(t.slice(),function(e){var t=!!e.capture===Cr(o),n=(n=o,_.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(kr(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!me(e.selector)||0<k(kr(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){C.error(i)}}}))},remove(e,t,n,i){var r=Ir.get(e);if(r){if(_.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=_.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],Tr(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],Tr(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],Tr(e,t,r.handle));_.isEmpty(r.captureEvents)&&_.isEmpty(r.bubbleEvents)&&(Ir.remove(e,"captureEvents"),Ir.remove(e,"bubbleEvents"),Ir.remove(e,"handle"))}},trigger(e){var t=Ir.get(e);if(!t.pendoStopped)if(e.bubbles){var n=kr(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=ti.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),Cr(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)Ar.dispatch(o[i],e);(e=Ar.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(Ar.dispatch(n,e),(e=Ar.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)Ar.dispatch(o[i],e)}}else Ar.dispatch(kr(e),e)},clone(e){var t=_.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",Ir.ownerKey]),e=ti.getComposedPath(e);return e&&(t.composedPath=_.constant(e)),t},$:{on(e,n,i,r){return _.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){_.each(e,function(e){Ar.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},Rr=_.extend(Nr,{get:function(e,t){return Nr({method:"GET",url:e,headers:t})},post:Mr,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",Mr(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(_.isArray(t))i=t;else{if(!_.isObject(t))return e||"";i=_.keys(t)}var i=_.map(i,function(e){return _.isArray(t)?bt(e):bt(e)+"="+bt(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=_.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported(){return void 0!==Or()}});function Or(){return window.XMLHttpRequest||ActiveXObject}function Nr(e){var t=m.defer(),n=new(Or())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),_.each(e.headers,function(e,t){n.setRequestHeader(t.toLowerCase(),e)}),n.onreadystatechange=function(){var e;4===n.readyState&&(e=function(e){var t={status:e.status};try{t.data=JSON.parse(e.responseText)}catch(n){t.data=e.responseText}return t}(n),200<=n.status&&n.status<300?t.resolve(e):t.reject(e))},e.withCredentials&&(n.withCredentials=!0),e.data?n.send(e.data):n.send(),t.promise}function Mr(e,t,n){return Nr({method:"POST",url:e,data:t,headers:n})}var Lr,Pr=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},Fr=function(){return f.get("annotateUrl")||zr()||f.get("sanitizeUrl")||f.get($r)||f.get("xhrWhitelist")},Dr=function(){return zr()?{href:Br(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Ur=function(){return new Zn(window.location.href)},Gr=function(){var e,t,n,i;return Fr()?(e=Ur(),zr()&&(e.href=Br(e.href)),Pr()?(t=A.electronResourcesPath(),n=A.electronUserDirectory(),i=A.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(A.electronUserHomeDirectory(),"").replace("file:///","")):Xr(e.href)):g.getters["location/href"]()},Br=function(e){return e.match(/(.+?)(?:#|$)/)[1]},zr=function(){return!0===f.get("ignoreHashRouting")},jr=500;function Hr(){return _.isUndefined(Lr)&&function e(){Kr(),Lr=Ut(e,jr)}(),()=>{clearTimeout(Lr),Lr=undefined}}var qr=function(e){var t;try{t=Gr()}catch(n){}return t},Wr=[],Vr=!1,Jr=null;function Kr(){var t=Dr().href;Jr!=t&&(Jr=t,_.map(Wr,function(e){e(t)}))}var $r="queryStringWhitelist";function Zr(e){var t=f.get("sanitizeUrl");return _.isFunction(t)?t(e):e}function Xr(e){e=e||Dr().href;var t=f.get("annotateUrl");if(t)if(_.isFunction(t))try{var n,i,r,o=t();return o&&(_.isObject(o)||_.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&_.isArray(n)||i&&(_.isArray(i)||_.isObject(i)))&&(n&&(e=Qr(e,null,n,!0)),o=i||{}),Rr.urlFor(e,o,r)):e}catch(a){C.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else C.error("customer-provided `annotateUrl` must be of type: function");return e}function Yr(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function Qr(e,t,n,i){e=e||qr(),t=t||Yr(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=_.isArray(n)?to(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var eo,to=function(e,t,n){return n&&_.contains(t,"*")?"":(e=no(e),e=n?_.omit(e,t):_.pick(e,t),io(e))},no=function(e){e=e.split("&");return _.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&yt(t[1])),e},{})},io=function(e){return _.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},A={watch:function(e){const n=[];C.info("Initializing Pendo URL Watcher");var i,t=f.get("location.pushState")&&ze.supportsHistoryApi();return Vr||(t&&(i=window.history,_.each(["pushState","replaceState"],function(e){var t=i[e];i[e]=_.wrap(i[e],function(e){var t=e.apply(i,_.toArray(arguments).slice(1));return Ut(Kr,0),t}),i[e]._pendoUnwrapped=t,n.push(()=>{i[e]=t})}),n.push(xr(window,"popstate",Kr))),ze.supportsHashChange()&&n.push(xr(window,"hashchange",Kr)),!1!==t&&ze.supportsHashChange()||n.push(Hr()),Vr=!0),Wr.push(e),()=>{_.each(n,function(e){e()}),Wr.length=0,Vr=!1}},get:qr,externalizeURL:function(e,t,n){n=n||f.get($r);return Zr(Qr(e,t,n=_.isFunction(n)?n():n,!1))},startPoller:Hr,getWindowLocation:Dr,clear:function(){Wr=[]},isElectron:Pr,electronUserDirectory:function(){return window.process.env.PWD||""},electronAppName:function(){return window.process.env.npm_package_name||""},electronUserHomeDirectory:function(){return window.process.env.HOME||""},electronResourcesPath:function(){return window.process.resourcesPath||""}};function ro(){var e=f.getLocalConfig("dataHost");return e||((e=f.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:We)}function oo(){eo=ro()}function ao(){var e=f.get("contentHost")||f.get("assetHost")||Ve;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function so(e){var t=ao(),n=0<=(n=t).indexOf("localhost")||0<=n.indexOf("local.pendo.io")?e.replace(".min.js",".js"):e;return t+"/"+(Je?Je+"/":"")+n}function uo(){var e=f.get("allowPartnerAnalyticsForwarding",!1)&&f.get("adoptAnalyticsForwarding",!1);return f.get("trainingPartner",!1)||e}var co=3,lo=1,po=9,ho=11,fo=4;function R(e){var t;if((t=e)&&t.nodeType===lo)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function go(e,t){var n;return!(!e||!_.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&_.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),_.any(n,function(e){return e&&"none"!==e}))}function mo(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function vo(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function yo(e){return _.isNumber(e)?e:0}function bo(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!So(e)?null:e}function wo(e){return go(R(e),Oe)&&isNaN(xe)}function So(e){if(e)return(e=R(e))&&(_.contains(["relative","absolute","fixed"],e.position)||go(e,Oe))}function Eo(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=So(t)?t:bo(t,n),i=t?Io(t):{top:0,left:0},e=Io(e),i={top:e.top-i.top,left:e.left-i.left,width:e.width,height:e.height};return t?(t!==n.document.scrollingElement&&(i.top+=yo(t.scrollTop),i.left+=yo(t.scrollLeft)),i.top-=yo(t.clientTop),i.left-=yo(t.clientLeft)):(i.top+=mo(n),i.left+=vo(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function Io(e){var t;return e?e.getBoundingClientRect?{top:(t=e.getBoundingClientRect()).top,left:t.left,bottom:t.bottom,right:t.right,width:t.width||Math.abs(t.right-t.left),height:t.height||Math.abs(t.bottom-t.top)}:{top:0,left:0,width:e.offsetWidth,height:e.offsetHeight,right:e.offsetWidth,bottom:e.offsetHeight}:{width:0,height:0}}var _o=void 0===(e=f.get("pendoCore"))||e,Co=function(e,t,n){e=eo+"/data/"+e+"/"+t,t=_.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function xo(){return _.compact([E.apiKey].concat(E.additionalApiKeys))}var To=function(e){return e+="v"+Ke,Ao(Co("log.gif",E.apiKey,{msg:e,version:Ke}))};function ko(e){try{var t=eo+"/data/errorlog?apiKey="+E.apiKey,n={error:e,version:"v"+Ke,visitorId:b()},i=Ro.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):Rr.postJSON(t,n);return i.then(function(){C.info("successfully wrote error")},function(e){C.info("error writing error:"+e)})}catch(r){return C.info("Failed to write error to server using POST endpoint: "+r),To("Failed to write error to server using POST endpoint: "+r)}}function Ao(e){var t,n;return Lo()?(t=m.defer(),xr(n=new Image,"load",t.resolve),xr(n,"error",t.reject),n.src=e,t.promise):m.resolve()}function Ro(e,t={}){t=_.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t)}function Oo(e,t){return navigator.sendBeacon(e,t)}Ro.supported=function(){try{return _.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var No=!(Oo.supported=function(){return _.isFunction(navigator.sendBeacon)}),Mo=function(){var e=Lo();return No=!0,e&&y["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},Lo=function(){return!No&&_o},Po=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(Go(e))}catch(n){return!1}},Fo=function(e,t){try{var n;Po(e,t)||(n=Qe.call(Go(e))+" "+t,Uo(e,n))}catch(i){}},Do=function(e,t){try{var n,i;Po(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=Go(e).replace(n," "),Uo(e,i))}catch(r){}},Uo=function(e,t){_.isString(e.className)?e.className=t:e.setAttribute("class",t)},Go=function(e){try{var t=e.className;return(_.isString(t)||!me(t)?t:e.getAttribute("class"))||""}catch(n){return""}},Bo=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},zo={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},jo=function(e,t){t=function(e){if(_.isString(e)){var t=e.split(";");var n;var i;var r;var o;e={};for(r=0;r<t.length;r++){n=t[r];o=n.indexOf(":");i=n.substring(0,o);e[i]=n.substring(o+1)}}return e}(t);Ho(e,t)},Ho=function(a,e){_.each(e,function(e,t){if(""!==(t=Qe.call(t))){var n=Bo(t),i=(!_.isNumber(e)||isNaN(e)||zo[n]?_.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=Qe.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=Qe.call(e)}catch(o){C.info("failed to set style: "+t+" with value "+e)}}})},qo=function(e=window){return je()?{width:e.document.documentElement.offsetWidth||0,height:e.document.documentElement.offsetHeight||0}:{width:e.innerWidth||e.document.documentElement.clientWidth,height:e.innerHeight||e.document.documentElement.clientHeight}},Wo=function(e){var t=qo(),n=mo(),i=vo();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function Vo(t){return _.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function Jo(e,t=window){var n;return function(e){var t,n=e;for(;n;){if(!(t=R(n)))return;if("fixed"===t.position)return!isNaN(xe)||!na(n);n=n.parentNode}return}(e)?((n=Io(e)).fixed=!0,Vo(n)):Vo(Eo(e,Xo(t.document),t))}var Ko=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},$o=_.compose(function(e){return Array.prototype.slice.call(e)},function(e,t){try{return u(e,t)}catch(n){return To("error using sizzle: "+n),t.getElementsByTagName(e)}}),Zo=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return C.info("error interrogating body elements: "+n),To("error picking best body:"+n),0}},Xo=function(e){e=e||document;try{var t=$o("body",e);return t&&1<t.length?(t.sort(Zo),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return To("Error getting body element: "+n),e.body}};function Yo(e){if(e&&e.parentNode){var t=e.parentNode,n=e;if(!t)return[];var i=[];if(t.childNodes)for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];1===r.nodeType&&r!==n&&i.push(r)}return i}return[]}function Qo(e,t=document){if(u.contains(t,e))return!0;for(;e&&e.parentNode||ti.isElementShadowRoot(e);)e=ti.getParent(e);return e===t}var ea=function(e){var t,n,i;if(null!=e)return t=(n=e.ownerDocument||document).defaultView||window,i=Xo(n),e===n||e===t?((n={left:t.pageXOffset||i.scrollLeft,top:t.pageYOffset||i.scrollTop,width:t.innerWidth,height:t.innerHeight}).right=n.left+n.width,n.bottom=n.top+n.height,n):((i=Jo(e,t)).right=i.left+i.width,i.bottom=i.top+i.height,i)},ta=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function na(e){for(var t=e&&e.parentNode;t;){if(go(R(t),Oe))return 1;t=t.parentNode}}var ia=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(Qo(e))for(i=e;i;)if(ti.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=R(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=R(r))&&!_.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&na(i))i=bo(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function ra(e,t){e=R(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?oa.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?oa.BOTH:t.test(e.overflowY)?oa.Y:t.test(e.overflowX)?oa.X:t.test(e.overflow)?oa.BOTH:oa.NONE}var oa={X:"x",Y:"y",BOTH:"both",NONE:"none"};function aa(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&Qo(e)}function sa(e){var t=document.createElement("script"),n=document.head||document.getElementsByTagName("head")[0]||document.body;t.type="text/javascript",e.src?t.src=e.src:t.text=e.text||e.textContent||e.innerHTML||"",n.appendChild(t),n.removeChild(t)}function ua(e){if(e){if(_.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function da(e,t,n){const i=[];var r=ua(document.documentElement);let o=ua(ia(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=ua(ia(o)),a++;return()=>{_.each(_.compact(i),function(e){e()}),i.length=0}}const ca=['a[href]:not([disabled]):not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])',"iframe"].join(", ");function la(e,t,n){var i=ea(t),t=ra(t,n);if(t!==oa.BOTH||ta(e,i)){if(t===oa.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===oa.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function pa(e){if(e){if(aa(e))return 1;var t=ea(e);if(0!==t.width&&0!==t.height){var n=R(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=R(i=i.parentNode)}return 1}}}}function ha(e,t){if(!pa(e))return!1;if(!aa(e)){for(var n=ea(e),i=ia(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!la(n,i,t))return!1;i=ia(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=vo(),e+=mo()),o<=0||e<=0)return!1}}return!0}function fa(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,u=ea(e),d=ia(e,s);if(!pa(e))return!1;for(;d;){if(t=ea(d),(o=ra(d,a))!==oa.NONE&&(i=n=0,o!==oa.Y&&o!==oa.BOTH||(u.bottom>t.bottom&&(n+=u.bottom-t.bottom,u.top-=n,u.bottom-=n),u.top<t.top&&(n-=r=t.top-u.top,u.top+=r,u.bottom+=r)),o!==oa.X&&o!==oa.BOTH||(u.right>t.right&&(i+=u.right-t.right,u.left-=i,u.right-=i),u.left<t.left&&(i-=r=t.left-u.left,u.left+=r,u.right+=r))),!la(u,d,s))return!1;d=ia(d,s)}return!0}function ga(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=Xo(),u=ia(e,a);u&&u!==s;)t=ea(e),n=ea(u),r=i=0,t.bottom>n.bottom&&(i+=t.bottom-n.bottom,t.top-=i,t.bottom-=i),t.top<n.top&&(i-=o=n.top-t.top,t.top+=o,t.bottom+=o),t.right>n.right&&(r+=t.right-n.right,t.left-=r,t.right-=r),t.left<n.left&&(r-=o=n.left-t.left,t.left+=o,t.right+=o),_.isFunction(u.scrollBy)?u.scrollBy(r,i):(u.scrollTop+=i,u.scrollLeft+=r),u=ia(u,a)}Di={$:{findOrCreate(e){return 0<this.length?this:k(e)},find(e){var t=k();return t.context=this.context,this.each(function(){k(e,this).each(function(){t[t.length++]=this})}),t},each(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text(e){var t="innerText"in document.body;return e===undefined?t?this.length?this[0].innerText:this:this.length?this[0].textContent:this:this.each(function(){jo(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Fo(t,e)})})},removeClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Do(t,e)})})},hasClass(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){_.each(e,function(e){n=n&&Po(t,e)})}),n)},toggleClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){(Po(t,e)?Do:Fo)(t,e)})})},css(e){return this.each(function(){jo(this,e)}),this},appendTo(e){return k(e).append(this),this},append(e){var t=this;return k(e).each(function(){t.length&&t[0].appendChild(this),Qo(this)&&_.each(u("script",this),sa)}),t},prependTo(e){return k(e).prepend(this),this},prepend(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],k(e).each(function(){n?k(this).insertBefore(n):k(this).appendTo(t)})),this},getParent(){var e=k(this)[0];if(e&&e.parentNode)return k(e.parentNode)},insertBefore(e){e=k(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),Qo(this[0]))&&_.each(u("script",this[0]),sa)},remove(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr(e,t){return _.isObject(e)?(this.each(function(){_.each(e,function(e,t){this.setAttribute(t,e)},this)}),this):t!==undefined?(this.each(function(){this.setAttribute(e,t)}),this):0<this.length?this[0].getAttribute(e):void 0},closest(e,t){for(var n=this[0];n&&!u.matchesSelector(n,e);)if((n=ei(n))===document||t&&u.matchesSelector(n,t))return k();return k(n)},eq(e){return k(this[e])},height(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus(){return this.each(function(){_.isFunction(this.focus)&&this.focus()})}}};class ma{constructor(e=Xo(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},ze.MutationObserver){const n=new(lt("MutationObserver"))((e,t)=>{this.signal()});n.observe(e,t),this._teardown=()=>n.disconnect}else{const i=Ut(()=>{this.signal()},500);this._teardown=()=>{clearTimeout(i)}}}signal(){_.each(this.listeners,e=>{e.get()})}addObservers(...e){this.listeners=[].concat(this.listeners,e)}teardown(){this._teardown()}}Ri=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var va="function"==typeof(i=window.WeakRef)&&/native/.test(i)?i:Ri();function ya(e,t){var n,i;return e.tagName&&-1<["textarea","input"].indexOf(e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:Ea(n.substring(0,i))):ba(e,t)}function ba(e,t=128){var n,i="",r=e.nodeType;if(r===co||r===fo)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===lo||r===po||r===ho)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=ba(e.childNodes[a],t-i.length))).length)return i+Ea(o.substring(0,t-i.length));i+=o}}return i}function wa(e){return 55296<=e&&e<=56319}function Sa(e){return 56320<=e&&e<=57343}function Ea(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(wa(t)||Sa(t)){if(1===e.length)return e.slice(0,-1);if(wa(t))return e.slice(0,-1);if(Sa(t))if(!wa(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class Ia{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let t=this.elRef&&this.elRef.deref();var e=Qo(t);if(!t||!e){if(t&&!e&&this.teardown(t),!(t=k(this.cssSelector)[0]))return undefined;_.each(this.events,e=>{t.addEventListener(e,e=>this.onEvent(e))}),this.elRef=new va(t)}return t}getText(e=1024){return ya(this.get(),e)}addEventListener(e,t){var n=this.get();this.events.indexOf(e)<0&&(this.events.push(e),n)&&n.addEventListener(e,e=>this.onEvent(e)),this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)}onEvent(t){var e=t.type;_.each(this.listeners[e],e=>e(t))}teardown(t=this.get()){t&&_.each(this.events,e=>t.removeEventListener(e,this.onEvent))}}function _a(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===ro())return!0;if(t===ao())return!0;var e=[/^https:\/\/(app|via|adopt)(\.eu|\.us|\.gov|\.jpn|\.hsbc|\.au)?\.pendo\.io$/,/^https:\/\/((adopt\.)?us1\.)?(app|via|adopt)\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)-static\.storage\.googleapis\.com$/,/^https:\/\/(us1\.)?cdn(\.eu|\.jpn|\.gov|\.hsbc|\.au)?\.pendo\.io$/],n=(-1===qe.indexOf("prod")&&(e=e.concat([/^https:\/\/([a-zA-Z0-9-]+\.)*pendo-dev\.com$/,/^https:\/\/([a-zA-Z0-9-]+-dot-)?pendo-(dev|test|io|us1|govramp|jp-prod|hsbc|au|batman|magic|atlas|wildlings|ionchef|mobile-guides|mobile-hummus|mobile-fbi|mobile-plat|eu|eu-dev|apollo|security|perfserf|freeze|armada|voc|mcfly|calypso|dap|scrum-ops|ml|helix|uat)\.appspot\.com$/,/^https:\/\/via\.pendo\.local:\d{4}$/,/^https:\/\/adopt\.pendo\.local:\d{4}$/,/^https:\/\/local\.pendo\.io:\d{4}$/,new RegExp("^https://pendo-"+qe+"-static\\.storage\\.googleapis\\.com$")])),f.get("adoptHost"));if(n&&t==="https://"+n)return!0;return!!_.contains(f.get("allowedOriginServers",[]),t)||_.any(e,function(e){return e.test(t)})}function Ca(e){var t;if(_.isString(e))return t=(t=Yr(e).substring(1))&&t.length?no(t):{},e=_.last(_.first(e.split("?")).split("/")).split("."),{filename:_.first(e),extension:e.slice(1).join("."),query:t}}function xa(e,t){var n;f.get("guideValidation")&&ze.sri&&(n=Ca(t),t=_.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],_.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}_.extend(k,{data:Ir,event:Ar,removeNode:Ko,getClass:Go,hasClass:Po,addClass:function(e,t){var n;"string"==typeof e?(n=k(e),_.map(n,function(e){Fo(e,t)})):Fo(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=k(e),_.map(n,function(e){Do(e,t)})):Do(e,t)},getBody:Xo,getComputedStyle:R,getClientRect:ea,intersectRect:ta,getScrollParent:ia,isElementVisible:ha,Observer:ma,Element:Ia,scrollIntoView:ga,getRootNode:ua}),_.extend(k.prototype,Ar.$,Di.$);var Ta,ka=function(e){var t=0===f.get("allowedOriginServers",[]).length,n=uo();return!(!t&&!n&&(t=qe,n=Y,!/prod/.test(t)||re(n)))||_a(e)},Aa=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(_.isString(e)&&(e={url:e}),!ka((d=e.url,new Zn(d).origin)))throw new Error;e.type=e.type||/\.css/.test(e.url)?r:o;var a=null,s=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0];if(e.type===r){var u=document.createElement("link");u.type=r,u.rel="stylesheet",u.href=e.url,xa(u,e.url),a=u}else{if(ct())return(i=document.createElement("script")).addEventListener("load",function(){t(),Ko(i)}),i.type=o,i.src=Z(E).createScriptURL(e.url),xa(i,e.url),document.body.appendChild(i),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=Z(E).createScriptURL(e.url),xa(i,e.url),a=i,t=_.wrap(t,function(e,t){k.removeNode(i),t?n&&e(t):e.apply(this,_.toArray(arguments).slice(1))})}return s.appendChild(a),Ra(a,e.url,t),a}catch(c){return{}}var d},Ra=function(e,t,n){var i=!1;me(n)&&(e.onload=function(){!0!==i&&(i=!0,n(null,t))},e.onerror=function(){!0!==i&&(i=!0,n(new Error("Failed to load script"),t))},e.onreadystatechange=function(){i||e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(i=!0,n(null,t))},"link"===e.tagName.toLowerCase())&&(Ut(function(){var e;i||((e=new Image).onload=e.onerror=function(){!0!==i&&(i=!0,n(null,t))},e.src=t)},500),Ut(function(){i||To("Failed to load "+t+" within 10 seconds")},1e4))},Oa=function(e){var t=JSON.parse(e.data),n=e.origin;C.debug(E.app_name+": Message: "+JSON.stringify(t)+" from "+n),Va(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},Na=function(e){La(Ua)(Ma(e))},Ma=function(e){if(e.data)try{var t="string"==typeof e.data?JSON.parse(e.data):e.data,n=e.origin,i=e.source;if(!t.action&&!t.mutation){if(t.type&&"string"==typeof t.type)return{data:t,origin:n,source:i};C.debug("Invalid Message: Missing 'type' in data format")}}catch(r){}};function La(t){return function(e){if(e&&_a(e.origin))return t.apply(this,arguments)}}var Pa={disconnect(e){},module:function(e){Wa(e.moduleURL)},debug:function(e){$a(Oa)}},Fa=function(e,t){Pa[e]=t},Da=function(e){delete Pa[e]},Ua=function(e){var t;e&&(t=e.data)&&me(Pa[t.type])&&Pa[t.type](t,e)},Ga={},Ba=function(e){if(Ga[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},za=function(e){return me(Ga[e])},ja=function(e){if(Ga)for(var t in Ga)if(0<=t.indexOf(e))return t;return null},Ha=[],qa=function(){var e;Ha.length<1||(e=Ha.shift(),za(e))||Aa(e,function(){Ba(e),qa()})};var Wa=function(e){!function(e){var t={"/js/lib/ckeditor/ckeditor.js":1};_.each(["depres.js","tether.js","sortable.js","selection.js","selection.css","html2canvas.js","ckeditor/ckeditor.js"],function(e){t["/modules/pendo.designer/plugins/"+e]=1,t["/engage-app-ui/assets/classic-designer/plugins/"+e]=1});try{var n=new Zn(e);return _a(n.origin)&&t[n.pathname]}catch(i){C.debug("Invalid module URL: "+e)}}(e)||(Ha.push(e),1<Ha.length)||qa()},Va=function(e,t,n){var i,r=_.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Ta||Ka(),n="*"),t.guid=r,e&&_.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";C.info("Failed to postMessage: "+t)}return r},Ja=function(){return window!=window.top},Ka=function(){return new RegExp("^"+It(eo).replace(/^https?:/,"https?:")).test(location.href)?window.parent:window.top},$a=function(e){var t;return me(window.addEventListener)&&_.isFunction(window.addEventListener)&&(t=La(e),window.addEventListener("message",t,!1)),function(){me(window.removeEventListener)&&_.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},Za=_.memoize(function(){return f.get("restrictP1Access")}),Xa=[],Ya=[],Qa=[],es=12e4,ts=16,ns=1900,is=65536,rs=function(e){return!(!e||""===e)},os=function(){return A.get()},as={flush:_.noop,flushBy:_.noop,flushEvents:cs,flushTrackEvents:cs,flushAgenticEvents:cs,flushSilos:cs,flushTrackEventSilos:cs,flushAgenticEventSilos:cs,flushBeacons:cs,flushNow:cs,flushLater:ls,flushEvery:ps,flushStop:hs,beacons:[],silos:[],trackEventSilos:[],agenticEventSilos:[],lock:Mo,unlock:function(){if(!Lo())return fs(),function(){var e=!Lo();return No=!1,e&&y["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."}()}},ss=[];function us(e){ss.push(e)}function ds(e){e=ss.indexOf(e);0<=e&&ss.splice(e,1)}function cs(e,t){try{_.each(ss,function(e){e.flush&&e.flush(t)})}catch(n){C.critical("unhandled error while flushing event cache",{error:n})}}function ls(e){return t=_.partial(cs,!0),n=e,n=parseInt(n,10)||0,t[n]||(i=Ut(function(){t(),t[n]()},n),t[n]=function(){window.clearTimeout(i),delete t[n]});var t,n,i}function ps(e){var t;if(e=parseInt(e,10)||0,_.isObject(ps.intervals)||(ps.intervals={}),!ps.intervals[e])return t=window.setInterval(cs,e),ps.intervals[e]=function(){clearInterval(t),delete ps.intervals[e]}}function hs(){var e=_.values(ps.intervals).concat([cs]);_.map(e,function(e){_.isFunction(e)&&e()})}function fs(){_.each(ss,function(e){e.clear&&e.clear()}),hs()}function gs(e){try{return window.TextDecoder?JSON.parse((new TextDecoder).decode((t=e.split(".")[1],t=atob(t),Uint8Array.from(t,e=>e.codePointAt(0))))):JSON.parse(atob(e.split(".")[1]))}catch(n){return null}var t}function ms(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(C.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(C.debug(t+"The signingKeyName is supplied but missing jwt."),!1):(e=e.jwt,!(!_.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(C.debug(t+"The jwt is invalid."),!1)):(C.debug(t+"Missing jwt and signingKeyName."),!1)}vs=null;var vs,ys={set:function(e){vs=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==vs?vs:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!f.get("enableSignedMetadata")&&(n=ms(e,t),f.get("requireSignedMetadata")&&!n?(C.debug("Pendo will not "+t+"."),!1):n?gs(e.jwt):void C.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class bs{constructor(e,t=100){this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}isEmpty(){return this.queue.length<=0}stop(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer}start(){this.stopped=!1}push(...e){this.queue.push(...e),this.next()}next(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)}incrementFailure(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t}pass(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()}fail(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,6))))}retryLater(e){this.timer=Ut(()=>{delete this.timer,this.next()},e)}failed(){return 0<this.failures.get(this.queue[0])&&null!=this.timer}send(e,t,n){return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(()=>this.pass(e,n),()=>this.fail(e,n))}drain(e,t=!0){if(this.queue.push(...e),this.failed())return Qt.reject();var n=[];for(const i of this.queue)this.pending.has(i)?this.retryPending&&t&&!this.unloads.has(i)&&(this.incrementFailure(i),n.push(this.send(i,t,!1))):n.push(this.send(i,t,!1));return Qt.all(n)}}const ws="unsentEvents";class Ss{constructor(){this.events={}}send(t,n){var i=this.events[t];if(i){let e=i.shift();for(;e;)n.push(e),e=i.shift();delete this.events[t]}}push(e,t){var n=this.events[e]||[];n.push(t),this.events[e]=n}read(e){e.registry.addLocal(ws);try{this.events=JSON.parse(e.read(ws)||"{}"),e.clear(ws)}catch(t){this.events={}}}write(e){0<_.size(this.events)?e.write(ws,JSON.stringify(this.events),5184e5):e.clear(ws)}}var Es=new Ss;class Is{constructor(){this._isPerformanceApiAvailable=this._checkPerformanceApi(),this._measuringPerformance=!1,this._marks={},this._measures={}}initialize(){return this._measuringPerformance=!0,this._markPerformance("initialize"),this.interval=setInterval(()=>{this._clearMarksAndMeasures()},6e5),()=>{this.teardown()}}teardown(){this._measuringPerformance=!1,this._markPerformance("teardown"),this._clearMarksAndMeasures(),clearInterval(this.interval)}startTimer(e){this._markPerformance(e+"-start")}stopTimer(e){this._markPerformance(e+"-stop"),this._measurePerformance(e)}track(e){this._markPerformance(e)}send(){performance.getEntries(),this._clearMarksAndMeasures()}_checkPerformanceApi(){return Ce("performance.mark")&&Ce("performance.measure")&&Ce("performance.getEntries")&&Ce("performance.clearMarks")&&Ce("performance.clearMeasures")}_shouldMeasurePerformance(){return this._isPerformanceApiAvailable&&this._measuringPerformance}_markPerformance(e){this._shouldMeasurePerformance()&&(e="pendo-"+e,performance.mark(e),this._count(this._marks,e))}_measurePerformance(e){this._shouldMeasurePerformance()&&(e="pendo-"+e,performance.measure(e,e+"-start",e+"-stop"),this._count(this._measures,e))}_count(e,t){e[t]?e[t]++:e[t]=1}_clearMarksAndMeasures(){_.each(this._marks,(e,t)=>{performance.clearMarks(t)}),_.each(this._measures,(e,t)=>{performance.clearMeasures(t)}),this._marks={},this._measures={}}}var _s=new Is,Cs="_PENDO_UNNAMED_",xs=5;function Ts(e,t,n,i,r,o){var a,s;a=f.get("dropAnonymous"),s=On(b()),!_o||a&&s||(a=t,s=n,t=i,n=r,r=o,s={type:o=e,browser_time:v(),visitor_id:b({generate:!0}),account_id:qn(),url:A.externalizeURL(s),props:a||{},eventProperties:n},s=ln.addTracerIds(s),"track"===o&&(s.track_event_name=t||Cs),y.eventCaptured.trigger(s,r),rs((a=s).url)&&function(e){if(f.get("freeNPSData"))return _.contains(ks,e.type);return 1}(a)&&("track"===e?js:"agentic"===i?Hs:zs).push(a))}var ks=["load","meta","identify"];function As(){var r=_.toArray(arguments);return function(e,t){var n=r.concat([t]);!function i(t,e){t<n.length&&n[t](e,function(e){i(t+1,e)})}(0,e)}}let Rs=0;function Os(e,t){e.sequence=Rs++,t(e)}function Ns(e){return n=function(e,t){return e.push(t),e},i=e,function(e,t){t(i=n(i,e))};var n,i}function Ms(e,t){return uo()?Ls("account_id")(e,t):t(e)}function Ls(s){return function(e,t){if(!e.length)return t(e);for(var n=_.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==_.get(e[r],s)){i=!1;break}if(i)return t(e);var o=e.slice(0,r),a=e.slice(r);t(o),t(a)}}function Ps(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function Fs(e,t,n){t=n[t-1]||_.last(n);return Math.ceil(e/t)}function Ds(e,t){for(var n,i=0,r=(_.isFunction(t.overhead)?t.overhead:_.constant(0))(),o=0;o<e.length;++o){if(Fs(n=Ps(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(Fs(i+n,o+1,t.compressionRatio)+r>t.upper)return o;i+=n}if(!(0<o))for(o=i=0;o<e.length;++o){if(Fs(i+(n=Ps(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function Us(){var e=ys.get();return _.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var Gs,Bs,zs,js,Hs,qs;function Ws(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=E.squeezeAndCompress(e.slice()),e.JZB.length<=is)||1===e.length?t(e):(n=e.length/2,Ws(e.slice(0,n),t),void Ws(e.slice(n),t))}function Vs(e,t){Lo()&&t(e)}function Js(){return function(e,t){1===e.length&&e.JZB.length>is?(C.debug("Couldn't write event"),To("Single item is: "+e.JZB.length+". Dropping."),ko(e.JZB)):t(e)}}function Ks(e,t){return Co(t.beacon+".gif",e,_.extend({v:Ke,ct:v(),jzb:t.JZB},t.params,t.auth))}function $s(e,t){return Co(t.beacon+".gif",e,_.extend({v:Ke,ct:v(),s:t.JZB.length},t.params))}function Zs(i){return function(e,t){e.params=_.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=ys.get();_.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function Xs(e,t){var n=uo(),i=_.first(e),i=_.get(i,"account_id");n&&i&&(e.params=_.extend({},e.params,{acc:ot(i)})),t(e)}function Ys(e,t){var n=_.first(e),n=_.get(n,"props.source");n&&(e.params=_.extend({},e.params,{source:n})),t(e)}function Qs(e){return JSON.stringify(_.extend({events:e.JZB},e.auth))}function eu(e){return e.status<200||300<=e.status?m.reject(new Error(`received status code ${e.status}: `+e.statusText)):m.resolve()}function tu(e,t){return Ro(Ks(e,t)).then(eu)}function nu(e,t){return fetch($s(e,t),{method:"POST",keepalive:!0,body:Qs(t),headers:{"Content-Type":"application/json"}}).then(eu)}function iu(e,t){var n=Qs(t);return Oo($s(e,t),n)?m.resolve():m.reject()}function ru(n){return function(e,t){return t.JZB?t.eventLength<=ns&&!f.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&Ro.supported()?tu(e,t):t.auth?Rr({method:"GET",url:Ks(e,t)}):Ao(Ks(e,t)):n.allowPost&&t.eventLength<=is?Ro.supported()?nu(e,t):Oo.supported()?iu(e,t):Rr({method:"POST",url:$s(e,e=t),data:Qs(e),headers:{"Content-Type":"application/json"}}):m.resolve():m.resolve()}}function ou(n){return function(e,t){if(t.JZB){if(t.eventLength<=ns&&!f.get("sendEventsWithPostOnly",!1)){if(!t.auth&&Ro.supported())return tu(e,t);if(ze.msie<=11)return Rr({method:"GET",url:Ks(e,t),sync:!0})}if(t.eventLength<=is&&n.allowPost){if(Ro.supported())return nu(e,t);if(Oo.supported())return iu(e,t);if(ze.msie<=11)return Rr({method:"POST",url:$s(e,e=t),data:Qs(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return m.resolve()}}function au(e,t){e.length=0;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);t(i)}function su(e){return As(Vs,Ms,Ws,(t=e.shorten,t=_.defaults(t||{},{fields:[],siloMaxLength:is}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],C.debug("Max length exceeded for an event"),_.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(C.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),Ws,Js(),Zs(e),Xs,Ys,au);var t}class uu{constructor(e){this.queues=e}isEmpty(){return _.all(this.queues,e=>e.isEmpty())}stop(){_.each(this.queues,e=>e.stop())}push(){const t=_.toArray(arguments);_.each(this.queues,e=>e.push.apply(e,t))}drain(){const t=_.toArray(arguments);return m.all(_.map(this.queues,e=>e.drain.apply(e,t)))}}function du(o,a,s){a=a||ru(o),s=s||ou(o);e=o;var e=_.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=_.map(e,(i,r)=>{var e=new bs(function(e,t,n){return n&&(e.params=_.extend({},e.params,{rt:n})),o.localStorageUnload&&t?(0===r&&Es.push(o.beacon,e),m.resolve()):(t?s:a)(i,e)});return e.onTimeout=function(){_s.track(o.beacon+"-gif-failure")},e.retryPending=!0,e}),e=new uu(e);return Es.send(o.beacon,e),e}function cu(e,t){var n=f.get("analytics.excludeEvents");0<=_.indexOf(n,e.type)||t(e)}class lu{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=du(e)}pause(e=1e4){var t=_.uniqueId();const n=this["locks"];n[t]=1;var i=()=>{n[t]&&(y.trigger("ptm:unpaused"),clearTimeout(r),delete n[t],this.flush())},r=Ut(i,e);return y.trigger("ptm:paused"),i}push(e){this.packageSilos(e,e=>{this.silos.push(e)})}clear(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()}flush({unload:e=!1,hidden:t=!1}={}){var{cache:n,silos:i}=this;if((0!==n.length||0!==i.length||!this.sendQueue.isEmpty())&&_.isEmpty(this.locks)){i.push(n.slice()),n.length=0;n=i.slice();i.length=0;const r=[];_.each(n,function(e){this.processSilos(e,function(e){r.push(e)})},this),e||t?this.sendQueue.drain(r,e):this.sendQueue.push(...r)}}}function pu(e){var i,r,t=su(e),n=As((r=e.beacon,function(e,t){var n=f.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),cu,Os,Ns(e.cache),(i={overhead:Us,lower:f.get("sendEventsWithPostOnly")?is:ns,upper:is,compressionRatio:[.5*xs,.75*xs,xs]},function(e,t){for(var n=Ds(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=Ds(e,i)}));return new lu(_.extend({processSilos:t,packageSilos:n},e))}var hu=$n(function(e){var t,n,i;if((e=e||A.get())&&e!==hu.lastUrl)return hu.lastUrl=e,t=-1,Za()||Ja()&&(i=Ka(),Va(i,{type:"load",url:location.toString()},"*")),C.debug("sending load event for url "+e),t={load_time:t="undefined"!=typeof performance&&_.isFunction(performance.getEntriesByType)&&!_.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},Ja()&&(t.is_frame=!0),"*"!==(n=_t())&&(t.allowed_storage_keys=_.keys(n)),Ts("load",t,e),ls(),y.urlChanged.trigger(),!0});function fu(e){return"hidden"===e.visibilityState}hu.reset=function(){hu.lastUrl=null};const gu="visibilitychange",mu="pagehide",vu="unload";function yu(){this.serializers=_.toArray(arguments)}function bu(e,t){return e.tag=ti.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function wu(e){return me(e)?""+e:""}function Su(e,t){return e.id=wu(t.id),e}function Eu(e,t){return e.cls=wu(k.getClass(t)),e}_.extend(yu.prototype,{add(e){this.serializers.push(e)},remove(e){e=_.indexOf(this.serializers,e);0<=e&&this.serializers.splice(e,1)},serialize(n,i){return n?(i=i||n,_.reduce(this.serializers,function(e,t){return t.call(this,e,n,i)},{},this)):{}}});var Iu=256,_u=64,Cu={a:{events:["click"],attr:["href"]},button:{events:["click"],attr:["value","name"]},img:{events:["click"],attr:["src","alt"]},select:{events:["mouseup"],attr:["name","type","selectedIndex"]},textarea:{events:["mouseup"],attr:["name"]},'input[type="submit"]':{events:["click"],attr:["name","type","value"]},'input[type="button"]':{events:["click"],attr:["name","type","value"]},'input[type="radio"]':{events:["click"],attr:["name","type"]},'input[type="checkbox"]':{events:["click"],attr:["name","type"]},'input[type="password"]':{events:["click"],attr:["name","type"]},'input[type="text"]':{events:["click"],attr:["name","type"]}};var xu=function(e,t,n){var i;return e&&e.nodeName?"img"==(i=e.nodeName.toLowerCase())&&"src"==t||"a"==i&&"href"==t?(i=e.getAttribute(t),Zr((i=i)&&0===i.indexOf("data:")?(C.debug("Embedded data provided in URI."),i.substring(0,i.indexOf(","))):i+"")):(i=e,e=t,t=g.getters["nodeAttr/getAttribute"]()(i,e),(!n||typeof t===n)&&t?_.isString(t)?Qe.call(t).substring(0,Iu):t:null):null};function Tu(t){var e,n,i;return _.isRegExp(t)&&_.isFunction(t.test)?function(e){return t.test(e)}:_.isArray(t)?(e=_.map(_.filter(t,_.isObject),function(e){var t;return e.regexp?(t=(t=/\/([a-z]*)$/.exec(e.value))&&t[1]||"",new RegExp(e.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),t)):new RegExp("^"+e.value+"$","i")}),function(t){return _.any(e,function(e){return e.test(t)})}):_.isObject(t)&&t.regexp?(n=(n=/\/([a-z]*)$/.exec(t.value))&&n[1]||"",i=new RegExp(t.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),n),function(e){return i.test(e)}):_.constant(!1)}function ku(e,t,n,i){try{var r,o=_.indexBy(t),a=_.filter(_.filter(e,function(e){return n(e.nodeName)||o[e.nodeName]}),function(e){return!i(e.nodeName)});return a.length<=_u?_.pluck(a,"nodeName"):(r=_.groupBy(e,function(e){return o[e.nodeName]?"defaults":_.isString(e.value)&&e.value.length>Iu?"large":"small"}),_.pluck([].concat(_.sortBy(r.defaults,"nodeName")).concat(_.sortBy(r.small,"nodeName")).concat(_.sortBy(r.large,"nodeName")).slice(0,_u),"nodeName"))}catch(s){return C.error("Error collecting DOM Node attributes: "+s),[]}}function Au(t,n){var e=Tu(f.get("htmlAttributes")),i=Tu(f.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=xu(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},ku(n.attributes,Cu[r]&&Cu[r].attr,e,i));return _.each(r,function(e){t.attrs[e.toLowerCase()]=xu(n,e)}),t}function Ru(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=_.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),e.childIndex=n.filter(function(e){return e.nodeType==lo}).indexOf(t).value()),e}function Ou(i,e){var r;return f.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(Ou),e=this.serialize(e.previousElementSibling),this.add(Ou),i.attrs=i.attrs||{},_.each(e,function(e,t){var n={cls:"class",txt:"pendo_text"}[t]||t;_.isEmpty(e)||(_.isObject(e)?_.each(e,function(e,t){e&&!_.isEmpty(e)&&(i.attrs[r+n+"_"+t]=e)}):i.attrs[r+n]=e)})),i}var Nu=new yu(bu,Su,Eu,Au,Ru,Ou),Mu=function(e){return"BODY"===e.nodeName&&e===Xo()||null===e.parentNode&&!ti.isElementShadowRoot(e)},Lu="pendo-ignore",Pu="pendo-analytics-ignore",Fu=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=Nu.serialize(o,e)}while(r||!dt(a.cls,Lu)&&!dt(a.cls,Pu)||(r=!0),n.parentElem=a,n=a,(i=ti.getParent(o))&&!Mu(o));return r&&(t.parentElem.ignore=!0),t.parentElem},Du=["","left","right","middle"],t=function(e){return e},e=function(e,t){return e[t]},Uu=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return Du[t]}],["altKey",e,t,t],["ctrlKey",e,t,t],["metaKey",e,t,t],["shiftKey",e,t,t]],Gu={click:function(e,t){for(var n=[],i=0;i<Uu.length;i++){var r=Uu[i],o=r[0],a=r[1],s=r[2],r=r[3],a=a(e,o);s(a)&&n.push(r(o,a))}return t.flags=n,t}},Bu=function(t){try{if(!k.data.get(t,"counted")){k.data.set(t,"counted",!0);var n=kr(t),i=t.type,e={},r=Gu[i];if(r&&(e=r(t,e)),k.data.get(t,"stopped")&&(e.stopped=!0),t.from&&_.isString(t.from)&&(e.from=t.from),n=(s=n).nodeType===co?s.parentNode:s.nodeType===fo?null:s.correspondingUseElement||s){var o=Fu(n),a=(_.extend(o,e),hu());if(a&&A.startPoller(),!o.ignore){let e;"click"===i&&(e=function(e){e=function(e){const n={};return{getEventProperties(){return n},addEventProperty(e,t){_.isString(e)&&!_.isUndefined(t)?n[e]=t:C.error("Failed to add click event property")},target:e}}(e),y.onClickCaptured.trigger(e),e=e.getEventProperties();if(!_.isEmpty(e))return e}(n)),Ts(i,{target:o},undefined,undefined,e,t),y.trigger("appUsage",o,t)}}else C.info("Invalid HTML target",{contexts:["event","dom","processing"]})}}catch(u){C.critical("pendo.io while handling event",{error:u})}var s};var zu=_.debounce(Bu,5e3,!0),ju=function(e){const t=[];_.contains(e=e||["click","focus","submit","change"],"change")&&(e=_.without(e,"change"),t.push(()=>{zu.cancel()}),t.push(xr(document,"change",zu,!0)));var n,i=f.get("interceptElementRemoval")||f.get("syntheticClicks.elementRemoval"),r=f.get("syntheticClicks.targetChanged"),r=(t.push(function(t,e,n,i){var r,o,a=[],s=ze.hasEvent("pointerdown"),u=s?"pointerdown":"mousedown",s=s?"pointerup":"mouseup",d=[],c={cloneEvent:function(e){e=k.event.clone(e);return e.type="click",e.from=u,e.bubbles=!0,e},down:function(e){o=!1,e&&(r=c.cloneEvent(e),n)&&c.intercept(e)},up:function(e){o=!1,e&&r&&i&&kr(r)!==kr(e)&&(o=!0,t(r))},click:function(e){r=null,o&&k.data.set(e,"ignore",!0),o=!1,n&&c.unwrap()},intercept:function(e){e=function(e){var t=[];for(;e&&!Mu(e);)t.push(e),e=e.parentNode;return t}(kr(e));_.each(e,function(e){e=Hu(e,c.remove);a.push(e)})},remove:function(){r&&(t(r),r=null),c.unwrap()},unwrap:function(){0<a.length&&(_.each(a,function(e){e()}),a=[])},teardown:function Gv(){c.unwrap(),_.each(d,function(e){e()})}};e&&(d.push(xr(document,u,c.down,!0)),d.push(xr(document,s,c.up,!0)),d.push(xr(document,"click",c.click,!0)));return c}(k.event.trigger,ze.addEventListener,i,r).teardown),t.push((i=e,n=_.map(i,function(e){return l(document,e,Bu,!0)}),()=>{_.each(n,function(e){e()})})),t.push(function(e,t){if(t){const n=[];return n.push(xr(document,gu,()=>{fu(document)&&e(!0,!1)})),n.push(xr(window,mu,_.partial(e,!1,!0))),()=>_.each(n,function(e){e()})}return xr(window,vu,_.partial(e,!0,!0))}(function(e,t){t&&y.appUnloaded.trigger(),e&&y.appHidden.trigger()},f.get("preventUnloadListener"))),f.get("interceptStopPropagation",!0)),i=f.get("interceptPreventDefault",!0);return r&&t.push(qu(window.Event,e)),i&&t.push(Wu(window.Event,["touchend"])),()=>{_.each(t,function(e){e()})}};function Hu(n,i){var e=["remove","removeChild"];try{if(!n)return _.noop;_.each(e,function(e){var t=n[e];if(!t)return _.noop;n[e]=_.wrap(t,function(e){return i&&i(),e.apply(this,_.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return _.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){C.critical("ERROR in interceptRemove",{error:t})}return function(){_.each(e,function(e){if(!n[e])return _.noop;e=n[e]._pendoUnwrap;_.isFunction(e)&&e()})}}function qu(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return _.noop;var i=_.indexBy(e);_.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=_.wrap(t,function(e){var t=e.apply(this,arguments);return i[this.type]&&(k.data.set(this,"stopped",!0),k.event.trigger(this)),t}),n.prototype[e]._pendoUnwrap=function(){n.prototype[e]=t,delete n.prototype[e]._pendoUnwrap})})}catch(r){C.critical("ERROR in interceptStopPropagation",{error:r})}return function(){_.each(t,function(e){e=n.prototype[e]._pendoUnwrap;_.isFunction(e)&&e()})}}function Wu(t,e){try{if(!t||!t.prototype)return _.noop;var i=_.indexBy(e),n=t.prototype.preventDefault;if(!n)return _.noop;t.prototype.preventDefault=_.wrap(n,function(e){var t,n=e.apply(this,arguments);return i[this.type]&&((t=k.event.clone(this)).type="click",t.from=this.type,t.bubbles=!0,t.eventPhase=_r,k.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){C.critical("ERROR in interceptPreventDefault",{error:r})}return function(){var e=t.prototype.preventDefault._pendoUnwrap;_.isFunction(e)&&e()}}function l(e,t,n,i){return e&&t&&n?(i&&!ze.addEventListener&&(i=!1),k.event.add(e,{type:t,handler:n,capture:i})):_.noop}function Vu(e,t,n,i){e&&t&&n&&(i&&!ze.addEventListener&&(i=!1),k.event.remove(e,t,n,i))}var Ju=function(e){k.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},Ku=function(e,t){return"complete"!==(t=t||window).document.readyState?xr(t,"load",e):(e(),_.noop)},O=[],$u=[],Zu={};let Xu={};function Yu(){return O}function Qu(){return ed(O)}function ed(e){return _.filter(e,function(e){return!e.isFrameProxy})}function td(e){_.isArray(e)?(O=e,y.guideListChanged.trigger({guideIds:_.pluck(e,"id")})):C.info("bad guide array input to `setActiveGuides`")}var nd=function(){let n=[];return{addGuide:e=>{var t;_.isEmpty(e)||(n=n.concat(e),_.each(n,e=>e.hide&&e.hide()),e=O,(t=_.difference(e,n)).length<e.length&&(td(t),g.dispatch("frames/changeGuideList",t)))}}}();function id(t,n){return _.find(ad(),function(e){return _.get(e,t)===n})||null}function N(e){return id("id",e)}function rd(e){return id("name",e)}function od(e,t){return e&&e.id?(e=N(e.id)).findStepById(t):null}function ad(){var e=_.values(Xu);return e.length?O.concat(_.flatten(e)):O}var sd="_pendo-guide-tt_",ud="_pendo-guide-mobile-tt_",dd=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},cd=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},ld=function(e){return!!_.get(e,"attributes.form")};function pd(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function hd(){return!!(pd()&&qo().width<=320)||ze.isMobileUserAgent()}function fd(e=document){var t=fd.attachPoint;if(null==t){var n=f.get("guides.attachPoint");if(_.isString(n)){try{t=u(n)[0]}catch(i){C.info('Error finding guide attach point "'+n+'"')}t=t||document.createElement("div")}else t=!!_.isFunction(n)&&n();fd.attachPoint=t}return t||Xo(e)}var gd=function(e){var t=Zu[e.guideId];if(t){t=t.element();if(Qo(t)&&t.id==="_pendo-badge_"+e.id)return t}},md=function(e,t){var n;return e?(n=e.getGuide(),n="building-block"===_.get(n,"attributes.type")||!cd(n),!e.overrideElement&&n&&(e.overrideElement=gd(e)),e.targetElement=vd(e,t),e.overrideElement||e.targetElement):(C.info("Can't get element for null step"),null)},vd=function(e,t){e=e.elementPathRule||null,e=e?u(e,t):[Xo(t)];return 0===e.length?null:_.first(e)};function yd(e){var t=_.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function bd(e,t,n){var i,r,o,e=Jo(e),t=Jo(t),a=(e=e,a=t,i=Math.min(e.top,a.top),r=Math.min(e.left,a.left),o=Math.max(e.top+e.height,a.top+a.height),e=Math.max(e.left+e.width,a.left+a.width),{height:Math.abs(o-i),width:Math.abs(e-r),top:i,left:r});!1!==Wo(a)||t.fixed||(o=function(e,t,n,i){var r={x:e.left+e.width-t.width,y:0};r.y="top"===n?e.top:e.top+e.height-t.height;r.y=Math.max(r.y,0),r.x=Math.max(r.x,0),_.contains([oa.X,oa.BOTH],i)&&(r.x=0);_.contains([oa.Y,oa.BOTH],i)&&(r.y=0);return r}(a,qo(),n,ra(Xo(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function wd(e,t,n,i,r){var o,a=_.toArray(arguments).slice(1),s=e.apply(this,a);return n||ua(o=fd())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function Sd(){return g.getters["frames/isLeader"]()}function Ed(e){return g.dispatch("frames/updateFrameVisibility",{visibility:e})}const Id={validateGuide:1,validateLauncher:1,validateGlobalScript:1},_d={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1},Cd={ready:1},xd=["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"];function Td(i){const e=_.reduce(xd,function(e,r){if(_d[r]){const t=function(e){return Ad[r].apply(Ad[r],e.data)};i[r].on(t),e.push(()=>i[r].off(t))}if(Cd[r]){const n=function(t){{var n=r;t=t.data[0];let e;try{e=new CustomEvent("pendo_"+n,{detail:t})}catch(i){if(!document.createEvent)return;(e=document.createEvent("Event")).initEvent("pendo_"+n,!0,!0),e.detail=t}document.dispatchEvent(e)}};i[r].on(n),e.push(()=>i[r].off(n))}return e},[]);return()=>_.each(e,e=>e())}kd=mn.call({}),_.each(xd,function(n){kd[n]=function(e){var t;return _.isFunction(e)?kd.on(n,e):(t=Id[n]?"triggerAsync":"trigger",kd[t].apply(kd,[n].concat(_.toArray(arguments))))}});var kd,Ad=kd;var Rd={post:function(e,t,n,i){return n.ajax.postJSON(e.replace(/\/guides\.js\//,"/guides.json/"),t).then(function(e){n.guidesPayload(e.data),i()})},load(e,t,n){return t.ajax.get(e).then(function(e){t.guidesPayload(e.data),n()})},endpoint(){return"guide.json"},usesXhr(){return!0}};function Od(e){e=Ca(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}Md=Dd={failed:{},verified:{}},Pd=ko,Fd=function(e){try{var t=[];return!Rd.usesXhr()&&e.domJsonpUrl?t.push(Bd(e,"domJsonpUrl")):Rd.usesXhr()&&e.domUrl&&t.push(Gd(e,"domUrl")),e.contentUrlJs?t.push(Bd(e,"contentUrlJs")):e.contentUrl&&t.push(Bd(e,"contentUrl")),m.all(t)}catch(n){throw y.contentVerificationFail.trigger(e,n),n}},Ld=function(e){return Fd(e).then(_.noop,function(e){return/verify/.test(e)&&Pd(e),m.reject(e)})},Nd=function(t){return Md.failed[t.id]?m.reject():Md.verified[t.id]?m.resolve():Ld(t).then(function(){Md.verified[t.id]=!0},function(e){return Md.failed[t.id]=!0,m.reject(e)})};var Nd,Md,Ld,Pd,Fd,Dd,Ud={verify:function(e){return f.get("guideValidation")?Nd(e):m.resolve()},reset:function(){Dd.failed={},Dd.verified={}}};function Gd(e,t){var n,i=e[t];return _.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||Od(e[t]),Rr.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=J.create()).update(e),c.uint8ToBase64(t.digest())!==n)return m.reject('Unable to verify content at "'+i+'"')})):m.reject('unable to parse "'+i+'"')}function Bd(e,t){var n=e[t];return ze.sri&&/[?&]sha(256|384|512)=/.test(n)?m.resolve():Gd(e,t)}zd="allow",jd="deny",Hd="pending",Wd=function(){return 0<_.size(Ad._handlers.validateGuide)},Vd=function(e,n){var i=[];return _.each(e,function(e,t){n&&(t=n+"."+t),_.isObject(e)?_.each(Vd(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var zd,jd,Hd,qd,Wd,Vd,Jd={state:qd={},Step:function(e){var n=this;function i(e){return _.filter([["content",Od(e.contentUrl)],["contentCss",Od(e.contentUrlCss)],["contentJs",Od(e.contentUrlJs)],["dom",Od(e.domUrl)],["domJsonp",Od(e.domJsonpUrl)]],function(e){return e[1]})}return this.signature=function(){var e,t;return this.domUrl?this.guide.authoredLanguage===this.language?i(this):i({contentUrl:n.contentUrl,contentUrlCss:n.contentUrlCss,contentUrlJs:n.contentUrlJs,domUrl:n.domUrl,domJsonpUrl:n.domJsonpUrl}):(e=[["content",this.content]],(t=this.attributes&&this.attributes.variables)&&(t=Vd(t)).length&&(t=_.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return _.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<_.size(Ad._handlers.validateLauncher)&&n.data.template};return n.before("update",function(){if(r()&&i)return!1}),n.before("render",function(){var e,t;if(r())return!i&&(t="launcher-"+at(n.signature()),(t=qd[t])!==jd)&&(t!==zd?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+at(t),Ad.validateLauncher(t).then(function(){qd[e]=zd},function(){qd[e]=jd}).then(function(){i=!1,n.render(),n.update(O)},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=Vd(this.data);return t.length&&(t=_.chain(t).filter(function(e){return!/^contentUrl/.test(e[0])}).sortBy(function(e){return e[0]}).value(),e.push(["variables",t])),e},n},validate:function(e){if(!Wd())return m.resolve();try{return _.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=P.findResourceCenterModules(t,O),t=[t].concat(n),m.all(_.map(t,Kd))):Kd(e)}catch(i){throw y.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!Wd()||!!(e=qd[e.guideId])&&e.status===zd},invalid:function(e){return!!Wd()&&!!(e=qd[e.guideId])&&e.status===jd},reset(){qd={}}};function Kd(i){var r=qd[i.id];return r||(r={},qd[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+at(e),n=(r[t]||(r[t]={status:Hd},r.status=Hd),r[t].promise);return n||(n=Ad.validateGuide(e,i).then(function(){r[t].status=zd,r.status=zd},function(e){return r[t].status=jd,r.status=jd,m.reject(e)}),r[t].promise=n),n})}function $d(e,t){var n=_.toArray(arguments).slice(2);return _.reduce(e,function(e,t){return t.apply(e,n)},t)}function Zd(e){return _.isFunction(e.before)?e:$d(Zd.behaviors,e)}function Xd(e,t){return $d(Xd.behaviors,e,t)}function Yd(e){var t,n,i=f.getLocalConfig("contentHost");return i&&e?(t=new RegExp("(https:)?\\/\\/"+((t=qe)===ye?"pendo-static":Ie(t))+"-\\d+\\.storage\\.googleapis\\.com","g"),n=new RegExp("(https:)?\\/\\/"+Ie(qe)+"\\.storage\\.googleapis\\.com","g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+It(Ve),"g"),i)):e}function Qd(e){return f.getLocalConfig("contentHost")?JSON.parse(Yd(JSON.stringify(e))):e}Zd.behaviors=[],Xd.behaviors=[];var ec=function(){var d={},c=_.compose(function(e){var t=function(){var e=It(f.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&C.debug("Failed to verify URL: "+e+" vs "+t),e},Yd);const u=[function(e,t,n){return e.replace(`<% if (typeof guide !== 'undefined') { %>
|
|
4
|
+
function loadAgent(u){s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");var s,d={uint8ToBase64:function(e){var t,n,i,r=e.length%3,o="";for(t=0,i=e.length-r;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=function(e){return s[e>>18&63]+s[e>>12&63]+s[e>>6&63]+s[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=s[n>>2])+s[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=s[n>>10])+s[n>>4&63])+s[n<<2&63]}return o}},Gt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var G,o,B,z,j,H,q,W={exports:{}};function V(e){e?(H[0]=H[16]=H[1]=H[2]=H[3]=H[4]=H[5]=H[6]=H[7]=H[8]=H[9]=H[10]=H[11]=H[12]=H[13]=H[14]=H[15]=0,this.blocks=H):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}t=W,G="object"==typeof window?window:{},e=!G.JS_SHA1_NO_COMMON_JS&&t.exports,o="0123456789abcdef".split(""),B=[-2147483648,8388608,32768,128],z=[24,16,8,0],j=["hex","array","digest","arrayBuffer"],H=[],q=function(t){return function(e){return new V(!0).update(e)[t]()}},V.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===G.ArrayBuffer?new Uint8Array(e):e).length||0,a=this.blocks;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),i)for(n=this.start;r<o&&n<64;++r)a[n>>2]|=e[r]<<z[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<z[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<z[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<z[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<z[3&n++],a[n>>2]|=(128|t>>12&63)<<z[3&n++]),a[n>>2]|=(128|t>>6&63)<<z[3&n++]),a[n>>2]|=(128|63&t)<<z[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,64<=n?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},V.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=B[3&t],this.block=e[16],56<=t&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash())},V.prototype.hash=function(){for(var e,t=this.h0,n=this.h1,i=this.h2,r=this.h3,o=this.h4,a=this.blocks,s=16;s<80;++s)e=a[s-3]^a[s-8]^a[s-14]^a[s-16],a[s]=e<<1|e>>>31;for(s=0;s<20;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|~n&r)+o+1518500249+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|~t&i)+r+1518500249+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|~o&n)+i+1518500249+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|~r&t)+n+1518500249+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|~i&o)+t+1518500249+a[s+4]<<0,i=i<<30|i>>>2;for(;s<40;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o+1859775393+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r+1859775393+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i+1859775393+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n+1859775393+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t+1859775393+a[s+4]<<0,i=i<<30|i>>>2;for(;s<60;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|n&r|i&r)+o-1894007588+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|t&i|n&i)+r-1894007588+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|o&n|t&n)+i-1894007588+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|r&t|o&t)+n-1894007588+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|i&o|r&o)+t-1894007588+a[s+4]<<0,i=i<<30|i>>>2;for(;s<80;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o-899497514+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r-899497514+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i-899497514+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n-899497514+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t-899497514+a[s+4]<<0,i=i<<30|i>>>2;this.h0=this.h0+t<<0,this.h1=this.h1+n<<0,this.h2=this.h2+i<<0,this.h3=this.h3+r<<0,this.h4=this.h4+o<<0},V.prototype.toString=V.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return o[e>>28&15]+o[e>>24&15]+o[e>>20&15]+o[e>>16&15]+o[e>>12&15]+o[e>>8&15]+o[e>>4&15]+o[15&e]+o[t>>28&15]+o[t>>24&15]+o[t>>20&15]+o[t>>16&15]+o[t>>12&15]+o[t>>8&15]+o[t>>4&15]+o[15&t]+o[n>>28&15]+o[n>>24&15]+o[n>>20&15]+o[n>>16&15]+o[n>>12&15]+o[n>>8&15]+o[n>>4&15]+o[15&n]+o[i>>28&15]+o[i>>24&15]+o[i>>20&15]+o[i>>16&15]+o[i>>12&15]+o[i>>8&15]+o[i>>4&15]+o[15&i]+o[r>>28&15]+o[r>>24&15]+o[r>>20&15]+o[r>>16&15]+o[r>>12&15]+o[r>>8&15]+o[r>>4&15]+o[15&r]},V.prototype.array=V.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r]},V.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(20),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),e},Ge=function(){var t=q("hex");t.create=function(){return new V},t.update=function(e){return t.create().update(e)};for(var e=0;e<j.length;++e){var n=j[e];t[n]=q(n)}return t}(),e?t.exports=Ge:G.sha1=Ge;var J=c(W.exports);let K;const $={createScriptURL:e=>e,createHTML:e=>e};function Z(e){return K||(K=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",$):$),e.trustedTypesPolicy=K),K}var E,X="stagingServerHashes",Y={};function Q(e){return e.loadAsModule}function ee(e){return"staging"===e.environmentName}function te(e){return"extension"===e.installType}function ne(t=[],n){var i=/^https:\/\/[\w\-.]*cdn[\w\-.]*\.(pendo-dev\.com|pendo\.io)\/agent\/static\/([\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}|PENDO_API_KEY)\/pendo\.js$/g;for(let e=0;e<t.length;e++){var r=t[e];if(i.test(r.src)||r.id==="pendo-"+n)return r}}function ie(e,t,n){e=function(e=[]){if(e=ne(e))return e.src.replace(/\.js$/,"-staging.js")}(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function re(e,t){if(ee(e=e||Y))return!0;if(t=t||window.location,(o=e)&&o.stagingAgentUrl&&o[X]){o=t.host;for(var n=d.uint8ToBase64(J.create().update(o).digest()),i=0,r=e[X].length;i<r;++i)if(e[X][i]===n)return!0}var o;if((o=e)&&o.stagingAgentUrl&&o.stagingServers)for(var a=0,s=e.stagingServers.length;a<s;++a){var u=e.stagingServers[a];if((u="string"==typeof u?new RegExp("^"+u+"$"):u)instanceof RegExp&&u.test(t.host))return!0}return!1}var oe=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function ae(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function se(e){if(!e._q)for(var t=oe,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){ae(t,e,arguments)}}(t[n],e)}function ue(e,t,n){if(!te(i=e)&&!ee(i)&&re(i)){i=ie(e,!0,n);if(i)return se(t),ce(i,t),!0}var i;return!1}function de(e,t,n){if(r=n,!te(i=e)&&!i.unminified&&r){i=ie(e,!1,n);if(i)return se(t),ce(i,t),!0}var i,r;return!1}function ce(e,t){var n=document.createElement("script"),t=(n["async"]=!0,n.src=Z(t).createScriptURL(e),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(n,t):(document.head||document.body).appendChild(n)}function le(e){Y=e}function pe(){return void 0===u?{}:u}function he(e){return Y[e]}fe(window.setTimeout,window);function fe(e,t){return"function"==typeof e.bind?e.bind(t):e}var ge,Ut=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return fe(e[t],e)}(window),_=c(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Gt&&Gt.global===Gt&&Gt||Function("return this")()||{},i=Array.prototype,F=Object.prototype,D="undefined"!=typeof Symbol?Symbol.prototype:null,U=i.push,u=i.slice,l=F.toString,G=F.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),B=Array.isArray,z=Object.keys,j=Object.create,H=t&&ArrayBuffer.isView,q=isNaN,W=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],K=Math.pow(2,53)-1;function c(r,o){return o=null==o?r.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),n=0;n<e;n++)t[n]=arguments[n+o];switch(o){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}for(var i=Array(o+1),n=0;n<o;n++)i[n]=arguments[n];return i[o]=t,r.apply(this,i)}}function o(e){var t=typeof e;return"function"==t||"object"==t&&!!e}function $(e){return void 0===e}function Z(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var X=r("String"),Y=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=B||r("Array");function g(e,t){return null!=e&&G.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return Y(e)&&q(e)}function ue(e){return function(){return e}}function de(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=K}}function ce(t){return function(e){return null==e?void 0:e[t]}}var m=ce("byteLength"),le=de(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return H?H(e)&&!h(e):le(e)&&pe.test(l.call(e))}:ue(!1),v=ce("length");function fe(e,t){t=function(t){for(var n={},e=t.length,i=0;i<e;++i)n[t[i]]=!0;return{contains:function(e){return!0===n[e]},push:function(e){return n[e]=!0,t.push(e)}}}(t);var n=J.length,i=e.constructor,r=p(i)&&i.prototype||F,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=J[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(z)return z(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return V&&fe(e,n),n}function ge(e,t){var n=y(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function c(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=l.call(e);if(r!==l.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return D.valueOf.call(e)===D.valueOf.call(t);case"[object ArrayBuffer]":case ve:return c(me(e),me(t),n,i)}r="[object Array]"===r;if(!r&&he(e)){var o=m(e);if(o!==m(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];i=i||[];var s=n.length;for(;s--;)if(n[s]===e)return i[s]===t;n.push(e);i.push(t);if(r){if((s=e.length)!==t.length)return!1;for(;s--;)if(!ye(e[s],t[s],n,i))return!1}else{var u,d=y(e);if(s=d.length,y(t).length!==s)return!1;for(;s--;)if(u=d[s],!g(t,u)||!ye(e[u],t[u],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function d(e){if(!o(e))return[];var t,n=[];for(t in e)n.push(t);return V&&fe(e,n),n}function be(i){var r=v(i);return function(e){if(null==e)return!1;var t=d(e);if(v(t))return!1;for(var n=0;n<r;n++)if(!p(e[i[n]]))return!1;return i!==Se||!p(e[we])}}var we="forEach",e=["clear","delete"],n=["get","has","set"],B=e.concat(we,n),Se=e.concat(n),t=["add"].concat(e,we,"has"),n=a?be(B):r("Map"),e=a?be(Se):r("WeakMap"),B=a?be(t):r("Set"),a=r("WeakSet");function w(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ee(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Ie(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function _e(u,d){return function(e){var t=arguments.length;if(d&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=u(i),o=r.length,a=0;a<o;a++){var s=r[a];d&&void 0!==e[s]||(e[s]=i[s])}return e}}var Ce=_e(d),s=_e(y),xe=_e(d,!0);function Te(e){var t;return o(e)?j?j(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function ke(e){return f(e)?e:[e]}function S(e){return b.toPath(e)}function Ae(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function Re(e,t,n){e=Ae(e,S(t));return $(e)?n:e}function Oe(e){return e}function E(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return Ae(e,t)}}function I(r,o,e){if(void 0===o)return r;switch(null==e?3:e){case 1:return function(e){return r.call(o,e)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return function(){return r.apply(o,arguments)}}function Me(e,t,n){return null==e?Oe:p(e)?I(e,t,n):(o(e)&&!f(e)?E:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function _(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Pe(){}function Fe(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=ke,b.iteratee=Le;var C=Date.now||function(){return(new Date).getTime()};function De(t){var n=function(e){return t[e]},e="(?:"+y(t).join("|")+")",i=RegExp(e),r=RegExp(e,"g");return function(e){return i.test(e=null==e?"":""+e)?e.replace(r,n):e}}var t={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Ue=De(t),t=De(Ee(t)),Ge=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Be=/(.)^/,ze={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},je=/\\|'|\r|\n|\u2028|\u2029/g;function He(e){return"\\"+ze[e]}var qe=/^\s*(\w|\$)+\s*$/;var We=0;function Ve(e,t,n,i,r){return i instanceof t?(i=Te(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var x=c(function(r,o){var a=x.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),i=0;i<t;i++)n[i]=o[i]===a?arguments[e++]:o[i];for(;e<arguments.length;)n.push(arguments[e++]);return Ve(r,s,this,this,n)};return s}),Je=(x.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return Ve(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),T=de(v);function k(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=Infinity;for(var r=i.length,o=0,a=v(e);o<a;o++){var s=e[o];if(T(s)&&(f(s)||ae(s)))if(1<t)k(s,t-1,n,i),r=i.length;else for(var u=0,d=s.length;u<d;)i[r++]=s[u++];else n||(i[r++]=s)}return i}var Ke=c(function(e,t){var n=(t=k(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Je(e[i],e)}return e});var $e=c(function(e,t,n){return Ut(function(){return e.apply(null,n)},t)}),Ze=x($e,b,1);function Xe(e){return function(){return!e.apply(this,arguments)}}function Ye(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=x(Ye,2);function et(e,t,n){t=_(t,n);for(var i,r=y(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function tt(o){return function(e,t,n){t=_(t,n);for(var i=v(e),r=0<o?0:i-1;0<=r&&r<i;r+=o)if(t(e[r],r,e))return r;return-1}}var nt=tt(1),it=tt(-1);function rt(e,t,n,i){for(var r=(n=_(n,i,1))(t),o=0,a=v(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function ot(o,a,s){return function(e,t,n){var i=0,r=v(e);if("number"==typeof n)0<o?i=0<=n?n:Math.max(n+r,i):r=0<=n?Math.min(n+1,r):n+r+1;else if(s&&n&&r)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(u.call(e,i,r),se))?n+i:-1;for(n=0<o?i:r-1;0<=n&&n<r;n+=o)if(e[n]===t)return n;return-1}}var at=ot(1,nt,rt),st=ot(-1,it);function ut(e,t,n){t=(T(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function A(e,t,n){if(t=I(t,n),T(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function R(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function dt(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=I(t,i,4),s=n,u=!T(o)&&y(o),d=(u||o).length,c=0<p?0:d-1;for(r||(s=o[u?u[c]:c],c+=p);0<=c&&c<d;c+=p){var l=u?u[c]:c;s=a(s,o[l],l,o)}return s}}var ct=dt(1),lt=dt(-1);function O(e,i,t){var r=[];return i=_(i,t),A(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function N(e,t,n,i){return T(e)||(e=w(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=c(function(e,n,i){var r,o;return p(n)?o=n:(n=S(n),r=n.slice(0,-1),n=n[n.length-1]),R(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Ae(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return R(e,Ne(t))}function mt(e,i,t){var n,r,o=-Infinity,a=-Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=T(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&o<n&&(o=n);else i=_(i,t),A(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?u.call(e):X(e)?e.match(vt):T(e)?R(e,Oe):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=T(e)?e:w(e))[Fe(e.length-1)];for(var i=yt(e),n=v(i),r=(t=Math.max(Math.min(t,n),0),n-1),o=0;o<t;o++){var a=Fe(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function M(o,t){return function(n,i,e){var r=t?[[],[]]:{};return i=_(i,e),A(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var wt=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),St=M(function(e,t,n){e[n]=t}),Et=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),It=M(function(e,t,n){e[n?0:1].push(t)},!0);function _t(e,t,n){return t in n}var Ct=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=I(i,t[1])),t=d(e)):(i=_t,t=k(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=e[a];i(s,a,e)&&(n[a]=s)}}return n}),xt=c(function(e,n){var t,i=n[0];return p(i)?(i=Xe(i),1<n.length&&(t=n[1])):(n=R(k(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Ct(e,i,t)});function Tt(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function kt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Tt(e,e.length-t)}function L(e,t,n){return u.call(e,null==t||n?1:t)}var At=c(function(e,t){return t=k(t,!0,!0),O(e,function(e){return!N(t,e)})}),Rt=c(function(e,t){return At(e,t)});function Ot(e,t,n,i){Z(t)||(i=n,n=t,t=!1),null!=n&&(n=_(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var u=e[a],d=n?n(u,a,e):u;t&&!n?(a&&o===d||r.push(u),o=d):n?N(o,d)||(o.push(d),r.push(u)):N(r,u)||r.push(u)}return r}var Nt=c(function(e){return Ot(k(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Pt(e,t){return e._chain?b(t).chain():t}function Ft(n){return A(Ie(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return U.apply(e,arguments),Pt(this,t.apply(b,e))}}),b}A(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Pt(this,e)}}),A(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Pt(this,e=null!=e?t.apply(e,arguments):e)}});var P=Ft({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:$,isBoolean:Z,isElement:function(e){return!(!e||1!==e.nodeType)},isString:X,isNumber:Y,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&W(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||X(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:B,isWeakSet:a,keys:y,allKeys:d,values:w,pairs:function(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:Ee,functions:Ie,methods:Ie,extend:Ce,extendOwn:s,assign:s,defaults:xe,create:function(e,t){return e=Te(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:Re,has:function(e,t){for(var n=(t=S(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=_(t,n);for(var i=y(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Oe,constant:ue,noop:Pe,toPath:ke,property:Ne,propertyOf:function(t){return null==t?Pe:function(e){return Re(t,e)}},matcher:E,matches:E,times:function(e,t,n){var i=Array(Math.max(0,e));t=I(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:Fe,now:C,escape:Ue,unescape:t,templateSettings:Ge,template:function(o,e,t){e=xe({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||Be).source,(e.interpolate||Be).source,(e.evaluate||Be).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace(je,He),a=r+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(s+="';\n"+i+"\n__p+='"),e}),s+="';\n",t=e.variable){if(!qe.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{throw new Error("Function constructor not supported")}catch(n){throw n.source=s,n}return(e=function(e){return(void 0).call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=S(t)).length;if(!i)return p(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++We+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:x,bind:Je,bindAll:Ke,memoize:function(i,r){var o=function(e){var t=o.cache,n=""+(r?r.apply(this,arguments):e);return g(t,n)||(t[n]=i.apply(this,arguments)),t[n]};return o.cache={},o},delay:$e,defer:Ze,throttle:function(n,i,r){var o,a,s,u,d=0,c=(r=r||{},function(){d=!1===r.leading?0:C(),o=null,u=n.apply(a,s),o||(a=s=null)}),e=function(){var e=C(),t=(d||!1!==r.leading||(d=e),i-(e-d));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout(o),o=null),d=e,u=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=Ut(c,t)),u};return e.cancel=function(){clearTimeout(o),d=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,u,d=function(){var e=C()-o;e<n?r=Ut(d,n-e):(r=null,i||(s=t.apply(u,a)),r||(a=u=null))},e=c(function(e){return u=this,a=e,o=C(),r||(r=Ut(d,n),i&&(s=t.apply(u,a))),s});return e.cancel=function(){clearTimeout(r),r=a=u=null},e},wrap:function(e,t){return x(t,e)},negate:Xe,compose:function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:Ye,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:ut,detect:ut,findWhere:function(e,t){return ut(e,E(t))},each:A,forEach:A,map:R,collect:R,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Xe(_(t)),n)},every:pt,all:pt,some:ht,any:ht,contains:N,includes:N,include:N,invoke:ft,pluck:gt,where:function(e,t){return O(e,E(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=T(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&n<o&&(o=n);else i=_(i,t),A(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=_(i,t),gt(R(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:wt,indexBy:St,countBy:Et,partition:It,toArray:yt,size:function(e){return null==e?0:(T(e)?e:y(e)).length},pick:Ct,omit:xt,first:kt,head:kt,take:kt,initial:Tt,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return O(e,Boolean)},flatten:function(e,t){return k(e,t,!1)},without:Rt,uniq:Ot,unique:Ot,union:Nt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=v(e);i<r;i++){var o=e[i];if(!N(t,o)){for(var a=1;a<n&&N(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:At,unzip:Mt,transpose:Mt,zip:Lt,object:function(e,t){for(var n={},i=0,r=v(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n=n||(t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(u.call(e,i,i+=t));return n},mixin:Ft,"default":b}),Dt=P.toPath;return P.mixin({toPath:function(e){return P.isString(e)?e.split("."):Dt(e)}}),P._=P}());function me(e){return!(null==e)}function ve(e){return _.isFunction(e)||_.isRegExp(e)?e:_.isArray(e)?_.map(e,ve):_.isObject(e)?_.reduce(e,function(e,t,n){return e[n]=ve(t),e},{}):e}var f=function(){var i=_.all,r=_.each,o=_.filter,a=_.first,s=_.find,n=_.map,u=_.pluck,d="snippet",c="pendoconfig",l="global",p="default";const h={};function e(e,t=[c],n,i){e&&!h[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),h[e]=n)}e("additionalApiKeys",[c,d]),e("allowedOriginServers"),e("allowMixedApiKeyFrames",[d,c],!0),e("annotateUrl",[d]),e("apiKey",[c,d]),e("assetHost",[d,c]),e("autoFrameInstall",[d,c],!1),e("blockAgentMetadata",[c],!1),e("contentHost",[d,c]),e("cookieDomain",[d,c]),e("dataHost",[d,c]),e("disableAutoInitialize"),e("disableCookies",[d,c]),e("disablePendo",[d,c],!1),e("disablePersistence",[d,c]),e("enableSignedMetadata",[c],!1),e("frameIdentitySync",[d,c],!1),e("frameIdentityTopDownOnly",[d,c],!0),e("forceAnonymous",[d,c],!1),e("identityStorageLifetime",[d,c]),e("identityStorageSuffix",[d,c]),e("ignoreHashRouting",[d,c]),e("initializeImmediately",[d,c],!1),e("installType"),e("localStorageOnly",[d,c]),e("location.pushState",[d,c],!0),e("maxCookieTTLDays",[d,c],Infinity),e("observeShadowRoots",[d,c],!1),e("pendoCore",[c],!0),e("pendoGlobalKey",[c]),e("preferBroadcastChannel",[d,c],!1),e("preferMutationObserver",[d,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[d,c],!1),e("promotedAgentMetadataConfigurations",[c]),e("queryStringWhitelist",[d]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[d]),e("selfHosted"),e("selfHostedAgentUrl",[d,c]),e("sendEventsWithPostOnly",[d,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[d,c],[]),e("analytics.excludeEvents",[d,c],[]),e("analytics.localStorageUnload",[d,c],!1),e("enableDebugEvents",[d,c]),e("freeNPSData"),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[d,c],!0),e("excludeAllText",[c,d],!1,!0),e("excludeNonGuideAnalytics",[d,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptElementRemoval",[d,c],!1),e("interceptPreventDefault",[d,c],!0),e("interceptStopPropagation",[d,c],!0),e("syntheticClicks.elementRemoval",[d,c],!1),e("syntheticClicks.targetChanged",[d,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[d,c]),e("cacheGuides",[d,c],!1),e("cacheGuidesTimeout",[c],6e5),e("delayGuides",[d]),e("disableDesigner",[c,d],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[d,c],!1),e("disableGuidePseudoStyles",[d,c],!1),e("disableGuides",[d]),e("disablePrefetch",[d,c]),e("enableDesignerKeyboardShortcut",[d]),e("enableGuideTimeout",[c,d],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,d],1e4),e("guideTimeout",[d]),e("guideValidation",[d,c],!1),e("guides.attachPoint",[d]),e("guides.delay",[d]),e("guides.disabled",[d]),e("guides.ejectOnTimeout",[d,c],!1),e("guides.globalScripts",[d,c],[]),e("guides.timeout",[d]),e("guides.tooltip.arrowSize",[d]),e("inlineStyleNonce",[d]),e("leaderKey",[d,c],[]),e("preventCodeInjection",[c,d,l],!1),e("previewModeAssetPath"),e("useAssetHostForDesigner",[d,c],!1),e("storage.allowKeys",[d],"*"),e("disableFeedback",[d]),e("disableFeedbackAutoInit"),e("feedbackSettings",[c],{}),e("pendoFeedback",[c],!1),e("crossAppGuideStorageSuffix",[d,c]),e("enableCrossOriginIsolation",[d,c],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("agentDebuggerPluginLoader"),e("allowPartnerAnalyticsForwarding",[d],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerAgentPluginsLoader",[c,d]),e("trainingPartner"),e("errorClickLogging",[c],!1),e("enableAllEmbeddedGuideEvents",[c],!1),e("formValidation",[c],!1);var f={};function g(e){return h[e]||{name:e}}function m(e,t){if(t)return t=t(),me(e=_.get(t.lookup,(t=e,_.get(t,"key")||_.get(t,"name"))))?e:undefined}function v(e,t){var n=m(e,f[t]);return new w(e.name,n,t)}function y(e,t){return t=t||_.get(e,"supportedSources",[d,c,l]),o(n(t,_.partial(v,e)),function(e){return me(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||_.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&me(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function w(e,t,n){this.name=e,this.value=t,this.source=n}function S(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(u(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[d]=function(){return{lookup:ge||window.pendo_options,name:d}},f[c]=function(){return{lookup:Y,name:c}},f[l]=function(){return{lookup:E,name:l}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get(e,t){return b(e,t).value},getLocalConfig(e,t){return arguments.length?b(e,t,[d]).value:ve(ge)},getHostedConfig(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig(e){ge=e},options:()=>u(h,"name"),sources:{SNIPPET_SRC:d,PENDO_CONFIG_SRC:c,GLOBAL_SRC:l,DEFAULT_SRC:p},validate(t){t.groupCollapsed("Validate Config options"),r(S(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}(),ye="prod",be="extension",we="native";function Se(){return f.get("installType")||pe().installType||we}function Ee(){return Se()===be}function Ie(e){var t;return e===ye?"pendo-io-static":"prod-jp"===e?"pendo-jp-prod-static":"pendo-"+((t=/^prod-(.+)$/.exec(e))&&1<t.length?t[1]:e)+"-static"}function _e(e){return/native/.test(e)}const Ce=e=>{e=_.get(window,e);return e&&_e(e)};var xe,Te=function(e,t){return e=e||10,(t=!isNaN(Ne)&&(!t||Ne<t))&&xe<e};function ke(e){return parseInt(e,10)}var Ae=function(e){return _.isString(e)?e.toLowerCase():e};function Re(){return(window.navigator||{}).userAgent}e=Re(),t=ke((/msie (\d+)/.exec(Ae(e))||[])[1]),xe=t=isNaN(t)?ke((/trident\/.*; rv:(\d+)/.exec(Ae(e))||[])[1]):t;var Oe,Ne=function(e,t){e=ke((/trident\/(\d+)/.exec(Ae(e))||[])[1]);return e=isNaN(e)&&7==t?3:e}(Re(),xe),Me={},Le=ke((/android (\d+)/.exec(Ae(Re()))||[])[1]),Pe=/Boxee/i.test(Re()),Fe=window.document||{},De=Fe.documentMode,Ue=/^(Moz|webkit|O|ms)(?=[A-Z])/,Ge=Fe.body&&Fe.body.style,W=!1,e=!1;if(Ge){for(var Be in Ge)if(Be=Ue.exec(Be)){Oe=(Oe=Be[0]).substr(0,1).toUpperCase()+Oe.substr(1);break}Oe=Oe||"WebkitOpacity"in Ge&&"webkit",W=!!("transition"in Ge||Oe+"Transition"in Ge),e=!!("animation"in Ge||Oe+"Animation"in Ge),!Le||W&&e||(W=_.isString(Fe.body.style.webkitTransition),e=_.isString(Fe.body.style.webkitAnimation))}var t=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id;var ze={supportsHistoryApi:_.memoize(function(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&_.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&_.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&_.get(n,"pushState.writable",!0)&&_.get(n,"replaceState.writable",!0);return!(!e||t||!n||!!(Le<4)||Pe||Ee())}),supportsHashChange:function(){return!(!("onhashchange"in window)||!(!De||7<De)||Ee())},hasEvent(e){var t;return("input"!=e||9!=xe)&&(_.isUndefined(Me[e])&&(t=Fe.createElement("div"),Me[e]="on"+e in t),Me[e])},vendorPrefix:Oe,transitions:W,animations:e,android:Le,msie:xe,msieDocumentMode:De,safari:/apple/i.test(navigator.vendor),sri:"integrity"in document.createElement("script"),addEventListener:_.isFunction(window.addEventListener),MutationObserver:_e(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:_.memoize(function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Re())}),isChromeExtension:t},je=function(){return!isNaN(xe)&&11!=xe&&"CSS1Compat"!==document.compatMode},He=function(e,t){var n,i=e.height,r=e.width;return"top"==e.arrowPosition||"bottom"==e.arrowPosition?(n=0,"top"==e.arrowPosition?(e.top=t.top+t.height,n=-1,e.arrow.top=3,xe<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+E.TOOLTIP_ARROW_SIZE),e.arrow.top=i-E.TOOLTIP_ARROW_SIZE,10==xe?e.arrow.top--:xe<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=10+E.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*E.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-E.TOOLTIP_ARROW_SIZE),e.arrow.border.top=e.arrow.top+n,e.arrow.border.left=e.arrow.left):("left"==e.arrow.hbias?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left-1):"right"==e.arrow.hbias&&(e.left=Math.max(0,t.left-r-E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left+1),e.top=t.top+t.height/2-i/2,e.arrow.top=i/2-E.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e},qe="",We="",Ve="",Je="",Ge="",Ke="2.292.2_",W="2.292.2",$e="xhr",Ze=function(){return je()?Ke+"+quirksmode":Ke};var Xe=/^\s+|\s+$/g;function Ye(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||57344<=i?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}var Qe=(Qe=String.prototype.trim)||function(){return this.replace(Xe,"")},e={exports:{}};!function(){var Y=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===Y?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&u(this)}function u(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(d[255&e]<<24|d[e>>>8&255]<<16|d[e>>>16&255]<<8|d[e>>>24&255])>>32-t:d[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=d[s],s=0,o===r.length)&&(r=u(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=d[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var d=t;function c(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&e instanceof Array?new Uint8Array(e):e,this.c=0,t&&(t.lazy&&(this.i=t.lazy),"number"==typeof t.compressionType&&(this.d=t.compressionType),t.outputBuffer&&(this.a=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.prototype.push=function(e,t){var n,i,r=this.buffer,o=this.length;for(r[this.length++]=t,r[this.length++]=e;0<o&&(n=this.getParent(o),r[o]>r[n]);)i=r[o],r[o]=r[n],r[n]=i,i=r[o+1],r[o+1]=r[n+1],r[n+1]=i,o=n;return this.length},c.prototype.pop=function(){var e,t,n,i=this.buffer,r=i[0],o=i[1];for(this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],n=0;!((t=2*n+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[n]);)e=i[n],i[n]=i[t],i[t]=e,e=i[n+1],i[n+1]=i[t+1],i[t+1]=e,n=t;return{index:o,value:r,length:this.length}};for(var ne=2,l={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,F,n=this.input;switch(this.d){case 0:for(t=0,F=n.length;t<F;){var D,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===F,o=Y,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),D=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&D,a[s++]=D>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,U=i.length;o<U;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var u,d=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(d.b(1,1,Q),d.b(1,2,Q),re(this,n)),l=0,G=c.length;l<G;l++)if(u=c[l],te.prototype.b.apply(d,ie[u]),256<u)d.b(c[++l],c[++l],Q),d.b(c[++l],5),d.b(c[++l],c[++l],Q);else if(256===u)break;this.a=d.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,z,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,x,T,k,q=h,W=f,A=new(ee?Uint32Array:Array)(q+W),R=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<q;N++)A[_++]=m[N];for(N=0;N<W;N++)A[_++]=v[N];if(!ee)for(N=0,x=O.length;N<x;++N)O[N]=0;for(N=T=0,x=A.length;N<x;N+=_){for(_=1;N+_<x&&A[N+_]===A[N];++_);if(C=_,0===A[N])if(C<3)for(;0<C--;)O[R[T++]=0]++;else for(;0<C;)(k=C-3<(k=C<138?C:138)&&k<C?C-3:k)<=10?(R[T++]=17,R[T++]=k-3,O[17]++):(R[T++]=18,R[T++]=k-11,O[18]++),C-=k;else if(R[T++]=A[N],O[A[N]]++,--C<3)for(;0<C--;)R[T++]=A[N],O[A[N]]++;else for(;0<C;)C-3<(k=C<6?C:6)&&k<C&&(k=C-3),R[T++]=16,R[T++]=k-3,O[16]++,C-=k}for(e=ee?R.subarray(0,T):R.slice(0,T),y=oe(O,7),S=0;S<19;S++)H[S]=y[j[S]];for(g=19;4<g&&0===H[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(H[S],3,Q);for(S=0,z=e.length;S<z;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],J=I[0],K=I[1],$=L[0],Z=L[1],P=0,X=p.length;P<X;++P)if(M=p[P],E.b(J[M],K[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b($[V],Z[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,u=w[e.length];switch(a[s++]=65535&u,a[s++]=u>>16&255,a[s++]=u>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(u=n,a[s++]=u[0],a[+s]=u[1],a[5]=u[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,c=null}var i,r,o,a,s,u,d,c,l,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===Y&&(p[s]=[]),u=p[s],!(0<g--)){for(;0<u.length&&32768<i-u[0];)u.shift();if(r<=i+3){for(c&&n(c,-1),o=0,a=r-i;o<a;++o)l=t[i+o],h[f++]=l,++m[l];break}0<u.length?(d=function(e,t,n){var i,r,o,a,s,u,d=0,c=e.length;a=0,u=n.length;e:for(;a<u;a++){if(i=n[u-a-1],(o=3)<d){for(s=d;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=d}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(d<o&&(r=i,d=o),258===o)break}return new b(d,t-r)}(t,i,u),c?c.length<d.length?(l=t[i-1],h[f++]=l,++m[l],n(d,0)):n(c,-1):d.length<y?c=d:n(d,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}u.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,u=new c(572),d=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)d[o]=0;for(o=0;o<s;++o)0<e[o]&&u.push(o,e[o]);if(n=Array(u.length/2),i=new(ee?Uint32Array:Array)(u.length/2),1===n.length)d[u.pop().index]=1;else{for(o=0,a=u.length/2;o<a;++o)n[o]=u.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,u=new(ee?Uint16Array:Array)(t),d=new(ee?Uint8Array:Array)(t),c=new(ee?Uint8Array:Array)(n),l=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(u[t-1]=n,r=0;r<t;++r)f<g?d[r]=0:(d[r]=1,f-=g),f<<=1,u[t-2-r]=(u[t-1-r]/2|0)+n;for(u[0]=d[0],l[0]=Array(u[0]),p[0]=Array(u[0]),r=1;r<t;++r)u[r]>2*u[r-1]+d[r]&&(u[r]=2*u[r-1]+d[r]),l[r]=Array(u[r]),p[r]=Array(u[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<u[t-1];++o)l[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===d[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<u[r];o++)(a=l[r+1][s]+l[r+1][s+1])>e[i]?(l[r][o]=a,p[r][o]=n,s+=2):(l[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===d[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--c[t],++h[e]}(r)}return c}(i,i.length,t),o=0,a=n.length;o<a;++o)d[n[o].index]=r[o]}return d}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,u=e.length;s<u;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,u=16;s<=u;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,u=e.length;s<u;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,S=l,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,u=a.length;s<u;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var d,c=1,l=0,p=o.length,h=0;0<p;){for(p-=d=1024<p?1024:p;l+=c+=o[h++],--d;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call(e.exports);var et={Deflate:c(e.exports).Zlib.Deflate},tt="base64url";function nt(e,t){t=t||tt;e=Ye("string"==typeof e?e:JSON.stringify(e)),e=new et.Deflate(e).compress();return t===tt?d.uint8ToBase64(e):e}t={exports:{}};!function(){var o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||void 0===t?r=r[n]||(r[n]={}):r[n]=t}var a={c:function(e,t,n){return a.update(e,0,t,n)},update:function(e,t,n,i){var r=a.a,o="number"==typeof n?n:n=0,i="number"==typeof i?i:e.length;for(t^=4294967295,o=7&i;o--;++n)t=t>>>8^r[255&(t^e[n])];for(o=i>>3;o--;n+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^r[255&(t^e[n])])>>>8^r[255&(t^e[n+1])])>>>8^r[255&(t^e[n+2])])>>>8^r[255&(t^e[n+3])])>>>8^r[255&(t^e[n+4])])>>>8^r[255&(t^e[n+5])])>>>8^r[255&(t^e[n+6])])>>>8^r[255&(t^e[n+7])];return(4294967295^t)>>>0},d:function(e,t){return(a.a[255&(e^t)]^e>>>8)>>>0},b:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]};a.a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?new Uint32Array(a.b):a.b,e("Zlib.CRC32",a),e("Zlib.CRC32.calc",a.c),e("Zlib.CRC32.update",a.update)}.call(t.exports);var it={CRC32:c(t.exports).Zlib.CRC32},rt=function(e,n){var i;return 200<=(n=n||0)?e:_.isArray(e)?_.map(e,function(e){return rt(e,n+1)}):!_.isObject(e)||_.isDate(e)||_.isRegExp(e)||_.isElement(e)?_.isString(e)?_.escape(e):e:(i={},_.each(e,function(e,t){i[t]=rt(e,n+1)}),i)},ot=function(e){e=Ye(e);return d.uint8ToBase64(e)},at=function(e){if(void 0!==e)return e=Ye(e=_.isString(e)?e:JSON.stringify(e)),it.CRC32.calc(e,0,e.length)};function st(e){return e[Math.floor(Math.random()*e.length)]}function ut(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=st(i);return n}var dt=function(e,t,n){return!(!me(e)||!me(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function v(){return(new Date).getTime()}function ct(){return"undefined"!=typeof $A&&_.isFunction($A.get)&&_.isString($A.get("$Browser.formFactor"))}function lt(e,t=window){var[e,t,n=window]=[_,e,t],i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}e=window;var pt=_.isFunction(e.isFinite)?e.isFinite:e.Number&&_.isFunction(e.Number.isFinite)?e.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function ht(e){return"number"==typeof e&&pt(e)&&Math.floor(e)===e}function ft(e,t,n,i){(t=t||{}).maxRetries=ht(t.maxRetries)?t.maxRetries:10,t.delay=ht(t.delay)?t.delay:50,t.exponentialBackoff=t.exponentialBackoff||!1;var r=function(e){return e&&"[object Function]"==={}.toString.call(e)},o=r(n)?n:function(){},a=r(i)?i:function(){},n=e();n?o(n):0<t.maxRetries?Ut(function(){t.maxRetries=--t.maxRetries,t.delay=t.exponentialBackoff?2*t.delay:t.delay,ft(e,t,o,a)},t.delay):(a||function(){})()}var gt=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function mt(e){return _.isObject(e)&&_.isFunction(e.then)}var vt,yt=_.isFunction(window.decodeURIComponent)?window.decodeURIComponent:_.identity,bt=_.isFunction(window.encodeURIComponent)?window.encodeURIComponent:_.identity;class wt{constructor(){this.listeners={}}addEventListener(e,t){let n=this.listeners[e];n||(n=[],this.listeners[e]=n),_.findIndex(n,e=>t===e)<0&&n.push(t)}removeEventListener(e,t){var n,i=this.listeners[e];i&&0<=(n=_.findIndex(i,e=>t===e))&&(i.splice(n,1),i.length||delete this.listeners[e])}dispatchEvent(t){var e=this.listeners[t.type];e&&_.each(e,e=>{e(t)})}}class St{constructor(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}toString(){let e=this.message;return this.error&&e!==this.error.message&&(e=e+":"+this.error.message),this.attributes&&(e+=": "+_.map(this.attributes,(e,t)=>t+"="+e)),e}hashCode(){return this.toString()}}(t=vt=vt||{}).Debug="debug",t.Info="info",t.Warn="warn",t.Error="error",t.Critical="critical";class Et extends wt{write(e,t,n){this.dispatchEvent(new St(t,e,n))}writeError(e,t,n){let i,r;_.isString(e)?(i=e,r={message:i}):(r=e,i=r.message),n&&n.error&&(r=n.error,delete n.error);e=new St(t,i,n);e.error=r,this.dispatchEvent(e)}debug(e,t){this.write(e,vt.Debug,t)}info(e,t){this.write(e,vt.Info,t)}warn(e,t){this.writeError(e,vt.Warn,t)}error(e,t){this.writeError(e,vt.Error,t)}critical(e,t){this.writeError(e,vt.Critical,t)}}const C=new Et;function It(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const _t=function(){var e=f.get("storage.allowKeys")||"*";return _.isArray(e)?_.indexBy(e):e};function Ct(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function xt(n){_.forEach(_.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function Tt(e){var t=_.noop,t={getItem:()=>null,setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:Ct(n,n.getItem,null),setItem:Ct(n,n.setItem),removeItem:Ct(n,n.removeItem),clearPendo:_.partial(xt,n)}:t}catch(i){return t}}var kt=Tt(function(){return window.localStorage}),At=Tt(function(){return window.sessionStorage});function Rt(e){try{return JSON.parse(e)}catch(t){return null}}var Ot,Nt={},Mt=!0,Lt=function(){return f.get("localStorageOnly")},Pt=function(){return!!f.get("disableCookies")};function Ft(e){Mt=e}var Dt=function(e){var t=Pt()||Lt()?Nt[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?yt(e[2]):null},Bt=function(e,t,n,i){var r,o;!Mt||f.get("preventCookieRefresh")&&Dt(e)===t||(o=Vt(n),(r=new Date).setTime(r.getTime()+o),o=e+"="+bt(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict",Ot&&(o+=";domain="+Ot),Pt()||Lt()?Nt[e]=o:document.cookie=o)};function zt(e){Ot?Bt(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var jt=function(e,t){return`_pendo_${e}.`+(t||E.apiKey)},Ht=function(e,t){return Dt(jt(e,t))};const qt=864e5,Wt=100*qt,Vt=(e=Wt)=>{var t=f.get("maxCookieTTLDays"),t=t<Infinity?t*qt:Infinity;return Math.min(e,t)};var Jt=function(e,t,n,i,r){n=n||Wt,Bt(jt(e,r),t,n,i)};class Kt{constructor(){this.keys={}}addLocal(e,t){this._add(e,"local",t)}addSession(e,t){this._add(e,"session",t)}hasLocal(e){return this._has(e,"local")}hasSession(e){return this._has(e,"session")}getKeyConfig(e,t,n){return me(n)?n:this.keys[e]?this.keys[e][t]:undefined}getKeySerializer(e){return this.keys[e]?this.keys[e].serializer:_.identity}getKeyDeserializer(e){return this.keys[e]?this.keys[e].deserializer:_.identity}_add(e,t,n={}){n=_.extend({type:t,duration:null,isPlain:!1,isSecure:!1,cookieSuffix:undefined,serializer:_.identity,deserializer:_.identity},n),this.keys[e]||(this.keys[e]=n)}_has(e,t){return!!this.keys[e]&&this.keys[e].type===t}}var $t,Zt,Xt,Yt,m,h=function(){const u=new Kt;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=_t())||n[t])return u[r](e)||C.warn(`storage key ${e} is not registered`),i.apply(this,arguments);C.debug(`writing storage key ${e} is not allowed`)}}function d(){return!Pt()&&!Ot&&c("localStorage")}var c=_.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}});function l(e){e.cache&&(e.cache={})}function o(e,t,n){t=u.getKeyConfig(e,"isPlain",t),n=u.getKeyConfig(e,"cookieSuffix",n);t=t?e:jt(e,n);if(d())return localStorage.removeItem(t);zt(t)}const t=_.extend({},At),n=(t.setItem=e(t.setItem,"hasSession"),_.extend({},kt));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){t=u.getKeyConfig(e,"isPlain",t),n=u.getKeyConfig(e,"cookieSuffix",n);let i;var r;return d()?(r=t?e:jt(e,n),null===(i=function(e){if(null===e)return null;try{var t=JSON.parse(e);return t.ttl?t.ttl<(new Date).getTime()?null:String(t.value||t):e}catch(n){return e}}(localStorage.getItem(r)))&&o(e,t,n)):i=t?Dt(e):Ht(e,n),u.getKeyDeserializer(e)(i)},write:e(function(e,t,n,i,r,o){if(n=u.getKeyConfig(e,"duration",n),i=u.getKeyConfig(e,"isPlain",i),r=u.getKeyConfig(e,"isSecure",r),o=u.getKeyConfig(e,"cookieSuffix",o),t=u.getKeySerializer(e)(t),l(c),d())try{var a=i?e:jt(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+Vt(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void l(c)}catch(s){}if(!i)return Jt(e,t,n,r,o);Bt(e,t,n,r)},"hasLocal"),clear:o,registry:u,getLocal:()=>n,getSession:()=>t}}(),Qt=(window.Promise,e=function(){var t=Ut;function d(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void u(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!d(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function u(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){u(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)u(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!d(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a},"function"==typeof(t=window.Promise)&&/native/.test(t)?t:e()),t=(Zt=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},Xt=function(n,i){var r=$t.defer(),o=function(n,i){Ut(function(){var e;try{e=n(i)}catch(t){return void r.reject(t)}e===r.promise?r.reject(new TypeError("Cannot resolve promise with itself")):r.resolve(e)},1)};return{promise:r.promise,handle:function(e,t){e===Yt?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},Yt=1,($t={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,_.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(Yt,e)},a=function(e){t(2,e)},s=function(e,t){e=Xt(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},u=function(e){var t=Zt();try{e(t(d),t(a))}catch(n){t(a)(n)}},d=function(e){var t;try{t=function(e){var t=e&&e.then;if("object"==typeof e&&"function"==typeof t)return function(){return t.apply(e,arguments)}}(e)}catch(n){return void a(n)}t?u(t):o(e)},e=Zt();return{resolve:e(d),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},$t);function en(e){var n,i=m.defer(),r=_.isArray(e)?[]:{},o=_.size(e);return o?(n=!1,_.each(e,function(e,t){m.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):m.resolve(e)}!Ee()&&ze.isMinimumIEVersion(11)?m={all:function(e){return _.isArray(e)?Qt.all.apply(Qt,arguments):en(e)},reject:function(){return Qt.reject.apply(Qt,arguments)},resolve:function(){return Qt.resolve.apply(Qt,arguments)},defer:function(){var n={};return n.promise=new Qt(function(e,t){n.resolve=e,n.reject=t}),n}}:((m=t).all=en,m.reject=function(e){var t=m.defer();return t.reject(e),t.promise},m.resolve=function(e){var t=m.defer();return t.resolve(e),t.promise});const tn=h.getSession(),nn="pendo_tabId",rn="pendo_parentTabId";on=window,e=_.partial,an=_.extend,sn=_.omit,un={data:{},getItem(e){return un.data[e]},setItem(e,t){un.data[e]=t},removeItem(e){un.data[e]=null,delete un.data[e]}},dn=e(fn,nn,gn),cn=e(fn,"pendo_frameId",un);var on,an,sn,un,dn,cn,ln={addTracerIds(e){return sn(an(e,{parentTabId:pn(rn,gn),tabId:dn(),frameId:cn()}),function(e){return e===undefined})},setParentTabId:function(e){hn(rn,e,gn)},newTabId:function(){var e=ut(16);return hn(nn,e,gn),e},getTabId:dn,getFrameId:cn,tabIdChanged:function(t){var e;if(ze.addEventListener)return on.addEventListener("storage",e=function(e){e.key===nn&&(un.removeItem(nn),t())}),function(){on.removeEventListener("storage",e)}}};function pn(e,t){return(_.isFunction(t)?t():t).getItem(e)}function hn(e,t,n){(_.isFunction(n)?n():n).setItem(e,t)}function fn(e,t){var n=pn(e,t);return n||hn(e,n=ut(16),t),n}function gn(){return n=un,i=tn,{getItem(e){var t=n.getItem(e);return t===undefined&&(t=i.getItem(e),n.setItem(e,t)),t},setItem(e,t){n.setItem(e,t),i.setItem(e,t)},removeItem(e){n.removeItem(e),i.removeItem(e)}};var n,i}function mn(){var i=this._handlers={};return this.addEventListener=function(){this.on.apply(this,arguments)},this.removeEventListener=function(){this.off.apply(this,arguments)},this.on=function(e,t){var n;return(_.isString(e)||_.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),_.indexOf(n,t)<0)&&n.push(t),this},this.one=function(e,t){var n=this,i=function(){n.off(e,i),t.apply(this,arguments)};return this.on(e,i)},this.once=this.one,this.off=function(e,t){var n,e=i[e];return _.isFunction(t)?(n=_.indexOf(e,t),e&&0<=n&&e.splice(n,1)):e&&t===undefined&&(e.length=0),this},this.trigger=function(e){var t=i[e]?i[e].slice():[],n=_.toArray(arguments).slice(1);return _.map(t,function(e){return e.apply(E,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return _.map(e,function(e){if(!t.cancel)return e.apply(E,[t])})},this.triggerAsync=function(){var e=_.map(this.trigger.apply(this,arguments),function(e){return!1===e?m.reject():e});return m.all(e)},this}mn.clear=function(t){t&&_.each(_.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};Ri={DEBUG:t="debug",FRAMES:e="frames",LIFECYCLE:i="lifecycle",RUNTIME:Di="runtime"},vn=[new n("ready",[t,i]),new n("deliverablesLoaded",[t,i]),new n("guidesFailed",[t,i]),new n("guidesLoaded",[t,i]),new n("guideListChanged",[t,i]),new n("guideSeen",[t,i]),new n("guideNotSeen",[t,i]),new n("guideAdvanced",[t,i]),new n("guideDismissed",[t,i]),new n("guideSnoozed",[t,i]),new n("beforeGuideShow",[i]),new n("beforeMount",[Di]),new n("beforeAdvance",[Di]),new n("beforePrevious",[Di]),new n("beforeSnooze",[Di]),new n("beforeDismiss",[Di]),new n("beforeUnmount",[Di]),new n("unmounted",[Di]),new n("beforeUpdate",[Di]),new n("updated",[Di]),new n("guideSnoozeCancelled",[t,i]),new n("guideTimeout",[t,i]),new n("guideLoopStopped",[t,i]),new n("guideUpdateComplete",[i]),new n("designerLaunched",[t,i]),new n("debuggerLaunched",[t,i]),new n("stepEligibility",[t]),new n("identify",[t,i]),new n("metadata",[t,i]),new n("appUnloaded",[t,i]),new n("appHidden",[t,i]),new n("startPreview",[t]),new n("resourceFetchFail",[t]),new n("contentVerificationFail",[t]),new n("contentValidationFail",[t]),new n("renderFail",[t]),new n("appUsage",[i]),new n("eventCaptured",[t]),new n("error",[t,i]),new n("onClickCaptured",[t]),new n("urlChanged",[i]),new n("leaderChanged",[i,e]),new n("transmit:locked",[i]),new n("transmit:unlocked",[i]),new n("sessionChanged",[i]),new n("ptm:unpaused",[i]),new n("ptm:paused",[i]),new n("childFrameJoined",[e]),new n("tabIdChanged:self",[t,i])],yn=mn.call({}),bn={debug(){return ln.addTracerIds(Sn.apply(null,arguments))},lifecycle:Sn,runtime:Sn,frames:Sn},wn=yn.trigger,yn.trigger=En,_.each(_.values(Ri),function(e){yn[e]={on:_.partial(yn.on,e),one:_.partial(yn.one,e),off:_.partial(yn.off,e)}}),_.each(vn,function(e){e=e.name,yn[e]={on:_.partial(yn.on,e),one:_.partial(yn.one,e),off:_.partial(yn.off,e),trigger:_.partial(En,e)}});var vn,yn,bn,wn,y=yn;function n(e,t){this.name=e,this.groups=t||[]}function Sn(e,t){e={type:e,ts:v()};return me(t)&&_.isObject(t)&&(e.data=t),e}function En(t){var e=_.findWhere(vn,{name:t}),n=_.toArray(arguments).slice(1),i={};return _.each(e.groups,function(e){i.cancel||(i=bn[e](t,n),wn.apply(yn,[e].concat(i)))}),i.cancel||(i=Sn(t,n),wn.apply(yn,[t].concat(i))),i}function In(e){var i=[],r=[],o={},a={},s={state:{},commit:function(t,n){var e=o[t];if(!e)throw new Error("mutation "+t+" not found");e(n),_.each(i,function(e){e({type:t,payload:n},s.state)})},dispatch:function(t,n){var e=a[t];if(e)return e=e(n),_.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:_.partial(t,i),subscribeAction:_.partial(t,r),registerModule:function h(n,e){_.isString(n)&&(n=[n]);var t=d(s.state,e,n);_.extend(s.getters,p(e,t,s,n));_.extend(o,c(e,t,n));_.extend(a,l(e,t,s,n));_.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return _.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):_.noop;var n,i}function u(e,t){return(e=t?e.concat([t]):e).join("/")}function d(e,t,n){var i=e;return _.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),_.extend(i,ve(t.state||{}))}function c(e,n,i){var r={};return _.each(e.mutations,function(e,t){r[u(i,t)]=_.partial(e,n)}),r}function l(e,t,i,r){var n={},o={state:t,rootState:i.state,commit:function(e,t,n){n=n&&n.root?e:u(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:u(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=u(t);i&&(i+="/");return _.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return _.each(e.actions,function(e,t){n[u(r,t)]=_.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return _.each(e.getters,function(e,t){a[t]=o[u(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var g=In(),_n=(g.subscribe(function(e,t){}),"_PENDO_T_"),Cn=11;const xn="visitorId",Tn="oldVisitorId",kn="accountId";var An=function(e=""){return e+ut(Cn)};var Rn=function(e){return me(e)&&""!==e&&e!==Fn&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===Qe.call(e).length)},On=function(e){return!(!e||"number"==typeof e)&&e.substring(0,_n.length)===_n},Nn=function(){return!f.get("disablePersistence")},Mn=function(e){e=e||[xn,kn,Tn];const t=f.get("identityStorageSuffix")||E.apiKey;_.each(e,function(e){zt(jt(e,t)),h.clear(e,!1,t)})},Ln="VISITOR-UNIQUE-ID",Pn=function(e){return Ln===e},Fn="::",Dn=function(e){return new RegExp(Fn).test(e)};function Un(e){return e.old_visitor_id!==e.visitor_id}var Gn,Bn=function(e,t){var n,i={old_visitor_id:b(),old_account_id:qn()};Rn(e)?(Rn(n=e)?jn(""+n):C.info("Invalid visitor id "+n),n=t,_.isUndefined(n)?C.info("No account id provided"):Rn(n)?(E.accountId=""+n,Nn()&&Wn(kn,E.accountId)):(delete E.accountId,delete(t=f.getLocalConfig()).account,f.setLocalConfig(t),g.commit("metadata/clearAccount"),Nn()&&h.clear(kn),C.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=b({generate:!0}),i.account_id=qn(),!Un(t=i)&&t.old_account_id===t.account_id||(Un(i)&&(n=i.old_visitor_id)&&(Gn=n,Wn(Tn,Gn)),y.identify.trigger(i))):C.info("Invalid visitor id "+e)};function zn(){return An(_n)}function jn(e){E.visitorId!==e&&(Nn()&&Wn(xn,e),E.visitorId=e)}function b(e={}){var t=function(){if(Rn(E.visitorId))return E.visitorId;var e=f.get("forceAnonymous");if(Nn()){var t=Vn(xn);if(Rn(t)&&(!e||On(t)))return t}return undefined}();return jn(t=!t&&e.generate?zn():t),t}function Hn(){return b()||zn()}var qn=function(){var e=f.get("forceAnonymous");return Rn(E.accountId)||!Nn()||e||(e=Vn(kn),E.accountId=e),E.accountId};function Wn(e,t){var n=f.get("identityStorageLifetime")||Wt,i=f.get("identityStorageSuffix")||E.apiKey;h.write(e,t,n,!1,!0,i)}function Vn(e){var t=f.get("identityStorageSuffix"),n=t||E.apiKey,n=h.read(e,!1,n)||h.read(e,!1,E.apiKey);return t&&h.clear(e,!1,E.apiKey),n}function Jn(){var e={old_visitor_id:b({generate:!1}),old_account_id:qn(),wasCleared:!0};Mn(),delete E.visitorId,delete E.accountId,b({generate:!0}),_.extend(e,{visitor_id:b(),account_id:qn()}),y.identify.trigger(e)}function Kn(e){e=e.data[0];return _.get(e,"wasCleared")}var $n=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||C.critical(e)}}};Di=function(n){return function Zn(e){var t=n.createElement("a");if(t.href=e,":"===t.protocol)throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");if(t.href!==e&&t.href!==encodeURI(e))throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return t.toString||(t.toString=function(){return t.href}),null==t.origin&&(t.origin=t.protocol+"//"+t.hostname,"80"!==t.port)&&"443"!==t.port&&(t.origin+=":"+t.port),t}};var Zn="function"==typeof(e=window.URL)&&/native/.test(e)?e:Di(document);function Xn(e){if((t=e)&&_.isFunction(t.composedPath))try{return e.composedPath()}catch(n){return e.path}var t;return null}function Yn(e){return e.shadowRoot}function Qn(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function ei(e,t){return Qn(e,t)?e.host:e.parentNode}var ti={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:Xn,getShadowRoot:Yn,isElementShadowRoot:Qn,getParent:ei,isShadowSelector:ni,wrapSizzle(i,d){i.intercept(function(a,t,n,i,r){var e,o;if(ni(t))return _.isFunction(document.documentElement.attachShadow)?(o=a,e=(e=t).replace(ti.PSEUDO_REGEX,ti.PSEUDO_SAFE),e=_.map(o.tokenize(e),ii),_.reduce(e,function(e,t){return e.concat(s(t,n,i,r))},[])):a(t.replace(ti.PSEUDO_REGEX,""),n,i,r);{const u=a(t,n,i,r);return 0<d.cache.size&&d.cache.forEach(e=>{n&&n!==document&&!function(e,t,n){let i=t;for(;i;){if(i===e)return 1;i=ei(i,n)}}(n,e)||u.push(...a(t,e,i,r))}),u}function s(e,t,n,i){var r,o;return ni(e)?(o=s((r={baseCss:(o=(o=e).split(ti.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(ti.PSEUDO_ELEMENT)}).baseCss,t),_.reduce(o,function(e,t){return ti.getShadowRoot(t)?e.concat(s(r.shadowCss,ti.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!ti.isElementShadowRoot(t)&&(ni(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function ni(e){return!!e&&-1<e.indexOf(ti.PSEUDO_ELEMENT)}function ii(e){return _.reduce(e,function(e,t){return t.value===ti.PSEUDO_SAFE?e+ti.PSEUDO_ELEMENT:e+t.value},"")}var ri,w,S,oi,ai,si,ui,di,ci,li,pi,hi,I,fi,gi,mi,vi,yi,bi,t={exports:{}},i=t,wi=window,x="sizzle"+ +new Date,Si=wi.document,Ei=0,Ii=0,_i=or(),Ci=or(),xi=or(),Ti=or(),ki=function(e,t){return e===t&&(pi=!0),0},Ai={}.hasOwnProperty,Ri=[],Oi=Ri.pop,Ni=Ri.push,Mi=Ri.push,Li=Ri.slice,Pi=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},Fi="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",e="(?:\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Di="\\["+r+"*("+e+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+e+"))|)"+r+"*\\]",Ui=":("+e+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Di+")*)|.*)\\)|)",Gi=new RegExp(r+"+","g"),Bi=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),zi=new RegExp("^"+r+"*,"+r+"*"),ji=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),Hi=new RegExp(r+"|>"),qi=new RegExp(Ui),Wi=new RegExp("^"+e+"$"),Vi={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+Di),PSEUDO:new RegExp("^"+Ui),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+Fi+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},Ji=/HTML$/i,Ki=/^(?:input|select|textarea|button)$/i,$i=/^h\d$/i,Zi=/^[^{]+\{\s*\[native \w/,Xi=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Yi=/[+~]/,Qi=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),er=function(e,t){e="0x"+e.slice(1)-65536;return t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))},tr=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,nr=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ir=function(){hi()},rr=gr(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Mi.apply(Ri=Li.call(Si.childNodes),Si.childNodes),Ri[Si.childNodes.length].nodeType}catch(oS){Mi={apply:Ri.length?function(e,t){Ni.apply(e,Li.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function T(e,t,n,i){var r,o,a,s,u,d,c=t&&t.ownerDocument,l=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==l&&9!==l&&11!==l)return n;if(!i&&(hi(t),t=t||I,gi)){if(11!==l&&(s=Xi.exec(e)))if(r=s[1]){if(9===l){if(!(d=t.getElementById(r)))return n;if(d.id===r)return n.push(d),n}else if(c&&(d=c.getElementById(r))&&bi(t,d)&&d.id===r)return n.push(d),n}else{if(s[2])return Mi.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&w.getElementsByClassName&&t.getElementsByClassName)return Mi.apply(n,t.getElementsByClassName(r)),n}if(w.qsa&&!Ti[e+" "]&&(!mi||!mi.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(d=e,c=t,1===l&&(Hi.test(e)||ji.test(e))){for((c=Yi.test(e)&&pr(t.parentNode)||t)===t&&w.scope||((a=t.getAttribute("id"))?a=a.replace(tr,nr):t.setAttribute("id",a=x)),o=(u=si(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+fr(u[o]);d=u.join(",")}try{return Mi.apply(n,c.querySelectorAll(d)),n}catch(p){Ti(e,!0)}finally{a===x&&t.removeAttribute("id")}}}return di(e.replace(Bi,"$1"),t,n,i)}function or(){var n=[];function i(e,t){return n.push(e+" ")>S.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function ar(e){return e[x]=!0,e}function sr(e){var t=I.createElement("fieldset");try{return!!e(t)}catch(oS){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ur(e,t){for(var n=e.split("|"),i=n.length;i--;)S.attrHandle[n[i]]=t}function dr(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function cr(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&rr(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function lr(a){return ar(function(o){return o=+o,ar(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function pr(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ri in w=T.support={},ai=T.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!Ji.test(t||e&&e.nodeName||"HTML")},hi=T.setDocument=function(e){var e=e?e.ownerDocument||e:Si;return e!=I&&9===e.nodeType&&e.documentElement&&(fi=(I=e).documentElement,gi=!ai(I),Si!=I&&(e=I.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",ir,!1):e.attachEvent&&e.attachEvent("onunload",ir)),w.scope=sr(function(e){return fi.appendChild(e).appendChild(I.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),w.attributes=sr(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=sr(function(e){return e.appendChild(I.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=!!I.getElementsByClassName,w.getById=sr(function(e){return fi.appendChild(e).id=x,!I.getElementsByName||!I.getElementsByName(x).length}),w.getById?(S.filter.ID=function(e){var t=e.replace(Qi,er);return function(e){return e.getAttribute("id")===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&gi)return(e=t.getElementById(e))?[e]:[]}):(S.filter.ID=function(e){var t=e.replace(Qi,er);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&gi){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),S.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},S.find.CLASS=w.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&gi?t.getElementsByClassName(e):w.qsa&&gi?t.querySelectorAll("."+e):void 0},vi=[],mi=[],(w.qsa=!!I.querySelectorAll)&&(sr(function(e){var t;fi.appendChild(e).innerHTML=Z().createHTML("<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&mi.push("[*^$]="+r+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||mi.push("\\["+r+"*(?:value|"+Fi+")"),e.querySelectorAll("[id~="+x+"-]").length||mi.push("~="),(t=I.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||mi.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||mi.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||mi.push(".#.+[+~]"),e.querySelectorAll("\\\f"),mi.push("[\\r\\n\\f]")}),sr(function(e){e.innerHTML=Z().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=I.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&mi.push("name"+r+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&mi.push(":enabled",":disabled"),fi.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&mi.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),mi.push(",.*:")})),(w.matchesSelector=Zi.test(yi=fi.matches||fi.webkitMatchesSelector||fi.mozMatchesSelector||fi.oMatchesSelector||fi.msMatchesSelector))&&sr(function(e){w.disconnectedMatch=yi.call(e,"*"),yi.call(e,"[s!='']:x"),vi.push("!=",Ui)}),mi=mi.length&&new RegExp(mi.join("|")),vi=vi.length&&new RegExp(vi.join("|")),e=!!fi.compareDocumentPosition,bi=e||fi.contains?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},ki=e?function(e,t){var n;return e===t?(pi=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!w.sortDetached&&t.compareDocumentPosition(e)===n?e==I||e.ownerDocument==Si&&bi(Si,e)?-1:t==I||t.ownerDocument==Si&&bi(Si,t)?1:li?Pi(li,e)-Pi(li,t):0:4&n?-1:1)}:function(e,t){if(e===t)return pi=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==I?-1:t==I?1:r?-1:o?1:li?Pi(li,e)-Pi(li,t):0;if(r===o)return dr(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?dr(a[i],s[i]):a[i]==Si?-1:s[i]==Si?1:0}),I},T.matches=function(e,t){return T(e,null,null,t)},T.matchesSelector=function(e,t){if(hi(e),w.matchesSelector&&gi&&!Ti[t+" "]&&(!vi||!vi.test(t))&&(!mi||!mi.test(t)))try{var n=yi.call(e,t);if(n||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(oS){Ti(t,!0)}return 0<T(t,I,null,[e]).length},T.contains=function(e,t){return(e.ownerDocument||e)!=I&&hi(e),bi(e,t)},T.attr=function(e,t){(e.ownerDocument||e)!=I&&hi(e);var n=S.attrHandle[t.toLowerCase()],n=n&&Ai.call(S.attrHandle,t.toLowerCase())?n(e,t,!gi):undefined;return n!==undefined?n:w.attributes||!gi?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},T.escape=function(e){return(e+"").replace(tr,nr)},T.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,n=[],i=0,r=0;if(pi=!w.detectDuplicates,li=!w.sortStable&&e.slice(0),e.sort(ki),pi){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return li=null,e},oi=T.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=oi(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=oi(t);return n},(S=T.selectors={cacheLength:50,createPseudo:ar,match:Vi,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Qi,er),e[3]=(e[3]||e[4]||e[5]||"").replace(Qi,er),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||T.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&T.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Vi.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&qi.test(n)&&(t=(t=si(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Qi,er).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=_i[e+" "];return t||(t=new RegExp("(^|"+r+")"+e+"("+r+"|$)"))&&_i(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=T.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e.replace(Gi," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,e,t,g,m){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,u,d=v!=y?"nextSibling":"previousSibling",c=e.parentNode,l=b&&e.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(v){for(;d;){for(a=e;a=a[d];)if(b?a.nodeName.toLowerCase()===l:1===a.nodeType)return!1;u=d="only"===f&&!u&&"nextSibling"}return!0}if(u=[y?c.firstChild:c.lastChild],y&&p){for(h=(s=(i=(r=(o=(a=c)[x]||(a[x]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Ei&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[d]||(h=s=0,u.pop());)if(1===a.nodeType&&++h&&a===e){r[f]=[Ei,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[x]||(a[x]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Ei&&i[1]:h))for(;(a=++s&&a&&a[d]||(h=s=0,u.pop()))&&((b?a.nodeName.toLowerCase()!==l:1!==a.nodeType)||!++h||(p&&((r=(o=a[x]||(a[x]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[Ei,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=S.pseudos[e]||S.setFilters[e.toLowerCase()]||T.error("unsupported pseudo: "+e);return a[x]?a(o):1<a.length?(t=[e,e,"",o],S.setFilters.hasOwnProperty(e.toLowerCase())?ar(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=Pi(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:ar(function(e){var i=[],r=[],s=ui(e.replace(Bi,"$1"));return s[x]?ar(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),i[0]=null,!r.pop()}}),has:ar(function(t){return function(e){return 0<T(t,e).length}}),contains:ar(function(t){return t=t.replace(Qi,er),function(e){return-1<(e.textContent||oi(e)).indexOf(t)}}),lang:ar(function(n){return Wi.test(n||"")||T.error("unsupported lang: "+n),n=n.replace(Qi,er).toLowerCase(),function(e){var t;do{if(t=gi?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=wi.location&&wi.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===fi},focus:function(e){return e===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:cr(!1),disabled:cr(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!S.pseudos.empty(e)},header:function(e){return $i.test(e.nodeName)},input:function(e){return Ki.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:lr(function(){return[0]}),last:lr(function(e,t){return[t-1]}),eq:lr(function(e,t,n){return[n<0?n+t:n]}),even:lr(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:lr(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:lr(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:lr(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=S.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.pseudos[ri]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ri);for(ri in{submit:!0,reset:!0})S.pseudos[ri]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ri);function hr(){}function fr(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function gr(a,e,t){var s=e.dir,u=e.next,d=u||s,c=t&&"parentNode"===d,l=Ii++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var i,r,o=[Ei,l];if(n){for(;e=e[s];)if((1===e.nodeType||c)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||c)if(r=(r=e[x]||(e[x]={}))[e.uniqueID]||(r[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[d])&&i[0]===Ei&&i[1]===l)return o[2]=i[2];if((r[d]=o)[2]=a(e,t,n))return!0}return!1}}function mr(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function vr(e,t,n,i,r){for(var o,a=[],s=0,u=e.length,d=null!=t;s<u;s++)!(o=e[s])||n&&!n(o,i,r)||(a.push(o),d&&t.push(s));return a}function yr(h,f,g,m,v,e){return m&&!m[x]&&(m=yr(m)),v&&!v[x]&&(v=yr(v,e)),ar(function(e,t,n,i){var r,o,a,s=[],u=[],d=t.length,c=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)T(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),l=!h||!e&&f?c:vr(c,s,h,n,i),p=g?v||(e?h:d||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=vr(p,u),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[u[o]]=!(l[u[o]]=a));if(e){if(v||h){if(v){for(r=[],o=p.length;o--;)(a=p[o])&&r.push(l[o]=a);v(null,p=[],r,i)}for(o=p.length;o--;)(a=p[o])&&-1<(r=v?Pi(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=vr(p===t?p.splice(d,p.length):p),v?v(null,t,p,i):Mi.apply(t,p)})}hr.prototype=S.filters=S.pseudos,S.setFilters=new hr,si=T.tokenize=function(e,t){var n,i,r,o,a,s,u,d=Ci[e+" "];if(d)return t?0:d.slice(0);for(a=e,s=[],u=S.preFilter;a;){for(o in n&&!(i=zi.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=ji.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Bi," ")}),a=a.slice(n.length)),S.filter)S.filter.hasOwnProperty(o)&&(i=Vi[o].exec(a))&&(!u[o]||(i=u[o](i)))&&(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?T.error(e):Ci(e,s).slice(0)},ui=T.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=xi[e+" "];if(!a){for(n=(t=t||si(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=S.relative[e[0].type],a=o||S.relative[" "],s=o?1:0,u=gr(function(e){return e===i},a,!0),d=gr(function(e){return-1<Pi(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==ci)||((i=t).nodeType?u:d)(e,t,n),i=null,e}];s<r;s++)if(t=S.relative[e[s].type])c=[gr(mr(c),t)];else{if((t=S.filter[e[s].type].apply(null,e[s].matches))[x]){for(n=++s;n<r&&!S.relative[e[n].type];n++);return yr(1<s&&mr(c),1<s&&fr(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Bi,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&fr(e))}c.push(t)}return mr(c)}(t[n]))[x]?r:o).push(a);(a=xi(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,u=0,d="0",c=e&&[],l=[],p=ci,h=e||b&&S.find.TAG("*",r),f=Ei+=null==p?1:Math.random()||.1,g=h.length;for(r&&(ci=t==I||t||r);d!==g&&null!=(o=h[d]);d++){if(b&&o){for(a=0,t||o.ownerDocument==I||(hi(o),n=!gi);s=m[a++];)if(s(o,t||I,n)){i.push(o);break}r&&(Ei=f)}y&&((o=!s&&o)&&u--,e)&&c.push(o)}if(u+=d,y&&d!==u){for(a=0;s=v[a++];)s(c,l,t,n);if(e){if(0<u)for(;d--;)c[d]||l[d]||(l[d]=Oi.call(i));l=vr(l)}Mi.apply(i,l),r&&!e&&0<l.length&&1<u+v.length&&T.uniqueSort(i)}return r&&(Ei=f,ci=p),c},y?ar(i):i))).selector=e}return a},di=T.select=function(e,t,n,i){var r,o,a,s,u,d="function"==typeof e&&e,c=!i&&si(e=d.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&gi&&S.relative[o[1].type]){if(!(t=(S.find.ID(a.matches[0].replace(Qi,er),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Vi.needsContext.test(e)?0:o.length;r--&&(a=o[r],!S.relative[s=a.type]);)if((u=S.find[s])&&(i=u(a.matches[0].replace(Qi,er),Yi.test(o[0].type)&&pr(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&fr(o))break;return Mi.apply(n,i),n}}return(d||ui(e,c))(i,t,!gi,n,!t||Yi.test(e)&&pr(t.parentNode)||t),n},w.sortStable=x.split("").sort(ki).join("")===x,w.detectDuplicates=!!pi,hi(),w.sortDetached=sr(function(e){return 1&e.compareDocumentPosition(I.createElement("fieldset"))}),sr(function(e){return e.innerHTML=Z().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||ur("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&sr(function(e){return e.innerHTML=Z().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ur("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),sr(function(e){return null==e.getAttribute("disabled")})||ur(Fi,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var br=wi.Sizzle;T.noConflict=function(){return wi.Sizzle===T&&(wi.Sizzle=br),T},i.exports?i.exports=T:wi.Sizzle=T;wr=c(t.exports),(Sr=_.extend(function(){return Sr.Sizzle.apply(this,arguments)},wr)).reset=function(){Sr.Sizzle=wr,Sr.matchesSelector=wr.matchesSelector,Sr.matches=wr.matches},Sr.intercept=function(e,t="Sizzle"){Sr[t]=_.wrap(Sr[t],e)},Sr.reset();var wr,Sr,Er=Sr;function k(e,t){var n,i=this;if(e&&e instanceof k)return e;if(!(i instanceof k))return new k(e,t);if(e)if(e.nodeType)n=[e];else if(r=/^<(\w+)\/?>$/.exec(e))n=[document.createElement(r[1])];else if(/^<[\w\W]+>$/.test(e)){var r=document.createElement("div");r.innerHTML=e,n=_.toArray(r.childNodes)}else if(_.isString(e)){t instanceof k&&(t=0<t.length?t[0]:null);try{n=Er(e,t)}catch(o){n=[]}}else n=[e];else n=[];return _.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,"undefined"!=typeof Symbol&&Symbol.iterator&&(i[Symbol.iterator]=function*(){for(const e of n)yield e}),i}function Ir(){this.ownerKey="_pendo_"+ut(8)}_.extend(Ir.prototype,{cache(e){var t;return _.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set(e,t,n){e=this.cache(e);return e[t]=n,e},get(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!_.isEmpty(n)||(e[this.ownerKey]=undefined)}});var _r=new Ir,Cr=1;function xr(e){return _.isNumber(e.eventPhase)&&e.eventPhase===Cr}function l(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?lt("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{Tr(e,t,n,i)}):_.noop}function Tr(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?lt("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var kr=function(e){var t=ti.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},Ar={add(t,e){var n=_r.get(t),i=(n.handle||(n.handle=function(e){Ar.dispatch(t,e)}),e.id=_.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||l(t,e.type,n.handle,e.capture),i.push(e),()=>{k.event.remove(t,e.type,e.handler,e.capture)}},dispatch(r,o){var e,t,a;r&&(e=(_r.get(r,"captureEvents")||{})[o.type]||[],t=(_r.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=_r.get(o)).ignore&&(a.handled=a.handled||{},_.each(t.slice(),function(e){var t=!!e.capture===xr(o),n=(n=o,_.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(kr(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!me(e.selector)||0<k(kr(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){C.error(i)}}}))},remove(e,t,n,i){var r=_r.get(e);if(r){if(_.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=_.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],Tr(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],Tr(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],Tr(e,t,r.handle));_.isEmpty(r.captureEvents)&&_.isEmpty(r.bubbleEvents)&&(_r.remove(e,"captureEvents"),_r.remove(e,"bubbleEvents"),_r.remove(e,"handle"))}},trigger(e){var t=_r.get(e);if(!t.pendoStopped)if(e.bubbles){var n=kr(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=ti.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),xr(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)Ar.dispatch(o[i],e);(e=Ar.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(Ar.dispatch(n,e),(e=Ar.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)Ar.dispatch(o[i],e)}}else Ar.dispatch(kr(e),e)},clone(e){var t=_.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",_r.ownerKey]),e=ti.getComposedPath(e);return e&&(t.composedPath=_.constant(e)),t},$:{on(e,n,i,r){return _.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){_.each(e,function(e){Ar.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},Rr=_.extend(Nr,{get:function(e,t){return Nr({method:"GET",url:e,headers:t})},post:Mr,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",Mr(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(_.isArray(t))i=t;else{if(!_.isObject(t))return e||"";i=_.keys(t)}var i=_.map(i,function(e){return _.isArray(t)?bt(e):bt(e)+"="+bt(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=_.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported(){return void 0!==Or()}});function Or(){return window.XMLHttpRequest||ActiveXObject}function Nr(e){var t=m.defer(),n=new(Or())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),_.each(e.headers,function(e,t){n.setRequestHeader(t.toLowerCase(),e)}),n.onreadystatechange=function(){var e;4===n.readyState&&(e=function(e){var t={status:e.status};try{t.data=JSON.parse(e.responseText)}catch(n){t.data=e.responseText}return t}(n),200<=n.status&&n.status<300?t.resolve(e):t.reject(e))},e.withCredentials&&(n.withCredentials=!0),e.data?n.send(e.data):n.send(),t.promise}function Mr(e,t,n){return Nr({method:"POST",url:e,data:t,headers:n})}var Lr,Pr=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},Fr=function(){return f.get("annotateUrl")||zr()||f.get("sanitizeUrl")||f.get($r)||f.get("xhrWhitelist")},Dr=function(){return zr()?{href:Br(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Ur=function(){return new Zn(window.location.href)},Gr=function(){var e,t,n,i;return Fr()?(e=Ur(),zr()&&(e.href=Br(e.href)),Pr()?(t=A.electronResourcesPath(),n=A.electronUserDirectory(),i=A.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(A.electronUserHomeDirectory(),"").replace("file:///","")):Xr(e.href)):g.getters["location/href"]()},Br=function(e){return e.match(/(.+?)(?:#|$)/)[1]},zr=function(){return!0===f.get("ignoreHashRouting")},jr=500;function Hr(){return _.isUndefined(Lr)&&function e(){Kr(),Lr=Ut(e,jr)}(),()=>{clearTimeout(Lr),Lr=undefined}}var qr=function(e){var t;try{t=Gr()}catch(n){}return t},Wr=[],Vr=!1,Jr=null;function Kr(){var t=Dr().href;Jr!=t&&(Jr=t,_.map(Wr,function(e){e(t)}))}var $r="queryStringWhitelist";function Zr(e){var t=f.get("sanitizeUrl");return _.isFunction(t)?t(e):e}function Xr(e){e=e||Dr().href;var t=f.get("annotateUrl");if(t)if(_.isFunction(t))try{var n,i,r,o=t();return o&&(_.isObject(o)||_.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&_.isArray(n)||i&&(_.isArray(i)||_.isObject(i)))&&(n&&(e=Qr(e,null,n,!0)),o=i||{}),Rr.urlFor(e,o,r)):e}catch(a){C.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else C.error("customer-provided `annotateUrl` must be of type: function");return e}function Yr(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function Qr(e,t,n,i){e=e||qr(),t=t||Yr(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=_.isArray(n)?to(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var eo,to=function(e,t,n){return n&&_.contains(t,"*")?"":(e=no(e),e=n?_.omit(e,t):_.pick(e,t),io(e))},no=function(e){e=e.split("&");return _.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&yt(t[1])),e},{})},io=function(e){return _.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},A={watch:function(e){const n=[];C.info("Initializing Pendo URL Watcher");var i,t=f.get("location.pushState")&&ze.supportsHistoryApi();return Vr||(t&&(i=window.history,_.each(["pushState","replaceState"],function(e){var t=i[e];i[e]=_.wrap(i[e],function(e){var t=e.apply(i,_.toArray(arguments).slice(1));return Ut(Kr,0),t}),i[e]._pendoUnwrapped=t,n.push(()=>{i[e]=t})}),n.push(l(window,"popstate",Kr))),ze.supportsHashChange()&&n.push(l(window,"hashchange",Kr)),!1!==t&&ze.supportsHashChange()||n.push(Hr()),Vr=!0),Wr.push(e),()=>{_.each(n,function(e){e()}),Wr.length=0,Vr=!1}},get:qr,externalizeURL:function(e,t,n){n=n||f.get($r);return Zr(Qr(e,t,n=_.isFunction(n)?n():n,!1))},startPoller:Hr,getWindowLocation:Dr,clear:function(){Wr=[]},isElectron:Pr,electronUserDirectory:function(){return window.process.env.PWD||""},electronAppName:function(){return window.process.env.npm_package_name||""},electronUserHomeDirectory:function(){return window.process.env.HOME||""},electronResourcesPath:function(){return window.process.resourcesPath||""}};function ro(){var e=f.getLocalConfig("dataHost");return e||((e=f.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:We)}function oo(){eo=ro()}function ao(){var e=f.get("contentHost")||f.get("assetHost")||Ve;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function so(e){var t=ao(),n=0<=(n=t).indexOf("localhost")||0<=n.indexOf("local.pendo.io")?e.replace(".min.js",".js"):e;return t+"/"+(Je?Je+"/":"")+n}function uo(){var e=f.get("allowPartnerAnalyticsForwarding",!1)&&f.get("adoptAnalyticsForwarding",!1);return f.get("trainingPartner",!1)||e}var co=3,lo=1,po=9,ho=11,fo=4;function R(e){var t;if((t=e)&&t.nodeType===lo)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function go(e,t){var n;return!(!e||!_.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&_.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),_.any(n,function(e){return e&&"none"!==e}))}function mo(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function vo(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function yo(e){return _.isNumber(e)?e:0}function bo(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!So(e)?null:e}function wo(e){return go(R(e),Oe)&&isNaN(xe)}function So(e){if(e)return(e=R(e))&&(_.contains(["relative","absolute","fixed"],e.position)||go(e,Oe))}function Eo(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=So(t)?t:bo(t,n),i=t?Io(t):{top:0,left:0},e=Io(e),i={top:e.top-i.top,left:e.left-i.left,width:e.width,height:e.height};return t?(t!==n.document.scrollingElement&&(i.top+=yo(t.scrollTop),i.left+=yo(t.scrollLeft)),i.top-=yo(t.clientTop),i.left-=yo(t.clientLeft)):(i.top+=mo(n),i.left+=vo(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function Io(e){var t;return e?e.getBoundingClientRect?{top:(t=e.getBoundingClientRect()).top,left:t.left,bottom:t.bottom,right:t.right,width:t.width||Math.abs(t.right-t.left),height:t.height||Math.abs(t.bottom-t.top)}:{top:0,left:0,width:e.offsetWidth,height:e.offsetHeight,right:e.offsetWidth,bottom:e.offsetHeight}:{width:0,height:0}}var _o=void 0===(e=f.get("pendoCore"))||e,Co=function(e,t,n){e=eo+"/data/"+e+"/"+t,t=_.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function xo(){return _.compact([E.apiKey].concat(E.additionalApiKeys))}var To=function(e){return e+="v"+Ke,Ao(Co("log.gif",E.apiKey,{msg:e,version:Ke}))};function ko(e){try{var t=eo+"/data/errorlog?apiKey="+E.apiKey,n={error:e,version:"v"+Ke,visitorId:b()},i=Ro.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):Rr.postJSON(t,n);return i.then(function(){C.info("successfully wrote error")},function(e){C.info("error writing error:"+e)})}catch(r){return C.info("Failed to write error to server using POST endpoint: "+r),To("Failed to write error to server using POST endpoint: "+r)}}function Ao(e){var t,n;return Lo()?(t=m.defer(),l(n=new Image,"load",t.resolve),l(n,"error",t.reject),n.src=e,t.promise):m.resolve()}function Ro(e,t={}){t=_.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t)}function Oo(e,t){return navigator.sendBeacon(e,t)}Ro.supported=function(){try{return _.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var No=!(Oo.supported=function(){return _.isFunction(navigator.sendBeacon)}),Mo=function(){var e=Lo();return No=!0,e&&y["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},Lo=function(){return!No&&_o},Po=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(Go(e))}catch(n){return!1}},Fo=function(e,t){try{var n;Po(e,t)||(n=Qe.call(Go(e))+" "+t,Uo(e,n))}catch(i){}},Do=function(e,t){try{var n,i;Po(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=Go(e).replace(n," "),Uo(e,i))}catch(r){}},Uo=function(e,t){_.isString(e.className)?e.className=t:e.setAttribute("class",t)},Go=function(e){try{var t=e.className;return(_.isString(t)||!me(t)?t:e.getAttribute("class"))||""}catch(n){return""}},Bo=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},zo={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},jo=function(e,t){t=function(e){if(_.isString(e)){var t=e.split(";");var n;var i;var r;var o;e={};for(r=0;r<t.length;r++){n=t[r];o=n.indexOf(":");i=n.substring(0,o);e[i]=n.substring(o+1)}}return e}(t);Ho(e,t)},Ho=function(a,e){_.each(e,function(e,t){if(""!==(t=Qe.call(t))){var n=Bo(t),i=(!_.isNumber(e)||isNaN(e)||zo[n]?_.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=Qe.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=Qe.call(e)}catch(o){C.info("failed to set style: "+t+" with value "+e)}}})},qo=function(e=window){return je()?{width:e.document.documentElement.offsetWidth||0,height:e.document.documentElement.offsetHeight||0}:{width:e.innerWidth||e.document.documentElement.clientWidth,height:e.innerHeight||e.document.documentElement.clientHeight}},Wo=function(e){var t=qo(),n=mo(),i=vo();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function Vo(t){return _.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function Jo(e,t=window){var n;return function(e){var t,n=e;for(;n;){if(!(t=R(n)))return;if("fixed"===t.position)return!isNaN(xe)||!ta(n);n=n.parentNode}return}(e)?((n=Io(e)).fixed=!0,Vo(n)):Vo(Eo(e,Zo(t.document),t))}var Ko=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},$o=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return C.info("error interrogating body elements: "+n),To("error picking best body:"+n),0}},Zo=function(e=document){try{var t=Array.prototype.slice.call(e.getElementsByTagName("body"));return t&&1<t.length?(t.sort($o),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return To("Error getting body element: "+n),e.body}};function Xo(e){if(e&&e.parentNode){var t=e.parentNode,n=e;if(!t)return[];var i=[];if(t.childNodes)for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];1===r.nodeType&&r!==n&&i.push(r)}return i}return[]}function Yo(e,t=document){if(Er.contains(t,e))return!0;for(;e&&e.parentNode||ti.isElementShadowRoot(e);)e=ti.getParent(e);return e===t}var Qo=function(e){var t,n,i;if(null!=e)return t=(n=e.ownerDocument||document).defaultView||window,i=Zo(n),e===n||e===t?((n={left:t.pageXOffset||i.scrollLeft,top:t.pageYOffset||i.scrollTop,width:t.innerWidth,height:t.innerHeight}).right=n.left+n.width,n.bottom=n.top+n.height,n):((i=Jo(e,t)).right=i.left+i.width,i.bottom=i.top+i.height,i)},ea=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function ta(e){for(var t=e&&e.parentNode;t;){if(go(R(t),Oe))return 1;t=t.parentNode}}var na=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(Yo(e))for(i=e;i;)if(ti.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=R(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=R(r))&&!_.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&ta(i))i=bo(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function ia(e,t){e=R(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?ra.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?ra.BOTH:t.test(e.overflowY)?ra.Y:t.test(e.overflowX)?ra.X:t.test(e.overflow)?ra.BOTH:ra.NONE}var ra={X:"x",Y:"y",BOTH:"both",NONE:"none"};function oa(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&Yo(e)}function aa(e){var t=document.createElement("script"),n=document.head||document.getElementsByTagName("head")[0]||document.body;t.type="text/javascript",e.src?t.src=e.src:t.text=e.text||e.textContent||e.innerHTML||"",n.appendChild(t),n.removeChild(t)}function sa(e){if(e){if(_.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function ua(e,t,n){const i=[];var r=sa(document.documentElement);let o=sa(na(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=sa(na(o)),a++;return()=>{_.each(_.compact(i),function(e){e()}),i.length=0}}const da=['a[href]:not([disabled]):not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])',"iframe"].join(", ");function ca(e,t,n){var i=Qo(t),t=ia(t,n);if(t!==ra.BOTH||ea(e,i)){if(t===ra.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===ra.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function la(e){if(e){if(oa(e))return 1;var t=Qo(e);if(0!==t.width&&0!==t.height){var n=R(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=R(i=i.parentNode)}return 1}}}}function pa(e,t){if(!la(e))return!1;if(!oa(e)){for(var n=Qo(e),i=na(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!ca(n,i,t))return!1;i=na(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=vo(),e+=mo()),o<=0||e<=0)return!1}}return!0}function ha(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,u=Qo(e),d=na(e,s);if(!la(e))return!1;for(;d;){if(t=Qo(d),(o=ia(d,a))!==ra.NONE&&(i=n=0,o!==ra.Y&&o!==ra.BOTH||(u.bottom>t.bottom&&(n+=u.bottom-t.bottom,u.top-=n,u.bottom-=n),u.top<t.top&&(n-=r=t.top-u.top,u.top+=r,u.bottom+=r)),o!==ra.X&&o!==ra.BOTH||(u.right>t.right&&(i+=u.right-t.right,u.left-=i,u.right-=i),u.left<t.left&&(i-=r=t.left-u.left,u.left+=r,u.right+=r))),!ca(u,d,s))return!1;d=na(d,s)}return!0}function fa(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=Zo(),u=na(e,a);u&&u!==s;)t=Qo(e),n=Qo(u),r=i=0,t.bottom>n.bottom&&(i+=t.bottom-n.bottom,t.top-=i,t.bottom-=i),t.top<n.top&&(i-=o=n.top-t.top,t.top+=o,t.bottom+=o),t.right>n.right&&(r+=t.right-n.right,t.left-=r,t.right-=r),t.left<n.left&&(r-=o=n.left-t.left,t.left+=o,t.right+=o),_.isFunction(u.scrollBy)?u.scrollBy(r,i):(u.scrollTop+=i,u.scrollLeft+=r),u=na(u,a)}Di={$:{findOrCreate(e){return 0<this.length?this:k(e)},find(e){var t=k();return t.context=this.context,this.each(function(){k(e,this).each(function(){t[t.length++]=this})}),t},each(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text(e){var t="innerText"in document.body;return e===undefined?t?this.length?this[0].innerText:this:this.length?this[0].textContent:this:this.each(function(){jo(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Fo(t,e)})})},removeClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Do(t,e)})})},hasClass(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){_.each(e,function(e){n=n&&Po(t,e)})}),n)},toggleClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){(Po(t,e)?Do:Fo)(t,e)})})},css(e){return this.each(function(){jo(this,e)}),this},appendTo(e){return k(e).append(this),this},append(e){var t=this;return k(e).each(function(){t.length&&t[0].appendChild(this),Yo(this)&&_.each(Er("script",this),aa)}),t},prependTo(e){return k(e).prepend(this),this},prepend(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],k(e).each(function(){n?k(this).insertBefore(n):k(this).appendTo(t)})),this},getParent(){var e=k(this)[0];if(e&&e.parentNode)return k(e.parentNode)},insertBefore(e){e=k(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),Yo(this[0]))&&_.each(Er("script",this[0]),aa)},remove(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr(e,t){return _.isObject(e)?(this.each(function(){_.each(e,function(e,t){this.setAttribute(t,e)},this)}),this):t!==undefined?(this.each(function(){this.setAttribute(e,t)}),this):0<this.length?this[0].getAttribute(e):void 0},closest(e,t){for(var n=this[0];n&&!Er.matchesSelector(n,e);)if((n=ei(n))===document||t&&Er.matchesSelector(n,t))return k();return k(n)},eq(e){return k(this[e])},height(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus(){return this.each(function(){_.isFunction(this.focus)&&this.focus()})}}};class ga{constructor(e=Zo(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},ze.MutationObserver){const n=new(lt("MutationObserver"))((e,t)=>{this.signal()});n.observe(e,t),this._teardown=()=>n.disconnect}else{const i=Ut(()=>{this.signal()},500);this._teardown=()=>{clearTimeout(i)}}}signal(){_.each(this.listeners,e=>{e.get()})}addObservers(...e){this.listeners=[].concat(this.listeners,e)}teardown(){this._teardown()}}Ri=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var ma="function"==typeof(i=window.WeakRef)&&/native/.test(i)?i:Ri();function va(e,t){var n,i;return e.tagName&&-1<["textarea","input"].indexOf(e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:Sa(n.substring(0,i))):ya(e,t)}function ya(e,t=128){var n,i="",r=e.nodeType;if(r===co||r===fo)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===lo||r===po||r===ho)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=ya(e.childNodes[a],t-i.length))).length)return i+Sa(o.substring(0,t-i.length));i+=o}}return i}function ba(e){return 55296<=e&&e<=56319}function wa(e){return 56320<=e&&e<=57343}function Sa(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(ba(t)||wa(t)){if(1===e.length)return e.slice(0,-1);if(ba(t))return e.slice(0,-1);if(wa(t))if(!ba(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class Ea{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let t=this.elRef&&this.elRef.deref();var e=Yo(t);if(!t||!e){if(t&&!e&&this.teardown(t),!(t=k(this.cssSelector)[0]))return undefined;_.each(this.events,e=>{t.addEventListener(e,e=>this.onEvent(e))}),this.elRef=new ma(t)}return t}getText(e=1024){return va(this.get(),e)}addEventListener(e,t){var n=this.get();this.events.indexOf(e)<0&&(this.events.push(e),n)&&n.addEventListener(e,e=>this.onEvent(e)),this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)}onEvent(t){var e=t.type;_.each(this.listeners[e],e=>e(t))}teardown(t=this.get()){t&&_.each(this.events,e=>t.removeEventListener(e,this.onEvent))}}function Ia(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===ro())return!0;if(t===ao())return!0;var e=[/^https:\/\/(app|via|adopt)(\.eu|\.us|\.gov|\.jpn|\.hsbc|\.au)?\.pendo\.io$/,/^https:\/\/((adopt\.)?us1\.)?(app|via|adopt)\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)-static\.storage\.googleapis\.com$/,/^https:\/\/(us1\.)?cdn(\.eu|\.jpn|\.gov|\.hsbc|\.au)?\.pendo\.io$/],n=(-1===qe.indexOf("prod")&&(e=e.concat([/^https:\/\/([a-zA-Z0-9-]+\.)*pendo-dev\.com$/,/^https:\/\/([a-zA-Z0-9-]+-dot-)?pendo-(dev|test|io|us1|govramp|jp-prod|hsbc|au|batman|magic|atlas|wildlings|ionchef|mobile-guides|mobile-hummus|mobile-fbi|mobile-plat|eu|eu-dev|apollo|security|perfserf|freeze|armada|voc|mcfly|calypso|dap|scrum-ops|ml|helix|uat)\.appspot\.com$/,/^https:\/\/via\.pendo\.local:\d{4}$/,/^https:\/\/adopt\.pendo\.local:\d{4}$/,/^https:\/\/local\.pendo\.io:\d{4}$/,new RegExp("^https://pendo-"+qe+"-static\\.storage\\.googleapis\\.com$")])),f.get("adoptHost"));if(n&&t==="https://"+n)return!0;return!!_.contains(f.get("allowedOriginServers",[]),t)||_.any(e,function(e){return e.test(t)})}function _a(e){var t;if(_.isString(e))return t=(t=Yr(e).substring(1))&&t.length?no(t):{},e=_.last(_.first(e.split("?")).split("/")).split("."),{filename:_.first(e),extension:e.slice(1).join("."),query:t}}function Ca(e,t){var n;f.get("guideValidation")&&ze.sri&&(n=_a(t),t=_.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],_.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}_.extend(k,{data:_r,event:Ar,removeNode:Ko,getClass:Go,hasClass:Po,addClass:function(e,t){var n;"string"==typeof e?(n=k(e),_.map(n,function(e){Fo(e,t)})):Fo(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=k(e),_.map(n,function(e){Do(e,t)})):Do(e,t)},getBody:Zo,getComputedStyle:R,getClientRect:Qo,intersectRect:ea,getScrollParent:na,isElementVisible:pa,Observer:ga,Element:Ea,scrollIntoView:fa,getRootNode:sa}),_.extend(k.prototype,Ar.$,Di.$);var xa,Ta=function(e){var t=0===f.get("allowedOriginServers",[]).length,n=uo();return!(!t&&!n&&(t=qe,n=Y,!/prod/.test(t)||re(n)))||Ia(e)},ka=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(_.isString(e)&&(e={url:e}),!Ta((d=e.url,new Zn(d).origin)))throw new Error;e.type=e.type||/\.css/.test(e.url)?r:o;var a=null,s=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0];if(e.type===r){var u=document.createElement("link");u.type=r,u.rel="stylesheet",u.href=e.url,Ca(u,e.url),a=u}else{if(ct())return(i=document.createElement("script")).addEventListener("load",function(){t(),Ko(i)}),i.type=o,i.src=Z(E).createScriptURL(e.url),Ca(i,e.url),document.body.appendChild(i),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=Z(E).createScriptURL(e.url),Ca(i,e.url),a=i,t=_.wrap(t,function(e,t){k.removeNode(i),t?n&&e(t):e.apply(this,_.toArray(arguments).slice(1))})}return s.appendChild(a),Aa(a,e.url,t),a}catch(c){return{}}var d},Aa=function(e,t,n){var i=!1;me(n)&&(e.onload=function(){!0!==i&&(i=!0,n(null,t))},e.onerror=function(){!0!==i&&(i=!0,n(new Error("Failed to load script"),t))},e.onreadystatechange=function(){i||e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(i=!0,n(null,t))},"link"===e.tagName.toLowerCase())&&(Ut(function(){var e;i||((e=new Image).onload=e.onerror=function(){!0!==i&&(i=!0,n(null,t))},e.src=t)},500),Ut(function(){i||To("Failed to load "+t+" within 10 seconds")},1e4))},Ra=function(e){var t=JSON.parse(e.data),n=e.origin;C.debug(E.app_name+": Message: "+JSON.stringify(t)+" from "+n),Wa(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},Oa=function(e){Ma(Da)(Na(e))},Na=function(e){if(e.data)try{var t="string"==typeof e.data?JSON.parse(e.data):e.data,n=e.origin,i=e.source;if(!t.action&&!t.mutation){if(t.type&&"string"==typeof t.type)return{data:t,origin:n,source:i};C.debug("Invalid Message: Missing 'type' in data format")}}catch(r){}};function Ma(t){return function(e){if(e&&Ia(e.origin))return t.apply(this,arguments)}}var La={disconnect(e){},module:function(e){qa(e.moduleURL)},debug:function(e){Ka(Ra)}},Pa=function(e,t){La[e]=t},Fa=function(e){delete La[e]},Da=function(e){var t;e&&(t=e.data)&&me(La[t.type])&&La[t.type](t,e)},Ua={},Ga=function(e){if(Ua[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},Ba=function(e){return me(Ua[e])},za=function(e){if(Ua)for(var t in Ua)if(0<=t.indexOf(e))return t;return null},ja=[],Ha=function(){var e;ja.length<1||(e=ja.shift(),Ba(e))||ka(e,function(){Ga(e),Ha()})};var qa=function(e){!function(e){var t={"/js/lib/ckeditor/ckeditor.js":1};_.each(["depres.js","tether.js","sortable.js","selection.js","selection.css","html2canvas.js","ckeditor/ckeditor.js"],function(e){t["/modules/pendo.designer/plugins/"+e]=1,t["/engage-app-ui/assets/classic-designer/plugins/"+e]=1});try{var n=new Zn(e);return Ia(n.origin)&&t[n.pathname]}catch(i){C.debug("Invalid module URL: "+e)}}(e)||(ja.push(e),1<ja.length)||Ha()},Wa=function(e,t,n){var i,r=_.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=xa||Ja(),n="*"),t.guid=r,e&&_.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";C.info("Failed to postMessage: "+t)}return r},Va=function(){return window!=window.top},Ja=function(){return new RegExp("^"+It(eo).replace(/^https?:/,"https?:")).test(location.href)?window.parent:window.top},Ka=function(e){var t;return me(window.addEventListener)&&_.isFunction(window.addEventListener)&&(t=Ma(e),window.addEventListener("message",t,!1)),function(){me(window.removeEventListener)&&_.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},$a=_.memoize(function(){return f.get("restrictP1Access")}),Za=[],Xa=[],Ya=[],Qa=12e4,es=16,ts=1900,ns=65536,is=function(e){return!(!e||""===e)},rs=function(){return A.get()},os={flush:_.noop,flushBy:_.noop,flushEvents:ds,flushTrackEvents:ds,flushAgenticEvents:ds,flushSilos:ds,flushTrackEventSilos:ds,flushAgenticEventSilos:ds,flushBeacons:ds,flushNow:ds,flushLater:cs,flushEvery:ls,flushStop:ps,beacons:[],silos:[],trackEventSilos:[],agenticEventSilos:[],lock:Mo,unlock:function(){if(!Lo())return hs(),function(){var e=!Lo();return No=!1,e&&y["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."}()}},as=[];function ss(e){as.push(e)}function us(e){e=as.indexOf(e);0<=e&&as.splice(e,1)}function ds(e,t){try{_.each(as,function(e){e.flush&&e.flush(t)})}catch(n){C.critical("unhandled error while flushing event cache",{error:n})}}function cs(e){return t=_.partial(ds,!0),n=e,n=parseInt(n,10)||0,t[n]||(i=Ut(function(){t(),t[n]()},n),t[n]=function(){window.clearTimeout(i),delete t[n]});var t,n,i}function ls(e){var t;if(e=parseInt(e,10)||0,_.isObject(ls.intervals)||(ls.intervals={}),!ls.intervals[e])return t=window.setInterval(ds,e),ls.intervals[e]=function(){clearInterval(t),delete ls.intervals[e]}}function ps(){var e=_.values(ls.intervals).concat([ds]);_.map(e,function(e){_.isFunction(e)&&e()})}function hs(){_.each(as,function(e){e.clear&&e.clear()}),ps()}function fs(e){try{return window.TextDecoder?JSON.parse((new TextDecoder).decode((t=e.split(".")[1],t=atob(t),Uint8Array.from(t,e=>e.codePointAt(0))))):JSON.parse(atob(e.split(".")[1]))}catch(n){return null}var t}function gs(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(C.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(C.debug(t+"The signingKeyName is supplied but missing jwt."),!1):(e=e.jwt,!(!_.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(C.debug(t+"The jwt is invalid."),!1)):(C.debug(t+"Missing jwt and signingKeyName."),!1)}ms=null;var ms,vs={set:function(e){ms=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==ms?ms:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!f.get("enableSignedMetadata")&&(n=gs(e,t),f.get("requireSignedMetadata")&&!n?(C.debug("Pendo will not "+t+"."),!1):n?fs(e.jwt):void C.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class ys{constructor(e,t=100){this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}isEmpty(){return this.queue.length<=0}stop(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer}start(){this.stopped=!1}push(...e){this.queue.push(...e),this.next()}next(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)}incrementFailure(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t}pass(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()}fail(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,6))))}retryLater(e){this.timer=Ut(()=>{delete this.timer,this.next()},e)}failed(){return 0<this.failures.get(this.queue[0])&&null!=this.timer}send(e,t,n){return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(()=>this.pass(e,n),()=>this.fail(e,n))}drain(e,t=!0){if(this.queue.push(...e),this.failed())return Qt.reject();var n=[];for(const i of this.queue)this.pending.has(i)?this.retryPending&&t&&!this.unloads.has(i)&&(this.incrementFailure(i),n.push(this.send(i,t,!1))):n.push(this.send(i,t,!1));return Qt.all(n)}}const bs="unsentEvents";class ws{constructor(){this.events={}}send(t,n){var i=this.events[t];if(i){let e=i.shift();for(;e;)n.push(e),e=i.shift();delete this.events[t]}}push(e,t){var n=this.events[e]||[];n.push(t),this.events[e]=n}read(e){e.registry.addLocal(bs);try{this.events=JSON.parse(e.read(bs)||"{}"),e.clear(bs)}catch(t){this.events={}}}write(e){0<_.size(this.events)?e.write(bs,JSON.stringify(this.events),5184e5):e.clear(bs)}}var Ss=new ws;class Es{constructor(){this._isPerformanceApiAvailable=this._checkPerformanceApi(),this._measuringPerformance=!1,this._marks={},this._measures={}}initialize(){return this._measuringPerformance=!0,this._markPerformance("initialize"),this.interval=setInterval(()=>{this._clearMarksAndMeasures()},6e5),()=>{this.teardown()}}teardown(){this._measuringPerformance=!1,this._markPerformance("teardown"),this._clearMarksAndMeasures(),clearInterval(this.interval)}startTimer(e){this._markPerformance(e+"-start")}stopTimer(e){this._markPerformance(e+"-stop"),this._measurePerformance(e)}track(e){this._markPerformance(e)}send(){performance.getEntries(),this._clearMarksAndMeasures()}_checkPerformanceApi(){return Ce("performance.mark")&&Ce("performance.measure")&&Ce("performance.getEntries")&&Ce("performance.clearMarks")&&Ce("performance.clearMeasures")}_shouldMeasurePerformance(){return this._isPerformanceApiAvailable&&this._measuringPerformance}_markPerformance(e){this._shouldMeasurePerformance()&&(e="pendo-"+e,performance.mark(e),this._count(this._marks,e))}_measurePerformance(e){this._shouldMeasurePerformance()&&(e="pendo-"+e,performance.measure(e,e+"-start",e+"-stop"),this._count(this._measures,e))}_count(e,t){e[t]?e[t]++:e[t]=1}_clearMarksAndMeasures(){_.each(this._marks,(e,t)=>{performance.clearMarks(t)}),_.each(this._measures,(e,t)=>{performance.clearMeasures(t)}),this._marks={},this._measures={}}}var Is=new Es,_s="_PENDO_UNNAMED_",Cs=5;function xs(e,t,n,i,r,o){var a,s;a=f.get("dropAnonymous"),s=On(b()),!_o||a&&s||(a=t,s=n,t=i,n=r,r=o,s={type:o=e,browser_time:v(),visitor_id:b({generate:!0}),account_id:qn(),url:A.externalizeURL(s),props:a||{},eventProperties:n},s=ln.addTracerIds(s),"track"===o&&(s.track_event_name=t||_s),y.eventCaptured.trigger(s,r),is((a=s).url)&&function(e){if(f.get("freeNPSData"))return _.contains(Ts,e.type);return 1}(a)&&("track"===e?zs:"agentic"===i?js:Bs).push(a))}var Ts=["load","meta","identify"];function ks(){var r=_.toArray(arguments);return function(e,t){var n=r.concat([t]);!function i(t,e){t<n.length&&n[t](e,function(e){i(t+1,e)})}(0,e)}}let As=0;function Rs(e,t){e.sequence=As++,t(e)}function Os(e){return n=function(e,t){return e.push(t),e},i=e,function(e,t){t(i=n(i,e))};var n,i}function Ns(e,t){return uo()?Ms("account_id")(e,t):t(e)}function Ms(s){return function(e,t){if(!e.length)return t(e);for(var n=_.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==_.get(e[r],s)){i=!1;break}if(i)return t(e);var o=e.slice(0,r),a=e.slice(r);t(o),t(a)}}function Ls(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function Ps(e,t,n){t=n[t-1]||_.last(n);return Math.ceil(e/t)}function Fs(e,t){for(var n,i=0,r=(_.isFunction(t.overhead)?t.overhead:_.constant(0))(),o=0;o<e.length;++o){if(Ps(n=Ls(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(Ps(i+n,o+1,t.compressionRatio)+r>t.upper)return o;i+=n}if(!(0<o))for(o=i=0;o<e.length;++o){if(Ps(i+(n=Ls(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function Ds(){var e=vs.get();return _.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var Us,Gs,Bs,zs,js,Hs;function qs(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=E.squeezeAndCompress(e.slice()),e.JZB.length<=ns)||1===e.length?t(e):(n=e.length/2,qs(e.slice(0,n),t),void qs(e.slice(n),t))}function Ws(e,t){Lo()&&t(e)}function Vs(){return function(e,t){1===e.length&&e.JZB.length>ns?(C.debug("Couldn't write event"),To("Single item is: "+e.JZB.length+". Dropping."),ko(e.JZB)):t(e)}}function Js(e,t){return Co(t.beacon+".gif",e,_.extend({v:Ke,ct:v(),jzb:t.JZB},t.params,t.auth))}function Ks(e,t){return Co(t.beacon+".gif",e,_.extend({v:Ke,ct:v(),s:t.JZB.length},t.params))}function $s(i){return function(e,t){e.params=_.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=vs.get();_.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function Zs(e,t){var n=uo(),i=_.first(e),i=_.get(i,"account_id");n&&i&&(e.params=_.extend({},e.params,{acc:ot(i)})),t(e)}function Xs(e,t){var n=_.first(e),n=_.get(n,"props.source");n&&(e.params=_.extend({},e.params,{source:n})),t(e)}function Ys(e){return JSON.stringify(_.extend({events:e.JZB},e.auth))}function Qs(e){return e.status<200||300<=e.status?m.reject(new Error(`received status code ${e.status}: `+e.statusText)):m.resolve()}function eu(e,t){return Ro(Js(e,t)).then(Qs)}function tu(e,t){return fetch(Ks(e,t),{method:"POST",keepalive:!0,body:Ys(t),headers:{"Content-Type":"application/json"}}).then(Qs)}function nu(e,t){var n=Ys(t);return Oo(Ks(e,t),n)?m.resolve():m.reject()}function iu(n){return function(e,t){return t.JZB?t.eventLength<=ts&&!f.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&Ro.supported()?eu(e,t):t.auth?Rr({method:"GET",url:Js(e,t)}):Ao(Js(e,t)):n.allowPost&&t.eventLength<=ns?Ro.supported()?tu(e,t):Oo.supported()?nu(e,t):Rr({method:"POST",url:Ks(e,e=t),data:Ys(e),headers:{"Content-Type":"application/json"}}):m.resolve():m.resolve()}}function ru(n){return function(e,t){if(t.JZB){if(t.eventLength<=ts&&!f.get("sendEventsWithPostOnly",!1)){if(!t.auth&&Ro.supported())return eu(e,t);if(ze.msie<=11)return Rr({method:"GET",url:Js(e,t),sync:!0})}if(t.eventLength<=ns&&n.allowPost){if(Ro.supported())return tu(e,t);if(Oo.supported())return nu(e,t);if(ze.msie<=11)return Rr({method:"POST",url:Ks(e,e=t),data:Ys(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return m.resolve()}}function ou(e,t){e.length=0;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);t(i)}function au(e){return ks(Ws,Ns,qs,(t=e.shorten,t=_.defaults(t||{},{fields:[],siloMaxLength:ns}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],C.debug("Max length exceeded for an event"),_.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(C.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),qs,Vs(),$s(e),Zs,Xs,ou);var t}class su{constructor(e){this.queues=e}isEmpty(){return _.all(this.queues,e=>e.isEmpty())}stop(){_.each(this.queues,e=>e.stop())}push(){const t=_.toArray(arguments);_.each(this.queues,e=>e.push.apply(e,t))}drain(){const t=_.toArray(arguments);return m.all(_.map(this.queues,e=>e.drain.apply(e,t)))}}function uu(o,a,s){a=a||iu(o),s=s||ru(o);e=o;var e=_.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=_.map(e,(i,r)=>{var e=new ys(function(e,t,n){return n&&(e.params=_.extend({},e.params,{rt:n})),o.localStorageUnload&&t?(0===r&&Ss.push(o.beacon,e),m.resolve()):(t?s:a)(i,e)});return e.onTimeout=function(){Is.track(o.beacon+"-gif-failure")},e.retryPending=!0,e}),e=new su(e);return Ss.send(o.beacon,e),e}function du(e,t){var n=f.get("analytics.excludeEvents");0<=_.indexOf(n,e.type)||t(e)}class cu{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=uu(e)}pause(e=1e4){var t=_.uniqueId();const n=this["locks"];n[t]=1;var i=()=>{n[t]&&(y.trigger("ptm:unpaused"),clearTimeout(r),delete n[t],this.flush())},r=Ut(i,e);return y.trigger("ptm:paused"),i}push(e){this.packageSilos(e,e=>{this.silos.push(e)})}clear(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()}flush({unload:e=!1,hidden:t=!1}={}){var{cache:n,silos:i}=this;if((0!==n.length||0!==i.length||!this.sendQueue.isEmpty())&&_.isEmpty(this.locks)){i.push(n.slice()),n.length=0;n=i.slice();i.length=0;const r=[];_.each(n,function(e){this.processSilos(e,function(e){r.push(e)})},this),e||t?this.sendQueue.drain(r,e):this.sendQueue.push(...r)}}}function lu(e){var i,r,t=au(e),n=ks((r=e.beacon,function(e,t){var n=f.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),du,Rs,Os(e.cache),(i={overhead:Ds,lower:f.get("sendEventsWithPostOnly")?ns:ts,upper:ns,compressionRatio:[.5*Cs,.75*Cs,Cs]},function(e,t){for(var n=Fs(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=Fs(e,i)}));return new cu(_.extend({processSilos:t,packageSilos:n},e))}var pu=$n(function(e){var t,n,i;if((e=e||A.get())&&e!==pu.lastUrl)return pu.lastUrl=e,t=-1,$a()||Va()&&(i=Ja(),Wa(i,{type:"load",url:location.toString()},"*")),C.debug("sending load event for url "+e),t={load_time:t="undefined"!=typeof performance&&_.isFunction(performance.getEntriesByType)&&!_.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},Va()&&(t.is_frame=!0),"*"!==(n=_t())&&(t.allowed_storage_keys=_.keys(n)),xs("load",t,e),cs(),y.urlChanged.trigger(),!0});function hu(e){return"hidden"===e.visibilityState}pu.reset=function(){pu.lastUrl=null};const fu="visibilitychange",gu="pagehide",mu="unload";function vu(){this.serializers=_.toArray(arguments)}function yu(e,t){return e.tag=ti.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function bu(e){return me(e)?""+e:""}function wu(e,t){return e.id=bu(t.id),e}function Su(e,t){return e.cls=bu(k.getClass(t)),e}_.extend(vu.prototype,{add(e){this.serializers.push(e)},remove(e){e=_.indexOf(this.serializers,e);0<=e&&this.serializers.splice(e,1)},serialize(n,i){return n?(i=i||n,_.reduce(this.serializers,function(e,t){return t.call(this,e,n,i)},{},this)):{}}});var Eu=256,Iu=64,_u={a:{events:["click"],attr:["href"]},button:{events:["click"],attr:["value","name"]},img:{events:["click"],attr:["src","alt"]},select:{events:["mouseup"],attr:["name","type","selectedIndex"]},textarea:{events:["mouseup"],attr:["name"]},'input[type="submit"]':{events:["click"],attr:["name","type","value"]},'input[type="button"]':{events:["click"],attr:["name","type","value"]},'input[type="radio"]':{events:["click"],attr:["name","type"]},'input[type="checkbox"]':{events:["click"],attr:["name","type"]},'input[type="password"]':{events:["click"],attr:["name","type"]},'input[type="text"]':{events:["click"],attr:["name","type"]}};var Cu=function(e,t,n){var i;return e&&e.nodeName?"img"==(i=e.nodeName.toLowerCase())&&"src"==t||"a"==i&&"href"==t?(i=e.getAttribute(t),Zr((i=i)&&0===i.indexOf("data:")?(C.debug("Embedded data provided in URI."),i.substring(0,i.indexOf(","))):i+"")):(i=e,e=t,t=g.getters["nodeAttr/getAttribute"]()(i,e),(!n||typeof t===n)&&t?_.isString(t)?Qe.call(t).substring(0,Eu):t:null):null};function xu(t){var e,n,i;return _.isRegExp(t)&&_.isFunction(t.test)?function(e){return t.test(e)}:_.isArray(t)?(e=_.map(_.filter(t,_.isObject),function(e){var t;return e.regexp?(t=(t=/\/([a-z]*)$/.exec(e.value))&&t[1]||"",new RegExp(e.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),t)):new RegExp("^"+e.value+"$","i")}),function(t){return _.any(e,function(e){return e.test(t)})}):_.isObject(t)&&t.regexp?(n=(n=/\/([a-z]*)$/.exec(t.value))&&n[1]||"",i=new RegExp(t.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),n),function(e){return i.test(e)}):_.constant(!1)}function Tu(e,t,n,i){try{var r,o=_.indexBy(t),a=_.filter(_.filter(e,function(e){return n(e.nodeName)||o[e.nodeName]}),function(e){return!i(e.nodeName)});return a.length<=Iu?_.pluck(a,"nodeName"):(r=_.groupBy(e,function(e){return o[e.nodeName]?"defaults":_.isString(e.value)&&e.value.length>Eu?"large":"small"}),_.pluck([].concat(_.sortBy(r.defaults,"nodeName")).concat(_.sortBy(r.small,"nodeName")).concat(_.sortBy(r.large,"nodeName")).slice(0,Iu),"nodeName"))}catch(s){return C.error("Error collecting DOM Node attributes: "+s),[]}}function ku(t,n){var e=xu(f.get("htmlAttributes")),i=xu(f.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=Cu(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},Tu(n.attributes,_u[r]&&_u[r].attr,e,i));return _.each(r,function(e){t.attrs[e.toLowerCase()]=Cu(n,e)}),t}function Au(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=_.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),e.childIndex=n.filter(function(e){return e.nodeType==lo}).indexOf(t).value()),e}function Ru(i,e){var r;return f.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(Ru),e=this.serialize(e.previousElementSibling),this.add(Ru),i.attrs=i.attrs||{},_.each(e,function(e,t){var n={cls:"class",txt:"pendo_text"}[t]||t;_.isEmpty(e)||(_.isObject(e)?_.each(e,function(e,t){e&&!_.isEmpty(e)&&(i.attrs[r+n+"_"+t]=e)}):i.attrs[r+n]=e)})),i}var Ou=new vu(yu,wu,Su,ku,Au,Ru),Nu=function(e){return"BODY"===e.nodeName&&e===Zo()||null===e.parentNode&&!ti.isElementShadowRoot(e)},Mu="pendo-ignore",Lu="pendo-analytics-ignore",Pu=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=Ou.serialize(o,e)}while(r||!dt(a.cls,Mu)&&!dt(a.cls,Lu)||(r=!0),n.parentElem=a,n=a,(i=ti.getParent(o))&&!Nu(o));return r&&(t.parentElem.ignore=!0),t.parentElem},Fu=["","left","right","middle"],t=function(e){return e},e=function(e,t){return e[t]},Du=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return Fu[t]}],["altKey",e,t,t],["ctrlKey",e,t,t],["metaKey",e,t,t],["shiftKey",e,t,t]],Uu={click:function(e,t){for(var n=[],i=0;i<Du.length;i++){var r=Du[i],o=r[0],a=r[1],s=r[2],r=r[3],a=a(e,o);s(a)&&n.push(r(o,a))}return t.flags=n,t}},Gu=function(t){try{if(!k.data.get(t,"counted")){k.data.set(t,"counted",!0);var n=kr(t),i=t.type,e={},r=Uu[i];if(r&&(e=r(t,e)),k.data.get(t,"stopped")&&(e.stopped=!0),t.from&&_.isString(t.from)&&(e.from=t.from),n=(s=n).nodeType===co?s.parentNode:s.nodeType===fo?null:s.correspondingUseElement||s){var o=Pu(n),a=(_.extend(o,e),pu());if(a&&A.startPoller(),!o.ignore){let e;"click"===i&&(e=function(e){e=function(e){const n={};return{getEventProperties(){return n},addEventProperty(e,t){_.isString(e)&&!_.isUndefined(t)?n[e]=t:C.error("Failed to add click event property")},target:e}}(e),y.onClickCaptured.trigger(e),e=e.getEventProperties();if(!_.isEmpty(e))return e}(n)),xs(i,{target:o},undefined,undefined,e,t),y.trigger("appUsage",o,t)}}else C.info("Invalid HTML target",{contexts:["event","dom","processing"]})}}catch(u){C.critical("pendo.io while handling event",{error:u})}var s};var Bu=_.debounce(Gu,5e3,!0),zu=function(e){const t=[];_.contains(e=e||["click","focus","submit","change"],"change")&&(e=_.without(e,"change"),t.push(()=>{Bu.cancel()}),t.push(l(document,"change",Bu,!0)));var n,i=f.get("interceptElementRemoval")||f.get("syntheticClicks.elementRemoval"),r=f.get("syntheticClicks.targetChanged"),r=(t.push(function(t,e,n,i){var r,o,a=[],s=ze.hasEvent("pointerdown"),u=s?"pointerdown":"mousedown",s=s?"pointerup":"mouseup",d=[],c={cloneEvent:function(e){e=k.event.clone(e);return e.type="click",e.from=u,e.bubbles=!0,e},down:function(e){o=!1,e&&(r=c.cloneEvent(e),n)&&c.intercept(e)},up:function(e){o=!1,e&&r&&i&&kr(r)!==kr(e)&&(o=!0,t(r))},click:function(e){r=null,o&&k.data.set(e,"ignore",!0),o=!1,n&&c.unwrap()},intercept:function(e){e=function(e){var t=[];for(;e&&!Nu(e);)t.push(e),e=e.parentNode;return t}(kr(e));_.each(e,function(e){e=ju(e,c.remove);a.push(e)})},remove:function(){r&&(t(r),r=null),c.unwrap()},unwrap:function(){0<a.length&&(_.each(a,function(e){e()}),a=[])},teardown:function Uv(){c.unwrap(),_.each(d,function(e){e()})}};e&&(d.push(l(document,u,c.down,!0)),d.push(l(document,s,c.up,!0)),d.push(l(document,"click",c.click,!0)));return c}(k.event.trigger,ze.addEventListener,i,r).teardown),t.push((i=e,n=_.map(i,function(e){return p(document,e,Gu,!0)}),()=>{_.each(n,function(e){e()})})),t.push(function(e,t){if(t){const n=[];return n.push(l(document,fu,()=>{hu(document)&&e(!0,!1)})),n.push(l(window,gu,_.partial(e,!1,!0))),()=>_.each(n,function(e){e()})}return l(window,mu,_.partial(e,!0,!0))}(function(e,t){t&&y.appUnloaded.trigger(),e&&y.appHidden.trigger()},f.get("preventUnloadListener"))),f.get("interceptStopPropagation",!0)),i=f.get("interceptPreventDefault",!0);return r&&t.push(Hu(window.Event,e)),i&&t.push(qu(window.Event,["touchend"])),()=>{_.each(t,function(e){e()})}};function ju(n,i){var e=["remove","removeChild"];try{if(!n)return _.noop;_.each(e,function(e){var t=n[e];if(!t)return _.noop;n[e]=_.wrap(t,function(e){return i&&i(),e.apply(this,_.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return _.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){C.critical("ERROR in interceptRemove",{error:t})}return function(){_.each(e,function(e){if(!n[e])return _.noop;e=n[e]._pendoUnwrap;_.isFunction(e)&&e()})}}function Hu(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return _.noop;var i=_.indexBy(e);_.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=_.wrap(t,function(e){var t=e.apply(this,arguments);return i[this.type]&&(k.data.set(this,"stopped",!0),k.event.trigger(this)),t}),n.prototype[e]._pendoUnwrap=function(){n.prototype[e]=t,delete n.prototype[e]._pendoUnwrap})})}catch(r){C.critical("ERROR in interceptStopPropagation",{error:r})}return function(){_.each(t,function(e){e=n.prototype[e]._pendoUnwrap;_.isFunction(e)&&e()})}}function qu(t,e){try{if(!t||!t.prototype)return _.noop;var i=_.indexBy(e),n=t.prototype.preventDefault;if(!n)return _.noop;t.prototype.preventDefault=_.wrap(n,function(e){var t,n=e.apply(this,arguments);return i[this.type]&&((t=k.event.clone(this)).type="click",t.from=this.type,t.bubbles=!0,t.eventPhase=Cr,k.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){C.critical("ERROR in interceptPreventDefault",{error:r})}return function(){var e=t.prototype.preventDefault._pendoUnwrap;_.isFunction(e)&&e()}}function p(e,t,n,i){return e&&t&&n?(i&&!ze.addEventListener&&(i=!1),k.event.add(e,{type:t,handler:n,capture:i})):_.noop}function Wu(e,t,n,i){e&&t&&n&&(i&&!ze.addEventListener&&(i=!1),k.event.remove(e,t,n,i))}var Vu=function(e){k.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},Ju=function(e,t){return"complete"!==(t=t||window).document.readyState?l(t,"load",e):(e(),_.noop)},O=[],Ku=[],$u={};let Zu={};function Xu(){return O}function Yu(){return Qu(O)}function Qu(e){return _.filter(e,function(e){return!e.isFrameProxy})}function ed(e){_.isArray(e)?(O=e,y.guideListChanged.trigger({guideIds:_.pluck(e,"id")})):C.info("bad guide array input to `setActiveGuides`")}var td=function(){let n=[];return{addGuide:e=>{var t;_.isEmpty(e)||(n=n.concat(e),_.each(n,e=>e.hide&&e.hide()),e=O,(t=_.difference(e,n)).length<e.length&&(ed(t),g.dispatch("frames/changeGuideList",t)))}}}();function nd(t,n){return _.find(od(),function(e){return _.get(e,t)===n})||null}function N(e){return nd("id",e)}function id(e){return nd("name",e)}function rd(e,t){return e&&e.id?(e=N(e.id)).findStepById(t):null}function od(){var e=_.values(Zu);return e.length?O.concat(_.flatten(e)):O}var ad="_pendo-guide-tt_",sd="_pendo-guide-mobile-tt_",ud=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},dd=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},cd=function(e){return!!_.get(e,"attributes.form")};function ld(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function pd(){return!!(ld()&&qo().width<=320)||ze.isMobileUserAgent()}function hd(e=document){var t=hd.attachPoint;if(null==t){var n=f.get("guides.attachPoint");if(_.isString(n)){try{t=Er(n)[0]}catch(i){C.info('Error finding guide attach point "'+n+'"')}t=t||document.createElement("div")}else t=!!_.isFunction(n)&&n();hd.attachPoint=t}return t||Zo(e)}var fd=function(e){var t=$u[e.guideId];if(t){t=t.element();if(Yo(t)&&t.id==="_pendo-badge_"+e.id)return t}},gd=function(e,t){var n;return e?(n=e.getGuide(),n="building-block"===_.get(n,"attributes.type")||!dd(n),!e.overrideElement&&n&&(e.overrideElement=fd(e)),e.targetElement=md(e,t),e.overrideElement||e.targetElement):(C.info("Can't get element for null step"),null)},md=function(e,t){e=e.elementPathRule||null,e=e?Er(e,t):[Zo(t)];return 0===e.length?null:_.first(e)};function vd(e){var t=_.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function yd(e,t,n){var i,r,o,e=Jo(e),t=Jo(t),a=(e=e,a=t,i=Math.min(e.top,a.top),r=Math.min(e.left,a.left),o=Math.max(e.top+e.height,a.top+a.height),e=Math.max(e.left+e.width,a.left+a.width),{height:Math.abs(o-i),width:Math.abs(e-r),top:i,left:r});!1!==Wo(a)||t.fixed||(o=function(e,t,n,i){var r={x:e.left+e.width-t.width,y:0};r.y="top"===n?e.top:e.top+e.height-t.height;r.y=Math.max(r.y,0),r.x=Math.max(r.x,0),_.contains([ra.X,ra.BOTH],i)&&(r.x=0);_.contains([ra.Y,ra.BOTH],i)&&(r.y=0);return r}(a,qo(),n,ia(Zo(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function bd(e,t,n,i,r){var o,a=_.toArray(arguments).slice(1),s=e.apply(this,a);return n||sa(o=hd())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function wd(){return g.getters["frames/isLeader"]()}function Sd(e){return g.dispatch("frames/updateFrameVisibility",{visibility:e})}const Ed={validateGuide:1,validateLauncher:1,validateGlobalScript:1},Id={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1},_d={ready:1},Cd=["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"];function xd(i){const e=_.reduce(Cd,function(e,r){if(Id[r]){const t=function(e){return kd[r].apply(kd[r],e.data)};i[r].on(t),e.push(()=>i[r].off(t))}if(_d[r]){const n=function(t){{var n=r;t=t.data[0];let e;try{e=new CustomEvent("pendo_"+n,{detail:t})}catch(i){if(!document.createEvent)return;(e=document.createEvent("Event")).initEvent("pendo_"+n,!0,!0),e.detail=t}document.dispatchEvent(e)}};i[r].on(n),e.push(()=>i[r].off(n))}return e},[]);return()=>_.each(e,e=>e())}Td=mn.call({}),_.each(Cd,function(n){Td[n]=function(e){var t;return _.isFunction(e)?Td.on(n,e):(t=Ed[n]?"triggerAsync":"trigger",Td[t].apply(Td,[n].concat(_.toArray(arguments))))}});var Td,kd=Td;var Ad={post:function(e,t,n,i){return n.ajax.postJSON(e.replace(/\/guides\.js\//,"/guides.json/"),t).then(function(e){n.guidesPayload(e.data),i()})},load(e,t,n){return t.ajax.get(e).then(function(e){t.guidesPayload(e.data),n()})},endpoint(){return"guide.json"},usesXhr(){return!0}};function Rd(e){e=_a(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}Nd=Fd={failed:{},verified:{}},Ld=ko,Pd=function(e){try{var t=[];return!Ad.usesXhr()&&e.domJsonpUrl?t.push(Gd(e,"domJsonpUrl")):Ad.usesXhr()&&e.domUrl&&t.push(Ud(e,"domUrl")),e.contentUrlJs?t.push(Gd(e,"contentUrlJs")):e.contentUrl&&t.push(Gd(e,"contentUrl")),m.all(t)}catch(n){throw y.contentVerificationFail.trigger(e,n),n}},Md=function(e){return Pd(e).then(_.noop,function(e){return/verify/.test(e)&&Ld(e),m.reject(e)})},Od=function(t){return Nd.failed[t.id]?m.reject():Nd.verified[t.id]?m.resolve():Md(t).then(function(){Nd.verified[t.id]=!0},function(e){return Nd.failed[t.id]=!0,m.reject(e)})};var Od,Nd,Md,Ld,Pd,Fd,Dd={verify:function(e){return f.get("guideValidation")?Od(e):m.resolve()},reset:function(){Fd.failed={},Fd.verified={}}};function Ud(e,t){var n,i=e[t];return _.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||Rd(e[t]),Rr.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=J.create()).update(e),d.uint8ToBase64(t.digest())!==n)return m.reject('Unable to verify content at "'+i+'"')})):m.reject('unable to parse "'+i+'"')}function Gd(e,t){var n=e[t];return ze.sri&&/[?&]sha(256|384|512)=/.test(n)?m.resolve():Ud(e,t)}Bd="allow",zd="deny",jd="pending",qd=function(){return 0<_.size(kd._handlers.validateGuide)},Wd=function(e,n){var i=[];return _.each(e,function(e,t){n&&(t=n+"."+t),_.isObject(e)?_.each(Wd(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var Bd,zd,jd,Hd,qd,Wd,Vd={state:Hd={},Step:function(e){var n=this;function i(e){return _.filter([["content",Rd(e.contentUrl)],["contentCss",Rd(e.contentUrlCss)],["contentJs",Rd(e.contentUrlJs)],["dom",Rd(e.domUrl)],["domJsonp",Rd(e.domJsonpUrl)]],function(e){return e[1]})}return this.signature=function(){var e,t;return this.domUrl?this.guide.authoredLanguage===this.language?i(this):i({contentUrl:n.contentUrl,contentUrlCss:n.contentUrlCss,contentUrlJs:n.contentUrlJs,domUrl:n.domUrl,domJsonpUrl:n.domJsonpUrl}):(e=[["content",this.content]],(t=this.attributes&&this.attributes.variables)&&(t=Wd(t)).length&&(t=_.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return _.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<_.size(kd._handlers.validateLauncher)&&n.data.template};return n.before("update",function(){if(r()&&i)return!1}),n.before("render",function(){var e,t;if(r())return!i&&(t="launcher-"+at(n.signature()),(t=Hd[t])!==zd)&&(t!==Bd?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+at(t),kd.validateLauncher(t).then(function(){Hd[e]=Bd},function(){Hd[e]=zd}).then(function(){i=!1,n.render(),n.update(O)},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=Wd(this.data);return t.length&&(t=_.chain(t).filter(function(e){return!/^contentUrl/.test(e[0])}).sortBy(function(e){return e[0]}).value(),e.push(["variables",t])),e},n},validate:function(e){if(!qd())return m.resolve();try{return _.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=P.findResourceCenterModules(t,O),t=[t].concat(n),m.all(_.map(t,Jd))):Jd(e)}catch(i){throw y.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!qd()||!!(e=Hd[e.guideId])&&e.status===Bd},invalid:function(e){return!!qd()&&!!(e=Hd[e.guideId])&&e.status===zd},reset(){Hd={}}};function Jd(i){var r=Hd[i.id];return r||(r={},Hd[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+at(e),n=(r[t]||(r[t]={status:jd},r.status=jd),r[t].promise);return n||(n=kd.validateGuide(e,i).then(function(){r[t].status=Bd,r.status=Bd},function(e){return r[t].status=zd,r.status=zd,m.reject(e)}),r[t].promise=n),n})}function Kd(e,t){var n=_.toArray(arguments).slice(2);return _.reduce(e,function(e,t){return t.apply(e,n)},t)}function $d(e){return _.isFunction(e.before)?e:Kd($d.behaviors,e)}function Zd(e,t){return Kd(Zd.behaviors,e,t)}function Xd(e){var t,n,i=f.getLocalConfig("contentHost");return i&&e?(t=new RegExp("(https:)?\\/\\/"+((t=qe)===ye?"pendo-static":Ie(t))+"-\\d+\\.storage\\.googleapis\\.com","g"),n=new RegExp("(https:)?\\/\\/"+Ie(qe)+"\\.storage\\.googleapis\\.com","g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+It(Ve),"g"),i)):e}function Yd(e){return f.getLocalConfig("contentHost")?JSON.parse(Xd(JSON.stringify(e))):e}$d.behaviors=[],Zd.behaviors=[];var Qd=function(){var d={},c=_.compose(function(e){var t=function(){var e=It(f.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&C.debug("Failed to verify URL: "+e+" vs "+t),e},Xd);const u=[function(e,t,n){return e.replace(`<% if (typeof guide !== 'undefined') { %>
|
|
5
5
|
var guide = pendo.findGuideById('<%= guide.id %>');
|
|
6
6
|
var step = guide && guide.findStepById('<%= step.id %>');
|
|
7
7
|
<% } %>`,`var guide = pendo.findGuideById('${t}');
|
|
8
|
-
var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{var e=d[t.id];if(e&&e.language!==t.language&&delete d[t.id],!d[t.id]){var n,i=[],r={deferred:{},language:t.language},o=!1;if(d[t.id]=r,Rd.usesXhr()&&t.domUrl?(r.deferred.domJson=m.defer(),Rr.get(c(t.domUrl)).then(function(e){r.domJson=Qd(e.data);var e=e.data;e=e,_.isObject(e)&&e.hasOwnProperty("type")&&e.hasOwnProperty("children")&&e.hasOwnProperty("props")?r.deferred.domJson.resolve():(C.critical(new Error("Response from the guide was not in proper JSON format")),r.deferred.domJson.reject())})["catch"](function(e){C.critical(e),y.resourceFetchFail.trigger(t,e),r.deferred.domJson.reject("Failed to load content")}),i.push(r.deferred.domJson.promise),o=!0):t.domJsonpUrl&&(r.deferred.domJson=m.defer(),n=Aa(c(t.domJsonpUrl),function(e){k.removeNode(n),e&&y.resourceFetchFail.trigger(t,e)},!0),i.push(r.deferred.domJson.promise),o=!0),t.contentUrlJs&&!f.get("preventCodeInjection")){r.deferred.content=m.defer();var a=Aa(c(function(e){if(ct()){var t=e.replace(/^https?:\/\/[^/]+\/guide-content\//,"").split("/"),n=t[0],n=$A.get("$Resource.pendoGuide"+function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",n=e.length,i=0,r=0,o="",a=0;a<n;a++)for(r=r<<8|e[a],i+=8;5<=i;)o+=t[r>>>i-5&31],i-=5;return 0<i&&(o+=t[r<<5-i&31]),o}(Ye(n)));if(_.isString(n))return n+"/"+t.join("/")}return e}(t.contentUrlJs)),function(e){k.removeNode(a),e&&y.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise),t.contentUrlCss&&(r.deferred.css=m.defer(),Aa({url:c(t.contentUrlCss),type:"text/css"},function(){r.deferred.css.resolve()}),i.push(r.deferred.css.promise))}else if(t.contentUrl&&!f.get("preventCodeInjection")){r.deferred.content=m.defer();var s=Aa(function(e,t){if(!_.isString(e))return e;var n=_.indexOf(e,"?");return n<0?e+t:e.substring(0,n)+t+e.substring(n)}(c(t.contentUrl),".js"),function(e){k.removeNode(s),e&&y.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise)}else if(!o)return m.reject("fetchedDomContent is still false");r.deferred.promise=m.all(i).then(function(){return _.omit(r,"deferred")})}return d[t.id].deferred.promise}catch(u){throw y.resourceFetchFail.trigger(t,u),u}},reset:function(){d={}},guideContent:function(e,t,n,i,r){var o,a,s;_.isString(n)&&(o=n,a=e,s=t,n=_.reduce(u,(e,t)=>t(e,a,s),o),_.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?_.template(n):_.constant(n)),o=d[e+t])&&o.deferred.content&&(o.content=n,o.template=i,o.script=r,o.deferred.content.resolve())},receiveDomStructureJson:function(e,t,n){(e=d[e+t])&&e.deferred.domJson&&(e.domJson=Qd(n),e.deferred.domJson.resolve())}}}(),tc=(nc.state={},nc.queue=[],nc.pending=function(){return _.reduce(nc.state,(e,t)=>e+(t.loaded?0:1),0)},nc.reset=function(){ec.reset(),nc.state={},nc.queue=[]},nc.prefetch=function(e){var t;return nc.hasContent(e)?_.get(nc.state[ic(e)],"promise"):(t=m.defer(),nc.queue.push([t,e]),t.promise)},nc.processPrefetch=function(e=10){return nc.queue.length?(e=nc.queue.splice(0,Math.max(e-nc.pending(),0)),m.all(_.map(e,t=>nc.fetchContent(t[1]).then(e=>{t[0].resolve(e)})["catch"](e=>{t[0].reject(e)})))):m.resolve()},nc.fetchContent=function(t){var e=ic(t);if(!(i=nc.state[e])){var n,i={},r=t.getGuide();if(r.control)return m.resolve();r&&r.language&&(n=r.language);var r=t.guideId+t.id,o=_.extend({id:r,language:n,guideId:t.guideId},_.pick(t,"contentUrl","contentUrlCss","contentUrlJs","domJsonpUrl","domUrl","domHash","contentHash","contentJsHash"));i.promise=Ud.verify(o).then(function(){return i.verified=!0,ec.load(o)}).then(function(e){return i.loaded=!0,e}),nc.state[e]=i}return i.promise.then(function(e){_.extend(t,e)})},nc.hasContent=function(e){return me(e.content)||me(e.domJson)},nc);function nc(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(_.extend(i,{fetchContent:function(e=!1){return e?nc.prefetch(i):nc.fetchContent(i)}}),i.after("render",function(e){!function(e){var t=_.indexOf(n.steps,i);_.chain(n.steps).rest(t+1).first(e).each(function(e){_.isFunction(e.fetchContent)&&e.fetchContent()}).value()}(t)})),i}function ic(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}var rc=function(){var t=y.runtime;const r=[];function o(e,n,i,r){return _.filter(e,function(e){if(_.isFunction(e[r])){if(_.isFunction(e.test))try{return e.test(n,i,E)}catch(t){return C.critical("Error in global script test code block",{error:t}),!1}return _.isRegExp(e.regex)?e.regex.test(i.name)||e.regex.test(n.name):!0}})}function e(e,t,n="script"){var i=[];return"script"===n&&_.isFunction(e.script)&&i.push(e.script),_.size(r)&&(e=o(r,e,t,n),_.each(e,function(e){i.push(e[n])})),i}function i(n,i,r){const o=r.guide;o&&_.all(e(r,o,"beforeMount"),function(e){try{return e.call(n,i),!i.cancel}catch(t){return C.critical("Exception thrown running beforeMount for: "+JSON.stringify({guideId:o.id,stepId:r.id}),{error:t}),!1}})}var a=mn.call({}),s={beforeUnmount:{type:"trigger",fromUnmount:!1},beforeUpdate:{type:"trigger",fromUnmount:!1},updated:{type:"trigger",fromUnmount:!1},unmounted:{type:"trigger",fromUnmount:!0},advanced:{type:"trigger",fromUnmount:!0},dismissed:{type:"trigger",fromUnmount:!0},snoozed:{type:"trigger",fromUnmount:!0},hidden:{type:"trigger",fromUnmount:!0},beforeMount:{type:"triggerCancelable",fromUnmount:!1},beforeAdvance:{type:"triggerCancelable",fromUnmount:!1},beforePrevious:{type:"triggerCancelable",fromUnmount:!1},beforeDismiss:{type:"triggerCancelable",fromUnmount:!1},beforeSnooze:{type:"triggerCancelable",fromUnmount:!1}};function u(e){return s[e]}function n(e){var t,n=e.data[0];if(e.step=n,delete e.data,u(e.type))return-1<_.indexOf(["beforeUnmount","unmounted"],e.type)&&(t="active"===(t=n).seenState?"hidden":t.seenState,e.reason=t,"unmounted"===e.type)&&a.trigger(t,e),t=s[e.type].type,a[t](e.type,e),"unmounted"===e.type?a.trigger("afterUnmounted",e):"beforeMount"===e.type&&i(this,e,n),"triggerCancelable"!==t&&e.cancel&&delete e.cancel,e}function d(n){this.step=n,_.each(["read","write","clear"],function(t){this[t]=h[t],this[t+"ByGuide"]=function(){var e=_.first(arguments)+":"+_.get(n,"guide.id");return h[t].apply(this,[e].concat(_.rest(arguments)))}},this);var e=_.bind(function(e){this.step.id!==e.step.id?C.debug("aborting afterUnmounted b/c step ids don't match"):this.purge()},this);this.purge=_.partial(a.off,"afterUnmounted",e),a.on("afterUnmounted",e)}return d.prototype.on=function(e,t){var n,i;u(e)?(s[e].fromUnmount&&(t=_.once(t)),n=this.step,i=t,t=$n(t=e=>{var t=e["step"];if(t.id===n.id)return i(e);C.debug("called guide runtime callback on wrong step")}),a.on(e,t),this.purge=_.compose(this.purge,_.partial(a.off,e,t))):C.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)},{initialize:function(){t.on(n);var e=f.get("guides.globalScripts");_.each(e,rc.addGlobalScript)},teardown:function(){t.off(n),_.each(r,rc.removeGlobalScript)},addGlobalScript:function(e){var t;e=function(t){const e=_.without(_.keys(t),"script","test","regex","beforeMount");if(e.length){const n=t.script;t.script=function(){if(_.each(e,function(e){u(e)&&this.on(e,t[e])},this),_.isFunction(n))return n.apply(this,arguments)}}return t}(e),t=e,!_.isFunction(t.script)&&!_.isFunction(t.beforeMount)||t.test&&!_.isFunction(t.test)||t.regex&&!_.isRegExp(t.regex)?C.critical("Error adding invalid GlobalScript via API"):r.push(e)},removeGlobalScript:function(e){0<=(e=_.indexOf(r,e))&&r.splice(e,1)},getContext:function(e){return new d(e)},runCustomScripts:function(i,r){_.each(e(i,r),function(e){try{var t=rc.getContext(i);e.call(t,i,r,E)}catch(n){C.critical("Exception thrown running code block for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:n})}})},handleEvent:n}}();function oc(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?_.find(e.children,oc):void 0}function ac(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=ac(e.children[n],t);if(i)return i}return!1}function sc(e,t){if(t.props&&t.props.id===e)return t;if(t.children)for(var n=0;n<t.children.length;n++){var i=sc(e,t.children[n]);if(i)return i}}function uc(e,t,n,i=document.head){let r=document.getElementById(t);return r||((r=document.createElement("style")).setAttribute("id",t),e.get("inlineStyleNonce")&&r.setAttribute("nonce",e.get("inlineStyleNonce")),r.innerHTML=n,r=i.appendChild(r)),r}var dc={buildNodesFromTemplate:function(e,t,n,i,r){var o=i||O,a=r||E.BuildingBlockGuides.buildNodeFromJSON;switch(e){case"pendo_resource_center_module_list_item":return function(p,h,f,g){var e=p.templateChildren;return _.reduce(e,function(e,t,n){var i=P.findResourceCenterHomeView(f),r=_.find(f,function(e){return e.id===t.id});if(E.designer)r=t,i=_.find(f,function(e){return _.get(e,"attributes.resourceCenter.isTopLevel")});else{if(!r)return e;if(!r.hasResourceCenterContent)return _.each(r.children,function(e){e=N(e);e&&e.control&&e.steps[0].onControlGuide("control")}),e}var o,a,s,u=JSON.parse(JSON.stringify(p)),d=(delete u.templateChildren,u.props.id=u.props.id+"-"+n,u.props["data-pendo-module-guide-id"]=r.id,u.actions||(u.actions=[]),{action:"renderResourceCenterModule",source:u.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id}],uiMetadata:{},eventType:"click"}),d=(u.props["data-localization-direction"]&&d.parameters.push({name:"transitionDirection",type:"string",value:u.props["data-localization-direction"]}),E.designer||u.actions.push(d),_.get(i,"attributes.notificationBubble")),c=_.get(i,"attributes.notifications"),d=(d&&c&&("AnnouncementsModule"===_.get(r,"attributes.resourceCenter.moduleId")&&(o=r.id),o="chat"===_.get(r,"attributes.resourceCenter.integrationName")?"chat":o)&&(u.props["data-pendo-notification-id"]=o,c=u,r=d,d=o,o=(i=i).attributes.notifications.individualCounts[o],c=ac(c,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-row")}))&&(s=_.find(c.children,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-text")}))&&s.props&&s.props.style&&(l=parseInt(s.props.style.width,10))&&!isNaN(l)&&(a=c.children.indexOf(s),l=l-40+"px","100%"!==s.props.style.width&&(s.props.style.width=l),(l="rtl"===s.props.dir)?s.props.style["padding-left"]="40px":s.props.style["padding-right"]="40px",s.props.style["box-sizing"]="content-box",s={type:"div",children:[{type:"div",content:String(i.attributes.notifications.individualCounts[d]),props:{style:{position:"relative",top:"50%","font-weight":r["font-weight"],"font-family":r["font-family"],color:r.color}}}],props:{id:"pendo-home-view-bubble","class":"_pendo-home-view-bubble",style:Object.assign(Object.assign(Object.assign({position:"absolute","border-radius":"20px",height:"26px","line-height":"0px",padding:"0px 10px"},!l&&{right:"20px"}),l&&{left:"20px"}),{top:"50%","margin-top":"-14px","box-sizing":"content-box","background-color":r["background-color"],display:o?"block":"none"}),"aria-hidden":!0}},c.children.splice(a+1,0,s)),ac(u=lc(u,t,u.props.id,n),function(e){e=_.get(e,"props.class");return e&&0<=e.indexOf("_pendo-resource-center-module-list-item-text-container")})),i=ac(u,function(e){e=_.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),l=ac(u,function(e){e=_.get(e,"props.id");return e&&0<=e.indexOf("pendo-home-view-bubble-"+n)});return d&&(d.props["aria-hidden"]=!0,i)&&(i.props["aria-labelledby"]=d.props.id+" "+(l&&l.props.id)),e.concat(g(u,h,f))},[])}(t,n,o,a);case"pendo_resource_center_guide_list_item":return function(o,a,s,u){var e=o.templateChildren;return _.reduce(e,function(e,t,n){var i,r=pc(s,t);return r?(i=JSON.parse(JSON.stringify(o)),t.keywords&&(i.props["data-_pendo-text-list-item-1"]=t.keywords),delete i.templateChildren,i.props.id=i.props.id+"-"+n,i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},E.designer||i.actions.push(r),i=lc(i,t,i.props.id,n),e.concat(u(i,a,s))):e},[])}(t,n,o,a);case"pendo_task_list":return function(e,t,n,i){var r=e.templateChildren;_.filter(r,function(e){return pc(n,e)}).length?(e.children=_.filter(e.children,function(e){return"pendo_task_list_fallback_text"!==e.templateName}),function o(t,n){t.templateName&&(t.templateChildren=n);if(!t.children||!t.children.length)return;for(let e=0;e<t.children.length;e++)o(t.children[e],n)}(e,r)):e.children=_.filter(e.children,function(e){return"pendo_task_list_item"!==e.templateName&&"pendo_task_list_progress_bar"!==e.templateName});P.updatePseudoStyleSelectors(e);r=i(e,t,n);return[r]}(t,n,o,a);case"pendo_resource_center_onboarding_item":case"pendo_task_list_item":return function(s,u,d,c){var e=s.templateChildren;return _.reduce(e,function(e,t,n){var i,r,o,a=pc(d,t);return a?(delete(i=JSON.parse(JSON.stringify(s))).templateChildren,i.props.id=i.props.id+"-"+n,i.props["data-pendo-show-guide-id"]=a.id,i.props["class"]+=" pendo-task-list-item",i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:a.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},E.designer||i.actions.push(r),r=a.getTotalSteps(),o=a.getSeenSteps(),a.isComplete()&&(o=r),a=parseInt(o/r*100,10),ac(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=cc(t.subtitle,{currentStep:o,totalSteps:r}):t.stepProgress="Step "+o+" of "+r,i=lc(i,t,i.props.id,n),e.concat(c(i,u,d))):e},[])}(t,n,o,a);case"pendo_resource_center_onboarding_progress_bar":case"pendo_task_list_progress_bar":return function(e,t,n,i){var r=e.templateChildren||t.getGuide().attributes.resourceCenter.children,o=0,a=0,r=(_.forEach(r,function(e){e=pc(n,e);e&&(e.isComplete()?(o+=e.getTotalSteps(),a+=e.getTotalSteps()):(o+=e.getTotalSteps(),a+=e.getSeenSteps()))}),parseInt(a/o*100,10));isNaN(r)&&(r=0);r={totalPercentComplete:r+"%"};return ac(e=lc(e=JSON.parse(JSON.stringify(e)),r),function(e){return e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-progress-bar-fill")}).props.style.width=r.totalPercentComplete,[i(e,t,n)]}(t,n,o,a);case"pendo_task_list_fallback_text":return[a(t,n,o)];case"pendo_resource_center_announcement_item":return function(l,e,n,p){e=e.getGuide().attributes.resourceCenter.children,e=_.reduce(e,function(e,t){t=pc(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!_.every(e,function(e){e=e.steps[0];return!!tc.hasContent(e)}))return[];var t=P.getResourceCenter(),h=_.get(t,"attributes.notificationBubble");h&&(delete h.dir,"rtl"===l.props["data-localization-direction"])&&(h.dir="rtl");return _.map(e,function(e,t){var n,i,r,o,a,s,u,d="whatsnew"===_.get(e,"attributes.type"),c=JSON.parse(JSON.stringify(l));return c.props.id=c.props.id+"-"+t,c.props["data-pendo-announcement-guide-id"]=e.id,c.props["data-pendo-announcement-send-seen-event"]=!0,d?(t=c,d=h,s=p,n=Zd(r=e),(u=n.steps[0]).render(),rc.runCustomScripts(u,n),i=(n=u.guideElement)[0].id,uc(f,"pendo-whats-new-style-"+i,"#"+i+" h1::after { display:none; }",n[0]),d&&((o=hc(d)).props.style.top="20px"),!P.hasAnnouncementBeenSeen(r)&&o&&(t.props["class"]+=" pendo-unseen-announcement",t.children=[o]),i=s(t,u),n.appendTo(i),i):(d=c,r=h,o=p,u=Zd(t=e),s=t.steps[0],rc.runCustomScripts(s,u),u=JSON.parse(JSON.stringify(s.domJson)),d.children=[u],r&&(a=hc(r),u=ac(d,function(e){return"pendo-guide-container"===e.props.id}),r=parseInt(d.props.style["padding-top"],10),u=parseInt(u.props.style["padding-top"],10),a.props.style.top=u+r+5+"px"),!P.hasAnnouncementBeenSeen(t)&&a&&(d.props["class"]+=" pendo-unseen-announcement",d.children.unshift(a)),delete d.templateName,(u=sc("pendo-guide-container",d))&&(u.props.id=u.props.id+"-"+s.id),o(d,s))})}(t,n,o,a);case"pendo_guide_data_text_block":return function(e,t,n,i){var r=t.getGuide?t.getGuide():_.find(n,function(e){return e.id===t.guideId}),o=_.get(r,"attributes.dates."+r.language,!1);o=o?{showsAfter:o}:(o=_.get(r,"currentFirstEligibleToBeSeenAt")||_.get(r,"showsAfter")||_.get(r,"publishedAt"),o=o?new Date(o):new Date,r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][o.getMonth()]+" "+o.getDate()+", "+o.getFullYear(),{showsAfter:r});return r=lc(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:hc,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return _.reduce(e,function(e,t,n){t=pc(i,t);return t&&e.push(t),e},[])}};function cc(e,n){return e.replace(/<%=\s*([A-Za-z_0-9$]+)\s*%>/gi,function(e,t){return _.isNull(n[t])||_.isUndefined(n[t])?e:n[t]})}function lc(e,t,n,i){if(e.content&&(e.content=cc(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?cc(e.props["aria-label"],t):""),e.props.id)&&i!==undefined&&e.props.id!==n&&(e.props.id=e.props.id+"-"+i),e.children)for(var r=0;r<e.children.length;r++)lc(e.children[r],t,n,i);return e}function pc(e,t){e=_.find(e,function(e){return e.id===(t.id||t)});if(E.designer)return t;if(e){if(!e.ineligibleForRC)return e;e.control&&e.steps[0].onControlGuide("control")}}function hc(e){var t={left:"0px"};return"rtl"===e.dir&&(t={right:"0px"}),{type:"div",children:[],props:{"class":"pendo-unread-announcement-mini-bubble",style:Object.assign(Object.assign({position:"absolute","border-radius":"5px",height:"10px",width:"10px","line-height":"0px"},t),{top:"30px","box-sizing":"content-box","background-color":e["background-color"],"z-index":"10"})}}}var fc={buildSvgNode:function(e,t){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return gc(t)}},createProgressCircleSvg:gc};function gc(e){var t,n,i,r,o,a,s;return Te(9)?(n=(t=(t=e).svgAttributes).fillCircle.stroke,i=t.backgroundCircle.stroke,t=100<=(t.fillCircle.percentComplete||0),r=k(Z(E).createHTML('<div aria-hidden="true" focusable="false" class="pendo-progress-circle-ie"><div class="pendo-progress-circle-fill"></div></div>')),o=r.find(".pendo-progress-circle-fill"),t?o.css({border:"3px solid "+n,height:"10px",width:"10px"}):o.css({border:"3px solid "+i,height:"10px",width:"10px"}),r):100<=((t=e.svgAttributes).fillCircle.percentComplete||0)?(n=(n=t).fillCircle.stroke,(i=k(Z(E).createHTML('<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" class="pendo-progress-circle-fill" viewBox="0 0 24 24" fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>')))[0].setAttributeNS(null,"stroke",n),i):(r=(o=t).fillCircle.stroke,e=o.backgroundCircle.stroke,o=o.fillCircle.percentComplete||0,a='<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" version="1.1" viewBox="0 0 40 40" preserveAspectRatio="xMidYMid"><circle class="pendo-progress-circle-background" cx="20" cy="20" r="'+(a=100/(2*Math.PI))+'" stroke-width="6px" stroke-linecap="round" fill="none"></circle><circle class="pendo-progress-circle-fill" cx="20" cy="20" r="'+a+'" stroke-width="6px" stroke-linecap="round" transform="rotate(-90 20 20)" fill="none"></circle></svg>',s=(a=k(Z(E).createHTML(a))).find(".pendo-progress-circle-fill")[0],a.find(".pendo-progress-circle-background")[0].setAttributeNS(null,"stroke",e),o<=0?s.setAttributeNS(null,"stroke-width","0px"):(s.setAttributeNS(null,"stroke",r),s.setAttributeNS(null,"stroke-dasharray",o+", 100")),a)}var mc=function(e,t){return e<t},vc=_.negate(mc);function yc(){var e=Xo();return wo(e)?ea(e):((e=qo()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function bc(e,t,n){var i={},r=t.top-e.top,e=t.left-e.left;return i.top=r-n.top,i.left=e-n.left,i.height=t.height+n.top+n.bottom,i.width=t.width+n.left+n.right,i.bottom=i.top+i.height,i.right=i.left+i.width,{top:{top:0,height:Math.max(i.top,0),left:i.left,width:i.width},left:{top:0,bottom:0,left:0,width:i.left},bottom:{top:i.bottom,width:i.width,bottom:0,left:i.left},right:{top:0,bottom:0,left:i.right,right:0}}}function wc(e){var t;if(e&&e.length)return t=wo(Xo())?ea:Io,(e=_.reduce(e,function(n,e){var i;return ha(e)?(i=t(e))?(_.each([["top",mc],["right",vc],["bottom",vc],["left",mc]],function(e){var t=e[0],e=e[1];n[t]&&!e(i[t],n[t])||(n[t]=i[t])}),n):void 0:n},{})).height=e.bottom-e.top,e.width=e.right-e.left,e}function Sc(e,t){var n=yc(),e=wc(e)||{top:0,left:0,right:n.width,bottom:n.height,width:0,height:0};return{viewport:n,box:e,overlays:bc(n,e,t)}}function Ec(e){var t=[],n=_.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==Xo()){t.push(e.element);for(var i=n.additionalElements.replace(/\s/g,"").split(","),r=0;r<n.additionalElements.length;r++)try{var o=k(i[r]);o&&_.each(o,function(e){t.push(e)})}catch(a){C.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var Ic=null,_c=function(e){var t=!_.isEqual(e,Ic);return Ic=e,t},Cc=null,xc=function(e){var t=!_.isEqual(e,Cc);return Cc=e,t},Tc=null,kc=function(e){var t=!_.isEqual(e,Tc);return Tc=e,t},Ac=function(e){return xc(e.viewport)||_c(e.box)||kc(e.overlays)};function Rc(e){try{var t=Sc(Ec(e),_.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));Ac(t)&&_.each(e.backdrop.children,function(n){var e=n.getAttribute("pendo-region"),e=t.overlays[e];_.each(e,function(e,t){n.style[t]=e+"px"})})}catch(n){C.info("Failed to update BlockOut ui",{contexts:["error"]})}}function Oc(e){try{var t,n,i,r;if(!(0<k("._pendo-guide-backdrop_").length))return t=Sc(Ec(e),_.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),Ac(t),n={"z-index":1e4,position:"fixed"},i=[],_.each(t.overlays,function(e,t){t=function(e,t){var n=k("div.pendo-backdrop-region-"+e);n.length||(n=k(document.createElement("div")).addClass("pendo-backdrop-region-"+e));return k(n).css(t).attr("pendo-region",e),n}(t,_.extend({},e,n));i.push(t)}),o=i,a=sc("pendo-backdrop",e.domJson),_.each(["left","right","width","height","bottom","top"],function(e){delete a.props.style[e]}),s=k(document.createElement("div")).attr("id","pendo-backdrop").addClass("_pendo-guide-backdrop_"),_.each(a.props,function(n,i){_.each(o,function(e,t){"style"===i?e.css(a.props.style):"class"===i?e.addClass(n):"id"===i?e.attr(i,n+"-"+t):e.attr(i,n),s.append(e)})}),r=s,e.backdrop=r[0],r}catch(u){C.info("Failed to add BlockOut ui",{contexts:["error"]})}var o,a,s}var Nc="top",Mc="bottom",Lc="left",Pc="right",Fc="center";function Dc(e,t,n){return n===Pc||n===Lc?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?Fc:n<e/2?Pc:Lc)}const Uc={DEFAULT_CARET_OFFSET:10,BOUNDARY_MARGIN_RIGHT:.98,BOUNDARY_MARGIN_LEFT:.02,Z_INDEX:{DEFAULT:"300000",CARET:11,BORDER_CARET:10}};var Gc={createBBTooltip:zc,getBBTooltipDimensions:Wc,determineBBHorizontalBias:Dc,determineTooltipPosition:Vc,positionBBTooltipWithBias:Jc,calculateToolTipPositionForTopBottom:Kc,calculateToolTipPositionForLeftRight:Xc,buildTooltipCaret:Yc,styleTopOrBottomCaret:el,styleLeftOrRightCaret:tl,buildBorderCaret:nl,determineBorderCaretColor:rl,placeBBTooltip:function(e,t){var n,i,r,o,a,s,t=t||ol(e);t&&(r=t.ownerDocument||document,n=r.defaultView||window,r=e.element||md(e,r),i=Jo(r,n),"none"!==R(e.elements[0]).display)&&(r=Io(r),s=e.attributes.layoutDir,e=e.guideElement,o=k(t).find("#pendo-guide-container"),a=o[0].style,t=R(t),t={height:parseInt(t.height,10),width:parseInt(t.width,10)},o={height:parseInt(o[0].getAttribute("data-caret-height"),10)||0,width:parseInt(o[0].getAttribute("data-caret-width"),10)||0,backgroundColor:o[0].style["background-color"],offset:Uc.DEFAULT_CARET_OFFSET,borderColor:a.borderColor,borderWidth:parseInt(a.borderWidth,10)||0},a=this.getBBTooltipDimensions(i,t,o,s,r,qo(n)),o.height&&o.width&&(t=e.find(".pendo-tooltip-caret")[0],s=e.find(".pendo-tooltip-caret-border")[0],t&&Qc(t,a,o,i),s)&&il(s,o,a.layoutDir,t),e.css({top:a.top,left:a.left,position:i.fixed?"fixed":"absolute"}))},attachBBAdvanceActions:qc,attachScrollHandlers:jc,isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!_.isObject(e.domJson)||!(e=oc(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForTooltip:function(e,t,n){zc(t,e.element,e,n),e.hasBeenScrolledTo||(ga(e.element),bd(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)},patchGuideContainerWidthForResponsiveTooltips:function(e,t,n){t=t||ol(e);var i,r,o,a,s,u;t&&(i=e.element||md(e,t.ownerDocument||document))&&(o=t.style.width)&&-1!==o.indexOf("vw")&&(o=Bc(e,i,n,t))&&(e=t,{elementPos:i,tooltipSizes:n,screenDimensions:t,caretDimensions:o,elementIsNotVisible:r}=i=o,o=parseInt(o.width,10)||0,a=parseInt(e.style.maxWidth,10),s=parseInt(e.style.minWidth,10),u=parseFloat(e.style.width)/100,r?n.width-=o:"left"===n.layoutDir?(r=i.left-o,n.width=Math.max(0,r*u)):"right"===n.layoutDir&&(r=t.width-i.right-o,n.width=Math.max(0,r*u)),a&&n.width>a&&(n.width=a),s&&n.width<s&&(n.width=s),e.style.width=n.width+"px")}};function Bc(e,t,n,i){var r,o,a=(t.ownerDocument||document).defaultView||window,s=Jo(t,a),t=Io(t),a=qo(a),u=e.attributes.layoutDir||"auto";return(0!==s.height||0!==s.width)&&(e=e&&!e.elementPathRule,n=ac(n,function(e){return"pendo-guide-container"===e.props.id}))?(r={height:parseInt(n.props["data-caret-height"],10)||0,width:parseInt(n.props["data-caret-width"],10)||0,backgroundColor:n.props.style["background-color"],offset:Uc.DEFAULT_CARET_OFFSET,borderWidth:0},n.props.style.border&&(o=n.props.style.border.split(" "),r.borderColor=o[2],r.borderWidth=parseInt(o[0],10)||0),{elementPos:s,screenPos:t,screenDimensions:a,caretDimensions:r,tooltipSizes:{width:i.offsetWidth,height:i.offsetHeight,layoutDir:u},containerDomJson:n,elementIsNotVisible:e}):null}function zc(e,t,n,i){var r,o,a,s,u;if(n.guideElement)return(t=Bc(n,t,e,i))?({elementPos:e,tooltipSizes:a,screenPos:u,caretDimensions:r}=t,(o=n.guideElement).addClass(hd()?ud:sd),qc(n),a=Wc(e,{height:a.height,width:a.width},r,n.attributes.layoutDir,u,t.screenDimensions),n&&(n.dim=a),n&&_.isFunction(n.getGuide)&&(s=n.getGuide()),u=_.get(s,"attributes.resourceCenter"),e.fixed?(o.css({position:"fixed"}),i.style.position="absolute"):n&&u||(i.style.position="absolute"),r.height&&r.width&&Yc(o,a,r,e),t=Uc.Z_INDEX.DEFAULT,i&&i.style&&i.style["z-index"]&&(t=i.style["z-index"]),o.css({"z-index":t}),u||o.css({height:"auto",width:"auto",overflow:"visible"}),n.elementPathRule&&o.css({left:a.left,top:a.top,position:e.fixed?"fixed":"absolute"}),"top"===a.layoutDir&&a.hbias===Lc&&o.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),jc(n,al),o[0]):null}function jc(e,t){e&&_.isFunction(e.attachEvent)&&(pd()&&e.element===k.getBody()||(t=_.throttle(_.bind(t,e,e),10),e.attachEvent(window,"scroll",t,!0),da(_.bind(e.attachEvent,e),e.targetElement,t)))}function Hc(t,n){var e=k(n.elementPathRule)[0];n.attachEvent(e,t,function(e){k.data.set(e,"advanced",!0),Gg(t,n)})}function qc(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?Hc("mouseover",e):e.attributes.advanceActions.elementClick&&Hc("click",e))}function Wc(e,t,n,i,r,o){var a,s,i=i||"auto",t={width:Math.min(t.width,o.width),height:t.height},u=(t.layoutDir=i,t.hbias=Dc(e,o,i),t.vbias=(a=e,u=o,(s=i)===Nc||s===Mc?s:(s=a.top,(u=(a=u.height)/3)<s&&s<2*u?Fc:s<a/2?Mc:Nc)),t.layoutDir=Vc(t,o,r,i),Jc(t,e,o,n));return t.top=u.top,t.left=u.left,"top"===t.layoutDir?t.top-=n.height:"bottom"===t.layoutDir?t.top+=n.height:"right"===t.layoutDir?t.left+=n.height:"left"===t.layoutDir&&(t.left-=n.height),t}function Vc(e,t,n,i){var r,o,a,s,u,d,c;return i&&"auto"!==i?i:(i=n.top,o=(r=n.left)+n.width,a=n.top-e.height<0,s=n.top+n.height+e.height>t.height,u=n.left-e.width<0,d=n.left+n.width+e.width>t.width,!(s&&a&&u&&d)&&(i<t.height/3&&(c="bottom"),(i>2*t.height/3||e.hbias===Fc)&&(c="top"),"top"===(c=r<e.width&&t.width-o<e.width?"bottom":c)&&n.top-e.height<0&&(c="bottom"),s&&a&&(e.hbias!==Fc&&(c=e.hbias),u&&d||(d||(c="right"),u)||(c="left")),(c=c&&"bottom"!==c||!s||a?c:"top")||e.hbias)||"bottom")}function Jc(e,t,n,i){return"top"===e.layoutDir||"bottom"===e.layoutDir?Kc(e,n,t,e.layoutDir,e.hbias,i):Xc(e,n,t,e.vbias)}function Kc(e,t,n,i,r,o){var a=e.height,s={top:null,left:null},a=("bottom"===i?s.top=n.top+n.height:"top"===i&&(s.top=n.top-a),{right:(i=t).width*Uc.BOUNDARY_MARGIN_RIGHT,left:i.width*Uc.BOUNDARY_MARGIN_LEFT});return s.left="right"===r?function(e,t,n,i,r,o){var n=$c(n),a=t.width;e=e.left+e.width/2-n;e+t.width>i.width&&(e-=e+t.width-i.width);n=e+a;if(r<n)return e-(t=n-r)<o?Zc(e,a,i):e-t;return e}(n,e,o,t,a.right,a.left):"left"===r?function(e,t,n,i,r,o){n=$c(n),t=t.width;e=e.left-t+e.width/2+n;if(e<o)return r<e+t+(n=o-e)?Zc(e,t,i):e+n;return e}(n,e,o,t,a.right,a.left):function(e,t,n,i,r){t=t.width;e=e.left+e.width/2-t/2;var o=e+t;if(i<o){if((e-=o-i)<r)return Zc(e,t,n)}else if(e<r){o=(e+=r-e)+t;if(i<o)return Zc(e,t,n)}return e}(n,e,t,a.right,a.left),s}function $c(e){e=(parseInt(e.offset,10)||0)+(parseInt(e.width,10)||0)+(parseInt(e.borderWidth,10)||0);return isNaN(e)?0:e}function Zc(e,t,n){n=n.width-(e+t);return n<e?e-(e-n)/2:e<n?e+(n-e)/2:e}function Xc(e,t,n,i){var r=e.height,o=e.width,a={top:null,left:null};return"right"===e.layoutDir?a.left=n.left+n.width:"left"===e.layoutDir&&(a.left=Math.max(0,n.left-o)),"bottom"===i?((o=n.top+n.height/2)+e.height>t.height&&(o-=o+e.height-t.height),a.top=o):a.top="top"===i?n.top-r+n.height/2:n.top-r/2+n.height/2,a}function Yc(e,t,n,i){var r=document.createElement("div"),i=(r.setAttribute("class","pendo-tooltip-caret pendo-tooltip-caret--"+t.layoutDir),r.style.position="absolute",r.style.zIndex=Uc.Z_INDEX.CARET,Qc(r,t,n,i),e.find("#pendo-guide-container")[0].parentNode);i.appendChild(r),n.borderWidth&&(e=nl(r,n,t.layoutDir),i.appendChild(e))}function Qc(e,t,n,i){"top"!==t.layoutDir&&"bottom"!==t.layoutDir||el(e,t,n,i),"left"!==t.layoutDir&&"right"!==t.layoutDir||tl(e,t,n)}function el(e,t,n,i){e.style["border-left"]=n.width+"px solid transparent",e.style["border-right"]=n.width+"px solid transparent",e.style.right="";i=i,r=n,o=(a=t).hbias;var r,o,a,i=i&&i.left?i.left+i.width/2-a.left-r.width:"left"===o?a.width-2*r.width-r.offset-r.borderWidth:"right"===o?r.offset+r.borderWidth:a.width/2-r.width;return e.style.left=i+"px","bottom"===t.layoutDir&&(e.style["border-bottom"]=n.height+"px solid "+n.backgroundColor,e.style["border-top"]="",o=-1*n.height,n.borderWidth&&(o+=n.borderWidth),e.style.top=o+"px",e.style.bottom=""),"top"===t.layoutDir&&(e.style["border-top"]=n.height+"px solid "+n.backgroundColor,e.style["border-bottom"]="",a=-1*n.height,n.borderWidth&&(a+=n.borderWidth),e.style.bottom=a+"px",e.style.top=""),e}function tl(e,t,n){var i,r=qo();return e.style["border-top"]=n.width+"px solid transparent",e.style["border-bottom"]=n.width+"px solid transparent",e.style.bottom="",t.vbias===Nc?(i=t.height-2*n.width-n.offset-n.borderWidth,e.style.top=i+"px",t.top+=n.offset+n.width+n.borderWidth):t.vbias===Mc?(e.style.top=n.offset+n.borderWidth+"px",t.top-=n.offset+n.width+n.borderWidth,t.top+t.height>r.height&&(t.top=t.top-(t.top+t.height-r.height)),t.top=Math.max(0,t.top)):e.style.top=t.height/2-n.width+"px","left"===t.layoutDir&&(e.style["border-left"]=n.height+"px solid "+n.backgroundColor,e.style["border-right"]="",i=-1*n.height,n.borderWidth&&(i+=n.borderWidth),e.style.right=i+"px",e.style.left=""),"right"===t.layoutDir&&(e.style["border-right"]=n.height+"px solid "+n.backgroundColor,e.style["border-left"]="",r=-1*n.height,n.borderWidth&&(r+=n.borderWidth),e.style.left=r+"px",e.style.right=""),e}function nl(e,t,n){var i=e.cloneNode();return i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=Uc.Z_INDEX.BORDER_CARET,il(i,t,n,e),i}function il(e,t,n,i){for(var r={top:"",right:"",bottom:"",left:""},o=["Top","Right","Bottom","Left"],a=0;a<o.length;a++){var s="border"+o[a]+"Width",u="border"+o[a]+"Color",d="border"+o[a]+"Style";i.style[s]?(r[s]=parseInt(i.style[s],10)+t.borderWidth+"px",r[u]=rl(i.style[u],t.borderColor),r[d]="solid"):(r[s]="",r[u]="",r[d]="")}"top"===n&&(r.left=parseInt(i.style.left,10)-t.borderWidth+"px",r.bottom=parseInt(i.style.bottom,10)-t.borderWidth+"px"),"bottom"===n&&(r.left=parseInt(i.style.left,10)-t.borderWidth+"px",r.top=parseInt(i.style.top,10)-t.borderWidth+"px"),"right"===n&&(r.top=parseInt(i.style.top,10)-t.borderWidth+"px",r.left=parseInt(i.style.left,10)-t.borderWidth+"px"),"left"===n&&(r.top=parseInt(i.style.top,10)-t.borderWidth+"px",r.right=parseInt(i.style.right,10)-t.borderWidth+"px"),_.extend(e.style,r)}function rl(e,t){return"transparent"===e?e:t}function ol(e){var t,n;if(e.guideElement)return t="pendo-resource-center-container"===e.guideElement.attr("id"),n=oc(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}function al(e){ha(e.element)?(Gc.placeBBTooltip(e),k(e.elements[0]).css({display:"block"})):k(e.elements[0]).css({display:"none"})}function sl(t){var e=t.find('[data-pendo-grow-height="true"]');if(e.length){var n=Object.entries(e),i=[];for(let e=0;e<n.length;e++)if(Number.isInteger(Number.parseInt(n[e][0],10))){const o=n[e][1];var r=_.some(i,function(e){return e.parentNode===o.parentNode});if(!r){let e=t[0];r=o.parentNode.closest('[data-pendo-grow-height="true"]');if(r){if(!i.includes(r))continue;e=r}ul(o,e),i.push(o)}}}}function ul(t,e){let n=0;var i=t.parentNode.children;for(let e=0;e<i.length;e++){var r,o=i[e];o!==t&&(r=R(o),r=parseInt(r.marginTop,10)+parseInt(r.marginBottom,10),n+=o.offsetHeight+r)}var a=e.offsetHeight,e=R(e),e=parseInt(e.paddingTop,10)+parseInt(e.paddingBottom,10),s=R(t),s=parseInt(s.marginTop,10)+parseInt(s.marginBottom,10),a=Math.max(a-e-n-s,0);0<a&&(t.style.height=a+"px")}function dl(e,t){var n,i,r,o,a,s,u,d,c,e=k("#"+e,t)[0];e&&(t=k(e),n=k(t.find("#pendo-guide-container")[0]),r="%"===(i=e.style.height)[i.length-1]?"%":"px",o=parseInt(i,10),a=e.getAttribute("data-pendo-static-height"),t.css({height:"auto"}),a||n.css({"max-height":"none"}),s=parseInt(R(e).height,10),u=qo().height,d=parseInt(e.style.top,10),d=isNaN(d)?0:d,c=parseInt(e.style.bottom,10),(u=u-d-(c=isNaN(c)?0:c))<s&&(n.css({"max-height":u+"px",overflow:"auto"}),s=u),s!==o?(t.css({height:(d=a&&o?o:s)+r}),"Centered"!==(c=e.getAttribute("data-vertical-alignment"))&&"Left Aligned"!==c&&"Right Aligned"!==c||t.css({"margin-top":"-"+(u<s?u:d)/2+"px"})):t.css({height:i}))}function cl(e,t){e=k("#"+e,t)[0];if(e){t=e.getAttribute("data-pendo-mobile-layout");if(!t){var n=k(e),t=k(n.find("#pendo-guide-container")[0]),i=parseInt(e.style.width,10),r=(t.css({"max-width":"none"}),n.css({"margin-right":"0px"}),parseInt(R(e).width,10)),o=qo().width-parseInt(e.style.left||0,10)-parseInt(e.style.right||0,10);if(o<r&&(t.css({"max-width":o+"px"}),r=o),!isNaN(i))switch(e.getAttribute("data-vertical-alignment")){case"Centered":case"Top Aligned":case"Bottom Aligned":var a=r/2;parseInt(n.css("margin-left"),10)!==a&&n.css({"margin-left":"-"+a+"px"});break;case"Right Aligned":case"Top Right Aligned":case"Bottom Right Aligned":a=i-r;parseInt(n.css("margin-right"),10)!==a&&n.css({"margin-right":"-"+a+"px"})}}}}function ll(e,i){var e=_.isArray(e)?e:[e],e=_.reduce(e,function(e,t){var t=k("#"+t,i),n=t[0];return n&&!n.getAttribute("data-pendo-mobile-layout")&&(n=t.find("#pendo-guide-container")[0],e.push(n)),e},[]),t=e;(t=_.reduce(t,function(e,t){return e.concat(_.toArray(k(['[class*="_pendo-text-"]:not([class*="_pendo-resource-center-"])','.pendo-mock-flexbox-element > [class*="_pendo-button-"]',"._pendo-multi-choice-poll-select"].join(","),t)))},[]))&&t.length&&pl(_.reduce(t,function(e,t){var n,t=k(t),i=gl(t[0]),i=i.marginLeft+i.marginRight,r=fl(t);return r&&(n=r.paddingLeft+r.paddingRight,r=r.width-i-n,e.push({$blockElement:t,availableSpace:r})),e},[])),_.each(e,function(e){var t=e,t=((t=k("._pendo-open-text-poll-input",t))&&t.length&&_.each(t,function(e){var t,n=k(e),i=n.attr("data-_pendo-open-text-poll-resize-base-width"),e=(i||(i=e.style.width,n.attr("data-_pendo-open-text-poll-resize-base-width",i)),gl(n[0])),r=e.marginLeft+e.marginRight,o=fl(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&hl(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),pl({$blockElement:n,availableSpace:o}))}),e);(t=k(["._pendo-video","._pendo-image"].join(","),t))&&t.length&&_.each(t,function(e){var t=k(e),n=gl(t[0]),i=n.width,n=n.marginLeft+n.marginRight,r=t.attr("data-_pendo-media-resize-base-width"),e=(r||(r=e.style.width,t.attr("data-_pendo-media-resize-base-width",r)),-1!==r.indexOf("%"));if(t.hasClass("_pendo-image")){var o=e&&100<parseInt(r,10),a=t.attr("data-pendo-accessible-element");if(o||!a)return void t.css({width:i});t.css({height:"auto"})}o=fl(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&hl(t,i,r,a),pl({$blockElement:t,availableSpace:a}))})})}function pl(e){_.isArray(e)||(e=[e]),_.each(e,function(e){e.$blockElement.css({"max-width":"none"})});var n=_.map(e,function(e){return gl(e.$blockElement[0]).width});_.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function hl(e,t,n,i){var r=-1!==e[0].style.width.indexOf("%"),i=i*(parseInt(n,10)/100);(r||t<i)&&e.css({width:i<0?0:i})}function fl(e){e=e.closest("._pendo-row");if(e){e=R(e[0]);if(e)return{width:parseFloat(e.width),paddingLeft:parseInt(e.paddingLeft,10),paddingRight:parseInt(e.paddingRight,10)}}}function gl(e){e=R(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var ml,M={calculateTotalOffsetWidth:bl,center:function(e,t){for(var n=t/2,t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=bl(e,r);e[r].style.left=n+o+"px"}1<e.length&&(i.style.right=n+"px");t.style.left=n+"px"},createFlexContainer:function(e,t){var n=document.createElement("div");n.style.display="inline-block",e||t||(n.style.position="absolute");return n.style["vertical-align"]="top",n.setAttribute("class","pendo-mock-flexbox-element"),n},createFlexRow:function(){var e=document.createElement("div");return e.setAttribute("class","pendo-mock-flexbox-row"),e.style.display="block",e.style.position="relative",e.style.width="100%",e},findMaxChildHeight:function(e,t){for(var n=[],i=0;i<e.length;i++){var r;t&&-1!==(e[i].children[0].children[0].getAttribute("class")||"").indexOf("pendo-block-wrapper")&&(r=e[i].children[0].offsetHeight+"px",e[i].style.height=r),n.push(e[i].offsetHeight)}return _.reduce(n,function(e,t){return Math.max(e,t)},20)},flexEnd:function(e,t){for(var n=t,t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=bl(e,r);e[r].style.left=n+o+"px"}1<e.length&&(t.style.left=n+"px");i.style.right="0px"},flexStart:function(e){e[0].style.left="0px";for(var t=1;t<e.length;t++){var n=bl(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return _.filter(e,yl)},getPendoVisualElements:function(e){return _.filter(e,function(e){return!yl(e)})},initializeFlexElements:function(e){var t=e.cloneNode(),n=vl(e),i=M.getPendoInlineUIElements(e.children);if(1===n.length&&0===n[0].id.indexOf("pendo-text"))return e;for(;t.childNodes.length;)t.removeChild(t.childNodes[0]);for(var r=0;r<n.length;r++)Sl(n[r])?t.appendChild(n[r]):t.appendChild(M.wrapElementInMockFlexboxContainer(n[r],e,t));for(var o=0;o<i.length;o++)t.appendChild(i[o]);return e.parentNode.replaceChild(t,e),t},isPendoInlineUIElement:yl,setElementHorizontalAlignment:function(e,t,n){if(!(e.length<1))switch(n){case"space-between":M.spaceBetween(e,t);break;case"space-around":M.spaceAround(e,t);break;case"space-evenly":M.spaceEvenly(e,t);break;case"center":M.center(e,t);break;case"flex-start":M.flexStart(e);break;case"flex-end":M.flexEnd(e,t)}},setElementVerticalAlignment:function(e,t,n){switch(n){case"top":M.topAlignment(e);break;case"center":M.centerAlignment(e,t);break;case"bottom":M.bottomAlignment(e)}},spaceAround:function(e,t){for(var n=t/(2*e.length),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=bl(e,r);e[r].style.left=2*n+o+"px"}t.style.left=n+"px",i.style.right=n+"px"},spaceBetween:function(e,t){for(var n=t/Math.max(e.length-1,1),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=bl(e,r);e[r].style.left=r*n+o+"px"}t.style.left="0px",i.style.right="0px"},spaceEvenly:function(e,t){for(var n=t/(e.length+1),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=bl(e,r);e[r].style.left=n+o+"px"}t.style.left=n+"px",i.style.right=n+"px"},topAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.top="0px"},centerAlignment:function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=i.offsetHeight,o=t/2,o=Math.round(o-r/2);i.style.top=o+"px"}},bottomAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.bottom="0px"},wrapElementInMockFlexboxContainer:function(e,t,n){var i=e.getAttribute("class")||"",r=-1!==i.indexOf("pendo-block-wrapper"),o=e.style&&"absolute"===e.style.position,a=_.get(e.style,"width",""),s=R(e).width,u=-1!==i.indexOf("_pendo-open-text-poll-wrapper")||-1!==i.indexOf("_pendo-image-wrapper")||-1!==i.indexOf("pendo-video-wrapper")||-1!==i.indexOf("_pendo-number-scale-poll-wrapper");r&&!u&&(a=(a?s:null)||R(e.children[0]).width);(0<=i.indexOf("_pendo-resource-center-onboarding-module-guide-complete-circle-container")||0<=i.indexOf("pendo-task-list-progress-circle"))&&(s=parseInt(R(t).width,10),d=parseInt(R(e).width,10)+parseInt(e.style.marginRight||0,10)+parseInt(e.style.marginLeft||0,10),t=(k(t).find("._pendo-simple-text").getParent()||k(n).find("._pendo-simple-text").getParent())[0],n=s-d,"border-box"!==_.get(t,"style.boxSizing")&&(n=n-parseInt(t.style.paddingLeft||0,10)-parseInt(t.style.paddingRight||0,10)),t.style.width=n.toString()+"px",t.style.maxWidth=n.toString()+"px");{var d;if(!i||i.indexOf("pendo-mock-flexbox-element")<0)return(s=M.createFlexContainer(o)).appendChild(e),-1<e.id.indexOf("pendo-text")&&"rtl"===e.dir&&(s.style.right="0px"),d=_.get(e,"children")[0],r&&d&&-1!==(d.getAttribute("class")||"").indexOf("image-preview-placeholder")&&(s.children[0].style.width=a),!r||u||e.style.width||(s.children[0].children[0].style.width=a),s}return e},getVisualElementsWrappedInFlexElements:vl,initializeFlexRows:function(e,t,n,i=!1){{var r;i?(e.style.display="flex",e.style.flexWrap="wrap",e.style.justifyContent=t,e.style.alignItems={top:"flex-start",center:"center",bottom:"flex-end"}[n]||"flex-start"):0!==(i=function(e){return _.filter(e,function(e){e=e.getAttribute("class")||"";return e&&-1<e.indexOf("pendo-mock-flexbox-element")})}(e.children)).length&&(r=M.getRowWidth(e),i=M.wrapFlexElementsInFlexRows(i,e,r),M.formatFlexRows(i,e,t,n,r))}},getRowWidth:wl,wrapFlexElementsInFlexRows:function(e,t,n){for(var i=n||wl(t),r=M.createFlexRow(),o={row:r,rowWidthUsed:0},a=[o],s=0;s<e.length;s++){var u=e[s],d=Io(u)["width"],d=parseInt(d,10);o.rowWidthUsed+=d,o.rowWidthUsed>i&&0!==_.indexOf(e,u)&&(o.rowWidthUsed-=d,(r=M.createFlexRow()).appendChild(u),a.push(o={row:r,rowWidthUsed:d})),o.row.appendChild(u)}return a},formatFlexRows:function(e,t,n,i,r){for(var o=r||wl(t),a=0;a<e.length;a++){var s=e[a],u=(t.appendChild(s.row),M.findMaxChildHeight(s.row.children,!1)),d=(s.row.style["min-height"]=u+"px",o-parseInt(s.rowWidthUsed,10));M.setElementHorizontalAlignment(s.row.children,d,n),M.setElementVerticalAlignment(s.row.children,u,i)}},isElementHiddenInGuide:Sl,flexAllThings:function(e,t){var n=null==(n=null==t?void 0:t.attributes)?void 0:n.useFlexbox,t=(null==t?void 0:t.guideElement)||document,e=k("#"+e,t)[0];e&&(Il(e),M.flexElement(e,n))},flexElement:function(e,i){e=k("[data-pendo-display-flex]",e);_.each(e,function(e){var t=i?e:M.initializeFlexElements(e),n=e.getAttribute("data-pendo-justify-content"),e=e.getAttribute("data-row-vertical-alignment");M.initializeFlexRows(t,n,e,i)})},maintainAspectRatios:Il};function vl(e){return k(["._pendo-button",".pendo-block-wrapper","._pendo-multi-choice-poll-select-border","._pendo-text-subTitle","._pendo-text-paragraph","._pendo-text-title","._pendo-text-custom","._pendo-close-guide","> ._pendo-simple-text","div._pendo-resource-center-module-list-item-text-container","._pendo-resource-center-right-caret",'[id^="pendo-onboarding-guide-progress-circle"]','[id^="pendo-task-list-progress-circle"]','[id^="pendo-a11y-list-item-button-block"]',"._pendo-resource-center-onboarding-module-listed-guide-link","._pendo-home-view-bubble"].join(","),e)}function yl(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function bl(e,t){for(var n=(e=Array.prototype.slice.call(e)).slice(0,t),i=0,r=0;r<n.length;r++)i+=n[r].offsetWidth;return i}function wl(e){var t=Io(e)["width"],e=R(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function Sl(e){El(e);var t=ea(e);if(0===t.width||0===t.height)return!0;if(!e.style||"visible"!==e.style.visibility)for(var n=e,i=e.id||"",r=0;0!==i.indexOf("pendo-g-")&&(El(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function El(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function Il(e){var n="data-aspect-ratio",e=k("["+n+"]",e);_.each(e,function(e){var t=e.getAttribute(n).split(":"),t=1<t.length?parseInt(t[0],10)/parseInt(t[1],10):parseFloat(t[0]);isNaN(t)||(e.style.height=e.offsetWidth/t+"px")})}function _l(){return!E.designer&&f.get("disableGuidePseudoStyles")}function Cl(e,t,n){return e&&e.templateName?dc.buildNodesFromTemplate(e.templateName,e,t,n,kl):"style"===e.type&&_l()?[]:[kl(e,t,n)]}function xl(e,t,n,i){e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw i&&(e+=' for node type "'+i+'"'),C.info(e),new Error(e)}function Tl(n,i,r,o){var a={allow:!0,allowfullscreen:!0,alt:!0,"alt-text":!0,autofocus:!0,"class":!0,cols:!0,contenteditable:!0,dir:!0,"for":!0,frameborder:!0,href:!0,id:!0,loading:!0,name:!0,placeholder:!0,placement:!0,rows:!0,role:!0,sandbox:!0,scoped:!0,src:!0,start:!0,style:!0,tabindex:!0,target:!0,title:!0,type:!0,value:!0},s={embed:{src:!0}},u=/^data-/,d=/^aria-/,e=_.keys(n);return _.reduce(e,function(e,t){return s[o]&&s[o][t]&&xl(t,r,i,o),a[t]||u.test(t)||d.test(t)||xl(t,r,i),e[t]=n[t],e},{})}function kl(n,i,e){i=i||{id:"unknown",guideId:"unknown"},n.props=Tl(n.props,i.id,i.guideId,n.type);var t,r=k(document.createElement(n.type));if(document.createElement("div").appendChild(r[0]),"script"===r[0].tagName.toLowerCase())return k(document.createElement("noscript"));if("pendo-backdrop"===(n.props&&n.props.id))return i.attributes&&i.attributes.blockOutUI&&i.attributes.blockOutUI.enabled&&Gc.attachScrollHandlers(i,Rc),Oc(i);if(_.each(n.props,function(e,t){"style"===t?r.css(n.props.style):"data-pendo-code-block"!==t||!0!==e||f.get("preventCodeInjection")?r.attr(t,e):(t=i.getContent(),0!==Qe.call(t).length&&r.addClass("pendo-code-block").html(t))}),n.content&&r.text(n.content),"style"===n.type&&(E.designer||(n.css=function(e){for(var t=["button:focus"],n=[],i=0;i<e.length;i++)_.contains(t,e[i].selector)||n.push(e[i]);return n}(n.css)),(t=f.get("inlineStyleNonce"))&&r.attr("nonce",t),r.styleSheet?r.styleSheet.cssText=Nl(n.css):r.text(Nl(n.css))),n.svgWidgetId&&fc.buildSvgNode(n.svgWidgetId,n).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)Ol(r,n.actions[a],i),"renderGuidesListItem"===n.actions[a].action&&((o=N(n.actions[a].parameters[0]))?r.text(o.name):r.attr("style","display: none;"));if(_.find(n.actions,function(e){return"dismissGuide"===e.action})&&!i.hasEscapeListener&&(i.hasEscapeListener=!0,i.attachEvent(window,"keyup",function(e){27===e.keyCode&&i.eventRouter.eventable.trigger("pendoEvent",{step:i,action:"dismissGuide"})},!0)),n.children)for(var s=ua(fd()),u=s!==document,d=0;d<n.children.length;d++){var c=Cl(n.children[d],i,e);_.each(c,function(e){var t;e&&("STYLE"!==e[0].tagName?e.appendTo(r):u?((t=new CSSStyleSheet).replaceSync(e[0].innerHTML),(s.hasOwnProperty("wrappedJSObject")?s.wrappedJSObject:s).adoptedStyleSheets.push(t)):(k.addClass(e[0],"pendo-style-"+(i.isBadge?i.guideId:i.id)),e.appendTo(document.head)))})}return r.hasClass("pendo-code-block")?r.find("img").each(function(e){Al(e,i)}):Al(r[0],i),r}function Al(e,t){var n=e.id&&-1!==e.id.indexOf("badge"),i=!!e.getAttribute("src"),r=e.className&&0<=e.className.indexOf("bb-control"),o=e.tagName&&e.tagName.toLowerCase(),a=e.className&&0<=e.className.indexOf("_pendo-video");("img"===o&&i&&!n&&!r||"iframe"===o&&t&&!a)&&"lazy"!==e.getAttribute("loading")&&(t.attributes&&!t.attributes.imgCount?t.attributes.imgCount=1:t.attributes&&t.attributes.imgCount&&t.attributes.imgCount++,Rl(k(e),t))}function Rl(e,i){e.on("load",function(){var e,t={},t=(!i.containerId&&i.domJson&&(t=oc(i.domJson)),i.containerId||t.props&&t.props.id||""),n=t&&k("#"+t,i.guideElement)[0];i&&i.attributes&&i.attributes.imgCount&&(i.attributes.imgCount--,n)&&i.attributes.imgCount<=0&&(cl(t,i.guideElement),ll(t,i.guideElement),M.flexAllThings(t,i),e=i.getGuide(),_.get(e,"attributes.isAnnouncement")||"AnnouncementsModule"===_.get(e,"attributes.resourceCenter.moduleId")||(dl(t,i.guideElement),(e=n.children.item("pendo-guide-container"))&&e.style&&"auto"===e.style.overflow&&(ll(t,i.guideElement),M.flexAllThings(i.containerId,i))),"tooltip"===i.attributes.calculatedType&&Gc.positionStepForTooltip(i,i.domJson,n),n.style.visibility="visible",n.parentNode.style.visibility="visible",k.event.dispatch(n,{type:"imagesLoaded"}))}),e.on("error",function(){var e=k("#"+i.containerId,i.guideElement)[0];e?("tooltip"===i.attributes.calculatedType&&Gc.positionStepForTooltip(i,i.domJson,e),e.style.visibility="visible",e.parentNode.style.visibility="visible",M.flexAllThings(i.containerId,i)):C.info("Failed to find guideContainer for id: "+i.containerId)})}function Ol(n,i,r){n.on(i.eventType,function(e){var t;i.designerAction?E.designerv2&&E.designerv2.designerActions&&E.designerv2.designerActions[i.action](n,i.parameters):(t={action:i.action,params:i.parameters,step:r,ignore:!!i.ignore,srcElement:e.srcElement},("showElements"!==i.action&&"hideElements"!==i.action||e.srcElement&&e.srcElement.getAttribute("id")===i.source||e.target&&e.target.getAttribute("id")===i.source)&&r.eventRouter.eventable.trigger("pendoEvent",t))})}function Nl(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=Nl(n[r].styles):_.each(n[r].styles,function(e,t){i+=t+":"+e,n[r].selector.match(/\d+%/)||(i+="!important;")}),i+="}";return i}function Ml(t){_.each(document.head.childNodes,function(e){e&&k.hasClass(e,"pendo-style-"+t)&&Ko(e)})}var Ll=function(){var e=window.navigator;return((_.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},Pl="meta",Fl=_.compose(JSON.parse,JSON.stringify),Dl=function(){var e=new Date,t=e.getDate(),n=e.getMonth()+1;return e=(t=t<10?"0"+t:t)+"/"+(n=n<10?"0"+n:n)+"/"+e.getFullYear()},Ul=function(e={}){(e=_.isObject(e)?e:{}).jwt&&e.signingKeyName&&(t=ys.getJwtOptions(e,"updateOptions"))&&(ys.set(_.pick(e,"jwt","signingKeyName")),e=t),t=e,n=_.extend({},t.visitor),i=_.extend({},t.account),t=_.extend({},t.parentAccount),n.id===Ln&&(C.info("Missing visitor id."),delete n.id),Rn(i.id)&&Rn(t.id)&&(Dn(i.id)?t.id=i.id.split(Fn)[0]:i.id=""+t.id+Fn+i.id),Rn(i.id)&&(i.id=""+i.id),Rn(n.id)?n.id=""+n.id:n.id=b({generate:!0}),n.language=Ll(),e={visitor:Fl(n),account:Fl(i),parentAccount:Fl(t),date:Dl(),version:E.VERSION},g.getters["metadata/selfHosted"]()&&(e.selfHosted=!0);var t,n=_.clone(Hl()),i=(f.setLocalConfig(_.extend({},f.getLocalConfig(),e)),g.commit("metadata/setMetadata",e),Hl()),r=(Rn(e.visitor.id)&&(E.identify(e.visitor.id,e.account.id),e.visitor.id=b(),e.account.id=qn()),at(e)),o=(void 0!==(o="object"==typeof(o=r)?at(o):o)&&o.toString&&(o=o.toString()),""+(_.isNumber(ml)?ml:Vn(Pl))!==o),r=(ml=r,o&&Wn(Pl,r),!_.isEqual(n,i));return{options:e,hashChanged:o,storeChanged:r}},Gl=$n(function(e){e=Ul(e);y.metadata.trigger(e)}),Bl=$n(function(e,t){_.isObject(e)?Gl(e):Bn(e,t)}),zl=function(){var t,e=k("script");return e=e,t=new RegExp("/agent/static/"+E.apiKey+"/pendo\\.js$"),!_.any(e,function(e){return t.test(e.src)})&&!Ee()},jl=function(){var e=f.get("blockAgentMetadata");return e!==undefined&&e};function Hl(){return g.getters["metadata/metadata"]()}function ql(){return JSON.parse(JSON.stringify(Hl()))}function Wl(e){var t=e.data[0],n=f.getLocalConfig()||{};Kn(e)?(Mn([Pl]),g.commit("metadata/reset",t)):(n.visitor=_.extend({},n.visitor,{id:t.visitor_id}),n.account=_.extend({},n.account,{id:t.account_id}),f.setLocalConfig(n),g.commit("metadata/setMetadata",n))}var Vl={Launcher:{addBehavior:_.noop},Metadata:{getMetadata:Hl},Util:{documentScrollTop:mo,documentScrollLeft:vo,getOffsetPosition:Jo},Events:y,JWT:{getJWT:ys.get}};var Jl,Kl,$l,Zl,Xl={},Yl=(Kl=[],$l=[],Zl={},(Jl=Xl).getExtensions=function(){return $l},Jl.tagExtension=function(e,t){e=Jl.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},Jl.findExtensionByTag=function(t){return _.find($l,function(e){return _.contains(e.tags,t)})},Jl.findExtensionByName=function(e){return _.findWhere($l,{name:e})},Jl.filterExtensionsByUse=function(t){return _.filter($l,function(e){return e.use===t})},Jl.findExtensionByNameAndProvider=function(t,n){return _.find($l,function(e){e=e.data;return!!e&&e.name===t&&e.provider&&e.provider.name===n})},Jl.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],Zl[e]={handler:t,validators:n}},Jl.getExtensionFrames=function(){return _.reduce($l,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=_.filter(e,Ql)).length&&(Kl=function n(e){if(!e.length)return e;var t=_.filter(e,ep);if(t.length)return n(_.difference(e,t));return e}(Kl.concat(e)))});function Ql(t){var e;return!!_.every(["name","version","use","type","uri"],_.partial(_.has,t))&&(e=t.use,e=Zl[e]?Zl[e].validators:[],_.every(_.map(e,function(e){return e(t)})))}function ep(e){var t;return"behavior"===e.use?!!e.uri(Jl,Vl)&&($l.push(e),!0):(t=e.use,!!(t=Zl[t]?Zl[t].handler||_.identity:null)&&((e=t(e))&&$l.push(e),!!e))}var L,tp,np,ip,rp,op,P={initializeResourceCenter:function(r){if(!(L=sp(r)))return m.resolve();if(g.getters["frames/isShownInAnotherFrame"]()(L.steps[0]))return m.resolve();if(P.isFullyCustom(L))return L.hasResourceCenterContent=!0,m.resolve();var e=up(L,r),t=_.reduce(e,function(e,t){return ap(t)?e.concat(t.steps[0].fetchContent()):e},[]);return t.push(Jd.validate(L).then(_.noop,function(){L.launchMethod="api"})),L.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},_.forEach(fp(),function(e){var t=Xl.findExtensionByNameAndProvider("chat",e),t=(t&&yp(e,t),Xl.findExtensionByNameAndProvider("helpcenter",e));t&&yp(e,t)}),_.forEach(e,function(t){var e=t.attributes.resourceCenter,n=e.children,i=e.moduleId,e=("IframeModule"===i&&(t.hasResourceCenterContent=!0),"SandboxModule"===i&&(t.hasResourceCenterContent=!0),"IntegrationModule"===i&&(t.integrationConfig=pp(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&hp(e.integrationName,e.integrationProvider),_.reduce(n,function(e,t){var n=_.find(r,function(e){return e.id===t});return n?e.concat(n):e},[]));"AnnouncementsModule"===i&&(L.attributes.notifications.individualCounts[t.id]=0,_.forEach(e,function(e){qp(e)||e.isControlGroup()||L.attributes.notifications.individualCounts[t.id]++}));-1<_.indexOf(["GuideListModule","OnboardingModule","AnnouncementsModule"],i)&&_.filter(e,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):!(e.ineligibleForRC=!0)}).length&&(t.hasResourceCenterContent=!0),t.guidesInModule=e}),L.modules=e,L.badgeHidden=!0,m.all(t)["catch"](()=>(L=null,C.error("Failed to load one or more Resource Center modules"),m.resolve()))},findResourceCenterHomeView:sp,findResourceCenterModules:up,replaceResourceCenterContent:dp,renderResourceCenterModule:function(e,t){dp(e.id,undefined,!0,t)},showHomeViewOrEmptyState:function(e){k("#pendo-resource-center-container._pendo-guide-walkthrough_").remove(),delete e.activeModule,e.hasResourceCenterContent&&e.skipResourceCenterHomeView?P.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,[{value:"none"},{value:"left"}]):e.showEmptyState&&(P.showResourceCenterEmptyState(),_.each(e.controlGuidesInAllModules,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}))},showResourceCenterEmptyState:function(){var e=k("#pendo-resource-center-empty-state-container");e&&e.length&&k(e[0]).css({display:"block"})},launchIntegrationByNameAndProvider:function(e,t,n){var e=Xl.findExtensionByNameAndProvider(e,t);return e?(n=k(n))?((e=e.getFrame()).appendTo(n),void e.css({display:"block"})):C.info("could not find target element for "+t+" integration"):C.info(t+" integration has not been loaded into the agent")},appendIntegrationToBodyByNameAndProvider:hp,attemptToPreserveIntegrationIframes:function(e){e.step&&(e=e.step.getGuide()).attributes&&e.attributes.resourceCenter&&(e=P.getResourceCenterContainer())&&(e=k(e).find('iframe[id^="_pendo-launcher-ext-frame-chat"]'))&&e.length&&e.each(function(e){e=k(e);e.css({display:"none"}),e.appendTo(fd())})},getResourceCenter:Cp,getResourceCenterContainer:xp,getResourceCenterBadge:Tp,addNotificationBubbleToResourceCenterBadge:Fp,addNotificationBubbleToTargetElement:Dp,updateNotificationBubbles:function(){var e=L,t=_.get(e,"attributes.notifications");if(t){var n=Op(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&jp(),t.totalUnseenCount=n;else{Np();var i=n!==t.totalUnseenCount;if(i||!Ap(ip)){if("badge"===e.launchMethod){i=Tp();if(!i)return;Fp(i.element(),e.attributes.notificationBubble,n)}if("dom"===e.launchMethod&&_.get(e,"attributes.activation.selector")){i=k(e.attributes.activation.selector);if(!i.length)return;Dp(i[0],e.attributes.notificationBubble,n),xr(window,"resize",_.debounce(Rp,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:jp,updateNotificationBubbleCount:Hp,updateNotificationBubbleOnHomeView:Mp,updateOrCreateNotificationBubble:Up,hexToRgb:kp,doesIntegrationExist:pp,calculateTotalNotificationCount:Op,updateNotificationBubblesOnHomeView:Np,createNotification:Bp,appendNotificationBubble:zp,hasAnnouncementBeenSeen:qp,clearAnnouncementUnseenInterval:cp,createAnnouncementUnseenInterval:lp,findShownResourceCenterModule:function(){var e=P.getResourceCenterContainer();if(e){e=k(e).find('[id^="pendo-g-"]');if(e){var t=e.attr("data-pendo-guide-id"),e=_.find(Qu(),function(e){return e.id===t});if(_.get(e,"attributes.resourceCenter.isModule",!1))return e}}},dismissResourceCenter:Wp,repositionResourceCenter:function(){var e=P.getResourceCenterContainer();{var t,n,i;e&&(i=P.findResourceCenterHomeView(Qu()).steps[0],t=_.get(i,"domJson.props.style.height"),t=parseInt(t,10),t=isNaN(t)?0:t,n=parseInt(_.get(i,"domJson.props.style.bottom",0),10),i=parseInt(_.get(i,"domJson.props.style.top",0),10),n=isNaN(n)?0:n,i=isNaN(i)?0:i,(n=qo().height-n-i)<=t&&(e.style.height=(n-10).toString()+"px"),i=parseInt(e.style.height,10),i=isNaN(i)?0:i,t<n)&&t!==i&&(e.style.height=t.toString()+"px")}sl(k(e))},repositionDoubleResourceCenterBadge:function(){var e,t,n;g.getters["frames/isLeader"]()&&1<(e=_.unique(_.compact([].concat(_.toArray(k("._pendo-resource-center-badge-container"))).concat(_.toArray(k("._pendo-resource-center-badge-container")))))).length&&function(e){var t=ea(e[0]),e=ea(e[1]);return ta(t,e)}(e)&&(t=Jo(e[0]).width+5,n=Jo(e[1]).left-t<0?"":"-",e[1].style.transform="translateX("+n+t+"px)")},resourceCenterIgnoreRtl:function(){return _.get(this.getResourceCenterBadge(),"ignoreRTL",!1)},adjustResourceCenterWidth:function(e){var t=xp();if(t){o=qo().width,r=k(t),e=k(e),r.css({"max-width":"none"}),e.css({"max-width":"none"}),i=parseInt(R(r[0]).width,10),o<i&&(i=parseInt(t.style.left,10),i=isNaN(i)?0:i,t=parseInt(t.style.right,10),t=isNaN(t)?0:t,o=o-t-i,r.css({"max-width":o+"px"}),e.css({"max-width":o+"px"}));var t=e,n=k('button[id^="pendo-a11y-list-item-button-block"]');if(n&&n.length)for(var i=k(t.find("ol._pendo-text-list-ordered"))[0],r=0,o=0,i=(i&&(i=R(i),o=parseInt(i.paddingLeft,10),r=parseInt(i.paddingRight,10)),k('[id^="pendo-onboarding-guide-progress-circle"]')[0]),e=0,a=0,s=0,u=(i&&(i=R(i),e=parseInt(i.width,10),a=parseInt(i.marginRight,10),s=parseInt(i.marginLeft,10)),o+r+e+s+a),d=parseInt(R(t[0]).width,10),c=0;c<n.length;c++){var l=n[c],p=k(l),l=(p.css({"max-width":"none"}),R(l)),h=parseInt(l.width,10),l=d-u-(parseInt(l.paddingLeft,10)+parseInt(l.paddingRight,10));l<=h&&p.css({"max-width":l})}}},setNativeIntegrationDefaults:yp,renderNativeIntegration:Ip,isSupportedNativeIntegration:gp,handleNativeIntegrationContinuation:_p,isProviderInstalled:mp,adjustNotificationBubbleForResize:Rp,getNotificationBubbleDefaultCss:Gp,getModuleId:Vp,isIframeModule:function(e){return"IframeModule"===Vp(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===Vp(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===Vp(e)&&e.hasResourceCenterContent},isFullyCustom:function(e){return"FullyCustomModule"===Vp(e)},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!P.isSupportedNativeIntegration(e.integrationProvider)||P.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n=sp(e);if(!n)return m.resolve();if(t.getters["frames/isShownInAnotherFrame"]()(n.steps[0]))return m.resolve();if(P.isFullyCustom(n))return m.resolve();var t=up(n,e),i=[],r=_.indexBy(e,"id");return _.each(t,function(e){var e=e.attributes.resourceCenter;"AnnouncementsModule"===e.moduleId&&(e=e.children,e=_.reduce(e,function(e,t){t=r[t];return t?e.concat(t):e},[]),_.each(e,function(e){ap(e)&&i.push(e.steps[0].fetchContent(!0))}))}),m.all(i)},setFocusForResourceCenterModule:function(e,t){var n;"HomeViewModule"===e[0].getAttribute("data-layout")?t&&(e=k('[data-pendo-module-guide-id="'+t+'"]'),n=e.find('button[id^="pendo-right-caret-"]')[0]):(t=k('[id="pendo-resource-center-module-title-container"]'),n=t.find('button[id^="pendo-left-caret-"')[0]);n&&n.focus()},revertRtlChanges:function(e,t){var n="rtl"===_.get(t,"data-localization-direction",!1),e=_.get(e,"attributes.badge.ignoreRTL",!1);n&&e&&!t["data-direction-changed"]&&(n=_.get(t,"style.left",!1),e=_.get(t,"style.right",!1),n)&&e&&(t.style.left=e,t.style.right=n,t["data-direction-changed"]=!0)},stashBadgeAriaLabel:Lp,resetBadgeAriaLabel:function(){var e=P.getResourceCenterBadge();{var t;e&&(e=e.element(),t=e.getAttribute("data-pendo-stashed-aria-label"))&&e.setAttribute("aria-label",t)}},getNotificationBubbleAriaLabelAttribute:Pp,updatePseudoStyleSelectors:Jp,hideRCBadge:Kp};function ap(e){return e.steps&&e.steps.length&&_.isFunction(e.steps[0].fetchContent)}function sp(e){var e=_.filter(e,function(e){return _.get(e,"attributes.resourceCenter.isTopLevel")&&!e.isFrameProxy}),t=_.find(e,function(e){return"staged"===e.state});return t||e[0]}function up(t,e){return _.filter(e,function(e){return e&&!e.isFrameProxy&&_.get(e,"attributes.resourceCenter.isModule",!1)&&e.state===t.state})}function dp(t,e,n,i=!0){if(!np){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),xp());if(e){var a=k(e).find('[id^="pendo-g-"]')[0];if(a){var s,u=a.getAttribute("data-pendo-guide-id"),d=_.find(Qu(),function(e){return e.id===t}),c=(t!==L.id?(Ml(_.get(L.activeModule||L,"steps.0.id")),L.activeModule=d):(s=L.activeModule,Ml(_.get(s,"steps.0.id")),delete L.activeModule),_.get(d,"attributes.resourceCenter.integrationProvider")),l=(gp(c)&&Ip(c),d.steps[0]),c=Jp(l.domJson),c=(c.props["data-pendo-guide-id"]=d.id,kl(c,l)),p=c[0],r=(-1===p.id.indexOf("pendo-g-")&&(p=c.find('[id^="pendo-g-"]')[0]),n||(p.style.transition=r,a.style.transition=r,"left"===o?p.style.left=e.offsetWidth+"px":"right"===o&&(p.style.left=-1*e.offsetWidth+"px")),n&&(k(a).remove(),s)&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),k(e).find('[id^="pendo-end-focus-bumper-"]')[0]);if(r?k(p).insertBefore(r):k(p).appendTo(e),l.guideElement=k(e),l.elements.push(l.guideElement[0]),P.adjustResourceCenterWidth(p),"AnnouncementsModule"===Vp(d)&&l.guide.guidesInModule?(ll(r=_.reduce(l.guide.guidesInModule,function(e,t){var n;return _.isUndefined(t.steps[0].attributes.imgCount)&&(n=t.steps[0].id,n=k(p).find("#pendo-g-"+n)[0]?n:t.id,e.push("pendo-g-"+n)),e},[]),l.guideElement),_.each(r,function(e){M.flexAllThings(e,l)})):M.flexAllThings("pendo-resource-center-container"),sl(k(e)),p.style.left="0px",!n){np=!0;try{"left"===o?a.style.left=-1*e.offsetWidth+"px":"right"===o&&(a.style.left=e.offsetWidth+"px"),Ut(function(){k(a).remove(),s&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),np=!1},200)}catch(h){throw np=!1,h}}return"AnnouncementsModule"===Vp(d)&&(lp(),r=dc.getGuidesInResourceCenterModule(d,Qu()),(n=_.reduce(r,function(e,t){return t.steps&&t.steps.length&&tc.hasContent(t.steps[0])||e.push(t.fetchContent()),e},[])).length)&&((o=function(){var i,e,t;if(_.isFunction(document.createElementNS))return i="http://www.w3.org/2000/svg",e=function(e,t){var n=k(document.createElementNS(i,"circle")).attr({cx:e,cy:t,fill:"#9a9ca5",r:5});return _.each(_.toArray(arguments).slice(2),function(e){n.append(e)}),n},t=function(e){return k(document.createElementNS(i,"animate")).attr({attributeName:"fill-opacity",values:"0;1;0;0",keyTimes:"0;0.4;0.8;1",dur:"1.4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0 0 0.58 1; 0 0 0.58 1; 0 0 0.58 1",begin:e})},t=k(document.createElementNS(i,"svg")).attr({viewBox:"0 0 70 20",xmlns:"http://www.w3.org/2000/svg",width:"70",height:"20"}).append(e(21,10,t("-0.32s"))).append(e(35,10,t("-0.16s"))).append(e(49,10,t("0s"))),k(document.createElement("li")).css({padding:"5px 20px","list-style-type":"none","list-style-position":"inside",position:"relative","margin-left":"0em","border-width":"0px","border-style":"solid","border-color":"rgb(255, 255, 255)","float":"none","vertical-align":"baseline","text-align":"center"}).append(t)}())&&c.find("ol").append(o),m.all(n).then(function(){var e=m.defer();return Ut(e.resolve,500),e.promise}).then(function(){L.activeModule===d&&P.renderResourceCenterModule(d,i)})),P.setFocusForResourceCenterModule(c,u),i&&l.onShown("launcher"),c}}}}function cp(){window.clearInterval(tp),tp=null}function lp(){tp=tp||window.setInterval(function(){var e=xp();if(!e)return cp();e=k(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return cp();var t=k(e).find('ol[id^="pendo-list"]');if(!t.length)return cp();var n=ea(t[0]),i=k(t).find("li");if(!i.length)return cp();for(var r=e.attr("data-pendo-guide-id"),o=L.attributes.notifications.individualCounts[r],a=n.height/3,s=ea(i[i.length-1]).bottom-30<n.top+n.height,u=0;u<i.length;u++){var d=k(i[u]),c=d.hasClass("pendo-unseen-announcement"),l=d.attr("data-pendo-announcement-send-seen-event");if(c||l){if(ea(i[u]).top-n.top>n.height-a&&!s)break;var p=d.attr("data-pendo-announcement-guide-id"),l=_.find(Qu(),function(e){return e.id===p});if(!l)break;c&&(d.removeClass("pendo-unseen-announcement"),c=d.find(".pendo-unread-announcement-mini-bubble"),Te(10)?d.find(".pendo-unread-announcement-mini-bubble").remove():(c[0].style.visibility="hidden",c[0].style.opacity="0",c[0].style.transition="visibility 0s 2s, opacity 2s linear"),qp(l)||o--,Hp(o,r)),l.steps[0].seenState="advanced",tm(l.id,l.steps[0].id,b(),"whatsnew",l.language,{last_updated_at:l.steps[0].lastUpdatedAt}),d[0].removeAttribute("data-pendo-announcement-send-seen-event"),im(l.id,l.steps[0].id,b(),"advanced",l.language)}}},500)}function pp(e,t){return Xl.findExtensionByNameAndProvider(e,t)}function hp(e,t){e=Xl.findExtensionByNameAndProvider(e,t);if(!e)return C.info(t+" integration has not been loaded into the agent");gp(t)&&mp(t)?L.hasEligibleNativeIntegrationModule=!0:(Qo((t=e.getFrame())[0])||t.appendTo(fd()),t.css({display:"none"}))}function fp(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging"]}function gp(e){return!!e&&0<=fp().indexOf(e)}function mp(e){return!!e&&null!==(e=vp(e))&&_.isFunction(window[e])}function vp(e){if(!e)return null;switch(e){case"zendesk-chat":case"zendesk-messaging":case"zendesk-native-kb":return"zE";case"intercom-chat":return"Intercom";case"drift-native-chat":return"drift";default:return null}}function yp(e,t){if(e)if(mp(e))bp(e,t);else{var n;if("function"==typeof Object.defineProperty){const i=vp(e);null!==i&&(rp&&rp[i]?rp[i][e]||(rp[i][e]={installed:!1,integrationObj:t}):((rp=rp||{})[i]={[e]:{installed:!1,integrationObj:t}},Object.defineProperty(window,i,{get(){return n},set(e){n=e,_.forEach(rp[i],function(e,t){const n=e.integrationObj;!e.installed&&mp(t)&&(e.installed=!0,bp(t,n),hp(n.name,t),_.forEach(L.modules,function(e){e.integrationConfig&&e.integrationConfig.data.name===n.name&&e.integrationConfig.data.provider.name===t&&(e.hasResourceCenterContent=!0)}))})},configurable:!0,enumerable:!0})))}}}function bp(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=Sp(i);wp(n,"webWidget","hide"),wp(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),wp(n,"webWidget:on","close",function(){wp(n,"webWidget","hide"),Ep()}),L.isInProgress()&&!L.attributes.doNotResume&&_p(L.activeModule),wp(n,"webWidget:on","chat:unreadMessages",function(e){Hp(e,"chat")});break;case"zendesk-messaging":i=t;wp(i=i.data.provider.name,"messenger","hide"),wp(i,"messenger:on","close",function(){Ep()}),wp(i,"messenger:on","unreadMessages",function(e){Hp(e,"chat")});break;case"intercom-chat":var r=t;r=Sp(r),window.intercomSettings||(window.intercomSettings={}),window.intercomSettings.hide_default_launcher=!0,window.intercomSettings.alignment=r?r[1]:"right",window.Intercom("update",{hide_default_launcher:!0,alignment:r?r[1]:"right"}),window.Intercom("onHide",function(){Ep()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=Hl();window.drift.identify(t.visitor.id,function o(e){const t={};for(const n in e)if("object"!=typeof e[n]||Array.isArray(e[n]))t[n]=e[n];else{const i=o(e[n]);for(const r in i)i[r]&&(t[n+"."+r]=i[r])}return t}(t)),window.drift.on("message",function(e){if(!L.isNativeModuleActive)return Hp(1,"chat")})}),window.drift.on("chatClose",function(e){Hp(0,"chat"),window.drift.hide(),Ep()})}}function wp(e,...t){try{op&&op[e]||window.zE.apply(null,t)}catch(n){op?op[e]=!0:op={[e]:!0}}}function Sp(e){e=_.get(e,"data.options.labels.position");return e=e&&e.split("-")}function Ep(){Wp(L.activeModule),delete L.activeModule,L.continueToNativeModule=!1}function Ip(e,t){if(e){var n=Hl();if(L.isShown()&&L.hide(),op&&op[e])C.info(e+" integration failed to communicate with API, closing"),P.replaceResourceCenterContent(L.id,undefined,!0),Ep();else{var i=Tp();switch(i&&Kp(i,L),e){case"zendesk-messaging":wp(e,"messenger","show"),wp(e,"messenger","open");break;case"zendesk-native-kb":wp(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),wp(e,"webWidget","show"),wp(e,"webWidget","open");break;case"zendesk-chat":wp(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&wp(e,"webWidget","prefill",{email:{value:n.visitor.email}});break;case"intercom-chat":window.Intercom("show"),n&&n.visitor&&n.visitor.email&&window.Intercom("update",{email:n.visitor.email});break;case"drift-native-chat":window.drift.api.openChat(),n&&n.visitor&&n.visitor.email&&window.drift.config({email:n.visitor.email})}Hp(0,"chat"),!L.activeModule&&t&&(L.activeModule=t).steps[0].onShown("launcher")}}}function _p(e){e&&!e.isTopLevel&&(Ip(_.get(e,"attributes.resourceCenter.integrationProvider")),L.activeModule||(L.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function Cp(){return L}function xp(){return _.get(L,"steps.0.guideElement.0")}function Tp(){if(L&&L.id)return Zu[L.id]}function kp(e){e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function Ap(e){return e&&_.all(e,function(e){return Qo(e&&e.length?e[0]:e)})}function Rp(){var e,t=P.getResourceCenter(),n=_.get(t,"attributes.notifications");n&&(n=P.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&_.get(t,"attributes.activation.selector")&&(e=k(t.attributes.activation.selector)).length&&P.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function Op(e){return _.reduce(e,function(e,t){return e+t},0)}function Np(){var e,t=L;t&&(t=_.get(t,"attributes.notifications"))&&(e=xp())&&k(e).find("._pendo-resource-center-home-list").length&&_.each(t.individualCounts,function(e,t){Mp(e,t)})}function Mp(e,t){var n=P.getResourceCenterContainer();n&&(n=k(n).find('[data-pendo-notification-id="'+t+'"]')).length&&(t=k(n[0]).find("._pendo-home-view-bubble"),n=k(t[0].children[0]),e!==parseInt(n.text(),10))&&(0<e?(n.text(e),k(t[0]).css({display:"block","margin-right":"0"})):(n.text(""),k(t[0]).css({display:"none"})))}function Lp(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function Pp(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function Fp(e,t,n){var i=Pp(n);let r=e.getAttribute(i);r&&(Lp(e),r=r.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",r));var i=_.get(t,"position","top-left"),o=R(e),o=(parseInt(o.width,10)||56)/2,a=o/Math.sqrt(2),o=Math.round(o-a)-10,s=o-10,a=Math.round(2*a),o={"top-left":{top:o+"px",left:s+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"top-right":{top:o+"px",left:s+a+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-left":{top:o+a,left:s+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-right":{top:o+a,left:s+a+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"}},s=e.attributes["data-localization-direction"]||!1,a=P.resourceCenterIgnoreRtl();Up(e,t,n,o[i=s&&!a?{"top-left":"top-right","top-right":"top-left","bottom-left":"bottom-right","bottom-right":"bottom-left"}[i]:i])}function Dp(e,t,n){var i=Eo(e,e),r=Eo(e,Xo());Up(e,t,n,{width:"28px",top:i.top-Math.min(r.top,14)+"px",left:i.left-Math.min(r.left,14)+"px",position:"absolute"},{width:"28px","font-size":"16px","text-align":"center",position:"absolute",right:"0px"})}function Up(e,t,n,i,r){var o,a;Ap(ip)?(a=(o=Gp(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=_.extend(a,i),o=_.extend(o,r),ip.bubbleEle.css(a),ip.unseenCountEle.css(o),ip.unseenCountEle.text()!=""+n&&ip.unseenCountEle.text(n)):(a=k(e).find(".pendo-resource-center-badge-notification-bubble")).length?a[0].getElementsByClassName("pendo-notification-bubble-unread-count")[0].textContent=n:n&&zp(ip=Bp(t,n,i,r),e)}function Gp(e){return{defaultBubbleCss:{position:"absolute","border-radius":"20px","line-height":"0px",height:"26px","box-sizing":"content-box","background-color":e["background-color"]},defaultUnseenCountCss:{"font-weight":e["font-weight"],"font-family":e["font-family"],height:"100%",position:"relative",top:"50%",color:e.color}}}function Bp(e,t,n,i){var r=Gp(e),o=r.defaultBubbleCss,r=r.defaultUnseenCountCss,a=(t=t||0,k(document.createElement("div")).addClass("pendo-resource-center-badge-notification-bubble")),s=k(document.createElement("div")).addClass("pendo-notification-bubble-unread-count"),o=_.extend(o,n),n=_.extend(r,i);return a.css(o),s.css(n),Te(10)||_l()||(i="rgb("+(r=kp(e["background-color"])).r+", "+r.g+", "+r.b+")",uc(f,"pendo-resource-center-bubble-animation","@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6) } } "+('.pendo-resource-center-badge-notification-bubble::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: '+i+"; border-radius: 100%; z-index: -1; animation: pulse 2s infinite; will-change: transform; }"))),s.text(t),{bubbleEle:a,unseenCountEle:s}}function zp(e,t){e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function jp(){var n=ip?ip.bubbleEle:k(".pendo-resource-center-badge-notification-bubble"),i=ip?ip.styleEle:k("#pendo-resource-center-bubble-animation");n&&_.each(n,function(e,t){n[t]&&(t=n[t])&&t.parentNode&&t.parentNode.removeChild(t)}),i&&_.each(i,function(e,t){i[t]&&(t=i[t])&&t.parentNode&&t.parentNode.removeChild(t)}),ip=null,P.resetBadgeAriaLabel()}function Hp(e,t){var n=L;n&&(n=_.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,P.updateNotificationBubbles())}function qp(e){return!(!_.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function Wp(e){var t=_.get(e,"attributes.resourceCenter.isModule",!1)?e:P.findShownResourceCenterModule();t&&(t=_.first(t.steps),Fg(t));t=(_.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:P.findResourceCenterHomeView(Qu())).steps[0];return Fg(t)}function Vp(e){return _.get(e,"attributes.resourceCenter.moduleId")}function Jp(e){var t=["pendo-a11y-list-item-button-block","pendo-link-","pendo-right-caret-","pendo-row-","pendo-text-"].join("|");const n=new RegExp(`#((${t})[^:]*)`);t=function i(e,t){var n=[];return t(e)&&n.push(e),e.children?n.concat(..._.map(e.children,function(e){return i(e,t)})):n}(e,function(e){return e.css&&e.css.length});return _.forEach(t,function(e){_.forEach(e.css,function(e){e.selector=e.selector.replace(n,"[id^='$1']")})}),e}function Kp(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete Zu[t.id])}var $p=1e4,Zp="lastStepAdvanced";function Xp(e){g.dispatch("guideState/updateLastGuideStepSeen",e),g.dispatch("guideState/write"),g.dispatch("frames/changeLastGuideStepSeen",e)}function Yp(){g.dispatch("guideState/regainFocus")}function Qp(){return g.state.guideState.lastGuideStepSeen}var i={actions:{init(e){e.getters.storage().registry.addLocal(Zp),e.commit("setScopedStorageKey",jt(e.state.storageKey)),y.identify.on(function(e){Kn(e)&&Mn([Zp])})},load(t,e){if(e){var n;try{n=JSON.parse(e)}catch(i){}n&&_.each([].concat(n),function(e){t.commit("setStepState",e)})}},forceExpire(n){_.each(n.state.steps,function(e,t){n.commit("expireStepState",t)})},expire(n){var i=n.getters.now();_.each(n.state.steps,function(e,t){i-e.time>n.state.ttl&&n.commit("expireStepState",t)})},apply(o){var a,s=_.indexBy(o.getters.guideList(),"id");o.dispatch("expire"),_.each(o.state.steps,function(e){var t,n,i=e.guideId,r=e.guideStepId;e.visitorId&&e.visitorId!==o.getters.visitorId()||((!a||e.time>a.time)&&(a=e),(i=s[i])&&(t=_.findWhere(i.steps,{id:r}))&&(n=o.state.storageKey,t.seenState!=e.state&&(C.info("making sure that seenState = '"+e.state+"' for "+n+": "+r),t.seenState=e.state),t.snoozeEndTime!=e.snoozeEndTime&&(C.info("making sure that snoozeEndTime = '"+e.snoozeEndTime+"' for "+n+": "+r),t.snoozeEndTime=e.snoozeEndTime),t.seenReason!=e.seenReason&&(C.info("making sure that seenReason = '"+e.reason+"' for "+n+": "+r),t.seenReason=e.seenReason),e.dismissCount!==undefined&&t.dismissCount!=e.dismissCount&&(t.dismissCount===undefined?t.dismissCount=e.dismissCount:t.dismissCount=Math.max(e.dismissCount,t.dismissCount),C.info("making sure that dismissCount = '"+t.dismissCount+"' for "+n+": "+r)),e=_.indexOf(i.steps,t),_.each(i.steps.slice(0,e),function(e){_.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})))}),a&&o.dispatch("updateLastGuideStepSeen",_.extend({},o.state.lastGuideStepSeen,a))},receiveLastGuideStepSeen(e,t){e.commit("setReceivedLastGuideStepSeen",t),e.commit("setLastGuideStepSeen",t)},updateLastGuideStepSeen(e,t){var n;t.visitorId&&t.visitorId!==e.getters.visitorId()||(n=_.some(e.getters.guideList(),function({id:e}){return e===t.guideId}),t.guideStepId&&e.commit("setStepState",t),n&&(e.commit("setLastGuideStepSeen",t),E.lastGuideStepSeen=t,Jm)&&Jm.update(t))},updateThrottlingState(e,t){e.commit("setThrottlingState",t)},write(e){e.dispatch("expire");var t=e.rootState.frames.tabId,n=e.state.storageKey,i=e.getters.cookieSuffix(),r=e.state.ttl,o=e.getters.storage(),a=JSON.stringify(_.map(e.state.steps,function(e){return _.extend({tabId:t},e)}));C.info("writing "+a+" to a cookie named "+n+" for "+r+" and cookieSuffix "+i),o.write(n,a,r,!1,!1,i),e.dispatch("preview/update",e.state.lastGuideStepSeen,{root:!0})},storageChanged(e,t){if(t.key===e.state.scopedStorageKey){try{var n=e.getters.storage(),i=e.getters.cookieSuffix(),r=n.read(e.state.storageKey,!1,i),o=[].concat(JSON.parse(r))}catch(a){}e.getters.storageChangedInOtherTab()(o)&&(lh(),e.dispatch("load",r),e.dispatch("apply"),e.state.receivedStateChangeAt||e.commit("setReceivedStateChange",e.getters.now()))}},regainFocus(e){var t=e.getters.tabLostFocus(),n=e.getters.isGuideRequestStale();t&&(e.commit("setReceivedStateChange",null),n||(ph(),hh())),n&&sv()}},mutations:{expireStepState(e,t){e.expired[t]=e.steps[t],delete e.steps[t]},setStepState(e,t){e.steps[t.guideStepId]=t},setScopedStorageKey(e,t){e.scopedStorageKey=t},setLastGuideStepSeen(e,t){e.lastGuideStepSeen=t},setReceivedLastGuideStepSeen(e,t){e.receivedLastGuideStepSeen=t},setReceivedStateChange(e,t){e.receivedStateChangeAt=t},setLastGuideRequestAt(e,t){e.lastGuideRequestAt=t},setThrottlingState(e,t){e[t.name]=t.value}},state:{steps:{},expired:{},ttl:$p,storageKey:Zp,guideRequestExpiration:36e5,scopedStorageKey:null,receivedStateChangeAt:null,receivedLastGuideStepSeen:null,lastGuideStepSeen:null,lastGuideRequestAt:null,latestDismissedAutoAt:null,latestSnoozedAutoAt:null,finalAdvancedAutoAt:null},getters:{now(){return v()},storage(){return h},guideList(){return O},tabLostFocus(e){return!!e.receivedStateChangeAt},isGuideRequestStale(e,t){return null!=e.lastGuideRequestAt&&t.now()-e.lastGuideRequestAt>e.guideRequestExpiration},storageChangedInOtherTab(n,e,i){return function(e){var t=_.get(i,"frames.tabId");return!!e&&!!((e=_.max(_.compact(e),"time"))&&e.tabId&&t&&e.tabId!==t)&&(!n.lastGuideStepSeen||!n.lastGuideStepSeen.time||e.time>n.lastGuideStepSeen.time)}},cookieSuffix(){return f.get("crossAppGuideStorageSuffix")},visitorId(){return b()}}},eh={canDisplay:function(e,t,n){if(n&&n.enabled&&_.isFinite(t)){t=ih(t,n);if(_.isNumber(t)&&!isNaN(t))return t<=e}return!0},lastDismissedTime:function(e){return Math.max(e.latestDismissedAutoAt||-Infinity,e.finalAdvancedAutoAt||-Infinity,e.latestSnoozedAutoAt||-Infinity)},sortAndFilter:function(e,t){var n=f.get("appAutoOrdering")||[].concat(f.get("leaderKey"));{var i;n.length&&(i=g.getters["frames/autoOrdering"](),n=_.reduce(n,(e,t)=>e.concat(i[t]||[]),[]),t=_.uniq(n.concat(t)))}var r,o,n=function(e){e=_.defaults(_.groupBy(e,function(e){return nh(e)?"override":"auto"}),{override:[],auto:[]});return e.override.concat(e.auto)}(function(e,t){var n;return _.isArray(t)&&t.length?(n=_.indexBy(e,"id"),t=_.reduce(t,i,[]),_.chain(e).pluck("id").reduce(i,t).value()):e;function i(e,t){return n[t]&&(e.push(n[t]),delete n[t]),e}}(_.filter(e,th),t));return _.find(e,function(e){return e.isTraining})?(t=f.get("adoptPrioritizeAdoptGuides"),e=t,r=[],o=[],_.each(n,function(e){(e.isTraining?r:o).push(e)}),e?r.concat(o):o.concat(r)):n},tryDisplayGuide:function(e,t){var n=eh.lastDismissedTime(t),n=eh.canDisplay(v(),n,t.throttling);if((nh(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:ih};function th(e){return e&&/auto/.test(e.launchMethod)}function nh(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||_.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function ih(e,t){var n=t.interval,t=(t.unit||"").toLowerCase();return _.isNumber(n)&&pt(e)?"minute"===t?6e4*n+e+1:"hour"===t?36e5*n+e+1:"day"===t?(t=e,e=n,(t=new Date(Math.max(t,0))).setHours(0,0,0,0),t.setDate(t.getDate()+e),t.getTime()):void 0:_.isNumber(n)?(new Date).getTime():void 0}function rh(t){return y.guideSeen.on(function(e){var e=e.data[0].props||{};"permalink"===e.reason&&(e=t(e.guide_id))&&(e.shownFromPermalink=!0)}),{tryDisplay:function(t=window.location){var n=a(t.href),e=this.getGuideFromUrl(n);{var i,r,o;if(e&&this.shouldShowPermalinkGuide(e))return i=this.getStepFromUrl(n,e),r=n.pendo_once,o=function(e){return e&&r&&(delete n.pendo_once,delete n.pendo,delete n.step,delete n.c__pendo,window.history.replaceState({},document.title,t.pathname+"?"+io(n))),e},(e=this.showPermalinkGuide(e,i)).then?e.then(o):o(e)}},getQueryString:a,getGuideFromUrl:function(e){e=e.pendo||e.c__pendo;return e?t(e):null},getStepFromUrl:function(e,t){e=e.step;return e?function(e,t){return _.find(e.steps,function(e){return e.id===t})}(t,e):null},showPermalinkGuide:function(e,t){return(t||e).show("permalink")},shouldShowPermalinkGuide:function(e){return!e.shownFromPermalink}};function a(e){var t=Yr(e).substring(1),t=no(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=Yr(e.substring(n+1)).substring(1),_.extend(t,no(n))),t}}var oh=_.memoize(function(){return rh(N)});function ah(e,t){var e=_.find(e,function(e){return e.isContinuation(t)}),n=e&&e.attributes&&e.attributes.doNotResume;if(e&&!n)return e}class sh{constructor(){this.name="autoDisplay",this.queue=[]}markDirty(){Sd()&&(this.queue.push("permalink","continuation"),this.queue.push(...eh.sortAndFilter(Yu(),E.autoOrdering)))}process(e){if(Sg())this.cancel();else{var t=this.queue.shift();if("permalink"===t)return oh().tryDisplay();if("continuation"===t){var n=ah(Yu(),Qp());if(n)return e.saveContext(n),n.show("continue")}else if(t){if(!ah(Yu(),Qp()))return e.saveContext(t),eh.tryDisplayGuide(t,E);this.cancel()}}}handleProcessTimeExceeded(e){e=e.getContext();e&&C.warn("Auto display ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var uh=null,dh=500,ch=function(e){uh=_.delay(function(){uh=null,hh()},e=e||dh),E.guidesProcessingThreadHandle=uh},lh=function(){uh&&(clearTimeout(uh),uh=null,E.guidesProcessingThreadHandle=uh),g.dispatch("guideUpdate/stopScheduledUpdate")},ph=function(){xg(),Ih.cancel();for(var e=0;e<$u.length;e++){var t=$u[e];t.parentNode.removeChild(t)}$u.length=0,g.dispatch("guideUpdate/stopObserver"),y.guideLoopStopped.trigger()},hh=function(){if(lh(),av.pending||ym&&E.id&&E.id!==ym.id)C.info("guides are loading.",{contexts:["guides","loading"]});else if($m())C.info("guides are disabled.",{contexts:["guides","disabled"]});else if(Zm())C.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!g.getters["guideState/tabLostFocus"]())try{var e=ad();e&&0!==e.length&&(g.dispatch("guideUpdate/startObserverIfNeeded"),Ih.isComplete()&&Ih.markDirty(),g.getters["frames/leaderExists"]())&&Ih.process()}catch(t){Ih.cancel(),C.critical("ERROR in guide-loop",{error:t})}finally{Ih.paused||(Ih.isComplete()?(g.state.guideUpdate.useObserver&&!g.state.guideUpdate.needsUpdate||ch(),y.guideUpdateComplete.trigger()):ch(50))}};var fh=function(){var e=f.getLocalConfig();f.get("delayGuides")&&(delete e.delayGuides,f.setLocalConfig(e)),f.get("guides.delay")&&(delete e.guides.delay,f.setLocalConfig(e)),hh()},gh=function(){$m()||Ym(!0),ph(),bm()};class mh{constructor(e,t){this.dirty=!1,this.name=e,this.processFn=_.isFunction(t)?t:_.noop}markDirty(){this.dirty=!0}process(){this.processFn(),this.dirty=!1}cancel(){this.dirty=!1}isComplete(){return!this.dirty}}class vh{constructor(){this.name="badge",this.queue=[]}markDirty(){this.queue.push.apply(this.queue,_.filter(ed(Yu()),dd))}process(e){var t=this.queue.shift();e.saveContext(t),t&&t.placeBadge()}handleProcessTimeExceeded(e){e=e.getContext();C.warn("Badge ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}function yh(i,e){var r,o,t,n,a;P.isFullyCustom(i)||(r=!1,o=[],t=_.filter(i.modules,function(e){var t,n;return!!e&&(!!P.isIframeModule(e)||!!P.isSandboxModule(e)||(P.isIntegrationModule(e)?!!P.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1):(t=(n=_.filter(e.guidesInModule,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):(e.ineligibleForRC=!0,e.control&&o.push(e),!1)})).length,e.hasResourceCenterContent=!!t,i.activeModule&&e.id===i.activeModule.id&&(n=at(_.map(n,function(e){var t=e.isAnnouncement()||e.isWhatsNew()?null:_.pluck(e.steps,"seenState");return{id:e.id,seenState:t}})),e.eligibleGuidesInModuleHash&&n!==e.eligibleGuidesInModuleHash&&(r=!0),e.eligibleGuidesInModuleHash=n),t)))}),n=!1,i.activeModule||(a=at(_.map(t,function(e){return{id:e.id}})),i.eligibleModulesHash&&i.eligibleModulesHash!==a&&(n=!0,P.replaceResourceCenterContent(i.id,undefined,!0)),i.eligibleModulesHash=a),e(i,t,o),1===t.length&&(i.skipResourceCenterHomeView=!0,i.moduleIdToReplaceHomeViewWith=t[0].id,a=!i.activeModule&&n,e=i.activeModule&&i.activeModule.id!==t[0].id,a||e||r)&&P.replaceResourceCenterContent(i.moduleIdToReplaceHomeViewWith,undefined,!0),t&&(n=_.find(t,function(e){return e.isContinuation(Qp())}),a=_.get(n,"attributes.doNotResume"),e=_.get(n,"attributes.resourceCenter.integrationProvider"),P.isSupportedNativeIntegration(e))&&!a&&i&&(i.continueToNativeModule=!0,n.continueToNativeModule=!0),i.activeModule&&((e=_.find(t,function(e){return e.id===i.activeModule.id}))&&r&&P.replaceResourceCenterContent(i.activeModule.id,undefined,!0),e||P.replaceResourceCenterContent(i.id)),P.repositionResourceCenter())}function bh(e,t,n){var i,r,o=Zu[e.id];t&&t.length||(t=-1!==e.launchMethod.indexOf("badge"),i=-1!==e.launchMethod.indexOf("dom"),r=-1!==e.launchMethod.indexOf("extensionIcon"),e.hasResourceCenterContent=!1,t?(e.isShown()&&e.hide(),o&&P.hideRCBadge(o,e),_.each(n,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}),e.badgeHidden=!0,delete e.activeModule):(i||r)&&(e.showEmptyState=!0,e.controlGuidesInAllModules=n)),e.badgeHidden&&e.hasResourceCenterContent&&!e.isNativeModuleActive&&(o||(_.isFunction(e.placeBadge)&&e.placeBadge(),o=Zu[e.id]),o&&o.show(),e.badgeHidden=!1)}function wh(e){var t,n,i,r,o,a;e&&e.launchMethod&&(e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith,t=e.activeModule,n=_.get(t,"attributes.resourceCenter.integrationProvider"),e.isNativeModuleActive=t&&P.isSupportedNativeIntegration(n),P.isFullyCustom(e)?e.hasResourceCenterContent=!0:(e.isShown()||!g.getters["frames/isLeader"]()?yh(e,bh):(t=e,n=bh,P.isFullyCustom(t)||(i=[],o=[],(r=_.find(t.modules,function(e){return!!P.isIframeModule(e)||!!P.isSandboxModule(e)||!!P.isIntegrationModule(e)&&(!!P.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1))}))&&i.push(r),r=_.flatten(_.pluck(t.modules,"guidesInModule")),o=_.filter(_.compact(r),function(e){return e.control}),!i.length&&(a=_.reduce(t.modules,function(t,n){return _.each(n.guidesInModule,function(e){t[e.id]=n}),t},{}),r=_.filter(r,function(e){return e&&e.steps&&e.steps.length}),r=_.sortBy(r,function(e){return e.steps[0].elementPathRule?1:0}),r=a[(r=_.find(r,function(e){return e.shouldBeAddedToResourceCenter()}))&&r.id])&&i.push(r),n(t,i,o))),e.isNativeModuleActive&&(e.isShown()&&e.hide(),a=Zu[e.id])&&P.hideRCBadge(a,e),"dom"===e.launchMethod&&(P.updateNotificationBubbles(),P.adjustNotificationBubbleForResize())))}class Sh{constructor(e=50){this.startTime=-1,this.timeLimit=e,this.context=null}start(){this.context=null,this.startTime=v()}isTimeExceeded(){return v()-this.startTime>this.timeLimit}saveContext(e){this.context=e}getContext(){return this.context}}class Eh{constructor(e){this.phases=e,this.queue=[],this.paused=!1}markDirty(){for(var e of this.phases)e.markDirty();this.queue=this.phases.slice()}runGuidePhase(){for(var e,t,n,i=this.queue[0],r=new Sh(50);!this.timedOut()&&!i.isComplete()&&!e;)r.start(),!(e=i.process(r))&&r.isTimeExceeded()&&(i.handleProcessTimeExceeded&&i.handleProcessTimeExceeded(r),this.ejectGuide(r.getContext()));mt(e)?(t=this.updateId,n=_.bind(function(){this.updateId===t&&(this.paused=!1,hh())},this),this.paused=!0,e.then(n)["catch"](n)):i.isComplete()&&this.queue.shift()}addPhase(e,t){t=t||e.name||this.phases.length,_.isFunction(e)&&(e=new mh(t,e)),this.phases.push(e)}removePhase(t){var e=_.findIndex(this.phases,function(e){return e.name===t});0<=e&&this.phases.splice(e,1)}timedOut(){return!!this.iterationStartTime&&v()-this.iterationStartTime>g.state.guideUpdate.iterationTimeLimit}ejectGuide(e){this.ejectOnTimeout===undefined&&(this.ejectOnTimeout=f.get("guides.ejectOnTimeout")),this.ejectOnTimeout&&e&&!e.isShown()&&nd.addGuide(e)}process(){var e=v();for(this.updateId||(this.updateId=e,this.updateTotalTime=0,g.commit("guideUpdate/startUpdate",e)),this.iterationStartTime=e;!this.paused&&this.queue.length&&!this.timedOut();)this.runGuidePhase();e=v(),this.updateTotalTime+=e-this.iterationStartTime,this.isComplete()&&this.complete(e)}complete(e){g.commit("guideUpdate/completeUpdate",e),this.cancel()}cancel(){this.updateId=null,this.paused=!1,this.queue.length=0;for(var e of this.phases)_.isFunction(e.cancel)&&e.cancel()}isComplete(){return!this.queue.length}}var Ih=new Eh([new mh("guideShowing",function(){var a=dv();a&&(_.each(a.steps,function(e){var t,n,i,r,o;a.guide,(e=e).isLocked()||g.getters["frames/isShownInAnotherFrame"]()(e)||(t=e.element,n=e.targetElement,r=e.guideElement,i=k("."+vg),(r=r.find("#pendo-guide-container")[0])&&r.textContent&&(r=R(r).fontSize,e.attributes.currentTextZoomFontSize!==r)&&(e.attributes.currentTextZoomFontSize&&e.redraw(),e.attributes.currentTextZoomFontSize=r),e.elementPathRule&&n&&!u.matchesSelector(n,e.elementPathRule)?e.hide():(r=ha(t),o=!0,n&&r&&e.elementContainsRulesList&&(o=Vg(n,e.elementContainsRulesList),r=o),t&&(r||i.hasClass("mouseover"))?e.checkPlacement():("tooltip"===e.type||"tooltip"===e.attributes.calculatedType)&&fa(t)&&o||e.hide()))}),a.guide.checkForHiddenGroupSteps())}),new sh,new vh,new mh("resourceCenter",function(){wh(P.getResourceCenter())}),new mh("frameVisibility",function(){g.dispatch("frames/checkFrameVisibility")})]);function _h(){Ih.addPhase(...arguments)}function Ch(){Ih.removePhase(...arguments)}function xh(){var s={};return _.each(["after","before"],function(i){this[i]=function(e,t){var n,r,o,a;this[e]&&((n=s[e])||(n=s[e]={before:[],after:[]},this[e]=(r=this[e],o=n.before,a=n.after,function(){for(var e=_.toArray(arguments),t=0,n=o.length;t<n;++t)if(!1===o[t].apply(this,e))return;var i=r.apply(this,e);for(t=0,n=a.length;t<n&&!1!==a[t].apply(this,e);++t);return i})),n[i].push(t))}},this),this}var Th="debug-enabled";function kh(){try{var e=h.read(Th)||JSON.parse(Dt(Th));return"boolean"==typeof e?{enabled:e}:e||{}}catch(t){return{}}}function Ah(e=!0){let t;return t=g&&g.getters&&g.getters["debugger/debuggingEnabled"]?g.getters["debugger/debuggingEnabled"]():!0===kh().enabled,e?t:t?"Yes":"No"}class Rh{constructor(e,t){this.type=t,this.identificationFn=e}test(e){return this.identificationFn(e)}}const Oh=(()=>{const n={},e=({data:e})=>{var[e,,]=e,e=e["guideId"];const t=N(e);e=(_.find(n,e=>e.GuideType.test(t))||{}).handler;e&&e(t,"resourceFetchFail")};return{run:()=>{y.resourceFetchFail.on(e)},stop:()=>{y.resourceFetchFail.off(e)},addTypeHandler:(e,t)=>{_.isFunction(t)?n[e.type]={GuideType:e,handler:t}:C.error("Invalid Handler function provided for type "+e.type)}}})();Oh.addTypeHandler(new Rh(dd,"badge"),(e,t)=>{nd.addGuide(e)});var Nh="_pendo-badge_";function Mh(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function Lh(t,n){var e,i,r,o,a,s=vd(n),u=!(null==(u=null==t?void 0:t.attributes)||!u.resourceCenter),d=!1;return u&&(d=null==(e=null==(e=null==t?void 0:t.attributes)?void 0:e.badge)?void 0:e.ignoreRTL),"building-block"===t.attributes.type?(e=_.reduce([(o=t.language,a=u?["he","ar"]:[],e=>(_.contains(a,o)&&(e.props["data-localization-direction"]=!0),e)),(r=d,e=>{var t,n;return _.get(e,"props.data-localization-direction",!1)&&!r&&(t=_.get(e,"props.style.left","auto"),n=_.get(e,"props.style.right","auto"),t)&&n&&(e.props.style.left=n,e.props.style.right=t),e}),Mh,Qd,function(e){return kl(e,{id:n.id,guideId:t.id,isBadge:!0})}],(e,t)=>t(e),this.domJson)[0],i=e,k.removeNode(e),-1===i.className.indexOf("_pendo-badge_")&&(i.className+=" _pendo-badge_"),this.isP2Badge=!0):((i=document.createElement("img")).src=Yd(this.imageUrl),i.className="_pendo-badge "+Nh,u=this.width||13,d=this.height||13,jo(i,"width:"+u+"px;height:"+d+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=_.isFunction(n.getGuide)&&n.getGuide(),t=Xg(e);!e.isShown()||g.getters["frames/isShownInAnotherFrame"]()(n)?Qg(n,"badge"):t?n.eventRouter.eventable.trigger("pendoEvent",{step:n,action:"dismissGuide"}):(t=_.find(e.steps,function(e){return e.isShown()}),Fg(t))},this.shouldShow=function(){return t.canBadgeBeShown()||!1},this.show=function(){if(_.isFunction(this.shouldShow))return this.shouldShow()},this.hide=function(){k.removeNode(i),Ml(t.id),_.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},Xg(t)&&(this.toggleAriaExpanded=function(){var e=!!k("#pendo-resource-center-container")[0],t=k("button._pendo-resource-center-badge-container")[0]||k('._pendo-resource-center-badge-container [id^="pendo-image-badge-"]')[0];t&&t.setAttribute("aria-expanded",e)},i.checkAriaExpanded=this.toggleAriaExpanded),this.step=_.constant(n),this.target=_.constant(s),this.element=_.constant(i),this}Lh.create=function(n){var i=Lh.findStep(n);if(i)return _.reduce(Lh.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},Lh.findStep=function(e){var t=_.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},Lh.behaviors=[xh,Lh,function(){"inline"!==this.position&&"inline-right"!==this.position&&"inline-left"!==this.position||this.before("show",function(){var e,t,n=this.target(),i=this.element();this.isP2Badge&&jo(i,"display:inline-block;vertical-align:text-bottom;"),this.css&&jo(i,this.css),n&&n.tagName&&(e=n.tagName.toLowerCase(),t=function(e){try{if(e.shadowRoot&&!e.shadowRoot.querySelector("slot"))return e.shadowRoot}catch(t){}return e}(n),/br|input|img|select|textarea/.test(e)?i.parentNode!==n.parentNode&&n.parentNode.insertBefore(i,n.nextSibling):i.parentNode!==t&&("inline"===this.position||"inline-right"===this.position?t.appendChild(i):"inline-left"===this.position&&t.prepend(i)))});return this},function(s){this.position&&"top-right"!==this.position&&"top-left"!==this.position||this.before("show",function(){var e=this.element(),t=Jo(this.target()),n=0,i=0,r=0;if(this.offsets&&(n=this.offsets.top||0,i=this.offsets.right||0,r=this.offsets.left||0),!_.get(s,"attributes.resourceCenter",!1)){var o="position:"+(t.fixed?"fixed":"absolute")+";top:"+(t.top+n)+"px;";switch(this.position){case"top-right":o+="left:"+(t.left+t.width-i)+"px";break;case"top-left":o+="left:"+(t.left+r)+"px"}jo(e,o)}if(!e.parentNode){fd().appendChild(e);const a=da(xr,this.target(),Gh);this.removeScrollHandlers=()=>{Gh.cancel(),a()}}});return this},function(){"over"===this.position&&this.before("show",function(){var e=this.element(),t=Jo(this.target()),n="position:absolute;top:"+t.top+"px;left:"+t.left+"px;";if(n+="height:"+t.height+"px;width:"+t.width+"px;",jo(e,n+="background-color:transparent;"),!e.parentNode){fd().appendChild(e);const i=da(Gh,e,this.target());this.removeScrollHandlers=()=>{Gh.cancel(),i()}}});return this},function(){var t=this,e=t.element(),n=!1,i=function(e){t.activate(),t.toggleAriaExpanded&&t.toggleAriaExpanded(),Ju(e)};return t.after("show",function(){n||(l(e,"click",i),n=!0)}),t.after("hide",function(){Vu(e,"click",i),n=!1}),t},function(){var t=this.element(),n=this.step(),e=!1;{var i,r,o;"yes"!==this.useHover&&!this.showGuideOnBadgeHover||(i=_.throttle(function(e){kr(e)===t||function(e){for(;e;){if(/_pendo-guide_|_pendo-guide-tt_|_pendo-backdrop|_pendo-badge_/.test(e.className))return!0;if(/pendo-guide-container/.test(e.id))return!0;e=e.parentNode}return!1}(kr(e))||o()},50,{trailing:!1}),r=function(e){n.isShown()||Qg(n,"badge"),l(document,"mousemove",i),Ju(e)},o=function(e){Vu(document,"mousemove",i),pd()||Fg(n)},this.after("show",function(){e||(l(t,"mouseover",r),e=!0)}),this.after("hide",function(){Vu(t,"mouseover",r),Vu(document,"mousemove",i),e=!1}))}return this},function(){var s=this.element(),u=this.target(),e=!1;{var t,n,i,r,d;!this.showBadgeOnlyOnElementHover&&!/hover/.test(this.showOnEvent)||pd()||(t="inline"===this.position?"visibility:visible;":"display:inline;",n="inline"===this.position?"visibility:hidden;":"display:none;",i=_.throttle(function(e){var t,n,i,r,o,a;kr(e)===u||kr(e)===s||Po(s,"triggered")||(t=e.clientX,e=e.clientY,n=ea(u),i=ea(s),r=Math.min(n.left,i.left),o=Math.min(n.top,i.top),a=Math.max(n.right,i.right),n=Math.max(n.bottom,i.bottom),i=e+document.documentElement.scrollTop,r<=t&&t<=a&&o<=i&&i<=n)||d()},50,{trailing:!1}),r=function(){jo(s,t),l(document,"mousemove",i)},d=function(){Vu(document,"mousemove",i),jo(s,n)},this.after("show",function(){e||(l(u,"mouseover",r),e=!0,d())}),this.after("hide",function(){e&&(Vu(u,"mouseover",r),e=!1),d()}))}return this}];var Ph=function(e,t){var n,i,r=(t=t||Zu)[e.id],o=r?r.step():Lh.findStep(e);o&&(i=r?r.target():vd(o),(n=_.get(e,"attributes.resourceCenter"))&&!g.getters["frames/canShowRCBadge"]()?r&&_.isFunction(r.hide)&&(t[e.id]=undefined,r.hide()):n&&!e.hasResourceCenterContent||(P.updateNotificationBubbles(),n=!0,o.elementContainsRulesList&&(n=i&&Vg(i,o.elementContainsRulesList)),(i=o.elementPathRule&&ha(i)&&u.matchesSelector(i,o.elementPathRule)&&n)?((r=r||Lh.create(e)).show(),t[e.id]=r):r&&!o.isShown()&&(t[e.id]=undefined,r.hide()),Ah()&&y.stepEligibility.trigger({stepId:o.id,guideId:e.id,eligible:i,reason:"target_element_badge"}),P.repositionDoubleResourceCenterBadge()))},Fh=function(){_.map(Zu,Dh),Zu={}},Dh=function(e,t){e&&(_.isFunction(e.hide)&&e.hide(),_.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete Zu[t.id]},Uh=function(e){var t=Zu[e.id];t&&Dh(t,e)};var Gh=_.throttle(function(){_.map(Zu,function(e){e&&e.show&&e.show()})},10);const Bh=h.getLocal();var F,zh="pendo-preview",jh="current-guide-preview";function Hh(e){return g.dispatch("preview/load"),qh(e)}function qh(t){var e=af();if(e)return Vh(t),g.dispatch("preview/start",_.extend(e)),h.clear(Zp),Ft(!1),as.lock(),Im=cf,y.startPreview.trigger(),y.leaderChanged.on(function(e){g.dispatch("preview/write"),e.oldLeaderId||sv(),g.getters["frames/isLeader"]()||(k(F).remove(),F=null,t.removeEventListener("message",Kh))}),_h(Wh),!0}function Wh(){if(!g.getters["frames/isFollower"]()){var t,n,i,r,o,e,a=document,s=ad(),u=Qp();if($h()&&(t=af())&&F&&F.contentWindow)if(s&&s.length){F.contentWindow.postMessage({mutation:"preview/setGuideLoaded",payload:{guideLoaded:!0}},location.origin),n=_.find(s,function(e){return e.id===t.guideId}),i=0,r=n.steps.length,o=u||{},_.find(n.steps,function(e,t){return o.guideStepId===e.id&&("dismissed"===o.state||"active"===o.state?i=t:"advanced"===o.state&&o.destinationStepId?i=_.indexOf(n.steps,_.find(n.steps,function(e){return e.id===o.destinationStepId})):"advanced"===o.state&&t===r-1&&(i=r),!0)}),s="dismissed"===o.state,u=r-1<=i,s=s||u,u=u?r-1:i,e=n.steps[u],p=e.isShown(),F.contentWindow.postMessage({mutation:"preview/setHostname",payload:{hostname:We}},location.origin),F.contentWindow.postMessage({mutation:"preview/setGuidePages",payload:{guidePages:n.previewPages}},location.origin),F.contentWindow.postMessage({mutation:"preview/setGuideProgress",payload:{guideName:n.name,guideAttributes:JSON.stringify(n.attributes),guideLaunchMethod:n.launchMethod,guideActivationSelector:yd(n),isAdoptGuide:n.isTraining,isResourceCenter:t.isResourceCenter,stepId:e&&e.id,currentStepIndex:u,stepCount:r,elementPathRule:e.elementPathRule,elementContainsRulesList:e.elementContainsRulesList,triggerElementPathRule:e.triggerElementPathRule,isShown:p,pageId:e.pageId,completed:s,languageOptions:_.get(t,"languageOptions",[]),currentLanguage:t.language}},location.origin);var d=e,c=u,l=F;if(d&&l&&l.contentWindow){const h=d.getGuide().id;var p=_.filter(g.state.frames.frames,e=>"hidden"!==e.visibility&&e.guides&&e.guides[h]);if(p.length)p=_.map(p,e=>D.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:e.id,stepId:d.id,guideId:h,currentStepIndex:c})),m.all(p).then(t=>{let n={},i=-1;for(let e=0;e<t.length;e++){var r=JSON.parse(t[e]).errors;if(!r.GUIDE){var o=_.keys(r).length;if(!o){n={};break}-1===i?(n=r,i=o):d.regexUrlRule?!r.PAGE&&o<=i&&(n=r,i=o):o<i&&(n=r,i=o)}}l.contentWindow.postMessage({mutation:"preview/setErrors",payload:{errors:n}},location.origin)})["catch"](_.noop)}}else tf(0,{status:404,data:"Guide not found"})}return!0}function Vh(e){if(g.getters["frames/leaderExists"]()){if(!g.getters["frames/isFollower"]()){if(F)return!0;var t,n;_.isFunction(e.addEventListener)&&e.addEventListener("message",Kh),(t=document.createElement("iframe")).id=zh,Ho(t,{border:"none",display:"block !important",height:n="70px !important","min-height":n,left:0,position:"fixed",right:0,top:0,visibility:"visible !important",width:"100% !important","z-index":4e5}),t.onload=function(){if(f.get("inlineStyleNonce")){const n=t.contentDocument.createElement.bind(t.contentDocument);t.contentDocument.createElement=(e,...t)=>{t=n(e,...t);return"style"===e&&(e=f.get("inlineStyleNonce"))&&t.setAttribute("nonce",e),t}}var e=document.createElement("script");e.src=f.get("previewModeAssetPath")||so("pendo.preview.min.js"),t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},F=t,Xo().appendChild(F)}}else y.one("leaderChanged",_.partial(Vh,e))}function Jh(e,t,n){xg(),g.commit("healthCheck/resetStepStatus",null,{root:!0}),tc.reset(),sv();var i=e[0],i=(i&&_.each(i.steps,function(e){e.seenState=null}),h.clear(Zp),g.dispatch("preview/update",null),af());return i&&(i=_.findWhere(e,{id:i.guideId}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),g.dispatch("preview/restart",i)),ef(e,t)}function Kh(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===zh+"::exit"?(nf({preventWindowClose:n}),g.dispatch("frames/stopPreview",{preventWindowClose:n})):t===zh+"::restart"?(n=Jh(ad(),Qp(),e.data.language),g.dispatch("guideState/forceExpire"),g.dispatch("guideState/updateLastGuideStepSeen",n),g.dispatch("frames/restartPreview")):t===zh+"::resize"?(n=e.data.height,F&&F.style&&(F.style.height=n)):t===zh+"::request-preview-mode-type"&&(e=sf(),F)&&F.contentWindow&&e&&F.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:e.previewModeType||"NEW_TAB"}},location.origin))}function $h(){return g.getters["preview/isInPreviewMode"]()}function Zh(){return g.getters["preview/isInDesignerPreviewMode"]()}function Xh(e){var t,n,i=af();if(!i)return e;if(i.isResourceCenter)return r=e,t=i,n=P.findResourceCenterHomeView(r),r=_.filter(r,function(e){return e.id!==n.id}),Qh(n,t.stepId),t=_.map(r,function(e){return e.launchMethod="launcher",e}),[n].concat(t);{var r=e,o=i;let t;return _.each(r,function(e){e.id===o.guideId?t=e:((e=e).launchMethod="api",(e=e.steps[0])&&(e.seenState="advanced"))}),Yh(t),t.showsAfter=null,t.expiresAfter=null,Qh(t,o.stepId),r}}function Yh(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function Qh(e,t){for(var n=_.find(e.steps,function(e){return e.id===t}),i=n?e.steps.indexOf(n):0,r=0;r<e.steps.length;r++)r<i?(e.steps[r].seenState="advanced",e.steps[r].seenReason="continue"):(e.steps[r].seenState=null,e.steps[r].seenReason=null)}function ef(e,t){null==t&&(t={});var n=af();if(!n)return t;e=_.findWhere(e,{id:n.guideId});if(!e)return t;if(n.state)return n.state;Yh(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:n.guideId,guideStepId:n.stepId,state:"active"}:{}}function tf(e,t){F&&F.contentWindow&&F.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:t}},location.origin)}function nf(e){var t=sf(),n=!1,i=(t&&(n="SAME_TAB"===t.previewModeType),Bh.getItem("pendo-navigation-state"));if(g.dispatch("preview/exit"),xg({stayHidden:!0}),h.clear(Zp),as.unlock(),k(F).remove(),Im=Rd,Ch(Wh),Ft(!0),n&&i){Bh.setItem(jh,JSON.stringify(_.extend(t,{isExitBackToDesigner:!0})));try{var r=JSON.parse(i),o={target:r.baseUrl,gcsBucket:r.gcsBucket,preloader:!0,DADesigner:r.isDADesigner,host:r.host,forceNativeDesigner:"web"===t.guide.appPlatform};g.dispatch("preview/launchInAppDesigner",o)}catch(a){g.dispatch("preview/exitDesignerPreview")}}else e&&!e.preventWindowClose&&window.close(),sv()}function rf(e,t){e=_.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function of(){return g}var af=_.partial(rf,of,"state.preview.preview"),sf=_.partial(rf,of,"state.preview.designerPreview");function uf(e){var t;if(e.subscriptionId&&e.guideId)return t=e.isResourceCenter?"/resourcecenter/":"/guide/","/api/s/"+bt(e.subscriptionId)+t+bt(e.guideId)+"/preview"}var df=function(e){var t;return _a(e.origin)?(t=uf(e))?(t={url:e.origin+t+"?url="+bt(A.externalizeURL())+"&apiKey="+E.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),Rr(t).then(function(e){return e.data.guide})):(C.info("Invalid guide url, exiting preview"),m.reject("invalid guide url")):(C.info("Invalid origin, exiting preview"),m.reject("invalid origin"))},cf={load(e,t,n){return pf(e,n)},post(e,t,n,i){return pf(e,i)},endpoint(){return""},usesXhr(){return!0}};function lf(n,t){if(!_a(n.origin))return C.info("Invalid origin, exiting preview"),m.reject("invalid origin");var e=uf(n);if(!e)return C.info("Invalid guide url, exiting preview"),m.reject("invalid guide url");if(!g.getters["frames/leaderExists"]()||n.apiKey!==E.apiKey)return E.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),m.resolve();let i=""+n.origin+e+`?url=${bt(A.externalizeURL())}&apiKey=`+E.apiKey;n.childGuides&&n.childGuides.length&&(i+="&childGuides="+n.childGuides.toString()),Zh()&&(i+="&ignoreGuide=true");var e={url:i,withCredentials:!0},r=(n.headers&&(e.headers=n.headers),[]);return Rr(e).then(function(e){var t,c,e=e.data;return Zh()?(t=sf(),r=t?Zh()?(_.each(t.guide.steps,function(t){let e=["domJsonpUrl","domUrl"];t.domUrl&&0===t.domUrl.indexOf("data:")&&(e=["domJson","contentJs","contentCss","content"]),_.each(e,function(e){delete t[e]})}),t.guide.showsAfter=null,t.guide.expiresAfter=null,[t.guide]):void 0:[],e.guide=r[0]):r=n.isResourceCenter?e.guide:(e.guide.previewPages=e.pages,[e.guide]),e.children&&(r=r.concat(e.children)),n.language&&n.language!==_.get(r,"[0].authoredLanguage")&&(t=r,c=n.language.value,_.forEach(t,function(d){_.forEach(d.steps,function(e){var{domHash:t,domJsonpHash:n,translationHash:i,originalDomJsonHash:r,originalDomJsonpHash:o,originalBuildingBlockHash:a,domHash256:s,domJsonpHash256:u}=_.get(d,"translationStates."+c+".stepTranslations."+e.id,{});e.domUrl=hf(r,e.domUrl,".dom.json",s),e.domJsonpUrl=hf(o,e.domJsonpUrl,".dom.jsonp",u),e.buildingBlocksUrl=hf(a,e.buildingBlocksUrl,".buildingBlocks.json"),t&&n&&i&&(e.domUrl=e.domUrl.replace(".dom.json","-"+t+"-"+c+".dom.json"),e.domJsonpUrl=e.domJsonpUrl.replace(".dom.jsonp","-"+n+"-"+c+".dom.jsonp"),e.buildingBlocksUrl=e.buildingBlocksUrl.replace(".buildingBlocks.json","-"+i+"-"+c+".buildingBlocks.json"))})})),n.watermarkConfig&&(e.guide.isTraining=!0),E.guideWidget={enabled:!1,data:{guideCssUrl:e.guideCssUrl}},E.guideCssUrl=e.guideCssUrl,E.normalizedUrl=e.normalizedUrl,E.throttling=undefined,e.guide}).then(function(e){var t;return n.watermarkConfig?(t=JSON.parse(JSON.stringify(n)),t=Object.assign(t,n.watermarkConfig),df(t)):e}).then(function(e){e&&e.attributes&&e.attributes.isWatermark&&r.push(e),E.guidesPayload({id:t,lastGuideStepSeen:ef(r,E.lastGuideStepSeen),guides:Xh(r)})})["catch"](function(e){return tf(document,e),m.reject(e)})}function pf(e,t){var n=af();return!n||!uf(n)||!(e=/[?&]id=(\d+)/.exec(e))||e.length<1?m.reject():lf(n,e[1]).then(t)}function hf(t,n,i,r){if(n){var n=n.split("/"),o=n[n.length-1];let e=o;return t&&(e=""+t+o.slice(o.indexOf(i))),r&&-1<(t=e.indexOf("sha256="))&&(e=e.slice(0,t)+"sha256="+r),n[n.length-1]=e,n.join("/")}}const ff=function(){let n=null,i=[];const r=e=>{E.apiKey=e+="",n=e};return{getApiKey(){return E.apiKey},discoverKeys({apiKey:e,additionalApiKeys:t=[]}){n=null,i=[],e=e,(e=f.get("apiKey",e))&&r(e),n,e=t,e=f.get("additionalApiKeys",e),i=_.reduce(e,(e,t)=>(t&&e.push(t+""),e),[]),i=[].concat(e),E.additionalApiKeys=i,!n&&i&&i.length&&r(i[0])},getAdditionalApiKeys(){return E.additionalApiKeys},tamperedWith(){return E.apiKey!==n||E.additionalApiKeys!==i}}}(),gf=h.getLocal();mf=Ge||We,vf="in-app-designer",yf="latest",y.leaderChanged.on(function(){wf({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||Zh()})});var mf,vf,yf,bf={launchDesigner:function(e){var t,n="latest",i="designer";uc(f,"designer-styles","@keyframes pendoExtensionSlideIn{from{transform:translate3d(-300px,0,0)}to{transform:translate3d(0,0,0);}}#pendo-draggable-handle{z-index:11;line-height: 15px;text-align:center;font-size:20px;letter-spacing:1.5px;position:absolute;width:100%;height:65px;font-size:16px;background-color:transparent;color:#ABE7DB;user-select:none;cursor: move;cursor: grab;cursor: -moz-grab;cursor: -webkit-grab;}#pendo-draggable-handle:active{cursor: grabbing;cursor: -moz-grabbing;cursor: -webkit-grabbing !important;}#pendo-draggable-handle.hidden{display:none;}#pendo-draggable-handle:hover{color:#2EA2A0;}#pendo-designer-container{animation-duration:375ms;animation-name:pendoExtensionSlideIn;animation-timing-function:cubic-bezier(0.4,0.0,0.2,1); box-shadow: 0px 2px 10px rgba(0,0,0,0.15);height:100vh;width:400px;position:fixed;top:0;left:0;overflow:hidden;border-radius:3px;z-index:1000000;}#pendo-mousemove-cover{position:absolute;height:100%;width:100%;top:0;left:0;z-index:9999999999;display:none;}#pendo-designer-container.fullscreen{width:100%;opacity:0.98;}#pendo-designer-container.closed{left:-400px;}#pendo-designer-iframe{background:#3a3c45;border:0px;height:100%;left:0;z-index:10;top:0;width:100%;}"),Af("designer-shims",mf+"/"+i+"/"+n+"/plugin.js"),E.DESIGNER_VERSION?Tf(n,i):t=window.setInterval(function(){E.DESIGNER_VERSION&&(Tf(n,i),clearInterval(t))},100)},launchInAppDesigner:xf,localStorageNavigation:wf,launchOnToken:function(e){if(!Rf(window.name)){var t=/pendo-designer=([A-Za-z0-9-]+)/;if(t.test(e)){var n,e=t.exec(e);if(e)return t=function(e){try{return JSON.parse(atob(yt(e)))||{}}catch(t){return{}}}(e[1]),e=Ef(t),n=Cf(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),xf({target:n,host:e,preloader:!1,sidebarDesigner:!!t.sidebarDesigner}),!0}}},sendMessageToLocalStorage:function(e){var t=document.getElementById("pendo-designer-communication-iframe");t&&t.contentWindow.postMessage(e.data,bf.hostConfig.host)},isValidDesignerHost:Sf,isValidTarget:_f,addCommunicationIframe:function(e,t){e=e||{};_.isFunction(t)||(t=_.noop);var n=Cf(e),e=If(e),i=(new Date).getTime(),r=(bf.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=kf(r,mf+"/"+e+"/"+n+"/communication.html","border-width:0;height:0;width:0;");return i.setAttribute("name",o),i.onload=t,document.body.appendChild(i),i},hostConfig:{host:mf},isDesignerFrame:Rf,addScriptToPage:Af};function wf(e){if(!e.ignoreLocalStorageNavigation){var t,e=gf.getItem("pendo-navigation-state");if(e&&g.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(n){return}if(!t.apiKey||t.apiKey===ff.getApiKey())if(t.apiKey||!t.agentInstallType||t.agentInstallType===Se())return e=t.isDADesigner?"da-designer":"in-app-designer",e={target:t.baseUrl,preloader:!0,host:t.host,gcsBucket:t.gcsBucket||e,DADesigner:t.isDADesigner,forceNativeDesigner:!!t.forceNativeDesigner,sidebarDesigner:!!t.sidebarDesigner},bf.launchInAppDesigner(e),!0}}}function Sf(e){return!!e&&_a(e)}function Ef(e){var e=(e=e||{}).host||mf,t=Sf(e),n=t?e:We;return e&&!t&&C.info("Invalid host, falling back to "+We),n}function If(e){var e=(e=e||{}).gcsBucket||vf,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:vf;return t||C.info("Invalid bucket, falling back to "+vf),e}function _f(e){return"latest"===e||"strict"===e||"beta"===e||"via"===e||"mobile"===e||new RegExp("^[0-9]+.[0-9]+.[0-9]+(-[a-z0-9-]+[a-z0-9]+)?$").test(e)}function Cf(e){e=e||{};var t=f.get("enableCrossOriginIsolation")?"strict":yf,e=e.target||e.baseFolder||t,t=_f(e),e=t?e:yf;return t||C.info("Invalid target, falling back to "+yf),e}function xf(e){if(!Rf(window.name)&&!E.designerLaunched)if(f.get("disableDesigner"))C.info("Unable to launch the Visual Design Studio, set to disabled in configuration.");else{var t,n,i,r,o,a=!1;try{a=!!window.top.pendo}catch(s){}bf.crossFrameChannel===undefined&&(bf.crossFrameChannel=D,bf.useCrossFrameChannel=!0),Ja()&&a&&!e.allowChildFrame&&!e.selectionOnly?C.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):E.isReady()?(E.designerLaunchTime=(new Date).getTime(),a=Ef(e=e||{}),r=If(e),o=Cf(e),i=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+r+"/"+o+"/"+i,f.get("useAssetHostForDesigner")&&(n=so(i)),bf.hostConfig={gcsBucket:r,baseFolder:o,uniqueWindowId:e.uniqueWindowId,host:a,adoptv2:e.adoptv2,DADesigner:e.DADesigner,agentInstallType:Se(),forceNativeDesigner:!!e.forceNativeDesigner,sidebarDesigner:!!e.sidebarDesigner,apiKey:ff.getApiKey()},i={},e.selectionOnly&&(i["selection-only"]=!0),f.get("pendoGlobalKey")&&(i["data-pendo-global-key"]=f.get("pendoGlobalKey")),r=f.get("designerAgentPluginsLoader"),o=window.__pendoExtensions&&e.forceNativeDesigner,a=!window.__pendoExtensions&&!_.isFunction(r),(o||a)&&(bf.addScriptToPage(t,n,i),E.designerLaunched=!0),!e.forceNativeDesigner&&_.isFunction(r)&&(r(t,n,i),E.designerLaunched=!0)):C.error("Unable to launch the designer, the agent has not been initialized. Please use `pendo.initialize` prior to launching the designer")}}function Tf(e,t){window.postMessage({type:"connect",source:"pendo-designer-content-script",destination:"pendo-designer-agent"},location.origin);var n;document.getElementById("pendo-designer-container")||(n="pendo-designer-embedded",n+="__"+bf.windowCommunicationId,(t=kf("pendo-designer-iframe",mf+"/"+t+"/"+e+"/designer.html")).setAttribute("name",n),e=function(e){var t=document.createElement("div");return t.setAttribute("id","pendo-designer-container"),t.appendChild(e),t}(t),document.body.appendChild(e))}function kf(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&jo(i,n),i.setAttribute("sandbox","allow-scripts allow-same-origin allow-top-navigation allow-forms allow-pointer-lock allow-popups allow-storage-access-by-user-activation"),i.src=t,i}function Af(e,t,n){var i;document.getElementById(e)||((i=document.createElement("script")).setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=Z(E).createScriptURL(t),n&&_.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function Rf(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(n){return!1}}Of={body:"pendo-launch-modal-body",closeButton:"pendo-launch-modal-close-button",container:"pendo-launch-modal",footer:"pendo-launch-modal-footer",header:"pendo-launch-modal-header",launchButton:"pendo-launch-modal-launch-button",title:"pendo-launch-modal-title",logoContainer:"pendo-launch-modal-logo-container",style:"pendo-launch-modal-style",commIframeId:"pendo-designer-communication-iframe"},Nf={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},(Mf={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370}).FOOTER_HEIGHT=1.25*Mf.HEADER_HEIGHT,Mf.BODY_HEIGHT="calc(100% - "+Mf.HEADER_HEIGHT+"px - "+Mf.FOOTER_HEIGHT+"px)",Lf='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 164.12 164.12"><defs><style>.cls-1{fill:#fff;}</style></defs><title>chevron</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><polygon class="cls-1" points="82.06 0 0 82.06 82.06 82.06 82.06 164.13 164.13 82.06 164.13 0 82.06 0"/></g></g></svg>',(Pf={})["#"+Of.closeButton+":hover"]={"background-color":Nf.GRAY_LIGHTER_6},Pf["#"+Of.launchButton+":hover"]={"background-color":Nf.TEAL_DARKER+" !important"},Ff={PRIMARY_FONT:"Helvetica Neue"};var Of,Nf,Mf,Lf,Pf,Ff,Df={listen:function(){return _.isFunction(document.addEventListener)?(document.addEventListener("keyup",Uf,!1),()=>{document.removeEventListener("keyup",Uf,!1)}):()=>{}},launchOnLocalStorageToken:Wf,ids:Of,removeElement:jf,attemptToLaunch:zf,loadPluginJs:function(){var t;E.designerLaunched||(t=_.once(function(e){Wf(e,!0)}),$a(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}};function Uf(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&zf(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&zf(!1,!0)}function Gf(e,t){var n,i,r,o={"background-color":Nf.WHITE,height:Mf.MODAL_HEIGHT+"px","min-height":Mf.MODAL_HEIGHT+"px",width:Mf.MODAL_WIDTH+"px",position:"fixed",top:Mf.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-Mf.MODAL_WIDTH/2+"px","border-radius":"4px","box-shadow":"0px 13px 28px rgba(0, 0, 0, 0.17)",overflow:"hidden","z-index":"300000","box-sizing":"border-box"},o=Bf("div",Of.container,o);uc(f,Of.style,_.reduce(_.pairs(Pf),function(e,t){var n=t[0],t=t[1];return e+n+"{"+_.reduce(_.pairs(t),function(e,t){return e+t[0]+":"+t[1]+";"},"")+"} "},""),o),o.appendChild((t=t,r=Bf("div",Of.header,{"background-color":Nf.GRAY_PRIMARY,height:Mf.HEADER_HEIGHT+"px","min-height":Mf.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(i=Bf("div",Of.logoContainer,{height:"38px",width:"44px","background-color":Nf.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=Z(E).createHTML(Lf),r.appendChild(i),(i=Bf("div",Of.title,{width:"100%",display:"flex","align-items":"center","font-family":Ff.PRIMARY_FONT,"font-size":"18px",color:Nf.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=t?"VIA Designer":"Pendo Designer",r.appendChild(i),r)),o.appendChild(((t=Bf("div",Of.body,{height:Mf.BODY_HEIGHT,"min-height":Mf.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":Ff.PRIMARY_FONT,"font-size":"14px","box-sizing":"border-box"})).innerText="Thanks for letting us know you're here. We're ready to try this again. Launch Designer below to begin.",t)),o.appendChild((n=e,i=Bf("div",Of.footer,{"align-items":"center","border-top":"1px solid"+Nf.GRAY_LIGHTER_6,display:"flex",height:Mf.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":Mf.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(r=Bf("button",Of.closeButton,{"border-radius":"3px",border:"none",height:Mf.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":Ff.PRIMARY_FONT,"font-size":"14px",display:"flex","line-height":"120%","margin-right":"10px","min-width":"90px","justify-content":"center","box-sizing":"border-box"})).textContent="Close",r.onclick=function(){jf(Of.container),jf(Of.commIframeId)},(t=Bf("button",Of.launchButton,{"background-color":Nf.TEAL_PRIMARY,"border-radius":"3px",color:Nf.WHITE,border:"none",height:Mf.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":Ff.PRIMARY_FONT,"font-size":"14px",display:"flex","line-height":"120%","min-width":"90px","justify-content":"center","box-sizing":"border-box"})).textContent="Launch Designer",t.onclick=function(){Wf(n)},i.appendChild(r),i.appendChild(t),i)),document.body.appendChild(o)}function Bf(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),_.extend(e.style,n),e}function zf(t,n){var i,r,o;E.designerLaunched||(o=_.once(function(e){t||!n?Wf(e):Gf(e,t),Hf()}),$a(function(e){"pendo-designer-launch-modal"===e.data.destination&&(clearInterval(i),e.data.viaconfirmed?clearInterval(r):e.data.token?(o(e.data.token),e=JSON.parse(e.data.token),_.contains(e.host,"via")&&!e.visitorId&&(r=r||setInterval(function(){document.getElementById(Of.commIframeId)&&qf()},100))):Hf())}),bf.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){qf(),i=window.setInterval(qf,50)}))}function jf(e){document.getElementById(e)&&document.getElementById(e).remove()}function Hf(){var e=document.querySelector("#"+Of.commIframeId+'[src*="pendo"]');e&&e.remove()}function qf(){var e=document.getElementById(Of.commIframeId);e&&e.contentWindow&&_.isFunction(e.contentWindow.postMessage)&&e.contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:E.visitorId},_.get(E,"designerv2.hostConfig.host",We))}function Wf(e,t){var n={},e=JSON.parse(e);n.target=e.target||"latest",e.host&&(n.host=e.host),e.lookaside&&(n.lookaside=e.lookaside),t&&(n.selectionOnly=t),e.forceNativeDesigner&&(n.forceNativeDesigner=e.forceNativeDesigner),e.sidebarDesigner&&(n.sidebarDesigner=e.sidebarDesigner),jf(Of.container),bf.launchInAppDesigner(n)}var Vf=_.wrap(_.wrap(_.once(_.wrap(function(e){var t=m.defer();return Aa(e,function(){t.resolve()}),t.promise},function(e,t){return 0<_.size(Ad._handlers.validateGlobalScript)?Rr.get(t).then(function(e){return Ad.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)})),function(e,t){return t?e(t):m.resolve()}),function(e,t){return f.get("preventCodeInjection")?m.resolve():e(t)}),Jf={initializeWatermark:function(e){e=_.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),Jf.watermarkGuides=e,e=_.map(e,function(e){return e.fetchContent()});return m.all(e)},buildWatermark:function(e,t){if((e=e||{}).isTraining&&!e.isEmbedded){var n=e.targetAccount?function(t){return _.find(Jf.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return _.find(Jf.watermarkGuides,function(e){return t===e.appId})}(e.appId);if(n&&n.steps){var i,n=n.steps[0];if(n&&n.domJson)return i=n.domJson,(i=t(i,n)).css({position:"absolute",left:"auto",top:e.isBottomAligned?"auto":"100%",bottom:e.isBottomAligned?"100%":"auto",right:"0"}),i}}}};const Kf=1e4;function $f(n,i){var r=!1;const o=[];return n.addEventListener("message",function(e){u(e.data),i.state.guideUpdate.useObserver&&i.dispatch("guideUpdate/documentChanged")}),{postMessage:a,postMessageAsPromise:s,postMessageOrTimeout:function(e,t=Kf){const n=m.defer(),i=ut(32),r=(e=_.extend(e,{promiseId:i}),Ut(()=>{o[i]&&(n.reject(JSON.stringify({message:"request timed out"})),delete o[i])},t));return s(e).then(e=>{clearTimeout(r),n.resolve(e)}),n.promise},close:function(){r=!0,_.isFunction(n.close)&&n.close()}};function a(e){var t;r||(t=_.extend({apiKey:E.apiKey,allowMixedApiKeyFrames:f.get("allowMixedApiKeyFrames"),agentInstallType:Se()},e),n.postMessage(t),Ut(function(){u(t)},0))}function s(e){e.promiseId||(t=ut(32),e=_.extend(e,{promiseId:t}));var t=m.defer();return o[e.promiseId]=t,a(_.extend(e,{sourceFrame:i.state.frames.frameId})),t.promise}function u(e){try{var t;r||e.apiKey!==E.apiKey&&(!1===e.allowMixedApiKeyFrames||!1===f.get("allowMixedApiKeyFrames"))||e.targetFrame&&e.targetFrame!==i.state.frames.frameId||(e.resolveId?(t=o[e.resolveId])&&(delete o[e.resolveId],t.resolve(JSON.stringify(e))):/^frames\/|^debugger\//.test(e.action)&&i.dispatch(e.action,e))}catch(n){C.critical("ERROR in cross frame channel",{error:n})}}}var Zf="frames/removeFrame";function Xf(e,t,n){return new Yf(e,t,n,(e=t,t=n,new(_.isFunction(e.MessageChannel)?Qf:eg)(e,t)))}function Yf(e,t,n,i){this.init(e,t,n,i)}_.extend(Yf.prototype,{init(e,t,n,i){this._store=e,this._window=t,this._singletonMessageHandler=n,this._listeners=[],this._targetOrigin=n.targetOrigin(),this._impl=i,this._impl.onconnect=_.bind(this._frameConnectHandler,this),this._impl.onmessage=_.bind(this._fireMessageListeners,this),this._impl.onrelay=_.bind(this._topMessageHandler,this),this._connectToTop(10,0,function(){this._addControlMessageHandler(),this._connectToTop(250,21,function(){this.close(),this._store.commit("frames/setConnectFailed")})})},_fireMessageListeners(t){_.each(this._listeners,function(e){e(t)})},_controlMessageHandler(e){e=this._impl._parseMessage(e);e.data&&("pendo::connect"===e.data.action&&this._impl.frameConnect(e),e.data.action===Zf)&&this._topMessageHandler(e)},_topMessageHandler(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===Zf&&this._impl.frameDisconnect(e),this._impl.broadcast(e))},_connectToTop(e,t,n){this._impl.connectToTop({action:"pendo::connect",frameId:this._store.state.frames.frameId},this._targetOrigin),Ut(_.bind(function(){this._connected||(0===t?_.isFunction(n)&&n.call(this):0<t&&this._connectToTop(Math.min(2*e,1e4),t-1,n))},this),e)},_addControlMessageHandler(){this._singletonMessageHandler.addEventListener(_.bind(this._controlMessageHandler,this))},_frameConnectHandler(e){e.data&&"pendo::connectSuccess"===e.data.action&&(this._connected=!0,this._impl.connectSuccess(e),this._store.dispatch("frames/join"))},addEventListener(e,t){"message"===e&&this._listeners.push(t)},postMessage(e){this._closed||this._impl.postMessage(e)},close(){this._closed=!0,this._listeners.length=0,this._impl.close()}});Ri={_frameConnectHandler(e){_.isFunction(this.onconnect)&&this.onconnect(this._parseMessage(e))},_messageReceived(e){_.isFunction(this.onmessage)&&this.onmessage(this._parseMessage(e))},_relayMessage(e){_.isFunction(this.onrelay)&&this.onrelay(this._parseMessage(e))},_parseMessage(e){var t;return _.isString(e.data)?((t=_.pick(e,"type","origin","source","ports","lastEventId","target")).data=function(e){if(!_.isString(e))return e;try{return JSON.parse(e)}catch(t){return e}}(e.data),t):e}};function Qf(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function eg(e,t){this._window=e,this._frames={},this._isTop=e==e.top,this._singletonMessageHandler=t,this._boundMessageReceived=_.bind(this._messageReceived,this),this._isTop||(this._boundFrameConnectHandler=_.bind(this._frameConnectHandler,this),t.addEventListener(this._boundFrameConnectHandler))}_.extend(Qf.prototype,Ri,{connectToTop(e,t){this._closeChannel(),this._openChannel();var n=[];this._channel.port2&&n.push(this._channel.port2),this._window.top.postMessage(e,t,n)},frameConnect(e){var t,n=e.ports[0];(t=n)&&_.all(["addEventListener","start"],function(e){return _.isFunction(t[e])})&&((this._ports[e.data.frameId]=n).addEventListener("message",_.bind(this._relayMessage,this)),n.start(),n.postMessage({action:"pendo::connectSuccess"}),n.postMessage({action:"frames/receiveFrame",frame:g.state.frames.frames[g.state.frames.frameId],"pendo-preview":g.state.preview.preview}))},frameDisconnect(e){delete this._ports[e.data.frameId]},connectSuccess(){this._port.removeEventListener("message",this._boundFrameConnectHandler),this._port.addEventListener("message",_.bind(this._messageReceived,this))},broadcast(t){_.each(this._ports,function(e){t.target!==e&&e.postMessage(t.data)})},postMessage(e){this._port&&this._port.postMessage(e),e.action===Zf&&this._window.top.postMessage(e,this._targetOrigin)},close(){_.each(this._ports,function(e){e.close()}),this._ports={},this._closeChannel()},_openChannel(){this._channel=new this._window.MessageChannel,this._port=this._channel.port1,this._boundFrameConnectHandler=_.bind(this._frameConnectHandler,this),this._port.addEventListener("message",this._boundFrameConnectHandler),this._port.start()},_closeChannel(){this._port&&_.isFunction(this._port.close)&&(this._port.close(),this._port=null,this._channel=null)}}),_.extend(eg.prototype,Ri,{connectToTop(e,t){this._isTop||this._window.top.postMessage(JSON.stringify(e),t)},frameConnect(e){this._frames[e.data.frameId]=e.source,this._relayHandlerAdded||(this._relayHandlerAdded=!0,this._boundRelayMessage=_.bind(this._relayMessage,this),this._singletonMessageHandler.addEventListener(this._boundRelayMessage)),e.source.postMessage(JSON.stringify({action:"pendo::connectSuccess"}))},frameDisconnect(e){delete this._frames[e.data.frameId]},connectSuccess(){this._singletonMessageHandler.removeEventListener(this._boundFrameConnectHandler),this._singletonMessageHandler.addEventListener(this._boundMessageReceived)},broadcast(t){var n=this._singletonMessageHandler.targetOrigin();_.each(this._frames,function(e){t.source!=e&&e.postMessage(JSON.stringify(t.data),n)}),t.source!=this._window&&this._messageReceived(t)},postMessage(e){this._isTop?this._relayMessage({data:e,source:this._window}):this._window.top.postMessage(JSON.stringify(e),this._singletonMessageHandler.targetOrigin())},close(){var e=this._singletonMessageHandler;e.removeEventListener(this._boundFrameConnectHandler),e.removeEventListener(this._boundMessageReceived),e.removeEventListener(this._boundRelayMessage)}});tg=window,ng=_a,rg=!(ig=[]);var tg,ng,ig,rg,og={targetOrigin(){return rg?location.origin:"*"},secure(e){rg=e},addEventListener(e){0===ig.length&&tg.addEventListener("message",ag),ig.push(e)},removeEventListener(e){e=ig.indexOf(e);0<=e&&ig.splice(e,1),0===ig.length&&tg.removeEventListener("message",ag)},close(){tg.removeEventListener("message",ag),ig.length=0}};function ag(t){rg&&!ng(t.origin)||_.each(ig,function(e){_.isFunction(e)&&e(t)})}function sg(e){if(!ze.addEventListener)return{addEventListener:_.noop,postMessage:_.noop,close:_.noop};var t=!!window.__pendoExtensions;if(f.get("preferBroadcastChannel")&&!t&&_.isFunction(window.BroadcastChannel)){e.commit("frames/setChannelType","BroadcastChannel");t=function(e,o){const a=[];return e.removeEventListener=_.wrap(e.removeEventListener,function(e,t,n){var i,r=_.toArray(arguments).slice(1);return"message"===t&&0<=(i=_.findIndex(a,e=>e[0]===n))&&(r[1]=a[i][1],a.splice(i,1)),e.apply(this,r)}),e.addEventListener=_.wrap(e.addEventListener,function(e,t,n){var i,r=_.toArray(arguments).slice(1);return"message"===t&&(r[1]=i=function(e){if(e.data.tabId===o.getTabId())return n.apply(this,arguments)},a.push([n,i])),e.apply(this,r)}),e.postMessage=_.wrap(e.postMessage,function(e,t){return t.tabId=o.getTabId(),e.apply(this,_.toArray(arguments).slice(1))}),e}(new BroadcastChannel("pendo"),ln);if(t&&_.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),Xf(e,window,og)}var ug="guides_blocked",dg="Guides disabled: unreachable endpoint guide.gif";function cg(e){return JSON.parse(JSON.stringify(e))}class lg{constructor(e,t){this.apiKey=e,this.cacheGuides=t.get("cacheGuides"),this.cacheGuidesTimeout=t.get("cacheGuidesTimeout"),this.cacheGuidesPersistent=t.get("cacheGuidesPersistent"),this.cache=null,this.db=null}openDB(e,t=window.indexedDB){if(!this.cacheGuidesPersistent)return m.resolve();if(this.db)return m.resolve(this.db);const n=m.defer();e=t.open("pendo-"+e,1);return e.onerror=()=>{C.warn("Error opening guide database"),this.cacheGuidesPersistent=!1,n.resolve()},e.onsuccess=e=>{e=e.target.result;this.db=e,n.resolve(e)},e.onupgradeneeded=e=>{const t=e.target.result;t.createObjectStore("guides",{keyPath:"guide.id"}).transaction.oncomplete=()=>{this.db=t,n.resolve(t)}},n.promise}load(t=v()){if(this.cache)return m.resolve(this.cache);if(this.cache={},!this.db)return m.resolve(this.cache);const n=m.defer(),i=this.db.transaction(["guides"],"readwrite").objectStore("guides");var e=i.getAll();return e.onerror=()=>{C.warn("Error loading guide cache"),this.cacheGuidesPersistent=!1,this.db=null,n.resolve(this.cache)},e.onsuccess=e=>{e=e.target.result;_.each(e,e=>{e.expires>t?this.cache[e.guide.id]=e:i["delete"](e.guide.id)}),n.resolve(this.cache)},n.promise}add(e,t,n=v()){if(this.cacheGuides&&this.cache)return n={expires:n+this.cacheGuidesTimeout,visitorId:t,guide:cg(e)},this.cache[e.id]=n,this.save(n)}save(e){if(this.db){var t=this.db.transaction(["guides"],"readwrite").objectStore("guides");const n=m.defer();t=t.put(e);return t.onerror=()=>{C.warn("Error saving guide to cache "+e.guide.id),n.resolve()},t.onsuccess=()=>{n.resolve()},n.promise}}update(t){if(this.cache){var e=this.cache[t.guideId];if(e){var n=_.find(e.guide.steps,e=>e.id===t.guideStepId);if(n)return n.seenState=t.state,n.seenReason=t.seenReason,n.dismissCount=t.dismissCount,n.snoozeEndTime=t.snoozeEndTime,this.save(e)}}}list(n,i=v()){return this.cacheGuides?this.openDB(this.apiKey).then(()=>this.load(i)).then(()=>{const t=[];return _.each(this.cache,e=>{e.expires>i&&e.visitorId===n?t.push(_.pick(e.guide,"id","lastUpdatedAt","language")):delete this.cache[e.guide.id]}),t}):m.resolve([])}get(e){if(this.cache&&this.cache[e])return cg(this.cache[e].guide)}clear(){this.cache={},this.db&&this.db.transaction(["guides"],"readwrite").objectStore("guides").clear()}}const pg=h.getLocal();var hg=[],fg="Guide was not shown because this visitor is in a control group of an active experiment for the guide";const gg=[];function mg(){var e=f.get("guideCssAssetPath");return e||so("guide.css")}var vg="_pendo-guide_",yg="_pendo_g_",bg=0;function wg(e){bg=e}var Sg=function(){return _.any(O,function(e){return e.isShown()})},Eg=function(e,t){var n=k("._pendo-close-guide_",e);return n.length||(n=k(document.createElement("button")).attr("id","_pendo-close-guide_").attr("aria-label","close").addClass("_pendo-close-guide_").text("\xd7"),je()?9<xe&&n.css({top:3}):8===xe?n.css({top:9,right:2}):9===xe?n.css({right:2,top:3}):9<xe&&n.css({top:3}),e=k("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},Ig=function(n){return _.reduce(O,function(e,t){return n(t)&&e.push(t),e},[])},_g=function(e,t,n,i,r,o){e=od(N(e),t);e&&(e.seenState=n,e.lastSeenAt=i,e.destinationStepId=o,r!==undefined)&&(e.dismissCount=r)},Cg=function(e){for(var t=new RegExp("^"+yg);e;){if(_.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function xg(t){_.each(O,function(e){_.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var Tg=function(e){return e&&e.guideId};var kg=function(e,t){var n,i;return Tg(e)&&(t=e,e=null),(n=t)&&_.isFunction(n.render)?t:t?(n=N(t.guideId))&&n.findStepById(t.id):(n=_.find(O,function(e){return e.isShown()}))?((i=e?Cg(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||To("findStepForGuideEvent: step with id "+i):(t=_.find(n.steps,function(e){return e.isShown()}))||To("findStepForGuideEvent: no step shown"),t):void 0},Ag=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=md(e);"tooltip"===e.type&&_.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Vu(n,t,Gg,!0)};function Rg(e){return e.isLocked()&&(!e.elements||!e.elements.length||void ko('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}var Og=function(e){var e=k("#_pendo-badge_"+e.id),t=e.find("input"),t=0<t.length?t:e;t.length<1||t[0].focus()},Ng=function(e){e=_.get(e,"attributes.activation.selector",""),e=u(e);e.length<1||e[0].focus()},Mg=function(){var e=P.getResourceCenterBadge();e?e.element().focus():(e=P.getResourceCenter(),Ng(e))},Lg=function(e){if(!E.designer&&e&&"building-block"===_.get(e,"attributes.type","")){var t=e.steps[0],n=t.seenReason,i=_.get(e,"launchMethod","").split("-"),r=_.contains(i,"dom"),o=_.contains(i,"badge"),i=Xg(e);if(_.get(t,"attributes.isAutoFocus")||i)switch(n){case"badge":o&&Og(t);break;case"dom":r&&Ng(e);break;case"launcher":Mg();break;default:return}}};function Pg(e,t){return!e.isMultiApp&&("auto"===t||"repeatGuide"===t)}var Fg=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=kg(e,t))&&t.id?Rg(t)||("dismissed"===t.seenState?C.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(C.info("onGuideDismissed called",{contexts:["guides"]}),y.beforeDismiss.trigger(t).cancel?C.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(Ag(t),e=t.id,n=N(s=t.guideId),i=(i=_.first(n&&n.steps))&&i.seenReason,o=n&&n.language,r=_.get(t,"dismissCount",0)+1,nm(s,e,b(),i,o),o=v(),_g(s,e,"dismissed",o,r),(a=_.isFunction(t.getGuide)&&t.getGuide())&&a.attributes&&a.attributes.doNotResume||Xp({guideId:s,guideStepId:e,time:o,state:"dismissed",seenReason:i,visitorId:b(),dismissCount:r}),Pg(n,i)&&om(o,rm.DISMISSED),t.hide(),Lg(a),Sg()||(ph(),hh())))):ph()},Dg=function(e,t,n){var i,r,o,a,s,u,d,c;C.info("onGuideSnoozed called",{contexts:["guides"]}),(t=kg(e,t))?"snoozed"===t.seenState?C.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):y.beforeSnooze.trigger(t).cancel?C.info("Guide snooze canceled during runtime in step: "+t.id):(n||(n=864e5,C.info("no snooze duration provided, defaulting to 1 day")),Rg(t)||(Ag(t),e=t.id,i=t.guideId,r=b(),o=N(i),a=o&&o.language,s=_.first(o&&o.steps),s=s&&s.seenReason,u=v(),C.info("snoozing guide for "+n+" ms"),d=u+n,t.snoozeEndTime=d,c=sm({type:"guideSnoozed",guideId:c=i,stepId:e,visitorId:r,seen_reason:s,language:a,snooze_duration:n}),cm(c),y.guideSnoozed.trigger(c),_g(i,e,"snoozed",u),o&&o.attributes&&o.attributes.doNotResume||Xp({guideId:i,guideStepId:e,time:u,state:"snoozed",seenReason:s,visitorId:b(),snoozeEndTime:d}),Pg(o,s)&&om(u,rm.SNOOZED),t.hide(),Lg(o),Sg())||(ph(),hh())):(C.info("missing step. can't snooze",{contexts:["guides","error"]}),ph(),To("onGuideSnoozed: missing step"))},Ug=function(e){var t,n,i,r=(r=e&&e.step)||kg(e);r?(i=e&&e.params,i=_.find(i,function(e){return"goToStepId"===e.name}),t=i&&i.value,(t=e&&e.destinationStepId?e.destinationStepId:t)?t===r.id?C.info("[goToStep] step id matches the current step",{contexts:["guides","error"]}):(i=N(r.guideId),(n=_.find(i.steps,function(e){return e.id===t}))?(n=_.indexOf(i.steps,n),i=_.indexOf(i.steps,r),e.steps=Math.abs(n-i),e.action=e.action||"goToStep",e.destinationStepId=t,i<n?Gg(e,r,!1):Bg(e,r)):C.info("[goToStep] guide has no step matching the step id",{contexts:["guides","error"]})):C.info("[goToStep] missing step id to go to",{contexts:["guides","error"]})):C.info("[goToStep] missing current step",{contexts:["guides","error"]})},Gg=function(e,t,n){if((s=dv())&&_.each(s.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=md(e);"tooltip"===e.type&&_.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Vu(n,t,Gg,!0)}),1===arguments.length&&Tg(e)&&(s=id(e.guideId),i=kg(),s)&&i&&_.first(s.steps).id===i.id&&_.last(s.steps).id===e.id&&(C.info("Cannot skip to last step from first step"),e=null),C.info("onGuideAdvanced called",{contexts:["guides"]}),(t=kg(e,t))===e&&(e=null),t){if(!Rg(t))if("advanced"!==t.seenState||n)if(y.beforeAdvance.trigger(t).cancel)C.info("Guide advance canceled during runtime in step: "+t.id);else{var i=e&&e.action&&"goToStep"===e.action||!1,r=N(t.guideId),o=r&&r.language,a=r&&r.steps&&_.findIndex(r.steps,e=>t.id==e.id);if(e&&_.isNumber(e.steps)&&1<e.steps&&!i){var s=a+(e.steps-1),u=s=s>=r.steps.length?r.steps.length-1:s;!0===e.skip&&(u=a+1);for(var d=a;d<u;++d){t=r.steps[d],im(r.id,t.id,b(),t.seenReason,o,d!==a);var c=v();Xp({guideId:t.guideId,guideStepId:t.id,time:c,state:"advanced",seenReason:t.seenReason,visitorId:b()}),_g(r.id,t.id,"advanced",c,undefined,h)}return Gg(r.steps[s],t,!0)}var l,i=t.id,s=t.guideId,p=_.first(r&&r.steps),p=p&&p.seenReason,h=e&&e.destinationStepId,f=(h||(f=e&&_.isNumber(e.steps)&&1<e.steps?e.steps:1,h=(f=_.isNumber(a)&&r&&r.steps&&r.steps[a+f])&&f.id||null),h||C.info("missing destination step id"),C.info("advancing guide"),im(s,i,b(),p,o,n,h),C.info("update guide status"),r&&_.last(r.steps).id===i&&(l=_.get(t,"dismissCount",0)+1),(new Date).getTime()),g=(_g(s,i,"advanced",f,l,h),_.isFunction(t.getGuide)&&t.getGuide());g&&g.attributes&&g.attributes.doNotResume||Xp({guideId:s,guideStepId:i,time:f,state:"advanced",seenReason:p,visitorId:b(),destinationStepId:h,dismissCount:l}),Pg(r,p)&&om(f,rm.ADVANCED),C.info("stop guide"),ph(),C.info("start guides"),hh()}else C.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else C.info("missing step. can't advance",{contexts:["guides","error"]}),ph(),To("onGuideAdvanced: missing step")},Bg=function(e,t){var n,i,r,o,a,s;C.info("onGuidePrevious called",{contexts:["guides"]}),(t=kg(e,t))?"advanced"===t.seenState?C.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):y.beforePrevious.trigger(t).cancel?C.info("Guide previous canceled during runtime in step: "+t.id):(o=N(n=t.guideId),s=e&&e.action&&"goToStep"===e.action||!1,0!==(i=_.indexOf(o.steps,t))&&(r="element"==t.advanceMethod?"click":"mouseover",a=md(t),"tooltip"===t.type&&_.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):Vu(a,r,Gg,!0),a=e&&_.isNumber(e.steps)?e.steps:1,r=_.first(o&&o.steps),a=0<=(i=i-a)?o.steps[i]:r,i=r&&r.seenReason,r=o&&o.language,o=a.id,(o=s&&e&&e.destinationStepId?e.destinationStepId:o)||C.info("missing destination step id"),C.info("advancing guide"),im(n,t.id,b(),i,r,!1,o),C.info("update guide status"),a=(new Date).getTime(),_g(t.guideId,t.id,"advanced",a,undefined,o),(s=_.isFunction(t.getGuide)&&t.getGuide())&&s.attributes&&s.attributes.doNotResume||Xp({guideId:t.guideId,guideStepId:t.id,time:a,state:"advanced",seenReason:i,visitorId:b(),destinationStepId:o}),ph(),hh())):(ph(),To("onGuidePrevious: missing step"))},zg=function(e){var t;k("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",ao()+"/img/tiny-logo.png"),t=k(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:E.TOOLTIP_ARROW_SIZE}).append(t),$u.push(t[0]),t.appendTo(e))};function jg(e){return e&&e.attributes&&e.attributes.stayHidden}const Hg=(e,t,n)=>{var i;return Ah()&&({id:e,guideId:i}=e,y.stepEligibility.trigger({stepId:e,guideId:i,eligible:t,reason:n})),t};var qg=function(e){var t,n,i=_.partial(Hg,e);return jg(e)?i(!1,"dismissed"):e.elementPathRule||"lightbox"!==e.type&&"whatsnew"!==e.type?e.triggerElementPathRule&&!ha(u(e.triggerElementPathRule)[0])?i(!1,"trigger_element"):(t=md(e),(n=e.targetElement)&&e.elementContainsRulesList&&!Vg(n,e.elementContainsRulesList)?i(!1,"contains_rules"):(n="tooltip"===e.type||Gc.isBuildingBlockGuideRelativeToElement(e),e=ha(t),n?e?i(e,"target_element_tooltip"):i(fa(t),"target_element_tooltip_scroll"):i(e,"target_element"))):i(!0,"")};function Wg(e){var t=(k(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function Vg(e,t){for(var n=Wg(e),i=0;i<t.length;i++)if(!Jg(n,t[i]))return!1;return!0}function Jg(e,t){var n=t.matchType,i=t.matchValue,t=t.dataType,e=e||"";if("number"===t){var r=gt(e);if(null==r)return!1;e=parseFloat(r),i=parseFloat(i);if(isNaN(e)||isNaN(i))return!1}else"string"===t&&(e=e.toLowerCase(),i=i.toLowerCase());return"equal"===n?e===i:"notEqual"===n?e!==i:"contains"===n?-1<String(e).indexOf(i):"notContains"===n?-1===String(e).indexOf(i):"greaterThan"===n?i<e:"lessThan"===n&&e<i}var Kg=function(e){return yg+e.id},$g=function(e){var t=e.element,n=_.first(k("#"+Kg(e)));t&&n?ha(t)||k.hasClass(n,"mouseover")?Ut(function(){$g(e)},dh):e.hide&&(e.hide(),Sg())||(ph(),hh()):t||!n||e.hide&&(e.hide(),Sg())||(ph(),hh())},Zg=function(){return!1},Xg=_.partial(_.get,_,"attributes.resourceCenter"),Yg=function(t){var e;Sg()&&(e=kg(),Ag(e),Xg(t)?(e=Ig(Xg),(e=_.filter(e,function(e){return e.id!==t.id})).length&&g.dispatch("frames/hideGuides",_.pluck(e,"id"))):(xg(),g.dispatch("frames/hideGuides")))},Qg=function(e,t){return!(!e||!e.guideId||!(e=N(e.guideId)))&&(Yg(e),e.launch(t),e.isShown())},em=function(e,t,n,i,r,o){e=sm({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&_.extend(e.props,{step_poll_types:o}),cm(e),y.guideNotSeen.trigger(e)};var tm=function(e,t,n,i,r,o){i||(C.critical("pendo.io guideSeen exception",{guideId:e,stepId:t,error:new Error("seenGuide called without seen reason")}),a=N(e),s="auto",i=a&&(a=(a.launchMethod||s).split("-"),!_.contains(a,s))&&a.length?_.first(a):s);var a=sm({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),s=(_.extend(a.props,o),cm(a),v());Xp({guideId:e,guideStepId:t,time:s,state:"active",seenReason:i,visitorId:b()}),_g(e,t,"active",s),y.guideSeen.trigger(a)};function nm(e,t,n,i,r){e=sm({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});cm(e),y.guideDismissed.trigger(e)}function im(e,t,n,i,r,o,a){e={type:"guideAdvanced",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r},a&&(e.destination_step_id=a),t=sm(e);cm(t,null,o),y.guideAdvanced.trigger(t)}var rm={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function om(e,t){am(e,t);var n={};n[t]=e,g.dispatch("frames/changeThrottlingState",n)}function am(e,t){_.contains(_.values(rm),t)&&(_.isFunction(e.getTime)&&(e=e.getTime()),E[t]=e,h.write(t,e,$p),g.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function sm(e,t,n,i,r,o){var a=e,e=("object"!=typeof a&&(a={type:e,guideId:t,stepId:n,visitorId:i,language:o}),r&&(a.reason=r),_.isString(a.language)||delete a.language,_.extend({guide_id:a.guideId,guide_step_id:a.stepId},_.omit(a,"type","guideId","stepId","visitorId"))),t=ln.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:qn(),browser_time:(new Date).getTime(),url:A.externalizeURL(),props:e});return y.eventCaptured.trigger(t),t}var um=null,dm=function(e){window.clearTimeout(um),um=Ut(Bm,e)},cm=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-bg,Wm(),Um.push(e),dm(t)},lm=function(e,t){return"dismissed"===e.state?null:N(e.guideId).nextStep(e,t||pm())},pm=function(){return E.normalizedUrl||hm(A.externalizeURL())},hm=function(e){try{var t=new Zn(e),n=_.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return C.error("Invalid URL provided to normalize"),e}},fm=function(e,t){return!me(e)||new RegExp(e).test(t)},gm=function(e,t){e=rd(e);return!!e&&(!(t=Qg(_.first(e.steps),t||"api"))&&e.control&&C.info(fg),t)},mm=function(e,t){e=N(e);return!!e&&(!(t=Qg(_.first(e.steps),t||"api"))&&e.control&&C.info(fg),t)};function vm(e,t){return t=parseInt(t,10),isNaN(t)||!_.isNumber(t)||!(_.isNumber(e)&&e<t)&&_.isNumber(e)?e:t}var ym,bm=function(){ph(),lh(),P.removeNotificationBubble(),Fh(),ls()};function wm(){ph(),Mo(),E.segmentFlags=[],E.doNotProcess=!0,g.commit("debugger/doNotProcess",!0),C.info("not tracking visitor due to 451 response")}function Sm(e){ym&&(451===e.statusCode&&(wm(),ym.deferred.reject(e)),_.isString(e.id)&&e.id!==ym.id||(_.extend(E,e),E.guides=_.map(E.guides,function(e){return 1==_.keys(e).length&&e.id?Jm.get(e.id):(Jm.add(e,b()),e)}),ym.deferred&&ym.deferred.resolve(),ym=null))}var Em=function(o,a){var e,s=uo(),u=_.uniqueId(),d=m.defer();return ym={id:u,deferred:d},jl()||((e=Hl())?(C.info("sending metadata: "+JSON.stringify(e),{contexts:["guides","metadata"]}),a.metadata=e):C.info("no metadata to send",{contexts:["guides","metadata"]})),Jm.list(a.visitorId).then(e=>{0<e.length&&(a.cachedGuides=e);var e=nt(a),t={id:u,jzb:e,v:Ke,ct:(new Date).getTime()},n=(s&&a.accountId&&"ACCOUNT-UNIQUE-ID"!==a.accountId&&(t.acc=ot(a.accountId)),Ah()&&(t.debug=!0),Co(Im.endpoint(),o,t)),i=ys.get();let r;return r=2e3<n.length||!_.isEmpty(i)?(delete t.jzb,n=Co("guide.json",o,t),t=_.extend({events:e},i),Im.post(n,t,E,_.noop)):Im.load(n,E,_.noop),m.all([r["catch"](function(e){return 451===e.status&&wm(),m.reject(e)}),d.promise,(e=Im,i=o,"1"===(t=h.read(ug))?(C.info(dg),m.resolve({success:!1,cached:!0})):"0"===t?m.resolve({success:!0,cached:!0}):(t=Co("guide.gif",i,{jzb:"eJwFwIEIAAAAwDDQd3-N1QABFQC5",ct:v(),v:Ke}),(e.usesXhr()?Rr.get(t):Ao(t)).then(function(){return{success:!0}},function(e){return e&&e.status?{success:!0}:{success:!1}})))]).then(function([,,e]){var t;if((t=e).cached||(t.success?h.write(ug,"0"):(C.info(dg),h.write(ug,"1"))),!e.success)return m.reject()})})},Im=Rd;function _m(e){e=_.find(e.steps,e=>e.pageId&&!e.regexUrlRule);return!e||(C.critical("pendo.io guide validation exception",{guideId:e.guideId,stepId:e.id,error:new Error("missing regexUrlRule for page "+e.pageId+'"')}),!1)}function Cm(n){return _.every(gg,e=>{try{return e(n)}catch(t){return console.debug("Error in guide processor",e,n.id),!1}})}function xm(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&_.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}var Tm,km=function(){return!f.get("disableGlobalCSS")};function Am(e,t){var n=f.get("dropAnonymous");if(On(e)&&n)C.info("loading guides blocked for anonymous visitors due to dropAnonymous config setting being set to true"),_.isFunction(t)&&t("error: guides are blocked");else if("1"===h.read(ug))C.info("guide events are blocked, load guides cancelled"),_.isFunction(t)&&t("error: guides are blocked");else{if(rs(os()))return 1;C.info("bad url: probably local file system",{contexts:["guides","error"]}),_.isFunction(t)&&t("error: invalid url")}}var Rm=function(e,a,s,u){var d=m.defer(),c=!1;if(e=e||E.apiKey,Am(a=a||b(),u)){C.info("loading guides for "+s+"...",{context:["guides"]}),s=A.externalizeURL(s);var n,t,l=Rm.lastVisitorId!==a?_.noop:(i=O,(t=_.find(i,function(e){return _.isFunction(e.isRendered)&&e.isRendered()&&!e.isTopLevel}))?(n=_.chain(t.steps).filter(function(e){return e.isRendered()}).indexBy("id").value(),function(e){e=_.findWhere(e,{id:t.id});e&&!_.get(e,"attributes.doNotResume")&&_.each(e.steps,function(e){var t=n[e.id];!t||e.seenState&&"active"!==e.seenState||e.show(t.seenReason)})}):function(){}),i=(Rm.lastVisitorId=a,lh(),g.commit("guideState/setLastGuideRequestAt",v()),{visitorId:a,accountId:qn(),url:s,oldVisitorId:Gn=Gn===undefined&&Nn()?Vn(Tn):Gn});const p=_.uniqueId();Rm.reqId=p,Em(e,i).then(function(){if(!c&&!E.designer)if(Rm.reqId!==p)d.resolve();else{y.deliverablesLoaded.trigger(),C.info("successfully loaded guides for "+s,{contexts:["guides"]}),E.designerEnabled&&"true"!==pg.getItem("pendo-designer-mode")&&Df.loadPluginJs(),bm();var t=E.lastGuideStepSeen;if(t){g.dispatch("guideState/receiveLastGuideStepSeen",t),t.visitorId=a,g.dispatch("guideState/updateLastGuideStepSeen",t),g.commit("guideState/setLastGuideRequestAt",v()),Xu={};t=E.guides;var t=_.chain(t).map(Zd).filter(_m).filter(Cm).sortBy(xm).value(),n=(td(t),ad());g.dispatch("guideState/load",(r=Zp,o=f.get("crossAppGuideStorageSuffix"),h.read(r,!1,o))),g.dispatch("guideState/apply"),E.latestDismissedAutoAt=vm(E.latestDismissedAutoAt,h.read("latestDismissedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestDismissedAutoAt",value:E.latestDismissedAutoAt}),E.finalAdvancedAutoAt=vm(E.finalAdvancedAutoAt,h.read("finalAdvancedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"finalAdvancedAutoAt",value:E.finalAdvancedAutoAt}),E.latestSnoozedAutoAt=vm(E.latestSnoozedAutoAt,h.read("latestSnoozedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestSnoozedAutoAt",value:E.latestSnoozedAutoAt}),g.dispatch("healthCheck/init",t),g.dispatch("frames/changeGuideList",n),E.eventProperties=Qm(E.features);let e=m.resolve();E.globalJsUrl&&(e=Vf(Yd(E.globalJsUrl))["catch"](function(e){C.error("Error loading global script: ",e)})),n.length?m.all([Dm(),e,Hm(t),Jf.initializeWatermark(t),Mm(5e3)].concat((i=t,_.map(Om,function(e){return e(i)})))).then(function(){Rm.reqId===p&&(g.getters["frames/isLeader"]()&&l(O),y.guidesLoaded.trigger(),hh(),clearTimeout(Tm)),_.isFunction(u)&&u(),d.resolve()},function(e){C.error("Post loadGuide request failed: ",e),y.guidesFailed.trigger(),d.reject()}):(y.guidesLoaded.trigger(),d.resolve())}else C.info("lastGuideStepSeen is not set, shutting down guides")}var i,r,o})["catch"](function(e){y.guidesFailed.trigger(),d.reject(e)});e=f.get("guideTimeout")||f.get("guides.timeout");_.isNumber(e)&&(clearTimeout(Tm),Tm=Ut(function(){var e;e=d,bm(),e.reject(),c=!0},e))}else d.reject();return d.promise};var Om=[];function Nm(e,t){var n,i=document.getElementById(e);return i&&i.href&&0<=i.href.indexOf(t)?m.resolve():(n=m.defer(),k(i).remove(),E.loadResource(t,function(){n.resolve()}).id=e,n.promise)}var Mm=_.memoize(function(t,n,e){if(!km()||!Lm(O))return m.resolve();n=n||v,e=e||"_pendo-hidden_";var i=k(document.createElement("div")).addClass(e).css({position:"absolute",bottom:"0px",right:"0px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(k.getBody()),r=n(),o=m.defer();return function s(e){Ut(function(){a(i[0])?(i.remove(),o.resolve()):n()-r>t?(i.remove(),o.reject("Unable to find global css after delay")):s(100)},e)}(0),o.promise;function a(e){e=R(e);if(e)return"none"===e.display}});function Lm(e,t){return t&&t.designer||_.any(e,function(e){return!ld(e)&&_.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl||e.domJson)})})}const Pm="_pendo-default-css_",Fm="_pendo-css_";function Dm(){var e=[];if(!km())return m.resolve();Lm(O,E)&&e.push(Nm(Pm,mg()));var t=((E.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(Nm(Fm,Yd(t))):k("#"+Fm).remove(),m.all(e)}var Um,Gm,Bm=function(e){Um&&Um.flush(e)},zm=function(){return hg};function jm(e){var t=As(Vs,Ls("visitor_id"),Ls("props.guide_id"),Ls("props.source"),Ws,Js(),Zs(e),Xs,Ys,au),n=As(Os,Ns(e.cache),_.noop);return new lu(_.extend({processSilos:t,packageSilos:n},e))}var Hm=function(e){return P.initializeResourceCenter(e)},D={postMessage:_.noop,close:_.noop};let qm=D;function Wm(e){return Um=Um||jm(_.extend({cache:hg,apiKey(){return E.apiKey},beacon:"guide",allowPost:!0,preferFetch:ze.safari},e)),Gm=Gm||jm(_.extend({cache:[],apiKey(){return E.apiKey},beacon:"poll",allowPost:!0,preferFetch:ze.safari},e)),us(Um),us(Gm),()=>{Um.clear(),Gm.clear(),ds(Um),ds(Gm)}}function Vm(e){var e=e["blockedURI"];e&&-1!==e.indexOf("/data/guide.json")&&f.get("cacheGuides")&&((e=f.getLocalConfig()).cacheGuides=!1,f.setLocalConfig(e),Tr(window,"securitypolicyviolation",Vm),sv())}let Jm;var Km=function(e){const t=[];t.push(Wm({localStorageUnload:f.get("analytics.localStorageUnload")})),Jm=new lg(E.apiKey,f),Oh.run(),t.push(Oh.stop),y.appUnloaded.on(function(){g.dispatch("frames/leave")}),y.metadata.on(function(e){e=e.data[0].storeChanged;e&&!jl()&&av()}),y.identify.on(function(){av()}),y.urlChanged.on(function(){av(A.get())}),y.guideUpdateComplete.on(function(){var e,t,n;e=_.filter(O,e=>_.isFunction(e.outsideTimebox)&&e.outsideTimebox()),nd.addGuide(e),tc.processPrefetch(),e=O,t=Zu,f.get("disablePrefetch")||(t=_.keys(t)).length&&(n=_.indexBy(e,"id"),_.each(t,function(e){var e=n[e];e&&(e=_.first(e.steps))&&_.isFunction(e.fetchContent)&&e.fetchContent(!0)}))}),y.guidesLoaded.on(function(){P.fetchAnnouncementGuidesContent(O,g)}),y.guideListChanged.on(function(e){e=e.data[0].guideIds;if(e&&e.length){const n=_.indexBy(e);_.each(Zu,function(e,t){n[t]||(e.hide(),delete Zu[t])})}}),t.push(function(e,t,n){var{Turbolinks:i,Turbo:r}=window;let o;if(i&&(o=i.EVENTS&&i.EVENTS.LOAD),!(o=r&&r.visit?"turbo:load":o))return()=>{};const a=xr(e,o,t),s=xr(e,"turbo:before-cache",n);return()=>{a(),s()}}(document,function(){A.get()===ov.lastUrl&&sv()},function(){bm()}));var n=f.get("guides.tooltip.arrowSize");if(_.isNumber(n)&&(E.TOOLTIP_ARROW_SIZE=n),qm=sg(g),D=$f(qm,g),t.push(()=>D.close()),t.push(ln.tabIdChanged(function(){var e=ln.getTabId();g.commit("frames/setTabId",e),g.dispatch("frames/join")})),g.dispatch("frames/init"),g.dispatch("frames/join"),t.push(function(){const e=[];return g.dispatch("guideState/init"),e.push(xr(window,"focus",Yp)),e.push(xr(window,"storage",function(e){g.dispatch("guideState/storageChanged",e)})),()=>_.each(e,function(e){e()})}()),t.push(()=>{nv.cancel(),Gh.cancel()}),t.push(xr(window,"resize",nv)),t.push(xr(window,"scroll",Gh,!0)),t.push(xr(window,"gestureend",iv,!0)),t.push(xr(window,"securitypolicyviolation",Vm)),t.push(function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];const t=[];for(var n=0;n<e.length;n++)t.push(xr(document,e[n],rv));return()=>{_.each(t,function(e){e()})}}()),e.observing){const i=_.debounce(function(){g.dispatch("guideUpdate/documentChanged")},50);t.push(()=>{i.cancel()}),t.push(l(window,"animationend",i)),t.push(l(window,"transitionend",i)),t.push(l(window,"mouseover",i)),g.commit("guideUpdate/setObserver",e),g.commit("guideUpdate/setUseObserver"),t.push(()=>g.dispatch("guideUpdate/stopObserver"))}return h.registry.addLocal(rm.ADVANCED),h.registry.addLocal(rm.DISMISSED),h.registry.addLocal(rm.SNOOZED),h.registry.addLocal(ug,{duration:144e5}),rc.initialize(),()=>{Jm=null,ov.reset(),bm(),av.reset(),Rm.reqId=null,_.each(t,function(e){e()}),k("#"+Pm).remove(),k("#"+Fm).remove(),rc.teardown()}},$m=function(){return f.get("guides.disabled",!1)||f.get("disableGuides",!1)||!_o},Zm=function(){return f.get("guides.delay",!1)||f.get("delayGuides",!1)},Xm=function(e){var t=f.getLocalConfig();t.disableGuides=e,f.setLocalConfig(t)},Ym=function(e){var t=f.getLocalConfig();t.delayGuides=e,f.setLocalConfig(t)},Qm=$n(function(e){if(e&&e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n].featureRule,r=_.map(e[n].eventProperties,function(e){return e.selector?e:JSON&&JSON.parse&&e.rule?JSON.parse(e.rule):void 0});t.push({featureRules:i,eventPropertyRules:r,featureId:e[n].featureId})}return t}}),ev=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},tv=function(){C.debug("adjustActiveGuideOnResize firing");var e=dv();e&&e.step&&!E.ignoreResize&&e.step.redraw()};const nv=_.debounce(function(){var e;-1<_.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=ev())||e.id.indexOf("pendo-video-")<0)&&Ut(function(){tv()},150):tv(),Gh()},50),iv=function(e){1!==e.scale&&nv()};var rv=function(e){var t=_.get(document,"activeElement.id",""),e=_.get(e,"target.id","");_.filter([t,e],e=>-1<e.indexOf("pendo-video-")).length&&(ev()?E.ignoreResize=!0:Ut(function(){E.ignoreResize=!1},1e3))};function ov(e){var t,n,i,r,o=b(),a=qn();e=e||A.get(),n=o,i=a,r=ml,!(t=e)||!E.apiKey||$m()&&"true"!==pg.getItem("pendo-designer-mode")||t===ov.lastUrl&&n===ov.lastVisitorId&&i===ov.lastAccountId&&r===ov.lastMetadataHash||(ov.lastUrl=e,ov.lastVisitorId=o,ov.lastAccountId=a,ov.lastMetadataHash=ml,Rm(E.apiKey,o,e)["catch"](_.noop))}ov.reset=function(){_.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){ov[e]=null})};var av=function(e){_o&&(av.reset(),av.pending=Ut(function(){delete av.pending,ov(e)},0))};function sv(){ov.lastUrl=null,av()}function uv(e){e=gg.indexOf(e);-1!==e&&gg.splice(e,1)}function dv(){var e,n,t=_.find(O,function(e){return e.isShown()});return!t||_.get(t,"attributes.resourceCenter.isModule")&&!(t=P.getResourceCenter())?null:(e=_.find(t.steps,function(e,t){return n=t,e.isShown()}),{guide:t,steps:_.filter(t.steps,function(e,t){return e.isShown()}),step:e,stepIndex:n})}function cv(e){var t,n=_.get(e,"value","");-1!==_.get(e,"parentElement.className","").indexOf("_pendo-nps-poll-"+n+"-wrapper")&&(e=k("._pendo-nps-open-text-poll-question"),t=k("._pendo-nps-open-text-poll-input")[0],_.forEach(e,function(e){"none"!==_.get(e,"style.display","none")&&t&&t.setAttribute("aria-labelledby",e.id)}))}av.reset=function(){av.pending&&clearTimeout(av.pending)};var lv=function(){var o=this,a=(this.eventable=mn.call({}),this.eventable.on("pendoEvent",function(e){try{o.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";C.critical("Error in Action "+e,{error:t})}}),this.eventHandler=function(e){if(!e.ignore&&!E.designer){var t=e.step["guideElement"];switch(e.action){case a.advanceGuide:Gg(e,e.step);break;case a.previousStep:Bg(e,e.step);break;case a.goToStep:Ug(e);break;case a.submitPoll:this.submitPoll(e);break;case a.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;Dg(e,e.step,n);break;case a.dismissGuide:P.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return Fg();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return P.dismissResourceCenter(t);Fg(e,e.step)}(e);break;case a.showElements:this.setElementDisplay(e,"block"),e.srcElement&&cv(e.srcElement),cl((i=oc(e.step.domJson)).props.id,t),ll(i.props.id,t),M.flexAllThings(i.props.id,e.step),dl(i.props.id,t);break;case a.hideElements:this.setElementDisplay(e,"none"),cl((i=oc(e.step.domJson)).props.id,t),ll(i.props.id,t),M.flexAllThings(i.props.id,e.step),dl(i.props.id,t);break;case a.slideElement:this.setElementAnimation(e);break;case a.showGuide:n=_.find(e.params,function(e){return"reason"===e.name});mm(e.params[0].value,n&&n.value);break;case a.launchGuide:this.launchGuide(e);break;case a.renderResourceCenterModule:var i=s(e);P.replaceResourceCenterContent(e.params[0].value,i);break;case a.returnToResourceCenterHome:n=P.findResourceCenterHomeView(Qu());if(!n)return;P.attemptToPreserveIntegrationIframes(e),P.replaceResourceCenterContent(n.id,e.params);break;case a.openLink:this.openLink(e);break;case a.searchGuides:this.searchGuides(e);break;case a.submitPollAndGoToStep:this.submitPoll(e),Ug(e);break;case a.confirmation:this.confirmGuide(e);break;case a.conditionalSplit:this.handleConditionalSplit(e)}var r=lv.prototype.registeredActions,r=r&&r[e.action];"function"==typeof r&&r(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(_.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=_.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(_.compact(n)):C.info("[Agent] Error! Trying to submit a poll response but step does not have response function!");t!==a.submitPollAndGoToStep&&i.advance()},this.setElementDisplay=function(e,t){var n=e.step,e=k(_.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);_.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=k(_.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=_.find(e.params,function(e){return"transition"===e.name}).value,e=_.find(e.params,function(e){return"left"===e.name}).value;t.style.transition=n,t.style.left=e},this.openLink=function(e){var t=_.find(e.params,function(e){return"url"===e.name}).value,e=_.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&Ja()&&(e="_top");window.open(t,e)},this.goToStep=Ug,this.searchGuides=function(t){var e="",n=t.srcElement.value,t=k("#pendo-resource-center-container"),i=t.find('[id^="pendo-list-item-"]'),r=t.find('[id^="pendo-results-count-container"]'),t=t.find('[id^="pendo-no-matches-container"]'),o=[],a=!0,s=0;if(i)for(var u in i){var d;u&&i[u]&&(d=!1,k(i[u]).text()&&(-1!==k(i[u]).text().toLowerCase().indexOf(n.toLowerCase())?(k(i[u]).css({display:"list-item"}),d=!(a=!1)):k(i[u]).css({display:"none"})),_.isFunction(i[u].getAttribute)&&(e=i[u].getAttribute("data-_pendo-text-list-item-1").split(","),_.forEach(e,function(e){_.contains(o,e)||o.push(e)})),this.searchAllTerms(o,e,n)&&i[u]&&(k(i[u]).css({display:"list-item"}),d=!(a=!1)),e="",d)&&s++}a?k(t[0]).css({display:"block"}):k(t[0]).css({display:"none"});if(r&&r.length&&(r[0].innerHTML="",n)){let e="";0===s?(e=t[0].innerText,this.debounceAnnounceResults(r[0],e)):(t=1===s?"data-pendo-aria-label-alert-singular":"data-pendo-aria-label-alert-plural",(e=r[0].getAttribute(t))&&(e=e.replace("{RESULT_COUNT}",s),this.debounceAnnounceResults(r[0],e)))}},this.searchAllTerms=function(t,e,n){return!!e&&e.some(function(e){return _.contains(t,e)&&e===n})},this.confirmGuide=function(e){var e=e.step,t=function(e){if(e.confirmationElementPathRule)return u(e.confirmationElementPathRule)[0]}(e);e.advance(),t?t.click():C.critical("pendo.io confirmationElement exception",{stepId:e.id,confirmationElementPathRule:e.confirmationElementPathRule,error:new Error("confirmation action called but confirmationElement was not found")})},this.getTransitionParams=s,this.launchGuide=function(e){var t=!_.get(e,"params.2.value.doNotDismiss");t&&Fg(e,e.step);var t=e&&e.params&&e.params[0]&&e.params[0].value,n=e&&e.params&&e.params[1]&&e.params[1].value;{var i,r;t&&n?(n=N(e.params[0].value),i=e.params[1].value,r=(r=_.find(n.steps,function(e){return e.id===i}))||n.steps[0],Yg(n),r.show("api")):t&&mm(e.params[0].value)}},this.handleConditionalSplit=function(t){var n,e=_.find(t.params,function(e){return"conditionType"===e.name}),i=_.find(t.params,function(e){return"config"===e.name}),r=_.find(t.params,function(e){return"cases"===e.name});e&&i&&r&&(e=e.value,i=i.value,r=r.value,n=function(e,t){{if("elementExists"===e)try{var n=E.Sizzle(t.elementSelector);return n&&0<n.length}catch(i){}return!1}}(e,i),y.trigger("appUsage",{type:"conditionalSplitResult",elementId:t.srcElement.id,conditionResult:n}),e=_.find(r,function(e){return e.value===n}),0<(null==(i=null==e?void 0:e.actions)?void 0:i.length)?_.forEach(e.actions,function(e){e={action:e.action,params:e.parameters,step:t.step,srcElement:t.srcElement};o.eventHandler(e)}):C.warn("No matching case found for condition result:",n))},this.debounceAnnounceResults=_.debounce((e,t)=>{e.innerHTML=t},300),{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",confirmation:"confirmation",conditionalSplit:"conditionalSplit"});function s(e){return e.params.find(e=>"transitionDirection"===e.name)?[{name:"transitionCss",type:"string",value:"left 200ms"},{name:"transitionDirection",type:"string",value:"right"}]:[]}return this},pv=(lv.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&((lv.prototype.registeredActions=lv.prototype.registeredActions?lv.prototype.registeredActions:{})[e]=t)},function(){var d="guideActivity",c=function(){return(new Date).getTime()-bg},l=_.isObject,o=_.findWhere;const p=[];var h=[];return{type:d,handler(e){var t=e.data[0];if(t&&"conditionalSplitResult"===t.type){var n=t;const{conditionResult:a,elementId:s}=n,u=_.findIndex(h,e=>e.props.ui_element_id===s);-1!==u&&(n=h.splice(u,1)[0],(i=n.props.ui_element_actions[0]).condition_result=a,r=(r=i.cases)[a],n.props.ui_element_actions=n.props.ui_element_actions.concat(r),delete i.cases,cm(n))}else{var i,r=e.data[1];i=r,l(n=t)&&function(e){return e&&"click"===e.type}(i)&&function o(e){if(_.isString(e.id)&&0===e.id.indexOf("pendo-base"))return!0;if(l(e.parentElem))return o(e.parentElem);return!1}(n)&&(function(e){return f(e)}(n)||function(e){return m(e)}(n)||function(e){return g(e)}(n))&&(e=function(e){var t=function(e){for(var t of p){t=t(e);if(t)return t}return dv()}(e);if(!t)return;if(function(e){e=e.guide.activeModule;return e&&e.attributes&&e.attributes.resourceCenter&&"AnnouncementsModule"===e.attributes.resourceCenter.moduleId}(t)&&!(t=function(e){var t=k("#"+e).closest("[data-pendo-announcement-guide-id]").attr("data-pendo-announcement-guide-id"),e=_.find(Qu(),function(e){return e.id===t});return e?{guide:e,step:e.steps[0]}:undefined}(e.id)))return;if(!t.step||!t.step.domJson)return;var e=m(e)||f(e)||g(e)||{type:e.tag,id:e.id},n=function a(e,t){if(t.props&&t.props.id&&t.props.id===e)return t;if(t.children!==undefined)for(var n=0;n<t.children.length;n++){var i=a(e,t.children[n]);if(i!==undefined)return i}return undefined}(e.id,t.step.domJson);if(!n)return;let i=e.id;n=function(e,t){if(e!==undefined){if("a"===e.type)return[{action:"openLink",url:Zr(e.props.href),target:e.props.target}];if(e.actions!==undefined)return _.map(e.actions,v);if("pendo_task_list_item"===t.templateName&&_.isArray(e.templateChildren)&&e.templateChildren[t.templateChildIndex])return[{action:"showGuide",guideId:e.templateChildren[t.templateChildIndex].id}]}return[]}(n,e);var[r={}]=n,{action:r,guideId:o}=r;"showGuide"===r&&o&&(i+="-"+o);return sm({type:d,visitorId:b(),ui_element_id:i,ui_element_type:e.type,ui_element_actions:n,guideId:t.guide.id,stepId:t.step.id,duration:c(),language:t.guide.language})}(t))&&("conditionalSplit"===_.get(e,["props","ui_element_actions",0,"action"])?h.push(e):cm(e))}},registerGuideResolver(e){p.push(e)},removeGuideResolver(e){e=p.indexOf(e);-1!==e&&p.splice(e,1)}};function f(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-button/.test(e.id))?{type:e.tag,id:e.id}:i(e)||!l(e.parentElem)?null:f(e.parentElem)}function g(e){var t,n;if("LI"===e.tag&&/pendo-task-list-item/.test(e.cls))return t=(n=e.id.split("-")).pop(),n=n.join("-"),{type:e.tag,id:n,templateName:"pendo_task_list_item",templateChildIndex:t};return i(e)||!l(e.parentElem)?null:g(e.parentElem)}function m(e){return"A"===e.tag?{type:e.tag,id:e.id}:i(e)||!l(e.parentElem)?null:m(e.parentElem)}function v(e){switch(e.action){case"automation":var t=o(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=o(e.parameters,{name:"url"}),n=o(e.parameters,{name:"target"});return{action:e.action,url:Zr(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=o(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=o(e.parameters,{name:"snooze_duration"}),t=o(e.parameters,{name:"time_unit"});return{action:e.action,duration:n.value,timeUnit:t.value};case"showGuide":case"launchGuide":n=e.parameters[0],t=e.parameters[1]||{};return{action:e.action,guideId:n.value,stepId:t.value};case"conditionalSplit":var n=o(e.parameters,{name:"name"}),t=o(e.parameters,{name:"conditionType"}),i=o(e.parameters,{name:"config"}),r=o(e.parameters,{name:"cases"}),r=_.reduce(r.value,function(e,t){return e[t.value]=_.map(t.actions,function(e){var t=v(e);return t.source=e.source,t}),e},{});return{action:e.action,name:n.value,condition_type:t.value,element_selector:i.value.elementSelector,feature_id:i.value.featureId,cases:r};case"advanceGuide":case"previousStep":case"submitPoll":case"dismissGuide":case"confirmation":return{action:e.action};default:return{}}}function i(e){return _.isString(e.id)&&0===e.id.indexOf("pendo-guide-container")}}()),hv=[],fv=!(lv.deregisterAction=function(e){e&&"string"==typeof e&&delete(lv.prototype.registeredActions=lv.prototype.registeredActions?lv.prototype.registeredActions:{})[e]});const gv={agent:{getJwtInfoCopy:ys.get,treatAsAdoptPartner:uo},agentStorage:h,analytics:{ptm:()=>zs,collectEvent:Ts},attachEvent:l,ConfigReader:f,Events:y,EventTracer:ln,EventRouter:lv,Extensions:{API:{addTopic:function(e,t){var n=Vl[e]||{};_.extend(n,t),Vl[e]=n}}},frames:{getChannel:()=>qm},getAssetUrl:so,getEventable:()=>mn.call({}),GlobalRuntime:{addGlobalScript:rc.addGlobalScript,removeGlobalScript:rc.removeGlobalScript},GuideActivity:pv,GuideLoop:{addUpdatePhase:_h,removeUpdatePhase:Ch},guides:{addProcessor:function(e){return gg.push(e),_.partial(uv,e)},removeProcessor:uv,registerDisplayableGuides:function(e,t){_.isArray(t)&&(Xu[e]=t)},removeDisplayableGuides:function(e){delete Xu[e]}},hosts:{SERVER:We},NodeSerializer:Nu,q:m,sessionStorage:h.getSession(),sizeElements:sl,store:g,Tombstone:nd,transmit:{buildBaseDataUrl:Co,fetchKeepalive:Ro,sendBeacon:Oo},log:C,util:{trim:Qe,base64EncodeString:ot,parseUrl:Ca,addInlineStyles:_.partial(uc,f),getNow:v},constants:{URL_MAX_LENGTH:2e3}};function mv(t){_.find(hv,function(e){return e.name===t.name})?C.warn(`Plugin with name ${t.name} already exists. Skipping registration.`):(hv.push(t),fv&&t.initialize(E,gv))}function vv(){_.each(hv,function(e){_.isFunction(e.teardown)&&e.teardown(E,gv)}),fv=!1}Xl.registerExtensionsByUse("plugin",function(e){return _.extend(e.uri,_.pick(e,"name")),mv(e.uri),e},function(e){return!!e.uri.initialize&&!!e.uri.teardown});var yv=!1;function bv(){if(!yv){const e=function(e){var t,n,e=e.data[0];n=(t=e).old_visitor_id,t=t.visitor_id,(On(n)?Rn(t)?On(t)?(C.info("Visitor is anonymous: "+t),1):Pn(t)?(C.info("Visitor id is the default: "+t),1):(C.info("Re-mapping visitor identity from "+n+" to "+t),0):(C.info("Not valid visitor id: "+t),1):(C.info("Visitor is already identified: "+n),1))&&(n=(t=e).old_account_id,t=t.account_id,Rn(t)?n===t||(C.info("Re-mapping account identity from "+n+" to "+t),0):(C.info("Not valid account id: "+t),1))||(Ts("identify",e),ls())},t=function(e){var t;jl()||({options:e,hashChanged:t}=e.data[0],t&&(Ts("meta",e),ls()))};return y.identify.on(e),y.metadata.on(t),y.identify.on(Wl),yv=!0,function(){y.identify.off(e),y.metadata.off(t),y.identify.off(Wl),yv=!1}}}wv="guideActivity",Sv=function(){return(new Date).getTime()-bg},Ev=_.isObject;var wv,Sv,Ev,Iv={type:wv,handler(e){var t,n=e.data[0],e=e.data[1];e=e,Ev(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(Ev(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return xv(e)}(t)||function(e){return _v(e)}(t)||function(e){return Cv(e)}(t))&&(e=function(e){var t=P.getResourceCenter();if(t){var n=t.activeModule,i=xv(e);if(i?(i={elementId:i.id},/^pendo-close-guide/.test(i.id)?i.actions=[{action:"dismissGuide"}]:/^pendo-left-caret/.test(i.id)&&(i.actions=[{action:"showGuide",guideId:t.id}])):i=_v(e)||Cv(e),i)return i.guideId||(i.guideId=(n||t).id),i.stepId||(i.stepId=(n||t).steps[0].id),i.actions||(i.actions=[{action:"showGuide",guideId:i.elementId}]),i.language||(i.language=(n||t).language),sm({type:wv,visitorId:b(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,duration:Sv(),language:i.language})}}(n))&&cm(e)}};function _v(e){return-1!==e.cls.split(" ").indexOf("_pendo-resource-center-module-list-item")?{type:"BUTTON",elementId:k("#"+e.id).closest("[data-pendo-module-guide-id]").attr("data-pendo-module-guide-id")}:"pendo-resource-center-container"!==e.id&&Ev(e.parentElem)?_v(e.parentElem):null}function Cv(e){var t=e.cls.split(" ");if(-1===t.indexOf("_pendo-resource-center-guidelist-module-listed-guide")&&-1===t.indexOf("_pendo-resource-center-onboarding-module-listed-guide"))return"pendo-resource-center-container"!==e.id&&Ev(e.parentElem)?Cv(e.parentElem):null;t=P.getResourceCenter();if(t){e=e.id.split("-").pop(),t=t.activeModule;if(t&&t.attributes&&t.attributes.resourceCenter)return{type:"BUTTON",elementId:t.attributes.resourceCenter.children[e]}}return null}function xv(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-left-caret/.test(e.id))?{type:e.tag,id:e.id}:"pendo-guide-container"!==e.id&&Ev(e.parentElem)?xv(e.parentElem):null}const Tv=e=>(e=e||E).doesExist(e.apiKey);class kv extends wt{constructor(){super(),this.cache=new Set,this.foundShadowRoots=!1,this.stoppedSearchEarly=!1}updateCache(){this.cache.forEach(e=>{Qo(e)||(this.cache["delete"](e),this.dispatchEvent({type:"detachShadow",shadowRoot:e}))})}patchAttachShadow(e){const t=e.prototype.attachShadow,n=this;return e.prototype.attachShadow=function(e){e=t.call(this,e);return this.shadowRoot&&n.triggerAttachShadow(this.shadowRoot),e},e.prototype.attachShadow.toString=function(){return t.toString()},()=>{e.prototype.attachShadow=t}}initialize(){this.unpatchAttachShadow=this.patchAttachShadow(Element),this.findShadowRoots(document,5e3,e=>this.triggerAttachShadow(e))}triggerAttachShadow(e){this.cache.add(e),this.dispatchEvent({type:"attachShadow",shadowRoot:e})}findShadowRoots(r,o=5e3,a){if(_.isFunction(r.createNodeIterator)){let t=0,n=[Xo(r)],i;function s(e){do{if(!(e=e||r.createNodeIterator(n.pop(),NodeFilter.SHOW_ELEMENT))||!e.nextNode)break;for(;(i=e.nextNode())&&(t++,i&&i.shadowRoot&&(a(i.shadowRoot),n.push(i.shadowRoot),this.foundShadowRoots=!0),t%o!=0););}while(!i&&(e=null,n.length));i&&this.foundShadowRoots&&(this.findTimeout=Ut(()=>{this.findTimeout=null,s.call(this,e)},50)),t!==o||this.foundShadowRoots||(this.stoppedSearchEarly=!0)}s.call(this)}}teardown(){this.cache.clear(),_.isFunction(this.unpatchAttachShadow)&&(this.unpatchAttachShadow(),this.unpatchAttachShadow=null),this.findTimeout&&(clearTimeout(this.findTimeout),this.findTimeout=null)}}class Av extends wt{constructor(e=lt("MutationObserver")){super(),this.ObserverClass=e,this.observing=!1,this.observers=new Map,this.triggerMutation=this.dispatchMutationEvent,this.shadowDom=new kv,this.shadowDom.addEventListener("attachShadow",_.bind(this.handleAttachShadow,this)),this.shadowDom.addEventListener("detachShadow",_.bind(this.handleDetachShadow,this)),this.addEventListener("mutation",()=>{null!=this.timeout&&clearTimeout(this.timeout),this.timeout=Ut(()=>{this.shadowDom.updateCache(),this.timeout=null},0)})}initialize(e,t){t=t.ConfigReader;t.get("preferMutationObserver")&&e.sniffer.MutationObserver&&(this.observeShadowRoots=t.get("observeShadowRoots"),this.startObserver(document.documentElement),this.observing=!0,this.observeShadowRoots)&&this.shadowDom.initialize()}startObserver(e){var t=new this.ObserverClass(e=>this.triggerMutation(e));this.observers.set(e,t),t.observe(e,{subtree:!0,attributes:!0,childList:!0,characterData:!0})}teardown(){this.observers.clear(),this.shadowDom.teardown(),null!=this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispatchMutationEvent(e){this.dispatchEvent({type:"mutation",mutation:e})}triggerMutationOnce(e){this.triggerMutation=_.noop,queueMicrotask(()=>{this.dispatchMutationEvent(e),this.triggerMutation=this.triggerMutationOnce})}handleAttachShadow({shadowRoot:e}){this.triggerMutation=this.triggerMutationOnce,this.startObserver(e)}handleDetachShadow({shadowRoot:e}){this.observers["delete"](e)}}var Rv=new Av;let Ov=0;const Nv="initializeImmediately",Mv=[],Lv=$n(function(e){if("complete"===document.readyState||_.get(e,Nv)||f.get(Nv))if(C.info("pendo.initialize called with "+JSON.stringify(e)),E.apiKey)1==Ov++&&C.info(["pendo.initialize only needs to be called once",ct()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join(""));else{if(e=e||{},_.isEmpty(ys.get())&&(o=ys.getJwtOptions(e,"initialize"))&&(ys.set(_.pick(e,"jwt","signingKeyName")),_.extend(e,o,{forceAnonymous:!0})),_.isString(e))return Rr.get(e).then(e=>(le(d=e.data),Lv()));try{g.dispatch("location/init",e.location||{})}catch(a){C.critical("Location API Exception",a)}f.setLocalConfig(e),oo(),E.HOST=eo;var t,n,i,r,o=f.get("cookieDomain");if(o&&(o=o,i=location.host,o?_.isString(o)&&(i=i.replace(/:\d+$/,""),o=o.replace(/^\./,""),t=new RegExp("\\."+It(o)+"$"),n=new RegExp("^"+It(o)+"$"),t.test(i)||n.test(i))&&(Ot="."+o):Ot=o),ff.discoverKeys(e),ff.getApiKey()){g.commit("metadata/setMetadata",{selfHosted:zl()}),e.logStackTraces&&(E.logStackTraces=e.logStackTraces),f.get("preferBroadcastChannel")&&og.secure(!0);const s=f.get("analytics.localStorageUnload");Es.read(h),Mv.push((t={localStorageUnload:s},Gs=as.events=Xa,Bs=as.trackEvents=Ya,qs=as.agenticEvents=Qa,zs=pu(_.extend({cache:Gs,silos:as.silos,apiKey:xo,beacon:"ptm",allowPost:!0},t)),js=pu(_.extend({cache:Bs,silos:as.trackEventSilos,apiKey:xo,beacon:"ptm",allowPost:!0,params:{type:"track"}},t)),Hs=pu(_.extend({cache:qs,silos:as.agenticEventSilos,apiKey:xo,beacon:"agentic","class":"agentic",allowPost:!0},t)),us(zs),us(js),us(Hs),()=>{fs(),ds(zs),ds(js),ds(Hs),zs=js=Hs=undefined})),Rv.initialize(E,gv),Mv.push(()=>Rv.teardown()),_o&&(h.registry.addLocal(xn),h.registry.addLocal(Tn),h.registry.addLocal(kn),h.registry.addLocal(Pl),E.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,Mv.push(Td(y)),[{events:i=[]}]=[e],_.each(i,(e,t)=>{Ad[t]&&Ad[t](e)}),Mv.push(Km(Rv)),Mv.push(bv()),Mv.push(ju()),Mv.push((_.each(hv,function(e){e.initialize(E,gv)}),fv=!0,vv)),Mv.push((n=e,h.registry.addLocal(zh),h.registry.addLocal(jh),_.find([_.partial(bf.launchOnToken,window.location),_.partial(Hh,window),_.partial(bf.localStorageNavigation,n)],e=>e()),n.enableDesignerKeyboardShortcut||!f.get("disableDesignerKeyboardShortcut")?Df.listen():()=>{})),y.appUsage.on(pv.handler),y.appUsage.on(Iv.handler),Mv.push(ps(es)),Mv.push(_s.initialize())),y.appHidden.on(()=>{cs(0,{hidden:!0})}),y.appUnloaded.on(()=>{cs(0,{unload:!0}),s&&Es.write(h)}),Nn()||Mn(),E.updateOptions(e),e.visitorId&&e.visitorId!=Ln&&E.identify(e.visitorId),Mv.push(A.watch(function(){E.pageLoad()})),_o&&y.ready.trigger(),hu(A.get()),Ov++,window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&((r=og.targetOrigin())?window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},r):C.warn("Unable to announce frame to designer plugin, targetOrigin is not set. Check if broadcastChannel is enabled and cross origin frames are allowed.")),Dv()}else C.debug("API key is not set, Pendo will not initialize.")}else ae(E,"initialize",arguments)});function Pv(e){return!_.isArray(e)||_.isEmpty(e)}function Fv(e){if(!Pv(e))return _.find(e,e=>"initialize"===e[0])}function Dv(i){var e;return!Pv((i=i||E)._q)&&(e=!!Fv(i._q),Tv(i)||e)?(e=i._q.splice(0,i._q.length),_.reduce(e,(e,t)=>{if(!_.isArray(t))return e;const n=i[t.shift()];return _.isFunction(n)?e.then(()=>n.apply(i,t)):e},m.resolve()).then(Dv)):m.resolve()}function Uv(){Tv()?C.info("already running"):(window.pendo_options&&Lv(window.pendo_options),Dv())}function Gv(){y.appHidden.trigger(),y.appUnloaded.trigger(),_.each(Mv,function(e){e()}),hu.reset(),Mv.length=0,og.close(),mn.clear(y),mn.clear(Ad),delete E.apiKey,Ov=0}var Bv,zv,jv={getActiveGuide:dv,smartNextStep:function(e){var t,n=dv();n&&(t=n.guide.steps[n.stepIndex+1],Ut(function(){var e=u(t.elementPathRule);0!==e.length&&_.some(e,ha)?Gg(n.step):Gg(t)},e=e||0))},smartFirstStep:function(){k("._pendo-guide_").css("display:none;");var t=pm(),e=dv().guide.steps,n=_.filter(_.rest(e),function(e){return!!e.pageId}),n=_.indexOf(e,_.find(n,function(e){return fm(e.regexUrlRule,t)}));C.info("startingPoint is "+n),-1==n?k("._pendo-guide_").css("display:block;"):(n=e[Math.max(0,n-1)],C.info("found starting step to be "+n.id),Gg(n))},advanceOn:function(e,t){var n=dv(),i=k(t=t||n.step.elementPathRule)[0],r=function(){Gg(),Vu(i,e,r,!0)};l(i,e,r,!0)},renderStepPosition:function(e,t,n){if(t)n||(i=[].concat(t.steps).reverse(),n=_.findWhere(i,{seenState:"active"}));else{var i=dv();if(!i)return;t=i.guide,n=i.step}return(e=_.template(e=e||"Step <%= currPos %> of <%= total %>"))({currPos:t.getPositionOfStep(n),total:t.getTotalSteps()})}},U={renderGuideFromJSON:function(e,n,t,i){i=i||{};var r=n.getGuide(),o=oc(e),a=_.get(r,"attributes.resourceCenter");a&&(P.revertRtlChanges(r,e.props),e=P.updatePseudoStyleSelectors(e));var s=a&&P.isFullyCustom(r),u="AnnouncementsModule"===_.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.containerId=o&&o.props&&o.props.id,n.element=md(n,i.document),U.buildNodeFromJSON(e,n,t)),t=(n.guideElement=o).find("#"+n.containerId),d="data-vertical-alignment",c="Relative to Element"===t.attr(d);c&&!a&&k(n.guideElement).css({overflow:"hidden",height:"0",width:"0"});t.css({visibility:"hidden"}),o.css({visibility:"hidden"});var l=_.get(r,"attributes.embedConfig",null);d=Jf.buildWatermark({appId:r.appId,targetAccount:r.targetAccount,isTraining:r.isTraining,isBottomAligned:"Bottom Aligned"===t.attr(d),isEmbedded:!!l},U.buildNodeFromJSON);d&&t.append(d);d=n&&n.attributes&&n.attributes.imgCount,i=fd(i.document);{var p,h;l?(f=o[0],p=f.querySelector("#"+(h="pendo-guide-container")),{selector:p,method:h}=(p&&(p.id=h+"-"+n.id,f.id="pendo-base-"+n.id),l),i=k(p)[0],"replace"===h&&i?(i.innerHTML="",o.appendTo(i)):"prepend"===h?o.prependTo(i):o.appendTo(i)):o.appendTo(i)}(function(e,t,n){t=k.getRootNode(t),e=k.getRootNode(e);var i;e!==t&&(e!==document?e.hasOwnProperty("wrappedJSObject")?(i=e.wrappedJSObject.adoptedStyleSheets,t.wrappedJSObject.adoptedStyleSheets.push(...i)):(i=e.adoptedStyleSheets,t.adoptedStyleSheets.push(...i)):(n=k(".pendo-style-"+n,e)).length&&(n.remove(),n.appendTo(t)))})(fd(),o[0],n.id),sl(o),c&&Gc.patchGuideContainerWidthForResponsiveTooltips(n,t[0],e);s||u||(U.recalculateGuideWidth(n.containerId,n.guideElement),U.adjustGuideContentWidth(n.containerId,n.guideElement));d||a||U.flexAllThings(n.containerId,n);s||U.recalculateGuideHeight(n.containerId,n.guideElement);c?n.attributes.calculatedType="tooltip":Gc.attachBBAdvanceActions(n);c&&!d&&Gc.positionStepForTooltip(n,e,t[0]);{var f;a&&(P.showHomeViewOrEmptyState(r),f=[],u?f=[r.attributes.resourceCenter]:U.flexAllThings(n.containerId,n),f.length)&&_.forEach(f,function(e){e=_.get(e,"children",[]);_.forEach(e,function(e){var t;e&&(t=e.steps[0],_.isUndefined(t.attributes.imgCount))&&(t=_.get(t,"id",n.id),e=_.get(e,"id",r.id),t=k("#pendo-g-"+t).length?t:e,U.flexAllThings("pendo-g-"+t,n))})})}{var g;d?(g=m.defer(),o.rendered=g.promise,t.on("imagesLoaded",function(){g.resolve()})):(t.css({visibility:"visible"}),o.rendered=m.resolve())}o.css({visibility:"visible"}),n.elements.push(n.guideElement[0]),E.designer||(_.get(n,"attributes.isAutoFocus")&&(U.autofocusStep(n,t),U.trapFocusStep(n,t),n.hiddenElements=U.addAriaHiddenOutsideGuide(o[0])),a&&(U.attachRCFocusHandlers(),r.skipResourceCenterHomeView?(l=r.activeModule.steps[0],U.autofocusStep(l,l.guideElement)):U.autofocusStep(n,t)));return k(".pendo-video-wrapper",o).each(function(t){k("iframe",t).each(function(e){t.setAttribute("data-pendo-video-loading",""),U.addVideoLoadListener(t,e)})}),o},autofocusStep:function(e,o){var t="autofocus for guide id: "+e.getGuide().id+" step id: "+e.id+" ",n=function(e){var t,n;return!!e&&(t=Io(t=e),n=qo(),_.extend(n,{top:0,left:0,bottom:n.height,right:n.width}),ta(n,t)||ga(e),e.focus(),e===k.getRootNode(e).activeElement)},i={maxRetries:100,delay:50,exponentialBackoff:!1};ft(function(){var e,t,n,i,r=k(o).find("#pendo-guide-container");return(r=r[0]||r)&&ha(r)&&(e=r,t=_.contains(["A","INPUT","LABEL","SELECT","TEXTAREA","BUTTON","FIELDSET","LEGEND","DATALIST","OUTPUT","OPTION","OPTGROUP"],e.nodeName),n=!!e.tabIndex,i=!e.hidden,e=!e.disabled,t||n)&&i&&e?r:null},i,function(e){ft(function(){return n(e)},i,function(){},function(){C.warn(t+"#pendo-guide-container is available on page but could not capture focus")})},function(){C.warn(t+"#pendo-guide-container did not render or become visible in time to focus")})},trapFocusStep:function(e,t){!function(e){var o,a,s,t,u,d,n,c=e[0];c&&(t=["a[href]:not([disabled])","button:not([disabled])","textarea:not([disabled])",'input[type="text"]:not([disabled])','input[type="radio"]:not([disabled])','input[type="checkbox"]:not([disabled])',"select:not([disabled])","[tabindex]","iframe"].join(", "),(o=_.toArray(e.find(t))).length)&&(a=o[0],s=o[o.length-1],t=Vv(e),u=t[0],d=t[1],n=function(e){var t,n,i=Hv(e),r=e.shiftKey;i&&(t=(i=k.getRootNode(c).activeElement)===c,n=document.activeElement===document.body,r?(i===u||t||n)&&(Wv(o,s).focus(),e.preventDefault()):(t||i===d||n)&&(Wv(o,a).focus(),e.preventDefault()))},l(document,"keyup",n),l(document,"keydown",n),y.one("unmounted",()=>{Vu(document,"keyup",n),Vu(document,"keydown",n)}))}(t.find("#pendo-guide-container"))},attachRCFocusHandlers:function(){const s=P.getResourceCenter(),u=P.getResourceCenterContainer();if("dom"===s.launchMethod&&u){let e=k(s.attributes.activation.selector)[0];if(e){const[d,c]=Vv(k(u));var t=function(e){var t=Hv(e),n=e.shiftKey;if(t){var t=k.getRootNode(u).activeElement,i=k(s.attributes.activation.selector)[0];if(i){var r=t===d,t=t===c;const a=k(ca);function o(t){return Object.values(a).findIndex(e=>e===t)}n?r?(i.focus(),e.preventDefault()):t&&qv(0===(n=o(d))?a.length-1:n-1,a,e):t?qv(o(i)+1,a,e):r&&qv((n=o(c))>=a.length-1?0:n+1,a,e)}}},n=function(e){var t=Hv(e),n=e.shiftKey;t&&!n&&qv(0,k('[id^="pendo-g-"]').find(ca),e)},i=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=d&&t&&qv((n=k('[id^="pendo-g-"]').find(ca)).length-1,n,e)};l(document,"keyup",t),l(document,"keydown",t),l(e,"keydown",n),l(e,"focus",i),y.one("unmounted",()=>{Vu(document,"keyup",t),Vu(document,"keydown",t),Vu(e,"keydown",n),Vu(e,"focus",i)})}}},addAriaHiddenOutsideGuide:function sS(e,n=[]){if(!e||e===Xo())return n;const t=Yo(e);_.each(t,e=>{if(-1===n.indexOf(e)&&"true"!==e.getAttribute("aria-hidden")){const t=e.tagName.toLowerCase();"script"!==t&&"style"!==t&&(e.setAttribute("aria-hidden","true"),n.push(e))}});e.parentNode&&sS(e.parentNode,n);return n},renderResourceCenterModule:P.renderResourceCenterModule,buildNodeFromJSON:kl,attachImgLoadHandlers:Al,recalculateGuideHeightOnImgLoad:Rl,buildStyleString:function(e){var n="";return _.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:Nl,bindActionToNode:Ol,recalculateGuideHeight:dl,recalculateGuideWidth:cl,adjustGuideContentWidth:ll,findDomBlockInDomJson:ac,isElementHiddenInGuide:M.isElementHiddenInGuide,positionStepForTooltip:Gc.positionStepForTooltip,flexAllThings:M.flexAllThings,flexElement:M.flexElement,findTopLevelContainer:function(t){for(var e=["pendo-base","pendo-resource-center-container"],n=0;n<20;n++){if(_.find(e,function(e){return t.id===e}))return t;if(t===document.body)return document.body;t.parentNode&&(t=t.parentNode)}return document.body},updateBackdrop:Rc,buildNodesFromJSON:Cl,findGuideContainerJSON:oc,maintainAspectRatios:M.maintainAspectRatios,sizeElement:ul,sizeElements:sl,getAllowedAttributes:Tl,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:Gc.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:cv,addVideoLoadListener:function(e,t){l(t,"load",function(){e.removeAttribute("data-pendo-video-loading")})}};function Hv(e){return"Tab"===e.key||9===e.keyCode}function qv(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function Wv(e,t){let n;if("radio"===t.getAttribute("type")){const i=t.getAttribute("data-pendo-poll-id");n=_.find(e,function(e){var t=e.getAttribute("data-pendo-poll-id");return i===t&&e.checked})}return n||t}function Vv(e){var t={margin:0,padding:0,outline:"none",border:"none","box-shadow":"none",shadow:"none"},t={type:"style",props:{type:"text/css",scoped:"scoped",id:"pendo-focus-bumper-styles"+Date.now()},css:[{selector:".pendo-start-focus-bumper",styles:_.extend({},t,{tabIndex:0})},{selector:".pendo-start-focus-bumper:hover",styles:t},{selector:".pendo-start-focus-bumper:focus",styles:t},{selector:".pendo-end-focus-bumper",styles:_.extend({},t,{tabIndex:0})},{selector:".pendo-end-focus-bumper:hover",styles:t},{selector:".pendo-end-focus-bumper:focus",styles:t}]},t=U.buildNodeFromJSON(t),t=(e.prepend(t),document.createElement("div")),n=(t.setAttribute("id","pendo-start-focus-bumper-"+Date.now()),t.setAttribute("class","pendo-start-focus-bumper"),t.setAttribute("tabIndex",0),e.prepend(t),document.createElement("div"));return n.setAttribute("id","pendo-end-focus-bumper-"+Date.now()),n.setAttribute("class","pendo-end-focus-bumper"),n.setAttribute("tabIndex",0),e.append(n),[t,n]}var Jv=100,Kv=[],$v=[];const Zv="log-enabled",Xv="active-contexts";var Yv=function(){return ty()?zv?"logging already enabled":(h.write(Zv,"true"),zv=!0,"logging enabled"):"logging unavailable"},Qv=function(){return zv?(h.write(Zv,"false"),zv=!1,"logging disabled"):"logging already disabled"};var ey=function(e,t){return _.compact([].concat(e,t))},ty=function(e){return e=e||"log","undefined"!=typeof console&&_.isFunction(console[e])},ny=function(e){return e=ey(e),0<Bv.length?0<_.intersection(Bv,e).length:!!zv||!!Ah()},iy=function(e,...t){C.info(e,{contexts:t})};function ry(e){var t;e.level!==vt.Debug&&e.level!==vt.Info||(t=e.attributes?ey(e.attributes.contexts):[],ty()&&ny(t)&&cy(e.message),ay(Kv,e.message,t))}function oy(...e){ty("error")&&console.error.apply(console,e),ay($v,e.join(" "))}var ay=function(e,t,n){_.contains(n,"debug")||(e.length==Jv&&e.shift(),e.push([t,n]))},sy=function(t){t=ey(t),_.each(_.map(_.filter(Kv,function(e){return 0===t.length||0<_.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){cy(e,"[Pendo-History] ")})},uy=function(){return _.union.apply(_,_.map(Kv,function(e){return e[1]}))},dy=function(e){Bv=ey(e),h.write(Xv,Bv.join(","))},cy=function(e,t){var n;ty()&&(t=t||"[Agent] ",e&&e.length?((n=1e3<e.length?e.length-1e3:0)&&(t+="..."),console.log(t+e.substring(n))):console.log(t+e))};function ly({type:t,name:n,props:i}){if(n&&_.isString(n))if(t&&_.isString(t)){let e=i;_.isObject(i)||(e={__err__:i});i=A.get();Ts(t,e,i,n)}else C.error("Must provide valid type string for event tracking");else C.error("Must provide valid name string for event tracking")}function py(e,t){ly({type:"track",name:e,props:t})}function hy(e,t){ly({type:e,name:"agentic",props:t})}iy.init=function(){var e,t;e=h.read(Xv,!0),Bv=e?e.split(","):[],e=qe,t=h.read(Zv,!0),zv=null!==t?"true"==t:!_.contains(["prod","prod-eu","prod-us1","prod-jp","prod-hsbc","prod-au","prod-gov","rc"],e),C.addEventListener("log",ry),h.registry.addLocal(Zv,{isPlain:!0}),h.registry.addLocal(Xv,{isPlain:!0})},iy.enableLogging=Yv,iy.disableLogging=Qv,iy.getActiveContexts=function(){return Bv},iy.setActiveContexts=dy,iy.showLogHistory=sy,iy.getLoggedContexts=uy;var fy=function fy(r){var o=[];function a(e,t,n,i){r?o.push({type:n,message:t,value:i}):me(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"),E.apiKey||a("error","No Pendo API key configured. Make sure to call pendo.initialize() with a valid Pendo API key.","apiKey");var e=b(),e=(On(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"),Pn(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),qn()),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"),f.get("disableCookies")&&a("warn","Cookies are disabled in Pendo config. Is this expected?","disableCookies"),Hl());if(_.each(["visitor","account","parentAccount"],function(n){var i=t&&t[n],e=_.chain(i).keys().value();0<e.length?(r||console.group(n+" metadata (does this look right?):"),0<(e=_.chain(e).map(function(e){return e.toLowerCase()}).countBy().pick(function(e){return 1<e}).keys().value()).length&&_.each(e,function(e){a("warn","Keys will be lowercased and any duplicates overwritten. Please choose unique key names for:",n+"MetadataConflict",e)}),_.each(_.keys(i),function(e){var t=i[e];_.isObject(t)&&!_.isArray(t)?a("warn",e+" is an object and will be ignored.",n+"Metadata",t):_.isArray(t)&&_.any(t,_.isObject)?a("warn",e+" contains object values. The objects will be ignored.",n+"Metadata",t):a("log",e+":",n+"Metadata",t)}),r||console.groupEnd()):"parentAccount"!==n&&a("warn","No "+n+" metadata found. Learn more about metadata here: http://help.pendo.io/resources/support-library/installation/metadata.html",n+"MetaData")}),r)return o;console.groupEnd()},gy=function(n){var e=[{nativeType:Object.prototype,displayName:"Object | Prototype "},{nativeType:Object,displayName:"Object ",propsToCheck:["create","getOwnPropertyNames"]},{nativeType:Number.prototype,displayName:"Number | Prototype"},{nativeType:String.prototype,displayName:"String | Prototype"},{nativeType:Function.prototype,displayName:"Function | Prototype"},{nativeType:Boolean.prototype,displayName:"Boolean | Prototype"},{nativeType:Array.prototype,displayName:"Array | Prototype"},{nativeType:Date.prototype,displayName:"Date | Prototype"},{nativeType:RegExp.prototype,displayName:"RegExp | Prototype"},{nativeType:JSON,displayName:"JSON ",propsToCheck:["parse","stringify"]},{nativeType:Math,displayName:"Math "},{nativeType:Qt.prototype,displayName:"Promise | Prototype"},{nativeType:window,displayName:"Window ",propsToCheck:["alert","asap","atob","btoa","cancelAnimationFrame","clearImmediate","clearInterval","clearTimeout","close","confirm","getComputedStyle","getSelection","open","postMessage","prompt","requestAnimationFrame","scroll","scrollBy","scrollTo","setImmediate","setInterval","setTimeout","stop","XMLHttpRequest","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent"]}],r=!1,i=(_.each(e,function(e){var n=e.nativeType,i=[],t=e.propsToCheck||Object.getOwnPropertyNames(n);_.each(t,function(e){try{e&&n[e]&&"function"==typeof n[e]&&(n[e].toString().includes("[native code]")||i.push(e))}catch(t){}}),i.length&&(e.nonNativeImplementations=i,r=!0)}),{hasNonNativeMethods:r,implementations:[]});return n||console.group("Native javascript method check:"),r?(n||console.warn("Pendo has detected that your application may be changing native javascript functionality. We suggest consulting an engineer or your CSM to better understand if these changes will negatively impact Pendo's ability to function properly"),_.each(e,function(e){var t;e.nonNativeImplementations&&(t=e.displayName.trim(),n?i.implementations.push({nativeType:t,nonNativeImplementations:e.nonNativeImplementations}):console.warn(t+" | Contains the following non-native implementations:",e.nonNativeImplementations.sort().join(", ")))}),n?i:void console.groupEnd()):n?i:(console.log("Environment uses native javascript implementations"),console.groupEnd())},my=function(e){var t=[];if(_.isNumber(window.frames.length)&&_.isFinite(window.frames.length)&&k("iframe").length+k("frame").length===window.frames.length||t.push("Pendo has detected that window.frames.length has been modified"),window.Event&&window.Event.prototype||t.push("Pendo has detected that window.Event has been modified"),t.length){if(e)return t;console.group("Global variables:"),_.each(t,function(e){console.warn(e)}),console.groupEnd()}},vy=function(e){var t,n=window.location.href,i=[];try{(t=Gr())!==n&&i.push({type:"customizedUrl",msg:"URL has been customized. This will affect data collection, guide requests, and reload tests.",value:t})}catch(o){i.push({method:"error",msg:"Error getting Custom URL",value:o})}try{var r=A.externalizeURL();r!==t&&i.push({type:"sanitizedUrl",msg:"URL has been sanitized. This will affect sending data and guides requests.",value:r})}catch(o){i.push({method:"error",msg:"Error getting Externalized URL",value:o})}if(e)return i;console.group("URL Validation"),console.log("Browser URL:",n),_.each(i,function(e){e.method?console[e.method](e.msg+"\n"+e.value):console.warn(e.msg+"\n"+e.value)}),console.groupEnd()};const yy=e=>{if(0<$v.length){var t=[].concat($v);if(e)return t;console.group("Agent Error History"),_.each(t,(e,t)=>{console.log("Error History ",t,e)}),console.groupEnd()}},by=e=>{t=e;var t,n=_.map(hv,function(e){return e.validate&&!t&&e.validate(E,gv),e.name});if(e)return n;console.group("Active Plugins"),_.each(n,e=>console.log(e)),console.groupEnd()};var wy=function(e){var t={install:fy(e),plugins:by(e),globals:my(e),url:vy(e),errors:yy(e)};if(e)return t.methods=gy(e),t;f.validate(console)},Sy={BuildingBlockGuides:U,BuildingBlockResourceCenter:P,BuildingBlockTemplates:dc,BuildingBlockTooltips:Gc,BuildingBlockSvgs:fc};function Ey(e,t){this.state={duration:e,isStopped:!0,handle:null,cb:t,hasRun:!1,errors:[],options:{}},this.shouldJobRun=function(){return!(!this.state.hasRun&&this.state.options.skipFirstRun||this.state.isStopped)},this.doJob=function(e){if(e)try{this.state.cb(this)}catch(t){this.state.errors.push(t)}},this.afterJobRun=function(){this.state.hasRun=!0,this.state.handle=Ut(this.run,this.state.duration)},this.run=_.compose(_.bind(this.afterJobRun,this),_.bind(this.doJob,this),_.bind(this.shouldJobRun,this))}Ey.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},Ey.prototype.stop=function(){clearTimeout(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var Iy=Rr.urlFor,_y={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace","Clear","AddTo"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};const Cy=["location","attribute","both"],xy="location";function Ty(e,t,n,i){var r;if(_.isObject(e)&&(t=e.action,n=e.data,i=(e=e.attr).target),!_y[e])throw r=_.keys(_y).join(", "),new Error('Invalid URL attribute type: "'+e+'". Valid attributes are: '+r+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!_.contains(_y[e],t))throw r=_y[e].join(", "),new Error('Invalid transform action: "'+t+'" for attribute "'+e+'". Valid actions for "'+e+'" are: '+r+'. Example: {attr: "'+e+'", action: "'+_y[e][0]+'", data: ...}');Cy.indexOf(i)<0&&(i=xy),this.attr=e,this.action=t,this.data=n,this.target=i||xy}function ky(e){return e instanceof Zn||e instanceof HTMLAnchorElement}Ty.prototype.applyTo=function(e){return{AllowOnlyKeys(e,t,n){_.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Zn(Qr(t,null,n,!1))},ExcludeKeys(e,t,n){_.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Zn(Qr(t,null,n,!0))},AddTo(e,t,n){var i;return _.isFunction(n)&&(n=n(e[t],e)),"search"!==t&&"pathname"!==t?e:"pathname"===t?(t=e.pathname,(i=n).startsWith("/")||(i="/"+i),t.endsWith("/")?e.pathname=t+i.substring(1):e.pathname=t+i,e):(t=e.href,new Zn(Iy(t,n)))},Clear(e,t){return"pathname"===t?e.pathname="/":e[t]="",e},Replace(e,t,n){return _.isFunction(n)&&(n=n(e[t],e)),"href"===t?new Zn(n):(e[t]=n,e)},ForceSecure(e,t){return"protocol"===t?e.protocol="https":e.href=e.href.replace(/^(.*:\/\/\/)/,"https://"),e}}[this.action](e,this.attr,this.data)},Ty.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},Ty.fromJSON=function(e){if(e instanceof Ty)return e;if(!_.isObject(e))throw new Error("UrlTransform.fromJSON expects an object. Received: "+typeof e+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!e.attr)throw t=_.keys(_y).join(", "),new Error('UrlTransform is missing required "attr" property. Valid attributes are: '+t+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!e.action)throw t=_y[e.attr]?_y[e.attr].join(", "):"AllowOnlyKeys, ExcludeKeys, AddTo, Replace, Clear",new Error('UrlTransform is missing required "action" property. Valid actions depend on the attribute. For "'+e.attr+'" attribute, valid actions are: '+t+'. Example: {attr: "'+e.attr+'", action: "AddTo", data: {key: "value"}}');if(!_y[e.attr])throw t=_.keys(_y).join(", "),new Error('Invalid attribute "'+e.attr+'". Valid attributes are: '+t+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!_.contains(_y[e.attr],e.action))throw t=_y[e.attr].join(", "),new Error('Invalid action "'+e.action+'" for attribute "'+e.attr+'". Valid actions for "'+e.attr+'" are: '+t+'. Example: {attr: "'+e.attr+'", action: "'+_y[e.attr][0]+'", data: ...}');var t;if(_.contains(["AllowOnlyKeys","ExcludeKeys","AddTo","Replace"],e.action)&&e.data===undefined)throw t="Replace"===e.action?'"newValue"':"AddTo"===e.action?'{key1: "value1"}':'["key1", "key2"]',new Error('Action "'+e.action+'" requires a "data" property. Example: {attr: "'+e.attr+'", action: "'+e.action+'", data: '+t+"}");if(!("AllowOnlyKeys"!==e.action&&"ExcludeKeys"!==e.action||_.isArray(e.data)||_.isFunction(e.data)))throw new Error('Action "'+e.action+'" requires "data" to be an array of strings or a function returning an array of strings. Example: {attr: "'+e.attr+'", action: "'+e.action+'", data: ["key1", "key2"]}');if("AddTo"===e.action)if("pathname"===e.attr){if(!_.isString(e.data)&&!_.isObject(e.data)&&!_.isFunction(e.data))throw new Error('Action "AddTo" for pathname requires "data" to be a string, object, or function. Example: {attr: "pathname", action: "AddTo", data: "additional/segment"}')}else if(!_.isObject(e.data)&&!_.isFunction(e.data))throw new Error('Action "AddTo" requires "data" to be an object or function. Example: {attr: "search", action: "AddTo", data: {key1: "value1", key2: "value2"}}');try{return new Ty(e.attr,e.action,e.data,e.target)}catch(n){if(n.message.includes("Invalid attribute")||n.message.includes("Invalid action")||n.message.includes("requires")||n.message.includes("expects"))throw n;throw new Error("Failed to create UrlTransform: "+n.message+". Transform object: "+JSON.stringify(e))}};Ay=function(t,n,i,r){return[new Ty("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new Ty("href","ForceSecure")]},Di={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:Ry=function(){var e=Ur(),t=A.isElectron()?Ay(A.electronAppName(),A.electronResourcesPath(),A.electronUserDirectory(),A.electronUserHomeDirectory()):[];return Ly([].concat(t),e)}},Oy=new Ey(500,function(e){!Tv()||fu(document)||hu()}),Ny=function(e){if("string"==typeof e)return new Zn(e);if(ky(e))return e;throw new Error("Invalid type from custom URL source. Must be either an URL or a String of a valid url.")},My=function(e){return e||window.location},Ly=function(e,t){return _.reduce(e,function(e,t){return t.applyTo(e)},t)};var Ay,Ry,Oy,Ny,My,Ly,Py,e={state:Di,actions:{init(e,t){e.commit("clearTransforms"),e.commit("clearInternalTransforms"),e.commit("changeUrlSource"),t.transforms&&e.dispatch("addTransforms",t.transforms),t.setUrl&&e.commit("changeUrlSource",t.setUrl)},addTransforms(t,e){_.each(e,function(e){e=Ty.fromJSON(e);"location"!==e.target&&"both"!==e.target||t.commit("addTransform",e),"attribute"!==e.target&&"both"!==e.target||g.dispatch("nodeAttr/addAttrTransform",e)})},addInternalTransforms(t,e){_.each(e,function(e){t.commit("addInternalTransform",Ty.fromJSON(e))})},removeInternalTransforms(t,e){_.each(e,function(e){t.commit("removeInternalTransform",Ty.fromJSON(e))})},startPolling(e){Oy.start()},stopPolling(e){e.state.currentSrcFn===Ry&&Oy.stop()}},mutations:{addTransform(e,t){e.transforms.push(t)},addInternalTransform(e,t){e.internalTransforms.push(t)},removeInternalTransform(e,t){t=_.indexOf(e.internalTransforms,t);0<=t&&e.internalTransforms.splice(t,1)},clearTransforms(e){e.transforms=[],g.commit("nodeAttr/clearURLTransforms")},clearInternalTransforms(e){e.internalTransforms=[]},changeUrlSource(e,t){if(t){if("string"==typeof t)var n=new Zn(t),n=_.partial(_.identity,n);else if(ky(t))n=_.partial(_.identity,t);else{if("function"!=typeof t)throw new Error("URL Source must be either a Function that returns a URL or String that is a valid URL. Or, it may be a static URL or String.");n=t}e.currentSrcFn=n,Oy.start(!Tv())}else e.currentSrcFn=Ry,Oy.stop()}},getters:{url:Py=function(e){try{var t=function(e){return n=e},n=_.reduce([e.currentSrcFn,Ny,t,_.partial(Ly,e.transforms),Ny,t,_.partial(Ly,e.internalTransforms),Ny],function(e,t){return t(e)},null)}catch(i){C.critical(i),n=My(n)}return n},href(e){return Py(e).href}}};function Fy(e){var t;if("function"==typeof Fy[e])return t=_.toArray(arguments).slice(1),Fy[e].apply(Fy,t)}_.extend(Fy,{getHref(){return g.getters["location/href"]()},clearTransforms(){g.commit("location/clearTransforms"),hu()},addTransforms(e){g.dispatch("location/addTransforms",e),hu()},setUrl(e){g.commit("location/changeUrlSource",e)},useBrowserUrl(){g.commit("location/changeUrlSource"),hu()}});function Dy(){return f.get("guideSeenTimeoutLength")||1e4}Uy=[];var Uy,Gy={name:"StepTimeoutMonitor",initialize(){this._beforeGuideShow=_.bind(Gy.beforeGuideShow,Gy),this._stop=_.bind(Gy.stop,Gy),y.beforeGuideShow.on(this._beforeGuideShow),y.guideSeen.on(this._stop),y.guideNotSeen.on(this._stop)},teardown(){Gy.stop(),y.beforeGuideShow.off(this._beforeGuideShow),y.guideSeen.off(this._stop),y.guideNotSeen.off(this._stop)},beforeGuideShow(e){var t=e.data[0],e=e.data[1],n=t.guide;f.get("enableGuideTimeout")&&(e=-1<_.indexOf(["dom","launcher","badge","api"],e),"active"===t.seenState||t.hasBeenControlled()||t.isTimedOut()||(n=n&&n.steps)&&(0!==_.indexOf(n,t)||e)&&Gy.start(t))},start(e){var u,t,n=Uy[0];n&&n===e.id||(n&&n!==e.id&&(n=Uy[1],_.isFunction(n))&&n(),e.shouldStartTimer()&&(u=Dy(),n=_.partial(function(e,t){var n,i,r,o,a,s=N(t);s&&(n=s.findStepById(e))&&!s.isShown()&&(a=n.canShowOnPage(pm())?qg(n)?"other":"element":"page",i=t,r=e,o=b(),a=a,s=s.language,i=sm({type:"guideTimeout",guideId:i,stepId:r,visitorId:o,seen_reason:a,language:s,guideSeenTimeoutLength:u}),cm(i),y.guideTimeout.trigger(i),C.info("Guide "+t+" timed out showing Step "+e),n.timeout()),Gy.stop()},e.id,e.guide.id),t=Ut(n,u),Uy=[e.id,n,t]))},stop(){var e=Uy[2];e&&clearTimeout(e),Uy=[]},getGuideSeenTimeoutLength:Dy};function By(){console.warn("This functionality is not supported by your subscription.")}function a(e){return _o?e:By}var zy="is going away",jy="is gone",Hy=_.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return C.info(e),e});function qy(e,t,n){return function(){return Hy("pendo."+t,n),(e||_.noop).apply(null,arguments)}}function Wy(e){return e&&1===e.length?e[0]:_.any(e,mt)?m.all(e).then(function(e){return _.any(e)}):void 0}function Vy(){this.elements=[],this.attributes=this.attributes||{},this.attributes.device&&this.attributes.device.type?"all"==this.attributes.device.type?this.attributes.device={desktop:!0,mobile:!0}:(e=this.attributes.device.type,this.attributes.device={mobile:!1,desktop:!1},this.attributes.device[e]=!0):this.attributes.device=this.attributes.device||{},_.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),Xd(e,this)},this),this.isActivatedByEvent=function(e){return!!(this.hasLaunchMethod("dom")&&this.attributes&&this.attributes.activation&&_.contains(this.attributes.activation.event,e)&&this.canEventActivatedGuideBeShown())},this.isContinuation=function(e){return!1},this.isGuideWidget=function(){return this.attributes&&"launcher"===this.attributes.type},this.isOnboarding=function(){return this.attributes&&!!this.attributes.isOnboarding},this.isWhatsNew=function(){var e=_.first(this.steps);return e&&"whatsnew"===e.type},this.isAnnouncement=function(){return _.get(this,"attributes.isAnnouncement")},this.isHelpGuide=function(){return!this.isOnboarding()&&!this.isWhatsNew()&&!this.isGuideWidget()},this.nextStep=function(e){return null},this.hasLaunchMethod=function(e){return this.launchMethod&&0<=this.launchMethod.indexOf(e)},this.shouldAutoDisplay=function(){return!this.outsideTimebox()&&this.hasLaunchMethod("auto")&&_.any(this.steps,function(e){return e.shouldAutoDisplay()})},this.autoDisplay=function(){if(this.shouldAutoDisplay())return Wy(_.map(this.steps,function(e){return e.autoDisplay()}))},this.isRendered=function(){return _.any(this.steps,function(e){return e.isRendered()})},this.isShown=function(){return _.any(this.steps,function(e){return e.isShown()})},this.canShowOnDevice=function(){if(!pd()){var e=hd(),t=this.attributes&&this.attributes.device||{};if(!e&&!1===t.desktop)return!1;if(e&&!0!==t.mobile)return!1}return!0},this.canShow=function(){return this.canShowOnDevice()&&_.any(this.steps,function(e){return e.canShow()})},this.launch=function(e){var t;return this.hasGuideBeenControlled()||(t=this.show(e)),this.isShown()?_.each(this.steps,function(e){e.seenState="active"}):!this.isShown()&&this.isControlGroup()&&_.each(this.steps,function(e){e.seenState="notSeen"}),t},this.show=function(t){return Wy(_.map(this.steps,function(e){return e.show(t)}))},this.checkForHiddenGroupSteps=function(){},this.hide=function(t){_.each(this.steps,function(e){e.hide(t)})},this.hasBeenSeen=function(){return _.all(this.steps,function(e){return e.hasBeenSeen()})},this.canBadgeBeShown=function(){var e=this.attributes.badge;return!(e&&e.isOnlyShowOnce&&this.steps[0].hasBeenSeen())},this.placeBadge=function(){var e;this.canShowOnDevice()&&this.hasLaunchMethod("badge")&&this.canBadgeBeShown()&&!this.outsideTimebox()?(e=_.get(this,"attributes.resourceCenter"),this.isControlGroup()&&!e?this.hasGuideBeenControlled()||this.steps[0].onControlGuide("control"):(e=_.first(this.steps))&&_.isFunction(e.canShowOnPage)&&e.canShowOnPage(pm())&&Ph(this)):Uh(this)},this.findStepById=function(t){return _.find(this.steps,function(e){return e.id===t})},this.isPoweredByEnabled=function(){return!!_.find(this.steps,function(e){return e.isPoweredByEnabled()})},this.searchFor=function(t){var e,n,i=null;return dt(this.name,t,!0)?i="name":(e=!(n=[]),(e=0<(n=this.attributes&&this.attributes.launcher&&this.attributes.launcher.keywords?this.attributes.launcher.keywords:n).length?_.find(n,function(e){return dt(e.text,t,!0)}):e)?i="tag":(n=_.map(this.steps,function(e){return e.searchFor(t)}),0<_.compact(n).length&&(i="content"))),!!i&&{guide:this,field:i}},this.shouldBeAddedToResourceCenter=function(){var e,t=this;return!(!t.steps||!t.steps.length||t.control||!t.eligibleInFrame&&(!t.steps[0].content&&!_.isFunction(t.steps[0].fetchContent)||(e=t.steps[0],!t.hasLaunchMethod("launcher")&&!t.isWhatsNew())||!e.canShowOnPage(pm())||!t.canShowOnDevice()||!qg(e)||t.outsideTimebox()))},this.shouldBeAddedToLauncher=function(){var e;return!(!this.steps||!this.steps.length||(e=this.steps[0],!this.hasLaunchMethod("launcher")&&!this.isWhatsNew())||!e.canShowOnPage(pm())||!this.canShowOnDevice()||!qg(e)||this.outsideTimebox())};var e,n="PENDO_HELPER_STEP";return this.getPositionOfStep=function(e){var t=_.reject(this.steps,function(e){return dt(e.content,n)});return _.indexOf(t,e)+1},this.getTotalSteps=function(){return _.reject(this.steps,function(e){return dt(e.content,n)}).length},this.getSeenSteps=function(){return _.size(_.filter(this.steps,function(e){return e.hasBeenSeen()}))},this.isComplete=function(){var t=["advanced","dismissed"];return _.all(this.steps,function(e){return _.contains(t,e.seenState)})},this.isInProgress=function(){var t=["active","advanced","dismissed"];return!this.isComplete()&&_.any(this.steps,function(e){return _.contains(t,e.seenState)})},this.isNotStarted=function(){return!this.isInProgress()&&!this.isComplete()},this.fetchContent=function(){return m.all(_.map(this.steps,function(e){if(_.isFunction(e.fetchContent))return e.fetchContent()}))},this.canEventActivatedGuideBeShown=function(){return!(this.attributes.dom&&this.attributes.dom.isOnlyShowOnce&&this.steps[0].hasBeenSeen())},this.isGuideSnoozed=function(){return _.any(this.steps,function(e){return e.isSnoozed()})},this.hasGuideBeenControlled=function(){return _.any(this.steps,function(e){return e.hasBeenControlled()})},this.isControlGroup=function(){return this.control},this.shouldShowSnoozedGuide=function(){var t=!1;return!this.outsideTimebox()&&_.any(this.steps,function(e){return!(t="dismissed"===e.seenState?!0:t)&&"snoozed"===e.seenState&&e.snoozeEndTime&&(new Date).getTime()>e.snoozeEndTime})},this.shouldRepeatGuide=function(){var t;return!(!this.redisplay||this.outsideTimebox()||this.isGuideSnoozed()||this.hasReachedMaxDismissals()||(t=0,_.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.isBeforeStartTime=()=>!!this.showsAfter&&v()<this.showsAfter,this.outsideTimebox=()=>this.isExpired()||this.isBeforeStartTime(),this.calculateDismissCountFromSteps=function(){var t=0;return _.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 Jy(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){_.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var Ky=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function $y(){var r,o=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(_.each(this.steps,function(e){e.after("render",function(){_.each(e.elements,function(e){k(e).addClass("_pendo-guide-walkthrough_")})})}),r=null,this.sections=_.reduce(this.steps,function(e,t){var n,i;return i=t,!(n=r)||(n=_.last(n)).attributes.isRequired!=i.attributes.isRequired&&n.attributes.isRequired?(e.push(r),r=[t]):r.push(t),e},[]),this.sections=_.compact(this.sections.concat([r])),this.findSectionForStep=function(t){return _.find(this.sections,function(e){return _.contains(e,t)})},this.getSubSection=function(e,t){t=_.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<this.steps.length;r++)if(this.steps[r].id===t.guideStepId){if("dismissed"===t.state)break;if("active"===t.state||"snoozed"===t.state){e=this.steps[r];break}if("advanced"===t.state&&t.destinationStepId){e=_.find(this.steps,function(e){return e.id===t.destinationStepId});break}if(r+1<this.steps.length){e=this.steps[r+1];break}}return e?(n=(new Date).getTime(),(i=t.time)&&432e5<n-i&&!Ky(this)?(o||(C.info("Multi-step continuation has expired",{contexts:["guides","info"]}),o=!0),null):e):null},this.shouldAutoDisplay=function(){return this.hasLaunchMethod("auto")&&(this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||_.all(this.steps,function(e){return e.shouldAutoDisplay()}))},this.autoDisplay=function(){var e,t,n;if(this.shouldAutoDisplay())return e=this.shouldRepeatGuide(),t=_.first(this.steps),n=this.nextStep(Qp())||t,this.shouldShowSnoozedGuide()||e?n.show(e?"repeatGuide":"auto"):t.autoDisplay()},this.launch=function(e){return _.first(this.steps).show(e)},this.show=function(e){var t=Qp(),n=_.first(this.steps),t=this.nextStep(t)||n;return t.show("continue"===e&&t===n&&"auto"===n.seenReason?"auto":e)},this.isComplete=function(){var e=_.last(this.steps);return!!e&&_.contains(["advanced","dismissed"],e.seenState)},this.activeStep=function(){var e=[].concat(this.steps).reverse();return _.findWhere(e,{seenState:"active"})}),this}function Zy(){var a=this;function t(r){var o=[];return function(e){try{return e.apply(a,_.toArray(arguments).slice(1))}catch(i){var t,n="ERROR in guide "+r+' (ID="'+a.id+'")';throw o.push(v()),5<=o.length&&(t=0<(t=_.last(o)-_.first(o))?(o.length-1)/(t/6e4):Infinity,Zy.MAX_ERRORS_PER_MINUTE<=t&&(n="Exceeded error rate limit, dropping guide.\n"+n,nd.addGuide(a),y.trigger("renderFail",a)),o.shift()),C.critical(n,{error:i}),i}}}return _.each(["canShow","placeBadge","show"],function(e){a[e]=_.wrap(a[e],t(e))}),a}function Xy(){return _.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=_.wrap(this.shouldBeAddedToLauncher,function(e){return g.getters["frames/hasFrames"]()?!(!g.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!g.getters["frames/isGuideInDifferentFrame"]()(this)&&g.getters["frames/shouldBeAddedToLauncher"]()(this):e.apply(this,arguments)}),this.shouldBeAddedToResourceCenter=_.wrap(this.shouldBeAddedToResourceCenter,function(e){return g.getters["frames/hasFrames"]()?!(!g.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!g.getters["frames/isGuideInDifferentFrame"]()(this)&&g.getters["frames/shouldBeAddedToResourceCenter"]()(this):e.apply(this,arguments)})),this}function Yy(e){var t=this;return"whatsnew"===t.type||_.isFunction(e.isAnnouncement)&&e.isAnnouncement()||(t.isShown=_.wrap(t.isShown,function(e){return e.apply(this,arguments)||g.getters["frames/isShownInAnotherFrame"]()(t)})),t}function Qy(o){var a,t,i,s,r,n,u,d=this;return d.pollIds&&d.pollIds.length&&(a="_pendo-poll-selected_",t=_.indexBy(o.polls,"id"),i=_.map(d.pollIds,function(e){return t[e]}),r=function(e,t){if(e&&t!==undefined)return e.numericResponses?parseInt(t,10):t},n=function(){var e=o.id,t=d.id,n=v();im(e,t,b(),d.seenReason,o.language),_g(e,t,"advanced",n),Xp({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=_.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(_.compact(t)),u()}):d.attachEvent(n,"click",function(e){var t,e=k(kr(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:""})),_.isFunction(d.resize)&&d.resize()}))}),d.after("show",function(){s=(new Date).getTime()}),d.response=function(e,r){e&&e.length&&(Wm(),_.each(e,function(e,t){var n=function(t,e){if(e&&e.polls&&e.polls.length)return _.find(e.polls,function(e){return e.id===t})}(e.pollId,o),i=sm("pollResponse",d.guideId,d.id,b(),undefined,o.language);_.extend(i.props,{poll_id:e.pollId,poll_response:e.value,duration:(new Date).getTime()-s},r),n&&n.attributes&&n.attributes.type&&_.extend(i.props,{poll_type:n.attributes.type}),Gm.push(i)}),Gm.flush())}),d}Zy.MAX_ERRORS_PER_MINUTE=30;var e0={show:function(t,n){if(pd()&&_.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return t0(t,n);if(!g.getters["frames/hasFrames"]()||g.getters["frames/isGuideInThisFrame"]()(e)){e=function(e,t){if(e.getGuide().isModule){e=P.getResourceCenter();if(e)return t0(e.steps[0],t)}}(t,n);if(mt(e))return e.then(function(){return t0(t,n)}).then(function(e){return!!e||n0(t,n)});e=t0(t,n);if(mt(e))return e.then(function(e){return!!e||n0(t,n)});if(e)return!0}return n0(t,n)},showLocal:t0};function t0(e,t){return tc.hasContent(e)&&Jd.valid(e)?(e._show(t),e.isShown()):!(tc.hasContent(e)&&Jd.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(pm()))&&(e.lock(),tc.fetchContent(e).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&Jd.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(e.unlock(),e._show(t),e.isShown())}))}function n0(t,e){var n=t.getGuide();return!(!g.getters["frames/hasFrames"]()||!g.getters["frames/isGuideInDifferentFrame"]()(n))&&(t.lock(),g.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}))}function i0(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 lv),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=_.indexOf(t,this),i=Hl();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:rt(i),template:r};return this.template||(this.template=_.template(this.content||"")),Yd(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<this.elements.length},this.isShown=function(){return this.isRendered()||this.isLocked()},this.canShow=function(){return!_.get(this,"guide.attributes.isAnnouncement")&&!!u.canShowOnDevice()&&!this.isShown()&&!_.get(this,"stepIneligibleForApp")&&this.canShowOnPage(pm())&&qg(this)},this.canShowOnPage=function(e){e=fm(this.regexUrlRule,e);return Ah()&&y.stepEligibility.trigger({stepId:this.id,guideId:this.guideId,eligible:e,reason:"page_match"}),e},this.shouldAutoDisplay=function(){return this.shouldRepeat()||!this.hasBeenControlled()&&!this.isSnoozed()&&!_.contains(["dismissed","advanced"],this.seenState)},this.autoDisplay=function(){var e;if(this.shouldAutoDisplay())return e=this.shouldRepeat()?"repeatGuide":"auto",this.show(e)},this._preRenderHealthCheck=function(){var e,t;return!(!(E.designer||pd()||$h())&&(e=pm(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!fm(this.regexUrlRule,e)?(nd.addGuide(u),t.error=new Error('attempted display on page "'+e+'"'),C.critical("pendo.io page rule exception",t),1):g.getters["healthCheck/isMissingPageRule"]()(this)?(nd.addGuide(u),t.error=new Error('missing regexUrlRule"'),C.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(nd.addGuide(u),t.error=new Error("missing regexUrlRule for page "+this.pageId+'"'),C.critical("pendo.io page rule exception",t),1)))},this.render=function(){var e=this;if(this._preRenderHealthCheck()){if(e.domJson)return u.skipResourceCenterHomeView&&u.moduleIdToReplaceHomeViewWith&&u.hasEligibleNativeIntegrationModule?(t=_.find(Qu(),function(e){return e.id===u.moduleIdToReplaceHomeViewWith}),n=_.get(t,"attributes.resourceCenter.integrationProvider"),P.renderNativeIntegration(n,t)):u.continueToNativeModule?P.handleNativeIntegrationContinuation(u):(_.get(u,"attributes.resourceCenter")&&yh(P.getResourceCenter(),bh),u.isModule?U.renderResourceCenterModule(u,!1):(n=U.renderGuideFromJSON(e.domJson,e),_.get(u,"attributes.resourceCenter")&&(t=u.activeModule?u.activeModule.activeStep().domJson.props.id:e.containerId,t=e.guideElement.find("#"+t),P.adjustResourceCenterWidth(t)),n));var t=e.attributes.width,n=e.attributes.height,i=E.TOOLTIP_ARROW_SIZE,r="_pendo-group-id-"+u.id+"_",r=k(document.createElement("div")).attr("id",Kg(e)).addClass(vg+" "+r),o=k(document.createElement("div")).addClass("_pendo-guide-content_").html(e.getContent()),a=k(document.createElement("div")).addClass("_pendo-guide-container_"),s=k(document.createElement("div")).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&&_.isFunction(u.isOnboarding)&&u.isOnboarding()&&r.addClass("_pendo-onboarding_"),e.overlayDiv=s,e.guideElement=r}},this.teardown=function(){C.info("guide step teardown",{contexts:["guide","render"]}),_.each(this.handlers,function(e){Vu(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,_.has(this.attributes,"imgCount")&&(this.attributes.imgCount=0),this.hiddenElements&&(_.each(this.hiddenElements,e=>{try{e&&"function"==typeof e.removeAttribute&&e.removeAttribute("aria-hidden")}catch(t){C.error("unable to remove aria-hidden from element",{error:t})}}),this.hiddenElements.length=0,this.hiddenElements=null),Ml(this.id)},this.show=function(e){var t;if(!_.contains(["auto","continue"],e)||!g.getters["healthCheck/isRedisplay"]()(this))return(t=e0.show(this,e))&&t["catch"]&&t["catch"](_.noop),t;g.dispatch("healthCheck/fixSeenStateAndLogError",{step:this,reason:e})},this.redraw=function(){var e,t,n,i,r,o=this;o.guideElement&&!E.designer&&(t=(e=_.get(u,"attributes.resourceCenter"))&&P.isFullyCustom(u),n=u.activeModule?u.activeModule.activeStep().domJson.props.id:o.containerId,i=o.guideElement.find("#"+n),r=u.activeModule&&"AnnouncementsModule"===_.get(u.activeModule,"attributes.resourceCenter.moduleId"),y.beforeUpdate.trigger(o),t||r||(U.recalculateGuideWidth(n,o.guideElement),U.adjustGuideContentWidth(n,o.guideElement)),e?(P.adjustResourceCenterWidth(i),r&&u.activeModule.guidesInModule?_.forEach(u.activeModule.guidesInModule,function(e){var t;!_.isUndefined(e.steps[0].attributes.imgCount)&&0!==_.get(e.steps[0],"attributes.imgCount")||(t=e.steps[0].id,t=k(i).find("#pendo-g-"+t)[0]?t:e.id,U.adjustGuideContentWidth("pendo-g-"+t,o.guideElement),U.flexAllThings("pendo-g-"+t,o))}):U.flexAllThings("pendo-resource-center-container")):U.flexAllThings(n,o),t||U.recalculateGuideHeight(n,o.guideElement),y.updated.trigger(o))},this._show=function(e){y.beforeGuideShow.trigger(this,e),this.canShow()&&(!pd()&&u.control?this.hasBeenControlled()||this.onControlGuide("control"):y.beforeMount.trigger(this).cancel||(this.render(),this.isShown()&&this.onShown(e)))},this.shouldStartTimer=function(){return u.canShowOnDevice()&&!u.attributes.isAnnouncement&&!jg(this)},this.getStepPollTypes=function(n,e){var i;if(e.pollIds&&e.pollIds.length)return i=[],_.forEach(e.pollIds,function(t){var e=_.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;pd()||(this.seenReason=e,wg(v()),t=this.getStepPollTypes(u,this),this.hasBeenControlled())||(em(this.guideId,this.id,b(),e,u.language,t),_.each(u.steps,function(e){e.seenState="notSeen"}))},this.onShown=function(r,e=!0){var t,n,i=this;i.overrideElement&&(k.addClass(i.overrideElement,"triggered"),i.overrideElement.checkAriaExpanded)&&i.overrideElement.checkAriaExpanded(),pd()||(i.seenReason=r,i.seenState="active",wg(v()),t={last_updated_at:i.lastUpdatedAt},(n=this.getStepPollTypes(u,i))&&(t.step_poll_types=n),e&&tm(i.guideId,i.id,b(),r,u.language,t),g.dispatch("guideState/updateLastGuideStepSeen",{guideId:u.id,guideStepId:i.id,time:bg,state:i.seenState,seenReason:r,visitorId:b()}),_.each(u.steps,function(e){var t,n,i;"snoozed"===e.seenState&&(e.snoozeEndTime=0,t=u.id,e=e.id,n=b(),i=u.language,t=sm({type:"guideSnoozeCanceled",guideId:t,stepId:e,visitorId:n,seen_reason:r,language:i}),cm(t,null,!0),y.guideSnoozeCancelled.trigger(t))}),rc.runCustomScripts(i,u)),g.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||(E.ignoreResize=!0,Ut(function(){E.ignoreResize=!1},1e3))})},this.hide=function(e){var t=this;t.unlock(),y.beforeUnmount.trigger(t),t.teardown(),_.each(t.elements,function(e){Ko(e)}),y.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(),g.dispatch("frames/guideStepHiddenInFrame",{guideId:u.id,stepId:t.id})},this.advance=function(){"advanced"===this.seenState&&!this.isRendered()||Gg(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||Fg(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.outsideTimebox()&&!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};l(e,t,n,!0),this.handlers.push(i)},this.searchFor=function(e){return!(e.length<3)&&dt(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&Gc.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&Rc(this)},this.getType=function(){return this.domJson?_.get(this,"attributes.calculatedType"):this.type},this}function r0(){return this.after("render",function(){var e,t;F&&F.contentWindow&&F.style&&(e=_.first(k('#pendo-resource-center-container, [id^="pendo-g-"]')))&&(e=R(e))&&(t={mutation:"preview/setIsPreviewBarTop",payload:{isPreviewBarTop:!1}},"0px"===e.top?(F.style.top="auto",F.style.bottom="0px",F.contentWindow.postMessage(t,location.origin)):"0px"!==e.bottom&&F.style.top||(F.style.top="0px",F.style.bottom="auto",t.payload.isPreviewBarTop=!0,F.contentWindow.postMessage(t,location.origin)))}),this}i0.isGuideStep=function(e){return!!e&&_.isFunction(e.render)};const o0={state:{errorCount:0,errors:{}},actions:{write(e,t){var n=t.error;if(n&&!t.logged){var i=e.getters.hasLogged()(t);if(e.dispatch("update",t),!i){try{t.logged=!0}catch(r){}e=`[${t}]`;t.level===vt.Critical?(i=window.pendo_options||{},oy(e),!1!==E.logStackTraces&&!1!==i.logStackTraces&&n.stack?ko(e+`
|
|
9
|
-
`+n.stack):To(e)):t.level===vt.Error?oy(e):t.level===vt.Warn&&(i=[e],ty("warn"))&&console.warn.apply(console,i)}}},update(e,t){t&&(e.getters.hasLogged()(t)||e.commit("addError",t),e.commit("incrementError",t))}},mutations:{addError(e,t){var{message:n,level:i}=t,r=t.hashCode();e.errors[r]={count:0,stack:t.error.stack,message:n,level:i,hash:r}},incrementError(e,t){e.errors[t.hashCode()].count++,e.errorCount++}},getters:{hasLogged(t){return function(e){return!!t.errors[e.hashCode()]}}}},a0=h.getSession(),s0="pendo_cd";class u0{constructor(){this.name="CloneDetection"}initialize(){if(_.isFunction(window.BroadcastChannel))return h.registry.addSession(s0),this.tabId=ln.getTabId(),this.id=ut(16),this.channel=new BroadcastChannel("pendo-clone-detection-"+E.apiKey),this.channel.addEventListener("message",_.bind(this.onmessage,this)),this.detectClonedSession(this.id),_.bind(this.teardown,this)}teardown(){this.stopCloneDetectionTimer(),this.channel.removeEventListener("message",this.onmessage),this.channel.close(),this.channel=null}onmessage(e){var t=_.get(e,"data.type"),n=_.get(e,"data.tabId"),i=_.get(e,"data.id");if(n===this.tabId)switch(t){case"pendo-clone-test":i!==this.id&&this.isClonedSession(i)&&this.sendMessage("pendo-change-tab-id",{tabId:n,id:i});break;case"pendo-change-tab-id":i===this.id&&this.clearClonedStorage()}}detectClonedSession(e){var t=a0.getItem(s0)||"";-1===t.indexOf(e)&&(t+="-"+e),a0.setItem(s0,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()}isClonedSession(e){return this.startCloneDetectionTimer(),-1===(a0.getItem(s0)||"").indexOf(e)}clearCloneDetectionValue(){a0.removeItem(s0),this.cloneDetectionTimer=null}startCloneDetectionTimer(){this.stopCloneDetectionTimer(),this.cloneDetectionTimer=Ut(_.bind(this.clearCloneDetectionValue,this),1e4)}stopCloneDetectionTimer(){this.cloneDetectionTimer&&(clearTimeout(this.cloneDetectionTimer),this.cloneDetectionTimer=null)}clearClonedStorage(){a0.clearPendo(),ln.setParentTabId(this.tabId),this.tabId=ln.newTabId(),y.trigger("tabIdChanged:self"),g.dispatch("frames/setTabId",this.tabId)}sendMessage(e,t){this.channel.postMessage(Object.assign({type:e},t))}}let d0=new u0;function c0(e){g.dispatch("frames/setReady",{isReady:!0})}var l0=["unknown","hidden","visible"];function p0(e){return"visible"===e.visibility||"unknown"===e.visibility}h0={};var h0,t={actions:{init(e){var t,n,i=e.state;i.initialized||(h.registry.addSession(nn),h.registry.addSession(rn),t=ln.addTracerIds({}),n=Se(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),y.ready.on(c0),y.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&D.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),d0.initialize(),e.commit("setInitialized",!0))},changeGuideList(e,t){e=e.state,t=g0(t);D.postMessage({action:"frames/receiveGuideList",frameId:e.frameId,guides:t,autoOrdering:E.autoOrdering||[]})},receiveGuideList(e,t){e.commit("setGuideList",t),t.frameId===e.state.frameId&&e.commit("setGuidesLoaded"),m0(e.state)},join(e){var t,n,i,r;e.state.disabled||(ph(),t=e.state,n=window.top==window,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:g0(ad())}),(r=[].concat(f.get("leaderKey"))).length||t.agentInstallType!==be||(r=[E.apiKey]),e.dispatch("receiveFrame",{frame:_.extend({agentInstallType:t.agentInstallType,id:t.frameId,joinedAt:v(),isTop:n,visibility:n?"visible":"unknown",apiKey:E.apiKey,leaderKey:r},i)}))},receiveFrame(e,t){var n,i=e.state;if(E.designerv2.launched&&(n=Object.assign({},bf.hostConfig,{selectionOnly:!0}),D.postMessage({action:"frames/addSelectionModeToFrames",options:n})),!i.frames[t.frame.id]||!i.frames[t.frame.id].id){if(e.commit("addFrame",t.frame),e.commit("setGuideList",{frameId:t.frame.id,guides:_.toArray(_.get(t,"frame.guides",[]))}),t.frame.isTop){for(var r=e.getters.leaderKeyPreference(),o=_.filter(i.frames,e=>e.isTop);r.length;){var a=r.shift(),s=_.filter(o,e=>e.apiKey===a);if(s.length){o=s;break}}e.commit("setTopId",o[0].id)}e.commit("setLeadershipMode",t.frame.agentInstallType),t[zh]&&e.dispatch("receiveStartPreview",t),D.postMessage({action:"frames/receiveFrame",frame:i.frames[i.frameId],"pendo-preview":e.rootState.preview.preview}),e.dispatch("waitThenElectLeader")}},leave(t){var e=t.state;D.postMessage({action:"frames/removeFrame",frameId:e.frameId}),_.each(e.frames,function(e){t.commit("removeFrame",e.id)}),D.close()},removeFrame(e,n){e.getters.hasFrame()(n.frameId)&&(e.commit("removeFrame",n.frameId),_.each(h0,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete h0[t])}),e.dispatch("electLeader"))},waitThenElectLeader:_.debounce(function(e){e.dispatch("electLeader")},50),electLeader(e){var t=e.state,n=t.frames,i=e.getters.leaderKeyPreference();if(i.length)for(;i.length;){var r=i.shift(),o=_.filter(t.frames,e=>e.apiKey===r);if(o.length){n=o;break}}var a=_.find(n,e=>e.isTop);a?e.dispatch("followLeader",{leaderId:a.id}):(a=_.min(n,"joinedAt"),e.dispatch("followLeader",{leaderId:a.id})),m0(e.state),e.getters.isLeader()&&y.childFrameJoined.trigger()},followLeader(e,t){var n=e.state,i=n.leaderId,r=t.leaderId;e.commit("setLeaderId",t.leaderId),i!==r&&y.leaderChanged.trigger({frameId:n.frameId,oldLeaderId:i,newLeaderId:r})},showGuideStep(t,n){var i=_.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",_.extend({frameId:e.id},n)).then(function(e){return e.error?m.reject(e.error):e.isShown?e:r()}):m.resolve({isShown:!1})}()},requestShowGuideStepInFrame(e,t){var n=t.frameId+"/"+ut(32),i=m.defer();return h0[n]=i,D.postMessage(_.extend({action:"frames/showGuideStepInFrame",requestId:n},t)),i.promise},showGuideStepInFrame(t,n){var e;function i(e){t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:e})}t.state.frameId===n.frameId&&((e=(e=N(n.guideId))&&e.findStepById(n.stepId))?mt(e=e0.showLocal(e,n.reason))?e.then(i)["catch"](_.noop):i(e):t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:!1}))},guideStepShownInFrame(e,t){e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:t.isShown}),D.postMessage(_.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame(e,t){var n=h0[t.requestId];n&&(n.resolve(t),delete h0[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(e,t){t=_.isArray(t)?t:[],D.postMessage({action:"frames/receiveHideGuides",frameId:e.state.frameId,guideIds:t}),e.commit("hideGuides")},receiveHideGuides(e,t){e.state.frameId!==t.frameId&&(t.guideIds.length?_.each(_.compact(_.map(t.guideIds,N)),function(e){e.hide()}):xg(),e.commit("hideGuides"))},guideStepHiddenInFrame(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}),D.postMessage(_.extend({action:"frames/receiveGuideStepHiddenInFrame",frameId:e.state.frameId},t)),n&&e.dispatch("fixDoubleDisplay",t)},receiveGuideStepHiddenInFrame(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(n,i){_.each(n.state.frames,function(e,t){t!==n.state.frameId&&n.getters.isShownInFrame()(t,{id:i.stepId})&&D.postMessage(_.extend({action:"frames/receiveHideGuideInFrame",frameId:t,guideId:i.guideId,stepId:i.stepId},i))})},receiveHideGuideInFrame(e,t){e.state.frameId===t.frameId&&(t=(e=N(t.guideId))&&e.findStepById(t.stepId))&&t.hide()},changeLastGuideStepSeen(e,t){D.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(e,t){var n;t.frameId!==e.state.frameId&&(n=e.state.frames[t.frameId],(n=_.get(n,"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=N((n=t.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(e,t){D.postMessage(_.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState(e,t){t.frameId!==e.state.frameId&&_.each(rm,function(e){t[e]&&am(t[e],e)})},startPreview(e){D.postMessage({action:"frames/receiveStartPreview","pendo-preview":e.rootState.preview.preview})},restartPreview(e){D.postMessage({action:"frames/receiveRestartPreview","pendo-preview":e.rootState.preview.preview})},stopPreview(e,t){D.postMessage(_.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview(e,t){e.dispatch("preview/start",t[zh],{root:!0}),qh(window),sv()},receiveRestartPreview(e){var t=Jh(O,Qp());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview(e,t){nf({preventWindowClose:!!t.preventWindowClose})},checkFrameVisibility(e,t){if(!e.getters.isTop()&&!e.state.disableFrameVisibilityCheck)try{var n="unknown",i=(t=null==t?window:t).frameElement;i?(n=ha(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility(e,t){var n;!_.find(l0,function(e){return e===t.visibility})||(n=t.visibility,e.getters.frameVisibility()===n)||(e.commit("setFrameVisibility",{frameId:e.state.frameId,visibility:n}),D.postMessage({action:"frames/receiveFrameVisibility",frameId:e.state.frameId,visibility:n}))},receiveFrameVisibility(e,t){e.commit("setFrameVisibility",t)},addSelectionModeToFrames(e,t){t=t.options;bf.launchInAppDesigner(t)},syncOptions(e,t){t.options&&D.postMessage({action:"frames/receiveOptions",frameId:e.state.frameId,options:t.options})},receiveOptions(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&t.options&&Ul(t.options)},syncIdentity(e,t){var n;(t.visitorId||t.accountId)&&({visitorId:t,accountId:n}=t,D.postMessage({action:"frames/receiveIdentity",frameId:e.state.frameId,visitorId:t,accountId:n}))},receiveIdentity(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&(t.visitorId||t.accountId)&&Bn(t.visitorId,t.accountId)},setReady(e,t){e.commit("setReady",t.isReady)},receiveGuideSeen(e,t){t.frameId!==e.state.frameId&&y.guideSeen.trigger(t.guideSeen)},checkGuideEligibility(e,t){var{guideId:t,stepId:n,currentStepIndex:i,sourceFrame:r,promiseId:o}=t,t=N(t),n=t&&t.findStepById(n),a={};return t&&n?(0===i&&(i=yd(t))&&((i=_.first(u(i)))?ha(i)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),_.isFunction(n.canShowOnPage)&&!n.canShowOnPage(pm())&&(a.PAGE="mismatch"),n.elementPathRule&&((i=_.first(u(n.elementPathRule)))?ha(i)?n.elementContainsRulesList&&!Vg(i,n.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),n.triggerElementPathRule&&((i=_.first(u(n.triggerElementPathRule)))?ha(i)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),_.get(t,"attributes.embedConfig")&&(n=_.get(t,"attributes.embedConfig.selector"),(i=_.first(u(n)))?ha(i)||(a.EMBED_CONTAINER="notVisible"):a.EMBED_CONTAINER="notFound")):a.GUIDE="notFound",o&&r&&D.postMessage({errors:a,action:"frameEligibilityResponse",targetFrame:r,resolveId:o}),a},setTabId(e,t){e.commit("setTabId",t)}},mutations:{addFrame(e,t){var n=t.id;e.frames[n]=_.extend({},e.frames[n],t)},removeFrame(e,t){delete e.frames[t]},setGuideList(e,t){var n=t.frameId;e.frames[n]=_.extend({},e.frames[n],{guides:_.indexBy(g0(t.guides),"id"),autoOrdering:t.autoOrdering})},setStepShown(e,t){var n=t.frameId,n=e.frames[n]=_.extend({},e.frames[n]);n.shown=_.extend({},n.shown),n.shown[t.stepId]=t.shown},setInitialized(e,t){e.initialized=t},setLeaderId(e,t){e.leaderId=t},setFrameId(e,t){e.frameId=t},setTabId(e,t){e.tabId=t},setTopId(e,t){e.topId=t},setAgentInstallType(e,t){e.agentInstallType=t},setLeadershipMode(e,t){e.leadershipMode!==be&&(e.leadershipMode=t)},setFrameVisibility(e,t){var n=t.frameId;e.frames[n]=_.extend({},e.frames[n],{visibility:t.visibility})},setReady(e,t){e.isReady=t},disableFrameVisibilityCheck(e){e.disableFrameVisibilityCheck=!0},hideGuides(e){_.each(e.frames,function(n){_.each(n.shown,function(e,t){n.shown[t]=!1})})},setChannelType(e,t){e.channelType=t},setGuidesLoaded(e){e.guidesLoaded=!0},setConnectFailed(e){e.connectFailed=!0},updateLastGuideStepSeen(e,t){t&&_.each(e.frames,function(e){e.guides&&(e=e.guides[t.guideId])&&(e=_.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)})}},getters:{allFrames(e){return e.frames},autoOrdering(e){return _.reduce(e.frames,(e,t)=>(e[t.apiKey]=t.autoOrdering,e),{})},leaderExists(e){return!!e.leaderId},isLeader(e){return e.leaderId===e.frameId},leaderKey(e,t){if(t.leaderExists()){t=e.frames[e.leaderId];if(t)return t.apiKey}},isFollower(e){return!!e.leaderId&&e.leaderId!==e.frameId},isTop(e,t){t=t.window();return e.topId===e.frameId||t==t.top},frameVisibility(e){return(e.frames?e.frames[e.frameId]:{}).visibility||"unknown"},isGuideInThisFrame(n){return function(e){var t=n.frames&&n.frames[n.frameId];return!!(t&&t.guides||{})[e.id]}},isGuideInDifferentFrame(i){return function(n){return _.any(i.frames,function(e,t){return t!==i.frameId&&e.guides&&e.guides[n.id]})}},isReady(e){return e.isReady},isShownInAnotherFrame(i){return function(n){return _.any(i.frames,function(e,t){return t!==i.frameId&&e.shown&&e.shown[n.id]})}},isShownInFrame(n){return function(e,t){e=n.frames&&n.frames[e],e=e&&e.shown||{};return!(!e||!e[t.id])}},hasFrame(t){return function(e){return t.frames&&t.frames[e]}},hasFrames(e){return 1<_.size(e.frames)},shouldBeAddedToLauncher(i,e){return function(n){return e.canShowRCBadge()&&_.any(i.frames,function(e,t){return t!==i.frameId&&!!p0(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToLauncher})}},shouldBeAddedToResourceCenter(i,e){return function(n){return e.canShowRCBadge()&&_.any(i.frames,function(e,t){return t!==i.frameId&&e.apiKey===E.apiKey&&!!p0(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToResourceCenter})}},isBroadcastChannel(e){return"BroadcastChannel"===e.channelType},channelType(e){return e.channelType},canShowRCBadge(e,t){var n,i;return t.leaderKey()!==E.apiKey?(n=_.filter(e.frames,function(e){return e.apiKey===E.apiKey}),(i=_.find(n,function(e){return e.isTop}))?e.frameId===i.id:(i=_.min(n,function(e){return e.joinedAt}),e.frameId===i.id)):_.any(e.frames,function(e){return e.isTop})?t.isTop():t.isLeader()},leaderKeyPreference(e){e=_.filter(e.frames,e=>e.leaderKey&&e.leaderKey.length);return 1===_.unique(_.map(e,e=>e.leaderKey.join(","))).length?[].concat(e[0].leaderKey):[]},getMyApiKey(e,t){return t.getMyFrame().apiKey},getMyFrame(e){return e.frames[e.frameId]},window(){return window}},state:{initialized:!1,frameId:null,leaderId:null,tabId:null,agentInstallType:null,leadershipMode:null,topId:null,frames:{},guidesLoaded:!1,channelType:null,ready:!1},requests:h0};function f0(e){var t=_.pick(e,"id","name","launchMethod","isMultiStep","steps","control","lastUpdatedAt","language","state","polls","redisplay");return t.attributes=_.pick(e.attributes,"overrideAutoThrottling","priority","isAnnouncement","resourceCenter","device","sharedServiceVersion","embedConfig"),t._shouldBeAddedToLauncher=_.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e._shouldBeAddedToLauncher||!1,t._shouldBeAddedToResourceCenter=_.isFunction(e.shouldBeAddedToResourceCenter)?e.shouldBeAddedToResourceCenter():e._shouldBeAddedToResourceCenter||!1,t.steps=_.map(e.steps,function(e){return _.pick(e,"id","guideId","type","seenReason","seenState","lastSeenAt","lastUpdatedAt","dismissCount","snoozeEndTime","regexUrlRule","pageId","elementPathRule","triggerElementPathRule","elementContainsRulesList")}),t}function g0(e){return _.map(e,f0)}function m0(t){var n=_.indexBy(_.filter(ad(),function(e){return!e.isFrameProxy}),"id"),e=_.chain(t.frames).filter(function(e){return e.id!==t.frameId}).map(function(e){return _.toArray(_.get(e,"guides",[]))}).flatten(!0).unique("id").filter(function(e){return!n[e.id]}).map(function(e){return _.extend(JSON.parse(JSON.stringify(e)),{isFrameProxy:!0})}).map(Zd).value(),e=_.toArray(n).concat(e).filter(Cm);_.sortBy(e,xm),Hm(e),td(e),t.guidesLoaded&&0===_.size(_.get(t,"frames."+t.frameId+".guides",[]))&&hh()}var v0,Ri={actions:{documentChanged(e){var t;e.state.updateId?e.commit("setNeedsUpdate"):e.state.scheduledUpdate||(t=e.getters.now()-e.state.updateCompleteTime,t=Math.min(Math.max(0,dh-t),dh),t=Ut(b0,t),e.commit("setScheduledUpdate",t))},handleScheduledUpdate(e){e.dispatch("stopScheduledUpdate"),hh()},stopScheduledUpdate(e){e.state.scheduledUpdate&&(clearTimeout(e.state.scheduledUpdate),e.commit("setScheduledUpdate",null))},startObserverIfNeeded(e){e.state.useObserver&&!e.state.observing&&(e.getters.observer().addEventListener("mutation",y0),e.commit("setObserving",!0))},stopObserver(e){var t=e.getters.observer();t&&t.removeEventListener("mutation",y0),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setObserver(e,t){v0=t},setUseObserver(e){e.useObserver=!0},setObserving(e,t){e.observing=t},setNeedsUpdate(e){e.needsUpdate=!0},setScheduledUpdate(e,t){e.scheduledUpdate=t},startUpdate(e,t){_s.startTimer("guide-loop"),e.needsUpdate=!1,e.updateId=t},completeUpdate(e,t){_s.stopTimer("guide-loop"),e.updateId=null,e.updateCompleteTime=t}},getters:{now(){return v()},observer(){return v0}},state:{useObserver:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}};function y0(){g.dispatch("guideUpdate/documentChanged")}function b0(){g.dispatch("guideUpdate/handleScheduledUpdate")}w0=["advanced","dismissed","snoozed"];var w0,Di={actions:{init:function(t,e){_.each(e,function(e){_.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){ko(['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]=_.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)&&_.contains(w0,t.seenState)&&!_.contains(w0,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}},S0={state:{visitor:{},account:{},parentAccount:{},date:null,version:null,selfHosted:null},actions:{},mutations:{setMetadata(e,t){t&&(t.visitor&&(e.visitor=t.visitor),t.account&&(e.account=t.account),t.parentAccount&&(e.parentAccount=t.parentAccount),t.date&&(e.date=t.date),t.version&&(e.version=t.version),null!==t.selfHosted)&&(e.selfHosted=t.selfHosted)},clearAccount(e){e.account={}},reset(e,t){e.visitor={id:t.visitor_id},e.account={},e.parentAccount={},e.date=null,e.version=null,e.selfHosted=null}},getters:{metadata(e){return e},selfHosted(e){return e.selfHosted}}};const E0=h.getLocal();var I0="pendo-preview",_0="current-guide-preview",C0={state:{preview:null,designerPreview:null},actions:{start(e,t){e.commit("setPreview",t),e.dispatch("write")},restart(e,t){e.commit("updatePreview",{state:null}),e.commit("updatePreview",t)},update(e,t){e.commit("updatePreview",{state:t}),e.dispatch("write")},load(e){try{var t=e.getters.storage(),n=JSON.parse(t.getItem(I0)),i=(n.apiKey===E.apiKey&&e.commit("setPreview",n),t.getItem(_0));i&&e.commit("setDesignerPreview",JSON.parse(i))}catch(r){}},write(e){try{var t=e.getters.storage();e.state.preview?t.setItem(I0,JSON.stringify(e.state.preview)):t.removeItem(I0)}catch(n){}},exit(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview(e){e.commit("setDesignerPreview",null),e.getters.storage().removeItem(_0)},launchInAppDesigner(e,t){bf.launchInAppDesigner(t)}},mutations:{updatePreview(e,t){e.preview&&_.extend(e.preview,t)},setPreview(e,t){e.preview=t},setDesignerPreview(e,t){e.designerPreview=t}},getters:{isInPreviewMode(e){return!!e.preview},isInDesignerPreviewMode(e,t){return!!e.designerPreview&&t.isInPreviewMode()},storage(){return E0}}};const x0=(()=>{const n={isTop:undefined,isLeader:undefined,frameId:null,tabId:null,frames:{},autoOrdering:[],excludedGuides:[],throttling:{},enableEventLogging:!1,eventsCaptured:[],cspErrors:[],installType:null,doNotProcess:!1},a={TOP_DOWN:"top-down",BOTTOM_UP:"bottom-up"},s={debuggingEnabled:{type:a.TOP_DOWN,defaultValue:!1},guideLoopRunning:{type:a.BOTTOM_UP,defaultValue:!1},stepEligibilitySet:{type:a.BOTTOM_UP,defaultValue:{}},identity:{type:a.BOTTOM_UP,defaultValue:{}},location:{type:a.BOTTOM_UP,defaultValue:{}}};var e={init:e=>{e.commit("setFrameId",ln.getFrameId()),e.commit("setTabId",ln.getTabId()),e.commit("setInstallType",Se());var t=Sd()&&window.top===window;e.commit("setIsTop",t),e.commit("isLeader",Sd()),t?(t=kh(),e.commit("debuggingEnabled",!0===t.enabled),t.enableEventLogging&&e.commit("enableEventLogging",!0)):D.postMessage({action:"debugger/join",frameId:e.state.frameId})},join:(n,e)=>{n.state.frameId!==e.frameId&&_.each(s,({type:e},t)=>{e===a.TOP_DOWN&&D.postMessage({action:"debugger/sync",frameId:n.state.frameId,fields:{[t]:n.state[t]}})})},sync:(i,e)=>{if(i.state.frameId!==e.frameId){const{frameId:r,fields:t}=e;_.each(t,(e,t)=>{var n;s[t]&&(n=s[t]["type"],n===a.TOP_DOWN&&i.state.isTop||n===a.BOTTOM_UP&&!i.state.isTop||i.commit("_sync_"+t,{value:e,frameId:r}))})}},enableEventLogging:(e,t)=>{e.commit("enableEventLogging",t)},eventCaptured:(e,t)=>{E.designerEnabled||$h()||Zh()||(e.state.isTop?e.commit("eventsCaptured",t):D.postMessage({action:"debugger/receiveEventCaptured",frameId:e.state.frameId,event:t}))},receiveEventCaptured:(e,t)=>{e.state.isTop&&e.commit("eventsCaptured",t.event)},clearEventsCaptured:e=>{e.commit("eventsCaptured",[])},onCspError:(e,t)=>{e.state.isTop?e.commit("cspError",t):D.postMessage({action:"debugger/recieveCspError",frameId:e.state.frameId,data:t})},recieveCspError:(e,t)=>{e.state.isTop&&e.commit("cspError",t.data)},checkGuideEligibility(e,t){const{guideId:i,response:n}=t;var t=_.filter(g.state.frames.frames,e=>e.guides&&e.guides[i]);t.length&&(t=_.map(t,n=>{var e=_.map(n.guides[i].steps,(e,t)=>D.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:n.id,stepId:e.id,currentStepIndex:t,guideId:i}));return m.all(e).then(e=>({frameId:n.id,frameVisibility:n.visibility,errors:_.map(e,e=>JSON.parse(e).errors)}))}),m.all(t).then(e=>e).then(e=>n(e))["catch"](e=>n({error:e})))}};const t={},u={setFrameId(e,t){e.frameId=t},setTabId(e,t){e.tabId=t},setIsTop(e,t){e.isTop=t},isLeader(e,t){e.isLeader=t},setInstallType(e,t){e.installType=t},stepEligibilitySet(e,t){var n=t["stepId"];e.stepEligibilitySet[n]=t},guideLoopRunning(e,t){e.guideLoopRunning!==t&&(e.guideLoopRunning=t)},identity(e,t){e.identity=t},location(e,t){e.location=t},debuggingEnabled(e,t){e.debuggingEnabled=t,t=t,e=e.isTop,n.debuggingEnabled!==t&&(t?(d(),c(),y.on("stepEligibility",i),y.on("guideUpdateComplete",p),y.on("guideLoopStopped",h),y.on("eventCaptured",o),y.on("identify",d),y.on("urlChanged",c),e&&(r(),y.on("guidesLoaded",r))):(y.off("stepEligibility",i),y.off("guideUpdateComplete",p),y.off("guideLoopStopped",h),y.off("eventCaptured",o),y.off("identify",d),y.off("urlChanged",c),e&&y.off("guidesLoaded",r)))},excludedGuides(e,t){e.excludedGuides=t},autoOrdering(e,t){e.autoOrdering=t},throttling(e,t){e.throttling=t},eventsCaptured(e,t){_.isArray(t)&&0===t.length?e.eventsCaptured=[]:e.debuggingEnabled&&e.enableEventLogging&&e.eventsCaptured.unshift(t)},enableEventLogging(e,t){e.enableEventLogging=t},cspError(e,t){e.cspErrors.unshift(t),10<e.cspErrors.length&&e.cspErrors.pop()},doNotProcess(e,t){e.doNotProcess=t}};function i(e){e=e.data[0];g.commit("debugger/stepEligibilitySet",e)}function r(e){var t=_.map(eh.sortAndFilter(O,E.autoOrdering),e=>e.id);g.commit("debugger/autoOrdering",t||[]),g.commit("debugger/excludedGuides",E.excludedGuides||[]),g.commit("debugger/throttling",E.throttling||{})}function o(e){g.dispatch("debugger/eventCaptured",e.data[0])}function d(e){g.commit("debugger/identity",{visitorId:_.get(e,"data.0.visitor_id")||E.get_visitor_id(),accountId:_.get(e,"data.0.account_id")||E.get_account_id(),apiKey:E.apiKey})}function c(){g.commit("debugger/location",{href:Gr(),browserUrl:window.location.href})}function l(e){g.commit("debugger/guideLoopRunning",e)}const p=_.partial(l,!0),h=_.partial(l,!1);return _.each(s,({type:i,defaultValue:e},r)=>{n[r]=e,t[r]=e=>e[r];let o=u[r]||((e,t)=>{e[r]=t});u[r]=_.wrap(o,(e,t,n)=>{!t.isTop&&i===a.TOP_DOWN||(e(t,n),t.isTop&&i===a.BOTTOM_UP)||D.postMessage({action:"debugger/sync",frameId:t.frameId,fields:{[r]:n}})}),o=u["_sync_"+r]||o,u["_sync_"+r]=(e,{value:t,frameId:n})=>{e.frames[n]||(e.frames[n]={}),e.frames[n][r]||(e.frames[n][r]=s[r].defaultValue),o(e.frames[n],t),e.isTop||i!==a.TOP_DOWN||o(e,t)}}),{state:n,actions:e,getters:t,mutations:u}})(),T0=function(){const s=(e,t)=>_.reduce(e,function(e,t){return t.applyTo(e)},t);return{state:{transforms:[]},actions:{addAttrTransform(e,t){e.commit("addTransform",t)}},mutations:{addTransform(e,t){e.transforms.push(t)},clearURLTransforms(e){e.transforms=[]}},getters:{getAttribute(a){return function(e,t){var n,i,t=e.getAttribute?e.getAttribute(t):e[t];if(_.size(a.transforms)<1)return t;try{n=t,(i=document.createElement("a")).href=n;var r=new Zn(i.href);return _.reduce([_.partial(s,a.transforms)],(e,t)=>t(e),r).href}catch(o){return C.critical(o),t}}}}}}();const k0=function(){const i="pendo-loader";let r,o,n;return{name:"IFrameMonitor",initialize:function(e,t){r=e,o=t,function(){o.ConfigReader.get("autoFrameInstall")&&o.Events.ready.on(l);o.ConfigReader.get("frameIdentitySync")&&(o.Events.metadata.on(h),o.Events.identify.on(f),o.Events.childFrameJoined.on(a))}(),n=o.ConfigReader.get("frameIdentityTopDownOnly")},teardown:function(){o.Events.ready.off(l),o.Events.metadata.off(h),o.Events.identify.off(f),o.Events.childFrameJoined.off(a)}};function a(){g()}function s(e){return e.ignoreIframeMonitor||e.pendo&&(e.pendo.initialize||e.pendo.iframeWaiting)||!!e.document.getElementById(i)}function u(e,t){var n;s(e)||((n=o.ConfigReader.getLocalConfig()).apiKey||(n.apiKey=r.apiKey),e.pendo={_q:[["initialize",n]]},(n=e.document.createElement("script")).src=t,n["async"]=!0,n.id=i,(t=e.document.getElementsByTagName("script")[0])&&t.parentNode?t.parentNode.insertBefore(n,t):(e.document.head||e.document.body).appendChild(n))}function d(e,t){e.pendo.iframeWaiting=!1,u(e,t)}function c(e){try{if(s(e))return}catch(n){return}var t=function(){var e=o.ConfigReader.get("selfHostedAgentUrl");if(e)return e;e=r.dom("script");const t=/\/pendo(\.\w+)?\.js$/;return(e=r._.find(e,e=>t.test(e.src)))&&e.src}();t?"complete"===e.document.readyState?u(e,t):(e.pendo={iframeWaiting:!0},e.document.addEventListener("DOMContentLoaded",r._.partial(d,e,t))):r.log("Unable to find agent url to install agent in frames","debug")}function e(){var t=r.dom("iframe").length;for(let e=0;e<t;e++)c(window.frames[e]);Ut(e,250)}function l(){e()}function p(){return!n||n&&o.store.getters["frames/isLeader"]()}function h(e){p()&&(e=null==(e=e.data)?void 0:e[0]).storeChanged&&o.store.dispatch("frames/syncOptions",{options:e.options})}function f(e){var t;g(null==(t=e.data)?void 0:t[0].visitor_id,null==(t=e.data)?void 0:t[0].account_id)}function g(e=b(),t=qn()){p()&&o.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}}();function A0(e,n){return e.length==n.length&&_.all(e,function(e,t){return e===n[t]})}class R0{constructor(e){this.maxTargets=50,this.domActivation=e,this.name="dom",this.queue=[]}markDirty(){this.queue.push.apply(this.queue,this.domActivation.guides)}process(e){var t,n=this.queue.shift();if(n){e.saveContext(n);try{t=u(n.selector)}catch(i){t=[]}t.length>this.maxTargets&&(t.length=this.maxTargets),A0(t,n.targets)||(n.targets=t,this.domActivation.detach(n,this.domActivation.targets),_.each(t,function(e){this.domActivation.attach(e,n,this.domActivation.targets)},this))}}handleProcessTimeExceeded(e){e=e.getContext();e&&C.warn("Element activated guide ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var O0,N0,M0,L0,P0,F0,D0={name:"DOMActivation",key:M0="pendoTargetId",guides:L0=[],targets:P0={},reset:j0,init:q0,attach:function(n,i,e){var t=n[M0],r=t?e[t]:null;r||(t=t||"target"+_.uniqueId(),r={target:n,events:{}},e[t]=r,n[M0]=t);var o=e[i.id]||[];o.push(t),e[i.id]=o,_.each(i.events,function(e){var t=r.events[e];t||((t={guideIds:{}}).fn=_.partial(z0,_,t.guideIds),l(n,e="mouseover"===e?"mouseenter":e,t.fn),r.events[e]=t),t.guideIds[i.id]=1})},detach:B0,handler:z0,activates:H0,prefetch:W0,initialize:function(e,t){(O0=t).Events.on("deliverablesLoaded",j0),t.Events.on("guideListChanged",U0),t.Events.on("guidesLoaded",G0),_h(N0=new R0(D0))},teardown:function(){Ch(N0),O0.Events.off("deliverablesLoaded",j0),O0.Events.off("guideListChanged",U0),O0.Events.off("guidesLoaded",G0)}};function U0(){j0(),q0(Qu())}function G0(){W0(Qu())}function B0(i,t){_.each(t[i.id],function(e){var n=e?t[e]:null;n&&(_.each(n.events,function(e,t){e&&e.guideIds&&(delete e.guideIds[i.id],_.size(e.guideIds)<=0)&&(Vu(n.target,t="mouseover"===t?"mouseenter":t,e.fn),delete n.events[t])}),_.size(n.events)<=0)&&(delete n.target[M0],n.target=null,delete t[e])}),delete t[i.id]}function z0(e,t){var n;!e.pendoActivatedGuide&&!k.data.get(e,"advanced")&&(n=f.get("adoptPrioritizeAdoptGuides"),t=_.compact(_.map(_.keys(t),N)),t=_.filter(t,function(e){return!(!e.steps||!e.steps.length||_.get(e,"attributes.dom.isOnlyShowOnce")&&e.steps[0].hasBeenSeen())}),t=_(t).chain().sortBy(function(e){return"staged"===e.state?0:1}).sortBy(function(e){e=e.isTraining;return n?e?0:1:e?1:0}).value(),t=_.find(t,function(e){var t=_.first(e.steps);return _.get(e,"attributes.resourceCenter",!1)&&e.isShown()?P.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||Qg(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function j0(){_.each(L0,function(e){B0(e,P0),e.targets=[]}),L0.length=0}function H0(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(pm())){var t=_.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=yd(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function q0(e){_.each(e,function(e){e=H0(e);e&&L0.push(e)})}function W0(e){f.get("disablePrefetch")||_.each(e,function(e){_.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&_.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent(!0)})}var V0=function(){(F0=F0||{dom:k,placeBadge:Ph,showPreview:Zg,stopGuides:ph,removeAllBadges:Fh,_:_,sizzle:u,tellMaster:Va,tell:Va,log:iy,attachEvent:l,createLauncher:_.constant({}),removeLauncher:_.noop,addGuideToLauncher:_.noop,updateLauncherContent:_.noop,DEFAULT_TIMER_LENGTH:dh,getOffsetPosition:Jo,getScreenDimensions:qo,registerMessageHandler:Fa,whenLoadedCall:Ku,loadResource:Aa,loadGuideCss:Dm,GuideFactory:Zd,GuideStep:Xd,extractElementTreeContext:Fu,previewGuideFromJSON:U.previewGuideFromJSON,hidePreviewedGuide:U.hidePreviewedGuide,shadowAPI:ti,getTarget:kr,pullContentsFromTargetElement:Wg,doesElementMatchContainsRules:Vg,doesElementContentMatchRule:Jg,getGuideAttachPoint:fd}).areGuidesEnabled=!$m(),E.designer||(E.designer=F0)},J0=function(){var r,o,i;let a;return{name:"DesignerConnect",initialize:function(e,t){r=e,o=t,Za()||Fa("connect",n);Fa("pendo-designer-launch::launch",d),Fa("pendo-preview::launch",c),e.app_name=document.title,(Ja()||window.opener)&&window.addEventListener&&(r.log(e.app_name+": listening to messages"),window.addEventListener("message",Na,!1));window.opener&&r._.isFunction(window.opener.postMessage)&&window.opener.postMessage({type:"pendo::ready"},"*");r.onConnectMessage=n},teardown:function(){window.removeEventListener&&window.removeEventListener("message",Na,!1),s(),Da("connect"),Da("pendo-designer-launch::launch"),Da("pendo-preview::launch"),a&&(o.Events.appUnloaded.off(a),a=undefined);i=i&&undefined},onConnectMessage:n,disconnectDesigner:s,launchDesignerListener:d,launchPreviewListener:c,sendToken:u};function n(e,t){var n,i;r.designer||(n=t.origin,r.stopGuides(),r.buffers.lock(),i=t.source,Ta=i,r.designerv2.hostConfig||(o.store.dispatch("frames/leave"),a=r._.partial(s,i,n),o.Events.appUnloaded.on(a)),V0(),Va(t.source,{status:"success",type:"connect"},n),ja("selection.js")&&(r.log("Designer Modules already loaded."),Va({type:"ready"},n)),o.Events.designerLaunched.trigger())}function s(e,t){r.buffers.unlock(),E.designer&&(E.designer=null,delete E.designer),e&&Va(e,{type:"unload"},t)}function u(e,t){var n;i&&(n={token:i,type:"pendo-designer-launch::set-token"},t.source.postMessage(n,t.origin),i=undefined)}function d(e,t){var n,t=t.data.token;t&&(i=t,Fa("pendo-designer-launch::get-token",u),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,sidebarDesigner:!!t.sidebarDesigner},r.designerv2.launchInAppDesigner(n))}function c(e,t){var n=t.data.config.preferredAgentInstallType;n&&n!==Se()?r.log("Skipping preview launch due to agent install type mismatch."):(n=r._.extend({},t.data.config,{origin:t.origin}),uo()&&(n.apiKey=r.apiKey),o.store.dispatch("preview/exitDesignerPreview"),o.store.dispatch("preview/start",n),qh(window)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:r.apiKey,accountId:r.accountId},t.origin),sv(),o.store.dispatch("frames/startPreview")))}}();const K0="__sg__";Z0="promotedAgentMetadataConfigurations",X0=[],Y0={},Q0={};var $0,Z0,X0,Y0,Q0,eb={name:"PromoteMetadata",initialize:function(e,t){if(X0=($0=t).ConfigReader.get(Z0),Q0={},$0.agentStorage.registry.addLocal(K0,{isSecure:!0,serializer:JSON.stringify,deserializer:Rt}),Nn())try{Y0=$0.agentStorage.read(K0)}catch(n){ab()}X0&&X0.length&&($0.Events.on("metadata",ib),$0.Events.on("eventCaptured",ub),$0.Events.on("identify",rb))},teardown:function(){$0.Events.off("metadata",ib),$0.Events.off("eventCaptured",ub),$0.Events.off("identify",rb)},getPromotedMetadata:function(){return X0},hasPromotedMetadataKind:tb,setSchemaGroup:ib,getSchemaGroup:nb,resetSchemaGroup:ob,resetCachedSchemaGroup:ab};function tb(t){return _.some(X0,function(e){return e.kind===t})}function nb(){return Q0}function ib(e){var t;e?(e=e.data[0]["options"],e&&(t=e)):t=Hl(),Q0=function(r){if(Nn())try{var e=$0.agentStorage.read(K0);Y0=function(e){e=_.mapObject(e,(t,e)=>{const n={};return _.each(Object.keys(t),function(e){n[e.replace("agent__","")]=t[e]}),n});return e}(Y0=e)}catch(t){ab()}var o=Q0;_.each(["visitor","account","parentAccount"],function(e){var t=tb(e),n=!_.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!_.isEmpty(Y0)&&_.isEmpty(ys.get())&&(o[i]=sb(Y0[i],e)),n)&&(t=sb(r[e],e),_.isEmpty(t)||(o[i]=Object.assign(Object.assign({},o[i]),t)))}),Nn()&&$0.agentStorage.write(K0,o);return o}(t)}function rb(e){e=e.data[0];_.get(e,"wasCleared")&&($0.agentStorage.clear(K0),ob())}function ob(){Q0={}}function ab(){Y0={}}function sb(e,i){var r={};return e&&_.each(e,function(e,t){var n=t.toLowerCase();Boolean(_.find(X0,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function ub(e){e=e.data[0];e&&(_.isEmpty(Q0)&&ib(),_.isEmpty(Q0)||("track"===e.type?e.props.__sg__=Q0:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=Q0)))}function db(e,t,n){this.element=e,this.method="element"==t?"click":"hover"==t?"mouseover":t,this.step=n,this.guide=n.getGuide()}db.prototype.add=function(){0===_.indexOf(this.guide.steps,this.step)&&!db.shouldAttachHandler(this.guide,this.method)||dd(this.guide)&&!cd(this.guide)||this.setupElementEvent(this.element,this.method)},db.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},db.prototype.setupElementEvent=function(e,t){this.advanceFn||(this.advanceFn=_.compose(_.bind(this.teardownElementEvent,this,e,t),_.bind(this.step.advance,this.step))),db.attach(this.step,e,t,this.advanceFn)},db.prototype.teardownElementEvent=function(e,t){C.info("detach onGuideAdvanced",{contexts:["guide"]}),Vu(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},db.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||D0.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector};var cb=null,lb=function(){return hd()?ud:sd},pb=function(e){return"#_pendo_g_"+e.id},hb=function(e,t){cb=null;var n,i,r,o,e=Jo(e);return 0===e.height&&0===e.width?null:(n=t.guideElement,o=t.attributes.height,i=t.attributes.width,r=t.attributes.layoutDir,n.addClass(lb()),o=Ib(e,o,i,r),t&&(t.dim=o),n.css({width:o.width,height:o.height,left:o.left,top:o.top}),e.fixed&&n.css({position:"fixed"}),k("._pendo-guide-container_",n).addClass(o.arrowPosition).css({top:o.content.top,left:o.content.left,width:o.content.width,height:o.content.height}),fb(n[0],o),n[0])},fb=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=_.chain(n).filter(function(e){return e!==o}).map(function(e){return"border-"+e+"-width:"+E.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=k("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),u=k("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");_.each(n,function(e){s.removeClass(i+e+"_").removeClass(e),u.removeClass(r+e+"_").removeClass(e)}),s.addClass(i+o+"_").addClass(o).css(a+"top:"+t.arrow.top+"px;left:"+t.arrow.left+"px;"),u.addClass(r+o+"_").addClass(o).css(a+"top:"+t.arrow.border.top+"px;left:"+t.arrow.border.left+"px;"),k(e).append(s).append(u)},gb=function(e,t){t===undefined&&(t=$u),e.element=md(e);var n=e.element;if(!n)return C.info("No element found for step: "+e.id),null;ga(n);var i=hb(n,e);return null===i?null:(i.id=E.getTooltipDivId(e),k(i).appendTo(fd()),t.push(i),l(i,"mouseover",_.partial(k.addClass,i,"mouseover")),l(i,"mouseout",_.partial(k.removeClass,i,"mouseover")),bd(n,i),wb(e),n)},mb=null,vb=null;var yb=null,bb={top:"north",left:"east",bottom:"south",right:"west"},wb=function(e){try{var t,n,i,r,o,a,s,u;e.attributes&&e.attributes.blockOutUI&&e.attributes.blockOutUI.enabled&&(t=e.attributes.blockOutUI,(n=[]).push(e.element),i=wc(n=n.concat(_.compact(_.flatten(_.map(t.additionalElements,function(e){return _.toArray(k(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=bc(a=yc(),i,o),h=i,f=!_.isEqual(h,mb),mb=h,f||(l=a,p=!_.isEqual(l,vb),vb=l,p)||(d=s,c=!_.isEqual(d,yb),yb=d,c))&&(u={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(u["background-color"]=t.bgColor),t.opacity&&(u.opacity=t.opacity),_.each(s,function(e,t){t=bb[t],e=_.extend({},e,u),t=k("div._pendo-guide-tt-region-block_._pendo-region-"+t+"_")[0]||Sb(t),k(t).css(e)}))}catch(g){C.info("Failed to add BlockOut ui",{contexts:["error"]})}var d,c,l,p,h,f},Sb=function(e){e=k(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");k("body").append(e)},Eb=function(e){var t=_.isEqual(e,cb);return cb=e,!t},Ib=function(e,t,n,i){var r=E.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=qo();return o.width=Math.min(n,a.width),o.height=t,o.content.width=o.width-2*r,o.content.height=o.height-2*r,o=_b(o,e,a,i=i||"auto"),o=Cb(o,e,a,i),o=xb(o,e,a)},_b=function(e,t,n,i){return e.arrow.hbias=Dc(t,n,i),e},Cb=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-mo(),t=(r=t.left-vo())+t.width,i<n.height/3?e.arrowPosition="top":i>2*n.height/3||"center"==e.arrow.hbias?e.arrowPosition="bottom":r<e.width&&n.width-t<e.width?e.arrowPosition="top":e.arrowPosition=e.arrow.hbias),e},xb=function(e,t,n){var i,r,o,a=e.height,s=e.width;return je()?He(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=Te(9,6)?6:2,i=-1):"bottom"==e.arrowPosition&&(e.top=t.top-a,e.arrow.top=a-E.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=Te(9,6)?6:0,e.arrow.top+=8==xe?-1:0,i=1),r=10+E.TOOLTIP_ARROW_SIZE,o=s-3*E.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==Lc?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==Pc?(e.left=t.left-s+t.width/2+(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=o):(e.left=t.left+t.width/2-s/2,e.arrow.left=s/2-E.TOOLTIP_ARROW_SIZE),!1!==e.arrow.floating&&(n=e.left+s-n.width,0<(n-=Math.max(0,e.arrow.left+n-o))&&(e.left-=n,e.arrow.left+=n),o=-e.left,0<(o-=Math.max(0,r-(e.arrow.left-o))))&&(e.left+=o,e.arrow.left-=o),e.arrow.border.top=e.arrow.top+i,e.arrow.border.left=e.arrow.left):(e.arrow.hbias==Lc?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=Te(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==Pc&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=Te(10,6)?5:0,e.arrow.left+=7==xe&&6<=Ne?1:0,e.arrow.border.left=e.arrow.left+1),e.top=t.top-a/2+t.height/2,e.arrow.top=a/2-E.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e)},Tb=430,kb=200,Ab=15;function Rb(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||E.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||E.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.getTriggers=function(e){var t=this,n=t.element||md(t);return!n&&e?[]:(e=(t.advanceMethod||"").split(","),this.triggers=_.map(e,function(e){return new db(n,e,t)}),this.triggers)},this.removeTrigger=function(e){this.triggers=_.without(this.triggers,e),0===this.triggers.length&&(this.triggers=null)},this.canShow=function(){return!jg(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(pm())&&qg(t)},this.after("render",function(){gb(this,this.elements)&&(_.each(this.getTriggers(),function(e){e.add()}),Gc.attachScrollHandlers(this,this.onscroll))}),this.reposition=function(){var e=this.attributes.width,t=this.attributes.height,n=this.attributes.layoutDir,i=this.guideElement,r=k("._pendo-guide-container_",i),o=Jo(this.element),t=Ib(o,t,e,n);r.removeClass("top right bottom left").removeClass("_pendo-guide-container-top_ _pendo-guide-container-right_ _pendo-guide-container-bottom_ _pendo-guide-container-left_").addClass(t.arrowPosition).addClass("_pendo-guide-container-"+t.arrowPosition+"_"),k("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),fb(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,wb(this)},this.onscroll=function(e){ha(e.element)?(e.reposition(),jo(e.elements[0],"display:block")):jo(e.elements[0],"display:none")},this.teardownElementEvent=function(){_.each(this.triggers,function(e){e.remove()})},this.after("hide",function(){k("._pendo-guide-tt-region-block_").remove(),yb=vb=mb=null})),this}var Ob=function(e,t){var n=!!k("._pendo-backdrop_")[0];return _.get(t,"overlayDiv[0]")||(t.overlayDiv=k(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(fd())),je()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&k(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},Nb=function(e){var t=e.guideElement,n=E.TOOLTIP_ARROW_SIZE,i=e.attributes.height,e=e.attributes.width,e=Math.floor(e/2),i=Math.floor(i/2);t.addClass("_pendo-guide-lb_").css({top:"50%",left:"50%","margin-top":-i,"margin-left":-e}),k("._pendo-guide-container_",t).css({bottom:n,right:n}),je()&&t.css({position:"absolute"})},Mb=function(e,t){t===undefined&&(t=$u),e.element=md(e),Nb(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(Ob(n,e),e.guideElement);t.push(n[0]),n.appendTo(fd())},Lb=function(e,t){t===undefined&&(t=$u),e.element=md(e),e.guideElement.addClass("_pendo-guide-mobile-lb_");var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=Ob(n,e),e=e.guideElement,i=E.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(fd()),t.push(e[0]),l(n[0],"touchmove",r),l(e[0],"touchmove",r)};function Pb(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||E.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||E.LB_DEFAULT_WIDTH,e.after("render",function(){(hd()?Lb:Mb)(e,e.elements)}),e.reposition=function(){hd()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var Fb=500,Db="_pendo-guide-banner_";function Ub(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||Fb,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=E.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(Db).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),pd()||e.addClass("_pendo-in_"),k("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=md(n),n.elements.push(e[0]),e.appendTo(fd())})),n}function Gb(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(_.extend(n,{isShown:_.constant(!1),launch:u,onShown:u,render:function(){var e=n.guideElement,t=n.attributes.height;e&&e.html()||(e=k(document.createElement("div")).attr("id",Kg(n)).addClass("_pendo-guide-whatsnew_").html(n.getContent()),_.isNumber(t)&&!n.attributes.autoHeight&&e.height(t),n.seenState===r&&e.addClass(i),n.guideElement=e)},seen:s}),_.extend(t,{addToLauncher:function(){var e=n.guideElement;e&&!Qo(e[0])&&(k("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),rc.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){pd()||a()&&n.seenState!==r&&function(e){{var t,n;if(ha(e,/(auto|scroll|hidden)/))return(t=ia(e))?(t=ea(t),e=ea(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(tm(n.guideId,n.id,b(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,_.delay(function(){n.guideElement.addClass(i+" out")},_.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function u(){}}var Bb="_pendo-launcher-searching_",zb="._pendo-launcher-search-box_ input";var jb,Hb=function(e){return e&&_.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function qb(){var e;return function(){var e;if(E.guideWidget)return(e=E.guideWidget.data)&&e.enableSearch}()&&(e=k(zb)[0])&&0<(e=e.value).length?(e=Qe.call(e),[].concat(_.compact(e.split(" ")))):[]}function Wb(e){if(!f.get("disablePrefetch"))return m.all(_.map(e,function(e){return e.fetchContent()}))}function Vb(e,t){return C.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||O,t&&0!==t.length?_.chain(e).filter(Hb).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return _.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var Jb=function(){var e=ad();if(Sd()){if(E.guideWidget&&E.guideWidget.enabled){var t=n1(e),n=!0;if(E.guideWidget&&_.isFunction(E.guideWidget.update))E.guideWidget.update(t,n)}}else{p1();t=ed(e),n=i1(n1(t));n!==jb&&g.dispatch("frames/changeGuideList",t),jb=n}},Kb="launcher-closed",$b=null,Zb=null,Xb=!(db.attach=function(e,t,n,i){if(e){for(var r=db.handlers=db.handlers||{},o=r[e.id]=r[e.id]||[],a=0;a<o.length;++a){var s=o[a];t===s[0]&&n===s[1]&&(Vu(t,n,s[2],!0),o.splice(_.indexOf(o,s),1),a--)}o.push([t,n,i]),Vu(t,n,i,!0),l(t,n,i,!0)}}),Yb="_pendo-launcher-active_",Qb=null,e1=function(){return""};function t1(e,t){e1=t}function n1(e){var t,e=_.filter(e||O,Hb);return e=e,0===(t=qb()).length?e:(t=_.map(t,_.partial(Vb,e)),_.union.apply(_,t))}function i1(e){return at(_.map(e,function(e){var t=e.isWhatsNew()?[]:_.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function r1(e){var n=this,t=e.launchType||"badge",i=(_.extend(n,{show:function(){"badge"===t&&k(n.element).css("display: ;")},hide:function(){k(n.element).css("display: none;")},wrap:function(){var e=n.element;{var t;e&&/^img$/i.test(e.nodeName)&&(t=k(document.createElement("div")).addClass(e.className).append(e).appendTo(fd()),e.className="",n.element=t[0])}},dispose:function(){k.removeNode(n.element)},setActive:function(e){e?k(n.element).addClass(Yb):k(n.element).removeClass(Yb)}}),e),e=i.position||"bottom-right",r=document.createElement("img");k(n.element=r).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+e+"_"),i.launcherBadgeUrl&&(r.src=Yd(i.launcherBadgeUrl)),r.onerror=function(e){C.info("[Agent] Error! Unable to load guide center image "+i.launcherBadgeUrl),C.critical("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},je()&&(l(r,"mouseover",function(e){k(r).addClass("_pendo-launcher-badge-active_")}),l(r,"mouseout",function(e){k(r).removeClass("_pendo-launcher-badge-active_")}),k(r).css({position:"absolute"})),fd().appendChild(r)}function o1(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=kr(e),t=n();k(e).closest(t).length&&(v1()?h.write(Kb,"yes"):E.guideWidget.position(e),S1())}E.guideWidget.removeCountBadge=function(){k("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),_.extend(this,{getLauncherTarget:function(){return k(n())[0]},dispose:function(){Vu(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&k("._pendo-launcher-whatsnew-count_").remove()}}),l(document,"click",t)}function a1(){var n,s="bottom-right",u="bottom-left";return this.update=function(e,t){t=t?e:n1(e),e=i1(t)+at(qb());return e!==n&&(n=e,this.updateLauncherContent(t)),c1(),0<t.length},this.updateLauncherContent=g1,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=($b=new r1(e),e.height||310),n=(e.enableSearch&&(t+=je()?50:39),this&&!this.hidePoweredBy&&(t+=40),e.addHeight&&(t+=e.addHeight),this.height=t,e.width||330),i=(e.addWidth&&(n+=e.addWidth),this.width=n,k(document.createElement("div")).addClass("_pendo-launcher_")),r=(Zb=i[0],Jo($b.element)),r=Ib(r,t,n),o=(i.css({width:n,height:t}),E.TOOLTIP_ARROW_SIZE),n=k(document.createElement("div")).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=f1(),o=Yd(s1(this.template(t))),t=k(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),Eg(i[0],function(){b1(),h.write(Kb,"yes",288e5)}),t.on("click",function(e){var t=k(kr(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=N((t=/^launcher-(.+)$/.exec(Qe.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(Qg(t.steps[0],"launcher"),b1(),Ju(e))}),je()&&(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(fd()),_.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!Te(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=Jo(e),n=Ib(e,this.height,this.width),i=k(Zb),"badge"===(r=t.launchType||"badge")?(o=t.position,_.indexOf(a=[s,u,"top-left","top-right"],t.position)<0&&(o=s),_.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=_.contains([s,u],o)?"bottom":"top",n.arrow.hbias=_.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(),xb(n,e,{width:Infinity,height:Infinity}),fb(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=S1,this}function s1(e){return e=_.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function u1(e,t){e.contentHostUrl&&(e.contentHostUrl=(n=e.contentHostUrl,i=location,(r=f.getLocalConfig("contentHost"))&&(n=(n=n.replace(/^pendo-static-\d+\.storage\.googleapis\.com$/,r).replace(/^pendo-\w+-static\.storage\.googleapis\.com$/,r).replace(/^cdn\.pendo\.io$/,r)).replace(/^https?:/,"").replace(/^\/\//,""),!/\./.test(n))&&!/^localhost/.test(n)&&/^\//.test(n)?i.host+n:n)),Qb=new o1(e);var n,i,r=a1.create(E.guideWidget);return _.isFunction(r.template)||(r.template=e.template?_.template(e.template):e1),r.render(),r.position(Qb.getLauncherTarget()),t&&r.toggle(),r}a1.create=function(e){return _.reduce(a1.behaviors,function(e,t){return t.call(e)},e)},a1.behaviors=[xh,a1,Jd.Launcher,function(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){k(zb).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,E.disableGuideCenterContentSearch||this.before("update",Wb),this.before("update",function(){t.text=qb().join(" ");var e=k("._pendo-launcher_");t.text?e.addClass(Bb):e.removeClass(Bb)})),this},function(){var n=this;{var i;n.data&&n.data.onboarding&&(i=n.onboarding=n.onboarding||{},n.before("update",function(e){var e=_.filter(e,Ky),t=_.filter(e,function(e){return"complete"==n.guideStatus(e)}),e=i.total=e.length,t=(i.percentComplete=0<e?Math.round(t.length/e*100):0,k("._pendo-launcher_,._pendo-launcher-badge_"));e?(t.addClass("onboarding"),t.addClass("_pendo-launcher-onboarding_")):(t.removeClass("onboarding"),t.removeClass("_pendo-launcher-onboarding_"))}),n.getOnboardingState=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":e.isNotStarted()?"not-started":null})}return n},function(){var n=this,i=k(document.createElement("div")).addClass("_pendo-launcher-whatsnew-count_");n.data&&n.data.whatsnew&&n.data.whatsnew.enabled&&(n.before("updateLauncherContent",function(e){e=_.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=(_.each(t,function(e){e.show()}),_.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),_.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(){h1()?i.appendTo(this.data.launchElement):($b.wrap(),i.appendTo($b.element))}));return 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())<e?1:e<t?-1:0):n}}];var d1=function(){Zb&&(k.removeNode(Zb),Zb=null),Qb&&(Qb.dispose(),Qb=null),$b&&($b.dispose(),$b=null)},c1=function(){(!h1()&&(y1()||0<qb().length)?l1:p1)()},l1=function(){$b&&$b.show()},p1=function(){h1()||b1(),$b&&$b.hide()},h1=function(){return!(!E.guideWidget||!E.guideWidget.data||"element"!==E.guideWidget.data.launchType)},f1=function(e){var t=Hl(),t=_.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:rt(t)},E.guideWidget);return t.data=_.extend({},t.data),e&&(t.guides=e),t};function g1(e){var t=E.guideWidget.template||e1,e=f1(e),e=k(document.createElement("div")).html(s1(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 m1=_.compose(c1,function(e,t){var n,i,r,o;Hb(e)&&(n=k("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0])&&(e=(o=k("#launcher-"+e.id)).length?o[0]:(e=e,k(i=document.createElement("div")).addClass("_pendo-launcher-item_"),k(i).attr("id","launcher-"+e.id),(r=document.createElement("a")).href="#",r.innerHTML=e.name,i.appendChild(r),i),o=0<o.length,_.isNumber(t)&&(r=k("._pendo-launcher-item_"))[t]?e.id!=r[t].id&&n.insertBefore(e,r[t]):n.appendChild(e))}),v1=function(){return k(Zb).hasClass(Yb)},y1=function(){return 0<k("._pendo-launcher-item_").length},b1=function(){var e;Zb&&(e=k(Zb))&&e.hasClass(Yb)&&(e.removeClass(Yb),$b)&&$b.setActive(!1)},w1=function(){var e;Zb&&(e=k(Zb))&&!e.hasClass(Yb)&&(e.addClass(Yb),$b)&&$b.setActive(!0)},S1=function(){Zb&&!Xb&&(v1()?b1:w1)()};var E1=function(){try{var e=E.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};d1(),!hd()&&!n.desktop||hd()&&!n.mobile||Ja()&&!n.iframe||e.enabled&&(u1(t),p1())}catch(i){C.critical("ERROR while initializing launcher",{error:i})}},I1=function(e){e.defaultLauncher=t1,_.each(e._defaultLauncher_queue,e=>{t1.apply(null,e)}),e._defaultLauncher_queue=[],e.toggleLauncher=S1,e.showLauncher=w1,e.hideLauncher=b1,e.removeLauncher=d1,e.initLauncher=E1,e.createLauncher=u1,e._addGuideToLauncher=m1,e.launcherToolTipDiv=Zb},_1=function(){E1()},C1=function(){var e;(e=E).designer&&(e.designer.createLauncher=u1,e.designer.removeLauncher=d1,e.designer.addGuideToLauncher=m1,e.designer.updateLauncherContent=g1)},x1=function(){var e;(e=E).debugging&&(e.debugging.getLauncherGuides=n1)},T1=function(e){return i=E.guideWidget,e=e,r=i&&i.data,e=_.filter(e,function(e){e=_.first(e.steps);return e&&"launcher"===e.type}),(e=_.first(_.sortBy(e,function(e){return-e.lastUpdatedAt})))&&r&&(e=_.first(e.steps),_.extend(r,_.pick(e,"contentUrl","contentUrlCss","contentUrlJs"),e.attributes),_.defaults(r,{whatsnew:{},knowledgebase:{}}),r.id=e.guideId+e.id),n=(t=i)&&t.data||{},!0!==f.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?Ud.verify(n).then(function(){return ec.load(n)}).then(function(e){return n.template=e.content,_.extend(t,e)}):m.resolve();var t,n,i,r},k1=function(e,t){I1(e),t.Events.on("guidesLoaded",_1),t.Events.on("designerLaunched",C1),t.Events.on("debuggerLaunched",x1),t.GuideLoop.addUpdatePhase(Jb),Om.push(T1),t.agentStorage.registry.addLocal(Kb,{duration:864e6})},A1=function(e,t){var n;n=T1,0<=(n=_.indexOf(Om,n))&&Om.splice(n,1),t.GuideLoop.removeUpdatePhase(Jb),t.Events.off("guidesLoaded",_1),t.Events.off("designerLaunched",C1),t.Events.off("debuggerLaunched",x1)};gv.Extensions.API.addTopic("Launcher",{addBehavior(e){a1.behaviors.push(e)}});var R1,O1,N1,M1,L1={name:"P1Guides",initialize:function(e,t){var n;N1=t,R1=(O1=e).dom,M1=[Rb,Pb,Ub,Gb,D1,U1,F1,P1],-1<_.indexOf(Xd.behaviors,Rb)||(n=_.indexOf(Xd.behaviors,Qy),Xd.behaviors.splice.apply(Xd.behaviors,[n,0].concat(M1)),t.Events.guideLoopStopped.on(p1),e.TOOLTIP_DEFAULT_WIDTH=Tb,e.TOOLTIP_DEFAULT_HEIGHT=kb,e.TOOLTIP_ARROW_SIZE=Ab,e._showElementGuide=gb,e._createTooltip=hb,e._get_tooltip_dimensions=Ib,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e._showLightboxGuide=Mb,k1(e,t))},teardown:function(){A1(0,N1),N1.Events.guideLoopStopped.off(p1),O1._.each(M1,function(e){e=_.indexOf(Xd.behaviors,e);0<=e&&Xd.behaviors.splice(e,1)}),M1=[]}};function P1(){const o=this;return"tooltip"!==o.type||o.domJson||(o.checkPlacement=function(){var e,t,n,i,r;e=o,r=Jo(e.element||md(e)),wb(e),Eb(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=Ib(r,n,i,t),(i=k(pb(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),fb(i,n))}),o}function F1(){var i=this;return i.attributes&&i.attributes.autoHeight&&(i.after("render",function(){i.guideElement&&i.guideElement.length&&(i.resize(),i.attachEvent(i.guideElement[0],"load",function(){i.resize()}))}),i.resize=function(){var e,t=E.TOOLTIP_ARROW_SIZE,n=i.guideElement;n&&(e=R1("._pendo-guide-container_",n),"tooltip"==i.type||je()&&"lightbox"==i.type?e.css({width:i.attributes.width-2*t,height:""}):e.css({right:t,bottom:""}),i.attributes.height=e.height()+2*t,n.height(i.attributes.height),i.reposition())}),i}function D1(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&Eg(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||Fg(t)})}),t}function U1(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||ld(e.guide)||e.after("render",function(){zg(e.guideElement[0])}),e}var G1,B1,z1={name:"Branding",initialize:function(e,t){G1=e,(B1=t).ConfigReader.get("isPendoFree")&&B1.Events.on("guideSeen",j1)},teardown:function(){B1.Events.off("guideSeen",j1)},addBranding:H1};function j1(e){H1(G1,e)}function H1(e,t){var n,i,r,t=t.data[0].props;t.step_poll_types&&-1<t.step_poll_types.indexOf("NPSRating")&&(e=-1<(t=e.findGuideById(t.guide_id).steps[0].guideElement[0].lastElementChild).dataset.verticalAlignment.indexOf("Bottom"),n=""!==t.style.width,(i=document.createElement("a")).href="https://www.pendo.io/pendo-free/nps?utm_source=pendo_app&utm_medium=branded-nps&utm_campaign=free-branded-nps",i.target="_blank",(r=document.createElement("img")).setAttribute("src",ao()+"/img/nps-branding.png"),i.appendChild(r),i.style.display="inline-block",(r=document.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))}var q1,W1=function(){let r;var o,n,i;const a="automation",e=250,t=500,s=0,u=10;return{name:"ActionAutomation",automationQueue:void 0,initialize:function(e,t){o=e,n=t,r=o._,this.automationQueue=[],t.EventRouter.registerAction(a,e._.bind(d,this))},teardown:function(){n.EventRouter.deregisterAction(a),this.automationQueue=[]},guideActivity:d,getAutomationFromGuide:function(i,e){return r.reduce(e,function(e,t){var n=r.find(i,function(e){return e.id===t});return n?e.push(n):o.log("could not find automation for "+t,"debug"),e},[])},getAutomationConfigs:function(e){if(!e||e.length<=0)return[];if(!i)return[];var t=i.guide,n=i.step;if(!t||!n)return[];n=t.automations;if(!n||!n.length)return[];n=this.getAutomationFromGuide(n,e),e=n[n.length-1];if(this.isAutomationInQueue(e))return o.log("Automation is already in queue autoId: "+e.id+", guideId: "+t.id,"debug"),[];return n},getTarget:function(e){e=e.target.elementPathRules,e=o.Sizzle(e,document);return e&&e[0]},getElement:function(n,i=u){return new Qt(r.bind(function(t){return Ut(r.bind(function(){var e=this.getTarget(n);e&&!e.disabled||i<1?t(e):this.getElement(n,i-1).then(function(e){t(e)})},this),e)},this))},getValue:function(e){return e.value},injectText:function(e,t){let n;"INPUT"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"));"TEXTAREA"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype,"value"));n&&"function"==typeof n.set?n.set.call(e,t):e.value=t;t=new InputEvent("input",{bubbles:!0,data:t[t.length-1]}),t.simulated=!0,e.dispatchEvent(t),t=new InputEvent("change",{bubbles:!0});t.simulated=!0,e.dispatchEvent(t)},simulateClick:function(e){e.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0,cancelable:!0})),e.click()},isAutomationInQueue:function(t){return!!r.find(this.automationQueue,function(e){return t.id===e.id})},popQueue:function(){let e=s;const n=this.automationQueue[0];"autoclick"===n.type&&(e=t);return Ut(r.bind(function(){return this.getElement(n,u).then(r.bind(function(e){if(e)if(e.disabled)this.automationQueue=[],o.log("automation target found but disabled. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug");else{switch(n.type){case"autofill":var t=this.getValue(n);this.injectText(e,t);break;case"autoclick":this.simulateClick(e)}this.automationQueue.shift(),this.automationQueue.length&&this.popQueue()}else this.automationQueue=[],o.log("automation target element not found. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug")},this))},this),e)},setActive:function(e){i=e}};function d(e){var t;e.step&&(this.setActive({guide:e.step.guide,step:e.step}),e.params)&&((e=r.find(e.params,function(e){return"automationIds"===e.name&&r.isArray(e.value)&&e.value.length}))?(e=this.getAutomationConfigs(e.value),t=!this.automationQueue.length,this.automationQueue=this.automationQueue.concat(e),t&&this.popQueue()):o.log("no automation ids were found","debug"))}}();function V1(e,i){return"undefined"!=typeof Proxy&&_.isFunction(i)?new Proxy(e,{get(e,t){if("textContent"===t)return i(e);if("parentNode"===t){var n=e[t];if(e.ownerDocument!==n)return V1(e[t],i)}return _.isFunction(e[t])?function(){return e[t].apply(e,arguments)}:e[t]}}):e}const J1=function(){let n,l,p,h,t;const i=$n(function(n){{var e;p.eventProperties&&p.eventProperties.length&&(e=function c(i){var r=h.ConfigReader.get("eventPropertyMatchParents");var e=v();var t={};var n;for(var o=0;o<p.eventProperties.length&&v()-e<50;o++){n=p.eventProperties[o];var a=p._.any(n.featureRules,function(e){try{var t=f(r,l);return t(i,e)}catch(n){return!1}});if(a)for(var s=0;s<n.eventPropertyRules.length&&v()-e<50;s++){var u=n.eventPropertyRules[s];if(!u.name)return;t[u.name]=m(u,i)}}var d=v()-e;if(50<d){if(r&&l===p._.identity&&p._.isFunction(p.getText))return p.log("switching event property collection to fast text implementation"),l=function(e){return V1(e,function(e){return p.getText(e,128)})},c(i);g(50,n)}return t}(n.target),p._.each(p._.pairs(e),([e,t])=>{n.addEventProperty(e,t)}))}}),r=$n(function(){var e={};if(n)return{};var t=h.ConfigReader.get("eventPropertyConfigurations");if(!t||p._.isEmpty(t))return{};if(e=function(e){for(var t,n=v(),i={},r=0;r<e.length&&v()-n<50;r++){if(!(t=e[r]).name)return;var o=m(t);me(o)&&(i["_pendo_"+t.name]=o)}50<v()-n&&g(50,t);return i}(t),p._.isEmpty(e))return{};return e});return{name:"EventProperties",initialize:function(e,t){p=e,h=t,l=p._.identity,n=!1,p.getEventPropertyTarget=s,p.previewEventProperty=m,h.Events.onClickCaptured.off(o),h.Events.onClickCaptured.on(o),h.Events.ready.on(a)},teardown:function(){h.Events.onClickCaptured.off(o),h.Events.ready.off(a),h.store.dispatch("location/removeInternalTransforms",t),t=[],h.store.dispatch("location/stopPolling")},collectClickEventProperties:i,collectEventProperty:m,collectPageEventProperties:r,getEventPropertyTarget:s,addPageEventProperties:a};function f(e,n){return e?function(e,t){return 0<p.dom(n(e)).closest(t).length}:function(e,t){return p.Sizzle.matchesSelector(e,t)}}function o(e){i(e.data[0])}function a(){var e;t=(e=h.ConfigReader.get("eventPropertyConfigurations"))&&!p._.isEmpty(e)?[new Ty("search","AddTo",function(){return r()})]:[],h.store.dispatch("location/addInternalTransforms",t),0<t.length&&h.store.dispatch("location/startPolling")}function g(e,t){p.log("event property collection disabled; collection took greater than "+e+" milliseconds.");e="ERROR event property collection exceeded time limit.";t.featureId?e+="\n For feature with id: "+t.featureId:e+="\n For page event with name: "+t.name,h.log.critical(e),t.featureId?p.eventProperties=[]:n=!0}function m(e,t){if(e.path)return t=s(e,t),p._.get(t,e.path,undefined)}function s(e,t){e=e.source||e.selector;if(e&&t){for(var n,i=e,r=t;!n&&r;){try{if((n=p.Sizzle.matchesSelector(r,i)?r:p.Sizzle(i,r)[0])&&("password"===n.type||"hidden"===n.type))return}catch(o){return}r=ti.getParent(r)}return n}return e?!(t=p.Sizzle(e)[0])||"password"!==t.type&&"hidden"!==t.type?t:void 0:window}}();function K1(){var e;kh().enabled&&(g.commit("debugger/debuggingEnabled",!0),$1(),k("#pendo-client-debugger").length||(e=f.get("agentDebuggerPluginLoader"),gv.restartDebugger?gv.restartDebugger():"function"==typeof e?e():((e=document.createElement("script")).src=Z(E).createScriptURL(so("debugger-plugin.min.js")),e.setAttribute("id","pendo-debugger-plugin"),f.get("pendoGlobalKey")&&e.setAttribute("data-pendo-global-key",f.get("pendoGlobalKey")),k.getBody().appendChild(e)),y.debuggerLaunched.trigger()))}function $1(){q1=q1||{store:g,ConfigReader:f,getState(){return JSON.stringify(g.state)},getEventCache(){return[].concat(Xa)},getAllGuides(){return[].concat(O)},getAutoGuides(){return eh.sortAndFilter(O,E.autoOrdering)},getBadgeGuides(){return _.filter(O,dd)},getLauncherGuides(){return[]},getEventHistory(){return[]},getAllFrames(){return g.getters["frames/allFrames"]()},getChannelType(){return g.getters["frames/channelType"]()},isStepShownInFrame(e,t){return g.getters["frames/isShownInFrame"]()(e,t)},setActiveGuides:td,getBody:k.getBody,isMobileUserAgent:ze.isMobileUserAgent,areGuidesDelayed:Zm,doesElementMatchContainsRules:Vg,getMetadata:Hl,isStagingServer:re,AutoDisplay:eh,isLeader:Sd,Events:y,observer:Rv,guideCache:Jm},E.debugging=q1}function Z1(e){if(Ah())return e?t:"debugging already enabled";if(!Sd())return;const t=kh();return t.enabled=!0,h.write(Th,t),K1(),e?t:"debugging enabled"}function X1(){if(!Ah())return"debugging already disabled";g.commit("debugger/debuggingEnabled",!1);var e=kh();return e.enabled=!1,h.write(Th,e),E.debugging=null,delete E.debugging,k("#pendo-client-debugger").remove(),"debugging disabled"}_.extend(function(e){C.debug(e,{contexts:["debug"]})},q1);const Y1=(e,t,n)=>{if(t.getters["frames/leaderExists"]())return n.resolve();const i=n.defer();return e.on("leaderChanged",()=>{i.resolve()}),i.promise},Q1=function(){let t,o;return{name:"DebuggerLauncher",initialize:function(n,e){const{Events:i,q:r}=e;o=e.store,Y1(i,o,r).then(()=>{o.dispatch("debugger/init"),o.getters["frames/isLeader"]()&&K1()}),Fa("pendo-debugger::launch",(e,t)=>{e.config.apiKey===n.apiKey&&Y1(i,o,r).then(()=>{t.source.postMessage({type:"pendo-debugger::ready",apiKey:n.apiKey},t.origin),!Ah()&&o.getters["frames/isLeader"]()&&Z1(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",a);(t=n).isDebuggingEnabled=(e=!1)=>Ah(e),n.enableDebugging=Z1,n.disableDebugging=X1,n.addDebuggingFunctions=$1},teardown:function(){Da("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",a),t.debugging&&t.debugging.teardown&&t.debugging.teardown();X1()}};function a(e){var{blockedURI:e,documentURI:t,originalPolicy:n,violatedDirective:i}=e;e&&-1!==e.indexOf("pendo")&&o.dispatch("debugger/onCspError",{blockedURI:e,documentURI:t,originalPolicy:n,violatedDirective:i})}}(),ew=function(){let i,a=0,s,u,d,c,l=[];const p=100,h=9;let f;const o=4,g=500,m=["TEXTAREA","INPUT"];let v=!0,y={},n,b,r;const w="previous_page_loads";let S;const E="errorClickLogging",I=1500;let _=!1;return{name:"FrustrationEvent",initialize:function(e,t){S=e,c=S._,i=t,a=0,l=[],f=[],y={},_=i.ConfigReader.get(E),this.detachErrorEvent=i.attachEvent(window,"error",L,!0),this.detachDocumentEvents=function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange","visibilitychange","selectionchange","scroll"],t=[];for(var n=0;n<e.length;n++)switch(e[n]){case"selectionchange":t.push(i.attachEvent(window,e[n],T,!0));break;case"visibilitychange":t.push(i.attachEvent(window,e[n],()=>{x(250)},!0));break;default:t.push(i.attachEvent(window,e[n],x,!0))}return t}(),i.Events.on("eventCaptured",F),i.agentStorage.registry.addSession(w),S.sniffer.MutationObserver&&(e=lt("MutationObserver"),(n=new e(k)).observe(S.dom.getBody(),{childList:!0,attributes:!0,subtree:!0}))},teardown:function(){i.Events.off("eventCaptured",F),this.detachErrorEvent&&(this.detachErrorEvent(),this.detachErrorEvent=null);if(this.detachDocumentEvents){for(var e=0;e<this.detachDocumentEvents.length;e++)this.detachDocumentEvents[e]();this.detachDocumentEvents=null}n&&n.disconnect()},addErrorClickLog:O,getErrorEventTarget:M,checkErrorEvent:L,observeDOMMutation:k,checkFrustrationEvent:F};function C(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()){(l=c.filter(l,e=>t-e.timestamp<=p)).length&&Ut(C,p)}function x(e=g){v=!1,c.each(y,e=>{clearTimeout(e)}),y={},Ut(()=>{v=!0},e)}function T(){var e=document.getSelection().toString();(b||e.length)&&(x(),b=!!e.length)}function k(e){e.length&&x()}function t(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function A(e){return e&&t(e.element)}function R(e,t){var{frustrationTypes:n=[]}=e;c.contains(n,t)||(n.push(t),e.frustrationTypes=n)}function O(e,t){let n;var{detail:i={}}=t;(n=(A(i)&&i.error?i.error:t).message)&&n.length>I&&(n=n.substring(0,I)),e.errorClickLog=n}function N(e,t){var n=t.target&&"A"===t.target.tagName&&t.target.hasAttribute("href"),i=t.target&&!c.contains(m,t.target.tagName);if(v&&!b&&i&&!n){var r=e;const o=Ut(()=>{delete y[o],R(r,"deadClick")},g);y[o]=o}l.length>h&&l.pop(),l.unshift({target:t.target,activeElement:document.activeElement,browser_time:e.browser_time,timestamp:t.timeStamp}),Ut(C,p),c.each(f,e=>{L(e)}),s?(i=t,e.browser_time-s<=1e3&&Math.abs(u-i.x)<=30&&Math.abs(d-i.y)<=30?a++:(a=1,u=t.x,d=t.y),s=e.browser_time,4===a&&(s=null,R(e,"rageClick"))):(s=e.browser_time,u=t.x,d=t.y,a=1)}function M(e){if(t(e.target))return{detail:e={}}=e,A(e)?e.element:t(document.activeElement)?document.activeElement:void 0}function L(t){const n=M(t);if(n){const i=c.find(l,e=>(e.target===n||e.activeElement===n)&&t.timeStamp-e.timestamp<p);if(i){const r=e=>e.browser_time===i.browser_time&&"click"===e.type;var e=c.find(S.buffers.events,r)||c.find(S.buffers.silos,e=>c.find(e,r));e&&(R(e,"errorClick"),_)&&O(e,t)}else c.contains(f,t)||f.push(t),f.length>o&&f.pop()}}function P(e){r=function(){let e=i.sessionStorage.getItem(w);return null!=e&&0<e.length&&(e=JSON.parse(e)),c.isArray(e)?e:[]}(),function(e){var t,n;if(!(r.length<2))return t=r[0],n=r[1],t&&n&&t.url&&n.url&&t.browser_time&&n.browser_time?t.url===e.url&&e.browser_time-n.browser_time<=7e3&&n.url!==e.url:void 0}(e)&&R(e,"uTurn"),2===r.length&&r.shift(),r.push({url:e.url,browser_time:e.browser_time}),e=r,i.sessionStorage.setItem(w,JSON.stringify(e))}function F(e){var t=e.data[0],e=e.data[1],e=("click"===t.type&&e&&N(t,e),"load"===t.type&&P(t),"submit"!==t.type&&"change"!==t.type||x(),c.has(e,"target")&&c.contains(m,e.target.tagName));"focus"===t.type&&e&&x()}}(),tw=function(){let n,i,o;const a=[];let e=[];return{name:"EmbeddedGuides",activeEmbeddedGuides:a,initialize:function(e,t){n=t,i=e,o=i._,function(e){e.getEmbeddedGuides=nw,e.getActiveEmbeddedGuides=iw}(e),n.Events.on("deliverablesLoaded",d),n.Events.on("guideLoopStopped",r),n.Events.on("guideListChanged",f),n.Events.on("urlChanged",c),n.Events.on("guideAdvanced",s),n.GuideLoop.addUpdatePhase(u),n.guides.addProcessor(l),n.GuideActivity.registerGuideResolver(h),this.removeResizeEvent=e.attachEvent(window,"resize",p)},teardown:function(){d(),n.Events.off("deliverablesLoaded",d),n.Events.off("guideLoopStopped",r),n.Events.off("guideListChanged",f),n.Events.off("urlChanged",c),n.Events.off("guideAdvanced",s),n.GuideLoop.removeUpdatePhase(u),n.guides.removeProcessor(l),n.GuideActivity.removeGuideResolver(h),this.removeResizeEvent&&this.removeResizeEvent();e.length=0}};function r(){n.ConfigReader.get("delayGuides")&&o.forEach(a,function(e){e.isShownInThisFrame()&&e.hide()})}function s(e){const t=o.get(e,"data.0.props.guide_id",null);t&&(e=a.find(({id:e})=>e===t))&&e.hide()}function u(){o.forEach(a,function(e){e.process()})}function d(){e=o.toArray(a),n.guides.removeDisplayableGuides("embeddedGuides"),a.length=0}function c(){o.forEach(a,function(e){e.forceShowFirstStep=!!o.get(e,"attributes.restartOnReload")})}function l(t){var e;return!(e=t)||!e.launchMethod||"embed"!==e.launchMethod||(o.some(a,({id:e})=>e===t.id)||a.push(t),!1)}function p(){ev()||o.forEach(a,function(e){e=e.getActiveStep();e&&!i.ignoreResize&&e.redraw()})}function h(n){if(a.length){var i="pendo-base-";if(o.isString(n.id)&&0===n.id.indexOf(i)){var r=n.id.substring(i.length);let e,t;return(e=o.find(a,e=>{t=o.find(e.steps,e=>{if(e.id===r)return e});return!!t}))&&t?{guide:e,step:t}:null;return}else return o.isObject(n.parentElem)?h(n.parentElem):null}return null}function f(){o.each(e,function(t){var e=o.findIndex(a,function(e){return e.id===t.id});-1===e&&t.isShownInThisFrame()?t.hide():t.isFrameProxy||(a[e]=t)}),e.length=0,n.guides.registerDisplayableGuides("embeddedGuides",a),o.map(a,function(e){!function({globalPendo:o,pluginApi:e}){const a=o["_"],i=e["store"],r=(this.process=function(){let e=null;var t,n=a.get(this,"attributes.embedConfig.selector"),i=a.get(this,"attributes.embedConfig.method"),n=a.first(o.Sizzle(n)),r=this.isShownInThisFrame();n&&r&&(t="#pendo-guide-container-"+a.get(this.getActiveStep(),"id"),e=!!o.Sizzle(t,n).length),!r&&n&&this.shouldAutoDisplay()?"replace"===i&&o.Sizzle('[id^="pendo-guide-container"]',n).length||this.show("embed"):!r||n&&e||this.hide()},this.getActiveStep=function(){return this?a.find(this.steps,function(e){return e.isShown()}):null},this.shouldAutoDisplay=function(){return this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||a.all(this.steps,function(e){return e.shouldRepeat()||!e.isSnoozed()&&"dismissed"!==e.seenState})},this.show=function(e){var t,n=a.first(this.steps);return this.forceShowFirstStep?(this.forceShowFirstStep=!1,n.show("reason")):(t=this.steps.map(e=>a.get(i,"state.guideState.steps."+e.id,r(e))),(t=a.max(t,function({time:e}){return e}))&&"advanced"==t.state&&!t.destinationStepId?this.findStepById(t.guideStepId).dismiss():(this.nextStep(t)||n).show(e))},this.hasOwnProperty("forceShowFirstStep")||(this.forceShowFirstStep=a.get(this,"attributes.restartOnReload")),this.isShownInThisFrame=function(){return a.any(this.steps,function(e){return e.isRendered()||e.isLocked()})},({id:e,guideId:t,seenReason:n,seenState:i,lastSeenAt:r,destinationStepId:o})=>({guideId:t,guideStepId:e,seenReason:n,state:i,time:r,destinationStepId:o}))}.call(e,{globalPendo:i,pluginApi:n}),o.map(e.steps,function(e){!function({pluginApi:n}){if(this._onShown||Object.defineProperty(this,"_onShown",{value:this.onShown,writable:!1,configurable:!1}),!this._onShown)return null;this.onShown=function(e){var t=!this.lastSeenAt||!!n.ConfigReader.get("enableAllEmbeddedGuideEvents");return this._onShown(e,t)}}.call(e,{pluginApi:n,_:o})})})}}();function nw(){return tw.activeEmbeddedGuides}function iw(){return tw.activeEmbeddedGuides.filter(e=>e.isShown())}const rw="sessionId";class ow{constructor(){this.name="SessionManager"}initialize(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"identify",_.bind(this.changeIdentity,this)),this.api.attachEvent(this.api.Events,"eventCaptured",_.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",18e5),this.suffix=this.api.ConfigReader.get("identityStorageSuffix"),this.api.agentStorage.registry.addLocal(rw,{cookieSuffix:this.suffix,isSecure:!0})}changeIdentity(e){var t;e&&e.data&&e.data.length&&({visitor_id:e,old_visitor_id:t}=e.data[0],e===t||this.pendo.isAnonymousVisitor(t)||this.expireSession())}teardown(){_.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0}isExpired(e,t){e=_.get(e,"timestamp");return!this.pendo._.isNumber(e)||t-e>this.inactivityDuration}expireSession(){var e=this.clearSessionInfo();return this.api.Events.sessionChanged.trigger(e),e}eventCaptured(t){if(t&&t.data&&t.data.length){var t=t.data[0],n=t.browser_time||(new Date).getTime();let e=this.sessionInfo();!t.hasUserInteraction&&"recording"===t.type||(this.isExpired(e,n)&&(e=this.expireSession()),this.storeLastInteractionEventInformation(e,n)),t.sessionId=e.sessionId}}sessionInfo(e=this.pendo.randomString(16)){let t=this.api.agentStorage.read(rw)||this.api.agentStorage.read(rw,!1,"");return t||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(rw,t)),JSON.parse(t)}clearSessionInfo(){return this.api.agentStorage.clear(rw),this.api.agentStorage.clear(rw,!1,""),this.sessionInfo()}storeLastInteractionEventInformation(e,t){e.timestamp=t,this.api.agentStorage.write(rw,JSON.stringify(e))}}var aw=new ow;function sw(e,t,s,u){return new(s=s||Qt)(function(n,i){function r(e){try{a(u.next(e))}catch(t){i(t)}}function o(e){try{a(u["throw"](e))}catch(t){i(t)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}a((u=u.apply(e,t||[])).next())})}class uw{constructor(){this.name="SegmentFlags"}initialize(e,t){var n="requestSegmentFlags",e=(this.pendo=e,(this.api=t).ConfigReader);e.addOption(n,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],!1),this.segmentFlagsEnabled=e.get(n),this.segmentFlagsEnabled&&(this.mostRecentSegmentsRequest=null,this.pendo.segmentsPayload=this.pendo._.bind(this.segmentsPayload,this),this.handleMetadataChange=this.pendo._.debounce(this.pendo._.bind(this.requestSegmentFlags,this),50),this.handleReadyBound=this.pendo._.bind(this.handleReady,this),this.api.Events.ready.on(this.handleReadyBound),this.api.Events.metadata.on(this.handleMetadataChange),this.api.Events.identify.on(this.handleMetadataChange))}teardown(){this.segmentFlagsEnabled&&(this.pendo.segmentsPayload=this.pendo._.noop,this.handleMetadataChange.cancel(),this.api.Events.ready.off(this.handleReadyBound),this.api.Events.metadata.off(this.handleMetadataChange),this.api.Events.identify.off(this.handleMetadataChange))}handleReady(){this.ready=!0,this.requestSegmentFlags()}requestSegmentFlags(){if(this.ready){var t=this.pendo._.uniqueId(),n=(this.mostRecentSegmentsRequest=t,{visitorId:this.pendo.get_visitor_id(),accountId:this.pendo.get_account_id(),metadata:this.pendo.getSerializedMetadata(),url:this.pendo.url.get()}),i=this.pendo.compress(n),t={id:t,jzb:i,v:this.pendo.VERSION,ct:(new Date).getTime()},n=(this.api.agent.treatAsAdoptPartner()&&n.accountId&&"ACCOUNT-UNIQUE-ID"!==n.accountId&&(t.acc=this.api.util.base64EncodeString(n.accountId)),"script"===this.pendo.LOADER?"segmentflag.js":"segmentflag.json");let e=this.api.transmit.buildBaseDataUrl(n,this.pendo.apiKey,t);var r,n=this.api.agent.getJwtInfoCopy();try{e.length>this.api.constants.URL_MAX_LENGTH||!this.pendo._.isEmpty(n)?(delete t.jzb,e=this.api.transmit.buildBaseDataUrl("segmentflag.json",this.pendo.apiKey,t),r=this.pendo._.extend({events:i},n),this.postLoad(e,r)):"script"===this.pendo.LOADER?this.scriptLoad(e):this.getLoad(e)}catch(o){this.api.log.error("Failed to load segment flags",{error:o})}}}segmentsPayload(e){!this.mostRecentSegmentsRequest||this.pendo._.isString(e.id)&&e.id!==this.mostRecentSegmentsRequest||(this.pendo.segmentFlags=e.segmentFlags,this.api.log.info("successfully loaded segment flags"),this.mostRecentSegmentsRequest=null)}scriptLoad(e){this.pendo.loadResource(e,this.pendo._.noop)}getLoad(t){return sw(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.get(t);this.segmentsPayload(e.data)})}postLoad(t,n){return sw(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.postJSON(t,n);this.segmentsPayload(e.data)})}}var dw=new uw;const cw=["google","bing","yahoo","duckduckgo","baidu","yandex","aol","ask","excite","lycos","webcrawler","infoseek","dogpile","altavista","netscape","hotbot","looksmart","gigablast","teoma","alltheweb","search.com","mamma","metacrawler","ixquick","searchy","searchalot","searchengine","searchenginez","searchengineland","searchenginewatch","searchengineworld","searchenginejournal","searchengineguide","searchengineforums"],lw=new RegExp(`(${cw.join("|")})`,"i"),pw=["facebook","twitter","linkedin","instagram","pinterest","tiktok","snapchat","twitch","reddit","quora","tumblr","flickr","discord","twitch","whatsapp","telegram","weibo","qq","line"],hw=["t.co","x.com"],fw=new RegExp(`(${pw.join("|")})`,"i");function gw(e,t){return Sw(fw,e)||t.contains(hw,e)}const mw=["youtube","vimeo","dailymotion","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"],vw=new RegExp(`(${mw.join("|")})`,"i"),yw=["amazon","ebay","walmart","etsy","shopify","shop","target","bestbuy","costco","temu","alibaba","aliexpress"],bw=new RegExp(`(${yw.join("|")})`,"i");const ww=new RegExp(`(${["google performance max","microsoft audience network","facebook audience network"].join("|")})`,"i");function Sw(e,t){return"self"!==t&&"direct"!==t&&null!==t.match(e)}function Ew({referrer:e,currentHost:t}){if(!e||""===e)return"direct";e=new Zn(e).hostname;let n="self";return n=e!==t?null==e?void 0:e.toLowerCase():n}const Iw=new RegExp("^(.*cp.*|ppc|retargeting|paid)$"),_w=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i");function Cw(e="",t){return e.replace(/[^a-zA-Z]/g,"").includes(t)}const xw=[[undefined,({medium:e,source:t,referrer:n,gclid:i,fbclid:r})=>!(e||t||"self"!==n||i||r)],["Direct",({source:e,medium:t,referrer:n})=>!(t||e&&"direct"!==e||"direct"!==n)],["Cross-network",({source:e,medium:t})=>Cw(t,"crossnetwork")||e.match(ww)],["Paid Search",({source:e,medium:t,referrer:n,gclid:i,_:r})=>i||Cw(t,"paidsearch")||t.match(Iw)&&(r.contains(cw,e)||Sw(lw,n))],["Paid Social",({source:e,medium:t,referrer:n,fbclid:i,_:r})=>i||Cw(t,"paidsocial")||t.match(Iw)&&(r.contains(pw,e)||gw(n,r))],["Paid Video",({medium:e,source:t,referrer:n,_:i})=>Cw(e,"paidvideo")||e.match(Iw)&&(i.contains(mw,t)||Sw(vw,n))],["Paid Shopping",({medium:e,source:t,referrer:n,_:i})=>Cw(e,"paidshopping")||"shopping"===e||(Sw(bw,n)||i.contains(yw,t))&&e.match(Iw)],["Display",({medium:e,_:t})=>t.contains(["display","cpm","banner","interstitial","expandable","programmatic"],e)||Cw(e,"display")],["Paid Other",({medium:e})=>Cw(e,"paidother")||e.match(Iw)],["Organic Search",({source:e,medium:t,referrer:n,_:i})=>Cw(t,"organic")&&i.contains(cw,e)||!t&&Sw(lw,n)],["Organic Social",({source:e,medium:t,referrer:n,_:i})=>!t&&gw(n,i)||Cw(t,"social")||i.contains(pw,e)&&!t.match(Iw)],["Organic Video",({medium:e,referrer:t})=>Cw(e,"video")||!e&&Sw(vw,t)],["Organic Shopping",({medium:e,referrer:t})=>Cw(e,"organicshopping")||!e&&Sw(bw,t)],["Email",({source:e,medium:t})=>null!==t.match(_w)||null!==e.match(_w)||Cw(t,"newsletter")],["Affiliates",({medium:e})=>Cw(e,"affiliate")||Cw(e,"partner")],["SMS",({source:e,medium:t})=>Cw(e,"sms")||Cw(t,"sms")],["Push Notifications",({source:e,medium:t})=>t.endsWith("push")||Cw(t,"mobile")||Cw(t,"notification")||Cw(e,"firebase")],["Audio",({medium:e})=>Cw(e,"podcast")||Cw(e,"audio")],["Referral",({medium:e,referrer:t})=>Cw(e,"referral")||!!t&&"self"!==t&&"direct"!==t],["Other",({medium:e,source:t})=>!!e||!!t]],Tw="utm",kw="enableFullUtmReferrer";class Aw{constructor(){this.name="WebAnalytics"}initialize(e,t){this.pendo=e;var n=(this.api=t)["ConfigReader"],n=(n.addOption(kw,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),e._)["bind"];this.subscriptions=[t.attachEvent(t.Events,"eventCaptured",n(this.addUtmToEvent,this)),t.attachEvent(t.Events,"sessionChanged",n(this.sessionChanged,this))];let i=this.loadParameters(t.agentStorage);i&&!e._.isEmpty(i)||(i=this.extractParameters(window.location.href,document.referrer)),this.api.agentStorage.registry.addLocal(Tw),this.storeParameters(i,t.agentStorage),this.suffix=this.api.ConfigReader.get("identityStorageSuffix")}extractParameters(e,t){var n,i,r,o,a,s,u=new Zn(e).hostname,d=Ew({referrer:t,currentHost:u}),e=this.api.util.parseUrl(e);return e?(e=e["query"],s=e.utm_source,n=e.utm_medium,i=e.utm_campaign,r=e.utm_term,o=e.utm_content,a=e.gclid,e=e.fbclid,(s={source:s,medium:n,campaign:i,term:r,content:o}).channel=this.calculateUtmChannel({referrerValue:d,utm:s,gclid:a,fbclid:e}),t&&this.api.ConfigReader.get(kw)?s.referrer=t:"self"===d?s.referrer=u:"direct"!==d&&(s.referrer=d),s):{}}calculateUtmChannel({referrerValue:e,utm:t,gclid:n,fbclid:i}){var r=(null==(r=t.medium)?void 0:r.toLowerCase())||"",t=(null==(t=t.source)?void 0:t.toLowerCase())||"";const o={_:this.pendo._,referrer:e,source:t,medium:r,gclid:n,fbclid:i};e=this.pendo._.find(xw,e=>e[1](o));if(e)return e[0]}storeParameters(e,t){0<this.pendo._.size(e)&&t.write(Tw,JSON.stringify(e),undefined,!1,!0,this.suffix)}loadParameters(e){e=e.read(Tw,!1,this.suffix)||e.read(Tw);return e?JSON.parse(e):null}teardown(){for(var e of this.subscriptions)e();this.subscriptions.length=0}addUtmToEvent(e){let t;try{t=this.loadParameters(this.api.agentStorage)}catch(n){}t&&(e.data[0].utm=t)}sessionChanged(){var e=this.api.agentStorage,t=(e.clear(Tw),e.clear(Tw,!1,this.suffix),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)}}var Rw=new Aw;const Ow={children:[],props:{"class":"_pendo-step-container","data-layout":"tooltipBlank",id:"pendo-base"},type:"div"},Nw={css:[],props:{scoped:"scoped",type:"text/css"},type:"style"},Mw={children:[],props:{"class":"_pendo-step-container-size","data-relative-alignment":!0,"data-vertical-alignment":"Relative to Element",id:"pendo-g-validation-tooltip-container",style:{display:"block",width:"300px","z-index":3e5}},type:"div"},Lw={children:[],props:{"class":"_pendo-step-container-styles",id:"pendo-guide-container",role:"dialog","data-caret-enabled":!0,"data-caret-height":"15px","data-caret-width":"15px",style:{"background-color":"rgba(255, 255, 255, 1)",border:"1px solid #BBBBBB","border-radius":"5px",padding:"8px 12px","box-shadow":"0px 0px 10px 0px rgba(190, 190, 190, 0.5)"},tabindex:-1},type:"div"},Pw={children:[],props:{"class":"_pendo-text-paragraph",style:{}},type:"div"};function Fw(e,t){return{content:t,props:{id:"text-"+e,"class":"_pendo-text-plain",style:{color:"gray",margin:0}},type:"p"}}function Dw(e){var e=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement,t=document.createElement("div");return t.style.marginRight="5px",t.appendChild(e),t}const Uw=`
|
|
8
|
+
var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{var e=d[t.id];if(e&&e.language!==t.language&&delete d[t.id],!d[t.id]){var n,i=[],r={deferred:{},language:t.language},o=!1;if(d[t.id]=r,Ad.usesXhr()&&t.domUrl?(r.deferred.domJson=m.defer(),Rr.get(c(t.domUrl)).then(function(e){r.domJson=Yd(e.data);var e=e.data;e=e,_.isObject(e)&&e.hasOwnProperty("type")&&e.hasOwnProperty("children")&&e.hasOwnProperty("props")?r.deferred.domJson.resolve():(C.critical(new Error("Response from the guide was not in proper JSON format")),r.deferred.domJson.reject())})["catch"](function(e){C.critical(e),y.resourceFetchFail.trigger(t,e),r.deferred.domJson.reject("Failed to load content")}),i.push(r.deferred.domJson.promise),o=!0):t.domJsonpUrl&&(r.deferred.domJson=m.defer(),n=ka(c(t.domJsonpUrl),function(e){k.removeNode(n),e&&y.resourceFetchFail.trigger(t,e)},!0),i.push(r.deferred.domJson.promise),o=!0),t.contentUrlJs&&!f.get("preventCodeInjection")){r.deferred.content=m.defer();var a=ka(c(function(e){if(ct()){var t=e.replace(/^https?:\/\/[^/]+\/guide-content\//,"").split("/"),n=t[0],n=$A.get("$Resource.pendoGuide"+function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",n=e.length,i=0,r=0,o="",a=0;a<n;a++)for(r=r<<8|e[a],i+=8;5<=i;)o+=t[r>>>i-5&31],i-=5;return 0<i&&(o+=t[r<<5-i&31]),o}(Ye(n)));if(_.isString(n))return n+"/"+t.join("/")}return e}(t.contentUrlJs)),function(e){k.removeNode(a),e&&y.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise),t.contentUrlCss&&(r.deferred.css=m.defer(),ka({url:c(t.contentUrlCss),type:"text/css"},function(){r.deferred.css.resolve()}),i.push(r.deferred.css.promise))}else if(t.contentUrl&&!f.get("preventCodeInjection")){r.deferred.content=m.defer();var s=ka(function(e,t){if(!_.isString(e))return e;var n=_.indexOf(e,"?");return n<0?e+t:e.substring(0,n)+t+e.substring(n)}(c(t.contentUrl),".js"),function(e){k.removeNode(s),e&&y.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise)}else if(!o)return m.reject("fetchedDomContent is still false");r.deferred.promise=m.all(i).then(function(){return _.omit(r,"deferred")})}return d[t.id].deferred.promise}catch(u){throw y.resourceFetchFail.trigger(t,u),u}},reset:function(){d={}},guideContent:function(e,t,n,i,r){var o,a,s;_.isString(n)&&(o=n,a=e,s=t,n=_.reduce(u,(e,t)=>t(e,a,s),o),_.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?_.template(n):_.constant(n)),o=d[e+t])&&o.deferred.content&&(o.content=n,o.template=i,o.script=r,o.deferred.content.resolve())},receiveDomStructureJson:function(e,t,n){(e=d[e+t])&&e.deferred.domJson&&(e.domJson=Yd(n),e.deferred.domJson.resolve())}}}(),ec=(tc.state={},tc.queue=[],tc.pending=function(){return _.reduce(tc.state,(e,t)=>e+(t.loaded?0:1),0)},tc.reset=function(){Qd.reset(),tc.state={},tc.queue=[]},tc.prefetch=function(e){var t;return tc.hasContent(e)?_.get(tc.state[nc(e)],"promise"):(t=m.defer(),tc.queue.push([t,e]),t.promise)},tc.processPrefetch=function(e=10){return tc.queue.length?(e=tc.queue.splice(0,Math.max(e-tc.pending(),0)),m.all(_.map(e,t=>tc.fetchContent(t[1]).then(e=>{t[0].resolve(e)})["catch"](e=>{t[0].reject(e)})))):m.resolve()},tc.fetchContent=function(t){var e=nc(t);if(!(i=tc.state[e])){var n,i={},r=t.getGuide();if(r.control)return m.resolve();r&&r.language&&(n=r.language);var r=t.guideId+t.id,o=_.extend({id:r,language:n,guideId:t.guideId},_.pick(t,"contentUrl","contentUrlCss","contentUrlJs","domJsonpUrl","domUrl","domHash","contentHash","contentJsHash"));i.promise=Dd.verify(o).then(function(){return i.verified=!0,Qd.load(o)}).then(function(e){return i.loaded=!0,e}),tc.state[e]=i}return i.promise.then(function(e){_.extend(t,e)})},tc.hasContent=function(e){return me(e.content)||me(e.domJson)},tc);function tc(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(_.extend(i,{fetchContent:function(e=!1){return e?tc.prefetch(i):tc.fetchContent(i)}}),i.after("render",function(e){!function(e){var t=_.indexOf(n.steps,i);_.chain(n.steps).rest(t+1).first(e).each(function(e){_.isFunction(e.fetchContent)&&e.fetchContent()}).value()}(t)})),i}function nc(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}var ic=function(){var t=y.runtime;const r=[];function o(e,n,i,r){return _.filter(e,function(e){if(_.isFunction(e[r])){if(_.isFunction(e.test))try{return e.test(n,i,E)}catch(t){return C.critical("Error in global script test code block",{error:t}),!1}return _.isRegExp(e.regex)?e.regex.test(i.name)||e.regex.test(n.name):!0}})}function e(e,t,n="script"){var i=[];return"script"===n&&_.isFunction(e.script)&&i.push(e.script),_.size(r)&&(e=o(r,e,t,n),_.each(e,function(e){i.push(e[n])})),i}function i(n,i,r){const o=r.guide;o&&_.all(e(r,o,"beforeMount"),function(e){try{return e.call(n,i),!i.cancel}catch(t){return C.critical("Exception thrown running beforeMount for: "+JSON.stringify({guideId:o.id,stepId:r.id}),{error:t}),!1}})}var a=mn.call({}),s={beforeUnmount:{type:"trigger",fromUnmount:!1},beforeUpdate:{type:"trigger",fromUnmount:!1},updated:{type:"trigger",fromUnmount:!1},unmounted:{type:"trigger",fromUnmount:!0},advanced:{type:"trigger",fromUnmount:!0},dismissed:{type:"trigger",fromUnmount:!0},snoozed:{type:"trigger",fromUnmount:!0},hidden:{type:"trigger",fromUnmount:!0},beforeMount:{type:"triggerCancelable",fromUnmount:!1},beforeAdvance:{type:"triggerCancelable",fromUnmount:!1},beforePrevious:{type:"triggerCancelable",fromUnmount:!1},beforeDismiss:{type:"triggerCancelable",fromUnmount:!1},beforeSnooze:{type:"triggerCancelable",fromUnmount:!1}};function u(e){return s[e]}function n(e){var t,n=e.data[0];if(e.step=n,delete e.data,u(e.type))return-1<_.indexOf(["beforeUnmount","unmounted"],e.type)&&(t="active"===(t=n).seenState?"hidden":t.seenState,e.reason=t,"unmounted"===e.type)&&a.trigger(t,e),t=s[e.type].type,a[t](e.type,e),"unmounted"===e.type?a.trigger("afterUnmounted",e):"beforeMount"===e.type&&i(this,e,n),"triggerCancelable"!==t&&e.cancel&&delete e.cancel,e}function d(n){this.step=n,_.each(["read","write","clear"],function(t){this[t]=h[t],this[t+"ByGuide"]=function(){var e=_.first(arguments)+":"+_.get(n,"guide.id");return h[t].apply(this,[e].concat(_.rest(arguments)))}},this);var e=_.bind(function(e){this.step.id!==e.step.id?C.debug("aborting afterUnmounted b/c step ids don't match"):this.purge()},this);this.purge=_.partial(a.off,"afterUnmounted",e),a.on("afterUnmounted",e)}return d.prototype.on=function(e,t){var n,i;u(e)?(s[e].fromUnmount&&(t=_.once(t)),n=this.step,i=t,t=$n(t=e=>{var t=e["step"];if(t.id===n.id)return i(e);C.debug("called guide runtime callback on wrong step")}),a.on(e,t),this.purge=_.compose(this.purge,_.partial(a.off,e,t))):C.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)},{initialize:function(){t.on(n);var e=f.get("guides.globalScripts");_.each(e,ic.addGlobalScript)},teardown:function(){t.off(n),_.each(r,ic.removeGlobalScript)},addGlobalScript:function(e){var t;e=function(t){const e=_.without(_.keys(t),"script","test","regex","beforeMount");if(e.length){const n=t.script;t.script=function(){if(_.each(e,function(e){u(e)&&this.on(e,t[e])},this),_.isFunction(n))return n.apply(this,arguments)}}return t}(e),t=e,!_.isFunction(t.script)&&!_.isFunction(t.beforeMount)||t.test&&!_.isFunction(t.test)||t.regex&&!_.isRegExp(t.regex)?C.critical("Error adding invalid GlobalScript via API"):r.push(e)},removeGlobalScript:function(e){0<=(e=_.indexOf(r,e))&&r.splice(e,1)},getContext:function(e){return new d(e)},runCustomScripts:function(i,r){_.each(e(i,r),function(e){try{var t=ic.getContext(i);e.call(t,i,r,E)}catch(n){C.critical("Exception thrown running code block for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:n})}})},handleEvent:n}}();function rc(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?_.find(e.children,rc):void 0}function oc(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=oc(e.children[n],t);if(i)return i}return!1}function ac(e,t){if(t.props&&t.props.id===e)return t;if(t.children)for(var n=0;n<t.children.length;n++){var i=ac(e,t.children[n]);if(i)return i}}function sc(e,t,n,i=document.head){let r=document.getElementById(t);return r||((r=document.createElement("style")).setAttribute("id",t),e.get("inlineStyleNonce")&&r.setAttribute("nonce",e.get("inlineStyleNonce")),r.innerHTML=n,r=i.appendChild(r)),r}var uc={buildNodesFromTemplate:function(e,t,n,i,r){var o=i||O,a=r||E.BuildingBlockGuides.buildNodeFromJSON;switch(e){case"pendo_resource_center_module_list_item":return function(p,h,f,g){var e=p.templateChildren;return _.reduce(e,function(e,t,n){var i=P.findResourceCenterHomeView(f),r=_.find(f,function(e){return e.id===t.id});if(E.designer)r=t,i=_.find(f,function(e){return _.get(e,"attributes.resourceCenter.isTopLevel")});else{if(!r)return e;if(!r.hasResourceCenterContent)return _.each(r.children,function(e){e=N(e);e&&e.control&&e.steps[0].onControlGuide("control")}),e}var o,a,s,u=JSON.parse(JSON.stringify(p)),d=(delete u.templateChildren,u.props.id=u.props.id+"-"+n,u.props["data-pendo-module-guide-id"]=r.id,u.actions||(u.actions=[]),{action:"renderResourceCenterModule",source:u.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id}],uiMetadata:{},eventType:"click"}),d=(u.props["data-localization-direction"]&&d.parameters.push({name:"transitionDirection",type:"string",value:u.props["data-localization-direction"]}),E.designer||u.actions.push(d),_.get(i,"attributes.notificationBubble")),c=_.get(i,"attributes.notifications"),d=(d&&c&&("AnnouncementsModule"===_.get(r,"attributes.resourceCenter.moduleId")&&(o=r.id),o="chat"===_.get(r,"attributes.resourceCenter.integrationName")?"chat":o)&&(u.props["data-pendo-notification-id"]=o,c=u,r=d,d=o,o=(i=i).attributes.notifications.individualCounts[o],c=oc(c,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-row")}))&&(s=_.find(c.children,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-text")}))&&s.props&&s.props.style&&(l=parseInt(s.props.style.width,10))&&!isNaN(l)&&(a=c.children.indexOf(s),l=l-40+"px","100%"!==s.props.style.width&&(s.props.style.width=l),(l="rtl"===s.props.dir)?s.props.style["padding-left"]="40px":s.props.style["padding-right"]="40px",s.props.style["box-sizing"]="content-box",s={type:"div",children:[{type:"div",content:String(i.attributes.notifications.individualCounts[d]),props:{style:{position:"relative",top:"50%","font-weight":r["font-weight"],"font-family":r["font-family"],color:r.color}}}],props:{id:"pendo-home-view-bubble","class":"_pendo-home-view-bubble",style:Object.assign(Object.assign(Object.assign({position:"absolute","border-radius":"20px",height:"26px","line-height":"0px",padding:"0px 10px"},!l&&{right:"20px"}),l&&{left:"20px"}),{top:"50%","margin-top":"-14px","box-sizing":"content-box","background-color":r["background-color"],display:o?"block":"none"}),"aria-hidden":!0}},c.children.splice(a+1,0,s)),oc(u=cc(u,t,u.props.id,n),function(e){e=_.get(e,"props.class");return e&&0<=e.indexOf("_pendo-resource-center-module-list-item-text-container")})),i=oc(u,function(e){e=_.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),l=oc(u,function(e){e=_.get(e,"props.id");return e&&0<=e.indexOf("pendo-home-view-bubble-"+n)});return d&&(d.props["aria-hidden"]=!0,i)&&(i.props["aria-labelledby"]=d.props.id+" "+(l&&l.props.id)),e.concat(g(u,h,f))},[])}(t,n,o,a);case"pendo_resource_center_guide_list_item":return function(o,a,s,u){var e=o.templateChildren;return _.reduce(e,function(e,t,n){var i,r=lc(s,t);return r?(i=JSON.parse(JSON.stringify(o)),t.keywords&&(i.props["data-_pendo-text-list-item-1"]=t.keywords),delete i.templateChildren,i.props.id=i.props.id+"-"+n,i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},E.designer||i.actions.push(r),i=cc(i,t,i.props.id,n),e.concat(u(i,a,s))):e},[])}(t,n,o,a);case"pendo_task_list":return function(e,t,n,i){var r=e.templateChildren;_.filter(r,function(e){return lc(n,e)}).length?(e.children=_.filter(e.children,function(e){return"pendo_task_list_fallback_text"!==e.templateName}),function o(t,n){t.templateName&&(t.templateChildren=n);if(!t.children||!t.children.length)return;for(let e=0;e<t.children.length;e++)o(t.children[e],n)}(e,r)):e.children=_.filter(e.children,function(e){return"pendo_task_list_item"!==e.templateName&&"pendo_task_list_progress_bar"!==e.templateName});P.updatePseudoStyleSelectors(e);r=i(e,t,n);return[r]}(t,n,o,a);case"pendo_resource_center_onboarding_item":case"pendo_task_list_item":return function(s,u,d,c){var e=s.templateChildren;return _.reduce(e,function(e,t,n){var i,r,o,a=lc(d,t);return a?(delete(i=JSON.parse(JSON.stringify(s))).templateChildren,i.props.id=i.props.id+"-"+n,i.props["data-pendo-show-guide-id"]=a.id,i.props["class"]+=" pendo-task-list-item",i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:a.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},E.designer||i.actions.push(r),r=a.getTotalSteps(),o=a.getSeenSteps(),a.isComplete()&&(o=r),a=parseInt(o/r*100,10),oc(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=dc(t.subtitle,{currentStep:o,totalSteps:r}):t.stepProgress="Step "+o+" of "+r,i=cc(i,t,i.props.id,n),e.concat(c(i,u,d))):e},[])}(t,n,o,a);case"pendo_resource_center_onboarding_progress_bar":case"pendo_task_list_progress_bar":return function(e,t,n,i){var r=e.templateChildren||t.getGuide().attributes.resourceCenter.children,o=0,a=0,r=(_.forEach(r,function(e){e=lc(n,e);e&&(e.isComplete()?(o+=e.getTotalSteps(),a+=e.getTotalSteps()):(o+=e.getTotalSteps(),a+=e.getSeenSteps()))}),parseInt(a/o*100,10));isNaN(r)&&(r=0);r={totalPercentComplete:r+"%"};return oc(e=cc(e=JSON.parse(JSON.stringify(e)),r),function(e){return e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-progress-bar-fill")}).props.style.width=r.totalPercentComplete,[i(e,t,n)]}(t,n,o,a);case"pendo_task_list_fallback_text":return[a(t,n,o)];case"pendo_resource_center_announcement_item":return function(l,e,n,p){e=e.getGuide().attributes.resourceCenter.children,e=_.reduce(e,function(e,t){t=lc(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!_.every(e,function(e){e=e.steps[0];return!!ec.hasContent(e)}))return[];var t=P.getResourceCenter(),h=_.get(t,"attributes.notificationBubble");h&&(delete h.dir,"rtl"===l.props["data-localization-direction"])&&(h.dir="rtl");return _.map(e,function(e,t){var n,i,r,o,a,s,u,d="whatsnew"===_.get(e,"attributes.type"),c=JSON.parse(JSON.stringify(l));return c.props.id=c.props.id+"-"+t,c.props["data-pendo-announcement-guide-id"]=e.id,c.props["data-pendo-announcement-send-seen-event"]=!0,d?(t=c,d=h,s=p,n=$d(r=e),(u=n.steps[0]).render(),ic.runCustomScripts(u,n),i=(n=u.guideElement)[0].id,sc(f,"pendo-whats-new-style-"+i,"#"+i+" h1::after { display:none; }",n[0]),d&&((o=pc(d)).props.style.top="20px"),!P.hasAnnouncementBeenSeen(r)&&o&&(t.props["class"]+=" pendo-unseen-announcement",t.children=[o]),i=s(t,u),n.appendTo(i),i):(d=c,r=h,o=p,u=$d(t=e),s=t.steps[0],ic.runCustomScripts(s,u),u=JSON.parse(JSON.stringify(s.domJson)),d.children=[u],r&&(a=pc(r),u=oc(d,function(e){return"pendo-guide-container"===e.props.id}),r=parseInt(d.props.style["padding-top"],10),u=parseInt(u.props.style["padding-top"],10),a.props.style.top=u+r+5+"px"),!P.hasAnnouncementBeenSeen(t)&&a&&(d.props["class"]+=" pendo-unseen-announcement",d.children.unshift(a)),delete d.templateName,(u=ac("pendo-guide-container",d))&&(u.props.id=u.props.id+"-"+s.id),o(d,s))})}(t,n,o,a);case"pendo_guide_data_text_block":return function(e,t,n,i){var r=t.getGuide?t.getGuide():_.find(n,function(e){return e.id===t.guideId}),o=_.get(r,"attributes.dates."+r.language,!1);o=o?{showsAfter:o}:(o=_.get(r,"currentFirstEligibleToBeSeenAt")||_.get(r,"showsAfter")||_.get(r,"publishedAt"),o=o?new Date(o):new Date,r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][o.getMonth()]+" "+o.getDate()+", "+o.getFullYear(),{showsAfter:r});return r=cc(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:pc,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return _.reduce(e,function(e,t,n){t=lc(i,t);return t&&e.push(t),e},[])}};function dc(e,n){return e.replace(/<%=\s*([A-Za-z_0-9$]+)\s*%>/gi,function(e,t){return _.isNull(n[t])||_.isUndefined(n[t])?e:n[t]})}function cc(e,t,n,i){if(e.content&&(e.content=dc(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?dc(e.props["aria-label"],t):""),e.props.id)&&i!==undefined&&e.props.id!==n&&(e.props.id=e.props.id+"-"+i),e.children)for(var r=0;r<e.children.length;r++)cc(e.children[r],t,n,i);return e}function lc(e,t){e=_.find(e,function(e){return e.id===(t.id||t)});if(E.designer)return t;if(e){if(!e.ineligibleForRC)return e;e.control&&e.steps[0].onControlGuide("control")}}function pc(e){var t={left:"0px"};return"rtl"===e.dir&&(t={right:"0px"}),{type:"div",children:[],props:{"class":"pendo-unread-announcement-mini-bubble",style:Object.assign(Object.assign({position:"absolute","border-radius":"5px",height:"10px",width:"10px","line-height":"0px"},t),{top:"30px","box-sizing":"content-box","background-color":e["background-color"],"z-index":"10"})}}}var hc={buildSvgNode:function(e,t){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return fc(t)}},createProgressCircleSvg:fc};function fc(e){var t,n,i,r,o,a,s;return Te(9)?(n=(t=(t=e).svgAttributes).fillCircle.stroke,i=t.backgroundCircle.stroke,t=100<=(t.fillCircle.percentComplete||0),r=k(Z(E).createHTML('<div aria-hidden="true" focusable="false" class="pendo-progress-circle-ie"><div class="pendo-progress-circle-fill"></div></div>')),o=r.find(".pendo-progress-circle-fill"),t?o.css({border:"3px solid "+n,height:"10px",width:"10px"}):o.css({border:"3px solid "+i,height:"10px",width:"10px"}),r):100<=((t=e.svgAttributes).fillCircle.percentComplete||0)?(n=(n=t).fillCircle.stroke,(i=k(Z(E).createHTML('<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" class="pendo-progress-circle-fill" viewBox="0 0 24 24" fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>')))[0].setAttributeNS(null,"stroke",n),i):(r=(o=t).fillCircle.stroke,e=o.backgroundCircle.stroke,o=o.fillCircle.percentComplete||0,a='<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" version="1.1" viewBox="0 0 40 40" preserveAspectRatio="xMidYMid"><circle class="pendo-progress-circle-background" cx="20" cy="20" r="'+(a=100/(2*Math.PI))+'" stroke-width="6px" stroke-linecap="round" fill="none"></circle><circle class="pendo-progress-circle-fill" cx="20" cy="20" r="'+a+'" stroke-width="6px" stroke-linecap="round" transform="rotate(-90 20 20)" fill="none"></circle></svg>',s=(a=k(Z(E).createHTML(a))).find(".pendo-progress-circle-fill")[0],a.find(".pendo-progress-circle-background")[0].setAttributeNS(null,"stroke",e),o<=0?s.setAttributeNS(null,"stroke-width","0px"):(s.setAttributeNS(null,"stroke",r),s.setAttributeNS(null,"stroke-dasharray",o+", 100")),a)}var gc=function(e,t){return e<t},mc=_.negate(gc);function vc(){var e=Zo();return wo(e)?Qo(e):((e=qo()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function yc(e,t,n){var i={},r=t.top-e.top,e=t.left-e.left;return i.top=r-n.top,i.left=e-n.left,i.height=t.height+n.top+n.bottom,i.width=t.width+n.left+n.right,i.bottom=i.top+i.height,i.right=i.left+i.width,{top:{top:0,height:Math.max(i.top,0),left:i.left,width:i.width},left:{top:0,bottom:0,left:0,width:i.left},bottom:{top:i.bottom,width:i.width,bottom:0,left:i.left},right:{top:0,bottom:0,left:i.right,right:0}}}function bc(e){var t;if(e&&e.length)return t=wo(Zo())?Qo:Io,(e=_.reduce(e,function(n,e){var i;return pa(e)?(i=t(e))?(_.each([["top",gc],["right",mc],["bottom",mc],["left",gc]],function(e){var t=e[0],e=e[1];n[t]&&!e(i[t],n[t])||(n[t]=i[t])}),n):void 0:n},{})).height=e.bottom-e.top,e.width=e.right-e.left,e}function wc(e,t){var n=vc(),e=bc(e)||{top:0,left:0,right:n.width,bottom:n.height,width:0,height:0};return{viewport:n,box:e,overlays:yc(n,e,t)}}function Sc(e){var t=[],n=_.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==Zo()){t.push(e.element);for(var i=n.additionalElements.replace(/\s/g,"").split(","),r=0;r<n.additionalElements.length;r++)try{var o=k(i[r]);o&&_.each(o,function(e){t.push(e)})}catch(a){C.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var Ec=null,Ic=function(e){var t=!_.isEqual(e,Ec);return Ec=e,t},_c=null,Cc=function(e){var t=!_.isEqual(e,_c);return _c=e,t},xc=null,Tc=function(e){var t=!_.isEqual(e,xc);return xc=e,t},kc=function(e){return Cc(e.viewport)||Ic(e.box)||Tc(e.overlays)};function Ac(e){try{var t=wc(Sc(e),_.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));kc(t)&&_.each(e.backdrop.children,function(n){var e=n.getAttribute("pendo-region"),e=t.overlays[e];_.each(e,function(e,t){n.style[t]=e+"px"})})}catch(n){C.info("Failed to update BlockOut ui",{contexts:["error"]})}}function Rc(e){try{var t,n,i,r;if(!(0<k("._pendo-guide-backdrop_").length))return t=wc(Sc(e),_.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),kc(t),n={"z-index":1e4,position:"fixed"},i=[],_.each(t.overlays,function(e,t){t=function(e,t){var n=k("div.pendo-backdrop-region-"+e);n.length||(n=k(document.createElement("div")).addClass("pendo-backdrop-region-"+e));return k(n).css(t).attr("pendo-region",e),n}(t,_.extend({},e,n));i.push(t)}),o=i,a=ac("pendo-backdrop",e.domJson),_.each(["left","right","width","height","bottom","top"],function(e){delete a.props.style[e]}),s=k(document.createElement("div")).attr("id","pendo-backdrop").addClass("_pendo-guide-backdrop_"),_.each(a.props,function(n,i){_.each(o,function(e,t){"style"===i?e.css(a.props.style):"class"===i?e.addClass(n):"id"===i?e.attr(i,n+"-"+t):e.attr(i,n),s.append(e)})}),r=s,e.backdrop=r[0],r}catch(u){C.info("Failed to add BlockOut ui",{contexts:["error"]})}var o,a,s}var Oc="top",Nc="bottom",Mc="left",Lc="right",Pc="center";function Fc(e,t,n){return n===Lc||n===Mc?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?Pc:n<e/2?Lc:Mc)}const Dc={DEFAULT_CARET_OFFSET:10,BOUNDARY_MARGIN_RIGHT:.98,BOUNDARY_MARGIN_LEFT:.02,Z_INDEX:{DEFAULT:"300000",CARET:11,BORDER_CARET:10}};var Uc={createBBTooltip:Bc,getBBTooltipDimensions:qc,determineBBHorizontalBias:Fc,determineTooltipPosition:Wc,positionBBTooltipWithBias:Vc,calculateToolTipPositionForTopBottom:Jc,calculateToolTipPositionForLeftRight:Zc,buildTooltipCaret:Xc,styleTopOrBottomCaret:Qc,styleLeftOrRightCaret:el,buildBorderCaret:tl,determineBorderCaretColor:il,placeBBTooltip:function(e,t){var n,i,r,o,a,s,t=t||rl(e);t&&(r=t.ownerDocument||document,n=r.defaultView||window,r=e.element||gd(e,r),i=Jo(r,n),"none"!==R(e.elements[0]).display)&&(r=Io(r),s=e.attributes.layoutDir,e=e.guideElement,o=k(t).find("#pendo-guide-container"),a=o[0].style,t=R(t),t={height:parseInt(t.height,10),width:parseInt(t.width,10)},o={height:parseInt(o[0].getAttribute("data-caret-height"),10)||0,width:parseInt(o[0].getAttribute("data-caret-width"),10)||0,backgroundColor:o[0].style["background-color"],offset:Dc.DEFAULT_CARET_OFFSET,borderColor:a.borderColor,borderWidth:parseInt(a.borderWidth,10)||0},a=this.getBBTooltipDimensions(i,t,o,s,r,qo(n)),o.height&&o.width&&(t=e.find(".pendo-tooltip-caret")[0],s=e.find(".pendo-tooltip-caret-border")[0],t&&Yc(t,a,o,i),s)&&nl(s,o,a.layoutDir,t),e.css({top:a.top,left:a.left,position:i.fixed?"fixed":"absolute"}))},attachBBAdvanceActions:Hc,attachScrollHandlers:zc,isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!_.isObject(e.domJson)||!(e=rc(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForTooltip:function(e,t,n){Bc(t,e.element,e,n),e.hasBeenScrolledTo||(fa(e.element),yd(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)},patchGuideContainerWidthForResponsiveTooltips:function(e,t,n){t=t||rl(e);var i,r,o,a,s,u;t&&(i=e.element||gd(e,t.ownerDocument||document))&&(o=t.style.width)&&-1!==o.indexOf("vw")&&(o=Gc(e,i,n,t))&&(e=t,{elementPos:i,tooltipSizes:n,screenDimensions:t,caretDimensions:o,elementIsNotVisible:r}=i=o,o=parseInt(o.width,10)||0,a=parseInt(e.style.maxWidth,10),s=parseInt(e.style.minWidth,10),u=parseFloat(e.style.width)/100,r?n.width-=o:"left"===n.layoutDir?(r=i.left-o,n.width=Math.max(0,r*u)):"right"===n.layoutDir&&(r=t.width-i.right-o,n.width=Math.max(0,r*u)),a&&n.width>a&&(n.width=a),s&&n.width<s&&(n.width=s),e.style.width=n.width+"px")}};function Gc(e,t,n,i){var r,o,a=(t.ownerDocument||document).defaultView||window,s=Jo(t,a),t=Io(t),a=qo(a),u=e.attributes.layoutDir||"auto";return(0!==s.height||0!==s.width)&&(e=e&&!e.elementPathRule,n=oc(n,function(e){return"pendo-guide-container"===e.props.id}))?(r={height:parseInt(n.props["data-caret-height"],10)||0,width:parseInt(n.props["data-caret-width"],10)||0,backgroundColor:n.props.style["background-color"],offset:Dc.DEFAULT_CARET_OFFSET,borderWidth:0},n.props.style.border&&(o=n.props.style.border.split(" "),r.borderColor=o[2],r.borderWidth=parseInt(o[0],10)||0),{elementPos:s,screenPos:t,screenDimensions:a,caretDimensions:r,tooltipSizes:{width:i.offsetWidth,height:i.offsetHeight,layoutDir:u},containerDomJson:n,elementIsNotVisible:e}):null}function Bc(e,t,n,i){var r,o,a,s,u;if(n.guideElement)return(t=Gc(n,t,e,i))?({elementPos:e,tooltipSizes:a,screenPos:u,caretDimensions:r}=t,(o=n.guideElement).addClass(pd()?sd:ad),Hc(n),a=qc(e,{height:a.height,width:a.width},r,n.attributes.layoutDir,u,t.screenDimensions),n&&(n.dim=a),n&&_.isFunction(n.getGuide)&&(s=n.getGuide()),u=_.get(s,"attributes.resourceCenter"),e.fixed?(o.css({position:"fixed"}),i.style.position="absolute"):n&&u||(i.style.position="absolute"),r.height&&r.width&&Xc(o,a,r,e),t=Dc.Z_INDEX.DEFAULT,i&&i.style&&i.style["z-index"]&&(t=i.style["z-index"]),o.css({"z-index":t}),u||o.css({height:"auto",width:"auto",overflow:"visible"}),n.elementPathRule&&o.css({left:a.left,top:a.top,position:e.fixed?"fixed":"absolute"}),"top"===a.layoutDir&&a.hbias===Mc&&o.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),zc(n,ol),o[0]):null}function zc(e,t){e&&_.isFunction(e.attachEvent)&&(ld()&&e.element===k.getBody()||(t=_.throttle(_.bind(t,e,e),10),e.attachEvent(window,"scroll",t,!0),ua(_.bind(e.attachEvent,e),e.targetElement,t)))}function jc(t,n){var e=k(n.elementPathRule)[0];n.attachEvent(e,t,function(e){k.data.set(e,"advanced",!0),Ug(t,n)})}function Hc(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?jc("mouseover",e):e.attributes.advanceActions.elementClick&&jc("click",e))}function qc(e,t,n,i,r,o){var a,s,i=i||"auto",t={width:Math.min(t.width,o.width),height:t.height},u=(t.layoutDir=i,t.hbias=Fc(e,o,i),t.vbias=(a=e,u=o,(s=i)===Oc||s===Nc?s:(s=a.top,(u=(a=u.height)/3)<s&&s<2*u?Pc:s<a/2?Nc:Oc)),t.layoutDir=Wc(t,o,r,i),Vc(t,e,o,n));return t.top=u.top,t.left=u.left,"top"===t.layoutDir?t.top-=n.height:"bottom"===t.layoutDir?t.top+=n.height:"right"===t.layoutDir?t.left+=n.height:"left"===t.layoutDir&&(t.left-=n.height),t}function Wc(e,t,n,i){var r,o,a,s,u,d,c;return i&&"auto"!==i?i:(i=n.top,o=(r=n.left)+n.width,a=n.top-e.height<0,s=n.top+n.height+e.height>t.height,u=n.left-e.width<0,d=n.left+n.width+e.width>t.width,!(s&&a&&u&&d)&&(i<t.height/3&&(c="bottom"),(i>2*t.height/3||e.hbias===Pc)&&(c="top"),"top"===(c=r<e.width&&t.width-o<e.width?"bottom":c)&&n.top-e.height<0&&(c="bottom"),s&&a&&(e.hbias!==Pc&&(c=e.hbias),u&&d||(d||(c="right"),u)||(c="left")),(c=c&&"bottom"!==c||!s||a?c:"top")||e.hbias)||"bottom")}function Vc(e,t,n,i){return"top"===e.layoutDir||"bottom"===e.layoutDir?Jc(e,n,t,e.layoutDir,e.hbias,i):Zc(e,n,t,e.vbias)}function Jc(e,t,n,i,r,o){var a=e.height,s={top:null,left:null},a=("bottom"===i?s.top=n.top+n.height:"top"===i&&(s.top=n.top-a),{right:(i=t).width*Dc.BOUNDARY_MARGIN_RIGHT,left:i.width*Dc.BOUNDARY_MARGIN_LEFT});return s.left="right"===r?function(e,t,n,i,r,o){var n=Kc(n),a=t.width;e=e.left+e.width/2-n;e+t.width>i.width&&(e-=e+t.width-i.width);n=e+a;if(r<n)return e-(t=n-r)<o?$c(e,a,i):e-t;return e}(n,e,o,t,a.right,a.left):"left"===r?function(e,t,n,i,r,o){n=Kc(n),t=t.width;e=e.left-t+e.width/2+n;if(e<o)return r<e+t+(n=o-e)?$c(e,t,i):e+n;return e}(n,e,o,t,a.right,a.left):function(e,t,n,i,r){t=t.width;e=e.left+e.width/2-t/2;var o=e+t;if(i<o){if((e-=o-i)<r)return $c(e,t,n)}else if(e<r){o=(e+=r-e)+t;if(i<o)return $c(e,t,n)}return e}(n,e,t,a.right,a.left),s}function Kc(e){e=(parseInt(e.offset,10)||0)+(parseInt(e.width,10)||0)+(parseInt(e.borderWidth,10)||0);return isNaN(e)?0:e}function $c(e,t,n){n=n.width-(e+t);return n<e?e-(e-n)/2:e<n?e+(n-e)/2:e}function Zc(e,t,n,i){var r=e.height,o=e.width,a={top:null,left:null};return"right"===e.layoutDir?a.left=n.left+n.width:"left"===e.layoutDir&&(a.left=Math.max(0,n.left-o)),"bottom"===i?((o=n.top+n.height/2)+e.height>t.height&&(o-=o+e.height-t.height),a.top=o):a.top="top"===i?n.top-r+n.height/2:n.top-r/2+n.height/2,a}function Xc(e,t,n,i){var r=document.createElement("div"),i=(r.setAttribute("class","pendo-tooltip-caret pendo-tooltip-caret--"+t.layoutDir),r.style.position="absolute",r.style.zIndex=Dc.Z_INDEX.CARET,Yc(r,t,n,i),e.find("#pendo-guide-container")[0].parentNode);i.appendChild(r),n.borderWidth&&(e=tl(r,n,t.layoutDir),i.appendChild(e))}function Yc(e,t,n,i){"top"!==t.layoutDir&&"bottom"!==t.layoutDir||Qc(e,t,n,i),"left"!==t.layoutDir&&"right"!==t.layoutDir||el(e,t,n)}function Qc(e,t,n,i){e.style["border-left"]=n.width+"px solid transparent",e.style["border-right"]=n.width+"px solid transparent",e.style.right="";i=i,r=n,o=(a=t).hbias;var r,o,a,i=i&&i.left?i.left+i.width/2-a.left-r.width:"left"===o?a.width-2*r.width-r.offset-r.borderWidth:"right"===o?r.offset+r.borderWidth:a.width/2-r.width;return e.style.left=i+"px","bottom"===t.layoutDir&&(e.style["border-bottom"]=n.height+"px solid "+n.backgroundColor,e.style["border-top"]="",o=-1*n.height,n.borderWidth&&(o+=n.borderWidth),e.style.top=o+"px",e.style.bottom=""),"top"===t.layoutDir&&(e.style["border-top"]=n.height+"px solid "+n.backgroundColor,e.style["border-bottom"]="",a=-1*n.height,n.borderWidth&&(a+=n.borderWidth),e.style.bottom=a+"px",e.style.top=""),e}function el(e,t,n){var i,r=qo();return e.style["border-top"]=n.width+"px solid transparent",e.style["border-bottom"]=n.width+"px solid transparent",e.style.bottom="",t.vbias===Oc?(i=t.height-2*n.width-n.offset-n.borderWidth,e.style.top=i+"px",t.top+=n.offset+n.width+n.borderWidth):t.vbias===Nc?(e.style.top=n.offset+n.borderWidth+"px",t.top-=n.offset+n.width+n.borderWidth,t.top+t.height>r.height&&(t.top=t.top-(t.top+t.height-r.height)),t.top=Math.max(0,t.top)):e.style.top=t.height/2-n.width+"px","left"===t.layoutDir&&(e.style["border-left"]=n.height+"px solid "+n.backgroundColor,e.style["border-right"]="",i=-1*n.height,n.borderWidth&&(i+=n.borderWidth),e.style.right=i+"px",e.style.left=""),"right"===t.layoutDir&&(e.style["border-right"]=n.height+"px solid "+n.backgroundColor,e.style["border-left"]="",r=-1*n.height,n.borderWidth&&(r+=n.borderWidth),e.style.left=r+"px",e.style.right=""),e}function tl(e,t,n){var i=e.cloneNode();return i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=Dc.Z_INDEX.BORDER_CARET,nl(i,t,n,e),i}function nl(e,t,n,i){for(var r={top:"",right:"",bottom:"",left:""},o=["Top","Right","Bottom","Left"],a=0;a<o.length;a++){var s="border"+o[a]+"Width",u="border"+o[a]+"Color",d="border"+o[a]+"Style";i.style[s]?(r[s]=parseInt(i.style[s],10)+t.borderWidth+"px",r[u]=il(i.style[u],t.borderColor),r[d]="solid"):(r[s]="",r[u]="",r[d]="")}"top"===n&&(r.left=parseInt(i.style.left,10)-t.borderWidth+"px",r.bottom=parseInt(i.style.bottom,10)-t.borderWidth+"px"),"bottom"===n&&(r.left=parseInt(i.style.left,10)-t.borderWidth+"px",r.top=parseInt(i.style.top,10)-t.borderWidth+"px"),"right"===n&&(r.top=parseInt(i.style.top,10)-t.borderWidth+"px",r.left=parseInt(i.style.left,10)-t.borderWidth+"px"),"left"===n&&(r.top=parseInt(i.style.top,10)-t.borderWidth+"px",r.right=parseInt(i.style.right,10)-t.borderWidth+"px"),_.extend(e.style,r)}function il(e,t){return"transparent"===e?e:t}function rl(e){var t,n;if(e.guideElement)return t="pendo-resource-center-container"===e.guideElement.attr("id"),n=rc(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}function ol(e){pa(e.element)?(Uc.placeBBTooltip(e),k(e.elements[0]).css({display:"block"})):k(e.elements[0]).css({display:"none"})}function al(t){var e=t.find('[data-pendo-grow-height="true"]');if(e.length){var n=Object.entries(e),i=[];for(let e=0;e<n.length;e++)if(Number.isInteger(Number.parseInt(n[e][0],10))){const o=n[e][1];var r=_.some(i,function(e){return e.parentNode===o.parentNode});if(!r){let e=t[0];r=o.parentNode.closest('[data-pendo-grow-height="true"]');if(r){if(!i.includes(r))continue;e=r}sl(o,e),i.push(o)}}}}function sl(t,e){let n=0;var i=t.parentNode.children;for(let e=0;e<i.length;e++){var r,o=i[e];o!==t&&(r=R(o),r=parseInt(r.marginTop,10)+parseInt(r.marginBottom,10),n+=o.offsetHeight+r)}var a=e.offsetHeight,e=R(e),e=parseInt(e.paddingTop,10)+parseInt(e.paddingBottom,10),s=R(t),s=parseInt(s.marginTop,10)+parseInt(s.marginBottom,10),a=Math.max(a-e-n-s,0);0<a&&(t.style.height=a+"px")}function ul(e,t){var n,i,r,o,a,s,u,d,c,e=k("#"+e,t)[0];e&&(t=k(e),n=k(t.find("#pendo-guide-container")[0]),r="%"===(i=e.style.height)[i.length-1]?"%":"px",o=parseInt(i,10),a=e.getAttribute("data-pendo-static-height"),t.css({height:"auto"}),a||n.css({"max-height":"none"}),s=parseInt(R(e).height,10),u=qo().height,d=parseInt(e.style.top,10),d=isNaN(d)?0:d,c=parseInt(e.style.bottom,10),(u=u-d-(c=isNaN(c)?0:c))<s&&(n.css({"max-height":u+"px",overflow:"auto"}),s=u),s!==o?(t.css({height:(d=a&&o?o:s)+r}),"Centered"!==(c=e.getAttribute("data-vertical-alignment"))&&"Left Aligned"!==c&&"Right Aligned"!==c||t.css({"margin-top":"-"+(u<s?u:d)/2+"px"})):t.css({height:i}))}function dl(e,t){e=k("#"+e,t)[0];if(e){t=e.getAttribute("data-pendo-mobile-layout");if(!t){var n=k(e),t=k(n.find("#pendo-guide-container")[0]),i=parseInt(e.style.width,10),r=(t.css({"max-width":"none"}),n.css({"margin-right":"0px"}),parseInt(R(e).width,10)),o=qo().width-parseInt(e.style.left||0,10)-parseInt(e.style.right||0,10);if(o<r&&(t.css({"max-width":o+"px"}),r=o),!isNaN(i))switch(e.getAttribute("data-vertical-alignment")){case"Centered":case"Top Aligned":case"Bottom Aligned":var a=r/2;parseInt(n.css("margin-left"),10)!==a&&n.css({"margin-left":"-"+a+"px"});break;case"Right Aligned":case"Top Right Aligned":case"Bottom Right Aligned":a=i-r;parseInt(n.css("margin-right"),10)!==a&&n.css({"margin-right":"-"+a+"px"})}}}}function cl(e,i){var e=_.isArray(e)?e:[e],e=_.reduce(e,function(e,t){var t=k("#"+t,i),n=t[0];return n&&!n.getAttribute("data-pendo-mobile-layout")&&(n=t.find("#pendo-guide-container")[0],e.push(n)),e},[]),t=e;(t=_.reduce(t,function(e,t){return e.concat(_.toArray(k(['[class*="_pendo-text-"]:not([class*="_pendo-resource-center-"])','.pendo-mock-flexbox-element > [class*="_pendo-button-"]',"._pendo-multi-choice-poll-select"].join(","),t)))},[]))&&t.length&&ll(_.reduce(t,function(e,t){var n,t=k(t),i=fl(t[0]),i=i.marginLeft+i.marginRight,r=hl(t);return r&&(n=r.paddingLeft+r.paddingRight,r=r.width-i-n,e.push({$blockElement:t,availableSpace:r})),e},[])),_.each(e,function(e){var t=e,t=((t=k("._pendo-open-text-poll-input",t))&&t.length&&_.each(t,function(e){var t,n=k(e),i=n.attr("data-_pendo-open-text-poll-resize-base-width"),e=(i||(i=e.style.width,n.attr("data-_pendo-open-text-poll-resize-base-width",i)),fl(n[0])),r=e.marginLeft+e.marginRight,o=hl(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&pl(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),ll({$blockElement:n,availableSpace:o}))}),e);(t=k(["._pendo-video","._pendo-image"].join(","),t))&&t.length&&_.each(t,function(e){var t=k(e),n=fl(t[0]),i=n.width,n=n.marginLeft+n.marginRight,r=t.attr("data-_pendo-media-resize-base-width"),e=(r||(r=e.style.width,t.attr("data-_pendo-media-resize-base-width",r)),-1!==r.indexOf("%"));if(t.hasClass("_pendo-image")){var o=e&&100<parseInt(r,10),a=t.attr("data-pendo-accessible-element");if(o||!a)return void t.css({width:i});t.css({height:"auto"})}o=hl(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&pl(t,i,r,a),ll({$blockElement:t,availableSpace:a}))})})}function ll(e){_.isArray(e)||(e=[e]),_.each(e,function(e){e.$blockElement.css({"max-width":"none"})});var n=_.map(e,function(e){return fl(e.$blockElement[0]).width});_.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function pl(e,t,n,i){var r=-1!==e[0].style.width.indexOf("%"),i=i*(parseInt(n,10)/100);(r||t<i)&&e.css({width:i<0?0:i})}function hl(e){e=e.closest("._pendo-row");if(e){e=R(e[0]);if(e)return{width:parseFloat(e.width),paddingLeft:parseInt(e.paddingLeft,10),paddingRight:parseInt(e.paddingRight,10)}}}function fl(e){e=R(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var gl,M={calculateTotalOffsetWidth:yl,center:function(e,t){for(var n=t/2,t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=yl(e,r);e[r].style.left=n+o+"px"}1<e.length&&(i.style.right=n+"px");t.style.left=n+"px"},createFlexContainer:function(e,t){var n=document.createElement("div");n.style.display="inline-block",e||t||(n.style.position="absolute");return n.style["vertical-align"]="top",n.setAttribute("class","pendo-mock-flexbox-element"),n},createFlexRow:function(){var e=document.createElement("div");return e.setAttribute("class","pendo-mock-flexbox-row"),e.style.display="block",e.style.position="relative",e.style.width="100%",e},findMaxChildHeight:function(e,t){for(var n=[],i=0;i<e.length;i++){var r;t&&-1!==(e[i].children[0].children[0].getAttribute("class")||"").indexOf("pendo-block-wrapper")&&(r=e[i].children[0].offsetHeight+"px",e[i].style.height=r),n.push(e[i].offsetHeight)}return _.reduce(n,function(e,t){return Math.max(e,t)},20)},flexEnd:function(e,t){for(var n=t,t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=yl(e,r);e[r].style.left=n+o+"px"}1<e.length&&(t.style.left=n+"px");i.style.right="0px"},flexStart:function(e){e[0].style.left="0px";for(var t=1;t<e.length;t++){var n=yl(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return _.filter(e,vl)},getPendoVisualElements:function(e){return _.filter(e,function(e){return!vl(e)})},initializeFlexElements:function(e){var t=e.cloneNode(),n=ml(e),i=M.getPendoInlineUIElements(e.children);if(1===n.length&&0===n[0].id.indexOf("pendo-text"))return e;for(;t.childNodes.length;)t.removeChild(t.childNodes[0]);for(var r=0;r<n.length;r++)wl(n[r])?t.appendChild(n[r]):t.appendChild(M.wrapElementInMockFlexboxContainer(n[r],e,t));for(var o=0;o<i.length;o++)t.appendChild(i[o]);return e.parentNode.replaceChild(t,e),t},isPendoInlineUIElement:vl,setElementHorizontalAlignment:function(e,t,n){if(!(e.length<1))switch(n){case"space-between":M.spaceBetween(e,t);break;case"space-around":M.spaceAround(e,t);break;case"space-evenly":M.spaceEvenly(e,t);break;case"center":M.center(e,t);break;case"flex-start":M.flexStart(e);break;case"flex-end":M.flexEnd(e,t)}},setElementVerticalAlignment:function(e,t,n){switch(n){case"top":M.topAlignment(e);break;case"center":M.centerAlignment(e,t);break;case"bottom":M.bottomAlignment(e)}},spaceAround:function(e,t){for(var n=t/(2*e.length),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=yl(e,r);e[r].style.left=2*n+o+"px"}t.style.left=n+"px",i.style.right=n+"px"},spaceBetween:function(e,t){for(var n=t/Math.max(e.length-1,1),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=yl(e,r);e[r].style.left=r*n+o+"px"}t.style.left="0px",i.style.right="0px"},spaceEvenly:function(e,t){for(var n=t/(e.length+1),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=yl(e,r);e[r].style.left=n+o+"px"}t.style.left=n+"px",i.style.right=n+"px"},topAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.top="0px"},centerAlignment:function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=i.offsetHeight,o=t/2,o=Math.round(o-r/2);i.style.top=o+"px"}},bottomAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.bottom="0px"},wrapElementInMockFlexboxContainer:function(e,t,n){var i=e.getAttribute("class")||"",r=-1!==i.indexOf("pendo-block-wrapper"),o=e.style&&"absolute"===e.style.position,a=_.get(e.style,"width",""),s=R(e).width,u=-1!==i.indexOf("_pendo-open-text-poll-wrapper")||-1!==i.indexOf("_pendo-image-wrapper")||-1!==i.indexOf("pendo-video-wrapper")||-1!==i.indexOf("_pendo-number-scale-poll-wrapper");r&&!u&&(a=(a?s:null)||R(e.children[0]).width);(0<=i.indexOf("_pendo-resource-center-onboarding-module-guide-complete-circle-container")||0<=i.indexOf("pendo-task-list-progress-circle"))&&(s=parseInt(R(t).width,10),d=parseInt(R(e).width,10)+parseInt(e.style.marginRight||0,10)+parseInt(e.style.marginLeft||0,10),t=(k(t).find("._pendo-simple-text").getParent()||k(n).find("._pendo-simple-text").getParent())[0],n=s-d,"border-box"!==_.get(t,"style.boxSizing")&&(n=n-parseInt(t.style.paddingLeft||0,10)-parseInt(t.style.paddingRight||0,10)),t.style.width=n.toString()+"px",t.style.maxWidth=n.toString()+"px");{var d;if(!i||i.indexOf("pendo-mock-flexbox-element")<0)return(s=M.createFlexContainer(o)).appendChild(e),-1<e.id.indexOf("pendo-text")&&"rtl"===e.dir&&(s.style.right="0px"),d=_.get(e,"children")[0],r&&d&&-1!==(d.getAttribute("class")||"").indexOf("image-preview-placeholder")&&(s.children[0].style.width=a),!r||u||e.style.width||(s.children[0].children[0].style.width=a),s}return e},getVisualElementsWrappedInFlexElements:ml,initializeFlexRows:function(e,t,n,i=!1){{var r;i?(e.style.display="flex",e.style.flexWrap="wrap",e.style.justifyContent=t,e.style.alignItems={top:"flex-start",center:"center",bottom:"flex-end"}[n]||"flex-start"):0!==(i=function(e){return _.filter(e,function(e){e=e.getAttribute("class")||"";return e&&-1<e.indexOf("pendo-mock-flexbox-element")})}(e.children)).length&&(r=M.getRowWidth(e),i=M.wrapFlexElementsInFlexRows(i,e,r),M.formatFlexRows(i,e,t,n,r))}},getRowWidth:bl,wrapFlexElementsInFlexRows:function(e,t,n){for(var i=n||bl(t),r=M.createFlexRow(),o={row:r,rowWidthUsed:0},a=[o],s=0;s<e.length;s++){var u=e[s],d=Io(u)["width"],d=parseInt(d,10);o.rowWidthUsed+=d,o.rowWidthUsed>i&&0!==_.indexOf(e,u)&&(o.rowWidthUsed-=d,(r=M.createFlexRow()).appendChild(u),a.push(o={row:r,rowWidthUsed:d})),o.row.appendChild(u)}return a},formatFlexRows:function(e,t,n,i,r){for(var o=r||bl(t),a=0;a<e.length;a++){var s=e[a],u=(t.appendChild(s.row),M.findMaxChildHeight(s.row.children,!1)),d=(s.row.style["min-height"]=u+"px",o-parseInt(s.rowWidthUsed,10));M.setElementHorizontalAlignment(s.row.children,d,n),M.setElementVerticalAlignment(s.row.children,u,i)}},isElementHiddenInGuide:wl,flexAllThings:function(e,t){var n=null==(n=null==t?void 0:t.attributes)?void 0:n.useFlexbox,t=(null==t?void 0:t.guideElement)||document,e=k("#"+e,t)[0];e&&(El(e),M.flexElement(e,n))},flexElement:function(e,i){e=k("[data-pendo-display-flex]",e);_.each(e,function(e){var t=i?e:M.initializeFlexElements(e),n=e.getAttribute("data-pendo-justify-content"),e=e.getAttribute("data-row-vertical-alignment");M.initializeFlexRows(t,n,e,i)})},maintainAspectRatios:El};function ml(e){return k(["._pendo-button",".pendo-block-wrapper","._pendo-multi-choice-poll-select-border","._pendo-text-subTitle","._pendo-text-paragraph","._pendo-text-title","._pendo-text-custom","._pendo-close-guide","> ._pendo-simple-text","div._pendo-resource-center-module-list-item-text-container","._pendo-resource-center-right-caret",'[id^="pendo-onboarding-guide-progress-circle"]','[id^="pendo-task-list-progress-circle"]','[id^="pendo-a11y-list-item-button-block"]',"._pendo-resource-center-onboarding-module-listed-guide-link","._pendo-home-view-bubble"].join(","),e)}function vl(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function yl(e,t){for(var n=(e=Array.prototype.slice.call(e)).slice(0,t),i=0,r=0;r<n.length;r++)i+=n[r].offsetWidth;return i}function bl(e){var t=Io(e)["width"],e=R(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function wl(e){Sl(e);var t=Qo(e);if(0===t.width||0===t.height)return!0;if(!e.style||"visible"!==e.style.visibility)for(var n=e,i=e.id||"",r=0;0!==i.indexOf("pendo-g-")&&(Sl(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function Sl(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function El(e){var n="data-aspect-ratio",e=k("["+n+"]",e);_.each(e,function(e){var t=e.getAttribute(n).split(":"),t=1<t.length?parseInt(t[0],10)/parseInt(t[1],10):parseFloat(t[0]);isNaN(t)||(e.style.height=e.offsetWidth/t+"px")})}function Il(){return!E.designer&&f.get("disableGuidePseudoStyles")}function _l(e,t,n){return e&&e.templateName?uc.buildNodesFromTemplate(e.templateName,e,t,n,Tl):"style"===e.type&&Il()?[]:[Tl(e,t,n)]}function Cl(e,t,n,i){e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw i&&(e+=' for node type "'+i+'"'),C.info(e),new Error(e)}function xl(n,i,r,o){var a={allow:!0,allowfullscreen:!0,alt:!0,"alt-text":!0,autofocus:!0,"class":!0,cols:!0,contenteditable:!0,dir:!0,"for":!0,frameborder:!0,href:!0,id:!0,loading:!0,name:!0,placeholder:!0,placement:!0,rows:!0,role:!0,sandbox:!0,scoped:!0,src:!0,start:!0,style:!0,tabindex:!0,target:!0,title:!0,type:!0,value:!0},s={embed:{src:!0}},u=/^data-/,d=/^aria-/,e=_.keys(n);return _.reduce(e,function(e,t){return s[o]&&s[o][t]&&Cl(t,r,i,o),a[t]||u.test(t)||d.test(t)||Cl(t,r,i),e[t]=n[t],e},{})}function Tl(n,i,e){i=i||{id:"unknown",guideId:"unknown"},n.props=xl(n.props,i.id,i.guideId,n.type);var t,r=k(document.createElement(n.type));if(document.createElement("div").appendChild(r[0]),"script"===r[0].tagName.toLowerCase())return k(document.createElement("noscript"));if("pendo-backdrop"===(n.props&&n.props.id))return i.attributes&&i.attributes.blockOutUI&&i.attributes.blockOutUI.enabled&&Uc.attachScrollHandlers(i,Ac),Rc(i);if(_.each(n.props,function(e,t){"style"===t?r.css(n.props.style):"data-pendo-code-block"!==t||!0!==e||f.get("preventCodeInjection")?r.attr(t,e):(t=i.getContent(),0!==Qe.call(t).length&&r.addClass("pendo-code-block").html(t))}),n.content&&r.text(n.content),"style"===n.type&&(E.designer||(n.css=function(e){for(var t=["button:focus"],n=[],i=0;i<e.length;i++)_.contains(t,e[i].selector)||n.push(e[i]);return n}(n.css)),(t=f.get("inlineStyleNonce"))&&r.attr("nonce",t),r.styleSheet?r.styleSheet.cssText=Ol(n.css):r.text(Ol(n.css))),n.svgWidgetId&&hc.buildSvgNode(n.svgWidgetId,n).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)Rl(r,n.actions[a],i),"renderGuidesListItem"===n.actions[a].action&&((o=N(n.actions[a].parameters[0]))?r.text(o.name):r.attr("style","display: none;"));if(_.find(n.actions,function(e){return"dismissGuide"===e.action})&&!i.hasEscapeListener&&(i.hasEscapeListener=!0,i.attachEvent(window,"keyup",function(e){27===e.keyCode&&i.eventRouter.eventable.trigger("pendoEvent",{step:i,action:"dismissGuide"})},!0)),n.children)for(var s=sa(hd()),u=s!==document,d=0;d<n.children.length;d++){var c=_l(n.children[d],i,e);_.each(c,function(e){var t;e&&("STYLE"!==e[0].tagName?e.appendTo(r):u?((t=new CSSStyleSheet).replaceSync(e[0].innerHTML),(s.hasOwnProperty("wrappedJSObject")?s.wrappedJSObject:s).adoptedStyleSheets.push(t)):(k.addClass(e[0],"pendo-style-"+(i.isBadge?i.guideId:i.id)),e.appendTo(document.head)))})}return r.hasClass("pendo-code-block")?r.find("img").each(function(e){kl(e,i)}):kl(r[0],i),r}function kl(e,t){var n=e.id&&-1!==e.id.indexOf("badge"),i=!!e.getAttribute("src"),r=e.className&&0<=e.className.indexOf("bb-control"),o=e.tagName&&e.tagName.toLowerCase(),a=e.className&&0<=e.className.indexOf("_pendo-video");("img"===o&&i&&!n&&!r||"iframe"===o&&t&&!a)&&"lazy"!==e.getAttribute("loading")&&(t.attributes&&!t.attributes.imgCount?t.attributes.imgCount=1:t.attributes&&t.attributes.imgCount&&t.attributes.imgCount++,Al(k(e),t))}function Al(e,i){e.on("load",function(){var e,t={},t=(!i.containerId&&i.domJson&&(t=rc(i.domJson)),i.containerId||t.props&&t.props.id||""),n=t&&k("#"+t,i.guideElement)[0];i&&i.attributes&&i.attributes.imgCount&&(i.attributes.imgCount--,n)&&i.attributes.imgCount<=0&&(dl(t,i.guideElement),cl(t,i.guideElement),M.flexAllThings(t,i),e=i.getGuide(),_.get(e,"attributes.isAnnouncement")||"AnnouncementsModule"===_.get(e,"attributes.resourceCenter.moduleId")||(ul(t,i.guideElement),(e=n.children.item("pendo-guide-container"))&&e.style&&"auto"===e.style.overflow&&(cl(t,i.guideElement),M.flexAllThings(i.containerId,i))),"tooltip"===i.attributes.calculatedType&&Uc.positionStepForTooltip(i,i.domJson,n),n.style.visibility="visible",n.parentNode.style.visibility="visible",k.event.dispatch(n,{type:"imagesLoaded"}))}),e.on("error",function(){var e=k("#"+i.containerId,i.guideElement)[0];e?("tooltip"===i.attributes.calculatedType&&Uc.positionStepForTooltip(i,i.domJson,e),e.style.visibility="visible",e.parentNode.style.visibility="visible",M.flexAllThings(i.containerId,i)):C.info("Failed to find guideContainer for id: "+i.containerId)})}function Rl(n,i,r){n.on(i.eventType,function(e){var t;i.designerAction?E.designerv2&&E.designerv2.designerActions&&E.designerv2.designerActions[i.action](n,i.parameters):(t={action:i.action,params:i.parameters,step:r,ignore:!!i.ignore,srcElement:e.srcElement},("showElements"!==i.action&&"hideElements"!==i.action||e.srcElement&&e.srcElement.getAttribute("id")===i.source||e.target&&e.target.getAttribute("id")===i.source)&&r.eventRouter.eventable.trigger("pendoEvent",t))})}function Ol(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=Ol(n[r].styles):_.each(n[r].styles,function(e,t){i+=t+":"+e,n[r].selector.match(/\d+%/)||(i+="!important;")}),i+="}";return i}function Nl(t){_.each(document.head.childNodes,function(e){e&&k.hasClass(e,"pendo-style-"+t)&&Ko(e)})}var Ml=function(){var e=window.navigator;return((_.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},Ll="meta",Pl=_.compose(JSON.parse,JSON.stringify),Fl=function(){var e=new Date,t=e.getDate(),n=e.getMonth()+1;return e=(t=t<10?"0"+t:t)+"/"+(n=n<10?"0"+n:n)+"/"+e.getFullYear()},Dl=function(e={}){(e=_.isObject(e)?e:{}).jwt&&e.signingKeyName&&(t=vs.getJwtOptions(e,"updateOptions"))&&(vs.set(_.pick(e,"jwt","signingKeyName")),e=t),t=e,n=_.extend({},t.visitor),i=_.extend({},t.account),t=_.extend({},t.parentAccount),n.id===Ln&&(C.info("Missing visitor id."),delete n.id),Rn(i.id)&&Rn(t.id)&&(Dn(i.id)?t.id=i.id.split(Fn)[0]:i.id=""+t.id+Fn+i.id),Rn(i.id)&&(i.id=""+i.id),Rn(n.id)?n.id=""+n.id:n.id=b({generate:!0}),n.language=Ml(),e={visitor:Pl(n),account:Pl(i),parentAccount:Pl(t),date:Fl(),version:E.VERSION},g.getters["metadata/selfHosted"]()&&(e.selfHosted=!0);var t,n=_.clone(jl()),i=(f.setLocalConfig(_.extend({},f.getLocalConfig(),e)),g.commit("metadata/setMetadata",e),jl()),r=(Rn(e.visitor.id)&&(E.identify(e.visitor.id,e.account.id),e.visitor.id=b(),e.account.id=qn()),at(e)),o=(void 0!==(o="object"==typeof(o=r)?at(o):o)&&o.toString&&(o=o.toString()),""+(_.isNumber(gl)?gl:Vn(Ll))!==o),r=(gl=r,o&&Wn(Ll,r),!_.isEqual(n,i));return{options:e,hashChanged:o,storeChanged:r}},Ul=$n(function(e){e=Dl(e);y.metadata.trigger(e)}),Gl=$n(function(e,t){_.isObject(e)?Ul(e):Bn(e,t)}),Bl=function(){var t,e=k("script");return e=e,t=new RegExp("/agent/static/"+E.apiKey+"/pendo\\.js$"),!_.any(e,function(e){return t.test(e.src)})&&!Ee()},zl=function(){var e=f.get("blockAgentMetadata");return e!==undefined&&e};function jl(){return g.getters["metadata/metadata"]()}function Hl(){return JSON.parse(JSON.stringify(jl()))}function ql(e){var t=e.data[0],n=f.getLocalConfig()||{};Kn(e)?(Mn([Ll]),g.commit("metadata/reset",t)):(n.visitor=_.extend({},n.visitor,{id:t.visitor_id}),n.account=_.extend({},n.account,{id:t.account_id}),f.setLocalConfig(n),g.commit("metadata/setMetadata",n))}var Wl={Launcher:{addBehavior:_.noop},Metadata:{getMetadata:jl},Util:{documentScrollTop:mo,documentScrollLeft:vo,getOffsetPosition:Jo},Events:y,JWT:{getJWT:vs.get}};var Vl,Jl,Kl,$l,Zl={},Xl=(Jl=[],Kl=[],$l={},(Vl=Zl).getExtensions=function(){return Kl},Vl.tagExtension=function(e,t){e=Vl.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},Vl.findExtensionByTag=function(t){return _.find(Kl,function(e){return _.contains(e.tags,t)})},Vl.findExtensionByName=function(e){return _.findWhere(Kl,{name:e})},Vl.filterExtensionsByUse=function(t){return _.filter(Kl,function(e){return e.use===t})},Vl.findExtensionByNameAndProvider=function(t,n){return _.find(Kl,function(e){e=e.data;return!!e&&e.name===t&&e.provider&&e.provider.name===n})},Vl.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],$l[e]={handler:t,validators:n}},Vl.getExtensionFrames=function(){return _.reduce(Kl,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=_.filter(e,Yl)).length&&(Jl=function n(e){if(!e.length)return e;var t=_.filter(e,Ql);if(t.length)return n(_.difference(e,t));return e}(Jl.concat(e)))});function Yl(t){var e;return!!_.every(["name","version","use","type","uri"],_.partial(_.has,t))&&(e=t.use,e=$l[e]?$l[e].validators:[],_.every(_.map(e,function(e){return e(t)})))}function Ql(e){var t;return"behavior"===e.use?!!e.uri(Vl,Wl)&&(Kl.push(e),!0):(t=e.use,!!(t=$l[t]?$l[t].handler||_.identity:null)&&((e=t(e))&&Kl.push(e),!!e))}var L,ep,tp,np,ip,rp,P={initializeResourceCenter:function(r){if(!(L=ap(r)))return m.resolve();if(g.getters["frames/isShownInAnotherFrame"]()(L.steps[0]))return m.resolve();if(P.isFullyCustom(L))return L.hasResourceCenterContent=!0,m.resolve();var e=sp(L,r),t=_.reduce(e,function(e,t){return op(t)?e.concat(t.steps[0].fetchContent()):e},[]);return t.push(Vd.validate(L).then(_.noop,function(){L.launchMethod="api"})),L.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},_.forEach(hp(),function(e){var t=Zl.findExtensionByNameAndProvider("chat",e),t=(t&&vp(e,t),Zl.findExtensionByNameAndProvider("helpcenter",e));t&&vp(e,t)}),_.forEach(e,function(t){var e=t.attributes.resourceCenter,n=e.children,i=e.moduleId,e=("IframeModule"===i&&(t.hasResourceCenterContent=!0),"SandboxModule"===i&&(t.hasResourceCenterContent=!0),"IntegrationModule"===i&&(t.integrationConfig=lp(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&pp(e.integrationName,e.integrationProvider),_.reduce(n,function(e,t){var n=_.find(r,function(e){return e.id===t});return n?e.concat(n):e},[]));"AnnouncementsModule"===i&&(L.attributes.notifications.individualCounts[t.id]=0,_.forEach(e,function(e){Hp(e)||e.isControlGroup()||L.attributes.notifications.individualCounts[t.id]++}));-1<_.indexOf(["GuideListModule","OnboardingModule","AnnouncementsModule"],i)&&_.filter(e,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):!(e.ineligibleForRC=!0)}).length&&(t.hasResourceCenterContent=!0),t.guidesInModule=e}),L.modules=e,L.badgeHidden=!0,m.all(t)["catch"](()=>(L=null,C.error("Failed to load one or more Resource Center modules"),m.resolve()))},findResourceCenterHomeView:ap,findResourceCenterModules:sp,replaceResourceCenterContent:up,renderResourceCenterModule:function(e,t){up(e.id,undefined,!0,t)},showHomeViewOrEmptyState:function(e){k("#pendo-resource-center-container._pendo-guide-walkthrough_").remove(),delete e.activeModule,e.hasResourceCenterContent&&e.skipResourceCenterHomeView?P.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,[{value:"none"},{value:"left"}]):e.showEmptyState&&(P.showResourceCenterEmptyState(),_.each(e.controlGuidesInAllModules,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}))},showResourceCenterEmptyState:function(){var e=k("#pendo-resource-center-empty-state-container");e&&e.length&&k(e[0]).css({display:"block"})},launchIntegrationByNameAndProvider:function(e,t,n){var e=Zl.findExtensionByNameAndProvider(e,t);return e?(n=k(n))?((e=e.getFrame()).appendTo(n),void e.css({display:"block"})):C.info("could not find target element for "+t+" integration"):C.info(t+" integration has not been loaded into the agent")},appendIntegrationToBodyByNameAndProvider:pp,attemptToPreserveIntegrationIframes:function(e){e.step&&(e=e.step.getGuide()).attributes&&e.attributes.resourceCenter&&(e=P.getResourceCenterContainer())&&(e=k(e).find('iframe[id^="_pendo-launcher-ext-frame-chat"]'))&&e.length&&e.each(function(e){e=k(e);e.css({display:"none"}),e.appendTo(hd())})},getResourceCenter:_p,getResourceCenterContainer:Cp,getResourceCenterBadge:xp,addNotificationBubbleToResourceCenterBadge:Pp,addNotificationBubbleToTargetElement:Fp,updateNotificationBubbles:function(){var e=L,t=_.get(e,"attributes.notifications");if(t){var n=Rp(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&zp(),t.totalUnseenCount=n;else{Op();var i=n!==t.totalUnseenCount;if(i||!kp(np)){if("badge"===e.launchMethod){i=xp();if(!i)return;Pp(i.element(),e.attributes.notificationBubble,n)}if("dom"===e.launchMethod&&_.get(e,"attributes.activation.selector")){i=k(e.attributes.activation.selector);if(!i.length)return;Fp(i[0],e.attributes.notificationBubble,n),l(window,"resize",_.debounce(Ap,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:zp,updateNotificationBubbleCount:jp,updateNotificationBubbleOnHomeView:Np,updateOrCreateNotificationBubble:Dp,hexToRgb:Tp,doesIntegrationExist:lp,calculateTotalNotificationCount:Rp,updateNotificationBubblesOnHomeView:Op,createNotification:Gp,appendNotificationBubble:Bp,hasAnnouncementBeenSeen:Hp,clearAnnouncementUnseenInterval:dp,createAnnouncementUnseenInterval:cp,findShownResourceCenterModule:function(){var e=P.getResourceCenterContainer();if(e){e=k(e).find('[id^="pendo-g-"]');if(e){var t=e.attr("data-pendo-guide-id"),e=_.find(Yu(),function(e){return e.id===t});if(_.get(e,"attributes.resourceCenter.isModule",!1))return e}}},dismissResourceCenter:qp,repositionResourceCenter:function(){var e=P.getResourceCenterContainer();{var t,n,i;e&&(i=P.findResourceCenterHomeView(Yu()).steps[0],t=_.get(i,"domJson.props.style.height"),t=parseInt(t,10),t=isNaN(t)?0:t,n=parseInt(_.get(i,"domJson.props.style.bottom",0),10),i=parseInt(_.get(i,"domJson.props.style.top",0),10),n=isNaN(n)?0:n,i=isNaN(i)?0:i,(n=qo().height-n-i)<=t&&(e.style.height=(n-10).toString()+"px"),i=parseInt(e.style.height,10),i=isNaN(i)?0:i,t<n)&&t!==i&&(e.style.height=t.toString()+"px")}al(k(e))},repositionDoubleResourceCenterBadge:function(){var e,t,n;g.getters["frames/isLeader"]()&&1<(e=_.unique(_.compact([].concat(_.toArray(k("._pendo-resource-center-badge-container"))).concat(_.toArray(k("._pendo-resource-center-badge-container")))))).length&&function(e){var t=Qo(e[0]),e=Qo(e[1]);return ea(t,e)}(e)&&(t=Jo(e[0]).width+5,n=Jo(e[1]).left-t<0?"":"-",e[1].style.transform="translateX("+n+t+"px)")},resourceCenterIgnoreRtl:function(){return _.get(this.getResourceCenterBadge(),"ignoreRTL",!1)},adjustResourceCenterWidth:function(e){var t=Cp();if(t){o=qo().width,r=k(t),e=k(e),r.css({"max-width":"none"}),e.css({"max-width":"none"}),i=parseInt(R(r[0]).width,10),o<i&&(i=parseInt(t.style.left,10),i=isNaN(i)?0:i,t=parseInt(t.style.right,10),t=isNaN(t)?0:t,o=o-t-i,r.css({"max-width":o+"px"}),e.css({"max-width":o+"px"}));var t=e,n=k('button[id^="pendo-a11y-list-item-button-block"]');if(n&&n.length)for(var i=k(t.find("ol._pendo-text-list-ordered"))[0],r=0,o=0,i=(i&&(i=R(i),o=parseInt(i.paddingLeft,10),r=parseInt(i.paddingRight,10)),k('[id^="pendo-onboarding-guide-progress-circle"]')[0]),e=0,a=0,s=0,u=(i&&(i=R(i),e=parseInt(i.width,10),a=parseInt(i.marginRight,10),s=parseInt(i.marginLeft,10)),o+r+e+s+a),d=parseInt(R(t[0]).width,10),c=0;c<n.length;c++){var l=n[c],p=k(l),l=(p.css({"max-width":"none"}),R(l)),h=parseInt(l.width,10),l=d-u-(parseInt(l.paddingLeft,10)+parseInt(l.paddingRight,10));l<=h&&p.css({"max-width":l})}}},setNativeIntegrationDefaults:vp,renderNativeIntegration:Ep,isSupportedNativeIntegration:fp,handleNativeIntegrationContinuation:Ip,isProviderInstalled:gp,adjustNotificationBubbleForResize:Ap,getNotificationBubbleDefaultCss:Up,getModuleId:Wp,isIframeModule:function(e){return"IframeModule"===Wp(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===Wp(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===Wp(e)&&e.hasResourceCenterContent},isFullyCustom:function(e){return"FullyCustomModule"===Wp(e)},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!P.isSupportedNativeIntegration(e.integrationProvider)||P.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n=ap(e);if(!n)return m.resolve();if(t.getters["frames/isShownInAnotherFrame"]()(n.steps[0]))return m.resolve();if(P.isFullyCustom(n))return m.resolve();var t=sp(n,e),i=[],r=_.indexBy(e,"id");return _.each(t,function(e){var e=e.attributes.resourceCenter;"AnnouncementsModule"===e.moduleId&&(e=e.children,e=_.reduce(e,function(e,t){t=r[t];return t?e.concat(t):e},[]),_.each(e,function(e){op(e)&&i.push(e.steps[0].fetchContent(!0))}))}),m.all(i)},setFocusForResourceCenterModule:function(e,t){var n;"HomeViewModule"===e[0].getAttribute("data-layout")?t&&(e=k('[data-pendo-module-guide-id="'+t+'"]'),n=e.find('button[id^="pendo-right-caret-"]')[0]):(t=k('[id="pendo-resource-center-module-title-container"]'),n=t.find('button[id^="pendo-left-caret-"')[0]);n&&n.focus()},revertRtlChanges:function(e,t){var n="rtl"===_.get(t,"data-localization-direction",!1),e=_.get(e,"attributes.badge.ignoreRTL",!1);n&&e&&!t["data-direction-changed"]&&(n=_.get(t,"style.left",!1),e=_.get(t,"style.right",!1),n)&&e&&(t.style.left=e,t.style.right=n,t["data-direction-changed"]=!0)},stashBadgeAriaLabel:Mp,resetBadgeAriaLabel:function(){var e=P.getResourceCenterBadge();{var t;e&&(e=e.element(),t=e.getAttribute("data-pendo-stashed-aria-label"))&&e.setAttribute("aria-label",t)}},getNotificationBubbleAriaLabelAttribute:Lp,updatePseudoStyleSelectors:Vp,hideRCBadge:Jp};function op(e){return e.steps&&e.steps.length&&_.isFunction(e.steps[0].fetchContent)}function ap(e){var e=_.filter(e,function(e){return _.get(e,"attributes.resourceCenter.isTopLevel")&&!e.isFrameProxy}),t=_.find(e,function(e){return"staged"===e.state});return t||e[0]}function sp(t,e){return _.filter(e,function(e){return e&&!e.isFrameProxy&&_.get(e,"attributes.resourceCenter.isModule",!1)&&e.state===t.state})}function up(t,e,n,i=!0){if(!tp){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),Cp());if(e){var a=k(e).find('[id^="pendo-g-"]')[0];if(a){var s,u=a.getAttribute("data-pendo-guide-id"),d=_.find(Yu(),function(e){return e.id===t}),c=(t!==L.id?(Nl(_.get(L.activeModule||L,"steps.0.id")),L.activeModule=d):(s=L.activeModule,Nl(_.get(s,"steps.0.id")),delete L.activeModule),_.get(d,"attributes.resourceCenter.integrationProvider")),l=(fp(c)&&Ep(c),d.steps[0]),c=Vp(l.domJson),c=(c.props["data-pendo-guide-id"]=d.id,Tl(c,l)),p=c[0],r=(-1===p.id.indexOf("pendo-g-")&&(p=c.find('[id^="pendo-g-"]')[0]),n||(p.style.transition=r,a.style.transition=r,"left"===o?p.style.left=e.offsetWidth+"px":"right"===o&&(p.style.left=-1*e.offsetWidth+"px")),n&&(k(a).remove(),s)&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),k(e).find('[id^="pendo-end-focus-bumper-"]')[0]);if(r?k(p).insertBefore(r):k(p).appendTo(e),l.guideElement=k(e),l.elements.push(l.guideElement[0]),P.adjustResourceCenterWidth(p),"AnnouncementsModule"===Wp(d)&&l.guide.guidesInModule?(cl(r=_.reduce(l.guide.guidesInModule,function(e,t){var n;return _.isUndefined(t.steps[0].attributes.imgCount)&&(n=t.steps[0].id,n=k(p).find("#pendo-g-"+n)[0]?n:t.id,e.push("pendo-g-"+n)),e},[]),l.guideElement),_.each(r,function(e){M.flexAllThings(e,l)})):M.flexAllThings("pendo-resource-center-container"),al(k(e)),p.style.left="0px",!n){tp=!0;try{"left"===o?a.style.left=-1*e.offsetWidth+"px":"right"===o&&(a.style.left=e.offsetWidth+"px"),Ut(function(){k(a).remove(),s&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),tp=!1},200)}catch(h){throw tp=!1,h}}return"AnnouncementsModule"===Wp(d)&&(cp(),r=uc.getGuidesInResourceCenterModule(d,Yu()),(n=_.reduce(r,function(e,t){return t.steps&&t.steps.length&&ec.hasContent(t.steps[0])||e.push(t.fetchContent()),e},[])).length)&&((o=function(){var i,e,t;if(_.isFunction(document.createElementNS))return i="http://www.w3.org/2000/svg",e=function(e,t){var n=k(document.createElementNS(i,"circle")).attr({cx:e,cy:t,fill:"#9a9ca5",r:5});return _.each(_.toArray(arguments).slice(2),function(e){n.append(e)}),n},t=function(e){return k(document.createElementNS(i,"animate")).attr({attributeName:"fill-opacity",values:"0;1;0;0",keyTimes:"0;0.4;0.8;1",dur:"1.4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0 0 0.58 1; 0 0 0.58 1; 0 0 0.58 1",begin:e})},t=k(document.createElementNS(i,"svg")).attr({viewBox:"0 0 70 20",xmlns:"http://www.w3.org/2000/svg",width:"70",height:"20"}).append(e(21,10,t("-0.32s"))).append(e(35,10,t("-0.16s"))).append(e(49,10,t("0s"))),k(document.createElement("li")).css({padding:"5px 20px","list-style-type":"none","list-style-position":"inside",position:"relative","margin-left":"0em","border-width":"0px","border-style":"solid","border-color":"rgb(255, 255, 255)","float":"none","vertical-align":"baseline","text-align":"center"}).append(t)}())&&c.find("ol").append(o),m.all(n).then(function(){var e=m.defer();return Ut(e.resolve,500),e.promise}).then(function(){L.activeModule===d&&P.renderResourceCenterModule(d,i)})),P.setFocusForResourceCenterModule(c,u),i&&l.onShown("launcher"),c}}}}function dp(){window.clearInterval(ep),ep=null}function cp(){ep=ep||window.setInterval(function(){var e=Cp();if(!e)return dp();e=k(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return dp();var t=k(e).find('ol[id^="pendo-list"]');if(!t.length)return dp();var n=Qo(t[0]),i=k(t).find("li");if(!i.length)return dp();for(var r=e.attr("data-pendo-guide-id"),o=L.attributes.notifications.individualCounts[r],a=n.height/3,s=Qo(i[i.length-1]).bottom-30<n.top+n.height,u=0;u<i.length;u++){var d=k(i[u]),c=d.hasClass("pendo-unseen-announcement"),l=d.attr("data-pendo-announcement-send-seen-event");if(c||l){if(Qo(i[u]).top-n.top>n.height-a&&!s)break;var p=d.attr("data-pendo-announcement-guide-id"),l=_.find(Yu(),function(e){return e.id===p});if(!l)break;c&&(d.removeClass("pendo-unseen-announcement"),c=d.find(".pendo-unread-announcement-mini-bubble"),Te(10)?d.find(".pendo-unread-announcement-mini-bubble").remove():(c[0].style.visibility="hidden",c[0].style.opacity="0",c[0].style.transition="visibility 0s 2s, opacity 2s linear"),Hp(l)||o--,jp(o,r)),l.steps[0].seenState="advanced",em(l.id,l.steps[0].id,b(),"whatsnew",l.language,{last_updated_at:l.steps[0].lastUpdatedAt}),d[0].removeAttribute("data-pendo-announcement-send-seen-event"),nm(l.id,l.steps[0].id,b(),"advanced",l.language)}}},500)}function lp(e,t){return Zl.findExtensionByNameAndProvider(e,t)}function pp(e,t){e=Zl.findExtensionByNameAndProvider(e,t);if(!e)return C.info(t+" integration has not been loaded into the agent");fp(t)&&gp(t)?L.hasEligibleNativeIntegrationModule=!0:(Yo((t=e.getFrame())[0])||t.appendTo(hd()),t.css({display:"none"}))}function hp(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging"]}function fp(e){return!!e&&0<=hp().indexOf(e)}function gp(e){return!!e&&null!==(e=mp(e))&&_.isFunction(window[e])}function mp(e){if(!e)return null;switch(e){case"zendesk-chat":case"zendesk-messaging":case"zendesk-native-kb":return"zE";case"intercom-chat":return"Intercom";case"drift-native-chat":return"drift";default:return null}}function vp(e,t){if(e)if(gp(e))yp(e,t);else{var n;if("function"==typeof Object.defineProperty){const i=mp(e);null!==i&&(ip&&ip[i]?ip[i][e]||(ip[i][e]={installed:!1,integrationObj:t}):((ip=ip||{})[i]={[e]:{installed:!1,integrationObj:t}},Object.defineProperty(window,i,{get(){return n},set(e){n=e,_.forEach(ip[i],function(e,t){const n=e.integrationObj;!e.installed&&gp(t)&&(e.installed=!0,yp(t,n),pp(n.name,t),_.forEach(L.modules,function(e){e.integrationConfig&&e.integrationConfig.data.name===n.name&&e.integrationConfig.data.provider.name===t&&(e.hasResourceCenterContent=!0)}))})},configurable:!0,enumerable:!0})))}}}function yp(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=wp(i);bp(n,"webWidget","hide"),bp(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),bp(n,"webWidget:on","close",function(){bp(n,"webWidget","hide"),Sp()}),L.isInProgress()&&!L.attributes.doNotResume&&Ip(L.activeModule),bp(n,"webWidget:on","chat:unreadMessages",function(e){jp(e,"chat")});break;case"zendesk-messaging":i=t;bp(i=i.data.provider.name,"messenger","hide"),bp(i,"messenger:on","close",function(){Sp()}),bp(i,"messenger:on","unreadMessages",function(e){jp(e,"chat")});break;case"intercom-chat":var r=t;r=wp(r),window.intercomSettings||(window.intercomSettings={}),window.intercomSettings.hide_default_launcher=!0,window.intercomSettings.alignment=r?r[1]:"right",window.Intercom("update",{hide_default_launcher:!0,alignment:r?r[1]:"right"}),window.Intercom("onHide",function(){Sp()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=jl();window.drift.identify(t.visitor.id,function o(e){const t={};for(const n in e)if("object"!=typeof e[n]||Array.isArray(e[n]))t[n]=e[n];else{const i=o(e[n]);for(const r in i)i[r]&&(t[n+"."+r]=i[r])}return t}(t)),window.drift.on("message",function(e){if(!L.isNativeModuleActive)return jp(1,"chat")})}),window.drift.on("chatClose",function(e){jp(0,"chat"),window.drift.hide(),Sp()})}}function bp(e,...t){try{rp&&rp[e]||window.zE.apply(null,t)}catch(n){rp?rp[e]=!0:rp={[e]:!0}}}function wp(e){e=_.get(e,"data.options.labels.position");return e=e&&e.split("-")}function Sp(){qp(L.activeModule),delete L.activeModule,L.continueToNativeModule=!1}function Ep(e,t){if(e){var n=jl();if(L.isShown()&&L.hide(),rp&&rp[e])C.info(e+" integration failed to communicate with API, closing"),P.replaceResourceCenterContent(L.id,undefined,!0),Sp();else{var i=xp();switch(i&&Jp(i,L),e){case"zendesk-messaging":bp(e,"messenger","show"),bp(e,"messenger","open");break;case"zendesk-native-kb":bp(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),bp(e,"webWidget","show"),bp(e,"webWidget","open");break;case"zendesk-chat":bp(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&bp(e,"webWidget","prefill",{email:{value:n.visitor.email}});break;case"intercom-chat":window.Intercom("show"),n&&n.visitor&&n.visitor.email&&window.Intercom("update",{email:n.visitor.email});break;case"drift-native-chat":window.drift.api.openChat(),n&&n.visitor&&n.visitor.email&&window.drift.config({email:n.visitor.email})}jp(0,"chat"),!L.activeModule&&t&&(L.activeModule=t).steps[0].onShown("launcher")}}}function Ip(e){e&&!e.isTopLevel&&(Ep(_.get(e,"attributes.resourceCenter.integrationProvider")),L.activeModule||(L.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function _p(){return L}function Cp(){return _.get(L,"steps.0.guideElement.0")}function xp(){if(L&&L.id)return $u[L.id]}function Tp(e){e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function kp(e){return e&&_.all(e,function(e){return Yo(e&&e.length?e[0]:e)})}function Ap(){var e,t=P.getResourceCenter(),n=_.get(t,"attributes.notifications");n&&(n=P.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&_.get(t,"attributes.activation.selector")&&(e=k(t.attributes.activation.selector)).length&&P.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function Rp(e){return _.reduce(e,function(e,t){return e+t},0)}function Op(){var e,t=L;t&&(t=_.get(t,"attributes.notifications"))&&(e=Cp())&&k(e).find("._pendo-resource-center-home-list").length&&_.each(t.individualCounts,function(e,t){Np(e,t)})}function Np(e,t){var n=P.getResourceCenterContainer();n&&(n=k(n).find('[data-pendo-notification-id="'+t+'"]')).length&&(t=k(n[0]).find("._pendo-home-view-bubble"),n=k(t[0].children[0]),e!==parseInt(n.text(),10))&&(0<e?(n.text(e),k(t[0]).css({display:"block","margin-right":"0"})):(n.text(""),k(t[0]).css({display:"none"})))}function Mp(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function Lp(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function Pp(e,t,n){var i=Lp(n);let r=e.getAttribute(i);r&&(Mp(e),r=r.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",r));var i=_.get(t,"position","top-left"),o=R(e),o=(parseInt(o.width,10)||56)/2,a=o/Math.sqrt(2),o=Math.round(o-a)-10,s=o-10,a=Math.round(2*a),o={"top-left":{top:o+"px",left:s+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"top-right":{top:o+"px",left:s+a+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-left":{top:o+a,left:s+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-right":{top:o+a,left:s+a+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"}},s=e.attributes["data-localization-direction"]||!1,a=P.resourceCenterIgnoreRtl();Dp(e,t,n,o[i=s&&!a?{"top-left":"top-right","top-right":"top-left","bottom-left":"bottom-right","bottom-right":"bottom-left"}[i]:i])}function Fp(e,t,n){var i=Eo(e,e),r=Eo(e,Zo());Dp(e,t,n,{width:"28px",top:i.top-Math.min(r.top,14)+"px",left:i.left-Math.min(r.left,14)+"px",position:"absolute"},{width:"28px","font-size":"16px","text-align":"center",position:"absolute",right:"0px"})}function Dp(e,t,n,i,r){var o,a;kp(np)?(a=(o=Up(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=_.extend(a,i),o=_.extend(o,r),np.bubbleEle.css(a),np.unseenCountEle.css(o),np.unseenCountEle.text()!=""+n&&np.unseenCountEle.text(n)):(a=k(e).find(".pendo-resource-center-badge-notification-bubble")).length?a[0].getElementsByClassName("pendo-notification-bubble-unread-count")[0].textContent=n:n&&Bp(np=Gp(t,n,i,r),e)}function Up(e){return{defaultBubbleCss:{position:"absolute","border-radius":"20px","line-height":"0px",height:"26px","box-sizing":"content-box","background-color":e["background-color"]},defaultUnseenCountCss:{"font-weight":e["font-weight"],"font-family":e["font-family"],height:"100%",position:"relative",top:"50%",color:e.color}}}function Gp(e,t,n,i){var r=Up(e),o=r.defaultBubbleCss,r=r.defaultUnseenCountCss,a=(t=t||0,k(document.createElement("div")).addClass("pendo-resource-center-badge-notification-bubble")),s=k(document.createElement("div")).addClass("pendo-notification-bubble-unread-count"),o=_.extend(o,n),n=_.extend(r,i);return a.css(o),s.css(n),Te(10)||Il()||(i="rgb("+(r=Tp(e["background-color"])).r+", "+r.g+", "+r.b+")",sc(f,"pendo-resource-center-bubble-animation","@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6) } } "+('.pendo-resource-center-badge-notification-bubble::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: '+i+"; border-radius: 100%; z-index: -1; animation: pulse 2s infinite; will-change: transform; }"))),s.text(t),{bubbleEle:a,unseenCountEle:s}}function Bp(e,t){e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function zp(){var n=np?np.bubbleEle:k(".pendo-resource-center-badge-notification-bubble"),i=np?np.styleEle:k("#pendo-resource-center-bubble-animation");n&&_.each(n,function(e,t){n[t]&&(t=n[t])&&t.parentNode&&t.parentNode.removeChild(t)}),i&&_.each(i,function(e,t){i[t]&&(t=i[t])&&t.parentNode&&t.parentNode.removeChild(t)}),np=null,P.resetBadgeAriaLabel()}function jp(e,t){var n=L;n&&(n=_.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,P.updateNotificationBubbles())}function Hp(e){return!(!_.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function qp(e){var t=_.get(e,"attributes.resourceCenter.isModule",!1)?e:P.findShownResourceCenterModule();t&&(t=_.first(t.steps),Pg(t));t=(_.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:P.findResourceCenterHomeView(Yu())).steps[0];return Pg(t)}function Wp(e){return _.get(e,"attributes.resourceCenter.moduleId")}function Vp(e){var t=["pendo-a11y-list-item-button-block","pendo-link-","pendo-right-caret-","pendo-row-","pendo-text-"].join("|");const n=new RegExp(`#((${t})[^:]*)`);t=function i(e,t){var n=[];return t(e)&&n.push(e),e.children?n.concat(..._.map(e.children,function(e){return i(e,t)})):n}(e,function(e){return e.css&&e.css.length});return _.forEach(t,function(e){_.forEach(e.css,function(e){e.selector=e.selector.replace(n,"[id^='$1']")})}),e}function Jp(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete $u[t.id])}var Kp=1e4,$p="lastStepAdvanced";function Zp(e){g.dispatch("guideState/updateLastGuideStepSeen",e),g.dispatch("guideState/write"),g.dispatch("frames/changeLastGuideStepSeen",e)}function Xp(){g.dispatch("guideState/regainFocus")}function Yp(){return g.state.guideState.lastGuideStepSeen}var i={actions:{init(e){e.getters.storage().registry.addLocal($p),e.commit("setScopedStorageKey",jt(e.state.storageKey)),y.identify.on(function(e){Kn(e)&&Mn([$p])})},load(t,e){if(e){var n;try{n=JSON.parse(e)}catch(i){}n&&_.each([].concat(n),function(e){t.commit("setStepState",e)})}},forceExpire(n){_.each(n.state.steps,function(e,t){n.commit("expireStepState",t)})},expire(n){var i=n.getters.now();_.each(n.state.steps,function(e,t){i-e.time>n.state.ttl&&n.commit("expireStepState",t)})},apply(o){var a,s=_.indexBy(o.getters.guideList(),"id");o.dispatch("expire"),_.each(o.state.steps,function(e){var t,n,i=e.guideId,r=e.guideStepId;e.visitorId&&e.visitorId!==o.getters.visitorId()||((!a||e.time>a.time)&&(a=e),(i=s[i])&&(t=_.findWhere(i.steps,{id:r}))&&(n=o.state.storageKey,t.seenState!=e.state&&(C.info("making sure that seenState = '"+e.state+"' for "+n+": "+r),t.seenState=e.state),t.snoozeEndTime!=e.snoozeEndTime&&(C.info("making sure that snoozeEndTime = '"+e.snoozeEndTime+"' for "+n+": "+r),t.snoozeEndTime=e.snoozeEndTime),t.seenReason!=e.seenReason&&(C.info("making sure that seenReason = '"+e.reason+"' for "+n+": "+r),t.seenReason=e.seenReason),e.dismissCount!==undefined&&t.dismissCount!=e.dismissCount&&(t.dismissCount===undefined?t.dismissCount=e.dismissCount:t.dismissCount=Math.max(e.dismissCount,t.dismissCount),C.info("making sure that dismissCount = '"+t.dismissCount+"' for "+n+": "+r)),e=_.indexOf(i.steps,t),_.each(i.steps.slice(0,e),function(e){_.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})))}),a&&o.dispatch("updateLastGuideStepSeen",_.extend({},o.state.lastGuideStepSeen,a))},receiveLastGuideStepSeen(e,t){e.commit("setReceivedLastGuideStepSeen",t),e.commit("setLastGuideStepSeen",t)},updateLastGuideStepSeen(e,t){var n;t.visitorId&&t.visitorId!==e.getters.visitorId()||(n=_.some(e.getters.guideList(),function({id:e}){return e===t.guideId}),t.guideStepId&&e.commit("setStepState",t),n&&(e.commit("setLastGuideStepSeen",t),E.lastGuideStepSeen=t,Vm)&&Vm.update(t))},updateThrottlingState(e,t){e.commit("setThrottlingState",t)},write(e){e.dispatch("expire");var t=e.rootState.frames.tabId,n=e.state.storageKey,i=e.getters.cookieSuffix(),r=e.state.ttl,o=e.getters.storage(),a=JSON.stringify(_.map(e.state.steps,function(e){return _.extend({tabId:t},e)}));C.info("writing "+a+" to a cookie named "+n+" for "+r+" and cookieSuffix "+i),o.write(n,a,r,!1,!1,i),e.dispatch("preview/update",e.state.lastGuideStepSeen,{root:!0})},storageChanged(e,t){if(t.key===e.state.scopedStorageKey){try{var n=e.getters.storage(),i=e.getters.cookieSuffix(),r=n.read(e.state.storageKey,!1,i),o=[].concat(JSON.parse(r))}catch(a){}e.getters.storageChangedInOtherTab()(o)&&(ch(),e.dispatch("load",r),e.dispatch("apply"),e.state.receivedStateChangeAt||e.commit("setReceivedStateChange",e.getters.now()))}},regainFocus(e){var t=e.getters.tabLostFocus(),n=e.getters.isGuideRequestStale();t&&(e.commit("setReceivedStateChange",null),n||(lh(),ph())),n&&av()}},mutations:{expireStepState(e,t){e.expired[t]=e.steps[t],delete e.steps[t]},setStepState(e,t){e.steps[t.guideStepId]=t},setScopedStorageKey(e,t){e.scopedStorageKey=t},setLastGuideStepSeen(e,t){e.lastGuideStepSeen=t},setReceivedLastGuideStepSeen(e,t){e.receivedLastGuideStepSeen=t},setReceivedStateChange(e,t){e.receivedStateChangeAt=t},setLastGuideRequestAt(e,t){e.lastGuideRequestAt=t},setThrottlingState(e,t){e[t.name]=t.value}},state:{steps:{},expired:{},ttl:Kp,storageKey:$p,guideRequestExpiration:36e5,scopedStorageKey:null,receivedStateChangeAt:null,receivedLastGuideStepSeen:null,lastGuideStepSeen:null,lastGuideRequestAt:null,latestDismissedAutoAt:null,latestSnoozedAutoAt:null,finalAdvancedAutoAt:null},getters:{now(){return v()},storage(){return h},guideList(){return O},tabLostFocus(e){return!!e.receivedStateChangeAt},isGuideRequestStale(e,t){return null!=e.lastGuideRequestAt&&t.now()-e.lastGuideRequestAt>e.guideRequestExpiration},storageChangedInOtherTab(n,e,i){return function(e){var t=_.get(i,"frames.tabId");return!!e&&!!((e=_.max(_.compact(e),"time"))&&e.tabId&&t&&e.tabId!==t)&&(!n.lastGuideStepSeen||!n.lastGuideStepSeen.time||e.time>n.lastGuideStepSeen.time)}},cookieSuffix(){return f.get("crossAppGuideStorageSuffix")},visitorId(){return b()}}},Qp={canDisplay:function(e,t,n){if(n&&n.enabled&&_.isFinite(t)){t=nh(t,n);if(_.isNumber(t)&&!isNaN(t))return t<=e}return!0},lastDismissedTime:function(e){return Math.max(e.latestDismissedAutoAt||-Infinity,e.finalAdvancedAutoAt||-Infinity,e.latestSnoozedAutoAt||-Infinity)},sortAndFilter:function(e,t){var n=f.get("appAutoOrdering")||[].concat(f.get("leaderKey"));{var i;n.length&&(i=g.getters["frames/autoOrdering"](),n=_.reduce(n,(e,t)=>e.concat(i[t]||[]),[]),t=_.uniq(n.concat(t)))}var r,o,n=function(e){e=_.defaults(_.groupBy(e,function(e){return th(e)?"override":"auto"}),{override:[],auto:[]});return e.override.concat(e.auto)}(function(e,t){var n;return _.isArray(t)&&t.length?(n=_.indexBy(e,"id"),t=_.reduce(t,i,[]),_.chain(e).pluck("id").reduce(i,t).value()):e;function i(e,t){return n[t]&&(e.push(n[t]),delete n[t]),e}}(_.filter(e,eh),t));return _.find(e,function(e){return e.isTraining})?(t=f.get("adoptPrioritizeAdoptGuides"),e=t,r=[],o=[],_.each(n,function(e){(e.isTraining?r:o).push(e)}),e?r.concat(o):o.concat(r)):n},tryDisplayGuide:function(e,t){var n=Qp.lastDismissedTime(t),n=Qp.canDisplay(v(),n,t.throttling);if((th(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:nh};function eh(e){return e&&/auto/.test(e.launchMethod)}function th(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||_.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function nh(e,t){var n=t.interval,t=(t.unit||"").toLowerCase();return _.isNumber(n)&&pt(e)?"minute"===t?6e4*n+e+1:"hour"===t?36e5*n+e+1:"day"===t?(t=e,e=n,(t=new Date(Math.max(t,0))).setHours(0,0,0,0),t.setDate(t.getDate()+e),t.getTime()):void 0:_.isNumber(n)?(new Date).getTime():void 0}function ih(t){return y.guideSeen.on(function(e){var e=e.data[0].props||{};"permalink"===e.reason&&(e=t(e.guide_id))&&(e.shownFromPermalink=!0)}),{tryDisplay:function(t=window.location){var n=a(t.href),e=this.getGuideFromUrl(n);{var i,r,o;if(e&&this.shouldShowPermalinkGuide(e))return i=this.getStepFromUrl(n,e),r=n.pendo_once,o=function(e){return e&&r&&(delete n.pendo_once,delete n.pendo,delete n.step,delete n.c__pendo,window.history.replaceState({},document.title,t.pathname+"?"+io(n))),e},(e=this.showPermalinkGuide(e,i)).then?e.then(o):o(e)}},getQueryString:a,getGuideFromUrl:function(e){e=e.pendo||e.c__pendo;return e?t(e):null},getStepFromUrl:function(e,t){e=e.step;return e?function(e,t){return _.find(e.steps,function(e){return e.id===t})}(t,e):null},showPermalinkGuide:function(e,t){return(t||e).show("permalink")},shouldShowPermalinkGuide:function(e){return!e.shownFromPermalink}};function a(e){var t=Yr(e).substring(1),t=no(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=Yr(e.substring(n+1)).substring(1),_.extend(t,no(n))),t}}var rh=_.memoize(function(){return ih(N)});function oh(e,t){var e=_.find(e,function(e){return e.isContinuation(t)}),n=e&&e.attributes&&e.attributes.doNotResume;if(e&&!n)return e}class ah{constructor(){this.name="autoDisplay",this.queue=[]}markDirty(){wd()&&(this.queue.push("permalink","continuation"),this.queue.push(...Qp.sortAndFilter(Xu(),E.autoOrdering)))}process(e){if(wg())this.cancel();else{var t=this.queue.shift();if("permalink"===t)return rh().tryDisplay();if("continuation"===t){var n=oh(Xu(),Yp());if(n)return e.saveContext(n),n.show("continue")}else if(t){if(!oh(Xu(),Yp()))return e.saveContext(t),Qp.tryDisplayGuide(t,E);this.cancel()}}}handleProcessTimeExceeded(e){e=e.getContext();e&&C.warn("Auto display ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var sh=null,uh=500,dh=function(e){sh=_.delay(function(){sh=null,ph()},e=e||uh),E.guidesProcessingThreadHandle=sh},ch=function(){sh&&(clearTimeout(sh),sh=null,E.guidesProcessingThreadHandle=sh),g.dispatch("guideUpdate/stopScheduledUpdate")},lh=function(){Cg(),Eh.cancel();for(var e=0;e<Ku.length;e++){var t=Ku[e];t.parentNode.removeChild(t)}Ku.length=0,g.dispatch("guideUpdate/stopObserver"),y.guideLoopStopped.trigger()},ph=function(){if(ch(),ov.pending||vm&&E.id&&E.id!==vm.id)C.info("guides are loading.",{contexts:["guides","loading"]});else if(Km())C.info("guides are disabled.",{contexts:["guides","disabled"]});else if($m())C.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!g.getters["guideState/tabLostFocus"]())try{var e=od();e&&0!==e.length&&(g.dispatch("guideUpdate/startObserverIfNeeded"),Eh.isComplete()&&Eh.markDirty(),g.getters["frames/leaderExists"]())&&Eh.process()}catch(t){Eh.cancel(),C.critical("ERROR in guide-loop",{error:t})}finally{Eh.paused||(Eh.isComplete()?(g.state.guideUpdate.useObserver&&!g.state.guideUpdate.needsUpdate||dh(),y.guideUpdateComplete.trigger()):dh(50))}};var hh=function(){var e=f.getLocalConfig();f.get("delayGuides")&&(delete e.delayGuides,f.setLocalConfig(e)),f.get("guides.delay")&&(delete e.guides.delay,f.setLocalConfig(e)),ph()},fh=function(){Km()||Xm(!0),lh(),ym()};class gh{constructor(e,t){this.dirty=!1,this.name=e,this.processFn=_.isFunction(t)?t:_.noop}markDirty(){this.dirty=!0}process(){this.processFn(),this.dirty=!1}cancel(){this.dirty=!1}isComplete(){return!this.dirty}}class mh{constructor(){this.name="badge",this.queue=[]}markDirty(){this.queue.push.apply(this.queue,_.filter(Qu(Xu()),ud))}process(e){var t=this.queue.shift();e.saveContext(t),t&&t.placeBadge()}handleProcessTimeExceeded(e){e=e.getContext();C.warn("Badge ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}function vh(i,e){var r,o,t,n,a;P.isFullyCustom(i)||(r=!1,o=[],t=_.filter(i.modules,function(e){var t,n;return!!e&&(!!P.isIframeModule(e)||!!P.isSandboxModule(e)||(P.isIntegrationModule(e)?!!P.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1):(t=(n=_.filter(e.guidesInModule,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):(e.ineligibleForRC=!0,e.control&&o.push(e),!1)})).length,e.hasResourceCenterContent=!!t,i.activeModule&&e.id===i.activeModule.id&&(n=at(_.map(n,function(e){var t=e.isAnnouncement()||e.isWhatsNew()?null:_.pluck(e.steps,"seenState");return{id:e.id,seenState:t}})),e.eligibleGuidesInModuleHash&&n!==e.eligibleGuidesInModuleHash&&(r=!0),e.eligibleGuidesInModuleHash=n),t)))}),n=!1,i.activeModule||(a=at(_.map(t,function(e){return{id:e.id}})),i.eligibleModulesHash&&i.eligibleModulesHash!==a&&(n=!0,P.replaceResourceCenterContent(i.id,undefined,!0)),i.eligibleModulesHash=a),e(i,t,o),1===t.length&&(i.skipResourceCenterHomeView=!0,i.moduleIdToReplaceHomeViewWith=t[0].id,a=!i.activeModule&&n,e=i.activeModule&&i.activeModule.id!==t[0].id,a||e||r)&&P.replaceResourceCenterContent(i.moduleIdToReplaceHomeViewWith,undefined,!0),t&&(n=_.find(t,function(e){return e.isContinuation(Yp())}),a=_.get(n,"attributes.doNotResume"),e=_.get(n,"attributes.resourceCenter.integrationProvider"),P.isSupportedNativeIntegration(e))&&!a&&i&&(i.continueToNativeModule=!0,n.continueToNativeModule=!0),i.activeModule&&((e=_.find(t,function(e){return e.id===i.activeModule.id}))&&r&&P.replaceResourceCenterContent(i.activeModule.id,undefined,!0),e||P.replaceResourceCenterContent(i.id)),P.repositionResourceCenter())}function yh(e,t,n){var i,r,o=$u[e.id];t&&t.length||(t=-1!==e.launchMethod.indexOf("badge"),i=-1!==e.launchMethod.indexOf("dom"),r=-1!==e.launchMethod.indexOf("extensionIcon"),e.hasResourceCenterContent=!1,t?(e.isShown()&&e.hide(),o&&P.hideRCBadge(o,e),_.each(n,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}),e.badgeHidden=!0,delete e.activeModule):(i||r)&&(e.showEmptyState=!0,e.controlGuidesInAllModules=n)),e.badgeHidden&&e.hasResourceCenterContent&&!e.isNativeModuleActive&&(o||(_.isFunction(e.placeBadge)&&e.placeBadge(),o=$u[e.id]),o&&o.show(),e.badgeHidden=!1)}function bh(e){var t,n,i,r,o,a;e&&e.launchMethod&&(e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith,t=e.activeModule,n=_.get(t,"attributes.resourceCenter.integrationProvider"),e.isNativeModuleActive=t&&P.isSupportedNativeIntegration(n),P.isFullyCustom(e)?e.hasResourceCenterContent=!0:(e.isShown()||!g.getters["frames/isLeader"]()?vh(e,yh):(t=e,n=yh,P.isFullyCustom(t)||(i=[],o=[],(r=_.find(t.modules,function(e){return!!P.isIframeModule(e)||!!P.isSandboxModule(e)||!!P.isIntegrationModule(e)&&(!!P.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1))}))&&i.push(r),r=_.flatten(_.pluck(t.modules,"guidesInModule")),o=_.filter(_.compact(r),function(e){return e.control}),!i.length&&(a=_.reduce(t.modules,function(t,n){return _.each(n.guidesInModule,function(e){t[e.id]=n}),t},{}),r=_.filter(r,function(e){return e&&e.steps&&e.steps.length}),r=_.sortBy(r,function(e){return e.steps[0].elementPathRule?1:0}),r=a[(r=_.find(r,function(e){return e.shouldBeAddedToResourceCenter()}))&&r.id])&&i.push(r),n(t,i,o))),e.isNativeModuleActive&&(e.isShown()&&e.hide(),a=$u[e.id])&&P.hideRCBadge(a,e),"dom"===e.launchMethod&&(P.updateNotificationBubbles(),P.adjustNotificationBubbleForResize())))}class wh{constructor(e=50){this.startTime=-1,this.timeLimit=e,this.context=null}start(){this.context=null,this.startTime=v()}isTimeExceeded(){return v()-this.startTime>this.timeLimit}saveContext(e){this.context=e}getContext(){return this.context}}class Sh{constructor(e){this.phases=e,this.queue=[],this.paused=!1}markDirty(){for(var e of this.phases)e.markDirty();this.queue=this.phases.slice()}runGuidePhase(){for(var e,t,n,i=this.queue[0],r=new wh(50);!this.timedOut()&&!i.isComplete()&&!e;)r.start(),!(e=i.process(r))&&r.isTimeExceeded()&&(i.handleProcessTimeExceeded&&i.handleProcessTimeExceeded(r),this.ejectGuide(r.getContext()));mt(e)?(t=this.updateId,n=_.bind(function(){this.updateId===t&&(this.paused=!1,ph())},this),this.paused=!0,e.then(n)["catch"](n)):i.isComplete()&&this.queue.shift()}addPhase(e,t){t=t||e.name||this.phases.length,_.isFunction(e)&&(e=new gh(t,e)),this.phases.push(e)}removePhase(t){var e=_.findIndex(this.phases,function(e){return e.name===t});0<=e&&this.phases.splice(e,1)}timedOut(){return!!this.iterationStartTime&&v()-this.iterationStartTime>g.state.guideUpdate.iterationTimeLimit}ejectGuide(e){this.ejectOnTimeout===undefined&&(this.ejectOnTimeout=f.get("guides.ejectOnTimeout")),this.ejectOnTimeout&&e&&!e.isShown()&&td.addGuide(e)}process(){var e=v();for(this.updateId||(this.updateId=e,this.updateTotalTime=0,g.commit("guideUpdate/startUpdate",e)),this.iterationStartTime=e;!this.paused&&this.queue.length&&!this.timedOut();)this.runGuidePhase();e=v(),this.updateTotalTime+=e-this.iterationStartTime,this.isComplete()&&this.complete(e)}complete(e){g.commit("guideUpdate/completeUpdate",e),this.cancel()}cancel(){this.updateId=null,this.paused=!1,this.queue.length=0;for(var e of this.phases)_.isFunction(e.cancel)&&e.cancel()}isComplete(){return!this.queue.length}}var Eh=new Sh([new gh("guideShowing",function(){var a=uv();a&&(_.each(a.steps,function(e){var t,n,i,r,o;a.guide,(e=e).isLocked()||g.getters["frames/isShownInAnotherFrame"]()(e)||(t=e.element,n=e.targetElement,r=e.guideElement,i=k("."+mg),(r=r.find("#pendo-guide-container")[0])&&r.textContent&&(r=R(r).fontSize,e.attributes.currentTextZoomFontSize!==r)&&(e.attributes.currentTextZoomFontSize&&e.redraw(),e.attributes.currentTextZoomFontSize=r),e.elementPathRule&&n&&!Er.matchesSelector(n,e.elementPathRule)?e.hide():(r=pa(t),o=!0,n&&r&&e.elementContainsRulesList&&(o=Wg(n,e.elementContainsRulesList),r=o),t&&(r||i.hasClass("mouseover"))?e.checkPlacement():("tooltip"===e.type||"tooltip"===e.attributes.calculatedType)&&ha(t)&&o||e.hide()))}),a.guide.checkForHiddenGroupSteps())}),new ah,new mh,new gh("resourceCenter",function(){bh(P.getResourceCenter())}),new gh("frameVisibility",function(){g.dispatch("frames/checkFrameVisibility")})]);function Ih(){Eh.addPhase(...arguments)}function _h(){Eh.removePhase(...arguments)}function Ch(){var s={};return _.each(["after","before"],function(i){this[i]=function(e,t){var n,r,o,a;this[e]&&((n=s[e])||(n=s[e]={before:[],after:[]},this[e]=(r=this[e],o=n.before,a=n.after,function(){for(var e=_.toArray(arguments),t=0,n=o.length;t<n;++t)if(!1===o[t].apply(this,e))return;var i=r.apply(this,e);for(t=0,n=a.length;t<n&&!1!==a[t].apply(this,e);++t);return i})),n[i].push(t))}},this),this}var xh="debug-enabled";function Th(){try{var e=h.read(xh)||JSON.parse(Dt(xh));return"boolean"==typeof e?{enabled:e}:e||{}}catch(t){return{}}}function kh(e=!0){let t;return t=g&&g.getters&&g.getters["debugger/debuggingEnabled"]?g.getters["debugger/debuggingEnabled"]():!0===Th().enabled,e?t:t?"Yes":"No"}class Ah{constructor(e,t){this.type=t,this.identificationFn=e}test(e){return this.identificationFn(e)}}const Rh=(()=>{const n={},e=({data:e})=>{var[e,,]=e,e=e["guideId"];const t=N(e);e=(_.find(n,e=>e.GuideType.test(t))||{}).handler;e&&e(t,"resourceFetchFail")};return{run:()=>{y.resourceFetchFail.on(e)},stop:()=>{y.resourceFetchFail.off(e)},addTypeHandler:(e,t)=>{_.isFunction(t)?n[e.type]={GuideType:e,handler:t}:C.error("Invalid Handler function provided for type "+e.type)}}})();Rh.addTypeHandler(new Ah(ud,"badge"),(e,t)=>{td.addGuide(e)});var Oh="_pendo-badge_";function Nh(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function Mh(t,n){var e,i,r,o,a,s=md(n),u=!(null==(u=null==t?void 0:t.attributes)||!u.resourceCenter),d=!1;return u&&(d=null==(e=null==(e=null==t?void 0:t.attributes)?void 0:e.badge)?void 0:e.ignoreRTL),"building-block"===t.attributes.type?(e=_.reduce([(o=t.language,a=u?["he","ar"]:[],e=>(_.contains(a,o)&&(e.props["data-localization-direction"]=!0),e)),(r=d,e=>{var t,n;return _.get(e,"props.data-localization-direction",!1)&&!r&&(t=_.get(e,"props.style.left","auto"),n=_.get(e,"props.style.right","auto"),t)&&n&&(e.props.style.left=n,e.props.style.right=t),e}),Nh,Yd,function(e){return Tl(e,{id:n.id,guideId:t.id,isBadge:!0})}],(e,t)=>t(e),this.domJson)[0],i=e,k.removeNode(e),-1===i.className.indexOf("_pendo-badge_")&&(i.className+=" _pendo-badge_"),this.isP2Badge=!0):((i=document.createElement("img")).src=Xd(this.imageUrl),i.className="_pendo-badge "+Oh,u=this.width||13,d=this.height||13,jo(i,"width:"+u+"px;height:"+d+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=_.isFunction(n.getGuide)&&n.getGuide(),t=Zg(e);!e.isShown()||g.getters["frames/isShownInAnotherFrame"]()(n)?Yg(n,"badge"):t?n.eventRouter.eventable.trigger("pendoEvent",{step:n,action:"dismissGuide"}):(t=_.find(e.steps,function(e){return e.isShown()}),Pg(t))},this.shouldShow=function(){return t.canBadgeBeShown()||!1},this.show=function(){if(_.isFunction(this.shouldShow))return this.shouldShow()},this.hide=function(){k.removeNode(i),Nl(t.id),_.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},Zg(t)&&(this.toggleAriaExpanded=function(){var e=!!k("#pendo-resource-center-container")[0],t=k("button._pendo-resource-center-badge-container")[0]||k('._pendo-resource-center-badge-container [id^="pendo-image-badge-"]')[0];t&&t.setAttribute("aria-expanded",e)},i.checkAriaExpanded=this.toggleAriaExpanded),this.step=_.constant(n),this.target=_.constant(s),this.element=_.constant(i),this}Mh.create=function(n){var i=Mh.findStep(n);if(i)return _.reduce(Mh.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},Mh.findStep=function(e){var t=_.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},Mh.behaviors=[Ch,Mh,function(){"inline"!==this.position&&"inline-right"!==this.position&&"inline-left"!==this.position||this.before("show",function(){var e,t,n=this.target(),i=this.element();this.isP2Badge&&jo(i,"display:inline-block;vertical-align:text-bottom;"),this.css&&jo(i,this.css),n&&n.tagName&&(e=n.tagName.toLowerCase(),t=function(e){try{if(e.shadowRoot&&!e.shadowRoot.querySelector("slot"))return e.shadowRoot}catch(t){}return e}(n),/br|input|img|select|textarea/.test(e)?i.parentNode!==n.parentNode&&n.parentNode.insertBefore(i,n.nextSibling):i.parentNode!==t&&("inline"===this.position||"inline-right"===this.position?t.appendChild(i):"inline-left"===this.position&&t.prepend(i)))});return this},function(s){this.position&&"top-right"!==this.position&&"top-left"!==this.position||this.before("show",function(){var e=this.element(),t=Jo(this.target()),n=0,i=0,r=0;if(this.offsets&&(n=this.offsets.top||0,i=this.offsets.right||0,r=this.offsets.left||0),!_.get(s,"attributes.resourceCenter",!1)){var o="position:"+(t.fixed?"fixed":"absolute")+";top:"+(t.top+n)+"px;";switch(this.position){case"top-right":o+="left:"+(t.left+t.width-i)+"px";break;case"top-left":o+="left:"+(t.left+r)+"px"}jo(e,o)}if(!e.parentNode){hd().appendChild(e);const a=ua(l,this.target(),Uh);this.removeScrollHandlers=()=>{Uh.cancel(),a()}}});return this},function(){"over"===this.position&&this.before("show",function(){var e=this.element(),t=Jo(this.target()),n="position:absolute;top:"+t.top+"px;left:"+t.left+"px;";if(n+="height:"+t.height+"px;width:"+t.width+"px;",jo(e,n+="background-color:transparent;"),!e.parentNode){hd().appendChild(e);const i=ua(Uh,e,this.target());this.removeScrollHandlers=()=>{Uh.cancel(),i()}}});return this},function(){var t=this,e=t.element(),n=!1,i=function(e){t.activate(),t.toggleAriaExpanded&&t.toggleAriaExpanded(),Vu(e)};return t.after("show",function(){n||(p(e,"click",i),n=!0)}),t.after("hide",function(){Wu(e,"click",i),n=!1}),t},function(){var t=this.element(),n=this.step(),e=!1;{var i,r,o;"yes"!==this.useHover&&!this.showGuideOnBadgeHover||(i=_.throttle(function(e){kr(e)===t||function(e){for(;e;){if(/_pendo-guide_|_pendo-guide-tt_|_pendo-backdrop|_pendo-badge_/.test(e.className))return!0;if(/pendo-guide-container/.test(e.id))return!0;e=e.parentNode}return!1}(kr(e))||o()},50,{trailing:!1}),r=function(e){n.isShown()||Yg(n,"badge"),p(document,"mousemove",i),Vu(e)},o=function(e){Wu(document,"mousemove",i),ld()||Pg(n)},this.after("show",function(){e||(p(t,"mouseover",r),e=!0)}),this.after("hide",function(){Wu(t,"mouseover",r),Wu(document,"mousemove",i),e=!1}))}return this},function(){var s=this.element(),u=this.target(),e=!1;{var t,n,i,r,d;!this.showBadgeOnlyOnElementHover&&!/hover/.test(this.showOnEvent)||ld()||(t="inline"===this.position?"visibility:visible;":"display:inline;",n="inline"===this.position?"visibility:hidden;":"display:none;",i=_.throttle(function(e){var t,n,i,r,o,a;kr(e)===u||kr(e)===s||Po(s,"triggered")||(t=e.clientX,e=e.clientY,n=Qo(u),i=Qo(s),r=Math.min(n.left,i.left),o=Math.min(n.top,i.top),a=Math.max(n.right,i.right),n=Math.max(n.bottom,i.bottom),i=e+document.documentElement.scrollTop,r<=t&&t<=a&&o<=i&&i<=n)||d()},50,{trailing:!1}),r=function(){jo(s,t),p(document,"mousemove",i)},d=function(){Wu(document,"mousemove",i),jo(s,n)},this.after("show",function(){e||(p(u,"mouseover",r),e=!0,d())}),this.after("hide",function(){e&&(Wu(u,"mouseover",r),e=!1),d()}))}return this}];var Lh=function(e,t){var n,i,r=(t=t||$u)[e.id],o=r?r.step():Mh.findStep(e);o&&(i=r?r.target():md(o),(n=_.get(e,"attributes.resourceCenter"))&&!g.getters["frames/canShowRCBadge"]()?r&&_.isFunction(r.hide)&&(t[e.id]=undefined,r.hide()):n&&!e.hasResourceCenterContent||(P.updateNotificationBubbles(),n=!0,o.elementContainsRulesList&&(n=i&&Wg(i,o.elementContainsRulesList)),(i=o.elementPathRule&&pa(i)&&Er.matchesSelector(i,o.elementPathRule)&&n)?((r=r||Mh.create(e)).show(),t[e.id]=r):r&&!o.isShown()&&(t[e.id]=undefined,r.hide()),kh()&&y.stepEligibility.trigger({stepId:o.id,guideId:e.id,eligible:i,reason:"target_element_badge"}),P.repositionDoubleResourceCenterBadge()))},Ph=function(){_.map($u,Fh),$u={}},Fh=function(e,t){e&&(_.isFunction(e.hide)&&e.hide(),_.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete $u[t.id]},Dh=function(e){var t=$u[e.id];t&&Fh(t,e)};var Uh=_.throttle(function(){_.map($u,function(e){e&&e.show&&e.show()})},10);const Gh=h.getLocal();var F,Bh="pendo-preview",zh="current-guide-preview";function jh(e){return g.dispatch("preview/load"),Hh(e)}function Hh(t){var e=of();if(e)return Wh(t),g.dispatch("preview/start",_.extend(e)),h.clear($p),Ft(!1),os.lock(),Em=df,y.startPreview.trigger(),y.leaderChanged.on(function(e){g.dispatch("preview/write"),e.oldLeaderId||av(),g.getters["frames/isLeader"]()||(k(F).remove(),F=null,t.removeEventListener("message",Jh))}),Ih(qh),!0}function qh(){if(!g.getters["frames/isFollower"]()){var t,n,i,r,o,e,a=document,s=od(),u=Yp();if(Kh()&&(t=of())&&F&&F.contentWindow)if(s&&s.length){F.contentWindow.postMessage({mutation:"preview/setGuideLoaded",payload:{guideLoaded:!0}},location.origin),n=_.find(s,function(e){return e.id===t.guideId}),i=0,r=n.steps.length,o=u||{},_.find(n.steps,function(e,t){return o.guideStepId===e.id&&("dismissed"===o.state||"active"===o.state?i=t:"advanced"===o.state&&o.destinationStepId?i=_.indexOf(n.steps,_.find(n.steps,function(e){return e.id===o.destinationStepId})):"advanced"===o.state&&t===r-1&&(i=r),!0)}),s="dismissed"===o.state,u=r-1<=i,s=s||u,u=u?r-1:i,e=n.steps[u],p=e.isShown(),F.contentWindow.postMessage({mutation:"preview/setHostname",payload:{hostname:We}},location.origin),F.contentWindow.postMessage({mutation:"preview/setGuidePages",payload:{guidePages:n.previewPages}},location.origin),F.contentWindow.postMessage({mutation:"preview/setGuideProgress",payload:{guideName:n.name,guideAttributes:JSON.stringify(n.attributes),guideLaunchMethod:n.launchMethod,guideActivationSelector:vd(n),isAdoptGuide:n.isTraining,isResourceCenter:t.isResourceCenter,stepId:e&&e.id,currentStepIndex:u,stepCount:r,elementPathRule:e.elementPathRule,elementContainsRulesList:e.elementContainsRulesList,triggerElementPathRule:e.triggerElementPathRule,isShown:p,pageId:e.pageId,completed:s,languageOptions:_.get(t,"languageOptions",[]),currentLanguage:t.language}},location.origin);var d=e,c=u,l=F;if(d&&l&&l.contentWindow){const h=d.getGuide().id;var p=_.filter(g.state.frames.frames,e=>"hidden"!==e.visibility&&e.guides&&e.guides[h]);if(p.length)p=_.map(p,e=>D.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:e.id,stepId:d.id,guideId:h,currentStepIndex:c})),m.all(p).then(t=>{let n={},i=-1;for(let e=0;e<t.length;e++){var r=JSON.parse(t[e]).errors;if(!r.GUIDE){var o=_.keys(r).length;if(!o){n={};break}-1===i?(n=r,i=o):d.regexUrlRule?!r.PAGE&&o<=i&&(n=r,i=o):o<i&&(n=r,i=o)}}l.contentWindow.postMessage({mutation:"preview/setErrors",payload:{errors:n}},location.origin)})["catch"](_.noop)}}else ef(0,{status:404,data:"Guide not found"})}return!0}function Wh(e){if(g.getters["frames/leaderExists"]()){if(!g.getters["frames/isFollower"]()){if(F)return!0;var t,n;_.isFunction(e.addEventListener)&&e.addEventListener("message",Jh),(t=document.createElement("iframe")).id=Bh,Ho(t,{border:"none",display:"block !important",height:n="70px !important","min-height":n,left:0,position:"fixed",right:0,top:0,visibility:"visible !important",width:"100% !important","z-index":4e5}),t.onload=function(){if(f.get("inlineStyleNonce")){const n=t.contentDocument.createElement.bind(t.contentDocument);t.contentDocument.createElement=(e,...t)=>{t=n(e,...t);return"style"===e&&(e=f.get("inlineStyleNonce"))&&t.setAttribute("nonce",e),t}}var e=document.createElement("script");e.src=f.get("previewModeAssetPath")||so("pendo.preview.min.js"),t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},F=t,Zo().appendChild(F)}}else y.one("leaderChanged",_.partial(Wh,e))}function Vh(e,t,n){Cg(),g.commit("healthCheck/resetStepStatus",null,{root:!0}),ec.reset(),av();var i=e[0],i=(i&&_.each(i.steps,function(e){e.seenState=null}),h.clear($p),g.dispatch("preview/update",null),of());return i&&(i=_.findWhere(e,{id:i.guideId}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),g.dispatch("preview/restart",i)),Qh(e,t)}function Jh(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===Bh+"::exit"?(tf({preventWindowClose:n}),g.dispatch("frames/stopPreview",{preventWindowClose:n})):t===Bh+"::restart"?(n=Vh(od(),Yp(),e.data.language),g.dispatch("guideState/forceExpire"),g.dispatch("guideState/updateLastGuideStepSeen",n),g.dispatch("frames/restartPreview")):t===Bh+"::resize"?(n=e.data.height,F&&F.style&&(F.style.height=n)):t===Bh+"::request-preview-mode-type"&&(e=af(),F)&&F.contentWindow&&e&&F.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:e.previewModeType||"NEW_TAB"}},location.origin))}function Kh(){return g.getters["preview/isInPreviewMode"]()}function $h(){return g.getters["preview/isInDesignerPreviewMode"]()}function Zh(e){var t,n,i=of();if(!i)return e;if(i.isResourceCenter)return r=e,t=i,n=P.findResourceCenterHomeView(r),r=_.filter(r,function(e){return e.id!==n.id}),Yh(n,t.stepId),t=_.map(r,function(e){return e.launchMethod="launcher",e}),[n].concat(t);{var r=e,o=i;let t;return _.each(r,function(e){e.id===o.guideId?t=e:((e=e).launchMethod="api",(e=e.steps[0])&&(e.seenState="advanced"))}),Xh(t),t.showsAfter=null,t.expiresAfter=null,Yh(t,o.stepId),r}}function Xh(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function Yh(e,t){for(var n=_.find(e.steps,function(e){return e.id===t}),i=n?e.steps.indexOf(n):0,r=0;r<e.steps.length;r++)r<i?(e.steps[r].seenState="advanced",e.steps[r].seenReason="continue"):(e.steps[r].seenState=null,e.steps[r].seenReason=null)}function Qh(e,t){null==t&&(t={});var n=of();if(!n)return t;e=_.findWhere(e,{id:n.guideId});if(!e)return t;if(n.state)return n.state;Xh(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:n.guideId,guideStepId:n.stepId,state:"active"}:{}}function ef(e,t){F&&F.contentWindow&&F.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:t}},location.origin)}function tf(e){var t=af(),n=!1,i=(t&&(n="SAME_TAB"===t.previewModeType),Gh.getItem("pendo-navigation-state"));if(g.dispatch("preview/exit"),Cg({stayHidden:!0}),h.clear($p),os.unlock(),k(F).remove(),Em=Ad,_h(qh),Ft(!0),n&&i){Gh.setItem(zh,JSON.stringify(_.extend(t,{isExitBackToDesigner:!0})));try{var r=JSON.parse(i),o={target:r.baseUrl,gcsBucket:r.gcsBucket,preloader:!0,DADesigner:r.isDADesigner,host:r.host,forceNativeDesigner:"web"===t.guide.appPlatform};g.dispatch("preview/launchInAppDesigner",o)}catch(a){g.dispatch("preview/exitDesignerPreview")}}else e&&!e.preventWindowClose&&window.close(),av()}function nf(e,t){e=_.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function rf(){return g}var of=_.partial(nf,rf,"state.preview.preview"),af=_.partial(nf,rf,"state.preview.designerPreview");function sf(e){var t;if(e.subscriptionId&&e.guideId)return t=e.isResourceCenter?"/resourcecenter/":"/guide/","/api/s/"+bt(e.subscriptionId)+t+bt(e.guideId)+"/preview"}var uf=function(e){var t;return Ia(e.origin)?(t=sf(e))?(t={url:e.origin+t+"?url="+bt(A.externalizeURL())+"&apiKey="+E.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),Rr(t).then(function(e){return e.data.guide})):(C.info("Invalid guide url, exiting preview"),m.reject("invalid guide url")):(C.info("Invalid origin, exiting preview"),m.reject("invalid origin"))},df={load(e,t,n){return lf(e,n)},post(e,t,n,i){return lf(e,i)},endpoint(){return""},usesXhr(){return!0}};function cf(n,t){if(!Ia(n.origin))return C.info("Invalid origin, exiting preview"),m.reject("invalid origin");var e=sf(n);if(!e)return C.info("Invalid guide url, exiting preview"),m.reject("invalid guide url");if(!g.getters["frames/leaderExists"]()||n.apiKey!==E.apiKey)return E.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),m.resolve();let i=""+n.origin+e+`?url=${bt(A.externalizeURL())}&apiKey=`+E.apiKey;n.childGuides&&n.childGuides.length&&(i+="&childGuides="+n.childGuides.toString()),$h()&&(i+="&ignoreGuide=true");var e={url:i,withCredentials:!0},r=(n.headers&&(e.headers=n.headers),[]);return Rr(e).then(function(e){var t,c,e=e.data;return $h()?(t=af(),r=t?$h()?(_.each(t.guide.steps,function(t){let e=["domJsonpUrl","domUrl"];t.domUrl&&0===t.domUrl.indexOf("data:")&&(e=["domJson","contentJs","contentCss","content"]),_.each(e,function(e){delete t[e]})}),t.guide.showsAfter=null,t.guide.expiresAfter=null,[t.guide]):void 0:[],e.guide=r[0]):r=n.isResourceCenter?e.guide:(e.guide.previewPages=e.pages,[e.guide]),e.children&&(r=r.concat(e.children)),n.language&&n.language!==_.get(r,"[0].authoredLanguage")&&(t=r,c=n.language.value,_.forEach(t,function(d){_.forEach(d.steps,function(e){var{domHash:t,domJsonpHash:n,translationHash:i,originalDomJsonHash:r,originalDomJsonpHash:o,originalBuildingBlockHash:a,domHash256:s,domJsonpHash256:u}=_.get(d,"translationStates."+c+".stepTranslations."+e.id,{});e.domUrl=pf(r,e.domUrl,".dom.json",s),e.domJsonpUrl=pf(o,e.domJsonpUrl,".dom.jsonp",u),e.buildingBlocksUrl=pf(a,e.buildingBlocksUrl,".buildingBlocks.json"),t&&n&&i&&(e.domUrl=e.domUrl.replace(".dom.json","-"+t+"-"+c+".dom.json"),e.domJsonpUrl=e.domJsonpUrl.replace(".dom.jsonp","-"+n+"-"+c+".dom.jsonp"),e.buildingBlocksUrl=e.buildingBlocksUrl.replace(".buildingBlocks.json","-"+i+"-"+c+".buildingBlocks.json"))})})),n.watermarkConfig&&(e.guide.isTraining=!0),E.guideWidget={enabled:!1,data:{guideCssUrl:e.guideCssUrl}},E.guideCssUrl=e.guideCssUrl,E.normalizedUrl=e.normalizedUrl,E.throttling=undefined,e.guide}).then(function(e){var t;return n.watermarkConfig?(t=JSON.parse(JSON.stringify(n)),t=Object.assign(t,n.watermarkConfig),uf(t)):e}).then(function(e){e&&e.attributes&&e.attributes.isWatermark&&r.push(e),E.guidesPayload({id:t,lastGuideStepSeen:Qh(r,E.lastGuideStepSeen),guides:Zh(r)})})["catch"](function(e){return ef(document,e),m.reject(e)})}function lf(e,t){var n=of();return!n||!sf(n)||!(e=/[?&]id=(\d+)/.exec(e))||e.length<1?m.reject():cf(n,e[1]).then(t)}function pf(t,n,i,r){if(n){var n=n.split("/"),o=n[n.length-1];let e=o;return t&&(e=""+t+o.slice(o.indexOf(i))),r&&-1<(t=e.indexOf("sha256="))&&(e=e.slice(0,t)+"sha256="+r),n[n.length-1]=e,n.join("/")}}const hf=function(){let n=null,i=[];const r=e=>{E.apiKey=e+="",n=e};return{getApiKey(){return E.apiKey},discoverKeys({apiKey:e,additionalApiKeys:t=[]}){n=null,i=[],e=e,(e=f.get("apiKey",e))&&r(e),n,e=t,e=f.get("additionalApiKeys",e),i=_.reduce(e,(e,t)=>(t&&e.push(t+""),e),[]),i=[].concat(e),E.additionalApiKeys=i,!n&&i&&i.length&&r(i[0])},getAdditionalApiKeys(){return E.additionalApiKeys},tamperedWith(){return E.apiKey!==n||E.additionalApiKeys!==i}}}(),ff=h.getLocal();gf=Ge||We,mf="in-app-designer",vf="latest",y.leaderChanged.on(function(){bf({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||$h()})});var gf,mf,vf,yf={launchDesigner:function(e){var t,n="latest",i="designer";sc(f,"designer-styles","@keyframes pendoExtensionSlideIn{from{transform:translate3d(-300px,0,0)}to{transform:translate3d(0,0,0);}}#pendo-draggable-handle{z-index:11;line-height: 15px;text-align:center;font-size:20px;letter-spacing:1.5px;position:absolute;width:100%;height:65px;font-size:16px;background-color:transparent;color:#ABE7DB;user-select:none;cursor: move;cursor: grab;cursor: -moz-grab;cursor: -webkit-grab;}#pendo-draggable-handle:active{cursor: grabbing;cursor: -moz-grabbing;cursor: -webkit-grabbing !important;}#pendo-draggable-handle.hidden{display:none;}#pendo-draggable-handle:hover{color:#2EA2A0;}#pendo-designer-container{animation-duration:375ms;animation-name:pendoExtensionSlideIn;animation-timing-function:cubic-bezier(0.4,0.0,0.2,1); box-shadow: 0px 2px 10px rgba(0,0,0,0.15);height:100vh;width:400px;position:fixed;top:0;left:0;overflow:hidden;border-radius:3px;z-index:1000000;}#pendo-mousemove-cover{position:absolute;height:100%;width:100%;top:0;left:0;z-index:9999999999;display:none;}#pendo-designer-container.fullscreen{width:100%;opacity:0.98;}#pendo-designer-container.closed{left:-400px;}#pendo-designer-iframe{background:#3a3c45;border:0px;height:100%;left:0;z-index:10;top:0;width:100%;}"),kf("designer-shims",gf+"/"+i+"/"+n+"/plugin.js"),E.DESIGNER_VERSION?xf(n,i):t=window.setInterval(function(){E.DESIGNER_VERSION&&(xf(n,i),clearInterval(t))},100)},launchInAppDesigner:Cf,localStorageNavigation:bf,launchOnToken:function(e){if(!Af(window.name)){var t=/pendo-designer=([A-Za-z0-9-]+)/;if(t.test(e)){var n,e=t.exec(e);if(e)return t=function(e){try{return JSON.parse(atob(yt(e)))||{}}catch(t){return{}}}(e[1]),e=Sf(t),n=_f(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),Cf({target:n,host:e,preloader:!1,sidebarDesigner:!!t.sidebarDesigner}),!0}}},sendMessageToLocalStorage:function(e){var t=document.getElementById("pendo-designer-communication-iframe");t&&t.contentWindow.postMessage(e.data,yf.hostConfig.host)},isValidDesignerHost:wf,isValidTarget:If,addCommunicationIframe:function(e,t){e=e||{};_.isFunction(t)||(t=_.noop);var n=_f(e),e=Ef(e),i=(new Date).getTime(),r=(yf.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=Tf(r,gf+"/"+e+"/"+n+"/communication.html","border-width:0;height:0;width:0;");return i.setAttribute("name",o),i.onload=t,document.body.appendChild(i),i},hostConfig:{host:gf},isDesignerFrame:Af,addScriptToPage:kf};function bf(e){if(!e.ignoreLocalStorageNavigation){var t,e=ff.getItem("pendo-navigation-state");if(e&&g.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(n){return}if(!t.apiKey||t.apiKey===hf.getApiKey())if(t.apiKey||!t.agentInstallType||t.agentInstallType===Se())return e=t.isDADesigner?"da-designer":"in-app-designer",e={target:t.baseUrl,preloader:!0,host:t.host,gcsBucket:t.gcsBucket||e,DADesigner:t.isDADesigner,forceNativeDesigner:!!t.forceNativeDesigner,sidebarDesigner:!!t.sidebarDesigner},yf.launchInAppDesigner(e),!0}}}function wf(e){return!!e&&Ia(e)}function Sf(e){var e=(e=e||{}).host||gf,t=wf(e),n=t?e:We;return e&&!t&&C.info("Invalid host, falling back to "+We),n}function Ef(e){var e=(e=e||{}).gcsBucket||mf,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:mf;return t||C.info("Invalid bucket, falling back to "+mf),e}function If(e){return"latest"===e||"strict"===e||"beta"===e||"via"===e||"mobile"===e||new RegExp("^[0-9]+.[0-9]+.[0-9]+(-[a-z0-9-]+[a-z0-9]+)?$").test(e)}function _f(e){e=e||{};var t=f.get("enableCrossOriginIsolation")?"strict":vf,e=e.target||e.baseFolder||t,t=If(e),e=t?e:vf;return t||C.info("Invalid target, falling back to "+vf),e}function Cf(e){if(!Af(window.name)&&!E.designerLaunched)if(f.get("disableDesigner"))C.info("Unable to launch the Visual Design Studio, set to disabled in configuration.");else{var t,n,i,r,o,a=!1;try{a=!!window.top.pendo}catch(s){}yf.crossFrameChannel===undefined&&(yf.crossFrameChannel=D,yf.useCrossFrameChannel=!0),Va()&&a&&!e.allowChildFrame&&!e.selectionOnly?C.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):E.isReady()?(E.designerLaunchTime=(new Date).getTime(),a=Sf(e=e||{}),r=Ef(e),o=_f(e),i=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+r+"/"+o+"/"+i,f.get("useAssetHostForDesigner")&&(n=so(i)),yf.hostConfig={gcsBucket:r,baseFolder:o,uniqueWindowId:e.uniqueWindowId,host:a,adoptv2:e.adoptv2,DADesigner:e.DADesigner,agentInstallType:Se(),forceNativeDesigner:!!e.forceNativeDesigner,sidebarDesigner:!!e.sidebarDesigner,apiKey:hf.getApiKey()},i={},e.selectionOnly&&(i["selection-only"]=!0),f.get("pendoGlobalKey")&&(i["data-pendo-global-key"]=f.get("pendoGlobalKey")),r=f.get("designerAgentPluginsLoader"),o=window.__pendoExtensions&&e.forceNativeDesigner,a=!window.__pendoExtensions&&!_.isFunction(r),(o||a)&&(yf.addScriptToPage(t,n,i),E.designerLaunched=!0),!e.forceNativeDesigner&&_.isFunction(r)&&(r(t,n,i),E.designerLaunched=!0)):C.error("Unable to launch the designer, the agent has not been initialized. Please use `pendo.initialize` prior to launching the designer")}}function xf(e,t){window.postMessage({type:"connect",source:"pendo-designer-content-script",destination:"pendo-designer-agent"},location.origin);var n;document.getElementById("pendo-designer-container")||(n="pendo-designer-embedded",n+="__"+yf.windowCommunicationId,(t=Tf("pendo-designer-iframe",gf+"/"+t+"/"+e+"/designer.html")).setAttribute("name",n),e=function(e){var t=document.createElement("div");return t.setAttribute("id","pendo-designer-container"),t.appendChild(e),t}(t),document.body.appendChild(e))}function Tf(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&jo(i,n),i.setAttribute("sandbox","allow-scripts allow-same-origin allow-top-navigation allow-forms allow-pointer-lock allow-popups allow-storage-access-by-user-activation"),i.src=t,i}function kf(e,t,n){var i;document.getElementById(e)||((i=document.createElement("script")).setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=Z(E).createScriptURL(t),n&&_.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function Af(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(n){return!1}}Rf={body:"pendo-launch-modal-body",closeButton:"pendo-launch-modal-close-button",container:"pendo-launch-modal",footer:"pendo-launch-modal-footer",header:"pendo-launch-modal-header",launchButton:"pendo-launch-modal-launch-button",title:"pendo-launch-modal-title",logoContainer:"pendo-launch-modal-logo-container",style:"pendo-launch-modal-style",commIframeId:"pendo-designer-communication-iframe"},Of={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},(Nf={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370}).FOOTER_HEIGHT=1.25*Nf.HEADER_HEIGHT,Nf.BODY_HEIGHT="calc(100% - "+Nf.HEADER_HEIGHT+"px - "+Nf.FOOTER_HEIGHT+"px)",Mf='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 164.12 164.12"><defs><style>.cls-1{fill:#fff;}</style></defs><title>chevron</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><polygon class="cls-1" points="82.06 0 0 82.06 82.06 82.06 82.06 164.13 164.13 82.06 164.13 0 82.06 0"/></g></g></svg>',(Lf={})["#"+Rf.closeButton+":hover"]={"background-color":Of.GRAY_LIGHTER_6},Lf["#"+Rf.launchButton+":hover"]={"background-color":Of.TEAL_DARKER+" !important"},Pf={PRIMARY_FONT:"Helvetica Neue"};var Rf,Of,Nf,Mf,Lf,Pf,Ff={listen:function(){return _.isFunction(document.addEventListener)?(document.addEventListener("keyup",Df,!1),()=>{document.removeEventListener("keyup",Df,!1)}):()=>{}},launchOnLocalStorageToken:qf,ids:Rf,removeElement:zf,attemptToLaunch:Bf,loadPluginJs:function(){var t;E.designerLaunched||(t=_.once(function(e){qf(e,!0)}),Ka(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}};function Df(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&Bf(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&Bf(!1,!0)}function Uf(e,t){var n,i,r,o={"background-color":Of.WHITE,height:Nf.MODAL_HEIGHT+"px","min-height":Nf.MODAL_HEIGHT+"px",width:Nf.MODAL_WIDTH+"px",position:"fixed",top:Nf.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-Nf.MODAL_WIDTH/2+"px","border-radius":"4px","box-shadow":"0px 13px 28px rgba(0, 0, 0, 0.17)",overflow:"hidden","z-index":"300000","box-sizing":"border-box"},o=Gf("div",Rf.container,o);sc(f,Rf.style,_.reduce(_.pairs(Lf),function(e,t){var n=t[0],t=t[1];return e+n+"{"+_.reduce(_.pairs(t),function(e,t){return e+t[0]+":"+t[1]+";"},"")+"} "},""),o),o.appendChild((t=t,r=Gf("div",Rf.header,{"background-color":Of.GRAY_PRIMARY,height:Nf.HEADER_HEIGHT+"px","min-height":Nf.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(i=Gf("div",Rf.logoContainer,{height:"38px",width:"44px","background-color":Of.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=Z(E).createHTML(Mf),r.appendChild(i),(i=Gf("div",Rf.title,{width:"100%",display:"flex","align-items":"center","font-family":Pf.PRIMARY_FONT,"font-size":"18px",color:Of.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=t?"VIA Designer":"Pendo Designer",r.appendChild(i),r)),o.appendChild(((t=Gf("div",Rf.body,{height:Nf.BODY_HEIGHT,"min-height":Nf.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":Pf.PRIMARY_FONT,"font-size":"14px","box-sizing":"border-box"})).innerText="Thanks for letting us know you're here. We're ready to try this again. Launch Designer below to begin.",t)),o.appendChild((n=e,i=Gf("div",Rf.footer,{"align-items":"center","border-top":"1px solid"+Of.GRAY_LIGHTER_6,display:"flex",height:Nf.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":Nf.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(r=Gf("button",Rf.closeButton,{"border-radius":"3px",border:"none",height:Nf.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":Pf.PRIMARY_FONT,"font-size":"14px",display:"flex","line-height":"120%","margin-right":"10px","min-width":"90px","justify-content":"center","box-sizing":"border-box"})).textContent="Close",r.onclick=function(){zf(Rf.container),zf(Rf.commIframeId)},(t=Gf("button",Rf.launchButton,{"background-color":Of.TEAL_PRIMARY,"border-radius":"3px",color:Of.WHITE,border:"none",height:Nf.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":Pf.PRIMARY_FONT,"font-size":"14px",display:"flex","line-height":"120%","min-width":"90px","justify-content":"center","box-sizing":"border-box"})).textContent="Launch Designer",t.onclick=function(){qf(n)},i.appendChild(r),i.appendChild(t),i)),document.body.appendChild(o)}function Gf(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),_.extend(e.style,n),e}function Bf(t,n){var i,r,o;E.designerLaunched||(o=_.once(function(e){t||!n?qf(e):Uf(e,t),jf()}),Ka(function(e){"pendo-designer-launch-modal"===e.data.destination&&(clearInterval(i),e.data.viaconfirmed?clearInterval(r):e.data.token?(o(e.data.token),e=JSON.parse(e.data.token),_.contains(e.host,"via")&&!e.visitorId&&(r=r||setInterval(function(){document.getElementById(Rf.commIframeId)&&Hf()},100))):jf())}),yf.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){Hf(),i=window.setInterval(Hf,50)}))}function zf(e){document.getElementById(e)&&document.getElementById(e).remove()}function jf(){var e=document.querySelector("#"+Rf.commIframeId+'[src*="pendo"]');e&&e.remove()}function Hf(){var e=document.getElementById(Rf.commIframeId);e&&e.contentWindow&&_.isFunction(e.contentWindow.postMessage)&&e.contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:E.visitorId},_.get(E,"designerv2.hostConfig.host",We))}function qf(e,t){var n={},e=JSON.parse(e);n.target=e.target||"latest",e.host&&(n.host=e.host),e.lookaside&&(n.lookaside=e.lookaside),t&&(n.selectionOnly=t),e.forceNativeDesigner&&(n.forceNativeDesigner=e.forceNativeDesigner),e.sidebarDesigner&&(n.sidebarDesigner=e.sidebarDesigner),zf(Rf.container),yf.launchInAppDesigner(n)}var Wf=_.wrap(_.wrap(_.once(_.wrap(function(e){var t=m.defer();return ka(e,function(){t.resolve()}),t.promise},function(e,t){return 0<_.size(kd._handlers.validateGlobalScript)?Rr.get(t).then(function(e){return kd.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)})),function(e,t){return t?e(t):m.resolve()}),function(e,t){return f.get("preventCodeInjection")?m.resolve():e(t)}),Vf={initializeWatermark:function(e){e=_.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),Vf.watermarkGuides=e,e=_.map(e,function(e){return e.fetchContent()});return m.all(e)},buildWatermark:function(e,t){if((e=e||{}).isTraining&&!e.isEmbedded){var n=e.targetAccount?function(t){return _.find(Vf.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return _.find(Vf.watermarkGuides,function(e){return t===e.appId})}(e.appId);if(n&&n.steps){var i,n=n.steps[0];if(n&&n.domJson)return i=n.domJson,(i=t(i,n)).css({position:"absolute",left:"auto",top:e.isBottomAligned?"auto":"100%",bottom:e.isBottomAligned?"100%":"auto",right:"0"}),i}}}};const Jf=1e4;function Kf(n,i){var r=!1;const o=[];return n.addEventListener("message",function(e){u(e.data),i.state.guideUpdate.useObserver&&i.dispatch("guideUpdate/documentChanged")}),{postMessage:a,postMessageAsPromise:s,postMessageOrTimeout:function(e,t=Jf){const n=m.defer(),i=ut(32),r=(e=_.extend(e,{promiseId:i}),Ut(()=>{o[i]&&(n.reject(JSON.stringify({message:"request timed out"})),delete o[i])},t));return s(e).then(e=>{clearTimeout(r),n.resolve(e)}),n.promise},close:function(){r=!0,_.isFunction(n.close)&&n.close()}};function a(e){var t;r||(t=_.extend({apiKey:E.apiKey,allowMixedApiKeyFrames:f.get("allowMixedApiKeyFrames"),agentInstallType:Se()},e),n.postMessage(t),Ut(function(){u(t)},0))}function s(e){e.promiseId||(t=ut(32),e=_.extend(e,{promiseId:t}));var t=m.defer();return o[e.promiseId]=t,a(_.extend(e,{sourceFrame:i.state.frames.frameId})),t.promise}function u(e){try{var t;r||e.apiKey!==E.apiKey&&(!1===e.allowMixedApiKeyFrames||!1===f.get("allowMixedApiKeyFrames"))||e.targetFrame&&e.targetFrame!==i.state.frames.frameId||(e.resolveId?(t=o[e.resolveId])&&(delete o[e.resolveId],t.resolve(JSON.stringify(e))):/^frames\/|^debugger\//.test(e.action)&&i.dispatch(e.action,e))}catch(n){C.critical("ERROR in cross frame channel",{error:n})}}}var $f="frames/removeFrame";function Zf(e,t,n){return new Xf(e,t,n,(e=t,t=n,new(_.isFunction(e.MessageChannel)?Yf:Qf)(e,t)))}function Xf(e,t,n,i){this.init(e,t,n,i)}_.extend(Xf.prototype,{init(e,t,n,i){this._store=e,this._window=t,this._singletonMessageHandler=n,this._listeners=[],this._targetOrigin=n.targetOrigin(),this._impl=i,this._impl.onconnect=_.bind(this._frameConnectHandler,this),this._impl.onmessage=_.bind(this._fireMessageListeners,this),this._impl.onrelay=_.bind(this._topMessageHandler,this),this._connectToTop(10,0,function(){this._addControlMessageHandler(),this._connectToTop(250,21,function(){this.close(),this._store.commit("frames/setConnectFailed")})})},_fireMessageListeners(t){_.each(this._listeners,function(e){e(t)})},_controlMessageHandler(e){e=this._impl._parseMessage(e);e.data&&("pendo::connect"===e.data.action&&this._impl.frameConnect(e),e.data.action===$f)&&this._topMessageHandler(e)},_topMessageHandler(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===$f&&this._impl.frameDisconnect(e),this._impl.broadcast(e))},_connectToTop(e,t,n){this._impl.connectToTop({action:"pendo::connect",frameId:this._store.state.frames.frameId},this._targetOrigin),Ut(_.bind(function(){this._connected||(0===t?_.isFunction(n)&&n.call(this):0<t&&this._connectToTop(Math.min(2*e,1e4),t-1,n))},this),e)},_addControlMessageHandler(){this._singletonMessageHandler.addEventListener(_.bind(this._controlMessageHandler,this))},_frameConnectHandler(e){e.data&&"pendo::connectSuccess"===e.data.action&&(this._connected=!0,this._impl.connectSuccess(e),this._store.dispatch("frames/join"))},addEventListener(e,t){"message"===e&&this._listeners.push(t)},postMessage(e){this._closed||this._impl.postMessage(e)},close(){this._closed=!0,this._listeners.length=0,this._impl.close()}});Ri={_frameConnectHandler(e){_.isFunction(this.onconnect)&&this.onconnect(this._parseMessage(e))},_messageReceived(e){_.isFunction(this.onmessage)&&this.onmessage(this._parseMessage(e))},_relayMessage(e){_.isFunction(this.onrelay)&&this.onrelay(this._parseMessage(e))},_parseMessage(e){var t;return _.isString(e.data)?((t=_.pick(e,"type","origin","source","ports","lastEventId","target")).data=function(e){if(!_.isString(e))return e;try{return JSON.parse(e)}catch(t){return e}}(e.data),t):e}};function Yf(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function Qf(e,t){this._window=e,this._frames={},this._isTop=e==e.top,this._singletonMessageHandler=t,this._boundMessageReceived=_.bind(this._messageReceived,this),this._isTop||(this._boundFrameConnectHandler=_.bind(this._frameConnectHandler,this),t.addEventListener(this._boundFrameConnectHandler))}_.extend(Yf.prototype,Ri,{connectToTop(e,t){this._closeChannel(),this._openChannel();var n=[];this._channel.port2&&n.push(this._channel.port2),this._window.top.postMessage(e,t,n)},frameConnect(e){var t,n=e.ports[0];(t=n)&&_.all(["addEventListener","start"],function(e){return _.isFunction(t[e])})&&((this._ports[e.data.frameId]=n).addEventListener("message",_.bind(this._relayMessage,this)),n.start(),n.postMessage({action:"pendo::connectSuccess"}),n.postMessage({action:"frames/receiveFrame",frame:g.state.frames.frames[g.state.frames.frameId],"pendo-preview":g.state.preview.preview}))},frameDisconnect(e){delete this._ports[e.data.frameId]},connectSuccess(){this._port.removeEventListener("message",this._boundFrameConnectHandler),this._port.addEventListener("message",_.bind(this._messageReceived,this))},broadcast(t){_.each(this._ports,function(e){t.target!==e&&e.postMessage(t.data)})},postMessage(e){this._port&&this._port.postMessage(e),e.action===$f&&this._window.top.postMessage(e,this._targetOrigin)},close(){_.each(this._ports,function(e){e.close()}),this._ports={},this._closeChannel()},_openChannel(){this._channel=new this._window.MessageChannel,this._port=this._channel.port1,this._boundFrameConnectHandler=_.bind(this._frameConnectHandler,this),this._port.addEventListener("message",this._boundFrameConnectHandler),this._port.start()},_closeChannel(){this._port&&_.isFunction(this._port.close)&&(this._port.close(),this._port=null,this._channel=null)}}),_.extend(Qf.prototype,Ri,{connectToTop(e,t){this._isTop||this._window.top.postMessage(JSON.stringify(e),t)},frameConnect(e){this._frames[e.data.frameId]=e.source,this._relayHandlerAdded||(this._relayHandlerAdded=!0,this._boundRelayMessage=_.bind(this._relayMessage,this),this._singletonMessageHandler.addEventListener(this._boundRelayMessage)),e.source.postMessage(JSON.stringify({action:"pendo::connectSuccess"}))},frameDisconnect(e){delete this._frames[e.data.frameId]},connectSuccess(){this._singletonMessageHandler.removeEventListener(this._boundFrameConnectHandler),this._singletonMessageHandler.addEventListener(this._boundMessageReceived)},broadcast(t){var n=this._singletonMessageHandler.targetOrigin();_.each(this._frames,function(e){t.source!=e&&e.postMessage(JSON.stringify(t.data),n)}),t.source!=this._window&&this._messageReceived(t)},postMessage(e){this._isTop?this._relayMessage({data:e,source:this._window}):this._window.top.postMessage(JSON.stringify(e),this._singletonMessageHandler.targetOrigin())},close(){var e=this._singletonMessageHandler;e.removeEventListener(this._boundFrameConnectHandler),e.removeEventListener(this._boundMessageReceived),e.removeEventListener(this._boundRelayMessage)}});eg=window,tg=Ia,ig=!(ng=[]);var eg,tg,ng,ig,rg={targetOrigin(){return ig?location.origin:"*"},secure(e){ig=e},addEventListener(e){0===ng.length&&eg.addEventListener("message",og),ng.push(e)},removeEventListener(e){e=ng.indexOf(e);0<=e&&ng.splice(e,1),0===ng.length&&eg.removeEventListener("message",og)},close(){eg.removeEventListener("message",og),ng.length=0}};function og(t){ig&&!tg(t.origin)||_.each(ng,function(e){_.isFunction(e)&&e(t)})}function ag(e){if(!ze.addEventListener)return{addEventListener:_.noop,postMessage:_.noop,close:_.noop};var t=!!window.__pendoExtensions;if(f.get("preferBroadcastChannel")&&!t&&_.isFunction(window.BroadcastChannel)){e.commit("frames/setChannelType","BroadcastChannel");t=function(e,o){const a=[];return e.removeEventListener=_.wrap(e.removeEventListener,function(e,t,n){var i,r=_.toArray(arguments).slice(1);return"message"===t&&0<=(i=_.findIndex(a,e=>e[0]===n))&&(r[1]=a[i][1],a.splice(i,1)),e.apply(this,r)}),e.addEventListener=_.wrap(e.addEventListener,function(e,t,n){var i,r=_.toArray(arguments).slice(1);return"message"===t&&(r[1]=i=function(e){if(e.data.tabId===o.getTabId())return n.apply(this,arguments)},a.push([n,i])),e.apply(this,r)}),e.postMessage=_.wrap(e.postMessage,function(e,t){return t.tabId=o.getTabId(),e.apply(this,_.toArray(arguments).slice(1))}),e}(new BroadcastChannel("pendo"),ln);if(t&&_.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),Zf(e,window,rg)}var sg="guides_blocked",ug="Guides disabled: unreachable endpoint guide.gif";function dg(e){return JSON.parse(JSON.stringify(e))}class cg{constructor(e,t){this.apiKey=e,this.cacheGuides=t.get("cacheGuides"),this.cacheGuidesTimeout=t.get("cacheGuidesTimeout"),this.cacheGuidesPersistent=t.get("cacheGuidesPersistent"),this.cache=null,this.db=null}openDB(e,t=window.indexedDB){if(!this.cacheGuidesPersistent)return m.resolve();if(this.db)return m.resolve(this.db);const n=m.defer();e=t.open("pendo-"+e,1);return e.onerror=()=>{C.warn("Error opening guide database"),this.cacheGuidesPersistent=!1,n.resolve()},e.onsuccess=e=>{e=e.target.result;this.db=e,n.resolve(e)},e.onupgradeneeded=e=>{const t=e.target.result;t.createObjectStore("guides",{keyPath:"guide.id"}).transaction.oncomplete=()=>{this.db=t,n.resolve(t)}},n.promise}load(t=v()){if(this.cache)return m.resolve(this.cache);if(this.cache={},!this.db)return m.resolve(this.cache);const n=m.defer(),i=this.db.transaction(["guides"],"readwrite").objectStore("guides");var e=i.getAll();return e.onerror=()=>{C.warn("Error loading guide cache"),this.cacheGuidesPersistent=!1,this.db=null,n.resolve(this.cache)},e.onsuccess=e=>{e=e.target.result;_.each(e,e=>{e.expires>t?this.cache[e.guide.id]=e:i["delete"](e.guide.id)}),n.resolve(this.cache)},n.promise}add(e,t,n=v()){if(this.cacheGuides&&this.cache)return n={expires:n+this.cacheGuidesTimeout,visitorId:t,guide:dg(e)},this.cache[e.id]=n,this.save(n)}save(e){if(this.db){var t=this.db.transaction(["guides"],"readwrite").objectStore("guides");const n=m.defer();t=t.put(e);return t.onerror=()=>{C.warn("Error saving guide to cache "+e.guide.id),n.resolve()},t.onsuccess=()=>{n.resolve()},n.promise}}update(t){if(this.cache){var e=this.cache[t.guideId];if(e){var n=_.find(e.guide.steps,e=>e.id===t.guideStepId);if(n)return n.seenState=t.state,n.seenReason=t.seenReason,n.lastSeenAt=t.time,null!=t.dismissCount&&(n.dismissCount=t.dismissCount),null!=t.snoozeEndTime&&(n.snoozeEndTime=t.snoozeEndTime),this.save(e)}}}list(n,i=v()){return this.cacheGuides?this.openDB(this.apiKey).then(()=>this.load(i)).then(()=>{const t=[];return _.each(this.cache,e=>{e.expires>i&&e.visitorId===n?t.push(_.pick(e.guide,"id","lastUpdatedAt","language")):delete this.cache[e.guide.id]}),t}):m.resolve([])}get(e){if(this.cache&&this.cache[e])return dg(this.cache[e].guide)}clear(){this.cache={},this.db&&this.db.transaction(["guides"],"readwrite").objectStore("guides").clear()}}const lg=h.getLocal();var pg=[],hg="Guide was not shown because this visitor is in a control group of an active experiment for the guide";const fg=[];function gg(){var e=f.get("guideCssAssetPath");return e||so("guide.css")}var mg="_pendo-guide_",vg="_pendo_g_",yg=0;function bg(e){yg=e}var wg=function(){return _.any(O,function(e){return e.isShown()})},Sg=function(e,t){var n=k("._pendo-close-guide_",e);return n.length||(n=k(document.createElement("button")).attr("id","_pendo-close-guide_").attr("aria-label","close").addClass("_pendo-close-guide_").text("\xd7"),je()?9<xe&&n.css({top:3}):8===xe?n.css({top:9,right:2}):9===xe?n.css({right:2,top:3}):9<xe&&n.css({top:3}),e=k("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},Eg=function(n){return _.reduce(O,function(e,t){return n(t)&&e.push(t),e},[])},Ig=function(e,t,n,i,r,o){e=rd(N(e),t);e&&(e.seenState=n,e.lastSeenAt=i,e.destinationStepId=o,r!==undefined)&&(e.dismissCount=r)},_g=function(e){for(var t=new RegExp("^"+vg);e;){if(_.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function Cg(t){_.each(O,function(e){_.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var xg=function(e){return e&&e.guideId};var Tg=function(e,t){var n,i;return xg(e)&&(t=e,e=null),(n=t)&&_.isFunction(n.render)?t:t?(n=N(t.guideId))&&n.findStepById(t.id):(n=_.find(O,function(e){return e.isShown()}))?((i=e?_g(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||To("findStepForGuideEvent: step with id "+i):(t=_.find(n.steps,function(e){return e.isShown()}))||To("findStepForGuideEvent: no step shown"),t):void 0},kg=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=gd(e);"tooltip"===e.type&&_.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Wu(n,t,Ug,!0)};function Ag(e){return e.isLocked()&&(!e.elements||!e.elements.length||void ko('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}var Rg=function(e){var e=k("#_pendo-badge_"+e.id),t=e.find("input"),t=0<t.length?t:e;t.length<1||t[0].focus()},Og=function(e){e=_.get(e,"attributes.activation.selector",""),e=Er(e);e.length<1||e[0].focus()},Ng=function(){var e=P.getResourceCenterBadge();e?e.element().focus():(e=P.getResourceCenter(),Og(e))},Mg=function(e){if(!E.designer&&e&&"building-block"===_.get(e,"attributes.type","")){var t=e.steps[0],n=t.seenReason,i=_.get(e,"launchMethod","").split("-"),r=_.contains(i,"dom"),o=_.contains(i,"badge"),i=Zg(e);if(_.get(t,"attributes.isAutoFocus")||i)switch(n){case"badge":o&&Rg(t);break;case"dom":r&&Og(e);break;case"launcher":Ng();break;default:return}}};function Lg(e,t){return!e.isMultiApp&&("auto"===t||"repeatGuide"===t)}var Pg=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=Tg(e,t))&&t.id?Ag(t)||("dismissed"===t.seenState?C.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(C.info("onGuideDismissed called",{contexts:["guides"]}),y.beforeDismiss.trigger(t).cancel?C.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(kg(t),e=t.id,n=N(s=t.guideId),i=(i=_.first(n&&n.steps))&&i.seenReason,o=n&&n.language,r=_.get(t,"dismissCount",0)+1,tm(s,e,b(),i,o),o=v(),Ig(s,e,"dismissed",o,r),(a=_.isFunction(t.getGuide)&&t.getGuide())&&a.attributes&&a.attributes.doNotResume||Zp({guideId:s,guideStepId:e,time:o,state:"dismissed",seenReason:i,visitorId:b(),dismissCount:r}),Lg(n,i)&&rm(o,im.DISMISSED),t.hide(),Mg(a),wg()||(lh(),ph())))):lh()},Fg=function(e,t,n){var i,r,o,a,s,u,d,c;C.info("onGuideSnoozed called",{contexts:["guides"]}),(t=Tg(e,t))?"snoozed"===t.seenState?C.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):y.beforeSnooze.trigger(t).cancel?C.info("Guide snooze canceled during runtime in step: "+t.id):(n||(n=864e5,C.info("no snooze duration provided, defaulting to 1 day")),Ag(t)||(kg(t),e=t.id,i=t.guideId,r=b(),o=N(i),a=o&&o.language,s=_.first(o&&o.steps),s=s&&s.seenReason,u=v(),C.info("snoozing guide for "+n+" ms"),d=u+n,t.snoozeEndTime=d,c=am({type:"guideSnoozed",guideId:c=i,stepId:e,visitorId:r,seen_reason:s,language:a,snooze_duration:n}),dm(c),y.guideSnoozed.trigger(c),Ig(i,e,"snoozed",u),o&&o.attributes&&o.attributes.doNotResume||Zp({guideId:i,guideStepId:e,time:u,state:"snoozed",seenReason:s,visitorId:b(),snoozeEndTime:d}),Lg(o,s)&&rm(u,im.SNOOZED),t.hide(),Mg(o),wg())||(lh(),ph())):(C.info("missing step. can't snooze",{contexts:["guides","error"]}),lh(),To("onGuideSnoozed: missing step"))},Dg=function(e){var t,n,i,r=(r=e&&e.step)||Tg(e);r?(i=e&&e.params,i=_.find(i,function(e){return"goToStepId"===e.name}),t=i&&i.value,(t=e&&e.destinationStepId?e.destinationStepId:t)?t===r.id?C.info("[goToStep] step id matches the current step",{contexts:["guides","error"]}):(i=N(r.guideId),(n=_.find(i.steps,function(e){return e.id===t}))?(n=_.indexOf(i.steps,n),i=_.indexOf(i.steps,r),e.steps=Math.abs(n-i),e.action=e.action||"goToStep",e.destinationStepId=t,i<n?Ug(e,r,!1):Gg(e,r)):C.info("[goToStep] guide has no step matching the step id",{contexts:["guides","error"]})):C.info("[goToStep] missing step id to go to",{contexts:["guides","error"]})):C.info("[goToStep] missing current step",{contexts:["guides","error"]})},Ug=function(e,t,n){if((s=uv())&&_.each(s.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=gd(e);"tooltip"===e.type&&_.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Wu(n,t,Ug,!0)}),1===arguments.length&&xg(e)&&(s=nd(e.guideId),i=Tg(),s)&&i&&_.first(s.steps).id===i.id&&_.last(s.steps).id===e.id&&(C.info("Cannot skip to last step from first step"),e=null),C.info("onGuideAdvanced called",{contexts:["guides"]}),(t=Tg(e,t))===e&&(e=null),t){if(!Ag(t))if("advanced"!==t.seenState||n)if(y.beforeAdvance.trigger(t).cancel)C.info("Guide advance canceled during runtime in step: "+t.id);else{var i=e&&e.action&&"goToStep"===e.action||!1,r=N(t.guideId),o=r&&r.language,a=r&&r.steps&&_.findIndex(r.steps,e=>t.id==e.id);if(e&&_.isNumber(e.steps)&&1<e.steps&&!i){var s=a+(e.steps-1),u=s=s>=r.steps.length?r.steps.length-1:s;!0===e.skip&&(u=a+1);for(var d=a;d<u;++d){t=r.steps[d],nm(r.id,t.id,b(),t.seenReason,o,d!==a);var c=v();Zp({guideId:t.guideId,guideStepId:t.id,time:c,state:"advanced",seenReason:t.seenReason,visitorId:b()}),Ig(r.id,t.id,"advanced",c,undefined,h)}return Ug(r.steps[s],t,!0)}var l,i=t.id,s=t.guideId,p=_.first(r&&r.steps),p=p&&p.seenReason,h=e&&e.destinationStepId,f=(h||(f=e&&_.isNumber(e.steps)&&1<e.steps?e.steps:1,h=(f=_.isNumber(a)&&r&&r.steps&&r.steps[a+f])&&f.id||null),h||C.info("missing destination step id"),C.info("advancing guide"),nm(s,i,b(),p,o,n,h),C.info("update guide status"),r&&_.last(r.steps).id===i&&(l=_.get(t,"dismissCount",0)+1),(new Date).getTime()),g=(Ig(s,i,"advanced",f,l,h),_.isFunction(t.getGuide)&&t.getGuide());g&&g.attributes&&g.attributes.doNotResume||Zp({guideId:s,guideStepId:i,time:f,state:"advanced",seenReason:p,visitorId:b(),destinationStepId:h,dismissCount:l}),Lg(r,p)&&rm(f,im.ADVANCED),C.info("stop guide"),lh(),C.info("start guides"),ph()}else C.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else C.info("missing step. can't advance",{contexts:["guides","error"]}),lh(),To("onGuideAdvanced: missing step")},Gg=function(e,t){var n,i,r,o,a,s;C.info("onGuidePrevious called",{contexts:["guides"]}),(t=Tg(e,t))?"advanced"===t.seenState?C.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):y.beforePrevious.trigger(t).cancel?C.info("Guide previous canceled during runtime in step: "+t.id):(o=N(n=t.guideId),s=e&&e.action&&"goToStep"===e.action||!1,0!==(i=_.indexOf(o.steps,t))&&(r="element"==t.advanceMethod?"click":"mouseover",a=gd(t),"tooltip"===t.type&&_.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):Wu(a,r,Ug,!0),a=e&&_.isNumber(e.steps)?e.steps:1,r=_.first(o&&o.steps),a=0<=(i=i-a)?o.steps[i]:r,i=r&&r.seenReason,r=o&&o.language,o=a.id,(o=s&&e&&e.destinationStepId?e.destinationStepId:o)||C.info("missing destination step id"),C.info("advancing guide"),nm(n,t.id,b(),i,r,!1,o),C.info("update guide status"),a=(new Date).getTime(),Ig(t.guideId,t.id,"advanced",a,undefined,o),(s=_.isFunction(t.getGuide)&&t.getGuide())&&s.attributes&&s.attributes.doNotResume||Zp({guideId:t.guideId,guideStepId:t.id,time:a,state:"advanced",seenReason:i,visitorId:b(),destinationStepId:o}),lh(),ph())):(lh(),To("onGuidePrevious: missing step"))},Bg=function(e){var t;k("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",ao()+"/img/tiny-logo.png"),t=k(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:E.TOOLTIP_ARROW_SIZE}).append(t),Ku.push(t[0]),t.appendTo(e))};function zg(e){return e&&e.attributes&&e.attributes.stayHidden}const jg=(e,t,n)=>{var i;return kh()&&({id:e,guideId:i}=e,y.stepEligibility.trigger({stepId:e,guideId:i,eligible:t,reason:n})),t};var Hg=function(e){var t,n,i=_.partial(jg,e);return zg(e)?i(!1,"dismissed"):e.elementPathRule||"lightbox"!==e.type&&"whatsnew"!==e.type?e.triggerElementPathRule&&!pa(Er(e.triggerElementPathRule)[0])?i(!1,"trigger_element"):(t=gd(e),(n=e.targetElement)&&e.elementContainsRulesList&&!Wg(n,e.elementContainsRulesList)?i(!1,"contains_rules"):(n="tooltip"===e.type||Uc.isBuildingBlockGuideRelativeToElement(e),e=pa(t),n?e?i(e,"target_element_tooltip"):i(ha(t),"target_element_tooltip_scroll"):i(e,"target_element"))):i(!0,"")};function qg(e){var t=(k(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function Wg(e,t){for(var n=qg(e),i=0;i<t.length;i++)if(!Vg(n,t[i]))return!1;return!0}function Vg(e,t){var n=t.matchType,i=t.matchValue,t=t.dataType,e=e||"";if("number"===t){var r=gt(e);if(null==r)return!1;e=parseFloat(r),i=parseFloat(i);if(isNaN(e)||isNaN(i))return!1}else"string"===t&&(e=e.toLowerCase(),i=i.toLowerCase());return"equal"===n?e===i:"notEqual"===n?e!==i:"contains"===n?-1<String(e).indexOf(i):"notContains"===n?-1===String(e).indexOf(i):"greaterThan"===n?i<e:"lessThan"===n&&e<i}var Jg=function(e){return vg+e.id},Kg=function(e){var t=e.element,n=_.first(k("#"+Jg(e)));t&&n?pa(t)||k.hasClass(n,"mouseover")?Ut(function(){Kg(e)},uh):e.hide&&(e.hide(),wg())||(lh(),ph()):t||!n||e.hide&&(e.hide(),wg())||(lh(),ph())},$g=function(){return!1},Zg=_.partial(_.get,_,"attributes.resourceCenter"),Xg=function(t){var e;wg()&&(e=Tg(),kg(e),Zg(t)?(e=Eg(Zg),(e=_.filter(e,function(e){return e.id!==t.id})).length&&g.dispatch("frames/hideGuides",_.pluck(e,"id"))):(Cg(),g.dispatch("frames/hideGuides")))},Yg=function(e,t){return!(!e||!e.guideId||!(e=N(e.guideId)))&&(Xg(e),e.launch(t),e.isShown())},Qg=function(e,t,n,i,r,o){e=am({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&_.extend(e.props,{step_poll_types:o}),dm(e),y.guideNotSeen.trigger(e)};var em=function(e,t,n,i,r,o){i||(C.critical("pendo.io guideSeen exception",{guideId:e,stepId:t,error:new Error("seenGuide called without seen reason")}),a=N(e),s="auto",i=a&&(a=(a.launchMethod||s).split("-"),!_.contains(a,s))&&a.length?_.first(a):s);var a=am({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),s=(_.extend(a.props,o),dm(a),v());Zp({guideId:e,guideStepId:t,time:s,state:"active",seenReason:i,visitorId:b()}),Ig(e,t,"active",s),y.guideSeen.trigger(a)};function tm(e,t,n,i,r){e=am({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});dm(e),y.guideDismissed.trigger(e)}function nm(e,t,n,i,r,o,a){e={type:"guideAdvanced",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r},a&&(e.destination_step_id=a),t=am(e);dm(t,null,o),y.guideAdvanced.trigger(t)}var im={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function rm(e,t){om(e,t);var n={};n[t]=e,g.dispatch("frames/changeThrottlingState",n)}function om(e,t){_.contains(_.values(im),t)&&(_.isFunction(e.getTime)&&(e=e.getTime()),E[t]=e,h.write(t,e,Kp),g.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function am(e,t,n,i,r,o){var a=e,e=("object"!=typeof a&&(a={type:e,guideId:t,stepId:n,visitorId:i,language:o}),r&&(a.reason=r),_.isString(a.language)||delete a.language,_.extend({guide_id:a.guideId,guide_step_id:a.stepId},_.omit(a,"type","guideId","stepId","visitorId"))),t=ln.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:qn(),browser_time:(new Date).getTime(),url:A.externalizeURL(),props:e});return y.eventCaptured.trigger(t),t}var sm=null,um=function(e){window.clearTimeout(sm),sm=Ut(Gm,e)},dm=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-yg,qm(),Dm.push(e),um(t)},cm=function(e,t){return"dismissed"===e.state?null:N(e.guideId).nextStep(e,t||lm())},lm=function(){return E.normalizedUrl||pm(A.externalizeURL())},pm=function(e){try{var t=new Zn(e),n=_.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return C.error("Invalid URL provided to normalize"),e}},hm=function(e,t){return!me(e)||new RegExp(e).test(t)},fm=function(e,t){e=id(e);return!!e&&(!(t=Yg(_.first(e.steps),t||"api"))&&e.control&&C.info(hg),t)},gm=function(e,t){e=N(e);return!!e&&(!(t=Yg(_.first(e.steps),t||"api"))&&e.control&&C.info(hg),t)};function mm(e,t){return t=parseInt(t,10),isNaN(t)||!_.isNumber(t)||!(_.isNumber(e)&&e<t)&&_.isNumber(e)?e:t}var vm,ym=function(){lh(),ch(),P.removeNotificationBubble(),Ph(),cs()};function bm(){lh(),Mo(),E.segmentFlags=[],E.doNotProcess=!0,g.commit("debugger/doNotProcess",!0),C.info("not tracking visitor due to 451 response")}function wm(e){vm&&(451===e.statusCode&&(bm(),vm.deferred.reject(e)),_.isString(e.id)&&e.id!==vm.id||(_.extend(E,e),E.guides=_.map(E.guides,function(e){return 1==_.keys(e).length&&e.id?Vm.get(e.id):(Vm.add(e,b()),e)}),vm.deferred&&vm.deferred.resolve(),vm=null))}var Sm=function(o,a){var e,s=uo(),u=_.uniqueId(),d=m.defer();return vm={id:u,deferred:d},zl()||((e=jl())?(C.info("sending metadata: "+JSON.stringify(e),{contexts:["guides","metadata"]}),a.metadata=e):C.info("no metadata to send",{contexts:["guides","metadata"]})),Vm.list(a.visitorId).then(e=>{0<e.length&&(a.cachedGuides=e);var e=nt(a),t={id:u,jzb:e,v:Ke,ct:(new Date).getTime()},n=(s&&a.accountId&&"ACCOUNT-UNIQUE-ID"!==a.accountId&&(t.acc=ot(a.accountId)),kh()&&(t.debug=!0),Co(Em.endpoint(),o,t)),i=vs.get();let r;return r=2e3<n.length||!_.isEmpty(i)?(delete t.jzb,n=Co("guide.json",o,t),t=_.extend({events:e},i),Em.post(n,t,E,_.noop)):Em.load(n,E,_.noop),m.all([r["catch"](function(e){return 451===e.status&&bm(),m.reject(e)}),d.promise,(e=Em,i=o,"1"===(t=h.read(sg))?(C.info(ug),m.resolve({success:!1,cached:!0})):"0"===t?m.resolve({success:!0,cached:!0}):(t=Co("guide.gif",i,{jzb:"eJwFwIEIAAAAwDDQd3-N1QABFQC5",ct:v(),v:Ke}),(e.usesXhr()?Rr.get(t):Ao(t)).then(function(){return{success:!0}},function(e){return e&&e.status?{success:!0}:{success:!1}})))]).then(function([,,e]){var t;if((t=e).cached||(t.success?h.write(sg,"0"):(C.info(ug),h.write(sg,"1"))),!e.success)return m.reject()})})},Em=Ad;function Im(e){e=_.find(e.steps,e=>e.pageId&&!e.regexUrlRule);return!e||(C.critical("pendo.io guide validation exception",{guideId:e.guideId,stepId:e.id,error:new Error("missing regexUrlRule for page "+e.pageId+'"')}),!1)}function _m(n){return _.every(fg,e=>{try{return e(n)}catch(t){return console.debug("Error in guide processor",e,n.id),!1}})}function Cm(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&_.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}var xm,Tm=function(){return!f.get("disableGlobalCSS")};function km(e,t){var n=f.get("dropAnonymous");if(On(e)&&n)C.info("loading guides blocked for anonymous visitors due to dropAnonymous config setting being set to true"),_.isFunction(t)&&t("error: guides are blocked");else if("1"===h.read(sg))C.info("guide events are blocked, load guides cancelled"),_.isFunction(t)&&t("error: guides are blocked");else{if(is(rs()))return 1;C.info("bad url: probably local file system",{contexts:["guides","error"]}),_.isFunction(t)&&t("error: invalid url")}}var Am=function(e,a,s,u){var d=m.defer(),c=!1;if(e=e||E.apiKey,km(a=a||b(),u)){C.info("loading guides for "+s+"...",{context:["guides"]}),s=A.externalizeURL(s);var n,t,l=Am.lastVisitorId!==a?_.noop:(i=O,(t=_.find(i,function(e){return _.isFunction(e.isRendered)&&e.isRendered()&&!e.isTopLevel}))?(n=_.chain(t.steps).filter(function(e){return e.isRendered()}).indexBy("id").value(),function(e){e=_.findWhere(e,{id:t.id});e&&!_.get(e,"attributes.doNotResume")&&_.each(e.steps,function(e){var t=n[e.id];!t||e.seenState&&"active"!==e.seenState||e.show(t.seenReason)})}):function(){}),i=(Am.lastVisitorId=a,ch(),g.commit("guideState/setLastGuideRequestAt",v()),{visitorId:a,accountId:qn(),url:s,oldVisitorId:Gn=Gn===undefined&&Nn()?Vn(Tn):Gn});const p=_.uniqueId();Am.reqId=p,Sm(e,i).then(function(){if(!c&&!E.designer)if(Am.reqId!==p)d.resolve();else{y.deliverablesLoaded.trigger(),C.info("successfully loaded guides for "+s,{contexts:["guides"]}),E.designerEnabled&&"true"!==lg.getItem("pendo-designer-mode")&&Ff.loadPluginJs(),ym();var t=E.lastGuideStepSeen;if(t){g.dispatch("guideState/receiveLastGuideStepSeen",t),t.visitorId=a,g.dispatch("guideState/updateLastGuideStepSeen",t),g.commit("guideState/setLastGuideRequestAt",v()),Zu={};t=E.guides;var t=_.chain(t).map($d).filter(Im).filter(_m).sortBy(Cm).value(),n=(ed(t),od());g.dispatch("guideState/load",(r=$p,o=f.get("crossAppGuideStorageSuffix"),h.read(r,!1,o))),g.dispatch("guideState/apply"),E.latestDismissedAutoAt=mm(E.latestDismissedAutoAt,h.read("latestDismissedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestDismissedAutoAt",value:E.latestDismissedAutoAt}),E.finalAdvancedAutoAt=mm(E.finalAdvancedAutoAt,h.read("finalAdvancedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"finalAdvancedAutoAt",value:E.finalAdvancedAutoAt}),E.latestSnoozedAutoAt=mm(E.latestSnoozedAutoAt,h.read("latestSnoozedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestSnoozedAutoAt",value:E.latestSnoozedAutoAt}),g.dispatch("healthCheck/init",t),g.dispatch("frames/changeGuideList",n),E.eventProperties=Ym(E.features);let e=m.resolve();E.globalJsUrl&&(e=Wf(Xd(E.globalJsUrl))["catch"](function(e){C.error("Error loading global script: ",e)})),n.length?m.all([Fm(),e,jm(t),Vf.initializeWatermark(t),Nm(5e3)].concat((i=t,_.map(Rm,function(e){return e(i)})))).then(function(){Am.reqId===p&&(g.getters["frames/isLeader"]()&&l(O),y.guidesLoaded.trigger(),ph(),clearTimeout(xm)),_.isFunction(u)&&u(),d.resolve()},function(e){C.error("Post loadGuide request failed: ",e),y.guidesFailed.trigger(),d.reject()}):(y.guidesLoaded.trigger(),d.resolve())}else C.info("lastGuideStepSeen is not set, shutting down guides")}var i,r,o})["catch"](function(e){y.guidesFailed.trigger(),d.reject(e)});e=f.get("guideTimeout")||f.get("guides.timeout");_.isNumber(e)&&(clearTimeout(xm),xm=Ut(function(){var e;e=d,ym(),e.reject(),c=!0},e))}else d.reject();return d.promise};var Rm=[];function Om(e,t){var n,i=document.getElementById(e);return i&&i.href&&0<=i.href.indexOf(t)?m.resolve():(n=m.defer(),k(i).remove(),E.loadResource(t,function(){n.resolve()}).id=e,n.promise)}var Nm=_.memoize(function(t,n,e){if(!Tm()||!Mm(O))return m.resolve();n=n||v,e=e||"_pendo-hidden_";var i=k(document.createElement("div")).addClass(e).css({position:"absolute",bottom:"0px",right:"0px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(k.getBody()),r=n(),o=m.defer();return function s(e){Ut(function(){a(i[0])?(i.remove(),o.resolve()):n()-r>t?(i.remove(),o.reject("Unable to find global css after delay")):s(100)},e)}(0),o.promise;function a(e){e=R(e);if(e)return"none"===e.display}});function Mm(e,t){return t&&t.designer||_.any(e,function(e){return!cd(e)&&_.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl||e.domJson)})})}const Lm="_pendo-default-css_",Pm="_pendo-css_";function Fm(){var e=[];if(!Tm())return m.resolve();Mm(O,E)&&e.push(Om(Lm,gg()));var t=((E.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(Om(Pm,Xd(t))):k("#"+Pm).remove(),m.all(e)}var Dm,Um,Gm=function(e){Dm&&Dm.flush(e)},Bm=function(){return pg};function zm(e){var t=ks(Ws,Ms("visitor_id"),Ms("props.guide_id"),Ms("props.source"),qs,Vs(),$s(e),Zs,Xs,ou),n=ks(Rs,Os(e.cache),_.noop);return new cu(_.extend({processSilos:t,packageSilos:n},e))}var jm=function(e){return P.initializeResourceCenter(e)},D={postMessage:_.noop,close:_.noop};let Hm=D;function qm(e){return Dm=Dm||zm(_.extend({cache:pg,apiKey(){return E.apiKey},beacon:"guide",allowPost:!0,preferFetch:ze.safari},e)),Um=Um||zm(_.extend({cache:[],apiKey(){return E.apiKey},beacon:"poll",allowPost:!0,preferFetch:ze.safari},e)),ss(Dm),ss(Um),()=>{Dm.clear(),Um.clear(),us(Dm),us(Um)}}function Wm(e){var e=e["blockedURI"];e&&-1!==e.indexOf("/data/guide.json")&&f.get("cacheGuides")&&((e=f.getLocalConfig()).cacheGuides=!1,f.setLocalConfig(e),Tr(window,"securitypolicyviolation",Wm),av())}let Vm;var Jm=function(e){const t=[];t.push(qm({localStorageUnload:f.get("analytics.localStorageUnload")})),Vm=new cg(E.apiKey,f),Rh.run(),t.push(Rh.stop),y.appUnloaded.on(function(){g.dispatch("frames/leave")}),y.metadata.on(function(e){e=e.data[0].storeChanged;e&&!zl()&&ov()}),y.identify.on(function(){ov()}),y.urlChanged.on(function(){ov(A.get())}),y.guideUpdateComplete.on(function(){var e,t,n;e=_.filter(O,e=>_.isFunction(e.outsideTimebox)&&e.outsideTimebox()),td.addGuide(e),ec.processPrefetch(),e=O,t=$u,f.get("disablePrefetch")||(t=_.keys(t)).length&&(n=_.indexBy(e,"id"),_.each(t,function(e){var e=n[e];e&&(e=_.first(e.steps))&&_.isFunction(e.fetchContent)&&e.fetchContent(!0)}))}),y.guidesLoaded.on(function(){P.fetchAnnouncementGuidesContent(O,g)}),y.guideListChanged.on(function(e){e=e.data[0].guideIds;if(e&&e.length){const n=_.indexBy(e);_.each($u,function(e,t){n[t]||(e.hide(),delete $u[t])})}}),t.push(function(e,t,n){var{Turbolinks:i,Turbo:r}=window;let o;if(i&&(o=i.EVENTS&&i.EVENTS.LOAD),!(o=r&&r.visit?"turbo:load":o))return()=>{};const a=l(e,o,t),s=l(e,"turbo:before-cache",n);return()=>{a(),s()}}(document,function(){A.get()===rv.lastUrl&&av()},function(){ym()}));var n=f.get("guides.tooltip.arrowSize");if(_.isNumber(n)&&(E.TOOLTIP_ARROW_SIZE=n),Hm=ag(g),D=Kf(Hm,g),t.push(()=>D.close()),t.push(ln.tabIdChanged(function(){var e=ln.getTabId();g.commit("frames/setTabId",e),g.dispatch("frames/join")})),g.dispatch("frames/init"),g.dispatch("frames/join"),t.push(function(){const e=[];return g.dispatch("guideState/init"),e.push(l(window,"focus",Xp)),e.push(l(window,"storage",function(e){g.dispatch("guideState/storageChanged",e)})),()=>_.each(e,function(e){e()})}()),t.push(()=>{tv.cancel(),Uh.cancel()}),t.push(l(window,"resize",tv)),t.push(l(window,"scroll",Uh,!0)),t.push(l(window,"gestureend",nv,!0)),t.push(l(window,"securitypolicyviolation",Wm)),t.push(function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];const t=[];for(var n=0;n<e.length;n++)t.push(l(document,e[n],iv));return()=>{_.each(t,function(e){e()})}}()),e.observing){const i=_.debounce(function(){g.dispatch("guideUpdate/documentChanged")},50);t.push(()=>{i.cancel()}),t.push(p(window,"animationend",i)),t.push(p(window,"transitionend",i)),t.push(p(window,"mouseover",i)),g.commit("guideUpdate/setObserver",e),g.commit("guideUpdate/setUseObserver"),t.push(()=>g.dispatch("guideUpdate/stopObserver"))}return h.registry.addLocal(im.ADVANCED),h.registry.addLocal(im.DISMISSED),h.registry.addLocal(im.SNOOZED),h.registry.addLocal(sg,{duration:144e5}),ic.initialize(),()=>{Vm=null,rv.reset(),ym(),ov.reset(),Am.reqId=null,_.each(t,function(e){e()}),k("#"+Lm).remove(),k("#"+Pm).remove(),ic.teardown()}},Km=function(){return f.get("guides.disabled",!1)||f.get("disableGuides",!1)||!_o},$m=function(){return f.get("guides.delay",!1)||f.get("delayGuides",!1)},Zm=function(e){var t=f.getLocalConfig();t.disableGuides=e,f.setLocalConfig(t)},Xm=function(e){var t=f.getLocalConfig();t.delayGuides=e,f.setLocalConfig(t)},Ym=$n(function(e){if(e&&e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n].featureRule,r=_.map(e[n].eventProperties,function(e){return e.selector?e:JSON&&JSON.parse&&e.rule?JSON.parse(e.rule):void 0});t.push({featureRules:i,eventPropertyRules:r,featureId:e[n].featureId})}return t}}),Qm=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},ev=function(){C.debug("adjustActiveGuideOnResize firing");var e=uv();e&&e.step&&!E.ignoreResize&&e.step.redraw()};const tv=_.debounce(function(){var e;-1<_.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=Qm())||e.id.indexOf("pendo-video-")<0)&&Ut(function(){ev()},150):ev(),Uh()},50),nv=function(e){1!==e.scale&&tv()};var iv=function(e){var t=_.get(document,"activeElement.id",""),e=_.get(e,"target.id","");_.filter([t,e],e=>-1<e.indexOf("pendo-video-")).length&&(Qm()?E.ignoreResize=!0:Ut(function(){E.ignoreResize=!1},1e3))};function rv(e){var t,n,i,r,o=b(),a=qn();e=e||A.get(),n=o,i=a,r=gl,!(t=e)||!E.apiKey||Km()&&"true"!==lg.getItem("pendo-designer-mode")||t===rv.lastUrl&&n===rv.lastVisitorId&&i===rv.lastAccountId&&r===rv.lastMetadataHash||(rv.lastUrl=e,rv.lastVisitorId=o,rv.lastAccountId=a,rv.lastMetadataHash=gl,Am(E.apiKey,o,e)["catch"](_.noop))}rv.reset=function(){_.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){rv[e]=null})};var ov=function(e){_o&&(ov.reset(),ov.pending=Ut(function(){delete ov.pending,rv(e)},0))};function av(){rv.lastUrl=null,ov()}function sv(e){e=fg.indexOf(e);-1!==e&&fg.splice(e,1)}function uv(){var e,n,t=_.find(O,function(e){return e.isShown()});return!t||_.get(t,"attributes.resourceCenter.isModule")&&!(t=P.getResourceCenter())?null:(e=_.find(t.steps,function(e,t){return n=t,e.isShown()}),{guide:t,steps:_.filter(t.steps,function(e,t){return e.isShown()}),step:e,stepIndex:n})}function dv(e){var t,n=_.get(e,"value","");-1!==_.get(e,"parentElement.className","").indexOf("_pendo-nps-poll-"+n+"-wrapper")&&(e=k("._pendo-nps-open-text-poll-question"),t=k("._pendo-nps-open-text-poll-input")[0],_.forEach(e,function(e){"none"!==_.get(e,"style.display","none")&&t&&t.setAttribute("aria-labelledby",e.id)}))}ov.reset=function(){ov.pending&&clearTimeout(ov.pending)};var cv=function(){var o=this,a=(this.eventable=mn.call({}),this.eventable.on("pendoEvent",function(e){try{o.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";C.critical("Error in Action "+e,{error:t})}}),this.eventHandler=function(e){if(!e.ignore&&!E.designer){var t=e.step["guideElement"];switch(e.action){case a.advanceGuide:Ug(e,e.step);break;case a.previousStep:Gg(e,e.step);break;case a.goToStep:Dg(e);break;case a.submitPoll:this.submitPoll(e);break;case a.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;Fg(e,e.step,n);break;case a.dismissGuide:P.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return Pg();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return P.dismissResourceCenter(t);Pg(e,e.step)}(e);break;case a.showElements:this.setElementDisplay(e,"block"),e.srcElement&&dv(e.srcElement),dl((i=rc(e.step.domJson)).props.id,t),cl(i.props.id,t),M.flexAllThings(i.props.id,e.step),ul(i.props.id,t);break;case a.hideElements:this.setElementDisplay(e,"none"),dl((i=rc(e.step.domJson)).props.id,t),cl(i.props.id,t),M.flexAllThings(i.props.id,e.step),ul(i.props.id,t);break;case a.slideElement:this.setElementAnimation(e);break;case a.showGuide:n=_.find(e.params,function(e){return"reason"===e.name});gm(e.params[0].value,n&&n.value);break;case a.launchGuide:this.launchGuide(e);break;case a.renderResourceCenterModule:var i=s(e);P.replaceResourceCenterContent(e.params[0].value,i);break;case a.returnToResourceCenterHome:n=P.findResourceCenterHomeView(Yu());if(!n)return;P.attemptToPreserveIntegrationIframes(e),P.replaceResourceCenterContent(n.id,e.params);break;case a.openLink:this.openLink(e);break;case a.searchGuides:this.searchGuides(e);break;case a.submitPollAndGoToStep:this.submitPoll(e),Dg(e);break;case a.confirmation:this.confirmGuide(e);break;case a.conditionalSplit:this.handleConditionalSplit(e)}var r=cv.prototype.registeredActions,r=r&&r[e.action];"function"==typeof r&&r(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(_.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=_.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(_.compact(n)):C.info("[Agent] Error! Trying to submit a poll response but step does not have response function!");t!==a.submitPollAndGoToStep&&i.advance()},this.setElementDisplay=function(e,t){var n=e.step,e=k(_.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);_.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=k(_.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=_.find(e.params,function(e){return"transition"===e.name}).value,e=_.find(e.params,function(e){return"left"===e.name}).value;t.style.transition=n,t.style.left=e},this.openLink=function(e){var t=_.find(e.params,function(e){return"url"===e.name}).value,e=_.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&Va()&&(e="_top");window.open(t,e)},this.goToStep=Dg,this.searchGuides=function(t){var e="",n=t.srcElement.value,t=k("#pendo-resource-center-container"),i=t.find('[id^="pendo-list-item-"]'),r=t.find('[id^="pendo-results-count-container"]'),t=t.find('[id^="pendo-no-matches-container"]'),o=[],a=!0,s=0;if(i)for(var u in i){var d;u&&i[u]&&(d=!1,k(i[u]).text()&&(-1!==k(i[u]).text().toLowerCase().indexOf(n.toLowerCase())?(k(i[u]).css({display:"list-item"}),d=!(a=!1)):k(i[u]).css({display:"none"})),_.isFunction(i[u].getAttribute)&&(e=i[u].getAttribute("data-_pendo-text-list-item-1").split(","),_.forEach(e,function(e){_.contains(o,e)||o.push(e)})),this.searchAllTerms(o,e,n)&&i[u]&&(k(i[u]).css({display:"list-item"}),d=!(a=!1)),e="",d)&&s++}a?k(t[0]).css({display:"block"}):k(t[0]).css({display:"none"});if(r&&r.length&&(r[0].innerHTML="",n)){let e="";0===s?(e=t[0].innerText,this.debounceAnnounceResults(r[0],e)):(t=1===s?"data-pendo-aria-label-alert-singular":"data-pendo-aria-label-alert-plural",(e=r[0].getAttribute(t))&&(e=e.replace("{RESULT_COUNT}",s),this.debounceAnnounceResults(r[0],e)))}},this.searchAllTerms=function(t,e,n){return!!e&&e.some(function(e){return _.contains(t,e)&&e===n})},this.confirmGuide=function(e){var e=e.step,t=function(e){if(e.confirmationElementPathRule)return Er(e.confirmationElementPathRule)[0]}(e);e.advance(),t?t.click():C.critical("pendo.io confirmationElement exception",{stepId:e.id,confirmationElementPathRule:e.confirmationElementPathRule,error:new Error("confirmation action called but confirmationElement was not found")})},this.getTransitionParams=s,this.launchGuide=function(e){var t=!_.get(e,"params.2.value.doNotDismiss");t&&Pg(e,e.step);var t=e&&e.params&&e.params[0]&&e.params[0].value,n=e&&e.params&&e.params[1]&&e.params[1].value;{var i,r;t&&n?(n=N(e.params[0].value),i=e.params[1].value,r=(r=_.find(n.steps,function(e){return e.id===i}))||n.steps[0],Xg(n),r.show("api")):t&&gm(e.params[0].value)}},this.handleConditionalSplit=function(t){var n,e=_.find(t.params,function(e){return"conditionType"===e.name}),i=_.find(t.params,function(e){return"config"===e.name}),r=_.find(t.params,function(e){return"cases"===e.name});e&&i&&r&&(e=e.value,i=i.value,r=r.value,n=function(e,t){{if("elementExists"===e)try{var n=E.Sizzle(t.elementSelector);return n&&0<n.length}catch(i){}return!1}}(e,i),y.trigger("appUsage",{type:"conditionalSplitResult",elementId:t.srcElement.id,conditionResult:n}),e=_.find(r,function(e){return e.value===n}),0<(null==(i=null==e?void 0:e.actions)?void 0:i.length)?_.forEach(e.actions,function(e){e={action:e.action,params:e.parameters,step:t.step,srcElement:t.srcElement};o.eventHandler(e)}):C.warn("No matching case found for condition result:",n))},this.debounceAnnounceResults=_.debounce((e,t)=>{e.innerHTML=t},300),{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",confirmation:"confirmation",conditionalSplit:"conditionalSplit"});function s(e){return e.params.find(e=>"transitionDirection"===e.name)?[{name:"transitionCss",type:"string",value:"left 200ms"},{name:"transitionDirection",type:"string",value:"right"}]:[]}return this},lv=(cv.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&((cv.prototype.registeredActions=cv.prototype.registeredActions?cv.prototype.registeredActions:{})[e]=t)},function(){var d="guideActivity",c=function(){return(new Date).getTime()-yg},l=_.isObject,o=_.findWhere;const p=[];var h=[];return{type:d,handler(e){var t=e.data[0];if(t&&"conditionalSplitResult"===t.type){var n=t;const{conditionResult:a,elementId:s}=n,u=_.findIndex(h,e=>e.props.ui_element_id===s);-1!==u&&(n=h.splice(u,1)[0],(i=n.props.ui_element_actions[0]).condition_result=a,r=(r=i.cases)[a],n.props.ui_element_actions=n.props.ui_element_actions.concat(r),delete i.cases,dm(n))}else{var i,r=e.data[1];i=r,l(n=t)&&function(e){return e&&"click"===e.type}(i)&&function o(e){if(_.isString(e.id)&&0===e.id.indexOf("pendo-base"))return!0;if(l(e.parentElem))return o(e.parentElem);return!1}(n)&&(function(e){return f(e)}(n)||function(e){return m(e)}(n)||function(e){return g(e)}(n))&&(e=function(e){var t=function(e){for(var t of p){t=t(e);if(t)return t}return uv()}(e);if(!t)return;if(function(e){e=e.guide.activeModule;return e&&e.attributes&&e.attributes.resourceCenter&&"AnnouncementsModule"===e.attributes.resourceCenter.moduleId}(t)&&!(t=function(e){var t=k("#"+e).closest("[data-pendo-announcement-guide-id]").attr("data-pendo-announcement-guide-id"),e=_.find(Yu(),function(e){return e.id===t});return e?{guide:e,step:e.steps[0]}:undefined}(e.id)))return;if(!t.step||!t.step.domJson)return;var e=m(e)||f(e)||g(e)||{type:e.tag,id:e.id},n=function a(e,t){if(t.props&&t.props.id&&t.props.id===e)return t;if(t.children!==undefined)for(var n=0;n<t.children.length;n++){var i=a(e,t.children[n]);if(i!==undefined)return i}return undefined}(e.id,t.step.domJson);if(!n)return;let i=e.id;n=function(e,t){if(e!==undefined){if("a"===e.type)return[{action:"openLink",url:Zr(e.props.href),target:e.props.target}];if(e.actions!==undefined)return _.map(e.actions,v);if("pendo_task_list_item"===t.templateName&&_.isArray(e.templateChildren)&&e.templateChildren[t.templateChildIndex])return[{action:"showGuide",guideId:e.templateChildren[t.templateChildIndex].id}]}return[]}(n,e);var[r={}]=n,{action:r,guideId:o}=r;"showGuide"===r&&o&&(i+="-"+o);return am({type:d,visitorId:b(),ui_element_id:i,ui_element_type:e.type,ui_element_actions:n,guideId:t.guide.id,stepId:t.step.id,duration:c(),language:t.guide.language})}(t))&&("conditionalSplit"===_.get(e,["props","ui_element_actions",0,"action"])?h.push(e):dm(e))}},registerGuideResolver(e){p.push(e)},removeGuideResolver(e){e=p.indexOf(e);-1!==e&&p.splice(e,1)}};function f(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-button/.test(e.id))?{type:e.tag,id:e.id}:i(e)||!l(e.parentElem)?null:f(e.parentElem)}function g(e){var t,n;if("LI"===e.tag&&/pendo-task-list-item/.test(e.cls))return t=(n=e.id.split("-")).pop(),n=n.join("-"),{type:e.tag,id:n,templateName:"pendo_task_list_item",templateChildIndex:t};return i(e)||!l(e.parentElem)?null:g(e.parentElem)}function m(e){return"A"===e.tag?{type:e.tag,id:e.id}:i(e)||!l(e.parentElem)?null:m(e.parentElem)}function v(e){switch(e.action){case"automation":var t=o(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=o(e.parameters,{name:"url"}),n=o(e.parameters,{name:"target"});return{action:e.action,url:Zr(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=o(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=o(e.parameters,{name:"snooze_duration"}),t=o(e.parameters,{name:"time_unit"});return{action:e.action,duration:n.value,timeUnit:t.value};case"showGuide":case"launchGuide":n=e.parameters[0],t=e.parameters[1]||{};return{action:e.action,guideId:n.value,stepId:t.value};case"conditionalSplit":var n=o(e.parameters,{name:"name"}),t=o(e.parameters,{name:"conditionType"}),i=o(e.parameters,{name:"config"}),r=o(e.parameters,{name:"cases"}),r=_.reduce(r.value,function(e,t){return e[t.value]=_.map(t.actions,function(e){var t=v(e);return t.source=e.source,t}),e},{});return{action:e.action,name:n.value,condition_type:t.value,element_selector:i.value.elementSelector,feature_id:i.value.featureId,cases:r};case"advanceGuide":case"previousStep":case"submitPoll":case"dismissGuide":case"confirmation":return{action:e.action};default:return{}}}function i(e){return _.isString(e.id)&&0===e.id.indexOf("pendo-guide-container")}}()),pv=[],hv=!(cv.deregisterAction=function(e){e&&"string"==typeof e&&delete(cv.prototype.registeredActions=cv.prototype.registeredActions?cv.prototype.registeredActions:{})[e]});const fv={agent:{getJwtInfoCopy:vs.get,treatAsAdoptPartner:uo},agentStorage:h,analytics:{ptm:()=>Bs,collectEvent:xs},attachEvent:p,ConfigReader:f,Events:y,EventTracer:ln,EventRouter:cv,Extensions:{API:{addTopic:function(e,t){var n=Wl[e]||{};_.extend(n,t),Wl[e]=n}}},frames:{getChannel:()=>Hm},getAssetUrl:so,getEventable:()=>mn.call({}),GlobalRuntime:{addGlobalScript:ic.addGlobalScript,removeGlobalScript:ic.removeGlobalScript},GuideActivity:lv,GuideLoop:{addUpdatePhase:Ih,removeUpdatePhase:_h},guides:{addProcessor:function(e){return fg.push(e),_.partial(sv,e)},removeProcessor:sv,registerDisplayableGuides:function(e,t){_.isArray(t)&&(Zu[e]=t)},removeDisplayableGuides:function(e){delete Zu[e]}},hosts:{SERVER:We},NodeSerializer:Ou,q:m,sessionStorage:h.getSession(),sizeElements:al,store:g,Tombstone:td,transmit:{buildBaseDataUrl:Co,fetchKeepalive:Ro,sendBeacon:Oo},log:C,util:{trim:Qe,base64EncodeString:ot,parseUrl:_a,addInlineStyles:_.partial(sc,f),getNow:v},constants:{URL_MAX_LENGTH:2e3}};function gv(t){_.find(pv,function(e){return e.name===t.name})?C.warn(`Plugin with name ${t.name} already exists. Skipping registration.`):(pv.push(t),hv&&t.initialize(E,fv))}function mv(){_.each(pv,function(e){_.isFunction(e.teardown)&&e.teardown(E,fv)}),hv=!1}Zl.registerExtensionsByUse("plugin",function(e){return _.extend(e.uri,_.pick(e,"name")),gv(e.uri),e},function(e){return!!e.uri.initialize&&!!e.uri.teardown});var vv=!1;function yv(){if(!vv){const e=function(e){var t,n,e=e.data[0];n=(t=e).old_visitor_id,t=t.visitor_id,(On(n)?Rn(t)?On(t)?(C.info("Visitor is anonymous: "+t),1):Pn(t)?(C.info("Visitor id is the default: "+t),1):(C.info("Re-mapping visitor identity from "+n+" to "+t),0):(C.info("Not valid visitor id: "+t),1):(C.info("Visitor is already identified: "+n),1))&&(n=(t=e).old_account_id,t=t.account_id,Rn(t)?n===t||(C.info("Re-mapping account identity from "+n+" to "+t),0):(C.info("Not valid account id: "+t),1))||(xs("identify",e),cs())},t=function(e){var t;zl()||({options:e,hashChanged:t}=e.data[0],t&&(xs("meta",e),cs()))};return y.identify.on(e),y.metadata.on(t),y.identify.on(ql),vv=!0,function(){y.identify.off(e),y.metadata.off(t),y.identify.off(ql),vv=!1}}}bv="guideActivity",wv=function(){return(new Date).getTime()-yg},Sv=_.isObject;var bv,wv,Sv,Ev={type:bv,handler(e){var t,n=e.data[0],e=e.data[1];e=e,Sv(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(Sv(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return Cv(e)}(t)||function(e){return Iv(e)}(t)||function(e){return _v(e)}(t))&&(e=function(e){var t=P.getResourceCenter();if(t){var n=t.activeModule,i=Cv(e);if(i?(i={elementId:i.id},/^pendo-close-guide/.test(i.id)?i.actions=[{action:"dismissGuide"}]:/^pendo-left-caret/.test(i.id)&&(i.actions=[{action:"showGuide",guideId:t.id}])):i=Iv(e)||_v(e),i)return i.guideId||(i.guideId=(n||t).id),i.stepId||(i.stepId=(n||t).steps[0].id),i.actions||(i.actions=[{action:"showGuide",guideId:i.elementId}]),i.language||(i.language=(n||t).language),am({type:bv,visitorId:b(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,duration:wv(),language:i.language})}}(n))&&dm(e)}};function Iv(e){return-1!==e.cls.split(" ").indexOf("_pendo-resource-center-module-list-item")?{type:"BUTTON",elementId:k("#"+e.id).closest("[data-pendo-module-guide-id]").attr("data-pendo-module-guide-id")}:"pendo-resource-center-container"!==e.id&&Sv(e.parentElem)?Iv(e.parentElem):null}function _v(e){var t=e.cls.split(" ");if(-1===t.indexOf("_pendo-resource-center-guidelist-module-listed-guide")&&-1===t.indexOf("_pendo-resource-center-onboarding-module-listed-guide"))return"pendo-resource-center-container"!==e.id&&Sv(e.parentElem)?_v(e.parentElem):null;t=P.getResourceCenter();if(t){e=e.id.split("-").pop(),t=t.activeModule;if(t&&t.attributes&&t.attributes.resourceCenter)return{type:"BUTTON",elementId:t.attributes.resourceCenter.children[e]}}return null}function Cv(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-left-caret/.test(e.id))?{type:e.tag,id:e.id}:"pendo-guide-container"!==e.id&&Sv(e.parentElem)?Cv(e.parentElem):null}const xv=e=>(e=e||E).doesExist(e.apiKey);class Tv extends wt{constructor(){super(),this.cache=new Set,this.foundShadowRoots=!1,this.stoppedSearchEarly=!1}updateCache(){this.cache.forEach(e=>{Yo(e)||(this.cache["delete"](e),this.dispatchEvent({type:"detachShadow",shadowRoot:e}))})}patchAttachShadow(e){const t=e.prototype.attachShadow,n=this;return e.prototype.attachShadow=function(e){e=t.call(this,e);return this.shadowRoot&&n.triggerAttachShadow(this.shadowRoot),e},e.prototype.attachShadow.toString=function(){return t.toString()},()=>{e.prototype.attachShadow=t}}initialize(){this.unpatchAttachShadow=this.patchAttachShadow(Element),this.findShadowRoots(document,5e3,e=>this.triggerAttachShadow(e))}triggerAttachShadow(e){this.cache.add(e),this.dispatchEvent({type:"attachShadow",shadowRoot:e})}findShadowRoots(r,o=5e3,a){if(_.isFunction(r.createNodeIterator)){let t=0,n=[Zo(r)],i;function s(e){do{if(!(e=e||r.createNodeIterator(n.pop(),NodeFilter.SHOW_ELEMENT))||!e.nextNode)break;for(;(i=e.nextNode())&&(t++,i&&i.shadowRoot&&(a(i.shadowRoot),n.push(i.shadowRoot),this.foundShadowRoots=!0),t%o!=0););}while(!i&&(e=null,n.length));i&&this.foundShadowRoots&&(this.findTimeout=Ut(()=>{this.findTimeout=null,s.call(this,e)},50)),t!==o||this.foundShadowRoots||(this.stoppedSearchEarly=!0)}s.call(this)}}teardown(){this.cache.clear(),_.isFunction(this.unpatchAttachShadow)&&(this.unpatchAttachShadow(),this.unpatchAttachShadow=null),this.findTimeout&&(clearTimeout(this.findTimeout),this.findTimeout=null)}}class kv extends wt{constructor(e=lt("MutationObserver")){super(),this.ObserverClass=e,this.observing=!1,this.observers=new Map,this.triggerMutation=this.dispatchMutationEvent,this.shadowDom=new Tv,this.shadowDom.addEventListener("attachShadow",_.bind(this.handleAttachShadow,this)),this.shadowDom.addEventListener("detachShadow",_.bind(this.handleDetachShadow,this)),this.addEventListener("mutation",()=>{null!=this.timeout&&clearTimeout(this.timeout),this.timeout=Ut(()=>{this.shadowDom.updateCache(),this.timeout=null},0)})}initialize(e,t){t=t.ConfigReader;t.get("preferMutationObserver")&&e.sniffer.MutationObserver&&(this.observeShadowRoots=t.get("observeShadowRoots"),this.startObserver(document.documentElement),this.observing=!0,this.observeShadowRoots)&&this.shadowDom.initialize()}startObserver(e){var t=new this.ObserverClass(e=>this.triggerMutation(e));this.observers.set(e,t),t.observe(e,{subtree:!0,attributes:!0,childList:!0,characterData:!0})}teardown(){this.observers.clear(),this.shadowDom.teardown(),null!=this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispatchMutationEvent(e){this.dispatchEvent({type:"mutation",mutation:e})}triggerMutationOnce(e){this.triggerMutation=_.noop,queueMicrotask(()=>{this.dispatchMutationEvent(e),this.triggerMutation=this.triggerMutationOnce})}handleAttachShadow({shadowRoot:e}){this.triggerMutation=this.triggerMutationOnce,this.startObserver(e)}handleDetachShadow({shadowRoot:e}){this.observers["delete"](e)}}var Av=new kv;let Rv=0;const Ov="initializeImmediately",Nv=[],Mv=$n(function(e){if("complete"===document.readyState||_.get(e,Ov)||f.get(Ov))if(C.info("pendo.initialize called with "+JSON.stringify(e)),E.apiKey)1==Rv++&&C.info(["pendo.initialize only needs to be called once",ct()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join(""));else{if(e=e||{},_.isEmpty(vs.get())&&(o=vs.getJwtOptions(e,"initialize"))&&(vs.set(_.pick(e,"jwt","signingKeyName")),_.extend(e,o,{forceAnonymous:!0})),_.isString(e))return Rr.get(e).then(e=>(le(u=e.data),Mv()));try{g.dispatch("location/init",e.location||{})}catch(a){C.critical("Location API Exception",a)}f.setLocalConfig(e),oo(),E.HOST=eo;var t,n,i,r,o=f.get("cookieDomain");if(o&&(o=o,i=location.host,o?_.isString(o)&&(i=i.replace(/:\d+$/,""),o=o.replace(/^\./,""),t=new RegExp("\\."+It(o)+"$"),n=new RegExp("^"+It(o)+"$"),t.test(i)||n.test(i))&&(Ot="."+o):Ot=o),hf.discoverKeys(e),hf.getApiKey()){g.commit("metadata/setMetadata",{selfHosted:Bl()}),e.logStackTraces&&(E.logStackTraces=e.logStackTraces),f.get("preferBroadcastChannel")&&rg.secure(!0);const s=f.get("analytics.localStorageUnload");Ss.read(h),Nv.push((t={localStorageUnload:s},Us=os.events=Za,Gs=os.trackEvents=Xa,Hs=os.agenticEvents=Ya,Bs=lu(_.extend({cache:Us,silos:os.silos,apiKey:xo,beacon:"ptm",allowPost:!0},t)),zs=lu(_.extend({cache:Gs,silos:os.trackEventSilos,apiKey:xo,beacon:"ptm",allowPost:!0,params:{type:"track"}},t)),js=lu(_.extend({cache:Hs,silos:os.agenticEventSilos,apiKey:xo,beacon:"agentic","class":"agentic",allowPost:!0},t)),ss(Bs),ss(zs),ss(js),()=>{hs(),us(Bs),us(zs),us(js),Bs=zs=js=undefined})),Av.initialize(E,fv),Nv.push(()=>Av.teardown()),_o&&(h.registry.addLocal(xn),h.registry.addLocal(Tn),h.registry.addLocal(kn),h.registry.addLocal(Ll),E.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,Nv.push(xd(y)),[{events:i=[]}]=[e],_.each(i,(e,t)=>{kd[t]&&kd[t](e)}),Nv.push(Jm(Av)),Nv.push(yv()),Nv.push(zu()),Nv.push((_.each(pv,function(e){e.initialize(E,fv)}),hv=!0,mv)),Nv.push((n=e,h.registry.addLocal(Bh),h.registry.addLocal(zh),_.find([_.partial(yf.launchOnToken,window.location),_.partial(jh,window),_.partial(yf.localStorageNavigation,n)],e=>e()),n.enableDesignerKeyboardShortcut||!f.get("disableDesignerKeyboardShortcut")?Ff.listen():()=>{})),y.appUsage.on(lv.handler),y.appUsage.on(Ev.handler),Nv.push(ls(Qa)),Nv.push(Is.initialize())),y.appHidden.on(()=>{ds(0,{hidden:!0})}),y.appUnloaded.on(()=>{ds(0,{unload:!0}),s&&Ss.write(h)}),Nn()||Mn(),E.updateOptions(e),e.visitorId&&e.visitorId!=Ln&&E.identify(e.visitorId),Nv.push(A.watch(function(){E.pageLoad()})),_o&&y.ready.trigger(),pu(A.get()),Rv++,window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&((r=rg.targetOrigin())?window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},r):C.warn("Unable to announce frame to designer plugin, targetOrigin is not set. Check if broadcastChannel is enabled and cross origin frames are allowed.")),Fv()}else C.debug("API key is not set, Pendo will not initialize.")}else ae(E,"initialize",arguments)});function Lv(e){return!_.isArray(e)||_.isEmpty(e)}function Pv(e){if(!Lv(e))return _.find(e,e=>"initialize"===e[0])}function Fv(i){var e;return!Lv((i=i||E)._q)&&(e=!!Pv(i._q),xv(i)||e)?(e=i._q.splice(0,i._q.length),_.reduce(e,(e,t)=>{if(!_.isArray(t))return e;const n=i[t.shift()];return _.isFunction(n)?e.then(()=>n.apply(i,t)):e},m.resolve()).then(Fv)):m.resolve()}function Dv(){xv()?C.info("already running"):(window.pendo_options&&Mv(window.pendo_options),Fv())}function Uv(){y.appHidden.trigger(),y.appUnloaded.trigger(),_.each(Nv,function(e){e()}),pu.reset(),Nv.length=0,rg.close(),mn.clear(y),mn.clear(kd),delete E.apiKey,Rv=0}var Gv,Bv,zv={getActiveGuide:uv,smartNextStep:function(e){var t,n=uv();n&&(t=n.guide.steps[n.stepIndex+1],Ut(function(){var e=Er(t.elementPathRule);0!==e.length&&_.some(e,pa)?Ug(n.step):Ug(t)},e=e||0))},smartFirstStep:function(){k("._pendo-guide_").css("display:none;");var t=lm(),e=uv().guide.steps,n=_.filter(_.rest(e),function(e){return!!e.pageId}),n=_.indexOf(e,_.find(n,function(e){return hm(e.regexUrlRule,t)}));C.info("startingPoint is "+n),-1==n?k("._pendo-guide_").css("display:block;"):(n=e[Math.max(0,n-1)],C.info("found starting step to be "+n.id),Ug(n))},advanceOn:function(e,t){var n=uv(),i=k(t=t||n.step.elementPathRule)[0],r=function(){Ug(),Wu(i,e,r,!0)};p(i,e,r,!0)},renderStepPosition:function(e,t,n){if(t)n||(i=[].concat(t.steps).reverse(),n=_.findWhere(i,{seenState:"active"}));else{var i=uv();if(!i)return;t=i.guide,n=i.step}return(e=_.template(e=e||"Step <%= currPos %> of <%= total %>"))({currPos:t.getPositionOfStep(n),total:t.getTotalSteps()})}},U={renderGuideFromJSON:function(e,n,t,i){i=i||{};var r=n.getGuide(),o=rc(e),a=_.get(r,"attributes.resourceCenter");a&&(P.revertRtlChanges(r,e.props),e=P.updatePseudoStyleSelectors(e));var s=a&&P.isFullyCustom(r),u="AnnouncementsModule"===_.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.containerId=o&&o.props&&o.props.id,n.element=gd(n,i.document),U.buildNodeFromJSON(e,n,t)),t=(n.guideElement=o).find("#"+n.containerId),d="data-vertical-alignment",c="Relative to Element"===t.attr(d);c&&!a&&k(n.guideElement).css({overflow:"hidden",height:"0",width:"0"});t.css({visibility:"hidden"}),o.css({visibility:"hidden"});var l=_.get(r,"attributes.embedConfig",null);d=Vf.buildWatermark({appId:r.appId,targetAccount:r.targetAccount,isTraining:r.isTraining,isBottomAligned:"Bottom Aligned"===t.attr(d),isEmbedded:!!l},U.buildNodeFromJSON);d&&t.append(d);d=n&&n.attributes&&n.attributes.imgCount,i=hd(i.document);{var p,h;l?(f=o[0],p=f.querySelector("#"+(h="pendo-guide-container")),{selector:p,method:h}=(p&&(p.id=h+"-"+n.id,f.id="pendo-base-"+n.id),l),i=k(p)[0],"replace"===h&&i?(i.innerHTML="",o.appendTo(i)):"prepend"===h?o.prependTo(i):o.appendTo(i)):o.appendTo(i)}(function(e,t,n){t=k.getRootNode(t),e=k.getRootNode(e);var i;e!==t&&(e!==document?e.hasOwnProperty("wrappedJSObject")?(i=e.wrappedJSObject.adoptedStyleSheets,t.wrappedJSObject.adoptedStyleSheets.push(...i)):(i=e.adoptedStyleSheets,t.adoptedStyleSheets.push(...i)):(n=k(".pendo-style-"+n,e)).length&&(n.remove(),n.appendTo(t)))})(hd(),o[0],n.id),al(o),c&&Uc.patchGuideContainerWidthForResponsiveTooltips(n,t[0],e);s||u||(U.recalculateGuideWidth(n.containerId,n.guideElement),U.adjustGuideContentWidth(n.containerId,n.guideElement));d||a||U.flexAllThings(n.containerId,n);s||U.recalculateGuideHeight(n.containerId,n.guideElement);c?n.attributes.calculatedType="tooltip":Uc.attachBBAdvanceActions(n);c&&!d&&Uc.positionStepForTooltip(n,e,t[0]);{var f;a&&(P.showHomeViewOrEmptyState(r),f=[],u?f=[r.attributes.resourceCenter]:U.flexAllThings(n.containerId,n),f.length)&&_.forEach(f,function(e){e=_.get(e,"children",[]);_.forEach(e,function(e){var t;e&&(t=e.steps[0],_.isUndefined(t.attributes.imgCount))&&(t=_.get(t,"id",n.id),e=_.get(e,"id",r.id),t=k("#pendo-g-"+t).length?t:e,U.flexAllThings("pendo-g-"+t,n))})})}{var g;d?(g=m.defer(),o.rendered=g.promise,t.on("imagesLoaded",function(){g.resolve()})):(t.css({visibility:"visible"}),o.rendered=m.resolve())}o.css({visibility:"visible"}),n.elements.push(n.guideElement[0]),E.designer||(_.get(n,"attributes.isAutoFocus")&&(U.autofocusStep(n,t),U.trapFocusStep(n,t),n.hiddenElements=U.addAriaHiddenOutsideGuide(o[0])),a&&(U.attachRCFocusHandlers(),r.skipResourceCenterHomeView?(l=r.activeModule.steps[0],U.autofocusStep(l,l.guideElement)):U.autofocusStep(n,t)));return k(".pendo-video-wrapper",o).each(function(t){k("iframe",t).each(function(e){t.setAttribute("data-pendo-video-loading",""),U.addVideoLoadListener(t,e)})}),o},autofocusStep:function(e,o){var t="autofocus for guide id: "+e.getGuide().id+" step id: "+e.id+" ",n=function(e){var t,n;return!!e&&(t=Io(t=e),n=qo(),_.extend(n,{top:0,left:0,bottom:n.height,right:n.width}),ea(n,t)||fa(e),e.focus(),e===k.getRootNode(e).activeElement)},i={maxRetries:100,delay:50,exponentialBackoff:!1};ft(function(){var e,t,n,i,r=k(o).find("#pendo-guide-container");return(r=r[0]||r)&&pa(r)&&(e=r,t=_.contains(["A","INPUT","LABEL","SELECT","TEXTAREA","BUTTON","FIELDSET","LEGEND","DATALIST","OUTPUT","OPTION","OPTGROUP"],e.nodeName),n=!!e.tabIndex,i=!e.hidden,e=!e.disabled,t||n)&&i&&e?r:null},i,function(e){ft(function(){return n(e)},i,function(){},function(){C.warn(t+"#pendo-guide-container is available on page but could not capture focus")})},function(){C.warn(t+"#pendo-guide-container did not render or become visible in time to focus")})},trapFocusStep:function(e,t){!function(e){var o,a,s,t,u,d,n,c=e[0];c&&(t=["a[href]:not([disabled])","button:not([disabled])","textarea:not([disabled])",'input[type="text"]:not([disabled])','input[type="radio"]:not([disabled])','input[type="checkbox"]:not([disabled])',"select:not([disabled])","[tabindex]","iframe"].join(", "),(o=_.toArray(e.find(t))).length)&&(a=o[0],s=o[o.length-1],t=Wv(e),u=t[0],d=t[1],n=function(e){var t,n,i=jv(e),r=e.shiftKey;i&&(t=(i=k.getRootNode(c).activeElement)===c,n=document.activeElement===document.body,r?(i===u||t||n)&&(qv(o,s).focus(),e.preventDefault()):(t||i===d||n)&&(qv(o,a).focus(),e.preventDefault()))},p(document,"keyup",n),p(document,"keydown",n),y.one("unmounted",()=>{Wu(document,"keyup",n),Wu(document,"keydown",n)}))}(t.find("#pendo-guide-container"))},attachRCFocusHandlers:function(){const s=P.getResourceCenter(),u=P.getResourceCenterContainer();if("dom"===s.launchMethod&&u){let e=k(s.attributes.activation.selector)[0];if(e){const[d,c]=Wv(k(u));var t=function(e){var t=jv(e),n=e.shiftKey;if(t){var t=k.getRootNode(u).activeElement,i=k(s.attributes.activation.selector)[0];if(i){var r=t===d,t=t===c;const a=k(da);function o(t){return Object.values(a).findIndex(e=>e===t)}n?r?(i.focus(),e.preventDefault()):t&&Hv(0===(n=o(d))?a.length-1:n-1,a,e):t?Hv(o(i)+1,a,e):r&&Hv((n=o(c))>=a.length-1?0:n+1,a,e)}}},n=function(e){var t=jv(e),n=e.shiftKey;t&&!n&&Hv(0,k('[id^="pendo-g-"]').find(da),e)},i=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=d&&t&&Hv((n=k('[id^="pendo-g-"]').find(da)).length-1,n,e)};p(document,"keyup",t),p(document,"keydown",t),p(e,"keydown",n),p(e,"focus",i),y.one("unmounted",()=>{Wu(document,"keyup",t),Wu(document,"keydown",t),Wu(e,"keydown",n),Wu(e,"focus",i)})}}},addAriaHiddenOutsideGuide:function aS(e,n=[]){if(!e||e===Zo())return n;const t=Xo(e);_.each(t,e=>{if(-1===n.indexOf(e)&&"true"!==e.getAttribute("aria-hidden")){const t=e.tagName.toLowerCase();"script"!==t&&"style"!==t&&(e.setAttribute("aria-hidden","true"),n.push(e))}});e.parentNode&&aS(e.parentNode,n);return n},renderResourceCenterModule:P.renderResourceCenterModule,buildNodeFromJSON:Tl,attachImgLoadHandlers:kl,recalculateGuideHeightOnImgLoad:Al,buildStyleString:function(e){var n="";return _.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:Ol,bindActionToNode:Rl,recalculateGuideHeight:ul,recalculateGuideWidth:dl,adjustGuideContentWidth:cl,findDomBlockInDomJson:oc,isElementHiddenInGuide:M.isElementHiddenInGuide,positionStepForTooltip:Uc.positionStepForTooltip,flexAllThings:M.flexAllThings,flexElement:M.flexElement,findTopLevelContainer:function(t){for(var e=["pendo-base","pendo-resource-center-container"],n=0;n<20;n++){if(_.find(e,function(e){return t.id===e}))return t;if(t===document.body)return document.body;t.parentNode&&(t=t.parentNode)}return document.body},updateBackdrop:Ac,buildNodesFromJSON:_l,findGuideContainerJSON:rc,maintainAspectRatios:M.maintainAspectRatios,sizeElement:sl,sizeElements:al,getAllowedAttributes:xl,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:Uc.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:dv,addVideoLoadListener:function(e,t){p(t,"load",function(){e.removeAttribute("data-pendo-video-loading")})}};function jv(e){return"Tab"===e.key||9===e.keyCode}function Hv(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function qv(e,t){let n;if("radio"===t.getAttribute("type")){const i=t.getAttribute("data-pendo-poll-id");n=_.find(e,function(e){var t=e.getAttribute("data-pendo-poll-id");return i===t&&e.checked})}return n||t}function Wv(e){var t={margin:0,padding:0,outline:"none",border:"none","box-shadow":"none",shadow:"none"},t={type:"style",props:{type:"text/css",scoped:"scoped",id:"pendo-focus-bumper-styles"+Date.now()},css:[{selector:".pendo-start-focus-bumper",styles:_.extend({},t,{tabIndex:0})},{selector:".pendo-start-focus-bumper:hover",styles:t},{selector:".pendo-start-focus-bumper:focus",styles:t},{selector:".pendo-end-focus-bumper",styles:_.extend({},t,{tabIndex:0})},{selector:".pendo-end-focus-bumper:hover",styles:t},{selector:".pendo-end-focus-bumper:focus",styles:t}]},t=U.buildNodeFromJSON(t),t=(e.prepend(t),document.createElement("div")),n=(t.setAttribute("id","pendo-start-focus-bumper-"+Date.now()),t.setAttribute("class","pendo-start-focus-bumper"),t.setAttribute("tabIndex",0),e.prepend(t),document.createElement("div"));return n.setAttribute("id","pendo-end-focus-bumper-"+Date.now()),n.setAttribute("class","pendo-end-focus-bumper"),n.setAttribute("tabIndex",0),e.append(n),[t,n]}var Vv=100,Jv=[],Kv=[];const $v="log-enabled",Zv="active-contexts";var Xv=function(){return ey()?Bv?"logging already enabled":(h.write($v,"true"),Bv=!0,"logging enabled"):"logging unavailable"},Yv=function(){return Bv?(h.write($v,"false"),Bv=!1,"logging disabled"):"logging already disabled"};var Qv=function(e,t){return _.compact([].concat(e,t))},ey=function(e){return e=e||"log","undefined"!=typeof console&&_.isFunction(console[e])},ty=function(e){return e=Qv(e),0<Gv.length?0<_.intersection(Gv,e).length:!!Bv||!!kh()},ny=function(e,...t){C.info(e,{contexts:t})};function iy(e){var t;e.level!==vt.Debug&&e.level!==vt.Info||(t=e.attributes?Qv(e.attributes.contexts):[],ey()&&ty(t)&&dy(e.message),oy(Jv,e.message,t))}function ry(...e){ey("error")&&console.error.apply(console,e),oy(Kv,e.join(" "))}var oy=function(e,t,n){_.contains(n,"debug")||(e.length==Vv&&e.shift(),e.push([t,n]))},ay=function(t){t=Qv(t),_.each(_.map(_.filter(Jv,function(e){return 0===t.length||0<_.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){dy(e,"[Pendo-History] ")})},sy=function(){return _.union.apply(_,_.map(Jv,function(e){return e[1]}))},uy=function(e){Gv=Qv(e),h.write(Zv,Gv.join(","))},dy=function(e,t){var n;ey()&&(t=t||"[Agent] ",e&&e.length?((n=1e3<e.length?e.length-1e3:0)&&(t+="..."),console.log(t+e.substring(n))):console.log(t+e))};function cy({type:t,name:n,props:i}){if(n&&_.isString(n))if(t&&_.isString(t)){let e=i;_.isObject(i)||(e={__err__:i});i=A.get();xs(t,e,i,n)}else C.error("Must provide valid type string for event tracking");else C.error("Must provide valid name string for event tracking")}function ly(e,t){cy({type:"track",name:e,props:t})}function py(e,t){cy({type:e,name:"agentic",props:t})}ny.init=function(){var e,t;e=h.read(Zv,!0),Gv=e?e.split(","):[],e=qe,t=h.read($v,!0),Bv=null!==t?"true"==t:!_.contains(["prod","prod-eu","prod-us1","prod-jp","prod-hsbc","prod-au","prod-gov","rc"],e),C.addEventListener("log",iy),h.registry.addLocal($v,{isPlain:!0}),h.registry.addLocal(Zv,{isPlain:!0})},ny.enableLogging=Xv,ny.disableLogging=Yv,ny.getActiveContexts=function(){return Gv},ny.setActiveContexts=uy,ny.showLogHistory=ay,ny.getLoggedContexts=sy;var hy=function hy(r){var o=[];function a(e,t,n,i){r?o.push({type:n,message:t,value:i}):me(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"),E.apiKey||a("error","No Pendo API key configured. Make sure to call pendo.initialize() with a valid Pendo API key.","apiKey");var e=b(),e=(On(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"),Pn(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),qn()),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"),f.get("disableCookies")&&a("warn","Cookies are disabled in Pendo config. Is this expected?","disableCookies"),jl());if(_.each(["visitor","account","parentAccount"],function(n){var i=t&&t[n],e=_.chain(i).keys().value();0<e.length?(r||console.group(n+" metadata (does this look right?):"),0<(e=_.chain(e).map(function(e){return e.toLowerCase()}).countBy().pick(function(e){return 1<e}).keys().value()).length&&_.each(e,function(e){a("warn","Keys will be lowercased and any duplicates overwritten. Please choose unique key names for:",n+"MetadataConflict",e)}),_.each(_.keys(i),function(e){var t=i[e];_.isObject(t)&&!_.isArray(t)?a("warn",e+" is an object and will be ignored.",n+"Metadata",t):_.isArray(t)&&_.any(t,_.isObject)?a("warn",e+" contains object values. The objects will be ignored.",n+"Metadata",t):a("log",e+":",n+"Metadata",t)}),r||console.groupEnd()):"parentAccount"!==n&&a("warn","No "+n+" metadata found. Learn more about metadata here: http://help.pendo.io/resources/support-library/installation/metadata.html",n+"MetaData")}),r)return o;console.groupEnd()},fy=function(n){var e=[{nativeType:Object.prototype,displayName:"Object | Prototype "},{nativeType:Object,displayName:"Object ",propsToCheck:["create","getOwnPropertyNames"]},{nativeType:Number.prototype,displayName:"Number | Prototype"},{nativeType:String.prototype,displayName:"String | Prototype"},{nativeType:Function.prototype,displayName:"Function | Prototype"},{nativeType:Boolean.prototype,displayName:"Boolean | Prototype"},{nativeType:Array.prototype,displayName:"Array | Prototype"},{nativeType:Date.prototype,displayName:"Date | Prototype"},{nativeType:RegExp.prototype,displayName:"RegExp | Prototype"},{nativeType:JSON,displayName:"JSON ",propsToCheck:["parse","stringify"]},{nativeType:Math,displayName:"Math "},{nativeType:Qt.prototype,displayName:"Promise | Prototype"},{nativeType:window,displayName:"Window ",propsToCheck:["alert","asap","atob","btoa","cancelAnimationFrame","clearImmediate","clearInterval","clearTimeout","close","confirm","getComputedStyle","getSelection","open","postMessage","prompt","requestAnimationFrame","scroll","scrollBy","scrollTo","setImmediate","setInterval","setTimeout","stop","XMLHttpRequest","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent"]}],r=!1,i=(_.each(e,function(e){var n=e.nativeType,i=[],t=e.propsToCheck||Object.getOwnPropertyNames(n);_.each(t,function(e){try{e&&n[e]&&"function"==typeof n[e]&&(n[e].toString().includes("[native code]")||i.push(e))}catch(t){}}),i.length&&(e.nonNativeImplementations=i,r=!0)}),{hasNonNativeMethods:r,implementations:[]});return n||console.group("Native javascript method check:"),r?(n||console.warn("Pendo has detected that your application may be changing native javascript functionality. We suggest consulting an engineer or your CSM to better understand if these changes will negatively impact Pendo's ability to function properly"),_.each(e,function(e){var t;e.nonNativeImplementations&&(t=e.displayName.trim(),n?i.implementations.push({nativeType:t,nonNativeImplementations:e.nonNativeImplementations}):console.warn(t+" | Contains the following non-native implementations:",e.nonNativeImplementations.sort().join(", ")))}),n?i:void console.groupEnd()):n?i:(console.log("Environment uses native javascript implementations"),console.groupEnd())},gy=function(e){var t=[];if(_.isNumber(window.frames.length)&&_.isFinite(window.frames.length)&&k("iframe").length+k("frame").length===window.frames.length||t.push("Pendo has detected that window.frames.length has been modified"),window.Event&&window.Event.prototype||t.push("Pendo has detected that window.Event has been modified"),t.length){if(e)return t;console.group("Global variables:"),_.each(t,function(e){console.warn(e)}),console.groupEnd()}},my=function(e){var t,n=window.location.href,i=[];try{(t=Gr())!==n&&i.push({type:"customizedUrl",msg:"URL has been customized. This will affect data collection, guide requests, and reload tests.",value:t})}catch(o){i.push({method:"error",msg:"Error getting Custom URL",value:o})}try{var r=A.externalizeURL();r!==t&&i.push({type:"sanitizedUrl",msg:"URL has been sanitized. This will affect sending data and guides requests.",value:r})}catch(o){i.push({method:"error",msg:"Error getting Externalized URL",value:o})}if(e)return i;console.group("URL Validation"),console.log("Browser URL:",n),_.each(i,function(e){e.method?console[e.method](e.msg+"\n"+e.value):console.warn(e.msg+"\n"+e.value)}),console.groupEnd()};const vy=e=>{if(0<Kv.length){var t=[].concat(Kv);if(e)return t;console.group("Agent Error History"),_.each(t,(e,t)=>{console.log("Error History ",t,e)}),console.groupEnd()}},yy=e=>{t=e;var t,n=_.map(pv,function(e){return e.validate&&!t&&e.validate(E,fv),e.name});if(e)return n;console.group("Active Plugins"),_.each(n,e=>console.log(e)),console.groupEnd()};var by=function(e){var t={install:hy(e),plugins:yy(e),globals:gy(e),url:my(e),errors:vy(e)};if(e)return t.methods=fy(e),t;f.validate(console)},wy={BuildingBlockGuides:U,BuildingBlockResourceCenter:P,BuildingBlockTemplates:uc,BuildingBlockTooltips:Uc,BuildingBlockSvgs:hc};function Sy(e,t){this.state={duration:e,isStopped:!0,handle:null,cb:t,hasRun:!1,errors:[],options:{}},this.shouldJobRun=function(){return!(!this.state.hasRun&&this.state.options.skipFirstRun||this.state.isStopped)},this.doJob=function(e){if(e)try{this.state.cb(this)}catch(t){this.state.errors.push(t)}},this.afterJobRun=function(){this.state.hasRun=!0,this.state.handle=Ut(this.run,this.state.duration)},this.run=_.compose(_.bind(this.afterJobRun,this),_.bind(this.doJob,this),_.bind(this.shouldJobRun,this))}Sy.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},Sy.prototype.stop=function(){clearTimeout(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var Ey=Rr.urlFor,Iy={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace","Clear","AddTo"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};const _y=["location","attribute","both"],Cy="location";function xy(e,t,n,i){var r;if(_.isObject(e)&&(t=e.action,n=e.data,i=(e=e.attr).target),!Iy[e])throw r=_.keys(Iy).join(", "),new Error('Invalid URL attribute type: "'+e+'". Valid attributes are: '+r+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!_.contains(Iy[e],t))throw r=Iy[e].join(", "),new Error('Invalid transform action: "'+t+'" for attribute "'+e+'". Valid actions for "'+e+'" are: '+r+'. Example: {attr: "'+e+'", action: "'+Iy[e][0]+'", data: ...}');_y.indexOf(i)<0&&(i=Cy),this.attr=e,this.action=t,this.data=n,this.target=i||Cy}function Ty(e){return e instanceof Zn||e instanceof HTMLAnchorElement}xy.prototype.applyTo=function(e){return{AllowOnlyKeys(e,t,n){_.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Zn(Qr(t,null,n,!1))},ExcludeKeys(e,t,n){_.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Zn(Qr(t,null,n,!0))},AddTo(e,t,n){var i;return _.isFunction(n)&&(n=n(e[t],e)),"search"!==t&&"pathname"!==t?e:"pathname"===t?(t=e.pathname,(i=n).startsWith("/")||(i="/"+i),t.endsWith("/")?e.pathname=t+i.substring(1):e.pathname=t+i,e):(t=e.href,new Zn(Ey(t,n)))},Clear(e,t){return"pathname"===t?e.pathname="/":e[t]="",e},Replace(e,t,n){return _.isFunction(n)&&(n=n(e[t],e)),"href"===t?new Zn(n):(e[t]=n,e)},ForceSecure(e,t){return"protocol"===t?e.protocol="https":e.href=e.href.replace(/^(.*:\/\/\/)/,"https://"),e}}[this.action](e,this.attr,this.data)},xy.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},xy.fromJSON=function(e){if(e instanceof xy)return e;if(!_.isObject(e))throw new Error("UrlTransform.fromJSON expects an object. Received: "+typeof e+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!e.attr)throw t=_.keys(Iy).join(", "),new Error('UrlTransform is missing required "attr" property. Valid attributes are: '+t+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!e.action)throw t=Iy[e.attr]?Iy[e.attr].join(", "):"AllowOnlyKeys, ExcludeKeys, AddTo, Replace, Clear",new Error('UrlTransform is missing required "action" property. Valid actions depend on the attribute. For "'+e.attr+'" attribute, valid actions are: '+t+'. Example: {attr: "'+e.attr+'", action: "AddTo", data: {key: "value"}}');if(!Iy[e.attr])throw t=_.keys(Iy).join(", "),new Error('Invalid attribute "'+e.attr+'". Valid attributes are: '+t+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!_.contains(Iy[e.attr],e.action))throw t=Iy[e.attr].join(", "),new Error('Invalid action "'+e.action+'" for attribute "'+e.attr+'". Valid actions for "'+e.attr+'" are: '+t+'. Example: {attr: "'+e.attr+'", action: "'+Iy[e.attr][0]+'", data: ...}');var t;if(_.contains(["AllowOnlyKeys","ExcludeKeys","AddTo","Replace"],e.action)&&e.data===undefined)throw t="Replace"===e.action?'"newValue"':"AddTo"===e.action?'{key1: "value1"}':'["key1", "key2"]',new Error('Action "'+e.action+'" requires a "data" property. Example: {attr: "'+e.attr+'", action: "'+e.action+'", data: '+t+"}");if(!("AllowOnlyKeys"!==e.action&&"ExcludeKeys"!==e.action||_.isArray(e.data)||_.isFunction(e.data)))throw new Error('Action "'+e.action+'" requires "data" to be an array of strings or a function returning an array of strings. Example: {attr: "'+e.attr+'", action: "'+e.action+'", data: ["key1", "key2"]}');if("AddTo"===e.action)if("pathname"===e.attr){if(!_.isString(e.data)&&!_.isObject(e.data)&&!_.isFunction(e.data))throw new Error('Action "AddTo" for pathname requires "data" to be a string, object, or function. Example: {attr: "pathname", action: "AddTo", data: "additional/segment"}')}else if(!_.isObject(e.data)&&!_.isFunction(e.data))throw new Error('Action "AddTo" requires "data" to be an object or function. Example: {attr: "search", action: "AddTo", data: {key1: "value1", key2: "value2"}}');try{return new xy(e.attr,e.action,e.data,e.target)}catch(n){if(n.message.includes("Invalid attribute")||n.message.includes("Invalid action")||n.message.includes("requires")||n.message.includes("expects"))throw n;throw new Error("Failed to create UrlTransform: "+n.message+". Transform object: "+JSON.stringify(e))}};ky=function(t,n,i,r){return[new xy("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new xy("href","ForceSecure")]},Di={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:Ay=function(){var e=Ur(),t=A.isElectron()?ky(A.electronAppName(),A.electronResourcesPath(),A.electronUserDirectory(),A.electronUserHomeDirectory()):[];return My([].concat(t),e)}},Ry=new Sy(500,function(e){!xv()||hu(document)||pu()}),Oy=function(e){if("string"==typeof e)return new Zn(e);if(Ty(e))return e;throw new Error("Invalid type from custom URL source. Must be either an URL or a String of a valid url.")},Ny=function(e){return e||window.location},My=function(e,t){return _.reduce(e,function(e,t){return t.applyTo(e)},t)};var ky,Ay,Ry,Oy,Ny,My,Ly,e={state:Di,actions:{init(e,t){e.commit("clearTransforms"),e.commit("clearInternalTransforms"),e.commit("changeUrlSource"),t.transforms&&e.dispatch("addTransforms",t.transforms),t.setUrl&&e.commit("changeUrlSource",t.setUrl)},addTransforms(t,e){_.each(e,function(e){e=xy.fromJSON(e);"location"!==e.target&&"both"!==e.target||t.commit("addTransform",e),"attribute"!==e.target&&"both"!==e.target||g.dispatch("nodeAttr/addAttrTransform",e)})},addInternalTransforms(t,e){_.each(e,function(e){t.commit("addInternalTransform",xy.fromJSON(e))})},removeInternalTransforms(t,e){_.each(e,function(e){t.commit("removeInternalTransform",xy.fromJSON(e))})},startPolling(e){Ry.start()},stopPolling(e){e.state.currentSrcFn===Ay&&Ry.stop()}},mutations:{addTransform(e,t){e.transforms.push(t)},addInternalTransform(e,t){e.internalTransforms.push(t)},removeInternalTransform(e,t){t=_.indexOf(e.internalTransforms,t);0<=t&&e.internalTransforms.splice(t,1)},clearTransforms(e){e.transforms=[],g.commit("nodeAttr/clearURLTransforms")},clearInternalTransforms(e){e.internalTransforms=[]},changeUrlSource(e,t){if(t){if("string"==typeof t)var n=new Zn(t),n=_.partial(_.identity,n);else if(Ty(t))n=_.partial(_.identity,t);else{if("function"!=typeof t)throw new Error("URL Source must be either a Function that returns a URL or String that is a valid URL. Or, it may be a static URL or String.");n=t}e.currentSrcFn=n,Ry.start(!xv())}else e.currentSrcFn=Ay,Ry.stop()}},getters:{url:Ly=function(e){try{var t=function(e){return n=e},n=_.reduce([e.currentSrcFn,Oy,t,_.partial(My,e.transforms),Oy,t,_.partial(My,e.internalTransforms),Oy],function(e,t){return t(e)},null)}catch(i){C.critical(i),n=Ny(n)}return n},href(e){return Ly(e).href}}};function Py(e){var t;if("function"==typeof Py[e])return t=_.toArray(arguments).slice(1),Py[e].apply(Py,t)}_.extend(Py,{getHref(){return g.getters["location/href"]()},clearTransforms(){g.commit("location/clearTransforms"),pu()},addTransforms(e){g.dispatch("location/addTransforms",e),pu()},setUrl(e){g.commit("location/changeUrlSource",e)},useBrowserUrl(){g.commit("location/changeUrlSource"),pu()}});function Fy(){return f.get("guideSeenTimeoutLength")||1e4}Dy=[];var Dy,Uy={name:"StepTimeoutMonitor",initialize(){this._beforeGuideShow=_.bind(Uy.beforeGuideShow,Uy),this._stop=_.bind(Uy.stop,Uy),y.beforeGuideShow.on(this._beforeGuideShow),y.guideSeen.on(this._stop),y.guideNotSeen.on(this._stop)},teardown(){Uy.stop(),y.beforeGuideShow.off(this._beforeGuideShow),y.guideSeen.off(this._stop),y.guideNotSeen.off(this._stop)},beforeGuideShow(e){var t=e.data[0],e=e.data[1],n=t.guide;f.get("enableGuideTimeout")&&(e=-1<_.indexOf(["dom","launcher","badge","api"],e),"active"===t.seenState||t.hasBeenControlled()||t.isTimedOut()||(n=n&&n.steps)&&(0!==_.indexOf(n,t)||e)&&Uy.start(t))},start(e){var u,t,n=Dy[0];n&&n===e.id||(n&&n!==e.id&&(n=Dy[1],_.isFunction(n))&&n(),e.shouldStartTimer()&&(u=Fy(),n=_.partial(function(e,t){var n,i,r,o,a,s=N(t);s&&(n=s.findStepById(e))&&!s.isShown()&&(a=n.canShowOnPage(lm())?Hg(n)?"other":"element":"page",i=t,r=e,o=b(),a=a,s=s.language,i=am({type:"guideTimeout",guideId:i,stepId:r,visitorId:o,seen_reason:a,language:s,guideSeenTimeoutLength:u}),dm(i),y.guideTimeout.trigger(i),C.info("Guide "+t+" timed out showing Step "+e),n.timeout()),Uy.stop()},e.id,e.guide.id),t=Ut(n,u),Dy=[e.id,n,t]))},stop(){var e=Dy[2];e&&clearTimeout(e),Dy=[]},getGuideSeenTimeoutLength:Fy};function Gy(){console.warn("This functionality is not supported by your subscription.")}function a(e){return _o?e:Gy}var By="is going away",zy="is gone",jy=_.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return C.info(e),e});function Hy(e,t,n){return function(){return jy("pendo."+t,n),(e||_.noop).apply(null,arguments)}}function qy(e){return e&&1===e.length?e[0]:_.any(e,mt)?m.all(e).then(function(e){return _.any(e)}):void 0}function Wy(){this.elements=[],this.attributes=this.attributes||{},this.attributes.device&&this.attributes.device.type?"all"==this.attributes.device.type?this.attributes.device={desktop:!0,mobile:!0}:(e=this.attributes.device.type,this.attributes.device={mobile:!1,desktop:!1},this.attributes.device[e]=!0):this.attributes.device=this.attributes.device||{},_.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),Zd(e,this)},this),this.isActivatedByEvent=function(e){return!!(this.hasLaunchMethod("dom")&&this.attributes&&this.attributes.activation&&_.contains(this.attributes.activation.event,e)&&this.canEventActivatedGuideBeShown())},this.isContinuation=function(e){return!1},this.isGuideWidget=function(){return this.attributes&&"launcher"===this.attributes.type},this.isOnboarding=function(){return this.attributes&&!!this.attributes.isOnboarding},this.isWhatsNew=function(){var e=_.first(this.steps);return e&&"whatsnew"===e.type},this.isAnnouncement=function(){return _.get(this,"attributes.isAnnouncement")},this.isHelpGuide=function(){return!this.isOnboarding()&&!this.isWhatsNew()&&!this.isGuideWidget()},this.nextStep=function(e){return null},this.hasLaunchMethod=function(e){return this.launchMethod&&0<=this.launchMethod.indexOf(e)},this.shouldAutoDisplay=function(){return!this.outsideTimebox()&&this.hasLaunchMethod("auto")&&_.any(this.steps,function(e){return e.shouldAutoDisplay()})},this.autoDisplay=function(){if(this.shouldAutoDisplay())return qy(_.map(this.steps,function(e){return e.autoDisplay()}))},this.isRendered=function(){return _.any(this.steps,function(e){return e.isRendered()})},this.isShown=function(){return _.any(this.steps,function(e){return e.isShown()})},this.canShowOnDevice=function(){if(!ld()){var e=pd(),t=this.attributes&&this.attributes.device||{};if(!e&&!1===t.desktop)return!1;if(e&&!0!==t.mobile)return!1}return!0},this.canShow=function(){return this.canShowOnDevice()&&_.any(this.steps,function(e){return e.canShow()})},this.launch=function(e){var t;return this.hasGuideBeenControlled()||(t=this.show(e)),this.isShown()?_.each(this.steps,function(e){e.seenState="active"}):!this.isShown()&&this.isControlGroup()&&_.each(this.steps,function(e){e.seenState="notSeen"}),t},this.show=function(t){return qy(_.map(this.steps,function(e){return e.show(t)}))},this.checkForHiddenGroupSteps=function(){},this.hide=function(t){_.each(this.steps,function(e){e.hide(t)})},this.hasBeenSeen=function(){return _.all(this.steps,function(e){return e.hasBeenSeen()})},this.canBadgeBeShown=function(){var e=this.attributes.badge;return!(e&&e.isOnlyShowOnce&&this.steps[0].hasBeenSeen())},this.placeBadge=function(){var e;this.canShowOnDevice()&&this.hasLaunchMethod("badge")&&this.canBadgeBeShown()&&!this.outsideTimebox()?(e=_.get(this,"attributes.resourceCenter"),this.isControlGroup()&&!e?this.hasGuideBeenControlled()||this.steps[0].onControlGuide("control"):(e=_.first(this.steps))&&_.isFunction(e.canShowOnPage)&&e.canShowOnPage(lm())&&Lh(this)):Dh(this)},this.findStepById=function(t){return _.find(this.steps,function(e){return e.id===t})},this.isPoweredByEnabled=function(){return!!_.find(this.steps,function(e){return e.isPoweredByEnabled()})},this.searchFor=function(t){var e,n,i=null;return dt(this.name,t,!0)?i="name":(e=!(n=[]),(e=0<(n=this.attributes&&this.attributes.launcher&&this.attributes.launcher.keywords?this.attributes.launcher.keywords:n).length?_.find(n,function(e){return dt(e.text,t,!0)}):e)?i="tag":(n=_.map(this.steps,function(e){return e.searchFor(t)}),0<_.compact(n).length&&(i="content"))),!!i&&{guide:this,field:i}},this.shouldBeAddedToResourceCenter=function(){var e,t=this;return!(!t.steps||!t.steps.length||t.control||!t.eligibleInFrame&&(!t.steps[0].content&&!_.isFunction(t.steps[0].fetchContent)||(e=t.steps[0],!t.hasLaunchMethod("launcher")&&!t.isWhatsNew())||!e.canShowOnPage(lm())||!t.canShowOnDevice()||!Hg(e)||t.outsideTimebox()))},this.shouldBeAddedToLauncher=function(){var e;return!(!this.steps||!this.steps.length||(e=this.steps[0],!this.hasLaunchMethod("launcher")&&!this.isWhatsNew())||!e.canShowOnPage(lm())||!this.canShowOnDevice()||!Hg(e)||this.outsideTimebox())};var e,n="PENDO_HELPER_STEP";return this.getPositionOfStep=function(e){var t=_.reject(this.steps,function(e){return dt(e.content,n)});return _.indexOf(t,e)+1},this.getTotalSteps=function(){return _.reject(this.steps,function(e){return dt(e.content,n)}).length},this.getSeenSteps=function(){return _.size(_.filter(this.steps,function(e){return e.hasBeenSeen()}))},this.isComplete=function(){var t=["advanced","dismissed"];return _.all(this.steps,function(e){return _.contains(t,e.seenState)})},this.isInProgress=function(){var t=["active","advanced","dismissed"];return!this.isComplete()&&_.any(this.steps,function(e){return _.contains(t,e.seenState)})},this.isNotStarted=function(){return!this.isInProgress()&&!this.isComplete()},this.fetchContent=function(){return m.all(_.map(this.steps,function(e){if(_.isFunction(e.fetchContent))return e.fetchContent()}))},this.canEventActivatedGuideBeShown=function(){return!(this.attributes.dom&&this.attributes.dom.isOnlyShowOnce&&this.steps[0].hasBeenSeen())},this.isGuideSnoozed=function(){return _.any(this.steps,function(e){return e.isSnoozed()})},this.hasGuideBeenControlled=function(){return _.any(this.steps,function(e){return e.hasBeenControlled()})},this.isControlGroup=function(){return this.control},this.shouldShowSnoozedGuide=function(){var t=!1;return!this.outsideTimebox()&&_.any(this.steps,function(e){return!(t="dismissed"===e.seenState?!0:t)&&"snoozed"===e.seenState&&e.snoozeEndTime&&(new Date).getTime()>e.snoozeEndTime})},this.shouldRepeatGuide=function(){var t;return!(!this.redisplay||this.outsideTimebox()||this.isGuideSnoozed()||this.hasReachedMaxDismissals()||(t=0,_.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.isBeforeStartTime=()=>!!this.showsAfter&&v()<this.showsAfter,this.outsideTimebox=()=>this.isExpired()||this.isBeforeStartTime(),this.calculateDismissCountFromSteps=function(){var t=0;return _.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 Vy(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){_.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var Jy=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function Ky(){var r,o=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(_.each(this.steps,function(e){e.after("render",function(){_.each(e.elements,function(e){k(e).addClass("_pendo-guide-walkthrough_")})})}),r=null,this.sections=_.reduce(this.steps,function(e,t){var n,i;return i=t,!(n=r)||(n=_.last(n)).attributes.isRequired!=i.attributes.isRequired&&n.attributes.isRequired?(e.push(r),r=[t]):r.push(t),e},[]),this.sections=_.compact(this.sections.concat([r])),this.findSectionForStep=function(t){return _.find(this.sections,function(e){return _.contains(e,t)})},this.getSubSection=function(e,t){t=_.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<this.steps.length;r++)if(this.steps[r].id===t.guideStepId){if("dismissed"===t.state)break;if("active"===t.state||"snoozed"===t.state){e=this.steps[r];break}if("advanced"===t.state&&t.destinationStepId){e=_.find(this.steps,function(e){return e.id===t.destinationStepId});break}if(r+1<this.steps.length){e=this.steps[r+1];break}}return e?(n=(new Date).getTime(),(i=t.time)&&432e5<n-i&&!Jy(this)?(o||(C.info("Multi-step continuation has expired",{contexts:["guides","info"]}),o=!0),null):e):null},this.shouldAutoDisplay=function(){return this.hasLaunchMethod("auto")&&(this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||_.all(this.steps,function(e){return e.shouldAutoDisplay()}))},this.autoDisplay=function(){var e,t,n;if(this.shouldAutoDisplay())return e=this.shouldRepeatGuide(),t=_.first(this.steps),n=this.nextStep(Yp())||t,this.shouldShowSnoozedGuide()||e?n.show(e?"repeatGuide":"auto"):t.autoDisplay()},this.launch=function(e){return _.first(this.steps).show(e)},this.show=function(e){var t=Yp(),n=_.first(this.steps),t=this.nextStep(t)||n;return t.show("continue"===e&&t===n&&"auto"===n.seenReason?"auto":e)},this.isComplete=function(){var e=_.last(this.steps);return!!e&&_.contains(["advanced","dismissed"],e.seenState)},this.activeStep=function(){var e=[].concat(this.steps).reverse();return _.findWhere(e,{seenState:"active"})}),this}function $y(){var a=this;function t(r){var o=[];return function(e){try{return e.apply(a,_.toArray(arguments).slice(1))}catch(i){var t,n="ERROR in guide "+r+' (ID="'+a.id+'")';throw o.push(v()),5<=o.length&&(t=0<(t=_.last(o)-_.first(o))?(o.length-1)/(t/6e4):Infinity,$y.MAX_ERRORS_PER_MINUTE<=t&&(n="Exceeded error rate limit, dropping guide.\n"+n,td.addGuide(a),y.trigger("renderFail",a)),o.shift()),C.critical(n,{error:i}),i}}}return _.each(["canShow","placeBadge","show"],function(e){a[e]=_.wrap(a[e],t(e))}),a}function Zy(){return _.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=_.wrap(this.shouldBeAddedToLauncher,function(e){return g.getters["frames/hasFrames"]()?!(!g.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!g.getters["frames/isGuideInDifferentFrame"]()(this)&&g.getters["frames/shouldBeAddedToLauncher"]()(this):e.apply(this,arguments)}),this.shouldBeAddedToResourceCenter=_.wrap(this.shouldBeAddedToResourceCenter,function(e){return g.getters["frames/hasFrames"]()?!(!g.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!g.getters["frames/isGuideInDifferentFrame"]()(this)&&g.getters["frames/shouldBeAddedToResourceCenter"]()(this):e.apply(this,arguments)})),this}function Xy(e){var t=this;return"whatsnew"===t.type||_.isFunction(e.isAnnouncement)&&e.isAnnouncement()||(t.isShown=_.wrap(t.isShown,function(e){return e.apply(this,arguments)||g.getters["frames/isShownInAnotherFrame"]()(t)})),t}function Yy(o){var a,t,i,s,r,n,u,d=this;return d.pollIds&&d.pollIds.length&&(a="_pendo-poll-selected_",t=_.indexBy(o.polls,"id"),i=_.map(d.pollIds,function(e){return t[e]}),r=function(e,t){if(e&&t!==undefined)return e.numericResponses?parseInt(t,10):t},n=function(){var e=o.id,t=d.id,n=v();nm(e,t,b(),d.seenReason,o.language),Ig(e,t,"advanced",n),Zp({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=_.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(_.compact(t)),u()}):d.attachEvent(n,"click",function(e){var t,e=k(kr(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:""})),_.isFunction(d.resize)&&d.resize()}))}),d.after("show",function(){s=(new Date).getTime()}),d.response=function(e,r){e&&e.length&&(qm(),_.each(e,function(e,t){var n=function(t,e){if(e&&e.polls&&e.polls.length)return _.find(e.polls,function(e){return e.id===t})}(e.pollId,o),i=am("pollResponse",d.guideId,d.id,b(),undefined,o.language);_.extend(i.props,{poll_id:e.pollId,poll_response:e.value,duration:(new Date).getTime()-s},r),n&&n.attributes&&n.attributes.type&&_.extend(i.props,{poll_type:n.attributes.type}),Um.push(i)}),Um.flush())}),d}$y.MAX_ERRORS_PER_MINUTE=30;var Qy={show:function(t,n){if(ld()&&_.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return e0(t,n);if(!g.getters["frames/hasFrames"]()||g.getters["frames/isGuideInThisFrame"]()(e)){e=function(e,t){if(e.getGuide().isModule){e=P.getResourceCenter();if(e)return e0(e.steps[0],t)}}(t,n);if(mt(e))return e.then(function(){return e0(t,n)}).then(function(e){return!!e||t0(t,n)});e=e0(t,n);if(mt(e))return e.then(function(e){return!!e||t0(t,n)});if(e)return!0}return t0(t,n)},showLocal:e0};function e0(e,t){return ec.hasContent(e)&&Vd.valid(e)?(e._show(t),e.isShown()):!(ec.hasContent(e)&&Vd.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(lm()))&&(e.lock(),ec.fetchContent(e).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&Vd.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(e.unlock(),e._show(t),e.isShown())}))}function t0(t,e){var n=t.getGuide();return!(!g.getters["frames/hasFrames"]()||!g.getters["frames/isGuideInDifferentFrame"]()(n))&&(t.lock(),g.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}))}function n0(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 cv),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=_.indexOf(t,this),i=jl();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:rt(i),template:r};return this.template||(this.template=_.template(this.content||"")),Xd(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<this.elements.length},this.isShown=function(){return this.isRendered()||this.isLocked()},this.canShow=function(){return!_.get(this,"guide.attributes.isAnnouncement")&&!!u.canShowOnDevice()&&!this.isShown()&&!_.get(this,"stepIneligibleForApp")&&this.canShowOnPage(lm())&&Hg(this)},this.canShowOnPage=function(e){e=hm(this.regexUrlRule,e);return kh()&&y.stepEligibility.trigger({stepId:this.id,guideId:this.guideId,eligible:e,reason:"page_match"}),e},this.shouldAutoDisplay=function(){return this.shouldRepeat()||!this.hasBeenControlled()&&!this.isSnoozed()&&!_.contains(["dismissed","advanced"],this.seenState)},this.autoDisplay=function(){var e;if(this.shouldAutoDisplay())return e=this.shouldRepeat()?"repeatGuide":"auto",this.show(e)},this._preRenderHealthCheck=function(){var e,t;return!(!(E.designer||ld()||Kh())&&(e=lm(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!hm(this.regexUrlRule,e)?(td.addGuide(u),t.error=new Error('attempted display on page "'+e+'"'),C.critical("pendo.io page rule exception",t),1):g.getters["healthCheck/isMissingPageRule"]()(this)?(td.addGuide(u),t.error=new Error('missing regexUrlRule"'),C.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(td.addGuide(u),t.error=new Error("missing regexUrlRule for page "+this.pageId+'"'),C.critical("pendo.io page rule exception",t),1)))},this.render=function(){var e=this;if(this._preRenderHealthCheck()){if(e.domJson)return u.skipResourceCenterHomeView&&u.moduleIdToReplaceHomeViewWith&&u.hasEligibleNativeIntegrationModule?(t=_.find(Yu(),function(e){return e.id===u.moduleIdToReplaceHomeViewWith}),n=_.get(t,"attributes.resourceCenter.integrationProvider"),P.renderNativeIntegration(n,t)):u.continueToNativeModule?P.handleNativeIntegrationContinuation(u):(_.get(u,"attributes.resourceCenter")&&vh(P.getResourceCenter(),yh),u.isModule?U.renderResourceCenterModule(u,!1):(n=U.renderGuideFromJSON(e.domJson,e),_.get(u,"attributes.resourceCenter")&&(t=u.activeModule?u.activeModule.activeStep().domJson.props.id:e.containerId,t=e.guideElement.find("#"+t),P.adjustResourceCenterWidth(t)),n));var t=e.attributes.width,n=e.attributes.height,i=E.TOOLTIP_ARROW_SIZE,r="_pendo-group-id-"+u.id+"_",r=k(document.createElement("div")).attr("id",Jg(e)).addClass(mg+" "+r),o=k(document.createElement("div")).addClass("_pendo-guide-content_").html(e.getContent()),a=k(document.createElement("div")).addClass("_pendo-guide-container_"),s=k(document.createElement("div")).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&&_.isFunction(u.isOnboarding)&&u.isOnboarding()&&r.addClass("_pendo-onboarding_"),e.overlayDiv=s,e.guideElement=r}},this.teardown=function(){C.info("guide step teardown",{contexts:["guide","render"]}),_.each(this.handlers,function(e){Wu(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,_.has(this.attributes,"imgCount")&&(this.attributes.imgCount=0),this.hiddenElements&&(_.each(this.hiddenElements,e=>{try{e&&"function"==typeof e.removeAttribute&&e.removeAttribute("aria-hidden")}catch(t){C.error("unable to remove aria-hidden from element",{error:t})}}),this.hiddenElements.length=0,this.hiddenElements=null),Nl(this.id)},this.show=function(e){var t;if(!_.contains(["auto","continue"],e)||!g.getters["healthCheck/isRedisplay"]()(this))return(t=Qy.show(this,e))&&t["catch"]&&t["catch"](_.noop),t;g.dispatch("healthCheck/fixSeenStateAndLogError",{step:this,reason:e})},this.redraw=function(){var e,t,n,i,r,o=this;o.guideElement&&!E.designer&&(t=(e=_.get(u,"attributes.resourceCenter"))&&P.isFullyCustom(u),n=u.activeModule?u.activeModule.activeStep().domJson.props.id:o.containerId,i=o.guideElement.find("#"+n),r=u.activeModule&&"AnnouncementsModule"===_.get(u.activeModule,"attributes.resourceCenter.moduleId"),y.beforeUpdate.trigger(o),t||r||(U.recalculateGuideWidth(n,o.guideElement),U.adjustGuideContentWidth(n,o.guideElement)),e?(P.adjustResourceCenterWidth(i),r&&u.activeModule.guidesInModule?_.forEach(u.activeModule.guidesInModule,function(e){var t;!_.isUndefined(e.steps[0].attributes.imgCount)&&0!==_.get(e.steps[0],"attributes.imgCount")||(t=e.steps[0].id,t=k(i).find("#pendo-g-"+t)[0]?t:e.id,U.adjustGuideContentWidth("pendo-g-"+t,o.guideElement),U.flexAllThings("pendo-g-"+t,o))}):U.flexAllThings("pendo-resource-center-container")):U.flexAllThings(n,o),t||U.recalculateGuideHeight(n,o.guideElement),y.updated.trigger(o))},this._show=function(e){y.beforeGuideShow.trigger(this,e),this.canShow()&&(!ld()&&u.control?this.hasBeenControlled()||this.onControlGuide("control"):y.beforeMount.trigger(this).cancel||(this.render(),this.isShown()&&this.onShown(e)))},this.shouldStartTimer=function(){return u.canShowOnDevice()&&!u.attributes.isAnnouncement&&!zg(this)},this.getStepPollTypes=function(n,e){var i;if(e.pollIds&&e.pollIds.length)return i=[],_.forEach(e.pollIds,function(t){var e=_.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;ld()||(this.seenReason=e,bg(v()),t=this.getStepPollTypes(u,this),this.hasBeenControlled())||(Qg(this.guideId,this.id,b(),e,u.language,t),_.each(u.steps,function(e){e.seenState="notSeen"}))},this.onShown=function(r,e=!0){var t,n,i=this;i.overrideElement&&(k.addClass(i.overrideElement,"triggered"),i.overrideElement.checkAriaExpanded)&&i.overrideElement.checkAriaExpanded(),ld()||(i.seenReason=r,i.seenState="active",bg(v()),t={last_updated_at:i.lastUpdatedAt},(n=this.getStepPollTypes(u,i))&&(t.step_poll_types=n),e&&em(i.guideId,i.id,b(),r,u.language,t),g.dispatch("guideState/updateLastGuideStepSeen",{guideId:u.id,guideStepId:i.id,time:yg,state:i.seenState,seenReason:r,visitorId:b()}),_.each(u.steps,function(e){var t,n,i;"snoozed"===e.seenState&&(e.snoozeEndTime=0,t=u.id,e=e.id,n=b(),i=u.language,t=am({type:"guideSnoozeCanceled",guideId:t,stepId:e,visitorId:n,seen_reason:r,language:i}),dm(t,null,!0),y.guideSnoozeCancelled.trigger(t))}),ic.runCustomScripts(i,u)),g.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||(E.ignoreResize=!0,Ut(function(){E.ignoreResize=!1},1e3))})},this.hide=function(e){var t=this;t.unlock(),y.beforeUnmount.trigger(t),t.teardown(),_.each(t.elements,function(e){Ko(e)}),y.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(),g.dispatch("frames/guideStepHiddenInFrame",{guideId:u.id,stepId:t.id})},this.advance=function(){"advanced"===this.seenState&&!this.isRendered()||Ug(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||Pg(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.outsideTimebox()&&!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};p(e,t,n,!0),this.handlers.push(i)},this.searchFor=function(e){return!(e.length<3)&&dt(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&Uc.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&Ac(this)},this.getType=function(){return this.domJson?_.get(this,"attributes.calculatedType"):this.type},this}function i0(){return this.after("render",function(){var e,t;F&&F.contentWindow&&F.style&&(e=_.first(k('#pendo-resource-center-container, [id^="pendo-g-"]')))&&(e=R(e))&&(t={mutation:"preview/setIsPreviewBarTop",payload:{isPreviewBarTop:!1}},"0px"===e.top?(F.style.top="auto",F.style.bottom="0px",F.contentWindow.postMessage(t,location.origin)):"0px"!==e.bottom&&F.style.top||(F.style.top="0px",F.style.bottom="auto",t.payload.isPreviewBarTop=!0,F.contentWindow.postMessage(t,location.origin)))}),this}n0.isGuideStep=function(e){return!!e&&_.isFunction(e.render)};const r0={state:{errorCount:0,errors:{}},actions:{write(e,t){var n=t.error;if(n&&!t.logged){var i=e.getters.hasLogged()(t);if(e.dispatch("update",t),!i){try{t.logged=!0}catch(r){}e=`[${t}]`;t.level===vt.Critical?(i=window.pendo_options||{},ry(e),!1!==E.logStackTraces&&!1!==i.logStackTraces&&n.stack?ko(e+`
|
|
9
|
+
`+n.stack):To(e)):t.level===vt.Error?ry(e):t.level===vt.Warn&&(i=[e],ey("warn"))&&console.warn.apply(console,i)}}},update(e,t){t&&(e.getters.hasLogged()(t)||e.commit("addError",t),e.commit("incrementError",t))}},mutations:{addError(e,t){var{message:n,level:i}=t,r=t.hashCode();e.errors[r]={count:0,stack:t.error.stack,message:n,level:i,hash:r}},incrementError(e,t){e.errors[t.hashCode()].count++,e.errorCount++}},getters:{hasLogged(t){return function(e){return!!t.errors[e.hashCode()]}}}},o0=h.getSession(),a0="pendo_cd";class s0{constructor(){this.name="CloneDetection"}initialize(){if(_.isFunction(window.BroadcastChannel))return h.registry.addSession(a0),this.tabId=ln.getTabId(),this.id=ut(16),this.channel=new BroadcastChannel("pendo-clone-detection-"+E.apiKey),this.channel.addEventListener("message",_.bind(this.onmessage,this)),this.detectClonedSession(this.id),_.bind(this.teardown,this)}teardown(){this.stopCloneDetectionTimer(),this.channel.removeEventListener("message",this.onmessage),this.channel.close(),this.channel=null}onmessage(e){var t=_.get(e,"data.type"),n=_.get(e,"data.tabId"),i=_.get(e,"data.id");if(n===this.tabId)switch(t){case"pendo-clone-test":i!==this.id&&this.isClonedSession(i)&&this.sendMessage("pendo-change-tab-id",{tabId:n,id:i});break;case"pendo-change-tab-id":i===this.id&&this.clearClonedStorage()}}detectClonedSession(e){var t=o0.getItem(a0)||"";-1===t.indexOf(e)&&(t+="-"+e),o0.setItem(a0,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()}isClonedSession(e){return this.startCloneDetectionTimer(),-1===(o0.getItem(a0)||"").indexOf(e)}clearCloneDetectionValue(){o0.removeItem(a0),this.cloneDetectionTimer=null}startCloneDetectionTimer(){this.stopCloneDetectionTimer(),this.cloneDetectionTimer=Ut(_.bind(this.clearCloneDetectionValue,this),1e4)}stopCloneDetectionTimer(){this.cloneDetectionTimer&&(clearTimeout(this.cloneDetectionTimer),this.cloneDetectionTimer=null)}clearClonedStorage(){o0.clearPendo(),ln.setParentTabId(this.tabId),this.tabId=ln.newTabId(),y.trigger("tabIdChanged:self"),g.dispatch("frames/setTabId",this.tabId)}sendMessage(e,t){this.channel.postMessage(Object.assign({type:e},t))}}let u0=new s0;function d0(e){g.dispatch("frames/setReady",{isReady:!0})}var c0=["unknown","hidden","visible"];function l0(e){return"visible"===e.visibility||"unknown"===e.visibility}p0={};var p0,t={actions:{init(e){var t,n,i=e.state;i.initialized||(h.registry.addSession(nn),h.registry.addSession(rn),t=ln.addTracerIds({}),n=Se(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),y.ready.on(d0),y.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&D.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),u0.initialize(),e.commit("setInitialized",!0))},changeGuideList(e,t){e=e.state,t=f0(t);D.postMessage({action:"frames/receiveGuideList",frameId:e.frameId,guides:t,autoOrdering:E.autoOrdering||[]})},receiveGuideList(e,t){e.commit("setGuideList",t),t.frameId===e.state.frameId&&e.commit("setGuidesLoaded"),g0(e.state)},join(e){var t,n,i,r;e.state.disabled||(lh(),t=e.state,n=window.top==window,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:f0(od())}),(r=[].concat(f.get("leaderKey"))).length||t.agentInstallType!==be||(r=[E.apiKey]),e.dispatch("receiveFrame",{frame:_.extend({agentInstallType:t.agentInstallType,id:t.frameId,joinedAt:v(),isTop:n,visibility:n?"visible":"unknown",apiKey:E.apiKey,leaderKey:r},i)}))},receiveFrame(e,t){var n,i=e.state;if(E.designerv2.launched&&(n=Object.assign({},yf.hostConfig,{selectionOnly:!0}),D.postMessage({action:"frames/addSelectionModeToFrames",options:n})),!i.frames[t.frame.id]||!i.frames[t.frame.id].id){if(e.commit("addFrame",t.frame),e.commit("setGuideList",{frameId:t.frame.id,guides:_.toArray(_.get(t,"frame.guides",[]))}),t.frame.isTop){for(var r=e.getters.leaderKeyPreference(),o=_.filter(i.frames,e=>e.isTop);r.length;){var a=r.shift(),s=_.filter(o,e=>e.apiKey===a);if(s.length){o=s;break}}e.commit("setTopId",o[0].id)}e.commit("setLeadershipMode",t.frame.agentInstallType),t[Bh]&&e.dispatch("receiveStartPreview",t),D.postMessage({action:"frames/receiveFrame",frame:i.frames[i.frameId],"pendo-preview":e.rootState.preview.preview}),e.dispatch("waitThenElectLeader")}},leave(t){var e=t.state;D.postMessage({action:"frames/removeFrame",frameId:e.frameId}),_.each(e.frames,function(e){t.commit("removeFrame",e.id)}),D.close()},removeFrame(e,n){e.getters.hasFrame()(n.frameId)&&(e.commit("removeFrame",n.frameId),_.each(p0,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete p0[t])}),e.dispatch("electLeader"))},waitThenElectLeader:_.debounce(function(e){e.dispatch("electLeader")},50),electLeader(e){var t=e.state,n=t.frames,i=e.getters.leaderKeyPreference();if(i.length)for(;i.length;){var r=i.shift(),o=_.filter(t.frames,e=>e.apiKey===r);if(o.length){n=o;break}}var a=_.find(n,e=>e.isTop);a?e.dispatch("followLeader",{leaderId:a.id}):(a=_.min(n,"joinedAt"),e.dispatch("followLeader",{leaderId:a.id})),g0(e.state),e.getters.isLeader()&&y.childFrameJoined.trigger()},followLeader(e,t){var n=e.state,i=n.leaderId,r=t.leaderId;e.commit("setLeaderId",t.leaderId),i!==r&&y.leaderChanged.trigger({frameId:n.frameId,oldLeaderId:i,newLeaderId:r})},showGuideStep(t,n){var i=_.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",_.extend({frameId:e.id},n)).then(function(e){return e.error?m.reject(e.error):e.isShown?e:r()}):m.resolve({isShown:!1})}()},requestShowGuideStepInFrame(e,t){var n=t.frameId+"/"+ut(32),i=m.defer();return p0[n]=i,D.postMessage(_.extend({action:"frames/showGuideStepInFrame",requestId:n},t)),i.promise},showGuideStepInFrame(t,n){var e;function i(e){t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:e})}t.state.frameId===n.frameId&&((e=(e=N(n.guideId))&&e.findStepById(n.stepId))?mt(e=Qy.showLocal(e,n.reason))?e.then(i)["catch"](_.noop):i(e):t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:!1}))},guideStepShownInFrame(e,t){e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:t.isShown}),D.postMessage(_.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame(e,t){var n=p0[t.requestId];n&&(n.resolve(t),delete p0[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(e,t){t=_.isArray(t)?t:[],D.postMessage({action:"frames/receiveHideGuides",frameId:e.state.frameId,guideIds:t}),e.commit("hideGuides")},receiveHideGuides(e,t){e.state.frameId!==t.frameId&&(t.guideIds.length?_.each(_.compact(_.map(t.guideIds,N)),function(e){e.hide()}):Cg(),e.commit("hideGuides"))},guideStepHiddenInFrame(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}),D.postMessage(_.extend({action:"frames/receiveGuideStepHiddenInFrame",frameId:e.state.frameId},t)),n&&e.dispatch("fixDoubleDisplay",t)},receiveGuideStepHiddenInFrame(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(n,i){_.each(n.state.frames,function(e,t){t!==n.state.frameId&&n.getters.isShownInFrame()(t,{id:i.stepId})&&D.postMessage(_.extend({action:"frames/receiveHideGuideInFrame",frameId:t,guideId:i.guideId,stepId:i.stepId},i))})},receiveHideGuideInFrame(e,t){e.state.frameId===t.frameId&&(t=(e=N(t.guideId))&&e.findStepById(t.stepId))&&t.hide()},changeLastGuideStepSeen(e,t){D.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(e,t){var n;t.frameId!==e.state.frameId&&(n=e.state.frames[t.frameId],(n=_.get(n,"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=N((n=t.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(e,t){D.postMessage(_.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState(e,t){t.frameId!==e.state.frameId&&_.each(im,function(e){t[e]&&om(t[e],e)})},startPreview(e){D.postMessage({action:"frames/receiveStartPreview","pendo-preview":e.rootState.preview.preview})},restartPreview(e){D.postMessage({action:"frames/receiveRestartPreview","pendo-preview":e.rootState.preview.preview})},stopPreview(e,t){D.postMessage(_.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview(e,t){e.dispatch("preview/start",t[Bh],{root:!0}),Hh(window),av()},receiveRestartPreview(e){var t=Vh(O,Yp());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview(e,t){tf({preventWindowClose:!!t.preventWindowClose})},checkFrameVisibility(e,t){if(!e.getters.isTop()&&!e.state.disableFrameVisibilityCheck)try{var n="unknown",i=(t=null==t?window:t).frameElement;i?(n=pa(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility(e,t){var n;!_.find(c0,function(e){return e===t.visibility})||(n=t.visibility,e.getters.frameVisibility()===n)||(e.commit("setFrameVisibility",{frameId:e.state.frameId,visibility:n}),D.postMessage({action:"frames/receiveFrameVisibility",frameId:e.state.frameId,visibility:n}))},receiveFrameVisibility(e,t){e.commit("setFrameVisibility",t)},addSelectionModeToFrames(e,t){t=t.options;yf.launchInAppDesigner(t)},syncOptions(e,t){t.options&&D.postMessage({action:"frames/receiveOptions",frameId:e.state.frameId,options:t.options})},receiveOptions(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&t.options&&Dl(t.options)},syncIdentity(e,t){var n;(t.visitorId||t.accountId)&&({visitorId:t,accountId:n}=t,D.postMessage({action:"frames/receiveIdentity",frameId:e.state.frameId,visitorId:t,accountId:n}))},receiveIdentity(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&(t.visitorId||t.accountId)&&Bn(t.visitorId,t.accountId)},setReady(e,t){e.commit("setReady",t.isReady)},receiveGuideSeen(e,t){t.frameId!==e.state.frameId&&y.guideSeen.trigger(t.guideSeen)},checkGuideEligibility(e,t){var{guideId:t,stepId:n,currentStepIndex:i,sourceFrame:r,promiseId:o}=t,t=N(t),n=t&&t.findStepById(n),a={};return t&&n?(0===i&&(i=vd(t))&&((i=_.first(Er(i)))?pa(i)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),_.isFunction(n.canShowOnPage)&&!n.canShowOnPage(lm())&&(a.PAGE="mismatch"),n.elementPathRule&&((i=_.first(Er(n.elementPathRule)))?pa(i)?n.elementContainsRulesList&&!Wg(i,n.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),n.triggerElementPathRule&&((i=_.first(Er(n.triggerElementPathRule)))?pa(i)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),_.get(t,"attributes.embedConfig")&&(n=_.get(t,"attributes.embedConfig.selector"),(i=_.first(Er(n)))?pa(i)||(a.EMBED_CONTAINER="notVisible"):a.EMBED_CONTAINER="notFound")):a.GUIDE="notFound",o&&r&&D.postMessage({errors:a,action:"frameEligibilityResponse",targetFrame:r,resolveId:o}),a},setTabId(e,t){e.commit("setTabId",t)}},mutations:{addFrame(e,t){var n=t.id;e.frames[n]=_.extend({},e.frames[n],t)},removeFrame(e,t){delete e.frames[t]},setGuideList(e,t){var n=t.frameId;e.frames[n]=_.extend({},e.frames[n],{guides:_.indexBy(f0(t.guides),"id"),autoOrdering:t.autoOrdering})},setStepShown(e,t){var n=t.frameId,n=e.frames[n]=_.extend({},e.frames[n]);n.shown=_.extend({},n.shown),n.shown[t.stepId]=t.shown},setInitialized(e,t){e.initialized=t},setLeaderId(e,t){e.leaderId=t},setFrameId(e,t){e.frameId=t},setTabId(e,t){e.tabId=t},setTopId(e,t){e.topId=t},setAgentInstallType(e,t){e.agentInstallType=t},setLeadershipMode(e,t){e.leadershipMode!==be&&(e.leadershipMode=t)},setFrameVisibility(e,t){var n=t.frameId;e.frames[n]=_.extend({},e.frames[n],{visibility:t.visibility})},setReady(e,t){e.isReady=t},disableFrameVisibilityCheck(e){e.disableFrameVisibilityCheck=!0},hideGuides(e){_.each(e.frames,function(n){_.each(n.shown,function(e,t){n.shown[t]=!1})})},setChannelType(e,t){e.channelType=t},setGuidesLoaded(e){e.guidesLoaded=!0},setConnectFailed(e){e.connectFailed=!0},updateLastGuideStepSeen(e,t){t&&_.each(e.frames,function(e){e.guides&&(e=e.guides[t.guideId])&&(e=_.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)})}},getters:{allFrames(e){return e.frames},autoOrdering(e){return _.reduce(e.frames,(e,t)=>(e[t.apiKey]=t.autoOrdering,e),{})},leaderExists(e){return!!e.leaderId},isLeader(e){return e.leaderId===e.frameId},leaderKey(e,t){if(t.leaderExists()){t=e.frames[e.leaderId];if(t)return t.apiKey}},isFollower(e){return!!e.leaderId&&e.leaderId!==e.frameId},isTop(e,t){t=t.window();return e.topId===e.frameId||t==t.top},frameVisibility(e){return(e.frames?e.frames[e.frameId]:{}).visibility||"unknown"},isGuideInThisFrame(n){return function(e){var t=n.frames&&n.frames[n.frameId];return!!(t&&t.guides||{})[e.id]}},isGuideInDifferentFrame(i){return function(n){return _.any(i.frames,function(e,t){return t!==i.frameId&&e.guides&&e.guides[n.id]})}},isReady(e){return e.isReady},isShownInAnotherFrame(i){return function(n){return _.any(i.frames,function(e,t){return t!==i.frameId&&e.shown&&e.shown[n.id]})}},isShownInFrame(n){return function(e,t){e=n.frames&&n.frames[e],e=e&&e.shown||{};return!(!e||!e[t.id])}},hasFrame(t){return function(e){return t.frames&&t.frames[e]}},hasFrames(e){return 1<_.size(e.frames)},shouldBeAddedToLauncher(i,e){return function(n){return e.canShowRCBadge()&&_.any(i.frames,function(e,t){return t!==i.frameId&&!!l0(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToLauncher})}},shouldBeAddedToResourceCenter(i,e){return function(n){return e.canShowRCBadge()&&_.any(i.frames,function(e,t){return t!==i.frameId&&e.apiKey===E.apiKey&&!!l0(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToResourceCenter})}},isBroadcastChannel(e){return"BroadcastChannel"===e.channelType},channelType(e){return e.channelType},canShowRCBadge(e,t){var n,i;return t.leaderKey()!==E.apiKey?(n=_.filter(e.frames,function(e){return e.apiKey===E.apiKey}),(i=_.find(n,function(e){return e.isTop}))?e.frameId===i.id:(i=_.min(n,function(e){return e.joinedAt}),e.frameId===i.id)):_.any(e.frames,function(e){return e.isTop})?t.isTop():t.isLeader()},leaderKeyPreference(e){e=_.filter(e.frames,e=>e.leaderKey&&e.leaderKey.length);return 1===_.unique(_.map(e,e=>e.leaderKey.join(","))).length?[].concat(e[0].leaderKey):[]},getMyApiKey(e,t){return t.getMyFrame().apiKey},getMyFrame(e){return e.frames[e.frameId]},window(){return window}},state:{initialized:!1,frameId:null,leaderId:null,tabId:null,agentInstallType:null,leadershipMode:null,topId:null,frames:{},guidesLoaded:!1,channelType:null,ready:!1},requests:p0};function h0(e){var t=_.pick(e,"id","name","launchMethod","isMultiStep","steps","control","lastUpdatedAt","language","state","polls","redisplay");return t.attributes=_.pick(e.attributes,"overrideAutoThrottling","priority","isAnnouncement","resourceCenter","device","sharedServiceVersion","embedConfig"),t._shouldBeAddedToLauncher=_.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e._shouldBeAddedToLauncher||!1,t._shouldBeAddedToResourceCenter=_.isFunction(e.shouldBeAddedToResourceCenter)?e.shouldBeAddedToResourceCenter():e._shouldBeAddedToResourceCenter||!1,t.steps=_.map(e.steps,function(e){return _.pick(e,"id","guideId","type","seenReason","seenState","lastSeenAt","lastUpdatedAt","dismissCount","snoozeEndTime","regexUrlRule","pageId","elementPathRule","triggerElementPathRule","elementContainsRulesList")}),t}function f0(e){return _.map(e,h0)}function g0(t){var n=_.indexBy(_.filter(od(),function(e){return!e.isFrameProxy}),"id"),e=_.chain(t.frames).filter(function(e){return e.id!==t.frameId}).map(function(e){return _.toArray(_.get(e,"guides",[]))}).flatten(!0).unique("id").filter(function(e){return!n[e.id]}).map(function(e){return _.extend(JSON.parse(JSON.stringify(e)),{isFrameProxy:!0})}).map($d).value(),e=_.toArray(n).concat(e).filter(_m);_.sortBy(e,Cm),jm(e),ed(e),t.guidesLoaded&&0===_.size(_.get(t,"frames."+t.frameId+".guides",[]))&&ph()}var m0,Ri={actions:{documentChanged(e){var t;e.state.updateId?e.commit("setNeedsUpdate"):e.state.scheduledUpdate||(t=e.getters.now()-e.state.updateCompleteTime,t=Math.min(Math.max(0,uh-t),uh),t=Ut(y0,t),e.commit("setScheduledUpdate",t))},handleScheduledUpdate(e){e.dispatch("stopScheduledUpdate"),ph()},stopScheduledUpdate(e){e.state.scheduledUpdate&&(clearTimeout(e.state.scheduledUpdate),e.commit("setScheduledUpdate",null))},startObserverIfNeeded(e){e.state.useObserver&&!e.state.observing&&(e.getters.observer().addEventListener("mutation",v0),e.commit("setObserving",!0))},stopObserver(e){var t=e.getters.observer();t&&t.removeEventListener("mutation",v0),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setObserver(e,t){m0=t},setUseObserver(e){e.useObserver=!0},setObserving(e,t){e.observing=t},setNeedsUpdate(e){e.needsUpdate=!0},setScheduledUpdate(e,t){e.scheduledUpdate=t},startUpdate(e,t){Is.startTimer("guide-loop"),e.needsUpdate=!1,e.updateId=t},completeUpdate(e,t){Is.stopTimer("guide-loop"),e.updateId=null,e.updateCompleteTime=t}},getters:{now(){return v()},observer(){return m0}},state:{useObserver:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}};function v0(){g.dispatch("guideUpdate/documentChanged")}function y0(){g.dispatch("guideUpdate/handleScheduledUpdate")}b0=["advanced","dismissed","snoozed"];var b0,Di={actions:{init:function(t,e){_.each(e,function(e){_.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){ko(['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]=_.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)&&_.contains(b0,t.seenState)&&!_.contains(b0,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}},w0={state:{visitor:{},account:{},parentAccount:{},date:null,version:null,selfHosted:null},actions:{},mutations:{setMetadata(e,t){t&&(t.visitor&&(e.visitor=t.visitor),t.account&&(e.account=t.account),t.parentAccount&&(e.parentAccount=t.parentAccount),t.date&&(e.date=t.date),t.version&&(e.version=t.version),null!==t.selfHosted)&&(e.selfHosted=t.selfHosted)},clearAccount(e){e.account={}},reset(e,t){e.visitor={id:t.visitor_id},e.account={},e.parentAccount={},e.date=null,e.version=null,e.selfHosted=null}},getters:{metadata(e){return e},selfHosted(e){return e.selfHosted}}};const S0=h.getLocal();var E0="pendo-preview",I0="current-guide-preview",_0={state:{preview:null,designerPreview:null},actions:{start(e,t){e.commit("setPreview",t),e.dispatch("write")},restart(e,t){e.commit("updatePreview",{state:null}),e.commit("updatePreview",t)},update(e,t){e.commit("updatePreview",{state:t}),e.dispatch("write")},load(e){try{var t=e.getters.storage(),n=JSON.parse(t.getItem(E0)),i=(n.apiKey===E.apiKey&&e.commit("setPreview",n),t.getItem(I0));i&&e.commit("setDesignerPreview",JSON.parse(i))}catch(r){}},write(e){try{var t=e.getters.storage();e.state.preview?t.setItem(E0,JSON.stringify(e.state.preview)):t.removeItem(E0)}catch(n){}},exit(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview(e){e.commit("setDesignerPreview",null),e.getters.storage().removeItem(I0)},launchInAppDesigner(e,t){yf.launchInAppDesigner(t)}},mutations:{updatePreview(e,t){e.preview&&_.extend(e.preview,t)},setPreview(e,t){e.preview=t},setDesignerPreview(e,t){e.designerPreview=t}},getters:{isInPreviewMode(e){return!!e.preview},isInDesignerPreviewMode(e,t){return!!e.designerPreview&&t.isInPreviewMode()},storage(){return S0}}};const C0=(()=>{const n={isTop:undefined,isLeader:undefined,frameId:null,tabId:null,frames:{},autoOrdering:[],excludedGuides:[],throttling:{},enableEventLogging:!1,eventsCaptured:[],cspErrors:[],installType:null,doNotProcess:!1},a={TOP_DOWN:"top-down",BOTTOM_UP:"bottom-up"},s={debuggingEnabled:{type:a.TOP_DOWN,defaultValue:!1},guideLoopRunning:{type:a.BOTTOM_UP,defaultValue:!1},stepEligibilitySet:{type:a.BOTTOM_UP,defaultValue:{}},identity:{type:a.BOTTOM_UP,defaultValue:{}},location:{type:a.BOTTOM_UP,defaultValue:{}}};var e={init:e=>{e.commit("setFrameId",ln.getFrameId()),e.commit("setTabId",ln.getTabId()),e.commit("setInstallType",Se());var t=wd()&&window.top===window;e.commit("setIsTop",t),e.commit("isLeader",wd()),t?(t=Th(),e.commit("debuggingEnabled",!0===t.enabled),t.enableEventLogging&&e.commit("enableEventLogging",!0)):D.postMessage({action:"debugger/join",frameId:e.state.frameId})},join:(n,e)=>{n.state.frameId!==e.frameId&&_.each(s,({type:e},t)=>{e===a.TOP_DOWN&&D.postMessage({action:"debugger/sync",frameId:n.state.frameId,fields:{[t]:n.state[t]}})})},sync:(i,e)=>{if(i.state.frameId!==e.frameId){const{frameId:r,fields:t}=e;_.each(t,(e,t)=>{var n;s[t]&&(n=s[t]["type"],n===a.TOP_DOWN&&i.state.isTop||n===a.BOTTOM_UP&&!i.state.isTop||i.commit("_sync_"+t,{value:e,frameId:r}))})}},enableEventLogging:(e,t)=>{e.commit("enableEventLogging",t)},eventCaptured:(e,t)=>{E.designerEnabled||Kh()||$h()||(e.state.isTop?e.commit("eventsCaptured",t):D.postMessage({action:"debugger/receiveEventCaptured",frameId:e.state.frameId,event:t}))},receiveEventCaptured:(e,t)=>{e.state.isTop&&e.commit("eventsCaptured",t.event)},clearEventsCaptured:e=>{e.commit("eventsCaptured",[])},onCspError:(e,t)=>{e.state.isTop?e.commit("cspError",t):D.postMessage({action:"debugger/recieveCspError",frameId:e.state.frameId,data:t})},recieveCspError:(e,t)=>{e.state.isTop&&e.commit("cspError",t.data)},checkGuideEligibility(e,t){const{guideId:i,response:n}=t;var t=_.filter(g.state.frames.frames,e=>e.guides&&e.guides[i]);t.length&&(t=_.map(t,n=>{var e=_.map(n.guides[i].steps,(e,t)=>D.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:n.id,stepId:e.id,currentStepIndex:t,guideId:i}));return m.all(e).then(e=>({frameId:n.id,frameVisibility:n.visibility,errors:_.map(e,e=>JSON.parse(e).errors)}))}),m.all(t).then(e=>e).then(e=>n(e))["catch"](e=>n({error:e})))}};const t={},u={setFrameId(e,t){e.frameId=t},setTabId(e,t){e.tabId=t},setIsTop(e,t){e.isTop=t},isLeader(e,t){e.isLeader=t},setInstallType(e,t){e.installType=t},stepEligibilitySet(e,t){var n=t["stepId"];e.stepEligibilitySet[n]=t},guideLoopRunning(e,t){e.guideLoopRunning!==t&&(e.guideLoopRunning=t)},identity(e,t){e.identity=t},location(e,t){e.location=t},debuggingEnabled(e,t){e.debuggingEnabled=t,t=t,e=e.isTop,n.debuggingEnabled!==t&&(t?(d(),c(),y.on("stepEligibility",i),y.on("guideUpdateComplete",p),y.on("guideLoopStopped",h),y.on("eventCaptured",o),y.on("identify",d),y.on("urlChanged",c),e&&(r(),y.on("guidesLoaded",r))):(y.off("stepEligibility",i),y.off("guideUpdateComplete",p),y.off("guideLoopStopped",h),y.off("eventCaptured",o),y.off("identify",d),y.off("urlChanged",c),e&&y.off("guidesLoaded",r)))},excludedGuides(e,t){e.excludedGuides=t},autoOrdering(e,t){e.autoOrdering=t},throttling(e,t){e.throttling=t},eventsCaptured(e,t){_.isArray(t)&&0===t.length?e.eventsCaptured=[]:e.debuggingEnabled&&e.enableEventLogging&&e.eventsCaptured.unshift(t)},enableEventLogging(e,t){e.enableEventLogging=t},cspError(e,t){e.cspErrors.unshift(t),10<e.cspErrors.length&&e.cspErrors.pop()},doNotProcess(e,t){e.doNotProcess=t}};function i(e){e=e.data[0];g.commit("debugger/stepEligibilitySet",e)}function r(e){var t=_.map(Qp.sortAndFilter(O,E.autoOrdering),e=>e.id);g.commit("debugger/autoOrdering",t||[]),g.commit("debugger/excludedGuides",E.excludedGuides||[]),g.commit("debugger/throttling",E.throttling||{})}function o(e){g.dispatch("debugger/eventCaptured",e.data[0])}function d(e){g.commit("debugger/identity",{visitorId:_.get(e,"data.0.visitor_id")||E.get_visitor_id(),accountId:_.get(e,"data.0.account_id")||E.get_account_id(),apiKey:E.apiKey})}function c(){g.commit("debugger/location",{href:Gr(),browserUrl:window.location.href})}function l(e){g.commit("debugger/guideLoopRunning",e)}const p=_.partial(l,!0),h=_.partial(l,!1);return _.each(s,({type:i,defaultValue:e},r)=>{n[r]=e,t[r]=e=>e[r];let o=u[r]||((e,t)=>{e[r]=t});u[r]=_.wrap(o,(e,t,n)=>{!t.isTop&&i===a.TOP_DOWN||(e(t,n),t.isTop&&i===a.BOTTOM_UP)||D.postMessage({action:"debugger/sync",frameId:t.frameId,fields:{[r]:n}})}),o=u["_sync_"+r]||o,u["_sync_"+r]=(e,{value:t,frameId:n})=>{e.frames[n]||(e.frames[n]={}),e.frames[n][r]||(e.frames[n][r]=s[r].defaultValue),o(e.frames[n],t),e.isTop||i!==a.TOP_DOWN||o(e,t)}}),{state:n,actions:e,getters:t,mutations:u}})(),x0=function(){const s=(e,t)=>_.reduce(e,function(e,t){return t.applyTo(e)},t);return{state:{transforms:[]},actions:{addAttrTransform(e,t){e.commit("addTransform",t)}},mutations:{addTransform(e,t){e.transforms.push(t)},clearURLTransforms(e){e.transforms=[]}},getters:{getAttribute(a){return function(e,t){var n,i,t=e.getAttribute?e.getAttribute(t):e[t];if(_.size(a.transforms)<1)return t;try{n=t,(i=document.createElement("a")).href=n;var r=new Zn(i.href);return _.reduce([_.partial(s,a.transforms)],(e,t)=>t(e),r).href}catch(o){return C.critical(o),t}}}}}}();const T0=function(){const i="pendo-loader";let r,o,n;return{name:"IFrameMonitor",initialize:function(e,t){r=e,o=t,function(){o.ConfigReader.get("autoFrameInstall")&&o.Events.ready.on(l);o.ConfigReader.get("frameIdentitySync")&&(o.Events.metadata.on(h),o.Events.identify.on(f),o.Events.childFrameJoined.on(a))}(),n=o.ConfigReader.get("frameIdentityTopDownOnly")},teardown:function(){o.Events.ready.off(l),o.Events.metadata.off(h),o.Events.identify.off(f),o.Events.childFrameJoined.off(a)}};function a(){g()}function s(e){return e.ignoreIframeMonitor||e.pendo&&(e.pendo.initialize||e.pendo.iframeWaiting)||!!e.document.getElementById(i)}function u(e,t){var n;s(e)||((n=o.ConfigReader.getLocalConfig()).apiKey||(n.apiKey=r.apiKey),e.pendo={_q:[["initialize",n]]},(n=e.document.createElement("script")).src=t,n["async"]=!0,n.id=i,(t=e.document.getElementsByTagName("script")[0])&&t.parentNode?t.parentNode.insertBefore(n,t):(e.document.head||e.document.body).appendChild(n))}function d(e,t){e.pendo.iframeWaiting=!1,u(e,t)}function c(e){try{if(s(e))return}catch(n){return}var t=function(){var e=o.ConfigReader.get("selfHostedAgentUrl");if(e)return e;e=r.dom("script");const t=/\/pendo(\.\w+)?\.js$/;return(e=r._.find(e,e=>t.test(e.src)))&&e.src}();t?"complete"===e.document.readyState?u(e,t):(e.pendo={iframeWaiting:!0},e.document.addEventListener("DOMContentLoaded",r._.partial(d,e,t))):r.log("Unable to find agent url to install agent in frames","debug")}function e(){var t=r.dom("iframe").length;for(let e=0;e<t;e++)c(window.frames[e]);Ut(e,250)}function l(){e()}function p(){return!n||n&&o.store.getters["frames/isLeader"]()}function h(e){p()&&(e=null==(e=e.data)?void 0:e[0]).storeChanged&&o.store.dispatch("frames/syncOptions",{options:e.options})}function f(e){var t;g(null==(t=e.data)?void 0:t[0].visitor_id,null==(t=e.data)?void 0:t[0].account_id)}function g(e=b(),t=qn()){p()&&o.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}}();function k0(e,n){return e.length==n.length&&_.all(e,function(e,t){return e===n[t]})}class A0{constructor(e){this.maxTargets=50,this.domActivation=e,this.name="dom",this.queue=[]}markDirty(){this.queue.push.apply(this.queue,this.domActivation.guides)}process(e){var t,n=this.queue.shift();if(n){e.saveContext(n);try{t=Er(n.selector)}catch(i){t=[]}t.length>this.maxTargets&&(t.length=this.maxTargets),k0(t,n.targets)||(n.targets=t,this.domActivation.detach(n,this.domActivation.targets),_.each(t,function(e){this.domActivation.attach(e,n,this.domActivation.targets)},this))}}handleProcessTimeExceeded(e){e=e.getContext();e&&C.warn("Element activated guide ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var R0,O0,N0,M0,L0,P0,F0={name:"DOMActivation",key:N0="pendoTargetId",guides:M0=[],targets:L0={},reset:z0,init:H0,attach:function(n,i,e){var t=n[N0],r=t?e[t]:null;r||(t=t||"target"+_.uniqueId(),r={target:n,events:{}},e[t]=r,n[N0]=t);var o=e[i.id]||[];o.push(t),e[i.id]=o,_.each(i.events,function(e){var t=r.events[e];t||((t={guideIds:{}}).fn=_.partial(B0,_,t.guideIds),p(n,e="mouseover"===e?"mouseenter":e,t.fn),r.events[e]=t),t.guideIds[i.id]=1})},detach:G0,handler:B0,activates:j0,prefetch:q0,initialize:function(e,t){(R0=t).Events.on("deliverablesLoaded",z0),t.Events.on("guideListChanged",D0),t.Events.on("guidesLoaded",U0),Ih(O0=new A0(F0))},teardown:function(){_h(O0),R0.Events.off("deliverablesLoaded",z0),R0.Events.off("guideListChanged",D0),R0.Events.off("guidesLoaded",U0)}};function D0(){z0(),H0(Yu())}function U0(){q0(Yu())}function G0(i,t){_.each(t[i.id],function(e){var n=e?t[e]:null;n&&(_.each(n.events,function(e,t){e&&e.guideIds&&(delete e.guideIds[i.id],_.size(e.guideIds)<=0)&&(Wu(n.target,t="mouseover"===t?"mouseenter":t,e.fn),delete n.events[t])}),_.size(n.events)<=0)&&(delete n.target[N0],n.target=null,delete t[e])}),delete t[i.id]}function B0(e,t){var n;!e.pendoActivatedGuide&&!k.data.get(e,"advanced")&&(n=f.get("adoptPrioritizeAdoptGuides"),t=_.compact(_.map(_.keys(t),N)),t=_.filter(t,function(e){return!(!e.steps||!e.steps.length||_.get(e,"attributes.dom.isOnlyShowOnce")&&e.steps[0].hasBeenSeen())}),t=_(t).chain().sortBy(function(e){return"staged"===e.state?0:1}).sortBy(function(e){e=e.isTraining;return n?e?0:1:e?1:0}).value(),t=_.find(t,function(e){var t=_.first(e.steps);return _.get(e,"attributes.resourceCenter",!1)&&e.isShown()?P.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||Yg(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function z0(){_.each(M0,function(e){G0(e,L0),e.targets=[]}),M0.length=0}function j0(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(lm())){var t=_.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=vd(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function H0(e){_.each(e,function(e){e=j0(e);e&&M0.push(e)})}function q0(e){f.get("disablePrefetch")||_.each(e,function(e){_.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&_.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent(!0)})}var W0=function(){(P0=P0||{dom:k,placeBadge:Lh,showPreview:$g,stopGuides:lh,removeAllBadges:Ph,_:_,sizzle:Er,tellMaster:Wa,tell:Wa,log:ny,attachEvent:p,createLauncher:_.constant({}),removeLauncher:_.noop,addGuideToLauncher:_.noop,updateLauncherContent:_.noop,DEFAULT_TIMER_LENGTH:uh,getOffsetPosition:Jo,getScreenDimensions:qo,registerMessageHandler:Pa,whenLoadedCall:Ju,loadResource:ka,loadGuideCss:Fm,GuideFactory:$d,GuideStep:Zd,extractElementTreeContext:Pu,previewGuideFromJSON:U.previewGuideFromJSON,hidePreviewedGuide:U.hidePreviewedGuide,shadowAPI:ti,getTarget:kr,pullContentsFromTargetElement:qg,doesElementMatchContainsRules:Wg,doesElementContentMatchRule:Vg,getGuideAttachPoint:hd}).areGuidesEnabled=!Km(),E.designer||(E.designer=P0)},V0=function(){var r,o,i;let a;return{name:"DesignerConnect",initialize:function(e,t){r=e,o=t,$a()||Pa("connect",n);Pa("pendo-designer-launch::launch",d),Pa("pendo-preview::launch",c),e.app_name=document.title,(Va()||window.opener)&&window.addEventListener&&(r.log(e.app_name+": listening to messages"),window.addEventListener("message",Oa,!1));window.opener&&r._.isFunction(window.opener.postMessage)&&window.opener.postMessage({type:"pendo::ready"},"*");r.onConnectMessage=n},teardown:function(){window.removeEventListener&&window.removeEventListener("message",Oa,!1),s(),Fa("connect"),Fa("pendo-designer-launch::launch"),Fa("pendo-preview::launch"),a&&(o.Events.appUnloaded.off(a),a=undefined);i=i&&undefined},onConnectMessage:n,disconnectDesigner:s,launchDesignerListener:d,launchPreviewListener:c,sendToken:u};function n(e,t){var n,i;r.designer||(n=t.origin,r.stopGuides(),r.buffers.lock(),i=t.source,xa=i,r.designerv2.hostConfig||(o.store.dispatch("frames/leave"),a=r._.partial(s,i,n),o.Events.appUnloaded.on(a)),W0(),Wa(t.source,{status:"success",type:"connect"},n),za("selection.js")&&(r.log("Designer Modules already loaded."),Wa({type:"ready"},n)),o.Events.designerLaunched.trigger())}function s(e,t){r.buffers.unlock(),E.designer&&(E.designer=null,delete E.designer),e&&Wa(e,{type:"unload"},t)}function u(e,t){var n;i&&(n={token:i,type:"pendo-designer-launch::set-token"},t.source.postMessage(n,t.origin),i=undefined)}function d(e,t){var n,t=t.data.token;t&&(i=t,Pa("pendo-designer-launch::get-token",u),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,sidebarDesigner:!!t.sidebarDesigner},r.designerv2.launchInAppDesigner(n))}function c(e,t){var n=t.data.config.preferredAgentInstallType;n&&n!==Se()?r.log("Skipping preview launch due to agent install type mismatch."):(n=r._.extend({},t.data.config,{origin:t.origin}),uo()&&(n.apiKey=r.apiKey),o.store.dispatch("preview/exitDesignerPreview"),o.store.dispatch("preview/start",n),Hh(window)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:r.apiKey,accountId:r.accountId},t.origin),av(),o.store.dispatch("frames/startPreview")))}}();const J0="__sg__";$0="promotedAgentMetadataConfigurations",Z0=[],X0={},Y0={};var K0,$0,Z0,X0,Y0,Q0={name:"PromoteMetadata",initialize:function(e,t){if(Z0=(K0=t).ConfigReader.get($0),Y0={},K0.agentStorage.registry.addLocal(J0,{isSecure:!0,serializer:JSON.stringify,deserializer:Rt}),Nn())try{X0=K0.agentStorage.read(J0)}catch(n){ob()}Z0&&Z0.length&&(K0.Events.on("metadata",nb),K0.Events.on("eventCaptured",sb),K0.Events.on("identify",ib))},teardown:function(){K0.Events.off("metadata",nb),K0.Events.off("eventCaptured",sb),K0.Events.off("identify",ib)},getPromotedMetadata:function(){return Z0},hasPromotedMetadataKind:eb,setSchemaGroup:nb,getSchemaGroup:tb,resetSchemaGroup:rb,resetCachedSchemaGroup:ob};function eb(t){return _.some(Z0,function(e){return e.kind===t})}function tb(){return Y0}function nb(e){var t;e?(e=e.data[0]["options"],e&&(t=e)):t=jl(),Y0=function(r){if(Nn())try{var e=K0.agentStorage.read(J0);X0=function(e){e=_.mapObject(e,(t,e)=>{const n={};return _.each(Object.keys(t),function(e){n[e.replace("agent__","")]=t[e]}),n});return e}(X0=e)}catch(t){ob()}var o=Y0;_.each(["visitor","account","parentAccount"],function(e){var t=eb(e),n=!_.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!_.isEmpty(X0)&&_.isEmpty(vs.get())&&(o[i]=ab(X0[i],e)),n)&&(t=ab(r[e],e),_.isEmpty(t)||(o[i]=Object.assign(Object.assign({},o[i]),t)))}),Nn()&&K0.agentStorage.write(J0,o);return o}(t)}function ib(e){e=e.data[0];_.get(e,"wasCleared")&&(K0.agentStorage.clear(J0),rb())}function rb(){Y0={}}function ob(){X0={}}function ab(e,i){var r={};return e&&_.each(e,function(e,t){var n=t.toLowerCase();Boolean(_.find(Z0,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function sb(e){e=e.data[0];e&&(_.isEmpty(Y0)&&nb(),_.isEmpty(Y0)||("track"===e.type?e.props.__sg__=Y0:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=Y0)))}function ub(e,t,n){this.element=e,this.method="element"==t?"click":"hover"==t?"mouseover":t,this.step=n,this.guide=n.getGuide()}ub.prototype.add=function(){0===_.indexOf(this.guide.steps,this.step)&&!ub.shouldAttachHandler(this.guide,this.method)||ud(this.guide)&&!dd(this.guide)||this.setupElementEvent(this.element,this.method)},ub.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},ub.prototype.setupElementEvent=function(e,t){this.advanceFn||(this.advanceFn=_.compose(_.bind(this.teardownElementEvent,this,e,t),_.bind(this.step.advance,this.step))),ub.attach(this.step,e,t,this.advanceFn)},ub.prototype.teardownElementEvent=function(e,t){C.info("detach onGuideAdvanced",{contexts:["guide"]}),Wu(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},ub.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||F0.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector};var db=null,cb=function(){return pd()?sd:ad},lb=function(e){return"#_pendo_g_"+e.id},pb=function(e,t){db=null;var n,i,r,o,e=Jo(e);return 0===e.height&&0===e.width?null:(n=t.guideElement,o=t.attributes.height,i=t.attributes.width,r=t.attributes.layoutDir,n.addClass(cb()),o=Eb(e,o,i,r),t&&(t.dim=o),n.css({width:o.width,height:o.height,left:o.left,top:o.top}),e.fixed&&n.css({position:"fixed"}),k("._pendo-guide-container_",n).addClass(o.arrowPosition).css({top:o.content.top,left:o.content.left,width:o.content.width,height:o.content.height}),hb(n[0],o),n[0])},hb=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=_.chain(n).filter(function(e){return e!==o}).map(function(e){return"border-"+e+"-width:"+E.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=k("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),u=k("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");_.each(n,function(e){s.removeClass(i+e+"_").removeClass(e),u.removeClass(r+e+"_").removeClass(e)}),s.addClass(i+o+"_").addClass(o).css(a+"top:"+t.arrow.top+"px;left:"+t.arrow.left+"px;"),u.addClass(r+o+"_").addClass(o).css(a+"top:"+t.arrow.border.top+"px;left:"+t.arrow.border.left+"px;"),k(e).append(s).append(u)},fb=function(e,t){t===undefined&&(t=Ku),e.element=gd(e);var n=e.element;if(!n)return C.info("No element found for step: "+e.id),null;fa(n);var i=pb(n,e);return null===i?null:(i.id=E.getTooltipDivId(e),k(i).appendTo(hd()),t.push(i),p(i,"mouseover",_.partial(k.addClass,i,"mouseover")),p(i,"mouseout",_.partial(k.removeClass,i,"mouseover")),yd(n,i),bb(e),n)},gb=null,mb=null;var vb=null,yb={top:"north",left:"east",bottom:"south",right:"west"},bb=function(e){try{var t,n,i,r,o,a,s,u;e.attributes&&e.attributes.blockOutUI&&e.attributes.blockOutUI.enabled&&(t=e.attributes.blockOutUI,(n=[]).push(e.element),i=bc(n=n.concat(_.compact(_.flatten(_.map(t.additionalElements,function(e){return _.toArray(k(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=yc(a=vc(),i,o),h=i,f=!_.isEqual(h,gb),gb=h,f||(l=a,p=!_.isEqual(l,mb),mb=l,p)||(d=s,c=!_.isEqual(d,vb),vb=d,c))&&(u={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(u["background-color"]=t.bgColor),t.opacity&&(u.opacity=t.opacity),_.each(s,function(e,t){t=yb[t],e=_.extend({},e,u),t=k("div._pendo-guide-tt-region-block_._pendo-region-"+t+"_")[0]||wb(t),k(t).css(e)}))}catch(g){C.info("Failed to add BlockOut ui",{contexts:["error"]})}var d,c,l,p,h,f},wb=function(e){e=k(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");k("body").append(e)},Sb=function(e){var t=_.isEqual(e,db);return db=e,!t},Eb=function(e,t,n,i){var r=E.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=qo();return o.width=Math.min(n,a.width),o.height=t,o.content.width=o.width-2*r,o.content.height=o.height-2*r,o=Ib(o,e,a,i=i||"auto"),o=_b(o,e,a,i),o=Cb(o,e,a)},Ib=function(e,t,n,i){return e.arrow.hbias=Fc(t,n,i),e},_b=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-mo(),t=(r=t.left-vo())+t.width,i<n.height/3?e.arrowPosition="top":i>2*n.height/3||"center"==e.arrow.hbias?e.arrowPosition="bottom":r<e.width&&n.width-t<e.width?e.arrowPosition="top":e.arrowPosition=e.arrow.hbias),e},Cb=function(e,t,n){var i,r,o,a=e.height,s=e.width;return je()?He(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=Te(9,6)?6:2,i=-1):"bottom"==e.arrowPosition&&(e.top=t.top-a,e.arrow.top=a-E.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=Te(9,6)?6:0,e.arrow.top+=8==xe?-1:0,i=1),r=10+E.TOOLTIP_ARROW_SIZE,o=s-3*E.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==Mc?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==Lc?(e.left=t.left-s+t.width/2+(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=o):(e.left=t.left+t.width/2-s/2,e.arrow.left=s/2-E.TOOLTIP_ARROW_SIZE),!1!==e.arrow.floating&&(n=e.left+s-n.width,0<(n-=Math.max(0,e.arrow.left+n-o))&&(e.left-=n,e.arrow.left+=n),o=-e.left,0<(o-=Math.max(0,r-(e.arrow.left-o))))&&(e.left+=o,e.arrow.left-=o),e.arrow.border.top=e.arrow.top+i,e.arrow.border.left=e.arrow.left):(e.arrow.hbias==Mc?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=Te(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==Lc&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=Te(10,6)?5:0,e.arrow.left+=7==xe&&6<=Ne?1:0,e.arrow.border.left=e.arrow.left+1),e.top=t.top-a/2+t.height/2,e.arrow.top=a/2-E.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e)},xb=430,Tb=200,kb=15;function Ab(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||E.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||E.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.getTriggers=function(e){var t=this,n=t.element||gd(t);return!n&&e?[]:(e=(t.advanceMethod||"").split(","),this.triggers=_.map(e,function(e){return new ub(n,e,t)}),this.triggers)},this.removeTrigger=function(e){this.triggers=_.without(this.triggers,e),0===this.triggers.length&&(this.triggers=null)},this.canShow=function(){return!zg(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(lm())&&Hg(t)},this.after("render",function(){fb(this,this.elements)&&(_.each(this.getTriggers(),function(e){e.add()}),Uc.attachScrollHandlers(this,this.onscroll))}),this.reposition=function(){var e=this.attributes.width,t=this.attributes.height,n=this.attributes.layoutDir,i=this.guideElement,r=k("._pendo-guide-container_",i),o=Jo(this.element),t=Eb(o,t,e,n);r.removeClass("top right bottom left").removeClass("_pendo-guide-container-top_ _pendo-guide-container-right_ _pendo-guide-container-bottom_ _pendo-guide-container-left_").addClass(t.arrowPosition).addClass("_pendo-guide-container-"+t.arrowPosition+"_"),k("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),hb(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,bb(this)},this.onscroll=function(e){pa(e.element)?(e.reposition(),jo(e.elements[0],"display:block")):jo(e.elements[0],"display:none")},this.teardownElementEvent=function(){_.each(this.triggers,function(e){e.remove()})},this.after("hide",function(){k("._pendo-guide-tt-region-block_").remove(),vb=mb=gb=null})),this}var Rb=function(e,t){var n=!!k("._pendo-backdrop_")[0];return _.get(t,"overlayDiv[0]")||(t.overlayDiv=k(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(hd())),je()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&k(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},Ob=function(e){var t=e.guideElement,n=E.TOOLTIP_ARROW_SIZE,i=e.attributes.height,e=e.attributes.width,e=Math.floor(e/2),i=Math.floor(i/2);t.addClass("_pendo-guide-lb_").css({top:"50%",left:"50%","margin-top":-i,"margin-left":-e}),k("._pendo-guide-container_",t).css({bottom:n,right:n}),je()&&t.css({position:"absolute"})},Nb=function(e,t){t===undefined&&(t=Ku),e.element=gd(e),Ob(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(Rb(n,e),e.guideElement);t.push(n[0]),n.appendTo(hd())},Mb=function(e,t){t===undefined&&(t=Ku),e.element=gd(e),e.guideElement.addClass("_pendo-guide-mobile-lb_");var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=Rb(n,e),e=e.guideElement,i=E.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(hd()),t.push(e[0]),p(n[0],"touchmove",r),p(e[0],"touchmove",r)};function Lb(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||E.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||E.LB_DEFAULT_WIDTH,e.after("render",function(){(pd()?Mb:Nb)(e,e.elements)}),e.reposition=function(){pd()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var Pb=500,Fb="_pendo-guide-banner_";function Db(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||Pb,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=E.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(Fb).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),ld()||e.addClass("_pendo-in_"),k("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=gd(n),n.elements.push(e[0]),e.appendTo(hd())})),n}function Ub(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(_.extend(n,{isShown:_.constant(!1),launch:u,onShown:u,render:function(){var e=n.guideElement,t=n.attributes.height;e&&e.html()||(e=k(document.createElement("div")).attr("id",Jg(n)).addClass("_pendo-guide-whatsnew_").html(n.getContent()),_.isNumber(t)&&!n.attributes.autoHeight&&e.height(t),n.seenState===r&&e.addClass(i),n.guideElement=e)},seen:s}),_.extend(t,{addToLauncher:function(){var e=n.guideElement;e&&!Yo(e[0])&&(k("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),ic.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){ld()||a()&&n.seenState!==r&&function(e){{var t,n;if(pa(e,/(auto|scroll|hidden)/))return(t=na(e))?(t=Qo(t),e=Qo(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(em(n.guideId,n.id,b(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,_.delay(function(){n.guideElement.addClass(i+" out")},_.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function u(){}}var Gb="_pendo-launcher-searching_",Bb="._pendo-launcher-search-box_ input";var zb,jb=function(e){return e&&_.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function Hb(){var e;return function(){var e;if(E.guideWidget)return(e=E.guideWidget.data)&&e.enableSearch}()&&(e=k(Bb)[0])&&0<(e=e.value).length?(e=Qe.call(e),[].concat(_.compact(e.split(" ")))):[]}function qb(e){if(!f.get("disablePrefetch"))return m.all(_.map(e,function(e){return e.fetchContent()}))}function Wb(e,t){return C.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||O,t&&0!==t.length?_.chain(e).filter(jb).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return _.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var Vb=function(){var e=od();if(wd()){if(E.guideWidget&&E.guideWidget.enabled){var t=t1(e),n=!0;if(E.guideWidget&&_.isFunction(E.guideWidget.update))E.guideWidget.update(t,n)}}else{l1();t=Qu(e),n=n1(t1(t));n!==zb&&g.dispatch("frames/changeGuideList",t),zb=n}},Jb="launcher-closed",Kb=null,$b=null,Zb=!(ub.attach=function(e,t,n,i){if(e){for(var r=ub.handlers=ub.handlers||{},o=r[e.id]=r[e.id]||[],a=0;a<o.length;++a){var s=o[a];t===s[0]&&n===s[1]&&(Wu(t,n,s[2],!0),o.splice(_.indexOf(o,s),1),a--)}o.push([t,n,i]),Wu(t,n,i,!0),p(t,n,i,!0)}}),Xb="_pendo-launcher-active_",Yb=null,Qb=function(){return""};function e1(e,t){Qb=t}function t1(e){var t,e=_.filter(e||O,jb);return e=e,0===(t=Hb()).length?e:(t=_.map(t,_.partial(Wb,e)),_.union.apply(_,t))}function n1(e){return at(_.map(e,function(e){var t=e.isWhatsNew()?[]:_.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function i1(e){var n=this,t=e.launchType||"badge",i=(_.extend(n,{show:function(){"badge"===t&&k(n.element).css("display: ;")},hide:function(){k(n.element).css("display: none;")},wrap:function(){var e=n.element;{var t;e&&/^img$/i.test(e.nodeName)&&(t=k(document.createElement("div")).addClass(e.className).append(e).appendTo(hd()),e.className="",n.element=t[0])}},dispose:function(){k.removeNode(n.element)},setActive:function(e){e?k(n.element).addClass(Xb):k(n.element).removeClass(Xb)}}),e),e=i.position||"bottom-right",r=document.createElement("img");k(n.element=r).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+e+"_"),i.launcherBadgeUrl&&(r.src=Xd(i.launcherBadgeUrl)),r.onerror=function(e){C.info("[Agent] Error! Unable to load guide center image "+i.launcherBadgeUrl),C.critical("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},je()&&(p(r,"mouseover",function(e){k(r).addClass("_pendo-launcher-badge-active_")}),p(r,"mouseout",function(e){k(r).removeClass("_pendo-launcher-badge-active_")}),k(r).css({position:"absolute"})),hd().appendChild(r)}function r1(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=kr(e),t=n();k(e).closest(t).length&&(m1()?h.write(Jb,"yes"):E.guideWidget.position(e),w1())}E.guideWidget.removeCountBadge=function(){k("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),_.extend(this,{getLauncherTarget:function(){return k(n())[0]},dispose:function(){Wu(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&k("._pendo-launcher-whatsnew-count_").remove()}}),p(document,"click",t)}function o1(){var n,s="bottom-right",u="bottom-left";return this.update=function(e,t){t=t?e:t1(e),e=n1(t)+at(Hb());return e!==n&&(n=e,this.updateLauncherContent(t)),d1(),0<t.length},this.updateLauncherContent=f1,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(Kb=new i1(e),e.height||310),n=(e.enableSearch&&(t+=je()?50:39),this&&!this.hidePoweredBy&&(t+=40),e.addHeight&&(t+=e.addHeight),this.height=t,e.width||330),i=(e.addWidth&&(n+=e.addWidth),this.width=n,k(document.createElement("div")).addClass("_pendo-launcher_")),r=($b=i[0],Jo(Kb.element)),r=Eb(r,t,n),o=(i.css({width:n,height:t}),E.TOOLTIP_ARROW_SIZE),n=k(document.createElement("div")).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=h1(),o=Xd(a1(this.template(t))),t=k(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),Sg(i[0],function(){y1(),h.write(Jb,"yes",288e5)}),t.on("click",function(e){var t=k(kr(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=N((t=/^launcher-(.+)$/.exec(Qe.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(Yg(t.steps[0],"launcher"),y1(),Vu(e))}),je()&&(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(hd()),_.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!Te(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=Jo(e),n=Eb(e,this.height,this.width),i=k($b),"badge"===(r=t.launchType||"badge")?(o=t.position,_.indexOf(a=[s,u,"top-left","top-right"],t.position)<0&&(o=s),_.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=_.contains([s,u],o)?"bottom":"top",n.arrow.hbias=_.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(),Cb(n,e,{width:Infinity,height:Infinity}),hb(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=w1,this}function a1(e){return e=_.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function s1(e,t){e.contentHostUrl&&(e.contentHostUrl=(n=e.contentHostUrl,i=location,(r=f.getLocalConfig("contentHost"))&&(n=(n=n.replace(/^pendo-static-\d+\.storage\.googleapis\.com$/,r).replace(/^pendo-\w+-static\.storage\.googleapis\.com$/,r).replace(/^cdn\.pendo\.io$/,r)).replace(/^https?:/,"").replace(/^\/\//,""),!/\./.test(n))&&!/^localhost/.test(n)&&/^\//.test(n)?i.host+n:n)),Yb=new r1(e);var n,i,r=o1.create(E.guideWidget);return _.isFunction(r.template)||(r.template=e.template?_.template(e.template):Qb),r.render(),r.position(Yb.getLauncherTarget()),t&&r.toggle(),r}o1.create=function(e){return _.reduce(o1.behaviors,function(e,t){return t.call(e)},e)},o1.behaviors=[Ch,o1,Vd.Launcher,function(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){k(Bb).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,E.disableGuideCenterContentSearch||this.before("update",qb),this.before("update",function(){t.text=Hb().join(" ");var e=k("._pendo-launcher_");t.text?e.addClass(Gb):e.removeClass(Gb)})),this},function(){var n=this;{var i;n.data&&n.data.onboarding&&(i=n.onboarding=n.onboarding||{},n.before("update",function(e){var e=_.filter(e,Jy),t=_.filter(e,function(e){return"complete"==n.guideStatus(e)}),e=i.total=e.length,t=(i.percentComplete=0<e?Math.round(t.length/e*100):0,k("._pendo-launcher_,._pendo-launcher-badge_"));e?(t.addClass("onboarding"),t.addClass("_pendo-launcher-onboarding_")):(t.removeClass("onboarding"),t.removeClass("_pendo-launcher-onboarding_"))}),n.getOnboardingState=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":e.isNotStarted()?"not-started":null})}return n},function(){var n=this,i=k(document.createElement("div")).addClass("_pendo-launcher-whatsnew-count_");n.data&&n.data.whatsnew&&n.data.whatsnew.enabled&&(n.before("updateLauncherContent",function(e){e=_.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=(_.each(t,function(e){e.show()}),_.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),_.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(){p1()?i.appendTo(this.data.launchElement):(Kb.wrap(),i.appendTo(Kb.element))}));return 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())<e?1:e<t?-1:0):n}}];var u1=function(){$b&&(k.removeNode($b),$b=null),Yb&&(Yb.dispose(),Yb=null),Kb&&(Kb.dispose(),Kb=null)},d1=function(){(!p1()&&(v1()||0<Hb().length)?c1:l1)()},c1=function(){Kb&&Kb.show()},l1=function(){p1()||y1(),Kb&&Kb.hide()},p1=function(){return!(!E.guideWidget||!E.guideWidget.data||"element"!==E.guideWidget.data.launchType)},h1=function(e){var t=jl(),t=_.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:rt(t)},E.guideWidget);return t.data=_.extend({},t.data),e&&(t.guides=e),t};function f1(e){var t=E.guideWidget.template||Qb,e=h1(e),e=k(document.createElement("div")).html(a1(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 g1=_.compose(d1,function(e,t){var n,i,r,o;jb(e)&&(n=k("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0])&&(e=(o=k("#launcher-"+e.id)).length?o[0]:(e=e,k(i=document.createElement("div")).addClass("_pendo-launcher-item_"),k(i).attr("id","launcher-"+e.id),(r=document.createElement("a")).href="#",r.innerHTML=e.name,i.appendChild(r),i),o=0<o.length,_.isNumber(t)&&(r=k("._pendo-launcher-item_"))[t]?e.id!=r[t].id&&n.insertBefore(e,r[t]):n.appendChild(e))}),m1=function(){return k($b).hasClass(Xb)},v1=function(){return 0<k("._pendo-launcher-item_").length},y1=function(){var e;$b&&(e=k($b))&&e.hasClass(Xb)&&(e.removeClass(Xb),Kb)&&Kb.setActive(!1)},b1=function(){var e;$b&&(e=k($b))&&!e.hasClass(Xb)&&(e.addClass(Xb),Kb)&&Kb.setActive(!0)},w1=function(){$b&&!Zb&&(m1()?y1:b1)()};var S1=function(){try{var e=E.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};u1(),!pd()&&!n.desktop||pd()&&!n.mobile||Va()&&!n.iframe||e.enabled&&(s1(t),l1())}catch(i){C.critical("ERROR while initializing launcher",{error:i})}},E1=function(e){e.defaultLauncher=e1,_.each(e._defaultLauncher_queue,e=>{e1.apply(null,e)}),e._defaultLauncher_queue=[],e.toggleLauncher=w1,e.showLauncher=b1,e.hideLauncher=y1,e.removeLauncher=u1,e.initLauncher=S1,e.createLauncher=s1,e._addGuideToLauncher=g1,e.launcherToolTipDiv=$b},I1=function(){S1()},_1=function(){var e;(e=E).designer&&(e.designer.createLauncher=s1,e.designer.removeLauncher=u1,e.designer.addGuideToLauncher=g1,e.designer.updateLauncherContent=f1)},C1=function(){var e;(e=E).debugging&&(e.debugging.getLauncherGuides=t1)},x1=function(e){return i=E.guideWidget,e=e,r=i&&i.data,e=_.filter(e,function(e){e=_.first(e.steps);return e&&"launcher"===e.type}),(e=_.first(_.sortBy(e,function(e){return-e.lastUpdatedAt})))&&r&&(e=_.first(e.steps),_.extend(r,_.pick(e,"contentUrl","contentUrlCss","contentUrlJs"),e.attributes),_.defaults(r,{whatsnew:{},knowledgebase:{}}),r.id=e.guideId+e.id),n=(t=i)&&t.data||{},!0!==f.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?Dd.verify(n).then(function(){return Qd.load(n)}).then(function(e){return n.template=e.content,_.extend(t,e)}):m.resolve();var t,n,i,r},T1=function(e,t){E1(e),t.Events.on("guidesLoaded",I1),t.Events.on("designerLaunched",_1),t.Events.on("debuggerLaunched",C1),t.GuideLoop.addUpdatePhase(Vb),Rm.push(x1),t.agentStorage.registry.addLocal(Jb,{duration:864e6})},k1=function(e,t){var n;n=x1,0<=(n=_.indexOf(Rm,n))&&Rm.splice(n,1),t.GuideLoop.removeUpdatePhase(Vb),t.Events.off("guidesLoaded",I1),t.Events.off("designerLaunched",_1),t.Events.off("debuggerLaunched",C1)};fv.Extensions.API.addTopic("Launcher",{addBehavior(e){o1.behaviors.push(e)}});var A1,R1,O1,N1,M1={name:"P1Guides",initialize:function(e,t){var n;O1=t,A1=(R1=e).dom,N1=[Ab,Lb,Db,Ub,F1,D1,P1,L1],-1<_.indexOf(Zd.behaviors,Ab)||(n=_.indexOf(Zd.behaviors,Yy),Zd.behaviors.splice.apply(Zd.behaviors,[n,0].concat(N1)),t.Events.guideLoopStopped.on(l1),e.TOOLTIP_DEFAULT_WIDTH=xb,e.TOOLTIP_DEFAULT_HEIGHT=Tb,e.TOOLTIP_ARROW_SIZE=kb,e._showElementGuide=fb,e._createTooltip=pb,e._get_tooltip_dimensions=Eb,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e._showLightboxGuide=Nb,T1(e,t))},teardown:function(){k1(0,O1),O1.Events.guideLoopStopped.off(l1),R1._.each(N1,function(e){e=_.indexOf(Zd.behaviors,e);0<=e&&Zd.behaviors.splice(e,1)}),N1=[]}};function L1(){const o=this;return"tooltip"!==o.type||o.domJson||(o.checkPlacement=function(){var e,t,n,i,r;e=o,r=Jo(e.element||gd(e)),bb(e),Sb(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=Eb(r,n,i,t),(i=k(lb(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),hb(i,n))}),o}function P1(){var i=this;return i.attributes&&i.attributes.autoHeight&&(i.after("render",function(){i.guideElement&&i.guideElement.length&&(i.resize(),i.attachEvent(i.guideElement[0],"load",function(){i.resize()}))}),i.resize=function(){var e,t=E.TOOLTIP_ARROW_SIZE,n=i.guideElement;n&&(e=A1("._pendo-guide-container_",n),"tooltip"==i.type||je()&&"lightbox"==i.type?e.css({width:i.attributes.width-2*t,height:""}):e.css({right:t,bottom:""}),i.attributes.height=e.height()+2*t,n.height(i.attributes.height),i.reposition())}),i}function F1(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&Sg(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||Pg(t)})}),t}function D1(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||cd(e.guide)||e.after("render",function(){Bg(e.guideElement[0])}),e}var U1,G1,B1={name:"Branding",initialize:function(e,t){U1=e,(G1=t).ConfigReader.get("isPendoFree")&&G1.Events.on("guideSeen",z1)},teardown:function(){G1.Events.off("guideSeen",z1)},addBranding:j1};function z1(e){j1(U1,e)}function j1(e,t){var n,i,r,t=t.data[0].props;t.step_poll_types&&-1<t.step_poll_types.indexOf("NPSRating")&&(e=-1<(t=e.findGuideById(t.guide_id).steps[0].guideElement[0].lastElementChild).dataset.verticalAlignment.indexOf("Bottom"),n=""!==t.style.width,(i=document.createElement("a")).href="https://www.pendo.io/pendo-free/nps?utm_source=pendo_app&utm_medium=branded-nps&utm_campaign=free-branded-nps",i.target="_blank",(r=document.createElement("img")).setAttribute("src",ao()+"/img/nps-branding.png"),i.appendChild(r),i.style.display="inline-block",(r=document.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))}var H1,q1=function(){let r;var o,n,i;const a="automation",e=250,t=500,s=0,u=10;return{name:"ActionAutomation",automationQueue:void 0,initialize:function(e,t){o=e,n=t,r=o._,this.automationQueue=[],t.EventRouter.registerAction(a,e._.bind(d,this))},teardown:function(){n.EventRouter.deregisterAction(a),this.automationQueue=[]},guideActivity:d,getAutomationFromGuide:function(i,e){return r.reduce(e,function(e,t){var n=r.find(i,function(e){return e.id===t});return n?e.push(n):o.log("could not find automation for "+t,"debug"),e},[])},getAutomationConfigs:function(e){if(!e||e.length<=0)return[];if(!i)return[];var t=i.guide,n=i.step;if(!t||!n)return[];n=t.automations;if(!n||!n.length)return[];n=this.getAutomationFromGuide(n,e),e=n[n.length-1];if(this.isAutomationInQueue(e))return o.log("Automation is already in queue autoId: "+e.id+", guideId: "+t.id,"debug"),[];return n},getTarget:function(e){e=e.target.elementPathRules,e=o.Sizzle(e,document);return e&&e[0]},getElement:function(n,i=u){return new Qt(r.bind(function(t){return Ut(r.bind(function(){var e=this.getTarget(n);e&&!e.disabled||i<1?t(e):this.getElement(n,i-1).then(function(e){t(e)})},this),e)},this))},getValue:function(e){return e.value},injectText:function(e,t){let n;"INPUT"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"));"TEXTAREA"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype,"value"));n&&"function"==typeof n.set?n.set.call(e,t):e.value=t;t=new InputEvent("input",{bubbles:!0,data:t[t.length-1]}),t.simulated=!0,e.dispatchEvent(t),t=new InputEvent("change",{bubbles:!0});t.simulated=!0,e.dispatchEvent(t)},simulateClick:function(e){e.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0,cancelable:!0})),e.click()},isAutomationInQueue:function(t){return!!r.find(this.automationQueue,function(e){return t.id===e.id})},popQueue:function(){let e=s;const n=this.automationQueue[0];"autoclick"===n.type&&(e=t);return Ut(r.bind(function(){return this.getElement(n,u).then(r.bind(function(e){if(e)if(e.disabled)this.automationQueue=[],o.log("automation target found but disabled. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug");else{switch(n.type){case"autofill":var t=this.getValue(n);this.injectText(e,t);break;case"autoclick":this.simulateClick(e)}this.automationQueue.shift(),this.automationQueue.length&&this.popQueue()}else this.automationQueue=[],o.log("automation target element not found. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug")},this))},this),e)},setActive:function(e){i=e}};function d(e){var t;e.step&&(this.setActive({guide:e.step.guide,step:e.step}),e.params)&&((e=r.find(e.params,function(e){return"automationIds"===e.name&&r.isArray(e.value)&&e.value.length}))?(e=this.getAutomationConfigs(e.value),t=!this.automationQueue.length,this.automationQueue=this.automationQueue.concat(e),t&&this.popQueue()):o.log("no automation ids were found","debug"))}}();function W1(e,i){return"undefined"!=typeof Proxy&&_.isFunction(i)?new Proxy(e,{get(e,t){if("textContent"===t)return i(e);if("parentNode"===t){var n=e[t];if(e.ownerDocument!==n)return W1(e[t],i)}return _.isFunction(e[t])?function(){return e[t].apply(e,arguments)}:e[t]}}):e}const V1=function(){let n,l,p,h,t;const i=$n(function(n){{var e;p.eventProperties&&p.eventProperties.length&&(e=function c(i){var r=h.ConfigReader.get("eventPropertyMatchParents");var e=v();var t={};var n;for(var o=0;o<p.eventProperties.length&&v()-e<50;o++){n=p.eventProperties[o];var a=p._.any(n.featureRules,function(e){try{var t=f(r,l);return t(i,e)}catch(n){return!1}});if(a)for(var s=0;s<n.eventPropertyRules.length&&v()-e<50;s++){var u=n.eventPropertyRules[s];if(!u.name)return;t[u.name]=m(u,i)}}var d=v()-e;if(50<d){if(r&&l===p._.identity&&p._.isFunction(p.getText))return p.log("switching event property collection to fast text implementation"),l=function(e){return W1(e,function(e){return p.getText(e,128)})},c(i);g(50,n)}return t}(n.target),p._.each(p._.pairs(e),([e,t])=>{n.addEventProperty(e,t)}))}}),r=$n(function(){var e={};if(n)return{};var t=h.ConfigReader.get("eventPropertyConfigurations");if(!t||p._.isEmpty(t))return{};if(e=function(e){for(var t,n=v(),i={},r=0;r<e.length&&v()-n<50;r++){if(!(t=e[r]).name)return;var o=m(t);me(o)&&(i["_pendo_"+t.name]=o)}50<v()-n&&g(50,t);return i}(t),p._.isEmpty(e))return{};return e});return{name:"EventProperties",initialize:function(e,t){p=e,h=t,l=p._.identity,n=!1,p.getEventPropertyTarget=s,p.previewEventProperty=m,h.Events.onClickCaptured.off(o),h.Events.onClickCaptured.on(o),h.Events.ready.on(a)},teardown:function(){h.Events.onClickCaptured.off(o),h.Events.ready.off(a),h.store.dispatch("location/removeInternalTransforms",t),t=[],h.store.dispatch("location/stopPolling")},collectClickEventProperties:i,collectEventProperty:m,collectPageEventProperties:r,getEventPropertyTarget:s,addPageEventProperties:a};function f(e,n){return e?function(e,t){return 0<p.dom(n(e)).closest(t).length}:function(e,t){return p.Sizzle.matchesSelector(e,t)}}function o(e){i(e.data[0])}function a(){var e;t=(e=h.ConfigReader.get("eventPropertyConfigurations"))&&!p._.isEmpty(e)?[new xy("search","AddTo",function(){return r()})]:[],h.store.dispatch("location/addInternalTransforms",t),0<t.length&&h.store.dispatch("location/startPolling")}function g(e,t){p.log("event property collection disabled; collection took greater than "+e+" milliseconds.");e="ERROR event property collection exceeded time limit.";t.featureId?e+="\n For feature with id: "+t.featureId:e+="\n For page event with name: "+t.name,h.log.critical(e),t.featureId?p.eventProperties=[]:n=!0}function m(e,t){if(e.path)return t=s(e,t),p._.get(t,e.path,undefined)}function s(e,t){e=e.source||e.selector;if(e&&t){for(var n,i=e,r=t;!n&&r;){try{if((n=p.Sizzle.matchesSelector(r,i)?r:p.Sizzle(i,r)[0])&&("password"===n.type||"hidden"===n.type))return}catch(o){return}r=ti.getParent(r)}return n}return e?!(t=p.Sizzle(e)[0])||"password"!==t.type&&"hidden"!==t.type?t:void 0:window}}();function J1(){var e;Th().enabled&&(g.commit("debugger/debuggingEnabled",!0),K1(),k("#pendo-client-debugger").length||(e=f.get("agentDebuggerPluginLoader"),fv.restartDebugger?fv.restartDebugger():"function"==typeof e?e():((e=document.createElement("script")).src=Z(E).createScriptURL(so("debugger-plugin.min.js")),e.setAttribute("id","pendo-debugger-plugin"),f.get("pendoGlobalKey")&&e.setAttribute("data-pendo-global-key",f.get("pendoGlobalKey")),k.getBody().appendChild(e)),y.debuggerLaunched.trigger()))}function K1(){H1=H1||{store:g,ConfigReader:f,getState(){return JSON.stringify(g.state)},getEventCache(){return[].concat(Za)},getAllGuides(){return[].concat(O)},getAutoGuides(){return Qp.sortAndFilter(O,E.autoOrdering)},getBadgeGuides(){return _.filter(O,ud)},getLauncherGuides(){return[]},getEventHistory(){return[]},getAllFrames(){return g.getters["frames/allFrames"]()},getChannelType(){return g.getters["frames/channelType"]()},isStepShownInFrame(e,t){return g.getters["frames/isShownInFrame"]()(e,t)},setActiveGuides:ed,getBody:k.getBody,isMobileUserAgent:ze.isMobileUserAgent,areGuidesDelayed:$m,doesElementMatchContainsRules:Wg,getMetadata:jl,isStagingServer:re,AutoDisplay:Qp,isLeader:wd,Events:y,observer:Av,guideCache:Vm},E.debugging=H1}function $1(e){if(kh())return e?t:"debugging already enabled";if(!wd())return;const t=Th();return t.enabled=!0,h.write(xh,t),J1(),e?t:"debugging enabled"}function Z1(){if(!kh())return"debugging already disabled";g.commit("debugger/debuggingEnabled",!1);var e=Th();return e.enabled=!1,h.write(xh,e),E.debugging=null,delete E.debugging,k("#pendo-client-debugger").remove(),"debugging disabled"}_.extend(function(e){C.debug(e,{contexts:["debug"]})},H1);const X1=(e,t,n)=>{if(t.getters["frames/leaderExists"]())return n.resolve();const i=n.defer();return e.on("leaderChanged",()=>{i.resolve()}),i.promise},Y1=function(){let t,o;return{name:"DebuggerLauncher",initialize:function(n,e){const{Events:i,q:r}=e;o=e.store,X1(i,o,r).then(()=>{o.dispatch("debugger/init"),o.getters["frames/isLeader"]()&&J1()}),Pa("pendo-debugger::launch",(e,t)=>{e.config.apiKey===n.apiKey&&X1(i,o,r).then(()=>{t.source.postMessage({type:"pendo-debugger::ready",apiKey:n.apiKey},t.origin),!kh()&&o.getters["frames/isLeader"]()&&$1(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",a);(t=n).isDebuggingEnabled=(e=!1)=>kh(e),n.enableDebugging=$1,n.disableDebugging=Z1,n.addDebuggingFunctions=K1},teardown:function(){Fa("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",a),t.debugging&&t.debugging.teardown&&t.debugging.teardown();Z1()}};function a(e){var{blockedURI:e,documentURI:t,originalPolicy:n,violatedDirective:i}=e;e&&-1!==e.indexOf("pendo")&&o.dispatch("debugger/onCspError",{blockedURI:e,documentURI:t,originalPolicy:n,violatedDirective:i})}}(),Q1=function(){let i,a=0,s,u,d,c,l=[];const p=100,h=9;let f;const o=4,g=500,m=["TEXTAREA","INPUT"];let v=!0,y={},n,b,r;const w="previous_page_loads";let S;const E="errorClickLogging",I=1500;let _=!1;return{name:"FrustrationEvent",initialize:function(e,t){S=e,c=S._,i=t,a=0,l=[],f=[],y={},_=i.ConfigReader.get(E),this.detachErrorEvent=i.attachEvent(window,"error",L,!0),this.detachDocumentEvents=function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange","visibilitychange","selectionchange","scroll"],t=[];for(var n=0;n<e.length;n++)switch(e[n]){case"selectionchange":t.push(i.attachEvent(window,e[n],T,!0));break;case"visibilitychange":t.push(i.attachEvent(window,e[n],()=>{x(250)},!0));break;default:t.push(i.attachEvent(window,e[n],x,!0))}return t}(),i.Events.on("eventCaptured",F),i.agentStorage.registry.addSession(w),S.sniffer.MutationObserver&&(e=lt("MutationObserver"),(n=new e(k)).observe(S.dom.getBody(),{childList:!0,attributes:!0,subtree:!0}))},teardown:function(){i.Events.off("eventCaptured",F),this.detachErrorEvent&&(this.detachErrorEvent(),this.detachErrorEvent=null);if(this.detachDocumentEvents){for(var e=0;e<this.detachDocumentEvents.length;e++)this.detachDocumentEvents[e]();this.detachDocumentEvents=null}n&&n.disconnect()},addErrorClickLog:O,getErrorEventTarget:M,checkErrorEvent:L,observeDOMMutation:k,checkFrustrationEvent:F};function C(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()){(l=c.filter(l,e=>t-e.timestamp<=p)).length&&Ut(C,p)}function x(e=g){v=!1,c.each(y,e=>{clearTimeout(e)}),y={},Ut(()=>{v=!0},e)}function T(){var e=document.getSelection().toString();(b||e.length)&&(x(),b=!!e.length)}function k(e){e.length&&x()}function t(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function A(e){return e&&t(e.element)}function R(e,t){var{frustrationTypes:n=[]}=e;c.contains(n,t)||(n.push(t),e.frustrationTypes=n)}function O(e,t){let n;var{detail:i={}}=t;(n=(A(i)&&i.error?i.error:t).message)&&n.length>I&&(n=n.substring(0,I)),e.errorClickLog=n}function N(e,t){var n=t.target&&"A"===t.target.tagName&&t.target.hasAttribute("href"),i=t.target&&!c.contains(m,t.target.tagName);if(v&&!b&&i&&!n){var r=e;const o=Ut(()=>{delete y[o],R(r,"deadClick")},g);y[o]=o}l.length>h&&l.pop(),l.unshift({target:t.target,activeElement:document.activeElement,browser_time:e.browser_time,timestamp:t.timeStamp}),Ut(C,p),c.each(f,e=>{L(e)}),s?(i=t,e.browser_time-s<=1e3&&Math.abs(u-i.x)<=30&&Math.abs(d-i.y)<=30?a++:(a=1,u=t.x,d=t.y),s=e.browser_time,4===a&&(s=null,R(e,"rageClick"))):(s=e.browser_time,u=t.x,d=t.y,a=1)}function M(e){if(t(e.target))return{detail:e={}}=e,A(e)?e.element:t(document.activeElement)?document.activeElement:void 0}function L(t){const n=M(t);if(n){const i=c.find(l,e=>(e.target===n||e.activeElement===n)&&t.timeStamp-e.timestamp<p);if(i){const r=e=>e.browser_time===i.browser_time&&"click"===e.type;var e=c.find(S.buffers.events,r)||c.find(S.buffers.silos,e=>c.find(e,r));e&&(R(e,"errorClick"),_)&&O(e,t)}else c.contains(f,t)||f.push(t),f.length>o&&f.pop()}}function P(e){r=function(){let e=i.sessionStorage.getItem(w);return null!=e&&0<e.length&&(e=JSON.parse(e)),c.isArray(e)?e:[]}(),function(e){var t,n;if(!(r.length<2))return t=r[0],n=r[1],t&&n&&t.url&&n.url&&t.browser_time&&n.browser_time?t.url===e.url&&e.browser_time-n.browser_time<=7e3&&n.url!==e.url:void 0}(e)&&R(e,"uTurn"),2===r.length&&r.shift(),r.push({url:e.url,browser_time:e.browser_time}),e=r,i.sessionStorage.setItem(w,JSON.stringify(e))}function F(e){var t=e.data[0],e=e.data[1],e=("click"===t.type&&e&&N(t,e),"load"===t.type&&P(t),"submit"!==t.type&&"change"!==t.type||x(),c.has(e,"target")&&c.contains(m,e.target.tagName));"focus"===t.type&&e&&x()}}(),ew=function(){let n,i,o;const a=[];let e=[];return{name:"EmbeddedGuides",activeEmbeddedGuides:a,initialize:function(e,t){n=t,i=e,o=i._,function(e){e.getEmbeddedGuides=tw,e.getActiveEmbeddedGuides=nw}(e),n.Events.on("deliverablesLoaded",d),n.Events.on("guideLoopStopped",r),n.Events.on("guideListChanged",f),n.Events.on("urlChanged",c),n.Events.on("guideAdvanced",s),n.GuideLoop.addUpdatePhase(u),n.guides.addProcessor(l),n.GuideActivity.registerGuideResolver(h),this.removeResizeEvent=e.attachEvent(window,"resize",p)},teardown:function(){d(),n.Events.off("deliverablesLoaded",d),n.Events.off("guideLoopStopped",r),n.Events.off("guideListChanged",f),n.Events.off("urlChanged",c),n.Events.off("guideAdvanced",s),n.GuideLoop.removeUpdatePhase(u),n.guides.removeProcessor(l),n.GuideActivity.removeGuideResolver(h),this.removeResizeEvent&&this.removeResizeEvent();e.length=0}};function r(){n.ConfigReader.get("delayGuides")&&o.forEach(a,function(e){e.isShownInThisFrame()&&e.hide()})}function s(e){const t=o.get(e,"data.0.props.guide_id",null);t&&(e=a.find(({id:e})=>e===t))&&e.hide()}function u(){o.forEach(a,function(e){e.process()})}function d(){e=o.toArray(a),n.guides.removeDisplayableGuides("embeddedGuides"),a.length=0}function c(){o.forEach(a,function(e){e.forceShowFirstStep=!!o.get(e,"attributes.restartOnReload")})}function l(t){var e;return!(e=t)||!e.launchMethod||"embed"!==e.launchMethod||(o.some(a,({id:e})=>e===t.id)||a.push(t),!1)}function p(){Qm()||o.forEach(a,function(e){e=e.getActiveStep();e&&!i.ignoreResize&&e.redraw()})}function h(n){if(a.length){var i="pendo-base-";if(o.isString(n.id)&&0===n.id.indexOf(i)){var r=n.id.substring(i.length);let e,t;return(e=o.find(a,e=>{t=o.find(e.steps,e=>{if(e.id===r)return e});return!!t}))&&t?{guide:e,step:t}:null;return}else return o.isObject(n.parentElem)?h(n.parentElem):null}return null}function f(){o.each(e,function(t){var e=o.findIndex(a,function(e){return e.id===t.id});-1===e&&t.isShownInThisFrame()?t.hide():t.isFrameProxy||(a[e]=t)}),e.length=0,n.guides.registerDisplayableGuides("embeddedGuides",a),o.map(a,function(e){!function({globalPendo:o,pluginApi:e}){const a=o["_"],i=e["store"],r=(this.process=function(){let e=null;var t,n=a.get(this,"attributes.embedConfig.selector"),i=a.get(this,"attributes.embedConfig.method"),n=a.first(o.Sizzle(n)),r=this.isShownInThisFrame();n&&r&&(t="#pendo-guide-container-"+a.get(this.getActiveStep(),"id"),e=!!o.Sizzle(t,n).length),!r&&n&&this.shouldAutoDisplay()?"replace"===i&&o.Sizzle('[id^="pendo-guide-container"]',n).length||this.show("embed"):!r||n&&e||this.hide()},this.getActiveStep=function(){return this?a.find(this.steps,function(e){return e.isShown()}):null},this.shouldAutoDisplay=function(){return this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||a.all(this.steps,function(e){return e.shouldRepeat()||!e.isSnoozed()&&"dismissed"!==e.seenState})},this.show=function(e){var t,n=a.first(this.steps);return this.forceShowFirstStep?(this.forceShowFirstStep=!1,n.show("reason")):(t=this.steps.map(e=>a.get(i,"state.guideState.steps."+e.id,r(e))),(t=a.max(t,function({time:e}){return e}))&&"advanced"==t.state&&!t.destinationStepId?this.findStepById(t.guideStepId).dismiss():(this.nextStep(t)||n).show(e))},this.hasOwnProperty("forceShowFirstStep")||(this.forceShowFirstStep=a.get(this,"attributes.restartOnReload")),this.isShownInThisFrame=function(){return a.any(this.steps,function(e){return e.isRendered()||e.isLocked()})},({id:e,guideId:t,seenReason:n,seenState:i,lastSeenAt:r,destinationStepId:o})=>({guideId:t,guideStepId:e,seenReason:n,state:i,time:r,destinationStepId:o}))}.call(e,{globalPendo:i,pluginApi:n}),o.map(e.steps,function(e){!function({pluginApi:n}){if(this._onShown||Object.defineProperty(this,"_onShown",{value:this.onShown,writable:!1,configurable:!1}),!this._onShown)return null;this.onShown=function(e){var t=!this.lastSeenAt||!!n.ConfigReader.get("enableAllEmbeddedGuideEvents");return this._onShown(e,t)}}.call(e,{pluginApi:n,_:o})})})}}();function tw(){return ew.activeEmbeddedGuides}function nw(){return ew.activeEmbeddedGuides.filter(e=>e.isShown())}const iw="sessionId";class rw{constructor(){this.name="SessionManager"}initialize(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"identify",_.bind(this.changeIdentity,this)),this.api.attachEvent(this.api.Events,"eventCaptured",_.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",18e5),this.suffix=this.api.ConfigReader.get("identityStorageSuffix"),this.api.agentStorage.registry.addLocal(iw,{cookieSuffix:this.suffix,isSecure:!0})}changeIdentity(e){var t;e&&e.data&&e.data.length&&({visitor_id:e,old_visitor_id:t}=e.data[0],e===t||this.pendo.isAnonymousVisitor(t)||this.expireSession())}teardown(){_.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0}isExpired(e,t){e=_.get(e,"timestamp");return!this.pendo._.isNumber(e)||t-e>this.inactivityDuration}expireSession(){var e=this.clearSessionInfo();return this.api.Events.sessionChanged.trigger(e),e}eventCaptured(t){if(t&&t.data&&t.data.length){var t=t.data[0],n=t.browser_time||(new Date).getTime();let e=this.sessionInfo();!t.hasUserInteraction&&"recording"===t.type||(this.isExpired(e,n)&&(e=this.expireSession()),this.storeLastInteractionEventInformation(e,n)),t.sessionId=e.sessionId}}sessionInfo(e=this.pendo.randomString(16)){let t=this.api.agentStorage.read(iw)||this.api.agentStorage.read(iw,!1,"");return t||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(iw,t)),JSON.parse(t)}clearSessionInfo(){return this.api.agentStorage.clear(iw),this.api.agentStorage.clear(iw,!1,""),this.sessionInfo()}storeLastInteractionEventInformation(e,t){e.timestamp=t,this.api.agentStorage.write(iw,JSON.stringify(e))}}var ow=new rw;function aw(e,t,s,u){return new(s=s||Qt)(function(n,i){function r(e){try{a(u.next(e))}catch(t){i(t)}}function o(e){try{a(u["throw"](e))}catch(t){i(t)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}a((u=u.apply(e,t||[])).next())})}class sw{constructor(){this.name="SegmentFlags"}initialize(e,t){var n="requestSegmentFlags",e=(this.pendo=e,(this.api=t).ConfigReader);e.addOption(n,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],!1),this.segmentFlagsEnabled=e.get(n),this.segmentFlagsEnabled&&(this.mostRecentSegmentsRequest=null,this.pendo.segmentsPayload=this.pendo._.bind(this.segmentsPayload,this),this.handleMetadataChange=this.pendo._.debounce(this.pendo._.bind(this.requestSegmentFlags,this),50),this.handleReadyBound=this.pendo._.bind(this.handleReady,this),this.api.Events.ready.on(this.handleReadyBound),this.api.Events.metadata.on(this.handleMetadataChange),this.api.Events.identify.on(this.handleMetadataChange))}teardown(){this.segmentFlagsEnabled&&(this.pendo.segmentsPayload=this.pendo._.noop,this.handleMetadataChange.cancel(),this.api.Events.ready.off(this.handleReadyBound),this.api.Events.metadata.off(this.handleMetadataChange),this.api.Events.identify.off(this.handleMetadataChange))}handleReady(){this.ready=!0,this.requestSegmentFlags()}requestSegmentFlags(){if(this.ready){var t=this.pendo._.uniqueId(),n=(this.mostRecentSegmentsRequest=t,{visitorId:this.pendo.get_visitor_id(),accountId:this.pendo.get_account_id(),metadata:this.pendo.getSerializedMetadata(),url:this.pendo.url.get()}),i=this.pendo.compress(n),t={id:t,jzb:i,v:this.pendo.VERSION,ct:(new Date).getTime()},n=(this.api.agent.treatAsAdoptPartner()&&n.accountId&&"ACCOUNT-UNIQUE-ID"!==n.accountId&&(t.acc=this.api.util.base64EncodeString(n.accountId)),"script"===this.pendo.LOADER?"segmentflag.js":"segmentflag.json");let e=this.api.transmit.buildBaseDataUrl(n,this.pendo.apiKey,t);var r,n=this.api.agent.getJwtInfoCopy();try{e.length>this.api.constants.URL_MAX_LENGTH||!this.pendo._.isEmpty(n)?(delete t.jzb,e=this.api.transmit.buildBaseDataUrl("segmentflag.json",this.pendo.apiKey,t),r=this.pendo._.extend({events:i},n),this.postLoad(e,r)):"script"===this.pendo.LOADER?this.scriptLoad(e):this.getLoad(e)}catch(o){this.api.log.error("Failed to load segment flags",{error:o})}}}segmentsPayload(e){!this.mostRecentSegmentsRequest||this.pendo._.isString(e.id)&&e.id!==this.mostRecentSegmentsRequest||(this.pendo.segmentFlags=e.segmentFlags,this.api.log.info("successfully loaded segment flags"),this.mostRecentSegmentsRequest=null)}scriptLoad(e){this.pendo.loadResource(e,this.pendo._.noop)}getLoad(t){return aw(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.get(t);this.segmentsPayload(e.data)})}postLoad(t,n){return aw(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.postJSON(t,n);this.segmentsPayload(e.data)})}}var uw=new sw;const dw=["google","bing","yahoo","duckduckgo","baidu","yandex","aol","ask","excite","lycos","webcrawler","infoseek","dogpile","altavista","netscape","hotbot","looksmart","gigablast","teoma","alltheweb","search.com","mamma","metacrawler","ixquick","searchy","searchalot","searchengine","searchenginez","searchengineland","searchenginewatch","searchengineworld","searchenginejournal","searchengineguide","searchengineforums"],cw=new RegExp(`(${dw.join("|")})`,"i"),lw=["facebook","twitter","linkedin","instagram","pinterest","tiktok","snapchat","twitch","reddit","quora","tumblr","flickr","discord","twitch","whatsapp","telegram","weibo","qq","line"],pw=["t.co","x.com"],hw=new RegExp(`(${lw.join("|")})`,"i");function fw(e,t){return ww(hw,e)||t.contains(pw,e)}const gw=["youtube","vimeo","dailymotion","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"],mw=new RegExp(`(${gw.join("|")})`,"i"),vw=["amazon","ebay","walmart","etsy","shopify","shop","target","bestbuy","costco","temu","alibaba","aliexpress"],yw=new RegExp(`(${vw.join("|")})`,"i");const bw=new RegExp(`(${["google performance max","microsoft audience network","facebook audience network"].join("|")})`,"i");function ww(e,t){return"self"!==t&&"direct"!==t&&null!==t.match(e)}function Sw({referrer:e,currentHost:t}){if(!e||""===e)return"direct";e=new Zn(e).hostname;let n="self";return n=e!==t?null==e?void 0:e.toLowerCase():n}const Ew=new RegExp("^(.*cp.*|ppc|retargeting|paid)$"),Iw=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i");function _w(e="",t){return e.replace(/[^a-zA-Z]/g,"").includes(t)}const Cw=[[undefined,({medium:e,source:t,referrer:n,gclid:i,fbclid:r})=>!(e||t||"self"!==n||i||r)],["Direct",({source:e,medium:t,referrer:n})=>!(t||e&&"direct"!==e||"direct"!==n)],["Cross-network",({source:e,medium:t})=>_w(t,"crossnetwork")||e.match(bw)],["Paid Search",({source:e,medium:t,referrer:n,gclid:i,_:r})=>i||_w(t,"paidsearch")||t.match(Ew)&&(r.contains(dw,e)||ww(cw,n))],["Paid Social",({source:e,medium:t,referrer:n,fbclid:i,_:r})=>i||_w(t,"paidsocial")||t.match(Ew)&&(r.contains(lw,e)||fw(n,r))],["Paid Video",({medium:e,source:t,referrer:n,_:i})=>_w(e,"paidvideo")||e.match(Ew)&&(i.contains(gw,t)||ww(mw,n))],["Paid Shopping",({medium:e,source:t,referrer:n,_:i})=>_w(e,"paidshopping")||"shopping"===e||(ww(yw,n)||i.contains(vw,t))&&e.match(Ew)],["Display",({medium:e,_:t})=>t.contains(["display","cpm","banner","interstitial","expandable","programmatic"],e)||_w(e,"display")],["Paid Other",({medium:e})=>_w(e,"paidother")||e.match(Ew)],["Organic Search",({source:e,medium:t,referrer:n,_:i})=>_w(t,"organic")&&i.contains(dw,e)||!t&&ww(cw,n)],["Organic Social",({source:e,medium:t,referrer:n,_:i})=>!t&&fw(n,i)||_w(t,"social")||i.contains(lw,e)&&!t.match(Ew)],["Organic Video",({medium:e,referrer:t})=>_w(e,"video")||!e&&ww(mw,t)],["Organic Shopping",({medium:e,referrer:t})=>_w(e,"organicshopping")||!e&&ww(yw,t)],["Email",({source:e,medium:t})=>null!==t.match(Iw)||null!==e.match(Iw)||_w(t,"newsletter")],["Affiliates",({medium:e})=>_w(e,"affiliate")||_w(e,"partner")],["SMS",({source:e,medium:t})=>_w(e,"sms")||_w(t,"sms")],["Push Notifications",({source:e,medium:t})=>t.endsWith("push")||_w(t,"mobile")||_w(t,"notification")||_w(e,"firebase")],["Audio",({medium:e})=>_w(e,"podcast")||_w(e,"audio")],["Referral",({medium:e,referrer:t})=>_w(e,"referral")||!!t&&"self"!==t&&"direct"!==t],["Other",({medium:e,source:t})=>!!e||!!t]],xw="utm",Tw="enableFullUtmReferrer";class kw{constructor(){this.name="WebAnalytics"}initialize(e,t){this.pendo=e;var n=(this.api=t)["ConfigReader"],n=(n.addOption(Tw,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),e._)["bind"];this.subscriptions=[t.attachEvent(t.Events,"eventCaptured",n(this.addUtmToEvent,this)),t.attachEvent(t.Events,"sessionChanged",n(this.sessionChanged,this))];let i=this.loadParameters(t.agentStorage);i&&!e._.isEmpty(i)||(i=this.extractParameters(window.location.href,document.referrer)),this.api.agentStorage.registry.addLocal(xw),this.storeParameters(i,t.agentStorage),this.suffix=this.api.ConfigReader.get("identityStorageSuffix")}extractParameters(e,t){var n,i,r,o,a,s,u=new Zn(e).hostname,d=Sw({referrer:t,currentHost:u}),e=this.api.util.parseUrl(e);return e?(e=e["query"],s=e.utm_source,n=e.utm_medium,i=e.utm_campaign,r=e.utm_term,o=e.utm_content,a=e.gclid,e=e.fbclid,(s={source:s,medium:n,campaign:i,term:r,content:o}).channel=this.calculateUtmChannel({referrerValue:d,utm:s,gclid:a,fbclid:e}),t&&this.api.ConfigReader.get(Tw)?s.referrer=t:"self"===d?s.referrer=u:"direct"!==d&&(s.referrer=d),s):{}}calculateUtmChannel({referrerValue:e,utm:t,gclid:n,fbclid:i}){var r=(null==(r=t.medium)?void 0:r.toLowerCase())||"",t=(null==(t=t.source)?void 0:t.toLowerCase())||"";const o={_:this.pendo._,referrer:e,source:t,medium:r,gclid:n,fbclid:i};e=this.pendo._.find(Cw,e=>e[1](o));if(e)return e[0]}storeParameters(e,t){0<this.pendo._.size(e)&&t.write(xw,JSON.stringify(e),undefined,!1,!0,this.suffix)}loadParameters(e){e=e.read(xw,!1,this.suffix)||e.read(xw);return e?JSON.parse(e):null}teardown(){for(var e of this.subscriptions)e();this.subscriptions.length=0}addUtmToEvent(e){let t;try{t=this.loadParameters(this.api.agentStorage)}catch(n){}t&&(e.data[0].utm=t)}sessionChanged(){var e=this.api.agentStorage,t=(e.clear(xw),e.clear(xw,!1,this.suffix),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)}}var Aw=new kw;const Rw={children:[],props:{"class":"_pendo-step-container","data-layout":"tooltipBlank",id:"pendo-base"},type:"div"},Ow={css:[],props:{scoped:"scoped",type:"text/css"},type:"style"},Nw={children:[],props:{"class":"_pendo-step-container-size","data-relative-alignment":!0,"data-vertical-alignment":"Relative to Element",id:"pendo-g-validation-tooltip-container",style:{display:"block",width:"300px","z-index":3e5}},type:"div"},Mw={children:[],props:{"class":"_pendo-step-container-styles",id:"pendo-guide-container",role:"dialog","data-caret-enabled":!0,"data-caret-height":"15px","data-caret-width":"15px",style:{"background-color":"rgba(255, 255, 255, 1)",border:"1px solid #BBBBBB","border-radius":"5px",padding:"8px 12px","box-shadow":"0px 0px 10px 0px rgba(190, 190, 190, 0.5)"},tabindex:-1},type:"div"},Lw={children:[],props:{"class":"_pendo-text-paragraph",style:{}},type:"div"};function Pw(e,t){return{content:t,props:{id:"text-"+e,"class":"_pendo-text-plain",style:{color:"gray",margin:0}},type:"p"}}function Fw(e){var e=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement,t=document.createElement("div");return t.style.marginRight="5px",t.appendChild(e),t}const Dw=`
|
|
10
10
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
11
11
|
width="10" height="10" fill="none"
|
|
12
12
|
stroke="gray" stroke-linecap="round" stroke-linejoin="round"
|
|
13
13
|
stroke-width="2" viewBox="0 0 10 10">
|
|
14
14
|
<line x1="2" y1="5" x2="8" y2="5"/>
|
|
15
15
|
</svg>
|
|
16
|
-
`,
|
|
16
|
+
`,Uw=`
|
|
17
17
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
18
18
|
width="10" height="10" viewBox="0 0 10 10"
|
|
19
19
|
fill="none" stroke="green" stroke-width="2"
|
|
@@ -21,7 +21,7 @@ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{
|
|
|
21
21
|
class="feather feather-check">
|
|
22
22
|
<polyline points="2 5 4 7 8 2"></polyline>
|
|
23
23
|
</svg>
|
|
24
|
-
`,
|
|
24
|
+
`,Gw=`
|
|
25
25
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
26
26
|
width="10" height="10" viewBox="0 0 10 10"
|
|
27
27
|
fill="none" stroke="red" stroke-width="2"
|
|
@@ -30,10 +30,10 @@ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{
|
|
|
30
30
|
<line x1="2" y1="2" x2="8" y2="8"/>
|
|
31
31
|
<line x1="8" y1="2" x2="2" y2="8"/>
|
|
32
32
|
</svg>
|
|
33
|
-
`,
|
|
33
|
+
`,Bw={emailRegex:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,phoneRegex:/^(\+\d{1,2}\s?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/,urlRegex:/^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/},zw={"MM-DD-YYYY":/^(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])-(19|20)\d\d$/,"DD-MM-YYYY":/^(0[1-9]|[12][0-9]|3[01])-(0[1-9]|1[0-2])-(19|20)\d\d$/,"MM/DD/YYYY":/^(0[1-9]|1[0-2])\/(0[1-9]|[12][0-9]|3[01])\/(19|20)\d\d$/,"DD/MM/YYYY":/^(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[0-2])\/(19|20)\d\d$/,"YYYY-MM-DD":/^(19|20)\d\d-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/};var jw={email(e){return Bw.emailRegex.test(e)},phone(e){return Bw.phoneRegex.test(e)},date(e,t={}){return(zw[t.format]||zw["MM/DD/YYYY"]).test(e)},url(e){return Bw.urlRegex.test(e)},number(e,t={}){if(""===e)return!1;let{min:n,max:i,allowDecimal:r}=t;var t=Hw(n),o=Hw(i),e=(t&&(n=Number(n)),o&&(i=Number(i)),Number(e));return!isNaN(e)&&!(t&&e<n||o&&e>i||!r&&e%1!=0)},characterLength(e,t={}){let{min:n,max:i}=t;var t=Hw(n),r=Hw(i);return t&&(n=Number(n)),r&&(i=Number(i)),!(t&&e.length<n||r&&e.length>i)}};function Hw(e){return e!==undefined&&null!==e&&""!==e}const qw=function(){let r,o,i=[],a,u,d,c=null,s;return{name:"FormValidation",validationGuides:i,debouncedValidate:a,initialize:function(e,t){var n=t.ConfigReader.get("formValidation");if(n){r=e,o=t,a=_.debounce(w,100),o.Events.on("deliverablesLoaded",p),o.Events.on("guideLoopStopped",h),o.Events.on("guideListChanged",f),o.GuideLoop.addUpdatePhase(g),o.guides.addProcessor(m);const i=!(null===r||void 0===r||!r.designer);s=setInterval(()=>{i&&(l(),clearInterval(s),s=null)},1e3),e.attachEvent(document,"focusin",v),e.attachEvent(document,"focusout",y),e.attachEvent(document,"input",a)}},teardown:l,appendValidationStyles:t,getActiveStep:function(){return u},setActiveStep:function(e){u=e},setActiveField:function(e){d=e},getActiveField:function(){return d},getActiveFieldIsValid:function(){return c},setActiveFieldIsValid:function(e){c=e},getValidationGuides:function(){return i},setValidationGuides:function(e){i=e},initializeFormValidation:f,clearAllValidationGuides:p,extractValidationGuides:m,applyFormBehaviors:e,checkValidationFieldVisibility:g,hideValidationTooltip:h,focusField:v,blurField:y,findFieldByElement:b,validateInput:w,validateField:S,getRuleText:E,setValidationStyle:I};function l(){o&&(s&&(clearInterval(s),s=null),o.Events.off("deliverablesLoaded",p),o.Events.off("guideLoopStopped",h),o.Events.off("guideListChanged",f),o.GuideLoop.removeUpdatePhase(g),o.guides.removeProcessor(m),r.detachEvent(document,"focusin",v),r.detachEvent(document,"focusout",y),r.detachEvent(document,"input",a),a.cancel(),i=[],u=null,d=null,c=null)}function p(){o.guides.removeDisplayableGuides("validationGuides"),i=[]}function h(){r.detachEvent(document,"focusin",v),d&&(d=null,c=null),u&&(u.hide({validationHidden:!0}),u=null)}function f(){t(),o.guides.registerDisplayableGuides("validationGuides",i),e()}function e(){_.map(i,function(e){_.map(e.steps,function(e){var t=function(){if(!this.attributes)return C.info("buildFormStepBehaviors called with invalid context"),{};const t=this,n=t.show,i=t.hide;return{show:function(e){return!t.attributes.validationHidden&&n.call(t,e)},hide:function(e){return e&&e.validationHidden&&(t.attributes.validationHidden=!0),i.call(t,e)}}}.call(e);Object.assign(e,t)})})}function g(){!d||(e=r.Sizzle(u.elementPathRule)[0])&&r.isElementVisible(e)||(d=null,c=null,u.hide({validationHidden:!0}),u=null);var e=_r.get(document);((null==(e=e.bubbleEvents)?void 0:e.focusin)||[]).some(e=>e.handler===v)||r.attachEvent(document,"focusin",v)}function m(t){return"form"!==t.launchMethod||_.some(i,({id:e})=>e===t.id)||i.push(t),!0}function t(){0!==i.length&&o.util.addInlineStyles("pendo-form-validation-styles",`input[data-pendo-field-valid="false"] {
|
|
34
34
|
border-color: red !important;
|
|
35
35
|
outline-color: red !important;
|
|
36
|
-
}`)}function v(e){var t,n,i,r,o,a,s,e=e["target"];"INPUT"===e.tagName&&(t=b(e))&&u&&(u.attributes.validationHidden=!1,u.domJson||(n=d.rules[0],i=Fw("context-"+d.id,d.context),n=null!=n&&n.type?function(e,t){return{props:{id:"rule-"+e,"class":"text-row",style:{display:"flex","align-items":"center"}},children:[Fw(e,t)],type:"div"}}(n.id,n.ruleText):null,0!==(i=[i,n].filter(Boolean)).length&&(n=ve(Ow),r=ve(Nw),o=ve(Mw),a=ve(Lw),s=ve(Pw),n.children.push(r,o),o.children.push(a),a.children.push(s),s.children=i,u.domJson=n)),u.show("api"),(o=document.getElementById("rule-"+(null==(r=null===d||void 0===d?void 0:d.rules[0])?void 0:r.id)))&&null!=(a=null===d||void 0===d?void 0:d.rules[0])&&a.type&&(s=null===d.isValid?Dw(Uw):c?Dw(Gw):Dw(Bw),o.insertBefore(s,o.firstChild)),""!==t.value)&&S(e)}function y(e){e=e.target;d&&u&&(r.Sizzle.matchesSelector(e,null===u||void 0===u?void 0:u.elementPathRule)&&I(e,c),u.hide({validationHidden:!0}),null===d.isValid&&!1===c&&(E().props.style.color="red"),d.isValid=c,d=null,u=null,c=null)}function b(t){u&&u.hide({validationHidden:!0}),u=null,d=null,c=null;for(const n of i){var e=_.find(n.steps,function(e){return r.Sizzle.matchesSelector(t,e.elementPathRule)});if(e)return u=e,d=null==(e=e.attributes)?void 0:e.field,c=d.isValid,d}return null}function w(e){var t,e=e["target"];r.Sizzle.matchesSelector(e,null===u||void 0===u?void 0:u.elementPathRule)?S(e):(t=b(e))&&(c=t.isValid,S(e))}function S(t){var n=null===d||void 0===d?void 0:d.rules[0];if(n){var i=Hw[n.type];if(i){n=i(t.value,n.options),i=(c=!!n,E());let e;null===d.isValid?(i.props.style.color=n?"green":"gray",e=Dw(n?Gw:Uw)):(i.props.style.color=n?"green":"red",e=Dw(n?Gw:Bw),I(t,n)),u.hide({stepHidden:!0}),u.show("api");i=document.getElementById("rule-"+d.rules[0].id);i&&i.insertBefore(e,i.firstChild)}}}function E(){return sc("text-"+d.rules[0].id,u.domJson)}function I(e,t){!1===t?e.setAttribute("data-pendo-field-valid",!1):e.removeAttribute("data-pendo-field-valid")}}();class Vw{constructor(e,t,n,i,r,o){this.listeners=[],this.latestPromptValue="",this.dom=e.dom,this._=e._,this.api=t,this.q=t.q,this.id=n,this.setFilters(i),this._.isArray(r)||(this.api.log.error("inputCssSelectors must be an array, received:",typeof r),r=[]),this._.isArray(o)||(this.api.log.error("submitCssSelectors must be an array, received:",typeof o),o=[]),this.inputEls=this._.map(r,e=>new this.dom.Element(e)),this.submitEls=this._.map(o,e=>new this.dom.Element(e)),this.setupInputListeners(),this.setupSubmitListeners(),this.setupObserver()}setupInputListeners(){this._.each(this.inputEls,e=>{e&&(e.addEventListener("change",e=>{this.capturePromptValue()},!0),e.addEventListener("keydown",e=>{"Enter"!==e.code&&"Enter"!==e.key&&13!==e.keyCode||this.submit(this.latestPromptValue)},!0),e.addEventListener("keyup",e=>{this.capturePromptValue()},!0))})}setupSubmitListeners(){this._.each(this.submitEls,e=>{e&&(e.addEventListener("mousedown",e=>{var t=this.getPromptValue()||this.latestPromptValue;this.submit(t)},!0),e.addEventListener("keydown",e=>{"Enter"!==e.code&&"Enter"!==e.key&&13!==e.keyCode||(e=this.getPromptValue()||this.latestPromptValue,this.submit(e))},!0))})}setupObserver(){this.promptContainer=new this.dom.Observer;var e=this._.filter(this.inputEls,e=>e),t=this._.filter(this.submitEls,e=>e);this.promptContainer.addObservers(...e,...t)}setFilters(e){if(!e)return this.privacyFilters=null;try{this.privacyFilters=new RegExp(e,"gmi")}catch(t){this.privacyFilters=null,this.api.log.error(t)}return this.privacyFilters}applyPrivacyFilter(e,t=null){t=t||this.privacyFilters;return t&&this._.isRegExp(t)?e.replace(t,"redacted"):e}submit(e){if(e){var t=this.applyPrivacyFilter(e);const n={agentId:this.id,prompt:t,privacyFilterApplied:t!==e};this._.each(this.listeners,e=>e(n))}}capturePromptValue(e=!1){var t=this.getPromptValue();return!t&&e||(this.latestPromptValue=t),t}getPromptValue(){var e=this._.find(this.inputEls,e=>{if(e)try{var t=e.getText();return t&&t.trim()}catch(n){}return!1});if(e)try{return e.getText().trim()}catch(t){}return""}onSubmit(e){this.listeners.push(e)}teardown(){this.promptContainer&&this.promptContainer.teardown(),this._.each(this.inputEls,e=>{e&&e.teardown()}),this._.each(this.submitEls,e=>{e&&e.teardown()})}}const Jw="_pendoHeaders";class Kw{constructor(){this.name="PromptAnalytics",this.configName="aiAgents",this.prompts=[]}initialize(e,t){this.pendo=e,this.api=t,this._=this.pendo._,this.api.ConfigReader.addOption(this.configName,["pendoconfig","snippet"]),this.loadConfig(this.configName).then(e=>this.onConfigLoaded(e))["catch"](()=>{})}loadConfig(e){var{q:t,ConfigReader:n}=this.api,t=t.defer(),e=n.get(e);return t.resolve(e),t.promise}onConfigLoaded(e=[]){var t;e&&this._.isArray(e)&&0!==e.length&&(t=e.filter(e=>"network"===e.trackingMethod),e=e.filter(e=>"network"!==e.trackingMethod),0<t.length&&(this.networkAgents=t,this.patchNetwork(({method:o,url:a,body:s})=>{this._.each(this.networkAgents,e=>{let t=null;if(e.privacyFilters)try{t=new RegExp(e.privacyFilters,"gmi")}catch(r){this.api.log.error("Invalid privacy filter for agent",e.id,r)}var n=s||"",i=this.applyPrivacyFilter(n,t);this.api.analytics.collectEvent("prompt",{prompt:i,agentId:e.id,promptType:o,url:a,privacyFilterApplied:i!==n})})})),this._.each(e,e=>{this.observePrompt(e)}))}patchNetwork(a){const s=this;s._networkPatched||(s._networkPatched=!0,s._originalSetRequestHeader||(s._originalSetRequestHeader=XMLHttpRequest.prototype.setRequestHeader,XMLHttpRequest.prototype.setRequestHeader=function(e,t){return this[Jw]=this[Jw]||{},this[Jw][e]=t,s._originalSetRequestHeader.apply(this,arguments)}),s._originalFetch=window.fetch,window.fetch=function(...o){return sw(this,void 0,void 0,function*(){var[e,t={}]=o,n=t.method||"GET",i=Zw(t.headers),t=$w(t.body);try{a({method:n,url:e,body:t,headers:i})}catch(r){s.api.log.debug("[PromptPlugin] Fetch tracking failed:",r)}return s._originalFetch.apply(this,o)})},s._originalXHROpen=XMLHttpRequest.prototype.open,s._originalXHRSend=XMLHttpRequest.prototype.send,XMLHttpRequest.prototype.open=function(e,t){return this._method=e,this._url=t,s._originalXHROpen.apply(this,arguments)},XMLHttpRequest.prototype.send=function(e){try{var t=Xw(this),n=$w(e);a({method:this._method||"GET",url:this._url,body:n,headers:t})}catch(i){s.api.log.debug("[PromptPlugin] XHR tracking failed:",i)}return s._originalXHRSend.apply(this,arguments)})}observePrompt(e){var{id:e,cssSelectors:t,privacyFilters:n}=e,i=this.parseCssSelector("input",t),t=this.parseCssSelector("submit",t),e=new Vw(this.pendo,this.api,e,n,i,t);e.onSubmit(e=>{this.sendEvent(e)}),this.prompts.push(e)}parseCssSelector(t,e){e=this._.filter(e,e=>e.type===t);return this._.map(e,e=>e.cssSelector)}sendEvent(e){e=this._.extend({promptType:"request"},e);this.api.analytics.collectEvent("prompt",e)}teardown(){this._originalFetch&&(window.fetch=this._originalFetch,this._originalFetch=null),this._originalXHROpen&&(XMLHttpRequest.prototype.open=this._originalXHROpen,XMLHttpRequest.prototype.send=this._originalXHRSend,this._originalXHROpen=null,this._originalXHRSend=null),this._networkPatched=!1,this._.each(this.prompts,e=>e.teardown()),this._originalSetRequestHeader&&(XMLHttpRequest.prototype.setRequestHeader=this._originalSetRequestHeader,this._originalSetRequestHeader=null)}}function $w(e){if(!e)return undefined;if("string"==typeof e)return e;if(e instanceof FormData){var t,n,i={};for([t,n]of e.entries())i[t]=n;return JSON.stringify(i)}try{return JSON.stringify(e)}catch(r){return"[unserializable-body]"}}function Zw(e={}){var t={};if(e instanceof Headers)for(var[n,i]of e.entries())t[n]=i;else if("object"==typeof e)for(var[r,o]of Object.entries(e))t[r]=o;return t}function Xw(e){return e[Jw]||{}}var Yw=new Kw;function Qw(i){var t;!function(e){e.getVersion=Ze,e.isReady=Tv,e.pageLoad=hu,e.getVisitorId=Hn,e.getAccountId=qn,e.clearSession=Jn,e.VERSION=Ke,e.LOADER=$e,e.flushNow=a(function(e){return cs(0,e)}),e.teardown=$n(Gv),e.initGuides=a(Km),e.loadGuides=a(Rm),e.findGuideByName=a(rd),e.hideGuides=a(xg),e.onGuideDismissed=a(Fg),e.goToStep=Ug,e.onGuideAdvanced=a(Gg),e.onGuidePrevious=a(Bg),e.onGuideSnoozed=Dg,e.startGuides=a(fh),e.stopGuides=a(gh),e.defaultCssUrl=a(mg()),e.getActiveGuides=Yu,e.getActiveGuide=dv,e.guideSeenTimeoutLength=Gy.getGuideSeenTimeoutLength(),e.guidesPayload=Sm,e.areGuidesDisabled=a($m),e.setGuidesDisabled=a(Xm),e.buildNodeFromJSON=U.buildNodeFromJSON,e.flexElement=a(U.flexElement),e.GuideFactory=a(Zd),e.dom=k,e.getText=ba,e.attachEvent=a(l),e.detactEvent=a(Vu),e.frames={setFrameVisibility:Ed},e.log=iy,e.enableLogging=Yv,e.disableLogging=Qv,e.setActiveContexts=dy,e.showLogHistory=sy,e.getLoggedContexts=uy,e.isDebuggingEnabled=_.noop,e.enableDebugging=_.noop,e.disableDebugging=_.noop,e.addDebuggingFunctions=_.noop,e.stopSendingEvents=a(as.lock),e.startSendingEvents=a(as.unlock),e.isSendingEvents=a(Lo),e.fromByteArray=c.uint8ToBase64,e.events=a(Ad),e.track=a(py),e.trackAgent=a(hy),e.validateInstall=fy,e.validateNativeMethods=gy,e.validateBuiltInGlobals=my,e.validateUrl=vy,e.validateEnvironment=wy,e.doesExist=me,e.generate_unique_id=An,e.TEMP_PREFIX=_n,e.SIZE_UNIQUE_ID=Cn,e._defaultLauncher_queue=[],e.defaultLauncher=()=>{e._defaultLauncher_queue.push(arguments)},e.toggleLauncher=_.noop,e.showLauncher=_.noop,e.hideLauncher=_.noop,e.removeLauncher=_.noop,e.identify=Bl,e.get_visitor_id=Hn,e.set_visitor_id=function(e){Bl(e)},e.get_account_id=qn,e.set_account_id=function(e){Bl(b(),e)},e.getSerializedMetadata=ql,e.compress=nt,e.squeezeAndCompress=nt,e.randomElement=st,e.randomString=ut,e.toUTF8Array=Ye,e.getNumberFromText=gt,e._addCredits=a(zg),e.getCurrentUrl=pm,e.getNormalizedUrl=pm,e.testUrlForStep=a(fm),e.showGuideByName=a(gm),e.showGuideById=a(mm),e.designerv2=bf,e.P2AutoLaunch=a(Df),e.BuildingBlocks=a(Sy),e.onConnectMessage=_.noop,e.buffers=as,e.guideDev=a(jv),e.badgesShown=a(Zu),e.get_pendo_cookie=Ht,e.DEFAULT_EXPIRE_LEN=Wt,e.set_pendo_cookie=Jt,e.loadResource=Aa,e.loadWatcher=Ra,e.messageLogger=Oa,e.messageReceiver=Na,e.messageValidator=Ma,e.MESSAGE_TYPES=Pa,e.messageDispatcher=Ua,e.moduleRegistry=Ga,e.addModule=Ba,e.hasModule=a(za),e.findModuleByName=a(ja),e.modulesWaiting=Ha,e.loadModules=qa,e.moduleLoader=Wa,e.TOOLTIP_DEFAULT_WIDTH=430,e.TOOLTIP_DEFAULT_HEIGHT=200,e.TOOLTIP_ARROW_SIZE=15,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e.sniffer=ze,e.url=A,e.location=Fy,e.Sizzle=u,e._=_,e.ajax=Rr,e.Zlib=it,e.guideContent=a(ec.guideContent),e.receiveDomStructureJson=a(ec.receiveDomStructureJson),e.addExtension=Yl}(i),(t=i).SHADOW_STYLE="",_.extend(t,{_showElementGuide:_.noop,flushEventCache:qy(null,"flushEventCache",jy),HOST:eo,MAX_LENGTH:ns,MAX_NUM_EVENTS:ts,_createToolTip:_.noop,_get_tooltip_dimensions:_.noop,_isOldIE:a(qy(Te,"_isOldIE",zy)),_logMessage:qy(To,"_logMessage",zy),_sendEvent:qy(null,"_sendEvent",jy),_sendGuideEvent:qy(null,"_sendGuideEvent",jy),_stopEvents:!1,_storeInCache:qy(null,"_storeInCache",jy),_writeEventImgTag:qy(null,"_writeEventImgTag",jy),_writeImgTag:a(qy(Ao,"_writeImgTag",zy)),getUA:qy(Re,"getUA",zy),ifDebugThen:qy(null,"ifDebugThen",jy),send_event:a(qy(Ts,"send_event","has changed to pendo.cache.createEvent")),wire_page:qy(ju,"wire_page",zy),messageOriginTester:qy(null,"messageOriginTester",jy),findGuideBy:a(id),findGuideById:a(N),findStepInGuide:a(od),_updateGuideStepStatus:a(_g),_addCloseButton:a(Eg),initialize:Lv,getEventCache:a(zm),processEventCache:a(Bm),isGuideShown:a(Sg),_getNextStepInMultistep:a(lm),attachEvent:l,detachEvent:Vu,updateOptions:Gl,createLauncher:_.constant({}),initLauncher:_.noop,_addGuideToLauncher:_.noop,launcherToolTipDiv:null,isAnonymousVisitor:(e=t.get_visitor_id())=>On(e),DEFAULT_VISITOR_ID:Ln,shouldIdentityChange:_.constant(!1),read:h.read,write:h.write,_delete_cookie:h.clear,_set_cookie:Bt,_get_cookie:Dt,get_cookie_key:jt,ENV:qe,eventCache:a(Xa),_getOpacityStyles:qy(null,"_getOpacityStyles",zy),setStyle:jo,_createGuideEvent:a(sm),seenGuide:a(tm),dismissedGuide:a(nm),advancedGuide:a(im),seenTime:0,placeBadge:a(Ph),isBadge:a(dd),showPreview:a(qy(Zg,"showPreview",zy)),removeAllBadges:a(Fh),tellMaster:Va,DEFAULT_TIMER_LENGTH:dh,registerMessageHandler:Fa,_get_offset:a(Jo),_shouldAutoDisplayGuide:_.constant(!1),removeBadge:Dh,_showLightboxGuide:_.noop,_showGuide:a(Qg),getElementForGuideStep:a(md),isElementVisible:ha,getTooltipDivId:a(Kg),setupWatchOnTooltip:a($g),letters:"",charset:"",detectMaster:Ja,listenToMaster:qy(null,"listenToMaster",jy),start:Ku,SEND_INTERVAL:es,stageGuideEvent:a(cm),startStagedTimer:dm,isURLValid:rs,getURL:os,_get_screen_dim:a(qo),_isInViewport:a(Wo),_getCss3Prop:Bo,waitThenStartGuides:a(ch),guidesProcessingThreadHandle:uh,getMode:_.constant("default")}),_.each(["identify","updateOptions","pageLoad","track","trackAgent"],function(t){var n=i[t];i[t]=function(){try{Tv()?n.apply(this,arguments):ae(i,t,arguments)}catch(e){C.critical(e)}}})}var eS,tS,nS,iS,rS=pe(),oS=function(e){var t=Q(e)?{}:window,n=ne(document.getElementsByTagName("script"),e.apiKey);let i=e.pendoGlobalKey||"pendo";return n&&(i=n.getAttribute("data-pendo-global-key")||i,e.pendoGlobalKey=i),E=t[i]=t[i]||{}}(rS);return eS=oS,rS=rS,h.registry.addLocal(Th,{isPlain:!0,serializer:JSON.stringify,deserializer:Rt}),le(rS),qe=he("env")||qe,We=he("server")||We,Ve=he("assetHost")||Ve,Je=he("assetPath")||Je,Ge=he("designerServer")||Ge,Ge=Ee()?qe+"_ext":qe,Ke=W+"_"+Ge,!Q(rS)&&(Ge=rS,nS=eS,iS=Ah(),ue(Ge,nS,iS)||de(Ge,nS,iS))||eS&&eS.VERSION||(!ze.isChromeExtension||(Ge=rS)&&Ge.useAssetHostForDesigner||console.warn("Pendo Agent detected running in a Chrome extension with setup that is incompatible with manifest V3. Please follow the linked instructions to maintain manifest V3 compatibility: https://www.npmjs.com/package/@pendo/agent#manifest-v3-extensions"),f.get("disablePendo")?(tS=eS,_.each(["initialize","identify","updateOptions","pageLoad","track","trackAgent"],function(e){tS[e]=function(){console.log("Pendo is currently disabled.")}})):((nS=g).registerModule("debugger",x0),nS.registerModule("errorLog",o0),nS.registerModule("frames",t),nS.registerModule("guideUpdate",Ri),nS.registerModule("guideState",i),nS.registerModule("healthCheck",Di),nS.registerModule("location",e),nS.registerModule("metadata",S0),nS.registerModule("preview",C0),nS.registerModule("nodeAttr",T0),oo(),Zd.behaviors=[xh,Vy,Jd.Guide,Jy,$y,Zy,Xy],Xd.behaviors=[xh,i0,Yy,tc,Jd.Step,Qy,r0],tc.reset(),g.dispatch("frames/init"),iy.init(),ti.wrapSizzle(u,Rv.shadowDom),u.intercept(wd),Qw(eS),C.addEventListener("log",_.partial(g.dispatch,"errorLog/write")),mv(k0),mv(D0),mv(J0),mv(eb),mv(L1),mv(z1),mv(W1),mv(J1),mv(Gy),mv(Q1),mv(ew),mv(tw),mv(aw),mv(dw),mv(Rw),mv(Ww),mv(Yw),iS=eS._q,rS=Uv,Ge=Ku,f.get("disableAutoInitialize")||(iS=(iS=Fv(iS))&&1<iS.length?iS[1]:{},_.get(iS,Nv)||f.get(Nv)?rS():Mv.push(Ge(rS))))),oS}function TextCapture(){var i,r,n,o={};return{name:"TextCapture",initialize:function(e,t){r=t,(i=e).excludeAllText=r.ConfigReader.get("excludeAllText");t=r.ConfigReader.get("allowedText");o=i._.reduce(t,function(e,t){return i._.isString(t)&&(e[t]=!0),e},{}),r.NodeSerializer.add(a),n=i._.partial(s,e),r.Events.on("eventCaptured",n)},teardown:function(){r.NodeSerializer.remove(a),r.Events.off("eventCaptured",n)},isEnabled:u,isTextCapturable:d,hasWhitelist:c,serializer:a,guideActivity:s};function a(e,t,n){return t===n&&(u()||!u()&&c())&&d(t=i.getText(n,128))&&(e.txt=c()?r.util.trim.call(t):t),e}function s(e,t){var n;u()&&(n=t.data[0])&&"guideActivity"===n.type&&(t=e.getActiveGuide())&&(e=(0,e.BuildingBlocks.BuildingBlockGuides.findDomBlockInDomJson)(t.step.domJson,function(e){return e.props&&e.props.id&&e.props.id===n.props.ui_element_id}))&&(n.props.ui_element_text=e.content)}function u(){return!i.excludeAllText}function d(e){var t=r.util.trim.call(e);return u()||i._.has(o,[t])||i._.has(o,[e])}function c(){return 0<i._.size(o)}}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}const substitutionRegex="\\{(?:\\s?)([^.\\s]?visitor|account|parentAccount)\\.([^|\\s/]*)(?:\\s?\\|\\s?([^}]+|[\\/s]+))?(?:\\s?\\/\\s?){1}\\}",skipStepString="{skipStep:* *(auto|\\d+)\\/}",goToMiddleString="(?!0)(\\d+)",goToString=`({goto-${goToMiddleString}\\/})`;function lookupGuideButtons(e,t=[]){if("button"===e.type&&e.actions&&t.push(e),e.children)for(const n of e.children)lookupGuideButtons(n,t);return t}function removeMarkdownSyntax(e,t,n,i){var r;i.dom(e).hasClass("_pendo-nps-open-text-poll-question")&&(e.innerHTML=null==(r=e.innerHTML)?void 0:r.replace(t,n)),"div"===e.localName||("button"!==e.localName&&"label"!==e.localName&&"a"!==e.localName||(e.textContent=e.textContent.replace(t,n)),0<e.children.length)||(i.dom(e).hasClass("_pendo-simple-text")||i.dom(e).hasClass("_pendo-text-plain")||i.dom(e).hasClass("_pendo-text-list-item")||i.dom(e).hasClass("_pendo-text-link"))&&(e.textContent=e.textContent.replace(t,n))}var guideMarkdownUtil={substitutionRegex:substitutionRegex,skipStepString:skipStepString,goToString:goToString,lookupGuideButtons:lookupGuideButtons,removeMarkdownSyntax:removeMarkdownSyntax};function getZoneSafeMethod(e,t,n=window){var i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}const goToRegex=new RegExp(guideMarkdownUtil.goToString),PollBranching={name:"PollBranching",script(r,o,a){let s=!1;var e=initialBranchingSetup(r,a);!e||1<a._.size(e)||this.on("beforeAdvance",e=>{var t=0===r.guideElement.find("[branching] .pendo-radio:checked").length,n=r.guideElement.find("[branching] .pendo-radio:checked + label")[0];let i;n&&(i=a._.isNull(n.getAttribute("goToStep"))),s||t||i||(s=!0,branchingGoToStep(e,r,o,a))})},test(e,t,n){e=null==(e=e.guideElement)?void 0:e.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return!n._.isUndefined(e)&&n._.size(e)},designerListener(i){var e=i.dom.getBody();function r(e,t){return`<svg id="pendo-ps-branching-svg" viewBox="0 0 24 24" fill="none"
|
|
36
|
+
}`)}function v(e){var t,n,i,r,o,a,s,e=e["target"];"INPUT"===e.tagName&&(t=b(e))&&u&&(u.attributes.validationHidden=!1,u.domJson||(n=d.rules[0],i=Pw("context-"+d.id,d.context),n=null!=n&&n.type?function(e,t){return{props:{id:"rule-"+e,"class":"text-row",style:{display:"flex","align-items":"center"}},children:[Pw(e,t)],type:"div"}}(n.id,n.ruleText):null,0!==(i=[i,n].filter(Boolean)).length&&(n=ve(Rw),r=ve(Ow),o=ve(Nw),a=ve(Mw),s=ve(Lw),n.children.push(r,o),o.children.push(a),a.children.push(s),s.children=i,u.domJson=n)),u.show("api"),(o=document.getElementById("rule-"+(null==(r=null===d||void 0===d?void 0:d.rules[0])?void 0:r.id)))&&null!=(a=null===d||void 0===d?void 0:d.rules[0])&&a.type&&(s=null===d.isValid?Fw(Dw):c?Fw(Uw):Fw(Gw),o.insertBefore(s,o.firstChild)),""!==t.value)&&S(e)}function y(e){e=e.target;d&&u&&(r.Sizzle.matchesSelector(e,null===u||void 0===u?void 0:u.elementPathRule)&&I(e,c),u.hide({validationHidden:!0}),null===d.isValid&&!1===c&&(E().props.style.color="red"),d.isValid=c,d=null,u=null,c=null)}function b(t){u&&u.hide({validationHidden:!0}),u=null,d=null,c=null;for(const n of i){var e=_.find(n.steps,function(e){return r.Sizzle.matchesSelector(t,e.elementPathRule)});if(e)return u=e,d=null==(e=e.attributes)?void 0:e.field,c=d.isValid,d}return null}function w(e){var t,e=e["target"];r.Sizzle.matchesSelector(e,null===u||void 0===u?void 0:u.elementPathRule)?S(e):(t=b(e))&&(c=t.isValid,S(e))}function S(t){var n=null===d||void 0===d?void 0:d.rules[0];if(n){var i=jw[n.type];if(i){n=i(t.value,n.options),i=(c=!!n,E());let e;null===d.isValid?(i.props.style.color=n?"green":"gray",e=Fw(n?Uw:Dw)):(i.props.style.color=n?"green":"red",e=Fw(n?Uw:Gw),I(t,n)),u.hide({stepHidden:!0}),u.show("api");i=document.getElementById("rule-"+d.rules[0].id);i&&i.insertBefore(e,i.firstChild)}}}function E(){return ac("text-"+d.rules[0].id,u.domJson)}function I(e,t){!1===t?e.setAttribute("data-pendo-field-valid",!1):e.removeAttribute("data-pendo-field-valid")}}();class Ww{constructor(e,t,n,i,r,o){this.listeners=[],this.latestPromptValue="",this.dom=e.dom,this._=e._,this.api=t,this.q=t.q,this.id=n,this.setFilters(i),this._.isArray(r)||(this.api.log.error("inputCssSelectors must be an array, received:",typeof r),r=[]),this._.isArray(o)||(this.api.log.error("submitCssSelectors must be an array, received:",typeof o),o=[]),this.inputEls=this._.map(r,e=>new this.dom.Element(e)),this.submitEls=this._.map(o,e=>new this.dom.Element(e)),this.setupInputListeners(),this.setupSubmitListeners(),this.setupObserver()}setupInputListeners(){this._.each(this.inputEls,e=>{e&&(e.addEventListener("change",e=>{this.capturePromptValue()},!0),e.addEventListener("keydown",e=>{"Enter"!==e.code&&"Enter"!==e.key&&13!==e.keyCode||this.submit(this.latestPromptValue)},!0),e.addEventListener("keyup",e=>{this.capturePromptValue()},!0))})}setupSubmitListeners(){this._.each(this.submitEls,e=>{e&&(e.addEventListener("mousedown",e=>{var t=this.getPromptValue()||this.latestPromptValue;this.submit(t)},!0),e.addEventListener("keydown",e=>{"Enter"!==e.code&&"Enter"!==e.key&&13!==e.keyCode||(e=this.getPromptValue()||this.latestPromptValue,this.submit(e))},!0))})}setupObserver(){this.promptContainer=new this.dom.Observer;var e=this._.filter(this.inputEls,e=>e),t=this._.filter(this.submitEls,e=>e);this.promptContainer.addObservers(...e,...t)}setFilters(e){if(!e)return this.privacyFilters=null;try{this.privacyFilters=new RegExp(e,"gmi")}catch(t){this.privacyFilters=null,this.api.log.error(t)}return this.privacyFilters}applyPrivacyFilter(e,t=null){t=t||this.privacyFilters;return t&&this._.isRegExp(t)?e.replace(t,"redacted"):e}submit(e){if(e){var t=this.applyPrivacyFilter(e);const n={agentId:this.id,prompt:t,privacyFilterApplied:t!==e};this._.each(this.listeners,e=>e(n))}}capturePromptValue(e=!1){var t=this.getPromptValue();return!t&&e||(this.latestPromptValue=t),t}getPromptValue(){var e=this._.find(this.inputEls,e=>{if(e)try{var t=e.getText();return t&&t.trim()}catch(n){}return!1});if(e)try{return e.getText().trim()}catch(t){}return""}onSubmit(e){this.listeners.push(e)}teardown(){this.promptContainer&&this.promptContainer.teardown(),this._.each(this.inputEls,e=>{e&&e.teardown()}),this._.each(this.submitEls,e=>{e&&e.teardown()})}}const Vw="_pendoHeaders";class Jw{constructor(){this.name="PromptAnalytics",this.configName="aiAgents",this.prompts=[]}initialize(e,t){this.pendo=e,this.api=t,this._=this.pendo._,this.api.ConfigReader.addOption(this.configName,["pendoconfig","snippet"]),this.loadConfig(this.configName).then(e=>this.onConfigLoaded(e))["catch"](()=>{})}loadConfig(e){var{q:t,ConfigReader:n}=this.api,t=t.defer(),e=n.get(e);return t.resolve(e),t.promise}onConfigLoaded(e=[]){var t;e&&this._.isArray(e)&&0!==e.length&&(t=e.filter(e=>"network"===e.trackingMethod),e=e.filter(e=>"network"!==e.trackingMethod),0<t.length&&(this.networkAgents=t,this.patchNetwork(({method:o,url:a,body:s})=>{this._.each(this.networkAgents,e=>{let t=null;if(e.privacyFilters)try{t=new RegExp(e.privacyFilters,"gmi")}catch(r){this.api.log.error("Invalid privacy filter for agent",e.id,r)}var n=s||"",i=this.applyPrivacyFilter(n,t);this.api.analytics.collectEvent("prompt",{prompt:i,agentId:e.id,promptType:o,url:a,privacyFilterApplied:i!==n})})})),this._.each(e,e=>{this.observePrompt(e)}))}patchNetwork(a){const s=this;s._networkPatched||(s._networkPatched=!0,s._originalSetRequestHeader||(s._originalSetRequestHeader=XMLHttpRequest.prototype.setRequestHeader,XMLHttpRequest.prototype.setRequestHeader=function(e,t){return this[Vw]=this[Vw]||{},this[Vw][e]=t,s._originalSetRequestHeader.apply(this,arguments)}),s._originalFetch=window.fetch,window.fetch=function(...o){return aw(this,void 0,void 0,function*(){var[e,t={}]=o,n=t.method||"GET",i=$w(t.headers),t=Kw(t.body);try{a({method:n,url:e,body:t,headers:i})}catch(r){s.api.log.debug("[PromptPlugin] Fetch tracking failed:",r)}return s._originalFetch.apply(this,o)})},s._originalXHROpen=XMLHttpRequest.prototype.open,s._originalXHRSend=XMLHttpRequest.prototype.send,XMLHttpRequest.prototype.open=function(e,t){return this._method=e,this._url=t,s._originalXHROpen.apply(this,arguments)},XMLHttpRequest.prototype.send=function(e){try{var t=Zw(this),n=Kw(e);a({method:this._method||"GET",url:this._url,body:n,headers:t})}catch(i){s.api.log.debug("[PromptPlugin] XHR tracking failed:",i)}return s._originalXHRSend.apply(this,arguments)})}observePrompt(e){var{id:e,cssSelectors:t,privacyFilters:n}=e,i=this.parseCssSelector("input",t),t=this.parseCssSelector("submit",t),e=new Ww(this.pendo,this.api,e,n,i,t);e.onSubmit(e=>{this.sendEvent(e)}),this.prompts.push(e)}parseCssSelector(t,e){e=this._.filter(e,e=>e.type===t);return this._.map(e,e=>e.cssSelector)}sendEvent(e){e=this._.extend({promptType:"request"},e);this.api.analytics.collectEvent("prompt",e)}teardown(){this._originalFetch&&(window.fetch=this._originalFetch,this._originalFetch=null),this._originalXHROpen&&(XMLHttpRequest.prototype.open=this._originalXHROpen,XMLHttpRequest.prototype.send=this._originalXHRSend,this._originalXHROpen=null,this._originalXHRSend=null),this._networkPatched=!1,this._.each(this.prompts,e=>e.teardown()),this._originalSetRequestHeader&&(XMLHttpRequest.prototype.setRequestHeader=this._originalSetRequestHeader,this._originalSetRequestHeader=null)}}function Kw(e){if(!e)return undefined;if("string"==typeof e)return e;if(e instanceof FormData){var t,n,i={};for([t,n]of e.entries())i[t]=n;return JSON.stringify(i)}try{return JSON.stringify(e)}catch(r){return"[unserializable-body]"}}function $w(e={}){var t={};if(e instanceof Headers)for(var[n,i]of e.entries())t[n]=i;else if("object"==typeof e)for(var[r,o]of Object.entries(e))t[r]=o;return t}function Zw(e){return e[Vw]||{}}var Xw=new Jw;function Yw(i){var t;!function(e){e.getVersion=Ze,e.isReady=xv,e.pageLoad=pu,e.getVisitorId=Hn,e.getAccountId=qn,e.clearSession=Jn,e.VERSION=Ke,e.LOADER=$e,e.flushNow=a(function(e){return ds(0,e)}),e.teardown=$n(Uv),e.initGuides=a(Jm),e.loadGuides=a(Am),e.findGuideByName=a(id),e.hideGuides=a(Cg),e.onGuideDismissed=a(Pg),e.goToStep=Dg,e.onGuideAdvanced=a(Ug),e.onGuidePrevious=a(Gg),e.onGuideSnoozed=Fg,e.startGuides=a(hh),e.stopGuides=a(fh),e.defaultCssUrl=a(gg()),e.getActiveGuides=Xu,e.getActiveGuide=uv,e.guideSeenTimeoutLength=Uy.getGuideSeenTimeoutLength(),e.guidesPayload=wm,e.areGuidesDisabled=a(Km),e.setGuidesDisabled=a(Zm),e.buildNodeFromJSON=U.buildNodeFromJSON,e.flexElement=a(U.flexElement),e.GuideFactory=a($d),e.dom=k,e.getText=ya,e.attachEvent=a(p),e.detactEvent=a(Wu),e.frames={setFrameVisibility:Sd},e.log=ny,e.enableLogging=Xv,e.disableLogging=Yv,e.setActiveContexts=uy,e.showLogHistory=ay,e.getLoggedContexts=sy,e.isDebuggingEnabled=_.noop,e.enableDebugging=_.noop,e.disableDebugging=_.noop,e.addDebuggingFunctions=_.noop,e.stopSendingEvents=a(os.lock),e.startSendingEvents=a(os.unlock),e.isSendingEvents=a(Lo),e.fromByteArray=d.uint8ToBase64,e.events=a(kd),e.track=a(ly),e.trackAgent=a(py),e.validateInstall=hy,e.validateNativeMethods=fy,e.validateBuiltInGlobals=gy,e.validateUrl=my,e.validateEnvironment=by,e.doesExist=me,e.generate_unique_id=An,e.TEMP_PREFIX=_n,e.SIZE_UNIQUE_ID=Cn,e._defaultLauncher_queue=[],e.defaultLauncher=()=>{e._defaultLauncher_queue.push(arguments)},e.toggleLauncher=_.noop,e.showLauncher=_.noop,e.hideLauncher=_.noop,e.removeLauncher=_.noop,e.identify=Gl,e.get_visitor_id=Hn,e.set_visitor_id=function(e){Gl(e)},e.get_account_id=qn,e.set_account_id=function(e){Gl(b(),e)},e.getSerializedMetadata=Hl,e.compress=nt,e.squeezeAndCompress=nt,e.randomElement=st,e.randomString=ut,e.toUTF8Array=Ye,e.getNumberFromText=gt,e._addCredits=a(Bg),e.getCurrentUrl=lm,e.getNormalizedUrl=lm,e.testUrlForStep=a(hm),e.showGuideByName=a(fm),e.showGuideById=a(gm),e.designerv2=yf,e.P2AutoLaunch=a(Ff),e.BuildingBlocks=a(wy),e.onConnectMessage=_.noop,e.buffers=os,e.guideDev=a(zv),e.badgesShown=a($u),e.get_pendo_cookie=Ht,e.DEFAULT_EXPIRE_LEN=Wt,e.set_pendo_cookie=Jt,e.loadResource=ka,e.loadWatcher=Aa,e.messageLogger=Ra,e.messageReceiver=Oa,e.messageValidator=Na,e.MESSAGE_TYPES=La,e.messageDispatcher=Da,e.moduleRegistry=Ua,e.addModule=Ga,e.hasModule=a(Ba),e.findModuleByName=a(za),e.modulesWaiting=ja,e.loadModules=Ha,e.moduleLoader=qa,e.TOOLTIP_DEFAULT_WIDTH=430,e.TOOLTIP_DEFAULT_HEIGHT=200,e.TOOLTIP_ARROW_SIZE=15,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e.sniffer=ze,e.url=A,e.location=Py,e.Sizzle=Er,e._=_,e.ajax=Rr,e.Zlib=it,e.guideContent=a(Qd.guideContent),e.receiveDomStructureJson=a(Qd.receiveDomStructureJson),e.addExtension=Xl}(i),(t=i).SHADOW_STYLE="",_.extend(t,{_showElementGuide:_.noop,flushEventCache:Hy(null,"flushEventCache",zy),HOST:eo,MAX_LENGTH:ts,MAX_NUM_EVENTS:es,_createToolTip:_.noop,_get_tooltip_dimensions:_.noop,_isOldIE:a(Hy(Te,"_isOldIE",By)),_logMessage:Hy(To,"_logMessage",By),_sendEvent:Hy(null,"_sendEvent",zy),_sendGuideEvent:Hy(null,"_sendGuideEvent",zy),_stopEvents:!1,_storeInCache:Hy(null,"_storeInCache",zy),_writeEventImgTag:Hy(null,"_writeEventImgTag",zy),_writeImgTag:a(Hy(Ao,"_writeImgTag",By)),getUA:Hy(Re,"getUA",By),ifDebugThen:Hy(null,"ifDebugThen",zy),send_event:a(Hy(xs,"send_event","has changed to pendo.cache.createEvent")),wire_page:Hy(zu,"wire_page",By),messageOriginTester:Hy(null,"messageOriginTester",zy),findGuideBy:a(nd),findGuideById:a(N),findStepInGuide:a(rd),_updateGuideStepStatus:a(Ig),_addCloseButton:a(Sg),initialize:Mv,getEventCache:a(Bm),processEventCache:a(Gm),isGuideShown:a(wg),_getNextStepInMultistep:a(cm),attachEvent:p,detachEvent:Wu,updateOptions:Ul,createLauncher:_.constant({}),initLauncher:_.noop,_addGuideToLauncher:_.noop,launcherToolTipDiv:null,isAnonymousVisitor:(e=t.get_visitor_id())=>On(e),DEFAULT_VISITOR_ID:Ln,shouldIdentityChange:_.constant(!1),read:h.read,write:h.write,_delete_cookie:h.clear,_set_cookie:Bt,_get_cookie:Dt,get_cookie_key:jt,ENV:qe,eventCache:a(Za),_getOpacityStyles:Hy(null,"_getOpacityStyles",By),setStyle:jo,_createGuideEvent:a(am),seenGuide:a(em),dismissedGuide:a(tm),advancedGuide:a(nm),seenTime:0,placeBadge:a(Lh),isBadge:a(ud),showPreview:a(Hy($g,"showPreview",By)),removeAllBadges:a(Ph),tellMaster:Wa,DEFAULT_TIMER_LENGTH:uh,registerMessageHandler:Pa,_get_offset:a(Jo),_shouldAutoDisplayGuide:_.constant(!1),removeBadge:Fh,_showLightboxGuide:_.noop,_showGuide:a(Yg),getElementForGuideStep:a(gd),isElementVisible:pa,getTooltipDivId:a(Jg),setupWatchOnTooltip:a(Kg),letters:"",charset:"",detectMaster:Va,listenToMaster:Hy(null,"listenToMaster",zy),start:Ju,SEND_INTERVAL:Qa,stageGuideEvent:a(dm),startStagedTimer:um,isURLValid:is,getURL:rs,_get_screen_dim:a(qo),_isInViewport:a(Wo),_getCss3Prop:Bo,waitThenStartGuides:a(dh),guidesProcessingThreadHandle:sh,getMode:_.constant("default")}),_.each(["identify","updateOptions","pageLoad","track","trackAgent"],function(t){var n=i[t];i[t]=function(){try{xv()?n.apply(this,arguments):ae(i,t,arguments)}catch(e){C.critical(e)}}})}var Qw,eS,tS,nS,iS=pe(),rS=function(e){var t=Q(e)?{}:window,n=document.currentScript||ne(document.getElementsByTagName("script"),e.apiKey);let i=e.pendoGlobalKey||"pendo";return n&&(i=n.getAttribute("data-pendo-global-key")||i,e.pendoGlobalKey=i),E=t[i]=t[i]||{}}(iS);return Qw=rS,iS=iS,h.registry.addLocal(xh,{isPlain:!0,serializer:JSON.stringify,deserializer:Rt}),le(iS),qe=he("env")||qe,We=he("server")||We,Ve=he("assetHost")||Ve,Je=he("assetPath")||Je,Ge=he("designerServer")||Ge,Ge=Ee()?qe+"_ext":qe,Ke=W+"_"+Ge,!Q(iS)&&(Ge=iS,tS=Qw,nS=kh(),ue(Ge,tS,nS)||de(Ge,tS,nS))||Qw&&Qw.VERSION||(!ze.isChromeExtension||(Ge=iS)&&Ge.useAssetHostForDesigner||console.warn("Pendo Agent detected running in a Chrome extension with setup that is incompatible with manifest V3. Please follow the linked instructions to maintain manifest V3 compatibility: https://www.npmjs.com/package/@pendo/agent#manifest-v3-extensions"),f.get("disablePendo")?(eS=Qw,_.each(["initialize","identify","updateOptions","pageLoad","track","trackAgent"],function(e){eS[e]=function(){console.log("Pendo is currently disabled.")}})):((tS=g).registerModule("debugger",C0),tS.registerModule("errorLog",r0),tS.registerModule("frames",t),tS.registerModule("guideUpdate",Ri),tS.registerModule("guideState",i),tS.registerModule("healthCheck",Di),tS.registerModule("location",e),tS.registerModule("metadata",w0),tS.registerModule("preview",_0),tS.registerModule("nodeAttr",x0),oo(),$d.behaviors=[Ch,Wy,Vd.Guide,Vy,Ky,$y,Zy],Zd.behaviors=[Ch,n0,Xy,ec,Vd.Step,Yy,i0],ec.reset(),g.dispatch("frames/init"),ny.init(),ti.wrapSizzle(Er,Av.shadowDom),Er.intercept(bd),Yw(Qw),C.addEventListener("log",_.partial(g.dispatch,"errorLog/write")),gv(T0),gv(F0),gv(V0),gv(Q0),gv(M1),gv(B1),gv(q1),gv(V1),gv(Uy),gv(Y1),gv(Q1),gv(ew),gv(ow),gv(uw),gv(Aw),gv(qw),gv(Xw),nS=Qw._q,iS=Dv,Ge=Ju,f.get("disableAutoInitialize")||(nS=(nS=Pv(nS))&&1<nS.length?nS[1]:{},_.get(nS,Ov)||f.get(Ov)?iS():Nv.push(Ge(iS))))),rS}function TextCapture(){var i,r,n,o={};return{name:"TextCapture",initialize:function(e,t){r=t,(i=e).excludeAllText=r.ConfigReader.get("excludeAllText");t=r.ConfigReader.get("allowedText");o=i._.reduce(t,function(e,t){return i._.isString(t)&&(e[t]=!0),e},{}),r.NodeSerializer.add(a),n=i._.partial(s,e),r.Events.on("eventCaptured",n)},teardown:function(){r.NodeSerializer.remove(a),r.Events.off("eventCaptured",n)},isEnabled:u,isTextCapturable:d,hasWhitelist:c,serializer:a,guideActivity:s};function a(e,t,n){return t===n&&(u()||!u()&&c())&&d(t=i.getText(n,128))&&(e.txt=c()?r.util.trim.call(t):t),e}function s(e,t){var n;u()&&(n=t.data[0])&&"guideActivity"===n.type&&(t=e.getActiveGuide())&&(e=(0,e.BuildingBlocks.BuildingBlockGuides.findDomBlockInDomJson)(t.step.domJson,function(e){return e.props&&e.props.id&&e.props.id===n.props.ui_element_id}))&&(n.props.ui_element_text=e.content)}function u(){return!i.excludeAllText}function d(e){var t=r.util.trim.call(e);return u()||i._.has(o,[t])||i._.has(o,[e])}function c(){return 0<i._.size(o)}}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}const substitutionRegex="\\{(?:\\s?)([^.\\s]?visitor|account|parentAccount)\\.([^|\\s/]*)(?:\\s?\\|\\s?([^}]+|[\\/s]+))?(?:\\s?\\/\\s?){1}\\}",skipStepString="{skipStep:* *(auto|\\d+)\\/}",goToMiddleString="(?!0)(\\d+)",goToString=`({goto-${goToMiddleString}\\/})`;function lookupGuideButtons(e,t=[]){if("button"===e.type&&e.actions&&t.push(e),e.children)for(const n of e.children)lookupGuideButtons(n,t);return t}function removeMarkdownSyntax(e,t,n,i){var r;i.dom(e).hasClass("_pendo-nps-open-text-poll-question")&&(e.innerHTML=null==(r=e.innerHTML)?void 0:r.replace(t,n)),"div"===e.localName||("button"!==e.localName&&"label"!==e.localName&&"a"!==e.localName||(e.textContent=e.textContent.replace(t,n)),0<e.children.length)||(i.dom(e).hasClass("_pendo-simple-text")||i.dom(e).hasClass("_pendo-text-plain")||i.dom(e).hasClass("_pendo-text-list-item")||i.dom(e).hasClass("_pendo-text-link"))&&(e.textContent=e.textContent.replace(t,n))}var guideMarkdownUtil={substitutionRegex:substitutionRegex,skipStepString:skipStepString,goToString:goToString,lookupGuideButtons:lookupGuideButtons,removeMarkdownSyntax:removeMarkdownSyntax};function getZoneSafeMethod(e,t,n=window){var i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}const goToRegex=new RegExp(guideMarkdownUtil.goToString),PollBranching={name:"PollBranching",script(r,o,a){let s=!1;var e=initialBranchingSetup(r,a);!e||1<a._.size(e)||this.on("beforeAdvance",e=>{var t=0===r.guideElement.find("[branching] .pendo-radio:checked").length,n=r.guideElement.find("[branching] .pendo-radio:checked + label")[0];let i;n&&(i=a._.isNull(n.getAttribute("goToStep"))),s||t||i||(s=!0,branchingGoToStep(e,r,o,a))})},test(e,t,n){e=null==(e=e.guideElement)?void 0:e.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return!n._.isUndefined(e)&&n._.size(e)},designerListener(i){var e=i.dom.getBody();function r(e,t){return`<svg id="pendo-ps-branching-svg" viewBox="0 0 24 24" fill="none"
|
|
37
37
|
style="margin-left: 5px;
|
|
38
38
|
height:${t}; width:${t}; display:inline; vertical-align:middle;" xmlns="http://www.w3.org/2000/svg">
|
|
39
39
|
<g stroke-width="0"></g>
|