@pendo/agent 2.291.3 → 2.291.4
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 +11 -18
- 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},De=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=De:G.sha1=De;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){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),C=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 Ce(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 _e=Ce(d),s=Ce(y),xe=Ce(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 C(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 _=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=C(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=C(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=C(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=C(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=C(i,t),A(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=C(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=C(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=C(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=C(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 Ct(e,t,n){return t in n}var _t=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=Ct,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)}),_t(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=C(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:_e,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():_e({},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=C(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:_,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:_(),o=null,u=n.apply(a,s),o||(a=s=null)}),e=function(){var e=_(),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=_()-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=_(),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(C(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=C(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=C(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:_t,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 C.isFunction(e)||C.isRegExp(e)?e:C.isArray(e)?C.map(e,ve):C.isObject(e)?C.reduce(e,function(e,t,n){return e[n]=ve(t),e},{}):e}var f=function(){var i=C.all,r=C.each,o=C.filter,a=C.first,s=C.find,n=C.map,u=C.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=C.get(t.lookup,(t=e,C.get(t,"key")||C.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||C.get(e,"supportedSources",[d,c,l]),o(n(t,C.partial(v,e)),function(e){return me(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||C.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"}var Ce,_e=function(e,t){return e=e||10,(t=!isNaN(Re)&&(!t||Re<t))&&Ce<e};function xe(e){return parseInt(e,10)}var Te=function(e){return C.isString(e)?e.toLowerCase():e};function ke(){return(window.navigator||{}).userAgent}e=ke(),t=xe((/msie (\d+)/.exec(Te(e))||[])[1]),Ce=t=isNaN(t)?xe((/trident\/.*; rv:(\d+)/.exec(Te(e))||[])[1]):t;var Ae,Re=function(e,t){e=xe((/trident\/(\d+)/.exec(Te(e))||[])[1]);return e=isNaN(e)&&7==t?3:e}(ke(),Ce),Oe={},Ne=xe((/android (\d+)/.exec(Te(ke()))||[])[1]),Me=/Boxee/i.test(ke()),Le=window.document||{},Pe=Le.documentMode,Fe=/^(Moz|webkit|O|ms)(?=[A-Z])/,De=Le.body&&Le.body.style,W=!1,e=!1;if(De){for(var Ue in De)if(Ue=Fe.exec(Ue)){Ae=(Ae=Ue[0]).substr(0,1).toUpperCase()+Ae.substr(1);break}Ae=Ae||"WebkitOpacity"in De&&"webkit",W=!!("transition"in De||Ae+"Transition"in De),e=!!("animation"in De||Ae+"Animation"in De),!Ne||W&&e||(W=C.isString(Le.body.style.webkitTransition),e=C.isString(Le.body.style.webkitAnimation))}var t=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id;var Ge={supportsHistoryApi:C.memoize(function(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&C.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&C.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&C.get(n,"pushState.writable",!0)&&C.get(n,"replaceState.writable",!0);return!(!e||t||!n||!!(Ne<4)||Me||Ee())}),supportsHashChange:function(){return!(!("onhashchange"in window)||!(!Pe||7<Pe)||Ee())},hasEvent(e){var t;return("input"!=e||9!=Ce)&&(C.isUndefined(Oe[e])&&(t=Le.createElement("div"),Oe[e]="on"+e in t),Oe[e])},vendorPrefix:Ae,transitions:W,animations:e,android:Ne,msie:Ce,msieDocumentMode:Pe,safari:/apple/i.test(navigator.vendor),sri:"integrity"in document.createElement("script"),addEventListener:C.isFunction(window.addEventListener),MutationObserver:/native/.test(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:C.memoize(function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(ke())}),isChromeExtension:t},Be=function(){return!isNaN(Ce)&&11!=Ce&&"CSS1Compat"!==document.compatMode},ze=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,Ce<=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==Ce?e.arrow.top--:Ce<=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},je="",He="",qe="",We="",De="",Ve="2.291.3_",W="2.291.3",Je="xhr",Ke=function(){return Be()?Ve+"+quirksmode":Ve};var $e=/^\s+|\s+$/g;function Ze(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 Xe=(Xe=String.prototype.trim)||function(){return this.replace($e,"")},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=C=0;N<q;N++)A[C++]=m[N];for(N=0;N<W;N++)A[C++]=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+=C){for(C=1;N+C<x&&A[N+C]===A[N];++C);if(_=C,0===A[N])if(_<3)for(;0<_--;)O[R[T++]=0]++;else for(;0<_;)(k=_-3<(k=_<138?_:138)&&k<_?_-3:k)<=10?(R[T++]=17,R[T++]=k-3,O[17]++):(R[T++]=18,R[T++]=k-11,O[18]++),_-=k;else if(R[T++]=A[N],O[A[N]]++,--_<3)for(;0<_--;)R[T++]=A[N],O[A[N]]++;else for(;0<_;)_-3<(k=_<6?_:6)&&k<_&&(k=_-3),R[T++]=16,R[T++]=k-3,O[16]++,_-=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 Ye={Deflate:p(e.exports).Zlib.Deflate},Qe="base64url";function et(e,t){t=t||Qe;e=Ze("string"==typeof e?e:JSON.stringify(e)),e=new Ye.Deflate(e).compress();return t===Qe?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 tt={CRC32:p(t.exports).Zlib.CRC32},nt=function(e,n){var i;return 200<=(n=n||0)?e:C.isArray(e)?C.map(e,function(e){return nt(e,n+1)}):!C.isObject(e)||C.isDate(e)||C.isRegExp(e)||C.isElement(e)?C.isString(e)?C.escape(e):e:(i={},C.each(e,function(e,t){i[t]=nt(e,n+1)}),i)},it=function(e){e=Ze(e);return c.uint8ToBase64(e)},rt=function(e){if(void 0!==e)return e=Ze(e=C.isString(e)?e:JSON.stringify(e)),tt.CRC32.calc(e,0,e.length)};function ot(e){return e[Math.floor(Math.random()*e.length)]}function at(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=ot(i);return n}var st=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 ut(){return"undefined"!=typeof $A&&C.isFunction($A.get)&&C.isString($A.get("$Browser.formFactor"))}function dt(e,t=window){var[e,t,n=window]=[C,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 ct=C.isFunction(e.isFinite)?e.isFinite:e.Number&&C.isFunction(e.Number.isFinite)?e.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function lt(e){return"number"==typeof e&&ct(e)&&Math.floor(e)===e}function pt(e,t,n,i){(t=t||{}).maxRetries=lt(t.maxRetries)?t.maxRetries:10,t.delay=lt(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,pt(e,t,o,a)},t.delay):(a||function(){})()}var ht=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function ft(e){return C.isObject(e)&&C.isFunction(e.then)}var gt,mt=C.isFunction(window.decodeURIComponent)?window.decodeURIComponent:C.identity,vt=C.isFunction(window.encodeURIComponent)?window.encodeURIComponent:C.identity;class yt{constructor(){this.listeners={}}addEventListener(e,t){let n=this.listeners[e];n||(n=[],this.listeners[e]=n),C.findIndex(n,e=>t===e)<0&&n.push(t)}removeEventListener(e,t){var n,i=this.listeners[e];i&&0<=(n=C.findIndex(i,e=>t===e))&&(i.splice(n,1),i.length||delete this.listeners[e])}dispatchEvent(t){var e=this.listeners[t.type];e&&C.each(e,e=>{e(t)})}}class bt{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+=": "+C.map(this.attributes,(e,t)=>t+"="+e)),e}hashCode(){return this.toString()}}(t=gt=gt||{}).Debug="debug",t.Info="info",t.Warn="warn",t.Error="error",t.Critical="critical";class wt extends yt{write(e,t,n){this.dispatchEvent(new bt(t,e,n))}writeError(e,t,n){let i,r;C.isString(e)?(i=e,r={message:i}):(r=e,i=r.message),n&&n.error&&(r=n.error,delete n.error);e=new bt(t,i,n);e.error=r,this.dispatchEvent(e)}debug(e,t){this.write(e,gt.Debug,t)}info(e,t){this.write(e,gt.Info,t)}warn(e,t){this.writeError(e,gt.Warn,t)}error(e,t){this.writeError(e,gt.Error,t)}critical(e,t){this.writeError(e,gt.Critical,t)}}const _=new wt;function St(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Et=function(){var e=f.get("storage.allowKeys")||"*";return C.isArray(e)?C.indexBy(e):e};function It(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function Ct(n){C.forEach(C.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function _t(e){var t=C.noop,t={getItem:()=>null,setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:It(n,n.getItem,null),setItem:It(n,n.setItem),removeItem:It(n,n.removeItem),clearPendo:C.partial(Ct,n)}:t}catch(i){return t}}var xt=_t(function(){return window.localStorage}),Tt=_t(function(){return window.sessionStorage});function kt(e){try{return JSON.parse(e)}catch(t){return null}}var At,Rt={},Ot=!0,Nt=function(){return f.get("localStorageOnly")},Mt=function(){return!!f.get("disableCookies")};function Lt(e){Ot=e}var Pt=function(e){var t=Mt()||Nt()?Rt[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?mt(e[2]):null},Ft=function(e,t,n,i){var r,o;!Ot||f.get("preventCookieRefresh")&&Pt(e)===t||(o=qt(n),(r=new Date).setTime(r.getTime()+o),o=e+"="+vt(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict",At&&(o+=";domain="+At),Mt()||Nt()?Rt[e]=o:document.cookie=o)};function Dt(e){At?Ft(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var Bt=function(e,t){return`_pendo_${e}.`+(t||E.apiKey)},zt=function(e,t){return Pt(Bt(e,t))};const jt=864e5,Ht=100*jt,qt=(e=Ht)=>{var t=f.get("maxCookieTTLDays"),t=t<Infinity?t*jt:Infinity;return Math.min(e,t)};var Wt=function(e,t,n,i,r){n=n||Ht,Ft(Bt(e,r),t,n,i)};class Vt{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:C.identity}getKeyDeserializer(e){return this.keys[e]?this.keys[e].deserializer:C.identity}_add(e,t,n={}){n=C.extend({type:t,duration:null,isPlain:!1,isSecure:!1,cookieSuffix:undefined,serializer:C.identity,deserializer:C.identity},n),this.keys[e]||(this.keys[e]=n)}_has(e,t){return!!this.keys[e]&&this.keys[e].type===t}}var Jt,Kt,$t,Zt,m,h=function(){const u=new Vt;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=Et())||n[t])return u[r](e)||_.warn(`storage key ${e} is not registered`),i.apply(this,arguments);_.debug(`writing storage key ${e} is not allowed`)}}function d(){return!Mt()&&!At&&c("localStorage")}var c=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:Bt(e,n);if(d())return localStorage.removeItem(t);Dt(t)}const t=C.extend({},Tt),n=(t.setItem=e(t.setItem,"hasSession"),C.extend({},xt));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:Bt(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?Pt(e):zt(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:Bt(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+qt(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void l(c)}catch(s){}if(!i)return Wt(e,t,n,r,o);Ft(e,t,n,r)},"hasLocal"),clear:o,registry:u,getLocal:()=>n,getSession:()=>t}}(),Xt=(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=(Kt=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},$t=function(n,i){var r=Jt.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===Zt?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},Zt=1,(Jt={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,C.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(Zt,e)},a=function(e){t(2,e)},s=function(e,t){e=$t(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},u=function(e){var t=Kt();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=Kt();return{resolve:e(d),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},Jt);function Yt(e){var n,i=m.defer(),r=C.isArray(e)?[]:{},o=C.size(e);return o?(n=!1,C.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()&&Ge.isMinimumIEVersion(11)?m={all:function(e){return C.isArray(e)?Xt.all.apply(Xt,arguments):Yt(e)},reject:function(){return Xt.reject.apply(Xt,arguments)},resolve:function(){return Xt.resolve.apply(Xt,arguments)},defer:function(){var n={};return n.promise=new Xt(function(e,t){n.resolve=e,n.reject=t}),n}}:((m=t).all=Yt,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 Qt=h.getSession(),en="pendo_tabId",tn="pendo_parentTabId";nn=window,e=C.partial,rn=C.extend,on=C.omit,an={data:{},getItem(e){return an.data[e]},setItem(e,t){an.data[e]=t},removeItem(e){an.data[e]=null,delete an.data[e]}},sn=e(pn,en,hn),un=e(pn,"pendo_frameId",an);var nn,rn,on,an,sn,un,dn={addTracerIds(e){return on(rn(e,{parentTabId:cn(tn,hn),tabId:sn(),frameId:un()}),function(e){return e===undefined})},setParentTabId:function(e){ln(tn,e,hn)},newTabId:function(){var e=at(16);return ln(en,e,hn),e},getTabId:sn,getFrameId:un,tabIdChanged:function(t){var e;if(Ge.addEventListener)return nn.addEventListener("storage",e=function(e){e.key===en&&(an.removeItem(en),t())}),function(){nn.removeEventListener("storage",e)}}};function cn(e,t){return(C.isFunction(t)?t():t).getItem(e)}function ln(e,t,n){(C.isFunction(n)?n():n).setItem(e,t)}function pn(e,t){var n=cn(e,t);return n||ln(e,n=at(16),t),n}function hn(){return n=an,i=Qt,{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 fn(){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(C.isString(e)||C.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),C.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 C.isFunction(t)?(n=C.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=C.toArray(arguments).slice(1);return C.map(t,function(e){return e.apply(E,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return C.map(e,function(e){if(!t.cancel)return e.apply(E,[t])})},this.triggerAsync=function(){var e=C.map(this.trigger.apply(this,arguments),function(e){return!1===e?m.reject():e});return m.all(e)},this}fn.clear=function(t){t&&C.each(C.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};ki={DEBUG:t="debug",FRAMES:e="frames",LIFECYCLE:i="lifecycle",RUNTIME:Pi="runtime"},gn=[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",[Pi]),new n("beforeAdvance",[Pi]),new n("beforePrevious",[Pi]),new n("beforeSnooze",[Pi]),new n("beforeDismiss",[Pi]),new n("beforeUnmount",[Pi]),new n("unmounted",[Pi]),new n("beforeUpdate",[Pi]),new n("updated",[Pi]),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])],mn=fn.call({}),vn={debug(){return dn.addTracerIds(bn.apply(null,arguments))},lifecycle:bn,runtime:bn,frames:bn},yn=mn.trigger,mn.trigger=wn,C.each(C.values(ki),function(e){mn[e]={on:C.partial(mn.on,e),one:C.partial(mn.one,e),off:C.partial(mn.off,e)}}),C.each(gn,function(e){e=e.name,mn[e]={on:C.partial(mn.on,e),one:C.partial(mn.one,e),off:C.partial(mn.off,e),trigger:C.partial(wn,e)}});var gn,mn,vn,yn,y=mn;function n(e,t){this.name=e,this.groups=t||[]}function bn(e,t){e={type:e,ts:v()};return me(t)&&C.isObject(t)&&(e.data=t),e}function wn(t){var e=C.findWhere(gn,{name:t}),n=C.toArray(arguments).slice(1),i={};return C.each(e.groups,function(e){i.cancel||(i=vn[e](t,n),yn.apply(mn,[e].concat(i)))}),i.cancel||(i=bn(t,n),yn.apply(mn,[t].concat(i))),i}function Sn(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),C.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),C.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:C.partial(t,i),subscribeAction:C.partial(t,r),registerModule:function h(n,e){C.isString(n)&&(n=[n]);var t=d(s.state,e,n);C.extend(s.getters,p(e,t,s,n));C.extend(o,c(e,t,n));C.extend(a,l(e,t,s,n));C.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return C.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):C.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 C.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),C.extend(i,ve(t.state||{}))}function c(e,n,i){var r={};return C.each(e.mutations,function(e,t){r[u(i,t)]=C.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 C.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return C.each(e.actions,function(e,t){n[u(r,t)]=C.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return C.each(e.getters,function(e,t){a[t]=o[u(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var g=Sn(),En=(g.subscribe(function(e,t){}),"_PENDO_T_"),In=11;const Cn="visitorId",_n="oldVisitorId",xn="accountId";var Tn=function(e=""){return e+at(In)};var kn=function(e){return me(e)&&""!==e&&e!==Ln&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===Xe.call(e).length)},An=function(e){return!(!e||"number"==typeof e)&&e.substring(0,En.length)===En},Rn=function(){return!f.get("disablePersistence")},On=function(e){e=e||[Cn,xn,_n];const t=f.get("identityStorageSuffix")||E.apiKey;C.each(e,function(e){Dt(Bt(e,t)),h.clear(e,!1,t)})},Nn="VISITOR-UNIQUE-ID",Mn=function(e){return Nn===e},Ln="::",Pn=function(e){return new RegExp(Ln).test(e)};function Fn(e){return e.old_visitor_id!==e.visitor_id}var Dn,Un=function(e,t){var n,i={old_visitor_id:b(),old_account_id:jn()};kn(e)?(kn(n=e)?Bn(""+n):_.info("Invalid visitor id "+n),n=t,C.isUndefined(n)?_.info("No account id provided"):kn(n)?(E.accountId=""+n,Rn()&&Hn(xn,E.accountId)):(delete E.accountId,delete(t=f.getLocalConfig()).account,f.setLocalConfig(t),g.commit("metadata/clearAccount"),Rn()&&h.clear(xn),_.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=b({generate:!0}),i.account_id=jn(),!Fn(t=i)&&t.old_account_id===t.account_id||(Fn(i)&&(n=i.old_visitor_id)&&(Dn=n,Hn(_n,Dn)),y.identify.trigger(i))):_.info("Invalid visitor id "+e)};function Gn(){return Tn(En)}function Bn(e){E.visitorId!==e&&(Rn()&&Hn(Cn,e),E.visitorId=e)}function b(e={}){var t=function(){if(kn(E.visitorId))return E.visitorId;var e=f.get("forceAnonymous");if(Rn()){var t=qn(Cn);if(kn(t)&&(!e||An(t)))return t}return undefined}();return Bn(t=!t&&e.generate?Gn():t),t}function zn(){return b()||Gn()}var jn=function(){var e=f.get("forceAnonymous");return kn(E.accountId)||!Rn()||e||(e=qn(xn),E.accountId=e),E.accountId};function Hn(e,t){var n=f.get("identityStorageLifetime")||Ht,i=f.get("identityStorageSuffix")||E.apiKey;h.write(e,t,n,!1,!0,i)}function qn(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 Wn(){var e={old_visitor_id:b({generate:!1}),old_account_id:jn(),wasCleared:!0};On(),delete E.visitorId,delete E.accountId,b({generate:!0}),C.extend(e,{visitor_id:b(),account_id:jn()}),y.identify.trigger(e)}function Vn(e){e=e.data[0];return C.get(e,"wasCleared")}var Jn=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||_.critical(e)}}};Pi=function(n){return function Kn(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 Kn="function"==typeof(e=window.URL)&&/native/.test(e)?e:Pi(document);function $n(e){if((t=e)&&C.isFunction(t.composedPath))try{return e.composedPath()}catch(n){return e.path}var t;return null}function Zn(e){return e.shadowRoot}function Xn(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function Yn(e,t){return Xn(e,t)?e.host:e.parentNode}var Qn={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:$n,getShadowRoot:Zn,isElementShadowRoot:Xn,getParent:Yn,isShadowSelector:ei,wrapSizzle(i,d){i.intercept(function(a,t,n,i,r){var e,o;if(ei(t))return C.isFunction(document.documentElement.attachShadow)?(o=a,e=(e=t).replace(Qn.PSEUDO_REGEX,Qn.PSEUDO_SAFE),e=C.map(o.tokenize(e),ti),C.reduce(e,function(e,t){return e.concat(s(t,n,i,r))},[])):a(t.replace(Qn.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=Yn(i,n)}}(n,e)||u.push(...a(t,e,i,r))}),u}function s(e,t,n,i){var r,o;return ei(e)?(o=s((r={baseCss:(o=(o=e).split(Qn.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(Qn.PSEUDO_ELEMENT)}).baseCss,t),C.reduce(o,function(e,t){return Qn.getShadowRoot(t)?e.concat(s(r.shadowCss,Qn.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!Qn.isElementShadowRoot(t)&&(ei(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function ei(e){return!!e&&-1<e.indexOf(Qn.PSEUDO_ELEMENT)}function ti(e){return C.reduce(e,function(e,t){return t.value===Qn.PSEUDO_SAFE?e+Qn.PSEUDO_ELEMENT:e+t.value},"")}var ni,w,S,ii,ri,oi,ai,si,ui,di,ci,li,I,pi,hi,fi,gi,mi,vi,t={exports:{}},i=t,yi=window,x="sizzle"+ +new Date,bi=yi.document,wi=0,Si=0,Ei=ir(),Ii=ir(),Ci=ir(),_i=ir(),xi=function(e,t){return e===t&&(ci=!0),0},Ti={}.hasOwnProperty,ki=[],Ai=ki.pop,Ri=ki.push,Oi=ki.push,Ni=ki.slice,Mi=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},Li="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])+",Pi="\\["+r+"*("+e+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+e+"))|)"+r+"*\\]",Fi=":("+e+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Pi+")*)|.*)\\)|)",Di=new RegExp(r+"+","g"),Ui=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),Gi=new RegExp("^"+r+"*,"+r+"*"),Bi=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),zi=new RegExp(r+"|>"),ji=new RegExp(Fi),Hi=new RegExp("^"+e+"$"),qi={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+Pi),PSEUDO:new RegExp("^"+Fi),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("^(?:"+Li+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},Wi=/HTML$/i,Vi=/^(?:input|select|textarea|button)$/i,Ji=/^h\d$/i,Ki=/^[^{]+\{\s*\[native \w/,$i=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Zi=/[+~]/,Xi=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),Yi=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))},Qi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,er=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},tr=function(){li()},nr=hr(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Oi.apply(ki=Ni.call(bi.childNodes),bi.childNodes),ki[bi.childNodes.length].nodeType}catch(eS){Oi={apply:ki.length?function(e,t){Ri.apply(e,Ni.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&&(li(t),t=t||I,hi)){if(11!==l&&(s=$i.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))&&vi(t,d)&&d.id===r)return n.push(d),n}else{if(s[2])return Oi.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&w.getElementsByClassName&&t.getElementsByClassName)return Oi.apply(n,t.getElementsByClassName(r)),n}if(w.qsa&&!_i[e+" "]&&(!fi||!fi.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(d=e,c=t,1===l&&(zi.test(e)||Bi.test(e))){for((c=Zi.test(e)&&cr(t.parentNode)||t)===t&&w.scope||((a=t.getAttribute("id"))?a=a.replace(Qi,er):t.setAttribute("id",a=x)),o=(u=oi(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+pr(u[o]);d=u.join(",")}try{return Oi.apply(n,c.querySelectorAll(d)),n}catch(p){_i(e,!0)}finally{a===x&&t.removeAttribute("id")}}}return si(e.replace(Ui,"$1"),t,n,i)}function ir(){var n=[];function i(e,t){return n.push(e+" ")>S.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function rr(e){return e[x]=!0,e}function or(e){var t=I.createElement("fieldset");try{return!!e(t)}catch(eS){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ar(e,t){for(var n=e.split("|"),i=n.length;i--;)S.attrHandle[n[i]]=t}function sr(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 ur(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&&nr(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function dr(a){return rr(function(o){return o=+o,rr(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 cr(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ni in w=T.support={},ri=T.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!Wi.test(t||e&&e.nodeName||"HTML")},li=T.setDocument=function(e){var e=e?e.ownerDocument||e:bi;return e!=I&&9===e.nodeType&&e.documentElement&&(pi=(I=e).documentElement,hi=!ri(I),bi!=I&&(e=I.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",tr,!1):e.attachEvent&&e.attachEvent("onunload",tr)),w.scope=or(function(e){return pi.appendChild(e).appendChild(I.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),w.attributes=or(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=or(function(e){return e.appendChild(I.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=!!I.getElementsByClassName,w.getById=or(function(e){return pi.appendChild(e).id=x,!I.getElementsByName||!I.getElementsByName(x).length}),w.getById?(S.filter.ID=function(e){var t=e.replace(Xi,Yi);return function(e){return e.getAttribute("id")===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&hi)return(e=t.getElementById(e))?[e]:[]}):(S.filter.ID=function(e){var t=e.replace(Xi,Yi);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&&hi){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&&hi?t.getElementsByClassName(e):w.qsa&&hi?t.querySelectorAll("."+e):void 0},gi=[],fi=[],(w.qsa=!!I.querySelectorAll)&&(or(function(e){var t;pi.appendChild(e).innerHTML=Z().createHTML("<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&fi.push("[*^$]="+r+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||fi.push("\\["+r+"*(?:value|"+Li+")"),e.querySelectorAll("[id~="+x+"-]").length||fi.push("~="),(t=I.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||fi.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||fi.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||fi.push(".#.+[+~]"),e.querySelectorAll("\\\f"),fi.push("[\\r\\n\\f]")}),or(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&&fi.push("name"+r+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&fi.push(":enabled",":disabled"),pi.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&fi.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),fi.push(",.*:")})),(w.matchesSelector=Ki.test(mi=pi.matches||pi.webkitMatchesSelector||pi.mozMatchesSelector||pi.oMatchesSelector||pi.msMatchesSelector))&&or(function(e){w.disconnectedMatch=mi.call(e,"*"),mi.call(e,"[s!='']:x"),gi.push("!=",Fi)}),fi=fi.length&&new RegExp(fi.join("|")),gi=gi.length&&new RegExp(gi.join("|")),e=!!pi.compareDocumentPosition,vi=e||pi.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},xi=e?function(e,t){var n;return e===t?(ci=!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==bi&&vi(bi,e)?-1:t==I||t.ownerDocument==bi&&vi(bi,t)?1:di?Mi(di,e)-Mi(di,t):0:4&n?-1:1)}:function(e,t){if(e===t)return ci=!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:di?Mi(di,e)-Mi(di,t):0;if(r===o)return sr(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?sr(a[i],s[i]):a[i]==bi?-1:s[i]==bi?1:0}),I},T.matches=function(e,t){return T(e,null,null,t)},T.matchesSelector=function(e,t){if(li(e),w.matchesSelector&&hi&&!_i[t+" "]&&(!gi||!gi.test(t))&&(!fi||!fi.test(t)))try{var n=mi.call(e,t);if(n||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(eS){_i(t,!0)}return 0<T(t,I,null,[e]).length},T.contains=function(e,t){return(e.ownerDocument||e)!=I&&li(e),vi(e,t)},T.attr=function(e,t){(e.ownerDocument||e)!=I&&li(e);var n=S.attrHandle[t.toLowerCase()],n=n&&Ti.call(S.attrHandle,t.toLowerCase())?n(e,t,!hi):undefined;return n!==undefined?n:w.attributes||!hi?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},T.escape=function(e){return(e+"").replace(Qi,er)},T.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,n=[],i=0,r=0;if(ci=!w.detectDuplicates,di=!w.sortStable&&e.slice(0),e.sort(xi),ci){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return di=null,e},ii=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+=ii(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=ii(t);return n},(S=T.selectors={cacheLength:50,createPseudo:rr,match:qi,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(Xi,Yi),e[3]=(e[3]||e[4]||e[5]||"").replace(Xi,Yi),"~="===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 qi.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ji.test(n)&&(t=(t=oi(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(Xi,Yi).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Ei[e+" "];return t||(t=new RegExp("(^|"+r+")"+e+"("+r+"|$)"))&&Ei(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(Di," ")+" ").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]===wi&&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]=[wi,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[x]||(a[x]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===wi&&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]=[wi,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())?rr(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=Mi(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:rr(function(e){var i=[],r=[],s=ai(e.replace(Ui,"$1"));return s[x]?rr(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:rr(function(t){return function(e){return 0<T(t,e).length}}),contains:rr(function(t){return t=t.replace(Xi,Yi),function(e){return-1<(e.textContent||ii(e)).indexOf(t)}}),lang:rr(function(n){return Hi.test(n||"")||T.error("unsupported lang: "+n),n=n.replace(Xi,Yi).toLowerCase(),function(e){var t;do{if(t=hi?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=yi.location&&yi.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===pi},focus:function(e){return e===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ur(!1),disabled:ur(!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 Ji.test(e.nodeName)},input:function(e){return Vi.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:dr(function(){return[0]}),last:dr(function(e,t){return[t-1]}),eq:dr(function(e,t,n){return[n<0?n+t:n]}),even:dr(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:dr(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:dr(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:dr(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[ni]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ni);for(ni in{submit:!0,reset:!0})S.pseudos[ni]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ni);function lr(){}function pr(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function hr(a,e,t){var s=e.dir,u=e.next,d=u||s,c=t&&"parentNode"===d,l=Si++;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=[wi,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]===wi&&i[1]===l)return o[2]=i[2];if((r[d]=o)[2]=a(e,t,n))return!0}return!1}}function fr(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 gr(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 mr(h,f,g,m,v,e){return m&&!m[x]&&(m=mr(m)),v&&!v[x]&&(v=mr(v,e)),rr(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:gr(c,s,h,n,i),p=g?v||(e?h:d||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=gr(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?Mi(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=gr(p===t?p.splice(d,p.length):p),v?v(null,t,p,i):Oi.apply(t,p)})}lr.prototype=S.filters=S.pseudos,S.setFilters=new lr,oi=T.tokenize=function(e,t){var n,i,r,o,a,s,u,d=Ii[e+" "];if(d)return t?0:d.slice(0);for(a=e,s=[],u=S.preFilter;a;){for(o in n&&!(i=Gi.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Bi.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Ui," ")}),a=a.slice(n.length)),S.filter)S.filter.hasOwnProperty(o)&&(i=qi[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):Ii(e,s).slice(0)},ai=T.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=Ci[e+" "];if(!a){for(n=(t=t||oi(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=hr(function(e){return e===i},a,!0),d=hr(function(e){return-1<Mi(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==ui)||((i=t).nodeType?u:d)(e,t,n),i=null,e}];s<r;s++)if(t=S.relative[e[s].type])c=[hr(fr(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 mr(1<s&&fr(c),1<s&&pr(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Ui,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&pr(e))}c.push(t)}return fr(c)}(t[n]))[x]?r:o).push(a);(a=Ci(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=ui,h=e||b&&S.find.TAG("*",r),f=wi+=null==p?1:Math.random()||.1,g=h.length;for(r&&(ui=t==I||t||r);d!==g&&null!=(o=h[d]);d++){if(b&&o){for(a=0,t||o.ownerDocument==I||(li(o),n=!hi);s=m[a++];)if(s(o,t||I,n)){i.push(o);break}r&&(wi=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]=Ai.call(i));l=gr(l)}Oi.apply(i,l),r&&!e&&0<l.length&&1<u+v.length&&T.uniqueSort(i)}return r&&(wi=f,ui=p),c},y?rr(i):i))).selector=e}return a},si=T.select=function(e,t,n,i){var r,o,a,s,u,d="function"==typeof e&&e,c=!i&&oi(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&&hi&&S.relative[o[1].type]){if(!(t=(S.find.ID(a.matches[0].replace(Xi,Yi),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=qi.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(Xi,Yi),Zi.test(o[0].type)&&cr(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&pr(o))break;return Oi.apply(n,i),n}}return(d||ai(e,c))(i,t,!hi,n,!t||Zi.test(e)&&cr(t.parentNode)||t),n},w.sortStable=x.split("").sort(xi).join("")===x,w.detectDuplicates=!!ci,li(),w.sortDetached=or(function(e){return 1&e.compareDocumentPosition(I.createElement("fieldset"))}),or(function(e){return e.innerHTML=Z().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||ar("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&or(function(e){return e.innerHTML=Z().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ar("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),or(function(e){return null==e.getAttribute("disabled")})||ar(Li,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var vr=yi.Sizzle;T.noConflict=function(){return yi.Sizzle===T&&(yi.Sizzle=vr),T},i.exports?i.exports=T:yi.Sizzle=T;yr=p(t.exports),(br=C.extend(function(){return br.Sizzle.apply(this,arguments)},yr)).reset=function(){br.Sizzle=yr,br.matchesSelector=yr.matchesSelector,br.matches=yr.matches},br.intercept=function(e,t="Sizzle"){br[t]=C.wrap(br[t],e)},br.reset();var yr,br,u=br;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=C.toArray(r.childNodes)}else if(C.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 C.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 wr(){this.ownerKey="_pendo_"+at(8)}C.extend(wr.prototype,{cache(e){var t;return C.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&&!C.isEmpty(n)||(e[this.ownerKey]=undefined)}});var Sr=new wr,Er=1;function Ir(e){return C.isNumber(e.eventPhase)&&e.eventPhase===Er}function Cr(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?dt("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{_r(e,t,n,i)}):C.noop}function _r(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?dt("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var xr=function(e){var t=Qn.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},Tr={add(t,e){var n=Sr.get(t),i=(n.handle||(n.handle=function(e){Tr.dispatch(t,e)}),e.id=C.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||Cr(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=(Sr.get(r,"captureEvents")||{})[o.type]||[],t=(Sr.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=Sr.get(o)).ignore&&(a.handled=a.handled||{},C.each(t.slice(),function(e){var t=!!e.capture===Ir(o),n=(n=o,C.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(xr(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!me(e.selector)||0<k(xr(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){_.error(i)}}}))},remove(e,t,n,i){var r=Sr.get(e);if(r){if(C.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=C.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],_r(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],_r(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],_r(e,t,r.handle));C.isEmpty(r.captureEvents)&&C.isEmpty(r.bubbleEvents)&&(Sr.remove(e,"captureEvents"),Sr.remove(e,"bubbleEvents"),Sr.remove(e,"handle"))}},trigger(e){var t=Sr.get(e);if(!t.pendoStopped)if(e.bubbles){var n=xr(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=Qn.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),Ir(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)Tr.dispatch(o[i],e);(e=Tr.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(Tr.dispatch(n,e),(e=Tr.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)Tr.dispatch(o[i],e)}}else Tr.dispatch(xr(e),e)},clone(e){var t=C.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",Sr.ownerKey]),e=Qn.getComposedPath(e);return e&&(t.composedPath=C.constant(e)),t},$:{on(e,n,i,r){return C.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){C.each(e,function(e){Tr.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},kr=C.extend(Rr,{get:function(e,t){return Rr({method:"GET",url:e,headers:t})},post:Or,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",Or(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(C.isArray(t))i=t;else{if(!C.isObject(t))return e||"";i=C.keys(t)}var i=C.map(i,function(e){return C.isArray(t)?vt(e):vt(e)+"="+vt(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=C.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported(){return void 0!==Ar()}});function Ar(){return window.XMLHttpRequest||ActiveXObject}function Rr(e){var t=m.defer(),n=new(Ar())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),C.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 Or(e,t,n){return Rr({method:"POST",url:e,data:t,headers:n})}var Nr,Mr=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},Lr=function(){return f.get("annotateUrl")||Gr()||f.get("sanitizeUrl")||f.get(Jr)||f.get("xhrWhitelist")},Pr=function(){return Gr()?{href:Ur(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Fr=function(){return new Kn(window.location.href)},Dr=function(){var e,t,n,i;return Lr()?(e=Fr(),Gr()&&(e.href=Ur(e.href)),Mr()?(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:///","")):$r(e.href)):g.getters["location/href"]()},Ur=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Gr=function(){return!0===f.get("ignoreHashRouting")},Br=500;function zr(){return C.isUndefined(Nr)&&function e(){Vr(),Nr=Ut(e,Br)}(),()=>{clearTimeout(Nr),Nr=undefined}}var jr=function(e){var t;try{t=Dr()}catch(n){}return t},Hr=[],qr=!1,Wr=null;function Vr(){var t=Pr().href;Wr!=t&&(Wr=t,C.map(Hr,function(e){e(t)}))}var Jr="queryStringWhitelist";function Kr(e){var t=f.get("sanitizeUrl");return C.isFunction(t)?t(e):e}function $r(e){e=e||Pr().href;var t=f.get("annotateUrl");if(t)if(C.isFunction(t))try{var n,i,r,o=t();return o&&(C.isObject(o)||C.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&C.isArray(n)||i&&(C.isArray(i)||C.isObject(i)))&&(n&&(e=Xr(e,null,n,!0)),o=i||{}),kr.urlFor(e,o,r)):e}catch(a){_.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else _.error("customer-provided `annotateUrl` must be of type: function");return e}function Zr(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function Xr(e,t,n,i){e=e||jr(),t=t||Zr(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=C.isArray(n)?Qr(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var Yr,Qr=function(e,t,n){return n&&C.contains(t,"*")?"":(e=eo(e),e=n?C.omit(e,t):C.pick(e,t),to(e))},eo=function(e){e=e.split("&");return C.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&mt(t[1])),e},{})},to=function(e){return C.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},A={watch:function(e){const n=[];_.info("Initializing Pendo URL Watcher");var i,t=f.get("location.pushState")&&Ge.supportsHistoryApi();return qr||(t&&(i=window.history,C.each(["pushState","replaceState"],function(e){var t=i[e];i[e]=C.wrap(i[e],function(e){var t=e.apply(i,C.toArray(arguments).slice(1));return Ut(Vr,0),t}),i[e]._pendoUnwrapped=t,n.push(()=>{i[e]=t})}),n.push(Cr(window,"popstate",Vr))),Ge.supportsHashChange()&&n.push(Cr(window,"hashchange",Vr)),!1!==t&&Ge.supportsHashChange()||n.push(zr()),qr=!0),Hr.push(e),()=>{C.each(n,function(e){e()}),Hr.length=0,qr=!1}},get:jr,externalizeURL:function(e,t,n){n=n||f.get(Jr);return Kr(Xr(e,t,n=C.isFunction(n)?n():n,!1))},startPoller:zr,getWindowLocation:Pr,clear:function(){Hr=[]},isElectron:Mr,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 no(){var e=f.getLocalConfig("dataHost");return e||((e=f.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:He)}function io(){Yr=no()}function ro(){var e=f.get("contentHost")||f.get("assetHost")||qe;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function oo(e){var t=ro(),n=0<=(n=t).indexOf("localhost")||0<=n.indexOf("local.pendo.io")?e.replace(".min.js",".js"):e;return t+"/"+(We?We+"/":"")+n}function ao(){var e=f.get("allowPartnerAnalyticsForwarding",!1)&&f.get("adoptAnalyticsForwarding",!1);return f.get("trainingPartner",!1)||e}var so=3,uo=1,co=9,lo=11,po=4;function R(e){var t;if((t=e)&&t.nodeType===uo)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function ho(e,t){var n;return!(!e||!C.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&C.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),C.any(n,function(e){return e&&"none"!==e}))}function fo(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function go(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function mo(e){return C.isNumber(e)?e:0}function vo(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!bo(e)?null:e}function yo(e){return ho(R(e),Ae)&&isNaN(Ce)}function bo(e){if(e)return(e=R(e))&&(C.contains(["relative","absolute","fixed"],e.position)||ho(e,Ae))}function wo(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=bo(t)?t:vo(t,n),i=t?So(t):{top:0,left:0},e=So(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+=mo(t.scrollTop),i.left+=mo(t.scrollLeft)),i.top-=mo(t.clientTop),i.left-=mo(t.clientLeft)):(i.top+=fo(n),i.left+=go(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function So(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 Eo=void 0===(e=f.get("pendoCore"))||e,Io=function(e,t,n){e=Yr+"/data/"+e+"/"+t,t=C.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function Co(){return C.compact([E.apiKey].concat(E.additionalApiKeys))}var _o=function(e){return e+="v"+Ve,To(Io("log.gif",E.apiKey,{msg:e,version:Ve}))};function xo(e){try{var t=Yr+"/data/errorlog?apiKey="+E.apiKey,n={error:e,version:"v"+Ve,visitorId:b()},i=ko.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):kr.postJSON(t,n);return i.then(function(){_.info("successfully wrote error")},function(e){_.info("error writing error:"+e)})}catch(r){return _.info("Failed to write error to server using POST endpoint: "+r),_o("Failed to write error to server using POST endpoint: "+r)}}function To(e){var t,n;return No()?(t=m.defer(),Cr(n=new Image,"load",t.resolve),Cr(n,"error",t.reject),n.src=e,t.promise):m.resolve()}function ko(e,t={}){t=C.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t)}function Ao(e,t){return navigator.sendBeacon(e,t)}ko.supported=function(){try{return C.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var Ro=!(Ao.supported=function(){return C.isFunction(navigator.sendBeacon)}),Oo=function(){var e=No();return Ro=!0,e&&y["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},No=function(){return!Ro&&Eo},Mo=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(Do(e))}catch(n){return!1}},Lo=function(e,t){try{var n;Mo(e,t)||(n=Xe.call(Do(e))+" "+t,Fo(e,n))}catch(i){}},Po=function(e,t){try{var n,i;Mo(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=Do(e).replace(n," "),Fo(e,i))}catch(r){}},Fo=function(e,t){C.isString(e.className)?e.className=t:e.setAttribute("class",t)},Do=function(e){try{var t=e.className;return(C.isString(t)||!me(t)?t:e.getAttribute("class"))||""}catch(n){return""}},Uo=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},Go={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},Bo=function(e,t){t=function(e){if(C.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);zo(e,t)},zo=function(a,e){C.each(e,function(e,t){if(""!==(t=Xe.call(t))){var n=Uo(t),i=(!C.isNumber(e)||isNaN(e)||Go[n]?C.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=Xe.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=Xe.call(e)}catch(o){_.info("failed to set style: "+t+" with value "+e)}}})},jo=function(e=window){return Be()?{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}},Ho=function(e){var t=jo(),n=fo(),i=go();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function qo(t){return C.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function Wo(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(Ce)||!ea(n);n=n.parentNode}return}(e)?((n=So(e)).fixed=!0,qo(n)):qo(wo(e,$o(t.document),t))}var Vo=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},Jo=C.compose(function(e){return Array.prototype.slice.call(e)},function(e,t){try{return u(e,t)}catch(n){return _o("error using sizzle: "+n),t.getElementsByTagName(e)}}),Ko=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return _.info("error interrogating body elements: "+n),_o("error picking best body:"+n),0}},$o=function(e){e=e||document;try{var t=Jo("body",e);return t&&1<t.length?(t.sort(Ko),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return _o("Error getting body element: "+n),e.body}};function Zo(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 Xo(e,t=document){if(u.contains(t,e))return!0;for(;e&&e.parentNode||Qn.isElementShadowRoot(e);)e=Qn.getParent(e);return e===t}var Yo=function(e){var t,n,i;if(null!=e)return t=(n=e.ownerDocument||document).defaultView||window,i=$o(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=Wo(e,t)).right=i.left+i.width,i.bottom=i.top+i.height,i)},Qo=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function ea(e){for(var t=e&&e.parentNode;t;){if(ho(R(t),Ae))return 1;t=t.parentNode}}var ta=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(Xo(e))for(i=e;i;)if(Qn.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))&&!C.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&ea(i))i=vo(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function na(e,t){e=R(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?ia.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?ia.BOTH:t.test(e.overflowY)?ia.Y:t.test(e.overflowX)?ia.X:t.test(e.overflow)?ia.BOTH:ia.NONE}var ia={X:"x",Y:"y",BOTH:"both",NONE:"none"};function ra(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&Xo(e)}function oa(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 aa(e){if(e){if(C.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function sa(e,t,n){const i=[];var r=aa(document.documentElement);let o=aa(ta(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=aa(ta(o)),a++;return()=>{C.each(C.compact(i),function(e){e()}),i.length=0}}const ua=['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 da(e,t,n){var i=Yo(t),t=na(t,n);if(t!==ia.BOTH||Qo(e,i)){if(t===ia.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===ia.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function ca(e){if(e){if(ra(e))return 1;var t=Yo(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 la(e,t){if(!ca(e))return!1;if(!ra(e)){for(var n=Yo(e),i=ta(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!da(n,i,t))return!1;i=ta(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=go(),e+=fo()),o<=0||e<=0)return!1}}return!0}function pa(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,u=Yo(e),d=ta(e,s);if(!ca(e))return!1;for(;d;){if(t=Yo(d),(o=na(d,a))!==ia.NONE&&(i=n=0,o!==ia.Y&&o!==ia.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!==ia.X&&o!==ia.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))),!da(u,d,s))return!1;d=ta(d,s)}return!0}function ha(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=$o(),u=ta(e,a);u&&u!==s;)t=Yo(e),n=Yo(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),C.isFunction(u.scrollBy)?u.scrollBy(r,i):(u.scrollTop+=i,u.scrollLeft+=r),u=ta(u,a)}Pi={$:{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(){Bo(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass(e){return e=e.split(/\s+/),this.each(function(t){C.each(e,function(e){Lo(t,e)})})},removeClass(e){return e=e.split(/\s+/),this.each(function(t){C.each(e,function(e){Po(t,e)})})},hasClass(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){C.each(e,function(e){n=n&&Mo(t,e)})}),n)},toggleClass(e){return e=e.split(/\s+/),this.each(function(t){C.each(e,function(e){(Mo(t,e)?Po:Lo)(t,e)})})},css(e){return this.each(function(){Bo(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),Xo(this)&&C.each(u("script",this),oa)}),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),Xo(this[0]))&&C.each(u("script",this[0]),oa)},remove(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr(e,t){return C.isObject(e)?(this.each(function(){C.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=Yn(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(){C.isFunction(this.focus)&&this.focus()})}}};class fa{constructor(e=$o(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},Ge.MutationObserver){const n=new(dt("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(){C.each(this.listeners,e=>{e.get()})}addObservers(...e){this.listeners=[].concat(this.listeners,e)}teardown(){this._teardown()}}ki=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var ga="function"==typeof(i=window.WeakRef)&&/native/.test(i)?i:ki();function ma(e,t){var n,i;return e.tagName&&-1<["textarea","input"].indexOf(e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:wa(n.substring(0,i))):va(e,t)}function va(e,t=128){var n,i="",r=e.nodeType;if(r===so||r===po)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===uo||r===co||r===lo)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=va(e.childNodes[a],t-i.length))).length)return i+wa(o.substring(0,t-i.length));i+=o}}return i}function ya(e){return 55296<=e&&e<=56319}function ba(e){return 56320<=e&&e<=57343}function wa(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(ya(t)||ba(t)){if(1===e.length)return e.slice(0,-1);if(ya(t))return e.slice(0,-1);if(ba(t))if(!ya(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class Sa{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let t=this.elRef&&this.elRef.deref();var e=Xo(t);if(!t||!e){if(t&&!e&&this.teardown(t),!(t=k(this.cssSelector)[0]))return undefined;C.each(this.events,e=>{t.addEventListener(e,e=>this.onEvent(e))}),this.elRef=new ga(t)}return t}getText(e=1024){return ma(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;C.each(this.listeners[e],e=>e(t))}teardown(t=this.get()){t&&C.each(this.events,e=>t.removeEventListener(e,this.onEvent))}}function Ea(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===no())return!0;if(t===ro())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===je.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-"+je+"-static\\.storage\\.googleapis\\.com$")])),f.get("adoptHost"));if(n&&t==="https://"+n)return!0;return!!C.contains(f.get("allowedOriginServers",[]),t)||C.any(e,function(e){return e.test(t)})}function Ia(e){var t;if(C.isString(e))return t=(t=Zr(e).substring(1))&&t.length?eo(t):{},e=C.last(C.first(e.split("?")).split("/")).split("."),{filename:C.first(e),extension:e.slice(1).join("."),query:t}}function Ca(e,t){var n;f.get("guideValidation")&&Ge.sri&&(n=Ia(t),t=C.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],C.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}C.extend(k,{data:Sr,event:Tr,removeNode:Vo,getClass:Do,hasClass:Mo,addClass:function(e,t){var n;"string"==typeof e?(n=k(e),C.map(n,function(e){Lo(e,t)})):Lo(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=k(e),C.map(n,function(e){Po(e,t)})):Po(e,t)},getBody:$o,getComputedStyle:R,getClientRect:Yo,intersectRect:Qo,getScrollParent:ta,isElementVisible:la,Observer:fa,Element:Sa,scrollIntoView:ha,getRootNode:aa}),C.extend(k.prototype,Tr.$,Pi.$);var _a,xa=function(e){var t=0===f.get("allowedOriginServers",[]).length,n=ao();return!(!t&&!n&&(t=je,n=Y,!/prod/.test(t)||re(n)))||Ea(e)},Ta=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(C.isString(e)&&(e={url:e}),!xa((d=e.url,new Kn(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(ut())return(i=document.createElement("script")).addEventListener("load",function(){t(),Vo(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=C.wrap(t,function(e,t){k.removeNode(i),t?n&&e(t):e.apply(this,C.toArray(arguments).slice(1))})}return s.appendChild(a),ka(a,e.url,t),a}catch(c){return{}}var d},ka=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||_o("Failed to load "+t+" within 10 seconds")},1e4))},Aa=function(e){var t=JSON.parse(e.data),n=e.origin;_.debug(E.app_name+": Message: "+JSON.stringify(t)+" from "+n),qa(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},Ra=function(e){Na(Fa)(Oa(e))},Oa=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};_.debug("Invalid Message: Missing 'type' in data format")}}catch(r){}};function Na(t){return function(e){if(e&&Ea(e.origin))return t.apply(this,arguments)}}var Ma={disconnect(e){},module:function(e){Ha(e.moduleURL)},debug:function(e){Ja(Aa)}},La=function(e,t){Ma[e]=t},Pa=function(e){delete Ma[e]},Fa=function(e){var t;e&&(t=e.data)&&me(Ma[t.type])&&Ma[t.type](t,e)},Da={},Ua=function(e){if(Da[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},Ga=function(e){return me(Da[e])},Ba=function(e){if(Da)for(var t in Da)if(0<=t.indexOf(e))return t;return null},za=[],ja=function(){var e;za.length<1||(e=za.shift(),Ga(e))||Ta(e,function(){Ua(e),ja()})};var Ha=function(e){!function(e){var t={"/js/lib/ckeditor/ckeditor.js":1};C.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 Kn(e);return Ea(n.origin)&&t[n.pathname]}catch(i){_.debug("Invalid module URL: "+e)}}(e)||(za.push(e),1<za.length)||ja()},qa=function(e,t,n){var i,r=C.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=_a||Va(),n="*"),t.guid=r,e&&C.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";_.info("Failed to postMessage: "+t)}return r},Wa=function(){return window!=window.top},Va=function(){return new RegExp("^"+St(Yr).replace(/^https?:/,"https?:")).test(location.href)?window.parent:window.top},Ja=function(e){var t;return me(window.addEventListener)&&C.isFunction(window.addEventListener)&&(t=Na(e),window.addEventListener("message",t,!1)),function(){me(window.removeEventListener)&&C.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},Ka=C.memoize(function(){return f.get("restrictP1Access")}),$a=[],Za=[],Xa=[],Ya=12e4,Qa=16,es=1900,ts=65536,ns=function(e){return!(!e||""===e)},is=function(){return A.get()},rs={flush:C.noop,flushBy:C.noop,flushEvents:us,flushTrackEvents:us,flushAgenticEvents:us,flushSilos:us,flushTrackEventSilos:us,flushAgenticEventSilos:us,flushBeacons:us,flushNow:us,flushLater:ds,flushEvery:cs,flushStop:ls,beacons:[],silos:[],trackEventSilos:[],agenticEventSilos:[],lock:Oo,unlock:function(){if(!No())return ps(),function(){var e=!No();return Ro=!1,e&&y["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."}()}},os=[];function as(e){os.push(e)}function ss(e){e=os.indexOf(e);0<=e&&os.splice(e,1)}function us(e,t){try{C.each(os,function(e){e.flush&&e.flush(t)})}catch(n){_.critical("unhandled error while flushing event cache",{error:n})}}function ds(e){return t=C.partial(us,!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 cs(e){var t;if(e=parseInt(e,10)||0,C.isObject(cs.intervals)||(cs.intervals={}),!cs.intervals[e])return t=window.setInterval(us,e),cs.intervals[e]=function(){clearInterval(t),delete cs.intervals[e]}}function ls(){var e=C.values(cs.intervals).concat([us]);C.map(e,function(e){C.isFunction(e)&&e()})}function ps(){C.each(os,function(e){e.clear&&e.clear()}),ls()}function hs(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 fs(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(_.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(_.debug(t+"The signingKeyName is supplied but missing jwt."),!1):(e=e.jwt,!(!C.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(_.debug(t+"The jwt is invalid."),!1)):(_.debug(t+"Missing jwt and signingKeyName."),!1)}gs=null;var gs,ms={set:function(e){gs=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==gs?gs:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!f.get("enableSignedMetadata")&&(n=fs(e,t),f.get("requireSignedMetadata")&&!n?(_.debug("Pendo will not "+t+"."),!1):n?hs(e.jwt):void _.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class vs{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 Xt.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 Xt.all(n)}}const ys="unsentEvents";class bs{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(ys);try{this.events=JSON.parse(e.read(ys)||"{}"),e.clear(ys)}catch(t){this.events={}}}write(e){0<C.size(this.events)?e.write(ys,JSON.stringify(this.events),5184e5):e.clear(ys)}}var ws=new bs,Ss="_PENDO_UNNAMED_",Es=5;function Is(e,t,n,i,r,o){var a,s;a=f.get("dropAnonymous"),s=An(b()),!Eo||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:jn(),url:A.externalizeURL(s),props:a||{},eventProperties:n},s=dn.addTracerIds(s),"track"===o&&(s.track_event_name=t||Ss),y.eventCaptured.trigger(s,r),ns((a=s).url)&&function(e){if(f.get("freeNPSData"))return C.contains(Cs,e.type);return 1}(a)&&("track"===e?Us.push(a):"agentic"===i?Gs.push(a):Ds.push(function(e,t){try{if(!e.getters["monitoring/shouldFlush"]())return t;var n=e.getters["monitoring/payload"]();e.dispatch("monitoring/flush"),C.isEmpty(n)||(t.ops=n)}catch(i){}return t}(g,a))))}var Cs=["load","meta","identify"];function _s(){var r=C.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 xs=0;function Ts(e,t){e.sequence=xs++,t(e)}function ks(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 As(e,t){return ao()?Rs("account_id")(e,t):t(e)}function Rs(s){return function(e,t){if(!e.length)return t(e);for(var n=C.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==C.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 Os(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function Ns(e,t,n){t=n[t-1]||C.last(n);return Math.ceil(e/t)}function Ms(e,t){for(var n,i=0,r=(C.isFunction(t.overhead)?t.overhead:C.constant(0))(),o=0;o<e.length;++o){if(Ns(n=Os(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(Ns(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(Ns(i+(n=Os(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function Ls(){var e=ms.get();return C.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var Ps,Fs,Ds,Us,Gs,Bs;function zs(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=E.squeezeAndCompress(e.slice()),e.JZB.length<=ts)||1===e.length?t(e):(n=e.length/2,zs(e.slice(0,n),t),void zs(e.slice(n),t))}function js(e,t){No()&&t(e)}function Hs(){return function(e,t){1===e.length&&e.JZB.length>ts?(_.debug("Couldn't write event"),_o("Single item is: "+e.JZB.length+". Dropping."),xo(e.JZB)):t(e)}}function qs(e,t){return Io(t.beacon+".gif",e,C.extend({v:Ve,ct:v(),jzb:t.JZB},t.params,t.auth))}function Ws(e,t){return Io(t.beacon+".gif",e,C.extend({v:Ve,ct:v(),s:t.JZB.length},t.params))}function Vs(i){return function(e,t){e.params=C.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=ms.get();C.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function Js(e,t){var n=ao(),i=C.first(e),i=C.get(i,"account_id");n&&i&&(e.params=C.extend({},e.params,{acc:it(i)})),t(e)}function Ks(e,t){var n=C.first(e),n=C.get(n,"props.source");n&&(e.params=C.extend({},e.params,{source:n})),t(e)}function $s(e){return JSON.stringify(C.extend({events:e.JZB},e.auth))}function Zs(e){return e.status<200||300<=e.status?m.reject(new Error(`received status code ${e.status}: `+e.statusText)):m.resolve()}function Xs(e,t){return ko(qs(e,t)).then(Zs)}function Ys(e,t){return fetch(Ws(e,t),{method:"POST",keepalive:!0,body:$s(t),headers:{"Content-Type":"application/json"}}).then(Zs)}function Qs(e,t){var n=$s(t);return Ao(Ws(e,t),n)?m.resolve():m.reject()}function eu(n){return function(e,t){return t.JZB?t.eventLength<=es&&!f.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&ko.supported()?Xs(e,t):t.auth?kr({method:"GET",url:qs(e,t)}):To(qs(e,t)):n.allowPost&&t.eventLength<=ts?ko.supported()?Ys(e,t):Ao.supported()?Qs(e,t):kr({method:"POST",url:Ws(e,e=t),data:$s(e),headers:{"Content-Type":"application/json"}}):m.resolve():m.resolve()}}function tu(n){return function(e,t){if(t.JZB){if(t.eventLength<=es&&!f.get("sendEventsWithPostOnly",!1)){if(!t.auth&&ko.supported())return Xs(e,t);if(Ge.msie<=11)return kr({method:"GET",url:qs(e,t),sync:!0})}if(t.eventLength<=ts&&n.allowPost){if(ko.supported())return Ys(e,t);if(Ao.supported())return Qs(e,t);if(Ge.msie<=11)return kr({method:"POST",url:Ws(e,e=t),data:$s(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return m.resolve()}}function nu(e,t){e.length=0;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);t(i)}function iu(e){return _s(js,As,zs,(t=e.shorten,t=C.defaults(t||{},{fields:[],siloMaxLength:ts}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],_.debug("Max length exceeded for an event"),C.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(_.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),zs,Hs(),Vs(e),Js,Ks,nu);var t}class ru{constructor(e){this.queues=e}isEmpty(){return C.all(this.queues,e=>e.isEmpty())}stop(){C.each(this.queues,e=>e.stop())}push(){const t=C.toArray(arguments);C.each(this.queues,e=>e.push.apply(e,t))}drain(){const t=C.toArray(arguments);return m.all(C.map(this.queues,e=>e.drain.apply(e,t)))}}function ou(o,a,s){a=a||eu(o),s=s||tu(o);e=o;var e=C.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=C.map(e,(i,r)=>{var e=new vs(function(e,t,n){return n&&(e.params=C.extend({},e.params,{rt:n})),o.localStorageUnload&&t?(0===r&&ws.push(o.beacon,e),m.resolve()):(t?s:a)(i,e)});return e.onTimeout=function(){g.commit("monitoring/incrementCounter",o.beacon+"GifFailures")},e.retryPending=!0,e}),e=new ru(e);return ws.send(o.beacon,e),e}function au(e,t){var n=f.get("analytics.excludeEvents");0<=C.indexOf(n,e.type)||t(e)}class su{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=ou(e)}pause(e=1e4){var t=C.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())&&C.isEmpty(this.locks)){i.push(n.slice()),n.length=0;n=i.slice();i.length=0;const r=[];C.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 uu(e){var i,r,t=iu(e),n=_s((r=e.beacon,function(e,t){var n=f.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),au,Ts,ks(e.cache),(i={overhead:Ls,lower:f.get("sendEventsWithPostOnly")?ts:es,upper:ts,compressionRatio:[.5*Es,.75*Es,Es]},function(e,t){for(var n=Ms(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=Ms(e,i)}));return new su(C.extend({processSilos:t,packageSilos:n},e))}var du=Jn(function(e){var t,n,i;if((e=e||A.get())&&e!==du.lastUrl)return du.lastUrl=e,t=-1,Ka()||Wa()&&(i=Va(),qa(i,{type:"load",url:location.toString()},"*")),_.debug("sending load event for url "+e),t={load_time:t="undefined"!=typeof performance&&C.isFunction(performance.getEntriesByType)&&!C.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},Wa()&&(t.is_frame=!0),"*"!==(n=Et())&&(t.allowed_storage_keys=C.keys(n)),Is("load",t,e),ds(),y.urlChanged.trigger(),!0});function cu(e){return"hidden"===e.visibilityState}du.reset=function(){du.lastUrl=null};const lu="visibilitychange",pu="pagehide",hu="unload";function fu(){this.serializers=C.toArray(arguments)}function gu(e,t){return e.tag=Qn.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function mu(e){return me(e)?""+e:""}function vu(e,t){return e.id=mu(t.id),e}function yu(e,t){return e.cls=mu(k.getClass(t)),e}C.extend(fu.prototype,{add(e){this.serializers.push(e)},remove(e){e=C.indexOf(this.serializers,e);0<=e&&this.serializers.splice(e,1)},serialize(n,i){return n?(i=i||n,C.reduce(this.serializers,function(e,t){return t.call(this,e,n,i)},{},this)):{}}});var bu=256,wu=64,Su={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 Eu=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),Kr((i=i)&&0===i.indexOf("data:")?(_.debug("Embedded data provided in URI."),i.substring(0,i.indexOf(","))):i+"")):(i=t,e=(t=e).getAttribute?t.getAttribute(i):t[i],(!n||typeof e===n)&&e?C.isString(e)?Xe.call(e).substring(0,bu):e:null):null};function Iu(t){var e,n,i;return C.isRegExp(t)&&C.isFunction(t.test)?function(e){return t.test(e)}:C.isArray(t)?(e=C.map(C.filter(t,C.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 C.any(e,function(e){return e.test(t)})}):C.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)}):C.constant(!1)}function Cu(e,t,n,i){try{var r,o=C.indexBy(t),a=C.filter(C.filter(e,function(e){return n(e.nodeName)||o[e.nodeName]}),function(e){return!i(e.nodeName)});return a.length<=wu?C.pluck(a,"nodeName"):(r=C.groupBy(e,function(e){return o[e.nodeName]?"defaults":C.isString(e.value)&&e.value.length>bu?"large":"small"}),C.pluck([].concat(C.sortBy(r.defaults,"nodeName")).concat(C.sortBy(r.small,"nodeName")).concat(C.sortBy(r.large,"nodeName")).slice(0,wu),"nodeName"))}catch(s){return _.error("Error collecting DOM Node attributes: "+s),[]}}function _u(t,n){var e=Iu(f.get("htmlAttributes")),i=Iu(f.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=Eu(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},Cu(n.attributes,Su[r]&&Su[r].attr,e,i));return C.each(r,function(e){t.attrs[e.toLowerCase()]=Eu(n,e)}),t}function xu(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=C.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),e.childIndex=n.filter(function(e){return e.nodeType==uo}).indexOf(t).value()),e}function Tu(i,e){var r;return f.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(Tu),e=this.serialize(e.previousElementSibling),this.add(Tu),i.attrs=i.attrs||{},C.each(e,function(e,t){var n={cls:"class",txt:"pendo_text"}[t]||t;C.isEmpty(e)||(C.isObject(e)?C.each(e,function(e,t){e&&!C.isEmpty(e)&&(i.attrs[r+n+"_"+t]=e)}):i.attrs[r+n]=e)})),i}var ku=new fu(gu,vu,yu,_u,xu,Tu),Au=function(e){return"BODY"===e.nodeName&&e===$o()||null===e.parentNode&&!Qn.isElementShadowRoot(e)},Ru="pendo-ignore",Ou="pendo-analytics-ignore",Nu=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=ku.serialize(o,e)}while(r||!st(a.cls,Ru)&&!st(a.cls,Ou)||(r=!0),n.parentElem=a,n=a,(i=Qn.getParent(o))&&!Au(o));return r&&(t.parentElem.ignore=!0),t.parentElem},Mu=["","left","right","middle"],t=function(e){return e},e=function(e,t){return e[t]},Lu=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return Mu[t]}],["altKey",e,t,t],["ctrlKey",e,t,t],["metaKey",e,t,t],["shiftKey",e,t,t]],Pu={click:function(e,t){for(var n=[],i=0;i<Lu.length;i++){var r=Lu[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}},Fu=function(t){try{if(!k.data.get(t,"counted")){k.data.set(t,"counted",!0);var n=xr(t),i=t.type,e={},r=Pu[i];if(r&&(e=r(t,e)),k.data.get(t,"stopped")&&(e.stopped=!0),t.from&&C.isString(t.from)&&(e.from=t.from),n=(s=n).nodeType===so?s.parentNode:s.nodeType===po?null:s.correspondingUseElement||s){var o=Nu(n),a=(C.extend(o,e),du());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){C.isString(e)&&!C.isUndefined(t)?n[e]=t:_.error("Failed to add click event property")},target:e}}(e),y.onClickCaptured.trigger(e),e=e.getEventProperties();if(!C.isEmpty(e))return e}(n)),Is(i,{target:o},undefined,undefined,e,t),y.trigger("appUsage",o,t)}}else _.info("Invalid HTML target",{contexts:["event","dom","processing"]})}}catch(u){_.critical("pendo.io while handling event",{error:u})}var s};var Du=C.debounce(Fu,5e3,!0),Uu=function(e){const t=[];C.contains(e=e||["click","focus","submit","change"],"change")&&(e=C.without(e,"change"),t.push(()=>{Du.cancel()}),t.push(Cr(document,"change",Du,!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=Ge.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&&xr(r)!==xr(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&&!Au(e);)t.push(e),e=e.parentNode;return t}(xr(e));C.each(e,function(e){e=Gu(e,c.remove);a.push(e)})},remove:function(){r&&(t(r),r=null),c.unwrap()},unwrap:function(){0<a.length&&(C.each(a,function(e){e()}),a=[])},teardown:function Pv(){c.unwrap(),C.each(d,function(e){e()})}};e&&(d.push(Cr(document,u,c.down,!0)),d.push(Cr(document,s,c.up,!0)),d.push(Cr(document,"click",c.click,!0)));return c}(k.event.trigger,Ge.addEventListener,i,r).teardown),t.push((i=e,n=C.map(i,function(e){return l(document,e,Fu,!0)}),()=>{C.each(n,function(e){e()})})),t.push(function(e,t){if(t){const n=[];return n.push(Cr(document,lu,()=>{cu(document)&&e(!0,!1)})),n.push(Cr(window,pu,C.partial(e,!1,!0))),()=>C.each(n,function(e){e()})}return Cr(window,hu,C.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(Bu(window.Event,e)),i&&t.push(zu(window.Event,["touchend"])),()=>{C.each(t,function(e){e()})}};function Gu(n,i){var e=["remove","removeChild"];try{if(!n)return C.noop;C.each(e,function(e){var t=n[e];if(!t)return C.noop;n[e]=C.wrap(t,function(e){return i&&i(),e.apply(this,C.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return C.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){_.critical("ERROR in interceptRemove",{error:t})}return function(){C.each(e,function(e){if(!n[e])return C.noop;e=n[e]._pendoUnwrap;C.isFunction(e)&&e()})}}function Bu(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return C.noop;var i=C.indexBy(e);C.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=C.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){_.critical("ERROR in interceptStopPropagation",{error:r})}return function(){C.each(t,function(e){e=n.prototype[e]._pendoUnwrap;C.isFunction(e)&&e()})}}function zu(t,e){try{if(!t||!t.prototype)return C.noop;var i=C.indexBy(e),n=t.prototype.preventDefault;if(!n)return C.noop;t.prototype.preventDefault=C.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=Er,k.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){_.critical("ERROR in interceptPreventDefault",{error:r})}return function(){var e=t.prototype.preventDefault._pendoUnwrap;C.isFunction(e)&&e()}}function l(e,t,n,i){return e&&t&&n?(i&&!Ge.addEventListener&&(i=!1),k.event.add(e,{type:t,handler:n,capture:i})):C.noop}function ju(e,t,n,i){e&&t&&n&&(i&&!Ge.addEventListener&&(i=!1),k.event.remove(e,t,n,i))}var Hu=function(e){k.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},qu=function(e,t){return"complete"!==(t=t||window).document.readyState?Cr(t,"load",e):(e(),C.noop)},O=[],Wu=[],Vu={};let Ju={};function Ku(){return O}function $u(){return Zu(O)}function Zu(e){return C.filter(e,function(e){return!e.isFrameProxy})}function Xu(e){C.isArray(e)?(O=e,y.guideListChanged.trigger({guideIds:C.pluck(e,"id")})):_.info("bad guide array input to `setActiveGuides`")}var Yu=function(){let n=[];return{addGuide:e=>{var t;C.isEmpty(e)||(n=n.concat(e),C.each(n,e=>e.hide&&e.hide()),e=O,(t=C.difference(e,n)).length<e.length&&(Xu(t),g.dispatch("frames/changeGuideList",t)))}}}();function Qu(t,n){return C.find(nd(),function(e){return C.get(e,t)===n})||null}function N(e){return Qu("id",e)}function ed(e){return Qu("name",e)}function td(e,t){return e&&e.id?(e=N(e.id)).findStepById(t):null}function nd(){var e=C.values(Ju);return e.length?O.concat(C.flatten(e)):O}var id="_pendo-guide-tt_",rd="_pendo-guide-mobile-tt_",od=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},ad=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},sd=function(e){return!!C.get(e,"attributes.form")};function ud(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function dd(){return!!(ud()&&jo().width<=320)||Ge.isMobileUserAgent()}function cd(e=document){var t=cd.attachPoint;if(null==t){var n=f.get("guides.attachPoint");if(C.isString(n)){try{t=u(n)[0]}catch(i){_.info('Error finding guide attach point "'+n+'"')}t=t||document.createElement("div")}else t=!!C.isFunction(n)&&n();cd.attachPoint=t}return t||$o(e)}var ld=function(e){var t=Vu[e.guideId];if(t){t=t.element();if(Xo(t)&&t.id==="_pendo-badge_"+e.id)return t}},pd=function(e,t){var n;return e?(n=e.getGuide(),n="building-block"===C.get(n,"attributes.type")||!ad(n),!e.overrideElement&&n&&(e.overrideElement=ld(e)),e.targetElement=hd(e,t),e.overrideElement||e.targetElement):(_.info("Can't get element for null step"),null)},hd=function(e,t){e=e.elementPathRule||null,e=e?u(e,t):[$o(t)];return 0===e.length?null:C.first(e)};function fd(e){var t=C.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function gd(e,t,n){var i,r,o,e=Wo(e),t=Wo(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!==Ho(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),C.contains([ia.X,ia.BOTH],i)&&(r.x=0);C.contains([ia.Y,ia.BOTH],i)&&(r.y=0);return r}(a,jo(),n,na($o(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function md(e,t,n,i,r){var o,a=C.toArray(arguments).slice(1),s=e.apply(this,a);return n||aa(o=cd())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function vd(){return g.getters["frames/isLeader"]()}function yd(e){return g.dispatch("frames/updateFrameVisibility",{visibility:e})}const bd={validateGuide:1,validateLauncher:1,validateGlobalScript:1},wd={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1},Sd={ready:1},Ed=["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"];function Id(i){const e=C.reduce(Ed,function(e,r){if(wd[r]){const t=function(e){return _d[r].apply(_d[r],e.data)};i[r].on(t),e.push(()=>i[r].off(t))}if(Sd[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()=>C.each(e,e=>e())}Cd=fn.call({}),C.each(Ed,function(n){Cd[n]=function(e){var t;return C.isFunction(e)?Cd.on(n,e):(t=bd[n]?"triggerAsync":"trigger",Cd[t].apply(Cd,[n].concat(C.toArray(arguments))))}});var Cd,_d=Cd;var xd={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 Td(e){e=Ia(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}Ad=Md={failed:{},verified:{}},Od=xo,Nd=function(e){try{var t=[];return!xd.usesXhr()&&e.domJsonpUrl?t.push(Fd(e,"domJsonpUrl")):xd.usesXhr()&&e.domUrl&&t.push(Pd(e,"domUrl")),e.contentUrlJs?t.push(Fd(e,"contentUrlJs")):e.contentUrl&&t.push(Fd(e,"contentUrl")),m.all(t)}catch(n){throw y.contentVerificationFail.trigger(e,n),n}},Rd=function(e){return Nd(e).then(C.noop,function(e){return/verify/.test(e)&&Od(e),m.reject(e)})},kd=function(t){return Ad.failed[t.id]?m.reject():Ad.verified[t.id]?m.resolve():Rd(t).then(function(){Ad.verified[t.id]=!0},function(e){return Ad.failed[t.id]=!0,m.reject(e)})};var kd,Ad,Rd,Od,Nd,Md,Ld={verify:function(e){return f.get("guideValidation")?kd(e):m.resolve()},reset:function(){Md.failed={},Md.verified={}}};function Pd(e,t){var n,i=e[t];return C.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||Td(e[t]),kr.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 Fd(e,t){var n=e[t];return Ge.sri&&/[?&]sha(256|384|512)=/.test(n)?m.resolve():Pd(e,t)}Dd="allow",Ud="deny",Gd="pending",zd=function(){return 0<C.size(_d._handlers.validateGuide)},jd=function(e,n){var i=[];return C.each(e,function(e,t){n&&(t=n+"."+t),C.isObject(e)?C.each(jd(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var Dd,Ud,Gd,Bd,zd,jd,Hd={state:Bd={},Step:function(e){var n=this;function i(e){return C.filter([["content",Td(e.contentUrl)],["contentCss",Td(e.contentUrlCss)],["contentJs",Td(e.contentUrlJs)],["dom",Td(e.domUrl)],["domJsonp",Td(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=jd(t)).length&&(t=C.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return C.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<C.size(_d._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-"+rt(n.signature()),(t=Bd[t])!==Ud)&&(t!==Dd?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+rt(t),_d.validateLauncher(t).then(function(){Bd[e]=Dd},function(){Bd[e]=Ud}).then(function(){i=!1,n.render(),n.update(O)},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=jd(this.data);return t.length&&(t=C.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(!zd())return m.resolve();try{return C.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=P.findResourceCenterModules(t,O),t=[t].concat(n),m.all(C.map(t,qd))):qd(e)}catch(i){throw y.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!zd()||!!(e=Bd[e.guideId])&&e.status===Dd},invalid:function(e){return!!zd()&&!!(e=Bd[e.guideId])&&e.status===Ud},reset(){Bd={}}};function qd(i){var r=Bd[i.id];return r||(r={},Bd[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+rt(e),n=(r[t]||(r[t]={status:Gd},r.status=Gd),r[t].promise);return n||(n=_d.validateGuide(e,i).then(function(){r[t].status=Dd,r.status=Dd},function(e){return r[t].status=Ud,r.status=Ud,m.reject(e)}),r[t].promise=n),n})}function Wd(e,t){var n=C.toArray(arguments).slice(2);return C.reduce(e,function(e,t){return t.apply(e,n)},t)}function Vd(e){return C.isFunction(e.before)?e:Wd(Vd.behaviors,e)}function Jd(e,t){return Wd(Jd.behaviors,e,t)}function Kd(e){var t,n,i=f.getLocalConfig("contentHost");return i&&e?(t=new RegExp("(https:)?\\/\\/"+((t=je)===ye?"pendo-static":Ie(t))+"-\\d+\\.storage\\.googleapis\\.com","g"),n=new RegExp("(https:)?\\/\\/"+Ie(je)+"\\.storage\\.googleapis\\.com","g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+St(qe),"g"),i)):e}function $d(e){return f.getLocalConfig("contentHost")?JSON.parse(Kd(JSON.stringify(e))):e}Vd.behaviors=[],Jd.behaviors=[];var Zd=function(){var d={},c=C.compose(function(e){var t=function(){var e=St(f.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&_.debug("Failed to verify URL: "+e+" vs "+t),e},Kd);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},De=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=De:G.sha1=De;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=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 Ce(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 _e=Ce(d),s=Ce(y),xe=Ce(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 C(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 _=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=C(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=C(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=C(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=C(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=C(i,t),A(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=C(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=C(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=C(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=C(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 Ct(e,t,n){return t in n}var _t=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=Ct,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)}),_t(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=C(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:_e,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():_e({},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=C(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:_,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:_(),o=null,u=n.apply(a,s),o||(a=s=null)}),e=function(){var e=_(),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=_()-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=_(),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(C(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=C(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=C(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:_t,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 C.isFunction(e)||C.isRegExp(e)?e:C.isArray(e)?C.map(e,ve):C.isObject(e)?C.reduce(e,function(e,t,n){return e[n]=ve(t),e},{}):e}var f=function(){var i=C.all,r=C.each,o=C.filter,a=C.first,s=C.find,n=C.map,u=C.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=C.get(t.lookup,(t=e,C.get(t,"key")||C.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||C.get(e,"supportedSources",[d,c,l]),o(n(t,C.partial(v,e)),function(e){return me(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||C.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"}var Ce,_e=function(e,t){return e=e||10,(t=!isNaN(Re)&&(!t||Re<t))&&Ce<e};function xe(e){return parseInt(e,10)}var Te=function(e){return C.isString(e)?e.toLowerCase():e};function ke(){return(window.navigator||{}).userAgent}e=ke(),t=xe((/msie (\d+)/.exec(Te(e))||[])[1]),Ce=t=isNaN(t)?xe((/trident\/.*; rv:(\d+)/.exec(Te(e))||[])[1]):t;var Ae,Re=function(e,t){e=xe((/trident\/(\d+)/.exec(Te(e))||[])[1]);return e=isNaN(e)&&7==t?3:e}(ke(),Ce),Oe={},Ne=xe((/android (\d+)/.exec(Te(ke()))||[])[1]),Me=/Boxee/i.test(ke()),Le=window.document||{},Pe=Le.documentMode,Fe=/^(Moz|webkit|O|ms)(?=[A-Z])/,De=Le.body&&Le.body.style,W=!1,e=!1;if(De){for(var Ue in De)if(Ue=Fe.exec(Ue)){Ae=(Ae=Ue[0]).substr(0,1).toUpperCase()+Ae.substr(1);break}Ae=Ae||"WebkitOpacity"in De&&"webkit",W=!!("transition"in De||Ae+"Transition"in De),e=!!("animation"in De||Ae+"Animation"in De),!Ne||W&&e||(W=C.isString(Le.body.style.webkitTransition),e=C.isString(Le.body.style.webkitAnimation))}var t=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id;var Ge={supportsHistoryApi:C.memoize(function(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&C.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&C.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&C.get(n,"pushState.writable",!0)&&C.get(n,"replaceState.writable",!0);return!(!e||t||!n||!!(Ne<4)||Me||Ee())}),supportsHashChange:function(){return!(!("onhashchange"in window)||!(!Pe||7<Pe)||Ee())},hasEvent(e){var t;return("input"!=e||9!=Ce)&&(C.isUndefined(Oe[e])&&(t=Le.createElement("div"),Oe[e]="on"+e in t),Oe[e])},vendorPrefix:Ae,transitions:W,animations:e,android:Ne,msie:Ce,msieDocumentMode:Pe,safari:/apple/i.test(navigator.vendor),sri:"integrity"in document.createElement("script"),addEventListener:C.isFunction(window.addEventListener),MutationObserver:/native/.test(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:C.memoize(function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(ke())}),isChromeExtension:t},Be=function(){return!isNaN(Ce)&&11!=Ce&&"CSS1Compat"!==document.compatMode},ze=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,Ce<=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==Ce?e.arrow.top--:Ce<=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},je="",He="",qe="",We="",De="",Ve="2.291.4_",W="2.291.4",Je="xhr",Ke=function(){return Be()?Ve+"+quirksmode":Ve};var $e=/^\s+|\s+$/g;function Ze(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 Xe=(Xe=String.prototype.trim)||function(){return this.replace($e,"")},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=C=0;N<q;N++)A[C++]=m[N];for(N=0;N<W;N++)A[C++]=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+=C){for(C=1;N+C<x&&A[N+C]===A[N];++C);if(_=C,0===A[N])if(_<3)for(;0<_--;)O[R[T++]=0]++;else for(;0<_;)(k=_-3<(k=_<138?_:138)&&k<_?_-3:k)<=10?(R[T++]=17,R[T++]=k-3,O[17]++):(R[T++]=18,R[T++]=k-11,O[18]++),_-=k;else if(R[T++]=A[N],O[A[N]]++,--_<3)for(;0<_--;)R[T++]=A[N],O[A[N]]++;else for(;0<_;)_-3<(k=_<6?_:6)&&k<_&&(k=_-3),R[T++]=16,R[T++]=k-3,O[16]++,_-=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 Ye={Deflate:c(e.exports).Zlib.Deflate},Qe="base64url";function et(e,t){t=t||Qe;e=Ze("string"==typeof e?e:JSON.stringify(e)),e=new Ye.Deflate(e).compress();return t===Qe?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 tt={CRC32:c(t.exports).Zlib.CRC32},nt=function(e,n){var i;return 200<=(n=n||0)?e:C.isArray(e)?C.map(e,function(e){return nt(e,n+1)}):!C.isObject(e)||C.isDate(e)||C.isRegExp(e)||C.isElement(e)?C.isString(e)?C.escape(e):e:(i={},C.each(e,function(e,t){i[t]=nt(e,n+1)}),i)},it=function(e){e=Ze(e);return d.uint8ToBase64(e)},rt=function(e){if(void 0!==e)return e=Ze(e=C.isString(e)?e:JSON.stringify(e)),tt.CRC32.calc(e,0,e.length)};function ot(e){return e[Math.floor(Math.random()*e.length)]}function at(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=ot(i);return n}var st=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 ut(){return"undefined"!=typeof $A&&C.isFunction($A.get)&&C.isString($A.get("$Browser.formFactor"))}function dt(e,t=window){var[e,t,n=window]=[C,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 ct=C.isFunction(e.isFinite)?e.isFinite:e.Number&&C.isFunction(e.Number.isFinite)?e.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function lt(e){return"number"==typeof e&&ct(e)&&Math.floor(e)===e}function pt(e,t,n,i){(t=t||{}).maxRetries=lt(t.maxRetries)?t.maxRetries:10,t.delay=lt(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,pt(e,t,o,a)},t.delay):(a||function(){})()}var ht=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function ft(e){return C.isObject(e)&&C.isFunction(e.then)}var gt,mt=C.isFunction(window.decodeURIComponent)?window.decodeURIComponent:C.identity,vt=C.isFunction(window.encodeURIComponent)?window.encodeURIComponent:C.identity;class yt{constructor(){this.listeners={}}addEventListener(e,t){let n=this.listeners[e];n||(n=[],this.listeners[e]=n),C.findIndex(n,e=>t===e)<0&&n.push(t)}removeEventListener(e,t){var n,i=this.listeners[e];i&&0<=(n=C.findIndex(i,e=>t===e))&&(i.splice(n,1),i.length||delete this.listeners[e])}dispatchEvent(t){var e=this.listeners[t.type];e&&C.each(e,e=>{e(t)})}}class bt{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+=": "+C.map(this.attributes,(e,t)=>t+"="+e)),e}hashCode(){return this.toString()}}(t=gt=gt||{}).Debug="debug",t.Info="info",t.Warn="warn",t.Error="error",t.Critical="critical";class wt extends yt{write(e,t,n){this.dispatchEvent(new bt(t,e,n))}writeError(e,t,n){let i,r;C.isString(e)?(i=e,r={message:i}):(r=e,i=r.message),n&&n.error&&(r=n.error,delete n.error);e=new bt(t,i,n);e.error=r,this.dispatchEvent(e)}debug(e,t){this.write(e,gt.Debug,t)}info(e,t){this.write(e,gt.Info,t)}warn(e,t){this.writeError(e,gt.Warn,t)}error(e,t){this.writeError(e,gt.Error,t)}critical(e,t){this.writeError(e,gt.Critical,t)}}const _=new wt;function St(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Et=function(){var e=f.get("storage.allowKeys")||"*";return C.isArray(e)?C.indexBy(e):e};function It(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function Ct(n){C.forEach(C.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function _t(e){var t=C.noop,t={getItem:()=>null,setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:It(n,n.getItem,null),setItem:It(n,n.setItem),removeItem:It(n,n.removeItem),clearPendo:C.partial(Ct,n)}:t}catch(i){return t}}var xt=_t(function(){return window.localStorage}),Tt=_t(function(){return window.sessionStorage});function kt(e){try{return JSON.parse(e)}catch(t){return null}}var At,Rt={},Ot=!0,Nt=function(){return f.get("localStorageOnly")},Mt=function(){return!!f.get("disableCookies")};function Lt(e){Ot=e}var Pt=function(e){var t=Mt()||Nt()?Rt[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?mt(e[2]):null},Ft=function(e,t,n,i){var r,o;!Ot||f.get("preventCookieRefresh")&&Pt(e)===t||(o=qt(n),(r=new Date).setTime(r.getTime()+o),o=e+"="+vt(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict",At&&(o+=";domain="+At),Mt()||Nt()?Rt[e]=o:document.cookie=o)};function Dt(e){At?Ft(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var Bt=function(e,t){return`_pendo_${e}.`+(t||E.apiKey)},zt=function(e,t){return Pt(Bt(e,t))};const jt=864e5,Ht=100*jt,qt=(e=Ht)=>{var t=f.get("maxCookieTTLDays"),t=t<Infinity?t*jt:Infinity;return Math.min(e,t)};var Wt=function(e,t,n,i,r){n=n||Ht,Ft(Bt(e,r),t,n,i)};class Vt{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:C.identity}getKeyDeserializer(e){return this.keys[e]?this.keys[e].deserializer:C.identity}_add(e,t,n={}){n=C.extend({type:t,duration:null,isPlain:!1,isSecure:!1,cookieSuffix:undefined,serializer:C.identity,deserializer:C.identity},n),this.keys[e]||(this.keys[e]=n)}_has(e,t){return!!this.keys[e]&&this.keys[e].type===t}}var Jt,Kt,$t,Zt,m,h=function(){const u=new Vt;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=Et())||n[t])return u[r](e)||_.warn(`storage key ${e} is not registered`),i.apply(this,arguments);_.debug(`writing storage key ${e} is not allowed`)}}function d(){return!Mt()&&!At&&c("localStorage")}var c=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:Bt(e,n);if(d())return localStorage.removeItem(t);Dt(t)}const t=C.extend({},Tt),n=(t.setItem=e(t.setItem,"hasSession"),C.extend({},xt));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:Bt(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?Pt(e):zt(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:Bt(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+qt(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void l(c)}catch(s){}if(!i)return Wt(e,t,n,r,o);Ft(e,t,n,r)},"hasLocal"),clear:o,registry:u,getLocal:()=>n,getSession:()=>t}}(),Xt=(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=(Kt=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},$t=function(n,i){var r=Jt.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===Zt?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},Zt=1,(Jt={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,C.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(Zt,e)},a=function(e){t(2,e)},s=function(e,t){e=$t(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},u=function(e){var t=Kt();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=Kt();return{resolve:e(d),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},Jt);function Yt(e){var n,i=m.defer(),r=C.isArray(e)?[]:{},o=C.size(e);return o?(n=!1,C.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()&&Ge.isMinimumIEVersion(11)?m={all:function(e){return C.isArray(e)?Xt.all.apply(Xt,arguments):Yt(e)},reject:function(){return Xt.reject.apply(Xt,arguments)},resolve:function(){return Xt.resolve.apply(Xt,arguments)},defer:function(){var n={};return n.promise=new Xt(function(e,t){n.resolve=e,n.reject=t}),n}}:((m=t).all=Yt,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 Qt=h.getSession(),en="pendo_tabId",tn="pendo_parentTabId";nn=window,e=C.partial,rn=C.extend,on=C.omit,an={data:{},getItem(e){return an.data[e]},setItem(e,t){an.data[e]=t},removeItem(e){an.data[e]=null,delete an.data[e]}},sn=e(pn,en,hn),un=e(pn,"pendo_frameId",an);var nn,rn,on,an,sn,un,dn={addTracerIds(e){return on(rn(e,{parentTabId:cn(tn,hn),tabId:sn(),frameId:un()}),function(e){return e===undefined})},setParentTabId:function(e){ln(tn,e,hn)},newTabId:function(){var e=at(16);return ln(en,e,hn),e},getTabId:sn,getFrameId:un,tabIdChanged:function(t){var e;if(Ge.addEventListener)return nn.addEventListener("storage",e=function(e){e.key===en&&(an.removeItem(en),t())}),function(){nn.removeEventListener("storage",e)}}};function cn(e,t){return(C.isFunction(t)?t():t).getItem(e)}function ln(e,t,n){(C.isFunction(n)?n():n).setItem(e,t)}function pn(e,t){var n=cn(e,t);return n||ln(e,n=at(16),t),n}function hn(){return n=an,i=Qt,{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 fn(){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(C.isString(e)||C.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),C.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 C.isFunction(t)?(n=C.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=C.toArray(arguments).slice(1);return C.map(t,function(e){return e.apply(E,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return C.map(e,function(e){if(!t.cancel)return e.apply(E,[t])})},this.triggerAsync=function(){var e=C.map(this.trigger.apply(this,arguments),function(e){return!1===e?m.reject():e});return m.all(e)},this}fn.clear=function(t){t&&C.each(C.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};ki={DEBUG:t="debug",FRAMES:e="frames",LIFECYCLE:i="lifecycle",RUNTIME:Pi="runtime"},gn=[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",[Pi]),new n("beforeAdvance",[Pi]),new n("beforePrevious",[Pi]),new n("beforeSnooze",[Pi]),new n("beforeDismiss",[Pi]),new n("beforeUnmount",[Pi]),new n("unmounted",[Pi]),new n("beforeUpdate",[Pi]),new n("updated",[Pi]),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])],mn=fn.call({}),vn={debug(){return dn.addTracerIds(bn.apply(null,arguments))},lifecycle:bn,runtime:bn,frames:bn},yn=mn.trigger,mn.trigger=wn,C.each(C.values(ki),function(e){mn[e]={on:C.partial(mn.on,e),one:C.partial(mn.one,e),off:C.partial(mn.off,e)}}),C.each(gn,function(e){e=e.name,mn[e]={on:C.partial(mn.on,e),one:C.partial(mn.one,e),off:C.partial(mn.off,e),trigger:C.partial(wn,e)}});var gn,mn,vn,yn,y=mn;function n(e,t){this.name=e,this.groups=t||[]}function bn(e,t){e={type:e,ts:v()};return me(t)&&C.isObject(t)&&(e.data=t),e}function wn(t){var e=C.findWhere(gn,{name:t}),n=C.toArray(arguments).slice(1),i={};return C.each(e.groups,function(e){i.cancel||(i=vn[e](t,n),yn.apply(mn,[e].concat(i)))}),i.cancel||(i=bn(t,n),yn.apply(mn,[t].concat(i))),i}function Sn(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),C.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),C.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:C.partial(t,i),subscribeAction:C.partial(t,r),registerModule:function h(n,e){C.isString(n)&&(n=[n]);var t=d(s.state,e,n);C.extend(s.getters,p(e,t,s,n));C.extend(o,c(e,t,n));C.extend(a,l(e,t,s,n));C.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return C.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):C.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 C.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),C.extend(i,ve(t.state||{}))}function c(e,n,i){var r={};return C.each(e.mutations,function(e,t){r[u(i,t)]=C.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 C.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return C.each(e.actions,function(e,t){n[u(r,t)]=C.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return C.each(e.getters,function(e,t){a[t]=o[u(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var g=Sn(),En=(g.subscribe(function(e,t){}),"_PENDO_T_"),In=11;const Cn="visitorId",_n="oldVisitorId",xn="accountId";var Tn=function(e=""){return e+at(In)};var kn=function(e){return me(e)&&""!==e&&e!==Ln&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===Xe.call(e).length)},An=function(e){return!(!e||"number"==typeof e)&&e.substring(0,En.length)===En},Rn=function(){return!f.get("disablePersistence")},On=function(e){e=e||[Cn,xn,_n];const t=f.get("identityStorageSuffix")||E.apiKey;C.each(e,function(e){Dt(Bt(e,t)),h.clear(e,!1,t)})},Nn="VISITOR-UNIQUE-ID",Mn=function(e){return Nn===e},Ln="::",Pn=function(e){return new RegExp(Ln).test(e)};function Fn(e){return e.old_visitor_id!==e.visitor_id}var Dn,Un=function(e,t){var n,i={old_visitor_id:b(),old_account_id:jn()};kn(e)?(kn(n=e)?Bn(""+n):_.info("Invalid visitor id "+n),n=t,C.isUndefined(n)?_.info("No account id provided"):kn(n)?(E.accountId=""+n,Rn()&&Hn(xn,E.accountId)):(delete E.accountId,delete(t=f.getLocalConfig()).account,f.setLocalConfig(t),g.commit("metadata/clearAccount"),Rn()&&h.clear(xn),_.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=b({generate:!0}),i.account_id=jn(),!Fn(t=i)&&t.old_account_id===t.account_id||(Fn(i)&&(n=i.old_visitor_id)&&(Dn=n,Hn(_n,Dn)),y.identify.trigger(i))):_.info("Invalid visitor id "+e)};function Gn(){return Tn(En)}function Bn(e){E.visitorId!==e&&(Rn()&&Hn(Cn,e),E.visitorId=e)}function b(e={}){var t=function(){if(kn(E.visitorId))return E.visitorId;var e=f.get("forceAnonymous");if(Rn()){var t=qn(Cn);if(kn(t)&&(!e||An(t)))return t}return undefined}();return Bn(t=!t&&e.generate?Gn():t),t}function zn(){return b()||Gn()}var jn=function(){var e=f.get("forceAnonymous");return kn(E.accountId)||!Rn()||e||(e=qn(xn),E.accountId=e),E.accountId};function Hn(e,t){var n=f.get("identityStorageLifetime")||Ht,i=f.get("identityStorageSuffix")||E.apiKey;h.write(e,t,n,!1,!0,i)}function qn(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 Wn(){var e={old_visitor_id:b({generate:!1}),old_account_id:jn(),wasCleared:!0};On(),delete E.visitorId,delete E.accountId,b({generate:!0}),C.extend(e,{visitor_id:b(),account_id:jn()}),y.identify.trigger(e)}function Vn(e){e=e.data[0];return C.get(e,"wasCleared")}var Jn=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||_.critical(e)}}};Pi=function(n){return function Kn(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 Kn="function"==typeof(e=window.URL)&&/native/.test(e)?e:Pi(document);function $n(e){if((t=e)&&C.isFunction(t.composedPath))try{return e.composedPath()}catch(n){return e.path}var t;return null}function Zn(e){return e.shadowRoot}function Xn(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function Yn(e,t){return Xn(e,t)?e.host:e.parentNode}var Qn={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:$n,getShadowRoot:Zn,isElementShadowRoot:Xn,getParent:Yn,isShadowSelector:ei,wrapSizzle(i,d){i.intercept(function(a,t,n,i,r){var e,o;if(ei(t))return C.isFunction(document.documentElement.attachShadow)?(o=a,e=(e=t).replace(Qn.PSEUDO_REGEX,Qn.PSEUDO_SAFE),e=C.map(o.tokenize(e),ti),C.reduce(e,function(e,t){return e.concat(s(t,n,i,r))},[])):a(t.replace(Qn.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=Yn(i,n)}}(n,e)||u.push(...a(t,e,i,r))}),u}function s(e,t,n,i){var r,o;return ei(e)?(o=s((r={baseCss:(o=(o=e).split(Qn.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(Qn.PSEUDO_ELEMENT)}).baseCss,t),C.reduce(o,function(e,t){return Qn.getShadowRoot(t)?e.concat(s(r.shadowCss,Qn.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!Qn.isElementShadowRoot(t)&&(ei(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function ei(e){return!!e&&-1<e.indexOf(Qn.PSEUDO_ELEMENT)}function ti(e){return C.reduce(e,function(e,t){return t.value===Qn.PSEUDO_SAFE?e+Qn.PSEUDO_ELEMENT:e+t.value},"")}var ni,w,S,ii,ri,oi,ai,si,ui,di,ci,li,I,pi,hi,fi,gi,mi,vi,t={exports:{}},i=t,yi=window,x="sizzle"+ +new Date,bi=yi.document,wi=0,Si=0,Ei=ir(),Ii=ir(),Ci=ir(),_i=ir(),xi=function(e,t){return e===t&&(ci=!0),0},Ti={}.hasOwnProperty,ki=[],Ai=ki.pop,Ri=ki.push,Oi=ki.push,Ni=ki.slice,Mi=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},Li="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])+",Pi="\\["+r+"*("+e+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+e+"))|)"+r+"*\\]",Fi=":("+e+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Pi+")*)|.*)\\)|)",Di=new RegExp(r+"+","g"),Ui=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),Gi=new RegExp("^"+r+"*,"+r+"*"),Bi=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),zi=new RegExp(r+"|>"),ji=new RegExp(Fi),Hi=new RegExp("^"+e+"$"),qi={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+Pi),PSEUDO:new RegExp("^"+Fi),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("^(?:"+Li+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},Wi=/HTML$/i,Vi=/^(?:input|select|textarea|button)$/i,Ji=/^h\d$/i,Ki=/^[^{]+\{\s*\[native \w/,$i=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Zi=/[+~]/,Xi=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),Yi=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))},Qi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,er=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},tr=function(){li()},nr=hr(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Oi.apply(ki=Ni.call(bi.childNodes),bi.childNodes),ki[bi.childNodes.length].nodeType}catch(Qw){Oi={apply:ki.length?function(e,t){Ri.apply(e,Ni.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&&(li(t),t=t||I,hi)){if(11!==l&&(s=$i.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))&&vi(t,d)&&d.id===r)return n.push(d),n}else{if(s[2])return Oi.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&w.getElementsByClassName&&t.getElementsByClassName)return Oi.apply(n,t.getElementsByClassName(r)),n}if(w.qsa&&!_i[e+" "]&&(!fi||!fi.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(d=e,c=t,1===l&&(zi.test(e)||Bi.test(e))){for((c=Zi.test(e)&&cr(t.parentNode)||t)===t&&w.scope||((a=t.getAttribute("id"))?a=a.replace(Qi,er):t.setAttribute("id",a=x)),o=(u=oi(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+pr(u[o]);d=u.join(",")}try{return Oi.apply(n,c.querySelectorAll(d)),n}catch(p){_i(e,!0)}finally{a===x&&t.removeAttribute("id")}}}return si(e.replace(Ui,"$1"),t,n,i)}function ir(){var n=[];function i(e,t){return n.push(e+" ")>S.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function rr(e){return e[x]=!0,e}function or(e){var t=I.createElement("fieldset");try{return!!e(t)}catch(Qw){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ar(e,t){for(var n=e.split("|"),i=n.length;i--;)S.attrHandle[n[i]]=t}function sr(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 ur(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&&nr(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function dr(a){return rr(function(o){return o=+o,rr(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 cr(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ni in w=T.support={},ri=T.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!Wi.test(t||e&&e.nodeName||"HTML")},li=T.setDocument=function(e){var e=e?e.ownerDocument||e:bi;return e!=I&&9===e.nodeType&&e.documentElement&&(pi=(I=e).documentElement,hi=!ri(I),bi!=I&&(e=I.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",tr,!1):e.attachEvent&&e.attachEvent("onunload",tr)),w.scope=or(function(e){return pi.appendChild(e).appendChild(I.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),w.attributes=or(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=or(function(e){return e.appendChild(I.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=!!I.getElementsByClassName,w.getById=or(function(e){return pi.appendChild(e).id=x,!I.getElementsByName||!I.getElementsByName(x).length}),w.getById?(S.filter.ID=function(e){var t=e.replace(Xi,Yi);return function(e){return e.getAttribute("id")===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&hi)return(e=t.getElementById(e))?[e]:[]}):(S.filter.ID=function(e){var t=e.replace(Xi,Yi);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&&hi){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&&hi?t.getElementsByClassName(e):w.qsa&&hi?t.querySelectorAll("."+e):void 0},gi=[],fi=[],(w.qsa=!!I.querySelectorAll)&&(or(function(e){var t;pi.appendChild(e).innerHTML=Z().createHTML("<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&fi.push("[*^$]="+r+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||fi.push("\\["+r+"*(?:value|"+Li+")"),e.querySelectorAll("[id~="+x+"-]").length||fi.push("~="),(t=I.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||fi.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||fi.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||fi.push(".#.+[+~]"),e.querySelectorAll("\\\f"),fi.push("[\\r\\n\\f]")}),or(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&&fi.push("name"+r+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&fi.push(":enabled",":disabled"),pi.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&fi.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),fi.push(",.*:")})),(w.matchesSelector=Ki.test(mi=pi.matches||pi.webkitMatchesSelector||pi.mozMatchesSelector||pi.oMatchesSelector||pi.msMatchesSelector))&&or(function(e){w.disconnectedMatch=mi.call(e,"*"),mi.call(e,"[s!='']:x"),gi.push("!=",Fi)}),fi=fi.length&&new RegExp(fi.join("|")),gi=gi.length&&new RegExp(gi.join("|")),e=!!pi.compareDocumentPosition,vi=e||pi.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},xi=e?function(e,t){var n;return e===t?(ci=!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==bi&&vi(bi,e)?-1:t==I||t.ownerDocument==bi&&vi(bi,t)?1:di?Mi(di,e)-Mi(di,t):0:4&n?-1:1)}:function(e,t){if(e===t)return ci=!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:di?Mi(di,e)-Mi(di,t):0;if(r===o)return sr(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?sr(a[i],s[i]):a[i]==bi?-1:s[i]==bi?1:0}),I},T.matches=function(e,t){return T(e,null,null,t)},T.matchesSelector=function(e,t){if(li(e),w.matchesSelector&&hi&&!_i[t+" "]&&(!gi||!gi.test(t))&&(!fi||!fi.test(t)))try{var n=mi.call(e,t);if(n||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(Qw){_i(t,!0)}return 0<T(t,I,null,[e]).length},T.contains=function(e,t){return(e.ownerDocument||e)!=I&&li(e),vi(e,t)},T.attr=function(e,t){(e.ownerDocument||e)!=I&&li(e);var n=S.attrHandle[t.toLowerCase()],n=n&&Ti.call(S.attrHandle,t.toLowerCase())?n(e,t,!hi):undefined;return n!==undefined?n:w.attributes||!hi?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},T.escape=function(e){return(e+"").replace(Qi,er)},T.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,n=[],i=0,r=0;if(ci=!w.detectDuplicates,di=!w.sortStable&&e.slice(0),e.sort(xi),ci){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return di=null,e},ii=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+=ii(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=ii(t);return n},(S=T.selectors={cacheLength:50,createPseudo:rr,match:qi,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(Xi,Yi),e[3]=(e[3]||e[4]||e[5]||"").replace(Xi,Yi),"~="===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 qi.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ji.test(n)&&(t=(t=oi(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(Xi,Yi).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Ei[e+" "];return t||(t=new RegExp("(^|"+r+")"+e+"("+r+"|$)"))&&Ei(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(Di," ")+" ").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]===wi&&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]=[wi,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[x]||(a[x]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===wi&&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]=[wi,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())?rr(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=Mi(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:rr(function(e){var i=[],r=[],s=ai(e.replace(Ui,"$1"));return s[x]?rr(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:rr(function(t){return function(e){return 0<T(t,e).length}}),contains:rr(function(t){return t=t.replace(Xi,Yi),function(e){return-1<(e.textContent||ii(e)).indexOf(t)}}),lang:rr(function(n){return Hi.test(n||"")||T.error("unsupported lang: "+n),n=n.replace(Xi,Yi).toLowerCase(),function(e){var t;do{if(t=hi?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=yi.location&&yi.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===pi},focus:function(e){return e===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ur(!1),disabled:ur(!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 Ji.test(e.nodeName)},input:function(e){return Vi.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:dr(function(){return[0]}),last:dr(function(e,t){return[t-1]}),eq:dr(function(e,t,n){return[n<0?n+t:n]}),even:dr(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:dr(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:dr(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:dr(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[ni]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ni);for(ni in{submit:!0,reset:!0})S.pseudos[ni]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ni);function lr(){}function pr(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function hr(a,e,t){var s=e.dir,u=e.next,d=u||s,c=t&&"parentNode"===d,l=Si++;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=[wi,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]===wi&&i[1]===l)return o[2]=i[2];if((r[d]=o)[2]=a(e,t,n))return!0}return!1}}function fr(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 gr(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 mr(h,f,g,m,v,e){return m&&!m[x]&&(m=mr(m)),v&&!v[x]&&(v=mr(v,e)),rr(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:gr(c,s,h,n,i),p=g?v||(e?h:d||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=gr(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?Mi(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=gr(p===t?p.splice(d,p.length):p),v?v(null,t,p,i):Oi.apply(t,p)})}lr.prototype=S.filters=S.pseudos,S.setFilters=new lr,oi=T.tokenize=function(e,t){var n,i,r,o,a,s,u,d=Ii[e+" "];if(d)return t?0:d.slice(0);for(a=e,s=[],u=S.preFilter;a;){for(o in n&&!(i=Gi.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Bi.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Ui," ")}),a=a.slice(n.length)),S.filter)S.filter.hasOwnProperty(o)&&(i=qi[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):Ii(e,s).slice(0)},ai=T.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=Ci[e+" "];if(!a){for(n=(t=t||oi(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=hr(function(e){return e===i},a,!0),d=hr(function(e){return-1<Mi(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==ui)||((i=t).nodeType?u:d)(e,t,n),i=null,e}];s<r;s++)if(t=S.relative[e[s].type])c=[hr(fr(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 mr(1<s&&fr(c),1<s&&pr(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Ui,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&pr(e))}c.push(t)}return fr(c)}(t[n]))[x]?r:o).push(a);(a=Ci(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=ui,h=e||b&&S.find.TAG("*",r),f=wi+=null==p?1:Math.random()||.1,g=h.length;for(r&&(ui=t==I||t||r);d!==g&&null!=(o=h[d]);d++){if(b&&o){for(a=0,t||o.ownerDocument==I||(li(o),n=!hi);s=m[a++];)if(s(o,t||I,n)){i.push(o);break}r&&(wi=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]=Ai.call(i));l=gr(l)}Oi.apply(i,l),r&&!e&&0<l.length&&1<u+v.length&&T.uniqueSort(i)}return r&&(wi=f,ui=p),c},y?rr(i):i))).selector=e}return a},si=T.select=function(e,t,n,i){var r,o,a,s,u,d="function"==typeof e&&e,c=!i&&oi(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&&hi&&S.relative[o[1].type]){if(!(t=(S.find.ID(a.matches[0].replace(Xi,Yi),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=qi.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(Xi,Yi),Zi.test(o[0].type)&&cr(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&pr(o))break;return Oi.apply(n,i),n}}return(d||ai(e,c))(i,t,!hi,n,!t||Zi.test(e)&&cr(t.parentNode)||t),n},w.sortStable=x.split("").sort(xi).join("")===x,w.detectDuplicates=!!ci,li(),w.sortDetached=or(function(e){return 1&e.compareDocumentPosition(I.createElement("fieldset"))}),or(function(e){return e.innerHTML=Z().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||ar("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&or(function(e){return e.innerHTML=Z().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ar("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),or(function(e){return null==e.getAttribute("disabled")})||ar(Li,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var vr=yi.Sizzle;T.noConflict=function(){return yi.Sizzle===T&&(yi.Sizzle=vr),T},i.exports?i.exports=T:yi.Sizzle=T;yr=c(t.exports),(br=C.extend(function(){return br.Sizzle.apply(this,arguments)},yr)).reset=function(){br.Sizzle=yr,br.matchesSelector=yr.matchesSelector,br.matches=yr.matches},br.intercept=function(e,t="Sizzle"){br[t]=C.wrap(br[t],e)},br.reset();var yr,br,wr=br;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=C.toArray(r.childNodes)}else if(C.isString(e)){t instanceof k&&(t=0<t.length?t[0]:null);try{n=wr(e,t)}catch(o){n=[]}}else n=[e];else n=[];return C.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 Sr(){this.ownerKey="_pendo_"+at(8)}C.extend(Sr.prototype,{cache(e){var t;return C.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&&!C.isEmpty(n)||(e[this.ownerKey]=undefined)}});var Er=new Sr,Ir=1;function Cr(e){return C.isNumber(e.eventPhase)&&e.eventPhase===Ir}function l(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?dt("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{_r(e,t,n,i)}):C.noop}function _r(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?dt("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var xr=function(e){var t=Qn.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},Tr={add(t,e){var n=Er.get(t),i=(n.handle||(n.handle=function(e){Tr.dispatch(t,e)}),e.id=C.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=(Er.get(r,"captureEvents")||{})[o.type]||[],t=(Er.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=Er.get(o)).ignore&&(a.handled=a.handled||{},C.each(t.slice(),function(e){var t=!!e.capture===Cr(o),n=(n=o,C.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(xr(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!me(e.selector)||0<k(xr(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){_.error(i)}}}))},remove(e,t,n,i){var r=Er.get(e);if(r){if(C.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=C.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],_r(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],_r(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],_r(e,t,r.handle));C.isEmpty(r.captureEvents)&&C.isEmpty(r.bubbleEvents)&&(Er.remove(e,"captureEvents"),Er.remove(e,"bubbleEvents"),Er.remove(e,"handle"))}},trigger(e){var t=Er.get(e);if(!t.pendoStopped)if(e.bubbles){var n=xr(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=Qn.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),Cr(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)Tr.dispatch(o[i],e);(e=Tr.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(Tr.dispatch(n,e),(e=Tr.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)Tr.dispatch(o[i],e)}}else Tr.dispatch(xr(e),e)},clone(e){var t=C.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",Er.ownerKey]),e=Qn.getComposedPath(e);return e&&(t.composedPath=C.constant(e)),t},$:{on(e,n,i,r){return C.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){C.each(e,function(e){Tr.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},kr=C.extend(Rr,{get:function(e,t){return Rr({method:"GET",url:e,headers:t})},post:Or,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",Or(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(C.isArray(t))i=t;else{if(!C.isObject(t))return e||"";i=C.keys(t)}var i=C.map(i,function(e){return C.isArray(t)?vt(e):vt(e)+"="+vt(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=C.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported(){return void 0!==Ar()}});function Ar(){return window.XMLHttpRequest||ActiveXObject}function Rr(e){var t=m.defer(),n=new(Ar())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),C.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 Or(e,t,n){return Rr({method:"POST",url:e,data:t,headers:n})}var Nr,Mr=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},Lr=function(){return f.get("annotateUrl")||Gr()||f.get("sanitizeUrl")||f.get(Jr)||f.get("xhrWhitelist")},Pr=function(){return Gr()?{href:Ur(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Fr=function(){return new Kn(window.location.href)},Dr=function(){var e,t,n,i;return Lr()?(e=Fr(),Gr()&&(e.href=Ur(e.href)),Mr()?(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:///","")):$r(e.href)):g.getters["location/href"]()},Ur=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Gr=function(){return!0===f.get("ignoreHashRouting")},Br=500;function zr(){return C.isUndefined(Nr)&&function e(){Vr(),Nr=Ut(e,Br)}(),()=>{clearTimeout(Nr),Nr=undefined}}var jr=function(e){var t;try{t=Dr()}catch(n){}return t},Hr=[],qr=!1,Wr=null;function Vr(){var t=Pr().href;Wr!=t&&(Wr=t,C.map(Hr,function(e){e(t)}))}var Jr="queryStringWhitelist";function Kr(e){var t=f.get("sanitizeUrl");return C.isFunction(t)?t(e):e}function $r(e){e=e||Pr().href;var t=f.get("annotateUrl");if(t)if(C.isFunction(t))try{var n,i,r,o=t();return o&&(C.isObject(o)||C.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&C.isArray(n)||i&&(C.isArray(i)||C.isObject(i)))&&(n&&(e=Xr(e,null,n,!0)),o=i||{}),kr.urlFor(e,o,r)):e}catch(a){_.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else _.error("customer-provided `annotateUrl` must be of type: function");return e}function Zr(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function Xr(e,t,n,i){e=e||jr(),t=t||Zr(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=C.isArray(n)?Qr(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var Yr,Qr=function(e,t,n){return n&&C.contains(t,"*")?"":(e=eo(e),e=n?C.omit(e,t):C.pick(e,t),to(e))},eo=function(e){e=e.split("&");return C.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&mt(t[1])),e},{})},to=function(e){return C.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},A={watch:function(e){const n=[];_.info("Initializing Pendo URL Watcher");var i,t=f.get("location.pushState")&&Ge.supportsHistoryApi();return qr||(t&&(i=window.history,C.each(["pushState","replaceState"],function(e){var t=i[e];i[e]=C.wrap(i[e],function(e){var t=e.apply(i,C.toArray(arguments).slice(1));return Ut(Vr,0),t}),i[e]._pendoUnwrapped=t,n.push(()=>{i[e]=t})}),n.push(l(window,"popstate",Vr))),Ge.supportsHashChange()&&n.push(l(window,"hashchange",Vr)),!1!==t&&Ge.supportsHashChange()||n.push(zr()),qr=!0),Hr.push(e),()=>{C.each(n,function(e){e()}),Hr.length=0,qr=!1}},get:jr,externalizeURL:function(e,t,n){n=n||f.get(Jr);return Kr(Xr(e,t,n=C.isFunction(n)?n():n,!1))},startPoller:zr,getWindowLocation:Pr,clear:function(){Hr=[]},isElectron:Mr,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 no(){var e=f.getLocalConfig("dataHost");return e||((e=f.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:He)}function io(){Yr=no()}function ro(){var e=f.get("contentHost")||f.get("assetHost")||qe;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function oo(e){var t=ro(),n=0<=(n=t).indexOf("localhost")||0<=n.indexOf("local.pendo.io")?e.replace(".min.js",".js"):e;return t+"/"+(We?We+"/":"")+n}function ao(){var e=f.get("allowPartnerAnalyticsForwarding",!1)&&f.get("adoptAnalyticsForwarding",!1);return f.get("trainingPartner",!1)||e}var so=3,uo=1,co=9,lo=11,po=4;function R(e){var t;if((t=e)&&t.nodeType===uo)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function ho(e,t){var n;return!(!e||!C.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&C.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),C.any(n,function(e){return e&&"none"!==e}))}function fo(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function go(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function mo(e){return C.isNumber(e)?e:0}function vo(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!bo(e)?null:e}function yo(e){return ho(R(e),Ae)&&isNaN(Ce)}function bo(e){if(e)return(e=R(e))&&(C.contains(["relative","absolute","fixed"],e.position)||ho(e,Ae))}function wo(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=bo(t)?t:vo(t,n),i=t?So(t):{top:0,left:0},e=So(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+=mo(t.scrollTop),i.left+=mo(t.scrollLeft)),i.top-=mo(t.clientTop),i.left-=mo(t.clientLeft)):(i.top+=fo(n),i.left+=go(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function So(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 Eo=void 0===(e=f.get("pendoCore"))||e,Io=function(e,t,n){e=Yr+"/data/"+e+"/"+t,t=C.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function Co(){return C.compact([E.apiKey].concat(E.additionalApiKeys))}var _o=function(e){return e+="v"+Ve,To(Io("log.gif",E.apiKey,{msg:e,version:Ve}))};function xo(e){try{var t=Yr+"/data/errorlog?apiKey="+E.apiKey,n={error:e,version:"v"+Ve,visitorId:b()},i=ko.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):kr.postJSON(t,n);return i.then(function(){_.info("successfully wrote error")},function(e){_.info("error writing error:"+e)})}catch(r){return _.info("Failed to write error to server using POST endpoint: "+r),_o("Failed to write error to server using POST endpoint: "+r)}}function To(e){var t,n;return No()?(t=m.defer(),l(n=new Image,"load",t.resolve),l(n,"error",t.reject),n.src=e,t.promise):m.resolve()}function ko(e,t={}){t=C.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t)}function Ao(e,t){return navigator.sendBeacon(e,t)}ko.supported=function(){try{return C.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var Ro=!(Ao.supported=function(){return C.isFunction(navigator.sendBeacon)}),Oo=function(){var e=No();return Ro=!0,e&&y["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},No=function(){return!Ro&&Eo},Mo=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(Do(e))}catch(n){return!1}},Lo=function(e,t){try{var n;Mo(e,t)||(n=Xe.call(Do(e))+" "+t,Fo(e,n))}catch(i){}},Po=function(e,t){try{var n,i;Mo(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=Do(e).replace(n," "),Fo(e,i))}catch(r){}},Fo=function(e,t){C.isString(e.className)?e.className=t:e.setAttribute("class",t)},Do=function(e){try{var t=e.className;return(C.isString(t)||!me(t)?t:e.getAttribute("class"))||""}catch(n){return""}},Uo=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},Go={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},Bo=function(e,t){t=function(e){if(C.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);zo(e,t)},zo=function(a,e){C.each(e,function(e,t){if(""!==(t=Xe.call(t))){var n=Uo(t),i=(!C.isNumber(e)||isNaN(e)||Go[n]?C.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=Xe.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=Xe.call(e)}catch(o){_.info("failed to set style: "+t+" with value "+e)}}})},jo=function(e=window){return Be()?{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}},Ho=function(e){var t=jo(),n=fo(),i=go();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function qo(t){return C.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function Wo(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(Ce)||!Qo(n);n=n.parentNode}return}(e)?((n=So(e)).fixed=!0,qo(n)):qo(wo(e,Ko(t.document),t))}var Vo=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},Jo=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return _.info("error interrogating body elements: "+n),_o("error picking best body:"+n),0}},Ko=function(e=document){try{var t=Array.prototype.slice.call(e.getElementsByTagName("body"));return t&&1<t.length?(t.sort(Jo),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return _o("Error getting body element: "+n),e.body}};function $o(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 Zo(e,t=document){if(wr.contains(t,e))return!0;for(;e&&e.parentNode||Qn.isElementShadowRoot(e);)e=Qn.getParent(e);return e===t}var Xo=function(e){var t,n,i;if(null!=e)return t=(n=e.ownerDocument||document).defaultView||window,i=Ko(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=Wo(e,t)).right=i.left+i.width,i.bottom=i.top+i.height,i)},Yo=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function Qo(e){for(var t=e&&e.parentNode;t;){if(ho(R(t),Ae))return 1;t=t.parentNode}}var ea=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(Zo(e))for(i=e;i;)if(Qn.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))&&!C.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&Qo(i))i=vo(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function ta(e,t){e=R(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?na.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?na.BOTH:t.test(e.overflowY)?na.Y:t.test(e.overflowX)?na.X:t.test(e.overflow)?na.BOTH:na.NONE}var na={X:"x",Y:"y",BOTH:"both",NONE:"none"};function ia(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&Zo(e)}function ra(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 oa(e){if(e){if(C.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function aa(e,t,n){const i=[];var r=oa(document.documentElement);let o=oa(ea(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=oa(ea(o)),a++;return()=>{C.each(C.compact(i),function(e){e()}),i.length=0}}const sa=['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 ua(e,t,n){var i=Xo(t),t=ta(t,n);if(t!==na.BOTH||Yo(e,i)){if(t===na.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===na.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function da(e){if(e){if(ia(e))return 1;var t=Xo(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 ca(e,t){if(!da(e))return!1;if(!ia(e)){for(var n=Xo(e),i=ea(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!ua(n,i,t))return!1;i=ea(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=go(),e+=fo()),o<=0||e<=0)return!1}}return!0}function la(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,u=Xo(e),d=ea(e,s);if(!da(e))return!1;for(;d;){if(t=Xo(d),(o=ta(d,a))!==na.NONE&&(i=n=0,o!==na.Y&&o!==na.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!==na.X&&o!==na.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))),!ua(u,d,s))return!1;d=ea(d,s)}return!0}function pa(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=Ko(),u=ea(e,a);u&&u!==s;)t=Xo(e),n=Xo(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),C.isFunction(u.scrollBy)?u.scrollBy(r,i):(u.scrollTop+=i,u.scrollLeft+=r),u=ea(u,a)}Pi={$:{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(){Bo(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass(e){return e=e.split(/\s+/),this.each(function(t){C.each(e,function(e){Lo(t,e)})})},removeClass(e){return e=e.split(/\s+/),this.each(function(t){C.each(e,function(e){Po(t,e)})})},hasClass(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){C.each(e,function(e){n=n&&Mo(t,e)})}),n)},toggleClass(e){return e=e.split(/\s+/),this.each(function(t){C.each(e,function(e){(Mo(t,e)?Po:Lo)(t,e)})})},css(e){return this.each(function(){Bo(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),Zo(this)&&C.each(wr("script",this),ra)}),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),Zo(this[0]))&&C.each(wr("script",this[0]),ra)},remove(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr(e,t){return C.isObject(e)?(this.each(function(){C.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&&!wr.matchesSelector(n,e);)if((n=Yn(n))===document||t&&wr.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(){C.isFunction(this.focus)&&this.focus()})}}};class ha{constructor(e=Ko(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},Ge.MutationObserver){const n=new(dt("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(){C.each(this.listeners,e=>{e.get()})}addObservers(...e){this.listeners=[].concat(this.listeners,e)}teardown(){this._teardown()}}ki=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var fa="function"==typeof(i=window.WeakRef)&&/native/.test(i)?i:ki();function ga(e,t){var n,i;return e.tagName&&-1<["textarea","input"].indexOf(e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:ba(n.substring(0,i))):ma(e,t)}function ma(e,t=128){var n,i="",r=e.nodeType;if(r===so||r===po)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===uo||r===co||r===lo)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=ma(e.childNodes[a],t-i.length))).length)return i+ba(o.substring(0,t-i.length));i+=o}}return i}function va(e){return 55296<=e&&e<=56319}function ya(e){return 56320<=e&&e<=57343}function ba(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(va(t)||ya(t)){if(1===e.length)return e.slice(0,-1);if(va(t))return e.slice(0,-1);if(ya(t))if(!va(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class wa{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let t=this.elRef&&this.elRef.deref();var e=Zo(t);if(!t||!e){if(t&&!e&&this.teardown(t),!(t=k(this.cssSelector)[0]))return undefined;C.each(this.events,e=>{t.addEventListener(e,e=>this.onEvent(e))}),this.elRef=new fa(t)}return t}getText(e=1024){return ga(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;C.each(this.listeners[e],e=>e(t))}teardown(t=this.get()){t&&C.each(this.events,e=>t.removeEventListener(e,this.onEvent))}}function Sa(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===no())return!0;if(t===ro())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===je.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-"+je+"-static\\.storage\\.googleapis\\.com$")])),f.get("adoptHost"));if(n&&t==="https://"+n)return!0;return!!C.contains(f.get("allowedOriginServers",[]),t)||C.any(e,function(e){return e.test(t)})}function Ea(e){var t;if(C.isString(e))return t=(t=Zr(e).substring(1))&&t.length?eo(t):{},e=C.last(C.first(e.split("?")).split("/")).split("."),{filename:C.first(e),extension:e.slice(1).join("."),query:t}}function Ia(e,t){var n;f.get("guideValidation")&&Ge.sri&&(n=Ea(t),t=C.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],C.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}C.extend(k,{data:Er,event:Tr,removeNode:Vo,getClass:Do,hasClass:Mo,addClass:function(e,t){var n;"string"==typeof e?(n=k(e),C.map(n,function(e){Lo(e,t)})):Lo(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=k(e),C.map(n,function(e){Po(e,t)})):Po(e,t)},getBody:Ko,getComputedStyle:R,getClientRect:Xo,intersectRect:Yo,getScrollParent:ea,isElementVisible:ca,Observer:ha,Element:wa,scrollIntoView:pa,getRootNode:oa}),C.extend(k.prototype,Tr.$,Pi.$);var Ca,_a=function(e){var t=0===f.get("allowedOriginServers",[]).length,n=ao();return!(!t&&!n&&(t=je,n=Y,!/prod/.test(t)||re(n)))||Sa(e)},xa=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(C.isString(e)&&(e={url:e}),!_a((d=e.url,new Kn(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,Ia(u,e.url),a=u}else{if(ut())return(i=document.createElement("script")).addEventListener("load",function(){t(),Vo(i)}),i.type=o,i.src=Z(E).createScriptURL(e.url),Ia(i,e.url),document.body.appendChild(i),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=Z(E).createScriptURL(e.url),Ia(i,e.url),a=i,t=C.wrap(t,function(e,t){k.removeNode(i),t?n&&e(t):e.apply(this,C.toArray(arguments).slice(1))})}return s.appendChild(a),Ta(a,e.url,t),a}catch(c){return{}}var d},Ta=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||_o("Failed to load "+t+" within 10 seconds")},1e4))},ka=function(e){var t=JSON.parse(e.data),n=e.origin;_.debug(E.app_name+": Message: "+JSON.stringify(t)+" from "+n),Ha(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},Aa=function(e){Oa(Pa)(Ra(e))},Ra=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};_.debug("Invalid Message: Missing 'type' in data format")}}catch(r){}};function Oa(t){return function(e){if(e&&Sa(e.origin))return t.apply(this,arguments)}}var Na={disconnect(e){},module:function(e){ja(e.moduleURL)},debug:function(e){Va(ka)}},Ma=function(e,t){Na[e]=t},La=function(e){delete Na[e]},Pa=function(e){var t;e&&(t=e.data)&&me(Na[t.type])&&Na[t.type](t,e)},Fa={},Da=function(e){if(Fa[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},Ua=function(e){return me(Fa[e])},Ga=function(e){if(Fa)for(var t in Fa)if(0<=t.indexOf(e))return t;return null},Ba=[],za=function(){var e;Ba.length<1||(e=Ba.shift(),Ua(e))||xa(e,function(){Da(e),za()})};var ja=function(e){!function(e){var t={"/js/lib/ckeditor/ckeditor.js":1};C.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 Kn(e);return Sa(n.origin)&&t[n.pathname]}catch(i){_.debug("Invalid module URL: "+e)}}(e)||(Ba.push(e),1<Ba.length)||za()},Ha=function(e,t,n){var i,r=C.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Ca||Wa(),n="*"),t.guid=r,e&&C.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";_.info("Failed to postMessage: "+t)}return r},qa=function(){return window!=window.top},Wa=function(){return new RegExp("^"+St(Yr).replace(/^https?:/,"https?:")).test(location.href)?window.parent:window.top},Va=function(e){var t;return me(window.addEventListener)&&C.isFunction(window.addEventListener)&&(t=Oa(e),window.addEventListener("message",t,!1)),function(){me(window.removeEventListener)&&C.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},Ja=C.memoize(function(){return f.get("restrictP1Access")}),Ka=[],$a=[],Za=[],Xa=12e4,Ya=16,Qa=1900,es=65536,ts=function(e){return!(!e||""===e)},ns=function(){return A.get()},is={flush:C.noop,flushBy:C.noop,flushEvents:ss,flushTrackEvents:ss,flushAgenticEvents:ss,flushSilos:ss,flushTrackEventSilos:ss,flushAgenticEventSilos:ss,flushBeacons:ss,flushNow:ss,flushLater:us,flushEvery:ds,flushStop:cs,beacons:[],silos:[],trackEventSilos:[],agenticEventSilos:[],lock:Oo,unlock:function(){if(!No())return ls(),function(){var e=!No();return Ro=!1,e&&y["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."}()}},rs=[];function os(e){rs.push(e)}function as(e){e=rs.indexOf(e);0<=e&&rs.splice(e,1)}function ss(e,t){try{C.each(rs,function(e){e.flush&&e.flush(t)})}catch(n){_.critical("unhandled error while flushing event cache",{error:n})}}function us(e){return t=C.partial(ss,!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 ds(e){var t;if(e=parseInt(e,10)||0,C.isObject(ds.intervals)||(ds.intervals={}),!ds.intervals[e])return t=window.setInterval(ss,e),ds.intervals[e]=function(){clearInterval(t),delete ds.intervals[e]}}function cs(){var e=C.values(ds.intervals).concat([ss]);C.map(e,function(e){C.isFunction(e)&&e()})}function ls(){C.each(rs,function(e){e.clear&&e.clear()}),cs()}function ps(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 hs(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(_.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(_.debug(t+"The signingKeyName is supplied but missing jwt."),!1):(e=e.jwt,!(!C.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(_.debug(t+"The jwt is invalid."),!1)):(_.debug(t+"Missing jwt and signingKeyName."),!1)}fs=null;var fs,gs={set:function(e){fs=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==fs?fs:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!f.get("enableSignedMetadata")&&(n=hs(e,t),f.get("requireSignedMetadata")&&!n?(_.debug("Pendo will not "+t+"."),!1):n?ps(e.jwt):void _.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class ms{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 Xt.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 Xt.all(n)}}const vs="unsentEvents";class ys{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(vs);try{this.events=JSON.parse(e.read(vs)||"{}"),e.clear(vs)}catch(t){this.events={}}}write(e){0<C.size(this.events)?e.write(vs,JSON.stringify(this.events),5184e5):e.clear(vs)}}var bs=new ys,ws="_PENDO_UNNAMED_",Ss=5;function Es(e,t,n,i,r,o){var a,s;a=f.get("dropAnonymous"),s=An(b()),!Eo||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:jn(),url:A.externalizeURL(s),props:a||{},eventProperties:n},s=dn.addTracerIds(s),"track"===o&&(s.track_event_name=t||ws),y.eventCaptured.trigger(s,r),ts((a=s).url)&&function(e){if(f.get("freeNPSData"))return C.contains(Is,e.type);return 1}(a)&&("track"===e?Ds.push(a):"agentic"===i?Us.push(a):Fs.push(function(e,t){try{if(!e.getters["monitoring/shouldFlush"]())return t;var n=e.getters["monitoring/payload"]();e.dispatch("monitoring/flush"),C.isEmpty(n)||(t.ops=n)}catch(i){}return t}(g,a))))}var Is=["load","meta","identify"];function Cs(){var r=C.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 _s=0;function xs(e,t){e.sequence=_s++,t(e)}function Ts(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 ks(e,t){return ao()?As("account_id")(e,t):t(e)}function As(s){return function(e,t){if(!e.length)return t(e);for(var n=C.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==C.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 Rs(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function Os(e,t,n){t=n[t-1]||C.last(n);return Math.ceil(e/t)}function Ns(e,t){for(var n,i=0,r=(C.isFunction(t.overhead)?t.overhead:C.constant(0))(),o=0;o<e.length;++o){if(Os(n=Rs(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(Os(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(Os(i+(n=Rs(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function Ms(){var e=gs.get();return C.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var Ls,Ps,Fs,Ds,Us,Gs;function Bs(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=E.squeezeAndCompress(e.slice()),e.JZB.length<=es)||1===e.length?t(e):(n=e.length/2,Bs(e.slice(0,n),t),void Bs(e.slice(n),t))}function zs(e,t){No()&&t(e)}function js(){return function(e,t){1===e.length&&e.JZB.length>es?(_.debug("Couldn't write event"),_o("Single item is: "+e.JZB.length+". Dropping."),xo(e.JZB)):t(e)}}function Hs(e,t){return Io(t.beacon+".gif",e,C.extend({v:Ve,ct:v(),jzb:t.JZB},t.params,t.auth))}function qs(e,t){return Io(t.beacon+".gif",e,C.extend({v:Ve,ct:v(),s:t.JZB.length},t.params))}function Ws(i){return function(e,t){e.params=C.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=gs.get();C.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function Vs(e,t){var n=ao(),i=C.first(e),i=C.get(i,"account_id");n&&i&&(e.params=C.extend({},e.params,{acc:it(i)})),t(e)}function Js(e,t){var n=C.first(e),n=C.get(n,"props.source");n&&(e.params=C.extend({},e.params,{source:n})),t(e)}function Ks(e){return JSON.stringify(C.extend({events:e.JZB},e.auth))}function $s(e){return e.status<200||300<=e.status?m.reject(new Error(`received status code ${e.status}: `+e.statusText)):m.resolve()}function Zs(e,t){return ko(Hs(e,t)).then($s)}function Xs(e,t){return fetch(qs(e,t),{method:"POST",keepalive:!0,body:Ks(t),headers:{"Content-Type":"application/json"}}).then($s)}function Ys(e,t){var n=Ks(t);return Ao(qs(e,t),n)?m.resolve():m.reject()}function Qs(n){return function(e,t){return t.JZB?t.eventLength<=Qa&&!f.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&ko.supported()?Zs(e,t):t.auth?kr({method:"GET",url:Hs(e,t)}):To(Hs(e,t)):n.allowPost&&t.eventLength<=es?ko.supported()?Xs(e,t):Ao.supported()?Ys(e,t):kr({method:"POST",url:qs(e,e=t),data:Ks(e),headers:{"Content-Type":"application/json"}}):m.resolve():m.resolve()}}function eu(n){return function(e,t){if(t.JZB){if(t.eventLength<=Qa&&!f.get("sendEventsWithPostOnly",!1)){if(!t.auth&&ko.supported())return Zs(e,t);if(Ge.msie<=11)return kr({method:"GET",url:Hs(e,t),sync:!0})}if(t.eventLength<=es&&n.allowPost){if(ko.supported())return Xs(e,t);if(Ao.supported())return Ys(e,t);if(Ge.msie<=11)return kr({method:"POST",url:qs(e,e=t),data:Ks(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return m.resolve()}}function tu(e,t){e.length=0;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);t(i)}function nu(e){return Cs(zs,ks,Bs,(t=e.shorten,t=C.defaults(t||{},{fields:[],siloMaxLength:es}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],_.debug("Max length exceeded for an event"),C.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(_.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),Bs,js(),Ws(e),Vs,Js,tu);var t}class iu{constructor(e){this.queues=e}isEmpty(){return C.all(this.queues,e=>e.isEmpty())}stop(){C.each(this.queues,e=>e.stop())}push(){const t=C.toArray(arguments);C.each(this.queues,e=>e.push.apply(e,t))}drain(){const t=C.toArray(arguments);return m.all(C.map(this.queues,e=>e.drain.apply(e,t)))}}function ru(o,a,s){a=a||Qs(o),s=s||eu(o);e=o;var e=C.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=C.map(e,(i,r)=>{var e=new ms(function(e,t,n){return n&&(e.params=C.extend({},e.params,{rt:n})),o.localStorageUnload&&t?(0===r&&bs.push(o.beacon,e),m.resolve()):(t?s:a)(i,e)});return e.onTimeout=function(){g.commit("monitoring/incrementCounter",o.beacon+"GifFailures")},e.retryPending=!0,e}),e=new iu(e);return bs.send(o.beacon,e),e}function ou(e,t){var n=f.get("analytics.excludeEvents");0<=C.indexOf(n,e.type)||t(e)}class au{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=ru(e)}pause(e=1e4){var t=C.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())&&C.isEmpty(this.locks)){i.push(n.slice()),n.length=0;n=i.slice();i.length=0;const r=[];C.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 su(e){var i,r,t=nu(e),n=Cs((r=e.beacon,function(e,t){var n=f.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),ou,xs,Ts(e.cache),(i={overhead:Ms,lower:f.get("sendEventsWithPostOnly")?es:Qa,upper:es,compressionRatio:[.5*Ss,.75*Ss,Ss]},function(e,t){for(var n=Ns(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=Ns(e,i)}));return new au(C.extend({processSilos:t,packageSilos:n},e))}var uu=Jn(function(e){var t,n,i;if((e=e||A.get())&&e!==uu.lastUrl)return uu.lastUrl=e,t=-1,Ja()||qa()&&(i=Wa(),Ha(i,{type:"load",url:location.toString()},"*")),_.debug("sending load event for url "+e),t={load_time:t="undefined"!=typeof performance&&C.isFunction(performance.getEntriesByType)&&!C.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},qa()&&(t.is_frame=!0),"*"!==(n=Et())&&(t.allowed_storage_keys=C.keys(n)),Es("load",t,e),us(),y.urlChanged.trigger(),!0});function du(e){return"hidden"===e.visibilityState}uu.reset=function(){uu.lastUrl=null};const cu="visibilitychange",lu="pagehide",pu="unload";function hu(){this.serializers=C.toArray(arguments)}function fu(e,t){return e.tag=Qn.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function gu(e){return me(e)?""+e:""}function mu(e,t){return e.id=gu(t.id),e}function vu(e,t){return e.cls=gu(k.getClass(t)),e}C.extend(hu.prototype,{add(e){this.serializers.push(e)},remove(e){e=C.indexOf(this.serializers,e);0<=e&&this.serializers.splice(e,1)},serialize(n,i){return n?(i=i||n,C.reduce(this.serializers,function(e,t){return t.call(this,e,n,i)},{},this)):{}}});var yu=256,bu=64,wu={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 Su=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),Kr((i=i)&&0===i.indexOf("data:")?(_.debug("Embedded data provided in URI."),i.substring(0,i.indexOf(","))):i+"")):(i=t,e=(t=e).getAttribute?t.getAttribute(i):t[i],(!n||typeof e===n)&&e?C.isString(e)?Xe.call(e).substring(0,yu):e:null):null};function Eu(t){var e,n,i;return C.isRegExp(t)&&C.isFunction(t.test)?function(e){return t.test(e)}:C.isArray(t)?(e=C.map(C.filter(t,C.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 C.any(e,function(e){return e.test(t)})}):C.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)}):C.constant(!1)}function Iu(e,t,n,i){try{var r,o=C.indexBy(t),a=C.filter(C.filter(e,function(e){return n(e.nodeName)||o[e.nodeName]}),function(e){return!i(e.nodeName)});return a.length<=bu?C.pluck(a,"nodeName"):(r=C.groupBy(e,function(e){return o[e.nodeName]?"defaults":C.isString(e.value)&&e.value.length>yu?"large":"small"}),C.pluck([].concat(C.sortBy(r.defaults,"nodeName")).concat(C.sortBy(r.small,"nodeName")).concat(C.sortBy(r.large,"nodeName")).slice(0,bu),"nodeName"))}catch(s){return _.error("Error collecting DOM Node attributes: "+s),[]}}function Cu(t,n){var e=Eu(f.get("htmlAttributes")),i=Eu(f.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=Su(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},Iu(n.attributes,wu[r]&&wu[r].attr,e,i));return C.each(r,function(e){t.attrs[e.toLowerCase()]=Su(n,e)}),t}function _u(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=C.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),e.childIndex=n.filter(function(e){return e.nodeType==uo}).indexOf(t).value()),e}function xu(i,e){var r;return f.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(xu),e=this.serialize(e.previousElementSibling),this.add(xu),i.attrs=i.attrs||{},C.each(e,function(e,t){var n={cls:"class",txt:"pendo_text"}[t]||t;C.isEmpty(e)||(C.isObject(e)?C.each(e,function(e,t){e&&!C.isEmpty(e)&&(i.attrs[r+n+"_"+t]=e)}):i.attrs[r+n]=e)})),i}var Tu=new hu(fu,mu,vu,Cu,_u,xu),ku=function(e){return"BODY"===e.nodeName&&e===Ko()||null===e.parentNode&&!Qn.isElementShadowRoot(e)},Au="pendo-ignore",Ru="pendo-analytics-ignore",Ou=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=Tu.serialize(o,e)}while(r||!st(a.cls,Au)&&!st(a.cls,Ru)||(r=!0),n.parentElem=a,n=a,(i=Qn.getParent(o))&&!ku(o));return r&&(t.parentElem.ignore=!0),t.parentElem},Nu=["","left","right","middle"],t=function(e){return e},e=function(e,t){return e[t]},Mu=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return Nu[t]}],["altKey",e,t,t],["ctrlKey",e,t,t],["metaKey",e,t,t],["shiftKey",e,t,t]],Lu={click:function(e,t){for(var n=[],i=0;i<Mu.length;i++){var r=Mu[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}},Pu=function(t){try{if(!k.data.get(t,"counted")){k.data.set(t,"counted",!0);var n=xr(t),i=t.type,e={},r=Lu[i];if(r&&(e=r(t,e)),k.data.get(t,"stopped")&&(e.stopped=!0),t.from&&C.isString(t.from)&&(e.from=t.from),n=(s=n).nodeType===so?s.parentNode:s.nodeType===po?null:s.correspondingUseElement||s){var o=Ou(n),a=(C.extend(o,e),uu());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){C.isString(e)&&!C.isUndefined(t)?n[e]=t:_.error("Failed to add click event property")},target:e}}(e),y.onClickCaptured.trigger(e),e=e.getEventProperties();if(!C.isEmpty(e))return e}(n)),Es(i,{target:o},undefined,undefined,e,t),y.trigger("appUsage",o,t)}}else _.info("Invalid HTML target",{contexts:["event","dom","processing"]})}}catch(u){_.critical("pendo.io while handling event",{error:u})}var s};var Fu=C.debounce(Pu,5e3,!0),Du=function(e){const t=[];C.contains(e=e||["click","focus","submit","change"],"change")&&(e=C.without(e,"change"),t.push(()=>{Fu.cancel()}),t.push(l(document,"change",Fu,!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=Ge.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&&xr(r)!==xr(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&&!ku(e);)t.push(e),e=e.parentNode;return t}(xr(e));C.each(e,function(e){e=Uu(e,c.remove);a.push(e)})},remove:function(){r&&(t(r),r=null),c.unwrap()},unwrap:function(){0<a.length&&(C.each(a,function(e){e()}),a=[])},teardown:function Lv(){c.unwrap(),C.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,Ge.addEventListener,i,r).teardown),t.push((i=e,n=C.map(i,function(e){return p(document,e,Pu,!0)}),()=>{C.each(n,function(e){e()})})),t.push(function(e,t){if(t){const n=[];return n.push(l(document,cu,()=>{du(document)&&e(!0,!1)})),n.push(l(window,lu,C.partial(e,!1,!0))),()=>C.each(n,function(e){e()})}return l(window,pu,C.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(Gu(window.Event,e)),i&&t.push(Bu(window.Event,["touchend"])),()=>{C.each(t,function(e){e()})}};function Uu(n,i){var e=["remove","removeChild"];try{if(!n)return C.noop;C.each(e,function(e){var t=n[e];if(!t)return C.noop;n[e]=C.wrap(t,function(e){return i&&i(),e.apply(this,C.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return C.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){_.critical("ERROR in interceptRemove",{error:t})}return function(){C.each(e,function(e){if(!n[e])return C.noop;e=n[e]._pendoUnwrap;C.isFunction(e)&&e()})}}function Gu(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return C.noop;var i=C.indexBy(e);C.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=C.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){_.critical("ERROR in interceptStopPropagation",{error:r})}return function(){C.each(t,function(e){e=n.prototype[e]._pendoUnwrap;C.isFunction(e)&&e()})}}function Bu(t,e){try{if(!t||!t.prototype)return C.noop;var i=C.indexBy(e),n=t.prototype.preventDefault;if(!n)return C.noop;t.prototype.preventDefault=C.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=Ir,k.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){_.critical("ERROR in interceptPreventDefault",{error:r})}return function(){var e=t.prototype.preventDefault._pendoUnwrap;C.isFunction(e)&&e()}}function p(e,t,n,i){return e&&t&&n?(i&&!Ge.addEventListener&&(i=!1),k.event.add(e,{type:t,handler:n,capture:i})):C.noop}function zu(e,t,n,i){e&&t&&n&&(i&&!Ge.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},Hu=function(e,t){return"complete"!==(t=t||window).document.readyState?l(t,"load",e):(e(),C.noop)},O=[],qu=[],Wu={};let Vu={};function Ju(){return O}function Ku(){return $u(O)}function $u(e){return C.filter(e,function(e){return!e.isFrameProxy})}function Zu(e){C.isArray(e)?(O=e,y.guideListChanged.trigger({guideIds:C.pluck(e,"id")})):_.info("bad guide array input to `setActiveGuides`")}var Xu=function(){let n=[];return{addGuide:e=>{var t;C.isEmpty(e)||(n=n.concat(e),C.each(n,e=>e.hide&&e.hide()),e=O,(t=C.difference(e,n)).length<e.length&&(Zu(t),g.dispatch("frames/changeGuideList",t)))}}}();function Yu(t,n){return C.find(td(),function(e){return C.get(e,t)===n})||null}function N(e){return Yu("id",e)}function Qu(e){return Yu("name",e)}function ed(e,t){return e&&e.id?(e=N(e.id)).findStepById(t):null}function td(){var e=C.values(Vu);return e.length?O.concat(C.flatten(e)):O}var nd="_pendo-guide-tt_",id="_pendo-guide-mobile-tt_",rd=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},od=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},ad=function(e){return!!C.get(e,"attributes.form")};function sd(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function ud(){return!!(sd()&&jo().width<=320)||Ge.isMobileUserAgent()}function dd(e=document){var t=dd.attachPoint;if(null==t){var n=f.get("guides.attachPoint");if(C.isString(n)){try{t=wr(n)[0]}catch(i){_.info('Error finding guide attach point "'+n+'"')}t=t||document.createElement("div")}else t=!!C.isFunction(n)&&n();dd.attachPoint=t}return t||Ko(e)}var cd=function(e){var t=Wu[e.guideId];if(t){t=t.element();if(Zo(t)&&t.id==="_pendo-badge_"+e.id)return t}},ld=function(e,t){var n;return e?(n=e.getGuide(),n="building-block"===C.get(n,"attributes.type")||!od(n),!e.overrideElement&&n&&(e.overrideElement=cd(e)),e.targetElement=pd(e,t),e.overrideElement||e.targetElement):(_.info("Can't get element for null step"),null)},pd=function(e,t){e=e.elementPathRule||null,e=e?wr(e,t):[Ko(t)];return 0===e.length?null:C.first(e)};function hd(e){var t=C.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function fd(e,t,n){var i,r,o,e=Wo(e),t=Wo(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!==Ho(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),C.contains([na.X,na.BOTH],i)&&(r.x=0);C.contains([na.Y,na.BOTH],i)&&(r.y=0);return r}(a,jo(),n,ta(Ko(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function gd(e,t,n,i,r){var o,a=C.toArray(arguments).slice(1),s=e.apply(this,a);return n||oa(o=dd())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function md(){return g.getters["frames/isLeader"]()}function vd(e){return g.dispatch("frames/updateFrameVisibility",{visibility:e})}const yd={validateGuide:1,validateLauncher:1,validateGlobalScript:1},bd={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1},wd={ready:1},Sd=["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"];function Ed(i){const e=C.reduce(Sd,function(e,r){if(bd[r]){const t=function(e){return Cd[r].apply(Cd[r],e.data)};i[r].on(t),e.push(()=>i[r].off(t))}if(wd[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()=>C.each(e,e=>e())}Id=fn.call({}),C.each(Sd,function(n){Id[n]=function(e){var t;return C.isFunction(e)?Id.on(n,e):(t=yd[n]?"triggerAsync":"trigger",Id[t].apply(Id,[n].concat(C.toArray(arguments))))}});var Id,Cd=Id;var _d={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 xd(e){e=Ea(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}kd=Nd={failed:{},verified:{}},Rd=xo,Od=function(e){try{var t=[];return!_d.usesXhr()&&e.domJsonpUrl?t.push(Pd(e,"domJsonpUrl")):_d.usesXhr()&&e.domUrl&&t.push(Ld(e,"domUrl")),e.contentUrlJs?t.push(Pd(e,"contentUrlJs")):e.contentUrl&&t.push(Pd(e,"contentUrl")),m.all(t)}catch(n){throw y.contentVerificationFail.trigger(e,n),n}},Ad=function(e){return Od(e).then(C.noop,function(e){return/verify/.test(e)&&Rd(e),m.reject(e)})},Td=function(t){return kd.failed[t.id]?m.reject():kd.verified[t.id]?m.resolve():Ad(t).then(function(){kd.verified[t.id]=!0},function(e){return kd.failed[t.id]=!0,m.reject(e)})};var Td,kd,Ad,Rd,Od,Nd,Md={verify:function(e){return f.get("guideValidation")?Td(e):m.resolve()},reset:function(){Nd.failed={},Nd.verified={}}};function Ld(e,t){var n,i=e[t];return C.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||xd(e[t]),kr.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 Pd(e,t){var n=e[t];return Ge.sri&&/[?&]sha(256|384|512)=/.test(n)?m.resolve():Ld(e,t)}Fd="allow",Dd="deny",Ud="pending",Bd=function(){return 0<C.size(Cd._handlers.validateGuide)},zd=function(e,n){var i=[];return C.each(e,function(e,t){n&&(t=n+"."+t),C.isObject(e)?C.each(zd(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var Fd,Dd,Ud,Gd,Bd,zd,jd={state:Gd={},Step:function(e){var n=this;function i(e){return C.filter([["content",xd(e.contentUrl)],["contentCss",xd(e.contentUrlCss)],["contentJs",xd(e.contentUrlJs)],["dom",xd(e.domUrl)],["domJsonp",xd(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=zd(t)).length&&(t=C.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return C.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<C.size(Cd._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-"+rt(n.signature()),(t=Gd[t])!==Dd)&&(t!==Fd?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+rt(t),Cd.validateLauncher(t).then(function(){Gd[e]=Fd},function(){Gd[e]=Dd}).then(function(){i=!1,n.render(),n.update(O)},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=zd(this.data);return t.length&&(t=C.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(!Bd())return m.resolve();try{return C.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=P.findResourceCenterModules(t,O),t=[t].concat(n),m.all(C.map(t,Hd))):Hd(e)}catch(i){throw y.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!Bd()||!!(e=Gd[e.guideId])&&e.status===Fd},invalid:function(e){return!!Bd()&&!!(e=Gd[e.guideId])&&e.status===Dd},reset(){Gd={}}};function Hd(i){var r=Gd[i.id];return r||(r={},Gd[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+rt(e),n=(r[t]||(r[t]={status:Ud},r.status=Ud),r[t].promise);return n||(n=Cd.validateGuide(e,i).then(function(){r[t].status=Fd,r.status=Fd},function(e){return r[t].status=Dd,r.status=Dd,m.reject(e)}),r[t].promise=n),n})}function qd(e,t){var n=C.toArray(arguments).slice(2);return C.reduce(e,function(e,t){return t.apply(e,n)},t)}function Wd(e){return C.isFunction(e.before)?e:qd(Wd.behaviors,e)}function Vd(e,t){return qd(Vd.behaviors,e,t)}function Jd(e){var t,n,i=f.getLocalConfig("contentHost");return i&&e?(t=new RegExp("(https:)?\\/\\/"+((t=je)===ye?"pendo-static":Ie(t))+"-\\d+\\.storage\\.googleapis\\.com","g"),n=new RegExp("(https:)?\\/\\/"+Ie(je)+"\\.storage\\.googleapis\\.com","g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+St(qe),"g"),i)):e}function Kd(e){return f.getLocalConfig("contentHost")?JSON.parse(Jd(JSON.stringify(e))):e}Wd.behaviors=[],Vd.behaviors=[];var $d=function(){var d={},c=C.compose(function(e){var t=function(){var e=St(f.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&_.debug("Failed to verify URL: "+e+" vs "+t),e},Jd);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,xd.usesXhr()&&t.domUrl?(r.deferred.domJson=m.defer(),kr.get(c(t.domUrl)).then(function(e){r.domJson=$d(e.data);var e=e.data;e=e,C.isObject(e)&&e.hasOwnProperty("type")&&e.hasOwnProperty("children")&&e.hasOwnProperty("props")?r.deferred.domJson.resolve():(_.critical(new Error("Response from the guide was not in proper JSON format")),r.deferred.domJson.reject())})["catch"](function(e){_.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=Ta(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=Ta(c(function(e){if(ut()){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}(Ze(n)));if(C.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(),Ta({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=Ta(function(e,t){if(!C.isString(e))return e;var n=C.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 C.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;C.isString(n)&&(o=n,a=e,s=t,n=C.reduce(u,(e,t)=>t(e,a,s),o),C.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?C.template(n):C.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=$d(n),e.deferred.domJson.resolve())}}}(),Xd=(Yd.state={},Yd.queue=[],Yd.pending=function(){return C.reduce(Yd.state,(e,t)=>e+(t.loaded?0:1),0)},Yd.reset=function(){Zd.reset(),Yd.state={},Yd.queue=[]},Yd.prefetch=function(e){var t;return Yd.hasContent(e)?C.get(Yd.state[Qd(e)],"promise"):(t=m.defer(),Yd.queue.push([t,e]),t.promise)},Yd.processPrefetch=function(e=10){return Yd.queue.length?(e=Yd.queue.splice(0,Math.max(e-Yd.pending(),0)),m.all(C.map(e,t=>Yd.fetchContent(t[1]).then(e=>{t[0].resolve(e)})["catch"](e=>{t[0].reject(e)})))):m.resolve()},Yd.fetchContent=function(t){var e=Qd(t);if(!(i=Yd.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=C.extend({id:r,language:n,guideId:t.guideId},C.pick(t,"contentUrl","contentUrlCss","contentUrlJs","domJsonpUrl","domUrl","domHash","contentHash","contentJsHash"));i.promise=Ld.verify(o).then(function(){return i.verified=!0,Zd.load(o)}).then(function(e){return i.loaded=!0,e}),Yd.state[e]=i}return i.promise.then(function(e){C.extend(t,e)})},Yd.hasContent=function(e){return me(e.content)||me(e.domJson)},Yd);function Yd(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(C.extend(i,{fetchContent:function(e=!1){return e?Yd.prefetch(i):Yd.fetchContent(i)}}),i.after("render",function(e){!function(e){var t=C.indexOf(n.steps,i);C.chain(n.steps).rest(t+1).first(e).each(function(e){C.isFunction(e.fetchContent)&&e.fetchContent()}).value()}(t)})),i}function Qd(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}var ec=function(){var t=y.runtime;const r=[];function o(e,n,i,r){return C.filter(e,function(e){if(C.isFunction(e[r])){if(C.isFunction(e.test))try{return e.test(n,i,E)}catch(t){return _.critical("Error in global script test code block",{error:t}),!1}return C.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&&C.isFunction(e.script)&&i.push(e.script),C.size(r)&&(e=o(r,e,t,n),C.each(e,function(e){i.push(e[n])})),i}function i(n,i,r){const o=r.guide;o&&C.all(e(r,o,"beforeMount"),function(e){try{return e.call(n,i),!i.cancel}catch(t){return _.critical("Exception thrown running beforeMount for: "+JSON.stringify({guideId:o.id,stepId:r.id}),{error:t}),!1}})}var a=fn.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<C.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,C.each(["read","write","clear"],function(t){this[t]=h[t],this[t+"ByGuide"]=function(){var e=C.first(arguments)+":"+C.get(n,"guide.id");return h[t].apply(this,[e].concat(C.rest(arguments)))}},this);var e=C.bind(function(e){this.step.id!==e.step.id?_.debug("aborting afterUnmounted b/c step ids don't match"):this.purge()},this);this.purge=C.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=C.once(t)),n=this.step,i=t,t=Jn(t=e=>{var t=e["step"];if(t.id===n.id)return i(e);_.debug("called guide runtime callback on wrong step")}),a.on(e,t),this.purge=C.compose(this.purge,C.partial(a.off,e,t))):_.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)},{initialize:function(){t.on(n);var e=f.get("guides.globalScripts");C.each(e,ec.addGlobalScript)},teardown:function(){t.off(n),C.each(r,ec.removeGlobalScript)},addGlobalScript:function(e){var t;e=function(t){const e=C.without(C.keys(t),"script","test","regex","beforeMount");if(e.length){const n=t.script;t.script=function(){if(C.each(e,function(e){u(e)&&this.on(e,t[e])},this),C.isFunction(n))return n.apply(this,arguments)}}return t}(e),t=e,!C.isFunction(t.script)&&!C.isFunction(t.beforeMount)||t.test&&!C.isFunction(t.test)||t.regex&&!C.isRegExp(t.regex)?_.critical("Error adding invalid GlobalScript via API"):r.push(e)},removeGlobalScript:function(e){0<=(e=C.indexOf(r,e))&&r.splice(e,1)},getContext:function(e){return new d(e)},runCustomScripts:function(i,r){C.each(e(i,r),function(e){try{var t=ec.getContext(i);e.call(t,i,r,E)}catch(n){_.critical("Exception thrown running code block for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:n})}})},handleEvent:n}}();function tc(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?C.find(e.children,tc):void 0}function nc(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=nc(e.children[n],t);if(i)return i}return!1}function ic(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=ic(e,t.children[n]);if(i)return i}}function rc(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 oc={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 C.reduce(e,function(e,t,n){var i=P.findResourceCenterHomeView(f),r=C.find(f,function(e){return e.id===t.id});if(E.designer)r=t,i=C.find(f,function(e){return C.get(e,"attributes.resourceCenter.isTopLevel")});else{if(!r)return e;if(!r.hasResourceCenterContent)return C.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),C.get(i,"attributes.notificationBubble")),c=C.get(i,"attributes.notifications"),d=(d&&c&&("AnnouncementsModule"===C.get(r,"attributes.resourceCenter.moduleId")&&(o=r.id),o="chat"===C.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=nc(c,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-row")}))&&(s=C.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)),nc(u=sc(u,t,u.props.id,n),function(e){e=C.get(e,"props.class");return e&&0<=e.indexOf("_pendo-resource-center-module-list-item-text-container")})),i=nc(u,function(e){e=C.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),l=nc(u,function(e){e=C.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 C.reduce(e,function(e,t,n){var i,r=uc(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=sc(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;C.filter(r,function(e){return uc(n,e)}).length?(e.children=C.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=C.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 C.reduce(e,function(e,t,n){var i,r,o,a=uc(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),nc(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=ac(t.subtitle,{currentStep:o,totalSteps:r}):t.stepProgress="Step "+o+" of "+r,i=sc(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=(C.forEach(r,function(e){e=uc(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 nc(e=sc(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=C.reduce(e,function(e,t){t=uc(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!C.every(e,function(e){e=e.steps[0];return!!Xd.hasContent(e)}))return[];var t=P.getResourceCenter(),h=C.get(t,"attributes.notificationBubble");h&&(delete h.dir,"rtl"===l.props["data-localization-direction"])&&(h.dir="rtl");return C.map(e,function(e,t){var n,i,r,o,a,s,u,d="whatsnew"===C.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=Vd(r=e),(u=n.steps[0]).render(),ec.runCustomScripts(u,n),i=(n=u.guideElement)[0].id,rc(f,"pendo-whats-new-style-"+i,"#"+i+" h1::after { display:none; }",n[0]),d&&((o=dc(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=Vd(t=e),s=t.steps[0],ec.runCustomScripts(s,u),u=JSON.parse(JSON.stringify(s.domJson)),d.children=[u],r&&(a=dc(r),u=nc(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=ic("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():C.find(n,function(e){return e.id===t.guideId}),o=C.get(r,"attributes.dates."+r.language,!1);o=o?{showsAfter:o}:(o=C.get(r,"currentFirstEligibleToBeSeenAt")||C.get(r,"showsAfter")||C.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=sc(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:dc,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return C.reduce(e,function(e,t,n){t=uc(i,t);return t&&e.push(t),e},[])}};function ac(e,n){return e.replace(/<%=\s*([A-Za-z_0-9$]+)\s*%>/gi,function(e,t){return C.isNull(n[t])||C.isUndefined(n[t])?e:n[t]})}function sc(e,t,n,i){if(e.content&&(e.content=ac(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?ac(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++)sc(e.children[r],t,n,i);return e}function uc(e,t){e=C.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 dc(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 cc={buildSvgNode:function(e,t){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return lc(t)}},createProgressCircleSvg:lc};function lc(e){var t,n,i,r,o,a,s;return _e(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 pc=function(e,t){return e<t},hc=C.negate(pc);function fc(){var e=$o();return yo(e)?Yo(e):((e=jo()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function gc(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 mc(e){var t;if(e&&e.length)return t=yo($o())?Yo:So,(e=C.reduce(e,function(n,e){var i;return la(e)?(i=t(e))?(C.each([["top",pc],["right",hc],["bottom",hc],["left",pc]],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 vc(e,t){var n=fc(),e=mc(e)||{top:0,left:0,right:n.width,bottom:n.height,width:0,height:0};return{viewport:n,box:e,overlays:gc(n,e,t)}}function yc(e){var t=[],n=C.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==$o()){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&&C.each(o,function(e){t.push(e)})}catch(a){_.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var bc=null,wc=function(e){var t=!C.isEqual(e,bc);return bc=e,t},Sc=null,Ec=function(e){var t=!C.isEqual(e,Sc);return Sc=e,t},Ic=null,Cc=function(e){var t=!C.isEqual(e,Ic);return Ic=e,t},_c=function(e){return Ec(e.viewport)||wc(e.box)||Cc(e.overlays)};function xc(e){try{var t=vc(yc(e),C.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));_c(t)&&C.each(e.backdrop.children,function(n){var e=n.getAttribute("pendo-region"),e=t.overlays[e];C.each(e,function(e,t){n.style[t]=e+"px"})})}catch(n){_.info("Failed to update BlockOut ui",{contexts:["error"]})}}function Tc(e){try{var t,n,i,r;if(!(0<k("._pendo-guide-backdrop_").length))return t=vc(yc(e),C.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),_c(t),n={"z-index":1e4,position:"fixed"},i=[],C.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,C.extend({},e,n));i.push(t)}),o=i,a=ic("pendo-backdrop",e.domJson),C.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_"),C.each(a.props,function(n,i){C.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){_.info("Failed to add BlockOut ui",{contexts:["error"]})}var o,a,s}var kc="top",Ac="bottom",Rc="left",Oc="right",Nc="center";function Mc(e,t,n){return n===Oc||n===Rc?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?Nc:n<e/2?Oc:Rc)}const Lc={DEFAULT_CARET_OFFSET:10,BOUNDARY_MARGIN_RIGHT:.98,BOUNDARY_MARGIN_LEFT:.02,Z_INDEX:{DEFAULT:"300000",CARET:11,BORDER_CARET:10}};var Pc={createBBTooltip:Dc,getBBTooltipDimensions:zc,determineBBHorizontalBias:Mc,determineTooltipPosition:jc,positionBBTooltipWithBias:Hc,calculateToolTipPositionForTopBottom:qc,calculateToolTipPositionForLeftRight:Jc,buildTooltipCaret:Kc,styleTopOrBottomCaret:Zc,styleLeftOrRightCaret:Xc,buildBorderCaret:Yc,determineBorderCaretColor:el,placeBBTooltip:function(e,t){var n,i,r,o,a,s,t=t||tl(e);t&&(r=t.ownerDocument||document,n=r.defaultView||window,r=e.element||pd(e,r),i=Wo(r,n),"none"!==R(e.elements[0]).display)&&(r=So(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:Lc.DEFAULT_CARET_OFFSET,borderColor:a.borderColor,borderWidth:parseInt(a.borderWidth,10)||0},a=this.getBBTooltipDimensions(i,t,o,s,r,jo(n)),o.height&&o.width&&(t=e.find(".pendo-tooltip-caret")[0],s=e.find(".pendo-tooltip-caret-border")[0],t&&$c(t,a,o,i),s)&&Qc(s,o,a.layoutDir,t),e.css({top:a.top,left:a.left,position:i.fixed?"fixed":"absolute"}))},attachBBAdvanceActions:Bc,attachScrollHandlers:Uc,isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!C.isObject(e.domJson)||!(e=tc(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForTooltip:function(e,t,n){Dc(t,e.element,e,n),e.hasBeenScrolledTo||(ha(e.element),gd(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)},patchGuideContainerWidthForResponsiveTooltips:function(e,t,n){t=t||tl(e);var i,r,o,a,s,u;t&&(i=e.element||pd(e,t.ownerDocument||document))&&(o=t.style.width)&&-1!==o.indexOf("vw")&&(o=Fc(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 Fc(e,t,n,i){var r,o,a=(t.ownerDocument||document).defaultView||window,s=Wo(t,a),t=So(t),a=jo(a),u=e.attributes.layoutDir||"auto";return(0!==s.height||0!==s.width)&&(e=e&&!e.elementPathRule,n=nc(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:Lc.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 Dc(e,t,n,i){var r,o,a,s,u;if(n.guideElement)return(t=Fc(n,t,e,i))?({elementPos:e,tooltipSizes:a,screenPos:u,caretDimensions:r}=t,(o=n.guideElement).addClass(dd()?rd:id),Bc(n),a=zc(e,{height:a.height,width:a.width},r,n.attributes.layoutDir,u,t.screenDimensions),n&&(n.dim=a),n&&C.isFunction(n.getGuide)&&(s=n.getGuide()),u=C.get(s,"attributes.resourceCenter"),e.fixed?(o.css({position:"fixed"}),i.style.position="absolute"):n&&u||(i.style.position="absolute"),r.height&&r.width&&Kc(o,a,r,e),t=Lc.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===Rc&&o.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),Uc(n,nl),o[0]):null}function Uc(e,t){e&&C.isFunction(e.attachEvent)&&(ud()&&e.element===k.getBody()||(t=C.throttle(C.bind(t,e,e),10),e.attachEvent(window,"scroll",t,!0),sa(C.bind(e.attachEvent,e),e.targetElement,t)))}function Gc(t,n){var e=k(n.elementPathRule)[0];n.attachEvent(e,t,function(e){k.data.set(e,"advanced",!0),Pg(t,n)})}function Bc(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?Gc("mouseover",e):e.attributes.advanceActions.elementClick&&Gc("click",e))}function zc(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=Mc(e,o,i),t.vbias=(a=e,u=o,(s=i)===kc||s===Ac?s:(s=a.top,(u=(a=u.height)/3)<s&&s<2*u?Nc:s<a/2?Ac:kc)),t.layoutDir=jc(t,o,r,i),Hc(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 jc(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===Nc)&&(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!==Nc&&(c=e.hbias),u&&d||(d||(c="right"),u)||(c="left")),(c=c&&"bottom"!==c||!s||a?c:"top")||e.hbias)||"bottom")}function Hc(e,t,n,i){return"top"===e.layoutDir||"bottom"===e.layoutDir?qc(e,n,t,e.layoutDir,e.hbias,i):Jc(e,n,t,e.vbias)}function qc(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*Lc.BOUNDARY_MARGIN_RIGHT,left:i.width*Lc.BOUNDARY_MARGIN_LEFT});return s.left="right"===r?function(e,t,n,i,r,o){var n=Wc(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?Vc(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=Wc(n),t=t.width;e=e.left-t+e.width/2+n;if(e<o)return r<e+t+(n=o-e)?Vc(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 Vc(e,t,n)}else if(e<r){o=(e+=r-e)+t;if(i<o)return Vc(e,t,n)}return e}(n,e,t,a.right,a.left),s}function Wc(e){e=(parseInt(e.offset,10)||0)+(parseInt(e.width,10)||0)+(parseInt(e.borderWidth,10)||0);return isNaN(e)?0:e}function Vc(e,t,n){n=n.width-(e+t);return n<e?e-(e-n)/2:e<n?e+(n-e)/2:e}function Jc(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 Kc(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=Lc.Z_INDEX.CARET,$c(r,t,n,i),e.find("#pendo-guide-container")[0].parentNode);i.appendChild(r),n.borderWidth&&(e=Yc(r,n,t.layoutDir),i.appendChild(e))}function $c(e,t,n,i){"top"!==t.layoutDir&&"bottom"!==t.layoutDir||Zc(e,t,n,i),"left"!==t.layoutDir&&"right"!==t.layoutDir||Xc(e,t,n)}function Zc(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 Xc(e,t,n){var i,r=jo();return e.style["border-top"]=n.width+"px solid transparent",e.style["border-bottom"]=n.width+"px solid transparent",e.style.bottom="",t.vbias===kc?(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===Ac?(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 Yc(e,t,n){var i=e.cloneNode();return i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=Lc.Z_INDEX.BORDER_CARET,Qc(i,t,n,e),i}function Qc(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]=el(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"),C.extend(e.style,r)}function el(e,t){return"transparent"===e?e:t}function tl(e){var t,n;if(e.guideElement)return t="pendo-resource-center-container"===e.guideElement.attr("id"),n=tc(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}function nl(e){la(e.element)?(Pc.placeBBTooltip(e),k(e.elements[0]).css({display:"block"})):k(e.elements[0]).css({display:"none"})}function il(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=C.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}rl(o,e),i.push(o)}}}}function rl(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 ol(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=jo().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 al(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=jo().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 sl(e,i){var e=C.isArray(e)?e:[e],e=C.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=C.reduce(t,function(e,t){return e.concat(C.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&&ul(C.reduce(t,function(e,t){var n,t=k(t),i=ll(t[0]),i=i.marginLeft+i.marginRight,r=cl(t);return r&&(n=r.paddingLeft+r.paddingRight,r=r.width-i-n,e.push({$blockElement:t,availableSpace:r})),e},[])),C.each(e,function(e){var t=e,t=((t=k("._pendo-open-text-poll-input",t))&&t.length&&C.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)),ll(n[0])),r=e.marginLeft+e.marginRight,o=cl(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&dl(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),ul({$blockElement:n,availableSpace:o}))}),e);(t=k(["._pendo-video","._pendo-image"].join(","),t))&&t.length&&C.each(t,function(e){var t=k(e),n=ll(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=cl(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&dl(t,i,r,a),ul({$blockElement:t,availableSpace:a}))})})}function ul(e){C.isArray(e)||(e=[e]),C.each(e,function(e){e.$blockElement.css({"max-width":"none"})});var n=C.map(e,function(e){return ll(e.$blockElement[0]).width});C.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function dl(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 cl(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 ll(e){e=R(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var pl,M={calculateTotalOffsetWidth:gl,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=gl(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 C.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=gl(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=gl(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return C.filter(e,fl)},getPendoVisualElements:function(e){return C.filter(e,function(e){return!fl(e)})},initializeFlexElements:function(e){var t=e.cloneNode(),n=hl(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++)vl(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:fl,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=gl(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=gl(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=gl(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=C.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"!==C.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=C.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:hl,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 C.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:ml,wrapFlexElementsInFlexRows:function(e,t,n){for(var i=n||ml(t),r=M.createFlexRow(),o={row:r,rowWidthUsed:0},a=[o],s=0;s<e.length;s++){var u=e[s],d=So(u)["width"],d=parseInt(d,10);o.rowWidthUsed+=d,o.rowWidthUsed>i&&0!==C.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||ml(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:vl,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&&(bl(e),M.flexElement(e,n))},flexElement:function(e,i){e=k("[data-pendo-display-flex]",e);C.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:bl};function hl(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 fl(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function gl(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 ml(e){var t=So(e)["width"],e=R(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function vl(e){yl(e);var t=Yo(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-")&&(yl(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function yl(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function bl(e){var n="data-aspect-ratio",e=k("["+n+"]",e);C.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 wl(){return!E.designer&&f.get("disableGuidePseudoStyles")}function Sl(e,t,n){return e&&e.templateName?oc.buildNodesFromTemplate(e.templateName,e,t,n,Cl):"style"===e.type&&wl()?[]:[Cl(e,t,n)]}function El(e,t,n,i){e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw i&&(e+=' for node type "'+i+'"'),_.info(e),new Error(e)}function Il(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=C.keys(n);return C.reduce(e,function(e,t){return s[o]&&s[o][t]&&El(t,r,i,o),a[t]||u.test(t)||d.test(t)||El(t,r,i),e[t]=n[t],e},{})}function Cl(n,i,e){i=i||{id:"unknown",guideId:"unknown"},n.props=Il(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&&Pc.attachScrollHandlers(i,xc),Tc(i);if(C.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!==Xe.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++)C.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=kl(n.css):r.text(kl(n.css))),n.svgWidgetId&&cc.buildSvgNode(n.svgWidgetId,n).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)Tl(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(C.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=aa(cd()),u=s!==document,d=0;d<n.children.length;d++){var c=Sl(n.children[d],i,e);C.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){_l(e,i)}):_l(r[0],i),r}function _l(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++,xl(k(e),t))}function xl(e,i){e.on("load",function(){var e,t={},t=(!i.containerId&&i.domJson&&(t=tc(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&&(al(t,i.guideElement),sl(t,i.guideElement),M.flexAllThings(t,i),e=i.getGuide(),C.get(e,"attributes.isAnnouncement")||"AnnouncementsModule"===C.get(e,"attributes.resourceCenter.moduleId")||(ol(t,i.guideElement),(e=n.children.item("pendo-guide-container"))&&e.style&&"auto"===e.style.overflow&&(sl(t,i.guideElement),M.flexAllThings(i.containerId,i))),"tooltip"===i.attributes.calculatedType&&Pc.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&&Pc.positionStepForTooltip(i,i.domJson,e),e.style.visibility="visible",e.parentNode.style.visibility="visible",M.flexAllThings(i.containerId,i)):_.info("Failed to find guideContainer for id: "+i.containerId)})}function Tl(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 kl(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=kl(n[r].styles):C.each(n[r].styles,function(e,t){i+=t+":"+e,n[r].selector.match(/\d+%/)||(i+="!important;")}),i+="}";return i}function Al(t){C.each(document.head.childNodes,function(e){e&&k.hasClass(e,"pendo-style-"+t)&&Vo(e)})}var Rl=function(){var e=window.navigator;return((C.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},Ol="meta",Nl=C.compose(JSON.parse,JSON.stringify),Ml=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()},Ll=function(e={}){(e=C.isObject(e)?e:{}).jwt&&e.signingKeyName&&(t=ms.getJwtOptions(e,"updateOptions"))&&(ms.set(C.pick(e,"jwt","signingKeyName")),e=t),t=e,n=C.extend({},t.visitor),i=C.extend({},t.account),t=C.extend({},t.parentAccount),n.id===Nn&&(_.info("Missing visitor id."),delete n.id),kn(i.id)&&kn(t.id)&&(Pn(i.id)?t.id=i.id.split(Ln)[0]:i.id=""+t.id+Ln+i.id),kn(i.id)&&(i.id=""+i.id),kn(n.id)?n.id=""+n.id:n.id=b({generate:!0}),n.language=Rl(),e={visitor:Nl(n),account:Nl(i),parentAccount:Nl(t),date:Ml(),version:E.VERSION},g.getters["metadata/selfHosted"]()&&(e.selfHosted=!0);var t,n=C.clone(Gl()),i=(f.setLocalConfig(C.extend({},f.getLocalConfig(),e)),g.commit("metadata/setMetadata",e),Gl()),r=(kn(e.visitor.id)&&(E.identify(e.visitor.id,e.account.id),e.visitor.id=b(),e.account.id=jn()),rt(e)),o=(void 0!==(o="object"==typeof(o=r)?rt(o):o)&&o.toString&&(o=o.toString()),""+(C.isNumber(pl)?pl:qn(Ol))!==o),r=(pl=r,o&&Hn(Ol,r),!C.isEqual(n,i));return{options:e,hashChanged:o,storeChanged:r}},Pl=Jn(function(e){e=Ll(e);y.metadata.trigger(e)}),Fl=Jn(function(e,t){C.isObject(e)?Pl(e):Un(e,t)}),Dl=function(){var t,e=k("script");return e=e,t=new RegExp("/agent/static/"+E.apiKey+"/pendo\\.js$"),!C.any(e,function(e){return t.test(e.src)})&&!Ee()},Ul=function(){var e=f.get("blockAgentMetadata");return e!==undefined&&e};function Gl(){return g.getters["metadata/metadata"]()}function Bl(){return JSON.parse(JSON.stringify(Gl()))}function zl(e){var t=e.data[0],n=f.getLocalConfig()||{};Vn(e)?(On([Ol]),g.commit("metadata/reset",t)):(n.visitor=C.extend({},n.visitor,{id:t.visitor_id}),n.account=C.extend({},n.account,{id:t.account_id}),f.setLocalConfig(n),g.commit("metadata/setMetadata",n))}var jl={Launcher:{addBehavior:C.noop},Metadata:{getMetadata:Gl},Util:{documentScrollTop:fo,documentScrollLeft:go,getOffsetPosition:Wo},Events:y,JWT:{getJWT:ms.get}};var Hl,ql,Wl,Vl,Jl={},Kl=(ql=[],Wl=[],Vl={},(Hl=Jl).getExtensions=function(){return Wl},Hl.tagExtension=function(e,t){e=Hl.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},Hl.findExtensionByTag=function(t){return C.find(Wl,function(e){return C.contains(e.tags,t)})},Hl.findExtensionByName=function(e){return C.findWhere(Wl,{name:e})},Hl.filterExtensionsByUse=function(t){return C.filter(Wl,function(e){return e.use===t})},Hl.findExtensionByNameAndProvider=function(t,n){return C.find(Wl,function(e){e=e.data;return!!e&&e.name===t&&e.provider&&e.provider.name===n})},Hl.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],Vl[e]={handler:t,validators:n}},Hl.getExtensionFrames=function(){return C.reduce(Wl,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=C.filter(e,$l)).length&&(ql=function n(e){if(!e.length)return e;var t=C.filter(e,Zl);if(t.length)return n(C.difference(e,t));return e}(ql.concat(e)))});function $l(t){var e;return!!C.every(["name","version","use","type","uri"],C.partial(C.has,t))&&(e=t.use,e=Vl[e]?Vl[e].validators:[],C.every(C.map(e,function(e){return e(t)})))}function Zl(e){var t;return"behavior"===e.use?!!e.uri(Hl,jl)&&(Wl.push(e),!0):(t=e.use,!!(t=Vl[t]?Vl[t].handler||C.identity:null)&&((e=t(e))&&Wl.push(e),!!e))}var L,Xl,Yl,Ql,ep,tp,P={initializeResourceCenter:function(r){if(!(L=ip(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=rp(L,r),t=C.reduce(e,function(e,t){return np(t)?e.concat(t.steps[0].fetchContent()):e},[]);return t.push(Hd.validate(L).then(C.noop,function(){L.launchMethod="api"})),L.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},C.forEach(cp(),function(e){var t=Jl.findExtensionByNameAndProvider("chat",e),t=(t&&fp(e,t),Jl.findExtensionByNameAndProvider("helpcenter",e));t&&fp(e,t)}),C.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=up(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&dp(e.integrationName,e.integrationProvider),C.reduce(n,function(e,t){var n=C.find(r,function(e){return e.id===t});return n?e.concat(n):e},[]));"AnnouncementsModule"===i&&(L.attributes.notifications.individualCounts[t.id]=0,C.forEach(e,function(e){Bp(e)||e.isControlGroup()||L.attributes.notifications.individualCounts[t.id]++}));-1<C.indexOf(["GuideListModule","OnboardingModule","AnnouncementsModule"],i)&&C.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,_.error("Failed to load one or more Resource Center modules"),m.resolve()))},findResourceCenterHomeView:ip,findResourceCenterModules:rp,replaceResourceCenterContent:op,renderResourceCenterModule:function(e,t){op(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(),C.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=Jl.findExtensionByNameAndProvider(e,t);return e?(n=k(n))?((e=e.getFrame()).appendTo(n),void e.css({display:"block"})):_.info("could not find target element for "+t+" integration"):_.info(t+" integration has not been loaded into the agent")},appendIntegrationToBodyByNameAndProvider:dp,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(cd())})},getResourceCenter:Sp,getResourceCenterContainer:Ep,getResourceCenterBadge:Ip,addNotificationBubbleToResourceCenterBadge:Np,addNotificationBubbleToTargetElement:Mp,updateNotificationBubbles:function(){var e=L,t=C.get(e,"attributes.notifications");if(t){var n=Tp(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&Up(),t.totalUnseenCount=n;else{kp();var i=n!==t.totalUnseenCount;if(i||!_p(Ql)){if("badge"===e.launchMethod){i=Ip();if(!i)return;Np(i.element(),e.attributes.notificationBubble,n)}if("dom"===e.launchMethod&&C.get(e,"attributes.activation.selector")){i=k(e.attributes.activation.selector);if(!i.length)return;Mp(i[0],e.attributes.notificationBubble,n),Cr(window,"resize",C.debounce(xp,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:Up,updateNotificationBubbleCount:Gp,updateNotificationBubbleOnHomeView:Ap,updateOrCreateNotificationBubble:Lp,hexToRgb:Cp,doesIntegrationExist:up,calculateTotalNotificationCount:Tp,updateNotificationBubblesOnHomeView:kp,createNotification:Fp,appendNotificationBubble:Dp,hasAnnouncementBeenSeen:Bp,clearAnnouncementUnseenInterval:ap,createAnnouncementUnseenInterval:sp,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=C.find($u(),function(e){return e.id===t});if(C.get(e,"attributes.resourceCenter.isModule",!1))return e}}},dismissResourceCenter:zp,repositionResourceCenter:function(){var e=P.getResourceCenterContainer();{var t,n,i;e&&(i=P.findResourceCenterHomeView($u()).steps[0],t=C.get(i,"domJson.props.style.height"),t=parseInt(t,10),t=isNaN(t)?0:t,n=parseInt(C.get(i,"domJson.props.style.bottom",0),10),i=parseInt(C.get(i,"domJson.props.style.top",0),10),n=isNaN(n)?0:n,i=isNaN(i)?0:i,(n=jo().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")}il(k(e))},repositionDoubleResourceCenterBadge:function(){var e,t,n;g.getters["frames/isLeader"]()&&1<(e=C.unique(C.compact([].concat(C.toArray(k("._pendo-resource-center-badge-container"))).concat(C.toArray(k("._pendo-resource-center-badge-container")))))).length&&function(e){var t=Yo(e[0]),e=Yo(e[1]);return Qo(t,e)}(e)&&(t=Wo(e[0]).width+5,n=Wo(e[1]).left-t<0?"":"-",e[1].style.transform="translateX("+n+t+"px)")},resourceCenterIgnoreRtl:function(){return C.get(this.getResourceCenterBadge(),"ignoreRTL",!1)},adjustResourceCenterWidth:function(e){var t=Ep();if(t){o=jo().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:fp,renderNativeIntegration:bp,isSupportedNativeIntegration:lp,handleNativeIntegrationContinuation:wp,isProviderInstalled:pp,adjustNotificationBubbleForResize:xp,getNotificationBubbleDefaultCss:Pp,getModuleId:jp,isIframeModule:function(e){return"IframeModule"===jp(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===jp(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===jp(e)&&e.hasResourceCenterContent},isFullyCustom:function(e){return"FullyCustomModule"===jp(e)},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!P.isSupportedNativeIntegration(e.integrationProvider)||P.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n=ip(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=rp(n,e),i=[],r=C.indexBy(e,"id");return C.each(t,function(e){var e=e.attributes.resourceCenter;"AnnouncementsModule"===e.moduleId&&(e=e.children,e=C.reduce(e,function(e,t){t=r[t];return t?e.concat(t):e},[]),C.each(e,function(e){np(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"===C.get(t,"data-localization-direction",!1),e=C.get(e,"attributes.badge.ignoreRTL",!1);n&&e&&!t["data-direction-changed"]&&(n=C.get(t,"style.left",!1),e=C.get(t,"style.right",!1),n)&&e&&(t.style.left=e,t.style.right=n,t["data-direction-changed"]=!0)},stashBadgeAriaLabel:Rp,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:Op,updatePseudoStyleSelectors:Hp,hideRCBadge:qp};function np(e){return e.steps&&e.steps.length&&C.isFunction(e.steps[0].fetchContent)}function ip(e){var e=C.filter(e,function(e){return C.get(e,"attributes.resourceCenter.isTopLevel")&&!e.isFrameProxy}),t=C.find(e,function(e){return"staged"===e.state});return t||e[0]}function rp(t,e){return C.filter(e,function(e){return e&&!e.isFrameProxy&&C.get(e,"attributes.resourceCenter.isModule",!1)&&e.state===t.state})}function op(t,e,n,i=!0){if(!Yl){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),Ep());if(e){var a=k(e).find('[id^="pendo-g-"]')[0];if(a){var s,u=a.getAttribute("data-pendo-guide-id"),d=C.find($u(),function(e){return e.id===t}),c=(t!==L.id?(Al(C.get(L.activeModule||L,"steps.0.id")),L.activeModule=d):(s=L.activeModule,Al(C.get(s,"steps.0.id")),delete L.activeModule),C.get(d,"attributes.resourceCenter.integrationProvider")),l=(lp(c)&&bp(c),d.steps[0]),c=Hp(l.domJson),c=(c.props["data-pendo-guide-id"]=d.id,Cl(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"===jp(d)&&l.guide.guidesInModule?(sl(r=C.reduce(l.guide.guidesInModule,function(e,t){var n;return C.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),C.each(r,function(e){M.flexAllThings(e,l)})):M.flexAllThings("pendo-resource-center-container"),il(k(e)),p.style.left="0px",!n){Yl=!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),Yl=!1},200)}catch(h){throw Yl=!1,h}}return"AnnouncementsModule"===jp(d)&&(sp(),r=oc.getGuidesInResourceCenterModule(d,$u()),(n=C.reduce(r,function(e,t){return t.steps&&t.steps.length&&Xd.hasContent(t.steps[0])||e.push(t.fetchContent()),e},[])).length)&&((o=function(){var i,e,t;if(C.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 C.each(C.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 ap(){window.clearInterval(Xl),Xl=null}function sp(){Xl=Xl||window.setInterval(function(){var e=Ep();if(!e)return ap();e=k(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return ap();var t=k(e).find('ol[id^="pendo-list"]');if(!t.length)return ap();var n=Yo(t[0]),i=k(t).find("li");if(!i.length)return ap();for(var r=e.attr("data-pendo-guide-id"),o=L.attributes.notifications.individualCounts[r],a=n.height/3,s=Yo(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(Yo(i[u]).top-n.top>n.height-a&&!s)break;var p=d.attr("data-pendo-announcement-guide-id"),l=C.find($u(),function(e){return e.id===p});if(!l)break;c&&(d.removeClass("pendo-unseen-announcement"),c=d.find(".pendo-unread-announcement-mini-bubble"),_e(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"),Bp(l)||o--,Gp(o,r)),l.steps[0].seenState="advanced",Xg(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"),Qg(l.id,l.steps[0].id,b(),"advanced",l.language)}}},500)}function up(e,t){return Jl.findExtensionByNameAndProvider(e,t)}function dp(e,t){e=Jl.findExtensionByNameAndProvider(e,t);if(!e)return _.info(t+" integration has not been loaded into the agent");lp(t)&&pp(t)?L.hasEligibleNativeIntegrationModule=!0:(Xo((t=e.getFrame())[0])||t.appendTo(cd()),t.css({display:"none"}))}function cp(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging"]}function lp(e){return!!e&&0<=cp().indexOf(e)}function pp(e){return!!e&&null!==(e=hp(e))&&C.isFunction(window[e])}function hp(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 fp(e,t){if(e)if(pp(e))gp(e,t);else{var n;if("function"==typeof Object.defineProperty){const i=hp(e);null!==i&&(ep&&ep[i]?ep[i][e]||(ep[i][e]={installed:!1,integrationObj:t}):((ep=ep||{})[i]={[e]:{installed:!1,integrationObj:t}},Object.defineProperty(window,i,{get(){return n},set(e){n=e,C.forEach(ep[i],function(e,t){const n=e.integrationObj;!e.installed&&pp(t)&&(e.installed=!0,gp(t,n),dp(n.name,t),C.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 gp(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=vp(i);mp(n,"webWidget","hide"),mp(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),mp(n,"webWidget:on","close",function(){mp(n,"webWidget","hide"),yp()}),L.isInProgress()&&!L.attributes.doNotResume&&wp(L.activeModule),mp(n,"webWidget:on","chat:unreadMessages",function(e){Gp(e,"chat")});break;case"zendesk-messaging":i=t;mp(i=i.data.provider.name,"messenger","hide"),mp(i,"messenger:on","close",function(){yp()}),mp(i,"messenger:on","unreadMessages",function(e){Gp(e,"chat")});break;case"intercom-chat":var r=t;r=vp(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(){yp()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=Gl();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 Gp(1,"chat")})}),window.drift.on("chatClose",function(e){Gp(0,"chat"),window.drift.hide(),yp()})}}function mp(e,...t){try{tp&&tp[e]||window.zE.apply(null,t)}catch(n){tp?tp[e]=!0:tp={[e]:!0}}}function vp(e){e=C.get(e,"data.options.labels.position");return e=e&&e.split("-")}function yp(){zp(L.activeModule),delete L.activeModule,L.continueToNativeModule=!1}function bp(e,t){if(e){var n=Gl();if(L.isShown()&&L.hide(),tp&&tp[e])_.info(e+" integration failed to communicate with API, closing"),P.replaceResourceCenterContent(L.id,undefined,!0),yp();else{var i=Ip();switch(i&&qp(i,L),e){case"zendesk-messaging":mp(e,"messenger","show"),mp(e,"messenger","open");break;case"zendesk-native-kb":mp(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),mp(e,"webWidget","show"),mp(e,"webWidget","open");break;case"zendesk-chat":mp(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&mp(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})}Gp(0,"chat"),!L.activeModule&&t&&(L.activeModule=t).steps[0].onShown("launcher")}}}function wp(e){e&&!e.isTopLevel&&(bp(C.get(e,"attributes.resourceCenter.integrationProvider")),L.activeModule||(L.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function Sp(){return L}function Ep(){return C.get(L,"steps.0.guideElement.0")}function Ip(){if(L&&L.id)return Vu[L.id]}function Cp(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 _p(e){return e&&C.all(e,function(e){return Xo(e&&e.length?e[0]:e)})}function xp(){var e,t=P.getResourceCenter(),n=C.get(t,"attributes.notifications");n&&(n=P.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&C.get(t,"attributes.activation.selector")&&(e=k(t.attributes.activation.selector)).length&&P.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function Tp(e){return C.reduce(e,function(e,t){return e+t},0)}function kp(){var e,t=L;t&&(t=C.get(t,"attributes.notifications"))&&(e=Ep())&&k(e).find("._pendo-resource-center-home-list").length&&C.each(t.individualCounts,function(e,t){Ap(e,t)})}function Ap(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 Rp(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function Op(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function Np(e,t,n){var i=Op(n);let r=e.getAttribute(i);r&&(Rp(e),r=r.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",r));var i=C.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();Lp(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 Mp(e,t,n){var i=wo(e,e),r=wo(e,$o());Lp(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 Lp(e,t,n,i,r){var o,a;_p(Ql)?(a=(o=Pp(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=C.extend(a,i),o=C.extend(o,r),Ql.bubbleEle.css(a),Ql.unseenCountEle.css(o),Ql.unseenCountEle.text()!=""+n&&Ql.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&&Dp(Ql=Fp(t,n,i,r),e)}function Pp(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 Fp(e,t,n,i){var r=Pp(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=C.extend(o,n),n=C.extend(r,i);return a.css(o),s.css(n),_e(10)||wl()||(i="rgb("+(r=Cp(e["background-color"])).r+", "+r.g+", "+r.b+")",rc(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 Dp(e,t){e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function Up(){var n=Ql?Ql.bubbleEle:k(".pendo-resource-center-badge-notification-bubble"),i=Ql?Ql.styleEle:k("#pendo-resource-center-bubble-animation");n&&C.each(n,function(e,t){n[t]&&(t=n[t])&&t.parentNode&&t.parentNode.removeChild(t)}),i&&C.each(i,function(e,t){i[t]&&(t=i[t])&&t.parentNode&&t.parentNode.removeChild(t)}),Ql=null,P.resetBadgeAriaLabel()}function Gp(e,t){var n=L;n&&(n=C.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,P.updateNotificationBubbles())}function Bp(e){return!(!C.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function zp(e){var t=C.get(e,"attributes.resourceCenter.isModule",!1)?e:P.findShownResourceCenterModule();t&&(t=C.first(t.steps),Ng(t));t=(C.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:P.findResourceCenterHomeView($u())).steps[0];return Ng(t)}function jp(e){return C.get(e,"attributes.resourceCenter.moduleId")}function Hp(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(...C.map(e.children,function(e){return i(e,t)})):n}(e,function(e){return e.css&&e.css.length});return C.forEach(t,function(e){C.forEach(e.css,function(e){e.selector=e.selector.replace(n,"[id^='$1']")})}),e}function qp(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete Vu[t.id])}var Wp=1e4,Vp="lastStepAdvanced";function Jp(e){g.dispatch("guideState/updateLastGuideStepSeen",e),g.dispatch("guideState/write"),g.dispatch("frames/changeLastGuideStepSeen",e)}function Kp(){g.dispatch("guideState/regainFocus")}function $p(){return g.state.guideState.lastGuideStepSeen}var i={actions:{init(e){e.getters.storage().registry.addLocal(Vp),e.commit("setScopedStorageKey",Bt(e.state.storageKey)),y.identify.on(function(e){Vn(e)&&On([Vp])})},load(t,e){if(e){var n;try{n=JSON.parse(e)}catch(i){}n&&C.each([].concat(n),function(e){t.commit("setStepState",e)})}},forceExpire(n){C.each(n.state.steps,function(e,t){n.commit("expireStepState",t)})},expire(n){var i=n.getters.now();C.each(n.state.steps,function(e,t){i-e.time>n.state.ttl&&n.commit("expireStepState",t)})},apply(o){var a,s=C.indexBy(o.getters.guideList(),"id");o.dispatch("expire"),C.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=C.findWhere(i.steps,{id:r}))&&(n=o.state.storageKey,t.seenState!=e.state&&(_.info("making sure that seenState = '"+e.state+"' for "+n+": "+r),t.seenState=e.state),t.snoozeEndTime!=e.snoozeEndTime&&(_.info("making sure that snoozeEndTime = '"+e.snoozeEndTime+"' for "+n+": "+r),t.snoozeEndTime=e.snoozeEndTime),t.seenReason!=e.seenReason&&(_.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),_.info("making sure that dismissCount = '"+t.dismissCount+"' for "+n+": "+r)),e=C.indexOf(i.steps,t),C.each(i.steps.slice(0,e),function(e){C.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})))}),a&&o.dispatch("updateLastGuideStepSeen",C.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=C.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,Hm)&&Hm.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(C.map(e.state.steps,function(e){return C.extend({tabId:t},e)}));_.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)&&(sh(),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||(uh(),dh())),n&&iv()}},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:Wp,storageKey:Vp,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=C.get(i,"frames.tabId");return!!e&&!!((e=C.max(C.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()}}},Zp={canDisplay:function(e,t,n){if(n&&n.enabled&&C.isFinite(t)){t=Qp(t,n);if(C.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=C.reduce(n,(e,t)=>e.concat(i[t]||[]),[]),t=C.uniq(n.concat(t)))}var r,o,n=function(e){e=C.defaults(C.groupBy(e,function(e){return Yp(e)?"override":"auto"}),{override:[],auto:[]});return e.override.concat(e.auto)}(function(e,t){var n;return C.isArray(t)&&t.length?(n=C.indexBy(e,"id"),t=C.reduce(t,i,[]),C.chain(e).pluck("id").reduce(i,t).value()):e;function i(e,t){return n[t]&&(e.push(n[t]),delete n[t]),e}}(C.filter(e,Xp),t));return C.find(e,function(e){return e.isTraining})?(t=f.get("adoptPrioritizeAdoptGuides"),e=t,r=[],o=[],C.each(n,function(e){(e.isTraining?r:o).push(e)}),e?r.concat(o):o.concat(r)):n},tryDisplayGuide:function(e,t){var n=Zp.lastDismissedTime(t),n=Zp.canDisplay(v(),n,t.throttling);if((Yp(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:Qp};function Xp(e){return e&&/auto/.test(e.launchMethod)}function Yp(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||C.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function Qp(e,t){var n=t.interval,t=(t.unit||"").toLowerCase();return C.isNumber(n)&&ct(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:C.isNumber(n)?(new Date).getTime():void 0}function eh(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+"?"+to(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 C.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=Zr(e).substring(1),t=eo(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=Zr(e.substring(n+1)).substring(1),C.extend(t,eo(n))),t}}var th=C.memoize(function(){return eh(N)});function nh(e,t){var e=C.find(e,function(e){return e.isContinuation(t)}),n=e&&e.attributes&&e.attributes.doNotResume;if(e&&!n)return e}class ih{constructor(){this.name="autoDisplay",this.queue=[]}markDirty(){vd()&&(this.queue.push("permalink","continuation"),this.queue.push(...Zp.sortAndFilter(Ku(),E.autoOrdering)))}process(e){if(vg())this.cancel();else{var t=this.queue.shift();if("permalink"===t)return th().tryDisplay();if("continuation"===t){var n=nh(Ku(),$p());if(n)return e.saveContext(n),n.show("continue")}else if(t){if(!nh(Ku(),$p()))return e.saveContext(t),Zp.tryDisplayGuide(t,E);this.cancel()}}}handleProcessTimeExceeded(e){e=e.getContext();e&&_.warn("Auto display ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var rh=null,oh=500,ah=function(e){rh=C.delay(function(){rh=null,dh()},e=e||oh),E.guidesProcessingThreadHandle=rh},sh=function(){rh&&(clearTimeout(rh),rh=null,E.guidesProcessingThreadHandle=rh),g.dispatch("guideUpdate/stopScheduledUpdate")},uh=function(){Eg(),bh.cancel();for(var e=0;e<Wu.length;e++){var t=Wu[e];t.parentNode.removeChild(t)}Wu.length=0,g.dispatch("guideUpdate/stopObserver"),y.guideLoopStopped.trigger()},dh=function(){if(sh(),nv.pending||fm&&E.id&&E.id!==fm.id)_.info("guides are loading.",{contexts:["guides","loading"]});else if(Wm())_.info("guides are disabled.",{contexts:["guides","disabled"]});else if(Vm())_.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!g.getters["guideState/tabLostFocus"]())try{var e=nd();e&&0!==e.length&&(g.dispatch("guideUpdate/startObserverIfNeeded"),bh.isComplete()&&bh.markDirty(),g.getters["frames/leaderExists"]())&&bh.process()}catch(t){bh.cancel(),_.critical("ERROR in guide-loop",{error:t})}finally{bh.paused||(bh.isComplete()?(g.state.guideUpdate.useObserver&&!g.state.guideUpdate.needsUpdate||ah(),y.guideUpdateComplete.trigger()):ah(50))}};var ch=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)),dh()},lh=function(){Wm()||Km(!0),uh(),gm()};class ph{constructor(e,t){this.dirty=!1,this.name=e,this.processFn=C.isFunction(t)?t:C.noop}markDirty(){this.dirty=!0}process(){this.processFn(),this.dirty=!1}cancel(){this.dirty=!1}isComplete(){return!this.dirty}}class hh{constructor(){this.name="badge",this.queue=[]}markDirty(){this.queue.push.apply(this.queue,C.filter(Zu(Ku()),od))}process(e){var t=this.queue.shift();e.saveContext(t),t&&t.placeBadge()}handleProcessTimeExceeded(e){e=e.getContext();_.warn("Badge ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}function fh(i,e){var r,o,t,n,a;P.isFullyCustom(i)||(r=!1,o=[],t=C.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=C.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=rt(C.map(n,function(e){var t=e.isAnnouncement()||e.isWhatsNew()?null:C.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=rt(C.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=C.find(t,function(e){return e.isContinuation($p())}),a=C.get(n,"attributes.doNotResume"),e=C.get(n,"attributes.resourceCenter.integrationProvider"),P.isSupportedNativeIntegration(e))&&!a&&i&&(i.continueToNativeModule=!0,n.continueToNativeModule=!0),i.activeModule&&((e=C.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 gh(e,t,n){var i,r,o=Vu[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),C.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||(C.isFunction(e.placeBadge)&&e.placeBadge(),o=Vu[e.id]),o&&o.show(),e.badgeHidden=!1)}function mh(e){var t,n,i,r,o,a;e&&e.launchMethod&&(e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith,t=e.activeModule,n=C.get(t,"attributes.resourceCenter.integrationProvider"),e.isNativeModuleActive=t&&P.isSupportedNativeIntegration(n),P.isFullyCustom(e)?e.hasResourceCenterContent=!0:(e.isShown()||!g.getters["frames/isLeader"]()?fh(e,gh):(t=e,n=gh,P.isFullyCustom(t)||(i=[],o=[],(r=C.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=C.flatten(C.pluck(t.modules,"guidesInModule")),o=C.filter(C.compact(r),function(e){return e.control}),!i.length&&(a=C.reduce(t.modules,function(t,n){return C.each(n.guidesInModule,function(e){t[e.id]=n}),t},{}),r=C.filter(r,function(e){return e&&e.steps&&e.steps.length}),r=C.sortBy(r,function(e){return e.steps[0].elementPathRule?1:0}),r=a[(r=C.find(r,function(e){return e.shouldBeAddedToResourceCenter()}))&&r.id])&&i.push(r),n(t,i,o))),e.isNativeModuleActive&&(e.isShown()&&e.hide(),a=Vu[e.id])&&P.hideRCBadge(a,e),"dom"===e.launchMethod&&(P.updateNotificationBubbles(),P.adjustNotificationBubbleForResize())))}class vh{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 yh{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 vh(50);!this.timedOut()&&!i.isComplete()&&!e;)r.start(),!(e=i.process(r))&&r.isTimeExceeded()&&(i.handleProcessTimeExceeded&&i.handleProcessTimeExceeded(r),this.ejectGuide(r.getContext()));ft(e)?(t=this.updateId,n=C.bind(function(){this.updateId===t&&(this.paused=!1,dh())},this),this.paused=!0,e.then(n)["catch"](n)):i.isComplete()&&this.queue.shift()}addPhase(e,t){t=t||e.name||this.phases.length,C.isFunction(e)&&(e=new ph(t,e)),this.phases.push(e)}removePhase(t){var e=C.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()&&Yu.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("monitoring/setTimer",{name:"guideUpdateTimeMS",time:this.updateTotalTime}),g.commit("guideUpdate/completeUpdate",e),this.cancel()}cancel(){this.updateId=null,this.paused=!1,this.queue.length=0;for(var e of this.phases)C.isFunction(e.cancel)&&e.cancel()}isComplete(){return!this.queue.length}}var bh=new yh([new ph("guideShowing",function(){var a=ov();a&&(C.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("."+hg),(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=la(t),o=!0,n&&r&&e.elementContainsRulesList&&(o=jg(n,e.elementContainsRulesList),r=o),t&&(r||i.hasClass("mouseover"))?e.checkPlacement():("tooltip"===e.type||"tooltip"===e.attributes.calculatedType)&&pa(t)&&o||e.hide()))}),a.guide.checkForHiddenGroupSteps())}),new ih,new hh,new ph("resourceCenter",function(){mh(P.getResourceCenter())}),new ph("frameVisibility",function(){g.dispatch("frames/checkFrameVisibility")})]);function wh(){bh.addPhase(...arguments)}function Sh(){bh.removePhase(...arguments)}function Eh(){var s={};return C.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=C.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 Ih="debug-enabled";function Ch(){try{var e=h.read(Ih)||JSON.parse(Pt(Ih));return"boolean"==typeof e?{enabled:e}:e||{}}catch(t){return{}}}function _h(e=!0){let t;return t=g&&g.getters&&g.getters["debugger/debuggingEnabled"]?g.getters["debugger/debuggingEnabled"]():!0===Ch().enabled,e?t:t?"Yes":"No"}class xh{constructor(e,t){this.type=t,this.identificationFn=e}test(e){return this.identificationFn(e)}}const Th=(()=>{const n={},e=({data:e})=>{var[e,,]=e,e=e["guideId"];const t=N(e);e=(C.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)=>{C.isFunction(t)?n[e.type]={GuideType:e,handler:t}:_.error("Invalid Handler function provided for type "+e.type)}}})();Th.addTypeHandler(new xh(od,"badge"),(e,t)=>{Yu.addGuide(e)});var kh="_pendo-badge_";function Ah(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function Rh(t,n){var e,i,r,o,a,s=hd(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=C.reduce([(o=t.language,a=u?["he","ar"]:[],e=>(C.contains(a,o)&&(e.props["data-localization-direction"]=!0),e)),(r=d,e=>{var t,n;return C.get(e,"props.data-localization-direction",!1)&&!r&&(t=C.get(e,"props.style.left","auto"),n=C.get(e,"props.style.right","auto"),t)&&n&&(e.props.style.left=n,e.props.style.right=t),e}),Ah,$d,function(e){return Cl(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=Kd(this.imageUrl),i.className="_pendo-badge "+kh,u=this.width||13,d=this.height||13,Bo(i,"width:"+u+"px;height:"+d+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=C.isFunction(n.getGuide)&&n.getGuide(),t=Jg(e);!e.isShown()||g.getters["frames/isShownInAnotherFrame"]()(n)?$g(n,"badge"):t?n.eventRouter.eventable.trigger("pendoEvent",{step:n,action:"dismissGuide"}):(t=C.find(e.steps,function(e){return e.isShown()}),Ng(t))},this.shouldShow=function(){return t.canBadgeBeShown()||!1},this.show=function(){if(C.isFunction(this.shouldShow))return this.shouldShow()},this.hide=function(){k.removeNode(i),Al(t.id),C.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},Jg(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=C.constant(n),this.target=C.constant(s),this.element=C.constant(i),this}Rh.create=function(n){var i=Rh.findStep(n);if(i)return C.reduce(Rh.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},Rh.findStep=function(e){var t=C.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},Rh.behaviors=[Eh,Rh,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&&Bo(i,"display:inline-block;vertical-align:text-bottom;"),this.css&&Bo(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=Wo(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),!C.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"}Bo(e,o)}if(!e.parentNode){cd().appendChild(e);const a=sa(Cr,this.target(),Ph);this.removeScrollHandlers=()=>{Ph.cancel(),a()}}});return this},function(){"over"===this.position&&this.before("show",function(){var e=this.element(),t=Wo(this.target()),n="position:absolute;top:"+t.top+"px;left:"+t.left+"px;";if(n+="height:"+t.height+"px;width:"+t.width+"px;",Bo(e,n+="background-color:transparent;"),!e.parentNode){cd().appendChild(e);const i=sa(Ph,e,this.target());this.removeScrollHandlers=()=>{Ph.cancel(),i()}}});return this},function(){var t=this,e=t.element(),n=!1,i=function(e){t.activate(),t.toggleAriaExpanded&&t.toggleAriaExpanded(),Hu(e)};return t.after("show",function(){n||(l(e,"click",i),n=!0)}),t.after("hide",function(){ju(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=C.throttle(function(e){xr(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}(xr(e))||o()},50,{trailing:!1}),r=function(e){n.isShown()||$g(n,"badge"),l(document,"mousemove",i),Hu(e)},o=function(e){ju(document,"mousemove",i),ud()||Ng(n)},this.after("show",function(){e||(l(t,"mouseover",r),e=!0)}),this.after("hide",function(){ju(t,"mouseover",r),ju(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)||ud()||(t="inline"===this.position?"visibility:visible;":"display:inline;",n="inline"===this.position?"visibility:hidden;":"display:none;",i=C.throttle(function(e){var t,n,i,r,o,a;xr(e)===u||xr(e)===s||Mo(s,"triggered")||(t=e.clientX,e=e.clientY,n=Yo(u),i=Yo(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(){Bo(s,t),l(document,"mousemove",i)},d=function(){ju(document,"mousemove",i),Bo(s,n)},this.after("show",function(){e||(l(u,"mouseover",r),e=!0,d())}),this.after("hide",function(){e&&(ju(u,"mouseover",r),e=!1),d()}))}return this}];var Oh=function(e,t){var n,i,r=(t=t||Vu)[e.id],o=r?r.step():Rh.findStep(e);o&&(i=r?r.target():hd(o),(n=C.get(e,"attributes.resourceCenter"))&&!g.getters["frames/canShowRCBadge"]()?r&&C.isFunction(r.hide)&&(t[e.id]=undefined,r.hide()):n&&!e.hasResourceCenterContent||(P.updateNotificationBubbles(),n=!0,o.elementContainsRulesList&&(n=i&&jg(i,o.elementContainsRulesList)),(i=o.elementPathRule&&la(i)&&u.matchesSelector(i,o.elementPathRule)&&n)?((r=r||Rh.create(e)).show(),t[e.id]=r):r&&!o.isShown()&&(t[e.id]=undefined,r.hide()),_h()&&y.stepEligibility.trigger({stepId:o.id,guideId:e.id,eligible:i,reason:"target_element_badge"}),P.repositionDoubleResourceCenterBadge()))},Nh=function(){C.map(Vu,Mh),Vu={}},Mh=function(e,t){e&&(C.isFunction(e.hide)&&e.hide(),C.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete Vu[t.id]},Lh=function(e){var t=Vu[e.id];t&&Mh(t,e)};var Ph=C.throttle(function(){C.map(Vu,function(e){e&&e.show&&e.show()})},10);const Fh=h.getLocal();var F,Dh="pendo-preview",Uh="current-guide-preview";function Gh(e){return g.dispatch("preview/load"),Bh(e)}function Bh(t){var e=tf();if(e)return jh(t),g.dispatch("preview/start",C.extend(e)),h.clear(Vp),Lt(!1),rs.lock(),bm=af,y.startPreview.trigger(),y.leaderChanged.on(function(e){g.dispatch("preview/write"),e.oldLeaderId||iv(),g.getters["frames/isLeader"]()||(k(F).remove(),F=null,t.removeEventListener("message",qh))}),wh(zh),!0}function zh(){if(!g.getters["frames/isFollower"]()){var t,n,i,r,o,e,a=document,s=nd(),u=$p();if(Wh()&&(t=tf())&&F&&F.contentWindow)if(s&&s.length){F.contentWindow.postMessage({mutation:"preview/setGuideLoaded",payload:{guideLoaded:!0}},location.origin),n=C.find(s,function(e){return e.id===t.guideId}),i=0,r=n.steps.length,o=u||{},C.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=C.indexOf(n.steps,C.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:He}},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:fd(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:C.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=C.filter(g.state.frames.frames,e=>"hidden"!==e.visibility&&e.guides&&e.guides[h]);if(p.length)p=C.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=C.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"](C.noop)}}else Xh(0,{status:404,data:"Guide not found"})}return!0}function jh(e){if(g.getters["frames/leaderExists"]()){if(!g.getters["frames/isFollower"]()){if(F)return!0;var t,n;C.isFunction(e.addEventListener)&&e.addEventListener("message",qh),(t=document.createElement("iframe")).id=Dh,zo(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")||oo("pendo.preview.min.js"),t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},F=t,$o().appendChild(F)}}else y.one("leaderChanged",C.partial(jh,e))}function Hh(e,t,n){Eg(),g.commit("healthCheck/resetStepStatus",null,{root:!0}),Xd.reset(),iv();var i=e[0],i=(i&&C.each(i.steps,function(e){e.seenState=null}),h.clear(Vp),g.dispatch("preview/update",null),tf());return i&&(i=C.findWhere(e,{id:i.guideId}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),g.dispatch("preview/restart",i)),Zh(e,t)}function qh(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===Dh+"::exit"?(Yh({preventWindowClose:n}),g.dispatch("frames/stopPreview",{preventWindowClose:n})):t===Dh+"::restart"?(n=Hh(nd(),$p(),e.data.language),g.dispatch("guideState/forceExpire"),g.dispatch("guideState/updateLastGuideStepSeen",n),g.dispatch("frames/restartPreview")):t===Dh+"::resize"?(n=e.data.height,F&&F.style&&(F.style.height=n)):t===Dh+"::request-preview-mode-type"&&(e=nf(),F)&&F.contentWindow&&e&&F.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:e.previewModeType||"NEW_TAB"}},location.origin))}function Wh(){return g.getters["preview/isInPreviewMode"]()}function Vh(){return g.getters["preview/isInDesignerPreviewMode"]()}function Jh(e){var t,n,i=tf();if(!i)return e;if(i.isResourceCenter)return r=e,t=i,n=P.findResourceCenterHomeView(r),r=C.filter(r,function(e){return e.id!==n.id}),$h(n,t.stepId),t=C.map(r,function(e){return e.launchMethod="launcher",e}),[n].concat(t);{var r=e,o=i;let t;return C.each(r,function(e){e.id===o.guideId?t=e:((e=e).launchMethod="api",(e=e.steps[0])&&(e.seenState="advanced"))}),Kh(t),t.showsAfter=null,t.expiresAfter=null,$h(t,o.stepId),r}}function Kh(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function $h(e,t){for(var n=C.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 Zh(e,t){null==t&&(t={});var n=tf();if(!n)return t;e=C.findWhere(e,{id:n.guideId});if(!e)return t;if(n.state)return n.state;Kh(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:n.guideId,guideStepId:n.stepId,state:"active"}:{}}function Xh(e,t){F&&F.contentWindow&&F.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:t}},location.origin)}function Yh(e){var t=nf(),n=!1,i=(t&&(n="SAME_TAB"===t.previewModeType),Fh.getItem("pendo-navigation-state"));if(g.dispatch("preview/exit"),Eg({stayHidden:!0}),h.clear(Vp),rs.unlock(),k(F).remove(),bm=xd,Sh(zh),Lt(!0),n&&i){Fh.setItem(Uh,JSON.stringify(C.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(),iv()}function Qh(e,t){e=C.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function ef(){return g}var tf=C.partial(Qh,ef,"state.preview.preview"),nf=C.partial(Qh,ef,"state.preview.designerPreview");function rf(e){var t;if(e.subscriptionId&&e.guideId)return t=e.isResourceCenter?"/resourcecenter/":"/guide/","/api/s/"+vt(e.subscriptionId)+t+vt(e.guideId)+"/preview"}var of=function(e){var t;return Ea(e.origin)?(t=rf(e))?(t={url:e.origin+t+"?url="+vt(A.externalizeURL())+"&apiKey="+E.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),kr(t).then(function(e){return e.data.guide})):(_.info("Invalid guide url, exiting preview"),m.reject("invalid guide url")):(_.info("Invalid origin, exiting preview"),m.reject("invalid origin"))},af={load(e,t,n){return uf(e,n)},post(e,t,n,i){return uf(e,i)},endpoint(){return""},usesXhr(){return!0}};function sf(n,t){if(!Ea(n.origin))return _.info("Invalid origin, exiting preview"),m.reject("invalid origin");var e=rf(n);if(!e)return _.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=${vt(A.externalizeURL())}&apiKey=`+E.apiKey;n.childGuides&&n.childGuides.length&&(i+="&childGuides="+n.childGuides.toString()),Vh()&&(i+="&ignoreGuide=true");var e={url:i,withCredentials:!0},r=(n.headers&&(e.headers=n.headers),[]);return kr(e).then(function(e){var t,c,e=e.data;return Vh()?(t=nf(),r=t?Vh()?(C.each(t.guide.steps,function(t){let e=["domJsonpUrl","domUrl"];t.domUrl&&0===t.domUrl.indexOf("data:")&&(e=["domJson","contentJs","contentCss","content"]),C.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!==C.get(r,"[0].authoredLanguage")&&(t=r,c=n.language.value,C.forEach(t,function(d){C.forEach(d.steps,function(e){var{domHash:t,domJsonpHash:n,translationHash:i,originalDomJsonHash:r,originalDomJsonpHash:o,originalBuildingBlockHash:a,domHash256:s,domJsonpHash256:u}=C.get(d,"translationStates."+c+".stepTranslations."+e.id,{});e.domUrl=df(r,e.domUrl,".dom.json",s),e.domJsonpUrl=df(o,e.domJsonpUrl,".dom.jsonp",u),e.buildingBlocksUrl=df(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),of(t)):e}).then(function(e){e&&e.attributes&&e.attributes.isWatermark&&r.push(e),E.guidesPayload({id:t,lastGuideStepSeen:Zh(r,E.lastGuideStepSeen),guides:Jh(r)})})["catch"](function(e){return Xh(document,e),m.reject(e)})}function uf(e,t){var n=tf();return!n||!rf(n)||!(e=/[?&]id=(\d+)/.exec(e))||e.length<1?m.reject():sf(n,e[1]).then(t)}function df(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 cf=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=C.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}}}(),lf=h.getLocal();pf=De||He,hf="in-app-designer",ff="latest",y.leaderChanged.on(function(){mf({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||Vh()})});var pf,hf,ff,gf={launchDesigner:function(e){var t,n="latest",i="designer";rc(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%;}"),_f("designer-shims",pf+"/"+i+"/"+n+"/plugin.js"),E.DESIGNER_VERSION?If(n,i):t=window.setInterval(function(){E.DESIGNER_VERSION&&(If(n,i),clearInterval(t))},100)},launchInAppDesigner:Ef,localStorageNavigation:mf,launchOnToken:function(e){if(!xf(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(mt(e)))||{}}catch(t){return{}}}(e[1]),e=yf(t),n=Sf(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),Ef({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,gf.hostConfig.host)},isValidDesignerHost:vf,isValidTarget:wf,addCommunicationIframe:function(e,t){e=e||{};C.isFunction(t)||(t=C.noop);var n=Sf(e),e=bf(e),i=(new Date).getTime(),r=(gf.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=Cf(r,pf+"/"+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:pf},isDesignerFrame:xf,addScriptToPage:_f};function mf(e){if(!e.ignoreLocalStorageNavigation){var t,e=lf.getItem("pendo-navigation-state");if(e&&g.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(n){return}if(!t.apiKey||t.apiKey===cf.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},gf.launchInAppDesigner(e),!0}}}function vf(e){return!!e&&Ea(e)}function yf(e){var e=(e=e||{}).host||pf,t=vf(e),n=t?e:He;return e&&!t&&_.info("Invalid host, falling back to "+He),n}function bf(e){var e=(e=e||{}).gcsBucket||hf,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:hf;return t||_.info("Invalid bucket, falling back to "+hf),e}function wf(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 Sf(e){e=e||{};var t=f.get("enableCrossOriginIsolation")?"strict":ff,e=e.target||e.baseFolder||t,t=wf(e),e=t?e:ff;return t||_.info("Invalid target, falling back to "+ff),e}function Ef(e){if(!xf(window.name)&&!E.designerLaunched)if(f.get("disableDesigner"))_.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){}gf.crossFrameChannel===undefined&&(gf.crossFrameChannel=D,gf.useCrossFrameChannel=!0),Wa()&&a&&!e.allowChildFrame&&!e.selectionOnly?_.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):E.isReady()?(E.designerLaunchTime=(new Date).getTime(),a=yf(e=e||{}),r=bf(e),o=Sf(e),i=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+r+"/"+o+"/"+i,f.get("useAssetHostForDesigner")&&(n=oo(i)),gf.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:cf.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&&!C.isFunction(r),(o||a)&&(gf.addScriptToPage(t,n,i),E.designerLaunched=!0),!e.forceNativeDesigner&&C.isFunction(r)&&(r(t,n,i),E.designerLaunched=!0)):_.error("Unable to launch the designer, the agent has not been initialized. Please use `pendo.initialize` prior to launching the designer")}}function If(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+="__"+gf.windowCommunicationId,(t=Cf("pendo-designer-iframe",pf+"/"+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 Cf(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&Bo(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 _f(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&&C.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function xf(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(n){return!1}}Tf={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"},kf={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},(Af={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370}).FOOTER_HEIGHT=1.25*Af.HEADER_HEIGHT,Af.BODY_HEIGHT="calc(100% - "+Af.HEADER_HEIGHT+"px - "+Af.FOOTER_HEIGHT+"px)",Rf='<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>',(Of={})["#"+Tf.closeButton+":hover"]={"background-color":kf.GRAY_LIGHTER_6},Of["#"+Tf.launchButton+":hover"]={"background-color":kf.TEAL_DARKER+" !important"},Nf={PRIMARY_FONT:"Helvetica Neue"};var Tf,kf,Af,Rf,Of,Nf,Mf={listen:function(){return C.isFunction(document.addEventListener)?(document.addEventListener("keyup",Lf,!1),()=>{document.removeEventListener("keyup",Lf,!1)}):()=>{}},launchOnLocalStorageToken:zf,ids:Tf,removeElement:Uf,attemptToLaunch:Df,loadPluginJs:function(){var t;E.designerLaunched||(t=C.once(function(e){zf(e,!0)}),Ja(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}};function Lf(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&Df(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&Df(!1,!0)}function Pf(e,t){var n,i,r,o={"background-color":kf.WHITE,height:Af.MODAL_HEIGHT+"px","min-height":Af.MODAL_HEIGHT+"px",width:Af.MODAL_WIDTH+"px",position:"fixed",top:Af.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-Af.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=Ff("div",Tf.container,o);rc(f,Tf.style,C.reduce(C.pairs(Of),function(e,t){var n=t[0],t=t[1];return e+n+"{"+C.reduce(C.pairs(t),function(e,t){return e+t[0]+":"+t[1]+";"},"")+"} "},""),o),o.appendChild((t=t,r=Ff("div",Tf.header,{"background-color":kf.GRAY_PRIMARY,height:Af.HEADER_HEIGHT+"px","min-height":Af.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(i=Ff("div",Tf.logoContainer,{height:"38px",width:"44px","background-color":kf.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=Z(E).createHTML(Rf),r.appendChild(i),(i=Ff("div",Tf.title,{width:"100%",display:"flex","align-items":"center","font-family":Nf.PRIMARY_FONT,"font-size":"18px",color:kf.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=t?"VIA Designer":"Pendo Designer",r.appendChild(i),r)),o.appendChild(((t=Ff("div",Tf.body,{height:Af.BODY_HEIGHT,"min-height":Af.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":Nf.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=Ff("div",Tf.footer,{"align-items":"center","border-top":"1px solid"+kf.GRAY_LIGHTER_6,display:"flex",height:Af.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":Af.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(r=Ff("button",Tf.closeButton,{"border-radius":"3px",border:"none",height:Af.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":Nf.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(){Uf(Tf.container),Uf(Tf.commIframeId)},(t=Ff("button",Tf.launchButton,{"background-color":kf.TEAL_PRIMARY,"border-radius":"3px",color:kf.WHITE,border:"none",height:Af.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":Nf.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(){zf(n)},i.appendChild(r),i.appendChild(t),i)),document.body.appendChild(o)}function Ff(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),C.extend(e.style,n),e}function Df(t,n){var i,r,o;E.designerLaunched||(o=C.once(function(e){t||!n?zf(e):Pf(e,t),Gf()}),Ja(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),C.contains(e.host,"via")&&!e.visitorId&&(r=r||setInterval(function(){document.getElementById(Tf.commIframeId)&&Bf()},100))):Gf())}),gf.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){Bf(),i=window.setInterval(Bf,50)}))}function Uf(e){document.getElementById(e)&&document.getElementById(e).remove()}function Gf(){var e=document.querySelector("#"+Tf.commIframeId+'[src*="pendo"]');e&&e.remove()}function Bf(){var e=document.getElementById(Tf.commIframeId);e&&e.contentWindow&&C.isFunction(e.contentWindow.postMessage)&&e.contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:E.visitorId},C.get(E,"designerv2.hostConfig.host",He))}function zf(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),Uf(Tf.container),gf.launchInAppDesigner(n)}var jf=C.wrap(C.wrap(C.once(C.wrap(function(e){var t=m.defer();return Ta(e,function(){t.resolve()}),t.promise},function(e,t){return 0<C.size(_d._handlers.validateGlobalScript)?kr.get(t).then(function(e){return _d.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)}),Hf={initializeWatermark:function(e){e=C.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),Hf.watermarkGuides=e,e=C.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 C.find(Hf.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return C.find(Hf.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 qf=1e4;function Wf(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=qf){const n=m.defer(),i=at(32),r=(e=C.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,C.isFunction(n.close)&&n.close()}};function a(e){var t;r||(t=C.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=at(32),e=C.extend(e,{promiseId:t}));var t=m.defer();return o[e.promiseId]=t,a(C.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){_.critical("ERROR in cross frame channel",{error:n})}}}var Vf="frames/removeFrame";function Jf(e,t,n){return new Kf(e,t,n,(e=t,t=n,new(C.isFunction(e.MessageChannel)?$f:Zf)(e,t)))}function Kf(e,t,n,i){this.init(e,t,n,i)}C.extend(Kf.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=C.bind(this._frameConnectHandler,this),this._impl.onmessage=C.bind(this._fireMessageListeners,this),this._impl.onrelay=C.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){C.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===Vf)&&this._topMessageHandler(e)},_topMessageHandler(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===Vf&&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(C.bind(function(){this._connected||(0===t?C.isFunction(n)&&n.call(this):0<t&&this._connectToTop(Math.min(2*e,1e4),t-1,n))},this),e)},_addControlMessageHandler(){this._singletonMessageHandler.addEventListener(C.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()}});ki={_frameConnectHandler(e){C.isFunction(this.onconnect)&&this.onconnect(this._parseMessage(e))},_messageReceived(e){C.isFunction(this.onmessage)&&this.onmessage(this._parseMessage(e))},_relayMessage(e){C.isFunction(this.onrelay)&&this.onrelay(this._parseMessage(e))},_parseMessage(e){var t;return C.isString(e.data)?((t=C.pick(e,"type","origin","source","ports","lastEventId","target")).data=function(e){if(!C.isString(e))return e;try{return JSON.parse(e)}catch(t){return e}}(e.data),t):e}};function $f(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function Zf(e,t){this._window=e,this._frames={},this._isTop=e==e.top,this._singletonMessageHandler=t,this._boundMessageReceived=C.bind(this._messageReceived,this),this._isTop||(this._boundFrameConnectHandler=C.bind(this._frameConnectHandler,this),t.addEventListener(this._boundFrameConnectHandler))}C.extend($f.prototype,ki,{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)&&C.all(["addEventListener","start"],function(e){return C.isFunction(t[e])})&&((this._ports[e.data.frameId]=n).addEventListener("message",C.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",C.bind(this._messageReceived,this))},broadcast(t){C.each(this._ports,function(e){t.target!==e&&e.postMessage(t.data)})},postMessage(e){this._port&&this._port.postMessage(e),e.action===Vf&&this._window.top.postMessage(e,this._targetOrigin)},close(){C.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=C.bind(this._frameConnectHandler,this),this._port.addEventListener("message",this._boundFrameConnectHandler),this._port.start()},_closeChannel(){this._port&&C.isFunction(this._port.close)&&(this._port.close(),this._port=null,this._channel=null)}}),C.extend(Zf.prototype,ki,{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=C.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();C.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)}});Xf=window,Yf=Ea,eg=!(Qf=[]);var Xf,Yf,Qf,eg,tg={targetOrigin(){return eg?location.origin:"*"},secure(e){eg=e},addEventListener(e){0===Qf.length&&Xf.addEventListener("message",ng),Qf.push(e)},removeEventListener(e){e=Qf.indexOf(e);0<=e&&Qf.splice(e,1),0===Qf.length&&Xf.removeEventListener("message",ng)},close(){Xf.removeEventListener("message",ng),Qf.length=0}};function ng(t){eg&&!Yf(t.origin)||C.each(Qf,function(e){C.isFunction(e)&&e(t)})}function ig(e){if(!Ge.addEventListener)return{addEventListener:C.noop,postMessage:C.noop,close:C.noop};var t=!!window.__pendoExtensions;if(f.get("preferBroadcastChannel")&&!t&&C.isFunction(window.BroadcastChannel)){e.commit("frames/setChannelType","BroadcastChannel");t=function(e,o){const a=[];return e.removeEventListener=C.wrap(e.removeEventListener,function(e,t,n){var i,r=C.toArray(arguments).slice(1);return"message"===t&&0<=(i=C.findIndex(a,e=>e[0]===n))&&(r[1]=a[i][1],a.splice(i,1)),e.apply(this,r)}),e.addEventListener=C.wrap(e.addEventListener,function(e,t,n){var i,r=C.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=C.wrap(e.postMessage,function(e,t){return t.tabId=o.getTabId(),e.apply(this,C.toArray(arguments).slice(1))}),e}(new BroadcastChannel("pendo"),dn);if(t&&C.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),Jf(e,window,tg)}var rg="guides_blocked",og="Guides disabled: unreachable endpoint guide.gif";function ag(e){return JSON.parse(JSON.stringify(e))}class sg{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=()=>{_.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=()=>{_.warn("Error loading guide cache"),this.cacheGuidesPersistent=!1,this.db=null,n.resolve(this.cache)},e.onsuccess=e=>{e=e.target.result;C.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:ag(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=()=>{_.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=C.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 C.each(this.cache,e=>{e.expires>i&&e.visitorId===n?t.push(C.pick(e.guide,"id","lastUpdatedAt","language")):delete this.cache[e.guide.id]}),t}):m.resolve([])}get(e){if(this.cache&&this.cache[e])return ag(this.cache[e].guide)}clear(){this.cache={},this.db&&this.db.transaction(["guides"],"readwrite").objectStore("guides").clear()}}const ug=h.getLocal();var dg=[],cg="Guide was not shown because this visitor is in a control group of an active experiment for the guide";const lg=[];function pg(){var e=f.get("guideCssAssetPath");return e||oo("guide.css")}var hg="_pendo-guide_",fg="_pendo_g_",gg=0;function mg(e){gg=e}var vg=function(){return C.any(O,function(e){return e.isShown()})},yg=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"),Be()?9<Ce&&n.css({top:3}):8===Ce?n.css({top:9,right:2}):9===Ce?n.css({right:2,top:3}):9<Ce&&n.css({top:3}),e=k("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},bg=function(n){return C.reduce(O,function(e,t){return n(t)&&e.push(t),e},[])},wg=function(e,t,n,i,r,o){e=td(N(e),t);e&&(e.seenState=n,e.lastSeenAt=i,e.destinationStepId=o,r!==undefined)&&(e.dismissCount=r)},Sg=function(e){for(var t=new RegExp("^"+fg);e;){if(C.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function Eg(t){C.each(O,function(e){C.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var Ig=function(e){return e&&e.guideId};var Cg=function(e,t){var n,i;return Ig(e)&&(t=e,e=null),(n=t)&&C.isFunction(n.render)?t:t?(n=N(t.guideId))&&n.findStepById(t.id):(n=C.find(O,function(e){return e.isShown()}))?((i=e?Sg(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||_o("findStepForGuideEvent: step with id "+i):(t=C.find(n.steps,function(e){return e.isShown()}))||_o("findStepForGuideEvent: no step shown"),t):void 0},_g=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=pd(e);"tooltip"===e.type&&C.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):ju(n,t,Pg,!0)};function xg(e){return e.isLocked()&&(!e.elements||!e.elements.length||void xo('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}var Tg=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()},kg=function(e){e=C.get(e,"attributes.activation.selector",""),e=u(e);e.length<1||e[0].focus()},Ag=function(){var e=P.getResourceCenterBadge();e?e.element().focus():(e=P.getResourceCenter(),kg(e))},Rg=function(e){if(!E.designer&&e&&"building-block"===C.get(e,"attributes.type","")){var t=e.steps[0],n=t.seenReason,i=C.get(e,"launchMethod","").split("-"),r=C.contains(i,"dom"),o=C.contains(i,"badge"),i=Jg(e);if(C.get(t,"attributes.isAutoFocus")||i)switch(n){case"badge":o&&Tg(t);break;case"dom":r&&kg(e);break;case"launcher":Ag();break;default:return}}};function Og(e,t){return!e.isMultiApp&&("auto"===t||"repeatGuide"===t)}var Ng=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=Cg(e,t))&&t.id?xg(t)||("dismissed"===t.seenState?_.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(_.info("onGuideDismissed called",{contexts:["guides"]}),y.beforeDismiss.trigger(t).cancel?_.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(_g(t),e=t.id,n=N(s=t.guideId),i=(i=C.first(n&&n.steps))&&i.seenReason,o=n&&n.language,r=C.get(t,"dismissCount",0)+1,Yg(s,e,b(),i,o),o=v(),wg(s,e,"dismissed",o,r),(a=C.isFunction(t.getGuide)&&t.getGuide())&&a.attributes&&a.attributes.doNotResume||Jp({guideId:s,guideStepId:e,time:o,state:"dismissed",seenReason:i,visitorId:b(),dismissCount:r}),Og(n,i)&&tm(o,em.DISMISSED),t.hide(),Rg(a),vg()||(uh(),dh())))):uh()},Mg=function(e,t,n){var i,r,o,a,s,u,d,c;_.info("onGuideSnoozed called",{contexts:["guides"]}),(t=Cg(e,t))?"snoozed"===t.seenState?_.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):y.beforeSnooze.trigger(t).cancel?_.info("Guide snooze canceled during runtime in step: "+t.id):(n||(n=864e5,_.info("no snooze duration provided, defaulting to 1 day")),xg(t)||(_g(t),e=t.id,i=t.guideId,r=b(),o=N(i),a=o&&o.language,s=C.first(o&&o.steps),s=s&&s.seenReason,u=v(),_.info("snoozing guide for "+n+" ms"),d=u+n,t.snoozeEndTime=d,c=im({type:"guideSnoozed",guideId:c=i,stepId:e,visitorId:r,seen_reason:s,language:a,snooze_duration:n}),am(c),y.guideSnoozed.trigger(c),wg(i,e,"snoozed",u),o&&o.attributes&&o.attributes.doNotResume||Jp({guideId:i,guideStepId:e,time:u,state:"snoozed",seenReason:s,visitorId:b(),snoozeEndTime:d}),Og(o,s)&&tm(u,em.SNOOZED),t.hide(),Rg(o),vg())||(uh(),dh())):(_.info("missing step. can't snooze",{contexts:["guides","error"]}),uh(),_o("onGuideSnoozed: missing step"))},Lg=function(e){var t,n,i,r=(r=e&&e.step)||Cg(e);r?(i=e&&e.params,i=C.find(i,function(e){return"goToStepId"===e.name}),t=i&&i.value,(t=e&&e.destinationStepId?e.destinationStepId:t)?t===r.id?_.info("[goToStep] step id matches the current step",{contexts:["guides","error"]}):(i=N(r.guideId),(n=C.find(i.steps,function(e){return e.id===t}))?(n=C.indexOf(i.steps,n),i=C.indexOf(i.steps,r),e.steps=Math.abs(n-i),e.action=e.action||"goToStep",e.destinationStepId=t,i<n?Pg(e,r,!1):Fg(e,r)):_.info("[goToStep] guide has no step matching the step id",{contexts:["guides","error"]})):_.info("[goToStep] missing step id to go to",{contexts:["guides","error"]})):_.info("[goToStep] missing current step",{contexts:["guides","error"]})},Pg=function(e,t,n){if((s=ov())&&C.each(s.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=pd(e);"tooltip"===e.type&&C.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):ju(n,t,Pg,!0)}),1===arguments.length&&Ig(e)&&(s=Qu(e.guideId),i=Cg(),s)&&i&&C.first(s.steps).id===i.id&&C.last(s.steps).id===e.id&&(_.info("Cannot skip to last step from first step"),e=null),_.info("onGuideAdvanced called",{contexts:["guides"]}),(t=Cg(e,t))===e&&(e=null),t){if(!xg(t))if("advanced"!==t.seenState||n)if(y.beforeAdvance.trigger(t).cancel)_.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&&C.findIndex(r.steps,e=>t.id==e.id);if(e&&C.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],Qg(r.id,t.id,b(),t.seenReason,o,d!==a);var c=v();Jp({guideId:t.guideId,guideStepId:t.id,time:c,state:"advanced",seenReason:t.seenReason,visitorId:b()}),wg(r.id,t.id,"advanced",c,undefined,h)}return Pg(r.steps[s],t,!0)}var l,i=t.id,s=t.guideId,p=C.first(r&&r.steps),p=p&&p.seenReason,h=e&&e.destinationStepId,f=(h||(f=e&&C.isNumber(e.steps)&&1<e.steps?e.steps:1,h=(f=C.isNumber(a)&&r&&r.steps&&r.steps[a+f])&&f.id||null),h||_.info("missing destination step id"),_.info("advancing guide"),Qg(s,i,b(),p,o,n,h),_.info("update guide status"),r&&C.last(r.steps).id===i&&(l=C.get(t,"dismissCount",0)+1),(new Date).getTime()),g=(wg(s,i,"advanced",f,l,h),C.isFunction(t.getGuide)&&t.getGuide());g&&g.attributes&&g.attributes.doNotResume||Jp({guideId:s,guideStepId:i,time:f,state:"advanced",seenReason:p,visitorId:b(),destinationStepId:h,dismissCount:l}),Og(r,p)&&tm(f,em.ADVANCED),_.info("stop guide"),uh(),_.info("start guides"),dh()}else _.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else _.info("missing step. can't advance",{contexts:["guides","error"]}),uh(),_o("onGuideAdvanced: missing step")},Fg=function(e,t){var n,i,r,o,a,s;_.info("onGuidePrevious called",{contexts:["guides"]}),(t=Cg(e,t))?"advanced"===t.seenState?_.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):y.beforePrevious.trigger(t).cancel?_.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=C.indexOf(o.steps,t))&&(r="element"==t.advanceMethod?"click":"mouseover",a=pd(t),"tooltip"===t.type&&C.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):ju(a,r,Pg,!0),a=e&&C.isNumber(e.steps)?e.steps:1,r=C.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)||_.info("missing destination step id"),_.info("advancing guide"),Qg(n,t.id,b(),i,r,!1,o),_.info("update guide status"),a=(new Date).getTime(),wg(t.guideId,t.id,"advanced",a,undefined,o),(s=C.isFunction(t.getGuide)&&t.getGuide())&&s.attributes&&s.attributes.doNotResume||Jp({guideId:t.guideId,guideStepId:t.id,time:a,state:"advanced",seenReason:i,visitorId:b(),destinationStepId:o}),uh(),dh())):(uh(),_o("onGuidePrevious: missing step"))},Dg=function(e){var t;k("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",ro()+"/img/tiny-logo.png"),t=k(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:E.TOOLTIP_ARROW_SIZE}).append(t),Wu.push(t[0]),t.appendTo(e))};function Ug(e){return e&&e.attributes&&e.attributes.stayHidden}const Gg=(e,t,n)=>{var i;return _h()&&({id:e,guideId:i}=e,y.stepEligibility.trigger({stepId:e,guideId:i,eligible:t,reason:n})),t};var Bg=function(e){var t,n,i=C.partial(Gg,e);return Ug(e)?i(!1,"dismissed"):e.elementPathRule||"lightbox"!==e.type&&"whatsnew"!==e.type?e.triggerElementPathRule&&!la(u(e.triggerElementPathRule)[0])?i(!1,"trigger_element"):(t=pd(e),(n=e.targetElement)&&e.elementContainsRulesList&&!jg(n,e.elementContainsRulesList)?i(!1,"contains_rules"):(n="tooltip"===e.type||Pc.isBuildingBlockGuideRelativeToElement(e),e=la(t),n?e?i(e,"target_element_tooltip"):i(pa(t),"target_element_tooltip_scroll"):i(e,"target_element"))):i(!0,"")};function zg(e){var t=(k(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function jg(e,t){for(var n=zg(e),i=0;i<t.length;i++)if(!Hg(n,t[i]))return!1;return!0}function Hg(e,t){var n=t.matchType,i=t.matchValue,t=t.dataType,e=e||"";if("number"===t){var r=ht(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 qg=function(e){return fg+e.id},Wg=function(e){var t=e.element,n=C.first(k("#"+qg(e)));t&&n?la(t)||k.hasClass(n,"mouseover")?Ut(function(){Wg(e)},oh):e.hide&&(e.hide(),vg())||(uh(),dh()):t||!n||e.hide&&(e.hide(),vg())||(uh(),dh())},Vg=function(){return!1},Jg=C.partial(C.get,C,"attributes.resourceCenter"),Kg=function(t){var e;vg()&&(e=Cg(),_g(e),Jg(t)?(e=bg(Jg),(e=C.filter(e,function(e){return e.id!==t.id})).length&&g.dispatch("frames/hideGuides",C.pluck(e,"id"))):(Eg(),g.dispatch("frames/hideGuides")))},$g=function(e,t){return!(!e||!e.guideId||!(e=N(e.guideId)))&&(Kg(e),e.launch(t),e.isShown())},Zg=function(e,t,n,i,r,o){e=im({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&C.extend(e.props,{step_poll_types:o}),am(e),y.guideNotSeen.trigger(e)};var Xg=function(e,t,n,i,r,o){i||(_.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("-"),!C.contains(a,s))&&a.length?C.first(a):s);var a=im({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),s=(C.extend(a.props,o),am(a),v());Jp({guideId:e,guideStepId:t,time:s,state:"active",seenReason:i,visitorId:b()}),wg(e,t,"active",s),y.guideSeen.trigger(a)};function Yg(e,t,n,i,r){e=im({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});am(e),y.guideDismissed.trigger(e)}function Qg(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=im(e);am(t,null,o),y.guideAdvanced.trigger(t)}var em={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function tm(e,t){nm(e,t);var n={};n[t]=e,g.dispatch("frames/changeThrottlingState",n)}function nm(e,t){C.contains(C.values(em),t)&&(C.isFunction(e.getTime)&&(e=e.getTime()),E[t]=e,h.write(t,e,Wp),g.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function im(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),C.isString(a.language)||delete a.language,C.extend({guide_id:a.guideId,guide_step_id:a.stepId},C.omit(a,"type","guideId","stepId","visitorId"))),t=dn.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:jn(),browser_time:(new Date).getTime(),url:A.externalizeURL(),props:e});return y.eventCaptured.trigger(t),t}var rm=null,om=function(e){window.clearTimeout(rm),rm=Ut(Fm,e)},am=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-gg,zm(),Lm.push(e),om(t)},sm=function(e,t){return"dismissed"===e.state?null:N(e.guideId).nextStep(e,t||um())},um=function(){return E.normalizedUrl||dm(A.externalizeURL())},dm=function(e){try{var t=new Kn(e),n=C.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return _.error("Invalid URL provided to normalize"),e}},cm=function(e,t){return!me(e)||new RegExp(e).test(t)},lm=function(e,t){e=ed(e);return!!e&&(!(t=$g(C.first(e.steps),t||"api"))&&e.control&&_.info(cg),t)},pm=function(e,t){e=N(e);return!!e&&(!(t=$g(C.first(e.steps),t||"api"))&&e.control&&_.info(cg),t)};function hm(e,t){return t=parseInt(t,10),isNaN(t)||!C.isNumber(t)||!(C.isNumber(e)&&e<t)&&C.isNumber(e)?e:t}var fm,gm=function(){uh(),sh(),P.removeNotificationBubble(),Nh(),ds()};function mm(){uh(),Oo(),E.segmentFlags=[],E.doNotProcess=!0,g.commit("debugger/doNotProcess",!0),_.info("not tracking visitor due to 451 response")}function vm(e){fm&&(451===e.statusCode&&(mm(),fm.deferred.reject(e)),C.isString(e.id)&&e.id!==fm.id||(C.extend(E,e),E.guides=C.map(E.guides,function(e){return 1==C.keys(e).length&&e.id?Hm.get(e.id):(Hm.add(e,b()),e)}),fm.deferred&&fm.deferred.resolve(),fm=null))}var ym=function(o,a){var e,s=ao(),u=C.uniqueId(),d=m.defer();return fm={id:u,deferred:d},Ul()||((e=Gl())?(_.info("sending metadata: "+JSON.stringify(e),{contexts:["guides","metadata"]}),a.metadata=e):_.info("no metadata to send",{contexts:["guides","metadata"]})),Hm.list(a.visitorId).then(e=>{0<e.length&&(a.cachedGuides=e);var e=et(a),t={id:u,jzb:e,v:Ve,ct:(new Date).getTime()},n=(s&&a.accountId&&"ACCOUNT-UNIQUE-ID"!==a.accountId&&(t.acc=it(a.accountId)),_h()&&(t.debug=!0),Io(bm.endpoint(),o,t)),i=ms.get();let r;return r=2e3<n.length||!C.isEmpty(i)?(delete t.jzb,n=Io("guide.json",o,t),t=C.extend({events:e},i),bm.post(n,t,E,C.noop)):bm.load(n,E,C.noop),m.all([r["catch"](function(e){return 451===e.status&&mm(),m.reject(e)}),d.promise,(e=bm,i=o,"1"===(t=h.read(rg))?(_.info(og),m.resolve({success:!1,cached:!0})):"0"===t?m.resolve({success:!0,cached:!0}):(t=Io("guide.gif",i,{jzb:"eJwFwIEIAAAAwDDQd3-N1QABFQC5",ct:v(),v:Ve}),(e.usesXhr()?kr.get(t):To(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(rg,"0"):(_.info(og),h.write(rg,"1"))),!e.success)return m.reject()})})},bm=xd;function wm(e){e=C.find(e.steps,e=>e.pageId&&!e.regexUrlRule);return!e||(_.critical("pendo.io guide validation exception",{guideId:e.guideId,stepId:e.id,error:new Error("missing regexUrlRule for page "+e.pageId+'"')}),!1)}function Sm(n){return C.every(lg,e=>{try{return e(n)}catch(t){return console.debug("Error in guide processor",e,n.id),!1}})}function Em(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&C.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}var Im,Cm=function(){return!f.get("disableGlobalCSS")};function _m(e,t){var n=f.get("dropAnonymous");if(An(e)&&n)_.info("loading guides blocked for anonymous visitors due to dropAnonymous config setting being set to true"),C.isFunction(t)&&t("error: guides are blocked");else if("1"===h.read(rg))_.info("guide events are blocked, load guides cancelled"),C.isFunction(t)&&t("error: guides are blocked");else{if(ns(is()))return 1;_.info("bad url: probably local file system",{contexts:["guides","error"]}),C.isFunction(t)&&t("error: invalid url")}}var xm=function(e,a,s,u){var d=m.defer(),c=!1;if(e=e||E.apiKey,_m(a=a||b(),u)){_.info("loading guides for "+s+"...",{context:["guides"]}),s=A.externalizeURL(s);var n,t,l=xm.lastVisitorId!==a?C.noop:(i=O,(t=C.find(i,function(e){return C.isFunction(e.isRendered)&&e.isRendered()&&!e.isTopLevel}))?(n=C.chain(t.steps).filter(function(e){return e.isRendered()}).indexBy("id").value(),function(e){e=C.findWhere(e,{id:t.id});e&&!C.get(e,"attributes.doNotResume")&&C.each(e.steps,function(e){var t=n[e.id];!t||e.seenState&&"active"!==e.seenState||e.show(t.seenReason)})}):function(){}),i=(xm.lastVisitorId=a,sh(),g.commit("guideState/setLastGuideRequestAt",v()),{visitorId:a,accountId:jn(),url:s,oldVisitorId:Dn=Dn===undefined&&Rn()?qn(_n):Dn});const p=C.uniqueId();xm.reqId=p,ym(e,i).then(function(){if(!c&&!E.designer)if(xm.reqId!==p)d.resolve();else{y.deliverablesLoaded.trigger(),_.info("successfully loaded guides for "+s,{contexts:["guides"]}),E.designerEnabled&&"true"!==ug.getItem("pendo-designer-mode")&&Mf.loadPluginJs(),gm();var t=E.lastGuideStepSeen;if(t){g.dispatch("guideState/receiveLastGuideStepSeen",t),t.visitorId=a,g.dispatch("guideState/updateLastGuideStepSeen",t),g.commit("guideState/setLastGuideRequestAt",v()),Ju={};t=E.guides;var t=C.chain(t).map(Vd).filter(wm).filter(Sm).sortBy(Em).value(),n=(Xu(t),nd());g.dispatch("guideState/load",(r=Vp,o=f.get("crossAppGuideStorageSuffix"),h.read(r,!1,o))),g.dispatch("guideState/apply"),E.latestDismissedAutoAt=hm(E.latestDismissedAutoAt,h.read("latestDismissedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestDismissedAutoAt",value:E.latestDismissedAutoAt}),E.finalAdvancedAutoAt=hm(E.finalAdvancedAutoAt,h.read("finalAdvancedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"finalAdvancedAutoAt",value:E.finalAdvancedAutoAt}),E.latestSnoozedAutoAt=hm(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=$m(E.features);let e=m.resolve();E.globalJsUrl&&(e=jf(Kd(E.globalJsUrl))["catch"](function(e){_.error("Error loading global script: ",e)})),n.length?m.all([Mm(),e,Gm(t),Hf.initializeWatermark(t),Am(5e3)].concat((i=t,C.map(Tm,function(e){return e(i)})))).then(function(){xm.reqId===p&&(g.getters["frames/isLeader"]()&&l(O),y.guidesLoaded.trigger(),dh(),clearTimeout(Im)),C.isFunction(u)&&u(),d.resolve()},function(e){_.error("Post loadGuide request failed: ",e),y.guidesFailed.trigger(),d.reject()}):(y.guidesLoaded.trigger(),d.resolve())}else _.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");C.isNumber(e)&&(clearTimeout(Im),Im=Ut(function(){var e;e=d,gm(),e.reject(),c=!0},e))}else d.reject();return d.promise};var Tm=[];function km(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 Am=C.memoize(function(t,n,e){if(!Cm()||!Rm(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 Rm(e,t){return t&&t.designer||C.any(e,function(e){return!sd(e)&&C.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl||e.domJson)})})}const Om="_pendo-default-css_",Nm="_pendo-css_";function Mm(){var e=[];if(!Cm())return m.resolve();Rm(O,E)&&e.push(km(Om,pg()));var t=((E.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(km(Nm,Kd(t))):k("#"+Nm).remove(),m.all(e)}var Lm,Pm,Fm=function(e){Lm&&Lm.flush(e)},Dm=function(){return dg};function Um(e){var t=_s(js,Rs("visitor_id"),Rs("props.guide_id"),Rs("props.source"),zs,Hs(),Vs(e),Js,Ks,nu),n=_s(Ts,ks(e.cache),C.noop);return new su(C.extend({processSilos:t,packageSilos:n},e))}var Gm=function(e){return P.initializeResourceCenter(e)},D={postMessage:C.noop,close:C.noop};let Bm=D;function zm(e){return Lm=Lm||Um(C.extend({cache:dg,apiKey(){return E.apiKey},beacon:"guide",allowPost:!0,preferFetch:Ge.safari},e)),Pm=Pm||Um(C.extend({cache:[],apiKey(){return E.apiKey},beacon:"poll",allowPost:!0,preferFetch:Ge.safari},e)),as(Lm),as(Pm),()=>{Lm.clear(),Pm.clear(),ss(Lm),ss(Pm)}}function jm(e){var e=e["blockedURI"];e&&-1!==e.indexOf("/data/guide.json")&&f.get("cacheGuides")&&((e=f.getLocalConfig()).cacheGuides=!1,f.setLocalConfig(e),_r(window,"securitypolicyviolation",jm),iv())}let Hm;var qm=function(e){const t=[];t.push(zm({localStorageUnload:f.get("analytics.localStorageUnload")})),Hm=new sg(E.apiKey,f),Th.run(),t.push(Th.stop),y.appUnloaded.on(function(){g.dispatch("frames/leave")}),y.metadata.on(function(e){e=e.data[0].storeChanged;e&&!Ul()&&nv()}),y.identify.on(function(){nv()}),y.urlChanged.on(function(){nv(A.get())}),y.guideUpdateComplete.on(function(){var e,t,n;e=C.filter(O,e=>C.isFunction(e.outsideTimebox)&&e.outsideTimebox()),Yu.addGuide(e),Xd.processPrefetch(),e=O,t=Vu,f.get("disablePrefetch")||(t=C.keys(t)).length&&(n=C.indexBy(e,"id"),C.each(t,function(e){var e=n[e];e&&(e=C.first(e.steps))&&C.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=C.indexBy(e);C.each(Vu,function(e,t){n[t]||(e.hide(),delete Vu[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=Cr(e,o,t),s=Cr(e,"turbo:before-cache",n);return()=>{a(),s()}}(document,function(){A.get()===tv.lastUrl&&iv()},function(){gm()}));var n=f.get("guides.tooltip.arrowSize");if(C.isNumber(n)&&(E.TOOLTIP_ARROW_SIZE=n),Bm=ig(g),D=Wf(Bm,g),t.push(()=>D.close()),t.push(dn.tabIdChanged(function(){var e=dn.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(Cr(window,"focus",Kp)),e.push(Cr(window,"storage",function(e){g.dispatch("guideState/storageChanged",e)})),()=>C.each(e,function(e){e()})}()),t.push(()=>{Ym.cancel(),Ph.cancel()}),t.push(Cr(window,"resize",Ym)),t.push(Cr(window,"scroll",Ph,!0)),t.push(Cr(window,"gestureend",Qm,!0)),t.push(Cr(window,"securitypolicyviolation",jm)),t.push(function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];const t=[];for(var n=0;n<e.length;n++)t.push(Cr(document,e[n],ev));return()=>{C.each(t,function(e){e()})}}()),e.observing){const i=C.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(em.ADVANCED),h.registry.addLocal(em.DISMISSED),h.registry.addLocal(em.SNOOZED),h.registry.addLocal(rg,{duration:144e5}),ec.initialize(),()=>{Hm=null,tv.reset(),gm(),nv.reset(),xm.reqId=null,C.each(t,function(e){e()}),k("#"+Om).remove(),k("#"+Nm).remove(),ec.teardown()}},Wm=function(){return f.get("guides.disabled",!1)||f.get("disableGuides",!1)||!Eo},Vm=function(){return f.get("guides.delay",!1)||f.get("delayGuides",!1)},Jm=function(e){var t=f.getLocalConfig();t.disableGuides=e,f.setLocalConfig(t)},Km=function(e){var t=f.getLocalConfig();t.delayGuides=e,f.setLocalConfig(t)},$m=Jn(function(e){if(e&&e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n].featureRule,r=C.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}}),Zm=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},Xm=function(){_.debug("adjustActiveGuideOnResize firing");var e=ov();e&&e.step&&!E.ignoreResize&&e.step.redraw()};const Ym=C.debounce(function(){var e;-1<C.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=Zm())||e.id.indexOf("pendo-video-")<0)&&Ut(function(){Xm()},150):Xm(),Ph()},50),Qm=function(e){1!==e.scale&&Ym()};var ev=function(e){var t=C.get(document,"activeElement.id",""),e=C.get(e,"target.id","");C.filter([t,e],e=>-1<e.indexOf("pendo-video-")).length&&(Zm()?E.ignoreResize=!0:Ut(function(){E.ignoreResize=!1},1e3))};function tv(e){var t,n,i,r,o=b(),a=jn();e=e||A.get(),n=o,i=a,r=pl,!(t=e)||!E.apiKey||Wm()&&"true"!==ug.getItem("pendo-designer-mode")||t===tv.lastUrl&&n===tv.lastVisitorId&&i===tv.lastAccountId&&r===tv.lastMetadataHash||(tv.lastUrl=e,tv.lastVisitorId=o,tv.lastAccountId=a,tv.lastMetadataHash=pl,xm(E.apiKey,o,e)["catch"](C.noop))}tv.reset=function(){C.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){tv[e]=null})};var nv=function(e){Eo&&(nv.reset(),nv.pending=Ut(function(){delete nv.pending,tv(e)},0))};function iv(){tv.lastUrl=null,nv()}function rv(e){e=lg.indexOf(e);-1!==e&&lg.splice(e,1)}function ov(){var e,n,t=C.find(O,function(e){return e.isShown()});return!t||C.get(t,"attributes.resourceCenter.isModule")&&!(t=P.getResourceCenter())?null:(e=C.find(t.steps,function(e,t){return n=t,e.isShown()}),{guide:t,steps:C.filter(t.steps,function(e,t){return e.isShown()}),step:e,stepIndex:n})}function av(e){var t,n=C.get(e,"value","");-1!==C.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],C.forEach(e,function(e){"none"!==C.get(e,"style.display","none")&&t&&t.setAttribute("aria-labelledby",e.id)}))}nv.reset=function(){nv.pending&&clearTimeout(nv.pending)};var sv=function(){var o=this,a=(this.eventable=fn.call({}),this.eventable.on("pendoEvent",function(e){try{o.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";_.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:Pg(e,e.step);break;case a.previousStep:Fg(e,e.step);break;case a.goToStep:Lg(e);break;case a.submitPoll:this.submitPoll(e);break;case a.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;Mg(e,e.step,n);break;case a.dismissGuide:P.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return Ng();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return P.dismissResourceCenter(t);Ng(e,e.step)}(e);break;case a.showElements:this.setElementDisplay(e,"block"),e.srcElement&&av(e.srcElement),al((i=tc(e.step.domJson)).props.id,t),sl(i.props.id,t),M.flexAllThings(i.props.id,e.step),ol(i.props.id,t);break;case a.hideElements:this.setElementDisplay(e,"none"),al((i=tc(e.step.domJson)).props.id,t),sl(i.props.id,t),M.flexAllThings(i.props.id,e.step),ol(i.props.id,t);break;case a.slideElement:this.setElementAnimation(e);break;case a.showGuide:n=C.find(e.params,function(e){return"reason"===e.name});pm(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($u());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),Lg(e);break;case a.confirmation:this.confirmGuide(e);break;case a.conditionalSplit:this.handleConditionalSplit(e)}var r=sv.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(C.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=C.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(C.compact(n)):_.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(C.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);C.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=k(C.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=C.find(e.params,function(e){return"transition"===e.name}).value,e=C.find(e.params,function(e){return"left"===e.name}).value;t.style.transition=n,t.style.left=e},this.openLink=function(e){var t=C.find(e.params,function(e){return"url"===e.name}).value,e=C.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&Wa()&&(e="_top");window.open(t,e)},this.goToStep=Lg,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"})),C.isFunction(i[u].getAttribute)&&(e=i[u].getAttribute("data-_pendo-text-list-item-1").split(","),C.forEach(e,function(e){C.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 C.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():_.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=!C.get(e,"params.2.value.doNotDismiss");t&&Ng(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=C.find(n.steps,function(e){return e.id===i}))||n.steps[0],Kg(n),r.show("api")):t&&pm(e.params[0].value)}},this.handleConditionalSplit=function(t){var n,e=C.find(t.params,function(e){return"conditionType"===e.name}),i=C.find(t.params,function(e){return"config"===e.name}),r=C.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),e=C.find(r,function(e){return e.value===n}),0<(null==(i=null==e?void 0:e.actions)?void 0:i.length)?C.forEach(e.actions,function(e){e={action:e.action,params:e.parameters,step:t.step,srcElement:t.srcElement};o.eventHandler(e)}):_.warn("No matching case found for condition result:",n))},this.debounceAnnounceResults=C.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},uv=(sv.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&((sv.prototype.registeredActions=sv.prototype.registeredActions?sv.prototype.registeredActions:{})[e]=t)},function(){var s="guideActivity",u=function(){return(new Date).getTime()-gg},r=C.isObject,d=C.findWhere;const c=[];return{type:s,handler(e){var t,n=e.data[0],e=e.data[1];e=e,r(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if(C.isString(e.id)&&0===e.id.indexOf("pendo-base"))return!0;if(r(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return l(e)}(t)||function(e){return h(e)}(t)||function(e){return p(e)}(t))&&(e=function(e){var t=function(e){for(var t of c){t=t(e);if(t)return t}return ov()}(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=C.find($u(),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=h(e)||l(e)||p(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:Kr(e.props.href),target:e.props.target}];if(e.actions!==undefined)return C.map(e.actions,function(e){switch(e.action){case"automation":var t=d(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=d(e.parameters,{name:"url"}),n=d(e.parameters,{name:"target"});return{action:e.action,url:Kr(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=d(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=d(e.parameters,{name:"snooze_duration"}),t=d(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"advanceGuide":case"previousStep":case"submitPoll":case"dismissGuide":case"confirmation":return{action:e.action};default:return{}}});if("pendo_task_list_item"===t.templateName&&C.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 im({type:s,visitorId:b(),ui_element_id:i,ui_element_type:e.type,ui_element_actions:n,guideId:t.guide.id,stepId:t.step.id,duration:u(),language:t.guide.language})}(n))&&am(e)},registerGuideResolver(e){c.push(e)},removeGuideResolver(e){e=c.indexOf(e);-1!==e&&c.splice(e,1)}};function l(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-button/.test(e.id))?{type:e.tag,id:e.id}:i(e)||!r(e.parentElem)?null:l(e.parentElem)}function p(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)||!r(e.parentElem)?null:p(e.parentElem)}function h(e){return"A"===e.tag?{type:e.tag,id:e.id}:i(e)||!r(e.parentElem)?null:h(e.parentElem)}function i(e){return C.isString(e.id)&&0===e.id.indexOf("pendo-guide-container")}}()),dv=[],cv=!(sv.deregisterAction=function(e){e&&"string"==typeof e&&delete(sv.prototype.registeredActions=sv.prototype.registeredActions?sv.prototype.registeredActions:{})[e]});const lv={agent:{getJwtInfoCopy:ms.get,treatAsAdoptPartner:ao},agentStorage:h,analytics:{ptm:()=>Ds,collectEvent:Is},attachEvent:l,ConfigReader:f,Events:y,EventTracer:dn,EventRouter:sv,Extensions:{API:{addTopic:function(e,t){var n=jl[e]||{};C.extend(n,t),jl[e]=n}}},frames:{getChannel:()=>Bm},getAssetUrl:oo,getEventable:()=>fn.call({}),GlobalRuntime:{addGlobalScript:ec.addGlobalScript,removeGlobalScript:ec.removeGlobalScript},GuideActivity:uv,GuideLoop:{addUpdatePhase:wh,removeUpdatePhase:Sh},guides:{addProcessor:function(e){return lg.push(e),C.partial(rv,e)},removeProcessor:rv,registerDisplayableGuides:function(e,t){C.isArray(t)&&(Ju[e]=t)},removeDisplayableGuides:function(e){delete Ju[e]}},hosts:{SERVER:He},NodeSerializer:ku,q:m,sessionStorage:h.getSession(),sizeElements:il,store:g,Tombstone:Yu,transmit:{buildBaseDataUrl:Io,fetchKeepalive:ko,sendBeacon:Ao},log:_,util:{trim:Xe,base64EncodeString:it,parseUrl:Ia,addInlineStyles:C.partial(rc,f),getNow:v},constants:{URL_MAX_LENGTH:2e3}};function pv(t){C.find(dv,function(e){return e.name===t.name})?_.warn(`Plugin with name ${t.name} already exists. Skipping registration.`):(dv.push(t),cv&&t.initialize(E,lv))}function hv(){C.each(dv,function(e){C.isFunction(e.teardown)&&e.teardown(E,lv)}),cv=!1}Jl.registerExtensionsByUse("plugin",function(e){return C.extend(e.uri,C.pick(e,"name")),pv(e.uri),e},function(e){return!!e.uri.initialize&&!!e.uri.teardown});var fv=!1;function gv(){fv||(y.identify.on(function(e){var t,n,e=e.data[0];n=(t=e).old_visitor_id,t=t.visitor_id,(An(n)?kn(t)?An(t)?(_.info("Visitor is anonymous: "+t),1):Mn(t)?(_.info("Visitor id is the default: "+t),1):(_.info("Re-mapping visitor identity from "+n+" to "+t),0):(_.info("Not valid visitor id: "+t),1):(_.info("Visitor is already identified: "+n),1))&&(n=(t=e).old_account_id,t=t.account_id,kn(t)?n===t||(_.info("Re-mapping account identity from "+n+" to "+t),0):(_.info("Not valid account id: "+t),1))||(Is("identify",e),ds())}),y.metadata.on(function(e){var t;Ul()||({options:e,hashChanged:t}=e.data[0],t&&(Is("meta",e),ds()))}),y.identify.on(zl),fv=!0)}mv="guideActivity",vv=function(){return(new Date).getTime()-gg},yv=C.isObject;var mv,vv,yv,bv={type:mv,handler(e){var t,n=e.data[0],e=e.data[1];e=e,yv(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(yv(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return Ev(e)}(t)||function(e){return wv(e)}(t)||function(e){return Sv(e)}(t))&&(e=function(e){var t=P.getResourceCenter();if(t){var n=t.activeModule,i=Ev(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=wv(e)||Sv(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),im({type:mv,visitorId:b(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,duration:vv(),language:i.language})}}(n))&&am(e)}};function wv(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&&yv(e.parentElem)?wv(e.parentElem):null}function Sv(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&&yv(e.parentElem)?Sv(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 Ev(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&&yv(e.parentElem)?Ev(e.parentElem):null}const Iv=e=>(e=e||E).doesExist(e.apiKey);class Cv extends yt{constructor(){super(),this.cache=new Set,this.foundShadowRoots=!1,this.stoppedSearchEarly=!1}updateCache(){this.cache.forEach(e=>{Xo(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)}triggerAttachShadow(e){this.cache.add(e),this.dispatchEvent({type:"attachShadow",shadowRoot:e})}findShadowRoots(r,o=5e3){if(C.isFunction(r.createNodeIterator)){let t=0,n=[$o(r)],i;function a(e){do{if(!(e=e||r.createNodeIterator(n.pop(),NodeFilter.SHOW_ELEMENT))||!e.nextNode)break;for(;(i=e.nextNode())&&(t++,i&&i.shadowRoot&&(this.triggerAttachShadow(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,a.call(this,e)},50)),t!==o||this.foundShadowRoots||(this.stoppedSearchEarly=!0)}a.call(this)}}teardown(){this.cache.clear(),C.isFunction(this.unpatchAttachShadow)&&(this.unpatchAttachShadow(),this.unpatchAttachShadow=null),this.findTimeout&&(clearTimeout(this.findTimeout),this.findTimeout=null)}}class _v extends yt{constructor(e=dt("MutationObserver")){super(),this.ObserverClass=e,this.observing=!1,this.observers=new Map,this.triggerMutation=this.dispatchMutationEvent,this.shadowDom=new Cv,this.shadowDom.addEventListener("attachShadow",C.bind(this.handleAttachShadow,this)),this.shadowDom.addEventListener("detachShadow",C.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=C.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 xv=new _v;let Tv=0;const kv="initializeImmediately",Av=[],Rv=Jn(function(e){if("complete"===document.readyState||C.get(e,kv)||f.get(kv))if(_.info("pendo.initialize called with "+JSON.stringify(e)),E.apiKey)1==Tv++&&_.info(["pendo.initialize only needs to be called once",ut()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join(""));else{if(e=e||{},C.isEmpty(ms.get())&&(o=ms.getJwtOptions(e,"initialize"))&&(ms.set(C.pick(e,"jwt","signingKeyName")),C.extend(e,o,{forceAnonymous:!0})),C.isString(e))return kr.get(e).then(e=>(le(d=e.data),Rv()));try{g.dispatch("location/init",e.location||{})}catch(a){_.critical("Location API Exception",a)}f.setLocalConfig(e),io(),E.HOST=Yr;var t,n,i,r,o=f.get("cookieDomain");if(o&&(o=o,i=location.host,o?C.isString(o)&&(i=i.replace(/:\d+$/,""),o=o.replace(/^\./,""),t=new RegExp("\\."+St(o)+"$"),n=new RegExp("^"+St(o)+"$"),t.test(i)||n.test(i))&&(At="."+o):At=o),cf.discoverKeys(e),cf.getApiKey()){g.commit("metadata/setMetadata",{selfHosted:Dl()}),e.logStackTraces&&(E.logStackTraces=e.logStackTraces),f.get("preferBroadcastChannel")&&tg.secure(!0);const s=f.get("analytics.localStorageUnload");ws.read(h),Av.push((t={localStorageUnload:s},Ps=rs.events=$a,Fs=rs.trackEvents=Za,Bs=rs.agenticEvents=Xa,Ds=uu(C.extend({cache:Ps,silos:rs.silos,apiKey:Co,beacon:"ptm",allowPost:!0},t)),Us=uu(C.extend({cache:Fs,silos:rs.trackEventSilos,apiKey:Co,beacon:"ptm",allowPost:!0,params:{type:"track"}},t)),Gs=uu(C.extend({cache:Bs,silos:rs.agenticEventSilos,apiKey:Co,beacon:"agentic","class":"agentic",allowPost:!0},t)),as(Ds),as(Us),as(Gs),()=>{ps(),ss(Ds),ss(Us),ss(Gs),Ds=Us=Gs=undefined})),xv.initialize(E,lv),Av.push(()=>xv.teardown()),Eo&&(h.registry.addLocal(Cn),h.registry.addLocal(_n),h.registry.addLocal(xn),h.registry.addLocal(Ol),E.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,Av.push(Id(y)),[{events:i=[]}]=[e],C.each(i,(e,t)=>{_d[t]&&_d[t](e)}),Av.push(qm(xv)),gv(),Av.push(Uu()),Av.push((C.each(dv,function(e){e.initialize(E,lv)}),cv=!0,hv)),Av.push((n=e,h.registry.addLocal(Dh),h.registry.addLocal(Uh),C.find([C.partial(gf.launchOnToken,window.location),C.partial(Gh,window),C.partial(gf.localStorageNavigation,n)],e=>e()),n.enableDesignerKeyboardShortcut||!f.get("disableDesignerKeyboardShortcut")?Mf.listen():()=>{})),y.appUsage.on(uv.handler),y.appUsage.on(bv.handler),Av.push(cs(Ya))),y.appHidden.on(()=>{us(0,{hidden:!0})}),y.appUnloaded.on(()=>{us(0,{unload:!0}),s&&ws.write(h)}),Rn()||On(),E.updateOptions(e),e.visitorId&&e.visitorId!=Nn&&E.identify(e.visitorId),Av.push(A.watch(function(){E.pageLoad()})),Eo&&y.ready.trigger(),du(A.get()),Tv++,window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&((r=tg.targetOrigin())?window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},r):_.warn("Unable to announce frame to designer plugin, targetOrigin is not set. Check if broadcastChannel is enabled and cross origin frames are allowed.")),Mv()}else _.debug("API key is not set, Pendo will not initialize.")}else ae(E,"initialize",arguments)});function Ov(e){return!C.isArray(e)||C.isEmpty(e)}function Nv(e){if(!Ov(e))return C.find(e,e=>"initialize"===e[0])}function Mv(i){var e;return!Ov((i=i||E)._q)&&(e=!!Nv(i._q),Iv(i)||e)?(e=i._q.splice(0,i._q.length),C.reduce(e,(e,t)=>{if(!C.isArray(t))return e;const n=i[t.shift()];return C.isFunction(n)?e.then(()=>n.apply(i,t)):e},m.resolve()).then(Mv)):m.resolve()}function Lv(){Iv()?_.info("already running"):(window.pendo_options&&Rv(window.pendo_options),Mv())}function Pv(){y.appHidden.trigger(),y.appUnloaded.trigger(),C.each(Av,function(e){e()}),du.reset(),Av.length=0,tg.close(),fn.clear(y),fn.clear(_d),delete E.apiKey,Tv=0}var Fv,Dv,Uv={getActiveGuide:ov,smartNextStep:function(e){var t,n=ov();n&&(t=n.guide.steps[n.stepIndex+1],Ut(function(){var e=u(t.elementPathRule);0!==e.length&&C.some(e,la)?Pg(n.step):Pg(t)},e=e||0))},smartFirstStep:function(){k("._pendo-guide_").css("display:none;");var t=um(),e=ov().guide.steps,n=C.filter(C.rest(e),function(e){return!!e.pageId}),n=C.indexOf(e,C.find(n,function(e){return cm(e.regexUrlRule,t)}));_.info("startingPoint is "+n),-1==n?k("._pendo-guide_").css("display:block;"):(n=e[Math.max(0,n-1)],_.info("found starting step to be "+n.id),Pg(n))},advanceOn:function(e,t){var n=ov(),i=k(t=t||n.step.elementPathRule)[0],r=function(){Pg(),ju(i,e,r,!0)};l(i,e,r,!0)},renderStepPosition:function(e,t,n){if(t)n||(i=[].concat(t.steps).reverse(),n=C.findWhere(i,{seenState:"active"}));else{var i=ov();if(!i)return;t=i.guide,n=i.step}return(e=C.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=tc(e),a=C.get(r,"attributes.resourceCenter");a&&(P.revertRtlChanges(r,e.props),e=P.updatePseudoStyleSelectors(e));var s=a&&P.isFullyCustom(r),u="AnnouncementsModule"===C.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.containerId=o&&o.props&&o.props.id,n.element=pd(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=C.get(r,"attributes.embedConfig",null);d=Hf.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=cd(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)))})(cd(),o[0],n.id),il(o),c&&Pc.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":Pc.attachBBAdvanceActions(n);c&&!d&&Pc.positionStepForTooltip(n,e,t[0]);{var f;a&&(P.showHomeViewOrEmptyState(r),f=[],u?f=[r.attributes.resourceCenter]:U.flexAllThings(n.containerId,n),f.length)&&C.forEach(f,function(e){e=C.get(e,"children",[]);C.forEach(e,function(e){var t;e&&(t=e.steps[0],C.isUndefined(t.attributes.imgCount))&&(t=C.get(t,"id",n.id),e=C.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||(C.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=So(t=e),n=jo(),C.extend(n,{top:0,left:0,bottom:n.height,right:n.width}),Qo(n,t)||ha(e),e.focus(),e===k.getRootNode(e).activeElement)},i={maxRetries:100,delay:50,exponentialBackoff:!1};pt(function(){var e,t,n,i,r=k(o).find("#pendo-guide-container");return(r=r[0]||r)&&la(r)&&(e=r,t=C.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){pt(function(){return n(e)},i,function(){},function(){_.warn(t+"#pendo-guide-container is available on page but could not capture focus")})},function(){_.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=C.toArray(e.find(t))).length)&&(a=o[0],s=o[o.length-1],t=jv(e),u=t[0],d=t[1],n=function(e){var t,n,i=Gv(e),r=e.shiftKey;i&&(t=(i=k.getRootNode(c).activeElement)===c,n=document.activeElement===document.body,r?(i===u||t||n)&&(zv(o,s).focus(),e.preventDefault()):(t||i===d||n)&&(zv(o,a).focus(),e.preventDefault()))},l(document,"keyup",n),l(document,"keydown",n),y.one("unmounted",()=>{ju(document,"keyup",n),ju(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]=jv(k(u));var t=function(e){var t=Gv(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(ua);function o(t){return Object.values(a).findIndex(e=>e===t)}n?r?(i.focus(),e.preventDefault()):t&&Bv(0===(n=o(d))?a.length-1:n-1,a,e):t?Bv(o(i)+1,a,e):r&&Bv((n=o(c))>=a.length-1?0:n+1,a,e)}}},n=function(e){var t=Gv(e),n=e.shiftKey;t&&!n&&Bv(0,k('[id^="pendo-g-"]').find(ua),e)},i=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=d&&t&&Bv((n=k('[id^="pendo-g-"]').find(ua)).length-1,n,e)};l(document,"keyup",t),l(document,"keydown",t),l(e,"keydown",n),l(e,"focus",i),y.one("unmounted",()=>{ju(document,"keyup",t),ju(document,"keydown",t),ju(e,"keydown",n),ju(e,"focus",i)})}}},addAriaHiddenOutsideGuide:function tS(e,n=[]){if(!e||e===$o())return n;const t=Zo(e);C.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&&tS(e.parentNode,n);return n},renderResourceCenterModule:P.renderResourceCenterModule,buildNodeFromJSON:Cl,attachImgLoadHandlers:_l,recalculateGuideHeightOnImgLoad:xl,buildStyleString:function(e){var n="";return C.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:kl,bindActionToNode:Tl,recalculateGuideHeight:ol,recalculateGuideWidth:al,adjustGuideContentWidth:sl,findDomBlockInDomJson:nc,isElementHiddenInGuide:M.isElementHiddenInGuide,positionStepForTooltip:Pc.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(C.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:xc,buildNodesFromJSON:Sl,findGuideContainerJSON:tc,maintainAspectRatios:M.maintainAspectRatios,sizeElement:rl,sizeElements:il,getAllowedAttributes:Il,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:Pc.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:av,addVideoLoadListener:function(e,t){l(t,"load",function(){e.removeAttribute("data-pendo-video-loading")})}};function Gv(e){return"Tab"===e.key||9===e.keyCode}function Bv(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function zv(e,t){let n;if("radio"===t.getAttribute("type")){const i=t.getAttribute("data-pendo-poll-id");n=C.find(e,function(e){var t=e.getAttribute("data-pendo-poll-id");return i===t&&e.checked})}return n||t}function jv(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:C.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:C.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 Hv=100,qv=[],Wv=[];const Vv="log-enabled",Jv="active-contexts";var Kv=function(){return Xv()?Dv?"logging already enabled":(h.write(Vv,"true"),Dv=!0,"logging enabled"):"logging unavailable"},$v=function(){return Dv?(h.write(Vv,"false"),Dv=!1,"logging disabled"):"logging already disabled"};var Zv=function(e,t){return C.compact([].concat(e,t))},Xv=function(e){return e=e||"log","undefined"!=typeof console&&C.isFunction(console[e])},Yv=function(e){return e=Zv(e),0<Fv.length?0<C.intersection(Fv,e).length:!!Dv||!!_h()},Qv=function(e,...t){_.info(e,{contexts:t})};function ey(e){var t;e.level!==gt.Debug&&e.level!==gt.Info||(t=e.attributes?Zv(e.attributes.contexts):[],Xv()&&Yv(t)&&ay(e.message),ny(qv,e.message,t))}function ty(...e){Xv("error")&&console.error.apply(console,e),ny(Wv,e.join(" "))}var ny=function(e,t,n){C.contains(n,"debug")||(e.length==Hv&&e.shift(),e.push([t,n]))},iy=function(t){t=Zv(t),C.each(C.map(C.filter(qv,function(e){return 0===t.length||0<C.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){ay(e,"[Pendo-History] ")})},ry=function(){return C.union.apply(C,C.map(qv,function(e){return e[1]}))},oy=function(e){Fv=Zv(e),h.write(Jv,Fv.join(","))},ay=function(e,t){var n;Xv()&&(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 sy({type:t,name:n,props:i}){if(n&&C.isString(n))if(t&&C.isString(t)){let e=i;C.isObject(i)||(e={__err__:i});i=A.get();Is(t,e,i,n)}else _.error("Must provide valid type string for event tracking");else _.error("Must provide valid name string for event tracking")}function uy(e,t){sy({type:"track",name:e,props:t})}function dy(e,t){sy({type:e,name:"agentic",props:t})}Qv.init=function(){var e,t;e=h.read(Jv,!0),Fv=e?e.split(","):[],e=je,t=h.read(Vv,!0),Dv=null!==t?"true"==t:!C.contains(["prod","prod-eu","prod-us1","prod-jp","prod-hsbc","prod-au","prod-gov","rc"],e),_.addEventListener("log",ey),h.registry.addLocal(Vv,{isPlain:!0}),h.registry.addLocal(Jv,{isPlain:!0})},Qv.enableLogging=Kv,Qv.disableLogging=$v,Qv.getActiveContexts=function(){return Fv},Qv.setActiveContexts=oy,Qv.showLogHistory=iy,Qv.getLoggedContexts=ry;var cy=function cy(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=(An(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"),Mn(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),jn()),t=(e||a("warn","The current visitor is not associated with an account. Is this expected?","noVisitorInAccount"),"ACCOUNT-UNIQUE-ID"===e&&a("error","The current account ID matches the example account ID from the Pendo installation instructions.","exampleAccountId"),f.get("disableCookies")&&a("warn","Cookies are disabled in Pendo config. Is this expected?","disableCookies"),Gl());if(C.each(["visitor","account","parentAccount"],function(n){var i=t&&t[n],e=C.chain(i).keys().value();0<e.length?(r||console.group(n+" metadata (does this look right?):"),0<(e=C.chain(e).map(function(e){return e.toLowerCase()}).countBy().pick(function(e){return 1<e}).keys().value()).length&&C.each(e,function(e){a("warn","Keys will be lowercased and any duplicates overwritten. Please choose unique key names for:",n+"MetadataConflict",e)}),C.each(C.keys(i),function(e){var t=i[e];C.isObject(t)&&!C.isArray(t)?a("warn",e+" is an object and will be ignored.",n+"Metadata",t):C.isArray(t)&&C.any(t,C.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()},ly=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:Xt.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=(C.each(e,function(e){var n=e.nativeType,i=[],t=e.propsToCheck||Object.getOwnPropertyNames(n);C.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"),C.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())},py=function(e){var t=[];if(C.isNumber(window.frames.length)&&C.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:"),C.each(t,function(e){console.warn(e)}),console.groupEnd()}},hy=function(e){var t,n=window.location.href,i=[];try{(t=Dr())!==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),C.each(i,function(e){e.method?console[e.method](e.msg+"\n"+e.value):console.warn(e.msg+"\n"+e.value)}),console.groupEnd()};const fy=e=>{if(0<Wv.length){var t=[].concat(Wv);if(e)return t;console.group("Agent Error History"),C.each(t,(e,t)=>{console.log("Error History ",t,e)}),console.groupEnd()}},gy=e=>{t=e;var t,n=C.map(dv,function(e){return e.validate&&!t&&e.validate(E,lv),e.name});if(e)return n;console.group("Active Plugins"),C.each(n,e=>console.log(e)),console.groupEnd()};var my=function(e){var t={install:cy(e),plugins:gy(e),globals:py(e),url:hy(e),errors:fy(e)};if(e)return t.methods=ly(e),t;f.validate(console)},vy={BuildingBlockGuides:U,BuildingBlockResourceCenter:P,BuildingBlockTemplates:oc,BuildingBlockTooltips:Pc,BuildingBlockSvgs:cc};function yy(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=C.compose(C.bind(this.afterJobRun,this),C.bind(this.doJob,this),C.bind(this.shouldJobRun,this))}yy.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},yy.prototype.stop=function(){clearTimeout(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var by=kr.urlFor,wy={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace","Clear","AddTo"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};function Sy(e,t,n){var i;if(C.isObject(e)&&(t=e.action,n=e.data,e=e.attr),!wy[e])throw i=C.keys(wy).join(", "),new Error('Invalid URL attribute type: "'+e+'". Valid attributes are: '+i+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!C.contains(wy[e],t))throw i=wy[e].join(", "),new Error('Invalid transform action: "'+t+'" for attribute "'+e+'". Valid actions for "'+e+'" are: '+i+'. Example: {attr: "'+e+'", action: "'+wy[e][0]+'", data: ...}');this.attr=e,this.action=t,this.data=n}function Ey(e){return e instanceof Kn||e instanceof HTMLAnchorElement}Sy.prototype.applyToURL=function(e){return{AllowOnlyKeys(e,t,n){C.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Kn(Xr(t,null,n,!1))},ExcludeKeys(e,t,n){C.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Kn(Xr(t,null,n,!0))},AddTo(e,t,n){var i;return C.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 Kn(by(t,n)))},Clear(e,t){return"pathname"===t?e.pathname="/":e[t]="",e},Replace(e,t,n){return C.isFunction(n)&&(n=n(e[t],e)),"href"===t?new Kn(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)},Sy.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},Sy.fromJSON=function(e){if(e instanceof Sy)return e;if(!C.isObject(e))throw new Error("UrlAttrTransform.fromJSON expects an object. Received: "+typeof e+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!e.attr)throw t=C.keys(wy).join(", "),new Error('UrlAttrTransform is missing required "attr" property. Valid attributes are: '+t+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!e.action)throw t=wy[e.attr]?wy[e.attr].join(", "):"AllowOnlyKeys, ExcludeKeys, AddTo, Replace, Clear",new Error('UrlAttrTransform 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(!wy[e.attr])throw t=C.keys(wy).join(", "),new Error('Invalid attribute "'+e.attr+'". Valid attributes are: '+t+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!C.contains(wy[e.attr],e.action))throw t=wy[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: "'+wy[e.attr][0]+'", data: ...}');var t;if(C.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||C.isArray(e.data)||C.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(!C.isString(e.data)&&!C.isObject(e.data)&&!C.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(!C.isObject(e.data)&&!C.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 Sy(e.attr,e.action,e.data)}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 UrlAttrTransform: "+n.message+". Transform object: "+JSON.stringify(e))}};Iy=function(t,n,i,r){return[new Sy("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new Sy("href","ForceSecure")]},Pi={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:Cy=function(){var e=Fr(),t=A.isElectron()?Iy(A.electronAppName(),A.electronResourcesPath(),A.electronUserDirectory(),A.electronUserHomeDirectory()):[];return ky([].concat(t),e)}},_y=new yy(500,function(e){!Iv()||cu(document)||du()}),xy=function(e){if("string"==typeof e)return new Kn(e);if(Ey(e))return e;throw new Error("Invalid type from custom URL source. Must be either an URL or a String of a valid url.")},Ty=function(e){return e||window.location},ky=function(e,t){return C.reduce(e,function(e,t){return t.applyToURL(e)},t)};var Iy,Cy,_y,xy,Ty,ky,Ay,e={state:Pi,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){C.each(e,function(e){t.commit("addTransform",Sy.fromJSON(e))})},addInternalTransforms(t,e){C.each(e,function(e){t.commit("addInternalTransform",Sy.fromJSON(e))})},removeInternalTransforms(t,e){C.each(e,function(e){t.commit("removeInternalTransform",Sy.fromJSON(e))})},startPolling(e){_y.start()},stopPolling(e){e.state.currentSrcFn===Cy&&_y.stop()}},mutations:{addTransform(e,t){e.transforms.push(t)},addInternalTransform(e,t){e.internalTransforms.push(t)},removeInternalTransform(e,t){t=C.indexOf(e.internalTransforms,t);0<=t&&e.internalTransforms.splice(t,1)},clearTransforms(e){e.transforms=[]},clearInternalTransforms(e){e.internalTransforms=[]},changeUrlSource(e,t){if(t){if("string"==typeof t)var n=new Kn(t),n=C.partial(C.identity,n);else if(Ey(t))n=C.partial(C.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,_y.start(!Iv())}else e.currentSrcFn=Cy,_y.stop()}},getters:{url:Ay=function(e){try{var t=function(e){return n=e},n=C.reduce([e.currentSrcFn,xy,t,C.partial(ky,e.transforms),xy,t,C.partial(ky,e.internalTransforms),xy],function(e,t){return t(e)},null)}catch(i){_.critical(i),n=Ty(n)}return n},href(e){return Ay(e).href}}};function Ry(e){var t;if("function"==typeof Ry[e])return t=C.toArray(arguments).slice(1),Ry[e].apply(Ry,t)}C.extend(Ry,{getHref(){return g.getters["location/href"]()},clearTransforms(){g.commit("location/clearTransforms"),du()},addTransforms(e){g.dispatch("location/addTransforms",e),du()},setUrl(e){g.commit("location/changeUrlSource",e)},useBrowserUrl(){g.commit("location/changeUrlSource"),du()}});function Oy(){return f.get("guideSeenTimeoutLength")||1e4}Ny=[];var Ny,My={name:"StepTimeoutMonitor",initialize(){this._beforeGuideShow=C.bind(My.beforeGuideShow,My),this._stop=C.bind(My.stop,My),y.beforeGuideShow.on(this._beforeGuideShow),y.guideSeen.on(this._stop),y.guideNotSeen.on(this._stop)},teardown(){My.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<C.indexOf(["dom","launcher","badge","api"],e),"active"===t.seenState||t.hasBeenControlled()||t.isTimedOut()||(n=n&&n.steps)&&(0!==C.indexOf(n,t)||e)&&My.start(t))},start(e){var u,t,n=Ny[0];n&&n===e.id||(n&&n!==e.id&&(n=Ny[1],C.isFunction(n))&&n(),e.shouldStartTimer()&&(u=Oy(),n=C.partial(function(e,t){var n,i,r,o,a,s=N(t);s&&(n=s.findStepById(e))&&!s.isShown()&&(a=n.canShowOnPage(um())?Bg(n)?"other":"element":"page",i=t,r=e,o=b(),a=a,s=s.language,i=im({type:"guideTimeout",guideId:i,stepId:r,visitorId:o,seen_reason:a,language:s,guideSeenTimeoutLength:u}),am(i),y.guideTimeout.trigger(i),_.info("Guide "+t+" timed out showing Step "+e),n.timeout()),My.stop()},e.id,e.guide.id),t=Ut(n,u),Ny=[e.id,n,t]))},stop(){var e=Ny[2];e&&clearTimeout(e),Ny=[]},getGuideSeenTimeoutLength:Oy};function Ly(){console.warn("This functionality is not supported by your subscription.")}function a(e){return Eo?e:Ly}var Py="is going away",Fy="is gone",Dy=C.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return _.info(e),e});function Uy(e,t,n){return function(){return Dy("pendo."+t,n),(e||C.noop).apply(null,arguments)}}function Gy(e){return e&&1===e.length?e[0]:C.any(e,ft)?m.all(e).then(function(e){return C.any(e)}):void 0}function By(){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||{},C.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),Jd(e,this)},this),this.isActivatedByEvent=function(e){return!!(this.hasLaunchMethod("dom")&&this.attributes&&this.attributes.activation&&C.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=C.first(this.steps);return e&&"whatsnew"===e.type},this.isAnnouncement=function(){return C.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")&&C.any(this.steps,function(e){return e.shouldAutoDisplay()})},this.autoDisplay=function(){if(this.shouldAutoDisplay())return Gy(C.map(this.steps,function(e){return e.autoDisplay()}))},this.isRendered=function(){return C.any(this.steps,function(e){return e.isRendered()})},this.isShown=function(){return C.any(this.steps,function(e){return e.isShown()})},this.canShowOnDevice=function(){if(!ud()){var e=dd(),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()&&C.any(this.steps,function(e){return e.canShow()})},this.launch=function(e){var t;return this.hasGuideBeenControlled()||(t=this.show(e)),this.isShown()?C.each(this.steps,function(e){e.seenState="active"}):!this.isShown()&&this.isControlGroup()&&C.each(this.steps,function(e){e.seenState="notSeen"}),t},this.show=function(t){return Gy(C.map(this.steps,function(e){return e.show(t)}))},this.checkForHiddenGroupSteps=function(){},this.hide=function(t){C.each(this.steps,function(e){e.hide(t)})},this.hasBeenSeen=function(){return C.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=C.get(this,"attributes.resourceCenter"),this.isControlGroup()&&!e?this.hasGuideBeenControlled()||this.steps[0].onControlGuide("control"):(e=C.first(this.steps))&&C.isFunction(e.canShowOnPage)&&e.canShowOnPage(um())&&Oh(this)):Lh(this)},this.findStepById=function(t){return C.find(this.steps,function(e){return e.id===t})},this.isPoweredByEnabled=function(){return!!C.find(this.steps,function(e){return e.isPoweredByEnabled()})},this.searchFor=function(t){var e,n,i=null;return st(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?C.find(n,function(e){return st(e.text,t,!0)}):e)?i="tag":(n=C.map(this.steps,function(e){return e.searchFor(t)}),0<C.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&&!C.isFunction(t.steps[0].fetchContent)||(e=t.steps[0],!t.hasLaunchMethod("launcher")&&!t.isWhatsNew())||!e.canShowOnPage(um())||!t.canShowOnDevice()||!Bg(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(um())||!this.canShowOnDevice()||!Bg(e)||this.outsideTimebox())};var e,n="PENDO_HELPER_STEP";return this.getPositionOfStep=function(e){var t=C.reject(this.steps,function(e){return st(e.content,n)});return C.indexOf(t,e)+1},this.getTotalSteps=function(){return C.reject(this.steps,function(e){return st(e.content,n)}).length},this.getSeenSteps=function(){return C.size(C.filter(this.steps,function(e){return e.hasBeenSeen()}))},this.isComplete=function(){var t=["advanced","dismissed"];return C.all(this.steps,function(e){return C.contains(t,e.seenState)})},this.isInProgress=function(){var t=["active","advanced","dismissed"];return!this.isComplete()&&C.any(this.steps,function(e){return C.contains(t,e.seenState)})},this.isNotStarted=function(){return!this.isInProgress()&&!this.isComplete()},this.fetchContent=function(){return m.all(C.map(this.steps,function(e){if(C.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 C.any(this.steps,function(e){return e.isSnoozed()})},this.hasGuideBeenControlled=function(){return C.any(this.steps,function(e){return e.hasBeenControlled()})},this.isControlGroup=function(){return this.control},this.shouldShowSnoozedGuide=function(){var t=!1;return!this.outsideTimebox()&&C.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,C.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 C.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 zy(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){C.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var jy=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function Hy(){var r,o=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(C.each(this.steps,function(e){e.after("render",function(){C.each(e.elements,function(e){k(e).addClass("_pendo-guide-walkthrough_")})})}),r=null,this.sections=C.reduce(this.steps,function(e,t){var n,i;return i=t,!(n=r)||(n=C.last(n)).attributes.isRequired!=i.attributes.isRequired&&n.attributes.isRequired?(e.push(r),r=[t]):r.push(t),e},[]),this.sections=C.compact(this.sections.concat([r])),this.findSectionForStep=function(t){return C.find(this.sections,function(e){return C.contains(e,t)})},this.getSubSection=function(e,t){t=C.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=C.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||(_.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()||C.all(this.steps,function(e){return e.shouldAutoDisplay()}))},this.autoDisplay=function(){var e,t,n;if(this.shouldAutoDisplay())return e=this.shouldRepeatGuide(),t=C.first(this.steps),n=this.nextStep($p())||t,this.shouldShowSnoozedGuide()||e?n.show(e?"repeatGuide":"auto"):t.autoDisplay()},this.launch=function(e){return C.first(this.steps).show(e)},this.show=function(e){var t=$p(),n=C.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=C.last(this.steps);return!!e&&C.contains(["advanced","dismissed"],e.seenState)},this.activeStep=function(){var e=[].concat(this.steps).reverse();return C.findWhere(e,{seenState:"active"})}),this}function qy(){var a=this;function t(r){var o=[];return function(e){try{return e.apply(a,C.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=C.last(o)-C.first(o))?(o.length-1)/(t/6e4):Infinity,qy.MAX_ERRORS_PER_MINUTE<=t&&(n="Exceeded error rate limit, dropping guide.\n"+n,Yu.addGuide(a),y.trigger("renderFail",a)),o.shift()),_.critical(n,{error:i}),i}}}return C.each(["canShow","placeBadge","show"],function(e){a[e]=C.wrap(a[e],t(e))}),a}function Wy(){return C.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=C.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=C.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 Vy(e){var t=this;return"whatsnew"===t.type||C.isFunction(e.isAnnouncement)&&e.isAnnouncement()||(t.isShown=C.wrap(t.isShown,function(e){return e.apply(this,arguments)||g.getters["frames/isShownInAnotherFrame"]()(t)})),t}function Jy(o){var a,t,i,s,r,n,u,d=this;return d.pollIds&&d.pollIds.length&&(a="_pendo-poll-selected_",t=C.indexBy(o.polls,"id"),i=C.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();Qg(e,t,b(),d.seenReason,o.language),wg(e,t,"advanced",n),Jp({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=C.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(C.compact(t)),u()}):d.attachEvent(n,"click",function(e){var t,e=k(xr(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:""})),C.isFunction(d.resize)&&d.resize()}))}),d.after("show",function(){s=(new Date).getTime()}),d.response=function(e,r){e&&e.length&&(zm(),C.each(e,function(e,t){var n=function(t,e){if(e&&e.polls&&e.polls.length)return C.find(e.polls,function(e){return e.id===t})}(e.pollId,o),i=im("pollResponse",d.guideId,d.id,b(),undefined,o.language);C.extend(i.props,{poll_id:e.pollId,poll_response:e.value,duration:(new Date).getTime()-s},r),n&&n.attributes&&n.attributes.type&&C.extend(i.props,{poll_type:n.attributes.type}),Pm.push(i)}),Pm.flush())}),d}qy.MAX_ERRORS_PER_MINUTE=30;var Ky={show:function(t,n){if(ud()&&C.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return $y(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 $y(e.steps[0],t)}}(t,n);if(ft(e))return e.then(function(){return $y(t,n)}).then(function(e){return!!e||Zy(t,n)});e=$y(t,n);if(ft(e))return e.then(function(e){return!!e||Zy(t,n)});if(e)return!0}return Zy(t,n)},showLocal:$y};function $y(e,t){return Xd.hasContent(e)&&Hd.valid(e)?(e._show(t),e.isShown()):!(Xd.hasContent(e)&&Hd.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(um()))&&(e.lock(),Xd.fetchContent(e).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&Hd.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(e.unlock(),e._show(t),e.isShown())}))}function Zy(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 Xy(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 sv),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=C.indexOf(t,this),i=Gl();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:nt(i),template:r};return this.template||(this.template=C.template(this.content||"")),Kd(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!C.get(this,"guide.attributes.isAnnouncement")&&!!u.canShowOnDevice()&&!this.isShown()&&!C.get(this,"stepIneligibleForApp")&&this.canShowOnPage(um())&&Bg(this)},this.canShowOnPage=function(e){e=cm(this.regexUrlRule,e);return _h()&&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()&&!C.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||ud()||Wh())&&(e=um(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!cm(this.regexUrlRule,e)?(Yu.addGuide(u),t.error=new Error('attempted display on page "'+e+'"'),_.critical("pendo.io page rule exception",t),1):g.getters["healthCheck/isMissingPageRule"]()(this)?(Yu.addGuide(u),t.error=new Error('missing regexUrlRule"'),_.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(Yu.addGuide(u),t.error=new Error("missing regexUrlRule for page "+this.pageId+'"'),_.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=C.find($u(),function(e){return e.id===u.moduleIdToReplaceHomeViewWith}),n=C.get(t,"attributes.resourceCenter.integrationProvider"),P.renderNativeIntegration(n,t)):u.continueToNativeModule?P.handleNativeIntegrationContinuation(u):(C.get(u,"attributes.resourceCenter")&&fh(P.getResourceCenter(),gh),u.isModule?U.renderResourceCenterModule(u,!1):(n=U.renderGuideFromJSON(e.domJson,e),C.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",qg(e)).addClass(hg+" "+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&&C.isFunction(u.isOnboarding)&&u.isOnboarding()&&r.addClass("_pendo-onboarding_"),e.overlayDiv=s,e.guideElement=r}},this.teardown=function(){_.info("guide step teardown",{contexts:["guide","render"]}),C.each(this.handlers,function(e){ju(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,C.has(this.attributes,"imgCount")&&(this.attributes.imgCount=0),this.hiddenElements&&(C.each(this.hiddenElements,e=>{try{e&&"function"==typeof e.removeAttribute&&e.removeAttribute("aria-hidden")}catch(t){_.error("unable to remove aria-hidden from element",{error:t})}}),this.hiddenElements.length=0,this.hiddenElements=null),Al(this.id)},this.show=function(e){var t;if(!C.contains(["auto","continue"],e)||!g.getters["healthCheck/isRedisplay"]()(this))return(t=Ky.show(this,e))&&t["catch"]&&t["catch"](C.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=C.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"===C.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?C.forEach(u.activeModule.guidesInModule,function(e){var t;!C.isUndefined(e.steps[0].attributes.imgCount)&&0!==C.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()&&(!ud()&&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&&!Ug(this)},this.getStepPollTypes=function(n,e){var i;if(e.pollIds&&e.pollIds.length)return i=[],C.forEach(e.pollIds,function(t){var e=C.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;ud()||(this.seenReason=e,mg(v()),t=this.getStepPollTypes(u,this),this.hasBeenControlled())||(Zg(this.guideId,this.id,b(),e,u.language,t),C.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(),ud()||(i.seenReason=r,i.seenState="active",mg(v()),t={last_updated_at:i.lastUpdatedAt},(n=this.getStepPollTypes(u,i))&&(t.step_poll_types=n),e&&Xg(i.guideId,i.id,b(),r,u.language,t),g.dispatch("guideState/updateLastGuideStepSeen",{guideId:u.id,guideStepId:i.id,time:gg,state:i.seenState,seenReason:r,visitorId:b()}),C.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=im({type:"guideSnoozeCanceled",guideId:t,stepId:e,visitorId:n,seen_reason:r,language:i}),am(t,null,!0),y.guideSnoozeCancelled.trigger(t))}),ec.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(),C.each(t.elements,function(e){Vo(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()||Pg(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||Ng(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)&&st(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&Pc.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&xc(this)},this.getType=function(){return this.domJson?C.get(this,"attributes.calculatedType"):this.type},this}function Yy(){return this.after("render",function(){var e,t;F&&F.contentWindow&&F.style&&(e=C.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}Xy.isGuideStep=function(e){return!!e&&C.isFunction(e.render)};const Qy={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===gt.Critical?(i=window.pendo_options||{},ty(e),!1!==E.logStackTraces&&!1!==i.logStackTraces&&n.stack?xo(e+`
|
|
9
|
-
`+n.stack):_o(e)):t.level===gt.Error?ty(e):t.level===gt.Warn&&(i=[e],Xv("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()]}}}},e0=h.getSession(),t0="pendo_cd";class n0{constructor(){this.name="CloneDetection"}initialize(){if(C.isFunction(window.BroadcastChannel))return h.registry.addSession(t0),this.tabId=dn.getTabId(),this.id=at(16),this.channel=new BroadcastChannel("pendo-clone-detection-"+E.apiKey),this.channel.addEventListener("message",C.bind(this.onmessage,this)),this.detectClonedSession(this.id),C.bind(this.teardown,this)}teardown(){this.stopCloneDetectionTimer(),this.channel.removeEventListener("message",this.onmessage),this.channel.close(),this.channel=null}onmessage(e){var t=C.get(e,"data.type"),n=C.get(e,"data.tabId"),i=C.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=e0.getItem(t0)||"";-1===t.indexOf(e)&&(t+="-"+e),e0.setItem(t0,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()}isClonedSession(e){return this.startCloneDetectionTimer(),-1===(e0.getItem(t0)||"").indexOf(e)}clearCloneDetectionValue(){e0.removeItem(t0),this.cloneDetectionTimer=null}startCloneDetectionTimer(){this.stopCloneDetectionTimer(),this.cloneDetectionTimer=Ut(C.bind(this.clearCloneDetectionValue,this),1e4)}stopCloneDetectionTimer(){this.cloneDetectionTimer&&(clearTimeout(this.cloneDetectionTimer),this.cloneDetectionTimer=null)}clearClonedStorage(){e0.clearPendo(),dn.setParentTabId(this.tabId),this.tabId=dn.newTabId(),y.trigger("tabIdChanged:self"),g.dispatch("frames/setTabId",this.tabId)}sendMessage(e,t){this.channel.postMessage(Object.assign({type:e},t))}}let i0=new n0;function r0(e){g.dispatch("frames/setReady",{isReady:!0})}var o0=["unknown","hidden","visible"];function a0(e){return"visible"===e.visibility||"unknown"===e.visibility}s0={};var s0,t={actions:{init(e){var t,n,i=e.state;i.initialized||(h.registry.addSession(en),h.registry.addSession(tn),t=dn.addTracerIds({}),n=Se(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),y.ready.on(r0),y.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&D.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),i0.initialize(),e.commit("setInitialized",!0))},changeGuideList(e,t){e=e.state,t=d0(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"),c0(e.state)},join(e){var t,n,i,r;e.state.disabled||(uh(),t=e.state,n=window.top==window,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:d0(nd())}),(r=[].concat(f.get("leaderKey"))).length||t.agentInstallType!==be||(r=[E.apiKey]),e.dispatch("receiveFrame",{frame:C.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({},gf.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:C.toArray(C.get(t,"frame.guides",[]))}),t.frame.isTop){for(var r=e.getters.leaderKeyPreference(),o=C.filter(i.frames,e=>e.isTop);r.length;){var a=r.shift(),s=C.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[Dh]&&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}),C.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),C.each(s0,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete s0[t])}),e.dispatch("electLeader"))},waitThenElectLeader:C.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=C.filter(t.frames,e=>e.apiKey===r);if(o.length){n=o;break}}var a=C.find(n,e=>e.isTop);a?e.dispatch("followLeader",{leaderId:a.id}):(a=C.min(n,"joinedAt"),e.dispatch("followLeader",{leaderId:a.id})),c0(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=C.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",C.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+"/"+at(32),i=m.defer();return s0[n]=i,D.postMessage(C.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))?ft(e=Ky.showLocal(e,n.reason))?e.then(i)["catch"](C.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(C.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame(e,t){var n=s0[t.requestId];n&&(n.resolve(t),delete s0[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=C.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?C.each(C.compact(C.map(t.guideIds,N)),function(e){e.hide()}):Eg(),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(C.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){C.each(n.state.frames,function(e,t){t!==n.state.frameId&&n.getters.isShownInFrame()(t,{id:i.stepId})&&D.postMessage(C.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=C.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(C.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState(e,t){t.frameId!==e.state.frameId&&C.each(em,function(e){t[e]&&nm(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(C.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview(e,t){e.dispatch("preview/start",t[Dh],{root:!0}),Bh(window),iv()},receiveRestartPreview(e){var t=Hh(O,$p());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview(e,t){Yh({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=la(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility(e,t){var n;!C.find(o0,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;gf.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&&Ll(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)&&Un(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=fd(t))&&((i=C.first(u(i)))?la(i)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),C.isFunction(n.canShowOnPage)&&!n.canShowOnPage(um())&&(a.PAGE="mismatch"),n.elementPathRule&&((i=C.first(u(n.elementPathRule)))?la(i)?n.elementContainsRulesList&&!jg(i,n.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),n.triggerElementPathRule&&((i=C.first(u(n.triggerElementPathRule)))?la(i)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),C.get(t,"attributes.embedConfig")&&(n=C.get(t,"attributes.embedConfig.selector"),(i=C.first(u(n)))?la(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]=C.extend({},e.frames[n],t)},removeFrame(e,t){delete e.frames[t]},setGuideList(e,t){var n=t.frameId;e.frames[n]=C.extend({},e.frames[n],{guides:C.indexBy(d0(t.guides),"id"),autoOrdering:t.autoOrdering})},setStepShown(e,t){var n=t.frameId,n=e.frames[n]=C.extend({},e.frames[n]);n.shown=C.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]=C.extend({},e.frames[n],{visibility:t.visibility})},setReady(e,t){e.isReady=t},disableFrameVisibilityCheck(e){e.disableFrameVisibilityCheck=!0},hideGuides(e){C.each(e.frames,function(n){C.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&&C.each(e.frames,function(e){e.guides&&(e=e.guides[t.guideId])&&(e=C.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 C.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 C.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 C.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<C.size(e.frames)},shouldBeAddedToLauncher(i,e){return function(n){return e.canShowRCBadge()&&C.any(i.frames,function(e,t){return t!==i.frameId&&!!a0(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToLauncher})}},shouldBeAddedToResourceCenter(i,e){return function(n){return e.canShowRCBadge()&&C.any(i.frames,function(e,t){return t!==i.frameId&&e.apiKey===E.apiKey&&!!a0(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=C.filter(e.frames,function(e){return e.apiKey===E.apiKey}),(i=C.find(n,function(e){return e.isTop}))?e.frameId===i.id:(i=C.min(n,function(e){return e.joinedAt}),e.frameId===i.id)):C.any(e.frames,function(e){return e.isTop})?t.isTop():t.isLeader()},leaderKeyPreference(e){e=C.filter(e.frames,e=>e.leaderKey&&e.leaderKey.length);return 1===C.unique(C.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:s0};function u0(e){var t=C.pick(e,"id","name","launchMethod","isMultiStep","steps","control","lastUpdatedAt","language","state","polls","redisplay");return t.attributes=C.pick(e.attributes,"overrideAutoThrottling","priority","isAnnouncement","resourceCenter","device","sharedServiceVersion","embedConfig"),t._shouldBeAddedToLauncher=C.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e._shouldBeAddedToLauncher||!1,t._shouldBeAddedToResourceCenter=C.isFunction(e.shouldBeAddedToResourceCenter)?e.shouldBeAddedToResourceCenter():e._shouldBeAddedToResourceCenter||!1,t.steps=C.map(e.steps,function(e){return C.pick(e,"id","guideId","type","seenReason","seenState","lastSeenAt","lastUpdatedAt","dismissCount","snoozeEndTime","regexUrlRule","pageId","elementPathRule","triggerElementPathRule","elementContainsRulesList")}),t}function d0(e){return C.map(e,u0)}function c0(t){var n=C.indexBy(C.filter(nd(),function(e){return!e.isFrameProxy}),"id"),e=C.chain(t.frames).filter(function(e){return e.id!==t.frameId}).map(function(e){return C.toArray(C.get(e,"guides",[]))}).flatten(!0).unique("id").filter(function(e){return!n[e.id]}).map(function(e){return C.extend(JSON.parse(JSON.stringify(e)),{isFrameProxy:!0})}).map(Vd).value(),e=C.toArray(n).concat(e).filter(Sm);C.sortBy(e,Em),Gm(e),Xu(e),t.guidesLoaded&&0===C.size(C.get(t,"frames."+t.frameId+".guides",[]))&&dh()}var l0,ki={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,oh-t),oh),t=Ut(h0,t),e.commit("setScheduledUpdate",t))},handleScheduledUpdate(e){e.dispatch("stopScheduledUpdate"),dh()},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",p0),e.commit("setObserving",!0))},stopObserver(e){var t=e.getters.observer();t&&t.removeEventListener("mutation",p0),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setObserver(e,t){l0=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){e.needsUpdate=!1,e.updateId=t},completeUpdate(e,t){e.updateId=null,e.updateCompleteTime=t}},getters:{now(){return v()},observer(){return l0}},state:{useObserver:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}};function p0(){g.dispatch("guideUpdate/documentChanged")}function h0(){g.dispatch("guideUpdate/handleScheduledUpdate")}f0=["advanced","dismissed","snoozed"];var f0,Pi={actions:{init:function(t,e){C.each(e,function(e){C.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){xo(['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]=C.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)&&C.contains(f0,t.seenState)&&!C.contains(f0,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}},g0={state:{lastFlush:v(),flushInterval:3e5,counters:{ptmGifFailures:0,guideGifFailures:0},timers:{}},actions:{flush(n){C.each(n.state.counters,function(e,t){n.commit("resetCounter",t)}),C.each(n.state.timers,function(e,t){n.commit("resetTimer",t)}),n.commit("setLastFlush",n.getters.now())}},mutations:{setLastFlush(e,t){e.lastFlush=t},incrementCounter(e,t){e.counters[t]!==undefined&&e.counters[t]++},resetCounter(e,t){e.counters[t]!==undefined&&(e.counters[t]=0)},setTimer(e,{name:t,time:n}={}){t&&null!=n&&(e.timers[t]=n)},resetTimer(e,t){delete e.timers[t]}},getters:{shouldFlush(e,t){return t.now()-e.lastFlush>=e.flushInterval},payload(e){var t=C.reduce(e.counters,function(e,t,n){return 0<t&&(e[n]=t),e},{});return C.extend({},t,e.timers)},now(){return v()}}},m0={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 v0=h.getLocal();var y0="pendo-preview",b0="current-guide-preview",w0={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(y0)),i=(n.apiKey===E.apiKey&&e.commit("setPreview",n),t.getItem(b0));i&&e.commit("setDesignerPreview",JSON.parse(i))}catch(r){}},write(e){try{var t=e.getters.storage();e.state.preview?t.setItem(y0,JSON.stringify(e.state.preview)):t.removeItem(y0)}catch(n){}},exit(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview(e){e.commit("setDesignerPreview",null),e.getters.storage().removeItem(b0)},launchInAppDesigner(e,t){gf.launchInAppDesigner(t)}},mutations:{updatePreview(e,t){e.preview&&C.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 v0}}};const S0=(()=>{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",dn.getFrameId()),e.commit("setTabId",dn.getTabId()),e.commit("setInstallType",Se());var t=vd()&&window.top===window;n.isTop,e.commit("setIsTop",t),e.commit("isLeader",vd()),t?(t=Ch(),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&&C.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;C.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.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=C.filter(g.state.frames.frames,e=>e.guides&&e.guides[i]);t.length&&(t=C.map(t,n=>{var e=C.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:C.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){C.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=C.map(Zp.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:C.get(e,"data.0.visitor_id")||E.get_visitor_id(),accountId:C.get(e,"data.0.account_id")||E.get_account_id(),apiKey:E.apiKey})}function c(){g.commit("debugger/location",{href:Dr(),browserUrl:window.location.href})}function l(e){g.commit("debugger/guideLoopRunning",e)}const p=C.partial(l,!0),h=C.partial(l,!1);return C.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]=C.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}})();const E0=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=jn()){p()&&o.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}}();function I0(e,n){return e.length==n.length&&C.all(e,function(e,t){return e===n[t]})}class C0{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),I0(t,n.targets)||(n.targets=t,this.domActivation.detach(n,this.domActivation.targets),C.each(t,function(e){this.domActivation.attach(e,n,this.domActivation.targets)},this))}}handleProcessTimeExceeded(e){e=e.getContext();e&&_.warn("Element activated guide ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var _0,x0,T0,k0,A0,R0,O0={name:"DOMActivation",key:T0="pendoTargetId",guides:k0=[],targets:A0={},reset:F0,init:U0,attach:function(n,i,e){var t=n[T0],r=t?e[t]:null;r||(t=t||"target"+C.uniqueId(),r={target:n,events:{}},e[t]=r,n[T0]=t);var o=e[i.id]||[];o.push(t),e[i.id]=o,C.each(i.events,function(e){var t=r.events[e];t||((t={guideIds:{}}).fn=C.partial(P0,C,t.guideIds),l(n,e="mouseover"===e?"mouseenter":e,t.fn),r.events[e]=t),t.guideIds[i.id]=1})},detach:L0,handler:P0,activates:D0,prefetch:G0,initialize:function(e,t){(_0=t).Events.on("deliverablesLoaded",F0),t.Events.on("guideListChanged",N0),t.Events.on("guidesLoaded",M0),wh(x0=new C0(O0))},teardown:function(){Sh(x0),_0.Events.off("deliverablesLoaded",F0),_0.Events.off("guideListChanged",N0),_0.Events.off("guidesLoaded",M0)}};function N0(){F0(),U0($u())}function M0(){G0($u())}function L0(i,t){C.each(t[i.id],function(e){var n=e?t[e]:null;n&&(C.each(n.events,function(e,t){e&&e.guideIds&&(delete e.guideIds[i.id],C.size(e.guideIds)<=0)&&(ju(n.target,t="mouseover"===t?"mouseenter":t,e.fn),delete n.events[t])}),C.size(n.events)<=0)&&(delete n.target[T0],n.target=null,delete t[e])}),delete t[i.id]}function P0(e,t){var n;!e.pendoActivatedGuide&&!k.data.get(e,"advanced")&&(n=f.get("adoptPrioritizeAdoptGuides"),t=C.compact(C.map(C.keys(t),N)),t=C.filter(t,function(e){return!(!e.steps||!e.steps.length||C.get(e,"attributes.dom.isOnlyShowOnce")&&e.steps[0].hasBeenSeen())}),t=C(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=C.find(t,function(e){var t=C.first(e.steps);return C.get(e,"attributes.resourceCenter",!1)&&e.isShown()?P.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||$g(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function F0(){C.each(k0,function(e){L0(e,A0),e.targets=[]}),k0.length=0}function D0(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(um())){var t=C.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=fd(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function U0(e){C.each(e,function(e){e=D0(e);e&&k0.push(e)})}function G0(e){f.get("disablePrefetch")||C.each(e,function(e){C.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&C.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent(!0)})}var B0=function(){(R0=R0||{dom:k,placeBadge:Oh,showPreview:Vg,stopGuides:uh,removeAllBadges:Nh,_:C,sizzle:u,tellMaster:qa,tell:qa,log:Qv,attachEvent:l,createLauncher:C.constant({}),removeLauncher:C.noop,addGuideToLauncher:C.noop,updateLauncherContent:C.noop,DEFAULT_TIMER_LENGTH:oh,getOffsetPosition:Wo,getScreenDimensions:jo,registerMessageHandler:La,whenLoadedCall:qu,loadResource:Ta,loadGuideCss:Mm,GuideFactory:Vd,GuideStep:Jd,extractElementTreeContext:Nu,previewGuideFromJSON:U.previewGuideFromJSON,hidePreviewedGuide:U.hidePreviewedGuide,shadowAPI:Qn,getTarget:xr,pullContentsFromTargetElement:zg,doesElementMatchContainsRules:jg,doesElementContentMatchRule:Hg,getGuideAttachPoint:cd}).areGuidesEnabled=!Wm(),E.designer||(E.designer=R0)},z0=function(){var r,o,i;let a;return{name:"DesignerConnect",initialize:function(e,t){r=e,o=t,Ka()||La("connect",n);La("pendo-designer-launch::launch",d),La("pendo-preview::launch",c),e.app_name=document.title,(Wa()||window.opener)&&window.addEventListener&&(r.log(e.app_name+": listening to messages"),window.addEventListener("message",Ra,!1));window.opener&&r._.isFunction(window.opener.postMessage)&&window.opener.postMessage({type:"pendo::ready"},"*");r.onConnectMessage=n},teardown:function(){window.removeEventListener&&window.removeEventListener("message",Ra,!1),s(),Pa("connect"),Pa("pendo-designer-launch::launch"),Pa("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,_a=i,r.designerv2.hostConfig||(o.store.dispatch("frames/leave"),a=r._.partial(s,i,n),o.Events.appUnloaded.on(a)),B0(),qa(t.source,{status:"success",type:"connect"},n),Ba("selection.js")&&(r.log("Designer Modules already loaded."),qa({type:"ready"},n)),o.Events.designerLaunched.trigger())}function s(e,t){r.buffers.unlock(),E.designer&&(E.designer=null,delete E.designer),e&&qa(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,La("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}),ao()&&(n.apiKey=r.apiKey),o.store.dispatch("preview/exitDesignerPreview"),o.store.dispatch("preview/start",n),Bh(window)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:r.apiKey,accountId:r.accountId},t.origin),iv(),o.store.dispatch("frames/startPreview")))}}();const j0="__sg__";q0="promotedAgentMetadataConfigurations",W0=[],V0={},J0={};var H0,q0,W0,V0,J0,K0={name:"PromoteMetadata",initialize:function(e,t){if(W0=(H0=t).ConfigReader.get(q0),J0={},H0.agentStorage.registry.addLocal(j0,{isSecure:!0,serializer:JSON.stringify,deserializer:kt}),Rn())try{V0=H0.agentStorage.read(j0)}catch(n){eb()}W0&&W0.length&&(H0.Events.on("metadata",X0),H0.Events.on("eventCaptured",nb),H0.Events.on("identify",Y0))},teardown:function(){H0.Events.off("metadata",X0),H0.Events.off("eventCaptured",nb),H0.Events.off("identify",Y0)},getPromotedMetadata:function(){return W0},hasPromotedMetadataKind:$0,setSchemaGroup:X0,getSchemaGroup:Z0,resetSchemaGroup:Q0,resetCachedSchemaGroup:eb};function $0(t){return C.some(W0,function(e){return e.kind===t})}function Z0(){return J0}function X0(e){var t;e?(e=e.data[0]["options"],e&&(t=e)):t=Gl(),J0=function(r){if(Rn())try{var e=H0.agentStorage.read(j0);V0=function(e){e=C.mapObject(e,(t,e)=>{const n={};return C.each(Object.keys(t),function(e){n[e.replace("agent__","")]=t[e]}),n});return e}(V0=e)}catch(t){eb()}var o=J0;C.each(["visitor","account","parentAccount"],function(e){var t=$0(e),n=!C.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!C.isEmpty(V0)&&C.isEmpty(ms.get())&&(o[i]=tb(V0[i],e)),n)&&(t=tb(r[e],e),C.isEmpty(t)||(o[i]=Object.assign(Object.assign({},o[i]),t)))}),Rn()&&H0.agentStorage.write(j0,o);return o}(t)}function Y0(e){e=e.data[0];C.get(e,"wasCleared")&&(H0.agentStorage.clear(j0),Q0())}function Q0(){J0={}}function eb(){V0={}}function tb(e,i){var r={};return e&&C.each(e,function(e,t){var n=t.toLowerCase();Boolean(C.find(W0,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function nb(e){e=e.data[0];e&&(C.isEmpty(J0)&&X0(),C.isEmpty(J0)||("track"===e.type?e.props.__sg__=J0:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=J0)))}function ib(e,t,n){this.element=e,this.method="element"==t?"click":"hover"==t?"mouseover":t,this.step=n,this.guide=n.getGuide()}ib.prototype.add=function(){0===C.indexOf(this.guide.steps,this.step)&&!ib.shouldAttachHandler(this.guide,this.method)||od(this.guide)&&!ad(this.guide)||this.setupElementEvent(this.element,this.method)},ib.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},ib.prototype.setupElementEvent=function(e,t){this.advanceFn||(this.advanceFn=C.compose(C.bind(this.teardownElementEvent,this,e,t),C.bind(this.step.advance,this.step))),ib.attach(this.step,e,t,this.advanceFn)},ib.prototype.teardownElementEvent=function(e,t){_.info("detach onGuideAdvanced",{contexts:["guide"]}),ju(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},ib.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||O0.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector};var rb=null,ob=function(){return dd()?rd:id},ab=function(e){return"#_pendo_g_"+e.id},sb=function(e,t){rb=null;var n,i,r,o,e=Wo(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(ob()),o=vb(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}),ub(n[0],o),n[0])},ub=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=C.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>");C.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)},db=function(e,t){t===undefined&&(t=Wu),e.element=pd(e);var n=e.element;if(!n)return _.info("No element found for step: "+e.id),null;ha(n);var i=sb(n,e);return null===i?null:(i.id=E.getTooltipDivId(e),k(i).appendTo(cd()),t.push(i),l(i,"mouseover",C.partial(k.addClass,i,"mouseover")),l(i,"mouseout",C.partial(k.removeClass,i,"mouseover")),gd(n,i),fb(e),n)},cb=null,lb=null;var pb=null,hb={top:"north",left:"east",bottom:"south",right:"west"},fb=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=mc(n=n.concat(C.compact(C.flatten(C.map(t.additionalElements,function(e){return C.toArray(k(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=gc(a=fc(),i,o),h=i,f=!C.isEqual(h,cb),cb=h,f||(l=a,p=!C.isEqual(l,lb),lb=l,p)||(d=s,c=!C.isEqual(d,pb),pb=d,c))&&(u={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(u["background-color"]=t.bgColor),t.opacity&&(u.opacity=t.opacity),C.each(s,function(e,t){t=hb[t],e=C.extend({},e,u),t=k("div._pendo-guide-tt-region-block_._pendo-region-"+t+"_")[0]||gb(t),k(t).css(e)}))}catch(g){_.info("Failed to add BlockOut ui",{contexts:["error"]})}var d,c,l,p,h,f},gb=function(e){e=k(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");k("body").append(e)},mb=function(e){var t=C.isEqual(e,rb);return rb=e,!t},vb=function(e,t,n,i){var r=E.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=jo();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=yb(o,e,a,i=i||"auto"),o=bb(o,e,a,i),o=wb(o,e,a)},yb=function(e,t,n,i){return e.arrow.hbias=Mc(t,n,i),e},bb=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-fo(),t=(r=t.left-go())+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},wb=function(e,t,n){var i,r,o,a=e.height,s=e.width;return Be()?ze(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=_e(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+=_e(9,6)?6:0,e.arrow.top+=8==Ce?-1:0,i=1),r=10+E.TOOLTIP_ARROW_SIZE,o=s-3*E.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==Rc?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==Oc?(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==Rc?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=_e(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==Oc&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=_e(10,6)?5:0,e.arrow.left+=7==Ce&&6<=Re?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)},Sb=430,Eb=200,Ib=15;function Cb(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||pd(t);return!n&&e?[]:(e=(t.advanceMethod||"").split(","),this.triggers=C.map(e,function(e){return new ib(n,e,t)}),this.triggers)},this.removeTrigger=function(e){this.triggers=C.without(this.triggers,e),0===this.triggers.length&&(this.triggers=null)},this.canShow=function(){return!Ug(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(um())&&Bg(t)},this.after("render",function(){db(this,this.elements)&&(C.each(this.getTriggers(),function(e){e.add()}),Pc.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=Wo(this.element),t=vb(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(),ub(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,fb(this)},this.onscroll=function(e){la(e.element)?(e.reposition(),Bo(e.elements[0],"display:block")):Bo(e.elements[0],"display:none")},this.teardownElementEvent=function(){C.each(this.triggers,function(e){e.remove()})},this.after("hide",function(){k("._pendo-guide-tt-region-block_").remove(),pb=lb=cb=null})),this}var _b=function(e,t){var n=!!k("._pendo-backdrop_")[0];return C.get(t,"overlayDiv[0]")||(t.overlayDiv=k(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(cd())),Be()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&k(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},xb=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}),Be()&&t.css({position:"absolute"})},Tb=function(e,t){t===undefined&&(t=Wu),e.element=pd(e),xb(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(_b(n,e),e.guideElement);t.push(n[0]),n.appendTo(cd())},kb=function(e,t){t===undefined&&(t=Wu),e.element=pd(e),e.guideElement.addClass("_pendo-guide-mobile-lb_");var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=_b(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(cd()),t.push(e[0]),l(n[0],"touchmove",r),l(e[0],"touchmove",r)};function Ab(){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(){(dd()?kb:Tb)(e,e.elements)}),e.reposition=function(){dd()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var Rb=500,Ob="_pendo-guide-banner_";function Nb(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||Rb,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=E.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(Ob).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),ud()||e.addClass("_pendo-in_"),k("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=pd(n),n.elements.push(e[0]),e.appendTo(cd())})),n}function Mb(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(C.extend(n,{isShown:C.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",qg(n)).addClass("_pendo-guide-whatsnew_").html(n.getContent()),C.isNumber(t)&&!n.attributes.autoHeight&&e.height(t),n.seenState===r&&e.addClass(i),n.guideElement=e)},seen:s}),C.extend(t,{addToLauncher:function(){var e=n.guideElement;e&&!Xo(e[0])&&(k("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),ec.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){ud()||a()&&n.seenState!==r&&function(e){{var t,n;if(la(e,/(auto|scroll|hidden)/))return(t=ta(e))?(t=Yo(t),e=Yo(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(Xg(n.guideId,n.id,b(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,C.delay(function(){n.guideElement.addClass(i+" out")},C.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function u(){}}var Lb="_pendo-launcher-searching_",Pb="._pendo-launcher-search-box_ input";var Fb,Db=function(e){return e&&C.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function Ub(){var e;return function(){var e;if(E.guideWidget)return(e=E.guideWidget.data)&&e.enableSearch}()&&(e=k(Pb)[0])&&0<(e=e.value).length?(e=Xe.call(e),[].concat(C.compact(e.split(" ")))):[]}function Gb(e){if(!f.get("disablePrefetch"))return m.all(C.map(e,function(e){return e.fetchContent()}))}function Bb(e,t){return _.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||O,t&&0!==t.length?C.chain(e).filter(Db).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return C.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var zb=function(){var e=nd();if(vd()){if(E.guideWidget&&E.guideWidget.enabled){var t=Zb(e),n=!0;if(E.guideWidget&&C.isFunction(E.guideWidget.update))E.guideWidget.update(t,n)}}else{a1();t=Zu(e),n=Xb(Zb(t));n!==Fb&&g.dispatch("frames/changeGuideList",t),Fb=n}},jb="launcher-closed",Hb=null,qb=null,Wb=!(ib.attach=function(e,t,n,i){if(e){for(var r=ib.handlers=ib.handlers||{},o=r[e.id]=r[e.id]||[],a=0;a<o.length;++a){var s=o[a];t===s[0]&&n===s[1]&&(ju(t,n,s[2],!0),o.splice(C.indexOf(o,s),1),a--)}o.push([t,n,i]),ju(t,n,i,!0),l(t,n,i,!0)}}),Vb="_pendo-launcher-active_",Jb=null,Kb=function(){return""};function $b(e,t){Kb=t}function Zb(e){var t,e=C.filter(e||O,Db);return e=e,0===(t=Ub()).length?e:(t=C.map(t,C.partial(Bb,e)),C.union.apply(C,t))}function Xb(e){return rt(C.map(e,function(e){var t=e.isWhatsNew()?[]:C.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function Yb(e){var n=this,t=e.launchType||"badge",i=(C.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(cd()),e.className="",n.element=t[0])}},dispose:function(){k.removeNode(n.element)},setActive:function(e){e?k(n.element).addClass(Vb):k(n.element).removeClass(Vb)}}),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=Kd(i.launcherBadgeUrl)),r.onerror=function(e){_.info("[Agent] Error! Unable to load guide center image "+i.launcherBadgeUrl),_.critical("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},Be()&&(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"})),cd().appendChild(r)}function Qb(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=xr(e),t=n();k(e).closest(t).length&&(l1()?h.write(jb,"yes"):E.guideWidget.position(e),g1())}E.guideWidget.removeCountBadge=function(){k("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),C.extend(this,{getLauncherTarget:function(){return k(n())[0]},dispose:function(){ju(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&k("._pendo-launcher-whatsnew-count_").remove()}}),l(document,"click",t)}function e1(){var n,s="bottom-right",u="bottom-left";return this.update=function(e,t){t=t?e:Zb(e),e=Xb(t)+rt(Ub());return e!==n&&(n=e,this.updateLauncherContent(t)),r1(),0<t.length},this.updateLauncherContent=d1,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(Hb=new Yb(e),e.height||310),n=(e.enableSearch&&(t+=Be()?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=(qb=i[0],Wo(Hb.element)),r=vb(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=u1(),o=Kd(t1(this.template(t))),t=k(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),yg(i[0],function(){h1(),h.write(jb,"yes",288e5)}),t.on("click",function(e){var t=k(xr(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=N((t=/^launcher-(.+)$/.exec(Xe.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&($g(t.steps[0],"launcher"),h1(),Hu(e))}),Be()&&(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(cd()),C.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!_e(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=Wo(e),n=vb(e,this.height,this.width),i=k(qb),"badge"===(r=t.launchType||"badge")?(o=t.position,C.indexOf(a=[s,u,"top-left","top-right"],t.position)<0&&(o=s),C.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=C.contains([s,u],o)?"bottom":"top",n.arrow.hbias=C.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(),wb(n,e,{width:Infinity,height:Infinity}),ub(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=g1,this}function t1(e){return e=C.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function n1(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)),Jb=new Qb(e);var n,i,r=e1.create(E.guideWidget);return C.isFunction(r.template)||(r.template=e.template?C.template(e.template):Kb),r.render(),r.position(Jb.getLauncherTarget()),t&&r.toggle(),r}e1.create=function(e){return C.reduce(e1.behaviors,function(e,t){return t.call(e)},e)},e1.behaviors=[Eh,e1,Hd.Launcher,function(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){k(Pb).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,E.disableGuideCenterContentSearch||this.before("update",Gb),this.before("update",function(){t.text=Ub().join(" ");var e=k("._pendo-launcher_");t.text?e.addClass(Lb):e.removeClass(Lb)})),this},function(){var n=this;{var i;n.data&&n.data.onboarding&&(i=n.onboarding=n.onboarding||{},n.before("update",function(e){var e=C.filter(e,jy),t=C.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=C.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=(C.each(t,function(e){e.show()}),C.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),C.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(){s1()?i.appendTo(this.data.launchElement):(Hb.wrap(),i.appendTo(Hb.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 i1=function(){qb&&(k.removeNode(qb),qb=null),Jb&&(Jb.dispose(),Jb=null),Hb&&(Hb.dispose(),Hb=null)},r1=function(){(!s1()&&(p1()||0<Ub().length)?o1:a1)()},o1=function(){Hb&&Hb.show()},a1=function(){s1()||h1(),Hb&&Hb.hide()},s1=function(){return!(!E.guideWidget||!E.guideWidget.data||"element"!==E.guideWidget.data.launchType)},u1=function(e){var t=Gl(),t=C.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:nt(t)},E.guideWidget);return t.data=C.extend({},t.data),e&&(t.guides=e),t};function d1(e){var t=E.guideWidget.template||Kb,e=u1(e),e=k(document.createElement("div")).html(t1(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 c1=C.compose(r1,function(e,t){var n,i,r,o;Db(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,C.isNumber(t)&&(r=k("._pendo-launcher-item_"))[t]?e.id!=r[t].id&&n.insertBefore(e,r[t]):n.appendChild(e))}),l1=function(){return k(qb).hasClass(Vb)},p1=function(){return 0<k("._pendo-launcher-item_").length},h1=function(){var e;qb&&(e=k(qb))&&e.hasClass(Vb)&&(e.removeClass(Vb),Hb)&&Hb.setActive(!1)},f1=function(){var e;qb&&(e=k(qb))&&!e.hasClass(Vb)&&(e.addClass(Vb),Hb)&&Hb.setActive(!0)},g1=function(){qb&&!Wb&&(l1()?h1:f1)()};var m1=function(){try{var e=E.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};i1(),!dd()&&!n.desktop||dd()&&!n.mobile||Wa()&&!n.iframe||e.enabled&&(n1(t),a1())}catch(i){_.critical("ERROR while initializing launcher",{error:i})}},v1=function(e){e.defaultLauncher=$b,C.each(e._defaultLauncher_queue,e=>{$b.apply(null,e)}),e._defaultLauncher_queue=[],e.toggleLauncher=g1,e.showLauncher=f1,e.hideLauncher=h1,e.removeLauncher=i1,e.initLauncher=m1,e.createLauncher=n1,e._addGuideToLauncher=c1,e.launcherToolTipDiv=qb},y1=function(){m1()},b1=function(){var e;(e=E).designer&&(e.designer.createLauncher=n1,e.designer.removeLauncher=i1,e.designer.addGuideToLauncher=c1,e.designer.updateLauncherContent=d1)},w1=function(){var e;(e=E).debugging&&(e.debugging.getLauncherGuides=Zb)},S1=function(e){return i=E.guideWidget,e=e,r=i&&i.data,e=C.filter(e,function(e){e=C.first(e.steps);return e&&"launcher"===e.type}),(e=C.first(C.sortBy(e,function(e){return-e.lastUpdatedAt})))&&r&&(e=C.first(e.steps),C.extend(r,C.pick(e,"contentUrl","contentUrlCss","contentUrlJs"),e.attributes),C.defaults(r,{whatsnew:{},knowledgebase:{}}),r.id=e.guideId+e.id),n=(t=i)&&t.data||{},!0!==f.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?Ld.verify(n).then(function(){return Zd.load(n)}).then(function(e){return n.template=e.content,C.extend(t,e)}):m.resolve();var t,n,i,r},E1=function(e,t){v1(e),t.Events.on("guidesLoaded",y1),t.Events.on("designerLaunched",b1),t.Events.on("debuggerLaunched",w1),t.GuideLoop.addUpdatePhase(zb),Tm.push(S1),t.agentStorage.registry.addLocal(jb,{duration:864e6})},I1=function(e,t){var n;n=S1,0<=(n=C.indexOf(Tm,n))&&Tm.splice(n,1),t.GuideLoop.removeUpdatePhase(zb),t.Events.off("guidesLoaded",y1),t.Events.off("designerLaunched",b1),t.Events.off("debuggerLaunched",w1)};lv.Extensions.API.addTopic("Launcher",{addBehavior(e){e1.behaviors.push(e)}});var C1,_1,x1,T1,k1={name:"P1Guides",initialize:function(e,t){var n;x1=t,C1=(_1=e).dom,T1=[Cb,Ab,Nb,Mb,O1,N1,R1,A1],-1<C.indexOf(Jd.behaviors,Cb)||(n=C.indexOf(Jd.behaviors,Jy),Jd.behaviors.splice.apply(Jd.behaviors,[n,0].concat(T1)),t.Events.guideLoopStopped.on(a1),e.TOOLTIP_DEFAULT_WIDTH=Sb,e.TOOLTIP_DEFAULT_HEIGHT=Eb,e.TOOLTIP_ARROW_SIZE=Ib,e._showElementGuide=db,e._createTooltip=sb,e._get_tooltip_dimensions=vb,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e._showLightboxGuide=Tb,E1(e,t))},teardown:function(){I1(0,x1),x1.Events.guideLoopStopped.off(a1),_1._.each(T1,function(e){e=C.indexOf(Jd.behaviors,e);0<=e&&Jd.behaviors.splice(e,1)}),T1=[]}};function A1(){const o=this;return"tooltip"!==o.type||o.domJson||(o.checkPlacement=function(){var e,t,n,i,r;e=o,r=Wo(e.element||pd(e)),fb(e),mb(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=vb(r,n,i,t),(i=k(ab(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),ub(i,n))}),o}function R1(){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=C1("._pendo-guide-container_",n),"tooltip"==i.type||Be()&&"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 O1(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&yg(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||Ng(t)})}),t}function N1(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||sd(e.guide)||e.after("render",function(){Dg(e.guideElement[0])}),e}var M1,L1,P1={name:"Branding",initialize:function(e,t){M1=e,(L1=t).ConfigReader.get("isPendoFree")&&L1.Events.on("guideSeen",F1)},teardown:function(){L1.Events.off("guideSeen",F1)},addBranding:D1};function F1(e){D1(M1,e)}function D1(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",ro()+"/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 U1,G1=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 Xt(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 B1(e,i){return"undefined"!=typeof Proxy&&C.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 B1(e[t],i)}return C.isFunction(e[t])?function(){return e[t].apply(e,arguments)}:e[t]}}):e}const z1=function(){let n,l,p,h,t;const i=Jn(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 B1(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=Jn(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 Sy("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=Qn.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;Ch().enabled&&(g.commit("debugger/debuggingEnabled",!0),H1(),k("#pendo-client-debugger").length||(e=f.get("agentDebuggerPluginLoader"),lv.restartDebugger?lv.restartDebugger():"function"==typeof e?e():((e=document.createElement("script")).src=Z(E).createScriptURL(oo("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 H1(){U1=U1||{store:g,ConfigReader:f,getState(){return JSON.stringify(g.state)},getEventCache(){return[].concat($a)},getAllGuides(){return[].concat(O)},getAutoGuides(){return Zp.sortAndFilter(O,E.autoOrdering)},getBadgeGuides(){return C.filter(O,od)},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:Xu,getBody:k.getBody,isMobileUserAgent:Ge.isMobileUserAgent,areGuidesDelayed:Vm,doesElementMatchContainsRules:jg,getMetadata:Gl,isStagingServer:re,AutoDisplay:Zp,isLeader:vd,Events:y,observer:xv,guideCache:Hm},E.debugging=U1}function q1(e){if(_h())return e?t:"debugging already enabled";if(!vd())return;const t=Ch();return t.enabled=!0,h.write(Ih,t),j1(),e?t:"debugging enabled"}function W1(){if(!_h())return"debugging already disabled";g.commit("debugger/debuggingEnabled",!1);var e=Ch();return e.enabled=!1,h.write(Ih,e),E.debugging=null,delete E.debugging,k("#pendo-client-debugger").remove(),"debugging disabled"}C.extend(function(e){_.debug(e,{contexts:["debug"]})},U1);const V1=(e,t,n)=>{if(t.getters["frames/leaderExists"]())return n.resolve();const i=n.defer();return e.on("leaderChanged",()=>{i.resolve()}),i.promise},J1=function(){let t,o;return{name:"DebuggerLauncher",initialize:function(n,e){const{Events:i,q:r}=e;o=e.store,V1(i,o,r).then(()=>{o.dispatch("debugger/init"),o.getters["frames/isLeader"]()&&j1()}),La("pendo-debugger::launch",(e,t)=>{e.config.apiKey===n.apiKey&&V1(i,o,r).then(()=>{t.source.postMessage({type:"pendo-debugger::ready",apiKey:n.apiKey},t.origin),!_h()&&o.getters["frames/isLeader"]()&&q1(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",a);(t=n).isDebuggingEnabled=(e=!1)=>_h(e),n.enableDebugging=q1,n.disableDebugging=W1,n.addDebuggingFunctions=H1},teardown:function(){Pa("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",a),t.debugging&&t.debugging.teardown&&t.debugging.teardown();W1()}};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})}}(),K1=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 C=!1;return{name:"FrustrationEvent",initialize:function(e,t){S=e,c=S._,i=t,a=0,l=[],f=[],y={},C=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=dt("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 _(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()){(l=c.filter(l,e=>t-e.timestamp<=p)).length&&Ut(_,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(_,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"),C)&&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()}}(),$1=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=Z1,e.getActiveEmbeddedGuides=X1}(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(){Zm()||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 Z1(){return $1.activeEmbeddedGuides}function X1(){return $1.activeEmbeddedGuides.filter(e=>e.isShown())}const Y1="sessionId";class Q1{constructor(){this.name="SessionManager"}initialize(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"identify",C.bind(this.changeIdentity,this)),this.api.attachEvent(this.api.Events,"eventCaptured",C.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",18e5),this.suffix=this.api.ConfigReader.get("identityStorageSuffix"),this.api.agentStorage.registry.addLocal(Y1,{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(){C.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0}isExpired(e,t){e=C.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(Y1)||this.api.agentStorage.read(Y1,!1,"");return t||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(Y1,t)),JSON.parse(t)}clearSessionInfo(){return this.api.agentStorage.clear(Y1),this.api.agentStorage.clear(Y1,!1,""),this.sessionInfo()}storeLastInteractionEventInformation(e,t){e.timestamp=t,this.api.agentStorage.write(Y1,JSON.stringify(e))}}var ew=new Q1;function tw(e,t,s,u){return new(s=s||Xt)(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 nw{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 tw(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.get(t);this.segmentsPayload(e.data)})}postLoad(t,n){return tw(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.postJSON(t,n);this.segmentsPayload(e.data)})}}var iw=new nw;const rw=["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"],ow=new RegExp(`(${rw.join("|")})`,"i"),aw=["facebook","twitter","linkedin","instagram","pinterest","tiktok","snapchat","twitch","reddit","quora","tumblr","flickr","discord","twitch","whatsapp","telegram","weibo","qq","line"],sw=["t.co","x.com"],uw=new RegExp(`(${aw.join("|")})`,"i");function dw(e,t){return gw(uw,e)||t.contains(sw,e)}const cw=["youtube","vimeo","dailymotion","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"],lw=new RegExp(`(${cw.join("|")})`,"i"),pw=["amazon","ebay","walmart","etsy","shopify","shop","target","bestbuy","costco","temu","alibaba","aliexpress"],hw=new RegExp(`(${pw.join("|")})`,"i");const fw=new RegExp(`(${["google performance max","microsoft audience network","facebook audience network"].join("|")})`,"i");function gw(e,t){return"self"!==t&&"direct"!==t&&null!==t.match(e)}function mw({referrer:e,currentHost:t}){if(!e||""===e)return"direct";e=new Kn(e).hostname;let n="self";return n=e!==t?null==e?void 0:e.toLowerCase():n}const vw=new RegExp("^(.*cp.*|ppc|retargeting|paid)$"),yw=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i");function bw(e="",t){return e.replace(/[^a-zA-Z]/g,"").includes(t)}const ww=[[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})=>bw(t,"crossnetwork")||e.match(fw)],["Paid Search",({source:e,medium:t,referrer:n,gclid:i,_:r})=>i||bw(t,"paidsearch")||t.match(vw)&&(r.contains(rw,e)||gw(ow,n))],["Paid Social",({source:e,medium:t,referrer:n,fbclid:i,_:r})=>i||bw(t,"paidsocial")||t.match(vw)&&(r.contains(aw,e)||dw(n,r))],["Paid Video",({medium:e,source:t,referrer:n,_:i})=>bw(e,"paidvideo")||e.match(vw)&&(i.contains(cw,t)||gw(lw,n))],["Paid Shopping",({medium:e,source:t,referrer:n,_:i})=>bw(e,"paidshopping")||"shopping"===e||(gw(hw,n)||i.contains(pw,t))&&e.match(vw)],["Display",({medium:e,_:t})=>t.contains(["display","cpm","banner","interstitial","expandable","programmatic"],e)||bw(e,"display")],["Paid Other",({medium:e})=>bw(e,"paidother")||e.match(vw)],["Organic Search",({source:e,medium:t,referrer:n,_:i})=>bw(t,"organic")&&i.contains(rw,e)||!t&&gw(ow,n)],["Organic Social",({source:e,medium:t,referrer:n,_:i})=>!t&&dw(n,i)||bw(t,"social")||i.contains(aw,e)&&!t.match(vw)],["Organic Video",({medium:e,referrer:t})=>bw(e,"video")||!e&&gw(lw,t)],["Organic Shopping",({medium:e,referrer:t})=>bw(e,"organicshopping")||!e&&gw(hw,t)],["Email",({source:e,medium:t})=>null!==t.match(yw)||null!==e.match(yw)||bw(t,"newsletter")],["Affiliates",({medium:e})=>bw(e,"affiliate")||bw(e,"partner")],["SMS",({source:e,medium:t})=>bw(e,"sms")||bw(t,"sms")],["Push Notifications",({source:e,medium:t})=>t.endsWith("push")||bw(t,"mobile")||bw(t,"notification")||bw(e,"firebase")],["Audio",({medium:e})=>bw(e,"podcast")||bw(e,"audio")],["Referral",({medium:e,referrer:t})=>bw(e,"referral")||!!t&&"self"!==t&&"direct"!==t],["Other",({medium:e,source:t})=>!!e||!!t]],Sw="utm",Ew="enableFullUtmReferrer";class Iw{constructor(){this.name="WebAnalytics"}initialize(e,t){this.pendo=e;var n=(this.api=t)["ConfigReader"],n=(n.addOption(Ew,[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(Sw),this.storeParameters(i,t.agentStorage),this.suffix=this.api.ConfigReader.get("identityStorageSuffix")}extractParameters(e,t){var n,i,r,o,a,s,u=new Kn(e).hostname,d=mw({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(Ew)?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(ww,e=>e[1](o));if(e)return e[0]}storeParameters(e,t){0<this.pendo._.size(e)&&t.write(Sw,JSON.stringify(e),undefined,!1,!0,this.suffix)}loadParameters(e){e=e.read(Sw,!1,this.suffix)||e.read(Sw);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(Sw),e.clear(Sw,!1,this.suffix),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)}}var Cw=new Iw;const _w={children:[],props:{"class":"_pendo-step-container","data-layout":"tooltipBlank",id:"pendo-base"},type:"div"},xw={css:[],props:{scoped:"scoped",type:"text/css"},type:"style"},Tw={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"},kw={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"},Aw={children:[],props:{"class":"_pendo-text-paragraph",style:{}},type:"div"};function Rw(e,t){return{content:t,props:{id:"text-"+e,"class":"_pendo-text-plain",style:{color:"gray",margin:0}},type:"p"}}function Ow(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 Nw=`
|
|
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,_d.usesXhr()&&t.domUrl?(r.deferred.domJson=m.defer(),kr.get(c(t.domUrl)).then(function(e){r.domJson=Kd(e.data);var e=e.data;e=e,C.isObject(e)&&e.hasOwnProperty("type")&&e.hasOwnProperty("children")&&e.hasOwnProperty("props")?r.deferred.domJson.resolve():(_.critical(new Error("Response from the guide was not in proper JSON format")),r.deferred.domJson.reject())})["catch"](function(e){_.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=xa(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=xa(c(function(e){if(ut()){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}(Ze(n)));if(C.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(),xa({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=xa(function(e,t){if(!C.isString(e))return e;var n=C.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 C.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;C.isString(n)&&(o=n,a=e,s=t,n=C.reduce(u,(e,t)=>t(e,a,s),o),C.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?C.template(n):C.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=Kd(n),e.deferred.domJson.resolve())}}}(),Zd=(Xd.state={},Xd.queue=[],Xd.pending=function(){return C.reduce(Xd.state,(e,t)=>e+(t.loaded?0:1),0)},Xd.reset=function(){$d.reset(),Xd.state={},Xd.queue=[]},Xd.prefetch=function(e){var t;return Xd.hasContent(e)?C.get(Xd.state[Yd(e)],"promise"):(t=m.defer(),Xd.queue.push([t,e]),t.promise)},Xd.processPrefetch=function(e=10){return Xd.queue.length?(e=Xd.queue.splice(0,Math.max(e-Xd.pending(),0)),m.all(C.map(e,t=>Xd.fetchContent(t[1]).then(e=>{t[0].resolve(e)})["catch"](e=>{t[0].reject(e)})))):m.resolve()},Xd.fetchContent=function(t){var e=Yd(t);if(!(i=Xd.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=C.extend({id:r,language:n,guideId:t.guideId},C.pick(t,"contentUrl","contentUrlCss","contentUrlJs","domJsonpUrl","domUrl","domHash","contentHash","contentJsHash"));i.promise=Md.verify(o).then(function(){return i.verified=!0,$d.load(o)}).then(function(e){return i.loaded=!0,e}),Xd.state[e]=i}return i.promise.then(function(e){C.extend(t,e)})},Xd.hasContent=function(e){return me(e.content)||me(e.domJson)},Xd);function Xd(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(C.extend(i,{fetchContent:function(e=!1){return e?Xd.prefetch(i):Xd.fetchContent(i)}}),i.after("render",function(e){!function(e){var t=C.indexOf(n.steps,i);C.chain(n.steps).rest(t+1).first(e).each(function(e){C.isFunction(e.fetchContent)&&e.fetchContent()}).value()}(t)})),i}function Yd(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}var Qd=function(){var t=y.runtime;const r=[];function o(e,n,i,r){return C.filter(e,function(e){if(C.isFunction(e[r])){if(C.isFunction(e.test))try{return e.test(n,i,E)}catch(t){return _.critical("Error in global script test code block",{error:t}),!1}return C.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&&C.isFunction(e.script)&&i.push(e.script),C.size(r)&&(e=o(r,e,t,n),C.each(e,function(e){i.push(e[n])})),i}function i(n,i,r){const o=r.guide;o&&C.all(e(r,o,"beforeMount"),function(e){try{return e.call(n,i),!i.cancel}catch(t){return _.critical("Exception thrown running beforeMount for: "+JSON.stringify({guideId:o.id,stepId:r.id}),{error:t}),!1}})}var a=fn.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<C.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,C.each(["read","write","clear"],function(t){this[t]=h[t],this[t+"ByGuide"]=function(){var e=C.first(arguments)+":"+C.get(n,"guide.id");return h[t].apply(this,[e].concat(C.rest(arguments)))}},this);var e=C.bind(function(e){this.step.id!==e.step.id?_.debug("aborting afterUnmounted b/c step ids don't match"):this.purge()},this);this.purge=C.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=C.once(t)),n=this.step,i=t,t=Jn(t=e=>{var t=e["step"];if(t.id===n.id)return i(e);_.debug("called guide runtime callback on wrong step")}),a.on(e,t),this.purge=C.compose(this.purge,C.partial(a.off,e,t))):_.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)},{initialize:function(){t.on(n);var e=f.get("guides.globalScripts");C.each(e,Qd.addGlobalScript)},teardown:function(){t.off(n),C.each(r,Qd.removeGlobalScript)},addGlobalScript:function(e){var t;e=function(t){const e=C.without(C.keys(t),"script","test","regex","beforeMount");if(e.length){const n=t.script;t.script=function(){if(C.each(e,function(e){u(e)&&this.on(e,t[e])},this),C.isFunction(n))return n.apply(this,arguments)}}return t}(e),t=e,!C.isFunction(t.script)&&!C.isFunction(t.beforeMount)||t.test&&!C.isFunction(t.test)||t.regex&&!C.isRegExp(t.regex)?_.critical("Error adding invalid GlobalScript via API"):r.push(e)},removeGlobalScript:function(e){0<=(e=C.indexOf(r,e))&&r.splice(e,1)},getContext:function(e){return new d(e)},runCustomScripts:function(i,r){C.each(e(i,r),function(e){try{var t=Qd.getContext(i);e.call(t,i,r,E)}catch(n){_.critical("Exception thrown running code block for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:n})}})},handleEvent:n}}();function ec(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?C.find(e.children,ec):void 0}function tc(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=tc(e.children[n],t);if(i)return i}return!1}function nc(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=nc(e,t.children[n]);if(i)return i}}function ic(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 rc={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 C.reduce(e,function(e,t,n){var i=P.findResourceCenterHomeView(f),r=C.find(f,function(e){return e.id===t.id});if(E.designer)r=t,i=C.find(f,function(e){return C.get(e,"attributes.resourceCenter.isTopLevel")});else{if(!r)return e;if(!r.hasResourceCenterContent)return C.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),C.get(i,"attributes.notificationBubble")),c=C.get(i,"attributes.notifications"),d=(d&&c&&("AnnouncementsModule"===C.get(r,"attributes.resourceCenter.moduleId")&&(o=r.id),o="chat"===C.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=tc(c,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-row")}))&&(s=C.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)),tc(u=ac(u,t,u.props.id,n),function(e){e=C.get(e,"props.class");return e&&0<=e.indexOf("_pendo-resource-center-module-list-item-text-container")})),i=tc(u,function(e){e=C.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),l=tc(u,function(e){e=C.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 C.reduce(e,function(e,t,n){var i,r=sc(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=ac(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;C.filter(r,function(e){return sc(n,e)}).length?(e.children=C.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=C.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 C.reduce(e,function(e,t,n){var i,r,o,a=sc(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),tc(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=oc(t.subtitle,{currentStep:o,totalSteps:r}):t.stepProgress="Step "+o+" of "+r,i=ac(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=(C.forEach(r,function(e){e=sc(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 tc(e=ac(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=C.reduce(e,function(e,t){t=sc(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!C.every(e,function(e){e=e.steps[0];return!!Zd.hasContent(e)}))return[];var t=P.getResourceCenter(),h=C.get(t,"attributes.notificationBubble");h&&(delete h.dir,"rtl"===l.props["data-localization-direction"])&&(h.dir="rtl");return C.map(e,function(e,t){var n,i,r,o,a,s,u,d="whatsnew"===C.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=Wd(r=e),(u=n.steps[0]).render(),Qd.runCustomScripts(u,n),i=(n=u.guideElement)[0].id,ic(f,"pendo-whats-new-style-"+i,"#"+i+" h1::after { display:none; }",n[0]),d&&((o=uc(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=Wd(t=e),s=t.steps[0],Qd.runCustomScripts(s,u),u=JSON.parse(JSON.stringify(s.domJson)),d.children=[u],r&&(a=uc(r),u=tc(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=nc("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():C.find(n,function(e){return e.id===t.guideId}),o=C.get(r,"attributes.dates."+r.language,!1);o=o?{showsAfter:o}:(o=C.get(r,"currentFirstEligibleToBeSeenAt")||C.get(r,"showsAfter")||C.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=ac(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:uc,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return C.reduce(e,function(e,t,n){t=sc(i,t);return t&&e.push(t),e},[])}};function oc(e,n){return e.replace(/<%=\s*([A-Za-z_0-9$]+)\s*%>/gi,function(e,t){return C.isNull(n[t])||C.isUndefined(n[t])?e:n[t]})}function ac(e,t,n,i){if(e.content&&(e.content=oc(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?oc(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++)ac(e.children[r],t,n,i);return e}function sc(e,t){e=C.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 uc(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 dc={buildSvgNode:function(e,t){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return cc(t)}},createProgressCircleSvg:cc};function cc(e){var t,n,i,r,o,a,s;return _e(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 lc=function(e,t){return e<t},pc=C.negate(lc);function hc(){var e=Ko();return yo(e)?Xo(e):((e=jo()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function fc(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 gc(e){var t;if(e&&e.length)return t=yo(Ko())?Xo:So,(e=C.reduce(e,function(n,e){var i;return ca(e)?(i=t(e))?(C.each([["top",lc],["right",pc],["bottom",pc],["left",lc]],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 mc(e,t){var n=hc(),e=gc(e)||{top:0,left:0,right:n.width,bottom:n.height,width:0,height:0};return{viewport:n,box:e,overlays:fc(n,e,t)}}function vc(e){var t=[],n=C.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==Ko()){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&&C.each(o,function(e){t.push(e)})}catch(a){_.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var yc=null,bc=function(e){var t=!C.isEqual(e,yc);return yc=e,t},wc=null,Sc=function(e){var t=!C.isEqual(e,wc);return wc=e,t},Ec=null,Ic=function(e){var t=!C.isEqual(e,Ec);return Ec=e,t},Cc=function(e){return Sc(e.viewport)||bc(e.box)||Ic(e.overlays)};function _c(e){try{var t=mc(vc(e),C.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));Cc(t)&&C.each(e.backdrop.children,function(n){var e=n.getAttribute("pendo-region"),e=t.overlays[e];C.each(e,function(e,t){n.style[t]=e+"px"})})}catch(n){_.info("Failed to update BlockOut ui",{contexts:["error"]})}}function xc(e){try{var t,n,i,r;if(!(0<k("._pendo-guide-backdrop_").length))return t=mc(vc(e),C.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),Cc(t),n={"z-index":1e4,position:"fixed"},i=[],C.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,C.extend({},e,n));i.push(t)}),o=i,a=nc("pendo-backdrop",e.domJson),C.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_"),C.each(a.props,function(n,i){C.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){_.info("Failed to add BlockOut ui",{contexts:["error"]})}var o,a,s}var Tc="top",kc="bottom",Ac="left",Rc="right",Oc="center";function Nc(e,t,n){return n===Rc||n===Ac?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?Oc:n<e/2?Rc:Ac)}const Mc={DEFAULT_CARET_OFFSET:10,BOUNDARY_MARGIN_RIGHT:.98,BOUNDARY_MARGIN_LEFT:.02,Z_INDEX:{DEFAULT:"300000",CARET:11,BORDER_CARET:10}};var Lc={createBBTooltip:Fc,getBBTooltipDimensions:Bc,determineBBHorizontalBias:Nc,determineTooltipPosition:zc,positionBBTooltipWithBias:jc,calculateToolTipPositionForTopBottom:Hc,calculateToolTipPositionForLeftRight:Vc,buildTooltipCaret:Jc,styleTopOrBottomCaret:$c,styleLeftOrRightCaret:Zc,buildBorderCaret:Xc,determineBorderCaretColor:Qc,placeBBTooltip:function(e,t){var n,i,r,o,a,s,t=t||el(e);t&&(r=t.ownerDocument||document,n=r.defaultView||window,r=e.element||ld(e,r),i=Wo(r,n),"none"!==R(e.elements[0]).display)&&(r=So(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:Mc.DEFAULT_CARET_OFFSET,borderColor:a.borderColor,borderWidth:parseInt(a.borderWidth,10)||0},a=this.getBBTooltipDimensions(i,t,o,s,r,jo(n)),o.height&&o.width&&(t=e.find(".pendo-tooltip-caret")[0],s=e.find(".pendo-tooltip-caret-border")[0],t&&Kc(t,a,o,i),s)&&Yc(s,o,a.layoutDir,t),e.css({top:a.top,left:a.left,position:i.fixed?"fixed":"absolute"}))},attachBBAdvanceActions:Gc,attachScrollHandlers:Dc,isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!C.isObject(e.domJson)||!(e=ec(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForTooltip:function(e,t,n){Fc(t,e.element,e,n),e.hasBeenScrolledTo||(pa(e.element),fd(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)},patchGuideContainerWidthForResponsiveTooltips:function(e,t,n){t=t||el(e);var i,r,o,a,s,u;t&&(i=e.element||ld(e,t.ownerDocument||document))&&(o=t.style.width)&&-1!==o.indexOf("vw")&&(o=Pc(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 Pc(e,t,n,i){var r,o,a=(t.ownerDocument||document).defaultView||window,s=Wo(t,a),t=So(t),a=jo(a),u=e.attributes.layoutDir||"auto";return(0!==s.height||0!==s.width)&&(e=e&&!e.elementPathRule,n=tc(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:Mc.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 Fc(e,t,n,i){var r,o,a,s,u;if(n.guideElement)return(t=Pc(n,t,e,i))?({elementPos:e,tooltipSizes:a,screenPos:u,caretDimensions:r}=t,(o=n.guideElement).addClass(ud()?id:nd),Gc(n),a=Bc(e,{height:a.height,width:a.width},r,n.attributes.layoutDir,u,t.screenDimensions),n&&(n.dim=a),n&&C.isFunction(n.getGuide)&&(s=n.getGuide()),u=C.get(s,"attributes.resourceCenter"),e.fixed?(o.css({position:"fixed"}),i.style.position="absolute"):n&&u||(i.style.position="absolute"),r.height&&r.width&&Jc(o,a,r,e),t=Mc.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===Ac&&o.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),Dc(n,tl),o[0]):null}function Dc(e,t){e&&C.isFunction(e.attachEvent)&&(sd()&&e.element===k.getBody()||(t=C.throttle(C.bind(t,e,e),10),e.attachEvent(window,"scroll",t,!0),aa(C.bind(e.attachEvent,e),e.targetElement,t)))}function Uc(t,n){var e=k(n.elementPathRule)[0];n.attachEvent(e,t,function(e){k.data.set(e,"advanced",!0),Lg(t,n)})}function Gc(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?Uc("mouseover",e):e.attributes.advanceActions.elementClick&&Uc("click",e))}function Bc(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=Nc(e,o,i),t.vbias=(a=e,u=o,(s=i)===Tc||s===kc?s:(s=a.top,(u=(a=u.height)/3)<s&&s<2*u?Oc:s<a/2?kc:Tc)),t.layoutDir=zc(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 zc(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===Oc)&&(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!==Oc&&(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?Hc(e,n,t,e.layoutDir,e.hbias,i):Vc(e,n,t,e.vbias)}function Hc(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*Mc.BOUNDARY_MARGIN_RIGHT,left:i.width*Mc.BOUNDARY_MARGIN_LEFT});return s.left="right"===r?function(e,t,n,i,r,o){var n=qc(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?Wc(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=qc(n),t=t.width;e=e.left-t+e.width/2+n;if(e<o)return r<e+t+(n=o-e)?Wc(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 Wc(e,t,n)}else if(e<r){o=(e+=r-e)+t;if(i<o)return Wc(e,t,n)}return e}(n,e,t,a.right,a.left),s}function qc(e){e=(parseInt(e.offset,10)||0)+(parseInt(e.width,10)||0)+(parseInt(e.borderWidth,10)||0);return isNaN(e)?0:e}function Wc(e,t,n){n=n.width-(e+t);return n<e?e-(e-n)/2:e<n?e+(n-e)/2:e}function Vc(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 Jc(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=Mc.Z_INDEX.CARET,Kc(r,t,n,i),e.find("#pendo-guide-container")[0].parentNode);i.appendChild(r),n.borderWidth&&(e=Xc(r,n,t.layoutDir),i.appendChild(e))}function Kc(e,t,n,i){"top"!==t.layoutDir&&"bottom"!==t.layoutDir||$c(e,t,n,i),"left"!==t.layoutDir&&"right"!==t.layoutDir||Zc(e,t,n)}function $c(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 Zc(e,t,n){var i,r=jo();return e.style["border-top"]=n.width+"px solid transparent",e.style["border-bottom"]=n.width+"px solid transparent",e.style.bottom="",t.vbias===Tc?(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===kc?(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 Xc(e,t,n){var i=e.cloneNode();return i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=Mc.Z_INDEX.BORDER_CARET,Yc(i,t,n,e),i}function Yc(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]=Qc(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"),C.extend(e.style,r)}function Qc(e,t){return"transparent"===e?e:t}function el(e){var t,n;if(e.guideElement)return t="pendo-resource-center-container"===e.guideElement.attr("id"),n=ec(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}function tl(e){ca(e.element)?(Lc.placeBBTooltip(e),k(e.elements[0]).css({display:"block"})):k(e.elements[0]).css({display:"none"})}function nl(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=C.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}il(o,e),i.push(o)}}}}function il(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 rl(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=jo().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 ol(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=jo().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 al(e,i){var e=C.isArray(e)?e:[e],e=C.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=C.reduce(t,function(e,t){return e.concat(C.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&&sl(C.reduce(t,function(e,t){var n,t=k(t),i=cl(t[0]),i=i.marginLeft+i.marginRight,r=dl(t);return r&&(n=r.paddingLeft+r.paddingRight,r=r.width-i-n,e.push({$blockElement:t,availableSpace:r})),e},[])),C.each(e,function(e){var t=e,t=((t=k("._pendo-open-text-poll-input",t))&&t.length&&C.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)),cl(n[0])),r=e.marginLeft+e.marginRight,o=dl(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&ul(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),sl({$blockElement:n,availableSpace:o}))}),e);(t=k(["._pendo-video","._pendo-image"].join(","),t))&&t.length&&C.each(t,function(e){var t=k(e),n=cl(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=dl(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&ul(t,i,r,a),sl({$blockElement:t,availableSpace:a}))})})}function sl(e){C.isArray(e)||(e=[e]),C.each(e,function(e){e.$blockElement.css({"max-width":"none"})});var n=C.map(e,function(e){return cl(e.$blockElement[0]).width});C.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function ul(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 dl(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 cl(e){e=R(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var ll,M={calculateTotalOffsetWidth:fl,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=fl(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 C.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=fl(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=fl(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return C.filter(e,hl)},getPendoVisualElements:function(e){return C.filter(e,function(e){return!hl(e)})},initializeFlexElements:function(e){var t=e.cloneNode(),n=pl(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++)ml(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:hl,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=fl(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=fl(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=fl(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=C.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"!==C.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=C.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:pl,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 C.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:gl,wrapFlexElementsInFlexRows:function(e,t,n){for(var i=n||gl(t),r=M.createFlexRow(),o={row:r,rowWidthUsed:0},a=[o],s=0;s<e.length;s++){var u=e[s],d=So(u)["width"],d=parseInt(d,10);o.rowWidthUsed+=d,o.rowWidthUsed>i&&0!==C.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||gl(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:ml,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&&(yl(e),M.flexElement(e,n))},flexElement:function(e,i){e=k("[data-pendo-display-flex]",e);C.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:yl};function pl(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 hl(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function fl(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 gl(e){var t=So(e)["width"],e=R(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function ml(e){vl(e);var t=Xo(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-")&&(vl(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function vl(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function yl(e){var n="data-aspect-ratio",e=k("["+n+"]",e);C.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 bl(){return!E.designer&&f.get("disableGuidePseudoStyles")}function wl(e,t,n){return e&&e.templateName?rc.buildNodesFromTemplate(e.templateName,e,t,n,Il):"style"===e.type&&bl()?[]:[Il(e,t,n)]}function Sl(e,t,n,i){e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw i&&(e+=' for node type "'+i+'"'),_.info(e),new Error(e)}function El(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=C.keys(n);return C.reduce(e,function(e,t){return s[o]&&s[o][t]&&Sl(t,r,i,o),a[t]||u.test(t)||d.test(t)||Sl(t,r,i),e[t]=n[t],e},{})}function Il(n,i,e){i=i||{id:"unknown",guideId:"unknown"},n.props=El(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&&Lc.attachScrollHandlers(i,_c),xc(i);if(C.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!==Xe.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++)C.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=Tl(n.css):r.text(Tl(n.css))),n.svgWidgetId&&dc.buildSvgNode(n.svgWidgetId,n).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)xl(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(C.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=oa(dd()),u=s!==document,d=0;d<n.children.length;d++){var c=wl(n.children[d],i,e);C.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){Cl(e,i)}):Cl(r[0],i),r}function Cl(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++,_l(k(e),t))}function _l(e,i){e.on("load",function(){var e,t={},t=(!i.containerId&&i.domJson&&(t=ec(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&&(ol(t,i.guideElement),al(t,i.guideElement),M.flexAllThings(t,i),e=i.getGuide(),C.get(e,"attributes.isAnnouncement")||"AnnouncementsModule"===C.get(e,"attributes.resourceCenter.moduleId")||(rl(t,i.guideElement),(e=n.children.item("pendo-guide-container"))&&e.style&&"auto"===e.style.overflow&&(al(t,i.guideElement),M.flexAllThings(i.containerId,i))),"tooltip"===i.attributes.calculatedType&&Lc.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&&Lc.positionStepForTooltip(i,i.domJson,e),e.style.visibility="visible",e.parentNode.style.visibility="visible",M.flexAllThings(i.containerId,i)):_.info("Failed to find guideContainer for id: "+i.containerId)})}function xl(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 Tl(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=Tl(n[r].styles):C.each(n[r].styles,function(e,t){i+=t+":"+e,n[r].selector.match(/\d+%/)||(i+="!important;")}),i+="}";return i}function kl(t){C.each(document.head.childNodes,function(e){e&&k.hasClass(e,"pendo-style-"+t)&&Vo(e)})}var Al=function(){var e=window.navigator;return((C.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},Rl="meta",Ol=C.compose(JSON.parse,JSON.stringify),Nl=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()},Ml=function(e={}){(e=C.isObject(e)?e:{}).jwt&&e.signingKeyName&&(t=gs.getJwtOptions(e,"updateOptions"))&&(gs.set(C.pick(e,"jwt","signingKeyName")),e=t),t=e,n=C.extend({},t.visitor),i=C.extend({},t.account),t=C.extend({},t.parentAccount),n.id===Nn&&(_.info("Missing visitor id."),delete n.id),kn(i.id)&&kn(t.id)&&(Pn(i.id)?t.id=i.id.split(Ln)[0]:i.id=""+t.id+Ln+i.id),kn(i.id)&&(i.id=""+i.id),kn(n.id)?n.id=""+n.id:n.id=b({generate:!0}),n.language=Al(),e={visitor:Ol(n),account:Ol(i),parentAccount:Ol(t),date:Nl(),version:E.VERSION},g.getters["metadata/selfHosted"]()&&(e.selfHosted=!0);var t,n=C.clone(Ul()),i=(f.setLocalConfig(C.extend({},f.getLocalConfig(),e)),g.commit("metadata/setMetadata",e),Ul()),r=(kn(e.visitor.id)&&(E.identify(e.visitor.id,e.account.id),e.visitor.id=b(),e.account.id=jn()),rt(e)),o=(void 0!==(o="object"==typeof(o=r)?rt(o):o)&&o.toString&&(o=o.toString()),""+(C.isNumber(ll)?ll:qn(Rl))!==o),r=(ll=r,o&&Hn(Rl,r),!C.isEqual(n,i));return{options:e,hashChanged:o,storeChanged:r}},Ll=Jn(function(e){e=Ml(e);y.metadata.trigger(e)}),Pl=Jn(function(e,t){C.isObject(e)?Ll(e):Un(e,t)}),Fl=function(){var t,e=k("script");return e=e,t=new RegExp("/agent/static/"+E.apiKey+"/pendo\\.js$"),!C.any(e,function(e){return t.test(e.src)})&&!Ee()},Dl=function(){var e=f.get("blockAgentMetadata");return e!==undefined&&e};function Ul(){return g.getters["metadata/metadata"]()}function Gl(){return JSON.parse(JSON.stringify(Ul()))}function Bl(e){var t=e.data[0],n=f.getLocalConfig()||{};Vn(e)?(On([Rl]),g.commit("metadata/reset",t)):(n.visitor=C.extend({},n.visitor,{id:t.visitor_id}),n.account=C.extend({},n.account,{id:t.account_id}),f.setLocalConfig(n),g.commit("metadata/setMetadata",n))}var zl={Launcher:{addBehavior:C.noop},Metadata:{getMetadata:Ul},Util:{documentScrollTop:fo,documentScrollLeft:go,getOffsetPosition:Wo},Events:y,JWT:{getJWT:gs.get}};var jl,Hl,ql,Wl,Vl={},Jl=(Hl=[],ql=[],Wl={},(jl=Vl).getExtensions=function(){return ql},jl.tagExtension=function(e,t){e=jl.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},jl.findExtensionByTag=function(t){return C.find(ql,function(e){return C.contains(e.tags,t)})},jl.findExtensionByName=function(e){return C.findWhere(ql,{name:e})},jl.filterExtensionsByUse=function(t){return C.filter(ql,function(e){return e.use===t})},jl.findExtensionByNameAndProvider=function(t,n){return C.find(ql,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):[],Wl[e]={handler:t,validators:n}},jl.getExtensionFrames=function(){return C.reduce(ql,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=C.filter(e,Kl)).length&&(Hl=function n(e){if(!e.length)return e;var t=C.filter(e,$l);if(t.length)return n(C.difference(e,t));return e}(Hl.concat(e)))});function Kl(t){var e;return!!C.every(["name","version","use","type","uri"],C.partial(C.has,t))&&(e=t.use,e=Wl[e]?Wl[e].validators:[],C.every(C.map(e,function(e){return e(t)})))}function $l(e){var t;return"behavior"===e.use?!!e.uri(jl,zl)&&(ql.push(e),!0):(t=e.use,!!(t=Wl[t]?Wl[t].handler||C.identity:null)&&((e=t(e))&&ql.push(e),!!e))}var L,Zl,Xl,Yl,Ql,ep,P={initializeResourceCenter:function(r){if(!(L=np(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=ip(L,r),t=C.reduce(e,function(e,t){return tp(t)?e.concat(t.steps[0].fetchContent()):e},[]);return t.push(jd.validate(L).then(C.noop,function(){L.launchMethod="api"})),L.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},C.forEach(dp(),function(e){var t=Vl.findExtensionByNameAndProvider("chat",e),t=(t&&hp(e,t),Vl.findExtensionByNameAndProvider("helpcenter",e));t&&hp(e,t)}),C.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=sp(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&up(e.integrationName,e.integrationProvider),C.reduce(n,function(e,t){var n=C.find(r,function(e){return e.id===t});return n?e.concat(n):e},[]));"AnnouncementsModule"===i&&(L.attributes.notifications.individualCounts[t.id]=0,C.forEach(e,function(e){Gp(e)||e.isControlGroup()||L.attributes.notifications.individualCounts[t.id]++}));-1<C.indexOf(["GuideListModule","OnboardingModule","AnnouncementsModule"],i)&&C.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,_.error("Failed to load one or more Resource Center modules"),m.resolve()))},findResourceCenterHomeView:np,findResourceCenterModules:ip,replaceResourceCenterContent:rp,renderResourceCenterModule:function(e,t){rp(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(),C.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=Vl.findExtensionByNameAndProvider(e,t);return e?(n=k(n))?((e=e.getFrame()).appendTo(n),void e.css({display:"block"})):_.info("could not find target element for "+t+" integration"):_.info(t+" integration has not been loaded into the agent")},appendIntegrationToBodyByNameAndProvider:up,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(dd())})},getResourceCenter:wp,getResourceCenterContainer:Sp,getResourceCenterBadge:Ep,addNotificationBubbleToResourceCenterBadge:Op,addNotificationBubbleToTargetElement:Np,updateNotificationBubbles:function(){var e=L,t=C.get(e,"attributes.notifications");if(t){var n=xp(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&Dp(),t.totalUnseenCount=n;else{Tp();var i=n!==t.totalUnseenCount;if(i||!Cp(Yl)){if("badge"===e.launchMethod){i=Ep();if(!i)return;Op(i.element(),e.attributes.notificationBubble,n)}if("dom"===e.launchMethod&&C.get(e,"attributes.activation.selector")){i=k(e.attributes.activation.selector);if(!i.length)return;Np(i[0],e.attributes.notificationBubble,n),l(window,"resize",C.debounce(_p,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:Dp,updateNotificationBubbleCount:Up,updateNotificationBubbleOnHomeView:kp,updateOrCreateNotificationBubble:Mp,hexToRgb:Ip,doesIntegrationExist:sp,calculateTotalNotificationCount:xp,updateNotificationBubblesOnHomeView:Tp,createNotification:Pp,appendNotificationBubble:Fp,hasAnnouncementBeenSeen:Gp,clearAnnouncementUnseenInterval:op,createAnnouncementUnseenInterval:ap,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=C.find(Ku(),function(e){return e.id===t});if(C.get(e,"attributes.resourceCenter.isModule",!1))return e}}},dismissResourceCenter:Bp,repositionResourceCenter:function(){var e=P.getResourceCenterContainer();{var t,n,i;e&&(i=P.findResourceCenterHomeView(Ku()).steps[0],t=C.get(i,"domJson.props.style.height"),t=parseInt(t,10),t=isNaN(t)?0:t,n=parseInt(C.get(i,"domJson.props.style.bottom",0),10),i=parseInt(C.get(i,"domJson.props.style.top",0),10),n=isNaN(n)?0:n,i=isNaN(i)?0:i,(n=jo().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")}nl(k(e))},repositionDoubleResourceCenterBadge:function(){var e,t,n;g.getters["frames/isLeader"]()&&1<(e=C.unique(C.compact([].concat(C.toArray(k("._pendo-resource-center-badge-container"))).concat(C.toArray(k("._pendo-resource-center-badge-container")))))).length&&function(e){var t=Xo(e[0]),e=Xo(e[1]);return Yo(t,e)}(e)&&(t=Wo(e[0]).width+5,n=Wo(e[1]).left-t<0?"":"-",e[1].style.transform="translateX("+n+t+"px)")},resourceCenterIgnoreRtl:function(){return C.get(this.getResourceCenterBadge(),"ignoreRTL",!1)},adjustResourceCenterWidth:function(e){var t=Sp();if(t){o=jo().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:hp,renderNativeIntegration:yp,isSupportedNativeIntegration:cp,handleNativeIntegrationContinuation:bp,isProviderInstalled:lp,adjustNotificationBubbleForResize:_p,getNotificationBubbleDefaultCss:Lp,getModuleId:zp,isIframeModule:function(e){return"IframeModule"===zp(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===zp(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===zp(e)&&e.hasResourceCenterContent},isFullyCustom:function(e){return"FullyCustomModule"===zp(e)},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!P.isSupportedNativeIntegration(e.integrationProvider)||P.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n=np(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=ip(n,e),i=[],r=C.indexBy(e,"id");return C.each(t,function(e){var e=e.attributes.resourceCenter;"AnnouncementsModule"===e.moduleId&&(e=e.children,e=C.reduce(e,function(e,t){t=r[t];return t?e.concat(t):e},[]),C.each(e,function(e){tp(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"===C.get(t,"data-localization-direction",!1),e=C.get(e,"attributes.badge.ignoreRTL",!1);n&&e&&!t["data-direction-changed"]&&(n=C.get(t,"style.left",!1),e=C.get(t,"style.right",!1),n)&&e&&(t.style.left=e,t.style.right=n,t["data-direction-changed"]=!0)},stashBadgeAriaLabel:Ap,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:Rp,updatePseudoStyleSelectors:jp,hideRCBadge:Hp};function tp(e){return e.steps&&e.steps.length&&C.isFunction(e.steps[0].fetchContent)}function np(e){var e=C.filter(e,function(e){return C.get(e,"attributes.resourceCenter.isTopLevel")&&!e.isFrameProxy}),t=C.find(e,function(e){return"staged"===e.state});return t||e[0]}function ip(t,e){return C.filter(e,function(e){return e&&!e.isFrameProxy&&C.get(e,"attributes.resourceCenter.isModule",!1)&&e.state===t.state})}function rp(t,e,n,i=!0){if(!Xl){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),Sp());if(e){var a=k(e).find('[id^="pendo-g-"]')[0];if(a){var s,u=a.getAttribute("data-pendo-guide-id"),d=C.find(Ku(),function(e){return e.id===t}),c=(t!==L.id?(kl(C.get(L.activeModule||L,"steps.0.id")),L.activeModule=d):(s=L.activeModule,kl(C.get(s,"steps.0.id")),delete L.activeModule),C.get(d,"attributes.resourceCenter.integrationProvider")),l=(cp(c)&&yp(c),d.steps[0]),c=jp(l.domJson),c=(c.props["data-pendo-guide-id"]=d.id,Il(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"===zp(d)&&l.guide.guidesInModule?(al(r=C.reduce(l.guide.guidesInModule,function(e,t){var n;return C.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),C.each(r,function(e){M.flexAllThings(e,l)})):M.flexAllThings("pendo-resource-center-container"),nl(k(e)),p.style.left="0px",!n){Xl=!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),Xl=!1},200)}catch(h){throw Xl=!1,h}}return"AnnouncementsModule"===zp(d)&&(ap(),r=rc.getGuidesInResourceCenterModule(d,Ku()),(n=C.reduce(r,function(e,t){return t.steps&&t.steps.length&&Zd.hasContent(t.steps[0])||e.push(t.fetchContent()),e},[])).length)&&((o=function(){var i,e,t;if(C.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 C.each(C.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 op(){window.clearInterval(Zl),Zl=null}function ap(){Zl=Zl||window.setInterval(function(){var e=Sp();if(!e)return op();e=k(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return op();var t=k(e).find('ol[id^="pendo-list"]');if(!t.length)return op();var n=Xo(t[0]),i=k(t).find("li");if(!i.length)return op();for(var r=e.attr("data-pendo-guide-id"),o=L.attributes.notifications.individualCounts[r],a=n.height/3,s=Xo(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(Xo(i[u]).top-n.top>n.height-a&&!s)break;var p=d.attr("data-pendo-announcement-guide-id"),l=C.find(Ku(),function(e){return e.id===p});if(!l)break;c&&(d.removeClass("pendo-unseen-announcement"),c=d.find(".pendo-unread-announcement-mini-bubble"),_e(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"),Gp(l)||o--,Up(o,r)),l.steps[0].seenState="advanced",Zg(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"),Yg(l.id,l.steps[0].id,b(),"advanced",l.language)}}},500)}function sp(e,t){return Vl.findExtensionByNameAndProvider(e,t)}function up(e,t){e=Vl.findExtensionByNameAndProvider(e,t);if(!e)return _.info(t+" integration has not been loaded into the agent");cp(t)&&lp(t)?L.hasEligibleNativeIntegrationModule=!0:(Zo((t=e.getFrame())[0])||t.appendTo(dd()),t.css({display:"none"}))}function dp(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging"]}function cp(e){return!!e&&0<=dp().indexOf(e)}function lp(e){return!!e&&null!==(e=pp(e))&&C.isFunction(window[e])}function pp(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 hp(e,t){if(e)if(lp(e))fp(e,t);else{var n;if("function"==typeof Object.defineProperty){const i=pp(e);null!==i&&(Ql&&Ql[i]?Ql[i][e]||(Ql[i][e]={installed:!1,integrationObj:t}):((Ql=Ql||{})[i]={[e]:{installed:!1,integrationObj:t}},Object.defineProperty(window,i,{get(){return n},set(e){n=e,C.forEach(Ql[i],function(e,t){const n=e.integrationObj;!e.installed&&lp(t)&&(e.installed=!0,fp(t,n),up(n.name,t),C.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 fp(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=mp(i);gp(n,"webWidget","hide"),gp(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),gp(n,"webWidget:on","close",function(){gp(n,"webWidget","hide"),vp()}),L.isInProgress()&&!L.attributes.doNotResume&&bp(L.activeModule),gp(n,"webWidget:on","chat:unreadMessages",function(e){Up(e,"chat")});break;case"zendesk-messaging":i=t;gp(i=i.data.provider.name,"messenger","hide"),gp(i,"messenger:on","close",function(){vp()}),gp(i,"messenger:on","unreadMessages",function(e){Up(e,"chat")});break;case"intercom-chat":var r=t;r=mp(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(){vp()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=Ul();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 Up(1,"chat")})}),window.drift.on("chatClose",function(e){Up(0,"chat"),window.drift.hide(),vp()})}}function gp(e,...t){try{ep&&ep[e]||window.zE.apply(null,t)}catch(n){ep?ep[e]=!0:ep={[e]:!0}}}function mp(e){e=C.get(e,"data.options.labels.position");return e=e&&e.split("-")}function vp(){Bp(L.activeModule),delete L.activeModule,L.continueToNativeModule=!1}function yp(e,t){if(e){var n=Ul();if(L.isShown()&&L.hide(),ep&&ep[e])_.info(e+" integration failed to communicate with API, closing"),P.replaceResourceCenterContent(L.id,undefined,!0),vp();else{var i=Ep();switch(i&&Hp(i,L),e){case"zendesk-messaging":gp(e,"messenger","show"),gp(e,"messenger","open");break;case"zendesk-native-kb":gp(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),gp(e,"webWidget","show"),gp(e,"webWidget","open");break;case"zendesk-chat":gp(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&gp(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})}Up(0,"chat"),!L.activeModule&&t&&(L.activeModule=t).steps[0].onShown("launcher")}}}function bp(e){e&&!e.isTopLevel&&(yp(C.get(e,"attributes.resourceCenter.integrationProvider")),L.activeModule||(L.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function wp(){return L}function Sp(){return C.get(L,"steps.0.guideElement.0")}function Ep(){if(L&&L.id)return Wu[L.id]}function Ip(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 Cp(e){return e&&C.all(e,function(e){return Zo(e&&e.length?e[0]:e)})}function _p(){var e,t=P.getResourceCenter(),n=C.get(t,"attributes.notifications");n&&(n=P.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&C.get(t,"attributes.activation.selector")&&(e=k(t.attributes.activation.selector)).length&&P.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function xp(e){return C.reduce(e,function(e,t){return e+t},0)}function Tp(){var e,t=L;t&&(t=C.get(t,"attributes.notifications"))&&(e=Sp())&&k(e).find("._pendo-resource-center-home-list").length&&C.each(t.individualCounts,function(e,t){kp(e,t)})}function kp(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 Ap(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function Rp(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function Op(e,t,n){var i=Rp(n);let r=e.getAttribute(i);r&&(Ap(e),r=r.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",r));var i=C.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();Mp(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 Np(e,t,n){var i=wo(e,e),r=wo(e,Ko());Mp(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 Mp(e,t,n,i,r){var o,a;Cp(Yl)?(a=(o=Lp(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=C.extend(a,i),o=C.extend(o,r),Yl.bubbleEle.css(a),Yl.unseenCountEle.css(o),Yl.unseenCountEle.text()!=""+n&&Yl.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&&Fp(Yl=Pp(t,n,i,r),e)}function Lp(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 Pp(e,t,n,i){var r=Lp(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=C.extend(o,n),n=C.extend(r,i);return a.css(o),s.css(n),_e(10)||bl()||(i="rgb("+(r=Ip(e["background-color"])).r+", "+r.g+", "+r.b+")",ic(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 Fp(e,t){e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function Dp(){var n=Yl?Yl.bubbleEle:k(".pendo-resource-center-badge-notification-bubble"),i=Yl?Yl.styleEle:k("#pendo-resource-center-bubble-animation");n&&C.each(n,function(e,t){n[t]&&(t=n[t])&&t.parentNode&&t.parentNode.removeChild(t)}),i&&C.each(i,function(e,t){i[t]&&(t=i[t])&&t.parentNode&&t.parentNode.removeChild(t)}),Yl=null,P.resetBadgeAriaLabel()}function Up(e,t){var n=L;n&&(n=C.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,P.updateNotificationBubbles())}function Gp(e){return!(!C.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function Bp(e){var t=C.get(e,"attributes.resourceCenter.isModule",!1)?e:P.findShownResourceCenterModule();t&&(t=C.first(t.steps),Og(t));t=(C.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:P.findResourceCenterHomeView(Ku())).steps[0];return Og(t)}function zp(e){return C.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(...C.map(e.children,function(e){return i(e,t)})):n}(e,function(e){return e.css&&e.css.length});return C.forEach(t,function(e){C.forEach(e.css,function(e){e.selector=e.selector.replace(n,"[id^='$1']")})}),e}function Hp(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete Wu[t.id])}var qp=1e4,Wp="lastStepAdvanced";function Vp(e){g.dispatch("guideState/updateLastGuideStepSeen",e),g.dispatch("guideState/write"),g.dispatch("frames/changeLastGuideStepSeen",e)}function Jp(){g.dispatch("guideState/regainFocus")}function Kp(){return g.state.guideState.lastGuideStepSeen}var i={actions:{init(e){e.getters.storage().registry.addLocal(Wp),e.commit("setScopedStorageKey",Bt(e.state.storageKey)),y.identify.on(function(e){Vn(e)&&On([Wp])})},load(t,e){if(e){var n;try{n=JSON.parse(e)}catch(i){}n&&C.each([].concat(n),function(e){t.commit("setStepState",e)})}},forceExpire(n){C.each(n.state.steps,function(e,t){n.commit("expireStepState",t)})},expire(n){var i=n.getters.now();C.each(n.state.steps,function(e,t){i-e.time>n.state.ttl&&n.commit("expireStepState",t)})},apply(o){var a,s=C.indexBy(o.getters.guideList(),"id");o.dispatch("expire"),C.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=C.findWhere(i.steps,{id:r}))&&(n=o.state.storageKey,t.seenState!=e.state&&(_.info("making sure that seenState = '"+e.state+"' for "+n+": "+r),t.seenState=e.state),t.snoozeEndTime!=e.snoozeEndTime&&(_.info("making sure that snoozeEndTime = '"+e.snoozeEndTime+"' for "+n+": "+r),t.snoozeEndTime=e.snoozeEndTime),t.seenReason!=e.seenReason&&(_.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),_.info("making sure that dismissCount = '"+t.dismissCount+"' for "+n+": "+r)),e=C.indexOf(i.steps,t),C.each(i.steps.slice(0,e),function(e){C.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})))}),a&&o.dispatch("updateLastGuideStepSeen",C.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=C.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(C.map(e.state.steps,function(e){return C.extend({tabId:t},e)}));_.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)&&(ah(),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||(sh(),uh())),n&&nv()}},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:qp,storageKey:Wp,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=C.get(i,"frames.tabId");return!!e&&!!((e=C.max(C.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()}}},$p={canDisplay:function(e,t,n){if(n&&n.enabled&&C.isFinite(t)){t=Yp(t,n);if(C.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=C.reduce(n,(e,t)=>e.concat(i[t]||[]),[]),t=C.uniq(n.concat(t)))}var r,o,n=function(e){e=C.defaults(C.groupBy(e,function(e){return Xp(e)?"override":"auto"}),{override:[],auto:[]});return e.override.concat(e.auto)}(function(e,t){var n;return C.isArray(t)&&t.length?(n=C.indexBy(e,"id"),t=C.reduce(t,i,[]),C.chain(e).pluck("id").reduce(i,t).value()):e;function i(e,t){return n[t]&&(e.push(n[t]),delete n[t]),e}}(C.filter(e,Zp),t));return C.find(e,function(e){return e.isTraining})?(t=f.get("adoptPrioritizeAdoptGuides"),e=t,r=[],o=[],C.each(n,function(e){(e.isTraining?r:o).push(e)}),e?r.concat(o):o.concat(r)):n},tryDisplayGuide:function(e,t){var n=$p.lastDismissedTime(t),n=$p.canDisplay(v(),n,t.throttling);if((Xp(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:Yp};function Zp(e){return e&&/auto/.test(e.launchMethod)}function Xp(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||C.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function Yp(e,t){var n=t.interval,t=(t.unit||"").toLowerCase();return C.isNumber(n)&&ct(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:C.isNumber(n)?(new Date).getTime():void 0}function Qp(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+"?"+to(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 C.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=Zr(e).substring(1),t=eo(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=Zr(e.substring(n+1)).substring(1),C.extend(t,eo(n))),t}}var eh=C.memoize(function(){return Qp(N)});function th(e,t){var e=C.find(e,function(e){return e.isContinuation(t)}),n=e&&e.attributes&&e.attributes.doNotResume;if(e&&!n)return e}class nh{constructor(){this.name="autoDisplay",this.queue=[]}markDirty(){md()&&(this.queue.push("permalink","continuation"),this.queue.push(...$p.sortAndFilter(Ju(),E.autoOrdering)))}process(e){if(mg())this.cancel();else{var t=this.queue.shift();if("permalink"===t)return eh().tryDisplay();if("continuation"===t){var n=th(Ju(),Kp());if(n)return e.saveContext(n),n.show("continue")}else if(t){if(!th(Ju(),Kp()))return e.saveContext(t),$p.tryDisplayGuide(t,E);this.cancel()}}}handleProcessTimeExceeded(e){e=e.getContext();e&&_.warn("Auto display ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var ih=null,rh=500,oh=function(e){ih=C.delay(function(){ih=null,uh()},e=e||rh),E.guidesProcessingThreadHandle=ih},ah=function(){ih&&(clearTimeout(ih),ih=null,E.guidesProcessingThreadHandle=ih),g.dispatch("guideUpdate/stopScheduledUpdate")},sh=function(){Sg(),yh.cancel();for(var e=0;e<qu.length;e++){var t=qu[e];t.parentNode.removeChild(t)}qu.length=0,g.dispatch("guideUpdate/stopObserver"),y.guideLoopStopped.trigger()},uh=function(){if(ah(),tv.pending||hm&&E.id&&E.id!==hm.id)_.info("guides are loading.",{contexts:["guides","loading"]});else if(qm())_.info("guides are disabled.",{contexts:["guides","disabled"]});else if(Wm())_.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!g.getters["guideState/tabLostFocus"]())try{var e=td();e&&0!==e.length&&(g.dispatch("guideUpdate/startObserverIfNeeded"),yh.isComplete()&&yh.markDirty(),g.getters["frames/leaderExists"]())&&yh.process()}catch(t){yh.cancel(),_.critical("ERROR in guide-loop",{error:t})}finally{yh.paused||(yh.isComplete()?(g.state.guideUpdate.useObserver&&!g.state.guideUpdate.needsUpdate||oh(),y.guideUpdateComplete.trigger()):oh(50))}};var dh=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)),uh()},ch=function(){qm()||Jm(!0),sh(),fm()};class lh{constructor(e,t){this.dirty=!1,this.name=e,this.processFn=C.isFunction(t)?t:C.noop}markDirty(){this.dirty=!0}process(){this.processFn(),this.dirty=!1}cancel(){this.dirty=!1}isComplete(){return!this.dirty}}class ph{constructor(){this.name="badge",this.queue=[]}markDirty(){this.queue.push.apply(this.queue,C.filter($u(Ju()),rd))}process(e){var t=this.queue.shift();e.saveContext(t),t&&t.placeBadge()}handleProcessTimeExceeded(e){e=e.getContext();_.warn("Badge ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}function hh(i,e){var r,o,t,n,a;P.isFullyCustom(i)||(r=!1,o=[],t=C.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=C.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=rt(C.map(n,function(e){var t=e.isAnnouncement()||e.isWhatsNew()?null:C.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=rt(C.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=C.find(t,function(e){return e.isContinuation(Kp())}),a=C.get(n,"attributes.doNotResume"),e=C.get(n,"attributes.resourceCenter.integrationProvider"),P.isSupportedNativeIntegration(e))&&!a&&i&&(i.continueToNativeModule=!0,n.continueToNativeModule=!0),i.activeModule&&((e=C.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 fh(e,t,n){var i,r,o=Wu[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),C.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||(C.isFunction(e.placeBadge)&&e.placeBadge(),o=Wu[e.id]),o&&o.show(),e.badgeHidden=!1)}function gh(e){var t,n,i,r,o,a;e&&e.launchMethod&&(e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith,t=e.activeModule,n=C.get(t,"attributes.resourceCenter.integrationProvider"),e.isNativeModuleActive=t&&P.isSupportedNativeIntegration(n),P.isFullyCustom(e)?e.hasResourceCenterContent=!0:(e.isShown()||!g.getters["frames/isLeader"]()?hh(e,fh):(t=e,n=fh,P.isFullyCustom(t)||(i=[],o=[],(r=C.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=C.flatten(C.pluck(t.modules,"guidesInModule")),o=C.filter(C.compact(r),function(e){return e.control}),!i.length&&(a=C.reduce(t.modules,function(t,n){return C.each(n.guidesInModule,function(e){t[e.id]=n}),t},{}),r=C.filter(r,function(e){return e&&e.steps&&e.steps.length}),r=C.sortBy(r,function(e){return e.steps[0].elementPathRule?1:0}),r=a[(r=C.find(r,function(e){return e.shouldBeAddedToResourceCenter()}))&&r.id])&&i.push(r),n(t,i,o))),e.isNativeModuleActive&&(e.isShown()&&e.hide(),a=Wu[e.id])&&P.hideRCBadge(a,e),"dom"===e.launchMethod&&(P.updateNotificationBubbles(),P.adjustNotificationBubbleForResize())))}class mh{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 vh{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 mh(50);!this.timedOut()&&!i.isComplete()&&!e;)r.start(),!(e=i.process(r))&&r.isTimeExceeded()&&(i.handleProcessTimeExceeded&&i.handleProcessTimeExceeded(r),this.ejectGuide(r.getContext()));ft(e)?(t=this.updateId,n=C.bind(function(){this.updateId===t&&(this.paused=!1,uh())},this),this.paused=!0,e.then(n)["catch"](n)):i.isComplete()&&this.queue.shift()}addPhase(e,t){t=t||e.name||this.phases.length,C.isFunction(e)&&(e=new lh(t,e)),this.phases.push(e)}removePhase(t){var e=C.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()&&Xu.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("monitoring/setTimer",{name:"guideUpdateTimeMS",time:this.updateTotalTime}),g.commit("guideUpdate/completeUpdate",e),this.cancel()}cancel(){this.updateId=null,this.paused=!1,this.queue.length=0;for(var e of this.phases)C.isFunction(e.cancel)&&e.cancel()}isComplete(){return!this.queue.length}}var yh=new vh([new lh("guideShowing",function(){var a=rv();a&&(C.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("."+pg),(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&&!wr.matchesSelector(n,e.elementPathRule)?e.hide():(r=ca(t),o=!0,n&&r&&e.elementContainsRulesList&&(o=zg(n,e.elementContainsRulesList),r=o),t&&(r||i.hasClass("mouseover"))?e.checkPlacement():("tooltip"===e.type||"tooltip"===e.attributes.calculatedType)&&la(t)&&o||e.hide()))}),a.guide.checkForHiddenGroupSteps())}),new nh,new ph,new lh("resourceCenter",function(){gh(P.getResourceCenter())}),new lh("frameVisibility",function(){g.dispatch("frames/checkFrameVisibility")})]);function bh(){yh.addPhase(...arguments)}function wh(){yh.removePhase(...arguments)}function Sh(){var s={};return C.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=C.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 Eh="debug-enabled";function Ih(){try{var e=h.read(Eh)||JSON.parse(Pt(Eh));return"boolean"==typeof e?{enabled:e}:e||{}}catch(t){return{}}}function Ch(e=!0){let t;return t=g&&g.getters&&g.getters["debugger/debuggingEnabled"]?g.getters["debugger/debuggingEnabled"]():!0===Ih().enabled,e?t:t?"Yes":"No"}class _h{constructor(e,t){this.type=t,this.identificationFn=e}test(e){return this.identificationFn(e)}}const xh=(()=>{const n={},e=({data:e})=>{var[e,,]=e,e=e["guideId"];const t=N(e);e=(C.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)=>{C.isFunction(t)?n[e.type]={GuideType:e,handler:t}:_.error("Invalid Handler function provided for type "+e.type)}}})();xh.addTypeHandler(new _h(rd,"badge"),(e,t)=>{Xu.addGuide(e)});var Th="_pendo-badge_";function kh(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function Ah(t,n){var e,i,r,o,a,s=pd(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=C.reduce([(o=t.language,a=u?["he","ar"]:[],e=>(C.contains(a,o)&&(e.props["data-localization-direction"]=!0),e)),(r=d,e=>{var t,n;return C.get(e,"props.data-localization-direction",!1)&&!r&&(t=C.get(e,"props.style.left","auto"),n=C.get(e,"props.style.right","auto"),t)&&n&&(e.props.style.left=n,e.props.style.right=t),e}),kh,Kd,function(e){return Il(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=Jd(this.imageUrl),i.className="_pendo-badge "+Th,u=this.width||13,d=this.height||13,Bo(i,"width:"+u+"px;height:"+d+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=C.isFunction(n.getGuide)&&n.getGuide(),t=Vg(e);!e.isShown()||g.getters["frames/isShownInAnotherFrame"]()(n)?Kg(n,"badge"):t?n.eventRouter.eventable.trigger("pendoEvent",{step:n,action:"dismissGuide"}):(t=C.find(e.steps,function(e){return e.isShown()}),Og(t))},this.shouldShow=function(){return t.canBadgeBeShown()||!1},this.show=function(){if(C.isFunction(this.shouldShow))return this.shouldShow()},this.hide=function(){k.removeNode(i),kl(t.id),C.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},Vg(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=C.constant(n),this.target=C.constant(s),this.element=C.constant(i),this}Ah.create=function(n){var i=Ah.findStep(n);if(i)return C.reduce(Ah.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},Ah.findStep=function(e){var t=C.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},Ah.behaviors=[Sh,Ah,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&&Bo(i,"display:inline-block;vertical-align:text-bottom;"),this.css&&Bo(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=Wo(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),!C.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"}Bo(e,o)}if(!e.parentNode){dd().appendChild(e);const a=aa(l,this.target(),Lh);this.removeScrollHandlers=()=>{Lh.cancel(),a()}}});return this},function(){"over"===this.position&&this.before("show",function(){var e=this.element(),t=Wo(this.target()),n="position:absolute;top:"+t.top+"px;left:"+t.left+"px;";if(n+="height:"+t.height+"px;width:"+t.width+"px;",Bo(e,n+="background-color:transparent;"),!e.parentNode){dd().appendChild(e);const i=aa(Lh,e,this.target());this.removeScrollHandlers=()=>{Lh.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||(p(e,"click",i),n=!0)}),t.after("hide",function(){zu(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=C.throttle(function(e){xr(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}(xr(e))||o()},50,{trailing:!1}),r=function(e){n.isShown()||Kg(n,"badge"),p(document,"mousemove",i),ju(e)},o=function(e){zu(document,"mousemove",i),sd()||Og(n)},this.after("show",function(){e||(p(t,"mouseover",r),e=!0)}),this.after("hide",function(){zu(t,"mouseover",r),zu(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)||sd()||(t="inline"===this.position?"visibility:visible;":"display:inline;",n="inline"===this.position?"visibility:hidden;":"display:none;",i=C.throttle(function(e){var t,n,i,r,o,a;xr(e)===u||xr(e)===s||Mo(s,"triggered")||(t=e.clientX,e=e.clientY,n=Xo(u),i=Xo(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(){Bo(s,t),p(document,"mousemove",i)},d=function(){zu(document,"mousemove",i),Bo(s,n)},this.after("show",function(){e||(p(u,"mouseover",r),e=!0,d())}),this.after("hide",function(){e&&(zu(u,"mouseover",r),e=!1),d()}))}return this}];var Rh=function(e,t){var n,i,r=(t=t||Wu)[e.id],o=r?r.step():Ah.findStep(e);o&&(i=r?r.target():pd(o),(n=C.get(e,"attributes.resourceCenter"))&&!g.getters["frames/canShowRCBadge"]()?r&&C.isFunction(r.hide)&&(t[e.id]=undefined,r.hide()):n&&!e.hasResourceCenterContent||(P.updateNotificationBubbles(),n=!0,o.elementContainsRulesList&&(n=i&&zg(i,o.elementContainsRulesList)),(i=o.elementPathRule&&ca(i)&&wr.matchesSelector(i,o.elementPathRule)&&n)?((r=r||Ah.create(e)).show(),t[e.id]=r):r&&!o.isShown()&&(t[e.id]=undefined,r.hide()),Ch()&&y.stepEligibility.trigger({stepId:o.id,guideId:e.id,eligible:i,reason:"target_element_badge"}),P.repositionDoubleResourceCenterBadge()))},Oh=function(){C.map(Wu,Nh),Wu={}},Nh=function(e,t){e&&(C.isFunction(e.hide)&&e.hide(),C.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete Wu[t.id]},Mh=function(e){var t=Wu[e.id];t&&Nh(t,e)};var Lh=C.throttle(function(){C.map(Wu,function(e){e&&e.show&&e.show()})},10);const Ph=h.getLocal();var F,Fh="pendo-preview",Dh="current-guide-preview";function Uh(e){return g.dispatch("preview/load"),Gh(e)}function Gh(t){var e=ef();if(e)return zh(t),g.dispatch("preview/start",C.extend(e)),h.clear(Wp),Lt(!1),is.lock(),ym=of,y.startPreview.trigger(),y.leaderChanged.on(function(e){g.dispatch("preview/write"),e.oldLeaderId||nv(),g.getters["frames/isLeader"]()||(k(F).remove(),F=null,t.removeEventListener("message",Hh))}),bh(Bh),!0}function Bh(){if(!g.getters["frames/isFollower"]()){var t,n,i,r,o,e,a=document,s=td(),u=Kp();if(qh()&&(t=ef())&&F&&F.contentWindow)if(s&&s.length){F.contentWindow.postMessage({mutation:"preview/setGuideLoaded",payload:{guideLoaded:!0}},location.origin),n=C.find(s,function(e){return e.id===t.guideId}),i=0,r=n.steps.length,o=u||{},C.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=C.indexOf(n.steps,C.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:He}},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:hd(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:C.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=C.filter(g.state.frames.frames,e=>"hidden"!==e.visibility&&e.guides&&e.guides[h]);if(p.length)p=C.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=C.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"](C.noop)}}else Zh(0,{status:404,data:"Guide not found"})}return!0}function zh(e){if(g.getters["frames/leaderExists"]()){if(!g.getters["frames/isFollower"]()){if(F)return!0;var t,n;C.isFunction(e.addEventListener)&&e.addEventListener("message",Hh),(t=document.createElement("iframe")).id=Fh,zo(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")||oo("pendo.preview.min.js"),t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},F=t,Ko().appendChild(F)}}else y.one("leaderChanged",C.partial(zh,e))}function jh(e,t,n){Sg(),g.commit("healthCheck/resetStepStatus",null,{root:!0}),Zd.reset(),nv();var i=e[0],i=(i&&C.each(i.steps,function(e){e.seenState=null}),h.clear(Wp),g.dispatch("preview/update",null),ef());return i&&(i=C.findWhere(e,{id:i.guideId}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),g.dispatch("preview/restart",i)),$h(e,t)}function Hh(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===Fh+"::exit"?(Xh({preventWindowClose:n}),g.dispatch("frames/stopPreview",{preventWindowClose:n})):t===Fh+"::restart"?(n=jh(td(),Kp(),e.data.language),g.dispatch("guideState/forceExpire"),g.dispatch("guideState/updateLastGuideStepSeen",n),g.dispatch("frames/restartPreview")):t===Fh+"::resize"?(n=e.data.height,F&&F.style&&(F.style.height=n)):t===Fh+"::request-preview-mode-type"&&(e=tf(),F)&&F.contentWindow&&e&&F.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:e.previewModeType||"NEW_TAB"}},location.origin))}function qh(){return g.getters["preview/isInPreviewMode"]()}function Wh(){return g.getters["preview/isInDesignerPreviewMode"]()}function Vh(e){var t,n,i=ef();if(!i)return e;if(i.isResourceCenter)return r=e,t=i,n=P.findResourceCenterHomeView(r),r=C.filter(r,function(e){return e.id!==n.id}),Kh(n,t.stepId),t=C.map(r,function(e){return e.launchMethod="launcher",e}),[n].concat(t);{var r=e,o=i;let t;return C.each(r,function(e){e.id===o.guideId?t=e:((e=e).launchMethod="api",(e=e.steps[0])&&(e.seenState="advanced"))}),Jh(t),t.showsAfter=null,t.expiresAfter=null,Kh(t,o.stepId),r}}function Jh(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function Kh(e,t){for(var n=C.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 $h(e,t){null==t&&(t={});var n=ef();if(!n)return t;e=C.findWhere(e,{id:n.guideId});if(!e)return t;if(n.state)return n.state;Jh(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:n.guideId,guideStepId:n.stepId,state:"active"}:{}}function Zh(e,t){F&&F.contentWindow&&F.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:t}},location.origin)}function Xh(e){var t=tf(),n=!1,i=(t&&(n="SAME_TAB"===t.previewModeType),Ph.getItem("pendo-navigation-state"));if(g.dispatch("preview/exit"),Sg({stayHidden:!0}),h.clear(Wp),is.unlock(),k(F).remove(),ym=_d,wh(Bh),Lt(!0),n&&i){Ph.setItem(Dh,JSON.stringify(C.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(),nv()}function Yh(e,t){e=C.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function Qh(){return g}var ef=C.partial(Yh,Qh,"state.preview.preview"),tf=C.partial(Yh,Qh,"state.preview.designerPreview");function nf(e){var t;if(e.subscriptionId&&e.guideId)return t=e.isResourceCenter?"/resourcecenter/":"/guide/","/api/s/"+vt(e.subscriptionId)+t+vt(e.guideId)+"/preview"}var rf=function(e){var t;return Sa(e.origin)?(t=nf(e))?(t={url:e.origin+t+"?url="+vt(A.externalizeURL())+"&apiKey="+E.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),kr(t).then(function(e){return e.data.guide})):(_.info("Invalid guide url, exiting preview"),m.reject("invalid guide url")):(_.info("Invalid origin, exiting preview"),m.reject("invalid origin"))},of={load(e,t,n){return sf(e,n)},post(e,t,n,i){return sf(e,i)},endpoint(){return""},usesXhr(){return!0}};function af(n,t){if(!Sa(n.origin))return _.info("Invalid origin, exiting preview"),m.reject("invalid origin");var e=nf(n);if(!e)return _.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=${vt(A.externalizeURL())}&apiKey=`+E.apiKey;n.childGuides&&n.childGuides.length&&(i+="&childGuides="+n.childGuides.toString()),Wh()&&(i+="&ignoreGuide=true");var e={url:i,withCredentials:!0},r=(n.headers&&(e.headers=n.headers),[]);return kr(e).then(function(e){var t,c,e=e.data;return Wh()?(t=tf(),r=t?Wh()?(C.each(t.guide.steps,function(t){let e=["domJsonpUrl","domUrl"];t.domUrl&&0===t.domUrl.indexOf("data:")&&(e=["domJson","contentJs","contentCss","content"]),C.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!==C.get(r,"[0].authoredLanguage")&&(t=r,c=n.language.value,C.forEach(t,function(d){C.forEach(d.steps,function(e){var{domHash:t,domJsonpHash:n,translationHash:i,originalDomJsonHash:r,originalDomJsonpHash:o,originalBuildingBlockHash:a,domHash256:s,domJsonpHash256:u}=C.get(d,"translationStates."+c+".stepTranslations."+e.id,{});e.domUrl=uf(r,e.domUrl,".dom.json",s),e.domJsonpUrl=uf(o,e.domJsonpUrl,".dom.jsonp",u),e.buildingBlocksUrl=uf(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),rf(t)):e}).then(function(e){e&&e.attributes&&e.attributes.isWatermark&&r.push(e),E.guidesPayload({id:t,lastGuideStepSeen:$h(r,E.lastGuideStepSeen),guides:Vh(r)})})["catch"](function(e){return Zh(document,e),m.reject(e)})}function sf(e,t){var n=ef();return!n||!nf(n)||!(e=/[?&]id=(\d+)/.exec(e))||e.length<1?m.reject():af(n,e[1]).then(t)}function uf(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 df=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=C.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}}}(),cf=h.getLocal();lf=De||He,pf="in-app-designer",hf="latest",y.leaderChanged.on(function(){gf({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||Wh()})});var lf,pf,hf,ff={launchDesigner:function(e){var t,n="latest",i="designer";ic(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%;}"),Cf("designer-shims",lf+"/"+i+"/"+n+"/plugin.js"),E.DESIGNER_VERSION?Ef(n,i):t=window.setInterval(function(){E.DESIGNER_VERSION&&(Ef(n,i),clearInterval(t))},100)},launchInAppDesigner:Sf,localStorageNavigation:gf,launchOnToken:function(e){if(!_f(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(mt(e)))||{}}catch(t){return{}}}(e[1]),e=vf(t),n=wf(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),Sf({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,ff.hostConfig.host)},isValidDesignerHost:mf,isValidTarget:bf,addCommunicationIframe:function(e,t){e=e||{};C.isFunction(t)||(t=C.noop);var n=wf(e),e=yf(e),i=(new Date).getTime(),r=(ff.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=If(r,lf+"/"+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:lf},isDesignerFrame:_f,addScriptToPage:Cf};function gf(e){if(!e.ignoreLocalStorageNavigation){var t,e=cf.getItem("pendo-navigation-state");if(e&&g.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(n){return}if(!t.apiKey||t.apiKey===df.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},ff.launchInAppDesigner(e),!0}}}function mf(e){return!!e&&Sa(e)}function vf(e){var e=(e=e||{}).host||lf,t=mf(e),n=t?e:He;return e&&!t&&_.info("Invalid host, falling back to "+He),n}function yf(e){var e=(e=e||{}).gcsBucket||pf,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:pf;return t||_.info("Invalid bucket, falling back to "+pf),e}function bf(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 wf(e){e=e||{};var t=f.get("enableCrossOriginIsolation")?"strict":hf,e=e.target||e.baseFolder||t,t=bf(e),e=t?e:hf;return t||_.info("Invalid target, falling back to "+hf),e}function Sf(e){if(!_f(window.name)&&!E.designerLaunched)if(f.get("disableDesigner"))_.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){}ff.crossFrameChannel===undefined&&(ff.crossFrameChannel=D,ff.useCrossFrameChannel=!0),qa()&&a&&!e.allowChildFrame&&!e.selectionOnly?_.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):E.isReady()?(E.designerLaunchTime=(new Date).getTime(),a=vf(e=e||{}),r=yf(e),o=wf(e),i=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+r+"/"+o+"/"+i,f.get("useAssetHostForDesigner")&&(n=oo(i)),ff.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:df.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&&!C.isFunction(r),(o||a)&&(ff.addScriptToPage(t,n,i),E.designerLaunched=!0),!e.forceNativeDesigner&&C.isFunction(r)&&(r(t,n,i),E.designerLaunched=!0)):_.error("Unable to launch the designer, the agent has not been initialized. Please use `pendo.initialize` prior to launching the designer")}}function Ef(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+="__"+ff.windowCommunicationId,(t=If("pendo-designer-iframe",lf+"/"+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 If(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&Bo(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 Cf(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&&C.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function _f(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(n){return!1}}xf={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"},Tf={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},(kf={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370}).FOOTER_HEIGHT=1.25*kf.HEADER_HEIGHT,kf.BODY_HEIGHT="calc(100% - "+kf.HEADER_HEIGHT+"px - "+kf.FOOTER_HEIGHT+"px)",Af='<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>',(Rf={})["#"+xf.closeButton+":hover"]={"background-color":Tf.GRAY_LIGHTER_6},Rf["#"+xf.launchButton+":hover"]={"background-color":Tf.TEAL_DARKER+" !important"},Of={PRIMARY_FONT:"Helvetica Neue"};var xf,Tf,kf,Af,Rf,Of,Nf={listen:function(){return C.isFunction(document.addEventListener)?(document.addEventListener("keyup",Mf,!1),()=>{document.removeEventListener("keyup",Mf,!1)}):()=>{}},launchOnLocalStorageToken:Bf,ids:xf,removeElement:Df,attemptToLaunch:Ff,loadPluginJs:function(){var t;E.designerLaunched||(t=C.once(function(e){Bf(e,!0)}),Va(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}};function Mf(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&Ff(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&Ff(!1,!0)}function Lf(e,t){var n,i,r,o={"background-color":Tf.WHITE,height:kf.MODAL_HEIGHT+"px","min-height":kf.MODAL_HEIGHT+"px",width:kf.MODAL_WIDTH+"px",position:"fixed",top:kf.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-kf.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=Pf("div",xf.container,o);ic(f,xf.style,C.reduce(C.pairs(Rf),function(e,t){var n=t[0],t=t[1];return e+n+"{"+C.reduce(C.pairs(t),function(e,t){return e+t[0]+":"+t[1]+";"},"")+"} "},""),o),o.appendChild((t=t,r=Pf("div",xf.header,{"background-color":Tf.GRAY_PRIMARY,height:kf.HEADER_HEIGHT+"px","min-height":kf.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(i=Pf("div",xf.logoContainer,{height:"38px",width:"44px","background-color":Tf.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=Z(E).createHTML(Af),r.appendChild(i),(i=Pf("div",xf.title,{width:"100%",display:"flex","align-items":"center","font-family":Of.PRIMARY_FONT,"font-size":"18px",color:Tf.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=t?"VIA Designer":"Pendo Designer",r.appendChild(i),r)),o.appendChild(((t=Pf("div",xf.body,{height:kf.BODY_HEIGHT,"min-height":kf.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":Of.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=Pf("div",xf.footer,{"align-items":"center","border-top":"1px solid"+Tf.GRAY_LIGHTER_6,display:"flex",height:kf.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":kf.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(r=Pf("button",xf.closeButton,{"border-radius":"3px",border:"none",height:kf.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":Of.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(){Df(xf.container),Df(xf.commIframeId)},(t=Pf("button",xf.launchButton,{"background-color":Tf.TEAL_PRIMARY,"border-radius":"3px",color:Tf.WHITE,border:"none",height:kf.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":Of.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(){Bf(n)},i.appendChild(r),i.appendChild(t),i)),document.body.appendChild(o)}function Pf(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),C.extend(e.style,n),e}function Ff(t,n){var i,r,o;E.designerLaunched||(o=C.once(function(e){t||!n?Bf(e):Lf(e,t),Uf()}),Va(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),C.contains(e.host,"via")&&!e.visitorId&&(r=r||setInterval(function(){document.getElementById(xf.commIframeId)&&Gf()},100))):Uf())}),ff.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){Gf(),i=window.setInterval(Gf,50)}))}function Df(e){document.getElementById(e)&&document.getElementById(e).remove()}function Uf(){var e=document.querySelector("#"+xf.commIframeId+'[src*="pendo"]');e&&e.remove()}function Gf(){var e=document.getElementById(xf.commIframeId);e&&e.contentWindow&&C.isFunction(e.contentWindow.postMessage)&&e.contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:E.visitorId},C.get(E,"designerv2.hostConfig.host",He))}function Bf(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),Df(xf.container),ff.launchInAppDesigner(n)}var zf=C.wrap(C.wrap(C.once(C.wrap(function(e){var t=m.defer();return xa(e,function(){t.resolve()}),t.promise},function(e,t){return 0<C.size(Cd._handlers.validateGlobalScript)?kr.get(t).then(function(e){return Cd.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=C.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),jf.watermarkGuides=e,e=C.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 C.find(jf.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return C.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 Hf=1e4;function qf(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=Hf){const n=m.defer(),i=at(32),r=(e=C.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,C.isFunction(n.close)&&n.close()}};function a(e){var t;r||(t=C.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=at(32),e=C.extend(e,{promiseId:t}));var t=m.defer();return o[e.promiseId]=t,a(C.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){_.critical("ERROR in cross frame channel",{error:n})}}}var Wf="frames/removeFrame";function Vf(e,t,n){return new Jf(e,t,n,(e=t,t=n,new(C.isFunction(e.MessageChannel)?Kf:$f)(e,t)))}function Jf(e,t,n,i){this.init(e,t,n,i)}C.extend(Jf.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=C.bind(this._frameConnectHandler,this),this._impl.onmessage=C.bind(this._fireMessageListeners,this),this._impl.onrelay=C.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){C.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===Wf)&&this._topMessageHandler(e)},_topMessageHandler(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===Wf&&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(C.bind(function(){this._connected||(0===t?C.isFunction(n)&&n.call(this):0<t&&this._connectToTop(Math.min(2*e,1e4),t-1,n))},this),e)},_addControlMessageHandler(){this._singletonMessageHandler.addEventListener(C.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()}});ki={_frameConnectHandler(e){C.isFunction(this.onconnect)&&this.onconnect(this._parseMessage(e))},_messageReceived(e){C.isFunction(this.onmessage)&&this.onmessage(this._parseMessage(e))},_relayMessage(e){C.isFunction(this.onrelay)&&this.onrelay(this._parseMessage(e))},_parseMessage(e){var t;return C.isString(e.data)?((t=C.pick(e,"type","origin","source","ports","lastEventId","target")).data=function(e){if(!C.isString(e))return e;try{return JSON.parse(e)}catch(t){return e}}(e.data),t):e}};function Kf(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function $f(e,t){this._window=e,this._frames={},this._isTop=e==e.top,this._singletonMessageHandler=t,this._boundMessageReceived=C.bind(this._messageReceived,this),this._isTop||(this._boundFrameConnectHandler=C.bind(this._frameConnectHandler,this),t.addEventListener(this._boundFrameConnectHandler))}C.extend(Kf.prototype,ki,{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)&&C.all(["addEventListener","start"],function(e){return C.isFunction(t[e])})&&((this._ports[e.data.frameId]=n).addEventListener("message",C.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",C.bind(this._messageReceived,this))},broadcast(t){C.each(this._ports,function(e){t.target!==e&&e.postMessage(t.data)})},postMessage(e){this._port&&this._port.postMessage(e),e.action===Wf&&this._window.top.postMessage(e,this._targetOrigin)},close(){C.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=C.bind(this._frameConnectHandler,this),this._port.addEventListener("message",this._boundFrameConnectHandler),this._port.start()},_closeChannel(){this._port&&C.isFunction(this._port.close)&&(this._port.close(),this._port=null,this._channel=null)}}),C.extend($f.prototype,ki,{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=C.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();C.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)}});Zf=window,Xf=Sa,Qf=!(Yf=[]);var Zf,Xf,Yf,Qf,eg={targetOrigin(){return Qf?location.origin:"*"},secure(e){Qf=e},addEventListener(e){0===Yf.length&&Zf.addEventListener("message",tg),Yf.push(e)},removeEventListener(e){e=Yf.indexOf(e);0<=e&&Yf.splice(e,1),0===Yf.length&&Zf.removeEventListener("message",tg)},close(){Zf.removeEventListener("message",tg),Yf.length=0}};function tg(t){Qf&&!Xf(t.origin)||C.each(Yf,function(e){C.isFunction(e)&&e(t)})}function ng(e){if(!Ge.addEventListener)return{addEventListener:C.noop,postMessage:C.noop,close:C.noop};var t=!!window.__pendoExtensions;if(f.get("preferBroadcastChannel")&&!t&&C.isFunction(window.BroadcastChannel)){e.commit("frames/setChannelType","BroadcastChannel");t=function(e,o){const a=[];return e.removeEventListener=C.wrap(e.removeEventListener,function(e,t,n){var i,r=C.toArray(arguments).slice(1);return"message"===t&&0<=(i=C.findIndex(a,e=>e[0]===n))&&(r[1]=a[i][1],a.splice(i,1)),e.apply(this,r)}),e.addEventListener=C.wrap(e.addEventListener,function(e,t,n){var i,r=C.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=C.wrap(e.postMessage,function(e,t){return t.tabId=o.getTabId(),e.apply(this,C.toArray(arguments).slice(1))}),e}(new BroadcastChannel("pendo"),dn);if(t&&C.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),Vf(e,window,eg)}var ig="guides_blocked",rg="Guides disabled: unreachable endpoint guide.gif";function og(e){return JSON.parse(JSON.stringify(e))}class ag{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=()=>{_.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=()=>{_.warn("Error loading guide cache"),this.cacheGuidesPersistent=!1,this.db=null,n.resolve(this.cache)},e.onsuccess=e=>{e=e.target.result;C.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:og(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=()=>{_.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=C.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 C.each(this.cache,e=>{e.expires>i&&e.visitorId===n?t.push(C.pick(e.guide,"id","lastUpdatedAt","language")):delete this.cache[e.guide.id]}),t}):m.resolve([])}get(e){if(this.cache&&this.cache[e])return og(this.cache[e].guide)}clear(){this.cache={},this.db&&this.db.transaction(["guides"],"readwrite").objectStore("guides").clear()}}const sg=h.getLocal();var ug=[],dg="Guide was not shown because this visitor is in a control group of an active experiment for the guide";const cg=[];function lg(){var e=f.get("guideCssAssetPath");return e||oo("guide.css")}var pg="_pendo-guide_",hg="_pendo_g_",fg=0;function gg(e){fg=e}var mg=function(){return C.any(O,function(e){return e.isShown()})},vg=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"),Be()?9<Ce&&n.css({top:3}):8===Ce?n.css({top:9,right:2}):9===Ce?n.css({right:2,top:3}):9<Ce&&n.css({top:3}),e=k("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},yg=function(n){return C.reduce(O,function(e,t){return n(t)&&e.push(t),e},[])},bg=function(e,t,n,i,r,o){e=ed(N(e),t);e&&(e.seenState=n,e.lastSeenAt=i,e.destinationStepId=o,r!==undefined)&&(e.dismissCount=r)},wg=function(e){for(var t=new RegExp("^"+hg);e;){if(C.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function Sg(t){C.each(O,function(e){C.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var Eg=function(e){return e&&e.guideId};var Ig=function(e,t){var n,i;return Eg(e)&&(t=e,e=null),(n=t)&&C.isFunction(n.render)?t:t?(n=N(t.guideId))&&n.findStepById(t.id):(n=C.find(O,function(e){return e.isShown()}))?((i=e?wg(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||_o("findStepForGuideEvent: step with id "+i):(t=C.find(n.steps,function(e){return e.isShown()}))||_o("findStepForGuideEvent: no step shown"),t):void 0},Cg=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=ld(e);"tooltip"===e.type&&C.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):zu(n,t,Lg,!0)};function _g(e){return e.isLocked()&&(!e.elements||!e.elements.length||void xo('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}var xg=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()},Tg=function(e){e=C.get(e,"attributes.activation.selector",""),e=wr(e);e.length<1||e[0].focus()},kg=function(){var e=P.getResourceCenterBadge();e?e.element().focus():(e=P.getResourceCenter(),Tg(e))},Ag=function(e){if(!E.designer&&e&&"building-block"===C.get(e,"attributes.type","")){var t=e.steps[0],n=t.seenReason,i=C.get(e,"launchMethod","").split("-"),r=C.contains(i,"dom"),o=C.contains(i,"badge"),i=Vg(e);if(C.get(t,"attributes.isAutoFocus")||i)switch(n){case"badge":o&&xg(t);break;case"dom":r&&Tg(e);break;case"launcher":kg();break;default:return}}};function Rg(e,t){return!e.isMultiApp&&("auto"===t||"repeatGuide"===t)}var Og=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=Ig(e,t))&&t.id?_g(t)||("dismissed"===t.seenState?_.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(_.info("onGuideDismissed called",{contexts:["guides"]}),y.beforeDismiss.trigger(t).cancel?_.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(Cg(t),e=t.id,n=N(s=t.guideId),i=(i=C.first(n&&n.steps))&&i.seenReason,o=n&&n.language,r=C.get(t,"dismissCount",0)+1,Xg(s,e,b(),i,o),o=v(),bg(s,e,"dismissed",o,r),(a=C.isFunction(t.getGuide)&&t.getGuide())&&a.attributes&&a.attributes.doNotResume||Vp({guideId:s,guideStepId:e,time:o,state:"dismissed",seenReason:i,visitorId:b(),dismissCount:r}),Rg(n,i)&&em(o,Qg.DISMISSED),t.hide(),Ag(a),mg()||(sh(),uh())))):sh()},Ng=function(e,t,n){var i,r,o,a,s,u,d,c;_.info("onGuideSnoozed called",{contexts:["guides"]}),(t=Ig(e,t))?"snoozed"===t.seenState?_.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):y.beforeSnooze.trigger(t).cancel?_.info("Guide snooze canceled during runtime in step: "+t.id):(n||(n=864e5,_.info("no snooze duration provided, defaulting to 1 day")),_g(t)||(Cg(t),e=t.id,i=t.guideId,r=b(),o=N(i),a=o&&o.language,s=C.first(o&&o.steps),s=s&&s.seenReason,u=v(),_.info("snoozing guide for "+n+" ms"),d=u+n,t.snoozeEndTime=d,c=nm({type:"guideSnoozed",guideId:c=i,stepId:e,visitorId:r,seen_reason:s,language:a,snooze_duration:n}),om(c),y.guideSnoozed.trigger(c),bg(i,e,"snoozed",u),o&&o.attributes&&o.attributes.doNotResume||Vp({guideId:i,guideStepId:e,time:u,state:"snoozed",seenReason:s,visitorId:b(),snoozeEndTime:d}),Rg(o,s)&&em(u,Qg.SNOOZED),t.hide(),Ag(o),mg())||(sh(),uh())):(_.info("missing step. can't snooze",{contexts:["guides","error"]}),sh(),_o("onGuideSnoozed: missing step"))},Mg=function(e){var t,n,i,r=(r=e&&e.step)||Ig(e);r?(i=e&&e.params,i=C.find(i,function(e){return"goToStepId"===e.name}),t=i&&i.value,(t=e&&e.destinationStepId?e.destinationStepId:t)?t===r.id?_.info("[goToStep] step id matches the current step",{contexts:["guides","error"]}):(i=N(r.guideId),(n=C.find(i.steps,function(e){return e.id===t}))?(n=C.indexOf(i.steps,n),i=C.indexOf(i.steps,r),e.steps=Math.abs(n-i),e.action=e.action||"goToStep",e.destinationStepId=t,i<n?Lg(e,r,!1):Pg(e,r)):_.info("[goToStep] guide has no step matching the step id",{contexts:["guides","error"]})):_.info("[goToStep] missing step id to go to",{contexts:["guides","error"]})):_.info("[goToStep] missing current step",{contexts:["guides","error"]})},Lg=function(e,t,n){if((s=rv())&&C.each(s.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=ld(e);"tooltip"===e.type&&C.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):zu(n,t,Lg,!0)}),1===arguments.length&&Eg(e)&&(s=Yu(e.guideId),i=Ig(),s)&&i&&C.first(s.steps).id===i.id&&C.last(s.steps).id===e.id&&(_.info("Cannot skip to last step from first step"),e=null),_.info("onGuideAdvanced called",{contexts:["guides"]}),(t=Ig(e,t))===e&&(e=null),t){if(!_g(t))if("advanced"!==t.seenState||n)if(y.beforeAdvance.trigger(t).cancel)_.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&&C.findIndex(r.steps,e=>t.id==e.id);if(e&&C.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],Yg(r.id,t.id,b(),t.seenReason,o,d!==a);var c=v();Vp({guideId:t.guideId,guideStepId:t.id,time:c,state:"advanced",seenReason:t.seenReason,visitorId:b()}),bg(r.id,t.id,"advanced",c,undefined,h)}return Lg(r.steps[s],t,!0)}var l,i=t.id,s=t.guideId,p=C.first(r&&r.steps),p=p&&p.seenReason,h=e&&e.destinationStepId,f=(h||(f=e&&C.isNumber(e.steps)&&1<e.steps?e.steps:1,h=(f=C.isNumber(a)&&r&&r.steps&&r.steps[a+f])&&f.id||null),h||_.info("missing destination step id"),_.info("advancing guide"),Yg(s,i,b(),p,o,n,h),_.info("update guide status"),r&&C.last(r.steps).id===i&&(l=C.get(t,"dismissCount",0)+1),(new Date).getTime()),g=(bg(s,i,"advanced",f,l,h),C.isFunction(t.getGuide)&&t.getGuide());g&&g.attributes&&g.attributes.doNotResume||Vp({guideId:s,guideStepId:i,time:f,state:"advanced",seenReason:p,visitorId:b(),destinationStepId:h,dismissCount:l}),Rg(r,p)&&em(f,Qg.ADVANCED),_.info("stop guide"),sh(),_.info("start guides"),uh()}else _.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else _.info("missing step. can't advance",{contexts:["guides","error"]}),sh(),_o("onGuideAdvanced: missing step")},Pg=function(e,t){var n,i,r,o,a,s;_.info("onGuidePrevious called",{contexts:["guides"]}),(t=Ig(e,t))?"advanced"===t.seenState?_.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):y.beforePrevious.trigger(t).cancel?_.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=C.indexOf(o.steps,t))&&(r="element"==t.advanceMethod?"click":"mouseover",a=ld(t),"tooltip"===t.type&&C.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):zu(a,r,Lg,!0),a=e&&C.isNumber(e.steps)?e.steps:1,r=C.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)||_.info("missing destination step id"),_.info("advancing guide"),Yg(n,t.id,b(),i,r,!1,o),_.info("update guide status"),a=(new Date).getTime(),bg(t.guideId,t.id,"advanced",a,undefined,o),(s=C.isFunction(t.getGuide)&&t.getGuide())&&s.attributes&&s.attributes.doNotResume||Vp({guideId:t.guideId,guideStepId:t.id,time:a,state:"advanced",seenReason:i,visitorId:b(),destinationStepId:o}),sh(),uh())):(sh(),_o("onGuidePrevious: missing step"))},Fg=function(e){var t;k("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",ro()+"/img/tiny-logo.png"),t=k(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:E.TOOLTIP_ARROW_SIZE}).append(t),qu.push(t[0]),t.appendTo(e))};function Dg(e){return e&&e.attributes&&e.attributes.stayHidden}const Ug=(e,t,n)=>{var i;return Ch()&&({id:e,guideId:i}=e,y.stepEligibility.trigger({stepId:e,guideId:i,eligible:t,reason:n})),t};var Gg=function(e){var t,n,i=C.partial(Ug,e);return Dg(e)?i(!1,"dismissed"):e.elementPathRule||"lightbox"!==e.type&&"whatsnew"!==e.type?e.triggerElementPathRule&&!ca(wr(e.triggerElementPathRule)[0])?i(!1,"trigger_element"):(t=ld(e),(n=e.targetElement)&&e.elementContainsRulesList&&!zg(n,e.elementContainsRulesList)?i(!1,"contains_rules"):(n="tooltip"===e.type||Lc.isBuildingBlockGuideRelativeToElement(e),e=ca(t),n?e?i(e,"target_element_tooltip"):i(la(t),"target_element_tooltip_scroll"):i(e,"target_element"))):i(!0,"")};function Bg(e){var t=(k(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function zg(e,t){for(var n=Bg(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=ht(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 Hg=function(e){return hg+e.id},qg=function(e){var t=e.element,n=C.first(k("#"+Hg(e)));t&&n?ca(t)||k.hasClass(n,"mouseover")?Ut(function(){qg(e)},rh):e.hide&&(e.hide(),mg())||(sh(),uh()):t||!n||e.hide&&(e.hide(),mg())||(sh(),uh())},Wg=function(){return!1},Vg=C.partial(C.get,C,"attributes.resourceCenter"),Jg=function(t){var e;mg()&&(e=Ig(),Cg(e),Vg(t)?(e=yg(Vg),(e=C.filter(e,function(e){return e.id!==t.id})).length&&g.dispatch("frames/hideGuides",C.pluck(e,"id"))):(Sg(),g.dispatch("frames/hideGuides")))},Kg=function(e,t){return!(!e||!e.guideId||!(e=N(e.guideId)))&&(Jg(e),e.launch(t),e.isShown())},$g=function(e,t,n,i,r,o){e=nm({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&C.extend(e.props,{step_poll_types:o}),om(e),y.guideNotSeen.trigger(e)};var Zg=function(e,t,n,i,r,o){i||(_.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("-"),!C.contains(a,s))&&a.length?C.first(a):s);var a=nm({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),s=(C.extend(a.props,o),om(a),v());Vp({guideId:e,guideStepId:t,time:s,state:"active",seenReason:i,visitorId:b()}),bg(e,t,"active",s),y.guideSeen.trigger(a)};function Xg(e,t,n,i,r){e=nm({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});om(e),y.guideDismissed.trigger(e)}function Yg(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=nm(e);om(t,null,o),y.guideAdvanced.trigger(t)}var Qg={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function em(e,t){tm(e,t);var n={};n[t]=e,g.dispatch("frames/changeThrottlingState",n)}function tm(e,t){C.contains(C.values(Qg),t)&&(C.isFunction(e.getTime)&&(e=e.getTime()),E[t]=e,h.write(t,e,qp),g.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function nm(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),C.isString(a.language)||delete a.language,C.extend({guide_id:a.guideId,guide_step_id:a.stepId},C.omit(a,"type","guideId","stepId","visitorId"))),t=dn.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:jn(),browser_time:(new Date).getTime(),url:A.externalizeURL(),props:e});return y.eventCaptured.trigger(t),t}var im=null,rm=function(e){window.clearTimeout(im),im=Ut(Pm,e)},om=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-fg,Bm(),Mm.push(e),rm(t)},am=function(e,t){return"dismissed"===e.state?null:N(e.guideId).nextStep(e,t||sm())},sm=function(){return E.normalizedUrl||um(A.externalizeURL())},um=function(e){try{var t=new Kn(e),n=C.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return _.error("Invalid URL provided to normalize"),e}},dm=function(e,t){return!me(e)||new RegExp(e).test(t)},cm=function(e,t){e=Qu(e);return!!e&&(!(t=Kg(C.first(e.steps),t||"api"))&&e.control&&_.info(dg),t)},lm=function(e,t){e=N(e);return!!e&&(!(t=Kg(C.first(e.steps),t||"api"))&&e.control&&_.info(dg),t)};function pm(e,t){return t=parseInt(t,10),isNaN(t)||!C.isNumber(t)||!(C.isNumber(e)&&e<t)&&C.isNumber(e)?e:t}var hm,fm=function(){sh(),ah(),P.removeNotificationBubble(),Oh(),us()};function gm(){sh(),Oo(),E.segmentFlags=[],E.doNotProcess=!0,g.commit("debugger/doNotProcess",!0),_.info("not tracking visitor due to 451 response")}function mm(e){hm&&(451===e.statusCode&&(gm(),hm.deferred.reject(e)),C.isString(e.id)&&e.id!==hm.id||(C.extend(E,e),E.guides=C.map(E.guides,function(e){return 1==C.keys(e).length&&e.id?jm.get(e.id):(jm.add(e,b()),e)}),hm.deferred&&hm.deferred.resolve(),hm=null))}var vm=function(o,a){var e,s=ao(),u=C.uniqueId(),d=m.defer();return hm={id:u,deferred:d},Dl()||((e=Ul())?(_.info("sending metadata: "+JSON.stringify(e),{contexts:["guides","metadata"]}),a.metadata=e):_.info("no metadata to send",{contexts:["guides","metadata"]})),jm.list(a.visitorId).then(e=>{0<e.length&&(a.cachedGuides=e);var e=et(a),t={id:u,jzb:e,v:Ve,ct:(new Date).getTime()},n=(s&&a.accountId&&"ACCOUNT-UNIQUE-ID"!==a.accountId&&(t.acc=it(a.accountId)),Ch()&&(t.debug=!0),Io(ym.endpoint(),o,t)),i=gs.get();let r;return r=2e3<n.length||!C.isEmpty(i)?(delete t.jzb,n=Io("guide.json",o,t),t=C.extend({events:e},i),ym.post(n,t,E,C.noop)):ym.load(n,E,C.noop),m.all([r["catch"](function(e){return 451===e.status&&gm(),m.reject(e)}),d.promise,(e=ym,i=o,"1"===(t=h.read(ig))?(_.info(rg),m.resolve({success:!1,cached:!0})):"0"===t?m.resolve({success:!0,cached:!0}):(t=Io("guide.gif",i,{jzb:"eJwFwIEIAAAAwDDQd3-N1QABFQC5",ct:v(),v:Ve}),(e.usesXhr()?kr.get(t):To(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(ig,"0"):(_.info(rg),h.write(ig,"1"))),!e.success)return m.reject()})})},ym=_d;function bm(e){e=C.find(e.steps,e=>e.pageId&&!e.regexUrlRule);return!e||(_.critical("pendo.io guide validation exception",{guideId:e.guideId,stepId:e.id,error:new Error("missing regexUrlRule for page "+e.pageId+'"')}),!1)}function wm(n){return C.every(cg,e=>{try{return e(n)}catch(t){return console.debug("Error in guide processor",e,n.id),!1}})}function Sm(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&C.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}var Em,Im=function(){return!f.get("disableGlobalCSS")};function Cm(e,t){var n=f.get("dropAnonymous");if(An(e)&&n)_.info("loading guides blocked for anonymous visitors due to dropAnonymous config setting being set to true"),C.isFunction(t)&&t("error: guides are blocked");else if("1"===h.read(ig))_.info("guide events are blocked, load guides cancelled"),C.isFunction(t)&&t("error: guides are blocked");else{if(ts(ns()))return 1;_.info("bad url: probably local file system",{contexts:["guides","error"]}),C.isFunction(t)&&t("error: invalid url")}}var _m=function(e,a,s,u){var d=m.defer(),c=!1;if(e=e||E.apiKey,Cm(a=a||b(),u)){_.info("loading guides for "+s+"...",{context:["guides"]}),s=A.externalizeURL(s);var n,t,l=_m.lastVisitorId!==a?C.noop:(i=O,(t=C.find(i,function(e){return C.isFunction(e.isRendered)&&e.isRendered()&&!e.isTopLevel}))?(n=C.chain(t.steps).filter(function(e){return e.isRendered()}).indexBy("id").value(),function(e){e=C.findWhere(e,{id:t.id});e&&!C.get(e,"attributes.doNotResume")&&C.each(e.steps,function(e){var t=n[e.id];!t||e.seenState&&"active"!==e.seenState||e.show(t.seenReason)})}):function(){}),i=(_m.lastVisitorId=a,ah(),g.commit("guideState/setLastGuideRequestAt",v()),{visitorId:a,accountId:jn(),url:s,oldVisitorId:Dn=Dn===undefined&&Rn()?qn(_n):Dn});const p=C.uniqueId();_m.reqId=p,vm(e,i).then(function(){if(!c&&!E.designer)if(_m.reqId!==p)d.resolve();else{y.deliverablesLoaded.trigger(),_.info("successfully loaded guides for "+s,{contexts:["guides"]}),E.designerEnabled&&"true"!==sg.getItem("pendo-designer-mode")&&Nf.loadPluginJs(),fm();var t=E.lastGuideStepSeen;if(t){g.dispatch("guideState/receiveLastGuideStepSeen",t),t.visitorId=a,g.dispatch("guideState/updateLastGuideStepSeen",t),g.commit("guideState/setLastGuideRequestAt",v()),Vu={};t=E.guides;var t=C.chain(t).map(Wd).filter(bm).filter(wm).sortBy(Sm).value(),n=(Zu(t),td());g.dispatch("guideState/load",(r=Wp,o=f.get("crossAppGuideStorageSuffix"),h.read(r,!1,o))),g.dispatch("guideState/apply"),E.latestDismissedAutoAt=pm(E.latestDismissedAutoAt,h.read("latestDismissedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestDismissedAutoAt",value:E.latestDismissedAutoAt}),E.finalAdvancedAutoAt=pm(E.finalAdvancedAutoAt,h.read("finalAdvancedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"finalAdvancedAutoAt",value:E.finalAdvancedAutoAt}),E.latestSnoozedAutoAt=pm(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=Km(E.features);let e=m.resolve();E.globalJsUrl&&(e=zf(Jd(E.globalJsUrl))["catch"](function(e){_.error("Error loading global script: ",e)})),n.length?m.all([Nm(),e,Um(t),jf.initializeWatermark(t),km(5e3)].concat((i=t,C.map(xm,function(e){return e(i)})))).then(function(){_m.reqId===p&&(g.getters["frames/isLeader"]()&&l(O),y.guidesLoaded.trigger(),uh(),clearTimeout(Em)),C.isFunction(u)&&u(),d.resolve()},function(e){_.error("Post loadGuide request failed: ",e),y.guidesFailed.trigger(),d.reject()}):(y.guidesLoaded.trigger(),d.resolve())}else _.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");C.isNumber(e)&&(clearTimeout(Em),Em=Ut(function(){var e;e=d,fm(),e.reject(),c=!0},e))}else d.reject();return d.promise};var xm=[];function Tm(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 km=C.memoize(function(t,n,e){if(!Im()||!Am(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 Am(e,t){return t&&t.designer||C.any(e,function(e){return!ad(e)&&C.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl||e.domJson)})})}const Rm="_pendo-default-css_",Om="_pendo-css_";function Nm(){var e=[];if(!Im())return m.resolve();Am(O,E)&&e.push(Tm(Rm,lg()));var t=((E.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(Tm(Om,Jd(t))):k("#"+Om).remove(),m.all(e)}var Mm,Lm,Pm=function(e){Mm&&Mm.flush(e)},Fm=function(){return ug};function Dm(e){var t=Cs(zs,As("visitor_id"),As("props.guide_id"),As("props.source"),Bs,js(),Ws(e),Vs,Js,tu),n=Cs(xs,Ts(e.cache),C.noop);return new au(C.extend({processSilos:t,packageSilos:n},e))}var Um=function(e){return P.initializeResourceCenter(e)},D={postMessage:C.noop,close:C.noop};let Gm=D;function Bm(e){return Mm=Mm||Dm(C.extend({cache:ug,apiKey(){return E.apiKey},beacon:"guide",allowPost:!0,preferFetch:Ge.safari},e)),Lm=Lm||Dm(C.extend({cache:[],apiKey(){return E.apiKey},beacon:"poll",allowPost:!0,preferFetch:Ge.safari},e)),os(Mm),os(Lm),()=>{Mm.clear(),Lm.clear(),as(Mm),as(Lm)}}function zm(e){var e=e["blockedURI"];e&&-1!==e.indexOf("/data/guide.json")&&f.get("cacheGuides")&&((e=f.getLocalConfig()).cacheGuides=!1,f.setLocalConfig(e),_r(window,"securitypolicyviolation",zm),nv())}let jm;var Hm=function(e){const t=[];t.push(Bm({localStorageUnload:f.get("analytics.localStorageUnload")})),jm=new ag(E.apiKey,f),xh.run(),t.push(xh.stop),y.appUnloaded.on(function(){g.dispatch("frames/leave")}),y.metadata.on(function(e){e=e.data[0].storeChanged;e&&!Dl()&&tv()}),y.identify.on(function(){tv()}),y.urlChanged.on(function(){tv(A.get())}),y.guideUpdateComplete.on(function(){var e,t,n;e=C.filter(O,e=>C.isFunction(e.outsideTimebox)&&e.outsideTimebox()),Xu.addGuide(e),Zd.processPrefetch(),e=O,t=Wu,f.get("disablePrefetch")||(t=C.keys(t)).length&&(n=C.indexBy(e,"id"),C.each(t,function(e){var e=n[e];e&&(e=C.first(e.steps))&&C.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=C.indexBy(e);C.each(Wu,function(e,t){n[t]||(e.hide(),delete Wu[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()===ev.lastUrl&&nv()},function(){fm()}));var n=f.get("guides.tooltip.arrowSize");if(C.isNumber(n)&&(E.TOOLTIP_ARROW_SIZE=n),Gm=ng(g),D=qf(Gm,g),t.push(()=>D.close()),t.push(dn.tabIdChanged(function(){var e=dn.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",Jp)),e.push(l(window,"storage",function(e){g.dispatch("guideState/storageChanged",e)})),()=>C.each(e,function(e){e()})}()),t.push(()=>{Xm.cancel(),Lh.cancel()}),t.push(l(window,"resize",Xm)),t.push(l(window,"scroll",Lh,!0)),t.push(l(window,"gestureend",Ym,!0)),t.push(l(window,"securitypolicyviolation",zm)),t.push(function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];const t=[];for(var n=0;n<e.length;n++)t.push(l(document,e[n],Qm));return()=>{C.each(t,function(e){e()})}}()),e.observing){const i=C.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(Qg.ADVANCED),h.registry.addLocal(Qg.DISMISSED),h.registry.addLocal(Qg.SNOOZED),h.registry.addLocal(ig,{duration:144e5}),Qd.initialize(),()=>{jm=null,ev.reset(),fm(),tv.reset(),_m.reqId=null,C.each(t,function(e){e()}),k("#"+Rm).remove(),k("#"+Om).remove(),Qd.teardown()}},qm=function(){return f.get("guides.disabled",!1)||f.get("disableGuides",!1)||!Eo},Wm=function(){return f.get("guides.delay",!1)||f.get("delayGuides",!1)},Vm=function(e){var t=f.getLocalConfig();t.disableGuides=e,f.setLocalConfig(t)},Jm=function(e){var t=f.getLocalConfig();t.delayGuides=e,f.setLocalConfig(t)},Km=Jn(function(e){if(e&&e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n].featureRule,r=C.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}}),$m=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},Zm=function(){_.debug("adjustActiveGuideOnResize firing");var e=rv();e&&e.step&&!E.ignoreResize&&e.step.redraw()};const Xm=C.debounce(function(){var e;-1<C.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=$m())||e.id.indexOf("pendo-video-")<0)&&Ut(function(){Zm()},150):Zm(),Lh()},50),Ym=function(e){1!==e.scale&&Xm()};var Qm=function(e){var t=C.get(document,"activeElement.id",""),e=C.get(e,"target.id","");C.filter([t,e],e=>-1<e.indexOf("pendo-video-")).length&&($m()?E.ignoreResize=!0:Ut(function(){E.ignoreResize=!1},1e3))};function ev(e){var t,n,i,r,o=b(),a=jn();e=e||A.get(),n=o,i=a,r=ll,!(t=e)||!E.apiKey||qm()&&"true"!==sg.getItem("pendo-designer-mode")||t===ev.lastUrl&&n===ev.lastVisitorId&&i===ev.lastAccountId&&r===ev.lastMetadataHash||(ev.lastUrl=e,ev.lastVisitorId=o,ev.lastAccountId=a,ev.lastMetadataHash=ll,_m(E.apiKey,o,e)["catch"](C.noop))}ev.reset=function(){C.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){ev[e]=null})};var tv=function(e){Eo&&(tv.reset(),tv.pending=Ut(function(){delete tv.pending,ev(e)},0))};function nv(){ev.lastUrl=null,tv()}function iv(e){e=cg.indexOf(e);-1!==e&&cg.splice(e,1)}function rv(){var e,n,t=C.find(O,function(e){return e.isShown()});return!t||C.get(t,"attributes.resourceCenter.isModule")&&!(t=P.getResourceCenter())?null:(e=C.find(t.steps,function(e,t){return n=t,e.isShown()}),{guide:t,steps:C.filter(t.steps,function(e,t){return e.isShown()}),step:e,stepIndex:n})}function ov(e){var t,n=C.get(e,"value","");-1!==C.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],C.forEach(e,function(e){"none"!==C.get(e,"style.display","none")&&t&&t.setAttribute("aria-labelledby",e.id)}))}tv.reset=function(){tv.pending&&clearTimeout(tv.pending)};var av=function(){var o=this,a=(this.eventable=fn.call({}),this.eventable.on("pendoEvent",function(e){try{o.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";_.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:Lg(e,e.step);break;case a.previousStep:Pg(e,e.step);break;case a.goToStep:Mg(e);break;case a.submitPoll:this.submitPoll(e);break;case a.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;Ng(e,e.step,n);break;case a.dismissGuide:P.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return Og();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return P.dismissResourceCenter(t);Og(e,e.step)}(e);break;case a.showElements:this.setElementDisplay(e,"block"),e.srcElement&&ov(e.srcElement),ol((i=ec(e.step.domJson)).props.id,t),al(i.props.id,t),M.flexAllThings(i.props.id,e.step),rl(i.props.id,t);break;case a.hideElements:this.setElementDisplay(e,"none"),ol((i=ec(e.step.domJson)).props.id,t),al(i.props.id,t),M.flexAllThings(i.props.id,e.step),rl(i.props.id,t);break;case a.slideElement:this.setElementAnimation(e);break;case a.showGuide:n=C.find(e.params,function(e){return"reason"===e.name});lm(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(Ku());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),Mg(e);break;case a.confirmation:this.confirmGuide(e);break;case a.conditionalSplit:this.handleConditionalSplit(e)}var r=av.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(C.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=C.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(C.compact(n)):_.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(C.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);C.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=k(C.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=C.find(e.params,function(e){return"transition"===e.name}).value,e=C.find(e.params,function(e){return"left"===e.name}).value;t.style.transition=n,t.style.left=e},this.openLink=function(e){var t=C.find(e.params,function(e){return"url"===e.name}).value,e=C.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&qa()&&(e="_top");window.open(t,e)},this.goToStep=Mg,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"})),C.isFunction(i[u].getAttribute)&&(e=i[u].getAttribute("data-_pendo-text-list-item-1").split(","),C.forEach(e,function(e){C.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 C.contains(t,e)&&e===n})},this.confirmGuide=function(e){var e=e.step,t=function(e){if(e.confirmationElementPathRule)return wr(e.confirmationElementPathRule)[0]}(e);e.advance(),t?t.click():_.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=!C.get(e,"params.2.value.doNotDismiss");t&&Og(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=C.find(n.steps,function(e){return e.id===i}))||n.steps[0],Jg(n),r.show("api")):t&&lm(e.params[0].value)}},this.handleConditionalSplit=function(t){var n,e=C.find(t.params,function(e){return"conditionType"===e.name}),i=C.find(t.params,function(e){return"config"===e.name}),r=C.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),e=C.find(r,function(e){return e.value===n}),0<(null==(i=null==e?void 0:e.actions)?void 0:i.length)?C.forEach(e.actions,function(e){e={action:e.action,params:e.parameters,step:t.step,srcElement:t.srcElement};o.eventHandler(e)}):_.warn("No matching case found for condition result:",n))},this.debounceAnnounceResults=C.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},sv=(av.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&((av.prototype.registeredActions=av.prototype.registeredActions?av.prototype.registeredActions:{})[e]=t)},function(){var s="guideActivity",u=function(){return(new Date).getTime()-fg},r=C.isObject,d=C.findWhere;const c=[];return{type:s,handler(e){var t,n=e.data[0],e=e.data[1];e=e,r(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if(C.isString(e.id)&&0===e.id.indexOf("pendo-base"))return!0;if(r(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return l(e)}(t)||function(e){return h(e)}(t)||function(e){return p(e)}(t))&&(e=function(e){var t=function(e){for(var t of c){t=t(e);if(t)return t}return rv()}(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=C.find(Ku(),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=h(e)||l(e)||p(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:Kr(e.props.href),target:e.props.target}];if(e.actions!==undefined)return C.map(e.actions,function(e){switch(e.action){case"automation":var t=d(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=d(e.parameters,{name:"url"}),n=d(e.parameters,{name:"target"});return{action:e.action,url:Kr(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=d(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=d(e.parameters,{name:"snooze_duration"}),t=d(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"advanceGuide":case"previousStep":case"submitPoll":case"dismissGuide":case"confirmation":return{action:e.action};default:return{}}});if("pendo_task_list_item"===t.templateName&&C.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 nm({type:s,visitorId:b(),ui_element_id:i,ui_element_type:e.type,ui_element_actions:n,guideId:t.guide.id,stepId:t.step.id,duration:u(),language:t.guide.language})}(n))&&om(e)},registerGuideResolver(e){c.push(e)},removeGuideResolver(e){e=c.indexOf(e);-1!==e&&c.splice(e,1)}};function l(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-button/.test(e.id))?{type:e.tag,id:e.id}:i(e)||!r(e.parentElem)?null:l(e.parentElem)}function p(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)||!r(e.parentElem)?null:p(e.parentElem)}function h(e){return"A"===e.tag?{type:e.tag,id:e.id}:i(e)||!r(e.parentElem)?null:h(e.parentElem)}function i(e){return C.isString(e.id)&&0===e.id.indexOf("pendo-guide-container")}}()),uv=[],dv=!(av.deregisterAction=function(e){e&&"string"==typeof e&&delete(av.prototype.registeredActions=av.prototype.registeredActions?av.prototype.registeredActions:{})[e]});const cv={agent:{getJwtInfoCopy:gs.get,treatAsAdoptPartner:ao},agentStorage:h,analytics:{ptm:()=>Fs,collectEvent:Es},attachEvent:p,ConfigReader:f,Events:y,EventTracer:dn,EventRouter:av,Extensions:{API:{addTopic:function(e,t){var n=zl[e]||{};C.extend(n,t),zl[e]=n}}},frames:{getChannel:()=>Gm},getAssetUrl:oo,getEventable:()=>fn.call({}),GlobalRuntime:{addGlobalScript:Qd.addGlobalScript,removeGlobalScript:Qd.removeGlobalScript},GuideActivity:sv,GuideLoop:{addUpdatePhase:bh,removeUpdatePhase:wh},guides:{addProcessor:function(e){return cg.push(e),C.partial(iv,e)},removeProcessor:iv,registerDisplayableGuides:function(e,t){C.isArray(t)&&(Vu[e]=t)},removeDisplayableGuides:function(e){delete Vu[e]}},hosts:{SERVER:He},NodeSerializer:Tu,q:m,sessionStorage:h.getSession(),sizeElements:nl,store:g,Tombstone:Xu,transmit:{buildBaseDataUrl:Io,fetchKeepalive:ko,sendBeacon:Ao},log:_,util:{trim:Xe,base64EncodeString:it,parseUrl:Ea,addInlineStyles:C.partial(ic,f),getNow:v},constants:{URL_MAX_LENGTH:2e3}};function lv(t){C.find(uv,function(e){return e.name===t.name})?_.warn(`Plugin with name ${t.name} already exists. Skipping registration.`):(uv.push(t),dv&&t.initialize(E,cv))}function pv(){C.each(uv,function(e){C.isFunction(e.teardown)&&e.teardown(E,cv)}),dv=!1}Vl.registerExtensionsByUse("plugin",function(e){return C.extend(e.uri,C.pick(e,"name")),lv(e.uri),e},function(e){return!!e.uri.initialize&&!!e.uri.teardown});var hv=!1;function fv(){hv||(y.identify.on(function(e){var t,n,e=e.data[0];n=(t=e).old_visitor_id,t=t.visitor_id,(An(n)?kn(t)?An(t)?(_.info("Visitor is anonymous: "+t),1):Mn(t)?(_.info("Visitor id is the default: "+t),1):(_.info("Re-mapping visitor identity from "+n+" to "+t),0):(_.info("Not valid visitor id: "+t),1):(_.info("Visitor is already identified: "+n),1))&&(n=(t=e).old_account_id,t=t.account_id,kn(t)?n===t||(_.info("Re-mapping account identity from "+n+" to "+t),0):(_.info("Not valid account id: "+t),1))||(Es("identify",e),us())}),y.metadata.on(function(e){var t;Dl()||({options:e,hashChanged:t}=e.data[0],t&&(Es("meta",e),us()))}),y.identify.on(Bl),hv=!0)}gv="guideActivity",mv=function(){return(new Date).getTime()-fg},vv=C.isObject;var gv,mv,vv,yv={type:gv,handler(e){var t,n=e.data[0],e=e.data[1];e=e,vv(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(vv(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return Sv(e)}(t)||function(e){return bv(e)}(t)||function(e){return wv(e)}(t))&&(e=function(e){var t=P.getResourceCenter();if(t){var n=t.activeModule,i=Sv(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=bv(e)||wv(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),nm({type:gv,visitorId:b(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,duration:mv(),language:i.language})}}(n))&&om(e)}};function bv(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&&vv(e.parentElem)?bv(e.parentElem):null}function wv(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&&vv(e.parentElem)?wv(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 Sv(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&&vv(e.parentElem)?Sv(e.parentElem):null}const Ev=e=>(e=e||E).doesExist(e.apiKey);class Iv extends yt{constructor(){super(),this.cache=new Set,this.foundShadowRoots=!1,this.stoppedSearchEarly=!1}updateCache(){this.cache.forEach(e=>{Zo(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)}triggerAttachShadow(e){this.cache.add(e),this.dispatchEvent({type:"attachShadow",shadowRoot:e})}findShadowRoots(r,o=5e3){if(C.isFunction(r.createNodeIterator)){let t=0,n=[Ko(r)],i;function a(e){do{if(!(e=e||r.createNodeIterator(n.pop(),NodeFilter.SHOW_ELEMENT))||!e.nextNode)break;for(;(i=e.nextNode())&&(t++,i&&i.shadowRoot&&(this.triggerAttachShadow(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,a.call(this,e)},50)),t!==o||this.foundShadowRoots||(this.stoppedSearchEarly=!0)}a.call(this)}}teardown(){this.cache.clear(),C.isFunction(this.unpatchAttachShadow)&&(this.unpatchAttachShadow(),this.unpatchAttachShadow=null),this.findTimeout&&(clearTimeout(this.findTimeout),this.findTimeout=null)}}class Cv extends yt{constructor(e=dt("MutationObserver")){super(),this.ObserverClass=e,this.observing=!1,this.observers=new Map,this.triggerMutation=this.dispatchMutationEvent,this.shadowDom=new Iv,this.shadowDom.addEventListener("attachShadow",C.bind(this.handleAttachShadow,this)),this.shadowDom.addEventListener("detachShadow",C.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=C.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 _v=new Cv;let xv=0;const Tv="initializeImmediately",kv=[],Av=Jn(function(e){if("complete"===document.readyState||C.get(e,Tv)||f.get(Tv))if(_.info("pendo.initialize called with "+JSON.stringify(e)),E.apiKey)1==xv++&&_.info(["pendo.initialize only needs to be called once",ut()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join(""));else{if(e=e||{},C.isEmpty(gs.get())&&(o=gs.getJwtOptions(e,"initialize"))&&(gs.set(C.pick(e,"jwt","signingKeyName")),C.extend(e,o,{forceAnonymous:!0})),C.isString(e))return kr.get(e).then(e=>(le(u=e.data),Av()));try{g.dispatch("location/init",e.location||{})}catch(a){_.critical("Location API Exception",a)}f.setLocalConfig(e),io(),E.HOST=Yr;var t,n,i,r,o=f.get("cookieDomain");if(o&&(o=o,i=location.host,o?C.isString(o)&&(i=i.replace(/:\d+$/,""),o=o.replace(/^\./,""),t=new RegExp("\\."+St(o)+"$"),n=new RegExp("^"+St(o)+"$"),t.test(i)||n.test(i))&&(At="."+o):At=o),df.discoverKeys(e),df.getApiKey()){g.commit("metadata/setMetadata",{selfHosted:Fl()}),e.logStackTraces&&(E.logStackTraces=e.logStackTraces),f.get("preferBroadcastChannel")&&eg.secure(!0);const s=f.get("analytics.localStorageUnload");bs.read(h),kv.push((t={localStorageUnload:s},Ls=is.events=Ka,Ps=is.trackEvents=$a,Gs=is.agenticEvents=Za,Fs=su(C.extend({cache:Ls,silos:is.silos,apiKey:Co,beacon:"ptm",allowPost:!0},t)),Ds=su(C.extend({cache:Ps,silos:is.trackEventSilos,apiKey:Co,beacon:"ptm",allowPost:!0,params:{type:"track"}},t)),Us=su(C.extend({cache:Gs,silos:is.agenticEventSilos,apiKey:Co,beacon:"agentic","class":"agentic",allowPost:!0},t)),os(Fs),os(Ds),os(Us),()=>{ls(),as(Fs),as(Ds),as(Us),Fs=Ds=Us=undefined})),_v.initialize(E,cv),kv.push(()=>_v.teardown()),Eo&&(h.registry.addLocal(Cn),h.registry.addLocal(_n),h.registry.addLocal(xn),h.registry.addLocal(Rl),E.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,kv.push(Ed(y)),[{events:i=[]}]=[e],C.each(i,(e,t)=>{Cd[t]&&Cd[t](e)}),kv.push(Hm(_v)),fv(),kv.push(Du()),kv.push((C.each(uv,function(e){e.initialize(E,cv)}),dv=!0,pv)),kv.push((n=e,h.registry.addLocal(Fh),h.registry.addLocal(Dh),C.find([C.partial(ff.launchOnToken,window.location),C.partial(Uh,window),C.partial(ff.localStorageNavigation,n)],e=>e()),n.enableDesignerKeyboardShortcut||!f.get("disableDesignerKeyboardShortcut")?Nf.listen():()=>{})),y.appUsage.on(sv.handler),y.appUsage.on(yv.handler),kv.push(ds(Xa))),y.appHidden.on(()=>{ss(0,{hidden:!0})}),y.appUnloaded.on(()=>{ss(0,{unload:!0}),s&&bs.write(h)}),Rn()||On(),E.updateOptions(e),e.visitorId&&e.visitorId!=Nn&&E.identify(e.visitorId),kv.push(A.watch(function(){E.pageLoad()})),Eo&&y.ready.trigger(),uu(A.get()),xv++,window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&((r=eg.targetOrigin())?window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},r):_.warn("Unable to announce frame to designer plugin, targetOrigin is not set. Check if broadcastChannel is enabled and cross origin frames are allowed.")),Nv()}else _.debug("API key is not set, Pendo will not initialize.")}else ae(E,"initialize",arguments)});function Rv(e){return!C.isArray(e)||C.isEmpty(e)}function Ov(e){if(!Rv(e))return C.find(e,e=>"initialize"===e[0])}function Nv(i){var e;return!Rv((i=i||E)._q)&&(e=!!Ov(i._q),Ev(i)||e)?(e=i._q.splice(0,i._q.length),C.reduce(e,(e,t)=>{if(!C.isArray(t))return e;const n=i[t.shift()];return C.isFunction(n)?e.then(()=>n.apply(i,t)):e},m.resolve()).then(Nv)):m.resolve()}function Mv(){Ev()?_.info("already running"):(window.pendo_options&&Av(window.pendo_options),Nv())}function Lv(){y.appHidden.trigger(),y.appUnloaded.trigger(),C.each(kv,function(e){e()}),uu.reset(),kv.length=0,eg.close(),fn.clear(y),fn.clear(Cd),delete E.apiKey,xv=0}var Pv,Fv,Dv={getActiveGuide:rv,smartNextStep:function(e){var t,n=rv();n&&(t=n.guide.steps[n.stepIndex+1],Ut(function(){var e=wr(t.elementPathRule);0!==e.length&&C.some(e,ca)?Lg(n.step):Lg(t)},e=e||0))},smartFirstStep:function(){k("._pendo-guide_").css("display:none;");var t=sm(),e=rv().guide.steps,n=C.filter(C.rest(e),function(e){return!!e.pageId}),n=C.indexOf(e,C.find(n,function(e){return dm(e.regexUrlRule,t)}));_.info("startingPoint is "+n),-1==n?k("._pendo-guide_").css("display:block;"):(n=e[Math.max(0,n-1)],_.info("found starting step to be "+n.id),Lg(n))},advanceOn:function(e,t){var n=rv(),i=k(t=t||n.step.elementPathRule)[0],r=function(){Lg(),zu(i,e,r,!0)};p(i,e,r,!0)},renderStepPosition:function(e,t,n){if(t)n||(i=[].concat(t.steps).reverse(),n=C.findWhere(i,{seenState:"active"}));else{var i=rv();if(!i)return;t=i.guide,n=i.step}return(e=C.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=ec(e),a=C.get(r,"attributes.resourceCenter");a&&(P.revertRtlChanges(r,e.props),e=P.updatePseudoStyleSelectors(e));var s=a&&P.isFullyCustom(r),u="AnnouncementsModule"===C.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.containerId=o&&o.props&&o.props.id,n.element=ld(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=C.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=dd(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)))})(dd(),o[0],n.id),nl(o),c&&Lc.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":Lc.attachBBAdvanceActions(n);c&&!d&&Lc.positionStepForTooltip(n,e,t[0]);{var f;a&&(P.showHomeViewOrEmptyState(r),f=[],u?f=[r.attributes.resourceCenter]:U.flexAllThings(n.containerId,n),f.length)&&C.forEach(f,function(e){e=C.get(e,"children",[]);C.forEach(e,function(e){var t;e&&(t=e.steps[0],C.isUndefined(t.attributes.imgCount))&&(t=C.get(t,"id",n.id),e=C.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||(C.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=So(t=e),n=jo(),C.extend(n,{top:0,left:0,bottom:n.height,right:n.width}),Yo(n,t)||pa(e),e.focus(),e===k.getRootNode(e).activeElement)},i={maxRetries:100,delay:50,exponentialBackoff:!1};pt(function(){var e,t,n,i,r=k(o).find("#pendo-guide-container");return(r=r[0]||r)&&ca(r)&&(e=r,t=C.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){pt(function(){return n(e)},i,function(){},function(){_.warn(t+"#pendo-guide-container is available on page but could not capture focus")})},function(){_.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=C.toArray(e.find(t))).length)&&(a=o[0],s=o[o.length-1],t=zv(e),u=t[0],d=t[1],n=function(e){var t,n,i=Uv(e),r=e.shiftKey;i&&(t=(i=k.getRootNode(c).activeElement)===c,n=document.activeElement===document.body,r?(i===u||t||n)&&(Bv(o,s).focus(),e.preventDefault()):(t||i===d||n)&&(Bv(o,a).focus(),e.preventDefault()))},p(document,"keyup",n),p(document,"keydown",n),y.one("unmounted",()=>{zu(document,"keyup",n),zu(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]=zv(k(u));var t=function(e){var t=Uv(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(sa);function o(t){return Object.values(a).findIndex(e=>e===t)}n?r?(i.focus(),e.preventDefault()):t&&Gv(0===(n=o(d))?a.length-1:n-1,a,e):t?Gv(o(i)+1,a,e):r&&Gv((n=o(c))>=a.length-1?0:n+1,a,e)}}},n=function(e){var t=Uv(e),n=e.shiftKey;t&&!n&&Gv(0,k('[id^="pendo-g-"]').find(sa),e)},i=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=d&&t&&Gv((n=k('[id^="pendo-g-"]').find(sa)).length-1,n,e)};p(document,"keyup",t),p(document,"keydown",t),p(e,"keydown",n),p(e,"focus",i),y.one("unmounted",()=>{zu(document,"keyup",t),zu(document,"keydown",t),zu(e,"keydown",n),zu(e,"focus",i)})}}},addAriaHiddenOutsideGuide:function eS(e,n=[]){if(!e||e===Ko())return n;const t=$o(e);C.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&&eS(e.parentNode,n);return n},renderResourceCenterModule:P.renderResourceCenterModule,buildNodeFromJSON:Il,attachImgLoadHandlers:Cl,recalculateGuideHeightOnImgLoad:_l,buildStyleString:function(e){var n="";return C.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:Tl,bindActionToNode:xl,recalculateGuideHeight:rl,recalculateGuideWidth:ol,adjustGuideContentWidth:al,findDomBlockInDomJson:tc,isElementHiddenInGuide:M.isElementHiddenInGuide,positionStepForTooltip:Lc.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(C.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:_c,buildNodesFromJSON:wl,findGuideContainerJSON:ec,maintainAspectRatios:M.maintainAspectRatios,sizeElement:il,sizeElements:nl,getAllowedAttributes:El,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:Lc.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:ov,addVideoLoadListener:function(e,t){p(t,"load",function(){e.removeAttribute("data-pendo-video-loading")})}};function Uv(e){return"Tab"===e.key||9===e.keyCode}function Gv(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function Bv(e,t){let n;if("radio"===t.getAttribute("type")){const i=t.getAttribute("data-pendo-poll-id");n=C.find(e,function(e){var t=e.getAttribute("data-pendo-poll-id");return i===t&&e.checked})}return n||t}function zv(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:C.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:C.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,Hv=[],qv=[];const Wv="log-enabled",Vv="active-contexts";var Jv=function(){return Zv()?Fv?"logging already enabled":(h.write(Wv,"true"),Fv=!0,"logging enabled"):"logging unavailable"},Kv=function(){return Fv?(h.write(Wv,"false"),Fv=!1,"logging disabled"):"logging already disabled"};var $v=function(e,t){return C.compact([].concat(e,t))},Zv=function(e){return e=e||"log","undefined"!=typeof console&&C.isFunction(console[e])},Xv=function(e){return e=$v(e),0<Pv.length?0<C.intersection(Pv,e).length:!!Fv||!!Ch()},Yv=function(e,...t){_.info(e,{contexts:t})};function Qv(e){var t;e.level!==gt.Debug&&e.level!==gt.Info||(t=e.attributes?$v(e.attributes.contexts):[],Zv()&&Xv(t)&&oy(e.message),ty(Hv,e.message,t))}function ey(...e){Zv("error")&&console.error.apply(console,e),ty(qv,e.join(" "))}var ty=function(e,t,n){C.contains(n,"debug")||(e.length==jv&&e.shift(),e.push([t,n]))},ny=function(t){t=$v(t),C.each(C.map(C.filter(Hv,function(e){return 0===t.length||0<C.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){oy(e,"[Pendo-History] ")})},iy=function(){return C.union.apply(C,C.map(Hv,function(e){return e[1]}))},ry=function(e){Pv=$v(e),h.write(Vv,Pv.join(","))},oy=function(e,t){var n;Zv()&&(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 ay({type:t,name:n,props:i}){if(n&&C.isString(n))if(t&&C.isString(t)){let e=i;C.isObject(i)||(e={__err__:i});i=A.get();Es(t,e,i,n)}else _.error("Must provide valid type string for event tracking");else _.error("Must provide valid name string for event tracking")}function sy(e,t){ay({type:"track",name:e,props:t})}function uy(e,t){ay({type:e,name:"agentic",props:t})}Yv.init=function(){var e,t;e=h.read(Vv,!0),Pv=e?e.split(","):[],e=je,t=h.read(Wv,!0),Fv=null!==t?"true"==t:!C.contains(["prod","prod-eu","prod-us1","prod-jp","prod-hsbc","prod-au","prod-gov","rc"],e),_.addEventListener("log",Qv),h.registry.addLocal(Wv,{isPlain:!0}),h.registry.addLocal(Vv,{isPlain:!0})},Yv.enableLogging=Jv,Yv.disableLogging=Kv,Yv.getActiveContexts=function(){return Pv},Yv.setActiveContexts=ry,Yv.showLogHistory=ny,Yv.getLoggedContexts=iy;var dy=function dy(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=(An(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"),Mn(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),jn()),t=(e||a("warn","The current visitor is not associated with an account. Is this expected?","noVisitorInAccount"),"ACCOUNT-UNIQUE-ID"===e&&a("error","The current account ID matches the example account ID from the Pendo installation instructions.","exampleAccountId"),f.get("disableCookies")&&a("warn","Cookies are disabled in Pendo config. Is this expected?","disableCookies"),Ul());if(C.each(["visitor","account","parentAccount"],function(n){var i=t&&t[n],e=C.chain(i).keys().value();0<e.length?(r||console.group(n+" metadata (does this look right?):"),0<(e=C.chain(e).map(function(e){return e.toLowerCase()}).countBy().pick(function(e){return 1<e}).keys().value()).length&&C.each(e,function(e){a("warn","Keys will be lowercased and any duplicates overwritten. Please choose unique key names for:",n+"MetadataConflict",e)}),C.each(C.keys(i),function(e){var t=i[e];C.isObject(t)&&!C.isArray(t)?a("warn",e+" is an object and will be ignored.",n+"Metadata",t):C.isArray(t)&&C.any(t,C.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()},cy=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:Xt.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=(C.each(e,function(e){var n=e.nativeType,i=[],t=e.propsToCheck||Object.getOwnPropertyNames(n);C.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"),C.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())},ly=function(e){var t=[];if(C.isNumber(window.frames.length)&&C.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:"),C.each(t,function(e){console.warn(e)}),console.groupEnd()}},py=function(e){var t,n=window.location.href,i=[];try{(t=Dr())!==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),C.each(i,function(e){e.method?console[e.method](e.msg+"\n"+e.value):console.warn(e.msg+"\n"+e.value)}),console.groupEnd()};const hy=e=>{if(0<qv.length){var t=[].concat(qv);if(e)return t;console.group("Agent Error History"),C.each(t,(e,t)=>{console.log("Error History ",t,e)}),console.groupEnd()}},fy=e=>{t=e;var t,n=C.map(uv,function(e){return e.validate&&!t&&e.validate(E,cv),e.name});if(e)return n;console.group("Active Plugins"),C.each(n,e=>console.log(e)),console.groupEnd()};var gy=function(e){var t={install:dy(e),plugins:fy(e),globals:ly(e),url:py(e),errors:hy(e)};if(e)return t.methods=cy(e),t;f.validate(console)},my={BuildingBlockGuides:U,BuildingBlockResourceCenter:P,BuildingBlockTemplates:rc,BuildingBlockTooltips:Lc,BuildingBlockSvgs:dc};function vy(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=C.compose(C.bind(this.afterJobRun,this),C.bind(this.doJob,this),C.bind(this.shouldJobRun,this))}vy.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},vy.prototype.stop=function(){clearTimeout(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var yy=kr.urlFor,by={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace","Clear","AddTo"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};function wy(e,t,n){var i;if(C.isObject(e)&&(t=e.action,n=e.data,e=e.attr),!by[e])throw i=C.keys(by).join(", "),new Error('Invalid URL attribute type: "'+e+'". Valid attributes are: '+i+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!C.contains(by[e],t))throw i=by[e].join(", "),new Error('Invalid transform action: "'+t+'" for attribute "'+e+'". Valid actions for "'+e+'" are: '+i+'. Example: {attr: "'+e+'", action: "'+by[e][0]+'", data: ...}');this.attr=e,this.action=t,this.data=n}function Sy(e){return e instanceof Kn||e instanceof HTMLAnchorElement}wy.prototype.applyToURL=function(e){return{AllowOnlyKeys(e,t,n){C.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Kn(Xr(t,null,n,!1))},ExcludeKeys(e,t,n){C.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Kn(Xr(t,null,n,!0))},AddTo(e,t,n){var i;return C.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 Kn(yy(t,n)))},Clear(e,t){return"pathname"===t?e.pathname="/":e[t]="",e},Replace(e,t,n){return C.isFunction(n)&&(n=n(e[t],e)),"href"===t?new Kn(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)},wy.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},wy.fromJSON=function(e){if(e instanceof wy)return e;if(!C.isObject(e))throw new Error("UrlAttrTransform.fromJSON expects an object. Received: "+typeof e+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!e.attr)throw t=C.keys(by).join(", "),new Error('UrlAttrTransform is missing required "attr" property. Valid attributes are: '+t+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!e.action)throw t=by[e.attr]?by[e.attr].join(", "):"AllowOnlyKeys, ExcludeKeys, AddTo, Replace, Clear",new Error('UrlAttrTransform 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(!by[e.attr])throw t=C.keys(by).join(", "),new Error('Invalid attribute "'+e.attr+'". Valid attributes are: '+t+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!C.contains(by[e.attr],e.action))throw t=by[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: "'+by[e.attr][0]+'", data: ...}');var t;if(C.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||C.isArray(e.data)||C.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(!C.isString(e.data)&&!C.isObject(e.data)&&!C.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(!C.isObject(e.data)&&!C.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 wy(e.attr,e.action,e.data)}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 UrlAttrTransform: "+n.message+". Transform object: "+JSON.stringify(e))}};Ey=function(t,n,i,r){return[new wy("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new wy("href","ForceSecure")]},Pi={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:Iy=function(){var e=Fr(),t=A.isElectron()?Ey(A.electronAppName(),A.electronResourcesPath(),A.electronUserDirectory(),A.electronUserHomeDirectory()):[];return Ty([].concat(t),e)}},Cy=new vy(500,function(e){!Ev()||du(document)||uu()}),_y=function(e){if("string"==typeof e)return new Kn(e);if(Sy(e))return e;throw new Error("Invalid type from custom URL source. Must be either an URL or a String of a valid url.")},xy=function(e){return e||window.location},Ty=function(e,t){return C.reduce(e,function(e,t){return t.applyToURL(e)},t)};var Ey,Iy,Cy,_y,xy,Ty,ky,e={state:Pi,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){C.each(e,function(e){t.commit("addTransform",wy.fromJSON(e))})},addInternalTransforms(t,e){C.each(e,function(e){t.commit("addInternalTransform",wy.fromJSON(e))})},removeInternalTransforms(t,e){C.each(e,function(e){t.commit("removeInternalTransform",wy.fromJSON(e))})},startPolling(e){Cy.start()},stopPolling(e){e.state.currentSrcFn===Iy&&Cy.stop()}},mutations:{addTransform(e,t){e.transforms.push(t)},addInternalTransform(e,t){e.internalTransforms.push(t)},removeInternalTransform(e,t){t=C.indexOf(e.internalTransforms,t);0<=t&&e.internalTransforms.splice(t,1)},clearTransforms(e){e.transforms=[]},clearInternalTransforms(e){e.internalTransforms=[]},changeUrlSource(e,t){if(t){if("string"==typeof t)var n=new Kn(t),n=C.partial(C.identity,n);else if(Sy(t))n=C.partial(C.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,Cy.start(!Ev())}else e.currentSrcFn=Iy,Cy.stop()}},getters:{url:ky=function(e){try{var t=function(e){return n=e},n=C.reduce([e.currentSrcFn,_y,t,C.partial(Ty,e.transforms),_y,t,C.partial(Ty,e.internalTransforms),_y],function(e,t){return t(e)},null)}catch(i){_.critical(i),n=xy(n)}return n},href(e){return ky(e).href}}};function Ay(e){var t;if("function"==typeof Ay[e])return t=C.toArray(arguments).slice(1),Ay[e].apply(Ay,t)}C.extend(Ay,{getHref(){return g.getters["location/href"]()},clearTransforms(){g.commit("location/clearTransforms"),uu()},addTransforms(e){g.dispatch("location/addTransforms",e),uu()},setUrl(e){g.commit("location/changeUrlSource",e)},useBrowserUrl(){g.commit("location/changeUrlSource"),uu()}});function Ry(){return f.get("guideSeenTimeoutLength")||1e4}Oy=[];var Oy,Ny={name:"StepTimeoutMonitor",initialize(){this._beforeGuideShow=C.bind(Ny.beforeGuideShow,Ny),this._stop=C.bind(Ny.stop,Ny),y.beforeGuideShow.on(this._beforeGuideShow),y.guideSeen.on(this._stop),y.guideNotSeen.on(this._stop)},teardown(){Ny.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<C.indexOf(["dom","launcher","badge","api"],e),"active"===t.seenState||t.hasBeenControlled()||t.isTimedOut()||(n=n&&n.steps)&&(0!==C.indexOf(n,t)||e)&&Ny.start(t))},start(e){var u,t,n=Oy[0];n&&n===e.id||(n&&n!==e.id&&(n=Oy[1],C.isFunction(n))&&n(),e.shouldStartTimer()&&(u=Ry(),n=C.partial(function(e,t){var n,i,r,o,a,s=N(t);s&&(n=s.findStepById(e))&&!s.isShown()&&(a=n.canShowOnPage(sm())?Gg(n)?"other":"element":"page",i=t,r=e,o=b(),a=a,s=s.language,i=nm({type:"guideTimeout",guideId:i,stepId:r,visitorId:o,seen_reason:a,language:s,guideSeenTimeoutLength:u}),om(i),y.guideTimeout.trigger(i),_.info("Guide "+t+" timed out showing Step "+e),n.timeout()),Ny.stop()},e.id,e.guide.id),t=Ut(n,u),Oy=[e.id,n,t]))},stop(){var e=Oy[2];e&&clearTimeout(e),Oy=[]},getGuideSeenTimeoutLength:Ry};function My(){console.warn("This functionality is not supported by your subscription.")}function a(e){return Eo?e:My}var Ly="is going away",Py="is gone",Fy=C.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return _.info(e),e});function Dy(e,t,n){return function(){return Fy("pendo."+t,n),(e||C.noop).apply(null,arguments)}}function Uy(e){return e&&1===e.length?e[0]:C.any(e,ft)?m.all(e).then(function(e){return C.any(e)}):void 0}function Gy(){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||{},C.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),Vd(e,this)},this),this.isActivatedByEvent=function(e){return!!(this.hasLaunchMethod("dom")&&this.attributes&&this.attributes.activation&&C.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=C.first(this.steps);return e&&"whatsnew"===e.type},this.isAnnouncement=function(){return C.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")&&C.any(this.steps,function(e){return e.shouldAutoDisplay()})},this.autoDisplay=function(){if(this.shouldAutoDisplay())return Uy(C.map(this.steps,function(e){return e.autoDisplay()}))},this.isRendered=function(){return C.any(this.steps,function(e){return e.isRendered()})},this.isShown=function(){return C.any(this.steps,function(e){return e.isShown()})},this.canShowOnDevice=function(){if(!sd()){var e=ud(),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()&&C.any(this.steps,function(e){return e.canShow()})},this.launch=function(e){var t;return this.hasGuideBeenControlled()||(t=this.show(e)),this.isShown()?C.each(this.steps,function(e){e.seenState="active"}):!this.isShown()&&this.isControlGroup()&&C.each(this.steps,function(e){e.seenState="notSeen"}),t},this.show=function(t){return Uy(C.map(this.steps,function(e){return e.show(t)}))},this.checkForHiddenGroupSteps=function(){},this.hide=function(t){C.each(this.steps,function(e){e.hide(t)})},this.hasBeenSeen=function(){return C.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=C.get(this,"attributes.resourceCenter"),this.isControlGroup()&&!e?this.hasGuideBeenControlled()||this.steps[0].onControlGuide("control"):(e=C.first(this.steps))&&C.isFunction(e.canShowOnPage)&&e.canShowOnPage(sm())&&Rh(this)):Mh(this)},this.findStepById=function(t){return C.find(this.steps,function(e){return e.id===t})},this.isPoweredByEnabled=function(){return!!C.find(this.steps,function(e){return e.isPoweredByEnabled()})},this.searchFor=function(t){var e,n,i=null;return st(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?C.find(n,function(e){return st(e.text,t,!0)}):e)?i="tag":(n=C.map(this.steps,function(e){return e.searchFor(t)}),0<C.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&&!C.isFunction(t.steps[0].fetchContent)||(e=t.steps[0],!t.hasLaunchMethod("launcher")&&!t.isWhatsNew())||!e.canShowOnPage(sm())||!t.canShowOnDevice()||!Gg(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(sm())||!this.canShowOnDevice()||!Gg(e)||this.outsideTimebox())};var e,n="PENDO_HELPER_STEP";return this.getPositionOfStep=function(e){var t=C.reject(this.steps,function(e){return st(e.content,n)});return C.indexOf(t,e)+1},this.getTotalSteps=function(){return C.reject(this.steps,function(e){return st(e.content,n)}).length},this.getSeenSteps=function(){return C.size(C.filter(this.steps,function(e){return e.hasBeenSeen()}))},this.isComplete=function(){var t=["advanced","dismissed"];return C.all(this.steps,function(e){return C.contains(t,e.seenState)})},this.isInProgress=function(){var t=["active","advanced","dismissed"];return!this.isComplete()&&C.any(this.steps,function(e){return C.contains(t,e.seenState)})},this.isNotStarted=function(){return!this.isInProgress()&&!this.isComplete()},this.fetchContent=function(){return m.all(C.map(this.steps,function(e){if(C.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 C.any(this.steps,function(e){return e.isSnoozed()})},this.hasGuideBeenControlled=function(){return C.any(this.steps,function(e){return e.hasBeenControlled()})},this.isControlGroup=function(){return this.control},this.shouldShowSnoozedGuide=function(){var t=!1;return!this.outsideTimebox()&&C.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,C.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 C.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 By(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){C.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var zy=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function jy(){var r,o=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(C.each(this.steps,function(e){e.after("render",function(){C.each(e.elements,function(e){k(e).addClass("_pendo-guide-walkthrough_")})})}),r=null,this.sections=C.reduce(this.steps,function(e,t){var n,i;return i=t,!(n=r)||(n=C.last(n)).attributes.isRequired!=i.attributes.isRequired&&n.attributes.isRequired?(e.push(r),r=[t]):r.push(t),e},[]),this.sections=C.compact(this.sections.concat([r])),this.findSectionForStep=function(t){return C.find(this.sections,function(e){return C.contains(e,t)})},this.getSubSection=function(e,t){t=C.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=C.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&&!zy(this)?(o||(_.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()||C.all(this.steps,function(e){return e.shouldAutoDisplay()}))},this.autoDisplay=function(){var e,t,n;if(this.shouldAutoDisplay())return e=this.shouldRepeatGuide(),t=C.first(this.steps),n=this.nextStep(Kp())||t,this.shouldShowSnoozedGuide()||e?n.show(e?"repeatGuide":"auto"):t.autoDisplay()},this.launch=function(e){return C.first(this.steps).show(e)},this.show=function(e){var t=Kp(),n=C.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=C.last(this.steps);return!!e&&C.contains(["advanced","dismissed"],e.seenState)},this.activeStep=function(){var e=[].concat(this.steps).reverse();return C.findWhere(e,{seenState:"active"})}),this}function Hy(){var a=this;function t(r){var o=[];return function(e){try{return e.apply(a,C.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=C.last(o)-C.first(o))?(o.length-1)/(t/6e4):Infinity,Hy.MAX_ERRORS_PER_MINUTE<=t&&(n="Exceeded error rate limit, dropping guide.\n"+n,Xu.addGuide(a),y.trigger("renderFail",a)),o.shift()),_.critical(n,{error:i}),i}}}return C.each(["canShow","placeBadge","show"],function(e){a[e]=C.wrap(a[e],t(e))}),a}function qy(){return C.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=C.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=C.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 Wy(e){var t=this;return"whatsnew"===t.type||C.isFunction(e.isAnnouncement)&&e.isAnnouncement()||(t.isShown=C.wrap(t.isShown,function(e){return e.apply(this,arguments)||g.getters["frames/isShownInAnotherFrame"]()(t)})),t}function Vy(o){var a,t,i,s,r,n,u,d=this;return d.pollIds&&d.pollIds.length&&(a="_pendo-poll-selected_",t=C.indexBy(o.polls,"id"),i=C.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();Yg(e,t,b(),d.seenReason,o.language),bg(e,t,"advanced",n),Vp({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=C.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(C.compact(t)),u()}):d.attachEvent(n,"click",function(e){var t,e=k(xr(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:""})),C.isFunction(d.resize)&&d.resize()}))}),d.after("show",function(){s=(new Date).getTime()}),d.response=function(e,r){e&&e.length&&(Bm(),C.each(e,function(e,t){var n=function(t,e){if(e&&e.polls&&e.polls.length)return C.find(e.polls,function(e){return e.id===t})}(e.pollId,o),i=nm("pollResponse",d.guideId,d.id,b(),undefined,o.language);C.extend(i.props,{poll_id:e.pollId,poll_response:e.value,duration:(new Date).getTime()-s},r),n&&n.attributes&&n.attributes.type&&C.extend(i.props,{poll_type:n.attributes.type}),Lm.push(i)}),Lm.flush())}),d}Hy.MAX_ERRORS_PER_MINUTE=30;var Jy={show:function(t,n){if(sd()&&C.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return Ky(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 Ky(e.steps[0],t)}}(t,n);if(ft(e))return e.then(function(){return Ky(t,n)}).then(function(e){return!!e||$y(t,n)});e=Ky(t,n);if(ft(e))return e.then(function(e){return!!e||$y(t,n)});if(e)return!0}return $y(t,n)},showLocal:Ky};function Ky(e,t){return Zd.hasContent(e)&&jd.valid(e)?(e._show(t),e.isShown()):!(Zd.hasContent(e)&&jd.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(sm()))&&(e.lock(),Zd.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 $y(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 Zy(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 av),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=C.indexOf(t,this),i=Ul();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:nt(i),template:r};return this.template||(this.template=C.template(this.content||"")),Jd(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!C.get(this,"guide.attributes.isAnnouncement")&&!!u.canShowOnDevice()&&!this.isShown()&&!C.get(this,"stepIneligibleForApp")&&this.canShowOnPage(sm())&&Gg(this)},this.canShowOnPage=function(e){e=dm(this.regexUrlRule,e);return Ch()&&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()&&!C.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||sd()||qh())&&(e=sm(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!dm(this.regexUrlRule,e)?(Xu.addGuide(u),t.error=new Error('attempted display on page "'+e+'"'),_.critical("pendo.io page rule exception",t),1):g.getters["healthCheck/isMissingPageRule"]()(this)?(Xu.addGuide(u),t.error=new Error('missing regexUrlRule"'),_.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(Xu.addGuide(u),t.error=new Error("missing regexUrlRule for page "+this.pageId+'"'),_.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=C.find(Ku(),function(e){return e.id===u.moduleIdToReplaceHomeViewWith}),n=C.get(t,"attributes.resourceCenter.integrationProvider"),P.renderNativeIntegration(n,t)):u.continueToNativeModule?P.handleNativeIntegrationContinuation(u):(C.get(u,"attributes.resourceCenter")&&hh(P.getResourceCenter(),fh),u.isModule?U.renderResourceCenterModule(u,!1):(n=U.renderGuideFromJSON(e.domJson,e),C.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",Hg(e)).addClass(pg+" "+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&&C.isFunction(u.isOnboarding)&&u.isOnboarding()&&r.addClass("_pendo-onboarding_"),e.overlayDiv=s,e.guideElement=r}},this.teardown=function(){_.info("guide step teardown",{contexts:["guide","render"]}),C.each(this.handlers,function(e){zu(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,C.has(this.attributes,"imgCount")&&(this.attributes.imgCount=0),this.hiddenElements&&(C.each(this.hiddenElements,e=>{try{e&&"function"==typeof e.removeAttribute&&e.removeAttribute("aria-hidden")}catch(t){_.error("unable to remove aria-hidden from element",{error:t})}}),this.hiddenElements.length=0,this.hiddenElements=null),kl(this.id)},this.show=function(e){var t;if(!C.contains(["auto","continue"],e)||!g.getters["healthCheck/isRedisplay"]()(this))return(t=Jy.show(this,e))&&t["catch"]&&t["catch"](C.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=C.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"===C.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?C.forEach(u.activeModule.guidesInModule,function(e){var t;!C.isUndefined(e.steps[0].attributes.imgCount)&&0!==C.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()&&(!sd()&&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&&!Dg(this)},this.getStepPollTypes=function(n,e){var i;if(e.pollIds&&e.pollIds.length)return i=[],C.forEach(e.pollIds,function(t){var e=C.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;sd()||(this.seenReason=e,gg(v()),t=this.getStepPollTypes(u,this),this.hasBeenControlled())||($g(this.guideId,this.id,b(),e,u.language,t),C.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(),sd()||(i.seenReason=r,i.seenState="active",gg(v()),t={last_updated_at:i.lastUpdatedAt},(n=this.getStepPollTypes(u,i))&&(t.step_poll_types=n),e&&Zg(i.guideId,i.id,b(),r,u.language,t),g.dispatch("guideState/updateLastGuideStepSeen",{guideId:u.id,guideStepId:i.id,time:fg,state:i.seenState,seenReason:r,visitorId:b()}),C.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=nm({type:"guideSnoozeCanceled",guideId:t,stepId:e,visitorId:n,seen_reason:r,language:i}),om(t,null,!0),y.guideSnoozeCancelled.trigger(t))}),Qd.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(),C.each(t.elements,function(e){Vo(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()||Lg(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||Og(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)&&st(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&Lc.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&_c(this)},this.getType=function(){return this.domJson?C.get(this,"attributes.calculatedType"):this.type},this}function Xy(){return this.after("render",function(){var e,t;F&&F.contentWindow&&F.style&&(e=C.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}Zy.isGuideStep=function(e){return!!e&&C.isFunction(e.render)};const Yy={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===gt.Critical?(i=window.pendo_options||{},ey(e),!1!==E.logStackTraces&&!1!==i.logStackTraces&&n.stack?xo(e+`
|
|
9
|
+
`+n.stack):_o(e)):t.level===gt.Error?ey(e):t.level===gt.Warn&&(i=[e],Zv("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()]}}}},Qy=h.getSession(),e0="pendo_cd";class t0{constructor(){this.name="CloneDetection"}initialize(){if(C.isFunction(window.BroadcastChannel))return h.registry.addSession(e0),this.tabId=dn.getTabId(),this.id=at(16),this.channel=new BroadcastChannel("pendo-clone-detection-"+E.apiKey),this.channel.addEventListener("message",C.bind(this.onmessage,this)),this.detectClonedSession(this.id),C.bind(this.teardown,this)}teardown(){this.stopCloneDetectionTimer(),this.channel.removeEventListener("message",this.onmessage),this.channel.close(),this.channel=null}onmessage(e){var t=C.get(e,"data.type"),n=C.get(e,"data.tabId"),i=C.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=Qy.getItem(e0)||"";-1===t.indexOf(e)&&(t+="-"+e),Qy.setItem(e0,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()}isClonedSession(e){return this.startCloneDetectionTimer(),-1===(Qy.getItem(e0)||"").indexOf(e)}clearCloneDetectionValue(){Qy.removeItem(e0),this.cloneDetectionTimer=null}startCloneDetectionTimer(){this.stopCloneDetectionTimer(),this.cloneDetectionTimer=Ut(C.bind(this.clearCloneDetectionValue,this),1e4)}stopCloneDetectionTimer(){this.cloneDetectionTimer&&(clearTimeout(this.cloneDetectionTimer),this.cloneDetectionTimer=null)}clearClonedStorage(){Qy.clearPendo(),dn.setParentTabId(this.tabId),this.tabId=dn.newTabId(),y.trigger("tabIdChanged:self"),g.dispatch("frames/setTabId",this.tabId)}sendMessage(e,t){this.channel.postMessage(Object.assign({type:e},t))}}let n0=new t0;function i0(e){g.dispatch("frames/setReady",{isReady:!0})}var r0=["unknown","hidden","visible"];function o0(e){return"visible"===e.visibility||"unknown"===e.visibility}a0={};var a0,t={actions:{init(e){var t,n,i=e.state;i.initialized||(h.registry.addSession(en),h.registry.addSession(tn),t=dn.addTracerIds({}),n=Se(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),y.ready.on(i0),y.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&D.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),n0.initialize(),e.commit("setInitialized",!0))},changeGuideList(e,t){e=e.state,t=u0(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"),d0(e.state)},join(e){var t,n,i,r;e.state.disabled||(sh(),t=e.state,n=window.top==window,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:u0(td())}),(r=[].concat(f.get("leaderKey"))).length||t.agentInstallType!==be||(r=[E.apiKey]),e.dispatch("receiveFrame",{frame:C.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({},ff.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:C.toArray(C.get(t,"frame.guides",[]))}),t.frame.isTop){for(var r=e.getters.leaderKeyPreference(),o=C.filter(i.frames,e=>e.isTop);r.length;){var a=r.shift(),s=C.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[Fh]&&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}),C.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),C.each(a0,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete a0[t])}),e.dispatch("electLeader"))},waitThenElectLeader:C.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=C.filter(t.frames,e=>e.apiKey===r);if(o.length){n=o;break}}var a=C.find(n,e=>e.isTop);a?e.dispatch("followLeader",{leaderId:a.id}):(a=C.min(n,"joinedAt"),e.dispatch("followLeader",{leaderId:a.id})),d0(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=C.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",C.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+"/"+at(32),i=m.defer();return a0[n]=i,D.postMessage(C.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))?ft(e=Jy.showLocal(e,n.reason))?e.then(i)["catch"](C.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(C.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame(e,t){var n=a0[t.requestId];n&&(n.resolve(t),delete a0[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=C.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?C.each(C.compact(C.map(t.guideIds,N)),function(e){e.hide()}):Sg(),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(C.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){C.each(n.state.frames,function(e,t){t!==n.state.frameId&&n.getters.isShownInFrame()(t,{id:i.stepId})&&D.postMessage(C.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=C.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(C.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState(e,t){t.frameId!==e.state.frameId&&C.each(Qg,function(e){t[e]&&tm(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(C.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview(e,t){e.dispatch("preview/start",t[Fh],{root:!0}),Gh(window),nv()},receiveRestartPreview(e){var t=jh(O,Kp());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview(e,t){Xh({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=ca(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility(e,t){var n;!C.find(r0,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;ff.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&&Ml(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)&&Un(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=hd(t))&&((i=C.first(wr(i)))?ca(i)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),C.isFunction(n.canShowOnPage)&&!n.canShowOnPage(sm())&&(a.PAGE="mismatch"),n.elementPathRule&&((i=C.first(wr(n.elementPathRule)))?ca(i)?n.elementContainsRulesList&&!zg(i,n.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),n.triggerElementPathRule&&((i=C.first(wr(n.triggerElementPathRule)))?ca(i)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),C.get(t,"attributes.embedConfig")&&(n=C.get(t,"attributes.embedConfig.selector"),(i=C.first(wr(n)))?ca(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]=C.extend({},e.frames[n],t)},removeFrame(e,t){delete e.frames[t]},setGuideList(e,t){var n=t.frameId;e.frames[n]=C.extend({},e.frames[n],{guides:C.indexBy(u0(t.guides),"id"),autoOrdering:t.autoOrdering})},setStepShown(e,t){var n=t.frameId,n=e.frames[n]=C.extend({},e.frames[n]);n.shown=C.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]=C.extend({},e.frames[n],{visibility:t.visibility})},setReady(e,t){e.isReady=t},disableFrameVisibilityCheck(e){e.disableFrameVisibilityCheck=!0},hideGuides(e){C.each(e.frames,function(n){C.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&&C.each(e.frames,function(e){e.guides&&(e=e.guides[t.guideId])&&(e=C.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 C.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 C.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 C.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<C.size(e.frames)},shouldBeAddedToLauncher(i,e){return function(n){return e.canShowRCBadge()&&C.any(i.frames,function(e,t){return t!==i.frameId&&!!o0(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToLauncher})}},shouldBeAddedToResourceCenter(i,e){return function(n){return e.canShowRCBadge()&&C.any(i.frames,function(e,t){return t!==i.frameId&&e.apiKey===E.apiKey&&!!o0(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=C.filter(e.frames,function(e){return e.apiKey===E.apiKey}),(i=C.find(n,function(e){return e.isTop}))?e.frameId===i.id:(i=C.min(n,function(e){return e.joinedAt}),e.frameId===i.id)):C.any(e.frames,function(e){return e.isTop})?t.isTop():t.isLeader()},leaderKeyPreference(e){e=C.filter(e.frames,e=>e.leaderKey&&e.leaderKey.length);return 1===C.unique(C.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:a0};function s0(e){var t=C.pick(e,"id","name","launchMethod","isMultiStep","steps","control","lastUpdatedAt","language","state","polls","redisplay");return t.attributes=C.pick(e.attributes,"overrideAutoThrottling","priority","isAnnouncement","resourceCenter","device","sharedServiceVersion","embedConfig"),t._shouldBeAddedToLauncher=C.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e._shouldBeAddedToLauncher||!1,t._shouldBeAddedToResourceCenter=C.isFunction(e.shouldBeAddedToResourceCenter)?e.shouldBeAddedToResourceCenter():e._shouldBeAddedToResourceCenter||!1,t.steps=C.map(e.steps,function(e){return C.pick(e,"id","guideId","type","seenReason","seenState","lastSeenAt","lastUpdatedAt","dismissCount","snoozeEndTime","regexUrlRule","pageId","elementPathRule","triggerElementPathRule","elementContainsRulesList")}),t}function u0(e){return C.map(e,s0)}function d0(t){var n=C.indexBy(C.filter(td(),function(e){return!e.isFrameProxy}),"id"),e=C.chain(t.frames).filter(function(e){return e.id!==t.frameId}).map(function(e){return C.toArray(C.get(e,"guides",[]))}).flatten(!0).unique("id").filter(function(e){return!n[e.id]}).map(function(e){return C.extend(JSON.parse(JSON.stringify(e)),{isFrameProxy:!0})}).map(Wd).value(),e=C.toArray(n).concat(e).filter(wm);C.sortBy(e,Sm),Um(e),Zu(e),t.guidesLoaded&&0===C.size(C.get(t,"frames."+t.frameId+".guides",[]))&&uh()}var c0,ki={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,rh-t),rh),t=Ut(p0,t),e.commit("setScheduledUpdate",t))},handleScheduledUpdate(e){e.dispatch("stopScheduledUpdate"),uh()},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",l0),e.commit("setObserving",!0))},stopObserver(e){var t=e.getters.observer();t&&t.removeEventListener("mutation",l0),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setObserver(e,t){c0=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){e.needsUpdate=!1,e.updateId=t},completeUpdate(e,t){e.updateId=null,e.updateCompleteTime=t}},getters:{now(){return v()},observer(){return c0}},state:{useObserver:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}};function l0(){g.dispatch("guideUpdate/documentChanged")}function p0(){g.dispatch("guideUpdate/handleScheduledUpdate")}h0=["advanced","dismissed","snoozed"];var h0,Pi={actions:{init:function(t,e){C.each(e,function(e){C.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){xo(['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]=C.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)&&C.contains(h0,t.seenState)&&!C.contains(h0,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}},f0={state:{lastFlush:v(),flushInterval:3e5,counters:{ptmGifFailures:0,guideGifFailures:0},timers:{}},actions:{flush(n){C.each(n.state.counters,function(e,t){n.commit("resetCounter",t)}),C.each(n.state.timers,function(e,t){n.commit("resetTimer",t)}),n.commit("setLastFlush",n.getters.now())}},mutations:{setLastFlush(e,t){e.lastFlush=t},incrementCounter(e,t){e.counters[t]!==undefined&&e.counters[t]++},resetCounter(e,t){e.counters[t]!==undefined&&(e.counters[t]=0)},setTimer(e,{name:t,time:n}={}){t&&null!=n&&(e.timers[t]=n)},resetTimer(e,t){delete e.timers[t]}},getters:{shouldFlush(e,t){return t.now()-e.lastFlush>=e.flushInterval},payload(e){var t=C.reduce(e.counters,function(e,t,n){return 0<t&&(e[n]=t),e},{});return C.extend({},t,e.timers)},now(){return v()}}},g0={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 m0=h.getLocal();var v0="pendo-preview",y0="current-guide-preview",b0={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(v0)),i=(n.apiKey===E.apiKey&&e.commit("setPreview",n),t.getItem(y0));i&&e.commit("setDesignerPreview",JSON.parse(i))}catch(r){}},write(e){try{var t=e.getters.storage();e.state.preview?t.setItem(v0,JSON.stringify(e.state.preview)):t.removeItem(v0)}catch(n){}},exit(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview(e){e.commit("setDesignerPreview",null),e.getters.storage().removeItem(y0)},launchInAppDesigner(e,t){ff.launchInAppDesigner(t)}},mutations:{updatePreview(e,t){e.preview&&C.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 m0}}};const w0=(()=>{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",dn.getFrameId()),e.commit("setTabId",dn.getTabId()),e.commit("setInstallType",Se());var t=md()&&window.top===window;n.isTop,e.commit("setIsTop",t),e.commit("isLeader",md()),t?(t=Ih(),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&&C.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;C.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.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=C.filter(g.state.frames.frames,e=>e.guides&&e.guides[i]);t.length&&(t=C.map(t,n=>{var e=C.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:C.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){C.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=C.map($p.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:C.get(e,"data.0.visitor_id")||E.get_visitor_id(),accountId:C.get(e,"data.0.account_id")||E.get_account_id(),apiKey:E.apiKey})}function c(){g.commit("debugger/location",{href:Dr(),browserUrl:window.location.href})}function l(e){g.commit("debugger/guideLoopRunning",e)}const p=C.partial(l,!0),h=C.partial(l,!1);return C.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]=C.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}})();const S0=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=jn()){p()&&o.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}}();function E0(e,n){return e.length==n.length&&C.all(e,function(e,t){return e===n[t]})}class I0{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=wr(n.selector)}catch(i){t=[]}t.length>this.maxTargets&&(t.length=this.maxTargets),E0(t,n.targets)||(n.targets=t,this.domActivation.detach(n,this.domActivation.targets),C.each(t,function(e){this.domActivation.attach(e,n,this.domActivation.targets)},this))}}handleProcessTimeExceeded(e){e=e.getContext();e&&_.warn("Element activated guide ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var C0,_0,x0,T0,k0,A0,R0={name:"DOMActivation",key:x0="pendoTargetId",guides:T0=[],targets:k0={},reset:P0,init:D0,attach:function(n,i,e){var t=n[x0],r=t?e[t]:null;r||(t=t||"target"+C.uniqueId(),r={target:n,events:{}},e[t]=r,n[x0]=t);var o=e[i.id]||[];o.push(t),e[i.id]=o,C.each(i.events,function(e){var t=r.events[e];t||((t={guideIds:{}}).fn=C.partial(L0,C,t.guideIds),p(n,e="mouseover"===e?"mouseenter":e,t.fn),r.events[e]=t),t.guideIds[i.id]=1})},detach:M0,handler:L0,activates:F0,prefetch:U0,initialize:function(e,t){(C0=t).Events.on("deliverablesLoaded",P0),t.Events.on("guideListChanged",O0),t.Events.on("guidesLoaded",N0),bh(_0=new I0(R0))},teardown:function(){wh(_0),C0.Events.off("deliverablesLoaded",P0),C0.Events.off("guideListChanged",O0),C0.Events.off("guidesLoaded",N0)}};function O0(){P0(),D0(Ku())}function N0(){U0(Ku())}function M0(i,t){C.each(t[i.id],function(e){var n=e?t[e]:null;n&&(C.each(n.events,function(e,t){e&&e.guideIds&&(delete e.guideIds[i.id],C.size(e.guideIds)<=0)&&(zu(n.target,t="mouseover"===t?"mouseenter":t,e.fn),delete n.events[t])}),C.size(n.events)<=0)&&(delete n.target[x0],n.target=null,delete t[e])}),delete t[i.id]}function L0(e,t){var n;!e.pendoActivatedGuide&&!k.data.get(e,"advanced")&&(n=f.get("adoptPrioritizeAdoptGuides"),t=C.compact(C.map(C.keys(t),N)),t=C.filter(t,function(e){return!(!e.steps||!e.steps.length||C.get(e,"attributes.dom.isOnlyShowOnce")&&e.steps[0].hasBeenSeen())}),t=C(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=C.find(t,function(e){var t=C.first(e.steps);return C.get(e,"attributes.resourceCenter",!1)&&e.isShown()?P.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||Kg(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function P0(){C.each(T0,function(e){M0(e,k0),e.targets=[]}),T0.length=0}function F0(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(sm())){var t=C.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=hd(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function D0(e){C.each(e,function(e){e=F0(e);e&&T0.push(e)})}function U0(e){f.get("disablePrefetch")||C.each(e,function(e){C.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&C.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent(!0)})}var G0=function(){(A0=A0||{dom:k,placeBadge:Rh,showPreview:Wg,stopGuides:sh,removeAllBadges:Oh,_:C,sizzle:wr,tellMaster:Ha,tell:Ha,log:Yv,attachEvent:p,createLauncher:C.constant({}),removeLauncher:C.noop,addGuideToLauncher:C.noop,updateLauncherContent:C.noop,DEFAULT_TIMER_LENGTH:rh,getOffsetPosition:Wo,getScreenDimensions:jo,registerMessageHandler:Ma,whenLoadedCall:Hu,loadResource:xa,loadGuideCss:Nm,GuideFactory:Wd,GuideStep:Vd,extractElementTreeContext:Ou,previewGuideFromJSON:U.previewGuideFromJSON,hidePreviewedGuide:U.hidePreviewedGuide,shadowAPI:Qn,getTarget:xr,pullContentsFromTargetElement:Bg,doesElementMatchContainsRules:zg,doesElementContentMatchRule:jg,getGuideAttachPoint:dd}).areGuidesEnabled=!qm(),E.designer||(E.designer=A0)},B0=function(){var r,o,i;let a;return{name:"DesignerConnect",initialize:function(e,t){r=e,o=t,Ja()||Ma("connect",n);Ma("pendo-designer-launch::launch",d),Ma("pendo-preview::launch",c),e.app_name=document.title,(qa()||window.opener)&&window.addEventListener&&(r.log(e.app_name+": listening to messages"),window.addEventListener("message",Aa,!1));window.opener&&r._.isFunction(window.opener.postMessage)&&window.opener.postMessage({type:"pendo::ready"},"*");r.onConnectMessage=n},teardown:function(){window.removeEventListener&&window.removeEventListener("message",Aa,!1),s(),La("connect"),La("pendo-designer-launch::launch"),La("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,Ca=i,r.designerv2.hostConfig||(o.store.dispatch("frames/leave"),a=r._.partial(s,i,n),o.Events.appUnloaded.on(a)),G0(),Ha(t.source,{status:"success",type:"connect"},n),Ga("selection.js")&&(r.log("Designer Modules already loaded."),Ha({type:"ready"},n)),o.Events.designerLaunched.trigger())}function s(e,t){r.buffers.unlock(),E.designer&&(E.designer=null,delete E.designer),e&&Ha(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,Ma("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}),ao()&&(n.apiKey=r.apiKey),o.store.dispatch("preview/exitDesignerPreview"),o.store.dispatch("preview/start",n),Gh(window)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:r.apiKey,accountId:r.accountId},t.origin),nv(),o.store.dispatch("frames/startPreview")))}}();const z0="__sg__";H0="promotedAgentMetadataConfigurations",q0=[],W0={},V0={};var j0,H0,q0,W0,V0,J0={name:"PromoteMetadata",initialize:function(e,t){if(q0=(j0=t).ConfigReader.get(H0),V0={},j0.agentStorage.registry.addLocal(z0,{isSecure:!0,serializer:JSON.stringify,deserializer:kt}),Rn())try{W0=j0.agentStorage.read(z0)}catch(n){Q0()}q0&&q0.length&&(j0.Events.on("metadata",Z0),j0.Events.on("eventCaptured",tb),j0.Events.on("identify",X0))},teardown:function(){j0.Events.off("metadata",Z0),j0.Events.off("eventCaptured",tb),j0.Events.off("identify",X0)},getPromotedMetadata:function(){return q0},hasPromotedMetadataKind:K0,setSchemaGroup:Z0,getSchemaGroup:$0,resetSchemaGroup:Y0,resetCachedSchemaGroup:Q0};function K0(t){return C.some(q0,function(e){return e.kind===t})}function $0(){return V0}function Z0(e){var t;e?(e=e.data[0]["options"],e&&(t=e)):t=Ul(),V0=function(r){if(Rn())try{var e=j0.agentStorage.read(z0);W0=function(e){e=C.mapObject(e,(t,e)=>{const n={};return C.each(Object.keys(t),function(e){n[e.replace("agent__","")]=t[e]}),n});return e}(W0=e)}catch(t){Q0()}var o=V0;C.each(["visitor","account","parentAccount"],function(e){var t=K0(e),n=!C.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!C.isEmpty(W0)&&C.isEmpty(gs.get())&&(o[i]=eb(W0[i],e)),n)&&(t=eb(r[e],e),C.isEmpty(t)||(o[i]=Object.assign(Object.assign({},o[i]),t)))}),Rn()&&j0.agentStorage.write(z0,o);return o}(t)}function X0(e){e=e.data[0];C.get(e,"wasCleared")&&(j0.agentStorage.clear(z0),Y0())}function Y0(){V0={}}function Q0(){W0={}}function eb(e,i){var r={};return e&&C.each(e,function(e,t){var n=t.toLowerCase();Boolean(C.find(q0,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function tb(e){e=e.data[0];e&&(C.isEmpty(V0)&&Z0(),C.isEmpty(V0)||("track"===e.type?e.props.__sg__=V0:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=V0)))}function nb(e,t,n){this.element=e,this.method="element"==t?"click":"hover"==t?"mouseover":t,this.step=n,this.guide=n.getGuide()}nb.prototype.add=function(){0===C.indexOf(this.guide.steps,this.step)&&!nb.shouldAttachHandler(this.guide,this.method)||rd(this.guide)&&!od(this.guide)||this.setupElementEvent(this.element,this.method)},nb.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},nb.prototype.setupElementEvent=function(e,t){this.advanceFn||(this.advanceFn=C.compose(C.bind(this.teardownElementEvent,this,e,t),C.bind(this.step.advance,this.step))),nb.attach(this.step,e,t,this.advanceFn)},nb.prototype.teardownElementEvent=function(e,t){_.info("detach onGuideAdvanced",{contexts:["guide"]}),zu(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},nb.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||R0.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector};var ib=null,rb=function(){return ud()?id:nd},ob=function(e){return"#_pendo_g_"+e.id},ab=function(e,t){ib=null;var n,i,r,o,e=Wo(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(rb()),o=mb(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}),sb(n[0],o),n[0])},sb=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=C.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>");C.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)},ub=function(e,t){t===undefined&&(t=qu),e.element=ld(e);var n=e.element;if(!n)return _.info("No element found for step: "+e.id),null;pa(n);var i=ab(n,e);return null===i?null:(i.id=E.getTooltipDivId(e),k(i).appendTo(dd()),t.push(i),p(i,"mouseover",C.partial(k.addClass,i,"mouseover")),p(i,"mouseout",C.partial(k.removeClass,i,"mouseover")),fd(n,i),hb(e),n)},db=null,cb=null;var lb=null,pb={top:"north",left:"east",bottom:"south",right:"west"},hb=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=gc(n=n.concat(C.compact(C.flatten(C.map(t.additionalElements,function(e){return C.toArray(k(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=fc(a=hc(),i,o),h=i,f=!C.isEqual(h,db),db=h,f||(l=a,p=!C.isEqual(l,cb),cb=l,p)||(d=s,c=!C.isEqual(d,lb),lb=d,c))&&(u={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(u["background-color"]=t.bgColor),t.opacity&&(u.opacity=t.opacity),C.each(s,function(e,t){t=pb[t],e=C.extend({},e,u),t=k("div._pendo-guide-tt-region-block_._pendo-region-"+t+"_")[0]||fb(t),k(t).css(e)}))}catch(g){_.info("Failed to add BlockOut ui",{contexts:["error"]})}var d,c,l,p,h,f},fb=function(e){e=k(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");k("body").append(e)},gb=function(e){var t=C.isEqual(e,ib);return ib=e,!t},mb=function(e,t,n,i){var r=E.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=jo();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=vb(o,e,a,i=i||"auto"),o=yb(o,e,a,i),o=bb(o,e,a)},vb=function(e,t,n,i){return e.arrow.hbias=Nc(t,n,i),e},yb=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-fo(),t=(r=t.left-go())+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},bb=function(e,t,n){var i,r,o,a=e.height,s=e.width;return Be()?ze(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=_e(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+=_e(9,6)?6:0,e.arrow.top+=8==Ce?-1:0,i=1),r=10+E.TOOLTIP_ARROW_SIZE,o=s-3*E.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==Ac?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==Rc?(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==Ac?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=_e(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==Rc&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=_e(10,6)?5:0,e.arrow.left+=7==Ce&&6<=Re?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)},wb=430,Sb=200,Eb=15;function Ib(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||ld(t);return!n&&e?[]:(e=(t.advanceMethod||"").split(","),this.triggers=C.map(e,function(e){return new nb(n,e,t)}),this.triggers)},this.removeTrigger=function(e){this.triggers=C.without(this.triggers,e),0===this.triggers.length&&(this.triggers=null)},this.canShow=function(){return!Dg(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(sm())&&Gg(t)},this.after("render",function(){ub(this,this.elements)&&(C.each(this.getTriggers(),function(e){e.add()}),Lc.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=Wo(this.element),t=mb(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(),sb(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,hb(this)},this.onscroll=function(e){ca(e.element)?(e.reposition(),Bo(e.elements[0],"display:block")):Bo(e.elements[0],"display:none")},this.teardownElementEvent=function(){C.each(this.triggers,function(e){e.remove()})},this.after("hide",function(){k("._pendo-guide-tt-region-block_").remove(),lb=cb=db=null})),this}var Cb=function(e,t){var n=!!k("._pendo-backdrop_")[0];return C.get(t,"overlayDiv[0]")||(t.overlayDiv=k(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(dd())),Be()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&k(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},_b=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}),Be()&&t.css({position:"absolute"})},xb=function(e,t){t===undefined&&(t=qu),e.element=ld(e),_b(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(Cb(n,e),e.guideElement);t.push(n[0]),n.appendTo(dd())},Tb=function(e,t){t===undefined&&(t=qu),e.element=ld(e),e.guideElement.addClass("_pendo-guide-mobile-lb_");var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=Cb(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(dd()),t.push(e[0]),p(n[0],"touchmove",r),p(e[0],"touchmove",r)};function kb(){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(){(ud()?Tb:xb)(e,e.elements)}),e.reposition=function(){ud()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var Ab=500,Rb="_pendo-guide-banner_";function Ob(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||Ab,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=E.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(Rb).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),sd()||e.addClass("_pendo-in_"),k("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=ld(n),n.elements.push(e[0]),e.appendTo(dd())})),n}function Nb(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(C.extend(n,{isShown:C.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",Hg(n)).addClass("_pendo-guide-whatsnew_").html(n.getContent()),C.isNumber(t)&&!n.attributes.autoHeight&&e.height(t),n.seenState===r&&e.addClass(i),n.guideElement=e)},seen:s}),C.extend(t,{addToLauncher:function(){var e=n.guideElement;e&&!Zo(e[0])&&(k("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),Qd.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){sd()||a()&&n.seenState!==r&&function(e){{var t,n;if(ca(e,/(auto|scroll|hidden)/))return(t=ea(e))?(t=Xo(t),e=Xo(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(Zg(n.guideId,n.id,b(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,C.delay(function(){n.guideElement.addClass(i+" out")},C.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function u(){}}var Mb="_pendo-launcher-searching_",Lb="._pendo-launcher-search-box_ input";var Pb,Fb=function(e){return e&&C.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function Db(){var e;return function(){var e;if(E.guideWidget)return(e=E.guideWidget.data)&&e.enableSearch}()&&(e=k(Lb)[0])&&0<(e=e.value).length?(e=Xe.call(e),[].concat(C.compact(e.split(" ")))):[]}function Ub(e){if(!f.get("disablePrefetch"))return m.all(C.map(e,function(e){return e.fetchContent()}))}function Gb(e,t){return _.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||O,t&&0!==t.length?C.chain(e).filter(Fb).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return C.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var Bb=function(){var e=td();if(md()){if(E.guideWidget&&E.guideWidget.enabled){var t=$b(e),n=!0;if(E.guideWidget&&C.isFunction(E.guideWidget.update))E.guideWidget.update(t,n)}}else{o1();t=$u(e),n=Zb($b(t));n!==Pb&&g.dispatch("frames/changeGuideList",t),Pb=n}},zb="launcher-closed",jb=null,Hb=null,qb=!(nb.attach=function(e,t,n,i){if(e){for(var r=nb.handlers=nb.handlers||{},o=r[e.id]=r[e.id]||[],a=0;a<o.length;++a){var s=o[a];t===s[0]&&n===s[1]&&(zu(t,n,s[2],!0),o.splice(C.indexOf(o,s),1),a--)}o.push([t,n,i]),zu(t,n,i,!0),p(t,n,i,!0)}}),Wb="_pendo-launcher-active_",Vb=null,Jb=function(){return""};function Kb(e,t){Jb=t}function $b(e){var t,e=C.filter(e||O,Fb);return e=e,0===(t=Db()).length?e:(t=C.map(t,C.partial(Gb,e)),C.union.apply(C,t))}function Zb(e){return rt(C.map(e,function(e){var t=e.isWhatsNew()?[]:C.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function Xb(e){var n=this,t=e.launchType||"badge",i=(C.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(dd()),e.className="",n.element=t[0])}},dispose:function(){k.removeNode(n.element)},setActive:function(e){e?k(n.element).addClass(Wb):k(n.element).removeClass(Wb)}}),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=Jd(i.launcherBadgeUrl)),r.onerror=function(e){_.info("[Agent] Error! Unable to load guide center image "+i.launcherBadgeUrl),_.critical("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},Be()&&(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"})),dd().appendChild(r)}function Yb(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=xr(e),t=n();k(e).closest(t).length&&(c1()?h.write(zb,"yes"):E.guideWidget.position(e),f1())}E.guideWidget.removeCountBadge=function(){k("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),C.extend(this,{getLauncherTarget:function(){return k(n())[0]},dispose:function(){zu(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&k("._pendo-launcher-whatsnew-count_").remove()}}),p(document,"click",t)}function Qb(){var n,s="bottom-right",u="bottom-left";return this.update=function(e,t){t=t?e:$b(e),e=Zb(t)+rt(Db());return e!==n&&(n=e,this.updateLauncherContent(t)),i1(),0<t.length},this.updateLauncherContent=u1,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(jb=new Xb(e),e.height||310),n=(e.enableSearch&&(t+=Be()?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=(Hb=i[0],Wo(jb.element)),r=mb(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=s1(),o=Jd(e1(this.template(t))),t=k(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),vg(i[0],function(){p1(),h.write(zb,"yes",288e5)}),t.on("click",function(e){var t=k(xr(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=N((t=/^launcher-(.+)$/.exec(Xe.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(Kg(t.steps[0],"launcher"),p1(),ju(e))}),Be()&&(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(dd()),C.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!_e(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=Wo(e),n=mb(e,this.height,this.width),i=k(Hb),"badge"===(r=t.launchType||"badge")?(o=t.position,C.indexOf(a=[s,u,"top-left","top-right"],t.position)<0&&(o=s),C.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=C.contains([s,u],o)?"bottom":"top",n.arrow.hbias=C.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(),bb(n,e,{width:Infinity,height:Infinity}),sb(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=f1,this}function e1(e){return e=C.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function t1(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)),Vb=new Yb(e);var n,i,r=Qb.create(E.guideWidget);return C.isFunction(r.template)||(r.template=e.template?C.template(e.template):Jb),r.render(),r.position(Vb.getLauncherTarget()),t&&r.toggle(),r}Qb.create=function(e){return C.reduce(Qb.behaviors,function(e,t){return t.call(e)},e)},Qb.behaviors=[Sh,Qb,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(Lb).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,E.disableGuideCenterContentSearch||this.before("update",Ub),this.before("update",function(){t.text=Db().join(" ");var e=k("._pendo-launcher_");t.text?e.addClass(Mb):e.removeClass(Mb)})),this},function(){var n=this;{var i;n.data&&n.data.onboarding&&(i=n.onboarding=n.onboarding||{},n.before("update",function(e){var e=C.filter(e,zy),t=C.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=C.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=(C.each(t,function(e){e.show()}),C.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),C.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(){a1()?i.appendTo(this.data.launchElement):(jb.wrap(),i.appendTo(jb.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 n1=function(){Hb&&(k.removeNode(Hb),Hb=null),Vb&&(Vb.dispose(),Vb=null),jb&&(jb.dispose(),jb=null)},i1=function(){(!a1()&&(l1()||0<Db().length)?r1:o1)()},r1=function(){jb&&jb.show()},o1=function(){a1()||p1(),jb&&jb.hide()},a1=function(){return!(!E.guideWidget||!E.guideWidget.data||"element"!==E.guideWidget.data.launchType)},s1=function(e){var t=Ul(),t=C.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:nt(t)},E.guideWidget);return t.data=C.extend({},t.data),e&&(t.guides=e),t};function u1(e){var t=E.guideWidget.template||Jb,e=s1(e),e=k(document.createElement("div")).html(e1(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 d1=C.compose(i1,function(e,t){var n,i,r,o;Fb(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,C.isNumber(t)&&(r=k("._pendo-launcher-item_"))[t]?e.id!=r[t].id&&n.insertBefore(e,r[t]):n.appendChild(e))}),c1=function(){return k(Hb).hasClass(Wb)},l1=function(){return 0<k("._pendo-launcher-item_").length},p1=function(){var e;Hb&&(e=k(Hb))&&e.hasClass(Wb)&&(e.removeClass(Wb),jb)&&jb.setActive(!1)},h1=function(){var e;Hb&&(e=k(Hb))&&!e.hasClass(Wb)&&(e.addClass(Wb),jb)&&jb.setActive(!0)},f1=function(){Hb&&!qb&&(c1()?p1:h1)()};var g1=function(){try{var e=E.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};n1(),!ud()&&!n.desktop||ud()&&!n.mobile||qa()&&!n.iframe||e.enabled&&(t1(t),o1())}catch(i){_.critical("ERROR while initializing launcher",{error:i})}},m1=function(e){e.defaultLauncher=Kb,C.each(e._defaultLauncher_queue,e=>{Kb.apply(null,e)}),e._defaultLauncher_queue=[],e.toggleLauncher=f1,e.showLauncher=h1,e.hideLauncher=p1,e.removeLauncher=n1,e.initLauncher=g1,e.createLauncher=t1,e._addGuideToLauncher=d1,e.launcherToolTipDiv=Hb},v1=function(){g1()},y1=function(){var e;(e=E).designer&&(e.designer.createLauncher=t1,e.designer.removeLauncher=n1,e.designer.addGuideToLauncher=d1,e.designer.updateLauncherContent=u1)},b1=function(){var e;(e=E).debugging&&(e.debugging.getLauncherGuides=$b)},w1=function(e){return i=E.guideWidget,e=e,r=i&&i.data,e=C.filter(e,function(e){e=C.first(e.steps);return e&&"launcher"===e.type}),(e=C.first(C.sortBy(e,function(e){return-e.lastUpdatedAt})))&&r&&(e=C.first(e.steps),C.extend(r,C.pick(e,"contentUrl","contentUrlCss","contentUrlJs"),e.attributes),C.defaults(r,{whatsnew:{},knowledgebase:{}}),r.id=e.guideId+e.id),n=(t=i)&&t.data||{},!0!==f.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?Md.verify(n).then(function(){return $d.load(n)}).then(function(e){return n.template=e.content,C.extend(t,e)}):m.resolve();var t,n,i,r},S1=function(e,t){m1(e),t.Events.on("guidesLoaded",v1),t.Events.on("designerLaunched",y1),t.Events.on("debuggerLaunched",b1),t.GuideLoop.addUpdatePhase(Bb),xm.push(w1),t.agentStorage.registry.addLocal(zb,{duration:864e6})},E1=function(e,t){var n;n=w1,0<=(n=C.indexOf(xm,n))&&xm.splice(n,1),t.GuideLoop.removeUpdatePhase(Bb),t.Events.off("guidesLoaded",v1),t.Events.off("designerLaunched",y1),t.Events.off("debuggerLaunched",b1)};cv.Extensions.API.addTopic("Launcher",{addBehavior(e){Qb.behaviors.push(e)}});var I1,C1,_1,x1,T1={name:"P1Guides",initialize:function(e,t){var n;_1=t,I1=(C1=e).dom,x1=[Ib,kb,Ob,Nb,R1,O1,A1,k1],-1<C.indexOf(Vd.behaviors,Ib)||(n=C.indexOf(Vd.behaviors,Vy),Vd.behaviors.splice.apply(Vd.behaviors,[n,0].concat(x1)),t.Events.guideLoopStopped.on(o1),e.TOOLTIP_DEFAULT_WIDTH=wb,e.TOOLTIP_DEFAULT_HEIGHT=Sb,e.TOOLTIP_ARROW_SIZE=Eb,e._showElementGuide=ub,e._createTooltip=ab,e._get_tooltip_dimensions=mb,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e._showLightboxGuide=xb,S1(e,t))},teardown:function(){E1(0,_1),_1.Events.guideLoopStopped.off(o1),C1._.each(x1,function(e){e=C.indexOf(Vd.behaviors,e);0<=e&&Vd.behaviors.splice(e,1)}),x1=[]}};function k1(){const o=this;return"tooltip"!==o.type||o.domJson||(o.checkPlacement=function(){var e,t,n,i,r;e=o,r=Wo(e.element||ld(e)),hb(e),gb(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=mb(r,n,i,t),(i=k(ob(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),sb(i,n))}),o}function A1(){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=I1("._pendo-guide-container_",n),"tooltip"==i.type||Be()&&"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 R1(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&vg(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||Og(t)})}),t}function O1(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||ad(e.guide)||e.after("render",function(){Fg(e.guideElement[0])}),e}var N1,M1,L1={name:"Branding",initialize:function(e,t){N1=e,(M1=t).ConfigReader.get("isPendoFree")&&M1.Events.on("guideSeen",P1)},teardown:function(){M1.Events.off("guideSeen",P1)},addBranding:F1};function P1(e){F1(N1,e)}function F1(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",ro()+"/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 D1,U1=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 Xt(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 G1(e,i){return"undefined"!=typeof Proxy&&C.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 G1(e[t],i)}return C.isFunction(e[t])?function(){return e[t].apply(e,arguments)}:e[t]}}):e}const B1=function(){let n,l,p,h,t;const i=Jn(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 G1(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=Jn(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 wy("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=Qn.getParent(r)}return n}return e?!(t=p.Sizzle(e)[0])||"password"!==t.type&&"hidden"!==t.type?t:void 0:window}}();function z1(){var e;Ih().enabled&&(g.commit("debugger/debuggingEnabled",!0),j1(),k("#pendo-client-debugger").length||(e=f.get("agentDebuggerPluginLoader"),cv.restartDebugger?cv.restartDebugger():"function"==typeof e?e():((e=document.createElement("script")).src=Z(E).createScriptURL(oo("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 j1(){D1=D1||{store:g,ConfigReader:f,getState(){return JSON.stringify(g.state)},getEventCache(){return[].concat(Ka)},getAllGuides(){return[].concat(O)},getAutoGuides(){return $p.sortAndFilter(O,E.autoOrdering)},getBadgeGuides(){return C.filter(O,rd)},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:Zu,getBody:k.getBody,isMobileUserAgent:Ge.isMobileUserAgent,areGuidesDelayed:Wm,doesElementMatchContainsRules:zg,getMetadata:Ul,isStagingServer:re,AutoDisplay:$p,isLeader:md,Events:y,observer:_v,guideCache:jm},E.debugging=D1}function H1(e){if(Ch())return e?t:"debugging already enabled";if(!md())return;const t=Ih();return t.enabled=!0,h.write(Eh,t),z1(),e?t:"debugging enabled"}function q1(){if(!Ch())return"debugging already disabled";g.commit("debugger/debuggingEnabled",!1);var e=Ih();return e.enabled=!1,h.write(Eh,e),E.debugging=null,delete E.debugging,k("#pendo-client-debugger").remove(),"debugging disabled"}C.extend(function(e){_.debug(e,{contexts:["debug"]})},D1);const W1=(e,t,n)=>{if(t.getters["frames/leaderExists"]())return n.resolve();const i=n.defer();return e.on("leaderChanged",()=>{i.resolve()}),i.promise},V1=function(){let t,o;return{name:"DebuggerLauncher",initialize:function(n,e){const{Events:i,q:r}=e;o=e.store,W1(i,o,r).then(()=>{o.dispatch("debugger/init"),o.getters["frames/isLeader"]()&&z1()}),Ma("pendo-debugger::launch",(e,t)=>{e.config.apiKey===n.apiKey&&W1(i,o,r).then(()=>{t.source.postMessage({type:"pendo-debugger::ready",apiKey:n.apiKey},t.origin),!Ch()&&o.getters["frames/isLeader"]()&&H1(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",a);(t=n).isDebuggingEnabled=(e=!1)=>Ch(e),n.enableDebugging=H1,n.disableDebugging=q1,n.addDebuggingFunctions=j1},teardown:function(){La("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",a),t.debugging&&t.debugging.teardown&&t.debugging.teardown();q1()}};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})}}(),J1=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 C=!1;return{name:"FrustrationEvent",initialize:function(e,t){S=e,c=S._,i=t,a=0,l=[],f=[],y={},C=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=dt("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 _(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()){(l=c.filter(l,e=>t-e.timestamp<=p)).length&&Ut(_,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(_,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"),C)&&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()}}(),K1=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=$1,e.getActiveEmbeddedGuides=Z1}(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(){$m()||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 $1(){return K1.activeEmbeddedGuides}function Z1(){return K1.activeEmbeddedGuides.filter(e=>e.isShown())}const X1="sessionId";class Y1{constructor(){this.name="SessionManager"}initialize(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"identify",C.bind(this.changeIdentity,this)),this.api.attachEvent(this.api.Events,"eventCaptured",C.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",18e5),this.suffix=this.api.ConfigReader.get("identityStorageSuffix"),this.api.agentStorage.registry.addLocal(X1,{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(){C.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0}isExpired(e,t){e=C.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(X1)||this.api.agentStorage.read(X1,!1,"");return t||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(X1,t)),JSON.parse(t)}clearSessionInfo(){return this.api.agentStorage.clear(X1),this.api.agentStorage.clear(X1,!1,""),this.sessionInfo()}storeLastInteractionEventInformation(e,t){e.timestamp=t,this.api.agentStorage.write(X1,JSON.stringify(e))}}var Q1=new Y1;function ew(e,t,s,u){return new(s=s||Xt)(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 tw{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 ew(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.get(t);this.segmentsPayload(e.data)})}postLoad(t,n){return ew(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.postJSON(t,n);this.segmentsPayload(e.data)})}}var nw=new tw;const iw=["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"],rw=new RegExp(`(${iw.join("|")})`,"i"),ow=["facebook","twitter","linkedin","instagram","pinterest","tiktok","snapchat","twitch","reddit","quora","tumblr","flickr","discord","twitch","whatsapp","telegram","weibo","qq","line"],aw=["t.co","x.com"],sw=new RegExp(`(${ow.join("|")})`,"i");function uw(e,t){return fw(sw,e)||t.contains(aw,e)}const dw=["youtube","vimeo","dailymotion","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"],cw=new RegExp(`(${dw.join("|")})`,"i"),lw=["amazon","ebay","walmart","etsy","shopify","shop","target","bestbuy","costco","temu","alibaba","aliexpress"],pw=new RegExp(`(${lw.join("|")})`,"i");const hw=new RegExp(`(${["google performance max","microsoft audience network","facebook audience network"].join("|")})`,"i");function fw(e,t){return"self"!==t&&"direct"!==t&&null!==t.match(e)}function gw({referrer:e,currentHost:t}){if(!e||""===e)return"direct";e=new Kn(e).hostname;let n="self";return n=e!==t?null==e?void 0:e.toLowerCase():n}const mw=new RegExp("^(.*cp.*|ppc|retargeting|paid)$"),vw=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i");function yw(e="",t){return e.replace(/[^a-zA-Z]/g,"").includes(t)}const bw=[[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})=>yw(t,"crossnetwork")||e.match(hw)],["Paid Search",({source:e,medium:t,referrer:n,gclid:i,_:r})=>i||yw(t,"paidsearch")||t.match(mw)&&(r.contains(iw,e)||fw(rw,n))],["Paid Social",({source:e,medium:t,referrer:n,fbclid:i,_:r})=>i||yw(t,"paidsocial")||t.match(mw)&&(r.contains(ow,e)||uw(n,r))],["Paid Video",({medium:e,source:t,referrer:n,_:i})=>yw(e,"paidvideo")||e.match(mw)&&(i.contains(dw,t)||fw(cw,n))],["Paid Shopping",({medium:e,source:t,referrer:n,_:i})=>yw(e,"paidshopping")||"shopping"===e||(fw(pw,n)||i.contains(lw,t))&&e.match(mw)],["Display",({medium:e,_:t})=>t.contains(["display","cpm","banner","interstitial","expandable","programmatic"],e)||yw(e,"display")],["Paid Other",({medium:e})=>yw(e,"paidother")||e.match(mw)],["Organic Search",({source:e,medium:t,referrer:n,_:i})=>yw(t,"organic")&&i.contains(iw,e)||!t&&fw(rw,n)],["Organic Social",({source:e,medium:t,referrer:n,_:i})=>!t&&uw(n,i)||yw(t,"social")||i.contains(ow,e)&&!t.match(mw)],["Organic Video",({medium:e,referrer:t})=>yw(e,"video")||!e&&fw(cw,t)],["Organic Shopping",({medium:e,referrer:t})=>yw(e,"organicshopping")||!e&&fw(pw,t)],["Email",({source:e,medium:t})=>null!==t.match(vw)||null!==e.match(vw)||yw(t,"newsletter")],["Affiliates",({medium:e})=>yw(e,"affiliate")||yw(e,"partner")],["SMS",({source:e,medium:t})=>yw(e,"sms")||yw(t,"sms")],["Push Notifications",({source:e,medium:t})=>t.endsWith("push")||yw(t,"mobile")||yw(t,"notification")||yw(e,"firebase")],["Audio",({medium:e})=>yw(e,"podcast")||yw(e,"audio")],["Referral",({medium:e,referrer:t})=>yw(e,"referral")||!!t&&"self"!==t&&"direct"!==t],["Other",({medium:e,source:t})=>!!e||!!t]],ww="utm",Sw="enableFullUtmReferrer";class Ew{constructor(){this.name="WebAnalytics"}initialize(e,t){this.pendo=e;var n=(this.api=t)["ConfigReader"],n=(n.addOption(Sw,[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(ww),this.storeParameters(i,t.agentStorage),this.suffix=this.api.ConfigReader.get("identityStorageSuffix")}extractParameters(e,t){var n,i,r,o,a,s,u=new Kn(e).hostname,d=gw({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(Sw)?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(bw,e=>e[1](o));if(e)return e[0]}storeParameters(e,t){0<this.pendo._.size(e)&&t.write(ww,JSON.stringify(e),undefined,!1,!0,this.suffix)}loadParameters(e){e=e.read(ww,!1,this.suffix)||e.read(ww);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(ww),e.clear(ww,!1,this.suffix),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)}}var Iw=new Ew;const Cw={children:[],props:{"class":"_pendo-step-container","data-layout":"tooltipBlank",id:"pendo-base"},type:"div"},_w={css:[],props:{scoped:"scoped",type:"text/css"},type:"style"},xw={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"},Tw={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"},kw={children:[],props:{"class":"_pendo-text-paragraph",style:{}},type:"div"};function Aw(e,t){return{content:t,props:{id:"text-"+e,"class":"_pendo-text-plain",style:{color:"gray",margin:0}},type:"p"}}function Rw(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 Ow=`
|
|
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
|
+
`,Nw=`
|
|
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
|
+
`,Mw=`
|
|
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
|
+
`,Lw={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()@:%_+.~#?&/=]*)$/},Pw={"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 Fw={email(e){return Lw.emailRegex.test(e)},phone(e){return Lw.phoneRegex.test(e)},date(e,t={}){return(Pw[t.format]||Pw["MM/DD/YYYY"]).test(e)},url(e){return Lw.urlRegex.test(e)},number(e,t={}){if(""===e)return!1;let{min:n,max:i,allowDecimal:r}=t;var t=Dw(n),o=Dw(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=Dw(n),r=Dw(i);return t&&(n=Number(n)),r&&(i=Number(i)),!(t&&e.length<n||r&&e.length>i)}};function Dw(e){return e!==undefined&&null!==e&&""!==e}const Uw=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=C.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(){C.map(i,function(e){C.map(e.steps,function(e){var t=function(){if(!this.attributes)return _.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=Er.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||C.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=Rw("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:[Rw(e,t)],type:"div"}}(n.id,n.ruleText):null,0!==(i=[i,n].filter(Boolean)).length&&(n=ve(_w),r=ve(xw),o=ve(Tw),a=ve(kw),s=ve(Aw),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?Ow(Nw):c?Ow(Mw):Ow(Lw),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=C.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=Dw[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=Ow(n?Mw:Nw)):(i.props.style.color=n?"green":"red",e=Ow(n?Mw:Lw),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 ic("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 Bw{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 zw="_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[zw]=this[zw]||{},this[zw][e]=t,s._originalSetRequestHeader.apply(this,arguments)}),s._originalFetch=window.fetch,window.fetch=function(...o){return tw(this,void 0,void 0,function*(){var[e,t={}]=o,n=t.method||"GET",i=qw(t.headers),t=Hw(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=Ww(this),n=Hw(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 Bw(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 Hw(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 qw(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 Ww(e){return e[zw]||{}}var Vw=new jw;function Jw(i){var t;!function(e){e.getVersion=Ke,e.isReady=Iv,e.pageLoad=du,e.getVisitorId=zn,e.getAccountId=jn,e.clearSession=Wn,e.VERSION=Ve,e.LOADER=Je,e.flushNow=a(function(e){return us(0,e)}),e.teardown=Jn(Pv),e.initGuides=a(qm),e.loadGuides=a(xm),e.findGuideByName=a(ed),e.hideGuides=a(Eg),e.onGuideDismissed=a(Ng),e.goToStep=Lg,e.onGuideAdvanced=a(Pg),e.onGuidePrevious=a(Fg),e.onGuideSnoozed=Mg,e.startGuides=a(ch),e.stopGuides=a(lh),e.defaultCssUrl=a(pg()),e.getActiveGuides=Ku,e.getActiveGuide=ov,e.guideSeenTimeoutLength=My.getGuideSeenTimeoutLength(),e.guidesPayload=vm,e.areGuidesDisabled=a(Wm),e.setGuidesDisabled=a(Jm),e.buildNodeFromJSON=U.buildNodeFromJSON,e.flexElement=a(U.flexElement),e.GuideFactory=a(Vd),e.dom=k,e.getText=va,e.attachEvent=a(l),e.detactEvent=a(ju),e.frames={setFrameVisibility:yd},e.log=Qv,e.enableLogging=Kv,e.disableLogging=$v,e.setActiveContexts=oy,e.showLogHistory=iy,e.getLoggedContexts=ry,e.isDebuggingEnabled=C.noop,e.enableDebugging=C.noop,e.disableDebugging=C.noop,e.addDebuggingFunctions=C.noop,e.stopSendingEvents=a(rs.lock),e.startSendingEvents=a(rs.unlock),e.isSendingEvents=a(No),e.fromByteArray=c.uint8ToBase64,e.events=a(_d),e.track=a(uy),e.trackAgent=a(dy),e.validateInstall=cy,e.validateNativeMethods=ly,e.validateBuiltInGlobals=py,e.validateUrl=hy,e.validateEnvironment=my,e.doesExist=me,e.generate_unique_id=Tn,e.TEMP_PREFIX=En,e.SIZE_UNIQUE_ID=In,e._defaultLauncher_queue=[],e.defaultLauncher=()=>{e._defaultLauncher_queue.push(arguments)},e.toggleLauncher=C.noop,e.showLauncher=C.noop,e.hideLauncher=C.noop,e.removeLauncher=C.noop,e.identify=Fl,e.get_visitor_id=zn,e.set_visitor_id=function(e){Fl(e)},e.get_account_id=jn,e.set_account_id=function(e){Fl(b(),e)},e.getSerializedMetadata=Bl,e.compress=et,e.squeezeAndCompress=et,e.randomElement=ot,e.randomString=at,e.toUTF8Array=Ze,e.getNumberFromText=ht,e._addCredits=a(Dg),e.getCurrentUrl=um,e.getNormalizedUrl=um,e.testUrlForStep=a(cm),e.showGuideByName=a(lm),e.showGuideById=a(pm),e.designerv2=gf,e.P2AutoLaunch=a(Mf),e.BuildingBlocks=a(vy),e.onConnectMessage=C.noop,e.buffers=rs,e.guideDev=a(Uv),e.badgesShown=a(Vu),e.get_pendo_cookie=zt,e.DEFAULT_EXPIRE_LEN=Ht,e.set_pendo_cookie=Wt,e.loadResource=Ta,e.loadWatcher=ka,e.messageLogger=Aa,e.messageReceiver=Ra,e.messageValidator=Oa,e.MESSAGE_TYPES=Ma,e.messageDispatcher=Fa,e.moduleRegistry=Da,e.addModule=Ua,e.hasModule=a(Ga),e.findModuleByName=a(Ba),e.modulesWaiting=za,e.loadModules=ja,e.moduleLoader=Ha,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=Ge,e.url=A,e.location=Ry,e.Sizzle=u,e._=C,e.ajax=kr,e.Zlib=tt,e.guideContent=a(Zd.guideContent),e.receiveDomStructureJson=a(Zd.receiveDomStructureJson),e.addExtension=Kl}(i),(t=i).SHADOW_STYLE="",C.extend(t,{_showElementGuide:C.noop,flushEventCache:Uy(null,"flushEventCache",Fy),HOST:Yr,MAX_LENGTH:es,MAX_NUM_EVENTS:Qa,_createToolTip:C.noop,_get_tooltip_dimensions:C.noop,_isOldIE:a(Uy(_e,"_isOldIE",Py)),_logMessage:Uy(_o,"_logMessage",Py),_sendEvent:Uy(null,"_sendEvent",Fy),_sendGuideEvent:Uy(null,"_sendGuideEvent",Fy),_stopEvents:!1,_storeInCache:Uy(null,"_storeInCache",Fy),_writeEventImgTag:Uy(null,"_writeEventImgTag",Fy),_writeImgTag:a(Uy(To,"_writeImgTag",Py)),getUA:Uy(ke,"getUA",Py),ifDebugThen:Uy(null,"ifDebugThen",Fy),send_event:a(Uy(Is,"send_event","has changed to pendo.cache.createEvent")),wire_page:Uy(Uu,"wire_page",Py),messageOriginTester:Uy(null,"messageOriginTester",Fy),findGuideBy:a(Qu),findGuideById:a(N),findStepInGuide:a(td),_updateGuideStepStatus:a(wg),_addCloseButton:a(yg),initialize:Rv,getEventCache:a(Dm),processEventCache:a(Fm),isGuideShown:a(vg),_getNextStepInMultistep:a(sm),attachEvent:l,detachEvent:ju,updateOptions:Pl,createLauncher:C.constant({}),initLauncher:C.noop,_addGuideToLauncher:C.noop,launcherToolTipDiv:null,isAnonymousVisitor:(e=t.get_visitor_id())=>An(e),DEFAULT_VISITOR_ID:Nn,shouldIdentityChange:C.constant(!1),read:h.read,write:h.write,_delete_cookie:h.clear,_set_cookie:Ft,_get_cookie:Pt,get_cookie_key:Bt,ENV:je,eventCache:a($a),_getOpacityStyles:Uy(null,"_getOpacityStyles",Py),setStyle:Bo,_createGuideEvent:a(im),seenGuide:a(Xg),dismissedGuide:a(Yg),advancedGuide:a(Qg),seenTime:0,placeBadge:a(Oh),isBadge:a(od),showPreview:a(Uy(Vg,"showPreview",Py)),removeAllBadges:a(Nh),tellMaster:qa,DEFAULT_TIMER_LENGTH:oh,registerMessageHandler:La,_get_offset:a(Wo),_shouldAutoDisplayGuide:C.constant(!1),removeBadge:Mh,_showLightboxGuide:C.noop,_showGuide:a($g),getElementForGuideStep:a(pd),isElementVisible:la,getTooltipDivId:a(qg),setupWatchOnTooltip:a(Wg),letters:"",charset:"",detectMaster:Wa,listenToMaster:Uy(null,"listenToMaster",Fy),start:qu,SEND_INTERVAL:Ya,stageGuideEvent:a(am),startStagedTimer:om,isURLValid:ns,getURL:is,_get_screen_dim:a(jo),_isInViewport:a(Ho),_getCss3Prop:Uo,waitThenStartGuides:a(ah),guidesProcessingThreadHandle:rh,getMode:C.constant("default")}),C.each(["identify","updateOptions","pageLoad","track","trackAgent"],function(t){var n=i[t];i[t]=function(){try{Iv()?n.apply(this,arguments):ae(i,t,arguments)}catch(e){_.critical(e)}}})}var Kw,$w,Zw,Xw,Yw=pe(),Qw=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]||{}}(Yw);return Kw=Qw,Yw=Yw,h.registry.addLocal(Ih,{isPlain:!0,serializer:JSON.stringify,deserializer:kt}),le(Yw),je=he("env")||je,He=he("server")||He,qe=he("assetHost")||qe,We=he("assetPath")||We,De=he("designerServer")||De,De=Ee()?je+"_ext":je,Ve=W+"_"+De,!Q(Yw)&&(De=Yw,Zw=Kw,Xw=_h(),ue(De,Zw,Xw)||de(De,Zw,Xw))||Kw&&Kw.VERSION||(!Ge.isChromeExtension||(De=Yw)&&De.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")?($w=Kw,C.each(["initialize","identify","updateOptions","pageLoad","track","trackAgent"],function(e){$w[e]=function(){console.log("Pendo is currently disabled.")}})):((Zw=g).registerModule("debugger",S0),Zw.registerModule("errorLog",Qy),Zw.registerModule("frames",t),Zw.registerModule("guideUpdate",ki),Zw.registerModule("guideState",i),Zw.registerModule("healthCheck",Pi),Zw.registerModule("location",e),Zw.registerModule("monitoring",g0),Zw.registerModule("metadata",m0),Zw.registerModule("preview",w0),io(),Vd.behaviors=[Eh,By,Hd.Guide,zy,Hy,qy,Wy],Jd.behaviors=[Eh,Xy,Vy,Xd,Hd.Step,Jy,Yy],Xd.reset(),g.dispatch("frames/init"),Qv.init(),Qn.wrapSizzle(u,xv.shadowDom),u.intercept(md),Jw(Kw),_.addEventListener("log",C.partial(g.dispatch,"errorLog/write")),pv(E0),pv(O0),pv(z0),pv(K0),pv(k1),pv(P1),pv(G1),pv(z1),pv(My),pv(J1),pv(K1),pv($1),pv(ew),pv(iw),pv(Cw),pv(Gw),pv(Vw),Xw=Kw._q,Yw=Lv,De=qu,f.get("disableAutoInitialize")||(Xw=(Xw=Nv(Xw))&&1<Xw.length?Xw[1]:{},C.get(Xw,kv)||f.get(kv)?Yw():Av.push(De(Yw))))),Qw}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=Aw("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:[Aw(e,t)],type:"div"}}(n.id,n.ruleText):null,0!==(i=[i,n].filter(Boolean)).length&&(n=ve(Cw),r=ve(_w),o=ve(xw),a=ve(Tw),s=ve(kw),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?Rw(Ow):c?Rw(Nw):Rw(Mw),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=C.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=Fw[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=Rw(n?Nw:Ow)):(i.props.style.color=n?"green":"red",e=Rw(n?Nw:Mw),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 nc("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 Gw{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 Bw="_pendoHeaders";class zw{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[Bw]=this[Bw]||{},this[Bw][e]=t,s._originalSetRequestHeader.apply(this,arguments)}),s._originalFetch=window.fetch,window.fetch=function(...o){return ew(this,void 0,void 0,function*(){var[e,t={}]=o,n=t.method||"GET",i=Hw(t.headers),t=jw(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=qw(this),n=jw(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 Gw(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 jw(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 Hw(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 qw(e){return e[Bw]||{}}var Ww=new zw;function Vw(i){var t;!function(e){e.getVersion=Ke,e.isReady=Ev,e.pageLoad=uu,e.getVisitorId=zn,e.getAccountId=jn,e.clearSession=Wn,e.VERSION=Ve,e.LOADER=Je,e.flushNow=a(function(e){return ss(0,e)}),e.teardown=Jn(Lv),e.initGuides=a(Hm),e.loadGuides=a(_m),e.findGuideByName=a(Qu),e.hideGuides=a(Sg),e.onGuideDismissed=a(Og),e.goToStep=Mg,e.onGuideAdvanced=a(Lg),e.onGuidePrevious=a(Pg),e.onGuideSnoozed=Ng,e.startGuides=a(dh),e.stopGuides=a(ch),e.defaultCssUrl=a(lg()),e.getActiveGuides=Ju,e.getActiveGuide=rv,e.guideSeenTimeoutLength=Ny.getGuideSeenTimeoutLength(),e.guidesPayload=mm,e.areGuidesDisabled=a(qm),e.setGuidesDisabled=a(Vm),e.buildNodeFromJSON=U.buildNodeFromJSON,e.flexElement=a(U.flexElement),e.GuideFactory=a(Wd),e.dom=k,e.getText=ma,e.attachEvent=a(p),e.detactEvent=a(zu),e.frames={setFrameVisibility:vd},e.log=Yv,e.enableLogging=Jv,e.disableLogging=Kv,e.setActiveContexts=ry,e.showLogHistory=ny,e.getLoggedContexts=iy,e.isDebuggingEnabled=C.noop,e.enableDebugging=C.noop,e.disableDebugging=C.noop,e.addDebuggingFunctions=C.noop,e.stopSendingEvents=a(is.lock),e.startSendingEvents=a(is.unlock),e.isSendingEvents=a(No),e.fromByteArray=d.uint8ToBase64,e.events=a(Cd),e.track=a(sy),e.trackAgent=a(uy),e.validateInstall=dy,e.validateNativeMethods=cy,e.validateBuiltInGlobals=ly,e.validateUrl=py,e.validateEnvironment=gy,e.doesExist=me,e.generate_unique_id=Tn,e.TEMP_PREFIX=En,e.SIZE_UNIQUE_ID=In,e._defaultLauncher_queue=[],e.defaultLauncher=()=>{e._defaultLauncher_queue.push(arguments)},e.toggleLauncher=C.noop,e.showLauncher=C.noop,e.hideLauncher=C.noop,e.removeLauncher=C.noop,e.identify=Pl,e.get_visitor_id=zn,e.set_visitor_id=function(e){Pl(e)},e.get_account_id=jn,e.set_account_id=function(e){Pl(b(),e)},e.getSerializedMetadata=Gl,e.compress=et,e.squeezeAndCompress=et,e.randomElement=ot,e.randomString=at,e.toUTF8Array=Ze,e.getNumberFromText=ht,e._addCredits=a(Fg),e.getCurrentUrl=sm,e.getNormalizedUrl=sm,e.testUrlForStep=a(dm),e.showGuideByName=a(cm),e.showGuideById=a(lm),e.designerv2=ff,e.P2AutoLaunch=a(Nf),e.BuildingBlocks=a(my),e.onConnectMessage=C.noop,e.buffers=is,e.guideDev=a(Dv),e.badgesShown=a(Wu),e.get_pendo_cookie=zt,e.DEFAULT_EXPIRE_LEN=Ht,e.set_pendo_cookie=Wt,e.loadResource=xa,e.loadWatcher=Ta,e.messageLogger=ka,e.messageReceiver=Aa,e.messageValidator=Ra,e.MESSAGE_TYPES=Na,e.messageDispatcher=Pa,e.moduleRegistry=Fa,e.addModule=Da,e.hasModule=a(Ua),e.findModuleByName=a(Ga),e.modulesWaiting=Ba,e.loadModules=za,e.moduleLoader=ja,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=Ge,e.url=A,e.location=Ay,e.Sizzle=wr,e._=C,e.ajax=kr,e.Zlib=tt,e.guideContent=a($d.guideContent),e.receiveDomStructureJson=a($d.receiveDomStructureJson),e.addExtension=Jl}(i),(t=i).SHADOW_STYLE="",C.extend(t,{_showElementGuide:C.noop,flushEventCache:Dy(null,"flushEventCache",Py),HOST:Yr,MAX_LENGTH:Qa,MAX_NUM_EVENTS:Ya,_createToolTip:C.noop,_get_tooltip_dimensions:C.noop,_isOldIE:a(Dy(_e,"_isOldIE",Ly)),_logMessage:Dy(_o,"_logMessage",Ly),_sendEvent:Dy(null,"_sendEvent",Py),_sendGuideEvent:Dy(null,"_sendGuideEvent",Py),_stopEvents:!1,_storeInCache:Dy(null,"_storeInCache",Py),_writeEventImgTag:Dy(null,"_writeEventImgTag",Py),_writeImgTag:a(Dy(To,"_writeImgTag",Ly)),getUA:Dy(ke,"getUA",Ly),ifDebugThen:Dy(null,"ifDebugThen",Py),send_event:a(Dy(Es,"send_event","has changed to pendo.cache.createEvent")),wire_page:Dy(Du,"wire_page",Ly),messageOriginTester:Dy(null,"messageOriginTester",Py),findGuideBy:a(Yu),findGuideById:a(N),findStepInGuide:a(ed),_updateGuideStepStatus:a(bg),_addCloseButton:a(vg),initialize:Av,getEventCache:a(Fm),processEventCache:a(Pm),isGuideShown:a(mg),_getNextStepInMultistep:a(am),attachEvent:p,detachEvent:zu,updateOptions:Ll,createLauncher:C.constant({}),initLauncher:C.noop,_addGuideToLauncher:C.noop,launcherToolTipDiv:null,isAnonymousVisitor:(e=t.get_visitor_id())=>An(e),DEFAULT_VISITOR_ID:Nn,shouldIdentityChange:C.constant(!1),read:h.read,write:h.write,_delete_cookie:h.clear,_set_cookie:Ft,_get_cookie:Pt,get_cookie_key:Bt,ENV:je,eventCache:a(Ka),_getOpacityStyles:Dy(null,"_getOpacityStyles",Ly),setStyle:Bo,_createGuideEvent:a(nm),seenGuide:a(Zg),dismissedGuide:a(Xg),advancedGuide:a(Yg),seenTime:0,placeBadge:a(Rh),isBadge:a(rd),showPreview:a(Dy(Wg,"showPreview",Ly)),removeAllBadges:a(Oh),tellMaster:Ha,DEFAULT_TIMER_LENGTH:rh,registerMessageHandler:Ma,_get_offset:a(Wo),_shouldAutoDisplayGuide:C.constant(!1),removeBadge:Nh,_showLightboxGuide:C.noop,_showGuide:a(Kg),getElementForGuideStep:a(ld),isElementVisible:ca,getTooltipDivId:a(Hg),setupWatchOnTooltip:a(qg),letters:"",charset:"",detectMaster:qa,listenToMaster:Dy(null,"listenToMaster",Py),start:Hu,SEND_INTERVAL:Xa,stageGuideEvent:a(om),startStagedTimer:rm,isURLValid:ts,getURL:ns,_get_screen_dim:a(jo),_isInViewport:a(Ho),_getCss3Prop:Uo,waitThenStartGuides:a(oh),guidesProcessingThreadHandle:ih,getMode:C.constant("default")}),C.each(["identify","updateOptions","pageLoad","track","trackAgent"],function(t){var n=i[t];i[t]=function(){try{Ev()?n.apply(this,arguments):ae(i,t,arguments)}catch(e){_.critical(e)}}})}var Jw,Kw,$w,Zw,Xw=pe(),Yw=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]||{}}(Xw);return Jw=Yw,Xw=Xw,h.registry.addLocal(Eh,{isPlain:!0,serializer:JSON.stringify,deserializer:kt}),le(Xw),je=he("env")||je,He=he("server")||He,qe=he("assetHost")||qe,We=he("assetPath")||We,De=he("designerServer")||De,De=Ee()?je+"_ext":je,Ve=W+"_"+De,!Q(Xw)&&(De=Xw,$w=Jw,Zw=Ch(),ue(De,$w,Zw)||de(De,$w,Zw))||Jw&&Jw.VERSION||(!Ge.isChromeExtension||(De=Xw)&&De.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")?(Kw=Jw,C.each(["initialize","identify","updateOptions","pageLoad","track","trackAgent"],function(e){Kw[e]=function(){console.log("Pendo is currently disabled.")}})):(($w=g).registerModule("debugger",w0),$w.registerModule("errorLog",Yy),$w.registerModule("frames",t),$w.registerModule("guideUpdate",ki),$w.registerModule("guideState",i),$w.registerModule("healthCheck",Pi),$w.registerModule("location",e),$w.registerModule("monitoring",f0),$w.registerModule("metadata",g0),$w.registerModule("preview",b0),io(),Wd.behaviors=[Sh,Gy,jd.Guide,By,jy,Hy,qy],Vd.behaviors=[Sh,Zy,Wy,Zd,jd.Step,Vy,Xy],Zd.reset(),g.dispatch("frames/init"),Yv.init(),Qn.wrapSizzle(wr,_v.shadowDom),wr.intercept(gd),Vw(Jw),_.addEventListener("log",C.partial(g.dispatch,"errorLog/write")),lv(S0),lv(R0),lv(B0),lv(J0),lv(T1),lv(L1),lv(U1),lv(B1),lv(Ny),lv(V1),lv(J1),lv(K1),lv(Q1),lv(nw),lv(Iw),lv(Uw),lv(Ww),Zw=Jw._q,Xw=Mv,De=Hu,f.get("disableAutoInitialize")||(Zw=(Zw=Ov(Zw))&&1<Zw.length?Zw[1]:{},C.get(Zw,Tv)||f.get(Tv)?Xw():kv.push(De(Xw))))),Yw}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>
|