@pendo/agent 2.285.2 → 2.285.3

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.
@@ -1,11 +1,11 @@
1
1
  /*
2
2
  @license https://agent.pendo.io/licenses
3
3
  */
4
- function loadAgent(d){u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");var u,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 u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=u[n>>2])+u[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=u[n>>10])+u[n>>4&63])+u[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,H,j,W,q={exports:{}};function J(e){e?(j[0]=j[16]=j[1]=j[2]=j[3]=j[4]=j[5]=j[6]=j[7]=j[8]=j[9]=j[10]=j[11]=j[12]=j[13]=j[14]=j[15]=0,this.blocks=j):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=q,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],H=["hex","array","digest","arrayBuffer"],j=[],W=function(t){return function(e){return new J(!0).update(e)[t]()}},J.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}},J.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())},J.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},J.prototype.toString=J.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]},J.prototype.array=J.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]},J.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},Pe=function(){var t=W("hex");t.create=function(){return new J},t.update=function(e){return t.create().update(e)};for(var e=0;e<H.length;++e){var n=H[e];t[n]=W(n)}return t}(),e?t.exports=Pe:G.sha1=Pe;var V=p(q.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 I,Y="stagingServerHashes",X={};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||X))return!0;if(t=t||window.location,(o=e)&&o.stagingAgentUrl&&o[Y]){o=t.host;for(var n=c.uint8ToBase64(V.create().update(o).digest()),i=0,r=e[Y].length;i<r;++i)if(e[Y][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 d=e.stagingServers[a];if((d="string"==typeof d?new RegExp("^"+d+"$"):d)instanceof RegExp&&d.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 de(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 ue(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){X=e}function pe(e){return X[e]}he(window.setTimeout,window);function he(e,t){return"function"==typeof e.bind?e.bind(t):e}var fe,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 he(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,P=Object.prototype,D="undefined"!=typeof Symbol?Symbol.prototype:null,U=i.push,d=i.slice,l=P.toString,G=P.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),B=Array.isArray,z=Object.keys,H=Object.create,j=t&&ArrayBuffer.isView,W=isNaN,q=isFinite,J=!{toString:null}.propertyIsEnumerable("toString"),V=["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 Y=r("String"),X=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 X(e)&&W(e)}function de(e){return function(){return e}}function ue(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=ue(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return j?j(e)&&!h(e):le(e)&&pe.test(l.call(e))}:de(!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=V.length,i=e.constructor,r=p(i)&&i.prototype||P,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=V[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 J&&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 d,u=y(e);if(s=u.length,y(t).length!==s)return!1;for(;s--;)if(d=u[s],!g(t,d)||!ye(e[d],t[d],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function u(e){if(!o(e))return[];var t,n=[];for(t in e)n.push(t);return J&&fe(e,n),n}function be(i){var r=v(i);return function(e){if(null==e)return!1;var t=u(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 Ie(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Ee(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function Ce(d,u){return function(e){var t=arguments.length;if(u&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=d(i),o=r.length,a=0;a<o;a++){var s=r[a];u&&void 0!==e[s]||(e[s]=i[s])}return e}}var xe=Ce(u),s=Ce(y),_e=Ce(u,!0);function Te(e){var t;return o(e)?H?H(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 Re(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 Ae(e,t,n){e=Re(e,S(t));return $(e)?n:e}function Oe(e){return e}function I(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return Re(e,t)}}function E(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)?E(e,t,n):(o(e)&&!f(e)?I: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 Fe(){}function Pe(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=ke,b.iteratee=Le;var x=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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Ue=De(t),t=De(Ie(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"},He=/\\|'|\r|\n|\u2028|\u2029/g;function je(e){return"\\"+ze[e]}var We=/^\s*(\w|\$)+\s*$/;var qe=0;function Je(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 _=c(function(r,o){var a=_.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 Je(r,s,this,this,n)};return s}),Ve=(_.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return Je(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),T=ue(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 d=0,u=s.length;d<u;)i[r++]=s[d++];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]=Ve(e[i],e)}return e});var $e=c(function(e,t,n){return Ut(function(){return e.apply(null,n)},t)}),Ze=_($e,b,1);function Ye(e){return function(){return!e.apply(this,arguments)}}function Xe(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=_(Xe,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(d.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 dt(e,t,n){t=(T(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function R(e,t,n){if(t=E(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 A(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 ut(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=E(t,i,4),s=n,d=!T(o)&&y(o),u=(d||o).length,c=0<p?0:u-1;for(r||(s=o[d?d[c]:c],c+=p);0<=c&&c<u;c+=p){var l=d?d[c]:c;s=a(s,o[l],l,o)}return s}}var ct=ut(1),lt=ut(-1);function O(e,i,t){var r=[];return i=C(i,t),R(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]),A(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Re(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return A(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,d=(e=T(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&o<n&&(o=n);else i=C(i,t),R(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)?d.call(e):Y(e)?e.match(vt):T(e)?A(e,Oe):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=T(e)?e:w(e))[Pe(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=Pe(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),R(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}),It=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),Et=M(function(e,t,n){e[n?0:1].push(t)},!0);function Ct(e,t,n){return t in n}var xt=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=E(i,t[1])),t=u(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}),_t=c(function(e,n){var t,i=n[0];return p(i)?(i=Ye(i),1<n.length&&(t=n[1])):(n=A(k(n,!1,!1),String),i=function(e,t){return!N(n,t)}),xt(e,i,t)});function Tt(e,t,n){return d.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 d.call(e,null==t||n?1:t)}var Rt=c(function(e,t){return t=k(t,!0,!0),O(e,function(e){return!N(t,e)})}),At=c(function(e,t){return Rt(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 d=e[a],u=n?n(d,a,e):d;t&&!n?(a&&o===u||r.push(d),o=u):n?N(o,u)||(o.push(u),r.push(d)):N(r,d)||r.push(d)}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 Ft(e,t){return e._chain?b(t).chain():t}function Pt(n){return R(Ee(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return U.apply(e,arguments),Ft(this,t.apply(b,e))}}),b}R(["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]),Ft(this,e)}}),R(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Ft(this,e=null!=e?t.apply(e,arguments):e)}});var F=Pt({__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:Y,isNumber:X,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&q(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||Y(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:u,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:Ie,functions:Ee,methods:Ee,extend:xe,extendOwn:s,assign:s,defaults:_e,create:function(e,t){return e=Te(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():xe({},e):e},tap:function(e,t){return t(e),e},get:Ae,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:de,noop:Fe,toPath:ke,property:Ne,propertyOf:function(t){return null==t?Fe:function(e){return Ae(t,e)}},matcher:I,matches:I,times:function(e,t,n){var i=Array(Math.max(0,e));t=E(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:Pe,now:x,escape:Ue,unescape:t,templateSettings:Ge,template:function(o,e,t){e=_e({},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(He,je),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(!We.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=++qe+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:_,bind:Ve,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,d,u=0,c=(r=r||{},function(){u=!1===r.leading?0:x(),o=null,d=n.apply(a,s),o||(a=s=null)}),e=function(){var e=x(),t=(u||!1!==r.leading||(u=e),i-(e-u));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout(o),o=null),u=e,d=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=Ut(c,t)),d};return e.cancel=function(){clearTimeout(o),u=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,d,u=function(){var e=x()-o;e<n?r=Ut(u,n-e):(r=null,i||(s=t.apply(d,a)),r||(a=d=null))},e=c(function(e){return d=this,a=e,o=x(),r||(r=Ut(u,n),i&&(s=t.apply(d,a))),s});return e.cancel=function(){clearTimeout(r),r=a=d=null},e},wrap:function(e,t){return _(t,e)},negate:Ye,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:Xe,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:dt,detect:dt,findWhere:function(e,t){return dt(e,I(t))},each:R,forEach:R,map:A,collect:A,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Ye(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,I(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,d=(e=T(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&n<o&&(o=n);else i=C(i,t),R(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(A(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:It,partition:Et,toArray:yt,size:function(e){return null==e?0:(T(e)?e:y(e)).length},pick:xt,omit:_t,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:At,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:Rt,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(d.call(e,i,i+=t));return n},mixin:Pt,"default":b}),Dt=F.toPath;return F.mixin({toPath:function(e){return F.isString(e)?e.split("."):Dt(e)}}),F._=F}());function ge(e){return!(null==e)}function me(e){return C.isFunction(e)||C.isRegExp(e)?e:C.isArray(e)?C.map(e,me):C.isObject(e)?C.reduce(e,function(e,t,n){return e[n]=me(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,d=C.pluck,u="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,u]),e("allowedOriginServers"),e("allowMixedApiKeyFrames",[u,c],!0),e("annotateUrl",[u]),e("apiKey",[c,u]),e("assetHost",[u,c]),e("autoFrameInstall",[u,c],!1),e("blockAgentMetadata",[c],!1),e("contentHost",[u,c]),e("cookieDomain",[u,c]),e("dataHost",[u,c]),e("disableAutoInitialize"),e("disableCookies",[u,c]),e("disablePendo",[u,c],!1),e("disablePersistence",[u,c]),e("enableSignedMetadata",[c],!1),e("frameIdentitySync",[u,c],!1),e("frameIdentityTopDownOnly",[u,c],!0),e("forceAnonymous",[u,c],!1),e("identityStorageLifetime",[u,c]),e("identityStorageSuffix",[u,c]),e("ignoreHashRouting",[u,c]),e("initializeImmediately",[u,c],!1),e("installType"),e("localStorageOnly",[u,c]),e("location.pushState",[u,c],!0),e("maxCookieTTLDays",[u,c],Infinity),e("observeShadowRoots",[u,c],!1),e("pendoCore",[c],!0),e("pendoGlobalKey",[c]),e("preferBroadcastChannel",[u,c],!1),e("preferMutationObserver",[u,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[u,c],!1),e("promotedAgentMetadataConfigurations",[c]),e("queryStringWhitelist",[u]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[u]),e("selfHosted"),e("selfHostedAgentUrl",[u,c]),e("sendEventsWithPostOnly",[u,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[u,c],[]),e("analytics.excludeEvents",[u,c],[]),e("analytics.localStorageUnload",[u,c],!1),e("enableDebugEvents",[u,c]),e("freeNPSData"),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[u,c],!0),e("excludeAllText",[c,u],!1,!0),e("excludeNonGuideAnalytics",[u,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptElementRemoval",[u,c],!1),e("interceptPreventDefault",[u,c],!0),e("interceptStopPropagation",[u,c],!0),e("syntheticClicks.elementRemoval",[u,c],!1),e("syntheticClicks.targetChanged",[u,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[u,c]),e("cacheGuides",[u,c],!1),e("cacheGuidesTimeout",[c],6e5),e("delayGuides",[u]),e("disableDesigner",[c,u],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[u,c],!1),e("disableGuidePseudoStyles",[u,c],!1),e("disableGuides",[u]),e("disablePrefetch",[u,c]),e("enableDesignerKeyboardShortcut",[u]),e("enableGuideTimeout",[c,u],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,u],1e4),e("guideTimeout",[u]),e("guideValidation",[u,c],!1),e("guides.attachPoint",[u]),e("guides.delay",[u]),e("guides.disabled",[u]),e("guides.ejectOnTimeout",[u,c],!1),e("guides.globalScripts",[u,c],[]),e("guides.timeout",[u]),e("guides.tooltip.arrowSize",[u]),e("inlineStyleNonce",[u]),e("leaderKey",[u,c],[]),e("preventCodeInjection",[c,u,l],!1),e("previewModeAssetPath"),e("useAssetHostForDesigner",[u,c],!1),e("storage.allowKeys",[u],"*"),e("disableFeedback",[u]),e("disableFeedbackAutoInit"),e("feedbackSettings",[c],{}),e("pendoFeedback",[c],!1),e("crossAppGuideStorageSuffix",[u,c]),e("enableCrossOriginIsolation",[u,c],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("agentDebuggerPluginLoader"),e("allowPartnerAnalyticsForwarding",[u],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerAgentPluginsLoader",[c,u]),e("trainingPartner"),e("errorClickLogging",[c],!1),e("forceParentDesigner",[u]),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(),ge(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",[u,c,l]),o(n(t,C.partial(v,e)),function(e){return ge(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&&ge(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(d(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[u]=function(){return{lookup:fe||window.pendo_options,name:u}},f[c]=function(){return{lookup:X,name:c}},f[l]=function(){return{lookup:I,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,[u]).value:me(fe)},getHostedConfig(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig(e){fe=e},options:()=>d(h,"name"),sources:{SNIPPET_SRC:u,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()}}}(),ve="prod",ye="extension",be="native";function we(){return f.get("installType")||be}function Se(){return we()===ye}function Ie(e){var t;return e===ve?"pendo-io-static":"prod-jp"===e?"pendo-jp-prod-static":"pendo-"+((t=/^prod-(.+)$/.exec(e))&&1<t.length?t[1]:e)+"-static"}var Ee,Ce=function(e,t){return e=e||10,(t=!isNaN(Re)&&(!t||Re<t))&&Ee<e};function xe(e){return parseInt(e,10)}var _e=function(e){return C.isString(e)?e.toLowerCase():e};function Te(){return(window.navigator||{}).userAgent}e=Te(),t=xe((/msie (\d+)/.exec(_e(e))||[])[1]),Ee=t=isNaN(t)?xe((/trident\/.*; rv:(\d+)/.exec(_e(e))||[])[1]):t;var ke,Re=function(e,t){e=xe((/trident\/(\d+)/.exec(_e(e))||[])[1]);return e=isNaN(e)&&7==t?3:e}(Te(),Ee),Ae={},Oe=xe((/android (\d+)/.exec(_e(Te()))||[])[1]),Ne=/Boxee/i.test(Te()),Me=window.document||{},Le=Me.documentMode,Fe=/^(Moz|webkit|O|ms)(?=[A-Z])/,Pe=Me.body&&Me.body.style,q=!1,e=!1;if(Pe){for(var De in Pe)if(De=Fe.exec(De)){ke=(ke=De[0]).substr(0,1).toUpperCase()+ke.substr(1);break}ke=ke||"WebkitOpacity"in Pe&&"webkit",q=!!("transition"in Pe||ke+"Transition"in Pe),e=!!("animation"in Pe||ke+"Animation"in Pe),!Oe||q&&e||(q=C.isString(Me.body.style.webkitTransition),e=C.isString(Me.body.style.webkitAnimation))}var t=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id;var Ue={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||!!(Oe<4)||Ne||Se())}),supportsHashChange:function(){return!(!("onhashchange"in window)||!(!Le||7<Le)||Se())},hasEvent(e){var t;return("input"!=e||9!=Ee)&&(C.isUndefined(Ae[e])&&(t=Me.createElement("div"),Ae[e]="on"+e in t),Ae[e])},vendorPrefix:ke,transitions:q,animations:e,android:Oe,msie:Ee,msieDocumentMode:Le,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(Te())}),isChromeExtension:t},Ge=function(){return!isNaN(Ee)&&11!=Ee&&"CSS1Compat"!==document.compatMode},Be=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,Ee<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+I.TOOLTIP_ARROW_SIZE),e.arrow.top=i-I.TOOLTIP_ARROW_SIZE,10==Ee?e.arrow.top--:Ee<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=10+I.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*I.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-I.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-I.TOOLTIP_ARROW_SIZE),e.arrow.left=r-I.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-I.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e},ze="",He="",je="",We="",Pe="",qe="2.285.2_",q="2.285.2",Je="xhr",Ve=function(){return Ge()?qe+"+quirksmode":qe};function Ke(){return-1!==ze.indexOf("prod")}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 Ye=(Ye=String.prototype.trim)||function(){return this.replace($e,"")},e={exports:{}};!function(){var X=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===X?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&&d(this)}function d(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?(u[255&e]<<24|u[e>>>8&255]<<16|u[e>>>16&255]<<8|u[e>>>24&255])>>32-t:u[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++]=u[s],s=0,o===r.length)&&(r=d(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]=u[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 u=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,P,n=this.input;switch(this.d){case 0:for(t=0,P=n.length;t<P;){var D,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===P,o=X,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 d,u=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(u.b(1,1,Q),u.b(1,2,Q),re(this,n)),l=0,G=c.length;l<G;l++)if(d=c[l],te.prototype.b.apply(u,ie[d]),256<d)u.b(c[++l],c[++l],Q),u.b(c[++l],5),u.b(c[++l],c[++l],Q);else if(256===d)break;this.a=u.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,z,I=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),E=ne;for(I.b(1,1,Q),I.b(E,2,Q),p=re(this,n),E=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,W=h,q=f,R=new(ee?Uint32Array:Array)(W+q),A=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=C=0;N<W;N++)R[C++]=m[N];for(N=0;N<q;N++)R[C++]=v[N];if(!ee)for(N=0,_=O.length;N<_;++N)O[N]=0;for(N=T=0,_=R.length;N<_;N+=C){for(C=1;N+C<_&&R[N+C]===R[N];++C);if(x=C,0===R[N])if(x<3)for(;0<x--;)O[A[T++]=0]++;else for(;0<x;)(k=x-3<(k=x<138?x:138)&&k<x?x-3:k)<=10?(A[T++]=17,A[T++]=k-3,O[17]++):(A[T++]=18,A[T++]=k-11,O[18]++),x-=k;else if(A[T++]=R[N],O[R[N]]++,--x<3)for(;0<x--;)A[T++]=R[N],O[R[N]]++;else for(;0<x;)x-3<(k=x<6?x:6)&&k<x&&(k=x-3),A[T++]=16,A[T++]=k-3,O[16]++,x-=k}for(e=ee?A.subarray(0,T):A.slice(0,T),y=oe(O,7),S=0;S<19;S++)j[S]=y[H[S]];for(g=19;4<g&&0===j[g-1];g--);for(B=ae(y),I.b(h-257,5,Q),I.b(f-1,5,Q),I.b(g-4,4,Q),S=0;S<g;S++)I.b(j[S],3,Q);for(S=0,z=e.length;S<z;S++)if(b=e[S],I.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}I.b(e[S],w,Q)}for(var M,J,E=[E,m],L=[L,v],V=E[0],K=E[1],$=L[0],Z=L[1],F=0,Y=p.length;F<Y;++F)if(M=p[F],I.b(V[M],K[M],Q),256<M)I.b(p[++F],p[++F],Q),J=p[++F],I.b($[J],Z[J],Q),I.b(p[++F],p[++F],Q);else if(256===M)break;this.a=I.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,d=w[e.length];switch(a[s++]=65535&d,a[s++]=d>>16&255,a[s++]=d>>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(d=n,a[s++]=d[0],a[+s]=d[1],a[5]=d[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,d,u,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]===X&&(p[s]=[]),d=p[s],!(0<g--)){for(;0<d.length&&32768<i-d[0];)d.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<d.length?(u=function(e,t,n){var i,r,o,a,s,d,u=0,c=e.length;a=0,d=n.length;e:for(;a<d;a++){if(i=n[d-a-1],(o=3)<u){for(s=u;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=u}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(u<o&&(r=i,u=o),258===o)break}return new b(u,t-r)}(t,i,d),c?c.length<u.length?(l=t[i-1],h[f++]=l,++m[l],n(u,0)):n(c,-1):u.length<y?c=u:n(u,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}d.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,d=new c(572),u=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)u[o]=0;for(o=0;o<s;++o)0<e[o]&&d.push(o,e[o]);if(n=Array(d.length/2),i=new(ee?Uint32Array:Array)(d.length/2),1===n.length)u[d.pop().index]=1;else{for(o=0,a=d.length/2;o<a;++o)n[o]=d.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,d=new(ee?Uint16Array:Array)(t),u=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(d[t-1]=n,r=0;r<t;++r)f<g?u[r]=0:(u[r]=1,f-=g),f<<=1,d[t-2-r]=(d[t-1-r]/2|0)+n;for(d[0]=u[0],l[0]=Array(d[0]),p[0]=Array(d[0]),r=1;r<t;++r)d[r]>2*d[r-1]+u[r]&&(d[r]=2*d[r-1]+u[r]),l[r]=Array(d[r]),p[r]=Array(d[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<d[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===u[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<d[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===u[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)u[n[o].index]=r[o]}return u}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,d=e.length;s<d;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,d=16;s<=d;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,d=e.length;s<d;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,I=(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,d=a.length;s<d;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var u,c=1,l=0,p=o.length,h=0;0<p;){for(p-=u=1024<p?1024:p;l+=c+=o[h++],--u;);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(I);else for(m in g=[],v=0,I)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),I[m])}.call(e.exports);var Xe={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 Xe.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!(!ge(e)||!ge(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function v(){return(new Date).getTime()}function dt(){return"undefined"!=typeof $A&&C.isFunction($A.get)&&C.isString($A.get("$Browser.formFactor"))}function ut(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(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 bt extends class{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)})}}{write(e,t,n){this.dispatchEvent(new yt(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 yt(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 x=new bt;function wt(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const St=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 Et(n){C.forEach(C.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function Ct(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(Et,n)}:t}catch(i){return t}}var xt,_t=Ct(function(){return window.localStorage}),Tt=Ct(function(){return window.sessionStorage}),kt={},Rt=!0,At=function(){return f.get("localStorageOnly")},Ot=function(){return!!f.get("disableCookies")};function Nt(e){Rt=e}var Mt=function(e){var t=Ot()||At()?kt[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?mt(e[2]):null},Lt=function(e,t,n,i){var r,o;!Rt||f.get("preventCookieRefresh")&&Mt(e)===t||(o=Ht(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",xt&&(o+=";domain="+xt),Ot()||At()?kt[e]=o:document.cookie=o)};function Ft(e){xt?Lt(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var Pt=function(e,t){return`_pendo_${e}.`+(t||I.apiKey)},Dt=function(e,t){return Mt(Pt(e,t))};const Bt=864e5,zt=100*Bt,Ht=(e=zt)=>{var t=f.get("maxCookieTTLDays"),t=t<Infinity?t*Bt:Infinity;return Math.min(e,t)};var jt=function(e,t,n,i,r){n=n||zt,Lt(Pt(e,r),t,n,i)};class Wt{constructor(){this.keys={}}addLocal(e){this._add(e,"local")}addSession(e){this._add(e,"session")}hasLocal(e){return this._has(e,"local")}hasSession(e){return this._has(e,"session")}_add(e,t){this.keys[e]||(this.keys[e]=t)}_has(e,t){return this.keys[e]===t}}var qt,Jt,Vt,Kt,y,h=function(){const o=new Wt;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=St())||n[t])return o[r](e)||x.warn(`storage key ${e} is not registered`),i.apply(this,arguments);x.debug(`writing storage key ${e} is not allowed`)}}function d(){return!Ot()&&!xt&&u("localStorage")}var u=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 c(e){e.cache&&(e.cache={})}function r(e,t,n){t=t?e:Pt(e,n);if(d())return localStorage.removeItem(t);Ft(t)}const t=C.extend({},Tt),n=(t.setItem=e(t.setItem,"hasSession"),C.extend({},_t));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){var i;return d()?(i=t?e:Pt(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(i)))&&r(e,t,n),i):t?Mt(e):Dt(e,n)},write:e(function(e,t,n,i,r,o){if(c(u),d())try{var a=i?e:Pt(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+Ht(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void c(u)}catch(s){}if(!i)return jt(e,t,n,r,o);Lt(e,t,n,r)},"hasLocal"),clear:r,registry:o,getLocal:()=>n,getSession:()=>t}}(),$t=(window.Promise,e=function(){var t=Ut;function u(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 d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(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(!u(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 d(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){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(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(!u(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=(Jt=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},Vt=function(n,i){var r=qt.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===Kt?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},Kt=1,(qt={}).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(Kt,e)},a=function(e){t(2,e)},s=function(e,t){e=Vt(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},d=function(e){var t=Jt();try{e(t(u),t(a))}catch(n){t(a)(n)}},u=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?d(t):o(e)},e=Jt();return{resolve:e(u),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},qt);function Zt(e){var n,i=y.defer(),r=C.isArray(e)?[]:{},o=C.size(e);return o?(n=!1,C.each(e,function(e,t){y.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):y.resolve(e)}!Se()&&Ue.isMinimumIEVersion(11)?y={all:function(e){return C.isArray(e)?$t.all.apply($t,arguments):Zt(e)},reject:function(){return $t.reject.apply($t,arguments)},resolve:function(){return $t.resolve.apply($t,arguments)},defer:function(){var n={};return n.promise=new $t(function(e,t){n.resolve=e,n.reject=t}),n}}:((y=t).all=Zt,y.reject=function(e){var t=y.defer();return t.reject(e),t.promise},y.resolve=function(e){var t=y.defer();return t.resolve(e),t.promise});const Yt=h.getSession(),Xt="pendo_tabId",Qt="pendo_parentTabId";en=window,e=C.partial,tn=C.extend,nn=C.omit,rn={data:{},getItem(e){return rn.data[e]},setItem(e,t){rn.data[e]=t},removeItem(e){rn.data[e]=null,delete rn.data[e]}},on=e(cn,Xt,ln),an=e(cn,"pendo_frameId",rn);var en,tn,nn,rn,on,an,sn={addTracerIds(e){return nn(tn(e,{parentTabId:dn(Qt,ln),tabId:on(),frameId:an()}),function(e){return e===undefined})},setParentTabId:function(e){un(Qt,e,ln)},newTabId:function(){var e=at(16);return un(Xt,e,ln),e},getTabId:on,getFrameId:an,tabIdChanged:function(t){var e;if(Ue.addEventListener)return en.addEventListener("storage",e=function(e){e.key===Xt&&(rn.removeItem(Xt),t())}),function(){en.removeEventListener("storage",e)}}};function dn(e,t){return(C.isFunction(t)?t():t).getItem(e)}function un(e,t,n){(C.isFunction(n)?n():n).setItem(e,t)}function cn(e,t){var n=dn(e,t);return n||un(e,n=at(16),t),n}function ln(){return n=rn,i=Yt,{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 pn(){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(I,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return C.map(e,function(e){if(!t.cancel)return e.apply(I,[t])})},this.triggerAsync=function(){var e=C.map(this.trigger.apply(this,arguments),function(e){return!1===e?y.reject():e});return y.all(e)},this}pn.clear=function(t){t&&C.each(C.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};_i={DEBUG:t="debug",FRAMES:e="frames",LIFECYCLE:i="lifecycle",RUNTIME:Mi="runtime"},hn=[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",[Mi]),new n("beforeAdvance",[Mi]),new n("beforePrevious",[Mi]),new n("beforeSnooze",[Mi]),new n("beforeDismiss",[Mi]),new n("beforeUnmount",[Mi]),new n("unmounted",[Mi]),new n("beforeUpdate",[Mi]),new n("updated",[Mi]),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("childFrameJoined",[e]),new n("tabIdChanged:self",[t,i])],fn=pn.call({}),gn={debug(){return sn.addTracerIds(vn.apply(null,arguments))},lifecycle:vn,runtime:vn,frames:vn},mn=fn.trigger,fn.trigger=yn,C.each(C.values(_i),function(e){fn[e]={on:C.partial(fn.on,e),one:C.partial(fn.one,e),off:C.partial(fn.off,e)}}),C.each(hn,function(e){e=e.name,fn[e]={on:C.partial(fn.on,e),one:C.partial(fn.one,e),off:C.partial(fn.off,e),trigger:C.partial(yn,e)}});var hn,fn,gn,mn,m=fn;function n(e,t){this.name=e,this.groups=t||[]}function vn(e,t){e={type:e,ts:v()};return ge(t)&&C.isObject(t)&&(e.data=t),e}function yn(t){var e=C.findWhere(hn,{name:t}),n=C.toArray(arguments).slice(1),i={};return C.each(e.groups,function(e){i.cancel||(i=gn[e](t,n),mn.apply(fn,[e].concat(i)))}),i.cancel||(i=vn(t,n),mn.apply(fn,[t].concat(i))),i}function bn(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=u(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 d(e,t){return(e=t?e.concat([t]):e).join("/")}function u(e,t,n){var i=e;return C.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),C.extend(i,me(t.state||{}))}function c(e,n,i){var r={};return C.each(e.mutations,function(e,t){r[d(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:d(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:d(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=d(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[d(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[d(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var g=bn(),wn=(g.subscribe(function(e,t){}),"_PENDO_T_"),Sn=11;const In="visitorId",En="oldVisitorId",Cn="accountId";var xn=function(e=""){return e+at(Sn)};var _n=function(e){return ge(e)&&""!==e&&e!==Nn&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===Ye.call(e).length)},Tn=function(e){return!(!e||"number"==typeof e)&&e.substring(0,wn.length)===wn},kn=function(){return!f.get("disablePersistence")},Rn=function(e){e=e||[In,Cn,En];const t=f.get("identityStorageSuffix")||I.apiKey;C.each(e,function(e){Ft(Pt(e,t)),h.clear(e,!1,t)})},An="VISITOR-UNIQUE-ID",On=function(e){return An===e},Nn="::",Mn=function(e){return new RegExp(Nn).test(e)};function Ln(e){return e.old_visitor_id!==e.visitor_id}var Fn,Pn=function(e,t){var n,i={old_visitor_id:b(),old_account_id:Bn()};_n(e)?(_n(n=e)?Un(""+n):x.info("Invalid visitor id "+n),n=t,C.isUndefined(n)?x.info("No account id provided"):_n(n)?(I.accountId=""+n,kn()&&zn(Cn,I.accountId)):(delete I.accountId,delete(t=f.getLocalConfig()).account,f.setLocalConfig(t),g.commit("metadata/clearAccount"),kn()&&h.clear(Cn),x.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=b({generate:!0}),i.account_id=Bn(),!Ln(t=i)&&t.old_account_id===t.account_id||(Ln(i)&&(n=i.old_visitor_id)&&(Fn=n,zn(En,Fn)),m.identify.trigger(i))):x.info("Invalid visitor id "+e)};function Dn(){return xn(wn)}function Un(e){I.visitorId!==e&&(kn()&&zn(In,e),I.visitorId=e)}function b(e={}){var t=function(){if(_n(I.visitorId))return I.visitorId;var e=f.get("forceAnonymous");if(kn()){var t=Hn(In);if(_n(t)&&(!e||Tn(t)))return t}return undefined}();return Un(t=!t&&e.generate?Dn():t),t}function Gn(){return b()||Dn()}var Bn=function(){var e=f.get("forceAnonymous");return _n(I.accountId)||!kn()||e||(e=Hn(Cn),I.accountId=e),I.accountId};function zn(e,t){var n=f.get("identityStorageLifetime")||zt,i=f.get("identityStorageSuffix")||I.apiKey;h.write(e,t,n,!1,!0,i)}function Hn(e){var t=f.get("identityStorageSuffix"),n=t||I.apiKey,n=h.read(e,!1,n)||h.read(e,!1,I.apiKey);return t&&h.clear(e,!1,I.apiKey),n}function jn(){var e={old_visitor_id:b({generate:!1}),old_account_id:Bn(),wasCleared:!0};Rn(),delete I.visitorId,delete I.accountId,b({generate:!0}),C.extend(e,{visitor_id:b(),account_id:Bn()}),m.identify.trigger(e)}function Wn(e){e=e.data[0];return C.get(e,"wasCleared")}var qn=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||x.critical(e)}}};Mi=function(n){return function Jn(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 Jn="function"==typeof(e=window.URL)&&/native/.test(e)?e:Mi(document);function Vn(e){if((t=e)&&C.isFunction(t.composedPath))try{return e.composedPath()}catch(n){return e.path}var t;return null}function Kn(e){return e.shadowRoot}function $n(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function Zn(e,t){return $n(e,t)?e.host:e.parentNode}var Yn={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:Vn,getShadowRoot:Kn,isElementShadowRoot:$n,getParent:Zn,isShadowSelector:Xn,wrapSizzle(i){i.intercept(function(a,e,n,i,r){var t,o;return Xn(e)?C.isFunction(document.documentElement.attachShadow)?(o=a,t=(t=e).replace(Yn.PSEUDO_REGEX,Yn.PSEUDO_SAFE),t=C.map(o.tokenize(t),Qn),C.reduce(t,function(e,t){return e.concat(s(t,n,i,r))},[])):a(e.replace(Yn.PSEUDO_REGEX,""),n,i,r):a(e,n,i,r);function s(e,t,n,i){var r,o;return Xn(e)?(o=s((r={baseCss:(o=(o=e).split(Yn.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(Yn.PSEUDO_ELEMENT)}).baseCss,t),C.reduce(o,function(e,t){return Yn.getShadowRoot(t)?e.concat(s(r.shadowCss,Yn.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!Yn.isElementShadowRoot(t)&&(Xn(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function Xn(e){return!!e&&-1<e.indexOf(Yn.PSEUDO_ELEMENT)}function Qn(e){return C.reduce(e,function(e,t){return t.value===Yn.PSEUDO_SAFE?e+Yn.PSEUDO_ELEMENT:e+t.value},"")}var ei,w,S,ti,ni,ii,ri,oi,ai,si,di,ui,E,ci,li,pi,hi,fi,gi,t={exports:{}},i=t,mi=window,_="sizzle"+ +new Date,vi=mi.document,yi=0,bi=0,wi=tr(),Si=tr(),Ii=tr(),Ei=tr(),Ci=function(e,t){return e===t&&(di=!0),0},xi={}.hasOwnProperty,_i=[],Ti=_i.pop,ki=_i.push,Ri=_i.push,Ai=_i.slice,Oi=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},Ni="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])+",Mi="\\["+r+"*("+e+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+e+"))|)"+r+"*\\]",Li=":("+e+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Mi+")*)|.*)\\)|)",Fi=new RegExp(r+"+","g"),Pi=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),Di=new RegExp("^"+r+"*,"+r+"*"),Ui=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),Gi=new RegExp(r+"|>"),Bi=new RegExp(Li),zi=new RegExp("^"+e+"$"),Hi={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+Mi),PSEUDO:new RegExp("^"+Li),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("^(?:"+Ni+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},ji=/HTML$/i,Wi=/^(?:input|select|textarea|button)$/i,qi=/^h\d$/i,Ji=/^[^{]+\{\s*\[native \w/,Vi=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ki=/[+~]/,$i=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),Zi=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))},Yi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Xi=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Qi=function(){ui()},er=lr(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Ri.apply(_i=Ai.call(vi.childNodes),vi.childNodes),_i[vi.childNodes.length].nodeType}catch(D1){Ri={apply:_i.length?function(e,t){ki.apply(e,Ai.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,d,u,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&&(ui(t),t=t||E,li)){if(11!==l&&(s=Vi.exec(e)))if(r=s[1]){if(9===l){if(!(u=t.getElementById(r)))return n;if(u.id===r)return n.push(u),n}else if(c&&(u=c.getElementById(r))&&gi(t,u)&&u.id===r)return n.push(u),n}else{if(s[2])return Ri.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&w.getElementsByClassName&&t.getElementsByClassName)return Ri.apply(n,t.getElementsByClassName(r)),n}if(w.qsa&&!Ei[e+" "]&&(!pi||!pi.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(u=e,c=t,1===l&&(Gi.test(e)||Ui.test(e))){for((c=Ki.test(e)&&dr(t.parentNode)||t)===t&&w.scope||((a=t.getAttribute("id"))?a=a.replace(Yi,Xi):t.setAttribute("id",a=_)),o=(d=ii(e)).length;o--;)d[o]=(a?"#"+a:":scope")+" "+cr(d[o]);u=d.join(",")}try{return Ri.apply(n,c.querySelectorAll(u)),n}catch(p){Ei(e,!0)}finally{a===_&&t.removeAttribute("id")}}}return oi(e.replace(Pi,"$1"),t,n,i)}function tr(){var n=[];function i(e,t){return n.push(e+" ")>S.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function nr(e){return e[_]=!0,e}function ir(e){var t=E.createElement("fieldset");try{return!!e(t)}catch(D1){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function rr(e,t){for(var n=e.split("|"),i=n.length;i--;)S.attrHandle[n[i]]=t}function or(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 ar(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&&er(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function sr(a){return nr(function(o){return o=+o,nr(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 dr(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ei in w=T.support={},ni=T.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!ji.test(t||e&&e.nodeName||"HTML")},ui=T.setDocument=function(e){var e=e?e.ownerDocument||e:vi;return e!=E&&9===e.nodeType&&e.documentElement&&(ci=(E=e).documentElement,li=!ni(E),vi!=E&&(e=E.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",Qi,!1):e.attachEvent&&e.attachEvent("onunload",Qi)),w.scope=ir(function(e){return ci.appendChild(e).appendChild(E.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),w.attributes=ir(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=ir(function(e){return e.appendChild(E.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=!!E.getElementsByClassName,w.getById=ir(function(e){return ci.appendChild(e).id=_,!E.getElementsByName||!E.getElementsByName(_).length}),w.getById?(S.filter.ID=function(e){var t=e.replace($i,Zi);return function(e){return e.getAttribute("id")===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&li)return(e=t.getElementById(e))?[e]:[]}):(S.filter.ID=function(e){var t=e.replace($i,Zi);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&&li){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&&li?t.getElementsByClassName(e):w.qsa&&li?t.querySelectorAll("."+e):void 0},hi=[],pi=[],(w.qsa=!!E.querySelectorAll)&&(ir(function(e){var t;ci.appendChild(e).innerHTML=Z().createHTML("<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&pi.push("[*^$]="+r+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||pi.push("\\["+r+"*(?:value|"+Ni+")"),e.querySelectorAll("[id~="+_+"-]").length||pi.push("~="),(t=E.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||pi.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||pi.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||pi.push(".#.+[+~]"),e.querySelectorAll("\\\f"),pi.push("[\\r\\n\\f]")}),ir(function(e){e.innerHTML=Z().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=E.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&pi.push("name"+r+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&pi.push(":enabled",":disabled"),ci.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&pi.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),pi.push(",.*:")})),(w.matchesSelector=Ji.test(fi=ci.matches||ci.webkitMatchesSelector||ci.mozMatchesSelector||ci.oMatchesSelector||ci.msMatchesSelector))&&ir(function(e){w.disconnectedMatch=fi.call(e,"*"),fi.call(e,"[s!='']:x"),hi.push("!=",Li)}),pi=pi.length&&new RegExp(pi.join("|")),hi=hi.length&&new RegExp(hi.join("|")),e=!!ci.compareDocumentPosition,gi=e||ci.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},Ci=e?function(e,t){var n;return e===t?(di=!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==E||e.ownerDocument==vi&&gi(vi,e)?-1:t==E||t.ownerDocument==vi&&gi(vi,t)?1:si?Oi(si,e)-Oi(si,t):0:4&n?-1:1)}:function(e,t){if(e===t)return di=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==E?-1:t==E?1:r?-1:o?1:si?Oi(si,e)-Oi(si,t):0;if(r===o)return or(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?or(a[i],s[i]):a[i]==vi?-1:s[i]==vi?1:0}),E},T.matches=function(e,t){return T(e,null,null,t)},T.matchesSelector=function(e,t){if(ui(e),w.matchesSelector&&li&&!Ei[t+" "]&&(!hi||!hi.test(t))&&(!pi||!pi.test(t)))try{var n=fi.call(e,t);if(n||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(D1){Ei(t,!0)}return 0<T(t,E,null,[e]).length},T.contains=function(e,t){return(e.ownerDocument||e)!=E&&ui(e),gi(e,t)},T.attr=function(e,t){(e.ownerDocument||e)!=E&&ui(e);var n=S.attrHandle[t.toLowerCase()],n=n&&xi.call(S.attrHandle,t.toLowerCase())?n(e,t,!li):undefined;return n!==undefined?n:w.attributes||!li?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},T.escape=function(e){return(e+"").replace(Yi,Xi)},T.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,n=[],i=0,r=0;if(di=!w.detectDuplicates,si=!w.sortStable&&e.slice(0),e.sort(Ci),di){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return si=null,e},ti=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+=ti(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=ti(t);return n},(S=T.selectors={cacheLength:50,createPseudo:nr,match:Hi,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($i,Zi),e[3]=(e[3]||e[4]||e[5]||"").replace($i,Zi),"~="===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 Hi.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Bi.test(n)&&(t=(t=ii(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($i,Zi).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=wi[e+" "];return t||(t=new RegExp("(^|"+r+")"+e+"("+r+"|$)"))&&wi(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(Fi," ")+" ").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,d,u=v!=y?"nextSibling":"previousSibling",c=e.parentNode,l=b&&e.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(v){for(;u;){for(a=e;a=a[u];)if(b?a.nodeName.toLowerCase()===l:1===a.nodeType)return!1;d=u="only"===f&&!d&&"nextSibling"}return!0}if(d=[y?c.firstChild:c.lastChild],y&&p){for(h=(s=(i=(r=(o=(a=c)[_]||(a[_]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===yi&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[u]||(h=s=0,d.pop());)if(1===a.nodeType&&++h&&a===e){r[f]=[yi,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[_]||(a[_]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===yi&&i[1]:h))for(;(a=++s&&a&&a[u]||(h=s=0,d.pop()))&&((b?a.nodeName.toLowerCase()!==l:1!==a.nodeType)||!++h||(p&&((r=(o=a[_]||(a[_]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[yi,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[_]?a(o):1<a.length?(t=[e,e,"",o],S.setFilters.hasOwnProperty(e.toLowerCase())?nr(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=Oi(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:nr(function(e){var i=[],r=[],s=ri(e.replace(Pi,"$1"));return s[_]?nr(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:nr(function(t){return function(e){return 0<T(t,e).length}}),contains:nr(function(t){return t=t.replace($i,Zi),function(e){return-1<(e.textContent||ti(e)).indexOf(t)}}),lang:nr(function(n){return zi.test(n||"")||T.error("unsupported lang: "+n),n=n.replace($i,Zi).toLowerCase(),function(e){var t;do{if(t=li?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=mi.location&&mi.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===ci},focus:function(e){return e===E.activeElement&&(!E.hasFocus||E.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ar(!1),disabled:ar(!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 qi.test(e.nodeName)},input:function(e){return Wi.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:sr(function(){return[0]}),last:sr(function(e,t){return[t-1]}),eq:sr(function(e,t,n){return[n<0?n+t:n]}),even:sr(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:sr(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:sr(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:sr(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[ei]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ei);for(ei in{submit:!0,reset:!0})S.pseudos[ei]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ei);function ur(){}function cr(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function lr(a,e,t){var s=e.dir,d=e.next,u=d||s,c=t&&"parentNode"===u,l=bi++;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=[yi,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[_]||(e[_]={}))[e.uniqueID]||(r[e.uniqueID]={}),d&&d===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[u])&&i[0]===yi&&i[1]===l)return o[2]=i[2];if((r[u]=o)[2]=a(e,t,n))return!0}return!1}}function pr(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 hr(e,t,n,i,r){for(var o,a=[],s=0,d=e.length,u=null!=t;s<d;s++)!(o=e[s])||n&&!n(o,i,r)||(a.push(o),u&&t.push(s));return a}function fr(h,f,g,m,v,e){return m&&!m[_]&&(m=fr(m)),v&&!v[_]&&(v=fr(v,e)),nr(function(e,t,n,i){var r,o,a,s=[],d=[],u=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:hr(c,s,h,n,i),p=g?v||(e?h:u||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=hr(p,d),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[d[o]]=!(l[d[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?Oi(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=hr(p===t?p.splice(u,p.length):p),v?v(null,t,p,i):Ri.apply(t,p)})}ur.prototype=S.filters=S.pseudos,S.setFilters=new ur,ii=T.tokenize=function(e,t){var n,i,r,o,a,s,d,u=Si[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],d=S.preFilter;a;){for(o in n&&!(i=Di.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Ui.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Pi," ")}),a=a.slice(n.length)),S.filter)S.filter.hasOwnProperty(o)&&(i=Hi[o].exec(a))&&(!d[o]||(i=d[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):Si(e,s).slice(0)},ri=T.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=Ii[e+" "];if(!a){for(n=(t=t||ii(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,d=lr(function(e){return e===i},a,!0),u=lr(function(e){return-1<Oi(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==ai)||((i=t).nodeType?d:u)(e,t,n),i=null,e}];s<r;s++)if(t=S.relative[e[s].type])c=[lr(pr(c),t)];else{if((t=S.filter[e[s].type].apply(null,e[s].matches))[_]){for(n=++s;n<r&&!S.relative[e[n].type];n++);return fr(1<s&&pr(c),1<s&&cr(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Pi,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&cr(e))}c.push(t)}return pr(c)}(t[n]))[_]?r:o).push(a);(a=Ii(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,d=0,u="0",c=e&&[],l=[],p=ai,h=e||b&&S.find.TAG("*",r),f=yi+=null==p?1:Math.random()||.1,g=h.length;for(r&&(ai=t==E||t||r);u!==g&&null!=(o=h[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument==E||(ui(o),n=!li);s=m[a++];)if(s(o,t||E,n)){i.push(o);break}r&&(yi=f)}y&&((o=!s&&o)&&d--,e)&&c.push(o)}if(d+=u,y&&u!==d){for(a=0;s=v[a++];)s(c,l,t,n);if(e){if(0<d)for(;u--;)c[u]||l[u]||(l[u]=Ti.call(i));l=hr(l)}Ri.apply(i,l),r&&!e&&0<l.length&&1<d+v.length&&T.uniqueSort(i)}return r&&(yi=f,ai=p),c},y?nr(i):i))).selector=e}return a},oi=T.select=function(e,t,n,i){var r,o,a,s,d,u="function"==typeof e&&e,c=!i&&ii(e=u.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&&li&&S.relative[o[1].type]){if(!(t=(S.find.ID(a.matches[0].replace($i,Zi),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Hi.needsContext.test(e)?0:o.length;r--&&(a=o[r],!S.relative[s=a.type]);)if((d=S.find[s])&&(i=d(a.matches[0].replace($i,Zi),Ki.test(o[0].type)&&dr(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&cr(o))break;return Ri.apply(n,i),n}}return(u||ri(e,c))(i,t,!li,n,!t||Ki.test(e)&&dr(t.parentNode)||t),n},w.sortStable=_.split("").sort(Ci).join("")===_,w.detectDuplicates=!!di,ui(),w.sortDetached=ir(function(e){return 1&e.compareDocumentPosition(E.createElement("fieldset"))}),ir(function(e){return e.innerHTML=Z().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||rr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&ir(function(e){return e.innerHTML=Z().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||rr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ir(function(e){return null==e.getAttribute("disabled")})||rr(Ni,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var gr=mi.Sizzle;T.noConflict=function(){return mi.Sizzle===T&&(mi.Sizzle=gr),T},i.exports?i.exports=T:mi.Sizzle=T;mr=p(t.exports),(vr=C.extend(function(){return vr.Sizzle.apply(this,arguments)},mr)).reset=function(){vr.Sizzle=mr,vr.matchesSelector=mr.matchesSelector,vr.matches=mr.matches},vr.intercept=function(e,t="Sizzle"){vr[t]=C.wrap(vr[t],e)},vr.reset();var mr,vr,s=vr;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=s(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 yr(){this.ownerKey="_pendo_"+at(8)}C.extend(yr.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 br=new yr,wr=1;function Sr(e){return C.isNumber(e.eventPhase)&&e.eventPhase===wr}function Ir(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?ut("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{Er(e,t,n,i)}):C.noop}function Er(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?ut("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var Cr=function(e){var t=Yn.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},xr={add(t,e){var n=br.get(t),i=(n.handle||(n.handle=function(e){xr.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||Ir(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=(br.get(r,"captureEvents")||{})[o.type]||[],t=(br.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=br.get(o)).ignore&&(a.handled=a.handled||{},C.each(t.slice(),function(e){var t=!!e.capture===Sr(o),n=(n=o,C.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(Cr(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!ge(e.selector)||0<k(Cr(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){x.error(i)}}}))},remove(e,t,n,i){var r=br.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],Er(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],Er(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],Er(e,t,r.handle));C.isEmpty(r.captureEvents)&&C.isEmpty(r.bubbleEvents)&&(br.remove(e,"captureEvents"),br.remove(e,"bubbleEvents"),br.remove(e,"handle"))}},trigger(e){var t=br.get(e);if(!t.pendoStopped)if(e.bubbles){var n=Cr(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=Yn.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),Sr(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)xr.dispatch(o[i],e);(e=xr.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(xr.dispatch(n,e),(e=xr.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)xr.dispatch(o[i],e)}}else xr.dispatch(Cr(e),e)},clone(e){var t=C.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",br.ownerKey]),e=Yn.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){xr.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},_r=C.extend(kr,{get:function(e,t){return kr({method:"GET",url:e,headers:t})},post:Rr,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",Rr(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!==Tr()}});function Tr(){return window.XMLHttpRequest||ActiveXObject}function kr(e){var t=y.defer(),n=new(Tr())("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 Rr(e,t,n){return kr({method:"POST",url:e,data:t,headers:n})}var Ar,Or=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},Nr=function(){return f.get("annotateUrl")||Dr()||f.get("sanitizeUrl")||f.get(qr)||f.get("xhrWhitelist")},Mr=function(){return Dr()?{href:Pr(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Lr=function(){return new Jn(window.location.href)},Fr=function(){var e,t,n,i;return Nr()?(e=Lr(),Dr()&&(e.href=Pr(e.href)),Or()?(t=R.electronResourcesPath(),n=R.electronUserDirectory(),i=R.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(R.electronUserHomeDirectory(),"").replace("file:///","")):Vr(e.href)):g.getters["location/href"]()},Pr=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Dr=function(){return!0===f.get("ignoreHashRouting")},Ur=500;function Gr(){return C.isUndefined(Ar)&&function e(){Wr(),Ar=Ut(e,Ur)}(),()=>{clearTimeout(Ar)}}var Br=function(e){var t;try{t=Fr()}catch(n){}return t},zr=[],Hr=!1,jr=null;function Wr(){var t=Mr().href;jr!=t&&(jr=t,C.map(zr,function(e){e(t)}))}var qr="queryStringWhitelist";function Jr(e){var t=f.get("sanitizeUrl");return C.isFunction(t)?t(e):e}function Vr(e){e=e||Mr().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=$r(e,null,n,!0)),o=i||{}),_r.urlFor(e,o,r)):e}catch(a){x.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else x.error("customer-provided `annotateUrl` must be of type: function");return e}function Kr(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function $r(e,t,n,i){e=e||Br(),t=t||Kr(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)?Yr(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var Zr,Yr=function(e,t,n){return n&&C.contains(t,"*")?"":(e=Xr(e),e=n?C.omit(e,t):C.pick(e,t),Qr(e))},Xr=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},{})},Qr=function(e){return C.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},R={watch:function(e){const n=[];x.info("Initializing Pendo URL Watcher");var i,t=f.get("location.pushState")&&Ue.supportsHistoryApi();return Hr||(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(Wr,0),t}),n.push(()=>{i[e]=t})}),n.push(Ir(window,"popstate",Wr))),Ue.supportsHashChange()&&n.push(Ir(window,"hashchange",Wr)),!1!==t&&Ue.supportsHashChange()||n.push(Gr()),Hr=!0),zr.push(e),()=>{C.each(n,function(e){e()}),zr.length=0,Hr=!1}},get:Br,externalizeURL:function(e,t,n){n=n||f.get(qr);return Jr($r(e,t,n=C.isFunction(n)?n():n,!1))},startPoller:Gr,getWindowLocation:Mr,clear:function(){zr=[]},isElectron:Or,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 eo(){var e=f.getLocalConfig("dataHost");return e||((e=f.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:He)}function to(){Zr=eo()}function no(){var e=f.get("contentHost")||f.get("assetHost")||je;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function io(e){var t=no(),n=0<=(n=t).indexOf("localhost")||0<=n.indexOf("local.pendo.io")?e.replace(".min.js",".js"):e;return t+"/"+(We?We+"/":"")+n}function ro(){var e=f.get("allowPartnerAnalyticsForwarding",!1)&&f.get("adoptAnalyticsForwarding",!1);return f.get("trainingPartner",!1)||e}var oo=3,ao=1,so=9,uo=11,co=4;function A(e){var t;if((t=e)&&t.nodeType===ao)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function lo(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 po(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function ho(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function fo(e){return C.isNumber(e)?e:0}function go(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!vo(e)?null:e}function mo(e){return lo(A(e),ke)&&isNaN(Ee)}function vo(e){if(e)return(e=A(e))&&(C.contains(["relative","absolute","fixed"],e.position)||lo(e,ke))}function yo(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=vo(t)?t:go(t,n),i=t?bo(t):{top:0,left:0},e=bo(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+=fo(t.scrollTop),i.left+=fo(t.scrollLeft)),i.top-=fo(t.clientTop),i.left-=fo(t.clientLeft)):(i.top+=po(n),i.left+=ho(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function bo(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 wo=void 0===(e=f.get("pendoCore"))||e,So=function(e,t,n){e=Zr+"/data/"+e+"/"+t,t=C.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function Io(){return C.compact([I.apiKey].concat(I.additionalApiKeys))}var Eo=function(e){return e+="v"+qe,xo(So("log.gif",I.apiKey,{msg:e,version:qe}))};function Co(e){try{var t=Zr+"/data/errorlog?apiKey="+I.apiKey,n={error:e,version:"v"+qe,visitorId:b()},i=_o.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):_r.postJSON(t,n);return i.then(function(){x.info("successfully wrote error")},function(e){x.info("error writing error:"+e)})}catch(r){return x.info("Failed to write error to server using POST endpoint: "+r),Eo("Failed to write error to server using POST endpoint: "+r)}}function xo(e){var t,n;return Ao()?(t=y.defer(),Ir(n=new Image,"load",t.resolve),Ir(n,"error",t.reject),n.src=e,t.promise):y.resolve()}function _o(e,t={}){t=C.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t)}function To(e,t){return navigator.sendBeacon(e,t)}_o.supported=function(){try{return C.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var ko=!(To.supported=function(){return C.isFunction(navigator.sendBeacon)}),Ro=function(){var e=Ao();return ko=!0,e&&m["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},Ao=function(){return!ko&&wo},Oo=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(Fo(e))}catch(n){return!1}},No=function(e,t){try{var n;Oo(e,t)||(n=Ye.call(Fo(e))+" "+t,Lo(e,n))}catch(i){}},Mo=function(e,t){try{var n,i;Oo(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=Fo(e).replace(n," "),Lo(e,i))}catch(r){}},Lo=function(e,t){C.isString(e.className)?e.className=t:e.setAttribute("class",t)},Fo=function(e){try{var t=e.className;return(C.isString(t)||!ge(t)?t:e.getAttribute("class"))||""}catch(n){return""}},Po=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},Do={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},Uo=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);Go(e,t)},Go=function(a,e){C.each(e,function(e,t){if(""!==(t=Ye.call(t))){var n=Po(t),i=(!C.isNumber(e)||isNaN(e)||Do[n]?C.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=Ye.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=Ye.call(e)}catch(o){x.info("failed to set style: "+t+" with value "+e)}}})},Bo=function(){return Ge()?{width:document.documentElement.offsetWidth||0,height:document.documentElement.offsetHeight||0}:{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}},zo=function(e){var t=Bo(),n=po(),i=ho();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function Ho(t){return C.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function jo(e,t=window){var n;return function(e){var t,n=e;for(;n;){if(!(t=A(n)))return;if("fixed"===t.position)return!isNaN(Ee)||!Xo(n);n=n.parentNode}return}(e)?((n=bo(e)).fixed=!0,Ho(n)):Ho(yo(e,Vo(t.document),t))}var Wo=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},qo=C.compose(function(e){return Array.prototype.slice.call(e)},function(e,t){try{return s(e,t)}catch(n){return Eo("error using sizzle: "+n),t.getElementsByTagName(e)}}),Jo=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return x.info("error interrogating body elements: "+n),Eo("error picking best body:"+n),0}},Vo=function(e){e=e||document;try{var t=qo("body",e);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 Eo("Error getting body element: "+n),e.body}};function Ko(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 $o(e){if(s.contains(document,e))return!0;for(;e&&e.parentNode||Yn.isElementShadowRoot(e);)e=Yn.getParent(e);return e===document}var Zo=function(e){var t=Vo();if(null!==e)return e===document||e===window?((t={left:window.pageXOffset||t.scrollLeft,top:window.pageYOffset||t.scrollTop,width:window.innerWidth,height:window.innerHeight}).right=t.left+t.width,t.bottom=t.top+t.height,t):((t=jo(e)).right=t.left+t.width,t.bottom=t.top+t.height,t)},Yo=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function Xo(e){for(var t=e&&e.parentNode;t;){if(lo(A(t),ke))return 1;t=t.parentNode}}var Qo=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if($o(e))for(i=e;i;)if(Yn.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=A(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=A(r))&&!C.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&Xo(i))i=go(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function ea(e,t){e=A(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?ta.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?ta.BOTH:t.test(e.overflowY)?ta.Y:t.test(e.overflowX)?ta.X:t.test(e.overflow)?ta.BOTH:ta.NONE}var ta={X:"x",Y:"y",BOTH:"both",NONE:"none"};function na(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&$o(e)}function ia(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 ra(e){if(e){if(C.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function oa(e,t,n){const i=[];var r=ra(document.documentElement);let o=ra(Qo(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=ra(Qo(o)),a++;return()=>{C.each(C.compact(i),function(e){e()}),i.length=0}}const aa=['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 sa(e,t,n){var i=Zo(t),t=ea(t,n);if(t!==ta.BOTH||Yo(e,i)){if(t===ta.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===ta.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function da(e){if(e){if(na(e))return 1;var t=Zo(e);if(0!==t.width&&0!==t.height){var n=A(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=A(i=i.parentNode)}return 1}}}}function ua(e,t){if(!da(e))return!1;if(!na(e)){for(var n=Zo(e),i=Qo(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!sa(n,i,t))return!1;i=Qo(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=ho(),e+=po()),o<=0||e<=0)return!1}}return!0}function ca(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,d=Zo(e),u=Qo(e,s);if(!da(e))return!1;for(;u;){if(t=Zo(u),(o=ea(u,a))!==ta.NONE&&(i=n=0,o!==ta.Y&&o!==ta.BOTH||(d.bottom>t.bottom&&(n+=d.bottom-t.bottom,d.top-=n,d.bottom-=n),d.top<t.top&&(n-=r=t.top-d.top,d.top+=r,d.bottom+=r)),o!==ta.X&&o!==ta.BOTH||(d.right>t.right&&(i+=d.right-t.right,d.left-=i,d.right-=i),d.left<t.left&&(i-=r=t.left-d.left,d.left+=r,d.right+=r))),!sa(d,u,s))return!1;u=Qo(u,s)}return!0}function la(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=Vo(),d=Qo(e,a);d&&d!==s;)t=Zo(e),n=Zo(d),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(d.scrollBy)?d.scrollBy(r,i):(d.scrollTop+=i,d.scrollLeft+=r),d=Qo(d,a)}Mi={$:{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(){Uo(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){No(t,e)})})},removeClass(e){return e=e.split(/\s+/),this.each(function(t){C.each(e,function(e){Mo(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&&Oo(t,e)})}),n)},toggleClass(e){return e=e.split(/\s+/),this.each(function(t){C.each(e,function(e){(Oo(t,e)?Mo:No)(t,e)})})},css(e){return this.each(function(){Uo(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),$o(this)&&C.each(s("script",this),ia)}),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),$o(document))&&C.each(s("script",this[0]),ia)},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&&!s.matchesSelector(n,e);)if((n=Zn(n))===document||t&&s.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 pa{constructor(e=Vo(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},Ue.MutationObserver){const n=new(ut("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()}}_i=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var ha="function"==typeof(i=window.WeakRef)&&/native/.test(i)?i:_i();function fa(e,t){var n,i;return e.tagName&&-1<["textarea","input"].indexOf(e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:ya(n.substring(0,i))):ga(e,t)}function ga(e,t=128){var n,i="",r=e.nodeType;if(r===oo||r===co)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===ao||r===so||r===uo)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=ga(e.childNodes[a],t-i.length))).length)return i+ya(o.substring(0,t-i.length));i+=o}}return i}function ma(e){return 55296<=e&&e<=56319}function va(e){return 56320<=e&&e<=57343}function ya(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(ma(t)||va(t)){if(1===e.length)return e.slice(0,-1);if(ma(t))return e.slice(0,-1);if(va(t))if(!ma(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class ba{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let t=this.elRef&&this.elRef.deref();var e=$o(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 ha(t)}return t}getText(e=1024){return fa(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 wa(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===eo())return!0;if(t===no())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=(Ke()||(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-"+ze+"-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 Sa(e){var t;if(C.isString(e))return t=(t=Kr(e).substring(1))&&t.length?Xr(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")&&Ue.sri&&(n=Sa(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:br,event:xr,removeNode:Wo,getClass:Fo,hasClass:Oo,addClass:function(e,t){var n;"string"==typeof e?(n=k(e),C.map(n,function(e){No(e,t)})):No(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=k(e),C.map(n,function(e){Mo(e,t)})):Mo(e,t)},getBody:Vo,getComputedStyle:A,getClientRect:Zo,intersectRect:Yo,getScrollParent:Qo,isElementVisible:ua,Observer:pa,Element:ba,scrollIntoView:la,getRootNode:ra}),C.extend(k.prototype,xr.$,Mi.$);var Ea,Ca=function(e){var t=0===f.get("allowedOriginServers",[]).length,n=ro();return!(!t&&!n&&(t=ze,n=X,!/prod/.test(t)||re(n)))||wa(e)},xa=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(C.isString(e)&&(e={url:e}),!Ca((u=e.url,new Jn(u).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 d=document.createElement("link");d.type=r,d.rel="stylesheet",d.href=e.url,Ia(d,e.url),a=d}else{if(dt())return(i=document.createElement("script")).addEventListener("load",function(){t(),Wo(i)}),i.type=o,i.src=Z(I).createScriptURL(e.url),Ia(i,e.url),document.body.appendChild(i),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=Z(I).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),_a(a,e.url,t),a}catch(c){return{}}var u},_a=function(e,t,n){var i=!1;ge(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||Eo("Failed to load "+t+" within 10 seconds")},1e4))},Ta=function(e){var t=JSON.parse(e.data),n=e.origin;x.debug(I.app_name+": Message: "+JSON.stringify(t)+" from "+n),Ha(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},ka=function(e){Aa(La)(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};x.debug("Invalid Message: Missing 'type' in data format")}}catch(r){}};function Aa(t){return function(e){if(e&&wa(e.origin))return t.apply(this,arguments)}}var Oa={disconnect(e){},module:function(e){za(e.moduleURL)},debug:function(e){qa(Ta)}},Na=function(e,t){Oa[e]=t},Ma=function(e){delete Oa[e]},La=function(e){var t;e&&(t=e.data)&&ge(Oa[t.type])&&Oa[t.type](t,e)},Fa={},Pa=function(e){if(Fa[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},Da=function(e){return ge(Fa[e])},Ua=function(e){if(Fa)for(var t in Fa)if(0<=t.indexOf(e))return t;return null},Ga=[],Ba=function(){var e;Ga.length<1||(e=Ga.shift(),Da(e))||xa(e,function(){Pa(e),Ba()})};var za=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 Jn(e);return wa(n.origin)&&t[n.pathname]}catch(i){x.debug("Invalid module URL: "+e)}}(e)||(Ga.push(e),1<Ga.length)||Ba()},Ha=function(e,t,n){var i,r=C.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Ea||Wa(),n="*"),t.guid=r,e&&C.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";x.info("Failed to postMessage: "+t)}return r},ja=function(){return window!=window.top},Wa=function(){var e=new RegExp("^"+wt(Zr).replace(/^https?:/,"https?:")),t=f.get("forceParentDesigner");return!Ke()&&t||e.test(location.href)?window.parent:window.top},qa=function(e){var t;return ge(window.addEventListener)&&C.isFunction(window.addEventListener)&&(t=Aa(e),window.addEventListener("message",t,!1)),function(){ge(window.removeEventListener)&&C.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},Ja=C.memoize(function(){return f.get("restrictP1Access")}),Va=[],Ka=[],$a=12e4,Za=16,Ya=1900,Xa=65536,Qa=function(e){return!(!e||""===e)},es=function(){return R.get()},ts={flush:C.noop,flushBy:C.noop,flushEvents:os,flushTrackEvents:os,flushSilos:os,flushTrackEventSilos:os,flushBeacons:os,flushNow:os,flushLater:as,flushEvery:ss,flushStop:ds,beacons:[],silos:[],trackEventSilos:[],lock:Ro,unlock:function(){if(!Ao())return us(),function(){var e=!Ao();return ko=!1,e&&m["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."}()}},ns=[];function is(e){ns.push(e)}function rs(e){e=ns.indexOf(e);0<=e&&ns.splice(e,1)}function os(e,t){try{C.each(ns,function(e){e.flush&&e.flush(t)})}catch(n){x.critical("unhandled error while flushing event cache",{error:n})}}function as(e){return t=C.partial(os,!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 ss(e){var t;if(e=parseInt(e,10)||0,C.isObject(ss.intervals)||(ss.intervals={}),!ss.intervals[e])return t=window.setInterval(os,e),ss.intervals[e]=function(){clearInterval(t),delete ss.intervals[e]}}function ds(){var e=C.values(ss.intervals).concat([os]);C.map(e,function(e){C.isFunction(e)&&e()})}function us(){C.each(ns,function(e){e.clear&&e.clear()}),ds()}function cs(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 ls(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(x.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(x.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))||(x.debug(t+"The jwt is invalid."),!1)):(x.debug(t+"Missing jwt and signingKeyName."),!1)}ps=null;var ps,hs={set:function(e){ps=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==ps?ps:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!f.get("enableSignedMetadata")&&(n=ls(e,t),f.get("requireSignedMetadata")&&!n?(x.debug("Pendo will not "+t+"."),!1):n?cs(e.jwt):void x.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class fs{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 $t.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 $t.all(n)}}const gs="unsentEvents";class ms{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(gs),this.events=JSON.parse(e.read(gs)||"{}"),e.clear(gs)}write(e){0<C.size(this.events)?e.write(gs,JSON.stringify(this.events),5184e5):e.clear(gs)}}var vs=new ms,ys="_PENDO_UNNAMED_",bs=5;function ws(e,t,n,i,r,o){var a,s;a=f.get("dropAnonymous"),s=Tn(b()),!wo||a&&s||(a=t,s=n,t=i,n=r,i=o,s={type:r=e,browser_time:v(),visitor_id:b({generate:!0}),account_id:Bn(),url:R.externalizeURL(s),props:a||{},eventProperties:n},s=sn.addTracerIds(s),"track"===r&&(s.track_event_name=t||ys),m.eventCaptured.trigger(s,i),Qa((o=s).url)&&function(e){if(f.get("freeNPSData"))return C.contains(Ss,e.type);return 1}(o)&&("track"===e?Fs.push(o):Ls.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,o))))}var Ss=["load","meta","identify"];function Is(){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 Es=0;function Cs(e,t){e.sequence=Es++,t(e)}function xs(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 _s(e,t){return ro()?Ts("account_id")(e,t):t(e)}function Ts(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 ks(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function Rs(e,t,n){t=n[t-1]||C.last(n);return Math.ceil(e/t)}function As(e,t){for(var n,i=0,r=(C.isFunction(t.overhead)?t.overhead:C.constant(0))(),o=0;o<e.length;++o){if(Rs(n=ks(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(Rs(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(Rs(i+(n=ks(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function Os(){var e=hs.get();return C.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var Ns,Ms,Ls,Fs;function Ps(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=I.squeezeAndCompress(e.slice()),e.JZB.length<=Xa)||1===e.length?t(e):(n=e.length/2,Ps(e.slice(0,n),t),void Ps(e.slice(n),t))}function Ds(e,t){Ao()&&t(e)}function Us(){return function(e,t){1===e.length&&e.JZB.length>Xa?(x.debug("Couldn't write event"),Eo("Single item is: "+e.JZB.length+". Dropping."),Co(e.JZB)):t(e)}}function Gs(e,t){return So(t.beacon+".gif",e,C.extend({v:qe,ct:v(),jzb:t.JZB},t.params,t.auth))}function Bs(e,t){return So(t.beacon+".gif",e,C.extend({v:qe,ct:v(),s:t.JZB.length},t.params))}function zs(i){return function(e,t){e.params=C.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=hs.get();C.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function Hs(e,t){var n=ro(),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 Ws(e){return JSON.stringify(C.extend({events:e.JZB},e.auth))}function qs(e){return e.status<200||300<=e.status?y.reject(new Error(`received status code ${e.status}: `+e.statusText)):y.resolve()}function Js(e,t){return _o(Gs(e,t)).then(qs)}function Vs(e,t){return fetch(Bs(e,t),{method:"POST",keepalive:!0,body:Ws(t),headers:{"Content-Type":"application/json"}}).then(qs)}function Ks(e,t){var n=Ws(t);return To(Bs(e,t),n)?y.resolve():y.reject()}function $s(n){return function(e,t){return t.JZB?t.eventLength<=Ya&&!f.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&_o.supported()?Js(e,t):t.auth?_r({method:"GET",url:Gs(e,t)}):xo(Gs(e,t)):n.allowPost&&t.eventLength<=Xa?_o.supported()?Vs(e,t):To.supported()?Ks(e,t):_r({method:"POST",url:Bs(e,e=t),data:Ws(e),headers:{"Content-Type":"application/json"}}):y.resolve():y.resolve()}}function Zs(n){return function(e,t){if(t.JZB){if(t.eventLength<=Ya&&!f.get("sendEventsWithPostOnly",!1)){if(!t.auth&&_o.supported())return Js(e,t);if(Ue.msie<=11)return _r({method:"GET",url:Gs(e,t),sync:!0})}if(t.eventLength<=Xa&&n.allowPost){if(_o.supported())return Vs(e,t);if(To.supported())return Ks(e,t);if(Ue.msie<=11)return _r({method:"POST",url:Bs(e,e=t),data:Ws(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return y.resolve()}}function Ys(e,t){e.length=0;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);t(i)}function Xs(e){return Is(Ds,_s,Ps,(t=e.shorten,t=C.defaults(t||{},{fields:[],siloMaxLength:Xa}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],x.debug("Max length exceeded for an event"),C.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(x.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),Ps,Us(),zs(e),Hs,js,Ys);var t}class Qs{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 y.all(C.map(this.queues,e=>e.drain.apply(e,t)))}}function ed(o,a,s){a=a||$s(o),s=s||Zs(o);e=o;var e=C.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=C.map(e,(i,r)=>{var e=new fs(function(e,t,n){return n&&(e.params=C.extend({},e.params,{rt:n})),o.localStorageUnload&&t?(0===r&&vs.push(o.beacon,e),y.resolve()):(t?s:a)(i,e)});return e.onTimeout=function(){g.commit("monitoring/incrementCounter",o.beacon+"GifFailures")},e.retryPending=!0,e}),e=new Qs(e);return vs.send(o.beacon,e),e}function td(e,t){var n=f.get("analytics.excludeEvents");0<=C.indexOf(n,e.type)||t(e)}class nd{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=ed(e)}pause(e=1e4){var t=C.uniqueId();const n=this["locks"];n[t]=1;var i=()=>{n[t]&&(clearTimeout(r),delete n[t],this.flush())},r=Ut(i,e);return 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 id(e){var i,r,t=Xs(e),n=Is((r=e.beacon,function(e,t){var n=f.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),td,Cs,xs(e.cache),(i={overhead:Os,lower:f.get("sendEventsWithPostOnly")?Xa:Ya,upper:Xa,compressionRatio:[.5*bs,.75*bs,bs]},function(e,t){for(var n=As(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=As(e,i)}));return new nd(C.extend({processSilos:t,packageSilos:n},e))}var rd=qn(function(e){var t,n,i;if((e=e||R.get())&&e!==rd.lastUrl)return rd.lastUrl=e,t=-1,Ja()||ja()&&(i=Wa(),Ha(i,{type:"load",url:location.toString()},"*")),x.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},ja()&&(t.is_frame=!0),"*"!==(n=St())&&(t.allowed_storage_keys=C.keys(n)),ws("load",t,e),as(),m.urlChanged.trigger(),!0});function od(e){return"hidden"===e.visibilityState}rd.reset=function(){rd.lastUrl=null};const ad="visibilitychange",sd="pagehide",dd="unload";function ud(){this.serializers=C.toArray(arguments)}function cd(e,t){return e.tag=Yn.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function ld(e){return ge(e)?""+e:""}function pd(e,t){return e.id=ld(t.id),e}function hd(e,t){return e.cls=ld(k.getClass(t)),e}C.extend(ud.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 fd=256,gd=64,md={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 vd=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),Jr((i=i)&&0===i.indexOf("data:")?(x.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)?Ye.call(e).substring(0,fd):e:null):null};function yd(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 bd(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<=gd?C.pluck(a,"nodeName"):(r=C.groupBy(e,function(e){return o[e.nodeName]?"defaults":C.isString(e.value)&&e.value.length>fd?"large":"small"}),C.pluck([].concat(C.sortBy(r.defaults,"nodeName")).concat(C.sortBy(r.small,"nodeName")).concat(C.sortBy(r.large,"nodeName")).slice(0,gd),"nodeName"))}catch(s){return x.error("Error collecting DOM Node attributes: "+s),[]}}function wd(t,n){var e=yd(f.get("htmlAttributes")),i=yd(f.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=vd(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},bd(n.attributes,md[r]&&md[r].attr,e,i));return C.each(r,function(e){t.attrs[e.toLowerCase()]=vd(n,e)}),t}function Sd(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==ao}).indexOf(t).value()),e}function Id(i,e){var r;return f.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(Id),e=this.serialize(e.previousElementSibling),this.add(Id),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 Ed=new ud(cd,pd,hd,wd,Sd,Id),Cd=function(e){return"BODY"===e.nodeName&&e===Vo()||null===e.parentNode&&!Yn.isElementShadowRoot(e)},xd="pendo-ignore",_d="pendo-analytics-ignore",Td=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=Ed.serialize(o,e)}while(r||!st(a.cls,xd)&&!st(a.cls,_d)||(r=!0),n.parentElem=a,n=a,(i=Yn.getParent(o))&&!Cd(o));return r&&(t.parentElem.ignore=!0),t.parentElem},kd=["","left","right","middle"],t=function(e){return e},e=function(e,t){return e[t]},Rd=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return kd[t]}],["altKey",e,t,t],["ctrlKey",e,t,t],["metaKey",e,t,t],["shiftKey",e,t,t]],Ad={click:function(e,t){for(var n=[],i=0;i<Rd.length;i++){var r=Rd[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}},Od=function(t){try{if(!k.data.get(t,"counted")){k.data.set(t,"counted",!0);var n=Cr(t),i=t.type,e={},r=Ad[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===oo?s.parentNode:s.nodeType===co?null:s.correspondingUseElement||s){var o=Td(n),a=(C.extend(o,e),rd());if(a&&R.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:x.error("Failed to add click event property")},target:e}}(e),m.onClickCaptured.trigger(e),e=e.getEventProperties();if(!C.isEmpty(e))return e}(n)),ws(i,{target:o},undefined,undefined,e,t),m.trigger("appUsage",o,t)}}else x.info("Invalid HTML target",{contexts:["event","dom","processing"]})}}catch(d){x.critical("pendo.io while handling event",{error:d})}var s};var Nd=C.debounce(Od,5e3,!0),Md=function(e){const t=[];C.contains(e=e||["click","focus","submit","change"],"change")&&(e=C.without(e,"change"),t.push(()=>{Nd.cancel()}),t.push(Ir(document,"change",Nd,!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=Ue.hasEvent("pointerdown"),d=s?"pointerdown":"mousedown",s=s?"pointerup":"mouseup",u=[],c={cloneEvent:function(e){e=k.event.clone(e);return e.type="click",e.from=d,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&&Cr(r)!==Cr(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&&!Cd(e);)t.push(e),e=e.parentNode;return t}(Cr(e));C.each(e,function(e){e=Ld(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 Iv(){c.unwrap(),C.each(u,function(e){e()})}};e&&(u.push(Ir(document,d,c.down,!0)),u.push(Ir(document,s,c.up,!0)),u.push(Ir(document,"click",c.click,!0)));return c}(k.event.trigger,Ue.addEventListener,i,r).teardown),t.push((i=e,n=C.map(i,function(e){return l(document,e,Od,!0)}),()=>{C.each(n,function(e){e()})})),t.push(function(e,t){if(t){const n=[];return n.push(Ir(document,ad,()=>{od(document)&&e(!0,!1)})),n.push(Ir(window,sd,C.partial(e,!1,!0))),()=>C.each(n,function(e){e()})}return Ir(window,dd,C.partial(e,!0,!0))}(function(e,t){t&&m.appUnloaded.trigger(),e&&m.appHidden.trigger()},f.get("preventUnloadListener"))),f.get("interceptStopPropagation",!0)),i=f.get("interceptPreventDefault",!0);return r&&t.push(Fd(window.Event,e)),i&&t.push(Pd(window.Event,["touchend"])),()=>{C.each(t,function(e){e()})}};function Ld(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){x.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 Fd(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){x.critical("ERROR in interceptStopPropagation",{error:r})}return function(){C.each(t,function(e){e=n.prototype[e]._pendoUnwrap;C.isFunction(e)&&e()})}}function Pd(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=wr,k.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){x.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&&!Ue.addEventListener&&(i=!1),k.event.add(e,{type:t,handler:n,capture:i})):C.noop}function Dd(e,t,n,i){e&&t&&n&&(i&&!Ue.addEventListener&&(i=!1),k.event.remove(e,t,n,i))}var Ud=function(e){k.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},Gd=function(e,t){return"complete"!==(t=t||window).document.readyState?Ir(t,"load",e):(e(),C.noop)},O=[],Bd=[],zd={};let Hd={};function jd(){return O}function Wd(){return qd(O)}function qd(e){return C.filter(e,function(e){return!e.isFrameProxy})}function Jd(e){C.isArray(e)?(O=e,m.guideListChanged.trigger({guideIds:C.pluck(e,"id")})):x.info("bad guide array input to `setActiveGuides`")}var Vd=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&&(Jd(t),g.dispatch("frames/changeGuideList",t)))}}}();function Kd(t,n){return C.find(Yd(),function(e){return C.get(e,t)===n})||null}function N(e){return Kd("id",e)}function $d(e){return Kd("name",e)}function Zd(e,t){return e&&e.id?(e=N(e.id)).findStepById(t):null}function Yd(){var e=C.values(Hd);return e.length?O.concat(C.flatten(e)):O}var Xd="_pendo-guide-tt_",Qd="_pendo-guide-mobile-tt_",eu=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},tu=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},nu=function(e){return!!C.get(e,"attributes.form")};function iu(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function ru(){return!!(iu()&&Bo().width<=320)||Ue.isMobileUserAgent()}function ou(){var e=ou.attachPoint;if(null==e){var t=f.get("guides.attachPoint");if(C.isString(t)){try{e=s(t)[0]}catch(n){x.info('Error finding guide attach point "'+t+'"')}e=e||document.createElement("div")}else e=!!C.isFunction(t)&&t();ou.attachPoint=e}return e||Vo()}var au=function(e){var t=zd[e.guideId];if(t){t=t.element();if($o(t)&&t.id==="_pendo-badge_"+e.id)return t}},su=function(e){var t;return e?(t=e.getGuide(),t="building-block"===C.get(t,"attributes.type")||!tu(t),!e.overrideElement&&t&&(e.overrideElement=au(e)),e.targetElement=du(e),e.overrideElement||e.targetElement):(x.info("Can't get element for null step"),null)},du=function(e){e=e.elementPathRule||null,e=e?s(e):[Vo()];return 0===e.length?null:C.first(e)};function uu(e){var t=C.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function cu(e,t,n){var i,r,o,e=jo(e),t=jo(t),a=(e=e,a=t,i=Math.min(e.top,a.top),r=Math.min(e.left,a.left),o=Math.max(e.top+e.height,a.top+a.height),e=Math.max(e.left+e.width,a.left+a.width),{height:Math.abs(o-i),width:Math.abs(e-r),top:i,left:r});!1!==zo(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([ta.X,ta.BOTH],i)&&(r.x=0);C.contains([ta.Y,ta.BOTH],i)&&(r.y=0);return r}(a,Bo(),n,ea(Vo(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function lu(e,t,n,i,r){var o,a=C.toArray(arguments).slice(1),s=e.apply(this,a);return n||ra(o=ou())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function pu(){return g.getters["frames/isLeader"]()}function hu(e){return g.dispatch("frames/updateFrameVisibility",{visibility:e})}const fu={validateGuide:1,validateLauncher:1,validateGlobalScript:1},gu={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1},mu=["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"];vu=pn.call({}),C.each(mu,function(n){vu[n]=function(e){var t;return C.isFunction(e)?vu.on(n,e):(t=fu[n]?"triggerAsync":"trigger",vu[t].apply(vu,[n].concat(C.toArray(arguments))))}});var vu,yu=vu;var bu={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 wu(e){e=Sa(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}Iu=_u={failed:{},verified:{}},Cu=Co,xu=function(e){try{var t=[];return!bu.usesXhr()&&e.domJsonpUrl?t.push(Ru(e,"domJsonpUrl")):bu.usesXhr()&&e.domUrl&&t.push(ku(e,"domUrl")),e.contentUrlJs?t.push(Ru(e,"contentUrlJs")):e.contentUrl&&t.push(Ru(e,"contentUrl")),y.all(t)}catch(n){throw m.contentVerificationFail.trigger(e,n),n}},Eu=function(e){return xu(e).then(C.noop,function(e){return/verify/.test(e)&&Cu(e),y.reject(e)})},Su=function(t){return Iu.failed[t.id]?y.reject():Iu.verified[t.id]?y.resolve():Eu(t).then(function(){Iu.verified[t.id]=!0},function(e){return Iu.failed[t.id]=!0,y.reject(e)})};var Su,Iu,Eu,Cu,xu,_u,Tu={verify:function(e){return f.get("guideValidation")?Su(e):y.resolve()},reset:function(){_u.failed={},_u.verified={}}};function ku(e,t){var n,i=e[t];return C.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||wu(e[t]),_r.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=V.create()).update(e),c.uint8ToBase64(t.digest())!==n)return y.reject('Unable to verify content at "'+i+'"')})):y.reject('unable to parse "'+i+'"')}function Ru(e,t){var n=e[t];return Ue.sri&&/[?&]sha(256|384|512)=/.test(n)?y.resolve():ku(e,t)}Au="allow",Ou="deny",Nu="pending",Lu=function(){return 0<C.size(yu._handlers.validateGuide)},Fu=function(e,n){var i=[];return C.each(e,function(e,t){n&&(t=n+"."+t),C.isObject(e)?C.each(Fu(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var Au,Ou,Nu,Mu,Lu,Fu,Pu={state:Mu={},Step:function(e){var n=this;function i(e){return C.filter([["content",wu(e.contentUrl)],["contentCss",wu(e.contentUrlCss)],["contentJs",wu(e.contentUrlJs)],["dom",wu(e.domUrl)],["domJsonp",wu(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=Fu(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(yu._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=Mu[t])!==Ou)&&(t!==Au?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+rt(t),yu.validateLauncher(t).then(function(){Mu[e]=Au},function(){Mu[e]=Ou}).then(function(){i=!1,n.render(),n.update(O)},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=Fu(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(!Lu())return y.resolve();try{return C.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=F.findResourceCenterModules(t,O),t=[t].concat(n),y.all(C.map(t,Du))):Du(e)}catch(i){throw m.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!Lu()||!!(e=Mu[e.guideId])&&e.status===Au},invalid:function(e){return!!Lu()&&!!(e=Mu[e.guideId])&&e.status===Ou},reset(){Mu={}}};function Du(i){var r=Mu[i.id];return r||(r={},Mu[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:Nu},r.status=Nu),r[t].promise);return n||(n=yu.validateGuide(e,i).then(function(){r[t].status=Au,r.status=Au},function(e){return r[t].status=Ou,r.status=Ou,y.reject(e)}),r[t].promise=n),n})}function Uu(e,t){var n=C.toArray(arguments).slice(2);return C.reduce(e,function(e,t){return t.apply(e,n)},t)}function Gu(e){return C.isFunction(e.before)?e:Uu(Gu.behaviors,e)}function Bu(e,t){return Uu(Bu.behaviors,e,t)}function zu(e){var t,n,i=f.getLocalConfig("contentHost");return i&&e?(t=new RegExp("(https:)?\\/\\/"+((t=ze)===ve?"pendo-static":Ie(t))+"-\\d+\\.storage\\.googleapis\\.com","g"),n=new RegExp("(https:)?\\/\\/"+Ie(ze)+"\\.storage\\.googleapis\\.com","g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+wt(je),"g"),i)):e}function Hu(e){return f.getLocalConfig("contentHost")?JSON.parse(zu(JSON.stringify(e))):e}Gu.behaviors=[],Bu.behaviors=[];var ju=function(){var u={},c=C.compose(function(e){var t=function(){var e=wt(f.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&x.debug("Failed to verify URL: "+e+" vs "+t),e},zu);const d=[function(e,t,n){return e.replace(`<% if (typeof guide !== 'undefined') { %>
4
+ function loadAgent(d){u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");var u,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 u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=u[n>>2])+u[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=u[n>>10])+u[n>>4&63])+u[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,H,j,W,q={exports:{}};function J(e){e?(j[0]=j[16]=j[1]=j[2]=j[3]=j[4]=j[5]=j[6]=j[7]=j[8]=j[9]=j[10]=j[11]=j[12]=j[13]=j[14]=j[15]=0,this.blocks=j):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=q,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],H=["hex","array","digest","arrayBuffer"],j=[],W=function(t){return function(e){return new J(!0).update(e)[t]()}},J.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}},J.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())},J.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},J.prototype.toString=J.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]},J.prototype.array=J.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]},J.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},Pe=function(){var t=W("hex");t.create=function(){return new J},t.update=function(e){return t.create().update(e)};for(var e=0;e<H.length;++e){var n=H[e];t[n]=W(n)}return t}(),e?t.exports=Pe:G.sha1=Pe;var V=p(q.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 I,Y="stagingServerHashes",X={};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||X))return!0;if(t=t||window.location,(o=e)&&o.stagingAgentUrl&&o[Y]){o=t.host;for(var n=c.uint8ToBase64(V.create().update(o).digest()),i=0,r=e[Y].length;i<r;++i)if(e[Y][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 d=e.stagingServers[a];if((d="string"==typeof d?new RegExp("^"+d+"$"):d)instanceof RegExp&&d.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 de(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 ue(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){X=e}function pe(e){return X[e]}he(window.setTimeout,window);function he(e,t){return"function"==typeof e.bind?e.bind(t):e}var fe,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 he(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,P=Object.prototype,D="undefined"!=typeof Symbol?Symbol.prototype:null,U=i.push,d=i.slice,l=P.toString,G=P.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),B=Array.isArray,z=Object.keys,H=Object.create,j=t&&ArrayBuffer.isView,W=isNaN,q=isFinite,J=!{toString:null}.propertyIsEnumerable("toString"),V=["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 Y=r("String"),X=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 X(e)&&W(e)}function de(e){return function(){return e}}function ue(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=ue(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return j?j(e)&&!h(e):le(e)&&pe.test(l.call(e))}:de(!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=V.length,i=e.constructor,r=p(i)&&i.prototype||P,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=V[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 J&&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 d,u=y(e);if(s=u.length,y(t).length!==s)return!1;for(;s--;)if(d=u[s],!g(t,d)||!ye(e[d],t[d],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function u(e){if(!o(e))return[];var t,n=[];for(t in e)n.push(t);return J&&fe(e,n),n}function be(i){var r=v(i);return function(e){if(null==e)return!1;var t=u(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 Ie(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Ee(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function Ce(d,u){return function(e){var t=arguments.length;if(u&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=d(i),o=r.length,a=0;a<o;a++){var s=r[a];u&&void 0!==e[s]||(e[s]=i[s])}return e}}var xe=Ce(u),s=Ce(y),_e=Ce(u,!0);function Te(e){var t;return o(e)?H?H(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 Re(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 Ae(e,t,n){e=Re(e,S(t));return $(e)?n:e}function Oe(e){return e}function I(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return Re(e,t)}}function E(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)?E(e,t,n):(o(e)&&!f(e)?I: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 Fe(){}function Pe(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=ke,b.iteratee=Le;var x=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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Ue=De(t),t=De(Ie(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"},He=/\\|'|\r|\n|\u2028|\u2029/g;function je(e){return"\\"+ze[e]}var We=/^\s*(\w|\$)+\s*$/;var qe=0;function Je(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 _=c(function(r,o){var a=_.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 Je(r,s,this,this,n)};return s}),Ve=(_.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return Je(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),T=ue(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 d=0,u=s.length;d<u;)i[r++]=s[d++];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]=Ve(e[i],e)}return e});var $e=c(function(e,t,n){return Ut(function(){return e.apply(null,n)},t)}),Ze=_($e,b,1);function Ye(e){return function(){return!e.apply(this,arguments)}}function Xe(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=_(Xe,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(d.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 dt(e,t,n){t=(T(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function R(e,t,n){if(t=E(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 A(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 ut(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=E(t,i,4),s=n,d=!T(o)&&y(o),u=(d||o).length,c=0<p?0:u-1;for(r||(s=o[d?d[c]:c],c+=p);0<=c&&c<u;c+=p){var l=d?d[c]:c;s=a(s,o[l],l,o)}return s}}var ct=ut(1),lt=ut(-1);function O(e,i,t){var r=[];return i=C(i,t),R(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]),A(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Re(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return A(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,d=(e=T(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&o<n&&(o=n);else i=C(i,t),R(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)?d.call(e):Y(e)?e.match(vt):T(e)?A(e,Oe):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=T(e)?e:w(e))[Pe(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=Pe(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),R(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}),It=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),Et=M(function(e,t,n){e[n?0:1].push(t)},!0);function Ct(e,t,n){return t in n}var xt=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=E(i,t[1])),t=u(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}),_t=c(function(e,n){var t,i=n[0];return p(i)?(i=Ye(i),1<n.length&&(t=n[1])):(n=A(k(n,!1,!1),String),i=function(e,t){return!N(n,t)}),xt(e,i,t)});function Tt(e,t,n){return d.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 d.call(e,null==t||n?1:t)}var Rt=c(function(e,t){return t=k(t,!0,!0),O(e,function(e){return!N(t,e)})}),At=c(function(e,t){return Rt(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 d=e[a],u=n?n(d,a,e):d;t&&!n?(a&&o===u||r.push(d),o=u):n?N(o,u)||(o.push(u),r.push(d)):N(r,d)||r.push(d)}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 Ft(e,t){return e._chain?b(t).chain():t}function Pt(n){return R(Ee(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return U.apply(e,arguments),Ft(this,t.apply(b,e))}}),b}R(["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]),Ft(this,e)}}),R(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Ft(this,e=null!=e?t.apply(e,arguments):e)}});var F=Pt({__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:Y,isNumber:X,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&q(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||Y(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:u,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:Ie,functions:Ee,methods:Ee,extend:xe,extendOwn:s,assign:s,defaults:_e,create:function(e,t){return e=Te(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():xe({},e):e},tap:function(e,t){return t(e),e},get:Ae,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:de,noop:Fe,toPath:ke,property:Ne,propertyOf:function(t){return null==t?Fe:function(e){return Ae(t,e)}},matcher:I,matches:I,times:function(e,t,n){var i=Array(Math.max(0,e));t=E(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:Pe,now:x,escape:Ue,unescape:t,templateSettings:Ge,template:function(o,e,t){e=_e({},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(He,je),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(!We.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=++qe+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:_,bind:Ve,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,d,u=0,c=(r=r||{},function(){u=!1===r.leading?0:x(),o=null,d=n.apply(a,s),o||(a=s=null)}),e=function(){var e=x(),t=(u||!1!==r.leading||(u=e),i-(e-u));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout(o),o=null),u=e,d=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=Ut(c,t)),d};return e.cancel=function(){clearTimeout(o),u=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,d,u=function(){var e=x()-o;e<n?r=Ut(u,n-e):(r=null,i||(s=t.apply(d,a)),r||(a=d=null))},e=c(function(e){return d=this,a=e,o=x(),r||(r=Ut(u,n),i&&(s=t.apply(d,a))),s});return e.cancel=function(){clearTimeout(r),r=a=d=null},e},wrap:function(e,t){return _(t,e)},negate:Ye,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:Xe,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:dt,detect:dt,findWhere:function(e,t){return dt(e,I(t))},each:R,forEach:R,map:A,collect:A,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Ye(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,I(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,d=(e=T(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&n<o&&(o=n);else i=C(i,t),R(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(A(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:It,partition:Et,toArray:yt,size:function(e){return null==e?0:(T(e)?e:y(e)).length},pick:xt,omit:_t,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:At,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:Rt,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(d.call(e,i,i+=t));return n},mixin:Pt,"default":b}),Dt=F.toPath;return F.mixin({toPath:function(e){return F.isString(e)?e.split("."):Dt(e)}}),F._=F}());function ge(e){return!(null==e)}function me(e){return C.isFunction(e)||C.isRegExp(e)?e:C.isArray(e)?C.map(e,me):C.isObject(e)?C.reduce(e,function(e,t,n){return e[n]=me(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,d=C.pluck,u="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,u]),e("allowedOriginServers"),e("allowMixedApiKeyFrames",[u,c],!0),e("annotateUrl",[u]),e("apiKey",[c,u]),e("assetHost",[u,c]),e("autoFrameInstall",[u,c],!1),e("blockAgentMetadata",[c],!1),e("contentHost",[u,c]),e("cookieDomain",[u,c]),e("dataHost",[u,c]),e("disableAutoInitialize"),e("disableCookies",[u,c]),e("disablePendo",[u,c],!1),e("disablePersistence",[u,c]),e("enableSignedMetadata",[c],!1),e("frameIdentitySync",[u,c],!1),e("frameIdentityTopDownOnly",[u,c],!0),e("forceAnonymous",[u,c],!1),e("identityStorageLifetime",[u,c]),e("identityStorageSuffix",[u,c]),e("ignoreHashRouting",[u,c]),e("initializeImmediately",[u,c],!1),e("installType"),e("localStorageOnly",[u,c]),e("location.pushState",[u,c],!0),e("maxCookieTTLDays",[u,c],Infinity),e("observeShadowRoots",[u,c],!1),e("pendoCore",[c],!0),e("pendoGlobalKey",[c]),e("preferBroadcastChannel",[u,c],!1),e("preferMutationObserver",[u,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[u,c],!1),e("promotedAgentMetadataConfigurations",[c]),e("queryStringWhitelist",[u]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[u]),e("selfHosted"),e("selfHostedAgentUrl",[u,c]),e("sendEventsWithPostOnly",[u,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[u,c],[]),e("analytics.excludeEvents",[u,c],[]),e("analytics.localStorageUnload",[u,c],!1),e("enableDebugEvents",[u,c]),e("freeNPSData"),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[u,c],!0),e("excludeAllText",[c,u],!1,!0),e("excludeNonGuideAnalytics",[u,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptElementRemoval",[u,c],!1),e("interceptPreventDefault",[u,c],!0),e("interceptStopPropagation",[u,c],!0),e("syntheticClicks.elementRemoval",[u,c],!1),e("syntheticClicks.targetChanged",[u,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[u,c]),e("cacheGuides",[u,c],!1),e("cacheGuidesTimeout",[c],6e5),e("delayGuides",[u]),e("disableDesigner",[c,u],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[u,c],!1),e("disableGuidePseudoStyles",[u,c],!1),e("disableGuides",[u]),e("disablePrefetch",[u,c]),e("enableDesignerKeyboardShortcut",[u]),e("enableGuideTimeout",[c,u],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,u],1e4),e("guideTimeout",[u]),e("guideValidation",[u,c],!1),e("guides.attachPoint",[u]),e("guides.delay",[u]),e("guides.disabled",[u]),e("guides.ejectOnTimeout",[u,c],!1),e("guides.globalScripts",[u,c],[]),e("guides.timeout",[u]),e("guides.tooltip.arrowSize",[u]),e("inlineStyleNonce",[u]),e("leaderKey",[u,c],[]),e("preventCodeInjection",[c,u,l],!1),e("previewModeAssetPath"),e("useAssetHostForDesigner",[u,c],!1),e("storage.allowKeys",[u],"*"),e("disableFeedback",[u]),e("disableFeedbackAutoInit"),e("feedbackSettings",[c],{}),e("pendoFeedback",[c],!1),e("crossAppGuideStorageSuffix",[u,c]),e("enableCrossOriginIsolation",[u,c],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("agentDebuggerPluginLoader"),e("allowPartnerAnalyticsForwarding",[u],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerAgentPluginsLoader",[c,u]),e("trainingPartner"),e("errorClickLogging",[c],!1),e("forceParentDesigner",[u]),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(),ge(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",[u,c,l]),o(n(t,C.partial(v,e)),function(e){return ge(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&&ge(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(d(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[u]=function(){return{lookup:fe||window.pendo_options,name:u}},f[c]=function(){return{lookup:X,name:c}},f[l]=function(){return{lookup:I,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,[u]).value:me(fe)},getHostedConfig(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig(e){fe=e},options:()=>d(h,"name"),sources:{SNIPPET_SRC:u,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()}}}(),ve="prod",ye="extension",be="native";function we(){return f.get("installType")||be}function Se(){return we()===ye}function Ie(e){var t;return e===ve?"pendo-io-static":"prod-jp"===e?"pendo-jp-prod-static":"pendo-"+((t=/^prod-(.+)$/.exec(e))&&1<t.length?t[1]:e)+"-static"}var Ee,Ce=function(e,t){return e=e||10,(t=!isNaN(Re)&&(!t||Re<t))&&Ee<e};function xe(e){return parseInt(e,10)}var _e=function(e){return C.isString(e)?e.toLowerCase():e};function Te(){return(window.navigator||{}).userAgent}e=Te(),t=xe((/msie (\d+)/.exec(_e(e))||[])[1]),Ee=t=isNaN(t)?xe((/trident\/.*; rv:(\d+)/.exec(_e(e))||[])[1]):t;var ke,Re=function(e,t){e=xe((/trident\/(\d+)/.exec(_e(e))||[])[1]);return e=isNaN(e)&&7==t?3:e}(Te(),Ee),Ae={},Oe=xe((/android (\d+)/.exec(_e(Te()))||[])[1]),Ne=/Boxee/i.test(Te()),Me=window.document||{},Le=Me.documentMode,Fe=/^(Moz|webkit|O|ms)(?=[A-Z])/,Pe=Me.body&&Me.body.style,q=!1,e=!1;if(Pe){for(var De in Pe)if(De=Fe.exec(De)){ke=(ke=De[0]).substr(0,1).toUpperCase()+ke.substr(1);break}ke=ke||"WebkitOpacity"in Pe&&"webkit",q=!!("transition"in Pe||ke+"Transition"in Pe),e=!!("animation"in Pe||ke+"Animation"in Pe),!Oe||q&&e||(q=C.isString(Me.body.style.webkitTransition),e=C.isString(Me.body.style.webkitAnimation))}var t=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id;var Ue={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||!!(Oe<4)||Ne||Se())}),supportsHashChange:function(){return!(!("onhashchange"in window)||!(!Le||7<Le)||Se())},hasEvent(e){var t;return("input"!=e||9!=Ee)&&(C.isUndefined(Ae[e])&&(t=Me.createElement("div"),Ae[e]="on"+e in t),Ae[e])},vendorPrefix:ke,transitions:q,animations:e,android:Oe,msie:Ee,msieDocumentMode:Le,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(Te())}),isChromeExtension:t},Ge=function(){return!isNaN(Ee)&&11!=Ee&&"CSS1Compat"!==document.compatMode},Be=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,Ee<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+I.TOOLTIP_ARROW_SIZE),e.arrow.top=i-I.TOOLTIP_ARROW_SIZE,10==Ee?e.arrow.top--:Ee<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=10+I.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*I.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-I.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-I.TOOLTIP_ARROW_SIZE),e.arrow.left=r-I.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-I.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e},ze="",He="",je="",We="",Pe="",qe="2.285.3_",q="2.285.3",Je="xhr",Ve=function(){return Ge()?qe+"+quirksmode":qe};function Ke(){return-1!==ze.indexOf("prod")}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 Ye=(Ye=String.prototype.trim)||function(){return this.replace($e,"")},e={exports:{}};!function(){var X=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===X?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&&d(this)}function d(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?(u[255&e]<<24|u[e>>>8&255]<<16|u[e>>>16&255]<<8|u[e>>>24&255])>>32-t:u[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++]=u[s],s=0,o===r.length)&&(r=d(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]=u[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 u=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,P,n=this.input;switch(this.d){case 0:for(t=0,P=n.length;t<P;){var D,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===P,o=X,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 d,u=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(u.b(1,1,Q),u.b(1,2,Q),re(this,n)),l=0,G=c.length;l<G;l++)if(d=c[l],te.prototype.b.apply(u,ie[d]),256<d)u.b(c[++l],c[++l],Q),u.b(c[++l],5),u.b(c[++l],c[++l],Q);else if(256===d)break;this.a=u.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,z,I=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),E=ne;for(I.b(1,1,Q),I.b(E,2,Q),p=re(this,n),E=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,W=h,q=f,R=new(ee?Uint32Array:Array)(W+q),A=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=C=0;N<W;N++)R[C++]=m[N];for(N=0;N<q;N++)R[C++]=v[N];if(!ee)for(N=0,_=O.length;N<_;++N)O[N]=0;for(N=T=0,_=R.length;N<_;N+=C){for(C=1;N+C<_&&R[N+C]===R[N];++C);if(x=C,0===R[N])if(x<3)for(;0<x--;)O[A[T++]=0]++;else for(;0<x;)(k=x-3<(k=x<138?x:138)&&k<x?x-3:k)<=10?(A[T++]=17,A[T++]=k-3,O[17]++):(A[T++]=18,A[T++]=k-11,O[18]++),x-=k;else if(A[T++]=R[N],O[R[N]]++,--x<3)for(;0<x--;)A[T++]=R[N],O[R[N]]++;else for(;0<x;)x-3<(k=x<6?x:6)&&k<x&&(k=x-3),A[T++]=16,A[T++]=k-3,O[16]++,x-=k}for(e=ee?A.subarray(0,T):A.slice(0,T),y=oe(O,7),S=0;S<19;S++)j[S]=y[H[S]];for(g=19;4<g&&0===j[g-1];g--);for(B=ae(y),I.b(h-257,5,Q),I.b(f-1,5,Q),I.b(g-4,4,Q),S=0;S<g;S++)I.b(j[S],3,Q);for(S=0,z=e.length;S<z;S++)if(b=e[S],I.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}I.b(e[S],w,Q)}for(var M,J,E=[E,m],L=[L,v],V=E[0],K=E[1],$=L[0],Z=L[1],F=0,Y=p.length;F<Y;++F)if(M=p[F],I.b(V[M],K[M],Q),256<M)I.b(p[++F],p[++F],Q),J=p[++F],I.b($[J],Z[J],Q),I.b(p[++F],p[++F],Q);else if(256===M)break;this.a=I.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,d=w[e.length];switch(a[s++]=65535&d,a[s++]=d>>16&255,a[s++]=d>>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(d=n,a[s++]=d[0],a[+s]=d[1],a[5]=d[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,d,u,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]===X&&(p[s]=[]),d=p[s],!(0<g--)){for(;0<d.length&&32768<i-d[0];)d.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<d.length?(u=function(e,t,n){var i,r,o,a,s,d,u=0,c=e.length;a=0,d=n.length;e:for(;a<d;a++){if(i=n[d-a-1],(o=3)<u){for(s=u;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=u}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(u<o&&(r=i,u=o),258===o)break}return new b(u,t-r)}(t,i,d),c?c.length<u.length?(l=t[i-1],h[f++]=l,++m[l],n(u,0)):n(c,-1):u.length<y?c=u:n(u,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}d.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,d=new c(572),u=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)u[o]=0;for(o=0;o<s;++o)0<e[o]&&d.push(o,e[o]);if(n=Array(d.length/2),i=new(ee?Uint32Array:Array)(d.length/2),1===n.length)u[d.pop().index]=1;else{for(o=0,a=d.length/2;o<a;++o)n[o]=d.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,d=new(ee?Uint16Array:Array)(t),u=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(d[t-1]=n,r=0;r<t;++r)f<g?u[r]=0:(u[r]=1,f-=g),f<<=1,d[t-2-r]=(d[t-1-r]/2|0)+n;for(d[0]=u[0],l[0]=Array(d[0]),p[0]=Array(d[0]),r=1;r<t;++r)d[r]>2*d[r-1]+u[r]&&(d[r]=2*d[r-1]+u[r]),l[r]=Array(d[r]),p[r]=Array(d[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<d[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===u[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<d[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===u[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)u[n[o].index]=r[o]}return u}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,d=e.length;s<d;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,d=16;s<=d;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,d=e.length;s<d;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,I=(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,d=a.length;s<d;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var u,c=1,l=0,p=o.length,h=0;0<p;){for(p-=u=1024<p?1024:p;l+=c+=o[h++],--u;);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(I);else for(m in g=[],v=0,I)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),I[m])}.call(e.exports);var Xe={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 Xe.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!(!ge(e)||!ge(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function v(){return(new Date).getTime()}function dt(){return"undefined"!=typeof $A&&C.isFunction($A.get)&&C.isString($A.get("$Browser.formFactor"))}function ut(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(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 bt extends class{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)})}}{write(e,t,n){this.dispatchEvent(new yt(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 yt(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 x=new bt;function wt(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const St=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 Et(n){C.forEach(C.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function Ct(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(Et,n)}:t}catch(i){return t}}var xt,_t=Ct(function(){return window.localStorage}),Tt=Ct(function(){return window.sessionStorage}),kt={},Rt=!0,At=function(){return f.get("localStorageOnly")},Ot=function(){return!!f.get("disableCookies")};function Nt(e){Rt=e}var Mt=function(e){var t=Ot()||At()?kt[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?mt(e[2]):null},Lt=function(e,t,n,i){var r,o;!Rt||f.get("preventCookieRefresh")&&Mt(e)===t||(o=Ht(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",xt&&(o+=";domain="+xt),Ot()||At()?kt[e]=o:document.cookie=o)};function Ft(e){xt?Lt(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var Pt=function(e,t){return`_pendo_${e}.`+(t||I.apiKey)},Dt=function(e,t){return Mt(Pt(e,t))};const Bt=864e5,zt=100*Bt,Ht=(e=zt)=>{var t=f.get("maxCookieTTLDays"),t=t<Infinity?t*Bt:Infinity;return Math.min(e,t)};var jt=function(e,t,n,i,r){n=n||zt,Lt(Pt(e,r),t,n,i)};class Wt{constructor(){this.keys={}}addLocal(e){this._add(e,"local")}addSession(e){this._add(e,"session")}hasLocal(e){return this._has(e,"local")}hasSession(e){return this._has(e,"session")}_add(e,t){this.keys[e]||(this.keys[e]=t)}_has(e,t){return this.keys[e]===t}}var qt,Jt,Vt,Kt,y,h=function(){const o=new Wt;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=St())||n[t])return o[r](e)||x.warn(`storage key ${e} is not registered`),i.apply(this,arguments);x.debug(`writing storage key ${e} is not allowed`)}}function d(){return!Ot()&&!xt&&u("localStorage")}var u=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 c(e){e.cache&&(e.cache={})}function r(e,t,n){t=t?e:Pt(e,n);if(d())return localStorage.removeItem(t);Ft(t)}const t=C.extend({},Tt),n=(t.setItem=e(t.setItem,"hasSession"),C.extend({},_t));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){var i;return d()?(i=t?e:Pt(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(i)))&&r(e,t,n),i):t?Mt(e):Dt(e,n)},write:e(function(e,t,n,i,r,o){if(c(u),d())try{var a=i?e:Pt(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+Ht(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void c(u)}catch(s){}if(!i)return jt(e,t,n,r,o);Lt(e,t,n,r)},"hasLocal"),clear:r,registry:o,getLocal:()=>n,getSession:()=>t}}(),$t=(window.Promise,e=function(){var t=Ut;function u(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 d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(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(!u(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 d(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){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(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(!u(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=(Jt=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},Vt=function(n,i){var r=qt.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===Kt?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},Kt=1,(qt={}).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(Kt,e)},a=function(e){t(2,e)},s=function(e,t){e=Vt(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},d=function(e){var t=Jt();try{e(t(u),t(a))}catch(n){t(a)(n)}},u=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?d(t):o(e)},e=Jt();return{resolve:e(u),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},qt);function Zt(e){var n,i=y.defer(),r=C.isArray(e)?[]:{},o=C.size(e);return o?(n=!1,C.each(e,function(e,t){y.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):y.resolve(e)}!Se()&&Ue.isMinimumIEVersion(11)?y={all:function(e){return C.isArray(e)?$t.all.apply($t,arguments):Zt(e)},reject:function(){return $t.reject.apply($t,arguments)},resolve:function(){return $t.resolve.apply($t,arguments)},defer:function(){var n={};return n.promise=new $t(function(e,t){n.resolve=e,n.reject=t}),n}}:((y=t).all=Zt,y.reject=function(e){var t=y.defer();return t.reject(e),t.promise},y.resolve=function(e){var t=y.defer();return t.resolve(e),t.promise});const Yt=h.getSession(),Xt="pendo_tabId",Qt="pendo_parentTabId";en=window,e=C.partial,tn=C.extend,nn=C.omit,rn={data:{},getItem(e){return rn.data[e]},setItem(e,t){rn.data[e]=t},removeItem(e){rn.data[e]=null,delete rn.data[e]}},on=e(cn,Xt,ln),an=e(cn,"pendo_frameId",rn);var en,tn,nn,rn,on,an,sn={addTracerIds(e){return nn(tn(e,{parentTabId:dn(Qt,ln),tabId:on(),frameId:an()}),function(e){return e===undefined})},setParentTabId:function(e){un(Qt,e,ln)},newTabId:function(){var e=at(16);return un(Xt,e,ln),e},getTabId:on,getFrameId:an,tabIdChanged:function(t){var e;if(Ue.addEventListener)return en.addEventListener("storage",e=function(e){e.key===Xt&&(rn.removeItem(Xt),t())}),function(){en.removeEventListener("storage",e)}}};function dn(e,t){return(C.isFunction(t)?t():t).getItem(e)}function un(e,t,n){(C.isFunction(n)?n():n).setItem(e,t)}function cn(e,t){var n=dn(e,t);return n||un(e,n=at(16),t),n}function ln(){return n=rn,i=Yt,{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 pn(){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(I,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return C.map(e,function(e){if(!t.cancel)return e.apply(I,[t])})},this.triggerAsync=function(){var e=C.map(this.trigger.apply(this,arguments),function(e){return!1===e?y.reject():e});return y.all(e)},this}pn.clear=function(t){t&&C.each(C.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};_i={DEBUG:t="debug",FRAMES:e="frames",LIFECYCLE:i="lifecycle",RUNTIME:Mi="runtime"},hn=[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",[Mi]),new n("beforeAdvance",[Mi]),new n("beforePrevious",[Mi]),new n("beforeSnooze",[Mi]),new n("beforeDismiss",[Mi]),new n("beforeUnmount",[Mi]),new n("unmounted",[Mi]),new n("beforeUpdate",[Mi]),new n("updated",[Mi]),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("childFrameJoined",[e]),new n("tabIdChanged:self",[t,i])],fn=pn.call({}),gn={debug(){return sn.addTracerIds(vn.apply(null,arguments))},lifecycle:vn,runtime:vn,frames:vn},mn=fn.trigger,fn.trigger=yn,C.each(C.values(_i),function(e){fn[e]={on:C.partial(fn.on,e),one:C.partial(fn.one,e),off:C.partial(fn.off,e)}}),C.each(hn,function(e){e=e.name,fn[e]={on:C.partial(fn.on,e),one:C.partial(fn.one,e),off:C.partial(fn.off,e),trigger:C.partial(yn,e)}});var hn,fn,gn,mn,m=fn;function n(e,t){this.name=e,this.groups=t||[]}function vn(e,t){e={type:e,ts:v()};return ge(t)&&C.isObject(t)&&(e.data=t),e}function yn(t){var e=C.findWhere(hn,{name:t}),n=C.toArray(arguments).slice(1),i={};return C.each(e.groups,function(e){i.cancel||(i=gn[e](t,n),mn.apply(fn,[e].concat(i)))}),i.cancel||(i=vn(t,n),mn.apply(fn,[t].concat(i))),i}function bn(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=u(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 d(e,t){return(e=t?e.concat([t]):e).join("/")}function u(e,t,n){var i=e;return C.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),C.extend(i,me(t.state||{}))}function c(e,n,i){var r={};return C.each(e.mutations,function(e,t){r[d(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:d(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:d(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=d(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[d(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[d(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var g=bn(),wn=(g.subscribe(function(e,t){}),"_PENDO_T_"),Sn=11;const In="visitorId",En="oldVisitorId",Cn="accountId";var xn=function(e=""){return e+at(Sn)};var _n=function(e){return ge(e)&&""!==e&&e!==Nn&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===Ye.call(e).length)},Tn=function(e){return!(!e||"number"==typeof e)&&e.substring(0,wn.length)===wn},kn=function(){return!f.get("disablePersistence")},Rn=function(e){e=e||[In,Cn,En];const t=f.get("identityStorageSuffix")||I.apiKey;C.each(e,function(e){Ft(Pt(e,t)),h.clear(e,!1,t)})},An="VISITOR-UNIQUE-ID",On=function(e){return An===e},Nn="::",Mn=function(e){return new RegExp(Nn).test(e)};function Ln(e){return e.old_visitor_id!==e.visitor_id}var Fn,Pn=function(e,t){var n,i={old_visitor_id:b(),old_account_id:Bn()};_n(e)?(_n(n=e)?Un(""+n):x.info("Invalid visitor id "+n),n=t,C.isUndefined(n)?x.info("No account id provided"):_n(n)?(I.accountId=""+n,kn()&&zn(Cn,I.accountId)):(delete I.accountId,delete(t=f.getLocalConfig()).account,f.setLocalConfig(t),g.commit("metadata/clearAccount"),kn()&&h.clear(Cn),x.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=b({generate:!0}),i.account_id=Bn(),!Ln(t=i)&&t.old_account_id===t.account_id||(Ln(i)&&(n=i.old_visitor_id)&&(Fn=n,zn(En,Fn)),m.identify.trigger(i))):x.info("Invalid visitor id "+e)};function Dn(){return xn(wn)}function Un(e){I.visitorId!==e&&(kn()&&zn(In,e),I.visitorId=e)}function b(e={}){var t=function(){if(_n(I.visitorId))return I.visitorId;var e=f.get("forceAnonymous");if(kn()){var t=Hn(In);if(_n(t)&&(!e||Tn(t)))return t}return undefined}();return Un(t=!t&&e.generate?Dn():t),t}function Gn(){return b()||Dn()}var Bn=function(){var e=f.get("forceAnonymous");return _n(I.accountId)||!kn()||e||(e=Hn(Cn),I.accountId=e),I.accountId};function zn(e,t){var n=f.get("identityStorageLifetime")||zt,i=f.get("identityStorageSuffix")||I.apiKey;h.write(e,t,n,!1,!0,i)}function Hn(e){var t=f.get("identityStorageSuffix"),n=t||I.apiKey,n=h.read(e,!1,n)||h.read(e,!1,I.apiKey);return t&&h.clear(e,!1,I.apiKey),n}function jn(){var e={old_visitor_id:b({generate:!1}),old_account_id:Bn(),wasCleared:!0};Rn(),delete I.visitorId,delete I.accountId,b({generate:!0}),C.extend(e,{visitor_id:b(),account_id:Bn()}),m.identify.trigger(e)}function Wn(e){e=e.data[0];return C.get(e,"wasCleared")}var qn=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||x.critical(e)}}};Mi=function(n){return function Jn(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 Jn="function"==typeof(e=window.URL)&&/native/.test(e)?e:Mi(document);function Vn(e){if((t=e)&&C.isFunction(t.composedPath))try{return e.composedPath()}catch(n){return e.path}var t;return null}function Kn(e){return e.shadowRoot}function $n(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function Zn(e,t){return $n(e,t)?e.host:e.parentNode}var Yn={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:Vn,getShadowRoot:Kn,isElementShadowRoot:$n,getParent:Zn,isShadowSelector:Xn,wrapSizzle(i){i.intercept(function(a,e,n,i,r){var t,o;return Xn(e)?C.isFunction(document.documentElement.attachShadow)?(o=a,t=(t=e).replace(Yn.PSEUDO_REGEX,Yn.PSEUDO_SAFE),t=C.map(o.tokenize(t),Qn),C.reduce(t,function(e,t){return e.concat(s(t,n,i,r))},[])):a(e.replace(Yn.PSEUDO_REGEX,""),n,i,r):a(e,n,i,r);function s(e,t,n,i){var r,o;return Xn(e)?(o=s((r={baseCss:(o=(o=e).split(Yn.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(Yn.PSEUDO_ELEMENT)}).baseCss,t),C.reduce(o,function(e,t){return Yn.getShadowRoot(t)?e.concat(s(r.shadowCss,Yn.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!Yn.isElementShadowRoot(t)&&(Xn(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function Xn(e){return!!e&&-1<e.indexOf(Yn.PSEUDO_ELEMENT)}function Qn(e){return C.reduce(e,function(e,t){return t.value===Yn.PSEUDO_SAFE?e+Yn.PSEUDO_ELEMENT:e+t.value},"")}var ei,w,S,ti,ni,ii,ri,oi,ai,si,di,ui,E,ci,li,pi,hi,fi,gi,t={exports:{}},i=t,mi=window,_="sizzle"+ +new Date,vi=mi.document,yi=0,bi=0,wi=tr(),Si=tr(),Ii=tr(),Ei=tr(),Ci=function(e,t){return e===t&&(di=!0),0},xi={}.hasOwnProperty,_i=[],Ti=_i.pop,ki=_i.push,Ri=_i.push,Ai=_i.slice,Oi=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},Ni="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])+",Mi="\\["+r+"*("+e+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+e+"))|)"+r+"*\\]",Li=":("+e+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Mi+")*)|.*)\\)|)",Fi=new RegExp(r+"+","g"),Pi=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),Di=new RegExp("^"+r+"*,"+r+"*"),Ui=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),Gi=new RegExp(r+"|>"),Bi=new RegExp(Li),zi=new RegExp("^"+e+"$"),Hi={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+Mi),PSEUDO:new RegExp("^"+Li),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("^(?:"+Ni+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},ji=/HTML$/i,Wi=/^(?:input|select|textarea|button)$/i,qi=/^h\d$/i,Ji=/^[^{]+\{\s*\[native \w/,Vi=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ki=/[+~]/,$i=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),Zi=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))},Yi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Xi=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Qi=function(){ui()},er=lr(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Ri.apply(_i=Ai.call(vi.childNodes),vi.childNodes),_i[vi.childNodes.length].nodeType}catch(D1){Ri={apply:_i.length?function(e,t){ki.apply(e,Ai.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,d,u,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&&(ui(t),t=t||E,li)){if(11!==l&&(s=Vi.exec(e)))if(r=s[1]){if(9===l){if(!(u=t.getElementById(r)))return n;if(u.id===r)return n.push(u),n}else if(c&&(u=c.getElementById(r))&&gi(t,u)&&u.id===r)return n.push(u),n}else{if(s[2])return Ri.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&w.getElementsByClassName&&t.getElementsByClassName)return Ri.apply(n,t.getElementsByClassName(r)),n}if(w.qsa&&!Ei[e+" "]&&(!pi||!pi.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(u=e,c=t,1===l&&(Gi.test(e)||Ui.test(e))){for((c=Ki.test(e)&&dr(t.parentNode)||t)===t&&w.scope||((a=t.getAttribute("id"))?a=a.replace(Yi,Xi):t.setAttribute("id",a=_)),o=(d=ii(e)).length;o--;)d[o]=(a?"#"+a:":scope")+" "+cr(d[o]);u=d.join(",")}try{return Ri.apply(n,c.querySelectorAll(u)),n}catch(p){Ei(e,!0)}finally{a===_&&t.removeAttribute("id")}}}return oi(e.replace(Pi,"$1"),t,n,i)}function tr(){var n=[];function i(e,t){return n.push(e+" ")>S.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function nr(e){return e[_]=!0,e}function ir(e){var t=E.createElement("fieldset");try{return!!e(t)}catch(D1){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function rr(e,t){for(var n=e.split("|"),i=n.length;i--;)S.attrHandle[n[i]]=t}function or(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 ar(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&&er(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function sr(a){return nr(function(o){return o=+o,nr(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 dr(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ei in w=T.support={},ni=T.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!ji.test(t||e&&e.nodeName||"HTML")},ui=T.setDocument=function(e){var e=e?e.ownerDocument||e:vi;return e!=E&&9===e.nodeType&&e.documentElement&&(ci=(E=e).documentElement,li=!ni(E),vi!=E&&(e=E.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",Qi,!1):e.attachEvent&&e.attachEvent("onunload",Qi)),w.scope=ir(function(e){return ci.appendChild(e).appendChild(E.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),w.attributes=ir(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=ir(function(e){return e.appendChild(E.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=!!E.getElementsByClassName,w.getById=ir(function(e){return ci.appendChild(e).id=_,!E.getElementsByName||!E.getElementsByName(_).length}),w.getById?(S.filter.ID=function(e){var t=e.replace($i,Zi);return function(e){return e.getAttribute("id")===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&li)return(e=t.getElementById(e))?[e]:[]}):(S.filter.ID=function(e){var t=e.replace($i,Zi);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&&li){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&&li?t.getElementsByClassName(e):w.qsa&&li?t.querySelectorAll("."+e):void 0},hi=[],pi=[],(w.qsa=!!E.querySelectorAll)&&(ir(function(e){var t;ci.appendChild(e).innerHTML=Z().createHTML("<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&pi.push("[*^$]="+r+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||pi.push("\\["+r+"*(?:value|"+Ni+")"),e.querySelectorAll("[id~="+_+"-]").length||pi.push("~="),(t=E.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||pi.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||pi.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||pi.push(".#.+[+~]"),e.querySelectorAll("\\\f"),pi.push("[\\r\\n\\f]")}),ir(function(e){e.innerHTML=Z().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=E.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&pi.push("name"+r+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&pi.push(":enabled",":disabled"),ci.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&pi.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),pi.push(",.*:")})),(w.matchesSelector=Ji.test(fi=ci.matches||ci.webkitMatchesSelector||ci.mozMatchesSelector||ci.oMatchesSelector||ci.msMatchesSelector))&&ir(function(e){w.disconnectedMatch=fi.call(e,"*"),fi.call(e,"[s!='']:x"),hi.push("!=",Li)}),pi=pi.length&&new RegExp(pi.join("|")),hi=hi.length&&new RegExp(hi.join("|")),e=!!ci.compareDocumentPosition,gi=e||ci.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},Ci=e?function(e,t){var n;return e===t?(di=!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==E||e.ownerDocument==vi&&gi(vi,e)?-1:t==E||t.ownerDocument==vi&&gi(vi,t)?1:si?Oi(si,e)-Oi(si,t):0:4&n?-1:1)}:function(e,t){if(e===t)return di=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==E?-1:t==E?1:r?-1:o?1:si?Oi(si,e)-Oi(si,t):0;if(r===o)return or(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?or(a[i],s[i]):a[i]==vi?-1:s[i]==vi?1:0}),E},T.matches=function(e,t){return T(e,null,null,t)},T.matchesSelector=function(e,t){if(ui(e),w.matchesSelector&&li&&!Ei[t+" "]&&(!hi||!hi.test(t))&&(!pi||!pi.test(t)))try{var n=fi.call(e,t);if(n||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(D1){Ei(t,!0)}return 0<T(t,E,null,[e]).length},T.contains=function(e,t){return(e.ownerDocument||e)!=E&&ui(e),gi(e,t)},T.attr=function(e,t){(e.ownerDocument||e)!=E&&ui(e);var n=S.attrHandle[t.toLowerCase()],n=n&&xi.call(S.attrHandle,t.toLowerCase())?n(e,t,!li):undefined;return n!==undefined?n:w.attributes||!li?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},T.escape=function(e){return(e+"").replace(Yi,Xi)},T.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,n=[],i=0,r=0;if(di=!w.detectDuplicates,si=!w.sortStable&&e.slice(0),e.sort(Ci),di){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return si=null,e},ti=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+=ti(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=ti(t);return n},(S=T.selectors={cacheLength:50,createPseudo:nr,match:Hi,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($i,Zi),e[3]=(e[3]||e[4]||e[5]||"").replace($i,Zi),"~="===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 Hi.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Bi.test(n)&&(t=(t=ii(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($i,Zi).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=wi[e+" "];return t||(t=new RegExp("(^|"+r+")"+e+"("+r+"|$)"))&&wi(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(Fi," ")+" ").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,d,u=v!=y?"nextSibling":"previousSibling",c=e.parentNode,l=b&&e.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(v){for(;u;){for(a=e;a=a[u];)if(b?a.nodeName.toLowerCase()===l:1===a.nodeType)return!1;d=u="only"===f&&!d&&"nextSibling"}return!0}if(d=[y?c.firstChild:c.lastChild],y&&p){for(h=(s=(i=(r=(o=(a=c)[_]||(a[_]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===yi&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[u]||(h=s=0,d.pop());)if(1===a.nodeType&&++h&&a===e){r[f]=[yi,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[_]||(a[_]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===yi&&i[1]:h))for(;(a=++s&&a&&a[u]||(h=s=0,d.pop()))&&((b?a.nodeName.toLowerCase()!==l:1!==a.nodeType)||!++h||(p&&((r=(o=a[_]||(a[_]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[yi,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[_]?a(o):1<a.length?(t=[e,e,"",o],S.setFilters.hasOwnProperty(e.toLowerCase())?nr(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=Oi(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:nr(function(e){var i=[],r=[],s=ri(e.replace(Pi,"$1"));return s[_]?nr(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:nr(function(t){return function(e){return 0<T(t,e).length}}),contains:nr(function(t){return t=t.replace($i,Zi),function(e){return-1<(e.textContent||ti(e)).indexOf(t)}}),lang:nr(function(n){return zi.test(n||"")||T.error("unsupported lang: "+n),n=n.replace($i,Zi).toLowerCase(),function(e){var t;do{if(t=li?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=mi.location&&mi.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===ci},focus:function(e){return e===E.activeElement&&(!E.hasFocus||E.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ar(!1),disabled:ar(!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 qi.test(e.nodeName)},input:function(e){return Wi.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:sr(function(){return[0]}),last:sr(function(e,t){return[t-1]}),eq:sr(function(e,t,n){return[n<0?n+t:n]}),even:sr(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:sr(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:sr(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:sr(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[ei]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ei);for(ei in{submit:!0,reset:!0})S.pseudos[ei]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ei);function ur(){}function cr(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function lr(a,e,t){var s=e.dir,d=e.next,u=d||s,c=t&&"parentNode"===u,l=bi++;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=[yi,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[_]||(e[_]={}))[e.uniqueID]||(r[e.uniqueID]={}),d&&d===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[u])&&i[0]===yi&&i[1]===l)return o[2]=i[2];if((r[u]=o)[2]=a(e,t,n))return!0}return!1}}function pr(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 hr(e,t,n,i,r){for(var o,a=[],s=0,d=e.length,u=null!=t;s<d;s++)!(o=e[s])||n&&!n(o,i,r)||(a.push(o),u&&t.push(s));return a}function fr(h,f,g,m,v,e){return m&&!m[_]&&(m=fr(m)),v&&!v[_]&&(v=fr(v,e)),nr(function(e,t,n,i){var r,o,a,s=[],d=[],u=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:hr(c,s,h,n,i),p=g?v||(e?h:u||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=hr(p,d),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[d[o]]=!(l[d[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?Oi(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=hr(p===t?p.splice(u,p.length):p),v?v(null,t,p,i):Ri.apply(t,p)})}ur.prototype=S.filters=S.pseudos,S.setFilters=new ur,ii=T.tokenize=function(e,t){var n,i,r,o,a,s,d,u=Si[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],d=S.preFilter;a;){for(o in n&&!(i=Di.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Ui.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Pi," ")}),a=a.slice(n.length)),S.filter)S.filter.hasOwnProperty(o)&&(i=Hi[o].exec(a))&&(!d[o]||(i=d[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):Si(e,s).slice(0)},ri=T.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=Ii[e+" "];if(!a){for(n=(t=t||ii(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,d=lr(function(e){return e===i},a,!0),u=lr(function(e){return-1<Oi(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==ai)||((i=t).nodeType?d:u)(e,t,n),i=null,e}];s<r;s++)if(t=S.relative[e[s].type])c=[lr(pr(c),t)];else{if((t=S.filter[e[s].type].apply(null,e[s].matches))[_]){for(n=++s;n<r&&!S.relative[e[n].type];n++);return fr(1<s&&pr(c),1<s&&cr(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Pi,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&cr(e))}c.push(t)}return pr(c)}(t[n]))[_]?r:o).push(a);(a=Ii(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,d=0,u="0",c=e&&[],l=[],p=ai,h=e||b&&S.find.TAG("*",r),f=yi+=null==p?1:Math.random()||.1,g=h.length;for(r&&(ai=t==E||t||r);u!==g&&null!=(o=h[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument==E||(ui(o),n=!li);s=m[a++];)if(s(o,t||E,n)){i.push(o);break}r&&(yi=f)}y&&((o=!s&&o)&&d--,e)&&c.push(o)}if(d+=u,y&&u!==d){for(a=0;s=v[a++];)s(c,l,t,n);if(e){if(0<d)for(;u--;)c[u]||l[u]||(l[u]=Ti.call(i));l=hr(l)}Ri.apply(i,l),r&&!e&&0<l.length&&1<d+v.length&&T.uniqueSort(i)}return r&&(yi=f,ai=p),c},y?nr(i):i))).selector=e}return a},oi=T.select=function(e,t,n,i){var r,o,a,s,d,u="function"==typeof e&&e,c=!i&&ii(e=u.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&&li&&S.relative[o[1].type]){if(!(t=(S.find.ID(a.matches[0].replace($i,Zi),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Hi.needsContext.test(e)?0:o.length;r--&&(a=o[r],!S.relative[s=a.type]);)if((d=S.find[s])&&(i=d(a.matches[0].replace($i,Zi),Ki.test(o[0].type)&&dr(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&cr(o))break;return Ri.apply(n,i),n}}return(u||ri(e,c))(i,t,!li,n,!t||Ki.test(e)&&dr(t.parentNode)||t),n},w.sortStable=_.split("").sort(Ci).join("")===_,w.detectDuplicates=!!di,ui(),w.sortDetached=ir(function(e){return 1&e.compareDocumentPosition(E.createElement("fieldset"))}),ir(function(e){return e.innerHTML=Z().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||rr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&ir(function(e){return e.innerHTML=Z().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||rr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ir(function(e){return null==e.getAttribute("disabled")})||rr(Ni,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var gr=mi.Sizzle;T.noConflict=function(){return mi.Sizzle===T&&(mi.Sizzle=gr),T},i.exports?i.exports=T:mi.Sizzle=T;mr=p(t.exports),(vr=C.extend(function(){return vr.Sizzle.apply(this,arguments)},mr)).reset=function(){vr.Sizzle=mr,vr.matchesSelector=mr.matchesSelector,vr.matches=mr.matches},vr.intercept=function(e,t="Sizzle"){vr[t]=C.wrap(vr[t],e)},vr.reset();var mr,vr,s=vr;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=s(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 yr(){this.ownerKey="_pendo_"+at(8)}C.extend(yr.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 br=new yr,wr=1;function Sr(e){return C.isNumber(e.eventPhase)&&e.eventPhase===wr}function Ir(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?ut("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{Er(e,t,n,i)}):C.noop}function Er(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?ut("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var Cr=function(e){var t=Yn.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},xr={add(t,e){var n=br.get(t),i=(n.handle||(n.handle=function(e){xr.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||Ir(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=(br.get(r,"captureEvents")||{})[o.type]||[],t=(br.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=br.get(o)).ignore&&(a.handled=a.handled||{},C.each(t.slice(),function(e){var t=!!e.capture===Sr(o),n=(n=o,C.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(Cr(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!ge(e.selector)||0<k(Cr(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){x.error(i)}}}))},remove(e,t,n,i){var r=br.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],Er(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],Er(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],Er(e,t,r.handle));C.isEmpty(r.captureEvents)&&C.isEmpty(r.bubbleEvents)&&(br.remove(e,"captureEvents"),br.remove(e,"bubbleEvents"),br.remove(e,"handle"))}},trigger(e){var t=br.get(e);if(!t.pendoStopped)if(e.bubbles){var n=Cr(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=Yn.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),Sr(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)xr.dispatch(o[i],e);(e=xr.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(xr.dispatch(n,e),(e=xr.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)xr.dispatch(o[i],e)}}else xr.dispatch(Cr(e),e)},clone(e){var t=C.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",br.ownerKey]),e=Yn.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){xr.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},_r=C.extend(kr,{get:function(e,t){return kr({method:"GET",url:e,headers:t})},post:Rr,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",Rr(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!==Tr()}});function Tr(){return window.XMLHttpRequest||ActiveXObject}function kr(e){var t=y.defer(),n=new(Tr())("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 Rr(e,t,n){return kr({method:"POST",url:e,data:t,headers:n})}var Ar,Or=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},Nr=function(){return f.get("annotateUrl")||Dr()||f.get("sanitizeUrl")||f.get(qr)||f.get("xhrWhitelist")},Mr=function(){return Dr()?{href:Pr(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Lr=function(){return new Jn(window.location.href)},Fr=function(){var e,t,n,i;return Nr()?(e=Lr(),Dr()&&(e.href=Pr(e.href)),Or()?(t=R.electronResourcesPath(),n=R.electronUserDirectory(),i=R.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(R.electronUserHomeDirectory(),"").replace("file:///","")):Vr(e.href)):g.getters["location/href"]()},Pr=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Dr=function(){return!0===f.get("ignoreHashRouting")},Ur=500;function Gr(){return C.isUndefined(Ar)&&function e(){Wr(),Ar=Ut(e,Ur)}(),()=>{clearTimeout(Ar)}}var Br=function(e){var t;try{t=Fr()}catch(n){}return t},zr=[],Hr=!1,jr=null;function Wr(){var t=Mr().href;jr!=t&&(jr=t,C.map(zr,function(e){e(t)}))}var qr="queryStringWhitelist";function Jr(e){var t=f.get("sanitizeUrl");return C.isFunction(t)?t(e):e}function Vr(e){e=e||Mr().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=$r(e,null,n,!0)),o=i||{}),_r.urlFor(e,o,r)):e}catch(a){x.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else x.error("customer-provided `annotateUrl` must be of type: function");return e}function Kr(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function $r(e,t,n,i){e=e||Br(),t=t||Kr(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)?Yr(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var Zr,Yr=function(e,t,n){return n&&C.contains(t,"*")?"":(e=Xr(e),e=n?C.omit(e,t):C.pick(e,t),Qr(e))},Xr=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},{})},Qr=function(e){return C.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},R={watch:function(e){const n=[];x.info("Initializing Pendo URL Watcher");var i,t=f.get("location.pushState")&&Ue.supportsHistoryApi();return Hr||(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(Wr,0),t}),n.push(()=>{i[e]=t})}),n.push(Ir(window,"popstate",Wr))),Ue.supportsHashChange()&&n.push(Ir(window,"hashchange",Wr)),!1!==t&&Ue.supportsHashChange()||n.push(Gr()),Hr=!0),zr.push(e),()=>{C.each(n,function(e){e()}),zr.length=0,Hr=!1}},get:Br,externalizeURL:function(e,t,n){n=n||f.get(qr);return Jr($r(e,t,n=C.isFunction(n)?n():n,!1))},startPoller:Gr,getWindowLocation:Mr,clear:function(){zr=[]},isElectron:Or,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 eo(){var e=f.getLocalConfig("dataHost");return e||((e=f.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:He)}function to(){Zr=eo()}function no(){var e=f.get("contentHost")||f.get("assetHost")||je;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function io(e){var t=no(),n=0<=(n=t).indexOf("localhost")||0<=n.indexOf("local.pendo.io")?e.replace(".min.js",".js"):e;return t+"/"+(We?We+"/":"")+n}function ro(){var e=f.get("allowPartnerAnalyticsForwarding",!1)&&f.get("adoptAnalyticsForwarding",!1);return f.get("trainingPartner",!1)||e}var oo=3,ao=1,so=9,uo=11,co=4;function A(e){var t;if((t=e)&&t.nodeType===ao)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function lo(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 po(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function ho(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function fo(e){return C.isNumber(e)?e:0}function go(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!vo(e)?null:e}function mo(e){return lo(A(e),ke)&&isNaN(Ee)}function vo(e){if(e)return(e=A(e))&&(C.contains(["relative","absolute","fixed"],e.position)||lo(e,ke))}function yo(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=vo(t)?t:go(t,n),i=t?bo(t):{top:0,left:0},e=bo(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+=fo(t.scrollTop),i.left+=fo(t.scrollLeft)),i.top-=fo(t.clientTop),i.left-=fo(t.clientLeft)):(i.top+=po(n),i.left+=ho(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function bo(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 wo=void 0===(e=f.get("pendoCore"))||e,So=function(e,t,n){e=Zr+"/data/"+e+"/"+t,t=C.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function Io(){return C.compact([I.apiKey].concat(I.additionalApiKeys))}var Eo=function(e){return e+="v"+qe,xo(So("log.gif",I.apiKey,{msg:e,version:qe}))};function Co(e){try{var t=Zr+"/data/errorlog?apiKey="+I.apiKey,n={error:e,version:"v"+qe,visitorId:b()},i=_o.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):_r.postJSON(t,n);return i.then(function(){x.info("successfully wrote error")},function(e){x.info("error writing error:"+e)})}catch(r){return x.info("Failed to write error to server using POST endpoint: "+r),Eo("Failed to write error to server using POST endpoint: "+r)}}function xo(e){var t,n;return Ao()?(t=y.defer(),Ir(n=new Image,"load",t.resolve),Ir(n,"error",t.reject),n.src=e,t.promise):y.resolve()}function _o(e,t={}){t=C.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t)}function To(e,t){return navigator.sendBeacon(e,t)}_o.supported=function(){try{return C.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var ko=!(To.supported=function(){return C.isFunction(navigator.sendBeacon)}),Ro=function(){var e=Ao();return ko=!0,e&&m["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},Ao=function(){return!ko&&wo},Oo=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(Fo(e))}catch(n){return!1}},No=function(e,t){try{var n;Oo(e,t)||(n=Ye.call(Fo(e))+" "+t,Lo(e,n))}catch(i){}},Mo=function(e,t){try{var n,i;Oo(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=Fo(e).replace(n," "),Lo(e,i))}catch(r){}},Lo=function(e,t){C.isString(e.className)?e.className=t:e.setAttribute("class",t)},Fo=function(e){try{var t=e.className;return(C.isString(t)||!ge(t)?t:e.getAttribute("class"))||""}catch(n){return""}},Po=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},Do={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},Uo=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);Go(e,t)},Go=function(a,e){C.each(e,function(e,t){if(""!==(t=Ye.call(t))){var n=Po(t),i=(!C.isNumber(e)||isNaN(e)||Do[n]?C.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=Ye.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=Ye.call(e)}catch(o){x.info("failed to set style: "+t+" with value "+e)}}})},Bo=function(){return Ge()?{width:document.documentElement.offsetWidth||0,height:document.documentElement.offsetHeight||0}:{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}},zo=function(e){var t=Bo(),n=po(),i=ho();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function Ho(t){return C.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function jo(e,t=window){var n;return function(e){var t,n=e;for(;n;){if(!(t=A(n)))return;if("fixed"===t.position)return!isNaN(Ee)||!Xo(n);n=n.parentNode}return}(e)?((n=bo(e)).fixed=!0,Ho(n)):Ho(yo(e,Vo(t.document),t))}var Wo=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},qo=C.compose(function(e){return Array.prototype.slice.call(e)},function(e,t){try{return s(e,t)}catch(n){return Eo("error using sizzle: "+n),t.getElementsByTagName(e)}}),Jo=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return x.info("error interrogating body elements: "+n),Eo("error picking best body:"+n),0}},Vo=function(e){e=e||document;try{var t=qo("body",e);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 Eo("Error getting body element: "+n),e.body}};function Ko(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 $o(e){if(s.contains(document,e))return!0;for(;e&&e.parentNode||Yn.isElementShadowRoot(e);)e=Yn.getParent(e);return e===document}var Zo=function(e){var t=Vo();if(null!==e)return e===document||e===window?((t={left:window.pageXOffset||t.scrollLeft,top:window.pageYOffset||t.scrollTop,width:window.innerWidth,height:window.innerHeight}).right=t.left+t.width,t.bottom=t.top+t.height,t):((t=jo(e)).right=t.left+t.width,t.bottom=t.top+t.height,t)},Yo=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function Xo(e){for(var t=e&&e.parentNode;t;){if(lo(A(t),ke))return 1;t=t.parentNode}}var Qo=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if($o(e))for(i=e;i;)if(Yn.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=A(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=A(r))&&!C.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&Xo(i))i=go(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function ea(e,t){e=A(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?ta.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?ta.BOTH:t.test(e.overflowY)?ta.Y:t.test(e.overflowX)?ta.X:t.test(e.overflow)?ta.BOTH:ta.NONE}var ta={X:"x",Y:"y",BOTH:"both",NONE:"none"};function na(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&$o(e)}function ia(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 ra(e){if(e){if(C.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function oa(e,t,n){const i=[];var r=ra(document.documentElement);let o=ra(Qo(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=ra(Qo(o)),a++;return()=>{C.each(C.compact(i),function(e){e()}),i.length=0}}const aa=['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 sa(e,t,n){var i=Zo(t),t=ea(t,n);if(t!==ta.BOTH||Yo(e,i)){if(t===ta.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===ta.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function da(e){if(e){if(na(e))return 1;var t=Zo(e);if(0!==t.width&&0!==t.height){var n=A(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=A(i=i.parentNode)}return 1}}}}function ua(e,t){if(!da(e))return!1;if(!na(e)){for(var n=Zo(e),i=Qo(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!sa(n,i,t))return!1;i=Qo(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=ho(),e+=po()),o<=0||e<=0)return!1}}return!0}function ca(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,d=Zo(e),u=Qo(e,s);if(!da(e))return!1;for(;u;){if(t=Zo(u),(o=ea(u,a))!==ta.NONE&&(i=n=0,o!==ta.Y&&o!==ta.BOTH||(d.bottom>t.bottom&&(n+=d.bottom-t.bottom,d.top-=n,d.bottom-=n),d.top<t.top&&(n-=r=t.top-d.top,d.top+=r,d.bottom+=r)),o!==ta.X&&o!==ta.BOTH||(d.right>t.right&&(i+=d.right-t.right,d.left-=i,d.right-=i),d.left<t.left&&(i-=r=t.left-d.left,d.left+=r,d.right+=r))),!sa(d,u,s))return!1;u=Qo(u,s)}return!0}function la(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=Vo(),d=Qo(e,a);d&&d!==s;)t=Zo(e),n=Zo(d),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(d.scrollBy)?d.scrollBy(r,i):(d.scrollTop+=i,d.scrollLeft+=r),d=Qo(d,a)}Mi={$:{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(){Uo(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){No(t,e)})})},removeClass(e){return e=e.split(/\s+/),this.each(function(t){C.each(e,function(e){Mo(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&&Oo(t,e)})}),n)},toggleClass(e){return e=e.split(/\s+/),this.each(function(t){C.each(e,function(e){(Oo(t,e)?Mo:No)(t,e)})})},css(e){return this.each(function(){Uo(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),$o(this)&&C.each(s("script",this),ia)}),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),$o(document))&&C.each(s("script",this[0]),ia)},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&&!s.matchesSelector(n,e);)if((n=Zn(n))===document||t&&s.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 pa{constructor(e=Vo(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},Ue.MutationObserver){const n=new(ut("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()}}_i=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var ha="function"==typeof(i=window.WeakRef)&&/native/.test(i)?i:_i();function fa(e,t){var n,i;return e.tagName&&-1<["textarea","input"].indexOf(e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:ya(n.substring(0,i))):ga(e,t)}function ga(e,t=128){var n,i="",r=e.nodeType;if(r===oo||r===co)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===ao||r===so||r===uo)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=ga(e.childNodes[a],t-i.length))).length)return i+ya(o.substring(0,t-i.length));i+=o}}return i}function ma(e){return 55296<=e&&e<=56319}function va(e){return 56320<=e&&e<=57343}function ya(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(ma(t)||va(t)){if(1===e.length)return e.slice(0,-1);if(ma(t))return e.slice(0,-1);if(va(t))if(!ma(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class ba{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let t=this.elRef&&this.elRef.deref();var e=$o(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 ha(t)}return t}getText(e=1024){return fa(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 wa(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===eo())return!0;if(t===no())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=(Ke()||(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-"+ze+"-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 Sa(e){var t;if(C.isString(e))return t=(t=Kr(e).substring(1))&&t.length?Xr(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")&&Ue.sri&&(n=Sa(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:br,event:xr,removeNode:Wo,getClass:Fo,hasClass:Oo,addClass:function(e,t){var n;"string"==typeof e?(n=k(e),C.map(n,function(e){No(e,t)})):No(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=k(e),C.map(n,function(e){Mo(e,t)})):Mo(e,t)},getBody:Vo,getComputedStyle:A,getClientRect:Zo,intersectRect:Yo,getScrollParent:Qo,isElementVisible:ua,Observer:pa,Element:ba,scrollIntoView:la,getRootNode:ra}),C.extend(k.prototype,xr.$,Mi.$);var Ea,Ca=function(e){var t=0===f.get("allowedOriginServers",[]).length,n=ro();return!(!t&&!n&&(t=ze,n=X,!/prod/.test(t)||re(n)))||wa(e)},xa=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(C.isString(e)&&(e={url:e}),!Ca((u=e.url,new Jn(u).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 d=document.createElement("link");d.type=r,d.rel="stylesheet",d.href=e.url,Ia(d,e.url),a=d}else{if(dt())return(i=document.createElement("script")).addEventListener("load",function(){t(),Wo(i)}),i.type=o,i.src=Z(I).createScriptURL(e.url),Ia(i,e.url),document.body.appendChild(i),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=Z(I).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),_a(a,e.url,t),a}catch(c){return{}}var u},_a=function(e,t,n){var i=!1;ge(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||Eo("Failed to load "+t+" within 10 seconds")},1e4))},Ta=function(e){var t=JSON.parse(e.data),n=e.origin;x.debug(I.app_name+": Message: "+JSON.stringify(t)+" from "+n),Ha(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},ka=function(e){Aa(La)(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};x.debug("Invalid Message: Missing 'type' in data format")}}catch(r){}};function Aa(t){return function(e){if(e&&wa(e.origin))return t.apply(this,arguments)}}var Oa={disconnect(e){},module:function(e){za(e.moduleURL)},debug:function(e){qa(Ta)}},Na=function(e,t){Oa[e]=t},Ma=function(e){delete Oa[e]},La=function(e){var t;e&&(t=e.data)&&ge(Oa[t.type])&&Oa[t.type](t,e)},Fa={},Pa=function(e){if(Fa[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},Da=function(e){return ge(Fa[e])},Ua=function(e){if(Fa)for(var t in Fa)if(0<=t.indexOf(e))return t;return null},Ga=[],Ba=function(){var e;Ga.length<1||(e=Ga.shift(),Da(e))||xa(e,function(){Pa(e),Ba()})};var za=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 Jn(e);return wa(n.origin)&&t[n.pathname]}catch(i){x.debug("Invalid module URL: "+e)}}(e)||(Ga.push(e),1<Ga.length)||Ba()},Ha=function(e,t,n){var i,r=C.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Ea||Wa(),n="*"),t.guid=r,e&&C.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";x.info("Failed to postMessage: "+t)}return r},ja=function(){return window!=window.top},Wa=function(){var e=new RegExp("^"+wt(Zr).replace(/^https?:/,"https?:")),t=f.get("forceParentDesigner");return!Ke()&&t||e.test(location.href)?window.parent:window.top},qa=function(e){var t;return ge(window.addEventListener)&&C.isFunction(window.addEventListener)&&(t=Aa(e),window.addEventListener("message",t,!1)),function(){ge(window.removeEventListener)&&C.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},Ja=C.memoize(function(){return f.get("restrictP1Access")}),Va=[],Ka=[],$a=12e4,Za=16,Ya=1900,Xa=65536,Qa=function(e){return!(!e||""===e)},es=function(){return R.get()},ts={flush:C.noop,flushBy:C.noop,flushEvents:os,flushTrackEvents:os,flushSilos:os,flushTrackEventSilos:os,flushBeacons:os,flushNow:os,flushLater:as,flushEvery:ss,flushStop:ds,beacons:[],silos:[],trackEventSilos:[],lock:Ro,unlock:function(){if(!Ao())return us(),function(){var e=!Ao();return ko=!1,e&&m["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."}()}},ns=[];function is(e){ns.push(e)}function rs(e){e=ns.indexOf(e);0<=e&&ns.splice(e,1)}function os(e,t){try{C.each(ns,function(e){e.flush&&e.flush(t)})}catch(n){x.critical("unhandled error while flushing event cache",{error:n})}}function as(e){return t=C.partial(os,!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 ss(e){var t;if(e=parseInt(e,10)||0,C.isObject(ss.intervals)||(ss.intervals={}),!ss.intervals[e])return t=window.setInterval(os,e),ss.intervals[e]=function(){clearInterval(t),delete ss.intervals[e]}}function ds(){var e=C.values(ss.intervals).concat([os]);C.map(e,function(e){C.isFunction(e)&&e()})}function us(){C.each(ns,function(e){e.clear&&e.clear()}),ds()}function cs(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 ls(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(x.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(x.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))||(x.debug(t+"The jwt is invalid."),!1)):(x.debug(t+"Missing jwt and signingKeyName."),!1)}ps=null;var ps,hs={set:function(e){ps=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==ps?ps:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!f.get("enableSignedMetadata")&&(n=ls(e,t),f.get("requireSignedMetadata")&&!n?(x.debug("Pendo will not "+t+"."),!1):n?cs(e.jwt):void x.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class fs{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 $t.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 $t.all(n)}}const gs="unsentEvents";class ms{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(gs),this.events=JSON.parse(e.read(gs)||"{}"),e.clear(gs)}write(e){0<C.size(this.events)?e.write(gs,JSON.stringify(this.events),5184e5):e.clear(gs)}}var vs=new ms,ys="_PENDO_UNNAMED_",bs=5;function ws(e,t,n,i,r,o){var a,s;a=f.get("dropAnonymous"),s=Tn(b()),!wo||a&&s||(a=t,s=n,t=i,n=r,i=o,s={type:r=e,browser_time:v(),visitor_id:b({generate:!0}),account_id:Bn(),url:R.externalizeURL(s),props:a||{},eventProperties:n},s=sn.addTracerIds(s),"track"===r&&(s.track_event_name=t||ys),m.eventCaptured.trigger(s,i),Qa((o=s).url)&&function(e){if(f.get("freeNPSData"))return C.contains(Ss,e.type);return 1}(o)&&("track"===e?Fs.push(o):Ls.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,o))))}var Ss=["load","meta","identify"];function Is(){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 Es=0;function Cs(e,t){e.sequence=Es++,t(e)}function xs(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 _s(e,t){return ro()?Ts("account_id")(e,t):t(e)}function Ts(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 ks(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function Rs(e,t,n){t=n[t-1]||C.last(n);return Math.ceil(e/t)}function As(e,t){for(var n,i=0,r=(C.isFunction(t.overhead)?t.overhead:C.constant(0))(),o=0;o<e.length;++o){if(Rs(n=ks(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(Rs(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(Rs(i+(n=ks(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function Os(){var e=hs.get();return C.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var Ns,Ms,Ls,Fs;function Ps(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=I.squeezeAndCompress(e.slice()),e.JZB.length<=Xa)||1===e.length?t(e):(n=e.length/2,Ps(e.slice(0,n),t),void Ps(e.slice(n),t))}function Ds(e,t){Ao()&&t(e)}function Us(){return function(e,t){1===e.length&&e.JZB.length>Xa?(x.debug("Couldn't write event"),Eo("Single item is: "+e.JZB.length+". Dropping."),Co(e.JZB)):t(e)}}function Gs(e,t){return So(t.beacon+".gif",e,C.extend({v:qe,ct:v(),jzb:t.JZB},t.params,t.auth))}function Bs(e,t){return So(t.beacon+".gif",e,C.extend({v:qe,ct:v(),s:t.JZB.length},t.params))}function zs(i){return function(e,t){e.params=C.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=hs.get();C.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function Hs(e,t){var n=ro(),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 Ws(e){return JSON.stringify(C.extend({events:e.JZB},e.auth))}function qs(e){return e.status<200||300<=e.status?y.reject(new Error(`received status code ${e.status}: `+e.statusText)):y.resolve()}function Js(e,t){return _o(Gs(e,t)).then(qs)}function Vs(e,t){return fetch(Bs(e,t),{method:"POST",keepalive:!0,body:Ws(t),headers:{"Content-Type":"application/json"}}).then(qs)}function Ks(e,t){var n=Ws(t);return To(Bs(e,t),n)?y.resolve():y.reject()}function $s(n){return function(e,t){return t.JZB?t.eventLength<=Ya&&!f.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&_o.supported()?Js(e,t):t.auth?_r({method:"GET",url:Gs(e,t)}):xo(Gs(e,t)):n.allowPost&&t.eventLength<=Xa?_o.supported()?Vs(e,t):To.supported()?Ks(e,t):_r({method:"POST",url:Bs(e,e=t),data:Ws(e),headers:{"Content-Type":"application/json"}}):y.resolve():y.resolve()}}function Zs(n){return function(e,t){if(t.JZB){if(t.eventLength<=Ya&&!f.get("sendEventsWithPostOnly",!1)){if(!t.auth&&_o.supported())return Js(e,t);if(Ue.msie<=11)return _r({method:"GET",url:Gs(e,t),sync:!0})}if(t.eventLength<=Xa&&n.allowPost){if(_o.supported())return Vs(e,t);if(To.supported())return Ks(e,t);if(Ue.msie<=11)return _r({method:"POST",url:Bs(e,e=t),data:Ws(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return y.resolve()}}function Ys(e,t){e.length=0;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);t(i)}function Xs(e){return Is(Ds,_s,Ps,(t=e.shorten,t=C.defaults(t||{},{fields:[],siloMaxLength:Xa}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],x.debug("Max length exceeded for an event"),C.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(x.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),Ps,Us(),zs(e),Hs,js,Ys);var t}class Qs{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 y.all(C.map(this.queues,e=>e.drain.apply(e,t)))}}function ed(o,a,s){a=a||$s(o),s=s||Zs(o);e=o;var e=C.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=C.map(e,(i,r)=>{var e=new fs(function(e,t,n){return n&&(e.params=C.extend({},e.params,{rt:n})),o.localStorageUnload&&t?(0===r&&vs.push(o.beacon,e),y.resolve()):(t?s:a)(i,e)});return e.onTimeout=function(){g.commit("monitoring/incrementCounter",o.beacon+"GifFailures")},e.retryPending=!0,e}),e=new Qs(e);return vs.send(o.beacon,e),e}function td(e,t){var n=f.get("analytics.excludeEvents");0<=C.indexOf(n,e.type)||t(e)}class nd{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=ed(e)}pause(e=1e4){var t=C.uniqueId();const n=this["locks"];n[t]=1;var i=()=>{n[t]&&(clearTimeout(r),delete n[t],this.flush())},r=Ut(i,e);return 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 id(e){var i,r,t=Xs(e),n=Is((r=e.beacon,function(e,t){var n=f.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),td,Cs,xs(e.cache),(i={overhead:Os,lower:f.get("sendEventsWithPostOnly")?Xa:Ya,upper:Xa,compressionRatio:[.5*bs,.75*bs,bs]},function(e,t){for(var n=As(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=As(e,i)}));return new nd(C.extend({processSilos:t,packageSilos:n},e))}var rd=qn(function(e){var t,n,i;if((e=e||R.get())&&e!==rd.lastUrl)return rd.lastUrl=e,t=-1,Ja()||ja()&&(i=Wa(),Ha(i,{type:"load",url:location.toString()},"*")),x.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},ja()&&(t.is_frame=!0),"*"!==(n=St())&&(t.allowed_storage_keys=C.keys(n)),ws("load",t,e),as(),m.urlChanged.trigger(),!0});function od(e){return"hidden"===e.visibilityState}rd.reset=function(){rd.lastUrl=null};const ad="visibilitychange",sd="pagehide",dd="unload";function ud(){this.serializers=C.toArray(arguments)}function cd(e,t){return e.tag=Yn.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function ld(e){return ge(e)?""+e:""}function pd(e,t){return e.id=ld(t.id),e}function hd(e,t){return e.cls=ld(k.getClass(t)),e}C.extend(ud.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 fd=256,gd=64,md={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 vd=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),Jr((i=i)&&0===i.indexOf("data:")?(x.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)?Ye.call(e).substring(0,fd):e:null):null};function yd(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 bd(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<=gd?C.pluck(a,"nodeName"):(r=C.groupBy(e,function(e){return o[e.nodeName]?"defaults":C.isString(e.value)&&e.value.length>fd?"large":"small"}),C.pluck([].concat(C.sortBy(r.defaults,"nodeName")).concat(C.sortBy(r.small,"nodeName")).concat(C.sortBy(r.large,"nodeName")).slice(0,gd),"nodeName"))}catch(s){return x.error("Error collecting DOM Node attributes: "+s),[]}}function wd(t,n){var e=yd(f.get("htmlAttributes")),i=yd(f.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=vd(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},bd(n.attributes,md[r]&&md[r].attr,e,i));return C.each(r,function(e){t.attrs[e.toLowerCase()]=vd(n,e)}),t}function Sd(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==ao}).indexOf(t).value()),e}function Id(i,e){var r;return f.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(Id),e=this.serialize(e.previousElementSibling),this.add(Id),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 Ed=new ud(cd,pd,hd,wd,Sd,Id),Cd=function(e){return"BODY"===e.nodeName&&e===Vo()||null===e.parentNode&&!Yn.isElementShadowRoot(e)},xd="pendo-ignore",_d="pendo-analytics-ignore",Td=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=Ed.serialize(o,e)}while(r||!st(a.cls,xd)&&!st(a.cls,_d)||(r=!0),n.parentElem=a,n=a,(i=Yn.getParent(o))&&!Cd(o));return r&&(t.parentElem.ignore=!0),t.parentElem},kd=["","left","right","middle"],t=function(e){return e},e=function(e,t){return e[t]},Rd=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return kd[t]}],["altKey",e,t,t],["ctrlKey",e,t,t],["metaKey",e,t,t],["shiftKey",e,t,t]],Ad={click:function(e,t){for(var n=[],i=0;i<Rd.length;i++){var r=Rd[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}},Od=function(t){try{if(!k.data.get(t,"counted")){k.data.set(t,"counted",!0);var n=Cr(t),i=t.type,e={},r=Ad[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===oo?s.parentNode:s.nodeType===co?null:s.correspondingUseElement||s){var o=Td(n),a=(C.extend(o,e),rd());if(a&&R.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:x.error("Failed to add click event property")},target:e}}(e),m.onClickCaptured.trigger(e),e=e.getEventProperties();if(!C.isEmpty(e))return e}(n)),ws(i,{target:o},undefined,undefined,e,t),m.trigger("appUsage",o,t)}}else x.info("Invalid HTML target",{contexts:["event","dom","processing"]})}}catch(d){x.critical("pendo.io while handling event",{error:d})}var s};var Nd=C.debounce(Od,5e3,!0),Md=function(e){const t=[];C.contains(e=e||["click","focus","submit","change"],"change")&&(e=C.without(e,"change"),t.push(()=>{Nd.cancel()}),t.push(Ir(document,"change",Nd,!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=Ue.hasEvent("pointerdown"),d=s?"pointerdown":"mousedown",s=s?"pointerup":"mouseup",u=[],c={cloneEvent:function(e){e=k.event.clone(e);return e.type="click",e.from=d,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&&Cr(r)!==Cr(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&&!Cd(e);)t.push(e),e=e.parentNode;return t}(Cr(e));C.each(e,function(e){e=Ld(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 Iv(){c.unwrap(),C.each(u,function(e){e()})}};e&&(u.push(Ir(document,d,c.down,!0)),u.push(Ir(document,s,c.up,!0)),u.push(Ir(document,"click",c.click,!0)));return c}(k.event.trigger,Ue.addEventListener,i,r).teardown),t.push((i=e,n=C.map(i,function(e){return l(document,e,Od,!0)}),()=>{C.each(n,function(e){e()})})),t.push(function(e,t){if(t){const n=[];return n.push(Ir(document,ad,()=>{od(document)&&e(!0,!1)})),n.push(Ir(window,sd,C.partial(e,!1,!0))),()=>C.each(n,function(e){e()})}return Ir(window,dd,C.partial(e,!0,!0))}(function(e,t){t&&m.appUnloaded.trigger(),e&&m.appHidden.trigger()},f.get("preventUnloadListener"))),f.get("interceptStopPropagation",!0)),i=f.get("interceptPreventDefault",!0);return r&&t.push(Fd(window.Event,e)),i&&t.push(Pd(window.Event,["touchend"])),()=>{C.each(t,function(e){e()})}};function Ld(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){x.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 Fd(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){x.critical("ERROR in interceptStopPropagation",{error:r})}return function(){C.each(t,function(e){e=n.prototype[e]._pendoUnwrap;C.isFunction(e)&&e()})}}function Pd(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=wr,k.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){x.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&&!Ue.addEventListener&&(i=!1),k.event.add(e,{type:t,handler:n,capture:i})):C.noop}function Dd(e,t,n,i){e&&t&&n&&(i&&!Ue.addEventListener&&(i=!1),k.event.remove(e,t,n,i))}var Ud=function(e){k.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},Gd=function(e,t){return"complete"!==(t=t||window).document.readyState?Ir(t,"load",e):(e(),C.noop)},O=[],Bd=[],zd={};let Hd={};function jd(){return O}function Wd(){return qd(O)}function qd(e){return C.filter(e,function(e){return!e.isFrameProxy})}function Jd(e){C.isArray(e)?(O=e,m.guideListChanged.trigger({guideIds:C.pluck(e,"id")})):x.info("bad guide array input to `setActiveGuides`")}var Vd=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&&(Jd(t),g.dispatch("frames/changeGuideList",t)))}}}();function Kd(t,n){return C.find(Yd(),function(e){return C.get(e,t)===n})||null}function N(e){return Kd("id",e)}function $d(e){return Kd("name",e)}function Zd(e,t){return e&&e.id?(e=N(e.id)).findStepById(t):null}function Yd(){var e=C.values(Hd);return e.length?O.concat(C.flatten(e)):O}var Xd="_pendo-guide-tt_",Qd="_pendo-guide-mobile-tt_",eu=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},tu=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},nu=function(e){return!!C.get(e,"attributes.form")};function iu(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function ru(){return!!(iu()&&Bo().width<=320)||Ue.isMobileUserAgent()}function ou(){var e=ou.attachPoint;if(null==e){var t=f.get("guides.attachPoint");if(C.isString(t)){try{e=s(t)[0]}catch(n){x.info('Error finding guide attach point "'+t+'"')}e=e||document.createElement("div")}else e=!!C.isFunction(t)&&t();ou.attachPoint=e}return e||Vo()}var au=function(e){var t=zd[e.guideId];if(t){t=t.element();if($o(t)&&t.id==="_pendo-badge_"+e.id)return t}},su=function(e){var t;return e?(t=e.getGuide(),t="building-block"===C.get(t,"attributes.type")||!tu(t),!e.overrideElement&&t&&(e.overrideElement=au(e)),e.targetElement=du(e),e.overrideElement||e.targetElement):(x.info("Can't get element for null step"),null)},du=function(e){e=e.elementPathRule||null,e=e?s(e):[Vo()];return 0===e.length?null:C.first(e)};function uu(e){var t=C.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function cu(e,t,n){var i,r,o,e=jo(e),t=jo(t),a=(e=e,a=t,i=Math.min(e.top,a.top),r=Math.min(e.left,a.left),o=Math.max(e.top+e.height,a.top+a.height),e=Math.max(e.left+e.width,a.left+a.width),{height:Math.abs(o-i),width:Math.abs(e-r),top:i,left:r});!1!==zo(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([ta.X,ta.BOTH],i)&&(r.x=0);C.contains([ta.Y,ta.BOTH],i)&&(r.y=0);return r}(a,Bo(),n,ea(Vo(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function lu(e,t,n,i,r){var o,a=C.toArray(arguments).slice(1),s=e.apply(this,a);return n||ra(o=ou())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function pu(){return g.getters["frames/isLeader"]()}function hu(e){return g.dispatch("frames/updateFrameVisibility",{visibility:e})}const fu={validateGuide:1,validateLauncher:1,validateGlobalScript:1},gu={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1},mu=["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"];vu=pn.call({}),C.each(mu,function(n){vu[n]=function(e){var t;return C.isFunction(e)?vu.on(n,e):(t=fu[n]?"triggerAsync":"trigger",vu[t].apply(vu,[n].concat(C.toArray(arguments))))}});var vu,yu=vu;var bu={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 wu(e){e=Sa(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}Iu=_u={failed:{},verified:{}},Cu=Co,xu=function(e){try{var t=[];return!bu.usesXhr()&&e.domJsonpUrl?t.push(Ru(e,"domJsonpUrl")):bu.usesXhr()&&e.domUrl&&t.push(ku(e,"domUrl")),e.contentUrlJs?t.push(Ru(e,"contentUrlJs")):e.contentUrl&&t.push(Ru(e,"contentUrl")),y.all(t)}catch(n){throw m.contentVerificationFail.trigger(e,n),n}},Eu=function(e){return xu(e).then(C.noop,function(e){return/verify/.test(e)&&Cu(e),y.reject(e)})},Su=function(t){return Iu.failed[t.id]?y.reject():Iu.verified[t.id]?y.resolve():Eu(t).then(function(){Iu.verified[t.id]=!0},function(e){return Iu.failed[t.id]=!0,y.reject(e)})};var Su,Iu,Eu,Cu,xu,_u,Tu={verify:function(e){return f.get("guideValidation")?Su(e):y.resolve()},reset:function(){_u.failed={},_u.verified={}}};function ku(e,t){var n,i=e[t];return C.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||wu(e[t]),_r.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=V.create()).update(e),c.uint8ToBase64(t.digest())!==n)return y.reject('Unable to verify content at "'+i+'"')})):y.reject('unable to parse "'+i+'"')}function Ru(e,t){var n=e[t];return Ue.sri&&/[?&]sha(256|384|512)=/.test(n)?y.resolve():ku(e,t)}Au="allow",Ou="deny",Nu="pending",Lu=function(){return 0<C.size(yu._handlers.validateGuide)},Fu=function(e,n){var i=[];return C.each(e,function(e,t){n&&(t=n+"."+t),C.isObject(e)?C.each(Fu(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var Au,Ou,Nu,Mu,Lu,Fu,Pu={state:Mu={},Step:function(e){var n=this;function i(e){return C.filter([["content",wu(e.contentUrl)],["contentCss",wu(e.contentUrlCss)],["contentJs",wu(e.contentUrlJs)],["dom",wu(e.domUrl)],["domJsonp",wu(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=Fu(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(yu._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=Mu[t])!==Ou)&&(t!==Au?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+rt(t),yu.validateLauncher(t).then(function(){Mu[e]=Au},function(){Mu[e]=Ou}).then(function(){i=!1,n.render(),n.update(O)},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=Fu(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(!Lu())return y.resolve();try{return C.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=F.findResourceCenterModules(t,O),t=[t].concat(n),y.all(C.map(t,Du))):Du(e)}catch(i){throw m.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!Lu()||!!(e=Mu[e.guideId])&&e.status===Au},invalid:function(e){return!!Lu()&&!!(e=Mu[e.guideId])&&e.status===Ou},reset(){Mu={}}};function Du(i){var r=Mu[i.id];return r||(r={},Mu[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:Nu},r.status=Nu),r[t].promise);return n||(n=yu.validateGuide(e,i).then(function(){r[t].status=Au,r.status=Au},function(e){return r[t].status=Ou,r.status=Ou,y.reject(e)}),r[t].promise=n),n})}function Uu(e,t){var n=C.toArray(arguments).slice(2);return C.reduce(e,function(e,t){return t.apply(e,n)},t)}function Gu(e){return C.isFunction(e.before)?e:Uu(Gu.behaviors,e)}function Bu(e,t){return Uu(Bu.behaviors,e,t)}function zu(e){var t,n,i=f.getLocalConfig("contentHost");return i&&e?(t=new RegExp("(https:)?\\/\\/"+((t=ze)===ve?"pendo-static":Ie(t))+"-\\d+\\.storage\\.googleapis\\.com","g"),n=new RegExp("(https:)?\\/\\/"+Ie(ze)+"\\.storage\\.googleapis\\.com","g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+wt(je),"g"),i)):e}function Hu(e){return f.getLocalConfig("contentHost")?JSON.parse(zu(JSON.stringify(e))):e}Gu.behaviors=[],Bu.behaviors=[];var ju=function(){var u={},c=C.compose(function(e){var t=function(){var e=wt(f.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&x.debug("Failed to verify URL: "+e+" vs "+t),e},zu);const d=[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=u[t.id];if(e&&e.language!==t.language&&delete u[t.id],!u[t.id]){var n,i=[],r={deferred:{},language:t.language},o=!1;if(u[t.id]=r,bu.usesXhr()&&t.domUrl?(r.deferred.domJson=y.defer(),_r.get(c(t.domUrl)).then(function(e){r.domJson=Hu(e.data);var e=e.data;e=e,C.isObject(e)&&e.hasOwnProperty("type")&&e.hasOwnProperty("children")&&e.hasOwnProperty("props")?r.deferred.domJson.resolve():(x.critical(new Error("Response from the guide was not in proper JSON format")),r.deferred.domJson.reject())})["catch"](function(e){x.critical(e),m.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=y.defer(),n=xa(c(t.domJsonpUrl),function(e){k.removeNode(n),e&&m.resourceFetchFail.trigger(t,e)},!0),i.push(r.deferred.domJson.promise),o=!0),t.contentUrlJs&&!f.get("preventCodeInjection")){r.deferred.content=y.defer();var a=xa(c(function(e){if(dt()){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&&m.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise),t.contentUrlCss&&(r.deferred.css=y.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=y.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&&m.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise)}else if(!o)return y.reject("fetchedDomContent is still false");r.deferred.promise=y.all(i).then(function(){return C.omit(r,"deferred")})}return u[t.id].deferred.promise}catch(d){throw m.resourceFetchFail.trigger(t,d),d}},reset:function(){u={}},guideContent:function(e,t,n,i,r){var o,a,s;C.isString(n)&&(o=n,a=e,s=t,n=C.reduce(d,(e,t)=>t(e,a,s),o),C.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?C.template(n):C.constant(n)),o=u[e+t])&&o.deferred.content&&(o.content=n,o.template=i,o.script=r,o.deferred.content.resolve())},receiveDomStructureJson:function(e,t,n){(e=u[e+t])&&e.deferred.domJson&&(e.domJson=Hu(n),e.deferred.domJson.resolve())}}}(),Wu=(qu.state={},qu.queue=[],qu.pending=function(){return C.reduce(qu.state,(e,t)=>e+(t.loaded?0:1),0)},qu.reset=function(){ju.reset(),qu.state={},qu.queue=[]},qu.prefetch=function(e){var t;return qu.hasContent(e)?C.get(qu.state[Ju(e)],"promise"):(t=y.defer(),qu.queue.push([t,e]),t.promise)},qu.processPrefetch=function(e=10){return qu.queue.length?(e=qu.queue.splice(0,Math.max(e-qu.pending(),0)),y.all(C.map(e,t=>qu.fetchContent(t[1]).then(e=>{t[0].resolve(e)})["catch"](e=>{t[0].reject(e)})))):y.resolve()},qu.fetchContent=function(t){var e=Ju(t);if(!(i=qu.state[e])){var n,i={},r=t.getGuide();if(r.control)return y.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=Tu.verify(o).then(function(){return i.verified=!0,ju.load(o)}).then(function(e){return i.loaded=!0,e}),qu.state[e]=i}return i.promise.then(function(e){C.extend(t,e)})},qu.hasContent=function(e){return ge(e.content)||ge(e.domJson)},qu);function qu(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(C.extend(i,{fetchContent:function(e=!1){return e?qu.prefetch(i):qu.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 Ju(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}var Vu=function(){var t=m.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,I)}catch(t){return x.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 x.critical("Exception thrown running beforeMount for: "+JSON.stringify({guideId:o.id,stepId:r.id}),{error:t}),!1}})}var a=pn.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 d(e){return s[e]}function n(e){var t,n=e.data[0];if(e.step=n,delete e.data,d(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 u(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?x.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 u.prototype.on=function(e,t){var n,i;d(e)?(s[e].fromUnmount&&(t=C.once(t)),n=this.step,i=t,t=qn(t=e=>{var t=e["step"];if(t.id===n.id)return i(e);x.debug("called guide runtime callback on wrong step")}),a.on(e,t),this.purge=C.compose(this.purge,C.partial(a.off,e,t))):x.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)},{initialize:function(){t.on(n);var e=f.get("guides.globalScripts");C.each(e,Vu.addGlobalScript)},teardown:function(){t.off(n),C.each(r,Vu.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){d(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)?x.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 u(e)},runCustomScripts:function(i,r){C.each(e(i,r),function(e){try{var t=Vu.getContext(i);e.call(t,i,r,I)}catch(n){x.critical("Exception thrown running code block for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:n})}})}}}();function Ku(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?C.find(e.children,Ku):void 0}function $u(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=$u(e.children[n],t);if(i)return i}return!1}function Zu(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=Zu(e,t.children[n]);if(i)return i}}function Yu(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 Xu={buildNodesFromTemplate:function(e,t,n,i,r){var o=i||O,a=r||I.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=F.findResourceCenterHomeView(f),r=C.find(f,function(e){return e.id===t.id});if(I.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,d=JSON.parse(JSON.stringify(p)),u=(delete d.templateChildren,d.props.id=d.props.id+"-"+n,d.props["data-pendo-module-guide-id"]=r.id,d.actions||(d.actions=[]),{action:"renderResourceCenterModule",source:d.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id}],uiMetadata:{},eventType:"click"}),u=(d.props["data-localization-direction"]&&u.parameters.push({name:"transitionDirection",type:"string",value:d.props["data-localization-direction"]}),I.designer||d.actions.push(u),C.get(i,"attributes.notificationBubble")),c=C.get(i,"attributes.notifications"),u=(u&&c&&("AnnouncementsModule"===C.get(r,"attributes.resourceCenter.moduleId")&&(o=r.id),o="chat"===C.get(r,"attributes.resourceCenter.integrationName")?"chat":o)&&(d.props["data-pendo-notification-id"]=o,c=d,r=u,u=o,o=(i=i).attributes.notifications.individualCounts[o],c=$u(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[u]),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)),$u(d=ec(d,t,d.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=$u(d,function(e){e=C.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),l=$u(d,function(e){e=C.get(e,"props.id");return e&&0<=e.indexOf("pendo-home-view-bubble-"+n)});return u&&(u.props["aria-hidden"]=!0,i)&&(i.props["aria-labelledby"]=u.props.id+" "+(l&&l.props.id)),e.concat(g(d,h,f))},[])}(t,n,o,a);case"pendo_resource_center_guide_list_item":return function(o,a,s,d){var e=o.templateChildren;return C.reduce(e,function(e,t,n){var i,r=tc(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"},I.designer||i.actions.push(r),i=ec(i,t,i.props.id,n),e.concat(d(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 tc(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});F.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,d,u,c){var e=s.templateChildren;return C.reduce(e,function(e,t,n){var i,r,o,a=tc(u,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"},I.designer||i.actions.push(r),r=a.getTotalSteps(),o=a.getSeenSteps(),a.isComplete()&&(o=r),a=parseInt(o/r*100,10),$u(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=Qu(t.subtitle,{currentStep:o,totalSteps:r}):t.stepProgress="Step "+o+" of "+r,i=ec(i,t,i.props.id,n),e.concat(c(i,d,u))):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=tc(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 $u(e=ec(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=tc(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!C.every(e,function(e){e=e.steps[0];return!!Wu.hasContent(e)}))return[];var t=F.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,d,u="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,u?(t=c,u=h,s=p,n=Gu(r=e),(d=n.steps[0]).render(),Vu.runCustomScripts(d,n),i=(n=d.guideElement)[0].id,Yu(f,"pendo-whats-new-style-"+i,"#"+i+" h1::after { display:none; }",n[0]),u&&((o=nc(u)).props.style.top="20px"),!F.hasAnnouncementBeenSeen(r)&&o&&(t.props["class"]+=" pendo-unseen-announcement",t.children=[o]),i=s(t,d),n.appendTo(i),i):(u=c,r=h,o=p,d=Gu(t=e),s=t.steps[0],Vu.runCustomScripts(s,d),d=JSON.parse(JSON.stringify(s.domJson)),u.children=[d],r&&(a=nc(r),d=$u(u,function(e){return"pendo-guide-container"===e.props.id}),r=parseInt(u.props.style["padding-top"],10),d=parseInt(d.props.style["padding-top"],10),a.props.style.top=d+r+5+"px"),!F.hasAnnouncementBeenSeen(t)&&a&&(u.props["class"]+=" pendo-unseen-announcement",u.children.unshift(a)),delete u.templateName,(d=Zu("pendo-guide-container",u))&&(d.props.id=d.props.id+"-"+s.id),o(u,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=ec(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:nc,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return C.reduce(e,function(e,t,n){t=tc(i,t);return t&&e.push(t),e},[])}};function Qu(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 ec(e,t,n,i){if(e.content&&(e.content=Qu(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?Qu(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++)ec(e.children[r],t,n,i);return e}function tc(e,t){e=C.find(e,function(e){return e.id===(t.id||t)});if(I.designer)return t;if(e){if(!e.ineligibleForRC)return e;e.control&&e.steps[0].onControlGuide("control")}}function nc(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 ic={buildSvgNode:function(e,t){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return rc(t)}},createProgressCircleSvg:rc};function rc(e){var t,n,i,r,o,a,s;return Ce(9)?(n=(t=(t=e).svgAttributes).fillCircle.stroke,i=t.backgroundCircle.stroke,t=100<=(t.fillCircle.percentComplete||0),r=k(Z(I).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(I).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(I).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 oc=function(e,t){return e<t},ac=C.negate(oc);function sc(){var e=Vo();return mo(e)?Zo(e):((e=Bo()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function dc(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 uc(e){var t;if(e&&e.length)return t=mo(Vo())?Zo:bo,(e=C.reduce(e,function(n,e){var i;return ua(e)?(i=t(e))?(C.each([["top",oc],["right",ac],["bottom",ac],["left",oc]],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 cc(e,t){var n=sc(),e=uc(e)||{top:0,left:0,right:n.width,bottom:n.height,width:0,height:0};return{viewport:n,box:e,overlays:dc(n,e,t)}}function lc(e){var t=[],n=C.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==Vo()){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){x.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var pc=null,hc=function(e){var t=!C.isEqual(e,pc);return pc=e,t},fc=null,gc=function(e){var t=!C.isEqual(e,fc);return fc=e,t},mc=null,vc=function(e){var t=!C.isEqual(e,mc);return mc=e,t},yc=function(e){return gc(e.viewport)||hc(e.box)||vc(e.overlays)};function bc(e){try{var t=cc(lc(e),C.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));yc(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){x.info("Failed to update BlockOut ui",{contexts:["error"]})}}function wc(e){try{var t,n,i,r;if(!(0<k("._pendo-guide-backdrop_").length))return t=cc(lc(e),C.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),yc(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=Zu("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(d){x.info("Failed to add BlockOut ui",{contexts:["error"]})}var o,a,s}var Sc="top",Ic="bottom",Ec="left",Cc="right",xc="center";function _c(e,t,n){return n===Cc||n===Ec?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?xc:n<e/2?Cc:Ec)}const Tc={DEFAULT_CARET_OFFSET:10,BOUNDARY_MARGIN_RIGHT:.98,BOUNDARY_MARGIN_LEFT:.02,Z_INDEX:{DEFAULT:"300000",CARET:11,BORDER_CARET:10}};var kc={createBBTooltip:Ac,getBBTooltipDimensions:Lc,determineBBHorizontalBias:_c,determineTooltipPosition:Fc,positionBBTooltipWithBias:Pc,calculateToolTipPositionForTopBottom:Dc,calculateToolTipPositionForLeftRight:Bc,buildTooltipCaret:zc,styleTopOrBottomCaret:jc,styleLeftOrRightCaret:Wc,buildBorderCaret:qc,determineBorderCaretColor:Vc,placeBBTooltip:function(e,t){var n,i,r,o,a,t=t||Kc(e);t&&(i=e.element||su(e),n=jo(i),"none"!==A(e.elements[0]).display)&&(i=bo(i),a=e.attributes.layoutDir,e=e.guideElement,r=k(t).find("#pendo-guide-container"),o=r[0].style,t=A(t),t={height:parseInt(t.height,10),width:parseInt(t.width,10)},r={height:parseInt(r[0].getAttribute("data-caret-height"),10)||0,width:parseInt(r[0].getAttribute("data-caret-width"),10)||0,backgroundColor:r[0].style["background-color"],offset:Tc.DEFAULT_CARET_OFFSET,borderColor:o.borderColor,borderWidth:parseInt(o.borderWidth,10)},o=this.getBBTooltipDimensions(n,t,r,a,i),r.height&&r.width&&(t=e.find(".pendo-tooltip-caret")[0],a=e.find(".pendo-tooltip-caret-border")[0],t&&Hc(t,o,r,n),a)&&Jc(a,r,o.layoutDir,t),e.css({top:o.top,left:o.left,position:n.fixed?"fixed":"absolute"}))},attachBBAdvanceActions:Mc,attachScrollHandlers:Oc,isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!C.isObject(e.domJson)||!(e=Ku(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForTooltip:function(e,t,n){Ac(t,e.element,e,n),e.hasBeenScrolledTo||(la(e.element),cu(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)},patchGuideContainerWidthForResponsiveTooltips:function(e,t,n){t=t||Kc(e);var i,r,o,a,s,d;t&&(i=e.element||su(e))&&(o=t.style.width)&&-1!==o.indexOf("vw")&&(o=Rc(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),d=parseFloat(e.style.width)/100,r?n.width-=o:"left"===n.layoutDir?(r=i.left-o,n.width=Math.max(0,r*d)):"right"===n.layoutDir&&(r=t.width-i.right-o,n.width=Math.max(0,r*d)),a&&n.width>a&&(n.width=a),s&&n.width<s&&(n.width=s),e.style.width=n.width+"px")}};function Rc(e,t,n,i){var r,o,a=jo(t),t=bo(t),s=Bo(),d=e.attributes.layoutDir||"auto";return(0!==a.height||0!==a.width)&&(e=e&&!e.elementPathRule,n=$u(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:Tc.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)),{elementPos:a,screenPos:t,screenDimensions:s,caretDimensions:r,tooltipSizes:{width:i.offsetWidth,height:i.offsetHeight,layoutDir:d},containerDomJson:n,elementIsNotVisible:e}):null}function Ac(e,t,n,i){var r,o,a,s;if(n.guideElement)return(t=Rc(n,t,e,i))?({elementPos:e,tooltipSizes:t,screenPos:a,caretDimensions:r}=t,(o=n.guideElement).addClass(ru()?Qd:Xd),Mc(n),t=Lc(e,{height:t.height,width:t.width},r,n.attributes.layoutDir,a),n&&(n.dim=t),n&&C.isFunction(n.getGuide)&&(s=n.getGuide()),a=C.get(s,"attributes.resourceCenter"),e.fixed?(o.css({position:"fixed"}),i.style.position="absolute"):n&&a||(i.style.position="absolute"),r.height&&r.width&&zc(o,t,r,e),s=Tc.Z_INDEX.DEFAULT,i&&i.style&&i.style["z-index"]&&(s=i.style["z-index"]),o.css({"z-index":s}),a||o.css({height:"auto",width:"auto",overflow:"visible"}),n.elementPathRule&&o.css({left:t.left,top:t.top,position:e.fixed?"fixed":"absolute"}),"top"===t.layoutDir&&t.hbias===Ec&&o.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),Oc(n,$c),o[0]):null}function Oc(e,t){e&&C.isFunction(e.attachEvent)&&(iu()&&e.element===k.getBody()||(t=C.throttle(C.bind(t,e,e),10),e.attachEvent(window,"scroll",t,!0),oa(C.bind(e.attachEvent,e),e.targetElement,t)))}function Nc(t,n){var e=k(n.elementPathRule)[0];n.attachEvent(e,t,function(e){k.data.set(e,"advanced",!0),_g(t,n)})}function Mc(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?Nc("mouseover",e):e.attributes.advanceActions.elementClick&&Nc("click",e))}function Lc(e,t,n,i,r){var o,a,s=Bo(),i=i||"auto",t={width:Math.min(t.width,s.width),height:t.height},d=(t.layoutDir=i,t.hbias=_c(e,s,i),t.vbias=(o=e,d=s,(a=i)===Sc||a===Ic?a:(a=o.top,(d=(o=d.height)/3)<a&&a<2*d?xc:a<o/2?Ic:Sc)),t.layoutDir=Fc(t,s,r,i),Pc(t,e,s,n));return t.top=d.top,t.left=d.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 Fc(e,t,n,i){var r,o,a,s,d,u,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,d=n.left-e.width<0,u=n.left+n.width+e.width>t.width,!(s&&a&&d&&u)&&(i<t.height/3&&(c="bottom"),(i>2*t.height/3||e.hbias===xc)&&(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!==xc&&(c=e.hbias),d&&u||(u||(c="right"),d)||(c="left")),(c=c&&"bottom"!==c||!s||a?c:"top")||e.hbias)||"bottom")}function Pc(e,t,n,i){return"top"===e.layoutDir||"bottom"===e.layoutDir?Dc(e,n,t,e.layoutDir,e.hbias,i):Bc(e,n,t,e.vbias)}function Dc(e,t,n,i,r,o){var a=e.height,s={top:null,left:null},i=("bottom"===i?s.top=n.top+n.height:"top"===i&&(s.top=n.top-a),{right:window.innerWidth*Tc.BOUNDARY_MARGIN_RIGHT,left:window.innerWidth*Tc.BOUNDARY_MARGIN_LEFT});return s.left="right"===r?function(e,t,n,i,r,o){var n=Uc(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?Gc(e,a):e-t;return e}(n,e,o,t,i.right,i.left):"left"===r?function(e,t,n,i,r){n=Uc(n),t=t.width;e=e.left-t+e.width/2+n;if(e<r)return i<e+t+(n=r-e)?Gc(e,t):e+n;return e}(n,e,o,i.right,i.left):function(e,t,n,i){t=t.width;e=e.left+e.width/2-t/2;var r=e+t;if(n<r){if((e-=r-n)<i)return Gc(e,t)}else if(e<i){r=(e+=i-e)+t;if(n<r)return Gc(e,t)}return e}(n,e,i.right,i.left),s}function Uc(e){return e.offset+e.width+e.borderWidth}function Gc(e,t){t=window.innerWidth-(e+t);return t<e?e-(e-t)/2:e<t?e+(t-e)/2:e}function Bc(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 zc(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=Tc.Z_INDEX.CARET,Hc(r,t,n,i),e.find("#pendo-guide-container")[0].parentNode);i.appendChild(r),n.borderWidth&&(e=qc(r,n,t.layoutDir),i.appendChild(e))}function Hc(e,t,n,i){"top"!==t.layoutDir&&"bottom"!==t.layoutDir||jc(e,t,n,i),"left"!==t.layoutDir&&"right"!==t.layoutDir||Wc(e,t,n)}function jc(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 Wc(e,t,n){var i,r=Bo();return e.style["border-top"]=n.width+"px solid transparent",e.style["border-bottom"]=n.width+"px solid transparent",e.style.bottom="",t.vbias===Sc?(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===Ic?(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 qc(e,t,n){var i=e.cloneNode();return i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=Tc.Z_INDEX.BORDER_CARET,Jc(i,t,n,e),i}function Jc(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",d="border"+o[a]+"Color",u="border"+o[a]+"Style";i.style[s]?(r[s]=parseInt(i.style[s],10)+t.borderWidth+"px",r[d]=Vc(i.style[d],t.borderColor),r[u]="solid"):(r[s]="",r[d]="",r[u]="")}"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 Vc(e,t){return"transparent"===e?e:t}function Kc(e){var t,n;if(e.guideElement)return t="pendo-resource-center-container"===e.guideElement.attr("id"),n=Ku(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}function $c(e){ua(e.element)?(kc.placeBBTooltip(e),k(e.elements[0]).css({display:"block"})):k(e.elements[0]).css({display:"none"})}function Zc(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}Yc(o,e),i.push(o)}}}}function Yc(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=A(o),r=parseInt(r.marginTop,10)+parseInt(r.marginBottom,10),n+=o.offsetHeight+r)}var a=e.offsetHeight,e=A(e),e=parseInt(e.paddingTop,10)+parseInt(e.paddingBottom,10),s=A(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 Xc(e,t){var n,i,r,o,a,s,d,u,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(A(e).height,10),d=Bo().height,u=parseInt(e.style.top,10),u=isNaN(u)?0:u,c=parseInt(e.style.bottom,10),(d=d-u-(c=isNaN(c)?0:c))<s&&(n.css({"max-height":d+"px",overflow:"auto"}),s=d),s!==o?(t.css({height:(u=a&&o?o:s)+r}),"Centered"!==(c=e.getAttribute("data-vertical-alignment"))&&"Left Aligned"!==c&&"Right Aligned"!==c||t.css({"margin-top":"-"+(d<s?d:u)/2+"px"})):t.css({height:i}))}function Qc(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(A(e).width,10)),o=Bo().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 el(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&&tl(C.reduce(t,function(e,t){var n,t=k(t),i=rl(t[0]),i=i.marginLeft+i.marginRight,r=il(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)),rl(n[0])),r=e.marginLeft+e.marginRight,o=il(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&nl(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),tl({$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=rl(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=il(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&nl(t,i,r,a),tl({$blockElement:t,availableSpace:a}))})})}function tl(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 rl(e.$blockElement[0]).width});C.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function nl(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 il(e){e=e.closest("._pendo-row");if(e){e=A(e[0]);if(e)return{width:parseFloat(e.width),paddingLeft:parseInt(e.paddingLeft,10),paddingRight:parseInt(e.paddingRight,10)}}}function rl(e){e=A(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var ol,M={calculateTotalOffsetWidth:dl,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=dl(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=dl(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=dl(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return C.filter(e,sl)},getPendoVisualElements:function(e){return C.filter(e,function(e){return!sl(e)})},initializeFlexElements:function(e){var t=e.cloneNode(),n=al(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++)cl(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:sl,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=dl(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=dl(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=dl(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=A(e).width,d=-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&&!d&&(a=(a?s:null)||A(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(A(t).width,10),u=parseInt(A(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-u,"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 u;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"),u=C.get(e,"children")[0],r&&u&&-1!==(u.getAttribute("class")||"").indexOf("image-preview-placeholder")&&(s.children[0].style.width=a),!r||d||e.style.width||(s.children[0].children[0].style.width=a),s}return e},getVisualElementsWrappedInFlexElements:al,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:ul,wrapFlexElementsInFlexRows:function(e,t,n){for(var i=n||ul(t),r=M.createFlexRow(),o={row:r,rowWidthUsed:0},a=[o],s=0;s<e.length;s++){var d=e[s],u=bo(d)["width"],u=parseInt(u,10);o.rowWidthUsed+=u,o.rowWidthUsed>i&&0!==C.indexOf(e,d)&&(o.rowWidthUsed-=u,(r=M.createFlexRow()).appendChild(d),a.push(o={row:r,rowWidthUsed:u})),o.row.appendChild(d)}return a},formatFlexRows:function(e,t,n,i,r){for(var o=r||ul(t),a=0;a<e.length;a++){var s=e[a],d=(t.appendChild(s.row),M.findMaxChildHeight(s.row.children,!1)),u=(s.row.style["min-height"]=d+"px",o-parseInt(s.rowWidthUsed,10));M.setElementHorizontalAlignment(s.row.children,u,n),M.setElementVerticalAlignment(s.row.children,d,i)}},isElementHiddenInGuide:cl,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&&(pl(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:pl};function al(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 sl(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function dl(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 ul(e){var t=bo(e)["width"],e=A(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function cl(e){ll(e);var t=Zo(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-")&&(ll(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function ll(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function pl(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 hl(){return!I.designer&&f.get("disableGuidePseudoStyles")}function fl(e,t,n){return e&&e.templateName?Xu.buildNodesFromTemplate(e.templateName,e,t,n,vl):"style"===e.type&&hl()?[]:[vl(e,t,n)]}function gl(e,t,n,i){e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw i&&(e+=' for node type "'+i+'"'),x.info(e),new Error(e)}function ml(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}},d=/^data-/,u=/^aria-/,e=C.keys(n);return C.reduce(e,function(e,t){return s[o]&&s[o][t]&&gl(t,r,i,o),a[t]||d.test(t)||u.test(t)||gl(t,r,i),e[t]=n[t],e},{})}function vl(n,i,e){i=i||{id:"unknown",guideId:"unknown"},n.props=ml(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&&kc.attachScrollHandlers(i,bc),wc(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!==Ye.call(t).length&&r.addClass("pendo-code-block").html(t))}),n.content&&r.text(n.content),"style"===n.type&&(I.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=Sl(n.css):r.text(Sl(n.css))),n.svgWidgetId&&ic.buildSvgNode(n.svgWidgetId,n).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)wl(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=ra(ou()),d=s!==document,u=0;u<n.children.length;u++){var c=fl(n.children[u],i,e);C.each(c,function(e){var t;e&&("STYLE"!==e[0].tagName?e.appendTo(r):d?((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){yl(e,i)}):yl(r[0],i),r}function yl(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++,bl(k(e),t))}function bl(e,i){e.on("load",function(){var e,t={},t=(!i.containerId&&i.domJson&&(t=Ku(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&&(Qc(t,i.guideElement),el(t,i.guideElement),M.flexAllThings(t,i),e=i.getGuide(),C.get(e,"attributes.isAnnouncement")||"AnnouncementsModule"===C.get(e,"attributes.resourceCenter.moduleId")||(Xc(t,i.guideElement),(e=n.children.item("pendo-guide-container"))&&e.style&&"auto"===e.style.overflow&&(el(t,i.guideElement),M.flexAllThings(i.containerId,i))),"tooltip"===i.attributes.calculatedType&&kc.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&&kc.positionStepForTooltip(i,i.domJson,e),e.style.visibility="visible",e.parentNode.style.visibility="visible",M.flexAllThings(i.containerId,i)):x.info("Failed to find guideContainer for id: "+i.containerId)})}function wl(n,i,r){n.on(i.eventType,function(e){var t;i.designerAction?I.designerv2&&I.designerv2.designerActions&&I.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 Sl(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=Sl(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 Il(t){C.each(document.head.childNodes,function(e){e&&k.hasClass(e,"pendo-style-"+t)&&Wo(e)})}var El=function(){var e=window.navigator;return((C.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},Cl="meta",xl=C.compose(JSON.parse,JSON.stringify),_l=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()},Tl=function(e={}){(e=C.isObject(e)?e:{}).jwt&&e.signingKeyName&&(t=hs.getJwtOptions(e,"updateOptions"))&&(hs.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===An&&(x.info("Missing visitor id."),delete n.id),_n(i.id)&&_n(t.id)&&(Mn(i.id)?t.id=i.id.split(Nn)[0]:i.id=""+t.id+Nn+i.id),_n(i.id)&&(i.id=""+i.id),_n(n.id)?n.id=""+n.id:n.id=b({generate:!0}),n.language=El(),e={visitor:xl(n),account:xl(i),parentAccount:xl(t),date:_l(),version:I.VERSION},g.getters["metadata/selfHosted"]()&&(e.selfHosted=!0);var t,n=C.clone(Nl()),i=(f.setLocalConfig(C.extend({},f.getLocalConfig(),e)),g.commit("metadata/setMetadata",e),Nl()),r=(_n(e.visitor.id)&&(I.identify(e.visitor.id,e.account.id),e.visitor.id=b(),e.account.id=Bn()),rt(e)),o=(void 0!==(o="object"==typeof(o=r)?rt(o):o)&&o.toString&&(o=o.toString()),""+(C.isNumber(ol)?ol:Hn(Cl))!==o),r=(ol=r,o&&zn(Cl,r),!C.isEqual(n,i));return{options:e,hashChanged:o,storeChanged:r}},kl=qn(function(e){e=Tl(e);m.metadata.trigger(e)}),Rl=qn(function(e,t){C.isObject(e)?kl(e):Pn(e,t)}),Al=function(){var t,e=k("script");return e=e,t=new RegExp("/agent/static/"+I.apiKey+"/pendo\\.js$"),!C.any(e,function(e){return t.test(e.src)})&&!Se()},Ol=function(){var e=f.get("blockAgentMetadata");return e!==undefined&&e};function Nl(){return g.getters["metadata/metadata"]()}function Ml(){return JSON.parse(JSON.stringify(Nl()))}function Ll(e){var t=e.data[0],n=f.getLocalConfig()||{};Wn(e)?(Rn([Cl]),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 Fl={Launcher:{addBehavior:C.noop},Metadata:{getMetadata:Nl},Util:{documentScrollTop:po,documentScrollLeft:ho,getOffsetPosition:jo},Events:m,JWT:{getJWT:hs.get}};var Pl,Dl,Ul,Gl,Bl={},zl=(Dl=[],Ul=[],Gl={},(Pl=Bl).tagExtension=function(e,t){e=Pl.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},Pl.findExtensionByTag=function(t){return C.find(Ul,function(e){return C.contains(e.tags,t)})},Pl.findExtensionByName=function(e){return C.findWhere(Ul,{name:e})},Pl.filterExtensionsByUse=function(t){return C.filter(Ul,function(e){return e.use===t})},Pl.findExtensionByNameAndProvider=function(t,n){return C.find(Ul,function(e){e=e.data;return!!e&&e.name===t&&e.provider&&e.provider.name===n})},Pl.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],Gl[e]={handler:t,validators:n}},Pl.getExtensionFrames=function(){return C.reduce(Ul,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=C.filter(e,Hl)).length&&(Dl=function n(e){if(!e.length)return e;var t=C.filter(e,jl);if(t.length)return n(C.difference(e,t));return e}(Dl.concat(e)))});function Hl(t){var e;return!!C.every(["name","version","use","type","uri"],C.partial(C.has,t))&&(e=t.use,e=Gl[e]?Gl[e].validators:[],C.every(C.map(e,function(e){return e(t)})))}function jl(e){var t;return"behavior"===e.use?!!e.uri(Pl,Fl)&&(Ul.push(e),!0):(t=e.use,!!(t=Gl[t]?Gl[t].handler||C.identity:null)&&((e=t(e))&&Ul.push(e),!!e))}var L,Wl,ql,Jl,Vl,Kl,F={initializeResourceCenter:function(r){if(!(L=Zl(r)))return y.resolve();if(g.getters["frames/isShownInAnotherFrame"]()(L.steps[0]))return y.resolve();if(F.isFullyCustom(L))return L.hasResourceCenterContent=!0,y.resolve();var e=Yl(L,r),t=C.reduce(e,function(e,t){return $l(t)?e.concat(t.steps[0].fetchContent()):e},[]);return t.push(Pu.validate(L).then(C.noop,function(){L.launchMethod="api"})),L.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},C.forEach(ip(),function(e){var t=Bl.findExtensionByNameAndProvider("chat",e),t=(t&&sp(e,t),Bl.findExtensionByNameAndProvider("helpcenter",e));t&&sp(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=tp(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&np(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){Mp(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,y.all(t)["catch"](()=>(L=null,x.error("Failed to load one or more Resource Center modules"),y.resolve()))},findResourceCenterHomeView:Zl,findResourceCenterModules:Yl,replaceResourceCenterContent:Xl,renderResourceCenterModule:function(e,t){Xl(e.id,undefined,!0,t)},showHomeViewOrEmptyState:function(e){k("#pendo-resource-center-container._pendo-guide-walkthrough_").remove(),delete e.activeModule,e.hasResourceCenterContent&&e.skipResourceCenterHomeView?F.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,[{value:"none"},{value:"left"}]):e.showEmptyState&&(F.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=Bl.findExtensionByNameAndProvider(e,t);return e?(n=k(n))?((e=e.getFrame()).appendTo(n),void e.css({display:"block"})):x.info("could not find target element for "+t+" integration"):x.info(t+" integration has not been loaded into the agent")},appendIntegrationToBodyByNameAndProvider:np,attemptToPreserveIntegrationIframes:function(e){e.step&&(e=e.step.getGuide()).attributes&&e.attributes.resourceCenter&&(e=F.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(ou())})},getResourceCenter:fp,getResourceCenterContainer:gp,getResourceCenterBadge:mp,addNotificationBubbleToResourceCenterBadge:xp,addNotificationBubbleToTargetElement:_p,updateNotificationBubbles:function(){var e=L,t=C.get(e,"attributes.notifications");if(t){var n=wp(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&Op(),t.totalUnseenCount=n;else{Sp();var i=n!==t.totalUnseenCount;if(i||!yp(Jl)){if("badge"===e.launchMethod){i=mp();if(!i)return;xp(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;_p(i[0],e.attributes.notificationBubble,n),Ir(window,"resize",C.debounce(bp,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:Op,updateNotificationBubbleCount:Np,updateNotificationBubbleOnHomeView:Ip,updateOrCreateNotificationBubble:Tp,hexToRgb:vp,doesIntegrationExist:tp,calculateTotalNotificationCount:wp,updateNotificationBubblesOnHomeView:Sp,createNotification:Rp,appendNotificationBubble:Ap,hasAnnouncementBeenSeen:Mp,clearAnnouncementUnseenInterval:Ql,createAnnouncementUnseenInterval:ep,findShownResourceCenterModule:function(){var e=F.getResourceCenterContainer();if(e){e=k(e).find('[id^="pendo-g-"]');if(e){var t=e.attr("data-pendo-guide-id"),e=C.find(Wd(),function(e){return e.id===t});if(C.get(e,"attributes.resourceCenter.isModule",!1))return e}}},dismissResourceCenter:Lp,repositionResourceCenter:function(){var e=F.getResourceCenterContainer();{var t,n,i;e&&(i=F.findResourceCenterHomeView(Wd()).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=Bo().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")}Zc(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=Zo(e[0]),e=Zo(e[1]);return Yo(t,e)}(e)&&(t=jo(e[0]).width+5,n=jo(e[1]).left-t<0?"":"-",e[1].style.transform="translateX("+n+t+"px)")},resourceCenterIgnoreRtl:function(){return C.get(this.getResourceCenterBadge(),"ignoreRTL",!1)},adjustResourceCenterWidth:function(e){var t=gp();if(t){o=Bo().width,r=k(t),e=k(e),r.css({"max-width":"none"}),e.css({"max-width":"none"}),i=parseInt(A(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=A(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,d=(i&&(i=A(i),e=parseInt(i.width,10),a=parseInt(i.marginRight,10),s=parseInt(i.marginLeft,10)),o+r+e+s+a),u=parseInt(A(t[0]).width,10),c=0;c<n.length;c++){var l=n[c],p=k(l),l=(p.css({"max-width":"none"}),A(l)),h=parseInt(l.width,10),l=u-d-(parseInt(l.paddingLeft,10)+parseInt(l.paddingRight,10));l<=h&&p.css({"max-width":l})}}},setNativeIntegrationDefaults:sp,renderNativeIntegration:pp,isSupportedNativeIntegration:rp,handleNativeIntegrationContinuation:hp,isProviderInstalled:op,adjustNotificationBubbleForResize:bp,getNotificationBubbleDefaultCss:kp,getModuleId:Fp,isIframeModule:function(e){return"IframeModule"===Fp(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===Fp(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===Fp(e)&&e.hasResourceCenterContent},isFullyCustom:function(e){return"FullyCustomModule"===Fp(e)},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!F.isSupportedNativeIntegration(e.integrationProvider)||F.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n=Zl(e);if(!n)return y.resolve();if(t.getters["frames/isShownInAnotherFrame"]()(n.steps[0]))return y.resolve();if(F.isFullyCustom(n))return y.resolve();var t=Yl(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){$l(e)&&i.push(e.steps[0].fetchContent(!0))}))}),y.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:Ep,resetBadgeAriaLabel:function(){var e=F.getResourceCenterBadge();{var t;e&&(e=e.element(),t=e.getAttribute("data-pendo-stashed-aria-label"))&&e.setAttribute("aria-label",t)}},getNotificationBubbleAriaLabelAttribute:Cp,updatePseudoStyleSelectors:Pp,hideRCBadge:Dp};function $l(e){return e.steps&&e.steps.length&&C.isFunction(e.steps[0].fetchContent)}function Zl(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 Yl(t,e){return C.filter(e,function(e){return e&&!e.isFrameProxy&&C.get(e,"attributes.resourceCenter.isModule",!1)&&e.state===t.state})}function Xl(t,e,n,i=!0){if(!ql){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),gp());if(e){var a=k(e).find('[id^="pendo-g-"]')[0];if(a){var s,d=a.getAttribute("data-pendo-guide-id"),u=C.find(Wd(),function(e){return e.id===t}),c=(t!==L.id?(Il(C.get(L.activeModule||L,"steps.0.id")),L.activeModule=u):(s=L.activeModule,Il(C.get(s,"steps.0.id")),delete L.activeModule),C.get(u,"attributes.resourceCenter.integrationProvider")),l=(rp(c)&&pp(c),u.steps[0]),c=Pp(l.domJson),c=(c.props["data-pendo-guide-id"]=u.id,vl(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]),F.adjustResourceCenterWidth(p),"AnnouncementsModule"===Fp(u)&&l.guide.guidesInModule?(el(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"),Zc(k(e)),p.style.left="0px",!n){ql=!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),ql=!1},200)}catch(h){throw ql=!1,h}}return"AnnouncementsModule"===Fp(u)&&(ep(),r=Xu.getGuidesInResourceCenterModule(u,Wd()),(n=C.reduce(r,function(e,t){return t.steps&&t.steps.length&&Wu.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),y.all(n).then(function(){var e=y.defer();return Ut(e.resolve,500),e.promise}).then(function(){L.activeModule===u&&F.renderResourceCenterModule(u,i)})),F.setFocusForResourceCenterModule(c,d),i&&l.onShown("launcher"),c}}}}function Ql(){window.clearInterval(Wl),Wl=null}function ep(){Wl=Wl||window.setInterval(function(){var e=gp();if(!e)return Ql();e=k(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return Ql();var t=k(e).find('ol[id^="pendo-list"]');if(!t.length)return Ql();var n=Zo(t[0]),i=k(t).find("li");if(!i.length)return Ql();for(var r=e.attr("data-pendo-guide-id"),o=L.attributes.notifications.individualCounts[r],a=n.height/3,s=Zo(i[i.length-1]).bottom-30<n.top+n.height,d=0;d<i.length;d++){var u=k(i[d]),c=u.hasClass("pendo-unseen-announcement"),l=u.attr("data-pendo-announcement-send-seen-event");if(c||l){if(Zo(i[d]).top-n.top>n.height-a&&!s)break;var p=u.attr("data-pendo-announcement-guide-id"),l=C.find(Wd(),function(e){return e.id===p});if(!l)break;c&&(u.removeClass("pendo-unseen-announcement"),c=u.find(".pendo-unread-announcement-mini-bubble"),Ce(10)?u.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"),Mp(l)||o--,Np(o,r)),l.steps[0].seenState="advanced",Hg(l.id,l.steps[0].id,b(),"whatsnew",l.language,{last_updated_at:l.steps[0].lastUpdatedAt}),u[0].removeAttribute("data-pendo-announcement-send-seen-event"),Wg(l.id,l.steps[0].id,b(),"advanced",l.language)}}},500)}function tp(e,t){return Bl.findExtensionByNameAndProvider(e,t)}function np(e,t){e=Bl.findExtensionByNameAndProvider(e,t);if(!e)return x.info(t+" integration has not been loaded into the agent");rp(t)&&op(t)?L.hasEligibleNativeIntegrationModule=!0:($o((t=e.getFrame())[0])||t.appendTo(ou()),t.css({display:"none"}))}function ip(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging"]}function rp(e){return!!e&&0<=ip().indexOf(e)}function op(e){return!!e&&null!==(e=ap(e))&&C.isFunction(window[e])}function ap(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 sp(e,t){if(e)if(op(e))dp(e,t);else{var n;if("function"==typeof Object.defineProperty){const i=ap(e);null!==i&&(Vl&&Vl[i]?Vl[i][e]||(Vl[i][e]={installed:!1,integrationObj:t}):((Vl=Vl||{})[i]={[e]:{installed:!1,integrationObj:t}},Object.defineProperty(window,i,{get(){return n},set(e){n=e,C.forEach(Vl[i],function(e,t){const n=e.integrationObj;!e.installed&&op(t)&&(e.installed=!0,dp(t,n),np(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 dp(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=cp(i);up(n,"webWidget","hide"),up(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),up(n,"webWidget:on","close",function(){up(n,"webWidget","hide"),lp()}),L.isInProgress()&&hp(L.activeModule),up(n,"webWidget:on","chat:unreadMessages",function(e){Np(e,"chat")});break;case"zendesk-messaging":i=t;up(i=i.data.provider.name,"messenger","hide"),up(i,"messenger:on","close",function(){lp()}),up(i,"messenger:on","unreadMessages",function(e){Np(e,"chat")});break;case"intercom-chat":var r=t;r=cp(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(){lp()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=Nl();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 Np(1,"chat")})}),window.drift.on("chatClose",function(e){Np(0,"chat"),window.drift.hide(),lp()})}}function up(e,...t){try{Kl&&Kl[e]||window.zE.apply(null,t)}catch(n){Kl?Kl[e]=!0:Kl={[e]:!0}}}function cp(e){e=C.get(e,"data.options.labels.position");return e=e&&e.split("-")}function lp(){Lp(L.activeModule),delete L.activeModule,L.continueToNativeModule=!1}function pp(e,t){if(e){var n=Nl();if(L.isShown()&&L.hide(),Kl&&Kl[e])x.info(e+" integration failed to communicate with API, closing"),F.replaceResourceCenterContent(L.id,undefined,!0),lp();else{var i=mp();switch(i&&Dp(i,L),e){case"zendesk-messaging":up(e,"messenger","show"),up(e,"messenger","open");break;case"zendesk-native-kb":up(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),up(e,"webWidget","show"),up(e,"webWidget","open");break;case"zendesk-chat":up(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&up(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})}Np(0,"chat"),!L.activeModule&&t&&(L.activeModule=t).steps[0].onShown("launcher")}}}function hp(e){e&&!e.isTopLevel&&(pp(C.get(e,"attributes.resourceCenter.integrationProvider")),L.activeModule||(L.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function fp(){return L}function gp(){return C.get(L,"steps.0.guideElement.0")}function mp(){if(L&&L.id)return zd[L.id]}function vp(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 yp(e){return e&&C.all(e,function(e){return $o(e&&e.length?e[0]:e)})}function bp(){var e,t=F.getResourceCenter(),n=C.get(t,"attributes.notifications");n&&(n=F.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&C.get(t,"attributes.activation.selector")&&(e=k(t.attributes.activation.selector)).length&&F.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function wp(e){return C.reduce(e,function(e,t){return e+t},0)}function Sp(){var e,t=L;t&&(t=C.get(t,"attributes.notifications"))&&(e=gp())&&k(e).find("._pendo-resource-center-home-list").length&&C.each(t.individualCounts,function(e,t){Ip(e,t)})}function Ip(e,t){var n=F.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 Ep(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function Cp(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function xp(e,t,n){var i=Cp(n);let r=e.getAttribute(i);r&&(Ep(e),r=r.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",r));var i=C.get(t,"position","top-left"),o=A(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=F.resourceCenterIgnoreRtl();Tp(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 _p(e,t,n){var i=yo(e,e),r=yo(e,Vo());Tp(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 Tp(e,t,n,i,r){var o,a;yp(Jl)?(a=(o=kp(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=C.extend(a,i),o=C.extend(o,r),Jl.bubbleEle.css(a),Jl.unseenCountEle.css(o),Jl.unseenCountEle.text()!=""+n&&Jl.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&&Ap(Jl=Rp(t,n,i,r),e)}function kp(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 Rp(e,t,n,i){var r=kp(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),Ce(10)||hl()||(i="rgb("+(r=vp(e["background-color"])).r+", "+r.g+", "+r.b+")",Yu(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 Ap(e,t){e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function Op(){var n=Jl?Jl.bubbleEle:k(".pendo-resource-center-badge-notification-bubble"),i=Jl?Jl.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)}),Jl=null,F.resetBadgeAriaLabel()}function Np(e,t){var n=L;n&&(n=C.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,F.updateNotificationBubbles())}function Mp(e){return!(!C.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function Lp(e){var t=C.get(e,"attributes.resourceCenter.isModule",!1)?e:F.findShownResourceCenterModule();t&&(t=C.first(t.steps),Eg(t));t=(C.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:F.findResourceCenterHomeView(Wd())).steps[0];return Eg(t)}function Fp(e){return C.get(e,"attributes.resourceCenter.moduleId")}function Pp(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 Dp(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete zd[t.id])}var Up=1e4,Gp="lastStepAdvanced";function Bp(e){g.dispatch("guideState/updateLastGuideStepSeen",e),g.dispatch("guideState/write"),g.dispatch("frames/changeLastGuideStepSeen",e)}function zp(){g.dispatch("guideState/regainFocus")}function Hp(){return g.state.guideState.lastGuideStepSeen}var i={actions:{init(e){e.getters.storage().registry.addLocal(Gp),e.commit("setScopedStorageKey",Pt(e.state.storageKey)),m.identify.on(function(e){Wn(e)&&Rn([Gp])})},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&&(x.info("making sure that seenState = '"+e.state+"' for "+n+": "+r),t.seenState=e.state),t.snoozeEndTime!=e.snoozeEndTime&&(x.info("making sure that snoozeEndTime = '"+e.snoozeEndTime+"' for "+n+": "+r),t.snoozeEndTime=e.snoozeEndTime),t.seenReason!=e.seenReason&&(x.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),x.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),I.lastGuideStepSeen=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)}));x.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)&&(eh(),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||(th(),nh())),n&&Vm()}},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:Up,storageKey:Gp,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()}}},jp={canDisplay:function(e,t,n){if(n&&n.enabled&&C.isFinite(t)){t=Jp(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 qp(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,Wp),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=jp.lastDismissedTime(t),n=jp.canDisplay(v(),n,t.throttling);if((qp(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:Jp};function Wp(e){return e&&/auto/.test(e.launchMethod)}function qp(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||C.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function Jp(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 Vp(t){return m.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+"?"+Qr(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=Kr(e).substring(1),t=Xr(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=Kr(e.substring(n+1)).substring(1),C.extend(t,Xr(n))),t}}var Kp=C.memoize(function(){return Vp(N)});function $p(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 Zp{constructor(){this.name="autoDisplay",this.queue=[]}markDirty(){pu()&&(this.queue.push("permalink","continuation"),this.queue.push(...jp.sortAndFilter(jd(),I.autoOrdering)))}process(e){if(dg())this.cancel();else{var t=this.queue.shift();if("permalink"===t)return Kp().tryDisplay();if("continuation"===t){var n=$p(jd(),Hp());if(n)return e.saveContext(n),n.show("continue")}else if(t){if(!$p(jd(),Hp()))return e.saveContext(t),jp.tryDisplayGuide(t,I);this.cancel()}}}handleProcessTimeExceeded(e){e=e.getContext();e&&x.warn("Auto display ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var Yp=null,Xp=500,Qp=function(e){Yp=C.delay(function(){Yp=null,nh()},e=e||Xp),I.guidesProcessingThreadHandle=Yp},eh=function(){Yp&&(clearTimeout(Yp),Yp=null,I.guidesProcessingThreadHandle=Yp),g.dispatch("guideUpdate/stopScheduledUpdate")},th=function(){hg(),ph.cancel();for(var e=0;e<Bd.length;e++){var t=Bd[e];t.parentNode.removeChild(t)}Bd.length=0,g.dispatch("guideUpdate/stopObserver"),m.guideLoopStopped.trigger()},nh=function(){if(eh(),Jm.pending||om&&I.id&&I.id!==om.id)x.info("guides are loading.",{contexts:["guides","loading"]});else if(Fm())x.info("guides are disabled.",{contexts:["guides","disabled"]});else if(Pm())x.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!g.getters["guideState/tabLostFocus"]())try{var e=Yd();e&&0!==e.length&&(g.dispatch("guideUpdate/startObserverIfNeeded"),ph.isComplete()&&ph.markDirty(),g.getters["frames/leaderExists"]())&&ph.process()}catch(t){ph.cancel(),x.critical("ERROR in guide-loop",{error:t})}finally{ph.paused||(ph.isComplete()?(g.state.guideUpdate.useObserver&&!g.state.guideUpdate.needsUpdate||Qp(),m.guideUpdateComplete.trigger()):Qp(50))}};var ih=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)),nh()},rh=function(){Fm()||Um(!0),th(),am()};class oh{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 ah{constructor(){this.name="badge",this.queue=[]}markDirty(){this.queue.push.apply(this.queue,C.filter(qd(jd()),eu))}process(e){var t=this.queue.shift();e.saveContext(t),t&&t.placeBadge()}handleProcessTimeExceeded(e){e=e.getContext();x.warn("Badge ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}function sh(i,e){var r,o,t,n,a;F.isFullyCustom(i)||(r=!1,o=[],t=C.filter(i.modules,function(e){var t,n;return!!e&&(!!F.isIframeModule(e)||!!F.isSandboxModule(e)||(F.isIntegrationModule(e)?!!F.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,F.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)&&F.replaceResourceCenterContent(i.moduleIdToReplaceHomeViewWith,undefined,!0),t&&(n=C.find(t,function(e){return e.isContinuation(Hp())}),a=C.get(n,"attributes.doNotResume"),e=C.get(n,"attributes.resourceCenter.integrationProvider"),F.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&&F.replaceResourceCenterContent(i.activeModule.id,undefined,!0),e||F.replaceResourceCenterContent(i.id)),F.repositionResourceCenter())}function dh(e,t,n){var i,r,o=zd[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&&F.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=zd[e.id]),o&&o.show(),e.badgeHidden=!1)}function uh(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&&F.isSupportedNativeIntegration(n),F.isFullyCustom(e)?e.hasResourceCenterContent=!0:(e.isShown()||!g.getters["frames/isLeader"]()?sh(e,dh):(t=e,n=dh,F.isFullyCustom(t)||(i=[],o=[],(r=C.find(t.modules,function(e){return!!F.isIframeModule(e)||!!F.isSandboxModule(e)||!!F.isIntegrationModule(e)&&(!!F.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=zd[e.id])&&F.hideRCBadge(a,e),"dom"===e.launchMethod&&(F.updateNotificationBubbles(),F.adjustNotificationBubbleForResize())))}class ch{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 lh{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 ch(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,nh())},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 oh(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()&&Vd.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 ph=new lh([new ah,new oh("resourceCenter",function(){uh(F.getResourceCenter())}),new oh("frameVisibility",function(){g.dispatch("frames/checkFrameVisibility")}),new oh("guideShowing",function(){var a=$m();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("."+rg),(r=r.find("#pendo-guide-container")[0])&&r.textContent&&(r=A(r).fontSize,e.attributes.currentTextZoomFontSize!==r)&&(e.attributes.currentTextZoomFontSize&&e.redraw(),e.attributes.currentTextZoomFontSize=r),e.elementPathRule&&n&&!s.matchesSelector(n,e.elementPathRule)?e.hide():(r=ua(t),o=!0,n&&r&&e.elementContainsRulesList&&(o=Mg(n,e.elementContainsRulesList),r=o),t&&(r||i.hasClass("mouseover"))?e.checkPlacement():("tooltip"===e.type||"tooltip"===e.attributes.calculatedType)&&ca(t)&&o||e.hide()))}),a.guide.checkForHiddenGroupSteps())}),new Zp]);function hh(){ph.addPhase(...arguments)}function fh(){ph.removePhase(...arguments)}function gh(){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 mh="debug-enabled";function vh(){try{var e=JSON.parse(h.read(mh,!0)||Mt(mh));return"boolean"==typeof e?{enabled:e}:e||{}}catch(t){return{}}}function yh(e=!0){let t;return t=g&&g.getters&&g.getters["debugger/debuggingEnabled"]?g.getters["debugger/debuggingEnabled"]():!0===vh().enabled,e?t:t?"Yes":"No"}class bh{constructor(e,t){this.type=t,this.identificationFn=e}test(e){return this.identificationFn(e)}}const wh=(()=>{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:()=>{m.resourceFetchFail.on(e)},stop:()=>{m.resourceFetchFail.off(e)},addTypeHandler:(e,t)=>{C.isFunction(t)?n[e.type]={GuideType:e,handler:t}:x.error("Invalid Handler function provided for type "+e.type)}}})();wh.addTypeHandler(new bh(eu,"badge"),(e,t)=>{Vd.addGuide(e)});var Sh="_pendo-badge_";function Ih(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function Eh(t,n){var e,i,r,o,a,s=du(n),d=!(null==(d=null==t?void 0:t.attributes)||!d.resourceCenter),u=!1;return d&&(u=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=d?["he","ar"]:[],e=>(C.contains(a,o)&&(e.props["data-localization-direction"]=!0),e)),(r=u,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}),Ih,Hu,function(e){return vl(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=zu(this.imageUrl),i.className="_pendo-badge "+Sh,d=this.width||13,u=this.height||13,Uo(i,"width:"+d+"px;height:"+u+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=C.isFunction(n.getGuide)&&n.getGuide(),t=Ug(e);!e.isShown()||g.getters["frames/isShownInAnotherFrame"]()(n)?Bg(n,"badge"):t?n.eventRouter.eventable.trigger("pendoEvent",{step:n,action:"dismissGuide"}):(t=C.find(e.steps,function(e){return e.isShown()}),Eg(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),Il(t.id),C.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},Ug(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}Eh.create=function(n){var i=Eh.findStep(n);if(i)return C.reduce(Eh.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},Eh.findStep=function(e){var t=C.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},Eh.behaviors=[gh,Eh,function(){"inline"!==this.position&&"inline-right"!==this.position&&"inline-left"!==this.position||this.before("show",function(){var e,t=this.target(),n=this.element();this.isP2Badge&&Uo(n,"display:inline-block;vertical-align:text-bottom;"),this.css&&Uo(n,this.css),t&&t.tagName&&(e=t.tagName.toLowerCase(),/br|input|img|select|textarea/.test(e)?n.parentNode!==t.parentNode&&t.parentNode.insertBefore(n,t.nextSibling):n.parentNode!==t&&("inline"===this.position||"inline-right"===this.position?t.appendChild(n):"inline-left"===this.position&&t.prepend(n)))});return this},function(s){this.position&&"top-right"!==this.position&&"top-left"!==this.position||this.before("show",function(){var e=this.element(),t=jo(this.target()),n=0,i=0,r=0;if(this.offsets&&(n=this.offsets.top||0,i=this.offsets.right||0,r=this.offsets.left||0),!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"}Uo(e,o)}if(!e.parentNode){ou().appendChild(e);const a=oa(Ir,this.target(),kh);this.removeScrollHandlers=()=>{kh.cancel(),a()}}});return this},function(){"over"===this.position&&this.before("show",function(){var e=this.element(),t=jo(this.target()),n="position:absolute;top:"+t.top+"px;left:"+t.left+"px;";if(n+="height:"+t.height+"px;width:"+t.width+"px;",Uo(e,n+="background-color:transparent;"),!e.parentNode){ou().appendChild(e);const i=oa(kh,e,this.target());this.removeScrollHandlers=()=>{kh.cancel(),i()}}});return this},function(){var t=this,e=t.element(),n=!1,i=function(e){t.activate(),t.toggleAriaExpanded&&t.toggleAriaExpanded(),Ud(e)};return t.after("show",function(){n||(l(e,"click",i),n=!0)}),t.after("hide",function(){Dd(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){Cr(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}(Cr(e))||o()},50,{trailing:!1}),r=function(e){n.isShown()||Bg(n,"badge"),l(document,"mousemove",i),Ud(e)},o=function(e){Dd(document,"mousemove",i),iu()||Eg(n)},this.after("show",function(){e||(l(t,"mouseover",r),e=!0)}),this.after("hide",function(){Dd(t,"mouseover",r),Dd(document,"mousemove",i),e=!1}))}return this},function(){var s=this.element(),d=this.target(),e=!1;{var t,n,i,r,u;!this.showBadgeOnlyOnElementHover&&!/hover/.test(this.showOnEvent)||iu()||(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;Cr(e)===d||Cr(e)===s||Oo(s,"triggered")||(t=e.clientX,e=e.clientY,n=Zo(d),i=Zo(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)||u()},50,{trailing:!1}),r=function(){Uo(s,t),l(document,"mousemove",i)},u=function(){Dd(document,"mousemove",i),Uo(s,n)},this.after("show",function(){e||(l(d,"mouseover",r),e=!0,u())}),this.after("hide",function(){e&&(Dd(d,"mouseover",r),e=!1),u()}))}return this}];var Ch=function(e,t){var n,i,r=(t=t||zd)[e.id],o=r?r.step():Eh.findStep(e);o&&(i=r?r.target():du(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||(F.updateNotificationBubbles(),n=!0,o.elementContainsRulesList&&(n=i&&Mg(i,o.elementContainsRulesList)),(i=o.elementPathRule&&ua(i)&&s.matchesSelector(i,o.elementPathRule)&&n)?((r=r||Eh.create(e)).show(),t[e.id]=r):r&&!o.isShown()&&(t[e.id]=undefined,r.hide()),yh()&&m.stepEligibility.trigger({stepId:o.id,guideId:e.id,eligible:i,reason:"target_element_badge"}),F.repositionDoubleResourceCenterBadge()))},xh=function(){C.map(zd,_h),zd={}},_h=function(e,t){e&&(C.isFunction(e.hide)&&e.hide(),C.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete zd[t.id]},Th=function(e){var t=zd[e.id];t&&_h(t,e)};var kh=C.throttle(function(){C.map(zd,function(e){e&&e.show&&e.show()})},10);const Rh=h.getLocal();var P,Ah="pendo-preview",Oh="current-guide-preview";function Nh(e){return g.dispatch("preview/load"),Mh(e)}function Mh(t){var e=Kh();if(e)return Fh(t),g.dispatch("preview/start",C.extend(e)),h.clear(Gp),Nt(!1),ts.lock(),cm=Xh,m.startPreview.trigger(),m.leaderChanged.on(function(e){g.dispatch("preview/write"),e.oldLeaderId||Vm(),g.getters["frames/isLeader"]()||(k(P).remove(),P=null,t.removeEventListener("message",Dh))}),hh(Lh),!0}function Lh(){if(!g.getters["frames/isFollower"]()){var t,n,i,r,o,e,a=document,s=Yd(),d=Hp();if(Uh()&&(t=Kh())&&P&&P.contentWindow)if(s&&s.length){P.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=d||{},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,d=r-1<=i,s=s||d,d=d?r-1:i,e=n.steps[d],p=e.isShown(),P.contentWindow.postMessage({mutation:"preview/setHostname",payload:{hostname:He}},location.origin),P.contentWindow.postMessage({mutation:"preview/setGuidePages",payload:{guidePages:n.previewPages}},location.origin),P.contentWindow.postMessage({mutation:"preview/setGuideProgress",payload:{guideName:n.name,guideAttributes:JSON.stringify(n.attributes),guideLaunchMethod:n.launchMethod,guideActivationSelector:uu(n),isAdoptGuide:n.isTraining,isResourceCenter:t.isResourceCenter,stepId:e&&e.id,currentStepIndex:d,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 u=e,c=d,l=P;if(u&&l&&l.contentWindow){const h=u.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:u.id,guideId:h,currentStepIndex:c})),y.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):u.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 Wh(0,{status:404,data:"Guide not found"})}return!0}function Fh(e){if(g.getters["frames/leaderExists"]()){if(!g.getters["frames/isFollower"]()){if(P)return!0;var t,n;C.isFunction(e.addEventListener)&&e.addEventListener("message",Dh),(t=document.createElement("iframe")).id=Ah,Go(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")||io("pendo.preview.min.js"),t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},P=t,Vo().appendChild(P)}}else m.one("leaderChanged",C.partial(Fh,e))}function Ph(e,t,n){hg(),g.commit("healthCheck/resetStepStatus",null,{root:!0}),Wu.reset(),Vm();var i=e[0],i=(i&&C.each(i.steps,function(e){e.seenState=null}),h.clear(Gp),g.dispatch("preview/update",null),Kh());return i&&(i=C.findWhere(e,{id:i.guideId}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),g.dispatch("preview/restart",i)),jh(e,t)}function Dh(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===Ah+"::exit"?(qh({preventWindowClose:n}),g.dispatch("frames/stopPreview",{preventWindowClose:n})):t===Ah+"::restart"?(n=Ph(Yd(),Hp(),e.data.language),g.dispatch("guideState/forceExpire"),g.dispatch("guideState/updateLastGuideStepSeen",n),g.dispatch("frames/restartPreview")):t===Ah+"::resize"?(n=e.data.height,P&&P.style&&(P.style.height=n)):t===Ah+"::request-preview-mode-type"&&(e=$h(),P)&&P.contentWindow&&e&&P.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:e.previewModeType||"NEW_TAB"}},location.origin))}function Uh(){return g.getters["preview/isInPreviewMode"]()}function Gh(){return g.getters["preview/isInDesignerPreviewMode"]()}function Bh(e){var t,n,i=Kh();if(!i)return e;if(i.isResourceCenter)return r=e,t=i,n=F.findResourceCenterHomeView(r),r=C.filter(r,function(e){return e.id!==n.id}),Hh(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"))}),zh(t),t.showsAfter=null,t.expiresAfter=null,Hh(t,o.stepId),r}}function zh(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function Hh(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 jh(e,t){null==t&&(t={});var n=Kh();if(!n)return t;e=C.findWhere(e,{id:n.guideId});if(!e)return t;if(n.state)return n.state;zh(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:n.guideId,guideStepId:n.stepId,state:"active"}:{}}function Wh(e,t){P&&P.contentWindow&&P.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:t}},location.origin)}function qh(e){var t=$h(),n=!1,i=(t&&(n="SAME_TAB"===t.previewModeType),Rh.getItem("pendo-navigation-state"));if(g.dispatch("preview/exit"),hg({stayHidden:!0}),h.clear(Gp),ts.unlock(),k(P).remove(),cm=bu,fh(Lh),Nt(!0),n&&i){Rh.setItem(Oh,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(),Vm()}function Jh(e,t){e=C.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function Vh(){return g}var Kh=C.partial(Jh,Vh,"state.preview.preview"),$h=C.partial(Jh,Vh,"state.preview.designerPreview");function Zh(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 Yh=function(e){var t;return wa(e.origin)?(t=Zh(e))?(t={url:e.origin+t+"?url="+vt(R.externalizeURL())+"&apiKey="+I.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),_r(t).then(function(e){return e.data.guide})):(x.info("Invalid guide url, exiting preview"),y.reject("invalid guide url")):(x.info("Invalid origin, exiting preview"),y.reject("invalid origin"))},Xh={load(e,t,n){return ef(e,n)},post(e,t,n,i){return ef(e,i)},endpoint(){return""},usesXhr(){return!0}};function Qh(n,t){if(!wa(n.origin))return x.info("Invalid origin, exiting preview"),y.reject("invalid origin");var e=Zh(n);if(!e)return x.info("Invalid guide url, exiting preview"),y.reject("invalid guide url");if(!g.getters["frames/leaderExists"]()||n.apiKey!==I.apiKey)return I.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),y.resolve();let i=""+n.origin+e+`?url=${vt(R.externalizeURL())}&apiKey=`+I.apiKey;n.childGuides&&n.childGuides.length&&(i+="&childGuides="+n.childGuides.toString()),Gh()&&(i+="&ignoreGuide=true");var e={url:i,withCredentials:!0},r=(n.headers&&(e.headers=n.headers),[]);return _r(e).then(function(e){var t,c,e=e.data;return Gh()?(t=$h(),r=t?Gh()?(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(u){C.forEach(u.steps,function(e){var{domHash:t,domJsonpHash:n,translationHash:i,originalDomJsonHash:r,originalDomJsonpHash:o,originalBuildingBlockHash:a,domHash256:s,domJsonpHash256:d}=C.get(u,"translationStates."+c+".stepTranslations."+e.id,{});e.domUrl=tf(r,e.domUrl,".dom.json",s),e.domJsonpUrl=tf(o,e.domJsonpUrl,".dom.jsonp",d),e.buildingBlocksUrl=tf(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),I.guideWidget={enabled:!1,data:{guideCssUrl:e.guideCssUrl}},I.guideCssUrl=e.guideCssUrl,I.normalizedUrl=e.normalizedUrl,I.throttling=undefined,e.guide}).then(function(e){var t;return n.watermarkConfig?(t=JSON.parse(JSON.stringify(n)),t=Object.assign(t,n.watermarkConfig),Yh(t)):e}).then(function(e){e&&e.attributes&&e.attributes.isWatermark&&r.push(e),I.guidesPayload({id:t,lastGuideStepSeen:jh(r,I.lastGuideStepSeen),guides:Bh(r)})})["catch"](function(e){return Wh(document,e),y.reject(e)})}function ef(e,t){var n=Kh();return!n||!Zh(n)||!(e=/[?&]id=(\d+)/.exec(e))||e.length<1?y.reject():Qh(n,e[1]).then(t)}function tf(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 nf=function(){let n=null,i=[];const r=e=>{I.apiKey=e+="",n=e};return{getApiKey(){return I.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),I.additionalApiKeys=i,!n&&i&&i.length&&r(i[0])},getAdditionalApiKeys(){return I.additionalApiKeys},tamperedWith(){return I.apiKey!==n||I.additionalApiKeys!==i}}}(),rf=h.getLocal();of=Pe||He,af="in-app-designer",sf="latest",m.leaderChanged.on(function(){uf({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||Gh()})});var of,af,sf,df={launchDesigner:function(e){var t,n="latest",i="designer";Yu(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%;}"),yf("designer-shims",of+"/"+i+"/"+n+"/plugin.js"),I.DESIGNER_VERSION?mf(n,i):t=window.setInterval(function(){I.DESIGNER_VERSION&&(mf(n,i),clearInterval(t))},100)},launchInAppDesigner:gf,localStorageNavigation:uf,launchOnToken:function(e){if(!bf(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=lf(t),n=ff(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),gf({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,df.hostConfig.host)},isValidDesignerHost:cf,isValidTarget:hf,addCommunicationIframe:function(e,t){e=e||{};C.isFunction(t)||(t=C.noop);var n=ff(e),e=pf(e),i=(new Date).getTime(),r=(df.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=vf(r,of+"/"+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:of},isDesignerFrame:bf,addScriptToPage:yf};function uf(e){if(!e.ignoreLocalStorageNavigation){var t,e=rf.getItem("pendo-navigation-state");if(e&&g.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(n){return}if(!t.apiKey||t.apiKey===nf.getApiKey())if(t.apiKey||!t.agentInstallType||t.agentInstallType===we())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},df.launchInAppDesigner(e),!0}}}function cf(e){return!!e&&wa(e)}function lf(e){var e=(e=e||{}).host||of,t=cf(e),n=t?e:He;return e&&!t&&x.info("Invalid host, falling back to "+He),n}function pf(e){var e=(e=e||{}).gcsBucket||af,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:af;return t||x.info("Invalid bucket, falling back to "+af),e}function hf(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 ff(e){e=e||{};var t=f.get("enableCrossOriginIsolation")?"strict":sf,e=e.target||e.baseFolder||t,t=hf(e),e=t?e:sf;return t||x.info("Invalid target, falling back to "+sf),e}function gf(e){if(!bf(window.name)&&!I.designerLaunched)if(f.get("disableDesigner"))x.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){}df.crossFrameChannel===undefined&&(df.crossFrameChannel=D,df.useCrossFrameChannel=!0),ja()&&a&&!e.allowChildFrame&&!e.selectionOnly?x.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):I.isReady()?(I.designerLaunchTime=(new Date).getTime(),a=lf(e=e||{}),r=pf(e),o=ff(e),i=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+r+"/"+o+"/"+i,f.get("useAssetHostForDesigner")&&(n=io(i)),df.hostConfig={gcsBucket:r,baseFolder:o,uniqueWindowId:e.uniqueWindowId,host:a,adoptv2:e.adoptv2,DADesigner:e.DADesigner,agentInstallType:we(),forceNativeDesigner:!!e.forceNativeDesigner,sidebarDesigner:!!e.sidebarDesigner,apiKey:nf.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)&&(df.addScriptToPage(t,n,i),I.designerLaunched=!0),!e.forceNativeDesigner&&C.isFunction(r)&&(r(t,n,i),I.designerLaunched=!0)):x.error("Unable to launch the designer, the agent has not been initialized. Please use `pendo.initialize` prior to launching the designer")}}function mf(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+="__"+df.windowCommunicationId,(t=vf("pendo-designer-iframe",of+"/"+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 vf(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&Uo(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 yf(e,t,n){var i;document.getElementById(e)||((i=document.createElement("script")).setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=Z(I).createScriptURL(t),n&&C.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function bf(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(n){return!1}}wf={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"},Sf={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},(If={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370}).FOOTER_HEIGHT=1.25*If.HEADER_HEIGHT,If.BODY_HEIGHT="calc(100% - "+If.HEADER_HEIGHT+"px - "+If.FOOTER_HEIGHT+"px)",Ef='<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>',(Cf={})["#"+wf.closeButton+":hover"]={"background-color":Sf.GRAY_LIGHTER_6},Cf["#"+wf.launchButton+":hover"]={"background-color":Sf.TEAL_DARKER+" !important"},xf={PRIMARY_FONT:"Helvetica Neue"};var wf,Sf,If,Ef,Cf,xf,_f={listen:function(){return C.isFunction(document.addEventListener)?(document.addEventListener("keyup",Tf,!1),()=>{document.removeEventListener("keyup",Tf,!1)}):()=>{}},launchOnLocalStorageToken:Lf,ids:wf,removeElement:Of,attemptToLaunch:Af,loadPluginJs:function(){var t;I.designerLaunched||(t=C.once(function(e){Lf(e,!0)}),qa(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}};function Tf(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&Af(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&Af(!1,!0)}function kf(e,t){var n,i,r,o={"background-color":Sf.WHITE,height:If.MODAL_HEIGHT+"px","min-height":If.MODAL_HEIGHT+"px",width:If.MODAL_WIDTH+"px",position:"fixed",top:If.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-If.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=Rf("div",wf.container,o);Yu(f,wf.style,C.reduce(C.pairs(Cf),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=Rf("div",wf.header,{"background-color":Sf.GRAY_PRIMARY,height:If.HEADER_HEIGHT+"px","min-height":If.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(i=Rf("div",wf.logoContainer,{height:"38px",width:"44px","background-color":Sf.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=Z(I).createHTML(Ef),r.appendChild(i),(i=Rf("div",wf.title,{width:"100%",display:"flex","align-items":"center","font-family":xf.PRIMARY_FONT,"font-size":"18px",color:Sf.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=t?"VIA Designer":"Pendo Designer",r.appendChild(i),r)),o.appendChild(((t=Rf("div",wf.body,{height:If.BODY_HEIGHT,"min-height":If.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":xf.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=Rf("div",wf.footer,{"align-items":"center","border-top":"1px solid"+Sf.GRAY_LIGHTER_6,display:"flex",height:If.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":If.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(r=Rf("button",wf.closeButton,{"border-radius":"3px",border:"none",height:If.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":xf.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(){Of(wf.container),Of(wf.commIframeId)},(t=Rf("button",wf.launchButton,{"background-color":Sf.TEAL_PRIMARY,"border-radius":"3px",color:Sf.WHITE,border:"none",height:If.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":xf.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(){Lf(n)},i.appendChild(r),i.appendChild(t),i)),document.body.appendChild(o)}function Rf(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),C.extend(e.style,n),e}function Af(t,n){var i,r,o;I.designerLaunched||(o=C.once(function(e){t||!n?Lf(e):kf(e,t),Nf()}),qa(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(wf.commIframeId)&&Mf()},100))):Nf())}),df.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){Mf(),i=window.setInterval(Mf,50)}))}function Of(e){document.getElementById(e)&&document.getElementById(e).remove()}function Nf(){var e=document.querySelector("#"+wf.commIframeId+'[src*="pendo"]');e&&e.remove()}function Mf(){var e=document.getElementById(wf.commIframeId);e&&e.contentWindow&&C.isFunction(e.contentWindow.postMessage)&&e.contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:I.visitorId},C.get(I,"designerv2.hostConfig.host",He))}function Lf(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),Of(wf.container),df.launchInAppDesigner(n)}var Ff=C.wrap(C.wrap(C.once(C.wrap(function(e){var t=y.defer();return xa(e,function(){t.resolve()}),t.promise},function(e,t){return 0<C.size(yu._handlers.validateGlobalScript)?_r.get(t).then(function(e){return yu.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)})),function(e,t){return t?e(t):y.resolve()}),function(e,t){return f.get("preventCodeInjection")?y.resolve():e(t)}),Pf={initializeWatermark:function(e){e=C.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),Pf.watermarkGuides=e,e=C.map(e,function(e){return e.fetchContent()});return y.all(e)},buildWatermark:function(e,t){if((e=e||{}).isTraining){var n=e.targetAccount?function(t){return C.find(Pf.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return C.find(Pf.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 Df=1e4;function Uf(n,i){var r=!1;const o=[];return n.addEventListener("message",function(e){d(e.data),i.state.guideUpdate.useObserver&&i.dispatch("guideUpdate/documentChanged")}),{postMessage:a,postMessageAsPromise:s,postMessageOrTimeout:function(e,t=Df){const n=y.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:I.apiKey,allowMixedApiKeyFrames:f.get("allowMixedApiKeyFrames"),agentInstallType:we()},e),n.postMessage(t),Ut(function(){d(t)},0))}function s(e){e.promiseId||(t=at(32),e=C.extend(e,{promiseId:t}));var t=y.defer();return o[e.promiseId]=t,a(C.extend(e,{sourceFrame:i.state.frames.frameId})),t.promise}function d(e){try{var t;r||e.apiKey!==I.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){x.critical("ERROR in cross frame channel",{error:n})}}}var Gf="frames/removeFrame";function Bf(e,t,n){return new zf(e,t,n,(e=t,t=n,new(C.isFunction(e.MessageChannel)?Hf:jf)(e,t)))}function zf(e,t,n,i){this.init(e,t,n,i)}C.extend(zf.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===Gf)&&this._topMessageHandler(e)},_topMessageHandler(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===Gf&&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()}});_i={_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 Hf(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function jf(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(Hf.prototype,_i,{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===Gf&&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(jf.prototype,_i,{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)}});Wf=window,qf=wa,Vf=!(Jf=[]);var Wf,qf,Jf,Vf,Kf={targetOrigin(){return Vf?location.origin:"*"},secure(e){Vf=e},addEventListener(e){0===Jf.length&&Wf.addEventListener("message",$f),Jf.push(e)},removeEventListener(e){e=Jf.indexOf(e);0<=e&&Jf.splice(e,1),0===Jf.length&&Wf.removeEventListener("message",$f)},close(){Wf.removeEventListener("message",$f),Jf.length=0}};function $f(t){Vf&&!qf(t.origin)||C.each(Jf,function(e){C.isFunction(e)&&e(t)})}function Zf(e){if(!Ue.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"),sn);if(t&&C.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),Bf(e,window,Kf)}var Yf="guides_blocked",Xf="Guides disabled: unreachable endpoint guide.gif";const Qf=h.getLocal();var eg=[],tg="Guide was not shown because this visitor is in a control group of an active experiment for the guide";const ng=[];function ig(){var e=f.get("guideCssAssetPath");return e||io("guide.css")}var rg="_pendo-guide_",og="_pendo_g_",ag=0;function sg(e){ag=e}var dg=function(){return C.any(O,function(e){return e.isShown()})},ug=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"),Ge()?9<Ee&&n.css({top:3}):8===Ee?n.css({top:9,right:2}):9===Ee?n.css({right:2,top:3}):9<Ee&&n.css({top:3}),e=k("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},cg=function(n){return C.reduce(O,function(e,t){return n(t)&&e.push(t),e},[])},lg=function(e,t,n,i,r,o){e=Zd(N(e),t);e&&(e.seenState=n,e.lastSeenAt=i,e.destinationStepId=o,r!==undefined)&&(e.dismissCount=r)},pg=function(e){for(var t=new RegExp("^"+og);e;){if(C.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function hg(t){C.each(O,function(e){C.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var fg=function(e){return e&&e.guideId};var gg=function(e,t){var n,i;return fg(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?pg(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||Eo("findStepForGuideEvent: step with id "+i):(t=C.find(n.steps,function(e){return e.isShown()}))||Eo("findStepForGuideEvent: no step shown"),t):void 0},mg=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=su(e);"tooltip"===e.type&&C.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Dd(n,t,_g,!0)};function vg(e){return e.isLocked()&&(!e.elements||!e.elements.length||void Co('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}var yg=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()},bg=function(e){e=C.get(e,"attributes.activation.selector",""),e=s(e);e.length<1||e[0].focus()},wg=function(){var e=F.getResourceCenterBadge();e?e.element().focus():(e=F.getResourceCenter(),bg(e))},Sg=function(e){if(!I.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=Ug(e);if(C.get(t,"attributes.isAutoFocus")||i)switch(n){case"badge":o&&yg(t);break;case"dom":r&&bg(e);break;case"launcher":wg();break;default:return}}};function Ig(e,t){return!e.isMultiApp&&("auto"===t||"repeatGuide"===t)}var Eg=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=gg(e,t))&&t.id?vg(t)||("dismissed"===t.seenState?x.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(x.info("onGuideDismissed called",{contexts:["guides"]}),m.beforeDismiss.trigger(t).cancel?x.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(mg(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,jg(s,e,b(),i,o),o=v(),lg(s,e,"dismissed",o,r),(a=C.isFunction(t.getGuide)&&t.getGuide())&&a.attributes&&a.attributes.doNotResume||Bp({guideId:s,guideStepId:e,time:o,state:"dismissed",seenReason:i,visitorId:b(),dismissCount:r}),Ig(n,i)&&Jg(o,qg.DISMISSED),t.hide(),Sg(a),dg()||(th(),nh())))):th()},Cg=function(e,t,n){var i,r,o,a,s,d,u,c;x.info("onGuideSnoozed called",{contexts:["guides"]}),(t=gg(e,t))?"snoozed"===t.seenState?x.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):m.beforeSnooze.trigger(t).cancel?x.info("Guide snooze canceled during runtime in step: "+t.id):(n||(n=864e5,x.info("no snooze duration provided, defaulting to 1 day")),vg(t)||(mg(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,d=v(),x.info("snoozing guide for "+n+" ms"),u=d+n,t.snoozeEndTime=u,c=Kg({type:"guideSnoozed",guideId:c=i,stepId:e,visitorId:r,seen_reason:s,language:a,snooze_duration:n}),Yg(c),m.guideSnoozed.trigger(c),lg(i,e,"snoozed",d),o&&o.attributes&&o.attributes.doNotResume||Bp({guideId:i,guideStepId:e,time:d,state:"snoozed",seenReason:s,visitorId:b(),snoozeEndTime:u}),Ig(o,s)&&Jg(d,qg.SNOOZED),t.hide(),Sg(o),dg())||(th(),nh())):(x.info("missing step. can't snooze",{contexts:["guides","error"]}),th(),Eo("onGuideSnoozed: missing step"))},xg=function(e){var t,n,i,r=(r=e&&e.step)||gg(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?x.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?_g(e,r,!1):Tg(e,r)):x.info("[goToStep] guide has no step matching the step id",{contexts:["guides","error"]})):x.info("[goToStep] missing step id to go to",{contexts:["guides","error"]})):x.info("[goToStep] missing current step",{contexts:["guides","error"]})},_g=function(e,t,n){if((s=$m())&&C.each(s.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=su(e);"tooltip"===e.type&&C.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Dd(n,t,_g,!0)}),1===arguments.length&&fg(e)&&(s=Kd(e.guideId),i=gg(),s)&&i&&C.first(s.steps).id===i.id&&C.last(s.steps).id===e.id&&(x.info("Cannot skip to last step from first step"),e=null),x.info("onGuideAdvanced called",{contexts:["guides"]}),(t=gg(e,t))===e&&(e=null),t){if(!vg(t))if("advanced"!==t.seenState||n)if(m.beforeAdvance.trigger(t).cancel)x.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),d=s=s>=r.steps.length?r.steps.length-1:s;!0===e.skip&&(d=a+1);for(var u=a;u<d;++u){t=r.steps[u],Wg(r.id,t.id,b(),t.seenReason,o,u!==a);var c=v();Bp({guideId:t.guideId,guideStepId:t.id,time:c,state:"advanced",seenReason:t.seenReason,visitorId:b()}),lg(r.id,t.id,"advanced",c,undefined,h)}return _g(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||x.info("missing destination step id"),x.info("advancing guide"),Wg(s,i,b(),p,o,n,h),x.info("update guide status"),r&&C.last(r.steps).id===i&&(l=C.get(t,"dismissCount",0)+1),(new Date).getTime()),g=(lg(s,i,"advanced",f,l,h),C.isFunction(t.getGuide)&&t.getGuide());g&&g.attributes&&g.attributes.doNotResume||Bp({guideId:s,guideStepId:i,time:f,state:"advanced",seenReason:p,visitorId:b(),destinationStepId:h,dismissCount:l}),Ig(r,p)&&Jg(f,qg.ADVANCED),x.info("stop guide"),th(),x.info("start guides"),nh()}else x.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else x.info("missing step. can't advance",{contexts:["guides","error"]}),th(),Eo("onGuideAdvanced: missing step")},Tg=function(e,t){var n,i,r,o,a,s;x.info("onGuidePrevious called",{contexts:["guides"]}),(t=gg(e,t))?"advanced"===t.seenState?x.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):m.beforePrevious.trigger(t).cancel?x.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=su(t),"tooltip"===t.type&&C.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):Dd(a,r,_g,!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)||x.info("missing destination step id"),x.info("advancing guide"),Wg(n,t.id,b(),i,r,!1,o),x.info("update guide status"),a=(new Date).getTime(),lg(t.guideId,t.id,"advanced",a,undefined,o),(s=C.isFunction(t.getGuide)&&t.getGuide())&&s.attributes&&s.attributes.doNotResume||Bp({guideId:t.guideId,guideStepId:t.id,time:a,state:"advanced",seenReason:i,visitorId:b(),destinationStepId:o}),th(),nh())):(th(),Eo("onGuidePrevious: missing step"))},kg=function(e){var t;k("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",no()+"/img/tiny-logo.png"),t=k(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:I.TOOLTIP_ARROW_SIZE}).append(t),Bd.push(t[0]),t.appendTo(e))};function Rg(e){return e&&e.attributes&&e.attributes.stayHidden}const Ag=(e,t,n)=>{var i;return yh()&&({id:e,guideId:i}=e,m.stepEligibility.trigger({stepId:e,guideId:i,eligible:t,reason:n})),t};var Og=function(e){var t,n,i=C.partial(Ag,e);return Rg(e)?i(!1,"dismissed"):e.elementPathRule||"lightbox"!==e.type&&"whatsnew"!==e.type?e.triggerElementPathRule&&!ua(s(e.triggerElementPathRule)[0])?i(!1,"trigger_element"):(t=su(e),(n=e.targetElement)&&e.elementContainsRulesList&&!Mg(n,e.elementContainsRulesList)?i(!1,"contains_rules"):(n="tooltip"===e.type||kc.isBuildingBlockGuideRelativeToElement(e),e=ua(t),n?e?i(e,"target_element_tooltip"):i(ca(t),"target_element_tooltip_scroll"):i(e,"target_element"))):i(!0,"")};function Ng(e){var t=(k(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function Mg(e,t){for(var n=Ng(e),i=0;i<t.length;i++)if(!Lg(n,t[i]))return!1;return!0}function Lg(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 Fg=function(e){return og+e.id},Pg=function(e){var t=e.element,n=C.first(k("#"+Fg(e)));t&&n?ua(t)||k.hasClass(n,"mouseover")?Ut(function(){Pg(e)},Xp):e.hide&&(e.hide(),dg())||(th(),nh()):t||!n||e.hide&&(e.hide(),dg())||(th(),nh())},Dg=function(){return!1},Ug=C.partial(C.get,C,"attributes.resourceCenter"),Gg=function(t){var e;dg()&&(e=gg(),mg(e),Ug(t)?(e=cg(Ug),(e=C.filter(e,function(e){return e.id!==t.id})).length&&g.dispatch("frames/hideGuides",C.pluck(e,"id"))):(hg(),g.dispatch("frames/hideGuides")))},Bg=function(e,t){return!(!e||!e.guideId||!(e=N(e.guideId)))&&(Gg(e),e.launch(t),e.isShown())},zg=function(e,t,n,i,r,o){e=Kg({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&C.extend(e.props,{step_poll_types:o}),Yg(e),m.guideNotSeen.trigger(e)};var Hg=function(e,t,n,i,r,o){i||(x.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=Kg({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),s=(C.extend(a.props,o),Yg(a),v());Bp({guideId:e,guideStepId:t,time:s,state:"active",seenReason:i,visitorId:b()}),lg(e,t,"active",s),m.guideSeen.trigger(a)};function jg(e,t,n,i,r){e=Kg({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});Yg(e),m.guideDismissed.trigger(e)}function Wg(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=Kg(e);Yg(t,null,o),m.guideAdvanced.trigger(t)}var qg={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function Jg(e,t){Vg(e,t);var n={};n[t]=e,g.dispatch("frames/changeThrottlingState",n)}function Vg(e,t){C.contains(C.values(qg),t)&&(C.isFunction(e.getTime)&&(e=e.getTime()),I[t]=e,h.write(t,e,Up),g.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function Kg(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=sn.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:Bn(),browser_time:(new Date).getTime(),url:R.externalizeURL(),props:e});return m.eventCaptured.trigger(t),t}var $g=null,Zg=function(e){window.clearTimeout($g),$g=Ut(Tm,e)},Yg=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-ag,Nm(),xm.push(e),Zg(t)},Xg=function(e,t){return"dismissed"===e.state?null:N(e.guideId).nextStep(e,t||Qg())},Qg=function(){return I.normalizedUrl||em(R.externalizeURL())},em=function(e){try{var t=new Jn(e),n=C.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return x.error("Invalid URL provided to normalize"),e}},tm=function(e,t){return!ge(e)||new RegExp(e).test(t)},nm=function(e,t){e=$d(e);return!!e&&(!(t=Bg(C.first(e.steps),t||"api"))&&e.control&&x.info(tg),t)},im=function(e,t){e=N(e);return!!e&&(!(t=Bg(C.first(e.steps),t||"api"))&&e.control&&x.info(tg),t)};function rm(e,t){return t=parseInt(t,10),isNaN(t)||!C.isNumber(t)||!(C.isNumber(e)&&e<t)&&C.isNumber(e)?e:t}var om,am=function(){th(),eh(),F.removeNotificationBubble(),xh(),as()};function sm(){th(),Ro(),I.segmentFlags=[],I.doNotProcess=!0,g.commit("debugger/doNotProcess",!0),x.info("not tracking visitor due to 451 response")}function dm(e){if(om&&(451===e.statusCode&&(sm(),om.deferred.reject(e)),!C.isString(e.id)||e.id===om.id)){const t=C.indexBy(I.guides,"id");C.extend(I,e),I.guides=C.map(I.guides,function(e){return 1==C.keys(e).length&&e.id?t[e.id]:e}),om.deferred&&om.deferred.resolve(),om=null}}var um=function(e,t){var n=ro(),i=C.uniqueId(),r=y.defer(),o=(om={id:i,deferred:r},Ol()||((o=Nl())?(x.info("sending metadata: "+JSON.stringify(o),{contexts:["guides","metadata"]}),t.metadata=o):x.info("no metadata to send",{contexts:["guides","metadata"]})),et(t)),i={id:i,jzb:o,v:qe,ct:(new Date).getTime()},n=(n&&t.accountId&&"ACCOUNT-UNIQUE-ID"!==t.accountId&&(i.acc=it(t.accountId)),yh()&&(i.debug=!0),So(cm.endpoint(),e,i)),t=hs.get();return o=2e3<n.length||!C.isEmpty(t)?(delete i.jzb,n=So("guide.json",e,i),i=C.extend({events:o},t),cm.post(n,i,I,C.noop)):cm.load(n,I,C.noop),y.all([o["catch"](function(e){return 451===e.status&&sm(),y.reject(e)}),r.promise,(t=cm,i=e,"1"===(n=h.read(Yf))?(x.info(Xf),y.resolve({success:!1,cached:!0})):"0"===n?y.resolve({success:!0,cached:!0}):(n=So("guide.gif",i,{jzb:"eJwFwIEIAAAAwDDQd3-N1QABFQC5",ct:v(),v:qe}),(t.usesXhr()?_r.get(n):xo(n)).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(Yf,"0",144e5):(x.info(Xf),h.write(Yf,"1",18e5))),!e.success)return y.reject()})},cm=bu;function lm(e){e=C.find(e.steps,e=>e.pageId&&!e.regexUrlRule);return!e||(x.critical("pendo.io guide validation exception",{guideId:e.guideId,stepId:e.id,error:new Error("missing regexUrlRule for page "+e.pageId+'"')}),!1)}function pm(n){return C.every(ng,e=>{try{return e(n)}catch(t){return console.debug("Error in guide processor",e,n.id),!1}})}function hm(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&C.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}var fm,gm=function(){return!f.get("disableGlobalCSS")};function mm(e,t){var n=f.get("dropAnonymous");if(Tn(e)&&n)x.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(Yf))x.info("guide events are blocked, load guides cancelled"),C.isFunction(t)&&t("error: guides are blocked");else{if(Qa(es()))return 1;x.info("bad url: probably local file system",{contexts:["guides","error"]}),C.isFunction(t)&&t("error: invalid url")}}var vm=function(e,a,s,d){var u=y.defer(),c=!1;if(e=e||I.apiKey,mm(a=a||b(),d)){x.info("loading guides for "+s+"...",{context:["guides"]}),s=R.externalizeURL(s);var n,t,i=vm.lastVisitorId!==a,l=i?C.noop:(r=O,(t=C.find(r,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(){}),r=(vm.lastVisitorId=a,eh(),g.commit("guideState/setLastGuideRequestAt",v()),{visitorId:a,accountId:Bn(),url:s,oldVisitorId:Fn=Fn===undefined&&kn()?Hn(En):Fn}),o=function(e,t,n=v()){let i=[];return f.get("cacheGuides")&&!(i=n-(t.lastUncached||0)<f.get("cacheGuidesTimeout")?C.map(e.guides,e=>C.pick(e,"id","lastUpdatedAt")):i).length&&(t.lastUncached=n),i}(I,vm);o.length&&!i&&(r.cachedGuides=o);const p=C.uniqueId();vm.reqId=p,um(e,r).then(function(){if(!c&&!I.designer)if(vm.reqId!==p)u.resolve();else{m.deliverablesLoaded.trigger(),x.info("successfully loaded guides for "+s,{contexts:["guides"]}),I.designerEnabled&&"true"!==Qf.getItem("pendo-designer-mode")&&_f.loadPluginJs(),am();var t=I.lastGuideStepSeen;if(t){g.dispatch("guideState/receiveLastGuideStepSeen",t),t.visitorId=a,g.dispatch("guideState/updateLastGuideStepSeen",t),g.commit("guideState/setLastGuideRequestAt",v()),Hd={};t=I.guides;var t=C.chain(t).map(Gu).filter(lm).filter(pm).sortBy(hm).value(),n=(Jd(t),Yd());g.dispatch("guideState/load",(r=Gp,o=f.get("crossAppGuideStorageSuffix"),h.read(r,!1,o))),g.dispatch("guideState/apply"),I.latestDismissedAutoAt=rm(I.latestDismissedAutoAt,h.read("latestDismissedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestDismissedAutoAt",value:I.latestDismissedAutoAt}),I.finalAdvancedAutoAt=rm(I.finalAdvancedAutoAt,h.read("finalAdvancedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"finalAdvancedAutoAt",value:I.finalAdvancedAutoAt}),I.latestSnoozedAutoAt=rm(I.latestSnoozedAutoAt,h.read("latestSnoozedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestSnoozedAutoAt",value:I.latestSnoozedAutoAt}),g.dispatch("healthCheck/init",t),g.dispatch("frames/changeGuideList",n),I.eventProperties=Gm(I.features);let e=y.resolve();I.globalJsUrl&&(e=Ff(zu(I.globalJsUrl))["catch"](function(e){x.error("Error loading global script: ",e)})),n.length?y.all([Cm(),e,Am(t),Pf.initializeWatermark(t),wm(5e3)].concat((i=t,C.map(ym,function(e){return e(i)})))).then(function(){vm.reqId===p&&(g.getters["frames/isLeader"]()&&l(O),m.guidesLoaded.trigger(),nh(),clearTimeout(fm)),C.isFunction(d)&&d(),u.resolve()},function(e){x.error("Post loadGuide request failed: ",e),m.guidesFailed.trigger(),u.reject()}):(m.guidesLoaded.trigger(),u.resolve())}else x.info("lastGuideStepSeen is not set, shutting down guides")}var i,r,o})["catch"](function(e){m.guidesFailed.trigger(),u.reject(e)});i=f.get("guideTimeout")||f.get("guides.timeout");C.isNumber(i)&&(clearTimeout(fm),fm=Ut(function(){var e;e=u,am(),e.reject(),c=!0},i))}else u.reject();return u.promise};var ym=[];function bm(e,t){var n,i=document.getElementById(e);return i&&i.href&&0<=i.href.indexOf(t)?y.resolve():(n=y.defer(),k(i).remove(),I.loadResource(t,function(){n.resolve()}).id=e,n.promise)}var wm=C.memoize(function(t,n,e){if(!gm()||!Sm(O))return y.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=y.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=A(e);if(e)return"none"===e.display}});function Sm(e,t){return t&&t.designer||C.any(e,function(e){return!nu(e)&&C.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl||e.domJson)})})}const Im="_pendo-default-css_",Em="_pendo-css_";function Cm(){var e=[];if(!gm())return y.resolve();Sm(O,I)&&e.push(bm(Im,ig()));var t=((I.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(bm(Em,zu(t))):k("#"+Em).remove(),y.all(e)}var xm,_m,Tm=function(e){xm&&xm.flush(e)},km=function(){return eg};function Rm(e){var t=Is(Ds,Ts("visitor_id"),Ts("props.guide_id"),Ts("props.source"),Ps,Us(),zs(e),Hs,js,Ys),n=Is(Cs,xs(e.cache),C.noop);return new nd(C.extend({processSilos:t,packageSilos:n},e))}var Am=function(e){return F.initializeResourceCenter(e)},D={postMessage:C.noop,close:C.noop};let Om=D;function Nm(e){return xm=xm||Rm(C.extend({cache:eg,apiKey(){return I.apiKey},beacon:"guide",allowPost:!0,preferFetch:Ue.safari},e)),_m=_m||Rm(C.extend({cache:[],apiKey(){return I.apiKey},beacon:"poll",allowPost:!0,preferFetch:Ue.safari},e)),is(xm),is(_m),()=>{xm.clear(),_m.clear(),rs(xm),rs(_m)}}function Mm(e){var e=e["blockedURI"];e&&-1!==e.indexOf("/data/guide.json")&&f.get("cacheGuides")&&((e=f.getLocalConfig()).cacheGuides=!1,f.setLocalConfig(e),Er(window,"securitypolicyviolation",Mm),Vm())}var Lm=function(){const e=[];e.push(Nm({localStorageUnload:f.get("analytics.localStorageUnload")})),wh.run(),e.push(wh.stop),m.appUnloaded.on(function(){g.dispatch("frames/leave")}),m.metadata.on(function(e){e=e.data[0].storeChanged;e&&!Ol()&&Jm()}),m.identify.on(function(){Jm()}),m.urlChanged.on(function(){Jm(R.get())}),m.guideUpdateComplete.on(function(){var e,t,n;e=C.filter(O,e=>C.isFunction(e.outsideTimebox)&&e.outsideTimebox()),Vd.addGuide(e),Wu.processPrefetch(),e=O,t=zd,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)}))}),m.guidesLoaded.on(function(){F.fetchAnnouncementGuidesContent(O,g)}),m.guideListChanged.on(function(e){e=e.data[0].guideIds;if(e&&e.length){const n=C.indexBy(e);C.each(zd,function(e,t){n[t]||(e.hide(),delete zd[t])})}}),e.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=Ir(e,o,t),s=Ir(e,"turbo:before-cache",n);return()=>{a(),s()}}(document,function(){R.get()===qm.lastUrl&&Vm()},function(){am()}));var t=f.get("guides.tooltip.arrowSize");if(C.isNumber(t)&&(I.TOOLTIP_ARROW_SIZE=t),Om=Zf(g),D=Uf(Om,g),e.push(()=>D.close()),e.push(sn.tabIdChanged(function(){var e=sn.getTabId();g.commit("frames/setTabId",e),g.dispatch("frames/join")})),g.dispatch("frames/init"),g.dispatch("frames/join"),e.push(function(){const e=[];return g.dispatch("guideState/init"),e.push(Ir(window,"focus",zp)),e.push(Ir(window,"storage",function(e){g.dispatch("guideState/storageChanged",e)})),()=>C.each(e,function(e){e()})}()),e.push(()=>{Hm.cancel(),kh.cancel()}),e.push(Ir(window,"resize",Hm)),e.push(Ir(window,"scroll",kh,!0)),e.push(Ir(window,"gestureend",jm,!0)),e.push(Ir(window,"securitypolicyviolation",Mm)),e.push(function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];const t=[];for(var n=0;n<e.length;n++)t.push(Ir(document,e[n],Wm));return()=>{C.each(t,function(e){e()})}}()),f.get("preferMutationObserver")&&Ue.MutationObserver){const n=C.debounce(function(e){g.dispatch("guideUpdate/documentChanged")},50);e.push(()=>{n.cancel()}),e.push(l(window,"animationend",n)),e.push(l(window,"transitionend",n)),e.push(l(window,"mouseover",n)),g.commit("guideUpdate/setUseObserver"),f.get("observeShadowRoots")&&g.commit("guideUpdate/setObserveShadowRoots"),e.push(()=>g.dispatch("guideUpdate/stopObserver"))}return h.registry.addLocal(qg.ADVANCED),h.registry.addLocal(qg.DISMISSED),h.registry.addLocal(qg.SNOOZED),h.registry.addLocal(Yf),Vu.initialize(),()=>{qm.reset(),am(),Jm.reset(),vm.reqId=null,C.each(e,function(e){e()}),k("#"+Im).remove(),k("#"+Em).remove(),Vu.teardown()}},Fm=function(){return f.get("guides.disabled",!1)||f.get("disableGuides",!1)||!wo},Pm=function(){return f.get("guides.delay",!1)||f.get("delayGuides",!1)},Dm=function(e){var t=f.getLocalConfig();t.disableGuides=e,f.setLocalConfig(t)},Um=function(e){var t=f.getLocalConfig();t.delayGuides=e,f.setLocalConfig(t)},Gm=qn(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}}),Bm=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},zm=function(){x.debug("adjustActiveGuideOnResize firing");var e=$m();e&&e.step&&!I.ignoreResize&&e.step.redraw()};const Hm=C.debounce(function(){var e;-1<C.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=Bm())||e.id.indexOf("pendo-video-")<0)&&Ut(function(){zm()},150):zm(),kh()},50),jm=function(e){1!==e.scale&&Hm()};var Wm=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&&(Bm()?I.ignoreResize=!0:Ut(function(){I.ignoreResize=!1},1e3))};function qm(e){var t,n,i,r,o=b(),a=Bn();e=e||R.get(),n=o,i=a,r=ol,!(t=e)||!I.apiKey||Fm()&&"true"!==Qf.getItem("pendo-designer-mode")||t===qm.lastUrl&&n===qm.lastVisitorId&&i===qm.lastAccountId&&r===qm.lastMetadataHash||(qm.lastUrl=e,qm.lastVisitorId=o,qm.lastAccountId=a,qm.lastMetadataHash=ol,vm(I.apiKey,o,e)["catch"](C.noop))}qm.reset=function(){C.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){qm[e]=null})};var Jm=function(e){wo&&(Jm.reset(),Jm.pending=Ut(function(){delete Jm.pending,qm(e)},0))};function Vm(){qm.lastUrl=null,Jm()}function Km(e){e=ng.indexOf(e);-1!==e&&ng.splice(e,1)}function $m(){var e,n,t=C.find(O,function(e){return e.isShown()});return!t||C.get(t,"attributes.resourceCenter.isModule")&&!(t=F.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 Zm(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)}))}Jm.reset=function(){Jm.pending&&clearTimeout(Jm.pending)};var Ym=function(){var n=this,o=(this.eventable=pn.call({}),this.eventable.on("pendoEvent",function(e){try{n.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";x.critical("Error in Action "+e,{error:t})}}),this.eventHandler=function(e){if(!e.ignore&&!I.designer){var t=e.step["guideElement"];switch(e.action){case o.advanceGuide:_g(e,e.step);break;case o.previousStep:Tg(e,e.step);break;case o.goToStep:xg(e);break;case o.submitPoll:this.submitPoll(e);break;case o.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;Cg(e,e.step,n);break;case o.dismissGuide:F.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return Eg();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return F.dismissResourceCenter(t);Eg(e,e.step)}(e);break;case o.showElements:this.setElementDisplay(e,"block"),e.srcElement&&Zm(e.srcElement),Qc((i=Ku(e.step.domJson)).props.id,t),el(i.props.id,t),M.flexAllThings(i.props.id,e.step),Xc(i.props.id,t);break;case o.hideElements:this.setElementDisplay(e,"none"),Qc((i=Ku(e.step.domJson)).props.id,t),el(i.props.id,t),M.flexAllThings(i.props.id,e.step),Xc(i.props.id,t);break;case o.slideElement:this.setElementAnimation(e);break;case o.showGuide:n=C.find(e.params,function(e){return"reason"===e.name});im(e.params[0].value,n&&n.value);break;case o.launchGuide:this.launchGuide(e);break;case o.renderResourceCenterModule:var i=a(e);F.replaceResourceCenterContent(e.params[0].value,i);break;case o.returnToResourceCenterHome:n=F.findResourceCenterHomeView(Wd());if(!n)return;F.attemptToPreserveIntegrationIframes(e),F.replaceResourceCenterContent(n.id,e.params);break;case o.openLink:this.openLink(e);break;case o.searchGuides:this.searchGuides(e);break;case o.submitPollAndGoToStep:this.submitPoll(e),xg(e);break;case o.confirmation:this.confirmGuide(e)}var r=Ym.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)):x.info("[Agent] Error! Trying to submit a poll response but step does not have response function!");t!==o.submitPollAndGoToStep&&i.advance()},this.setElementDisplay=function(e,t){var n=e.step,e=k(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&&ja()&&(e="_top");window.open(t,e)},this.goToStep=xg,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 d in i){var u;d&&i[d]&&(u=!1,k(i[d]).text()&&(-1!==k(i[d]).text().toLowerCase().indexOf(n.toLowerCase())?(k(i[d]).css({display:"list-item"}),u=!(a=!1)):k(i[d]).css({display:"none"})),C.isFunction(i[d].getAttribute)&&(e=i[d].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[d]&&(k(i[d]).css({display:"list-item"}),u=!(a=!1)),e="",u)&&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 s(e.confirmationElementPathRule)[0]}(e);e.advance(),t?t.click():x.critical("pendo.io confirmationElement exception",{stepId:e.id,confirmationElementPathRule:e.confirmationElementPathRule,error:new Error("confirmation action called but confirmationElement was not found")})},this.getTransitionParams=a,this.launchGuide=function(e){var t=!C.get(e,"params.2.value.doNotDismiss");t&&Eg(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],Gg(n),r.show("api")):t&&im(e.params[0].value)}},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"});function a(e){return e.params.find(e=>"transitionDirection"===e.name)?[{name:"transitionCss",type:"string",value:"left 200ms"},{name:"transitionDirection",type:"string",value:"right"}]:[]}return this},Xm=(Ym.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&((Ym.prototype.registeredActions=Ym.prototype.registeredActions?Ym.prototype.registeredActions:{})[e]=t)},function(){var s="guideActivity",d=function(){return(new Date).getTime()-ag},r=C.isObject,u=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 $m()}(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(Wd(),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:Jr(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=u(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=u(e.parameters,{name:"url"}),n=u(e.parameters,{name:"target"});return{action:e.action,url:Jr(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=u(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=u(e.parameters,{name:"snooze_duration"}),t=u(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 Kg({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:d(),language:t.guide.language})}(n))&&Yg(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")}}()),Qm=[],ev=!(Ym.deregisterAction=function(e){e&&"string"==typeof e&&delete(Ym.prototype.registeredActions=Ym.prototype.registeredActions?Ym.prototype.registeredActions:{})[e]});const tv={agent:{getJwtInfoCopy:hs.get,treatAsAdoptPartner:ro},agentStorage:h,analytics:{ptm:()=>Ls,collectEvent:ws},attachEvent:l,ConfigReader:f,Events:m,EventTracer:sn,EventRouter:Ym,Extensions:{API:{addTopic:function(e,t){var n=Fl[e]||{};C.extend(n,t),Fl[e]=n}}},frames:{getChannel:()=>Om},getAssetUrl:io,getEventable:()=>pn.call({}),GlobalRuntime:{addGlobalScript:Vu.addGlobalScript,removeGlobalScript:Vu.removeGlobalScript},GuideActivity:Xm,GuideLoop:{addUpdatePhase:hh,removeUpdatePhase:fh},guides:{addProcessor:function(e){return ng.push(e),C.partial(Km,e)},removeProcessor:Km,registerDisplayableGuides:function(e,t){C.isArray(t)&&(Hd[e]=t)},removeDisplayableGuides:function(e){delete Hd[e]}},hosts:{SERVER:He},NodeSerializer:Ed,q:y,sessionStorage:h.getSession(),sizeElements:Zc,store:g,Tombstone:Vd,transmit:{buildBaseDataUrl:So,fetchKeepalive:_o,sendBeacon:To},log:x,util:{trim:Ye,base64EncodeString:it,parseUrl:Sa,addInlineStyles:C.partial(Yu,f)},constants:{URL_MAX_LENGTH:2e3}};function nv(t){C.find(Qm,function(e){return e.name===t.name})?x.warn(`Plugin with name ${t.name} already exists. Skipping registration.`):(Qm.push(t),ev&&t.initialize(I,tv))}function iv(){C.each(Qm,function(e){C.isFunction(e.teardown)&&e.teardown(I,tv)}),ev=!1}Bl.registerExtensionsByUse("plugin",function(e){return C.extend(e.uri,C.pick(e,"name")),nv(e.uri),e},function(e){return!!e.uri.initialize&&!!e.uri.teardown});var rv=!1;function ov(){rv||(m.identify.on(function(e){var t,n,e=e.data[0];n=(t=e).old_visitor_id,t=t.visitor_id,(Tn(n)?_n(t)?Tn(t)?(x.info("Visitor is anonymous: "+t),1):On(t)?(x.info("Visitor id is the default: "+t),1):(x.info("Re-mapping visitor identity from "+n+" to "+t),0):(x.info("Not valid visitor id: "+t),1):(x.info("Visitor is already identified: "+n),1))&&(n=(t=e).old_account_id,t=t.account_id,_n(t)?n===t||(x.info("Re-mapping account identity from "+n+" to "+t),0):(x.info("Not valid account id: "+t),1))||(ws("identify",e),as())}),m.metadata.on(function(e){var t;Ol()||({options:e,hashChanged:t}=e.data[0],t&&(ws("meta",e),as()))}),m.identify.on(Ll),rv=!0)}av="guideActivity",sv=function(){return(new Date).getTime()-ag},dv=C.isObject;var av,sv,dv,uv={type:av,handler(e){var t,n=e.data[0],e=e.data[1];e=e,dv(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(dv(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return pv(e)}(t)||function(e){return cv(e)}(t)||function(e){return lv(e)}(t))&&(e=function(e){var t=F.getResourceCenter();if(t){var n=t.activeModule,i=pv(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=cv(e)||lv(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),Kg({type:av,visitorId:b(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,duration:sv(),language:i.language})}}(n))&&Yg(e)}};function cv(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&&dv(e.parentElem)?cv(e.parentElem):null}function lv(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&&dv(e.parentElem)?lv(e.parentElem):null;t=F.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 pv(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&&dv(e.parentElem)?pv(e.parentElem):null}const hv=e=>(e=e||I).doesExist(e.apiKey);let fv=0;const gv="initializeImmediately",mv=[],vv=qn(function(e){if("complete"===document.readyState||C.get(e,gv)||f.get(gv))if(x.info("pendo.initialize called with "+JSON.stringify(e)),I.apiKey)1==fv++&&x.info(["pendo.initialize only needs to be called once",dt()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join(""));else{if(e=e||{},C.isEmpty(hs.get())&&(o=hs.getJwtOptions(e,"initialize"))&&(hs.set(C.pick(e,"jwt","signingKeyName")),C.extend(e,o,{forceAnonymous:!0})),C.isString(e))return _r.get(e).then(e=>(le(d=e.data),vv()));try{g.dispatch("location/init",e.location||{})}catch(a){x.critical("Location API Exception",a)}f.setLocalConfig(e),to(),I.HOST=Zr;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("\\."+wt(o)+"$"),n=new RegExp("^"+wt(o)+"$"),t.test(i)||n.test(i))&&(xt="."+o):xt=o),nf.discoverKeys(e),nf.getApiKey()){g.commit("metadata/setMetadata",{selfHosted:Al()}),e.logStackTraces&&(I.logStackTraces=e.logStackTraces),f.get("preferBroadcastChannel")&&Kf.secure(!0);const s=f.get("analytics.localStorageUnload");vs.read(h),mv.push((t={localStorageUnload:s},Ns=ts.events=Va,Ms=ts.trackEvents=Ka,Ls=id(C.extend({cache:Ns,silos:ts.silos,apiKey:Io,beacon:"ptm",allowPost:!0},t)),Fs=id(C.extend({cache:Ms,silos:ts.trackEventSilos,apiKey:Io,beacon:"ptm",allowPost:!0,params:{type:"track"}},t)),is(Ls),is(Fs),()=>{us(),rs(Ls),rs(Fs)})),wo&&(h.registry.addLocal(In),h.registry.addLocal(En),h.registry.addLocal(Cn),h.registry.addLocal(Cl),h.registry.addLocal(mh),I.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,mv.push(function(i){const e=C.reduce(mu,function(e,t){if(gu[t]){const n=function(e){return yu[t].apply(yu[t],e.data)};i[t].on(n),e.push(()=>i[t].off(n))}return e},[]);return()=>C.each(e,e=>e())}(m)),[{events:i=[]}]=[e],C.each(i,(e,t)=>{yu[t]&&yu[t](e)}),mv.push(Lm()),ov(),mv.push(Md()),mv.push((C.each(Qm,function(e){e.initialize(I,tv)}),ev=!0,iv)),mv.push((n=e,h.registry.addLocal(Ah),h.registry.addLocal(Oh),C.find([C.partial(df.launchOnToken,window.location),C.partial(Nh,window),C.partial(df.localStorageNavigation,n)],e=>e()),n.enableDesignerKeyboardShortcut||!f.get("disableDesignerKeyboardShortcut")?_f.listen():()=>{})),m.appUsage.on(Xm.handler),m.appUsage.on(uv.handler),mv.push(ss($a))),m.appHidden.on(()=>{os(0,{hidden:!0})}),m.appUnloaded.on(()=>{os(0,{unload:!0}),s&&vs.write(h)}),kn()||Rn(),I.updateOptions(e),e.visitorId&&e.visitorId!=An&&I.identify(e.visitorId),mv.push(R.watch(function(){I.pageLoad()})),wo&&m.ready.trigger(),rd(R.get()),fv++,window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&((r=Kf.targetOrigin())?window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},r):x.warn("Unable to announce frame to designer plugin, targetOrigin is not set. Check if broadcastChannel is enabled and cross origin frames are allowed.")),wv()}else x.debug("API key is not set, Pendo will not initialize.")}else ae(I,"initialize",arguments)});function yv(e){return!C.isArray(e)||C.isEmpty(e)}function bv(e){if(!yv(e))return C.find(e,e=>"initialize"===e[0])}function wv(i){var e;return!yv((i=i||I)._q)&&(e=!!bv(i._q),hv(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},y.resolve()).then(wv)):y.resolve()}function Sv(){hv()?x.info("already running"):(window.pendo_options&&vv(window.pendo_options),wv())}function Iv(){m.appHidden.trigger(),m.appUnloaded.trigger(),C.each(mv,function(e){e()}),rd.reset(),mv.length=0,Kf.close(),pn.clear(m),pn.clear(yu),delete I.apiKey,fv=0}var Ev,Cv,xv={getActiveGuide:$m,smartNextStep:function(e){var t,n=$m();n&&(t=n.guide.steps[n.stepIndex+1],Ut(function(){var e=s(t.elementPathRule);0!==e.length&&C.some(e,ua)?_g(n.step):_g(t)},e=e||0))},smartFirstStep:function(){k("._pendo-guide_").css("display:none;");var t=Qg(),e=$m().guide.steps,n=C.filter(C.rest(e),function(e){return!!e.pageId}),n=C.indexOf(e,C.find(n,function(e){return tm(e.regexUrlRule,t)}));x.info("startingPoint is "+n),-1==n?k("._pendo-guide_").css("display:block;"):(n=e[Math.max(0,n-1)],x.info("found starting step to be "+n.id),_g(n))},advanceOn:function(e,t){var n=$m(),i=k(t=t||n.step.elementPathRule)[0],r=function(){_g(),Dd(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=$m();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){var r=n.getGuide(),o=Ku(e),a=C.get(r,"attributes.resourceCenter");a&&(F.revertRtlChanges(r,e.props),e=F.updatePseudoStyleSelectors(e));var s=a&&F.isFullyCustom(r),d="AnnouncementsModule"===C.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.containerId=o&&o.props&&o.props.id,n.element=su(n),U.buildNodeFromJSON(e,n,t)),t=(n.guideElement=o).find("#"+n.containerId),u="data-vertical-alignment",c="Relative to Element"===t.attr(u);c&&!a&&k(n.guideElement).css({overflow:"hidden",height:"0",width:"0"});t.css({visibility:"hidden"}),o.css({visibility:"hidden"});u=Pf.buildWatermark({appId:r.appId,targetAccount:r.targetAccount,isTraining:r.isTraining,isBottomAligned:"Bottom Aligned"===t.attr(u)},U.buildNodeFromJSON);u&&t.append(u);var u=n&&n.attributes&&n.attributes.imgCount,l=ou();var p=C.get(r,"attributes.embedConfig",null);{var h,f;p?(g=o[0],h=g.querySelector("#"+(f="pendo-guide-container")),{selector:h,method:f}=(h&&(h.id=f+"-"+n.id,g.id="pendo-base-"+n.id),p),l=k(h)[0],"replace"===f&&l?(l.innerHTML="",o.appendTo(l)):"prepend"===f?o.prependTo(l):o.appendTo(l)):o.appendTo(l)}(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)))})(ou(),o[0],n.id),Zc(o),c&&kc.patchGuideContainerWidthForResponsiveTooltips(n,t[0],e);s||d||(U.recalculateGuideWidth(n.containerId,n.guideElement),U.adjustGuideContentWidth(n.containerId,n.guideElement));u||a||U.flexAllThings(n.containerId,n);s||U.recalculateGuideHeight(n.containerId,n.guideElement);c?n.attributes.calculatedType="tooltip":kc.attachBBAdvanceActions(n);c&&!u&&kc.positionStepForTooltip(n,e,t[0]);{var g;a&&(F.showHomeViewOrEmptyState(r),g=[],d?g=[r.attributes.resourceCenter]:U.flexAllThings(n.containerId,n),g.length)&&C.forEach(g,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 m;u?(m=y.defer(),o.rendered=m.promise,t.on("imagesLoaded",function(){m.resolve()})):(t.css({visibility:"visible"}),o.rendered=y.resolve())}o.css({visibility:"visible"}),n.elements.push(n.guideElement[0]),I.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?(p=r.activeModule.steps[0],U.autofocusStep(p,p.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 n="autofocus for guide id: "+e.getGuide().id+" step id: "+e.id+" ",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)&&ua(r)&&(n=bo(n=r),i=Bo(),C.extend(i,{top:0,left:0,bottom:i.height,right:i.width}),Yo(i,n))&&(i=r,n=C.contains(["A","INPUT","LABEL","SELECT","TEXTAREA","BUTTON","FIELDSET","LEGEND","DATALIST","OUTPUT","OPTION","OPTGROUP"],i.nodeName),e=!!i.tabIndex,t=!i.hidden,i=!i.disabled,(n||e)&&t&&i)?r:null},i,function(t){pt(function(){return!!(e=t)&&(e.focus(),e===k.getRootNode(e).activeElement);var e},i,function(){},function(){x.warn(n+"#pendo-guide-container is available on page but could not capture focus")})},function(){x.warn(n+"#pendo-guide-container did not render or become visible in time to focus")})},trapFocusStep:function(e,t){!function(e){var o,a,s,t,d,u,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=Rv(e),d=t[0],u=t[1],n=function(e){var t,n,i=_v(e),r=e.shiftKey;i&&(t=(i=k.getRootNode(c).activeElement)===c,n=document.activeElement===document.body,r?(i===d||t||n)&&(kv(o,s).focus(),e.preventDefault()):(t||i===u||n)&&(kv(o,a).focus(),e.preventDefault()))},l(document,"keyup",n),l(document,"keydown",n),m.one("unmounted",()=>{Dd(document,"keyup",n),Dd(document,"keydown",n)}))}(t.find("#pendo-guide-container"))},attachRCFocusHandlers:function(){const s=F.getResourceCenter(),d=F.getResourceCenterContainer();if("dom"===s.launchMethod&&d){let e=k(s.attributes.activation.selector)[0];if(e){const[u,c]=Rv(k(d));var t=function(e){var t=_v(e),n=e.shiftKey;if(t){var t=k.getRootNode(d).activeElement,i=k(s.attributes.activation.selector)[0];if(i){var r=t===u,t=t===c;const a=k(aa);function o(t){return Object.values(a).findIndex(e=>e===t)}n?r?(i.focus(),e.preventDefault()):t&&Tv(0===(n=o(u))?a.length-1:n-1,a,e):t?Tv(o(i)+1,a,e):r&&Tv((n=o(c))>=a.length-1?0:n+1,a,e)}}},n=function(e){var t=_v(e),n=e.shiftKey;t&&!n&&Tv(0,k('[id^="pendo-g-"]').find(aa),e)},i=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=u&&t&&Tv((n=k('[id^="pendo-g-"]').find(aa)).length-1,n,e)};l(document,"keyup",t),l(document,"keydown",t),l(e,"keydown",n),l(e,"focus",i),m.one("unmounted",()=>{Dd(document,"keyup",t),Dd(document,"keydown",t),Dd(e,"keydown",n),Dd(e,"focus",i)})}}},addAriaHiddenOutsideGuide:function U1(e,n=[]){if(!e||e===Vo())return n;const t=Ko(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&&U1(e.parentNode,n);return n},renderResourceCenterModule:F.renderResourceCenterModule,buildNodeFromJSON:vl,attachImgLoadHandlers:yl,recalculateGuideHeightOnImgLoad:bl,buildStyleString:function(e){var n="";return C.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:Sl,bindActionToNode:wl,recalculateGuideHeight:Xc,recalculateGuideWidth:Qc,adjustGuideContentWidth:el,findDomBlockInDomJson:$u,isElementHiddenInGuide:M.isElementHiddenInGuide,positionStepForTooltip:kc.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:bc,buildNodesFromJSON:fl,findGuideContainerJSON:Ku,maintainAspectRatios:M.maintainAspectRatios,sizeElement:Yc,sizeElements:Zc,getAllowedAttributes:ml,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:kc.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:Zm,addVideoLoadListener:function(e,t){l(t,"load",function(){e.removeAttribute("data-pendo-video-loading")})}};function _v(e){return"Tab"===e.key||9===e.keyCode}function Tv(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function kv(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 Rv(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 Av=100,Ov=[],Nv=[];const Mv="log-enabled",Lv="active-contexts";var Fv=function(){return Uv()?Cv?"logging already enabled":(h.write(Mv,"true",null,!0),Cv=!0,"logging enabled"):"logging unavailable"},Pv=function(){return Cv?(h.write(Mv,"false",null,!0),Cv=!1,"logging disabled"):"logging already disabled"};var Dv=function(e,t){return C.compact([].concat(e,t))},Uv=function(e){return e=e||"log","undefined"!=typeof console&&C.isFunction(console[e])},Gv=function(e){return e=Dv(e),0<Ev.length?0<C.intersection(Ev,e).length:!!Cv||!!yh()},Bv=function(e,...t){x.info(e,{contexts:t})};function zv(e){var t;e.level!==gt.Debug&&e.level!==gt.Info||(t=e.attributes?Dv(e.attributes.contexts):[],Uv()&&Gv(t)&&Vv(e.message),jv(Ov,e.message,t))}function Hv(...e){Uv("error")&&console.error.apply(console,e),jv(Nv,e.join(" "))}var jv=function(e,t,n){C.contains(n,"debug")||(e.length==Av&&e.shift(),e.push([t,n]))},Wv=function(t){t=Dv(t),C.each(C.map(C.filter(Ov,function(e){return 0===t.length||0<C.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){Vv(e,"[Pendo-History] ")})},qv=function(){return C.union.apply(C,C.map(Ov,function(e){return e[1]}))},Jv=function(e){Ev=Dv(e),h.write(Lv,Ev.join(","),null,!0)},Vv=function(e,t){var n;Uv()&&(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 Kv(t,n){if(t&&C.isString(t)){let e=n;C.isObject(n)||(e={__err__:n});n=R.get();ws("track",e,n,t)}else x.error("Must provide valid name string for event tracking")}Bv.init=function(){var e,t;e=h.read(Lv,!0),Ev=e?e.split(","):[],e=ze,t=h.read(Mv,!0),Cv=null!==t?"true"==t:!C.contains(["prod","prod-eu","prod-us1","prod-jp","prod-hsbc","prod-au","prod-gov","rc"],e),x.addEventListener("log",zv),h.registry.addLocal(Mv),h.registry.addLocal(Lv)},Bv.enableLogging=Fv,Bv.disableLogging=Pv,Bv.getActiveContexts=function(){return Ev},Bv.setActiveContexts=Jv,Bv.showLogHistory=Wv,Bv.getLoggedContexts=qv;var $v=function $v(r){var o=[];function a(e,t,n,i){r?o.push({type:n,message:t,value:i}):ge(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"),I.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=(Tn(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"),On(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),Bn()),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"),Nl());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()},Zv=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:$t.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())},Yv=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()}},Xv=function(e){var t,n=window.location.href,i=[];try{(t=Fr())!==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=R.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 Qv=e=>{if(0<Nv.length){var t=[].concat(Nv);if(e)return t;console.group("Agent Error History"),C.each(t,(e,t)=>{console.log("Error History ",t,e)}),console.groupEnd()}},ey=e=>{t=e;var t,n=C.map(Qm,function(e){return e.validate&&!t&&e.validate(I,tv),e.name});if(e)return n;console.group("Active Plugins"),C.each(n,e=>console.log(e)),console.groupEnd()};var ty=function(e){var t={install:$v(e),plugins:ey(e),globals:Yv(e),url:Xv(e),errors:Qv(e)};if(e)return t.methods=Zv(e),t;f.validate(console)},ny={BuildingBlockGuides:U,BuildingBlockResourceCenter:F,BuildingBlockTemplates:Xu,BuildingBlockTooltips:kc,BuildingBlockSvgs:ic};function iy(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))}iy.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},iy.prototype.stop=function(){clearTimeout(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var ry=_r.urlFor,oy={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace","Clear","AddTo"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};function ay(e,t,n){var i;if(C.isObject(e)&&(t=e.action,n=e.data,e=e.attr),!oy[e])throw i=C.keys(oy).join(", "),new Error('Invalid URL attribute type: "'+e+'". Valid attributes are: '+i+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!C.contains(oy[e],t))throw i=oy[e].join(", "),new Error('Invalid transform action: "'+t+'" for attribute "'+e+'". Valid actions for "'+e+'" are: '+i+'. Example: {attr: "'+e+'", action: "'+oy[e][0]+'", data: ...}');this.attr=e,this.action=t,this.data=n}function sy(e){return e instanceof Jn||e instanceof HTMLAnchorElement}ay.prototype.applyToURL=function(e){return{AllowOnlyKeys(e,t,n){C.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Jn($r(t,null,n,!1))},ExcludeKeys(e,t,n){C.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Jn($r(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 Jn(ry(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 Jn(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)},ay.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},ay.fromJSON=function(e){if(e instanceof ay)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(oy).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=oy[e.attr]?oy[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(!oy[e.attr])throw t=C.keys(oy).join(", "),new Error('Invalid attribute "'+e.attr+'". Valid attributes are: '+t+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!C.contains(oy[e.attr],e.action))throw t=oy[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: "'+oy[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 ay(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))}};dy=function(t,n,i,r){return[new ay("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new ay("href","ForceSecure")]},Mi={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:uy=function(){var e=Lr(),t=R.isElectron()?dy(R.electronAppName(),R.electronResourcesPath(),R.electronUserDirectory(),R.electronUserHomeDirectory()):[];return hy([].concat(t),e)}},cy=new iy(500,function(e){!hv()||od(document)||rd()}),ly=function(e){if("string"==typeof e)return new Jn(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.")},py=function(e){return e||window.location},hy=function(e,t){return C.reduce(e,function(e,t){return t.applyToURL(e)},t)};var dy,uy,cy,ly,py,hy,fy,e={state:Mi,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",ay.fromJSON(e))})},addInternalTransforms(t,e){C.each(e,function(e){t.commit("addInternalTransform",ay.fromJSON(e))})},removeInternalTransforms(t,e){C.each(e,function(e){t.commit("removeInternalTransform",ay.fromJSON(e))})},startPolling(e){cy.start()},stopPolling(e){e.state.currentSrcFn===uy&&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 Jn(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(!hv())}else e.currentSrcFn=uy,cy.stop()}},getters:{url:fy=function(e){try{var t=function(e){return n=e},n=C.reduce([e.currentSrcFn,ly,t,C.partial(hy,e.transforms),ly,t,C.partial(hy,e.internalTransforms),ly],function(e,t){return t(e)},null)}catch(i){x.critical(i),n=py(n)}return n},href(e){return fy(e).href}}};function gy(e){var t;if("function"==typeof gy[e])return t=C.toArray(arguments).slice(1),gy[e].apply(gy,t)}C.extend(gy,{getHref(){return g.getters["location/href"]()},clearTransforms(){g.commit("location/clearTransforms"),rd()},addTransforms(e){g.dispatch("location/addTransforms",e),rd()},setUrl(e){g.commit("location/changeUrlSource",e)},useBrowserUrl(){g.commit("location/changeUrlSource"),rd()}});function my(){return f.get("guideSeenTimeoutLength")||1e4}vy=[];var vy,yy={name:"StepTimeoutMonitor",initialize(){this._beforeGuideShow=C.bind(yy.beforeGuideShow,yy),this._stop=C.bind(yy.stop,yy),m.beforeGuideShow.on(this._beforeGuideShow),m.guideSeen.on(this._stop),m.guideNotSeen.on(this._stop)},teardown(){yy.stop(),m.beforeGuideShow.off(this._beforeGuideShow),m.guideSeen.off(this._stop),m.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)&&yy.start(t))},start(e){var d,t,n=vy[0];n&&n===e.id||(n&&n!==e.id&&(n=vy[1],C.isFunction(n))&&n(),e.shouldStartTimer()&&(d=my(),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(Qg())?Og(n)?"other":"element":"page",i=t,r=e,o=b(),a=a,s=s.language,i=Kg({type:"guideTimeout",guideId:i,stepId:r,visitorId:o,seen_reason:a,language:s,guideSeenTimeoutLength:d}),Yg(i),m.guideTimeout.trigger(i),x.info("Guide "+t+" timed out showing Step "+e),n.timeout()),yy.stop()},e.id,e.guide.id),t=Ut(n,d),vy=[e.id,n,t]))},stop(){var e=vy[2];e&&clearTimeout(e),vy=[]},getGuideSeenTimeoutLength:my};function by(){console.warn("This functionality is not supported by your subscription.")}function a(e){return wo?e:by}var wy="is going away",Sy="is gone",Iy=C.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return x.info(e),e});function Ey(e,t,n){return function(){return Iy("pendo."+t,n),(e||C.noop).apply(null,arguments)}}function Cy(e){return e&&1===e.length?e[0]:C.any(e,ft)?y.all(e).then(function(e){return C.any(e)}):void 0}function xy(){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),Bu(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 Cy(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(!iu()){var e=ru(),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 Cy(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(Qg())&&Ch(this)):Th(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(Qg())||!t.canShowOnDevice()||!Og(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(Qg())||!this.canShowOnDevice()||!Og(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 y.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 _y(){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 Ty=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function ky(){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&&!Ty(this)?(o||(x.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(Hp())||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=Hp(),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 Ry(){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,Ry.MAX_ERRORS_PER_MINUTE<=t&&(n="Exceeded error rate limit, dropping guide.\n"+n,Vd.addGuide(a),m.trigger("renderFail",a)),o.shift()),x.critical(n,{error:i}),i}}}return C.each(["canShow","placeBadge","show"],function(e){a[e]=C.wrap(a[e],t(e))}),a}function Ay(){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 Oy(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 Ny(o){var a,t,i,s,r,n,d,u=this;return u.pollIds&&u.pollIds.length&&(a="_pendo-poll-selected_",t=C.indexBy(o.polls,"id"),i=C.map(u.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=u.id,n=v();Wg(e,t,b(),u.seenReason,o.language),lg(e,t,"advanced",n),Bp({guideId:e,guideStepId:t,time:n,state:"advanced"})},d=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()):u.advance()},u.after("render",function(){var n=k("._pendo-poll_")[0],e=k("._pendo-poll-submit_",n)[0];e?u.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)}});u.response(C.compact(t)),d()}):u.attachEvent(n,"click",function(e){var t,e=k(Cr(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")),u.response([{pollId:t.id,value:e}]),d())})}),u.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"}),u.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(u.resize)&&u.resize()}))}),u.after("show",function(){s=(new Date).getTime()}),u.response=function(e,r){e&&e.length&&(Nm(),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=Kg("pollResponse",u.guideId,u.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}),_m.push(i)}),_m.flush())}),u}Ry.MAX_ERRORS_PER_MINUTE=30;var My={show:function(t,n){if(iu()&&C.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return Ly(t,n);if(!g.getters["frames/hasFrames"]()||g.getters["frames/isGuideInThisFrame"]()(e)){e=function(e,t){if(e.getGuide().isModule){e=F.getResourceCenter();if(e)return Ly(e.steps[0],t)}}(t,n);if(ft(e))return e.then(function(){return Ly(t,n)}).then(function(e){return!!e||Fy(t,n)});e=Ly(t,n);if(ft(e))return e.then(function(e){return!!e||Fy(t,n)});if(e)return!0}return Fy(t,n)},showLocal:Ly};function Ly(e,t){return Wu.hasContent(e)&&Pu.valid(e)?(e._show(t),e.isShown()):!(Wu.hasContent(e)&&Pu.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(Qg()))&&(e.lock(),Wu.fetchContent(e).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&Pu.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(e.unlock(),e._show(t),e.isShown())}))}function Fy(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 Py(d){var e=!1,t=!1;return this.guide=d,this.elements=[],this.handlers=[],this.attributes=this.attributes||{},(this.domUrl||this.domJson)&&(this.eventRouter=new Ym),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=C.indexOf(t,this),i=Nl();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||"")),zu(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")&&!!d.canShowOnDevice()&&!this.isShown()&&!C.get(this,"stepIneligibleForApp")&&this.canShowOnPage(Qg())&&Og(this)},this.canShowOnPage=function(e){e=tm(this.regexUrlRule,e);return yh()&&m.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!(!(I.designer||iu()||Uh())&&(e=Qg(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!tm(this.regexUrlRule,e)?(Vd.addGuide(d),t.error=new Error('attempted display on page "'+e+'"'),x.critical("pendo.io page rule exception",t),1):g.getters["healthCheck/isMissingPageRule"]()(this)?(Vd.addGuide(d),t.error=new Error('missing regexUrlRule"'),x.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(Vd.addGuide(d),t.error=new Error("missing regexUrlRule for page "+this.pageId+'"'),x.critical("pendo.io page rule exception",t),1)))},this.render=function(){var e=this;if(this._preRenderHealthCheck()){if(e.domJson)return d.skipResourceCenterHomeView&&d.moduleIdToReplaceHomeViewWith&&d.hasEligibleNativeIntegrationModule?(t=C.find(Wd(),function(e){return e.id===d.moduleIdToReplaceHomeViewWith}),n=C.get(t,"attributes.resourceCenter.integrationProvider"),F.renderNativeIntegration(n,t)):d.continueToNativeModule?F.handleNativeIntegrationContinuation(d):(C.get(d,"attributes.resourceCenter")&&sh(F.getResourceCenter(),dh),d.isModule?U.renderResourceCenterModule(d,!1):(n=U.renderGuideFromJSON(e.domJson,e),C.get(d,"attributes.resourceCenter")&&(t=d.activeModule?d.activeModule.activeStep().domJson.props.id:e.containerId,t=e.guideElement.find("#"+t),F.adjustResourceCenterWidth(t)),n));var t=e.attributes.width,n=e.attributes.height,i=I.TOOLTIP_ARROW_SIZE,r="_pendo-group-id-"+d.id+"_",r=k(document.createElement("div")).attr("id",Fg(e)).addClass(rg+" "+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),d&&C.isFunction(d.isOnboarding)&&d.isOnboarding()&&r.addClass("_pendo-onboarding_"),e.overlayDiv=s,e.guideElement=r}},this.teardown=function(){x.info("guide step teardown",{contexts:["guide","render"]}),C.each(this.handlers,function(e){Dd(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){x.error("unable to remove aria-hidden from element",{error:t})}}),this.hiddenElements.length=0,this.hiddenElements=null),Il(this.id)},this.show=function(e){var t;if(!C.contains(["auto","continue"],e)||!g.getters["healthCheck/isRedisplay"]()(this))return(t=My.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&&!I.designer&&(t=(e=C.get(d,"attributes.resourceCenter"))&&F.isFullyCustom(d),n=d.activeModule?d.activeModule.activeStep().domJson.props.id:o.containerId,i=o.guideElement.find("#"+n),r=d.activeModule&&"AnnouncementsModule"===C.get(d.activeModule,"attributes.resourceCenter.moduleId"),m.beforeUpdate.trigger(o),t||r||(U.recalculateGuideWidth(n,o.guideElement),U.adjustGuideContentWidth(n,o.guideElement)),e?(F.adjustResourceCenterWidth(i),r&&d.activeModule.guidesInModule?C.forEach(d.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),m.updated.trigger(o))},this._show=function(e){m.beforeGuideShow.trigger(this,e),this.canShow()&&(!iu()&&d.control?this.hasBeenControlled()||this.onControlGuide("control"):m.beforeMount.trigger(this).cancel||(this.render(),this.isShown()&&this.onShown(e)))},this.shouldStartTimer=function(){return d.canShowOnDevice()&&!d.attributes.isAnnouncement&&!Rg(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;iu()||(this.seenReason=e,sg(v()),t=this.getStepPollTypes(d,this),this.hasBeenControlled())||(zg(this.guideId,this.id,b(),e,d.language,t),C.each(d.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(),iu()||(i.seenReason=r,i.seenState="active",sg(v()),t={last_updated_at:i.lastUpdatedAt},(n=this.getStepPollTypes(d,i))&&(t.step_poll_types=n),e&&Hg(i.guideId,i.id,b(),r,d.language,t),g.dispatch("guideState/updateLastGuideStepSeen",{guideId:d.id,guideStepId:i.id,time:ag,state:i.seenState,seenReason:r,visitorId:b()}),C.each(d.steps,function(e){var t,n,i;"snoozed"===e.seenState&&(e.snoozeEndTime=0,t=d.id,e=e.id,n=b(),i=d.language,t=Kg({type:"guideSnoozeCanceled",guideId:t,stepId:e,visitorId:n,seen_reason:r,language:i}),Yg(t,null,!0),m.guideSnoozeCancelled.trigger(t))}),Vu.runCustomScripts(i,d)),g.dispatch("frames/guideStepShownInFrame",{guideId:d.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||(I.ignoreResize=!0,Ut(function(){I.ignoreResize=!1},1e3))})},this.hide=function(e){var t=this;t.unlock(),m.beforeUnmount.trigger(t),t.teardown(),C.each(t.elements,function(e){Wo(e)}),m.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:d.id,stepId:t.id})},this.advance=function(){"advanced"===this.seenState&&!this.isRendered()||_g(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||Eg(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&&d.redisplay&&!d.outsideTimebox()&&!this.isSnoozed()&&v()-this.lastSeenAt>=d.redisplay.interval&&!d.hasReachedMaxDismissals()},this.hasBeenControlled=function(){return d.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()&&kc.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&bc(this)},this.getType=function(){return this.domJson?C.get(this,"attributes.calculatedType"):this.type},this}function Dy(){return this.after("render",function(){var e,t;P&&P.contentWindow&&P.style&&(e=C.first(k('#pendo-resource-center-container, [id^="pendo-g-"]')))&&(e=A(e))&&(t={mutation:"preview/setIsPreviewBarTop",payload:{isPreviewBarTop:!1}},"0px"===e.top?(P.style.top="auto",P.style.bottom="0px",P.contentWindow.postMessage(t,location.origin)):"0px"!==e.bottom&&P.style.top||(P.style.top="0px",P.style.bottom="auto",t.payload.isPreviewBarTop=!0,P.contentWindow.postMessage(t,location.origin)))}),this}Py.isGuideStep=function(e){return!!e&&C.isFunction(e.render)};const Uy={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||{},Hv(e),!1!==I.logStackTraces&&!1!==i.logStackTraces&&n.stack?Co(e+`
8
+ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{var e=u[t.id];if(e&&e.language!==t.language&&delete u[t.id],!u[t.id]){var n,i=[],r={deferred:{},language:t.language},o=!1;if(u[t.id]=r,bu.usesXhr()&&t.domUrl?(r.deferred.domJson=y.defer(),_r.get(c(t.domUrl)).then(function(e){r.domJson=Hu(e.data);var e=e.data;e=e,C.isObject(e)&&e.hasOwnProperty("type")&&e.hasOwnProperty("children")&&e.hasOwnProperty("props")?r.deferred.domJson.resolve():(x.critical(new Error("Response from the guide was not in proper JSON format")),r.deferred.domJson.reject())})["catch"](function(e){x.critical(e),m.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=y.defer(),n=xa(c(t.domJsonpUrl),function(e){k.removeNode(n),e&&m.resourceFetchFail.trigger(t,e)},!0),i.push(r.deferred.domJson.promise),o=!0),t.contentUrlJs&&!f.get("preventCodeInjection")){r.deferred.content=y.defer();var a=xa(c(function(e){if(dt()){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&&m.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise),t.contentUrlCss&&(r.deferred.css=y.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=y.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&&m.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise)}else if(!o)return y.reject("fetchedDomContent is still false");r.deferred.promise=y.all(i).then(function(){return C.omit(r,"deferred")})}return u[t.id].deferred.promise}catch(d){throw m.resourceFetchFail.trigger(t,d),d}},reset:function(){u={}},guideContent:function(e,t,n,i,r){var o,a,s;C.isString(n)&&(o=n,a=e,s=t,n=C.reduce(d,(e,t)=>t(e,a,s),o),C.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?C.template(n):C.constant(n)),o=u[e+t])&&o.deferred.content&&(o.content=n,o.template=i,o.script=r,o.deferred.content.resolve())},receiveDomStructureJson:function(e,t,n){(e=u[e+t])&&e.deferred.domJson&&(e.domJson=Hu(n),e.deferred.domJson.resolve())}}}(),Wu=(qu.state={},qu.queue=[],qu.pending=function(){return C.reduce(qu.state,(e,t)=>e+(t.loaded?0:1),0)},qu.reset=function(){ju.reset(),qu.state={},qu.queue=[]},qu.prefetch=function(e){var t;return qu.hasContent(e)?C.get(qu.state[Ju(e)],"promise"):(t=y.defer(),qu.queue.push([t,e]),t.promise)},qu.processPrefetch=function(e=10){return qu.queue.length?(e=qu.queue.splice(0,Math.max(e-qu.pending(),0)),y.all(C.map(e,t=>qu.fetchContent(t[1]).then(e=>{t[0].resolve(e)})["catch"](e=>{t[0].reject(e)})))):y.resolve()},qu.fetchContent=function(t){var e=Ju(t);if(!(i=qu.state[e])){var n,i={},r=t.getGuide();if(r.control)return y.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=Tu.verify(o).then(function(){return i.verified=!0,ju.load(o)}).then(function(e){return i.loaded=!0,e}),qu.state[e]=i}return i.promise.then(function(e){C.extend(t,e)})},qu.hasContent=function(e){return ge(e.content)||ge(e.domJson)},qu);function qu(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(C.extend(i,{fetchContent:function(e=!1){return e?qu.prefetch(i):qu.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 Ju(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}var Vu=function(){var t=m.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,I)}catch(t){return x.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 x.critical("Exception thrown running beforeMount for: "+JSON.stringify({guideId:o.id,stepId:r.id}),{error:t}),!1}})}var a=pn.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 d(e){return s[e]}function n(e){var t,n=e.data[0];if(e.step=n,delete e.data,d(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 u(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?x.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 u.prototype.on=function(e,t){var n,i;d(e)?(s[e].fromUnmount&&(t=C.once(t)),n=this.step,i=t,t=qn(t=e=>{var t=e["step"];if(t.id===n.id)return i(e);x.debug("called guide runtime callback on wrong step")}),a.on(e,t),this.purge=C.compose(this.purge,C.partial(a.off,e,t))):x.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)},{initialize:function(){t.on(n);var e=f.get("guides.globalScripts");C.each(e,Vu.addGlobalScript)},teardown:function(){t.off(n),C.each(r,Vu.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){d(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)?x.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 u(e)},runCustomScripts:function(i,r){C.each(e(i,r),function(e){try{var t=Vu.getContext(i);e.call(t,i,r,I)}catch(n){x.critical("Exception thrown running code block for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:n})}})}}}();function Ku(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?C.find(e.children,Ku):void 0}function $u(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=$u(e.children[n],t);if(i)return i}return!1}function Zu(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=Zu(e,t.children[n]);if(i)return i}}function Yu(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 Xu={buildNodesFromTemplate:function(e,t,n,i,r){var o=i||O,a=r||I.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=F.findResourceCenterHomeView(f),r=C.find(f,function(e){return e.id===t.id});if(I.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,d=JSON.parse(JSON.stringify(p)),u=(delete d.templateChildren,d.props.id=d.props.id+"-"+n,d.props["data-pendo-module-guide-id"]=r.id,d.actions||(d.actions=[]),{action:"renderResourceCenterModule",source:d.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id}],uiMetadata:{},eventType:"click"}),u=(d.props["data-localization-direction"]&&u.parameters.push({name:"transitionDirection",type:"string",value:d.props["data-localization-direction"]}),I.designer||d.actions.push(u),C.get(i,"attributes.notificationBubble")),c=C.get(i,"attributes.notifications"),u=(u&&c&&("AnnouncementsModule"===C.get(r,"attributes.resourceCenter.moduleId")&&(o=r.id),o="chat"===C.get(r,"attributes.resourceCenter.integrationName")?"chat":o)&&(d.props["data-pendo-notification-id"]=o,c=d,r=u,u=o,o=(i=i).attributes.notifications.individualCounts[o],c=$u(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[u]),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)),$u(d=ec(d,t,d.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=$u(d,function(e){e=C.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),l=$u(d,function(e){e=C.get(e,"props.id");return e&&0<=e.indexOf("pendo-home-view-bubble-"+n)});return u&&(u.props["aria-hidden"]=!0,i)&&(i.props["aria-labelledby"]=u.props.id+" "+(l&&l.props.id)),e.concat(g(d,h,f))},[])}(t,n,o,a);case"pendo_resource_center_guide_list_item":return function(o,a,s,d){var e=o.templateChildren;return C.reduce(e,function(e,t,n){var i,r=tc(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"},I.designer||i.actions.push(r),i=ec(i,t,i.props.id,n),e.concat(d(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 tc(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});F.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,d,u,c){var e=s.templateChildren;return C.reduce(e,function(e,t,n){var i,r,o,a=tc(u,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"},I.designer||i.actions.push(r),r=a.getTotalSteps(),o=a.getSeenSteps(),a.isComplete()&&(o=r),a=parseInt(o/r*100,10),$u(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=Qu(t.subtitle,{currentStep:o,totalSteps:r}):t.stepProgress="Step "+o+" of "+r,i=ec(i,t,i.props.id,n),e.concat(c(i,d,u))):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=tc(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 $u(e=ec(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=tc(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!C.every(e,function(e){e=e.steps[0];return!!Wu.hasContent(e)}))return[];var t=F.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,d,u="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,u?(t=c,u=h,s=p,n=Gu(r=e),(d=n.steps[0]).render(),Vu.runCustomScripts(d,n),i=(n=d.guideElement)[0].id,Yu(f,"pendo-whats-new-style-"+i,"#"+i+" h1::after { display:none; }",n[0]),u&&((o=nc(u)).props.style.top="20px"),!F.hasAnnouncementBeenSeen(r)&&o&&(t.props["class"]+=" pendo-unseen-announcement",t.children=[o]),i=s(t,d),n.appendTo(i),i):(u=c,r=h,o=p,d=Gu(t=e),s=t.steps[0],Vu.runCustomScripts(s,d),d=JSON.parse(JSON.stringify(s.domJson)),u.children=[d],r&&(a=nc(r),d=$u(u,function(e){return"pendo-guide-container"===e.props.id}),r=parseInt(u.props.style["padding-top"],10),d=parseInt(d.props.style["padding-top"],10),a.props.style.top=d+r+5+"px"),!F.hasAnnouncementBeenSeen(t)&&a&&(u.props["class"]+=" pendo-unseen-announcement",u.children.unshift(a)),delete u.templateName,(d=Zu("pendo-guide-container",u))&&(d.props.id=d.props.id+"-"+s.id),o(u,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=ec(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:nc,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return C.reduce(e,function(e,t,n){t=tc(i,t);return t&&e.push(t),e},[])}};function Qu(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 ec(e,t,n,i){if(e.content&&(e.content=Qu(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?Qu(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++)ec(e.children[r],t,n,i);return e}function tc(e,t){e=C.find(e,function(e){return e.id===(t.id||t)});if(I.designer)return t;if(e){if(!e.ineligibleForRC)return e;e.control&&e.steps[0].onControlGuide("control")}}function nc(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 ic={buildSvgNode:function(e,t){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return rc(t)}},createProgressCircleSvg:rc};function rc(e){var t,n,i,r,o,a,s;return Ce(9)?(n=(t=(t=e).svgAttributes).fillCircle.stroke,i=t.backgroundCircle.stroke,t=100<=(t.fillCircle.percentComplete||0),r=k(Z(I).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(I).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(I).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 oc=function(e,t){return e<t},ac=C.negate(oc);function sc(){var e=Vo();return mo(e)?Zo(e):((e=Bo()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function dc(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 uc(e){var t;if(e&&e.length)return t=mo(Vo())?Zo:bo,(e=C.reduce(e,function(n,e){var i;return ua(e)?(i=t(e))?(C.each([["top",oc],["right",ac],["bottom",ac],["left",oc]],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 cc(e,t){var n=sc(),e=uc(e)||{top:0,left:0,right:n.width,bottom:n.height,width:0,height:0};return{viewport:n,box:e,overlays:dc(n,e,t)}}function lc(e){var t=[],n=C.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==Vo()){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){x.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var pc=null,hc=function(e){var t=!C.isEqual(e,pc);return pc=e,t},fc=null,gc=function(e){var t=!C.isEqual(e,fc);return fc=e,t},mc=null,vc=function(e){var t=!C.isEqual(e,mc);return mc=e,t},yc=function(e){return gc(e.viewport)||hc(e.box)||vc(e.overlays)};function bc(e){try{var t=cc(lc(e),C.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));yc(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){x.info("Failed to update BlockOut ui",{contexts:["error"]})}}function wc(e){try{var t,n,i,r;if(!(0<k("._pendo-guide-backdrop_").length))return t=cc(lc(e),C.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),yc(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=Zu("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(d){x.info("Failed to add BlockOut ui",{contexts:["error"]})}var o,a,s}var Sc="top",Ic="bottom",Ec="left",Cc="right",xc="center";function _c(e,t,n){return n===Cc||n===Ec?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?xc:n<e/2?Cc:Ec)}const Tc={DEFAULT_CARET_OFFSET:10,BOUNDARY_MARGIN_RIGHT:.98,BOUNDARY_MARGIN_LEFT:.02,Z_INDEX:{DEFAULT:"300000",CARET:11,BORDER_CARET:10}};var kc={createBBTooltip:Ac,getBBTooltipDimensions:Lc,determineBBHorizontalBias:_c,determineTooltipPosition:Fc,positionBBTooltipWithBias:Pc,calculateToolTipPositionForTopBottom:Dc,calculateToolTipPositionForLeftRight:Bc,buildTooltipCaret:zc,styleTopOrBottomCaret:jc,styleLeftOrRightCaret:Wc,buildBorderCaret:qc,determineBorderCaretColor:Vc,placeBBTooltip:function(e,t){var n,i,r,o,a,t=t||Kc(e);t&&(i=e.element||su(e),n=jo(i),"none"!==A(e.elements[0]).display)&&(i=bo(i),a=e.attributes.layoutDir,e=e.guideElement,r=k(t).find("#pendo-guide-container"),o=r[0].style,t=A(t),t={height:parseInt(t.height,10),width:parseInt(t.width,10)},r={height:parseInt(r[0].getAttribute("data-caret-height"),10)||0,width:parseInt(r[0].getAttribute("data-caret-width"),10)||0,backgroundColor:r[0].style["background-color"],offset:Tc.DEFAULT_CARET_OFFSET,borderColor:o.borderColor,borderWidth:parseInt(o.borderWidth,10)||0},o=this.getBBTooltipDimensions(n,t,r,a,i),r.height&&r.width&&(t=e.find(".pendo-tooltip-caret")[0],a=e.find(".pendo-tooltip-caret-border")[0],t&&Hc(t,o,r,n),a)&&Jc(a,r,o.layoutDir,t),e.css({top:o.top,left:o.left,position:n.fixed?"fixed":"absolute"}))},attachBBAdvanceActions:Mc,attachScrollHandlers:Oc,isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!C.isObject(e.domJson)||!(e=Ku(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForTooltip:function(e,t,n){Ac(t,e.element,e,n),e.hasBeenScrolledTo||(la(e.element),cu(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)},patchGuideContainerWidthForResponsiveTooltips:function(e,t,n){t=t||Kc(e);var i,r,o,a,s,d;t&&(i=e.element||su(e))&&(o=t.style.width)&&-1!==o.indexOf("vw")&&(o=Rc(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),d=parseFloat(e.style.width)/100,r?n.width-=o:"left"===n.layoutDir?(r=i.left-o,n.width=Math.max(0,r*d)):"right"===n.layoutDir&&(r=t.width-i.right-o,n.width=Math.max(0,r*d)),a&&n.width>a&&(n.width=a),s&&n.width<s&&(n.width=s),e.style.width=n.width+"px")}};function Rc(e,t,n,i){var r,o,a=jo(t),t=bo(t),s=Bo(),d=e.attributes.layoutDir||"auto";return(0!==a.height||0!==a.width)&&(e=e&&!e.elementPathRule,n=$u(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:Tc.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:a,screenPos:t,screenDimensions:s,caretDimensions:r,tooltipSizes:{width:i.offsetWidth,height:i.offsetHeight,layoutDir:d},containerDomJson:n,elementIsNotVisible:e}):null}function Ac(e,t,n,i){var r,o,a,s;if(n.guideElement)return(t=Rc(n,t,e,i))?({elementPos:e,tooltipSizes:t,screenPos:a,caretDimensions:r}=t,(o=n.guideElement).addClass(ru()?Qd:Xd),Mc(n),t=Lc(e,{height:t.height,width:t.width},r,n.attributes.layoutDir,a),n&&(n.dim=t),n&&C.isFunction(n.getGuide)&&(s=n.getGuide()),a=C.get(s,"attributes.resourceCenter"),e.fixed?(o.css({position:"fixed"}),i.style.position="absolute"):n&&a||(i.style.position="absolute"),r.height&&r.width&&zc(o,t,r,e),s=Tc.Z_INDEX.DEFAULT,i&&i.style&&i.style["z-index"]&&(s=i.style["z-index"]),o.css({"z-index":s}),a||o.css({height:"auto",width:"auto",overflow:"visible"}),n.elementPathRule&&o.css({left:t.left,top:t.top,position:e.fixed?"fixed":"absolute"}),"top"===t.layoutDir&&t.hbias===Ec&&o.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),Oc(n,$c),o[0]):null}function Oc(e,t){e&&C.isFunction(e.attachEvent)&&(iu()&&e.element===k.getBody()||(t=C.throttle(C.bind(t,e,e),10),e.attachEvent(window,"scroll",t,!0),oa(C.bind(e.attachEvent,e),e.targetElement,t)))}function Nc(t,n){var e=k(n.elementPathRule)[0];n.attachEvent(e,t,function(e){k.data.set(e,"advanced",!0),_g(t,n)})}function Mc(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?Nc("mouseover",e):e.attributes.advanceActions.elementClick&&Nc("click",e))}function Lc(e,t,n,i,r){var o,a,s=Bo(),i=i||"auto",t={width:Math.min(t.width,s.width),height:t.height},d=(t.layoutDir=i,t.hbias=_c(e,s,i),t.vbias=(o=e,d=s,(a=i)===Sc||a===Ic?a:(a=o.top,(d=(o=d.height)/3)<a&&a<2*d?xc:a<o/2?Ic:Sc)),t.layoutDir=Fc(t,s,r,i),Pc(t,e,s,n));return t.top=d.top,t.left=d.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 Fc(e,t,n,i){var r,o,a,s,d,u,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,d=n.left-e.width<0,u=n.left+n.width+e.width>t.width,!(s&&a&&d&&u)&&(i<t.height/3&&(c="bottom"),(i>2*t.height/3||e.hbias===xc)&&(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!==xc&&(c=e.hbias),d&&u||(u||(c="right"),d)||(c="left")),(c=c&&"bottom"!==c||!s||a?c:"top")||e.hbias)||"bottom")}function Pc(e,t,n,i){return"top"===e.layoutDir||"bottom"===e.layoutDir?Dc(e,n,t,e.layoutDir,e.hbias,i):Bc(e,n,t,e.vbias)}function Dc(e,t,n,i,r,o){var a=e.height,s={top:null,left:null},i=("bottom"===i?s.top=n.top+n.height:"top"===i&&(s.top=n.top-a),{right:window.innerWidth*Tc.BOUNDARY_MARGIN_RIGHT,left:window.innerWidth*Tc.BOUNDARY_MARGIN_LEFT});return s.left="right"===r?function(e,t,n,i,r,o){var n=Uc(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?Gc(e,a):e-t;return e}(n,e,o,t,i.right,i.left):"left"===r?function(e,t,n,i,r){n=Uc(n),t=t.width;e=e.left-t+e.width/2+n;if(e<r)return i<e+t+(n=r-e)?Gc(e,t):e+n;return e}(n,e,o,i.right,i.left):function(e,t,n,i){t=t.width;e=e.left+e.width/2-t/2;var r=e+t;if(n<r){if((e-=r-n)<i)return Gc(e,t)}else if(e<i){r=(e+=i-e)+t;if(n<r)return Gc(e,t)}return e}(n,e,i.right,i.left),s}function Uc(e){e=(parseInt(e.offset,10)||0)+(parseInt(e.width,10)||0)+(parseInt(e.borderWidth,10)||0);return isNaN(e)?0:e}function Gc(e,t){t=window.innerWidth-(e+t);return t<e?e-(e-t)/2:e<t?e+(t-e)/2:e}function Bc(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 zc(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=Tc.Z_INDEX.CARET,Hc(r,t,n,i),e.find("#pendo-guide-container")[0].parentNode);i.appendChild(r),n.borderWidth&&(e=qc(r,n,t.layoutDir),i.appendChild(e))}function Hc(e,t,n,i){"top"!==t.layoutDir&&"bottom"!==t.layoutDir||jc(e,t,n,i),"left"!==t.layoutDir&&"right"!==t.layoutDir||Wc(e,t,n)}function jc(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 Wc(e,t,n){var i,r=Bo();return e.style["border-top"]=n.width+"px solid transparent",e.style["border-bottom"]=n.width+"px solid transparent",e.style.bottom="",t.vbias===Sc?(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===Ic?(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 qc(e,t,n){var i=e.cloneNode();return i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=Tc.Z_INDEX.BORDER_CARET,Jc(i,t,n,e),i}function Jc(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",d="border"+o[a]+"Color",u="border"+o[a]+"Style";i.style[s]?(r[s]=parseInt(i.style[s],10)+t.borderWidth+"px",r[d]=Vc(i.style[d],t.borderColor),r[u]="solid"):(r[s]="",r[d]="",r[u]="")}"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 Vc(e,t){return"transparent"===e?e:t}function Kc(e){var t,n;if(e.guideElement)return t="pendo-resource-center-container"===e.guideElement.attr("id"),n=Ku(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}function $c(e){ua(e.element)?(kc.placeBBTooltip(e),k(e.elements[0]).css({display:"block"})):k(e.elements[0]).css({display:"none"})}function Zc(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}Yc(o,e),i.push(o)}}}}function Yc(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=A(o),r=parseInt(r.marginTop,10)+parseInt(r.marginBottom,10),n+=o.offsetHeight+r)}var a=e.offsetHeight,e=A(e),e=parseInt(e.paddingTop,10)+parseInt(e.paddingBottom,10),s=A(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 Xc(e,t){var n,i,r,o,a,s,d,u,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(A(e).height,10),d=Bo().height,u=parseInt(e.style.top,10),u=isNaN(u)?0:u,c=parseInt(e.style.bottom,10),(d=d-u-(c=isNaN(c)?0:c))<s&&(n.css({"max-height":d+"px",overflow:"auto"}),s=d),s!==o?(t.css({height:(u=a&&o?o:s)+r}),"Centered"!==(c=e.getAttribute("data-vertical-alignment"))&&"Left Aligned"!==c&&"Right Aligned"!==c||t.css({"margin-top":"-"+(d<s?d:u)/2+"px"})):t.css({height:i}))}function Qc(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(A(e).width,10)),o=Bo().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 el(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&&tl(C.reduce(t,function(e,t){var n,t=k(t),i=rl(t[0]),i=i.marginLeft+i.marginRight,r=il(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)),rl(n[0])),r=e.marginLeft+e.marginRight,o=il(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&nl(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),tl({$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=rl(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=il(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&nl(t,i,r,a),tl({$blockElement:t,availableSpace:a}))})})}function tl(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 rl(e.$blockElement[0]).width});C.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function nl(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 il(e){e=e.closest("._pendo-row");if(e){e=A(e[0]);if(e)return{width:parseFloat(e.width),paddingLeft:parseInt(e.paddingLeft,10),paddingRight:parseInt(e.paddingRight,10)}}}function rl(e){e=A(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var ol,M={calculateTotalOffsetWidth:dl,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=dl(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=dl(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=dl(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return C.filter(e,sl)},getPendoVisualElements:function(e){return C.filter(e,function(e){return!sl(e)})},initializeFlexElements:function(e){var t=e.cloneNode(),n=al(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++)cl(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:sl,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=dl(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=dl(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=dl(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=A(e).width,d=-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&&!d&&(a=(a?s:null)||A(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(A(t).width,10),u=parseInt(A(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-u,"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 u;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"),u=C.get(e,"children")[0],r&&u&&-1!==(u.getAttribute("class")||"").indexOf("image-preview-placeholder")&&(s.children[0].style.width=a),!r||d||e.style.width||(s.children[0].children[0].style.width=a),s}return e},getVisualElementsWrappedInFlexElements:al,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:ul,wrapFlexElementsInFlexRows:function(e,t,n){for(var i=n||ul(t),r=M.createFlexRow(),o={row:r,rowWidthUsed:0},a=[o],s=0;s<e.length;s++){var d=e[s],u=bo(d)["width"],u=parseInt(u,10);o.rowWidthUsed+=u,o.rowWidthUsed>i&&0!==C.indexOf(e,d)&&(o.rowWidthUsed-=u,(r=M.createFlexRow()).appendChild(d),a.push(o={row:r,rowWidthUsed:u})),o.row.appendChild(d)}return a},formatFlexRows:function(e,t,n,i,r){for(var o=r||ul(t),a=0;a<e.length;a++){var s=e[a],d=(t.appendChild(s.row),M.findMaxChildHeight(s.row.children,!1)),u=(s.row.style["min-height"]=d+"px",o-parseInt(s.rowWidthUsed,10));M.setElementHorizontalAlignment(s.row.children,u,n),M.setElementVerticalAlignment(s.row.children,d,i)}},isElementHiddenInGuide:cl,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&&(pl(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:pl};function al(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 sl(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function dl(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 ul(e){var t=bo(e)["width"],e=A(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function cl(e){ll(e);var t=Zo(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-")&&(ll(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function ll(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function pl(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 hl(){return!I.designer&&f.get("disableGuidePseudoStyles")}function fl(e,t,n){return e&&e.templateName?Xu.buildNodesFromTemplate(e.templateName,e,t,n,vl):"style"===e.type&&hl()?[]:[vl(e,t,n)]}function gl(e,t,n,i){e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw i&&(e+=' for node type "'+i+'"'),x.info(e),new Error(e)}function ml(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}},d=/^data-/,u=/^aria-/,e=C.keys(n);return C.reduce(e,function(e,t){return s[o]&&s[o][t]&&gl(t,r,i,o),a[t]||d.test(t)||u.test(t)||gl(t,r,i),e[t]=n[t],e},{})}function vl(n,i,e){i=i||{id:"unknown",guideId:"unknown"},n.props=ml(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&&kc.attachScrollHandlers(i,bc),wc(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!==Ye.call(t).length&&r.addClass("pendo-code-block").html(t))}),n.content&&r.text(n.content),"style"===n.type&&(I.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=Sl(n.css):r.text(Sl(n.css))),n.svgWidgetId&&ic.buildSvgNode(n.svgWidgetId,n).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)wl(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=ra(ou()),d=s!==document,u=0;u<n.children.length;u++){var c=fl(n.children[u],i,e);C.each(c,function(e){var t;e&&("STYLE"!==e[0].tagName?e.appendTo(r):d?((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){yl(e,i)}):yl(r[0],i),r}function yl(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++,bl(k(e),t))}function bl(e,i){e.on("load",function(){var e,t={},t=(!i.containerId&&i.domJson&&(t=Ku(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&&(Qc(t,i.guideElement),el(t,i.guideElement),M.flexAllThings(t,i),e=i.getGuide(),C.get(e,"attributes.isAnnouncement")||"AnnouncementsModule"===C.get(e,"attributes.resourceCenter.moduleId")||(Xc(t,i.guideElement),(e=n.children.item("pendo-guide-container"))&&e.style&&"auto"===e.style.overflow&&(el(t,i.guideElement),M.flexAllThings(i.containerId,i))),"tooltip"===i.attributes.calculatedType&&kc.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&&kc.positionStepForTooltip(i,i.domJson,e),e.style.visibility="visible",e.parentNode.style.visibility="visible",M.flexAllThings(i.containerId,i)):x.info("Failed to find guideContainer for id: "+i.containerId)})}function wl(n,i,r){n.on(i.eventType,function(e){var t;i.designerAction?I.designerv2&&I.designerv2.designerActions&&I.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 Sl(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=Sl(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 Il(t){C.each(document.head.childNodes,function(e){e&&k.hasClass(e,"pendo-style-"+t)&&Wo(e)})}var El=function(){var e=window.navigator;return((C.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},Cl="meta",xl=C.compose(JSON.parse,JSON.stringify),_l=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()},Tl=function(e={}){(e=C.isObject(e)?e:{}).jwt&&e.signingKeyName&&(t=hs.getJwtOptions(e,"updateOptions"))&&(hs.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===An&&(x.info("Missing visitor id."),delete n.id),_n(i.id)&&_n(t.id)&&(Mn(i.id)?t.id=i.id.split(Nn)[0]:i.id=""+t.id+Nn+i.id),_n(i.id)&&(i.id=""+i.id),_n(n.id)?n.id=""+n.id:n.id=b({generate:!0}),n.language=El(),e={visitor:xl(n),account:xl(i),parentAccount:xl(t),date:_l(),version:I.VERSION},g.getters["metadata/selfHosted"]()&&(e.selfHosted=!0);var t,n=C.clone(Nl()),i=(f.setLocalConfig(C.extend({},f.getLocalConfig(),e)),g.commit("metadata/setMetadata",e),Nl()),r=(_n(e.visitor.id)&&(I.identify(e.visitor.id,e.account.id),e.visitor.id=b(),e.account.id=Bn()),rt(e)),o=(void 0!==(o="object"==typeof(o=r)?rt(o):o)&&o.toString&&(o=o.toString()),""+(C.isNumber(ol)?ol:Hn(Cl))!==o),r=(ol=r,o&&zn(Cl,r),!C.isEqual(n,i));return{options:e,hashChanged:o,storeChanged:r}},kl=qn(function(e){e=Tl(e);m.metadata.trigger(e)}),Rl=qn(function(e,t){C.isObject(e)?kl(e):Pn(e,t)}),Al=function(){var t,e=k("script");return e=e,t=new RegExp("/agent/static/"+I.apiKey+"/pendo\\.js$"),!C.any(e,function(e){return t.test(e.src)})&&!Se()},Ol=function(){var e=f.get("blockAgentMetadata");return e!==undefined&&e};function Nl(){return g.getters["metadata/metadata"]()}function Ml(){return JSON.parse(JSON.stringify(Nl()))}function Ll(e){var t=e.data[0],n=f.getLocalConfig()||{};Wn(e)?(Rn([Cl]),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 Fl={Launcher:{addBehavior:C.noop},Metadata:{getMetadata:Nl},Util:{documentScrollTop:po,documentScrollLeft:ho,getOffsetPosition:jo},Events:m,JWT:{getJWT:hs.get}};var Pl,Dl,Ul,Gl,Bl={},zl=(Dl=[],Ul=[],Gl={},(Pl=Bl).tagExtension=function(e,t){e=Pl.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},Pl.findExtensionByTag=function(t){return C.find(Ul,function(e){return C.contains(e.tags,t)})},Pl.findExtensionByName=function(e){return C.findWhere(Ul,{name:e})},Pl.filterExtensionsByUse=function(t){return C.filter(Ul,function(e){return e.use===t})},Pl.findExtensionByNameAndProvider=function(t,n){return C.find(Ul,function(e){e=e.data;return!!e&&e.name===t&&e.provider&&e.provider.name===n})},Pl.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],Gl[e]={handler:t,validators:n}},Pl.getExtensionFrames=function(){return C.reduce(Ul,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=C.filter(e,Hl)).length&&(Dl=function n(e){if(!e.length)return e;var t=C.filter(e,jl);if(t.length)return n(C.difference(e,t));return e}(Dl.concat(e)))});function Hl(t){var e;return!!C.every(["name","version","use","type","uri"],C.partial(C.has,t))&&(e=t.use,e=Gl[e]?Gl[e].validators:[],C.every(C.map(e,function(e){return e(t)})))}function jl(e){var t;return"behavior"===e.use?!!e.uri(Pl,Fl)&&(Ul.push(e),!0):(t=e.use,!!(t=Gl[t]?Gl[t].handler||C.identity:null)&&((e=t(e))&&Ul.push(e),!!e))}var L,Wl,ql,Jl,Vl,Kl,F={initializeResourceCenter:function(r){if(!(L=Zl(r)))return y.resolve();if(g.getters["frames/isShownInAnotherFrame"]()(L.steps[0]))return y.resolve();if(F.isFullyCustom(L))return L.hasResourceCenterContent=!0,y.resolve();var e=Yl(L,r),t=C.reduce(e,function(e,t){return $l(t)?e.concat(t.steps[0].fetchContent()):e},[]);return t.push(Pu.validate(L).then(C.noop,function(){L.launchMethod="api"})),L.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},C.forEach(ip(),function(e){var t=Bl.findExtensionByNameAndProvider("chat",e),t=(t&&sp(e,t),Bl.findExtensionByNameAndProvider("helpcenter",e));t&&sp(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=tp(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&np(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){Mp(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,y.all(t)["catch"](()=>(L=null,x.error("Failed to load one or more Resource Center modules"),y.resolve()))},findResourceCenterHomeView:Zl,findResourceCenterModules:Yl,replaceResourceCenterContent:Xl,renderResourceCenterModule:function(e,t){Xl(e.id,undefined,!0,t)},showHomeViewOrEmptyState:function(e){k("#pendo-resource-center-container._pendo-guide-walkthrough_").remove(),delete e.activeModule,e.hasResourceCenterContent&&e.skipResourceCenterHomeView?F.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,[{value:"none"},{value:"left"}]):e.showEmptyState&&(F.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=Bl.findExtensionByNameAndProvider(e,t);return e?(n=k(n))?((e=e.getFrame()).appendTo(n),void e.css({display:"block"})):x.info("could not find target element for "+t+" integration"):x.info(t+" integration has not been loaded into the agent")},appendIntegrationToBodyByNameAndProvider:np,attemptToPreserveIntegrationIframes:function(e){e.step&&(e=e.step.getGuide()).attributes&&e.attributes.resourceCenter&&(e=F.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(ou())})},getResourceCenter:fp,getResourceCenterContainer:gp,getResourceCenterBadge:mp,addNotificationBubbleToResourceCenterBadge:xp,addNotificationBubbleToTargetElement:_p,updateNotificationBubbles:function(){var e=L,t=C.get(e,"attributes.notifications");if(t){var n=wp(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&Op(),t.totalUnseenCount=n;else{Sp();var i=n!==t.totalUnseenCount;if(i||!yp(Jl)){if("badge"===e.launchMethod){i=mp();if(!i)return;xp(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;_p(i[0],e.attributes.notificationBubble,n),Ir(window,"resize",C.debounce(bp,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:Op,updateNotificationBubbleCount:Np,updateNotificationBubbleOnHomeView:Ip,updateOrCreateNotificationBubble:Tp,hexToRgb:vp,doesIntegrationExist:tp,calculateTotalNotificationCount:wp,updateNotificationBubblesOnHomeView:Sp,createNotification:Rp,appendNotificationBubble:Ap,hasAnnouncementBeenSeen:Mp,clearAnnouncementUnseenInterval:Ql,createAnnouncementUnseenInterval:ep,findShownResourceCenterModule:function(){var e=F.getResourceCenterContainer();if(e){e=k(e).find('[id^="pendo-g-"]');if(e){var t=e.attr("data-pendo-guide-id"),e=C.find(Wd(),function(e){return e.id===t});if(C.get(e,"attributes.resourceCenter.isModule",!1))return e}}},dismissResourceCenter:Lp,repositionResourceCenter:function(){var e=F.getResourceCenterContainer();{var t,n,i;e&&(i=F.findResourceCenterHomeView(Wd()).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=Bo().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")}Zc(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=Zo(e[0]),e=Zo(e[1]);return Yo(t,e)}(e)&&(t=jo(e[0]).width+5,n=jo(e[1]).left-t<0?"":"-",e[1].style.transform="translateX("+n+t+"px)")},resourceCenterIgnoreRtl:function(){return C.get(this.getResourceCenterBadge(),"ignoreRTL",!1)},adjustResourceCenterWidth:function(e){var t=gp();if(t){o=Bo().width,r=k(t),e=k(e),r.css({"max-width":"none"}),e.css({"max-width":"none"}),i=parseInt(A(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=A(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,d=(i&&(i=A(i),e=parseInt(i.width,10),a=parseInt(i.marginRight,10),s=parseInt(i.marginLeft,10)),o+r+e+s+a),u=parseInt(A(t[0]).width,10),c=0;c<n.length;c++){var l=n[c],p=k(l),l=(p.css({"max-width":"none"}),A(l)),h=parseInt(l.width,10),l=u-d-(parseInt(l.paddingLeft,10)+parseInt(l.paddingRight,10));l<=h&&p.css({"max-width":l})}}},setNativeIntegrationDefaults:sp,renderNativeIntegration:pp,isSupportedNativeIntegration:rp,handleNativeIntegrationContinuation:hp,isProviderInstalled:op,adjustNotificationBubbleForResize:bp,getNotificationBubbleDefaultCss:kp,getModuleId:Fp,isIframeModule:function(e){return"IframeModule"===Fp(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===Fp(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===Fp(e)&&e.hasResourceCenterContent},isFullyCustom:function(e){return"FullyCustomModule"===Fp(e)},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!F.isSupportedNativeIntegration(e.integrationProvider)||F.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n=Zl(e);if(!n)return y.resolve();if(t.getters["frames/isShownInAnotherFrame"]()(n.steps[0]))return y.resolve();if(F.isFullyCustom(n))return y.resolve();var t=Yl(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){$l(e)&&i.push(e.steps[0].fetchContent(!0))}))}),y.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:Ep,resetBadgeAriaLabel:function(){var e=F.getResourceCenterBadge();{var t;e&&(e=e.element(),t=e.getAttribute("data-pendo-stashed-aria-label"))&&e.setAttribute("aria-label",t)}},getNotificationBubbleAriaLabelAttribute:Cp,updatePseudoStyleSelectors:Pp,hideRCBadge:Dp};function $l(e){return e.steps&&e.steps.length&&C.isFunction(e.steps[0].fetchContent)}function Zl(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 Yl(t,e){return C.filter(e,function(e){return e&&!e.isFrameProxy&&C.get(e,"attributes.resourceCenter.isModule",!1)&&e.state===t.state})}function Xl(t,e,n,i=!0){if(!ql){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),gp());if(e){var a=k(e).find('[id^="pendo-g-"]')[0];if(a){var s,d=a.getAttribute("data-pendo-guide-id"),u=C.find(Wd(),function(e){return e.id===t}),c=(t!==L.id?(Il(C.get(L.activeModule||L,"steps.0.id")),L.activeModule=u):(s=L.activeModule,Il(C.get(s,"steps.0.id")),delete L.activeModule),C.get(u,"attributes.resourceCenter.integrationProvider")),l=(rp(c)&&pp(c),u.steps[0]),c=Pp(l.domJson),c=(c.props["data-pendo-guide-id"]=u.id,vl(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]),F.adjustResourceCenterWidth(p),"AnnouncementsModule"===Fp(u)&&l.guide.guidesInModule?(el(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"),Zc(k(e)),p.style.left="0px",!n){ql=!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),ql=!1},200)}catch(h){throw ql=!1,h}}return"AnnouncementsModule"===Fp(u)&&(ep(),r=Xu.getGuidesInResourceCenterModule(u,Wd()),(n=C.reduce(r,function(e,t){return t.steps&&t.steps.length&&Wu.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),y.all(n).then(function(){var e=y.defer();return Ut(e.resolve,500),e.promise}).then(function(){L.activeModule===u&&F.renderResourceCenterModule(u,i)})),F.setFocusForResourceCenterModule(c,d),i&&l.onShown("launcher"),c}}}}function Ql(){window.clearInterval(Wl),Wl=null}function ep(){Wl=Wl||window.setInterval(function(){var e=gp();if(!e)return Ql();e=k(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return Ql();var t=k(e).find('ol[id^="pendo-list"]');if(!t.length)return Ql();var n=Zo(t[0]),i=k(t).find("li");if(!i.length)return Ql();for(var r=e.attr("data-pendo-guide-id"),o=L.attributes.notifications.individualCounts[r],a=n.height/3,s=Zo(i[i.length-1]).bottom-30<n.top+n.height,d=0;d<i.length;d++){var u=k(i[d]),c=u.hasClass("pendo-unseen-announcement"),l=u.attr("data-pendo-announcement-send-seen-event");if(c||l){if(Zo(i[d]).top-n.top>n.height-a&&!s)break;var p=u.attr("data-pendo-announcement-guide-id"),l=C.find(Wd(),function(e){return e.id===p});if(!l)break;c&&(u.removeClass("pendo-unseen-announcement"),c=u.find(".pendo-unread-announcement-mini-bubble"),Ce(10)?u.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"),Mp(l)||o--,Np(o,r)),l.steps[0].seenState="advanced",Hg(l.id,l.steps[0].id,b(),"whatsnew",l.language,{last_updated_at:l.steps[0].lastUpdatedAt}),u[0].removeAttribute("data-pendo-announcement-send-seen-event"),Wg(l.id,l.steps[0].id,b(),"advanced",l.language)}}},500)}function tp(e,t){return Bl.findExtensionByNameAndProvider(e,t)}function np(e,t){e=Bl.findExtensionByNameAndProvider(e,t);if(!e)return x.info(t+" integration has not been loaded into the agent");rp(t)&&op(t)?L.hasEligibleNativeIntegrationModule=!0:($o((t=e.getFrame())[0])||t.appendTo(ou()),t.css({display:"none"}))}function ip(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging"]}function rp(e){return!!e&&0<=ip().indexOf(e)}function op(e){return!!e&&null!==(e=ap(e))&&C.isFunction(window[e])}function ap(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 sp(e,t){if(e)if(op(e))dp(e,t);else{var n;if("function"==typeof Object.defineProperty){const i=ap(e);null!==i&&(Vl&&Vl[i]?Vl[i][e]||(Vl[i][e]={installed:!1,integrationObj:t}):((Vl=Vl||{})[i]={[e]:{installed:!1,integrationObj:t}},Object.defineProperty(window,i,{get(){return n},set(e){n=e,C.forEach(Vl[i],function(e,t){const n=e.integrationObj;!e.installed&&op(t)&&(e.installed=!0,dp(t,n),np(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 dp(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=cp(i);up(n,"webWidget","hide"),up(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),up(n,"webWidget:on","close",function(){up(n,"webWidget","hide"),lp()}),L.isInProgress()&&hp(L.activeModule),up(n,"webWidget:on","chat:unreadMessages",function(e){Np(e,"chat")});break;case"zendesk-messaging":i=t;up(i=i.data.provider.name,"messenger","hide"),up(i,"messenger:on","close",function(){lp()}),up(i,"messenger:on","unreadMessages",function(e){Np(e,"chat")});break;case"intercom-chat":var r=t;r=cp(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(){lp()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=Nl();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 Np(1,"chat")})}),window.drift.on("chatClose",function(e){Np(0,"chat"),window.drift.hide(),lp()})}}function up(e,...t){try{Kl&&Kl[e]||window.zE.apply(null,t)}catch(n){Kl?Kl[e]=!0:Kl={[e]:!0}}}function cp(e){e=C.get(e,"data.options.labels.position");return e=e&&e.split("-")}function lp(){Lp(L.activeModule),delete L.activeModule,L.continueToNativeModule=!1}function pp(e,t){if(e){var n=Nl();if(L.isShown()&&L.hide(),Kl&&Kl[e])x.info(e+" integration failed to communicate with API, closing"),F.replaceResourceCenterContent(L.id,undefined,!0),lp();else{var i=mp();switch(i&&Dp(i,L),e){case"zendesk-messaging":up(e,"messenger","show"),up(e,"messenger","open");break;case"zendesk-native-kb":up(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),up(e,"webWidget","show"),up(e,"webWidget","open");break;case"zendesk-chat":up(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&up(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})}Np(0,"chat"),!L.activeModule&&t&&(L.activeModule=t).steps[0].onShown("launcher")}}}function hp(e){e&&!e.isTopLevel&&(pp(C.get(e,"attributes.resourceCenter.integrationProvider")),L.activeModule||(L.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function fp(){return L}function gp(){return C.get(L,"steps.0.guideElement.0")}function mp(){if(L&&L.id)return zd[L.id]}function vp(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 yp(e){return e&&C.all(e,function(e){return $o(e&&e.length?e[0]:e)})}function bp(){var e,t=F.getResourceCenter(),n=C.get(t,"attributes.notifications");n&&(n=F.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&C.get(t,"attributes.activation.selector")&&(e=k(t.attributes.activation.selector)).length&&F.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function wp(e){return C.reduce(e,function(e,t){return e+t},0)}function Sp(){var e,t=L;t&&(t=C.get(t,"attributes.notifications"))&&(e=gp())&&k(e).find("._pendo-resource-center-home-list").length&&C.each(t.individualCounts,function(e,t){Ip(e,t)})}function Ip(e,t){var n=F.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 Ep(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function Cp(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function xp(e,t,n){var i=Cp(n);let r=e.getAttribute(i);r&&(Ep(e),r=r.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",r));var i=C.get(t,"position","top-left"),o=A(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=F.resourceCenterIgnoreRtl();Tp(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 _p(e,t,n){var i=yo(e,e),r=yo(e,Vo());Tp(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 Tp(e,t,n,i,r){var o,a;yp(Jl)?(a=(o=kp(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=C.extend(a,i),o=C.extend(o,r),Jl.bubbleEle.css(a),Jl.unseenCountEle.css(o),Jl.unseenCountEle.text()!=""+n&&Jl.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&&Ap(Jl=Rp(t,n,i,r),e)}function kp(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 Rp(e,t,n,i){var r=kp(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),Ce(10)||hl()||(i="rgb("+(r=vp(e["background-color"])).r+", "+r.g+", "+r.b+")",Yu(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 Ap(e,t){e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function Op(){var n=Jl?Jl.bubbleEle:k(".pendo-resource-center-badge-notification-bubble"),i=Jl?Jl.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)}),Jl=null,F.resetBadgeAriaLabel()}function Np(e,t){var n=L;n&&(n=C.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,F.updateNotificationBubbles())}function Mp(e){return!(!C.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function Lp(e){var t=C.get(e,"attributes.resourceCenter.isModule",!1)?e:F.findShownResourceCenterModule();t&&(t=C.first(t.steps),Eg(t));t=(C.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:F.findResourceCenterHomeView(Wd())).steps[0];return Eg(t)}function Fp(e){return C.get(e,"attributes.resourceCenter.moduleId")}function Pp(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 Dp(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete zd[t.id])}var Up=1e4,Gp="lastStepAdvanced";function Bp(e){g.dispatch("guideState/updateLastGuideStepSeen",e),g.dispatch("guideState/write"),g.dispatch("frames/changeLastGuideStepSeen",e)}function zp(){g.dispatch("guideState/regainFocus")}function Hp(){return g.state.guideState.lastGuideStepSeen}var i={actions:{init(e){e.getters.storage().registry.addLocal(Gp),e.commit("setScopedStorageKey",Pt(e.state.storageKey)),m.identify.on(function(e){Wn(e)&&Rn([Gp])})},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&&(x.info("making sure that seenState = '"+e.state+"' for "+n+": "+r),t.seenState=e.state),t.snoozeEndTime!=e.snoozeEndTime&&(x.info("making sure that snoozeEndTime = '"+e.snoozeEndTime+"' for "+n+": "+r),t.snoozeEndTime=e.snoozeEndTime),t.seenReason!=e.seenReason&&(x.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),x.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),I.lastGuideStepSeen=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)}));x.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)&&(eh(),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||(th(),nh())),n&&Vm()}},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:Up,storageKey:Gp,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()}}},jp={canDisplay:function(e,t,n){if(n&&n.enabled&&C.isFinite(t)){t=Jp(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 qp(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,Wp),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=jp.lastDismissedTime(t),n=jp.canDisplay(v(),n,t.throttling);if((qp(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:Jp};function Wp(e){return e&&/auto/.test(e.launchMethod)}function qp(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||C.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function Jp(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 Vp(t){return m.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+"?"+Qr(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=Kr(e).substring(1),t=Xr(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=Kr(e.substring(n+1)).substring(1),C.extend(t,Xr(n))),t}}var Kp=C.memoize(function(){return Vp(N)});function $p(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 Zp{constructor(){this.name="autoDisplay",this.queue=[]}markDirty(){pu()&&(this.queue.push("permalink","continuation"),this.queue.push(...jp.sortAndFilter(jd(),I.autoOrdering)))}process(e){if(dg())this.cancel();else{var t=this.queue.shift();if("permalink"===t)return Kp().tryDisplay();if("continuation"===t){var n=$p(jd(),Hp());if(n)return e.saveContext(n),n.show("continue")}else if(t){if(!$p(jd(),Hp()))return e.saveContext(t),jp.tryDisplayGuide(t,I);this.cancel()}}}handleProcessTimeExceeded(e){e=e.getContext();e&&x.warn("Auto display ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var Yp=null,Xp=500,Qp=function(e){Yp=C.delay(function(){Yp=null,nh()},e=e||Xp),I.guidesProcessingThreadHandle=Yp},eh=function(){Yp&&(clearTimeout(Yp),Yp=null,I.guidesProcessingThreadHandle=Yp),g.dispatch("guideUpdate/stopScheduledUpdate")},th=function(){hg(),ph.cancel();for(var e=0;e<Bd.length;e++){var t=Bd[e];t.parentNode.removeChild(t)}Bd.length=0,g.dispatch("guideUpdate/stopObserver"),m.guideLoopStopped.trigger()},nh=function(){if(eh(),Jm.pending||om&&I.id&&I.id!==om.id)x.info("guides are loading.",{contexts:["guides","loading"]});else if(Fm())x.info("guides are disabled.",{contexts:["guides","disabled"]});else if(Pm())x.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!g.getters["guideState/tabLostFocus"]())try{var e=Yd();e&&0!==e.length&&(g.dispatch("guideUpdate/startObserverIfNeeded"),ph.isComplete()&&ph.markDirty(),g.getters["frames/leaderExists"]())&&ph.process()}catch(t){ph.cancel(),x.critical("ERROR in guide-loop",{error:t})}finally{ph.paused||(ph.isComplete()?(g.state.guideUpdate.useObserver&&!g.state.guideUpdate.needsUpdate||Qp(),m.guideUpdateComplete.trigger()):Qp(50))}};var ih=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)),nh()},rh=function(){Fm()||Um(!0),th(),am()};class oh{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 ah{constructor(){this.name="badge",this.queue=[]}markDirty(){this.queue.push.apply(this.queue,C.filter(qd(jd()),eu))}process(e){var t=this.queue.shift();e.saveContext(t),t&&t.placeBadge()}handleProcessTimeExceeded(e){e=e.getContext();x.warn("Badge ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}function sh(i,e){var r,o,t,n,a;F.isFullyCustom(i)||(r=!1,o=[],t=C.filter(i.modules,function(e){var t,n;return!!e&&(!!F.isIframeModule(e)||!!F.isSandboxModule(e)||(F.isIntegrationModule(e)?!!F.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,F.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)&&F.replaceResourceCenterContent(i.moduleIdToReplaceHomeViewWith,undefined,!0),t&&(n=C.find(t,function(e){return e.isContinuation(Hp())}),a=C.get(n,"attributes.doNotResume"),e=C.get(n,"attributes.resourceCenter.integrationProvider"),F.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&&F.replaceResourceCenterContent(i.activeModule.id,undefined,!0),e||F.replaceResourceCenterContent(i.id)),F.repositionResourceCenter())}function dh(e,t,n){var i,r,o=zd[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&&F.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=zd[e.id]),o&&o.show(),e.badgeHidden=!1)}function uh(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&&F.isSupportedNativeIntegration(n),F.isFullyCustom(e)?e.hasResourceCenterContent=!0:(e.isShown()||!g.getters["frames/isLeader"]()?sh(e,dh):(t=e,n=dh,F.isFullyCustom(t)||(i=[],o=[],(r=C.find(t.modules,function(e){return!!F.isIframeModule(e)||!!F.isSandboxModule(e)||!!F.isIntegrationModule(e)&&(!!F.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=zd[e.id])&&F.hideRCBadge(a,e),"dom"===e.launchMethod&&(F.updateNotificationBubbles(),F.adjustNotificationBubbleForResize())))}class ch{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 lh{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 ch(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,nh())},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 oh(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()&&Vd.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 ph=new lh([new ah,new oh("resourceCenter",function(){uh(F.getResourceCenter())}),new oh("frameVisibility",function(){g.dispatch("frames/checkFrameVisibility")}),new oh("guideShowing",function(){var a=$m();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("."+rg),(r=r.find("#pendo-guide-container")[0])&&r.textContent&&(r=A(r).fontSize,e.attributes.currentTextZoomFontSize!==r)&&(e.attributes.currentTextZoomFontSize&&e.redraw(),e.attributes.currentTextZoomFontSize=r),e.elementPathRule&&n&&!s.matchesSelector(n,e.elementPathRule)?e.hide():(r=ua(t),o=!0,n&&r&&e.elementContainsRulesList&&(o=Mg(n,e.elementContainsRulesList),r=o),t&&(r||i.hasClass("mouseover"))?e.checkPlacement():("tooltip"===e.type||"tooltip"===e.attributes.calculatedType)&&ca(t)&&o||e.hide()))}),a.guide.checkForHiddenGroupSteps())}),new Zp]);function hh(){ph.addPhase(...arguments)}function fh(){ph.removePhase(...arguments)}function gh(){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 mh="debug-enabled";function vh(){try{var e=JSON.parse(h.read(mh,!0)||Mt(mh));return"boolean"==typeof e?{enabled:e}:e||{}}catch(t){return{}}}function yh(e=!0){let t;return t=g&&g.getters&&g.getters["debugger/debuggingEnabled"]?g.getters["debugger/debuggingEnabled"]():!0===vh().enabled,e?t:t?"Yes":"No"}class bh{constructor(e,t){this.type=t,this.identificationFn=e}test(e){return this.identificationFn(e)}}const wh=(()=>{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:()=>{m.resourceFetchFail.on(e)},stop:()=>{m.resourceFetchFail.off(e)},addTypeHandler:(e,t)=>{C.isFunction(t)?n[e.type]={GuideType:e,handler:t}:x.error("Invalid Handler function provided for type "+e.type)}}})();wh.addTypeHandler(new bh(eu,"badge"),(e,t)=>{Vd.addGuide(e)});var Sh="_pendo-badge_";function Ih(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function Eh(t,n){var e,i,r,o,a,s=du(n),d=!(null==(d=null==t?void 0:t.attributes)||!d.resourceCenter),u=!1;return d&&(u=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=d?["he","ar"]:[],e=>(C.contains(a,o)&&(e.props["data-localization-direction"]=!0),e)),(r=u,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}),Ih,Hu,function(e){return vl(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=zu(this.imageUrl),i.className="_pendo-badge "+Sh,d=this.width||13,u=this.height||13,Uo(i,"width:"+d+"px;height:"+u+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=C.isFunction(n.getGuide)&&n.getGuide(),t=Ug(e);!e.isShown()||g.getters["frames/isShownInAnotherFrame"]()(n)?Bg(n,"badge"):t?n.eventRouter.eventable.trigger("pendoEvent",{step:n,action:"dismissGuide"}):(t=C.find(e.steps,function(e){return e.isShown()}),Eg(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),Il(t.id),C.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},Ug(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}Eh.create=function(n){var i=Eh.findStep(n);if(i)return C.reduce(Eh.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},Eh.findStep=function(e){var t=C.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},Eh.behaviors=[gh,Eh,function(){"inline"!==this.position&&"inline-right"!==this.position&&"inline-left"!==this.position||this.before("show",function(){var e,t=this.target(),n=this.element();this.isP2Badge&&Uo(n,"display:inline-block;vertical-align:text-bottom;"),this.css&&Uo(n,this.css),t&&t.tagName&&(e=t.tagName.toLowerCase(),/br|input|img|select|textarea/.test(e)?n.parentNode!==t.parentNode&&t.parentNode.insertBefore(n,t.nextSibling):n.parentNode!==t&&("inline"===this.position||"inline-right"===this.position?t.appendChild(n):"inline-left"===this.position&&t.prepend(n)))});return this},function(s){this.position&&"top-right"!==this.position&&"top-left"!==this.position||this.before("show",function(){var e=this.element(),t=jo(this.target()),n=0,i=0,r=0;if(this.offsets&&(n=this.offsets.top||0,i=this.offsets.right||0,r=this.offsets.left||0),!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"}Uo(e,o)}if(!e.parentNode){ou().appendChild(e);const a=oa(Ir,this.target(),kh);this.removeScrollHandlers=()=>{kh.cancel(),a()}}});return this},function(){"over"===this.position&&this.before("show",function(){var e=this.element(),t=jo(this.target()),n="position:absolute;top:"+t.top+"px;left:"+t.left+"px;";if(n+="height:"+t.height+"px;width:"+t.width+"px;",Uo(e,n+="background-color:transparent;"),!e.parentNode){ou().appendChild(e);const i=oa(kh,e,this.target());this.removeScrollHandlers=()=>{kh.cancel(),i()}}});return this},function(){var t=this,e=t.element(),n=!1,i=function(e){t.activate(),t.toggleAriaExpanded&&t.toggleAriaExpanded(),Ud(e)};return t.after("show",function(){n||(l(e,"click",i),n=!0)}),t.after("hide",function(){Dd(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){Cr(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}(Cr(e))||o()},50,{trailing:!1}),r=function(e){n.isShown()||Bg(n,"badge"),l(document,"mousemove",i),Ud(e)},o=function(e){Dd(document,"mousemove",i),iu()||Eg(n)},this.after("show",function(){e||(l(t,"mouseover",r),e=!0)}),this.after("hide",function(){Dd(t,"mouseover",r),Dd(document,"mousemove",i),e=!1}))}return this},function(){var s=this.element(),d=this.target(),e=!1;{var t,n,i,r,u;!this.showBadgeOnlyOnElementHover&&!/hover/.test(this.showOnEvent)||iu()||(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;Cr(e)===d||Cr(e)===s||Oo(s,"triggered")||(t=e.clientX,e=e.clientY,n=Zo(d),i=Zo(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)||u()},50,{trailing:!1}),r=function(){Uo(s,t),l(document,"mousemove",i)},u=function(){Dd(document,"mousemove",i),Uo(s,n)},this.after("show",function(){e||(l(d,"mouseover",r),e=!0,u())}),this.after("hide",function(){e&&(Dd(d,"mouseover",r),e=!1),u()}))}return this}];var Ch=function(e,t){var n,i,r=(t=t||zd)[e.id],o=r?r.step():Eh.findStep(e);o&&(i=r?r.target():du(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||(F.updateNotificationBubbles(),n=!0,o.elementContainsRulesList&&(n=i&&Mg(i,o.elementContainsRulesList)),(i=o.elementPathRule&&ua(i)&&s.matchesSelector(i,o.elementPathRule)&&n)?((r=r||Eh.create(e)).show(),t[e.id]=r):r&&!o.isShown()&&(t[e.id]=undefined,r.hide()),yh()&&m.stepEligibility.trigger({stepId:o.id,guideId:e.id,eligible:i,reason:"target_element_badge"}),F.repositionDoubleResourceCenterBadge()))},xh=function(){C.map(zd,_h),zd={}},_h=function(e,t){e&&(C.isFunction(e.hide)&&e.hide(),C.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete zd[t.id]},Th=function(e){var t=zd[e.id];t&&_h(t,e)};var kh=C.throttle(function(){C.map(zd,function(e){e&&e.show&&e.show()})},10);const Rh=h.getLocal();var P,Ah="pendo-preview",Oh="current-guide-preview";function Nh(e){return g.dispatch("preview/load"),Mh(e)}function Mh(t){var e=Kh();if(e)return Fh(t),g.dispatch("preview/start",C.extend(e)),h.clear(Gp),Nt(!1),ts.lock(),cm=Xh,m.startPreview.trigger(),m.leaderChanged.on(function(e){g.dispatch("preview/write"),e.oldLeaderId||Vm(),g.getters["frames/isLeader"]()||(k(P).remove(),P=null,t.removeEventListener("message",Dh))}),hh(Lh),!0}function Lh(){if(!g.getters["frames/isFollower"]()){var t,n,i,r,o,e,a=document,s=Yd(),d=Hp();if(Uh()&&(t=Kh())&&P&&P.contentWindow)if(s&&s.length){P.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=d||{},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,d=r-1<=i,s=s||d,d=d?r-1:i,e=n.steps[d],p=e.isShown(),P.contentWindow.postMessage({mutation:"preview/setHostname",payload:{hostname:He}},location.origin),P.contentWindow.postMessage({mutation:"preview/setGuidePages",payload:{guidePages:n.previewPages}},location.origin),P.contentWindow.postMessage({mutation:"preview/setGuideProgress",payload:{guideName:n.name,guideAttributes:JSON.stringify(n.attributes),guideLaunchMethod:n.launchMethod,guideActivationSelector:uu(n),isAdoptGuide:n.isTraining,isResourceCenter:t.isResourceCenter,stepId:e&&e.id,currentStepIndex:d,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 u=e,c=d,l=P;if(u&&l&&l.contentWindow){const h=u.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:u.id,guideId:h,currentStepIndex:c})),y.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):u.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 Wh(0,{status:404,data:"Guide not found"})}return!0}function Fh(e){if(g.getters["frames/leaderExists"]()){if(!g.getters["frames/isFollower"]()){if(P)return!0;var t,n;C.isFunction(e.addEventListener)&&e.addEventListener("message",Dh),(t=document.createElement("iframe")).id=Ah,Go(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")||io("pendo.preview.min.js"),t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},P=t,Vo().appendChild(P)}}else m.one("leaderChanged",C.partial(Fh,e))}function Ph(e,t,n){hg(),g.commit("healthCheck/resetStepStatus",null,{root:!0}),Wu.reset(),Vm();var i=e[0],i=(i&&C.each(i.steps,function(e){e.seenState=null}),h.clear(Gp),g.dispatch("preview/update",null),Kh());return i&&(i=C.findWhere(e,{id:i.guideId}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),g.dispatch("preview/restart",i)),jh(e,t)}function Dh(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===Ah+"::exit"?(qh({preventWindowClose:n}),g.dispatch("frames/stopPreview",{preventWindowClose:n})):t===Ah+"::restart"?(n=Ph(Yd(),Hp(),e.data.language),g.dispatch("guideState/forceExpire"),g.dispatch("guideState/updateLastGuideStepSeen",n),g.dispatch("frames/restartPreview")):t===Ah+"::resize"?(n=e.data.height,P&&P.style&&(P.style.height=n)):t===Ah+"::request-preview-mode-type"&&(e=$h(),P)&&P.contentWindow&&e&&P.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:e.previewModeType||"NEW_TAB"}},location.origin))}function Uh(){return g.getters["preview/isInPreviewMode"]()}function Gh(){return g.getters["preview/isInDesignerPreviewMode"]()}function Bh(e){var t,n,i=Kh();if(!i)return e;if(i.isResourceCenter)return r=e,t=i,n=F.findResourceCenterHomeView(r),r=C.filter(r,function(e){return e.id!==n.id}),Hh(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"))}),zh(t),t.showsAfter=null,t.expiresAfter=null,Hh(t,o.stepId),r}}function zh(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function Hh(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 jh(e,t){null==t&&(t={});var n=Kh();if(!n)return t;e=C.findWhere(e,{id:n.guideId});if(!e)return t;if(n.state)return n.state;zh(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:n.guideId,guideStepId:n.stepId,state:"active"}:{}}function Wh(e,t){P&&P.contentWindow&&P.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:t}},location.origin)}function qh(e){var t=$h(),n=!1,i=(t&&(n="SAME_TAB"===t.previewModeType),Rh.getItem("pendo-navigation-state"));if(g.dispatch("preview/exit"),hg({stayHidden:!0}),h.clear(Gp),ts.unlock(),k(P).remove(),cm=bu,fh(Lh),Nt(!0),n&&i){Rh.setItem(Oh,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(),Vm()}function Jh(e,t){e=C.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function Vh(){return g}var Kh=C.partial(Jh,Vh,"state.preview.preview"),$h=C.partial(Jh,Vh,"state.preview.designerPreview");function Zh(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 Yh=function(e){var t;return wa(e.origin)?(t=Zh(e))?(t={url:e.origin+t+"?url="+vt(R.externalizeURL())+"&apiKey="+I.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),_r(t).then(function(e){return e.data.guide})):(x.info("Invalid guide url, exiting preview"),y.reject("invalid guide url")):(x.info("Invalid origin, exiting preview"),y.reject("invalid origin"))},Xh={load(e,t,n){return ef(e,n)},post(e,t,n,i){return ef(e,i)},endpoint(){return""},usesXhr(){return!0}};function Qh(n,t){if(!wa(n.origin))return x.info("Invalid origin, exiting preview"),y.reject("invalid origin");var e=Zh(n);if(!e)return x.info("Invalid guide url, exiting preview"),y.reject("invalid guide url");if(!g.getters["frames/leaderExists"]()||n.apiKey!==I.apiKey)return I.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),y.resolve();let i=""+n.origin+e+`?url=${vt(R.externalizeURL())}&apiKey=`+I.apiKey;n.childGuides&&n.childGuides.length&&(i+="&childGuides="+n.childGuides.toString()),Gh()&&(i+="&ignoreGuide=true");var e={url:i,withCredentials:!0},r=(n.headers&&(e.headers=n.headers),[]);return _r(e).then(function(e){var t,c,e=e.data;return Gh()?(t=$h(),r=t?Gh()?(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(u){C.forEach(u.steps,function(e){var{domHash:t,domJsonpHash:n,translationHash:i,originalDomJsonHash:r,originalDomJsonpHash:o,originalBuildingBlockHash:a,domHash256:s,domJsonpHash256:d}=C.get(u,"translationStates."+c+".stepTranslations."+e.id,{});e.domUrl=tf(r,e.domUrl,".dom.json",s),e.domJsonpUrl=tf(o,e.domJsonpUrl,".dom.jsonp",d),e.buildingBlocksUrl=tf(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),I.guideWidget={enabled:!1,data:{guideCssUrl:e.guideCssUrl}},I.guideCssUrl=e.guideCssUrl,I.normalizedUrl=e.normalizedUrl,I.throttling=undefined,e.guide}).then(function(e){var t;return n.watermarkConfig?(t=JSON.parse(JSON.stringify(n)),t=Object.assign(t,n.watermarkConfig),Yh(t)):e}).then(function(e){e&&e.attributes&&e.attributes.isWatermark&&r.push(e),I.guidesPayload({id:t,lastGuideStepSeen:jh(r,I.lastGuideStepSeen),guides:Bh(r)})})["catch"](function(e){return Wh(document,e),y.reject(e)})}function ef(e,t){var n=Kh();return!n||!Zh(n)||!(e=/[?&]id=(\d+)/.exec(e))||e.length<1?y.reject():Qh(n,e[1]).then(t)}function tf(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 nf=function(){let n=null,i=[];const r=e=>{I.apiKey=e+="",n=e};return{getApiKey(){return I.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),I.additionalApiKeys=i,!n&&i&&i.length&&r(i[0])},getAdditionalApiKeys(){return I.additionalApiKeys},tamperedWith(){return I.apiKey!==n||I.additionalApiKeys!==i}}}(),rf=h.getLocal();of=Pe||He,af="in-app-designer",sf="latest",m.leaderChanged.on(function(){uf({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||Gh()})});var of,af,sf,df={launchDesigner:function(e){var t,n="latest",i="designer";Yu(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%;}"),yf("designer-shims",of+"/"+i+"/"+n+"/plugin.js"),I.DESIGNER_VERSION?mf(n,i):t=window.setInterval(function(){I.DESIGNER_VERSION&&(mf(n,i),clearInterval(t))},100)},launchInAppDesigner:gf,localStorageNavigation:uf,launchOnToken:function(e){if(!bf(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=lf(t),n=ff(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),gf({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,df.hostConfig.host)},isValidDesignerHost:cf,isValidTarget:hf,addCommunicationIframe:function(e,t){e=e||{};C.isFunction(t)||(t=C.noop);var n=ff(e),e=pf(e),i=(new Date).getTime(),r=(df.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=vf(r,of+"/"+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:of},isDesignerFrame:bf,addScriptToPage:yf};function uf(e){if(!e.ignoreLocalStorageNavigation){var t,e=rf.getItem("pendo-navigation-state");if(e&&g.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(n){return}if(!t.apiKey||t.apiKey===nf.getApiKey())if(t.apiKey||!t.agentInstallType||t.agentInstallType===we())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},df.launchInAppDesigner(e),!0}}}function cf(e){return!!e&&wa(e)}function lf(e){var e=(e=e||{}).host||of,t=cf(e),n=t?e:He;return e&&!t&&x.info("Invalid host, falling back to "+He),n}function pf(e){var e=(e=e||{}).gcsBucket||af,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:af;return t||x.info("Invalid bucket, falling back to "+af),e}function hf(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 ff(e){e=e||{};var t=f.get("enableCrossOriginIsolation")?"strict":sf,e=e.target||e.baseFolder||t,t=hf(e),e=t?e:sf;return t||x.info("Invalid target, falling back to "+sf),e}function gf(e){if(!bf(window.name)&&!I.designerLaunched)if(f.get("disableDesigner"))x.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){}df.crossFrameChannel===undefined&&(df.crossFrameChannel=D,df.useCrossFrameChannel=!0),ja()&&a&&!e.allowChildFrame&&!e.selectionOnly?x.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):I.isReady()?(I.designerLaunchTime=(new Date).getTime(),a=lf(e=e||{}),r=pf(e),o=ff(e),i=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+r+"/"+o+"/"+i,f.get("useAssetHostForDesigner")&&(n=io(i)),df.hostConfig={gcsBucket:r,baseFolder:o,uniqueWindowId:e.uniqueWindowId,host:a,adoptv2:e.adoptv2,DADesigner:e.DADesigner,agentInstallType:we(),forceNativeDesigner:!!e.forceNativeDesigner,sidebarDesigner:!!e.sidebarDesigner,apiKey:nf.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)&&(df.addScriptToPage(t,n,i),I.designerLaunched=!0),!e.forceNativeDesigner&&C.isFunction(r)&&(r(t,n,i),I.designerLaunched=!0)):x.error("Unable to launch the designer, the agent has not been initialized. Please use `pendo.initialize` prior to launching the designer")}}function mf(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+="__"+df.windowCommunicationId,(t=vf("pendo-designer-iframe",of+"/"+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 vf(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&Uo(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 yf(e,t,n){var i;document.getElementById(e)||((i=document.createElement("script")).setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=Z(I).createScriptURL(t),n&&C.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function bf(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(n){return!1}}wf={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"},Sf={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},(If={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370}).FOOTER_HEIGHT=1.25*If.HEADER_HEIGHT,If.BODY_HEIGHT="calc(100% - "+If.HEADER_HEIGHT+"px - "+If.FOOTER_HEIGHT+"px)",Ef='<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>',(Cf={})["#"+wf.closeButton+":hover"]={"background-color":Sf.GRAY_LIGHTER_6},Cf["#"+wf.launchButton+":hover"]={"background-color":Sf.TEAL_DARKER+" !important"},xf={PRIMARY_FONT:"Helvetica Neue"};var wf,Sf,If,Ef,Cf,xf,_f={listen:function(){return C.isFunction(document.addEventListener)?(document.addEventListener("keyup",Tf,!1),()=>{document.removeEventListener("keyup",Tf,!1)}):()=>{}},launchOnLocalStorageToken:Lf,ids:wf,removeElement:Of,attemptToLaunch:Af,loadPluginJs:function(){var t;I.designerLaunched||(t=C.once(function(e){Lf(e,!0)}),qa(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}};function Tf(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&Af(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&Af(!1,!0)}function kf(e,t){var n,i,r,o={"background-color":Sf.WHITE,height:If.MODAL_HEIGHT+"px","min-height":If.MODAL_HEIGHT+"px",width:If.MODAL_WIDTH+"px",position:"fixed",top:If.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-If.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=Rf("div",wf.container,o);Yu(f,wf.style,C.reduce(C.pairs(Cf),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=Rf("div",wf.header,{"background-color":Sf.GRAY_PRIMARY,height:If.HEADER_HEIGHT+"px","min-height":If.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(i=Rf("div",wf.logoContainer,{height:"38px",width:"44px","background-color":Sf.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=Z(I).createHTML(Ef),r.appendChild(i),(i=Rf("div",wf.title,{width:"100%",display:"flex","align-items":"center","font-family":xf.PRIMARY_FONT,"font-size":"18px",color:Sf.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=t?"VIA Designer":"Pendo Designer",r.appendChild(i),r)),o.appendChild(((t=Rf("div",wf.body,{height:If.BODY_HEIGHT,"min-height":If.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":xf.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=Rf("div",wf.footer,{"align-items":"center","border-top":"1px solid"+Sf.GRAY_LIGHTER_6,display:"flex",height:If.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":If.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(r=Rf("button",wf.closeButton,{"border-radius":"3px",border:"none",height:If.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":xf.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(){Of(wf.container),Of(wf.commIframeId)},(t=Rf("button",wf.launchButton,{"background-color":Sf.TEAL_PRIMARY,"border-radius":"3px",color:Sf.WHITE,border:"none",height:If.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":xf.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(){Lf(n)},i.appendChild(r),i.appendChild(t),i)),document.body.appendChild(o)}function Rf(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),C.extend(e.style,n),e}function Af(t,n){var i,r,o;I.designerLaunched||(o=C.once(function(e){t||!n?Lf(e):kf(e,t),Nf()}),qa(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(wf.commIframeId)&&Mf()},100))):Nf())}),df.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){Mf(),i=window.setInterval(Mf,50)}))}function Of(e){document.getElementById(e)&&document.getElementById(e).remove()}function Nf(){var e=document.querySelector("#"+wf.commIframeId+'[src*="pendo"]');e&&e.remove()}function Mf(){var e=document.getElementById(wf.commIframeId);e&&e.contentWindow&&C.isFunction(e.contentWindow.postMessage)&&e.contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:I.visitorId},C.get(I,"designerv2.hostConfig.host",He))}function Lf(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),Of(wf.container),df.launchInAppDesigner(n)}var Ff=C.wrap(C.wrap(C.once(C.wrap(function(e){var t=y.defer();return xa(e,function(){t.resolve()}),t.promise},function(e,t){return 0<C.size(yu._handlers.validateGlobalScript)?_r.get(t).then(function(e){return yu.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)})),function(e,t){return t?e(t):y.resolve()}),function(e,t){return f.get("preventCodeInjection")?y.resolve():e(t)}),Pf={initializeWatermark:function(e){e=C.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),Pf.watermarkGuides=e,e=C.map(e,function(e){return e.fetchContent()});return y.all(e)},buildWatermark:function(e,t){if((e=e||{}).isTraining){var n=e.targetAccount?function(t){return C.find(Pf.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return C.find(Pf.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 Df=1e4;function Uf(n,i){var r=!1;const o=[];return n.addEventListener("message",function(e){d(e.data),i.state.guideUpdate.useObserver&&i.dispatch("guideUpdate/documentChanged")}),{postMessage:a,postMessageAsPromise:s,postMessageOrTimeout:function(e,t=Df){const n=y.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:I.apiKey,allowMixedApiKeyFrames:f.get("allowMixedApiKeyFrames"),agentInstallType:we()},e),n.postMessage(t),Ut(function(){d(t)},0))}function s(e){e.promiseId||(t=at(32),e=C.extend(e,{promiseId:t}));var t=y.defer();return o[e.promiseId]=t,a(C.extend(e,{sourceFrame:i.state.frames.frameId})),t.promise}function d(e){try{var t;r||e.apiKey!==I.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){x.critical("ERROR in cross frame channel",{error:n})}}}var Gf="frames/removeFrame";function Bf(e,t,n){return new zf(e,t,n,(e=t,t=n,new(C.isFunction(e.MessageChannel)?Hf:jf)(e,t)))}function zf(e,t,n,i){this.init(e,t,n,i)}C.extend(zf.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===Gf)&&this._topMessageHandler(e)},_topMessageHandler(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===Gf&&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()}});_i={_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 Hf(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function jf(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(Hf.prototype,_i,{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===Gf&&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(jf.prototype,_i,{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)}});Wf=window,qf=wa,Vf=!(Jf=[]);var Wf,qf,Jf,Vf,Kf={targetOrigin(){return Vf?location.origin:"*"},secure(e){Vf=e},addEventListener(e){0===Jf.length&&Wf.addEventListener("message",$f),Jf.push(e)},removeEventListener(e){e=Jf.indexOf(e);0<=e&&Jf.splice(e,1),0===Jf.length&&Wf.removeEventListener("message",$f)},close(){Wf.removeEventListener("message",$f),Jf.length=0}};function $f(t){Vf&&!qf(t.origin)||C.each(Jf,function(e){C.isFunction(e)&&e(t)})}function Zf(e){if(!Ue.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"),sn);if(t&&C.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),Bf(e,window,Kf)}var Yf="guides_blocked",Xf="Guides disabled: unreachable endpoint guide.gif";const Qf=h.getLocal();var eg=[],tg="Guide was not shown because this visitor is in a control group of an active experiment for the guide";const ng=[];function ig(){var e=f.get("guideCssAssetPath");return e||io("guide.css")}var rg="_pendo-guide_",og="_pendo_g_",ag=0;function sg(e){ag=e}var dg=function(){return C.any(O,function(e){return e.isShown()})},ug=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"),Ge()?9<Ee&&n.css({top:3}):8===Ee?n.css({top:9,right:2}):9===Ee?n.css({right:2,top:3}):9<Ee&&n.css({top:3}),e=k("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},cg=function(n){return C.reduce(O,function(e,t){return n(t)&&e.push(t),e},[])},lg=function(e,t,n,i,r,o){e=Zd(N(e),t);e&&(e.seenState=n,e.lastSeenAt=i,e.destinationStepId=o,r!==undefined)&&(e.dismissCount=r)},pg=function(e){for(var t=new RegExp("^"+og);e;){if(C.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function hg(t){C.each(O,function(e){C.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var fg=function(e){return e&&e.guideId};var gg=function(e,t){var n,i;return fg(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?pg(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||Eo("findStepForGuideEvent: step with id "+i):(t=C.find(n.steps,function(e){return e.isShown()}))||Eo("findStepForGuideEvent: no step shown"),t):void 0},mg=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=su(e);"tooltip"===e.type&&C.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Dd(n,t,_g,!0)};function vg(e){return e.isLocked()&&(!e.elements||!e.elements.length||void Co('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}var yg=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()},bg=function(e){e=C.get(e,"attributes.activation.selector",""),e=s(e);e.length<1||e[0].focus()},wg=function(){var e=F.getResourceCenterBadge();e?e.element().focus():(e=F.getResourceCenter(),bg(e))},Sg=function(e){if(!I.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=Ug(e);if(C.get(t,"attributes.isAutoFocus")||i)switch(n){case"badge":o&&yg(t);break;case"dom":r&&bg(e);break;case"launcher":wg();break;default:return}}};function Ig(e,t){return!e.isMultiApp&&("auto"===t||"repeatGuide"===t)}var Eg=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=gg(e,t))&&t.id?vg(t)||("dismissed"===t.seenState?x.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(x.info("onGuideDismissed called",{contexts:["guides"]}),m.beforeDismiss.trigger(t).cancel?x.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(mg(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,jg(s,e,b(),i,o),o=v(),lg(s,e,"dismissed",o,r),(a=C.isFunction(t.getGuide)&&t.getGuide())&&a.attributes&&a.attributes.doNotResume||Bp({guideId:s,guideStepId:e,time:o,state:"dismissed",seenReason:i,visitorId:b(),dismissCount:r}),Ig(n,i)&&Jg(o,qg.DISMISSED),t.hide(),Sg(a),dg()||(th(),nh())))):th()},Cg=function(e,t,n){var i,r,o,a,s,d,u,c;x.info("onGuideSnoozed called",{contexts:["guides"]}),(t=gg(e,t))?"snoozed"===t.seenState?x.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):m.beforeSnooze.trigger(t).cancel?x.info("Guide snooze canceled during runtime in step: "+t.id):(n||(n=864e5,x.info("no snooze duration provided, defaulting to 1 day")),vg(t)||(mg(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,d=v(),x.info("snoozing guide for "+n+" ms"),u=d+n,t.snoozeEndTime=u,c=Kg({type:"guideSnoozed",guideId:c=i,stepId:e,visitorId:r,seen_reason:s,language:a,snooze_duration:n}),Yg(c),m.guideSnoozed.trigger(c),lg(i,e,"snoozed",d),o&&o.attributes&&o.attributes.doNotResume||Bp({guideId:i,guideStepId:e,time:d,state:"snoozed",seenReason:s,visitorId:b(),snoozeEndTime:u}),Ig(o,s)&&Jg(d,qg.SNOOZED),t.hide(),Sg(o),dg())||(th(),nh())):(x.info("missing step. can't snooze",{contexts:["guides","error"]}),th(),Eo("onGuideSnoozed: missing step"))},xg=function(e){var t,n,i,r=(r=e&&e.step)||gg(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?x.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?_g(e,r,!1):Tg(e,r)):x.info("[goToStep] guide has no step matching the step id",{contexts:["guides","error"]})):x.info("[goToStep] missing step id to go to",{contexts:["guides","error"]})):x.info("[goToStep] missing current step",{contexts:["guides","error"]})},_g=function(e,t,n){if((s=$m())&&C.each(s.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=su(e);"tooltip"===e.type&&C.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Dd(n,t,_g,!0)}),1===arguments.length&&fg(e)&&(s=Kd(e.guideId),i=gg(),s)&&i&&C.first(s.steps).id===i.id&&C.last(s.steps).id===e.id&&(x.info("Cannot skip to last step from first step"),e=null),x.info("onGuideAdvanced called",{contexts:["guides"]}),(t=gg(e,t))===e&&(e=null),t){if(!vg(t))if("advanced"!==t.seenState||n)if(m.beforeAdvance.trigger(t).cancel)x.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),d=s=s>=r.steps.length?r.steps.length-1:s;!0===e.skip&&(d=a+1);for(var u=a;u<d;++u){t=r.steps[u],Wg(r.id,t.id,b(),t.seenReason,o,u!==a);var c=v();Bp({guideId:t.guideId,guideStepId:t.id,time:c,state:"advanced",seenReason:t.seenReason,visitorId:b()}),lg(r.id,t.id,"advanced",c,undefined,h)}return _g(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||x.info("missing destination step id"),x.info("advancing guide"),Wg(s,i,b(),p,o,n,h),x.info("update guide status"),r&&C.last(r.steps).id===i&&(l=C.get(t,"dismissCount",0)+1),(new Date).getTime()),g=(lg(s,i,"advanced",f,l,h),C.isFunction(t.getGuide)&&t.getGuide());g&&g.attributes&&g.attributes.doNotResume||Bp({guideId:s,guideStepId:i,time:f,state:"advanced",seenReason:p,visitorId:b(),destinationStepId:h,dismissCount:l}),Ig(r,p)&&Jg(f,qg.ADVANCED),x.info("stop guide"),th(),x.info("start guides"),nh()}else x.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else x.info("missing step. can't advance",{contexts:["guides","error"]}),th(),Eo("onGuideAdvanced: missing step")},Tg=function(e,t){var n,i,r,o,a,s;x.info("onGuidePrevious called",{contexts:["guides"]}),(t=gg(e,t))?"advanced"===t.seenState?x.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):m.beforePrevious.trigger(t).cancel?x.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=su(t),"tooltip"===t.type&&C.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):Dd(a,r,_g,!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)||x.info("missing destination step id"),x.info("advancing guide"),Wg(n,t.id,b(),i,r,!1,o),x.info("update guide status"),a=(new Date).getTime(),lg(t.guideId,t.id,"advanced",a,undefined,o),(s=C.isFunction(t.getGuide)&&t.getGuide())&&s.attributes&&s.attributes.doNotResume||Bp({guideId:t.guideId,guideStepId:t.id,time:a,state:"advanced",seenReason:i,visitorId:b(),destinationStepId:o}),th(),nh())):(th(),Eo("onGuidePrevious: missing step"))},kg=function(e){var t;k("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",no()+"/img/tiny-logo.png"),t=k(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:I.TOOLTIP_ARROW_SIZE}).append(t),Bd.push(t[0]),t.appendTo(e))};function Rg(e){return e&&e.attributes&&e.attributes.stayHidden}const Ag=(e,t,n)=>{var i;return yh()&&({id:e,guideId:i}=e,m.stepEligibility.trigger({stepId:e,guideId:i,eligible:t,reason:n})),t};var Og=function(e){var t,n,i=C.partial(Ag,e);return Rg(e)?i(!1,"dismissed"):e.elementPathRule||"lightbox"!==e.type&&"whatsnew"!==e.type?e.triggerElementPathRule&&!ua(s(e.triggerElementPathRule)[0])?i(!1,"trigger_element"):(t=su(e),(n=e.targetElement)&&e.elementContainsRulesList&&!Mg(n,e.elementContainsRulesList)?i(!1,"contains_rules"):(n="tooltip"===e.type||kc.isBuildingBlockGuideRelativeToElement(e),e=ua(t),n?e?i(e,"target_element_tooltip"):i(ca(t),"target_element_tooltip_scroll"):i(e,"target_element"))):i(!0,"")};function Ng(e){var t=(k(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function Mg(e,t){for(var n=Ng(e),i=0;i<t.length;i++)if(!Lg(n,t[i]))return!1;return!0}function Lg(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 Fg=function(e){return og+e.id},Pg=function(e){var t=e.element,n=C.first(k("#"+Fg(e)));t&&n?ua(t)||k.hasClass(n,"mouseover")?Ut(function(){Pg(e)},Xp):e.hide&&(e.hide(),dg())||(th(),nh()):t||!n||e.hide&&(e.hide(),dg())||(th(),nh())},Dg=function(){return!1},Ug=C.partial(C.get,C,"attributes.resourceCenter"),Gg=function(t){var e;dg()&&(e=gg(),mg(e),Ug(t)?(e=cg(Ug),(e=C.filter(e,function(e){return e.id!==t.id})).length&&g.dispatch("frames/hideGuides",C.pluck(e,"id"))):(hg(),g.dispatch("frames/hideGuides")))},Bg=function(e,t){return!(!e||!e.guideId||!(e=N(e.guideId)))&&(Gg(e),e.launch(t),e.isShown())},zg=function(e,t,n,i,r,o){e=Kg({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&C.extend(e.props,{step_poll_types:o}),Yg(e),m.guideNotSeen.trigger(e)};var Hg=function(e,t,n,i,r,o){i||(x.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=Kg({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),s=(C.extend(a.props,o),Yg(a),v());Bp({guideId:e,guideStepId:t,time:s,state:"active",seenReason:i,visitorId:b()}),lg(e,t,"active",s),m.guideSeen.trigger(a)};function jg(e,t,n,i,r){e=Kg({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});Yg(e),m.guideDismissed.trigger(e)}function Wg(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=Kg(e);Yg(t,null,o),m.guideAdvanced.trigger(t)}var qg={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function Jg(e,t){Vg(e,t);var n={};n[t]=e,g.dispatch("frames/changeThrottlingState",n)}function Vg(e,t){C.contains(C.values(qg),t)&&(C.isFunction(e.getTime)&&(e=e.getTime()),I[t]=e,h.write(t,e,Up),g.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function Kg(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=sn.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:Bn(),browser_time:(new Date).getTime(),url:R.externalizeURL(),props:e});return m.eventCaptured.trigger(t),t}var $g=null,Zg=function(e){window.clearTimeout($g),$g=Ut(Tm,e)},Yg=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-ag,Nm(),xm.push(e),Zg(t)},Xg=function(e,t){return"dismissed"===e.state?null:N(e.guideId).nextStep(e,t||Qg())},Qg=function(){return I.normalizedUrl||em(R.externalizeURL())},em=function(e){try{var t=new Jn(e),n=C.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return x.error("Invalid URL provided to normalize"),e}},tm=function(e,t){return!ge(e)||new RegExp(e).test(t)},nm=function(e,t){e=$d(e);return!!e&&(!(t=Bg(C.first(e.steps),t||"api"))&&e.control&&x.info(tg),t)},im=function(e,t){e=N(e);return!!e&&(!(t=Bg(C.first(e.steps),t||"api"))&&e.control&&x.info(tg),t)};function rm(e,t){return t=parseInt(t,10),isNaN(t)||!C.isNumber(t)||!(C.isNumber(e)&&e<t)&&C.isNumber(e)?e:t}var om,am=function(){th(),eh(),F.removeNotificationBubble(),xh(),as()};function sm(){th(),Ro(),I.segmentFlags=[],I.doNotProcess=!0,g.commit("debugger/doNotProcess",!0),x.info("not tracking visitor due to 451 response")}function dm(e){if(om&&(451===e.statusCode&&(sm(),om.deferred.reject(e)),!C.isString(e.id)||e.id===om.id)){const t=C.indexBy(I.guides,"id");C.extend(I,e),I.guides=C.map(I.guides,function(e){return 1==C.keys(e).length&&e.id?t[e.id]:e}),om.deferred&&om.deferred.resolve(),om=null}}var um=function(e,t){var n=ro(),i=C.uniqueId(),r=y.defer(),o=(om={id:i,deferred:r},Ol()||((o=Nl())?(x.info("sending metadata: "+JSON.stringify(o),{contexts:["guides","metadata"]}),t.metadata=o):x.info("no metadata to send",{contexts:["guides","metadata"]})),et(t)),i={id:i,jzb:o,v:qe,ct:(new Date).getTime()},n=(n&&t.accountId&&"ACCOUNT-UNIQUE-ID"!==t.accountId&&(i.acc=it(t.accountId)),yh()&&(i.debug=!0),So(cm.endpoint(),e,i)),t=hs.get();return o=2e3<n.length||!C.isEmpty(t)?(delete i.jzb,n=So("guide.json",e,i),i=C.extend({events:o},t),cm.post(n,i,I,C.noop)):cm.load(n,I,C.noop),y.all([o["catch"](function(e){return 451===e.status&&sm(),y.reject(e)}),r.promise,(t=cm,i=e,"1"===(n=h.read(Yf))?(x.info(Xf),y.resolve({success:!1,cached:!0})):"0"===n?y.resolve({success:!0,cached:!0}):(n=So("guide.gif",i,{jzb:"eJwFwIEIAAAAwDDQd3-N1QABFQC5",ct:v(),v:qe}),(t.usesXhr()?_r.get(n):xo(n)).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(Yf,"0",144e5):(x.info(Xf),h.write(Yf,"1",18e5))),!e.success)return y.reject()})},cm=bu;function lm(e){e=C.find(e.steps,e=>e.pageId&&!e.regexUrlRule);return!e||(x.critical("pendo.io guide validation exception",{guideId:e.guideId,stepId:e.id,error:new Error("missing regexUrlRule for page "+e.pageId+'"')}),!1)}function pm(n){return C.every(ng,e=>{try{return e(n)}catch(t){return console.debug("Error in guide processor",e,n.id),!1}})}function hm(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&C.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}var fm,gm=function(){return!f.get("disableGlobalCSS")};function mm(e,t){var n=f.get("dropAnonymous");if(Tn(e)&&n)x.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(Yf))x.info("guide events are blocked, load guides cancelled"),C.isFunction(t)&&t("error: guides are blocked");else{if(Qa(es()))return 1;x.info("bad url: probably local file system",{contexts:["guides","error"]}),C.isFunction(t)&&t("error: invalid url")}}var vm=function(e,a,s,d){var u=y.defer(),c=!1;if(e=e||I.apiKey,mm(a=a||b(),d)){x.info("loading guides for "+s+"...",{context:["guides"]}),s=R.externalizeURL(s);var n,t,i=vm.lastVisitorId!==a,l=i?C.noop:(r=O,(t=C.find(r,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(){}),r=(vm.lastVisitorId=a,eh(),g.commit("guideState/setLastGuideRequestAt",v()),{visitorId:a,accountId:Bn(),url:s,oldVisitorId:Fn=Fn===undefined&&kn()?Hn(En):Fn}),o=function(e,t,n=v()){let i=[];return f.get("cacheGuides")&&!(i=n-(t.lastUncached||0)<f.get("cacheGuidesTimeout")?C.map(e.guides,e=>C.pick(e,"id","lastUpdatedAt")):i).length&&(t.lastUncached=n),i}(I,vm);o.length&&!i&&(r.cachedGuides=o);const p=C.uniqueId();vm.reqId=p,um(e,r).then(function(){if(!c&&!I.designer)if(vm.reqId!==p)u.resolve();else{m.deliverablesLoaded.trigger(),x.info("successfully loaded guides for "+s,{contexts:["guides"]}),I.designerEnabled&&"true"!==Qf.getItem("pendo-designer-mode")&&_f.loadPluginJs(),am();var t=I.lastGuideStepSeen;if(t){g.dispatch("guideState/receiveLastGuideStepSeen",t),t.visitorId=a,g.dispatch("guideState/updateLastGuideStepSeen",t),g.commit("guideState/setLastGuideRequestAt",v()),Hd={};t=I.guides;var t=C.chain(t).map(Gu).filter(lm).filter(pm).sortBy(hm).value(),n=(Jd(t),Yd());g.dispatch("guideState/load",(r=Gp,o=f.get("crossAppGuideStorageSuffix"),h.read(r,!1,o))),g.dispatch("guideState/apply"),I.latestDismissedAutoAt=rm(I.latestDismissedAutoAt,h.read("latestDismissedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestDismissedAutoAt",value:I.latestDismissedAutoAt}),I.finalAdvancedAutoAt=rm(I.finalAdvancedAutoAt,h.read("finalAdvancedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"finalAdvancedAutoAt",value:I.finalAdvancedAutoAt}),I.latestSnoozedAutoAt=rm(I.latestSnoozedAutoAt,h.read("latestSnoozedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestSnoozedAutoAt",value:I.latestSnoozedAutoAt}),g.dispatch("healthCheck/init",t),g.dispatch("frames/changeGuideList",n),I.eventProperties=Gm(I.features);let e=y.resolve();I.globalJsUrl&&(e=Ff(zu(I.globalJsUrl))["catch"](function(e){x.error("Error loading global script: ",e)})),n.length?y.all([Cm(),e,Am(t),Pf.initializeWatermark(t),wm(5e3)].concat((i=t,C.map(ym,function(e){return e(i)})))).then(function(){vm.reqId===p&&(g.getters["frames/isLeader"]()&&l(O),m.guidesLoaded.trigger(),nh(),clearTimeout(fm)),C.isFunction(d)&&d(),u.resolve()},function(e){x.error("Post loadGuide request failed: ",e),m.guidesFailed.trigger(),u.reject()}):(m.guidesLoaded.trigger(),u.resolve())}else x.info("lastGuideStepSeen is not set, shutting down guides")}var i,r,o})["catch"](function(e){m.guidesFailed.trigger(),u.reject(e)});i=f.get("guideTimeout")||f.get("guides.timeout");C.isNumber(i)&&(clearTimeout(fm),fm=Ut(function(){var e;e=u,am(),e.reject(),c=!0},i))}else u.reject();return u.promise};var ym=[];function bm(e,t){var n,i=document.getElementById(e);return i&&i.href&&0<=i.href.indexOf(t)?y.resolve():(n=y.defer(),k(i).remove(),I.loadResource(t,function(){n.resolve()}).id=e,n.promise)}var wm=C.memoize(function(t,n,e){if(!gm()||!Sm(O))return y.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=y.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=A(e);if(e)return"none"===e.display}});function Sm(e,t){return t&&t.designer||C.any(e,function(e){return!nu(e)&&C.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl||e.domJson)})})}const Im="_pendo-default-css_",Em="_pendo-css_";function Cm(){var e=[];if(!gm())return y.resolve();Sm(O,I)&&e.push(bm(Im,ig()));var t=((I.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(bm(Em,zu(t))):k("#"+Em).remove(),y.all(e)}var xm,_m,Tm=function(e){xm&&xm.flush(e)},km=function(){return eg};function Rm(e){var t=Is(Ds,Ts("visitor_id"),Ts("props.guide_id"),Ts("props.source"),Ps,Us(),zs(e),Hs,js,Ys),n=Is(Cs,xs(e.cache),C.noop);return new nd(C.extend({processSilos:t,packageSilos:n},e))}var Am=function(e){return F.initializeResourceCenter(e)},D={postMessage:C.noop,close:C.noop};let Om=D;function Nm(e){return xm=xm||Rm(C.extend({cache:eg,apiKey(){return I.apiKey},beacon:"guide",allowPost:!0,preferFetch:Ue.safari},e)),_m=_m||Rm(C.extend({cache:[],apiKey(){return I.apiKey},beacon:"poll",allowPost:!0,preferFetch:Ue.safari},e)),is(xm),is(_m),()=>{xm.clear(),_m.clear(),rs(xm),rs(_m)}}function Mm(e){var e=e["blockedURI"];e&&-1!==e.indexOf("/data/guide.json")&&f.get("cacheGuides")&&((e=f.getLocalConfig()).cacheGuides=!1,f.setLocalConfig(e),Er(window,"securitypolicyviolation",Mm),Vm())}var Lm=function(){const e=[];e.push(Nm({localStorageUnload:f.get("analytics.localStorageUnload")})),wh.run(),e.push(wh.stop),m.appUnloaded.on(function(){g.dispatch("frames/leave")}),m.metadata.on(function(e){e=e.data[0].storeChanged;e&&!Ol()&&Jm()}),m.identify.on(function(){Jm()}),m.urlChanged.on(function(){Jm(R.get())}),m.guideUpdateComplete.on(function(){var e,t,n;e=C.filter(O,e=>C.isFunction(e.outsideTimebox)&&e.outsideTimebox()),Vd.addGuide(e),Wu.processPrefetch(),e=O,t=zd,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)}))}),m.guidesLoaded.on(function(){F.fetchAnnouncementGuidesContent(O,g)}),m.guideListChanged.on(function(e){e=e.data[0].guideIds;if(e&&e.length){const n=C.indexBy(e);C.each(zd,function(e,t){n[t]||(e.hide(),delete zd[t])})}}),e.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=Ir(e,o,t),s=Ir(e,"turbo:before-cache",n);return()=>{a(),s()}}(document,function(){R.get()===qm.lastUrl&&Vm()},function(){am()}));var t=f.get("guides.tooltip.arrowSize");if(C.isNumber(t)&&(I.TOOLTIP_ARROW_SIZE=t),Om=Zf(g),D=Uf(Om,g),e.push(()=>D.close()),e.push(sn.tabIdChanged(function(){var e=sn.getTabId();g.commit("frames/setTabId",e),g.dispatch("frames/join")})),g.dispatch("frames/init"),g.dispatch("frames/join"),e.push(function(){const e=[];return g.dispatch("guideState/init"),e.push(Ir(window,"focus",zp)),e.push(Ir(window,"storage",function(e){g.dispatch("guideState/storageChanged",e)})),()=>C.each(e,function(e){e()})}()),e.push(()=>{Hm.cancel(),kh.cancel()}),e.push(Ir(window,"resize",Hm)),e.push(Ir(window,"scroll",kh,!0)),e.push(Ir(window,"gestureend",jm,!0)),e.push(Ir(window,"securitypolicyviolation",Mm)),e.push(function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];const t=[];for(var n=0;n<e.length;n++)t.push(Ir(document,e[n],Wm));return()=>{C.each(t,function(e){e()})}}()),f.get("preferMutationObserver")&&Ue.MutationObserver){const n=C.debounce(function(e){g.dispatch("guideUpdate/documentChanged")},50);e.push(()=>{n.cancel()}),e.push(l(window,"animationend",n)),e.push(l(window,"transitionend",n)),e.push(l(window,"mouseover",n)),g.commit("guideUpdate/setUseObserver"),f.get("observeShadowRoots")&&g.commit("guideUpdate/setObserveShadowRoots"),e.push(()=>g.dispatch("guideUpdate/stopObserver"))}return h.registry.addLocal(qg.ADVANCED),h.registry.addLocal(qg.DISMISSED),h.registry.addLocal(qg.SNOOZED),h.registry.addLocal(Yf),Vu.initialize(),()=>{qm.reset(),am(),Jm.reset(),vm.reqId=null,C.each(e,function(e){e()}),k("#"+Im).remove(),k("#"+Em).remove(),Vu.teardown()}},Fm=function(){return f.get("guides.disabled",!1)||f.get("disableGuides",!1)||!wo},Pm=function(){return f.get("guides.delay",!1)||f.get("delayGuides",!1)},Dm=function(e){var t=f.getLocalConfig();t.disableGuides=e,f.setLocalConfig(t)},Um=function(e){var t=f.getLocalConfig();t.delayGuides=e,f.setLocalConfig(t)},Gm=qn(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}}),Bm=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},zm=function(){x.debug("adjustActiveGuideOnResize firing");var e=$m();e&&e.step&&!I.ignoreResize&&e.step.redraw()};const Hm=C.debounce(function(){var e;-1<C.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=Bm())||e.id.indexOf("pendo-video-")<0)&&Ut(function(){zm()},150):zm(),kh()},50),jm=function(e){1!==e.scale&&Hm()};var Wm=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&&(Bm()?I.ignoreResize=!0:Ut(function(){I.ignoreResize=!1},1e3))};function qm(e){var t,n,i,r,o=b(),a=Bn();e=e||R.get(),n=o,i=a,r=ol,!(t=e)||!I.apiKey||Fm()&&"true"!==Qf.getItem("pendo-designer-mode")||t===qm.lastUrl&&n===qm.lastVisitorId&&i===qm.lastAccountId&&r===qm.lastMetadataHash||(qm.lastUrl=e,qm.lastVisitorId=o,qm.lastAccountId=a,qm.lastMetadataHash=ol,vm(I.apiKey,o,e)["catch"](C.noop))}qm.reset=function(){C.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){qm[e]=null})};var Jm=function(e){wo&&(Jm.reset(),Jm.pending=Ut(function(){delete Jm.pending,qm(e)},0))};function Vm(){qm.lastUrl=null,Jm()}function Km(e){e=ng.indexOf(e);-1!==e&&ng.splice(e,1)}function $m(){var e,n,t=C.find(O,function(e){return e.isShown()});return!t||C.get(t,"attributes.resourceCenter.isModule")&&!(t=F.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 Zm(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)}))}Jm.reset=function(){Jm.pending&&clearTimeout(Jm.pending)};var Ym=function(){var n=this,o=(this.eventable=pn.call({}),this.eventable.on("pendoEvent",function(e){try{n.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";x.critical("Error in Action "+e,{error:t})}}),this.eventHandler=function(e){if(!e.ignore&&!I.designer){var t=e.step["guideElement"];switch(e.action){case o.advanceGuide:_g(e,e.step);break;case o.previousStep:Tg(e,e.step);break;case o.goToStep:xg(e);break;case o.submitPoll:this.submitPoll(e);break;case o.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;Cg(e,e.step,n);break;case o.dismissGuide:F.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return Eg();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return F.dismissResourceCenter(t);Eg(e,e.step)}(e);break;case o.showElements:this.setElementDisplay(e,"block"),e.srcElement&&Zm(e.srcElement),Qc((i=Ku(e.step.domJson)).props.id,t),el(i.props.id,t),M.flexAllThings(i.props.id,e.step),Xc(i.props.id,t);break;case o.hideElements:this.setElementDisplay(e,"none"),Qc((i=Ku(e.step.domJson)).props.id,t),el(i.props.id,t),M.flexAllThings(i.props.id,e.step),Xc(i.props.id,t);break;case o.slideElement:this.setElementAnimation(e);break;case o.showGuide:n=C.find(e.params,function(e){return"reason"===e.name});im(e.params[0].value,n&&n.value);break;case o.launchGuide:this.launchGuide(e);break;case o.renderResourceCenterModule:var i=a(e);F.replaceResourceCenterContent(e.params[0].value,i);break;case o.returnToResourceCenterHome:n=F.findResourceCenterHomeView(Wd());if(!n)return;F.attemptToPreserveIntegrationIframes(e),F.replaceResourceCenterContent(n.id,e.params);break;case o.openLink:this.openLink(e);break;case o.searchGuides:this.searchGuides(e);break;case o.submitPollAndGoToStep:this.submitPoll(e),xg(e);break;case o.confirmation:this.confirmGuide(e)}var r=Ym.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)):x.info("[Agent] Error! Trying to submit a poll response but step does not have response function!");t!==o.submitPollAndGoToStep&&i.advance()},this.setElementDisplay=function(e,t){var n=e.step,e=k(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&&ja()&&(e="_top");window.open(t,e)},this.goToStep=xg,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 d in i){var u;d&&i[d]&&(u=!1,k(i[d]).text()&&(-1!==k(i[d]).text().toLowerCase().indexOf(n.toLowerCase())?(k(i[d]).css({display:"list-item"}),u=!(a=!1)):k(i[d]).css({display:"none"})),C.isFunction(i[d].getAttribute)&&(e=i[d].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[d]&&(k(i[d]).css({display:"list-item"}),u=!(a=!1)),e="",u)&&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 s(e.confirmationElementPathRule)[0]}(e);e.advance(),t?t.click():x.critical("pendo.io confirmationElement exception",{stepId:e.id,confirmationElementPathRule:e.confirmationElementPathRule,error:new Error("confirmation action called but confirmationElement was not found")})},this.getTransitionParams=a,this.launchGuide=function(e){var t=!C.get(e,"params.2.value.doNotDismiss");t&&Eg(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],Gg(n),r.show("api")):t&&im(e.params[0].value)}},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"});function a(e){return e.params.find(e=>"transitionDirection"===e.name)?[{name:"transitionCss",type:"string",value:"left 200ms"},{name:"transitionDirection",type:"string",value:"right"}]:[]}return this},Xm=(Ym.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&((Ym.prototype.registeredActions=Ym.prototype.registeredActions?Ym.prototype.registeredActions:{})[e]=t)},function(){var s="guideActivity",d=function(){return(new Date).getTime()-ag},r=C.isObject,u=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 $m()}(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(Wd(),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:Jr(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=u(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=u(e.parameters,{name:"url"}),n=u(e.parameters,{name:"target"});return{action:e.action,url:Jr(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=u(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=u(e.parameters,{name:"snooze_duration"}),t=u(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 Kg({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:d(),language:t.guide.language})}(n))&&Yg(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")}}()),Qm=[],ev=!(Ym.deregisterAction=function(e){e&&"string"==typeof e&&delete(Ym.prototype.registeredActions=Ym.prototype.registeredActions?Ym.prototype.registeredActions:{})[e]});const tv={agent:{getJwtInfoCopy:hs.get,treatAsAdoptPartner:ro},agentStorage:h,analytics:{ptm:()=>Ls,collectEvent:ws},attachEvent:l,ConfigReader:f,Events:m,EventTracer:sn,EventRouter:Ym,Extensions:{API:{addTopic:function(e,t){var n=Fl[e]||{};C.extend(n,t),Fl[e]=n}}},frames:{getChannel:()=>Om},getAssetUrl:io,getEventable:()=>pn.call({}),GlobalRuntime:{addGlobalScript:Vu.addGlobalScript,removeGlobalScript:Vu.removeGlobalScript},GuideActivity:Xm,GuideLoop:{addUpdatePhase:hh,removeUpdatePhase:fh},guides:{addProcessor:function(e){return ng.push(e),C.partial(Km,e)},removeProcessor:Km,registerDisplayableGuides:function(e,t){C.isArray(t)&&(Hd[e]=t)},removeDisplayableGuides:function(e){delete Hd[e]}},hosts:{SERVER:He},NodeSerializer:Ed,q:y,sessionStorage:h.getSession(),sizeElements:Zc,store:g,Tombstone:Vd,transmit:{buildBaseDataUrl:So,fetchKeepalive:_o,sendBeacon:To},log:x,util:{trim:Ye,base64EncodeString:it,parseUrl:Sa,addInlineStyles:C.partial(Yu,f)},constants:{URL_MAX_LENGTH:2e3}};function nv(t){C.find(Qm,function(e){return e.name===t.name})?x.warn(`Plugin with name ${t.name} already exists. Skipping registration.`):(Qm.push(t),ev&&t.initialize(I,tv))}function iv(){C.each(Qm,function(e){C.isFunction(e.teardown)&&e.teardown(I,tv)}),ev=!1}Bl.registerExtensionsByUse("plugin",function(e){return C.extend(e.uri,C.pick(e,"name")),nv(e.uri),e},function(e){return!!e.uri.initialize&&!!e.uri.teardown});var rv=!1;function ov(){rv||(m.identify.on(function(e){var t,n,e=e.data[0];n=(t=e).old_visitor_id,t=t.visitor_id,(Tn(n)?_n(t)?Tn(t)?(x.info("Visitor is anonymous: "+t),1):On(t)?(x.info("Visitor id is the default: "+t),1):(x.info("Re-mapping visitor identity from "+n+" to "+t),0):(x.info("Not valid visitor id: "+t),1):(x.info("Visitor is already identified: "+n),1))&&(n=(t=e).old_account_id,t=t.account_id,_n(t)?n===t||(x.info("Re-mapping account identity from "+n+" to "+t),0):(x.info("Not valid account id: "+t),1))||(ws("identify",e),as())}),m.metadata.on(function(e){var t;Ol()||({options:e,hashChanged:t}=e.data[0],t&&(ws("meta",e),as()))}),m.identify.on(Ll),rv=!0)}av="guideActivity",sv=function(){return(new Date).getTime()-ag},dv=C.isObject;var av,sv,dv,uv={type:av,handler(e){var t,n=e.data[0],e=e.data[1];e=e,dv(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(dv(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return pv(e)}(t)||function(e){return cv(e)}(t)||function(e){return lv(e)}(t))&&(e=function(e){var t=F.getResourceCenter();if(t){var n=t.activeModule,i=pv(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=cv(e)||lv(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),Kg({type:av,visitorId:b(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,duration:sv(),language:i.language})}}(n))&&Yg(e)}};function cv(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&&dv(e.parentElem)?cv(e.parentElem):null}function lv(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&&dv(e.parentElem)?lv(e.parentElem):null;t=F.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 pv(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&&dv(e.parentElem)?pv(e.parentElem):null}const hv=e=>(e=e||I).doesExist(e.apiKey);let fv=0;const gv="initializeImmediately",mv=[],vv=qn(function(e){if("complete"===document.readyState||C.get(e,gv)||f.get(gv))if(x.info("pendo.initialize called with "+JSON.stringify(e)),I.apiKey)1==fv++&&x.info(["pendo.initialize only needs to be called once",dt()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join(""));else{if(e=e||{},C.isEmpty(hs.get())&&(o=hs.getJwtOptions(e,"initialize"))&&(hs.set(C.pick(e,"jwt","signingKeyName")),C.extend(e,o,{forceAnonymous:!0})),C.isString(e))return _r.get(e).then(e=>(le(d=e.data),vv()));try{g.dispatch("location/init",e.location||{})}catch(a){x.critical("Location API Exception",a)}f.setLocalConfig(e),to(),I.HOST=Zr;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("\\."+wt(o)+"$"),n=new RegExp("^"+wt(o)+"$"),t.test(i)||n.test(i))&&(xt="."+o):xt=o),nf.discoverKeys(e),nf.getApiKey()){g.commit("metadata/setMetadata",{selfHosted:Al()}),e.logStackTraces&&(I.logStackTraces=e.logStackTraces),f.get("preferBroadcastChannel")&&Kf.secure(!0);const s=f.get("analytics.localStorageUnload");vs.read(h),mv.push((t={localStorageUnload:s},Ns=ts.events=Va,Ms=ts.trackEvents=Ka,Ls=id(C.extend({cache:Ns,silos:ts.silos,apiKey:Io,beacon:"ptm",allowPost:!0},t)),Fs=id(C.extend({cache:Ms,silos:ts.trackEventSilos,apiKey:Io,beacon:"ptm",allowPost:!0,params:{type:"track"}},t)),is(Ls),is(Fs),()=>{us(),rs(Ls),rs(Fs)})),wo&&(h.registry.addLocal(In),h.registry.addLocal(En),h.registry.addLocal(Cn),h.registry.addLocal(Cl),h.registry.addLocal(mh),I.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,mv.push(function(i){const e=C.reduce(mu,function(e,t){if(gu[t]){const n=function(e){return yu[t].apply(yu[t],e.data)};i[t].on(n),e.push(()=>i[t].off(n))}return e},[]);return()=>C.each(e,e=>e())}(m)),[{events:i=[]}]=[e],C.each(i,(e,t)=>{yu[t]&&yu[t](e)}),mv.push(Lm()),ov(),mv.push(Md()),mv.push((C.each(Qm,function(e){e.initialize(I,tv)}),ev=!0,iv)),mv.push((n=e,h.registry.addLocal(Ah),h.registry.addLocal(Oh),C.find([C.partial(df.launchOnToken,window.location),C.partial(Nh,window),C.partial(df.localStorageNavigation,n)],e=>e()),n.enableDesignerKeyboardShortcut||!f.get("disableDesignerKeyboardShortcut")?_f.listen():()=>{})),m.appUsage.on(Xm.handler),m.appUsage.on(uv.handler),mv.push(ss($a))),m.appHidden.on(()=>{os(0,{hidden:!0})}),m.appUnloaded.on(()=>{os(0,{unload:!0}),s&&vs.write(h)}),kn()||Rn(),I.updateOptions(e),e.visitorId&&e.visitorId!=An&&I.identify(e.visitorId),mv.push(R.watch(function(){I.pageLoad()})),wo&&m.ready.trigger(),rd(R.get()),fv++,window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&((r=Kf.targetOrigin())?window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},r):x.warn("Unable to announce frame to designer plugin, targetOrigin is not set. Check if broadcastChannel is enabled and cross origin frames are allowed.")),wv()}else x.debug("API key is not set, Pendo will not initialize.")}else ae(I,"initialize",arguments)});function yv(e){return!C.isArray(e)||C.isEmpty(e)}function bv(e){if(!yv(e))return C.find(e,e=>"initialize"===e[0])}function wv(i){var e;return!yv((i=i||I)._q)&&(e=!!bv(i._q),hv(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},y.resolve()).then(wv)):y.resolve()}function Sv(){hv()?x.info("already running"):(window.pendo_options&&vv(window.pendo_options),wv())}function Iv(){m.appHidden.trigger(),m.appUnloaded.trigger(),C.each(mv,function(e){e()}),rd.reset(),mv.length=0,Kf.close(),pn.clear(m),pn.clear(yu),delete I.apiKey,fv=0}var Ev,Cv,xv={getActiveGuide:$m,smartNextStep:function(e){var t,n=$m();n&&(t=n.guide.steps[n.stepIndex+1],Ut(function(){var e=s(t.elementPathRule);0!==e.length&&C.some(e,ua)?_g(n.step):_g(t)},e=e||0))},smartFirstStep:function(){k("._pendo-guide_").css("display:none;");var t=Qg(),e=$m().guide.steps,n=C.filter(C.rest(e),function(e){return!!e.pageId}),n=C.indexOf(e,C.find(n,function(e){return tm(e.regexUrlRule,t)}));x.info("startingPoint is "+n),-1==n?k("._pendo-guide_").css("display:block;"):(n=e[Math.max(0,n-1)],x.info("found starting step to be "+n.id),_g(n))},advanceOn:function(e,t){var n=$m(),i=k(t=t||n.step.elementPathRule)[0],r=function(){_g(),Dd(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=$m();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){var r=n.getGuide(),o=Ku(e),a=C.get(r,"attributes.resourceCenter");a&&(F.revertRtlChanges(r,e.props),e=F.updatePseudoStyleSelectors(e));var s=a&&F.isFullyCustom(r),d="AnnouncementsModule"===C.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.containerId=o&&o.props&&o.props.id,n.element=su(n),U.buildNodeFromJSON(e,n,t)),t=(n.guideElement=o).find("#"+n.containerId),u="data-vertical-alignment",c="Relative to Element"===t.attr(u);c&&!a&&k(n.guideElement).css({overflow:"hidden",height:"0",width:"0"});t.css({visibility:"hidden"}),o.css({visibility:"hidden"});u=Pf.buildWatermark({appId:r.appId,targetAccount:r.targetAccount,isTraining:r.isTraining,isBottomAligned:"Bottom Aligned"===t.attr(u)},U.buildNodeFromJSON);u&&t.append(u);var u=n&&n.attributes&&n.attributes.imgCount,l=ou();var p=C.get(r,"attributes.embedConfig",null);{var h,f;p?(g=o[0],h=g.querySelector("#"+(f="pendo-guide-container")),{selector:h,method:f}=(h&&(h.id=f+"-"+n.id,g.id="pendo-base-"+n.id),p),l=k(h)[0],"replace"===f&&l?(l.innerHTML="",o.appendTo(l)):"prepend"===f?o.prependTo(l):o.appendTo(l)):o.appendTo(l)}(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)))})(ou(),o[0],n.id),Zc(o),c&&kc.patchGuideContainerWidthForResponsiveTooltips(n,t[0],e);s||d||(U.recalculateGuideWidth(n.containerId,n.guideElement),U.adjustGuideContentWidth(n.containerId,n.guideElement));u||a||U.flexAllThings(n.containerId,n);s||U.recalculateGuideHeight(n.containerId,n.guideElement);c?n.attributes.calculatedType="tooltip":kc.attachBBAdvanceActions(n);c&&!u&&kc.positionStepForTooltip(n,e,t[0]);{var g;a&&(F.showHomeViewOrEmptyState(r),g=[],d?g=[r.attributes.resourceCenter]:U.flexAllThings(n.containerId,n),g.length)&&C.forEach(g,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 m;u?(m=y.defer(),o.rendered=m.promise,t.on("imagesLoaded",function(){m.resolve()})):(t.css({visibility:"visible"}),o.rendered=y.resolve())}o.css({visibility:"visible"}),n.elements.push(n.guideElement[0]),I.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?(p=r.activeModule.steps[0],U.autofocusStep(p,p.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 n="autofocus for guide id: "+e.getGuide().id+" step id: "+e.id+" ",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)&&ua(r)&&(n=bo(n=r),i=Bo(),C.extend(i,{top:0,left:0,bottom:i.height,right:i.width}),Yo(i,n))&&(i=r,n=C.contains(["A","INPUT","LABEL","SELECT","TEXTAREA","BUTTON","FIELDSET","LEGEND","DATALIST","OUTPUT","OPTION","OPTGROUP"],i.nodeName),e=!!i.tabIndex,t=!i.hidden,i=!i.disabled,(n||e)&&t&&i)?r:null},i,function(t){pt(function(){return!!(e=t)&&(e.focus(),e===k.getRootNode(e).activeElement);var e},i,function(){},function(){x.warn(n+"#pendo-guide-container is available on page but could not capture focus")})},function(){x.warn(n+"#pendo-guide-container did not render or become visible in time to focus")})},trapFocusStep:function(e,t){!function(e){var o,a,s,t,d,u,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=Rv(e),d=t[0],u=t[1],n=function(e){var t,n,i=_v(e),r=e.shiftKey;i&&(t=(i=k.getRootNode(c).activeElement)===c,n=document.activeElement===document.body,r?(i===d||t||n)&&(kv(o,s).focus(),e.preventDefault()):(t||i===u||n)&&(kv(o,a).focus(),e.preventDefault()))},l(document,"keyup",n),l(document,"keydown",n),m.one("unmounted",()=>{Dd(document,"keyup",n),Dd(document,"keydown",n)}))}(t.find("#pendo-guide-container"))},attachRCFocusHandlers:function(){const s=F.getResourceCenter(),d=F.getResourceCenterContainer();if("dom"===s.launchMethod&&d){let e=k(s.attributes.activation.selector)[0];if(e){const[u,c]=Rv(k(d));var t=function(e){var t=_v(e),n=e.shiftKey;if(t){var t=k.getRootNode(d).activeElement,i=k(s.attributes.activation.selector)[0];if(i){var r=t===u,t=t===c;const a=k(aa);function o(t){return Object.values(a).findIndex(e=>e===t)}n?r?(i.focus(),e.preventDefault()):t&&Tv(0===(n=o(u))?a.length-1:n-1,a,e):t?Tv(o(i)+1,a,e):r&&Tv((n=o(c))>=a.length-1?0:n+1,a,e)}}},n=function(e){var t=_v(e),n=e.shiftKey;t&&!n&&Tv(0,k('[id^="pendo-g-"]').find(aa),e)},i=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=u&&t&&Tv((n=k('[id^="pendo-g-"]').find(aa)).length-1,n,e)};l(document,"keyup",t),l(document,"keydown",t),l(e,"keydown",n),l(e,"focus",i),m.one("unmounted",()=>{Dd(document,"keyup",t),Dd(document,"keydown",t),Dd(e,"keydown",n),Dd(e,"focus",i)})}}},addAriaHiddenOutsideGuide:function U1(e,n=[]){if(!e||e===Vo())return n;const t=Ko(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&&U1(e.parentNode,n);return n},renderResourceCenterModule:F.renderResourceCenterModule,buildNodeFromJSON:vl,attachImgLoadHandlers:yl,recalculateGuideHeightOnImgLoad:bl,buildStyleString:function(e){var n="";return C.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:Sl,bindActionToNode:wl,recalculateGuideHeight:Xc,recalculateGuideWidth:Qc,adjustGuideContentWidth:el,findDomBlockInDomJson:$u,isElementHiddenInGuide:M.isElementHiddenInGuide,positionStepForTooltip:kc.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:bc,buildNodesFromJSON:fl,findGuideContainerJSON:Ku,maintainAspectRatios:M.maintainAspectRatios,sizeElement:Yc,sizeElements:Zc,getAllowedAttributes:ml,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:kc.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:Zm,addVideoLoadListener:function(e,t){l(t,"load",function(){e.removeAttribute("data-pendo-video-loading")})}};function _v(e){return"Tab"===e.key||9===e.keyCode}function Tv(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function kv(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 Rv(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 Av=100,Ov=[],Nv=[];const Mv="log-enabled",Lv="active-contexts";var Fv=function(){return Uv()?Cv?"logging already enabled":(h.write(Mv,"true",null,!0),Cv=!0,"logging enabled"):"logging unavailable"},Pv=function(){return Cv?(h.write(Mv,"false",null,!0),Cv=!1,"logging disabled"):"logging already disabled"};var Dv=function(e,t){return C.compact([].concat(e,t))},Uv=function(e){return e=e||"log","undefined"!=typeof console&&C.isFunction(console[e])},Gv=function(e){return e=Dv(e),0<Ev.length?0<C.intersection(Ev,e).length:!!Cv||!!yh()},Bv=function(e,...t){x.info(e,{contexts:t})};function zv(e){var t;e.level!==gt.Debug&&e.level!==gt.Info||(t=e.attributes?Dv(e.attributes.contexts):[],Uv()&&Gv(t)&&Vv(e.message),jv(Ov,e.message,t))}function Hv(...e){Uv("error")&&console.error.apply(console,e),jv(Nv,e.join(" "))}var jv=function(e,t,n){C.contains(n,"debug")||(e.length==Av&&e.shift(),e.push([t,n]))},Wv=function(t){t=Dv(t),C.each(C.map(C.filter(Ov,function(e){return 0===t.length||0<C.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){Vv(e,"[Pendo-History] ")})},qv=function(){return C.union.apply(C,C.map(Ov,function(e){return e[1]}))},Jv=function(e){Ev=Dv(e),h.write(Lv,Ev.join(","),null,!0)},Vv=function(e,t){var n;Uv()&&(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 Kv(t,n){if(t&&C.isString(t)){let e=n;C.isObject(n)||(e={__err__:n});n=R.get();ws("track",e,n,t)}else x.error("Must provide valid name string for event tracking")}Bv.init=function(){var e,t;e=h.read(Lv,!0),Ev=e?e.split(","):[],e=ze,t=h.read(Mv,!0),Cv=null!==t?"true"==t:!C.contains(["prod","prod-eu","prod-us1","prod-jp","prod-hsbc","prod-au","prod-gov","rc"],e),x.addEventListener("log",zv),h.registry.addLocal(Mv),h.registry.addLocal(Lv)},Bv.enableLogging=Fv,Bv.disableLogging=Pv,Bv.getActiveContexts=function(){return Ev},Bv.setActiveContexts=Jv,Bv.showLogHistory=Wv,Bv.getLoggedContexts=qv;var $v=function $v(r){var o=[];function a(e,t,n,i){r?o.push({type:n,message:t,value:i}):ge(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"),I.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=(Tn(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"),On(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),Bn()),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"),Nl());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()},Zv=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:$t.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())},Yv=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()}},Xv=function(e){var t,n=window.location.href,i=[];try{(t=Fr())!==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=R.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 Qv=e=>{if(0<Nv.length){var t=[].concat(Nv);if(e)return t;console.group("Agent Error History"),C.each(t,(e,t)=>{console.log("Error History ",t,e)}),console.groupEnd()}},ey=e=>{t=e;var t,n=C.map(Qm,function(e){return e.validate&&!t&&e.validate(I,tv),e.name});if(e)return n;console.group("Active Plugins"),C.each(n,e=>console.log(e)),console.groupEnd()};var ty=function(e){var t={install:$v(e),plugins:ey(e),globals:Yv(e),url:Xv(e),errors:Qv(e)};if(e)return t.methods=Zv(e),t;f.validate(console)},ny={BuildingBlockGuides:U,BuildingBlockResourceCenter:F,BuildingBlockTemplates:Xu,BuildingBlockTooltips:kc,BuildingBlockSvgs:ic};function iy(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))}iy.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},iy.prototype.stop=function(){clearTimeout(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var ry=_r.urlFor,oy={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace","Clear","AddTo"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};function ay(e,t,n){var i;if(C.isObject(e)&&(t=e.action,n=e.data,e=e.attr),!oy[e])throw i=C.keys(oy).join(", "),new Error('Invalid URL attribute type: "'+e+'". Valid attributes are: '+i+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!C.contains(oy[e],t))throw i=oy[e].join(", "),new Error('Invalid transform action: "'+t+'" for attribute "'+e+'". Valid actions for "'+e+'" are: '+i+'. Example: {attr: "'+e+'", action: "'+oy[e][0]+'", data: ...}');this.attr=e,this.action=t,this.data=n}function sy(e){return e instanceof Jn||e instanceof HTMLAnchorElement}ay.prototype.applyToURL=function(e){return{AllowOnlyKeys(e,t,n){C.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Jn($r(t,null,n,!1))},ExcludeKeys(e,t,n){C.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Jn($r(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 Jn(ry(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 Jn(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)},ay.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},ay.fromJSON=function(e){if(e instanceof ay)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(oy).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=oy[e.attr]?oy[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(!oy[e.attr])throw t=C.keys(oy).join(", "),new Error('Invalid attribute "'+e.attr+'". Valid attributes are: '+t+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!C.contains(oy[e.attr],e.action))throw t=oy[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: "'+oy[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 ay(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))}};dy=function(t,n,i,r){return[new ay("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new ay("href","ForceSecure")]},Mi={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:uy=function(){var e=Lr(),t=R.isElectron()?dy(R.electronAppName(),R.electronResourcesPath(),R.electronUserDirectory(),R.electronUserHomeDirectory()):[];return hy([].concat(t),e)}},cy=new iy(500,function(e){!hv()||od(document)||rd()}),ly=function(e){if("string"==typeof e)return new Jn(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.")},py=function(e){return e||window.location},hy=function(e,t){return C.reduce(e,function(e,t){return t.applyToURL(e)},t)};var dy,uy,cy,ly,py,hy,fy,e={state:Mi,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",ay.fromJSON(e))})},addInternalTransforms(t,e){C.each(e,function(e){t.commit("addInternalTransform",ay.fromJSON(e))})},removeInternalTransforms(t,e){C.each(e,function(e){t.commit("removeInternalTransform",ay.fromJSON(e))})},startPolling(e){cy.start()},stopPolling(e){e.state.currentSrcFn===uy&&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 Jn(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(!hv())}else e.currentSrcFn=uy,cy.stop()}},getters:{url:fy=function(e){try{var t=function(e){return n=e},n=C.reduce([e.currentSrcFn,ly,t,C.partial(hy,e.transforms),ly,t,C.partial(hy,e.internalTransforms),ly],function(e,t){return t(e)},null)}catch(i){x.critical(i),n=py(n)}return n},href(e){return fy(e).href}}};function gy(e){var t;if("function"==typeof gy[e])return t=C.toArray(arguments).slice(1),gy[e].apply(gy,t)}C.extend(gy,{getHref(){return g.getters["location/href"]()},clearTransforms(){g.commit("location/clearTransforms"),rd()},addTransforms(e){g.dispatch("location/addTransforms",e),rd()},setUrl(e){g.commit("location/changeUrlSource",e)},useBrowserUrl(){g.commit("location/changeUrlSource"),rd()}});function my(){return f.get("guideSeenTimeoutLength")||1e4}vy=[];var vy,yy={name:"StepTimeoutMonitor",initialize(){this._beforeGuideShow=C.bind(yy.beforeGuideShow,yy),this._stop=C.bind(yy.stop,yy),m.beforeGuideShow.on(this._beforeGuideShow),m.guideSeen.on(this._stop),m.guideNotSeen.on(this._stop)},teardown(){yy.stop(),m.beforeGuideShow.off(this._beforeGuideShow),m.guideSeen.off(this._stop),m.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)&&yy.start(t))},start(e){var d,t,n=vy[0];n&&n===e.id||(n&&n!==e.id&&(n=vy[1],C.isFunction(n))&&n(),e.shouldStartTimer()&&(d=my(),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(Qg())?Og(n)?"other":"element":"page",i=t,r=e,o=b(),a=a,s=s.language,i=Kg({type:"guideTimeout",guideId:i,stepId:r,visitorId:o,seen_reason:a,language:s,guideSeenTimeoutLength:d}),Yg(i),m.guideTimeout.trigger(i),x.info("Guide "+t+" timed out showing Step "+e),n.timeout()),yy.stop()},e.id,e.guide.id),t=Ut(n,d),vy=[e.id,n,t]))},stop(){var e=vy[2];e&&clearTimeout(e),vy=[]},getGuideSeenTimeoutLength:my};function by(){console.warn("This functionality is not supported by your subscription.")}function a(e){return wo?e:by}var wy="is going away",Sy="is gone",Iy=C.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return x.info(e),e});function Ey(e,t,n){return function(){return Iy("pendo."+t,n),(e||C.noop).apply(null,arguments)}}function Cy(e){return e&&1===e.length?e[0]:C.any(e,ft)?y.all(e).then(function(e){return C.any(e)}):void 0}function xy(){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),Bu(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 Cy(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(!iu()){var e=ru(),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 Cy(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(Qg())&&Ch(this)):Th(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(Qg())||!t.canShowOnDevice()||!Og(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(Qg())||!this.canShowOnDevice()||!Og(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 y.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 _y(){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 Ty=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function ky(){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&&!Ty(this)?(o||(x.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(Hp())||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=Hp(),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 Ry(){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,Ry.MAX_ERRORS_PER_MINUTE<=t&&(n="Exceeded error rate limit, dropping guide.\n"+n,Vd.addGuide(a),m.trigger("renderFail",a)),o.shift()),x.critical(n,{error:i}),i}}}return C.each(["canShow","placeBadge","show"],function(e){a[e]=C.wrap(a[e],t(e))}),a}function Ay(){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 Oy(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 Ny(o){var a,t,i,s,r,n,d,u=this;return u.pollIds&&u.pollIds.length&&(a="_pendo-poll-selected_",t=C.indexBy(o.polls,"id"),i=C.map(u.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=u.id,n=v();Wg(e,t,b(),u.seenReason,o.language),lg(e,t,"advanced",n),Bp({guideId:e,guideStepId:t,time:n,state:"advanced"})},d=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()):u.advance()},u.after("render",function(){var n=k("._pendo-poll_")[0],e=k("._pendo-poll-submit_",n)[0];e?u.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)}});u.response(C.compact(t)),d()}):u.attachEvent(n,"click",function(e){var t,e=k(Cr(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")),u.response([{pollId:t.id,value:e}]),d())})}),u.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"}),u.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(u.resize)&&u.resize()}))}),u.after("show",function(){s=(new Date).getTime()}),u.response=function(e,r){e&&e.length&&(Nm(),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=Kg("pollResponse",u.guideId,u.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}),_m.push(i)}),_m.flush())}),u}Ry.MAX_ERRORS_PER_MINUTE=30;var My={show:function(t,n){if(iu()&&C.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return Ly(t,n);if(!g.getters["frames/hasFrames"]()||g.getters["frames/isGuideInThisFrame"]()(e)){e=function(e,t){if(e.getGuide().isModule){e=F.getResourceCenter();if(e)return Ly(e.steps[0],t)}}(t,n);if(ft(e))return e.then(function(){return Ly(t,n)}).then(function(e){return!!e||Fy(t,n)});e=Ly(t,n);if(ft(e))return e.then(function(e){return!!e||Fy(t,n)});if(e)return!0}return Fy(t,n)},showLocal:Ly};function Ly(e,t){return Wu.hasContent(e)&&Pu.valid(e)?(e._show(t),e.isShown()):!(Wu.hasContent(e)&&Pu.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(Qg()))&&(e.lock(),Wu.fetchContent(e).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&Pu.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(e.unlock(),e._show(t),e.isShown())}))}function Fy(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 Py(d){var e=!1,t=!1;return this.guide=d,this.elements=[],this.handlers=[],this.attributes=this.attributes||{},(this.domUrl||this.domJson)&&(this.eventRouter=new Ym),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=C.indexOf(t,this),i=Nl();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||"")),zu(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")&&!!d.canShowOnDevice()&&!this.isShown()&&!C.get(this,"stepIneligibleForApp")&&this.canShowOnPage(Qg())&&Og(this)},this.canShowOnPage=function(e){e=tm(this.regexUrlRule,e);return yh()&&m.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!(!(I.designer||iu()||Uh())&&(e=Qg(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!tm(this.regexUrlRule,e)?(Vd.addGuide(d),t.error=new Error('attempted display on page "'+e+'"'),x.critical("pendo.io page rule exception",t),1):g.getters["healthCheck/isMissingPageRule"]()(this)?(Vd.addGuide(d),t.error=new Error('missing regexUrlRule"'),x.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(Vd.addGuide(d),t.error=new Error("missing regexUrlRule for page "+this.pageId+'"'),x.critical("pendo.io page rule exception",t),1)))},this.render=function(){var e=this;if(this._preRenderHealthCheck()){if(e.domJson)return d.skipResourceCenterHomeView&&d.moduleIdToReplaceHomeViewWith&&d.hasEligibleNativeIntegrationModule?(t=C.find(Wd(),function(e){return e.id===d.moduleIdToReplaceHomeViewWith}),n=C.get(t,"attributes.resourceCenter.integrationProvider"),F.renderNativeIntegration(n,t)):d.continueToNativeModule?F.handleNativeIntegrationContinuation(d):(C.get(d,"attributes.resourceCenter")&&sh(F.getResourceCenter(),dh),d.isModule?U.renderResourceCenterModule(d,!1):(n=U.renderGuideFromJSON(e.domJson,e),C.get(d,"attributes.resourceCenter")&&(t=d.activeModule?d.activeModule.activeStep().domJson.props.id:e.containerId,t=e.guideElement.find("#"+t),F.adjustResourceCenterWidth(t)),n));var t=e.attributes.width,n=e.attributes.height,i=I.TOOLTIP_ARROW_SIZE,r="_pendo-group-id-"+d.id+"_",r=k(document.createElement("div")).attr("id",Fg(e)).addClass(rg+" "+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),d&&C.isFunction(d.isOnboarding)&&d.isOnboarding()&&r.addClass("_pendo-onboarding_"),e.overlayDiv=s,e.guideElement=r}},this.teardown=function(){x.info("guide step teardown",{contexts:["guide","render"]}),C.each(this.handlers,function(e){Dd(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){x.error("unable to remove aria-hidden from element",{error:t})}}),this.hiddenElements.length=0,this.hiddenElements=null),Il(this.id)},this.show=function(e){var t;if(!C.contains(["auto","continue"],e)||!g.getters["healthCheck/isRedisplay"]()(this))return(t=My.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&&!I.designer&&(t=(e=C.get(d,"attributes.resourceCenter"))&&F.isFullyCustom(d),n=d.activeModule?d.activeModule.activeStep().domJson.props.id:o.containerId,i=o.guideElement.find("#"+n),r=d.activeModule&&"AnnouncementsModule"===C.get(d.activeModule,"attributes.resourceCenter.moduleId"),m.beforeUpdate.trigger(o),t||r||(U.recalculateGuideWidth(n,o.guideElement),U.adjustGuideContentWidth(n,o.guideElement)),e?(F.adjustResourceCenterWidth(i),r&&d.activeModule.guidesInModule?C.forEach(d.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),m.updated.trigger(o))},this._show=function(e){m.beforeGuideShow.trigger(this,e),this.canShow()&&(!iu()&&d.control?this.hasBeenControlled()||this.onControlGuide("control"):m.beforeMount.trigger(this).cancel||(this.render(),this.isShown()&&this.onShown(e)))},this.shouldStartTimer=function(){return d.canShowOnDevice()&&!d.attributes.isAnnouncement&&!Rg(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;iu()||(this.seenReason=e,sg(v()),t=this.getStepPollTypes(d,this),this.hasBeenControlled())||(zg(this.guideId,this.id,b(),e,d.language,t),C.each(d.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(),iu()||(i.seenReason=r,i.seenState="active",sg(v()),t={last_updated_at:i.lastUpdatedAt},(n=this.getStepPollTypes(d,i))&&(t.step_poll_types=n),e&&Hg(i.guideId,i.id,b(),r,d.language,t),g.dispatch("guideState/updateLastGuideStepSeen",{guideId:d.id,guideStepId:i.id,time:ag,state:i.seenState,seenReason:r,visitorId:b()}),C.each(d.steps,function(e){var t,n,i;"snoozed"===e.seenState&&(e.snoozeEndTime=0,t=d.id,e=e.id,n=b(),i=d.language,t=Kg({type:"guideSnoozeCanceled",guideId:t,stepId:e,visitorId:n,seen_reason:r,language:i}),Yg(t,null,!0),m.guideSnoozeCancelled.trigger(t))}),Vu.runCustomScripts(i,d)),g.dispatch("frames/guideStepShownInFrame",{guideId:d.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||(I.ignoreResize=!0,Ut(function(){I.ignoreResize=!1},1e3))})},this.hide=function(e){var t=this;t.unlock(),m.beforeUnmount.trigger(t),t.teardown(),C.each(t.elements,function(e){Wo(e)}),m.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:d.id,stepId:t.id})},this.advance=function(){"advanced"===this.seenState&&!this.isRendered()||_g(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||Eg(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&&d.redisplay&&!d.outsideTimebox()&&!this.isSnoozed()&&v()-this.lastSeenAt>=d.redisplay.interval&&!d.hasReachedMaxDismissals()},this.hasBeenControlled=function(){return d.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()&&kc.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&bc(this)},this.getType=function(){return this.domJson?C.get(this,"attributes.calculatedType"):this.type},this}function Dy(){return this.after("render",function(){var e,t;P&&P.contentWindow&&P.style&&(e=C.first(k('#pendo-resource-center-container, [id^="pendo-g-"]')))&&(e=A(e))&&(t={mutation:"preview/setIsPreviewBarTop",payload:{isPreviewBarTop:!1}},"0px"===e.top?(P.style.top="auto",P.style.bottom="0px",P.contentWindow.postMessage(t,location.origin)):"0px"!==e.bottom&&P.style.top||(P.style.top="0px",P.style.bottom="auto",t.payload.isPreviewBarTop=!0,P.contentWindow.postMessage(t,location.origin)))}),this}Py.isGuideStep=function(e){return!!e&&C.isFunction(e.render)};const Uy={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||{},Hv(e),!1!==I.logStackTraces&&!1!==i.logStackTraces&&n.stack?Co(e+`
9
9
  `+n.stack):Eo(e)):t.level===gt.Error?Hv(e):t.level===gt.Warn&&(i=[e],Uv("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()]}}}},Gy=h.getSession(),By="pendo_cd";class zy{constructor(){this.name="CloneDetection"}initialize(){if(C.isFunction(window.BroadcastChannel))return h.registry.addSession(By),this.tabId=sn.getTabId(),this.id=at(16),this.channel=new BroadcastChannel("pendo-clone-detection-"+I.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=Gy.getItem(By)||"";-1===t.indexOf(e)&&(t+="-"+e),Gy.setItem(By,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()}isClonedSession(e){return this.startCloneDetectionTimer(),-1===(Gy.getItem(By)||"").indexOf(e)}clearCloneDetectionValue(){Gy.removeItem(By),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(){Gy.clearPendo(),sn.setParentTabId(this.tabId),this.tabId=sn.newTabId(),m.trigger("tabIdChanged:self"),g.dispatch("frames/setTabId",this.tabId)}sendMessage(e,t){this.channel.postMessage(Object.assign({type:e},t))}}let Hy=new zy;function jy(e){g.dispatch("frames/setReady",{isReady:!0})}var Wy=["unknown","hidden","visible"];function qy(e){return"visible"===e.visibility||"unknown"===e.visibility}Jy={};var Jy,t={actions:{init(e){var t,n,i=e.state;i.initialized||(h.registry.addSession(Xt),h.registry.addSession(Qt),t=sn.addTracerIds({}),n=we(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),m.ready.on(jy),m.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&D.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),Hy.initialize(),e.commit("setInitialized",!0))},changeGuideList(e,t){e=e.state,t=Ky(t);D.postMessage({action:"frames/receiveGuideList",frameId:e.frameId,guides:t,autoOrdering:I.autoOrdering||[]})},receiveGuideList(e,t){e.commit("setGuideList",t),t.frameId===e.state.frameId&&e.commit("setGuidesLoaded"),$y(e.state)},join(e){var t,n,i,r;e.state.disabled||(th(),t=e.state,n=window.top==window,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:Ky(Yd())}),(r=[].concat(f.get("leaderKey"))).length||t.agentInstallType!==ye||(r=[I.apiKey]),e.dispatch("receiveFrame",{frame:C.extend({agentInstallType:t.agentInstallType,id:t.frameId,joinedAt:v(),isTop:n,visibility:n?"visible":"unknown",apiKey:I.apiKey,leaderKey:r},i)}))},receiveFrame(e,t){var n,i=e.state;if(I.designerv2.launched&&(n=Object.assign({},df.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[Ah]&&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(Jy,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete Jy[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})),$y(e.state),e.getters.isLeader()&&m.childFrameJoined.trigger()},followLeader(e,t){var n=e.state,i=n.leaderId,r=t.leaderId;e.commit("setLeaderId",t.leaderId),i!==r&&m.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?y.reject(e.error):e.isShown?e:r()}):y.resolve({isShown:!1})}()},requestShowGuideStepInFrame(e,t){var n=t.frameId+"/"+at(32),i=y.defer();return Jy[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=My.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=Jy[t.requestId];n&&(n.resolve(t),delete Jy[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()}):hg(),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]&&Vg(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[Ah],{root:!0}),Mh(window),Vm()},receiveRestartPreview(e){var t=Ph(O,Hp());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview(e,t){qh({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=ua(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility(e,t){var n;!C.find(Wy,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;df.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&&Tl(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)&&Pn(t.visitorId,t.accountId)},setReady(e,t){e.commit("setReady",t.isReady)},receiveGuideSeen(e,t){t.frameId!==e.state.frameId&&m.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=uu(t))&&((i=C.first(s(i)))?ua(i)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),C.isFunction(n.canShowOnPage)&&!n.canShowOnPage(Qg())&&(a.PAGE="mismatch"),n.elementPathRule&&((i=C.first(s(n.elementPathRule)))?ua(i)?n.elementContainsRulesList&&!Mg(i,n.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),n.triggerElementPathRule&&((i=C.first(s(n.triggerElementPathRule)))?ua(i)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),C.get(t,"attributes.embedConfig")&&(n=C.get(t,"attributes.embedConfig.selector"),(i=C.first(s(n)))?ua(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(Ky(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!==ye&&(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&&!!qy(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===I.apiKey&&!!qy(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()!==I.apiKey?(n=C.filter(e.frames,function(e){return e.apiKey===I.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:Jy};function Vy(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 Ky(e){return C.map(e,Vy)}function $y(t){var n=C.indexBy(C.filter(Yd(),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(Gu).value(),e=C.toArray(n).concat(e).filter(pm);C.sortBy(e,hm),Am(e),Jd(e),t.guidesLoaded&&0===C.size(C.get(t,"frames."+t.frameId+".guides",[]))&&nh()}function Zy(e,t){new(ut("MutationObserver"))(t).observe(e,{subtree:!0,attributes:!0,childList:!0,characterData:!0})}const Yy={startObserver:function(r){{var t=r;const n=Element.prototype.attachShadow;Element.prototype.attachShadow=function(e){e=n.call(this,e);return this.shadowRoot&&Zy(this.shadowRoot,t),e},Element.prototype.attachShadow.toString=function(){return n.toString()}}if(C.isFunction(document.createNodeIterator)){let t=0,n=[Vo()],i;!function o(e){do{if(!(e=e||document.createNodeIterator(n.pop(),NodeFilter.SHOW_ELEMENT))||!e.nextNode)break;for(;(i=e.nextNode())&&(t++,i&&i.shadowRoot&&(Zy(i.shadowRoot,r),n.push(i.shadowRoot),Yy.foundShadowRoots=!0),t%5e3!=0););}while(!i&&(e=null,n.length));i&&Yy.foundShadowRoots&&Ut(()=>{o(e)},50),5e3!==t||Yy.foundShadowRoots||(Yy.stoppedSearchEarly=!0)}()}},foundShadowRoots:!1,stoppedSearchEarly:!1};var Xy,_i={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,Xp-t),Xp),t=Ut(eb,t),e.commit("setScheduledUpdate",t))},handleScheduledUpdate(e){e.dispatch("stopScheduledUpdate"),nh()},stopScheduledUpdate(e){e.state.scheduledUpdate&&(clearTimeout(e.state.scheduledUpdate),e.commit("setScheduledUpdate",null))},startObserverIfNeeded(e,t){var n;e.state.useObserver&&((n=e.getters.observer())||(n=new(t||ut("MutationObserver"))(Qy),Xy=n),e.state.observing||(n.observe(document.documentElement,{subtree:!0,attributes:!0,childList:!0,characterData:!0}),e.state.observeShadowRoots&&Yy.startObserver(Qy),e.commit("setObserving",!0)))},stopObserver(e){var t=e.getters.observer();t&&C.isFunction(t.disconnect)&&t.disconnect(),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setUseObserver(e){e.useObserver=!0},setObserveShadowRoots(e){e.observeShadowRoots=!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 Xy}},state:{useObserver:!1,observeShadowRoots:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}};function Qy(){g.dispatch("guideUpdate/documentChanged")}function eb(){g.dispatch("guideUpdate/handleScheduledUpdate")}tb=["advanced","dismissed","snoozed"];var tb,Mi={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){Co(['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(tb,t.seenState)&&!C.contains(tb,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}},nb={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()}}},ib={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 rb=h.getLocal();var ob="pendo-preview",ab="current-guide-preview",sb={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(ob)),i=(n.apiKey===I.apiKey&&e.commit("setPreview",n),t.getItem(ab));i&&e.commit("setDesignerPreview",JSON.parse(i))}catch(r){}},write(e){try{var t=e.getters.storage();e.state.preview?t.setItem(ob,JSON.stringify(e.state.preview)):t.removeItem(ob)}catch(n){}},exit(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview(e){e.commit("setDesignerPreview",null),e.getters.storage().removeItem(ab)},launchInAppDesigner(e,t){df.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 rb}}};const db=(()=>{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",sn.getFrameId()),e.commit("setTabId",sn.getTabId()),e.commit("setInstallType",we());var t=pu()&&window.top===window;n.isTop,e.commit("setIsTop",t),e.commit("isLeader",pu()),t?(t=vh(),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 y.all(e).then(e=>({frameId:n.id,frameVisibility:n.visibility,errors:C.map(e,e=>JSON.parse(e).errors)}))}),y.all(t).then(e=>e).then(e=>n(e))["catch"](e=>n({error:e})))}};const t={},d={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?(u(),c(),m.on("stepEligibility",i),m.on("guideUpdateComplete",p),m.on("guideLoopStopped",h),m.on("eventCaptured",o),m.on("identify",u),m.on("urlChanged",c),e&&(r(),m.on("guidesLoaded",r))):(m.off("stepEligibility",i),m.off("guideUpdateComplete",p),m.off("guideLoopStopped",h),m.off("eventCaptured",o),m.off("identify",u),m.off("urlChanged",c),e&&m.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(jp.sortAndFilter(O,I.autoOrdering),e=>e.id);g.commit("debugger/autoOrdering",t||[]),g.commit("debugger/excludedGuides",I.excludedGuides||[]),g.commit("debugger/throttling",I.throttling||{})}function o(e){g.dispatch("debugger/eventCaptured",e.data[0])}function u(e){g.commit("debugger/identity",{visitorId:C.get(e,"data.0.visitor_id")||I.get_visitor_id(),accountId:C.get(e,"data.0.account_id")||I.get_account_id(),apiKey:I.apiKey})}function c(){g.commit("debugger/location",{href:Fr(),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=d[r]||((e,t)=>{e[r]=t});d[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=d["_sync_"+r]||o,d["_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:d}})();const ub=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 d(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 u(e,t){e.pendo.iframeWaiting=!1,d(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?d(e,t):(e.pendo={iframeWaiting:!0},e.document.addEventListener("DOMContentLoaded",r._.partial(u,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=Bn()){p()&&o.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}}();function cb(e,n){return e.length==n.length&&C.all(e,function(e,t){return e===n[t]})}class lb{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=s(n.selector)}catch(i){t=[]}t.length>this.maxTargets&&(t.length=this.maxTargets),cb(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&&x.warn("Element activated guide ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var pb,hb,fb,gb,mb,vb,yb={name:"DOMActivation",key:fb="pendoTargetId",guides:gb=[],targets:mb={},reset:Eb,init:xb,attach:function(n,i,e){var t=n[fb],r=t?e[t]:null;r||(t=t||"target"+C.uniqueId(),r={target:n,events:{}},e[t]=r,n[fb]=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(Ib,C,t.guideIds),l(n,e="mouseover"===e?"mouseenter":e,t.fn),r.events[e]=t),t.guideIds[i.id]=1})},detach:Sb,handler:Ib,activates:Cb,prefetch:_b,initialize:function(e,t){(pb=t).Events.on("deliverablesLoaded",Eb),t.Events.on("guideListChanged",bb),t.Events.on("guidesLoaded",wb),hh(hb=new lb(yb))},teardown:function(){fh(hb),pb.Events.off("deliverablesLoaded",Eb),pb.Events.off("guideListChanged",bb),pb.Events.off("guidesLoaded",wb)}};function bb(){Eb(),xb(Wd())}function wb(){_b(Wd())}function Sb(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)&&(Dd(n.target,t="mouseover"===t?"mouseenter":t,e.fn),delete n.events[t])}),C.size(n.events)<=0)&&(delete n.target[fb],n.target=null,delete t[e])}),delete t[i.id]}function Ib(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()?F.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||Bg(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function Eb(){C.each(gb,function(e){Sb(e,mb),e.targets=[]}),gb.length=0}function Cb(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(Qg())){var t=C.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=uu(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function xb(e){C.each(e,function(e){e=Cb(e);e&&gb.push(e)})}function _b(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 Tb=function(){(vb=vb||{dom:k,placeBadge:Ch,showPreview:Dg,stopGuides:th,removeAllBadges:xh,_:C,sizzle:s,tellMaster:Ha,tell:Ha,log:Bv,attachEvent:l,createLauncher:C.constant({}),removeLauncher:C.noop,addGuideToLauncher:C.noop,updateLauncherContent:C.noop,DEFAULT_TIMER_LENGTH:Xp,getOffsetPosition:jo,getScreenDimensions:Bo,registerMessageHandler:Na,whenLoadedCall:Gd,loadResource:xa,loadGuideCss:Cm,GuideFactory:Gu,GuideStep:Bu,extractElementTreeContext:Td,previewGuideFromJSON:U.previewGuideFromJSON,hidePreviewedGuide:U.hidePreviewedGuide,shadowAPI:Yn,getTarget:Cr,pullContentsFromTargetElement:Ng,doesElementMatchContainsRules:Mg,doesElementContentMatchRule:Lg,getGuideAttachPoint:ou}).areGuidesEnabled=!Fm(),I.designer||(I.designer=vb)},kb=function(){var r,o,i;let a;return{name:"DesignerConnect",initialize:function(e,t){r=e,o=t,Ja()||Na("connect",n);Na("pendo-designer-launch::launch",u),Na("pendo-preview::launch",c),e.app_name=document.title,(ja()||window.opener)&&window.addEventListener&&(r.log(e.app_name+": listening to messages"),window.addEventListener("message",ka,!1));window.opener&&r._.isFunction(window.opener.postMessage)&&window.opener.postMessage({type:"pendo::ready"},"*");r.onConnectMessage=n},teardown:function(){window.removeEventListener&&window.removeEventListener("message",ka,!1),s(),Ma("connect"),Ma("pendo-designer-launch::launch"),Ma("pendo-preview::launch"),a&&(o.Events.appUnloaded.off(a),a=undefined);i=i&&undefined},onConnectMessage:n,disconnectDesigner:s,launchDesignerListener:u,launchPreviewListener:c,sendToken:d};function n(e,t){var n,i;r.designer||(n=t.origin,r.stopGuides(),r.buffers.lock(),i=t.source,Ea=i,r.designerv2.hostConfig||(o.store.dispatch("frames/leave"),a=r._.partial(s,i,n),o.Events.appUnloaded.on(a)),Tb(),Ha(t.source,{status:"success",type:"connect"},n),Ua("selection.js")&&(r.log("Designer Modules already loaded."),Ha({type:"ready"},n)),o.Events.designerLaunched.trigger())}function s(e,t){r.buffers.unlock(),I.designer&&(I.designer=null,delete I.designer),e&&Ha(e,{type:"unload"},t)}function d(e,t){var n;i&&(n={token:i,type:"pendo-designer-launch::set-token"},t.source.postMessage(n,t.origin),i=undefined)}function u(e,t){var n,t=t.data.token;t&&(i=t,Na("pendo-designer-launch::get-token",d),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!==we()?r.log("Skipping preview launch due to agent install type mismatch."):(n=r._.extend({},t.data.config,{origin:t.origin}),ro()&&(n.apiKey=r.apiKey),o.store.dispatch("preview/exitDesignerPreview"),o.store.dispatch("preview/start",n),Mh(window)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:r.apiKey,accountId:r.accountId},t.origin),Vm(),o.store.dispatch("frames/startPreview")))}}();const Rb="__sg__";Ob="promotedAgentMetadataConfigurations",Nb=[],Mb={},Lb={};var Ab,Ob,Nb,Mb,Lb,Fb={name:"PromoteMetadata",initialize:function(e,t){if(Nb=(Ab=t).ConfigReader.get(Ob),Lb={},Ab.agentStorage.registry.addLocal(Rb),kn())try{Mb=JSON.parse(Ab.agentStorage.read(Rb))||{}}catch(n){zb()}Nb&&Nb.length&&(Ab.Events.on("metadata",Ub),Ab.Events.on("eventCaptured",jb),Ab.Events.on("identify",Gb))},teardown:function(){Ab.Events.off("metadata",Ub),Ab.Events.off("eventCaptured",jb),Ab.Events.off("identify",Gb)},getPromotedMetadata:function(){return Nb},hasPromotedMetadataKind:Pb,setSchemaGroup:Ub,getSchemaGroup:Db,resetSchemaGroup:Bb,resetCachedSchemaGroup:zb};function Pb(t){return C.some(Nb,function(e){return e.kind===t})}function Db(){return Lb}function Ub(e){var t;e?(e=e.data[0]["options"],e&&(t=e)):t=Nl(),Lb=function(r){if(kn())try{var e=Ab.agentStorage.read(Rb);Mb=function(e){e=C.mapObject(e,(t,e)=>{const n={};return Object.keys(t).forEach(e=>{n[e.replace("agent__","")]=t[e]}),n});return e}(Mb=e?JSON.parse(e):{})}catch(t){zb()}var o=Lb;C.each(["visitor","account","parentAccount"],function(e){var t=Pb(e),n=!C.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!C.isEmpty(Mb)&&C.isEmpty(hs.get())&&(o[i]=Hb(Mb[i],e)),n)&&(t=Hb(r[e],e),C.isEmpty(t)||(o[i]=Object.assign(Object.assign({},o[i]),t)))}),kn()&&Ab.agentStorage.write(Rb,JSON.stringify(o),undefined,!1,!0);return o}(t)}function Gb(e){e=e.data[0];C.get(e,"wasCleared")&&(Ab.agentStorage.clear(Rb),Bb())}function Bb(){Lb={}}function zb(){Mb={}}function Hb(e,i){var r={};return e&&C.each(e,function(e,t){var n=t.toLowerCase();Boolean(C.find(Nb,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function jb(e){e=e.data[0];e&&(C.isEmpty(Lb)&&Ub(),C.isEmpty(Lb)||("track"===e.type?e.props.__sg__=Lb:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=Lb)))}function Wb(e,t,n){this.element=e,this.method="element"==t?"click":"hover"==t?"mouseover":t,this.step=n,this.guide=n.getGuide()}Wb.prototype.add=function(){0===C.indexOf(this.guide.steps,this.step)&&!Wb.shouldAttachHandler(this.guide,this.method)||eu(this.guide)&&!tu(this.guide)||this.setupElementEvent(this.element,this.method)},Wb.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},Wb.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))),Wb.attach(this.step,e,t,this.advanceFn)},Wb.prototype.teardownElementEvent=function(e,t){x.info("detach onGuideAdvanced",{contexts:["guide"]}),Dd(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},Wb.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||yb.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector};var qb=null,Jb=function(){return ru()?Qd:Xd},Vb=function(e){return"#_pendo_g_"+e.id},Kb=function(e,t){qb=null;var n,i,r,o,e=jo(e);return 0===e.height&&0===e.width?null:(n=t.guideElement,o=t.attributes.height,i=t.attributes.width,r=t.attributes.layoutDir,n.addClass(Jb()),o=r0(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}),$b(n[0],o),n[0])},$b=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:"+I.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=k("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),d=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),d.removeClass(r+e+"_").removeClass(e)}),s.addClass(i+o+"_").addClass(o).css(a+"top:"+t.arrow.top+"px;left:"+t.arrow.left+"px;"),d.addClass(r+o+"_").addClass(o).css(a+"top:"+t.arrow.border.top+"px;left:"+t.arrow.border.left+"px;"),k(e).append(s).append(d)},Zb=function(e,t){t===undefined&&(t=Bd),e.element=su(e);var n=e.element;if(!n)return x.info("No element found for step: "+e.id),null;la(n);var i=Kb(n,e);return null===i?null:(i.id=I.getTooltipDivId(e),k(i).appendTo(ou()),t.push(i),l(i,"mouseover",C.partial(k.addClass,i,"mouseover")),l(i,"mouseout",C.partial(k.removeClass,i,"mouseover")),cu(n,i),t0(e),n)},Yb=null,Xb=null;var Qb=null,e0={top:"north",left:"east",bottom:"south",right:"west"},t0=function(e){try{var t,n,i,r,o,a,s,d;e.attributes&&e.attributes.blockOutUI&&e.attributes.blockOutUI.enabled&&(t=e.attributes.blockOutUI,(n=[]).push(e.element),i=uc(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=dc(a=sc(),i,o),h=i,f=!C.isEqual(h,Yb),Yb=h,f||(l=a,p=!C.isEqual(l,Xb),Xb=l,p)||(u=s,c=!C.isEqual(u,Qb),Qb=u,c))&&(d={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(d["background-color"]=t.bgColor),t.opacity&&(d.opacity=t.opacity),C.each(s,function(e,t){t=e0[t],e=C.extend({},e,d),t=k("div._pendo-guide-tt-region-block_._pendo-region-"+t+"_")[0]||n0(t),k(t).css(e)}))}catch(g){x.info("Failed to add BlockOut ui",{contexts:["error"]})}var u,c,l,p,h,f},n0=function(e){e=k(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");k("body").append(e)},i0=function(e){var t=C.isEqual(e,qb);return qb=e,!t},r0=function(e,t,n,i){var r=I.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=Bo();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=o0(o,e,a,i=i||"auto"),o=a0(o,e,a,i),o=s0(o,e,a)},o0=function(e,t,n,i){return e.arrow.hbias=_c(t,n,i),e},a0=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-po(),t=(r=t.left-ho())+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},s0=function(e,t,n){var i,r,o,a=e.height,s=e.width;return Ge()?Be(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=Ce(9,6)?6:2,i=-1):"bottom"==e.arrowPosition&&(e.top=t.top-a,e.arrow.top=a-I.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=Ce(9,6)?6:0,e.arrow.top+=8==Ee?-1:0,i=1),r=10+I.TOOLTIP_ARROW_SIZE,o=s-3*I.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==Ec?(e.left=t.left+t.width/2-(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==Cc?(e.left=t.left-s+t.width/2+(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=o):(e.left=t.left+t.width/2-s/2,e.arrow.left=s/2-I.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==Ec?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=Ce(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==Cc&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-I.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=Ce(10,6)?5:0,e.arrow.left+=7==Ee&&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-I.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e)},d0=430,u0=200,c0=15;function l0(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||I.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||I.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.getTriggers=function(e){var t=this,n=t.element||su(t);return!n&&e?[]:(e=(t.advanceMethod||"").split(","),this.triggers=C.map(e,function(e){return new Wb(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!Rg(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(Qg())&&Og(t)},this.after("render",function(){Zb(this,this.elements)&&(C.each(this.getTriggers(),function(e){e.add()}),kc.attachScrollHandlers(this,this.onscroll))}),this.reposition=function(){var e=this.attributes.width,t=this.attributes.height,n=this.attributes.layoutDir,i=this.guideElement,r=k("._pendo-guide-container_",i),o=jo(this.element),t=r0(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(),$b(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,t0(this)},this.onscroll=function(e){ua(e.element)?(e.reposition(),Uo(e.elements[0],"display:block")):Uo(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(),Qb=Xb=Yb=null})),this}var p0=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(ou())),Ge()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&k(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},h0=function(e){var t=e.guideElement,n=I.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}),Ge()&&t.css({position:"absolute"})},f0=function(e,t){t===undefined&&(t=Bd),e.element=su(e),h0(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(p0(n,e),e.guideElement);t.push(n[0]),n.appendTo(ou())},g0=function(e,t){t===undefined&&(t=Bd),e.element=su(e),e.guideElement.addClass("_pendo-guide-mobile-lb_");var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=p0(n,e),e=e.guideElement,i=I.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(ou()),t.push(e[0]),l(n[0],"touchmove",r),l(e[0],"touchmove",r)};function m0(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||I.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||I.LB_DEFAULT_WIDTH,e.after("render",function(){(ru()?g0:f0)(e,e.elements)}),e.reposition=function(){ru()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var v0=500,y0="_pendo-guide-banner_";function b0(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||v0,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=I.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(y0).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),iu()||e.addClass("_pendo-in_"),k("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=su(n),n.elements.push(e[0]),e.appendTo(ou())})),n}function w0(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:d,onShown:d,render:function(){var e=n.guideElement,t=n.attributes.height;e&&e.html()||(e=k(document.createElement("div")).attr("id",Fg(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&&!$o(e[0])&&(k("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),Vu.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){iu()||a()&&n.seenState!==r&&function(e){{var t,n;if(ua(e,/(auto|scroll|hidden)/))return(t=Qo(e))?(t=Zo(t),e=Zo(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(Hg(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 d(){}}var S0="_pendo-launcher-searching_",I0="._pendo-launcher-search-box_ input";var E0,C0=function(e){return e&&C.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function x0(){var e;return function(){var e;if(I.guideWidget)return(e=I.guideWidget.data)&&e.enableSearch}()&&(e=k(I0)[0])&&0<(e=e.value).length?(e=Ye.call(e),[].concat(C.compact(e.split(" ")))):[]}function _0(e){if(!f.get("disablePrefetch"))return y.all(C.map(e,function(e){return e.fetchContent()}))}function T0(e,t){return x.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||O,t&&0!==t.length?C.chain(e).filter(C0).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return C.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var k0=function(){var e=Yd();if(pu()){if(I.guideWidget&&I.guideWidget.enabled){var t=D0(e),n=!0;if(I.guideWidget&&C.isFunction(I.guideWidget.update))I.guideWidget.update(t,n)}}else{V0();t=qd(e),n=U0(D0(t));n!==E0&&g.dispatch("frames/changeGuideList",t),E0=n}},R0="launcher-closed",A0=null,O0=null,N0=!(Wb.attach=function(e,t,n,i){if(e){for(var r=Wb.handlers=Wb.handlers||{},o=r[e.id]=r[e.id]||[],a=0;a<o.length;++a){var s=o[a];t===s[0]&&n===s[1]&&(Dd(t,n,s[2],!0),o.splice(C.indexOf(o,s),1),a--)}o.push([t,n,i]),Dd(t,n,i,!0),l(t,n,i,!0)}}),M0="_pendo-launcher-active_",L0=null,F0=function(){return""};function P0(e,t){F0=t}function D0(e){var t,e=C.filter(e||O,C0);return e=e,0===(t=x0()).length?e:(t=C.map(t,C.partial(T0,e)),C.union.apply(C,t))}function U0(e){return rt(C.map(e,function(e){var t=e.isWhatsNew()?[]:C.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function G0(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(ou()),e.className="",n.element=t[0])}},dispose:function(){k.removeNode(n.element)},setActive:function(e){e?k(n.element).addClass(M0):k(n.element).removeClass(M0)}}),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=zu(i.launcherBadgeUrl)),r.onerror=function(e){x.info("[Agent] Error! Unable to load guide center image "+i.launcherBadgeUrl),x.critical("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},Ge()&&(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"})),ou().appendChild(r)}function B0(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=Cr(e),t=n();k(e).closest(t).length&&(X0()?h.write(R0,"yes",864e6):I.guideWidget.position(e),nw())}I.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(){Dd(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&k("._pendo-launcher-whatsnew-count_").remove()}}),l(document,"click",t)}function z0(){var n,s="bottom-right",d="bottom-left";return this.update=function(e,t){t=t?e:D0(e),e=U0(t)+rt(x0());return e!==n&&(n=e,this.updateLauncherContent(t)),q0(),0<t.length},this.updateLauncherContent=Z0,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(A0=new G0(e),e.height||310),n=(e.enableSearch&&(t+=Ge()?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=(O0=i[0],jo(A0.element)),r=r0(r,t,n),o=(i.css({width:n,height:t}),I.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=$0(),o=zu(H0(this.template(t))),t=k(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),ug(i[0],function(){ew(),h.write(R0,"yes",288e5)}),t.on("click",function(e){var t=k(Cr(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=N((t=/^launcher-(.+)$/.exec(Ye.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(Bg(t.steps[0],"launcher"),ew(),Ud(e))}),Ge()&&(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(ou()),C.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!Ce(9,6)&&(o=e.autoHeight.offset||100,i.css({height:"calc(100% - "+o+"px)",maxHeight:e.height,minHeight:e.height/2}),k("._pendo-guide-container_."+r.arrowPosition).css({maxHeight:e.height-30,minHeight:e.height/2-30,height:"calc(100% - 30px)"}))},this.position=function(e){var t,n,i,r,o,a;e&&(t=this.data,e=jo(e),n=r0(e,this.height,this.width),i=k(O0),"badge"===(r=t.launchType||"badge")?(o=t.position,C.indexOf(a=[s,d,"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,d],o)?"bottom":"top",n.arrow.hbias=C.contains([d,"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(),s0(n,e,{width:Infinity,height:Infinity}),$b(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=nw,this}function H0(e){return e=C.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function j0(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)),L0=new B0(e);var n,i,r=z0.create(I.guideWidget);return C.isFunction(r.template)||(r.template=e.template?C.template(e.template):F0),r.render(),r.position(L0.getLauncherTarget()),t&&r.toggle(),r}z0.create=function(e){return C.reduce(z0.behaviors,function(e,t){return t.call(e)},e)},z0.behaviors=[gh,z0,Pu.Launcher,function(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){k(I0).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,I.disableGuideCenterContentSearch||this.before("update",_0),this.before("update",function(){t.text=x0().join(" ");var e=k("._pendo-launcher_");t.text?e.addClass(S0):e.removeClass(S0)})),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,Ty),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(){K0()?i.appendTo(this.data.launchElement):(A0.wrap(),i.appendTo(A0.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 W0=function(){O0&&(k.removeNode(O0),O0=null),L0&&(L0.dispose(),L0=null),A0&&(A0.dispose(),A0=null)},q0=function(){(!K0()&&(Q0()||0<x0().length)?J0:V0)()},J0=function(){A0&&A0.show()},V0=function(){K0()||ew(),A0&&A0.hide()},K0=function(){return!(!I.guideWidget||!I.guideWidget.data||"element"!==I.guideWidget.data.launchType)},$0=function(e){var t=Nl(),t=C.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:nt(t)},I.guideWidget);return t.data=C.extend({},t.data),e&&(t.guides=e),t};function Z0(e){var t=I.guideWidget.template||F0,e=$0(e),e=k(document.createElement("div")).html(H0(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 Y0=C.compose(q0,function(e,t){var n,i,r,o;C0(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))}),X0=function(){return k(O0).hasClass(M0)},Q0=function(){return 0<k("._pendo-launcher-item_").length},ew=function(){var e;O0&&(e=k(O0))&&e.hasClass(M0)&&(e.removeClass(M0),A0)&&A0.setActive(!1)},tw=function(){var e;O0&&(e=k(O0))&&!e.hasClass(M0)&&(e.addClass(M0),A0)&&A0.setActive(!0)},nw=function(){O0&&!N0&&(X0()?ew:tw)()};var iw=function(){try{var e=I.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};W0(),!ru()&&!n.desktop||ru()&&!n.mobile||ja()&&!n.iframe||e.enabled&&(j0(t),V0())}catch(i){x.critical("ERROR while initializing launcher",{error:i})}},rw=function(e){e.defaultLauncher=P0,e.toggleLauncher=nw,e.showLauncher=tw,e.hideLauncher=ew,e.removeLauncher=W0,e.initLauncher=iw,e.createLauncher=j0,e._addGuideToLauncher=Y0,e.launcherToolTipDiv=O0},ow=function(){iw()},aw=function(){var e;(e=I).designer&&(e.designer.createLauncher=j0,e.designer.removeLauncher=W0,e.designer.addGuideToLauncher=Y0,e.designer.updateLauncherContent=Z0)},sw=function(){var e;(e=I).debugging&&(e.debugging.getLauncherGuides=D0)},dw=function(e){return i=I.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)?Tu.verify(n).then(function(){return ju.load(n)}).then(function(e){return n.template=e.content,C.extend(t,e)}):y.resolve();var t,n,i,r},uw=function(e,t){rw(e),t.Events.on("guidesLoaded",ow),t.Events.on("designerLaunched",aw),t.Events.on("debuggerLaunched",sw),t.GuideLoop.addUpdatePhase(k0),ym.push(dw),t.agentStorage.registry.addLocal(R0)},cw=function(e,t){var n;n=dw,0<=(n=C.indexOf(ym,n))&&ym.splice(n,1),t.GuideLoop.removeUpdatePhase(k0),t.Events.off("guidesLoaded",ow),t.Events.off("designerLaunched",aw),t.Events.off("debuggerLaunched",sw)};tv.Extensions.API.addTopic("Launcher",{addBehavior(e){z0.behaviors.push(e)}});var lw,pw,hw,fw={name:"P1Guides",initialize:function(e,t){var n;pw=t,lw=e.dom,hw=[l0,m0,b0,w0,vw,yw,mw,gw],-1<C.indexOf(Bu.behaviors,l0)||(n=C.indexOf(Bu.behaviors,Ny),Bu.behaviors.splice.apply(Bu.behaviors,[n,0].concat(hw)),t.Events.guideLoopStopped.on(V0),e.TOOLTIP_DEFAULT_WIDTH=d0,e.TOOLTIP_DEFAULT_HEIGHT=u0,e.TOOLTIP_ARROW_SIZE=c0,e._showElementGuide=Zb,e._createTooltip=Kb,e._get_tooltip_dimensions=r0,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e._showLightboxGuide=f0,uw(e,t))},teardown:function(){cw(0,pw),pw.Events.guideLoopStopped.off(V0),hw.forEach(e=>{e=C.indexOf(Bu.behaviors,e);0<=e&&Bu.behaviors.splice(e,1)}),hw=[]}};function gw(){const o=this;return"tooltip"!==o.type||o.domJson||(o.checkPlacement=function(){var e,t,n,i,r;e=o,r=jo(e.element||su(e)),t0(e),i0(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=r0(r,n,i,t),(i=k(Vb(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),$b(i,n))}),o}function mw(){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=I.TOOLTIP_ARROW_SIZE,n=i.guideElement;n&&(e=lw("._pendo-guide-container_",n),"tooltip"==i.type||Ge()&&"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 vw(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&ug(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||Eg(t)})}),t}function yw(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||nu(e.guide)||e.after("render",function(){kg(e.guideElement[0])}),e}var bw,ww,Sw={name:"Branding",initialize:function(e,t){bw=e,(ww=t).ConfigReader.get("isPendoFree")&&ww.Events.on("guideSeen",Iw)},teardown:function(){ww.Events.off("guideSeen",Iw)},addBranding:Ew};function Iw(e){Ew(bw,e)}function Ew(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",no()+"/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 Cw,xw=function(){let r;var o,n,i;const a="automation",e=250,t=500,s=0,d=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(u,this))},teardown:function(){n.EventRouter.deregisterAction(a),this.automationQueue=[]},guideActivity:u,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=d){return new $t(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,d).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 u(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 _w(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 _w(e[t],i)}return C.isFunction(e[t])?function(){return e[t].apply(e,arguments)}:e[t]}}):e}const Tw=function(){let n,l,p,h,t;const i=qn(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 d=n.eventPropertyRules[s];if(!d.name)return;t[d.name]=m(d,i)}}var u=v()-e;if(50<u){if(r&&l===p._.identity&&p._.isFunction(p.getText))return p.log("switching event property collection to fast text implementation"),l=function(e){return _w(e,function(e){return p.getText(e,128)})},c(i);g(50,n)}return t}(n.target),p._.pairs(e).forEach(([e,t])=>{n.addEventProperty(e,t)}))}}),r=qn(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);ge(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 ay("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=Yn.getParent(r)}return n}return e?!(t=p.Sizzle(e)[0])||"password"!==t.type&&"hidden"!==t.type?t:void 0:window}}();function kw(){var e;vh().enabled&&(g.commit("debugger/debuggingEnabled",!0),Rw(),k("#pendo-client-debugger").length||(e=f.get("agentDebuggerPluginLoader"),tv.restartDebugger?tv.restartDebugger():"function"==typeof e?e():((e=document.createElement("script")).src=Z(I).createScriptURL(io("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)),m.debuggerLaunched.trigger()))}function Rw(){Cw=Cw||{store:g,ConfigReader:f,getState(){return JSON.stringify(g.state)},getEventCache(){return[].concat(Va)},getAllGuides(){return[].concat(O)},getAutoGuides(){return jp.sortAndFilter(O,I.autoOrdering)},getBadgeGuides(){return C.filter(O,eu)},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:Jd,getBody:k.getBody,isMobileUserAgent:Ue.isMobileUserAgent,areGuidesDelayed:Pm,doesElementMatchContainsRules:Mg,getMetadata:Nl,isStagingServer:re,AutoDisplay:jp,isLeader:pu,Events:m},I.debugging=Cw}function Aw(e){if(yh())return e?t:"debugging already enabled";if(!pu())return;const t=vh();return t.enabled=!0,h.write(mh,JSON.stringify(t),null,!0),kw(),e?t:"debugging enabled"}function Ow(){if(!yh())return"debugging already disabled";g.commit("debugger/debuggingEnabled",!1);var e=vh();return e.enabled=!1,h.write(mh,JSON.stringify(e),null,!0),I.debugging=null,delete I.debugging,k("#pendo-client-debugger").remove(),"debugging disabled"}C.extend(function(e){x.debug(e,{contexts:["debug"]})},Cw);const Nw=(e,t,n)=>{if(t.getters["frames/leaderExists"]())return n.resolve();const i=n.defer();return e.on("leaderChanged",()=>{i.resolve()}),i.promise},Mw=function(){let t,o;return{name:"DebuggerLauncher",initialize:function(n,e){const{Events:i,q:r}=e;o=e.store,Nw(i,o,r).then(()=>{o.dispatch("debugger/init"),o.getters["frames/isLeader"]()&&kw()}),Na("pendo-debugger::launch",(e,t)=>{e.config.apiKey===n.apiKey&&Nw(i,o,r).then(()=>{t.source.postMessage({type:"pendo-debugger::ready",apiKey:n.apiKey},t.origin),!yh()&&o.getters["frames/isLeader"]()&&Aw(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",a);(t=n).isDebuggingEnabled=(e=!1)=>yh(e),n.enableDebugging=Aw,n.disableDebugging=Ow,n.addDebuggingFunctions=Rw},teardown:function(){Ma("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",a),t.debugging&&t.debugging.teardown&&t.debugging.teardown();Ow()}};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})}}(),Lw=function(){let i,a=0,s,d,u,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 I="errorClickLogging",E=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(I),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],()=>{_(250)},!0));break;default:t.push(i.attachEvent(window,e[n],_,!0))}return t}(),i.Events.on("eventCaptured",P),i.agentStorage.registry.addSession(w),S.sniffer.MutationObserver&&(e=ut("MutationObserver"),(n=new e(k)).observe(S.dom.getBody(),{childList:!0,attributes:!0,subtree:!0}))},teardown:function(){i.Events.off("eventCaptured",P),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:P};function x(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()){(l=c.filter(l,e=>t-e.timestamp<=p)).length&&Ut(x,p)}function _(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)&&(_(),b=!!e.length)}function k(e){e.length&&_()}function t(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function R(e){return e&&t(e.element)}function A(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=(R(i)&&i.error?i.error:t).message)&&n.length>E&&(n=n.substring(0,E)),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],A(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(x,p),c.each(f,e=>{L(e)}),s?(i=t,e.browser_time-s<=1e3&&Math.abs(d-i.x)<=30&&Math.abs(u-i.y)<=30?a++:(a=1,d=t.x,u=t.y),s=e.browser_time,4===a&&(s=null,A(e,"rageClick"))):(s=e.browser_time,d=t.x,u=t.y,a=1)}function M(e){if(t(e.target))return{detail:e={}}=e,R(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&&(A(e,"errorClick"),C)&&O(e,t)}else c.contains(f,t)||f.push(t),f.length>o&&f.pop()}}function F(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)&&A(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 P(e){var t=e.data[0],e=e.data[1],e=("click"===t.type&&e&&N(t,e),"load"===t.type&&F(t),"submit"!==t.type&&"change"!==t.type||_(),c.has(e,"target")&&c.contains(m,e.target.tagName));"focus"===t.type&&e&&_()}}(),Fw=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=Pw,e.getActiveEmbeddedGuides=Dw}(e),n.Events.on("deliverablesLoaded",u),n.Events.on("guideLoopStopped",r),n.Events.on("guideListChanged",f),n.Events.on("urlChanged",c),n.Events.on("guideAdvanced",s),n.GuideLoop.addUpdatePhase(d),n.guides.addProcessor(l),n.GuideActivity.registerGuideResolver(h),this.removeResizeEvent=e.attachEvent(window,"resize",p)},teardown:function(){u(),n.Events.off("deliverablesLoaded",u),n.Events.off("guideLoopStopped",r),n.Events.off("guideListChanged",f),n.Events.off("urlChanged",c),n.Events.off("guideAdvanced",s),n.GuideLoop.removeUpdatePhase(d),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 d(){o.forEach(a,function(e){e.process()})}function u(){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(){Bm()||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 Pw(){return Fw.activeEmbeddedGuides}function Dw(){return Fw.activeEmbeddedGuides.filter(e=>e.isShown())}const Uw="sessionId";class Gw{constructor(){this.name="SessionManager"}initialize(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"eventCaptured",C.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",18e5),this.api.agentStorage.registry.addLocal(Uw),this.suffix=this.api.ConfigReader.get("identityStorageSuffix")}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}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();this.isExpired(e,n)&&(e=this.clearSessionInfo(),this.api.Events.sessionChanged.trigger()),this.storeLastInteractionEventInformation(e,n),t.sessionId=e.sessionId}}sessionInfo(e=this.pendo.randomString(16)){let t=this.api.agentStorage.read(Uw,!1,this.suffix)||this.api.agentStorage.read(Uw);return t||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(Uw,t,undefined,!1,!0,this.suffix)),JSON.parse(t)}clearSessionInfo(){return this.api.agentStorage.clear(Uw),this.api.agentStorage.clear(Uw,!1,this.suffix),this.sessionInfo()}storeLastInteractionEventInformation(e,t){e.timestamp=t,this.api.agentStorage.write(Uw,JSON.stringify(e),undefined,!1,!0,this.suffix)}}var Bw=new Gw;function zw(e,t,s,d){return new(s=s||$t)(function(n,i){function r(e){try{a(d.next(e))}catch(t){i(t)}}function o(e){try{a(d["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((d=d.apply(e,t||[])).next())})}class Hw{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 zw(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.get(t);this.segmentsPayload(e.data)})}postLoad(t,n){return zw(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.postJSON(t,n);this.segmentsPayload(e.data)})}}var jw=new Hw;const Ww=["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"],qw=new RegExp(`(${Ww.join("|")})`,"i"),Jw=["facebook","twitter","x","linkedin","instagram","pinterest","tiktok","snapchat","twitch","reddit","quora","tumblr","flickr","discord","twitch","whatsapp","telegram","weibo","qq","line"],Vw=new RegExp(`(${Jw.join("|")})`,"i"),Kw=["youtube","vimeo","dailymotion","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"],$w=new RegExp(`(${Kw.join("|")})`,"i"),Zw=["amazon","ebay","walmart","etsy","shopify","shop","target","bestbuy","costco","temu","alibaba","aliexpress"],Yw=new RegExp(`(${Zw.join("|")})`,"i");const Xw=new RegExp(`(${["google performance max","microsoft audience network","facebook audience network"].join("|")})`,"i");function Qw(e,t){return"self"!==t&&"direct"!==t&&null!==t.match(e)}function e1({referrer:e,currentHost:t}){if(!e||""===e)return"direct";e=new Jn(e).hostname;let n="self";return n=e!==t?null==e?void 0:e.toLowerCase():n}const t1=new RegExp("^(.*cp.*|ppc|retargeting)$"),n1=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i"),i1=[[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})=>"cross-network"===t||e.match(Xw)],["Paid Search",({source:e,medium:t,gclid:n,_:i})=>n||"paid-search"===t||t.match(t1)&&i.contains(Ww,e)],["Paid Social",({source:e,medium:t,fbclid:n,_:i})=>n||"paid-social"===t||t.match(t1)&&i.contains(Jw,e)],["Paid Video",({medium:e,source:t,_:n})=>"paid-video"==e||e.match(t1)&&n.contains(Kw,t)],["Paid Shopping",({medium:e,source:t,referrer:n,_:i})=>"paid-shopping"==e||"shopping"==e||(Qw(Yw,n)||i.contains(Zw,t))&&e.match(t1)],["Display",({medium:e,_:t})=>t.contains(["display","cpm","banner","interstitial","expandable","programmatic"],e)],["Paid Other",({medium:e})=>"paid-other"==e||e.match(t1)],["Organic Search",({source:e,medium:t,referrer:n,_:i})=>"organic"===t&&i.contains(Ww,e)||!t&&Qw(qw,n)],["Organic Social",({source:e,medium:t,referrer:n,_:i})=>!t&&Qw(Vw,n)||"social"===t||i.contains(Jw,e)&&!t.match(t1)],["Organic Video",({medium:e,referrer:t})=>"video"===e||!e&&Qw($w,t)],["Organic Shopping",({medium:e,referrer:t})=>"organic-shopping"===e||!e&&Qw(Yw,t)],["Email",({source:e,medium:t})=>null!==t.match(n1)||null!==e.match(n1)||"newsletter"===t],["Affiliates",({medium:e})=>"affiliate"===e||"partner"===e],["SMS",({source:e,medium:t})=>"sms"===e||"sms"===t],["Push Notifications",({source:e,medium:t})=>t.endsWith("push")||0<=t.indexOf("mobile")||0<=t.indexOf("notification")||"firebase"===e],["Audio",({medium:e})=>"podcast"===e||"audio"===e],["Referral",({medium:e,referrer:t})=>"referral"===e||!!t&&"self"!==t&&"direct"!==t],["Other",({medium:e,source:t})=>!!e||!!t]],r1="utm",o1="enableFullUtmReferrer";class a1{constructor(){this.name="WebAnalytics"}initialize(e,t){this.pendo=e;var n=(this.api=t)["ConfigReader"],n=(n.addOption(o1,[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(r1),this.storeParameters(i,t.agentStorage),this.suffix=this.api.ConfigReader.get("identityStorageSuffix")}extractParameters(e,t){var n,i,r,o,a,s,d=new Jn(e).hostname,u=e1({referrer:t,currentHost:d}),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:u,utm:s,gclid:a,fbclid:e}),t&&this.api.ConfigReader.get(o1)?s.referrer=t:"self"===u?s.referrer=d:"direct"!==u&&(s.referrer=u),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(i1,e=>e[1](o));if(e)return e[0]}storeParameters(e,t){0<this.pendo._.size(e)&&t.write(r1,JSON.stringify(e),undefined,!1,!0,this.suffix)}loadParameters(e){e=e.read(r1,!1,this.suffix)||e.read(r1);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(r1),e.clear(r1,!1,this.suffix),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)}}var s1=new a1;const d1={children:[],props:{"class":"_pendo-step-container","data-layout":"tooltipBlank",id:"pendo-base"},type:"div"},u1={css:[],props:{scoped:"scoped",type:"text/css"},type:"style"},c1={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"},l1={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"},p1={children:[],props:{"class":"_pendo-text-paragraph",style:{}},type:"div"};function h1(e,t){return{content:t,props:{id:"text-"+e,"class":"_pendo-text-plain",style:{color:"gray",margin:0}},type:"p"}}function f1(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 g1=`
10
10
  <svg xmlns="http://www.w3.org/2000/svg"
11
11
  width="10" height="10" fill="none"