@pendo/agent 2.350.0 → 2.350.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,19 +1,19 @@
1
1
  /*
2
2
  @license https://agent.pendo.io/licenses
3
3
  */
4
- function loadAgent(B){let s;const d={createScriptURL:e=>e,createHTML:e=>e};function p(e){return s||(s=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",d):d),e.trustedTypesPolicy=s),s}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}},Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var H,o,z,j,W,q,V,e={exports:{}};function K(e){e?(q[0]=q[16]=q[1]=q[2]=q[3]=q[4]=q[5]=q[6]=q[7]=q[8]=q[9]=q[10]=q[11]=q[12]=q[13]=q[14]=q[15]=0,this.blocks=q):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=e,H="object"==typeof window?window:{},Se=!H.JS_SHA1_NO_COMMON_JS&&t.exports,o="0123456789abcdef".split(""),z=[-2147483648,8388608,32768,128],j=[24,16,8,0],W=["hex","array","digest","arrayBuffer"],q=[],V=function(t){return function(e){return new K(!0).update(e)[t]()}},K.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===H.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]<<j[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<j[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<j[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<j[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<j[3&n++],a[n>>2]|=(128|t>>12&63)<<j[3&n++]),a[n>>2]|=(128|t>>6&63)<<j[3&n++]),a[n>>2]|=(128|63&t)<<j[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}},K.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=z[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())},K.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},K.prototype.toString=K.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]},K.prototype.array=K.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]},K.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},n=function(){var t=V("hex");t.create=function(){return new K},t.update=function(e){return t.create().update(e)};for(var e=0;e<W.length;++e){var n=W[e];t[n]=V(n)}return t}(),Se?t.exports=n:H.sha1=n;var $=l(e.exports);function J(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y(e){return c.uint8ToBase64($.create().update(e).digest())}var X={};function Z(n,i=[],r=[],o=!0){if(n){if(0<r.length){var a=Y(n);for(let e=0,t=r.length;e<t;++e)if(r[e]===a)return!0}if(0<i.length)for(let t=0,e=i.length;t<e;++t){let e=i[t];if("object"==typeof e&&e.value&&(e=e.regexp?(e.value.startsWith("/")&&e.value.endsWith("/")&&(e.value=e.value.substring(1,e.value.length-1)),new RegExp(e.value)):e.value),(e="string"==typeof(e=o&&e instanceof RegExp?(s=e,u=d=void 0,d=s.ignoreCase?"i":"",u="re:"+d+":"+s.source,X[u]||(X[u]=new RegExp("^(?:"+s.source+")(?::\\d+)?$",d)),X[u]):e)?new RegExp("^"+J(e)+"$"):e)instanceof RegExp&&e.test(n))return!0}var s,d,u}return!1}function Q(e){return String(e||"").replace(/^[a-z][a-z0-9+.-]*:\/\//i,"")}function ee(e){e=(e||"").split(":")[0].toLowerCase();if(!e||/^[\d.]+$/.test(e)||0<=e.indexOf(":"))return[];for(var t=e.split("."),n=[],i=0;i<=t.length-2;i++)n.push(t.slice(i).join("."));return n}var E,te="stagingServerHashes",ne="stagingDomains",ie={};function re(e){return e.loadAsModule}function oe(e){return"staging"===e.environmentName}function ae(e){return"extension"===e.installType}var se=/^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$/;function de(e){return se.test(e.src)}function ue(e=[]){e=function(t=[]){for(let e=0;e<t.length;e++)if(de(t[e]))return t[e]}(e);if(e)return e.src.replace(/\.js$/,"-staging.js")}function ce(e,t,n){e=ue(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function le(e,t){return!!(e=e||ie)&&(!!oe(e)||Z((t=t||window.location).host,e.stagingServers,e[te],!1)||function(e,t=[]){if(t.length)for(var n=ee(e),i=0;i<n.length;i++)if(0<=t.indexOf(Y(n[i])))return!0;return!1}(t.host,e[ne]))}var pe=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function he(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function fe(e){if(!e._q)for(var t=pe,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){he(t,e,arguments)}}(t[n],e)}function ge(e,t,n){if(!ae(i=e)&&!oe(i)&&le(i)){i=ce(e,!0,n);if(i)return fe(t),ve(i,t,e.pendoGlobalKey),!0}var i;return!1}function me(e,t,n){if(r=n,!ae(i=e)&&!i.unminified&&r){i=ce(e,!1,n);if(i)return fe(t),ve(i,t,e.pendoGlobalKey),!0}var i,r;return!1}function ve(e,t,n){var i=document.createElement("script"),t=(i["async"]=!0,i.src=p(t).createScriptURL(e),n&&i.setAttribute("data-pendo-global-key",n),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(i,t):(document.head||document.body).appendChild(i)}function ye(e){ie=e}function be(){return void 0===B?{}:B}function we(e){return ie[e]}var Se="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};Ee(Se.setTimeout,Se);function Ee(e,t){return"function"==typeof e.bind?e.bind(t):e}var 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 Ee(e[t],e)}(Se);Ie(Se.clearTimeout,Se);function Ie(e,t){return"function"==typeof e.bind?e.bind(t):e}var _e,Gt=function(e){var t="clearTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return Ie(e[t],e)}(Se),_=l(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Bt&&Bt.global===Bt&&Bt||Function("return this")()||{},i=Array.prototype,D=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,U=i.push,d=i.slice,l=D.toString,G=D.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),B=Array.isArray,H=Object.keys,z=Object.create,j=t&&ArrayBuffer.isView,W=isNaN,q=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),K=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],$=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 J(e){return void 0===e}function Y(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var X=r("String"),Z=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 Z(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<=$}}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=K.length,i=e.constructor,r=p(i)&&i.prototype||D,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=K[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(H)return H(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return V&&fe(e,n),n}function ge(e,t){var n=y(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function c(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=l.call(e);if(r!==l.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return F.valueOf.call(e)===F.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 V&&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 Ee(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Ie(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function _e(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 Ce=_e(u),s=_e(y),Te=_e(u,!0);function xe(e){var t;return o(e)?z?z(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function Re(e){return f(e)?e:[e]}function S(e){return b.toPath(e)}function Ae(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function ke(e,t,n){e=Ae(e,S(t));return J(e)?n:e}function Oe(e){return e}function E(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return Ae(e,t)}}function I(r,o,e){if(void 0===o)return r;switch(null==e?3:e){case 1:return function(e){return r.call(o,e)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return function(){return r.apply(o,arguments)}}function Me(e,t,n){return null==e?Oe:p(e)?I(e,t,n):(o(e)&&!f(e)?E:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function _(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Pe(){}function De(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=Re,b.iteratee=Le;var C=Date.now||function(){return(new Date).getTime()};function Fe(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=Fe(t),t=Fe(Ee(t)),Ge=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Be=/(.)^/,He={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ze=/\\|'|\r|\n|\u2028|\u2029/g;function je(e){return"\\"+He[e]}var We=/^\s*(\w|\$)+\s*$/;var qe=0;function Ve(e,t,n,i,r){return i instanceof t?(i=xe(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var T=c(function(r,o){var a=T.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),i=0;i<t;i++)n[i]=o[i]===a?arguments[e++]:o[i];for(;e<arguments.length;)n.push(arguments[e++]);return Ve(r,s,this,this,n)};return s}),Ke=(T.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return Ve(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),x=ue(v);function R(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(x(s)&&(f(s)||ae(s)))if(1<t)R(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 $e=c(function(e,t){var n=(t=R(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Ke(e[i],e)}return e});var Je=c(function(e,t,n){return Ut(function(){return e.apply(null,n)},t)}),Ye=T(Je,b,1);function Xe(e){return function(){return!e.apply(this,arguments)}}function Ze(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=T(Ze,2);function et(e,t,n){t=_(t,n);for(var i,r=y(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function tt(o){return function(e,t,n){t=_(t,n);for(var i=v(e),r=0<o?0:i-1;0<=r&&r<i;r+=o)if(t(e[r],r,e))return r;return-1}}var nt=tt(1),it=tt(-1);function rt(e,t,n,i){for(var r=(n=_(n,i,1))(t),o=0,a=v(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function ot(o,a,s){return function(e,t,n){var i=0,r=v(e);if("number"==typeof n)0<o?i=0<=n?n:Math.max(n+r,i):r=0<=n?Math.min(n+1,r):n+r+1;else if(s&&n&&r)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(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=(x(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function A(e,t,n){if(t=I(t,n),x(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 k(e,t,n){t=_(t,n);for(var i=!x(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=I(t,i,4),s=n,d=!x(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=_(i,t),A(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=_(t,n);for(var i=!x(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=_(t,n);for(var i=!x(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 x(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]),k(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Ae(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return k(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=x(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&o<n&&(o=n);else i=_(i,t),A(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?d.call(e):X(e)?e.match(vt):x(e)?k(e,Oe):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=x(e)?e:w(e))[De(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=De(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function M(o,t){return function(n,i,e){var r=t?[[],[]]:{};return i=_(i,e),A(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var wt=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),St=M(function(e,t,n){e[n]=t}),Et=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),It=M(function(e,t,n){e[n?0:1].push(t)},!0);function _t(e,t,n){return t in n}var Ct=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=I(i,t[1])),t=u(e)):(i=_t,t=R(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}),Tt=c(function(e,n){var t,i=n[0];return p(i)?(i=Xe(i),1<n.length&&(t=n[1])):(n=k(R(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Ct(e,i,t)});function xt(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Rt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:xt(e,e.length-t)}function L(e,t,n){return d.call(e,null==t||n?1:t)}var At=c(function(e,t){return t=R(t,!0,!0),O(e,function(e){return!N(t,e)})}),kt=c(function(e,t){return At(e,t)});function Ot(e,t,n,i){Y(t)||(i=n,n=t,t=!1),null!=n&&(n=_(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var 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(R(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Pt(e,t){return e._chain?b(t).chain():t}function Dt(n){return A(Ie(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return U.apply(e,arguments),Pt(this,t.apply(b,e))}}),b}A(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Pt(this,e)}}),A(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Pt(this,e=null!=e?t.apply(e,arguments):e)}});var P=Dt({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:J,isBoolean:Y,isElement:function(e){return!(!e||1!==e.nodeType)},isString:X,isNumber:Z,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)||X(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:B,isWeakSet:a,keys:y,allKeys: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:Ee,functions:Ie,methods:Ie,extend:Ce,extendOwn:s,assign:s,defaults:Te,create:function(e,t){return e=xe(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:ke,has:function(e,t){for(var n=(t=S(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=_(t,n);for(var i=y(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Oe,constant:de,noop:Pe,toPath:Re,property:Ne,propertyOf:function(t){return null==t?Pe:function(e){return ke(t,e)}},matcher:E,matches:E,times:function(e,t,n){var i=Array(Math.max(0,e));t=I(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:De,now:C,escape:Ue,unescape:t,templateSettings:Ge,template:function(o,e,t){e=Te({},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(ze,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:T,bind:Ke,bindAll:$e,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:Je,defer:Ye,throttle:function(n,i,r){var o,a,s,d,u=0,c=(r=r||{},function(){u=!1===r.leading?0:C(),o=null,d=n.apply(a,s),o||(a=s=null)}),e=function(){var e=C(),t=(u||!1!==r.leading||(u=e),i-(e-u));return a=this,s=arguments,t<=0||i<t?(o&&(Gt(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(){Gt(o),u=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,d,u=function(){var e=C()-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=C(),r||(r=Ut(u,n),i&&(s=t.apply(d,a))),s});return e.cancel=function(){Gt(r),r=a=d=null},e},wrap:function(e,t){return T(t,e)},negate:Xe,compose:function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:Ze,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,E(t))},each:A,forEach:A,map:k,collect:k,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Xe(_(t)),n)},every:pt,all:pt,some:ht,any:ht,contains:N,includes:N,include:N,invoke:ft,pluck:gt,where:function(e,t){return O(e,E(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=x(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&n<o&&(o=n);else i=_(i,t),A(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=_(i,t),gt(k(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:wt,indexBy:St,countBy:Et,partition:It,toArray:yt,size:function(e){return null==e?0:(x(e)?e:y(e)).length},pick:Ct,omit:Tt,first:Rt,head:Rt,take:Rt,initial:xt,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 R(e,t,!1)},without:kt,uniq:Ot,unique:Ot,union:Nt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=v(e);i<r;i++){var o=e[i];if(!N(t,o)){for(var a=1;a<n&&N(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:At,unzip:Mt,transpose:Mt,zip:Lt,object:function(e,t){for(var n={},i=0,r=v(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n=n||(t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(d.call(e,i,i+=t));return n},mixin:Dt,"default":b}),Ft=P.toPath;return P.mixin({toPath:function(e){return P.isString(e)?e.split("."):Ft(e)}}),P._=P}());function I(e){return!(null==e)}function Ce(e){return _.isFunction(e)||_.isRegExp(e)?e:_.isArray(e)?_.map(e,Ce):_.isObject(e)?_.reduce(e,function(e,t,n){return e[n]=Ce(t),e},{}):e}function Te(){var e=window.pendo_options;if("[object Object]"===Object.prototype.toString.call(e))return e}var C=function(){var i=_.all,r=_.each,o=_.filter,a=_.first,s=_.find,n=_.map,d=_.pluck,u="snippet",c="pendoconfig",l="global",p="default";const h={};function e(e,t=[c],n,i,r=[]){var o;e&&!h[e]&&(o={name:e,aliases:r=_.isArray(r)?r:[],defaultValue:n,supportedSources:t},null!=i&&(o.useAnySource=i),h[e]=o,0<r.length)&&_.each(r,function(e){h[e]===undefined&&(h[e]=o)})}e("additionalPublicAppIds",[c,u],undefined,undefined,["additionalApiKeys"]),e("allowedOriginServers"),e("allowedOriginServerHashes"),e("enforceAllowedOriginServers",[u,c],!1),e("allowMixedApplicationFrames",[u,c],!0),e("allowMixedApiKeyFrames",[u,c],!0),e("annotateUrl",[u]),e("publicAppId",[c,u],undefined,undefined,["apiKey"]),e("assetHost",[u,c]),e("autoFrameInstall",[u,c],!1),e("blockWebSDKMetadata",[c],!1,undefined,["blockAgentMetadata"]),e("contentHost",[u,c]),e("cookieDomain",[u,c]),e("dataHost",[u,c]),e("disableAutoInitialize"),e("initializeWhenVisible",[c],!1),e("disableCookies",[u,c]),e("disablePendo",[u,c],!1),e("disablePersistence",[u,c]),e("enableSignedMetadata",[c],!1),e("forceAnonymous",[u,c],!1),e("forcedLeader",[u,c],!1),e("frameIdentitySync",[u,c],!1),e("frameIdentityTopDownOnly",[u,c],!0),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],!0),e("preferMutationObserver",[u,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[u,c],!0),e("promotedWebSDKMetadataConfigurations",[c],undefined,undefined,["promotedAgentMetadataConfigurations"]),e("queryStringWhitelist",[u]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[u]),e("selfHosted"),e("selfHostedWebSDKUrl",[u,c],undefined,undefined,["selfHostedAgentUrl"]),e("sendEventsWithPostOnly",[u,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[c,u],[],!0),e("analytics.excludeEvents",[u,c],[]),e("analytics.localStorageUnload",[u,c],!1),e("enableDebugEvents",[u,c]),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[u,c],!0),e("excludeAllText",[c,u],!1,!0),e("excludeNonGuideAnalytics",[u,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptPreventDefault",[u,c],!0),e("interceptStopPropagation",[u,c],!0),e("syntheticClicks.elementRemoval",[u,c],!1,undefined,["interceptElementRemoval"]),e("syntheticClicks.targetChanged",[u,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[u,c]),e("cacheGuides",[u,c],!1),e("cacheGuidesTimeout",[c],6e5),e("disableDesigner",[c,u],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[u,c],!1),e("disableGuidePseudoStyles",[u,c],!1),e("disableImportantStyleAttributes",[u,c],!1),e("useInertForBackdrop",[u,c],!1),e("disablePrefetch",[u,c]),e("doNotTrackGuides",[u,c]),e("enableDesignerKeyboardShortcut",[u]),e("enableGuideTimeout",[c,u],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,u],1e4),e("guideValidation",[u,c],!1),e("guides.attachPoint",[u]),e("guides.delay",[u],!1,undefined,["delayGuides"]),e("guides.disabled",[u],!1,undefined,["disableGuides"]),e("guides.ejectOnTimeout",[u,c],!1),e("guides.globalScripts",[u,c],[]),e("guides.timeout",[u],undefined,undefined,["guideTimeout"]),e("guides.tooltip.arrowSize",[u]),e("inlineStyleNonce",[u]),e("leaderApplication",[u,c],[]),e("leaderKey",[u,c],[]),e("preventCodeInjection",[c,u,l],!1,!0),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("secureDesignerConnect",[u,c],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("webSDKDebuggerPluginLoader",[c],undefined,undefined,["agentDebuggerPluginLoader"]),e("allowPartnerAnalyticsForwarding",[u],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerWebSDKPluginsLoader",[c,u],undefined,undefined,["designerAgentPluginsLoader"]),e("guideContentLoader",[c]),e("trainingPartner"),e("oemAccountId",[u]),e("whiteLabelSettings",[c]),e("errorClickLogging",[c],!1),e("enableAllEmbeddedGuideEvents",[c],!1),e("formValidation",[c],!1),e("performanceMetricsEnabled",[u,c],!0),e("performanceMetricsSampleRate",[u,c],10);var f={};function g(e){return h[e]||{name:e}}function m(t,n){if(n){const i=n();let e=_.get(i.lookup,(n=t,_.get(n,"key")||_.get(n,"name")));return I(e)||(n=_.find(t.aliases||[],function(e){e=_.get(i.lookup,e);if(I(e))return e}))&&(e=_.get(i.lookup,n)),I(e)?e:undefined}}function v(e,t){var n=m(e,f[t]);return new w(e.name,n,t)}function y(e,t){return t=t||_.get(e,"supportedSources",[u,c,l]),o(n(t,_.partial(v,e)),function(e){return I(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||_.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&I(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:_e||Te(),name:u}},f[c]=function(){return{lookup:ie,name:c}},f[l]=function(){return{lookup:E,name:l}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get(e,t){return b(e,t).value},getLocalConfig(e,t){return arguments.length?b(e,t,[u]).value:Ce(_e)},getHostedConfig(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig(e){_e=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()}}}();const xe="extension",Re="native";function Ae(){return C.get("installType")||be().installType||Re}function ke(){return Ae()===xe}function Oe(e){return/native/.test(e)}const Ne=e=>{e=_.get(window,e);return e&&Oe(e)};function Me(e,t){return e=e||10,(t=!isNaN(Pe)&&(!t||Pe<t))&&Le<e}const Le=function(e){let t=De((/msie (\d+)/.exec(Fe(e))||[])[1]);isNaN(t)&&(t=De((/trident\/.*; rv:(\d+)/.exec(Fe(e))||[])[1]));return t}(Ue()),Pe=function(e,t){let n=De((/trident\/(\d+)/.exec(Fe(e))||[])[1]);isNaN(n)&&7==t&&(n=3);return n}(Ue(),Le);function De(e){return parseInt(e,10)}function Fe(e){return _.isString(e)?e.toLowerCase():e}function Ue(){return(window.navigator||{}).userAgent}const Ge={},Be=De((/android (\d+)/.exec(Fe(Ue()))||[])[1]),He=/Boxee/i.test(Ue()),ze=window.document||{},je=ze.documentMode;let We;var qe,Ve=/^(Moz|webkit|O|ms)(?=[A-Z])/,t=ze.body&&ze.body.style;let Ke=!1,$e=!1;if(t){for(const M_ in t)if(qe=Ve.exec(M_)){We=(We=qe[0]).substr(0,1).toUpperCase()+We.substr(1);break}We=We||"WebkitOpacity"in t&&"webkit",Ke=!!("transition"in t||We+"Transition"in t),$e=!!("animation"in t||We+"Animation"in t),!Be||Ke&&$e||(Ke=_.isString(ze.body.style.webkitTransition),$e=_.isString(ze.body.style.webkitAnimation))}var n=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id;const Je=_.memoize(function Je(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&_.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&_.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&_.get(n,"pushState.writable",!0)&&_.get(n,"replaceState.writable",!0),i=!(Be<4);return!(!e||t||!n||!i||He||ke())});const Ye=/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i,Xe=/Android/i,Ze=/Mobile/i,Qe=/Android [\d.]+; K\)|tablet|sm-t|nexus (7|9|10)|xoom|; kf|; t1|lenovo tab/i;const et={supportsHistoryApi:Je,supportsHashChange:function(){var e="onhashchange"in window,t=!je||7<je;return!(!e||!t||ke())},supportsPopover:function(){return!!window.HTMLElement&&Oe(window.HTMLElement.prototype.showPopover)},hasEvent(e){var t;return("input"!=e||9!=Le)&&(_.isUndefined(Ge[e])&&(t=ze.createElement("div"),Ge[e]="on"+e in t),Ge[e])},vendorPrefix:We,transitions:Ke,animations:$e,android:Be,msie:Le,msieDocumentMode:je,safari:0<=(e=Ue()).indexOf("Safari")&&([e=Ue()]=[e],!(0<=e.indexOf("Chrome")||0<=e.indexOf("Chromium"))),sri:"integrity"in document.createElement("script"),addEventListener:_.isFunction(window.addEventListener),MutationObserver:Oe(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:_.memoize(function(){const e=Ue();return Ye.test(e)&&!(Xe.test(e)&&!Ze.test(e)&&Qe.test(e))}),isChromeExtension:n};var tt=function(){return!isNaN(Le)&&11!=Le&&"CSS1Compat"!==document.compatMode},nt=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,Le<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+E.TOOLTIP_ARROW_SIZE),e.arrow.top=i-E.TOOLTIP_ARROW_SIZE,10==Le?e.arrow.top--:Le<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=10+E.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*E.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-E.TOOLTIP_ARROW_SIZE),e.arrow.border.top=e.arrow.top+n,e.arrow.border.left=e.arrow.left):("left"==e.arrow.hbias?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left-1):"right"==e.arrow.hbias&&(e.left=Math.max(0,t.left-r-E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left+1),e.top=t.top+t.height/2-i/2,e.arrow.top=i/2-E.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e};let it="",rt="",ot="",at="",st="",dt="",ut="",ct="2.350.0_",lt="2.350.0",pt="xhr";const ht=function(){return tt()?ct+"+quirksmode":ct};var ft=/^\s+|\s+$/g;function gt(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 mt=(mt=String.prototype.trim)||function(){return this.replace(ft,"")},t={exports:{}};!function(){var Z=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===Z?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,D,n=this.input;switch(this.d){case 0:for(t=0,D=n.length;t<D;){var F,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===D,o=Z,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),F=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&F,a[s++]=F>>>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,H,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,T,x,R,W=h,q=f,A=new(ee?Uint32Array:Array)(W+q),k=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<W;N++)A[_++]=m[N];for(N=0;N<q;N++)A[_++]=v[N];if(!ee)for(N=0,T=O.length;N<T;++N)O[N]=0;for(N=x=0,T=A.length;N<T;N+=_){for(_=1;N+_<T&&A[N+_]===A[N];++_);if(C=_,0===A[N])if(C<3)for(;0<C--;)O[k[x++]=0]++;else for(;0<C;)(R=C-3<(R=C<138?C:138)&&R<C?C-3:R)<=10?(k[x++]=17,k[x++]=R-3,O[17]++):(k[x++]=18,k[x++]=R-11,O[18]++),C-=R;else if(k[x++]=A[N],O[A[N]]++,--C<3)for(;0<C--;)k[x++]=A[N],O[A[N]]++;else for(;0<C;)C-3<(R=C<6?C:6)&&R<C&&(R=C-3),k[x++]=16,k[x++]=R-3,O[16]++,C-=R}for(e=ee?k.subarray(0,x):k.slice(0,x),y=oe(O,7),S=0;S<19;S++)j[S]=y[z[S]];for(g=19;4<g&&0===j[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(j[S],3,Q);for(S=0,H=e.length;S<H;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],K=I[0],$=I[1],J=L[0],Y=L[1],P=0,X=p.length;P<X;++P)if(M=p[P],E.b(K[M],$[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b(J[V],Y[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,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]===Z&&(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,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,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(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call(t.exports);var vt={Deflate:l(t.exports).Zlib.Deflate},yt="base64url";function bt(e,t){t=t||yt;e=gt("string"==typeof e?e:JSON.stringify(e)),e=new vt.Deflate(e).compress();return t===yt?c.uint8ToBase64(e):e}function wt(e,t,n=window){var i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}e={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(e.exports);var St={CRC32:l(e.exports).Zlib.CRC32},Et=function(e,n){var i;return 200<=(n=n||0)?e:_.isArray(e)?_.map(e,function(e){return Et(e,n+1)}):!_.isObject(e)||_.isDate(e)||_.isRegExp(e)||_.isElement(e)?_.isString(e)?_.escape(e):e:(i={},_.each(e,function(e,t){i[t]=Et(e,n+1)}),i)},It=function(e){e=gt(e);return c.uint8ToBase64(e)},_t=function(e){if(void 0!==e)return e=gt(e=_.isString(e)?e:JSON.stringify(e)),St.CRC32.calc(e,0,e.length)};function Ct(e){return e[Math.floor(Math.random()*e.length)]}function Tt(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=Ct(i);return n}var xt=function(e,t,n){return!(!I(e)||!I(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function S(){return(new Date).getTime()}function Rt(){return"undefined"!=typeof $A&&_.isFunction($A.get)&&_.isString($A.get("$Browser.formFactor"))}function At(e,t=window){return wt(_,e,t)}n=window;var kt=_.isFunction(n.isFinite)?n.isFinite:n.Number&&_.isFunction(n.Number.isFinite)?n.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function Ot(e){return"number"==typeof e&&kt(e)&&Math.floor(e)===e}function Nt(e,t,n,i){(t=t||{}).maxRetries=Ot(t.maxRetries)?t.maxRetries:10,t.delay=Ot(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,Nt(e,t,o,a)},t.delay):(a||function(){})()}var Mt=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function Lt(e){return _.isObject(e)&&_.isFunction(e.then)}function Pt(e){return e&&e.hasOwnProperty("wrappedJSObject")?e.wrappedJSObject:e}var Dt,Ft=_.isFunction(Se.decodeURIComponent)?Se.decodeURIComponent:_.identity,Ht=_.isFunction(Se.encodeURIComponent)?Se.encodeURIComponent:_.identity;class zt{constructor(){this.listeners={}}addEventListener(e,t){let n=this.listeners[e];n||(n=[],this.listeners[e]=n),_.findIndex(n,e=>t===e)<0&&n.push(t)}removeEventListener(e,t){var n,i=this.listeners[e];i&&0<=(n=_.findIndex(i,e=>t===e))&&(i.splice(n,1),i.length||delete this.listeners[e])}dispatchEvent(t){var e=this.listeners[t.type];e&&_.each(e,e=>{e(t)})}}class jt{constructor(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}toString(){let e=this.message;return this.error&&e!==this.error.message&&(e=e+":"+this.error.message),this.attributes&&(e+=": "+_.map(this.attributes,(e,t)=>t+"="+e)),e}hashCode(){return this.toString()}}(t=Dt=Dt||{}).Debug="debug",t.Info="info",t.Warn="warn",t.Error="error",t.Critical="critical";class Wt extends zt{write(e,t,n){this.dispatchEvent(new jt(t,e,n))}writeError(e,t,n){let i,r;_.isString(e)?(i=e,r={message:i}):(r=e,i=r.message),n&&n.error&&(r=n.error,delete n.error);e=new jt(t,i,n);e.error=r,this.dispatchEvent(e)}debug(e,t){this.write(e,Dt.Debug,t)}info(e,t){this.write(e,Dt.Info,t)}warn(e,t){this.writeError(e,Dt.Warn,t)}error(e,t){this.writeError(e,Dt.Error,t)}critical(e,t){this.writeError(e,Dt.Critical,t)}}const T=new Wt,qt="cookieConsentCollection",Vt="analytics",Kt="guideAnalytics",$t="textCollection",Jt=["none","whitelist","all"],Yt={agentResponse:"agent_response",clicks:"click",fieldChanges:"change",focus:"focus",formSubmits:"submit",identify:"identify",meta:"meta",objectMetadata:"objectMetadata",pageLoads:"load",prompt:"prompt",trackEvents:"track",userReaction:"user_reaction"},Xt=["guideActivity","guideAdvanced","guideDismissed","guideNotSeen","guideSeen","guideSnoozeCanceled","guideSnoozed","guideTimeout","pollResponse"];let Zt=null;function Qt(e){return _.isString(e)?[e]:_.isArray(e)?e:[]}function en(e){var i,{visitorIdentity:e={},analytics:t={},guides:n={},sessionReplay:r={}}=e||{},o=t.eventCollection||{},t=!0===t.enabled;return{identity:!0===e.trackVisitors,guides:!0===n.enabled,replay:!0===r.enabled,utm:t&&!0===o.utmParameters,analytics:t?(i=o,_.reduce(Yt,function(e,t,n){return!0===i[n]&&e.push(t),e},[])):[],guideAnalytics:t&&!0===o.guideServing?Xt.slice():[],textCollection:t&&(e=o.textCollectionMode,_.contains(Jt,e))?e:Jt[0]}}function tn(e,t){return{identity:e.identity||t.identity,guides:e.guides||t.guides,replay:e.replay||t.replay,utm:e.utm||t.utm,[Vt]:_.union(e[Vt],t[Vt]),[Kt]:_.union(e[Kt],t[Kt]),[$t]:(e=e[$t],t=t[$t],Jt.indexOf(t)>Jt.indexOf(e)?t:e)}}function nn(e){const n=C.get(qt)||{};var t,e=Qt(e);return t=n,_.each(e,function(e){_.isUndefined(t[e])&&T.warn('Consent tier "'+e+'" is not present in '+qt+".")}),_.isEmpty(n)?Zt={}:Zt=_.reduce(e,function(e,t){t=n[t];return t?tn(e,en(t)):e},{identity:!1,guides:!1,replay:!1,utm:!1,[Vt]:[],[Kt]:[],[$t]:Jt[0]}),rn()}function rn(){return Zt?_.extend({},Zt):null}function on(e){return!Zt||_.isUndefined(Zt[e])||!0===Zt[e]}function an(){return!on("identity")}function sn(e,t){return!Zt||(t=Zt[t],!!_.isUndefined(t))||_.contains(t,e)}function dn(e){return!an()&&sn(e,Vt)}const un=function(){var e=C.get("storage.allowKeys")||"*";return _.isArray(e)?_.indexBy(e):e};function cn(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function ln(n){_.forEach(_.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function pn(e){var t=_.noop,t={getItem:()=>null,setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:cn(n,n.getItem,null),setItem:cn(n,n.setItem),removeItem:cn(n,n.removeItem),clearPendo:_.partial(ln,n)}:t}catch(i){return t}}var hn=pn(function(){return window.localStorage}),fn=pn(function(){return window.sessionStorage});function gn(e){try{return JSON.parse(e)}catch(t){return null}}var mn,vn={},yn=!0,bn=function(){return C.get("localStorageOnly")},wn=function(){return!!C.get("disableCookies")||an()};function Sn(e){yn=e}var En=function(e){return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(document.cookie))?Ft(e[2]):null},In=function(e,t,n,i){var r,o,a;!yn||C.get("preventCookieRefresh")&&En(e)===t||(a=An(n),r=new Date,o=(i="https:"===document.location.protocol||i)?"None":"Strict",r.setTime(r.getTime()+a),a=e+"="+Ht(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+(i?";secure":"")+"; SameSite="+o,mn&&(a+=";domain="+mn),document.cookie=a)};function _n(e){var t="=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT";mn&&(document.cookie=e+t+";domain="+mn),document.cookie=e+t}var Cn=function(e,t){return`_pendo_${e}.`+(t||E.apiKey)},Tn=function(e,t){return En(Cn(e,t))};const xn=864e5,Rn=100*xn,An=(e=Rn)=>{var t=C.get("maxCookieTTLDays"),t=t<Infinity?t*xn:Infinity;return Math.min(e,t)};var kn=function(e,t,n,i,r){n=n||Rn,In(Cn(e,r),t,n,i)};class On{constructor(){this.keys={}}addLocal(e,t){this._add(e,"local",t)}addSession(e,t){this._add(e,"session",t)}hasLocal(e){return this._has(e,"local")}hasSession(e){return this._has(e,"session")}getKeyConfig(e,t,n){return I(n)?n:this.keys[e]?this.keys[e][t]:undefined}getKeySerializer(e){return this.keys[e]?this.keys[e].serializer:_.identity}getKeyDeserializer(e){return this.keys[e]?this.keys[e].deserializer:_.identity}_add(e,t,n={}){n=_.extend({type:t,duration:null,isPlain:!1,isSecure:!1,localStorageOnly:!1,cookieSuffix:undefined,serializer:_.identity,deserializer:_.identity},n),this.keys[e]||(this.keys[e]=n)}_has(e,t){return!!this.keys[e]&&this.keys[e].type===t}}var Nn,Mn,Ln,Pn,m,x=function(){const d=new On;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=un())||n[t])return d[r](e)||T.warn(`storage key ${e} is not registered`),i.apply(this,arguments);T.debug(`writing storage key ${e} is not allowed`)}}function u(e){return e||bn()||!mn}var c=_.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.getItem(n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}});function l(e){e.cache&&(e.cache={})}function p(e){if(null===e)return null;try{var t=JSON.parse(e);return null!==t&&"object"==typeof t&&"ttl"in t&&"value"in t?"number"==typeof t.ttl&&isFinite(t.ttl)&&0<t.ttl&&t.ttl<(new Date).getTime()?null:String(t.value||t):e}catch(n){return e}}function h(e,t){return null===t?e:(t=(new Date).getTime()+An(t),JSON.stringify({ttl:t,value:e}))}function f(e,t,n){t=d.getKeyConfig(e,"isPlain",t),n=d.getKeyConfig(e,"cookieSuffix",n);var i=d.getKeyConfig(e,"localStorageOnly"),t=t?e:Cn(e,n);if(wn()&&delete vn[t],u(i)){if(c("localStorage"))try{return void localStorage.removeItem(t)}catch(r){}}else try{return void _n(t)}catch(r){}delete vn[t]}const t=_.extend({},fn),n=(t.setItem=e(t.setItem,"hasSession"),_.extend({},hn));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){t=d.getKeyConfig(e,"isPlain",t),n=d.getKeyConfig(e,"cookieSuffix",n);var i=d.getKeyConfig(e,"localStorageOnly"),r=t?e:Cn(e,n);let o;var a=d.getKeyDeserializer(e);if(wn())return a(p(vn[r])||null);if(u(i)){if(c("localStorage"))try{return null===(o=p(localStorage.getItem(r)))&&f(e,t,n),a(o)}catch(s){l(c)}}else try{if(null!==(o=En(r)))return a(o)}catch(s){}return null===(o=p(vn[r]||null))&&delete vn[r],a(o)},write:e(function(e,t,n,i,r,o){n=d.getKeyConfig(e,"duration",n),i=d.getKeyConfig(e,"isPlain",i),r=d.getKeyConfig(e,"isSecure",r),o=d.getKeyConfig(e,"cookieSuffix",o);var a=d.getKeyConfig(e,"localStorageOnly"),e=(t=d.getKeySerializer(e)(t),i?e:Cn(e,o));if(l(c),wn())return vn[e]=h(t,n),!0;if(u(a)){if(c("localStorage"))try{return localStorage.setItem(e,h(t,n)),!0}catch(s){}}else try{return i||(n=n||Rn),In(e,t,n,r),!0}catch(s){}return vn[e]=h(t,n),!1},"hasLocal"),clear:f,clearAll:function(){_.each(d.keys,(e,t)=>{"local"===e.type&&f(t)})},registry:d,getLocal:()=>n,getSession:()=>t}}(),Dn=(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(n=Se.Promise)&&/native/.test(n)?n:e()),t=(Mn=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},Ln=function(n,i){var r=Nn.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===Pn?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},Pn=1,(Nn={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,_.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(Pn,e)},a=function(e){t(2,e)},s=function(e,t){e=Ln(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},d=function(e){var t=Mn();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=Mn();return{resolve:e(u),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},Nn);function Fn(e){var n,i=m.defer(),r=_.isArray(e)?[]:{},o=_.size(e);return o?(n=!1,_.each(e,function(e,t){m.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):m.resolve(e)}!ke()&&et.isMinimumIEVersion(11)?m={all:function(e){return _.isArray(e)?Dn.all.apply(Dn,arguments):Fn(e)},reject:function(){return Dn.reject.apply(Dn,arguments)},resolve:function(){return Dn.resolve.apply(Dn,arguments)},defer:function(){var n={};return n.promise=new Dn(function(e,t){n.resolve=e,n.reject=t}),n}}:((m=t).all=Fn,m.reject=function(e){var t=m.defer();return t.reject(e),t.promise},m.resolve=function(e){var t=m.defer();return t.resolve(e),t.promise});const Un=x.getSession(),Gn="pendo_tabId",Bn="pendo_parentTabId";Hn=window,n=_.partial,zn=_.extend,jn=_.omit,Wn={data:{},getItem(e){return Wn.data[e]},setItem(e,t){Wn.data[e]=t},removeItem(e){Wn.data[e]=null,delete Wn.data[e]}},qn=n(Yn,Gn,Xn),Vn=n(Yn,"pendo_frameId",Wn);var Hn,zn,jn,Wn,qn,Vn,Kn={addTracerIds(e){return jn(zn(e,{parentTabId:$n(Bn,Xn),tabId:qn(),frameId:Vn()}),function(e){return e===undefined})},setParentTabId:function(e){Jn(Bn,e,Xn)},newTabId:function(){var e=Tt(16);return Jn(Gn,e,Xn),e},getTabId:qn,getFrameId:Vn,tabIdChanged:function(t){var e;if(et.addEventListener)return Hn.addEventListener("storage",e=function(e){e.key===Gn&&(Wn.removeItem(Gn),t())}),function(){Hn.removeEventListener("storage",e)}}};function $n(e,t){return(_.isFunction(t)?t():t).getItem(e)}function Jn(e,t,n){(_.isFunction(n)?n():n).setItem(e,t)}function Yn(e,t){var n=$n(e,t);return n||Jn(e,n=Tt(16),t),n}function Xn(){return n=Wn,i=Un,{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 Zn(){var i=this._handlers={};return this.addEventListener=function(){this.on.apply(this,arguments)},this.removeEventListener=function(){this.off.apply(this,arguments)},this.on=function(e,t){var n;return(_.isString(e)||_.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),_.indexOf(n,t)<0)&&n.push(t),this},this.one=function(e,t){var n=this,i=function(){n.off(e,i),t.apply(this,arguments)};return this.on(e,i)},this.once=this.one,this.off=function(e,t){var n,e=i[e];return _.isFunction(t)?(n=_.indexOf(e,t),e&&0<=n&&e.splice(n,1)):e&&t===undefined&&(e.length=0),this},this.trigger=function(e){var t=i[e]?i[e].slice():[],n=_.toArray(arguments).slice(1);return _.map(t,function(e){return e.apply(E,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return _.map(e,function(e){if(!t.cancel)return e.apply(E,[t])})},this.triggerAsync=function(){var e=_.map(this.trigger.apply(this,arguments),function(e){return!1===e?m.reject():e});return m.all(e)},this}Zn.clear=function(t){t&&_.each(_.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};or={DEBUG:e="debug",FRAMES:t="frames",LIFECYCLE:n="lifecycle",RUNTIME:Ir="runtime"},Qn=[new i("ready",[e,n]),new i("deliverablesLoaded",[e,n]),new i("guidesFailed",[e,n]),new i("guidesLoaded",[e,n]),new i("segmentFlagsUpdated",[e,n]),new i("segmentFlagsReady",[e,n]),new i("segmentFlagsError",[e,n]),new i("guideListChanged",[e,n]),new i("guidesReceived",[e,n]),new i("guideSeen",[e,n]),new i("guideNotSeen",[e,n]),new i("guideAdvanced",[e,n]),new i("guideDismissed",[e,n]),new i("guideSnoozed",[e,n]),new i("beforeGuideShow",[n]),new i("beforeMount",[Ir]),new i("beforeAdvance",[Ir]),new i("beforePrevious",[Ir]),new i("beforeSnooze",[Ir]),new i("beforeDismiss",[Ir]),new i("beforeUnmount",[Ir]),new i("unmounted",[Ir]),new i("beforeUpdate",[Ir]),new i("updated",[Ir]),new i("guideSnoozeCancelled",[e,n]),new i("guideTimeout",[e,n]),new i("guideLoopStopped",[e,n]),new i("guideUpdateComplete",[n]),new i("designerLaunched",[e,n]),new i("debuggerLaunched",[e,n]),new i("stepEligibility",[e]),new i("identify",[e,n]),new i("metadata",[e,n]),new i("appUnloaded",[e,n]),new i("appHidden",[e,n]),new i("startPreview",[e]),new i("resourceFetchFail",[e]),new i("contentVerificationFail",[e]),new i("contentValidationFail",[e]),new i("renderFail",[e]),new i("appUsage",[n]),new i("eventCaptured",[e]),new i("error",[e,n]),new i("onClickCaptured",[e]),new i("onEventCaptured",[e]),new i("urlChanged",[n]),new i("leaderChanged",[n,t]),new i("transmit:locked",[n]),new i("transmit:unlocked",[n]),new i("sessionChanged",[n]),new i("ptm:unpaused",[n]),new i("ptm:paused",[n]),new i("recording:unpaused",[n]),new i("recording:paused",[n]),new i("consent:changed",[n]),new i("childFrameJoined",[t]),new i("tabIdChanged:self",[e,n])],ei=Zn.call({}),ti={debug(){return Kn.addTracerIds(ii.apply(null,arguments))},lifecycle:ii,runtime:ii,frames:ii},ni=ei.trigger,ei.trigger=ri,_.each(_.values(or),function(e){ei[e]={on:_.partial(ei.on,e),one:_.partial(ei.one,e),off:_.partial(ei.off,e)}}),_.each(Qn,function(e){e=e.name,ei[e]={on:_.partial(ei.on,e),one:_.partial(ei.one,e),off:_.partial(ei.off,e),trigger:_.partial(ri,e)}});var Qn,ei,ti,ni,R=ei;function i(e,t){this.name=e,this.groups=t||[]}function ii(e,t){e={type:e,ts:S()};return I(t)&&_.isObject(t)&&(e.data=t),e}function ri(t){var e=_.findWhere(Qn,{name:t}),n=_.toArray(arguments).slice(1),i={};return _.each(e.groups,function(e){i.cancel||(i=ti[e](t,n),ni.apply(ei,[e].concat(i)))}),i.cancel||(i=ii(t,n),ni.apply(ei,[t].concat(i))),i}function oi(e){var i=[],r=[],o={},a={},s={state:{},commit:function(t,n){var e=o[t];if(!e)throw new Error("mutation "+t+" not found");e(n),_.each(i,function(e){e({type:t,payload:n},s.state)})},dispatch:function(t,n){var e=a[t];if(e)return e=e(n),_.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:_.partial(t,i),subscribeAction:_.partial(t,r),registerModule:function h(n,e){_.isString(n)&&(n=[n]);var t=u(s.state,e,n);_.extend(s.getters,p(e,t,s,n));_.extend(o,c(e,t,n));_.extend(a,l(e,t,s,n));_.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return _.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):_.noop;var n,i}function d(e,t){return(e=t?e.concat([t]):e).join("/")}function u(e,t,n){var i=e;return _.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),_.extend(i,Ce(t.state||{}))}function c(e,n,i){var r={};return _.each(e.mutations,function(e,t){r[d(i,t)]=_.partial(e,n)}),r}function l(e,t,i,r){var n={},o={state:t,rootState:i.state,commit:function(e,t,n){n=n&&n.root?e: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 _.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return _.each(e.actions,function(e,t){n[d(r,t)]=_.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return _.each(e.getters,function(e,t){a[t]=o[d(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var A=oi(),ai=(A.subscribe(function(e,t){}),"_PENDO_T_"),si=11;const di="visitorId",ui="oldVisitorId",ci="accountId",li="__cookieless_visitor__";var pi=function(e=""){return e+Tt(si)};var hi=function(e){return I(e)&&""!==e&&e!==wi&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===mt.call(e).length)},fi=function(e){return!(!e||"number"==typeof e)&&e.substring(0,ai.length)===ai},gi=function(){return!C.get("disablePersistence")},mi=function(e){e=e||[di,ci,ui];const t=C.get("identityStorageSuffix")||E.apiKey;_.each(e,function(e){_n(Cn(e,t)),x.clear(e,!1,t)})},vi="VISITOR-UNIQUE-ID",yi=function(e){return vi===e},bi=function(e=E.visitorId){return e===li},wi="::",Si=function(e){return new RegExp(wi).test(e)};function Ei(e){return e.old_visitor_id!==e.visitor_id}var Ii,_i=function(e,t){var n,i={old_visitor_id:v(),old_account_id:Ai()};hi(e)?(Ri(e),t=t,_.isUndefined(t)?T.info("No account id provided"):an()?T.warn("Ignoring account id "+t+" while identity consent is dnt."):hi(t)?(E.accountId=""+t,gi()&&ki(ci,E.accountId)):(delete E.accountId,delete(n=C.getLocalConfig()).account,C.setLocalConfig(n),A.commit("metadata/clearAccount"),gi()&&x.clear(ci),T.info("Invalid account id: "+t+". Account cleared")),i.visitor_id=v({generate:!0}),i.account_id=Ai(),!Ei(n=i)&&n.old_account_id===n.account_id||(Ei(i)&&(t=i.old_visitor_id)&&(Ii=t,ki(ui,Ii)),R.identify.trigger(i))):T.info("Invalid visitor id "+e)};function Ci(){return pi(ai)}function Ti(e){an()&&(e=li),E.visitorId!==e&&(gi()&&ki(di,e),E.visitorId=e)}function v(e={}){var t=function(){if(hi(E.visitorId))return E.visitorId;var e=C.get("forceAnonymous");if(gi()){var t=Oi(di);if(hi(t)&&(!e||fi(t)))return t}return undefined}();return Ti(t=!t&&e.generate?Ci():t),t}function xi(){return v()||Ci()}var Ri=function(e){hi(e)?an()&&e!==li?T.warn("Ignoring visitor id "+e+" while identity consent is dnt."):Ti(""+e):T.info("Invalid visitor id "+e)};var Ai=function(){var e=C.get("forceAnonymous");return hi(E.accountId)||!gi()||e||(e=Oi(ci),E.accountId=e),E.accountId};function ki(e,t){var n=C.get("identityStorageLifetime")||Rn,i=C.get("identityStorageSuffix")||E.apiKey;x.write(e,t,n,!1,!0,i)}function Oi(e){var t=C.get("identityStorageSuffix"),n=t||E.apiKey,n=x.read(e,!1,n)||x.read(e,!1,E.apiKey);return t&&x.clear(e,!1,E.apiKey),n}function Ni(e={doNotTrack:!1}){var t={old_visitor_id:v({generate:!1}),old_account_id:Ai(),wasCleared:!0};mi(),delete E.visitorId,delete E.accountId,e.doNotTrack?Ri(li):v({generate:!0}),_.extend(t,{visitor_id:v(),account_id:Ai()}),R.identify.trigger(t)}function Mi(e){e=e.data[0];return _.get(e,"wasCleared")}Ir=function(n){return function Li(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 Li="function"==typeof(e=(t=Se).URL)&&/native/.test(e)?e:Ir(t.document);function Pi(e){if((t=e)&&"function"==typeof t.composedPath)try{return e.composedPath()}catch(n){return e.path}var t;return null}function Di(e){return e.shadowRoot}function Fi(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function Ui(e,t){return Fi(e,t)?e.host:e.parentNode}function Gi(e,t,n){let i=t;for(;i;){if(i===e)return!0;i=Ui(i,n)}return!1}var Bi={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:Pi,getShadowRoot:Di,isElementShadowRoot:Fi,getParent:Ui,isShadowSelector:Hi,wrapSizzle(i,u){i.intercept(function(a,t,n,i,r){var e,o;if(Hi(t))return _.isFunction(document.documentElement.attachShadow)?(o=a,e=(e=t).replace(Bi.PSEUDO_REGEX,Bi.PSEUDO_SAFE),e=_.map(o.tokenize(e),zi),_.reduce(e,function(e,t){return e.concat(s(t,n,i,r))},[])):a(t.replace(Bi.PSEUDO_REGEX,""),n,i,r);{const d=a(t,n,i,r);return 0<u.cache.size&&u.cache.forEach(e=>{n&&n!==document&&!Gi(n,e)||d.push(...a(t,e,i,r))}),d}function s(e,t,n,i){var r,o;return Hi(e)?(o=s((r={baseCss:(o=(o=e).split(Bi.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(Bi.PSEUDO_ELEMENT)}).baseCss,t),_.reduce(o,function(e,t){return Bi.getShadowRoot(t)?e.concat(s(r.shadowCss,Bi.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!Bi.isElementShadowRoot(t)&&(Hi(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function Hi(e){return!!e&&-1<e.indexOf(Bi.PSEUDO_ELEMENT)}function zi(e){return _.reduce(e,function(e,t){return t.value===Bi.PSEUDO_SAFE?e+Bi.PSEUDO_ELEMENT:e+t.value},"")}var ji,h,w,Wi,qi,Vi,Ki,$i,Ji,Yi,Xi,Zi,k,Qi,er,tr,nr,ir,rr,n={exports:{}},or=n,ar=window,O="sizzle"+ +new Date,sr=ar.document,dr=0,ur=0,cr=Kr(),lr=Kr(),pr=Kr(),hr=Kr(),fr=Kr(),gr=function(e,t){return e===t&&(Xi=!0),0},mr={}.hasOwnProperty,e=[],vr=e.pop,yr=e.push,br=e.push,wr=e.slice,Sr=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},Er="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",t="(?:\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Ir="\\["+r+"*("+t+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+r+"*\\]",_r=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Ir+")*)|.*)\\)|)",Cr=new RegExp(r+"+","g"),Tr=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),xr=new RegExp("^"+r+"*,"+r+"*"),Rr=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),Ar=new RegExp(r+"|>"),kr=new RegExp(_r),Or=new RegExp("^"+t+"$"),Nr={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+Ir),PSEUDO:new RegExp("^"+_r),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("^(?:"+Er+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},Mr=/HTML$/i,Lr=/^(?:input|select|textarea|button)$/i,Pr=/^h\d$/i,Dr=/^[^{]+\{\s*\[native \w/,Fr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ur=/[+~]/,Gr=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),Br=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))},Hr=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,zr=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},jr=function(){Zi()},Wr=io(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{br.apply(e=wr.call(sr.childNodes),sr.childNodes),e[sr.childNodes.length].nodeType}catch(k_){br={apply:e.length?function(e,t){yr.apply(e,wr.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function qr(e){return e[0].length?e.map(qr).join(","):no(e)}function Vr(e,t,n){var i=n[e+" "];i=i||qr(function o(e,t){return e[0].length?e.map(function(e){return o(e,t)}):e.filter(t)}(Vi(e),function(e){return!("PSEUDO"===(e=e).type&&e.matches.length&&"contains"===e.matches[0].replace(Tr,"$1").toLowerCase())}));try{var r=[];return br.apply(r,t.querySelectorAll(i)),n(e,i),r}catch(k_){}}function N(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&&(Zi(t),t=t||k,er)){if(11!==l&&(s=Fr.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))&&rr(t,u)&&u.id===r)return n.push(u),n}else{if(s[2])return br.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&h.getElementsByClassName&&t.getElementsByClassName)return br.apply(n,t.getElementsByClassName(r)),n}if(h.qsa&&(!hr[e+" "]||fr[e+" "])&&(!tr||!tr.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(u=e,c=t,1===l&&(Ar.test(e)||Rr.test(e))){for((c=Ur.test(e)&&eo(t.parentNode)||t)===t&&h.scope||((a=t.getAttribute("id"))?a=a.replace(Hr,zr):t.setAttribute("id",a=O)),o=(d=Vi(e)).length;o--;)d[o]=(a?"#"+a:":scope")+" "+no(d[o]);u=d.join(",")}try{return br.apply(n,c.querySelectorAll(u)),n}catch(p){hr(e,!0)}finally{a===O&&t.removeAttribute("id")}!i&&hr[e+" "]&&(i=Vr(e,c,fr))}}return $i(e.replace(Tr,"$1"),t,n,i)}function Kr(){var n=[];function i(e,t){return n.push(e+" ")>w.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function $r(e){return e[O]=!0,e}function Jr(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(k_){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function Yr(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function Xr(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 Zr(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&&Wr(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function Qr(a){return $r(function(o){return o=+o,$r(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 eo(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ji in h=N.support={},qi=N.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!Mr.test(t||e&&e.nodeName||"HTML")},Zi=N.setDocument=function(e){var e=e?e.ownerDocument||e:sr;return e!=k&&9===e.nodeType&&e.documentElement&&(Qi=(k=e).documentElement,er=!qi(k),sr!=k&&(e=k.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",jr,!1):e.attachEvent&&e.attachEvent("onunload",jr)),h.scope=Jr(function(e){return Qi.appendChild(e).appendChild(k.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),h.attributes=Jr(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=Jr(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=!!k.getElementsByClassName,h.getById=Jr(function(e){return Qi.appendChild(e).id=O,!k.getElementsByName||!k.getElementsByName(O).length}),h.getById?(w.filter.ID=function(e){var t=e.replace(Gr,Br);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&er)return(e=t.getElementById(e))?[e]:[]}):(w.filter.ID=function(e){var t=e.replace(Gr,Br);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&er){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[]}}),w.find.TAG=h.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):h.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},w.find.CLASS=h.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&er?t.getElementsByClassName(e):h.qsa&&er?t.querySelectorAll("."+e):void 0},nr=[],tr=[],(h.qsa=!!k.querySelectorAll)&&(Jr(function(e){var t;Qi.appendChild(e).innerHTML=p().createHTML("<a id='"+O+"'></a><select id='"+O+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&tr.push("[*^$]="+r+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||tr.push("\\["+r+"*(?:value|"+Er+")"),e.querySelectorAll("[id~="+O+"-]").length||tr.push("~="),(t=k.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||tr.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||tr.push(":checked"),e.querySelectorAll("a#"+O+"+*").length||tr.push(".#.+[+~]"),e.querySelectorAll("\\\f"),tr.push("[\\r\\n\\f]")}),Jr(function(e){e.innerHTML=p().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&tr.push("name"+r+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&tr.push(":enabled",":disabled"),Qi.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&tr.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),tr.push(",.*:")})),(h.matchesSelector=Dr.test(ir=Qi.matches||Qi.webkitMatchesSelector||Qi.mozMatchesSelector||Qi.oMatchesSelector||Qi.msMatchesSelector))&&Jr(function(e){h.disconnectedMatch=ir.call(e,"*"),ir.call(e,"[s!='']:x"),nr.push("!=",_r)}),tr=tr.length&&new RegExp(tr.join("|")),nr=nr.length&&new RegExp(nr.join("|")),e=!!Qi.compareDocumentPosition,rr=e||Qi.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},gr=e?function(e,t){var n;return e===t?(Xi=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===n?e==k||e.ownerDocument==sr&&rr(sr,e)?-1:t==k||t.ownerDocument==sr&&rr(sr,t)?1:Yi?Sr(Yi,e)-Sr(Yi,t):0:4&n?-1:1)}:function(e,t){if(e===t)return Xi=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==k?-1:t==k?1:r?-1:o?1:Yi?Sr(Yi,e)-Sr(Yi,t):0;if(r===o)return Xr(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?Xr(a[i],s[i]):a[i]==sr?-1:s[i]==sr?1:0}),k},N.matches=function(e,t){return N(e,null,null,t)},N.matchesSelector=function(e,t){if(Zi(e),h.matchesSelector&&er&&!hr[t+" "]&&(!nr||!nr.test(t))&&(!tr||!tr.test(t)))try{var n=ir.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(k_){hr(t,!0)}return 0<N(t,k,null,[e]).length},N.contains=function(e,t){return(e.ownerDocument||e)!=k&&Zi(e),rr(e,t)},N.attr=function(e,t){(e.ownerDocument||e)!=k&&Zi(e);var n=w.attrHandle[t.toLowerCase()],n=n&&mr.call(w.attrHandle,t.toLowerCase())?n(e,t,!er):undefined;return n!==undefined?n:h.attributes||!er?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},N.escape=function(e){return(e+"").replace(Hr,zr)},N.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},N.uniqueSort=function(e){var t,n=[],i=0,r=0;if(Xi=!h.detectDuplicates,Yi=!h.sortStable&&e.slice(0),e.sort(gr),Xi){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return Yi=null,e},Wi=N.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+=Wi(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=Wi(t);return n},(w=N.selectors={cacheLength:50,createPseudo:$r,match:Nr,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(Gr,Br),e[3]=(e[3]||e[4]||e[5]||"").replace(Gr,Br),"~="===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]||N.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]&&N.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Nr.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&kr.test(n)&&(t=(t=Vi(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(Gr,Br).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=cr[e+" "];return t||(t=new RegExp("(^|"+r+")"+e+"("+r+"|$)"))&&cr(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=N.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(Cr," ")+" ").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)[O]||(a[O]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===dr&&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]=[dr,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[O]||(a[O]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===dr&&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[O]||(a[O]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[dr,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=w.pseudos[e]||w.setFilters[e.toLowerCase()]||N.error("unsupported pseudo: "+e);return a[O]?a(o):1<a.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?$r(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=Sr(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:$r(function(e){var i=[],r=[],s=Ki(e.replace(Tr,"$1"));return s[O]?$r(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:$r(function(t){return function(e){return 0<N(t,e).length}}),contains:$r(function(t){return t=t.replace(Gr,Br),function(e){return-1<(e.textContent||Wi(e)).indexOf(t)}}),lang:$r(function(n){return Or.test(n||"")||N.error("unsupported lang: "+n),n=n.replace(Gr,Br).toLowerCase(),function(e){var t;do{if(t=er?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=ar.location&&ar.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===Qi},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:Zr(!1),disabled:Zr(!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!w.pseudos.empty(e)},header:function(e){return Pr.test(e.nodeName)},input:function(e){return Lr.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:Qr(function(){return[0]}),last:Qr(function(e,t){return[t-1]}),eq:Qr(function(e,t,n){return[n<0?n+t:n]}),even:Qr(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:Qr(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:Qr(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:Qr(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[ji]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ji);for(ji in{submit:!0,reset:!0})w.pseudos[ji]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ji);function to(){}function no(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function io(a,e,t){var s=e.dir,d=e.next,u=d||s,c=t&&"parentNode"===u,l=ur++;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=[dr,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[O]||(e[O]={}))[e.uniqueID]||(r[e.uniqueID]={}),d&&d===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[u])&&i[0]===dr&&i[1]===l)return o[2]=i[2];if((r[u]=o)[2]=a(e,t,n))return!0}return!1}}function ro(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 oo(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 ao(h,f,g,m,v,e){return m&&!m[O]&&(m=ao(m)),v&&!v[O]&&(v=ao(v,e)),$r(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++)N(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),l=!h||!e&&f?c:oo(c,s,h,n,i),p=g?v||(e?h:u||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=oo(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?Sr(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=oo(p===t?p.splice(u,p.length):p),v?v(null,t,p,i):br.apply(t,p)})}to.prototype=w.filters=w.pseudos,w.setFilters=new to,Vi=N.tokenize=function(e,t){var n,i,r,o,a,s,d,u=lr[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],d=w.preFilter;a;){for(o in n&&!(i=xr.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Rr.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Tr," ")}),a=a.slice(n.length)),w.filter)w.filter.hasOwnProperty(o)&&(i=Nr[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?N.error(e):lr(e,s).slice(0)},Ki=N.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=pr[e+" "];if(!a){for(n=(t=t||Vi(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=w.relative[e[0].type],a=o||w.relative[" "],s=o?1:0,d=io(function(e){return e===i},a,!0),u=io(function(e){return-1<Sr(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==Ji)||((i=t).nodeType?d:u)(e,t,n),i=null,e}];s<r;s++)if(t=w.relative[e[s].type])c=[io(ro(c),t)];else{if((t=w.filter[e[s].type].apply(null,e[s].matches))[O]){for(n=++s;n<r&&!w.relative[e[n].type];n++);return ao(1<s&&ro(c),1<s&&no(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Tr,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&no(e))}c.push(t)}return ro(c)}(t[n]))[O]?r:o).push(a);(a=pr(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=Ji,h=e||b&&w.find.TAG("*",r),f=dr+=null==p?1:Math.random()||.1,g=h.length;for(r&&(Ji=t==k||t||r);u!==g&&null!=(o=h[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument==k||(Zi(o),n=!er);s=m[a++];)if(s(o,t||k,n)){i.push(o);break}r&&(dr=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]=vr.call(i));l=oo(l)}br.apply(i,l),r&&!e&&0<l.length&&1<d+v.length&&N.uniqueSort(i)}return r&&(dr=f,Ji=p),c},y?$r(i):i))).selector=e}return a},$i=N.select=function(e,t,n,i){var r,o,a,s,d,u="function"==typeof e&&e,c=!i&&Vi(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&&er&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(Gr,Br),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Nr.needsContext.test(e)?0:o.length;r--&&(a=o[r],!w.relative[s=a.type]);)if((d=w.find[s])&&(i=d(a.matches[0].replace(Gr,Br),Ur.test(o[0].type)&&eo(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&no(o))break;return br.apply(n,i),n}}return(u||Ki(e,c))(i,t,!er,n,!t||Ur.test(e)&&eo(t.parentNode)||t),n},h.sortStable=O.split("").sort(gr).join("")===O,h.detectDuplicates=!!Xi,Zi(),h.sortDetached=Jr(function(e){return 1&e.compareDocumentPosition(k.createElement("fieldset"))}),Jr(function(e){return e.innerHTML=p().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||Yr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&Jr(function(e){return e.innerHTML=p().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||Yr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),Jr(function(e){return null==e.getAttribute("disabled")})||Yr(Er,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var so=ar.Sizzle;N.noConflict=function(){return ar.Sizzle===N&&(ar.Sizzle=so),N},or.exports?or.exports=N:ar.Sizzle=N;uo=l(n.exports),(co=_.extend(function(){return co.Sizzle.apply(this,arguments)},uo)).reset=function(){co.Sizzle=uo,co.matchesSelector=uo.matchesSelector,co.matches=uo.matches},co.intercept=function(e,t="Sizzle"){co[t]=_.wrap(co[t],e)},co.reset();var uo,co,lo=co;function M(e,t){var n,i=this;if(e&&e instanceof M)return e;if(!(i instanceof M))return new M(e,t);if(e)if(e.nodeType)n=[e];else if(r=/^<(\w+)\/?>$/.exec(e))n=[document.createElement(r[1])];else if(/^<[\w\W]+>$/.test(e)){var r=document.createElement("div");r.innerHTML=e,n=_.toArray(r.childNodes)}else if(_.isString(e)){t instanceof M&&(t=0<t.length?t[0]:null);try{n=lo(e,t)}catch(o){n=[]}}else n=[e];else n=[];return _.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,"undefined"!=typeof Symbol&&Symbol.iterator&&(i[Symbol.iterator]=function*(){for(const e of n)yield e}),i}function po(){this.ownerKey="_pendo_"+Tt(8)}_.extend(po.prototype,{cache(e){var t;return _.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set(e,t,n){e=this.cache(e);return e[t]=n,e},get(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!_.isEmpty(n)||(e[this.ownerKey]=undefined)}});var ho=new po,fo=1;function go(e){return _.isNumber(e.eventPhase)&&e.eventPhase===fo}function mo(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?At("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{vo(e,t,n,i)}):_.noop}function vo(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?At("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var yo=function(e){var t=Bi.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},bo={add(t,e){var n=ho.get(t),i=(n.handle||(n.handle=function(e){bo.dispatch(t,e)}),e.id=_.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||mo(t,e.type,n.handle,e.capture),i.push(e),()=>{M.event.remove(t,e.type,e.handler,e.capture)}},dispatch(r,o){var e,t,a;r&&(e=(ho.get(r,"captureEvents")||{})[o.type]||[],t=(ho.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=ho.get(o)).ignore&&(a.handled=a.handled||{},_.each(t.slice(),function(e){var t=!!e.capture===go(o),n=(n=o,_.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(yo(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!I(e.selector)||0<M(yo(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){T.error(i)}}}))},remove(e,t,n,i){var r=ho.get(e);if(r){if(_.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=_.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],vo(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],vo(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],vo(e,t,r.handle));_.isEmpty(r.captureEvents)&&_.isEmpty(r.bubbleEvents)&&(ho.remove(e,"captureEvents"),ho.remove(e,"bubbleEvents"),ho.remove(e,"handle"))}},trigger(e){var t=ho.get(e);if(!t.pendoStopped)if(e.bubbles){var n=yo(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=Bi.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),go(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)bo.dispatch(o[i],e);(e=bo.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(bo.dispatch(n,e),(e=bo.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)bo.dispatch(o[i],e)}}else bo.dispatch(yo(e),e)},clone(e){var t=_.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",ho.ownerKey]),e=Bi.getComposedPath(e);return e&&(t.composedPath=_.constant(e)),t},$:{on(e,n,i,r){return _.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){_.each(e,function(e){bo.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},wo=_.extend(Eo,{get:function(e,t){return Eo({method:"GET",url:e,headers:t})},post:Io,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",Io(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(_.isArray(t))i=t;else{if(!_.isObject(t))return e||"";i=_.keys(t)}var i=_.map(i,function(e){return _.isArray(t)?Ht(e):Ht(e)+"="+Ht(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=_.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported(){return void 0!==So()}});function So(){return window.XMLHttpRequest||ActiveXObject}function Eo(e){var t=m.defer(),n=new(So())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),_.each(e.headers,function(e,t){n.setRequestHeader(t.toLowerCase(),e)}),n.onreadystatechange=function(){var e;4===n.readyState&&(e=function(e){var t={status:e.status};try{t.data=JSON.parse(e.responseText)}catch(n){t.data=e.responseText}return t}(n),200<=n.status&&n.status<300?t.resolve(e):t.reject(e))},e.withCredentials&&(n.withCredentials=!0),e.data?n.send(e.data):n.send(),t.promise}function Io(e,t,n){return Eo({method:"POST",url:e,data:t,headers:n})}var _o,Co=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},To=function(){return C.get("annotateUrl")||Oo()||C.get("sanitizeUrl")||C.get(Go)||C.get("xhrWhitelist")},xo=function(){return Oo()?{href:ko(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Ro=function(){return new Li(window.location.href)},Ao=function(){var e,t,n,i;return To()?(e=Ro(),Oo()&&(e.href=ko(e.href)),Co()?(t=L.electronResourcesPath(),n=L.electronUserDirectory(),i=L.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(L.electronUserHomeDirectory(),"").replace("file:///","")):Ho(e.href)):A.getters["location/href"]()},ko=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Oo=function(){return!0===C.get("ignoreHashRouting")},No=500;function Mo(){return _.isUndefined(_o)&&function e(){Uo(),_o=Ut(e,No)}(),()=>{Gt(_o),_o=undefined}}var Lo=function(e){var t;try{t=Ao()}catch(n){}return t},Po=[],Do=!1,Fo=null;function Uo(){var t=xo().href;Fo!=t&&(Fo=t,_.map(Po,function(e){e(t)}))}var Go="queryStringWhitelist";function Bo(e){var t=C.get("sanitizeUrl");return _.isFunction(t)?t(e):e}function Ho(e){e=e||xo().href;var t=C.get("annotateUrl");if(t)if(_.isFunction(t))try{var n,i,r,o=t();return o&&(_.isObject(o)||_.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&_.isArray(n)||i&&(_.isArray(i)||_.isObject(i)))&&(n&&(e=jo(e,null,n,!0)),o=i||{}),wo.urlFor(e,o,r)):e}catch(a){T.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else T.error("customer-provided `annotateUrl` must be of type: function");return e}function zo(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function jo(e,t,n,i){e=e||Lo(),t=t||zo(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=_.isArray(n)?qo(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var Wo,qo=function(e,t,n){return n&&_.contains(t,"*")?"":(e=Vo(e),e=n?_.omit(e,t):_.pick(e,t),Ko(e))},Vo=function(e){e=e.split("&");return _.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&Ft(t[1])),e},{})},Ko=function(e){return _.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},L={watch:function(e){const n=[];T.info("Initializing Pendo URL Watcher");var i,t=C.get("location.pushState")&&et.supportsHistoryApi();return Do||(t&&(i=window.history,_.each(["pushState","replaceState"],function(e){var t=i[e];i[e]=_.wrap(i[e],function(e){var t=e.apply(i,_.toArray(arguments).slice(1));return Ut(Uo,0),t}),i[e]._pendoUnwrapped=t,n.push(()=>{i[e]=t})}),n.push(mo(window,"popstate",Uo))),et.supportsHashChange()&&n.push(mo(window,"hashchange",Uo)),!1!==t&&et.supportsHashChange()||n.push(Mo()),Do=!0),Po.push(e),()=>{_.each(n,function(e){e()}),Po.length=0,Do=!1}},get:Lo,externalizeURL:function(e,t,n){n=n||C.get(Go);return Bo(jo(e,t,n=_.isFunction(n)?n():n,!1))},startPoller:Mo,getWindowLocation:xo,clear:function(){Po=[]},isElectron:Co,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 $o(){var e=C.getLocalConfig("dataHost");return e||((e=C.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:at)}function Jo(){Wo=$o()}function Yo(){var e=C.get("assetHost");return e?-1===e.indexOf("://")?"https://"+e:e:Xo()}function Xo(){var e=C.get("contentHost")||st;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function Zo(e){var t=Yo(),n=0<=(n=t).indexOf("localhost")||0<=n.indexOf("local.pendo.io")?e.replace(".min.js",".js"):e;return t+"/"+(dt?dt+"/":"")+n}function Qo(){var e=C.get("allowPartnerAnalyticsForwarding",!1)&&C.get("adoptAnalyticsForwarding",!1);return C.get("trainingPartner",!1)||e}function ea(e,t,n){return n?e.acc=It(n):t&&"ACCOUNT-UNIQUE-ID"!==t&&(e.acc=It(t)),e}var ta=3,na=1,ia=9,ra=11,oa=4;function f(e){var t;if((t=e)&&t.nodeType===na)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function aa(e,t){var n;return!(!e||!_.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&_.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),_.any(n,function(e){return e&&"none"!==e}))}function sa(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function da(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function ua(e){return _.isNumber(e)?e:0}function ca(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!pa(e)?null:e}function la(e){return aa(f(e),We)&&isNaN(Le)}function pa(e){if(e)return(e=f(e))&&(_.contains(["relative","absolute","fixed"],e.position)||aa(e,We))}function ha(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=pa(t)?t:ca(t,n),i=t?fa(t):{top:0,left:0},e=fa(e),r=function(e){if(e){var e=f(e),t=function(e){if(/^matrix\(/.test(e))return e.split(/\(|,|\)/).slice(1,-1).map(e=>parseFloat(e))}(e.transform);if(t&&/^0px\s+0px/.test(e.transformOrigin))return function([e,t,n,i,r,o]){var a=e*i-t*n;return 0!=a?[i/a,-t/a,-n/a,e/a,(n*o-i*r)/a,(t*r-e*o)/a]:null}(t)}}(t),r=(r&&(i=ma(r,i),e=ma(r,e)),{top:e.top-i.top,left:e.left-i.left,width:e.width,height:e.height});return t?(t!==n.document.scrollingElement&&(r.top+=ua(t.scrollTop),r.left+=ua(t.scrollLeft)),r.top-=ua(t.clientTop),r.left-=ua(t.clientLeft)):(r.top+=sa(n),r.left+=da(n)),r.bottom=r.top+r.height,r.right=r.left+r.width,r}function fa(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}}function ga([e,t,n,i,r,o],[a,s]){return[e*a+n*s+r,t*a+i*s+o]}function ma(e,t){var n=ga(e,[t.left,t.top]),e=ga(e,[t.right,t.bottom]),t={top:n[1],left:n[0],bottom:e[1],right:e[0]};return t.width=t.right-t.left,t.height=t.bottom-t.top,t}var va=void 0===(t=C.get("pendoCore"))||t,ya=function(e,t,n){e=Wo+"/data/"+e+"/"+t,t=_.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function ba(){return _.compact([E.apiKey].concat(E.additionalApiKeys))}var wa=function(e){e+="v"+ct;e=ya("log.gif",E.apiKey,{msg:e,version:ct});return m.resolve(_a(e))["catch"](_.noop)};function Sa(e){try{e&&e.body&&_.isFunction(e.body.cancel)&&e.body.cancel()["catch"](_.noop)}catch(t){}return e}function Ea(e){try{var t=Wo+"/data/errorlog?apiKey="+E.apiKey,n={error:e,version:"v"+ct,visitorId:v()},i=Ca.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):wo.postJSON(t,n);return i.then(function(e){Sa(e)},function(e){T.debug("error writing error:"+e)})}catch(r){return T.info("Failed to write error to server using POST endpoint: "+r),wa("Failed to write error to server using POST endpoint: "+r)}}function Ia(e){try{var t=ya("metrics",E.apiKey,{v:ct});T.debug(`Sending ${JSON.stringify(e)} to ${t} using `+(Ca.supported()?"fetch":"xhr")),Ca.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(e),headers:{"Content-Type":"application/json"}}).then(Sa)["catch"](function(e){T.debug("Failed to write metrics payload to server: "+e)}):wo.postJSON(t,e)}catch(n){T.critical("Failed to write metrics payload to server: "+n)}}function _a(e){var t,n;return ka()?(t=m.defer(),mo(n=new Image,"load",t.resolve),mo(n,"error",t.reject),n.src=e,t.promise):m.resolve()}function Ca(e,t={}){t=_.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t).then(Sa)}function Ta(e,t){return navigator.sendBeacon(e,t)}Ca.supported=function(){try{return _.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var xa=!(Ta.supported=function(){return _.isFunction(navigator.sendBeacon)}),Ra=function(){var e=ka();return xa=!0,e&&R["transmit:locked"].trigger(),"Pendo Web SDK locked. No more events will be written."},Aa=function(){var e=!ka();return xa=!1,e&&R["transmit:unlocked"].trigger(),"Pendo Web SDK unlocked. Events will be written."},ka=function(){return!xa&&va},Oa=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(Pa(e))}catch(n){return!1}},Na=function(e,t){try{var n;Oa(e,t)||(n=mt.call(Pa(e))+" "+t,La(e,n))}catch(i){}},Ma=function(e,t){try{var n,i;Oa(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=Pa(e).replace(n," "),La(e,i))}catch(r){}},La=function(e,t){_.isString(e.className)?e.className=t:e.setAttribute("class",t)},Pa=function(e){try{var t=e["classList"];if(t&&0<t.length){for(var n=[],i=0;i<t.length;i++)n.push(t[i]);return n.join(" ")}var r=e.className;return(_.isString(r)||!I(r)?r:e.getAttribute("class"))||""}catch(o){return""}},Da=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},Fa={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},Ua=function(e,t){t=function(e){if(_.isString(e)){var t=e.split(";");var n;var i;var r;var o;e={};for(r=0;r<t.length;r++){n=t[r];o=n.indexOf(":");i=n.substring(0,o);e[i]=n.substring(o+1)}}return e}(t);Ga(e,t)},Ga=function(a,e){_.each(e,function(e,t){if(""!==(t=mt.call(t))){var n=Da(t),i=(!_.isNumber(e)||isNaN(e)||Fa[n]?_.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=mt.call(e.substring(0,i));C.get("disableImportantStyleAttributes")?a.style.setProperty(t,r):a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=mt.call(e)}catch(o){T.info("failed to set style: "+t+" with value "+e)}}})},Ba=function(e=window){return tt()?{width:e.document.documentElement.offsetWidth||0,height:e.document.documentElement.offsetHeight||0}:{width:e.innerWidth||e.document.documentElement.clientWidth,height:e.innerHeight||e.document.documentElement.clientHeight}},Ha=function(e){var t=Ba(),n=sa(),i=da();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function za(t){return _.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function ja(e,t=window){var n;return function(e){var t,n=e;for(;n;){if(!(t=f(n)))return;if("fixed"===t.position)return!isNaN(Le)||!Xa(n);n=n.parentNode}return}(e)?((n=fa(e)).fixed=!0,za(n)):za(ha(e,Va(t.document),t))}var Wa=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},qa=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return T.info("error interrogating body elements: "+n),wa("error picking best body:"+n),0}},Va=function(e=document){try{var t=Array.prototype.slice.call(e.getElementsByTagName("body"));return t&&1<t.length?(t.sort(qa),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return wa("Error getting body element: "+n),e.body}};function Ka(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 $a(e,t=document){if(lo.contains(t,e))return!0;for(;e&&e.parentNode||Bi.isElementShadowRoot(e);)e=Bi.getParent(e);return e===t}var Ja=function(e){var t,n,i;if(null!=e)return t=(n=e.ownerDocument||document).defaultView||window,i=Va(n),e===n||e===t?((n={left:t.pageXOffset||i.scrollLeft,top:t.pageYOffset||i.scrollTop,width:t.innerWidth,height:t.innerHeight}).right=n.left+n.width,n.bottom=n.top+n.height,n):((i=ja(e,t)).right=i.left+i.width,i.bottom=i.top+i.height,i)},Ya=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function Xa(e){for(var t=e&&e.parentNode;t;){if(aa(f(t),We))return 1;t=t.parentNode}}var Za=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if($a(e))for(i=e;i;)if(Bi.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=f(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=f(r))&&!_.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&Xa(i))i=ca(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function Qa(e,t){e=f(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?es.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?es.BOTH:t.test(e.overflowY)?es.Y:t.test(e.overflowX)?es.X:t.test(e.overflow)?es.BOTH:es.NONE}var es={X:"x",Y:"y",BOTH:"both",NONE:"none"};function ts(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&$a(e)}function ns(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 is(e){if(e){if(_.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function rs(e,t,n){const i=[];var r=is(document.documentElement);let o=is(Za(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=is(Za(o)),a++;return()=>{_.each(_.compact(i),function(e){e()}),i.length=0}}const os=['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 as(e,t,n){var i=Ja(t),t=Qa(t,n);if(t!==es.BOTH||Ya(e,i)){if(t===es.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===es.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function ss(e){if(e){if(ts(e))return 1;var t=Ja(e);if(0!==t.width&&0!==t.height){var n=f(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=f(i=i.parentNode)}return 1}}}}function ds(e,t){if(!ss(e))return!1;if(!ts(e)){for(var n=Ja(e),i=Za(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!as(n,i,t))return!1;i=Za(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=da(),e+=sa()),o<=0||e<=0)return!1}}return!0}function us(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,d=Ja(e),u=Za(e,s);if(!ss(e))return!1;for(;u;){if(t=Ja(u),(o=Qa(u,a))!==es.NONE&&(i=n=0,o!==es.Y&&o!==es.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!==es.X&&o!==es.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))),!as(d,u,s))return!1;u=Za(u,s)}return!0}function cs(e,t){var n,i,r,e=Ja(e),o=Ja(t);e.fixed&&!o.fixed||(i=n=0,e.bottom>o.bottom&&(n+=e.bottom-o.bottom,e.top-=n,e.bottom-=n),e.top<o.top&&(n-=r=o.top-e.top,e.top+=r,e.bottom+=r),e.right>o.right&&(i+=e.right-o.right,e.left-=i,e.right-=i),e.left<o.left&&(i-=r=o.left-e.left,e.left+=r,e.right+=r),e=(o=_.isFunction(t.scrollBy))&&Oe(t.scrollBy),o?e?t.scrollBy(i,n):t.scrollTo(t.scrollX+i,t.scrollY+n):(t.scrollTop+=n,t.scrollLeft+=i))}function ls(e){for(var t=/(auto|scroll)/,n=Va(),i=Za(e,t);i&&i!==n;)cs(e,i),i=Za(i,t)}Ir={$:{findOrCreate(e){return 0<this.length?this:M(e)},find(e){var t=M();return t.context=this.context,this.each(function(){M(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(){Ua(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Na(t,e)})})},removeClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Ma(t,e)})})},hasClass(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){_.each(e,function(e){n=n&&Oa(t,e)})}),n)},toggleClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){(Oa(t,e)?Ma:Na)(t,e)})})},css(e){return this.each(function(){Ua(this,e)}),this},appendTo(e){return M(e).append(this),this},append(e){var t=this;return M(e).each(function(){t.length&&t[0].appendChild(this),$a(this)&&_.each(lo("script",this),ns)}),t},prependTo(e){return M(e).prepend(this),this},prepend(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],M(e).each(function(){n?M(this).insertBefore(n):M(this).appendTo(t)})),this},getParent(){var e=M(this)[0];if(e&&e.parentNode)return M(e.parentNode)},insertBefore(e){e=M(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),$a(this[0]))&&_.each(lo("script",this[0]),ns)},remove(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr(e,t){return _.isObject(e)?(this.each(function(){_.each(e,function(e,t){this.setAttribute(t,e)},this)}),this):t!==undefined?(this.each(function(){this.setAttribute(e,t)}),this):0<this.length?this[0].getAttribute(e):void 0},closest(e,t){for(var n=this[0];n&&!lo.matchesSelector(n,e);)if((n=Ui(n))===document||t&&lo.matchesSelector(n,t))return M();return M(n)},eq(e){return M(this[e])},height(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus(){return this.each(function(){_.isFunction(this.focus)&&this.focus()})}}};class ps{constructor(e=Va(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},et.MutationObserver){const n=new(At("MutationObserver"))((e,t)=>{this.signal()});n.observe(e,t),this._teardown=()=>n.disconnect}else{const i=setInterval(()=>{this.signal()},500);this._teardown=()=>{clearInterval(i)}}}signal(){_.each(this.listeners,e=>{e.get()})}addObservers(...e){this.listeners=[].concat(this.listeners,e)}teardown(){this._teardown()}}e=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var hs="function"==typeof(or=Se.WeakRef)&&/native/.test(or)?or:e();function fs(e,t){var n,i;return e.tagName&&_.contains(["textarea","input"],e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:ys(n.substring(0,i))):gs(e,t)}function gs(e,t=128){var n,i="",r=e.nodeType;if(r===ta||r===oa)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===na||r===ia||r===ra)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=gs(e.childNodes[a],t-i.length))).length)return i+ys(o.substring(0,t-i.length));i+=o}}return i}function ms(e){return 55296<=e&&e<=56319}function vs(e){return 56320<=e&&e<=57343}function ys(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(ms(t)||vs(t)){if(1===e.length)return e.slice(0,-1);if(ms(t))return e.slice(0,-1);if(vs(t))if(!ms(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class bs{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let n=this.elRef&&this.elRef.deref&&this.elRef.deref();var e=$a(n);if(!n||!e){if(n&&!e&&this.teardown(n),!(n=M(this.cssSelector)[0]))return undefined;_.each(this.events,({type:e,capture:t})=>{n.addEventListener(e,e=>this.onEvent(e),t)}),this.elRef=new hs(n)}return n}getText(e=1024){return fs(this.get(),e)}addEventListener(t,e,n=!1){var i=this.get();_.find(this.events,e=>e.type===t&&e.capture===n)||(this.events.push({type:t,capture:n}),i&&i.addEventListener(t,e=>this.onEvent(e),n)),this.listeners[t]=this.listeners[t]||[],this.listeners[t].push(e)}onEvent(t){var e=t.type;_.each(this.listeners[e],e=>e(t))}teardown(n=this.get()){n&&_.each(this.events,({type:e,capture:t})=>n.removeEventListener(e,this.onEvent,t))}}function ws(e){return e.origin!==undefined?e.origin:e.protocol+"//"+e.host}function Ss(e){var t=ws(e.location);if("null"===t&&e.parent&&e.parent!=e)try{var n=ws(e.parent.location);if(n&&"null"!==n)return n}catch(i){}return t}_.extend(M,{data:ho,event:bo,removeNode:Wa,getClass:Pa,hasClass:Oa,addClass:function(e,t){var n;"string"==typeof e?(n=M(e),_.map(n,function(e){Na(e,t)})):Na(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=M(e),_.map(n,function(e){Ma(e,t)})):Ma(e,t)},getBody:Va,getComputedStyle:f,getClientRect:Ja,intersectRect:Ya,getScrollParent:Za,isElementVisible:ds,Observer:ps,Element:bs,scrollIntoView:ls,getRootNode:is}),_.extend(M.prototype,bo.$,Ir.$);const Es=[/^https:\/\/((adopt|oem)\.)?((us1)\.)?(app|via|adopt|cdn|oem|novus-api|novus|portal)(\.(au|eu|gov|hsbc|jpn|tv))?\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)(pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-tv|pendo-us1)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)(pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-tv|pendo-us1)\.appspot\.com$/,/^https:\/\/(pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-tv|pendo-us1)-static\.storage\.googleapis\.com$/];function Is(t){if(!t)return!1;if(t===ws(window.location))return!0;if(t===$o())return!0;if(t===Yo())return!0;if(t===Xo())return!0;var e=C.get("adoptHost");if(e&&t==="https://"+e)return!0;var n,i,e=C.get("allowedOriginServers",[]),r=C.get("allowedOriginServerHashes",[]);return!!Z(t,e,r)||!!Z(Q(t),e,r)||(n=e,i=r,e=ee(Q(e=t)),!!_.any(e,function(e){e="."+e;return _.contains(n,e)||_.contains(i,Y(e))}))||_.any(Es,function(e){return e.test(t)})}function _s(e){if(_.isString(e)){try{var t=new Li(e);const o=_.last(t.pathname.split("/")),a=o.split(".");var n,i={filename:_.first(a),extension:a.slice(1).join("."),query:{}};return t.search.length&&(i.query=Vo(t.search.substring(1))),t.hash.length&&0<=(r=t.hash.indexOf("?"))&&(n=t.hash.substring(r+1),i.fragmentQuery=Vo(n)),i}catch(s){}var r=zo(e).substring(1),t=r&&r.length?Vo(r):{},o=_.last(_.first(e.split(/[?#]/)).split("/")),a=o.split(".");return{filename:_.first(a),extension:a.slice(1).join("."),query:t}}}function Cs(e,t){var n;C.get("guideValidation")&&et.sri&&(n=_s(t),t=_.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],_.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}var Ts,xs=function(e){var t=!((t=C.get("allowedOriginServers",[]))&&0<t.length||(t=C.get("allowedOriginServerHashes",[]))&&0<t.length),n=Qo();return!(!t&&!n)||Is(e)},Rs=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(_.isString(e)&&(e={url:e}),!xs((c=e.url,new Li(c,window.location.href).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],d=C.get("guideContentLoader");if(e.type===r){var u=document.createElement("link");u.type=r,u.rel="stylesheet",u.href=e.url,Cs(u,e.url),a=u}else{if(Rt())return(i=document.createElement("script")).addEventListener("load",function(){t(),Wa(i)}),i.type=o,i.src=p(E).createScriptURL(e.url),Cs(i,e.url),document.body.appendChild(i),i;if(_.isFunction(d))return d(e),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=p(E).createScriptURL(e.url),Cs(i,e.url),a=i,t=_.wrap(t,function(e,t){if(M.removeNode(i),t)return n&&e(t),{};e.apply(this,_.toArray(arguments).slice(1))})}return s.appendChild(a),As(a,e.url,t),a}catch(l){return{}}var c},As=function(e,t,n){var i=!1;I(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||T.critical("Failed to load "+t+" within 10 seconds")},1e4))},ks=function(e){var t=JSON.parse(e.data),n=e.origin;T.debug(E.app_name+": Message: "+JSON.stringify(t)+" from "+n),qs(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},Os=function(e){Ms(Fs)(Ns(e))},Ns=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&&(t.type&&"string"==typeof t.type))return{data:t,origin:n,source:i}}catch(r){}};function Ms(t){return function(e){if(e&&Is(e.origin))return t.apply(this,arguments)}}var Ls={disconnect(e){},module:function(e){Ws(e.moduleURL)},debug:function(e){$s(ks)}},Ps=function(e,t){Ls[e]=t},Ds=function(e){delete Ls[e]},Fs=function(e){var t;e&&(t=e.data)&&I(Ls[t.type])&&Ls[t.type](t,e)},Us={},Gs=function(e){if(Us[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},Bs=function(e){return I(Us[e])},Hs=function(e){if(Us)for(var t in Us)if(0<=t.indexOf(e))return t;return null},zs=[],js=function(){var e;zs.length<1||(e=zs.shift(),Bs(e))||Rs(e,function(){Gs(e),js()})};var Ws=function(e){!function(e){var t={"/js/lib/ckeditor/ckeditor.js":1};_.each(["depres.js","tether.js","sortable.js","selection.js","selection.css","html2canvas.js","ckeditor/ckeditor.js"],function(e){t["/modules/pendo.designer/plugins/"+e]=1,t["/engage-app-ui/assets/classic-designer/plugins/"+e]=1});try{var n=new Li(e);return Is(n.origin)&&t[n.pathname]}catch(i){T.debug("Invalid module URL: "+e)}}(e)||(zs.push(e),1<zs.length)||js()},qs=function(e,t,n){var i,r=_.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Ts||Ks(),n="*"),t.guid=r,e&&_.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";T.info("Failed to postMessage: "+t)}return r},Vs=function(){return window!=window.top},Ks=function(){return new RegExp("^"+J(Wo).replace(/^https?:/,"https?:")).test(location.href)?window.parent:window.top},$s=function(e){var t;return I(window.addEventListener)&&_.isFunction(window.addEventListener)&&(t=Ms(e),window.addEventListener("message",t,!1)),function(){I(window.removeEventListener)&&_.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},Js=_.memoize(function(){return C.get("restrictP1Access")}),Ys=[],Xs=[],Zs=[],Qs=12e4,ed=16,td=1900,nd=65536,id=function(e){return!(!e||""===e)},rd=function(){return L.get()},od={flush:_.noop,flushBy:_.noop,flushEvents:ud,flushTrackEvents:ud,flushAgenticEvents:ud,flushSilos:ud,flushTrackEventSilos:ud,flushAgenticEventSilos:ud,flushBeacons:ud,flushNow:ud,flushLater:cd,flushEvery:ld,flushStop:pd,beacons:[],silos:[],trackEventSilos:[],agenticEventSilos:[],lock:Ra,unlock:function(){if(!ka())return hd(),Aa()}},ad=[];function sd(e){ad.push(e)}function dd(e){e=ad.indexOf(e);0<=e&&ad.splice(e,1)}function ud(t){try{_.each(ad,function(e){e.flush&&e.flush(t)})}catch(e){T.critical("unhandled error while flushing event cache",{error:e})}}function cd(e){return t=ud,n=e,n=parseInt(n,10)||0,t[n]||(i=Ut(function(){t(),t[n]()},n),t[n]=function(){Gt(i),delete t[n]});var t,n,i}function ld(e){var t;if(e=parseInt(e,10)||0,_.isObject(ld.intervals)||(ld.intervals={}),!ld.intervals[e])return t=window.setInterval(ud,e),ld.intervals[e]=function(){clearInterval(t),delete ld.intervals[e]}}function pd(){var e=_.values(ld.intervals).concat([ud]);_.map(e,function(e){_.isFunction(e)&&e()})}function hd(){_.each(ad,function(e){e.clear&&e.clear()}),pd()}function fd(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 gd(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(T.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(T.debug(t+"The signingKeyName is supplied but missing jwt."),!1):(e=e.jwt,!(!_.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(T.debug(t+"The jwt is invalid."),!1)):(T.debug(t+"Missing jwt and signingKeyName."),!1)}md=null;var md,vd={set:function(e){md=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==md?md:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!C.get("enableSignedMetadata")&&(n=gd(e,t),C.get("requireSignedMetadata")&&!n?(T.debug("Pendo will not "+t+"."),!1):n?fd(e.jwt):void T.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class yd{constructor(e){this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.firstFailureTime=null,this.sendFn=e}isEmpty(){return this.queue.length<=0}stop(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.firstFailureTime=null,this.stopped=!0,Gt(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),null==this.firstFailureTime&&(this.firstFailureTime=(new Date).getTime()),t}pass(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e),this.failures["delete"](e),this.firstFailureTime=null;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);e=this.incrementFailure(e);!this.stopped&&t&&(72e5<=(t=(new Date).getTime())-(this.firstFailureTime||t)?(this.onTimeout&&this.onTimeout(),this.firstFailureTime=null,this.retryLater(36e5)):this.retryLater(Math.min(1e3*Math.pow(2,e-1),3e5)))}retryNow(){Gt(this.timer),delete this.timer,this.next()}retryLater(e){this.timer=Ut(()=>{this.retryNow()},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()&&!this.allowDrainWhileFailed)return Dn.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 Dn.all(n)}}const bd="unsentEvents",wd=6048e5;function Sd(e){var n,t,i=Tn(bd);if(i){try{n=e,t=JSON.parse(i),_.each(t,(e,t)=>{n[t]=(n[t]||[]).concat(e)})}catch(r){}_n(Cn(bd))}}function Ed(e){const n=[];_.each(e,(e,t)=>{_.each(e,e=>{n.push({key:t,request:e})})});e=_.sortBy(n,e=>e.request.ts).slice(Math.ceil(n.length/2));const t={};return _.each(e,e=>{t[e.key]=t[e.key]||[],t[e.key].push(e.request)}),t}class Id{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(bd,{localStorageOnly:!0,duration:wd});try{this.events=JSON.parse(e.read(bd)||"{}")}catch(t){this.events={}}Sd(this.events),e.clear(bd)}write(e){let t=this.events;for(;0<_.size(t);){if(e.write(bd,JSON.stringify(t),wd))return;t=Ed(t)}e.clear(bd)}}var _d=new Id;const Cd=e=>_.reduce(e,(e,t)=>e+_.get(t,"detail.increment",1),0),Td="pendo-guide-loop-timeout",xd={ptm:"pendo-ptm-gif-failure",guide:"pendo-guide-gif-failure",poll:"pendo-poll-gif-failure",agentic:"pendo-agentic-gif-failure"},Rd={name:"pendo-guide-loop",debuggingOnly:!0},Ad={name:"pendo-event-captured",debuggingOnly:!0},kd="pendo-initialize",Od="pendo-teardown",Nd={};Nd[Td]={name:Td,type:"counter",instrument:Cd},_.each(xd,e=>{Nd[e]={name:e,type:"counter",instrument:Cd}}),Nd[Rd.name]=Rd,Nd[Ad.name]=Ad,Nd[kd]={name:kd},Nd[Od]={name:Od};var Md="debug-enabled";function Ld(){try{var e=x.read(Md)||JSON.parse(En(Md));return"boolean"==typeof e?{enabled:e}:e||{}}catch(t){return{}}}function Pd(e=!0){let t;return t=A&&A.getters&&A.getters["debugger/debuggingEnabled"]?A.getters["debugger/debuggingEnabled"]():!0===Ld().enabled,e?t:t?"Yes":"No"}class Dd{constructor(){this._isPerformanceApiAvailable=this._checkPerformanceApi(),this._sending=!1,this._measuringPerformance=!1,this._debugging=!1,this._setDebuggingBound=_.bind(this._setDebugging,this),this._sendBound=_.bind(this.send,this),this._totals={},this.marks=new Set,this.measures=new Set}initialize(){if(!C.get("performanceMetricsEnabled"))return _.noop;this._measuringPerformance=!0,this._markPerformance(kd),this._setDebugging(),R.debuggerLaunched.on(this._setDebuggingBound),R.appUnloaded.on(this._sendBound);var e=100*Math.random()<C.get("performanceMetricsSampleRate");return this._setSending(e),this.interval=setInterval(()=>{this._collect()},6e5),()=>{this.teardown()}}teardown(){this._markPerformance(Od),this.send(),this._measuringPerformance=!1,this._setDebugging(),R.debuggerLaunched.off(this._setDebuggingBound),R.appUnloaded.off(this._sendBound),this._clearMarksAndMeasures(),clearInterval(this.interval)}startTimer({name:e,debuggingOnly:t},n=null){t&&!this._debugging||this._markPerformance(e+"-start",{detail:n})}stopTimer({name:e,debuggingOnly:t},n=null){t&&!this._debugging||(this._markPerformance(e+"-stop",{detail:n}),this._measurePerformance(e,{detail:n}))}count(e,t=1){this._markPerformance(e,{detail:1<t?{type:"counter",increment:t}:null})}send(){try{this._collect();var e=_.map(this._totals,(e,t)=>({name:t,type:Nd[t].type,value:e,timestamp:Date.now()}));this._totals={},_.size(e)&&this._sending&&Ia(e)}catch(t){T.debug("Failed to send performance metrics: "+t)}}_collect(){if(this._isPerformanceApiAvailable)try{this._sending&&_.each(Nd,({name:e,instrument:t})=>{t&&0<(t=t(performance.getEntriesByName(e)))&&(this._totals[e]=(this._totals[e]||0)+t)})}finally{this._clearMarksAndMeasures()}}_checkPerformanceApi(){return Ne("performance.mark")&&Ne("performance.measure")&&Ne("performance.getEntries")&&Ne("performance.getEntriesByName")&&Ne("performance.clearMarks")&&Ne("performance.clearMeasures")}_shouldMeasurePerformance(){return this._isPerformanceApiAvailable&&this._measuringPerformance}_setDebugging(){this._debugging=Pd()}_setSending(e){this._sending=e}_markPerformance(e,t){this._shouldMeasurePerformance()&&(performance.mark(e,t),this.marks.add(e))}_measurePerformance(e,t){var n,i;this._shouldMeasurePerformance()&&(n=e+"-start",i=e+"-stop",performance.getEntriesByName(n).length)&&performance.getEntriesByName(i).length&&(performance.measure(e,n,i,t),this.measures.add(e))}_clearMarksAndMeasures(){this.marks.forEach(e=>{performance.clearMarks(e)}),this.marks.clear(),this.measures.forEach(e=>{performance.clearMeasures(e)}),this.measures.clear()}}const Fd=new Dd;var Ud="_PENDO_UNNAMED_";function Gd(e,t,n,i,r,o){var a,s;a=C.get("dropAnonymous"),s=fi(v()),!va||a&&s||(a=t,s=n,t=i,n=r,s={type:r=e,browser_time:S(),visitor_id:v({generate:!0}),account_id:Ai(),url:L.externalizeURL(s),props:a||{},eventProperties:n},s=Kn.addTracerIds(s),"track"===r&&(s.track_event_name=t||Ud),a=s,R.eventCaptured.trigger(a,o).cancel)||id(a.url)&&("track"===e?Qd:"agentic"===i?eu:Zd).push(a)}function Bd(){var r=_.toArray(arguments);return function(e,t){var n=r.concat([t]);!function i(t,e){t<n.length&&n[t](e,function(e){i(t+1,e)})}(0,e)}}let Hd=0;function zd(e,t){e.sequence=Hd++,t(e)}function jd(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 Wd(e,t){return Qo()?qd("account_id")(e,t):t(e)}function qd(s){return function(e,t){if(!e.length)return t(e);for(var n=_.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==_.get(e[r],s)){i=!1;break}if(i)return t(e);var o=e.slice(0,r),a=e.slice(r);t(o),t(a)}}function Vd(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function Kd(e,t,n){t=n[t-1]||_.last(n);return Math.ceil(e/t)}function $d(e,t){for(var n,i=0,r=(_.isFunction(t.overhead)?t.overhead:_.constant(0))(),o=0;o<e.length;++o){if(Kd(n=Vd(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(Kd(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(Kd(i+(n=Vd(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function Jd(){var e=vd.get();return _.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var Yd,Xd,Zd,Qd,eu,tu;function nu(e,t){return 2e3<e.length||!_.isEmpty(t)||!!C.get("sendEventsWithPostOnly")}function iu(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=E.squeezeAndCompress(e.slice()),e.JZB.length<=nd)||1===e.length?t(e):(n=e.length/2,iu(e.slice(0,n),t),void iu(e.slice(n),t))}function ru(e,t){ka()&&t(e)}function ou(e,t){!_.isNumber(e.browser_time)||isNaN(e.browser_time)?T.critical(new Error("Event missing browser_time")):t(e)}function au(e,t){R.eventCaptured.trigger(e).cancel||t(e)}function su(){return function(e,t){1===e.length&&e.JZB.length>nd?(T.debug("Couldn't write event"),wa("Single item is: "+e.JZB.length+". Dropping."),Ea(e.JZB)):t(e)}}function du(e,t){return ya(t.beacon+".gif",e,_.extend({v:ct,ct:S(),jzb:t.JZB},t.params,t.auth))}function uu(e,t){return ya(t.beacon+".gif",e,_.extend({v:ct,ct:S(),s:t.JZB.length},t.params))}function cu(i){return function(e,t){e.params=_.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length,e.ts=e[0].browser_time||S();var n=vd.get();_.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function lu(e,t){var n,i;Qo()&&(i=_.first(e),n=_.get(i,"account_id"),i=_.get(i,"oem_account_id"),ea(e.params||(e.params={}),n,i)),t(e)}function pu(e,t){var n=_.first(e),n=_.get(n,"props.source");n&&(e.params=_.extend({},e.params,{source:n})),t(e)}function hu(e){return JSON.stringify(_.extend({events:e.JZB},e.auth))}function fu(e){return Sa(e),e.status<200||300<=e.status?m.reject(new Error(`received status code ${e.status}: `+e.statusText)):m.resolve()}function gu(e,t){return Ca(du(e,t)).then(fu)}function mu(e,t){return fetch(uu(e,t),{method:"POST",keepalive:!0,body:hu(t),headers:{"Content-Type":"application/json"}}).then(fu)}function vu(e,t){var n=hu(t);return Ta(uu(e,t),n)?m.resolve():m.reject()}function yu(n){return function(e,t){return t.JZB?t.eventLength<=td&&!C.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&Ca.supported()?gu(e,t):t.auth?wo({method:"GET",url:du(e,t)}):_a(du(e,t)):n.allowPost&&t.eventLength<=nd?Ca.supported()?mu(e,t):Ta.supported()?vu(e,t):wo({method:"POST",url:uu(e,e=t),data:hu(e),headers:{"Content-Type":"application/json"}}):m.resolve():m.resolve()}}function bu(n){return function(e,t){if(t.JZB){if(t.eventLength<=td&&!C.get("sendEventsWithPostOnly",!1)){if(!t.auth&&Ca.supported())return gu(e,t);if(et.msie<=11)return wo({method:"GET",url:du(e,t),sync:!0})}if(t.eventLength<=nd&&n.allowPost){if(Ca.supported())return mu(e,t);if(Ta.supported())return vu(e,t);if(et.msie<=11)return wo({method:"POST",url:uu(e,e=t),data:hu(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return m.resolve()}}function wu(e,t){e.length=0;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);t(i)}function Su(e){return Bd(ru,Wd,iu,(t=e.shorten,t=_.defaults(t||{},{fields:[],siloMaxLength:nd}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],T.debug("Max length exceeded for an event"),_.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(T.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),iu,su(),cu(e),lu,pu,wu);var t}class Eu{constructor(e){this.queues=e}isEmpty(){return _.all(this.queues,e=>e.isEmpty())}stop(){_.each(this.queues,e=>e.stop())}push(){const t=_.toArray(arguments);_.each(this.queues,e=>e.push.apply(e,t))}drain(){const t=_.toArray(arguments);return m.all(_.map(this.queues,e=>e.drain.apply(e,t)))}}function Iu(a,s,d){s=s||yu(a),d=d||bu(a);e=a;var e=_.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=_.map(e,(i,r)=>{const o=new yd(function(e,t,n){return S()-e.ts>wd?m.resolve():(n&&(e.params=_.extend({},e.params,{rt:n})),a.localStorageUnload&&t?(0===r&&_d.push(a.beacon,e),m.resolve()):t&&o.failed()?m.reject():(t?d:s)(i,e))});return o.onTimeout=function(){Fd.count(xd[a.beacon])},o.allowDrainWhileFailed=!0,o.retryPending=!0,o}),e=new Eu(e);return _d.send(a.beacon,e),e}function _u(e,t){var n=C.get("analytics.excludeEvents");0<=_.indexOf(n,e.type)||!dn(e.type)||t(e)}class Cu{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=Iu(e)}pause({timeout:e=1e4,silent:t=!1,sendOnUnload:n=!1}={}){var i=_.uniqueId();const r=this["locks"];r[i]={sendOnUnload:n};var n=()=>{r[i]&&(t||R.trigger("ptm:unpaused"),Gt(o),delete r[i],this.flush())},o=Ut(n,e);return t||R.trigger("ptm:paused"),n}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()){const r=e||t;if(!_.some(this.locks,e=>!(r&&e.sendOnUnload))){i.push(n.slice()),n.length=0;n=i.slice();i.length=0;const o=[];_.each(n,function(e){this.processSilos(e,function(e){o.push(e)})},this),e||t?this.sendQueue.drain(o,e):this.sendQueue.push(...o)}}}}function Tu(e){var i,r,t=Su(e),n=Bd(ou,(r=e.beacon,function(e,t){var n=C.get("excludeNonGuideAnalytics")||an();"ptm"===r&&n||t(e)}),_u,zd,jd(e.cache),(i={overhead:Jd,lower:C.get("sendEventsWithPostOnly")?nd:td,upper:nd,compressionRatio:[2.5,3.75,5]},function(e,t){for(var n=$d(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=$d(e,i)}));return new Cu(_.extend({processSilos:t,packageSilos:n},e))}var xu=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||T.critical(e)}}},Ru=xu(function(e){var t,n,i;if((e=e||L.get())&&e!==Ru.lastUrl)return Ru.lastUrl=e,t=-1,Js()||(n=e,Vs()&&(i=Ks(),qs(i,{type:"load",url:n||location.toString()},"*"))),T.debug("sending load event for url "+e),n={load_time:t="undefined"!=typeof performance&&_.isFunction(performance.getEntriesByType)&&!_.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},Vs()&&(n.is_frame=!0),"*"!==(t=un())&&(n.allowed_storage_keys=_.keys(t)),Gd("load",n,e),cd(),R.urlChanged.trigger(),!0});function Au(){return E.normalizedUrl||function(e){try{var t=new Li(e),n=_.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return T.error("Invalid URL provided to normalize"),e}}(L.externalizeURL())}function ku(t,e,n={}){if(!I(t))return!0;var i=e||Au(),{logger:r,context:o,id:a}=n;if(Array.isArray(t)){if(0===t.length)return!0;for(let e=0;e<t.length;e++){var s=t[e];if(I(s))try{if(new RegExp(s).test(i))return!0}catch(d){r&&o&&a&&r.error(`Invalid page rule regex for ${o} (rule ${e}):`,a,d)}}}else if("string"==typeof t)try{return new RegExp(t).test(i)}catch(d){r&&o&&a&&r.error(`Invalid page rule regex for ${o}:`,a,d)}return!1}function Ou(e,t){return ku(e,t,{logger:T,context:"guide",id:"unknown"})}Ru.reset=function(){Ru.lastUrl=null};var Nu=[],Mu=[],Lu={};const Pu={ALL:"*",DEFAULT:"default"};function y(e){e=function(e={}){let t=e.channel;return e.hasOwnProperty("channel")?null==t&&(t=Pu.DEFAULT):t=Pu.ALL,t===Pu.ALL?()=>!0:t===Pu.DEFAULT?e=>null==e.channel:e=>e.channel==t}(e);return _.filter(Nu,e)}function Du(e){return Fu(y(e))}function Fu(e){return _.filter(e,function(e){return!e.isFrameProxy})}function Uu(e){_.isArray(e)?(Nu=e,R.guideListChanged.trigger({guideIds:_.pluck(e,"id")})):T.info("bad guide array input to `setActiveGuides`")}function Gu(e={}){return _.any(y(e),function(e){return e.isShown()})}var Bu=function(){let n=[];return{addGuide:e=>{var t;_.isEmpty(e)||(n=n.concat(e),_.each(n,e=>e.hide&&e.hide()),e=y(),(t=_.difference(e,n)).length<e.length&&(Uu(t),A.dispatch("frames/changeGuideList",t)))}}}();function Hu(t,n){return _.find(y(),function(e){return _.get(e,t)===n})||null}function b(e){return Hu("id",e)}function zu(e){return Hu("name",e)}function ju(e,t){return e&&e.id?(e=b(e.id)).findStepById(t):null}var Wu="_pendo-guide-tt_",qu="_pendo-guide-mobile-tt_",Vu=_.partial(_.get,_,"attributes.resourceCenter"),Ku=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},$u=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},Ju=function(e){return!!_.get(e,"attributes.form")},Yu=function(e){var t="tooltip";return _.get(e,"type")===t||_.get(e,"attributes.calculatedType")===t||_.get(e,"attributes.buildingBlockLayoutType",_.get(e,"buildingBlockLayoutType"))===t};function Xu(){return"undefined"!=typeof selmo&&!!selmo.isPreviewing}function Zu(){return!!(Xu()&&Ba().width<=320)||et.isMobileUserAgent()}function Qu(e=document){var t=Qu.attachPoint;if(null==t){var n=C.get("guides.attachPoint");if(_.isString(n)){try{t=lo(n)[0]}catch(i){T.info('Error finding guide attach point "'+n+'"')}t=t||document.createElement("div")}else t=!!_.isFunction(n)&&n();Qu.attachPoint=t}return t||Va(e)}var ec=function(e){var t=e.getGuide();if(t){t.placeBadge();t=Lu[e.guideId];if(t){t=t.element();if($a(t)&&t.id==="_pendo-badge_"+e.id)return t}}},tc=function(e,t){var n;return e?(n=e.getGuide(),n="building-block"===_.get(n,"attributes.type")||!$u(n),!e.overrideElement&&n&&(e.overrideElement=ec(e)),e.targetElement=nc(e,t),e.overrideElement||e.targetElement):(T.info("Can't get element for null step"),null)},nc=function(e,t){e=e.elementPathRule||null,e=e?lo(e,t):[Va(t)];return 0===e.length?null:_.first(e)};function ic(e){var t=_.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function rc(e,t,n){var i,r,o,e=ja(e),t=ja(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!==Ha(a)||t.fixed||(o=function(e,t,n,i){var r={x:e.left+e.width-t.width,y:0};r.y="top"===n?e.top:e.top+e.height-t.height;r.y=Math.max(r.y,0),r.x=Math.max(r.x,0),_.contains([es.X,es.BOTH],i)&&(r.x=0);_.contains([es.Y,es.BOTH],i)&&(r.y=0);return r}(a,Ba(),n,Qa(Va(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}var oc=["BUTTON","A","IMG"],ac=["advanceGuide","previousStep","dismissGuide","openLink","showGuide","launchGuide","guideSnoozed","goToStep","submitPoll","submitPollAndGoToStep","confirmation"];function sc(e){return _.isObject(e)&&_.isString(e.action)&&_.contains(ac,e.action)}function dc(e,t,n,i,r){var o,a=_.toArray(arguments).slice(1),s=e.apply(this,a);return n||is(o=Qu())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function uc(){return A.getters["frames/isLeader"]()}function cc(e){return A.dispatch("frames/updateFrameVisibility",{visibility:e})}const lc={validateGuide:1,validateLauncher:1,validateGlobalScript:1},pc={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1,onEventCaptured:1,segmentFlagsUpdated:1,segmentFlagsReady:1,segmentFlagsError:1},hc={ready:1,segmentFlagsUpdated:1,segmentFlagsReady:1,segmentFlagsError:1},fc=["ready","onClickCaptured","onEventCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","segmentFlagsUpdated","segmentFlagsReady","segmentFlagsError","validateGuide","validateLauncher","validateGlobalScript"];function gc(i){const e=_.reduce(fc,function(e,r){if(pc[r]){const t=function(e){return vc[r].apply(vc[r],e.data)};i[r].on(t),e.push(()=>i[r].off(t))}if(hc[r]){const n=function(t){{var n=r;t=t.data[0];let e;try{e=new CustomEvent("pendo_"+n,{detail:t})}catch(i){if(!document.createEvent)return;(e=document.createEvent("Event")).initEvent("pendo_"+n,!0,!0),e.detail=t}document.dispatchEvent(e)}};i[r].on(n),e.push(()=>i[r].off(n))}return e},[]);return()=>_.each(e,e=>e())}mc=Zn.call({}),_.each(fc,function(n){mc[n]=function(e){var t;return _.isFunction(e)?mc.on(n,e):(t=lc[n]?"triggerAsync":"trigger",mc[t].apply(mc,[n].concat(_.toArray(arguments))))}});var mc,vc=mc;var yc={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 bc(e){return e.replace(/^https?:\/\//,"")}function wc(){return Qo()?undefined:C.getLocalConfig("contentHost")||C.getHostedConfig("contentHost")}function Sc(e){var n,t,i,r;return(n=wc())&&e?(n=/:\/\//.test(t=n)||/^\//.test(t)?t:"https://"+t,t=/(^|\.)app\./,i=bc(at),t=t.test(i)?i.replace(t,"$1cdn."):bc(st),i=bc(st),r=t.replace(/(^|\.)cdn\./,"$1static."),r=[ot&&J(ot)+"-\\d+\\.storage\\.googleapis\\.com",rt&&J(rt)+"\\.storage\\.googleapis\\.com",t&&"content-\\d+\\."+J(r),t&&J(t),i&&i!==t&&J(i)],_.reduce(r,function(e,t){return t?e.replace(new RegExp("(https:)?\\/\\/"+t,"g"),n):e},e)):e}function Ec(e){return wc()?JSON.parse(Sc(JSON.stringify(e))):e}var Ic=function(){var u={},c=_.compose(function(e){var t=function(){var e=J(C.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&T.debug("Failed to verify URL: "+e+" vs "+t),e},Sc);const d=[function(e,t,n){return e.replace(`<% if (typeof guide !== 'undefined') { %>
4
+ function loadAgent(B){let s;const d={createScriptURL:e=>e,createHTML:e=>e};function p(e){return s||(s=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",d):d),e.trustedTypesPolicy=s),s}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}},Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var H,o,z,j,q,W,V,e={exports:{}};function K(e){e?(W[0]=W[16]=W[1]=W[2]=W[3]=W[4]=W[5]=W[6]=W[7]=W[8]=W[9]=W[10]=W[11]=W[12]=W[13]=W[14]=W[15]=0,this.blocks=W):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=e,H="object"==typeof window?window:{},Se=!H.JS_SHA1_NO_COMMON_JS&&t.exports,o="0123456789abcdef".split(""),z=[-2147483648,8388608,32768,128],j=[24,16,8,0],q=["hex","array","digest","arrayBuffer"],W=[],V=function(t){return function(e){return new K(!0).update(e)[t]()}},K.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===H.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]<<j[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<j[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<j[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<j[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<j[3&n++],a[n>>2]|=(128|t>>12&63)<<j[3&n++]),a[n>>2]|=(128|t>>6&63)<<j[3&n++]),a[n>>2]|=(128|63&t)<<j[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}},K.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=z[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())},K.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},K.prototype.toString=K.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]},K.prototype.array=K.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]},K.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},n=function(){var t=V("hex");t.create=function(){return new K},t.update=function(e){return t.create().update(e)};for(var e=0;e<q.length;++e){var n=q[e];t[n]=V(n)}return t}(),Se?t.exports=n:H.sha1=n;var $=l(e.exports);function J(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y(e){return c.uint8ToBase64($.create().update(e).digest())}var X={};function Z(n,i=[],r=[],o=!0){if(n){if(0<r.length){var a=Y(n);for(let e=0,t=r.length;e<t;++e)if(r[e]===a)return!0}if(0<i.length)for(let t=0,e=i.length;t<e;++t){let e=i[t];if("object"==typeof e&&e.value&&(e=e.regexp?(e.value.startsWith("/")&&e.value.endsWith("/")&&(e.value=e.value.substring(1,e.value.length-1)),new RegExp(e.value)):e.value),(e="string"==typeof(e=o&&e instanceof RegExp?(s=e,u=d=void 0,d=s.ignoreCase?"i":"",u="re:"+d+":"+s.source,X[u]||(X[u]=new RegExp("^(?:"+s.source+")(?::\\d+)?$",d)),X[u]):e)?new RegExp("^"+J(e)+"$"):e)instanceof RegExp&&e.test(n))return!0}var s,d,u}return!1}function Q(e){return String(e||"").replace(/^[a-z][a-z0-9+.-]*:\/\//i,"")}function ee(e){e=(e||"").split(":")[0].toLowerCase();if(!e||/^[\d.]+$/.test(e)||0<=e.indexOf(":"))return[];for(var t=e.split("."),n=[],i=0;i<=t.length-2;i++)n.push(t.slice(i).join("."));return n}var E,te="stagingServerHashes",ne="stagingDomains",ie={};function re(e){return e.loadAsModule}function oe(e){return"staging"===e.environmentName}function ae(e){return"extension"===e.installType}var se=/^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$/;function de(e){return se.test(e.src)}function ue(e=[]){e=function(t=[]){for(let e=0;e<t.length;e++)if(de(t[e]))return t[e]}(e);if(e)return e.src.replace(/\.js$/,"-staging.js")}function ce(e,t,n){e=ue(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function le(e,t){return!!(e=e||ie)&&(!!oe(e)||Z((t=t||window.location).host,e.stagingServers,e[te],!1)||function(e,t=[]){if(t.length)for(var n=ee(e),i=0;i<n.length;i++)if(0<=t.indexOf(Y(n[i])))return!0;return!1}(t.host,e[ne]))}var pe=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function he(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function fe(e){if(!e._q)for(var t=pe,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){he(t,e,arguments)}}(t[n],e)}function ge(e,t,n){if(!ae(i=e)&&!oe(i)&&le(i)){i=ce(e,!0,n);if(i)return fe(t),ve(i,t,e.pendoGlobalKey),!0}var i;return!1}function me(e,t,n){if(r=n,!ae(i=e)&&!i.unminified&&r){i=ce(e,!1,n);if(i)return fe(t),ve(i,t,e.pendoGlobalKey),!0}var i,r;return!1}function ve(e,t,n){var i=document.createElement("script"),t=(i["async"]=!0,i.src=p(t).createScriptURL(e),n&&i.setAttribute("data-pendo-global-key",n),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(i,t):(document.head||document.body).appendChild(i)}function ye(e){ie=e}function be(){return void 0===B?{}:B}function we(e){return ie[e]}var Se="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};Ee(Se.setTimeout,Se);function Ee(e,t){return"function"==typeof e.bind?e.bind(t):e}var 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 Ee(e[t],e)}(Se);Ie(Se.clearTimeout,Se);function Ie(e,t){return"function"==typeof e.bind?e.bind(t):e}var _e,Gt=function(e){var t="clearTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return Ie(e[t],e)}(Se),_=l(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Bt&&Bt.global===Bt&&Bt||Function("return this")()||{},i=Array.prototype,D=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,U=i.push,d=i.slice,l=D.toString,G=D.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),B=Array.isArray,H=Object.keys,z=Object.create,j=t&&ArrayBuffer.isView,q=isNaN,W=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),K=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],$=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 J(e){return void 0===e}function Y(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var X=r("String"),Z=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 Z(e)&&q(e)}function de(e){return function(){return e}}function ue(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=$}}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=K.length,i=e.constructor,r=p(i)&&i.prototype||D,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=K[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(H)return H(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return V&&fe(e,n),n}function ge(e,t){var n=y(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function c(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=l.call(e);if(r!==l.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return F.valueOf.call(e)===F.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 V&&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 Ee(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Ie(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function _e(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 Ce=_e(u),s=_e(y),Te=_e(u,!0);function xe(e){var t;return o(e)?z?z(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function Re(e){return f(e)?e:[e]}function S(e){return b.toPath(e)}function Ae(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function ke(e,t,n){e=Ae(e,S(t));return J(e)?n:e}function Oe(e){return e}function E(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return Ae(e,t)}}function I(r,o,e){if(void 0===o)return r;switch(null==e?3:e){case 1:return function(e){return r.call(o,e)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return function(){return r.apply(o,arguments)}}function Me(e,t,n){return null==e?Oe:p(e)?I(e,t,n):(o(e)&&!f(e)?E:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function _(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Pe(){}function De(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=Re,b.iteratee=Le;var C=Date.now||function(){return(new Date).getTime()};function Fe(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=Fe(t),t=Fe(Ee(t)),Ge=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Be=/(.)^/,He={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ze=/\\|'|\r|\n|\u2028|\u2029/g;function je(e){return"\\"+He[e]}var qe=/^\s*(\w|\$)+\s*$/;var We=0;function Ve(e,t,n,i,r){return i instanceof t?(i=xe(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var T=c(function(r,o){var a=T.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),i=0;i<t;i++)n[i]=o[i]===a?arguments[e++]:o[i];for(;e<arguments.length;)n.push(arguments[e++]);return Ve(r,s,this,this,n)};return s}),Ke=(T.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return Ve(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),x=ue(v);function R(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(x(s)&&(f(s)||ae(s)))if(1<t)R(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 $e=c(function(e,t){var n=(t=R(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Ke(e[i],e)}return e});var Je=c(function(e,t,n){return Ut(function(){return e.apply(null,n)},t)}),Ye=T(Je,b,1);function Xe(e){return function(){return!e.apply(this,arguments)}}function Ze(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=T(Ze,2);function et(e,t,n){t=_(t,n);for(var i,r=y(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function tt(o){return function(e,t,n){t=_(t,n);for(var i=v(e),r=0<o?0:i-1;0<=r&&r<i;r+=o)if(t(e[r],r,e))return r;return-1}}var nt=tt(1),it=tt(-1);function rt(e,t,n,i){for(var r=(n=_(n,i,1))(t),o=0,a=v(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function ot(o,a,s){return function(e,t,n){var i=0,r=v(e);if("number"==typeof n)0<o?i=0<=n?n:Math.max(n+r,i):r=0<=n?Math.min(n+1,r):n+r+1;else if(s&&n&&r)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(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=(x(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function A(e,t,n){if(t=I(t,n),x(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 k(e,t,n){t=_(t,n);for(var i=!x(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=I(t,i,4),s=n,d=!x(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=_(i,t),A(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=_(t,n);for(var i=!x(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=_(t,n);for(var i=!x(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 x(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]),k(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Ae(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return k(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=x(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&o<n&&(o=n);else i=_(i,t),A(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?d.call(e):X(e)?e.match(vt):x(e)?k(e,Oe):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=x(e)?e:w(e))[De(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=De(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function M(o,t){return function(n,i,e){var r=t?[[],[]]:{};return i=_(i,e),A(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var wt=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),St=M(function(e,t,n){e[n]=t}),Et=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),It=M(function(e,t,n){e[n?0:1].push(t)},!0);function _t(e,t,n){return t in n}var Ct=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=I(i,t[1])),t=u(e)):(i=_t,t=R(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}),Tt=c(function(e,n){var t,i=n[0];return p(i)?(i=Xe(i),1<n.length&&(t=n[1])):(n=k(R(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Ct(e,i,t)});function xt(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Rt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:xt(e,e.length-t)}function L(e,t,n){return d.call(e,null==t||n?1:t)}var At=c(function(e,t){return t=R(t,!0,!0),O(e,function(e){return!N(t,e)})}),kt=c(function(e,t){return At(e,t)});function Ot(e,t,n,i){Y(t)||(i=n,n=t,t=!1),null!=n&&(n=_(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var 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(R(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Pt(e,t){return e._chain?b(t).chain():t}function Dt(n){return A(Ie(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return U.apply(e,arguments),Pt(this,t.apply(b,e))}}),b}A(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Pt(this,e)}}),A(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Pt(this,e=null!=e?t.apply(e,arguments):e)}});var P=Dt({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:J,isBoolean:Y,isElement:function(e){return!(!e||1!==e.nodeType)},isString:X,isNumber:Z,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&W(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||X(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:B,isWeakSet:a,keys:y,allKeys: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:Ee,functions:Ie,methods:Ie,extend:Ce,extendOwn:s,assign:s,defaults:Te,create:function(e,t){return e=xe(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:ke,has:function(e,t){for(var n=(t=S(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=_(t,n);for(var i=y(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Oe,constant:de,noop:Pe,toPath:Re,property:Ne,propertyOf:function(t){return null==t?Pe:function(e){return ke(t,e)}},matcher:E,matches:E,times:function(e,t,n){var i=Array(Math.max(0,e));t=I(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:De,now:C,escape:Ue,unescape:t,templateSettings:Ge,template:function(o,e,t){e=Te({},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(ze,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(!qe.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{throw new Error("Function constructor not supported")}catch(n){throw n.source=s,n}return(e=function(e){return(void 0).call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=S(t)).length;if(!i)return p(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++We+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:T,bind:Ke,bindAll:$e,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:Je,defer:Ye,throttle:function(n,i,r){var o,a,s,d,u=0,c=(r=r||{},function(){u=!1===r.leading?0:C(),o=null,d=n.apply(a,s),o||(a=s=null)}),e=function(){var e=C(),t=(u||!1!==r.leading||(u=e),i-(e-u));return a=this,s=arguments,t<=0||i<t?(o&&(Gt(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(){Gt(o),u=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,d,u=function(){var e=C()-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=C(),r||(r=Ut(u,n),i&&(s=t.apply(d,a))),s});return e.cancel=function(){Gt(r),r=a=d=null},e},wrap:function(e,t){return T(t,e)},negate:Xe,compose:function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:Ze,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,E(t))},each:A,forEach:A,map:k,collect:k,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Xe(_(t)),n)},every:pt,all:pt,some:ht,any:ht,contains:N,includes:N,include:N,invoke:ft,pluck:gt,where:function(e,t){return O(e,E(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=x(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&n<o&&(o=n);else i=_(i,t),A(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=_(i,t),gt(k(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:wt,indexBy:St,countBy:Et,partition:It,toArray:yt,size:function(e){return null==e?0:(x(e)?e:y(e)).length},pick:Ct,omit:Tt,first:Rt,head:Rt,take:Rt,initial:xt,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 R(e,t,!1)},without:kt,uniq:Ot,unique:Ot,union:Nt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=v(e);i<r;i++){var o=e[i];if(!N(t,o)){for(var a=1;a<n&&N(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:At,unzip:Mt,transpose:Mt,zip:Lt,object:function(e,t){for(var n={},i=0,r=v(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n=n||(t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(d.call(e,i,i+=t));return n},mixin:Dt,"default":b}),Ft=P.toPath;return P.mixin({toPath:function(e){return P.isString(e)?e.split("."):Ft(e)}}),P._=P}());function I(e){return!(null==e)}function Ce(e){return _.isFunction(e)||_.isRegExp(e)?e:_.isArray(e)?_.map(e,Ce):_.isObject(e)?_.reduce(e,function(e,t,n){return e[n]=Ce(t),e},{}):e}function Te(){var e=window.pendo_options;if("[object Object]"===Object.prototype.toString.call(e))return e}var C=function(){var i=_.all,r=_.each,o=_.filter,a=_.first,s=_.find,n=_.map,d=_.pluck,u="snippet",c="pendoconfig",l="global",p="default";const h={};function e(e,t=[c],n,i,r=[]){var o;e&&!h[e]&&(o={name:e,aliases:r=_.isArray(r)?r:[],defaultValue:n,supportedSources:t},null!=i&&(o.useAnySource=i),h[e]=o,0<r.length)&&_.each(r,function(e){h[e]===undefined&&(h[e]=o)})}e("additionalPublicAppIds",[c,u],undefined,undefined,["additionalApiKeys"]),e("allowedOriginServers"),e("allowedOriginServerHashes"),e("enforceAllowedOriginServers",[u,c],!1),e("allowMixedApplicationFrames",[u,c],!0),e("allowMixedApiKeyFrames",[u,c],!0),e("annotateUrl",[u]),e("publicAppId",[c,u],undefined,undefined,["apiKey"]),e("assetHost",[u,c]),e("autoFrameInstall",[u,c],!1),e("blockWebSDKMetadata",[c],!1,undefined,["blockAgentMetadata"]),e("contentHost",[u,c]),e("cookieDomain",[u,c]),e("dataHost",[u,c]),e("disableAutoInitialize"),e("initializeWhenVisible",[c],!1),e("disableCookies",[u,c]),e("disablePendo",[u,c],!1),e("disablePersistence",[u,c]),e("enableSignedMetadata",[c],!1),e("forceAnonymous",[u,c],!1),e("forcedLeader",[u,c],!1),e("frameIdentitySync",[u,c],!1),e("frameIdentityTopDownOnly",[u,c],!0),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],!0),e("preferMutationObserver",[u,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[u,c],!0),e("promotedWebSDKMetadataConfigurations",[c],undefined,undefined,["promotedAgentMetadataConfigurations"]),e("queryStringWhitelist",[u]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[u]),e("selfHosted"),e("selfHostedWebSDKUrl",[u,c],undefined,undefined,["selfHostedAgentUrl"]),e("sendEventsWithPostOnly",[u,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[c,u],[],!0),e("analytics.excludeEvents",[u,c],[]),e("analytics.localStorageUnload",[u,c],!1),e("enableDebugEvents",[u,c]),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[u,c],!0),e("excludeAllText",[c,u],!1,!0),e("excludeNonGuideAnalytics",[u,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptPreventDefault",[u,c],!0),e("interceptStopPropagation",[u,c],!0),e("syntheticClicks.elementRemoval",[u,c],!1,undefined,["interceptElementRemoval"]),e("syntheticClicks.targetChanged",[u,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[u,c]),e("cacheGuides",[u,c],!1),e("cacheGuidesTimeout",[c],6e5),e("disableDesigner",[c,u],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[u,c],!1),e("disableGuidePseudoStyles",[u,c],!1),e("disableImportantStyleAttributes",[u,c],!1),e("useInertForBackdrop",[u,c],!1),e("disablePrefetch",[u,c]),e("doNotTrackGuides",[u,c]),e("enableDesignerKeyboardShortcut",[u]),e("enableGuideTimeout",[c,u],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,u],1e4),e("guideValidation",[u,c],!1),e("guides.attachPoint",[u]),e("guides.delay",[u],!1,undefined,["delayGuides"]),e("guides.disabled",[u],!1,undefined,["disableGuides"]),e("guides.ejectOnTimeout",[u,c],!1),e("guides.globalScripts",[u,c],[]),e("guides.timeout",[u],undefined,undefined,["guideTimeout"]),e("guides.tooltip.arrowSize",[u]),e("inlineStyleNonce",[u]),e("leaderApplication",[u,c],[]),e("leaderKey",[u,c],[]),e("preventCodeInjection",[c,u,l],!1,!0),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("secureDesignerConnect",[u,c],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("webSDKDebuggerPluginLoader",[c],undefined,undefined,["agentDebuggerPluginLoader"]),e("allowPartnerAnalyticsForwarding",[u],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerWebSDKPluginsLoader",[c,u],undefined,undefined,["designerAgentPluginsLoader"]),e("guideContentLoader",[c]),e("trainingPartner"),e("oemAccountId",[u]),e("whiteLabelSettings",[c]),e("errorClickLogging",[c],!1),e("enableAllEmbeddedGuideEvents",[c],!1),e("formValidation",[c],!1),e("performanceMetricsEnabled",[u,c],!0),e("performanceMetricsSampleRate",[u,c],10);var f={};function g(e){return h[e]||{name:e}}function m(t,n){if(n){const i=n();let e=_.get(i.lookup,(n=t,_.get(n,"key")||_.get(n,"name")));return I(e)||(n=_.find(t.aliases||[],function(e){e=_.get(i.lookup,e);if(I(e))return e}))&&(e=_.get(i.lookup,n)),I(e)?e:undefined}}function v(e,t){var n=m(e,f[t]);return new w(e.name,n,t)}function y(e,t){return t=t||_.get(e,"supportedSources",[u,c,l]),o(n(t,_.partial(v,e)),function(e){return I(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||_.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&I(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:_e||Te(),name:u}},f[c]=function(){return{lookup:ie,name:c}},f[l]=function(){return{lookup:E,name:l}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get(e,t){return b(e,t).value},getLocalConfig(e,t){return arguments.length?b(e,t,[u]).value:Ce(_e)},getHostedConfig(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig(e){_e=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()}}}();const xe="extension",Re="native";function Ae(){return C.get("installType")||be().installType||Re}function ke(){return Ae()===xe}function Oe(e){return/native/.test(e)}const Ne=e=>{e=_.get(window,e);return e&&Oe(e)};function Me(e,t){return e=e||10,(t=!isNaN(Pe)&&(!t||Pe<t))&&Le<e}const Le=function(e){let t=De((/msie (\d+)/.exec(Fe(e))||[])[1]);isNaN(t)&&(t=De((/trident\/.*; rv:(\d+)/.exec(Fe(e))||[])[1]));return t}(Ue()),Pe=function(e,t){let n=De((/trident\/(\d+)/.exec(Fe(e))||[])[1]);isNaN(n)&&7==t&&(n=3);return n}(Ue(),Le);function De(e){return parseInt(e,10)}function Fe(e){return _.isString(e)?e.toLowerCase():e}function Ue(){return(window.navigator||{}).userAgent}const Ge={},Be=De((/android (\d+)/.exec(Fe(Ue()))||[])[1]),He=/Boxee/i.test(Ue()),ze=window.document||{},je=ze.documentMode;let qe;var We,Ve=/^(Moz|webkit|O|ms)(?=[A-Z])/,t=ze.body&&ze.body.style;let Ke=!1,$e=!1;if(t){for(const L_ in t)if(We=Ve.exec(L_)){qe=(qe=We[0]).substr(0,1).toUpperCase()+qe.substr(1);break}qe=qe||"WebkitOpacity"in t&&"webkit",Ke=!!("transition"in t||qe+"Transition"in t),$e=!!("animation"in t||qe+"Animation"in t),!Be||Ke&&$e||(Ke=_.isString(ze.body.style.webkitTransition),$e=_.isString(ze.body.style.webkitAnimation))}var n=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id;const Je=_.memoize(function Je(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&_.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&_.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&_.get(n,"pushState.writable",!0)&&_.get(n,"replaceState.writable",!0),i=!(Be<4);return!(!e||t||!n||!i||He||ke())});const Ye=/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i,Xe=/Android/i,Ze=/Mobile/i,Qe=/Android [\d.]+; K\)|tablet|sm-t|nexus (7|9|10)|xoom|; kf|; t1|lenovo tab/i;const et={supportsHistoryApi:Je,supportsHashChange:function(){var e="onhashchange"in window,t=!je||7<je;return!(!e||!t||ke())},supportsPopover:function(){return!!window.HTMLElement&&Oe(window.HTMLElement.prototype.showPopover)},hasEvent(e){var t;return("input"!=e||9!=Le)&&(_.isUndefined(Ge[e])&&(t=ze.createElement("div"),Ge[e]="on"+e in t),Ge[e])},vendorPrefix:qe,transitions:Ke,animations:$e,android:Be,msie:Le,msieDocumentMode:je,safari:0<=(e=Ue()).indexOf("Safari")&&([e=Ue()]=[e],!(0<=e.indexOf("Chrome")||0<=e.indexOf("Chromium"))),sri:"integrity"in document.createElement("script"),addEventListener:_.isFunction(window.addEventListener),MutationObserver:Oe(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:_.memoize(function(){const e=Ue();return Ye.test(e)&&!(Xe.test(e)&&!Ze.test(e)&&Qe.test(e))}),isChromeExtension:n};var tt=function(){return!isNaN(Le)&&11!=Le&&"CSS1Compat"!==document.compatMode},nt=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,Le<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+E.TOOLTIP_ARROW_SIZE),e.arrow.top=i-E.TOOLTIP_ARROW_SIZE,10==Le?e.arrow.top--:Le<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=10+E.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*E.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-E.TOOLTIP_ARROW_SIZE),e.arrow.border.top=e.arrow.top+n,e.arrow.border.left=e.arrow.left):("left"==e.arrow.hbias?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left-1):"right"==e.arrow.hbias&&(e.left=Math.max(0,t.left-r-E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left+1),e.top=t.top+t.height/2-i/2,e.arrow.top=i/2-E.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e};let it="",rt="",ot="",at="",st="",dt="",ut="",ct="2.350.2_",lt="2.350.2",pt="xhr";const ht=function(){return tt()?ct+"+quirksmode":ct};var ft=/^\s+|\s+$/g;function gt(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 mt=(mt=String.prototype.trim)||function(){return this.replace(ft,"")},t={exports:{}};!function(){var Z=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===Z?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,D,n=this.input;switch(this.d){case 0:for(t=0,D=n.length;t<D;){var F,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===D,o=Z,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),F=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&F,a[s++]=F>>>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,H,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,T,x,R,q=h,W=f,A=new(ee?Uint32Array:Array)(q+W),k=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<q;N++)A[_++]=m[N];for(N=0;N<W;N++)A[_++]=v[N];if(!ee)for(N=0,T=O.length;N<T;++N)O[N]=0;for(N=x=0,T=A.length;N<T;N+=_){for(_=1;N+_<T&&A[N+_]===A[N];++_);if(C=_,0===A[N])if(C<3)for(;0<C--;)O[k[x++]=0]++;else for(;0<C;)(R=C-3<(R=C<138?C:138)&&R<C?C-3:R)<=10?(k[x++]=17,k[x++]=R-3,O[17]++):(k[x++]=18,k[x++]=R-11,O[18]++),C-=R;else if(k[x++]=A[N],O[A[N]]++,--C<3)for(;0<C--;)k[x++]=A[N],O[A[N]]++;else for(;0<C;)C-3<(R=C<6?C:6)&&R<C&&(R=C-3),k[x++]=16,k[x++]=R-3,O[16]++,C-=R}for(e=ee?k.subarray(0,x):k.slice(0,x),y=oe(O,7),S=0;S<19;S++)j[S]=y[z[S]];for(g=19;4<g&&0===j[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(j[S],3,Q);for(S=0,H=e.length;S<H;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],K=I[0],$=I[1],J=L[0],Y=L[1],P=0,X=p.length;P<X;++P)if(M=p[P],E.b(K[M],$[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b(J[V],Y[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,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]===Z&&(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,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,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(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call(t.exports);var vt={Deflate:l(t.exports).Zlib.Deflate},yt="base64url";function bt(e,t){t=t||yt;e=gt("string"==typeof e?e:JSON.stringify(e)),e=new vt.Deflate(e).compress();return t===yt?c.uint8ToBase64(e):e}function wt(e,t,n=window){var i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}e={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(e.exports);var St={CRC32:l(e.exports).Zlib.CRC32},Et=function(e,n){var i;return 200<=(n=n||0)?e:_.isArray(e)?_.map(e,function(e){return Et(e,n+1)}):!_.isObject(e)||_.isDate(e)||_.isRegExp(e)||_.isElement(e)?_.isString(e)?_.escape(e):e:(i={},_.each(e,function(e,t){i[t]=Et(e,n+1)}),i)},It=function(e){e=gt(e);return c.uint8ToBase64(e)},_t=function(e){if(void 0!==e)return e=gt(e=_.isString(e)?e:JSON.stringify(e)),St.CRC32.calc(e,0,e.length)};function Ct(e){return e[Math.floor(Math.random()*e.length)]}function Tt(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=Ct(i);return n}var xt=function(e,t,n){return!(!I(e)||!I(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function S(){return(new Date).getTime()}function Rt(){return"undefined"!=typeof $A&&_.isFunction($A.get)&&_.isString($A.get("$Browser.formFactor"))}function At(e,t=window){return wt(_,e,t)}n=window;var kt=_.isFunction(n.isFinite)?n.isFinite:n.Number&&_.isFunction(n.Number.isFinite)?n.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function Ot(e){return"number"==typeof e&&kt(e)&&Math.floor(e)===e}function Nt(e,t,n,i){(t=t||{}).maxRetries=Ot(t.maxRetries)?t.maxRetries:10,t.delay=Ot(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,Nt(e,t,o,a)},t.delay):(a||function(){})()}var Mt=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function Lt(e){return _.isObject(e)&&_.isFunction(e.then)}function Pt(e){return e&&e.hasOwnProperty("wrappedJSObject")?e.wrappedJSObject:e}var Dt,Ft=_.isFunction(Se.decodeURIComponent)?Se.decodeURIComponent:_.identity,Ht=_.isFunction(Se.encodeURIComponent)?Se.encodeURIComponent:_.identity;class zt{constructor(){this.listeners={}}addEventListener(e,t){let n=this.listeners[e];n||(n=[],this.listeners[e]=n),_.findIndex(n,e=>t===e)<0&&n.push(t)}removeEventListener(e,t){var n,i=this.listeners[e];i&&0<=(n=_.findIndex(i,e=>t===e))&&(i.splice(n,1),i.length||delete this.listeners[e])}dispatchEvent(t){var e=this.listeners[t.type];e&&_.each(e,e=>{e(t)})}}class jt{constructor(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}toString(){let e=this.message;return this.error&&e!==this.error.message&&(e=e+":"+this.error.message),this.attributes&&(e+=": "+_.map(this.attributes,(e,t)=>t+"="+e)),e}hashCode(){return this.toString()}}(t=Dt=Dt||{}).Debug="debug",t.Info="info",t.Warn="warn",t.Error="error",t.Critical="critical";class qt extends zt{write(e,t,n){this.dispatchEvent(new jt(t,e,n))}writeError(e,t,n){let i,r;_.isString(e)?(i=e,r={message:i}):(r=e,i=r.message),n&&n.error&&(r=n.error,delete n.error);e=new jt(t,i,n);e.error=r,this.dispatchEvent(e)}debug(e,t){this.write(e,Dt.Debug,t)}info(e,t){this.write(e,Dt.Info,t)}warn(e,t){this.writeError(e,Dt.Warn,t)}error(e,t){this.writeError(e,Dt.Error,t)}critical(e,t){this.writeError(e,Dt.Critical,t)}}const T=new qt,Wt="cookieConsentCollection",Vt="analytics",Kt="guideAnalytics",$t="textCollection",Jt=["none","whitelist","all"],Yt={agentResponse:"agent_response",clicks:"click",fieldChanges:"change",focus:"focus",formSubmits:"submit",identify:"identify",meta:"meta",objectMetadata:"objectMetadata",pageLoads:"load",prompt:"prompt",trackEvents:"track",userReaction:"user_reaction"},Xt=["guideActivity","guideAdvanced","guideDismissed","guideNotSeen","guideSeen","guideSnoozeCanceled","guideSnoozed","guideTimeout","pollResponse"];let Zt=null;function Qt(e){return _.isString(e)?[e]:_.isArray(e)?e:[]}function en(e){var i,{visitorIdentity:e={},analytics:t={},guides:n={},sessionReplay:r={}}=e||{},o=t.eventCollection||{},t=!0===t.enabled;return{identity:!0===e.trackVisitors,guides:!0===n.enabled,replay:!0===r.enabled,utm:t&&!0===o.utmParameters,analytics:t?(i=o,_.reduce(Yt,function(e,t,n){return!0===i[n]&&e.push(t),e},[])):[],guideAnalytics:t&&!0===o.guideServing?Xt.slice():[],textCollection:t&&(e=o.textCollectionMode,_.contains(Jt,e))?e:Jt[0]}}function tn(e,t){return{identity:e.identity||t.identity,guides:e.guides||t.guides,replay:e.replay||t.replay,utm:e.utm||t.utm,[Vt]:_.union(e[Vt],t[Vt]),[Kt]:_.union(e[Kt],t[Kt]),[$t]:(e=e[$t],t=t[$t],Jt.indexOf(t)>Jt.indexOf(e)?t:e)}}function nn(e){const n=C.get(Wt)||{};var t,e=Qt(e);return t=n,_.each(e,function(e){_.isUndefined(t[e])&&T.warn('Consent tier "'+e+'" is not present in '+Wt+".")}),_.isEmpty(n)?Zt={}:Zt=_.reduce(e,function(e,t){t=n[t];return t?tn(e,en(t)):e},{identity:!1,guides:!1,replay:!1,utm:!1,[Vt]:[],[Kt]:[],[$t]:Jt[0]}),rn()}function rn(){return Zt?_.extend({},Zt):null}function on(e){return!Zt||_.isUndefined(Zt[e])||!0===Zt[e]}function an(){return!on("identity")}function sn(e,t){return!Zt||(t=Zt[t],!!_.isUndefined(t))||_.contains(t,e)}function dn(e){return!an()&&sn(e,Vt)}const un=function(){var e=C.get("storage.allowKeys")||"*";return _.isArray(e)?_.indexBy(e):e};function cn(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function ln(n){_.forEach(_.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function pn(e){var t=_.noop,t={getItem:()=>null,setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:cn(n,n.getItem,null),setItem:cn(n,n.setItem),removeItem:cn(n,n.removeItem),clearPendo:_.partial(ln,n)}:t}catch(i){return t}}var hn=pn(function(){return window.localStorage}),fn=pn(function(){return window.sessionStorage});function gn(e){try{return JSON.parse(e)}catch(t){return null}}var mn,vn={},yn=!0,bn=function(){return C.get("localStorageOnly")},wn=function(){return!!C.get("disableCookies")||an()};function Sn(e){yn=e}var En=function(e){return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(document.cookie))?Ft(e[2]):null},In=function(e,t,n,i){var r,o,a;!yn||C.get("preventCookieRefresh")&&En(e)===t||(a=An(n),r=new Date,o=(i="https:"===document.location.protocol||i)?"None":"Strict",r.setTime(r.getTime()+a),a=e+"="+Ht(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+(i?";secure":"")+"; SameSite="+o,mn&&(a+=";domain="+mn),document.cookie=a)};function _n(e){var t="=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT";mn&&(document.cookie=e+t+";domain="+mn),document.cookie=e+t}var Cn=function(e,t){return`_pendo_${e}.`+(t||E.apiKey)},Tn=function(e,t){return En(Cn(e,t))};const xn=864e5,Rn=100*xn,An=(e=Rn)=>{var t=C.get("maxCookieTTLDays"),t=t<Infinity?t*xn:Infinity;return Math.min(e,t)};var kn=function(e,t,n,i,r){n=n||Rn,In(Cn(e,r),t,n,i)};class On{constructor(){this.keys={}}addLocal(e,t){this._add(e,"local",t)}addSession(e,t){this._add(e,"session",t)}hasLocal(e){return this._has(e,"local")}hasSession(e){return this._has(e,"session")}getKeyConfig(e,t,n){return I(n)?n:this.keys[e]?this.keys[e][t]:undefined}getKeySerializer(e){return this.keys[e]?this.keys[e].serializer:_.identity}getKeyDeserializer(e){return this.keys[e]?this.keys[e].deserializer:_.identity}_add(e,t,n={}){n=_.extend({type:t,duration:null,isPlain:!1,isSecure:!1,localStorageOnly:!1,cookieSuffix:undefined,serializer:_.identity,deserializer:_.identity},n),this.keys[e]||(this.keys[e]=n)}_has(e,t){return!!this.keys[e]&&this.keys[e].type===t}}var Nn,Mn,Ln,Pn,m,x=function(){const d=new On;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=un())||n[t])return d[r](e)||T.warn(`storage key ${e} is not registered`),i.apply(this,arguments);T.debug(`writing storage key ${e} is not allowed`)}}function u(e){return e||bn()||!mn}var c=_.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.getItem(n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}});function l(e){e.cache&&(e.cache={})}function p(e){if(null===e)return null;try{var t=JSON.parse(e);return null!==t&&"object"==typeof t&&"ttl"in t&&"value"in t?"number"==typeof t.ttl&&isFinite(t.ttl)&&0<t.ttl&&t.ttl<(new Date).getTime()?null:String(t.value||t):e}catch(n){return e}}function h(e,t){return null===t?e:(t=(new Date).getTime()+An(t),JSON.stringify({ttl:t,value:e}))}function f(e,t,n){t=d.getKeyConfig(e,"isPlain",t),n=d.getKeyConfig(e,"cookieSuffix",n);var i=d.getKeyConfig(e,"localStorageOnly"),t=t?e:Cn(e,n);if(wn()&&delete vn[t],u(i)){if(c("localStorage"))try{return void localStorage.removeItem(t)}catch(r){}}else try{return void _n(t)}catch(r){}delete vn[t]}const t=_.extend({},fn),n=(t.setItem=e(t.setItem,"hasSession"),_.extend({},hn));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){t=d.getKeyConfig(e,"isPlain",t),n=d.getKeyConfig(e,"cookieSuffix",n);var i=d.getKeyConfig(e,"localStorageOnly"),r=t?e:Cn(e,n);let o;var a=d.getKeyDeserializer(e);if(wn())return a(p(vn[r])||null);if(u(i)){if(c("localStorage"))try{return null===(o=p(localStorage.getItem(r)))&&f(e,t,n),a(o)}catch(s){l(c)}}else try{if(null!==(o=En(r)))return a(o)}catch(s){}return null===(o=p(vn[r]||null))&&delete vn[r],a(o)},write:e(function(e,t,n,i,r,o){n=d.getKeyConfig(e,"duration",n),i=d.getKeyConfig(e,"isPlain",i),r=d.getKeyConfig(e,"isSecure",r),o=d.getKeyConfig(e,"cookieSuffix",o);var a=d.getKeyConfig(e,"localStorageOnly"),e=(t=d.getKeySerializer(e)(t),i?e:Cn(e,o));if(l(c),wn())return vn[e]=h(t,n),!0;if(u(a)){if(c("localStorage"))try{return localStorage.setItem(e,h(t,n)),!0}catch(s){}}else try{return i||(n=n||Rn),In(e,t,n,r),!0}catch(s){}return vn[e]=h(t,n),!1},"hasLocal"),clear:f,clearAll:function(){_.each(d.keys,(e,t)=>{"local"===e.type&&f(t)})},registry:d,getLocal:()=>n,getSession:()=>t}}(),Dn=(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(n=Se.Promise)&&/native/.test(n)?n:e()),t=(Mn=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},Ln=function(n,i){var r=Nn.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===Pn?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},Pn=1,(Nn={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,_.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(Pn,e)},a=function(e){t(2,e)},s=function(e,t){e=Ln(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},d=function(e){var t=Mn();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=Mn();return{resolve:e(u),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},Nn);function Fn(e){var n,i=m.defer(),r=_.isArray(e)?[]:{},o=_.size(e);return o?(n=!1,_.each(e,function(e,t){m.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):m.resolve(e)}!ke()&&et.isMinimumIEVersion(11)?m={all:function(e){return _.isArray(e)?Dn.all.apply(Dn,arguments):Fn(e)},reject:function(){return Dn.reject.apply(Dn,arguments)},resolve:function(){return Dn.resolve.apply(Dn,arguments)},defer:function(){var n={};return n.promise=new Dn(function(e,t){n.resolve=e,n.reject=t}),n}}:((m=t).all=Fn,m.reject=function(e){var t=m.defer();return t.reject(e),t.promise},m.resolve=function(e){var t=m.defer();return t.resolve(e),t.promise});const Un=x.getSession(),Gn="pendo_tabId",Bn="pendo_parentTabId";Hn=window,n=_.partial,zn=_.extend,jn=_.omit,qn={data:{},getItem(e){return qn.data[e]},setItem(e,t){qn.data[e]=t},removeItem(e){qn.data[e]=null,delete qn.data[e]}},Wn=n(Yn,Gn,Xn),Vn=n(Yn,"pendo_frameId",qn);var Hn,zn,jn,qn,Wn,Vn,Kn={addTracerIds(e){return jn(zn(e,{parentTabId:$n(Bn,Xn),tabId:Wn(),frameId:Vn()}),function(e){return e===undefined})},setParentTabId:function(e){Jn(Bn,e,Xn)},newTabId:function(){var e=Tt(16);return Jn(Gn,e,Xn),e},getTabId:Wn,getFrameId:Vn,tabIdChanged:function(t){var e;if(et.addEventListener)return Hn.addEventListener("storage",e=function(e){e.key===Gn&&(qn.removeItem(Gn),t())}),function(){Hn.removeEventListener("storage",e)}}};function $n(e,t){return(_.isFunction(t)?t():t).getItem(e)}function Jn(e,t,n){(_.isFunction(n)?n():n).setItem(e,t)}function Yn(e,t){var n=$n(e,t);return n||Jn(e,n=Tt(16),t),n}function Xn(){return n=qn,i=Un,{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 Zn(){var i=this._handlers={};return this.addEventListener=function(){this.on.apply(this,arguments)},this.removeEventListener=function(){this.off.apply(this,arguments)},this.on=function(e,t){var n;return(_.isString(e)||_.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),_.indexOf(n,t)<0)&&n.push(t),this},this.one=function(e,t){var n=this,i=function(){n.off(e,i),t.apply(this,arguments)};return this.on(e,i)},this.once=this.one,this.off=function(e,t){var n,e=i[e];return _.isFunction(t)?(n=_.indexOf(e,t),e&&0<=n&&e.splice(n,1)):e&&t===undefined&&(e.length=0),this},this.trigger=function(e){var t=i[e]?i[e].slice():[],n=_.toArray(arguments).slice(1);return _.map(t,function(e){return e.apply(E,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return _.map(e,function(e){if(!t.cancel)return e.apply(E,[t])})},this.triggerAsync=function(){var e=_.map(this.trigger.apply(this,arguments),function(e){return!1===e?m.reject():e});return m.all(e)},this}Zn.clear=function(t){t&&_.each(_.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};or={DEBUG:e="debug",FRAMES:t="frames",LIFECYCLE:n="lifecycle",RUNTIME:Ir="runtime"},Qn=[new i("ready",[e,n]),new i("deliverablesLoaded",[e,n]),new i("guidesFailed",[e,n]),new i("guidesLoaded",[e,n]),new i("segmentFlagsUpdated",[e,n]),new i("segmentFlagsReady",[e,n]),new i("segmentFlagsError",[e,n]),new i("guideListChanged",[e,n]),new i("guidesReceived",[e,n]),new i("guideSeen",[e,n]),new i("guideNotSeen",[e,n]),new i("guideAdvanced",[e,n]),new i("guideDismissed",[e,n]),new i("guideSnoozed",[e,n]),new i("beforeGuideShow",[n]),new i("beforeMount",[Ir]),new i("beforeAdvance",[Ir]),new i("beforePrevious",[Ir]),new i("beforeSnooze",[Ir]),new i("beforeDismiss",[Ir]),new i("beforeUnmount",[Ir]),new i("unmounted",[Ir]),new i("beforeUpdate",[Ir]),new i("updated",[Ir]),new i("guideSnoozeCancelled",[e,n]),new i("guideTimeout",[e,n]),new i("guideLoopStopped",[e,n]),new i("guideUpdateComplete",[n]),new i("designerLaunched",[e,n]),new i("debuggerLaunched",[e,n]),new i("stepEligibility",[e]),new i("identify",[e,n]),new i("metadata",[e,n]),new i("appUnloaded",[e,n]),new i("appHidden",[e,n]),new i("startPreview",[e]),new i("resourceFetchFail",[e]),new i("contentVerificationFail",[e]),new i("contentValidationFail",[e]),new i("renderFail",[e]),new i("appUsage",[n]),new i("eventCaptured",[e]),new i("error",[e,n]),new i("onClickCaptured",[e]),new i("onEventCaptured",[e]),new i("urlChanged",[n]),new i("leaderChanged",[n,t]),new i("transmit:locked",[n]),new i("transmit:unlocked",[n]),new i("sessionChanged",[n]),new i("ptm:unpaused",[n]),new i("ptm:paused",[n]),new i("recording:unpaused",[n]),new i("recording:paused",[n]),new i("consent:changed",[n]),new i("childFrameJoined",[t]),new i("tabIdChanged:self",[e,n])],ei=Zn.call({}),ti={debug(){return Kn.addTracerIds(ii.apply(null,arguments))},lifecycle:ii,runtime:ii,frames:ii},ni=ei.trigger,ei.trigger=ri,_.each(_.values(or),function(e){ei[e]={on:_.partial(ei.on,e),one:_.partial(ei.one,e),off:_.partial(ei.off,e)}}),_.each(Qn,function(e){e=e.name,ei[e]={on:_.partial(ei.on,e),one:_.partial(ei.one,e),off:_.partial(ei.off,e),trigger:_.partial(ri,e)}});var Qn,ei,ti,ni,R=ei;function i(e,t){this.name=e,this.groups=t||[]}function ii(e,t){e={type:e,ts:S()};return I(t)&&_.isObject(t)&&(e.data=t),e}function ri(t){var e=_.findWhere(Qn,{name:t}),n=_.toArray(arguments).slice(1),i={};return _.each(e.groups,function(e){i.cancel||(i=ti[e](t,n),ni.apply(ei,[e].concat(i)))}),i.cancel||(i=ii(t,n),ni.apply(ei,[t].concat(i))),i}function oi(e){var i=[],r=[],o={},a={},s={state:{},commit:function(t,n){var e=o[t];if(!e)throw new Error("mutation "+t+" not found");e(n),_.each(i,function(e){e({type:t,payload:n},s.state)})},dispatch:function(t,n){var e=a[t];if(e)return e=e(n),_.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:_.partial(t,i),subscribeAction:_.partial(t,r),registerModule:function h(n,e){_.isString(n)&&(n=[n]);var t=u(s.state,e,n);_.extend(s.getters,p(e,t,s,n));_.extend(o,c(e,t,n));_.extend(a,l(e,t,s,n));_.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return _.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):_.noop;var n,i}function d(e,t){return(e=t?e.concat([t]):e).join("/")}function u(e,t,n){var i=e;return _.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),_.extend(i,Ce(t.state||{}))}function c(e,n,i){var r={};return _.each(e.mutations,function(e,t){r[d(i,t)]=_.partial(e,n)}),r}function l(e,t,i,r){var n={},o={state:t,rootState:i.state,commit:function(e,t,n){n=n&&n.root?e: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 _.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return _.each(e.actions,function(e,t){n[d(r,t)]=_.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return _.each(e.getters,function(e,t){a[t]=o[d(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var A=oi(),ai=(A.subscribe(function(e,t){}),"_PENDO_T_"),si=11;const di="visitorId",ui="oldVisitorId",ci="accountId",li="__cookieless_visitor__";var pi=function(e=""){return e+Tt(si)};var hi=function(e){return I(e)&&""!==e&&e!==wi&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===mt.call(e).length)},fi=function(e){return!(!e||"number"==typeof e)&&e.substring(0,ai.length)===ai},gi=function(){return!C.get("disablePersistence")},mi=function(e){e=e||[di,ci,ui];const t=C.get("identityStorageSuffix")||E.apiKey;_.each(e,function(e){_n(Cn(e,t)),x.clear(e,!1,t)})},vi="VISITOR-UNIQUE-ID",yi=function(e){return vi===e},bi=function(e=E.visitorId){return e===li},wi="::",Si=function(e){return new RegExp(wi).test(e)};function Ei(e){return e.old_visitor_id!==e.visitor_id}var Ii,_i=function(e,t){var n,i={old_visitor_id:v(),old_account_id:Ai()};hi(e)?(Ri(e),t=t,_.isUndefined(t)?T.info("No account id provided"):an()?T.warn("Ignoring account id "+t+" while identity consent is dnt."):hi(t)?(E.accountId=""+t,gi()&&ki(ci,E.accountId)):(delete E.accountId,delete(n=C.getLocalConfig()).account,C.setLocalConfig(n),A.commit("metadata/clearAccount"),gi()&&x.clear(ci),T.info("Invalid account id: "+t+". Account cleared")),i.visitor_id=v({generate:!0}),i.account_id=Ai(),!Ei(n=i)&&n.old_account_id===n.account_id||(Ei(i)&&(t=i.old_visitor_id)&&(Ii=t,ki(ui,Ii)),R.identify.trigger(i))):T.info("Invalid visitor id "+e)};function Ci(){return pi(ai)}function Ti(e){an()&&(e=li),E.visitorId!==e&&(gi()&&ki(di,e),E.visitorId=e)}function v(e={}){var t=function(){if(hi(E.visitorId))return E.visitorId;var e=C.get("forceAnonymous");if(gi()){var t=Oi(di);if(hi(t)&&(!e||fi(t)))return t}return undefined}();return Ti(t=!t&&e.generate?Ci():t),t}function xi(){return v()||Ci()}var Ri=function(e){hi(e)?an()&&e!==li?T.warn("Ignoring visitor id "+e+" while identity consent is dnt."):Ti(""+e):T.info("Invalid visitor id "+e)};var Ai=function(){var e=C.get("forceAnonymous");return hi(E.accountId)||!gi()||e||(e=Oi(ci),E.accountId=e),E.accountId};function ki(e,t){var n=C.get("identityStorageLifetime")||Rn,i=C.get("identityStorageSuffix")||E.apiKey;x.write(e,t,n,!1,!0,i)}function Oi(e){var t=C.get("identityStorageSuffix"),n=t||E.apiKey,n=x.read(e,!1,n)||x.read(e,!1,E.apiKey);return t&&x.clear(e,!1,E.apiKey),n}function Ni(e={doNotTrack:!1}){var t={old_visitor_id:v({generate:!1}),old_account_id:Ai(),wasCleared:!0};mi(),delete E.visitorId,delete E.accountId,e.doNotTrack?Ri(li):v({generate:!0}),_.extend(t,{visitor_id:v(),account_id:Ai()}),R.identify.trigger(t)}function Mi(e){e=e.data[0];return _.get(e,"wasCleared")}Ir=function(n){return function Li(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 Li="function"==typeof(e=(t=Se).URL)&&/native/.test(e)?e:Ir(t.document);function Pi(e){if((t=e)&&"function"==typeof t.composedPath)try{return e.composedPath()}catch(n){return e.path}var t;return null}function Di(e){return e.shadowRoot}function Fi(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function Ui(e,t){return Fi(e,t)?e.host:e.parentNode}function Gi(e,t,n){let i=t;for(;i;){if(i===e)return!0;i=Ui(i,n)}return!1}var Bi={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:Pi,getShadowRoot:Di,isElementShadowRoot:Fi,getParent:Ui,isShadowSelector:Hi,wrapSizzle(i,u){i.intercept(function(a,t,n,i,r){var e,o;if(Hi(t))return _.isFunction(document.documentElement.attachShadow)?(o=a,e=(e=t).replace(Bi.PSEUDO_REGEX,Bi.PSEUDO_SAFE),e=_.map(o.tokenize(e),zi),_.reduce(e,function(e,t){return e.concat(s(t,n,i,r))},[])):a(t.replace(Bi.PSEUDO_REGEX,""),n,i,r);{const d=a(t,n,i,r);return 0<u.cache.size&&u.cache.forEach(e=>{n&&n!==document&&!Gi(n,e)||d.push(...a(t,e,i,r))}),d}function s(e,t,n,i){var r,o;return Hi(e)?(o=s((r={baseCss:(o=(o=e).split(Bi.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(Bi.PSEUDO_ELEMENT)}).baseCss,t),_.reduce(o,function(e,t){return Bi.getShadowRoot(t)?e.concat(s(r.shadowCss,Bi.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!Bi.isElementShadowRoot(t)&&(Hi(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function Hi(e){return!!e&&-1<e.indexOf(Bi.PSEUDO_ELEMENT)}function zi(e){return _.reduce(e,function(e,t){return t.value===Bi.PSEUDO_SAFE?e+Bi.PSEUDO_ELEMENT:e+t.value},"")}var ji,h,w,qi,Wi,Vi,Ki,$i,Ji,Yi,Xi,Zi,k,Qi,er,tr,nr,ir,rr,n={exports:{}},or=n,ar=window,O="sizzle"+ +new Date,sr=ar.document,dr=0,ur=0,cr=Kr(),lr=Kr(),pr=Kr(),hr=Kr(),fr=Kr(),gr=function(e,t){return e===t&&(Xi=!0),0},mr={}.hasOwnProperty,e=[],vr=e.pop,yr=e.push,br=e.push,wr=e.slice,Sr=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},Er="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",t="(?:\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Ir="\\["+r+"*("+t+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+r+"*\\]",_r=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Ir+")*)|.*)\\)|)",Cr=new RegExp(r+"+","g"),Tr=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),xr=new RegExp("^"+r+"*,"+r+"*"),Rr=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),Ar=new RegExp(r+"|>"),kr=new RegExp(_r),Or=new RegExp("^"+t+"$"),Nr={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+Ir),PSEUDO:new RegExp("^"+_r),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("^(?:"+Er+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},Mr=/HTML$/i,Lr=/^(?:input|select|textarea|button)$/i,Pr=/^h\d$/i,Dr=/^[^{]+\{\s*\[native \w/,Fr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ur=/[+~]/,Gr=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),Br=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))},Hr=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,zr=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},jr=function(){Zi()},qr=io(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{br.apply(e=wr.call(sr.childNodes),sr.childNodes),e[sr.childNodes.length].nodeType}catch(O_){br={apply:e.length?function(e,t){yr.apply(e,wr.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function Wr(e){return e[0].length?e.map(Wr).join(","):no(e)}function Vr(e,t,n){var i=n[e+" "];i=i||Wr(function o(e,t){return e[0].length?e.map(function(e){return o(e,t)}):e.filter(t)}(Vi(e),function(e){return!("PSEUDO"===(e=e).type&&e.matches.length&&"contains"===e.matches[0].replace(Tr,"$1").toLowerCase())}));try{var r=[];return br.apply(r,t.querySelectorAll(i)),n(e,i),r}catch(O_){}}function N(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&&(Zi(t),t=t||k,er)){if(11!==l&&(s=Fr.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))&&rr(t,u)&&u.id===r)return n.push(u),n}else{if(s[2])return br.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&h.getElementsByClassName&&t.getElementsByClassName)return br.apply(n,t.getElementsByClassName(r)),n}if(h.qsa&&(!hr[e+" "]||fr[e+" "])&&(!tr||!tr.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(u=e,c=t,1===l&&(Ar.test(e)||Rr.test(e))){for((c=Ur.test(e)&&eo(t.parentNode)||t)===t&&h.scope||((a=t.getAttribute("id"))?a=a.replace(Hr,zr):t.setAttribute("id",a=O)),o=(d=Vi(e)).length;o--;)d[o]=(a?"#"+a:":scope")+" "+no(d[o]);u=d.join(",")}try{return br.apply(n,c.querySelectorAll(u)),n}catch(p){hr(e,!0)}finally{a===O&&t.removeAttribute("id")}!i&&hr[e+" "]&&(i=Vr(e,c,fr))}}return $i(e.replace(Tr,"$1"),t,n,i)}function Kr(){var n=[];function i(e,t){return n.push(e+" ")>w.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function $r(e){return e[O]=!0,e}function Jr(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(O_){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function Yr(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function Xr(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 Zr(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&&qr(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function Qr(a){return $r(function(o){return o=+o,$r(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 eo(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ji in h=N.support={},Wi=N.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!Mr.test(t||e&&e.nodeName||"HTML")},Zi=N.setDocument=function(e){var e=e?e.ownerDocument||e:sr;return e!=k&&9===e.nodeType&&e.documentElement&&(Qi=(k=e).documentElement,er=!Wi(k),sr!=k&&(e=k.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",jr,!1):e.attachEvent&&e.attachEvent("onunload",jr)),h.scope=Jr(function(e){return Qi.appendChild(e).appendChild(k.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),h.attributes=Jr(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=Jr(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=!!k.getElementsByClassName,h.getById=Jr(function(e){return Qi.appendChild(e).id=O,!k.getElementsByName||!k.getElementsByName(O).length}),h.getById?(w.filter.ID=function(e){var t=e.replace(Gr,Br);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&er)return(e=t.getElementById(e))?[e]:[]}):(w.filter.ID=function(e){var t=e.replace(Gr,Br);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&er){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[]}}),w.find.TAG=h.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):h.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},w.find.CLASS=h.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&er?t.getElementsByClassName(e):h.qsa&&er?t.querySelectorAll("."+e):void 0},nr=[],tr=[],(h.qsa=!!k.querySelectorAll)&&(Jr(function(e){var t;Qi.appendChild(e).innerHTML=p().createHTML("<a id='"+O+"'></a><select id='"+O+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&tr.push("[*^$]="+r+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||tr.push("\\["+r+"*(?:value|"+Er+")"),e.querySelectorAll("[id~="+O+"-]").length||tr.push("~="),(t=k.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||tr.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||tr.push(":checked"),e.querySelectorAll("a#"+O+"+*").length||tr.push(".#.+[+~]"),e.querySelectorAll("\\\f"),tr.push("[\\r\\n\\f]")}),Jr(function(e){e.innerHTML=p().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&tr.push("name"+r+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&tr.push(":enabled",":disabled"),Qi.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&tr.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),tr.push(",.*:")})),(h.matchesSelector=Dr.test(ir=Qi.matches||Qi.webkitMatchesSelector||Qi.mozMatchesSelector||Qi.oMatchesSelector||Qi.msMatchesSelector))&&Jr(function(e){h.disconnectedMatch=ir.call(e,"*"),ir.call(e,"[s!='']:x"),nr.push("!=",_r)}),tr=tr.length&&new RegExp(tr.join("|")),nr=nr.length&&new RegExp(nr.join("|")),e=!!Qi.compareDocumentPosition,rr=e||Qi.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},gr=e?function(e,t){var n;return e===t?(Xi=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===n?e==k||e.ownerDocument==sr&&rr(sr,e)?-1:t==k||t.ownerDocument==sr&&rr(sr,t)?1:Yi?Sr(Yi,e)-Sr(Yi,t):0:4&n?-1:1)}:function(e,t){if(e===t)return Xi=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==k?-1:t==k?1:r?-1:o?1:Yi?Sr(Yi,e)-Sr(Yi,t):0;if(r===o)return Xr(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?Xr(a[i],s[i]):a[i]==sr?-1:s[i]==sr?1:0}),k},N.matches=function(e,t){return N(e,null,null,t)},N.matchesSelector=function(e,t){if(Zi(e),h.matchesSelector&&er&&!hr[t+" "]&&(!nr||!nr.test(t))&&(!tr||!tr.test(t)))try{var n=ir.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(O_){hr(t,!0)}return 0<N(t,k,null,[e]).length},N.contains=function(e,t){return(e.ownerDocument||e)!=k&&Zi(e),rr(e,t)},N.attr=function(e,t){(e.ownerDocument||e)!=k&&Zi(e);var n=w.attrHandle[t.toLowerCase()],n=n&&mr.call(w.attrHandle,t.toLowerCase())?n(e,t,!er):undefined;return n!==undefined?n:h.attributes||!er?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},N.escape=function(e){return(e+"").replace(Hr,zr)},N.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},N.uniqueSort=function(e){var t,n=[],i=0,r=0;if(Xi=!h.detectDuplicates,Yi=!h.sortStable&&e.slice(0),e.sort(gr),Xi){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return Yi=null,e},qi=N.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+=qi(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=qi(t);return n},(w=N.selectors={cacheLength:50,createPseudo:$r,match:Nr,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(Gr,Br),e[3]=(e[3]||e[4]||e[5]||"").replace(Gr,Br),"~="===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]||N.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]&&N.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Nr.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&kr.test(n)&&(t=(t=Vi(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(Gr,Br).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=cr[e+" "];return t||(t=new RegExp("(^|"+r+")"+e+"("+r+"|$)"))&&cr(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=N.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(Cr," ")+" ").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)[O]||(a[O]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===dr&&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]=[dr,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[O]||(a[O]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===dr&&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[O]||(a[O]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[dr,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=w.pseudos[e]||w.setFilters[e.toLowerCase()]||N.error("unsupported pseudo: "+e);return a[O]?a(o):1<a.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?$r(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=Sr(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:$r(function(e){var i=[],r=[],s=Ki(e.replace(Tr,"$1"));return s[O]?$r(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:$r(function(t){return function(e){return 0<N(t,e).length}}),contains:$r(function(t){return t=t.replace(Gr,Br),function(e){return-1<(e.textContent||qi(e)).indexOf(t)}}),lang:$r(function(n){return Or.test(n||"")||N.error("unsupported lang: "+n),n=n.replace(Gr,Br).toLowerCase(),function(e){var t;do{if(t=er?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=ar.location&&ar.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===Qi},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:Zr(!1),disabled:Zr(!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!w.pseudos.empty(e)},header:function(e){return Pr.test(e.nodeName)},input:function(e){return Lr.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:Qr(function(){return[0]}),last:Qr(function(e,t){return[t-1]}),eq:Qr(function(e,t,n){return[n<0?n+t:n]}),even:Qr(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:Qr(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:Qr(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:Qr(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[ji]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ji);for(ji in{submit:!0,reset:!0})w.pseudos[ji]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ji);function to(){}function no(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function io(a,e,t){var s=e.dir,d=e.next,u=d||s,c=t&&"parentNode"===u,l=ur++;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=[dr,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[O]||(e[O]={}))[e.uniqueID]||(r[e.uniqueID]={}),d&&d===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[u])&&i[0]===dr&&i[1]===l)return o[2]=i[2];if((r[u]=o)[2]=a(e,t,n))return!0}return!1}}function ro(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 oo(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 ao(h,f,g,m,v,e){return m&&!m[O]&&(m=ao(m)),v&&!v[O]&&(v=ao(v,e)),$r(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++)N(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),l=!h||!e&&f?c:oo(c,s,h,n,i),p=g?v||(e?h:u||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=oo(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?Sr(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=oo(p===t?p.splice(u,p.length):p),v?v(null,t,p,i):br.apply(t,p)})}to.prototype=w.filters=w.pseudos,w.setFilters=new to,Vi=N.tokenize=function(e,t){var n,i,r,o,a,s,d,u=lr[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],d=w.preFilter;a;){for(o in n&&!(i=xr.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Rr.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Tr," ")}),a=a.slice(n.length)),w.filter)w.filter.hasOwnProperty(o)&&(i=Nr[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?N.error(e):lr(e,s).slice(0)},Ki=N.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=pr[e+" "];if(!a){for(n=(t=t||Vi(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=w.relative[e[0].type],a=o||w.relative[" "],s=o?1:0,d=io(function(e){return e===i},a,!0),u=io(function(e){return-1<Sr(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==Ji)||((i=t).nodeType?d:u)(e,t,n),i=null,e}];s<r;s++)if(t=w.relative[e[s].type])c=[io(ro(c),t)];else{if((t=w.filter[e[s].type].apply(null,e[s].matches))[O]){for(n=++s;n<r&&!w.relative[e[n].type];n++);return ao(1<s&&ro(c),1<s&&no(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Tr,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&no(e))}c.push(t)}return ro(c)}(t[n]))[O]?r:o).push(a);(a=pr(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=Ji,h=e||b&&w.find.TAG("*",r),f=dr+=null==p?1:Math.random()||.1,g=h.length;for(r&&(Ji=t==k||t||r);u!==g&&null!=(o=h[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument==k||(Zi(o),n=!er);s=m[a++];)if(s(o,t||k,n)){i.push(o);break}r&&(dr=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]=vr.call(i));l=oo(l)}br.apply(i,l),r&&!e&&0<l.length&&1<d+v.length&&N.uniqueSort(i)}return r&&(dr=f,Ji=p),c},y?$r(i):i))).selector=e}return a},$i=N.select=function(e,t,n,i){var r,o,a,s,d,u="function"==typeof e&&e,c=!i&&Vi(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&&er&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(Gr,Br),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Nr.needsContext.test(e)?0:o.length;r--&&(a=o[r],!w.relative[s=a.type]);)if((d=w.find[s])&&(i=d(a.matches[0].replace(Gr,Br),Ur.test(o[0].type)&&eo(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&no(o))break;return br.apply(n,i),n}}return(u||Ki(e,c))(i,t,!er,n,!t||Ur.test(e)&&eo(t.parentNode)||t),n},h.sortStable=O.split("").sort(gr).join("")===O,h.detectDuplicates=!!Xi,Zi(),h.sortDetached=Jr(function(e){return 1&e.compareDocumentPosition(k.createElement("fieldset"))}),Jr(function(e){return e.innerHTML=p().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||Yr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&Jr(function(e){return e.innerHTML=p().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||Yr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),Jr(function(e){return null==e.getAttribute("disabled")})||Yr(Er,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var so=ar.Sizzle;N.noConflict=function(){return ar.Sizzle===N&&(ar.Sizzle=so),N},or.exports?or.exports=N:ar.Sizzle=N;uo=l(n.exports),(co=_.extend(function(){return co.Sizzle.apply(this,arguments)},uo)).reset=function(){co.Sizzle=uo,co.matchesSelector=uo.matchesSelector,co.matches=uo.matches},co.intercept=function(e,t="Sizzle"){co[t]=_.wrap(co[t],e)},co.reset();var uo,co,lo=co;function M(e,t){var n,i=this;if(e&&e instanceof M)return e;if(!(i instanceof M))return new M(e,t);if(e)if(e.nodeType)n=[e];else if(r=/^<(\w+)\/?>$/.exec(e))n=[document.createElement(r[1])];else if(/^<[\w\W]+>$/.test(e)){var r=document.createElement("div");r.innerHTML=e,n=_.toArray(r.childNodes)}else if(_.isString(e)){t instanceof M&&(t=0<t.length?t[0]:null);try{n=lo(e,t)}catch(o){n=[]}}else n=[e];else n=[];return _.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,"undefined"!=typeof Symbol&&Symbol.iterator&&(i[Symbol.iterator]=function*(){for(const e of n)yield e}),i}function po(){this.ownerKey="_pendo_"+Tt(8)}_.extend(po.prototype,{cache(e){var t;return _.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set(e,t,n){e=this.cache(e);return e[t]=n,e},get(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!_.isEmpty(n)||(e[this.ownerKey]=undefined)}});var ho=new po,fo=1;function go(e){return _.isNumber(e.eventPhase)&&e.eventPhase===fo}function mo(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?At("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{vo(e,t,n,i)}):_.noop}function vo(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?At("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var yo=function(e){var t=Bi.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},bo={add(t,e){var n=ho.get(t),i=(n.handle||(n.handle=function(e){bo.dispatch(t,e)}),e.id=_.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||mo(t,e.type,n.handle,e.capture),i.push(e),()=>{M.event.remove(t,e.type,e.handler,e.capture)}},dispatch(r,o){var e,t,a;r&&(e=(ho.get(r,"captureEvents")||{})[o.type]||[],t=(ho.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=ho.get(o)).ignore&&(a.handled=a.handled||{},_.each(t.slice(),function(e){var t=!!e.capture===go(o),n=(n=o,_.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(yo(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!I(e.selector)||0<M(yo(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){T.error(i)}}}))},remove(e,t,n,i){var r=ho.get(e);if(r){if(_.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=_.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],vo(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],vo(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],vo(e,t,r.handle));_.isEmpty(r.captureEvents)&&_.isEmpty(r.bubbleEvents)&&(ho.remove(e,"captureEvents"),ho.remove(e,"bubbleEvents"),ho.remove(e,"handle"))}},trigger(e){var t=ho.get(e);if(!t.pendoStopped)if(e.bubbles){var n=yo(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=Bi.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),go(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)bo.dispatch(o[i],e);(e=bo.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(bo.dispatch(n,e),(e=bo.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)bo.dispatch(o[i],e)}}else bo.dispatch(yo(e),e)},clone(e){var t=_.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",ho.ownerKey]),e=Bi.getComposedPath(e);return e&&(t.composedPath=_.constant(e)),t},$:{on(e,n,i,r){return _.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){_.each(e,function(e){bo.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},wo=_.extend(Eo,{get:function(e,t){return Eo({method:"GET",url:e,headers:t})},post:Io,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",Io(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(_.isArray(t))i=t;else{if(!_.isObject(t))return e||"";i=_.keys(t)}var i=_.map(i,function(e){return _.isArray(t)?Ht(e):Ht(e)+"="+Ht(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=_.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported(){return void 0!==So()}});function So(){return window.XMLHttpRequest||ActiveXObject}function Eo(e){var t=m.defer(),n=new(So())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),_.each(e.headers,function(e,t){n.setRequestHeader(t.toLowerCase(),e)}),n.onreadystatechange=function(){var e;4===n.readyState&&(e=function(e){var t={status:e.status};try{t.data=JSON.parse(e.responseText)}catch(n){t.data=e.responseText}return t}(n),200<=n.status&&n.status<300?t.resolve(e):t.reject(e))},e.withCredentials&&(n.withCredentials=!0),e.data?n.send(e.data):n.send(),t.promise}function Io(e,t,n){return Eo({method:"POST",url:e,data:t,headers:n})}var _o,Co=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},To=function(){return C.get("annotateUrl")||Oo()||C.get("sanitizeUrl")||C.get(Go)||C.get("xhrWhitelist")},xo=function(){return Oo()?{href:ko(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Ro=function(){return new Li(window.location.href)},Ao=function(){var e,t,n,i;return To()?(e=Ro(),Oo()&&(e.href=ko(e.href)),Co()?(t=L.electronResourcesPath(),n=L.electronUserDirectory(),i=L.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(L.electronUserHomeDirectory(),"").replace("file:///","")):Ho(e.href)):A.getters["location/href"]()},ko=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Oo=function(){return!0===C.get("ignoreHashRouting")},No=500;function Mo(){return _.isUndefined(_o)&&function e(){Uo(),_o=Ut(e,No)}(),()=>{Gt(_o),_o=undefined}}var Lo=function(e){var t;try{t=Ao()}catch(n){}return t},Po=[],Do=!1,Fo=null;function Uo(){var t=xo().href;Fo!=t&&(Fo=t,_.map(Po,function(e){e(t)}))}var Go="queryStringWhitelist";function Bo(e){var t=C.get("sanitizeUrl");return _.isFunction(t)?t(e):e}function Ho(e){e=e||xo().href;var t=C.get("annotateUrl");if(t)if(_.isFunction(t))try{var n,i,r,o=t();return o&&(_.isObject(o)||_.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&_.isArray(n)||i&&(_.isArray(i)||_.isObject(i)))&&(n&&(e=jo(e,null,n,!0)),o=i||{}),wo.urlFor(e,o,r)):e}catch(a){T.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else T.error("customer-provided `annotateUrl` must be of type: function");return e}function zo(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function jo(e,t,n,i){e=e||Lo(),t=t||zo(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=_.isArray(n)?Wo(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var qo,Wo=function(e,t,n){return n&&_.contains(t,"*")?"":(e=Vo(e),e=n?_.omit(e,t):_.pick(e,t),Ko(e))},Vo=function(e){e=e.split("&");return _.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&Ft(t[1])),e},{})},Ko=function(e){return _.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},L={watch:function(e){const n=[];T.info("Initializing Pendo URL Watcher");var i,t=C.get("location.pushState")&&et.supportsHistoryApi();return Do||(t&&(i=window.history,_.each(["pushState","replaceState"],function(e){var t=i[e];i[e]=_.wrap(i[e],function(e){var t=e.apply(i,_.toArray(arguments).slice(1));return Ut(Uo,0),t}),i[e]._pendoUnwrapped=t,n.push(()=>{i[e]=t})}),n.push(mo(window,"popstate",Uo))),et.supportsHashChange()&&n.push(mo(window,"hashchange",Uo)),!1!==t&&et.supportsHashChange()||n.push(Mo()),Do=!0),Po.push(e),()=>{_.each(n,function(e){e()}),Po.length=0,Do=!1}},get:Lo,externalizeURL:function(e,t,n){n=n||C.get(Go);return Bo(jo(e,t,n=_.isFunction(n)?n():n,!1))},startPoller:Mo,getWindowLocation:xo,clear:function(){Po=[]},isElectron:Co,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 $o(){var e=C.getLocalConfig("dataHost");return e||((e=C.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:at)}function Jo(){qo=$o()}function Yo(){var e=C.get("assetHost");return e?-1===e.indexOf("://")?"https://"+e:e:Xo()}function Xo(){var e=C.get("contentHost")||st;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function Zo(e){var t=Yo(),n=0<=(n=t).indexOf("localhost")||0<=n.indexOf("local.pendo.io")?e.replace(".min.js",".js"):e;return t+"/"+(dt?dt+"/":"")+n}function Qo(){var e=C.get("allowPartnerAnalyticsForwarding",!1)&&C.get("adoptAnalyticsForwarding",!1);return C.get("trainingPartner",!1)||e}function ea(e,t,n){return n?e.acc=It(n):t&&"ACCOUNT-UNIQUE-ID"!==t&&(e.acc=It(t)),e}var ta=3,na=1,ia=9,ra=11,oa=4;function f(e){var t;if((t=e)&&t.nodeType===na)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function aa(e,t){var n;return!(!e||!_.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&_.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),_.any(n,function(e){return e&&"none"!==e}))}function sa(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function da(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function ua(e){return _.isNumber(e)?e:0}function ca(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!pa(e)?null:e}function la(e){return aa(f(e),qe)&&isNaN(Le)}function pa(e){if(e)return(e=f(e))&&(_.contains(["relative","absolute","fixed"],e.position)||aa(e,qe))}function ha(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=pa(t)?t:ca(t,n),i=t?fa(t):{top:0,left:0},e=fa(e),r=function(e){if(e){var e=f(e),t=function(e){if(/^matrix\(/.test(e))return e.split(/\(|,|\)/).slice(1,-1).map(e=>parseFloat(e))}(e.transform);if(t&&/^0px\s+0px/.test(e.transformOrigin))return function([e,t,n,i,r,o]){var a=e*i-t*n;return 0!=a?[i/a,-t/a,-n/a,e/a,(n*o-i*r)/a,(t*r-e*o)/a]:null}(t)}}(t),r=(r&&(i=ma(r,i),e=ma(r,e)),{top:e.top-i.top,left:e.left-i.left,width:e.width,height:e.height});return t?(t!==n.document.scrollingElement&&(r.top+=ua(t.scrollTop),r.left+=ua(t.scrollLeft)),r.top-=ua(t.clientTop),r.left-=ua(t.clientLeft)):(r.top+=sa(n),r.left+=da(n)),r.bottom=r.top+r.height,r.right=r.left+r.width,r}function fa(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}}function ga([e,t,n,i,r,o],[a,s]){return[e*a+n*s+r,t*a+i*s+o]}function ma(e,t){var n=ga(e,[t.left,t.top]),e=ga(e,[t.right,t.bottom]),t={top:n[1],left:n[0],bottom:e[1],right:e[0]};return t.width=t.right-t.left,t.height=t.bottom-t.top,t}var va=void 0===(t=C.get("pendoCore"))||t,ya=function(e,t,n){e=qo+"/data/"+e+"/"+t,t=_.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function ba(){return _.compact([E.apiKey].concat(E.additionalApiKeys))}var wa=function(e){e+="v"+ct;e=ya("log.gif",E.apiKey,{msg:e,version:ct});return m.resolve(_a(e))["catch"](_.noop)};function Sa(e){try{e&&e.body&&_.isFunction(e.body.cancel)&&e.body.cancel()["catch"](_.noop)}catch(t){}return e}function Ea(e){try{var t=qo+"/data/errorlog?apiKey="+E.apiKey,n={error:e,version:"v"+ct,visitorId:v()},i=Ca.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):wo.postJSON(t,n);return i.then(function(e){Sa(e)},function(e){T.debug("error writing error:"+e)})}catch(r){return T.info("Failed to write error to server using POST endpoint: "+r),wa("Failed to write error to server using POST endpoint: "+r)}}function Ia(e){try{var t=ya("metrics",E.apiKey,{v:ct});T.debug(`Sending ${JSON.stringify(e)} to ${t} using `+(Ca.supported()?"fetch":"xhr")),Ca.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(e),headers:{"Content-Type":"application/json"}}).then(Sa)["catch"](function(e){T.debug("Failed to write metrics payload to server: "+e)}):wo.postJSON(t,e)}catch(n){T.critical("Failed to write metrics payload to server: "+n)}}function _a(e){var t,n;return ka()?(t=m.defer(),mo(n=new Image,"load",t.resolve),mo(n,"error",t.reject),n.src=e,t.promise):m.resolve()}function Ca(e,t={}){t=_.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t).then(Sa)}function Ta(e,t){return navigator.sendBeacon(e,t)}Ca.supported=function(){try{return _.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var xa=!(Ta.supported=function(){return _.isFunction(navigator.sendBeacon)}),Ra=function(){var e=ka();return xa=!0,e&&R["transmit:locked"].trigger(),"Pendo Web SDK locked. No more events will be written."},Aa=function(){var e=!ka();return xa=!1,e&&R["transmit:unlocked"].trigger(),"Pendo Web SDK unlocked. Events will be written."},ka=function(){return!xa&&va},Oa=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(Pa(e))}catch(n){return!1}},Na=function(e,t){try{var n;Oa(e,t)||(n=mt.call(Pa(e))+" "+t,La(e,n))}catch(i){}},Ma=function(e,t){try{var n,i;Oa(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=Pa(e).replace(n," "),La(e,i))}catch(r){}},La=function(e,t){_.isString(e.className)?e.className=t:e.setAttribute("class",t)},Pa=function(e){try{var t=e["classList"];if(t&&0<t.length){for(var n=[],i=0;i<t.length;i++)n.push(t[i]);return n.join(" ")}var r=e.className;return(_.isString(r)||!I(r)?r:e.getAttribute("class"))||""}catch(o){return""}},Da=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},Fa={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},Ua=function(e,t){t=function(e){if(_.isString(e)){var t=e.split(";");var n;var i;var r;var o;e={};for(r=0;r<t.length;r++){n=t[r];o=n.indexOf(":");i=n.substring(0,o);e[i]=n.substring(o+1)}}return e}(t);Ga(e,t)},Ga=function(a,e){_.each(e,function(e,t){if(""!==(t=mt.call(t))){var n=Da(t),i=(!_.isNumber(e)||isNaN(e)||Fa[n]?_.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=mt.call(e.substring(0,i));C.get("disableImportantStyleAttributes")?a.style.setProperty(t,r):a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=mt.call(e)}catch(o){T.info("failed to set style: "+t+" with value "+e)}}})},Ba=function(e=window){return tt()?{width:e.document.documentElement.offsetWidth||0,height:e.document.documentElement.offsetHeight||0}:{width:e.innerWidth||e.document.documentElement.clientWidth,height:e.innerHeight||e.document.documentElement.clientHeight}},Ha=function(e){var t=Ba(),n=sa(),i=da();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function za(t){return _.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function ja(e,t=window){var n;return function(e){var t,n=e;for(;n;){if(!(t=f(n)))return;if("fixed"===t.position)return!isNaN(Le)||!Xa(n);n=n.parentNode}return}(e)?((n=fa(e)).fixed=!0,za(n)):za(ha(e,Va(t.document),t))}var qa=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},Wa=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return T.info("error interrogating body elements: "+n),wa("error picking best body:"+n),0}},Va=function(e=document){try{var t=Array.prototype.slice.call(e.getElementsByTagName("body"));return t&&1<t.length?(t.sort(Wa),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return wa("Error getting body element: "+n),e.body}};function Ka(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 $a(e,t=document){if(lo.contains(t,e))return!0;for(;e&&e.parentNode||Bi.isElementShadowRoot(e);)e=Bi.getParent(e);return e===t}var Ja=function(e){var t,n,i;if(null!=e)return t=(n=e.ownerDocument||document).defaultView||window,i=Va(n),e===n||e===t?((n={left:t.pageXOffset||i.scrollLeft,top:t.pageYOffset||i.scrollTop,width:t.innerWidth,height:t.innerHeight}).right=n.left+n.width,n.bottom=n.top+n.height,n):((i=ja(e,t)).right=i.left+i.width,i.bottom=i.top+i.height,i)},Ya=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function Xa(e){for(var t=e&&e.parentNode;t;){if(aa(f(t),qe))return 1;t=t.parentNode}}var Za=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if($a(e))for(i=e;i;)if(Bi.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=f(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=f(r))&&!_.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&Xa(i))i=ca(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function Qa(e,t){e=f(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?es.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?es.BOTH:t.test(e.overflowY)?es.Y:t.test(e.overflowX)?es.X:t.test(e.overflow)?es.BOTH:es.NONE}var es={X:"x",Y:"y",BOTH:"both",NONE:"none"};function ts(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&$a(e)}function ns(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 is(e){if(e){if(_.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function rs(e,t,n){const i=[];var r=is(document.documentElement);let o=is(Za(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=is(Za(o)),a++;return()=>{_.each(_.compact(i),function(e){e()}),i.length=0}}const os=['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 as(e,t,n){var i=Ja(t),t=Qa(t,n);if(t!==es.BOTH||Ya(e,i)){if(t===es.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===es.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function ss(e){if(e){if(ts(e))return 1;var t=Ja(e);if(0!==t.width&&0!==t.height){var n=f(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=f(i=i.parentNode)}return 1}}}}function ds(e,t){if(!ss(e))return!1;if(!ts(e)){for(var n=Ja(e),i=Za(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!as(n,i,t))return!1;i=Za(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=da(),e+=sa()),o<=0||e<=0)return!1}}return!0}function us(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,d=Ja(e),u=Za(e,s);if(!ss(e))return!1;for(;u;){if(t=Ja(u),(o=Qa(u,a))!==es.NONE&&(i=n=0,o!==es.Y&&o!==es.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!==es.X&&o!==es.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))),!as(d,u,s))return!1;u=Za(u,s)}return!0}function cs(e,t){var n,i,r,e=Ja(e),o=Ja(t);e.fixed&&!o.fixed||(i=n=0,e.bottom>o.bottom&&(n+=e.bottom-o.bottom,e.top-=n,e.bottom-=n),e.top<o.top&&(n-=r=o.top-e.top,e.top+=r,e.bottom+=r),e.right>o.right&&(i+=e.right-o.right,e.left-=i,e.right-=i),e.left<o.left&&(i-=r=o.left-e.left,e.left+=r,e.right+=r),e=(o=_.isFunction(t.scrollBy))&&Oe(t.scrollBy),o?e?t.scrollBy(i,n):t.scrollTo(t.scrollX+i,t.scrollY+n):(t.scrollTop+=n,t.scrollLeft+=i))}function ls(e){for(var t=/(auto|scroll)/,n=Va(),i=Za(e,t);i&&i!==n;)cs(e,i),i=Za(i,t)}Ir={$:{findOrCreate(e){return 0<this.length?this:M(e)},find(e){var t=M();return t.context=this.context,this.each(function(){M(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(){Ua(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Na(t,e)})})},removeClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Ma(t,e)})})},hasClass(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){_.each(e,function(e){n=n&&Oa(t,e)})}),n)},toggleClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){(Oa(t,e)?Ma:Na)(t,e)})})},css(e){return this.each(function(){Ua(this,e)}),this},appendTo(e){return M(e).append(this),this},append(e){var t=this;return M(e).each(function(){t.length&&t[0].appendChild(this),$a(this)&&_.each(lo("script",this),ns)}),t},prependTo(e){return M(e).prepend(this),this},prepend(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],M(e).each(function(){n?M(this).insertBefore(n):M(this).appendTo(t)})),this},getParent(){var e=M(this)[0];if(e&&e.parentNode)return M(e.parentNode)},insertBefore(e){e=M(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),$a(this[0]))&&_.each(lo("script",this[0]),ns)},remove(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr(e,t){return _.isObject(e)?(this.each(function(){_.each(e,function(e,t){this.setAttribute(t,e)},this)}),this):t!==undefined?(this.each(function(){this.setAttribute(e,t)}),this):0<this.length?this[0].getAttribute(e):void 0},closest(e,t){for(var n=this[0];n&&!lo.matchesSelector(n,e);)if((n=Ui(n))===document||t&&lo.matchesSelector(n,t))return M();return M(n)},eq(e){return M(this[e])},height(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus(){return this.each(function(){_.isFunction(this.focus)&&this.focus()})}}};class ps{constructor(e=Va(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},et.MutationObserver){const n=new(At("MutationObserver"))((e,t)=>{this.signal()});n.observe(e,t),this._teardown=()=>n.disconnect}else{const i=setInterval(()=>{this.signal()},500);this._teardown=()=>{clearInterval(i)}}}signal(){_.each(this.listeners,e=>{e.get()})}addObservers(...e){this.listeners=[].concat(this.listeners,e)}teardown(){this._teardown()}}e=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var hs="function"==typeof(or=Se.WeakRef)&&/native/.test(or)?or:e();function fs(e,t){var n,i;return e.tagName&&_.contains(["textarea","input"],e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:ys(n.substring(0,i))):gs(e,t)}function gs(e,t=128){var n,i="",r=e.nodeType;if(r===ta||r===oa)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===na||r===ia||r===ra)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=gs(e.childNodes[a],t-i.length))).length)return i+ys(o.substring(0,t-i.length));i+=o}}return i}function ms(e){return 55296<=e&&e<=56319}function vs(e){return 56320<=e&&e<=57343}function ys(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(ms(t)||vs(t)){if(1===e.length)return e.slice(0,-1);if(ms(t))return e.slice(0,-1);if(vs(t))if(!ms(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class bs{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let n=this.elRef&&this.elRef.deref&&this.elRef.deref();var e=$a(n);if(!n||!e){if(n&&!e&&this.teardown(n),!(n=M(this.cssSelector)[0]))return undefined;_.each(this.events,({type:e,capture:t})=>{n.addEventListener(e,e=>this.onEvent(e),t)}),this.elRef=new hs(n)}return n}getText(e=1024){return fs(this.get(),e)}addEventListener(t,e,n=!1){var i=this.get();_.find(this.events,e=>e.type===t&&e.capture===n)||(this.events.push({type:t,capture:n}),i&&i.addEventListener(t,e=>this.onEvent(e),n)),this.listeners[t]=this.listeners[t]||[],this.listeners[t].push(e)}onEvent(t){var e=t.type;_.each(this.listeners[e],e=>e(t))}teardown(n=this.get()){n&&_.each(this.events,({type:e,capture:t})=>n.removeEventListener(e,this.onEvent,t))}}function ws(e){return e.origin!==undefined?e.origin:e.protocol+"//"+e.host}function Ss(e){var t=ws(e.location);if("null"===t&&e.parent&&e.parent!=e)try{var n=ws(e.parent.location);if(n&&"null"!==n)return n}catch(i){}return t}_.extend(M,{data:ho,event:bo,removeNode:qa,getClass:Pa,hasClass:Oa,addClass:function(e,t){var n;"string"==typeof e?(n=M(e),_.map(n,function(e){Na(e,t)})):Na(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=M(e),_.map(n,function(e){Ma(e,t)})):Ma(e,t)},getBody:Va,getComputedStyle:f,getClientRect:Ja,intersectRect:Ya,getScrollParent:Za,isElementVisible:ds,Observer:ps,Element:bs,scrollIntoView:ls,getRootNode:is}),_.extend(M.prototype,bo.$,Ir.$);const Es=[/^https:\/\/((adopt|oem)\.)?((us1)\.)?(app|via|adopt|cdn|oem|novus-api|novus|portal)(\.(au|eu|gov|hsbc|jpn|tv))?\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)(pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-tv|pendo-us1)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)(pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-tv|pendo-us1)\.appspot\.com$/,/^https:\/\/(pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-tv|pendo-us1)-static\.storage\.googleapis\.com$/];function Is(t){if(!t)return!1;if(t===ws(window.location))return!0;if(t===$o())return!0;if(t===Yo())return!0;if(t===Xo())return!0;var e=C.get("adoptHost");if(e&&t==="https://"+e)return!0;var n,i,e=C.get("allowedOriginServers",[]),r=C.get("allowedOriginServerHashes",[]);return!!Z(t,e,r)||!!Z(Q(t),e,r)||(n=e,i=r,e=ee(Q(e=t)),!!_.any(e,function(e){e="."+e;return _.contains(n,e)||_.contains(i,Y(e))}))||_.any(Es,function(e){return e.test(t)})}function _s(e){if(_.isString(e)){try{var t=new Li(e);const o=_.last(t.pathname.split("/")),a=o.split(".");var n,i={filename:_.first(a),extension:a.slice(1).join("."),query:{}};return t.search.length&&(i.query=Vo(t.search.substring(1))),t.hash.length&&0<=(r=t.hash.indexOf("?"))&&(n=t.hash.substring(r+1),i.fragmentQuery=Vo(n)),i}catch(s){}var r=zo(e).substring(1),t=r&&r.length?Vo(r):{},o=_.last(_.first(e.split(/[?#]/)).split("/")),a=o.split(".");return{filename:_.first(a),extension:a.slice(1).join("."),query:t}}}function Cs(e,t){var n;C.get("guideValidation")&&et.sri&&(n=_s(t),t=_.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],_.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}var Ts,xs=function(e){var t=!((t=C.get("allowedOriginServers",[]))&&0<t.length||(t=C.get("allowedOriginServerHashes",[]))&&0<t.length),n=Qo();return!(!t&&!n)||Is(e)},Rs=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(_.isString(e)&&(e={url:e}),!xs((c=e.url,new Li(c,window.location.href).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],d=C.get("guideContentLoader");if(e.type===r){var u=document.createElement("link");u.type=r,u.rel="stylesheet",u.href=e.url,Cs(u,e.url),a=u}else{if(Rt())return(i=document.createElement("script")).addEventListener("load",function(){t(),qa(i)}),i.type=o,i.src=p(E).createScriptURL(e.url),Cs(i,e.url),document.body.appendChild(i),i;if(_.isFunction(d))return d(e),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=p(E).createScriptURL(e.url),Cs(i,e.url),a=i,t=_.wrap(t,function(e,t){if(M.removeNode(i),t)return n&&e(t),{};e.apply(this,_.toArray(arguments).slice(1))})}return s.appendChild(a),As(a,e.url,t),a}catch(l){return{}}var c},As=function(e,t,n){var i=!1;I(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||T.critical("Failed to load "+t+" within 10 seconds")},1e4))},ks=function(e){var t=JSON.parse(e.data),n=e.origin;T.debug(E.app_name+": Message: "+JSON.stringify(t)+" from "+n),Ws(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},Os=function(e){Ms(Fs)(Ns(e))},Ns=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&&(t.type&&"string"==typeof t.type))return{data:t,origin:n,source:i}}catch(r){}};function Ms(t){return function(e){if(e&&Is(e.origin))return t.apply(this,arguments)}}var Ls={disconnect(e){},module:function(e){qs(e.moduleURL)},debug:function(e){$s(ks)}},Ps=function(e,t){Ls[e]=t},Ds=function(e){delete Ls[e]},Fs=function(e){var t;e&&(t=e.data)&&I(Ls[t.type])&&Ls[t.type](t,e)},Us={},Gs=function(e){if(Us[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},Bs=function(e){return I(Us[e])},Hs=function(e){if(Us)for(var t in Us)if(0<=t.indexOf(e))return t;return null},zs=[],js=function(){var e;zs.length<1||(e=zs.shift(),Bs(e))||Rs(e,function(){Gs(e),js()})};var qs=function(e){!function(e){var t={"/js/lib/ckeditor/ckeditor.js":1};_.each(["depres.js","tether.js","sortable.js","selection.js","selection.css","html2canvas.js","ckeditor/ckeditor.js"],function(e){t["/modules/pendo.designer/plugins/"+e]=1,t["/engage-app-ui/assets/classic-designer/plugins/"+e]=1});try{var n=new Li(e);return Is(n.origin)&&t[n.pathname]}catch(i){T.debug("Invalid module URL: "+e)}}(e)||(zs.push(e),1<zs.length)||js()},Ws=function(e,t,n){var i,r=_.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Ts||Ks(),n="*"),t.guid=r,e&&_.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";T.info("Failed to postMessage: "+t)}return r},Vs=function(){return window!=window.top},Ks=function(){return new RegExp("^"+J(qo).replace(/^https?:/,"https?:")).test(location.href)?window.parent:window.top},$s=function(e){var t;return I(window.addEventListener)&&_.isFunction(window.addEventListener)&&(t=Ms(e),window.addEventListener("message",t,!1)),function(){I(window.removeEventListener)&&_.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},Js=_.memoize(function(){return C.get("restrictP1Access")}),Ys=[],Xs=[],Zs=[],Qs=12e4,ed=16,td=1900,nd=65536,id=function(e){return!(!e||""===e)},rd=function(){return L.get()};const od="unsentEvents",ad=6048e5;function sd(n,e){return _.each(e,(e,t)=>{n[t]=(n[t]||[]).concat(e)}),n}function dd(e){var t=Tn(od);if(t){try{sd(e,JSON.parse(t))}catch(n){}_n(Cn(od))}}function ud(e){const n=[];_.each(e,(e,t)=>{_.each(e,e=>{n.push({key:t,request:e})})});e=_.sortBy(n,e=>e.request.ts).slice(Math.ceil(n.length/2));const t={};return _.each(e,e=>{t[e.key]=t[e.key]||[],t[e.key].push(e.request)}),t}class cd{constructor(){this.events={},this.saved=[]}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]}}save(e,t){var n=_.find(this.saved,e=>e.sendQueue===t);!n&&0===t.queue.length||(this.saved=_.without(this.saved,n),0<t.queue.length&&this.saved.push({key:e,sendQueue:t,requests:t.queue.slice()}),this.dirty=!0)}writeIfDirty(){this.dirty&&this.write()}remove(t,e){var n=_.find(this.saved,e=>e.sendQueue===t);!n||(e=_.indexOf(n.requests,e))<0||(n.requests.splice(e,1),0===n.requests.length&&(this.saved=_.without(this.saved,n)),this.dirty=!0)}read(e){e.registry.addLocal(od,{localStorageOnly:!0,duration:ad});try{this.events=JSON.parse(e.read(od)||"{}")}catch(t){this.events={}}dd(this.events),e.clear(od),this.storage=e,this.saved=[],this.dirty=!1}teardown(){this.storage=undefined,this.saved=[],this.dirty=!1}write(e=this.storage){if(e){this.dirty=!1;let t=sd({},this.events);for(_.each(this.saved,e=>{sd(t,{[e.key]:e.requests})});0<_.size(t);){if(e.write(od,JSON.stringify(t),ad))return;t=ud(t)}e.clear(od)}}}var ld=new cd,pd={flush:_.noop,flushBy:_.noop,flushEvents:md,flushTrackEvents:md,flushAgenticEvents:md,flushSilos:md,flushTrackEventSilos:md,flushAgenticEventSilos:md,flushBeacons:md,flushNow:md,flushLater:vd,flushEvery:yd,flushStop:bd,beacons:[],silos:[],trackEventSilos:[],agenticEventSilos:[],lock:Ra,unlock:function(){if(!ka())return wd(),Aa()}},hd=[];function fd(e){hd.push(e)}function gd(e){e=hd.indexOf(e);0<=e&&hd.splice(e,1)}function md(t){try{_.each(hd,function(e){e.flush&&e.flush(t)}),ld.writeIfDirty()}catch(e){T.critical("unhandled error while flushing event cache",{error:e})}}function vd(e){return t=md,n=e,n=parseInt(n,10)||0,t[n]||(i=Ut(function(){t(),t[n]()},n),t[n]=function(){Gt(i),delete t[n]});var t,n,i}function yd(e){var t;if(e=parseInt(e,10)||0,_.isObject(yd.intervals)||(yd.intervals={}),!yd.intervals[e])return t=window.setInterval(md,e),yd.intervals[e]=function(){clearInterval(t),delete yd.intervals[e]}}function bd(){var e=_.values(yd.intervals).concat([md]);_.map(e,function(e){_.isFunction(e)&&e()})}function wd(){_.each(hd,function(e){e.clear&&e.clear()}),bd()}function Sd(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 Ed(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(T.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(T.debug(t+"The signingKeyName is supplied but missing jwt."),!1):(e=e.jwt,!(!_.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(T.debug(t+"The jwt is invalid."),!1)):(T.debug(t+"Missing jwt and signingKeyName."),!1)}Id=null;var Id,_d={set:function(e){Id=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==Id?Id:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!C.get("enableSignedMetadata")&&(n=Ed(e,t),C.get("requireSignedMetadata")&&!n?(T.debug("Pendo will not "+t+"."),!1):n?Sd(e.jwt):void T.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class Cd{constructor(e){this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.firstFailureTime=null,this.sendFn=e}isEmpty(){return this.queue.length<=0}stop(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.firstFailureTime=null,this.stopped=!0,Gt(this.timer),delete this.timer}start(){this.stopped=!1}push(...e){this.enqueue(...e),this.next()}enqueue(...e){this.queue.push(...e)}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),null==this.firstFailureTime&&(this.firstFailureTime=(new Date).getTime()),t}pass(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e),this.failures["delete"](e),this.firstFailureTime=null;var n=this.queue.indexOf(e);0<=n&&this.queue.splice(n,1),this.onPass&&this.onPass(e),!this.stopped&&t&&this.next()}fail(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e);e=this.incrementFailure(e);!this.stopped&&t&&(72e5<=(t=(new Date).getTime())-(this.firstFailureTime||t)?(this.onTimeout&&this.onTimeout(),this.firstFailureTime=null,this.retryLater(36e5)):this.retryLater(Math.min(1e3*Math.pow(2,e-1),3e5)))}retryNow(){Gt(this.timer),delete this.timer,this.next()}retryLater(e){this.timer=Ut(()=>{this.retryNow()},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()&&!this.allowDrainWhileFailed)return Dn.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 Dn.all(n)}}const Td=e=>_.reduce(e,(e,t)=>e+_.get(t,"detail.increment",1),0),xd="pendo-guide-loop-timeout",Rd={ptm:"pendo-ptm-gif-failure",guide:"pendo-guide-gif-failure",poll:"pendo-poll-gif-failure",agentic:"pendo-agentic-gif-failure"},Ad={name:"pendo-guide-loop",debuggingOnly:!0},kd={name:"pendo-event-captured",debuggingOnly:!0},Od="pendo-initialize",Nd="pendo-teardown",Md={};Md[xd]={name:xd,type:"counter",instrument:Td},_.each(Rd,e=>{Md[e]={name:e,type:"counter",instrument:Td}}),Md[Ad.name]=Ad,Md[kd.name]=kd,Md[Od]={name:Od},Md[Nd]={name:Nd};var Ld="debug-enabled";function Pd(){try{var e=x.read(Ld)||JSON.parse(En(Ld));return"boolean"==typeof e?{enabled:e}:e||{}}catch(t){return{}}}function Dd(e=!0){let t;return t=A&&A.getters&&A.getters["debugger/debuggingEnabled"]?A.getters["debugger/debuggingEnabled"]():!0===Pd().enabled,e?t:t?"Yes":"No"}class Fd{constructor(){this._isPerformanceApiAvailable=this._checkPerformanceApi(),this._sending=!1,this._measuringPerformance=!1,this._debugging=!1,this._setDebuggingBound=_.bind(this._setDebugging,this),this._sendBound=_.bind(this.send,this),this._totals={},this.marks=new Set,this.measures=new Set}initialize(){if(!C.get("performanceMetricsEnabled"))return _.noop;this._measuringPerformance=!0,this._markPerformance(Od),this._setDebugging(),R.debuggerLaunched.on(this._setDebuggingBound),R.appUnloaded.on(this._sendBound);var e=100*Math.random()<C.get("performanceMetricsSampleRate");return this._setSending(e),this.interval=setInterval(()=>{this._collect()},6e5),()=>{this.teardown()}}teardown(){this._markPerformance(Nd),this.send(),this._measuringPerformance=!1,this._setDebugging(),R.debuggerLaunched.off(this._setDebuggingBound),R.appUnloaded.off(this._sendBound),this._clearMarksAndMeasures(),clearInterval(this.interval)}startTimer({name:e,debuggingOnly:t},n=null){t&&!this._debugging||this._markPerformance(e+"-start",{detail:n})}stopTimer({name:e,debuggingOnly:t},n=null){t&&!this._debugging||(this._markPerformance(e+"-stop",{detail:n}),this._measurePerformance(e,{detail:n}))}count(e,t=1){this._markPerformance(e,{detail:1<t?{type:"counter",increment:t}:null})}send(){try{this._collect();var e=_.map(this._totals,(e,t)=>({name:t,type:Md[t].type,value:e,timestamp:Date.now()}));this._totals={},_.size(e)&&this._sending&&Ia(e)}catch(t){T.debug("Failed to send performance metrics: "+t)}}_collect(){if(this._isPerformanceApiAvailable)try{this._sending&&_.each(Md,({name:e,instrument:t})=>{t&&0<(t=t(performance.getEntriesByName(e)))&&(this._totals[e]=(this._totals[e]||0)+t)})}finally{this._clearMarksAndMeasures()}}_checkPerformanceApi(){return Ne("performance.mark")&&Ne("performance.measure")&&Ne("performance.getEntries")&&Ne("performance.getEntriesByName")&&Ne("performance.clearMarks")&&Ne("performance.clearMeasures")}_shouldMeasurePerformance(){return this._isPerformanceApiAvailable&&this._measuringPerformance}_setDebugging(){this._debugging=Dd()}_setSending(e){this._sending=e}_markPerformance(e,t){this._shouldMeasurePerformance()&&(performance.mark(e,t),this.marks.add(e))}_measurePerformance(e,t){var n,i;this._shouldMeasurePerformance()&&(n=e+"-start",i=e+"-stop",performance.getEntriesByName(n).length)&&performance.getEntriesByName(i).length&&(performance.measure(e,n,i,t),this.measures.add(e))}_clearMarksAndMeasures(){this.marks.forEach(e=>{performance.clearMarks(e)}),this.marks.clear(),this.measures.forEach(e=>{performance.clearMeasures(e)}),this.measures.clear()}}const Ud=new Fd;var Gd="_PENDO_UNNAMED_";function Bd(e,t,n,i,r,o){var a,s;a=C.get("dropAnonymous"),s=fi(v()),!va||a&&s||(a=t,s=n,t=i,n=r,s={type:r=e,browser_time:S(),visitor_id:v({generate:!0}),account_id:Ai(),url:L.externalizeURL(s),props:a||{},eventProperties:n},s=Kn.addTracerIds(s),"track"===r&&(s.track_event_name=t||Gd),a=s,R.eventCaptured.trigger(a,o).cancel)||id(a.url)&&("track"===e?eu:"agentic"===i?tu:Qd).push(a)}function Hd(){var r=_.toArray(arguments);return function(e,t){var n=r.concat([t]);!function i(t,e){t<n.length&&n[t](e,function(e){i(t+1,e)})}(0,e)}}let zd=0;function jd(e,t){e.sequence=zd++,t(e)}function qd(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 Wd(e,t){return Qo()?Vd("account_id")(e,t):t(e)}function Vd(s){return function(e,t){if(!e.length)return t(e);for(var n=_.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==_.get(e[r],s)){i=!1;break}if(i)return t(e);var o=e.slice(0,r),a=e.slice(r);t(o),t(a)}}function Kd(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function $d(e,t,n){t=n[t-1]||_.last(n);return Math.ceil(e/t)}function Jd(e,t){for(var n,i=0,r=(_.isFunction(t.overhead)?t.overhead:_.constant(0))(),o=0;o<e.length;++o){if($d(n=Kd(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if($d(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($d(i+(n=Kd(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function Yd(){var e=_d.get();return _.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var Xd,Zd,Qd,eu,tu,nu;function iu(e,t){return 2e3<e.length||!_.isEmpty(t)||!!C.get("sendEventsWithPostOnly")}function ru(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=E.squeezeAndCompress(e.slice()),e.JZB.length<=nd)||1===e.length?t(e):(n=e.length/2,ru(e.slice(0,n),t),void ru(e.slice(n),t))}function ou(e,t){ka()&&t(e)}function au(e,t){!_.isNumber(e.browser_time)||isNaN(e.browser_time)?T.critical(new Error("Event missing browser_time")):t(e)}function su(e,t){R.eventCaptured.trigger(e).cancel||t(e)}function du(){return function(e,t){1===e.length&&e.JZB.length>nd?(T.debug("Couldn't write event"),wa("Single item is: "+e.JZB.length+". Dropping."),Ea(e.JZB)):t(e)}}function uu(e,t){return ya(t.beacon+".gif",e,_.extend({v:ct,ct:S(),jzb:t.JZB},t.params,t.auth))}function cu(e,t){return ya(t.beacon+".gif",e,_.extend({v:ct,ct:S(),s:t.JZB.length},t.params))}function lu(i){return function(e,t){e.params=_.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length,e.ts=e[0].browser_time||S();var n=_d.get();_.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function pu(e,t){var n,i;Qo()&&(i=_.first(e),n=_.get(i,"account_id"),i=_.get(i,"oem_account_id"),ea(e.params||(e.params={}),n,i)),t(e)}function hu(e,t){var n=_.first(e),n=_.get(n,"props.source");n&&(e.params=_.extend({},e.params,{source:n})),t(e)}function fu(e){return JSON.stringify(_.extend({events:e.JZB},e.auth))}function gu(e){return Sa(e),e.status<200||300<=e.status?m.reject(new Error(`received status code ${e.status}: `+e.statusText)):m.resolve()}function mu(e,t){return Ca(uu(e,t)).then(gu)}function vu(e,t){return fetch(cu(e,t),{method:"POST",keepalive:!0,body:fu(t),headers:{"Content-Type":"application/json"}}).then(gu)}function yu(e,t){var n=fu(t);return Ta(cu(e,t),n)?m.resolve():m.reject()}function bu(n){return function(e,t){return t.JZB?t.eventLength<=td&&!C.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&Ca.supported()?mu(e,t):t.auth?wo({method:"GET",url:uu(e,t)}):_a(uu(e,t)):n.allowPost&&t.eventLength<=nd?Ca.supported()?vu(e,t):Ta.supported()?yu(e,t):wo({method:"POST",url:cu(e,e=t),data:fu(e),headers:{"Content-Type":"application/json"}}):m.resolve():m.resolve()}}function wu(n){return function(e,t){if(t.JZB){if(t.eventLength<=td&&!C.get("sendEventsWithPostOnly",!1)){if(!t.auth&&Ca.supported())return mu(e,t);if(et.msie<=11)return wo({method:"GET",url:uu(e,t),sync:!0})}if(t.eventLength<=nd&&n.allowPost){if(Ca.supported())return vu(e,t);if(Ta.supported())return yu(e,t);if(et.msie<=11)return wo({method:"POST",url:cu(e,e=t),data:fu(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return m.resolve()}}function Su(e,t){e.length=0;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);t(i)}function Eu(e){return Hd(ou,Wd,ru,(t=e.shorten,t=_.defaults(t||{},{fields:[],siloMaxLength:nd}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],T.debug("Max length exceeded for an event"),_.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(T.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),ru,du(),lu(e),pu,hu,Su);var t}class Iu{constructor(e){this.queues=e}isEmpty(){return _.all(this.queues,e=>e.isEmpty())}stop(){_.each(this.queues,e=>e.stop())}push(){const t=_.toArray(arguments);_.each(this.queues,e=>e.push.apply(e,t))}enqueue(){const t=_.toArray(arguments);_.each(this.queues,e=>e.enqueue.apply(e,t))}drain(){const t=_.toArray(arguments);return m.all(_.map(this.queues,e=>e.drain.apply(e,t)))}}function _u(t,o,a){o=o||bu(t),a=a||wu(t);e=t;var e=_.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=_.map(e,(i,e)=>{const r=new Cd(function(e,t,n){return S()-e.ts>ad?m.resolve():(n&&(e.params=_.extend({},e.params,{rt:n})),t&&r.failed()?m.reject():(t?a:o)(i,e))});return r.onTimeout=function(){Ud.count(Rd[t.beacon])},t.localStorageUnload&&0===e&&(r.onPass=function(e){ld.remove(r,e)}),r.allowDrainWhileFailed=!0,r.retryPending=!0,r}),e=new Iu(e);return ld.send(t.beacon,e),e}function Cu(e,t){var n=C.get("analytics.excludeEvents");0<=_.indexOf(n,e.type)||!dn(e.type)||t(e)}class Tu{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.beacon=e.beacon,this.localStorageUnload=e.localStorageUnload,this.sendQueue=_u(e)}pause({timeout:e=1e4,silent:t=!1,sendOnUnload:n=!1}={}){var i=_.uniqueId();const r=this["locks"];r[i]={sendOnUnload:n};var n=()=>{r[i]&&(t||R.trigger("ptm:unpaused"),Gt(o),delete r[i],this.flush())},o=Ut(n,e);return t||R.trigger("ptm:paused"),n}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(e||t||(this.savedOnUnload=!1),0!==n.length||0!==i.length||!this.sendQueue.isEmpty()){const r=e||t;if(!_.some(this.locks,e=>!(r&&e.sendOnUnload))){i.push(n.slice()),n.length=0;n=i.slice();i.length=0;const o=[];_.each(n,function(e){this.processSilos(e,function(e){o.push(e)})},this),this.localStorageUnload&&(e||t&&this.savedOnUnload)?(this.savedOnUnload=!0,this.sendQueue.enqueue(...o),ld.save(this.beacon,this.sendQueue.queues[0])):e||t?this.sendQueue.drain(o,e):this.sendQueue.push(...o)}}}}function xu(e){var i,r,t=Eu(e),n=Hd(au,(r=e.beacon,function(e,t){var n=C.get("excludeNonGuideAnalytics")||an();"ptm"===r&&n||t(e)}),Cu,jd,qd(e.cache),(i={overhead:Yd,lower:C.get("sendEventsWithPostOnly")?nd:td,upper:nd,compressionRatio:[2.5,3.75,5]},function(e,t){for(var n=Jd(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=Jd(e,i)}));return new Tu(_.extend({processSilos:t,packageSilos:n},e))}var Ru=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||T.critical(e)}}},Au=Ru(function(e){var t,n,i;if((e=e||L.get())&&e!==Au.lastUrl)return Au.lastUrl=e,t=-1,Js()||(n=e,Vs()&&(i=Ks(),Ws(i,{type:"load",url:n||location.toString()},"*"))),T.debug("sending load event for url "+e),n={load_time:t="undefined"!=typeof performance&&_.isFunction(performance.getEntriesByType)&&!_.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},Vs()&&(n.is_frame=!0),"*"!==(t=un())&&(n.allowed_storage_keys=_.keys(t)),Bd("load",n,e),vd(),R.urlChanged.trigger(),!0});function ku(){return E.normalizedUrl||function(e){try{var t=new Li(e),n=_.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return T.error("Invalid URL provided to normalize"),e}}(L.externalizeURL())}function Ou(t,e,n={}){if(!I(t))return!0;var i=e||ku(),{logger:r,context:o,id:a}=n;if(Array.isArray(t)){if(0===t.length)return!0;for(let e=0;e<t.length;e++){var s=t[e];if(I(s))try{if(new RegExp(s).test(i))return!0}catch(d){r&&o&&a&&r.error(`Invalid page rule regex for ${o} (rule ${e}):`,a,d)}}}else if("string"==typeof t)try{return new RegExp(t).test(i)}catch(d){r&&o&&a&&r.error(`Invalid page rule regex for ${o}:`,a,d)}return!1}function Nu(e,t){return Ou(e,t,{logger:T,context:"guide",id:"unknown"})}Au.reset=function(){Au.lastUrl=null};var Mu=[],Lu=[],Pu={};const Du={ALL:"*",DEFAULT:"default"};function y(e){e=function(e={}){let t=e.channel;return e.hasOwnProperty("channel")?null==t&&(t=Du.DEFAULT):t=Du.ALL,t===Du.ALL?()=>!0:t===Du.DEFAULT?e=>null==e.channel:e=>e.channel==t}(e);return _.filter(Mu,e)}function Fu(e){return Uu(y(e))}function Uu(e){return _.filter(e,function(e){return!e.isFrameProxy})}function Gu(e){_.isArray(e)?(Mu=e,R.guideListChanged.trigger({guideIds:_.pluck(e,"id")})):T.info("bad guide array input to `setActiveGuides`")}function Bu(e={}){return _.any(y(e),function(e){return e.isShown()})}var Hu=function(){let n=[];return{addGuide:e=>{var t;_.isEmpty(e)||(n=n.concat(e),_.each(n,e=>e.hide&&e.hide()),e=y(),(t=_.difference(e,n)).length<e.length&&(Gu(t),A.dispatch("frames/changeGuideList",t)))}}}();function zu(t,n){return _.find(y(),function(e){return _.get(e,t)===n})||null}function b(e){return zu("id",e)}function ju(e){return zu("name",e)}function qu(e,t){return e&&e.id?(e=b(e.id)).findStepById(t):null}var Wu="_pendo-guide-tt_",Vu="_pendo-guide-mobile-tt_",Ku=_.partial(_.get,_,"attributes.resourceCenter"),$u=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},Ju=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},Yu=function(e){return!!_.get(e,"attributes.form")},Xu=function(e){var t="tooltip";return _.get(e,"type")===t||_.get(e,"attributes.calculatedType")===t||_.get(e,"attributes.buildingBlockLayoutType",_.get(e,"buildingBlockLayoutType"))===t};function Zu(){return"undefined"!=typeof selmo&&!!selmo.isPreviewing}function Qu(){return!!(Zu()&&Ba().width<=320)||et.isMobileUserAgent()}function ec(e=document){var t=ec.attachPoint;if(null==t){var n=C.get("guides.attachPoint");if(_.isString(n)){try{t=lo(n)[0]}catch(i){T.info('Error finding guide attach point "'+n+'"')}t=t||document.createElement("div")}else t=!!_.isFunction(n)&&n();ec.attachPoint=t}return t||Va(e)}var tc=function(e){var t=e.getGuide();if(t){t.placeBadge();t=Pu[e.guideId];if(t){t=t.element();if($a(t)&&t.id==="_pendo-badge_"+e.id)return t}}},nc=function(e,t){var n;return e?(n=e.getGuide(),n="building-block"===_.get(n,"attributes.type")||!Ju(n),!e.overrideElement&&n&&(e.overrideElement=tc(e)),e.targetElement=ic(e,t),e.overrideElement||e.targetElement):(T.info("Can't get element for null step"),null)},ic=function(e,t){e=e.elementPathRule||null,e=e?lo(e,t):[Va(t)];return 0===e.length?null:_.first(e)};function rc(e){var t=_.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function oc(e,t,n){var i,r,o,e=ja(e),t=ja(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!==Ha(a)||t.fixed||(o=function(e,t,n,i){var r={x:e.left+e.width-t.width,y:0};r.y="top"===n?e.top:e.top+e.height-t.height;r.y=Math.max(r.y,0),r.x=Math.max(r.x,0),_.contains([es.X,es.BOTH],i)&&(r.x=0);_.contains([es.Y,es.BOTH],i)&&(r.y=0);return r}(a,Ba(),n,Qa(Va(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}var ac=["BUTTON","A","IMG"],sc=["advanceGuide","previousStep","dismissGuide","openLink","showGuide","launchGuide","guideSnoozed","goToStep","submitPoll","submitPollAndGoToStep","confirmation"];function dc(e){return _.isObject(e)&&_.isString(e.action)&&_.contains(sc,e.action)}function uc(e,t,n,i,r){var o,a=_.toArray(arguments).slice(1),s=e.apply(this,a);return n||is(o=ec())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function cc(){return A.getters["frames/isLeader"]()}function lc(e){return A.dispatch("frames/updateFrameVisibility",{visibility:e})}const pc={validateGuide:1,validateLauncher:1,validateGlobalScript:1},hc={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1,onEventCaptured:1,segmentFlagsUpdated:1,segmentFlagsReady:1,segmentFlagsError:1},fc={ready:1,segmentFlagsUpdated:1,segmentFlagsReady:1,segmentFlagsError:1},gc=["ready","onClickCaptured","onEventCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","segmentFlagsUpdated","segmentFlagsReady","segmentFlagsError","validateGuide","validateLauncher","validateGlobalScript"];function mc(i){const e=_.reduce(gc,function(e,r){if(hc[r]){const t=function(e){return yc[r].apply(yc[r],e.data)};i[r].on(t),e.push(()=>i[r].off(t))}if(fc[r]){const n=function(t){{var n=r;t=t.data[0];let e;try{e=new CustomEvent("pendo_"+n,{detail:t})}catch(i){if(!document.createEvent)return;(e=document.createEvent("Event")).initEvent("pendo_"+n,!0,!0),e.detail=t}document.dispatchEvent(e)}};i[r].on(n),e.push(()=>i[r].off(n))}return e},[]);return()=>_.each(e,e=>e())}vc=Zn.call({}),_.each(gc,function(n){vc[n]=function(e){var t;return _.isFunction(e)?vc.on(n,e):(t=pc[n]?"triggerAsync":"trigger",vc[t].apply(vc,[n].concat(_.toArray(arguments))))}});var vc,yc=vc;var bc={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 wc(e){return e.replace(/^https?:\/\//,"")}function Sc(){return Qo()?undefined:C.getLocalConfig("contentHost")||C.getHostedConfig("contentHost")}function Ec(e){var n,t,i,r;return(n=Sc())&&e?(n=/:\/\//.test(t=n)||/^\//.test(t)?t:"https://"+t,t=/(^|\.)app\./,i=wc(at),t=t.test(i)?i.replace(t,"$1cdn."):wc(st),i=wc(st),r=t.replace(/(^|\.)cdn\./,"$1static."),r=[ot&&J(ot)+"-\\d+\\.storage\\.googleapis\\.com",rt&&J(rt)+"\\.storage\\.googleapis\\.com",t&&"content-\\d+\\."+J(r),t&&J(t),i&&i!==t&&J(i)],_.reduce(r,function(e,t){return t?e.replace(new RegExp("(https:)?\\/\\/"+t,"g"),n):e},e)):e}function Ic(e){return Sc()?JSON.parse(Ec(JSON.stringify(e))):e}var _c=function(){var u={},c=_.compose(function(e){var t=function(){var e=J(C.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&T.debug("Failed to verify URL: "+e+" vs "+t),e},Ec);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,yc.usesXhr()&&t.domUrl?(r.deferred.domJson=m.defer(),wo.get(c(t.domUrl)).then(function(e){r.domJson=Ec(e.data);var e=e.data;e=e,_.isObject(e)&&e.hasOwnProperty("type")&&e.hasOwnProperty("children")&&e.hasOwnProperty("props")?r.deferred.domJson.resolve():(T.critical(new Error("Response from the guide was not in proper JSON format")),r.deferred.domJson.reject())})["catch"](function(e){T.critical(e),R.resourceFetchFail.trigger(t,e),r.deferred.domJson.reject("Failed to load content")}),i.push(r.deferred.domJson.promise),o=!0):t.domJsonpUrl&&(r.deferred.domJson=m.defer(),n=Rs(c(t.domJsonpUrl),function(e){M.removeNode(n),e&&R.resourceFetchFail.trigger(t,e)},!0),i.push(r.deferred.domJson.promise),o=!0),t.contentUrlJs&&!C.get("preventCodeInjection")){r.deferred.content=m.defer();var a=Rs(c(function(e){if(Rt()){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}(gt(n)));if(_.isString(n))return n+"/"+t.join("/")}return e}(t.contentUrlJs)),function(e){M.removeNode(a),e&&R.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise),t.contentUrlCss&&(r.deferred.css=m.defer(),Rs({url:c(t.contentUrlCss),type:"text/css"},function(){r.deferred.css.resolve()}),i.push(r.deferred.css.promise))}else if(t.contentUrl&&!C.get("preventCodeInjection")){r.deferred.content=m.defer();var s=Rs(function(e,t){if(!_.isString(e))return e;var n=_.indexOf(e,"?");return n<0?e+t:e.substring(0,n)+t+e.substring(n)}(c(t.contentUrl),".js"),function(e){M.removeNode(s),e&&R.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise)}else if(!o)return m.reject("fetchedDomContent is still false");r.deferred.promise=m.all(i).then(function(){return _.omit(r,"deferred")})}return u[t.id].deferred.promise}catch(d){throw R.resourceFetchFail.trigger(t,d),d}},reset:function(){u={}},guideContent:function(e,t,n,i,r){var o,a,s;_.isString(n)&&(o=n,a=e,s=t,n=_.reduce(d,(e,t)=>t(e,a,s),o),_.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?_.template(n):_.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=Ec(n),e.deferred.domJson.resolve())}}}();function _c(e){e=_s(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}Tc=kc={failed:{},verified:{}},Rc=Ea,Ac=function(e){try{var t=[];return!yc.usesXhr()&&e.domJsonpUrl?t.push(Mc(e,"domJsonpUrl")):yc.usesXhr()&&e.domUrl&&t.push(Nc(e,"domUrl")),e.contentUrlJs?t.push(Mc(e,"contentUrlJs")):e.contentUrl&&t.push(Mc(e,"contentUrl")),m.all(t)}catch(n){throw R.contentVerificationFail.trigger(e,n),n}},xc=function(e){return Ac(e).then(_.noop,function(e){return/verify/.test(e)&&Rc(e),m.reject(e)})},Cc=function(t){return Tc.failed[t.id]?m.reject():Tc.verified[t.id]?m.resolve():xc(t).then(function(){Tc.verified[t.id]=!0},function(e){return Tc.failed[t.id]=!0,m.reject(e)})};var Cc,Tc,xc,Rc,Ac,kc,Oc={verify:function(e){return C.get("guideValidation")?Cc(e):m.resolve()},reset:function(){kc.failed={},kc.verified={}}};function Nc(e,t){var n,i,r=e[t];return _.isString(r)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||_c(e[t]),i=Sc(r),wo.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=$.create()).update(e),c.uint8ToBase64(t.digest())!==n)return m.reject('Unable to verify content at "'+i+'"')})):m.reject('unable to parse "'+r+'"')}function Mc(e,t){var n=e[t];return et.sri&&/[?&]sha(256|384|512)=/.test(n)?m.resolve():Nc(e,t)}Lc="allow",Pc="deny",Dc="pending",Uc=function(){return 0<_.size(vc._handlers.validateGuide)},Gc=function(e,n){var i=[];return _.each(e,function(e,t){n&&(t=n+"."+t),_.isObject(e)?_.each(Gc(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var Lc,Pc,Dc,Fc,Uc,Gc,Bc={state:Fc={},Step:function(e){var n=this;function i(e){return _.filter([["content",_c(e.contentUrl)],["contentCss",_c(e.contentUrlCss)],["contentJs",_c(e.contentUrlJs)],["dom",_c(e.domUrl)],["domJsonp",_c(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=Gc(t)).length&&(t=_.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return _.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<_.size(vc._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-"+_t(n.signature()),(t=Fc[t])!==Pc)&&(t!==Lc?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+_t(t),vc.validateLauncher(t).then(function(){Fc[e]=Lc},function(){Fc[e]=Pc}).then(function(){i=!1,n.render(),n.update(y())},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=Gc(this.data);return t.length&&(t=_.chain(t).filter(function(e){return!/^contentUrl/.test(e[0])}).sortBy(function(e){return e[0]}).value(),e.push(["variables",t])),e},n},validate:function(e){if(!Uc())return m.resolve();try{return _.isArray(e)?m.all(_.map(e,Hc)):Hc(e)}catch(t){throw R.contentValidationFail.trigger(e,t),t}},valid:function(e){return!Uc()||!!(e=Fc[e.guideId])&&e.status===Lc},invalid:function(e){return!!Uc()&&!!(e=Fc[e.guideId])&&e.status===Pc},reset(){Fc={}}};function Hc(i){var r=Fc[i.id];return r||(r={},Fc[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+_t(e),n=(r[t]||(r[t]={status:Dc},r.status=Dc),r[t].promise);return n||(n=vc.validateGuide(e,i).then(function(){r[t].status=Lc,r.status=Lc},function(e){return r[t].status=Pc,r.status=Pc,m.reject(e)}),r[t].promise=n),n})}function zc(e,t){var n=_.toArray(arguments).slice(2);return _.reduce(e,function(e,t){return t.apply(e,n)},t)}function jc(e){return _.isFunction(e.before)?e:(e=Pt(e),zc(jc.behaviors,e))}function Wc(e,t){return e=Pt(e),t=Pt(t),zc(Wc.behaviors,e,t)}jc.behaviors=[],Wc.behaviors=[];Vc.state={},Vc.queue=[],Vc.pending=function(){return _.reduce(Vc.state,(e,t)=>e+(t.loaded?0:1),0)},Vc.reset=function(){Ic.reset(),Vc.state={},Vc.queue=[]},Vc.prefetch=function(e){var t;return Vc.hasContent(e)?_.get(Vc.state[Kc(e)],"promise"):(t=m.defer(),Vc.queue.push([t,e]),t.promise)},Vc.processPrefetch=function(e=10){return Vc.queue.length?(e=Vc.queue.splice(0,Math.max(e-Vc.pending(),0)),m.all(_.map(e,t=>Vc.fetchContent(t[1]).then(e=>{t[0].resolve(e)})["catch"](e=>{t[0].reject(e)})))):m.resolve()},Vc.fetchContent=function(t){var e=Kc(t);if(!(i=Vc.state[e])){var n,i={},r=t.getGuide();if(r.control)return m.resolve();r&&r.language&&(n=r.language);var r=t.guideId+t.id,o=_.extend({id:r,language:n,guideId:t.guideId},_.pick(t,"contentUrl","contentUrlCss","contentUrlJs","domJsonpUrl","domUrl","domHash","contentHash","contentJsHash"));i.promise=Oc.verify(o).then(function(){return i.verified=!0,Ic.load(o)}).then(function(e){return i.loaded=!0,e}),Vc.state[e]=i}return i.promise.then(function(e){_.extend(t,e)})},Vc.hasContent=function(e){return I(e.content)||I(e.domJson)};var qc=Vc;function Vc(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(_.extend(i,{fetchContent:function(e=!1){return e?Vc.prefetch(i):Vc.fetchContent(i)}}),i.after("render",function(e){!function(e){var t=_.indexOf(n.steps,i);_.chain(n.steps).rest(t+1).first(e).each(function(e){_.isFunction(e.fetchContent)&&e.fetchContent()}).value()}(t)})),i}function Kc(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}var $c=function(){var t=R.runtime;const o=[];function a(e,n,i,r){return _.filter(e,function(e){if(_.isFunction(e[r])){if(_.isFunction(e.test))try{return e.test(n,i,E)}catch(t){return T.critical("Error in global script test code block",{error:t}),!1}return _.isRegExp(e.regex)?e.regex.test(i.name)||e.regex.test(n.name):!0}})}function s(e,t,n,i="script"){var r=[];return"script"===i&&_.isFunction(e.script)&&!n&&r.push(e.script),_.size(o)&&(e=a(o,e,t,i),n&&(e=_.filter(e,e=>e.designer)),_.each(e,function(e){r.push(e[i])})),r}function i(n,i,r){const o=r.guide;o&&_.all(s(r,o,!1,"beforeMount"),function(e){try{return e.call(n,i),!i.cancel}catch(t){return T.critical("Exception thrown running beforeMount for: "+JSON.stringify({guideId:o.id,stepId:r.id}),{error:t}),!1}})}var r=Zn.call({}),d={beforeUnmount:{type:"trigger",fromUnmount:!1},beforeUpdate:{type:"trigger",fromUnmount:!1},updated:{type:"trigger",fromUnmount:!1},unmounted:{type:"trigger",fromUnmount:!0},advanced:{type:"trigger",fromUnmount:!0},dismissed:{type:"trigger",fromUnmount:!0},snoozed:{type:"trigger",fromUnmount:!0},hidden:{type:"trigger",fromUnmount:!0},beforeMount:{type:"triggerCancelable",fromUnmount:!1},beforeAdvance:{type:"triggerCancelable",fromUnmount:!1},beforePrevious:{type:"triggerCancelable",fromUnmount:!1},beforeDismiss:{type:"triggerCancelable",fromUnmount:!1},beforeSnooze:{type:"triggerCancelable",fromUnmount:!1}};function u(e){return d[e]}function n(e){var t,n=e.data[0];if(e.step=n,delete e.data,u(e.type))return-1<_.indexOf(["beforeUnmount","unmounted"],e.type)&&(t="active"===(t=n).seenState?"hidden":t.seenState,e.reason=t,"unmounted"===e.type)&&r.trigger(t,e),t=d[e.type].type,r[t](e.type,e),"unmounted"===e.type?r.trigger("afterUnmounted",e):"beforeMount"===e.type&&i(this,e,n),"triggerCancelable"!==t&&e.cancel&&delete e.cancel,e}function c(n){this.step=n,_.each(["read","write","clear"],function(t){this[t]=x[t],this[t+"ByGuide"]=function(){var e=_.first(arguments)+":"+_.get(n,"guide.id");return x[t].apply(this,[e].concat(_.rest(arguments)))}},this);var e=_.bind(function(e){this.step.id!==e.step.id?T.debug("aborting afterUnmounted b/c step ids don't match"):this.purge()},this);this.purge=_.partial(r.off,"afterUnmounted",e),r.on("afterUnmounted",e)}return c.prototype.on=function(e,t){var n,i;u(e)?(d[e].fromUnmount&&(t=_.once(t)),n=this.step,i=t,t=xu(t=e=>{var t=e["step"];if(t.id===n.id)return i(e);T.debug("called guide runtime callback on wrong step")}),r.on(e,t),this.purge=_.compose(this.purge,_.partial(r.off,e,t))):T.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)},{initialize:function(){t.on(n);var e=C.get("guides.globalScripts");_.each(e,$c.addGlobalScript)},teardown:function(){t.off(n),o.length=0},addGlobalScript:function(e){var t;e=function(t){const e=_.without(_.keys(t),"script","test","regex","beforeMount");if(e.length){const n=t.script;t.script=function(){if(_.each(e,function(e){u(e)&&this.on(e,t[e])},this),_.isFunction(n))return n.apply(this,arguments)}}return t}(e),t=e,!_.isFunction(t.script)&&!_.isFunction(t.beforeMount)||t.test&&!_.isFunction(t.test)||t.regex&&!_.isRegExp(t.regex)?T.critical("Error adding invalid GlobalScript via API"):o.push(e)},removeGlobalScript:function(e){0<=(e=_.indexOf(o,e))&&o.splice(e,1)},getContext:function(e){return new c(e)},runCustomScripts:function(i,r,e=!1){_.each(s(i,r,e),function(e){try{var t=$c.getContext(i);e.call(t,i,r,E)}catch(n){T.critical("Exception thrown running code block for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:n})}})},handleEvent:n}}();function Jc(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?_.find(e.children,Jc):void 0}function Yc(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=Yc(e.children[n],t);if(i)return i}return!1}function Xc(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=Xc(e,t.children[n]);if(i)return i}}function Zc(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}const Qc="data-pendo-dark-mode";function el(e,t=e.guideElement){t&&(t=M("#pendo-guide-container",t)[0])&&(e.isDarkMode?t.setAttribute(Qc,""):t.removeAttribute(Qc))}function tl(t){var n=_.get(t,"attributes.darkMode.selector","");if(n){let e;if(E.designerEnabled&&_.has(t,"attributes.darkMode.override"))e=t.attributes.darkMode.override;else try{e=0<E.Sizzle(n).length}catch(i){e=!1}t.isDarkMode=e}}function nl(e,t=!1){var n;_.get(e,"attributes.darkMode.selector","")&&(n=e.isDarkMode,tl(e),n!==e.isDarkMode)&&(el(e),t)&&(e.hide(),e.show(e.seenReason))}il=["p","h1","h2","h3","h4","h5","h6","span","div","li","ul","ol","strong","em","b","i","small","label"];var il,rl={buildNodesFromTemplate:function(e,t,n,i,r){var o=i||y(),a=r||E.BuildingBlockGuides.buildNodeFromJSON;switch(e){case"pendo_resource_center_module_list_item":return function(p,h,f,g){var e=p.templateChildren;return _.reduce(e,function(e,t,n){var i=E.BuildingBlocks.BuildingBlockResourceCenter.findResourceCenterHomeView(f),r=_.find(f,function(e){return e.id===t.id});if(E.designer)r=t,i=_.find(f,function(e){return _.get(e,"attributes.resourceCenter.isTopLevel")});else{if(!r)return e;if(!r.hasResourceCenterContent)return _.each(r.children,function(e){e=b(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"]}),E.designer||d.actions.push(u),_.get(i,"attributes.notificationBubble")),c=_.get(i,"attributes.notifications"),r=(u&&c&&(i.steps&&i.steps[0]&&i.steps[0].isDarkMode&&(c=_.get(i,"attributes.darkMode.notificationBubble.background-color"),o=_.get(i,"attributes.darkMode.notificationBubble.color"),c||o)&&(u=_.clone(u),c&&(u["background-color"]=c),o)&&(u.color=o),"AnnouncementsModule"===_.get(r,"attributes.resourceCenter.moduleId")&&(s=r.id),s="chat"===_.get(r,"attributes.resourceCenter.integrationName")?"chat":s)&&(d.props["data-pendo-notification-id"]=s,c=d,o=u,r=s,i=(u=i).attributes.notifications.individualCounts[s],c=Yc(c,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-row")}))&&(s=_.find(c.children,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-text")}))&&s.props&&s.props.style&&(l=parseInt(s.props.style.width,10))&&!isNaN(l)&&(a=c.children.indexOf(s),l=l-40+"px","100%"!==s.props.style.width&&(s.props.style.width=l),(l="rtl"===s.props.dir)?s.props.style["padding-left"]="40px":s.props.style["padding-right"]="40px",s.props.style["box-sizing"]="content-box",s={type:"div",children:[{type:"div",content:String(u.attributes.notifications.individualCounts[r]),props:{style:{position:"relative",top:"50%","font-weight":o["font-weight"],"font-family":o["font-family"],color:o.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":o["background-color"],display:i?"block":"none"}),"aria-hidden":!0}},c.children.splice(a+1,0,s)),Yc(d=al(d,t,d.props.id,n),function(e){e=_.get(e,"props.class");return e&&0<=e.indexOf("_pendo-resource-center-module-list-item-text-container")})),u=Yc(d,function(e){e=_.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),l=Yc(d,function(e){e=_.get(e,"props.id");return e&&0<=e.indexOf("pendo-home-view-bubble-"+n)});return r&&(r.props["aria-hidden"]=!0,u)&&(u.props["aria-labelledby"]=_.compact([r.props.id,l&&l.props.id]).join(" ")),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 _.reduce(e,function(e,t,n){var i,r=sl(s,t);return r?(i=JSON.parse(JSON.stringify(o)),t.keywords&&(i.props["data-_pendo-text-list-item-1"]=t.keywords),delete i.templateChildren,i.props.id=i.props.id+"-"+n,i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},E.designer||i.actions.push(r),i=al(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;_.filter(r,function(e){return sl(n,e)}).length?(e.children=_.filter(e.children,function(e){return"pendo_task_list_fallback_text"!==e.templateName}),function o(t,n){t.templateName&&(t.templateChildren=n);if(!t.children||!t.children.length)return;for(let e=0;e<t.children.length;e++)o(t.children[e],n)}(e,r)):e.children=_.filter(e.children,function(e){return"pendo_task_list_item"!==e.templateName&&"pendo_task_list_progress_bar"!==e.templateName});E.BuildingBlocks.BuildingBlockResourceCenter.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 _.reduce(e,function(e,t,n){var i,r,o,a=sl(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"},E.designer||i.actions.push(r),r=a.getTotalSteps(),o=a.getSeenSteps(),a.isComplete()&&(o=r),a=parseInt(o/r*100,10),Yc(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=ol(t.subtitle,{currentStep:o,totalSteps:r}):t.stepProgress="Step "+o+" of "+r,i=al(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=(_.forEach(r,function(e){e=sl(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 Yc(e=al(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(p,e,n,h){var t=e.getGuide().attributes.resourceCenter.children,t=_.reduce(t,function(e,t){t=sl(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!_.every(t,function(e){e=e.steps[0];return!!qc.hasContent(e)}))return[];var i=E.BuildingBlocks.BuildingBlockResourceCenter.getResourceCenter(),f=_.get(i,"attributes.notificationBubble");f&&(delete f.dir,"rtl"===p.props["data-localization-direction"])&&(f.dir="rtl");var g=e.getGuide();return _.map(t,function(e,t){var n,i,r,o,a,s,d,u="whatsnew"===_.get(e,"attributes.type"),c=JSON.parse(JSON.stringify(p));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=f,s=h,a=jc(i=e),(n=a.steps[0]).render(),$c.runCustomScripts(n,a),d=(a=n.guideElement)[0].id,Zc(C,"pendo-whats-new-style-"+d,"#"+d+" h1::after { display:none; }",a[0]),u&&((r=dl(u)).props.style.top="20px"),!E.BuildingBlocks.BuildingBlockResourceCenter.hasAnnouncementBeenSeen(i)&&r&&(t.props["class"]+=" pendo-unseen-announcement",t.children=[r]),d=s(t,n),a.appendTo(d),d):(u=c,i=f,r=h,t=g,s=jc(n=e),a=n.steps[0],$c.runCustomScripts(a,s),s=JSON.parse(JSON.stringify(a.domJson)),null!=(d=_.get(t,"attributes.darkModeColorOverrides"))&&d.enabled&&(t=t.steps[0])&&(nl(t,!1),a.isDarkMode=t.isDarkMode,t.isDarkMode)&&(d.guideBackground||d.textColor||d.linkColor||d.borderColor)&&function l(e,t){var n=_.get(e,"props");if(!e||!n)return;n.style||(n.style={});var i=n.style;n=_.get(n,"id","");-1!==n.indexOf("pendo-guide-container")&&(t.guideBackground&&(i["background-color"]=t.guideBackground),t.borderColor)&&(i["border-color"]=t.borderColor);n="a"===e.type;n&&t.linkColor&&(i.color=t.linkColor);var r=t.textColor;!n&&r&&(n=_.get(e,"content",""),n=n&&"string"==typeof n&&0<n.trim().length,-1===il.indexOf(e.type)&&!n||(i.color=r));n=_.get(e,"children",[]);_.isArray(n)&&_.each(n,function(e){l(e,t)})}(s,d),u.children=[s],i&&(o=dl(i),t=Yc(u,function(e){return"pendo-guide-container"===e.props.id}),d=parseInt(u.props.style["padding-top"],10),s=parseInt(t.props.style["padding-top"],10),o.props.style.top=s+d+5+"px"),!E.BuildingBlocks.BuildingBlockResourceCenter.hasAnnouncementBeenSeen(n)&&o&&(u.props["class"]+=" pendo-unseen-announcement",u.children.unshift(o)),delete u.templateName,(i=Xc("pendo-guide-container",u))&&(i.props.id=i.props.id+"-"+a.id),r(u,a))})}(t,n,o,a);case"pendo_guide_data_text_block":return function(e,t,n,i){var r=t.getGuide?t.getGuide():_.find(n,function(e){return e.id===t.guideId}),o=_.get(r,"attributes.dates."+r.language,!1);o=o?{showsAfter:o}:(o=_.get(r,"currentFirstEligibleToBeSeenAt")||_.get(r,"showsAfter")||_.get(r,"publishedAt"),o=o?new Date(o):new Date,r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][o.getMonth()]+" "+o.getDate()+", "+o.getFullYear(),{showsAfter:r});return r=al(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:dl,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return _.reduce(e,function(e,t,n){t=sl(i,t);return t&&e.push(t),e},[])}};function ol(e,n){return e.replace(/<%=\s*([A-Za-z_0-9$]+)\s*%>/gi,function(e,t){return _.isNull(n[t])||_.isUndefined(n[t])?e:n[t]})}function al(e,t,n,i){if(e.content&&(e.content=ol(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?ol(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++)al(e.children[r],t,n,i);return e}function sl(e,t){e=_.find(e,function(e){return e.id===(t.id||t)});if(E.designer)return t;if(e){if(!e.ineligibleForRC)return e;e.control&&e.steps[0].onControlGuide("control")}}function dl(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 ul={buildSvgNode:function(e,t,n){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return cl(t,n)}},createProgressCircleSvg:cl};function cl(e,t){var n,i,r,o,a,s;return Me(9)?(i=(n=ll(n=e,i=t)).fillCircle.stroke,r=n.backgroundCircle.stroke,n=100<=(n.fillCircle.percentComplete||0),o=M(p(E).createHTML('<div aria-hidden="true" focusable="false" class="pendo-progress-circle-ie"><div class="pendo-progress-circle-fill"></div></div>')),a=o.find(".pendo-progress-circle-fill"),n?a.css({border:"3px solid "+i,height:"10px",width:"10px"}):a.css({border:"3px solid "+r,height:"10px",width:"10px"}),o):100<=((n=ll(e,t)).fillCircle.percentComplete||0)?(i=(i=n).fillCircle.stroke,(r=M(p(E).createHTML('<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" class="pendo-progress-circle-fill" viewBox="0 0 24 24" fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>')))[0].setAttributeNS(null,"stroke",i),r):(o=(a=n).fillCircle.stroke,e=a.backgroundCircle.stroke,a=a.fillCircle.percentComplete||0,t='<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="'+(t=100/(2*Math.PI))+'" stroke-width="6px" stroke-linecap="round" fill="none"></circle><circle class="pendo-progress-circle-fill" cx="20" cy="20" r="'+t+'" stroke-width="6px" stroke-linecap="round" transform="rotate(-90 20 20)" fill="none"></circle></svg>',s=(t=M(p(E).createHTML(t))).find(".pendo-progress-circle-fill")[0],t.find(".pendo-progress-circle-background")[0].setAttributeNS(null,"stroke",e),a<=0?s.setAttributeNS(null,"stroke-width","0px"):(s.setAttributeNS(null,"stroke",o),s.setAttributeNS(null,"stroke-dasharray",a+", 100")),t)}function ll(e,t){var n=_.clone(e.svgAttributes);return t&&e.darkModeSvgAttributes&&((t=_.get(e.darkModeSvgAttributes,"backgroundCircle.stroke"))&&(n.backgroundCircle.stroke=t),t=_.get(e.darkModeSvgAttributes,"fillCircle.stroke"))&&(n.fillCircle.stroke=t),n}var pl=function(e,t){return e<t},hl=_.negate(pl);function fl(){var e=Va();return la(e)?Ja(e):((e=Ba()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function gl(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 ml(e){var t;if(e&&e.length)return t=la(Va())?Ja:fa,(e=_.reduce(e,function(n,e){var i;return ds(e)?(i=t(e))?(_.each([["top",pl],["right",hl],["bottom",hl],["left",pl]],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 vl(e,t){var n=fl(),e=ml(e)||{top:0,left:0,right:n.width,bottom:n.height,width:0,height:0};return{viewport:n,box:e,overlays:gl(n,e,t)}}function yl(e){var t=[],n=_.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==Va()){t.push(e.element);for(var i=n.additionalElements.replace(/\s/g,"").split(","),r=0;r<n.additionalElements.length;r++)try{var o=M(i[r]);o&&_.each(o,function(e){t.push(e)})}catch(a){T.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var bl=null,wl=function(e){var t=!_.isEqual(e,bl);return bl=e,t},Sl=null,El=function(e){var t=!_.isEqual(e,Sl);return Sl=e,t},Il=null,_l=function(e){var t=!_.isEqual(e,Il);return Il=e,t},Cl=function(e){return El(e.viewport)||wl(e.box)||_l(e.overlays)};function Tl(e){try{var t=vl(yl(e),_.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));Cl(t)&&_.each(e.backdrop.children,function(n){var e=n.getAttribute("pendo-region"),e=t.overlays[e];_.each(e,function(e,t){n.style[t]=e+"px"})})}catch(n){T.info("Failed to update BlockOut ui",{contexts:["error"]})}}function xl(e){try{var t,n,i,r;if(!(0<M("._pendo-guide-backdrop_").length))return t=vl(yl(e),_.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),Cl(t),n={"z-index":1e4,position:"fixed"},i=[],_.each(t.overlays,function(e,t){t=function(e,t){var n=M("div.pendo-backdrop-region-"+e);n.length||(n=M(document.createElement("div")).addClass("pendo-backdrop-region-"+e));return M(n).css(t).attr("pendo-region",e),n}(t,_.extend({},e,n));i.push(t)}),o=i,s=Xc("pendo-backdrop",(a=e).domJson),_.each(["left","right","width","height","bottom","top"],function(e){delete s.props.style[e]}),d=M(document.createElement("div")).attr("id","pendo-backdrop").addClass("_pendo-guide-backdrop_"),_.each(s.props,function(n,i){_.each(o,function(t,e){if("style"===i){let e=s.props.style;a.isDarkMode&&s.darkModeProps&&(e=Object.assign(Object.assign({},s.props.style),s.darkModeProps.style)),t.css(e)}else"class"===i?t.addClass(n):"id"===i?t.attr(i,n+"-"+e):t.attr(i,n);d.append(t)})}),r=d,e.backdrop=r[0],r}catch(u){T.info("Failed to add BlockOut ui",{contexts:["error"]})}var o,a,s,d}var Rl="top",Al="bottom",kl="left",Ol="right",Nl="center";function Ml(e,t,n){return n===Ol||n===kl?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?Nl:n<e/2?Ol:kl)}const Ll={DEFAULT_CARET_OFFSET:10,BOUNDARY_MARGIN_RIGHT:.98,BOUNDARY_MARGIN_LEFT:.02,Z_INDEX:{DEFAULT:"300000",CARET:11,BORDER_CARET:10}},Pl={Top:"border-top",Right:"border-right",Bottom:"border-bottom",Left:"border-left"};var Dl={createBBTooltip:Ul,getBBTooltipDimensions:Gl,determineBBHorizontalBias:Ml,determineTooltipPosition:Bl,positionBBTooltipWithBias:Hl,calculateToolTipPositionForTopBottom:zl,calculateToolTipPositionForLeftRight:ql,buildTooltipCaret:Vl,styleTopOrBottomCaret:function(e,t,n,i){return _.extend(e.style,$l(t,n,i)),e},styleLeftOrRightCaret:function(e,t,n){return _.extend(e.style,Jl(t,n)),e},buildBorderCaret:Yl,determineBorderCaretColor:Xl,placeBBTooltip:function(e,t){var n,i,r,o,a,s,t=t||Zl(e);t&&(r=t.ownerDocument||document,n=r.defaultView||window,r=e.element||tc(e,r),i=ja(r,n),"none"!==f(e.elements[0]).display)&&(r=fa(r),s=e.attributes.layoutDir,e=e.guideElement,o=M(t).find("#pendo-guide-container"),a=o[0].style,t=f(t),t={height:parseInt(t.height,10),width:parseInt(t.width,10)},o={height:parseInt(o[0].getAttribute("data-caret-height"),10)||0,width:parseInt(o[0].getAttribute("data-caret-width"),10)||0,backgroundColor:o[0].style["background-color"],offset:Ll.DEFAULT_CARET_OFFSET,borderColor:a.borderColor,borderWidth:parseInt(a.borderWidth,10)||0},a=this.getBBTooltipDimensions(i,t,o,s,r,Ba(n)),o.height&&o.width&&(t=e.find(".pendo-tooltip-caret")[0],s=e.find(".pendo-tooltip-caret-border")[0],t&&Kl(t,a.caret),s)&&Kl(s,a.caretBorder),e.css({top:a.top,left:a.left,position:i.fixed?"fixed":"absolute"}))},isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!_.isObject(e.domJson)||!(e=Jc(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForGuide:function(e,t,n){e.attributes&&"tooltip"===e.attributes.calculatedType?(Ul(t,e.element,e,n),e.hasBeenScrolledTo||(ls(e.element),rc(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)):e.element&&e.element!==M.getBody()&&!e.hasBeenScrolledTo&&(ls(e.element),cs(e.element,window),e.hasBeenScrolledTo=!0)},patchGuideContainerWidthForResponsiveTooltips:function(e,t,n){t=t||Zl(e);var i,r,o,a,s,d;t&&(i=e.element||tc(e,t.ownerDocument||document))&&(o=t.style.width)&&-1!==o.indexOf("vw")&&(o=Fl(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 Fl(e,t,n,i){var r,o,a,s,d,u=(t.ownerDocument||document).defaultView||window,c=ja(t,u),t=fa(t),u=Ba(u),l=e.attributes.layoutDir||"auto";return(0!==c.height||0!==c.width)&&(r=e&&!e.elementPathRule,n=Yc(n,function(e){return"pendo-guide-container"===e.props.id}))?(o={height:parseInt(n.props["data-caret-height"],10)||0,width:parseInt(n.props["data-caret-width"],10)||0,offset:Ll.DEFAULT_CARET_OFFSET,borderWidth:0},a=null,d=_.get(n,"props.style.border"),s=_.get(n,"darkModeProps.style.border"),e&&e.isDarkMode&&s?a=s:d&&(a=d),a&&(s=a.split(" "),o.borderColor=s[2],o.borderWidth=parseInt(s[0],10)||0),d=_.get(n,"props.style"),a=_.get(n,"darkModeProps.style"),s=_.get(d,"background-color"),d=_.get(a,"background-color"),e&&e.isDarkMode&&d?o.backgroundColor=d:s&&(o.backgroundColor=s),{elementPos:c,screenPos:t,screenDimensions:u,caretDimensions:o,tooltipSizes:{width:i.offsetWidth,height:i.offsetHeight,layoutDir:l},containerDomJson:n,elementIsNotVisible:r}):null}function Ul(e,t,n,i){var r,o,a,s,d;if(n.guideElement)return(t=Fl(n,t,e,i))?({elementPos:e,tooltipSizes:a,screenPos:d,caretDimensions:r}=t,(o=n.guideElement).addClass(Zu()?qu:Wu),a=Gl(e,{height:a.height,width:a.width},r,n.attributes.layoutDir,d,t.screenDimensions),n&&(n.dim=a),n&&_.isFunction(n.getGuide)&&(s=n.getGuide()),d=_.get(s,"attributes.resourceCenter"),e.fixed?(o.css({position:"fixed"}),i.style.position="absolute"):n&&d||(i.style.position="absolute"),r.height&&r.width&&Vl(o,a,r),t=Ll.Z_INDEX.DEFAULT,i&&i.style&&i.style["z-index"]&&(t=i.style["z-index"]),o.css({"z-index":t}),d||o.css({height:"auto",width:"auto",overflow:"visible"}),n.elementPathRule&&o.css({left:a.left,top:a.top,position:e.fixed?"fixed":"absolute"}),"top"===a.layoutDir&&a.hbias===kl&&o.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),o[0]):null}function Gl(e,t,n,i,r,o){var a,s,i=i||"auto",t={width:Math.min(t.width,o.width),height:t.height},d=(t.layoutDir=i,t.hbias=Ml(e,o,i),t.vbias=(s=e,d=o,(a=i)===Rl||a===Al?a:(a=s.top,(d=(s=d.height)/3)<a&&a<2*d?Nl:a<s/2?Al:Rl)),t.layoutDir=Bl(t,o,r,i),Hl(t,e,o,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),n.height&&n.width&&(a=n,s=e,(r=t).caret={},"top"!==r.layoutDir&&"bottom"!==r.layoutDir||_.extend(r.caret,$l(r,a,s)),"left"!==r.layoutDir&&"right"!==r.layoutDir||_.extend(r.caret,Jl(r,a)),r.caretBorder=function(e,t,n){for(var i={top:"",right:"",bottom:"",left:""},r=["Top","Right","Bottom","Left"],o=0;o<r.length;o++){var a=r[o],s="border"+a+"Width",d="border"+a+"Color",u="border"+a+"Style",a=Pl[a],c=function(e,t,n){if(e[t])return parseInt(e[t],10)||0;t=e[n];return t&&parseInt(t,10)||0}(e,s,a);c?(i[s]=c+t.borderWidth+"px",i[d]=Xl(function(e,t,n){if(e[t])return e[t];t=e[n];if(!t)return"";if(/transparent/i.test(t))return"transparent";n=t.indexOf("solid");return-1!==n?t.slice(n+5).trim():""}(e,d,a),t.borderColor),i[u]="solid"):(i[s]="",i[d]="",i[u]="")}var l=t.borderWidth;"top"===n&&(i.left=parseInt(e.left,10)-l+"px",i.bottom=parseInt(e.bottom,10)-l+"px");"bottom"===n&&(i.left=parseInt(e.left,10)-l+"px",i.top=parseInt(e.top,10)-l+"px");"right"===n&&(i.top=parseInt(e.top,10)-l+"px",i.left=parseInt(e.left,10)-l+"px");"left"===n&&(i.top=parseInt(e.top,10)-l+"px",i.right=parseInt(e.right,10)-l+"px");return i}(r.caret,a,r.layoutDir)),t}function Bl(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===Nl)&&(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!==Nl&&(c=e.hbias),d&&u||(u||(c="right"),d)||(c="left")),(c=c&&"bottom"!==c||!s||a?c:"top")||e.hbias)||"bottom")}function Hl(e,t,n,i){return"top"===e.layoutDir||"bottom"===e.layoutDir?zl(e,n,t,e.layoutDir,e.hbias,i):ql(e,n,t,e.vbias)}function zl(e,t,n,i,r,o){var a=e.height,s={top:null,left:null},a=("bottom"===i?s.top=n.top+n.height:"top"===i&&(s.top=n.top-a),{right:(i=t).width*Ll.BOUNDARY_MARGIN_RIGHT,left:i.width*Ll.BOUNDARY_MARGIN_LEFT});return s.left="right"===r?function(e,t,n,i,r,o){var n=jl(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?Wl(e,a,i):e-t;return e}(n,e,o,t,a.right,a.left):"left"===r?function(e,t,n,i,r,o){n=jl(n),t=t.width;e=e.left-t+e.width/2+n;if(e<o)return r<e+t+(n=o-e)?Wl(e,t,i):e+n;return e}(n,e,o,t,a.right,a.left):function(e,t,n,i,r){t=t.width;e=e.left+e.width/2-t/2;var o=e+t;if(i<o){if((e-=o-i)<r)return Wl(e,t,n)}else if(e<r){o=(e+=r-e)+t;if(i<o)return Wl(e,t,n)}return e}(n,e,t,a.right,a.left),s}function jl(e){e=(parseInt(e.offset,10)||0)+(parseInt(e.width,10)||0)+(parseInt(e.borderWidth,10)||0);return isNaN(e)?0:e}function Wl(e,t,n){n=n.width-(e+t);return n<e?e-(e-n)/2:e<n?e+(n-e)/2:e}function ql(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 Vl(e,t,n,i){var r=document.createElement("div"),e=(r.setAttribute("class","pendo-tooltip-caret pendo-tooltip-caret--"+t.layoutDir),r.style.position="absolute",r.style.zIndex=Ll.Z_INDEX.CARET,Kl(r,t.caret),e.find("#pendo-guide-container")[0].parentNode);e.appendChild(r),n.borderWidth&&(n=Yl(r,t),e.appendChild(n))}function Kl(e,t){_.extend(e.style,t)}function $l(e,t,n){var i,r,o,a={},n=(a["border-left"]=t.width+"px solid transparent",a["border-right"]=t.width+"px solid transparent",a.right="",n=n,i=t,r=(o=e).hbias,n&&n.left?n.left+n.width/2-o.left-i.width:"left"===r?o.width-2*i.width-i.offset-i.borderWidth:"right"===r?i.offset+i.borderWidth:o.width/2-i.width);return a.left=n+"px","bottom"===e.layoutDir&&(a["border-bottom"]=t.height+"px solid "+t.backgroundColor,a["border-top"]="",r=-1*t.height,t.borderWidth&&(r+=t.borderWidth),a.top=r+"px",a.bottom=""),"top"===e.layoutDir&&(a["border-top"]=t.height+"px solid "+t.backgroundColor,a["border-bottom"]="",o=-1*t.height,t.borderWidth&&(o+=t.borderWidth),a.bottom=o+"px",a.top=""),a}function Jl(e,t){var n,i=Ba(),r={};return r["border-top"]=t.width+"px solid transparent",r["border-bottom"]=t.width+"px solid transparent",r.bottom="",e.vbias===Rl?(n=e.height-2*t.width-t.offset-t.borderWidth,r.top=n+"px",e.top+=t.offset+t.width+t.borderWidth):e.vbias===Al?(r.top=t.offset+t.borderWidth+"px",e.top-=t.offset+t.width+t.borderWidth,e.top+e.height>i.height&&(e.top=e.top-(e.top+e.height-i.height)),e.top=Math.max(0,e.top)):r.top=e.height/2-t.width+"px","left"===e.layoutDir&&(r["border-left"]=t.height+"px solid "+t.backgroundColor,r["border-right"]="",n=-1*t.height,t.borderWidth&&(n+=t.borderWidth),r.right=n+"px",r.left=""),"right"===e.layoutDir&&(r["border-right"]=t.height+"px solid "+t.backgroundColor,r["border-left"]="",i=-1*t.height,t.borderWidth&&(i+=t.borderWidth),r.left=i+"px",r.right=""),r}function Yl(e,t){e=e.cloneNode();return e.setAttribute("class","pendo-tooltip-caret-border"),e.style.zIndex=Ll.Z_INDEX.BORDER_CARET,Kl(e,t.caretBorder),e}function Xl(e,t){return"transparent"===e?e:t}function Zl(e){var t,n;if(e.guideElement)return t="pendo-resource-center-container"===e.guideElement.attr("id"),n=Jc(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}function Ql(t){var e=t.find('[data-pendo-grow-height="true"]');if(e.length){var n=Object.entries(e),i=[];for(let e=0;e<n.length;e++)if(Number.isInteger(Number.parseInt(n[e][0],10))){const o=n[e][1];var r=_.some(i,function(e){return e.parentNode===o.parentNode});if(!r){let e=t[0];r=o.parentNode.closest('[data-pendo-grow-height="true"]');if(r){if(!_.contains(i,r))continue;e=r}ep(o,e),i.push(o)}}}}function ep(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=f(o),r=parseInt(r.marginTop,10)+parseInt(r.marginBottom,10),n+=o.offsetHeight+r)}var a=e.offsetHeight,e=f(e),e=parseInt(e.paddingTop,10)+parseInt(e.paddingBottom,10),s=f(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 tp(e,t){var n,i,r,o,a,s,d,u,c,e=M("#"+e,t)[0];e&&(t=M(e),n=M(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(f(e).height,10),d=Ba().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 np(e,t){e=M("#"+e,t)[0];if(e){t=e.getAttribute("data-pendo-mobile-layout");if(!t){var n=M(e),t=M(n.find("#pendo-guide-container")[0]),i=parseInt(e.style.width,10),r=(t.css({"max-width":"none"}),n.css({"margin-right":"0px"}),parseInt(f(e).width,10)),o=M.getBody(),o=(la(o)?Ja(o):Ba()).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 ip(e,i){var e=_.isArray(e)?e:[e],e=_.reduce(e,function(e,t){var t=M("#"+t,i),n=t[0];return n&&!n.getAttribute("data-pendo-mobile-layout")&&(n=t.find("#pendo-guide-container")[0],e.push(n)),e},[]),t=e;(t=_.reduce(t,function(e,t){return e.concat(_.toArray(M(['[class*="_pendo-text-"]:not([class*="_pendo-resource-center-"])','.pendo-mock-flexbox-element > [class*="_pendo-button-"]',"._pendo-multi-choice-poll-select"].join(","),t)))},[]))&&t.length&&rp(_.reduce(t,function(e,t){var n,t=M(t),i=sp(t[0]),i=i.marginLeft+i.marginRight,r=ap(t);return r&&(n=r.paddingLeft+r.paddingRight,r=r.width-i-n,e.push({$blockElement:t,availableSpace:r})),e},[])),_.each(e,function(e){var t=e,t=((t=M("._pendo-open-text-poll-input",t))&&t.length&&_.each(t,function(e){var t,n=M(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)),sp(n[0])),r=e.marginLeft+e.marginRight,o=ap(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&op(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),rp({$blockElement:n,availableSpace:o}))}),e);(t=M(["._pendo-video","._pendo-image"].join(","),t))&&t.length&&_.each(t,function(e){var t=M(e),n=sp(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=ap(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&op(t,i,r,a),rp({$blockElement:t,availableSpace:a}))})})}function rp(e){_.isArray(e)||(e=[e]),_.each(e,function(e){e.$blockElement.css({"max-width":"none"})});var n=_.map(e,function(e){return sp(e.$blockElement[0]).width});_.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function op(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 ap(e){e=e.closest("._pendo-row");if(e){e=f(e[0]);if(e)return{width:parseFloat(e.width),paddingLeft:parseInt(e.paddingLeft,10),paddingRight:parseInt(e.paddingRight,10)}}}function sp(e){e=f(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var dp,g={calculateTotalOffsetWidth:lp,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=lp(e,r);e[r].style.left=n+o+"px"}1<e.length&&(i.style.right=n+"px");t.style.left=n+"px"},createFlexContainer:function(e,t){var n=document.createElement("div");n.style.display="inline-block",e||t||(n.style.position="absolute");return n.style["vertical-align"]="top",n.setAttribute("class","pendo-mock-flexbox-element"),n},createFlexRow:function(){var e=document.createElement("div");return e.setAttribute("class","pendo-mock-flexbox-row"),e.style.display="block",e.style.position="relative",e.style.width="100%",e},findMaxChildHeight:function(e,t){for(var n=[],i=0;i<e.length;i++){var r;t&&-1!==(e[i].children[0].children[0].getAttribute("class")||"").indexOf("pendo-block-wrapper")&&(r=e[i].children[0].offsetHeight+"px",e[i].style.height=r),n.push(e[i].offsetHeight)}return _.reduce(n,function(e,t){return Math.max(e,t)},20)},flexEnd:function(e,t){for(var n=t,t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=lp(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=lp(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return _.filter(e,cp)},getPendoVisualElements:function(e){return _.filter(e,function(e){return!cp(e)})},initializeFlexElements:function(e){var t=e.cloneNode(),n=up(e),i=g.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++)hp(n[r])?t.appendChild(n[r]):t.appendChild(g.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:cp,setElementHorizontalAlignment:function(e,t,n){if(!(e.length<1))switch(n){case"space-between":g.spaceBetween(e,t);break;case"space-around":g.spaceAround(e,t);break;case"space-evenly":g.spaceEvenly(e,t);break;case"center":g.center(e,t);break;case"flex-start":g.flexStart(e);break;case"flex-end":g.flexEnd(e,t)}},setElementVerticalAlignment:function(e,t,n){switch(n){case"top":g.topAlignment(e);break;case"center":g.centerAlignment(e,t);break;case"bottom":g.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=lp(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=lp(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=lp(e,r);e[r].style.left=n+o+"px"}t.style.left=n+"px",i.style.right=n+"px"},topAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.top="0px"},centerAlignment:function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=i.offsetHeight,o=t/2,o=Math.round(o-r/2);i.style.top=o+"px"}},bottomAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.bottom="0px"},wrapElementInMockFlexboxContainer:function(e,t,n){var i=e.getAttribute("class")||"",r=-1!==i.indexOf("pendo-block-wrapper"),o=e.style&&"absolute"===e.style.position,a=_.get(e.style,"width",""),s=f(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)||f(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(f(t).width,10),u=parseInt(f(e).width,10)+parseInt(e.style.marginRight||0,10)+parseInt(e.style.marginLeft||0,10),t=(M(t).find("._pendo-simple-text").getParent()||M(n).find("._pendo-simple-text").getParent())[0],n=s-u,"border-box"!==_.get(t,"style.boxSizing")&&(n=n-parseInt(t.style.paddingLeft||0,10)-parseInt(t.style.paddingRight||0,10)),t.style.width=n.toString()+"px",t.style.maxWidth=n.toString()+"px");{var u;if(!i||i.indexOf("pendo-mock-flexbox-element")<0)return(s=g.createFlexContainer(o)).appendChild(e),-1<e.id.indexOf("pendo-text")&&"rtl"===e.dir&&(s.style.right="0px"),u=_.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:up,initializeFlexRows:function(e,t,n,i){var r=function(e){return _.filter(e,function(e){e=e.getAttribute("class")||"";return e&&-1<e.indexOf("pendo-mock-flexbox-element")})}(e.children);0!==r.length&&(r=g.wrapFlexElementsInFlexRows(r,e,i),g.formatFlexRows(r,e,t,n,i))},initializeNativeFlexRow:function(e,t,n){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"},getRowWidth:pp,wrapFlexElementsInFlexRows:function(e,t,n){for(var i=n||pp(t),r=g.createFlexRow(),o={row:r,rowWidthUsed:0},a=[o],s=0;s<e.length;s++){var d=e[s],u=fa(d)["width"],u=parseInt(u,10);o.rowWidthUsed+=u,o.rowWidthUsed>i&&0!==_.indexOf(e,d)&&(o.rowWidthUsed-=u,(r=g.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||pp(t),a=0;a<e.length;a++){var s=e[a],d=(t.appendChild(s.row),g.findMaxChildHeight(s.row.children,!1)),u=(s.row.style["min-height"]=d+"px",o-parseInt(s.rowWidthUsed,10));g.setElementHorizontalAlignment(s.row.children,u,n),g.setElementVerticalAlignment(s.row.children,d,i)}},isElementHiddenInGuide:hp,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=M("#"+e,t)[0];e&&(gp(e),g.flexElement(e,n))},flexElement:function(e,r){e=M("[data-pendo-display-flex]",e);_.each(e,function(e){var t,n=e.getAttribute("data-pendo-justify-content"),i=e.getAttribute("data-row-vertical-alignment");r?g.initializeNativeFlexRow(e,n,i):(t=g.getRowWidth(e),e=g.initializeFlexElements(e),g.initializeFlexRows(e,n,i,t))})},maintainAspectRatios:gp};function up(e){return M(["._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 cp(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function lp(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 pp(e){var t=fa(e)["width"],e=f(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function hp(e){fp(e);var t=Ja(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-")&&(fp(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function fp(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function gp(e){var n="data-aspect-ratio",e=M("["+n+"]",e);_.each(e,function(e){var t=e.getAttribute(n).split(":"),t=1<t.length?parseInt(t[0],10)/parseInt(t[1],10):parseFloat(t[0]);isNaN(t)||(e.style.height=e.offsetWidth/t+"px")})}function mp(){return!E.designer&&C.get("disableGuidePseudoStyles")}function vp(e,t,n){return e&&e.templateName?rl.buildNodesFromTemplate(e.templateName,e,t,n,wp):"style"===e.type&&mp()?[]:[wp(e,t,n)]}function yp(e,t,n,i){e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw i&&(e+=' for node type "'+i+'"'),T.info(e),new Error(e)}function bp(r,o,a,s){var d={allow:!0,allowfullscreen:!0,alt:!0,"alt-text":!0,autofocus:!0,"class":!0,cols:!0,contenteditable:!0,referrerpolicy:!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};let u={referrerpolicy:["strict-origin","strict-origin-when-cross-origin"]};var c={embed:{src:!0}},l=/^data-/,p=/^aria-/,e=_.keys(r);return _.reduce(e,function(e,t){c[s]&&c[s][t]&&yp(t,a,o,s),d[t]||l.test(t)||p.test(t)||yp(t,a,o);var n=r[t],i=u[t];if(i&&!_.contains(i,n))throw i='illegal value "'+(i=n)+'" for building block key "'+t+'" found on guide "'+a+'" step "'+o+'"',T.info(i),new Error(i);return e[t]=r[t],e},{})}function wp(n,i,e){i=i||{id:"unknown",guideId:"unknown"},(n=Pt(n)).props=bp(n.props,i.id,i.guideId,n.type),i.isDarkMode&&n.darkModeProps&&(n.darkModeProps=bp(n.darkModeProps,i.id,i.guideId,n.type));var r=M(document.createElement(n.type));if(document.createElement("div").appendChild(r[0]),"script"===r[0].tagName.toLowerCase())return M(document.createElement("noscript"));if("pendo-backdrop"===(n.props&&n.props.id))return i.hasBackdrop=!0,xl(i);if(_.each(n.props,function(e,t){if("style"===t){let e=n.props.style;i.isDarkMode&&n.darkModeProps&&(e=Object.assign(Object.assign({},n.props.style),n.darkModeProps.style)),r.css(e)}else"data-pendo-code-block"!==t||!0!==e||C.get("preventCodeInjection")?r.attr(t,e):(t=i.getContent())&&0!==mt.call(t).length&&r.addClass("pendo-code-block").html(t)}),n.content&&r.text(n.content),"style"===n.type){E.designer||(n.css=function(e){for(var t=["button:focus"],n=[],i=0;i<e.length;i++)_.contains(t,e[i].selector)||n.push(e[i]);return n}(n.css));var t=C.get("inlineStyleNonce");t&&r.attr("nonce",t);let e=n.css;n.forDarkMode&&(e=_.map(e,function(e){return{styles:e.styles,selector:"[data-pendo-dark-mode] "+e.selector}})),r.styleSheet?r.styleSheet.cssText=Cp(e):r.text(Cp(e))}if(n.svgWidgetId&&ul.buildSvgNode(n.svgWidgetId,n,i.isDarkMode).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)_p(r,n.actions[a],i),"renderGuidesListItem"===n.actions[a].action&&((o=b(n.actions[a].parameters[0]))?r.text(o.name):r.attr("style","display: none;"));if(_.find(n.actions,function(e){return"dismissGuide"===e.action})&&!i.hasEscapeListener&&(i.hasEscapeListener=!0,i.attachEvent(window,"keyup",function(e){27===e.keyCode&&i.eventRouter.eventable.trigger("pendoEvent",{step:i,action:"dismissGuide"})},!0)),n.children)for(var s=is(Qu()),d=s!==document,u=0;u<n.children.length;u++){var c=vp(n.children[u],i,e);_.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)):(M.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){Sp(e,i)}):Sp(r[0],i),r}function Sp(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++,Ip(M(e),t))}function Ep(e){var t,n={},n=(!e.containerId&&e.domJson&&(n=Jc(e.domJson)),e.containerId||n.props&&n.props.id||""),i=n&&M("#"+n,e.guideElement)[0];e&&e.attributes&&e.attributes.imgCount&&(e.attributes.imgCount--,i)&&e.attributes.imgCount<=0&&(np(n,e.guideElement),ip(n,e.guideElement),g.flexAllThings(n,e),t=e.getGuide(),_.get(t,"attributes.isAnnouncement")||"AnnouncementsModule"===_.get(t,"attributes.resourceCenter.moduleId")||(tp(n,e.guideElement),(t=i.children.item("pendo-guide-container"))&&t.style&&"auto"===t.style.overflow&&(ip(n,e.guideElement),g.flexAllThings(e.containerId,e))),Dl.positionStepForGuide(e,e.domJson,i),i.style.visibility="visible",i.parentNode.style.visibility="visible",M.event.dispatch(i,{type:"imagesLoaded"}))}function Ip(e,t){e.on("load",function(){Ep(t)}),e.on("error",function(){T.info(`Error loading image (${e[0].src}) for guide step id "${t.id}" in guide id "${t.guideId}".`),Ep(t)})}function _p(n,i,r){n.on(i.eventType,function(e){var t;i.designerAction?E.designerv2&&E.designerv2.designerActions&&E.designerv2.designerActions[i.action](n,i.parameters):(t={action:i.action,params:i.parameters,step:r,ignore:!!i.ignore,srcElement:e.srcElement},("showElements"!==i.action&&"hideElements"!==i.action||e.srcElement&&e.srcElement.getAttribute("id")===i.source||e.target&&e.target.getAttribute("id")===i.source)&&r.eventRouter.eventable.trigger("pendoEvent",t))})}function Cp(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=Cp(n[r].styles):_.each(n[r].styles,function(e,t){i+=t+":"+e,n[r].selector.match(/\d+%/)||(i+="!important;")}),i+="}";return i}function Tp(t){_.each(document.head.childNodes,function(e){e&&M.hasClass(e,"pendo-style-"+t)&&Wa(e)})}var xp=function(){var e=window.navigator;return((_.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},Rp="meta",Ap=_.compose(JSON.parse,JSON.stringify),kp=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()},Op=function(e={}){var t,n,i,r,o;return _.isObject(e)||(e={}),an()?(T.warn("Ignoring identify/updateOptions metadata while identity consent is dnt."),{options:Dp(),hashChanged:!1,storeChanged:!1}):(e.jwt&&e.signingKeyName&&(t=vd.getJwtOptions(e,"updateOptions"))&&(vd.set(_.pick(e,"jwt","signingKeyName")),e=t),t=e,n=_.extend({},t.visitor),i=_.extend({},t.account),t=_.extend({},t.parentAccount),n.id===vi&&(T.info("Missing visitor id."),delete n.id),hi(i.id)&&hi(t.id)&&(Si(i.id)?t.id=i.id.split(wi)[0]:i.id=""+t.id+wi+i.id),hi(i.id)&&(i.id=""+i.id),hi(n.id)?n.id=""+n.id:n.id=v({generate:!0}),n.language=xp(),e={visitor:Ap(n),account:Ap(i),parentAccount:Ap(t),date:kp(),version:E.VERSION},A.getters["metadata/selfHosted"]()&&(e.selfHosted=!0),n=_.clone(Dp()),C.setLocalConfig(_.extend({},C.getLocalConfig(),e)),A.commit("metadata/setMetadata",e),i=Dp(),hi(e.visitor.id)&&(E.identify(e.visitor.id,e.account.id),e.visitor.id=v(),e.account.id=Ai()),r=_t(e),void 0!==(o="object"==typeof(o=r)?_t(o):o)&&o.toString&&(o=o.toString()),o=""+(_.isNumber(dp)?dp:Oi(Rp))!==o,dp=r,o&&ki(Rp,r),{options:e,hashChanged:o,storeChanged:!_.isEqual(n,i)})},Np=xu(function(e){e=Op(e);R.metadata.trigger(e)}),Mp=xu(function(e,t){_.isObject(e)?Np(e):_i(e,t)}),Lp=function(){var t,e=M("script");return e=e,t=new RegExp("/agent/static/"+E.apiKey+"/pendo\\.js$"),!_.any(e,function(e){return t.test(e.src)})&&!ke()},Pp=function(){var e=C.get("blockAgentMetadata");return e!==undefined&&e};function Dp(){return A.getters["metadata/metadata"]()}function Fp(){return JSON.parse(JSON.stringify(Dp()))}function Up(e){var t=e.data[0],n=C.getLocalConfig()||{};Mi(e)?(mi([Rp]),A.commit("metadata/reset",t)):(n.visitor=_.extend({},n.visitor,{id:t.visitor_id}),n.account=_.extend({},n.account,{id:t.account_id}),C.setLocalConfig(n),A.commit("metadata/setMetadata",n))}var Gp={Launcher:{addBehavior:_.noop},Metadata:{getMetadata:Dp},Util:{documentScrollTop:sa,documentScrollLeft:da,getOffsetPosition:ja},Events:R,JWT:{getJWT:vd.get}};var Bp,Hp,zp,jp,Wp={},qp=(Hp=[],zp=[],jp={},(Bp=Wp).getExtensions=function(){return zp},Bp.tagExtension=function(e,t){e=Bp.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},Bp.findExtensionByTag=function(t){return _.find(zp,function(e){return _.contains(e.tags,t)})},Bp.findExtensionByName=function(e){return _.findWhere(zp,{name:e})},Bp.filterExtensionsByUse=function(t){return _.filter(zp,function(e){return e.use===t})},Bp.findExtensionByNameAndProvider=function(t,n){return _.find(zp,function(e){e=e.data;return!!e&&e.name===t&&e.provider&&e.provider.name===n})},Bp.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],jp[e]={handler:t,validators:n}},Bp.getExtensionFrames=function(){return _.reduce(zp,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=_.filter(e,Vp)).length&&(Hp=function n(e){if(!e.length)return e;var t=_.filter(e,Kp);if(t.length)return n(_.difference(e,t));return e}(Hp.concat(e)))});function Vp(t){var e;return!!_.every(["name","version","use","type","uri"],_.partial(_.has,t))&&(e=t.use,e=jp[e]?jp[e].validators:[],_.every(_.map(e,function(e){return e(t)})))}function Kp(e){var t;return"behavior"===e.use?!!e.uri(Bp,Gp)&&(zp.push(e),!0):(t=e.use,!!(t=jp[t]?jp[t].handler||_.identity:null)&&((e=t(e))&&zp.push(e),!!e))}var P,$p,Jp,Yp,Xp,D={initializeResourceCenter:function(r){var e,t;return!(P=Qp(r))||A.getters["frames/isShownInAnotherFrame"]()(P.steps[0])?m.resolve():(e=eh(P,r),(t=_.reduce(e,function(e,t){var n;return Zp(t)?(n=m.resolve(t.steps[0].fetchContent())["catch"](function(){t.hasResourceCenterContent=!1,T.error("Failed to load content for Resource Center module: "+t.id)}),e.concat(n)):e},[])).push(Bc.validate([P].concat(e)).then(_.noop,function(){P.launchMethod="api"})),P.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},_.forEach(rh(),function(e){var t=Wp.findExtensionByNameAndProvider("chat",e),t=(t&&dh(e,t),Wp.findExtensionByNameAndProvider("helpcenter",e));t&&dh(e,t)}),_.forEach(e,function(t){var e=t.attributes.resourceCenter,n=e.children,i=e.moduleId,e=("IframeModule"===i&&(t.hasResourceCenterContent=!0),"SandboxModule"===i&&(t.hasResourceCenterContent=!0),"IntegrationModule"===i&&(t.integrationConfig=nh(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&ih(e.integrationName,e.integrationProvider),_.reduce(n,function(e,t){var n=_.find(r,function(e){return e.id===t});return n?e.concat(n):e},[]));"AnnouncementsModule"===i&&(P.attributes.notifications.individualCounts[t.id]=0,_.forEach(e,function(e){Lh(e)||e.isControlGroup()||P.attributes.notifications.individualCounts[t.id]++}));-1<_.indexOf(["GuideListModule","OnboardingModule","AnnouncementsModule"],i)&&_.filter(e,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):!(e.ineligibleForRC=!0)}).length&&(t.hasResourceCenterContent=!0),t.guidesInModule=e}),P.modules=e,P.badgeHidden=!0,m.all(t)["catch"](()=>(P=null,T.error("Failed to load one or more Resource Center modules"),m.resolve())))},findResourceCenterHomeView:Qp,findResourceCenterModules:eh,replaceResourceCenterContent:th,renderResourceCenterModule:function(e,t){th(e.id,undefined,!0,t)},showHomeViewOrEmptyState:function(e){M("#pendo-resource-center-container._pendo-guide-walkthrough_").remove(),delete e.activeModule,e.hasResourceCenterContent&&e.skipResourceCenterHomeView?D.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,[{value:"none"},{value:"left"}]):e.showEmptyState&&(D.showResourceCenterEmptyState(),_.each(e.controlGuidesInAllModules,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}))},showResourceCenterEmptyState:function(){var e=M("#pendo-resource-center-empty-state-container");e&&e.length&&M(e[0]).css({display:"block"})},launchIntegrationByNameAndProvider:function(e,t,n){var e=Wp.findExtensionByNameAndProvider(e,t);return e?(n=M(n))?((e=e.getFrame()).appendTo(n),void e.css({display:"block"})):T.info("could not find target element for "+t+" integration"):T.info(t+" integration has not been loaded into the agent")},appendIntegrationToBodyByNameAndProvider:ih,attemptToPreserveIntegrationIframes:function(e){e.step&&(e=e.step.getGuide()).attributes&&e.attributes.resourceCenter&&(e=D.getResourceCenterContainer())&&(e=M(e).find('iframe[id^="_pendo-launcher-ext-frame-chat"]'))&&e.length&&e.each(function(e){e=M(e);e.css({display:"none"}),e.appendTo(Qu())})},getResourceCenter:gh,getResourceCenterContainer:mh,getResourceCenterBadge:vh,addNotificationBubbleToResourceCenterBadge:Th,addNotificationBubbleToTargetElement:xh,updateNotificationBubbles:function(){var e=P,t=_.get(e,"attributes.notifications");if(t){var n=Sh(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&Nh(),t.totalUnseenCount=n;else{Eh();var i=n!==t.totalUnseenCount;if(i||!bh(Jp)){if("badge"===e.launchMethod){i=vh();if(!i)return;Th(i.element(),e.attributes.notificationBubble,n)}if("dom"===e.launchMethod&&_.get(e,"attributes.activation.selector")){i=M(e.attributes.activation.selector);if(!i.length)return;xh(i[0],e.attributes.notificationBubble,n),mo(window,"resize",_.debounce(wh,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:Nh,updateNotificationBubbleCount:Mh,updateNotificationBubbleOnHomeView:Ih,updateOrCreateNotificationBubble:Rh,hexToRgb:yh,doesIntegrationExist:nh,calculateTotalNotificationCount:Sh,updateNotificationBubblesOnHomeView:Eh,createNotification:kh,appendNotificationBubble:Oh,hasAnnouncementBeenSeen:Lh,findShownResourceCenterModule:function(){var e=D.getResourceCenterContainer();if(e){e=M(e).find('[id^="pendo-g-"]');if(e){var t=e.attr("data-pendo-guide-id"),e=_.find(Du(),function(e){return e.id===t});if(Ph(e))return e}}},dismissResourceCenter:Dh,repositionResourceCenter:function(){var e=D.getResourceCenterContainer();{var t,n,i;e&&(i=D.findResourceCenterHomeView(Du()).steps[0],t=_.get(i,"domJson.props.style.height"),t=parseInt(t,10),t=isNaN(t)?0:t,n=parseInt(_.get(i,"domJson.props.style.bottom",0),10),i=parseInt(_.get(i,"domJson.props.style.top",0),10),n=isNaN(n)?0:n,i=isNaN(i)?0:i,(n=Ba().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")}Ql(M(e))},repositionDoubleResourceCenterBadge:function(){var e,t,n;A.getters["frames/isLeader"]()&&1<(e=_.unique(_.compact([].concat(_.toArray(M("._pendo-resource-center-badge-container"))).concat(_.toArray(M("._pendo-resource-center-badge-container")))))).length&&function(e){var t=Ja(e[0]),e=Ja(e[1]);return Ya(t,e)}(e)&&(t=ja(e[0]).width+5,n=ja(e[1]).left-t<0?"":"-",e[1].style.transform="translateX("+n+t+"px)")},resourceCenterIgnoreRtl:function(){return _.get(this.getResourceCenterBadge(),"ignoreRTL",!1)},adjustResourceCenterWidth:function(e){var t=mh();if(t){o=Ba().width,r=M(t),e=M(e),r.css({"max-width":"none"}),e.css({"max-width":"none"}),i=parseInt(f(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=M('button[id^="pendo-a11y-list-item-button-block"]');if(n&&n.length)for(var i=M(t.find("ol._pendo-text-list-ordered"))[0],r=0,o=0,i=(i&&(i=f(i),o=parseInt(i.paddingLeft,10),r=parseInt(i.paddingRight,10)),M('[id^="pendo-onboarding-guide-progress-circle"]')[0]),e=0,a=0,s=0,d=(i&&(i=f(i),e=parseInt(i.width,10),a=parseInt(i.marginRight,10),s=parseInt(i.marginLeft,10)),o+r+e+s+a),u=parseInt(f(t[0]).width,10),c=0;c<n.length;c++){var l=n[c],p=M(l),l=(p.css({"max-width":"none"}),f(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:dh,renderNativeIntegration:hh,isSupportedNativeIntegration:oh,handleNativeIntegrationContinuation:fh,isProviderInstalled:ah,adjustNotificationBubbleForResize:wh,getNotificationBubbleDefaultCss:Ah,getModuleId:Fh,isIframeModule:function(e){return"IframeModule"===Fh(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===Fh(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===Fh(e)&&e.hasResourceCenterContent},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!D.isSupportedNativeIntegration(e.integrationProvider)||D.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n,i,r=Qp(e);return!r||t.getters["frames/isShownInAnotherFrame"]()(r.steps[0])?m.resolve():(t=eh(r,e),n=[],i=_.indexBy(e,"id"),_.each(t,function(e){var e=e.attributes.resourceCenter;"AnnouncementsModule"===e.moduleId&&(e=e.children,e=_.reduce(e,function(e,t){t=i[t];return t?e.concat(t):e},[]),_.each(e,function(e){Zp(e)&&n.push(e.steps[0].fetchContent(!0))}))}),m.all(n))},setFocusForResourceCenterModule:function(e,t){var n;"HomeViewModule"===e[0].getAttribute("data-layout")?t&&(e=M('[data-pendo-module-guide-id="'+t+'"]'),n=e.find('button[id^="pendo-right-caret-"]')[0]):(t=M('[id="pendo-resource-center-module-title-container"]'),n=t.find('button[id^="pendo-left-caret-"')[0]);n&&n.focus()},revertRtlChanges:function(e,t){var n="rtl"===_.get(t,"data-localization-direction",!1),e=_.get(e,"attributes.badge.ignoreRTL",!1);n&&e&&!t["data-direction-changed"]&&(n=_.get(t,"style.left",!1),e=_.get(t,"style.right",!1),n)&&e&&(t.style.left=e,t.style.right=n,t["data-direction-changed"]=!0)},stashBadgeAriaLabel:_h,resetBadgeAriaLabel:function(){var e=D.getResourceCenterBadge();{var t;e&&(e=e.element(),t=e.getAttribute("data-pendo-stashed-aria-label"))&&e.setAttribute("aria-label",t)}},getNotificationBubbleAriaLabelAttribute:Ch,updatePseudoStyleSelectors:Uh,hideRCBadge:Gh,isModule:Ph};function Zp(e){return e.steps&&e.steps.length&&_.isFunction(e.steps[0].fetchContent)}function Qp(e){var e=_.filter(e,function(e){return _.get(e,"attributes.resourceCenter.isTopLevel")&&!e.isFrameProxy}),t=_.find(e,function(e){return"staged"===e.state});return t||e[0]}function eh(t,e){return _.filter(e,function(e){return e&&!e.isFrameProxy&&Ph(e)&&e.state===t.state})}function th(t,e,n,i=!0){if(!$p){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),mh());if(e){var a=M(e).find('[id^="pendo-g-"]')[0];if(a){var s,d=a.getAttribute("data-pendo-guide-id"),u=_.find(Du(),function(e){return e.id===t}),c=(t!==P.id?(Tp(_.get(P.activeModule||P,"steps.0.id")),P.activeModule=u):(s=P.activeModule,Tp(_.get(s,"steps.0.id")),delete P.activeModule),_.get(u,"attributes.resourceCenter.integrationProvider")),l=(oh(c)&&hh(c),u.steps[0]),c=(l.isDarkMode===undefined&&tl(l),Uh(l.domJson)),c=(c.props["data-pendo-guide-id"]=u.id,wp(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&&(M(a).remove(),s)&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),M(e).find('[id^="pendo-end-focus-bumper-"]')[0]);if(r?M(p).insertBefore(r):M(p).appendTo(e),l.guideElement=M(e),l.elements.push(l.guideElement[0]),el(l,p),D.adjustResourceCenterWidth(p),"AnnouncementsModule"===Fh(u)&&l.guide.guidesInModule?(ip(r=_.reduce(l.guide.guidesInModule,function(e,t){var n;return _.isUndefined(t.steps[0].attributes.imgCount)&&(n=t.steps[0].id,n=M(p).find("#pendo-g-"+n)[0]?n:t.id,e.push("pendo-g-"+n)),e},[]),l.guideElement),_.each(r,function(e){g.flexAllThings(e,l)})):g.flexAllThings("pendo-resource-center-container"),Ql(M(e)),p.style.left="0px",!n){$p=!0;try{"left"===o?a.style.left=-1*e.offsetWidth+"px":"right"===o&&(a.style.left=e.offsetWidth+"px"),Ut(function(){M(a).remove(),s&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),$p=!1},200)}catch(h){throw $p=!1,h}}return"AnnouncementsModule"===Fh(u)&&(r=rl.getGuidesInResourceCenterModule(u,Du()),(n=_.reduce(r,function(e,t){return t.steps&&t.steps.length&&qc.hasContent(t.steps[0])||e.push(t.fetchContent()),e},[])).length)&&((o=function(){var i,e,t;if(_.isFunction(document.createElementNS))return i="http://www.w3.org/2000/svg",e=function(e,t){var n=M(document.createElementNS(i,"circle")).attr({cx:e,cy:t,fill:"#9a9ca5",r:5});return _.each(_.toArray(arguments).slice(2),function(e){n.append(e)}),n},t=function(e){return M(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=M(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"))),M(document.createElement("li")).css({padding:"5px 20px","list-style-type":"none","list-style-position":"inside",position:"relative","margin-left":"0em","border-width":"0px","border-style":"solid","border-color":"rgb(255, 255, 255)","float":"none","vertical-align":"baseline","text-align":"center"}).append(t)}())&&c.find("ol").append(o),m.all(n).then(function(){var e=m.defer();return Ut(e.resolve,500),e.promise}).then(function(){P.activeModule===u&&D.renderResourceCenterModule(u,i)})),D.setFocusForResourceCenterModule(c,d),i&&l.onShown("launcher"),c}}}}function nh(e,t){return Wp.findExtensionByNameAndProvider(e,t)}function ih(e,t){e=Wp.findExtensionByNameAndProvider(e,t);if(!e)return T.info(t+" integration has not been loaded into the agent");oh(t)&&ah(t)?P.hasEligibleNativeIntegrationModule=!0:($a((t=e.getFrame())[0])||t.appendTo(Qu()),t.css({display:"none"}))}function rh(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging","visitorAssist"]}function oh(e){return!!e&&0<=rh().indexOf(e)}function ah(e){return!!e&&null!==(e=sh(e))&&_.isFunction(window[e])}function sh(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";case"visitorAssist":return"visitorAssist";default:return null}}function dh(e,t){if(e)if(ah(e))uh(e,t);else{var n;if("function"==typeof Object.defineProperty){const i=sh(e);null!==i&&(Yp&&Yp[i]?Yp[i][e]||(Yp[i][e]={installed:!1,integrationObj:t}):((Yp=Yp||{})[i]={[e]:{installed:!1,integrationObj:t}},Object.defineProperty(window,i,{get(){return n},set(e){n=e,_.forEach(Yp[i],function(e,t){const n=e.integrationObj;!e.installed&&ah(t)&&(e.installed=!0,uh(t,n),ih(n.name,t),_.forEach(P.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 uh(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=lh(i);ch(n,"webWidget","hide"),ch(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),ch(n,"webWidget:on","close",function(){ch(n,"webWidget","hide"),ph()}),P.isInProgress()&&!P.attributes.doNotResume&&fh(P.activeModule),ch(n,"webWidget:on","chat:unreadMessages",function(e){Mh(e,"chat")});break;case"zendesk-messaging":i=t;ch(i=i.data.provider.name,"messenger","hide"),ch(i,"messenger:on","close",function(){ph()}),ch(i,"messenger:on","unreadMessages",function(e){Mh(e,"chat")}),P.isInProgress()&&!P.attributes.doNotResume&&fh(P.activeModule);break;case"intercom-chat":var r=t;r=lh(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(){ph()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=Dp();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(!P.isNativeModuleActive)return Mh(1,"chat")})}),window.drift.on("chatClose",function(e){Mh(0,"chat"),window.drift.hide(),ph()});break;case"visitorAssist":window.visitorAssist.onClose(function(){ph()})}}function ch(e,...t){try{Xp&&Xp[e]||window.zE.apply(null,t)}catch(n){Xp?Xp[e]=!0:Xp={[e]:!0}}}function lh(e){e=_.get(e,"data.options.labels.position");return e=e&&e.split("-")}function ph(){Dh(P.activeModule),delete P.activeModule,P.continueToNativeModule=!1}function hh(e,t){if(e){var n=Dp();if(P.isShown()&&P.hide(),Xp&&Xp[e])T.info(e+" integration failed to communicate with API, closing"),D.replaceResourceCenterContent(P.id,undefined,!0),ph();else{var i=vh();switch(i&&Gh(i,P),e){case"zendesk-messaging":ch(e,"messenger","show"),ch(e,"messenger","open");break;case"zendesk-native-kb":ch(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),ch(e,"webWidget","show"),ch(e,"webWidget","open");break;case"zendesk-chat":ch(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&ch(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});break;case"visitorAssist":window.visitorAssist.launch()}Mh(0,"chat"),!P.activeModule&&t&&(P.activeModule=t).steps[0].onShown("launcher")}}}function fh(e){e&&!e.isTopLevel&&(hh(_.get(e,"attributes.resourceCenter.integrationProvider")),P.activeModule||(P.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function gh(){return P}function mh(){return _.get(P,"steps.0.guideElement.0")}function vh(){if(P&&P.id)return Lu[P.id]}function yh(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 bh(e){return e&&_.all(e,function(e){return $a(e&&e.length?e[0]:e)})}function wh(){var e,t=D.getResourceCenter(),n=_.get(t,"attributes.notifications");n&&(n=D.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&_.get(t,"attributes.activation.selector")&&(e=M(t.attributes.activation.selector)).length&&D.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function Sh(e){return _.reduce(e,function(e,t){return e+t},0)}function Eh(){var e,t=P;t&&(t=_.get(t,"attributes.notifications"))&&(e=mh())&&M(e).find("._pendo-resource-center-home-list").length&&_.each(t.individualCounts,function(e,t){Ih(e,t)})}function Ih(e,t){var n=D.getResourceCenterContainer();n&&(n=M(n).find('[data-pendo-notification-id="'+t+'"]')).length&&(t=M(n[0]).find("._pendo-home-view-bubble"),n=M(t[0].children[0]),e!==parseInt(n.text(),10))&&(0<e?(n.text(e),M(t[0]).css({display:"block","margin-right":"0"})):(n.text(""),M(t[0]).css({display:"none"})))}function _h(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function Ch(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function Th(e,t,n){var i=Ch(n);let r=e.getAttribute(i);r&&(_h(e),r=r.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",r));var i=_.get(t,"position","top-left"),o=f(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=D.resourceCenterIgnoreRtl();Rh(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 xh(e,t,n){var i=ha(e,e),r=ha(e,Va());Rh(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 Rh(e,t,n,i,r){var o,a;bh(Jp)?(a=(o=Ah(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=_.extend(a,i),o=_.extend(o,r),Jp.bubbleEle.css(a),Jp.unseenCountEle.css(o),Jp.unseenCountEle.text()!=""+n&&Jp.unseenCountEle.text(n)):(a=M(e).find(".pendo-resource-center-badge-notification-bubble")).length?a[0].getElementsByClassName("pendo-notification-bubble-unread-count")[0].textContent=n:n&&Oh(Jp=kh(t,n,i,r),e)}function Ah(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 kh(e,t,n,i){var r=Ah(e),o=r.defaultBubbleCss,r=r.defaultUnseenCountCss,a=(t=t||0,M(document.createElement("div")).addClass("pendo-resource-center-badge-notification-bubble")),s=M(document.createElement("div")).addClass("pendo-notification-bubble-unread-count"),o=_.extend(o,n),n=_.extend(r,i);return a.css(o),s.css(n),Me(10)||mp()||(i="rgb("+(r=yh(e["background-color"])).r+", "+r.g+", "+r.b+")",Zc(C,"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 Oh(e,t){e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function Nh(){var n=Jp?Jp.bubbleEle:M(".pendo-resource-center-badge-notification-bubble"),i=Jp?Jp.styleEle:M("#pendo-resource-center-bubble-animation");n&&_.each(n,function(e,t){n[t]&&(t=n[t])&&t.parentNode&&t.parentNode.removeChild(t)}),i&&_.each(i,function(e,t){i[t]&&(t=i[t])&&t.parentNode&&t.parentNode.removeChild(t)}),Jp=null,D.resetBadgeAriaLabel()}function Mh(e,t){var n=P;n&&(n=_.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,D.updateNotificationBubbles())}function Lh(e){return!(!_.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function Ph(e){return _.get(e,"attributes.resourceCenter.isModule",!1)}function Dh(e){var t=Ph(e)?e:D.findShownResourceCenterModule();t&&(t=_.first(t.steps),E.onGuideDismissed(t));t=(_.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:D.findResourceCenterHomeView(Du())).steps[0];return E.onGuideDismissed(t)}function Fh(e){return _.get(e,"attributes.resourceCenter.moduleId")}function Uh(e){var t=["pendo-a11y-list-item-button-block","pendo-link-","pendo-right-caret-","pendo-row-","pendo-text-"].join("|");const n=new RegExp(`#((${t})[^:]*)`);t=function i(e,t){var n=[];return t(e)&&n.push(e),e.children?n.concat(..._.map(e.children,function(e){return i(e,t)})):n}(e,function(e){return e.css&&e.css.length});return _.forEach(t,function(e){_.forEach(e.css,function(e){e.selector=e.selector.replace(n,"[id^='$1']")})}),e}function Gh(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete Lu[t.id])}var Bh=1e4,Hh="lastStepAdvanced",zh={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function jh(e){A.dispatch("guideState/updateLastGuideStepSeen",e),A.dispatch("guideState/write"),A.dispatch("frames/changeLastGuideStepSeen",e)}function Wh(e){return _.get(e,"data.0")}function qh(e){var e=Wh(e);return(e=e&&b((e.props||{}).guide_id))?!e.attributes||!e.attributes.doNotResume:void 0}function Vh(e,t){var n,e=Wh(e);e&&(t={guideId:(n=e.props||{}).guide_id,guideStepId:n.guide_step_id,time:e.browser_time,state:t,visitorId:e.visitor_id},null!=n.reason?t.seenReason=n.reason:null!=n.seen_reason&&(t.seenReason=n.seen_reason),null!=n.destination_step_id&&(t.destinationStepId=n.destination_step_id),null!=n.dismiss_count&&(t.dismissCount=n.dismiss_count),null!=n.snooze_duration&&(t.snoozeEndTime=e.browser_time+n.snooze_duration),jh(t))}function Kh(){A.dispatch("guideState/regainFocus")}function $h(){return A.state.guideState.lastGuideStepSeen}n={actions:{init(e){e.getters.storage().registry.addLocal(Hh),e.commit("setScopedStorageKey",Cn(e.state.storageKey));var t={};_.each(zh,function(e){t[e]=Cn(e)}),e.commit("setScopedThrottlingStorageKeys",t),R.identify.on(function(e){Mi(e)&&mi([Hh])}),R.guideSeen.on(function(e){Vh(e,"active")}),R.guideAdvanced.on(function(e){qh(e)&&Vh(e,"advanced")}),R.guideDismissed.on(function(e){qh(e)&&Vh(e,"dismissed")}),R.guideSnoozed.on(function(e){Vh(e,"snoozed")})},load(t){var e,n=t.getters.storage().read(Hh,!1,t.getters.cookieSuffix());if(n){try{e=JSON.parse(n)}catch(i){}e&&_.each([].concat(e),function(e){t.commit("setStepState",e)})}t.dispatch("loadThrottling")},loadThrottling(n){const i=n.getters.storage();_.each(zh,function(e){var t=i.read(e);n.dispatch("updateThrottlingState",{name:e,value:t})})},applyThrottling(i){_.each(zh,function(e){var t,n;E[e]=(t=E[e],n=i.state[e],n=parseInt(n,10),isNaN(n)||!_.isNumber(n)||!(_.isNumber(t)&&t<n)&&_.isNumber(t)?t:n),i.dispatch("updateThrottlingState",{name:e,value:E[e]})})},forceExpire(n){_.each(n.state.steps,function(e,t){n.commit("expireStepState",t)})},expire(n){var i=n.getters.now();_.each(n.state.steps,function(e,t){i-e.time>n.state.ttl&&n.commit("expireStepState",t)})},apply(o){var a,s=_.indexBy(o.getters.guideList(),"id");o.dispatch("expire"),_.each(o.state.steps,function(e){var t,n,i=e.guideId,r=e.guideStepId;e.visitorId&&e.visitorId!==o.getters.visitorId()||((i=s[i])&&!i.channel&&(!a||e.time>a.time)&&(a=e),i&&(t=_.findWhere(i.steps,{id:r}))&&(n=o.state.storageKey,t.seenState!=e.state&&(T.info("making sure that seenState = '"+e.state+"' for "+n+": "+r),t.seenState=e.state),t.snoozeEndTime!=e.snoozeEndTime&&(T.info("making sure that snoozeEndTime = '"+e.snoozeEndTime+"' for "+n+": "+r),t.snoozeEndTime=e.snoozeEndTime),t.seenReason!=e.seenReason&&(T.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),T.info("making sure that dismissCount = '"+t.dismissCount+"' for "+n+": "+r)),e.destinationStepId!==undefined&&t.destinationStepId!=e.destinationStepId&&(T.info("making sure that destinationStepId = '"+e.destinationStepId+"' for "+n+": "+r),t.destinationStepId=e.destinationStepId),t.lastSeenAt!=e.time&&(T.info("making sure that lastSeenAt = '"+e.time+"' for "+n+": "+r),t.lastSeenAt=e.time),n=_.indexOf(i.steps,t),_.each(i.steps.slice(0,n),function(e){_.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})))}),a&&o.dispatch("updateLastGuideStepSeen",_.extend({},o.state.lastGuideStepSeen,a)),o.dispatch("applyThrottling")},receiveLastGuideStepSeen(e,t){e.commit("setReceivedLastGuideStepSeen",t),e.commit("setLastGuideStepSeen",t)},updateLastGuideStepSeen(e,n){var t;n.visitorId&&n.visitorId!==e.getters.visitorId()||(t=_.some(e.getters.guideList(),function({id:e,channel:t}){return e===n.guideId&&!t}),n.guideStepId&&e.commit("setStepState",n),t&&(e.commit("setLastGuideStepSeen",n),E.lastGuideStepSeen=n),xv&&xv.update(n))},updateThrottlingState(e,t){e.commit("setThrottlingState",t)},write(e){e.dispatch("expire");var t=e.rootState.frames.tabId,n=e.state.storageKey,i=e.getters.cookieSuffix(),r=e.state.ttl,o=e.getters.storage(),a=JSON.stringify(_.map(e.state.steps,function(e){return _.extend({tabId:t},e)}));T.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)&&(dg(),e.dispatch("load"),e.dispatch("apply"),e.state.receivedStateChangeAt||e.commit("setReceivedStateChange",e.getters.now()))}else _.contains(_.values(e.state.scopedThrottlingStorageKeys),t.key)&&(e.dispatch("loadThrottling"),e.dispatch("applyThrottling"))},regainFocus(e){var t=e.getters.tabLostFocus(),n=e.getters.isGuideRequestStale();t&&(e.commit("setReceivedStateChange",null),n||(ug(),cg())),n&&Wv()}},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},setScopedThrottlingStorageKeys(e,t){e.scopedThrottlingStorageKeys=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:Bh,storageKey:Hh,guideRequestExpiration:36e5,scopedStorageKey:null,scopedThrottlingStorageKeys:{},receivedStateChangeAt:null,receivedLastGuideStepSeen:null,lastGuideStepSeen:null,lastGuideRequestAt:null,latestDismissedAutoAt:null,latestSnoozedAutoAt:null,finalAdvancedAutoAt:null},getters:{now(){return S()},storage(){return x},guideList(){return y()},tabLostFocus(e){return!!e.receivedStateChangeAt},isGuideRequestStale(e,t){return null!=e.lastGuideRequestAt&&t.now()-e.lastGuideRequestAt>e.guideRequestExpiration},storageChangedInOtherTab(n,e,i){return function(e){var t=_.get(i,"frames.tabId");return!!e&&!!((e=_.max(_.compact(e),"time"))&&e.tabId&&t&&e.tabId!==t)&&(!n.lastGuideStepSeen||!n.lastGuideStepSeen.time||e.time>n.lastGuideStepSeen.time)}},cookieSuffix(){return C.get("crossAppGuideStorageSuffix")},visitorId(){return v()}}};function Jh(e,t){var n=[],i=[];return _.each(e,function(e){(e.isTraining?n:i).push(e)}),t?n.concat(i):i.concat(n)}var Yh={canDisplay:function(e,t,n){if(n&&n.enabled&&_.isFinite(t)){t=Qh(t,n);if(_.isNumber(t)&&!isNaN(t))return t<=e}return!0},lastDismissedTime:function(e){return Math.max(e.latestDismissedAutoAt||-Infinity,e.finalAdvancedAutoAt||-Infinity,e.latestSnoozedAutoAt||-Infinity)},sortAndFilter:function(e,t){var n=C.get("appAutoOrdering")||[].concat(C.get("leaderKey"));{var i;n.length&&(i=A.getters["frames/autoOrdering"](),n=_.reduce(n,(e,t)=>e.concat(i[t]||[]),[]),t=_.uniq(n.concat(t)))}n=function(e){e=_.defaults(_.groupBy(e,function(e){return Zh(e)?"override":"auto"}),{override:[],auto:[]});return e.override.concat(e.auto)}(function(e,t){var n;return _.isArray(t)&&t.length?(n=_.indexBy(e,"id"),t=_.reduce(t,i,[]),_.chain(e).pluck("id").reduce(i,t).value()):e;function i(e,t){return n[t]&&(e.push(n[t]),delete n[t]),e}}(_.filter(e,Xh),t));return _.find(e,function(e){return e.isTraining})?(t=C.get("adoptPrioritizeAdoptGuides"),Jh(n,t)):n},tryDisplayGuide:function(e,t){var n=Yh.lastDismissedTime(t),n=Yh.canDisplay(S(),n,t.throttling);if((Zh(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:Qh};function Xh(e){return e&&/auto/.test(e.launchMethod)}function Zh(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||_.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function Qh(e,t){var n=t.interval,t=(t.unit||"").toLowerCase();return _.isNumber(n)&&kt(e)?"minute"===t?6e4*n+e+1:"hour"===t?36e5*n+e+1:"day"===t?(t=e,e=n,(t=new Date(Math.max(t,0))).setHours(0,0,0,0),t.setDate(t.getDate()+e),t.getTime()):void 0:_.isNumber(n)?(new Date).getTime():void 0}function ef(t){return R.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+"?"+Ko(n))),e},(e=this.showPermalinkGuide(e,i)).then?e.then(o):o(e)}},getQueryString:a,getGuideFromUrl:function(e){e=e.pendo||e.c__pendo;return e?t(e):null},getStepFromUrl:function(e,t){e=e.step;return e?function(e,t){return _.find(e.steps,function(e){return e.id===t})}(t,e):null},showPermalinkGuide:function(e,t){return(t||e).show("permalink")},shouldShowPermalinkGuide:function(e){return!e.shownFromPermalink}};function a(e){var t=zo(e).substring(1),t=Vo(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=zo(e.substring(n+1)).substring(1),_.extend(t,Vo(n))),t}}var tf=_.memoize(function(){return ef(b)});function nf(e){return e&&e.attributes&&e.attributes.doNotResume}function rf(e,t){e=_.find(e,function(e){return e.isContinuation(t)});if(e&&!nf(e))return e}function of(e){return _.filter(e,function(e){return e.channel&&!nf(e)&&e.isContinuation()})}const af={permalink:"permalink",continuation:"continuation",auto:"auto"};class sf{constructor(){this.name="autoDisplay",this.queue=[]}markDirty(){if(uc()){this.queue.push({type:af.permalink});var e=y(),t=rf(e,$h());t&&this.queue.push({type:af.continuation,guide:t});for(const n of of(e))this.queue.push({type:af.continuation,guide:n});e=Yh.sortAndFilter(e,E.autoOrdering),t=t?_.filter(e,e=>e.channel):e;this.queue.push(..._.map(t,e=>({type:af.auto,guide:e})))}}process(e){var t=this.queue.shift();if(t.type===af.permalink){if(!Gu())return tf().tryDisplay()}else if(t.type===af.continuation){var n=t["guide"];if(!Gu({channel:n.channel}))return e.saveContext(n),n.show("continue")}else{n=t["guide"];if(!Gu({channel:n.channel}))return e.saveContext(n),Yh.tryDisplayGuide(n,E)}}handleProcessTimeExceeded(e){e=e.getContext();e&&T.warn("Auto display ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}function df(){var s={};return _.each(["after","before"],function(i){this[i]=function(e,t){var n,r,o,a;this[e]&&((n=s[e])||(n=s[e]={before:[],after:[]},this[e]=(r=this[e],o=n.before,a=n.after,function(){for(var e=_.toArray(arguments),t=0,n=o.length;t<n;++t)if(!1===o[t].apply(this,e))return;var i=r.apply(this,e);for(t=0,n=a.length;t<n&&!1!==a[t].apply(this,e);++t);return i})),n[i].push(t))}},this),this}function uf(e){return"hidden"===e.visibilityState}const cf="visibilitychange",lf="pagehide",pf="unload";function hf(e,t){if(t&&"onpagehide"in window){const n=[];return n.push(mo(document,cf,()=>{uf(document)&&e(!0,!1)})),n.push(mo(window,lf,_.partial(e,!1,!0))),()=>_.each(n,function(e){e()})}return mo(window,pf,_.partial(e,!0,!0))}function ff(){this.serializers=_.toArray(arguments)}function gf(e,t){return e.tag=Bi.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function mf(e){return I(e)?""+e:""}function vf(e,t){return e.id=mf(t.id),e}function yf(e,t){return e.cls=mf(M.getClass(t)),e}_.extend(ff.prototype,{add(e){this.serializers.push(e)},remove(e){e=_.indexOf(this.serializers,e);0<=e&&this.serializers.splice(e,1)},serialize(n,i){return n?(i=i||n,_.reduce(this.serializers,function(e,t){return t.call(this,e,n,i)},{},this)):{}}});var bf=256,wf=64,Sf={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 Ef=function(e,t,n){if(!e||!e.nodeName)return null;var i=e.nodeName.toLowerCase();if(("img"==i&&"src"==t||"a"==i&&"href"==t)&&To())return i=e.getAttribute(t),Bo((i=i)&&0===i.indexOf("data:")?(T.debug("Embedded data provided in URI."),i.substring(0,i.indexOf(","))):i+"");i=e,e=t;t=A.getters["nodeAttr/getAttribute"]()(i,e);return(!n||typeof t===n)&&t?_.isString(t)?mt.call(t).substring(0,bf):t:null};function If(t){var e,n,i;return _.isRegExp(t)&&_.isFunction(t.test)?function(e){return t.test(e)}:_.isArray(t)?(e=_.map(_.filter(t,_.isObject),function(e){var t;return e.regexp?(t=(t=/\/([a-z]*)$/.exec(e.value))&&t[1]||"",new RegExp(e.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),t)):new RegExp("^"+e.value+"$","i")}),function(t){return _.any(e,function(e){return e.test(t)})}):_.isObject(t)&&t.regexp?(n=(n=/\/([a-z]*)$/.exec(t.value))&&n[1]||"",i=new RegExp(t.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),n),function(e){return i.test(e)}):_.constant(!1)}function _f(e,t,n,i){try{var r,o=_.indexBy(t),a=_.filter(_.filter(e,function(e){return n(e.nodeName)||o[e.nodeName]}),function(e){return!i(e.nodeName)});return a.length<=wf?_.pluck(a,"nodeName"):(r=_.groupBy(e,function(e){return o[e.nodeName]?"defaults":_.isString(e.value)&&e.value.length>bf?"large":"small"}),_.pluck([].concat(_.sortBy(r.defaults,"nodeName")).concat(_.sortBy(r.small,"nodeName")).concat(_.sortBy(r.large,"nodeName")).slice(0,wf),"nodeName"))}catch(s){return T.error("Error collecting DOM Node attributes: "+s),[]}}function Cf(t,n){var e=If(C.get("htmlAttributes")),i=If(C.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=Ef(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},_f(n.attributes,Sf[r]&&Sf[r].attr,e,i));return _.each(r,function(e){t.attrs[e.toLowerCase()]=Ef(n,e)}),t}function Tf(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=_.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),n=n.filter(function(e){return e.nodeType==na}),e.childIndex=n.indexOf(t).value()),e}function xf(i,e){var r;return C.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(xf),e=this.serialize(e.previousElementSibling),this.add(xf),i.attrs=i.attrs||{},_.each(e,function(e,t){var n={cls:"class",txt:"pendo_text"}[t]||t;_.isEmpty(e)||(_.isObject(e)?_.each(e,function(e,t){e&&!_.isEmpty(e)&&(i.attrs[r+n+"_"+t]=e)}):i.attrs[r+n]=e)})),i}var Rf=new ff(gf,vf,yf,Cf,Tf,xf),Af=function(e){return"BODY"===e.nodeName&&e===Va()||null===e.parentNode&&!Bi.isElementShadowRoot(e)},kf="pendo-ignore",Of="pendo-analytics-ignore",Nf=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=Rf.serialize(o,e)}while(r||!xt(a.cls,kf)&&!xt(a.cls,Of)||(r=!0),n.parentElem=a,n=a,(i=Bi.getParent(o))&&!Af(o));return r&&(t.parentElem.ignore=!0),t.parentElem},Mf=["","left","right","middle"],t=function(e){return e},Se=function(e,t){return e[t]},Lf=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return Mf[t]}],["altKey",Se,t,t],["ctrlKey",Se,t,t],["metaKey",Se,t,t],["shiftKey",Se,t,t]],Pf={click:function(e,t){for(var n=[],i=0;i<Lf.length;i++){var r=Lf[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}},Df=function(e){try{var t,n,i,r,o;Fd.startTimer(Ad),M.data.get(e,"counted")||(M.data.set(e,"counted",!0),t=yo(e),n=e.type,i={},(r=Pf[n])&&(i=r(e,i)),M.data.get(e,"stopped")&&(i.stopped=!0),e.from&&_.isString(e.from)&&(i.from=e.from),(t=(a=t).nodeType===ta?a.parentNode:a.nodeType===oa?null:a.correspondingUseElement||a)?(o=Nf(t),_.extend(o,i),Ru()&&L.startPoller(),o.ignore||(Gd(n,{target:o},undefined,undefined,undefined,e),R.trigger("appUsage",o,e))):T.info("Invalid HTML target",{contexts:["event","dom","processing"]}))}catch(s){T.critical("pendo.io while handling event",{error:s})}finally{Fd.stopTimer(Ad)}var a},Ff=function(e){var t=_.map(e,function(e){return F(document,e,Df,!0)});return()=>{_.each(t,function(e){e()})}},Uf=_.debounce(Df,5e3,!0),Gf=function(e){const t=[];_.contains(e=e||["click","focus","submit","change"],"change")&&(e=_.without(e,"change"),t.push(()=>{Uf.cancel()}),t.push(mo(document,"change",Uf,!0)));var n=C.get("syntheticClicks.elementRemoval"),i=C.get("syntheticClicks.targetChanged"),n=(t.push(function(t,e,n,i){var r,o,a=[],s=et.hasEvent("pointerdown"),d=s?"pointerdown":"mousedown",s=s?"pointerup":"mouseup",u=[],c={cloneEvent:function(e){e=M.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&&yo(r)!==yo(e)&&$a(yo(r))&&(o=!0,t(r))},click:function(e){r=null,o&&M.data.set(e,"ignore",!0),o=!1,n&&c.unwrap()},intercept:function(e){e=function(e){var t=[];for(;e&&!Af(e);)t.push(e),e=e.parentNode;return t}(yo(e));_.each(e,function(e){e=Bf(e,c.remove);a.push(e)})},remove:function(){r&&(t(r),r=null),c.unwrap()},unwrap:function(){0<a.length&&(_.each(a,function(e){e()}),a=[])},teardown:function P0(){c.unwrap(),_.each(u,function(e){e()})}};e&&(u.push(mo(document,d,c.down,!0)),u.push(mo(document,s,c.up,!0)),u.push(mo(document,"click",c.click,!0)));return c}(M.event.trigger,et.addEventListener,n,i).teardown),t.push(Ff(e)),t.push(hf(function(e,t){t&&R.appUnloaded.trigger(),e&&R.appHidden.trigger()},C.get("preventUnloadListener"))),C.get("interceptStopPropagation",!0)),i=C.get("interceptPreventDefault",!0);return n&&t.push(Hf(window.Event,e)),i&&t.push(zf(window.Event,["touchend"])),()=>{_.each(t,function(e){e()})}};function Bf(n,i){var e=["remove","removeChild"];try{if(!n)return _.noop;_.each(e,function(e){var t=n[e];if(!t)return _.noop;n[e]=_.wrap(t,function(e){return i&&i(),e.apply(this,_.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return _.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){T.critical("ERROR in interceptRemove",{error:t})}return function(){_.each(e,function(e){if(!n[e])return _.noop;e=n[e]._pendoUnwrap;_.isFunction(e)&&e()})}}function Hf(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return _.noop;var i=_.indexBy(e);_.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=_.wrap(t,function(e){var t=e.apply(this,arguments);return i[this.type]&&(M.data.set(this,"stopped",!0),M.event.trigger(this)),t}),n.prototype[e]._pendoUnwrap=function(){n.prototype[e]=t,delete n.prototype[e]._pendoUnwrap})})}catch(r){T.critical("ERROR in interceptStopPropagation",{error:r})}return function(){_.each(t,function(e){e=n.prototype[e]._pendoUnwrap;_.isFunction(e)&&e()})}}function zf(t,e){try{if(!t||!t.prototype)return _.noop;var i=_.indexBy(e),n=t.prototype.preventDefault;if(!n)return _.noop;t.prototype.preventDefault=_.wrap(n,function(e){var t,n=e.apply(this,arguments);return i[this.type]&&((t=M.event.clone(this)).type="click",t.from=this.type,t.bubbles=!0,t.eventPhase=fo,M.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){T.critical("ERROR in interceptPreventDefault",{error:r})}return function(){var e=t.prototype.preventDefault._pendoUnwrap;_.isFunction(e)&&e()}}function F(e,t,n,i){return e&&t&&n?(i&&!et.addEventListener&&(i=!1),M.event.add(e,{type:t,handler:n,capture:i})):_.noop}function jf(e,t,n,i){e&&t&&n&&(i&&!et.addEventListener&&(i=!1),M.event.remove(e,t,n,i))}var Wf=function(e){M.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},qf=function(e,t){var n=(t=t||window).document;return"complete"!==n.readyState?mo(t,"load",function(){"complete"===n.readyState&&e()}):(e(),_.noop)};class Vf{constructor(e,t){this.type=t,this.identificationFn=e}test(e){return this.identificationFn(e)}}const Kf=(()=>{const n={},e=({data:e})=>{var[e,,]=e,e=e["guideId"];const t=b(e);e=(_.find(n,e=>e.GuideType.test(t))||{}).handler;e&&e(t,"resourceFetchFail")};return{run:()=>{R.resourceFetchFail.on(e)},stop:()=>{R.resourceFetchFail.off(e)},addTypeHandler:(e,t)=>{_.isFunction(t)?n[e.type]={GuideType:e,handler:t}:T.error("Invalid Handler function provided for type "+e.type)}}})();Kf.addTypeHandler(new Vf(Ku,"badge"),(e,t)=>{Bu.addGuide(e)});var $f="_pendo-badge_";function Jf(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function Yf(t,n){var e,i,r,o,a,s=nc(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=_.reduce([(o=t.language,a=d?["he","ar"]:[],e=>(_.contains(a,o)&&(e.props["data-localization-direction"]=!0),e)),(r=u,e=>{var t,n;return _.get(e,"props.data-localization-direction",!1)&&!r&&(t=_.get(e,"props.style.left","auto"),n=_.get(e,"props.style.right","auto"),t)&&n&&(e.props.style.left=n,e.props.style.right=t),e}),Jf,Ec,function(e){return wp(e,{id:n.id,guideId:t.id,isBadge:!0})}],(e,t)=>t(e),this.domJson)[0],i=e,M.removeNode(e),-1===i.className.indexOf("_pendo-badge_")&&(i.className+=" _pendo-badge_"),this.isP2Badge=!0):((i=document.createElement("img")).src=Sc(this.imageUrl),i.className="_pendo-badge "+$f,d=this.width||13,u=this.height||13,Ua(i,"width:"+d+"px;height:"+u+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=_.isFunction(n.getGuide)&&n.getGuide(),t=Vu(e);!e.isShown()||A.getters["frames/isShownInAnotherFrame"]()(n)?Pm(n,"badge"):t?n.eventRouter.eventable.trigger("pendoEvent",{step:n,action:"dismissGuide"}):(t=_.find(e.steps,function(e){return e.isShown()}),bm(t))},this.shouldShow=function(){return t.canBadgeBeShown()||!1},this.show=function(){if(_.isFunction(this.shouldShow))return this.shouldShow()},this.hide=function(){M.removeNode(i),Tp(t.id),_.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},Vu(t)&&(this.toggleAriaExpanded=function(){var e=!!M("#pendo-resource-center-container")[0],t=M("button._pendo-resource-center-badge-container")[0]||M('._pendo-resource-center-badge-container [id^="pendo-image-badge-"]')[0];t&&t.setAttribute("aria-expanded",e)},i.checkAriaExpanded=this.toggleAriaExpanded),this.step=_.constant(n),this.target=_.constant(s),this.element=_.constant(i),this}Yf.create=function(n){var i=Yf.findStep(n);if(i)return _.reduce(Yf.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},Yf.findStep=function(e){var t=_.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},Yf.behaviors=[df,Yf,function(){"inline"!==this.position&&"inline-right"!==this.position&&"inline-left"!==this.position||this.before("show",function(){var e,t,n=this.target(),i=this.element();this.isP2Badge&&Ua(i,"display:inline-block;vertical-align:text-bottom;"),this.css&&Ua(i,this.css),n&&n.tagName&&(e=n.tagName.toLowerCase(),t=function(e){try{if(e.shadowRoot&&!e.shadowRoot.querySelector("slot:not([name])"))return e.shadowRoot}catch(t){}return e}(n),/^(?:br|input|img|select|textarea)$/.test(e)?i.parentNode!==n.parentNode&&n.parentNode.insertBefore(i,n.nextSibling):i.parentNode!==t&&("inline"===this.position||"inline-right"===this.position?t.appendChild(i):"inline-left"===this.position&&t.prepend(i)))});return this},function(s){this.position&&"top-right"!==this.position&&"top-left"!==this.position||this.before("show",function(){var e=this.element(),t=ja(this.target()),n=0,i=0,r=0;if(this.offsets&&(n=this.offsets.top||0,i=this.offsets.right||0,r=this.offsets.left||0),!_.get(s,"attributes.resourceCenter",!1)){var o="position:"+(t.fixed?"fixed":"absolute")+";top:"+(t.top+n)+"px;";switch(this.position){case"top-right":o+="left:"+(t.left+t.width-i)+"px";break;case"top-left":o+="left:"+(t.left+r)+"px"}Ua(e,o)}if(!e.parentNode){Qu().appendChild(e);const a=rs(mo,this.target(),rg);this.removeScrollHandlers=()=>{rg.cancel(),a()}}});return this},function(){"over"===this.position&&this.before("show",function(){var e=this.element(),t=ja(this.target()),n="position:"+(t.fixed?"fixed":"absolute")+";top:"+t.top+"px;left:"+t.left+"px;";if(n+="height:"+t.height+"px;width:"+t.width+"px;",Ua(e,n+="background-color:transparent;"),!e.parentNode){Qu().appendChild(e);const i=rs(rg,e,this.target());this.removeScrollHandlers=()=>{rg.cancel(),i()}}});return this},function(){var t=this,e=t.element(),n=!1,i=function(e){t.activate(),t.toggleAriaExpanded&&t.toggleAriaExpanded(),Wf(e)},r=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1};return t.after("show",function(){n||(F(e,"click",i),t.preserveFocusOnClick&&F(e,"mousedown",r),n=!0)}),t.after("hide",function(){jf(e,"click",i),jf(e,"mousedown",r),n=!1}),t},function(){var t=this.element(),n=this.step(),e=!1;{var i,r,o;"yes"!==this.useHover&&!this.showGuideOnBadgeHover||(i=_.throttle(function(e){yo(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}(yo(e))||o()},50,{trailing:!1}),r=function(e){n.isShown()||Pm(n,"badge"),F(document,"mousemove",i),Wf(e)},o=function(e){jf(document,"mousemove",i),Xu()||bm(n)},this.after("show",function(){e||(F(t,"mouseover",r),e=!0)}),this.after("hide",function(){jf(t,"mouseover",r),jf(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)||Xu()||(t="inline"===this.position?"visibility:visible;":"display:inline;",n="inline"===this.position?"visibility:hidden;":"display:none;",i=_.throttle(function(e){var t,n,i,r,o,a;yo(e)===d||yo(e)===s||Oa(s,"triggered")||(t=e.clientX,e=e.clientY,n=Ja(d),i=Ja(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(){Ua(s,t),F(document,"mousemove",i)},u=function(){jf(document,"mousemove",i),Ua(s,n)},this.after("show",function(){e||(F(d,"mouseover",r),e=!0,u())}),this.after("hide",function(){e&&(jf(d,"mouseover",r),e=!1),u()}))}return this}];var Xf="_pendoBadgeClaimIsTraining",Zf=[];function Qf(){_.each(Zf,function(e){e[Xf]=undefined}),Zf.length=0}var eg=function(e,t){var n=(t=t||Lu)[e.id],i=n?n.step():Yf.findStep(e);if(i){var r=n?n.target():nc(i),o=_.get(e,"attributes.resourceCenter");if(o&&!A.getters["frames/canShowRCBadge"]())n&&_.isFunction(n.hide)&&(delete t[e.id],n.hide());else if(!o||e.hasResourceCenterContent){D.updateNotificationBubbles();var a,s,d,u,o=!0,o=(i.elementContainsRulesList&&(o=r&&Am(r,i.elementContainsRulesList)),i.elementPathRule&&ds(r)&&lo.matchesSelector(r,i.elementPathRule)&&o);if(o){if(d=e,(u=r)&&(u=u[Xf])!==undefined?u!==!!d.isTraining:void 0)return Pd()&&R.stepEligibility.trigger({stepId:i.id,guideId:e.id,eligible:!1,reason:"adopt_badge_priority"}),void(!(s=(u=t)[(d=e).id])||(a=s.step())&&a.isShown&&a.isShown()||(delete u[d.id],_.isFunction(s.hide)&&s.hide()));a=e,(d=r)&&(d[Xf]=!!a.isTraining,_.contains(Zf,d)||Zf.push(d)),(n=n||Yf.create(e)).show(),t[e.id]=n}else!n||i.isShown()||(delete t[e.id],n.hide());Pd()&&R.stepEligibility.trigger({stepId:i.id,guideId:e.id,eligible:o,reason:"target_element_badge"}),D.repositionDoubleResourceCenterBadge()}}},tg=function(){_.map(Lu,ng),Lu={}},ng=function(e,t){e&&(_.isFunction(e.hide)&&e.hide(),_.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete Lu[t.id]},ig=function(e){var t=Lu[e.id];t&&ng(t,e)};var rg=_.throttle(function(){_.map(Lu,function(e){e&&e.show&&e.show()})},10);var og=null,ag=500,sg=function(e){og=_.delay(function(){og=null,cg()},e=e||ag),E.guidesProcessingThreadHandle=og},dg=function(){og&&(Gt(og),og=null,E.guidesProcessingThreadHandle=og),A.dispatch("guideUpdate/stopScheduledUpdate")},ug=function(){fm(),wg.cancel();for(var e=0;e<Mu.length;e++){var t=Mu[e];t.parentNode.removeChild(t)}Mu.length=0,A.dispatch("guideUpdate/stopObserver"),R.guideLoopStopped.trigger()},cg=function(){if(dg(),Qm())T.info("guides are loading.",{contexts:["guides","loading"]});else if(Av())T.info("guides are disabled.",{contexts:["guides","disabled"]});else if(kv())T.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!A.getters["guideState/tabLostFocus"]())try{var e=y();e&&0!==e.length&&(A.dispatch("guideUpdate/startObserverIfNeeded"),wg.isComplete()&&wg.markDirty(),A.getters["frames/leaderExists"]())&&wg.process()}catch(t){wg.cancel(),T.critical("ERROR in guide-loop",{error:t})}finally{wg.paused||(wg.isComplete()?(A.state.guideUpdate.useObserver&&!A.state.guideUpdate.needsUpdate||sg(),R.guideUpdateComplete.trigger()):sg(50))}};var lg=function(){Lv(!1),cg()},pg=function(){Av()||Lv(!0),Ym()};class hg{constructor(e,t){this.dirty=!1,this.name=e,this.processFn=_.isFunction(t)?t:_.noop}markDirty(){this.dirty=!0}process(){this.processFn(),this.dirty=!1}cancel(){this.dirty=!1}isComplete(){return!this.dirty}}class fg{constructor(){this.name="badge",this.queue=[]}markDirty(){var e=_.filter(Fu(y()),Ku);_.find(e,function(e){return e.isTraining})&&(e=Jh(e,C.get("adoptPrioritizeAdoptGuides"))),Qf(),this.queue.push.apply(this.queue,e)}process(e){var t=this.queue.shift();e.saveContext(t),t&&t.placeBadge()}handleProcessTimeExceeded(e){e=e.getContext();T.warn("Badge ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}function gg(i,e){var t,r=!1,o=[],n=_.filter(i.modules,function(e){var t,n;return!!e&&(!!D.isIframeModule(e)||!!D.isSandboxModule(e)||(D.isIntegrationModule(e)?!!D.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1):(t=(n=_.filter(e.guidesInModule,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):(e.ineligibleForRC=!0,e.control&&o.push(e),!1)})).length,e.hasResourceCenterContent=!!t,i.activeModule&&e.id===i.activeModule.id&&(n=_t(_.map(n,function(e){var t=e.isAnnouncement()||e.isWhatsNew()?null:_.pluck(e.steps,"seenState");return{id:e.id,seenState:t}})),e.eligibleGuidesInModuleHash&&n!==e.eligibleGuidesInModuleHash&&(r=!0),e.eligibleGuidesInModuleHash=n),t)))}),a=!1;i.activeModule||(t=_t(_.map(n,function(e){return{id:e.id}})),i.eligibleModulesHash&&i.eligibleModulesHash!==t&&(a=!0,D.replaceResourceCenterContent(i.id,undefined,!0)),i.eligibleModulesHash=t),e(i,n,o),1===n.length&&(i.skipResourceCenterHomeView=!0,i.moduleIdToReplaceHomeViewWith=n[0].id,t=!i.activeModule&&a,e=i.activeModule&&i.activeModule.id!==n[0].id,t||e||r)&&D.replaceResourceCenterContent(i.moduleIdToReplaceHomeViewWith,undefined,!0),n&&(a=_.find(n,function(e){return e.isContinuation($h())}),t=_.get(a,"attributes.doNotResume"),e=_.get(a,"attributes.resourceCenter.integrationProvider"),D.isSupportedNativeIntegration(e))&&!t&&i&&(i.continueToNativeModule=!0,a.continueToNativeModule=!0),i.activeModule&&((e=_.find(n,function(e){return e.id===i.activeModule.id}))&&r&&D.replaceResourceCenterContent(i.activeModule.id,undefined,!0),e||D.replaceResourceCenterContent(i.id)),D.repositionResourceCenter()}function mg(e,t,n){var i,r=Lu[e.id];t&&t.length||(t=-1!==e.launchMethod.indexOf("badge"),i=-1!==e.launchMethod.indexOf("dom"),e.hasResourceCenterContent=!1,t?(e.isShown()&&e.hide(),r&&D.hideRCBadge(r,e),_.each(n,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}),e.badgeHidden=!0,delete e.activeModule):i&&(e.showEmptyState=!0,e.controlGuidesInAllModules=n)),e.badgeHidden&&e.hasResourceCenterContent&&!e.isNativeModuleActive&&(r||(_.isFunction(e.placeBadge)&&e.placeBadge(),r=Lu[e.id]),r&&r.show(),e.badgeHidden=!1)}function vg(e){var t,n,i,r,o,a;e&&e.launchMethod&&(e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith,t=e.activeModule,n=_.get(t,"attributes.resourceCenter.integrationProvider"),e.isNativeModuleActive=t&&D.isSupportedNativeIntegration(n),e.isShown()||!A.getters["frames/isLeader"]()?gg(e,mg):(t=e,n=mg,i=[],(r=_.find(t.modules,function(e){return!!D.isIframeModule(e)||!!D.isSandboxModule(e)||!!D.isIntegrationModule(e)&&(!!D.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1))}))&&i.push(r),r=_.flatten(_.pluck(t.modules,"guidesInModule")),o=_.filter(_.compact(r),function(e){return e.control}),!i.length&&(a=_.reduce(t.modules,function(t,n){return _.each(n.guidesInModule,function(e){t[e.id]=n}),t},{}),r=_.filter(r,function(e){return e&&e.steps&&e.steps.length}),r=_.sortBy(r,function(e){return e.steps[0].elementPathRule?1:0}),r=a[(r=_.find(r,function(e){return e.shouldBeAddedToResourceCenter()}))&&r.id])&&i.push(r),n(t,i,o)),e.isNativeModuleActive&&(e.isShown()&&e.hide(),a=Lu[e.id])&&D.hideRCBadge(a,e),"dom"===e.launchMethod)&&e.canShowOnDevice()&&(D.updateNotificationBubbles(),D.adjustNotificationBubbleForResize())}class yg{constructor(e=50){this.startTime=-1,this.timeLimit=e,this.context=null}start(){this.context=null,this.startTime=S()}isTimeExceeded(){return S()-this.startTime>this.timeLimit}saveContext(e){this.context=e}getContext(){return this.context}}class bg{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 yg(50);!this.timedOut()&&!i.isComplete()&&!e;)r.start(),!(e=i.process(r))&&r.isTimeExceeded()&&(Fd.count(Td),i.handleProcessTimeExceeded&&i.handleProcessTimeExceeded(r),this.ejectGuide(r.getContext()));Lt(e)?(t=this.updateId,n=_.bind(function(){this.updateId===t&&(this.paused=!1,cg())},this),this.paused=!0,e.then(n)["catch"](n)):i.isComplete()&&this.queue.shift()}addPhase(e,t){t=t||e.name||this.phases.length,_.isFunction(e)&&(e=new hg(t,e)),this.phases.push(e)}removePhase(t){var e=_.findIndex(this.phases,function(e){return e.name===t});0<=e&&this.phases.splice(e,1)}timedOut(){return!!this.iterationStartTime&&S()-this.iterationStartTime>A.state.guideUpdate.iterationTimeLimit}ejectGuide(e){this.ejectOnTimeout===undefined&&(this.ejectOnTimeout=C.get("guides.ejectOnTimeout")),this.ejectOnTimeout&&e&&!e.isShown()&&Bu.addGuide(e)}process(){var e=S();for(this.updateId||(this.updateId=e,this.updateTotalTime=0,A.commit("guideUpdate/startUpdate",e)),this.iterationStartTime=e;!this.paused&&this.queue.length&&!this.timedOut();)this.runGuidePhase();e=S(),this.updateTotalTime+=e-this.iterationStartTime,this.isComplete()&&this.complete(e)}complete(e){A.commit("guideUpdate/completeUpdate",e),this.cancel()}cancel(){this.updateId=null,this.paused=!1,this.queue.length=0;for(var e of this.phases)_.isFunction(e.cancel)&&e.cancel()}isComplete(){return!this.queue.length}}var wg=new bg([new hg("guideShowing",function(){var e=_.compact(_.map(_.filter(Fu(y()),e=>e.isShown()),e=>D.isModule(e)?D.getResourceCenter():e));_.each(e,function(s){_.each(s.steps,function(e){var t,n,i,r,o,a;e.isShown()&&(t=s,(e=e).isLocked()||A.getters["frames/isShownInAnotherFrame"]()(e)||(n=e.element,i=e.targetElement,r=e.guideElement,o=M("."+dm),(a=r.find("#pendo-guide-container")[0])&&a.textContent&&(a=f(a).fontSize,e.attributes.currentTextZoomFontSize!==a)&&(e.attributes.currentTextZoomFontSize&&e.redraw(),e.attributes.currentTextZoomFontSize=a),nl(e,!0),e.elementPathRule&&i&&!lo.matchesSelector(i,e.elementPathRule)||(a=_.get(t,"attributes.embedConfig.selector"))&&(!M(a).length||r&&!$a(r[0]))?e.hide():(t=ds(n),a=!0,i&&t&&e.elementContainsRulesList&&(a=Am(i,e.elementContainsRulesList),t=a),n&&(t||o.hasClass("mouseover"))?e.checkPlacement():Yu(e)&&us(n)&&a||e.hide())))}),s.checkForHiddenGroupSteps()})}),new sf,new fg,new hg("resourceCenter",function(){vg(D.getResourceCenter())}),new hg("frameVisibility",function(){A.dispatch("frames/checkFrameVisibility")})]);function Sg(){wg.addPhase(...arguments)}function Eg(){wg.removePhase(...arguments)}var Ig=_.wrap(_.wrap(_.once(_.wrap(function(e){var t=m.defer();return Rs(e,function(){t.resolve()}),t.promise},function(e,t){return 0<_.size(vc._handlers.validateGlobalScript)?wo.get(t).then(function(e){return vc.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)})),function(e,t){return t?e(t):m.resolve()}),function(e,t){return C.get("preventCodeInjection")?m.resolve():e(t)}),_g={initializeWatermark:function(e){e=_.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),_g.watermarkGuides=e,e=_.map(e,function(e){return e.fetchContent()});return m.all(e)},buildWatermark:function(e,t){if((e=e||{}).isTraining&&!e.isEmbedded){var n=e.targetAccount?function(t){return _.find(_g.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return _.find(_g.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 Cg="guides_blocked",Tg="Guides disabled: unreachable endpoint guide.gif";function xg(e){return JSON.parse(JSON.stringify(e))}class Rg{constructor(e,t){this.apiKey=e,this.cacheGuides=t.get("cacheGuides"),this.cacheGuidesTimeout=t.get("cacheGuidesTimeout"),this.cacheGuidesPersistent=t.get("cacheGuidesPersistent"),this.cache=null,this.db=null}openDB(e,t=window.indexedDB){if(!this.cacheGuidesPersistent)return m.resolve();if(this.db)return m.resolve(this.db);const n=m.defer();try{var i=t.open("pendo-"+e,1);i.onerror=()=>{this.dbError(new Error("open.request.onerror")),n.resolve()},i.onsuccess=e=>{e=e.target.result;(this.db=e).onclose=()=>{this.db=null},n.resolve(e)},i.onupgradeneeded=e=>{const t=e.target.result;t.createObjectStore("guides",{keyPath:"guide.id"}).transaction.oncomplete=()=>{this.db=t,n.resolve(t)}}}catch(r){this.dbError(r),n.resolve()}return n.promise}dbError(e){T.critical("indexedDB cache error",{error:e}),this.cacheGuidesPersistent=!1,this.db=null}load(t=S()){if(this.cache)return m.resolve(this.cache);if(this.cache={},!this.db)return m.resolve(this.cache);const n=m.defer();try{const r=this.db.transaction(["guides"],"readwrite").objectStore("guides");var e=r.getAll();e.onerror=()=>{this.dbError(new Error("load.request.onerror")),n.resolve(this.cache)},e.onsuccess=e=>{e=e.target.result;_.each(e,e=>{e.expires>t?this.cache[e.guide.id]=e:r["delete"](e.guide.id)}),n.resolve(this.cache)}}catch(i){this.dbError(i),n.resolve(this.cache)}return n.promise}add(e,t,n=S()){if(this.cacheGuides&&this.cache)return n={expires:n+this.cacheGuidesTimeout,visitorId:t,guide:xg(e)},this.cache[e.id]=n,this.save(n)}save(e){if(this.db){const i=m.defer();try{var t=this.db.transaction(["guides"],"readwrite").objectStore("guides").put(e);t.onerror=()=>{this.dbError(new Error("save.request.onerror")),i.resolve()},t.onsuccess=()=>{i.resolve()}}catch(n){this.dbError(n),i.resolve()}return i.promise}}update(t){if(this.cache){var e=this.cache[t.guideId];if(e){var n=_.find(e.guide.steps,e=>e.id===t.guideStepId);if(n)return n.seenState=t.state,n.seenReason=t.seenReason,n.lastSeenAt=t.time,null!=t.destinationStepId&&(n.destinationStepId=t.destinationStepId),null!=t.dismissCount&&(n.dismissCount=t.dismissCount),null!=t.snoozeEndTime&&(n.snoozeEndTime=t.snoozeEndTime),this.save(e)}}}list(n,i=S()){return this.cacheGuides?this.openDB(this.apiKey).then(()=>this.load(i)).then(()=>{const t=[];return _.each(this.cache,e=>{e.expires>i&&e.visitorId===n?t.push(_.pick(e.guide,"id","lastUpdatedAt","language")):delete this.cache[e.guide.id]}),t}):m.resolve([])}get(e){if(this.cache&&this.cache[e])return xg(this.cache[e].guide)}clear(){this.cache={},this.db&&this.db.transaction(["guides"],"readwrite").objectStore("guides").clear()}}function Ag(t,n,e){const{dom:i,onGuideAdvanced:r}=e;e=i(n.elementPathRule)[0];n.attachEvent(e,t,function(e){i.data.set(e,"advanced",!0),r(t,n)})}var kg={script:function(e,t,n){var i,r,o,a,s;e.elementPathRule&&(e.domJson?(o=e,(s=(a=n)._.get(o,"attributes.advanceActions",{})||{}).elementHover?Ag("mouseover",o,a):s.elementClick&&Ag("click",o,a)):(s=t,r=n,!(i=e).advanceMethod||Ku(s)&&!$u(s)||Yu(i)&&(s=r["_"],o=i.advanceMethod.split(","),s.each(o,e=>{"element"===e?Ag("click",i,r):"hover"===e&&Ag("mouseover",i,r)}))))}};let Og=null;function Ng(){window.clearInterval(Og),Og=null}var Mg={script:function(e,t,n){if("AnnouncementsModule"===n.BuildingBlocks.BuildingBlockResourceCenter.getModuleId(t)){t=n;if(!Og){const{_:h,dom:f}=t,g=t.BuildingBlocks.BuildingBlockResourceCenter;Og=window.setInterval(function(){var e=g.getResourceCenterContainer();if(!e)return Ng();e=f(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return Ng();var t=f(e).find('ol[id^="pendo-list"]');if(!t.length)return Ng();var n=f.getClientRect(t[0]),i=f(t).find("li");if(!i.length)return Ng();for(var r=e.attr("data-pendo-guide-id"),o=g.getResourceCenter().attributes.notifications.individualCounts[r],a=n.height/3,s=f.getClientRect(i[i.length-1]).bottom-30<n.top+n.height,d=0;d<i.length;d++){var u=f(i[d]),c=u.hasClass("pendo-unseen-announcement"),l=u.attr("data-pendo-announcement-send-seen-event");if(c||l){if(f.getClientRect(i[d]).top-n.top>n.height-a&&!s)break;var p=u.attr("data-pendo-announcement-guide-id"),l=h.find(Du(),function(e){return e.id===p});if(!l)break;c&&(u.removeClass("pendo-unseen-announcement"),c=u.find(".pendo-unread-announcement-mini-bubble"),Me(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"),g.hasAnnouncementBeenSeen(l)||o--,g.updateNotificationBubbleCount(o,r)),l.steps[0].seenState="advanced",Fm(l.id,l.steps[0].id,v(),"whatsnew",l.language,{last_updated_at:l.steps[0].lastUpdatedAt}),u[0].removeAttribute("data-pendo-announcement-send-seen-event"),Gm(l.id,l.steps[0].id,v(),"advanced",l.language)}}},500)}}}};var Lg={script:function(e,t,n){var i,r;!n.designer&&e.guideElement&&(i=n.BuildingBlocks.BuildingBlockGuides,(r=e.guideElement.find("#"+e.containerId)).length)&&(n._.get(e,"attributes.isAutoFocus")&&(i.autofocusStep(e,r),i.trapFocusStep(e,r),e.hiddenElements=(e.hiddenElements||[]).concat(i.addAriaHiddenOutsideGuide(e.guideElement[0]))),Vu(t))&&(i.attachRCFocusHandlers(),t.skipResourceCenterHomeView?(n=t.activeModule.steps[0],i.autofocusStep(n,n.guideElement)):i.autofocusStep(e,r))}};var Pg={script:function(e,t,n){var i,r;!n.designer&&e.guideElement&&e.hasBackdrop&&(n=n.BuildingBlocks.BuildingBlockGuides,r=e.guideElement[0],i=function(e){var e=yl(e),t=document.getElementById("pendo-preview");t&&e.push(t);return e}(e),r=C.get("useInertForBackdrop")?n.addInertOutsideGuide(r,[],i):n.addAriaHiddenOutsideGuide(r,[],i),e.hiddenElements=(e.hiddenElements||[]).concat(r))}};function Dg(e){var t,n=_.get(e,"value","");-1!==_.get(e,"parentElement.className","").indexOf("_pendo-nps-poll-"+n+"-wrapper")&&(e=M("._pendo-nps-open-text-poll-question"),t=M("._pendo-nps-open-text-poll-input")[0],_.forEach(e,function(e){"none"!==_.get(e,"style.display","none")&&t&&t.setAttribute("aria-labelledby",e.id)}))}var Fg={renderGuideFromJSON:function(e,n,t,i){i=i||{};var r=n.getGuide();n.isDarkMode===undefined&&tl(n);var o=Jc(e),a=(function(e,t,n){var i;e&&e.props&&e.props.id&&(i=e.props.id,!(t&&i==="pendo-g-"+t||n&&i==="pendo-g-"+n))&&t&&(e.props.id="pendo-g-"+t)}(o,n.id,r.id),_.get(r,"attributes.resourceCenter"));a&&(D.revertRtlChanges(r,e.props),e=D.updatePseudoStyleSelectors(e));var s="AnnouncementsModule"===_.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.hasBackdrop=!1,n.containerId=o&&o.props&&o.props.id,n.element=tc(n,i.document),Pt(e)),t=Fg.buildNodeFromJSON(o,n,t),d=(n.guideElement=t,el(n),t.find("#"+n.containerId)),u="data-vertical-alignment",c="Relative to Element"===d.attr(u);c&&!a&&M(n.guideElement).css({overflow:"hidden",height:"0",width:"0"});M(d[0]).css({visibility:"hidden"}),t.css({visibility:"hidden"});var l=_.get(r,"attributes.embedConfig",null);u=_g.buildWatermark({appId:r.appId,targetAccount:r.targetAccount,isTraining:r.isTraining,isBottomAligned:"Bottom Aligned"===d.attr(u),isEmbedded:!!l},Fg.buildNodeFromJSON);u&&d.append(u);u=n&&n.attributes&&n.attributes.imgCount,i=Qu(i.document);{var p,h;l?(p=t[0],f=M("#"+(h="pendo-guide-container"),p)[0],{selector:f,method:h}=(f&&(f.id=h+"-"+n.id,p.id="pendo-base-"+n.id),l),i=M(f)[0],(l=M("#"+p.id,i)).length?(t=l,n.guideElement=t):"replace"===h&&i?(i.innerHTML="",t.appendTo(i)):"prepend"===h?t.prependTo(i):t.appendTo(i)):t.appendTo(i)}Ug(Qu(),t[0],n.id),Ql(t),c&&Dl.patchGuideContainerWidthForResponsiveTooltips(n,d[0],e);s||(Fg.recalculateGuideWidth(n.containerId,n.guideElement),Fg.adjustGuideContentWidth(n.containerId,n.guideElement));u||a||Fg.flexAllThings(n.containerId,n);Fg.recalculateGuideHeight(n.containerId,n.guideElement),c&&(n.attributes.calculatedType="tooltip");u||Dl.positionStepForGuide(n,o,d[0]);{var f;a&&(D.showHomeViewOrEmptyState(r),f=[],s?f=[r.attributes.resourceCenter]:Fg.flexAllThings(n.containerId,n),f.length)&&_.forEach(f,function(e){e=_.get(e,"children",[]);_.forEach(e,function(e){var t;e&&(t=e.steps[0],_.isUndefined(t.attributes.imgCount))&&(t=_.get(t,"id",n.id),e=_.get(e,"id",r.id),t=M("#pendo-g-"+t).length?t:e,Fg.flexAllThings("pendo-g-"+t,n))})})}{var g;u?(g=m.defer(),t.rendered=g.promise,d.on("imagesLoaded",function(){g.resolve()})):(d.css({visibility:"visible"}),t.rendered=m.resolve())}return t.css({visibility:"visible"}),n.elements.push(n.guideElement[0]),t},fixGuideStyleDocument:Ug,getDeepActiveElement:Hg,autofocusStep:function(e,o){var t="autofocus for guide id: "+e.getGuide().id+" step id: "+e.id+" ",n=function(e){var t,n;return!!e&&(t=fa(t=e),n=Ba(),_.extend(n,{top:0,left:0,bottom:n.height,right:n.width}),Ya(n,t)||ls(e),e.focus(),e===M.getRootNode(e).activeElement)},i={maxRetries:100,delay:50,exponentialBackoff:!1};Nt(function(){var e,t,n,i,r=M(o).find("#pendo-guide-container");return(r=r[0]||r)&&ds(r)&&(e=r,t=_.contains(["A","INPUT","LABEL","SELECT","TEXTAREA","BUTTON","FIELDSET","LEGEND","DATALIST","OUTPUT","OPTION","OPTGROUP"],e.nodeName),n=!!e.tabIndex,i=!e.hidden,e=!e.disabled,t||n)&&i&&e?r:null},i,function(e){Nt(function(){return n(e)},i,function(){},function(){T.warn(t+"#pendo-guide-container is available on page but could not capture focus")})},function(){T.warn(t+"#pendo-guide-container did not render or become visible in time to focus")})},trapFocusStep:function(e,t){var t=t.find("#pendo-guide-container"),n=_.get(e,"attributes.blockOutUI.enabled")&&function(e){if(e.element&&e.element!==Va())return e.element;return null}(e);!function(e,f,n){var g,m,v,t,y,b,w,i,r,S=e[0];S&&(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(", "),(g=_.toArray(e.find(t))).length)&&(m=g[0],v=g[g.length-1],t=jg(e),y=t[0],b=t[1],w=function(e){var t=n&&n.guideElement&&n.guideElement[0];return!(!e||e===document.body||e===document.documentElement||S.contains(e)||t&&zg(t,e)||zg(f,e)||function(i,e){e=_.get(e,"attributes.blockOutUI.additionalElements");return _.isString(e)&&e.length&&_.some(e.replace(/\s/g,"").split(","),function(e){if(!e)return!1;var t;try{t=M(e)}catch(n){return!1}return _.some(t,function(e){return zg(e,i)})})}(e,n))},i=function(t){if(Gg(t)){var n,i,r=t.shiftKey,o="keydown"===t.type,a=M.getRootNode(S).activeElement,s=a===S,d=document.activeElement===document.body,u=a===y,a=a===b,c=Hg(),l=(l=f)?(n=[],(i=function(e){var t;1===e.nodeType&&ds(t=e)&&("IFRAME"===t.tagName||0<=t.tabIndex&&!t.disabled||null!=(t=t.getAttribute&&t.getAttribute("contenteditable"))&&"false"!==t)&&n.push(e),e.shadowRoot&&_.each(e.shadowRoot.children,i),_.each(e.children,i)})(l),n):[],p=c?l.indexOf(c):-1,h=o&&-1!==p&&p===l.length-1;let e;r?o&&0===p?e=v:(u||s||d)&&(e=l[l.length-1]||v):h?e=m:a?e=l[0]||m:(s||d)&&(e=m),(e=!e&&l.length&&w(c)?r?v:m:e)&&((o=function(e,t){let n;if("radio"===t.getAttribute("type")&&t.getAttribute("data-pendo-poll-id")){const i=t.getAttribute("data-pendo-poll-id");n=_.find(e,function(e){var t=e.getAttribute("data-pendo-poll-id");return i===t&&e.checked})}return n||t}(g,e)).focus(),M.getRootNode(o).activeElement!==o&&(r?v:m).focus(),t.preventDefault())}},r=function(e){e.relatedTarget&&"IFRAME"===e.relatedTarget.tagName&&zg(f,e.relatedTarget)&&w(e.target)&&(!!(e.relatedTarget.compareDocumentPosition(e.target)&Node.DOCUMENT_POSITION_FOLLOWING)?m:v).focus()},F(document,"keyup",i),F(document,"keydown",i),f&&F(document,"focusin",r),R.one("unmounted",()=>{jf(document,"keyup",i),jf(document,"keydown",i),jf(document,"focusin",r)}))}(t,n,e)},attachRCFocusHandlers:function(){const s=D.getResourceCenter(),d=D.getResourceCenterContainer();if("dom"===s.launchMethod&&d){let e=M(s.attributes.activation.selector)[0];if(e){const[u,c]=jg(M(d));var t=function(e){var t=Gg(e),n=e.shiftKey;if(t){var t=M.getRootNode(d).activeElement,i=M(s.attributes.activation.selector)[0];if(i){var r=t===u,t=t===c;const a=M(os);function o(t){return Object.values(a).findIndex(e=>e===t)}n?r?(i.focus(),e.preventDefault()):t&&Bg(0===(n=o(u))?a.length-1:n-1,a,e):t?Bg(o(i)+1,a,e):r&&Bg((n=o(c))>=a.length-1?0:n+1,a,e)}}},n=function(e){var t=Gg(e),n=e.shiftKey;t&&!n&&Bg(0,M('[id^="pendo-g-"]').find(os),e)},i=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=u&&t&&Bg((n=M('[id^="pendo-g-"]').find(os)).length-1,n,e)};F(document,"keyup",t),F(document,"keydown",t),F(e,"keydown",n),F(e,"focus",i),R.one("unmounted",()=>{jf(document,"keyup",t),jf(document,"keydown",t),jf(e,"keydown",n),jf(e,"focus",i)})}}},addAriaHiddenOutsideGuide:function O_(e,r=[],o=[]){if(!e||e===Va())return r;const t=Ka(e);_.each(t,e=>{const t=e.tagName.toLowerCase(),n="true"===e.getAttribute("aria-hidden"),i=Wg(e,o);-1!==r.indexOf(e)||n||i||"script"===t||"style"===t||(e.setAttribute("aria-hidden","true"),r.push(e))});e.parentNode&&O_(e.parentNode,r,o);return r},addInertOutsideGuide:function N_(e,r=[],o=[]){if(!e||e===Va())return r;const t=isNaN(Le);if(!t)return r;const n=Ka(e);_.each(n,e=>{const t=e.tagName.toLowerCase(),n="true"===e.getAttribute("inert"),i=Wg(e,o);-1!==r.indexOf(e)||n||i||"script"===t||"style"===t||(e.setAttribute("inert","true"),r.push(e))});e.parentNode&&N_(e.parentNode,r,o);return r},renderResourceCenterModule:D.renderResourceCenterModule,buildNodeFromJSON:wp,attachImgLoadHandlers:Sp,recalculateGuideHeightOnImgLoad:Ip,buildStyleString:function(e){var n="";return _.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:Cp,bindActionToNode:_p,recalculateGuideHeight:tp,recalculateGuideWidth:np,adjustGuideContentWidth:ip,findDomBlockInDomJson:Yc,isElementHiddenInGuide:g.isElementHiddenInGuide,positionStepForTooltip:Dl.positionStepForGuide,flexAllThings:g.flexAllThings,flexElement:g.flexElement,findTopLevelContainer:function(t){for(var e=["pendo-base","pendo-resource-center-container"],n=0;n<20;n++){if(_.find(e,function(e){return t.id===e}))return t;if(t===document.body)return document.body;t.parentNode&&(t=t.parentNode)}return document.body},updateBackdrop:Tl,buildNodesFromJSON:vp,findGuideContainerJSON:Jc,maintainAspectRatios:g.maintainAspectRatios,sizeElement:ep,sizeElements:Ql,getAllowedAttributes:bp,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:Dl.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:Dg};function Ug(e,t,n){var i,t=M.getRootNode(t),e=M.getRootNode(e);e!==t&&(e!==document?e.hasOwnProperty("wrappedJSObject")?(i=e.wrappedJSObject.adoptedStyleSheets,t.wrappedJSObject.adoptedStyleSheets.push(...i)):(i=e.adoptedStyleSheets,t.adoptedStyleSheets.push(...i)):(i=M(".pendo-style-"+n,e)).length&&(i.remove(),i.appendTo(t)))}function Gg(e){return"Tab"===e.key||9===e.keyCode}function Bg(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function Hg(){for(var e=document.activeElement;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function zg(e,t){if(e&&t)for(var n=t;n;){if(1===n.nodeType&&e.contains(n))return!0;var i=M.getRootNode(n),n=i&&i.host}return!1}function jg(e){var t={margin:0,padding:0,outline:"none",border:"none","box-shadow":"none",shadow:"none"},t={type:"style",props:{type:"text/css",scoped:"scoped",id:"pendo-focus-bumper-styles"+Date.now()},css:[{selector:".pendo-start-focus-bumper",styles:_.extend({},t,{tabIndex:0})},{selector:".pendo-start-focus-bumper:hover",styles:t},{selector:".pendo-start-focus-bumper:focus",styles:t},{selector:".pendo-end-focus-bumper",styles:_.extend({},t,{tabIndex:0})},{selector:".pendo-end-focus-bumper:hover",styles:t},{selector:".pendo-end-focus-bumper:focus",styles:t}]},t=Fg.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]}function Wg(t,e){return _.some(e,e=>e&&(t===e||Gi(t,e)))}const qg="dialog:modal";function Vg(e){try{return e&&M(e).closest(qg)[0]||null}catch(t){return null}}function Kg(e){return function(e){if(!(e=_.get(e,"attributes.popover.selector")))return null;try{return M(e)[0]||null}catch(t){return T.info("Invalid popover selector",{contexts:["error","guide","render"]}),null}}(e)||Vg(e.targetElement)||Vg(Fg.getDeepActiveElement())||_.last(function(){try{return M(qg)}catch(e){return[]}}())||null}var $g={script:function(e,t,n){var i;!n.designer&&e.guideElement&&_.get(e,"attributes.popover.enabled")&&et.supportsPopover()&&(_.get(t,"attributes.resourceCenter")||_.get(t,"attributes.embedConfig")||(n=e.guideElement.find("#"+e.containerId)).length&&(t="Relative to Element"===n.attr("data-vertical-alignment"),n=Kg(e))&&(i=e.guideElement[0],n.appendChild(i),Fg.fixGuideStyleDocument(Qu(),i,e.id),function(e){e.setAttribute("popover","manual");try{return e.showPopover(),1}catch(t){e.removeAttribute("popover"),T.info("Failed to render guide as popover",{contexts:["error","guide","render"]})}}(i))&&t&&Dl.placeBBTooltip(e))}};function Jg({_:e},t,n){n=e.throttle(e.bind(n,t,t),10);t.attachEvent(window,"scroll",n,!0),rs(e.bind(t.attachEvent,t),t.targetElement,n)}function Yg({dom:e},t,n){e.isElementVisible(t.element)?(n(t),e(t.elements[0]).css({display:"block"})):e(t.elements[0]).css({display:"none"})}function Xg(e){Dl.placeBBTooltip(e)}function Zg(e){e.reposition()}var Qg={designer:!0,script:function(e,t,n){var{_:i,dom:r}=n;e&&i.isFunction(e.attachEvent)&&(Xu()&&e.element===r.getBody()||(Yu(e)&&(r=e.domJson?Xg:Zg,Jg(n,e,i.partial(Yg,n,e,r))),i.get(e,"attributes.blockOutUI.enabled")&&Jg(n,e,Tl)))}};function em(e,t){var{_:t,Sizzle:n}=t,e=n(t.get(e,"attributes.activation.selector",""));e.length<1||e[0].focus()}function tm(e,t){if(!t.designer){var n=t["_"];if(e&&"building-block"===n.get(e,"attributes.type","")){var i,r,o,a=e.steps[0],s=a.seenReason,d=n.get(e,"launchMethod","").split("-"),u=n.contains(d,"dom"),c=n.contains(d,"badge"),d=Vu(e);if(n.get(a,"attributes.isAutoFocus")||d)switch(s){case"badge":c&&(r=a,o=(o=t).dom,(o=0<(o=(r=o("#_pendo-badge_"+r.id)).find("input")).length?o:r).length<1||o[0].focus());break;case"dom":u&&em(e,t);break;case"launcher":o=(r=t).BuildingBlocks.BuildingBlockResourceCenter,(i=o.getResourceCenterBadge())?i.element().focus():em(o.getResourceCenter(),r)}}}}var nm={script:function(e,t,n){this.on("dismissed",()=>{tm(t,n)}),this.on("snoozed",()=>{tm(t,n)}),this.on("advanced",({step:e})=>{e.destinationStepId||tm(t,n)})}};var im={script:function(e,t,n){if(e=e.guideElement){const{attachEvent:i,dom:r}=n;r(".pendo-video-wrapper",e).each(function(t){r("iframe",t).each(function(e){t.setAttribute("data-pendo-video-loading",""),i(e,"load",function(){t.removeAttribute("data-pendo-video-loading")})})})}}};const rm=x.getLocal();var om=[],am="Guide was not shown because this visitor is in a control group of an active experiment for the guide";function sm(){var e=C.get("guideCssAssetPath");return e||Zo("guide.css")}var dm="_pendo-guide_",um="_pendo_g_",cm=function(e,t){var n=M("._pendo-close-guide_",e);return n.length||(n=M(document.createElement("button")).attr("id","_pendo-close-guide_").attr("aria-label","close").addClass("_pendo-close-guide_").text("\xd7"),tt()?9<Le&&n.css({top:3}):8===Le?n.css({top:9,right:2}):9===Le?n.css({right:2,top:3}):9<Le&&n.css({top:3}),e=M("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},lm=function(n){return _.reduce(y(),function(e,t){return n(t)&&e.push(t),e},[])},pm=function(e,t,n,i,r,o){e=ju(b(e),t);e&&(e.seenState=n,e.lastSeenAt=i,e.destinationStepId=o,r!==undefined)&&(e.dismissCount=r)},hm=function(e){for(var t=new RegExp("^"+um);e;){if(_.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function fm(t={}){_.each(y(t),function(e){_.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var gm=function(e){return e&&e.guideId};var mm=function(e,t){var n,i;return gm(e)&&(t=e,e=null),(n=t)&&_.isFunction(n.render)?t:t?(n=b(t.guideId))&&n.findStepById(t.id):(n=_.find(y({channel:Pu.DEFAULT}),function(e){return e.isShown()}))?((i=e?hm(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||wa("findStepForGuideEvent: step with id "+i):(t=_.find(n.steps,function(e){return e.isShown()}))||wa("findStepForGuideEvent: no step shown"),t):void 0};function vm(e){return e.isLocked()&&(!e.elements||!e.elements.length||void Ea('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}function ym(e,t){return!(e.isMultiApp||e.channel||"auto"!==t&&"repeatGuide"!==t)}var bm=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=mm(e,t))&&t.id?vm(t)||("dismissed"===t.seenState?T.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(T.info("onGuideDismissed called",{contexts:["guides"]}),R.beforeDismiss.trigger(t).cancel?T.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(e=t.id,n=b(s=t.guideId),i=(i=_.first(n&&n.steps))&&i.seenReason,r=n&&n.language,o=_.get(t,"dismissCount",0)+1,a=S(),ym(n,i)&&Bm(a,zh.DISMISSED),Um(s,e,v(),i,r,o),pm(s,e,"dismissed",a,o),t.hide(),Gu()||(ug(),cg())))):ug()},wm=function(e,t,n){var i,r,o,a,s,d;T.info("onGuideSnoozed called",{contexts:["guides"]}),(t=mm(e,t))?"snoozed"===t.seenState?T.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):R.beforeSnooze.trigger(t).cancel?T.info("Guide snooze canceled during runtime in step: "+t.id):(n||(n=864e5,T.info("no snooze duration provided, defaulting to 1 day")),vm(t)||(e=t.id,i=t.guideId,r=v(),d=b(i),o=d&&d.language,a=_.first(d&&d.steps),a=a&&a.seenReason,s=S(),T.info("snoozing guide for "+n+" ms"),t.snoozeEndTime=s+n,ym(d,a)&&Bm(s,zh.SNOOZED),d=zm({type:"guideSnoozed",guideId:d=i,stepId:e,visitorId:r,seen_reason:a,language:o,snooze_duration:n}),Vm(d),R.guideSnoozed.trigger(d),pm(i,e,"snoozed",s),t.hide(),Gu())||(ug(),cg())):(T.info("missing step. can't snooze",{contexts:["guides","error"]}),ug(),wa("onGuideSnoozed: missing step"))},Sm=function(e){var t,n,i,r=(r=e&&e.step)||mm(e);r?(i=e&&e.params,i=_.find(i,function(e){return"goToStepId"===e.name}),t=i&&i.value,(t=e&&e.destinationStepId?e.destinationStepId:t)?t===r.id?T.info("[goToStep] step id matches the current step",{contexts:["guides","error"]}):(i=b(r.guideId),(n=_.find(i.steps,function(e){return e.id===t}))?(n=_.indexOf(i.steps,n),i=_.indexOf(i.steps,r),e.steps=Math.abs(n-i),e.action=e.action||"goToStep",e.destinationStepId=t,i<n?Em(e,r,!1):Im(e,r)):T.info("[goToStep] guide has no step matching the step id",{contexts:["guides","error"]})):T.info("[goToStep] missing step id to go to",{contexts:["guides","error"]})):T.info("[goToStep] missing current step",{contexts:["guides","error"]})},Em=function(e,t,n){if(1===arguments.length&&gm(e)&&(s=Hu(e.guideId),i=mm(),s)&&i&&_.first(s.steps).id===i.id&&_.last(s.steps).id===e.id&&(T.info("Cannot skip to last step from first step"),e=null),T.info("onGuideAdvanced called",{contexts:["guides"]}),(t=mm(e,t))===e&&(e=null),t){if(!vm(t))if("advanced"!==t.seenState||n)if(R.beforeAdvance.trigger(t).cancel)T.info("Guide advance canceled during runtime in step: "+t.id);else{var i=e&&("goToStep"===e.action||"submitPollAndGoToStep"===e.action)||!1,r=b(t.guideId),o=r&&r.language,a=r&&r.steps&&_.findIndex(r.steps,e=>t.id==e.id);if(e&&_.isNumber(e.steps)&&1<e.steps&&!i){var s=a+(e.steps-1),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],Gm(r.id,t.id,v(),t.seenReason,o,u!==a);var c=S();pm(r.id,t.id,"advanced",c,undefined,h)}return Em(r.steps[s],t,!0)}var l,i=t.id,s=t.guideId,p=_.first(r&&r.steps),p=p&&p.seenReason,h=e&&e.destinationStepId,f=(h||(f=e&&_.isNumber(e.steps)&&1<e.steps?e.steps:1,h=(f=_.isNumber(a)&&r&&r.steps&&r.steps[a+f])&&f.id||null),h||T.info("missing destination step id"),r&&_.last(r.steps).id===i&&(l=_.get(t,"dismissCount",0)+1),(new Date).getTime());ym(r,p)&&Bm(f,zh.ADVANCED),T.info("advancing guide"),Gm(s,i,v(),p,o,n,h,l),T.info("update guide status"),pm(s,i,"advanced",f,l,h),T.info("stop guide"),ug(),T.info("start guides"),cg()}else T.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else T.info("missing step. can't advance",{contexts:["guides","error"]}),ug(),wa("onGuideAdvanced: missing step")},Im=function(e,t){var n,i,r,o,a,s;T.info("onGuidePrevious called",{contexts:["guides"]}),(t=mm(e,t))?"advanced"===t.seenState?T.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):R.beforePrevious.trigger(t).cancel?T.info("Guide previous canceled during runtime in step: "+t.id):(a=b(n=t.guideId),i=e&&("goToStep"===e.action||"submitPollAndGoToStep"===e.action)||!1,0!==(r=_.indexOf(a.steps,t))&&(s=e&&_.isNumber(e.steps)?e.steps:1,o=_.first(a&&a.steps),s=0<=(r=r-s)?a.steps[r]:o,r=o&&o.seenReason,o=a&&a.language,a=s.id,(a=i&&e&&e.destinationStepId?e.destinationStepId:a)||T.info("missing destination step id"),T.info("advancing guide"),Gm(n,t.id,v(),r,o,!1,a),T.info("update guide status"),s=(new Date).getTime(),pm(t.guideId,t.id,"advanced",s,undefined,a),ug(),cg())):(ug(),wa("onGuidePrevious: missing step"))},_m=function(e){var t;M("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",Xo()+"/img/tiny-logo.png"),t=M(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:E.TOOLTIP_ARROW_SIZE}).append(t),Mu.push(t[0]),t.appendTo(e))};function Cm(e){return e&&e.attributes&&e.attributes.stayHidden}const Tm=(e,t,n)=>{var i;return Pd()&&({id:e,guideId:i}=e,R.stepEligibility.trigger({stepId:e,guideId:i,eligible:t,reason:n})),t};var xm=function(e){var t=_.partial(Tm,e);if(Cm(e))return t(!1,"dismissed");if(!e.elementPathRule&&("lightbox"===e.type||"whatsnew"===e.type))return t(!0,"");if(e.triggerElementPathRule&&!ds(lo(e.triggerElementPathRule)[0]))return t(!1,"trigger_element");var n=tc(e),i=e.targetElement;if(i&&e.elementContainsRulesList&&!Am(i,e.elementContainsRulesList))return t(!1,"contains_rules");var r,o,i=_.get(e,"guide.attributes.embedConfig");if(i&&i.selector){var a=M(i.selector)[0];if(!a)return!1;if("replace"===i.method&&(r=e.guide,o=a,_.some(y(),function(e){return!(e===r||!_.isFunction(e.isShown)||!e.isShown()||!(e=_.get(e,"attributes.embedConfig"))||"replace"!==e.method||M(e.selector)[0]!==o)})))return!1}i=Yu(e)||Dl.isBuildingBlockGuideRelativeToElement(e),a=ds(n);return i?a?t(a,"target_element_tooltip"):t(us(n),"target_element_tooltip_scroll"):t(a,"target_element")};function Rm(e){var t=(M(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function Am(e,t){for(var n=Rm(e),i=0;i<t.length;i++)if(!km(n,t[i]))return!1;return!0}function km(e,t){var n=t.matchType,i=t.matchValue,t=t.dataType,e=e||"";if("number"===t){var r=Mt(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 Om=function(e){return um+e.id},Nm=function(e){var t=e.element,n=_.first(M("#"+Om(e)));t&&n?ds(t)||M.hasClass(n,"mouseover")?Ut(function(){Nm(e)},ag):e.hide&&(e.hide(),Gu())||(ug(),cg()):t||!n||e.hide&&(e.hide(),Gu())||(ug(),cg())},Mm=function(){return!1},Lm=function(t){var e;Gu({channel:t.channel})&&(Vu(t)?(e=lm(Vu),(e=_.filter(e,function(e){return e.id!==t.id})).length&&A.dispatch("frames/hideGuides",_.pluck(e,"id"))):(fm({channel:t.channel}),A.dispatch("frames/hideGuides")))},Pm=function(e,t){return!(!e||!e.guideId||!(e=b(e.guideId)))&&(Lm(e),e.launch(t),e.isShown())},Dm=function(e,t,n,i,r,o){e=zm({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&_.extend(e.props,{step_poll_types:o}),Vm(e),R.guideNotSeen.trigger(e)};var Fm=function(e,t,n,i,r,o){i||(a=b(e),s="auto",i=a&&(a=(a.launchMethod||s).split("-"),!_.contains(a,s))&&a.length?_.first(a):s);var a=zm({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r,duration:0}),s=(_.extend(a.props,o),Vm(a),S());pm(e,t,"active",s),R.guideSeen.trigger(a)};function Um(e,t,n,i,r,o){e=zm({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});null!=o&&(e.props.dismiss_count=o),Vm(e),R.guideDismissed.trigger(e)}function Gm(e,t,n,i,r,o,a,s){e={type:"guideAdvanced",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r},a&&(e.destination_step_id=a),null!=s&&(e.dismiss_count=s),t=zm(e);Vm(t,null,o),R.guideAdvanced.trigger(t)}function Bm(e,t){Hm(e,t);var n={};n[t]=e,A.dispatch("frames/changeThrottlingState",n)}function Hm(e,t){_.contains(_.values(zh),t)&&(_.isFunction(e.getTime)&&(e=e.getTime()),E[t]=e,x.write(t,e,Bh),A.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function zm(e,t,n,i,r,o){var a=e,e=("object"!=typeof a&&(a={type:e,guideId:t,stepId:n,language:o}),r&&(a.reason=r),_.isString(a.language)||delete a.language,_.extend({guide_id:a.guideId,guide_step_id:a.stepId},_.omit(a,"type","guideId","stepId","visitorId")));return Kn.addTracerIds({type:a.type,visitor_id:v({generate:!0}),account_id:Ai(),browser_time:(new Date).getTime(),url:L.externalizeURL(),props:e})}var jm=null,Wm=function(e){Gt(jm),jm=Ut(bv,e)};var qm,Vm=function(e,t,n){var i,r;t=t||500,null==e.props.duration&&({guide_id:i,guide_step_id:r}=e.props,r=r,r=(i=ju(b(i=i),r))&&i.lastSeenAt,e.props.duration=n||null==r?0:S()-r),Cv(),vv.push(e),Wm(t)},Km=function(e,t){return"dismissed"===e.state?null:b(e.guideId).nextStep(e,t||Au())},$m=function(e,t){e=zu(e);return!!e&&(!(t=Pm(_.first(e.steps),t||"api"))&&e.control&&T.info(am),t)},Jm=function(e,t){e=b(e);return!!e&&(!(t=Pm(_.first(e.steps),t||"api"))&&e.control&&T.info(am),t)},Ym=function(){ug(),dg(),D.removeNotificationBubble(),tg(),cd()};function Xm(){ug(),Ra(),E.segmentFlags=[],E.doNotProcess=!0,A.commit("debugger/doNotProcess",!0),T.info("not tracking visitor due to 451 response")}function Zm(e){qm&&(451===e.statusCode&&(Xm(),qm.deferred.reject(e)),_.isString(e.id)&&e.id!==qm.id||(C.get("requestSegmentFlags")&&delete e.segmentFlags,_.extend(E,e),e={guides:E.guides,visitorId:v(),guideCache:xv},R.guidesReceived.trigger(e),E.guides=e.guides,qm.deferred&&qm.deferred.resolve(),qm=null))}function Qm(){return jv.pending||!(!qm||!E.id||E.id===qm.id)}var ev=function(o,a){var e,s=_.uniqueId(),d=m.defer();return qm&&qm.deferred&&qm.deferred.resolve(),qm={id:s,deferred:d},Pp()||((e=Dp())?(T.info("sending metadata: "+JSON.stringify(e),{contexts:["guides","metadata"]}),a.metadata=e):T.info("no metadata to send",{contexts:["guides","metadata"]})),xv.list(a.visitorId).then(e=>{0<e.length&&(a.cachedGuides=e);var e=bt(a),t={id:s,jzb:e,v:ct,ct:(new Date).getTime()},n=(Qo()&&ea(t,a.accountId,C.get("oemAccountId")),!Pd()&&!0!==Ld().enabled||(t.debug=!0),ya(tv.endpoint(),o,t)),i=vd.get();let r;return r=nu(n,i)?(delete t.jzb,n=ya("guide.json",o,t),t=_.extend({events:e},i),tv.post(n,t,E,_.noop)):tv.load(n,E,_.noop),m.all([r["catch"](function(e){return 451===e.status&&Xm(),m.reject(e)}),d.promise,(e=tv,i=o,"1"===(t=x.read(Cg))?(T.info(Tg),m.resolve({success:!1,cached:!0})):"0"===t?m.resolve({success:!0,cached:!0}):(t=ya("guide.gif",i,{jzb:"eJwFwIEIAAAAwDDQd3-N1QABFQC5",ct:S(),v:ct}),(e.usesXhr()?wo.get(t):_a(t)).then(function(){return{success:!0}},function(e){return e&&e.status?{success:!0}:{success:!1}})))]).then(function([,,e]){var t;if((t=e).cached||(t.success?x.write(Cg,"0",144e5):(T.info(Tg),x.write(Cg,"1",18e5))),!e.success)return m.reject()})})},tv=yc;function nv(e){e=_.find(e.steps,e=>e.pageId&&!e.regexUrlRule);return!e||(T.critical("pendo.io guide validation exception",{guideId:e.guideId,stepId:e.id,error:new Error("missing regexUrlRule for page "+e.pageId+'"')}),!1)}function iv(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&_.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}var rv,ov=function(){return!C.get("disableGlobalCSS")};function av(e,t){var n=C.get("dropAnonymous");if(fi(e)&&n)T.info("loading guides blocked for anonymous visitors due to dropAnonymous config setting being set to true"),_.isFunction(t)&&t("error: guides are blocked");else if("1"===x.read(Cg))T.info("guide events are blocked, load guides cancelled"),_.isFunction(t)&&t("error: guides are blocked");else{if(id(rd()))return 1;T.info("bad url: probably local file system",{contexts:["guides","error"]}),_.isFunction(t)&&t("error: invalid url")}}var sv=function(e,r,o,a){var s=m.defer(),d=!1;if(e=e||E.apiKey,av(r=r||v(),a)){T.info("loading guides for "+o+"...",{context:["guides"]}),o=L.externalizeURL(o);var n,t,u=sv.lastVisitorId!==r?_.noop:(i=y(),(t=_.find(i,function(e){return _.isFunction(e.isRendered)&&e.isRendered()&&!e.isTopLevel}))?(n=_.chain(t.steps).filter(function(e){return e.isRendered()}).indexBy("id").value(),function(e){e=_.findWhere(e,{id:t.id});e&&!_.get(e,"attributes.doNotResume")&&_.each(e.steps,function(e){var t=n[e.id];!t||e.seenState&&"active"!==e.seenState||e.show(t.seenReason)})}):function(){}),i=(sv.lastVisitorId=r,dg(),A.commit("guideState/setLastGuideRequestAt",S()),{visitorId:r,accountId:Ai(),url:o,oldVisitorId:Ii=Ii===undefined&&gi()?Oi(ui):Ii,timezoneOffset:(new Date).getTimezoneOffset()});const c=_.uniqueId();sv.reqId=c,ev(e,i).then(function(){if(!d&&!E.designer)if(sv.reqId!==c)s.resolve();else{R.deliverablesLoaded.trigger(),T.info("successfully loaded guides for "+o,{contexts:["guides"]}),Ym();var t=E.lastGuideStepSeen;if(!t)throw new Error("lastGuideStepSeen is not set, check response from guide payload");A.dispatch("guideState/receiveLastGuideStepSeen",t),t.visitorId=r,A.dispatch("guideState/updateLastGuideStepSeen",t),A.commit("guideState/setLastGuideRequestAt",S());t=E.guides;var t=_.chain(t).map(jc).filter(nv).sortBy(iv).value(),n=(Uu(t),y());A.dispatch("guideState/load"),A.dispatch("guideState/apply"),A.dispatch("healthCheck/init",t),A.dispatch("frames/changeGuideList",n),E.eventProperties=Pv(E.features);let e=m.resolve();E.globalJsUrl&&(e=Ig(Sc(E.globalJsUrl))["catch"](function(e){T.error("Error loading global script: ",e)})),n.length?m.all([e,Iv(t),_g.initializeWatermark(t),cv(5e3)].concat((i=t,_.map(dv,function(e){return e(i)})),mv())).then(function(){sv.reqId===c&&(A.getters["frames/isLeader"]()&&u(y()),R.guidesLoaded.trigger(),cg(),Gt(rv)),_.isFunction(a)&&a(),s.resolve()},function(e){T.critical("Post loadGuide request failed: "+e),Ym(),R.guidesFailed.trigger(),s.reject()}):(R.guidesLoaded.trigger(),s.resolve())}var i})["catch"](function(e){T.info("Error in loadGuideJs, shutting down guides, err: "+_.get(e,"message",e||"Unknown error")),R.guidesFailed.trigger(),s.reject(e)});e=C.get("guides.timeout");_.isNumber(e)&&(Gt(rv),rv=Ut(function(){var e;e=s,Ym(),e.reject(),d=!0},e))}else s.reject();return s.promise};var dv=[];function uv(e,t){var n,i=document.getElementById(e);return i&&i.href&&0<=i.href.indexOf(t)?m.resolve():(n=m.defer(),M(i).remove(),i=E.loadResource(t,function(){n.resolve()}),_.isEmpty(i)?m.reject(`Failed to load CSS resource: ${t}. Check that the URL is correct and from an allowed origin.`):(i.id=e,n.promise))}var cv=_.memoize(function(t,n,e){if(!ov()||!lv(y()))return m.resolve();n=n||S,e=e||"_pendo-hidden_";var i=M(document.createElement("div")).addClass(e).css({position:"absolute",bottom:"0px",right:"0px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(M.getBody()),r=n(),o=m.defer();return function s(e){Ut(function(){a(i[0])?(i.remove(),o.resolve()):n()-r>t?(i.remove(),o.reject("Unable to find global css after delay")):s(100)},e)}(0),o.promise;function a(e){e=f(e);if(e)return"none"===e.display}});function lv(e,t){return t&&t.designer||_.any(e,function(e){return!Ju(e)&&"html"!==e.editorType&&_.any(e.steps,function(e){return"html"!==e.type&&!(e.domUrl||e.domJsonpUrl||e.domJson)})})}const pv="_pendo-default-css_",hv="_pendo-css_";function fv(e){return E.apiKey?e+E.apiKey:e}function gv(e){M(document.getElementById(fv(e))).remove()}function mv(){var e=[];if(!ov())return m.resolve();lv(y(),E)&&e.push(uv(fv(pv),sm()));var t=((E.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(uv(fv(hv),Sc(t))):gv(hv),e}var vv,yv,bv=function(e){vv&&vv.flush(e)},wv=function(){return om};function Sv(e,t){sn(e.type,Kt)&&t(e)}function Ev(e){var t=Bd(ru,qd("visitor_id"),qd("props.source"),Wd,iu,su(),cu(e),lu,pu,wu),n=Bd(ou,Sv,au,zd,jd(e.cache),_.noop);return new Cu(_.extend({processSilos:t,packageSilos:n},e))}var Iv=function(e){return D.initializeResourceCenter(e)};const _v=()=>{var e=_.filter(y(),e=>_.isFunction(e.outsideTimebox)&&e.outsideTimebox());Bu.addGuide(e)};function Cv(e){return vv=vv||Ev(_.extend({cache:om,apiKey(){return E.apiKey},beacon:"guide",allowPost:!0,preferFetch:et.safari},e)),yv=yv||Ev(_.extend({cache:[],apiKey(){return E.apiKey},beacon:"poll",allowPost:!0,preferFetch:et.safari},e)),sd(vv),sd(yv),()=>{vv.clear(),yv.clear(),dd(vv),dd(yv)}}function Tv(e){var e=e["blockedURI"];e&&-1!==e.indexOf("/data/guide.json")&&C.get("cacheGuides")&&((e=C.getLocalConfig()).cacheGuides=!1,C.setLocalConfig(e),vo(window,"securitypolicyviolation",Tv),Wv())}let xv;var Rv=function(e){const t=[];t.push(Cv({localStorageUnload:C.get("analytics.localStorageUnload")})),xv=new Rg(E.apiKey,C),Kf.run(),t.push(Kf.stop),R.appUnloaded.on(function(){A.dispatch("frames/leave")}),R.metadata.on(function(e){e=e.data[0].storeChanged;e&&!Pp()&&jv()}),R.identify.on(function(){E.doNotProcess&&(delete E.doNotProcess,Aa(),cg(),A.commit("debugger/doNotProcess",!1),T.info("cleared do not process flag")),jv()}),R.urlChanged.on(function(){jv(L.get())}),R.guideUpdateComplete.on(function(){var e,t,n;_v(),qc.processPrefetch(),e=y(),t=Lu,C.get("disablePrefetch")||(t=_.keys(t)).length&&(n=_.indexBy(e,"id"),_.each(t,function(e){var e=n[e];e&&(e=_.first(e.steps))&&_.isFunction(e.fetchContent)&&e.fetchContent(!0)}))}),R.guidesLoaded.on(function(){D.fetchAnnouncementGuidesContent(y(),A)}),R.guideListChanged.on(function(e){e=e.data[0].guideIds;if(e&&e.length){const n=_.indexBy(e);_.each(Lu,function(e,t){!n[t]&&e&&(e.hide(),delete Lu[t])})}}),R["consent:changed"].on(function(e){e=e.data[0].guides;_.isUndefined(e)||(e?(Ov(!1),Wv):(Nv(),Mv))()}),on("guides")||(Nv(),Mv()),t.push(function(e,t,n){var{Turbolinks:i,Turbo:r}=window;let o;if(i&&(o=i.EVENTS&&i.EVENTS.LOAD),!(o=r&&r.visit?"turbo:load":o))return()=>{};const a=mo(e,o,t),s=mo(e,"turbo:before-cache",n);return()=>{a(),s()}}(document,function(){L.get()===zv.lastUrl&&Wv()},function(){Ym()}));var n,i=C.get("guides.tooltip.arrowSize");return _.isNumber(i)&&(E.TOOLTIP_ARROW_SIZE=i),t.push(Kn.tabIdChanged(function(){var e=Kn.getTabId();A.commit("frames/setTabId",e),A.dispatch("frames/join")})),A.dispatch("frames/init"),A.dispatch("frames/join"),t.push(function(){const e=[];return A.dispatch("guideState/init"),e.push(mo(window,"focus",Kh)),e.push(mo(window,"storage",function(e){A.dispatch("guideState/storageChanged",e)})),()=>_.each(e,function(e){e()})}()),t.push(()=>{Uv.cancel(),rg.cancel()}),t.push(mo(window,"resize",Uv)),t.push(mo(window,"scroll",rg,!0)),t.push(mo(window,"gestureend",Gv,!0)),t.push(mo(window,"securitypolicyviolation",Tv)),t.push(Bv()),e.observing&&(A.commit("guideUpdate/setObserver",e),A.commit("guideUpdate/setUseObserver"),t.push(()=>A.dispatch("guideUpdate/stopObserver"))),x.registry.addLocal(zh.ADVANCED),x.registry.addLocal(zh.DISMISSED),x.registry.addLocal(zh.SNOOZED),x.registry.addLocal(Cg,{duration:144e5,localStorageOnly:!0}),$c.initialize(),n=$c,_.each([kg,Mg,$g,Lg,Pg,Qg,nm,im],e=>{n.addGlobalScript(e)}),()=>{xv=null,zv.reset(),Ym(),jv.reset(),sv.reqId=null,_.each(t,function(e){e()}),gv(pv),gv(hv),$c.teardown()}},Av=function(){return C.get("guides.disabled",!1)||!va},kv=function(){return C.get("guides.delay",!1)},Ov=function(e){var t=C.getLocalConfig();t.disableGuides=e,C.setLocalConfig(t)};function Nv(){Ov(!0),Ym()}function Mv(){_.each(zh,function(e){x.clear(e)})}var Lv=function(e){var t=C.getLocalConfig();delete t.delayGuides,t.guides&&delete t.guides.delay,t.delayGuides=e,C.setLocalConfig(t)},Pv=xu(function(e){if(e&&e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n].featureRule,r=_.map(e[n].eventProperties,function(e){return e.selector?e:JSON&&JSON.parse&&e.rule?JSON.parse(e.rule):void 0});t.push({featureRules:i,eventPropertyRules:r,featureId:e[n].featureId})}return t}}),Dv=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},Fv=function(){T.debug("adjustActiveGuideOnResize firing");var e=qv();e&&e.step&&!E.ignoreResize&&!function(e){var t=document.activeElement;if(!t||t.tagName!=="TEXTAREA"&&t.tagName!=="INPUT")return false;var n=e.guideElement&&e.guideElement[0];return!!n&&n.contains(t)}(e.step)&&e.step.redraw()};const Uv=_.debounce(function(){var e;-1<_.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=Dv())||e.id.indexOf("pendo-video-")<0)&&Ut(function(){Fv()},150):Fv(),rg()},50),Gv=function(e){1!==e.scale&&Uv()};var Bv=function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];const t=[];for(var n=0;n<e.length;n++)t.push(mo(document,e[n],Hv));return()=>{_.each(t,function(e){e()})}},Hv=function(e){var t=_.get(document,"activeElement.id",""),e=_.get(e,"target.id","");_.filter([t,e],e=>-1<e.indexOf("pendo-video-")).length&&(Dv()?E.ignoreResize=!0:Ut(function(){E.ignoreResize=!1},1e3))};function zv(e){var t,n,i,r,o=v(),a=Ai();e=e||L.get(),n=o,i=a,r=dp,!(t=e)||!E.apiKey||Av()&&"true"!==rm.getItem("pendo-designer-mode")||t===zv.lastUrl&&n===zv.lastVisitorId&&i===zv.lastAccountId&&r===zv.lastMetadataHash||(zv.lastUrl=e,zv.lastVisitorId=o,zv.lastAccountId=a,zv.lastMetadataHash=dp,sv(E.apiKey,o,e)["catch"](_.noop))}zv.reset=function(){_.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){zv[e]=null})};var jv=function(e){va&&(jv.reset(),jv.pending=Ut(function(){delete jv.pending,zv(e)},0))};function Wv(){zv.lastUrl=null,jv()}function qv(e){var t,n,e=_.find(y(e),function(e){return e.isShown()});return!e||_.get(e,"attributes.resourceCenter.isModule")&&!(e=D.getResourceCenter())?null:(t=_.find(e.steps,function(e,t){return n=t,e.isShown()}),{guide:e,steps:_.filter(e.steps,function(e,t){return e.isShown()}),step:t,stepIndex:n})}jv.reset=function(){jv.pending&&Gt(jv.pending)};var Vv="pendo-live-preview-relay",Kv="live-preview.html",$v="pendo-live-preview::config",Jv="pendo-live-preview::ready",Yv="pendo-live-preview::update",Xv="pendo-live-preview::end",Zv="pendo-live-preview::ended",Qv=null;function ey(e,t){return"*"!==t.origin&&e.origin===t.origin&&e.source===t.frame.contentWindow&&e.data}function ty(e){window.removeEventListener("message",e.listener,!1),M(e.frame).remove()}function ny(e){var t,n,i,r,o=_.get(A.state,"preview.designerPreview.guide"),a=e.guide,s=_.get(A.state,"preview.preview.state")||$h(),d=(o=o,a=a,!(d=s)||!a||(t=a.steps||[],a=a.id,!t.length)||d.guideId!==a||"active"!==d.state&&"advanced"!==d.state||(n=(n="advanced"===d.state&&d.destinationStepId)||d.guideStepId,i=_.some(t,{id:d.guideStepId}),r=_.some(t,{id:n}),i&&r)?d:{guideId:a,guideStepId:r?n:(i=o&&o.id===a&&o.steps||[],r=_.findIndex(i,{id:n}),t[Math.min(Math.max(r,0),t.length-1)].id),state:"active"});A.commit("preview/setDesignerPreview",e),d!==s&&(d.time=S(),jh(d),A.dispatch("preview/update",d)),Wv()}function iy(e,n){var t,i,r,o;function a(e){var t;ey(e,o)&&(e.data.type===Jv?(t=o).frame.contentWindow&&t.frame.contentWindow.postMessage({type:$v,livePreview:t.payload},t.origin):e.data.type===Zv?(ty(o),Qv=null,n&&n()):e.data.type===Yv&&ny(e.data.payload))}e&&!Qv&&(t=(ut||at)+"/in-app-designer/latest/"+Kv,i=-1===t.indexOf("?")?"?":"&",t=t+i+"parentOrigin="+Ht(window.location.origin),i=t,(r=document.createElement("iframe")).id=Vv,r.setAttribute("aria-hidden","true"),r.setAttribute("sandbox","allow-scripts allow-same-origin allow-storage-access-by-user-activation"),r.style.display="none",r.src=i,o={frame:i=r,origin:function(e){try{return new Li(e).origin}catch(t){return"*"}}(t),payload:e,listener:a},Qv=o,window.addEventListener("message",a,!1),Va().appendChild(i))}function ry(e){var t,n,i,r=Qv;function o(){Gt(i),window.removeEventListener("message",a,!1),n()}function a(e){!ey(e,t)||"pendo-live-preview::end-ack"!==e.data.type&&e.data.type!==Zv||o()}Qv=null,r?r.frame.contentWindow?(window.removeEventListener("message",r.listener,!1),t=r,n=function(){M(r.frame).remove(),e&&e()},i=Ut(o,2e3),window.addEventListener("message",a,!1),r.frame.contentWindow.postMessage({type:Xv},r.origin)):(ty(r),e&&e()):e&&e()}function oy(){return!0===C.get("enforceAllowedOriginServers")}var ay="frames/removeFrame";function sy(e,t,n){return new dy(e,t,n,(e=t,t=n,new(_.isFunction(e.MessageChannel)?uy:cy)(e,t)))}function dy(e,t,n,i){this.init(e,t,n,i)}_.extend(dy.prototype,{init(e,t,n,i){this._store=e,this._window=t,this._singletonMessageHandler=n,this._listeners=[],this._targetOrigin=n.targetOrigin(),this._impl=i,this._impl.onconnect=_.bind(this._frameConnectHandler,this),this._impl.onmessage=_.bind(this._fireMessageListeners,this),this._impl.onrelay=_.bind(this._topMessageHandler,this),this._connectToTop(10,0,function(){this._addControlMessageHandler(),this._connectToTop(250,21,function(){this.close(),this._store.commit("frames/setConnectFailed")})})},_fireMessageListeners(t){_.each(this._listeners,function(e){e(t)})},_controlMessageHandler(e){e=this._impl._parseMessage(e);if(e.data){if("pendo::connect"===e.data.action){if(!function(e,t){try{return function(e,t){if(e){if(e===t||e.top===t)return 1;for(var n=[t];n.length;)for(var i=n.shift().frames,r=i?i.length:0,o=0;o<r;o++){if(i[o]===e)return 1;n.push(i[o])}}return}(e.source,t)}catch(n){}}(e,this._window))return;if(oy()&&!Is(e.origin))return;this._impl.frameConnect(e)}e.data.action===ay&&this._topMessageHandler(e)}},_topMessageHandler(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===ay&&this._impl.frameDisconnect(e),this._impl.broadcast(e))},_connectToTop(e,t,n){var i=oy(),r=i?function(e){try{var t,n;return e===e.top?ws(e.location):(t=e.location.ancestorOrigins)&&t.length&&(n=t[t.length-1])&&"null"!==n?n:null}catch(i){return null}}(this._window):null;!i||r&&Is(r)?this._impl.connectToTop({action:"pendo::connect",frameId:this._store.state.frames.frameId},r||this._targetOrigin):T.warn("cross-frame connect refused: top origin is not allowed",{topOrigin:r||"unknown"}),Ut(_.bind(function(){this._connected||(0===t?_.isFunction(n)&&n.call(this):0<t&&this._connectToTop(Math.min(2*e,1e4),t-1,n))},this),e)},_addControlMessageHandler(){this._singletonMessageHandler.addEventListener(_.bind(this._controlMessageHandler,this))},_frameConnectHandler(e){e.data&&"pendo::connectSuccess"===e.data.action&&(this._connected=!0,this._impl.connectSuccess(e),this._store.dispatch("frames/join"))},addEventListener(e,t){"message"===e&&this._listeners.push(t)},postMessage(e){this._closed||this._impl.postMessage(e)},close(){this._closed=!0,this._listeners.length=0,this._impl.close()}});or={_frameConnectHandler(e){_.isFunction(this.onconnect)&&this.onconnect(this._parseMessage(e))},_messageReceived(e){_.isFunction(this.onmessage)&&this.onmessage(this._parseMessage(e))},_relayMessage(e){_.isFunction(this.onrelay)&&this.onrelay(this._parseMessage(e))},_parseMessage(e){var t;return _.isString(e.data)?((t=_.pick(e,"type","origin","source","ports","lastEventId","target")).data=function(e){if(!_.isString(e))return e;try{return JSON.parse(e)}catch(t){return e}}(e.data),t):e}};function uy(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function cy(e,t){this._window=e,this._frames={},this._isTop=e==e.top,this._singletonMessageHandler=t,this._boundMessageReceived=_.bind(this._messageReceived,this),this._isTop||(this._boundFrameConnectHandler=_.bind(this._frameConnectHandler,this),t.addEventListener(this._boundFrameConnectHandler))}_.extend(uy.prototype,or,{connectToTop(e,t){this._closeChannel(),this._openChannel();var n=[];this._channel.port2&&n.push(this._channel.port2),this._window.top.postMessage(e,t,n)},frameConnect(e){var t,n=e.ports[0];(t=n)&&_.all(["addEventListener","start"],function(e){return _.isFunction(t[e])})&&((this._ports[e.data.frameId]=n).addEventListener("message",_.bind(this._relayMessage,this)),n.start(),n.postMessage({action:"pendo::connectSuccess"}),n.postMessage({action:"frames/receiveFrame",frame:A.state.frames.frames[A.state.frames.frameId],"pendo-preview":A.state.preview.preview}))},frameDisconnect(e){delete this._ports[e.data.frameId]},connectSuccess(){this._port.removeEventListener("message",this._boundFrameConnectHandler),this._port.addEventListener("message",_.bind(this._messageReceived,this))},broadcast(t){_.each(this._ports,function(e){t.target!==e&&e.postMessage(t.data)})},postMessage(e){this._port&&this._port.postMessage(e),e.action===ay&&this._window.top.postMessage(e,this._targetOrigin)},close(){_.each(this._ports,function(e){e.close()}),this._ports={},this._closeChannel()},_openChannel(){this._channel=new this._window.MessageChannel,this._port=this._channel.port1,this._boundFrameConnectHandler=_.bind(this._frameConnectHandler,this),this._port.addEventListener("message",this._boundFrameConnectHandler),this._port.start()},_closeChannel(){this._port&&_.isFunction(this._port.close)&&(this._port.close(),this._port=null,this._channel=null)}}),_.extend(cy.prototype,or,{connectToTop(e,t){this._isTop||this._window.top.postMessage(JSON.stringify(e),t)},frameConnect(e){this._frames[e.data.frameId]=e.source,this._relayHandlerAdded||(this._relayHandlerAdded=!0,this._boundRelayMessage=_.bind(this._relayMessage,this),this._singletonMessageHandler.addEventListener(this._boundRelayMessage)),e.source.postMessage(JSON.stringify({action:"pendo::connectSuccess"}))},frameDisconnect(e){delete this._frames[e.data.frameId]},connectSuccess(){this._singletonMessageHandler.removeEventListener(this._boundFrameConnectHandler),this._singletonMessageHandler.addEventListener(this._boundMessageReceived)},broadcast(t){var n=this._singletonMessageHandler.targetOrigin();_.each(this._frames,function(e){t.source!=e&&e.postMessage(JSON.stringify(t.data),n)}),t.source!=this._window&&this._messageReceived(t)},postMessage(e){this._isTop?this._relayMessage({data:e,source:this._window}):this._window.top.postMessage(JSON.stringify(e),this._singletonMessageHandler.targetOrigin())},close(){var e=this._singletonMessageHandler;e.removeEventListener(this._boundFrameConnectHandler),e.removeEventListener(this._boundMessageReceived),e.removeEventListener(this._boundRelayMessage)}});ly=window,py=Is,fy=!(hy=[]);var ly,py,hy,fy,gy={targetOrigin(){return fy?Ss(ly):"*"},secure(e){fy=e},addEventListener(e){0===hy.length&&ly.addEventListener("message",my),hy.push(e)},removeEventListener(e){e=hy.indexOf(e);0<=e&&hy.splice(e,1),0===hy.length&&ly.removeEventListener("message",my)},close(){ly.removeEventListener("message",my),hy.length=0}};function my(t){fy&&!py(t.origin)||_.each(hy,function(e){_.isFunction(e)&&e(t)})}function vy(n,i){var r=!1;const o=[];return n.addEventListener("message",function(e){d(e.data)}),{postMessage:a,postMessageAsPromise:s,postMessageOrTimeout:function(e,t=1e4){const n=m.defer(),i=Tt(32),r=(e=_.extend(e,{promiseId:i}),Ut(()=>{o[i]&&(n.reject(JSON.stringify({message:"request timed out"})),delete o[i])},t));return s(e).then(e=>{Gt(r),n.resolve(e)}),n.promise},close:function(){r=!0,_.isFunction(n.close)&&n.close()}};function a(e){var t;r||(t=_.extend({apiKey:E.apiKey,allowMixedApiKeyFrames:C.get("allowMixedApiKeyFrames"),agentInstallType:Ae()},e),n.postMessage(t),Ut(function(){d(t)},0))}function s(e){e.promiseId||(t=Tt(32),e=_.extend(e,{promiseId:t}));var t=m.defer();return o[e.promiseId]=t,a(_.extend(e,{sourceFrame:i.state.frames.frameId})),t.promise}function d(e){try{var t;r||e.apiKey!==E.apiKey&&(!1===e.allowMixedApiKeyFrames||!1===C.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){T.critical("ERROR in cross frame channel",{error:n})}}}function yy(e){if(!et.addEventListener)return{addEventListener:_.noop,postMessage:_.noop,close:_.noop};var t=!!window.__pendoExtensions;if(C.get("preferBroadcastChannel")&&!t&&_.isFunction(window.BroadcastChannel)){e.commit("frames/setChannelType","BroadcastChannel");t=function(e,o){const a=[];return e.removeEventListener=_.wrap(e.removeEventListener,function(e,t,n){var i,r=_.toArray(arguments).slice(1);return"message"===t&&0<=(i=_.findIndex(a,e=>e[0]===n))&&(r[1]=a[i][1],a.splice(i,1)),e.apply(this,r)}),e.addEventListener=_.wrap(e.addEventListener,function(e,t,n){var i,r=_.toArray(arguments).slice(1);return"message"===t&&(r[1]=i=function(e){if(e.data.tabId===o.getTabId())return n.apply(this,arguments)},a.push([n,i])),e.apply(this,r)}),e.postMessage=_.wrap(e.postMessage,function(e,t){return t.tabId=o.getTabId(),e.apply(this,_.toArray(arguments).slice(1))}),e}(new BroadcastChannel("pendo"),Kn);if(t&&_.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),sy(e,window,gy)}var U={postMessage:_.noop,close:_.noop};let by=U;const wy=x.getLocal();var G,Sy,Ey="pendo-live-preview",Iy="pendo-preview",_y="current-guide-preview";function Cy(e){return A.dispatch("preview/load"),Ty(e)}function Ty(t){var e=Wy();if(e)return Ry(t),A.dispatch("preview/start",_.extend(e)),e.livePreview&&iy(e.livePreview,function(){Hy({preventWindowClose:!1})}),x.clear(Hh),Sn(!1),od.lock(),tv=Jy,Ny()&&((e=ie).allowedOriginServers=[],e.allowedOriginServerHashes=[]),R.startPreview.trigger(),R.leaderChanged.on(function(e){A.dispatch("preview/write"),e.oldLeaderId||Wv(),A.getters["frames/isLeader"]()||(M(G).remove(),G=null,t.removeEventListener("message",ky))}),Sg(xy),!0}function xy(){if(!A.getters["frames/isFollower"]()){var e,t,n,i,r,o,a,s,d=document,u=y(),c=$h();if(Oy()&&(e=Wy())&&G&&G.contentWindow)if(u&&u.length){if(Sy=null,G.contentWindow.postMessage({mutation:"preview/setGuideLoaded",payload:{guideLoaded:!0}},location.origin),t=Vy(e),(n=_.find(u,function(e){return e.id===t}))||!e.livePreview){i=0,r=n.steps.length,o=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=_.indexOf(n.steps,_.find(n.steps,function(e){return e.id===o.destinationStepId})):"advanced"===o.state&&t===r-1&&(i=r),!0)}),u="dismissed"===o.state,c=r-1<=i,u=u||c,c=c?r-1:i,a=n.steps[c],s=a.isShown(),G.contentWindow.postMessage({mutation:"preview/setHostname",payload:{hostname:at}},location.origin),(f=By(e))&&G.contentWindow.postMessage({mutation:"preview/setWhiteLabelSettings",payload:{whiteLabelSettings:f}},location.origin),G.contentWindow.postMessage({mutation:"preview/setGuidePages",payload:{guidePages:n.previewPages}},location.origin),G.contentWindow.postMessage({mutation:"preview/setGuideProgress",payload:{guideName:n.name,guideAttributes:JSON.stringify(n.attributes),guideLaunchMethod:n.launchMethod,guideActivationSelector:ic(n),isAdoptGuide:n.isTraining,isResourceCenter:e.isResourceCenter,stepId:a&&a.id,currentStepIndex:c,stepCount:r,elementPathRule:a.elementPathRule,elementContainsRulesList:a.elementContainsRulesList,triggerElementPathRule:a.triggerElementPathRule,isShown:s,pageId:a.pageId,completed:u,languageOptions:_.get(e,"languageOptions",[]),currentLanguage:e.language}},location.origin);var l=a,p=c,h=G;if(l&&h&&h.contentWindow){const g=l.getGuide().id;var f=_.filter(A.state.frames.frames,e=>"hidden"!==e.visibility&&e.guides&&e.guides[g]);if(f.length)f=_.map(f,e=>U.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:e.id,stepId:l.id,guideId:g,currentStepIndex:p})),m.all(f).then(t=>{let n={},i=-1;for(let e=0;e<t.length;e++){var r=JSON.parse(t[e]).errors;if(!r.GUIDE){var o=_.keys(r).length;if(!o){n={};break}-1===i?(n=r,i=o):l.regexUrlRule?!r.PAGE&&o<=i&&(n=r,i=o):o<i&&(n=r,i=o)}}h.contentWindow.postMessage({mutation:"preview/setErrors",payload:{errors:n}},location.origin)})["catch"](_.noop)}}}else Gy(0,{status:404,data:"Guide not found"})}return!0}function Ry(e){if(A.getters["frames/leaderExists"]()){if(!A.getters["frames/isFollower"]()){if(G)return!0;var t,n;_.isFunction(e.addEventListener)&&e.addEventListener("message",ky),(t=document.createElement("iframe")).id=Iy,Ga(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(C.get("inlineStyleNonce")){const n=t.contentDocument.createElement.bind(t.contentDocument);t.contentDocument.createElement=(e,...t)=>{t=n(e,...t);return"style"===e&&(e=C.get("inlineStyleNonce"))&&t.setAttribute("nonce",e),t}}var e=document.createElement("script");e.src=C.get("previewModeAssetPath")||Zo("pendo.preview.min.js"),e.onload=function(){var e=By(Wy());e&&t.contentWindow&&t.contentWindow.postMessage({mutation:"preview/setWhiteLabelSettings",payload:{whiteLabelSettings:e}},location.origin),Sy&&t.contentWindow&&Uy(Sy)},t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},G=t,Va().appendChild(G)}}else R.one("leaderChanged",_.partial(Ry,e))}function Ay(e,t,n){fm(),A.commit("healthCheck/resetStepStatus",null,{root:!0}),qc.reset(),Wv();var i=e[0],i=(i&&_.each(i.steps,function(e){e.seenState=null}),x.clear(Hh),A.dispatch("preview/update",null),Wy());return i&&(i=_.findWhere(e,{id:Vy(i)}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),A.dispatch("preview/restart",i)),Fy(e,t)}function ky(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===Iy+"::exit"?(Hy({preventWindowClose:n}),A.dispatch("frames/stopPreview",{preventWindowClose:n})):t===Iy+"::restart"?(n=Ay(y(),$h(),e.data.language),A.dispatch("guideState/forceExpire"),A.dispatch("guideState/updateLastGuideStepSeen",n),A.dispatch("frames/restartPreview")):t===Iy+"::resize"?(n=e.data.height,G&&G.style&&(G.style.height=n)):t===Iy+"::request-preview-mode-type"&&(e=qy(),G)&&G.contentWindow&&e&&G.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:e.previewModeType||"NEW_TAB"}},location.origin))}function Oy(){return A.getters["preview/isInPreviewMode"]()}function Ny(){return A.getters["preview/isInDesignerPreviewMode"]()}function My(){var e=qy();return e&&Ny()?(_.each(e.guide.steps,function(t){let e=["domJsonpUrl","domUrl"];t.domUrl&&0===t.domUrl.indexOf("data:")&&(e=["domJson","contentJs","contentCss","content"]),_.each(e,function(e){delete t[e]})}),e.guide.showsAfter=null,e.guide.expiresAfter=null,[e.guide]):[]}function Ly(e){var t,n,i=Wy();if(!i)return e;if(i.isResourceCenter)return r=e,t=i,n=D.findResourceCenterHomeView(r),r=_.filter(r,function(e){return e.id!==n.id}),Dy(n,t.stepId),t=_.map(r,function(e){return e.launchMethod="launcher",e}),[n].concat(t);{var r=e,o=i;let t;return _.each(r,function(e){e.id===o.guideId?t=e:((e=e).launchMethod="api",(e=e.steps[0])&&(e.seenState="advanced"))}),Py(t),t.showsAfter=null,t.expiresAfter=null,Dy(t,o.stepId),r}}function Py(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function Dy(e,t){for(var n=_.find(e.steps,function(e){return e.id===t}),i=n?e.steps.indexOf(n):0,r=0;r<e.steps.length;r++)r<i?(e.steps[r].seenState="advanced",e.steps[r].seenReason="continue"):(e.steps[r].seenState=null,e.steps[r].seenReason=null)}function Fy(e,t){null==t&&(t={});var n=Wy();if(!n)return t;var i=Vy(n),e=_.findWhere(e,{id:i});if(!e)return t;if(n.state)return n.state;Py(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:i,guideStepId:n.stepId,state:"active"}:{}}function Uy(e){G.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:e}},location.origin)}function Gy(e,t){Sy=t,G&&G.contentWindow&&Uy(t)}function By(e){var t=C.get("whiteLabelSettings");return t=!t&&e&&"novus"===e.ux?{logoUrl:"https://novus.pendo.io/branding/novus-vector-white.svg",logoStyle:{maxWidth:"40px",maxHeight:"40px"}}:t}function Hy(i){var r=qy(),o=!1,a=(r&&(o="SAME_TAB"===r.previewModeType),wy.getItem("pendo-navigation-state"));function e(){if(o&&a){wy.setItem(_y,JSON.stringify(_.extend(r,{isExitBackToDesigner:!0})));try{var e=JSON.parse(a),t={target:e.baseUrl,gcsBucket:e.gcsBucket,preloader:!0,DADesigner:e.isDADesigner,host:e.host,forceNativeDesigner:"web"===r.guide.appPlatform};A.dispatch("preview/launchInAppDesigner",t)}catch(n){A.dispatch("preview/exitDesignerPreview")}}else i&&!i.preventWindowClose&&window.close(),Wv()}A.dispatch("preview/exit"),fm({stayHidden:!0}),x.clear(Hh),od.unlock(),M(G).remove(),tv=yc,Eg(xy),Sn(!0),Qv?ry(e):e()}function zy(e,t){e=_.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function jy(){return A}var Wy=_.partial(zy,jy,"state.preview.preview"),qy=_.partial(zy,jy,"state.preview.designerPreview");function Vy(e){return e.guideId||(e.livePreview?_.get(qy(),"guide.id"):void 0)}function Ky(e){var t;if(e.subscriptionId&&e.guideId)return t=e.isResourceCenter&&!e.isWatermark?"/resourcecenter/":"/guide/","/api/s/"+Ht(e.subscriptionId)+t+Ht(e.guideId)+"/preview"}var $y=function(e){var t;return e.isWatermark=!0,Is(e.origin)?(t=Ky(e))?(t={url:e.origin+t+"?url="+Ht(L.externalizeURL())+"&apiKey="+E.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),wo(t).then(function(e){return e.data.guide})):(T.info("Invalid guide url, exiting preview"),m.reject("invalid guide url")):(T.info("Invalid origin, exiting preview"),m.reject("invalid origin"))},Jy={load(e,t,n){return Xy(e,n)},post(e,t,n,i){return Xy(e,i)},endpoint(){return""},usesXhr(){return!0}};function Yy(r,t){if(!Is(r.origin))return T.info("Invalid origin, exiting preview"),m.reject("invalid origin");var e;if(r.livePreview)return o=qy(),e=My(),o&&e.length&&e[0].steps.length?(Py(n=e[0]),Dy(n,r.stepId),E.guideWidget={enabled:!1,data:{guideCssUrl:o.guideCssUrl}},E.guideCssUrl=o.guideCssUrl,E.throttling=undefined,E.guidesPayload({id:t,lastGuideStepSeen:Fy(e,E.lastGuideStepSeen),guides:e})):E.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),m.resolve();var n=Ky(r);if(!n)return T.info("Invalid guide url, exiting preview"),m.reject("invalid guide url");if(!A.getters["frames/leaderExists"]()||r.apiKey!==E.apiKey)return E.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),m.resolve();let i=""+r.origin+n+`?url=${Ht(L.externalizeURL())}&apiKey=`+E.apiKey;r.childGuides&&r.childGuides.length&&(i+="&childGuides="+r.childGuides.toString()),Ny()&&(i+="&ignoreGuide=true");var o={url:i,withCredentials:!0},a=(r.headers&&(o.headers=r.headers),[]);return wo(o).then(function(e){var t,c,e=e.data;return Ny()?(a=My(),e.guide=a[0]):a=r.isResourceCenter?e.guide:(e.guide.previewPages=e.pages,[e.guide]),e.children&&(a=a.concat(e.children)),r.language&&r.language!==_.get(a,"[0].authoredLanguage")&&(t=a,c=r.language.value,_.forEach(t,function(u){_.forEach(u.steps,function(e){var{domHash:t,domJsonpHash:n,translationHash:i,originalDomJsonHash:r,originalDomJsonpHash:o,originalBuildingBlockHash:a,domHash256:s,domJsonpHash256:d}=_.get(u,"translationStates."+c+".stepTranslations."+e.id,{});e.domUrl=Zy(r,e.domUrl,".dom.json",s),e.domJsonpUrl=Zy(o,e.domJsonpUrl,".dom.jsonp",d),e.buildingBlocksUrl=Zy(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"))})})),r.watermarkConfig&&(e.guide.isTraining=!0),E.guideWidget={enabled:!1,data:{guideCssUrl:e.guideCssUrl}},E.guideCssUrl=e.guideCssUrl,E.normalizedUrl=e.normalizedUrl,E.throttling=undefined,e.guide}).then(function(e){var t;return r.watermarkConfig?(t=JSON.parse(JSON.stringify(r)),t=Object.assign(t,r.watermarkConfig),$y(t)):e}).then(function(e){e&&e.attributes&&e.attributes.isWatermark&&a.push(e),E.guidesPayload({id:t,lastGuideStepSeen:Fy(a,E.lastGuideStepSeen),guides:Ly(a)})})["catch"](function(e){Gy(document,e);var t=r,n=e;if(n&&401===n.status&&window.opener&&window.opener!==window)try{window.opener.postMessage({type:Iy+"::auth-failed",status:n.status},t.origin)}catch(i){T.info("Unable to notify preview opener of auth failure")}return m.reject(e)})}function Xy(e,t){var n=Wy();return n?(e=/[?&]id=(\d+)/.exec(e),n.livePreview?Yy(n,e&&e[1]).then(t):!Ky(n)||!e||e.length<1?m.reject():Yy(n,e[1]).then(t)):m.reject()}function Zy(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 Qy=function(){let n=null,i=[];const r=e=>{E.apiKey=E.publicAppId=e+="",n=e};return{getApiKey(){return E.apiKey},discoverKeys({apiKey:e,additionalApiKeys:t=[]}){n=null,i=[],e=e,(e=C.get("publicAppId",e))&&r(e),n,e=t,e=C.get("additionalPublicAppIds")||C.get("additionalApiKeys",e),i=_.reduce(e,(e,t)=>(t&&e.push(t+""),e),[]),i=[].concat(e),E.additionalApiKeys=E.additionalPublicAppIds=i,!n&&i&&i.length&&r(i[0])},getAdditionalApiKeys(){return E.additionalApiKeys},tamperedWith(){return E.apiKey!==n||E.additionalApiKeys!==i},clearInstalledKeys(){n=null,i=[],delete E.apiKey,delete E.publicAppId,delete E.additionalApiKeys,delete E.additionalPublicAppIds}}}(),eb=x.getLocal(),tb=x.getSession(),nb="pendo-designer-launch-receipt";ib=ut||at,rb="in-app-designer",ob="latest",x.registry.addSession(nb),R.leaderChanged.on(function(){sb({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||Ny()})});var ib,rb,ob,ab={launchDesigner:function(e){var t,n="latest",i="designer";Zc(C,"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%;}"),gb("designer-shims",ib+"/"+i+"/"+n+"/plugin.js"),E.DESIGNER_VERSION?hb(n,i):t=window.setInterval(function(){E.DESIGNER_VERSION&&(hb(n,i),clearInterval(t))},100)},launchInAppDesigner:function(e){if(!mb(window.name)&&!E.designerLaunched)if(C.get("disableDesigner"))T.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){}ab.crossFrameChannel===undefined&&(ab.crossFrameChannel=U,ab.useCrossFrameChannel=!0),Vs()&&a&&!e.allowChildFrame&&!e.selectionOnly?T.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):E.isReady()?(E.designerLaunchTime=(new Date).getTime(),function(e){e&&tb.setItem(nb,e)}((e=e||{}).designerId),a=ub(e),r=cb(e),o=pb(e),i=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+r+"/"+o+"/"+i,C.get("useAssetHostForDesigner")&&(n=Zo(i)),ab.hostConfig={gcsBucket:r,baseFolder:o,uniqueWindowId:e.uniqueWindowId,host:a,adoptv2:e.adoptv2,DADesigner:e.DADesigner,agentInstallType:Ae(),forceNativeDesigner:!!e.forceNativeDesigner,sidebarDesigner:!!e.sidebarDesigner,apiKey:Qy.getApiKey()},i={},e.selectionOnly&&(i["selection-only"]=!0),C.get("pendoGlobalKey")&&(i["data-pendo-global-key"]=C.get("pendoGlobalKey")),r=C.get("designerAgentPluginsLoader"),o=window.__pendoExtensions&&e.forceNativeDesigner,a=!window.__pendoExtensions&&!_.isFunction(r),(o||a)&&(ab.addScriptToPage(t,n,i),E.designerLaunched=!0),!e.forceNativeDesigner&&_.isFunction(r)&&(r(t,n,i),E.designerLaunched=!0)):T.error("Unable to launch the designer, the agent has not been initialized. Please use `pendo.initialize` prior to launching the designer")}},localStorageNavigation:sb,launchOnToken:function(e){if(!mb(window.name)){var t=/pendo-designer=([A-Za-z0-9-]+)/;if(t.test(e)){e=t.exec(e);if(e){var n,t=function(e){try{return JSON.parse(atob(Ft(e)))||{}}catch(t){return{}}}(e[1]);if(!function(t){return t&&_.any(Es,function(e){return e.test(t)})}(window.location.origin)||function(){if(!window.opener)return;try{return window.opener.location.origin===window.location.origin}catch(e){}}()||function(e){return e&&tb.getItem(nb)===e}(t.designerId))return e=ub(t),n=pb(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),ab.launchInAppDesigner({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,ab.hostConfig.host)},isValidDesignerHost:db,isValidTarget:lb,addCommunicationIframe:function(e,t){e=e||{};_.isFunction(t)||(t=_.noop);var n=pb(e),e=cb(e),i=(new Date).getTime(),r=(ab.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=fb(r,ib+"/"+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:ib},isDesignerFrame:mb,addScriptToPage:gb};function sb(e){if(!e.ignoreLocalStorageNavigation){var t,e=eb.getItem("pendo-navigation-state");if(e&&A.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(n){return}if(!t.apiKey||t.apiKey===Qy.getApiKey())if(t.apiKey||!t.agentInstallType||t.agentInstallType===Ae())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},ab.launchInAppDesigner(e),!0}}}function db(e){return!!e&&Is(e)}function ub(e){var e=(e=e||{}).host||ib,t=db(e),n=t?e:at;return e&&!t&&T.info("Invalid host, falling back to "+at),n}function cb(e){var e=(e=e||{}).gcsBucket||rb,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:rb;return t||T.info("Invalid bucket, falling back to "+rb),e}function lb(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 pb(e){e=e||{};var t=C.get("enableCrossOriginIsolation")?"strict":ob,e=e.target||e.baseFolder||t,t=lb(e),e=t?e:ob;return t||T.info("Invalid target, falling back to "+ob),e}function hb(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+="__"+ab.windowCommunicationId,(t=fb("pendo-designer-iframe",ib+"/"+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 fb(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&Ua(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 gb(e,t,n){var i;document.getElementById(e)||((i=document.createElement("script")).setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=p(E).createScriptURL(t),n&&_.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function mb(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(n){return!1}}vb={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"},yb={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},(bb={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370}).FOOTER_HEIGHT=1.25*bb.HEADER_HEIGHT,bb.BODY_HEIGHT="calc(100% - "+bb.HEADER_HEIGHT+"px - "+bb.FOOTER_HEIGHT+"px)",wb='<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>',(Sb={})["#"+vb.closeButton+":hover"]={"background-color":yb.GRAY_LIGHTER_6},Sb["#"+vb.launchButton+":hover"]={"background-color":yb.TEAL_DARKER+" !important"},Eb={PRIMARY_FONT:"Helvetica Neue"};var vb,yb,bb,wb,Sb,Eb,Ib={listen:function(){return _.isFunction(document.addEventListener)?(document.addEventListener("keyup",_b,!1),()=>{document.removeEventListener("keyup",_b,!1)}):()=>{}},launchOnLocalStorageToken:Nb,ids:vb,removeElement:Ab,attemptToLaunch:xb,loadPluginJs:function(){return R.deliverablesLoaded.on(Rb),()=>{R.deliverablesLoaded.off(Rb)}}};function _b(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&xb(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&xb(!1,!0)}function Cb(e,t){var n,i,r,o={"background-color":yb.WHITE,height:bb.MODAL_HEIGHT+"px","min-height":bb.MODAL_HEIGHT+"px",width:bb.MODAL_WIDTH+"px",position:"fixed",top:bb.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-bb.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=Tb("div",vb.container,o);Zc(C,vb.style,_.reduce(_.pairs(Sb),function(e,t){var n=t[0],t=t[1];return e+n+"{"+_.reduce(_.pairs(t),function(e,t){return e+t[0]+":"+t[1]+";"},"")+"} "},""),o),o.appendChild((t=t,r=Tb("div",vb.header,{"background-color":yb.GRAY_PRIMARY,height:bb.HEADER_HEIGHT+"px","min-height":bb.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(i=Tb("div",vb.logoContainer,{height:"38px",width:"44px","background-color":yb.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=p(E).createHTML(wb),r.appendChild(i),(i=Tb("div",vb.title,{width:"100%",display:"flex","align-items":"center","font-family":Eb.PRIMARY_FONT,"font-size":"18px",color:yb.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=t?"VIA Designer":"Pendo Designer",r.appendChild(i),r)),o.appendChild(((t=Tb("div",vb.body,{height:bb.BODY_HEIGHT,"min-height":bb.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":Eb.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=Tb("div",vb.footer,{"align-items":"center","border-top":"1px solid"+yb.GRAY_LIGHTER_6,display:"flex",height:bb.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":bb.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(r=Tb("button",vb.closeButton,{"border-radius":"3px",border:"none",height:bb.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":Eb.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(){Ab(vb.container),Ab(vb.commIframeId)},(t=Tb("button",vb.launchButton,{"background-color":yb.TEAL_PRIMARY,"border-radius":"3px",color:yb.WHITE,border:"none",height:bb.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":Eb.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(){Nb(n)},i.appendChild(r),i.appendChild(t),i)),document.body.appendChild(o)}function Tb(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),_.extend(e.style,n),e}function xb(t,n){var i,r,o;E.designerLaunched||(o=_.once(function(e){t||!n?Nb(e):Cb(e,t),kb()}),$s(function(e){"pendo-designer-launch-modal"===e.data.destination&&(clearInterval(i),e.data.viaconfirmed?clearInterval(r):e.data.token?(o(e.data.token),e=JSON.parse(e.data.token),_.contains(e.host,"via")&&!e.visitorId&&(r=r||setInterval(function(){document.getElementById(vb.commIframeId)&&Ob()},100))):kb())}),ab.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){Ob(),i=window.setInterval(Ob,50)}))}function Rb(){var t,e=x.getLocal();E.designerEnabled&&"true"!==e.getItem("pendo-designer-mode")&&!E.designerLaunched&&(t=_.once(function(e){Nb(e,!0)}),$s(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}function Ab(e){e=document.getElementById(e);e&&e.remove()}function kb(){var e=document.querySelector("#"+vb.commIframeId+'[src*="pendo"]');e&&e.remove()}function Ob(){var e=document.getElementById(vb.commIframeId);e&&e.contentWindow&&_.isFunction(e.contentWindow.postMessage)&&e.contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:E.visitorId},_.get(E,"designerv2.hostConfig.host",at))}function Nb(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),Ab(vb.container),ab.launchInAppDesigner(n)}function Mb(e,t,s,d){return new(s=s||Dn)(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())})}const Lb="_pendoHeaders";function Pb(e){return A.getters["networkUrl/getTransformedUrl"]()(e)}const Db="headers",Fb={authorization:!0,cookie:!0,"set-cookie":!0,"x-api-key":!0,"x-forwarded-for":!0,"proxy-authorization":!0,signature:!0,forwarded:!0,referrer:!0},Ub=2097152,Gb="[Body too large to capture (over 2 MB)]";class Bb{isDeniedHeader(e){e=e.toLowerCase();return Fb[e]||-1!==e.indexOf("csrf")||-1!==e.indexOf("xsrf")}entriesToObject(e,t){var n,i,r={};for([n,i]of e)t===Db&&this.isDeniedHeader(n)||(r[n]=i);return r}safelySerializeBody(e){if(!e)return undefined;if("string"==typeof e)return e;var t;if(e instanceof FormData)return t=this.entriesToObject(e.entries()),JSON.stringify(t);try{return JSON.stringify(e)}catch(n){return"[unserializable-body]"}}extractHeaders(e={}){let t={};if(e instanceof Headers)t=this.entriesToObject(e.entries(),Db);else if("object"==typeof e)for(const n in e)!e.hasOwnProperty(n)||this.isDeniedHeader(n)||(t[n]=e[n]);return t}extractXHRHeaders(e){return e[Lb]||{}}generateRequestId(){return"req_"+Date.now()+"_"+E.randomString(8)}safelyReadBody(o,a){return Mb(this,void 0,void 0,function*(){try{var e=o.headers.get("content-type")||"unknown",t=o.headers.get("content-length"),n=-1!==e.indexOf("text/")||-1!==e.indexOf("application/json");if(-1!==e.indexOf("text/event-stream"))return"[Event stream content]";if(!n)return`[Binary content: ${e}]`;if(t)if(parseInt(t,10)>Ub)return Gb;var i=o.body&&_.isFunction(o.body.getReader)&&"undefined"!=typeof TextDecoder?yield this.readBodyStream(o.body):yield o.text();return i.length>Ub?Gb:i}catch(r){return`[Unable to read ${a} body]`}})}readBodyStream(o){return Mb(this,void 0,void 0,function*(){var e=o.getReader(),t=new TextDecoder;let n="",i=0,r=yield e.read();for(;!r.done;){if((i+=r.value.byteLength)>Ub)return e.cancel()["catch"](_.noop),Gb;n+=t.decode(r.value,{stream:!0}),r=yield e.read()}return n+t.decode()})}extractConfigHeaders(e){let t={};return e.headers&&(e=Array.from(e.headers.entries()),t=this.entriesToObject(e,Db)),t}parseXHRResponseHeaders(e){const t={};return e&&(e=e.split("\r\n"),_.each(e,e=>{e=e.split(": ");2===e.length&&(t[e[0]]=e[1])})),t}safelyReadRequestBody(e,t){return Mb(this,void 0,void 0,function*(){return e?t?this.safelyReadBody(e,"request"):this.safelySerializeBody(e.body):""})}extractRequestHeaders(e,t){return t?this.extractConfigHeaders(e):this.extractHeaders(e.headers)}patchFetch(){const p=this;p._originalFetch=window.fetch,window.fetch=function(...l){return Mb(this,void 0,void 0,function*(){let[e,t={}]=l;var n=_.isObject(l[0])&&_.isFunction(l[0].clone)&&!(l[0]instanceof Li);n&&(e=l[0].url,t=l[0].clone());const i=Pb(e),r=t.method||"GET",o=p.generateRequestId();try{const u=p.extractRequestHeaders(t,n),c=yield p.safelyReadRequestBody(t,n);_.each(p.callbackFns,({request:e})=>{_.isFunction(e)&&e({requestId:o,method:r,url:i,body:c,headers:u})})}catch(s){_.each(p.callbackFns,({error:e})=>{_.isFunction(e)&&e({context:"fetchRequest",error:s})})}try{var a=yield p._originalFetch.apply(this,l);return p.captureResponse(a,{requestId:o,url:i,method:r}),a}catch(d){throw _.each(p.callbackFns,({response:e})=>{_.isFunction(e)&&e({requestId:o,status:0,statusText:"Network Error",headers:{},body:null,url:i,method:r,error:d.message})}),d}})}}captureResponse(a,{requestId:s,url:d,method:u}){return Mb(this,void 0,void 0,function*(){try{var e=a.clone();const n=yield this.safelyReadBody(e,"response"),{status:i,statusText:r}=a,o=this.extractConfigHeaders(a);_.each(this.callbackFns,({response:e})=>{_.isFunction(e)&&e({requestId:s,status:i,statusText:r,body:n,headers:o,url:d,method:u})})}catch(t){_.each(this.callbackFns,({error:e})=>{_.isFunction(e)&&e({context:"fetchResponse",error:t})})}})}patchXHR(){const u=this;u._originalSetRequestHeader=XMLHttpRequest.prototype.setRequestHeader,u._originalXHROpen=XMLHttpRequest.prototype.open,u._originalXHRSend=XMLHttpRequest.prototype.send,XMLHttpRequest.prototype.setRequestHeader=function(e,t){return this[Lb]=this[Lb]||{},this[Lb][e]=t,u._originalSetRequestHeader.apply(this,arguments)},XMLHttpRequest.prototype.open=function(e,t){t=Pb(t);return this._method=e,this._url=t,this._requestId=u.generateRequestId(),u._originalXHROpen.apply(this,arguments)},XMLHttpRequest.prototype.send=function(e){const a=this,t=u.extractXHRHeaders(this),n=u.safelySerializeBody(e);try{_.each(u.callbackFns,({request:e})=>{_.isFunction(e)&&e({requestId:this._requestId,method:this._method||"GET",url:this._url,body:n,headers:t})})}catch(d){_.each(u.callbackFns,({error:e})=>{_.isFunction(e)&&e({context:"xhrRequest",error:d})})}this.addEventListener&&this.addEventListener("loadend",function(){delete this[Lb]},{once:!0});const s=a.onreadystatechange;return a.onreadystatechange=function(){if(4===a.readyState)try{const t=u.parseXHRResponseHeaders(a.getAllResponseHeaders()),{status:n,statusText:i,_url:r}=a,o=u.safelyReadXHRResponse(a,t);_.each(u.callbackFns,({response:e})=>{_.isFunction(e)&&e({requestId:a._requestId,status:n,statusText:i,headers:t,body:o,url:r,method:a._method||"GET"})})}catch(d){_.each(u.callbackFns,({error:e})=>{_.isFunction(e)&&e({context:"xhrResponse",error:d})})}s&&s.apply(this,arguments)},u._originalXHRSend.apply(this,arguments)}}safelyReadXHRResponse(e,t){return this.estimateResponseSize(t["content-length"],e.responseText)>Ub?Gb:e.responseText}estimateResponseSize(e,t){e=parseInt(e,10);return!_.isNumber(e)||isNaN(e)?t.length:e}patchNetwork(){this._networkPatched||(this._networkPatched=!0,this.patchFetch(),this.patchXHR())}on({request:e,response:t,error:n}={}){return this.callbackFns||(this.callbackFns=[]),(_.isFunction(e)||_.isFunction(t)||_.isFunction(n))&&this.callbackFns.push({request:e,response:t,error:n}),this._networkPatched||this.patchNetwork(),this}off({request:e,response:t,error:n}={}){_.isEmpty(this.callbackFns)&&!this._networkPatched||(_.isFunction(e)||_.isFunction(t)||_.isFunction(n)?this.callbackFns=_.reject(this.callbackFns,{request:e,response:t,error:n}):this.callbackFns=[],_.isEmpty(this.callbackFns)&&(this._originalFetch&&(window.fetch=this._originalFetch,this._originalFetch=null),this._originalXHROpen&&(XMLHttpRequest.prototype.open=this._originalXHROpen,this._originalXHROpen=null),this._originalXHRSend&&(XMLHttpRequest.prototype.send=this._originalXHRSend,this._originalXHRSend=null),this._originalSetRequestHeader&&(XMLHttpRequest.prototype.setRequestHeader=this._originalSetRequestHeader,this._originalSetRequestHeader=null),this._networkPatched=!1))}}e=new Bb;var Hb,zb,jb,Wb,qb=function(){var o=this,a=(this.eventable=Zn.call({}),this.eventable.on("pendoEvent",function(e){try{o.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";T.critical("Error in Action "+e,{error:t})}}),this.eventHandler=function(e){if(!e.ignore&&!E.designer){var t=e.step["guideElement"];switch(e.action){case a.advanceGuide:Em(e,e.step);break;case a.previousStep:Im(e,e.step);break;case a.goToStep:Sm(e);break;case a.submitPoll:this.submitPoll(e);break;case a.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;wm(e,e.step,n);break;case a.dismissGuide:D.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return bm();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return D.dismissResourceCenter(t);bm(e,e.step)}(e);break;case a.showElements:this.setElementDisplay(e,"block"),e.srcElement&&Dg(e.srcElement),np((i=Jc(e.step.domJson)).props.id,t),ip(i.props.id,t),g.flexAllThings(i.props.id,e.step),tp(i.props.id,t);break;case a.hideElements:this.setElementDisplay(e,"none"),np((i=Jc(e.step.domJson)).props.id,t),ip(i.props.id,t),g.flexAllThings(i.props.id,e.step),tp(i.props.id,t);break;case a.slideElement:this.setElementAnimation(e);break;case a.showGuide:n=_.find(e.params,function(e){return"reason"===e.name});Jm(e.params[0].value,n&&n.value);break;case a.launchGuide:this.launchGuide(e);break;case a.renderResourceCenterModule:var i=s(e);D.replaceResourceCenterContent(e.params[0].value,i);break;case a.returnToResourceCenterHome:n=D.findResourceCenterHomeView(Du());if(!n)return;D.attemptToPreserveIntegrationIframes(e),D.replaceResourceCenterContent(n.id,e.params);break;case a.openLink:this.openLink(e);break;case a.searchGuides:this.searchGuides(e);break;case a.submitPollAndGoToStep:this.submitPoll(e),Sm(e);break;case a.confirmation:this.confirmGuide(e);break;case a.conditionalSplit:this.handleConditionalSplit(e)}var r=qb.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=M("[data-pendo-poll-id]",i.guideElement[0]);n=n.concat(_.map(r,function(e){var t,n=M("textarea,input:text,select,input:radio:checked",e);if(n&&n.length&&n[0].value)return t=e.getAttribute("data-pendo-poll-id"),e=_.find(i.guide.polls,function(e){return e.id===t}),n=n[0].value,e&&e.numericResponses&&(n=parseInt(n,10)),{pollId:t,value:n}})),i.response&&n?i.response(_.compact(n)):T.info("[Pendo Web SDK] Error! Trying to submit a poll response but step does not have response function!");t!==a.submitPollAndGoToStep&&i.advance()},this.setElementDisplay=function(e,t){var n=e.step,e=M(_.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);_.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=M(_.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=_.find(e.params,function(e){return"transition"===e.name}).value,e=_.find(e.params,function(e){return"left"===e.name}).value;t.style.transition=n,t.style.left=e},this.openLink=function(e){var t=_.find(e.params,function(e){return"url"===e.name}).value,e=_.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&Vs()&&(e="_top");window.open(t,e)},this.goToStep=Sm,this.searchGuides=function(t){var e="",n=t.srcElement.value,t=M("#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,c;d&&i[d]&&(u=!1,(c=M(i[d])).text()&&(-1!==c.text().toLowerCase().indexOf(n.toLowerCase())?(c.css({display:"list-item"}),u=!(a=!1)):c.css({display:"none"})),_.isFunction(i[d].getAttribute)&&(e=i[d].getAttribute("data-_pendo-text-list-item-1").split(","),_.forEach(e,function(e){_.contains(o,e)||o.push(e)})),this.searchAllTerms(o,e,n)&&i[d]&&(c.css({display:"list-item"}),u=!(a=!1)),e="",u)&&s++}a?M(t[0]).css({display:"block"}):M(t[0]).css({display:"none"});if(r&&r.length&&(r[0].innerHTML="",n)){let e="";0===s?(e=t[0].innerText,this.debounceAnnounceResults(r[0],e)):(t=1===s?"data-pendo-aria-label-alert-singular":"data-pendo-aria-label-alert-plural",(e=r[0].getAttribute(t))&&(e=e.replace("{RESULT_COUNT}",s),this.debounceAnnounceResults(r[0],e)))}},this.searchAllTerms=function(t,e,n){return!!e&&e.some(function(e){return _.contains(t,e)&&e.toLowerCase()===n.toLowerCase()})},this.confirmGuide=function(e){var e=e.step,t=function(e){if(e.confirmationElementPathRule)return lo(e.confirmationElementPathRule)[0]}(e);e.advance(),t?t.click():T.critical("pendo.io confirmationElement exception",{stepId:e.id,confirmationElementPathRule:e.confirmationElementPathRule,error:new Error("confirmation action called but confirmationElement was not found")})},this.getTransitionParams=s,this.launchGuide=function(e){var t=!_.get(e,"params.2.value.doNotDismiss");t&&bm(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=b(e.params[0].value),i=e.params[1].value,r=(r=_.find(n.steps,function(e){return e.id===i}))||n.steps[0],Lm(n),r.show("api")):t&&Jm(e.params[0].value)}},this.handleConditionalSplit=function(t){var n,e=_.find(t.params,function(e){return"conditionType"===e.name}),i=_.find(t.params,function(e){return"config"===e.name}),r=_.find(t.params,function(e){return"cases"===e.name});e&&i&&r&&(e=e.value,i=i.value,r=r.value,n=function(e,t){{if("elementExists"===e)try{var n=E.Sizzle(t.elementSelector);return n&&0<n.length}catch(i){}return!1}}(e,i),R.trigger("appUsage",{type:"conditionalSplitResult",elementId:t.srcElement.id,conditionResult:n}),e=_.find(r,function(e){return e.value===n}),0<(null==(i=null==e?void 0:e.actions)?void 0:i.length)?_.forEach(e.actions,function(e){e={action:e.action,params:e.parameters,step:t.step,srcElement:t.srcElement};o.eventHandler(e)}):T.warn("No matching case found for condition result:",n))},this.debounceAnnounceResults=_.debounce((e,t)=>{e.innerHTML=t},300),{advanceGuide:"advanceGuide",previousStep:"previousStep",goToStep:"goToStep",submitPoll:"submitPoll",guideSnoozed:"guideSnoozed",dismissGuide:"dismissGuide",showElements:"showElements",hideElements:"hideElements",slideElement:"slideElement",showGuide:"showGuide",launchGuide:"launchGuide",renderResourceCenterModule:"renderResourceCenterModule",returnToResourceCenterHome:"returnToResourceCenterHome",openLink:"openLink",searchGuides:"searchGuides",submitPollAndGoToStep:"submitPollAndGoToStep",confirmation:"confirmation",conditionalSplit:"conditionalSplit"});function s(e){return e.params.find(e=>"transitionDirection"===e.name)?[{name:"transitionCss",type:"string",value:"left 200ms"},{name:"transitionDirection",type:"string",value:"right"}]:[]}return this},Vb=(qb.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&((qb.prototype.registeredActions=qb.prototype.registeredActions?qb.prototype.registeredActions:{})[e]=t)},qb.deregisterAction=function(e){e&&"string"==typeof e&&delete(qb.prototype.registeredActions=qb.prototype.registeredActions?qb.prototype.registeredActions:{})[e]},Hb="guideActivity",zb=_.isObject,jb=_.findWhere,Wb=[],{type:Hb,handler(e){var t=e.data[0];if(t&&"conditionalSplitResult"===t.type){var n=t;const{conditionResult:a,elementId:s}=n,d=_.findIndex(Wb,e=>e.props.ui_element_id===s);-1!==d&&(n=Wb.splice(d,1)[0],(i=n.props.ui_element_actions[0]).condition_result=a,r=(r=i.cases)[a],n.props.ui_element_actions=n.props.ui_element_actions.concat(r),delete i.cases,Vm(n))}else{var i,r=e.data[1];i=r,zb(n=t)&&function(e){return e&&"click"===e.type}(i)&&function o(e){if(_.isString(e.id)&&0===e.id.indexOf("pendo-base"))return!0;if(zb(e.parentElem))return o(e.parentElem);return!1}(n)&&(function(e){return Kb(e)}(n)||function(e){return Jb(e)}(n)||function(e){return $b(e)}(n))&&(e=function(e){var t=function(e){const n=function t(e){if(!e)return;if(/^pendo-g-/.test(e.id))return e.id.replace(/^pendo-g-/,"");return t(e.parentElem)}(e);if(n){let t;e=_.find(Du(),function(e){return!!(t=_.find(e.steps,e=>e.id===n))});if(e&&t)return{guide:e,step:t};e=_.find(Du(),e=>e.id===n);if(e){var i=_.find(e.steps,e=>e.isShown());if(i)return{guide:e,step:i}}}return qv()}(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=M("#"+e).closest("[data-pendo-announcement-guide-id]").attr("data-pendo-announcement-guide-id"),e=_.find(Du(),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=Jb(e)||Kb(e)||$b(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:Bo(e.props.href),target:e.props.target}];if(e.actions!==undefined)return _.map(e.actions,Yb);if("pendo_task_list_item"===t.templateName&&_.isArray(e.templateChildren)&&e.templateChildren[t.templateChildIndex])return[{action:"showGuide",guideId:e.templateChildren[t.templateChildIndex].id}]}return[]}(n,e);var[r={}]=n,{action:r,guideId:o}=r;"showGuide"===r&&o&&(i+="-"+o);return zm({type:Hb,visitorId:v(),ui_element_id:i,ui_element_type:e.type,ui_element_actions:n,guideId:t.guide.id,stepId:t.step.id,language:t.guide.language})}(t))&&("conditionalSplit"===_.get(e,["props","ui_element_actions",0,"action"])?Wb.push(e):Vm(e))}}});function Kb(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-button/.test(e.id))?{type:e.tag,id:e.id}:Xb(e)||!zb(e.parentElem)?null:Kb(e.parentElem)}function $b(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 Xb(e)||!zb(e.parentElem)?null:$b(e.parentElem)}function Jb(e){return"A"===e.tag?{type:e.tag,id:e.id}:Xb(e)||!zb(e.parentElem)?null:Jb(e.parentElem)}function Yb(e){switch(e.action){case"automation":var t=jb(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=jb(e.parameters,{name:"url"}),n=jb(e.parameters,{name:"target"});return{action:e.action,url:Bo(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=jb(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=jb(e.parameters,{name:"snooze_duration"}),t=jb(e.parameters,{name:"time_unit"});return{action:e.action,duration:n.value,timeUnit:t.value};case"showGuide":case"launchGuide":n=e.parameters[0],t=e.parameters[1]||{};return{action:e.action,guideId:n.value,stepId:t.value};case"conditionalSplit":var n=jb(e.parameters,{name:"name"}),t=jb(e.parameters,{name:"conditionType"}),i=jb(e.parameters,{name:"config"}),r=jb(e.parameters,{name:"cases"}),r=_.reduce(r.value,function(e,t){return e[t.value]=_.map(t.actions,function(e){var t=Yb(e);return t.source=e.source,t}),e},{});return{action:e.action,name:n.value,condition_type:t.value,element_selector:i.value.elementSelector,feature_id:i.value.featureId,cases:r};case"advanceGuide":case"previousStep":case"submitPoll":case"dismissGuide":case"confirmation":return{action:e.action};default:return{}}}function Xb(e){return _.isString(e.id)&&0===e.id.indexOf("pendo-guide-container")}const Zb={agent:{getJwtInfoCopy:vd.get,treatAsAdoptPartner:Qo,addAccountIdParams:ea},agentStorage:x,analytics:{ptm:()=>Zd,trackEventQueue:()=>Qd,collectEvent:Gd,hasConsentForAnalyticsEvent:dn,getTextCollectionMode:function(){var e;return!Zt||(e=Zt[$t],_.isUndefined(e))?"all":e},isReplayConsentDenied:function(){return an()||!on("replay")},isUtmConsentDenied:function(){return!on("utm")}},attachEvent:F,attachEventInternal:mo,detachEventInternal:vo,ConfigReader:C,Events:R,EventTracer:Kn,EventRouter:qb,Extensions:{API:{addTopic:function(e,t){var n=Gp[e]||{};_.extend(n,t),Gp[e]=n}}},frames:{getChannel:()=>by},getEventable:()=>Zn.call({}),getScreenPosition:fa,GlobalRuntime:{addGlobalScript:$c.addGlobalScript,removeGlobalScript:$c.removeGlobalScript},GuideActivity:Vb,GuideLoop:{addUpdatePhase:Sg,removeUpdatePhase:Eg},guides:{GuideFactory:jc,GuideStepFactory:Wc,getElementForGuideStep:tc},hosts:{getAssetHost:Yo,getAssetUrl:Zo,getDataHost:$o,getFontBaseUrl:function(){return C.get("assetHost")?Zo("fonts"):"https://cdn.pendo.io/fonts"},SERVER:at,DESIGNER_SERVER:ut},isTrustedOrigin:Is,NodeSerializer:Rf,q:m,SendQueue:yd,sessionStorage:x.getSession(),storageIsDisabled:wn,sizeElements:Ql,store:A,Tombstone:Bu,transmit:{buildBaseDataUrl:ya,fetchKeepalive:Ca,sendBeacon:Ta,shouldLoadWithPost:nu},log:T,NetworkRequest:e,util:{trim:mt,base64EncodeString:It,parseUrl:_s,testPageRule:ku,addInlineStyles:_.partial(Zc,C),getNow:S,escapeRegExp:J,getZoneSafeMethod(e,t){return wt(_,e,t)},isNativeCode:Oe},constants:{URL_MAX_LENGTH:2e3,SEND_INTERVAL:Qs,ENCODED_EVENT_MAX_LENGTH:td}},Qb=[];let e0=!1;function t0(t){if(_.find(Qb,function(e){return e.name===t.name}))T.warn(`Plugin with name ${t.name} already exists. Skipping registration.`);else if(Qb.push(t),e0)try{t.initialize(E,Zb)}catch(e){T.error(`Error initializing plugin ${t.name}:`,e)}}function n0(){return _.each(Qb,function(e){try{e.initialize(E,Zb)}catch(t){T.error(`Error initializing plugin ${e.name}:`,t)}}),e0=!0,i0}function i0(){_.each(Qb,function(e){if(_.isFunction(e.teardown))try{e.teardown(E,Zb)}catch(t){T.error(`Error tearing down plugin ${e.name}:`,t)}}),e0=!1}function r0(n){return _.map(Qb,function(e){if(e.validate&&!n)try{e.validate(E,Zb)}catch(t){T.error(`Error validating plugin ${e.name}:`,t)}return e.name})}Wp.registerExtensionsByUse("plugin",function(e){return _.extend(e.uri,_.pick(e,"name")),t0(e.uri),e},function(e){return!!e.uri.initialize&&!!e.uri.teardown});var o0=!1,a0=function(e){var t=e.old_visitor_id,e=e.visitor_id;return fi(t)?hi(e)?fi(e)?(T.info("Visitor is anonymous: "+e),!1):yi(e)?(T.info("Visitor id is the default: "+e),!1):(T.info("Re-mapping visitor identity from "+t+" to "+e),!0):(T.info("Not valid visitor id: "+e),!1):(T.info("Visitor is already identified: "+t),!1)},s0=function(e){var t=e.old_account_id,e=e.account_id;return hi(e)?t!==e&&(T.info("Re-mapping account identity from "+t+" to "+e),!0):(T.info("Not valid account id: "+e),!1)};function d0(){if(!o0){const e=function(e){e=e.data[0];(a0(e)||s0(e))&&(Gd("identify",e),cd())},t=function(e){var t;Pp()||({options:e,hashChanged:t}=e.data[0],t&&(Gd("meta",e),cd()))},n=function(e){var t=e.data[0]["identity"],e=e.data[1];_.isUndefined(t)||(t?(t=e)&&!an()&&bi()&&Np(t):Ni({doNotTrack:!0}))};return R.identify.on(e),R.metadata.on(t),R.identify.on(Up),R["consent:changed"].on(n),o0=!0,function(){R.identify.off(e),R.metadata.off(t),R.identify.off(Up),R["consent:changed"].off(n),o0=!1}}}const u0="cookieConsentTiers";function c0(e,t){i=e,(n=C.getLocalConfig()||{})[u0]=i,C.setLocalConfig(n);var n,i=nn(e);return R["consent:changed"].trigger(i,t),T.debug("Cookie consent updated for "+JSON.stringify(e)+"."),i}function l0(){return C.get(u0)}function p0(e){return e=e,t=l0(),_.isEqual(Qt(e).slice().sort(),Qt(t).slice().sort());var t}function h0(e,t){return A.dispatch("frames/changeCookieConsent",{tiers:e}),c0(e,t)}function f0(e){Zt=null,e&&c0(e)}g0="guideActivity",m0=_.isObject;var g0,m0,v0={type:g0,handler(e){var t,n=e.data[0],e=e.data[1];e=e,m0(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(m0(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return w0(e)}(t)||function(e){return y0(e)}(t)||function(e){return b0(e)}(t))&&(e=function(e){var t=D.getResourceCenter();if(t){var n=t.activeModule,i=w0(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=y0(e)||b0(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),zm({type:g0,visitorId:v(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,language:i.language})}}(n))&&Vm(e)}};function y0(e){var t=e.cls.split(" ");return _.contains(t,"_pendo-resource-center-module-list-item")?{type:"BUTTON",elementId:M("#"+e.id).closest("[data-pendo-module-guide-id]").attr("data-pendo-module-guide-id")}:"pendo-resource-center-container"!==e.id&&m0(e.parentElem)?y0(e.parentElem):null}function b0(e){var t=e.cls.split(" ");if(_.contains(t,"_pendo-resource-center-guidelist-module-listed-guide")||_.contains(t,"_pendo-resource-center-onboarding-module-listed-guide")){t=D.getResourceCenter();if(t){var n=e.id.split("-").pop(),t=t.activeModule;if(t&&t.attributes&&t.attributes.resourceCenter)return{type:"BUTTON",elementId:t.attributes.resourceCenter.children[n]}}return null}return"pendo-resource-center-container"!==e.id&&m0(e.parentElem)?b0(e.parentElem):null}function w0(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&&m0(e.parentElem)?w0(e.parentElem):null}const S0=e=>(e=e||E).doesExist(e.apiKey);class E0 extends zt{constructor(){super(),this.cache=new Set,this.foundShadowRoots=!1,this.stoppedSearchEarly=!1}updateCache(){this.cache.forEach(e=>{$a(e)||(this.cache["delete"](e),this.dispatchEvent({type:"detachShadow",shadowRoot:e}))})}patchAttachShadow(e){const t=e.prototype.attachShadow,n=this;return e.prototype.attachShadow=function(e){e=t.call(this,e);return this.shadowRoot&&n.triggerAttachShadow(this.shadowRoot),e},e.prototype.attachShadow.toString=function(){return t.toString()},()=>{e.prototype.attachShadow=t}}initialize(){this.unpatchAttachShadow=this.patchAttachShadow(Element),this.findShadowRoots(document,5e3,e=>this.triggerAttachShadow(e))}triggerAttachShadow(e){this.cache.add(e),this.dispatchEvent({type:"attachShadow",shadowRoot:e})}findShadowRoots(r,o=5e3,a){if(_.isFunction(r.createNodeIterator)){let t=0,n=[Va(r)],i;function s(e){do{if(!(e=e||r.createNodeIterator(n.pop(),NodeFilter.SHOW_ELEMENT))||!e.nextNode)break;for(;(i=e.nextNode())&&(t++,i&&i.shadowRoot&&(a(i.shadowRoot),n.push(i.shadowRoot),this.foundShadowRoots=!0),t%o!=0););}while(!i&&(e=null,n.length));i&&this.foundShadowRoots&&(this.findTimeout=Ut(()=>{this.findTimeout=null,s.call(this,e)},50)),t!==o||this.foundShadowRoots||(this.stoppedSearchEarly=!0)}s.call(this)}}teardown(){this.cache.clear(),_.isFunction(this.unpatchAttachShadow)&&(this.unpatchAttachShadow(),this.unpatchAttachShadow=null),this.findTimeout&&(Gt(this.findTimeout),this.findTimeout=null)}}class I0 extends zt{constructor(e=At("MutationObserver")){super(),this.ObserverClass=e,this.observing=!1,this.observers=new Map,this.triggerMutation=this.dispatchMutationEvent,this.shadowDom=new E0,this.shadowDom.addEventListener("attachShadow",_.bind(this.handleAttachShadow,this)),this.shadowDom.addEventListener("detachShadow",_.bind(this.handleDetachShadow,this)),this.addEventListener("mutation",()=>{null!=this.timeout&&Gt(this.timeout),this.timeout=Ut(()=>{this.shadowDom.updateCache(),this.timeout=null},0)})}initialize(e,t){t=t.ConfigReader;t.get("preferMutationObserver")&&e.sniffer.MutationObserver&&(this.observeShadowRoots=t.get("observeShadowRoots"),this.startObserver(document.documentElement),this.observing=!0,this.observeShadowRoots)&&this.shadowDom.initialize()}startObserver(e){var t=new this.ObserverClass(e=>this.triggerMutation(e));this.observers.set(e,t),t.observe(e,{subtree:!0,attributes:!0,childList:!0,characterData:!0})}teardown(){this.observers.clear(),this.shadowDom.teardown(),null!=this.timeout&&(Gt(this.timeout),this.timeout=null)}dispatchMutationEvent(e){this.dispatchEvent({type:"mutation",mutation:e})}triggerMutationOnce(e){this.triggerMutation=_.noop,queueMicrotask(()=>{this.dispatchMutationEvent(e),this.triggerMutation=this.triggerMutationOnce})}handleAttachShadow({shadowRoot:e}){this.triggerMutation=this.triggerMutationOnce,this.startObserver(e)}handleDetachShadow({shadowRoot:e}){this.observers["delete"](e)}}var _0=new I0;let C0=0;const T0="initializeImmediately",x0="initializeWhenVisible",R0=[];let A0=null;function k0(e){var t,n,i,r,o,a,s,d,u,c,l;if(C.get(x0,!1)&&"undefined"!=typeof document&&"visible"!==document.visibilityState)try{var p=_.toArray(arguments);if(null!==A0)T.warn("pendo.initialize call rejected: an earlier call is already waiting for the document to become visible.");else{A0=p;let t=F(document,"visibilitychange",()=>{var e;"visible"===document.visibilityState&&(t&&(t(),t=null),e=A0,A0=null,k0.apply(null,e))});R0.push(()=>{t&&(t(),t=null),A0=null})}}catch(v){T.critical("pendo.initialize failed while gating on visibility.",v)}else if("complete"===document.readyState||_.get(e,T0)||C.get(T0))try{if(T.info("pendo.initialize called with "+JSON.stringify(e)),E.apiKey)1==C0++&&T.info(["pendo.initialize only needs to be called once",Rt()?" per namespace":"",". Use pendo.updateOptions to update metadata after the web SDK has initialized."].join(""));else{if(e=e||{},_.isEmpty(vd.get())&&(l=vd.getJwtOptions(e,"initialize"))&&(vd.set(_.pick(e,"jwt","signingKeyName")),_.extend(e,l,{forceAnonymous:!0})),_.isString(e))return wo.get(e).then(e=>(ye(B=e.data),k0()));A.dispatch("location/init",e.location||{});var h="doNotTrackGuides",f=_.get(e,h)||C.get(h),g=(f&&((c=e).excludeNonGuideAnalytics=!0,c.disableCookies=!0,c.visitor={id:li},delete c.account,delete c.parentAccount),C.setLocalConfig(e),_.get(e,"cookieConsentTiers")),m=(f0(g),Jo(),E.HOST=Wo,C.get("cookieDomain"));if(m&&(a=m,s=location.host,a?_.isString(a)&&(s=s.replace(/:\d+$/,""),a=a.replace(/^\./,""),d=new RegExp("\\."+J(a)+"$"),u=new RegExp("^"+J(a)+"$"),d.test(s)||u.test(s))&&(mn="."+a):mn=a),Qy.discoverKeys(e),Qy.getApiKey()){A.commit("metadata/setMetadata",{selfHosted:Lp()}),e.logStackTraces&&(E.logStackTraces=e.logStackTraces),C.get("preferBroadcastChannel")&&gy.secure(!0);const b=C.get("analytics.localStorageUnload"),w=(_d.read(x),R0.push((o={localStorageUnload:b},Yd=od.events=Ys,Xd=od.trackEvents=Xs,tu=od.agenticEvents=Zs,Zd=Tu(_.extend({cache:Yd,silos:od.silos,apiKey:ba,beacon:"ptm",allowPost:!0},o)),Qd=Tu(_.extend({cache:Xd,silos:od.trackEventSilos,apiKey:ba,beacon:"ptm",allowPost:!0,params:{type:"track"}},o)),eu=Tu(_.extend({cache:tu,silos:od.agenticEventSilos,apiKey:ba,beacon:"agentic","class":"agentic",allowPost:!0},o)),sd(Zd),sd(Qd),sd(eu),()=>{hd(),dd(Zd),dd(Qd),dd(eu),Zd=Qd=eu=undefined})),_0.initialize(E,Zb),R0.push(()=>_0.teardown()),va&&(x.registry.addLocal(di),x.registry.addLocal(ui),x.registry.addLocal(ci),x.registry.addLocal(Rp),E.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,R0.push(gc(R)),[{events:r=[]}]=[e],_.each(r,(e,t)=>{vc[t]&&vc[t](e)}),R0.push((i=A,by=yy(i),U=vy(by,i),()=>U.close())),R0.push(Rv(_0)),R0.push(Ib.loadPluginJs()),R0.push(d0()),R0.push(Gf()),R0.push(n0()),R0.push((n=e,x.registry.addLocal(Iy,{localStorageOnly:!0}),x.registry.addLocal(_y,{localStorageOnly:!0}),x.registry.addSession(Ey),_.find([_.partial(ab.launchOnToken,window.location),_.partial(Cy,window),_.partial(ab.localStorageNavigation,n)],e=>e()),n.enableDesignerKeyboardShortcut||!C.get("disableDesignerKeyboardShortcut")?Ib.listen():()=>{})),R.appUsage.on(Vb.handler),R.appUsage.on(v0.handler),R0.push(ld(Qs)),R0.push(Fd.initialize())),()=>{ud({hidden:!0})}),S=(R.appHidden.on(w),R0.push(()=>R.appHidden.off(w)),()=>{ud({unload:!0}),b&&_d.write(x)});R.appUnloaded.on(S),R0.push(()=>R.appUnloaded.off(S)),gi()||mi(),E.updateOptions(e),e.visitorId&&e.visitorId!=vi&&E.identify(e.visitorId),R0.push(L.watch(function(){E.pageLoad()})),va&&R.ready.trigger(),Ru(L.get()),C0++,window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&((t=gy.targetOrigin())?window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},t):T.warn("Unable to announce frame to designer plugin, targetOrigin is not set. Check if broadcastChannel is enabled and cross origin frames are allowed.")),M0(),f&&x.clearAll()}else T.debug("API key is not set, Pendo will not initialize.")}}catch(v){T.critical("An exception occurred during pendo.initialize.",v);try{P0()}catch(y){T.critical("Error during pendo.initialize rollback teardown",y)}}else try{he(E,"initialize",arguments)}catch(v){T.critical("pendo.initialize failed while enqueueing deferred call.",v)}}function O0(e){return!_.isArray(e)||_.isEmpty(e)}function N0(e){if(!O0(e))return _.find(e,e=>"initialize"===e[0])}function M0(i){var e;return!O0((i=i||E)._q)&&(e=!!N0(i._q),S0(i)||e)?(e=i._q.splice(0,i._q.length),_.reduce(e,(e,t)=>{if(!_.isArray(t))return e;const n=i[t.shift()];return _.isFunction(n)?e.then(()=>n.apply(i,t)):e},m.resolve()).then(M0)):m.resolve()}function L0(){var e;S0()?T.info("already running"):((e=Te())&&k0(e),M0())}function P0(){try{R.appHidden.trigger(),R.appUnloaded.trigger();try{_.each(R0,function(e){e()})}finally{R0.length=0}Ru.reset(),gy.close(),Zn.clear(R),Zn.clear(vc)}finally{Qy.clearInstalledKeys(),C0=0}}function D0(e={channel:Pu.DEFAULT}){return qv(e)}var F0,U0,G0={getActiveGuide:D0,smartNextStep:function(e){var t,n=D0();n&&(t=n.guide.steps[n.stepIndex+1],Ut(function(){var e=lo(t.elementPathRule);0!==e.length&&_.some(e,ds)?Em(n.step):Em(t)},e=e||0))},smartFirstStep:function(){var e=M("._pendo-guide_"),t=(e.css("display:none;"),Au()),n=D0().guide.steps,i=_.filter(_.rest(n),function(e){return!!e.pageId}),i=_.indexOf(n,_.find(i,function(e){return Ou(e.regexUrlRule,t)}));T.info("startingPoint is "+i),-1==i?e.css("display:block;"):(e=n[Math.max(0,i-1)],T.info("found starting step to be "+e.id),Em(e))},advanceOn:function(e,t){var n=D0(),i=M(t=t||n.step.elementPathRule)[0],r=function(){Em(),jf(i,e,r,!0)};F(i,e,r,!0)},renderStepPosition:function(e,t,n){if(t)n||(i=[].concat(t.steps).reverse(),n=_.findWhere(i,{seenState:"active"}));else{var i=qv();if(!i)return;t=i.guide,n=i.step}return(e=_.template(e=e||"Step <%= currPos %> of <%= total %>"))({currPos:t.getPositionOfStep(n),total:t.getTotalSteps()})}},B0=100,H0=[],z0=[];const j0="log-enabled",W0="active-contexts";var q0=function(){var e=x.read(j0,!0);return null!==e?"true"==e:!(-1!==it.indexOf("prod")||-1!==it.indexOf("rc"))},V0=function(){return J0()?U0?"logging already enabled":(x.write(j0,"true"),U0=!0,"logging enabled"):"logging unavailable"},K0=function(){return U0?(x.write(j0,"false"),U0=!1,"logging disabled"):"logging already disabled"};var $0=function(e,t){return _.compact([].concat(e,t))},J0=function(e){return e=e||"log","undefined"!=typeof console&&_.isFunction(console[e])},Y0=function(e){return e=$0(e),0<F0.length?0<_.intersection(F0,e).length:!!U0||!!Pd()},X0=function(e,...t){T.info(e,{contexts:t})};function Z0(e){var t;e.level!==Dt.Debug&&e.level!==Dt.Info||(t=e.attributes?$0(e.attributes.contexts):[],J0()&&Y0(t)&&rw(e.message),ew(H0,e.message,t))}function Q0(...e){J0("error")&&console.error.apply(console,e),ew(z0,e.join(" "))}var ew=function(e,t,n){_.contains(n,"debug")||(e.length==B0&&e.shift(),e.push([t,n]))},tw=function(t){t=$0(t),_.each(_.map(_.filter(H0,function(e){return 0===t.length||0<_.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){rw(e,"[Pendo-History] ")})},nw=function(){return _.union.apply(_,_.map(H0,function(e){return e[1]}))},iw=function(e){F0=$0(e),x.write(W0,F0.join(","))},rw=function(e,t){var n;J0()&&(t=t||"[Pendo Web SDK] ",e&&e.length?((n=1e3<e.length?e.length-1e3:0)&&(t+="..."),console.log(t+e.substring(n))):console.log(t+e))};function ow({type:n,name:i,props:r,eventProperties:o}){if(i&&_.isString(i))if(n&&_.isString(n)){let e=r,t=(_.isObject(r)||(e={__err__:r}),o);o===undefined||_.isObject(o)||(t={__err__:o});r=L.get();Gd(n,e,r,i,t)}else T.error("Must provide valid type string for event tracking");else T.error("Must provide valid name string for event tracking")}function aw(e,t,n){ow({type:"track",name:e,props:t,eventProperties:n})}function sw(e,t,n){ow({type:e,name:"agentic",props:t,eventProperties:n})}X0.init=function(){var e;e=x.read(W0,!0),F0=e?e.split(","):[],U0=q0(),T.addEventListener("log",Z0),x.registry.addLocal(j0,{isPlain:!0,localStorageOnly:!0}),x.registry.addLocal(W0,{isPlain:!0,localStorageOnly:!0})},X0.enableLogging=V0,X0.disableLogging=K0,X0.getActiveContexts=function(){return F0},X0.setActiveContexts=iw,X0.showLogHistory=tw,X0.getLoggedContexts=nw;var dw=function dw(r){var o=[];function a(e,t,n,i){r?o.push({type:n,message:t,value:i}):I(i)?console[e](t,i):console[e](t)}if("undefined"==typeof console||!console.group)return"Please run this test in the latest version of Chrome, Firefox, Safari, or Internet Explorer";r||console.group("Pendo Install Validation"),E.apiKey||E.publicAppId||a("error","No Pendo public app ID configured. Make sure to call pendo.initialize() with a valid Pendo public app ID.","publicAppId");var e=v(),e=(fi(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"),yi(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),Ai()),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"),C.get("disableCookies")&&a("warn","Cookies are disabled in Pendo config. Is this expected?","disableCookies"),Dp());if(_.each(["visitor","account","parentAccount"],function(n){var i=t&&t[n],e=_.chain(i).keys().value();0<e.length?(r||console.group(n+" metadata (does this look right?):"),0<(e=_.chain(e).map(function(e){return e.toLowerCase()}).countBy().pick(function(e){return 1<e}).keys().value()).length&&_.each(e,function(e){a("warn","Keys will be lowercased and any duplicates overwritten. Please choose unique key names for:",n+"MetadataConflict",e)}),_.each(_.keys(i),function(e){var t=i[e];_.isObject(t)&&!_.isArray(t)?a("warn",e+" is an object and will be ignored.",n+"Metadata",t):_.isArray(t)&&_.any(t,_.isObject)?a("warn",e+" contains object values. The objects will be ignored.",n+"Metadata",t):a("log",e+":",n+"Metadata",t)}),r||console.groupEnd()):"parentAccount"!==n&&a("warn","No "+n+" metadata found. Learn more about metadata here: http://help.pendo.io/resources/support-library/installation/metadata.html",n+"MetaData")}),r)return o;console.groupEnd()},uw=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:Dn.prototype,displayName:"Promise | Prototype"},{nativeType:window,displayName:"Window ",propsToCheck:["alert","asap","atob","btoa","cancelAnimationFrame","clearImmediate","clearInterval","clearTimeout","close","confirm","getComputedStyle","getSelection","open","postMessage","prompt","requestAnimationFrame","scroll","scrollBy","scrollTo","setImmediate","setInterval","setTimeout","stop","XMLHttpRequest","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent"]}],r=!1,i=(_.each(e,function(e){var n=e.nativeType,i=[],t=e.propsToCheck||Object.getOwnPropertyNames(n);_.each(t,function(e){try{e&&n[e]&&"function"==typeof n[e]&&-1===n[e].toString().indexOf("[native code]")&&i.push(e)}catch(t){}}),i.length&&(e.nonNativeImplementations=i,r=!0)}),{hasNonNativeMethods:r,implementations:[]});return n||console.group("Native javascript method check:"),r?(n||console.warn("Pendo has detected that your application may be changing native javascript functionality. We suggest consulting an engineer or your CSM to better understand if these changes will negatively impact Pendo's ability to function properly"),_.each(e,function(e){var t;e.nonNativeImplementations&&(t=e.displayName.trim(),n?i.implementations.push({nativeType:t,nonNativeImplementations:e.nonNativeImplementations}):console.warn(t+" | Contains the following non-native implementations:",e.nonNativeImplementations.sort().join(", ")))}),n?i:void console.groupEnd()):n?i:(console.log("Environment uses native javascript implementations"),console.groupEnd())},cw=function(e){var t=[];if(_.isNumber(window.frames.length)&&_.isFinite(window.frames.length)&&M("iframe").length+M("frame").length===window.frames.length||t.push("Pendo has detected that window.frames.length has been modified"),window.Event&&window.Event.prototype||t.push("Pendo has detected that window.Event has been modified"),t.length){if(e)return t;console.group("Global variables:"),_.each(t,function(e){console.warn(e)}),console.groupEnd()}},lw=function(e){var t,n=window.location.href,i=[];try{(t=Ao())!==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=L.externalizeURL();r!==t&&i.push({type:"sanitizedUrl",msg:"URL has been sanitized. This will affect sending data and guides requests.",value:r})}catch(o){i.push({method:"error",msg:"Error getting Externalized URL",value:o})}if(e)return i;console.group("URL Validation"),console.log("Browser URL:",n),_.each(i,function(e){e.method?console[e.method](e.msg+"\n"+e.value):console.warn(e.msg+"\n"+e.value)}),console.groupEnd()};const pw=e=>{if(0<z0.length){var t=[].concat(z0);if(e)return t;console.group("Agent Error History"),_.each(t,(e,t)=>{console.log("Error History ",t,e)}),console.groupEnd()}},hw=e=>{var t=r0(e);if(e)return t;console.group("Active Plugins"),_.each(t,e=>console.log(e)),console.groupEnd()};var fw=function(e){var t={install:dw(e),plugins:hw(e),globals:cw(e),url:lw(e),errors:pw(e)};if(e)return t.methods=uw(e),t;C.validate(console)};const gw=["intercom"];function mw(e,t){return window.__pendoCheckIntercomIdMatch(e,t)}function vw(e){if(!_.contains(gw,e))return"undefined"!=typeof console&&console.log&&console.log('Unsupported integration "'+e+'". Supported integrations: '+gw.join(", ")+"."),m.resolve(undefined);const t=v(),n=fi(t);if("function"==typeof window.__pendoCheckIntercomIdMatch)return m.resolve(mw(t,n));const i=m.defer();return Rs(Zo("check-intercom-id-match.min.js"),function(e){e?("undefined"!=typeof console&&console.error&&console.error("Failed to load the Intercom ID check. Please try again."),i.resolve(undefined)):i.resolve(mw(t,n))},!0),i.promise}var yw={BuildingBlockGuides:Fg,BuildingBlockResourceCenter:D,BuildingBlockTemplates:rl,BuildingBlockTooltips:Dl,BuildingBlockSvgs:ul};function bw(e,t){this.state={duration:e,isStopped:!0,handle:null,cb:t,hasRun:!1,errors:[],options:{}},this.shouldJobRun=function(){return!(!this.state.hasRun&&this.state.options.skipFirstRun||this.state.isStopped)},this.doJob=function(e){if(e)try{this.state.cb(this)}catch(t){this.state.errors.push(t)}},this.afterJobRun=function(){this.state.hasRun=!0,this.state.handle=Ut(this.run,this.state.duration)},this.run=_.compose(_.bind(this.afterJobRun,this),_.bind(this.doJob,this),_.bind(this.shouldJobRun,this))}bw.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},bw.prototype.stop=function(){Gt(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var ww=wo.urlFor,Sw={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace","Clear","AddTo"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};const Ew=["location","attribute","both","network","all"],Iw="location";function _w(e,t,n,i){var r;if(_.isObject(e)&&(t=e.action,n=e.data,i=(e=e.attr).target),!Sw[e])throw r=_.keys(Sw).join(", "),new Error('Invalid URL attribute type: "'+e+'". Valid attributes are: '+r+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!_.contains(Sw[e],t))throw r=Sw[e].join(", "),new Error('Invalid transform action: "'+t+'" for attribute "'+e+'". Valid actions for "'+e+'" are: '+r+'. Example: {attr: "'+e+'", action: "'+Sw[e][0]+'", data: ...}');this.attr=e,this.action=t,this.data=n,this.target=(r=i,_.isArray(r)?0<(e=_.filter(r,function(e){return 0<=Ew.indexOf(e)})).length?e:[Iw]:0<=Ew.indexOf(r)?r:Iw)}function Cw(e){return e instanceof Li||e instanceof HTMLAnchorElement}_w.prototype.applyTo=function(e){return{AllowOnlyKeys(e,t,n){_.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Li(jo(t,null,n,!1))},ExcludeKeys(e,t,n){_.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Li(jo(t,null,n,!0))},AddTo(e,t,n){var i;return _.isFunction(n)&&(n=n(e[t],e)),"search"!==t&&"pathname"!==t?e:"pathname"===t?(t=e.pathname,(i=n).startsWith("/")||(i="/"+i),t.endsWith("/")?e.pathname=t+i.substring(1):e.pathname=t+i,e):(t=e.href,new Li(ww(t,n)))},Clear(e,t){return"pathname"===t?e.pathname="/":e[t]="",e},Replace(e,t,n){return _.isFunction(n)&&(n=n(e[t],e)),"href"===t?new Li(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)},_w.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},_w.fromJSON=function(e){if(e instanceof _w)return e;if(!_.isObject(e))throw new Error("UrlTransform.fromJSON expects an object. Received: "+typeof e+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!e.attr)throw t=_.keys(Sw).join(", "),new Error('UrlTransform is missing required "attr" property. Valid attributes are: '+t+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!e.action)throw t=Sw[e.attr]?Sw[e.attr].join(", "):"AllowOnlyKeys, ExcludeKeys, AddTo, Replace, Clear",new Error('UrlTransform is missing required "action" property. Valid actions depend on the attribute. For "'+e.attr+'" attribute, valid actions are: '+t+'. Example: {attr: "'+e.attr+'", action: "AddTo", data: {key: "value"}}');if(!Sw[e.attr])throw t=_.keys(Sw).join(", "),new Error('Invalid attribute "'+e.attr+'". Valid attributes are: '+t+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!_.contains(Sw[e.attr],e.action))throw t=Sw[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: "'+Sw[e.attr][0]+'", data: ...}');var t;if(_.contains(["AllowOnlyKeys","ExcludeKeys","AddTo","Replace"],e.action)&&e.data===undefined)throw t="Replace"===e.action?'"newValue"':"AddTo"===e.action?'{key1: "value1"}':'["key1", "key2"]',new Error('Action "'+e.action+'" requires a "data" property. Example: {attr: "'+e.attr+'", action: "'+e.action+'", data: '+t+"}");if(!("AllowOnlyKeys"!==e.action&&"ExcludeKeys"!==e.action||_.isArray(e.data)||_.isFunction(e.data)))throw new Error('Action "'+e.action+'" requires "data" to be an array of strings or a function returning an array of strings. Example: {attr: "'+e.attr+'", action: "'+e.action+'", data: ["key1", "key2"]}');if("AddTo"===e.action)if("pathname"===e.attr){if(!_.isString(e.data)&&!_.isObject(e.data)&&!_.isFunction(e.data))throw new Error('Action "AddTo" for pathname requires "data" to be a string, object, or function. Example: {attr: "pathname", action: "AddTo", data: "additional/segment"}')}else if(!_.isObject(e.data)&&!_.isFunction(e.data))throw new Error('Action "AddTo" requires "data" to be an object or function. Example: {attr: "search", action: "AddTo", data: {key1: "value1", key2: "value2"}}');try{return new _w(e.attr,e.action,e.data,e.target)}catch(n){if(-1!==n.message.indexOf("Invalid attribute")||-1!==n.message.indexOf("Invalid action")||-1!==n.message.indexOf("requires")||-1!==n.message.indexOf("expects"))throw n;throw new Error("Failed to create UrlTransform: "+n.message+". Transform object: "+JSON.stringify(e))}};Tw=function(t,n,i,r){return[new _w("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new _w("href","ForceSecure")]},Ir={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:xw=function(){var e=Ro(),t=L.isElectron()?Tw(L.electronAppName(),L.electronResourcesPath(),L.electronUserDirectory(),L.electronUserHomeDirectory()):[];return Ow([].concat(t),e)}},Rw=new bw(500,function(e){!S0()||uf(document)||Ru()}),Aw=function(e){if("string"==typeof e)return new Li(e);if(Cw(e))return e;throw new Error("Invalid type from custom URL source. Must be either an URL or a String of a valid url.")},kw=function(e){return e||window.location},Ow=function(e,t){return _.reduce(e,function(e,t){return t.applyTo(e)},t)};var Tw,xw,Rw,Aw,kw,Ow,Nw,Se={state:Ir,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(n,e){_.each(e,function(e){var e=_w.fromJSON(e),t=_.isArray(e.target)?e.target:[e.target];(_.contains(t,"location")||_.contains(t,"both")||_.contains(t,"all"))&&n.commit("addTransform",e),(_.contains(t,"attribute")||_.contains(t,"both")||_.contains(t,"all"))&&A.dispatch("nodeAttr/addAttrTransform",e),(_.contains(t,"network")||_.contains(t,"all"))&&A.dispatch("networkUrl/addNetworkTransform",e)})},addInternalTransforms(t,e){_.each(e,function(e){t.commit("addInternalTransform",_w.fromJSON(e))})},removeInternalTransforms(t,e){_.each(e,function(e){t.commit("removeInternalTransform",_w.fromJSON(e))})},startPolling(e){Rw.start()},stopPolling(e){e.state.currentSrcFn===xw&&Rw.stop()}},mutations:{addTransform(e,t){e.transforms.push(t)},addInternalTransform(e,t){e.internalTransforms.push(t)},removeInternalTransform(e,t){t=_.indexOf(e.internalTransforms,t);0<=t&&e.internalTransforms.splice(t,1)},clearTransforms(e){e.transforms=[],A.commit("nodeAttr/clearURLTransforms"),A.commit("networkUrl/clearURLTransforms")},clearInternalTransforms(e){e.internalTransforms=[]},changeUrlSource(e,t){if(t){if("string"==typeof t)var n=new Li(t),n=_.partial(_.identity,n);else if(Cw(t))n=_.partial(_.identity,t);else{if("function"!=typeof t)throw new Error("URL Source must be either a Function that returns a URL or String that is a valid URL. Or, it may be a static URL or String.");n=t}e.currentSrcFn=n,Rw.start(!S0())}else e.currentSrcFn=xw,Rw.stop()}},getters:{url:Nw=function(e){try{var t=function(e){return n=e},n=_.reduce([e.currentSrcFn,Aw,t,_.partial(Ow,e.transforms),Aw,t,_.partial(Ow,e.internalTransforms),Aw],function(e,t){return t(e)},null)}catch(i){T.critical(i),n=kw(n)}return n},href(e){return Nw(e).href}}};function Mw(e){var t;if("function"==typeof Mw[e])return t=_.toArray(arguments).slice(1),Mw[e].apply(Mw,t)}_.extend(Mw,{getHref(){return L.get()},clearTransforms(){A.commit("location/clearTransforms"),Ru()},addTransforms(e){A.dispatch("location/addTransforms",e),Ru()},setUrl(e){A.commit("location/changeUrlSource",e)},useBrowserUrl(){A.commit("location/changeUrlSource"),Ru()}});function Lw(){return C.get("guideSeenTimeoutLength")||1e4}Pw=[];var Pw,Dw={name:"StepTimeoutMonitor",initialize(){this._beforeGuideShow=_.bind(Dw.beforeGuideShow,Dw),this._stop=_.bind(Dw.stop,Dw),R.beforeGuideShow.on(this._beforeGuideShow),R.guideSeen.on(this._stop),R.guideNotSeen.on(this._stop)},teardown(){Dw.stop(),R.beforeGuideShow.off(this._beforeGuideShow),R.guideSeen.off(this._stop),R.guideNotSeen.off(this._stop)},beforeGuideShow(e){var t=e.data[0],e=e.data[1],n=t.guide;C.get("enableGuideTimeout")&&(e=-1<_.indexOf(["dom","launcher","badge","api"],e),"active"===t.seenState||t.hasBeenControlled()||t.isTimedOut()||(n=n&&n.steps)&&(0!==_.indexOf(n,t)||e)&&Dw.start(t))},start(e){var d,t,n=Pw[0];n&&n===e.id||(n&&n!==e.id&&(n=Pw[1],_.isFunction(n))&&n(),e.shouldStartTimer()&&(d=Lw(),n=_.partial(function(e,t){var n,i,r,o,a,s=b(t);s&&(n=s.findStepById(e))&&!s.isShown()&&(a=n.canShowOnPage(Au())?xm(n)?"other":"element":"page",i=t,r=e,o=v(),a=a,s=s.language,i=zm({type:"guideTimeout",guideId:i,stepId:r,visitorId:o,seen_reason:a,language:s,guideSeenTimeoutLength:d}),Vm(i),R.guideTimeout.trigger(i),T.info("Guide "+t+" timed out showing Step "+e),n.timeout()),Dw.stop()},e.id,e.guide.id),t=Ut(n,d),Pw=[e.id,n,t]))},stop(){var e=Pw[2];e&&Gt(e),Pw=[]},getGuideSeenTimeoutLength:Lw};function Fw(){console.warn("This functionality is not supported by your subscription.")}function a(e){return va?e:Fw}var Uw="is going away",Gw="is gone",Bw=_.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return T.info(e),e});function Hw(e,t,n){return function(){return Bw("pendo."+t,n),(e||_.noop).apply(null,arguments)}}function zw(e){return e&&1===e.length?e[0]:_.any(e,Lt)?m.all(e).then(function(e){return _.any(e)}):void 0}function jw(){this.elements=[],this.attributes=this.attributes&&Pt(this.attributes)||{},this.attributes.device&&this.attributes.device.type?"all"==this.attributes.device.type?this.attributes.device={desktop:!0,mobile:!0}:(e=this.attributes.device.type,this.attributes.device={mobile:!1,desktop:!1},this.attributes.device[e]=!0):this.attributes.device=this.attributes.device||{},_.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),Wc(e,this)},this),this.isActivatedByEvent=function(e){return!!(this.hasLaunchMethod("dom")&&this.attributes&&this.attributes.activation&&_.contains(this.attributes.activation.event,e)&&this.canEventActivatedGuideBeShown())},this.isContinuation=function(e){return!1},this.isGuideWidget=function(){return this.attributes&&"launcher"===this.attributes.type},this.isOnboarding=function(){return this.attributes&&!!this.attributes.isOnboarding},this.isWhatsNew=function(){var e=_.first(this.steps);return e&&"whatsnew"===e.type},this.isAnnouncement=function(){return _.get(this,"attributes.isAnnouncement")},this.isHelpGuide=function(){return!this.isOnboarding()&&!this.isWhatsNew()&&!this.isGuideWidget()},this.nextStep=function(e){return null},this.hasLaunchMethod=function(e){return this.launchMethod&&0<=this.launchMethod.indexOf(e)},this.shouldAutoDisplay=function(){return!this.outsideTimebox()&&this.hasLaunchMethod("auto")&&_.any(this.steps,function(e){return e.shouldAutoDisplay()})},this.autoDisplay=function(){if(this.shouldAutoDisplay())return zw(_.map(this.steps,function(e){return e.autoDisplay()}))},this.isRendered=function(){return _.any(this.steps,function(e){return e.isRendered()})},this.isShown=function(){return _.any(this.steps,function(e){return e.isShown()})},this.canShowOnDevice=function(){if(!Xu()){var e=Zu(),t=this.attributes&&this.attributes.device||{};if(!e&&!1===t.desktop)return!1;if(e&&!0!==t.mobile)return!1}return!0},this.canShow=function(){return this.canShowOnDevice()&&_.any(this.steps,function(e){return e.canShow()})},this.launch=function(e){var t;return this.hasGuideBeenControlled()||(t=this.show(e)),this.isShown()?_.each(this.steps,function(e){e.seenState="active"}):!this.isShown()&&this.isControlGroup()&&_.each(this.steps,function(e){e.seenState="notSeen"}),t},this.show=function(t){return zw(_.map(this.steps,function(e){return e.show(t)}))},this.checkForHiddenGroupSteps=function(){},this.hide=function(t){_.each(this.steps,function(e){e.hide(t)})},this.hasBeenSeen=function(){return _.all(this.steps,function(e){return e.hasBeenSeen()})},this.canBadgeBeShown=function(){var e=this.attributes.badge;return!(e&&e.isOnlyShowOnce&&this.steps[0].hasBeenSeen())},this.placeBadge=function(){var e;this.canShowOnDevice()&&this.hasLaunchMethod("badge")&&this.canBadgeBeShown()&&!this.outsideTimebox()?(e=_.get(this,"attributes.resourceCenter"),this.isControlGroup()&&!e?this.hasGuideBeenControlled()||this.steps[0].onControlGuide("control"):(e=_.first(this.steps))&&_.isFunction(e.canShowOnPage)&&e.canShowOnPage(Au())&&eg(this)):ig(this)},this.findStepById=function(t){return _.find(this.steps,function(e){return e.id===t})},this.isPoweredByEnabled=function(){return!!_.find(this.steps,function(e){return e.isPoweredByEnabled()})},this.searchFor=function(t){var e,n,i=null;return xt(this.name,t,!0)?i="name":(e=!(n=[]),(e=0<(n=this.attributes&&this.attributes.launcher&&this.attributes.launcher.keywords?this.attributes.launcher.keywords:n).length?_.find(n,function(e){return xt(e.text,t,!0)}):e)?i="tag":(n=_.map(this.steps,function(e){return e.searchFor(t)}),0<_.compact(n).length&&(i="content"))),!!i&&{guide:this,field:i}},this.shouldBeAddedToResourceCenter=function(){var e,t=this;return!(!t.steps||!t.steps.length||t.control||!t.eligibleInFrame&&(!t.steps[0].content&&!_.isFunction(t.steps[0].fetchContent)||(e=t.steps[0],!t.hasLaunchMethod("launcher")&&!t.isWhatsNew())||!e.canShowOnPage(Au())||!t.canShowOnDevice()||!xm(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(Au())||!this.canShowOnDevice()||!xm(e)||this.outsideTimebox())};var e,n="PENDO_HELPER_STEP";return this.getPositionOfStep=function(e){var t=_.reject(this.steps,function(e){return xt(e.content,n)});return _.indexOf(t,e)+1},this.getTotalSteps=function(){return _.reject(this.steps,function(e){return xt(e.content,n)}).length},this.getSeenSteps=function(){return _.size(_.filter(this.steps,function(e){return e.hasBeenSeen()}))},this.isComplete=function(){var t=["advanced","dismissed"];return _.all(this.steps,function(e){return _.contains(t,e.seenState)})},this.isInProgress=function(){var t=["active","advanced","dismissed"];return!this.isComplete()&&_.any(this.steps,function(e){return _.contains(t,e.seenState)})},this.isNotStarted=function(){return!this.isInProgress()&&!this.isComplete()},this.fetchContent=function(){return m.all(_.map(this.steps,function(e){if(_.isFunction(e.fetchContent))return e.fetchContent()}))},this.canEventActivatedGuideBeShown=function(){return!(this.attributes.dom&&this.attributes.dom.isOnlyShowOnce&&this.steps[0].hasBeenSeen())},this.isGuideSnoozed=function(){return _.any(this.steps,function(e){return e.isSnoozed()})},this.hasGuideBeenControlled=function(){return _.any(this.steps,function(e){return e.hasBeenControlled()})},this.isControlGroup=function(){return this.control},this.shouldShowSnoozedGuide=function(){var t=!1;return!this.outsideTimebox()&&_.any(this.steps,function(e){return!(t="dismissed"===e.seenState?!0:t)&&"snoozed"===e.seenState&&e.snoozeEndTime&&(new Date).getTime()>e.snoozeEndTime})},this.shouldRepeatGuide=function(){var t;return!(!this.redisplay||this.outsideTimebox()||this.isGuideSnoozed()||this.hasReachedMaxDismissals()||(t=0,_.forEach(this.steps,function(e){t=Math.max(t,e.lastSeenAt||0)}),!t))&&S()-t>=this.redisplay.interval},this.isExpired=function(){return!!this.expiresAfter&&S()>this.expiresAfter},this.isBeforeStartTime=()=>!!this.showsAfter&&S()<this.showsAfter,this.outsideTimebox=()=>this.isExpired()||this.isBeforeStartTime(),this.calculateDismissCountFromSteps=function(){var t=0;return _.forEach(this.steps,function(e){e.dismissCount&&(t+=e.dismissCount)}),t},this.hasReachedMaxDismissals=function(){return this.redisplay&&0!==this.redisplay.maxDismissals&&this.calculateDismissCountFromSteps()>=this.redisplay.maxDismissals},this}function Ww(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){_.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var qw=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function Vw(){var r,s=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(_.each(this.steps,function(e){e.after("render",function(){_.each(e.elements,function(e){M(e).addClass("_pendo-guide-walkthrough_")})})}),r=null,this.sections=_.reduce(this.steps,function(e,t){var n,i;return i=t,!(n=r)||(n=_.last(n)).attributes.isRequired!=i.attributes.isRequired&&n.attributes.isRequired?(e.push(r),r=[t]):r.push(t),e},[]),this.sections=_.compact(this.sections.concat([r])),this.findSectionForStep=function(t){return _.find(this.sections,function(e){return _.contains(e,t)})},this.getSubSection=function(e,t){t=_.indexOf(e,t);return e.slice(t+1)},this.isContinuation=function(e){var t=this.isTopLevel||this.isModule,n=this.hasResourceCenterContent;return(!t||n)&&!!this.nextStep(e)},this.nextStep=function(t){var e=null;if(this.isGuideSnoozed())return null;if(null==t){var n=this;if(!(n=n.steps)||!n.length)return null;var{currentStep:i,currentIndex:r}=_.reduce(n,(e,t,n)=>{var i=e.currentStep["lastSeenAt"];return null!=i&&t.lastSeenAt>i?{currentStep:t,currentIndex:n}:e},{currentStep:n[0],currentIndex:0});if("dismissed"===i.seenState)return null;if("function"==typeof i.isSnoozed&&i.isSnoozed())return null;if("active"===i.seenState||"snoozed"===i.seenState)return i;if("advanced"!==i.seenState)return null;{const a=i["destinationStepId"];return a?_.find(n,function(e){return e.id===a}):n[r+1]||null}}for(var o=0;o<this.steps.length;o++)if(this.steps[o].id===t.guideStepId){if("dismissed"===t.state)break;if("active"===t.state||"snoozed"===t.state){e=this.steps[o];break}if("advanced"===t.state&&t.destinationStepId){e=_.find(this.steps,function(e){return e.id===t.destinationStepId});break}if(o+1<this.steps.length){e=this.steps[o+1];break}}return e?(i=(new Date).getTime(),(r=t.time)&&432e5<i-r&&!qw(this)?(s||(T.info("Multi-step continuation has expired",{contexts:["guides","info"]}),s=!0),null):e):null},this.shouldAutoDisplay=function(){return this.hasLaunchMethod("auto")&&(this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||_.all(this.steps,function(e){return e.shouldAutoDisplay()}))},this.autoDisplay=function(){var e,t,n;if(this.shouldAutoDisplay())return e=this.shouldRepeatGuide(),t=_.first(this.steps),n=this.nextStep($h())||t,this.shouldShowSnoozedGuide()||e?n.show(e?"repeatGuide":"auto"):t.autoDisplay()},this.launch=function(e){return _.first(this.steps).show(e)},this.show=function(e){var t=$h(),n=_.first(this.steps),t=(this.channel?this.nextStep():this.nextStep(t))||n;return(t=this.forceShowFirstStep?n:t).show("continue"===e&&t===n&&"auto"===n.seenReason?"auto":e)},this.isComplete=function(){var e=_.last(this.steps);return!!e&&_.contains(["advanced","dismissed"],e.seenState)},this.activeStep=function(){var e=[].concat(this.steps).reverse();return _.findWhere(e,{seenState:"active"})}),this}function Kw(){var a=this;function t(r){var o=[];return function(e){try{return e.apply(a,_.toArray(arguments).slice(1))}catch(i){var t,n="ERROR in guide "+r+' (ID="'+a.id+'")';throw o.push(S()),5<=o.length&&(t=0<(t=_.last(o)-_.first(o))?(o.length-1)/(t/6e4):Infinity,Kw.MAX_ERRORS_PER_MINUTE<=t&&(n="Exceeded error rate limit, dropping guide.\n"+n,Bu.addGuide(a),R.trigger("renderFail",a)),o.shift()),T.critical(n,{error:i}),i}}}return _.each(["canShow","placeBadge","show"],function(e){a[e]=_.wrap(a[e],t(e))}),a}function $w(){return _.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=_.wrap(this.shouldBeAddedToLauncher,function(e){return A.getters["frames/hasFrames"]()?!(!A.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!A.getters["frames/isGuideInDifferentFrame"]()(this)&&A.getters["frames/shouldBeAddedToLauncher"]()(this):e.apply(this,arguments)}),this.shouldBeAddedToResourceCenter=_.wrap(this.shouldBeAddedToResourceCenter,function(e){return A.getters["frames/hasFrames"]()?!(!A.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!A.getters["frames/isGuideInDifferentFrame"]()(this)&&A.getters["frames/shouldBeAddedToResourceCenter"]()(this):e.apply(this,arguments)})),this}function Jw(e){var t=this;return"whatsnew"===t.type||_.isFunction(e.isAnnouncement)&&e.isAnnouncement()||(t.isShown=_.wrap(t.isShown,function(e){return e.apply(this,arguments)||A.getters["frames/isShownInAnotherFrame"]()(t)})),t}function Yw(o){var a,t,i,s,r,n,d,u=this;return u.pollIds&&u.pollIds.length&&(a="_pendo-poll-selected_",t=_.indexBy(o.polls,"id"),i=_.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=S();Gm(e,t,v(),u.seenReason,o.language),pm(e,t,"advanced",n)},d=function(){var e=M("._pendo-poll_"),t=M("._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=M("._pendo-poll_")[0],e=M("._pendo-poll-submit_",n)[0];e?u.attachEvent(e,"click",function(e){var t=M("._pendo-poll-question_",n),t=_.map(t,function(e,t){e=M("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(_.compact(t)),d()}):u.attachEvent(n,"click",function(e){var t,e=M(yo(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=M("._pendo-poll_ ._pendo-poll-npsrating_")[0],r=M("._pendo-poll_ ._pendo-poll-submit_"),o="_pendo-poll-npsrating-selected_";i&&(r.css({display:"none"}),u.attachEvent(i,"click",function(e){var t=M(":radio:checked",i)[0],n=M("._pendo-poll_");M("label",i).removeClass(a),n.removeClass(o),t&&(M('label[for="'+t.id+'"]').addClass(a),n.addClass(o),r.css({display:""})),_.isFunction(u.resize)&&u.resize()}))}),u.after("show",function(){s=(new Date).getTime()}),u.response=function(e,r){e&&e.length&&(Cv(),_.each(e,function(e,t){var n=function(t,e){if(e&&e.polls&&e.polls.length)return _.find(e.polls,function(e){return e.id===t})}(e.pollId,o),i=zm("pollResponse",u.guideId,u.id,v(),undefined,o.language);_.extend(i.props,{poll_id:e.pollId,poll_response:e.value,duration:(new Date).getTime()-(s||u.lastSeenAt)},r),n&&n.attributes&&n.attributes.type&&_.extend(i.props,{poll_type:n.attributes.type}),yv.push(i)}),yv.flush())}),u}Kw.MAX_ERRORS_PER_MINUTE=30;var Xw={show:function(t,n){if(Xu()&&_.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return Qw(t,n);if(!A.getters["frames/hasFrames"]()||A.getters["frames/isGuideInThisFrame"]()(e)){e=function(e,t){if(e.getGuide().isModule){e=D.getResourceCenter();if(e)return Qw(e.steps[0],t)}}(t,n);if(Lt(e))return e.then(function(){return Qw(t,n)}).then(function(e){return!!e||eS(t,n)});e=Qw(t,n);if(Lt(e))return e.then(function(e){return!!e||eS(t,n)});if(e)return!0}return eS(t,n)},showLocal:Qw};function Zw(e,t,n){var i=e.getGuide().displayDelayMs;return 0<i&&("auto"===t||"repeatGuide"===t)?(e.lock(),e._autoDisplayDelayTimer=Ut(function(){e._autoDisplayDelayTimer=null,e.unlock(),n()},i)):n(),e.isShown()}function Qw(e,t){return qc.hasContent(e)&&Bc.valid(e)?Zw(e,t,function(){e._show(t)}):!(qc.hasContent(e)&&Bc.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(Au()))&&(e.lock(),(_.isFunction(e.fetchContent)?e.fetchContent():qc.fetchContent(e)).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&Bc.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(Qm()?(T.info("guides are loading.",{contexts:["guides","loading"]}),!1):(e.unlock(),Zw(e,t,function(){e._show(t)})))}))}function eS(t,e){var n=t.getGuide();return!(!A.getters["frames/hasFrames"]()||!A.getters["frames/isGuideInDifferentFrame"]()(n))&&(t.lock(),A.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 tS(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 qb),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=_.indexOf(t,this),i=Dp();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:Et(i),template:r};return this.template||(this.template=_.template(this.content||"")),Sc(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(){Gt(this._autoDisplayDelayTimer),this._autoDisplayDelayTimer=null,e=!1},this.isTimedOut=function(){return t},this.timeout=function(){t=!0},this.isRendered=function(){return this.elements&&0<this.elements.length},this.isShown=function(){return this.isRendered()||this.isLocked()},this.canShow=function(){return!_.get(this,"guide.attributes.isAnnouncement")&&!!d.canShowOnDevice()&&!this.isShown()&&!_.get(this,"stepIneligibleForApp")&&this.canShowOnPage(Au())&&xm(this)},this.canShowOnPage=function(e){e=Ou(this.regexUrlRule,e);return Pd()&&R.stepEligibility.trigger({stepId:this.id,guideId:this.guideId,eligible:e,reason:"page_match"}),e},this.shouldAutoDisplay=function(){return this.shouldRepeat()||!this.hasBeenControlled()&&!this.isSnoozed()&&!_.contains(["dismissed","advanced"],this.seenState)},this.autoDisplay=function(){var e;if(this.shouldAutoDisplay())return e=this.shouldRepeat()?"repeatGuide":"auto",this.show(e)},this._preRenderHealthCheck=function(){var e,t;return!(!(E.designer||Xu()||Oy())&&(e=Au(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!Ou(this.regexUrlRule,e)?(Bu.addGuide(d),t.error=new Error('attempted display on page "'+e+'"'),T.critical("pendo.io page rule exception",t),1):A.getters["healthCheck/isMissingPageRule"]()(this)?(Bu.addGuide(d),t.error=new Error('missing regexUrlRule"'),T.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(Bu.addGuide(d),t.error=new Error("missing regexUrlRule for page "+this.pageId+'"'),T.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=_.find(Du(),function(e){return e.id===d.moduleIdToReplaceHomeViewWith}),n=_.get(t,"attributes.resourceCenter.integrationProvider"),D.renderNativeIntegration(n,t)):d.continueToNativeModule?D.handleNativeIntegrationContinuation(d):(_.get(d,"attributes.resourceCenter")&&gg(D.getResourceCenter(),mg),d.isModule?Fg.renderResourceCenterModule(d,!1):(n=Fg.renderGuideFromJSON(e.domJson,e),_.get(d,"attributes.resourceCenter")&&(t=d.activeModule?d.activeModule.activeStep().domJson.props.id:e.containerId,t=e.guideElement.find("#"+t),D.adjustResourceCenterWidth(t)),n));var t=e.attributes.width,n=e.attributes.height,i=E.TOOLTIP_ARROW_SIZE,r="_pendo-group-id-"+d.id+"_",r=M(document.createElement("div")).attr("id",Om(e)).addClass(dm+" "+r),o=M(document.createElement("div")).addClass("_pendo-guide-content_").html(e.getContent()),a=M(document.createElement("div")).addClass("_pendo-guide-container_"),s=M(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&&_.isFunction(d.isOnboarding)&&d.isOnboarding()&&r.addClass("_pendo-onboarding_"),e.overlayDiv=s,e.guideElement=r}},this.teardown=function(){T.info("guide step teardown",{contexts:["guide","render"]}),_.each(this.handlers,function(e){jf(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,_.has(this.attributes,"imgCount")&&(this.attributes.imgCount=0),this.hiddenElements&&(_.each(this.hiddenElements,e=>{try{e&&"function"==typeof e.removeAttribute&&(e.removeAttribute("aria-hidden"),e.removeAttribute("inert"))}catch(t){T.error("unable to remove attribute from element",{error:t})}}),this.hiddenElements.length=0,this.hiddenElements=null),Tp(this.id)},this.show=function(e){var t;if(!_.contains(["auto","continue"],e)||!A.getters["healthCheck/isRedisplay"]()(this))return(t=Xw.show(this,e))&&t["catch"]&&t["catch"](_.noop),t;A.dispatch("healthCheck/fixSeenStateAndLogError",{step:this,reason:e})},this.redraw=function(){var e,t,n,i,r=this;r.guideElement&&!E.designer&&(e=_.get(d,"attributes.resourceCenter"),t=d.activeModule?d.activeModule.activeStep().domJson.props.id:r.containerId,n=r.guideElement.find("#"+t),i=d.activeModule&&"AnnouncementsModule"===_.get(d.activeModule,"attributes.resourceCenter.moduleId"),R.beforeUpdate.trigger(r),i||(Fg.recalculateGuideWidth(t,r.guideElement),Fg.adjustGuideContentWidth(t,r.guideElement)),e?(D.adjustResourceCenterWidth(n),i&&d.activeModule.guidesInModule?_.forEach(d.activeModule.guidesInModule,function(e){var t;!_.isUndefined(e.steps[0].attributes.imgCount)&&0!==_.get(e.steps[0],"attributes.imgCount")||(t=e.steps[0].id,t=M(n).find("#pendo-g-"+t)[0]?t:e.id,Fg.adjustGuideContentWidth("pendo-g-"+t,r.guideElement),Fg.flexAllThings("pendo-g-"+t,r))}):Fg.flexAllThings("pendo-resource-center-container")):Fg.flexAllThings(t,r),Fg.recalculateGuideHeight(t,r.guideElement),R.updated.trigger(r))},this._show=function(e){R.beforeGuideShow.trigger(this,e),this.canShow()&&(!Xu()&&d.control?this.hasBeenControlled()||this.onControlGuide("control"):R.beforeMount.trigger(this).cancel||(this.render(),this.isShown()&&this.onShown(e)))},this.shouldStartTimer=function(){return d.canShowOnDevice()&&!d.attributes.isAnnouncement&&!Cm(this)},this.getStepPollTypes=function(n,e){var i;if(e.pollIds&&e.pollIds.length)return i=[],_.forEach(e.pollIds,function(t){var e=_.find(n.polls,function(e){return e.id===t});e&&e.attributes&&e.attributes.type&&i.push(e.attributes.type)}),i},this.onControlGuide=function(e){var t;Xu()||(this.seenReason=e,this.lastSeenAt=S(),t=this.getStepPollTypes(d,this),this.hasBeenControlled())||(Dm(this.guideId,this.id,v(),e,d.language,t),_.each(d.steps,function(e){e.seenState="notSeen"}))},this.onShown=function(r){var e,t,n=this;n.overrideElement&&(M.addClass(n.overrideElement,"triggered"),n.overrideElement.checkAriaExpanded)&&n.overrideElement.checkAriaExpanded(),Xu()||(n.seenReason=r,n.seenState="active",e={color_mode:n.isDarkMode?"dark":"default",last_updated_at:n.lastUpdatedAt},(t=this.getStepPollTypes(d,n))&&(e.step_poll_types=t),Fm(n.guideId,n.id,v(),r,d.language,e),_.each(d.steps,function(e){var t,n,i;"snoozed"===e.seenState&&(e.snoozeEndTime=0,t=d.id,e=e.id,n=v(),i=d.language,t=zm({type:"guideSnoozeCanceled",guideId:t,stepId:e,visitorId:n,seen_reason:r,language:i}),Vm(t,null,!0),R.guideSnoozeCancelled.trigger(t))})),$c.runCustomScripts(n,d,Xu()),A.dispatch("frames/guideStepShownInFrame",{guideId:d.id,stepId:n.id,isShown:n.isShown()})},this.hide=function(e){var t=this;t.unlock(),R.beforeUnmount.trigger(t),t.teardown(),_.each(t.elements,function(e){Wa(e)}),R.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&&(M.removeClass(t.overrideElement,"triggered"),t.overrideElement.checkAriaExpanded)&&t.overrideElement.checkAriaExpanded(),A.dispatch("frames/guideStepHiddenInFrame",{guideId:d.id,stepId:t.id})},this.advance=function(){"advanced"===this.seenState&&!this.isRendered()||Em(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||bm(this)},this.trackAction=function(e){var t;(e=e||{}).elementId&&_.isString(e.elementId)&&(t=_.isArray(e.actions)?e.actions:e.action?[_.omit(e,"elementId","elementType","actions")]:[],t=_.filter(t,sc),t=_.map(t,function(e){return"openLink"===e.action&&e.url?_.extend({},e,{url:Bo(e.url)}):e}),e={type:"guideActivity",guideId:d.id,stepId:this.id,ui_element_id:e.elementId,ui_element_type:(e=e.elementType,e=_.isString(e)?e.toUpperCase():"",_.contains(oc,e)?e:"BUTTON"),ui_element_actions:t,language:d.language},Vm(zm(e)))},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()&&S()-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};F(e,t,n,!0),this.handlers.push(i)},this.searchFor=function(e){return!(e.length<3)&&xt(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&Dl.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&Tl(this)},this.getType=function(){return this.domJson?_.get(this,"attributes.calculatedType"):this.type},this}function nS(){return this.after("render",function(){var e,t;G&&G.contentWindow&&G.style&&(e=_.first(M('#pendo-resource-center-container, [id^="pendo-g-"]')))&&(e=f(e))&&(t={mutation:"preview/setIsPreviewBarTop",payload:{isPreviewBarTop:!1}},"0px"===e.top?(G.style.top="auto",G.style.bottom="0px",G.contentWindow.postMessage(t,location.origin)):"0px"!==e.bottom&&G.style.top||(G.style.top="0px",G.style.bottom="auto",t.payload.isPreviewBarTop=!0,G.contentWindow.postMessage(t,location.origin)))}),this}tS.isGuideStep=function(e){return!!e&&_.isFunction(e.render)};const iS={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===Dt.Critical?(i=Te()||{},Q0(e),!1!==E.logStackTraces&&!1!==i.logStackTraces&&n.stack?Ea(e+`
9
- `+n.stack):wa(e)):t.level===Dt.Error?Q0(e):t.level===Dt.Warn&&(i=[e],J0("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()]}}}},rS=x.getSession(),oS="pendo_cd";class aS{constructor(){this.name="CloneDetection"}initialize(){if(_.isFunction(window.BroadcastChannel))return x.registry.addSession(oS),this.tabId=Kn.getTabId(),this.id=Tt(16),this.channel=new BroadcastChannel("pendo-clone-detection-"+E.apiKey),this.channel.addEventListener("message",_.bind(this.onmessage,this)),this.detectClonedSession(this.id),_.bind(this.teardown,this)}teardown(){this.stopCloneDetectionTimer(),this.channel.removeEventListener("message",this.onmessage),this.channel.close(),this.channel=null}onmessage(e){var t=_.get(e,"data.type"),n=_.get(e,"data.tabId"),i=_.get(e,"data.id");if(n===this.tabId)switch(t){case"pendo-clone-test":i!==this.id&&this.isClonedSession(i)&&this.sendMessage("pendo-change-tab-id",{tabId:n,id:i});break;case"pendo-change-tab-id":i===this.id&&this.clearClonedStorage()}}detectClonedSession(e){var t=rS.getItem(oS)||"";-1===t.indexOf(e)&&(t+="-"+e),rS.setItem(oS,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()}isClonedSession(e){return this.startCloneDetectionTimer(),-1===(rS.getItem(oS)||"").indexOf(e)}clearCloneDetectionValue(){rS.removeItem(oS),this.cloneDetectionTimer=null}startCloneDetectionTimer(){this.stopCloneDetectionTimer(),this.cloneDetectionTimer=Ut(_.bind(this.clearCloneDetectionValue,this),1e4)}stopCloneDetectionTimer(){this.cloneDetectionTimer&&(Gt(this.cloneDetectionTimer),this.cloneDetectionTimer=null)}clearClonedStorage(){rS.clearPendo(),Kn.setParentTabId(this.tabId),this.tabId=Kn.newTabId(),R.trigger("tabIdChanged:self"),A.dispatch("frames/setTabId",this.tabId)}sendMessage(e,t){this.channel.postMessage(Object.assign({type:e},t))}}let sS=new aS;function dS(e){A.dispatch("frames/setReady",{isReady:!0})}var uS=["unknown","hidden","visible"];function cS(e){return"visible"===e.visibility||"unknown"===e.visibility}lS={};var lS,t={actions:{init(e){var t,n,i=e.state;i.initialized||(x.registry.addSession(Gn),x.registry.addSession(Bn),t=Kn.addTracerIds({}),n=Ae(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),R.ready.on(dS),R.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&U.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),sS.initialize(),e.commit("setInitialized",!0))},changeGuideList(e,t){e=e.state,t=hS(t);U.postMessage({action:"frames/receiveGuideList",frameId:e.frameId,guides:t,autoOrdering:E.autoOrdering||[]})},receiveGuideList(e,t){e.commit("setGuideList",t),t.frameId===e.state.frameId&&e.commit("setGuidesLoaded"),gS(e.state),fS()},join(e){var t,n,i,r;e.state.disabled||(ug(),t=e.state,n=window.top==window,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:hS(y())}),(r=[].concat(C.get("leaderKey"))).length||t.agentInstallType!==xe||(r=[E.apiKey]),e.dispatch("receiveFrame",{frame:_.extend({agentInstallType:t.agentInstallType,id:t.frameId,joinedAt:S(),isTop:n,visibility:n?"visible":"unknown",apiKey:E.apiKey,leaderKey:r,forcedLeader:C.get("forcedLeader")},i)}))},receiveFrame(e,t){var n,i=e.state;if(E.designerv2.launched&&(n=Object.assign({},ab.hostConfig,{selectionOnly:!0}),U.postMessage({action:"frames/addSelectionModeToFrames",options:n})),!i.frames[t.frame.id]||!i.frames[t.frame.id].id){if(e.commit("addFrame",t.frame),e.commit("setGuideList",{frameId:t.frame.id,guides:_.toArray(_.get(t,"frame.guides",[]))}),t.frame.isTop){for(var r=e.getters.leaderKeyPreference(),o=_.filter(i.frames,e=>e.isTop);r.length;){var a=r.shift(),s=_.filter(o,e=>e.apiKey===a);if(s.length){o=s;break}}e.commit("setTopId",o[0].id)}e.commit("setLeadershipMode",t.frame.agentInstallType),t[Iy]&&e.dispatch("receiveStartPreview",t),U.postMessage({action:"frames/receiveFrame",frame:i.frames[i.frameId],"pendo-preview":e.rootState.preview.preview}),e.dispatch("waitThenElectLeader")}},leave(t){var e=t.state;U.postMessage({action:"frames/removeFrame",frameId:e.frameId}),_.each(e.frames,function(e){t.commit("removeFrame",e.id)}),U.close()},removeFrame(e,n){e.getters.hasFrame()(n.frameId)&&(e.commit("removeFrame",n.frameId),_.each(lS,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete lS[t])}),e.dispatch("electLeader"))},waitThenElectLeader:_.debounce(function(e){e.dispatch("electLeader")},50),electLeader(e){var t=e.state;let n=t.frames;var i=e.getters.leaderKeyPreference();if(i.length)for(;i.length;){const a=i.shift();var r=_.filter(t.frames,e=>e.apiKey===a);if(r.length){n=r;break}}var o=_.filter(n,e=>e.forcedLeader),o=(o.length&&(n=o),_.find(n,e=>e.isTop));o?e.dispatch("followLeader",{leaderId:o.id}):(o=_.min(n,"joinedAt"),e.dispatch("followLeader",{leaderId:o.id})),gS(e.state),e.getters.isLeader()&&R.childFrameJoined.trigger()},followLeader(e,t){var n=e.state,i=n.leaderId,r=t.leaderId;e.commit("setLeaderId",t.leaderId),i!==r&&R.leaderChanged.trigger({frameId:n.frameId,oldLeaderId:i,newLeaderId:r})},showGuideStep(t,n){var i=_.filter(t.state.frames,function(e){return e.id!==t.state.frameId&&"hidden"!==e.visibility&&e.guides&&e.guides[n.guideId]});return function r(){var e=i.shift();return e?t.dispatch("requestShowGuideStepInFrame",_.extend({frameId:e.id},n)).then(function(e){return e.error?m.reject(e.error):e.isShown?e:r()}):m.resolve({isShown:!1})}()},requestShowGuideStepInFrame(e,t){var n;return e.state.frames[t.frameId]?(e=t.frameId+"/"+Tt(32),n=m.defer(),lS[e]=n,U.postMessage(_.extend({action:"frames/showGuideStepInFrame",requestId:e},t)),n.promise):m.reject({error:"Frame not found"})},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=b(n.guideId))&&e.findStepById(n.stepId))?Lt(e=Xw.showLocal(e,n.reason))?e.then(i)["catch"](_.noop):i(e):t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:!1}))},guideStepShownInFrame(e,t){e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:t.isShown}),U.postMessage(_.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame(e,t){var n=lS[t.requestId];n&&(n.resolve(t),delete lS[t.requestId]),e.getters.isShownInFrame()(t.frameId,{id:t.stepId})!==t.isShown&&(e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:t.isShown}),fS())},hideGuides(e,t){t=_.isArray(t)?t:[],U.postMessage({action:"frames/receiveHideGuides",frameId:e.state.frameId,guideIds:t}),e.commit("hideGuides")},receiveHideGuides(e,t){e.state.frameId!==t.frameId&&(t.guideIds.length?_.each(_.compact(_.map(t.guideIds,b)),function(e){e.hide()}):fm(),e.commit("hideGuides"),fS())},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}),U.postMessage(_.extend({action:"frames/receiveGuideStepHiddenInFrame",frameId:e.state.frameId},t)),n&&e.dispatch("fixDoubleDisplay",t)},receiveGuideStepHiddenInFrame(e,t){e.state.frameId!==t.frameId&&e.getters.isShownInFrame()(t.frameId,{id:t.stepId})&&(e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:!1}),fS())},fixDoubleDisplay(n,i){_.each(n.state.frames,function(e,t){t!==n.state.frameId&&n.getters.isShownInFrame()(t,{id:i.stepId})&&U.postMessage(_.extend({action:"frames/receiveHideGuideInFrame",frameId:t,guideId:i.guideId,stepId:i.stepId},i))})},receiveHideGuideInFrame(e,t){e.state.frameId===t.frameId&&(t=(e=b(t.guideId))&&e.findStepById(t.stepId))&&(t.hide(),fS())},changeLastGuideStepSeen(e,t){U.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,i;t.frameId!==e.state.frameId&&(i=e.state.frames[t.frameId],n=_.get(i,"agentInstallType"),i=_.get(i,"apiKey"),(n&&n!==e.state.agentInstallType||i&&i!==E.apiKey)&&delete t.lastGuideStepSeen.visitorId,e.dispatch("guideState/updateLastGuideStepSeen",t.lastGuideStepSeen,{root:!0}),e.dispatch("guideState/write",null,{root:!0}),t=(i=b((n=t.lastGuideStepSeen).guideId))&&i.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){U.postMessage(_.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState(e,t){t.frameId!==e.state.frameId&&_.each(zh,function(e){t[e]&&Hm(t[e],e)})},startPreview(e){U.postMessage({action:"frames/receiveStartPreview","pendo-preview":e.rootState.preview.preview})},restartPreview(e){U.postMessage({action:"frames/receiveRestartPreview","pendo-preview":e.rootState.preview.preview})},stopPreview(e,t){U.postMessage(_.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview(e,t){e.dispatch("preview/start",t[Iy],{root:!0}),Ty(window),Wv()},receiveRestartPreview(e){var t=Ay(y(),$h());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview(e,t){Hy({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=ds(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility(e,t){var n;!_.find(uS,function(e){return e===t.visibility})||(n=t.visibility,e.getters.frameVisibility()===n)||(e.commit("setFrameVisibility",{frameId:e.state.frameId,visibility:n}),U.postMessage({action:"frames/receiveFrameVisibility",frameId:e.state.frameId,visibility:n}))},receiveFrameVisibility(e,t){e.commit("setFrameVisibility",t),fS()},addSelectionModeToFrames(e,t){t=t.options;ab.launchInAppDesigner(t)},syncOptions(e,t){t.options&&U.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&&Op(t.options)},syncIdentity(e,t){var n;(t.visitorId||t.accountId)&&({visitorId:t,accountId:n}=t,U.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)&&_i(t.visitorId,t.accountId)},changeCookieConsent(e,t){U.postMessage({action:"frames/receiveCookieConsent",frameId:e.state.frameId,tiers:t.tiers})},receiveCookieConsent(e,t){e.getters.getMyApiKey()!==t.apiKey||e.state.frameId===t.frameId||p0(t.tiers)||c0(t.tiers)},setReady(e,t){e.commit("setReady",t.isReady)},receiveGuideSeen(e,t){t.frameId!==e.state.frameId&&R.guideSeen.trigger(t.guideSeen)},checkGuideEligibility(e,t){var{guideId:t,stepId:n,currentStepIndex:i,sourceFrame:r,promiseId:o}=t,t=b(t),n=t&&t.findStepById(n),a={};return t&&n?(0===i&&(i=ic(t))&&((i=_.first(lo(i)))?ds(i)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),_.isFunction(n.canShowOnPage)&&!n.canShowOnPage(Au())&&(a.PAGE="mismatch"),n.elementPathRule&&((i=_.first(lo(n.elementPathRule)))?ds(i)?n.elementContainsRulesList&&!Am(i,n.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),n.triggerElementPathRule&&((i=_.first(lo(n.triggerElementPathRule)))?ds(i)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),_.get(t,"attributes.embedConfig")&&(n=_.get(t,"attributes.embedConfig.selector"),(i=_.first(lo(n)))?ds(i)||(a.EMBED_CONTAINER="notVisible"):a.EMBED_CONTAINER="notFound")):a.GUIDE="notFound",o&&r&&U.postMessage({errors:a,action:"frameEligibilityResponse",targetFrame:r,resolveId:o}),a},testSelector(e,t){var{selector:t,sourceFrame:n,promiseId:i}=t,r=performance.now();let o=0;try{o=lo(t).length}catch(a){o=0}t=performance.now()-r;return i&&n&&U.postMessage({action:"frameTestSelectorResponse",targetFrame:n,resolveId:i,frameId:e.state.frameId,count:o,timing:t}),{count:o,timing:t}},setTabId(e,t){e.commit("setTabId",t)}},mutations:{addFrame(e,t){var n=t.id;e.frames[n]=_.extend({},e.frames[n],t)},removeFrame(e,t){delete e.frames[t]},setGuideList(e,t){var n=t.frameId;e.frames[n]=_.extend({},e.frames[n],{guides:_.indexBy(hS(t.guides),"id"),autoOrdering:t.autoOrdering})},setStepShown(e,t){var n=t.frameId,n=e.frames[n]=_.extend({},e.frames[n]);n.shown=_.extend({},n.shown),n.shown[t.stepId]=t.shown},setInitialized(e,t){e.initialized=t},setLeaderId(e,t){e.leaderId=t},setFrameId(e,t){e.frameId=t},setTabId(e,t){e.tabId=t},setTopId(e,t){e.topId=t},setAgentInstallType(e,t){e.agentInstallType=t},setLeadershipMode(e,t){e.leadershipMode!==xe&&(e.leadershipMode=t)},setFrameVisibility(e,t){var n=t.frameId;e.frames[n]=_.extend({},e.frames[n],{visibility:t.visibility})},setReady(e,t){e.isReady=t},disableFrameVisibilityCheck(e){e.disableFrameVisibilityCheck=!0},hideGuides(e){_.each(e.frames,function(n){_.each(n.shown,function(e,t){n.shown[t]=!1})})},setChannelType(e,t){e.channelType=t},setGuidesLoaded(e){e.guidesLoaded=!0},setConnectFailed(e){e.connectFailed=!0},updateLastGuideStepSeen(e,t){t&&_.each(e.frames,function(e){e.guides&&(e=e.guides[t.guideId])&&(e=_.findWhere(e.steps,{id:t.guideStepId}))&&(e.seenState=t.state,e.lastSeenAt=t.time,e.seenReason=t.seenReason,t.dismissCount&&(e.dismissCount=t.dismissCount),t.snoozeEndTime)&&(e.snoozeEndTime=t.snoozeEndTime)})}},getters:{allFrames(e){return e.frames},autoOrdering(e){return _.reduce(e.frames,(e,t)=>(e[t.apiKey]=t.autoOrdering,e),{})},leaderExists(e){return!!e.leaderId},isLeader(e){return e.leaderId===e.frameId},leaderKey(e,t){if(t.leaderExists()){t=e.frames[e.leaderId];if(t)return t.apiKey}},isFollower(e){return!!e.leaderId&&e.leaderId!==e.frameId},isTop(e,t){t=t.window();return e.topId===e.frameId||t==t.top},frameVisibility(e){return(e.frames?e.frames[e.frameId]:{}).visibility||"unknown"},isGuideInThisFrame(n){return function(e){var t=n.frames&&n.frames[n.frameId];return!!(t&&t.guides||{})[e.id]}},isGuideInDifferentFrame(i){return function(n){return _.any(i.frames,function(e,t){return t!==i.frameId&&e.guides&&e.guides[n.id]})}},isReady(e){return e.isReady},isShownInAnotherFrame(i){return function(n){return _.any(i.frames,function(e,t){return t!==i.frameId&&e.shown&&e.shown[n.id]})}},isShownInFrame(n){return function(e,t){e=n.frames&&n.frames[e],e=e&&e.shown||{};return!(!e||!e[t.id])}},hasFrame(t){return function(e){return t.frames&&t.frames[e]}},hasFrames(e){return 1<_.size(e.frames)},shouldBeAddedToLauncher(i,e){return function(n){return e.canShowRCBadge()&&_.any(i.frames,function(e,t){return t!==i.frameId&&!!cS(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToLauncher})}},shouldBeAddedToResourceCenter(i,e){return function(n){return e.canShowRCBadge()&&_.any(i.frames,function(e,t){return t!==i.frameId&&e.apiKey===E.apiKey&&!!cS(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToResourceCenter})}},isBroadcastChannel(e){return"BroadcastChannel"===e.channelType},channelType(e){return e.channelType},canShowRCBadge(t,n){if(n.leaderKey()===E.apiKey)return n.isLeader();{let e=_.filter(t.frames,function(e){return e.apiKey===E.apiKey});var n=_.filter(e,e=>e.forcedLeader),n=(n.length&&(e=n),_.find(e,function(e){return e.isTop}));return n?t.frameId===n.id:(n=_.min(e,function(e){return e.joinedAt}),t.frameId===n.id)}},leaderKeyPreference(e){e=_.filter(e.frames,e=>e.leaderKey&&e.leaderKey.length);return 1===_.unique(_.map(e,e=>e.leaderKey.join(","))).length?[].concat(e[0].leaderKey):[]},getMyApiKey(e,t){return t.getMyFrame().apiKey},getMyFrame(e){return e.frames[e.frameId]},window(){return window}},state:{initialized:!1,frameId:null,leaderId:null,tabId:null,agentInstallType:null,leadershipMode:null,topId:null,frames:{},guidesLoaded:!1,channelType:null,ready:!1},requests:lS};function pS(e){var t=_.pick(e,"id","name","launchMethod","isMultiStep","steps","control","lastUpdatedAt","language","state","polls","redisplay","channel");return t.attributes=_.pick(e.attributes,"overrideAutoThrottling","priority","isAnnouncement","resourceCenter","device","sharedServiceVersion","embedConfig","activation"),t._shouldBeAddedToLauncher=_.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e._shouldBeAddedToLauncher||!1,t._shouldBeAddedToResourceCenter=_.isFunction(e.shouldBeAddedToResourceCenter)?e.shouldBeAddedToResourceCenter():e._shouldBeAddedToResourceCenter||!1,t.steps=_.map(e.steps,function(e){return _.pick(e,"id","guideId","type","seenReason","seenState","lastSeenAt","lastUpdatedAt","dismissCount","snoozeEndTime","regexUrlRule","pageId","elementPathRule","triggerElementPathRule","elementContainsRulesList")}),t}function hS(e){return _.map(e,pS)}function fS(){A.state.guideUpdate.useObserver&&A.dispatch("guideUpdate/documentChanged")}function gS(t){var n=_.indexBy(_.filter(y(),function(e){return!e.isFrameProxy}),"id"),e=_.chain(t.frames).filter(function(e){return e.id!==t.frameId}).map(function(e){return _.toArray(_.get(e,"guides",[]))}).flatten(!0).unique("id").filter(function(e){return!n[e.id]}).map(function(e){return _.extend(JSON.parse(JSON.stringify(e)),{isFrameProxy:!0})}).map(jc).value(),e=_.toArray(n).concat(e);_.sortBy(e,iv),Iv(e),Uu(e),t.guidesLoaded&&0===_.size(_.get(t,"frames."+t.frameId+".guides",[]))&&cg()}var mS,or=function(){var n;function i(){A.dispatch("guideUpdate/documentChanged")}const r=_.debounce(i,50);function o(){A.dispatch("guideUpdate/handleScheduledUpdate")}return{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,ag-t),ag),t=Ut(o,t),e.commit("setScheduledUpdate",t))},handleScheduledUpdate(e){e.dispatch("stopScheduledUpdate"),cg()},stopScheduledUpdate(e){e.state.scheduledUpdate&&(Gt(e.state.scheduledUpdate),e.commit("setScheduledUpdate",null))},startObserverIfNeeded(e){e.state.useObserver&&!e.state.observing&&(e.getters.observer().addEventListener("mutation",i),F(window,"animationend",r),F(window,"transitionend",r),F(window,"mouseover",r),e.commit("setObserving",!0))},stopObserver(e){var t=e.getters.observer();t&&(t.removeEventListener("mutation",i),r.cancel(),jf(window,"animationend",r),jf(window,"transitionend",r),jf(window,"mouseover",r)),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setObserver(e,t){n=t},setUseObserver(e){e.useObserver=!0},setObserving(e,t){e.observing=t},setNeedsUpdate(e){e.needsUpdate=!0},setScheduledUpdate(e,t){e.scheduledUpdate=t},startUpdate(e,t){Fd.startTimer(Rd),e.needsUpdate=!1,e.updateId=t},completeUpdate(e,t){Fd.stopTimer(Rd),e.updateId=null,e.updateCompleteTime=t}},getters:{now(){return S()},observer(){return n}},state:{useObserver:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}}}(),e=(mS=["advanced","dismissed","snoozed"],{actions:{init:function(t,e){_.each(e,function(e){_.each(e.steps,function(e){t.commit("updateStepState",e)})})},fixSeenStateAndLogError:function(e,t){var n,i,r=t.step,t=t.reason;e.state.exceptions[r.id]||(n=r.seenState,(i=e.state.steps[r.id])&&i.seenState&&(r.seenState=i.seenState),e.state.exceptions[r.id]=!0,e.dispatch("logRedisplayError",{id:r.id,guideId:r.guideId,reason:t,seenState:i.seenState,previousSeenState:n}))},logRedisplayError:function(e,t){Ea(['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=S();e.steps[t.id]=_.extend({},e.steps[t.id],{pageId:t.pageId,regexUrlRule:t.regexUrlRule,seenState:t.seenState,updatedAt:n,allowedAt:n+6e4})},resetStepStatus:function(e){e.steps={}}},getters:{isRedisplay:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(e.resetAt>t.updatedAt)&&!(S()>=t.allowedAt)&&_.contains(mS,t.seenState)&&!_.contains(mS,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}}),Ir={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}}},vS="pendo-live-preview",yS="pendo-preview",bS="current-guide-preview",wS={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,n=e.getters.storage(),i=JSON.parse(n.getLocal().getItem(yS)),r=(i.apiKey===E.apiKey&&((t=JSON.parse(n.getSession().getItem(vS)))&&(i.livePreview=t),e.commit("setPreview",i)),n.getLocal().getItem(bS));r&&e.commit("setDesignerPreview",JSON.parse(r))}catch(o){}},write(e){try{var t=e.getters.storage(),n=e.state.preview,i=n&&n.livePreview;n?t.getLocal().setItem(yS,JSON.stringify(_.omit(n,"livePreview"))):t.getLocal().removeItem(yS),i?t.getSession().setItem(vS,JSON.stringify(i)):t.getSession().removeItem(vS)}catch(r){}},exit(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview(e){e.commit("setDesignerPreview",null),e.getters.storage().getLocal().removeItem(bS)},launchInAppDesigner(e,t){ab.launchInAppDesigner(t)}},mutations:{updatePreview(e,t){e.preview&&_.extend(e.preview,t)},setPreview(e,t){e.preview=t},setDesignerPreview(e,t){e.designerPreview=t}},getters:{isInPreviewMode(e){return!!e.preview},isInDesignerPreviewMode(e,t){return!!e.designerPreview&&t.isInPreviewMode()},storage(){return x}}};const SS=500,ES=1e4,IS={"box-sizing":"border-box",border:"2px solid #FF4876","border-radius":"2px","box-shadow":"0 0 0 2px rgba(255, 72, 118, 0.35)","pointer-events":"none","z-index":"2147483644"};let _S=document,CS=window,TS=null,xS=[],RS=[],AS=null,kS=null;function OS(){var t=CS.scrollX||CS.pageXOffset||0,n=CS.scrollY||CS.pageYOffset||0;for(let e=0;e<RS.length;e++){var{el:i,box:r}=RS[e];i&&"function"==typeof i.getBoundingClientRect&&(i=i.getBoundingClientRect(),r.style.top=i.top+n+"px",r.style.left=i.left+t+"px",r.style.width=i.width+"px",r.style.height=i.height+"px")}}function NS(t){e=t,TS&&TS.isConnected||((TS=e("<div>").css({position:"absolute",top:0,left:0,width:0,height:0,margin:0,padding:0,border:0,"pointer-events":"none"}).appendTo(_S.documentElement||_S.body)[0]).id="pendo-debugger-highlight-overlay");var e,n=TS;n.textContent="",RS=[];for(let e=0;e<xS.length;e++){var i,r=xS[e];r&&"function"==typeof r.getBoundingClientRect&&(0===(i=r.getBoundingClientRect()).width&&0===i.height||(i=t("<div>").css(Object.assign({position:"absolute"},IS)).appendTo(n)[0],RS.push({el:r,box:i})))}OS()}function MS(e){e.some(e=>{return e=e.getBoundingClientRect(),t=CS.innerHeight||_S.documentElement.clientHeight,n=CS.innerWidth||_S.documentElement.clientWidth,0<e.bottom&&0<e.right&&e.top<t&&e.left<n;var t,n})||(e=e[0])&&"function"==typeof e.scrollIntoView&&e.scrollIntoView({block:"center",inline:"center"})}function LS(e,t){DS(),xS=[];for(let e=0;e<t.length;e++){var n=t[e];n&&1===n.nodeType&&xS.push(n)}if(!xS.length)return 0;if(_S=xS[0].ownerDocument||document,CS=_S.defaultView||window,MS(xS),NS(e),"function"==typeof CS.ResizeObserver){(AS=new CS.ResizeObserver(()=>OS())).observe(_S.documentElement);for(let e=0;e<RS.length;e++)AS.observe(RS[e].el)}var i=xS[0];if(i&&"function"==typeof i.animate){i=i.getBoundingClientRect();if(0!==i.width||0!==i.height){const r=e("<div>").css(Object.assign({position:"fixed"},IS)).appendTo(_S.documentElement||_S.body)[0];r.animate([{top:"0px",left:"0px",width:"100vw",height:"100vh",borderRadius:"0px",opacity:0},{opacity:1,offset:.2},{top:i.top+"px",left:i.left+"px",width:i.width+"px",height:i.height+"px",borderRadius:"2px",opacity:1}],{duration:SS,easing:"ease-in-out"}).onfinish=()=>{r.parentNode&&r.parentNode.removeChild(r)}}}return kS&&Gt(kS),kS=Ut(DS,ES),xS.length}function PS(e,t){try{return LS(e,lo(t))}catch(n){return DS(),0}}function DS(){kS&&(Gt(kS),kS=null),AS&&(AS.disconnect(),AS=null),xS=[],RS=[],TS&&(TS.parentNode&&TS.parentNode.removeChild(TS),TS=null)}const FS=(()=>{const n={isLeader:undefined,frameId:null,tabId:null,frames:{},autoOrdering:[],excludedGuides:[],throttling:{},enableEventLogging:!1,eventsCaptured:[],cspErrors:[],installType:null,doNotProcess:!1},s={TOP_DOWN:"top-down",BOTTOM_UP:"bottom-up"},d={debuggingEnabled:{type:s.TOP_DOWN,defaultValue:!1},guideLoopRunning:{type:s.BOTTOM_UP,defaultValue:!1},stepEligibilitySet:{type:s.BOTTOM_UP,defaultValue:{}},identity:{type:s.BOTTOM_UP,defaultValue:{}},location:{type:s.BOTTOM_UP,defaultValue:{}}},u=["__proto__","constructor","prototype"];var e={init:(e,t)=>{var n;e.commit("setFrameId",Kn.getFrameId()),e.commit("setTabId",Kn.getTabId()),e.commit("setInstallType",Ae()),e.commit("setIsLeader",uc()),uc()?(n=Ld(),e.commit("debuggingEnabled",!0===n.enabled),n.enableEventLogging&&e.commit("enableEventLogging",!0)):U.postMessage({action:"debugger/join",frameId:e.state.frameId}),_.each(t.events,e=>A.dispatch("debugger/eventCaptured",e))},updateLeader:e=>{var t=e.state.isLeader,n=uc();e.commit("setIsLeader",n),n&&Ld().enabled?U.postMessage({action:"debugger/requestSync",frameId:e.state.frameId}):t&&!n&&c(e.state)},requestSync:(e,t)=>{e.state.frameId!==t.frameId&&c(e.state)},join:(n,e)=>{n.state.frameId!==e.frameId&&_.each(d,({type:e},t)=>{e===s.TOP_DOWN&&U.postMessage({action:"debugger/sync",frameId:n.state.frameId,fields:{[t]:n.state[t]}})})},sync:(i,e)=>{if(i.state.frameId!==e.frameId){const{frameId:r,fields:t}=e;_.each(t,(e,t)=>{var n;d[t]&&(n=d[t]["type"],n===s.TOP_DOWN&&i.state.isLeader||n===s.BOTTOM_UP&&!i.state.isLeader||i.commit("_sync_"+t,{value:e,frameId:r}))})}},enableEventLogging:(e,t)=>{e.commit("enableEventLogging",t)},eventCaptured:(e,t)=>{E.designerEnabled||Oy()||Ny()||(e.state.isLeader?e.commit("eventsCaptured",t):U.postMessage({action:"debugger/receiveEventCaptured",frameId:e.state.frameId,event:t}))},receiveEventCaptured:(e,t)=>{e.state.isLeader&&e.commit("eventsCaptured",t.event)},clearEventsCaptured:e=>{e.commit("eventsCaptured",[])},onCspError:(e,t)=>{e.state.isLeader?e.commit("cspError",t):U.postMessage({action:"debugger/recieveCspError",frameId:e.state.frameId,data:t})},recieveCspError:(e,t)=>{e.state.isLeader&&e.commit("cspError",t.data)},checkGuideEligibility(e,t){const{guideId:i,response:n}=t;var t=_.filter(A.state.frames.frames,e=>e.guides&&e.guides[i]);t.length&&(t=_.map(t,n=>{var e=_.map(n.guides[i].steps,(e,t)=>U.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:n.id,stepId:e.id,currentStepIndex:t,guideId:i}));return m.all(e).then(e=>({frameId:n.id,frameVisibility:n.visibility,errors:_.map(e,e=>JSON.parse(e).errors)}))}),m.all(t).then(e=>e).then(e=>n(e))["catch"](e=>n({error:e})))},testSelector(e,t){const{selector:n,response:i}=t;t=_.map(A.state.frames.frames,e=>U.postMessageOrTimeout({action:"frames/testSelector",targetFrame:e.id,selector:n}).then(e=>JSON.parse(e)));m.all(t).then(e=>i(e))},highlightElement(e,t){const{selector:n,targetFrame:i,outlineFrame:r,response:o}=t;t=i?_.filter(A.state.frames.frames,e=>e.id===i):_.values(A.state.frames.frames),t=_.map(t,e=>U.postMessageOrTimeout({action:"debugger/highlightInFrame",targetFrame:e.id,selector:n,outlineFrame:r}).then(e=>JSON.parse(e))["catch"](()=>({count:0})));m.all(t).then(e=>{e=_.reduce(e,(e,t)=>e+(t.count||0),0);o&&o({count:e})})},clearHighlight(){U.postMessage({action:"debugger/clearHighlightInFrame"})},highlightInFrame(e,t){var{selector:t,outlineFrame:n,sourceFrame:i,promiseId:r}=t,n=n?function(e){let t=null;try{t=window.frameElement}catch(n){t=null}if(t)try{return LS(e,[t])}catch(n){return DS(),0}return PS(e,"body")}(E.dom):PS(E.dom,t);return r&&i&&U.postMessage({action:"debuggerHighlightResponse",targetFrame:i,resolveId:r,frameId:e.state.frameId,count:n}),{count:n}},clearHighlightInFrame(){DS()}};const t={},i={setFrameId(e,t){e.frameId=t},setTabId(e,t){e.tabId=t},setIsLeader(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.isLeader,n.debuggingEnabled!==t&&(t?(l(),p(),R.on("stepEligibility",r),R.on("guideUpdateComplete",f),R.on("guideLoopStopped",g),R.on("eventCaptured",a),R.on("identify",l),R.on("urlChanged",p),e&&(o(),R.on("guidesLoaded",o))):(R.off("stepEligibility",r),R.off("guideUpdateComplete",f),R.off("guideLoopStopped",g),R.off("eventCaptured",a),R.off("identify",l),R.off("urlChanged",p),e&&R.off("guidesLoaded",o)))},excludedGuides(e,t){e.excludedGuides=t},autoOrdering(e,t){e.autoOrdering=t},throttling(e,t){e.throttling=t},eventsCaptured(e,t){_.isArray(t)&&0===t.length?e.eventsCaptured=[]:e.debuggingEnabled&&e.enableEventLogging&&(e.eventsCaptured.unshift(t),100<e.eventsCaptured.length)&&e.eventsCaptured.pop()},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 r(e){e=e.data[0];A.commit("debugger/stepEligibilitySet",e)}function o(e){var t=_.map(Yh.sortAndFilter(y({channel:Pu.DEFAULT}),E.autoOrdering),e=>e.id);A.commit("debugger/autoOrdering",t||[]),A.commit("debugger/excludedGuides",E.excludedGuides||[]),A.commit("debugger/throttling",E.throttling||{})}function a(e){A.dispatch("debugger/eventCaptured",e.data[0])}function c(n){_.each(d,({type:e},t)=>{e===s.BOTTOM_UP&&U.postMessage({action:"debugger/sync",frameId:n.frameId,fields:{[t]:n[t]}})})}function l(e){A.commit("debugger/identity",{visitorId:_.get(e,"data.0.visitor_id")||E.get_visitor_id(),accountId:_.get(e,"data.0.account_id")||E.get_account_id(),apiKey:E.apiKey})}function p(){A.commit("debugger/location",{href:Ao(),browserUrl:window.location.href})}function h(e){A.commit("debugger/guideLoopRunning",e)}const f=_.partial(h,!0),g=_.partial(h,!1);return _.each(d,({type:r,defaultValue:e},o)=>{n[o]=e,t[o]=e=>e[o];let a=i[o]||((e,t)=>{e[o]=t});i[o]=_.wrap(a,(e,t,n)=>{!t.isLeader&&r===s.TOP_DOWN||(e(t,n),t.isLeader&&r===s.BOTTOM_UP)||U.postMessage({action:"debugger/sync",frameId:t.frameId,fields:{[o]:n}})}),a=i["_sync_"+o]||a,i["_sync_"+o]=(e,{value:t,frameId:n})=>{var i;i=n,_.isString(i)&&!_.contains(u,i)&&(e.frames[n]||(e.frames[n]={}),e.frames[n][o]||(e.frames[n][o]=d[o].defaultValue),a(e.frames[n],t),e.isLeader||r!==s.TOP_DOWN||a(e,t))}}),{state:n,actions:e,getters:t,mutations:i}})(),US=["src","href"],GS=function(){const s=(e,t)=>_.reduce(e,function(e,t){return t.applyTo(e)},t);return{state:{transforms:[]},actions:{addAttrTransform(e,t){e.commit("addTransform",t)}},mutations:{addTransform(e,t){e.transforms.push(t)},clearURLTransforms(e){e.transforms=[]}},getters:{getAttribute(a){return function(e,t=""){var n,i,e=e.getAttribute?e.getAttribute(t):e[t];if(_.size(a.transforms)<1)return e;if(-1===US.indexOf(t.toLowerCase()))return e;try{n=e,(i=document.createElement("a")).href=n;var r=new Li(i.href);return _.reduce([_.partial(s,a.transforms)],(e,t)=>t(e),r).href}catch(o){return T.critical(o),e}}}}}}();const BS={state:{transforms:[]},actions:{addNetworkTransform(e,t){e.commit("addTransform",t)}},mutations:{addTransform(e,t){e.transforms.push(t)},clearURLTransforms(e){e.transforms=[]}},getters:{getTransformedUrl(r){return function(e){try{var t=function(e,t){if(e instanceof Li)return e;try{return new Li(e)}catch(n){}return new Li(e,Ss(t))}(e,window);return _.size(r.transforms)<1||(n=r.transforms,t=_.reduce(n,function(e,t){return t.applyTo(e)},t)),t.href}catch(i){return T.critical(i),e}var n}}}};var HS,zS,jS,WS,qS=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 Dn(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){!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()}(e)},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"))}}(),VS={name:"Branding",initialize:function(e,t){HS=e,(zS=t).ConfigReader.get("isPendoFree")&&zS.Events.on("guideSeen",KS)},teardown:function(){zS.Events.off("guideSeen",KS)},addBranding:$S};function KS(e){$S(HS,e)}function $S(e,t){var n,i,r,t=t.data[0].props;t.step_poll_types&&-1<t.step_poll_types.indexOf("NPSRating")&&(e=(t=e.findGuideById(t.guide_id).steps[0].guideElement[0].lastElementChild)&&t.dataset.verticalAlignment)&&(e=-1<e.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",Xo()+"/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))}function JS(){var e;Ld().enabled&&uc()&&(A.commit("debugger/debuggingEnabled",!0),E.guides&&_.isUndefined(E.excludedGuides)&&Wv(),YS(),M("#pendo-client-debugger").length||(e=C.get("webSDKDebuggerPluginLoader"),Zb.restartDebugger?Zb.restartDebugger():"function"==typeof e?e():M("#pendo-debugger-plugin").length||((e=document.createElement("script")).src=p(E).createScriptURL(Zo("debugger-plugin.min.js")),e.setAttribute("id","pendo-debugger-plugin"),C.get("pendoGlobalKey")&&e.setAttribute("data-pendo-global-key",C.get("pendoGlobalKey")),M.getBody().appendChild(e)),R.debuggerLaunched.trigger()))}function YS(){jS=jS||function(){const e=()=>y({channel:Pu.DEFAULT});return{store:A,ConfigReader:C,getState(){return JSON.stringify(A.state)},getEventCache(){return[].concat(Ys)},getAllGuides(){return[].concat(e())},getAutoGuides(){return Yh.sortAndFilter(e(),E.autoOrdering)},getBadgeGuides(){return _.filter(e(),Ku)},getLauncherGuides(){return[]},getEventHistory(){return[]},getAllFrames(){return A.getters["frames/allFrames"]()},getChannelType(){return A.getters["frames/channelType"]()},isStepShownInFrame(e,t){return A.getters["frames/isShownInFrame"]()(e,t)},setActiveGuides:Uu,getBody:M.getBody,isMobileUserAgent:et.isMobileUserAgent,doesElementMatchContainsRules:Am,getMetadata:Dp,isStagingServer:le,AutoDisplay:Yh,isLeader:uc,Events:R,observer:_0,guideCache:xv}}(),E.debugging=jS}function XS(e){if(Pd())return e?t:"debugging already enabled";if(!uc())return;const t=Ld();return t.enabled=!0,x.write(Md,t),JS(),e?t:"debugging enabled"}function ZS(){if(!Pd())return"debugging already disabled";A.commit("debugger/debuggingEnabled",!1);var e=Ld();return e.enabled=!1,x.write(Md,e),E.debugging=null,delete E.debugging,M("#pendo-client-debugger").remove(),"debugging disabled"}_.extend(function(e){T.debug(e,{contexts:["debug"]})},jS);const QS=(e,t,n)=>{const i={events:[],add:e=>{i.events.push(e.data[0])},clear:()=>{i.events=[],e.off("eventCaptured",i.add)}};if(e.on("eventCaptured",i.add),t.getters["frames/leaderExists"]())return n.resolve(i);const r=n.defer();return e.on("leaderChanged",()=>{r.resolve(i)}),r.promise},e1=function(){let t,o;return{name:"DebuggerLauncher",initialize:function(n,e){const{Events:i,q:r}=e;o=e.store,QS(i,o,r).then(e=>{o.dispatch("debugger/init",e),o.getters["frames/isLeader"]()&&JS(),e.clear()}),i.on("leaderChanged",()=>{o.dispatch("debugger/updateLeader"),o.getters["frames/isLeader"]()&&JS()}),Ps("pendo-debugger::launch",(e,t)=>{e.config.apiKey===n.apiKey&&QS(i,o,r).then(()=>{t.source.postMessage({type:"pendo-debugger::ready",apiKey:n.apiKey},t.origin),!Pd()&&o.getters["frames/isLeader"]()&&XS(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",a);(t=n).isDebuggingEnabled=(e=!1)=>Pd(e),n.enableDebugging=XS,n.disableDebugging=ZS,n.addDebuggingFunctions=YS},teardown:function(){Ds("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",a),t.debugging&&t.debugging.teardown&&t.debugging.teardown();ZS()}};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})}}();var t1=function(){(WS=WS||{dom:M,placeBadge:eg,showPreview:Mm,stopGuides:ug,removeAllBadges:tg,_:_,sizzle:lo,tellMaster:qs,tell:qs,log:X0,attachEvent:F,createLauncher:_.constant({}),removeLauncher:_.noop,addGuideToLauncher:_.noop,updateLauncherContent:_.noop,DEFAULT_TIMER_LENGTH:ag,getOffsetPosition:ja,getScreenDimensions:Ba,registerMessageHandler:Ps,whenLoadedCall:qf,loadResource:Rs,loadGuideCss:mv,GuideFactory:jc,GuideStep:Wc,extractElementTreeContext:Nf,previewGuideFromJSON:Fg.previewGuideFromJSON,hidePreviewedGuide:Fg.hidePreviewedGuide,shadowAPI:Bi,getTarget:yo,pullContentsFromTargetElement:Rm,doesElementMatchContainsRules:Am,doesElementContentMatchRule:km,getGuideAttachPoint:Qu}).areGuidesEnabled=!Av(),E.designer||(E.designer=WS)},n1=function(){var r,o,a;let s;return{name:"DesignerConnect",initialize:function(e,t){r=e,o=t,Js()||Ps("connect",i);Ps("pendo-designer-launch::launch",c),Ps("pendo-preview::launch",l),e.app_name=document.title,(Vs()||window.opener)&&window.addEventListener&&(r.log(e.app_name+": listening to messages"),window.addEventListener("message",Os,!1));r.onConnectMessage=i,o.Events.ready.on(n)},teardown:function(){window.removeEventListener&&window.removeEventListener("message",Os,!1),d(),Ds("connect"),Ds("pendo-designer-launch::launch"),Ds("pendo-preview::launch"),s&&(o.Events.appUnloaded.off(s),s=undefined);a=a&&undefined;o.Events.ready.off(n)},onConnectMessage:i,disconnectDesigner:d,launchDesignerListener:c,launchPreviewListener:l,sendToken:u};function n(){var e;window.opener&&r._.isFunction(window.opener.postMessage)&&(e=r.getConfigValue("secureDesignerConnect")?ut:"*",window.opener.postMessage({type:"pendo::ready"},e))}function i(e,t){var n,i;r.designer||(n=t.origin,r.stopGuides(),r.buffers.lock(),i=t.source,Ts=i,r.designerv2.hostConfig||(o.store.dispatch("frames/leave"),s=r._.partial(d,i,n),o.Events.appUnloaded.on(s)),t1(),qs(t.source,{status:"success",type:"connect"},n),Hs("selection.js")&&(r.log("Designer Modules already loaded."),qs({type:"ready"},n)),o.Events.designerLaunched.trigger())}function d(e,t){r.buffers.unlock(),E.designer&&(E.designer=null,delete E.designer),e&&qs(e,{type:"unload"},t)}function u(e,t){var n;a&&(n={token:a,type:"pendo-designer-launch::set-token"},t.source.postMessage(n,t.origin),a=undefined)}function c(e,t){var n,i=t.data.token;i?i.publicAppId&&i.publicAppId!==r.publicAppId?(r.log(`Designer launch information received was for public app ID ${i.publicAppId}, which does not match the current app ID ${r.publicAppId}. Ignoring launch request.`),p(t,"appIdMismatch")):i.preferredAgentInstallType&&i.preferredAgentInstallType!==Ae()?(r.log(`Designer launch information received was for install type ${i.preferredAgentInstallType}, which does not match the current install type ${Ae()}. Ignoring launch request.`),p(t,"installTypeMismatch")):(a=i,Ps("pendo-designer-launch::get-token",u),n=i.DADesigner?"da-designer":"in-app-designer",n={lookaside:i.baseUrl,host:i.host,target:i.target||"latest",DADesigner:!!i.DADesigner,gcsBucket:i.gcsBucket||n,forceNativeDesigner:!!i.forceNativeDesigner,sidebarDesigner:!!i.sidebarDesigner},r.designerv2.launchInAppDesigner(n)):(r.log("Designer launch request received with no token. Ignoring launch request."),p(t,"missingToken"))}function l(e,t){var n=t.data.config.preferredAgentInstallType;n&&n!==Ae()?r.log("Skipping preview launch due to agent install type mismatch."):(n=r._.extend({},t.data.config,{origin:t.origin}),Qo()&&(n.apiKey=r.apiKey),o.store.dispatch("preview/exitDesignerPreview"),o.store.dispatch("preview/start",n),Ty(window)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:r.apiKey,accountId:r.accountId},t.origin),Wv(),o.store.dispatch("frames/startPreview")))}function p(e,t){e.source&&r._.isFunction(e.source.postMessage)&&e.source.postMessage({type:"pendo-designer-launch::error",reason:t},e.origin)}}();function i1(e,n){return e.length==n.length&&_.all(e,function(e,t){return e===n[t]})}class r1{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=lo(n.selector)}catch(i){t=[]}t.length>this.maxTargets&&(t.length=this.maxTargets),i1(t,n.targets)||(n.targets=t,this.domActivation.detach(n,this.domActivation.targets),_.each(t,function(e){this.domActivation.attach(e,n,this.domActivation.targets)},this))}}handleProcessTimeExceeded(e){e=e.getContext();e&&T.warn("Element activated guide ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var o1,a1,s1,d1,u1,c1={name:"DOMActivation",key:s1="pendoTargetId",guides:d1=[],targets:u1={},reset:g1,init:v1,attach:function(n,i,e){var t=n[s1],r=t?e[t]:null;r||(t=t||"target"+_.uniqueId(),r={target:n,events:{}},e[t]=r,n[s1]=t);var o=e[i.id]||[];o.push(t),e[i.id]=o,_.each(i.events,function(e){var t=r.events[e];t||((t={guideIds:{}}).fn=_.partial(f1,_,t.guideIds),F(n,e="mouseover"===e?"mouseenter":e,t.fn),r.events[e]=t),t.guideIds[i.id]=1})},detach:h1,handler:f1,activates:m1,prefetch:y1,initialize:function(e,t){(o1=t).Events.on("deliverablesLoaded",g1),t.Events.on("guideListChanged",l1),t.Events.on("guidesLoaded",p1),Sg(a1=new r1(c1))},teardown:function(){Eg(a1),o1.Events.off("deliverablesLoaded",g1),o1.Events.off("guideListChanged",l1),o1.Events.off("guidesLoaded",p1)}};function l1(){g1(),v1(Du())}function p1(){y1(Du())}function h1(i,t){_.each(t[i.id],function(e){var n=e?t[e]:null;n&&(_.each(n.events,function(e,t){e&&e.guideIds&&(delete e.guideIds[i.id],_.size(e.guideIds)<=0)&&(jf(n.target,t="mouseover"===t?"mouseenter":t,e.fn),delete n.events[t])}),_.size(n.events)<=0)&&(delete n.target[s1],n.target=null,delete t[e])}),delete t[i.id]}function f1(e,t){var n;!e.pendoActivatedGuide&&!M.data.get(e,"advanced")&&(n=C.get("adoptPrioritizeAdoptGuides"),t=_.compact(_.map(_.keys(t),b)),t=_.filter(t,function(e){return!(!e.steps||!e.steps.length||_.get(e,"attributes.dom.isOnlyShowOnce")&&e.steps[0].hasBeenSeen())}),t=_(t).chain().sortBy(function(e){return"staged"===e.state?0:1}).sortBy(function(e){e=e.isTraining;return n?e?0:1:e?1:0}).value(),t=_.find(t,function(e){var t=_.first(e.steps);return _.get(e,"attributes.resourceCenter",!1)&&e.isShown()?D.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||Pm(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function g1(){_.each(d1,function(e){h1(e,u1),e.targets=[]}),d1.length=0}function m1(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(Au())){var t=_.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=ic(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function v1(e){_.each(e,function(e){e=m1(e);e&&d1.push(e)})}function y1(e){C.get("disablePrefetch")||_.each(e,function(e){_.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&_.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent(!0)})}const b1="embeddedGuidesReposition",w1=function(){let i,r,o;const t=[];return{name:"EmbeddedGuides",activeEmbeddedGuides:t,initialize:function(e,t){i=t,r=e,o=r._,function(e){e.getEmbeddedGuides=S1,e.getActiveEmbeddedGuides=E1}(e),Wc.behaviors.push(c),i.Events.on("deliverablesLoaded",d),i.Events.on("eventCaptured",s),i.GuideLoop.addUpdatePhase(a,b1)},teardown:function(){i.Events.off("deliverablesLoaded",d),i.Events.off("eventCaptured",s),i.GuideLoop.removeUpdatePhase(b1);var e=Wc.behaviors.indexOf(c);-1!==e&&Wc.behaviors.splice(e,1)}};function n(e){return!!(e&&o.isFunction(e.isShown)&&e.isShown())}function a(){o.some(t,n)&&o.each(r.guides,function(e){!u(e)&&n(e)&&o.each(e.steps,function(e){o.isFunction(e.isShown)&&e.isShown()&&o.isFunction(e.checkPlacement)&&e.checkPlacement()})})}function s(e){var t,n=o.get(e,"data.0");n&&"guideSeen"===n.type&&u(t=r.findGuideById(n.props.guide_id))&&(t=t&&r.findStepInGuide(t,n.props.guide_step_id))&&t.lastSeenAt&&(e.cancel=!i.ConfigReader.get("enableAllEmbeddedGuideEvents"))}function d(){t.length=0,o.each(r.guides,function(e){u(e)&&(e.launchMethod="auto",e.channel=e.id,e.attributes.overrideAutoThrottling=!0,t.push(e))})}function u(e){return e=e,o.get(e,"attributes.embedConfig")}function c(e){return u(e)&&(this.show=o.wrap(this.show,function(e){return e.call(this,"embed")})),this}}();function S1(){return w1.activeEmbeddedGuides}function E1(){return w1.activeEmbeddedGuides.filter(e=>e.isShown())}function I1(e,i){return"undefined"!=typeof Proxy&&_.isFunction(i)?new Proxy(e,{get(e,t){if("textContent"===t)return i(e);if("parentNode"===t){var n=e[t];if(e.ownerDocument!==n)return I1(e[t],i)}return _.isFunction(e[t])?function(){return e[t].apply(e,arguments)}:e[t]}}):e}const _1=function(){let d,h,f,g,t,u,m,i;const v=3,n="eventPropertyTimeout",r=xu(function(n){{var e;f.eventProperties&&f.eventProperties.length&&(e=function p(i,e){var r=g.ConfigReader.get("eventPropertyMatchParents");var t=S();var n={};var o;var a;var s=f.eventProperties.length;for(a=0;a<s&&S()-t<e;a++){o=f.eventProperties[a];var d=f._.any(o.featureRules,function(e){try{var t=y(r,h);return t(i,e)}catch(n){return!1}});if(d)for(var u=0;u<o.eventPropertyRules.length&&S()-t<e;u++){var c=o.eventPropertyRules[u];if(!c.name)return;n[c.name]=w(c,i)}}var l=S()-t;if(e<l){if(r&&h===f._.identity&&f._.isFunction(f.getText))return f.log("switching event property collection to fast text implementation"),h=function(e){return I1(e,function(e){return f.getText(e,128)})},p(i,e);m++,b({threshold:e,featureId:o.featureId,elapsedTime:l,failureCount:m,index:a,length:s}),m>=v&&(f.eventProperties=[])}else m=0;return n}(n.target,i),f._.each(f._.pairs(e),([e,t])=>{n.addEventProperty(e,t)}))}}),o=xu(function(){var e={};if(d)return{};var t=g.ConfigReader.get("eventPropertyConfigurations");if(!t||f._.isEmpty(t))return{};if(e=function(e,t){var n,i,r=S(),o={};for(i=0;i<e.length&&S()-r<t;i++){if(!(n=e[i]).name)return;var a=w(n);I(a)&&(o["_pendo_"+n.name]=a)}var s=S()-r;t<s?(u++,b({threshold:t,name:n.name,elapsedTime:s,failureCount:u,index:i,length:e.length})):u=0;u>=v&&(d=!0);return o}(t,i),f._.isEmpty(e))return{};return e});return{name:"EventProperties",initialize:function(e,t){f=e,g=t,h=f._.identity,d=!1,u=0,m=0;e=t.ConfigReader;e.addOption(n,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],50),i=e.get(n),f.getEventPropertyTarget=l,f.previewEventProperty=w,g.Events.onClickCaptured.off(s),g.Events.onClickCaptured.on(s),g.Events.ready.on(c),g.Events.deliverablesLoaded.on(a)},teardown:function(){g.Events.onClickCaptured.off(s),g.Events.ready.off(c),g.Events.deliverablesLoaded.off(a),g.store.dispatch("location/removeInternalTransforms",t),t=[],g.store.dispatch("location/stopPolling"),u=0,m=0},collectClickEventProperties:r,collectEventProperty:w,collectPageEventProperties:o,getEventPropertyTarget:l,addPageEventProperties:c};function a(){m=0}function y(e,n){return e?function(e,t){return 0<f.dom(n(e)).closest(t).length}:function(e,t){return f.Sizzle.matchesSelector(e,t)}}function s(e){r(e.data[0])}function c(){var e;t=(e=g.ConfigReader.get("eventPropertyConfigurations"))&&!f._.isEmpty(e)?[new _w("search","AddTo",function(){return o()})]:[],g.store.dispatch("location/addInternalTransforms",t),0<t.length&&g.store.dispatch("location/startPolling")}function b({threshold:e,featureId:t,name:n,elapsedTime:i,failureCount:r,index:o,length:a}){t=`ERROR ${t?"click":"page"} event property collection timeout (${t||n}).`;t+=` ${i}ms/${e}ms, ${o}/${a} properties, ${r}/${v} failures`,r>=v&&(t+=", collection disabled."),g.log.critical(t)}function w(e,t){if(e.path)return t=l(e,t),f._.get(t,e.path,undefined)}function l(e,t){e=e.source||e.selector;if(e&&t){for(var n,i=e,r=t;!n&&r;){try{if((n=f.Sizzle.matchesSelector(r,i)?r:f.Sizzle(i,r)[0])&&("password"===n.type||"hidden"===n.type))return}catch(o){return}r=Bi.getParent(r)}return n}return e?!(t=f.Sizzle(e)[0])||"password"!==t.type&&"hidden"!==t.type?t:void 0:window}}(),C1={children:[],props:{"class":"_pendo-step-container","data-layout":"tooltipBlank",id:"pendo-base"},type:"div"},T1={css:[],props:{scoped:"scoped",type:"text/css"},type:"style"},x1={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"},R1={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"},A1={children:[],props:{"class":"_pendo-text-paragraph",style:{}},type:"div"};function k1(e,t){return{content:t,props:{id:"text-"+e,"class":"_pendo-text-plain",style:{color:"gray",margin:0}},type:"p"}}function O1(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 N1=`
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,bc.usesXhr()&&t.domUrl?(r.deferred.domJson=m.defer(),wo.get(c(t.domUrl)).then(function(e){r.domJson=Ic(e.data);var e=e.data;e=e,_.isObject(e)&&e.hasOwnProperty("type")&&e.hasOwnProperty("children")&&e.hasOwnProperty("props")?r.deferred.domJson.resolve():(T.critical(new Error("Response from the guide was not in proper JSON format")),r.deferred.domJson.reject())})["catch"](function(e){T.critical(e),R.resourceFetchFail.trigger(t,e),r.deferred.domJson.reject("Failed to load content")}),i.push(r.deferred.domJson.promise),o=!0):t.domJsonpUrl&&(r.deferred.domJson=m.defer(),n=Rs(c(t.domJsonpUrl),function(e){M.removeNode(n),e&&R.resourceFetchFail.trigger(t,e)},!0),i.push(r.deferred.domJson.promise),o=!0),t.contentUrlJs&&!C.get("preventCodeInjection")){r.deferred.content=m.defer();var a=Rs(c(function(e){if(Rt()){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}(gt(n)));if(_.isString(n))return n+"/"+t.join("/")}return e}(t.contentUrlJs)),function(e){M.removeNode(a),e&&R.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise),t.contentUrlCss&&(r.deferred.css=m.defer(),Rs({url:c(t.contentUrlCss),type:"text/css"},function(){r.deferred.css.resolve()}),i.push(r.deferred.css.promise))}else if(t.contentUrl&&!C.get("preventCodeInjection")){r.deferred.content=m.defer();var s=Rs(function(e,t){if(!_.isString(e))return e;var n=_.indexOf(e,"?");return n<0?e+t:e.substring(0,n)+t+e.substring(n)}(c(t.contentUrl),".js"),function(e){M.removeNode(s),e&&R.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise)}else if(!o)return m.reject("fetchedDomContent is still false");r.deferred.promise=m.all(i).then(function(){return _.omit(r,"deferred")})}return u[t.id].deferred.promise}catch(d){throw R.resourceFetchFail.trigger(t,d),d}},reset:function(){u={}},guideContent:function(e,t,n,i,r){var o,a,s;_.isString(n)&&(o=n,a=e,s=t,n=_.reduce(d,(e,t)=>t(e,a,s),o),_.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?_.template(n):_.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=Ic(n),e.deferred.domJson.resolve())}}}();function Cc(e){e=_s(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}xc=Oc={failed:{},verified:{}},Ac=Ea,kc=function(e){try{var t=[];return!bc.usesXhr()&&e.domJsonpUrl?t.push(Lc(e,"domJsonpUrl")):bc.usesXhr()&&e.domUrl&&t.push(Mc(e,"domUrl")),e.contentUrlJs?t.push(Lc(e,"contentUrlJs")):e.contentUrl&&t.push(Lc(e,"contentUrl")),m.all(t)}catch(n){throw R.contentVerificationFail.trigger(e,n),n}},Rc=function(e){return kc(e).then(_.noop,function(e){return/verify/.test(e)&&Ac(e),m.reject(e)})},Tc=function(t){return xc.failed[t.id]?m.reject():xc.verified[t.id]?m.resolve():Rc(t).then(function(){xc.verified[t.id]=!0},function(e){return xc.failed[t.id]=!0,m.reject(e)})};var Tc,xc,Rc,Ac,kc,Oc,Nc={verify:function(e){return C.get("guideValidation")?Tc(e):m.resolve()},reset:function(){Oc.failed={},Oc.verified={}}};function Mc(e,t){var n,i,r=e[t];return _.isString(r)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||Cc(e[t]),i=Ec(r),wo.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=$.create()).update(e),c.uint8ToBase64(t.digest())!==n)return m.reject('Unable to verify content at "'+i+'"')})):m.reject('unable to parse "'+r+'"')}function Lc(e,t){var n=e[t];return et.sri&&/[?&]sha(256|384|512)=/.test(n)?m.resolve():Mc(e,t)}Pc="allow",Dc="deny",Fc="pending",Gc=function(){return 0<_.size(yc._handlers.validateGuide)},Bc=function(e,n){var i=[];return _.each(e,function(e,t){n&&(t=n+"."+t),_.isObject(e)?_.each(Bc(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var Pc,Dc,Fc,Uc,Gc,Bc,Hc={state:Uc={},Step:function(e){var n=this;function i(e){return _.filter([["content",Cc(e.contentUrl)],["contentCss",Cc(e.contentUrlCss)],["contentJs",Cc(e.contentUrlJs)],["dom",Cc(e.domUrl)],["domJsonp",Cc(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=Bc(t)).length&&(t=_.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return _.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<_.size(yc._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-"+_t(n.signature()),(t=Uc[t])!==Dc)&&(t!==Pc?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+_t(t),yc.validateLauncher(t).then(function(){Uc[e]=Pc},function(){Uc[e]=Dc}).then(function(){i=!1,n.render(),n.update(y())},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=Bc(this.data);return t.length&&(t=_.chain(t).filter(function(e){return!/^contentUrl/.test(e[0])}).sortBy(function(e){return e[0]}).value(),e.push(["variables",t])),e},n},validate:function(e){if(!Gc())return m.resolve();try{return _.isArray(e)?m.all(_.map(e,zc)):zc(e)}catch(t){throw R.contentValidationFail.trigger(e,t),t}},valid:function(e){return!Gc()||!!(e=Uc[e.guideId])&&e.status===Pc},invalid:function(e){return!!Gc()&&!!(e=Uc[e.guideId])&&e.status===Dc},reset(){Uc={}}};function zc(i){var r=Uc[i.id];return r||(r={},Uc[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+_t(e),n=(r[t]||(r[t]={status:Fc},r.status=Fc),r[t].promise);return n||(n=yc.validateGuide(e,i).then(function(){r[t].status=Pc,r.status=Pc},function(e){return r[t].status=Dc,r.status=Dc,m.reject(e)}),r[t].promise=n),n})}function jc(e,t){var n=_.toArray(arguments).slice(2);return _.reduce(e,function(e,t){return t.apply(e,n)},t)}function qc(e){return _.isFunction(e.before)?e:(e=Pt(e),jc(qc.behaviors,e))}function Wc(e,t){return e=Pt(e),t=Pt(t),jc(Wc.behaviors,e,t)}qc.behaviors=[],Wc.behaviors=[];Kc.state={},Kc.queue=[],Kc.pending=function(){return _.reduce(Kc.state,(e,t)=>e+(t.loaded?0:1),0)},Kc.reset=function(){_c.reset(),Kc.state={},Kc.queue=[]},Kc.prefetch=function(e){var t;return Kc.hasContent(e)?_.get(Kc.state[$c(e)],"promise"):(t=m.defer(),Kc.queue.push([t,e]),t.promise)},Kc.processPrefetch=function(e=10){return Kc.queue.length?(e=Kc.queue.splice(0,Math.max(e-Kc.pending(),0)),m.all(_.map(e,t=>Kc.fetchContent(t[1]).then(e=>{t[0].resolve(e)})["catch"](e=>{t[0].reject(e)})))):m.resolve()},Kc.fetchContent=function(t){var e=$c(t);if(!(i=Kc.state[e])){var n,i={},r=t.getGuide();if(r.control)return m.resolve();r&&r.language&&(n=r.language);var r=t.guideId+t.id,o=_.extend({id:r,language:n,guideId:t.guideId},_.pick(t,"contentUrl","contentUrlCss","contentUrlJs","domJsonpUrl","domUrl","domHash","contentHash","contentJsHash"));i.promise=Nc.verify(o).then(function(){return i.verified=!0,_c.load(o)}).then(function(e){return i.loaded=!0,e}),Kc.state[e]=i}return i.promise.then(function(e){_.extend(t,e)})},Kc.hasContent=function(e){return I(e.content)||I(e.domJson)};var Vc=Kc;function Kc(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(_.extend(i,{fetchContent:function(e=!1){return e?Kc.prefetch(i):Kc.fetchContent(i)}}),i.after("render",function(e){!function(e){var t=_.indexOf(n.steps,i);_.chain(n.steps).rest(t+1).first(e).each(function(e){_.isFunction(e.fetchContent)&&e.fetchContent()}).value()}(t)})),i}function $c(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}var Jc=function(){var t=R.runtime;const o=[];function a(e,n,i,r){return _.filter(e,function(e){if(_.isFunction(e[r])){if(_.isFunction(e.test))try{return e.test(n,i,E)}catch(t){return T.critical("Error in global script test code block",{error:t}),!1}return _.isRegExp(e.regex)?e.regex.test(i.name)||e.regex.test(n.name):!0}})}function s(e,t,n,i="script"){var r=[];return"script"===i&&_.isFunction(e.script)&&!n&&r.push(e.script),_.size(o)&&(e=a(o,e,t,i),n&&(e=_.filter(e,e=>e.designer)),_.each(e,function(e){r.push(e[i])})),r}function i(n,i,r){const o=r.guide;o&&_.all(s(r,o,!1,"beforeMount"),function(e){try{return e.call(n,i),!i.cancel}catch(t){return T.critical("Exception thrown running beforeMount for: "+JSON.stringify({guideId:o.id,stepId:r.id}),{error:t}),!1}})}var r=Zn.call({}),d={beforeUnmount:{type:"trigger",fromUnmount:!1},beforeUpdate:{type:"trigger",fromUnmount:!1},updated:{type:"trigger",fromUnmount:!1},unmounted:{type:"trigger",fromUnmount:!0},advanced:{type:"trigger",fromUnmount:!0},dismissed:{type:"trigger",fromUnmount:!0},snoozed:{type:"trigger",fromUnmount:!0},hidden:{type:"trigger",fromUnmount:!0},beforeMount:{type:"triggerCancelable",fromUnmount:!1},beforeAdvance:{type:"triggerCancelable",fromUnmount:!1},beforePrevious:{type:"triggerCancelable",fromUnmount:!1},beforeDismiss:{type:"triggerCancelable",fromUnmount:!1},beforeSnooze:{type:"triggerCancelable",fromUnmount:!1}};function u(e){return d[e]}function n(e){var t,n=e.data[0];if(e.step=n,delete e.data,u(e.type))return-1<_.indexOf(["beforeUnmount","unmounted"],e.type)&&(t="active"===(t=n).seenState?"hidden":t.seenState,e.reason=t,"unmounted"===e.type)&&r.trigger(t,e),t=d[e.type].type,r[t](e.type,e),"unmounted"===e.type?r.trigger("afterUnmounted",e):"beforeMount"===e.type&&i(this,e,n),"triggerCancelable"!==t&&e.cancel&&delete e.cancel,e}function c(n){this.step=n,_.each(["read","write","clear"],function(t){this[t]=x[t],this[t+"ByGuide"]=function(){var e=_.first(arguments)+":"+_.get(n,"guide.id");return x[t].apply(this,[e].concat(_.rest(arguments)))}},this);var e=_.bind(function(e){this.step.id!==e.step.id?T.debug("aborting afterUnmounted b/c step ids don't match"):this.purge()},this);this.purge=_.partial(r.off,"afterUnmounted",e),r.on("afterUnmounted",e)}return c.prototype.on=function(e,t){var n,i;u(e)?(d[e].fromUnmount&&(t=_.once(t)),n=this.step,i=t,t=Ru(t=e=>{var t=e["step"];if(t.id===n.id)return i(e);T.debug("called guide runtime callback on wrong step")}),r.on(e,t),this.purge=_.compose(this.purge,_.partial(r.off,e,t))):T.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)},{initialize:function(){t.on(n);var e=C.get("guides.globalScripts");_.each(e,Jc.addGlobalScript)},teardown:function(){t.off(n),o.length=0},addGlobalScript:function(e){var t;e=function(t){const e=_.without(_.keys(t),"script","test","regex","beforeMount");if(e.length){const n=t.script;t.script=function(){if(_.each(e,function(e){u(e)&&this.on(e,t[e])},this),_.isFunction(n))return n.apply(this,arguments)}}return t}(e),t=e,!_.isFunction(t.script)&&!_.isFunction(t.beforeMount)||t.test&&!_.isFunction(t.test)||t.regex&&!_.isRegExp(t.regex)?T.critical("Error adding invalid GlobalScript via API"):o.push(e)},removeGlobalScript:function(e){0<=(e=_.indexOf(o,e))&&o.splice(e,1)},getContext:function(e){return new c(e)},runCustomScripts:function(i,r,e=!1){_.each(s(i,r,e),function(e){try{var t=Jc.getContext(i);e.call(t,i,r,E)}catch(n){T.critical("Exception thrown running code block for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:n})}})},handleEvent:n}}();function Yc(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?_.find(e.children,Yc):void 0}function Xc(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=Xc(e.children[n],t);if(i)return i}return!1}function Zc(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=Zc(e,t.children[n]);if(i)return i}}function Qc(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}const el="data-pendo-dark-mode";function tl(e,t=e.guideElement){t&&(t=M("#pendo-guide-container",t)[0])&&(e.isDarkMode?t.setAttribute(el,""):t.removeAttribute(el))}function nl(t){var n=_.get(t,"attributes.darkMode.selector","");if(n){let e;if(E.designerEnabled&&_.has(t,"attributes.darkMode.override"))e=t.attributes.darkMode.override;else try{e=0<E.Sizzle(n).length}catch(i){e=!1}t.isDarkMode=e}}function il(e,t=!1){var n;_.get(e,"attributes.darkMode.selector","")&&(n=e.isDarkMode,nl(e),n!==e.isDarkMode)&&(tl(e),t)&&(e.hide(),e.show(e.seenReason))}rl=["p","h1","h2","h3","h4","h5","h6","span","div","li","ul","ol","strong","em","b","i","small","label"];var rl,ol={buildNodesFromTemplate:function(e,t,n,i,r){var o=i||y(),a=r||E.BuildingBlockGuides.buildNodeFromJSON;switch(e){case"pendo_resource_center_module_list_item":return function(p,h,f,g){var e=p.templateChildren;return _.reduce(e,function(e,t,n){var i=E.BuildingBlocks.BuildingBlockResourceCenter.findResourceCenterHomeView(f),r=_.find(f,function(e){return e.id===t.id});if(E.designer)r=t,i=_.find(f,function(e){return _.get(e,"attributes.resourceCenter.isTopLevel")});else{if(!r)return e;if(!r.hasResourceCenterContent)return _.each(r.children,function(e){e=b(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"]}),E.designer||d.actions.push(u),_.get(i,"attributes.notificationBubble")),c=_.get(i,"attributes.notifications"),r=(u&&c&&(i.steps&&i.steps[0]&&i.steps[0].isDarkMode&&(c=_.get(i,"attributes.darkMode.notificationBubble.background-color"),o=_.get(i,"attributes.darkMode.notificationBubble.color"),c||o)&&(u=_.clone(u),c&&(u["background-color"]=c),o)&&(u.color=o),"AnnouncementsModule"===_.get(r,"attributes.resourceCenter.moduleId")&&(s=r.id),s="chat"===_.get(r,"attributes.resourceCenter.integrationName")?"chat":s)&&(d.props["data-pendo-notification-id"]=s,c=d,o=u,r=s,i=(u=i).attributes.notifications.individualCounts[s],c=Xc(c,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-row")}))&&(s=_.find(c.children,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-text")}))&&s.props&&s.props.style&&(l=parseInt(s.props.style.width,10))&&!isNaN(l)&&(a=c.children.indexOf(s),l=l-40+"px","100%"!==s.props.style.width&&(s.props.style.width=l),(l="rtl"===s.props.dir)?s.props.style["padding-left"]="40px":s.props.style["padding-right"]="40px",s.props.style["box-sizing"]="content-box",s={type:"div",children:[{type:"div",content:String(u.attributes.notifications.individualCounts[r]),props:{style:{position:"relative",top:"50%","font-weight":o["font-weight"],"font-family":o["font-family"],color:o.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":o["background-color"],display:i?"block":"none"}),"aria-hidden":!0}},c.children.splice(a+1,0,s)),Xc(d=sl(d,t,d.props.id,n),function(e){e=_.get(e,"props.class");return e&&0<=e.indexOf("_pendo-resource-center-module-list-item-text-container")})),u=Xc(d,function(e){e=_.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),l=Xc(d,function(e){e=_.get(e,"props.id");return e&&0<=e.indexOf("pendo-home-view-bubble-"+n)});return r&&(r.props["aria-hidden"]=!0,u)&&(u.props["aria-labelledby"]=_.compact([r.props.id,l&&l.props.id]).join(" ")),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 _.reduce(e,function(e,t,n){var i,r=dl(s,t);return r?(i=JSON.parse(JSON.stringify(o)),t.keywords&&(i.props["data-_pendo-text-list-item-1"]=t.keywords),delete i.templateChildren,i.props.id=i.props.id+"-"+n,i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},E.designer||i.actions.push(r),i=sl(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;_.filter(r,function(e){return dl(n,e)}).length?(e.children=_.filter(e.children,function(e){return"pendo_task_list_fallback_text"!==e.templateName}),function o(t,n){t.templateName&&(t.templateChildren=n);if(!t.children||!t.children.length)return;for(let e=0;e<t.children.length;e++)o(t.children[e],n)}(e,r)):e.children=_.filter(e.children,function(e){return"pendo_task_list_item"!==e.templateName&&"pendo_task_list_progress_bar"!==e.templateName});E.BuildingBlocks.BuildingBlockResourceCenter.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 _.reduce(e,function(e,t,n){var i,r,o,a=dl(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"},E.designer||i.actions.push(r),r=a.getTotalSteps(),o=a.getSeenSteps(),a.isComplete()&&(o=r),a=parseInt(o/r*100,10),Xc(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=al(t.subtitle,{currentStep:o,totalSteps:r}):t.stepProgress="Step "+o+" of "+r,i=sl(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=(_.forEach(r,function(e){e=dl(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 Xc(e=sl(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(p,e,n,h){var t=e.getGuide().attributes.resourceCenter.children,t=_.reduce(t,function(e,t){t=dl(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!_.every(t,function(e){e=e.steps[0];return!!Vc.hasContent(e)}))return[];var i=E.BuildingBlocks.BuildingBlockResourceCenter.getResourceCenter(),f=_.get(i,"attributes.notificationBubble");f&&(delete f.dir,"rtl"===p.props["data-localization-direction"])&&(f.dir="rtl");var g=e.getGuide();return _.map(t,function(e,t){var n,i,r,o,a,s,d,u="whatsnew"===_.get(e,"attributes.type"),c=JSON.parse(JSON.stringify(p));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=f,s=h,a=qc(i=e),(n=a.steps[0]).render(),Jc.runCustomScripts(n,a),d=(a=n.guideElement)[0].id,Qc(C,"pendo-whats-new-style-"+d,"#"+d+" h1::after { display:none; }",a[0]),u&&((r=ul(u)).props.style.top="20px"),!E.BuildingBlocks.BuildingBlockResourceCenter.hasAnnouncementBeenSeen(i)&&r&&(t.props["class"]+=" pendo-unseen-announcement",t.children=[r]),d=s(t,n),a.appendTo(d),d):(u=c,i=f,r=h,t=g,s=qc(n=e),a=n.steps[0],Jc.runCustomScripts(a,s),s=JSON.parse(JSON.stringify(a.domJson)),null!=(d=_.get(t,"attributes.darkModeColorOverrides"))&&d.enabled&&(t=t.steps[0])&&(il(t,!1),a.isDarkMode=t.isDarkMode,t.isDarkMode)&&(d.guideBackground||d.textColor||d.linkColor||d.borderColor)&&function l(e,t){var n=_.get(e,"props");if(!e||!n)return;n.style||(n.style={});var i=n.style;n=_.get(n,"id","");-1!==n.indexOf("pendo-guide-container")&&(t.guideBackground&&(i["background-color"]=t.guideBackground),t.borderColor)&&(i["border-color"]=t.borderColor);n="a"===e.type;n&&t.linkColor&&(i.color=t.linkColor);var r=t.textColor;!n&&r&&(n=_.get(e,"content",""),n=n&&"string"==typeof n&&0<n.trim().length,-1===rl.indexOf(e.type)&&!n||(i.color=r));n=_.get(e,"children",[]);_.isArray(n)&&_.each(n,function(e){l(e,t)})}(s,d),u.children=[s],i&&(o=ul(i),t=Xc(u,function(e){return"pendo-guide-container"===e.props.id}),d=parseInt(u.props.style["padding-top"],10),s=parseInt(t.props.style["padding-top"],10),o.props.style.top=s+d+5+"px"),!E.BuildingBlocks.BuildingBlockResourceCenter.hasAnnouncementBeenSeen(n)&&o&&(u.props["class"]+=" pendo-unseen-announcement",u.children.unshift(o)),delete u.templateName,(i=Zc("pendo-guide-container",u))&&(i.props.id=i.props.id+"-"+a.id),r(u,a))})}(t,n,o,a);case"pendo_guide_data_text_block":return function(e,t,n,i){var r=t.getGuide?t.getGuide():_.find(n,function(e){return e.id===t.guideId}),o=_.get(r,"attributes.dates."+r.language,!1);o=o?{showsAfter:o}:(o=_.get(r,"currentFirstEligibleToBeSeenAt")||_.get(r,"showsAfter")||_.get(r,"publishedAt"),o=o?new Date(o):new Date,r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][o.getMonth()]+" "+o.getDate()+", "+o.getFullYear(),{showsAfter:r});return r=sl(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:ul,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return _.reduce(e,function(e,t,n){t=dl(i,t);return t&&e.push(t),e},[])}};function al(e,n){return e.replace(/<%=\s*([A-Za-z_0-9$]+)\s*%>/gi,function(e,t){return _.isNull(n[t])||_.isUndefined(n[t])?e:n[t]})}function sl(e,t,n,i){if(e.content&&(e.content=al(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?al(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++)sl(e.children[r],t,n,i);return e}function dl(e,t){e=_.find(e,function(e){return e.id===(t.id||t)});if(E.designer)return t;if(e){if(!e.ineligibleForRC)return e;e.control&&e.steps[0].onControlGuide("control")}}function ul(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 cl={buildSvgNode:function(e,t,n){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return ll(t,n)}},createProgressCircleSvg:ll};function ll(e,t){var n,i,r,o,a,s;return Me(9)?(i=(n=pl(n=e,i=t)).fillCircle.stroke,r=n.backgroundCircle.stroke,n=100<=(n.fillCircle.percentComplete||0),o=M(p(E).createHTML('<div aria-hidden="true" focusable="false" class="pendo-progress-circle-ie"><div class="pendo-progress-circle-fill"></div></div>')),a=o.find(".pendo-progress-circle-fill"),n?a.css({border:"3px solid "+i,height:"10px",width:"10px"}):a.css({border:"3px solid "+r,height:"10px",width:"10px"}),o):100<=((n=pl(e,t)).fillCircle.percentComplete||0)?(i=(i=n).fillCircle.stroke,(r=M(p(E).createHTML('<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" class="pendo-progress-circle-fill" viewBox="0 0 24 24" fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>')))[0].setAttributeNS(null,"stroke",i),r):(o=(a=n).fillCircle.stroke,e=a.backgroundCircle.stroke,a=a.fillCircle.percentComplete||0,t='<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="'+(t=100/(2*Math.PI))+'" stroke-width="6px" stroke-linecap="round" fill="none"></circle><circle class="pendo-progress-circle-fill" cx="20" cy="20" r="'+t+'" stroke-width="6px" stroke-linecap="round" transform="rotate(-90 20 20)" fill="none"></circle></svg>',s=(t=M(p(E).createHTML(t))).find(".pendo-progress-circle-fill")[0],t.find(".pendo-progress-circle-background")[0].setAttributeNS(null,"stroke",e),a<=0?s.setAttributeNS(null,"stroke-width","0px"):(s.setAttributeNS(null,"stroke",o),s.setAttributeNS(null,"stroke-dasharray",a+", 100")),t)}function pl(e,t){var n=_.clone(e.svgAttributes);return t&&e.darkModeSvgAttributes&&((t=_.get(e.darkModeSvgAttributes,"backgroundCircle.stroke"))&&(n.backgroundCircle.stroke=t),t=_.get(e.darkModeSvgAttributes,"fillCircle.stroke"))&&(n.fillCircle.stroke=t),n}var hl=function(e,t){return e<t},fl=_.negate(hl);function gl(){var e=Va();return la(e)?Ja(e):((e=Ba()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function ml(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 vl(e){var t;if(e&&e.length)return t=la(Va())?Ja:fa,(e=_.reduce(e,function(n,e){var i;return ds(e)?(i=t(e))?(_.each([["top",hl],["right",fl],["bottom",fl],["left",hl]],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 yl(e,t){var n=gl(),e=vl(e)||{top:0,left:0,right:n.width,bottom:n.height,width:0,height:0};return{viewport:n,box:e,overlays:ml(n,e,t)}}function bl(e){var t=[],n=_.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==Va()){t.push(e.element);for(var i=n.additionalElements.replace(/\s/g,"").split(","),r=0;r<n.additionalElements.length;r++)try{var o=M(i[r]);o&&_.each(o,function(e){t.push(e)})}catch(a){T.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var wl=null,Sl=function(e){var t=!_.isEqual(e,wl);return wl=e,t},El=null,Il=function(e){var t=!_.isEqual(e,El);return El=e,t},_l=null,Cl=function(e){var t=!_.isEqual(e,_l);return _l=e,t},Tl=function(e){return Il(e.viewport)||Sl(e.box)||Cl(e.overlays)};function xl(e){try{var t=yl(bl(e),_.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));Tl(t)&&_.each(e.backdrop.children,function(n){var e=n.getAttribute("pendo-region"),e=t.overlays[e];_.each(e,function(e,t){n.style[t]=e+"px"})})}catch(n){T.info("Failed to update BlockOut ui",{contexts:["error"]})}}function Rl(e){try{var t,n,i,r;if(!(0<M("._pendo-guide-backdrop_").length))return t=yl(bl(e),_.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),Tl(t),n={"z-index":1e4,position:"fixed"},i=[],_.each(t.overlays,function(e,t){t=function(e,t){var n=M("div.pendo-backdrop-region-"+e);n.length||(n=M(document.createElement("div")).addClass("pendo-backdrop-region-"+e));return M(n).css(t).attr("pendo-region",e),n}(t,_.extend({},e,n));i.push(t)}),o=i,s=Zc("pendo-backdrop",(a=e).domJson),_.each(["left","right","width","height","bottom","top"],function(e){delete s.props.style[e]}),d=M(document.createElement("div")).attr("id","pendo-backdrop").addClass("_pendo-guide-backdrop_"),_.each(s.props,function(n,i){_.each(o,function(t,e){if("style"===i){let e=s.props.style;a.isDarkMode&&s.darkModeProps&&(e=Object.assign(Object.assign({},s.props.style),s.darkModeProps.style)),t.css(e)}else"class"===i?t.addClass(n):"id"===i?t.attr(i,n+"-"+e):t.attr(i,n);d.append(t)})}),r=d,e.backdrop=r[0],r}catch(u){T.info("Failed to add BlockOut ui",{contexts:["error"]})}var o,a,s,d}var Al="top",kl="bottom",Ol="left",Nl="right",Ml="center";function Ll(e,t,n){return n===Nl||n===Ol?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?Ml:n<e/2?Nl:Ol)}const Pl={DEFAULT_CARET_OFFSET:10,BOUNDARY_MARGIN_RIGHT:.98,BOUNDARY_MARGIN_LEFT:.02,Z_INDEX:{DEFAULT:"300000",CARET:11,BORDER_CARET:10}},Dl={Top:"border-top",Right:"border-right",Bottom:"border-bottom",Left:"border-left"};var Fl={createBBTooltip:Gl,getBBTooltipDimensions:Bl,determineBBHorizontalBias:Ll,determineTooltipPosition:Hl,positionBBTooltipWithBias:zl,calculateToolTipPositionForTopBottom:jl,calculateToolTipPositionForLeftRight:Vl,buildTooltipCaret:Kl,styleTopOrBottomCaret:function(e,t,n,i){return _.extend(e.style,Jl(t,n,i)),e},styleLeftOrRightCaret:function(e,t,n){return _.extend(e.style,Yl(t,n)),e},buildBorderCaret:Xl,determineBorderCaretColor:Zl,placeBBTooltip:function(e,t){var n,i,r,o,a,s,t=t||Ql(e);t&&(r=t.ownerDocument||document,n=r.defaultView||window,r=e.element||nc(e,r),i=ja(r,n),"none"!==f(e.elements[0]).display)&&(r=fa(r),s=e.attributes.layoutDir,e=e.guideElement,o=M(t).find("#pendo-guide-container"),a=o[0].style,t=f(t),t={height:parseInt(t.height,10),width:parseInt(t.width,10)},o={height:parseInt(o[0].getAttribute("data-caret-height"),10)||0,width:parseInt(o[0].getAttribute("data-caret-width"),10)||0,backgroundColor:o[0].style["background-color"],offset:Pl.DEFAULT_CARET_OFFSET,borderColor:a.borderColor,borderWidth:parseInt(a.borderWidth,10)||0},a=this.getBBTooltipDimensions(i,t,o,s,r,Ba(n)),o.height&&o.width&&(t=e.find(".pendo-tooltip-caret")[0],s=e.find(".pendo-tooltip-caret-border")[0],t&&$l(t,a.caret),s)&&$l(s,a.caretBorder),e.css({top:a.top,left:a.left,position:i.fixed?"fixed":"absolute"}))},isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!_.isObject(e.domJson)||!(e=Yc(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForGuide:function(e,t,n){e.attributes&&"tooltip"===e.attributes.calculatedType?(Gl(t,e.element,e,n),e.hasBeenScrolledTo||(ls(e.element),oc(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)):e.element&&e.element!==M.getBody()&&!e.hasBeenScrolledTo&&(ls(e.element),cs(e.element,window),e.hasBeenScrolledTo=!0)},patchGuideContainerWidthForResponsiveTooltips:function(e,t,n){t=t||Ql(e);var i,r,o,a,s,d;t&&(i=e.element||nc(e,t.ownerDocument||document))&&(o=t.style.width)&&-1!==o.indexOf("vw")&&(o=Ul(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 Ul(e,t,n,i){var r,o,a,s,d,u=(t.ownerDocument||document).defaultView||window,c=ja(t,u),t=fa(t),u=Ba(u),l=e.attributes.layoutDir||"auto";return(0!==c.height||0!==c.width)&&(r=e&&!e.elementPathRule,n=Xc(n,function(e){return"pendo-guide-container"===e.props.id}))?(o={height:parseInt(n.props["data-caret-height"],10)||0,width:parseInt(n.props["data-caret-width"],10)||0,offset:Pl.DEFAULT_CARET_OFFSET,borderWidth:0},a=null,d=_.get(n,"props.style.border"),s=_.get(n,"darkModeProps.style.border"),e&&e.isDarkMode&&s?a=s:d&&(a=d),a&&(s=a.split(" "),o.borderColor=s[2],o.borderWidth=parseInt(s[0],10)||0),d=_.get(n,"props.style"),a=_.get(n,"darkModeProps.style"),s=_.get(d,"background-color"),d=_.get(a,"background-color"),e&&e.isDarkMode&&d?o.backgroundColor=d:s&&(o.backgroundColor=s),{elementPos:c,screenPos:t,screenDimensions:u,caretDimensions:o,tooltipSizes:{width:i.offsetWidth,height:i.offsetHeight,layoutDir:l},containerDomJson:n,elementIsNotVisible:r}):null}function Gl(e,t,n,i){var r,o,a,s,d;if(n.guideElement)return(t=Ul(n,t,e,i))?({elementPos:e,tooltipSizes:a,screenPos:d,caretDimensions:r}=t,(o=n.guideElement).addClass(Qu()?Vu:Wu),a=Bl(e,{height:a.height,width:a.width},r,n.attributes.layoutDir,d,t.screenDimensions),n&&(n.dim=a),n&&_.isFunction(n.getGuide)&&(s=n.getGuide()),d=_.get(s,"attributes.resourceCenter"),e.fixed?(o.css({position:"fixed"}),i.style.position="absolute"):n&&d||(i.style.position="absolute"),r.height&&r.width&&Kl(o,a,r),t=Pl.Z_INDEX.DEFAULT,i&&i.style&&i.style["z-index"]&&(t=i.style["z-index"]),o.css({"z-index":t}),d||o.css({height:"auto",width:"auto",overflow:"visible"}),n.elementPathRule&&o.css({left:a.left,top:a.top,position:e.fixed?"fixed":"absolute"}),"top"===a.layoutDir&&a.hbias===Ol&&o.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),o[0]):null}function Bl(e,t,n,i,r,o){var a,s,i=i||"auto",t={width:Math.min(t.width,o.width),height:t.height},d=(t.layoutDir=i,t.hbias=Ll(e,o,i),t.vbias=(s=e,d=o,(a=i)===Al||a===kl?a:(a=s.top,(d=(s=d.height)/3)<a&&a<2*d?Ml:a<s/2?kl:Al)),t.layoutDir=Hl(t,o,r,i),zl(t,e,o,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),n.height&&n.width&&(a=n,s=e,(r=t).caret={},"top"!==r.layoutDir&&"bottom"!==r.layoutDir||_.extend(r.caret,Jl(r,a,s)),"left"!==r.layoutDir&&"right"!==r.layoutDir||_.extend(r.caret,Yl(r,a)),r.caretBorder=function(e,t,n){for(var i={top:"",right:"",bottom:"",left:""},r=["Top","Right","Bottom","Left"],o=0;o<r.length;o++){var a=r[o],s="border"+a+"Width",d="border"+a+"Color",u="border"+a+"Style",a=Dl[a],c=function(e,t,n){if(e[t])return parseInt(e[t],10)||0;t=e[n];return t&&parseInt(t,10)||0}(e,s,a);c?(i[s]=c+t.borderWidth+"px",i[d]=Zl(function(e,t,n){if(e[t])return e[t];t=e[n];if(!t)return"";if(/transparent/i.test(t))return"transparent";n=t.indexOf("solid");return-1!==n?t.slice(n+5).trim():""}(e,d,a),t.borderColor),i[u]="solid"):(i[s]="",i[d]="",i[u]="")}var l=t.borderWidth;"top"===n&&(i.left=parseInt(e.left,10)-l+"px",i.bottom=parseInt(e.bottom,10)-l+"px");"bottom"===n&&(i.left=parseInt(e.left,10)-l+"px",i.top=parseInt(e.top,10)-l+"px");"right"===n&&(i.top=parseInt(e.top,10)-l+"px",i.left=parseInt(e.left,10)-l+"px");"left"===n&&(i.top=parseInt(e.top,10)-l+"px",i.right=parseInt(e.right,10)-l+"px");return i}(r.caret,a,r.layoutDir)),t}function Hl(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===Ml)&&(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!==Ml&&(c=e.hbias),d&&u||(u||(c="right"),d)||(c="left")),(c=c&&"bottom"!==c||!s||a?c:"top")||e.hbias)||"bottom")}function zl(e,t,n,i){return"top"===e.layoutDir||"bottom"===e.layoutDir?jl(e,n,t,e.layoutDir,e.hbias,i):Vl(e,n,t,e.vbias)}function jl(e,t,n,i,r,o){var a=e.height,s={top:null,left:null},a=("bottom"===i?s.top=n.top+n.height:"top"===i&&(s.top=n.top-a),{right:(i=t).width*Pl.BOUNDARY_MARGIN_RIGHT,left:i.width*Pl.BOUNDARY_MARGIN_LEFT});return s.left="right"===r?function(e,t,n,i,r,o){var n=ql(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?Wl(e,a,i):e-t;return e}(n,e,o,t,a.right,a.left):"left"===r?function(e,t,n,i,r,o){n=ql(n),t=t.width;e=e.left-t+e.width/2+n;if(e<o)return r<e+t+(n=o-e)?Wl(e,t,i):e+n;return e}(n,e,o,t,a.right,a.left):function(e,t,n,i,r){t=t.width;e=e.left+e.width/2-t/2;var o=e+t;if(i<o){if((e-=o-i)<r)return Wl(e,t,n)}else if(e<r){o=(e+=r-e)+t;if(i<o)return Wl(e,t,n)}return e}(n,e,t,a.right,a.left),s}function ql(e){e=(parseInt(e.offset,10)||0)+(parseInt(e.width,10)||0)+(parseInt(e.borderWidth,10)||0);return isNaN(e)?0:e}function Wl(e,t,n){n=n.width-(e+t);return n<e?e-(e-n)/2:e<n?e+(n-e)/2:e}function Vl(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 Kl(e,t,n,i){var r=document.createElement("div"),e=(r.setAttribute("class","pendo-tooltip-caret pendo-tooltip-caret--"+t.layoutDir),r.style.position="absolute",r.style.zIndex=Pl.Z_INDEX.CARET,$l(r,t.caret),e.find("#pendo-guide-container")[0].parentNode);e.appendChild(r),n.borderWidth&&(n=Xl(r,t),e.appendChild(n))}function $l(e,t){_.extend(e.style,t)}function Jl(e,t,n){var i,r,o,a={},n=(a["border-left"]=t.width+"px solid transparent",a["border-right"]=t.width+"px solid transparent",a.right="",n=n,i=t,r=(o=e).hbias,n&&n.left?n.left+n.width/2-o.left-i.width:"left"===r?o.width-2*i.width-i.offset-i.borderWidth:"right"===r?i.offset+i.borderWidth:o.width/2-i.width);return a.left=n+"px","bottom"===e.layoutDir&&(a["border-bottom"]=t.height+"px solid "+t.backgroundColor,a["border-top"]="",r=-1*t.height,t.borderWidth&&(r+=t.borderWidth),a.top=r+"px",a.bottom=""),"top"===e.layoutDir&&(a["border-top"]=t.height+"px solid "+t.backgroundColor,a["border-bottom"]="",o=-1*t.height,t.borderWidth&&(o+=t.borderWidth),a.bottom=o+"px",a.top=""),a}function Yl(e,t){var n,i=Ba(),r={};return r["border-top"]=t.width+"px solid transparent",r["border-bottom"]=t.width+"px solid transparent",r.bottom="",e.vbias===Al?(n=e.height-2*t.width-t.offset-t.borderWidth,r.top=n+"px",e.top+=t.offset+t.width+t.borderWidth):e.vbias===kl?(r.top=t.offset+t.borderWidth+"px",e.top-=t.offset+t.width+t.borderWidth,e.top+e.height>i.height&&(e.top=e.top-(e.top+e.height-i.height)),e.top=Math.max(0,e.top)):r.top=e.height/2-t.width+"px","left"===e.layoutDir&&(r["border-left"]=t.height+"px solid "+t.backgroundColor,r["border-right"]="",n=-1*t.height,t.borderWidth&&(n+=t.borderWidth),r.right=n+"px",r.left=""),"right"===e.layoutDir&&(r["border-right"]=t.height+"px solid "+t.backgroundColor,r["border-left"]="",i=-1*t.height,t.borderWidth&&(i+=t.borderWidth),r.left=i+"px",r.right=""),r}function Xl(e,t){e=e.cloneNode();return e.setAttribute("class","pendo-tooltip-caret-border"),e.style.zIndex=Pl.Z_INDEX.BORDER_CARET,$l(e,t.caretBorder),e}function Zl(e,t){return"transparent"===e?e:t}function Ql(e){var t,n;if(e.guideElement)return t="pendo-resource-center-container"===e.guideElement.attr("id"),n=Yc(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}function ep(t){var e=t.find('[data-pendo-grow-height="true"]');if(e.length){var n=Object.entries(e),i=[];for(let e=0;e<n.length;e++)if(Number.isInteger(Number.parseInt(n[e][0],10))){const o=n[e][1];var r=_.some(i,function(e){return e.parentNode===o.parentNode});if(!r){let e=t[0];r=o.parentNode.closest('[data-pendo-grow-height="true"]');if(r){if(!_.contains(i,r))continue;e=r}tp(o,e),i.push(o)}}}}function tp(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=f(o),r=parseInt(r.marginTop,10)+parseInt(r.marginBottom,10),n+=o.offsetHeight+r)}var a=e.offsetHeight,e=f(e),e=parseInt(e.paddingTop,10)+parseInt(e.paddingBottom,10),s=f(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 np(e,t){var n,i,r,o,a,s,d,u,c,e=M("#"+e,t)[0];e&&(t=M(e),n=M(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(f(e).height,10),d=Ba().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 ip(e,t){e=M("#"+e,t)[0];if(e){t=e.getAttribute("data-pendo-mobile-layout");if(!t){var n=M(e),t=M(n.find("#pendo-guide-container")[0]),i=parseInt(e.style.width,10),r=(t.css({"max-width":"none"}),n.css({"margin-right":"0px"}),parseInt(f(e).width,10)),o=M.getBody(),o=(la(o)?Ja(o):Ba()).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 rp(e,i){var e=_.isArray(e)?e:[e],e=_.reduce(e,function(e,t){var t=M("#"+t,i),n=t[0];return n&&!n.getAttribute("data-pendo-mobile-layout")&&(n=t.find("#pendo-guide-container")[0],e.push(n)),e},[]),t=e;(t=_.reduce(t,function(e,t){return e.concat(_.toArray(M(['[class*="_pendo-text-"]:not([class*="_pendo-resource-center-"])','.pendo-mock-flexbox-element > [class*="_pendo-button-"]',"._pendo-multi-choice-poll-select"].join(","),t)))},[]))&&t.length&&op(_.reduce(t,function(e,t){var n,t=M(t),i=dp(t[0]),i=i.marginLeft+i.marginRight,r=sp(t);return r&&(n=r.paddingLeft+r.paddingRight,r=r.width-i-n,e.push({$blockElement:t,availableSpace:r})),e},[])),_.each(e,function(e){var t=e,t=((t=M("._pendo-open-text-poll-input",t))&&t.length&&_.each(t,function(e){var t,n=M(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)),dp(n[0])),r=e.marginLeft+e.marginRight,o=sp(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&ap(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),op({$blockElement:n,availableSpace:o}))}),e);(t=M(["._pendo-video","._pendo-image"].join(","),t))&&t.length&&_.each(t,function(e){var t=M(e),n=dp(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=sp(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&ap(t,i,r,a),op({$blockElement:t,availableSpace:a}))})})}function op(e){_.isArray(e)||(e=[e]),_.each(e,function(e){e.$blockElement.css({"max-width":"none"})});var n=_.map(e,function(e){return dp(e.$blockElement[0]).width});_.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function ap(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 sp(e){e=e.closest("._pendo-row");if(e){e=f(e[0]);if(e)return{width:parseFloat(e.width),paddingLeft:parseInt(e.paddingLeft,10),paddingRight:parseInt(e.paddingRight,10)}}}function dp(e){e=f(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var up,g={calculateTotalOffsetWidth:pp,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=pp(e,r);e[r].style.left=n+o+"px"}1<e.length&&(i.style.right=n+"px");t.style.left=n+"px"},createFlexContainer:function(e,t){var n=document.createElement("div");n.style.display="inline-block",e||t||(n.style.position="absolute");return n.style["vertical-align"]="top",n.setAttribute("class","pendo-mock-flexbox-element"),n},createFlexRow:function(){var e=document.createElement("div");return e.setAttribute("class","pendo-mock-flexbox-row"),e.style.display="block",e.style.position="relative",e.style.width="100%",e},findMaxChildHeight:function(e,t){for(var n=[],i=0;i<e.length;i++){var r;t&&-1!==(e[i].children[0].children[0].getAttribute("class")||"").indexOf("pendo-block-wrapper")&&(r=e[i].children[0].offsetHeight+"px",e[i].style.height=r),n.push(e[i].offsetHeight)}return _.reduce(n,function(e,t){return Math.max(e,t)},20)},flexEnd:function(e,t){for(var n=t,t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=pp(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=pp(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return _.filter(e,lp)},getPendoVisualElements:function(e){return _.filter(e,function(e){return!lp(e)})},initializeFlexElements:function(e){var t=e.cloneNode(),n=cp(e),i=g.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++)fp(n[r])?t.appendChild(n[r]):t.appendChild(g.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:lp,setElementHorizontalAlignment:function(e,t,n){if(!(e.length<1))switch(n){case"space-between":g.spaceBetween(e,t);break;case"space-around":g.spaceAround(e,t);break;case"space-evenly":g.spaceEvenly(e,t);break;case"center":g.center(e,t);break;case"flex-start":g.flexStart(e);break;case"flex-end":g.flexEnd(e,t)}},setElementVerticalAlignment:function(e,t,n){switch(n){case"top":g.topAlignment(e);break;case"center":g.centerAlignment(e,t);break;case"bottom":g.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=pp(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=pp(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=pp(e,r);e[r].style.left=n+o+"px"}t.style.left=n+"px",i.style.right=n+"px"},topAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.top="0px"},centerAlignment:function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=i.offsetHeight,o=t/2,o=Math.round(o-r/2);i.style.top=o+"px"}},bottomAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.bottom="0px"},wrapElementInMockFlexboxContainer:function(e,t,n){var i=e.getAttribute("class")||"",r=-1!==i.indexOf("pendo-block-wrapper"),o=e.style&&"absolute"===e.style.position,a=_.get(e.style,"width",""),s=f(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)||f(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(f(t).width,10),u=parseInt(f(e).width,10)+parseInt(e.style.marginRight||0,10)+parseInt(e.style.marginLeft||0,10),t=(M(t).find("._pendo-simple-text").getParent()||M(n).find("._pendo-simple-text").getParent())[0],n=s-u,"border-box"!==_.get(t,"style.boxSizing")&&(n=n-parseInt(t.style.paddingLeft||0,10)-parseInt(t.style.paddingRight||0,10)),t.style.width=n.toString()+"px",t.style.maxWidth=n.toString()+"px");{var u;if(!i||i.indexOf("pendo-mock-flexbox-element")<0)return(s=g.createFlexContainer(o)).appendChild(e),-1<e.id.indexOf("pendo-text")&&"rtl"===e.dir&&(s.style.right="0px"),u=_.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:cp,initializeFlexRows:function(e,t,n,i){var r=function(e){return _.filter(e,function(e){e=e.getAttribute("class")||"";return e&&-1<e.indexOf("pendo-mock-flexbox-element")})}(e.children);0!==r.length&&(r=g.wrapFlexElementsInFlexRows(r,e,i),g.formatFlexRows(r,e,t,n,i))},initializeNativeFlexRow:function(e,t,n){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"},getRowWidth:hp,wrapFlexElementsInFlexRows:function(e,t,n){for(var i=n||hp(t),r=g.createFlexRow(),o={row:r,rowWidthUsed:0},a=[o],s=0;s<e.length;s++){var d=e[s],u=fa(d)["width"],u=parseInt(u,10);o.rowWidthUsed+=u,o.rowWidthUsed>i&&0!==_.indexOf(e,d)&&(o.rowWidthUsed-=u,(r=g.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||hp(t),a=0;a<e.length;a++){var s=e[a],d=(t.appendChild(s.row),g.findMaxChildHeight(s.row.children,!1)),u=(s.row.style["min-height"]=d+"px",o-parseInt(s.rowWidthUsed,10));g.setElementHorizontalAlignment(s.row.children,u,n),g.setElementVerticalAlignment(s.row.children,d,i)}},isElementHiddenInGuide:fp,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=M("#"+e,t)[0];e&&(mp(e),g.flexElement(e,n))},flexElement:function(e,r){e=M("[data-pendo-display-flex]",e);_.each(e,function(e){var t,n=e.getAttribute("data-pendo-justify-content"),i=e.getAttribute("data-row-vertical-alignment");r?g.initializeNativeFlexRow(e,n,i):(t=g.getRowWidth(e),e=g.initializeFlexElements(e),g.initializeFlexRows(e,n,i,t))})},maintainAspectRatios:mp};function cp(e){return M(["._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 lp(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function pp(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 hp(e){var t=fa(e)["width"],e=f(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function fp(e){gp(e);var t=Ja(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-")&&(gp(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function gp(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function mp(e){var n="data-aspect-ratio",e=M("["+n+"]",e);_.each(e,function(e){var t=e.getAttribute(n).split(":"),t=1<t.length?parseInt(t[0],10)/parseInt(t[1],10):parseFloat(t[0]);isNaN(t)||(e.style.height=e.offsetWidth/t+"px")})}function vp(){return!E.designer&&C.get("disableGuidePseudoStyles")}function yp(e,t,n){return e&&e.templateName?ol.buildNodesFromTemplate(e.templateName,e,t,n,Sp):"style"===e.type&&vp()?[]:[Sp(e,t,n)]}function bp(e,t,n,i){e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw i&&(e+=' for node type "'+i+'"'),T.info(e),new Error(e)}function wp(r,o,a,s){var d={allow:!0,allowfullscreen:!0,alt:!0,"alt-text":!0,autofocus:!0,"class":!0,cols:!0,contenteditable:!0,referrerpolicy:!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};let u={referrerpolicy:["strict-origin","strict-origin-when-cross-origin"]};var c={embed:{src:!0}},l=/^data-/,p=/^aria-/,e=_.keys(r);return _.reduce(e,function(e,t){c[s]&&c[s][t]&&bp(t,a,o,s),d[t]||l.test(t)||p.test(t)||bp(t,a,o);var n=r[t],i=u[t];if(i&&!_.contains(i,n))throw i='illegal value "'+(i=n)+'" for building block key "'+t+'" found on guide "'+a+'" step "'+o+'"',T.info(i),new Error(i);return e[t]=r[t],e},{})}function Sp(n,i,e){i=i||{id:"unknown",guideId:"unknown"},(n=Pt(n)).props=wp(n.props,i.id,i.guideId,n.type),i.isDarkMode&&n.darkModeProps&&(n.darkModeProps=wp(n.darkModeProps,i.id,i.guideId,n.type));var r=M(document.createElement(n.type));if(document.createElement("div").appendChild(r[0]),"script"===r[0].tagName.toLowerCase())return M(document.createElement("noscript"));if("pendo-backdrop"===(n.props&&n.props.id))return i.hasBackdrop=!0,Rl(i);if(_.each(n.props,function(e,t){if("style"===t){let e=n.props.style;i.isDarkMode&&n.darkModeProps&&(e=Object.assign(Object.assign({},n.props.style),n.darkModeProps.style)),r.css(e)}else"data-pendo-code-block"!==t||!0!==e||C.get("preventCodeInjection")?r.attr(t,e):(t=i.getContent())&&0!==mt.call(t).length&&r.addClass("pendo-code-block").html(t)}),n.content&&r.text(n.content),"style"===n.type){E.designer||(n.css=function(e){for(var t=["button:focus"],n=[],i=0;i<e.length;i++)_.contains(t,e[i].selector)||n.push(e[i]);return n}(n.css));var t=C.get("inlineStyleNonce");t&&r.attr("nonce",t);let e=n.css;n.forDarkMode&&(e=_.map(e,function(e){return{styles:e.styles,selector:"[data-pendo-dark-mode] "+e.selector}})),r.styleSheet?r.styleSheet.cssText=Tp(e):r.text(Tp(e))}if(n.svgWidgetId&&cl.buildSvgNode(n.svgWidgetId,n,i.isDarkMode).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)Cp(r,n.actions[a],i),"renderGuidesListItem"===n.actions[a].action&&((o=b(n.actions[a].parameters[0]))?r.text(o.name):r.attr("style","display: none;"));if(_.find(n.actions,function(e){return"dismissGuide"===e.action})&&!i.hasEscapeListener&&(i.hasEscapeListener=!0,i.attachEvent(window,"keyup",function(e){27===e.keyCode&&i.eventRouter.eventable.trigger("pendoEvent",{step:i,action:"dismissGuide"})},!0)),n.children)for(var s=is(ec()),d=s!==document,u=0;u<n.children.length;u++){var c=yp(n.children[u],i,e);_.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)):(M.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){Ep(e,i)}):Ep(r[0],i),r}function Ep(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++,_p(M(e),t))}function Ip(e){var t,n={},n=(!e.containerId&&e.domJson&&(n=Yc(e.domJson)),e.containerId||n.props&&n.props.id||""),i=n&&M("#"+n,e.guideElement)[0];e&&e.attributes&&e.attributes.imgCount&&(e.attributes.imgCount--,i)&&e.attributes.imgCount<=0&&(ip(n,e.guideElement),rp(n,e.guideElement),g.flexAllThings(n,e),t=e.getGuide(),_.get(t,"attributes.isAnnouncement")||"AnnouncementsModule"===_.get(t,"attributes.resourceCenter.moduleId")||(np(n,e.guideElement),(t=i.children.item("pendo-guide-container"))&&t.style&&"auto"===t.style.overflow&&(rp(n,e.guideElement),g.flexAllThings(e.containerId,e))),Fl.positionStepForGuide(e,e.domJson,i),i.style.visibility="visible",i.parentNode.style.visibility="visible",M.event.dispatch(i,{type:"imagesLoaded"}))}function _p(e,t){e.on("load",function(){Ip(t)}),e.on("error",function(){T.info(`Error loading image (${e[0].src}) for guide step id "${t.id}" in guide id "${t.guideId}".`),Ip(t)})}function Cp(n,i,r){n.on(i.eventType,function(e){var t;i.designerAction?E.designerv2&&E.designerv2.designerActions&&E.designerv2.designerActions[i.action](n,i.parameters):(t={action:i.action,params:i.parameters,step:r,ignore:!!i.ignore,srcElement:e.srcElement},("showElements"!==i.action&&"hideElements"!==i.action||e.srcElement&&e.srcElement.getAttribute("id")===i.source||e.target&&e.target.getAttribute("id")===i.source)&&r.eventRouter.eventable.trigger("pendoEvent",t))})}function Tp(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=Tp(n[r].styles):_.each(n[r].styles,function(e,t){i+=t+":"+e,n[r].selector.match(/\d+%/)||(i+="!important;")}),i+="}";return i}function xp(t){_.each(document.head.childNodes,function(e){e&&M.hasClass(e,"pendo-style-"+t)&&qa(e)})}var Rp=function(){var e=window.navigator;return((_.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},Ap="meta",kp=_.compose(JSON.parse,JSON.stringify),Op=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()},Np=function(e={}){var t,n,i,r,o;return _.isObject(e)||(e={}),an()?(T.warn("Ignoring identify/updateOptions metadata while identity consent is dnt."),{options:Fp(),hashChanged:!1,storeChanged:!1}):(e.jwt&&e.signingKeyName&&(t=_d.getJwtOptions(e,"updateOptions"))&&(_d.set(_.pick(e,"jwt","signingKeyName")),e=t),t=e,n=_.extend({},t.visitor),i=_.extend({},t.account),t=_.extend({},t.parentAccount),n.id===vi&&(T.info("Missing visitor id."),delete n.id),hi(i.id)&&hi(t.id)&&(Si(i.id)?t.id=i.id.split(wi)[0]:i.id=""+t.id+wi+i.id),hi(i.id)&&(i.id=""+i.id),hi(n.id)?n.id=""+n.id:n.id=v({generate:!0}),n.language=Rp(),e={visitor:kp(n),account:kp(i),parentAccount:kp(t),date:Op(),version:E.VERSION},A.getters["metadata/selfHosted"]()&&(e.selfHosted=!0),n=_.clone(Fp()),C.setLocalConfig(_.extend({},C.getLocalConfig(),e)),A.commit("metadata/setMetadata",e),i=Fp(),hi(e.visitor.id)&&(E.identify(e.visitor.id,e.account.id),e.visitor.id=v(),e.account.id=Ai()),r=_t(e),void 0!==(o="object"==typeof(o=r)?_t(o):o)&&o.toString&&(o=o.toString()),o=""+(_.isNumber(up)?up:Oi(Ap))!==o,up=r,o&&ki(Ap,r),{options:e,hashChanged:o,storeChanged:!_.isEqual(n,i)})},Mp=Ru(function(e){e=Np(e);R.metadata.trigger(e)}),Lp=Ru(function(e,t){_.isObject(e)?Mp(e):_i(e,t)}),Pp=function(){var t,e=M("script");return e=e,t=new RegExp("/agent/static/"+E.apiKey+"/pendo\\.js$"),!_.any(e,function(e){return t.test(e.src)})&&!ke()},Dp=function(){var e=C.get("blockAgentMetadata");return e!==undefined&&e};function Fp(){return A.getters["metadata/metadata"]()}function Up(){return JSON.parse(JSON.stringify(Fp()))}function Gp(e){var t=e.data[0],n=C.getLocalConfig()||{};Mi(e)?(mi([Ap]),A.commit("metadata/reset",t)):(n.visitor=_.extend({},n.visitor,{id:t.visitor_id}),n.account=_.extend({},n.account,{id:t.account_id}),C.setLocalConfig(n),A.commit("metadata/setMetadata",n))}var Bp={Launcher:{addBehavior:_.noop},Metadata:{getMetadata:Fp},Util:{documentScrollTop:sa,documentScrollLeft:da,getOffsetPosition:ja},Events:R,JWT:{getJWT:_d.get}};var Hp,zp,jp,qp,Wp={},Vp=(zp=[],jp=[],qp={},(Hp=Wp).getExtensions=function(){return jp},Hp.tagExtension=function(e,t){e=Hp.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},Hp.findExtensionByTag=function(t){return _.find(jp,function(e){return _.contains(e.tags,t)})},Hp.findExtensionByName=function(e){return _.findWhere(jp,{name:e})},Hp.filterExtensionsByUse=function(t){return _.filter(jp,function(e){return e.use===t})},Hp.findExtensionByNameAndProvider=function(t,n){return _.find(jp,function(e){e=e.data;return!!e&&e.name===t&&e.provider&&e.provider.name===n})},Hp.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],qp[e]={handler:t,validators:n}},Hp.getExtensionFrames=function(){return _.reduce(jp,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=_.filter(e,Kp)).length&&(zp=function n(e){if(!e.length)return e;var t=_.filter(e,$p);if(t.length)return n(_.difference(e,t));return e}(zp.concat(e)))});function Kp(t){var e;return!!_.every(["name","version","use","type","uri"],_.partial(_.has,t))&&(e=t.use,e=qp[e]?qp[e].validators:[],_.every(_.map(e,function(e){return e(t)})))}function $p(e){var t;return"behavior"===e.use?!!e.uri(Hp,Bp)&&(jp.push(e),!0):(t=e.use,!!(t=qp[t]?qp[t].handler||_.identity:null)&&((e=t(e))&&jp.push(e),!!e))}var P,Jp,Yp,Xp,Zp,D={initializeResourceCenter:function(r){var e,t;return!(P=eh(r))||A.getters["frames/isShownInAnotherFrame"]()(P.steps[0])?m.resolve():(e=th(P,r),(t=_.reduce(e,function(e,t){var n;return Qp(t)?(n=m.resolve(t.steps[0].fetchContent())["catch"](function(){t.hasResourceCenterContent=!1,T.error("Failed to load content for Resource Center module: "+t.id)}),e.concat(n)):e},[])).push(Hc.validate([P].concat(e)).then(_.noop,function(){P.launchMethod="api"})),P.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},_.forEach(oh(),function(e){var t=Wp.findExtensionByNameAndProvider("chat",e),t=(t&&uh(e,t),Wp.findExtensionByNameAndProvider("helpcenter",e));t&&uh(e,t)}),_.forEach(e,function(t){var e=t.attributes.resourceCenter,n=e.children,i=e.moduleId,e=("IframeModule"===i&&(t.hasResourceCenterContent=!0),"SandboxModule"===i&&(t.hasResourceCenterContent=!0),"IntegrationModule"===i&&(t.integrationConfig=ih(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&rh(e.integrationName,e.integrationProvider),_.reduce(n,function(e,t){var n=_.find(r,function(e){return e.id===t});return n?e.concat(n):e},[]));"AnnouncementsModule"===i&&(P.attributes.notifications.individualCounts[t.id]=0,_.forEach(e,function(e){Ph(e)||e.isControlGroup()||P.attributes.notifications.individualCounts[t.id]++}));-1<_.indexOf(["GuideListModule","OnboardingModule","AnnouncementsModule"],i)&&_.filter(e,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):!(e.ineligibleForRC=!0)}).length&&(t.hasResourceCenterContent=!0),t.guidesInModule=e}),P.modules=e,P.badgeHidden=!0,m.all(t)["catch"](()=>(P=null,T.error("Failed to load one or more Resource Center modules"),m.resolve())))},findResourceCenterHomeView:eh,findResourceCenterModules:th,replaceResourceCenterContent:nh,renderResourceCenterModule:function(e,t){nh(e.id,undefined,!0,t)},showHomeViewOrEmptyState:function(e){M("#pendo-resource-center-container._pendo-guide-walkthrough_").remove(),delete e.activeModule,e.hasResourceCenterContent&&e.skipResourceCenterHomeView?D.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,[{value:"none"},{value:"left"}]):e.showEmptyState&&(D.showResourceCenterEmptyState(),_.each(e.controlGuidesInAllModules,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}))},showResourceCenterEmptyState:function(){var e=M("#pendo-resource-center-empty-state-container");e&&e.length&&M(e[0]).css({display:"block"})},launchIntegrationByNameAndProvider:function(e,t,n){var e=Wp.findExtensionByNameAndProvider(e,t);return e?(n=M(n))?((e=e.getFrame()).appendTo(n),void e.css({display:"block"})):T.info("could not find target element for "+t+" integration"):T.info(t+" integration has not been loaded into the agent")},appendIntegrationToBodyByNameAndProvider:rh,attemptToPreserveIntegrationIframes:function(e){e.step&&(e=e.step.getGuide()).attributes&&e.attributes.resourceCenter&&(e=D.getResourceCenterContainer())&&(e=M(e).find('iframe[id^="_pendo-launcher-ext-frame-chat"]'))&&e.length&&e.each(function(e){e=M(e);e.css({display:"none"}),e.appendTo(ec())})},getResourceCenter:mh,getResourceCenterContainer:vh,getResourceCenterBadge:yh,addNotificationBubbleToResourceCenterBadge:xh,addNotificationBubbleToTargetElement:Rh,updateNotificationBubbles:function(){var e=P,t=_.get(e,"attributes.notifications");if(t){var n=Eh(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&Mh(),t.totalUnseenCount=n;else{Ih();var i=n!==t.totalUnseenCount;if(i||!wh(Yp)){if("badge"===e.launchMethod){i=yh();if(!i)return;xh(i.element(),e.attributes.notificationBubble,n)}if("dom"===e.launchMethod&&_.get(e,"attributes.activation.selector")){i=M(e.attributes.activation.selector);if(!i.length)return;Rh(i[0],e.attributes.notificationBubble,n),mo(window,"resize",_.debounce(Sh,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:Mh,updateNotificationBubbleCount:Lh,updateNotificationBubbleOnHomeView:_h,updateOrCreateNotificationBubble:Ah,hexToRgb:bh,doesIntegrationExist:ih,calculateTotalNotificationCount:Eh,updateNotificationBubblesOnHomeView:Ih,createNotification:Oh,appendNotificationBubble:Nh,hasAnnouncementBeenSeen:Ph,findShownResourceCenterModule:function(){var e=D.getResourceCenterContainer();if(e){e=M(e).find('[id^="pendo-g-"]');if(e){var t=e.attr("data-pendo-guide-id"),e=_.find(Fu(),function(e){return e.id===t});if(Dh(e))return e}}},dismissResourceCenter:Fh,repositionResourceCenter:function(){var e=D.getResourceCenterContainer();{var t,n,i;e&&(i=D.findResourceCenterHomeView(Fu()).steps[0],t=_.get(i,"domJson.props.style.height"),t=parseInt(t,10),t=isNaN(t)?0:t,n=parseInt(_.get(i,"domJson.props.style.bottom",0),10),i=parseInt(_.get(i,"domJson.props.style.top",0),10),n=isNaN(n)?0:n,i=isNaN(i)?0:i,(n=Ba().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")}ep(M(e))},repositionDoubleResourceCenterBadge:function(){var e,t,n;A.getters["frames/isLeader"]()&&1<(e=_.unique(_.compact([].concat(_.toArray(M("._pendo-resource-center-badge-container"))).concat(_.toArray(M("._pendo-resource-center-badge-container")))))).length&&function(e){var t=Ja(e[0]),e=Ja(e[1]);return Ya(t,e)}(e)&&(t=ja(e[0]).width+5,n=ja(e[1]).left-t<0?"":"-",e[1].style.transform="translateX("+n+t+"px)")},resourceCenterIgnoreRtl:function(){return _.get(this.getResourceCenterBadge(),"ignoreRTL",!1)},adjustResourceCenterWidth:function(e){var t=vh();if(t){o=Ba().width,r=M(t),e=M(e),r.css({"max-width":"none"}),e.css({"max-width":"none"}),i=parseInt(f(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=M('button[id^="pendo-a11y-list-item-button-block"]');if(n&&n.length)for(var i=M(t.find("ol._pendo-text-list-ordered"))[0],r=0,o=0,i=(i&&(i=f(i),o=parseInt(i.paddingLeft,10),r=parseInt(i.paddingRight,10)),M('[id^="pendo-onboarding-guide-progress-circle"]')[0]),e=0,a=0,s=0,d=(i&&(i=f(i),e=parseInt(i.width,10),a=parseInt(i.marginRight,10),s=parseInt(i.marginLeft,10)),o+r+e+s+a),u=parseInt(f(t[0]).width,10),c=0;c<n.length;c++){var l=n[c],p=M(l),l=(p.css({"max-width":"none"}),f(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:uh,renderNativeIntegration:fh,isSupportedNativeIntegration:ah,handleNativeIntegrationContinuation:gh,isProviderInstalled:sh,adjustNotificationBubbleForResize:Sh,getNotificationBubbleDefaultCss:kh,getModuleId:Uh,isIframeModule:function(e){return"IframeModule"===Uh(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===Uh(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===Uh(e)&&e.hasResourceCenterContent},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!D.isSupportedNativeIntegration(e.integrationProvider)||D.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n,i,r=eh(e);return!r||t.getters["frames/isShownInAnotherFrame"]()(r.steps[0])?m.resolve():(t=th(r,e),n=[],i=_.indexBy(e,"id"),_.each(t,function(e){var e=e.attributes.resourceCenter;"AnnouncementsModule"===e.moduleId&&(e=e.children,e=_.reduce(e,function(e,t){t=i[t];return t?e.concat(t):e},[]),_.each(e,function(e){Qp(e)&&n.push(e.steps[0].fetchContent(!0))}))}),m.all(n))},setFocusForResourceCenterModule:function(e,t){var n;"HomeViewModule"===e[0].getAttribute("data-layout")?t&&(e=M('[data-pendo-module-guide-id="'+t+'"]'),n=e.find('button[id^="pendo-right-caret-"]')[0]):(t=M('[id="pendo-resource-center-module-title-container"]'),n=t.find('button[id^="pendo-left-caret-"')[0]);n&&n.focus()},revertRtlChanges:function(e,t){var n="rtl"===_.get(t,"data-localization-direction",!1),e=_.get(e,"attributes.badge.ignoreRTL",!1);n&&e&&!t["data-direction-changed"]&&(n=_.get(t,"style.left",!1),e=_.get(t,"style.right",!1),n)&&e&&(t.style.left=e,t.style.right=n,t["data-direction-changed"]=!0)},stashBadgeAriaLabel:Ch,resetBadgeAriaLabel:function(){var e=D.getResourceCenterBadge();{var t;e&&(e=e.element(),t=e.getAttribute("data-pendo-stashed-aria-label"))&&e.setAttribute("aria-label",t)}},getNotificationBubbleAriaLabelAttribute:Th,updatePseudoStyleSelectors:Gh,hideRCBadge:Bh,isModule:Dh};function Qp(e){return e.steps&&e.steps.length&&_.isFunction(e.steps[0].fetchContent)}function eh(e){var e=_.filter(e,function(e){return _.get(e,"attributes.resourceCenter.isTopLevel")&&!e.isFrameProxy}),t=_.find(e,function(e){return"staged"===e.state});return t||e[0]}function th(t,e){return _.filter(e,function(e){return e&&!e.isFrameProxy&&Dh(e)&&e.state===t.state})}function nh(t,e,n,i=!0){if(!Jp){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),vh());if(e){var a=M(e).find('[id^="pendo-g-"]')[0];if(a){var s,d=a.getAttribute("data-pendo-guide-id"),u=_.find(Fu(),function(e){return e.id===t}),c=(t!==P.id?(xp(_.get(P.activeModule||P,"steps.0.id")),P.activeModule=u):(s=P.activeModule,xp(_.get(s,"steps.0.id")),delete P.activeModule),_.get(u,"attributes.resourceCenter.integrationProvider")),l=(ah(c)&&fh(c),u.steps[0]),c=(l.isDarkMode===undefined&&nl(l),Gh(l.domJson)),c=(c.props["data-pendo-guide-id"]=u.id,Sp(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&&(M(a).remove(),s)&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),M(e).find('[id^="pendo-end-focus-bumper-"]')[0]);if(r?M(p).insertBefore(r):M(p).appendTo(e),l.guideElement=M(e),l.elements.push(l.guideElement[0]),tl(l,p),D.adjustResourceCenterWidth(p),"AnnouncementsModule"===Uh(u)&&l.guide.guidesInModule?(rp(r=_.reduce(l.guide.guidesInModule,function(e,t){var n;return _.isUndefined(t.steps[0].attributes.imgCount)&&(n=t.steps[0].id,n=M(p).find("#pendo-g-"+n)[0]?n:t.id,e.push("pendo-g-"+n)),e},[]),l.guideElement),_.each(r,function(e){g.flexAllThings(e,l)})):g.flexAllThings("pendo-resource-center-container"),ep(M(e)),p.style.left="0px",!n){Jp=!0;try{"left"===o?a.style.left=-1*e.offsetWidth+"px":"right"===o&&(a.style.left=e.offsetWidth+"px"),Ut(function(){M(a).remove(),s&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),Jp=!1},200)}catch(h){throw Jp=!1,h}}return"AnnouncementsModule"===Uh(u)&&(r=ol.getGuidesInResourceCenterModule(u,Fu()),(n=_.reduce(r,function(e,t){return t.steps&&t.steps.length&&Vc.hasContent(t.steps[0])||e.push(t.fetchContent()),e},[])).length)&&((o=function(){var i,e,t;if(_.isFunction(document.createElementNS))return i="http://www.w3.org/2000/svg",e=function(e,t){var n=M(document.createElementNS(i,"circle")).attr({cx:e,cy:t,fill:"#9a9ca5",r:5});return _.each(_.toArray(arguments).slice(2),function(e){n.append(e)}),n},t=function(e){return M(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=M(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"))),M(document.createElement("li")).css({padding:"5px 20px","list-style-type":"none","list-style-position":"inside",position:"relative","margin-left":"0em","border-width":"0px","border-style":"solid","border-color":"rgb(255, 255, 255)","float":"none","vertical-align":"baseline","text-align":"center"}).append(t)}())&&c.find("ol").append(o),m.all(n).then(function(){var e=m.defer();return Ut(e.resolve,500),e.promise}).then(function(){P.activeModule===u&&D.renderResourceCenterModule(u,i)})),D.setFocusForResourceCenterModule(c,d),i&&l.onShown("launcher"),c}}}}function ih(e,t){return Wp.findExtensionByNameAndProvider(e,t)}function rh(e,t){e=Wp.findExtensionByNameAndProvider(e,t);if(!e)return T.info(t+" integration has not been loaded into the agent");ah(t)&&sh(t)?P.hasEligibleNativeIntegrationModule=!0:($a((t=e.getFrame())[0])||t.appendTo(ec()),t.css({display:"none"}))}function oh(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging","visitorAssist"]}function ah(e){return!!e&&0<=oh().indexOf(e)}function sh(e){return!!e&&null!==(e=dh(e))&&_.isFunction(window[e])}function dh(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";case"visitorAssist":return"visitorAssist";default:return null}}function uh(e,t){if(e)if(sh(e))ch(e,t);else{var n;if("function"==typeof Object.defineProperty){const i=dh(e);null!==i&&(Xp&&Xp[i]?Xp[i][e]||(Xp[i][e]={installed:!1,integrationObj:t}):((Xp=Xp||{})[i]={[e]:{installed:!1,integrationObj:t}},Object.defineProperty(window,i,{get(){return n},set(e){n=e,_.forEach(Xp[i],function(e,t){const n=e.integrationObj;!e.installed&&sh(t)&&(e.installed=!0,ch(t,n),rh(n.name,t),_.forEach(P.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 ch(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=ph(i);lh(n,"webWidget","hide"),lh(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),lh(n,"webWidget:on","close",function(){lh(n,"webWidget","hide"),hh()}),P.isInProgress()&&!P.attributes.doNotResume&&gh(P.activeModule),lh(n,"webWidget:on","chat:unreadMessages",function(e){Lh(e,"chat")});break;case"zendesk-messaging":i=t;lh(i=i.data.provider.name,"messenger","hide"),lh(i,"messenger:on","close",function(){hh()}),lh(i,"messenger:on","unreadMessages",function(e){Lh(e,"chat")}),P.isInProgress()&&!P.attributes.doNotResume&&gh(P.activeModule);break;case"intercom-chat":var r=t;r=ph(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(){hh()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=Fp();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(!P.isNativeModuleActive)return Lh(1,"chat")})}),window.drift.on("chatClose",function(e){Lh(0,"chat"),window.drift.hide(),hh()});break;case"visitorAssist":window.visitorAssist.onClose(function(){hh()})}}function lh(e,...t){try{Zp&&Zp[e]||window.zE.apply(null,t)}catch(n){Zp?Zp[e]=!0:Zp={[e]:!0}}}function ph(e){e=_.get(e,"data.options.labels.position");return e=e&&e.split("-")}function hh(){Fh(P.activeModule),delete P.activeModule,P.continueToNativeModule=!1}function fh(e,t){if(e){var n=Fp();if(P.isShown()&&P.hide(),Zp&&Zp[e])T.info(e+" integration failed to communicate with API, closing"),D.replaceResourceCenterContent(P.id,undefined,!0),hh();else{var i=yh();switch(i&&Bh(i,P),e){case"zendesk-messaging":lh(e,"messenger","show"),lh(e,"messenger","open");break;case"zendesk-native-kb":lh(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),lh(e,"webWidget","show"),lh(e,"webWidget","open");break;case"zendesk-chat":lh(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&lh(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});break;case"visitorAssist":window.visitorAssist.launch()}Lh(0,"chat"),!P.activeModule&&t&&(P.activeModule=t).steps[0].onShown("launcher")}}}function gh(e){e&&!e.isTopLevel&&(fh(_.get(e,"attributes.resourceCenter.integrationProvider")),P.activeModule||(P.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function mh(){return P}function vh(){return _.get(P,"steps.0.guideElement.0")}function yh(){if(P&&P.id)return Pu[P.id]}function bh(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 wh(e){return e&&_.all(e,function(e){return $a(e&&e.length?e[0]:e)})}function Sh(){var e,t=D.getResourceCenter(),n=_.get(t,"attributes.notifications");n&&(n=D.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&_.get(t,"attributes.activation.selector")&&(e=M(t.attributes.activation.selector)).length&&D.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function Eh(e){return _.reduce(e,function(e,t){return e+t},0)}function Ih(){var e,t=P;t&&(t=_.get(t,"attributes.notifications"))&&(e=vh())&&M(e).find("._pendo-resource-center-home-list").length&&_.each(t.individualCounts,function(e,t){_h(e,t)})}function _h(e,t){var n=D.getResourceCenterContainer();n&&(n=M(n).find('[data-pendo-notification-id="'+t+'"]')).length&&(t=M(n[0]).find("._pendo-home-view-bubble"),n=M(t[0].children[0]),e!==parseInt(n.text(),10))&&(0<e?(n.text(e),M(t[0]).css({display:"block","margin-right":"0"})):(n.text(""),M(t[0]).css({display:"none"})))}function Ch(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function Th(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function xh(e,t,n){var i=Th(n);let r=e.getAttribute(i);r&&(Ch(e),r=r.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",r));var i=_.get(t,"position","top-left"),o=f(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=D.resourceCenterIgnoreRtl();Ah(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 Rh(e,t,n){var i=ha(e,e),r=ha(e,Va());Ah(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 Ah(e,t,n,i,r){var o,a;wh(Yp)?(a=(o=kh(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=_.extend(a,i),o=_.extend(o,r),Yp.bubbleEle.css(a),Yp.unseenCountEle.css(o),Yp.unseenCountEle.text()!=""+n&&Yp.unseenCountEle.text(n)):(a=M(e).find(".pendo-resource-center-badge-notification-bubble")).length?a[0].getElementsByClassName("pendo-notification-bubble-unread-count")[0].textContent=n:n&&Nh(Yp=Oh(t,n,i,r),e)}function kh(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 Oh(e,t,n,i){var r=kh(e),o=r.defaultBubbleCss,r=r.defaultUnseenCountCss,a=(t=t||0,M(document.createElement("div")).addClass("pendo-resource-center-badge-notification-bubble")),s=M(document.createElement("div")).addClass("pendo-notification-bubble-unread-count"),o=_.extend(o,n),n=_.extend(r,i);return a.css(o),s.css(n),Me(10)||vp()||(i="rgb("+(r=bh(e["background-color"])).r+", "+r.g+", "+r.b+")",Qc(C,"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 Nh(e,t){e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function Mh(){var n=Yp?Yp.bubbleEle:M(".pendo-resource-center-badge-notification-bubble"),i=Yp?Yp.styleEle:M("#pendo-resource-center-bubble-animation");n&&_.each(n,function(e,t){n[t]&&(t=n[t])&&t.parentNode&&t.parentNode.removeChild(t)}),i&&_.each(i,function(e,t){i[t]&&(t=i[t])&&t.parentNode&&t.parentNode.removeChild(t)}),Yp=null,D.resetBadgeAriaLabel()}function Lh(e,t){var n=P;n&&(n=_.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,D.updateNotificationBubbles())}function Ph(e){return!(!_.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function Dh(e){return _.get(e,"attributes.resourceCenter.isModule",!1)}function Fh(e){var t=Dh(e)?e:D.findShownResourceCenterModule();t&&(t=_.first(t.steps),E.onGuideDismissed(t));t=(_.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:D.findResourceCenterHomeView(Fu())).steps[0];return E.onGuideDismissed(t)}function Uh(e){return _.get(e,"attributes.resourceCenter.moduleId")}function Gh(e){var t=["pendo-a11y-list-item-button-block","pendo-link-","pendo-right-caret-","pendo-row-","pendo-text-"].join("|");const n=new RegExp(`#((${t})[^:]*)`);t=function i(e,t){var n=[];return t(e)&&n.push(e),e.children?n.concat(..._.map(e.children,function(e){return i(e,t)})):n}(e,function(e){return e.css&&e.css.length});return _.forEach(t,function(e){_.forEach(e.css,function(e){e.selector=e.selector.replace(n,"[id^='$1']")})}),e}function Bh(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete Pu[t.id])}var Hh=1e4,zh="lastStepAdvanced",jh={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function qh(e){A.dispatch("guideState/updateLastGuideStepSeen",e),A.dispatch("guideState/write"),A.dispatch("frames/changeLastGuideStepSeen",e)}function Wh(e){return _.get(e,"data.0")}function Vh(e){var e=Wh(e);return(e=e&&b((e.props||{}).guide_id))?!e.attributes||!e.attributes.doNotResume:void 0}function Kh(e,t){var n,e=Wh(e);e&&(t={guideId:(n=e.props||{}).guide_id,guideStepId:n.guide_step_id,time:e.browser_time,state:t,visitorId:e.visitor_id},null!=n.reason?t.seenReason=n.reason:null!=n.seen_reason&&(t.seenReason=n.seen_reason),null!=n.destination_step_id&&(t.destinationStepId=n.destination_step_id),null!=n.dismiss_count&&(t.dismissCount=n.dismiss_count),null!=n.snooze_duration&&(t.snoozeEndTime=e.browser_time+n.snooze_duration),qh(t))}function $h(){A.dispatch("guideState/regainFocus")}function Jh(){return A.state.guideState.lastGuideStepSeen}n={actions:{init(e){e.getters.storage().registry.addLocal(zh),e.commit("setScopedStorageKey",Cn(e.state.storageKey));var t={};_.each(jh,function(e){t[e]=Cn(e)}),e.commit("setScopedThrottlingStorageKeys",t),R.identify.on(function(e){Mi(e)&&mi([zh])}),R.guideSeen.on(function(e){Kh(e,"active")}),R.guideAdvanced.on(function(e){Vh(e)&&Kh(e,"advanced")}),R.guideDismissed.on(function(e){Vh(e)&&Kh(e,"dismissed")}),R.guideSnoozed.on(function(e){Kh(e,"snoozed")})},load(t){var e,n=t.getters.storage().read(zh,!1,t.getters.cookieSuffix());if(n){try{e=JSON.parse(n)}catch(i){}e&&_.each([].concat(e),function(e){t.commit("setStepState",e)})}t.dispatch("loadThrottling")},loadThrottling(n){const i=n.getters.storage();_.each(jh,function(e){var t=i.read(e);n.dispatch("updateThrottlingState",{name:e,value:t})})},applyThrottling(i){_.each(jh,function(e){var t,n;E[e]=(t=E[e],n=i.state[e],n=parseInt(n,10),isNaN(n)||!_.isNumber(n)||!(_.isNumber(t)&&t<n)&&_.isNumber(t)?t:n),i.dispatch("updateThrottlingState",{name:e,value:E[e]})})},forceExpire(n){_.each(n.state.steps,function(e,t){n.commit("expireStepState",t)})},expire(n){var i=n.getters.now();_.each(n.state.steps,function(e,t){i-e.time>n.state.ttl&&n.commit("expireStepState",t)})},apply(o){var a,s=_.indexBy(o.getters.guideList(),"id");o.dispatch("expire"),_.each(o.state.steps,function(e){var t,n,i=e.guideId,r=e.guideStepId;e.visitorId&&e.visitorId!==o.getters.visitorId()||((i=s[i])&&!i.channel&&(!a||e.time>a.time)&&(a=e),i&&(t=_.findWhere(i.steps,{id:r}))&&(n=o.state.storageKey,t.seenState!=e.state&&(T.info("making sure that seenState = '"+e.state+"' for "+n+": "+r),t.seenState=e.state),t.snoozeEndTime!=e.snoozeEndTime&&(T.info("making sure that snoozeEndTime = '"+e.snoozeEndTime+"' for "+n+": "+r),t.snoozeEndTime=e.snoozeEndTime),t.seenReason!=e.seenReason&&(T.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),T.info("making sure that dismissCount = '"+t.dismissCount+"' for "+n+": "+r)),e.destinationStepId!==undefined&&t.destinationStepId!=e.destinationStepId&&(T.info("making sure that destinationStepId = '"+e.destinationStepId+"' for "+n+": "+r),t.destinationStepId=e.destinationStepId),t.lastSeenAt!=e.time&&(T.info("making sure that lastSeenAt = '"+e.time+"' for "+n+": "+r),t.lastSeenAt=e.time),n=_.indexOf(i.steps,t),_.each(i.steps.slice(0,n),function(e){_.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})))}),a&&o.dispatch("updateLastGuideStepSeen",_.extend({},o.state.lastGuideStepSeen,a)),o.dispatch("applyThrottling")},receiveLastGuideStepSeen(e,t){e.commit("setReceivedLastGuideStepSeen",t),e.commit("setLastGuideStepSeen",t)},updateLastGuideStepSeen(e,n){var t;n.visitorId&&n.visitorId!==e.getters.visitorId()||(t=_.some(e.getters.guideList(),function({id:e,channel:t}){return e===n.guideId&&!t}),n.guideStepId&&e.commit("setStepState",n),t&&(e.commit("setLastGuideStepSeen",n),E.lastGuideStepSeen=n),Rv&&Rv.update(n))},updateThrottlingState(e,t){e.commit("setThrottlingState",t)},write(e){e.dispatch("expire");var t=e.rootState.frames.tabId,n=e.state.storageKey,i=e.getters.cookieSuffix(),r=e.state.ttl,o=e.getters.storage(),a=JSON.stringify(_.map(e.state.steps,function(e){return _.extend({tabId:t},e)}));T.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)&&(ug(),e.dispatch("load"),e.dispatch("apply"),e.state.receivedStateChangeAt||e.commit("setReceivedStateChange",e.getters.now()))}else _.contains(_.values(e.state.scopedThrottlingStorageKeys),t.key)&&(e.dispatch("loadThrottling"),e.dispatch("applyThrottling"))},regainFocus(e){var t=e.getters.tabLostFocus(),n=e.getters.isGuideRequestStale();t&&(e.commit("setReceivedStateChange",null),n||(cg(),lg())),n&&Wv()}},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},setScopedThrottlingStorageKeys(e,t){e.scopedThrottlingStorageKeys=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:Hh,storageKey:zh,guideRequestExpiration:36e5,scopedStorageKey:null,scopedThrottlingStorageKeys:{},receivedStateChangeAt:null,receivedLastGuideStepSeen:null,lastGuideStepSeen:null,lastGuideRequestAt:null,latestDismissedAutoAt:null,latestSnoozedAutoAt:null,finalAdvancedAutoAt:null},getters:{now(){return S()},storage(){return x},guideList(){return y()},tabLostFocus(e){return!!e.receivedStateChangeAt},isGuideRequestStale(e,t){return null!=e.lastGuideRequestAt&&t.now()-e.lastGuideRequestAt>e.guideRequestExpiration},storageChangedInOtherTab(n,e,i){return function(e){var t=_.get(i,"frames.tabId");return!!e&&!!((e=_.max(_.compact(e),"time"))&&e.tabId&&t&&e.tabId!==t)&&(!n.lastGuideStepSeen||!n.lastGuideStepSeen.time||e.time>n.lastGuideStepSeen.time)}},cookieSuffix(){return C.get("crossAppGuideStorageSuffix")},visitorId(){return v()}}};function Yh(e,t){var n=[],i=[];return _.each(e,function(e){(e.isTraining?n:i).push(e)}),t?n.concat(i):i.concat(n)}var Xh={canDisplay:function(e,t,n){if(n&&n.enabled&&_.isFinite(t)){t=ef(t,n);if(_.isNumber(t)&&!isNaN(t))return t<=e}return!0},lastDismissedTime:function(e){return Math.max(e.latestDismissedAutoAt||-Infinity,e.finalAdvancedAutoAt||-Infinity,e.latestSnoozedAutoAt||-Infinity)},sortAndFilter:function(e,t){var n=C.get("appAutoOrdering")||[].concat(C.get("leaderKey"));{var i;n.length&&(i=A.getters["frames/autoOrdering"](),n=_.reduce(n,(e,t)=>e.concat(i[t]||[]),[]),t=_.uniq(n.concat(t)))}n=function(e){e=_.defaults(_.groupBy(e,function(e){return Qh(e)?"override":"auto"}),{override:[],auto:[]});return e.override.concat(e.auto)}(function(e,t){var n;return _.isArray(t)&&t.length?(n=_.indexBy(e,"id"),t=_.reduce(t,i,[]),_.chain(e).pluck("id").reduce(i,t).value()):e;function i(e,t){return n[t]&&(e.push(n[t]),delete n[t]),e}}(_.filter(e,Zh),t));return _.find(e,function(e){return e.isTraining})?(t=C.get("adoptPrioritizeAdoptGuides"),Yh(n,t)):n},tryDisplayGuide:function(e,t){var n=Xh.lastDismissedTime(t),n=Xh.canDisplay(S(),n,t.throttling);if((Qh(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:ef};function Zh(e){return e&&/auto/.test(e.launchMethod)}function Qh(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||_.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function ef(e,t){var n=t.interval,t=(t.unit||"").toLowerCase();return _.isNumber(n)&&kt(e)?"minute"===t?6e4*n+e+1:"hour"===t?36e5*n+e+1:"day"===t?(t=e,e=n,(t=new Date(Math.max(t,0))).setHours(0,0,0,0),t.setDate(t.getDate()+e),t.getTime()):void 0:_.isNumber(n)?(new Date).getTime():void 0}function tf(t){return R.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+"?"+Ko(n))),e},(e=this.showPermalinkGuide(e,i)).then?e.then(o):o(e)}},getQueryString:a,getGuideFromUrl:function(e){e=e.pendo||e.c__pendo;return e?t(e):null},getStepFromUrl:function(e,t){e=e.step;return e?function(e,t){return _.find(e.steps,function(e){return e.id===t})}(t,e):null},showPermalinkGuide:function(e,t){return(t||e).show("permalink")},shouldShowPermalinkGuide:function(e){return!e.shownFromPermalink}};function a(e){var t=zo(e).substring(1),t=Vo(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=zo(e.substring(n+1)).substring(1),_.extend(t,Vo(n))),t}}var nf=_.memoize(function(){return tf(b)});function rf(e){return e&&e.attributes&&e.attributes.doNotResume}function of(e,t){e=_.find(e,function(e){return e.isContinuation(t)});if(e&&!rf(e))return e}function af(e){return _.filter(e,function(e){return e.channel&&!rf(e)&&e.isContinuation()})}const sf={permalink:"permalink",continuation:"continuation",auto:"auto"};class df{constructor(){this.name="autoDisplay",this.queue=[]}markDirty(){if(cc()){this.queue.push({type:sf.permalink});var e=y(),t=of(e,Jh());t&&this.queue.push({type:sf.continuation,guide:t});for(const n of af(e))this.queue.push({type:sf.continuation,guide:n});e=Xh.sortAndFilter(e,E.autoOrdering),t=t?_.filter(e,e=>e.channel):e;this.queue.push(..._.map(t,e=>({type:sf.auto,guide:e})))}}process(e){var t=this.queue.shift();if(t.type===sf.permalink){if(!Bu())return nf().tryDisplay()}else if(t.type===sf.continuation){var n=t["guide"];if(!Bu({channel:n.channel}))return e.saveContext(n),n.show("continue")}else{n=t["guide"];if(!Bu({channel:n.channel}))return e.saveContext(n),Xh.tryDisplayGuide(n,E)}}handleProcessTimeExceeded(e){e=e.getContext();e&&T.warn("Auto display ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}function uf(){var s={};return _.each(["after","before"],function(i){this[i]=function(e,t){var n,r,o,a;this[e]&&((n=s[e])||(n=s[e]={before:[],after:[]},this[e]=(r=this[e],o=n.before,a=n.after,function(){for(var e=_.toArray(arguments),t=0,n=o.length;t<n;++t)if(!1===o[t].apply(this,e))return;var i=r.apply(this,e);for(t=0,n=a.length;t<n&&!1!==a[t].apply(this,e);++t);return i})),n[i].push(t))}},this),this}function cf(e){return"hidden"===e.visibilityState}const lf="visibilitychange",pf="pagehide",hf="unload";function ff(e,t){if(t&&"onpagehide"in window){const n=[];return n.push(mo(document,lf,()=>{cf(document)&&e(!0,!1)})),n.push(mo(window,pf,_.partial(e,!1,!0))),()=>_.each(n,function(e){e()})}return mo(window,hf,_.partial(e,!0,!0))}function gf(){this.serializers=_.toArray(arguments)}function mf(e,t){return e.tag=Bi.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function vf(e){return I(e)?""+e:""}function yf(e,t){return e.id=vf(t.id),e}function bf(e,t){return e.cls=vf(M.getClass(t)),e}_.extend(gf.prototype,{add(e){this.serializers.push(e)},remove(e){e=_.indexOf(this.serializers,e);0<=e&&this.serializers.splice(e,1)},serialize(n,i){return n?(i=i||n,_.reduce(this.serializers,function(e,t){return t.call(this,e,n,i)},{},this)):{}}});var wf=256,Sf=64,Ef={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 If=function(e,t,n){if(!e||!e.nodeName)return null;var i=e.nodeName.toLowerCase();if(("img"==i&&"src"==t||"a"==i&&"href"==t)&&To())return i=e.getAttribute(t),Bo((i=i)&&0===i.indexOf("data:")?(T.debug("Embedded data provided in URI."),i.substring(0,i.indexOf(","))):i+"");i=e,e=t;t=A.getters["nodeAttr/getAttribute"]()(i,e);return(!n||typeof t===n)&&t?_.isString(t)?mt.call(t).substring(0,wf):t:null};function _f(t){var e,n,i;return _.isRegExp(t)&&_.isFunction(t.test)?function(e){return t.test(e)}:_.isArray(t)?(e=_.map(_.filter(t,_.isObject),function(e){var t;return e.regexp?(t=(t=/\/([a-z]*)$/.exec(e.value))&&t[1]||"",new RegExp(e.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),t)):new RegExp("^"+e.value+"$","i")}),function(t){return _.any(e,function(e){return e.test(t)})}):_.isObject(t)&&t.regexp?(n=(n=/\/([a-z]*)$/.exec(t.value))&&n[1]||"",i=new RegExp(t.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),n),function(e){return i.test(e)}):_.constant(!1)}function Cf(e,t,n,i){try{var r,o=_.indexBy(t),a=_.filter(_.filter(e,function(e){return n(e.nodeName)||o[e.nodeName]}),function(e){return!i(e.nodeName)});return a.length<=Sf?_.pluck(a,"nodeName"):(r=_.groupBy(e,function(e){return o[e.nodeName]?"defaults":_.isString(e.value)&&e.value.length>wf?"large":"small"}),_.pluck([].concat(_.sortBy(r.defaults,"nodeName")).concat(_.sortBy(r.small,"nodeName")).concat(_.sortBy(r.large,"nodeName")).slice(0,Sf),"nodeName"))}catch(s){return T.error("Error collecting DOM Node attributes: "+s),[]}}function Tf(t,n){var e=_f(C.get("htmlAttributes")),i=_f(C.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=If(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},Cf(n.attributes,Ef[r]&&Ef[r].attr,e,i));return _.each(r,function(e){t.attrs[e.toLowerCase()]=If(n,e)}),t}function xf(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=_.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),n=n.filter(function(e){return e.nodeType==na}),e.childIndex=n.indexOf(t).value()),e}function Rf(i,e){var r;return C.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(Rf),e=this.serialize(e.previousElementSibling),this.add(Rf),i.attrs=i.attrs||{},_.each(e,function(e,t){var n={cls:"class",txt:"pendo_text"}[t]||t;_.isEmpty(e)||(_.isObject(e)?_.each(e,function(e,t){e&&!_.isEmpty(e)&&(i.attrs[r+n+"_"+t]=e)}):i.attrs[r+n]=e)})),i}var Af=new gf(mf,yf,bf,Tf,xf,Rf),kf=function(e){return"BODY"===e.nodeName&&e===Va()||null===e.parentNode&&!Bi.isElementShadowRoot(e)},Of="pendo-ignore",Nf="pendo-analytics-ignore",Mf=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=Af.serialize(o,e)}while(r||!xt(a.cls,Of)&&!xt(a.cls,Nf)||(r=!0),n.parentElem=a,n=a,(i=Bi.getParent(o))&&!kf(o));return r&&(t.parentElem.ignore=!0),t.parentElem},Lf=["","left","right","middle"],t=function(e){return e},Se=function(e,t){return e[t]},Pf=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return Lf[t]}],["altKey",Se,t,t],["ctrlKey",Se,t,t],["metaKey",Se,t,t],["shiftKey",Se,t,t]],Df={click:function(e,t){for(var n=[],i=0;i<Pf.length;i++){var r=Pf[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}},Ff=function(e){try{var t,n,i,r,o;Ud.startTimer(kd),M.data.get(e,"counted")||(M.data.set(e,"counted",!0),t=yo(e),n=e.type,i={},(r=Df[n])&&(i=r(e,i)),M.data.get(e,"stopped")&&(i.stopped=!0),e.from&&_.isString(e.from)&&(i.from=e.from),(t=(a=t).nodeType===ta?a.parentNode:a.nodeType===oa?null:a.correspondingUseElement||a)?(o=Mf(t),_.extend(o,i),Au()&&L.startPoller(),o.ignore||(Bd(n,{target:o},undefined,undefined,undefined,e),R.trigger("appUsage",o,e))):T.info("Invalid HTML target",{contexts:["event","dom","processing"]}))}catch(s){T.critical("pendo.io while handling event",{error:s})}finally{Ud.stopTimer(kd)}var a},Uf=function(e){var t=_.map(e,function(e){return F(document,e,Ff,!0)});return()=>{_.each(t,function(e){e()})}},Gf=_.debounce(Ff,5e3,!0),Bf=function(e){const t=[];_.contains(e=e||["click","focus","submit","change"],"change")&&(e=_.without(e,"change"),t.push(()=>{Gf.cancel()}),t.push(mo(document,"change",Gf,!0)));var n=C.get("syntheticClicks.elementRemoval"),i=C.get("syntheticClicks.targetChanged"),n=(t.push(function(t,e,n,i){var r,o,a=[],s=et.hasEvent("pointerdown"),d=s?"pointerdown":"mousedown",s=s?"pointerup":"mouseup",u=[],c={cloneEvent:function(e){e=M.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&&yo(r)!==yo(e)&&$a(yo(r))&&(o=!0,t(r))},click:function(e){r=null,o&&M.data.set(e,"ignore",!0),o=!1,n&&c.unwrap()},intercept:function(e){e=function(e){var t=[];for(;e&&!kf(e);)t.push(e),e=e.parentNode;return t}(yo(e));_.each(e,function(e){e=Hf(e,c.remove);a.push(e)})},remove:function(){r&&(t(r),r=null),c.unwrap()},unwrap:function(){0<a.length&&(_.each(a,function(e){e()}),a=[])},teardown:function D0(){c.unwrap(),_.each(u,function(e){e()})}};e&&(u.push(mo(document,d,c.down,!0)),u.push(mo(document,s,c.up,!0)),u.push(mo(document,"click",c.click,!0)));return c}(M.event.trigger,et.addEventListener,n,i).teardown),t.push(Uf(e)),t.push(ff(function(e,t){t&&R.appUnloaded.trigger(),e&&R.appHidden.trigger()},C.get("preventUnloadListener"))),C.get("interceptStopPropagation",!0)),i=C.get("interceptPreventDefault",!0);return n&&t.push(zf(window.Event,e)),i&&t.push(jf(window.Event,["touchend"])),()=>{_.each(t,function(e){e()})}};function Hf(n,i){var e=["remove","removeChild"];try{if(!n)return _.noop;_.each(e,function(e){var t=n[e];if(!t)return _.noop;n[e]=_.wrap(t,function(e){return i&&i(),e.apply(this,_.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return _.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){T.critical("ERROR in interceptRemove",{error:t})}return function(){_.each(e,function(e){if(!n[e])return _.noop;e=n[e]._pendoUnwrap;_.isFunction(e)&&e()})}}function zf(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return _.noop;var i=_.indexBy(e);_.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=_.wrap(t,function(e){var t=e.apply(this,arguments);return i[this.type]&&(M.data.set(this,"stopped",!0),M.event.trigger(this)),t}),n.prototype[e]._pendoUnwrap=function(){n.prototype[e]=t,delete n.prototype[e]._pendoUnwrap})})}catch(r){T.critical("ERROR in interceptStopPropagation",{error:r})}return function(){_.each(t,function(e){e=n.prototype[e]._pendoUnwrap;_.isFunction(e)&&e()})}}function jf(t,e){try{if(!t||!t.prototype)return _.noop;var i=_.indexBy(e),n=t.prototype.preventDefault;if(!n)return _.noop;t.prototype.preventDefault=_.wrap(n,function(e){var t,n=e.apply(this,arguments);return i[this.type]&&((t=M.event.clone(this)).type="click",t.from=this.type,t.bubbles=!0,t.eventPhase=fo,M.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){T.critical("ERROR in interceptPreventDefault",{error:r})}return function(){var e=t.prototype.preventDefault._pendoUnwrap;_.isFunction(e)&&e()}}function F(e,t,n,i){return e&&t&&n?(i&&!et.addEventListener&&(i=!1),M.event.add(e,{type:t,handler:n,capture:i})):_.noop}function qf(e,t,n,i){e&&t&&n&&(i&&!et.addEventListener&&(i=!1),M.event.remove(e,t,n,i))}var Wf=function(e){M.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},Vf=function(e,t){var n=(t=t||window).document;return"complete"!==n.readyState?mo(t,"load",function(){"complete"===n.readyState&&e()}):(e(),_.noop)};class Kf{constructor(e,t){this.type=t,this.identificationFn=e}test(e){return this.identificationFn(e)}}const $f=(()=>{const n={},e=({data:e})=>{var[e,,]=e,e=e["guideId"];const t=b(e);e=(_.find(n,e=>e.GuideType.test(t))||{}).handler;e&&e(t,"resourceFetchFail")};return{run:()=>{R.resourceFetchFail.on(e)},stop:()=>{R.resourceFetchFail.off(e)},addTypeHandler:(e,t)=>{_.isFunction(t)?n[e.type]={GuideType:e,handler:t}:T.error("Invalid Handler function provided for type "+e.type)}}})();$f.addTypeHandler(new Kf($u,"badge"),(e,t)=>{Hu.addGuide(e)});var Jf="_pendo-badge_";function Yf(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function Xf(t,n){var e,i,r,o,a,s=ic(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=_.reduce([(o=t.language,a=d?["he","ar"]:[],e=>(_.contains(a,o)&&(e.props["data-localization-direction"]=!0),e)),(r=u,e=>{var t,n;return _.get(e,"props.data-localization-direction",!1)&&!r&&(t=_.get(e,"props.style.left","auto"),n=_.get(e,"props.style.right","auto"),t)&&n&&(e.props.style.left=n,e.props.style.right=t),e}),Yf,Ic,function(e){return Sp(e,{id:n.id,guideId:t.id,isBadge:!0})}],(e,t)=>t(e),this.domJson)[0],i=e,M.removeNode(e),-1===i.className.indexOf("_pendo-badge_")&&(i.className+=" _pendo-badge_"),this.isP2Badge=!0):((i=document.createElement("img")).src=Ec(this.imageUrl),i.className="_pendo-badge "+Jf,d=this.width||13,u=this.height||13,Ua(i,"width:"+d+"px;height:"+u+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=_.isFunction(n.getGuide)&&n.getGuide(),t=Ku(e);!e.isShown()||A.getters["frames/isShownInAnotherFrame"]()(n)?Dm(n,"badge"):t?n.eventRouter.eventable.trigger("pendoEvent",{step:n,action:"dismissGuide"}):(t=_.find(e.steps,function(e){return e.isShown()}),wm(t))},this.shouldShow=function(){return t.canBadgeBeShown()||!1},this.show=function(){if(_.isFunction(this.shouldShow))return this.shouldShow()},this.hide=function(){M.removeNode(i),xp(t.id),_.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},Ku(t)&&(this.toggleAriaExpanded=function(){var e=!!M("#pendo-resource-center-container")[0],t=M("button._pendo-resource-center-badge-container")[0]||M('._pendo-resource-center-badge-container [id^="pendo-image-badge-"]')[0];t&&t.setAttribute("aria-expanded",e)},i.checkAriaExpanded=this.toggleAriaExpanded),this.step=_.constant(n),this.target=_.constant(s),this.element=_.constant(i),this}Xf.create=function(n){var i=Xf.findStep(n);if(i)return _.reduce(Xf.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},Xf.findStep=function(e){var t=_.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},Xf.behaviors=[uf,Xf,function(){"inline"!==this.position&&"inline-right"!==this.position&&"inline-left"!==this.position||this.before("show",function(){var e,t,n=this.target(),i=this.element();this.isP2Badge&&Ua(i,"display:inline-block;vertical-align:text-bottom;"),this.css&&Ua(i,this.css),n&&n.tagName&&(e=n.tagName.toLowerCase(),t=function(e){try{if(e.shadowRoot&&!e.shadowRoot.querySelector("slot:not([name])"))return e.shadowRoot}catch(t){}return e}(n),/^(?:br|input|img|select|textarea)$/.test(e)?i.parentNode!==n.parentNode&&n.parentNode.insertBefore(i,n.nextSibling):i.parentNode!==t&&("inline"===this.position||"inline-right"===this.position?t.appendChild(i):"inline-left"===this.position&&t.prepend(i)))});return this},function(s){this.position&&"top-right"!==this.position&&"top-left"!==this.position||this.before("show",function(){var e=this.element(),t=ja(this.target()),n=0,i=0,r=0;if(this.offsets&&(n=this.offsets.top||0,i=this.offsets.right||0,r=this.offsets.left||0),!_.get(s,"attributes.resourceCenter",!1)){var o="position:"+(t.fixed?"fixed":"absolute")+";top:"+(t.top+n)+"px;";switch(this.position){case"top-right":o+="left:"+(t.left+t.width-i)+"px";break;case"top-left":o+="left:"+(t.left+r)+"px"}Ua(e,o)}if(!e.parentNode){ec().appendChild(e);const a=rs(mo,this.target(),og);this.removeScrollHandlers=()=>{og.cancel(),a()}}});return this},function(){"over"===this.position&&this.before("show",function(){var e=this.element(),t=ja(this.target()),n="position:"+(t.fixed?"fixed":"absolute")+";top:"+t.top+"px;left:"+t.left+"px;";if(n+="height:"+t.height+"px;width:"+t.width+"px;",Ua(e,n+="background-color:transparent;"),!e.parentNode){ec().appendChild(e);const i=rs(og,e,this.target());this.removeScrollHandlers=()=>{og.cancel(),i()}}});return this},function(){var t=this,e=t.element(),n=!1,i=function(e){t.activate(),t.toggleAriaExpanded&&t.toggleAriaExpanded(),Wf(e)},r=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1};return t.after("show",function(){n||(F(e,"click",i),t.preserveFocusOnClick&&F(e,"mousedown",r),n=!0)}),t.after("hide",function(){qf(e,"click",i),qf(e,"mousedown",r),n=!1}),t},function(){var t=this.element(),n=this.step(),e=!1;{var i,r,o;"yes"!==this.useHover&&!this.showGuideOnBadgeHover||(i=_.throttle(function(e){yo(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}(yo(e))||o()},50,{trailing:!1}),r=function(e){n.isShown()||Dm(n,"badge"),F(document,"mousemove",i),Wf(e)},o=function(e){qf(document,"mousemove",i),Zu()||wm(n)},this.after("show",function(){e||(F(t,"mouseover",r),e=!0)}),this.after("hide",function(){qf(t,"mouseover",r),qf(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)||Zu()||(t="inline"===this.position?"visibility:visible;":"display:inline;",n="inline"===this.position?"visibility:hidden;":"display:none;",i=_.throttle(function(e){var t,n,i,r,o,a;yo(e)===d||yo(e)===s||Oa(s,"triggered")||(t=e.clientX,e=e.clientY,n=Ja(d),i=Ja(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(){Ua(s,t),F(document,"mousemove",i)},u=function(){qf(document,"mousemove",i),Ua(s,n)},this.after("show",function(){e||(F(d,"mouseover",r),e=!0,u())}),this.after("hide",function(){e&&(qf(d,"mouseover",r),e=!1),u()}))}return this}];var Zf="_pendoBadgeClaimIsTraining",Qf=[];function eg(){_.each(Qf,function(e){e[Zf]=undefined}),Qf.length=0}var tg=function(e,t){var n=(t=t||Pu)[e.id],i=n?n.step():Xf.findStep(e);if(i){var r=n?n.target():ic(i),o=_.get(e,"attributes.resourceCenter");if(o&&!A.getters["frames/canShowRCBadge"]())n&&_.isFunction(n.hide)&&(delete t[e.id],n.hide());else if(!o||e.hasResourceCenterContent){D.updateNotificationBubbles();var a,s,d,u,o=!0,o=(i.elementContainsRulesList&&(o=r&&km(r,i.elementContainsRulesList)),i.elementPathRule&&ds(r)&&lo.matchesSelector(r,i.elementPathRule)&&o);if(o){if(d=e,(u=r)&&(u=u[Zf])!==undefined?u!==!!d.isTraining:void 0)return Dd()&&R.stepEligibility.trigger({stepId:i.id,guideId:e.id,eligible:!1,reason:"adopt_badge_priority"}),void(!(s=(u=t)[(d=e).id])||(a=s.step())&&a.isShown&&a.isShown()||(delete u[d.id],_.isFunction(s.hide)&&s.hide()));a=e,(d=r)&&(d[Zf]=!!a.isTraining,_.contains(Qf,d)||Qf.push(d)),(n=n||Xf.create(e)).show(),t[e.id]=n}else!n||i.isShown()||(delete t[e.id],n.hide());Dd()&&R.stepEligibility.trigger({stepId:i.id,guideId:e.id,eligible:o,reason:"target_element_badge"}),D.repositionDoubleResourceCenterBadge()}}},ng=function(){_.map(Pu,ig),Pu={}},ig=function(e,t){e&&(_.isFunction(e.hide)&&e.hide(),_.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete Pu[t.id]},rg=function(e){var t=Pu[e.id];t&&ig(t,e)};var og=_.throttle(function(){_.map(Pu,function(e){e&&e.show&&e.show()})},10);var ag=null,sg=500,dg=function(e){ag=_.delay(function(){ag=null,lg()},e=e||sg),E.guidesProcessingThreadHandle=ag},ug=function(){ag&&(Gt(ag),ag=null,E.guidesProcessingThreadHandle=ag),A.dispatch("guideUpdate/stopScheduledUpdate")},cg=function(){gm(),Sg.cancel();for(var e=0;e<Lu.length;e++){var t=Lu[e];t.parentNode.removeChild(t)}Lu.length=0,A.dispatch("guideUpdate/stopObserver"),R.guideLoopStopped.trigger()},lg=function(){if(ug(),ev())T.info("guides are loading.",{contexts:["guides","loading"]});else if(kv())T.info("guides are disabled.",{contexts:["guides","disabled"]});else if(Ov())T.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!A.getters["guideState/tabLostFocus"]())try{var e=y();e&&0!==e.length&&(A.dispatch("guideUpdate/startObserverIfNeeded"),Sg.isComplete()&&Sg.markDirty(),A.getters["frames/leaderExists"]())&&Sg.process()}catch(t){Sg.cancel(),T.critical("ERROR in guide-loop",{error:t})}finally{Sg.paused||(Sg.isComplete()?(A.state.guideUpdate.useObserver&&!A.state.guideUpdate.needsUpdate||dg(),R.guideUpdateComplete.trigger()):dg(50))}};var pg=function(){Pv(!1),lg()},hg=function(){kv()||Pv(!0),Xm()};class fg{constructor(e,t){this.dirty=!1,this.name=e,this.processFn=_.isFunction(t)?t:_.noop}markDirty(){this.dirty=!0}process(){this.processFn(),this.dirty=!1}cancel(){this.dirty=!1}isComplete(){return!this.dirty}}class gg{constructor(){this.name="badge",this.queue=[]}markDirty(){var e=_.filter(Uu(y()),$u);_.find(e,function(e){return e.isTraining})&&(e=Yh(e,C.get("adoptPrioritizeAdoptGuides"))),eg(),this.queue.push.apply(this.queue,e)}process(e){var t=this.queue.shift();e.saveContext(t),t&&t.placeBadge()}handleProcessTimeExceeded(e){e=e.getContext();T.warn("Badge ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}function mg(i,e){var t,r=!1,o=[],n=_.filter(i.modules,function(e){var t,n;return!!e&&(!!D.isIframeModule(e)||!!D.isSandboxModule(e)||(D.isIntegrationModule(e)?!!D.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1):(t=(n=_.filter(e.guidesInModule,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):(e.ineligibleForRC=!0,e.control&&o.push(e),!1)})).length,e.hasResourceCenterContent=!!t,i.activeModule&&e.id===i.activeModule.id&&(n=_t(_.map(n,function(e){var t=e.isAnnouncement()||e.isWhatsNew()?null:_.pluck(e.steps,"seenState");return{id:e.id,seenState:t}})),e.eligibleGuidesInModuleHash&&n!==e.eligibleGuidesInModuleHash&&(r=!0),e.eligibleGuidesInModuleHash=n),t)))}),a=!1;i.activeModule||(t=_t(_.map(n,function(e){return{id:e.id}})),i.eligibleModulesHash&&i.eligibleModulesHash!==t&&(a=!0,D.replaceResourceCenterContent(i.id,undefined,!0)),i.eligibleModulesHash=t),e(i,n,o),1===n.length&&(i.skipResourceCenterHomeView=!0,i.moduleIdToReplaceHomeViewWith=n[0].id,t=!i.activeModule&&a,e=i.activeModule&&i.activeModule.id!==n[0].id,t||e||r)&&D.replaceResourceCenterContent(i.moduleIdToReplaceHomeViewWith,undefined,!0),n&&(a=_.find(n,function(e){return e.isContinuation(Jh())}),t=_.get(a,"attributes.doNotResume"),e=_.get(a,"attributes.resourceCenter.integrationProvider"),D.isSupportedNativeIntegration(e))&&!t&&i&&(i.continueToNativeModule=!0,a.continueToNativeModule=!0),i.activeModule&&((e=_.find(n,function(e){return e.id===i.activeModule.id}))&&r&&D.replaceResourceCenterContent(i.activeModule.id,undefined,!0),e||D.replaceResourceCenterContent(i.id)),D.repositionResourceCenter()}function vg(e,t,n){var i,r=Pu[e.id];t&&t.length||(t=-1!==e.launchMethod.indexOf("badge"),i=-1!==e.launchMethod.indexOf("dom"),e.hasResourceCenterContent=!1,t?(e.isShown()&&e.hide(),r&&D.hideRCBadge(r,e),_.each(n,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}),e.badgeHidden=!0,delete e.activeModule):i&&(e.showEmptyState=!0,e.controlGuidesInAllModules=n)),e.badgeHidden&&e.hasResourceCenterContent&&!e.isNativeModuleActive&&(r||(_.isFunction(e.placeBadge)&&e.placeBadge(),r=Pu[e.id]),r&&r.show(),e.badgeHidden=!1)}function yg(e){var t,n,i,r,o,a;e&&e.launchMethod&&(e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith,t=e.activeModule,n=_.get(t,"attributes.resourceCenter.integrationProvider"),e.isNativeModuleActive=t&&D.isSupportedNativeIntegration(n),e.isShown()||!A.getters["frames/isLeader"]()?mg(e,vg):(t=e,n=vg,i=[],(r=_.find(t.modules,function(e){return!!D.isIframeModule(e)||!!D.isSandboxModule(e)||!!D.isIntegrationModule(e)&&(!!D.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1))}))&&i.push(r),r=_.flatten(_.pluck(t.modules,"guidesInModule")),o=_.filter(_.compact(r),function(e){return e.control}),!i.length&&(a=_.reduce(t.modules,function(t,n){return _.each(n.guidesInModule,function(e){t[e.id]=n}),t},{}),r=_.filter(r,function(e){return e&&e.steps&&e.steps.length}),r=_.sortBy(r,function(e){return e.steps[0].elementPathRule?1:0}),r=a[(r=_.find(r,function(e){return e.shouldBeAddedToResourceCenter()}))&&r.id])&&i.push(r),n(t,i,o)),e.isNativeModuleActive&&(e.isShown()&&e.hide(),a=Pu[e.id])&&D.hideRCBadge(a,e),"dom"===e.launchMethod)&&e.canShowOnDevice()&&(D.updateNotificationBubbles(),D.adjustNotificationBubbleForResize())}class bg{constructor(e=50){this.startTime=-1,this.timeLimit=e,this.context=null}start(){this.context=null,this.startTime=S()}isTimeExceeded(){return S()-this.startTime>this.timeLimit}saveContext(e){this.context=e}getContext(){return this.context}}class wg{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 bg(50);!this.timedOut()&&!i.isComplete()&&!e;)r.start(),!(e=i.process(r))&&r.isTimeExceeded()&&(Ud.count(xd),i.handleProcessTimeExceeded&&i.handleProcessTimeExceeded(r),this.ejectGuide(r.getContext()));Lt(e)?(t=this.updateId,n=_.bind(function(){this.updateId===t&&(this.paused=!1,lg())},this),this.paused=!0,e.then(n)["catch"](n)):i.isComplete()&&this.queue.shift()}addPhase(e,t){t=t||e.name||this.phases.length,_.isFunction(e)&&(e=new fg(t,e)),this.phases.push(e)}removePhase(t){var e=_.findIndex(this.phases,function(e){return e.name===t});0<=e&&this.phases.splice(e,1)}timedOut(){return!!this.iterationStartTime&&S()-this.iterationStartTime>A.state.guideUpdate.iterationTimeLimit}ejectGuide(e){this.ejectOnTimeout===undefined&&(this.ejectOnTimeout=C.get("guides.ejectOnTimeout")),this.ejectOnTimeout&&e&&!e.isShown()&&Hu.addGuide(e)}process(){var e=S();for(this.updateId||(this.updateId=e,this.updateTotalTime=0,A.commit("guideUpdate/startUpdate",e)),this.iterationStartTime=e;!this.paused&&this.queue.length&&!this.timedOut();)this.runGuidePhase();e=S(),this.updateTotalTime+=e-this.iterationStartTime,this.isComplete()&&this.complete(e)}complete(e){A.commit("guideUpdate/completeUpdate",e),this.cancel()}cancel(){this.updateId=null,this.paused=!1,this.queue.length=0;for(var e of this.phases)_.isFunction(e.cancel)&&e.cancel()}isComplete(){return!this.queue.length}}var Sg=new wg([new fg("guideShowing",function(){var e=_.compact(_.map(_.filter(Uu(y()),e=>e.isShown()),e=>D.isModule(e)?D.getResourceCenter():e));_.each(e,function(s){_.each(s.steps,function(e){var t,n,i,r,o,a;e.isShown()&&(t=s,(e=e).isLocked()||A.getters["frames/isShownInAnotherFrame"]()(e)||(n=e.element,i=e.targetElement,r=e.guideElement,o=M("."+um),(a=r.find("#pendo-guide-container")[0])&&a.textContent&&(a=f(a).fontSize,e.attributes.currentTextZoomFontSize!==a)&&(e.attributes.currentTextZoomFontSize&&e.redraw(),e.attributes.currentTextZoomFontSize=a),il(e,!0),e.elementPathRule&&i&&!lo.matchesSelector(i,e.elementPathRule)||(a=_.get(t,"attributes.embedConfig.selector"))&&(!M(a).length||r&&!$a(r[0]))?e.hide():(t=ds(n),a=!0,i&&t&&e.elementContainsRulesList&&(a=km(i,e.elementContainsRulesList),t=a),n&&(t||o.hasClass("mouseover"))?e.checkPlacement():Xu(e)&&us(n)&&a||e.hide())))}),s.checkForHiddenGroupSteps()})}),new df,new gg,new fg("resourceCenter",function(){yg(D.getResourceCenter())}),new fg("frameVisibility",function(){A.dispatch("frames/checkFrameVisibility")})]);function Eg(){Sg.addPhase(...arguments)}function Ig(){Sg.removePhase(...arguments)}var _g=_.wrap(_.wrap(_.once(_.wrap(function(e){var t=m.defer();return Rs(e,function(){t.resolve()}),t.promise},function(e,t){return 0<_.size(yc._handlers.validateGlobalScript)?wo.get(t).then(function(e){return yc.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)})),function(e,t){return t?e(t):m.resolve()}),function(e,t){return C.get("preventCodeInjection")?m.resolve():e(t)}),Cg={initializeWatermark:function(e){e=_.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),Cg.watermarkGuides=e,e=_.map(e,function(e){return e.fetchContent()});return m.all(e)},buildWatermark:function(e,t){if((e=e||{}).isTraining&&!e.isEmbedded){var n=e.targetAccount?function(t){return _.find(Cg.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return _.find(Cg.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 Tg="guides_blocked",xg="Guides disabled: unreachable endpoint guide.gif";function Rg(e){return JSON.parse(JSON.stringify(e))}class Ag{constructor(e,t){this.apiKey=e,this.cacheGuides=t.get("cacheGuides"),this.cacheGuidesTimeout=t.get("cacheGuidesTimeout"),this.cacheGuidesPersistent=t.get("cacheGuidesPersistent"),this.cache=null,this.db=null}openDB(e,t=window.indexedDB){if(!this.cacheGuidesPersistent)return m.resolve();if(this.db)return m.resolve(this.db);const n=m.defer();try{var i=t.open("pendo-"+e,1);i.onerror=()=>{this.dbError(new Error("open.request.onerror")),n.resolve()},i.onsuccess=e=>{e=e.target.result;(this.db=e).onclose=()=>{this.db=null},n.resolve(e)},i.onupgradeneeded=e=>{const t=e.target.result;t.createObjectStore("guides",{keyPath:"guide.id"}).transaction.oncomplete=()=>{this.db=t,n.resolve(t)}}}catch(r){this.dbError(r),n.resolve()}return n.promise}dbError(e){T.critical("indexedDB cache error",{error:e}),this.cacheGuidesPersistent=!1,this.db=null}load(t=S()){if(this.cache)return m.resolve(this.cache);if(this.cache={},!this.db)return m.resolve(this.cache);const n=m.defer();try{const r=this.db.transaction(["guides"],"readwrite").objectStore("guides");var e=r.getAll();e.onerror=()=>{this.dbError(new Error("load.request.onerror")),n.resolve(this.cache)},e.onsuccess=e=>{e=e.target.result;_.each(e,e=>{e.expires>t?this.cache[e.guide.id]=e:r["delete"](e.guide.id)}),n.resolve(this.cache)}}catch(i){this.dbError(i),n.resolve(this.cache)}return n.promise}add(e,t,n=S()){if(this.cacheGuides&&this.cache)return n={expires:n+this.cacheGuidesTimeout,visitorId:t,guide:Rg(e)},this.cache[e.id]=n,this.save(n)}save(e){if(this.db){const i=m.defer();try{var t=this.db.transaction(["guides"],"readwrite").objectStore("guides").put(e);t.onerror=()=>{this.dbError(new Error("save.request.onerror")),i.resolve()},t.onsuccess=()=>{i.resolve()}}catch(n){this.dbError(n),i.resolve()}return i.promise}}update(t){if(this.cache){var e=this.cache[t.guideId];if(e){var n=_.find(e.guide.steps,e=>e.id===t.guideStepId);if(n)return n.seenState=t.state,n.seenReason=t.seenReason,n.lastSeenAt=t.time,null!=t.destinationStepId&&(n.destinationStepId=t.destinationStepId),null!=t.dismissCount&&(n.dismissCount=t.dismissCount),null!=t.snoozeEndTime&&(n.snoozeEndTime=t.snoozeEndTime),this.save(e)}}}list(n,i=S()){return this.cacheGuides?this.openDB(this.apiKey).then(()=>this.load(i)).then(()=>{const t=[];return _.each(this.cache,e=>{e.expires>i&&e.visitorId===n?t.push(_.pick(e.guide,"id","lastUpdatedAt","language")):delete this.cache[e.guide.id]}),t}):m.resolve([])}get(e){if(this.cache&&this.cache[e])return Rg(this.cache[e].guide)}clear(){this.cache={},this.db&&this.db.transaction(["guides"],"readwrite").objectStore("guides").clear()}}function kg(t,n,e){const{dom:i,onGuideAdvanced:r}=e;e=i(n.elementPathRule)[0];n.attachEvent(e,t,function(e){i.data.set(e,"advanced",!0),r(t,n)})}var Og={script:function(e,t,n){var i,r,o,a,s;e.elementPathRule&&(e.domJson?(o=e,(s=(a=n)._.get(o,"attributes.advanceActions",{})||{}).elementHover?kg("mouseover",o,a):s.elementClick&&kg("click",o,a)):(s=t,r=n,!(i=e).advanceMethod||$u(s)&&!Ju(s)||Xu(i)&&(s=r["_"],o=i.advanceMethod.split(","),s.each(o,e=>{"element"===e?kg("click",i,r):"hover"===e&&kg("mouseover",i,r)}))))}};let Ng=null;function Mg(){window.clearInterval(Ng),Ng=null}var Lg={script:function(e,t,n){if("AnnouncementsModule"===n.BuildingBlocks.BuildingBlockResourceCenter.getModuleId(t)){t=n;if(!Ng){const{_:h,dom:f}=t,g=t.BuildingBlocks.BuildingBlockResourceCenter;Ng=window.setInterval(function(){var e=g.getResourceCenterContainer();if(!e)return Mg();e=f(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return Mg();var t=f(e).find('ol[id^="pendo-list"]');if(!t.length)return Mg();var n=f.getClientRect(t[0]),i=f(t).find("li");if(!i.length)return Mg();for(var r=e.attr("data-pendo-guide-id"),o=g.getResourceCenter().attributes.notifications.individualCounts[r],a=n.height/3,s=f.getClientRect(i[i.length-1]).bottom-30<n.top+n.height,d=0;d<i.length;d++){var u=f(i[d]),c=u.hasClass("pendo-unseen-announcement"),l=u.attr("data-pendo-announcement-send-seen-event");if(c||l){if(f.getClientRect(i[d]).top-n.top>n.height-a&&!s)break;var p=u.attr("data-pendo-announcement-guide-id"),l=h.find(Fu(),function(e){return e.id===p});if(!l)break;c&&(u.removeClass("pendo-unseen-announcement"),c=u.find(".pendo-unread-announcement-mini-bubble"),Me(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"),g.hasAnnouncementBeenSeen(l)||o--,g.updateNotificationBubbleCount(o,r)),l.steps[0].seenState="advanced",Um(l.id,l.steps[0].id,v(),"whatsnew",l.language,{last_updated_at:l.steps[0].lastUpdatedAt}),u[0].removeAttribute("data-pendo-announcement-send-seen-event"),Bm(l.id,l.steps[0].id,v(),"advanced",l.language)}}},500)}}}};var Pg={script:function(e,t,n){var i,r;!n.designer&&e.guideElement&&(i=n.BuildingBlocks.BuildingBlockGuides,(r=e.guideElement.find("#"+e.containerId)).length)&&(n._.get(e,"attributes.isAutoFocus")&&(i.autofocusStep(e,r),i.trapFocusStep(e,r),e.hiddenElements=(e.hiddenElements||[]).concat(i.addAriaHiddenOutsideGuide(e.guideElement[0]))),Ku(t))&&(i.attachRCFocusHandlers(),t.skipResourceCenterHomeView?(n=t.activeModule.steps[0],i.autofocusStep(n,n.guideElement)):i.autofocusStep(e,r))}};var Dg={script:function(e,t,n){var i,r;!n.designer&&e.guideElement&&e.hasBackdrop&&(n=n.BuildingBlocks.BuildingBlockGuides,r=e.guideElement[0],i=function(e){var e=bl(e),t=document.getElementById("pendo-preview");t&&e.push(t);return e}(e),r=C.get("useInertForBackdrop")?n.addInertOutsideGuide(r,[],i):n.addAriaHiddenOutsideGuide(r,[],i),e.hiddenElements=(e.hiddenElements||[]).concat(r))}};function Fg(e){var t,n=_.get(e,"value","");-1!==_.get(e,"parentElement.className","").indexOf("_pendo-nps-poll-"+n+"-wrapper")&&(e=M("._pendo-nps-open-text-poll-question"),t=M("._pendo-nps-open-text-poll-input")[0],_.forEach(e,function(e){"none"!==_.get(e,"style.display","none")&&t&&t.setAttribute("aria-labelledby",e.id)}))}var Ug={renderGuideFromJSON:function(e,n,t,i){i=i||{};var r=n.getGuide();n.isDarkMode===undefined&&nl(n);var o=Yc(e),a=(function(e,t,n){var i;e&&e.props&&e.props.id&&(i=e.props.id,!(t&&i==="pendo-g-"+t||n&&i==="pendo-g-"+n))&&t&&(e.props.id="pendo-g-"+t)}(o,n.id,r.id),_.get(r,"attributes.resourceCenter"));a&&(D.revertRtlChanges(r,e.props),e=D.updatePseudoStyleSelectors(e));var s="AnnouncementsModule"===_.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.hasBackdrop=!1,n.containerId=o&&o.props&&o.props.id,n.element=nc(n,i.document),Pt(e)),t=Ug.buildNodeFromJSON(o,n,t),d=(n.guideElement=t,tl(n),t.find("#"+n.containerId)),u="data-vertical-alignment",c="Relative to Element"===d.attr(u);c&&!a&&M(n.guideElement).css({overflow:"hidden",height:"0",width:"0"});M(d[0]).css({visibility:"hidden"}),t.css({visibility:"hidden"});var l=_.get(r,"attributes.embedConfig",null);u=Cg.buildWatermark({appId:r.appId,targetAccount:r.targetAccount,isTraining:r.isTraining,isBottomAligned:"Bottom Aligned"===d.attr(u),isEmbedded:!!l},Ug.buildNodeFromJSON);u&&d.append(u);u=n&&n.attributes&&n.attributes.imgCount,i=ec(i.document);{var p,h;l?(p=t[0],f=M("#"+(h="pendo-guide-container"),p)[0],{selector:f,method:h}=(f&&(f.id=h+"-"+n.id,p.id="pendo-base-"+n.id),l),i=M(f)[0],(l=M("#"+p.id,i)).length?(t=l,n.guideElement=t):"replace"===h&&i?(i.innerHTML="",t.appendTo(i)):"prepend"===h?t.prependTo(i):t.appendTo(i)):t.appendTo(i)}Gg(ec(),t[0],n.id),ep(t),c&&Fl.patchGuideContainerWidthForResponsiveTooltips(n,d[0],e);s||(Ug.recalculateGuideWidth(n.containerId,n.guideElement),Ug.adjustGuideContentWidth(n.containerId,n.guideElement));u||a||Ug.flexAllThings(n.containerId,n);Ug.recalculateGuideHeight(n.containerId,n.guideElement),c&&(n.attributes.calculatedType="tooltip");u||Fl.positionStepForGuide(n,o,d[0]);{var f;a&&(D.showHomeViewOrEmptyState(r),f=[],s?f=[r.attributes.resourceCenter]:Ug.flexAllThings(n.containerId,n),f.length)&&_.forEach(f,function(e){e=_.get(e,"children",[]);_.forEach(e,function(e){var t;e&&(t=e.steps[0],_.isUndefined(t.attributes.imgCount))&&(t=_.get(t,"id",n.id),e=_.get(e,"id",r.id),t=M("#pendo-g-"+t).length?t:e,Ug.flexAllThings("pendo-g-"+t,n))})})}{var g;u?(g=m.defer(),t.rendered=g.promise,d.on("imagesLoaded",function(){g.resolve()})):(d.css({visibility:"visible"}),t.rendered=m.resolve())}return t.css({visibility:"visible"}),n.elements.push(n.guideElement[0]),t},fixGuideStyleDocument:Gg,getDeepActiveElement:zg,autofocusStep:function(e,o){var t="autofocus for guide id: "+e.getGuide().id+" step id: "+e.id+" ",n=function(e){var t,n;return!!e&&(t=fa(t=e),n=Ba(),_.extend(n,{top:0,left:0,bottom:n.height,right:n.width}),Ya(n,t)||ls(e),e.focus(),e===M.getRootNode(e).activeElement)},i={maxRetries:100,delay:50,exponentialBackoff:!1};Nt(function(){var e,t,n,i,r=M(o).find("#pendo-guide-container");return(r=r[0]||r)&&ds(r)&&(e=r,t=_.contains(["A","INPUT","LABEL","SELECT","TEXTAREA","BUTTON","FIELDSET","LEGEND","DATALIST","OUTPUT","OPTION","OPTGROUP"],e.nodeName),n=!!e.tabIndex,i=!e.hidden,e=!e.disabled,t||n)&&i&&e?r:null},i,function(e){Nt(function(){return n(e)},i,function(){},function(){T.warn(t+"#pendo-guide-container is available on page but could not capture focus")})},function(){T.warn(t+"#pendo-guide-container did not render or become visible in time to focus")})},trapFocusStep:function(e,t){var t=t.find("#pendo-guide-container"),n=_.get(e,"attributes.blockOutUI.enabled")&&function(e){if(e.element&&e.element!==Va())return e.element;return null}(e);!function(e,f,n){var g,m,v,t,y,b,w,i,r,S=e[0];S&&(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(", "),(g=_.toArray(e.find(t))).length)&&(m=g[0],v=g[g.length-1],t=qg(e),y=t[0],b=t[1],w=function(e){var t=n&&n.guideElement&&n.guideElement[0];return!(!e||e===document.body||e===document.documentElement||S.contains(e)||t&&jg(t,e)||jg(f,e)||function(i,e){e=_.get(e,"attributes.blockOutUI.additionalElements");return _.isString(e)&&e.length&&_.some(e.replace(/\s/g,"").split(","),function(e){if(!e)return!1;var t;try{t=M(e)}catch(n){return!1}return _.some(t,function(e){return jg(e,i)})})}(e,n))},i=function(t){if(Bg(t)){var n,i,r=t.shiftKey,o="keydown"===t.type,a=M.getRootNode(S).activeElement,s=a===S,d=document.activeElement===document.body,u=a===y,a=a===b,c=zg(),l=(l=f)?(n=[],(i=function(e){var t;1===e.nodeType&&ds(t=e)&&("IFRAME"===t.tagName||0<=t.tabIndex&&!t.disabled||null!=(t=t.getAttribute&&t.getAttribute("contenteditable"))&&"false"!==t)&&n.push(e),e.shadowRoot&&_.each(e.shadowRoot.children,i),_.each(e.children,i)})(l),n):[],p=c?l.indexOf(c):-1,h=o&&-1!==p&&p===l.length-1;let e;r?o&&0===p?e=v:(u||s||d)&&(e=l[l.length-1]||v):h?e=m:a?e=l[0]||m:(s||d)&&(e=m),(e=!e&&l.length&&w(c)?r?v:m:e)&&((o=function(e,t){let n;if("radio"===t.getAttribute("type")&&t.getAttribute("data-pendo-poll-id")){const i=t.getAttribute("data-pendo-poll-id");n=_.find(e,function(e){var t=e.getAttribute("data-pendo-poll-id");return i===t&&e.checked})}return n||t}(g,e)).focus(),M.getRootNode(o).activeElement!==o&&(r?v:m).focus(),t.preventDefault())}},r=function(e){e.relatedTarget&&"IFRAME"===e.relatedTarget.tagName&&jg(f,e.relatedTarget)&&w(e.target)&&(!!(e.relatedTarget.compareDocumentPosition(e.target)&Node.DOCUMENT_POSITION_FOLLOWING)?m:v).focus()},F(document,"keyup",i),F(document,"keydown",i),f&&F(document,"focusin",r),R.one("unmounted",()=>{qf(document,"keyup",i),qf(document,"keydown",i),qf(document,"focusin",r)}))}(t,n,e)},attachRCFocusHandlers:function(){const s=D.getResourceCenter(),d=D.getResourceCenterContainer();if("dom"===s.launchMethod&&d){let e=M(s.attributes.activation.selector)[0];if(e){const[u,c]=qg(M(d));var t=function(e){var t=Bg(e),n=e.shiftKey;if(t){var t=M.getRootNode(d).activeElement,i=M(s.attributes.activation.selector)[0];if(i){var r=t===u,t=t===c;const a=M(os);function o(t){return Object.values(a).findIndex(e=>e===t)}n?r?(i.focus(),e.preventDefault()):t&&Hg(0===(n=o(u))?a.length-1:n-1,a,e):t?Hg(o(i)+1,a,e):r&&Hg((n=o(c))>=a.length-1?0:n+1,a,e)}}},n=function(e){var t=Bg(e),n=e.shiftKey;t&&!n&&Hg(0,M('[id^="pendo-g-"]').find(os),e)},i=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=u&&t&&Hg((n=M('[id^="pendo-g-"]').find(os)).length-1,n,e)};F(document,"keyup",t),F(document,"keydown",t),F(e,"keydown",n),F(e,"focus",i),R.one("unmounted",()=>{qf(document,"keyup",t),qf(document,"keydown",t),qf(e,"keydown",n),qf(e,"focus",i)})}}},addAriaHiddenOutsideGuide:function N_(e,r=[],o=[]){if(!e||e===Va())return r;const t=Ka(e);_.each(t,e=>{const t=e.tagName.toLowerCase(),n="true"===e.getAttribute("aria-hidden"),i=Wg(e,o);-1!==r.indexOf(e)||n||i||"script"===t||"style"===t||(e.setAttribute("aria-hidden","true"),r.push(e))});e.parentNode&&N_(e.parentNode,r,o);return r},addInertOutsideGuide:function M_(e,r=[],o=[]){if(!e||e===Va())return r;const t=isNaN(Le);if(!t)return r;const n=Ka(e);_.each(n,e=>{const t=e.tagName.toLowerCase(),n="true"===e.getAttribute("inert"),i=Wg(e,o);-1!==r.indexOf(e)||n||i||"script"===t||"style"===t||(e.setAttribute("inert","true"),r.push(e))});e.parentNode&&M_(e.parentNode,r,o);return r},renderResourceCenterModule:D.renderResourceCenterModule,buildNodeFromJSON:Sp,attachImgLoadHandlers:Ep,recalculateGuideHeightOnImgLoad:_p,buildStyleString:function(e){var n="";return _.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:Tp,bindActionToNode:Cp,recalculateGuideHeight:np,recalculateGuideWidth:ip,adjustGuideContentWidth:rp,findDomBlockInDomJson:Xc,isElementHiddenInGuide:g.isElementHiddenInGuide,positionStepForTooltip:Fl.positionStepForGuide,flexAllThings:g.flexAllThings,flexElement:g.flexElement,findTopLevelContainer:function(t){for(var e=["pendo-base","pendo-resource-center-container"],n=0;n<20;n++){if(_.find(e,function(e){return t.id===e}))return t;if(t===document.body)return document.body;t.parentNode&&(t=t.parentNode)}return document.body},updateBackdrop:xl,buildNodesFromJSON:yp,findGuideContainerJSON:Yc,maintainAspectRatios:g.maintainAspectRatios,sizeElement:tp,sizeElements:ep,getAllowedAttributes:wp,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:Fl.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:Fg};function Gg(e,t,n){var i,t=M.getRootNode(t),e=M.getRootNode(e);e!==t&&(e!==document?e.hasOwnProperty("wrappedJSObject")?(i=e.wrappedJSObject.adoptedStyleSheets,t.wrappedJSObject.adoptedStyleSheets.push(...i)):(i=e.adoptedStyleSheets,t.adoptedStyleSheets.push(...i)):(i=M(".pendo-style-"+n,e)).length&&(i.remove(),i.appendTo(t)))}function Bg(e){return"Tab"===e.key||9===e.keyCode}function Hg(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function zg(){for(var e=document.activeElement;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function jg(e,t){if(e&&t)for(var n=t;n;){if(1===n.nodeType&&e.contains(n))return!0;var i=M.getRootNode(n),n=i&&i.host}return!1}function qg(e){var t={margin:0,padding:0,outline:"none",border:"none","box-shadow":"none",shadow:"none"},t={type:"style",props:{type:"text/css",scoped:"scoped",id:"pendo-focus-bumper-styles"+Date.now()},css:[{selector:".pendo-start-focus-bumper",styles:_.extend({},t,{tabIndex:0})},{selector:".pendo-start-focus-bumper:hover",styles:t},{selector:".pendo-start-focus-bumper:focus",styles:t},{selector:".pendo-end-focus-bumper",styles:_.extend({},t,{tabIndex:0})},{selector:".pendo-end-focus-bumper:hover",styles:t},{selector:".pendo-end-focus-bumper:focus",styles:t}]},t=Ug.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]}function Wg(t,e){return _.some(e,e=>e&&(t===e||Gi(t,e)))}const Vg="dialog:modal";function Kg(e){try{return e&&M(e).closest(Vg)[0]||null}catch(t){return null}}function $g(e){return function(e){if(!(e=_.get(e,"attributes.popover.selector")))return null;try{return M(e)[0]||null}catch(t){return T.info("Invalid popover selector",{contexts:["error","guide","render"]}),null}}(e)||Kg(e.targetElement)||Kg(Ug.getDeepActiveElement())||_.last(function(){try{return M(Vg)}catch(e){return[]}}())||null}var Jg={script:function(e,t,n){var i;!n.designer&&e.guideElement&&_.get(e,"attributes.popover.enabled")&&et.supportsPopover()&&(_.get(t,"attributes.resourceCenter")||_.get(t,"attributes.embedConfig")||(n=e.guideElement.find("#"+e.containerId)).length&&(t="Relative to Element"===n.attr("data-vertical-alignment"),n=$g(e))&&(i=e.guideElement[0],n.appendChild(i),Ug.fixGuideStyleDocument(ec(),i,e.id),function(e){e.setAttribute("popover","manual");try{return e.showPopover(),1}catch(t){e.removeAttribute("popover"),T.info("Failed to render guide as popover",{contexts:["error","guide","render"]})}}(i))&&t&&Fl.placeBBTooltip(e))}};function Yg({_:e},t,n){n=e.throttle(e.bind(n,t,t),10);t.attachEvent(window,"scroll",n,!0),rs(e.bind(t.attachEvent,t),t.targetElement,n)}function Xg({dom:e},t,n){e.isElementVisible(t.element)?(n(t),e(t.elements[0]).css({display:"block"})):e(t.elements[0]).css({display:"none"})}function Zg(e){Fl.placeBBTooltip(e)}function Qg(e){e.reposition()}var em={designer:!0,script:function(e,t,n){var{_:i,dom:r}=n;e&&i.isFunction(e.attachEvent)&&(Zu()&&e.element===r.getBody()||(Xu(e)&&(r=e.domJson?Zg:Qg,Yg(n,e,i.partial(Xg,n,e,r))),i.get(e,"attributes.blockOutUI.enabled")&&Yg(n,e,xl)))}};function tm(e,t){var{_:t,Sizzle:n}=t,e=n(t.get(e,"attributes.activation.selector",""));e.length<1||e[0].focus()}function nm(e,t){if(!t.designer){var n=t["_"];if(e&&"building-block"===n.get(e,"attributes.type","")){var i,r,o,a=e.steps[0],s=a.seenReason,d=n.get(e,"launchMethod","").split("-"),u=n.contains(d,"dom"),c=n.contains(d,"badge"),d=Ku(e);if(n.get(a,"attributes.isAutoFocus")||d)switch(s){case"badge":c&&(r=a,o=(o=t).dom,(o=0<(o=(r=o("#_pendo-badge_"+r.id)).find("input")).length?o:r).length<1||o[0].focus());break;case"dom":u&&tm(e,t);break;case"launcher":o=(r=t).BuildingBlocks.BuildingBlockResourceCenter,(i=o.getResourceCenterBadge())?i.element().focus():tm(o.getResourceCenter(),r)}}}}var im={script:function(e,t,n){this.on("dismissed",()=>{nm(t,n)}),this.on("snoozed",()=>{nm(t,n)}),this.on("advanced",({step:e})=>{e.destinationStepId||nm(t,n)})}};var rm={script:function(e,t,n){if(e=e.guideElement){const{attachEvent:i,dom:r}=n;r(".pendo-video-wrapper",e).each(function(t){r("iframe",t).each(function(e){t.setAttribute("data-pendo-video-loading",""),i(e,"load",function(){t.removeAttribute("data-pendo-video-loading")})})})}}};const om=x.getLocal();var am=[],sm="Guide was not shown because this visitor is in a control group of an active experiment for the guide";function dm(){var e=C.get("guideCssAssetPath");return e||Zo("guide.css")}var um="_pendo-guide_",cm="_pendo_g_",lm=function(e,t){var n=M("._pendo-close-guide_",e);return n.length||(n=M(document.createElement("button")).attr("id","_pendo-close-guide_").attr("aria-label","close").addClass("_pendo-close-guide_").text("\xd7"),tt()?9<Le&&n.css({top:3}):8===Le?n.css({top:9,right:2}):9===Le?n.css({right:2,top:3}):9<Le&&n.css({top:3}),e=M("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},pm=function(n){return _.reduce(y(),function(e,t){return n(t)&&e.push(t),e},[])},hm=function(e,t,n,i,r,o){e=qu(b(e),t);e&&(e.seenState=n,e.lastSeenAt=i,e.destinationStepId=o,r!==undefined)&&(e.dismissCount=r)},fm=function(e){for(var t=new RegExp("^"+cm);e;){if(_.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function gm(t={}){_.each(y(t),function(e){_.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var mm=function(e){return e&&e.guideId};var vm=function(e,t){var n,i;return mm(e)&&(t=e,e=null),(n=t)&&_.isFunction(n.render)?t:t?(n=b(t.guideId))&&n.findStepById(t.id):(n=_.find(y({channel:Du.DEFAULT}),function(e){return e.isShown()}))?((i=e?fm(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||wa("findStepForGuideEvent: step with id "+i):(t=_.find(n.steps,function(e){return e.isShown()}))||wa("findStepForGuideEvent: no step shown"),t):void 0};function ym(e){return e.isLocked()&&(!e.elements||!e.elements.length||void Ea('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}function bm(e,t){return!(e.isMultiApp||e.channel||"auto"!==t&&"repeatGuide"!==t)}var wm=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=vm(e,t))&&t.id?ym(t)||("dismissed"===t.seenState?T.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(T.info("onGuideDismissed called",{contexts:["guides"]}),R.beforeDismiss.trigger(t).cancel?T.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(e=t.id,n=b(s=t.guideId),i=(i=_.first(n&&n.steps))&&i.seenReason,r=n&&n.language,o=_.get(t,"dismissCount",0)+1,a=S(),bm(n,i)&&Hm(a,jh.DISMISSED),Gm(s,e,v(),i,r,o),hm(s,e,"dismissed",a,o),t.hide(),Bu()||(cg(),lg())))):cg()},Sm=function(e,t,n){var i,r,o,a,s,d;T.info("onGuideSnoozed called",{contexts:["guides"]}),(t=vm(e,t))?"snoozed"===t.seenState?T.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):R.beforeSnooze.trigger(t).cancel?T.info("Guide snooze canceled during runtime in step: "+t.id):(n||(n=864e5,T.info("no snooze duration provided, defaulting to 1 day")),ym(t)||(e=t.id,i=t.guideId,r=v(),d=b(i),o=d&&d.language,a=_.first(d&&d.steps),a=a&&a.seenReason,s=S(),T.info("snoozing guide for "+n+" ms"),t.snoozeEndTime=s+n,bm(d,a)&&Hm(s,jh.SNOOZED),d=jm({type:"guideSnoozed",guideId:d=i,stepId:e,visitorId:r,seen_reason:a,language:o,snooze_duration:n}),Km(d),R.guideSnoozed.trigger(d),hm(i,e,"snoozed",s),t.hide(),Bu())||(cg(),lg())):(T.info("missing step. can't snooze",{contexts:["guides","error"]}),cg(),wa("onGuideSnoozed: missing step"))},Em=function(e){var t,n,i,r=(r=e&&e.step)||vm(e);r?(i=e&&e.params,i=_.find(i,function(e){return"goToStepId"===e.name}),t=i&&i.value,(t=e&&e.destinationStepId?e.destinationStepId:t)?t===r.id?T.info("[goToStep] step id matches the current step",{contexts:["guides","error"]}):(i=b(r.guideId),(n=_.find(i.steps,function(e){return e.id===t}))?(n=_.indexOf(i.steps,n),i=_.indexOf(i.steps,r),e.steps=Math.abs(n-i),e.action=e.action||"goToStep",e.destinationStepId=t,i<n?Im(e,r,!1):_m(e,r)):T.info("[goToStep] guide has no step matching the step id",{contexts:["guides","error"]})):T.info("[goToStep] missing step id to go to",{contexts:["guides","error"]})):T.info("[goToStep] missing current step",{contexts:["guides","error"]})},Im=function(e,t,n){if(1===arguments.length&&mm(e)&&(s=zu(e.guideId),i=vm(),s)&&i&&_.first(s.steps).id===i.id&&_.last(s.steps).id===e.id&&(T.info("Cannot skip to last step from first step"),e=null),T.info("onGuideAdvanced called",{contexts:["guides"]}),(t=vm(e,t))===e&&(e=null),t){if(!ym(t))if("advanced"!==t.seenState||n)if(R.beforeAdvance.trigger(t).cancel)T.info("Guide advance canceled during runtime in step: "+t.id);else{var i=e&&("goToStep"===e.action||"submitPollAndGoToStep"===e.action)||!1,r=b(t.guideId),o=r&&r.language,a=r&&r.steps&&_.findIndex(r.steps,e=>t.id==e.id);if(e&&_.isNumber(e.steps)&&1<e.steps&&!i){var s=a+(e.steps-1),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],Bm(r.id,t.id,v(),t.seenReason,o,u!==a);var c=S();hm(r.id,t.id,"advanced",c,undefined,h)}return Im(r.steps[s],t,!0)}var l,i=t.id,s=t.guideId,p=_.first(r&&r.steps),p=p&&p.seenReason,h=e&&e.destinationStepId,f=(h||(f=e&&_.isNumber(e.steps)&&1<e.steps?e.steps:1,h=(f=_.isNumber(a)&&r&&r.steps&&r.steps[a+f])&&f.id||null),h||T.info("missing destination step id"),r&&_.last(r.steps).id===i&&(l=_.get(t,"dismissCount",0)+1),(new Date).getTime());bm(r,p)&&Hm(f,jh.ADVANCED),T.info("advancing guide"),Bm(s,i,v(),p,o,n,h,l),T.info("update guide status"),hm(s,i,"advanced",f,l,h),T.info("stop guide"),cg(),T.info("start guides"),lg()}else T.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else T.info("missing step. can't advance",{contexts:["guides","error"]}),cg(),wa("onGuideAdvanced: missing step")},_m=function(e,t){var n,i,r,o,a,s;T.info("onGuidePrevious called",{contexts:["guides"]}),(t=vm(e,t))?"advanced"===t.seenState?T.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):R.beforePrevious.trigger(t).cancel?T.info("Guide previous canceled during runtime in step: "+t.id):(a=b(n=t.guideId),i=e&&("goToStep"===e.action||"submitPollAndGoToStep"===e.action)||!1,0!==(r=_.indexOf(a.steps,t))&&(s=e&&_.isNumber(e.steps)?e.steps:1,o=_.first(a&&a.steps),s=0<=(r=r-s)?a.steps[r]:o,r=o&&o.seenReason,o=a&&a.language,a=s.id,(a=i&&e&&e.destinationStepId?e.destinationStepId:a)||T.info("missing destination step id"),T.info("advancing guide"),Bm(n,t.id,v(),r,o,!1,a),T.info("update guide status"),s=(new Date).getTime(),hm(t.guideId,t.id,"advanced",s,undefined,a),cg(),lg())):(cg(),wa("onGuidePrevious: missing step"))},Cm=function(e){var t;M("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",Xo()+"/img/tiny-logo.png"),t=M(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:E.TOOLTIP_ARROW_SIZE}).append(t),Lu.push(t[0]),t.appendTo(e))};function Tm(e){return e&&e.attributes&&e.attributes.stayHidden}const xm=(e,t,n)=>{var i;return Dd()&&({id:e,guideId:i}=e,R.stepEligibility.trigger({stepId:e,guideId:i,eligible:t,reason:n})),t};var Rm=function(e){var t=_.partial(xm,e);if(Tm(e))return t(!1,"dismissed");if(!e.elementPathRule&&("lightbox"===e.type||"whatsnew"===e.type))return t(!0,"");if(e.triggerElementPathRule&&!ds(lo(e.triggerElementPathRule)[0]))return t(!1,"trigger_element");var n=nc(e),i=e.targetElement;if(i&&e.elementContainsRulesList&&!km(i,e.elementContainsRulesList))return t(!1,"contains_rules");var r,o,i=_.get(e,"guide.attributes.embedConfig");if(i&&i.selector){var a=M(i.selector)[0];if(!a)return!1;if("replace"===i.method&&(r=e.guide,o=a,_.some(y(),function(e){return!(e===r||!_.isFunction(e.isShown)||!e.isShown()||!(e=_.get(e,"attributes.embedConfig"))||"replace"!==e.method||M(e.selector)[0]!==o)})))return!1}i=Xu(e)||Fl.isBuildingBlockGuideRelativeToElement(e),a=ds(n);return i?a?t(a,"target_element_tooltip"):t(us(n),"target_element_tooltip_scroll"):t(a,"target_element")};function Am(e){var t=(M(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function km(e,t){for(var n=Am(e),i=0;i<t.length;i++)if(!Om(n,t[i]))return!1;return!0}function Om(e,t){var n=t.matchType,i=t.matchValue,t=t.dataType,e=e||"";if("number"===t){var r=Mt(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 Nm=function(e){return cm+e.id},Mm=function(e){var t=e.element,n=_.first(M("#"+Nm(e)));t&&n?ds(t)||M.hasClass(n,"mouseover")?Ut(function(){Mm(e)},sg):e.hide&&(e.hide(),Bu())||(cg(),lg()):t||!n||e.hide&&(e.hide(),Bu())||(cg(),lg())},Lm=function(){return!1},Pm=function(t){var e;Bu({channel:t.channel})&&(Ku(t)?(e=pm(Ku),(e=_.filter(e,function(e){return e.id!==t.id})).length&&A.dispatch("frames/hideGuides",_.pluck(e,"id"))):(gm({channel:t.channel}),A.dispatch("frames/hideGuides")))},Dm=function(e,t){return!(!e||!e.guideId||!(e=b(e.guideId)))&&(Pm(e),e.launch(t),e.isShown())},Fm=function(e,t,n,i,r,o){e=jm({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&_.extend(e.props,{step_poll_types:o}),Km(e),R.guideNotSeen.trigger(e)};var Um=function(e,t,n,i,r,o){i||(a=b(e),s="auto",i=a&&(a=(a.launchMethod||s).split("-"),!_.contains(a,s))&&a.length?_.first(a):s);var a=jm({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r,duration:0}),s=(_.extend(a.props,o),Km(a),S());hm(e,t,"active",s),R.guideSeen.trigger(a)};function Gm(e,t,n,i,r,o){e=jm({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});null!=o&&(e.props.dismiss_count=o),Km(e),R.guideDismissed.trigger(e)}function Bm(e,t,n,i,r,o,a,s){e={type:"guideAdvanced",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r},a&&(e.destination_step_id=a),null!=s&&(e.dismiss_count=s),t=jm(e);Km(t,null,o),R.guideAdvanced.trigger(t)}function Hm(e,t){zm(e,t);var n={};n[t]=e,A.dispatch("frames/changeThrottlingState",n)}function zm(e,t){_.contains(_.values(jh),t)&&(_.isFunction(e.getTime)&&(e=e.getTime()),E[t]=e,x.write(t,e,Hh),A.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function jm(e,t,n,i,r,o){var a=e,e=("object"!=typeof a&&(a={type:e,guideId:t,stepId:n,language:o}),r&&(a.reason=r),_.isString(a.language)||delete a.language,_.extend({guide_id:a.guideId,guide_step_id:a.stepId},_.omit(a,"type","guideId","stepId","visitorId")));return Kn.addTracerIds({type:a.type,visitor_id:v({generate:!0}),account_id:Ai(),browser_time:(new Date).getTime(),url:L.externalizeURL(),props:e})}var qm=null,Wm=function(e){Gt(qm),qm=Ut(wv,e)};var Vm,Km=function(e,t,n){var i,r;t=t||500,null==e.props.duration&&({guide_id:i,guide_step_id:r}=e.props,r=r,r=(i=qu(b(i=i),r))&&i.lastSeenAt,e.props.duration=n||null==r?0:S()-r),Tv(),yv.push(e),Wm(t)},$m=function(e,t){return"dismissed"===e.state?null:b(e.guideId).nextStep(e,t||ku())},Jm=function(e,t){e=ju(e);return!!e&&(!(t=Dm(_.first(e.steps),t||"api"))&&e.control&&T.info(sm),t)},Ym=function(e,t){e=b(e);return!!e&&(!(t=Dm(_.first(e.steps),t||"api"))&&e.control&&T.info(sm),t)},Xm=function(){cg(),ug(),D.removeNotificationBubble(),ng(),vd()};function Zm(){cg(),Ra(),E.segmentFlags=[],E.doNotProcess=!0,A.commit("debugger/doNotProcess",!0),T.info("not tracking visitor due to 451 response")}function Qm(e){Vm&&(451===e.statusCode&&(Zm(),Vm.deferred.reject(e)),_.isString(e.id)&&e.id!==Vm.id||(C.get("requestSegmentFlags")&&delete e.segmentFlags,_.extend(E,e),e={guides:E.guides,visitorId:v(),guideCache:Rv},R.guidesReceived.trigger(e),E.guides=e.guides,Vm.deferred&&Vm.deferred.resolve(),Vm=null))}function ev(){return qv.pending||!(!Vm||!E.id||E.id===Vm.id)}var tv=function(o,a){var e,s=_.uniqueId(),d=m.defer();return Vm&&Vm.deferred&&Vm.deferred.resolve(),Vm={id:s,deferred:d},Dp()||((e=Fp())?(T.info("sending metadata: "+JSON.stringify(e),{contexts:["guides","metadata"]}),a.metadata=e):T.info("no metadata to send",{contexts:["guides","metadata"]})),Rv.list(a.visitorId).then(e=>{0<e.length&&(a.cachedGuides=e);var e=bt(a),t={id:s,jzb:e,v:ct,ct:(new Date).getTime()},n=(Qo()&&ea(t,a.accountId,C.get("oemAccountId")),!Dd()&&!0!==Pd().enabled||(t.debug=!0),ya(nv.endpoint(),o,t)),i=_d.get();let r;return r=iu(n,i)?(delete t.jzb,n=ya("guide.json",o,t),t=_.extend({events:e},i),nv.post(n,t,E,_.noop)):nv.load(n,E,_.noop),m.all([r["catch"](function(e){return 451===e.status&&Zm(),m.reject(e)}),d.promise,(e=nv,i=o,"1"===(t=x.read(Tg))?(T.info(xg),m.resolve({success:!1,cached:!0})):"0"===t?m.resolve({success:!0,cached:!0}):(t=ya("guide.gif",i,{jzb:"eJwFwIEIAAAAwDDQd3-N1QABFQC5",ct:S(),v:ct}),(e.usesXhr()?wo.get(t):_a(t)).then(function(){return{success:!0}},function(e){return e&&e.status?{success:!0}:{success:!1}})))]).then(function([,,e]){var t;if((t=e).cached||(t.success?x.write(Tg,"0",144e5):(T.info(xg),x.write(Tg,"1",18e5))),!e.success)return m.reject()})})},nv=bc;function iv(e){e=_.find(e.steps,e=>e.pageId&&!e.regexUrlRule);return!e||(T.critical("pendo.io guide validation exception",{guideId:e.guideId,stepId:e.id,error:new Error("missing regexUrlRule for page "+e.pageId+'"')}),!1)}function rv(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&_.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}var ov,av=function(){return!C.get("disableGlobalCSS")};function sv(e,t){var n=C.get("dropAnonymous");if(fi(e)&&n)T.info("loading guides blocked for anonymous visitors due to dropAnonymous config setting being set to true"),_.isFunction(t)&&t("error: guides are blocked");else if("1"===x.read(Tg))T.info("guide events are blocked, load guides cancelled"),_.isFunction(t)&&t("error: guides are blocked");else{if(id(rd()))return 1;T.info("bad url: probably local file system",{contexts:["guides","error"]}),_.isFunction(t)&&t("error: invalid url")}}var dv=function(e,r,o,a){var s=m.defer(),d=!1;if(e=e||E.apiKey,sv(r=r||v(),a)){T.info("loading guides for "+o+"...",{context:["guides"]}),o=L.externalizeURL(o);var n,t,u=dv.lastVisitorId!==r?_.noop:(i=y(),(t=_.find(i,function(e){return _.isFunction(e.isRendered)&&e.isRendered()&&!e.isTopLevel}))?(n=_.chain(t.steps).filter(function(e){return e.isRendered()}).indexBy("id").value(),function(e){e=_.findWhere(e,{id:t.id});e&&!_.get(e,"attributes.doNotResume")&&_.each(e.steps,function(e){var t=n[e.id];!t||e.seenState&&"active"!==e.seenState||e.show(t.seenReason)})}):function(){}),i=(dv.lastVisitorId=r,ug(),A.commit("guideState/setLastGuideRequestAt",S()),{visitorId:r,accountId:Ai(),url:o,oldVisitorId:Ii=Ii===undefined&&gi()?Oi(ui):Ii,timezoneOffset:(new Date).getTimezoneOffset()});const c=_.uniqueId();dv.reqId=c,tv(e,i).then(function(){if(!d&&!E.designer)if(dv.reqId!==c)s.resolve();else{R.deliverablesLoaded.trigger(),T.info("successfully loaded guides for "+o,{contexts:["guides"]}),Xm();var t=E.lastGuideStepSeen;if(!t)throw new Error("lastGuideStepSeen is not set, check response from guide payload");A.dispatch("guideState/receiveLastGuideStepSeen",t),t.visitorId=r,A.dispatch("guideState/updateLastGuideStepSeen",t),A.commit("guideState/setLastGuideRequestAt",S());t=E.guides;var t=_.chain(t).map(qc).filter(iv).sortBy(rv).value(),n=(Gu(t),y());A.dispatch("guideState/load"),A.dispatch("guideState/apply"),A.dispatch("healthCheck/init",t),A.dispatch("frames/changeGuideList",n),E.eventProperties=Dv(E.features);let e=m.resolve();E.globalJsUrl&&(e=_g(Ec(E.globalJsUrl))["catch"](function(e){T.error("Error loading global script: ",e)})),n.length?m.all([e,_v(t),Cg.initializeWatermark(t),lv(5e3)].concat((i=t,_.map(uv,function(e){return e(i)})),vv())).then(function(){dv.reqId===c&&(A.getters["frames/isLeader"]()&&u(y()),R.guidesLoaded.trigger(),lg(),Gt(ov)),_.isFunction(a)&&a(),s.resolve()},function(e){T.critical("Post loadGuide request failed: "+e),Xm(),R.guidesFailed.trigger(),s.reject()}):(R.guidesLoaded.trigger(),s.resolve())}var i})["catch"](function(e){T.info("Error in loadGuideJs, shutting down guides, err: "+_.get(e,"message",e||"Unknown error")),R.guidesFailed.trigger(),s.reject(e)});e=C.get("guides.timeout");_.isNumber(e)&&(Gt(ov),ov=Ut(function(){var e;e=s,Xm(),e.reject(),d=!0},e))}else s.reject();return s.promise};var uv=[];function cv(e,t){var n,i=document.getElementById(e);return i&&i.href&&0<=i.href.indexOf(t)?m.resolve():(n=m.defer(),M(i).remove(),i=E.loadResource(t,function(){n.resolve()}),_.isEmpty(i)?m.reject(`Failed to load CSS resource: ${t}. Check that the URL is correct and from an allowed origin.`):(i.id=e,n.promise))}var lv=_.memoize(function(t,n,e){if(!av()||!pv(y()))return m.resolve();n=n||S,e=e||"_pendo-hidden_";var i=M(document.createElement("div")).addClass(e).css({position:"absolute",bottom:"0px",right:"0px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(M.getBody()),r=n(),o=m.defer();return function s(e){Ut(function(){a(i[0])?(i.remove(),o.resolve()):n()-r>t?(i.remove(),o.reject("Unable to find global css after delay")):s(100)},e)}(0),o.promise;function a(e){e=f(e);if(e)return"none"===e.display}});function pv(e,t){return t&&t.designer||_.any(e,function(e){return!Yu(e)&&"html"!==e.editorType&&_.any(e.steps,function(e){return"html"!==e.type&&!(e.domUrl||e.domJsonpUrl||e.domJson)})})}const hv="_pendo-default-css_",fv="_pendo-css_";function gv(e){return E.apiKey?e+E.apiKey:e}function mv(e){M(document.getElementById(gv(e))).remove()}function vv(){var e=[];if(!av())return m.resolve();pv(y(),E)&&e.push(cv(gv(hv),dm()));var t=((E.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(cv(gv(fv),Ec(t))):mv(fv),e}var yv,bv,wv=function(e){yv&&yv.flush(e)},Sv=function(){return am};function Ev(e,t){sn(e.type,Kt)&&t(e)}function Iv(e){var t=Hd(ou,Vd("visitor_id"),Vd("props.source"),Wd,ru,du(),lu(e),pu,hu,Su),n=Hd(au,Ev,su,jd,qd(e.cache),_.noop);return new Tu(_.extend({processSilos:t,packageSilos:n},e))}var _v=function(e){return D.initializeResourceCenter(e)};const Cv=()=>{var e=_.filter(y(),e=>_.isFunction(e.outsideTimebox)&&e.outsideTimebox());Hu.addGuide(e)};function Tv(e){return yv=yv||Iv(_.extend({cache:am,apiKey(){return E.apiKey},beacon:"guide",allowPost:!0,preferFetch:et.safari},e)),bv=bv||Iv(_.extend({cache:[],apiKey(){return E.apiKey},beacon:"poll",allowPost:!0,preferFetch:et.safari},e)),fd(yv),fd(bv),()=>{yv.clear(),bv.clear(),gd(yv),gd(bv)}}function xv(e){var e=e["blockedURI"];e&&-1!==e.indexOf("/data/guide.json")&&C.get("cacheGuides")&&((e=C.getLocalConfig()).cacheGuides=!1,C.setLocalConfig(e),vo(window,"securitypolicyviolation",xv),Wv())}let Rv;var Av=function(e){const t=[];t.push(Tv({localStorageUnload:C.get("analytics.localStorageUnload")})),Rv=new Ag(E.apiKey,C),$f.run(),t.push($f.stop),R.appUnloaded.on(function(){A.dispatch("frames/leave")}),R.metadata.on(function(e){e=e.data[0].storeChanged;e&&!Dp()&&qv()}),R.identify.on(function(){E.doNotProcess&&(delete E.doNotProcess,Aa(),lg(),A.commit("debugger/doNotProcess",!1),T.info("cleared do not process flag")),qv()}),R.urlChanged.on(function(){qv(L.get())}),R.guideUpdateComplete.on(function(){var e,t,n;Cv(),Vc.processPrefetch(),e=y(),t=Pu,C.get("disablePrefetch")||(t=_.keys(t)).length&&(n=_.indexBy(e,"id"),_.each(t,function(e){var e=n[e];e&&(e=_.first(e.steps))&&_.isFunction(e.fetchContent)&&e.fetchContent(!0)}))}),R.guidesLoaded.on(function(){D.fetchAnnouncementGuidesContent(y(),A)}),R.guideListChanged.on(function(e){e=e.data[0].guideIds;if(e&&e.length){const n=_.indexBy(e);_.each(Pu,function(e,t){!n[t]&&e&&(e.hide(),delete Pu[t])})}}),R["consent:changed"].on(function(e){e=e.data[0].guides;_.isUndefined(e)||(e?(Nv(!1),Wv):(Mv(),Lv))()}),on("guides")||(Mv(),Lv()),t.push(function(e,t,n){var{Turbolinks:i,Turbo:r}=window;let o;if(i&&(o=i.EVENTS&&i.EVENTS.LOAD),!(o=r&&r.visit?"turbo:load":o))return()=>{};const a=mo(e,o,t),s=mo(e,"turbo:before-cache",n);return()=>{a(),s()}}(document,function(){L.get()===jv.lastUrl&&Wv()},function(){Xm()}));var n,i=C.get("guides.tooltip.arrowSize");return _.isNumber(i)&&(E.TOOLTIP_ARROW_SIZE=i),t.push(Kn.tabIdChanged(function(){var e=Kn.getTabId();A.commit("frames/setTabId",e),A.dispatch("frames/join")})),A.dispatch("frames/init"),A.dispatch("frames/join"),t.push(function(){const e=[];return A.dispatch("guideState/init"),e.push(mo(window,"focus",$h)),e.push(mo(window,"storage",function(e){A.dispatch("guideState/storageChanged",e)})),()=>_.each(e,function(e){e()})}()),t.push(()=>{Gv.cancel(),og.cancel()}),t.push(mo(window,"resize",Gv)),t.push(mo(window,"scroll",og,!0)),t.push(mo(window,"gestureend",Bv,!0)),t.push(mo(window,"securitypolicyviolation",xv)),t.push(Hv()),e.observing&&(A.commit("guideUpdate/setObserver",e),A.commit("guideUpdate/setUseObserver"),t.push(()=>A.dispatch("guideUpdate/stopObserver"))),x.registry.addLocal(jh.ADVANCED),x.registry.addLocal(jh.DISMISSED),x.registry.addLocal(jh.SNOOZED),x.registry.addLocal(Tg,{duration:144e5,localStorageOnly:!0}),Jc.initialize(),n=Jc,_.each([Og,Lg,Jg,Pg,Dg,em,im,rm],e=>{n.addGlobalScript(e)}),()=>{Rv=null,jv.reset(),Xm(),qv.reset(),dv.reqId=null,_.each(t,function(e){e()}),mv(hv),mv(fv),Jc.teardown()}},kv=function(){return C.get("guides.disabled",!1)||!va},Ov=function(){return C.get("guides.delay",!1)},Nv=function(e){var t=C.getLocalConfig();t.disableGuides=e,C.setLocalConfig(t)};function Mv(){Nv(!0),Xm()}function Lv(){_.each(jh,function(e){x.clear(e)})}var Pv=function(e){var t=C.getLocalConfig();delete t.delayGuides,t.guides&&delete t.guides.delay,t.delayGuides=e,C.setLocalConfig(t)},Dv=Ru(function(e){if(e&&e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n].featureRule,r=_.map(e[n].eventProperties,function(e){return e.selector?e:JSON&&JSON.parse&&e.rule?JSON.parse(e.rule):void 0});t.push({featureRules:i,eventPropertyRules:r,featureId:e[n].featureId})}return t}}),Fv=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},Uv=function(){T.debug("adjustActiveGuideOnResize firing");var e=Vv();e&&e.step&&!E.ignoreResize&&!function(e){var t=document.activeElement;if(!t||t.tagName!=="TEXTAREA"&&t.tagName!=="INPUT")return false;var n=e.guideElement&&e.guideElement[0];return!!n&&n.contains(t)}(e.step)&&e.step.redraw()};const Gv=_.debounce(function(){var e;-1<_.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=Fv())||e.id.indexOf("pendo-video-")<0)&&Ut(function(){Uv()},150):Uv(),og()},50),Bv=function(e){1!==e.scale&&Gv()};var Hv=function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];const t=[];for(var n=0;n<e.length;n++)t.push(mo(document,e[n],zv));return()=>{_.each(t,function(e){e()})}},zv=function(e){var t=_.get(document,"activeElement.id",""),e=_.get(e,"target.id","");_.filter([t,e],e=>-1<e.indexOf("pendo-video-")).length&&(Fv()?E.ignoreResize=!0:Ut(function(){E.ignoreResize=!1},1e3))};function jv(e){var t,n,i,r,o=v(),a=Ai();e=e||L.get(),n=o,i=a,r=up,!(t=e)||!E.apiKey||kv()&&"true"!==om.getItem("pendo-designer-mode")||t===jv.lastUrl&&n===jv.lastVisitorId&&i===jv.lastAccountId&&r===jv.lastMetadataHash||(jv.lastUrl=e,jv.lastVisitorId=o,jv.lastAccountId=a,jv.lastMetadataHash=up,dv(E.apiKey,o,e)["catch"](_.noop))}jv.reset=function(){_.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){jv[e]=null})};var qv=function(e){va&&(qv.reset(),qv.pending=Ut(function(){delete qv.pending,jv(e)},0))};function Wv(){jv.lastUrl=null,qv()}function Vv(e){var t,n,e=_.find(y(e),function(e){return e.isShown()});return!e||_.get(e,"attributes.resourceCenter.isModule")&&!(e=D.getResourceCenter())?null:(t=_.find(e.steps,function(e,t){return n=t,e.isShown()}),{guide:e,steps:_.filter(e.steps,function(e,t){return e.isShown()}),step:t,stepIndex:n})}qv.reset=function(){qv.pending&&Gt(qv.pending)};var Kv="pendo-live-preview-relay",$v="live-preview.html",Jv="pendo-live-preview::config",Yv="pendo-live-preview::ready",Xv="pendo-live-preview::update",Zv="pendo-live-preview::end",Qv="pendo-live-preview::ended",ey=null;function ty(e,t){return"*"!==t.origin&&e.origin===t.origin&&e.source===t.frame.contentWindow&&e.data}function ny(e){window.removeEventListener("message",e.listener,!1),M(e.frame).remove()}function iy(e){var t,n,i,r,o=_.get(A.state,"preview.designerPreview.guide"),a=e.guide,s=_.get(A.state,"preview.preview.state")||Jh(),d=(o=o,a=a,!(d=s)||!a||(t=a.steps||[],a=a.id,!t.length)||d.guideId!==a||"active"!==d.state&&"advanced"!==d.state||(n=(n="advanced"===d.state&&d.destinationStepId)||d.guideStepId,i=_.some(t,{id:d.guideStepId}),r=_.some(t,{id:n}),i&&r)?d:{guideId:a,guideStepId:r?n:(i=o&&o.id===a&&o.steps||[],r=_.findIndex(i,{id:n}),t[Math.min(Math.max(r,0),t.length-1)].id),state:"active"});A.commit("preview/setDesignerPreview",e),d!==s&&(d.time=S(),qh(d),A.dispatch("preview/update",d)),Wv()}function ry(e,n){var t,i,r,o;function a(e){var t;ty(e,o)&&(e.data.type===Yv?(t=o).frame.contentWindow&&t.frame.contentWindow.postMessage({type:Jv,livePreview:t.payload},t.origin):e.data.type===Qv?(ny(o),ey=null,n&&n()):e.data.type===Xv&&iy(e.data.payload))}e&&!ey&&(t=(ut||at)+"/in-app-designer/latest/"+$v,i=-1===t.indexOf("?")?"?":"&",t=t+i+"parentOrigin="+Ht(window.location.origin),i=t,(r=document.createElement("iframe")).id=Kv,r.setAttribute("aria-hidden","true"),r.setAttribute("sandbox","allow-scripts allow-same-origin allow-storage-access-by-user-activation"),r.style.display="none",r.src=i,o={frame:i=r,origin:function(e){try{return new Li(e).origin}catch(t){return"*"}}(t),payload:e,listener:a},ey=o,window.addEventListener("message",a,!1),Va().appendChild(i))}function oy(e){var t,n,i,r=ey;function o(){Gt(i),window.removeEventListener("message",a,!1),n()}function a(e){!ty(e,t)||"pendo-live-preview::end-ack"!==e.data.type&&e.data.type!==Qv||o()}ey=null,r?r.frame.contentWindow?(window.removeEventListener("message",r.listener,!1),t=r,n=function(){M(r.frame).remove(),e&&e()},i=Ut(o,2e3),window.addEventListener("message",a,!1),r.frame.contentWindow.postMessage({type:Zv},r.origin)):(ny(r),e&&e()):e&&e()}function ay(){return!0===C.get("enforceAllowedOriginServers")}var sy="frames/removeFrame";function dy(e,t,n){return new uy(e,t,n,(e=t,t=n,new(_.isFunction(e.MessageChannel)?cy:ly)(e,t)))}function uy(e,t,n,i){this.init(e,t,n,i)}_.extend(uy.prototype,{init(e,t,n,i){this._store=e,this._window=t,this._singletonMessageHandler=n,this._listeners=[],this._targetOrigin=n.targetOrigin(),this._impl=i,this._impl.onconnect=_.bind(this._frameConnectHandler,this),this._impl.onmessage=_.bind(this._fireMessageListeners,this),this._impl.onrelay=_.bind(this._topMessageHandler,this),this._connectToTop(10,0,function(){this._addControlMessageHandler(),this._connectToTop(250,21,function(){this.close(),this._store.commit("frames/setConnectFailed")})})},_fireMessageListeners(t){_.each(this._listeners,function(e){e(t)})},_controlMessageHandler(e){e=this._impl._parseMessage(e);if(e.data){if("pendo::connect"===e.data.action){if(!function(e,t){try{return function(e,t){if(e){if(e===t||e.top===t)return 1;for(var n=[t];n.length;)for(var i=n.shift().frames,r=i?i.length:0,o=0;o<r;o++){if(i[o]===e)return 1;n.push(i[o])}}return}(e.source,t)}catch(n){}}(e,this._window))return;if(ay()&&!Is(e.origin))return;this._impl.frameConnect(e)}e.data.action===sy&&this._topMessageHandler(e)}},_topMessageHandler(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===sy&&this._impl.frameDisconnect(e),this._impl.broadcast(e))},_connectToTop(e,t,n){var i=ay(),r=i?function(e){try{var t,n;return e===e.top?ws(e.location):(t=e.location.ancestorOrigins)&&t.length&&(n=t[t.length-1])&&"null"!==n?n:null}catch(i){return null}}(this._window):null;!i||r&&Is(r)?this._impl.connectToTop({action:"pendo::connect",frameId:this._store.state.frames.frameId},r||this._targetOrigin):T.warn("cross-frame connect refused: top origin is not allowed",{topOrigin:r||"unknown"}),Ut(_.bind(function(){this._connected||(0===t?_.isFunction(n)&&n.call(this):0<t&&this._connectToTop(Math.min(2*e,1e4),t-1,n))},this),e)},_addControlMessageHandler(){this._singletonMessageHandler.addEventListener(_.bind(this._controlMessageHandler,this))},_frameConnectHandler(e){e.data&&"pendo::connectSuccess"===e.data.action&&(this._connected=!0,this._impl.connectSuccess(e),this._store.dispatch("frames/join"))},addEventListener(e,t){"message"===e&&this._listeners.push(t)},postMessage(e){this._closed||this._impl.postMessage(e)},close(){this._closed=!0,this._listeners.length=0,this._impl.close()}});or={_frameConnectHandler(e){_.isFunction(this.onconnect)&&this.onconnect(this._parseMessage(e))},_messageReceived(e){_.isFunction(this.onmessage)&&this.onmessage(this._parseMessage(e))},_relayMessage(e){_.isFunction(this.onrelay)&&this.onrelay(this._parseMessage(e))},_parseMessage(e){var t;return _.isString(e.data)?((t=_.pick(e,"type","origin","source","ports","lastEventId","target")).data=function(e){if(!_.isString(e))return e;try{return JSON.parse(e)}catch(t){return e}}(e.data),t):e}};function cy(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function ly(e,t){this._window=e,this._frames={},this._isTop=e==e.top,this._singletonMessageHandler=t,this._boundMessageReceived=_.bind(this._messageReceived,this),this._isTop||(this._boundFrameConnectHandler=_.bind(this._frameConnectHandler,this),t.addEventListener(this._boundFrameConnectHandler))}_.extend(cy.prototype,or,{connectToTop(e,t){this._closeChannel(),this._openChannel();var n=[];this._channel.port2&&n.push(this._channel.port2),this._window.top.postMessage(e,t,n)},frameConnect(e){var t,n=e.ports[0];(t=n)&&_.all(["addEventListener","start"],function(e){return _.isFunction(t[e])})&&((this._ports[e.data.frameId]=n).addEventListener("message",_.bind(this._relayMessage,this)),n.start(),n.postMessage({action:"pendo::connectSuccess"}),n.postMessage({action:"frames/receiveFrame",frame:A.state.frames.frames[A.state.frames.frameId],"pendo-preview":A.state.preview.preview}))},frameDisconnect(e){delete this._ports[e.data.frameId]},connectSuccess(){this._port.removeEventListener("message",this._boundFrameConnectHandler),this._port.addEventListener("message",_.bind(this._messageReceived,this))},broadcast(t){_.each(this._ports,function(e){t.target!==e&&e.postMessage(t.data)})},postMessage(e){this._port&&this._port.postMessage(e),e.action===sy&&this._window.top.postMessage(e,this._targetOrigin)},close(){_.each(this._ports,function(e){e.close()}),this._ports={},this._closeChannel()},_openChannel(){this._channel=new this._window.MessageChannel,this._port=this._channel.port1,this._boundFrameConnectHandler=_.bind(this._frameConnectHandler,this),this._port.addEventListener("message",this._boundFrameConnectHandler),this._port.start()},_closeChannel(){this._port&&_.isFunction(this._port.close)&&(this._port.close(),this._port=null,this._channel=null)}}),_.extend(ly.prototype,or,{connectToTop(e,t){this._isTop||this._window.top.postMessage(JSON.stringify(e),t)},frameConnect(e){this._frames[e.data.frameId]=e.source,this._relayHandlerAdded||(this._relayHandlerAdded=!0,this._boundRelayMessage=_.bind(this._relayMessage,this),this._singletonMessageHandler.addEventListener(this._boundRelayMessage)),e.source.postMessage(JSON.stringify({action:"pendo::connectSuccess"}))},frameDisconnect(e){delete this._frames[e.data.frameId]},connectSuccess(){this._singletonMessageHandler.removeEventListener(this._boundFrameConnectHandler),this._singletonMessageHandler.addEventListener(this._boundMessageReceived)},broadcast(t){var n=this._singletonMessageHandler.targetOrigin();_.each(this._frames,function(e){t.source!=e&&e.postMessage(JSON.stringify(t.data),n)}),t.source!=this._window&&this._messageReceived(t)},postMessage(e){this._isTop?this._relayMessage({data:e,source:this._window}):this._window.top.postMessage(JSON.stringify(e),this._singletonMessageHandler.targetOrigin())},close(){var e=this._singletonMessageHandler;e.removeEventListener(this._boundFrameConnectHandler),e.removeEventListener(this._boundMessageReceived),e.removeEventListener(this._boundRelayMessage)}});py=window,hy=Is,gy=!(fy=[]);var py,hy,fy,gy,my={targetOrigin(){return gy?Ss(py):"*"},secure(e){gy=e},addEventListener(e){0===fy.length&&py.addEventListener("message",vy),fy.push(e)},removeEventListener(e){e=fy.indexOf(e);0<=e&&fy.splice(e,1),0===fy.length&&py.removeEventListener("message",vy)},close(){py.removeEventListener("message",vy),fy.length=0}};function vy(t){gy&&!hy(t.origin)||_.each(fy,function(e){_.isFunction(e)&&e(t)})}function yy(n,i){var r=!1;const o=[];return n.addEventListener("message",function(e){d(e.data)}),{postMessage:a,postMessageAsPromise:s,postMessageOrTimeout:function(e,t=1e4){const n=m.defer(),i=Tt(32),r=(e=_.extend(e,{promiseId:i}),Ut(()=>{o[i]&&(n.reject(JSON.stringify({message:"request timed out"})),delete o[i])},t));return s(e).then(e=>{Gt(r),n.resolve(e)}),n.promise},close:function(){r=!0,_.isFunction(n.close)&&n.close()}};function a(e){var t;r||(t=_.extend({apiKey:E.apiKey,allowMixedApiKeyFrames:C.get("allowMixedApiKeyFrames"),agentInstallType:Ae()},e),n.postMessage(t),Ut(function(){d(t)},0))}function s(e){e.promiseId||(t=Tt(32),e=_.extend(e,{promiseId:t}));var t=m.defer();return o[e.promiseId]=t,a(_.extend(e,{sourceFrame:i.state.frames.frameId})),t.promise}function d(e){try{var t;r||e.apiKey!==E.apiKey&&(!1===e.allowMixedApiKeyFrames||!1===C.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){T.critical("ERROR in cross frame channel",{error:n})}}}function by(e){if(!et.addEventListener)return{addEventListener:_.noop,postMessage:_.noop,close:_.noop};var t=!!window.__pendoExtensions;if(C.get("preferBroadcastChannel")&&!t&&_.isFunction(window.BroadcastChannel)){e.commit("frames/setChannelType","BroadcastChannel");t=function(e,o){const a=[];return e.removeEventListener=_.wrap(e.removeEventListener,function(e,t,n){var i,r=_.toArray(arguments).slice(1);return"message"===t&&0<=(i=_.findIndex(a,e=>e[0]===n))&&(r[1]=a[i][1],a.splice(i,1)),e.apply(this,r)}),e.addEventListener=_.wrap(e.addEventListener,function(e,t,n){var i,r=_.toArray(arguments).slice(1);return"message"===t&&(r[1]=i=function(e){if(e.data.tabId===o.getTabId())return n.apply(this,arguments)},a.push([n,i])),e.apply(this,r)}),e.postMessage=_.wrap(e.postMessage,function(e,t){return t.tabId=o.getTabId(),e.apply(this,_.toArray(arguments).slice(1))}),e}(new BroadcastChannel("pendo"),Kn);if(t&&_.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),dy(e,window,my)}var U={postMessage:_.noop,close:_.noop};let wy=U;const Sy=x.getLocal();var G,Ey,Iy="pendo-live-preview",_y="pendo-preview",Cy="current-guide-preview";function Ty(e){return A.dispatch("preview/load"),xy(e)}function xy(t){var e=Wy();if(e)return Ay(t),A.dispatch("preview/start",_.extend(e)),e.livePreview&&ry(e.livePreview,function(){zy({preventWindowClose:!1})}),x.clear(zh),Sn(!1),pd.lock(),nv=Yy,My()&&((e=ie).allowedOriginServers=[],e.allowedOriginServerHashes=[]),R.startPreview.trigger(),R.leaderChanged.on(function(e){A.dispatch("preview/write"),e.oldLeaderId||Wv(),A.getters["frames/isLeader"]()||(M(G).remove(),G=null,t.removeEventListener("message",Oy))}),Eg(Ry),!0}function Ry(){if(!A.getters["frames/isFollower"]()){var e,t,n,i,r,o,a,s,d=document,u=y(),c=Jh();if(Ny()&&(e=Wy())&&G&&G.contentWindow)if(u&&u.length){if(Ey=null,G.contentWindow.postMessage({mutation:"preview/setGuideLoaded",payload:{guideLoaded:!0}},location.origin),t=Ky(e),(n=_.find(u,function(e){return e.id===t}))||!e.livePreview){i=0,r=n.steps.length,o=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=_.indexOf(n.steps,_.find(n.steps,function(e){return e.id===o.destinationStepId})):"advanced"===o.state&&t===r-1&&(i=r),!0)}),u="dismissed"===o.state,c=r-1<=i,u=u||c,c=c?r-1:i,a=n.steps[c],s=a.isShown(),G.contentWindow.postMessage({mutation:"preview/setHostname",payload:{hostname:at}},location.origin),(f=Hy(e))&&G.contentWindow.postMessage({mutation:"preview/setWhiteLabelSettings",payload:{whiteLabelSettings:f}},location.origin),G.contentWindow.postMessage({mutation:"preview/setGuidePages",payload:{guidePages:n.previewPages}},location.origin),G.contentWindow.postMessage({mutation:"preview/setGuideProgress",payload:{guideName:n.name,guideAttributes:JSON.stringify(n.attributes),guideLaunchMethod:n.launchMethod,guideActivationSelector:rc(n),isAdoptGuide:n.isTraining,isResourceCenter:e.isResourceCenter,stepId:a&&a.id,currentStepIndex:c,stepCount:r,elementPathRule:a.elementPathRule,elementContainsRulesList:a.elementContainsRulesList,triggerElementPathRule:a.triggerElementPathRule,isShown:s,pageId:a.pageId,completed:u,languageOptions:_.get(e,"languageOptions",[]),currentLanguage:e.language}},location.origin);var l=a,p=c,h=G;if(l&&h&&h.contentWindow){const g=l.getGuide().id;var f=_.filter(A.state.frames.frames,e=>"hidden"!==e.visibility&&e.guides&&e.guides[g]);if(f.length)f=_.map(f,e=>U.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:e.id,stepId:l.id,guideId:g,currentStepIndex:p})),m.all(f).then(t=>{let n={},i=-1;for(let e=0;e<t.length;e++){var r=JSON.parse(t[e]).errors;if(!r.GUIDE){var o=_.keys(r).length;if(!o){n={};break}-1===i?(n=r,i=o):l.regexUrlRule?!r.PAGE&&o<=i&&(n=r,i=o):o<i&&(n=r,i=o)}}h.contentWindow.postMessage({mutation:"preview/setErrors",payload:{errors:n}},location.origin)})["catch"](_.noop)}}}else By(0,{status:404,data:"Guide not found"})}return!0}function Ay(e){if(A.getters["frames/leaderExists"]()){if(!A.getters["frames/isFollower"]()){if(G)return!0;var t,n;_.isFunction(e.addEventListener)&&e.addEventListener("message",Oy),(t=document.createElement("iframe")).id=_y,Ga(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(C.get("inlineStyleNonce")){const n=t.contentDocument.createElement.bind(t.contentDocument);t.contentDocument.createElement=(e,...t)=>{t=n(e,...t);return"style"===e&&(e=C.get("inlineStyleNonce"))&&t.setAttribute("nonce",e),t}}var e=document.createElement("script");e.src=C.get("previewModeAssetPath")||Zo("pendo.preview.min.js"),e.onload=function(){var e=Hy(Wy());e&&t.contentWindow&&t.contentWindow.postMessage({mutation:"preview/setWhiteLabelSettings",payload:{whiteLabelSettings:e}},location.origin),Ey&&t.contentWindow&&Gy(Ey)},t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},G=t,Va().appendChild(G)}}else R.one("leaderChanged",_.partial(Ay,e))}function ky(e,t,n){gm(),A.commit("healthCheck/resetStepStatus",null,{root:!0}),Vc.reset(),Wv();var i=e[0],i=(i&&_.each(i.steps,function(e){e.seenState=null}),x.clear(zh),A.dispatch("preview/update",null),Wy());return i&&(i=_.findWhere(e,{id:Ky(i)}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),A.dispatch("preview/restart",i)),Uy(e,t)}function Oy(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===_y+"::exit"?(zy({preventWindowClose:n}),A.dispatch("frames/stopPreview",{preventWindowClose:n})):t===_y+"::restart"?(n=ky(y(),Jh(),e.data.language),A.dispatch("guideState/forceExpire"),A.dispatch("guideState/updateLastGuideStepSeen",n),A.dispatch("frames/restartPreview")):t===_y+"::resize"?(n=e.data.height,G&&G.style&&(G.style.height=n)):t===_y+"::request-preview-mode-type"&&(e=Vy(),G)&&G.contentWindow&&e&&G.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:e.previewModeType||"NEW_TAB"}},location.origin))}function Ny(){return A.getters["preview/isInPreviewMode"]()}function My(){return A.getters["preview/isInDesignerPreviewMode"]()}function Ly(){var e=Vy();return e&&My()?(_.each(e.guide.steps,function(t){let e=["domJsonpUrl","domUrl"];t.domUrl&&0===t.domUrl.indexOf("data:")&&(e=["domJson","contentJs","contentCss","content"]),_.each(e,function(e){delete t[e]})}),e.guide.showsAfter=null,e.guide.expiresAfter=null,[e.guide]):[]}function Py(e){var t,n,i=Wy();if(!i)return e;if(i.isResourceCenter)return r=e,t=i,n=D.findResourceCenterHomeView(r),r=_.filter(r,function(e){return e.id!==n.id}),Fy(n,t.stepId),t=_.map(r,function(e){return e.launchMethod="launcher",e}),[n].concat(t);{var r=e,o=i;let t;return _.each(r,function(e){e.id===o.guideId?t=e:((e=e).launchMethod="api",(e=e.steps[0])&&(e.seenState="advanced"))}),Dy(t),t.showsAfter=null,t.expiresAfter=null,Fy(t,o.stepId),r}}function Dy(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function Fy(e,t){for(var n=_.find(e.steps,function(e){return e.id===t}),i=n?e.steps.indexOf(n):0,r=0;r<e.steps.length;r++)r<i?(e.steps[r].seenState="advanced",e.steps[r].seenReason="continue"):(e.steps[r].seenState=null,e.steps[r].seenReason=null)}function Uy(e,t){null==t&&(t={});var n=Wy();if(!n)return t;var i=Ky(n),e=_.findWhere(e,{id:i});if(!e)return t;if(n.state)return n.state;Dy(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:i,guideStepId:n.stepId,state:"active"}:{}}function Gy(e){G.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:e}},location.origin)}function By(e,t){Ey=t,G&&G.contentWindow&&Gy(t)}function Hy(e){var t=C.get("whiteLabelSettings");return t=!t&&e&&"novus"===e.ux?{logoUrl:"https://novus.pendo.io/branding/novus-vector-white.svg",logoStyle:{maxWidth:"40px",maxHeight:"40px"}}:t}function zy(i){var r=Vy(),o=!1,a=(r&&(o="SAME_TAB"===r.previewModeType),Sy.getItem("pendo-navigation-state"));function e(){if(o&&a){Sy.setItem(Cy,JSON.stringify(_.extend(r,{isExitBackToDesigner:!0})));try{var e=JSON.parse(a),t={target:e.baseUrl,gcsBucket:e.gcsBucket,preloader:!0,DADesigner:e.isDADesigner,host:e.host,forceNativeDesigner:"web"===r.guide.appPlatform};A.dispatch("preview/launchInAppDesigner",t)}catch(n){A.dispatch("preview/exitDesignerPreview")}}else i&&!i.preventWindowClose&&window.close(),Wv()}A.dispatch("preview/exit"),gm({stayHidden:!0}),x.clear(zh),pd.unlock(),M(G).remove(),nv=bc,Ig(Ry),Sn(!0),ey?oy(e):e()}function jy(e,t){e=_.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function qy(){return A}var Wy=_.partial(jy,qy,"state.preview.preview"),Vy=_.partial(jy,qy,"state.preview.designerPreview");function Ky(e){return e.guideId||(e.livePreview?_.get(Vy(),"guide.id"):void 0)}function $y(e){var t;if(e.subscriptionId&&e.guideId)return t=e.isResourceCenter&&!e.isWatermark?"/resourcecenter/":"/guide/","/api/s/"+Ht(e.subscriptionId)+t+Ht(e.guideId)+"/preview"}var Jy=function(e){var t;return e.isWatermark=!0,Is(e.origin)?(t=$y(e))?(t={url:e.origin+t+"?url="+Ht(L.externalizeURL())+"&apiKey="+E.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),wo(t).then(function(e){return e.data.guide})):(T.info("Invalid guide url, exiting preview"),m.reject("invalid guide url")):(T.info("Invalid origin, exiting preview"),m.reject("invalid origin"))},Yy={load(e,t,n){return Zy(e,n)},post(e,t,n,i){return Zy(e,i)},endpoint(){return""},usesXhr(){return!0}};function Xy(r,t){if(!Is(r.origin))return T.info("Invalid origin, exiting preview"),m.reject("invalid origin");var e;if(r.livePreview)return o=Vy(),e=Ly(),o&&e.length&&e[0].steps.length?(Dy(n=e[0]),Fy(n,r.stepId),E.guideWidget={enabled:!1,data:{guideCssUrl:o.guideCssUrl}},E.guideCssUrl=o.guideCssUrl,E.throttling=undefined,E.guidesPayload({id:t,lastGuideStepSeen:Uy(e,E.lastGuideStepSeen),guides:e})):E.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),m.resolve();var n=$y(r);if(!n)return T.info("Invalid guide url, exiting preview"),m.reject("invalid guide url");if(!A.getters["frames/leaderExists"]()||r.apiKey!==E.apiKey)return E.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),m.resolve();let i=""+r.origin+n+`?url=${Ht(L.externalizeURL())}&apiKey=`+E.apiKey;r.childGuides&&r.childGuides.length&&(i+="&childGuides="+r.childGuides.toString()),My()&&(i+="&ignoreGuide=true");var o={url:i,withCredentials:!0},a=(r.headers&&(o.headers=r.headers),[]);return wo(o).then(function(e){var t,c,e=e.data;return My()?(a=Ly(),e.guide=a[0]):a=r.isResourceCenter?e.guide:(e.guide.previewPages=e.pages,[e.guide]),e.children&&(a=a.concat(e.children)),r.language&&r.language!==_.get(a,"[0].authoredLanguage")&&(t=a,c=r.language.value,_.forEach(t,function(u){_.forEach(u.steps,function(e){var{domHash:t,domJsonpHash:n,translationHash:i,originalDomJsonHash:r,originalDomJsonpHash:o,originalBuildingBlockHash:a,domHash256:s,domJsonpHash256:d}=_.get(u,"translationStates."+c+".stepTranslations."+e.id,{});e.domUrl=Qy(r,e.domUrl,".dom.json",s),e.domJsonpUrl=Qy(o,e.domJsonpUrl,".dom.jsonp",d),e.buildingBlocksUrl=Qy(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"))})})),r.watermarkConfig&&(e.guide.isTraining=!0),E.guideWidget={enabled:!1,data:{guideCssUrl:e.guideCssUrl}},E.guideCssUrl=e.guideCssUrl,E.normalizedUrl=e.normalizedUrl,E.throttling=undefined,e.guide}).then(function(e){var t;return r.watermarkConfig?(t=JSON.parse(JSON.stringify(r)),t=Object.assign(t,r.watermarkConfig),Jy(t)):e}).then(function(e){e&&e.attributes&&e.attributes.isWatermark&&a.push(e),E.guidesPayload({id:t,lastGuideStepSeen:Uy(a,E.lastGuideStepSeen),guides:Py(a)})})["catch"](function(e){By(document,e);var t=r,n=e;if(n&&401===n.status&&window.opener&&window.opener!==window)try{window.opener.postMessage({type:_y+"::auth-failed",status:n.status},t.origin)}catch(i){T.info("Unable to notify preview opener of auth failure")}return m.reject(e)})}function Zy(e,t){var n=Wy();return n?(e=/[?&]id=(\d+)/.exec(e),n.livePreview?Xy(n,e&&e[1]).then(t):!$y(n)||!e||e.length<1?m.reject():Xy(n,e[1]).then(t)):m.reject()}function Qy(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 eb=function(){let n=null,i=[];const r=e=>{E.apiKey=E.publicAppId=e+="",n=e};return{getApiKey(){return E.apiKey},discoverKeys({apiKey:e,additionalApiKeys:t=[]}){n=null,i=[],e=e,(e=C.get("publicAppId",e))&&r(e),n,e=t,e=C.get("additionalPublicAppIds")||C.get("additionalApiKeys",e),i=_.reduce(e,(e,t)=>(t&&e.push(t+""),e),[]),i=[].concat(e),E.additionalApiKeys=E.additionalPublicAppIds=i,!n&&i&&i.length&&r(i[0])},getAdditionalApiKeys(){return E.additionalApiKeys},tamperedWith(){return E.apiKey!==n||E.additionalApiKeys!==i},clearInstalledKeys(){n=null,i=[],delete E.apiKey,delete E.publicAppId,delete E.additionalApiKeys,delete E.additionalPublicAppIds}}}(),tb=x.getLocal(),nb=x.getSession(),ib="pendo-designer-launch-receipt";rb=ut||at,ob="in-app-designer",ab="latest",x.registry.addSession(ib),R.leaderChanged.on(function(){db({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||My()})});var rb,ob,ab,sb={launchDesigner:function(e){var t,n="latest",i="designer";Qc(C,"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%;}"),mb("designer-shims",rb+"/"+i+"/"+n+"/plugin.js"),E.DESIGNER_VERSION?fb(n,i):t=window.setInterval(function(){E.DESIGNER_VERSION&&(fb(n,i),clearInterval(t))},100)},launchInAppDesigner:function(e){if(!vb(window.name)&&!E.designerLaunched)if(C.get("disableDesigner"))T.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){}sb.crossFrameChannel===undefined&&(sb.crossFrameChannel=U,sb.useCrossFrameChannel=!0),Vs()&&a&&!e.allowChildFrame&&!e.selectionOnly?T.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):E.isReady()?(E.designerLaunchTime=(new Date).getTime(),function(e){e&&nb.setItem(ib,e)}((e=e||{}).designerId),a=cb(e),r=lb(e),o=hb(e),i=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+r+"/"+o+"/"+i,C.get("useAssetHostForDesigner")&&(n=Zo(i)),sb.hostConfig={gcsBucket:r,baseFolder:o,uniqueWindowId:e.uniqueWindowId,host:a,adoptv2:e.adoptv2,DADesigner:e.DADesigner,agentInstallType:Ae(),forceNativeDesigner:!!e.forceNativeDesigner,sidebarDesigner:!!e.sidebarDesigner,apiKey:eb.getApiKey()},i={},e.selectionOnly&&(i["selection-only"]=!0),C.get("pendoGlobalKey")&&(i["data-pendo-global-key"]=C.get("pendoGlobalKey")),r=C.get("designerAgentPluginsLoader"),o=window.__pendoExtensions&&e.forceNativeDesigner,a=!window.__pendoExtensions&&!_.isFunction(r),(o||a)&&(sb.addScriptToPage(t,n,i),E.designerLaunched=!0),!e.forceNativeDesigner&&_.isFunction(r)&&(r(t,n,i),E.designerLaunched=!0)):T.error("Unable to launch the designer, the agent has not been initialized. Please use `pendo.initialize` prior to launching the designer")}},localStorageNavigation:db,launchOnToken:function(e){if(!vb(window.name)){var t=/pendo-designer=([A-Za-z0-9-]+)/;if(t.test(e)){e=t.exec(e);if(e){var n,t=function(e){try{return JSON.parse(atob(Ft(e)))||{}}catch(t){return{}}}(e[1]);if(!function(t){return t&&_.any(Es,function(e){return e.test(t)})}(window.location.origin)||function(){if(!window.opener)return;try{return window.opener.location.origin===window.location.origin}catch(e){}}()||function(e){return e&&nb.getItem(ib)===e}(t.designerId))return e=cb(t),n=hb(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),sb.launchInAppDesigner({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,sb.hostConfig.host)},isValidDesignerHost:ub,isValidTarget:pb,addCommunicationIframe:function(e,t){e=e||{};_.isFunction(t)||(t=_.noop);var n=hb(e),e=lb(e),i=(new Date).getTime(),r=(sb.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=gb(r,rb+"/"+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:rb},isDesignerFrame:vb,addScriptToPage:mb};function db(e){if(!e.ignoreLocalStorageNavigation){var t,e=tb.getItem("pendo-navigation-state");if(e&&A.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(n){return}if(!t.apiKey||t.apiKey===eb.getApiKey())if(t.apiKey||!t.agentInstallType||t.agentInstallType===Ae())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},sb.launchInAppDesigner(e),!0}}}function ub(e){return!!e&&Is(e)}function cb(e){var e=(e=e||{}).host||rb,t=ub(e),n=t?e:at;return e&&!t&&T.info("Invalid host, falling back to "+at),n}function lb(e){var e=(e=e||{}).gcsBucket||ob,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:ob;return t||T.info("Invalid bucket, falling back to "+ob),e}function pb(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 hb(e){e=e||{};var t=C.get("enableCrossOriginIsolation")?"strict":ab,e=e.target||e.baseFolder||t,t=pb(e),e=t?e:ab;return t||T.info("Invalid target, falling back to "+ab),e}function fb(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+="__"+sb.windowCommunicationId,(t=gb("pendo-designer-iframe",rb+"/"+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 gb(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&Ua(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 mb(e,t,n){var i;document.getElementById(e)||((i=document.createElement("script")).setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=p(E).createScriptURL(t),n&&_.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function vb(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(n){return!1}}yb={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"},bb={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},(wb={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370}).FOOTER_HEIGHT=1.25*wb.HEADER_HEIGHT,wb.BODY_HEIGHT="calc(100% - "+wb.HEADER_HEIGHT+"px - "+wb.FOOTER_HEIGHT+"px)",Sb='<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>',(Eb={})["#"+yb.closeButton+":hover"]={"background-color":bb.GRAY_LIGHTER_6},Eb["#"+yb.launchButton+":hover"]={"background-color":bb.TEAL_DARKER+" !important"},Ib={PRIMARY_FONT:"Helvetica Neue"};var yb,bb,wb,Sb,Eb,Ib,_b={listen:function(){return _.isFunction(document.addEventListener)?(document.addEventListener("keyup",Cb,!1),()=>{document.removeEventListener("keyup",Cb,!1)}):()=>{}},launchOnLocalStorageToken:Mb,ids:yb,removeElement:kb,attemptToLaunch:Rb,loadPluginJs:function(){return R.deliverablesLoaded.on(Ab),()=>{R.deliverablesLoaded.off(Ab)}}};function Cb(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&Rb(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&Rb(!1,!0)}function Tb(e,t){var n,i,r,o={"background-color":bb.WHITE,height:wb.MODAL_HEIGHT+"px","min-height":wb.MODAL_HEIGHT+"px",width:wb.MODAL_WIDTH+"px",position:"fixed",top:wb.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-wb.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=xb("div",yb.container,o);Qc(C,yb.style,_.reduce(_.pairs(Eb),function(e,t){var n=t[0],t=t[1];return e+n+"{"+_.reduce(_.pairs(t),function(e,t){return e+t[0]+":"+t[1]+";"},"")+"} "},""),o),o.appendChild((t=t,r=xb("div",yb.header,{"background-color":bb.GRAY_PRIMARY,height:wb.HEADER_HEIGHT+"px","min-height":wb.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(i=xb("div",yb.logoContainer,{height:"38px",width:"44px","background-color":bb.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=p(E).createHTML(Sb),r.appendChild(i),(i=xb("div",yb.title,{width:"100%",display:"flex","align-items":"center","font-family":Ib.PRIMARY_FONT,"font-size":"18px",color:bb.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=t?"VIA Designer":"Pendo Designer",r.appendChild(i),r)),o.appendChild(((t=xb("div",yb.body,{height:wb.BODY_HEIGHT,"min-height":wb.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":Ib.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=xb("div",yb.footer,{"align-items":"center","border-top":"1px solid"+bb.GRAY_LIGHTER_6,display:"flex",height:wb.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":wb.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(r=xb("button",yb.closeButton,{"border-radius":"3px",border:"none",height:wb.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":Ib.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(){kb(yb.container),kb(yb.commIframeId)},(t=xb("button",yb.launchButton,{"background-color":bb.TEAL_PRIMARY,"border-radius":"3px",color:bb.WHITE,border:"none",height:wb.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":Ib.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(){Mb(n)},i.appendChild(r),i.appendChild(t),i)),document.body.appendChild(o)}function xb(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),_.extend(e.style,n),e}function Rb(t,n){var i,r,o;E.designerLaunched||(o=_.once(function(e){t||!n?Mb(e):Tb(e,t),Ob()}),$s(function(e){"pendo-designer-launch-modal"===e.data.destination&&(clearInterval(i),e.data.viaconfirmed?clearInterval(r):e.data.token?(o(e.data.token),e=JSON.parse(e.data.token),_.contains(e.host,"via")&&!e.visitorId&&(r=r||setInterval(function(){document.getElementById(yb.commIframeId)&&Nb()},100))):Ob())}),sb.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){Nb(),i=window.setInterval(Nb,50)}))}function Ab(){var t,e=x.getLocal();E.designerEnabled&&"true"!==e.getItem("pendo-designer-mode")&&!E.designerLaunched&&(t=_.once(function(e){Mb(e,!0)}),$s(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}function kb(e){e=document.getElementById(e);e&&e.remove()}function Ob(){var e=document.querySelector("#"+yb.commIframeId+'[src*="pendo"]');e&&e.remove()}function Nb(){var e=document.getElementById(yb.commIframeId);e&&e.contentWindow&&_.isFunction(e.contentWindow.postMessage)&&e.contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:E.visitorId},_.get(E,"designerv2.hostConfig.host",at))}function Mb(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),kb(yb.container),sb.launchInAppDesigner(n)}function Lb(e,t,s,d){return new(s=s||Dn)(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())})}const Pb="_pendoHeaders";function Db(e){return A.getters["networkUrl/getTransformedUrl"]()(e)}const Fb="headers",Ub={authorization:!0,cookie:!0,"set-cookie":!0,"x-api-key":!0,"x-forwarded-for":!0,"proxy-authorization":!0,signature:!0,forwarded:!0,referrer:!0},Gb=2097152,Bb="[Body too large to capture (over 2 MB)]";class Hb{isDeniedHeader(e){e=e.toLowerCase();return Ub[e]||-1!==e.indexOf("csrf")||-1!==e.indexOf("xsrf")}entriesToObject(e,t){var n,i,r={};for([n,i]of e)t===Fb&&this.isDeniedHeader(n)||(r[n]=i);return r}safelySerializeBody(e){if(!e)return undefined;if("string"==typeof e)return e;var t;if(e instanceof FormData)return t=this.entriesToObject(e.entries()),JSON.stringify(t);try{return JSON.stringify(e)}catch(n){return"[unserializable-body]"}}extractHeaders(e={}){let t={};if(e instanceof Headers)t=this.entriesToObject(e.entries(),Fb);else if("object"==typeof e)for(const n in e)!e.hasOwnProperty(n)||this.isDeniedHeader(n)||(t[n]=e[n]);return t}extractXHRHeaders(e){return e[Pb]||{}}generateRequestId(){return"req_"+Date.now()+"_"+E.randomString(8)}safelyReadBody(o,a){return Lb(this,void 0,void 0,function*(){try{var e=o.headers.get("content-type")||"unknown",t=o.headers.get("content-length"),n=-1!==e.indexOf("text/")||-1!==e.indexOf("application/json");if(-1!==e.indexOf("text/event-stream"))return"[Event stream content]";if(!n)return`[Binary content: ${e}]`;if(t)if(parseInt(t,10)>Gb)return Bb;var i=o.body&&_.isFunction(o.body.getReader)&&"undefined"!=typeof TextDecoder?yield this.readBodyStream(o.body):yield o.text();return i.length>Gb?Bb:i}catch(r){return`[Unable to read ${a} body]`}})}readBodyStream(o){return Lb(this,void 0,void 0,function*(){var e=o.getReader(),t=new TextDecoder;let n="",i=0,r=yield e.read();for(;!r.done;){if((i+=r.value.byteLength)>Gb)return e.cancel()["catch"](_.noop),Bb;n+=t.decode(r.value,{stream:!0}),r=yield e.read()}return n+t.decode()})}extractConfigHeaders(e){let t={};return e.headers&&(e=Array.from(e.headers.entries()),t=this.entriesToObject(e,Fb)),t}parseXHRResponseHeaders(e){const t={};return e&&(e=e.split("\r\n"),_.each(e,e=>{e=e.split(": ");2===e.length&&(t[e[0]]=e[1])})),t}safelyReadRequestBody(e,t){return Lb(this,void 0,void 0,function*(){return e?t?this.safelyReadBody(e,"request"):this.safelySerializeBody(e.body):""})}extractRequestHeaders(e,t){return t?this.extractConfigHeaders(e):this.extractHeaders(e.headers)}patchFetch(){const p=this;p._originalFetch=window.fetch,window.fetch=function(...l){return Lb(this,void 0,void 0,function*(){let[e,t={}]=l;var n=_.isObject(l[0])&&_.isFunction(l[0].clone)&&!(l[0]instanceof Li);n&&(e=l[0].url,t=l[0].clone());const i=Db(e),r=t.method||"GET",o=p.generateRequestId();try{const u=p.extractRequestHeaders(t,n),c=yield p.safelyReadRequestBody(t,n);_.each(p.callbackFns,({request:e})=>{_.isFunction(e)&&e({requestId:o,method:r,url:i,body:c,headers:u})})}catch(s){_.each(p.callbackFns,({error:e})=>{_.isFunction(e)&&e({context:"fetchRequest",error:s})})}try{var a=yield p._originalFetch.apply(this,l);return p.captureResponse(a,{requestId:o,url:i,method:r}),a}catch(d){throw _.each(p.callbackFns,({response:e})=>{_.isFunction(e)&&e({requestId:o,status:0,statusText:"Network Error",headers:{},body:null,url:i,method:r,error:d.message})}),d}})}}captureResponse(a,{requestId:s,url:d,method:u}){return Lb(this,void 0,void 0,function*(){try{var e=a.clone();const n=yield this.safelyReadBody(e,"response"),{status:i,statusText:r}=a,o=this.extractConfigHeaders(a);_.each(this.callbackFns,({response:e})=>{_.isFunction(e)&&e({requestId:s,status:i,statusText:r,body:n,headers:o,url:d,method:u})})}catch(t){_.each(this.callbackFns,({error:e})=>{_.isFunction(e)&&e({context:"fetchResponse",error:t})})}})}patchXHR(){const u=this;u._originalSetRequestHeader=XMLHttpRequest.prototype.setRequestHeader,u._originalXHROpen=XMLHttpRequest.prototype.open,u._originalXHRSend=XMLHttpRequest.prototype.send,XMLHttpRequest.prototype.setRequestHeader=function(e,t){return this[Pb]=this[Pb]||{},this[Pb][e]=t,u._originalSetRequestHeader.apply(this,arguments)},XMLHttpRequest.prototype.open=function(e,t){t=Db(t);return this._method=e,this._url=t,this._requestId=u.generateRequestId(),u._originalXHROpen.apply(this,arguments)},XMLHttpRequest.prototype.send=function(e){const a=this,t=u.extractXHRHeaders(this),n=u.safelySerializeBody(e);try{_.each(u.callbackFns,({request:e})=>{_.isFunction(e)&&e({requestId:this._requestId,method:this._method||"GET",url:this._url,body:n,headers:t})})}catch(d){_.each(u.callbackFns,({error:e})=>{_.isFunction(e)&&e({context:"xhrRequest",error:d})})}this.addEventListener&&this.addEventListener("loadend",function(){delete this[Pb]},{once:!0});const s=a.onreadystatechange;return a.onreadystatechange=function(){if(4===a.readyState)try{const t=u.parseXHRResponseHeaders(a.getAllResponseHeaders()),{status:n,statusText:i,_url:r}=a,o=u.safelyReadXHRResponse(a,t);_.each(u.callbackFns,({response:e})=>{_.isFunction(e)&&e({requestId:a._requestId,status:n,statusText:i,headers:t,body:o,url:r,method:a._method||"GET"})})}catch(d){_.each(u.callbackFns,({error:e})=>{_.isFunction(e)&&e({context:"xhrResponse",error:d})})}s&&s.apply(this,arguments)},u._originalXHRSend.apply(this,arguments)}}safelyReadXHRResponse(e,t){return this.estimateResponseSize(t["content-length"],e.responseText)>Gb?Bb:e.responseText}estimateResponseSize(e,t){e=parseInt(e,10);return!_.isNumber(e)||isNaN(e)?t.length:e}patchNetwork(){this._networkPatched||(this._networkPatched=!0,this.patchFetch(),this.patchXHR())}on({request:e,response:t,error:n}={}){return this.callbackFns||(this.callbackFns=[]),(_.isFunction(e)||_.isFunction(t)||_.isFunction(n))&&this.callbackFns.push({request:e,response:t,error:n}),this._networkPatched||this.patchNetwork(),this}off({request:e,response:t,error:n}={}){_.isEmpty(this.callbackFns)&&!this._networkPatched||(_.isFunction(e)||_.isFunction(t)||_.isFunction(n)?this.callbackFns=_.reject(this.callbackFns,{request:e,response:t,error:n}):this.callbackFns=[],_.isEmpty(this.callbackFns)&&(this._originalFetch&&(window.fetch=this._originalFetch,this._originalFetch=null),this._originalXHROpen&&(XMLHttpRequest.prototype.open=this._originalXHROpen,this._originalXHROpen=null),this._originalXHRSend&&(XMLHttpRequest.prototype.send=this._originalXHRSend,this._originalXHRSend=null),this._originalSetRequestHeader&&(XMLHttpRequest.prototype.setRequestHeader=this._originalSetRequestHeader,this._originalSetRequestHeader=null),this._networkPatched=!1))}}e=new Hb;var zb,jb,qb,Wb,Vb=function(){var o=this,a=(this.eventable=Zn.call({}),this.eventable.on("pendoEvent",function(e){try{o.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";T.critical("Error in Action "+e,{error:t})}}),this.eventHandler=function(e){if(!e.ignore&&!E.designer){var t=e.step["guideElement"];switch(e.action){case a.advanceGuide:Im(e,e.step);break;case a.previousStep:_m(e,e.step);break;case a.goToStep:Em(e);break;case a.submitPoll:this.submitPoll(e);break;case a.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;Sm(e,e.step,n);break;case a.dismissGuide:D.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return wm();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return D.dismissResourceCenter(t);wm(e,e.step)}(e);break;case a.showElements:this.setElementDisplay(e,"block"),e.srcElement&&Fg(e.srcElement),ip((i=Yc(e.step.domJson)).props.id,t),rp(i.props.id,t),g.flexAllThings(i.props.id,e.step),np(i.props.id,t);break;case a.hideElements:this.setElementDisplay(e,"none"),ip((i=Yc(e.step.domJson)).props.id,t),rp(i.props.id,t),g.flexAllThings(i.props.id,e.step),np(i.props.id,t);break;case a.slideElement:this.setElementAnimation(e);break;case a.showGuide:n=_.find(e.params,function(e){return"reason"===e.name});Ym(e.params[0].value,n&&n.value);break;case a.launchGuide:this.launchGuide(e);break;case a.renderResourceCenterModule:var i=s(e);D.replaceResourceCenterContent(e.params[0].value,i);break;case a.returnToResourceCenterHome:n=D.findResourceCenterHomeView(Fu());if(!n)return;D.attemptToPreserveIntegrationIframes(e),D.replaceResourceCenterContent(n.id,e.params);break;case a.openLink:this.openLink(e);break;case a.searchGuides:this.searchGuides(e);break;case a.submitPollAndGoToStep:this.submitPoll(e),Em(e);break;case a.confirmation:this.confirmGuide(e);break;case a.conditionalSplit:this.handleConditionalSplit(e)}var r=Vb.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=M("[data-pendo-poll-id]",i.guideElement[0]);n=n.concat(_.map(r,function(e){var t,n=M("textarea,input:text,select,input:radio:checked",e);if(n&&n.length&&n[0].value)return t=e.getAttribute("data-pendo-poll-id"),e=_.find(i.guide.polls,function(e){return e.id===t}),n=n[0].value,e&&e.numericResponses&&(n=parseInt(n,10)),{pollId:t,value:n}})),i.response&&n?i.response(_.compact(n)):T.info("[Pendo Web SDK] Error! Trying to submit a poll response but step does not have response function!");t!==a.submitPollAndGoToStep&&i.advance()},this.setElementDisplay=function(e,t){var n=e.step,e=M(_.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);_.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=M(_.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=_.find(e.params,function(e){return"transition"===e.name}).value,e=_.find(e.params,function(e){return"left"===e.name}).value;t.style.transition=n,t.style.left=e},this.openLink=function(e){var t=_.find(e.params,function(e){return"url"===e.name}).value,e=_.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&Vs()&&(e="_top");window.open(t,e)},this.goToStep=Em,this.searchGuides=function(t){var e="",n=t.srcElement.value,t=M("#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,c;d&&i[d]&&(u=!1,(c=M(i[d])).text()&&(-1!==c.text().toLowerCase().indexOf(n.toLowerCase())?(c.css({display:"list-item"}),u=!(a=!1)):c.css({display:"none"})),_.isFunction(i[d].getAttribute)&&(e=i[d].getAttribute("data-_pendo-text-list-item-1").split(","),_.forEach(e,function(e){_.contains(o,e)||o.push(e)})),this.searchAllTerms(o,e,n)&&i[d]&&(c.css({display:"list-item"}),u=!(a=!1)),e="",u)&&s++}a?M(t[0]).css({display:"block"}):M(t[0]).css({display:"none"});if(r&&r.length&&(r[0].innerHTML="",n)){let e="";0===s?(e=t[0].innerText,this.debounceAnnounceResults(r[0],e)):(t=1===s?"data-pendo-aria-label-alert-singular":"data-pendo-aria-label-alert-plural",(e=r[0].getAttribute(t))&&(e=e.replace("{RESULT_COUNT}",s),this.debounceAnnounceResults(r[0],e)))}},this.searchAllTerms=function(t,e,n){return!!e&&e.some(function(e){return _.contains(t,e)&&e.toLowerCase()===n.toLowerCase()})},this.confirmGuide=function(e){var e=e.step,t=function(e){if(e.confirmationElementPathRule)return lo(e.confirmationElementPathRule)[0]}(e);e.advance(),t?t.click():T.critical("pendo.io confirmationElement exception",{stepId:e.id,confirmationElementPathRule:e.confirmationElementPathRule,error:new Error("confirmation action called but confirmationElement was not found")})},this.getTransitionParams=s,this.launchGuide=function(e){var t=!_.get(e,"params.2.value.doNotDismiss");t&&wm(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=b(e.params[0].value),i=e.params[1].value,r=(r=_.find(n.steps,function(e){return e.id===i}))||n.steps[0],Pm(n),r.show("api")):t&&Ym(e.params[0].value)}},this.handleConditionalSplit=function(t){var n,e=_.find(t.params,function(e){return"conditionType"===e.name}),i=_.find(t.params,function(e){return"config"===e.name}),r=_.find(t.params,function(e){return"cases"===e.name});e&&i&&r&&(e=e.value,i=i.value,r=r.value,n=function(e,t){{if("elementExists"===e)try{var n=E.Sizzle(t.elementSelector);return n&&0<n.length}catch(i){}return!1}}(e,i),R.trigger("appUsage",{type:"conditionalSplitResult",elementId:t.srcElement.id,conditionResult:n}),e=_.find(r,function(e){return e.value===n}),0<(null==(i=null==e?void 0:e.actions)?void 0:i.length)?_.forEach(e.actions,function(e){e={action:e.action,params:e.parameters,step:t.step,srcElement:t.srcElement};o.eventHandler(e)}):T.warn("No matching case found for condition result:",n))},this.debounceAnnounceResults=_.debounce((e,t)=>{e.innerHTML=t},300),{advanceGuide:"advanceGuide",previousStep:"previousStep",goToStep:"goToStep",submitPoll:"submitPoll",guideSnoozed:"guideSnoozed",dismissGuide:"dismissGuide",showElements:"showElements",hideElements:"hideElements",slideElement:"slideElement",showGuide:"showGuide",launchGuide:"launchGuide",renderResourceCenterModule:"renderResourceCenterModule",returnToResourceCenterHome:"returnToResourceCenterHome",openLink:"openLink",searchGuides:"searchGuides",submitPollAndGoToStep:"submitPollAndGoToStep",confirmation:"confirmation",conditionalSplit:"conditionalSplit"});function s(e){return e.params.find(e=>"transitionDirection"===e.name)?[{name:"transitionCss",type:"string",value:"left 200ms"},{name:"transitionDirection",type:"string",value:"right"}]:[]}return this},Kb=(Vb.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&((Vb.prototype.registeredActions=Vb.prototype.registeredActions?Vb.prototype.registeredActions:{})[e]=t)},Vb.deregisterAction=function(e){e&&"string"==typeof e&&delete(Vb.prototype.registeredActions=Vb.prototype.registeredActions?Vb.prototype.registeredActions:{})[e]},zb="guideActivity",jb=_.isObject,qb=_.findWhere,Wb=[],{type:zb,handler(e){var t=e.data[0];if(t&&"conditionalSplitResult"===t.type){var n=t;const{conditionResult:a,elementId:s}=n,d=_.findIndex(Wb,e=>e.props.ui_element_id===s);-1!==d&&(n=Wb.splice(d,1)[0],(i=n.props.ui_element_actions[0]).condition_result=a,r=(r=i.cases)[a],n.props.ui_element_actions=n.props.ui_element_actions.concat(r),delete i.cases,Km(n))}else{var i,r=e.data[1];i=r,jb(n=t)&&function(e){return e&&"click"===e.type}(i)&&function o(e){if(_.isString(e.id)&&0===e.id.indexOf("pendo-base"))return!0;if(jb(e.parentElem))return o(e.parentElem);return!1}(n)&&(function(e){return $b(e)}(n)||function(e){return Yb(e)}(n)||function(e){return Jb(e)}(n))&&(e=function(e){var t=function(e){const n=function t(e){if(!e)return;if(/^pendo-g-/.test(e.id))return e.id.replace(/^pendo-g-/,"");return t(e.parentElem)}(e);if(n){let t;e=_.find(Fu(),function(e){return!!(t=_.find(e.steps,e=>e.id===n))});if(e&&t)return{guide:e,step:t};e=_.find(Fu(),e=>e.id===n);if(e){var i=_.find(e.steps,e=>e.isShown());if(i)return{guide:e,step:i}}}return Vv()}(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=M("#"+e).closest("[data-pendo-announcement-guide-id]").attr("data-pendo-announcement-guide-id"),e=_.find(Fu(),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=Yb(e)||$b(e)||Jb(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:Bo(e.props.href),target:e.props.target}];if(e.actions!==undefined)return _.map(e.actions,Xb);if("pendo_task_list_item"===t.templateName&&_.isArray(e.templateChildren)&&e.templateChildren[t.templateChildIndex])return[{action:"showGuide",guideId:e.templateChildren[t.templateChildIndex].id}]}return[]}(n,e);var[r={}]=n,{action:r,guideId:o}=r;"showGuide"===r&&o&&(i+="-"+o);return jm({type:zb,visitorId:v(),ui_element_id:i,ui_element_type:e.type,ui_element_actions:n,guideId:t.guide.id,stepId:t.step.id,language:t.guide.language})}(t))&&("conditionalSplit"===_.get(e,["props","ui_element_actions",0,"action"])?Wb.push(e):Km(e))}}});function $b(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-button/.test(e.id))?{type:e.tag,id:e.id}:Zb(e)||!jb(e.parentElem)?null:$b(e.parentElem)}function Jb(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 Zb(e)||!jb(e.parentElem)?null:Jb(e.parentElem)}function Yb(e){return"A"===e.tag?{type:e.tag,id:e.id}:Zb(e)||!jb(e.parentElem)?null:Yb(e.parentElem)}function Xb(e){switch(e.action){case"automation":var t=qb(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=qb(e.parameters,{name:"url"}),n=qb(e.parameters,{name:"target"});return{action:e.action,url:Bo(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=qb(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=qb(e.parameters,{name:"snooze_duration"}),t=qb(e.parameters,{name:"time_unit"});return{action:e.action,duration:n.value,timeUnit:t.value};case"showGuide":case"launchGuide":n=e.parameters[0],t=e.parameters[1]||{};return{action:e.action,guideId:n.value,stepId:t.value};case"conditionalSplit":var n=qb(e.parameters,{name:"name"}),t=qb(e.parameters,{name:"conditionType"}),i=qb(e.parameters,{name:"config"}),r=qb(e.parameters,{name:"cases"}),r=_.reduce(r.value,function(e,t){return e[t.value]=_.map(t.actions,function(e){var t=Xb(e);return t.source=e.source,t}),e},{});return{action:e.action,name:n.value,condition_type:t.value,element_selector:i.value.elementSelector,feature_id:i.value.featureId,cases:r};case"advanceGuide":case"previousStep":case"submitPoll":case"dismissGuide":case"confirmation":return{action:e.action};default:return{}}}function Zb(e){return _.isString(e.id)&&0===e.id.indexOf("pendo-guide-container")}const Qb={agent:{getJwtInfoCopy:_d.get,treatAsAdoptPartner:Qo,addAccountIdParams:ea},agentStorage:x,analytics:{ptm:()=>Qd,trackEventQueue:()=>eu,collectEvent:Bd,hasConsentForAnalyticsEvent:dn,getTextCollectionMode:function(){var e;return!Zt||(e=Zt[$t],_.isUndefined(e))?"all":e},isReplayConsentDenied:function(){return an()||!on("replay")},isUtmConsentDenied:function(){return!on("utm")}},attachEvent:F,attachEventInternal:mo,detachEventInternal:vo,ConfigReader:C,Events:R,EventTracer:Kn,EventRouter:Vb,Extensions:{API:{addTopic:function(e,t){var n=Bp[e]||{};_.extend(n,t),Bp[e]=n}}},frames:{getChannel:()=>wy},getEventable:()=>Zn.call({}),getScreenPosition:fa,GlobalRuntime:{addGlobalScript:Jc.addGlobalScript,removeGlobalScript:Jc.removeGlobalScript},GuideActivity:Kb,GuideLoop:{addUpdatePhase:Eg,removeUpdatePhase:Ig},guides:{GuideFactory:qc,GuideStepFactory:Wc,getElementForGuideStep:nc},hosts:{getAssetHost:Yo,getAssetUrl:Zo,getDataHost:$o,getFontBaseUrl:function(){return C.get("assetHost")?Zo("fonts"):"https://cdn.pendo.io/fonts"},SERVER:at,DESIGNER_SERVER:ut},isTrustedOrigin:Is,NodeSerializer:Af,q:m,SendQueue:Cd,sessionStorage:x.getSession(),storageIsDisabled:wn,sizeElements:ep,store:A,Tombstone:Hu,transmit:{buildBaseDataUrl:ya,fetchKeepalive:Ca,sendBeacon:Ta,shouldLoadWithPost:iu},log:T,NetworkRequest:e,util:{trim:mt,base64EncodeString:It,parseUrl:_s,testPageRule:Ou,addInlineStyles:_.partial(Qc,C),getNow:S,escapeRegExp:J,getZoneSafeMethod(e,t){return wt(_,e,t)},isNativeCode:Oe},constants:{URL_MAX_LENGTH:2e3,SEND_INTERVAL:Qs,ENCODED_EVENT_MAX_LENGTH:td}},e0=[];let t0=!1;function n0(t){if(_.find(e0,function(e){return e.name===t.name}))T.warn(`Plugin with name ${t.name} already exists. Skipping registration.`);else if(e0.push(t),t0)try{t.initialize(E,Qb)}catch(e){T.error(`Error initializing plugin ${t.name}:`,e)}}function i0(){return _.each(e0,function(e){try{e.initialize(E,Qb)}catch(t){T.error(`Error initializing plugin ${e.name}:`,t)}}),t0=!0,r0}function r0(){_.each(e0,function(e){if(_.isFunction(e.teardown))try{e.teardown(E,Qb)}catch(t){T.error(`Error tearing down plugin ${e.name}:`,t)}}),t0=!1}function o0(n){return _.map(e0,function(e){if(e.validate&&!n)try{e.validate(E,Qb)}catch(t){T.error(`Error validating plugin ${e.name}:`,t)}return e.name})}Wp.registerExtensionsByUse("plugin",function(e){return _.extend(e.uri,_.pick(e,"name")),n0(e.uri),e},function(e){return!!e.uri.initialize&&!!e.uri.teardown});var a0=!1,s0=function(e){var t=e.old_visitor_id,e=e.visitor_id;return fi(t)?hi(e)?fi(e)?(T.info("Visitor is anonymous: "+e),!1):yi(e)?(T.info("Visitor id is the default: "+e),!1):(T.info("Re-mapping visitor identity from "+t+" to "+e),!0):(T.info("Not valid visitor id: "+e),!1):(T.info("Visitor is already identified: "+t),!1)},d0=function(e){var t=e.old_account_id,e=e.account_id;return hi(e)?t!==e&&(T.info("Re-mapping account identity from "+t+" to "+e),!0):(T.info("Not valid account id: "+e),!1)};function u0(){if(!a0){const e=function(e){e=e.data[0];(s0(e)||d0(e))&&(Bd("identify",e),vd())},t=function(e){var t;Dp()||({options:e,hashChanged:t}=e.data[0],t&&(Bd("meta",e),vd()))},n=function(e){var t=e.data[0]["identity"],e=e.data[1];_.isUndefined(t)||(t?(t=e)&&!an()&&bi()&&Mp(t):Ni({doNotTrack:!0}))};return R.identify.on(e),R.metadata.on(t),R.identify.on(Gp),R["consent:changed"].on(n),a0=!0,function(){R.identify.off(e),R.metadata.off(t),R.identify.off(Gp),R["consent:changed"].off(n),a0=!1}}}const c0="cookieConsentTiers";function l0(e,t){i=e,(n=C.getLocalConfig()||{})[c0]=i,C.setLocalConfig(n);var n,i=nn(e);return R["consent:changed"].trigger(i,t),T.debug("Cookie consent updated for "+JSON.stringify(e)+"."),i}function p0(){return C.get(c0)}function h0(e){return e=e,t=p0(),_.isEqual(Qt(e).slice().sort(),Qt(t).slice().sort());var t}function f0(e,t){return A.dispatch("frames/changeCookieConsent",{tiers:e}),l0(e,t)}function g0(e){Zt=null,e&&l0(e)}m0="guideActivity",v0=_.isObject;var m0,v0,y0={type:m0,handler(e){var t,n=e.data[0],e=e.data[1];e=e,v0(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(v0(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return S0(e)}(t)||function(e){return b0(e)}(t)||function(e){return w0(e)}(t))&&(e=function(e){var t=D.getResourceCenter();if(t){var n=t.activeModule,i=S0(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=b0(e)||w0(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),jm({type:m0,visitorId:v(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,language:i.language})}}(n))&&Km(e)}};function b0(e){var t=e.cls.split(" ");return _.contains(t,"_pendo-resource-center-module-list-item")?{type:"BUTTON",elementId:M("#"+e.id).closest("[data-pendo-module-guide-id]").attr("data-pendo-module-guide-id")}:"pendo-resource-center-container"!==e.id&&v0(e.parentElem)?b0(e.parentElem):null}function w0(e){var t=e.cls.split(" ");if(_.contains(t,"_pendo-resource-center-guidelist-module-listed-guide")||_.contains(t,"_pendo-resource-center-onboarding-module-listed-guide")){t=D.getResourceCenter();if(t){var n=e.id.split("-").pop(),t=t.activeModule;if(t&&t.attributes&&t.attributes.resourceCenter)return{type:"BUTTON",elementId:t.attributes.resourceCenter.children[n]}}return null}return"pendo-resource-center-container"!==e.id&&v0(e.parentElem)?w0(e.parentElem):null}function S0(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&&v0(e.parentElem)?S0(e.parentElem):null}const E0=e=>(e=e||E).doesExist(e.apiKey);class I0 extends zt{constructor(){super(),this.cache=new Set,this.foundShadowRoots=!1,this.stoppedSearchEarly=!1}updateCache(){this.cache.forEach(e=>{$a(e)||(this.cache["delete"](e),this.dispatchEvent({type:"detachShadow",shadowRoot:e}))})}patchAttachShadow(e){const t=e.prototype.attachShadow,n=this;return e.prototype.attachShadow=function(e){e=t.call(this,e);return this.shadowRoot&&n.triggerAttachShadow(this.shadowRoot),e},e.prototype.attachShadow.toString=function(){return t.toString()},()=>{e.prototype.attachShadow=t}}initialize(){this.unpatchAttachShadow=this.patchAttachShadow(Element),this.findShadowRoots(document,5e3,e=>this.triggerAttachShadow(e))}triggerAttachShadow(e){this.cache.add(e),this.dispatchEvent({type:"attachShadow",shadowRoot:e})}findShadowRoots(r,o=5e3,a){if(_.isFunction(r.createNodeIterator)){let t=0,n=[Va(r)],i;function s(e){do{if(!(e=e||r.createNodeIterator(n.pop(),NodeFilter.SHOW_ELEMENT))||!e.nextNode)break;for(;(i=e.nextNode())&&(t++,i&&i.shadowRoot&&(a(i.shadowRoot),n.push(i.shadowRoot),this.foundShadowRoots=!0),t%o!=0););}while(!i&&(e=null,n.length));i&&this.foundShadowRoots&&(this.findTimeout=Ut(()=>{this.findTimeout=null,s.call(this,e)},50)),t!==o||this.foundShadowRoots||(this.stoppedSearchEarly=!0)}s.call(this)}}teardown(){this.cache.clear(),_.isFunction(this.unpatchAttachShadow)&&(this.unpatchAttachShadow(),this.unpatchAttachShadow=null),this.findTimeout&&(Gt(this.findTimeout),this.findTimeout=null)}}class _0 extends zt{constructor(e=At("MutationObserver")){super(),this.ObserverClass=e,this.observing=!1,this.observers=new Map,this.triggerMutation=this.dispatchMutationEvent,this.shadowDom=new I0,this.shadowDom.addEventListener("attachShadow",_.bind(this.handleAttachShadow,this)),this.shadowDom.addEventListener("detachShadow",_.bind(this.handleDetachShadow,this)),this.addEventListener("mutation",()=>{null!=this.timeout&&Gt(this.timeout),this.timeout=Ut(()=>{this.shadowDom.updateCache(),this.timeout=null},0)})}initialize(e,t){t=t.ConfigReader;t.get("preferMutationObserver")&&e.sniffer.MutationObserver&&(this.observeShadowRoots=t.get("observeShadowRoots"),this.startObserver(document.documentElement),this.observing=!0,this.observeShadowRoots)&&this.shadowDom.initialize()}startObserver(e){var t=new this.ObserverClass(e=>this.triggerMutation(e));this.observers.set(e,t),t.observe(e,{subtree:!0,attributes:!0,childList:!0,characterData:!0})}teardown(){this.observers.clear(),this.shadowDom.teardown(),null!=this.timeout&&(Gt(this.timeout),this.timeout=null)}dispatchMutationEvent(e){this.dispatchEvent({type:"mutation",mutation:e})}triggerMutationOnce(e){this.triggerMutation=_.noop,queueMicrotask(()=>{this.dispatchMutationEvent(e),this.triggerMutation=this.triggerMutationOnce})}handleAttachShadow({shadowRoot:e}){this.triggerMutation=this.triggerMutationOnce,this.startObserver(e)}handleDetachShadow({shadowRoot:e}){this.observers["delete"](e)}}var C0=new _0;let T0=0;const x0="initializeImmediately",R0="initializeWhenVisible",A0=[];let k0=null;function O0(e){var t,n,i,r,o,a,s,d,u,c,l;if(C.get(R0,!1)&&"undefined"!=typeof document&&"visible"!==document.visibilityState)try{var p=_.toArray(arguments);if(null!==k0)T.warn("pendo.initialize call rejected: an earlier call is already waiting for the document to become visible.");else{k0=p;let t=F(document,"visibilitychange",()=>{var e;"visible"===document.visibilityState&&(t&&(t(),t=null),e=k0,k0=null,O0.apply(null,e))});A0.push(()=>{t&&(t(),t=null),k0=null})}}catch(y){T.critical("pendo.initialize failed while gating on visibility.",y)}else if("complete"===document.readyState||_.get(e,x0)||C.get(x0))try{if(T.info("pendo.initialize called with "+JSON.stringify(e)),E.apiKey)1==T0++&&T.info(["pendo.initialize only needs to be called once",Rt()?" per namespace":"",". Use pendo.updateOptions to update metadata after the web SDK has initialized."].join(""));else{if(e=e||{},_.isEmpty(_d.get())&&(l=_d.getJwtOptions(e,"initialize"))&&(_d.set(_.pick(e,"jwt","signingKeyName")),_.extend(e,l,{forceAnonymous:!0})),_.isString(e))return wo.get(e).then(e=>(ye(B=e.data),O0()));A.dispatch("location/init",e.location||{});var h="doNotTrackGuides",f=_.get(e,h)||C.get(h),g=(f&&((c=e).excludeNonGuideAnalytics=!0,c.disableCookies=!0,c.visitor={id:li},delete c.account,delete c.parentAccount),C.setLocalConfig(e),_.get(e,"cookieConsentTiers")),m=(g0(g),Jo(),E.HOST=qo,C.get("cookieDomain"));if(m&&(a=m,s=location.host,a?_.isString(a)&&(s=s.replace(/:\d+$/,""),a=a.replace(/^\./,""),d=new RegExp("\\."+J(a)+"$"),u=new RegExp("^"+J(a)+"$"),d.test(s)||u.test(s))&&(mn="."+a):mn=a),eb.discoverKeys(e),eb.getApiKey()){A.commit("metadata/setMetadata",{selfHosted:Pp()}),e.logStackTraces&&(E.logStackTraces=e.logStackTraces),C.get("preferBroadcastChannel")&&my.secure(!0);var v=C.get("analytics.localStorageUnload");ld.read(x),A0.push(()=>ld.teardown()),A0.push((o={localStorageUnload:v},Xd=pd.events=Ys,Zd=pd.trackEvents=Xs,nu=pd.agenticEvents=Zs,Qd=xu(_.extend({cache:Xd,silos:pd.silos,apiKey:ba,beacon:"ptm",allowPost:!0},o)),eu=xu(_.extend({cache:Zd,silos:pd.trackEventSilos,apiKey:ba,beacon:"ptm",allowPost:!0,params:{type:"track"}},o)),tu=xu(_.extend({cache:nu,silos:pd.agenticEventSilos,apiKey:ba,beacon:"agentic","class":"agentic",allowPost:!0},o)),fd(Qd),fd(eu),fd(tu),()=>{wd(),gd(Qd),gd(eu),gd(tu),Qd=eu=tu=undefined})),C0.initialize(E,Qb),A0.push(()=>C0.teardown()),va&&(x.registry.addLocal(di),x.registry.addLocal(ui),x.registry.addLocal(ci),x.registry.addLocal(Ap),E.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,A0.push(mc(R)),[{events:r=[]}]=[e],_.each(r,(e,t)=>{yc[t]&&yc[t](e)}),A0.push((i=A,wy=by(i),U=yy(wy,i),()=>U.close())),A0.push(Av(C0)),A0.push(_b.loadPluginJs()),A0.push(u0()),A0.push(Bf()),A0.push(i0()),A0.push((n=e,x.registry.addLocal(_y,{localStorageOnly:!0}),x.registry.addLocal(Cy,{localStorageOnly:!0}),x.registry.addSession(Iy),_.find([_.partial(sb.launchOnToken,window.location),_.partial(Ty,window),_.partial(sb.localStorageNavigation,n)],e=>e()),n.enableDesignerKeyboardShortcut||!C.get("disableDesignerKeyboardShortcut")?_b.listen():()=>{})),R.appUsage.on(Kb.handler),R.appUsage.on(y0.handler),A0.push(yd(Qs)),A0.push(Ud.initialize()));const w=()=>{md({hidden:!0})},S=(R.appHidden.on(w),A0.push(()=>R.appHidden.off(w)),()=>{md({unload:!0})});R.appUnloaded.on(S),A0.push(()=>R.appUnloaded.off(S)),gi()||mi(),E.updateOptions(e),e.visitorId&&e.visitorId!=vi&&E.identify(e.visitorId),A0.push(L.watch(function(){E.pageLoad()})),va&&R.ready.trigger(),Au(L.get()),T0++,window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&((t=my.targetOrigin())?window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},t):T.warn("Unable to announce frame to designer plugin, targetOrigin is not set. Check if broadcastChannel is enabled and cross origin frames are allowed.")),L0(),f&&x.clearAll()}else T.debug("API key is not set, Pendo will not initialize.")}}catch(y){T.critical("An exception occurred during pendo.initialize.",y);try{D0()}catch(b){T.critical("Error during pendo.initialize rollback teardown",b)}}else try{he(E,"initialize",arguments)}catch(y){T.critical("pendo.initialize failed while enqueueing deferred call.",y)}}function N0(e){return!_.isArray(e)||_.isEmpty(e)}function M0(e){if(!N0(e))return _.find(e,e=>"initialize"===e[0])}function L0(i){var e;return!N0((i=i||E)._q)&&(e=!!M0(i._q),E0(i)||e)?(e=i._q.splice(0,i._q.length),_.reduce(e,(e,t)=>{if(!_.isArray(t))return e;const n=i[t.shift()];return _.isFunction(n)?e.then(()=>n.apply(i,t)):e},m.resolve()).then(L0)):m.resolve()}function P0(){var e;E0()?T.info("already running"):((e=Te())&&O0(e),L0())}function D0(){try{R.appHidden.trigger(),R.appUnloaded.trigger();try{_.each(A0,function(e){e()})}finally{A0.length=0}Au.reset(),my.close(),Zn.clear(R),Zn.clear(yc)}finally{eb.clearInstalledKeys(),T0=0}}function F0(e={channel:Du.DEFAULT}){return Vv(e)}var U0,G0,B0={getActiveGuide:F0,smartNextStep:function(e){var t,n=F0();n&&(t=n.guide.steps[n.stepIndex+1],Ut(function(){var e=lo(t.elementPathRule);0!==e.length&&_.some(e,ds)?Im(n.step):Im(t)},e=e||0))},smartFirstStep:function(){var e=M("._pendo-guide_"),t=(e.css("display:none;"),ku()),n=F0().guide.steps,i=_.filter(_.rest(n),function(e){return!!e.pageId}),i=_.indexOf(n,_.find(i,function(e){return Nu(e.regexUrlRule,t)}));T.info("startingPoint is "+i),-1==i?e.css("display:block;"):(e=n[Math.max(0,i-1)],T.info("found starting step to be "+e.id),Im(e))},advanceOn:function(e,t){var n=F0(),i=M(t=t||n.step.elementPathRule)[0],r=function(){Im(),qf(i,e,r,!0)};F(i,e,r,!0)},renderStepPosition:function(e,t,n){if(t)n||(i=[].concat(t.steps).reverse(),n=_.findWhere(i,{seenState:"active"}));else{var i=Vv();if(!i)return;t=i.guide,n=i.step}return(e=_.template(e=e||"Step <%= currPos %> of <%= total %>"))({currPos:t.getPositionOfStep(n),total:t.getTotalSteps()})}},H0=100,z0=[],j0=[];const q0="log-enabled",W0="active-contexts";var V0=function(){var e=x.read(q0,!0);return null!==e?"true"==e:!(-1!==it.indexOf("prod")||-1!==it.indexOf("rc"))},K0=function(){return Y0()?G0?"logging already enabled":(x.write(q0,"true"),G0=!0,"logging enabled"):"logging unavailable"},$0=function(){return G0?(x.write(q0,"false"),G0=!1,"logging disabled"):"logging already disabled"};var J0=function(e,t){return _.compact([].concat(e,t))},Y0=function(e){return e=e||"log","undefined"!=typeof console&&_.isFunction(console[e])},X0=function(e){return e=J0(e),0<U0.length?0<_.intersection(U0,e).length:!!G0||!!Dd()},Z0=function(e,...t){T.info(e,{contexts:t})};function Q0(e){var t;e.level!==Dt.Debug&&e.level!==Dt.Info||(t=e.attributes?J0(e.attributes.contexts):[],Y0()&&X0(t)&&ow(e.message),tw(z0,e.message,t))}function ew(...e){Y0("error")&&console.error.apply(console,e),tw(j0,e.join(" "))}var tw=function(e,t,n){_.contains(n,"debug")||(e.length==H0&&e.shift(),e.push([t,n]))},nw=function(t){t=J0(t),_.each(_.map(_.filter(z0,function(e){return 0===t.length||0<_.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){ow(e,"[Pendo-History] ")})},iw=function(){return _.union.apply(_,_.map(z0,function(e){return e[1]}))},rw=function(e){U0=J0(e),x.write(W0,U0.join(","))},ow=function(e,t){var n;Y0()&&(t=t||"[Pendo Web SDK] ",e&&e.length?((n=1e3<e.length?e.length-1e3:0)&&(t+="..."),console.log(t+e.substring(n))):console.log(t+e))};function aw({type:n,name:i,props:r,eventProperties:o}){if(i&&_.isString(i))if(n&&_.isString(n)){let e=r,t=(_.isObject(r)||(e={__err__:r}),o);o===undefined||_.isObject(o)||(t={__err__:o});r=L.get();Bd(n,e,r,i,t)}else T.error("Must provide valid type string for event tracking");else T.error("Must provide valid name string for event tracking")}function sw(e,t,n){aw({type:"track",name:e,props:t,eventProperties:n})}function dw(e,t,n){aw({type:e,name:"agentic",props:t,eventProperties:n})}Z0.init=function(){var e;e=x.read(W0,!0),U0=e?e.split(","):[],G0=V0(),T.addEventListener("log",Q0),x.registry.addLocal(q0,{isPlain:!0,localStorageOnly:!0}),x.registry.addLocal(W0,{isPlain:!0,localStorageOnly:!0})},Z0.enableLogging=K0,Z0.disableLogging=$0,Z0.getActiveContexts=function(){return U0},Z0.setActiveContexts=rw,Z0.showLogHistory=nw,Z0.getLoggedContexts=iw;var uw=function uw(r){var o=[];function a(e,t,n,i){r?o.push({type:n,message:t,value:i}):I(i)?console[e](t,i):console[e](t)}if("undefined"==typeof console||!console.group)return"Please run this test in the latest version of Chrome, Firefox, Safari, or Internet Explorer";r||console.group("Pendo Install Validation"),E.apiKey||E.publicAppId||a("error","No Pendo public app ID configured. Make sure to call pendo.initialize() with a valid Pendo public app ID.","publicAppId");var e=v(),e=(fi(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"),yi(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),Ai()),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"),C.get("disableCookies")&&a("warn","Cookies are disabled in Pendo config. Is this expected?","disableCookies"),Fp());if(_.each(["visitor","account","parentAccount"],function(n){var i=t&&t[n],e=_.chain(i).keys().value();0<e.length?(r||console.group(n+" metadata (does this look right?):"),0<(e=_.chain(e).map(function(e){return e.toLowerCase()}).countBy().pick(function(e){return 1<e}).keys().value()).length&&_.each(e,function(e){a("warn","Keys will be lowercased and any duplicates overwritten. Please choose unique key names for:",n+"MetadataConflict",e)}),_.each(_.keys(i),function(e){var t=i[e];_.isObject(t)&&!_.isArray(t)?a("warn",e+" is an object and will be ignored.",n+"Metadata",t):_.isArray(t)&&_.any(t,_.isObject)?a("warn",e+" contains object values. The objects will be ignored.",n+"Metadata",t):a("log",e+":",n+"Metadata",t)}),r||console.groupEnd()):"parentAccount"!==n&&a("warn","No "+n+" metadata found. Learn more about metadata here: http://help.pendo.io/resources/support-library/installation/metadata.html",n+"MetaData")}),r)return o;console.groupEnd()},cw=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:Dn.prototype,displayName:"Promise | Prototype"},{nativeType:window,displayName:"Window ",propsToCheck:["alert","asap","atob","btoa","cancelAnimationFrame","clearImmediate","clearInterval","clearTimeout","close","confirm","getComputedStyle","getSelection","open","postMessage","prompt","requestAnimationFrame","scroll","scrollBy","scrollTo","setImmediate","setInterval","setTimeout","stop","XMLHttpRequest","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent"]}],r=!1,i=(_.each(e,function(e){var n=e.nativeType,i=[],t=e.propsToCheck||Object.getOwnPropertyNames(n);_.each(t,function(e){try{e&&n[e]&&"function"==typeof n[e]&&-1===n[e].toString().indexOf("[native code]")&&i.push(e)}catch(t){}}),i.length&&(e.nonNativeImplementations=i,r=!0)}),{hasNonNativeMethods:r,implementations:[]});return n||console.group("Native javascript method check:"),r?(n||console.warn("Pendo has detected that your application may be changing native javascript functionality. We suggest consulting an engineer or your CSM to better understand if these changes will negatively impact Pendo's ability to function properly"),_.each(e,function(e){var t;e.nonNativeImplementations&&(t=e.displayName.trim(),n?i.implementations.push({nativeType:t,nonNativeImplementations:e.nonNativeImplementations}):console.warn(t+" | Contains the following non-native implementations:",e.nonNativeImplementations.sort().join(", ")))}),n?i:void console.groupEnd()):n?i:(console.log("Environment uses native javascript implementations"),console.groupEnd())},lw=function(e){var t=[];if(_.isNumber(window.frames.length)&&_.isFinite(window.frames.length)&&M("iframe").length+M("frame").length===window.frames.length||t.push("Pendo has detected that window.frames.length has been modified"),window.Event&&window.Event.prototype||t.push("Pendo has detected that window.Event has been modified"),t.length){if(e)return t;console.group("Global variables:"),_.each(t,function(e){console.warn(e)}),console.groupEnd()}},pw=function(e){var t,n=window.location.href,i=[];try{(t=Ao())!==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=L.externalizeURL();r!==t&&i.push({type:"sanitizedUrl",msg:"URL has been sanitized. This will affect sending data and guides requests.",value:r})}catch(o){i.push({method:"error",msg:"Error getting Externalized URL",value:o})}if(e)return i;console.group("URL Validation"),console.log("Browser URL:",n),_.each(i,function(e){e.method?console[e.method](e.msg+"\n"+e.value):console.warn(e.msg+"\n"+e.value)}),console.groupEnd()};const hw=e=>{if(0<j0.length){var t=[].concat(j0);if(e)return t;console.group("Agent Error History"),_.each(t,(e,t)=>{console.log("Error History ",t,e)}),console.groupEnd()}},fw=e=>{var t=o0(e);if(e)return t;console.group("Active Plugins"),_.each(t,e=>console.log(e)),console.groupEnd()};var gw=function(e){var t={install:uw(e),plugins:fw(e),globals:lw(e),url:pw(e),errors:hw(e)};if(e)return t.methods=cw(e),t;C.validate(console)};const mw=["intercom"];function vw(e,t){return window.__pendoCheckIntercomIdMatch(e,t)}function yw(e){if(!_.contains(mw,e))return"undefined"!=typeof console&&console.log&&console.log('Unsupported integration "'+e+'". Supported integrations: '+mw.join(", ")+"."),m.resolve(undefined);const t=v(),n=fi(t);if("function"==typeof window.__pendoCheckIntercomIdMatch)return m.resolve(vw(t,n));const i=m.defer();return Rs(Zo("check-intercom-id-match.min.js"),function(e){e?("undefined"!=typeof console&&console.error&&console.error("Failed to load the Intercom ID check. Please try again."),i.resolve(undefined)):i.resolve(vw(t,n))},!0),i.promise}var bw={BuildingBlockGuides:Ug,BuildingBlockResourceCenter:D,BuildingBlockTemplates:ol,BuildingBlockTooltips:Fl,BuildingBlockSvgs:cl};function ww(e,t){this.state={duration:e,isStopped:!0,handle:null,cb:t,hasRun:!1,errors:[],options:{}},this.shouldJobRun=function(){return!(!this.state.hasRun&&this.state.options.skipFirstRun||this.state.isStopped)},this.doJob=function(e){if(e)try{this.state.cb(this)}catch(t){this.state.errors.push(t)}},this.afterJobRun=function(){this.state.hasRun=!0,this.state.handle=Ut(this.run,this.state.duration)},this.run=_.compose(_.bind(this.afterJobRun,this),_.bind(this.doJob,this),_.bind(this.shouldJobRun,this))}ww.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},ww.prototype.stop=function(){Gt(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var Sw=wo.urlFor,Ew={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace","Clear","AddTo"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};const Iw=["location","attribute","both","network","all"],_w="location";function Cw(e,t,n,i){var r;if(_.isObject(e)&&(t=e.action,n=e.data,i=(e=e.attr).target),!Ew[e])throw r=_.keys(Ew).join(", "),new Error('Invalid URL attribute type: "'+e+'". Valid attributes are: '+r+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!_.contains(Ew[e],t))throw r=Ew[e].join(", "),new Error('Invalid transform action: "'+t+'" for attribute "'+e+'". Valid actions for "'+e+'" are: '+r+'. Example: {attr: "'+e+'", action: "'+Ew[e][0]+'", data: ...}');this.attr=e,this.action=t,this.data=n,this.target=(r=i,_.isArray(r)?0<(e=_.filter(r,function(e){return 0<=Iw.indexOf(e)})).length?e:[_w]:0<=Iw.indexOf(r)?r:_w)}function Tw(e){return e instanceof Li||e instanceof HTMLAnchorElement}Cw.prototype.applyTo=function(e){return{AllowOnlyKeys(e,t,n){_.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Li(jo(t,null,n,!1))},ExcludeKeys(e,t,n){_.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Li(jo(t,null,n,!0))},AddTo(e,t,n){var i;return _.isFunction(n)&&(n=n(e[t],e)),"search"!==t&&"pathname"!==t?e:"pathname"===t?(t=e.pathname,(i=n).startsWith("/")||(i="/"+i),t.endsWith("/")?e.pathname=t+i.substring(1):e.pathname=t+i,e):(t=e.href,new Li(Sw(t,n)))},Clear(e,t){return"pathname"===t?e.pathname="/":e[t]="",e},Replace(e,t,n){return _.isFunction(n)&&(n=n(e[t],e)),"href"===t?new Li(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)},Cw.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},Cw.fromJSON=function(e){if(e instanceof Cw)return e;if(!_.isObject(e))throw new Error("UrlTransform.fromJSON expects an object. Received: "+typeof e+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!e.attr)throw t=_.keys(Ew).join(", "),new Error('UrlTransform is missing required "attr" property. Valid attributes are: '+t+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!e.action)throw t=Ew[e.attr]?Ew[e.attr].join(", "):"AllowOnlyKeys, ExcludeKeys, AddTo, Replace, Clear",new Error('UrlTransform is missing required "action" property. Valid actions depend on the attribute. For "'+e.attr+'" attribute, valid actions are: '+t+'. Example: {attr: "'+e.attr+'", action: "AddTo", data: {key: "value"}}');if(!Ew[e.attr])throw t=_.keys(Ew).join(", "),new Error('Invalid attribute "'+e.attr+'". Valid attributes are: '+t+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!_.contains(Ew[e.attr],e.action))throw t=Ew[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: "'+Ew[e.attr][0]+'", data: ...}');var t;if(_.contains(["AllowOnlyKeys","ExcludeKeys","AddTo","Replace"],e.action)&&e.data===undefined)throw t="Replace"===e.action?'"newValue"':"AddTo"===e.action?'{key1: "value1"}':'["key1", "key2"]',new Error('Action "'+e.action+'" requires a "data" property. Example: {attr: "'+e.attr+'", action: "'+e.action+'", data: '+t+"}");if(!("AllowOnlyKeys"!==e.action&&"ExcludeKeys"!==e.action||_.isArray(e.data)||_.isFunction(e.data)))throw new Error('Action "'+e.action+'" requires "data" to be an array of strings or a function returning an array of strings. Example: {attr: "'+e.attr+'", action: "'+e.action+'", data: ["key1", "key2"]}');if("AddTo"===e.action)if("pathname"===e.attr){if(!_.isString(e.data)&&!_.isObject(e.data)&&!_.isFunction(e.data))throw new Error('Action "AddTo" for pathname requires "data" to be a string, object, or function. Example: {attr: "pathname", action: "AddTo", data: "additional/segment"}')}else if(!_.isObject(e.data)&&!_.isFunction(e.data))throw new Error('Action "AddTo" requires "data" to be an object or function. Example: {attr: "search", action: "AddTo", data: {key1: "value1", key2: "value2"}}');try{return new Cw(e.attr,e.action,e.data,e.target)}catch(n){if(-1!==n.message.indexOf("Invalid attribute")||-1!==n.message.indexOf("Invalid action")||-1!==n.message.indexOf("requires")||-1!==n.message.indexOf("expects"))throw n;throw new Error("Failed to create UrlTransform: "+n.message+". Transform object: "+JSON.stringify(e))}};xw=function(t,n,i,r){return[new Cw("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new Cw("href","ForceSecure")]},Ir={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:Rw=function(){var e=Ro(),t=L.isElectron()?xw(L.electronAppName(),L.electronResourcesPath(),L.electronUserDirectory(),L.electronUserHomeDirectory()):[];return Nw([].concat(t),e)}},Aw=new ww(500,function(e){!E0()||cf(document)||Au()}),kw=function(e){if("string"==typeof e)return new Li(e);if(Tw(e))return e;throw new Error("Invalid type from custom URL source. Must be either an URL or a String of a valid url.")},Ow=function(e){return e||window.location},Nw=function(e,t){return _.reduce(e,function(e,t){return t.applyTo(e)},t)};var xw,Rw,Aw,kw,Ow,Nw,Mw,Se={state:Ir,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(n,e){_.each(e,function(e){var e=Cw.fromJSON(e),t=_.isArray(e.target)?e.target:[e.target];(_.contains(t,"location")||_.contains(t,"both")||_.contains(t,"all"))&&n.commit("addTransform",e),(_.contains(t,"attribute")||_.contains(t,"both")||_.contains(t,"all"))&&A.dispatch("nodeAttr/addAttrTransform",e),(_.contains(t,"network")||_.contains(t,"all"))&&A.dispatch("networkUrl/addNetworkTransform",e)})},addInternalTransforms(t,e){_.each(e,function(e){t.commit("addInternalTransform",Cw.fromJSON(e))})},removeInternalTransforms(t,e){_.each(e,function(e){t.commit("removeInternalTransform",Cw.fromJSON(e))})},startPolling(e){Aw.start()},stopPolling(e){e.state.currentSrcFn===Rw&&Aw.stop()}},mutations:{addTransform(e,t){e.transforms.push(t)},addInternalTransform(e,t){e.internalTransforms.push(t)},removeInternalTransform(e,t){t=_.indexOf(e.internalTransforms,t);0<=t&&e.internalTransforms.splice(t,1)},clearTransforms(e){e.transforms=[],A.commit("nodeAttr/clearURLTransforms"),A.commit("networkUrl/clearURLTransforms")},clearInternalTransforms(e){e.internalTransforms=[]},changeUrlSource(e,t){if(t){if("string"==typeof t)var n=new Li(t),n=_.partial(_.identity,n);else if(Tw(t))n=_.partial(_.identity,t);else{if("function"!=typeof t)throw new Error("URL Source must be either a Function that returns a URL or String that is a valid URL. Or, it may be a static URL or String.");n=t}e.currentSrcFn=n,Aw.start(!E0())}else e.currentSrcFn=Rw,Aw.stop()}},getters:{url:Mw=function(e){try{var t=function(e){return n=e},n=_.reduce([e.currentSrcFn,kw,t,_.partial(Nw,e.transforms),kw,t,_.partial(Nw,e.internalTransforms),kw],function(e,t){return t(e)},null)}catch(i){T.critical(i),n=Ow(n)}return n},href(e){return Mw(e).href}}};function Lw(e){var t;if("function"==typeof Lw[e])return t=_.toArray(arguments).slice(1),Lw[e].apply(Lw,t)}_.extend(Lw,{getHref(){return L.get()},clearTransforms(){A.commit("location/clearTransforms"),Au()},addTransforms(e){A.dispatch("location/addTransforms",e),Au()},setUrl(e){A.commit("location/changeUrlSource",e)},useBrowserUrl(){A.commit("location/changeUrlSource"),Au()}});function Pw(){return C.get("guideSeenTimeoutLength")||1e4}Dw=[];var Dw,Fw={name:"StepTimeoutMonitor",initialize(){this._beforeGuideShow=_.bind(Fw.beforeGuideShow,Fw),this._stop=_.bind(Fw.stop,Fw),R.beforeGuideShow.on(this._beforeGuideShow),R.guideSeen.on(this._stop),R.guideNotSeen.on(this._stop)},teardown(){Fw.stop(),R.beforeGuideShow.off(this._beforeGuideShow),R.guideSeen.off(this._stop),R.guideNotSeen.off(this._stop)},beforeGuideShow(e){var t=e.data[0],e=e.data[1],n=t.guide;C.get("enableGuideTimeout")&&(e=-1<_.indexOf(["dom","launcher","badge","api"],e),"active"===t.seenState||t.hasBeenControlled()||t.isTimedOut()||(n=n&&n.steps)&&(0!==_.indexOf(n,t)||e)&&Fw.start(t))},start(e){var d,t,n=Dw[0];n&&n===e.id||(n&&n!==e.id&&(n=Dw[1],_.isFunction(n))&&n(),e.shouldStartTimer()&&(d=Pw(),n=_.partial(function(e,t){var n,i,r,o,a,s=b(t);s&&(n=s.findStepById(e))&&!s.isShown()&&(a=n.canShowOnPage(ku())?Rm(n)?"other":"element":"page",i=t,r=e,o=v(),a=a,s=s.language,i=jm({type:"guideTimeout",guideId:i,stepId:r,visitorId:o,seen_reason:a,language:s,guideSeenTimeoutLength:d}),Km(i),R.guideTimeout.trigger(i),T.info("Guide "+t+" timed out showing Step "+e),n.timeout()),Fw.stop()},e.id,e.guide.id),t=Ut(n,d),Dw=[e.id,n,t]))},stop(){var e=Dw[2];e&&Gt(e),Dw=[]},getGuideSeenTimeoutLength:Pw};function Uw(){console.warn("This functionality is not supported by your subscription.")}function a(e){return va?e:Uw}var Gw="is going away",Bw="is gone",Hw=_.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return T.info(e),e});function zw(e,t,n){return function(){return Hw("pendo."+t,n),(e||_.noop).apply(null,arguments)}}function jw(e){return e&&1===e.length?e[0]:_.any(e,Lt)?m.all(e).then(function(e){return _.any(e)}):void 0}function qw(){this.elements=[],this.attributes=this.attributes&&Pt(this.attributes)||{},this.attributes.device&&this.attributes.device.type?"all"==this.attributes.device.type?this.attributes.device={desktop:!0,mobile:!0}:(e=this.attributes.device.type,this.attributes.device={mobile:!1,desktop:!1},this.attributes.device[e]=!0):this.attributes.device=this.attributes.device||{},_.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),Wc(e,this)},this),this.isActivatedByEvent=function(e){return!!(this.hasLaunchMethod("dom")&&this.attributes&&this.attributes.activation&&_.contains(this.attributes.activation.event,e)&&this.canEventActivatedGuideBeShown())},this.isContinuation=function(e){return!1},this.isGuideWidget=function(){return this.attributes&&"launcher"===this.attributes.type},this.isOnboarding=function(){return this.attributes&&!!this.attributes.isOnboarding},this.isWhatsNew=function(){var e=_.first(this.steps);return e&&"whatsnew"===e.type},this.isAnnouncement=function(){return _.get(this,"attributes.isAnnouncement")},this.isHelpGuide=function(){return!this.isOnboarding()&&!this.isWhatsNew()&&!this.isGuideWidget()},this.nextStep=function(e){return null},this.hasLaunchMethod=function(e){return this.launchMethod&&0<=this.launchMethod.indexOf(e)},this.shouldAutoDisplay=function(){return!this.outsideTimebox()&&this.hasLaunchMethod("auto")&&_.any(this.steps,function(e){return e.shouldAutoDisplay()})},this.autoDisplay=function(){if(this.shouldAutoDisplay())return jw(_.map(this.steps,function(e){return e.autoDisplay()}))},this.isRendered=function(){return _.any(this.steps,function(e){return e.isRendered()})},this.isShown=function(){return _.any(this.steps,function(e){return e.isShown()})},this.canShowOnDevice=function(){if(!Zu()){var e=Qu(),t=this.attributes&&this.attributes.device||{};if(!e&&!1===t.desktop)return!1;if(e&&!0!==t.mobile)return!1}return!0},this.canShow=function(){return this.canShowOnDevice()&&_.any(this.steps,function(e){return e.canShow()})},this.launch=function(e){var t;return this.hasGuideBeenControlled()||(t=this.show(e)),this.isShown()?_.each(this.steps,function(e){e.seenState="active"}):!this.isShown()&&this.isControlGroup()&&_.each(this.steps,function(e){e.seenState="notSeen"}),t},this.show=function(t){return jw(_.map(this.steps,function(e){return e.show(t)}))},this.checkForHiddenGroupSteps=function(){},this.hide=function(t){_.each(this.steps,function(e){e.hide(t)})},this.hasBeenSeen=function(){return _.all(this.steps,function(e){return e.hasBeenSeen()})},this.canBadgeBeShown=function(){var e=this.attributes.badge;return!(e&&e.isOnlyShowOnce&&this.steps[0].hasBeenSeen())},this.placeBadge=function(){var e;this.canShowOnDevice()&&this.hasLaunchMethod("badge")&&this.canBadgeBeShown()&&!this.outsideTimebox()?(e=_.get(this,"attributes.resourceCenter"),this.isControlGroup()&&!e?this.hasGuideBeenControlled()||this.steps[0].onControlGuide("control"):(e=_.first(this.steps))&&_.isFunction(e.canShowOnPage)&&e.canShowOnPage(ku())&&tg(this)):rg(this)},this.findStepById=function(t){return _.find(this.steps,function(e){return e.id===t})},this.isPoweredByEnabled=function(){return!!_.find(this.steps,function(e){return e.isPoweredByEnabled()})},this.searchFor=function(t){var e,n,i=null;return xt(this.name,t,!0)?i="name":(e=!(n=[]),(e=0<(n=this.attributes&&this.attributes.launcher&&this.attributes.launcher.keywords?this.attributes.launcher.keywords:n).length?_.find(n,function(e){return xt(e.text,t,!0)}):e)?i="tag":(n=_.map(this.steps,function(e){return e.searchFor(t)}),0<_.compact(n).length&&(i="content"))),!!i&&{guide:this,field:i}},this.shouldBeAddedToResourceCenter=function(){var e,t=this;return!(!t.steps||!t.steps.length||t.control||!t.eligibleInFrame&&(!t.steps[0].content&&!_.isFunction(t.steps[0].fetchContent)||(e=t.steps[0],!t.hasLaunchMethod("launcher")&&!t.isWhatsNew())||!e.canShowOnPage(ku())||!t.canShowOnDevice()||!Rm(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(ku())||!this.canShowOnDevice()||!Rm(e)||this.outsideTimebox())};var e,n="PENDO_HELPER_STEP";return this.getPositionOfStep=function(e){var t=_.reject(this.steps,function(e){return xt(e.content,n)});return _.indexOf(t,e)+1},this.getTotalSteps=function(){return _.reject(this.steps,function(e){return xt(e.content,n)}).length},this.getSeenSteps=function(){return _.size(_.filter(this.steps,function(e){return e.hasBeenSeen()}))},this.isComplete=function(){var t=["advanced","dismissed"];return _.all(this.steps,function(e){return _.contains(t,e.seenState)})},this.isInProgress=function(){var t=["active","advanced","dismissed"];return!this.isComplete()&&_.any(this.steps,function(e){return _.contains(t,e.seenState)})},this.isNotStarted=function(){return!this.isInProgress()&&!this.isComplete()},this.fetchContent=function(){return m.all(_.map(this.steps,function(e){if(_.isFunction(e.fetchContent))return e.fetchContent()}))},this.canEventActivatedGuideBeShown=function(){return!(this.attributes.dom&&this.attributes.dom.isOnlyShowOnce&&this.steps[0].hasBeenSeen())},this.isGuideSnoozed=function(){return _.any(this.steps,function(e){return e.isSnoozed()})},this.hasGuideBeenControlled=function(){return _.any(this.steps,function(e){return e.hasBeenControlled()})},this.isControlGroup=function(){return this.control},this.shouldShowSnoozedGuide=function(){var t=!1;return!this.outsideTimebox()&&_.any(this.steps,function(e){return!(t="dismissed"===e.seenState?!0:t)&&"snoozed"===e.seenState&&e.snoozeEndTime&&(new Date).getTime()>e.snoozeEndTime})},this.shouldRepeatGuide=function(){var t;return!(!this.redisplay||this.outsideTimebox()||this.isGuideSnoozed()||this.hasReachedMaxDismissals()||(t=0,_.forEach(this.steps,function(e){t=Math.max(t,e.lastSeenAt||0)}),!t))&&S()-t>=this.redisplay.interval},this.isExpired=function(){return!!this.expiresAfter&&S()>this.expiresAfter},this.isBeforeStartTime=()=>!!this.showsAfter&&S()<this.showsAfter,this.outsideTimebox=()=>this.isExpired()||this.isBeforeStartTime(),this.calculateDismissCountFromSteps=function(){var t=0;return _.forEach(this.steps,function(e){e.dismissCount&&(t+=e.dismissCount)}),t},this.hasReachedMaxDismissals=function(){return this.redisplay&&0!==this.redisplay.maxDismissals&&this.calculateDismissCountFromSteps()>=this.redisplay.maxDismissals},this}function Ww(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){_.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var Vw=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function Kw(){var r,s=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(_.each(this.steps,function(e){e.after("render",function(){_.each(e.elements,function(e){M(e).addClass("_pendo-guide-walkthrough_")})})}),r=null,this.sections=_.reduce(this.steps,function(e,t){var n,i;return i=t,!(n=r)||(n=_.last(n)).attributes.isRequired!=i.attributes.isRequired&&n.attributes.isRequired?(e.push(r),r=[t]):r.push(t),e},[]),this.sections=_.compact(this.sections.concat([r])),this.findSectionForStep=function(t){return _.find(this.sections,function(e){return _.contains(e,t)})},this.getSubSection=function(e,t){t=_.indexOf(e,t);return e.slice(t+1)},this.isContinuation=function(e){var t=this.isTopLevel||this.isModule,n=this.hasResourceCenterContent;return(!t||n)&&!!this.nextStep(e)},this.nextStep=function(t){var e=null;if(this.isGuideSnoozed())return null;if(null==t){var n=this;if(!(n=n.steps)||!n.length)return null;var{currentStep:i,currentIndex:r}=_.reduce(n,(e,t,n)=>{var i=e.currentStep["lastSeenAt"];return null!=i&&t.lastSeenAt>i?{currentStep:t,currentIndex:n}:e},{currentStep:n[0],currentIndex:0});if("dismissed"===i.seenState)return null;if("function"==typeof i.isSnoozed&&i.isSnoozed())return null;if("active"===i.seenState||"snoozed"===i.seenState)return i;if("advanced"!==i.seenState)return null;{const a=i["destinationStepId"];return a?_.find(n,function(e){return e.id===a}):n[r+1]||null}}for(var o=0;o<this.steps.length;o++)if(this.steps[o].id===t.guideStepId){if("dismissed"===t.state)break;if("active"===t.state||"snoozed"===t.state){e=this.steps[o];break}if("advanced"===t.state&&t.destinationStepId){e=_.find(this.steps,function(e){return e.id===t.destinationStepId});break}if(o+1<this.steps.length){e=this.steps[o+1];break}}return e?(i=(new Date).getTime(),(r=t.time)&&432e5<i-r&&!Vw(this)?(s||(T.info("Multi-step continuation has expired",{contexts:["guides","info"]}),s=!0),null):e):null},this.shouldAutoDisplay=function(){return this.hasLaunchMethod("auto")&&(this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||_.all(this.steps,function(e){return e.shouldAutoDisplay()}))},this.autoDisplay=function(){var e,t,n;if(this.shouldAutoDisplay())return e=this.shouldRepeatGuide(),t=_.first(this.steps),n=this.nextStep(Jh())||t,this.shouldShowSnoozedGuide()||e?n.show(e?"repeatGuide":"auto"):t.autoDisplay()},this.launch=function(e){return _.first(this.steps).show(e)},this.show=function(e){var t=Jh(),n=_.first(this.steps),t=(this.channel?this.nextStep():this.nextStep(t))||n;return(t=this.forceShowFirstStep?n:t).show("continue"===e&&t===n&&"auto"===n.seenReason?"auto":e)},this.isComplete=function(){var e=_.last(this.steps);return!!e&&_.contains(["advanced","dismissed"],e.seenState)},this.activeStep=function(){var e=[].concat(this.steps).reverse();return _.findWhere(e,{seenState:"active"})}),this}function $w(){var a=this;function t(r){var o=[];return function(e){try{return e.apply(a,_.toArray(arguments).slice(1))}catch(i){var t,n="ERROR in guide "+r+' (ID="'+a.id+'")';throw o.push(S()),5<=o.length&&(t=0<(t=_.last(o)-_.first(o))?(o.length-1)/(t/6e4):Infinity,$w.MAX_ERRORS_PER_MINUTE<=t&&(n="Exceeded error rate limit, dropping guide.\n"+n,Hu.addGuide(a),R.trigger("renderFail",a)),o.shift()),T.critical(n,{error:i}),i}}}return _.each(["canShow","placeBadge","show"],function(e){a[e]=_.wrap(a[e],t(e))}),a}function Jw(){return _.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=_.wrap(this.shouldBeAddedToLauncher,function(e){return A.getters["frames/hasFrames"]()?!(!A.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!A.getters["frames/isGuideInDifferentFrame"]()(this)&&A.getters["frames/shouldBeAddedToLauncher"]()(this):e.apply(this,arguments)}),this.shouldBeAddedToResourceCenter=_.wrap(this.shouldBeAddedToResourceCenter,function(e){return A.getters["frames/hasFrames"]()?!(!A.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!A.getters["frames/isGuideInDifferentFrame"]()(this)&&A.getters["frames/shouldBeAddedToResourceCenter"]()(this):e.apply(this,arguments)})),this}function Yw(e){var t=this;return"whatsnew"===t.type||_.isFunction(e.isAnnouncement)&&e.isAnnouncement()||(t.isShown=_.wrap(t.isShown,function(e){return e.apply(this,arguments)||A.getters["frames/isShownInAnotherFrame"]()(t)})),t}function Xw(o){var a,t,i,s,r,n,d,u=this;return u.pollIds&&u.pollIds.length&&(a="_pendo-poll-selected_",t=_.indexBy(o.polls,"id"),i=_.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=S();Bm(e,t,v(),u.seenReason,o.language),hm(e,t,"advanced",n)},d=function(){var e=M("._pendo-poll_"),t=M("._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=M("._pendo-poll_")[0],e=M("._pendo-poll-submit_",n)[0];e?u.attachEvent(e,"click",function(e){var t=M("._pendo-poll-question_",n),t=_.map(t,function(e,t){e=M("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(_.compact(t)),d()}):u.attachEvent(n,"click",function(e){var t,e=M(yo(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=M("._pendo-poll_ ._pendo-poll-npsrating_")[0],r=M("._pendo-poll_ ._pendo-poll-submit_"),o="_pendo-poll-npsrating-selected_";i&&(r.css({display:"none"}),u.attachEvent(i,"click",function(e){var t=M(":radio:checked",i)[0],n=M("._pendo-poll_");M("label",i).removeClass(a),n.removeClass(o),t&&(M('label[for="'+t.id+'"]').addClass(a),n.addClass(o),r.css({display:""})),_.isFunction(u.resize)&&u.resize()}))}),u.after("show",function(){s=(new Date).getTime()}),u.response=function(e,r){e&&e.length&&(Tv(),_.each(e,function(e,t){var n=function(t,e){if(e&&e.polls&&e.polls.length)return _.find(e.polls,function(e){return e.id===t})}(e.pollId,o),i=jm("pollResponse",u.guideId,u.id,v(),undefined,o.language);_.extend(i.props,{poll_id:e.pollId,poll_response:e.value,duration:(new Date).getTime()-(s||u.lastSeenAt)},r),n&&n.attributes&&n.attributes.type&&_.extend(i.props,{poll_type:n.attributes.type}),bv.push(i)}),bv.flush())}),u}$w.MAX_ERRORS_PER_MINUTE=30;var Zw={show:function(t,n){if(Zu()&&_.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return eS(t,n);if(!A.getters["frames/hasFrames"]()||A.getters["frames/isGuideInThisFrame"]()(e)){e=function(e,t){if(e.getGuide().isModule){e=D.getResourceCenter();if(e)return eS(e.steps[0],t)}}(t,n);if(Lt(e))return e.then(function(){return eS(t,n)}).then(function(e){return!!e||tS(t,n)});e=eS(t,n);if(Lt(e))return e.then(function(e){return!!e||tS(t,n)});if(e)return!0}return tS(t,n)},showLocal:eS};function Qw(e,t,n){var i=e.getGuide().displayDelayMs;return 0<i&&("auto"===t||"repeatGuide"===t)?(e.lock(),e._autoDisplayDelayTimer=Ut(function(){e._autoDisplayDelayTimer=null,e.unlock(),n()},i)):n(),e.isShown()}function eS(e,t){return Vc.hasContent(e)&&Hc.valid(e)?Qw(e,t,function(){e._show(t)}):!(Vc.hasContent(e)&&Hc.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(ku()))&&(e.lock(),(_.isFunction(e.fetchContent)?e.fetchContent():Vc.fetchContent(e)).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&Hc.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(ev()?(T.info("guides are loading.",{contexts:["guides","loading"]}),!1):(e.unlock(),Qw(e,t,function(){e._show(t)})))}))}function tS(t,e){var n=t.getGuide();return!(!A.getters["frames/hasFrames"]()||!A.getters["frames/isGuideInDifferentFrame"]()(n))&&(t.lock(),A.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 nS(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 Vb),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=_.indexOf(t,this),i=Fp();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:Et(i),template:r};return this.template||(this.template=_.template(this.content||"")),Ec(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(){Gt(this._autoDisplayDelayTimer),this._autoDisplayDelayTimer=null,e=!1},this.isTimedOut=function(){return t},this.timeout=function(){t=!0},this.isRendered=function(){return this.elements&&0<this.elements.length},this.isShown=function(){return this.isRendered()||this.isLocked()},this.canShow=function(){return!_.get(this,"guide.attributes.isAnnouncement")&&!!d.canShowOnDevice()&&!this.isShown()&&!_.get(this,"stepIneligibleForApp")&&this.canShowOnPage(ku())&&Rm(this)},this.canShowOnPage=function(e){e=Nu(this.regexUrlRule,e);return Dd()&&R.stepEligibility.trigger({stepId:this.id,guideId:this.guideId,eligible:e,reason:"page_match"}),e},this.shouldAutoDisplay=function(){return this.shouldRepeat()||!this.hasBeenControlled()&&!this.isSnoozed()&&!_.contains(["dismissed","advanced"],this.seenState)},this.autoDisplay=function(){var e;if(this.shouldAutoDisplay())return e=this.shouldRepeat()?"repeatGuide":"auto",this.show(e)},this._preRenderHealthCheck=function(){var e,t;return!(!(E.designer||Zu()||Ny())&&(e=ku(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!Nu(this.regexUrlRule,e)?(Hu.addGuide(d),t.error=new Error('attempted display on page "'+e+'"'),T.critical("pendo.io page rule exception",t),1):A.getters["healthCheck/isMissingPageRule"]()(this)?(Hu.addGuide(d),t.error=new Error('missing regexUrlRule"'),T.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(Hu.addGuide(d),t.error=new Error("missing regexUrlRule for page "+this.pageId+'"'),T.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=_.find(Fu(),function(e){return e.id===d.moduleIdToReplaceHomeViewWith}),n=_.get(t,"attributes.resourceCenter.integrationProvider"),D.renderNativeIntegration(n,t)):d.continueToNativeModule?D.handleNativeIntegrationContinuation(d):(_.get(d,"attributes.resourceCenter")&&mg(D.getResourceCenter(),vg),d.isModule?Ug.renderResourceCenterModule(d,!1):(n=Ug.renderGuideFromJSON(e.domJson,e),_.get(d,"attributes.resourceCenter")&&(t=d.activeModule?d.activeModule.activeStep().domJson.props.id:e.containerId,t=e.guideElement.find("#"+t),D.adjustResourceCenterWidth(t)),n));var t=e.attributes.width,n=e.attributes.height,i=E.TOOLTIP_ARROW_SIZE,r="_pendo-group-id-"+d.id+"_",r=M(document.createElement("div")).attr("id",Nm(e)).addClass(um+" "+r),o=M(document.createElement("div")).addClass("_pendo-guide-content_").html(e.getContent()),a=M(document.createElement("div")).addClass("_pendo-guide-container_"),s=M(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&&_.isFunction(d.isOnboarding)&&d.isOnboarding()&&r.addClass("_pendo-onboarding_"),e.overlayDiv=s,e.guideElement=r}},this.teardown=function(){T.info("guide step teardown",{contexts:["guide","render"]}),_.each(this.handlers,function(e){qf(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,_.has(this.attributes,"imgCount")&&(this.attributes.imgCount=0),this.hiddenElements&&(_.each(this.hiddenElements,e=>{try{e&&"function"==typeof e.removeAttribute&&(e.removeAttribute("aria-hidden"),e.removeAttribute("inert"))}catch(t){T.error("unable to remove attribute from element",{error:t})}}),this.hiddenElements.length=0,this.hiddenElements=null),xp(this.id)},this.show=function(e){var t;if(!_.contains(["auto","continue"],e)||!A.getters["healthCheck/isRedisplay"]()(this))return(t=Zw.show(this,e))&&t["catch"]&&t["catch"](_.noop),t;A.dispatch("healthCheck/fixSeenStateAndLogError",{step:this,reason:e})},this.redraw=function(){var e,t,n,i,r=this;r.guideElement&&!E.designer&&(e=_.get(d,"attributes.resourceCenter"),t=d.activeModule?d.activeModule.activeStep().domJson.props.id:r.containerId,n=r.guideElement.find("#"+t),i=d.activeModule&&"AnnouncementsModule"===_.get(d.activeModule,"attributes.resourceCenter.moduleId"),R.beforeUpdate.trigger(r),i||(Ug.recalculateGuideWidth(t,r.guideElement),Ug.adjustGuideContentWidth(t,r.guideElement)),e?(D.adjustResourceCenterWidth(n),i&&d.activeModule.guidesInModule?_.forEach(d.activeModule.guidesInModule,function(e){var t;!_.isUndefined(e.steps[0].attributes.imgCount)&&0!==_.get(e.steps[0],"attributes.imgCount")||(t=e.steps[0].id,t=M(n).find("#pendo-g-"+t)[0]?t:e.id,Ug.adjustGuideContentWidth("pendo-g-"+t,r.guideElement),Ug.flexAllThings("pendo-g-"+t,r))}):Ug.flexAllThings("pendo-resource-center-container")):Ug.flexAllThings(t,r),Ug.recalculateGuideHeight(t,r.guideElement),R.updated.trigger(r))},this._show=function(e){R.beforeGuideShow.trigger(this,e),this.canShow()&&(!Zu()&&d.control?this.hasBeenControlled()||this.onControlGuide("control"):R.beforeMount.trigger(this).cancel||(this.render(),this.isShown()&&this.onShown(e)))},this.shouldStartTimer=function(){return d.canShowOnDevice()&&!d.attributes.isAnnouncement&&!Tm(this)},this.getStepPollTypes=function(n,e){var i;if(e.pollIds&&e.pollIds.length)return i=[],_.forEach(e.pollIds,function(t){var e=_.find(n.polls,function(e){return e.id===t});e&&e.attributes&&e.attributes.type&&i.push(e.attributes.type)}),i},this.onControlGuide=function(e){var t;Zu()||(this.seenReason=e,this.lastSeenAt=S(),t=this.getStepPollTypes(d,this),this.hasBeenControlled())||(Fm(this.guideId,this.id,v(),e,d.language,t),_.each(d.steps,function(e){e.seenState="notSeen"}))},this.onShown=function(r){var e,t,n=this;n.overrideElement&&(M.addClass(n.overrideElement,"triggered"),n.overrideElement.checkAriaExpanded)&&n.overrideElement.checkAriaExpanded(),Zu()||(n.seenReason=r,n.seenState="active",e={color_mode:n.isDarkMode?"dark":"default",last_updated_at:n.lastUpdatedAt},(t=this.getStepPollTypes(d,n))&&(e.step_poll_types=t),Um(n.guideId,n.id,v(),r,d.language,e),_.each(d.steps,function(e){var t,n,i;"snoozed"===e.seenState&&(e.snoozeEndTime=0,t=d.id,e=e.id,n=v(),i=d.language,t=jm({type:"guideSnoozeCanceled",guideId:t,stepId:e,visitorId:n,seen_reason:r,language:i}),Km(t,null,!0),R.guideSnoozeCancelled.trigger(t))})),Jc.runCustomScripts(n,d,Zu()),A.dispatch("frames/guideStepShownInFrame",{guideId:d.id,stepId:n.id,isShown:n.isShown()})},this.hide=function(e){var t=this;t.unlock(),R.beforeUnmount.trigger(t),t.teardown(),_.each(t.elements,function(e){qa(e)}),R.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&&(M.removeClass(t.overrideElement,"triggered"),t.overrideElement.checkAriaExpanded)&&t.overrideElement.checkAriaExpanded(),A.dispatch("frames/guideStepHiddenInFrame",{guideId:d.id,stepId:t.id})},this.advance=function(){"advanced"===this.seenState&&!this.isRendered()||Im(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||wm(this)},this.trackAction=function(e){var t;(e=e||{}).elementId&&_.isString(e.elementId)&&(t=_.isArray(e.actions)?e.actions:e.action?[_.omit(e,"elementId","elementType","actions")]:[],t=_.filter(t,dc),t=_.map(t,function(e){return"openLink"===e.action&&e.url?_.extend({},e,{url:Bo(e.url)}):e}),e={type:"guideActivity",guideId:d.id,stepId:this.id,ui_element_id:e.elementId,ui_element_type:(e=e.elementType,e=_.isString(e)?e.toUpperCase():"",_.contains(ac,e)?e:"BUTTON"),ui_element_actions:t,language:d.language},Km(jm(e)))},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()&&S()-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};F(e,t,n,!0),this.handlers.push(i)},this.searchFor=function(e){return!(e.length<3)&&xt(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&Fl.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&xl(this)},this.getType=function(){return this.domJson?_.get(this,"attributes.calculatedType"):this.type},this}function iS(){return this.after("render",function(){var e,t;G&&G.contentWindow&&G.style&&(e=_.first(M('#pendo-resource-center-container, [id^="pendo-g-"]')))&&(e=f(e))&&(t={mutation:"preview/setIsPreviewBarTop",payload:{isPreviewBarTop:!1}},"0px"===e.top?(G.style.top="auto",G.style.bottom="0px",G.contentWindow.postMessage(t,location.origin)):"0px"!==e.bottom&&G.style.top||(G.style.top="0px",G.style.bottom="auto",t.payload.isPreviewBarTop=!0,G.contentWindow.postMessage(t,location.origin)))}),this}nS.isGuideStep=function(e){return!!e&&_.isFunction(e.render)};const rS={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===Dt.Critical?(i=Te()||{},ew(e),!1!==E.logStackTraces&&!1!==i.logStackTraces&&n.stack?Ea(e+`
9
+ `+n.stack):wa(e)):t.level===Dt.Error?ew(e):t.level===Dt.Warn&&(i=[e],Y0("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()]}}}},oS=x.getSession(),aS="pendo_cd";class sS{constructor(){this.name="CloneDetection"}initialize(){if(_.isFunction(window.BroadcastChannel))return x.registry.addSession(aS),this.tabId=Kn.getTabId(),this.id=Tt(16),this.channel=new BroadcastChannel("pendo-clone-detection-"+E.apiKey),this.channel.addEventListener("message",_.bind(this.onmessage,this)),this.detectClonedSession(this.id),_.bind(this.teardown,this)}teardown(){this.stopCloneDetectionTimer(),this.channel.removeEventListener("message",this.onmessage),this.channel.close(),this.channel=null}onmessage(e){var t=_.get(e,"data.type"),n=_.get(e,"data.tabId"),i=_.get(e,"data.id");if(n===this.tabId)switch(t){case"pendo-clone-test":i!==this.id&&this.isClonedSession(i)&&this.sendMessage("pendo-change-tab-id",{tabId:n,id:i});break;case"pendo-change-tab-id":i===this.id&&this.clearClonedStorage()}}detectClonedSession(e){var t=oS.getItem(aS)||"";-1===t.indexOf(e)&&(t+="-"+e),oS.setItem(aS,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()}isClonedSession(e){return this.startCloneDetectionTimer(),-1===(oS.getItem(aS)||"").indexOf(e)}clearCloneDetectionValue(){oS.removeItem(aS),this.cloneDetectionTimer=null}startCloneDetectionTimer(){this.stopCloneDetectionTimer(),this.cloneDetectionTimer=Ut(_.bind(this.clearCloneDetectionValue,this),1e4)}stopCloneDetectionTimer(){this.cloneDetectionTimer&&(Gt(this.cloneDetectionTimer),this.cloneDetectionTimer=null)}clearClonedStorage(){oS.clearPendo(),Kn.setParentTabId(this.tabId),this.tabId=Kn.newTabId(),R.trigger("tabIdChanged:self"),A.dispatch("frames/setTabId",this.tabId)}sendMessage(e,t){this.channel.postMessage(Object.assign({type:e},t))}}let dS=new sS;function uS(e){A.dispatch("frames/setReady",{isReady:!0})}var cS=["unknown","hidden","visible"];function lS(e){return"visible"===e.visibility||"unknown"===e.visibility}pS={};var pS,t={actions:{init(e){var t,n,i=e.state;i.initialized||(x.registry.addSession(Gn),x.registry.addSession(Bn),t=Kn.addTracerIds({}),n=Ae(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),R.ready.on(uS),R.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&U.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),dS.initialize(),e.commit("setInitialized",!0))},changeGuideList(e,t){e=e.state,t=fS(t);U.postMessage({action:"frames/receiveGuideList",frameId:e.frameId,guides:t,autoOrdering:E.autoOrdering||[]})},receiveGuideList(e,t){e.commit("setGuideList",t),t.frameId===e.state.frameId&&e.commit("setGuidesLoaded"),mS(e.state),gS()},join(e){var t,n,i,r;e.state.disabled||(cg(),t=e.state,n=window.top==window,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:fS(y())}),(r=[].concat(C.get("leaderKey"))).length||t.agentInstallType!==xe||(r=[E.apiKey]),e.dispatch("receiveFrame",{frame:_.extend({agentInstallType:t.agentInstallType,id:t.frameId,joinedAt:S(),isTop:n,visibility:n?"visible":"unknown",apiKey:E.apiKey,leaderKey:r,forcedLeader:C.get("forcedLeader")},i)}))},receiveFrame(e,t){var n,i=e.state;if(E.designerv2.launched&&(n=Object.assign({},sb.hostConfig,{selectionOnly:!0}),U.postMessage({action:"frames/addSelectionModeToFrames",options:n})),!i.frames[t.frame.id]||!i.frames[t.frame.id].id){if(e.commit("addFrame",t.frame),e.commit("setGuideList",{frameId:t.frame.id,guides:_.toArray(_.get(t,"frame.guides",[]))}),t.frame.isTop){for(var r=e.getters.leaderKeyPreference(),o=_.filter(i.frames,e=>e.isTop);r.length;){var a=r.shift(),s=_.filter(o,e=>e.apiKey===a);if(s.length){o=s;break}}e.commit("setTopId",o[0].id)}e.commit("setLeadershipMode",t.frame.agentInstallType),t[_y]&&e.dispatch("receiveStartPreview",t),U.postMessage({action:"frames/receiveFrame",frame:i.frames[i.frameId],"pendo-preview":e.rootState.preview.preview}),e.dispatch("waitThenElectLeader")}},leave(t){var e=t.state;U.postMessage({action:"frames/removeFrame",frameId:e.frameId}),_.each(e.frames,function(e){t.commit("removeFrame",e.id)}),U.close()},removeFrame(e,n){e.getters.hasFrame()(n.frameId)&&(e.commit("removeFrame",n.frameId),_.each(pS,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete pS[t])}),e.dispatch("electLeader"))},waitThenElectLeader:_.debounce(function(e){e.dispatch("electLeader")},50),electLeader(e){var t=e.state;let n=t.frames;var i=e.getters.leaderKeyPreference();if(i.length)for(;i.length;){const a=i.shift();var r=_.filter(t.frames,e=>e.apiKey===a);if(r.length){n=r;break}}var o=_.filter(n,e=>e.forcedLeader),o=(o.length&&(n=o),_.find(n,e=>e.isTop));o?e.dispatch("followLeader",{leaderId:o.id}):(o=_.min(n,"joinedAt"),e.dispatch("followLeader",{leaderId:o.id})),mS(e.state),e.getters.isLeader()&&R.childFrameJoined.trigger()},followLeader(e,t){var n=e.state,i=n.leaderId,r=t.leaderId;e.commit("setLeaderId",t.leaderId),i!==r&&R.leaderChanged.trigger({frameId:n.frameId,oldLeaderId:i,newLeaderId:r})},showGuideStep(t,n){var i=_.filter(t.state.frames,function(e){return e.id!==t.state.frameId&&"hidden"!==e.visibility&&e.guides&&e.guides[n.guideId]});return function r(){var e=i.shift();return e?t.dispatch("requestShowGuideStepInFrame",_.extend({frameId:e.id},n)).then(function(e){return e.error?m.reject(e.error):e.isShown?e:r()}):m.resolve({isShown:!1})}()},requestShowGuideStepInFrame(e,t){var n;return e.state.frames[t.frameId]?(e=t.frameId+"/"+Tt(32),n=m.defer(),pS[e]=n,U.postMessage(_.extend({action:"frames/showGuideStepInFrame",requestId:e},t)),n.promise):m.reject({error:"Frame not found"})},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=b(n.guideId))&&e.findStepById(n.stepId))?Lt(e=Zw.showLocal(e,n.reason))?e.then(i)["catch"](_.noop):i(e):t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:!1}))},guideStepShownInFrame(e,t){e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:t.isShown}),U.postMessage(_.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame(e,t){var n=pS[t.requestId];n&&(n.resolve(t),delete pS[t.requestId]),e.getters.isShownInFrame()(t.frameId,{id:t.stepId})!==t.isShown&&(e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:t.isShown}),gS())},hideGuides(e,t){t=_.isArray(t)?t:[],U.postMessage({action:"frames/receiveHideGuides",frameId:e.state.frameId,guideIds:t}),e.commit("hideGuides")},receiveHideGuides(e,t){e.state.frameId!==t.frameId&&(t.guideIds.length?_.each(_.compact(_.map(t.guideIds,b)),function(e){e.hide()}):gm(),e.commit("hideGuides"),gS())},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}),U.postMessage(_.extend({action:"frames/receiveGuideStepHiddenInFrame",frameId:e.state.frameId},t)),n&&e.dispatch("fixDoubleDisplay",t)},receiveGuideStepHiddenInFrame(e,t){e.state.frameId!==t.frameId&&e.getters.isShownInFrame()(t.frameId,{id:t.stepId})&&(e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:!1}),gS())},fixDoubleDisplay(n,i){_.each(n.state.frames,function(e,t){t!==n.state.frameId&&n.getters.isShownInFrame()(t,{id:i.stepId})&&U.postMessage(_.extend({action:"frames/receiveHideGuideInFrame",frameId:t,guideId:i.guideId,stepId:i.stepId},i))})},receiveHideGuideInFrame(e,t){e.state.frameId===t.frameId&&(t=(e=b(t.guideId))&&e.findStepById(t.stepId))&&(t.hide(),gS())},changeLastGuideStepSeen(e,t){U.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,i;t.frameId!==e.state.frameId&&(i=e.state.frames[t.frameId],n=_.get(i,"agentInstallType"),i=_.get(i,"apiKey"),(n&&n!==e.state.agentInstallType||i&&i!==E.apiKey)&&delete t.lastGuideStepSeen.visitorId,e.dispatch("guideState/updateLastGuideStepSeen",t.lastGuideStepSeen,{root:!0}),e.dispatch("guideState/write",null,{root:!0}),t=(i=b((n=t.lastGuideStepSeen).guideId))&&i.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){U.postMessage(_.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState(e,t){t.frameId!==e.state.frameId&&_.each(jh,function(e){t[e]&&zm(t[e],e)})},startPreview(e){U.postMessage({action:"frames/receiveStartPreview","pendo-preview":e.rootState.preview.preview})},restartPreview(e){U.postMessage({action:"frames/receiveRestartPreview","pendo-preview":e.rootState.preview.preview})},stopPreview(e,t){U.postMessage(_.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview(e,t){e.dispatch("preview/start",t[_y],{root:!0}),xy(window),Wv()},receiveRestartPreview(e){var t=ky(y(),Jh());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview(e,t){zy({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=ds(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility(e,t){var n;!_.find(cS,function(e){return e===t.visibility})||(n=t.visibility,e.getters.frameVisibility()===n)||(e.commit("setFrameVisibility",{frameId:e.state.frameId,visibility:n}),U.postMessage({action:"frames/receiveFrameVisibility",frameId:e.state.frameId,visibility:n}))},receiveFrameVisibility(e,t){e.commit("setFrameVisibility",t),gS()},addSelectionModeToFrames(e,t){t=t.options;sb.launchInAppDesigner(t)},syncOptions(e,t){t.options&&U.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&&Np(t.options)},syncIdentity(e,t){var n;(t.visitorId||t.accountId)&&({visitorId:t,accountId:n}=t,U.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)&&_i(t.visitorId,t.accountId)},changeCookieConsent(e,t){U.postMessage({action:"frames/receiveCookieConsent",frameId:e.state.frameId,tiers:t.tiers})},receiveCookieConsent(e,t){e.getters.getMyApiKey()!==t.apiKey||e.state.frameId===t.frameId||h0(t.tiers)||l0(t.tiers)},setReady(e,t){e.commit("setReady",t.isReady)},receiveGuideSeen(e,t){t.frameId!==e.state.frameId&&R.guideSeen.trigger(t.guideSeen)},checkGuideEligibility(e,t){var{guideId:t,stepId:n,currentStepIndex:i,sourceFrame:r,promiseId:o}=t,t=b(t),n=t&&t.findStepById(n),a={};return t&&n?(0===i&&(i=rc(t))&&((i=_.first(lo(i)))?ds(i)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),_.isFunction(n.canShowOnPage)&&!n.canShowOnPage(ku())&&(a.PAGE="mismatch"),n.elementPathRule&&((i=_.first(lo(n.elementPathRule)))?ds(i)?n.elementContainsRulesList&&!km(i,n.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),n.triggerElementPathRule&&((i=_.first(lo(n.triggerElementPathRule)))?ds(i)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),_.get(t,"attributes.embedConfig")&&(n=_.get(t,"attributes.embedConfig.selector"),(i=_.first(lo(n)))?ds(i)||(a.EMBED_CONTAINER="notVisible"):a.EMBED_CONTAINER="notFound")):a.GUIDE="notFound",o&&r&&U.postMessage({errors:a,action:"frameEligibilityResponse",targetFrame:r,resolveId:o}),a},testSelector(e,t){var{selector:t,sourceFrame:n,promiseId:i}=t,r=performance.now();let o=0;try{o=lo(t).length}catch(a){o=0}t=performance.now()-r;return i&&n&&U.postMessage({action:"frameTestSelectorResponse",targetFrame:n,resolveId:i,frameId:e.state.frameId,count:o,timing:t}),{count:o,timing:t}},setTabId(e,t){e.commit("setTabId",t)}},mutations:{addFrame(e,t){var n=t.id;e.frames[n]=_.extend({},e.frames[n],t)},removeFrame(e,t){delete e.frames[t]},setGuideList(e,t){var n=t.frameId;e.frames[n]=_.extend({},e.frames[n],{guides:_.indexBy(fS(t.guides),"id"),autoOrdering:t.autoOrdering})},setStepShown(e,t){var n=t.frameId,n=e.frames[n]=_.extend({},e.frames[n]);n.shown=_.extend({},n.shown),n.shown[t.stepId]=t.shown},setInitialized(e,t){e.initialized=t},setLeaderId(e,t){e.leaderId=t},setFrameId(e,t){e.frameId=t},setTabId(e,t){e.tabId=t},setTopId(e,t){e.topId=t},setAgentInstallType(e,t){e.agentInstallType=t},setLeadershipMode(e,t){e.leadershipMode!==xe&&(e.leadershipMode=t)},setFrameVisibility(e,t){var n=t.frameId;e.frames[n]=_.extend({},e.frames[n],{visibility:t.visibility})},setReady(e,t){e.isReady=t},disableFrameVisibilityCheck(e){e.disableFrameVisibilityCheck=!0},hideGuides(e){_.each(e.frames,function(n){_.each(n.shown,function(e,t){n.shown[t]=!1})})},setChannelType(e,t){e.channelType=t},setGuidesLoaded(e){e.guidesLoaded=!0},setConnectFailed(e){e.connectFailed=!0},updateLastGuideStepSeen(e,t){t&&_.each(e.frames,function(e){e.guides&&(e=e.guides[t.guideId])&&(e=_.findWhere(e.steps,{id:t.guideStepId}))&&(e.seenState=t.state,e.lastSeenAt=t.time,e.seenReason=t.seenReason,t.dismissCount&&(e.dismissCount=t.dismissCount),t.snoozeEndTime)&&(e.snoozeEndTime=t.snoozeEndTime)})}},getters:{allFrames(e){return e.frames},autoOrdering(e){return _.reduce(e.frames,(e,t)=>(e[t.apiKey]=t.autoOrdering,e),{})},leaderExists(e){return!!e.leaderId},isLeader(e){return e.leaderId===e.frameId},leaderKey(e,t){if(t.leaderExists()){t=e.frames[e.leaderId];if(t)return t.apiKey}},isFollower(e){return!!e.leaderId&&e.leaderId!==e.frameId},isTop(e,t){t=t.window();return e.topId===e.frameId||t==t.top},frameVisibility(e){return(e.frames?e.frames[e.frameId]:{}).visibility||"unknown"},isGuideInThisFrame(n){return function(e){var t=n.frames&&n.frames[n.frameId];return!!(t&&t.guides||{})[e.id]}},isGuideInDifferentFrame(i){return function(n){return _.any(i.frames,function(e,t){return t!==i.frameId&&e.guides&&e.guides[n.id]})}},isReady(e){return e.isReady},isShownInAnotherFrame(i){return function(n){return _.any(i.frames,function(e,t){return t!==i.frameId&&e.shown&&e.shown[n.id]})}},isShownInFrame(n){return function(e,t){e=n.frames&&n.frames[e],e=e&&e.shown||{};return!(!e||!e[t.id])}},hasFrame(t){return function(e){return t.frames&&t.frames[e]}},hasFrames(e){return 1<_.size(e.frames)},shouldBeAddedToLauncher(i,e){return function(n){return e.canShowRCBadge()&&_.any(i.frames,function(e,t){return t!==i.frameId&&!!lS(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToLauncher})}},shouldBeAddedToResourceCenter(i,e){return function(n){return e.canShowRCBadge()&&_.any(i.frames,function(e,t){return t!==i.frameId&&e.apiKey===E.apiKey&&!!lS(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToResourceCenter})}},isBroadcastChannel(e){return"BroadcastChannel"===e.channelType},channelType(e){return e.channelType},canShowRCBadge(t,n){if(n.leaderKey()===E.apiKey)return n.isLeader();{let e=_.filter(t.frames,function(e){return e.apiKey===E.apiKey});var n=_.filter(e,e=>e.forcedLeader),n=(n.length&&(e=n),_.find(e,function(e){return e.isTop}));return n?t.frameId===n.id:(n=_.min(e,function(e){return e.joinedAt}),t.frameId===n.id)}},leaderKeyPreference(e){e=_.filter(e.frames,e=>e.leaderKey&&e.leaderKey.length);return 1===_.unique(_.map(e,e=>e.leaderKey.join(","))).length?[].concat(e[0].leaderKey):[]},getMyApiKey(e,t){return t.getMyFrame().apiKey},getMyFrame(e){return e.frames[e.frameId]},window(){return window}},state:{initialized:!1,frameId:null,leaderId:null,tabId:null,agentInstallType:null,leadershipMode:null,topId:null,frames:{},guidesLoaded:!1,channelType:null,ready:!1},requests:pS};function hS(e){var t=_.pick(e,"id","name","launchMethod","isMultiStep","steps","control","lastUpdatedAt","language","state","polls","redisplay","channel");return t.attributes=_.pick(e.attributes,"overrideAutoThrottling","priority","isAnnouncement","resourceCenter","device","sharedServiceVersion","embedConfig","activation"),t._shouldBeAddedToLauncher=_.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e._shouldBeAddedToLauncher||!1,t._shouldBeAddedToResourceCenter=_.isFunction(e.shouldBeAddedToResourceCenter)?e.shouldBeAddedToResourceCenter():e._shouldBeAddedToResourceCenter||!1,t.steps=_.map(e.steps,function(e){return _.pick(e,"id","guideId","type","seenReason","seenState","lastSeenAt","lastUpdatedAt","dismissCount","snoozeEndTime","regexUrlRule","pageId","elementPathRule","triggerElementPathRule","elementContainsRulesList")}),t}function fS(e){return _.map(e,hS)}function gS(){A.state.guideUpdate.useObserver&&A.dispatch("guideUpdate/documentChanged")}function mS(t){var n=_.indexBy(_.filter(y(),function(e){return!e.isFrameProxy}),"id"),e=_.chain(t.frames).filter(function(e){return e.id!==t.frameId}).map(function(e){return _.toArray(_.get(e,"guides",[]))}).flatten(!0).unique("id").filter(function(e){return!n[e.id]}).map(function(e){return _.extend(JSON.parse(JSON.stringify(e)),{isFrameProxy:!0})}).map(qc).value(),e=_.toArray(n).concat(e);_.sortBy(e,rv),_v(e),Gu(e),t.guidesLoaded&&0===_.size(_.get(t,"frames."+t.frameId+".guides",[]))&&lg()}var vS,or=function(){var n;function i(){A.dispatch("guideUpdate/documentChanged")}const r=_.debounce(i,50);function o(){A.dispatch("guideUpdate/handleScheduledUpdate")}return{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,sg-t),sg),t=Ut(o,t),e.commit("setScheduledUpdate",t))},handleScheduledUpdate(e){e.dispatch("stopScheduledUpdate"),lg()},stopScheduledUpdate(e){e.state.scheduledUpdate&&(Gt(e.state.scheduledUpdate),e.commit("setScheduledUpdate",null))},startObserverIfNeeded(e){e.state.useObserver&&!e.state.observing&&(e.getters.observer().addEventListener("mutation",i),F(window,"animationend",r),F(window,"transitionend",r),F(window,"mouseover",r),e.commit("setObserving",!0))},stopObserver(e){var t=e.getters.observer();t&&(t.removeEventListener("mutation",i),r.cancel(),qf(window,"animationend",r),qf(window,"transitionend",r),qf(window,"mouseover",r)),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setObserver(e,t){n=t},setUseObserver(e){e.useObserver=!0},setObserving(e,t){e.observing=t},setNeedsUpdate(e){e.needsUpdate=!0},setScheduledUpdate(e,t){e.scheduledUpdate=t},startUpdate(e,t){Ud.startTimer(Ad),e.needsUpdate=!1,e.updateId=t},completeUpdate(e,t){Ud.stopTimer(Ad),e.updateId=null,e.updateCompleteTime=t}},getters:{now(){return S()},observer(){return n}},state:{useObserver:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}}}(),e=(vS=["advanced","dismissed","snoozed"],{actions:{init:function(t,e){_.each(e,function(e){_.each(e.steps,function(e){t.commit("updateStepState",e)})})},fixSeenStateAndLogError:function(e,t){var n,i,r=t.step,t=t.reason;e.state.exceptions[r.id]||(n=r.seenState,(i=e.state.steps[r.id])&&i.seenState&&(r.seenState=i.seenState),e.state.exceptions[r.id]=!0,e.dispatch("logRedisplayError",{id:r.id,guideId:r.guideId,reason:t,seenState:i.seenState,previousSeenState:n}))},logRedisplayError:function(e,t){Ea(['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=S();e.steps[t.id]=_.extend({},e.steps[t.id],{pageId:t.pageId,regexUrlRule:t.regexUrlRule,seenState:t.seenState,updatedAt:n,allowedAt:n+6e4})},resetStepStatus:function(e){e.steps={}}},getters:{isRedisplay:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(e.resetAt>t.updatedAt)&&!(S()>=t.allowedAt)&&_.contains(vS,t.seenState)&&!_.contains(vS,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}}),Ir={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}}},yS="pendo-live-preview",bS="pendo-preview",wS="current-guide-preview",SS={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,n=e.getters.storage(),i=JSON.parse(n.getLocal().getItem(bS)),r=(i.apiKey===E.apiKey&&((t=JSON.parse(n.getSession().getItem(yS)))&&(i.livePreview=t),e.commit("setPreview",i)),n.getLocal().getItem(wS));r&&e.commit("setDesignerPreview",JSON.parse(r))}catch(o){}},write(e){try{var t=e.getters.storage(),n=e.state.preview,i=n&&n.livePreview;n?t.getLocal().setItem(bS,JSON.stringify(_.omit(n,"livePreview"))):t.getLocal().removeItem(bS),i?t.getSession().setItem(yS,JSON.stringify(i)):t.getSession().removeItem(yS)}catch(r){}},exit(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview(e){e.commit("setDesignerPreview",null),e.getters.storage().getLocal().removeItem(wS)},launchInAppDesigner(e,t){sb.launchInAppDesigner(t)}},mutations:{updatePreview(e,t){e.preview&&_.extend(e.preview,t)},setPreview(e,t){e.preview=t},setDesignerPreview(e,t){e.designerPreview=t}},getters:{isInPreviewMode(e){return!!e.preview},isInDesignerPreviewMode(e,t){return!!e.designerPreview&&t.isInPreviewMode()},storage(){return x}}};const ES=500,IS=1e4,_S={"box-sizing":"border-box",border:"2px solid #FF4876","border-radius":"2px","box-shadow":"0 0 0 2px rgba(255, 72, 118, 0.35)","pointer-events":"none","z-index":"2147483644"};let CS=document,TS=window,xS=null,RS=[],AS=[],kS=null,OS=null;function NS(){var t=TS.scrollX||TS.pageXOffset||0,n=TS.scrollY||TS.pageYOffset||0;for(let e=0;e<AS.length;e++){var{el:i,box:r}=AS[e];i&&"function"==typeof i.getBoundingClientRect&&(i=i.getBoundingClientRect(),r.style.top=i.top+n+"px",r.style.left=i.left+t+"px",r.style.width=i.width+"px",r.style.height=i.height+"px")}}function MS(t){e=t,xS&&xS.isConnected||((xS=e("<div>").css({position:"absolute",top:0,left:0,width:0,height:0,margin:0,padding:0,border:0,"pointer-events":"none"}).appendTo(CS.documentElement||CS.body)[0]).id="pendo-debugger-highlight-overlay");var e,n=xS;n.textContent="",AS=[];for(let e=0;e<RS.length;e++){var i,r=RS[e];r&&"function"==typeof r.getBoundingClientRect&&(0===(i=r.getBoundingClientRect()).width&&0===i.height||(i=t("<div>").css(Object.assign({position:"absolute"},_S)).appendTo(n)[0],AS.push({el:r,box:i})))}NS()}function LS(e){e.some(e=>{return e=e.getBoundingClientRect(),t=TS.innerHeight||CS.documentElement.clientHeight,n=TS.innerWidth||CS.documentElement.clientWidth,0<e.bottom&&0<e.right&&e.top<t&&e.left<n;var t,n})||(e=e[0])&&"function"==typeof e.scrollIntoView&&e.scrollIntoView({block:"center",inline:"center"})}function PS(e,t){FS(),RS=[];for(let e=0;e<t.length;e++){var n=t[e];n&&1===n.nodeType&&RS.push(n)}if(!RS.length)return 0;if(CS=RS[0].ownerDocument||document,TS=CS.defaultView||window,LS(RS),MS(e),"function"==typeof TS.ResizeObserver){(kS=new TS.ResizeObserver(()=>NS())).observe(CS.documentElement);for(let e=0;e<AS.length;e++)kS.observe(AS[e].el)}var i=RS[0];if(i&&"function"==typeof i.animate){i=i.getBoundingClientRect();if(0!==i.width||0!==i.height){const r=e("<div>").css(Object.assign({position:"fixed"},_S)).appendTo(CS.documentElement||CS.body)[0];r.animate([{top:"0px",left:"0px",width:"100vw",height:"100vh",borderRadius:"0px",opacity:0},{opacity:1,offset:.2},{top:i.top+"px",left:i.left+"px",width:i.width+"px",height:i.height+"px",borderRadius:"2px",opacity:1}],{duration:ES,easing:"ease-in-out"}).onfinish=()=>{r.parentNode&&r.parentNode.removeChild(r)}}}return OS&&Gt(OS),OS=Ut(FS,IS),RS.length}function DS(e,t){try{return PS(e,lo(t))}catch(n){return FS(),0}}function FS(){OS&&(Gt(OS),OS=null),kS&&(kS.disconnect(),kS=null),RS=[],AS=[],xS&&(xS.parentNode&&xS.parentNode.removeChild(xS),xS=null)}const US=(()=>{const n={isLeader:undefined,frameId:null,tabId:null,frames:{},autoOrdering:[],excludedGuides:[],throttling:{},enableEventLogging:!1,eventsCaptured:[],cspErrors:[],installType:null,doNotProcess:!1},s={TOP_DOWN:"top-down",BOTTOM_UP:"bottom-up"},d={debuggingEnabled:{type:s.TOP_DOWN,defaultValue:!1},guideLoopRunning:{type:s.BOTTOM_UP,defaultValue:!1},stepEligibilitySet:{type:s.BOTTOM_UP,defaultValue:{}},identity:{type:s.BOTTOM_UP,defaultValue:{}},location:{type:s.BOTTOM_UP,defaultValue:{}}},u=["__proto__","constructor","prototype"];var e={init:(e,t)=>{var n;e.commit("setFrameId",Kn.getFrameId()),e.commit("setTabId",Kn.getTabId()),e.commit("setInstallType",Ae()),e.commit("setIsLeader",cc()),cc()?(n=Pd(),e.commit("debuggingEnabled",!0===n.enabled),n.enableEventLogging&&e.commit("enableEventLogging",!0)):U.postMessage({action:"debugger/join",frameId:e.state.frameId}),_.each(t.events,e=>A.dispatch("debugger/eventCaptured",e))},updateLeader:e=>{var t=e.state.isLeader,n=cc();e.commit("setIsLeader",n),n&&Pd().enabled?U.postMessage({action:"debugger/requestSync",frameId:e.state.frameId}):t&&!n&&c(e.state)},requestSync:(e,t)=>{e.state.frameId!==t.frameId&&c(e.state)},join:(n,e)=>{n.state.frameId!==e.frameId&&_.each(d,({type:e},t)=>{e===s.TOP_DOWN&&U.postMessage({action:"debugger/sync",frameId:n.state.frameId,fields:{[t]:n.state[t]}})})},sync:(i,e)=>{if(i.state.frameId!==e.frameId){const{frameId:r,fields:t}=e;_.each(t,(e,t)=>{var n;d[t]&&(n=d[t]["type"],n===s.TOP_DOWN&&i.state.isLeader||n===s.BOTTOM_UP&&!i.state.isLeader||i.commit("_sync_"+t,{value:e,frameId:r}))})}},enableEventLogging:(e,t)=>{e.commit("enableEventLogging",t)},eventCaptured:(e,t)=>{E.designerEnabled||Ny()||My()||(e.state.isLeader?e.commit("eventsCaptured",t):U.postMessage({action:"debugger/receiveEventCaptured",frameId:e.state.frameId,event:t}))},receiveEventCaptured:(e,t)=>{e.state.isLeader&&e.commit("eventsCaptured",t.event)},clearEventsCaptured:e=>{e.commit("eventsCaptured",[])},onCspError:(e,t)=>{e.state.isLeader?e.commit("cspError",t):U.postMessage({action:"debugger/recieveCspError",frameId:e.state.frameId,data:t})},recieveCspError:(e,t)=>{e.state.isLeader&&e.commit("cspError",t.data)},checkGuideEligibility(e,t){const{guideId:i,response:n}=t;var t=_.filter(A.state.frames.frames,e=>e.guides&&e.guides[i]);t.length&&(t=_.map(t,n=>{var e=_.map(n.guides[i].steps,(e,t)=>U.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:n.id,stepId:e.id,currentStepIndex:t,guideId:i}));return m.all(e).then(e=>({frameId:n.id,frameVisibility:n.visibility,errors:_.map(e,e=>JSON.parse(e).errors)}))}),m.all(t).then(e=>e).then(e=>n(e))["catch"](e=>n({error:e})))},testSelector(e,t){const{selector:n,response:i}=t;t=_.map(A.state.frames.frames,e=>U.postMessageOrTimeout({action:"frames/testSelector",targetFrame:e.id,selector:n}).then(e=>JSON.parse(e)));m.all(t).then(e=>i(e))},highlightElement(e,t){const{selector:n,targetFrame:i,outlineFrame:r,response:o}=t;t=i?_.filter(A.state.frames.frames,e=>e.id===i):_.values(A.state.frames.frames),t=_.map(t,e=>U.postMessageOrTimeout({action:"debugger/highlightInFrame",targetFrame:e.id,selector:n,outlineFrame:r}).then(e=>JSON.parse(e))["catch"](()=>({count:0})));m.all(t).then(e=>{e=_.reduce(e,(e,t)=>e+(t.count||0),0);o&&o({count:e})})},clearHighlight(){U.postMessage({action:"debugger/clearHighlightInFrame"})},highlightInFrame(e,t){var{selector:t,outlineFrame:n,sourceFrame:i,promiseId:r}=t,n=n?function(e){let t=null;try{t=window.frameElement}catch(n){t=null}if(t)try{return PS(e,[t])}catch(n){return FS(),0}return DS(e,"body")}(E.dom):DS(E.dom,t);return r&&i&&U.postMessage({action:"debuggerHighlightResponse",targetFrame:i,resolveId:r,frameId:e.state.frameId,count:n}),{count:n}},clearHighlightInFrame(){FS()}};const t={},i={setFrameId(e,t){e.frameId=t},setTabId(e,t){e.tabId=t},setIsLeader(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.isLeader,n.debuggingEnabled!==t&&(t?(l(),p(),R.on("stepEligibility",r),R.on("guideUpdateComplete",f),R.on("guideLoopStopped",g),R.on("eventCaptured",a),R.on("identify",l),R.on("urlChanged",p),e&&(o(),R.on("guidesLoaded",o))):(R.off("stepEligibility",r),R.off("guideUpdateComplete",f),R.off("guideLoopStopped",g),R.off("eventCaptured",a),R.off("identify",l),R.off("urlChanged",p),e&&R.off("guidesLoaded",o)))},excludedGuides(e,t){e.excludedGuides=t},autoOrdering(e,t){e.autoOrdering=t},throttling(e,t){e.throttling=t},eventsCaptured(e,t){_.isArray(t)&&0===t.length?e.eventsCaptured=[]:e.debuggingEnabled&&e.enableEventLogging&&(e.eventsCaptured.unshift(t),100<e.eventsCaptured.length)&&e.eventsCaptured.pop()},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 r(e){e=e.data[0];A.commit("debugger/stepEligibilitySet",e)}function o(e){var t=_.map(Xh.sortAndFilter(y({channel:Du.DEFAULT}),E.autoOrdering),e=>e.id);A.commit("debugger/autoOrdering",t||[]),A.commit("debugger/excludedGuides",E.excludedGuides||[]),A.commit("debugger/throttling",E.throttling||{})}function a(e){A.dispatch("debugger/eventCaptured",e.data[0])}function c(n){_.each(d,({type:e},t)=>{e===s.BOTTOM_UP&&U.postMessage({action:"debugger/sync",frameId:n.frameId,fields:{[t]:n[t]}})})}function l(e){A.commit("debugger/identity",{visitorId:_.get(e,"data.0.visitor_id")||E.get_visitor_id(),accountId:_.get(e,"data.0.account_id")||E.get_account_id(),apiKey:E.apiKey})}function p(){A.commit("debugger/location",{href:Ao(),browserUrl:window.location.href})}function h(e){A.commit("debugger/guideLoopRunning",e)}const f=_.partial(h,!0),g=_.partial(h,!1);return _.each(d,({type:r,defaultValue:e},o)=>{n[o]=e,t[o]=e=>e[o];let a=i[o]||((e,t)=>{e[o]=t});i[o]=_.wrap(a,(e,t,n)=>{!t.isLeader&&r===s.TOP_DOWN||(e(t,n),t.isLeader&&r===s.BOTTOM_UP)||U.postMessage({action:"debugger/sync",frameId:t.frameId,fields:{[o]:n}})}),a=i["_sync_"+o]||a,i["_sync_"+o]=(e,{value:t,frameId:n})=>{var i;i=n,_.isString(i)&&!_.contains(u,i)&&(e.frames[n]||(e.frames[n]={}),e.frames[n][o]||(e.frames[n][o]=d[o].defaultValue),a(e.frames[n],t),e.isLeader||r!==s.TOP_DOWN||a(e,t))}}),{state:n,actions:e,getters:t,mutations:i}})(),GS=["src","href"],BS=function(){const s=(e,t)=>_.reduce(e,function(e,t){return t.applyTo(e)},t);return{state:{transforms:[]},actions:{addAttrTransform(e,t){e.commit("addTransform",t)}},mutations:{addTransform(e,t){e.transforms.push(t)},clearURLTransforms(e){e.transforms=[]}},getters:{getAttribute(a){return function(e,t=""){var n,i,e=e.getAttribute?e.getAttribute(t):e[t];if(_.size(a.transforms)<1)return e;if(-1===GS.indexOf(t.toLowerCase()))return e;try{n=e,(i=document.createElement("a")).href=n;var r=new Li(i.href);return _.reduce([_.partial(s,a.transforms)],(e,t)=>t(e),r).href}catch(o){return T.critical(o),e}}}}}}();const HS={state:{transforms:[]},actions:{addNetworkTransform(e,t){e.commit("addTransform",t)}},mutations:{addTransform(e,t){e.transforms.push(t)},clearURLTransforms(e){e.transforms=[]}},getters:{getTransformedUrl(r){return function(e){try{var t=function(e,t){if(e instanceof Li)return e;try{return new Li(e)}catch(n){}return new Li(e,Ss(t))}(e,window);return _.size(r.transforms)<1||(n=r.transforms,t=_.reduce(n,function(e,t){return t.applyTo(e)},t)),t.href}catch(i){return T.critical(i),e}var n}}}};var zS,jS,qS,WS,VS=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 Dn(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){!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()}(e)},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"))}}(),KS={name:"Branding",initialize:function(e,t){zS=e,(jS=t).ConfigReader.get("isPendoFree")&&jS.Events.on("guideSeen",$S)},teardown:function(){jS.Events.off("guideSeen",$S)},addBranding:JS};function $S(e){JS(zS,e)}function JS(e,t){var n,i,r,t=t.data[0].props;t.step_poll_types&&-1<t.step_poll_types.indexOf("NPSRating")&&(e=(t=e.findGuideById(t.guide_id).steps[0].guideElement[0].lastElementChild)&&t.dataset.verticalAlignment)&&(e=-1<e.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",Xo()+"/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))}function YS(){var e;Pd().enabled&&cc()&&(A.commit("debugger/debuggingEnabled",!0),E.guides&&_.isUndefined(E.excludedGuides)&&Wv(),XS(),M("#pendo-client-debugger").length||(e=C.get("webSDKDebuggerPluginLoader"),Qb.restartDebugger?Qb.restartDebugger():"function"==typeof e?e():M("#pendo-debugger-plugin").length||((e=document.createElement("script")).src=p(E).createScriptURL(Zo("debugger-plugin.min.js")),e.setAttribute("id","pendo-debugger-plugin"),C.get("pendoGlobalKey")&&e.setAttribute("data-pendo-global-key",C.get("pendoGlobalKey")),M.getBody().appendChild(e)),R.debuggerLaunched.trigger()))}function XS(){qS=qS||function(){const e=()=>y({channel:Du.DEFAULT});return{store:A,ConfigReader:C,getState(){return JSON.stringify(A.state)},getEventCache(){return[].concat(Ys)},getAllGuides(){return[].concat(e())},getAutoGuides(){return Xh.sortAndFilter(e(),E.autoOrdering)},getBadgeGuides(){return _.filter(e(),$u)},getLauncherGuides(){return[]},getEventHistory(){return[]},getAllFrames(){return A.getters["frames/allFrames"]()},getChannelType(){return A.getters["frames/channelType"]()},isStepShownInFrame(e,t){return A.getters["frames/isShownInFrame"]()(e,t)},setActiveGuides:Gu,getBody:M.getBody,isMobileUserAgent:et.isMobileUserAgent,doesElementMatchContainsRules:km,getMetadata:Fp,isStagingServer:le,AutoDisplay:Xh,isLeader:cc,Events:R,observer:C0,guideCache:Rv}}(),E.debugging=qS}function ZS(e){if(Dd())return e?t:"debugging already enabled";if(!cc())return;const t=Pd();return t.enabled=!0,x.write(Ld,t),YS(),e?t:"debugging enabled"}function QS(){if(!Dd())return"debugging already disabled";A.commit("debugger/debuggingEnabled",!1);var e=Pd();return e.enabled=!1,x.write(Ld,e),E.debugging=null,delete E.debugging,M("#pendo-client-debugger").remove(),"debugging disabled"}_.extend(function(e){T.debug(e,{contexts:["debug"]})},qS);const e1=(e,t,n)=>{const i={events:[],add:e=>{i.events.push(e.data[0])},clear:()=>{i.events=[],e.off("eventCaptured",i.add)}};if(e.on("eventCaptured",i.add),t.getters["frames/leaderExists"]())return n.resolve(i);const r=n.defer();return e.on("leaderChanged",()=>{r.resolve(i)}),r.promise},t1=function(){let t,o;return{name:"DebuggerLauncher",initialize:function(n,e){const{Events:i,q:r}=e;o=e.store,e1(i,o,r).then(e=>{o.dispatch("debugger/init",e),o.getters["frames/isLeader"]()&&YS(),e.clear()}),i.on("leaderChanged",()=>{o.dispatch("debugger/updateLeader"),o.getters["frames/isLeader"]()&&YS()}),Ps("pendo-debugger::launch",(e,t)=>{e.config.apiKey===n.apiKey&&e1(i,o,r).then(()=>{t.source.postMessage({type:"pendo-debugger::ready",apiKey:n.apiKey},t.origin),!Dd()&&o.getters["frames/isLeader"]()&&ZS(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",a);(t=n).isDebuggingEnabled=(e=!1)=>Dd(e),n.enableDebugging=ZS,n.disableDebugging=QS,n.addDebuggingFunctions=XS},teardown:function(){Ds("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",a),t.debugging&&t.debugging.teardown&&t.debugging.teardown();QS()}};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})}}();var n1=function(){(WS=WS||{dom:M,placeBadge:tg,showPreview:Lm,stopGuides:cg,removeAllBadges:ng,_:_,sizzle:lo,tellMaster:Ws,tell:Ws,log:Z0,attachEvent:F,createLauncher:_.constant({}),removeLauncher:_.noop,addGuideToLauncher:_.noop,updateLauncherContent:_.noop,DEFAULT_TIMER_LENGTH:sg,getOffsetPosition:ja,getScreenDimensions:Ba,registerMessageHandler:Ps,whenLoadedCall:Vf,loadResource:Rs,loadGuideCss:vv,GuideFactory:qc,GuideStep:Wc,extractElementTreeContext:Mf,previewGuideFromJSON:Ug.previewGuideFromJSON,hidePreviewedGuide:Ug.hidePreviewedGuide,shadowAPI:Bi,getTarget:yo,pullContentsFromTargetElement:Am,doesElementMatchContainsRules:km,doesElementContentMatchRule:Om,getGuideAttachPoint:ec}).areGuidesEnabled=!kv(),E.designer||(E.designer=WS)},i1=function(){var r,o,a;let s;return{name:"DesignerConnect",initialize:function(e,t){r=e,o=t,Js()||Ps("connect",i);Ps("pendo-designer-launch::launch",c),Ps("pendo-preview::launch",l),e.app_name=document.title,(Vs()||window.opener)&&window.addEventListener&&(r.log(e.app_name+": listening to messages"),window.addEventListener("message",Os,!1));r.onConnectMessage=i,o.Events.ready.on(n)},teardown:function(){window.removeEventListener&&window.removeEventListener("message",Os,!1),d(),Ds("connect"),Ds("pendo-designer-launch::launch"),Ds("pendo-preview::launch"),s&&(o.Events.appUnloaded.off(s),s=undefined);a=a&&undefined;o.Events.ready.off(n)},onConnectMessage:i,disconnectDesigner:d,launchDesignerListener:c,launchPreviewListener:l,sendToken:u};function n(){var e;window.opener&&r._.isFunction(window.opener.postMessage)&&(e=r.getConfigValue("secureDesignerConnect")?ut:"*",window.opener.postMessage({type:"pendo::ready"},e))}function i(e,t){var n,i;r.designer||(n=t.origin,r.stopGuides(),r.buffers.lock(),i=t.source,Ts=i,r.designerv2.hostConfig||(o.store.dispatch("frames/leave"),s=r._.partial(d,i,n),o.Events.appUnloaded.on(s)),n1(),Ws(t.source,{status:"success",type:"connect"},n),Hs("selection.js")&&(r.log("Designer Modules already loaded."),Ws({type:"ready"},n)),o.Events.designerLaunched.trigger())}function d(e,t){r.buffers.unlock(),E.designer&&(E.designer=null,delete E.designer),e&&Ws(e,{type:"unload"},t)}function u(e,t){var n;a&&(n={token:a,type:"pendo-designer-launch::set-token"},t.source.postMessage(n,t.origin),a=undefined)}function c(e,t){var n,i=t.data.token;i?i.publicAppId&&i.publicAppId!==r.publicAppId?(r.log(`Designer launch information received was for public app ID ${i.publicAppId}, which does not match the current app ID ${r.publicAppId}. Ignoring launch request.`),p(t,"appIdMismatch")):i.preferredAgentInstallType&&i.preferredAgentInstallType!==Ae()?(r.log(`Designer launch information received was for install type ${i.preferredAgentInstallType}, which does not match the current install type ${Ae()}. Ignoring launch request.`),p(t,"installTypeMismatch")):(a=i,Ps("pendo-designer-launch::get-token",u),n=i.DADesigner?"da-designer":"in-app-designer",n={lookaside:i.baseUrl,host:i.host,target:i.target||"latest",DADesigner:!!i.DADesigner,gcsBucket:i.gcsBucket||n,forceNativeDesigner:!!i.forceNativeDesigner,sidebarDesigner:!!i.sidebarDesigner},r.designerv2.launchInAppDesigner(n)):(r.log("Designer launch request received with no token. Ignoring launch request."),p(t,"missingToken"))}function l(e,t){var n=t.data.config.preferredAgentInstallType;n&&n!==Ae()?r.log("Skipping preview launch due to agent install type mismatch."):(n=r._.extend({},t.data.config,{origin:t.origin}),Qo()&&(n.apiKey=r.apiKey),o.store.dispatch("preview/exitDesignerPreview"),o.store.dispatch("preview/start",n),xy(window)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:r.apiKey,accountId:r.accountId},t.origin),Wv(),o.store.dispatch("frames/startPreview")))}function p(e,t){e.source&&r._.isFunction(e.source.postMessage)&&e.source.postMessage({type:"pendo-designer-launch::error",reason:t},e.origin)}}();function r1(e,n){return e.length==n.length&&_.all(e,function(e,t){return e===n[t]})}class o1{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=lo(n.selector)}catch(i){t=[]}t.length>this.maxTargets&&(t.length=this.maxTargets),r1(t,n.targets)||(n.targets=t,this.domActivation.detach(n,this.domActivation.targets),_.each(t,function(e){this.domActivation.attach(e,n,this.domActivation.targets)},this))}}handleProcessTimeExceeded(e){e=e.getContext();e&&T.warn("Element activated guide ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var a1,s1,d1,u1,c1,l1={name:"DOMActivation",key:d1="pendoTargetId",guides:u1=[],targets:c1={},reset:m1,init:y1,attach:function(n,i,e){var t=n[d1],r=t?e[t]:null;r||(t=t||"target"+_.uniqueId(),r={target:n,events:{}},e[t]=r,n[d1]=t);var o=e[i.id]||[];o.push(t),e[i.id]=o,_.each(i.events,function(e){var t=r.events[e];t||((t={guideIds:{}}).fn=_.partial(g1,_,t.guideIds),F(n,e="mouseover"===e?"mouseenter":e,t.fn),r.events[e]=t),t.guideIds[i.id]=1})},detach:f1,handler:g1,activates:v1,prefetch:b1,initialize:function(e,t){(a1=t).Events.on("deliverablesLoaded",m1),t.Events.on("guideListChanged",p1),t.Events.on("guidesLoaded",h1),Eg(s1=new o1(l1))},teardown:function(){Ig(s1),a1.Events.off("deliverablesLoaded",m1),a1.Events.off("guideListChanged",p1),a1.Events.off("guidesLoaded",h1)}};function p1(){m1(),y1(Fu())}function h1(){b1(Fu())}function f1(i,t){_.each(t[i.id],function(e){var n=e?t[e]:null;n&&(_.each(n.events,function(e,t){e&&e.guideIds&&(delete e.guideIds[i.id],_.size(e.guideIds)<=0)&&(qf(n.target,t="mouseover"===t?"mouseenter":t,e.fn),delete n.events[t])}),_.size(n.events)<=0)&&(delete n.target[d1],n.target=null,delete t[e])}),delete t[i.id]}function g1(e,t){var n;!e.pendoActivatedGuide&&!M.data.get(e,"advanced")&&(n=C.get("adoptPrioritizeAdoptGuides"),t=_.compact(_.map(_.keys(t),b)),t=_.filter(t,function(e){return!(!e.steps||!e.steps.length||_.get(e,"attributes.dom.isOnlyShowOnce")&&e.steps[0].hasBeenSeen())}),t=_(t).chain().sortBy(function(e){return"staged"===e.state?0:1}).sortBy(function(e){e=e.isTraining;return n?e?0:1:e?1:0}).value(),t=_.find(t,function(e){var t=_.first(e.steps);return _.get(e,"attributes.resourceCenter",!1)&&e.isShown()?D.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||Dm(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function m1(){_.each(u1,function(e){f1(e,c1),e.targets=[]}),u1.length=0}function v1(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(ku())){var t=_.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=rc(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function y1(e){_.each(e,function(e){e=v1(e);e&&u1.push(e)})}function b1(e){C.get("disablePrefetch")||_.each(e,function(e){_.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&_.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent(!0)})}const w1="embeddedGuidesReposition",S1=function(){let i,r,o;const t=[];return{name:"EmbeddedGuides",activeEmbeddedGuides:t,initialize:function(e,t){i=t,r=e,o=r._,function(e){e.getEmbeddedGuides=E1,e.getActiveEmbeddedGuides=I1}(e),Wc.behaviors.push(c),i.Events.on("deliverablesLoaded",d),i.Events.on("eventCaptured",s),i.GuideLoop.addUpdatePhase(a,w1)},teardown:function(){i.Events.off("deliverablesLoaded",d),i.Events.off("eventCaptured",s),i.GuideLoop.removeUpdatePhase(w1);var e=Wc.behaviors.indexOf(c);-1!==e&&Wc.behaviors.splice(e,1)}};function n(e){return!!(e&&o.isFunction(e.isShown)&&e.isShown())}function a(){o.some(t,n)&&o.each(r.guides,function(e){!u(e)&&n(e)&&o.each(e.steps,function(e){o.isFunction(e.isShown)&&e.isShown()&&o.isFunction(e.checkPlacement)&&e.checkPlacement()})})}function s(e){var t,n=o.get(e,"data.0");n&&"guideSeen"===n.type&&u(t=r.findGuideById(n.props.guide_id))&&(t=t&&r.findStepInGuide(t,n.props.guide_step_id))&&t.lastSeenAt&&(e.cancel=!i.ConfigReader.get("enableAllEmbeddedGuideEvents"))}function d(){t.length=0,o.each(r.guides,function(e){u(e)&&(e.launchMethod="auto",e.channel=e.id,e.attributes.overrideAutoThrottling=!0,t.push(e))})}function u(e){return e=e,o.get(e,"attributes.embedConfig")}function c(e){return u(e)&&(this.show=o.wrap(this.show,function(e){return e.call(this,"embed")})),this}}();function E1(){return S1.activeEmbeddedGuides}function I1(){return S1.activeEmbeddedGuides.filter(e=>e.isShown())}function _1(e,i){return"undefined"!=typeof Proxy&&_.isFunction(i)?new Proxy(e,{get(e,t){if("textContent"===t)return i(e);if("parentNode"===t){var n=e[t];if(e.ownerDocument!==n)return _1(e[t],i)}return _.isFunction(e[t])?function(){return e[t].apply(e,arguments)}:e[t]}}):e}const C1=function(){let d,h,f,g,t,u,m,i;const v=3,n="eventPropertyTimeout",r=Ru(function(n){{var e;f.eventProperties&&f.eventProperties.length&&(e=function p(i,e){var r=g.ConfigReader.get("eventPropertyMatchParents");var t=S();var n={};var o;var a;var s=f.eventProperties.length;for(a=0;a<s&&S()-t<e;a++){o=f.eventProperties[a];var d=f._.any(o.featureRules,function(e){try{var t=y(r,h);return t(i,e)}catch(n){return!1}});if(d)for(var u=0;u<o.eventPropertyRules.length&&S()-t<e;u++){var c=o.eventPropertyRules[u];if(!c.name)return;n[c.name]=w(c,i)}}var l=S()-t;if(e<l){if(r&&h===f._.identity&&f._.isFunction(f.getText))return f.log("switching event property collection to fast text implementation"),h=function(e){return _1(e,function(e){return f.getText(e,128)})},p(i,e);m++,b({threshold:e,featureId:o.featureId,elapsedTime:l,failureCount:m,index:a,length:s}),m>=v&&(f.eventProperties=[])}else m=0;return n}(n.target,i),f._.each(f._.pairs(e),([e,t])=>{n.addEventProperty(e,t)}))}}),o=Ru(function(){var e={};if(d)return{};var t=g.ConfigReader.get("eventPropertyConfigurations");if(!t||f._.isEmpty(t))return{};if(e=function(e,t){var n,i,r=S(),o={};for(i=0;i<e.length&&S()-r<t;i++){if(!(n=e[i]).name)return;var a=w(n);I(a)&&(o["_pendo_"+n.name]=a)}var s=S()-r;t<s?(u++,b({threshold:t,name:n.name,elapsedTime:s,failureCount:u,index:i,length:e.length})):u=0;u>=v&&(d=!0);return o}(t,i),f._.isEmpty(e))return{};return e});return{name:"EventProperties",initialize:function(e,t){f=e,g=t,h=f._.identity,d=!1,u=0,m=0;e=t.ConfigReader;e.addOption(n,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],50),i=e.get(n),f.getEventPropertyTarget=l,f.previewEventProperty=w,g.Events.onClickCaptured.off(s),g.Events.onClickCaptured.on(s),g.Events.ready.on(c),g.Events.deliverablesLoaded.on(a)},teardown:function(){g.Events.onClickCaptured.off(s),g.Events.ready.off(c),g.Events.deliverablesLoaded.off(a),g.store.dispatch("location/removeInternalTransforms",t),t=[],g.store.dispatch("location/stopPolling"),u=0,m=0},collectClickEventProperties:r,collectEventProperty:w,collectPageEventProperties:o,getEventPropertyTarget:l,addPageEventProperties:c};function a(){m=0}function y(e,n){return e?function(e,t){return 0<f.dom(n(e)).closest(t).length}:function(e,t){return f.Sizzle.matchesSelector(e,t)}}function s(e){r(e.data[0])}function c(){var e;t=(e=g.ConfigReader.get("eventPropertyConfigurations"))&&!f._.isEmpty(e)?[new Cw("search","AddTo",function(){return o()})]:[],g.store.dispatch("location/addInternalTransforms",t),0<t.length&&g.store.dispatch("location/startPolling")}function b({threshold:e,featureId:t,name:n,elapsedTime:i,failureCount:r,index:o,length:a}){t=`ERROR ${t?"click":"page"} event property collection timeout (${t||n}).`;t+=` ${i}ms/${e}ms, ${o}/${a} properties, ${r}/${v} failures`,r>=v&&(t+=", collection disabled."),g.log.critical(t)}function w(e,t){if(e.path)return t=l(e,t),f._.get(t,e.path,undefined)}function l(e,t){e=e.source||e.selector;if(e&&t){for(var n,i=e,r=t;!n&&r;){try{if((n=f.Sizzle.matchesSelector(r,i)?r:f.Sizzle(i,r)[0])&&("password"===n.type||"hidden"===n.type))return}catch(o){return}r=Bi.getParent(r)}return n}return e?!(t=f.Sizzle(e)[0])||"password"!==t.type&&"hidden"!==t.type?t:void 0:window}}(),T1={children:[],props:{"class":"_pendo-step-container","data-layout":"tooltipBlank",id:"pendo-base"},type:"div"},x1={css:[],props:{scoped:"scoped",type:"text/css"},type:"style"},R1={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"},A1={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"},k1={children:[],props:{"class":"_pendo-text-paragraph",style:{}},type:"div"};function O1(e,t){return{content:t,props:{id:"text-"+e,"class":"_pendo-text-plain",style:{color:"gray",margin:0}},type:"p"}}function N1(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 M1=`
10
10
  <svg xmlns="http://www.w3.org/2000/svg"
11
11
  width="10" height="10" fill="none"
12
12
  stroke="gray" stroke-linecap="round" stroke-linejoin="round"
13
13
  stroke-width="2" viewBox="0 0 10 10">
14
14
  <line x1="2" y1="5" x2="8" y2="5"/>
15
15
  </svg>
16
- `,M1=`
16
+ `,L1=`
17
17
  <svg xmlns="http://www.w3.org/2000/svg"
18
18
  width="10" height="10" viewBox="0 0 10 10"
19
19
  fill="none" stroke="green" stroke-width="2"
@@ -21,7 +21,7 @@ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{
21
21
  class="feather feather-check">
22
22
  <polyline points="2 5 4 7 8 2"></polyline>
23
23
  </svg>
24
- `,L1=`
24
+ `,P1=`
25
25
  <svg xmlns="http://www.w3.org/2000/svg"
26
26
  width="10" height="10" viewBox="0 0 10 10"
27
27
  fill="none" stroke="red" stroke-width="2"
@@ -30,10 +30,10 @@ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{
30
30
  <line x1="2" y1="2" x2="8" y2="8"/>
31
31
  <line x1="8" y1="2" x2="2" y2="8"/>
32
32
  </svg>
33
- `,P1={emailRegex:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,phoneRegex:/^(\+\d{1,2}\s?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/,urlRegex:/^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/},D1={"MM-DD-YYYY":/^(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])-(19|20)\d\d$/,"DD-MM-YYYY":/^(0[1-9]|[12][0-9]|3[01])-(0[1-9]|1[0-2])-(19|20)\d\d$/,"MM/DD/YYYY":/^(0[1-9]|1[0-2])\/(0[1-9]|[12][0-9]|3[01])\/(19|20)\d\d$/,"DD/MM/YYYY":/^(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[0-2])\/(19|20)\d\d$/,"YYYY-MM-DD":/^(19|20)\d\d-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/};var F1={email(e){return P1.emailRegex.test(e)},phone(e){return P1.phoneRegex.test(e)},date(e,t={}){return(D1[t.format]||D1["MM/DD/YYYY"]).test(e)},url(e){return P1.urlRegex.test(e)},number(e,t={}){if(""===e)return!1;let{min:n,max:i,allowDecimal:r}=t;var t=U1(n),o=U1(i),e=(t&&(n=Number(n)),o&&(i=Number(i)),Number(e));return!isNaN(e)&&!(t&&e<n||o&&e>i||!r&&e%1!=0)},characterLength(e,t={}){let{min:n,max:i}=t;var t=U1(n),r=U1(i);return t&&(n=Number(n)),r&&(i=Number(i)),!(t&&e.length<n||r&&e.length>i)}};function U1(e){return e!==undefined&&null!==e&&""!==e}const G1="formValidation",B1=function(){let r,o,i=[],a,d,u,c=null,s;return{name:"FormValidation",CHANNEL:G1,validationGuides:i,debouncedValidate:a,initialize:function(e,t){var n=t.ConfigReader.get("formValidation");if(n){r=e,o=t,a=_.debounce(w,100),o.Events.on("deliverablesLoaded",p),o.Events.on("guideLoopStopped",h),o.Events.on("guideListChanged",f),o.GuideLoop.addUpdatePhase(g);const i=!(null===r||void 0===r||!r.designer);s=setInterval(()=>{i&&(l(),clearInterval(s),s=null)},1e3),e.attachEvent(document,"focusin",v),e.attachEvent(document,"focusout",y),e.attachEvent(document,"input",a)}},teardown:l,appendValidationStyles:m,getActiveStep:function(){return d},setActiveStep:function(e){d=e},setActiveField:function(e){u=e},getActiveField:function(){return u},getActiveFieldIsValid:function(){return c},setActiveFieldIsValid:function(e){c=e},getValidationGuides:function(){return i},setValidationGuides:function(e){i=e},initializeFormValidation:f,onDeliverablesLoaded:p,clearAllValidationGuides:e,extractValidationGuides:n,applyFormBehaviors:t,checkValidationFieldVisibility:g,hideValidationTooltip:h,focusField:v,blurField:y,findFieldByElement:b,validateInput:w,validateField:S,getRuleText:E,setValidationStyle:I};function l(){o&&(s&&(clearInterval(s),s=null),o.Events.off("deliverablesLoaded",p),o.Events.off("guideLoopStopped",h),o.Events.off("guideListChanged",f),o.GuideLoop.removeUpdatePhase(g),r.detachEvent(document,"focusin",v),r.detachEvent(document,"focusout",y),r.detachEvent(document,"input",a),a.cancel(),i=[],d=null,u=null,c=null)}function p(){e(),r&&r.guides&&_.each(r.guides,n)}function e(){i=[]}function h(){r.detachEvent(document,"focusin",v),u&&(u=null,c=null),d&&(d.hide({validationHidden:!0}),d=null)}function f(){m(),t()}function t(){_.map(i,function(e){_.map(e.steps,function(e){var t=function(){if(!this.attributes)return T.info("buildFormStepBehaviors called with invalid context"),{};const t=this,n=t.show,i=t.hide;return{show:function(e){return!t.attributes.validationHidden&&n.call(t,e)},hide:function(e){return e&&e.validationHidden&&(t.attributes.validationHidden=!0),i.call(t,e)}}}.call(e);Object.assign(e,t)})})}function g(){!u||(e=r.Sizzle(d.elementPathRule)[0])&&r.isElementVisible(e)||(u=null,c=null,d.hide({validationHidden:!0}),d=null);var e=ho.get(document);((null==(e=e.bubbleEvents)?void 0:e.focusin)||[]).some(e=>e.handler===v)||r.attachEvent(document,"focusin",v)}function n(t){return"form"!==t.launchMethod||_.some(i,({id:e})=>e===t.id)||(t.channel=G1,i.push(t)),!0}function m(){0!==i.length&&o.util.addInlineStyles("pendo-form-validation-styles",`input[data-pendo-field-valid="false"] {
33
+ `,D1={emailRegex:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,phoneRegex:/^(\+\d{1,2}\s?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/,urlRegex:/^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/},F1={"MM-DD-YYYY":/^(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])-(19|20)\d\d$/,"DD-MM-YYYY":/^(0[1-9]|[12][0-9]|3[01])-(0[1-9]|1[0-2])-(19|20)\d\d$/,"MM/DD/YYYY":/^(0[1-9]|1[0-2])\/(0[1-9]|[12][0-9]|3[01])\/(19|20)\d\d$/,"DD/MM/YYYY":/^(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[0-2])\/(19|20)\d\d$/,"YYYY-MM-DD":/^(19|20)\d\d-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/};var U1={email(e){return D1.emailRegex.test(e)},phone(e){return D1.phoneRegex.test(e)},date(e,t={}){return(F1[t.format]||F1["MM/DD/YYYY"]).test(e)},url(e){return D1.urlRegex.test(e)},number(e,t={}){if(""===e)return!1;let{min:n,max:i,allowDecimal:r}=t;var t=G1(n),o=G1(i),e=(t&&(n=Number(n)),o&&(i=Number(i)),Number(e));return!isNaN(e)&&!(t&&e<n||o&&e>i||!r&&e%1!=0)},characterLength(e,t={}){let{min:n,max:i}=t;var t=G1(n),r=G1(i);return t&&(n=Number(n)),r&&(i=Number(i)),!(t&&e.length<n||r&&e.length>i)}};function G1(e){return e!==undefined&&null!==e&&""!==e}const B1="formValidation",H1=function(){let r,o,i=[],a,d,u,c=null,s;return{name:"FormValidation",CHANNEL:B1,validationGuides:i,debouncedValidate:a,initialize:function(e,t){var n=t.ConfigReader.get("formValidation");if(n){r=e,o=t,a=_.debounce(w,100),o.Events.on("deliverablesLoaded",p),o.Events.on("guideLoopStopped",h),o.Events.on("guideListChanged",f),o.GuideLoop.addUpdatePhase(g);const i=!(null===r||void 0===r||!r.designer);s=setInterval(()=>{i&&(l(),clearInterval(s),s=null)},1e3),e.attachEvent(document,"focusin",v),e.attachEvent(document,"focusout",y),e.attachEvent(document,"input",a)}},teardown:l,appendValidationStyles:m,getActiveStep:function(){return d},setActiveStep:function(e){d=e},setActiveField:function(e){u=e},getActiveField:function(){return u},getActiveFieldIsValid:function(){return c},setActiveFieldIsValid:function(e){c=e},getValidationGuides:function(){return i},setValidationGuides:function(e){i=e},initializeFormValidation:f,onDeliverablesLoaded:p,clearAllValidationGuides:e,extractValidationGuides:n,applyFormBehaviors:t,checkValidationFieldVisibility:g,hideValidationTooltip:h,focusField:v,blurField:y,findFieldByElement:b,validateInput:w,validateField:S,getRuleText:E,setValidationStyle:I};function l(){o&&(s&&(clearInterval(s),s=null),o.Events.off("deliverablesLoaded",p),o.Events.off("guideLoopStopped",h),o.Events.off("guideListChanged",f),o.GuideLoop.removeUpdatePhase(g),r.detachEvent(document,"focusin",v),r.detachEvent(document,"focusout",y),r.detachEvent(document,"input",a),a.cancel(),i=[],d=null,u=null,c=null)}function p(){e(),r&&r.guides&&_.each(r.guides,n)}function e(){i=[]}function h(){r.detachEvent(document,"focusin",v),u&&(u=null,c=null),d&&(d.hide({validationHidden:!0}),d=null)}function f(){m(),t()}function t(){_.map(i,function(e){_.map(e.steps,function(e){var t=function(){if(!this.attributes)return T.info("buildFormStepBehaviors called with invalid context"),{};const t=this,n=t.show,i=t.hide;return{show:function(e){return!t.attributes.validationHidden&&n.call(t,e)},hide:function(e){return e&&e.validationHidden&&(t.attributes.validationHidden=!0),i.call(t,e)}}}.call(e);Object.assign(e,t)})})}function g(){!u||(e=r.Sizzle(d.elementPathRule)[0])&&r.isElementVisible(e)||(u=null,c=null,d.hide({validationHidden:!0}),d=null);var e=ho.get(document);((null==(e=e.bubbleEvents)?void 0:e.focusin)||[]).some(e=>e.handler===v)||r.attachEvent(document,"focusin",v)}function n(t){return"form"!==t.launchMethod||_.some(i,({id:e})=>e===t.id)||(t.channel=B1,i.push(t)),!0}function m(){0!==i.length&&o.util.addInlineStyles("pendo-form-validation-styles",`input[data-pendo-field-valid="false"] {
34
34
  border-color: red !important;
35
35
  outline-color: red !important;
36
- }`)}function v(e){var t,n,i,r,o,a,s,e=e["target"];"INPUT"===e.tagName&&(t=b(e))&&d&&(d.attributes.validationHidden=!1,d.domJson||(n=u.rules[0],i=k1("context-"+u.id,u.context),n=null!=n&&n.type?function(e,t){return{props:{id:"rule-"+e,"class":"text-row",style:{display:"flex","align-items":"center"}},children:[k1(e,t)],type:"div"}}(n.id,n.ruleText):null,0!==(i=[i,n].filter(Boolean)).length&&(n=Ce(C1),r=Ce(T1),o=Ce(x1),a=Ce(R1),s=Ce(A1),n.children.push(r,o),o.children.push(a),a.children.push(s),s.children=i,d.domJson=n)),d.show("api"),(o=document.getElementById("rule-"+(null==(r=null===u||void 0===u?void 0:u.rules[0])?void 0:r.id)))&&null!=(a=null===u||void 0===u?void 0:u.rules[0])&&a.type&&(s=null===u.isValid?O1(N1):c?O1(M1):O1(L1),o.insertBefore(s,o.firstChild)),""!==t.value)&&S(e)}function y(e){e=e.target;u&&d&&(r.Sizzle.matchesSelector(e,null===d||void 0===d?void 0:d.elementPathRule)&&I(e,c),d.hide({validationHidden:!0}),null===u.isValid&&!1===c&&(E().props.style.color="red"),u.isValid=c,u=null,d=null,c=null)}function b(t){d&&d.hide({validationHidden:!0}),d=null,u=null,c=null;for(const n of i){var e=_.find(n.steps,function(e){return r.Sizzle.matchesSelector(t,e.elementPathRule)});if(e)return d=e,u=null==(e=e.attributes)?void 0:e.field,c=u.isValid,u}return null}function w(e){var t,e=e["target"];r.Sizzle.matchesSelector(e,null===d||void 0===d?void 0:d.elementPathRule)?S(e):(t=b(e))&&(c=t.isValid,S(e))}function S(t){var n=null===u||void 0===u?void 0:u.rules[0];if(n){var i=F1[n.type];if(i){n=i(t.value,n.options),i=(c=!!n,E());let e;null===u.isValid?(i.props.style.color=n?"green":"gray",e=O1(n?M1:N1)):(i.props.style.color=n?"green":"red",e=O1(n?M1:L1),I(t,n)),d.hide({stepHidden:!0}),d.show("api");i=document.getElementById("rule-"+u.rules[0].id);i&&i.insertBefore(e,i.firstChild)}}}function E(){return Xc("text-"+u.rules[0].id,d.domJson)}function I(e,t){!1===t?e.setAttribute("data-pendo-field-valid",!1):e.removeAttribute("data-pendo-field-valid")}}(),H1=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 E="errorClickLogging",I=1500;let _=!1;return{name:"FrustrationEvent",initialize:function(e,t){S=e,c=S._,i=t,a=0,l=[],f=[],y={},_=i.ConfigReader.get(E),this.detachErrorEvent=i.attachEvent(window,"error",P,!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],x,!0));break;case"visibilitychange":t.push(i.attachEvent(window,e[n],()=>{T(250)},!0));break;default:t.push(i.attachEvent(window,e[n],T,!0))}return t}(),i.Events.on("eventCaptured",D),i.agentStorage.registry.addSession(w),S.sniffer.MutationObserver&&(_0.observing?_0.addEventListener("mutation",R):function(){var e=At("MutationObserver");n=new e(A);try{n.observe(S.dom.getBody(),{childList:!0,attributes:!0,subtree:!0})}catch(t){n=null}}())},teardown:function(){i.Events.off("eventCaptured",D),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();_0.observing&&_0.removeEventListener("mutation",R)},addErrorClickLog:N,getErrorEventTarget:L,checkErrorEvent:P,observeDOMMutation:A,checkFrustrationEvent:D};function C(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()){(l=c.filter(l,e=>t-e.timestamp<=p)).length&&Ut(C,p)}function T(e=g){v=!1,c.each(y,e=>{Gt(e)}),y={},Ut(()=>{v=!0},e)}function x(){var e=document.getSelection().toString();(b||e.length)&&(T(),b=!!e.length)}function R({mutation:e=[]}={}){A(e)}function A(e){e.length&&T()}function t(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function k(e){return e&&t(e.element)}function O(e,t){var{frustrationTypes:n=[]}=e;c.contains(n,t)||(n.push(t),e.frustrationTypes=n,S.buffers.flushLater())}function N(e,t){let n;var{detail:i={}}=t;(n=(k(i)&&i.error?i.error:t).message)&&n.length>I&&(n=n.substring(0,I)),e.errorClickLog=n}function M(e,t){var n=t.target&&"A"===t.target.tagName&&c.isFunction(t.target.hasAttribute)&&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],O(r,"deadClick")},g);y[o]=o}l.length>h&&l.pop(),l.unshift({target:t.target,activeElement:document.activeElement,browser_time:e.browser_time,timestamp:t.timeStamp}),Ut(C,p),c.each(f,e=>{P(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,O(e,"rageClick"))):(s=e.browser_time,d=t.x,u=t.y,a=1)}function L(e){if(t(e.target))return{detail:e={}}=e,k(e)?e.element:t(document.activeElement)?document.activeElement:void 0}function P(t){const n=L(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&&(O(e,"errorClick"),_)&&N(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)&&O(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 D(e){var t=e.data[0],e=e.data[1],e=("click"===t.type&&e&&M(t,e),"load"===t.type&&F(t),"submit"!==t.type&&"change"!==t.type||T(),c.has(e,"target")&&c.contains(m,e.target.tagName));"focus"===t.type&&e&&T()}}(),z1={};function j1(e){return 1===_.keys(e).length&&e.id}const W1={name:"GuideCache",initialize(e,t){this.onGuidesReceived=_.bind(this.guidesReceived,this),this.onEventCaptured=_.bind(this.eventCaptured,this),t.Events.on("guidesReceived",this.onGuidesReceived),this.subscriptions=[t.attachEvent(t.Events,"eventCaptured",this.onEventCaptured)]},teardown(e,t){t.Events.off("guidesReceived",this.onGuidesReceived),_.each(this.subscriptions,function(e){e()}),this.subscriptions=[]},guidesReceived(e){_.each(_.keys(z1),function(e){delete z1[e]});var t,n,i,r,e=e.data[0];e&&e.guideCache&&e.guides&&(n=e.guides,t=e.guideCache,n&&t&&_.each(n,function(i){if(i&&i.id){if(j1(i)){const r=t.get(i.id);return r&&r.steps?void _.each(r.steps,function(e){var t;e&&e.id&&(t={payload_seen_state:null},_.isUndefined(e.seenState)||null===e.seenState||(t.cached_seen_state=e.seenState),z1[i.id+":"+e.id]=t)}):void 0}const r=t.get(i.id);_.each(i.steps||[],function(e){var t,n;e&&e.id&&(t={payload_seen_state:_.isUndefined(e.seenState)?null:e.seenState},(n=r&&_.findWhere(r.steps,{id:e.id}))&&!_.isUndefined(n.seenState)&&null!==n.seenState&&(t.cached_seen_state=n.seenState),z1[i.id+":"+e.id]=t)})}}),e.guides=(n=e.guides,i=e.visitorId,r=e.guideCache,n&&(r?_.map(n,function(e){return j1(e)?r.get(e.id):(r.add(e,i),e)}):n)))},eventCaptured(e){var t,n;e&&e.data&&e.data.length&&(e=e.data[0])&&"guideSeen"===e.type&&_.contains(["auto","continue"],e.props.reason)&&(t=e.props.guide_id,n=e.props.guide_step_id,t=z1[t+":"+n])&&(e.props.payload_seen_state=t.payload_seen_state,_.isUndefined(t.cached_seen_state)||(e.props.cached_seen_state=t.cached_seen_state))}},q1=function(){const i="pendo-loader";let r,o,n,a;return{name:"IFrameMonitor",initialize:function(e,t){r=e,o=t,function(){o.ConfigReader.get("autoFrameInstall")&&o.Events.ready.on(p);a=o.ConfigReader.get("frameIdentitySync"),o.Events.childFrameJoined.on(s),a&&(o.Events.metadata.on(f),o.Events.identify.on(g))}(),n=o.ConfigReader.get("frameIdentityTopDownOnly")},teardown:function(){o.Events.ready.off(p),o.Events.metadata.off(f),o.Events.identify.off(g),o.Events.childFrameJoined.off(s)}};function s(){var e;(e=l0())&&o.store.dispatch("frames/changeCookieConsent",{tiers:e}),a&&m()}function d(e){return e.ignoreIframeMonitor||e.pendo&&(e.pendo.initialize||e.pendo.iframeWaiting)||e.document&&e.document.body&&!e.document.body.hasChildNodes()||!!e.document.getElementById(i)}function u(e,t){var n;d(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 c(e,t){e.pendo.iframeWaiting=!1,u(e,t)}function l(e){try{if(d(e))return}catch(n){return}var t=function(){var e=o.ConfigReader.get("selfHostedAgentUrl");if(e)return e;e=r.dom("script");const t=/\/pendo(\.\w+)?\.js$/;return(e=r._.find(e,e=>t.test(e.src)))&&e.src}();t?"complete"===e.document.readyState?u(e,t):(e.pendo={iframeWaiting:!0},e.addEventListener("load",r._.partial(c,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++)l(window.frames[e]);Ut(e,250)}function p(){e()}function h(){return!n||n&&o.store.getters["frames/isLeader"]()}function f(e){h()&&(e=null==(e=e.data)?void 0:e[0]).storeChanged&&o.store.dispatch("frames/syncOptions",{options:e.options})}function g(e){var t;m(null==(t=e.data)?void 0:t[0].visitor_id,null==(t=e.data)?void 0:t[0].account_id)}function m(e=v(),t=Ai()){h()&&o.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}}(),V1=function(){let o,a,s;var d="objectMetadata";function n(e,t,n){var i,r;u(e)&&u(t)?(i=JSON.stringify([e,t]),r=_t(n),s.get(i)===r?(s["delete"](i),s.set(i,r)):(s["delete"](i),s.set(i,r),10<s.size&&s["delete"](s.keys().next().value),a.agentStorage.write(d,Array.from(s)),a.analytics.collectEvent("objectMetadata",{objectId:e,type:t,metadata:n}),o.buffers.flushLater())):a.log.warn("objectMetadata requires a non-empty objectId and type.")}return{name:"ObjectMetadata",initialize:function(e,t){o=e,(a=t).agentStorage.registry.addLocal(d,{isSecure:!0,localStorageOnly:!0,serializer:JSON.stringify,deserializer:gn}),s=function(){var e=a.agentStorage.read(d);return Array.isArray(e)?new Map(e):new Map}(),o.objectMetadata=n},teardown:function(){delete o.objectMetadata},objectMetadata:n};function u(e){return"string"==typeof e&&0<e.length}}(),K1=function(){let n,i,r;return{name:"OemAccountId",initialize:function(e,t){n=t,(i=n.ConfigReader.get("oemAccountId"))&&(r=function(e){e=e,i&&e&&e.data&&e.data[0]&&(e.data[0].oem_account_id=i)},n.Events.on("eventCaptured",r))},teardown:function(){r&&n.Events.off("eventCaptured",r)}}}();var $1=null,J1=function(){return Zu()?qu:Wu},Y1=function(e){return"#_pendo_g_"+e.id},X1=function(e,t){$1=null;var n,i,r,o,e=ja(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(J1()),o=sE(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"}),M("._pendo-guide-container_",n).addClass(o.arrowPosition).css({top:o.content.top,left:o.content.left,width:o.content.width,height:o.content.height}),Z1(n[0],o),n[0])},Z1=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=_.chain(n).filter(function(e){return e!==o}).map(function(e){return"border-"+e+"-width:"+E.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=M("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),d=M("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");_.each(n,function(e){s.removeClass(i+e+"_").removeClass(e),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;"),M(e).append(s).append(d)},Q1=function(e,t){t===undefined&&(t=Mu),e.element=tc(e);var n=e.element;if(!n)return T.info("No element found for step: "+e.id),null;ls(n);var i=X1(n,e);return null===i?null:(i.id=E.getTooltipDivId(e),M(i).appendTo(Qu()),t.push(i),F(i,"mouseover",_.partial(M.addClass,i,"mouseover")),F(i,"mouseout",_.partial(M.removeClass,i,"mouseover")),rc(n,i),rE(e),n)},eE=null,tE=null;var nE=null,iE={top:"north",left:"east",bottom:"south",right:"west"},rE=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=ml(n=n.concat(_.compact(_.flatten(_.map(t.additionalElements,function(e){return _.toArray(M(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=gl(a=fl(),i,o),h=i,f=!_.isEqual(h,eE),eE=h,f||(l=a,p=!_.isEqual(l,tE),tE=l,p)||(u=s,c=!_.isEqual(u,nE),nE=u,c))&&(d={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(d["background-color"]=t.bgColor),t.opacity&&(d.opacity=t.opacity),_.each(s,function(e,t){t=iE[t],e=_.extend({},e,d),t=M("div._pendo-guide-tt-region-block_._pendo-region-"+t+"_")[0]||oE(t),M(t).css(e)}))}catch(g){T.info("Failed to add BlockOut ui",{contexts:["error"]})}var u,c,l,p,h,f},oE=function(e){e=M(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");M("body").append(e)},aE=function(e){var t=_.isEqual(e,$1);return $1=e,!t},sE=function(e,t,n,i){var r=E.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=Ba();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=dE(o,e,a,i=i||"auto"),o=uE(o,e,a,i),o=cE(o,e,a)},dE=function(e,t,n,i){return e.arrow.hbias=Ml(t,n,i),e},uE=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-sa(),t=(r=t.left-da())+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},cE=function(e,t,n){var i,r,o,a=e.height,s=e.width;return tt()?nt(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=Me(9,6)?6:2,i=-1):"bottom"==e.arrowPosition&&(e.top=t.top-a,e.arrow.top=a-E.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=Me(9,6)?6:0,e.arrow.top+=8==Le?-1:0,i=1),r=10+E.TOOLTIP_ARROW_SIZE,o=s-3*E.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==kl?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==Ol?(e.left=t.left-s+t.width/2+(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=o):(e.left=t.left+t.width/2-s/2,e.arrow.left=s/2-E.TOOLTIP_ARROW_SIZE),!1!==e.arrow.floating&&(n=e.left+s-n.width,0<(n-=Math.max(0,e.arrow.left+n-o))&&(e.left-=n,e.arrow.left+=n),o=-e.left,0<(o-=Math.max(0,r-(e.arrow.left-o))))&&(e.left+=o,e.arrow.left-=o),e.arrow.border.top=e.arrow.top+i,e.arrow.border.left=e.arrow.left):(e.arrow.hbias==kl?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=Me(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==Ol&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=Me(10,6)?5:0,e.arrow.left+=7==Le&&6<=Pe?1:0,e.arrow.border.left=e.arrow.left+1),e.top=t.top-a/2+t.height/2,e.arrow.top=a/2-E.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e)},lE=430,pE=200,hE=15;function fE(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||E.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||E.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.canShow=function(){return!Cm(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(Au())&&xm(t)},this.after("render",function(){Q1(this,this.elements)}),this.reposition=function(){var e=this.attributes.width,t=this.attributes.height,n=this.attributes.layoutDir,i=this.guideElement,r=M("._pendo-guide-container_",i),o=ja(this.element),t=sE(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+"_"),M("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),Z1(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,rE(this)},this.after("hide",function(){M("._pendo-guide-tt-region-block_").remove(),nE=tE=eE=null})),this}var gE=function(e,t){var n=!!M("._pendo-backdrop_")[0];return _.get(t,"overlayDiv[0]")||(t.overlayDiv=M(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(Qu())),tt()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&M(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},mE=function(e){var t=e.guideElement,n=E.TOOLTIP_ARROW_SIZE,i=e.attributes.height,e=e.attributes.width,e=Math.floor(e/2),i=Math.floor(i/2);t.addClass("_pendo-guide-lb_").css({top:"50%",left:"50%","margin-top":-i,"margin-left":-e}),M("._pendo-guide-container_",t).css({bottom:n,right:n}),tt()&&t.css({position:"absolute"})},vE=function(e,t){t===undefined&&(t=Mu),e.element=tc(e),mE(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(gE(n,e),e.guideElement);t.push(n[0]),n.appendTo(Qu())},yE=function(e,t){t===undefined&&(t=Mu),e.element=tc(e),e.guideElement.addClass("_pendo-guide-mobile-lb_");var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=gE(n,e),e=e.guideElement,i=E.TOOLTIP_ARROW_SIZE,i=(e.css({width:"",height:""}),M("._pendo-guide-container_",e).css({bottom:i,right:i}));function r(e){e.preventDefault()}M("._pendo-close-guide_",e).remove().prependTo(i),e.appendTo(Qu()),t.push(e[0]),F(n[0],"touchmove",r),F(e[0],"touchmove",r)};function bE(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||E.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||E.LB_DEFAULT_WIDTH,e.after("render",function(){(Zu()?yE:vE)(e,e.elements)}),e.reposition=function(){Zu()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var wE=500,SE="_pendo-guide-banner_";function EE(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||wE,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=E.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(SE).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),Xu()||e.addClass("_pendo-in_"),M("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=tc(n),n.elements.push(e[0]),e.appendTo(Qu())})),n}function IE(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(_.extend(n,{isShown:_.constant(!1),launch:d,onShown:d,render:function(){var e=n.guideElement,t=n.attributes.height;e&&e.html()||(e=M(document.createElement("div")).attr("id",Om(n)).addClass("_pendo-guide-whatsnew_").html(n.getContent()),_.isNumber(t)&&!n.attributes.autoHeight&&e.height(t),n.seenState===r&&e.addClass(i),n.guideElement=e)},seen:s}),_.extend(t,{addToLauncher:function(){var e=n.guideElement;e&&!$a(e[0])&&(M("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),$c.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){Xu()||a()&&n.seenState!==r&&function(e){{var t,n;if(ds(e,/(auto|scroll|hidden)/))return(t=Za(e))?(t=Ja(t),e=Ja(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(Fm(n.guideId,n.id,v(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,_.delay(function(){n.guideElement.addClass(i+" out")},_.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function d(){}}var _E="_pendo-launcher-searching_",CE="._pendo-launcher-search-box_ input";var TE=function(e){return e&&_.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function xE(){var e;return function(){var e;if(E.guideWidget)return(e=E.guideWidget.data)&&e.enableSearch}()&&(e=M(CE)[0])&&0<(e=e.value).length?(e=mt.call(e),[].concat(_.compact(e.split(" ")))):[]}function RE(e){if(!C.get("disablePrefetch"))return m.all(_.map(e,function(e){return e.fetchContent()}))}function AE(e,t){return T.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||y(),t&&0!==t.length?_.chain(e).filter(TE).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return _.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var kE="launcher-closed",OE=null,NE=null,ME=!1,LE="_pendo-launcher-active_",PE=null,DE=function(){return""};function FE(e,t){DE=t}function UE(e){var t,e=_.filter(e||y(),TE);return e=e,0===(t=xE()).length?e:(t=_.map(t,_.partial(AE,e)),_.union.apply(_,t))}function GE(e){return _t(_.map(e,function(e){var t=e.isWhatsNew()?[]:_.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function BE(e){var n=this,t=e.launchType||"badge",i=(_.extend(n,{show:function(){"badge"===t&&M(n.element).css("display: ;")},hide:function(){M(n.element).css("display: none;")},wrap:function(){var e=n.element;{var t;e&&/^img$/i.test(e.nodeName)&&(t=M(document.createElement("div")).addClass(e.className).append(e).appendTo(Qu()),e.className="",n.element=t[0])}},dispose:function(){M.removeNode(n.element)},setActive:function(e){e?M(n.element).addClass(LE):M(n.element).removeClass(LE)}}),e),e=i.position||"bottom-right",r=document.createElement("img");M(n.element=r).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+e+"_"),i.launcherBadgeUrl&&(r.src=Sc(i.launcherBadgeUrl)),r.onerror=function(e){T.info("[Pendo Web SDK] Error! Unable to load guide center image "+i.launcherBadgeUrl),T.critical("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},tt()&&(F(r,"mouseover",function(e){M(r).addClass("_pendo-launcher-badge-active_")}),F(r,"mouseout",function(e){M(r).removeClass("_pendo-launcher-badge-active_")}),M(r).css({position:"absolute"})),Qu().appendChild(r)}function HE(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=yo(e),t=n();M(e).closest(t).length&&(QE()?x.write(kE,"yes"):E.guideWidget.position(e),iI())}E.guideWidget.removeCountBadge=function(){M("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),_.extend(this,{getLauncherTarget:function(){return M(n())[0]},dispose:function(){jf(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&M("._pendo-launcher-whatsnew-count_").remove()}}),F(document,"click",t)}function zE(){var n,s="bottom-right",d="bottom-left";return this.update=function(e,t){t=t?e:UE(e),e=GE(t)+_t(xE());return e!==n&&(n=e,this.updateLauncherContent(t)),VE(),0<t.length},this.updateLauncherContent=XE,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(OE=new BE(e),e.height||310),n=(e.enableSearch&&(t+=tt()?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,M(document.createElement("div")).addClass("_pendo-launcher_")),r=(NE=i[0],ja(OE.element)),r=sE(r,t,n),o=(i.css({width:n,height:t}),E.TOOLTIP_ARROW_SIZE),n=M(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=YE(),o=Sc(jE(this.template(t))),t=M(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),cm(i[0],function(){tI(),x.write(kE,"yes",288e5)}),t.on("click",function(e){var t=M(yo(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=b((t=/^launcher-(.+)$/.exec(mt.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(Pm(t.steps[0],"launcher"),tI(),Wf(e))}),tt()&&(M("._pendo-launcher-header_",i).css({padding:"10px","margin-right":"10px","margin-left":"10px"}),M("._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");M(this).css(e)}),i.appendTo(Qu()),_.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!Me(9,6)&&(o=e.autoHeight.offset||100,i.css({height:"calc(100% - "+o+"px)",maxHeight:e.height,minHeight:e.height/2}),M("._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=ja(e),n=sE(e,this.height,this.width),i=M(NE),"badge"===(r=t.launchType||"badge")?(o=t.position,_.indexOf(a=[s,d,"top-left","top-right"],t.position)<0&&(o=s),_.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=_.contains([s,d],o)?"bottom":"top",n.arrow.hbias=_.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"}),M("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),cE(n,e,{width:Infinity,height:Infinity}),Z1(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=iI,this}function jE(e){return e=_.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function WE(e,t){e.contentHostUrl&&(e.contentHostUrl=(n=e.contentHostUrl,i=location,(r=C.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)),PE=new HE(e);var n,i,r=zE.create(E.guideWidget);return _.isFunction(r.template)||(r.template=e.template?_.template(e.template):DE),r.render(),r.position(PE.getLauncherTarget()),t&&r.toggle(),r}zE.create=function(e){return _.reduce(zE.behaviors,function(e,t){return t.call(e)},e)},zE.behaviors=[df,zE,Bc.Launcher,function(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){M(CE).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,E.disableGuideCenterContentSearch||this.before("update",RE),this.before("update",function(){t.text=xE().join(" ");var e=M("._pendo-launcher_");t.text?e.addClass(_E):e.removeClass(_E)})),this},function(){var n=this;{var i;n.data&&n.data.onboarding&&(i=n.onboarding=n.onboarding||{},n.before("update",function(e){var e=_.filter(e,qw),t=_.filter(e,function(e){return"complete"==n.guideStatus(e)}),e=i.total=e.length,t=(i.percentComplete=0<e?Math.round(t.length/e*100):0,M("._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=M(document.createElement("div")).addClass("_pendo-launcher-whatsnew-count_");n.data&&n.data.whatsnew&&n.data.whatsnew.enabled&&(n.before("updateLauncherContent",function(e){e=_.filter(e,function(e){return e.isWhatsNew()});e.sort(t),n.data.whatsnew.total=e.length,n.data.whatsnew.guides=e}),n.after("update",function(e){var t=n.data.whatsnew.guides,t=(_.each(t,function(e){e.show()}),_.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),_.filter(t,function(e){return"active"!==e.steps[0].seenState}).length);t!==n.data.whatsnew.unseenCount&&(i.html(t).css({display:t?"":"none"}),n.data.whatsnew.unseenCount=t,M("span._pendo-launcher-whatsnew-count_").text(n.data.whatsnew.unseenCount))}),n.after("render",function(){JE()?i.appendTo(this.data.launchElement):(OE.wrap(),i.appendTo(OE.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 qE=function(){NE&&(M.removeNode(NE),NE=null),PE&&(PE.dispose(),PE=null),OE&&(OE.dispose(),OE=null)},VE=function(){(!JE()&&(eI()||0<xE().length)?KE:$E)()},KE=function(){OE&&OE.show()},$E=function(){JE()||tI(),OE&&OE.hide()},JE=function(){return!(!E.guideWidget||!E.guideWidget.data||"element"!==E.guideWidget.data.launchType)},YE=function(e){var t=Dp(),t=_.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:Et(t)},E.guideWidget);return t.data=_.extend({},t.data),e&&(t.guides=e),t};function XE(e){var t=E.guideWidget.template||DE,e=YE(e),e=M(document.createElement("div")).html(jE(t(e))),n=e.find("._pendo-launcher-guide-listing_"),t=e.find("._pendo-launcher-footer_").html(),e=e.find("._pendo-launcher-search-results_").html();M("._pendo-launcher_ ._pendo-launcher-guide-listing_").each(function(e,t){M(e).html(n.eq(t).html())}),M("._pendo-launcher_ ._pendo-launcher-footer_").html(t),M("._pendo-launcher_ ._pendo-launcher-search-results_").html(e)}var ZE=_.compose(VE,function(e,t){var n,i,r,o;TE(e)&&(n=M("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0])&&(e=(o=M("#launcher-"+e.id)).length?o[0]:(e=e,M(i=document.createElement("div")).addClass("_pendo-launcher-item_"),M(i).attr("id","launcher-"+e.id),(r=document.createElement("a")).href="#",r.appendChild(document.createTextNode(e.name)),i.appendChild(r),i),o=0<o.length,_.isNumber(t)&&(r=M("._pendo-launcher-item_"))[t]?e.id!=r[t].id&&n.insertBefore(e,r[t]):n.appendChild(e))}),QE=function(){return M(NE).hasClass(LE)},eI=function(){return 0<M("._pendo-launcher-item_").length},tI=function(){var e;NE&&(e=M(NE))&&e.hasClass(LE)&&(e.removeClass(LE),OE)&&OE.setActive(!1)},nI=function(){var e;NE&&(e=M(NE))&&!e.hasClass(LE)&&(e.addClass(LE),OE)&&OE.setActive(!0)},iI=function(){NE&&!ME&&(QE()?tI:nI)()};var rI,oI=function(){try{var e=E.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};qE(),!Zu()&&!n.desktop||Zu()&&!n.mobile||Vs()&&!n.iframe||e.enabled&&(WE(t),$E())}catch(i){T.critical("ERROR while initializing launcher",{error:i})}},aI=function(e){e.defaultLauncher=FE,_.each(e._defaultLauncher_queue,e=>{FE.apply(null,e)}),e._defaultLauncher_queue=[],e.toggleLauncher=iI,e.showLauncher=nI,e.hideLauncher=tI,e.removeLauncher=qE,e.initLauncher=oI,e.createLauncher=WE,e._addGuideToLauncher=ZE,e.launcherToolTipDiv=NE},sI=function(){oI()},dI=function(){var e;(e=E).designer&&(e.designer.createLauncher=WE,e.designer.removeLauncher=qE,e.designer.addGuideToLauncher=ZE,e.designer.updateLauncherContent=XE)},uI=function(){var e;(e=E).debugging&&(e.debugging.getLauncherGuides=UE)},cI=function(e){return i=E.guideWidget,e=e,r=i&&i.data,e=_.filter(e,function(e){e=_.first(e.steps);return e&&"launcher"===e.type}),(e=_.first(_.sortBy(e,function(e){return-e.lastUpdatedAt})))&&r&&(e=_.first(e.steps),_.extend(r,_.pick(e,"contentUrl","contentUrlCss","contentUrlJs"),e.attributes),_.defaults(r,{whatsnew:{},knowledgebase:{}}),r.id=e.guideId+e.id),n=(t=i)&&t.data||{},!0!==C.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?Oc.verify(n).then(function(){return Ic.load(n)}).then(function(e){return n.template=e.content,_.extend(t,e)}):m.resolve();var t,n,i,r},lI=function(){var e=y();if(uc()){if(E.guideWidget&&E.guideWidget.enabled){var t=UE(e),n=!0;if(E.guideWidget&&_.isFunction(E.guideWidget.update))E.guideWidget.update(t,n)}}else{$E();t=Fu(e),n=GE(UE(t));n!==rI&&A.dispatch("frames/changeGuideList",t),rI=n}},pI=function(e,t){aI(e),t.Events.on("guidesLoaded",sI),t.Events.on("designerLaunched",dI),t.Events.on("debuggerLaunched",uI),t.GuideLoop.addUpdatePhase(lI),dv.push(cI),t.agentStorage.registry.addLocal(kE,{duration:864e6,localStorageOnly:!0})},hI=function(e,t){var n;n=cI,0<=(n=_.indexOf(dv,n))&&dv.splice(n,1),t.GuideLoop.removeUpdatePhase(lI),t.Events.off("guidesLoaded",sI),t.Events.off("designerLaunched",dI),t.Events.off("debuggerLaunched",uI)};Zb.Extensions.API.addTopic("Launcher",{addBehavior(e){zE.behaviors.push(e)}});var fI,gI,mI,vI,yI={name:"P1Guides",initialize:function(e,t){var n;mI=t,fI=(gI=e).dom,vI=[fE,bE,EE,IE,SI,EI,wI,bI],-1<_.indexOf(Wc.behaviors,fE)||(n=_.indexOf(Wc.behaviors,Yw),Wc.behaviors.splice.apply(Wc.behaviors,[n,0].concat(vI)),t.Events.guideLoopStopped.on($E),e.TOOLTIP_DEFAULT_WIDTH=lE,e.TOOLTIP_DEFAULT_HEIGHT=pE,e.TOOLTIP_ARROW_SIZE=hE,e._showElementGuide=Q1,e._createTooltip=X1,e._get_tooltip_dimensions=sE,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e._showLightboxGuide=vE,pI(e,t))},teardown:function(){hI(0,mI),mI.Events.guideLoopStopped.off($E),gI._.each(vI,function(e){e=_.indexOf(Wc.behaviors,e);0<=e&&Wc.behaviors.splice(e,1)}),vI=[]}};function bI(){const o=this;return"tooltip"!==o.type||o.domJson||(o.checkPlacement=function(){var e,t,n,i,r;e=o,r=ja(e.element||tc(e)),rE(e),aE(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=sE(r,n,i,t),(i=M(Y1(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),Z1(i,n))}),o}function wI(){var i=this;return i.attributes&&i.attributes.autoHeight&&(i.after("render",function(){i.guideElement&&i.guideElement.length&&(i.resize(),i.attachEvent(i.guideElement[0],"load",function(){i.resize()}))}),i.resize=function(){var e,t=E.TOOLTIP_ARROW_SIZE,n=i.guideElement;n&&(e=fI("._pendo-guide-container_",n),"tooltip"==i.type||tt()&&"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 SI(e){var t=this;return t.domJson||t.domJsonpUrl||"html"===t.type||t.after("render",function(){t.guideElement&&t.guideElement.length&&cm(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||bm(t)})}),t}function EI(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||"html"===e.type||Ju(e.guide)||e.after("render",function(){_m(e.guideElement[0])}),e}const II="__sg__";CI="promotedAgentMetadataConfigurations",TI=[],xI={},RI={};var _I,CI,TI,xI,RI,AI={name:"PromoteMetadata",initialize:function(e,t){if(TI=(_I=t).ConfigReader.get(CI),RI={},_I.agentStorage.registry.addLocal(II,{isSecure:!0,serializer:JSON.stringify,deserializer:gn}),gi())try{xI=_I.agentStorage.read(II)}catch(n){PI()}TI&&TI.length&&(_I.Events.on("metadata",NI),_I.Events.on("eventCaptured",FI),_I.Events.on("identify",MI))},teardown:function(){_I.Events.off("metadata",NI),_I.Events.off("eventCaptured",FI),_I.Events.off("identify",MI)},getPromotedMetadata:function(){return TI},hasPromotedMetadataKind:kI,setSchemaGroup:NI,getSchemaGroup:OI,resetSchemaGroup:LI,resetCachedSchemaGroup:PI};function kI(t){return _.some(TI,function(e){return e.kind===t})}function OI(){return RI}function NI(e){var t;e?(e=e.data[0]["options"],e&&(t=e)):t=Dp(),RI=function(r){if(gi())try{var e=_I.agentStorage.read(II);xI=function(e){e=_.mapObject(e,(t,e)=>{const n={};return _.each(Object.keys(t),function(e){n[e.replace("agent__","")]=t[e]}),n});return e}(xI=e)}catch(t){PI()}var o=RI;_.each(["visitor","account","parentAccount"],function(e){var t=kI(e),n=!_.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!_.isEmpty(xI)&&_.isEmpty(vd.get())&&(o[i]=DI(xI[i],e)),n)&&(t=DI(r[e],e),_.isEmpty(t)||(o[i]=Object.assign(Object.assign({},o[i]),t)))}),gi()&&_I.agentStorage.write(II,o);return o}(t)}function MI(e){e=e.data[0];_.get(e,"wasCleared")&&(_I.agentStorage.clear(II),LI())}function LI(){RI={}}function PI(){xI={}}function DI(e,i){var r={};return e&&_.each(e,function(e,t){var n=t.toLowerCase();Boolean(_.find(TI,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function FI(e){e=e.data[0];e&&(_.isEmpty(RI)&&NI(),_.isEmpty(RI)||("track"===e.type?e.props.__sg__=RI:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=RI)))}const UI="segmentFlagsCache";function GI(){let s,d,o,u=null,a=!1,c={},l,p,e=!1;return{name:"SegmentFlags",initialize:function(e,t){var n="requestSegmentFlags",e=(s=e,(d=t).ConfigReader);if(e.addOption(n,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],false),o=e.get(n)){if(u=null,a=!1,t.agentStorage.registry.addLocal(UI,{isSecure:!0,localStorageOnly:!0,duration:2592e6,serializer:JSON.stringify,deserializer:gn}),c={},gi())try{var i=t.agentStorage.read(UI);i&&i.flags&&(c=i.flags,s.segmentFlags=Object.keys(i.flags),l=i.timestamp||null,p=i.hash||null,a=!0,d.Events.segmentFlagsReady.trigger({flags:s.segmentFlags,fromCache:!0,cacheTimestamp:l}))}catch(r){d.Events.segmentFlagsError.trigger("Error reading segment flags from cache")}s.getSegmentFlag=m,s.segmentsPayload=v,d.Events.ready.on(h),d.Events.identify.on(g),d.Events.metadata.on(g),d.Events.eventCaptured.on(f)}},teardown:function(){o&&(s.segmentsPayload=s._.noop,d.Events.ready.off(h),d.Events.identify.off(g),d.Events.metadata.off(g),d.Events.eventCaptured.off(f),u=null,a=!1,c={},l=null,p=null,e=!1)}};function h(){e=!0,g()}function f(e){p&&e&&e.data&&e.data.length&&(e=e.data[0])&&"object"==typeof e&&(e.segmentFlagsHash=p)}function g(){if(e){var t=s._.uniqueId(),n=(u=t,{visitorId:s.get_visitor_id(),accountId:s.get_account_id(),metadata:s.getSerializedMetadata(),url:s.url.get()}),i=s.compress(n),t={id:t,jzb:i,v:s.VERSION,ct:(new Date).getTime()},n=(d.agent.treatAsAdoptPartner()&&d.agent.addAccountIdParams(t,n.accountId,d.ConfigReader.get("oemAccountId")),"script"===s.LOADER?"segmentflag.js":"segmentflag.json");let e=d.transmit.buildBaseDataUrl(n,s.apiKey,t);var r,o,n=d.agent.getJwtInfoCopy();try{d.transmit.shouldLoadWithPost(e,n)?(delete t.jzb,e=d.transmit.buildBaseDataUrl("segmentflag.json",s.apiKey,t),r=s._.extend({events:i},n),function(t,n){Mb(this,void 0,void 0,function*(){try{v((yield s.ajax.postJSON(t,n)).data)}catch(e){d.Events.segmentFlagsError.trigger("Error requesting new segment flags")}})}(e,r)):"script"===s.LOADER?(o=e,s.loadResource(o,s._.noop)):function(t){Mb(this,void 0,void 0,function*(){try{v((yield s.ajax.get(t)).data)}catch(e){d.Events.segmentFlagsError.trigger("Error requesting new segment flags")}})}(e)}catch(a){d.log.error("Failed to load segment flags",{error:a}),d.Events.segmentFlagsError.trigger("Error requesting new segment flags")}}}function m(e){return!(!c||c[e]===undefined)&&c[e]}function v(e){if(u&&(!s._.isString(e.id)||e.id===u)){let t={},n=[];if(e.segmentFlags){n=e.segmentFlags;for(let e=0;e<n.length;e++)t[n[e]]=!0}else e.flags&&(t=e.flags,n=Object.keys(t));var i=function(t={},n={}){var i=Object.keys(t),e=Object.keys(n);if(i.length!==e.length)return!0;for(let e=0;e<i.length;e++){var r=i[e];if(t[r]!==n[r])return!0}return!1}(c,t);s.segmentFlags=n,c=t,l=Date.now(),p=e.hash||null,gi()&&d.agentStorage.write(UI,{flags:t,timestamp:l,hash:p}),a?i&&d.Events.segmentFlagsUpdated.trigger(s.segmentFlags):(a=!0,d.Events.segmentFlagsReady.trigger({flags:s.segmentFlags,fromCache:!1,cacheTimestamp:l})),d.log.info("successfully loaded segment flags"),u=null}}}class BI{constructor(e,t,n,i,r){this.listeners=[],this.latestPromptValue="",this.isActive=!0,this.lastSubmitTime=0,this.compositionState=new WeakMap,this.dom=e.dom,this._=e._,this.api=t,this.q=t.q,this.id=n,this._.isArray(i)||(this.api.log.error("inputCssSelectors must be an array, received:",typeof i),i=[]),this._.isArray(r)||(this.api.log.error("submitCssSelectors must be an array, received:",typeof r),r=[]),this.inputEls=this._.map(i,e=>new this.dom.Element(e)),this.submitEls=this._.map(r,e=>new this.dom.Element(e)),this.setupInputListeners(),this.setupSubmitListeners(),this.setupObserver()}isComposing(e){var t=e.target,t=t&&this.compositionState.get(t);return e.isComposing!==undefined?e.isComposing:t}isEnterKey(e){return("Enter"===e.code||"Enter"===e.key||13===e.keyCode)&&!e.shiftKey}setupInputListeners(){this._.each(this.inputEls,e=>{e&&(e.addEventListener("compositionstart",e=>{e=e.target;e&&this.compositionState.set(e,!0)},!0),e.addEventListener("compositionend",e=>{e=e.target;e&&(this.compositionState.set(e,!1),this.capturePromptValue())},!0),e.addEventListener("compositionupdate",e=>{e=e.target;e&&this.compositionState.set(e,!0)},!0),e.addEventListener("blur",e=>{e=e.target;e&&this.compositionState.set(e,!1)},!0),e.addEventListener("input",e=>{this.isComposing(e)||this.capturePromptValue()},!0),e.addEventListener("change",e=>{this.capturePromptValue()},!0),e.addEventListener("keydown",e=>{this.isEnterKey(e)&&!this.isComposing(e)&&this.submit(this.latestPromptValue)},!0),e.addEventListener("keyup",e=>{this.isComposing(e)||this.capturePromptValue()},!0))})}setupSubmitListeners(){this._.each(this.submitEls,e=>{e&&(e.addEventListener("mousedown",e=>{var t=this.getPromptValue()||this.latestPromptValue;this.submit(t)},!0),e.addEventListener("keydown",e=>{this.isEnterKey(e)&&(e=this.getPromptValue()||this.latestPromptValue,this.submit(e))},!0))})}setupObserver(){var e,t;document.body?(this.promptContainer=new this.dom.Observer,e=this._.filter(this.inputEls,e=>e),t=this._.filter(this.submitEls,e=>e),this.promptContainer.addObservers(...e,...t)):(this.observerReadyListener=()=>{document.removeEventListener("DOMContentLoaded",this.observerReadyListener),this.setupObserver()},document.addEventListener("DOMContentLoaded",this.observerReadyListener))}submit(e){if(e&&this.isActive){var t=Date.now();if(!(t-this.lastSubmitTime<2)){this.lastSubmitTime=t;const n={agentId:this.id,prompt:e};this._.each(this.listeners,e=>e(n))}}}capturePromptValue(e=!1){var t=this.getPromptValue();return!t&&e||(this.latestPromptValue=t),t}isPasswordInput(e){return!!e&&!!e.tagName&&"input"===e.tagName.toLowerCase()&&"password"===e.type}getInputText(e){return this.isPasswordInput(e.get())?"":e.getText()}getPromptValue(){var e=this._.find(this.inputEls,e=>{if(e)try{var t=this.getInputText(e);return t&&t.trim()}catch(n){}return!1});if(e)try{return this.getInputText(e).trim()}catch(t){}return""}onSubmit(e){this.listeners.push(e)}suspend(){this.isActive=!1}resume(){this.isActive=!0,this._.each(this.inputEls,e=>{e&&e.get()}),this._.each(this.submitEls,e=>{e&&e.get()})}teardown(){this.observerReadyListener&&document.removeEventListener("DOMContentLoaded",this.observerReadyListener),this.promptContainer&&this.promptContainer.teardown(),this._.each(this.inputEls,e=>{e&&e.teardown()}),this._.each(this.submitEls,e=>{e&&e.teardown()})}}class HI{constructor(){this.name="PromptAnalytics",this.configName="aiAgents",this.prompts=[]}initialize(e,t){this.pendo=e,this.api=t,this._=this.pendo._,this.agentsCache=new Map,this.api.ConfigReader.addOption(this.configName,["pendoconfig","snippet"]),this.loadConfig(this.configName).then(e=>this.onConfigLoaded(e))["catch"](e=>this.api.log.error("[PromptPlugin] Failed to load config:",e)),null!=(e=this.api.Events.guidesLoaded)&&e.on(()=>{this.reEvaluatePageRules()}),null!=(t=this.api.Events.urlChanged)&&t.on(()=>{this.reEvaluatePageRules()})}loadConfig(e){var{q:t,ConfigReader:n}=this.api,t=t.defer(),e=n.get(e);return t.resolve(e),t.promise}testPageRule(e,t,n="unknown"){let i=e;var r;return Array.isArray(e)?(r=this._.filter(e,e=>e&&""!==e.trim()),i=this._.map(r,e=>e.startsWith("//*/")?e.substring(1):e)):"string"==typeof e&&e.startsWith("//*/")&&(i=e.substring(1)),ku(i,t,{logger:this.api.log,context:"agent",id:n})}reEvaluatePageRules(){const i=Au();var e=this.api.ConfigReader.get(this.configName)||[];this._.each(this.prompts,e=>{var t=this.findAgentById(e.id);t&&this.testPageRule(t.pageRule,i,t.id)?e.resume():e.suspend()});const r=this._.map(this._.filter(this.prompts,e=>e.isActive),e=>e.id);this._.each(e,e=>{if(!this.isConversationAgent(e)&&!this.isNetworkAgent(e)){var t=this._.contains(r,e.id);if(this.testPageRule(e.pageRule,i,e.id)&&!t)try{this.observePrompt(e)}catch(n){this.api.log.error("[PromptPlugin] Failed to set up agent:",e.id,n)}}})}findAgentById(e){return this.agentsCache||(this.agentsCache=new Map),this.agentsCache.get(e)}isConversationAgent(e){return e.preset&&"chatgpt"!=e.preset}isNetworkAgent(e){return"network"===e.trackingMethod}onConfigLoaded(e=[]){if(e&&this._.isArray(e)&&0!==e.length){var t=[];for(const n of e)this.isConversationAgent(n)||this.isNetworkAgent(n)||t.push(n);this.agentsCache||(this.agentsCache=new Map),this.agentsCache.clear(),this._.each(e,e=>this.agentsCache.set(e.id,e)),this._.each(t,e=>{var t=Au();if(this.testPageRule(e.pageRule,t,e.id))try{this.observePrompt(e)}catch(n){this.api.log.error("[PromptPlugin] Failed to set up agent:",e.id,n)}})}}observePrompt(e){const{id:t,cssSelectors:n}=e;var i;this._.find(this.prompts,e=>e.id===t)||(e=this.parseCssSelector("input",n),i=this.parseCssSelector("submit",n),(e=new BI(this.pendo,this.api,t,e,i)).onSubmit(e=>{this.sendPromptEvent(e)}),this.prompts.push(e))}parseCssSelector(t,e){e=this._.filter(e,e=>e.type===t);return this._.map(e,e=>e.cssSelector)}sendPromptEvent(t){var e=this._.find(this.prompts,e=>e.id===t.agentId);e&&!e.isActive||(e=this._.extend({promptType:"request",agentType:"prompt"},t),this.api.analytics.collectEvent("prompt",e,undefined,"agentic"))}teardown(){this._.each(this.prompts,e=>e.teardown()),this.agentsCache&&this.agentsCache.clear()}}var zI=new HI;class jI{initialize(e,{Events:t}){var{_:e,attachEvent:n}=this.pendo=e,i=e.bind(this.setForceShowFirstStepFlags,this);this.subscriptions=[n(t,"deliverablesLoaded",i),n(t,"urlChanged",i),n(t,"guideSeen",e.bind(this.clearForceShowFirstStepFlags,this))]}teardown(){this.pendo._.forEach(this.subscriptions,function(e){e()}),this.subscriptions.length=0}setForceShowFirstStepFlags(){var e=this["pendo"];const t=e["_"];t.forEach(e.guides,function(e){!t.get(e,"attributes.restartOnReload")||(e.forceShowFirstStep=!0)})}clearForceShowFirstStepFlags(e){var{_:t,findGuideById:n}=this.pendo,e=t.get(e,"data.0.props.guide_id");e&&(t=n(e))&&t.forceShowFirstStep&&(t.forceShowFirstStep=!1)}}var WI=new jI;const qI="sessionId";class VI{constructor(){this.name="SessionManager"}initialize(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"identify",_.bind(this.changeIdentity,this)),this.api.attachEvent(this.api.Events,"eventCaptured",_.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",18e5),this.suffix=this.api.ConfigReader.get("identityStorageSuffix"),this.api.agentStorage.registry.addLocal(qI,{cookieSuffix:this.suffix,isSecure:!0})}changeIdentity(e){var t;e&&e.data&&e.data.length&&({visitor_id:e,old_visitor_id:t}=e.data[0],e===t||this.pendo.isAnonymousVisitor(t)||this.expireSession())}teardown(){_.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0}isExpired(e,t){e=_.get(e,"timestamp");return!this.pendo._.isNumber(e)||t-e>this.inactivityDuration}expireSession(){var e=this.clearSessionInfo();return this.api.Events.sessionChanged.trigger(e),e}eventCaptured(t){if(t&&t.data&&t.data.length){var t=t.data[0],n=t.browser_time||(new Date).getTime();let e=this.sessionInfo();!t.hasUserInteraction&&"recording"===t.type||(this.isExpired(e,n)&&(e=this.expireSession()),this.storeLastInteractionEventInformation(e,n)),t.sessionId=e.sessionId}}sessionInfo(e=this.pendo.randomString(16)){let t=this.api.agentStorage.read(qI)||this.api.agentStorage.read(qI,!1,"");return t||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(qI,t)),JSON.parse(t)}clearSessionInfo(){return this.api.agentStorage.clear(qI),this.api.agentStorage.clear(qI,!1,""),this.sessionInfo()}storeLastInteractionEventInformation(e,t){e.timestamp=t,this.api.agentStorage.write(qI,JSON.stringify(e))}}var KI=new VI;const $I=["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"],JI=new RegExp(`(${$I.join("|")})`,"i"),YI=["facebook","twitter","linkedin","instagram","pinterest","tiktok","snapchat","twitch","reddit","quora","tumblr","flickr","discord","twitch","whatsapp","telegram","weibo","qq","line"],XI=["t.co","x.com"],ZI=new RegExp(`(${YI.join("|")})`,"i");function QI(e,t){return o_(ZI,e)||t.contains(XI,e)}const e_=["youtube","vimeo","dailymotion","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"],t_=new RegExp(`(${e_.join("|")})`,"i"),n_=["amazon","ebay","walmart","etsy","shopify","shop","target","bestbuy","costco","temu","alibaba","aliexpress"],i_=new RegExp(`(${n_.join("|")})`,"i");const r_=new RegExp(`(${["google performance max","microsoft audience network","facebook audience network"].join("|")})`,"i");function o_(e,t){return"self"!==t&&"direct"!==t&&null!==t.match(e)}function a_({referrer:e,currentHost:t}){if(!e||""===e)return"direct";e=new Li(e).hostname;let n="self";return n=e!==t?null==e?void 0:e.toLowerCase():n}const s_=new RegExp("^(.*cp.*|ppc|retargeting|paid)$"),d_=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i");function u_(e="",t){return-1!==e.replace(/[^a-zA-Z]/g,"").indexOf(t)}const c_=[[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})=>u_(t,"crossnetwork")||e.match(r_)],["Paid Search",({source:e,medium:t,referrer:n,gclid:i,_:r})=>i||u_(t,"paidsearch")||t.match(s_)&&(r.contains($I,e)||o_(JI,n))],["Paid Social",({source:e,medium:t,referrer:n,fbclid:i,_:r})=>i||u_(t,"paidsocial")||t.match(s_)&&(r.contains(YI,e)||QI(n,r))],["Paid Video",({medium:e,source:t,referrer:n,_:i})=>u_(e,"paidvideo")||e.match(s_)&&(i.contains(e_,t)||o_(t_,n))],["Paid Shopping",({medium:e,source:t,referrer:n,_:i})=>u_(e,"paidshopping")||"shopping"===e||(o_(i_,n)||i.contains(n_,t))&&e.match(s_)],["Display",({medium:e,_:t})=>t.contains(["display","cpm","banner","interstitial","expandable","programmatic"],e)||u_(e,"display")],["Paid Other",({medium:e})=>u_(e,"paidother")||e.match(s_)],["Organic Search",({source:e,medium:t,referrer:n,_:i})=>u_(t,"organic")&&i.contains($I,e)||!t&&o_(JI,n)],["Organic Social",({source:e,medium:t,referrer:n,_:i})=>!t&&QI(n,i)||u_(t,"social")||i.contains(YI,e)&&!t.match(s_)],["Organic Video",({medium:e,referrer:t})=>u_(e,"video")||!e&&o_(t_,t)],["Organic Shopping",({medium:e,referrer:t})=>u_(e,"organicshopping")||!e&&o_(i_,t)],["Email",({source:e,medium:t})=>null!==t.match(d_)||null!==e.match(d_)||u_(t,"newsletter")],["Affiliates",({medium:e})=>u_(e,"affiliate")||u_(e,"partner")],["SMS",({source:e,medium:t})=>u_(e,"sms")||u_(t,"sms")],["Push Notifications",({source:e,medium:t})=>t.endsWith("push")||u_(t,"mobile")||u_(t,"notification")||u_(e,"firebase")],["Audio",({medium:e})=>u_(e,"podcast")||u_(e,"audio")],["Referral",({medium:e,referrer:t})=>u_(e,"referral")||!!t&&"self"!==t&&"direct"!==t],["Other",({medium:e,source:t})=>!!e||!!t]],l_="utm",p_="enableFullUtmReferrer",h_="disableUtmReferrer";class f_{constructor(){this.name="WebAnalytics"}initialize(e,t){this.pendo=e;var n=(this.api=t)["ConfigReader"],n=(n.addOption(p_,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),n.addOption(h_,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),e._)["bind"];if(this.subscriptions=[t.attachEvent(t.Events,"eventCaptured",n(this.addUtmToEvent,this)),t.attachEvent(t.Events,"sessionChanged",n(this.sessionChanged,this)),t.attachEvent(t.Events,"consent:changed",n(this.handleConsentChange,this))],this.suffix=this.api.ConfigReader.get("identityStorageSuffix"),this.api.agentStorage.registry.addLocal(l_,{cookieSuffix:this.suffix,isSecure:!0}),t.analytics.isUtmConsentDenied())return this.clearParameters(t.agentStorage);this.captureParameters()}captureParameters(){if(!this.api.analytics.isUtmConsentDenied()){let e=this.loadParameters(this.api.agentStorage);e&&!this.pendo._.isEmpty(e)||(e=this.extractParameters(window.location.href,document.referrer)),this.storeParameters(e,this.api.agentStorage)}}extractParameters(e,t){var n,i,r,o,a,s,d=new Li(e).hostname,u=a_({referrer:t,currentHost:d}),e=this.api.util.parseUrl(e);return e?(s=(e=this.pendo._.extend({},e.fragmentQuery,e.query)).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}),this.api.ConfigReader.get(h_)||(t&&this.api.ConfigReader.get(p_)?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(c_,e=>e[1](o));if(e)return e[0]}storeParameters(e,t){this.api.analytics.isUtmConsentDenied()||0<this.pendo._.size(e)&&t.write(l_,JSON.stringify(e))}clearParameters(e){e.clear(l_),e.clear(l_,!1,"")}loadParameters(e){e=e.read(l_)||e.read(l_,!1,"");return e?JSON.parse(e):null}teardown(){for(var e of this.subscriptions)e();this.subscriptions.length=0}addUtmToEvent(t){if(!this.api.analytics.isUtmConsentDenied()){let e;try{e=this.loadParameters(this.api.agentStorage)}catch(n){}e&&(t.data[0].utm=e)}}sessionChanged(){var e=this.api.agentStorage,t=(this.clearParameters(e),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)}handleConsentChange(e){e=e.data[0].utm;if(!this.pendo._.isUndefined(e))return this.api.analytics.isUtmConsentDenied()?this.clearParameters(this.api.agentStorage):void this.captureParameters()}}var g_=new f_;function m_(e,t){_.isEmpty(t)||(e.eventProperties=_.extend({},e.eventProperties,t))}function v_(e){e=b_({target:e});return R.onClickCaptured.trigger(e),e.getEventProperties()}function y_(e,t){t=b_({event:t,target:e});return R.onEventCaptured.trigger(t),t.getEventProperties()}function b_(e){const n={};return _.extend({getEventProperties(){return n},addEventProperty(e,t){_.isString(e)&&!_.isUndefined(t)?n[e]=t:T.error("Failed to add click event property")}},e)}class w_{constructor(){this.name="EventCaptured"}initialize(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"eventCaptured",_.bind(this.eventCaptured,this))]}teardown(){_.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0}eventCaptured(e){var t;e&&e.data&&e.data.length&&(t=e.data[0],e=(e=e.data[1])&&e.target,"click"===t.type&&m_(t,v_(e)),m_(t,y_(e,t)))}}var S_=new w_;function E_(i){var t;!function(e){e.getVersion=ht,e.isReady=S0,e.pageLoad=Ru,e.getVisitorId=xi,e.getAccountId=Ai,e.clearSession=Ni,e.VERSION=ct,e.LOADER=pt,e.flushNow=a(ud),e.teardown=xu(P0),e.updateCookieConsent=xu(h0),e.initGuides=a(Rv),e.loadGuides=a(sv),e.findGuideByName=a(zu),e.hideGuides=a(fm),e.onGuideDismissed=a(bm),e.goToStep=Sm,e.onGuideAdvanced=a(Em),e.onGuidePrevious=a(Im),e.onGuideSnoozed=wm,e.startGuides=a(lg),e.stopGuides=a(pg),e.defaultCssUrl=a(sm()),e.getActiveGuides=function(e={channel:Pu.DEFAULT}){return y(e)},e.getActiveGuide=function(e={channel:Pu.DEFAULT}){return qv(e)},e.guideSeenTimeoutLength=Dw.getGuideSeenTimeoutLength(),e.guidesPayload=Zm,e.areGuidesDisabled=a(Av),e.setGuidesDisabled=a(Ov),e.areGuidesDelayed=a(kv),e.buildNodeFromJSON=Fg.buildNodeFromJSON,e.flexElement=a(Fg.flexElement),e.GuideFactory=a(jc),e.dom=M,e.getText=gs,e.attachEvent=a(F),e.detactEvent=a(jf),e.frames={setFrameVisibility:cc},e.log=X0,e.enableLogging=V0,e.disableLogging=K0,e.setActiveContexts=iw,e.showLogHistory=tw,e.getLoggedContexts=nw,e.isDebuggingEnabled=_.noop,e.enableDebugging=_.noop,e.disableDebugging=_.noop,e.addDebuggingFunctions=_.noop,e.stopSendingEvents=a(od.lock),e.startSendingEvents=a(od.unlock),e.isSendingEvents=a(ka),e.fromByteArray=c.uint8ToBase64,e.events=a(vc),e.track=a(aw),e.trackAgent=a(sw),e.validateInstall=dw,e.validateNativeMethods=uw,e.validateBuiltInGlobals=cw,e.validateUrl=lw,e.validateEnvironment=fw,e.doesExist=I,e.generate_unique_id=pi,e.TEMP_PREFIX=ai,e.SIZE_UNIQUE_ID=si,e._defaultLauncher_queue=[],e.defaultLauncher=()=>{e._defaultLauncher_queue.push(arguments)},e.toggleLauncher=_.noop,e.showLauncher=_.noop,e.hideLauncher=_.noop,e.removeLauncher=_.noop,e.identify=Mp,e.get_visitor_id=xi,e.set_visitor_id=function(e){Mp(e)},e.get_account_id=Ai,e.set_account_id=function(e){Mp(v(),e)},e.getSerializedMetadata=Fp,e.checkIntegrationIdMatch=vw,e.compress=bt,e.squeezeAndCompress=bt,e.randomElement=Ct,e.randomString=Tt,e.toUTF8Array=gt,e.getNumberFromText=Mt,e._addCredits=a(_m),e.getCurrentUrl=Au,e.getNormalizedUrl=Au,e.testUrlForStep=a(Ou),e.showGuideByName=a($m),e.showGuideById=a(Jm),e.designerv2=ab,e.P2AutoLaunch=a(Ib),e.BuildingBlocks=a(yw),e.onConnectMessage=_.noop,e.buffers=od,e.guideDev=a(G0),e.badgesShown=a(Lu),e.get_pendo_cookie=Tn,e.DEFAULT_EXPIRE_LEN=Rn,e.set_pendo_cookie=kn,e.loadResource=Rs,e.loadWatcher=As,e.messageLogger=ks,e.messageReceiver=Os,e.messageValidator=Ns,e.MESSAGE_TYPES=Ls,e.messageDispatcher=Fs,e.moduleRegistry=Us,e.addModule=Gs,e.hasModule=a(Bs),e.findModuleByName=a(Hs),e.modulesWaiting=zs,e.loadModules=js,e.moduleLoader=Ws,e.TOOLTIP_DEFAULT_WIDTH=430,e.TOOLTIP_DEFAULT_HEIGHT=200,e.TOOLTIP_ARROW_SIZE=15,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e.sniffer=et,e.url=L,e.location=Mw,e.Sizzle=lo,e._=_,e.ajax=wo,e.Zlib=St,e.guideContent=a(Ic.guideContent),e.receiveDomStructureJson=a(Ic.receiveDomStructureJson),e.addExtension=qp,e.getConfigValue=C.get}(i),(t=i).SHADOW_STYLE="",_.extend(t,{_showElementGuide:_.noop,flushEventCache:Hw(null,"flushEventCache",Gw),HOST:Wo,MAX_LENGTH:td,MAX_NUM_EVENTS:ed,_createToolTip:_.noop,_get_tooltip_dimensions:_.noop,_isOldIE:a(Hw(Me,"_isOldIE",Uw)),_logMessage:Hw(wa,"_logMessage",Uw),_sendEvent:Hw(null,"_sendEvent",Gw),_sendGuideEvent:Hw(null,"_sendGuideEvent",Gw),_stopEvents:!1,_storeInCache:Hw(null,"_storeInCache",Gw),_writeEventImgTag:Hw(null,"_writeEventImgTag",Gw),_writeImgTag:a(Hw(_a,"_writeImgTag",Uw)),getUA:Hw(Ue,"getUA",Uw),ifDebugThen:Hw(null,"ifDebugThen",Gw),send_event:a(Hw(Gd,"send_event","has changed to pendo.cache.createEvent")),wire_page:Hw(Gf,"wire_page",Uw),messageOriginTester:Hw(null,"messageOriginTester",Gw),findGuideBy:a(Hu),findGuideById:a(b),findStepInGuide:a(ju),_updateGuideStepStatus:a(pm),_addCloseButton:a(cm),initialize:k0,getEventCache:a(wv),processEventCache:a(bv),isGuideShown:a(Gu),_getNextStepInMultistep:a(Km),attachEvent:F,detachEvent:jf,updateOptions:Np,createLauncher:_.constant({}),initLauncher:_.noop,_addGuideToLauncher:_.noop,launcherToolTipDiv:null,isAnonymousVisitor:(e=t.get_visitor_id())=>fi(e),DEFAULT_VISITOR_ID:vi,shouldIdentityChange:_.constant(!1),read:x.read,write:x.write,_delete_cookie:x.clear,_set_cookie:In,_get_cookie:En,get_cookie_key:Cn,ENV:it,eventCache:a(Ys),_getOpacityStyles:Hw(null,"_getOpacityStyles",Uw),setStyle:Ua,_createGuideEvent:a(zm),seenGuide:a(Fm),dismissedGuide:a(Um),advancedGuide:a(Gm),seenTime:0,placeBadge:a(eg),isBadge:a(Ku),showPreview:a(Hw(Mm,"showPreview",Uw)),removeAllBadges:a(tg),tellMaster:qs,DEFAULT_TIMER_LENGTH:ag,registerMessageHandler:Ps,_get_offset:a(ja),_shouldAutoDisplayGuide:_.constant(!1),removeBadge:ng,_showLightboxGuide:_.noop,_showGuide:a(Pm),getElementForGuideStep:a(tc),isElementVisible:ds,getTooltipDivId:a(Om),setupWatchOnTooltip:a(Nm),letters:"",charset:"",detectMaster:Vs,listenToMaster:Hw(null,"listenToMaster",Gw),start:qf,SEND_INTERVAL:Qs,stageGuideEvent:a(Vm),startStagedTimer:Wm,isURLValid:id,getURL:rd,_get_screen_dim:a(Ba),_isInViewport:a(Ha),_getCss3Prop:Da,waitThenStartGuides:a(sg),guidesProcessingThreadHandle:og,getMode:_.constant("default")}),_.each(["identify","updateOptions","pageLoad","track","trackAgent"],function(t){var n=i[t];i[t]=function(){try{S0()?n.apply(this,arguments):he(i,t,arguments)}catch(e){T.critical(e)}}})}var I_,__,C_,T_,x_,R_=be(),A_=function(e){var t=re(e)?{}:window,n=document.currentScript||function(t=[],n){for(let e=0;e<t.length;e++){var i=t[e];if(de(i)||i.id==="pendo-"+n)return i}}(document.getElementsByTagName("script"),e.apiKey);let i=e.pendoGlobalKey||"pendo";return n&&(i=n.getAttribute("data-pendo-global-key")||i,e.pendoGlobalKey=i),E=t[i]=t[i]||{}}(R_);return I_=A_,R_=R_,x.registry.addLocal(Md,{isPlain:!0,serializer:JSON.stringify,deserializer:gn,localStorageOnly:!0}),ye(R_),it=we("env")||it,at=we("server")||at,st=we("assetHost")||st,dt=we("assetPath")||dt,ut=we("designerServer")||ut,rt=we("globalBucket")||rt,ot=we("subscriptionBucket")||ot,__=ke()?it+"_ext":it,ct=lt+"_"+__,!re(R_)&&(__=R_,T_=I_,x_=Pd(),ge(__,T_,x_)||me(__,T_,x_))||I_&&I_.VERSION||(!et.isChromeExtension||(__=R_)&&__.useAssetHostForDesigner||console.warn("Pendo Agent detected running in a Chrome extension with setup that is incompatible with manifest V3. Please follow the linked instructions to maintain manifest V3 compatibility: https://www.npmjs.com/package/@pendo/agent#manifest-v3-extensions"),C.get("disablePendo")?(C_=I_,_.each(["initialize","identify","updateOptions","pageLoad","track","trackAgent"],function(e){C_[e]=function(){console.log("Pendo is currently disabled.")}})):((T_=A).registerModule("debugger",FS),T_.registerModule("errorLog",iS),T_.registerModule("frames",t),T_.registerModule("guideUpdate",or),T_.registerModule("guideState",n),T_.registerModule("healthCheck",e),T_.registerModule("location",Se),T_.registerModule("metadata",Ir),T_.registerModule("preview",wS),T_.registerModule("nodeAttr",GS),T_.registerModule("networkUrl",BS),Jo(),jc.behaviors=[df,jw,Bc.Guide,Ww,Vw,Kw,$w],Wc.behaviors=[df,tS,Jw,qc,Bc.Step,Yw,nS],qc.reset(),A.dispatch("frames/init"),X0.init(),Bi.wrapSizzle(lo,_0.shadowDom),lo.intercept(dc),E_(I_),T.addEventListener("log",_.partial(A.dispatch,"errorLog/write")),t0(qS),t0(VS),t0(e1),t0(n1),t0(c1),t0(w1),t0(_1),t0(B1),t0(H1),t0(W1),t0(q1),t0(V1),t0(K1),t0(yI),t0(AI),t0(zI),t0(WI),t0(GI()),t0(KI),t0(Dw),t0(g_),t0(S_),x_=I_._q,R_=L0,C.get("disableAutoInitialize")||(x_=(x_=N0(x_))&&1<x_.length?x_[1]:{},_.get(x_,T0)||C.get(T0)?R_():R0.push(qf(R_))))),A_}function TextCapture(){var i,r,n,o={};return{name:"TextCapture",initialize:function(e,t){r=t,(i=e).excludeAllText=r.ConfigReader.get("excludeAllText");t=r.ConfigReader.get("allowedText");o=i._.reduce(t,function(e,t){return i._.isString(t)&&(e[t]=!0),e},{}),r.NodeSerializer.add(a),n=i._.partial(s,e),r.Events.on("eventCaptured",n)},teardown:function(){r.NodeSerializer.remove(a),r.Events.off("eventCaptured",n)},isEnabled:d,isTextCapturable:u,hasWhitelist:c,serializer:a,guideActivity:s};function a(e,t,n){return t===n&&(d()||!d()&&c())&&u(t=i.getText(n,128))&&(e.txt=c()?r.util.trim.call(t):t),e}function s(e,n){if(d()){const i=e["_"],r=n.data[0];if(r&&"guideActivity"===r.type){n=i.reduce(e.getActiveGuides({channel:"*"}),(e,t)=>t.isShown()?e.concat(i.filter(t.steps,e=>e.isShown())):e,[]);if(n.length){const o=e.BuildingBlocks.BuildingBlockGuides.findDomBlockInDomJson;let t;i.find(n,e=>!!e.domJson&&(t=o(e.domJson,function(e){return e.props&&e.props.id&&e.props.id===r.props.ui_element_id}))),t&&(r.props.ui_element_text=t.content)}}}}function d(){return!i.excludeAllText&&"all"===r.analytics.getTextCollectionMode()}function u(e){var t;return"none"!==r.analytics.getTextCollectionMode()&&(t=r.util.trim.call(e),d()||i._.has(o,[t])||i._.has(o,[e]))}function c(){return 0<i._.size(o)}}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}const substitutionRegex="\\{(?:\\s?)([^.\\s]?visitor|account|parentAccount)\\.([^|\\s/]*)(?:\\s?\\|\\s?([^}]+|[\\/s]+))?(?:\\s?\\/\\s?){1}\\}",skipStepString="{skipStep:* *(auto|\\d+)\\/}",goToMiddleString="(?!0)(\\d+)",goToString=`({goto-${goToMiddleString}\\/})`,containerSelector='[id^="pendo-guide-container"]';function lookupGuideButtons(e,t=[]){if("button"===e.type&&e.actions&&t.push(e),e.children)for(const n of e.children)lookupGuideButtons(n,t);return t}function replaceFirstInTextNodes(t,n,i){for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];if(3===r.nodeType){var o=r.nodeValue.replace(n,i);if(o!==r.nodeValue)return r.nodeValue=o,!0}else if(replaceFirstInTextNodes(r,n,i))return!0}return!1}function removeMarkdownSyntax(e,t,n,i){i.dom(e).hasClass("_pendo-nps-open-text-poll-question")&&(e.normalize(),replaceFirstInTextNodes(e,t,n)),"button"!==e.localName&&"label"!==e.localName&&"a"!==e.localName||(e.textContent=e.textContent.replace(t,n)),0<e.children.length||(i.dom(e).hasClass("_pendo-simple-text")||i.dom(e).hasClass("_pendo-text-plain")||i.dom(e).hasClass("_pendo-text-list-item")||i.dom(e).hasClass("_pendo-text-link"))&&(e.textContent=e.textContent.replace(t,n))}var guideMarkdownUtil={substitutionRegex:substitutionRegex,skipStepString:skipStepString,goToString:goToString,containerSelector:containerSelector,lookupGuideButtons:lookupGuideButtons,removeMarkdownSyntax:removeMarkdownSyntax};const AUTO_ADVANCE_DELAY_MS=250;function isAutoAdvanceRequested(e,t){return!0===t.get(e,"attributes.autoAdvance")}function isStepEligibleInDom(e,t,n){const i=e&&e.guideElement;return!!i&&!i.find("textarea, input:text, input:checkbox, select").length&&!!(e=t.uniq(t.map(i.find("[data-pendo-poll-id]"),e=>e.getAttribute("data-pendo-poll-id")))).length&&t.all(e,e=>t.contains(n,e)&&0<i.find(`input:radio[data-pendo-poll-id="${e}"]`).length)}function hideSubmitButtons(t,e,n){const i=[];return e.each(n,e=>{e=t.guideElement.find("#"+e.props.id)[0];e&&(i.push({element:e,display:e.style.display}),e.style.display="none")}),function(){e.each(i,e=>{e.element.style.display=e.display})}}function reflowGuide(e,t,n){var i=t.get(n,"BuildingBlocks.BuildingBlockGuides.recalculateGuideHeight");try{t.isFunction(n.flexElement)&&n.flexElement(e.guideElement.find(guideMarkdownUtil.containerSelector)),t.isFunction(i)&&i("pendo-g-"+e.id,e.guideElement)}catch(r){n.log("[auto-advance] guide reflow failed, the step may keep an empty row",r&&r.message)}}function createInertController(){return{isActive:!1,notifyAnswered(){},cancel(){}}}function createAutoAdvanceController(t,n,e,i){const r=n._;var o=createInertController();if(!isAutoAdvanceRequested(t,r))return o;if(1!==r.size(e))return n.log(`[auto-advance] not arming: step ${t.id} needs exactly one submit button, found `+r.size(e)),o;if(!isStepEligibleInDom(t,r,i))return n.log(`[auto-advance] not arming: rendered step ${t.id} failed the eligibility re-check`),o;const a=e[0];if(1!==r.size(a.actions))return n.log(`[auto-advance] not arming: step ${t.id} submit button carries ${r.size(a.actions)} actions, expected one`),o;const s=r.find(a.actions,e=>"submitPoll"===e.action||"submitPollAndGoToStep"===e.action);if(!s)return o;let d=!1,u=r.noop;i=r.debounce(function(){if(!d){d=!0;try{t.eventRouter.eventable.trigger("pendoEvent",{action:s.action,params:s.parameters,step:t,ignore:!!s.ignore,srcElement:t.guideElement.find("#"+a.props.id)[0]})}catch(e){u(),reflowGuide(t,r,n),n.log("[auto-advance] submit dispatch failed, restored the submit button",e&&e.message)}}},AUTO_ADVANCE_DELAY_MS);return u=hideSubmitButtons(t,r,e),reflowGuide(t,r,n),{isActive:!0,notifyAnswered:i,cancel:i.cancel}}const SURVEY_ANSWERS_KEY="pendo_survey_answers",ANSWER_CONTROLS="input:radio, input:text, textarea, select",TEXT_CONTROLS="input:text, textarea",ANSWER_TTL_MS=432e5;let pluginApi=null,inMemoryAnswers={},persistedAnswersDropped=!1;const visitedSteps={};function setPluginApi(e){(pluginApi=e)&&e.agentStorage&&e.agentStorage.registry.addSession(SURVEY_ANSWERS_KEY)}function persistenceAllowed(){var e=!!pluginApi&&!!pluginApi.sessionStorage&&"function"==typeof pluginApi.storageIsDisabled&&!pluginApi.storageIsDisabled();return e?persistedAnswersDropped=!1:dropPersistedAnswers(),e}function dropPersistedAnswers(){!persistedAnswersDropped&&pluginApi&&pluginApi.sessionStorage&&(persistedAnswersDropped=!0,pluginApi.sessionStorage.removeItem(SURVEY_ANSWERS_KEY))}function readAll(){if(!persistenceAllowed())return inMemoryAnswers;try{return JSON.parse(pluginApi.sessionStorage.getItem(SURVEY_ANSWERS_KEY))||{}}catch(e){return{}}}function writeAll(e){persistenceAllowed()?pluginApi.sessionStorage.setItem(SURVEY_ANSWERS_KEY,JSON.stringify(e)):inMemoryAnswers=e}function visitorKey(e){return e._.isFunction(e.get_visitor_id)&&e.get_visitor_id()||"unknown"}function stateKey(e,t,n){return`${n}:${t.id}:`+e.id}function getNow(){return(new Date).getTime()}function isFresh(e){return!!e&&getNow()-e<=ANSWER_TTL_MS}function readRecord(e,t,n){n=readAll()[n],t=n&&n[t.id],n=t&&t[e.id]||null;return isFresh(n&&n.at)?n:null}function updateRecord(e,t,n,i){var r=readAll(),o=readRecord(e,t,n)||{};r[n]||(r[n]={}),r[n][t.id]||(r[n][t.id]={}),r[n][t.id][e.id]={at:getNow(),visited:i.visited||o.visited||0,answers:i.answers||o.answers||{}},writeAll(r)}function guideAutoAdvances(e,t){return t.any(t.get(e,"steps",[]),e=>isAutoAdvanceRequested(e,t))}function pollIdFor(e){let t=e;for(;t&&t.getAttribute;){var n=t.getAttribute("data-pendo-poll-id");if(n)return n;t=t.parentNode}return null}function isRadio(e){return"radio"===e.type}function collectAnswers(e,t){const n={};return t._.each(e.guideElement.find(ANSWER_CONTROLS),e=>{var t=pollIdFor(e);!t||n[t]||isRadio(e)&&!e.checked||e.value&&(n[t]=[e.value])}),n}function restoreAnswers(e,n,i){n._.each(e.guideElement.find(ANSWER_CONTROLS),e=>{var t=pollIdFor(e),t=t&&i[t];t&&(isRadio(e)?n._.contains(t,e.value)&&(e.checked=!0):e.value=t[0])})}function isRevisit(e,t,n){var i;return!!guideAutoAdvances(t,n._)&&(i=visitorKey(n),!!isFresh(visitedSteps[stateKey(e,t,i)])||!(!(e=readRecord(e,t,i))||!e.visited&&n._.isEmpty(e.answers)))}const AnswerCache={name:"AnswerCache",script(t,n,e){const i=visitorKey(e);var r=readRecord(t,n,i),r=(restoreAnswers(t,e,r&&r.answers||{}),this.on("beforeUnmount",e=>{e&&"hidden"===e.reason||(visitedSteps[stateKey(t,n,i)]=getNow(),updateRecord(t,n,i,{visited:1}))}),t.guideElement[0]);function o(){updateRecord(t,n,i,{answers:collectAnswers(t,e)})}t.attachEvent(r,"click",o),t.attachEvent(r,"change",o),e._.each(t.guideElement.find(TEXT_CONTROLS),e=>{t.attachEvent(e,"input",o)})},test(e,t,n){e=e&&e.guideElement;return!!e&&guideAutoAdvances(t,n._)&&0<e.find(ANSWER_CONTROLS).length}};function getZoneSafeMethod(e,t,n=window){var i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}const goToRegex=new RegExp(guideMarkdownUtil.goToString),PollBranching={name:"PollBranching",script(r,o,a){let s=!1;var e=initialBranchingSetup(r,a);!e||1<a._.size(e)||this.on("beforeAdvance",e=>{var t=0===r.guideElement.find("[branching] .pendo-radio:checked").length,n=r.guideElement.find("[branching] .pendo-radio:checked + label")[0];let i;n&&(i=a._.isNull(n.getAttribute("goToStep"))),s||t||i||(s=!0,branchingGoToStep(e,r,o,a))})},test(e,t,n){e=null==(e=e.guideElement)?void 0:e.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return!n._.isUndefined(e)&&n._.size(e)},designerListener(i){var e=i.dom.getBody();function r(e,t){return`<svg id="pendo-ps-branching-svg" viewBox="0 0 24 24" fill="none"
36
+ }`)}function v(e){var t,n,i,r,o,a,s,e=e["target"];"INPUT"===e.tagName&&(t=b(e))&&d&&(d.attributes.validationHidden=!1,d.domJson||(n=u.rules[0],i=O1("context-"+u.id,u.context),n=null!=n&&n.type?function(e,t){return{props:{id:"rule-"+e,"class":"text-row",style:{display:"flex","align-items":"center"}},children:[O1(e,t)],type:"div"}}(n.id,n.ruleText):null,0!==(i=[i,n].filter(Boolean)).length&&(n=Ce(T1),r=Ce(x1),o=Ce(R1),a=Ce(A1),s=Ce(k1),n.children.push(r,o),o.children.push(a),a.children.push(s),s.children=i,d.domJson=n)),d.show("api"),(o=document.getElementById("rule-"+(null==(r=null===u||void 0===u?void 0:u.rules[0])?void 0:r.id)))&&null!=(a=null===u||void 0===u?void 0:u.rules[0])&&a.type&&(s=null===u.isValid?N1(M1):c?N1(L1):N1(P1),o.insertBefore(s,o.firstChild)),""!==t.value)&&S(e)}function y(e){e=e.target;u&&d&&(r.Sizzle.matchesSelector(e,null===d||void 0===d?void 0:d.elementPathRule)&&I(e,c),d.hide({validationHidden:!0}),null===u.isValid&&!1===c&&(E().props.style.color="red"),u.isValid=c,u=null,d=null,c=null)}function b(t){d&&d.hide({validationHidden:!0}),d=null,u=null,c=null;for(const n of i){var e=_.find(n.steps,function(e){return r.Sizzle.matchesSelector(t,e.elementPathRule)});if(e)return d=e,u=null==(e=e.attributes)?void 0:e.field,c=u.isValid,u}return null}function w(e){var t,e=e["target"];r.Sizzle.matchesSelector(e,null===d||void 0===d?void 0:d.elementPathRule)?S(e):(t=b(e))&&(c=t.isValid,S(e))}function S(t){var n=null===u||void 0===u?void 0:u.rules[0];if(n){var i=U1[n.type];if(i){n=i(t.value,n.options),i=(c=!!n,E());let e;null===u.isValid?(i.props.style.color=n?"green":"gray",e=N1(n?L1:M1)):(i.props.style.color=n?"green":"red",e=N1(n?L1:P1),I(t,n)),d.hide({stepHidden:!0}),d.show("api");i=document.getElementById("rule-"+u.rules[0].id);i&&i.insertBefore(e,i.firstChild)}}}function E(){return Zc("text-"+u.rules[0].id,d.domJson)}function I(e,t){!1===t?e.setAttribute("data-pendo-field-valid",!1):e.removeAttribute("data-pendo-field-valid")}}(),z1=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 E="errorClickLogging",I=1500;let _=!1;return{name:"FrustrationEvent",initialize:function(e,t){S=e,c=S._,i=t,a=0,l=[],f=[],y={},_=i.ConfigReader.get(E),this.detachErrorEvent=i.attachEvent(window,"error",P,!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],x,!0));break;case"visibilitychange":t.push(i.attachEvent(window,e[n],()=>{T(250)},!0));break;default:t.push(i.attachEvent(window,e[n],T,!0))}return t}(),i.Events.on("eventCaptured",D),i.agentStorage.registry.addSession(w),S.sniffer.MutationObserver&&(C0.observing?C0.addEventListener("mutation",R):function(){var e=At("MutationObserver");n=new e(A);try{n.observe(S.dom.getBody(),{childList:!0,attributes:!0,subtree:!0})}catch(t){n=null}}())},teardown:function(){i.Events.off("eventCaptured",D),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();C0.observing&&C0.removeEventListener("mutation",R)},addErrorClickLog:N,getErrorEventTarget:L,checkErrorEvent:P,observeDOMMutation:A,checkFrustrationEvent:D};function C(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()){(l=c.filter(l,e=>t-e.timestamp<=p)).length&&Ut(C,p)}function T(e=g){v=!1,c.each(y,e=>{Gt(e)}),y={},Ut(()=>{v=!0},e)}function x(){var e=document.getSelection().toString();(b||e.length)&&(T(),b=!!e.length)}function R({mutation:e=[]}={}){A(e)}function A(e){e.length&&T()}function t(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function k(e){return e&&t(e.element)}function O(e,t){var{frustrationTypes:n=[]}=e;c.contains(n,t)||(n.push(t),e.frustrationTypes=n,S.buffers.flushLater())}function N(e,t){let n;var{detail:i={}}=t;(n=(k(i)&&i.error?i.error:t).message)&&n.length>I&&(n=n.substring(0,I)),e.errorClickLog=n}function M(e,t){var n=t.target&&"A"===t.target.tagName&&c.isFunction(t.target.hasAttribute)&&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],O(r,"deadClick")},g);y[o]=o}l.length>h&&l.pop(),l.unshift({target:t.target,activeElement:document.activeElement,browser_time:e.browser_time,timestamp:t.timeStamp}),Ut(C,p),c.each(f,e=>{P(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,O(e,"rageClick"))):(s=e.browser_time,d=t.x,u=t.y,a=1)}function L(e){if(t(e.target))return{detail:e={}}=e,k(e)?e.element:t(document.activeElement)?document.activeElement:void 0}function P(t){const n=L(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&&(O(e,"errorClick"),_)&&N(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)&&O(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 D(e){var t=e.data[0],e=e.data[1],e=("click"===t.type&&e&&M(t,e),"load"===t.type&&F(t),"submit"!==t.type&&"change"!==t.type||T(),c.has(e,"target")&&c.contains(m,e.target.tagName));"focus"===t.type&&e&&T()}}(),j1={};function q1(e){return 1===_.keys(e).length&&e.id}const W1={name:"GuideCache",initialize(e,t){this.onGuidesReceived=_.bind(this.guidesReceived,this),this.onEventCaptured=_.bind(this.eventCaptured,this),t.Events.on("guidesReceived",this.onGuidesReceived),this.subscriptions=[t.attachEvent(t.Events,"eventCaptured",this.onEventCaptured)]},teardown(e,t){t.Events.off("guidesReceived",this.onGuidesReceived),_.each(this.subscriptions,function(e){e()}),this.subscriptions=[]},guidesReceived(e){_.each(_.keys(j1),function(e){delete j1[e]});var t,n,i,r,e=e.data[0];e&&e.guideCache&&e.guides&&(n=e.guides,t=e.guideCache,n&&t&&_.each(n,function(i){if(i&&i.id){if(q1(i)){const r=t.get(i.id);return r&&r.steps?void _.each(r.steps,function(e){var t;e&&e.id&&(t={payload_seen_state:null},_.isUndefined(e.seenState)||null===e.seenState||(t.cached_seen_state=e.seenState),j1[i.id+":"+e.id]=t)}):void 0}const r=t.get(i.id);_.each(i.steps||[],function(e){var t,n;e&&e.id&&(t={payload_seen_state:_.isUndefined(e.seenState)?null:e.seenState},(n=r&&_.findWhere(r.steps,{id:e.id}))&&!_.isUndefined(n.seenState)&&null!==n.seenState&&(t.cached_seen_state=n.seenState),j1[i.id+":"+e.id]=t)})}}),e.guides=(n=e.guides,i=e.visitorId,r=e.guideCache,n&&(r?_.map(n,function(e){return q1(e)?r.get(e.id):(r.add(e,i),e)}):n)))},eventCaptured(e){var t,n;e&&e.data&&e.data.length&&(e=e.data[0])&&"guideSeen"===e.type&&_.contains(["auto","continue"],e.props.reason)&&(t=e.props.guide_id,n=e.props.guide_step_id,t=j1[t+":"+n])&&(e.props.payload_seen_state=t.payload_seen_state,_.isUndefined(t.cached_seen_state)||(e.props.cached_seen_state=t.cached_seen_state))}},V1=function(){const i="pendo-loader";let r,o,n,a;return{name:"IFrameMonitor",initialize:function(e,t){r=e,o=t,function(){o.ConfigReader.get("autoFrameInstall")&&o.Events.ready.on(p);a=o.ConfigReader.get("frameIdentitySync"),o.Events.childFrameJoined.on(s),a&&(o.Events.metadata.on(f),o.Events.identify.on(g))}(),n=o.ConfigReader.get("frameIdentityTopDownOnly")},teardown:function(){o.Events.ready.off(p),o.Events.metadata.off(f),o.Events.identify.off(g),o.Events.childFrameJoined.off(s)}};function s(){var e;(e=p0())&&o.store.dispatch("frames/changeCookieConsent",{tiers:e}),a&&m()}function d(e){return e.ignoreIframeMonitor||e.pendo&&(e.pendo.initialize||e.pendo.iframeWaiting)||e.document&&e.document.body&&!e.document.body.hasChildNodes()||!!e.document.getElementById(i)}function u(e,t){var n;d(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 c(e,t){e.pendo.iframeWaiting=!1,u(e,t)}function l(e){try{if(d(e))return}catch(n){return}var t=function(){var e=o.ConfigReader.get("selfHostedAgentUrl");if(e)return e;e=r.dom("script");const t=/\/pendo(\.\w+)?\.js$/;return(e=r._.find(e,e=>t.test(e.src)))&&e.src}();t?"complete"===e.document.readyState?u(e,t):(e.pendo={iframeWaiting:!0},e.addEventListener("load",r._.partial(c,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++)l(window.frames[e]);Ut(e,250)}function p(){e()}function h(){return!n||n&&o.store.getters["frames/isLeader"]()}function f(e){h()&&(e=null==(e=e.data)?void 0:e[0]).storeChanged&&o.store.dispatch("frames/syncOptions",{options:e.options})}function g(e){var t;m(null==(t=e.data)?void 0:t[0].visitor_id,null==(t=e.data)?void 0:t[0].account_id)}function m(e=v(),t=Ai()){h()&&o.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}}(),K1=function(){let o,a,s;var d="objectMetadata";function n(e,t,n){var i,r;u(e)&&u(t)?(i=JSON.stringify([e,t]),r=_t(n),s.get(i)===r?(s["delete"](i),s.set(i,r)):(s["delete"](i),s.set(i,r),10<s.size&&s["delete"](s.keys().next().value),a.agentStorage.write(d,Array.from(s)),a.analytics.collectEvent("objectMetadata",{objectId:e,type:t,metadata:n}),o.buffers.flushLater())):a.log.warn("objectMetadata requires a non-empty objectId and type.")}return{name:"ObjectMetadata",initialize:function(e,t){o=e,(a=t).agentStorage.registry.addLocal(d,{isSecure:!0,localStorageOnly:!0,serializer:JSON.stringify,deserializer:gn}),s=function(){var e=a.agentStorage.read(d);return Array.isArray(e)?new Map(e):new Map}(),o.objectMetadata=n},teardown:function(){delete o.objectMetadata},objectMetadata:n};function u(e){return"string"==typeof e&&0<e.length}}(),$1=function(){let n,i,r;return{name:"OemAccountId",initialize:function(e,t){n=t,(i=n.ConfigReader.get("oemAccountId"))&&(r=function(e){e=e,i&&e&&e.data&&e.data[0]&&(e.data[0].oem_account_id=i)},n.Events.on("eventCaptured",r))},teardown:function(){r&&n.Events.off("eventCaptured",r)}}}();var J1=null,Y1=function(){return Qu()?Vu:Wu},X1=function(e){return"#_pendo_g_"+e.id},Z1=function(e,t){J1=null;var n,i,r,o,e=ja(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(Y1()),o=dE(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"}),M("._pendo-guide-container_",n).addClass(o.arrowPosition).css({top:o.content.top,left:o.content.left,width:o.content.width,height:o.content.height}),Q1(n[0],o),n[0])},Q1=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=_.chain(n).filter(function(e){return e!==o}).map(function(e){return"border-"+e+"-width:"+E.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=M("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),d=M("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");_.each(n,function(e){s.removeClass(i+e+"_").removeClass(e),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;"),M(e).append(s).append(d)},eE=function(e,t){t===undefined&&(t=Lu),e.element=nc(e);var n=e.element;if(!n)return T.info("No element found for step: "+e.id),null;ls(n);var i=Z1(n,e);return null===i?null:(i.id=E.getTooltipDivId(e),M(i).appendTo(ec()),t.push(i),F(i,"mouseover",_.partial(M.addClass,i,"mouseover")),F(i,"mouseout",_.partial(M.removeClass,i,"mouseover")),oc(n,i),oE(e),n)},tE=null,nE=null;var iE=null,rE={top:"north",left:"east",bottom:"south",right:"west"},oE=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=vl(n=n.concat(_.compact(_.flatten(_.map(t.additionalElements,function(e){return _.toArray(M(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=ml(a=gl(),i,o),h=i,f=!_.isEqual(h,tE),tE=h,f||(l=a,p=!_.isEqual(l,nE),nE=l,p)||(u=s,c=!_.isEqual(u,iE),iE=u,c))&&(d={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(d["background-color"]=t.bgColor),t.opacity&&(d.opacity=t.opacity),_.each(s,function(e,t){t=rE[t],e=_.extend({},e,d),t=M("div._pendo-guide-tt-region-block_._pendo-region-"+t+"_")[0]||aE(t),M(t).css(e)}))}catch(g){T.info("Failed to add BlockOut ui",{contexts:["error"]})}var u,c,l,p,h,f},aE=function(e){e=M(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");M("body").append(e)},sE=function(e){var t=_.isEqual(e,J1);return J1=e,!t},dE=function(e,t,n,i){var r=E.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=Ba();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=uE(o,e,a,i=i||"auto"),o=cE(o,e,a,i),o=lE(o,e,a)},uE=function(e,t,n,i){return e.arrow.hbias=Ll(t,n,i),e},cE=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-sa(),t=(r=t.left-da())+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},lE=function(e,t,n){var i,r,o,a=e.height,s=e.width;return tt()?nt(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=Me(9,6)?6:2,i=-1):"bottom"==e.arrowPosition&&(e.top=t.top-a,e.arrow.top=a-E.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=Me(9,6)?6:0,e.arrow.top+=8==Le?-1:0,i=1),r=10+E.TOOLTIP_ARROW_SIZE,o=s-3*E.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==Ol?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==Nl?(e.left=t.left-s+t.width/2+(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=o):(e.left=t.left+t.width/2-s/2,e.arrow.left=s/2-E.TOOLTIP_ARROW_SIZE),!1!==e.arrow.floating&&(n=e.left+s-n.width,0<(n-=Math.max(0,e.arrow.left+n-o))&&(e.left-=n,e.arrow.left+=n),o=-e.left,0<(o-=Math.max(0,r-(e.arrow.left-o))))&&(e.left+=o,e.arrow.left-=o),e.arrow.border.top=e.arrow.top+i,e.arrow.border.left=e.arrow.left):(e.arrow.hbias==Ol?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=Me(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==Nl&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=Me(10,6)?5:0,e.arrow.left+=7==Le&&6<=Pe?1:0,e.arrow.border.left=e.arrow.left+1),e.top=t.top-a/2+t.height/2,e.arrow.top=a/2-E.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e)},pE=430,hE=200,fE=15;function gE(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||E.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||E.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.canShow=function(){return!Tm(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(ku())&&Rm(t)},this.after("render",function(){eE(this,this.elements)}),this.reposition=function(){var e=this.attributes.width,t=this.attributes.height,n=this.attributes.layoutDir,i=this.guideElement,r=M("._pendo-guide-container_",i),o=ja(this.element),t=dE(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+"_"),M("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),Q1(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,oE(this)},this.after("hide",function(){M("._pendo-guide-tt-region-block_").remove(),iE=nE=tE=null})),this}var mE=function(e,t){var n=!!M("._pendo-backdrop_")[0];return _.get(t,"overlayDiv[0]")||(t.overlayDiv=M(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(ec())),tt()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&M(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},vE=function(e){var t=e.guideElement,n=E.TOOLTIP_ARROW_SIZE,i=e.attributes.height,e=e.attributes.width,e=Math.floor(e/2),i=Math.floor(i/2);t.addClass("_pendo-guide-lb_").css({top:"50%",left:"50%","margin-top":-i,"margin-left":-e}),M("._pendo-guide-container_",t).css({bottom:n,right:n}),tt()&&t.css({position:"absolute"})},yE=function(e,t){t===undefined&&(t=Lu),e.element=nc(e),vE(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(mE(n,e),e.guideElement);t.push(n[0]),n.appendTo(ec())},bE=function(e,t){t===undefined&&(t=Lu),e.element=nc(e),e.guideElement.addClass("_pendo-guide-mobile-lb_");var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=mE(n,e),e=e.guideElement,i=E.TOOLTIP_ARROW_SIZE,i=(e.css({width:"",height:""}),M("._pendo-guide-container_",e).css({bottom:i,right:i}));function r(e){e.preventDefault()}M("._pendo-close-guide_",e).remove().prependTo(i),e.appendTo(ec()),t.push(e[0]),F(n[0],"touchmove",r),F(e[0],"touchmove",r)};function wE(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||E.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||E.LB_DEFAULT_WIDTH,e.after("render",function(){(Qu()?bE:yE)(e,e.elements)}),e.reposition=function(){Qu()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var SE=500,EE="_pendo-guide-banner_";function IE(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||SE,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=E.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(EE).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),Zu()||e.addClass("_pendo-in_"),M("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=nc(n),n.elements.push(e[0]),e.appendTo(ec())})),n}function _E(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(_.extend(n,{isShown:_.constant(!1),launch:d,onShown:d,render:function(){var e=n.guideElement,t=n.attributes.height;e&&e.html()||(e=M(document.createElement("div")).attr("id",Nm(n)).addClass("_pendo-guide-whatsnew_").html(n.getContent()),_.isNumber(t)&&!n.attributes.autoHeight&&e.height(t),n.seenState===r&&e.addClass(i),n.guideElement=e)},seen:s}),_.extend(t,{addToLauncher:function(){var e=n.guideElement;e&&!$a(e[0])&&(M("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),Jc.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){Zu()||a()&&n.seenState!==r&&function(e){{var t,n;if(ds(e,/(auto|scroll|hidden)/))return(t=Za(e))?(t=Ja(t),e=Ja(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(Um(n.guideId,n.id,v(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,_.delay(function(){n.guideElement.addClass(i+" out")},_.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function d(){}}var CE="_pendo-launcher-searching_",TE="._pendo-launcher-search-box_ input";var xE=function(e){return e&&_.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function RE(){var e;return function(){var e;if(E.guideWidget)return(e=E.guideWidget.data)&&e.enableSearch}()&&(e=M(TE)[0])&&0<(e=e.value).length?(e=mt.call(e),[].concat(_.compact(e.split(" ")))):[]}function AE(e){if(!C.get("disablePrefetch"))return m.all(_.map(e,function(e){return e.fetchContent()}))}function kE(e,t){return T.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||y(),t&&0!==t.length?_.chain(e).filter(xE).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return _.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var OE="launcher-closed",NE=null,ME=null,LE=!1,PE="_pendo-launcher-active_",DE=null,FE=function(){return""};function UE(e,t){FE=t}function GE(e){var t,e=_.filter(e||y(),xE);return e=e,0===(t=RE()).length?e:(t=_.map(t,_.partial(kE,e)),_.union.apply(_,t))}function BE(e){return _t(_.map(e,function(e){var t=e.isWhatsNew()?[]:_.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function HE(e){var n=this,t=e.launchType||"badge",i=(_.extend(n,{show:function(){"badge"===t&&M(n.element).css("display: ;")},hide:function(){M(n.element).css("display: none;")},wrap:function(){var e=n.element;{var t;e&&/^img$/i.test(e.nodeName)&&(t=M(document.createElement("div")).addClass(e.className).append(e).appendTo(ec()),e.className="",n.element=t[0])}},dispose:function(){M.removeNode(n.element)},setActive:function(e){e?M(n.element).addClass(PE):M(n.element).removeClass(PE)}}),e),e=i.position||"bottom-right",r=document.createElement("img");M(n.element=r).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+e+"_"),i.launcherBadgeUrl&&(r.src=Ec(i.launcherBadgeUrl)),r.onerror=function(e){T.info("[Pendo Web SDK] Error! Unable to load guide center image "+i.launcherBadgeUrl),T.critical("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},tt()&&(F(r,"mouseover",function(e){M(r).addClass("_pendo-launcher-badge-active_")}),F(r,"mouseout",function(e){M(r).removeClass("_pendo-launcher-badge-active_")}),M(r).css({position:"absolute"})),ec().appendChild(r)}function zE(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=yo(e),t=n();M(e).closest(t).length&&(eI()?x.write(OE,"yes"):E.guideWidget.position(e),rI())}E.guideWidget.removeCountBadge=function(){M("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),_.extend(this,{getLauncherTarget:function(){return M(n())[0]},dispose:function(){qf(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&M("._pendo-launcher-whatsnew-count_").remove()}}),F(document,"click",t)}function jE(){var n,s="bottom-right",d="bottom-left";return this.update=function(e,t){t=t?e:GE(e),e=BE(t)+_t(RE());return e!==n&&(n=e,this.updateLauncherContent(t)),KE(),0<t.length},this.updateLauncherContent=ZE,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(NE=new HE(e),e.height||310),n=(e.enableSearch&&(t+=tt()?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,M(document.createElement("div")).addClass("_pendo-launcher_")),r=(ME=i[0],ja(NE.element)),r=dE(r,t,n),o=(i.css({width:n,height:t}),E.TOOLTIP_ARROW_SIZE),n=M(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=XE(),o=Ec(qE(this.template(t))),t=M(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),lm(i[0],function(){nI(),x.write(OE,"yes",288e5)}),t.on("click",function(e){var t=M(yo(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=b((t=/^launcher-(.+)$/.exec(mt.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(Dm(t.steps[0],"launcher"),nI(),Wf(e))}),tt()&&(M("._pendo-launcher-header_",i).css({padding:"10px","margin-right":"10px","margin-left":"10px"}),M("._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");M(this).css(e)}),i.appendTo(ec()),_.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!Me(9,6)&&(o=e.autoHeight.offset||100,i.css({height:"calc(100% - "+o+"px)",maxHeight:e.height,minHeight:e.height/2}),M("._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=ja(e),n=dE(e,this.height,this.width),i=M(ME),"badge"===(r=t.launchType||"badge")?(o=t.position,_.indexOf(a=[s,d,"top-left","top-right"],t.position)<0&&(o=s),_.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=_.contains([s,d],o)?"bottom":"top",n.arrow.hbias=_.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"}),M("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),lE(n,e,{width:Infinity,height:Infinity}),Q1(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=rI,this}function qE(e){return e=_.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function WE(e,t){e.contentHostUrl&&(e.contentHostUrl=(n=e.contentHostUrl,i=location,(r=C.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)),DE=new zE(e);var n,i,r=jE.create(E.guideWidget);return _.isFunction(r.template)||(r.template=e.template?_.template(e.template):FE),r.render(),r.position(DE.getLauncherTarget()),t&&r.toggle(),r}jE.create=function(e){return _.reduce(jE.behaviors,function(e,t){return t.call(e)},e)},jE.behaviors=[uf,jE,Hc.Launcher,function(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){M(TE).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,E.disableGuideCenterContentSearch||this.before("update",AE),this.before("update",function(){t.text=RE().join(" ");var e=M("._pendo-launcher_");t.text?e.addClass(CE):e.removeClass(CE)})),this},function(){var n=this;{var i;n.data&&n.data.onboarding&&(i=n.onboarding=n.onboarding||{},n.before("update",function(e){var e=_.filter(e,Vw),t=_.filter(e,function(e){return"complete"==n.guideStatus(e)}),e=i.total=e.length,t=(i.percentComplete=0<e?Math.round(t.length/e*100):0,M("._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=M(document.createElement("div")).addClass("_pendo-launcher-whatsnew-count_");n.data&&n.data.whatsnew&&n.data.whatsnew.enabled&&(n.before("updateLauncherContent",function(e){e=_.filter(e,function(e){return e.isWhatsNew()});e.sort(t),n.data.whatsnew.total=e.length,n.data.whatsnew.guides=e}),n.after("update",function(e){var t=n.data.whatsnew.guides,t=(_.each(t,function(e){e.show()}),_.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),_.filter(t,function(e){return"active"!==e.steps[0].seenState}).length);t!==n.data.whatsnew.unseenCount&&(i.html(t).css({display:t?"":"none"}),n.data.whatsnew.unseenCount=t,M("span._pendo-launcher-whatsnew-count_").text(n.data.whatsnew.unseenCount))}),n.after("render",function(){YE()?i.appendTo(this.data.launchElement):(NE.wrap(),i.appendTo(NE.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 VE=function(){ME&&(M.removeNode(ME),ME=null),DE&&(DE.dispose(),DE=null),NE&&(NE.dispose(),NE=null)},KE=function(){(!YE()&&(tI()||0<RE().length)?$E:JE)()},$E=function(){NE&&NE.show()},JE=function(){YE()||nI(),NE&&NE.hide()},YE=function(){return!(!E.guideWidget||!E.guideWidget.data||"element"!==E.guideWidget.data.launchType)},XE=function(e){var t=Fp(),t=_.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:Et(t)},E.guideWidget);return t.data=_.extend({},t.data),e&&(t.guides=e),t};function ZE(e){var t=E.guideWidget.template||FE,e=XE(e),e=M(document.createElement("div")).html(qE(t(e))),n=e.find("._pendo-launcher-guide-listing_"),t=e.find("._pendo-launcher-footer_").html(),e=e.find("._pendo-launcher-search-results_").html();M("._pendo-launcher_ ._pendo-launcher-guide-listing_").each(function(e,t){M(e).html(n.eq(t).html())}),M("._pendo-launcher_ ._pendo-launcher-footer_").html(t),M("._pendo-launcher_ ._pendo-launcher-search-results_").html(e)}var QE=_.compose(KE,function(e,t){var n,i,r,o;xE(e)&&(n=M("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0])&&(e=(o=M("#launcher-"+e.id)).length?o[0]:(e=e,M(i=document.createElement("div")).addClass("_pendo-launcher-item_"),M(i).attr("id","launcher-"+e.id),(r=document.createElement("a")).href="#",r.appendChild(document.createTextNode(e.name)),i.appendChild(r),i),o=0<o.length,_.isNumber(t)&&(r=M("._pendo-launcher-item_"))[t]?e.id!=r[t].id&&n.insertBefore(e,r[t]):n.appendChild(e))}),eI=function(){return M(ME).hasClass(PE)},tI=function(){return 0<M("._pendo-launcher-item_").length},nI=function(){var e;ME&&(e=M(ME))&&e.hasClass(PE)&&(e.removeClass(PE),NE)&&NE.setActive(!1)},iI=function(){var e;ME&&(e=M(ME))&&!e.hasClass(PE)&&(e.addClass(PE),NE)&&NE.setActive(!0)},rI=function(){ME&&!LE&&(eI()?nI:iI)()};var oI,aI=function(){try{var e=E.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};VE(),!Qu()&&!n.desktop||Qu()&&!n.mobile||Vs()&&!n.iframe||e.enabled&&(WE(t),JE())}catch(i){T.critical("ERROR while initializing launcher",{error:i})}},sI=function(e){e.defaultLauncher=UE,_.each(e._defaultLauncher_queue,e=>{UE.apply(null,e)}),e._defaultLauncher_queue=[],e.toggleLauncher=rI,e.showLauncher=iI,e.hideLauncher=nI,e.removeLauncher=VE,e.initLauncher=aI,e.createLauncher=WE,e._addGuideToLauncher=QE,e.launcherToolTipDiv=ME},dI=function(){aI()},uI=function(){var e;(e=E).designer&&(e.designer.createLauncher=WE,e.designer.removeLauncher=VE,e.designer.addGuideToLauncher=QE,e.designer.updateLauncherContent=ZE)},cI=function(){var e;(e=E).debugging&&(e.debugging.getLauncherGuides=GE)},lI=function(e){return i=E.guideWidget,e=e,r=i&&i.data,e=_.filter(e,function(e){e=_.first(e.steps);return e&&"launcher"===e.type}),(e=_.first(_.sortBy(e,function(e){return-e.lastUpdatedAt})))&&r&&(e=_.first(e.steps),_.extend(r,_.pick(e,"contentUrl","contentUrlCss","contentUrlJs"),e.attributes),_.defaults(r,{whatsnew:{},knowledgebase:{}}),r.id=e.guideId+e.id),n=(t=i)&&t.data||{},!0!==C.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?Nc.verify(n).then(function(){return _c.load(n)}).then(function(e){return n.template=e.content,_.extend(t,e)}):m.resolve();var t,n,i,r},pI=function(){var e=y();if(cc()){if(E.guideWidget&&E.guideWidget.enabled){var t=GE(e),n=!0;if(E.guideWidget&&_.isFunction(E.guideWidget.update))E.guideWidget.update(t,n)}}else{JE();t=Uu(e),n=BE(GE(t));n!==oI&&A.dispatch("frames/changeGuideList",t),oI=n}},hI=function(e,t){sI(e),t.Events.on("guidesLoaded",dI),t.Events.on("designerLaunched",uI),t.Events.on("debuggerLaunched",cI),t.GuideLoop.addUpdatePhase(pI),uv.push(lI),t.agentStorage.registry.addLocal(OE,{duration:864e6,localStorageOnly:!0})},fI=function(e,t){var n;n=lI,0<=(n=_.indexOf(uv,n))&&uv.splice(n,1),t.GuideLoop.removeUpdatePhase(pI),t.Events.off("guidesLoaded",dI),t.Events.off("designerLaunched",uI),t.Events.off("debuggerLaunched",cI)};Qb.Extensions.API.addTopic("Launcher",{addBehavior(e){jE.behaviors.push(e)}});var gI,mI,vI,yI,bI={name:"P1Guides",initialize:function(e,t){var n;vI=t,gI=(mI=e).dom,yI=[gE,wE,IE,_E,EI,II,SI,wI],-1<_.indexOf(Wc.behaviors,gE)||(n=_.indexOf(Wc.behaviors,Xw),Wc.behaviors.splice.apply(Wc.behaviors,[n,0].concat(yI)),t.Events.guideLoopStopped.on(JE),e.TOOLTIP_DEFAULT_WIDTH=pE,e.TOOLTIP_DEFAULT_HEIGHT=hE,e.TOOLTIP_ARROW_SIZE=fE,e._showElementGuide=eE,e._createTooltip=Z1,e._get_tooltip_dimensions=dE,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e._showLightboxGuide=yE,hI(e,t))},teardown:function(){fI(0,vI),vI.Events.guideLoopStopped.off(JE),mI._.each(yI,function(e){e=_.indexOf(Wc.behaviors,e);0<=e&&Wc.behaviors.splice(e,1)}),yI=[]}};function wI(){const o=this;return"tooltip"!==o.type||o.domJson||(o.checkPlacement=function(){var e,t,n,i,r;e=o,r=ja(e.element||nc(e)),oE(e),sE(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=dE(r,n,i,t),(i=M(X1(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),Q1(i,n))}),o}function SI(){var i=this;return i.attributes&&i.attributes.autoHeight&&(i.after("render",function(){i.guideElement&&i.guideElement.length&&(i.resize(),i.attachEvent(i.guideElement[0],"load",function(){i.resize()}))}),i.resize=function(){var e,t=E.TOOLTIP_ARROW_SIZE,n=i.guideElement;n&&(e=gI("._pendo-guide-container_",n),"tooltip"==i.type||tt()&&"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 EI(e){var t=this;return t.domJson||t.domJsonpUrl||"html"===t.type||t.after("render",function(){t.guideElement&&t.guideElement.length&&lm(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||wm(t)})}),t}function II(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||"html"===e.type||Yu(e.guide)||e.after("render",function(){Cm(e.guideElement[0])}),e}const _I="__sg__";TI="promotedAgentMetadataConfigurations",xI=[],RI={},AI={};var CI,TI,xI,RI,AI,kI={name:"PromoteMetadata",initialize:function(e,t){if(xI=(CI=t).ConfigReader.get(TI),AI={},CI.agentStorage.registry.addLocal(_I,{isSecure:!0,serializer:JSON.stringify,deserializer:gn}),gi())try{RI=CI.agentStorage.read(_I)}catch(n){DI()}xI&&xI.length&&(CI.Events.on("metadata",MI),CI.Events.on("eventCaptured",UI),CI.Events.on("identify",LI))},teardown:function(){CI.Events.off("metadata",MI),CI.Events.off("eventCaptured",UI),CI.Events.off("identify",LI)},getPromotedMetadata:function(){return xI},hasPromotedMetadataKind:OI,setSchemaGroup:MI,getSchemaGroup:NI,resetSchemaGroup:PI,resetCachedSchemaGroup:DI};function OI(t){return _.some(xI,function(e){return e.kind===t})}function NI(){return AI}function MI(e){var t;e?(e=e.data[0]["options"],e&&(t=e)):t=Fp(),AI=function(r){if(gi())try{var e=CI.agentStorage.read(_I);RI=function(e){e=_.mapObject(e,(t,e)=>{const n={};return _.each(Object.keys(t),function(e){n[e.replace("agent__","")]=t[e]}),n});return e}(RI=e)}catch(t){DI()}var o=AI;_.each(["visitor","account","parentAccount"],function(e){var t=OI(e),n=!_.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!_.isEmpty(RI)&&_.isEmpty(_d.get())&&(o[i]=FI(RI[i],e)),n)&&(t=FI(r[e],e),_.isEmpty(t)||(o[i]=Object.assign(Object.assign({},o[i]),t)))}),gi()&&CI.agentStorage.write(_I,o);return o}(t)}function LI(e){e=e.data[0];_.get(e,"wasCleared")&&(CI.agentStorage.clear(_I),PI())}function PI(){AI={}}function DI(){RI={}}function FI(e,i){var r={};return e&&_.each(e,function(e,t){var n=t.toLowerCase();Boolean(_.find(xI,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function UI(e){e=e.data[0];e&&(_.isEmpty(AI)&&MI(),_.isEmpty(AI)||("track"===e.type?e.props.__sg__=AI:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=AI)))}const GI="segmentFlagsCache";function BI(){let s,d,o,u=null,a=!1,c={},l,p,e=!1;return{name:"SegmentFlags",initialize:function(e,t){var n="requestSegmentFlags",e=(s=e,(d=t).ConfigReader);if(e.addOption(n,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],false),o=e.get(n)){if(u=null,a=!1,t.agentStorage.registry.addLocal(GI,{isSecure:!0,localStorageOnly:!0,duration:2592e6,serializer:JSON.stringify,deserializer:gn}),c={},gi())try{var i=t.agentStorage.read(GI);i&&i.flags&&(c=i.flags,s.segmentFlags=Object.keys(i.flags),l=i.timestamp||null,p=i.hash||null,a=!0,d.Events.segmentFlagsReady.trigger({flags:s.segmentFlags,fromCache:!0,cacheTimestamp:l}))}catch(r){d.Events.segmentFlagsError.trigger("Error reading segment flags from cache")}s.getSegmentFlag=m,s.segmentsPayload=v,d.Events.ready.on(h),d.Events.identify.on(g),d.Events.metadata.on(g),d.Events.eventCaptured.on(f)}},teardown:function(){o&&(s.segmentsPayload=s._.noop,d.Events.ready.off(h),d.Events.identify.off(g),d.Events.metadata.off(g),d.Events.eventCaptured.off(f),u=null,a=!1,c={},l=null,p=null,e=!1)}};function h(){e=!0,g()}function f(e){p&&e&&e.data&&e.data.length&&(e=e.data[0])&&"object"==typeof e&&(e.segmentFlagsHash=p)}function g(){if(e){var t=s._.uniqueId(),n=(u=t,{visitorId:s.get_visitor_id(),accountId:s.get_account_id(),metadata:s.getSerializedMetadata(),url:s.url.get()}),i=s.compress(n),t={id:t,jzb:i,v:s.VERSION,ct:(new Date).getTime()},n=(d.agent.treatAsAdoptPartner()&&d.agent.addAccountIdParams(t,n.accountId,d.ConfigReader.get("oemAccountId")),"script"===s.LOADER?"segmentflag.js":"segmentflag.json");let e=d.transmit.buildBaseDataUrl(n,s.apiKey,t);var r,o,n=d.agent.getJwtInfoCopy();try{d.transmit.shouldLoadWithPost(e,n)?(delete t.jzb,e=d.transmit.buildBaseDataUrl("segmentflag.json",s.apiKey,t),r=s._.extend({events:i},n),function(t,n){Lb(this,void 0,void 0,function*(){try{v((yield s.ajax.postJSON(t,n)).data)}catch(e){d.Events.segmentFlagsError.trigger("Error requesting new segment flags")}})}(e,r)):"script"===s.LOADER?(o=e,s.loadResource(o,s._.noop)):function(t){Lb(this,void 0,void 0,function*(){try{v((yield s.ajax.get(t)).data)}catch(e){d.Events.segmentFlagsError.trigger("Error requesting new segment flags")}})}(e)}catch(a){d.log.error("Failed to load segment flags",{error:a}),d.Events.segmentFlagsError.trigger("Error requesting new segment flags")}}}function m(e){return!(!c||c[e]===undefined)&&c[e]}function v(e){if(u&&(!s._.isString(e.id)||e.id===u)){let t={},n=[];if(e.segmentFlags){n=e.segmentFlags;for(let e=0;e<n.length;e++)t[n[e]]=!0}else e.flags&&(t=e.flags,n=Object.keys(t));var i=function(t={},n={}){var i=Object.keys(t),e=Object.keys(n);if(i.length!==e.length)return!0;for(let e=0;e<i.length;e++){var r=i[e];if(t[r]!==n[r])return!0}return!1}(c,t);s.segmentFlags=n,c=t,l=Date.now(),p=e.hash||null,gi()&&d.agentStorage.write(GI,{flags:t,timestamp:l,hash:p}),a?i&&d.Events.segmentFlagsUpdated.trigger(s.segmentFlags):(a=!0,d.Events.segmentFlagsReady.trigger({flags:s.segmentFlags,fromCache:!1,cacheTimestamp:l})),d.log.info("successfully loaded segment flags"),u=null}}}class HI{constructor(e,t,n,i,r){this.listeners=[],this.latestPromptValue="",this.isActive=!0,this.lastSubmitTime=0,this.compositionState=new WeakMap,this.dom=e.dom,this._=e._,this.api=t,this.q=t.q,this.id=n,this._.isArray(i)||(this.api.log.error("inputCssSelectors must be an array, received:",typeof i),i=[]),this._.isArray(r)||(this.api.log.error("submitCssSelectors must be an array, received:",typeof r),r=[]),this.inputEls=this._.map(i,e=>new this.dom.Element(e)),this.submitEls=this._.map(r,e=>new this.dom.Element(e)),this.setupInputListeners(),this.setupSubmitListeners(),this.setupObserver()}isComposing(e){var t=e.target,t=t&&this.compositionState.get(t);return e.isComposing!==undefined?e.isComposing:t}isEnterKey(e){return("Enter"===e.code||"Enter"===e.key||13===e.keyCode)&&!e.shiftKey}setupInputListeners(){this._.each(this.inputEls,e=>{e&&(e.addEventListener("compositionstart",e=>{e=e.target;e&&this.compositionState.set(e,!0)},!0),e.addEventListener("compositionend",e=>{e=e.target;e&&(this.compositionState.set(e,!1),this.capturePromptValue())},!0),e.addEventListener("compositionupdate",e=>{e=e.target;e&&this.compositionState.set(e,!0)},!0),e.addEventListener("blur",e=>{e=e.target;e&&this.compositionState.set(e,!1)},!0),e.addEventListener("input",e=>{this.isComposing(e)||this.capturePromptValue()},!0),e.addEventListener("change",e=>{this.capturePromptValue()},!0),e.addEventListener("keydown",e=>{this.isEnterKey(e)&&!this.isComposing(e)&&this.submit(this.latestPromptValue)},!0),e.addEventListener("keyup",e=>{this.isComposing(e)||this.capturePromptValue()},!0))})}setupSubmitListeners(){this._.each(this.submitEls,e=>{e&&(e.addEventListener("mousedown",e=>{var t=this.getPromptValue()||this.latestPromptValue;this.submit(t)},!0),e.addEventListener("keydown",e=>{this.isEnterKey(e)&&(e=this.getPromptValue()||this.latestPromptValue,this.submit(e))},!0))})}setupObserver(){var e,t;document.body?(this.promptContainer=new this.dom.Observer,e=this._.filter(this.inputEls,e=>e),t=this._.filter(this.submitEls,e=>e),this.promptContainer.addObservers(...e,...t)):(this.observerReadyListener=()=>{document.removeEventListener("DOMContentLoaded",this.observerReadyListener),this.setupObserver()},document.addEventListener("DOMContentLoaded",this.observerReadyListener))}submit(e){if(e&&this.isActive){var t=Date.now();if(!(t-this.lastSubmitTime<2)){this.lastSubmitTime=t;const n={agentId:this.id,prompt:e};this._.each(this.listeners,e=>e(n))}}}capturePromptValue(e=!1){var t=this.getPromptValue();return!t&&e||(this.latestPromptValue=t),t}isPasswordInput(e){return!!e&&!!e.tagName&&"input"===e.tagName.toLowerCase()&&"password"===e.type}getInputText(e){return this.isPasswordInput(e.get())?"":e.getText()}getPromptValue(){var e=this._.find(this.inputEls,e=>{if(e)try{var t=this.getInputText(e);return t&&t.trim()}catch(n){}return!1});if(e)try{return this.getInputText(e).trim()}catch(t){}return""}onSubmit(e){this.listeners.push(e)}suspend(){this.isActive=!1}resume(){this.isActive=!0,this._.each(this.inputEls,e=>{e&&e.get()}),this._.each(this.submitEls,e=>{e&&e.get()})}teardown(){this.observerReadyListener&&document.removeEventListener("DOMContentLoaded",this.observerReadyListener),this.promptContainer&&this.promptContainer.teardown(),this._.each(this.inputEls,e=>{e&&e.teardown()}),this._.each(this.submitEls,e=>{e&&e.teardown()})}}class zI{constructor(){this.name="PromptAnalytics",this.configName="aiAgents",this.prompts=[]}initialize(e,t){this.pendo=e,this.api=t,this._=this.pendo._,this.agentsCache=new Map,this.api.ConfigReader.addOption(this.configName,["pendoconfig","snippet"]),this.loadConfig(this.configName).then(e=>this.onConfigLoaded(e))["catch"](e=>this.api.log.error("[PromptPlugin] Failed to load config:",e)),null!=(e=this.api.Events.guidesLoaded)&&e.on(()=>{this.reEvaluatePageRules()}),null!=(t=this.api.Events.urlChanged)&&t.on(()=>{this.reEvaluatePageRules()})}loadConfig(e){var{q:t,ConfigReader:n}=this.api,t=t.defer(),e=n.get(e);return t.resolve(e),t.promise}testPageRule(e,t,n="unknown"){let i=e;var r;return Array.isArray(e)?(r=this._.filter(e,e=>e&&""!==e.trim()),i=this._.map(r,e=>e.startsWith("//*/")?e.substring(1):e)):"string"==typeof e&&e.startsWith("//*/")&&(i=e.substring(1)),Ou(i,t,{logger:this.api.log,context:"agent",id:n})}reEvaluatePageRules(){const i=ku();var e=this.api.ConfigReader.get(this.configName)||[];this._.each(this.prompts,e=>{var t=this.findAgentById(e.id);t&&this.testPageRule(t.pageRule,i,t.id)?e.resume():e.suspend()});const r=this._.map(this._.filter(this.prompts,e=>e.isActive),e=>e.id);this._.each(e,e=>{if(!this.isConversationAgent(e)&&!this.isNetworkAgent(e)){var t=this._.contains(r,e.id);if(this.testPageRule(e.pageRule,i,e.id)&&!t)try{this.observePrompt(e)}catch(n){this.api.log.error("[PromptPlugin] Failed to set up agent:",e.id,n)}}})}findAgentById(e){return this.agentsCache||(this.agentsCache=new Map),this.agentsCache.get(e)}isConversationAgent(e){return e.preset&&"chatgpt"!=e.preset}isNetworkAgent(e){return"network"===e.trackingMethod}onConfigLoaded(e=[]){if(e&&this._.isArray(e)&&0!==e.length){var t=[];for(const n of e)this.isConversationAgent(n)||this.isNetworkAgent(n)||t.push(n);this.agentsCache||(this.agentsCache=new Map),this.agentsCache.clear(),this._.each(e,e=>this.agentsCache.set(e.id,e)),this._.each(t,e=>{var t=ku();if(this.testPageRule(e.pageRule,t,e.id))try{this.observePrompt(e)}catch(n){this.api.log.error("[PromptPlugin] Failed to set up agent:",e.id,n)}})}}observePrompt(e){const{id:t,cssSelectors:n}=e;var i;this._.find(this.prompts,e=>e.id===t)||(e=this.parseCssSelector("input",n),i=this.parseCssSelector("submit",n),(e=new HI(this.pendo,this.api,t,e,i)).onSubmit(e=>{this.sendPromptEvent(e)}),this.prompts.push(e))}parseCssSelector(t,e){e=this._.filter(e,e=>e.type===t);return this._.map(e,e=>e.cssSelector)}sendPromptEvent(t){var e=this._.find(this.prompts,e=>e.id===t.agentId);e&&!e.isActive||(e=this._.extend({promptType:"request",agentType:"prompt"},t),this.api.analytics.collectEvent("prompt",e,undefined,"agentic"))}teardown(){this._.each(this.prompts,e=>e.teardown()),this.agentsCache&&this.agentsCache.clear()}}var jI=new zI;class qI{initialize(e,{Events:t}){var{_:e,attachEvent:n}=this.pendo=e,i=e.bind(this.setForceShowFirstStepFlags,this);this.subscriptions=[n(t,"deliverablesLoaded",i),n(t,"urlChanged",i),n(t,"guideSeen",e.bind(this.clearForceShowFirstStepFlags,this))]}teardown(){this.pendo._.forEach(this.subscriptions,function(e){e()}),this.subscriptions.length=0}setForceShowFirstStepFlags(){var e=this["pendo"];const t=e["_"];t.forEach(e.guides,function(e){!t.get(e,"attributes.restartOnReload")||(e.forceShowFirstStep=!0)})}clearForceShowFirstStepFlags(e){var{_:t,findGuideById:n}=this.pendo,e=t.get(e,"data.0.props.guide_id");e&&(t=n(e))&&t.forceShowFirstStep&&(t.forceShowFirstStep=!1)}}var WI=new qI;const VI="sessionId";class KI{constructor(){this.name="SessionManager"}initialize(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"identify",_.bind(this.changeIdentity,this)),this.api.attachEvent(this.api.Events,"eventCaptured",_.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",18e5),this.suffix=this.api.ConfigReader.get("identityStorageSuffix"),this.api.agentStorage.registry.addLocal(VI,{cookieSuffix:this.suffix,isSecure:!0})}changeIdentity(e){var t;e&&e.data&&e.data.length&&({visitor_id:e,old_visitor_id:t}=e.data[0],e===t||this.pendo.isAnonymousVisitor(t)||this.expireSession())}teardown(){_.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0}isExpired(e,t){e=_.get(e,"timestamp");return!this.pendo._.isNumber(e)||t-e>this.inactivityDuration}expireSession(){var e=this.clearSessionInfo();return this.api.Events.sessionChanged.trigger(e),e}eventCaptured(t){if(t&&t.data&&t.data.length){var t=t.data[0],n=t.browser_time||(new Date).getTime();let e=this.sessionInfo();!t.hasUserInteraction&&"recording"===t.type||(this.isExpired(e,n)&&(e=this.expireSession()),this.storeLastInteractionEventInformation(e,n)),t.sessionId=e.sessionId}}sessionInfo(e=this.pendo.randomString(16)){let t=this.api.agentStorage.read(VI)||this.api.agentStorage.read(VI,!1,"");return t||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(VI,t)),JSON.parse(t)}clearSessionInfo(){return this.api.agentStorage.clear(VI),this.api.agentStorage.clear(VI,!1,""),this.sessionInfo()}storeLastInteractionEventInformation(e,t){e.timestamp=t,this.api.agentStorage.write(VI,JSON.stringify(e))}}var $I=new KI;const JI=["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"],YI=new RegExp(`(${JI.join("|")})`,"i"),XI=["facebook","twitter","linkedin","instagram","pinterest","tiktok","snapchat","twitch","reddit","quora","tumblr","flickr","discord","twitch","whatsapp","telegram","weibo","qq","line"],ZI=["t.co","x.com"],QI=new RegExp(`(${XI.join("|")})`,"i");function e_(e,t){return a_(QI,e)||t.contains(ZI,e)}const t_=["youtube","vimeo","dailymotion","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"],n_=new RegExp(`(${t_.join("|")})`,"i"),i_=["amazon","ebay","walmart","etsy","shopify","shop","target","bestbuy","costco","temu","alibaba","aliexpress"],r_=new RegExp(`(${i_.join("|")})`,"i");const o_=new RegExp(`(${["google performance max","microsoft audience network","facebook audience network"].join("|")})`,"i");function a_(e,t){return"self"!==t&&"direct"!==t&&null!==t.match(e)}function s_({referrer:e,currentHost:t}){if(!e||""===e)return"direct";e=new Li(e).hostname;let n="self";return n=e!==t?null==e?void 0:e.toLowerCase():n}const d_=new RegExp("^(.*cp.*|ppc|retargeting|paid)$"),u_=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i");function c_(e="",t){return-1!==e.replace(/[^a-zA-Z]/g,"").indexOf(t)}const l_=[[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})=>c_(t,"crossnetwork")||e.match(o_)],["Paid Search",({source:e,medium:t,referrer:n,gclid:i,_:r})=>i||c_(t,"paidsearch")||t.match(d_)&&(r.contains(JI,e)||a_(YI,n))],["Paid Social",({source:e,medium:t,referrer:n,fbclid:i,_:r})=>i||c_(t,"paidsocial")||t.match(d_)&&(r.contains(XI,e)||e_(n,r))],["Paid Video",({medium:e,source:t,referrer:n,_:i})=>c_(e,"paidvideo")||e.match(d_)&&(i.contains(t_,t)||a_(n_,n))],["Paid Shopping",({medium:e,source:t,referrer:n,_:i})=>c_(e,"paidshopping")||"shopping"===e||(a_(r_,n)||i.contains(i_,t))&&e.match(d_)],["Display",({medium:e,_:t})=>t.contains(["display","cpm","banner","interstitial","expandable","programmatic"],e)||c_(e,"display")],["Paid Other",({medium:e})=>c_(e,"paidother")||e.match(d_)],["Organic Search",({source:e,medium:t,referrer:n,_:i})=>c_(t,"organic")&&i.contains(JI,e)||!t&&a_(YI,n)],["Organic Social",({source:e,medium:t,referrer:n,_:i})=>!t&&e_(n,i)||c_(t,"social")||i.contains(XI,e)&&!t.match(d_)],["Organic Video",({medium:e,referrer:t})=>c_(e,"video")||!e&&a_(n_,t)],["Organic Shopping",({medium:e,referrer:t})=>c_(e,"organicshopping")||!e&&a_(r_,t)],["Email",({source:e,medium:t})=>null!==t.match(u_)||null!==e.match(u_)||c_(t,"newsletter")],["Affiliates",({medium:e})=>c_(e,"affiliate")||c_(e,"partner")],["SMS",({source:e,medium:t})=>c_(e,"sms")||c_(t,"sms")],["Push Notifications",({source:e,medium:t})=>t.endsWith("push")||c_(t,"mobile")||c_(t,"notification")||c_(e,"firebase")],["Audio",({medium:e})=>c_(e,"podcast")||c_(e,"audio")],["Referral",({medium:e,referrer:t})=>c_(e,"referral")||!!t&&"self"!==t&&"direct"!==t],["Other",({medium:e,source:t})=>!!e||!!t]],p_="utm",h_="enableFullUtmReferrer",f_="disableUtmReferrer";class g_{constructor(){this.name="WebAnalytics"}initialize(e,t){this.pendo=e;var n=(this.api=t)["ConfigReader"],n=(n.addOption(h_,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),n.addOption(f_,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),e._)["bind"];if(this.subscriptions=[t.attachEvent(t.Events,"eventCaptured",n(this.addUtmToEvent,this)),t.attachEvent(t.Events,"sessionChanged",n(this.sessionChanged,this)),t.attachEvent(t.Events,"consent:changed",n(this.handleConsentChange,this))],this.suffix=this.api.ConfigReader.get("identityStorageSuffix"),this.api.agentStorage.registry.addLocal(p_,{cookieSuffix:this.suffix,isSecure:!0}),t.analytics.isUtmConsentDenied())return this.clearParameters(t.agentStorage);this.captureParameters()}captureParameters(){if(!this.api.analytics.isUtmConsentDenied()){let e=this.loadParameters(this.api.agentStorage);e&&!this.pendo._.isEmpty(e)||(e=this.extractParameters(window.location.href,document.referrer)),this.storeParameters(e,this.api.agentStorage)}}extractParameters(e,t){var n,i,r,o,a,s,d=new Li(e).hostname,u=s_({referrer:t,currentHost:d}),e=this.api.util.parseUrl(e);return e?(s=(e=this.pendo._.extend({},e.fragmentQuery,e.query)).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}),this.api.ConfigReader.get(f_)||(t&&this.api.ConfigReader.get(h_)?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(l_,e=>e[1](o));if(e)return e[0]}storeParameters(e,t){this.api.analytics.isUtmConsentDenied()||0<this.pendo._.size(e)&&t.write(p_,JSON.stringify(e))}clearParameters(e){e.clear(p_),e.clear(p_,!1,"")}loadParameters(e){e=e.read(p_)||e.read(p_,!1,"");return e?JSON.parse(e):null}teardown(){for(var e of this.subscriptions)e();this.subscriptions.length=0}addUtmToEvent(t){if(!this.api.analytics.isUtmConsentDenied()){let e;try{e=this.loadParameters(this.api.agentStorage)}catch(n){}e&&(t.data[0].utm=e)}}sessionChanged(){var e=this.api.agentStorage,t=(this.clearParameters(e),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)}handleConsentChange(e){e=e.data[0].utm;if(!this.pendo._.isUndefined(e))return this.api.analytics.isUtmConsentDenied()?this.clearParameters(this.api.agentStorage):void this.captureParameters()}}var m_=new g_;function v_(e,t){_.isEmpty(t)||(e.eventProperties=_.extend({},e.eventProperties,t))}function y_(e){e=w_({target:e});return R.onClickCaptured.trigger(e),e.getEventProperties()}function b_(e,t){t=w_({event:t,target:e});return R.onEventCaptured.trigger(t),t.getEventProperties()}function w_(e){const n={};return _.extend({getEventProperties(){return n},addEventProperty(e,t){_.isString(e)&&!_.isUndefined(t)?n[e]=t:T.error("Failed to add click event property")}},e)}class S_{constructor(){this.name="EventCaptured"}initialize(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"eventCaptured",_.bind(this.eventCaptured,this))]}teardown(){_.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0}eventCaptured(e){var t;e&&e.data&&e.data.length&&(t=e.data[0],e=(e=e.data[1])&&e.target,"click"===t.type&&v_(t,y_(e)),v_(t,b_(e,t)))}}var E_=new S_;function I_(i){var t;!function(e){e.getVersion=ht,e.isReady=E0,e.pageLoad=Au,e.getVisitorId=xi,e.getAccountId=Ai,e.clearSession=Ni,e.VERSION=ct,e.LOADER=pt,e.flushNow=a(md),e.teardown=Ru(D0),e.updateCookieConsent=Ru(f0),e.initGuides=a(Av),e.loadGuides=a(dv),e.findGuideByName=a(ju),e.hideGuides=a(gm),e.onGuideDismissed=a(wm),e.goToStep=Em,e.onGuideAdvanced=a(Im),e.onGuidePrevious=a(_m),e.onGuideSnoozed=Sm,e.startGuides=a(pg),e.stopGuides=a(hg),e.defaultCssUrl=a(dm()),e.getActiveGuides=function(e={channel:Du.DEFAULT}){return y(e)},e.getActiveGuide=function(e={channel:Du.DEFAULT}){return Vv(e)},e.guideSeenTimeoutLength=Fw.getGuideSeenTimeoutLength(),e.guidesPayload=Qm,e.areGuidesDisabled=a(kv),e.setGuidesDisabled=a(Nv),e.areGuidesDelayed=a(Ov),e.buildNodeFromJSON=Ug.buildNodeFromJSON,e.flexElement=a(Ug.flexElement),e.GuideFactory=a(qc),e.dom=M,e.getText=gs,e.attachEvent=a(F),e.detactEvent=a(qf),e.frames={setFrameVisibility:lc},e.log=Z0,e.enableLogging=K0,e.disableLogging=$0,e.setActiveContexts=rw,e.showLogHistory=nw,e.getLoggedContexts=iw,e.isDebuggingEnabled=_.noop,e.enableDebugging=_.noop,e.disableDebugging=_.noop,e.addDebuggingFunctions=_.noop,e.stopSendingEvents=a(pd.lock),e.startSendingEvents=a(pd.unlock),e.isSendingEvents=a(ka),e.fromByteArray=c.uint8ToBase64,e.events=a(yc),e.track=a(sw),e.trackAgent=a(dw),e.validateInstall=uw,e.validateNativeMethods=cw,e.validateBuiltInGlobals=lw,e.validateUrl=pw,e.validateEnvironment=gw,e.doesExist=I,e.generate_unique_id=pi,e.TEMP_PREFIX=ai,e.SIZE_UNIQUE_ID=si,e._defaultLauncher_queue=[],e.defaultLauncher=()=>{e._defaultLauncher_queue.push(arguments)},e.toggleLauncher=_.noop,e.showLauncher=_.noop,e.hideLauncher=_.noop,e.removeLauncher=_.noop,e.identify=Lp,e.get_visitor_id=xi,e.set_visitor_id=function(e){Lp(e)},e.get_account_id=Ai,e.set_account_id=function(e){Lp(v(),e)},e.getSerializedMetadata=Up,e.checkIntegrationIdMatch=yw,e.compress=bt,e.squeezeAndCompress=bt,e.randomElement=Ct,e.randomString=Tt,e.toUTF8Array=gt,e.getNumberFromText=Mt,e._addCredits=a(Cm),e.getCurrentUrl=ku,e.getNormalizedUrl=ku,e.testUrlForStep=a(Nu),e.showGuideByName=a(Jm),e.showGuideById=a(Ym),e.designerv2=sb,e.P2AutoLaunch=a(_b),e.BuildingBlocks=a(bw),e.onConnectMessage=_.noop,e.buffers=pd,e.guideDev=a(B0),e.badgesShown=a(Pu),e.get_pendo_cookie=Tn,e.DEFAULT_EXPIRE_LEN=Rn,e.set_pendo_cookie=kn,e.loadResource=Rs,e.loadWatcher=As,e.messageLogger=ks,e.messageReceiver=Os,e.messageValidator=Ns,e.MESSAGE_TYPES=Ls,e.messageDispatcher=Fs,e.moduleRegistry=Us,e.addModule=Gs,e.hasModule=a(Bs),e.findModuleByName=a(Hs),e.modulesWaiting=zs,e.loadModules=js,e.moduleLoader=qs,e.TOOLTIP_DEFAULT_WIDTH=430,e.TOOLTIP_DEFAULT_HEIGHT=200,e.TOOLTIP_ARROW_SIZE=15,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e.sniffer=et,e.url=L,e.location=Lw,e.Sizzle=lo,e._=_,e.ajax=wo,e.Zlib=St,e.guideContent=a(_c.guideContent),e.receiveDomStructureJson=a(_c.receiveDomStructureJson),e.addExtension=Vp,e.getConfigValue=C.get}(i),(t=i).SHADOW_STYLE="",_.extend(t,{_showElementGuide:_.noop,flushEventCache:zw(null,"flushEventCache",Bw),HOST:qo,MAX_LENGTH:td,MAX_NUM_EVENTS:ed,_createToolTip:_.noop,_get_tooltip_dimensions:_.noop,_isOldIE:a(zw(Me,"_isOldIE",Gw)),_logMessage:zw(wa,"_logMessage",Gw),_sendEvent:zw(null,"_sendEvent",Bw),_sendGuideEvent:zw(null,"_sendGuideEvent",Bw),_stopEvents:!1,_storeInCache:zw(null,"_storeInCache",Bw),_writeEventImgTag:zw(null,"_writeEventImgTag",Bw),_writeImgTag:a(zw(_a,"_writeImgTag",Gw)),getUA:zw(Ue,"getUA",Gw),ifDebugThen:zw(null,"ifDebugThen",Bw),send_event:a(zw(Bd,"send_event","has changed to pendo.cache.createEvent")),wire_page:zw(Bf,"wire_page",Gw),messageOriginTester:zw(null,"messageOriginTester",Bw),findGuideBy:a(zu),findGuideById:a(b),findStepInGuide:a(qu),_updateGuideStepStatus:a(hm),_addCloseButton:a(lm),initialize:O0,getEventCache:a(Sv),processEventCache:a(wv),isGuideShown:a(Bu),_getNextStepInMultistep:a($m),attachEvent:F,detachEvent:qf,updateOptions:Mp,createLauncher:_.constant({}),initLauncher:_.noop,_addGuideToLauncher:_.noop,launcherToolTipDiv:null,isAnonymousVisitor:(e=t.get_visitor_id())=>fi(e),DEFAULT_VISITOR_ID:vi,shouldIdentityChange:_.constant(!1),read:x.read,write:x.write,_delete_cookie:x.clear,_set_cookie:In,_get_cookie:En,get_cookie_key:Cn,ENV:it,eventCache:a(Ys),_getOpacityStyles:zw(null,"_getOpacityStyles",Gw),setStyle:Ua,_createGuideEvent:a(jm),seenGuide:a(Um),dismissedGuide:a(Gm),advancedGuide:a(Bm),seenTime:0,placeBadge:a(tg),isBadge:a($u),showPreview:a(zw(Lm,"showPreview",Gw)),removeAllBadges:a(ng),tellMaster:Ws,DEFAULT_TIMER_LENGTH:sg,registerMessageHandler:Ps,_get_offset:a(ja),_shouldAutoDisplayGuide:_.constant(!1),removeBadge:ig,_showLightboxGuide:_.noop,_showGuide:a(Dm),getElementForGuideStep:a(nc),isElementVisible:ds,getTooltipDivId:a(Nm),setupWatchOnTooltip:a(Mm),letters:"",charset:"",detectMaster:Vs,listenToMaster:zw(null,"listenToMaster",Bw),start:Vf,SEND_INTERVAL:Qs,stageGuideEvent:a(Km),startStagedTimer:Wm,isURLValid:id,getURL:rd,_get_screen_dim:a(Ba),_isInViewport:a(Ha),_getCss3Prop:Da,waitThenStartGuides:a(dg),guidesProcessingThreadHandle:ag,getMode:_.constant("default")}),_.each(["identify","updateOptions","pageLoad","track","trackAgent"],function(t){var n=i[t];i[t]=function(){try{E0()?n.apply(this,arguments):he(i,t,arguments)}catch(e){T.critical(e)}}})}var __,C_,T_,x_,R_,A_=be(),k_=function(e){var t=re(e)?{}:window,n=document.currentScript||function(t=[],n){for(let e=0;e<t.length;e++){var i=t[e];if(de(i)||i.id==="pendo-"+n)return i}}(document.getElementsByTagName("script"),e.apiKey);let i=e.pendoGlobalKey||"pendo";return n&&(i=n.getAttribute("data-pendo-global-key")||i,e.pendoGlobalKey=i),E=t[i]=t[i]||{}}(A_);return __=k_,A_=A_,x.registry.addLocal(Ld,{isPlain:!0,serializer:JSON.stringify,deserializer:gn,localStorageOnly:!0}),ye(A_),it=we("env")||it,at=we("server")||at,st=we("assetHost")||st,dt=we("assetPath")||dt,ut=we("designerServer")||ut,rt=we("globalBucket")||rt,ot=we("subscriptionBucket")||ot,C_=ke()?it+"_ext":it,ct=lt+"_"+C_,!re(A_)&&(C_=A_,x_=__,R_=Dd(),ge(C_,x_,R_)||me(C_,x_,R_))||__&&__.VERSION||(!et.isChromeExtension||(C_=A_)&&C_.useAssetHostForDesigner||console.warn("Pendo Agent detected running in a Chrome extension with setup that is incompatible with manifest V3. Please follow the linked instructions to maintain manifest V3 compatibility: https://www.npmjs.com/package/@pendo/agent#manifest-v3-extensions"),C.get("disablePendo")?(T_=__,_.each(["initialize","identify","updateOptions","pageLoad","track","trackAgent"],function(e){T_[e]=function(){console.log("Pendo is currently disabled.")}})):((x_=A).registerModule("debugger",US),x_.registerModule("errorLog",rS),x_.registerModule("frames",t),x_.registerModule("guideUpdate",or),x_.registerModule("guideState",n),x_.registerModule("healthCheck",e),x_.registerModule("location",Se),x_.registerModule("metadata",Ir),x_.registerModule("preview",SS),x_.registerModule("nodeAttr",BS),x_.registerModule("networkUrl",HS),Jo(),qc.behaviors=[uf,qw,Hc.Guide,Ww,Kw,$w,Jw],Wc.behaviors=[uf,nS,Yw,Vc,Hc.Step,Xw,iS],Vc.reset(),A.dispatch("frames/init"),Z0.init(),Bi.wrapSizzle(lo,C0.shadowDom),lo.intercept(uc),I_(__),T.addEventListener("log",_.partial(A.dispatch,"errorLog/write")),n0(VS),n0(KS),n0(t1),n0(i1),n0(l1),n0(S1),n0(C1),n0(H1),n0(z1),n0(W1),n0(V1),n0(K1),n0($1),n0(bI),n0(kI),n0(jI),n0(WI),n0(BI()),n0($I),n0(Fw),n0(m_),n0(E_),R_=__._q,A_=P0,C.get("disableAutoInitialize")||(R_=(R_=M0(R_))&&1<R_.length?R_[1]:{},_.get(R_,x0)||C.get(x0)?A_():A0.push(Vf(A_))))),k_}function TextCapture(){var i,r,n,o={};return{name:"TextCapture",initialize:function(e,t){r=t,(i=e).excludeAllText=r.ConfigReader.get("excludeAllText");t=r.ConfigReader.get("allowedText");o=i._.reduce(t,function(e,t){return i._.isString(t)&&(e[t]=!0),e},{}),r.NodeSerializer.add(a),n=i._.partial(s,e),r.Events.on("eventCaptured",n)},teardown:function(){r.NodeSerializer.remove(a),r.Events.off("eventCaptured",n)},isEnabled:d,isTextCapturable:u,hasWhitelist:c,serializer:a,guideActivity:s};function a(e,t,n){return t===n&&(d()||!d()&&c())&&u(t=i.getText(n,128))&&(e.txt=c()?r.util.trim.call(t):t),e}function s(e,n){if(d()){const i=e["_"],r=n.data[0];if(r&&"guideActivity"===r.type){n=i.reduce(e.getActiveGuides({channel:"*"}),(e,t)=>t.isShown()?e.concat(i.filter(t.steps,e=>e.isShown())):e,[]);if(n.length){const o=e.BuildingBlocks.BuildingBlockGuides.findDomBlockInDomJson;let t;i.find(n,e=>!!e.domJson&&(t=o(e.domJson,function(e){return e.props&&e.props.id&&e.props.id===r.props.ui_element_id}))),t&&(r.props.ui_element_text=t.content)}}}}function d(){return!i.excludeAllText&&"all"===r.analytics.getTextCollectionMode()}function u(e){var t;return"none"!==r.analytics.getTextCollectionMode()&&(t=r.util.trim.call(e),d()||i._.has(o,[t])||i._.has(o,[e]))}function c(){return 0<i._.size(o)}}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}const substitutionRegex="\\{(?:\\s?)([^.\\s]?visitor|account|parentAccount)\\.([^|\\s/]*)(?:\\s?\\|\\s?([^}]+|[\\/s]+))?(?:\\s?\\/\\s?){1}\\}",skipStepString="{skipStep:* *(auto|\\d+)\\/}",goToMiddleString="(?!0)(\\d+)",goToString=`({goto-${goToMiddleString}\\/})`,containerSelector='[id^="pendo-guide-container"]';function lookupGuideButtons(e,t=[]){if("button"===e.type&&e.actions&&t.push(e),e.children)for(const n of e.children)lookupGuideButtons(n,t);return t}function replaceFirstInTextNodes(t,n,i){for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];if(3===r.nodeType){var o=r.nodeValue.replace(n,i);if(o!==r.nodeValue)return r.nodeValue=o,!0}else if(replaceFirstInTextNodes(r,n,i))return!0}return!1}function removeMarkdownSyntax(e,t,n,i){i.dom(e).hasClass("_pendo-nps-open-text-poll-question")&&(e.normalize(),replaceFirstInTextNodes(e,t,n)),"button"!==e.localName&&"label"!==e.localName&&"a"!==e.localName||(e.textContent=e.textContent.replace(t,n)),0<e.children.length||(i.dom(e).hasClass("_pendo-simple-text")||i.dom(e).hasClass("_pendo-text-plain")||i.dom(e).hasClass("_pendo-text-list-item")||i.dom(e).hasClass("_pendo-text-link"))&&(e.textContent=e.textContent.replace(t,n))}var guideMarkdownUtil={substitutionRegex:substitutionRegex,skipStepString:skipStepString,goToString:goToString,containerSelector:containerSelector,lookupGuideButtons:lookupGuideButtons,removeMarkdownSyntax:removeMarkdownSyntax};const AUTO_ADVANCE_DELAY_MS=250;function isAutoAdvanceRequested(e,t){return!0===t.get(e,"attributes.autoAdvance")}function isStepEligibleInDom(e,t,n){const i=e&&e.guideElement;return!!i&&!i.find("textarea, input:text, input:checkbox, select").length&&!!(e=t.uniq(t.map(i.find("[data-pendo-poll-id]"),e=>e.getAttribute("data-pendo-poll-id")))).length&&t.all(e,e=>t.contains(n,e)&&0<i.find(`input:radio[data-pendo-poll-id="${e}"]`).length)}function hideSubmitButtons(t,e,n){const i=[];return e.each(n,e=>{e=t.guideElement.find("#"+e.props.id)[0];e&&(i.push({element:e,display:e.style.display}),e.style.display="none")}),function(){e.each(i,e=>{e.element.style.display=e.display})}}function reflowGuide(e,t,n){var i=t.get(n,"BuildingBlocks.BuildingBlockGuides.recalculateGuideHeight");try{t.isFunction(n.flexElement)&&n.flexElement(e.guideElement.find(guideMarkdownUtil.containerSelector)),t.isFunction(i)&&i("pendo-g-"+e.id,e.guideElement)}catch(r){n.log("[auto-advance] guide reflow failed, the step may keep an empty row",r&&r.message)}}function createInertController(){return{isActive:!1,notifyAnswered(){},cancel(){}}}function createAutoAdvanceController(t,n,e,i){const r=n._;var o=createInertController();if(!isAutoAdvanceRequested(t,r))return o;if(1!==r.size(e))return n.log(`[auto-advance] not arming: step ${t.id} needs exactly one submit button, found `+r.size(e)),o;if(!isStepEligibleInDom(t,r,i))return n.log(`[auto-advance] not arming: rendered step ${t.id} failed the eligibility re-check`),o;const a=e[0];if(1!==r.size(a.actions))return n.log(`[auto-advance] not arming: step ${t.id} submit button carries ${r.size(a.actions)} actions, expected one`),o;const s=r.find(a.actions,e=>"submitPoll"===e.action||"submitPollAndGoToStep"===e.action);if(!s)return o;let d=!1,u=r.noop;i=r.debounce(function(){if(!d){d=!0;try{t.eventRouter.eventable.trigger("pendoEvent",{action:s.action,params:s.parameters,step:t,ignore:!!s.ignore,srcElement:t.guideElement.find("#"+a.props.id)[0]})}catch(e){u(),reflowGuide(t,r,n),n.log("[auto-advance] submit dispatch failed, restored the submit button",e&&e.message)}}},AUTO_ADVANCE_DELAY_MS);return u=hideSubmitButtons(t,r,e),reflowGuide(t,r,n),{isActive:!0,notifyAnswered:i,cancel:i.cancel}}const SURVEY_ANSWERS_KEY="pendo_survey_answers",ANSWER_CONTROLS="input:radio, input:text, textarea, select",TEXT_CONTROLS="input:text, textarea",ANSWER_TTL_MS=432e5;let pluginApi=null,inMemoryAnswers={},persistedAnswersDropped=!1;const visitedSteps={};function setPluginApi(e){(pluginApi=e)&&e.agentStorage&&e.agentStorage.registry.addSession(SURVEY_ANSWERS_KEY)}function persistenceAllowed(){var e=!!pluginApi&&!!pluginApi.sessionStorage&&"function"==typeof pluginApi.storageIsDisabled&&!pluginApi.storageIsDisabled();return e?persistedAnswersDropped=!1:dropPersistedAnswers(),e}function dropPersistedAnswers(){!persistedAnswersDropped&&pluginApi&&pluginApi.sessionStorage&&(persistedAnswersDropped=!0,pluginApi.sessionStorage.removeItem(SURVEY_ANSWERS_KEY))}function readAll(){if(!persistenceAllowed())return inMemoryAnswers;try{return JSON.parse(pluginApi.sessionStorage.getItem(SURVEY_ANSWERS_KEY))||{}}catch(e){return{}}}function writeAll(e){persistenceAllowed()?pluginApi.sessionStorage.setItem(SURVEY_ANSWERS_KEY,JSON.stringify(e)):inMemoryAnswers=e}function visitorKey(e){return e._.isFunction(e.get_visitor_id)&&e.get_visitor_id()||"unknown"}function stateKey(e,t,n){return`${n}:${t.id}:`+e.id}function getNow(){return(new Date).getTime()}function isFresh(e){return!!e&&getNow()-e<=ANSWER_TTL_MS}function readRecord(e,t,n){n=readAll()[n],t=n&&n[t.id],n=t&&t[e.id]||null;return isFresh(n&&n.at)?n:null}function updateRecord(e,t,n,i){var r=readAll(),o=readRecord(e,t,n)||{};r[n]||(r[n]={}),r[n][t.id]||(r[n][t.id]={}),r[n][t.id][e.id]={at:getNow(),visited:i.visited||o.visited||0,answers:i.answers||o.answers||{}},writeAll(r)}function guideAutoAdvances(e,t){return t.any(t.get(e,"steps",[]),e=>isAutoAdvanceRequested(e,t))}function pollIdFor(e){let t=e;for(;t&&t.getAttribute;){var n=t.getAttribute("data-pendo-poll-id");if(n)return n;t=t.parentNode}return null}function isRadio(e){return"radio"===e.type}function collectAnswers(e,t){const n={};return t._.each(e.guideElement.find(ANSWER_CONTROLS),e=>{var t=pollIdFor(e);!t||n[t]||isRadio(e)&&!e.checked||e.value&&(n[t]=[e.value])}),n}function restoreAnswers(e,n,i){n._.each(e.guideElement.find(ANSWER_CONTROLS),e=>{var t=pollIdFor(e),t=t&&i[t];t&&(isRadio(e)?n._.contains(t,e.value)&&(e.checked=!0):e.value=t[0])})}function isRevisit(e,t,n){var i;return!!guideAutoAdvances(t,n._)&&(i=visitorKey(n),!!isFresh(visitedSteps[stateKey(e,t,i)])||!(!(e=readRecord(e,t,i))||!e.visited&&n._.isEmpty(e.answers)))}const AnswerCache={name:"AnswerCache",script(t,n,e){const i=visitorKey(e);var r=readRecord(t,n,i),r=(restoreAnswers(t,e,r&&r.answers||{}),this.on("beforeUnmount",e=>{e&&"hidden"===e.reason||(visitedSteps[stateKey(t,n,i)]=getNow(),updateRecord(t,n,i,{visited:1}))}),t.guideElement[0]);function o(){updateRecord(t,n,i,{answers:collectAnswers(t,e)})}t.attachEvent(r,"click",o),t.attachEvent(r,"change",o),e._.each(t.guideElement.find(TEXT_CONTROLS),e=>{t.attachEvent(e,"input",o)})},test(e,t,n){e=e&&e.guideElement;return!!e&&guideAutoAdvances(t,n._)&&0<e.find(ANSWER_CONTROLS).length}};function getZoneSafeMethod(e,t,n=window){var i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}const goToRegex=new RegExp(guideMarkdownUtil.goToString),PollBranching={name:"PollBranching",script(r,o,a){let s=!1;var e=initialBranchingSetup(r,a);!e||1<a._.size(e)||this.on("beforeAdvance",e=>{var t=0===r.guideElement.find("[branching] .pendo-radio:checked").length,n=r.guideElement.find("[branching] .pendo-radio:checked + label")[0];let i;n&&(i=a._.isNull(n.getAttribute("goToStep"))),s||t||i||(s=!0,branchingGoToStep(e,r,o,a))})},test(e,t,n){e=null==(e=e.guideElement)?void 0:e.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return!n._.isUndefined(e)&&n._.size(e)},designerListener(i){var e=i.dom.getBody();function r(e,t){return`<svg id="pendo-ps-branching-svg" viewBox="0 0 24 24" fill="none"
37
37
  style="margin-left: 5px;
38
38
  height:${t}; width:${t}; display:inline; vertical-align:middle;" xmlns="http://www.w3.org/2000/svg">
39
39
  <g stroke-width="0"></g>
@@ -154,10 +154,10 @@ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{
154
154
  -webkit-animation: pendoFeedbackSlideFrom-${t} 0.5s 0s 1 alternate both !important;
155
155
  z-index: 9002 !important;
156
156
  }
157
- `,f.util.addInlineStyles(p.feedbackFrameStyles,t),t=e,(e=h.dom(document.createElement("div"))).css({height:"100%",position:"fixed",right:"0",top:"0",width:"0","background-color":"#f7f7f7",transition:"animation 0.4s ease-in-out","box-shadow":"0 5px 40px rgba(0,0,0,.46)",display:"block !important","-webkit-overflow-scrolling":"touch","overflow-y":"hidden"}),e.attr("id",p.feedbackWidget),e.attr("data-turbolinks-permanent","true"),e.addClass("buttonIs-"+t);var t=e;t.append(((e=h.dom(document.createElement("iframe"))).css({width:"100%",height:"99.6%",border:"0 none"}),e.attr("id",p.feedbackIframe),e.attr("title","Feedback"),e.attr("src",y()),e)),t.appendTo(h.dom.getBody()),F()}function B(){return o}function M(){let e=f.ConfigReader.getLocalConfig();return h._.isObject(e)||(e={}),h._.isObject(e.visitor)||(e.visitor={}),h._.isObject(e.account)||(e.account={}),e}function H(e){e=e||M();if(!isUnsupportedIE(h)&&s&&a&&d&&u)if(h._.get(e.visitor,"id")){if(!h.isAnonymousVisitor(e.visitor.id)){if(h._.get(e.account,"id"))return 1;h.log("The current visitor is not associated with an account.")}}else h.log("Not valid visitor id")}function L(e,t){if(s=t.vendorId,a=t.apiUrl,d=t.siteUrl,u=t.productId,c)return f.q.reject();if(!H(e))return f.q.reject();var n,i,e=P(e);try{n=h.url.get(),i="fdbkDst";const o=null!=(i=new RegExp("[?&]"+i+"=([^&#]*)").exec(n))&&decodeURI(i[1])||null;if(o&&o.startsWith("case"))return c=!0,void T().then(function(e){e=e+"&fdbkDst="+o;window.location.href=e})}catch(r){c=!1,h.log(r,"unhandled error while checking feedback destination")}try{return c=!0,"WIDGET"===t.type&&U(t),E(),w(e)}catch(r){return c=!1,h.log(r,"unhandled error while initializing feedback"),f.q.reject(r)}}function P(e){var t,n,i=f.agent.getJwtInfoCopy();return h._.isEmpty(i)?((t={}).user=h._.pick(e.visitor,"id","full_name","firstName","lastName","email","tags","custom_allowed_products"),h._.extend(t.user,{allowed_products:[{id:u}]}),t.account=h._.pick(e.account,"id","name","monthly_value","is_paying","tags"),h._.extend(t,{vendor:{id:s}}),h._.isUndefined(t.account.is_paying)&&(t.account.is_paying=!0),null!=t.user.email&&""!=t.user.email||(t.user.email=(e=t,h._.isUndefined(e.user)||h._.isUndefined(e.user.id)?"noemail+"+h.randomString(32)+"@pendo.io":"noemail+"+e.user.id+"@pendo.io")),null!=t.user.full_name&&""!=t.user.full_name||(t.user.full_name=(e=t,h._.isUndefined(e.user.firstName)&&h._.isUndefined(e.user.lastName)?h._.isUndefined(e.user)||h._.isUndefined(e.user.id)?"No Name Provided"+h.randomString(32):"No Name Provided"+e.user.id:(n=[],h._.isUndefined(e.user.firstName)||n.push(e.user.firstName),h._.isUndefined(e.user.lastName)||n.push(e.user.lastName),n.join(" ")))),t):(e=JSON.parse(JSON.stringify(i)),h._.extend(e,{vendor:{id:s}}),h._.extend(e,{allowed_products:[{id:u}]}),e)}function z(){return c}function D(){h._.each(h._.values(p),function(e){h.dom("#"+e).remove()}),u=r=d=s=a="",c=o=!1,f.agentStorage.clear(i),f.agentStorage.clear(l)}function j(){return JSON.parse(JSON.stringify(f.ConfigReader.get("feedbackSettings",{})))}}function record(){var e,a=Object.defineProperty,s=(e,t,n)=>{return n=n,(t="symbol"!=typeof t?t+"":t)in(e=e)?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},te=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))({}),ne=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ne||{}),l=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(l||{}),p=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(p||{}),h=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))({}),P=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(P||{}),D=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(D||{});const u={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot"],MutationObserver:[],EventTarget:[]},c={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:["querySelector","querySelectorAll"],MutationObserver:["constructor"],EventTarget:["addEventListener","removeEventListener"]},g={},m={};function d(e){if(g[e])return g[e];var t=function(e){var t,n=null==(t=null==(n=null==globalThis?void 0:globalThis.Zone)?void 0:n.__symbol__)?void 0:t.call(n,e);if(n&&globalThis[n])return globalThis[n]}(e)||globalThis[e];const n=t.prototype;var i=e in u?u[e]:void 0,i=Boolean(i&&i.every(e=>{return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),r=e in c?c[e]:void 0,r=Boolean(r&&r.every(e=>{return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(i&&r)return g[e]=t.prototype,t.prototype;try{const d=document.createElement("iframe");d.style.display="none",document.body.appendChild(d);var o,a,s=d.contentWindow;return s?(o=s[e].prototype)?((a=navigator.userAgent).includes("Safari")&&!a.includes("Chrome")?(d.classList.add("rr-block"),d.setAttribute("__rrwebUntaintedMutationObserver",""),m[e]=()=>d.remove()):d.remove(),g[e]=o):(d.remove(),n):t.prototype}catch{return n}}const v={};function t(e,t,n){var i=null==(i=v[e])?void 0:i[n];return i?i.call(t):(i=d(e),(i=null==(i=Object.getOwnPropertyDescriptor(i,n))?void 0:i.get)?((v[e]||(v[e]={}))[n]=i).call(t):t[n])}const y={};function r(e,t,n){var i=e+"."+String(n);if(y[i])return y[i].bind(t);var r=null==(o=null==(r=null==globalThis?void 0:globalThis.Zone)?void 0:r.__symbol__)?void 0:o.call(r,String(n));if(r){var o=null==(o=globalThis[e])?void 0:o.prototype,r=globalThis[r]??(null==o?void 0:o[r]);if("function"==typeof r)return(y[i]=r).bind(t)}o=d(e)[n];return"function"!=typeof o?t[n]:(y[i]=o).bind(t)}function b(){return[d("MutationObserver").constructor,m.MutationObserver??(()=>{})]}function n(){var e,t,n;let i=window.Proxy;try{"function"==typeof window.Proxy&&null!=(e=window.Proxy)&&e.toString().includes("[native code]")||((n=document.createElement("iframe")).style.display="none",document.documentElement.appendChild(n),i=(null==(t=n.contentWindow)?void 0:t.Proxy)||window.Proxy,document.documentElement.removeChild(n))}catch(r){console.debug("Unable to get untainted Proxy from iframe",r)}return i}let ie=Date.now;function F(e,t,n){try{if(!(t in e))return()=>{};const r=e[t];var i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}const re={ownerDocument:function(e){return t("Node",e,"ownerDocument")},childNodes:function(e){return t("Node",e,"childNodes")},parentNode:function(e){return t("Node",e,"parentNode")},parentElement:function(e){return t("Node",e,"parentElement")},textContent:function(e){return t("Node",e,"textContent")},firstChild:function(e){return t("Node",e,"firstChild")},lastChild:function(e){return t("Node",e,"lastChild")},nextSibling:function(e){return t("Node",e,"nextSibling")},previousSibling:function(e){return t("Node",e,"previousSibling")},contains:function(e,t){return r("Node",e,"contains")(t)},getRootNode:function(e){return r("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?t("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?t("Element",e,"shadowRoot"):null},querySelector:function(e,t){return r("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return r("Element",e,"querySelectorAll")(t)},addEventListener:function(e,t,n,i){r("EventTarget",e,"addEventListener")(t,n,i)},removeEventListener:function(e,t,n,i){r("EventTarget",e,"removeEventListener")(t,n,i)},nowTimestamp:ie=/[1-9][0-9]{12}/.test(Date.now().toString())?ie:()=>(new Date).getTime(),mutationObserverCtor:b,patch:F};function $(e){return e.nodeType===e.ELEMENT_NODE}function U(e){var t=e&&"host"in e&&"mode"in e&&re.host(e)||null;return Boolean(t&&"shadowRoot"in t&&re.shadowRoot(t)===e)}function G(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}const B="undefined"!=typeof window?function(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}("setTimeout").bind(window):global.setTimeout;function O(e){try{var n=e.rules||e.cssRules;if(!n)return null;let t=e.href;!t&&e.ownerNode&&(t=e.ownerNode.baseURI);var i=Array.from(n,e=>w(e,t)).join("");return r=(r=i).includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")?r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"):r}catch(t){return null}var r}function w(t,n){var i,r;if("styleSheet"in t){let e;try{e=O(t.styleSheet)||((r=(i=t).cssText).split('"').length<3?r:(r=["@import",`url(${JSON.stringify(i.href)})`],""===i.layerName?r.push("layer"):i.layerName&&r.push(`layer(${i.layerName})`),i.supportsText&&r.push(`supports(${i.supportsText})`),i.media.length&&r.push(i.media.mediaText),r.join(" ")+";"))}catch(o){e=t.cssText}return null!=(i=null==t?void 0:t.styleSheet)&&i.href?f(e,t.styleSheet.href):e}{let e=t.cssText;return"selectorText"in t&&(e=function(t){var e=t.cssText.includes("grid-template:"),n=""!==t.style.getPropertyValue("grid-template-areas"),i=t.cssText.includes("grid-template-areas:");if(e&&n&&!i){var r=[];for(let e=0;e<t.style.length;e++){var o=t.style[e],a=t.style.getPropertyValue(o);r.push(o+": "+a)}return`${t.selectorText} { ${r.join("; ")}; }`}return t.cssText}(t),t.selectorText.includes(":"))&&(e=e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n?f(e,n):e}}class he{constructor(){s(this,"idNodeMap",new Map),s(this,"nodeMetaMap",new WeakMap)}getId(e){return e?(null==(e=this.getMeta(e))?void 0:e.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){var t=this.getId(e);this.idNodeMap["delete"](t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){var n=this.getNode(e);n&&(n=this.nodeMetaMap.get(n))&&this.nodeMetaMap.set(t,n),this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function J({element:e,maskInputOptions:t,tagName:n,type:i,value:r,maskInputFn:o,needsMask:a}){let s=r||"";r=i&&A(i);return s=t[n.toLowerCase()]||r&&t[r]||a?o?o(s,e):"*".repeat(s.length):s}function A(e){return e.toLowerCase()}const N="__rrweb_original__";function Y(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?A(t):null}function X(e,t){let n;try{n=new URL$1(e,t??window.location.href)}catch(i){return null}e=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==e?void 0:e[1])??null}const S=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,E=/^(?:[a-z+]+:)?\/\//i,I=/^www\..*/i,_=/^(data:)([^,]*),(.*)/i;function f(e,d){return(e||"").replace(S,(e,t,n,i,r,o)=>{n=n||r||o,r=t||i||"";if(!n)return e;if(E.test(n)||I.test(n))return`url(${r}${n}${r})`;if(_.test(n))return`url(${r}${n}${r})`;if("/"===n[0])return`url(${r}${function(e){let t="";return t=(t=-1<e.indexOf("//")?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}(d)+n}${r})`;var o=n.split("#")[0],t=n.substring(o.length),a=d.split("#")[0].split("/"),i=o.split("/");a.pop();for(const s of i)"."!==s&&(".."===s?a.pop():a.push(s));return`url(${r}${a.join("/")}${t}${r})`})}function C(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function M(e,t){return function(a,e,s=!1){var d=Array.from(e.childNodes),u=[];let c=0;if(1<d.length&&a&&"string"==typeof a){let o=C(a,s);var l=o.length/a.length;for(let r=1;r<d.length;r++)if(d[r].textContent&&"string"==typeof d[r].textContent){var p,h=C(d[r].textContent,s);let i=3;for(;i<h.length&&(h[i].match(/[a-zA-Z0-9]/)||-1!==h.indexOf(h.substring(0,i),1));i++);for(;i<h.length;i++){let e=h.substring(0,i),t=o.split(e),n=-1;if(2===t.length)n=t[0].length;else if(2<t.length&&""===t[0]&&""!==d[r-1].textContent)n=o.indexOf(e,1);else if(1===t.length){if(e=e.substring(0,e.length-1),(t=o.split(e)).length<=1)return u.push(a),u;i=101}else i===h.length-1&&(n=o.indexOf(e));if(-1!==(n=2<=t.length&&100<i&&((p=d[r-1].textContent)&&"string"==typeof p&&(p=C(p).length,n=o.indexOf(e,p)),-1===n)?t[0].length:n)){let e=Math.floor(n/l);for(;0<e&&e<a.length;){if((c+=1)>50*d.length)return u.push(a),u;var f=C(a.substring(0,e),s);if(f.length===n){u.push(a.substring(0,e)),a=a.substring(e),o=o.substring(n);break}f.length<n?e+=Math.max(1,Math.floor((n-f.length)/l)):e-=Math.max(1,Math.floor((f.length-n)*l))}break}}}}return u.push(a),u}(e,t).join("/* rr_split */")}let Z=1;const L=new RegExp("[^a-z0-9-_:]"),Q=-2;function T(){return Z++}let k,ee;const x=/^[^ \t\n\r\u000c]+/,R=/^[, \t\n\r\u000c]+/;function fe(i,r){if(""===r.trim())return r;let o=0;function e(e){var e=e.exec(r.substring(o));return e?(e=e[0],o+=e.length,e):""}for(var a=[];e(R),!(o>=r.length);){let n=e(x);if(","===n.slice(-1))n=me(i,n.substring(0,n.length-1)),a.push(n);else{let e="",t=(n=me(i,n),!1);for(;;){var s=r.charAt(o);if(""===s){a.push((n+e).trim());break}if(t)")"===s&&(t=!1);else{if(","===s){o+=1,a.push((n+e).trim());break}"("===s&&(t=!0)}e+=s,o+=1}}}return a.join(", ")}const ge=new WeakMap;function me(e,t){return t&&""!==t.trim()?ve(e,t):t}function ve(e,t){let n=ge.get(e);if(n||(n=e.createElement("a"),ge.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function ye(e,t,n,i){return i&&("src"===n||"href"===n&&("use"!==t||"#"!==i[0])||"xlink:href"===n&&"#"!==i[0]||"background"===n&&["table","td","th"].includes(t)?me(e,i):"srcset"===n?fe(e,i):"style"===n?f(i,ve(e)):"object"===t&&"data"===n?me(e,i):i)}function be(e,t){return["video","audio"].includes(e)&&"autoplay"===A(t)}function we(t,n,e){try{if("string"==typeof n){if(t.classList.contains(n))return!0}else if(n)for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}if(e)return t.matches(e)}catch(r){}return!1}function Se(t,n,e){if(!t)return!1;if(!n)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!e&&Se(re.parentNode(t),n,e);for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}return!!e&&Se(re.parentNode(t),n,e)}function H(e,t,n,i){let r;if($(e)){if(r=e,"*"===n)return!0;if(!re.childNodes(r).length)return!1}else{if(null===re.parentElement(e))return!1;r=re.parentElement(e)}try{if("string"==typeof t){if(i){if(r.closest("."+t))return!0}else if(r.classList.contains(t))return!0}else if(Se(r,t,i))return!0;if(n)if(i){if(r.closest(n))return!0}else if(r.matches(n))return!0}catch(o){}return!1}function Ee(e,t){var n,{needsMask:i,maskTextFn:r,maskInputOptions:o,maskInputFn:a,rootId:s,cssCaptured:d}=t,u=e.parentNode&&e.parentNode.tagName;let c="";var l="STYLE"===u||void 0,p="SCRIPT"===u||void 0,u="TEXTAREA"===u||void 0;if(l&&c){try{e.nextSibling||e.previousSibling||null!=(n=e.parentNode.sheet)&&n.cssRules&&(c=O(e.parentNode.sheet))}catch(h){console.warn("Cannot get CSS styles from text's parentNode. Error: "+h,e)}c=f(c,ve(t.doc))}return p?c="SCRIPT_PLACEHOLDER":d||(c=re.textContent(e),l&&(c=c&&f(c,ve(t.doc)))),!l&&!p&&c&&i&&(c=r?r(c,re.parentElement(e)):c.replace(/[\S]/g,"*")),u&&c&&o.textarea&&(c=a?a(c,e.parentNode):c.replace(/[\S]/g,"*")),{type:D.Text,textContent:c||"",rootId:s}}function Ie(t,e){const{doc:n,blockClass:i,blockSelector:r,hideSelector:o,inlineStylesheet:a,maskInputOptions:s={},maskInputFn:d,dataURLOptions:u={},inlineImages:c,recordCanvas:l,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:f,needsMask:g}=e;var e=we(t,i,r),m=!(!e||!o)&&we(t,"",o),v=(E=t)instanceof HTMLFormElement?"form":(E=A(E.tagName),L.test(E)?"div":E);let y={};var b,w=t.attributes.length;for(let e=0;e<w;e++){var S=t.attributes[e];be(v,S.name,S.value)||(y[S.name]=ye(n,v,A(S.name),S.value))}if("link"===v&&a){var E=Array.from(n.styleSheets).find(e=>e.href===t.href);let e=null;(e=E?O(E):e)&&(delete y.rel,delete y.href,y._cssText=e)}if("style"===v&&t.sheet){let e=O(t.sheet);e&&(1<t.childNodes.length&&(e=M(e,t)),y._cssText=e)}if(["input","textarea","select"].includes(v)&&(E=t.value,b=t.checked,"radio"!==y.type&&"checkbox"!==y.type&&"submit"!==y.type&&"button"!==y.type&&E?y.value=J({element:t,type:Y(t),tagName:v,value:E,maskInputOptions:s,maskInputFn:d,needsMask:g}):b&&(y.checked=b)),"option"===v&&(t.selected&&!s.select?y.selected=!0:delete y.selected),"dialog"===v&&t.open&&(y.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),"canvas"===v&&l&&("2d"===t.__context?function(n){var i=n.getContext("2d");if(i)for(let t=0;t<n.width;t+=50)for(let e=0;e<n.height;e+=50){var r=i.getImageData,r=N in r?r[N]:r;if(new Uint32Array(r.call(i,t,e,Math.min(50,n.width-t),Math.min(50,n.height-e)).data.buffer).some(e=>0!==e))return}return 1}(t)||(y.rr_dataURL=t.toDataURL(u.type,u.quality)):"__context"in t||(E=t.toDataURL(u.type,u.quality),(b=n.createElement("canvas")).width=t.width,b.height=t.height,E!==b.toDataURL(u.type,u.quality)&&(y.rr_dataURL=E))),"img"===v&&c){k||(k=n.createElement("canvas"),ee=k.getContext("2d"));const C=t,T=C.currentSrc||C.getAttribute("src")||"<unknown-src>",x=C.crossOrigin,R=()=>{C.removeEventListener("load",R);try{k.width=C.naturalWidth,k.height=C.naturalHeight,ee.drawImage(C,0,0),y.rr_dataURL=k.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==C.crossOrigin)return C.crossOrigin="anonymous",void(C.complete&&0!==C.naturalWidth?R():C.addEventListener("load",R));console.warn(`Cannot inline img src=${T}! Error: `+e)}"anonymous"===C.crossOrigin&&(x?y.crossOrigin=x:C.removeAttribute("crossorigin"))};C.complete&&0!==C.naturalWidth?R():C.addEventListener("load",R)}["audio","video"].includes(v)&&((b=y).rr_mediaState=t.paused?"paused":"played",b.rr_mediaCurrentTime=t.currentTime,b.rr_mediaPlaybackRate=t.playbackRate,b.rr_mediaMuted=t.muted,b.rr_mediaLoop=t.loop,b.rr_mediaVolume=t.volume),h||(t.scrollLeft&&(y.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(y.rr_scrollTop=t.scrollTop)),m?y={"class":y["class"],rr_display:"none"}:e&&({width:E,height:b}=t.getBoundingClientRect(),y={"class":y["class"],rr_width:E+"px",rr_height:b+"px"}),"iframe"!==v||p(y.src)||(t.contentDocument||(y.rr_src=y.src),delete y.src);let I;try{customElements.get(v)&&(I=!0)}catch(_){}return{type:D.Element,tagName:v,attributes:y,childNodes:[],isSVG:(m=t,Boolean("svg"===m.tagName||m.ownerSVGElement)||void 0),needBlock:e,rootId:f,isCustom:I}}function z(e){return null==e?"":e.toLowerCase()}function _e(e){return!0===e||"all"===e?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===e,headMetaDescKeywords:"all"===e,headTitleMutations:"all"===e}:e||{}}function oe(t,e){const{doc:n,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,maskTextClass:s,maskTextSelector:d,skipChild:u=!1,inlineStylesheet:c=!0,maskInputOptions:l={},maskTextFn:p,maskInputFn:h,slimDOMOptions:f,dataURLOptions:g={},inlineImages:m=!1,recordCanvas:v=!1,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:E=5e3,keepIframeSrcFn:I=()=>!1,newlyAddedElement:_=!1,cssCaptured:C=!1}=e;let T=e["needsMask"],{preserveWhiteSpace:x=!0}=e;T||(e=void 0===T,T=H(t,s,d,e));e=function(e,t){var n,{doc:i,mirror:t,blockClass:r,blockSelector:o,hideSelector:a,needsMask:s,inlineStylesheet:d,maskInputOptions:u={},maskTextFn:c,maskInputFn:l,dataURLOptions:p={},inlineImages:h,recordCanvas:f,keepIframeSrcFn:g,newlyAddedElement:m=!1,cssCaptured:v=!1}=t,y=(n=i,!(t=t).hasNode(n)||1===(n=t.getId(n))?void 0:n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:D.Document,childNodes:[],compatMode:e.compatMode}:{type:D.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:D.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return Ie(e,{doc:i,blockClass:r,blockSelector:o,hideSelector:a,inlineStylesheet:d,maskInputOptions:u,maskInputFn:l,dataURLOptions:p,inlineImages:h,recordCanvas:f,keepIframeSrcFn:g,newlyAddedElement:m,rootId:y,needsMask:s});case e.TEXT_NODE:return Ee(e,{doc:i,needsMask:s,maskTextFn:c,maskInputOptions:u,maskInputFn:l,rootId:y,cssCaptured:v});case e.CDATA_SECTION_NODE:return{type:D.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:D.Comment,textContent:re.textContent(e)||"",rootId:y};default:return!1}}(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,needsMask:T,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:h,dataURLOptions:g,inlineImages:m,recordCanvas:v,keepIframeSrcFn:I,newlyAddedElement:_,cssCaptured:C});if(!e)return console.warn(t,"not serialized"),null;let R;R=i.hasNode(t)?i.getId(t):function(e,t){if(t.comment&&e.type===D.Comment)return 1;if(e.type===D.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===X(e.attributes.href)))return 1;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(z(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===z(e.attributes.name)||"icon"===z(e.attributes.rel)||"apple-touch-icon"===z(e.attributes.rel)||"shortcut icon"===z(e.attributes.rel))))return 1;if("meta"===e.tagName){if(t.headMetaDescKeywords&&z(e.attributes.name).match(/^description|keywords$/))return 1;if(t.headMetaSocial&&(z(e.attributes.property).match(/^(og|twitter|fb):/)||z(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===z(e.attributes.name)))return 1;if(t.headMetaRobots&&("robots"===z(e.attributes.name)||"googlebot"===z(e.attributes.name)||"bingbot"===z(e.attributes.name)))return 1;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return 1;if(t.headMetaAuthorship&&("author"===z(e.attributes.name)||"generator"===z(e.attributes.name)||"framework"===z(e.attributes.name)||"publisher"===z(e.attributes.name)||"progid"===z(e.attributes.name)||z(e.attributes.property).match(/^article:/)||z(e.attributes.property).match(/^product:/)))return 1;if(t.headMetaVerification&&("google-site-verification"===z(e.attributes.name)||"yandex-verification"===z(e.attributes.name)||"csrf-token"===z(e.attributes.name)||"p:domain_verify"===z(e.attributes.name)||"verify-v1"===z(e.attributes.name)||"verification"===z(e.attributes.name)||"shopify-checkout-api-token"===z(e.attributes.name)))return 1}}}(e,f)||!x&&e.type===D.Text&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?Q:Z++;var A=Object.assign(e,{id:R});if(i.add(t,A),R===Q)return null;y&&y(t);let k=!u;if(A.type===D.Element&&(k=k&&!A.needBlock,delete A.needBlock,e=re.shadowRoot(t))&&G(e)&&(A.isShadowHost=!0),(A.type===D.Document||A.type===D.Element)&&k){f.headWhitespace&&A.type===D.Element&&"head"===A.tagName&&(x=!1);var O={doc:n,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,needsMask:T,maskTextClass:s,maskTextSelector:d,skipChild:u,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:h,slimDOMOptions:f,dataURLOptions:g,inlineImages:m,recordCanvas:v,preserveWhiteSpace:x,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:I,cssCaptured:!1};if(A.type!==D.Element||"textarea"!==A.tagName||void 0===A.attributes.value){A.type===D.Element&&void 0!==A.attributes._cssText&&"string"==typeof A.attributes._cssText&&(O.cssCaptured=!0);for(const L of Array.from(re.childNodes(t))){var N=oe(L,O);N&&A.childNodes.push(N)}}let e=null;if($(t)&&(e=re.shadowRoot(t)))for(const P of Array.from(re.childNodes(e))){var M=oe(P,O);M&&(G(e)&&(M.isShadow=!0),A.childNodes.push(M))}}e=re.parentNode(t);return e&&U(e)&&G(e)&&(A.isShadow=!0),A.type!==D.Element||"iframe"!==A.tagName||we(t,r,o)||function(n,i,r){var o=n.contentWindow;if(o){let e=!1,t;try{t=o.document.readyState}catch(a){return}if("complete"!==t){const s=B(()=>{e||(i(),e=!0)},r);void n.addEventListener("load",()=>{clearTimeout$1(s),e=!0,i()})}else{r="about:blank";if((n.src===r||n.src!==r&&o.location.href!==r)&&"complete"===t)return B(i,0),n.addEventListener("load",i);n.addEventListener("load",i)}}}(t,()=>{var e=t.contentDocument;e&&b&&(e=oe(e,{doc:e,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,needsMask:T,maskTextClass:s,maskTextSelector:d,skipChild:!1,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:h,slimDOMOptions:f,dataURLOptions:g,inlineImages:m,recordCanvas:v,preserveWhiteSpace:x,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:I}))&&b(t,e)},w),A.type===D.Element&&"link"===A.tagName&&"string"==typeof A.attributes.rel&&("stylesheet"===A.attributes.rel||"preload"===A.attributes.rel&&"string"==typeof A.attributes.href&&"css"===X(A.attributes.href))&&function(e,t,n){let i=!1,r;try{r=e.sheet}catch(o){return}if(!r){const a=B(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout$1(a),i=!0,t()})}}(t,()=>{var e;S&&(e=oe(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,needsMask:T,maskTextClass:s,maskTextSelector:d,skipChild:!1,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:h,slimDOMOptions:f,dataURLOptions:g,inlineImages:m,recordCanvas:v,preserveWhiteSpace:x,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:I}))&&S(t,e)},E),A}function ae(e,t,n=document){const i={capture:!0,passive:!0};return re.addEventListener(n,e,t,i),()=>re.removeEventListener(n,e,t,i)}const i="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";var Ce={map:{},getId(){return console.error(i),-1},getNode(){return console.error(i),null},removeNodeFromMap(){console.error(i)},has(){return console.error(i),!1},reset(){console.error(i)}};function j(r,o,a={}){let s=null,d=0;return function(...e){var t=Date.now(),n=(d||!1!==a.leading||(d=t),o-(t-d));const i=this;n<=0||o<n?(s&&(clearTimeout$1(s),s=null),d=t,r.apply(i,e)):s||!1===a.trailing||(s=B(()=>{d=!1===a.leading?0:Date.now(),s=null,r.apply(i,e)},n))}}function Te(e,t,n,i,r=window){const o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(e){B(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>Te(e,t,o||{},!0)}function xe(e){var t,n=e.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:n.documentElement.scrollLeft||(null==n?void 0:n.body)&&(null==(t=re.parentElement(n.body))?void 0:t.scrollLeft)||(null==(t=null==n?void 0:n.body)?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==n?void 0:n.documentElement.scrollTop)||(null==n?void 0:n.body)&&(null==(t=re.parentElement(n.body))?void 0:t.scrollTop)||(null==(e=null==n?void 0:n.body)?void 0:e.scrollTop)||0}}function Re(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ae(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ke(e){return e?e.nodeType===e.ELEMENT_NODE?e:re.parentElement(e):null}function W(e,t,n,i){if(e){e=ke(e);if(e){try{if("string"==typeof t){if(e.classList.contains(t))return!0;if(i&&null!==e.closest("."+t))return!0}else if(Se(e,t,i))return!0}catch(r){}if(n){if(e.matches(n))return!0;if(i&&null!==e.closest(n))return!0}}}return!1}function Oe(e,t){return-1!==t.getId(e)}function Ne(e,t,n){return"TITLE"===e.tagName&&n.headTitleMutations||t.getId(e)===Q}function Me(e,t){var n;return!U(e)&&(n=t.getId(e),!t.has(n)||(!(n=re.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||Me(n,t)))}function Le(e){return Boolean(e.changedTouches)}function Pe(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function De(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Fe(e){return e&&(!1&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(re.shadowRoot(e)))}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Ce=new(n())(Ce,{get(e,t,n){return"map"===t&&console.error(i),Reflect.get(e,t,n)}}));class Ue{constructor(){s(this,"id",1),s(this,"styleIDMap",new WeakMap),s(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Ge(e){var t;let n=null;return n="getRootNode"in e&&(null==(t=re.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&re.host(re.getRootNode(e))?re.host(re.getRootNode(e)):n}function Be(e){var t=re.ownerDocument(e);return!!t&&(e=function(e){let t=e;for(var n;n=Ge(t);)t=n;return t}(e),re.contains(t,e))}function He(e){var t=re.ownerDocument(e);return t&&(re.contains(t,e)||Be(e))}const ze=(e,t)=>e+"@"+t;class je{constructor(){s(this,"frozen",!1),s(this,"locked",!1),s(this,"texts",[]),s(this,"attributes",[]),s(this,"attributeMap",new WeakMap),s(this,"removes",[]),s(this,"mapRemoves",[]),s(this,"movedMap",{}),s(this,"addedSet",new Set),s(this,"movedSet",new Set),s(this,"droppedSet",new Set),s(this,"removesSubTreeCache",new Set),s(this,"mutationCb"),s(this,"blockClass"),s(this,"blockSelector"),s(this,"hideSelector"),s(this,"maskTextClass"),s(this,"maskTextSelector"),s(this,"inlineStylesheet"),s(this,"maskInputOptions"),s(this,"maskTextFn"),s(this,"maskInputFn"),s(this,"keepIframeSrcFn"),s(this,"recordCanvas"),s(this,"inlineImages"),s(this,"slimDOMOptions"),s(this,"dataURLOptions"),s(this,"doc"),s(this,"mirror"),s(this,"iframeManager"),s(this,"stylesheetManager"),s(this,"shadowDomManager"),s(this,"canvasManager"),s(this,"processedNodeManager"),s(this,"unattachedDoc"),s(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),s(this,"emit",()=>{if(!this.frozen&&!this.locked){var a=[];const h=new Set;for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const f of this.movedSet){var s=re.parentNode(f);this.removesSubTreeCache.has(s)&&!this.movedSet.has(s)||this.addedSet.add(f)}let n=null,i=null,r=-1,o=null,e=!1;var d,u=new Set,c=this.addedSet.values();let t=c.next();for(;this.addedSet.size;){if(null!==n&&this.addedSet.has(re.previousSibling(n)))o=n,n=re.previousSibling(n);else{for(this.addedSet.has(t.value)||(t=c.next()),n=t.value;;){if(i=re.parentNode(n),!this.addedSet.has(i))break;n=i}if(u.has(i))i=null;else if(i){if(He(i)?(e=Ve(this.droppedSet,i)||this.removesSubTreeCache.has(i))&&Ve(this.movedSet,n)&&(e=!1):e=!0,this.addedSet.has(re.lastChild(i)))n=re.lastChild(i),o=null;else for(;;){if(o=re.nextSibling(n),!this.addedSet.has(o))break;n=o}-1===(r=U(i)?this.mirror.getId(Ge(n)):this.mirror.getId(i))&&i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(l=re.host(i),r=this.mirror.getId(l))}}if(this.addedSet["delete"](n),i&&-1!==r)if(e)this.droppedSet.add(n);else{let e=!1;if(n.nodeType===Node.TEXT_NODE){var l=i.tagName;if("TEXTAREA"===l)continue;"STYLE"===l&&h.has(r)&&(e=!0)}let t=o?this.mirror.getId(o):null;for(;t===Q;)o=o&&re.nextSibling(o),t=o&&this.mirror.getId(o);-1===t?(console.warn("Couldn't record new node. Couldn't find mirror id for nextSibling:",o),n=null):(d=oe(n,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,hideSelector:this.hideSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Pe(e,this.mirror)&&this.iframeManager.addIframe(e),De(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Fe(n)&&this.shadowDomManager.addShadowRoot(re.shadowRoot(n),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},cssCaptured:e}))&&(a.push({parentId:r,nextId:t,node:d}),h.add(d.id))}else u.add(n)}var p={texts:this.texts.map(e=>{var t=e.node,n=re.parentNode(t);return n&&"TEXTAREA"===n.tagName&&this.genTextAreaValueMutation(n),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!h.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{var t,n,i=e["attributes"];return"string"==typeof i.style&&(t=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles),t.length<i.style.length)&&(t+n).split("var(").length===i.style.split("var(").length&&(i.style=e.styleDiff),{id:this.mirror.getId(e.node),attributes:i}}).filter(e=>!h.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:a};(p.texts.length||p.attributes.length||p.removes.length||p.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(p))}}),s(this,"bufferBelongsToIframe",e=>this.doc===e.contentDocument),s(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));var n=Array.from(re.childNodes(e),e=>re.textContent(e)||"").join(""),i=H(e,this.maskTextClass,this.maskTextSelector,!0);t.attributes.value=J({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:Y(e),value:n,maskInputFn:this.maskInputFn,needsMask:i})}),s(this,"processMutation",i=>{if(!Ne(i.target,this.mirror,this.slimDOMOptions))switch(i.type){case"characterData":var r=re.textContent(i.target);W(i.target,this.blockClass,this.blockSelector,!1)||r===i.oldValue||this.texts.push({value:H(i.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,ke(i.target)):r.replace(/[\S]/g,"*"):r,node:i.target});break;case"attributes":{var o,a,s=i.target,r=A(s.tagName);let e=i.attributeName,t=i.target.getAttribute(e);if("value"===e&&(o=Y(s),a=H(i.target,this.maskTextClass,this.maskTextSelector,!0),t=J({element:s,maskInputOptions:this.maskInputOptions,tagName:s.tagName,type:o,value:t,maskInputFn:this.maskInputFn,needsMask:a})),W(i.target,this.blockClass,this.blockSelector,!1)||t===i.oldValue)return;let n=this.attributeMap.get(i.target);if("iframe"===r&&"src"===e&&!this.keepIframeSrcFn(t)){if(s.contentDocument)return;e="rr_src"}if(n||(n={node:i.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(i.target,n)),"type"===e&&"input"===r&&"password"===(i.oldValue||"").toLowerCase()&&s.setAttribute("data-rr-is-password","true"),!be(r,e))if(n.attributes[e]=ye(this.doc,r,A(e),t),"style"===e){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(l){this.unattachedDoc=this.doc}var d=this.unattachedDoc.createElement("span");i.oldValue&&(d.style.cssText=i.oldValue);for(const p of Array.from(s.style)){var u=s.style.getPropertyValue(p),c=s.style.getPropertyPriority(p);u!==d.style.getPropertyValue(p)||c!==d.style.getPropertyPriority(p)?n.styleDiff[p]=""===c?u:[u,c]:n._unchangedStyles[p]=[u,c]}for(const h of Array.from(d.style))""===s.style.getPropertyValue(h)&&(n.styleDiff[h]=!1)}else"open"===e&&"DIALOG"===s.tagName&&(s.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal");break}case"childList":W(i.target,this.blockClass,this.blockSelector,!0)||("TEXTAREA"!==i.target.tagName?(i.addedNodes.forEach(e=>this.genAdds(e,i.target)),i.removedNodes.forEach(e=>{var t=this.mirror.getId(e),n=U(i.target)?this.mirror.getId(re.host(i.target)):this.mirror.getId(i.target);W(i.target,this.blockClass,this.blockSelector,!1)||Ne(e,this.mirror,this.slimDOMOptions)||!Oe(e,this.mirror)||(this.addedSet.has(e)?(We(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(i.target)&&-1===t||Me(i.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[ze(t,n)]?We(this.movedSet,e):(this.removes.push({parentId:n,id:t,isShadow:!(!U(i.target)||!G(i.target))||void 0}),qe(e,this.removesSubTreeCache))),this.mapRemoves.push(e))})):this.genTextAreaValueMutation(i.target))}}),s(this,"genAdds",(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(Ne(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let e=null;(e=n&&this.mirror.hasNode(n)?this.mirror.getId(n):e)&&-1!==e&&(this.movedMap[ze(this.mirror.getId(t),e)]=!0)}else this.addedSet.add(t),this.droppedSet["delete"](t);W(t,this.blockClass,this.blockSelector,!1)||(re.childNodes(t).forEach(e=>this.genAdds(e)),Fe(t)&&re.childNodes(re.shadowRoot(t)).forEach(e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","hideSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(e=>{this[e]=t[e]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function We(t,e){t["delete"](e),re.childNodes(e).forEach(e=>We(t,e))}function qe(e,t){const n=[e];for(;n.length;){var i=n.pop();t.has(i)||(t.add(i),re.childNodes(i).forEach(e=>n.push(e)))}}function Ve(e,t){return 0!==e.size&&function i(e,t){if(e.has(t))return!0;const n=re.parentNode(t);if(!n)return!1;return i(e,n)}(e,t)}let se;const de=n=>{return se?(...e)=>{try{return n(...e)}catch(t){if(!se||!0!==se(t))throw t}}:n},ue=[],q=n();function V(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Ke(e,t){var n=new je,[e,i]=(ue.push(n),n.init(e),b()),n=new e(de(n.processMutations.bind(n)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[n,i]}function $e({mouseInteractionCb:a,doc:i,mirror:s,blockClass:d,blockSelector:u,sampling:e}){if(!1===e.mouseInteraction)return()=>{};const t=!0===e.mouseInteraction||void 0===e.mouseInteraction?{}:e.mouseInteraction,r=[];let c=null;return Object.keys(l).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==t[e]).forEach(e=>{let t=A(e);o=e;var o,n=n=>{var i=V(n);if(!W(i,d,u,!0)){let e=null,t=o;if("pointerType"in n){switch(n.pointerType){case"mouse":e=p.Mouse;break;case"touch":e=p.Touch;break;case"pen":e=p.Pen}e===p.Touch?l[o]===l.MouseDown?t="TouchStart":l[o]===l.MouseUp&&(t="TouchEnd"):(e,p.Pen)}else Le(n)&&(e=p.Touch);null!==e?(c=e,(t.startsWith("Touch")&&e===p.Touch||t.startsWith("Mouse")&&e===p.Mouse)&&(e=null)):l[o]===l.Click&&(e=c,c=null);var r,n=Le(n)?n.changedTouches[0]:n;n&&(i=s.getId(i),{clientX:n,clientY:r}=n,de(a)({type:l[t],id:i,x:n,y:r,...null!==e&&{pointerType:e}}))}};if(window.PointerEvent)switch(l[e]){case l.MouseDown:case l.MouseUp:t=t.replace("mouse","pointer");break;case l.TouchStart:case l.TouchEnd:return}r.push(ae(t,n,i))}),de(()=>{r.forEach(e=>e())})}function Je({scrollCb:i,doc:r,mirror:o,blockClass:a,blockSelector:s,sampling:e}){return ae("scroll",de(j(de(e=>{var t,n,e=V(e);e&&!W(e,a,s,!0)&&(t=o.getId(e),e===r&&r.defaultView?(n=xe(r.defaultView),i({id:t,x:n.left,y:n.top})):i({id:t,x:e.scrollLeft,y:e.scrollTop}))}),e.scroll||100)),r)}const Ye=["INPUT","TEXTAREA","SELECT"],Xe=new WeakMap;function Ze(e){return function i(e,t){var n;return tt("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||tt("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||tt("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||tt("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?(n=Array.from(e.parentRule.cssRules).indexOf(e),t.unshift(n),i(e.parentRule,t)):(e.parentStyleSheet&&(n=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(n)),t)}(e,[])}function K(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function Qe({mirror:e,stylesheetManager:i},t){let r=null;r="#document"===t.nodeName?e.getId(t):e.getId(re.host(t));e="#document"===t.nodeName?null==(e=t.defaultView)?void 0:e.Document:null==(e=null==(e=t.ownerDocument)?void 0:e.defaultView)?void 0:e.ShadowRoot;const o=null!=e&&e.prototype?Object.getOwnPropertyDescriptor(null==e?void 0:e.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&e&&o?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){var e;return null==(e=o.get)?void 0:e.call(this)},set(e){var t=null==(t=o.set)?void 0:t.call(this,e);if(null!==r&&-1!==r)try{i.adoptStyleSheets(e,r)}catch(n){}return t}}),de(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function et(e,t={}){var o,n=e.doc.defaultView;if(!n)return()=>{};{var i=e,r=t;const{mutationCb:S,mousemoveCb:E,mouseInteractionCb:I,scrollCb:_,viewportResizeCb:C,inputCb:T,mediaInteractionCb:x,styleSheetRuleCb:R,styleDeclarationCb:A,canvasMutationCb:k,fontCb:O,selectionCb:N,customElementCb:M}=i;i.mutationCb=(...e)=>{r.mutation&&r.mutation(...e),S(...e)},i.mousemoveCb=(...e)=>{r.mousemove&&r.mousemove(...e),E(...e)},i.mouseInteractionCb=(...e)=>{r.mouseInteraction&&r.mouseInteraction(...e),I(...e)},i.scrollCb=(...e)=>{r.scroll&&r.scroll(...e),_(...e)},i.viewportResizeCb=(...e)=>{r.viewportResize&&r.viewportResize(...e),C(...e)},i.inputCb=(...e)=>{r.input&&r.input(...e),T(...e)},i.mediaInteractionCb=(...e)=>{r.mediaInteaction&&r.mediaInteaction(...e),x(...e)},i.styleSheetRuleCb=(...e)=>{r.styleSheetRule&&r.styleSheetRule(...e),R(...e)},i.styleDeclarationCb=(...e)=>{r.styleDeclaration&&r.styleDeclaration(...e),A(...e)},i.canvasMutationCb=(...e)=>{r.canvasMutation&&r.canvasMutation(...e),k(...e)},i.fontCb=(...e)=>{r.font&&r.font(...e),O(...e)},i.selectionCb=(...e)=>{r.selection&&r.selection(...e),N(...e)},i.customElementCb=(...e)=>{r.customElement&&r.customElement(...e),M(...e)}}let a,s=()=>{};e.recordDOM&&([a,s]=Ke(e,e.doc));const d=function({mousemoveCb:n,sampling:e,doc:t,mirror:r}){if(!1===e.mousemove)return()=>{};var i="number"==typeof e.mousemove?e.mousemove:50,e="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let o=[],a;const s=j(de(e=>{const t=Date.now()-a;n(o.map(e=>(e.timeOffset-=t,e)),e),o=[],a=null}),e),d=[ae("mousemove",e=de(j(de(e=>{var t=V(e),{clientX:n,clientY:i}=Le(e)?e.changedTouches[0]:e;a=a||ie(),o.push({x:n,y:i,id:r.getId(t),timeOffset:ie()-a}),s("undefined"!=typeof DragEvent&&e instanceof DragEvent?ne.Drag:e instanceof MouseEvent?ne.MouseMove:ne.TouchMove)}),i,{trailing:!1})),t),ae("touchmove",e,t),ae("drag",e,t)];return de(()=>{d.forEach(e=>e())})}(e),u=$e(e),c=Je(e),l=function({viewportResizeCb:n},{win:e}){let i=-1,r=-1;return ae("resize",de(j(de(()=>{var e=Re(),t=Ae();i===e&&r===t||(n({width:Number(t),height:Number(e)}),i=e,r=t)}),200)),e)}(e,{win:n}),p=function({inputCb:i,doc:s,mirror:r,blockClass:e,blockSelector:n,ignoreClass:d,ignoreSelector:u,maskInputOptions:c,maskInputFn:l,sampling:t,userTriggeredOnInput:p,maskTextClass:h,maskTextSelector:f}){function o(t){let i=V(t);var t=t.isTrusted,r=i&&i.tagName;if((i=i&&"OPTION"===r?re.parentElement(i):i)&&r&&!(Ye.indexOf(r)<0)&&!W(i,e,n,!0)&&!(i.classList.contains(d)||u&&i.matches(u))){let e=i.value,n=!1;var o=Y(i)||"",a=H(i,h,f,!0),r=("radio"===o||"checkbox"===o?n=i.checked:(c[r.toLowerCase()]||c[o]||a)&&(e=J({element:i,maskInputOptions:c,tagName:r,type:o,value:e,maskInputFn:l,needsMask:a})),g(i,p?{text:e,isChecked:n,userTriggered:t}:{text:e,isChecked:n}),i.name);"radio"===o&&r&&n&&s.querySelectorAll(`input[type="radio"][name="${r}"]`).forEach(e=>{var t;e!==i&&(t=e.value,g(e,p?{text:t,isChecked:!n,userTriggered:!1}:{text:t,isChecked:!n}))})}}function g(e,t){var n=Xe.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(Xe.set(e,t),n=r.getId(e),de(i)({...t,id:n}))}var a;const m=("last"===t.input?["change"]:["input","change"]).map(e=>ae(e,de(o),s)),v=s.defaultView;return v?(t=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),a=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]],t&&t.set&&m.push(...a.map(e=>Te(e[0],e[1],{set(){de(o)({target:this,isTrusted:!1})}},!1,v))),de(()=>{m.forEach(e=>e())})):()=>{m.forEach(e=>e())}}(e),h=function({mediaInteractionCb:s,blockClass:d,blockSelector:u,mirror:c,sampling:e,doc:t}){var n=de(a=>j(de(e=>{var t,n,i,r,o,e=V(e);e&&!W(e,d,u,!0)&&({currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}=e,s({type:a,id:c.getId(e),currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}))}),e.media||500));const i=[ae("play",n(P.Play),t),ae("pause",n(P.Pause),t),ae("seeked",n(P.Seeked),t),ae("volumechange",n(P.VolumeChange),t),ae("ratechange",n(P.RateChange),t)];return de(()=>{i.forEach(e=>e())})}(e);let f=()=>{},g=()=>{},m=()=>{},v=()=>{};e.recordDOM&&(f=function({styleSheetRuleCb:s,mirror:d,stylesheetManager:u},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const e=i.CSSStyleSheet.prototype.insertRule,t=(i.CSSStyleSheet.prototype.insertRule=new q(e,{apply:de((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=K(t,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:r}]}),e.apply(t,n)})}),i.CSSStyleSheet.prototype.addRule=function(e,t,n=this.cssRules.length){return i.CSSStyleSheet.prototype.insertRule.apply(this,[e+` { ${t} }`,n])},i.CSSStyleSheet.prototype.deleteRule);i.CSSStyleSheet.prototype.deleteRule=new q(t,{apply:de((e,t,n)=>{var[i]=n,{id:r,styleId:o}=K(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:i}]}),e.apply(t,n)})}),i.CSSStyleSheet.prototype.removeRule=function(e){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[e])};let n;i.CSSStyleSheet.prototype.replace&&(n=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new q(n,{apply:de((e,t,n)=>{var[i]=n,{id:r,styleId:o}=K(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replace:i}),e.apply(t,n)})}));let r;i.CSSStyleSheet.prototype.replaceSync&&(r=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new q(r,{apply:de((e,t,n)=>{var[i]=n,{id:r,styleId:o}=K(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replaceSync:i}),e.apply(t,n)})}));const o={},a=(nt("CSSGroupingRule")?o.CSSGroupingRule=i.CSSGroupingRule:(nt("CSSMediaRule")&&(o.CSSMediaRule=i.CSSMediaRule),nt("CSSConditionRule")&&(o.CSSConditionRule=i.CSSConditionRule),nt("CSSSupportsRule")&&(o.CSSSupportsRule=i.CSSSupportsRule)),{});return Object.entries(o).forEach(([e,t])=>{a[e]={insertRule:t.prototype.insertRule,deleteRule:t.prototype.deleteRule},t.prototype.insertRule=new q(a[e].insertRule,{apply:de((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=K(t.parentStyleSheet,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:[...Ze(t),r||0]}]}),e.apply(t,n)})}),t.prototype.deleteRule=new q(a[e].deleteRule,{apply:de((e,t,n)=>{var[i]=n,{id:r,styleId:o}=K(t.parentStyleSheet,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:[...Ze(t),i]}]}),e.apply(t,n)})})}),de(()=>{i.CSSStyleSheet.prototype.insertRule=e,i.CSSStyleSheet.prototype.deleteRule=t,n&&(i.CSSStyleSheet.prototype.replace=n),r&&(i.CSSStyleSheet.prototype.replaceSync=r),Object.entries(o).forEach(([e,t])=>{t.prototype.insertRule=a[e].insertRule,t.prototype.deleteRule=a[e].deleteRule})})}(e,{win:n}),g=Qe(e,e.doc),m=function({styleDeclarationCb:d,mirror:u,ignoreCSSAttributes:c,stylesheetManager:l},{win:e}){const p=e.CSSStyleDeclaration.prototype.setProperty,a=(e.CSSStyleDeclaration.prototype.setProperty=new q(p,{apply:de((e,t,n)=>{var i,r,[o,a,s]=n;return c.has(o)?p.apply(t,[o,a,s]):({id:i,styleId:r}=K(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,set:{property:o,value:a,priority:s},index:Ze(t.parentRule)}),e.apply(t,n))})}),e.CSSStyleDeclaration.prototype.removeProperty);return e.CSSStyleDeclaration.prototype.removeProperty=new q(a,{apply:de((e,t,n)=>{var i,r,[o]=n;return c.has(o)?a.apply(t,[o]):({id:i,styleId:r}=K(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,remove:{property:o},index:Ze(t.parentRule)}),e.apply(t,n))})}),de(()=>{e.CSSStyleDeclaration.prototype.setProperty=p,e.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:n}),e.collectFonts)&&(v=function({fontCb:n,doc:e}){const t=e.defaultView;if(!t)return()=>{};const i=[],r=new WeakMap,o=t.FontFace;return t.FontFace=function(e,t,n){var i=new o(e,t,n);return r.set(i,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i},e=F(e.fonts,"add",function(e){return function(t){return B(de(()=>{var e=r.get(t);e&&(n(e),r["delete"](t))}),0),e.apply(this,[t])}}),i.push(()=>{t.FontFace=o}),i.push(e),de(()=>{i.forEach(e=>e())})}(e));const y=function(e){const{doc:d,mirror:u,blockClass:c,blockSelector:l,selectionCb:p}=e;let h=!0;return(e=de(()=>{var t=d.getSelection();if(!(!t||h&&null!=t&&t.isCollapsed)){h=t.isCollapsed||!1;var n=[],i=t.rangeCount||0;for(let e=0;e<i;e++){var{startContainer:r,startOffset:o,endContainer:a,endOffset:s}=t.getRangeAt(e);W(r,c,l,!0)||W(a,c,l,!0)||n.push({start:u.getId(r),startOffset:o,end:u.getId(a),endOffset:s})}p({ranges:n})}}))(),ae("selectionchange",e)}(e),b=({doc:t,customElementCb:o}=[e][0],(t=t.defaultView)&&t.customElements?F(t.customElements,"define",function(r){return function(e,t,n){try{o({define:{name:e}})}catch(i){console.warn("Custom element callback failed for "+e)}return r.apply(this,[e,t,n])}}):()=>{}),w=[];for(const L of e.plugins)w.push(L.observer(L.callback,n,L.options));return de(()=>{ue.forEach(e=>e.reset()),null!=a&&a.disconnect(),s(),d(),u(),c(),l(),p(),h(),f(),g(),m(),v(),y(),b(),w.forEach(e=>e())})}function tt(e){return"undefined"!=typeof window[e]}function nt(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class it{constructor(e){s(this,"iframeIdToRemoteIdMap",new WeakMap),s(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,n,i){n=n||this.getIdToRemoteIdMap(e),i=i||this.getRemoteIdToIdMap(e);let r=n.get(t);return r||(r=this.generateIdFn(),n.set(t,r),i.set(r,t)),r}getIds(t,e){const n=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return e.map(e=>this.getId(t,e,n,i))}getRemoteId(e,t,n){n=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map(e=>this.getRemoteId(t,e,n))}reset(e){e?(this.iframeIdToRemoteIdMap["delete"](e),this.iframeRemoteIdToIdMap["delete"](e)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class rt{constructor(e){s(this,"iframes",new WeakMap),s(this,"crossOriginIframeMap",new WeakMap),s(this,"crossOriginIframeMirror",new it(T)),s(this,"crossOriginIframeStyleMirror"),s(this,"crossOriginIframeRootIdMap",new WeakMap),s(this,"mirror"),s(this,"mutationCb"),s(this,"wrappedEmit"),s(this,"takeFullSnapshot"),s(this,"loadListener"),s(this,"pageHideListener"),s(this,"stylesheetManager"),s(this,"recordCrossOriginIframes"),s(this,"blockClass"),s(this,"blockSelector"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.takeFullSnapshot=e.takeFullSnapshot,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.blockClass=e.blockClass,this.blockSelector=e.blockSelector,this.crossOriginIframeStyleMirror=new it(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}setTakeFullSnapshot(e){this.takeFullSnapshot=e}addIframe(e){W(e,this.blockClass,this.blockSelector,!1)||(this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e),this.recordCrossOriginIframes&&!e.contentDocument&&e.contentWindow&&e.contentWindow.postMessage({type:"rrweb",origin:window.location.origin,snapshot:!0},"*"))}addLoadListener(e){this.loadListener=e}addPageHideListener(e){this.pageHideListener=e}attachIframe(t,e){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null!=(e=t.contentWindow)&&e.addEventListener("message",this.handleMessage.bind(this)),null!=(e=t.contentWindow))&&e.addEventListener("pagehide",()=>{var e;null!=(e=this.pageHideListener)&&e.call(this,t),this.mirror.removeNodeFromMap(t.contentDocument),this.crossOriginIframeMap["delete"](t.contentWindow)}),null!=(e=this.loadListener)&&e.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&0<t.contentDocument.adoptedStyleSheets.length&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(e){var t,n=e;"rrweb"===n.data.type&&n.origin===n.data.origin&&(t=e.source)&&(t==window.parent&&window!=window.parent&&e.data.snapshot?this.takeFullSnapshot():(t=this.crossOriginIframeMap.get(e.source))&&(e=this.transformCrossOriginEvent(t,n.data.event))&&this.wrappedEmit(e,n.data.isCheckout))}transformCrossOriginEvent(n,e){var t;switch(e.type){case te.FullSnapshot:this.crossOriginIframeMirror.reset(n),this.crossOriginIframeStyleMirror.reset(n),this.replaceIdOnNode(e.data.node,n);var i=e.data.node.id;return this.crossOriginIframeRootIdMap.set(n,i),this.patchRootIdOnNode(e.data.node,i),{timestamp:e.timestamp,type:te.IncrementalSnapshot,data:{source:ne.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case te.Meta:case te.Load:case te.DomContentLoaded:return!1;case te.Plugin:return e;case te.Custom:return this.replaceIds(e.data.payload,n,["id","parentId","previousId","nextId"]),e;case te.IncrementalSnapshot:switch(e.data.source){case ne.Mutation:return e.data.adds.forEach(e=>{this.replaceIds(e,n,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,n);var t=this.crossOriginIframeRootIdMap.get(n);t&&this.patchRootIdOnNode(e.node,t)}),e.data.removes.forEach(e=>{this.replaceIds(e,n,["parentId","id"])}),e.data.attributes.forEach(e=>{this.replaceIds(e,n,["id"])}),e.data.texts.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case ne.Drag:case ne.TouchMove:case ne.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case ne.ViewportResize:return!1;case ne.MediaInteraction:case ne.MouseInteraction:case ne.Scroll:case ne.CanvasMutation:case ne.Input:return this.replaceIds(e.data,n,["id"]),e;case ne.StyleSheetRule:case ne.StyleDeclaration:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleId"]),e;case ne.Font:return e;case ne.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,n,["start","end"])}),e;case ne.AdoptedStyleSheet:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleIds"]),null!=(t=e.data.styles)&&t.forEach(e=>{this.replaceStyleIds(e,n,["styleId"])}),e}}return!1}replace(e,t,n,i){for(const r of i)!Array.isArray(t[r])&&"number"!=typeof t[r]||(Array.isArray(t[r])?t[r]=e.getIds(n,t[r]):t[r]=e.getId(n,t[r]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===D.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class ot{constructor(e){s(this,"shadowDoms",new WeakSet),s(this,"mutationCb"),s(this,"scrollCb"),s(this,"bypassOptions"),s(this,"mirror"),s(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(G(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);const[n]=Ke({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(Je({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),B(()=>{e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(re.host(e))),this.restoreHandlers.push(Qe({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,i){const r=this;this.restoreHandlers.push(F(e.prototype,"attachShadow",function(n){return function(e){var e=n.call(this,e),t=re.shadowRoot(this);return t&&He(this)&&r.addShadowRoot(t,i),e}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",at="undefined"==typeof Uint8Array?[]:new Uint8Array(256),st=0;st<o.length;st++)at[o.charCodeAt(st)]=st;var dt,ut=function(e){for(var t=new Uint8Array(e),n=t.length,i="",r=0;r<n;r+=3)i=(i=(i=(i+=o[t[r]>>2])+o[(3&t[r])<<4|t[r+1]>>4])+o[(15&t[r+1])<<2|t[r+2]>>6])+o[63&t[r+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i};const ct=new Map;const lt=(t,n,i)=>{if(t&&(ht(t,n)||"object"==typeof t)){n=function(e,t){let n=ct.get(e);return n||(n=new Map,ct.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(i,t.constructor.name);let e=n.indexOf(t);return-1===e&&(e=n.length,n.push(t)),e}};const pt=(e,t,n)=>e.map(e=>function r(e,t,n){var i;return e instanceof Array?e.map(e=>r(e,t,n)):null===e?e:e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray?{rr_type:e.constructor.name,args:[Object.values(e)]}:e instanceof ArrayBuffer?{rr_type:e.constructor.name,base64:ut(e)}:e instanceof DataView?{rr_type:e.constructor.name,args:[r(e.buffer,t,n),e.byteOffset,e.byteLength]}:e instanceof HTMLImageElement?(i=e.src,{rr_type:e.constructor.name,src:i}):e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[r(e.data,t,n),e.width,e.height]}:ht(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:lt(e,t,n)}:e}(e,t,n)),ht=(t,n)=>{var e=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof n[e]);return Boolean(e.find(e=>t instanceof n[e]))};function ft(n,i,r,o){const e=[];var t;for(const s of Object.getOwnPropertyNames(i.CanvasRenderingContext2D.prototype))try{"function"==typeof i.CanvasRenderingContext2D.prototype[s]&&(t=F(i.CanvasRenderingContext2D.prototype,s,function(e){return function(...t){return W(this.canvas,r,o,!0)||B(()=>{var e=pt(t,i,this);n(this.canvas,{type:h["2D"],property:s,args:e})},0),e.apply(this,t)}}),e.push(t))}catch{var a=Te(i.CanvasRenderingContext2D.prototype,s,{set(e){n(this.canvas,{type:h["2D"],property:s,args:[e],setter:!0})}});e.push(a)}return()=>{e.forEach(e=>e())}}function gt(e,r,o,a){const t=[];try{var n=F(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(e,...t){var n;return W(this,r,o,!0)||(n="experimental-webgl"===(n=e)?"webgl":n,"__context"in this||(this.__context=n),a&&["webgl","webgl2"].includes(n)&&(t[0]&&"object"==typeof t[0]?(n=t[0]).preserveDrawingBuffer||(n.preserveDrawingBuffer=!0):t.splice(0,1,{preserveDrawingBuffer:!0}))),i.apply(this,[e,...t])}});t.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{t.forEach(e=>e())}}function mt(e,i,r,o,a,s){var t,n=[];for(const u of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))try{"function"==typeof e[u]&&(t=F(e,u,function(n){return function(...e){var t=n.apply(this,e);return lt(t,s,this),"tagName"in this.canvas&&!W(this.canvas,o,a,!0)&&(e=pt(e,s,this),e={type:i,property:u,args:e},r(this.canvas,e)),t}}),n.push(t))}catch{var d=Te(e,u,{set(e){r(this.canvas,{type:i,property:u,args:[e],setter:!0})}});n.push(d)}return n}function vt(e,t,n,i){const r=[];return"undefined"!=typeof t.WebGLRenderingContext&&r.push(...mt(t.WebGLRenderingContext.prototype,h.WebGL,e,n,i,t)),"undefined"!=typeof t.WebGL2RenderingContext&&r.push(...mt(t.WebGL2RenderingContext.prototype,h.WebGL2,e,n,i,t)),()=>{r.forEach(e=>e())}}function yt(e){return function(){return{onerror:null,onmessage:null}}}class bt{constructor(e){s(this,"pendingCanvasMutations",new Map),s(this,"rafStamps",{latestId:0,invokeId:null}),s(this,"mirror"),s(this,"mutationCb"),s(this,"resetObservers"),s(this,"frozen",!1),s(this,"locked",!1),s(this,"processMutation",(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});var{sampling:t="all",win:n,blockClass:i,blockSelector:r,recordCanvas:o,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===t&&this.initCanvasMutationObserver(n,i,r),o&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,i,r,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,n,i,r,o){const t=gt(n,i,r,!0),a=new Map,s=new yt,d=(s.onmessage=e=>{var t,n,i,r=e.data["id"];a.set(r,!1),"base64"in e.data&&({base64:e,type:t,width:n,height:i}=e.data,this.mutationCb({id:r,type:h["2D"],commands:[{property:"clearRect",args:[0,0,n,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:e}],type:t}]},0,0]}]}))},1e3/e);let u=0,c;const l=()=>{const t=[];return n.document.querySelectorAll("canvas").forEach(e=>{W(e,i,r,!0)||t.push(e)}),t},p=e=>{c=(u&&e-u<d||(u=e,l().forEach(async e=>{var t,n,i=this.mirror.getId(e);a.get(i)||0!==e.width&&0!==e.height&&(a.set(i,!0),["webgl","webgl2"].includes(e.__context)&&!1===(null==(n=null==(t=e.getContext(e.__context))?void 0:t.getContextAttributes())?void 0:n.preserveDrawingBuffer)&&t.clear(t.COLOR_BUFFER_BIT),n=await createImageBitmap(e),s.postMessage({id:i,bitmap:n,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[n]))})),requestAnimationFrame(p))};c=requestAnimationFrame(p),this.resetObservers=()=>{t(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=gt(e,t,n,!1),r=ft(this.processMutation.bind(this),e,t,n),o=vt(this.processMutation.bind(this),e,t,n);this.resetObservers=()=>{i(),r(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=e=>{this.rafStamps.latestId=e,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{var n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){var n,i;this.frozen||this.locked||(i=this.pendingCanvasMutations.get(e))&&-1!==t&&(n=i.map(e=>{const{type:t,...n}=e;return n}),i=i[0]["type"],this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations["delete"](e))}}class wt{constructor(e){s(this,"trackedLinkElements",new WeakSet),s(this,"mutationCb"),s(this,"adoptedStyleSheetCb"),s(this,"styleMirror",new Ue),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0!==e.length){var n={id:t,styleIds:[]},i=[];for(const o of e){let e;if(this.styleMirror.has(o))e=this.styleMirror.getId(o);else{e=this.styleMirror.add(o);var r=[];for(let e=0;e<o.rules.length;++e)r.push({rule:w(o.rules[e],o.href),index:e});i.push({styleId:e,rules:Array.from(o.rules||CSSRule,(e,t)=>({rule:w(e,o.href),index:t}))})}n.styleIds.push(e)}0<i.length&&(n.styles=i),this.adoptedStyleSheetCb(n)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class St{constructor(){s(this,"nodeMap",new WeakMap),s(this,"active",!1)}inOtherBuffer(e,t){e=this.nodeMap.get(e);return e&&Array.from(e).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let ce,le=()=>{},Et,It=!1;try{2!==Array.from([1],e=>2*e)[0]&&(dt=document.createElement("iframe"),document.body.appendChild(dt),Array.from=(null==(e=dt.contentWindow)?void 0:e.Array.from)||Array.from,document.body.removeChild(dt))}catch(Ct){console.debug("Unable to override Array.from",Ct)}const pe=new he;function _t(e={}){const{emit:i,checkoutEveryNms:r,checkoutEveryNth:o,blockClass:n="rr-block",blockSelector:a=null,hideSelector:s=null,ignoreClass:D="rr-ignore",ignoreSelector:F=null,maskTextClass:d="rr-mask",maskTextSelector:u=null,inlineStylesheet:c=!0,maskAllInputs:U,maskInputOptions:t,slimDOMOptions:G,maskInputFn:l,maskTextFn:p,hooks:B,packFn:h,sampling:f={},dataURLOptions:g={},mousemoveWait:H,recordDOM:z=!0,recordCanvas:m=!1,recordCrossOriginIframes:j=!1,emitFromIframe:W=!1,recordAfter:q="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:V=!1,collectFonts:K=!1,inlineImages:v=!1,plugins:y,keepIframeSrcFn:b=()=>!1,ignoreCSSAttributes:$=new Set([]),errorHandler:J}=e;e=J,se=e;const w=!!W||!j||window.parent===window;let S=!1;if(!w)try{window.parent.document&&(S=!1)}catch(ee){S=!0}if(w&&!i)throw new Error("emit function is required");if(!w&&!S)return()=>{};void 0!==H&&void 0===f.mousemove&&(f.mousemove=H),pe.reset();const E=!0===U?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==t?t:{password:!0},I=_e(G);"NodeList"in(e=window)&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach);let Y,_=0;const X=e=>{for(const t of y||[])t.eventProcessor&&(e=t.eventProcessor(e));return e=h&&!S?h(e):e},C=(ce=(e,t)=>{var n;e.timestamp=ie(),null==(n=ue[0])||!n.isFrozen()||e.type===te.FullSnapshot||e.type===te.IncrementalSnapshot&&e.data.source===ne.Mutation||ue.forEach(e=>e.unfreeze()),w?null!=i&&i(X(e),t):S&&(n={type:"rrweb",event:X(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===te.FullSnapshot?(Y=e,_=0):e.type!==te.IncrementalSnapshot||e.data.source===ne.Mutation&&e.data.isAttachIframe||(_++,t=o&&_>=o,n=r&&e.timestamp-Y.timestamp>r,(t||n)&&le(!0))},e=>{ce({type:te.IncrementalSnapshot,data:{source:ne.Mutation,...e}})}),Z=e=>ce({type:te.IncrementalSnapshot,data:{source:ne.Scroll,...e}}),Q=e=>ce({type:te.IncrementalSnapshot,data:{source:ne.CanvasMutation,...e}});const T=new wt({mutationCb:C,adoptedStyleSheetCb:e=>ce({type:te.IncrementalSnapshot,data:{source:ne.AdoptedStyleSheet,...e}})}),x=new rt({mirror:pe,mutationCb:C,stylesheetManager:T,recordCrossOriginIframes:j,blockClass:n,blockSelector:a,wrappedEmit:ce,takeFullSnapshot:le});for(const O of y||[])O.getMirror&&O.getMirror({nodeMirror:pe,crossOriginIframeMirror:x.crossOriginIframeMirror,crossOriginIframeStyleMirror:x.crossOriginIframeStyleMirror});const R=new St,A=(Et=new bt({recordCanvas:m,mutationCb:Q,win:window,blockClass:n,blockSelector:a,mirror:pe,sampling:f.canvas,dataURLOptions:g}),new ot({mutationCb:C,scrollCb:Z,bypassOptions:{blockClass:n,blockSelector:a,hideSelector:s,maskTextClass:d,maskTextSelector:u,inlineStylesheet:c,maskInputOptions:E,dataURLOptions:g,maskTextFn:p,maskInputFn:l,recordCanvas:m,inlineImages:v,sampling:f,slimDOMOptions:I,iframeManager:x,stylesheetManager:T,canvasManager:Et,keepIframeSrcFn:b,processedNodeManager:R},mirror:pe}));le=(e=!1)=>{if(z){ce({type:te.Meta,data:{href:window.location.href,width:Ae(),height:Re()}},e),T.reset(),A.init(),ue.forEach(e=>e.lock());var t=function(e,t){var{mirror:t=new he,blockClass:n="rr-block",blockSelector:i=null,hideSelector:r=null,maskTextClass:o="rr-mask",maskTextSelector:a=null,inlineStylesheet:s=!0,inlineImages:d=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:l,maskInputFn:p,slimDOM:h=!1,dataURLOptions:f,preserveWhiteSpace:g,onSerialize:m,onIframeLoad:v,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:w,keepIframeSrcFn:S=()=>!1}=t;return oe(e,{doc:e,mirror:t,blockClass:n,blockSelector:i,hideSelector:r,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:s,maskInputOptions:!0===c?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===c?{password:!0}:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:_e(h),dataURLOptions:f,inlineImages:d,recordCanvas:u,preserveWhiteSpace:g,onSerialize:m,onIframeLoad:v,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:w,keepIframeSrcFn:S,newlyAddedElement:!1})}(document,{mirror:pe,blockClass:n,blockSelector:a,hideSelector:s,maskTextClass:d,maskTextSelector:u,inlineStylesheet:c,maskAllInputs:E,maskTextFn:p,maskInputFn:l,slimDOM:I,dataURLOptions:g,recordCanvas:m,inlineImages:v,onSerialize:e=>{Pe(e,pe)&&x.addIframe(e),De(e,pe)&&T.trackLinkElement(e),Fe(e)&&A.addShadowRoot(re.shadowRoot(e),document)},onIframeLoad:(e,t)=>{x.attachIframe(e,t),A.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{T.attachLinkElement(e,t)},keepIframeSrcFn:b});if(!t)return console.warn("Failed to snapshot the document");ce({type:te.FullSnapshot,data:{node:t,initialOffset:xe(window)}},e),ue.forEach(e=>e.unlock()),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&T.adoptStyleSheets(document.adoptedStyleSheets,pe.getId(document))}},x.setTakeFullSnapshot(le);try{const N=[],M=new Map,L=e=>{return de(et)({mutationCb:C,mousemoveCb:(e,t)=>ce({type:te.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>ce({type:te.IncrementalSnapshot,data:{source:ne.MouseInteraction,...e}}),scrollCb:Z,viewportResizeCb:e=>ce({type:te.IncrementalSnapshot,data:{source:ne.ViewportResize,...e}}),inputCb:e=>ce({type:te.IncrementalSnapshot,data:{source:ne.Input,...e}}),mediaInteractionCb:e=>ce({type:te.IncrementalSnapshot,data:{source:ne.MediaInteraction,...e}}),styleSheetRuleCb:e=>ce({type:te.IncrementalSnapshot,data:{source:ne.StyleSheetRule,...e}}),styleDeclarationCb:e=>ce({type:te.IncrementalSnapshot,data:{source:ne.StyleDeclaration,...e}}),canvasMutationCb:Q,fontCb:e=>ce({type:te.IncrementalSnapshot,data:{source:ne.Font,...e}}),selectionCb:e=>{ce({type:te.IncrementalSnapshot,data:{source:ne.Selection,...e}})},customElementCb:e=>{ce({type:te.IncrementalSnapshot,data:{source:ne.CustomElement,...e}})},blockClass:n,ignoreClass:D,ignoreSelector:F,maskTextClass:d,maskTextSelector:u,maskInputOptions:E,inlineStylesheet:c,sampling:f,recordDOM:z,recordCanvas:m,inlineImages:v,userTriggeredOnInput:V,collectFonts:K,doc:e,maskInputFn:l,maskTextFn:p,keepIframeSrcFn:b,blockSelector:a,hideSelector:s,slimDOMOptions:I,dataURLOptions:g,mirror:pe,iframeManager:x,stylesheetManager:T,shadowDomManager:A,processedNodeManager:R,canvasManager:Et,ignoreCSSAttributes:$,plugins:(null==(e=null==y?void 0:y.filter(e=>e.observer))?void 0:e.map(t=>({observer:t.observer,options:t.options,callback:e=>ce({type:te.Plugin,data:{plugin:t.name,payload:e}})})))||[]},B)},P=(x.addLoadListener(e=>{try{M.set(e,L(e.contentDocument))}catch(t){console.warn(t)}}),x.addPageHideListener(e=>{var t=M.get(e),n=(t&&(t(),M["delete"](e)),e);for(let e=ue.length-1;0<=e;e--){var i=ue[e];i.bufferBelongsToIframe(n)&&(i.reset(),ue.splice(e,1))}}),()=>{le(),N.push(L(document)),It=!0});return["interactive","complete"].includes(document.readyState)?P():(N.push(ae("DOMContentLoaded",()=>{ce({type:te.DomContentLoaded,data:{}}),"DOMContentLoaded"===q&&P()})),N.push(ae("load",()=>{ce({type:te.Load,data:{}}),"load"===q&&P()},window))),()=>{N.forEach(e=>{try{e()}catch(t){String(t).toLowerCase().includes("cross-origin")||console.warn(t)}}),M.forEach(e=>e()),R.destroy(),It=!1,se=void 0}}catch(k){console.warn(k)}}return _t.addCustomEvent=(e,t)=>{if(!It)throw new Error("please add custom event after start recording");ce({type:te.Custom,data:{tag:e,payload:t}})},_t.freezePage=()=>{ue.forEach(e=>e.freeze())},_t.takeFullSnapshot=e=>{if(!It)throw new Error("please take full snapshot after start recording");le(e)},_t.mirror=pe,_t}class SessionRecorderBuffer{constructor(e,t=Infinity){this.data=[],this.sequenceNumber=0,this.interval=e,this.maxCount=t,this.doubledMaxCount=2*t}isEmpty(){return 0===this.data.length}count(){return this.data.length}clear(){this.data.length=0}clearSequence(){this.sequenceNumber=0}push(e){this.data.push(e),this.checkRateLimit()}pack(e,n){var t=this.data.splice(0,this.maxCount);return e.recordingPayload=t,e.sequence=this.sequenceNumber,e.recordingPayloadCount=t.length,t.length&&(e.browserTime=t[0].timestamp),e.recordingPayloadMetadata=n.map(t,e=>{var t=n.pick(e,"type","timestamp");return e.data&&(t.data=n.pick(e.data,"source","type","x","y","id","height","width","href")),t}),this.sequenceNumber+=t.length,e}checkRateLimit(){var e=this.data.length;e>=this.doubledMaxCount&&e%this.maxCount==0&&this.data[e-1].timestamp-this.data[e-this.doubledMaxCount].timestamp<=this.interval&&this.onRateLimit&&this.onRateLimit()}}function __rest(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function __awaiter(e,t,s,d){return new(s=s||Promise$2)(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())})}const RECORDING_CONFIG_WORKERURL$1="recording.workerUrl",MAX_SIZE=2e6,RESOURCE_CACHING$1="resourceCaching";class Transport{constructor(e,t,n){this.WorkerClass=e,this.pendo=t,this.api=n,this.maxSize=MAX_SIZE,this.lockID="worker-lock-"+this.pendo.randomString(16),this.isResourceCachingEnabled=this.api.ConfigReader.get(RESOURCE_CACHING$1)}start(e){if(!e.disableWorker&&!this.worker)try{var t;e.workerOverride?this.worker=e.workerOverride:(t=this.api.ConfigReader.get(RECORDING_CONFIG_WORKERURL$1),this.usesSelfHostedWorker=null!=t,this.worker=t?new Worker(t):new this.WorkerClass),this.worker.postMessage({type:"init",lockID:this.lockID}),this.worker.onmessage=this.pendo._.bind(this._onMessage,this),this.worker.onerror=this.pendo._.bind(this._onError,this)}catch(n){this.worker=null}}stop(){this.worker&&(this.worker.terminate(),delete this.worker)}send(e,t,n=0){let i=e["url"];var r=e["payload"];if(0<n&&(i=i+"&rt="+n),this.worker&&!t&&r){const a={};return a.promise=new Promise$2((e,t)=>{a.resolve=e,a.reject=t}),this.workerResponse=a,this.worker.postMessage({url:i,payload:r,shouldCacheResources:this.isResourceCachingEnabled}),a.promise}if(!e.body){var o,n=JSON.stringify(r);if(n.length>this.maxSize)throw(o=new Error("maximum recording payload size exceeded")).reason="HEAVY_EVENT",o.context={size:n.length,count:null==r?void 0:r.recordingPayloadCount},o;e.body=this.pendo.compress(n,"binary"),delete e.payload}return i=i+"&ct="+(new Date).getTime(),this.post(i,{keepalive:t,body:e.body})}post(e,t){return t.method="POST",t.keepalive&&this.api.transmit.fetchKeepalive.supported()?this.api.transmit.fetchKeepalive(e,t):t.keepalive&&this.api.transmit.sendBeacon.supported()?this.api.transmit.sendBeacon(e,new Blob([t.body]))?Promise$2.resolve():Promise$2.reject(new Error("sendBeacon failed to send recording data")):this.pendo.ajax.post(e,t.body)}_onMessage(e){return __awaiter(this,void 0,void 0,function*(){e.data&&e.data.ready&&navigator.locks&&(yield navigator.locks.request(this.lockID,()=>{}),this.onWorkerMessage({type:"workerDied"})),e.data&&e.data.type?this.onWorkerMessage(e.data):(e.data&&e.data.error&&((e.data.status&&e.data.status<500||null==e.data.sequence)&&this.api.log.critical("Failed to send recording data from web worker",{error:e.data.error}),this.workerResponse)&&(this.workerResponse.reject(),this.workerResponse=null),this.workerResponse&&(this.workerResponse.resolve(),this.workerResponse=null))})}_onError(){this.onError&&this.onError()}}const EVENT_KINDS={AGENTIC:"agentic",CATCHALL:"catchall",DEVLOG:"devlog",RECORDING:"recording"},CATCHALL_TYPES=["load","click","track","guideSeen"],AGENTIC_TYPES=["prompt","agent_response","user_reaction"],CONSENT_EXEMPT_TYPES=["guideSeen",EVENT_KINDS.DEVLOG];class LiveReplayClient{constructor(e,t){this.pendo=e,this.api=t,this.ws=null,this.sequence=0,this.unsubscribeEventCaptured=null,this.disabled=!1}buildWsUrl(){var e=new URL$1(this.pendo.HOST+"/data/live-replay/"+this.pendo.apiKey);return"http:"===e.protocol?e.protocol="ws:":"https:"===e.protocol&&(e.protocol="wss:"),e.href}start(e,t){this.ws&&this.ws.readyState!==WebSocket.CLOSED||this.disabled||(this.sequence=0,this.unsubscribeEventCaptured=this.api.attachEvent(this.api.Events,"eventCaptured",this.pendo._.bind(this.forwardEvent,this)),this.ws=new WebSocket(this.buildWsUrl()),this.api.util.isNativeCode(this.ws.send)?(this.ws.onopen=this.pendo._.bind(this.handleOpen,this,e,t),e=this.pendo._.bind(this.handleClose,this),this.ws.onclose=e,this.ws.onerror=e):(this.disabled=!0,this.api.log.warn("Live replay disabled: WebSocket send is not native."),this.stop()))}handleOpen(e,t){this.sendAuth(e),t&&t()}handleClose(){this.unsubscribeFromEvents()}unsubscribeFromEvents(){this.unsubscribeEventCaptured&&(this.unsubscribeEventCaptured(),this.unsubscribeEventCaptured=null)}sendAuth(e){var t;this.isOpen()&&(t=this.api.agent.getJwtInfoCopy(),this.ws.send(JSON.stringify(this.pendo._.extend({type:"auth",visitorId:e},t))))}stop(){this.ws&&(this.ws.close(),this.ws=null),this.unsubscribeFromEvents()}isOpen(){return!!this.ws&&this.ws.readyState===WebSocket.OPEN}onLiveFlag(e,t,n){e?this.start(t,n):this.stop()}send(e){if(this.isOpen())try{this.ws.send(this.pendo.compress(e,"binary"))}catch(t){}}sendRecordingEvent(e){this.send(Object.assign(Object.assign({},e),{kind:EVENT_KINDS.RECORDING,sequence:this.sequence++}))}hasConsentToForward(e){return!!this.pendo._.contains(CONSENT_EXEMPT_TYPES,e)||this.api.analytics.hasConsentForAnalyticsEvent(e)}forwardEvent(e){if(e&&e.data&&e.data.length){e=e.data[0];const t={event:e};this.pendo._.contains(AGENTIC_TYPES,e.type)&&(t.kind=EVENT_KINDS.AGENTIC),this.pendo._.contains(CATCHALL_TYPES,e.type)&&(t.kind=EVENT_KINDS.CATCHALL),e.type===EVENT_KINDS.DEVLOG&&(t.kind=EVENT_KINDS.DEVLOG),t.kind&&this.hasConsentToForward(e.type)&&this.pendo._.defer(()=>{this.send(t)})}}}const ELEMENT_NODE=1,INPUT_MASK="*".repeat(10),NUMBER_INPUT_MASK="0".repeat(10);function isElementNode(e){return!!e&&e.nodeType===ELEMENT_NODE}function getParent(e){return"undefined"!=typeof window.ShadowRoot&&e instanceof window.ShadowRoot&&e.host?e.host:e.parentNode}function distanceToMatch(e,t,n=Infinity,i=0){if(n<i)return-1;if(!e)return-1;if(isElementNode(e)){if(e.matches(t))return i;if(e.parentNode)return distanceToMatch(e.parentNode,t,n,i+1)}return distanceToMatch(getParent(e),t,n,i+1)}function shouldMask(n,i){var{maskAllText:i,maskTextSelector:r,unmaskTextSelector:o}=i;try{var a=isElementNode(n)?n:n.parentElement;if(null===a)return!1;if("STYLE"===(a.tagName||"").toUpperCase())return!1;let e=-1,t=-1;if(i){if((t=distanceToMatch(a,o))<0)return!0;e=distanceToMatch(a,r,0<=t?t:Infinity)}else{if((e=distanceToMatch(a,r))<0)return!1;t=distanceToMatch(a,o,0<=e?e:Infinity)}return 0<=e?!(0<=t)||e<=t:!(0<=t||!i)}catch(e){}return!!i}function isNumberInput(e){return"input"===(e.tagName||"").toLowerCase()&&"number"===(e.type||"").toLowerCase()}function shouldMaskInput(e,t){if(t&&isElementNode(e)){var n=(e.tagName||"").toLowerCase(),e=(e.type||"").toLowerCase();if(t[n]||t[e])return!0}return!1}function maskInput(e,t,n){return shouldMaskInput(n,e.maskInputOptions)||shouldMask(n,e)?t?isNumberInput(n)?NUMBER_INPUT_MASK:INPUT_MASK:"":t}function maskText(e,t,n){return shouldMask(n,e)?t?t.replace(/[\S]/g,"*"):"":t}const RECORDING_CONFIG="recording",RECORDING_CONFIG_ENABLED="recording.enabled",RECORDING_CONFIG_AUTO_START="recording.autoStart",RECORDING_CONFIG_WORKERURL="recording.workerUrl",RECORDING_CONFIG_ON_RECORDING_START="recording.onRecordingStart",RECORDING_CONFIG_ON_RECORDING_STOP="recording.onRecordingStop",RECORDING_CONFIG_WORKER_OVERRIDE="recording.workerOverride",RECORDING_CONFIG_TREAT_IFRAME_AS_ROOT="recording.treatIframeAsRoot",RECORDING_CONFIG_DISABLE_UNLOAD="recording.disableUnload",RECORDING_CONFIG_RECORD_CROSS_ORIGIN_IFRAMES="recording.recordCrossOriginIframes",RESOURCE_CACHING="resourceCaching",ONE_DAY_IN_MILLISECONDS=864e5,ONE_MINUTE_IN_MILLISECONDS=6e4,THIRTY_MINUTES=18e5,ONE_HUNDRED_MB_IN_BYTES=104857600,SESSION_RECORDING_ID="pendo_srId",SESSION_RECORDING_LAST_USER_INTERACTION_EVENT="pendo_srLastUserInteractionEvent",SEND_INTERVAL=5e3,MAX_SEND_COUNT=2e4,EVENT_TYPES={INCREMENTAL_SOURCE_MUTATION:0,FULL_SNAPSHOT:2,INCREMENTAL_SNAPSHOT:3,META:4,INCREMENTAL_SOURCE_INPUT:5};class SessionRecorder{constructor(e,t){this.name="Replay",this.record=e,this.WorkerClass=t,this.lastKeyFrameTime=0,this.eventsSinceLastKeyFrame=0,this.currentRecordingSize=0}addConfigOptions(){var e=this.api.ConfigReader;e.addOption(RECORDING_CONFIG,[e.sources.PENDO_CONFIG_SRC],{}),e.addOption(RECORDING_CONFIG_AUTO_START,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ENABLED,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_START,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_STOP,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKERURL,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKER_OVERRIDE,[e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_TREAT_IFRAME_AS_ROOT,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_RECORD_CROSS_ORIGIN_IFRAMES,[e.sources.SNIPPET_SRC],undefined),e.addOption(RESOURCE_CACHING,[e.sources.PENDO_CONFIG_SRC],undefined)}initialize(e,t){this.pendo=e,this.api=t;e=this.pendo._.bind,t=this.api.ConfigReader;this.buffer=new SessionRecorderBuffer(SEND_INTERVAL,MAX_SEND_COUNT),this.buffer.onRateLimit=e(this.rateLimitExceeded,this),this.transport=new Transport(this.WorkerClass,this.pendo,this.api),this.transport.onError=e(this.sendFailure,this,"WORKER_ERROR"),this.transport.onWorkerMessage=e(this.onWorkerMessage,this),this.liveReplayClient=new LiveReplayClient(this.pendo,this.api),this.sendQueue=new this.api.SendQueue(e(this.transport.send,this.transport)),this.sendQueue.onTimeout=e(this.sendFailure,this,"SEND_TIMEOUT"),this.errorHandler=this.pendo._.throttle(e(this.logStopReason,this,"RRWEB_ERROR"),ONE_MINUTE_IN_MILLISECONDS,{trailing:!1}),this.isNewSession=!1,this.isCheckingVisitorEligibility=!1,this.pageLifecycleListeners=[],this.addConfigOptions(),this.config=t.get(RECORDING_CONFIG),this.onRecordingStart=this.pendo._.isFunction(t.get(RECORDING_CONFIG_ON_RECORDING_START))?t.get(RECORDING_CONFIG_ON_RECORDING_START):function(){},this.onRecordingStop=this.pendo._.isFunction(t.get(RECORDING_CONFIG_ON_RECORDING_STOP))?t.get(RECORDING_CONFIG_ON_RECORDING_STOP):function(){};let n=!1;var i=t.get(RECORDING_CONFIG_ENABLED);if(this.pendo._.isBoolean(i)?(n=i)||this.api.log.info("Session Replay disabled via the snippet config"):n=this.config.enabled,n)if(t.get("excludeNonGuideAnalytics"))this.api.log.info("Session Replay is disabled because excludeNonGuideAnalytics is enabled");else{i=this.sessionIdKey=SESSION_RECORDING_ID+"."+this.pendo.apiKey;this.pendo.recording={start:e(this.start,this),stop:e(this.stop,this)},this.subscriptions=[this.api.attachEvent(this.api.Events,"appHidden",e(this.handleHidden,this)),this.api.attachEvent(this.api.Events,"appUnloaded",e(this.handleUnload,this)),this.api.attachEvent(this.api.Events,"identify",e(this.changeIdentity,this)),this.api.attachEvent(this.api.Events,"metadata",e(this.changeMetadata,this)),this.api.attachEvent(this.api.Events,"eventCaptured",e(this.addRecordingId,this)),this.api.attachEvent(this.api.Events,"transmit:locked",e(this.stop,this)),this.api.attachEvent(this.api.Events,"transmit:unlocked",e(this._start,this)),this.api.attachEvent(this.api.Events,"tabIdChanged:self",e(this.handleTabIdChange,this)),this.api.attachEvent(this.api.Events,"consent:changed",e(this.handleConsentChange,this)),this.api.attachEvent(this.api.Events,"childFrameJoined",e(this.handleChildFrameJoined,this))];const r=this.api.frames.getChannel(),o=e(this._frameMessage,this);r.addEventListener("message",o),this.subscriptions.push(()=>{r.removeEventListener("message",o)}),this.api.store.getters["frames/isReady"]()?this.ready():this.subscriptions.push(this.api.attachEvent(this.api.Events,"ready",e(this.ready,this))),this.api.agentStorage.registry.addSession(i),this.api.agentStorage.registry.addSession(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)}}teardown(){delete this.pendo.recording,delete this.allowStart,this.pendo._.each(this.subscriptions,function(e){e()}),this.removePageLifecycleListeners(),this.subscriptions.length=0,this.stop(),this.transport.stop(),this.liveReplayClient.stop()}ready(){!1!==this.api.ConfigReader.get(RECORDING_CONFIG_AUTO_START)&&this.start()}addPageLifecycleListeners(){this.pendo._.each(["pageshow","focus","blur","visibilitychange","resume"],e=>{this.pageLifecycleListeners.push(this.api.attachEventInternal(window,e,this.pendo._.bind(this.checkPageLifecycleState,this),!0))})}removePageLifecycleListeners(){this.pendo._.each(this.pageLifecycleListeners,function(e){e()}),this.pageLifecycleListeners=[]}checkPageLifecycleState(){var e=this.getPageLifecycleState();"active"!==e&&"passive"!==e||!this.isRecording()&&this.allowStart&&(this.removePageLifecycleListeners(),this.ready())}getPageLifecycleState(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}changeIdentity(e){this.allowStart&&(clearTimeout$1(this._changeIdentityTimer),this.isRecording()&&(this.logStopReason("IDENTITY_CHANGED",{previousVisitorId:this.visitorId,newVisitorId:e.data[0].visitor_id,previousAccountId:this.accountId,newAccountId:e.data[0].account_id}),this.stop()),this.visitorId=e.data[0].visitor_id,this.accountId=e.data[0].account_id,this._changeIdentityTimer=setTimeout$1(()=>{this._start()},500))}changeMetadata(e){var{hashChanged:e,options:t}=e.data[0];if(this.allowStart&&e)return clearTimeout$1(this._changeIdentityTimer),this.visitorId=t.visitor.id,this.accountId=t.account.id,this.checkVisitorEligibility()}handleConsentChange(e){var{identity:e,replay:t}=e.data[0];this.pendo._.isUndefined(e)&&this.pendo._.isUndefined(t)||(this.api.analytics.isReplayConsentDenied()?(this.isRecording()&&(this.logStopReason("CONSENT_DENIED"),this.stop()),this.clearSessionInfo()):this.isRecording()||this.start())}checkVisitorEligibility(t){if(this.isRecording()||!this.pendo._.isNull(this.visitorId)||!this.pendo._.isNull(this.accountId))return this.isCheckingVisitorEligibility=!0,this.fetchVisitorConfig().then(e=>{e&&e.enable||!this.isRecording()||this.stop(),e&&e.enable&&this.isRecording()&&(this.liveReplayClient.onLiveFlag(e.live,this.visitorId,()=>this._snapshotForLiveReplay()),t&&t.call(this),this.api.Events.trigger("recording:unpaused")),e&&e.enable&&!this.isRecording()&&this._startRecordingForVisitor(e),this.isCheckingVisitorEligibility=!1})["catch"](e=>{this.isCheckingVisitorEligibility=!1,this.api.log.critical("Failed to re-fetch recording config",{error:e}),this.logStopReason("VISITOR_CONFIG_ERROR")})}snapshot(){this.isRecording()&&(this.send(),this.record.takeFullSnapshot())}_snapshotForLiveReplay(){this._recordsInThisFrame()&&this.snapshot()}isRecording(){return null!=this.interval}recordingConfig(e){var e=this.pendo._.extend({},this.config.options,e),t={maskAllText:null==e.privateByDefault||e.privateByDefault,maskTextSelector:[".pendo-sr-mask"].concat(e.maskedSelectors||[]).join(","),unmaskTextSelector:[".pendo-sr-unmask"].concat(e.unmaskedSelectors||[]).join(","),maskInputOptions:{}},n=(this.pendo._.isObject(e.maskInputOptions)&&(t.maskInputOptions=e.maskInputOptions),t.maskInputOptions=this.pendo._.extend(t.maskInputOptions,{email:!0,password:!0,tel:!0}),[".pendo-ignore",".pendo-sr-ignore"].concat(e.blockedSelectors||[])),i=[".pendo-sr-hide"].concat(e.hiddenSelectors||[]),r=this.api.ConfigReader.get(RECORDING_CONFIG_RECORD_CROSS_ORIGIN_IFRAMES),r=this.pendo._.isBoolean(r)?r:e.recordCrossOriginIframes;return{maskInputFn:this.pendo._.partial(maskInput,t),maskTextFn:this.pendo._.partial(maskText,t),maskTextSelector:"*",maskTextClass:null,maskInputOptions:t.maskInputOptions,blockClass:null,blockSelector:n.concat(i).join(","),hideSelector:i.join(","),recordCrossOriginIframes:null==r||r,emitFromIframe:this._treatIframeAsRoot()}}start(){this.api.analytics.isReplayConsentDenied()||(this._restartPtm=this.pauseAnalytics(),this.allowStart=!0,this.visitorId=this.pendo.get_visitor_id(),this.accountId=this.pendo.get_account_id(),this._start())}pauseAnalytics(){const e=this.api.analytics.ptm().pause();var t=this.pendo._.isFunction(this.api.analytics.trackEventQueue)&&this.api.analytics.trackEventQueue();const n=t?t.pause({silent:!0,sendOnUnload:!0}):null;return()=>{this.pendo._.isFunction(n)&&n(),this.pendo._.isFunction(e)&&e()}}_markEvents(e){if(this.recordingId&&this.isRecording())for(var t of e)t.visitor_id!==this.visitorId&&t.visitorId!==this.visitorId||"identify"===t.type||(t.recordingId=this.recordingId,t.recordingSessionId=this.sessionId(this.recordingId))}restartPtm(){if(this.pendo._.isFunction(this._restartPtm)){this._markEvents(this.pendo.buffers.events);for(var e of this.pendo.buffers.silos)this._markEvents(e);this._markEvents(this.pendo.buffers.trackEvents||[]);for(var t of this.pendo.buffers.trackEventSilos||[])this._markEvents(t);this._restartPtm(),this._restartPtm=null}}_start(){if(!this.isRecording()&&this.pendo.isSendingEvents()&&this.allowStart)return this.fetchVisitorConfig().then(e=>{this.allowStart&&(e&&e.enable?this._startRecordingForVisitor(e):(this.restartPtm(),this.logStopReason("VISITOR_DISABLED")))})["catch"](e=>{this.restartPtm(),e&&/Failed to fetch/.test(e.toString())||(this.api.log.critical("Failed to fetch recording config",{error:e,visitorId:this.visitorId,accountId:this.accountId,url:this.pendo.url.get()}),this.logStopReason("VISITOR_CONFIG_ERROR"))})}_startRecordingForVisitor(e){if(this.api.analytics.isReplayConsentDenied())this.restartPtm(),this.logStopReason("CONSENT_DENIED");else if(this.api.Events.trigger("recording:unpaused"),this.transport.start(this.config),this.pendo._.get(this.config,"disableFallback",!0)&&!this.transport.worker)this.restartPtm(),this.pendo.log("Worker failed to start and main thread fallback is disabled. Recording prevented from starting."),this.logStopReason("WORKER_ERROR");else try{var t=this.pendo._.bind,n=(this.visitorConfig=e,this.clearOldSessionId(),this.sendQueue.start(),this.interval=setInterval(()=>{this.sendQueue.failed()||this.send()},SEND_INTERVAL),this.recordingConfig(e));this._stop=this.record(this.pendo._.extend({emit:t(this.emit,this),errorHandler:this.errorHandler},n)),this._refreshIds(),this.liveReplayClient.onLiveFlag(e.live,this.visitorId,()=>this._snapshotForLiveReplay()),this.onRecordingStart()}catch(i){this.restartPtm(),this.logStopReason("RECORDING_ERROR")}}_sendIds(){window==window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:id",recordingId:this.recordingId,_sessionId:this._sessionId,topId:this.api.store.state.frames.topId})}_recordsInThisFrame(){if(window==window.top||this._treatIframeAsRoot())return!0;if(!this.recordingConfig(this.visitorConfig).recordCrossOriginIframes)return!0;try{return!window.parent.document}catch(e){return!0}}_treatIframeAsRoot(){return!!this.api.ConfigReader.get(RECORDING_CONFIG_TREAT_IFRAME_AS_ROOT)}_refreshIds(){window!=window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:refresh"})}_frameMessage(e){e=e.data;"pendo:sr:id"===e.type?this.api.EventTracer.getTabId()==e.tabId&&this.api.store.state.frames.topId!=e.topId||e.recordingId&&(this.recordingId=e.recordingId,this._sessionId=e._sessionId,this.isRecording())&&this.restartPtm():"pendo:sr:refresh"===e.type&&window==window.top&&this._sendIds()}handleChildFrameJoined(){this.recordingId&&this.isRecording()&&this._sendIds()}clearSessionId(){delete this._sessionId,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID),this.api.sessionStorage.removeItem(this.sessionIdKey)}sessionId(t=this.pendo.randomString(16)){if(!this._sessionId){let e=this.api.sessionStorage.getItem(this.sessionIdKey);var n;e||((n=this.api.sessionStorage.getItem(SESSION_RECORDING_ID))?(e=n,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID)):e=t,this.api.sessionStorage.setItem(this.sessionIdKey,e)),this._sessionId=e}return this._sessionId}clearOldSessionId(){var e=this.getLastUserInteractionEventInformation();if(e){var t=e.timestamp,e=e.visitorId===this.visitorId&&e.accountId===this.accountId,t=t>Date.now()-this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES);if(e&&t)return}this.clearSessionInfo(),this.isNewSession=!0}clearSessionInfo(){this.currentRecordingSize=0,this.clearSessionId(),this.clearLastUserInteractionEventInformation()}isUserInteraction(e){return e.type===EVENT_TYPES.INCREMENTAL_SNAPSHOT&&e.data.source>EVENT_TYPES.INCREMENTAL_SOURCE_MUTATION&&e.data.source<=EVENT_TYPES.INCREMENTAL_SOURCE_INPUT}storeLastUserInteractionEventInformation(e,t,n,i){(this.isUserInteraction(e)||i)&&(this.lastUserInteractionEventInfo={timestamp:e.timestamp,visitorId:t,accountId:n},this.api.sessionStorage.setItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT,JSON.stringify(this.lastUserInteractionEventInfo)))}clearLastUserInteractionEventInformation(){delete this.lastUserInteractionEventInfo,this.api.sessionStorage.removeItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)}getLastUserInteractionEventInformation(){if(this.lastUserInteractionEventInfo)return this.lastUserInteractionEventInfo;try{return this.lastUserInteractionEventInfo=JSON.parse(this.api.sessionStorage.getItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)),this.lastUserInteractionEventInfo}catch(e){return null}}applyAttributeTransforms(e){const r=this.pendo._;if(!r.isEmpty(r.get(this.api.store.state,"nodeAttr.transforms"))){const o=this.api.store.getters["nodeAttr/getAttribute"](),t=i=>{r.each(i,(e,t)=>{var n;r.isString(e)&&!/^(#|data:|blob:)/.test(e)&&(n="rr_src"===t?"src":t,i[t]=o({[n]:e},n))})},n=e=>{e&&(t(e.attributes),r.each(e.childNodes,n))};e.type===EVENT_TYPES.FULL_SNAPSHOT?n(e.data.node):e.type===EVENT_TYPES.INCREMENTAL_SNAPSHOT&&e.data.source===EVENT_TYPES.INCREMENTAL_SOURCE_MUTATION&&(r.each(e.data.adds,e=>n(e.node)),r.each(e.data.attributes,e=>t(e.attributes)))}}emit(e){var t=e.type===EVENT_TYPES.META,n=e.type===EVENT_TYPES.FULL_SNAPSHOT,i=this.pendo._.get(this.getLastUserInteractionEventInformation(),"timestamp"),r=this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES);let o=!1;e.timestamp&&e.timestamp.getTime&&(e.timestamp=e.timestamp.getTime()),e.timestamp||(e.timestamp=(new Date).getTime());var r=i&&e.timestamp-i<=r;!i&&t&&(o=!0,this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,o)),t||this.isCheckingVisitorEligibility||!r||this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,o),r||n||t?(t&&(this.pendo._.has(e,"data.href")&&(e.data.href=this.pendo.location.getHref()),this.send()),this.applyAttributeTransforms(e),this.buffer.push(e),n?(this.lastKeyFrameTime=e.timestamp,this.eventsSinceLastKeyFrame=0,this.recordingId=this.pendo.randomString(16),this.buffer.clearSequence(),this.sessionId(this.recordingId),this.restartPtm(),this._sendIds(),this.pendo._.each(this.buffer.data,e=>this._sendLiveReplayEvent(e)),this.send({keyframe:!0})):!t&&(this._sendLiveReplayEvent(e),this.eventsSinceLastKeyFrame+=1,r=(i=e.timestamp-this.lastKeyFrameTime)>=ONE_DAY_IN_MILLISECONDS,n=i>=this.pendo._.get(this.visitorConfig,"keyframeTimeFrequency",30645047),t=this.eventsSinceLastKeyFrame>=this.pendo._.get(this.visitorConfig,"keyframeEventFrequency",4548),e=this.currentRecordingSize>=this.pendo._.get(this.visitorConfig,"recordingSizeLimit",ONE_HUNDRED_MB_IN_BYTES),r||n&&t||e)&&(i=function(){this.currentRecordingSize=0,this.snapshot()},r&&!this.isCheckingVisitorEligibility?this.checkVisitorEligibility(i):i.call(this))):("hidden"===this.getPageLifecycleState()&&(this.stop(),this.addPageLifecycleListeners(),this.logStopReason("INACTIVE_HIDDEN_TAB")),this.isCheckingVisitorEligibility||this.checkVisitorEligibility(function(){this.send(),this.clearSessionInfo(),this.snapshot()}))}updateCurrentRecordingSize(e){this.currentRecordingSize+=e}_sendLiveReplayEvent(e){this.recordingId&&this.liveReplayClient.isOpen()&&this.liveReplayClient.sendRecordingEvent({type:"recording",visitorId:this.visitorId,accountId:this.accountId,recordingId:this.recordingId,recordingSessionId:this.sessionId(this.recordingId),url:this.pendo.url.get(),keyFrame:e.type===EVENT_TYPES.FULL_SNAPSHOT,lastKeyFrame:this.lastKeyFrameTime,recordingPayload:[e],recordingPayloadCount:1,browserTime:e.timestamp})}onWorkerMessage(e){switch(e.type){case"workerDied":this.logStopReason("WORKER_DIED");break;case"recordingPayloadSize":var{recordingPayloadSize:t,exceedsPayloadSizeLimit:n}=e;if(!t)return;if(n)return this.stop(),void this.logStopReason("BIG_PAYLOAD",t);this.updateCurrentRecordingSize(t);break;case"hostedResources":n=e["hostedResourcesEvent"];if(!n)return;this.sendHostedResources(n);break;case"emptyPayload":this.logStopReason("EMPTY_PAYLOAD");break;case"missingData":this.logStopReason("MISSING_"+e.missingData);break;case"liveFlag":e.visitorId===this.visitorId&&this.liveReplayClient.onLiveFlag(e.live,this.visitorId,()=>this._snapshotForLiveReplay())}}addRecordingId(e){this.isRecording()&&this.recordingId&&e&&e.data&&e.data.length&&"recording"!==(e=e.data[0]).type&&"identify"!==e.type&&(e.visitor_id!==this.visitorId&&e.visitorId!==this.visitorId?(this.api.log.warn("Visitor id has diverged from agent"),this.logStopReason("VISITOR_ID_DIVERGED",{agentVisitorId:e.visitor_id||e.visitorId,recordingVisitorId:this.visitorId}),this.stop()):this._markEvents([e]))}stop(){this._stop&&this._stop(),this.send(),this.liveReplayClient.stop(),this.sendQueue.stop(),this.recordingId=null,clearInterval(this.interval),this.interval=null,this._stop=null,this.visitorConfig=null,this.api.Events.trigger("recording:paused"),this.visitorId=null,this.accountId=null,this.clearSessionInfo(),this.onRecordingStop()}handleHidden(){this.send({hidden:!0})}handleUnload(){this.api.ConfigReader.get(RECORDING_CONFIG_DISABLE_UNLOAD)||this.send({unload:!0})}buildRequestUrl(e,t){t=this.pendo._.extend({},this.api.agent.getJwtInfoCopy(),t),t=this.pendo._.map(t,function(e,t){return t+"="+e}).join("&");return t.length?e+"?"+t:e}sendFailure(e){this.stop(),this.logStopReason(e)}rateLimitExceeded(){this.send(),this.stop(),this.logStopReason("DATA_OVERLOAD")}send({unload:e=!1,keyframe:t=!1,hidden:n=!1}={}){if(this.isRecording()&&this.buffer&&this.recordingId&&!this.buffer.isEmpty())if(this.pendo.isSendingEvents()){var i=this.api.EventTracer.addTracerIds({}),t=this.pendo._.extend({type:"recording",visitorId:this.visitorId,accountId:this.accountId,keyFrame:!!t,lastKeyFrame:this.lastKeyFrameTime,recordingId:this.recordingId,recordingSessionId:this.sessionId(this.recordingId),url:this.pendo.url.get(),hasUserInteraction:this.pendo._.any(this.buffer.data,this.isUserInteraction)},i),i=(this.transport.usesSelfHostedWorker&&(t.usesSelfHostedWorker=!0),this.api.Events.eventCaptured.trigger(t),{v:this.pendo.VERSION,recordingId:this.recordingId,vis:this.api.util.base64EncodeString(this.visitorId)}),i=(t.keyFrame&&(i.kf=1),this.isNewSession&&(this.isNewSession=!(i.ns=1)),this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+this.pendo.apiKey,i)),t=this.buffer.pack(t,this.pendo._);if(e||n)try{this.sendQueue.drain([{url:i,payload:t}],e)}catch(r){r.reason?this.logStopReason(r.reason,r.context):this.logStopReason("SEND_QUEUE_ERROR",r)}else this.sendQueue.push({url:i,payload:t});this.buffer.isEmpty()||this.send({unload:e})}else this.buffer.clear()}fetchVisitorConfig(){var e=this.pendo.compress({url:this.pendo.url.get(),metadata:this.pendo.getSerializedMetadata(),visitorId:this.visitorId,accountId:this.accountId}),e=this.buildRequestUrl(this.pendo.HOST+"/data/recordingconf/"+this.pendo.apiKey,{jzb:e,ct:(new Date).getTime(),v:this.pendo.VERSION});return fetch(e,{method:"GET"}).then(e=>e.json())}logStopReason(e,t){var n=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend({type:"recording",visitorId:this.visitorId||this.pendo.get_visitor_id(),accountId:this.accountId||this.pendo.get_account_id(),browserTime:(new Date).getTime(),keyFrame:!1,lastKeyFrame:0,recordingId:"log",recordingSessionId:"log",url:this.pendo.url.get(),subType:"log",recordingPayload:[],sequence:0,recordingPayloadCount:0,props:Object.assign({reason:e},t&&{error:t instanceof Error?null==t?void 0:t.message:t})},n),t=this.pendo.compress(e),n=this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+this.pendo.apiKey,{jzb:t,ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),t=this.pendo.compress(e,"binary");return this.transport.post(n,{body:t,keepalive:!0})["catch"](e=>{this.api.log.critical("Failed to send reason for stopping recording",{error:e})})}sendHostedResources(e){var t=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend(Object.assign(Object.assign({},e),{browserTime:(new Date).getTime()}),t),t=this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+this.pendo.apiKey,{ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),e=this.pendo.compress(e,"binary");return this.transport.post(t,{body:e,keepalive:!0})["catch"](e=>{this.api.log.critical("Failed to send hosted resources for recording event",{error:e})})}handleTabIdChange(){this.send(),this.clearSessionInfo(),this.snapshot()}}function wrapMethodWithCatch(t){return function(){try{return t.apply(this,arguments)}catch(e){this.api&&this.api.log&&this.api.log.critical("session recording error",{error:e})}}}function errorLogger(e){if("undefined"!=typeof Object&&"function"==typeof Object.getOwnPropertyNames&&e.constructor&&e.constructor.prototype)for(var t of Object.getOwnPropertyNames(e.constructor.prototype))"constructor"!==t&&(e[t]=wrapMethodWithCatch(e[t]));return e}function funcToSource(e,t){var t=t===undefined?null:t,n=[],e=(e=e.toString()).replace(/(['"])__worker_loader_strict__(['"])/g,"$1use strict$2");return n.push("("+e+")()"),t&&n.push("//# sourceMappingURL="+t+"\n"),n}function createURL(e,t){e=funcToSource(e,t),t=new Blob(e,{type:"application/javascript"});return URL.createObjectURL(t)}function createInlineWorkerFactory(t,n){var i;return function WorkerFactory(e){return i=i||createURL(t,n),new Worker(i,e)}}var WorkerFactory=createInlineWorkerFactory(function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function c(e,t){t=t||r;e=function(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}("string"==typeof e?e:JSON.stringify(e)),e=new i.Deflate(e).compress();return t===r?n.uint8ToBase64(e):e}function l(e,t){t=t.match(/https:\/\/[^"\\\s]+?\.(woff2?|ttf|otf|eot)(\?[^"\\\s]*)?\b/g),t=t?Array.from(new Set(t)):[];return{type:"recording",visitorId:e.visitorId,accountId:e.accountId,keyFrame:!1,lastKeyFrame:e.lastKeyFrame,recordingId:e.recordingId,recordingSessionId:e.recordingSessionId,url:e.url,subType:"hostedResources",recordingPayload:[],recordingPayloadMetadata:[],sequence:0,recordingPayloadCount:0,hostedResources:t}}var a,n,t,i,r;a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),n={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 a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=a[n>>2])+a[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=a[n>>10])+a[n>>4&63])+a[n<<2&63]}return o}},function(){var Z=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===Z?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,D,n=this.input;switch(this.d){case 0:for(t=0,D=n.length;t<D;){var F,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===D,o=Z,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),F=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&F,a[s++]=F>>>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,H,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,T,x,R,W=h,q=f,A=new(ee?Uint32Array:Array)(W+q),k=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<W;N++)A[_++]=m[N];for(N=0;N<q;N++)A[_++]=v[N];if(!ee)for(N=0,T=O.length;N<T;++N)O[N]=0;for(N=x=0,T=A.length;N<T;N+=_){for(_=1;N+_<T&&A[N+_]===A[N];++_);if(C=_,0===A[N])if(C<3)for(;0<C--;)O[k[x++]=0]++;else for(;0<C;)(R=C-3<(R=C<138?C:138)&&R<C?C-3:R)<=10?(k[x++]=17,k[x++]=R-3,O[17]++):(k[x++]=18,k[x++]=R-11,O[18]++),C-=R;else if(k[x++]=A[N],O[A[N]]++,--C<3)for(;0<C--;)k[x++]=A[N],O[A[N]]++;else for(;0<C;)C-3<(R=C<6?C:6)&&R<C&&(R=C-3),k[x++]=16,k[x++]=R-3,O[16]++,C-=R}for(e=ee?k.subarray(0,x):k.slice(0,x),y=oe(O,7),S=0;S<19;S++)j[S]=y[z[S]];for(g=19;4<g&&0===j[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(j[S],3,Q);for(S=0,H=e.length;S<H;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],K=I[0],$=I[1],J=L[0],Y=L[1],P=0,X=p.length;P<X;++P)if(M=p[P],E.b(K[M],$[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b(J[V],Y[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,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]===Z&&(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,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,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(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call((t={exports:{}}).exports),i={Deflate:e(t.exports).Zlib.Deflate},r="base64url",self.onmessage=function(n){try{if("init"===n.data.type&&n.data.lockID)navigator.locks&&navigator.locks.request(n.data.lockID,()=>(postMessage({ready:!0}),new Promise(()=>{})));else if(n.data.url&&n.data.payload){let{url:e,payload:i,shouldCacheResources:t}=n.data;0===Object.keys(i).length&&postMessage({type:"emptyPayload"});const u=i["sequence"];var r,o,a=JSON.stringify(i.recordingPayload),s=(new TextEncoder).encode(a).length,d=104857600<=s;postMessage({type:"recordingPayloadSize",recordingPayloadSize:s,exceedsPayloadSizeLimit:d}),d||(t&&(r=l(i,a)).hostedResources.length&&postMessage({type:"hostedResources",hostedResourcesEvent:r}),i.recordingSize=s,o=c(i,"binary"),e=e+"&ct="+(new Date).getTime(),fetch(e,{method:"POST",body:o}).then(function(e){if(e.status<200||300<=e.status){var t=e;try{t&&t.body&&"function"==typeof t.body.cancel&&t.body.cancel()["catch"](function(){})}catch(n){}postMessage({error:new Error(`received status code ${e.status}: `+e.statusText),status:e.status,sequence:u})}else postMessage({sequence:u}),e.json().then(function(e){e&&e.live!==undefined&&postMessage({type:"liveFlag",live:e.live,visitorId:i.visitorId})})["catch"](function(){})})["catch"](function(e){postMessage({error:e,sequence:u})}))}else postMessage({type:"missingData",missingData:n.data.url?"PAYLOAD":"URL"})}catch(n){postMessage({error:n})}}},null);function createReplayPlugin(){return errorLogger(new SessionRecorder(record(),WorkerFactory))}const NUM_OF_KEYS_LIMIT=50,DEPTH_OF_LIMIT=4;function serializeHTML(e){var t;return e&&e.nodeType===e.ELEMENT_NODE&&(t=e.cloneNode(!1),e=e.textContent,e&&(t.textContent=e),t.outerHTML)||""}function isObject(e){return null!==e&&"object"==typeof e&&((e=Object.getPrototypeOf(e))===Object.prototype||null===e)}function isObjTooDeep(t,n){var e;return 0===n||0!==(e=Object.keys(t)).length&&e.some(e=>{e=t[e];return isObject(e)&&isObjTooDeep(e,n-1)})}function shouldIgnore(e){return e instanceof RegExp||!!isObject(e)&&(Object.keys(e).length>NUM_OF_KEYS_LIMIT||isObjTooDeep(e,DEPTH_OF_LIMIT))}function stringify(e,a=Infinity){if(e===undefined)return"undefined";if("object"!=typeof e)return"bigint"==typeof e?e.toString()+"n":"function"==typeof e?e.toString():String(e);let s=0;return JSON.stringify(e,function(e,t){if(s>a)return"";var n="string"==typeof t?t.length:0;if(s+=e.length+n,null!==t){if(t===undefined)return"undefined";if(Array.isArray(t)&&t.length>NUM_OF_KEYS_LIMIT)return t.slice(0,NUM_OF_KEYS_LIMIT);if(shouldIgnore(t))return t.toString?t.toString():"[object Object]";if(t instanceof ArrayBuffer)return`ArrayBuffer { byteLength: ${t.byteLength} }`;if(t instanceof Error)return t.name+": "+t.message;if(t instanceof Node)return t instanceof HTMLElement?serializeHTML(t):t.nodeName;if(t instanceof Event){var i={};for(const o in t){var r=t[o];i[o]=Array.isArray(r)&&r[0]instanceof HTMLElement?serializeHTML(r[0]):r}return i}}return t})}class StackFrame{constructor(e){this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}toString(){var{fileName:e,functionName:t,lineNumber:n="",columnNumber:i=""}=this;return t?t+` (${e}:${n}:${i})`:e+`:${n}:`+i}}const FIREFOX_SAFARI_STACK_REGEXP=/(^|@)\S+:\d+/,CHROME_EDGE_STACK_REGEXP=/^\s*at .*(\S+:\d+|\(native\))/m,SAFARI_NATIVE_CODE_REGEXP=/^(eval@)?(\[native code])?$/,LOCATION_REGEXP=/(.+?)(?::(\d+))?(?::(\d+))?$/,DEFAULT_NUM_FRAMES_TO_SKIP=5,ErrorStackParser={parse(e,t){return null!=e&&e.stack?CHROME_EDGE_STACK_REGEXP.test(e.stack)?this.parseChromiumStack(e,t):FIREFOX_SAFARI_STACK_REGEXP.test(e.stack)?this.parseFirefoxSafariStack(e,t):[]:[]},extractLocation(e){if(-1===e.indexOf(":"))return[e];var t=LOCATION_REGEXP.exec(e.replace(/[()]/g,""));if(t)return[t[1],t[2]||undefined,t[3]||undefined];throw new Error("Cannot parse given url: "+e)},parseHelper({regex:t,includeMatchedLine:n},e,i,r){var o=e.stack.split("\n"),a=[];let s=0;for(let e=0;e<o.length;e++){var d=o[e],u=t.test(d),u=n&&!u||!n&&u;if(!u&&!(++s<=DEFAULT_NUM_FRAMES_TO_SKIP)){if(i&&s>DEFAULT_NUM_FRAMES_TO_SKIP+i)break;r(d,a)}}return a},parseChromiumStack(e,t){return this.parseHelper({regex:CHROME_EDGE_STACK_REGEXP,includeMatchedLine:!0},e,t,(e,t)=>{let n;let i;-1<(n=-1<e.indexOf("(eval ")?e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,"").replace(/^\s+/,"").replace(/\(eval code/g,"("):e.replace(/^\s+/,"")).indexOf("(")&&-1<n.indexOf("):")&&(i=n.match(/ (\((.+):(\d+):(\d+)\)$)/));var e=(n=i?n.replace(i[0],""):n).split(/\s+/).slice(1),r=this.extractLocation(i?i[1]:e.pop()||""),e=e.join(" ")||undefined,o="eval"===r[0]||"<anonymous>"===r[0]?undefined:r[0];t.push(new StackFrame({functionName:e,fileName:o,lineNumber:r[1],columnNumber:r[2]}))})},parseFirefoxSafariStack(e,t){return this.parseHelper({regex:SAFARI_NATIVE_CODE_REGEXP,includeMatchedLine:!1},e,t,(e,t)=>{let n=e;var i;-1===(n=-1<n.indexOf(" > eval")?n.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1"):n).indexOf("@")&&-1===n.indexOf(":")?t.push(new StackFrame({functionName:n})):(e=/((.*".+"[^@]*)?[^@]*)(?:@)/,i=(i=n.match(e))&&i[1]?i[1]:undefined,e=this.extractLocation(n.replace(e,"")),t.push(new StackFrame({functionName:i,fileName:e[0],lineNumber:e[1],columnNumber:e[2]})))})}};function includes(e,t){return-1!==e.indexOf(t)}function getResourceType(e,t){if(!t||"string"!=typeof t)return"resource";t=t.toLowerCase();if("inline"===e){if(includes(t,"script-src-attr"))return"inline event handler";if(includes(t,"style-src-attr"))return"inline style attribute";if(includes(t,"script"))return"inline script";if(includes(t,"style"))return"inline style"}return"eval"===e?"eval script execution":includes(t,"worker")?"worker":includes(t,"script")?includes(t,"elem")?"script element":"script":includes(t,"style")?includes(t,"elem")?"style element":"stylesheet":includes(t,"img")?"image":includes(t,"font")?"font":includes(t,"connect")?"network request":includes(t,"media")?"media resource":includes(t,"frame-ancestors")?"display of your page in a frame":includes(t,"frame")?"frame":includes(t,"manifest")?"manifest":includes(t,"base-uri")?"base URI":includes(t,"form-action")?"form submission":"resource"}function getDirective(e,t){if(e&&t){var n=t.toLowerCase();for(const o of e.split(";")){var i=o.trim(),r=i.toLowerCase();if(r===n||r.startsWith(n+" "))return i}}return""}function getArticle(e){return e&&"string"==typeof e&&includes("aeiou",e.trim().charAt(0).toLowerCase())?"An":"A"}function formatBlockedUri(e){return e&&"inline"!==e&&"eval"!==e?e:""}function createCspViolationMessage(e,t,n,i){if(!t||"string"!=typeof t)return"Content Security Policy: Unknown violation occurred.";try{var r,o,a=n?" (Report-Only)":"";return"frame-ancestors"===(null==t?void 0:t.toLowerCase())?`Content Security Policy${a}: The display of ${e} in a frame was blocked because an ancestor violates your site's frame-ancestors policy.
157
+ `,f.util.addInlineStyles(p.feedbackFrameStyles,t),t=e,(e=h.dom(document.createElement("div"))).css({height:"100%",position:"fixed",right:"0",top:"0",width:"0","background-color":"#f7f7f7",transition:"animation 0.4s ease-in-out","box-shadow":"0 5px 40px rgba(0,0,0,.46)",display:"block !important","-webkit-overflow-scrolling":"touch","overflow-y":"hidden"}),e.attr("id",p.feedbackWidget),e.attr("data-turbolinks-permanent","true"),e.addClass("buttonIs-"+t);var t=e;t.append(((e=h.dom(document.createElement("iframe"))).css({width:"100%",height:"99.6%",border:"0 none"}),e.attr("id",p.feedbackIframe),e.attr("title","Feedback"),e.attr("src",y()),e)),t.appendTo(h.dom.getBody()),F()}function B(){return o}function M(){let e=f.ConfigReader.getLocalConfig();return h._.isObject(e)||(e={}),h._.isObject(e.visitor)||(e.visitor={}),h._.isObject(e.account)||(e.account={}),e}function H(e){e=e||M();if(!isUnsupportedIE(h)&&s&&a&&d&&u)if(h._.get(e.visitor,"id")){if(!h.isAnonymousVisitor(e.visitor.id)){if(h._.get(e.account,"id"))return 1;h.log("The current visitor is not associated with an account.")}}else h.log("Not valid visitor id")}function L(e,t){if(s=t.vendorId,a=t.apiUrl,d=t.siteUrl,u=t.productId,c)return f.q.reject();if(!H(e))return f.q.reject();var n,i,e=P(e);try{n=h.url.get(),i="fdbkDst";const o=null!=(i=new RegExp("[?&]"+i+"=([^&#]*)").exec(n))&&decodeURI(i[1])||null;if(o&&o.startsWith("case"))return c=!0,void T().then(function(e){e=e+"&fdbkDst="+o;window.location.href=e})}catch(r){c=!1,h.log(r,"unhandled error while checking feedback destination")}try{return c=!0,"WIDGET"===t.type&&U(t),E(),w(e)}catch(r){return c=!1,h.log(r,"unhandled error while initializing feedback"),f.q.reject(r)}}function P(e){var t,n,i=f.agent.getJwtInfoCopy();return h._.isEmpty(i)?((t={}).user=h._.pick(e.visitor,"id","full_name","firstName","lastName","email","tags","custom_allowed_products"),h._.extend(t.user,{allowed_products:[{id:u}]}),t.account=h._.pick(e.account,"id","name","monthly_value","is_paying","tags"),h._.extend(t,{vendor:{id:s}}),h._.isUndefined(t.account.is_paying)&&(t.account.is_paying=!0),null!=t.user.email&&""!=t.user.email||(t.user.email=(e=t,h._.isUndefined(e.user)||h._.isUndefined(e.user.id)?"noemail+"+h.randomString(32)+"@pendo.io":"noemail+"+e.user.id+"@pendo.io")),null!=t.user.full_name&&""!=t.user.full_name||(t.user.full_name=(e=t,h._.isUndefined(e.user.firstName)&&h._.isUndefined(e.user.lastName)?h._.isUndefined(e.user)||h._.isUndefined(e.user.id)?"No Name Provided"+h.randomString(32):"No Name Provided"+e.user.id:(n=[],h._.isUndefined(e.user.firstName)||n.push(e.user.firstName),h._.isUndefined(e.user.lastName)||n.push(e.user.lastName),n.join(" ")))),t):(e=JSON.parse(JSON.stringify(i)),h._.extend(e,{vendor:{id:s}}),h._.extend(e,{allowed_products:[{id:u}]}),e)}function z(){return c}function D(){h._.each(h._.values(p),function(e){h.dom("#"+e).remove()}),u=r=d=s=a="",c=o=!1,f.agentStorage.clear(i),f.agentStorage.clear(l)}function j(){return JSON.parse(JSON.stringify(f.ConfigReader.get("feedbackSettings",{})))}}function record(){var e,a=Object.defineProperty,s=(e,t,n)=>{return n=n,(t="symbol"!=typeof t?t+"":t)in(e=e)?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},te=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))({}),ne=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ne||{}),l=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(l||{}),p=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(p||{}),h=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))({}),P=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(P||{}),D=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(D||{});const u={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot"],MutationObserver:[],EventTarget:[]},c={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:["querySelector","querySelectorAll"],MutationObserver:["constructor"],EventTarget:["addEventListener","removeEventListener"]},g={},m={};function d(e){if(g[e])return g[e];var t=function(e){var t,n=null==(t=null==(n=null==globalThis?void 0:globalThis.Zone)?void 0:n.__symbol__)?void 0:t.call(n,e);if(n&&globalThis[n])return globalThis[n]}(e)||globalThis[e];const n=t.prototype;var i=e in u?u[e]:void 0,i=Boolean(i&&i.every(e=>{return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),r=e in c?c[e]:void 0,r=Boolean(r&&r.every(e=>{return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(i&&r)return g[e]=t.prototype,t.prototype;try{const d=document.createElement("iframe");d.style.display="none",document.body.appendChild(d);var o,a,s=d.contentWindow;return s?(o=s[e].prototype)?((a=navigator.userAgent).includes("Safari")&&!a.includes("Chrome")?(d.classList.add("rr-block"),d.setAttribute("__rrwebUntaintedMutationObserver",""),m[e]=()=>d.remove()):d.remove(),g[e]=o):(d.remove(),n):t.prototype}catch{return n}}const v={};function t(e,t,n){var i=null==(i=v[e])?void 0:i[n];return i?i.call(t):(i=d(e),(i=null==(i=Object.getOwnPropertyDescriptor(i,n))?void 0:i.get)?((v[e]||(v[e]={}))[n]=i).call(t):t[n])}const y={};function r(e,t,n){var i=e+"."+String(n);if(y[i])return y[i].bind(t);var r=null==(o=null==(r=null==globalThis?void 0:globalThis.Zone)?void 0:r.__symbol__)?void 0:o.call(r,String(n));if(r){var o=null==(o=globalThis[e])?void 0:o.prototype,r=globalThis[r]??(null==o?void 0:o[r]);if("function"==typeof r)return(y[i]=r).bind(t)}o=d(e)[n];return"function"!=typeof o?t[n]:(y[i]=o).bind(t)}function b(){return[d("MutationObserver").constructor,m.MutationObserver??(()=>{})]}function n(){var e,t,n;let i=window.Proxy;try{"function"==typeof window.Proxy&&null!=(e=window.Proxy)&&e.toString().includes("[native code]")||((n=document.createElement("iframe")).style.display="none",document.documentElement.appendChild(n),i=(null==(t=n.contentWindow)?void 0:t.Proxy)||window.Proxy,document.documentElement.removeChild(n))}catch(r){console.debug("Unable to get untainted Proxy from iframe",r)}return i}let ie=Date.now;function F(e,t,n){try{if(!(t in e))return()=>{};const r=e[t];var i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}const re={ownerDocument:function(e){return t("Node",e,"ownerDocument")},childNodes:function(e){return t("Node",e,"childNodes")},parentNode:function(e){return t("Node",e,"parentNode")},parentElement:function(e){return t("Node",e,"parentElement")},textContent:function(e){return t("Node",e,"textContent")},firstChild:function(e){return t("Node",e,"firstChild")},lastChild:function(e){return t("Node",e,"lastChild")},nextSibling:function(e){return t("Node",e,"nextSibling")},previousSibling:function(e){return t("Node",e,"previousSibling")},contains:function(e,t){return r("Node",e,"contains")(t)},getRootNode:function(e){return r("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?t("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?t("Element",e,"shadowRoot"):null},querySelector:function(e,t){return r("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return r("Element",e,"querySelectorAll")(t)},addEventListener:function(e,t,n,i){r("EventTarget",e,"addEventListener")(t,n,i)},removeEventListener:function(e,t,n,i){r("EventTarget",e,"removeEventListener")(t,n,i)},nowTimestamp:ie=/[1-9][0-9]{12}/.test(Date.now().toString())?ie:()=>(new Date).getTime(),mutationObserverCtor:b,patch:F};function $(e){return e.nodeType===e.ELEMENT_NODE}function U(e){var t=e&&"host"in e&&"mode"in e&&re.host(e)||null;return Boolean(t&&"shadowRoot"in t&&re.shadowRoot(t)===e)}function G(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}const B="undefined"!=typeof window?function(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}("setTimeout").bind(window):global.setTimeout;function O(e){try{var n=e.rules||e.cssRules;if(!n)return null;let t=e.href;!t&&e.ownerNode&&(t=e.ownerNode.baseURI);var i=Array.from(n,e=>w(e,t)).join("");return r=(r=i).includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")?r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"):r}catch(t){return null}var r}function w(t,n){var i,r;if("styleSheet"in t){let e;try{e=O(t.styleSheet)||((r=(i=t).cssText).split('"').length<3?r:(r=["@import",`url(${JSON.stringify(i.href)})`],""===i.layerName?r.push("layer"):i.layerName&&r.push(`layer(${i.layerName})`),i.supportsText&&r.push(`supports(${i.supportsText})`),i.media.length&&r.push(i.media.mediaText),r.join(" ")+";"))}catch(o){e=t.cssText}return null!=(i=null==t?void 0:t.styleSheet)&&i.href?f(e,t.styleSheet.href):e}{let e=t.cssText;return"selectorText"in t&&(e=function(t){var e=t.cssText.includes("grid-template:"),n=""!==t.style.getPropertyValue("grid-template-areas"),i=t.cssText.includes("grid-template-areas:");if(e&&n&&!i){var r=[];for(let e=0;e<t.style.length;e++){var o=t.style[e],a=t.style.getPropertyValue(o);r.push(o+": "+a)}return`${t.selectorText} { ${r.join("; ")}; }`}return t.cssText}(t),t.selectorText.includes(":"))&&(e=e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n?f(e,n):e}}class he{constructor(){s(this,"idNodeMap",new Map),s(this,"nodeMetaMap",new WeakMap)}getId(e){return e?(null==(e=this.getMeta(e))?void 0:e.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){var t=this.getId(e);this.idNodeMap["delete"](t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){var n=this.getNode(e);n&&(n=this.nodeMetaMap.get(n))&&this.nodeMetaMap.set(t,n),this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function J({element:e,maskInputOptions:t,tagName:n,type:i,value:r,maskInputFn:o,needsMask:a}){let s=r||"";r=i&&A(i);return s=t[n.toLowerCase()]||r&&t[r]||a?o?o(s,e):"*".repeat(s.length):s}function A(e){return e.toLowerCase()}const N="__rrweb_original__";function Y(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?A(t):null}function X(e,t){let n;try{n=new URL$1(e,t??window.location.href)}catch(i){return null}e=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==e?void 0:e[1])??null}const S=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,E=/^(?:[a-z+]+:)?\/\//i,I=/^www\..*/i,_=/^(data:)([^,]*),(.*)/i;function f(e,d){return(e||"").replace(S,(e,t,n,i,r,o)=>{n=n||r||o,r=t||i||"";if(!n)return e;if(E.test(n)||I.test(n))return`url(${r}${n}${r})`;if(_.test(n))return`url(${r}${n}${r})`;if("/"===n[0])return`url(${r}${function(e){let t="";return t=(t=-1<e.indexOf("//")?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}(d)+n}${r})`;var o=n.split("#")[0],t=n.substring(o.length),a=d.split("#")[0].split("/"),i=o.split("/");a.pop();for(const s of i)"."!==s&&(".."===s?a.pop():a.push(s));return`url(${r}${a.join("/")}${t}${r})`})}function C(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function M(e,t){return function(a,e,s=!1){var d=Array.from(e.childNodes),u=[];let c=0;if(1<d.length&&a&&"string"==typeof a){let o=C(a,s);var l=o.length/a.length;for(let r=1;r<d.length;r++)if(d[r].textContent&&"string"==typeof d[r].textContent){var p,h=C(d[r].textContent,s);let i=3;for(;i<h.length&&(h[i].match(/[a-zA-Z0-9]/)||-1!==h.indexOf(h.substring(0,i),1));i++);for(;i<h.length;i++){let e=h.substring(0,i),t=o.split(e),n=-1;if(2===t.length)n=t[0].length;else if(2<t.length&&""===t[0]&&""!==d[r-1].textContent)n=o.indexOf(e,1);else if(1===t.length){if(e=e.substring(0,e.length-1),(t=o.split(e)).length<=1)return u.push(a),u;i=101}else i===h.length-1&&(n=o.indexOf(e));if(-1!==(n=2<=t.length&&100<i&&((p=d[r-1].textContent)&&"string"==typeof p&&(p=C(p).length,n=o.indexOf(e,p)),-1===n)?t[0].length:n)){let e=Math.floor(n/l);for(;0<e&&e<a.length;){if((c+=1)>50*d.length)return u.push(a),u;var f=C(a.substring(0,e),s);if(f.length===n){u.push(a.substring(0,e)),a=a.substring(e),o=o.substring(n);break}f.length<n?e+=Math.max(1,Math.floor((n-f.length)/l)):e-=Math.max(1,Math.floor((f.length-n)*l))}break}}}}return u.push(a),u}(e,t).join("/* rr_split */")}let Z=1;const L=new RegExp("[^a-z0-9-_:]"),Q=-2;function T(){return Z++}let k,ee;const x=/^[^ \t\n\r\u000c]+/,R=/^[, \t\n\r\u000c]+/;function fe(i,r){if(""===r.trim())return r;let o=0;function e(e){var e=e.exec(r.substring(o));return e?(e=e[0],o+=e.length,e):""}for(var a=[];e(R),!(o>=r.length);){let n=e(x);if(","===n.slice(-1))n=me(i,n.substring(0,n.length-1)),a.push(n);else{let e="",t=(n=me(i,n),!1);for(;;){var s=r.charAt(o);if(""===s){a.push((n+e).trim());break}if(t)")"===s&&(t=!1);else{if(","===s){o+=1,a.push((n+e).trim());break}"("===s&&(t=!0)}e+=s,o+=1}}}return a.join(", ")}const ge=new WeakMap;function me(e,t){return t&&""!==t.trim()?ve(e,t):t}function ve(e,t){let n=ge.get(e);if(n||(n=e.createElement("a"),ge.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function ye(e,t,n,i){return i&&("src"===n||"href"===n&&("use"!==t||"#"!==i[0])||"xlink:href"===n&&"#"!==i[0]||"background"===n&&["table","td","th"].includes(t)?me(e,i):"srcset"===n?fe(e,i):"style"===n?f(i,ve(e)):"object"===t&&"data"===n?me(e,i):i)}function be(e,t){return["video","audio"].includes(e)&&"autoplay"===A(t)}function we(t,n,e){try{if("string"==typeof n){if(t.classList.contains(n))return!0}else if(n)for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}if(e)return t.matches(e)}catch(r){}return!1}function Se(t,n,e){if(!t)return!1;if(!n)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!e&&Se(re.parentNode(t),n,e);for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}return!!e&&Se(re.parentNode(t),n,e)}function H(e,t,n,i){let r;if($(e)){if(r=e,"*"===n)return!0;if(!re.childNodes(r).length)return!1}else{if(null===re.parentElement(e))return!1;r=re.parentElement(e)}try{if("string"==typeof t){if(i){if(r.closest("."+t))return!0}else if(r.classList.contains(t))return!0}else if(Se(r,t,i))return!0;if(n)if(i){if(r.closest(n))return!0}else if(r.matches(n))return!0}catch(o){}return!1}function Ee(e,t){var n,{needsMask:i,maskTextFn:r,maskInputOptions:o,maskInputFn:a,rootId:s,cssCaptured:d}=t,u=e.parentNode&&e.parentNode.tagName;let c="";var l="STYLE"===u||void 0,p="SCRIPT"===u||void 0,u="TEXTAREA"===u||void 0;if(l&&c){try{e.nextSibling||e.previousSibling||null!=(n=e.parentNode.sheet)&&n.cssRules&&(c=O(e.parentNode.sheet))}catch(h){console.warn("Cannot get CSS styles from text's parentNode. Error: "+h,e)}c=f(c,ve(t.doc))}return p?c="SCRIPT_PLACEHOLDER":d||(c=re.textContent(e),l&&(c=c&&f(c,ve(t.doc)))),!l&&!p&&c&&i&&(c=r?r(c,re.parentElement(e)):c.replace(/[\S]/g,"*")),u&&c&&o.textarea&&(c=a?a(c,e.parentNode):c.replace(/[\S]/g,"*")),{type:D.Text,textContent:c||"",rootId:s}}function Ie(t,e){const{doc:n,blockClass:i,blockSelector:r,hideSelector:o,inlineStylesheet:a,maskInputOptions:s={},maskInputFn:d,dataURLOptions:u={},inlineImages:c,recordCanvas:l,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:f,needsMask:g}=e;var e=we(t,i,r),m=!(!e||!o)&&we(t,"",o),v=(E=t)instanceof HTMLFormElement?"form":(E=A(E.tagName),L.test(E)?"div":E);let y={};var b,w=t.attributes.length;for(let e=0;e<w;e++){var S=t.attributes[e];be(v,S.name,S.value)||(y[S.name]=ye(n,v,A(S.name),S.value))}if("link"===v&&a){var E=Array.from(n.styleSheets).find(e=>e.href===t.href);let e=null;(e=E?O(E):e)&&(delete y.rel,delete y.href,y._cssText=e)}if("style"===v&&t.sheet){let e=O(t.sheet);e&&(1<t.childNodes.length&&(e=M(e,t)),y._cssText=e)}if(["input","textarea","select"].includes(v)&&(E=t.value,b=t.checked,"radio"!==y.type&&"checkbox"!==y.type&&"submit"!==y.type&&"button"!==y.type&&E?y.value=J({element:t,type:Y(t),tagName:v,value:E,maskInputOptions:s,maskInputFn:d,needsMask:g}):b&&(y.checked=b)),"option"===v&&(t.selected&&!s.select?y.selected=!0:delete y.selected),"dialog"===v&&t.open&&(y.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),"canvas"===v&&l&&("2d"===t.__context?function(n){var i=n.getContext("2d");if(i)for(let t=0;t<n.width;t+=50)for(let e=0;e<n.height;e+=50){var r=i.getImageData,r=N in r?r[N]:r;if(new Uint32Array(r.call(i,t,e,Math.min(50,n.width-t),Math.min(50,n.height-e)).data.buffer).some(e=>0!==e))return}return 1}(t)||(y.rr_dataURL=t.toDataURL(u.type,u.quality)):"__context"in t||(E=t.toDataURL(u.type,u.quality),(b=n.createElement("canvas")).width=t.width,b.height=t.height,E!==b.toDataURL(u.type,u.quality)&&(y.rr_dataURL=E))),"img"===v&&c){k||(k=n.createElement("canvas"),ee=k.getContext("2d"));const C=t,T=C.currentSrc||C.getAttribute("src")||"<unknown-src>",x=C.crossOrigin,R=()=>{C.removeEventListener("load",R);try{k.width=C.naturalWidth,k.height=C.naturalHeight,ee.drawImage(C,0,0),y.rr_dataURL=k.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==C.crossOrigin)return C.crossOrigin="anonymous",void(C.complete&&0!==C.naturalWidth?R():C.addEventListener("load",R));console.warn(`Cannot inline img src=${T}! Error: `+e)}"anonymous"===C.crossOrigin&&(x?y.crossOrigin=x:C.removeAttribute("crossorigin"))};C.complete&&0!==C.naturalWidth?R():C.addEventListener("load",R)}["audio","video"].includes(v)&&((b=y).rr_mediaState=t.paused?"paused":"played",b.rr_mediaCurrentTime=t.currentTime,b.rr_mediaPlaybackRate=t.playbackRate,b.rr_mediaMuted=t.muted,b.rr_mediaLoop=t.loop,b.rr_mediaVolume=t.volume),h||(t.scrollLeft&&(y.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(y.rr_scrollTop=t.scrollTop)),m?y={"class":y["class"],rr_display:"none"}:e&&({width:E,height:b}=t.getBoundingClientRect(),y={"class":y["class"],rr_width:E+"px",rr_height:b+"px"}),"iframe"!==v||p(y.src)||(t.contentDocument||(y.rr_src=y.src),delete y.src);let I;try{customElements.get(v)&&(I=!0)}catch(_){}return{type:D.Element,tagName:v,attributes:y,childNodes:[],isSVG:(m=t,Boolean("svg"===m.tagName||m.ownerSVGElement)||void 0),needBlock:e,rootId:f,isCustom:I}}function z(e){return null==e?"":e.toLowerCase()}function _e(e){return!0===e||"all"===e?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===e,headMetaDescKeywords:"all"===e,headTitleMutations:"all"===e}:e||{}}function oe(t,e){const{doc:n,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,maskTextClass:s,maskTextSelector:d,skipChild:u=!1,inlineStylesheet:c=!0,maskInputOptions:l={},maskTextFn:p,maskInputFn:h,slimDOMOptions:f,dataURLOptions:g={},inlineImages:m=!1,recordCanvas:v=!1,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:E=5e3,keepIframeSrcFn:I=()=>!1,newlyAddedElement:_=!1,cssCaptured:C=!1}=e;let T=e["needsMask"],{preserveWhiteSpace:x=!0}=e;T||(e=void 0===T,T=H(t,s,d,e));e=function(e,t){var n,{doc:i,mirror:t,blockClass:r,blockSelector:o,hideSelector:a,needsMask:s,inlineStylesheet:d,maskInputOptions:u={},maskTextFn:c,maskInputFn:l,dataURLOptions:p={},inlineImages:h,recordCanvas:f,keepIframeSrcFn:g,newlyAddedElement:m=!1,cssCaptured:v=!1}=t,y=(n=i,!(t=t).hasNode(n)||1===(n=t.getId(n))?void 0:n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:D.Document,childNodes:[],compatMode:e.compatMode}:{type:D.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:D.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return Ie(e,{doc:i,blockClass:r,blockSelector:o,hideSelector:a,inlineStylesheet:d,maskInputOptions:u,maskInputFn:l,dataURLOptions:p,inlineImages:h,recordCanvas:f,keepIframeSrcFn:g,newlyAddedElement:m,rootId:y,needsMask:s});case e.TEXT_NODE:return Ee(e,{doc:i,needsMask:s,maskTextFn:c,maskInputOptions:u,maskInputFn:l,rootId:y,cssCaptured:v});case e.CDATA_SECTION_NODE:return{type:D.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:D.Comment,textContent:re.textContent(e)||"",rootId:y};default:return!1}}(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,needsMask:T,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:h,dataURLOptions:g,inlineImages:m,recordCanvas:v,keepIframeSrcFn:I,newlyAddedElement:_,cssCaptured:C});if(!e)return console.warn(t,"not serialized"),null;let R;R=i.hasNode(t)?i.getId(t):function(e,t){if(t.comment&&e.type===D.Comment)return 1;if(e.type===D.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===X(e.attributes.href)))return 1;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(z(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===z(e.attributes.name)||"icon"===z(e.attributes.rel)||"apple-touch-icon"===z(e.attributes.rel)||"shortcut icon"===z(e.attributes.rel))))return 1;if("meta"===e.tagName){if(t.headMetaDescKeywords&&z(e.attributes.name).match(/^description|keywords$/))return 1;if(t.headMetaSocial&&(z(e.attributes.property).match(/^(og|twitter|fb):/)||z(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===z(e.attributes.name)))return 1;if(t.headMetaRobots&&("robots"===z(e.attributes.name)||"googlebot"===z(e.attributes.name)||"bingbot"===z(e.attributes.name)))return 1;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return 1;if(t.headMetaAuthorship&&("author"===z(e.attributes.name)||"generator"===z(e.attributes.name)||"framework"===z(e.attributes.name)||"publisher"===z(e.attributes.name)||"progid"===z(e.attributes.name)||z(e.attributes.property).match(/^article:/)||z(e.attributes.property).match(/^product:/)))return 1;if(t.headMetaVerification&&("google-site-verification"===z(e.attributes.name)||"yandex-verification"===z(e.attributes.name)||"csrf-token"===z(e.attributes.name)||"p:domain_verify"===z(e.attributes.name)||"verify-v1"===z(e.attributes.name)||"verification"===z(e.attributes.name)||"shopify-checkout-api-token"===z(e.attributes.name)))return 1}}}(e,f)||!x&&e.type===D.Text&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?Q:Z++;var A=Object.assign(e,{id:R});if(i.add(t,A),R===Q)return null;y&&y(t);let k=!u;if(A.type===D.Element&&(k=k&&!A.needBlock,delete A.needBlock,e=re.shadowRoot(t))&&G(e)&&(A.isShadowHost=!0),(A.type===D.Document||A.type===D.Element)&&k){f.headWhitespace&&A.type===D.Element&&"head"===A.tagName&&(x=!1);var O={doc:n,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,needsMask:T,maskTextClass:s,maskTextSelector:d,skipChild:u,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:h,slimDOMOptions:f,dataURLOptions:g,inlineImages:m,recordCanvas:v,preserveWhiteSpace:x,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:I,cssCaptured:!1};if(A.type!==D.Element||"textarea"!==A.tagName||void 0===A.attributes.value){A.type===D.Element&&void 0!==A.attributes._cssText&&"string"==typeof A.attributes._cssText&&(O.cssCaptured=!0);for(const L of Array.from(re.childNodes(t))){var N=oe(L,O);N&&A.childNodes.push(N)}}let e=null;if($(t)&&(e=re.shadowRoot(t)))for(const P of Array.from(re.childNodes(e))){var M=oe(P,O);M&&(G(e)&&(M.isShadow=!0),A.childNodes.push(M))}}e=re.parentNode(t);return e&&U(e)&&G(e)&&(A.isShadow=!0),A.type!==D.Element||"iframe"!==A.tagName||we(t,r,o)||function(n,i,r){var o=n.contentWindow;if(o){let e=!1,t;try{t=o.document.readyState}catch(a){return}if("complete"!==t){const s=B(()=>{e||(i(),e=!0)},r);void n.addEventListener("load",()=>{clearTimeout$1(s),e=!0,i()})}else{r="about:blank";if((n.src===r||n.src!==r&&o.location.href!==r)&&"complete"===t)return B(i,0),n.addEventListener("load",i);n.addEventListener("load",i)}}}(t,()=>{var e=t.contentDocument;e&&b&&(e=oe(e,{doc:e,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,needsMask:T,maskTextClass:s,maskTextSelector:d,skipChild:!1,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:h,slimDOMOptions:f,dataURLOptions:g,inlineImages:m,recordCanvas:v,preserveWhiteSpace:x,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:I}))&&b(t,e)},w),A.type===D.Element&&"link"===A.tagName&&"string"==typeof A.attributes.rel&&("stylesheet"===A.attributes.rel||"preload"===A.attributes.rel&&"string"==typeof A.attributes.href&&"css"===X(A.attributes.href))&&function(e,t,n){let i=!1,r;try{r=e.sheet}catch(o){return}if(!r){const a=B(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout$1(a),i=!0,t()})}}(t,()=>{var e;S&&(e=oe(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,needsMask:T,maskTextClass:s,maskTextSelector:d,skipChild:!1,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:h,slimDOMOptions:f,dataURLOptions:g,inlineImages:m,recordCanvas:v,preserveWhiteSpace:x,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:I}))&&S(t,e)},E),A}function ae(e,t,n=document){const i={capture:!0,passive:!0};return re.addEventListener(n,e,t,i),()=>re.removeEventListener(n,e,t,i)}const i="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";var Ce={map:{},getId(){return console.error(i),-1},getNode(){return console.error(i),null},removeNodeFromMap(){console.error(i)},has(){return console.error(i),!1},reset(){console.error(i)}};function j(r,o,a={}){let s=null,d=0;return function(...e){var t=Date.now(),n=(d||!1!==a.leading||(d=t),o-(t-d));const i=this;n<=0||o<n?(s&&(clearTimeout$1(s),s=null),d=t,r.apply(i,e)):s||!1===a.trailing||(s=B(()=>{d=!1===a.leading?0:Date.now(),s=null,r.apply(i,e)},n))}}function Te(e,t,n,i,r=window){const o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(e){B(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>Te(e,t,o||{},!0)}function xe(e){var t,n=e.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:n.documentElement.scrollLeft||(null==n?void 0:n.body)&&(null==(t=re.parentElement(n.body))?void 0:t.scrollLeft)||(null==(t=null==n?void 0:n.body)?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==n?void 0:n.documentElement.scrollTop)||(null==n?void 0:n.body)&&(null==(t=re.parentElement(n.body))?void 0:t.scrollTop)||(null==(e=null==n?void 0:n.body)?void 0:e.scrollTop)||0}}function Re(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ae(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ke(e){return e?e.nodeType===e.ELEMENT_NODE?e:re.parentElement(e):null}function q(e,t,n,i){if(e){e=ke(e);if(e){try{if("string"==typeof t){if(e.classList.contains(t))return!0;if(i&&null!==e.closest("."+t))return!0}else if(Se(e,t,i))return!0}catch(r){}if(n){if(e.matches(n))return!0;if(i&&null!==e.closest(n))return!0}}}return!1}function Oe(e,t){return-1!==t.getId(e)}function Ne(e,t,n){return"TITLE"===e.tagName&&n.headTitleMutations||t.getId(e)===Q}function Me(e,t){var n;return!U(e)&&(n=t.getId(e),!t.has(n)||(!(n=re.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||Me(n,t)))}function Le(e){return Boolean(e.changedTouches)}function Pe(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function De(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Fe(e){return e&&(!1&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(re.shadowRoot(e)))}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Ce=new(n())(Ce,{get(e,t,n){return"map"===t&&console.error(i),Reflect.get(e,t,n)}}));class Ue{constructor(){s(this,"id",1),s(this,"styleIDMap",new WeakMap),s(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Ge(e){var t;let n=null;return n="getRootNode"in e&&(null==(t=re.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&re.host(re.getRootNode(e))?re.host(re.getRootNode(e)):n}function Be(e){var t=re.ownerDocument(e);return!!t&&(e=function(e){let t=e;for(var n;n=Ge(t);)t=n;return t}(e),re.contains(t,e))}function He(e){var t=re.ownerDocument(e);return t&&(re.contains(t,e)||Be(e))}const ze=(e,t)=>e+"@"+t;class je{constructor(){s(this,"frozen",!1),s(this,"locked",!1),s(this,"texts",[]),s(this,"attributes",[]),s(this,"attributeMap",new WeakMap),s(this,"removes",[]),s(this,"mapRemoves",[]),s(this,"movedMap",{}),s(this,"addedSet",new Set),s(this,"movedSet",new Set),s(this,"droppedSet",new Set),s(this,"removesSubTreeCache",new Set),s(this,"mutationCb"),s(this,"blockClass"),s(this,"blockSelector"),s(this,"hideSelector"),s(this,"maskTextClass"),s(this,"maskTextSelector"),s(this,"inlineStylesheet"),s(this,"maskInputOptions"),s(this,"maskTextFn"),s(this,"maskInputFn"),s(this,"keepIframeSrcFn"),s(this,"recordCanvas"),s(this,"inlineImages"),s(this,"slimDOMOptions"),s(this,"dataURLOptions"),s(this,"doc"),s(this,"mirror"),s(this,"iframeManager"),s(this,"stylesheetManager"),s(this,"shadowDomManager"),s(this,"canvasManager"),s(this,"processedNodeManager"),s(this,"unattachedDoc"),s(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),s(this,"emit",()=>{if(!this.frozen&&!this.locked){var a=[];const h=new Set;for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const f of this.movedSet){var s=re.parentNode(f);this.removesSubTreeCache.has(s)&&!this.movedSet.has(s)||this.addedSet.add(f)}let n=null,i=null,r=-1,o=null,e=!1;var d,u=new Set,c=this.addedSet.values();let t=c.next();for(;this.addedSet.size;){if(null!==n&&this.addedSet.has(re.previousSibling(n)))o=n,n=re.previousSibling(n);else{for(this.addedSet.has(t.value)||(t=c.next()),n=t.value;;){if(i=re.parentNode(n),!this.addedSet.has(i))break;n=i}if(u.has(i))i=null;else if(i){if(He(i)?(e=Ve(this.droppedSet,i)||this.removesSubTreeCache.has(i))&&Ve(this.movedSet,n)&&(e=!1):e=!0,this.addedSet.has(re.lastChild(i)))n=re.lastChild(i),o=null;else for(;;){if(o=re.nextSibling(n),!this.addedSet.has(o))break;n=o}-1===(r=U(i)?this.mirror.getId(Ge(n)):this.mirror.getId(i))&&i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(l=re.host(i),r=this.mirror.getId(l))}}if(this.addedSet["delete"](n),i&&-1!==r)if(e)this.droppedSet.add(n);else{let e=!1;if(n.nodeType===Node.TEXT_NODE){var l=i.tagName;if("TEXTAREA"===l)continue;"STYLE"===l&&h.has(r)&&(e=!0)}let t=o?this.mirror.getId(o):null;for(;t===Q;)o=o&&re.nextSibling(o),t=o&&this.mirror.getId(o);-1===t?(console.warn("Couldn't record new node. Couldn't find mirror id for nextSibling:",o),n=null):(d=oe(n,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,hideSelector:this.hideSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Pe(e,this.mirror)&&this.iframeManager.addIframe(e),De(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Fe(n)&&this.shadowDomManager.addShadowRoot(re.shadowRoot(n),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},cssCaptured:e}))&&(a.push({parentId:r,nextId:t,node:d}),h.add(d.id))}else u.add(n)}var p={texts:this.texts.map(e=>{var t=e.node,n=re.parentNode(t);return n&&"TEXTAREA"===n.tagName&&this.genTextAreaValueMutation(n),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!h.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{var t,n,i=e["attributes"];return"string"==typeof i.style&&(t=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles),t.length<i.style.length)&&(t+n).split("var(").length===i.style.split("var(").length&&(i.style=e.styleDiff),{id:this.mirror.getId(e.node),attributes:i}}).filter(e=>!h.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:a};(p.texts.length||p.attributes.length||p.removes.length||p.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(p))}}),s(this,"bufferBelongsToIframe",e=>this.doc===e.contentDocument),s(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));var n=Array.from(re.childNodes(e),e=>re.textContent(e)||"").join(""),i=H(e,this.maskTextClass,this.maskTextSelector,!0);t.attributes.value=J({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:Y(e),value:n,maskInputFn:this.maskInputFn,needsMask:i})}),s(this,"processMutation",i=>{if(!Ne(i.target,this.mirror,this.slimDOMOptions))switch(i.type){case"characterData":var r=re.textContent(i.target);q(i.target,this.blockClass,this.blockSelector,!1)||r===i.oldValue||this.texts.push({value:H(i.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,ke(i.target)):r.replace(/[\S]/g,"*"):r,node:i.target});break;case"attributes":{var o,a,s=i.target,r=A(s.tagName);let e=i.attributeName,t=i.target.getAttribute(e);if("value"===e&&(o=Y(s),a=H(i.target,this.maskTextClass,this.maskTextSelector,!0),t=J({element:s,maskInputOptions:this.maskInputOptions,tagName:s.tagName,type:o,value:t,maskInputFn:this.maskInputFn,needsMask:a})),q(i.target,this.blockClass,this.blockSelector,!1)||t===i.oldValue)return;let n=this.attributeMap.get(i.target);if("iframe"===r&&"src"===e&&!this.keepIframeSrcFn(t)){if(s.contentDocument)return;e="rr_src"}if(n||(n={node:i.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(i.target,n)),"type"===e&&"input"===r&&"password"===(i.oldValue||"").toLowerCase()&&s.setAttribute("data-rr-is-password","true"),!be(r,e))if(n.attributes[e]=ye(this.doc,r,A(e),t),"style"===e){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(l){this.unattachedDoc=this.doc}var d=this.unattachedDoc.createElement("span");i.oldValue&&(d.style.cssText=i.oldValue);for(const p of Array.from(s.style)){var u=s.style.getPropertyValue(p),c=s.style.getPropertyPriority(p);u!==d.style.getPropertyValue(p)||c!==d.style.getPropertyPriority(p)?n.styleDiff[p]=""===c?u:[u,c]:n._unchangedStyles[p]=[u,c]}for(const h of Array.from(d.style))""===s.style.getPropertyValue(h)&&(n.styleDiff[h]=!1)}else"open"===e&&"DIALOG"===s.tagName&&(s.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal");break}case"childList":q(i.target,this.blockClass,this.blockSelector,!0)||("TEXTAREA"!==i.target.tagName?(i.addedNodes.forEach(e=>this.genAdds(e,i.target)),i.removedNodes.forEach(e=>{var t=this.mirror.getId(e),n=U(i.target)?this.mirror.getId(re.host(i.target)):this.mirror.getId(i.target);q(i.target,this.blockClass,this.blockSelector,!1)||Ne(e,this.mirror,this.slimDOMOptions)||!Oe(e,this.mirror)||(this.addedSet.has(e)?(qe(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(i.target)&&-1===t||Me(i.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[ze(t,n)]?qe(this.movedSet,e):(this.removes.push({parentId:n,id:t,isShadow:!(!U(i.target)||!G(i.target))||void 0}),We(e,this.removesSubTreeCache))),this.mapRemoves.push(e))})):this.genTextAreaValueMutation(i.target))}}),s(this,"genAdds",(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(Ne(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let e=null;(e=n&&this.mirror.hasNode(n)?this.mirror.getId(n):e)&&-1!==e&&(this.movedMap[ze(this.mirror.getId(t),e)]=!0)}else this.addedSet.add(t),this.droppedSet["delete"](t);q(t,this.blockClass,this.blockSelector,!1)||(re.childNodes(t).forEach(e=>this.genAdds(e)),Fe(t)&&re.childNodes(re.shadowRoot(t)).forEach(e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","hideSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(e=>{this[e]=t[e]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function qe(t,e){t["delete"](e),re.childNodes(e).forEach(e=>qe(t,e))}function We(e,t){const n=[e];for(;n.length;){var i=n.pop();t.has(i)||(t.add(i),re.childNodes(i).forEach(e=>n.push(e)))}}function Ve(e,t){return 0!==e.size&&function i(e,t){if(e.has(t))return!0;const n=re.parentNode(t);if(!n)return!1;return i(e,n)}(e,t)}let se;const de=n=>{return se?(...e)=>{try{return n(...e)}catch(t){if(!se||!0!==se(t))throw t}}:n},ue=[],W=n();function V(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Ke(e,t){var n=new je,[e,i]=(ue.push(n),n.init(e),b()),n=new e(de(n.processMutations.bind(n)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[n,i]}function $e({mouseInteractionCb:a,doc:i,mirror:s,blockClass:d,blockSelector:u,sampling:e}){if(!1===e.mouseInteraction)return()=>{};const t=!0===e.mouseInteraction||void 0===e.mouseInteraction?{}:e.mouseInteraction,r=[];let c=null;return Object.keys(l).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==t[e]).forEach(e=>{let t=A(e);o=e;var o,n=n=>{var i=V(n);if(!q(i,d,u,!0)){let e=null,t=o;if("pointerType"in n){switch(n.pointerType){case"mouse":e=p.Mouse;break;case"touch":e=p.Touch;break;case"pen":e=p.Pen}e===p.Touch?l[o]===l.MouseDown?t="TouchStart":l[o]===l.MouseUp&&(t="TouchEnd"):(e,p.Pen)}else Le(n)&&(e=p.Touch);null!==e?(c=e,(t.startsWith("Touch")&&e===p.Touch||t.startsWith("Mouse")&&e===p.Mouse)&&(e=null)):l[o]===l.Click&&(e=c,c=null);var r,n=Le(n)?n.changedTouches[0]:n;n&&(i=s.getId(i),{clientX:n,clientY:r}=n,de(a)({type:l[t],id:i,x:n,y:r,...null!==e&&{pointerType:e}}))}};if(window.PointerEvent)switch(l[e]){case l.MouseDown:case l.MouseUp:t=t.replace("mouse","pointer");break;case l.TouchStart:case l.TouchEnd:return}r.push(ae(t,n,i))}),de(()=>{r.forEach(e=>e())})}function Je({scrollCb:i,doc:r,mirror:o,blockClass:a,blockSelector:s,sampling:e}){return ae("scroll",de(j(de(e=>{var t,n,e=V(e);e&&!q(e,a,s,!0)&&(t=o.getId(e),e===r&&r.defaultView?(n=xe(r.defaultView),i({id:t,x:n.left,y:n.top})):i({id:t,x:e.scrollLeft,y:e.scrollTop}))}),e.scroll||100)),r)}const Ye=["INPUT","TEXTAREA","SELECT"],Xe=new WeakMap;function Ze(e){return function i(e,t){var n;return tt("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||tt("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||tt("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||tt("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?(n=Array.from(e.parentRule.cssRules).indexOf(e),t.unshift(n),i(e.parentRule,t)):(e.parentStyleSheet&&(n=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(n)),t)}(e,[])}function K(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function Qe({mirror:e,stylesheetManager:i},t){let r=null;r="#document"===t.nodeName?e.getId(t):e.getId(re.host(t));e="#document"===t.nodeName?null==(e=t.defaultView)?void 0:e.Document:null==(e=null==(e=t.ownerDocument)?void 0:e.defaultView)?void 0:e.ShadowRoot;const o=null!=e&&e.prototype?Object.getOwnPropertyDescriptor(null==e?void 0:e.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&e&&o?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){var e;return null==(e=o.get)?void 0:e.call(this)},set(e){var t=null==(t=o.set)?void 0:t.call(this,e);if(null!==r&&-1!==r)try{i.adoptStyleSheets(e,r)}catch(n){}return t}}),de(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function et(e,t={}){var o,n=e.doc.defaultView;if(!n)return()=>{};{var i=e,r=t;const{mutationCb:S,mousemoveCb:E,mouseInteractionCb:I,scrollCb:_,viewportResizeCb:C,inputCb:T,mediaInteractionCb:x,styleSheetRuleCb:R,styleDeclarationCb:A,canvasMutationCb:k,fontCb:O,selectionCb:N,customElementCb:M}=i;i.mutationCb=(...e)=>{r.mutation&&r.mutation(...e),S(...e)},i.mousemoveCb=(...e)=>{r.mousemove&&r.mousemove(...e),E(...e)},i.mouseInteractionCb=(...e)=>{r.mouseInteraction&&r.mouseInteraction(...e),I(...e)},i.scrollCb=(...e)=>{r.scroll&&r.scroll(...e),_(...e)},i.viewportResizeCb=(...e)=>{r.viewportResize&&r.viewportResize(...e),C(...e)},i.inputCb=(...e)=>{r.input&&r.input(...e),T(...e)},i.mediaInteractionCb=(...e)=>{r.mediaInteaction&&r.mediaInteaction(...e),x(...e)},i.styleSheetRuleCb=(...e)=>{r.styleSheetRule&&r.styleSheetRule(...e),R(...e)},i.styleDeclarationCb=(...e)=>{r.styleDeclaration&&r.styleDeclaration(...e),A(...e)},i.canvasMutationCb=(...e)=>{r.canvasMutation&&r.canvasMutation(...e),k(...e)},i.fontCb=(...e)=>{r.font&&r.font(...e),O(...e)},i.selectionCb=(...e)=>{r.selection&&r.selection(...e),N(...e)},i.customElementCb=(...e)=>{r.customElement&&r.customElement(...e),M(...e)}}let a,s=()=>{};e.recordDOM&&([a,s]=Ke(e,e.doc));const d=function({mousemoveCb:n,sampling:e,doc:t,mirror:r}){if(!1===e.mousemove)return()=>{};var i="number"==typeof e.mousemove?e.mousemove:50,e="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let o=[],a;const s=j(de(e=>{const t=Date.now()-a;n(o.map(e=>(e.timeOffset-=t,e)),e),o=[],a=null}),e),d=[ae("mousemove",e=de(j(de(e=>{var t=V(e),{clientX:n,clientY:i}=Le(e)?e.changedTouches[0]:e;a=a||ie(),o.push({x:n,y:i,id:r.getId(t),timeOffset:ie()-a}),s("undefined"!=typeof DragEvent&&e instanceof DragEvent?ne.Drag:e instanceof MouseEvent?ne.MouseMove:ne.TouchMove)}),i,{trailing:!1})),t),ae("touchmove",e,t),ae("drag",e,t)];return de(()=>{d.forEach(e=>e())})}(e),u=$e(e),c=Je(e),l=function({viewportResizeCb:n},{win:e}){let i=-1,r=-1;return ae("resize",de(j(de(()=>{var e=Re(),t=Ae();i===e&&r===t||(n({width:Number(t),height:Number(e)}),i=e,r=t)}),200)),e)}(e,{win:n}),p=function({inputCb:i,doc:s,mirror:r,blockClass:e,blockSelector:n,ignoreClass:d,ignoreSelector:u,maskInputOptions:c,maskInputFn:l,sampling:t,userTriggeredOnInput:p,maskTextClass:h,maskTextSelector:f}){function o(t){let i=V(t);var t=t.isTrusted,r=i&&i.tagName;if((i=i&&"OPTION"===r?re.parentElement(i):i)&&r&&!(Ye.indexOf(r)<0)&&!q(i,e,n,!0)&&!(i.classList.contains(d)||u&&i.matches(u))){let e=i.value,n=!1;var o=Y(i)||"",a=H(i,h,f,!0),r=("radio"===o||"checkbox"===o?n=i.checked:(c[r.toLowerCase()]||c[o]||a)&&(e=J({element:i,maskInputOptions:c,tagName:r,type:o,value:e,maskInputFn:l,needsMask:a})),g(i,p?{text:e,isChecked:n,userTriggered:t}:{text:e,isChecked:n}),i.name);"radio"===o&&r&&n&&s.querySelectorAll(`input[type="radio"][name="${r}"]`).forEach(e=>{var t;e!==i&&(t=e.value,g(e,p?{text:t,isChecked:!n,userTriggered:!1}:{text:t,isChecked:!n}))})}}function g(e,t){var n=Xe.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(Xe.set(e,t),n=r.getId(e),de(i)({...t,id:n}))}var a;const m=("last"===t.input?["change"]:["input","change"]).map(e=>ae(e,de(o),s)),v=s.defaultView;return v?(t=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),a=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]],t&&t.set&&m.push(...a.map(e=>Te(e[0],e[1],{set(){de(o)({target:this,isTrusted:!1})}},!1,v))),de(()=>{m.forEach(e=>e())})):()=>{m.forEach(e=>e())}}(e),h=function({mediaInteractionCb:s,blockClass:d,blockSelector:u,mirror:c,sampling:e,doc:t}){var n=de(a=>j(de(e=>{var t,n,i,r,o,e=V(e);e&&!q(e,d,u,!0)&&({currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}=e,s({type:a,id:c.getId(e),currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}))}),e.media||500));const i=[ae("play",n(P.Play),t),ae("pause",n(P.Pause),t),ae("seeked",n(P.Seeked),t),ae("volumechange",n(P.VolumeChange),t),ae("ratechange",n(P.RateChange),t)];return de(()=>{i.forEach(e=>e())})}(e);let f=()=>{},g=()=>{},m=()=>{},v=()=>{};e.recordDOM&&(f=function({styleSheetRuleCb:s,mirror:d,stylesheetManager:u},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const e=i.CSSStyleSheet.prototype.insertRule,t=(i.CSSStyleSheet.prototype.insertRule=new W(e,{apply:de((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=K(t,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:r}]}),e.apply(t,n)})}),i.CSSStyleSheet.prototype.addRule=function(e,t,n=this.cssRules.length){return i.CSSStyleSheet.prototype.insertRule.apply(this,[e+` { ${t} }`,n])},i.CSSStyleSheet.prototype.deleteRule);i.CSSStyleSheet.prototype.deleteRule=new W(t,{apply:de((e,t,n)=>{var[i]=n,{id:r,styleId:o}=K(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:i}]}),e.apply(t,n)})}),i.CSSStyleSheet.prototype.removeRule=function(e){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[e])};let n;i.CSSStyleSheet.prototype.replace&&(n=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new W(n,{apply:de((e,t,n)=>{var[i]=n,{id:r,styleId:o}=K(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replace:i}),e.apply(t,n)})}));let r;i.CSSStyleSheet.prototype.replaceSync&&(r=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new W(r,{apply:de((e,t,n)=>{var[i]=n,{id:r,styleId:o}=K(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replaceSync:i}),e.apply(t,n)})}));const o={},a=(nt("CSSGroupingRule")?o.CSSGroupingRule=i.CSSGroupingRule:(nt("CSSMediaRule")&&(o.CSSMediaRule=i.CSSMediaRule),nt("CSSConditionRule")&&(o.CSSConditionRule=i.CSSConditionRule),nt("CSSSupportsRule")&&(o.CSSSupportsRule=i.CSSSupportsRule)),{});return Object.entries(o).forEach(([e,t])=>{a[e]={insertRule:t.prototype.insertRule,deleteRule:t.prototype.deleteRule},t.prototype.insertRule=new W(a[e].insertRule,{apply:de((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=K(t.parentStyleSheet,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:[...Ze(t),r||0]}]}),e.apply(t,n)})}),t.prototype.deleteRule=new W(a[e].deleteRule,{apply:de((e,t,n)=>{var[i]=n,{id:r,styleId:o}=K(t.parentStyleSheet,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:[...Ze(t),i]}]}),e.apply(t,n)})})}),de(()=>{i.CSSStyleSheet.prototype.insertRule=e,i.CSSStyleSheet.prototype.deleteRule=t,n&&(i.CSSStyleSheet.prototype.replace=n),r&&(i.CSSStyleSheet.prototype.replaceSync=r),Object.entries(o).forEach(([e,t])=>{t.prototype.insertRule=a[e].insertRule,t.prototype.deleteRule=a[e].deleteRule})})}(e,{win:n}),g=Qe(e,e.doc),m=function({styleDeclarationCb:d,mirror:u,ignoreCSSAttributes:c,stylesheetManager:l},{win:e}){const p=e.CSSStyleDeclaration.prototype.setProperty,a=(e.CSSStyleDeclaration.prototype.setProperty=new W(p,{apply:de((e,t,n)=>{var i,r,[o,a,s]=n;return c.has(o)?p.apply(t,[o,a,s]):({id:i,styleId:r}=K(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,set:{property:o,value:a,priority:s},index:Ze(t.parentRule)}),e.apply(t,n))})}),e.CSSStyleDeclaration.prototype.removeProperty);return e.CSSStyleDeclaration.prototype.removeProperty=new W(a,{apply:de((e,t,n)=>{var i,r,[o]=n;return c.has(o)?a.apply(t,[o]):({id:i,styleId:r}=K(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,remove:{property:o},index:Ze(t.parentRule)}),e.apply(t,n))})}),de(()=>{e.CSSStyleDeclaration.prototype.setProperty=p,e.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:n}),e.collectFonts)&&(v=function({fontCb:n,doc:e}){const t=e.defaultView;if(!t)return()=>{};const i=[],r=new WeakMap,o=t.FontFace;return t.FontFace=function(e,t,n){var i=new o(e,t,n);return r.set(i,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i},e=F(e.fonts,"add",function(e){return function(t){return B(de(()=>{var e=r.get(t);e&&(n(e),r["delete"](t))}),0),e.apply(this,[t])}}),i.push(()=>{t.FontFace=o}),i.push(e),de(()=>{i.forEach(e=>e())})}(e));const y=function(e){const{doc:d,mirror:u,blockClass:c,blockSelector:l,selectionCb:p}=e;let h=!0;return(e=de(()=>{var t=d.getSelection();if(!(!t||h&&null!=t&&t.isCollapsed)){h=t.isCollapsed||!1;var n=[],i=t.rangeCount||0;for(let e=0;e<i;e++){var{startContainer:r,startOffset:o,endContainer:a,endOffset:s}=t.getRangeAt(e);q(r,c,l,!0)||q(a,c,l,!0)||n.push({start:u.getId(r),startOffset:o,end:u.getId(a),endOffset:s})}p({ranges:n})}}))(),ae("selectionchange",e)}(e),b=({doc:t,customElementCb:o}=[e][0],(t=t.defaultView)&&t.customElements?F(t.customElements,"define",function(r){return function(e,t,n){try{o({define:{name:e}})}catch(i){console.warn("Custom element callback failed for "+e)}return r.apply(this,[e,t,n])}}):()=>{}),w=[];for(const L of e.plugins)w.push(L.observer(L.callback,n,L.options));return de(()=>{ue.forEach(e=>e.reset()),null!=a&&a.disconnect(),s(),d(),u(),c(),l(),p(),h(),f(),g(),m(),v(),y(),b(),w.forEach(e=>e())})}function tt(e){return"undefined"!=typeof window[e]}function nt(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class it{constructor(e){s(this,"iframeIdToRemoteIdMap",new WeakMap),s(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,n,i){n=n||this.getIdToRemoteIdMap(e),i=i||this.getRemoteIdToIdMap(e);let r=n.get(t);return r||(r=this.generateIdFn(),n.set(t,r),i.set(r,t)),r}getIds(t,e){const n=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return e.map(e=>this.getId(t,e,n,i))}getRemoteId(e,t,n){n=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map(e=>this.getRemoteId(t,e,n))}reset(e){e?(this.iframeIdToRemoteIdMap["delete"](e),this.iframeRemoteIdToIdMap["delete"](e)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class rt{constructor(e){s(this,"iframes",new WeakMap),s(this,"crossOriginIframeMap",new WeakMap),s(this,"crossOriginIframeMirror",new it(T)),s(this,"crossOriginIframeStyleMirror"),s(this,"crossOriginIframeRootIdMap",new WeakMap),s(this,"mirror"),s(this,"mutationCb"),s(this,"wrappedEmit"),s(this,"takeFullSnapshot"),s(this,"loadListener"),s(this,"pageHideListener"),s(this,"stylesheetManager"),s(this,"recordCrossOriginIframes"),s(this,"blockClass"),s(this,"blockSelector"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.takeFullSnapshot=e.takeFullSnapshot,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.blockClass=e.blockClass,this.blockSelector=e.blockSelector,this.crossOriginIframeStyleMirror=new it(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}setTakeFullSnapshot(e){this.takeFullSnapshot=e}addIframe(e){q(e,this.blockClass,this.blockSelector,!1)||(this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e),this.recordCrossOriginIframes&&!e.contentDocument&&e.contentWindow&&e.contentWindow.postMessage({type:"rrweb",origin:window.location.origin,snapshot:!0},"*"))}addLoadListener(e){this.loadListener=e}addPageHideListener(e){this.pageHideListener=e}attachIframe(t,e){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null!=(e=t.contentWindow)&&e.addEventListener("message",this.handleMessage.bind(this)),null!=(e=t.contentWindow))&&e.addEventListener("pagehide",()=>{var e;null!=(e=this.pageHideListener)&&e.call(this,t),this.mirror.removeNodeFromMap(t.contentDocument),this.crossOriginIframeMap["delete"](t.contentWindow)}),null!=(e=this.loadListener)&&e.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&0<t.contentDocument.adoptedStyleSheets.length&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(e){var t,n=e;"rrweb"===n.data.type&&n.origin===n.data.origin&&(t=e.source)&&(t==window.parent&&window!=window.parent&&e.data.snapshot?this.takeFullSnapshot():(t=this.crossOriginIframeMap.get(e.source))&&(e=this.transformCrossOriginEvent(t,n.data.event))&&this.wrappedEmit(e,n.data.isCheckout))}transformCrossOriginEvent(n,e){var t;switch(e.type){case te.FullSnapshot:this.crossOriginIframeMirror.reset(n),this.crossOriginIframeStyleMirror.reset(n),this.replaceIdOnNode(e.data.node,n);var i=e.data.node.id;return this.crossOriginIframeRootIdMap.set(n,i),this.patchRootIdOnNode(e.data.node,i),{timestamp:e.timestamp,type:te.IncrementalSnapshot,data:{source:ne.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case te.Meta:case te.Load:case te.DomContentLoaded:return!1;case te.Plugin:return e;case te.Custom:return this.replaceIds(e.data.payload,n,["id","parentId","previousId","nextId"]),e;case te.IncrementalSnapshot:switch(e.data.source){case ne.Mutation:return e.data.adds.forEach(e=>{this.replaceIds(e,n,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,n);var t=this.crossOriginIframeRootIdMap.get(n);t&&this.patchRootIdOnNode(e.node,t)}),e.data.removes.forEach(e=>{this.replaceIds(e,n,["parentId","id"])}),e.data.attributes.forEach(e=>{this.replaceIds(e,n,["id"])}),e.data.texts.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case ne.Drag:case ne.TouchMove:case ne.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case ne.ViewportResize:return!1;case ne.MediaInteraction:case ne.MouseInteraction:case ne.Scroll:case ne.CanvasMutation:case ne.Input:return this.replaceIds(e.data,n,["id"]),e;case ne.StyleSheetRule:case ne.StyleDeclaration:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleId"]),e;case ne.Font:return e;case ne.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,n,["start","end"])}),e;case ne.AdoptedStyleSheet:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleIds"]),null!=(t=e.data.styles)&&t.forEach(e=>{this.replaceStyleIds(e,n,["styleId"])}),e}}return!1}replace(e,t,n,i){for(const r of i)!Array.isArray(t[r])&&"number"!=typeof t[r]||(Array.isArray(t[r])?t[r]=e.getIds(n,t[r]):t[r]=e.getId(n,t[r]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===D.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class ot{constructor(e){s(this,"shadowDoms",new WeakSet),s(this,"mutationCb"),s(this,"scrollCb"),s(this,"bypassOptions"),s(this,"mirror"),s(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(G(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);const[n]=Ke({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(Je({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),B(()=>{e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(re.host(e))),this.restoreHandlers.push(Qe({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,i){const r=this;this.restoreHandlers.push(F(e.prototype,"attachShadow",function(n){return function(e){var e=n.call(this,e),t=re.shadowRoot(this);return t&&He(this)&&r.addShadowRoot(t,i),e}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",at="undefined"==typeof Uint8Array?[]:new Uint8Array(256),st=0;st<o.length;st++)at[o.charCodeAt(st)]=st;var dt,ut=function(e){for(var t=new Uint8Array(e),n=t.length,i="",r=0;r<n;r+=3)i=(i=(i=(i+=o[t[r]>>2])+o[(3&t[r])<<4|t[r+1]>>4])+o[(15&t[r+1])<<2|t[r+2]>>6])+o[63&t[r+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i};const ct=new Map;const lt=(t,n,i)=>{if(t&&(ht(t,n)||"object"==typeof t)){n=function(e,t){let n=ct.get(e);return n||(n=new Map,ct.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(i,t.constructor.name);let e=n.indexOf(t);return-1===e&&(e=n.length,n.push(t)),e}};const pt=(e,t,n)=>e.map(e=>function r(e,t,n){var i;return e instanceof Array?e.map(e=>r(e,t,n)):null===e?e:e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray?{rr_type:e.constructor.name,args:[Object.values(e)]}:e instanceof ArrayBuffer?{rr_type:e.constructor.name,base64:ut(e)}:e instanceof DataView?{rr_type:e.constructor.name,args:[r(e.buffer,t,n),e.byteOffset,e.byteLength]}:e instanceof HTMLImageElement?(i=e.src,{rr_type:e.constructor.name,src:i}):e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[r(e.data,t,n),e.width,e.height]}:ht(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:lt(e,t,n)}:e}(e,t,n)),ht=(t,n)=>{var e=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof n[e]);return Boolean(e.find(e=>t instanceof n[e]))};function ft(n,i,r,o){const e=[];var t;for(const s of Object.getOwnPropertyNames(i.CanvasRenderingContext2D.prototype))try{"function"==typeof i.CanvasRenderingContext2D.prototype[s]&&(t=F(i.CanvasRenderingContext2D.prototype,s,function(e){return function(...t){return q(this.canvas,r,o,!0)||B(()=>{var e=pt(t,i,this);n(this.canvas,{type:h["2D"],property:s,args:e})},0),e.apply(this,t)}}),e.push(t))}catch{var a=Te(i.CanvasRenderingContext2D.prototype,s,{set(e){n(this.canvas,{type:h["2D"],property:s,args:[e],setter:!0})}});e.push(a)}return()=>{e.forEach(e=>e())}}function gt(e,r,o,a){const t=[];try{var n=F(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(e,...t){var n;return q(this,r,o,!0)||(n="experimental-webgl"===(n=e)?"webgl":n,"__context"in this||(this.__context=n),a&&["webgl","webgl2"].includes(n)&&(t[0]&&"object"==typeof t[0]?(n=t[0]).preserveDrawingBuffer||(n.preserveDrawingBuffer=!0):t.splice(0,1,{preserveDrawingBuffer:!0}))),i.apply(this,[e,...t])}});t.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{t.forEach(e=>e())}}function mt(e,i,r,o,a,s){var t,n=[];for(const u of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))try{"function"==typeof e[u]&&(t=F(e,u,function(n){return function(...e){var t=n.apply(this,e);return lt(t,s,this),"tagName"in this.canvas&&!q(this.canvas,o,a,!0)&&(e=pt(e,s,this),e={type:i,property:u,args:e},r(this.canvas,e)),t}}),n.push(t))}catch{var d=Te(e,u,{set(e){r(this.canvas,{type:i,property:u,args:[e],setter:!0})}});n.push(d)}return n}function vt(e,t,n,i){const r=[];return"undefined"!=typeof t.WebGLRenderingContext&&r.push(...mt(t.WebGLRenderingContext.prototype,h.WebGL,e,n,i,t)),"undefined"!=typeof t.WebGL2RenderingContext&&r.push(...mt(t.WebGL2RenderingContext.prototype,h.WebGL2,e,n,i,t)),()=>{r.forEach(e=>e())}}function yt(e){return function(){return{onerror:null,onmessage:null}}}class bt{constructor(e){s(this,"pendingCanvasMutations",new Map),s(this,"rafStamps",{latestId:0,invokeId:null}),s(this,"mirror"),s(this,"mutationCb"),s(this,"resetObservers"),s(this,"frozen",!1),s(this,"locked",!1),s(this,"processMutation",(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});var{sampling:t="all",win:n,blockClass:i,blockSelector:r,recordCanvas:o,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===t&&this.initCanvasMutationObserver(n,i,r),o&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,i,r,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,n,i,r,o){const t=gt(n,i,r,!0),a=new Map,s=new yt,d=(s.onmessage=e=>{var t,n,i,r=e.data["id"];a.set(r,!1),"base64"in e.data&&({base64:e,type:t,width:n,height:i}=e.data,this.mutationCb({id:r,type:h["2D"],commands:[{property:"clearRect",args:[0,0,n,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:e}],type:t}]},0,0]}]}))},1e3/e);let u=0,c;const l=()=>{const t=[];return n.document.querySelectorAll("canvas").forEach(e=>{q(e,i,r,!0)||t.push(e)}),t},p=e=>{c=(u&&e-u<d||(u=e,l().forEach(async e=>{var t,n,i=this.mirror.getId(e);a.get(i)||0!==e.width&&0!==e.height&&(a.set(i,!0),["webgl","webgl2"].includes(e.__context)&&!1===(null==(n=null==(t=e.getContext(e.__context))?void 0:t.getContextAttributes())?void 0:n.preserveDrawingBuffer)&&t.clear(t.COLOR_BUFFER_BIT),n=await createImageBitmap(e),s.postMessage({id:i,bitmap:n,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[n]))})),requestAnimationFrame(p))};c=requestAnimationFrame(p),this.resetObservers=()=>{t(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=gt(e,t,n,!1),r=ft(this.processMutation.bind(this),e,t,n),o=vt(this.processMutation.bind(this),e,t,n);this.resetObservers=()=>{i(),r(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=e=>{this.rafStamps.latestId=e,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{var n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){var n,i;this.frozen||this.locked||(i=this.pendingCanvasMutations.get(e))&&-1!==t&&(n=i.map(e=>{const{type:t,...n}=e;return n}),i=i[0]["type"],this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations["delete"](e))}}class wt{constructor(e){s(this,"trackedLinkElements",new WeakSet),s(this,"mutationCb"),s(this,"adoptedStyleSheetCb"),s(this,"styleMirror",new Ue),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0!==e.length){var n={id:t,styleIds:[]},i=[];for(const o of e){let e;if(this.styleMirror.has(o))e=this.styleMirror.getId(o);else{e=this.styleMirror.add(o);var r=[];for(let e=0;e<o.rules.length;++e)r.push({rule:w(o.rules[e],o.href),index:e});i.push({styleId:e,rules:Array.from(o.rules||CSSRule,(e,t)=>({rule:w(e,o.href),index:t}))})}n.styleIds.push(e)}0<i.length&&(n.styles=i),this.adoptedStyleSheetCb(n)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class St{constructor(){s(this,"nodeMap",new WeakMap),s(this,"active",!1)}inOtherBuffer(e,t){e=this.nodeMap.get(e);return e&&Array.from(e).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let ce,le=()=>{},Et,It=!1;try{2!==Array.from([1],e=>2*e)[0]&&(dt=document.createElement("iframe"),document.body.appendChild(dt),Array.from=(null==(e=dt.contentWindow)?void 0:e.Array.from)||Array.from,document.body.removeChild(dt))}catch(Ct){console.debug("Unable to override Array.from",Ct)}const pe=new he;function _t(e={}){const{emit:i,checkoutEveryNms:r,checkoutEveryNth:o,blockClass:n="rr-block",blockSelector:a=null,hideSelector:s=null,ignoreClass:D="rr-ignore",ignoreSelector:F=null,maskTextClass:d="rr-mask",maskTextSelector:u=null,inlineStylesheet:c=!0,maskAllInputs:U,maskInputOptions:t,slimDOMOptions:G,maskInputFn:l,maskTextFn:p,hooks:B,packFn:h,sampling:f={},dataURLOptions:g={},mousemoveWait:H,recordDOM:z=!0,recordCanvas:m=!1,recordCrossOriginIframes:j=!1,emitFromIframe:q=!1,recordAfter:W="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:V=!1,collectFonts:K=!1,inlineImages:v=!1,plugins:y,keepIframeSrcFn:b=()=>!1,ignoreCSSAttributes:$=new Set([]),errorHandler:J}=e;e=J,se=e;const w=!!q||!j||window.parent===window;let S=!1;if(!w)try{window.parent.document&&(S=!1)}catch(ee){S=!0}if(w&&!i)throw new Error("emit function is required");if(!w&&!S)return()=>{};void 0!==H&&void 0===f.mousemove&&(f.mousemove=H),pe.reset();const E=!0===U?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==t?t:{password:!0},I=_e(G);"NodeList"in(e=window)&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach);let Y,_=0;const X=e=>{for(const t of y||[])t.eventProcessor&&(e=t.eventProcessor(e));return e=h&&!S?h(e):e},C=(ce=(e,t)=>{var n;e.timestamp=ie(),null==(n=ue[0])||!n.isFrozen()||e.type===te.FullSnapshot||e.type===te.IncrementalSnapshot&&e.data.source===ne.Mutation||ue.forEach(e=>e.unfreeze()),w?null!=i&&i(X(e),t):S&&(n={type:"rrweb",event:X(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===te.FullSnapshot?(Y=e,_=0):e.type!==te.IncrementalSnapshot||e.data.source===ne.Mutation&&e.data.isAttachIframe||(_++,t=o&&_>=o,n=r&&e.timestamp-Y.timestamp>r,(t||n)&&le(!0))},e=>{ce({type:te.IncrementalSnapshot,data:{source:ne.Mutation,...e}})}),Z=e=>ce({type:te.IncrementalSnapshot,data:{source:ne.Scroll,...e}}),Q=e=>ce({type:te.IncrementalSnapshot,data:{source:ne.CanvasMutation,...e}});const T=new wt({mutationCb:C,adoptedStyleSheetCb:e=>ce({type:te.IncrementalSnapshot,data:{source:ne.AdoptedStyleSheet,...e}})}),x=new rt({mirror:pe,mutationCb:C,stylesheetManager:T,recordCrossOriginIframes:j,blockClass:n,blockSelector:a,wrappedEmit:ce,takeFullSnapshot:le});for(const O of y||[])O.getMirror&&O.getMirror({nodeMirror:pe,crossOriginIframeMirror:x.crossOriginIframeMirror,crossOriginIframeStyleMirror:x.crossOriginIframeStyleMirror});const R=new St,A=(Et=new bt({recordCanvas:m,mutationCb:Q,win:window,blockClass:n,blockSelector:a,mirror:pe,sampling:f.canvas,dataURLOptions:g}),new ot({mutationCb:C,scrollCb:Z,bypassOptions:{blockClass:n,blockSelector:a,hideSelector:s,maskTextClass:d,maskTextSelector:u,inlineStylesheet:c,maskInputOptions:E,dataURLOptions:g,maskTextFn:p,maskInputFn:l,recordCanvas:m,inlineImages:v,sampling:f,slimDOMOptions:I,iframeManager:x,stylesheetManager:T,canvasManager:Et,keepIframeSrcFn:b,processedNodeManager:R},mirror:pe}));le=(e=!1)=>{if(z){ce({type:te.Meta,data:{href:window.location.href,width:Ae(),height:Re()}},e),T.reset(),A.init(),ue.forEach(e=>e.lock());var t=function(e,t){var{mirror:t=new he,blockClass:n="rr-block",blockSelector:i=null,hideSelector:r=null,maskTextClass:o="rr-mask",maskTextSelector:a=null,inlineStylesheet:s=!0,inlineImages:d=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:l,maskInputFn:p,slimDOM:h=!1,dataURLOptions:f,preserveWhiteSpace:g,onSerialize:m,onIframeLoad:v,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:w,keepIframeSrcFn:S=()=>!1}=t;return oe(e,{doc:e,mirror:t,blockClass:n,blockSelector:i,hideSelector:r,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:s,maskInputOptions:!0===c?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===c?{password:!0}:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:_e(h),dataURLOptions:f,inlineImages:d,recordCanvas:u,preserveWhiteSpace:g,onSerialize:m,onIframeLoad:v,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:w,keepIframeSrcFn:S,newlyAddedElement:!1})}(document,{mirror:pe,blockClass:n,blockSelector:a,hideSelector:s,maskTextClass:d,maskTextSelector:u,inlineStylesheet:c,maskAllInputs:E,maskTextFn:p,maskInputFn:l,slimDOM:I,dataURLOptions:g,recordCanvas:m,inlineImages:v,onSerialize:e=>{Pe(e,pe)&&x.addIframe(e),De(e,pe)&&T.trackLinkElement(e),Fe(e)&&A.addShadowRoot(re.shadowRoot(e),document)},onIframeLoad:(e,t)=>{x.attachIframe(e,t),A.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{T.attachLinkElement(e,t)},keepIframeSrcFn:b});if(!t)return console.warn("Failed to snapshot the document");ce({type:te.FullSnapshot,data:{node:t,initialOffset:xe(window)}},e),ue.forEach(e=>e.unlock()),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&T.adoptStyleSheets(document.adoptedStyleSheets,pe.getId(document))}},x.setTakeFullSnapshot(le);try{const N=[],M=new Map,L=e=>{return de(et)({mutationCb:C,mousemoveCb:(e,t)=>ce({type:te.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>ce({type:te.IncrementalSnapshot,data:{source:ne.MouseInteraction,...e}}),scrollCb:Z,viewportResizeCb:e=>ce({type:te.IncrementalSnapshot,data:{source:ne.ViewportResize,...e}}),inputCb:e=>ce({type:te.IncrementalSnapshot,data:{source:ne.Input,...e}}),mediaInteractionCb:e=>ce({type:te.IncrementalSnapshot,data:{source:ne.MediaInteraction,...e}}),styleSheetRuleCb:e=>ce({type:te.IncrementalSnapshot,data:{source:ne.StyleSheetRule,...e}}),styleDeclarationCb:e=>ce({type:te.IncrementalSnapshot,data:{source:ne.StyleDeclaration,...e}}),canvasMutationCb:Q,fontCb:e=>ce({type:te.IncrementalSnapshot,data:{source:ne.Font,...e}}),selectionCb:e=>{ce({type:te.IncrementalSnapshot,data:{source:ne.Selection,...e}})},customElementCb:e=>{ce({type:te.IncrementalSnapshot,data:{source:ne.CustomElement,...e}})},blockClass:n,ignoreClass:D,ignoreSelector:F,maskTextClass:d,maskTextSelector:u,maskInputOptions:E,inlineStylesheet:c,sampling:f,recordDOM:z,recordCanvas:m,inlineImages:v,userTriggeredOnInput:V,collectFonts:K,doc:e,maskInputFn:l,maskTextFn:p,keepIframeSrcFn:b,blockSelector:a,hideSelector:s,slimDOMOptions:I,dataURLOptions:g,mirror:pe,iframeManager:x,stylesheetManager:T,shadowDomManager:A,processedNodeManager:R,canvasManager:Et,ignoreCSSAttributes:$,plugins:(null==(e=null==y?void 0:y.filter(e=>e.observer))?void 0:e.map(t=>({observer:t.observer,options:t.options,callback:e=>ce({type:te.Plugin,data:{plugin:t.name,payload:e}})})))||[]},B)},P=(x.addLoadListener(e=>{try{M.set(e,L(e.contentDocument))}catch(t){console.warn(t)}}),x.addPageHideListener(e=>{var t=M.get(e),n=(t&&(t(),M["delete"](e)),e);for(let e=ue.length-1;0<=e;e--){var i=ue[e];i.bufferBelongsToIframe(n)&&(i.reset(),ue.splice(e,1))}}),()=>{le(),N.push(L(document)),It=!0});return["interactive","complete"].includes(document.readyState)?P():(N.push(ae("DOMContentLoaded",()=>{ce({type:te.DomContentLoaded,data:{}}),"DOMContentLoaded"===W&&P()})),N.push(ae("load",()=>{ce({type:te.Load,data:{}}),"load"===W&&P()},window))),()=>{N.forEach(e=>{try{e()}catch(t){String(t).toLowerCase().includes("cross-origin")||console.warn(t)}}),M.forEach(e=>e()),R.destroy(),It=!1,se=void 0}}catch(k){console.warn(k)}}return _t.addCustomEvent=(e,t)=>{if(!It)throw new Error("please add custom event after start recording");ce({type:te.Custom,data:{tag:e,payload:t}})},_t.freezePage=()=>{ue.forEach(e=>e.freeze())},_t.takeFullSnapshot=e=>{if(!It)throw new Error("please take full snapshot after start recording");le(e)},_t.mirror=pe,_t}class SessionRecorderBuffer{constructor(e,t=Infinity){this.data=[],this.sequenceNumber=0,this.interval=e,this.maxCount=t,this.doubledMaxCount=2*t}isEmpty(){return 0===this.data.length}count(){return this.data.length}clear(){this.data.length=0}clearSequence(){this.sequenceNumber=0}push(e){this.data.push(e),this.checkRateLimit()}pack(e,n){var t=this.data.splice(0,this.maxCount);return e.recordingPayload=t,e.sequence=this.sequenceNumber,e.recordingPayloadCount=t.length,t.length&&(e.browserTime=t[0].timestamp),e.recordingPayloadMetadata=n.map(t,e=>{var t=n.pick(e,"type","timestamp");return e.data&&(t.data=n.pick(e.data,"source","type","x","y","id","height","width","href")),t}),this.sequenceNumber+=t.length,e}checkRateLimit(){var e=this.data.length;e>=this.doubledMaxCount&&e%this.maxCount==0&&this.data[e-1].timestamp-this.data[e-this.doubledMaxCount].timestamp<=this.interval&&this.onRateLimit&&this.onRateLimit()}}function __rest(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function __awaiter(e,t,s,d){return new(s=s||Promise$2)(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())})}const RECORDING_CONFIG_WORKERURL$1="recording.workerUrl",MAX_SIZE=2e6,RESOURCE_CACHING$1="resourceCaching";class Transport{constructor(e,t,n){this.WorkerClass=e,this.pendo=t,this.api=n,this.maxSize=MAX_SIZE,this.lockID="worker-lock-"+this.pendo.randomString(16),this.isResourceCachingEnabled=this.api.ConfigReader.get(RESOURCE_CACHING$1)}start(e){if(!e.disableWorker&&!this.worker)try{var t;e.workerOverride?this.worker=e.workerOverride:(t=this.api.ConfigReader.get(RECORDING_CONFIG_WORKERURL$1),this.usesSelfHostedWorker=null!=t,this.worker=t?new Worker(t):new this.WorkerClass),this.worker.postMessage({type:"init",lockID:this.lockID}),this.worker.onmessage=this.pendo._.bind(this._onMessage,this),this.worker.onerror=this.pendo._.bind(this._onError,this)}catch(n){this.worker=null}}stop(){this.worker&&(this.worker.terminate(),delete this.worker)}send(e,t,n=0){let i=e["url"];var r=e["payload"];if(0<n&&(i=i+"&rt="+n),this.worker&&!t&&r){const a={};return a.promise=new Promise$2((e,t)=>{a.resolve=e,a.reject=t}),this.workerResponse=a,this.worker.postMessage({url:i,payload:r,shouldCacheResources:this.isResourceCachingEnabled}),a.promise}if(!e.body){var o,n=JSON.stringify(r);if(n.length>this.maxSize)throw(o=new Error("maximum recording payload size exceeded")).reason="HEAVY_EVENT",o.context={size:n.length,count:null==r?void 0:r.recordingPayloadCount},o;e.body=this.pendo.compress(n,"binary"),delete e.payload}return i=i+"&ct="+(new Date).getTime(),this.post(i,{keepalive:t,body:e.body})}post(e,t){return t.method="POST",t.keepalive&&this.api.transmit.fetchKeepalive.supported()?this.api.transmit.fetchKeepalive(e,t):t.keepalive&&this.api.transmit.sendBeacon.supported()?this.api.transmit.sendBeacon(e,new Blob([t.body]))?Promise$2.resolve():Promise$2.reject(new Error("sendBeacon failed to send recording data")):this.pendo.ajax.post(e,t.body)}_onMessage(e){return __awaiter(this,void 0,void 0,function*(){e.data&&e.data.ready&&navigator.locks&&(yield navigator.locks.request(this.lockID,()=>{}),this.onWorkerMessage({type:"workerDied"})),e.data&&e.data.type?this.onWorkerMessage(e.data):(e.data&&e.data.error&&((e.data.status&&e.data.status<500||null==e.data.sequence)&&this.api.log.critical("Failed to send recording data from web worker",{error:e.data.error}),this.workerResponse)&&(this.workerResponse.reject(),this.workerResponse=null),this.workerResponse&&(this.workerResponse.resolve(),this.workerResponse=null))})}_onError(){this.onError&&this.onError()}}const EVENT_KINDS={AGENTIC:"agentic",CATCHALL:"catchall",DEVLOG:"devlog",RECORDING:"recording"},CATCHALL_TYPES=["load","click","track","guideSeen"],AGENTIC_TYPES=["prompt","agent_response","user_reaction"],CONSENT_EXEMPT_TYPES=["guideSeen",EVENT_KINDS.DEVLOG];class LiveReplayClient{constructor(e,t){this.pendo=e,this.api=t,this.ws=null,this.sequence=0,this.unsubscribeEventCaptured=null,this.disabled=!1}buildWsUrl(){var e=new URL$1(this.pendo.HOST+"/data/live-replay/"+this.pendo.apiKey);return"http:"===e.protocol?e.protocol="ws:":"https:"===e.protocol&&(e.protocol="wss:"),e.href}start(e,t){this.ws&&this.ws.readyState!==WebSocket.CLOSED||this.disabled||(this.sequence=0,this.unsubscribeEventCaptured=this.api.attachEvent(this.api.Events,"eventCaptured",this.pendo._.bind(this.forwardEvent,this)),this.ws=new WebSocket(this.buildWsUrl()),this.api.util.isNativeCode(this.ws.send)?(this.ws.onopen=this.pendo._.bind(this.handleOpen,this,e,t),e=this.pendo._.bind(this.handleClose,this),this.ws.onclose=e,this.ws.onerror=e):(this.disabled=!0,this.api.log.warn("Live replay disabled: WebSocket send is not native."),this.stop()))}handleOpen(e,t){this.sendAuth(e),t&&t()}handleClose(){this.unsubscribeFromEvents()}unsubscribeFromEvents(){this.unsubscribeEventCaptured&&(this.unsubscribeEventCaptured(),this.unsubscribeEventCaptured=null)}sendAuth(e){var t;this.isOpen()&&(t=this.api.agent.getJwtInfoCopy(),this.ws.send(JSON.stringify(this.pendo._.extend({type:"auth",visitorId:e},t))))}stop(){this.ws&&(this.ws.close(),this.ws=null),this.unsubscribeFromEvents()}isOpen(){return!!this.ws&&this.ws.readyState===WebSocket.OPEN}onLiveFlag(e,t,n){e?this.start(t,n):this.stop()}send(e){if(this.isOpen())try{this.ws.send(this.pendo.compress(e,"binary"))}catch(t){}}sendRecordingEvent(e){this.send(Object.assign(Object.assign({},e),{kind:EVENT_KINDS.RECORDING,sequence:this.sequence++}))}hasConsentToForward(e){return!!this.pendo._.contains(CONSENT_EXEMPT_TYPES,e)||this.api.analytics.hasConsentForAnalyticsEvent(e)}forwardEvent(e){if(e&&e.data&&e.data.length){e=e.data[0];const t={event:e};this.pendo._.contains(AGENTIC_TYPES,e.type)&&(t.kind=EVENT_KINDS.AGENTIC),this.pendo._.contains(CATCHALL_TYPES,e.type)&&(t.kind=EVENT_KINDS.CATCHALL),e.type===EVENT_KINDS.DEVLOG&&(t.kind=EVENT_KINDS.DEVLOG),t.kind&&this.hasConsentToForward(e.type)&&this.pendo._.defer(()=>{this.send(t)})}}}const ELEMENT_NODE=1,INPUT_MASK="*".repeat(10),NUMBER_INPUT_MASK="0".repeat(10);function isElementNode(e){return!!e&&e.nodeType===ELEMENT_NODE}function getParent(e){return"undefined"!=typeof window.ShadowRoot&&e instanceof window.ShadowRoot&&e.host?e.host:e.parentNode}function distanceToMatch(e,t,n=Infinity,i=0){if(n<i)return-1;if(!e)return-1;if(isElementNode(e)){if(e.matches(t))return i;if(e.parentNode)return distanceToMatch(e.parentNode,t,n,i+1)}return distanceToMatch(getParent(e),t,n,i+1)}function shouldMask(n,i){var{maskAllText:i,maskTextSelector:r,unmaskTextSelector:o}=i;try{var a=isElementNode(n)?n:n.parentElement;if(null===a)return!1;if("STYLE"===(a.tagName||"").toUpperCase())return!1;let e=-1,t=-1;if(i){if((t=distanceToMatch(a,o))<0)return!0;e=distanceToMatch(a,r,0<=t?t:Infinity)}else{if((e=distanceToMatch(a,r))<0)return!1;t=distanceToMatch(a,o,0<=e?e:Infinity)}return 0<=e?!(0<=t)||e<=t:!(0<=t||!i)}catch(e){}return!!i}function isNumberInput(e){return"input"===(e.tagName||"").toLowerCase()&&"number"===(e.type||"").toLowerCase()}function shouldMaskInput(e,t){if(t&&isElementNode(e)){var n=(e.tagName||"").toLowerCase(),e=(e.type||"").toLowerCase();if(t[n]||t[e])return!0}return!1}function maskInput(e,t,n){return shouldMaskInput(n,e.maskInputOptions)||shouldMask(n,e)?t?isNumberInput(n)?NUMBER_INPUT_MASK:INPUT_MASK:"":t}function maskText(e,t,n){return shouldMask(n,e)?t?t.replace(/[\S]/g,"*"):"":t}const RECORDING_CONFIG="recording",RECORDING_CONFIG_ENABLED="recording.enabled",RECORDING_CONFIG_AUTO_START="recording.autoStart",RECORDING_CONFIG_WORKERURL="recording.workerUrl",RECORDING_CONFIG_ON_RECORDING_START="recording.onRecordingStart",RECORDING_CONFIG_ON_RECORDING_STOP="recording.onRecordingStop",RECORDING_CONFIG_WORKER_OVERRIDE="recording.workerOverride",RECORDING_CONFIG_TREAT_IFRAME_AS_ROOT="recording.treatIframeAsRoot",RECORDING_CONFIG_DISABLE_UNLOAD="recording.disableUnload",RECORDING_CONFIG_RECORD_CROSS_ORIGIN_IFRAMES="recording.recordCrossOriginIframes",RESOURCE_CACHING="resourceCaching",ONE_DAY_IN_MILLISECONDS=864e5,ONE_MINUTE_IN_MILLISECONDS=6e4,THIRTY_MINUTES=18e5,ONE_HUNDRED_MB_IN_BYTES=104857600,SESSION_RECORDING_ID="pendo_srId",SESSION_RECORDING_LAST_USER_INTERACTION_EVENT="pendo_srLastUserInteractionEvent",SEND_INTERVAL=5e3,MAX_SEND_COUNT=2e4,EVENT_TYPES={INCREMENTAL_SOURCE_MUTATION:0,FULL_SNAPSHOT:2,INCREMENTAL_SNAPSHOT:3,META:4,INCREMENTAL_SOURCE_INPUT:5};class SessionRecorder{constructor(e,t){this.name="Replay",this.record=e,this.WorkerClass=t,this.lastKeyFrameTime=0,this.eventsSinceLastKeyFrame=0,this.currentRecordingSize=0}addConfigOptions(){var e=this.api.ConfigReader;e.addOption(RECORDING_CONFIG,[e.sources.PENDO_CONFIG_SRC],{}),e.addOption(RECORDING_CONFIG_AUTO_START,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ENABLED,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_START,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_STOP,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKERURL,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKER_OVERRIDE,[e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_TREAT_IFRAME_AS_ROOT,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_RECORD_CROSS_ORIGIN_IFRAMES,[e.sources.SNIPPET_SRC],undefined),e.addOption(RESOURCE_CACHING,[e.sources.PENDO_CONFIG_SRC],undefined)}initialize(e,t){this.pendo=e,this.api=t;e=this.pendo._.bind,t=this.api.ConfigReader;this.buffer=new SessionRecorderBuffer(SEND_INTERVAL,MAX_SEND_COUNT),this.buffer.onRateLimit=e(this.rateLimitExceeded,this),this.transport=new Transport(this.WorkerClass,this.pendo,this.api),this.transport.onError=e(this.sendFailure,this,"WORKER_ERROR"),this.transport.onWorkerMessage=e(this.onWorkerMessage,this),this.liveReplayClient=new LiveReplayClient(this.pendo,this.api),this.sendQueue=new this.api.SendQueue(e(this.transport.send,this.transport)),this.sendQueue.onTimeout=e(this.sendFailure,this,"SEND_TIMEOUT"),this.errorHandler=this.pendo._.throttle(e(this.logStopReason,this,"RRWEB_ERROR"),ONE_MINUTE_IN_MILLISECONDS,{trailing:!1}),this.isNewSession=!1,this.isCheckingVisitorEligibility=!1,this.pageLifecycleListeners=[],this.addConfigOptions(),this.config=t.get(RECORDING_CONFIG),this.onRecordingStart=this.pendo._.isFunction(t.get(RECORDING_CONFIG_ON_RECORDING_START))?t.get(RECORDING_CONFIG_ON_RECORDING_START):function(){},this.onRecordingStop=this.pendo._.isFunction(t.get(RECORDING_CONFIG_ON_RECORDING_STOP))?t.get(RECORDING_CONFIG_ON_RECORDING_STOP):function(){};let n=!1;var i=t.get(RECORDING_CONFIG_ENABLED);if(this.pendo._.isBoolean(i)?(n=i)||this.api.log.info("Session Replay disabled via the snippet config"):n=this.config.enabled,n)if(t.get("excludeNonGuideAnalytics"))this.api.log.info("Session Replay is disabled because excludeNonGuideAnalytics is enabled");else{i=this.sessionIdKey=SESSION_RECORDING_ID+"."+this.pendo.apiKey;this.pendo.recording={start:e(this.start,this),stop:e(this.stop,this)},this.subscriptions=[this.api.attachEvent(this.api.Events,"appHidden",e(this.handleHidden,this)),this.api.attachEvent(this.api.Events,"appUnloaded",e(this.handleUnload,this)),this.api.attachEvent(this.api.Events,"identify",e(this.changeIdentity,this)),this.api.attachEvent(this.api.Events,"metadata",e(this.changeMetadata,this)),this.api.attachEvent(this.api.Events,"eventCaptured",e(this.addRecordingId,this)),this.api.attachEvent(this.api.Events,"transmit:locked",e(this.stop,this)),this.api.attachEvent(this.api.Events,"transmit:unlocked",e(this._start,this)),this.api.attachEvent(this.api.Events,"tabIdChanged:self",e(this.handleTabIdChange,this)),this.api.attachEvent(this.api.Events,"consent:changed",e(this.handleConsentChange,this)),this.api.attachEvent(this.api.Events,"childFrameJoined",e(this.handleChildFrameJoined,this))];const r=this.api.frames.getChannel(),o=e(this._frameMessage,this);r.addEventListener("message",o),this.subscriptions.push(()=>{r.removeEventListener("message",o)}),this.api.store.getters["frames/isReady"]()?this.ready():this.subscriptions.push(this.api.attachEvent(this.api.Events,"ready",e(this.ready,this))),this.api.agentStorage.registry.addSession(i),this.api.agentStorage.registry.addSession(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)}}teardown(){delete this.pendo.recording,delete this.allowStart,this.pendo._.each(this.subscriptions,function(e){e()}),this.removePageLifecycleListeners(),this.subscriptions.length=0,this.stop(),this.transport.stop(),this.liveReplayClient.stop()}ready(){!1!==this.api.ConfigReader.get(RECORDING_CONFIG_AUTO_START)&&this.start()}addPageLifecycleListeners(){this.pendo._.each(["pageshow","focus","blur","visibilitychange","resume"],e=>{this.pageLifecycleListeners.push(this.api.attachEventInternal(window,e,this.pendo._.bind(this.checkPageLifecycleState,this),!0))})}removePageLifecycleListeners(){this.pendo._.each(this.pageLifecycleListeners,function(e){e()}),this.pageLifecycleListeners=[]}checkPageLifecycleState(){var e=this.getPageLifecycleState();"active"!==e&&"passive"!==e||!this.isRecording()&&this.allowStart&&(this.removePageLifecycleListeners(),this.ready())}getPageLifecycleState(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}changeIdentity(e){this.allowStart&&(clearTimeout$1(this._changeIdentityTimer),this.isRecording()&&(this.logStopReason("IDENTITY_CHANGED",{previousVisitorId:this.visitorId,newVisitorId:e.data[0].visitor_id,previousAccountId:this.accountId,newAccountId:e.data[0].account_id}),this.stop()),this.visitorId=e.data[0].visitor_id,this.accountId=e.data[0].account_id,this._changeIdentityTimer=setTimeout$1(()=>{this._start()},500))}changeMetadata(e){var{hashChanged:e,options:t}=e.data[0];if(this.allowStart&&e)return clearTimeout$1(this._changeIdentityTimer),this.visitorId=t.visitor.id,this.accountId=t.account.id,this.checkVisitorEligibility()}handleConsentChange(e){var{identity:e,replay:t}=e.data[0];this.pendo._.isUndefined(e)&&this.pendo._.isUndefined(t)||(this.api.analytics.isReplayConsentDenied()?(this.isRecording()&&(this.logStopReason("CONSENT_DENIED"),this.stop()),this.clearSessionInfo()):this.isRecording()||this.start())}checkVisitorEligibility(t){if(this.isRecording()||!this.pendo._.isNull(this.visitorId)||!this.pendo._.isNull(this.accountId))return this.isCheckingVisitorEligibility=!0,this.fetchVisitorConfig().then(e=>{e&&e.enable||!this.isRecording()||this.stop(),e&&e.enable&&this.isRecording()&&(this.liveReplayClient.onLiveFlag(e.live,this.visitorId,()=>this._snapshotForLiveReplay()),t&&t.call(this),this.api.Events.trigger("recording:unpaused")),e&&e.enable&&!this.isRecording()&&this._startRecordingForVisitor(e),this.isCheckingVisitorEligibility=!1})["catch"](e=>{this.isCheckingVisitorEligibility=!1,this.api.log.critical("Failed to re-fetch recording config",{error:e}),this.logStopReason("VISITOR_CONFIG_ERROR")})}snapshot(){this.isRecording()&&(this.send(),this.record.takeFullSnapshot())}_snapshotForLiveReplay(){this._recordsInThisFrame()&&this.snapshot()}isRecording(){return null!=this.interval}recordingConfig(e){var e=this.pendo._.extend({},this.config.options,e),t={maskAllText:null==e.privateByDefault||e.privateByDefault,maskTextSelector:[".pendo-sr-mask"].concat(e.maskedSelectors||[]).join(","),unmaskTextSelector:[".pendo-sr-unmask"].concat(e.unmaskedSelectors||[]).join(","),maskInputOptions:{}},n=(this.pendo._.isObject(e.maskInputOptions)&&(t.maskInputOptions=e.maskInputOptions),t.maskInputOptions=this.pendo._.extend(t.maskInputOptions,{email:!0,password:!0,tel:!0}),[".pendo-ignore",".pendo-sr-ignore"].concat(e.blockedSelectors||[])),i=[".pendo-sr-hide"].concat(e.hiddenSelectors||[]),r=this.api.ConfigReader.get(RECORDING_CONFIG_RECORD_CROSS_ORIGIN_IFRAMES),r=this.pendo._.isBoolean(r)?r:e.recordCrossOriginIframes;return{maskInputFn:this.pendo._.partial(maskInput,t),maskTextFn:this.pendo._.partial(maskText,t),maskTextSelector:"*",maskTextClass:null,maskInputOptions:t.maskInputOptions,blockClass:null,blockSelector:n.concat(i).join(","),hideSelector:i.join(","),recordCrossOriginIframes:null==r||r,emitFromIframe:this._treatIframeAsRoot()}}start(){this.api.analytics.isReplayConsentDenied()||(this._restartPtm=this.pauseAnalytics(),this.allowStart=!0,this.visitorId=this.pendo.get_visitor_id(),this.accountId=this.pendo.get_account_id(),this._start())}pauseAnalytics(){const e=this.api.analytics.ptm().pause();var t=this.pendo._.isFunction(this.api.analytics.trackEventQueue)&&this.api.analytics.trackEventQueue();const n=t?t.pause({silent:!0,sendOnUnload:!0}):null;return()=>{this.pendo._.isFunction(n)&&n(),this.pendo._.isFunction(e)&&e()}}_markEvents(e){if(this.recordingId&&this.isRecording())for(var t of e)t.visitor_id!==this.visitorId&&t.visitorId!==this.visitorId||"identify"===t.type||(t.recordingId=this.recordingId,t.recordingSessionId=this.sessionId(this.recordingId))}restartPtm(){if(this.pendo._.isFunction(this._restartPtm)){this._markEvents(this.pendo.buffers.events);for(var e of this.pendo.buffers.silos)this._markEvents(e);this._markEvents(this.pendo.buffers.trackEvents||[]);for(var t of this.pendo.buffers.trackEventSilos||[])this._markEvents(t);this._restartPtm(),this._restartPtm=null}}_start(){if(!this.isRecording()&&this.pendo.isSendingEvents()&&this.allowStart)return this.fetchVisitorConfig().then(e=>{this.allowStart&&(e&&e.enable?this._startRecordingForVisitor(e):(this.restartPtm(),this.logStopReason("VISITOR_DISABLED")))})["catch"](e=>{this.restartPtm(),e&&/Failed to fetch/.test(e.toString())||(this.api.log.critical("Failed to fetch recording config",{error:e,visitorId:this.visitorId,accountId:this.accountId,url:this.pendo.url.get()}),this.logStopReason("VISITOR_CONFIG_ERROR"))})}_startRecordingForVisitor(e){if(this.api.analytics.isReplayConsentDenied())this.restartPtm(),this.logStopReason("CONSENT_DENIED");else if(this.api.Events.trigger("recording:unpaused"),this.transport.start(this.config),this.pendo._.get(this.config,"disableFallback",!0)&&!this.transport.worker)this.restartPtm(),this.pendo.log("Worker failed to start and main thread fallback is disabled. Recording prevented from starting."),this.logStopReason("WORKER_ERROR");else try{var t=this.pendo._.bind,n=(this.visitorConfig=e,this.clearOldSessionId(),this.sendQueue.start(),this.interval=setInterval(()=>{this.sendQueue.failed()||this.send()},SEND_INTERVAL),this.recordingConfig(e));this._stop=this.record(this.pendo._.extend({emit:t(this.emit,this),errorHandler:this.errorHandler},n)),this._refreshIds(),this.liveReplayClient.onLiveFlag(e.live,this.visitorId,()=>this._snapshotForLiveReplay()),this.onRecordingStart()}catch(i){this.restartPtm(),this.logStopReason("RECORDING_ERROR")}}_sendIds(){window==window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:id",recordingId:this.recordingId,_sessionId:this._sessionId,topId:this.api.store.state.frames.topId})}_recordsInThisFrame(){if(window==window.top||this._treatIframeAsRoot())return!0;if(!this.recordingConfig(this.visitorConfig).recordCrossOriginIframes)return!0;try{return!window.parent.document}catch(e){return!0}}_treatIframeAsRoot(){return!!this.api.ConfigReader.get(RECORDING_CONFIG_TREAT_IFRAME_AS_ROOT)}_refreshIds(){window!=window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:refresh"})}_frameMessage(e){e=e.data;"pendo:sr:id"===e.type?this.api.EventTracer.getTabId()==e.tabId&&this.api.store.state.frames.topId!=e.topId||e.recordingId&&(this.recordingId=e.recordingId,this._sessionId=e._sessionId,this.isRecording())&&this.restartPtm():"pendo:sr:refresh"===e.type&&window==window.top&&this._sendIds()}handleChildFrameJoined(){this.recordingId&&this.isRecording()&&this._sendIds()}clearSessionId(){delete this._sessionId,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID),this.api.sessionStorage.removeItem(this.sessionIdKey)}sessionId(t=this.pendo.randomString(16)){if(!this._sessionId){let e=this.api.sessionStorage.getItem(this.sessionIdKey);var n;e||((n=this.api.sessionStorage.getItem(SESSION_RECORDING_ID))?(e=n,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID)):e=t,this.api.sessionStorage.setItem(this.sessionIdKey,e)),this._sessionId=e}return this._sessionId}clearOldSessionId(){var e=this.getLastUserInteractionEventInformation();if(e){var t=e.timestamp,e=e.visitorId===this.visitorId&&e.accountId===this.accountId,t=t>Date.now()-this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES);if(e&&t)return}this.clearSessionInfo(),this.isNewSession=!0}clearSessionInfo(){this.currentRecordingSize=0,this.clearSessionId(),this.clearLastUserInteractionEventInformation()}isUserInteraction(e){return e.type===EVENT_TYPES.INCREMENTAL_SNAPSHOT&&e.data.source>EVENT_TYPES.INCREMENTAL_SOURCE_MUTATION&&e.data.source<=EVENT_TYPES.INCREMENTAL_SOURCE_INPUT}storeLastUserInteractionEventInformation(e,t,n,i){(this.isUserInteraction(e)||i)&&(this.lastUserInteractionEventInfo={timestamp:e.timestamp,visitorId:t,accountId:n},this.api.sessionStorage.setItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT,JSON.stringify(this.lastUserInteractionEventInfo)))}clearLastUserInteractionEventInformation(){delete this.lastUserInteractionEventInfo,this.api.sessionStorage.removeItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)}getLastUserInteractionEventInformation(){if(this.lastUserInteractionEventInfo)return this.lastUserInteractionEventInfo;try{return this.lastUserInteractionEventInfo=JSON.parse(this.api.sessionStorage.getItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)),this.lastUserInteractionEventInfo}catch(e){return null}}applyAttributeTransforms(e){const r=this.pendo._;if(!r.isEmpty(r.get(this.api.store.state,"nodeAttr.transforms"))){const o=this.api.store.getters["nodeAttr/getAttribute"](),t=i=>{r.each(i,(e,t)=>{var n;r.isString(e)&&!/^(#|data:|blob:)/.test(e)&&(n="rr_src"===t?"src":t,i[t]=o({[n]:e},n))})},n=e=>{e&&(t(e.attributes),r.each(e.childNodes,n))};e.type===EVENT_TYPES.FULL_SNAPSHOT?n(e.data.node):e.type===EVENT_TYPES.INCREMENTAL_SNAPSHOT&&e.data.source===EVENT_TYPES.INCREMENTAL_SOURCE_MUTATION&&(r.each(e.data.adds,e=>n(e.node)),r.each(e.data.attributes,e=>t(e.attributes)))}}emit(e){var t=e.type===EVENT_TYPES.META,n=e.type===EVENT_TYPES.FULL_SNAPSHOT,i=this.pendo._.get(this.getLastUserInteractionEventInformation(),"timestamp"),r=this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES);let o=!1;e.timestamp&&e.timestamp.getTime&&(e.timestamp=e.timestamp.getTime()),e.timestamp||(e.timestamp=(new Date).getTime());var r=i&&e.timestamp-i<=r;!i&&t&&(o=!0,this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,o)),t||this.isCheckingVisitorEligibility||!r||this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,o),r||n||t?(t&&(this.pendo._.has(e,"data.href")&&(e.data.href=this.pendo.location.getHref()),this.send()),this.applyAttributeTransforms(e),this.buffer.push(e),n?(this.lastKeyFrameTime=e.timestamp,this.eventsSinceLastKeyFrame=0,this.recordingId=this.pendo.randomString(16),this.buffer.clearSequence(),this.sessionId(this.recordingId),this.restartPtm(),this._sendIds(),this.pendo._.each(this.buffer.data,e=>this._sendLiveReplayEvent(e)),this.send({keyframe:!0})):!t&&(this._sendLiveReplayEvent(e),this.eventsSinceLastKeyFrame+=1,r=(i=e.timestamp-this.lastKeyFrameTime)>=ONE_DAY_IN_MILLISECONDS,n=i>=this.pendo._.get(this.visitorConfig,"keyframeTimeFrequency",30645047),t=this.eventsSinceLastKeyFrame>=this.pendo._.get(this.visitorConfig,"keyframeEventFrequency",4548),e=this.currentRecordingSize>=this.pendo._.get(this.visitorConfig,"recordingSizeLimit",ONE_HUNDRED_MB_IN_BYTES),r||n&&t||e)&&(i=function(){this.currentRecordingSize=0,this.snapshot()},r&&!this.isCheckingVisitorEligibility?this.checkVisitorEligibility(i):i.call(this))):("hidden"===this.getPageLifecycleState()&&(this.stop(),this.addPageLifecycleListeners(),this.logStopReason("INACTIVE_HIDDEN_TAB")),this.isCheckingVisitorEligibility||this.checkVisitorEligibility(function(){this.send(),this.clearSessionInfo(),this.snapshot()}))}updateCurrentRecordingSize(e){this.currentRecordingSize+=e}_sendLiveReplayEvent(e){this.recordingId&&this.liveReplayClient.isOpen()&&this.liveReplayClient.sendRecordingEvent({type:"recording",visitorId:this.visitorId,accountId:this.accountId,recordingId:this.recordingId,recordingSessionId:this.sessionId(this.recordingId),url:this.pendo.url.get(),keyFrame:e.type===EVENT_TYPES.FULL_SNAPSHOT,lastKeyFrame:this.lastKeyFrameTime,recordingPayload:[e],recordingPayloadCount:1,browserTime:e.timestamp})}onWorkerMessage(e){switch(e.type){case"workerDied":this.logStopReason("WORKER_DIED");break;case"recordingPayloadSize":var{recordingPayloadSize:t,exceedsPayloadSizeLimit:n}=e;if(!t)return;if(n)return this.stop(),void this.logStopReason("BIG_PAYLOAD",t);this.updateCurrentRecordingSize(t);break;case"hostedResources":n=e["hostedResourcesEvent"];if(!n)return;this.sendHostedResources(n);break;case"emptyPayload":this.logStopReason("EMPTY_PAYLOAD");break;case"missingData":this.logStopReason("MISSING_"+e.missingData);break;case"liveFlag":e.visitorId===this.visitorId&&this.liveReplayClient.onLiveFlag(e.live,this.visitorId,()=>this._snapshotForLiveReplay())}}addRecordingId(e){this.isRecording()&&this.recordingId&&e&&e.data&&e.data.length&&"recording"!==(e=e.data[0]).type&&"identify"!==e.type&&(e.visitor_id!==this.visitorId&&e.visitorId!==this.visitorId?(this.api.log.warn("Visitor id has diverged from agent"),this.logStopReason("VISITOR_ID_DIVERGED",{agentVisitorId:e.visitor_id||e.visitorId,recordingVisitorId:this.visitorId}),this.stop()):this._markEvents([e]))}stop(){this._stop&&this._stop(),this.send(),this.liveReplayClient.stop(),this.sendQueue.stop(),this.recordingId=null,clearInterval(this.interval),this.interval=null,this._stop=null,this.visitorConfig=null,this.api.Events.trigger("recording:paused"),this.visitorId=null,this.accountId=null,this.clearSessionInfo(),this.onRecordingStop()}handleHidden(){this.send({hidden:!0})}handleUnload(){this.api.ConfigReader.get(RECORDING_CONFIG_DISABLE_UNLOAD)||this.send({unload:!0})}buildRequestUrl(e,t){t=this.pendo._.extend({},this.api.agent.getJwtInfoCopy(),t),t=this.pendo._.map(t,function(e,t){return t+"="+e}).join("&");return t.length?e+"?"+t:e}sendFailure(e){this.stop(),this.logStopReason(e)}rateLimitExceeded(){this.send(),this.stop(),this.logStopReason("DATA_OVERLOAD")}send({unload:e=!1,keyframe:t=!1,hidden:n=!1}={}){if(this.isRecording()&&this.buffer&&this.recordingId&&!this.buffer.isEmpty())if(this.pendo.isSendingEvents()){var i=this.api.EventTracer.addTracerIds({}),t=this.pendo._.extend({type:"recording",visitorId:this.visitorId,accountId:this.accountId,keyFrame:!!t,lastKeyFrame:this.lastKeyFrameTime,recordingId:this.recordingId,recordingSessionId:this.sessionId(this.recordingId),url:this.pendo.url.get(),hasUserInteraction:this.pendo._.any(this.buffer.data,this.isUserInteraction)},i),i=(this.transport.usesSelfHostedWorker&&(t.usesSelfHostedWorker=!0),this.api.Events.eventCaptured.trigger(t),{v:this.pendo.VERSION,recordingId:this.recordingId,vis:this.api.util.base64EncodeString(this.visitorId)}),i=(t.keyFrame&&(i.kf=1),this.isNewSession&&(this.isNewSession=!(i.ns=1)),this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+this.pendo.apiKey,i)),t=this.buffer.pack(t,this.pendo._);if(e||n)try{this.sendQueue.drain([{url:i,payload:t}],e)}catch(r){r.reason?this.logStopReason(r.reason,r.context):this.logStopReason("SEND_QUEUE_ERROR",r)}else this.sendQueue.push({url:i,payload:t});this.buffer.isEmpty()||this.send({unload:e})}else this.buffer.clear()}fetchVisitorConfig(){var e=this.pendo.compress({url:this.pendo.url.get(),metadata:this.pendo.getSerializedMetadata(),visitorId:this.visitorId,accountId:this.accountId}),e=this.buildRequestUrl(this.pendo.HOST+"/data/recordingconf/"+this.pendo.apiKey,{jzb:e,ct:(new Date).getTime(),v:this.pendo.VERSION});return fetch(e,{method:"GET"}).then(e=>e.json())}logStopReason(e,t){var n=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend({type:"recording",visitorId:this.visitorId||this.pendo.get_visitor_id(),accountId:this.accountId||this.pendo.get_account_id(),browserTime:(new Date).getTime(),keyFrame:!1,lastKeyFrame:0,recordingId:"log",recordingSessionId:"log",url:this.pendo.url.get(),subType:"log",recordingPayload:[],sequence:0,recordingPayloadCount:0,props:Object.assign({reason:e},t&&{error:t instanceof Error?null==t?void 0:t.message:t})},n),t=this.pendo.compress(e),n=this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+this.pendo.apiKey,{jzb:t,ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),t=this.pendo.compress(e,"binary");return this.transport.post(n,{body:t,keepalive:!0})["catch"](e=>{this.api.log.critical("Failed to send reason for stopping recording",{error:e})})}sendHostedResources(e){var t=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend(Object.assign(Object.assign({},e),{browserTime:(new Date).getTime()}),t),t=this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+this.pendo.apiKey,{ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),e=this.pendo.compress(e,"binary");return this.transport.post(t,{body:e,keepalive:!0})["catch"](e=>{this.api.log.critical("Failed to send hosted resources for recording event",{error:e})})}handleTabIdChange(){this.send(),this.clearSessionInfo(),this.snapshot()}}function wrapMethodWithCatch(t){return function(){try{return t.apply(this,arguments)}catch(e){this.api&&this.api.log&&this.api.log.critical("session recording error",{error:e})}}}function errorLogger(e){if("undefined"!=typeof Object&&"function"==typeof Object.getOwnPropertyNames&&e.constructor&&e.constructor.prototype)for(var t of Object.getOwnPropertyNames(e.constructor.prototype))"constructor"!==t&&(e[t]=wrapMethodWithCatch(e[t]));return e}function funcToSource(e,t){var t=t===undefined?null:t,n=[],e=(e=e.toString()).replace(/(['"])__worker_loader_strict__(['"])/g,"$1use strict$2");return n.push("("+e+")()"),t&&n.push("//# sourceMappingURL="+t+"\n"),n}function createURL(e,t){e=funcToSource(e,t),t=new Blob(e,{type:"application/javascript"});return URL.createObjectURL(t)}function createInlineWorkerFactory(t,n){var i;return function WorkerFactory(e){return i=i||createURL(t,n),new Worker(i,e)}}var WorkerFactory=createInlineWorkerFactory(function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function c(e,t){t=t||r;e=function(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}("string"==typeof e?e:JSON.stringify(e)),e=new i.Deflate(e).compress();return t===r?n.uint8ToBase64(e):e}function l(e,t){t=t.match(/https:\/\/[^"\\\s]+?\.(woff2?|ttf|otf|eot)(\?[^"\\\s]*)?\b/g),t=t?Array.from(new Set(t)):[];return{type:"recording",visitorId:e.visitorId,accountId:e.accountId,keyFrame:!1,lastKeyFrame:e.lastKeyFrame,recordingId:e.recordingId,recordingSessionId:e.recordingSessionId,url:e.url,subType:"hostedResources",recordingPayload:[],recordingPayloadMetadata:[],sequence:0,recordingPayloadCount:0,hostedResources:t}}var a,n,t,i,r;a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),n={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 a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=a[n>>2])+a[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=a[n>>10])+a[n>>4&63])+a[n<<2&63]}return o}},function(){var Z=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===Z?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,D,n=this.input;switch(this.d){case 0:for(t=0,D=n.length;t<D;){var F,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===D,o=Z,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),F=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&F,a[s++]=F>>>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,H,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,T,x,R,q=h,W=f,A=new(ee?Uint32Array:Array)(q+W),k=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<q;N++)A[_++]=m[N];for(N=0;N<W;N++)A[_++]=v[N];if(!ee)for(N=0,T=O.length;N<T;++N)O[N]=0;for(N=x=0,T=A.length;N<T;N+=_){for(_=1;N+_<T&&A[N+_]===A[N];++_);if(C=_,0===A[N])if(C<3)for(;0<C--;)O[k[x++]=0]++;else for(;0<C;)(R=C-3<(R=C<138?C:138)&&R<C?C-3:R)<=10?(k[x++]=17,k[x++]=R-3,O[17]++):(k[x++]=18,k[x++]=R-11,O[18]++),C-=R;else if(k[x++]=A[N],O[A[N]]++,--C<3)for(;0<C--;)k[x++]=A[N],O[A[N]]++;else for(;0<C;)C-3<(R=C<6?C:6)&&R<C&&(R=C-3),k[x++]=16,k[x++]=R-3,O[16]++,C-=R}for(e=ee?k.subarray(0,x):k.slice(0,x),y=oe(O,7),S=0;S<19;S++)j[S]=y[z[S]];for(g=19;4<g&&0===j[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(j[S],3,Q);for(S=0,H=e.length;S<H;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],K=I[0],$=I[1],J=L[0],Y=L[1],P=0,X=p.length;P<X;++P)if(M=p[P],E.b(K[M],$[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b(J[V],Y[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,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]===Z&&(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,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,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(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call((t={exports:{}}).exports),i={Deflate:e(t.exports).Zlib.Deflate},r="base64url",self.onmessage=function(n){try{if("init"===n.data.type&&n.data.lockID)navigator.locks&&navigator.locks.request(n.data.lockID,()=>(postMessage({ready:!0}),new Promise(()=>{})));else if(n.data.url&&n.data.payload){let{url:e,payload:i,shouldCacheResources:t}=n.data;0===Object.keys(i).length&&postMessage({type:"emptyPayload"});const u=i["sequence"];var r,o,a=JSON.stringify(i.recordingPayload),s=(new TextEncoder).encode(a).length,d=104857600<=s;postMessage({type:"recordingPayloadSize",recordingPayloadSize:s,exceedsPayloadSizeLimit:d}),d||(t&&(r=l(i,a)).hostedResources.length&&postMessage({type:"hostedResources",hostedResourcesEvent:r}),i.recordingSize=s,o=c(i,"binary"),e=e+"&ct="+(new Date).getTime(),fetch(e,{method:"POST",body:o}).then(function(e){if(e.status<200||300<=e.status){var t=e;try{t&&t.body&&"function"==typeof t.body.cancel&&t.body.cancel()["catch"](function(){})}catch(n){}postMessage({error:new Error(`received status code ${e.status}: `+e.statusText),status:e.status,sequence:u})}else postMessage({sequence:u}),e.json().then(function(e){e&&e.live!==undefined&&postMessage({type:"liveFlag",live:e.live,visitorId:i.visitorId})})["catch"](function(){})})["catch"](function(e){postMessage({error:e,sequence:u})}))}else postMessage({type:"missingData",missingData:n.data.url?"PAYLOAD":"URL"})}catch(n){postMessage({error:n})}}},null);function createReplayPlugin(){return errorLogger(new SessionRecorder(record(),WorkerFactory))}const NUM_OF_KEYS_LIMIT=50,DEPTH_OF_LIMIT=4;function serializeHTML(e){var t;return e&&e.nodeType===e.ELEMENT_NODE&&(t=e.cloneNode(!1),e=e.textContent,e&&(t.textContent=e),t.outerHTML)||""}function isObject(e){return null!==e&&"object"==typeof e&&((e=Object.getPrototypeOf(e))===Object.prototype||null===e)}function isObjTooDeep(t,n){var e;return 0===n||0!==(e=Object.keys(t)).length&&e.some(e=>{e=t[e];return isObject(e)&&isObjTooDeep(e,n-1)})}function shouldIgnore(e){return e instanceof RegExp||!!isObject(e)&&(Object.keys(e).length>NUM_OF_KEYS_LIMIT||isObjTooDeep(e,DEPTH_OF_LIMIT))}function stringify(e,a=Infinity){if(e===undefined)return"undefined";if("object"!=typeof e)return"bigint"==typeof e?e.toString()+"n":"function"==typeof e?e.toString():String(e);let s=0;return JSON.stringify(e,function(e,t){if(s>a)return"";var n="string"==typeof t?t.length:0;if(s+=e.length+n,null!==t){if(t===undefined)return"undefined";if(Array.isArray(t)&&t.length>NUM_OF_KEYS_LIMIT)return t.slice(0,NUM_OF_KEYS_LIMIT);if(shouldIgnore(t))return t.toString?t.toString():"[object Object]";if(t instanceof ArrayBuffer)return`ArrayBuffer { byteLength: ${t.byteLength} }`;if(t instanceof Error)return t.name+": "+t.message;if(t instanceof Node)return t instanceof HTMLElement?serializeHTML(t):t.nodeName;if(t instanceof Event){var i={};for(const o in t){var r=t[o];i[o]=Array.isArray(r)&&r[0]instanceof HTMLElement?serializeHTML(r[0]):r}return i}}return t})}class StackFrame{constructor(e){this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}toString(){var{fileName:e,functionName:t,lineNumber:n="",columnNumber:i=""}=this;return t?t+` (${e}:${n}:${i})`:e+`:${n}:`+i}}const FIREFOX_SAFARI_STACK_REGEXP=/(^|@)\S+:\d+/,CHROME_EDGE_STACK_REGEXP=/^\s*at .*(\S+:\d+|\(native\))/m,SAFARI_NATIVE_CODE_REGEXP=/^(eval@)?(\[native code])?$/,LOCATION_REGEXP=/(.+?)(?::(\d+))?(?::(\d+))?$/,DEFAULT_NUM_FRAMES_TO_SKIP=5,ErrorStackParser={parse(e,t){return null!=e&&e.stack?CHROME_EDGE_STACK_REGEXP.test(e.stack)?this.parseChromiumStack(e,t):FIREFOX_SAFARI_STACK_REGEXP.test(e.stack)?this.parseFirefoxSafariStack(e,t):[]:[]},extractLocation(e){if(-1===e.indexOf(":"))return[e];var t=LOCATION_REGEXP.exec(e.replace(/[()]/g,""));if(t)return[t[1],t[2]||undefined,t[3]||undefined];throw new Error("Cannot parse given url: "+e)},parseHelper({regex:t,includeMatchedLine:n},e,i,r){var o=e.stack.split("\n"),a=[];let s=0;for(let e=0;e<o.length;e++){var d=o[e],u=t.test(d),u=n&&!u||!n&&u;if(!u&&!(++s<=DEFAULT_NUM_FRAMES_TO_SKIP)){if(i&&s>DEFAULT_NUM_FRAMES_TO_SKIP+i)break;r(d,a)}}return a},parseChromiumStack(e,t){return this.parseHelper({regex:CHROME_EDGE_STACK_REGEXP,includeMatchedLine:!0},e,t,(e,t)=>{let n;let i;-1<(n=-1<e.indexOf("(eval ")?e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,"").replace(/^\s+/,"").replace(/\(eval code/g,"("):e.replace(/^\s+/,"")).indexOf("(")&&-1<n.indexOf("):")&&(i=n.match(/ (\((.+):(\d+):(\d+)\)$)/));var e=(n=i?n.replace(i[0],""):n).split(/\s+/).slice(1),r=this.extractLocation(i?i[1]:e.pop()||""),e=e.join(" ")||undefined,o="eval"===r[0]||"<anonymous>"===r[0]?undefined:r[0];t.push(new StackFrame({functionName:e,fileName:o,lineNumber:r[1],columnNumber:r[2]}))})},parseFirefoxSafariStack(e,t){return this.parseHelper({regex:SAFARI_NATIVE_CODE_REGEXP,includeMatchedLine:!1},e,t,(e,t)=>{let n=e;var i;-1===(n=-1<n.indexOf(" > eval")?n.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1"):n).indexOf("@")&&-1===n.indexOf(":")?t.push(new StackFrame({functionName:n})):(e=/((.*".+"[^@]*)?[^@]*)(?:@)/,i=(i=n.match(e))&&i[1]?i[1]:undefined,e=this.extractLocation(n.replace(e,"")),t.push(new StackFrame({functionName:i,fileName:e[0],lineNumber:e[1],columnNumber:e[2]})))})}};function includes(e,t){return-1!==e.indexOf(t)}function getResourceType(e,t){if(!t||"string"!=typeof t)return"resource";t=t.toLowerCase();if("inline"===e){if(includes(t,"script-src-attr"))return"inline event handler";if(includes(t,"style-src-attr"))return"inline style attribute";if(includes(t,"script"))return"inline script";if(includes(t,"style"))return"inline style"}return"eval"===e?"eval script execution":includes(t,"worker")?"worker":includes(t,"script")?includes(t,"elem")?"script element":"script":includes(t,"style")?includes(t,"elem")?"style element":"stylesheet":includes(t,"img")?"image":includes(t,"font")?"font":includes(t,"connect")?"network request":includes(t,"media")?"media resource":includes(t,"frame-ancestors")?"display of your page in a frame":includes(t,"frame")?"frame":includes(t,"manifest")?"manifest":includes(t,"base-uri")?"base URI":includes(t,"form-action")?"form submission":"resource"}function getDirective(e,t){if(e&&t){var n=t.toLowerCase();for(const o of e.split(";")){var i=o.trim(),r=i.toLowerCase();if(r===n||r.startsWith(n+" "))return i}}return""}function getArticle(e){return e&&"string"==typeof e&&includes("aeiou",e.trim().charAt(0).toLowerCase())?"An":"A"}function formatBlockedUri(e){return e&&"inline"!==e&&"eval"!==e?e:""}function createCspViolationMessage(e,t,n,i){if(!t||"string"!=typeof t)return"Content Security Policy: Unknown violation occurred.";try{var r,o,a=n?" (Report-Only)":"";return"frame-ancestors"===(null==t?void 0:t.toLowerCase())?`Content Security Policy${a}: The display of ${e} in a frame was blocked because an ancestor violates your site's frame-ancestors policy.
158
158
  Current CSP: "${i}".`:`Content Security Policy${a}: ${getArticle(r=getResourceType(e,t))+" "+r+((o=formatBlockedUri(e))?" from "+o:"")} was blocked by your site's \`${getDirective(i,t)||t}\` policy.
159
159
  Current CSP: "${i}".`}catch(s){return"Content Security Policy: Error formatting violation message: "+s.message}}const MAX_LENGTH=1e3,PII_PATTERN={ip:/\b(?:\d{1,3}\.){3}\d{1,3}\b/g,ssn:/\b\d{3}-\d{2}-\d{4}\b/g,creditCard:/\b(?:\d[ -]?){12,18}\d\b/g,httpsUrls:/https:\/\/[^\s]+/g,email:/[\w._+-]+@[\w.-]+\.\w+/g},PII_REPLACEMENT="*".repeat(10),JSON_PII_KEYS=["password","email","key","token","auth","authentication","phone","address","ssn"],UNABLE_TO_DISPLAY_BODY="[Unable to display body: detected PII could not be redacted]",joinedKeys=JSON_PII_KEYS.join("|"),keyPattern=`"([^"]*(?:${joinedKeys})[^"]*)"`,acceptedValues='("([^"\\\\]*(?:\\\\.[^"\\\\]*)*")|(\\d+)|(true|false))';function truncate(e,t=!1){return e.length<=MAX_LENGTH?e:t?e.slice(0,MAX_LENGTH).concat("..."):e.slice(0,MAX_LENGTH)}function generateLogKey(e,t,n){return e+`|${t}|`+n}function mightContainPII(e){return/[\d]{2,}|https:\/\/|@/.test(e)}function scrubPII({string:e,_:t}){return e&&"string"==typeof e&&mightContainPII(e)?t.reduce(t.values(PII_PATTERN),(e,t)=>e.replace(t,PII_REPLACEMENT),e):e}function scrubJsonPII(e){var t;return new RegExp(keyPattern+"\\s*:\\s*[\\{\\[]","i").test(e)?UNABLE_TO_DISPLAY_BODY:(t=new RegExp(keyPattern+"\\s*:\\s*"+acceptedValues,"gi"),e.replace(t,(e,t)=>`"${t}":"${PII_REPLACEMENT}"`))}function mightContainJson(e,t){return!!(e&&"string"==typeof e&&(e=e.charAt(0),t&&-1!==t.indexOf("application/json")||"{"===e||"["===e))}function maskSensitiveFields({string:e,contentType:t,_:n}){return e=e&&"string"==typeof e&&mightContainPII(e=mightContainJson(e,t)?scrubJsonPII(e):e)?scrubPII({string:e,_:n}):e}const DEV_LOG_TYPE="devlog",DEV_LOG_SEND_INTERVAL=5e3;function createDevLogEnvelope(e,t){return{browser_time:e.util.getNow(),url:t.url.get(),visitorId:t.get_visitor_id(),accountId:t.get_account_id(),type:DEV_LOG_TYPE}}const TOKEN_MAX_SIZE=100,TOKEN_REFILL_RATE=10,TOKEN_REFRESH_INTERVAL=1e3,MAX_UNCOMPRESSED_SIZE=125e3;class DevlogBuffer{constructor(e,t){this.pendo=e,this.pluginAPI=t,this.events=[],this.lastEvent=null,this.uncompressedSize=0,this.payloads=[],this.tokens=TOKEN_MAX_SIZE,this.lastRefillTime=this.pluginAPI.util.getNow(),this.nextRefillTime=this.lastRefillTime+TOKEN_REFRESH_INTERVAL}isEmpty(){return 0===this.events.length&&0===this.payloads.length}refillTokens(){var e,t=this.pluginAPI.util.getNow();t>=this.nextRefillTime&&(e=t-this.lastRefillTime,e=Math.floor(e/TOKEN_REFRESH_INTERVAL)*TOKEN_REFILL_RATE,this.tokens=Math.min(this.tokens+e,TOKEN_MAX_SIZE),this.lastRefillTime=t,this.nextRefillTime=t+TOKEN_REFRESH_INTERVAL)}clear(){this.events=[],this.lastEvent=null,this.uncompressedSize=0}hasTokenAvailable(){return this.refillTokens(),0<this.tokens}estimateEventSize(e){return JSON.stringify(e).length}push(e){var t;return!!this.hasTokenAvailable()&&(t=this.estimateEventSize(e),this.uncompressedSize+t>MAX_UNCOMPRESSED_SIZE&&this.compressCurrentChunk(),this.uncompressedSize+=t,this.lastEvent=e,this.events.push(e),this.tokens=Math.max(this.tokens-1,0),!0)}compressCurrentChunk(){var e;0!==this.events.length&&(e=this.pendo.compress(this.events),this.payloads.push(e),this.clear())}generateUrl(){var e={v:this.pendo.VERSION,ct:this.pluginAPI.util.getNow()};return this.pluginAPI.transmit.buildBaseDataUrl(DEV_LOG_TYPE,this.pendo.apiKey,e)}pack(){if(!this.isEmpty()){const t=this.generateUrl();this.compressCurrentChunk();var e=this.pendo._.map(this.payloads,e=>({jzb:e,url:t}));return this.payloads=[],e}}}class DevlogTransport{constructor(e,t){this.pendo=e,this.pluginAPI=t}buildGetUrl(e,t){var n={},i=(this.pluginAPI.agent.treatAsAdoptPartner()&&this.pluginAPI.agent.addAccountIdParams(n,this.pendo.get_account_id(),this.pluginAPI.ConfigReader.get("oemAccountId")),this.pluginAPI.agent.getJwtInfoCopy()),i=(this.pendo._.isEmpty(i)||this.pendo._.extend(n,i),n.jzb=t,this.pendo._.map(n,(e,t)=>t+"="+e).join("&"));return""+e+(-1!==e.indexOf("?")?"&":"?")+i}get(e,t){return t.method="GET",this.pluginAPI.transmit.fetchKeepalive.supported()?this.pluginAPI.transmit.fetchKeepalive(e,t):this.pendo.ajax.get(e)}sendRequestWithGet({url:e,jzb:t}){e=this.buildGetUrl(e,t);return this.get(e,{headers:{"Content-Type":"application/octet-stream"}})}post(e,t){return t.method="POST",t.keepalive&&this.pluginAPI.transmit.fetchKeepalive.supported()?this.pluginAPI.transmit.fetchKeepalive(e,t):t.keepalive&&this.pluginAPI.transmit.sendBeacon.supported()?this.pluginAPI.transmit.sendBeacon(e,new Blob([t.body]))?Promise$2.resolve():Promise$2.reject(new Error("sendBeacon failed to send devlog data")):this.pendo.ajax.post(e,t.body)}sendRequestWithPost({url:e,jzb:t},n){var i=this.pluginAPI.agent.getJwtInfoCopy(),t={events:t,browser_time:this.pluginAPI.util.getNow()},t=(this.pluginAPI.agent.treatAsAdoptPartner()&&this.pluginAPI.agent.addAccountIdParams(t,this.pendo.get_account_id(),this.pluginAPI.ConfigReader.get("oemAccountId")),JSON.stringify(this.pendo._.extend(t,i)));return this.post(e,{body:t,headers:{"Content-Type":"application/json"},keepalive:n})}sendRequest({url:e,jzb:t},n){return t.length<=this.pluginAPI.constants.ENCODED_EVENT_MAX_LENGTH&&!this.pluginAPI.ConfigReader.get("sendEventsWithPostOnly")?this.sendRequestWithGet({url:e,jzb:t}):this.sendRequestWithPost({url:e,jzb:t},n)}}function ConsoleCapture(){let a,s,d,u,i,r,o,c,l=!1,p=!1,e=!1;const h="captureConsoleLogs",f="alwaysCaptureDevLogErrors",g="consoleLogLevels",m=["log","warn","error","info"],v="console",y=["error","warn","info"];let b=y,w="";return{name:"ConsoleCapture",initialize:function(e,t){s=e._;var t=(a=t)["ConfigReader"],n=(t.addOption(h,[t.sources.PENDO_CONFIG_SRC],!1),t.addOption(f,[t.sources.PENDO_CONFIG_SRC],!1),t.addOption(g,[t.sources.PENDO_CONFIG_SRC],y),t.get(h));n&&(p=!!t.get(f),b=t.get(g),d=e,u=new DevlogBuffer(e,a),o=new DevlogTransport(e,a),i=new a.SendQueue(o.sendRequest.bind(o)),r=setInterval(()=>{i.failed()||M()},DEV_LOG_SEND_INTERVAL),i.start(),a.Events.ready.on(x),a.Events["recording:unpaused"].on(C),a.Events["recording:paused"].on(T),a.Events.appUnloaded.on(E),a.Events.appHidden.on(S),a.Events["ptm:paused"].on(I),a.Events["ptm:unpaused"].on(_))},teardown:L,addIntercepts:n,createConsoleEvent:O,captureStackTrace:N,send:M,setCaptureState:t,recordingStarted:C,recordingStopped:T,onAppHidden:S,onAppUnloaded:E,onPtmPaused:I,onPtmUnpaused:_,securityPolicyViolationFn:R,uncaughtErrorFn:A,unhandledRejectionFn:k,get isCapturingConsoleLogs(){return l},get buffer(){return u},get sendQueue(){return i},get isPtmPaused(){return c}};function S(){M({hidden:!0})}function E(){M({unload:!0})}function I(){c=!0}function _(){if(c=!1,!u.isEmpty()){for(const e of u.events)a.Events.eventCaptured.trigger(e);M()}}function t({shouldCapture:e=!1,reason:t=""}={}){e!==l&&(l=e,a.log.info("[ConsoleCapture] Console log capture "+(e?"started":"stopped")+(t?": "+t:"")))}function C(){t({shouldCapture:e=!0,reason:"recording started"})}function T(){e=!1,p||t({shouldCapture:!1,reason:"recording stopped"})}function x(){try{n(),a.attachEventInternal(window,"securitypolicyviolation",R),a.attachEventInternal(window,"error",A),a.attachEventInternal(window,"unhandledrejection",k)}catch(e){return a.log.error("Error setting up console capture intercepts: ",e),void L()}p&&t({shouldCapture:!0,reason:"always capture dev log errors"})}function n(){s.each(m,function(n){const e=console[n];e&&(console[n]=s.wrap(e,function(e){var t=s.toArray(arguments).slice(1);e.apply(console,t),O(t,n)}),console[n]._pendoUnwrap=function(){console[n]=e})})}function R(e){var t,n,i,r;e&&"object"==typeof e&&({blockedURI:e,violatedDirective:t,effectiveDirective:n,disposition:i,originalPolicy:r}=e,O([createCspViolationMessage(e,t||n,e="report"===i,r)],e?"warn":"error",{skipStackTrace:!0,skipScrubPII:!0}))}function A(e){var t;e&&"object"==typeof e&&(t=e.message||e.error&&String(e.error))&&(t=0===t.indexOf("Uncaught")?t:"Uncaught "+t,O([(e=e.error&&e.error.stack)?t+`
160
- `+e:t],"error",{skipStackTrace:!0}))}function k(e){e&&"object"==typeof e&&(e=e["reason"],O(["Uncaught (in promise)",e&&e.stack?e.stack:e],"error",{skipStackTrace:!0}))}function O(t,n,{skipStackTrace:i=!1,skipScrubPII:r=!1}={}){if(l&&t&&0!==t.length&&s.contains(m,n)&&(!p||e||"error"===n)){var o="log"===n?"info":n;if(s.contains(b,o)){t=s.compact(s.map(t,e=>{let t;try{t=stringify(e,MAX_LENGTH)}catch(n){a.log.error("Error stringifying arg: ",n)}return t})).join(" ");if(t){let e="";i||(e=N("error"===n?4:1));i=generateLogKey(n,t=truncate(t),e=truncate(e));if(i===w&&u.lastEvent)u.lastEvent.devLogCount++;else if(u.hasTokenAvailable())return n=createDevLogEnvelope(a,d),n=Object.assign(Object.assign({},n),{subType:v,devLogLevel:o,devLogMessage:r?t:scrubPII({string:t,_:s}),devLogTrace:e,devLogCount:1}),c||a.Events.eventCaptured.trigger(n),u.push(n),o=i,w=o,n}}}}function N(e){try{var t=ErrorStackParser.parse(new Error,e);return s.map(t,e=>e.toString()).join("\n")}catch(n){return""}}function M({unload:e=!1,hidden:t=!1}={}){var n;u&&!u.isEmpty()&&(d.isSendingEvents()?(n=u.pack())&&0!==n.length&&(e||t?i.drain(n,e):i.push(...n)):u.clear())}function L(){M({unload:!0}),r&&clearInterval(r),i&&i.stop(),u&&u.clear(),a.Events.appHidden.off(S),a.Events.appUnloaded.off(E),a.Events["ptm:paused"].off(I),a.Events["ptm:unpaused"].off(_),a.Events["recording:unpaused"].off(C),a.Events["recording:paused"].off(T),a.detachEventInternal(window,"securitypolicyviolation",R),a.detachEventInternal(window,"error",A),a.detachEventInternal(window,"unhandledrejection",k),s.each(m,function(e){if(!console[e])return s.noop;e=console[e]._pendoUnwrap;s.isFunction(e)&&e()})}}function NetworkCapture(){let o,a,n={},i,r,s,d,u,c,l,p,h=!1,f=!1,g=!1,m=[];const v="captureNetworkRequests",y="alwaysCaptureDevLogErrors",D="network",t="networkLogs",b="networkLogs.allowedRequestHeaders",w="networkLogs.allowedResponseHeaders",F="networkLogs.captureRequestBody",U="networkLogs.captureResponseBody",G="networkLogs.excludeRequestUrls",S={"content-type":!0,"content-length":!0,accept:!0,"accept-language":!0},E={"cache-control":!0,"content-length":!0,"content-type":!0,"content-language":!0};return{name:"NetworkCapture",initialize:function(e,t){o=t,a=e;var t=o["ConfigReader"],n=(t.addOption(v,[t.sources.PENDO_CONFIG_SRC],!1),t.addOption(y,[t.sources.PENDO_CONFIG_SRC],!1),t.get(v));n&&(f=!!t.get(y),i=new DevlogBuffer(e,o),d=new DevlogTransport(e,o),r=new o.SendQueue(d.sendRequest.bind(d)),B(),I(b,S),I(w,E),H(),z(),s=setInterval(()=>{r.failed()||P()},DEV_LOG_SEND_INTERVAL),r.start(),o.Events.ready.on(j),o.Events["recording:unpaused"].on(R),o.Events["recording:paused"].on(A),o.Events["ptm:paused"].on(_),o.Events["ptm:unpaused"].on(C),o.Events.appHidden.on(T),o.Events.appUnloaded.on(x),p=o.transmit.buildBaseDataUrl(DEV_LOG_TYPE,a.apiKey))},teardown:function(){s&&clearInterval(s);r&&r.stop();i&&i.clear();o.NetworkRequest.off({request:k,response:O,error:N}),n={},o.Events["ptm:paused"].off(_),o.Events["ptm:unpaused"].off(C),o.Events.appHidden.off(T),o.Events.appUnloaded.off(x),o.Events["recording:unpaused"].off(R),o.Events["recording:paused"].off(A)},handleRequest:k,handleResponse:O,handleError:N,startCapture:j,createNetworkEvent:K,send:P,onPtmPaused:_,onPtmUnpaused:C,onAppHidden:T,onAppUnloaded:x,setCaptureState:e,recordingStarted:R,recordingStopped:A,addConfigOptions:B,processHeaderConfig:I,extractHeaders:M,setupBodyCallbacks:H,processBody:L,processRequestBody:q,processResponseBody:V,buildExcludeRequestUrls:z,isUrlExcluded:W,get isCapturingNetworkLogs(){return h},get requestMap(){return n},get buffer(){return i},get sendQueue(){return r},get isPtmPaused(){return u},get allowedRequestHeaders(){return S},get allowedResponseHeaders(){return E},get requestBodyCb(){return c},get responseBodyCb(){return l},get excludeRequestUrls(){return m}};function B(){var e=o["ConfigReader"];e.addOption(t,[e.sources.SNIPPET_SRC],{}),e.addOption(b,[e.sources.SNIPPET_SRC],[]),e.addOption(w,[e.sources.SNIPPET_SRC],[]),e.addOption(F,[e.sources.SNIPPET_SRC],undefined),e.addOption(U,[e.sources.SNIPPET_SRC],undefined),e.addOption(G,[e.sources.SNIPPET_SRC],[])}function I(e,t){e=o.ConfigReader.get(e);e&&0!==e.length&&a._.each(e,e=>{e&&a._.isString(e)&&(t[e.toLowerCase()]=!0)})}function H(){var e=o.ConfigReader.get(t);e&&(a._.isFunction(e.captureRequestBody)&&(c=e.captureRequestBody),a._.isFunction(e.captureResponseBody))&&(l=e.captureResponseBody)}function z(){var e=o.ConfigReader.get(G);e&&0!==e.length&&a._.each(e,e=>{e=function(e){if(e){var t=a._.isRegExp(e);if(a._.isString(e)||t)return t?e:(t=o.util.escapeRegExp(e),new RegExp(`^${t}$`))}}(e);e&&m.push(e)})}function _(){u=!0}function C(){if(u=!1,!i.isEmpty()){for(const e of i.events)o.Events.eventCaptured.trigger(e);P()}}function T(){P({hidden:!0})}function x(){P({unload:!0})}function e({shouldCapture:e=!1,reason:t=""}={}){e!==h&&(h=e,o.log.info("[NetworkCapture] Network request capture "+(e?"started":"stopped")+(t?": "+t:"")))}function R(){return e({shouldCapture:g=!0,reason:"recording started"})}function A(){if(g=!1,!f)return e({shouldCapture:!1,reason:"recording stopped"})}function j(){o.NetworkRequest.on({request:k,response:O,error:N}),f&&e({shouldCapture:!0,reason:"always capture dev log errors"})}function W(t){return!(!t||!a._.isString(t))&&0!==m.length&&a._.some(m,e=>e.test(t))}function k(e){h&&e&&!W(e.url)&&(n[e.requestId]=e)}function O(e){var t;h&&e&&(t=n[e.requestId])&&(-1!==t.url.indexOf(p)&&200===e.status||(!f||g||400<=e.status)&&i.hasTokenAvailable()&&(t=K({request:t,response:e}),u||o.Events.eventCaptured.trigger(t),i.push(t)),delete n[e.requestId])}function N({error:e,context:t}){h&&(e.requestId&&n[e.requestId]&&delete n[e.requestId],-1!==t.indexOf("fetch")&&o.log.debug("[NetworkCapture] Fetch tracking failed:",e),-1!==t.indexOf("xhr"))&&o.log.debug("[NetworkCapture] XHR tracking failed:",e)}function M(i,r){var{keys:e,reduce:t}=a._;return i&&r?t(e(i),(e,t)=>{var n=t.toLowerCase();return r[n]&&e.push(t+": "+i[t]),e},[]):[]}function L(e,t){return e&&a._.isString(e)?truncate(maskSensitiveFields({string:e,contentType:t,_:a._}),!0):""}function q({request:e}){if(!e||!e.body||!c)return"";try{return L(c(e.body,{request:e}),a._.get(e,"headers.content-type",""))}catch(t){return o.log.error("[NetworkCapture] Error processing request body",t),"[Failed to process request body]"}}function V({response:e,bodyCb:t=l}){if(!e||!e.body||!t)return"";try{return L(t(e.body,{response:e}),a._.get(e,"headers.content-type",""))}catch(n){return o.log.error("[NetworkCapture] Error processing response body",n),"[Failed to process response body]"}}function K({request:e,response:t}){var n=createDevLogEnvelope(o,a),i=M(e.headers,S),r=M(t.headers,E),n=Object.assign(Object.assign({},n),{subType:D,devLogMethod:e.method,devLogStatusCode:t.status,devLogRequestUrl:e.url,devLogRequestHeaders:i,devLogResponseHeaders:r,devLogCount:1}),r=(c&&(n.devLogRequestBody=q({request:e})),i=t,l||(f&&400<=i.status?e=>e:undefined));return r&&(n.devLogResponseBody=V({response:t,bodyCb:r})),n}function P({unload:e=!1,hidden:t=!1}={}){var n;i&&!i.isEmpty()&&(a.isSendingEvents()?(n=i.pack(),e||t?r.drain(n,e):r.push(...n)):i.clear())}}var underscore={exports:{}},underscoreExports=(!function(){var e;e=function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof commonjsGlobal&&commonjsGlobal.global===commonjsGlobal&&commonjsGlobal||Function("return this")()||{},i=Array.prototype,D=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,U=i.push,d=i.slice,l=D.toString,G=D.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),B=Array.isArray,H=Object.keys,z=Object.create,j=t&&ArrayBuffer.isView,W=isNaN,q=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),K=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],$=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 J(e){return void 0===e}function Y(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var X=r("String"),Z=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 Z(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<=$}}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=K.length,i=e.constructor,r=p(i)&&i.prototype||D,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=K[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(H)return H(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return V&&fe(e,n),n}function ge(e,t){var n=y(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function c(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=l.call(e);if(r!==l.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return F.valueOf.call(e)===F.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 V&&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 Ee(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Ie(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function _e(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 Ce=_e(u),s=_e(y),Te=_e(u,!0);function xe(e){var t;return o(e)?z?z(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function Re(e){return f(e)?e:[e]}function S(e){return b.toPath(e)}function Ae(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function ke(e,t,n){e=Ae(e,S(t));return J(e)?n:e}function Oe(e){return e}function E(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return Ae(e,t)}}function I(r,o,e){if(void 0===o)return r;switch(null==e?3:e){case 1:return function(e){return r.call(o,e)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return function(){return r.apply(o,arguments)}}function Me(e,t,n){return null==e?Oe:p(e)?I(e,t,n):(o(e)&&!f(e)?E:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function _(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Pe(){}function De(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=Re,b.iteratee=Le;var C=Date.now||function(){return(new Date).getTime()};function Fe(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=Fe(t),t=Fe(Ee(t)),Ge=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Be=/(.)^/,He={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ze=/\\|'|\r|\n|\u2028|\u2029/g;function je(e){return"\\"+He[e]}var We=/^\s*(\w|\$)+\s*$/;var qe=0;function Ve(e,t,n,i,r){return i instanceof t?(i=xe(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var T=c(function(r,o){var a=T.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),i=0;i<t;i++)n[i]=o[i]===a?arguments[e++]:o[i];for(;e<arguments.length;)n.push(arguments[e++]);return Ve(r,s,this,this,n)};return s}),Ke=(T.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return Ve(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),x=ue(v);function R(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(x(s)&&(f(s)||ae(s)))if(1<t)R(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 $e=c(function(e,t){var n=(t=R(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Ke(e[i],e)}return e});var Je=c(function(e,t,n){return setTimeout$1(function(){return e.apply(null,n)},t)}),Ye=T(Je,b,1);function Xe(e){return function(){return!e.apply(this,arguments)}}function Ze(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=T(Ze,2);function et(e,t,n){t=_(t,n);for(var i,r=y(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function tt(o){return function(e,t,n){t=_(t,n);for(var i=v(e),r=0<o?0:i-1;0<=r&&r<i;r+=o)if(t(e[r],r,e))return r;return-1}}var nt=tt(1),it=tt(-1);function rt(e,t,n,i){for(var r=(n=_(n,i,1))(t),o=0,a=v(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function ot(o,a,s){return function(e,t,n){var i=0,r=v(e);if("number"==typeof n)0<o?i=0<=n?n:Math.max(n+r,i):r=0<=n?Math.min(n+1,r):n+r+1;else if(s&&n&&r)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(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=(x(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function A(e,t,n){if(t=I(t,n),x(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 k(e,t,n){t=_(t,n);for(var i=!x(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=I(t,i,4),s=n,d=!x(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=_(i,t),A(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=_(t,n);for(var i=!x(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=_(t,n);for(var i=!x(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 x(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]),k(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Ae(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return k(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=x(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&o<n&&(o=n);else i=_(i,t),A(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?d.call(e):X(e)?e.match(vt):x(e)?k(e,Oe):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=x(e)?e:w(e))[De(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=De(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function M(o,t){return function(n,i,e){var r=t?[[],[]]:{};return i=_(i,e),A(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var wt=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),St=M(function(e,t,n){e[n]=t}),Et=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),It=M(function(e,t,n){e[n?0:1].push(t)},!0);function _t(e,t,n){return t in n}var Ct=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=I(i,t[1])),t=u(e)):(i=_t,t=R(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}),Tt=c(function(e,n){var t,i=n[0];return p(i)?(i=Xe(i),1<n.length&&(t=n[1])):(n=k(R(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Ct(e,i,t)});function xt(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Rt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:xt(e,e.length-t)}function L(e,t,n){return d.call(e,null==t||n?1:t)}var At=c(function(e,t){return t=R(t,!0,!0),O(e,function(e){return!N(t,e)})}),kt=c(function(e,t){return At(e,t)});function Ot(e,t,n,i){Y(t)||(i=n,n=t,t=!1),null!=n&&(n=_(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var 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(R(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Pt(e,t){return e._chain?b(t).chain():t}function Dt(n){return A(Ie(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return U.apply(e,arguments),Pt(this,t.apply(b,e))}}),b}A(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Pt(this,e)}}),A(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Pt(this,e=null!=e?t.apply(e,arguments):e)}});var P=Dt({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:J,isBoolean:Y,isElement:function(e){return!(!e||1!==e.nodeType)},isString:X,isNumber:Z,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)||X(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:B,isWeakSet:a,keys:y,allKeys: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:Ee,functions:Ie,methods:Ie,extend:Ce,extendOwn:s,assign:s,defaults:Te,create:function(e,t){return e=xe(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:ke,has:function(e,t){for(var n=(t=S(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=_(t,n);for(var i=y(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Oe,constant:de,noop:Pe,toPath:Re,property:Ne,propertyOf:function(t){return null==t?Pe:function(e){return ke(t,e)}},matcher:E,matches:E,times:function(e,t,n){var i=Array(Math.max(0,e));t=I(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:De,now:C,escape:Ue,unescape:t,templateSettings:Ge,template:function(o,e,t){e=Te({},e=!e&&t?t:e,b.templateSettings);var n,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(ze,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{n=new Function(t,"_",s)}catch(i){throw i.source=s,i}return(e=function(e){return n.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:T,bind:Ke,bindAll:$e,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:Je,defer:Ye,throttle:function(n,i,r){var o,a,s,d,u=0,c=(r=r||{},function(){u=!1===r.leading?0:C(),o=null,d=n.apply(a,s),o||(a=s=null)}),e=function(){var e=C(),t=(u||!1!==r.leading||(u=e),i-(e-u));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout$1(o),o=null),u=e,d=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=setTimeout$1(c,t)),d};return e.cancel=function(){clearTimeout$1(o),u=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,d,u=function(){var e=C()-o;e<n?r=setTimeout$1(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=C(),r||(r=setTimeout$1(u,n),i&&(s=t.apply(d,a))),s});return e.cancel=function(){clearTimeout$1(r),r=a=d=null},e},wrap:function(e,t){return T(t,e)},negate:Xe,compose:function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:Ze,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,E(t))},each:A,forEach:A,map:k,collect:k,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Xe(_(t)),n)},every:pt,all:pt,some:ht,any:ht,contains:N,includes:N,include:N,invoke:ft,pluck:gt,where:function(e,t){return O(e,E(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=x(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&n<o&&(o=n);else i=_(i,t),A(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=_(i,t),gt(k(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:wt,indexBy:St,countBy:Et,partition:It,toArray:yt,size:function(e){return null==e?0:(x(e)?e:y(e)).length},pick:Ct,omit:Tt,first:Rt,head:Rt,take:Rt,initial:xt,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 R(e,t,!1)},without:kt,uniq:Ot,unique:Ot,union:Nt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=v(e);i<r;i++){var o=e[i];if(!N(t,o)){for(var a=1;a<n&&N(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:At,unzip:Mt,transpose:Mt,zip:Lt,object:function(e,t){for(var n={},i=0,r=v(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n=n||(t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(d.call(e,i,i+=t));return n},mixin:Dt,"default":b}),Ft=P.toPath;return P.mixin({toPath:function(e){return P.isString(e)?e.split("."):Ft(e)}}),P._=P},underscore.exports=e()}(),underscore.exports),_=getDefaultExportFromCjs(underscoreExports),encodeURIComponent=_.isFunction(globalScope.encodeURIComponent)?globalScope.encodeURIComponent:_.identity;const WIDGET_SETTINGS_API="/external/widget/settings";class PredictApiService{constructor({baseUrl:e,token:t}){this.performRequest=(n,i)=>__awaiter(this,void 0,void 0,function*(){var e,t=yield fetch(n,i);return t.ok?{ok:!0,status:t.status,body:yield t.json()}:(null!=(e=t.body)&&e.cancel()["catch"](()=>{}),{ok:!1,status:t.status,body:null})}),this.getWidgetSettingsById=(s,d)=>__awaiter(this,void 0,void 0,function*(){var e,t;if(!s)return d("[predict] no id provided"),null;try{var n,{ok:i,status:r,body:o}=yield this.performRequest(""+this.baseUrl+WIDGET_SETTINGS_API+"/"+s,{method:"GET",headers:{"Content-Type":"application/json",Authorization:this.token}});return i?null!=(e=null==(n=o)?void 0:n.errors)&&e.length?(d("[predict] error getting widget settings by id: "+n.errors),null):null!=(t=null==n?void 0:n.data)?t:null:(d("[predict] error getting widget settings by id: "+r),null)}catch(a){return d("[predict] error getting widget settings by id: "+a),null}}),this.baseUrl=e,this.token=t}}const PREDICT_STEP_REGEX=/\$\$predict\$\$/,DRAG_THRESHOLD=5,FLOATING_MODAL_OFFSET="20px",DEFAULT_INITIAL_POSITION="TOP_RIGHT",STYLE_ID="pendo-predict-plugin-styles",GUIDE_BUTTON_IDENTIFIER='button:contains("token")',pluginVersion="1.0.1",PREDICT_SANDBOX_PAGE="predict-sandbox.html",getPredictBaseUrl=e=>e.replace("app","predict"),getPredictApiBaseUrl=e=>e.replace("predict","predict-api"),EXTENSION_ORIGIN_REGEX=/^(chrome|moz|safari-web)-extension:\/\//,getFrameWrapperBase=e=>{var t,e=(null==(t=null==e?void 0:e.getConfigValue)?void 0:t.call(e,"assetHost"))||"";return EXTENSION_ORIGIN_REGEX.test(e)?e.replace(/\/$/,""):""},buildFrameSrc=(e,t)=>t?`${t}/${PREDICT_SANDBOX_PAGE}?target=`+encodeURIComponent(e):e,getFrameTargetOrigin=(e,t)=>e||t,$=e=>document.getElementById(e),createElement=(e,t={},n=null)=>{var i=document.createElement(e),r=Object.entries(t);for(let e=0;e<r.length;e++){var[o,a]=r[e];"className"===o?i.className=a:"innerHTML"===o?i.innerHTML=a:i[o]=a}return n&&n.appendChild(i),i},injectStyles=(e,t=()=>{})=>{var n=STYLE_ID+"-"+e;$(n)?t("[predict] style already exists, skipping: "+n):(t("[predict] injecting styles: "+n),createElement("style",{id:n,textContent:`
160
+ `+e:t],"error",{skipStackTrace:!0}))}function k(e){e&&"object"==typeof e&&(e=e["reason"],O(["Uncaught (in promise)",e&&e.stack?e.stack:e],"error",{skipStackTrace:!0}))}function O(t,n,{skipStackTrace:i=!1,skipScrubPII:r=!1}={}){if(l&&t&&0!==t.length&&s.contains(m,n)&&(!p||e||"error"===n)){var o="log"===n?"info":n;if(s.contains(b,o)){t=s.compact(s.map(t,e=>{let t;try{t=stringify(e,MAX_LENGTH)}catch(n){a.log.error("Error stringifying arg: ",n)}return t})).join(" ");if(t){let e="";i||(e=N("error"===n?4:1));i=generateLogKey(n,t=truncate(t),e=truncate(e));if(i===w&&u.lastEvent)u.lastEvent.devLogCount++;else if(u.hasTokenAvailable())return n=createDevLogEnvelope(a,d),n=Object.assign(Object.assign({},n),{subType:v,devLogLevel:o,devLogMessage:r?t:scrubPII({string:t,_:s}),devLogTrace:e,devLogCount:1}),c||a.Events.eventCaptured.trigger(n),u.push(n),o=i,w=o,n}}}}function N(e){try{var t=ErrorStackParser.parse(new Error,e);return s.map(t,e=>e.toString()).join("\n")}catch(n){return""}}function M({unload:e=!1,hidden:t=!1}={}){var n;u&&!u.isEmpty()&&(d.isSendingEvents()?(n=u.pack())&&0!==n.length&&(e||t?i.drain(n,e):i.push(...n)):u.clear())}function L(){M({unload:!0}),r&&clearInterval(r),i&&i.stop(),u&&u.clear(),a.Events.appHidden.off(S),a.Events.appUnloaded.off(E),a.Events["ptm:paused"].off(I),a.Events["ptm:unpaused"].off(_),a.Events["recording:unpaused"].off(C),a.Events["recording:paused"].off(T),a.detachEventInternal(window,"securitypolicyviolation",R),a.detachEventInternal(window,"error",A),a.detachEventInternal(window,"unhandledrejection",k),s.each(m,function(e){if(!console[e])return s.noop;e=console[e]._pendoUnwrap;s.isFunction(e)&&e()})}}function NetworkCapture(){let o,a,n={},i,r,s,d,u,c,l,p,h=!1,f=!1,g=!1,m=[];const v="captureNetworkRequests",y="alwaysCaptureDevLogErrors",D="network",t="networkLogs",b="networkLogs.allowedRequestHeaders",w="networkLogs.allowedResponseHeaders",F="networkLogs.captureRequestBody",U="networkLogs.captureResponseBody",G="networkLogs.excludeRequestUrls",S={"content-type":!0,"content-length":!0,accept:!0,"accept-language":!0},E={"cache-control":!0,"content-length":!0,"content-type":!0,"content-language":!0};return{name:"NetworkCapture",initialize:function(e,t){o=t,a=e;var t=o["ConfigReader"],n=(t.addOption(v,[t.sources.PENDO_CONFIG_SRC],!1),t.addOption(y,[t.sources.PENDO_CONFIG_SRC],!1),t.get(v));n&&(f=!!t.get(y),i=new DevlogBuffer(e,o),d=new DevlogTransport(e,o),r=new o.SendQueue(d.sendRequest.bind(d)),B(),I(b,S),I(w,E),H(),z(),s=setInterval(()=>{r.failed()||P()},DEV_LOG_SEND_INTERVAL),r.start(),o.Events.ready.on(j),o.Events["recording:unpaused"].on(R),o.Events["recording:paused"].on(A),o.Events["ptm:paused"].on(_),o.Events["ptm:unpaused"].on(C),o.Events.appHidden.on(T),o.Events.appUnloaded.on(x),p=o.transmit.buildBaseDataUrl(DEV_LOG_TYPE,a.apiKey))},teardown:function(){s&&clearInterval(s);r&&r.stop();i&&i.clear();o.NetworkRequest.off({request:k,response:O,error:N}),n={},o.Events["ptm:paused"].off(_),o.Events["ptm:unpaused"].off(C),o.Events.appHidden.off(T),o.Events.appUnloaded.off(x),o.Events["recording:unpaused"].off(R),o.Events["recording:paused"].off(A)},handleRequest:k,handleResponse:O,handleError:N,startCapture:j,createNetworkEvent:K,send:P,onPtmPaused:_,onPtmUnpaused:C,onAppHidden:T,onAppUnloaded:x,setCaptureState:e,recordingStarted:R,recordingStopped:A,addConfigOptions:B,processHeaderConfig:I,extractHeaders:M,setupBodyCallbacks:H,processBody:L,processRequestBody:W,processResponseBody:V,buildExcludeRequestUrls:z,isUrlExcluded:q,get isCapturingNetworkLogs(){return h},get requestMap(){return n},get buffer(){return i},get sendQueue(){return r},get isPtmPaused(){return u},get allowedRequestHeaders(){return S},get allowedResponseHeaders(){return E},get requestBodyCb(){return c},get responseBodyCb(){return l},get excludeRequestUrls(){return m}};function B(){var e=o["ConfigReader"];e.addOption(t,[e.sources.SNIPPET_SRC],{}),e.addOption(b,[e.sources.SNIPPET_SRC],[]),e.addOption(w,[e.sources.SNIPPET_SRC],[]),e.addOption(F,[e.sources.SNIPPET_SRC],undefined),e.addOption(U,[e.sources.SNIPPET_SRC],undefined),e.addOption(G,[e.sources.SNIPPET_SRC],[])}function I(e,t){e=o.ConfigReader.get(e);e&&0!==e.length&&a._.each(e,e=>{e&&a._.isString(e)&&(t[e.toLowerCase()]=!0)})}function H(){var e=o.ConfigReader.get(t);e&&(a._.isFunction(e.captureRequestBody)&&(c=e.captureRequestBody),a._.isFunction(e.captureResponseBody))&&(l=e.captureResponseBody)}function z(){var e=o.ConfigReader.get(G);e&&0!==e.length&&a._.each(e,e=>{e=function(e){if(e){var t=a._.isRegExp(e);if(a._.isString(e)||t)return t?e:(t=o.util.escapeRegExp(e),new RegExp(`^${t}$`))}}(e);e&&m.push(e)})}function _(){u=!0}function C(){if(u=!1,!i.isEmpty()){for(const e of i.events)o.Events.eventCaptured.trigger(e);P()}}function T(){P({hidden:!0})}function x(){P({unload:!0})}function e({shouldCapture:e=!1,reason:t=""}={}){e!==h&&(h=e,o.log.info("[NetworkCapture] Network request capture "+(e?"started":"stopped")+(t?": "+t:"")))}function R(){return e({shouldCapture:g=!0,reason:"recording started"})}function A(){if(g=!1,!f)return e({shouldCapture:!1,reason:"recording stopped"})}function j(){o.NetworkRequest.on({request:k,response:O,error:N}),f&&e({shouldCapture:!0,reason:"always capture dev log errors"})}function q(t){return!(!t||!a._.isString(t))&&0!==m.length&&a._.some(m,e=>e.test(t))}function k(e){h&&e&&!q(e.url)&&(n[e.requestId]=e)}function O(e){var t;h&&e&&(t=n[e.requestId])&&(-1!==t.url.indexOf(p)&&200===e.status||(!f||g||400<=e.status)&&i.hasTokenAvailable()&&(t=K({request:t,response:e}),u||o.Events.eventCaptured.trigger(t),i.push(t)),delete n[e.requestId])}function N({error:e,context:t}){h&&(e.requestId&&n[e.requestId]&&delete n[e.requestId],-1!==t.indexOf("fetch")&&o.log.debug("[NetworkCapture] Fetch tracking failed:",e),-1!==t.indexOf("xhr"))&&o.log.debug("[NetworkCapture] XHR tracking failed:",e)}function M(i,r){var{keys:e,reduce:t}=a._;return i&&r?t(e(i),(e,t)=>{var n=t.toLowerCase();return r[n]&&e.push(t+": "+i[t]),e},[]):[]}function L(e,t){return e&&a._.isString(e)?truncate(maskSensitiveFields({string:e,contentType:t,_:a._}),!0):""}function W({request:e}){if(!e||!e.body||!c)return"";try{return L(c(e.body,{request:e}),a._.get(e,"headers.content-type",""))}catch(t){return o.log.error("[NetworkCapture] Error processing request body",t),"[Failed to process request body]"}}function V({response:e,bodyCb:t=l}){if(!e||!e.body||!t)return"";try{return L(t(e.body,{response:e}),a._.get(e,"headers.content-type",""))}catch(n){return o.log.error("[NetworkCapture] Error processing response body",n),"[Failed to process response body]"}}function K({request:e,response:t}){var n=createDevLogEnvelope(o,a),i=M(e.headers,S),r=M(t.headers,E),n=Object.assign(Object.assign({},n),{subType:D,devLogMethod:e.method,devLogStatusCode:t.status,devLogRequestUrl:e.url,devLogRequestHeaders:i,devLogResponseHeaders:r,devLogCount:1}),r=(c&&(n.devLogRequestBody=W({request:e})),i=t,l||(f&&400<=i.status?e=>e:undefined));return r&&(n.devLogResponseBody=V({response:t,bodyCb:r})),n}function P({unload:e=!1,hidden:t=!1}={}){var n;i&&!i.isEmpty()&&(a.isSendingEvents()?(n=i.pack(),e||t?r.drain(n,e):r.push(...n)):i.clear())}}var underscore={exports:{}},underscoreExports=(!function(){var e;e=function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof commonjsGlobal&&commonjsGlobal.global===commonjsGlobal&&commonjsGlobal||Function("return this")()||{},i=Array.prototype,D=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,U=i.push,d=i.slice,l=D.toString,G=D.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),B=Array.isArray,H=Object.keys,z=Object.create,j=t&&ArrayBuffer.isView,q=isNaN,W=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),K=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],$=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 J(e){return void 0===e}function Y(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var X=r("String"),Z=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 Z(e)&&q(e)}function de(e){return function(){return e}}function ue(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=$}}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=K.length,i=e.constructor,r=p(i)&&i.prototype||D,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=K[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(H)return H(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return V&&fe(e,n),n}function ge(e,t){var n=y(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function c(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=l.call(e);if(r!==l.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return F.valueOf.call(e)===F.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 V&&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 Ee(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Ie(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function _e(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 Ce=_e(u),s=_e(y),Te=_e(u,!0);function xe(e){var t;return o(e)?z?z(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function Re(e){return f(e)?e:[e]}function S(e){return b.toPath(e)}function Ae(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function ke(e,t,n){e=Ae(e,S(t));return J(e)?n:e}function Oe(e){return e}function E(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return Ae(e,t)}}function I(r,o,e){if(void 0===o)return r;switch(null==e?3:e){case 1:return function(e){return r.call(o,e)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return function(){return r.apply(o,arguments)}}function Me(e,t,n){return null==e?Oe:p(e)?I(e,t,n):(o(e)&&!f(e)?E:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function _(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Pe(){}function De(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=Re,b.iteratee=Le;var C=Date.now||function(){return(new Date).getTime()};function Fe(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=Fe(t),t=Fe(Ee(t)),Ge=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Be=/(.)^/,He={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ze=/\\|'|\r|\n|\u2028|\u2029/g;function je(e){return"\\"+He[e]}var qe=/^\s*(\w|\$)+\s*$/;var We=0;function Ve(e,t,n,i,r){return i instanceof t?(i=xe(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var T=c(function(r,o){var a=T.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),i=0;i<t;i++)n[i]=o[i]===a?arguments[e++]:o[i];for(;e<arguments.length;)n.push(arguments[e++]);return Ve(r,s,this,this,n)};return s}),Ke=(T.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return Ve(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),x=ue(v);function R(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(x(s)&&(f(s)||ae(s)))if(1<t)R(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 $e=c(function(e,t){var n=(t=R(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Ke(e[i],e)}return e});var Je=c(function(e,t,n){return setTimeout$1(function(){return e.apply(null,n)},t)}),Ye=T(Je,b,1);function Xe(e){return function(){return!e.apply(this,arguments)}}function Ze(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=T(Ze,2);function et(e,t,n){t=_(t,n);for(var i,r=y(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function tt(o){return function(e,t,n){t=_(t,n);for(var i=v(e),r=0<o?0:i-1;0<=r&&r<i;r+=o)if(t(e[r],r,e))return r;return-1}}var nt=tt(1),it=tt(-1);function rt(e,t,n,i){for(var r=(n=_(n,i,1))(t),o=0,a=v(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function ot(o,a,s){return function(e,t,n){var i=0,r=v(e);if("number"==typeof n)0<o?i=0<=n?n:Math.max(n+r,i):r=0<=n?Math.min(n+1,r):n+r+1;else if(s&&n&&r)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(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=(x(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function A(e,t,n){if(t=I(t,n),x(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 k(e,t,n){t=_(t,n);for(var i=!x(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=I(t,i,4),s=n,d=!x(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=_(i,t),A(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=_(t,n);for(var i=!x(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=_(t,n);for(var i=!x(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 x(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]),k(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Ae(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return k(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=x(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&o<n&&(o=n);else i=_(i,t),A(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?d.call(e):X(e)?e.match(vt):x(e)?k(e,Oe):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=x(e)?e:w(e))[De(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=De(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function M(o,t){return function(n,i,e){var r=t?[[],[]]:{};return i=_(i,e),A(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var wt=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),St=M(function(e,t,n){e[n]=t}),Et=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),It=M(function(e,t,n){e[n?0:1].push(t)},!0);function _t(e,t,n){return t in n}var Ct=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=I(i,t[1])),t=u(e)):(i=_t,t=R(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}),Tt=c(function(e,n){var t,i=n[0];return p(i)?(i=Xe(i),1<n.length&&(t=n[1])):(n=k(R(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Ct(e,i,t)});function xt(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Rt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:xt(e,e.length-t)}function L(e,t,n){return d.call(e,null==t||n?1:t)}var At=c(function(e,t){return t=R(t,!0,!0),O(e,function(e){return!N(t,e)})}),kt=c(function(e,t){return At(e,t)});function Ot(e,t,n,i){Y(t)||(i=n,n=t,t=!1),null!=n&&(n=_(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var 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(R(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Pt(e,t){return e._chain?b(t).chain():t}function Dt(n){return A(Ie(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return U.apply(e,arguments),Pt(this,t.apply(b,e))}}),b}A(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Pt(this,e)}}),A(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Pt(this,e=null!=e?t.apply(e,arguments):e)}});var P=Dt({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:J,isBoolean:Y,isElement:function(e){return!(!e||1!==e.nodeType)},isString:X,isNumber:Z,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&W(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||X(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:B,isWeakSet:a,keys:y,allKeys: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:Ee,functions:Ie,methods:Ie,extend:Ce,extendOwn:s,assign:s,defaults:Te,create:function(e,t){return e=xe(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:ke,has:function(e,t){for(var n=(t=S(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=_(t,n);for(var i=y(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Oe,constant:de,noop:Pe,toPath:Re,property:Ne,propertyOf:function(t){return null==t?Pe:function(e){return ke(t,e)}},matcher:E,matches:E,times:function(e,t,n){var i=Array(Math.max(0,e));t=I(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:De,now:C,escape:Ue,unescape:t,templateSettings:Ge,template:function(o,e,t){e=Te({},e=!e&&t?t:e,b.templateSettings);var n,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(ze,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(!qe.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{n=new Function(t,"_",s)}catch(i){throw i.source=s,i}return(e=function(e){return n.call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=S(t)).length;if(!i)return p(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++We+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:T,bind:Ke,bindAll:$e,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:Je,defer:Ye,throttle:function(n,i,r){var o,a,s,d,u=0,c=(r=r||{},function(){u=!1===r.leading?0:C(),o=null,d=n.apply(a,s),o||(a=s=null)}),e=function(){var e=C(),t=(u||!1!==r.leading||(u=e),i-(e-u));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout$1(o),o=null),u=e,d=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=setTimeout$1(c,t)),d};return e.cancel=function(){clearTimeout$1(o),u=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,d,u=function(){var e=C()-o;e<n?r=setTimeout$1(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=C(),r||(r=setTimeout$1(u,n),i&&(s=t.apply(d,a))),s});return e.cancel=function(){clearTimeout$1(r),r=a=d=null},e},wrap:function(e,t){return T(t,e)},negate:Xe,compose:function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:Ze,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,E(t))},each:A,forEach:A,map:k,collect:k,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Xe(_(t)),n)},every:pt,all:pt,some:ht,any:ht,contains:N,includes:N,include:N,invoke:ft,pluck:gt,where:function(e,t){return O(e,E(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=x(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&n<o&&(o=n);else i=_(i,t),A(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=_(i,t),gt(k(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:wt,indexBy:St,countBy:Et,partition:It,toArray:yt,size:function(e){return null==e?0:(x(e)?e:y(e)).length},pick:Ct,omit:Tt,first:Rt,head:Rt,take:Rt,initial:xt,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 R(e,t,!1)},without:kt,uniq:Ot,unique:Ot,union:Nt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=v(e);i<r;i++){var o=e[i];if(!N(t,o)){for(var a=1;a<n&&N(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:At,unzip:Mt,transpose:Mt,zip:Lt,object:function(e,t){for(var n={},i=0,r=v(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n=n||(t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(d.call(e,i,i+=t));return n},mixin:Dt,"default":b}),Ft=P.toPath;return P.mixin({toPath:function(e){return P.isString(e)?e.split("."):Ft(e)}}),P._=P},underscore.exports=e()}(),underscore.exports),_=getDefaultExportFromCjs(underscoreExports),encodeURIComponent=_.isFunction(globalScope.encodeURIComponent)?globalScope.encodeURIComponent:_.identity;const WIDGET_SETTINGS_API="/external/widget/settings";class PredictApiService{constructor({baseUrl:e,token:t}){this.performRequest=(n,i)=>__awaiter(this,void 0,void 0,function*(){var e,t=yield fetch(n,i);return t.ok?{ok:!0,status:t.status,body:yield t.json()}:(null!=(e=t.body)&&e.cancel()["catch"](()=>{}),{ok:!1,status:t.status,body:null})}),this.getWidgetSettingsById=(s,d)=>__awaiter(this,void 0,void 0,function*(){var e,t;if(!s)return d("[predict] no id provided"),null;try{var n,{ok:i,status:r,body:o}=yield this.performRequest(""+this.baseUrl+WIDGET_SETTINGS_API+"/"+s,{method:"GET",headers:{"Content-Type":"application/json",Authorization:this.token}});return i?null!=(e=null==(n=o)?void 0:n.errors)&&e.length?(d("[predict] error getting widget settings by id: "+n.errors),null):null!=(t=null==n?void 0:n.data)?t:null:(d("[predict] error getting widget settings by id: "+r),null)}catch(a){return d("[predict] error getting widget settings by id: "+a),null}}),this.baseUrl=e,this.token=t}}const PREDICT_STEP_REGEX=/\$\$predict\$\$/,DRAG_THRESHOLD=5,FLOATING_MODAL_OFFSET="20px",DEFAULT_INITIAL_POSITION="TOP_RIGHT",STYLE_ID="pendo-predict-plugin-styles",GUIDE_BUTTON_IDENTIFIER='button:contains("token")',pluginVersion="1.0.1",PREDICT_SANDBOX_PAGE="predict-sandbox.html",getPredictBaseUrl=e=>e.replace("app","predict"),getPredictApiBaseUrl=e=>e.replace("predict","predict-api"),EXTENSION_ORIGIN_REGEX=/^(chrome|moz|safari-web)-extension:\/\//,getFrameWrapperBase=e=>{var t,e=(null==(t=null==e?void 0:e.getConfigValue)?void 0:t.call(e,"assetHost"))||"";return EXTENSION_ORIGIN_REGEX.test(e)?e.replace(/\/$/,""):""},buildFrameSrc=(e,t)=>t?`${t}/${PREDICT_SANDBOX_PAGE}?target=`+encodeURIComponent(e):e,getFrameTargetOrigin=(e,t)=>e||t,$=e=>document.getElementById(e),createElement=(e,t={},n=null)=>{var i=document.createElement(e),r=Object.entries(t);for(let e=0;e<r.length;e++){var[o,a]=r[e];"className"===o?i.className=a:"innerHTML"===o?i.innerHTML=a:i[o]=a}return n&&n.appendChild(i),i},injectStyles=(e,t=()=>{})=>{var n=STYLE_ID+"-"+e;$(n)?t("[predict] style already exists, skipping: "+n):(t("[predict] injecting styles: "+n),createElement("style",{id:n,textContent:`
161
161
  #${e} {
162
162
  display: none !important;
163
163
  }
@@ -201,9 +201,9 @@ Current CSP: "${i}".`}catch(s){return"Content Security Policy: Error formatting
201
201
  .floating-modal-drag-handle.is-dragging { cursor: grabbing; }
202
202
  .floating-modal-drag-handle.is-collapsed { top: 0px; }
203
203
  .frame-floating-modal { width: 100%; height: 100%; background: white; border: none; display: block; }
204
- `},document.head))},getRecordIdFromUrl=(e,t=()=>{})=>{var e=window.location.href.match(e),e=null!=(e=null==e?void 0:e[1])?e:null;return t("[predict] recordId found: "+e),e},escapeRegexKeyword=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),buildRecordRegex=e=>new RegExp(`(?:^|[/?&=.#])${escapeRegexKeyword(e)}[/.=:_-]([a-zA-Z0-9-]+)`,"i"),resolveRecordId=(e,t=()=>{})=>{var n,i,{recordRegexPattern:e,recordRegexName:r}=e;if(e)try{var o=null!=(i=null==(n=window.location.href.match(new RegExp(e)))?void 0:n[1])?i:null;if(o)return t("[predict] recordId found via recordRegexPattern: "+o),o}catch(a){t("[predict] invalid recordRegexPattern, skipping: "+a)}return r?({pathname:e,search:n,hash:i}=window.location,(n=null!=(e=null==(o=(""+e+n+i).match(buildRecordRegex(r)))?void 0:o[1])?e:null)?(t("[predict] recordId found via recordRegexName: "+n),n):(i=new RegExp(`/${r}/([a-zA-Z0-9]+)(?:/|$)`),getRecordIdFromUrl(i,t))):null},safeStringify=(e,t)=>{try{return JSON.stringify(e)}catch(n){return null!=t?t:""}},safeParse=(e,t,n=()=>{})=>{try{return JSON.parse(e)}catch(i){return n("[predict] JSON parse error: "+i),t}},getAvailableParams=e=>e.widgetId?{widgetId:e.widgetId,pipeVersion:e.pipeVersion,forceAccountId:e.forceAccountId}:e,buildQueryParams=e=>{var t=new URLSearchParams,e=getAvailableParams(e),n=Object.entries(e);t.set("pluginVersion",pluginVersion);for(let e=0;e<n.length;e++){var[i,r]=n[e];r!==undefined&&null!==r&&t.set(i,("object"==typeof r?safeStringify:String)(r))}return t.toString()},setupDragAndDrop=(n,r,i)=>{let o=!1,a=!1,s=!1,d=0,u=0,c=0,l=0,p=null;const h=r.querySelector("iframe"),e=e=>{var t;0===e.button&&(e.preventDefault(),o=!0,a=!1,n.classList.add("is-dragging"),r.classList.add("is-dragging"),h&&(h.style.pointerEvents="none"),t=r.getBoundingClientRect(),c=t.left,l=t.top,r.style.left=c+"px",r.style.top=l+"px",r.style.right="auto",r.style.bottom="auto",d=e.clientX,u=e.clientY,document.addEventListener("mousemove",f),document.addEventListener("mouseup",g))},f=e=>{if(o){const n=e.clientX-d,i=e.clientY-u;(Math.abs(n)>DRAG_THRESHOLD||Math.abs(i)>DRAG_THRESHOLD)&&(a=!0),p&&cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e=r.getBoundingClientRect(),t=Math.max(0,Math.min(c+n,window.innerWidth-e.width)),e=Math.max(0,Math.min(l+i,window.innerHeight-e.height));r.style.left=t+"px",r.style.top=e+"px"})}},g=e=>{var t;o&&(o=!1,n.classList.remove("is-dragging"),r.classList.remove("is-dragging"),h&&(h.style.pointerEvents=""),p&&cancelAnimationFrame(p),p=null,document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",g),!a)&&s&&h&&null!=(t=null===h||void 0===h?void 0:h.contentWindow)&&t.postMessage({type:"TRIGGER_EXPAND"},i)};return n.setCollapsedState=e=>{s=e,n.classList.toggle("is-collapsed",e)},n.addEventListener("mousedown",e),n.cleanup=()=>{n.removeEventListener("mousedown",e),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",g),p&&cancelAnimationFrame(p)},n},createExplanationIframe=({analysisId:e,recordId:t,configuration:n,predictBaseUrl:i,wrapperBase:r=""})=>{var o="frameExplanation-"+e,a=(null!=(a=$(o))&&a.remove(),i+`/external/analysis/${e}/prediction/drilldown/`+t),i=buildQueryParams(n);createElement("iframe",{id:o,className:"frame-explanation",title:"Explanation",loading:"lazy",referrerPolicy:"strict-origin-when-cross-origin",allowFullscreen:!0,src:buildFrameSrc(a+"?"+i,r)},document.body)},applyInitialPosition=(e,t=DEFAULT_INITIAL_POSITION)=>{var n={TOP_LEFT:{top:FLOATING_MODAL_OFFSET,left:FLOATING_MODAL_OFFSET,bottom:"auto",right:"auto"},TOP_RIGHT:{top:FLOATING_MODAL_OFFSET,right:FLOATING_MODAL_OFFSET,bottom:"auto",left:"auto"},BOTTOM_LEFT:{bottom:FLOATING_MODAL_OFFSET,left:FLOATING_MODAL_OFFSET,top:"auto",right:"auto"},BOTTOM_RIGHT:{bottom:FLOATING_MODAL_OFFSET,right:FLOATING_MODAL_OFFSET,top:"auto",left:"auto"}};Object.assign(e.style,null!=(e=n[t])?e:n[DEFAULT_INITIAL_POSITION])},createFloatingModal=({recordId:t,configuration:n,predictBaseUrl:i,wrapperBase:r=""})=>{const o=null!=(e=null==(e=n.analysisIds)?void 0:e.flat(Infinity))?e:[];for(let e=0;e<o.length;e++)createExplanationIframe({analysisId:o[e],recordId:t,configuration:n,predictBaseUrl:i,wrapperBase:r});const a=createElement("div",{id:"floatingModalContainer",className:"floating-modal-container"},document.body);applyInitialPosition(a,n.initialPosition);var e=createElement("div",{className:"floating-modal-drag-handle",innerHTML:`<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
204
+ `},document.head))},getPendoPageUrl=e=>{var t;return(null==(t=null==(e=null==e?void 0:e.url)?void 0:e.get)?void 0:t.call(e))||window.location.href},stripOrigin=e=>e.replace(/^[a-z][a-z\d+.-]*:\/\/[^/?#]*/i,""),getRecordIdFromUrl=(e,t=window.location.href,n=()=>{})=>{e=t.match(e),e=null!=(t=null==e?void 0:e[1])?t:null;return n("[predict] recordId found: "+e),e},escapeRegexKeyword=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),buildRecordRegex=e=>new RegExp(`(?:^|[/?&=.#])${escapeRegexKeyword(e)}[/.=:_-]([a-zA-Z0-9-]+)`,"i"),resolveRecordId=(e,t=window.location.href,n=()=>{})=>{var i,r,{recordRegexPattern:e,recordRegexName:o}=e;if(e)try{var a=null!=(r=null==(i=t.match(new RegExp(e)))?void 0:i[1])?r:null;if(a)return n("[predict] recordId found via recordRegexPattern: "+a),a}catch(s){n("[predict] invalid recordRegexPattern, skipping: "+s)}return o?(r=null!=(i=null==(e=stripOrigin(t).match(buildRecordRegex(o)))?void 0:e[1])?i:null)?(n("[predict] recordId found via recordRegexName: "+r),r):(a=new RegExp(`/${o}/([a-zA-Z0-9]+)(?:/|$)`),getRecordIdFromUrl(a,t,n)):null},safeStringify=(e,t)=>{try{return JSON.stringify(e)}catch(n){return null!=t?t:""}},safeParse=(e,t,n=()=>{})=>{try{return JSON.parse(e)}catch(i){return n("[predict] JSON parse error: "+i),t}},getAvailableParams=e=>e.widgetId?{widgetId:e.widgetId,pipeVersion:e.pipeVersion,forceAccountId:e.forceAccountId}:e,buildQueryParams=e=>{var t=new URLSearchParams,e=getAvailableParams(e),n=Object.entries(e);t.set("pluginVersion",pluginVersion);for(let e=0;e<n.length;e++){var[i,r]=n[e];r!==undefined&&null!==r&&t.set(i,("object"==typeof r?safeStringify:String)(r))}return t.toString()},setupDragAndDrop=(n,r,i)=>{let o=!1,a=!1,s=!1,d=0,u=0,c=0,l=0,p=null;const h=r.querySelector("iframe"),e=e=>{var t;0===e.button&&(e.preventDefault(),o=!0,a=!1,n.classList.add("is-dragging"),r.classList.add("is-dragging"),h&&(h.style.pointerEvents="none"),t=r.getBoundingClientRect(),c=t.left,l=t.top,r.style.left=c+"px",r.style.top=l+"px",r.style.right="auto",r.style.bottom="auto",d=e.clientX,u=e.clientY,document.addEventListener("mousemove",f),document.addEventListener("mouseup",g))},f=e=>{if(o){const n=e.clientX-d,i=e.clientY-u;(Math.abs(n)>DRAG_THRESHOLD||Math.abs(i)>DRAG_THRESHOLD)&&(a=!0),p&&cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e=r.getBoundingClientRect(),t=Math.max(0,Math.min(c+n,window.innerWidth-e.width)),e=Math.max(0,Math.min(l+i,window.innerHeight-e.height));r.style.left=t+"px",r.style.top=e+"px"})}},g=e=>{var t;o&&(o=!1,n.classList.remove("is-dragging"),r.classList.remove("is-dragging"),h&&(h.style.pointerEvents=""),p&&cancelAnimationFrame(p),p=null,document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",g),!a)&&s&&h&&null!=(t=null===h||void 0===h?void 0:h.contentWindow)&&t.postMessage({type:"TRIGGER_EXPAND"},i)};return n.setCollapsedState=e=>{s=e,n.classList.toggle("is-collapsed",e)},n.addEventListener("mousedown",e),n.cleanup=()=>{n.removeEventListener("mousedown",e),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",g),p&&cancelAnimationFrame(p)},n},createExplanationIframe=({analysisId:e,recordId:t,configuration:n,predictBaseUrl:i,wrapperBase:r=""})=>{var o="frameExplanation-"+e,a=(null!=(a=$(o))&&a.remove(),i+`/external/analysis/${e}/prediction/drilldown/`+t),i=buildQueryParams(n);createElement("iframe",{id:o,className:"frame-explanation",title:"Explanation",loading:"lazy",referrerPolicy:"strict-origin-when-cross-origin",allowFullscreen:!0,src:buildFrameSrc(a+"?"+i,r)},document.body)},applyInitialPosition=(e,t=DEFAULT_INITIAL_POSITION)=>{var n={TOP_LEFT:{top:FLOATING_MODAL_OFFSET,left:FLOATING_MODAL_OFFSET,bottom:"auto",right:"auto"},TOP_RIGHT:{top:FLOATING_MODAL_OFFSET,right:FLOATING_MODAL_OFFSET,bottom:"auto",left:"auto"},BOTTOM_LEFT:{bottom:FLOATING_MODAL_OFFSET,left:FLOATING_MODAL_OFFSET,top:"auto",right:"auto"},BOTTOM_RIGHT:{bottom:FLOATING_MODAL_OFFSET,right:FLOATING_MODAL_OFFSET,top:"auto",left:"auto"}};Object.assign(e.style,null!=(e=n[t])?e:n[DEFAULT_INITIAL_POSITION])},createFloatingModal=({recordId:t,configuration:n,predictBaseUrl:i,wrapperBase:r=""})=>{const o=null!=(e=null==(e=n.analysisIds)?void 0:e.flat(Infinity))?e:[];for(let e=0;e<o.length;e++)createExplanationIframe({analysisId:o[e],recordId:t,configuration:n,predictBaseUrl:i,wrapperBase:r});const a=createElement("div",{id:"floatingModalContainer",className:"floating-modal-container"},document.body);applyInitialPosition(a,n.initialPosition);var e=createElement("div",{className:"floating-modal-drag-handle",innerHTML:`<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
205
205
  <g fill="#EBEBEB">
206
206
  <circle cx="3.33" cy="6" r="1.5"/><circle cx="8" cy="6" r="1.5"/><circle cx="12.67" cy="6" r="1.5"/>
207
207
  <circle cx="3.33" cy="10" r="1.5"/><circle cx="8" cy="10" r="1.5"/><circle cx="12.67" cy="10" r="1.5"/>
208
208
  </g>
209
- </svg>`},a),s=i+"/external/analysis/prediction/summary/"+t,d=buildQueryParams(n),s=(createElement("iframe",{id:"frameFloatingModal",className:"frame-floating-modal",loading:"lazy",referrerPolicy:"strict-origin-when-cross-origin",allowFullscreen:!0,title:"Floating Modal",src:buildFrameSrc(s+"?"+d,r)},a),getFrameTargetOrigin(r,i));return a.dragHandle=setupDragAndDrop(e,a,s),()=>{var e,t;null!=(t=null==(e=a.dragHandle)?void 0:e.cleanup)&&t.call(e),a.remove();for(let e=0;e<o.length;e++){var n=$("frameExplanation-"+o[e]);n&&n.remove()}}},setupMessageListener=({token:l,forceAccountId:p,cleanup:h,pendo:f,predictBaseUrl:g,wrapperBase:m=""})=>{const v=getFrameTargetOrigin(m,g),e=({origin:e,data:i})=>{var t;if(((e=e)===g||m&&e===m)&&i&&"object"==typeof i){const{type:n,analysisId:r,height:o,width:a}=i,s=$("frameExplanation-"+r),d=$("floatingModalContainer"),u=()=>{d&&(d.style.height=o+"px",d.style.width=a+"px")},c=e=>{var t,n;d&&null!=(n=null==(t=d.dragHandle)?void 0:t.setCollapsedState)&&n.call(t,e)};e={MODAL_INITIALIZED:()=>{var n=$("frameFloatingModal");if(n){let e=null,t=null;var i=f.getConfigValue("retrieveIDPToken"),i=(f._.isFunction(i)&&(i=i())&&(e=i.idToken,t=i.extensionAPIKeys),null==(i=null==f?void 0:f.getVisitorId)?void 0:i.call(f)),r=null!=p?p:null==(r=null==f?void 0:f.getAccountId)?void 0:r.call(f);null!=(n=n.contentWindow)&&n.postMessage({type:"TOKEN_RECEIVED",token:l,idToken:e,extensionAPIKeys:t,visitorId:i,accountId:r},v)}},OPEN_EXPLANATION:()=>{var e;null!==s&&void 0!==s&&s.classList.add("is-visible"),null!=(e=null===s||void 0===s?void 0:s.contentWindow)&&e.postMessage(i,v)},CLOSE_EXPLANATION:()=>null===s||void 0===s?void 0:s.classList.remove("is-visible"),AUTH_ERROR_EXPLANATION:()=>{null!==s&&void 0!==s&&s.classList.remove("is-visible");var e=$("frameFloatingModal");e&&(e.src=e.src)},DATA_READY:()=>{null!==d&&void 0!==d&&d.classList.add("is-visible"),u();var t=i.analysisIds||[];for(let e=0;e<t.length;e++){var n=$("frameExplanation-"+t[e]);n&&n.classList.add("is-exists")}},AUTH_ERROR:()=>{null!==d&&void 0!==d&&d.classList.add("is-visible"),u()},CLOSE_FLOATING_MODAL:h,EXPAND_FLOATING_MODAL:()=>{u(),c(!1)},COLLAPSE_FLOATING_MODAL:()=>{u(),c(!0)}};n&&n in e&&null!=(t=null===e?void 0:e[n])&&t.call(e)}};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},mapAnalysisIds=e=>null==e?void 0:e.map(e=>e.map(e=>e.analysisId)),fetchWidgetConfiguration=r=>__awaiter(void 0,void 0,void 0,function*(){var{token:e,predictBaseUrl:t,log:n}=r,i=__rest(r,["token","predictBaseUrl","log"]),e=yield new PredictApiService({baseUrl:getPredictApiBaseUrl(t),token:e}).getWidgetSettingsById(null!=(t=i.widgetId)?t:"",n);return e?Object.assign(Object.assign({},i),{analysisIds:mapAnalysisIds(e.analysesHierarchy),recordRegexPattern:e.recordRegexPattern,recordRegexName:e.recordRegexKeyword,initialPosition:e.initialPosition}):i}),predictGuidesScript=({step:o,pendo:a,cleanupArray:s,cleanup:d,log:u,designerServer:c})=>__awaiter(void 0,void 0,void 0,function*(){u("[predict] initializing");var e,t,n,i,r=null==o?void 0:o.containerId;injectStyles(r,u),0<s.length?u("[predict] cleanupArray is not empty"):c?(r=getPredictBaseUrl(c),(t=null==(t=o.guideElement.find(GUIDE_BUTTON_IDENTIFIER))?void 0:t[0])?(e=(t=safeParse(t.textContent,{},u))["token"],(t=__rest(t,["token"]))&&e?(t=null!=t&&t.widgetId?yield fetchWidgetConfiguration(Object.assign(Object.assign({},t),{token:e,predictBaseUrl:r,log:u})):t,(n=resolveRecordId(t,u))?(i=getFrameWrapperBase(a),u("[predict] predictBaseUrl: "+r+(i?", wrapping via "+i:"")),s.push(setupMessageListener({token:e,forceAccountId:t.forceAccountId,cleanup:d,pendo:a,predictBaseUrl:r,wrapperBase:i})),s.push(createFloatingModal({recordId:n,configuration:t,predictBaseUrl:r,wrapperBase:i}))):u("[predict] no recordId found in URL, aborting")):u("[predict] no configuration found, aborting")):u("[predict] no guide button found, aborting")):u("[predict] no designerServer found, aborting")}),PredictGuides=()=>{let o=null,a=[];const s=()=>{var e;null!=(e=null===o||void 0===o?void 0:o.log)&&e.debug("[predict] cleaning up");for(let e=0;e<a.length;e++)try{a[e]()}catch(t){}a=[]};return{name:"PredictGuides",initialize:(e,t)=>{var n=(o=t).ConfigReader,i="predictGuides",i=(n.addOption(i,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),n.get(i));if(i){const r=t.log.debug.bind(t.log);o.Events.urlChanged.on(s);n={name:"PredictFrameScript",script(e,t,n){var i=(null==(i=null==n?void 0:n.getConfigValue)?void 0:i.call(n,"designerServer"))||(null==(i=null==n?void 0:n.getConfigValue)?void 0:i.call(n,"server"));Promise$2.resolve(predictGuidesScript({step:e,pendo:n,cleanupArray:a,cleanup:s,log:r,designerServer:i}))["catch"](e=>{r("[predict] predictGuidesScript crashed, tearing down: "+e),s()}),this.on("unmounted",e=>{"hidden"!==e.reason&&s()})},test(e,t){e=e.name||"";return PREDICT_STEP_REGEX.test(e)}};o.GlobalRuntime.addGlobalScript(n)}},teardown:()=>{var e;s(),null!=(e=null==(e=null===o||void 0===o?void 0:o.Events)?void 0:e.urlChanged)&&e.off(s)}}},ASSISTANT_MESSAGE="assistantMessage",CONVERSATION_ID_URL_PATTERN="conversationIdUrlPattern",MESSAGE_CONTENT="messageContent",MESSAGE_ID_ATTR="messageIdAttr",MESSAGE_ID_PATTERN="messageIdPattern",MODEL_USED_ATTR="modelUsedAttr",REACTION_ACTIVE="reactionActive",STREAMING_ACTIVE="streamingActive",STREAMING_ACTIVE_ATTR="streamingActiveAttr",THUMB_DOWN="thumbDown",THUMB_UP="thumbUp",TURN_CONTAINER="turnContainer",USER_MESSAGE="userMessage",CUSTOM_AGENT_ID_URL_PATTERN="customAgentIdUrlPattern",CUSTOM_AGENT_ID="customAgentId",CUSTOM_AGENT_NAME="customAgentName",REQUIRED_SELECTORS=[ASSISTANT_MESSAGE,CONVERSATION_ID_URL_PATTERN,STREAMING_ACTIVE,TURN_CONTAINER,USER_MESSAGE],SUPPORTED_PRESETS=["chatgpt-full","gemini-full","claude-full","copilot-full","copilot-m365-full"],STREAMING_END_SETTLE_MS=500,SUBMISSION_START_RETRY_MS=1e3,SUBMISSION_START_MAX_ATTEMPTS=4,NEW_CONVERSATION_TTL_MS=3e5,NEW_CONVERSATION_KEY="pendo_pca_new_conv";class DOMConversation{static validateConfig(e){if(!Array.isArray(e))return REQUIRED_SELECTORS.slice();const t=new Set;for(const i of e)if(i&&i.type&&i.cssSelector){if(i.type===CONVERSATION_ID_URL_PATTERN)try{RegExp(i.cssSelector)}catch(n){continue}t.add(i.type)}return REQUIRED_SELECTORS.filter(e=>!t.has(e))}static supportedPreset(e){return-1!==SUPPORTED_PRESETS.indexOf(e)}constructor(e,t,n,i){this.selectors={},this.listeners=[],this.isActive=!0,this.observers=[],this.wasStreaming=!1,this.streamingEndTimer=null,this.submissionStartRetryTimer=null,this.requestNode=null,this.conversationIdRegex=null,this.customAgentIdRegex=null,this.messageIdRegex=null,this.lastReturnedMessageId=null,this.dom=e.dom,this._=e._,this.api=t,this.Sizzle=e.Sizzle,this.id=n,this._.isArray(i)||(this.api.log.error("cssSelectors must be an array, received: "+typeof i),i=[]),this._.each(i,e=>{e&&e.type&&(this.selectors[e.type]=e.cssSelector)}),this.conversationIdRegex=new RegExp(this.selectors[CONVERSATION_ID_URL_PATTERN]);t=this.selectors[CUSTOM_AGENT_ID_URL_PATTERN];if(t)try{this.customAgentIdRegex=new RegExp(t)}catch(r){this.api.log.error("bad customAgentIdUrlPattern "+t,{error:r})}e=this.selectors[MESSAGE_ID_PATTERN];if(e)try{this.messageIdRegex=new RegExp(e)}catch(r){this.api.log.error("bad messageIdPattern "+e,{error:r})}this.root=document.body,this.setupReactionListener(),this.setupStreamingObserver()}setupReactionListener(){(this.findSelector(THUMB_UP)||this.findSelector(THUMB_DOWN))&&(this.reactionClickHandler=this.handleReactionClick.bind(this),this.root.addEventListener("click",this.reactionClickHandler,!0))}handleReactionClick(t){t=t.target;if(t&&1===t.nodeType){var n=this.findSelector(THUMB_UP),i=this.findSelector(THUMB_DOWN),t=this.dom(t).closest(n+", "+i);if(t.length){i=this.Sizzle.matchesSelector(t[0],n),n=this.findSelector(REACTION_ACTIVE),n=n&&this.Sizzle.matchesSelector(t[0],n)?"unreact":i?"positive":"negative",i=this.findSelector(ASSISTANT_MESSAGE);let e=t.closest(i);e.length||(e=t.closest(this.findSelector(TURN_CONTAINER)).find(i)),this.emit("user_reaction",{agentId:this.id,messageId:this.getMessageId(e),content:n})}}}tryFlushNewConversation(){var e=+this.api.sessionStorage.getItem(NEW_CONVERSATION_KEY);e&&(this.api.sessionStorage.removeItem(NEW_CONVERSATION_KEY),Date.now()-e>NEW_CONVERSATION_TTL_MS||this.getConversationId()&&this.startStreamingEndTimer())}setupStreamingObserver(){this.wasStreaming=0<this.select(STREAMING_ACTIVE).length,this.stopStreamingEndTimer();var e=new(getZoneSafeMethod(this._,"MutationObserver"))(this.handleMutation.bind(this)),t=this.findSelector(STREAMING_ACTIVE_ATTR);e.observe(this.root,{childList:!0,subtree:!0,attributes:!0,attributeFilter:t?[t]:undefined}),this.observers.push(e)}handleMutation(){var e=0<this.select(STREAMING_ACTIVE).length;e!==this.wasStreaming&&(e?this.streamingEndTimer?this.stopStreamingEndTimer():(this.getConversationId()||this.api.sessionStorage.setItem(NEW_CONVERSATION_KEY,String(Date.now())),this.onSubmissionStart()):this.startStreamingEndTimer(),this.wasStreaming=e)}onSubmissionStart(e=1){this.requestNode=this.findLastRequestNode(),this.requestNode?this.handleUserMessage(this.requestNode):e<SUBMISSION_START_MAX_ATTEMPTS&&this.startSubmissionStartRetryTimer(e+1)}onSubmissionEnd(){this.stopSubmissionStartRetryTimer(),this.getConversationId()&&this.api.sessionStorage.removeItem(NEW_CONVERSATION_KEY);let e=this.requestNode;if(this.requestNode=null,!e){if(!(e=this.findLastRequestNode()))return;this.handleUserMessage(e)}var t=e[0];if(t){var n=this.select(ASSISTANT_MESSAGE);for(let e=0;e<n.length;e++){var i=n[e];t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING&&this.handleAssistantMessage(this.dom(i))}}}extractContent(e){let t=e;var n=this.findSelector(MESSAGE_CONTENT),e=(t=n&&(n=e.find(n)).length?n:t).text().trim();return e||t[0].textContent.trim()}getMessageId(e){var t=this.findSelector(MESSAGE_ID_ATTR);return t?e.attr(t):this.syntheticMessageId(e[0])}syntheticMessageId(t){if(t){var e=this.findSelector(USER_MESSAGE),e=e&&this.Sizzle.matchesSelector(t,e),n=e?"u":"a",i=this.select(e?USER_MESSAGE:ASSISTANT_MESSAGE);for(let e=0;e<i.length;e++)if(i[e]===t)return n+"-"+e}return undefined}handleUserMessage(e){this.emit("prompt",{agentId:this.id,messageId:this.getMessageId(e),content:this.extractContent(e)})}handleAssistantMessage(e){var t=this.findSelector(MODEL_USED_ATTR),t=t&&e.attr(t);this.emit("agent_response",{agentId:this.id,messageId:this.getMessageId(e),agentModelsUsed:t?[t]:[],content:this.extractContent(e)})}findLastRequestNode(){var e,t;return!this.getConversationId()||!(e=this._.last(this.select(USER_MESSAGE)))||(e=this.dom(e),!(t=this.getMessageId(e)))||this.messageIdRegex&&!this.messageIdRegex.test(t)||t===this.lastReturnedMessageId?null:(this.lastReturnedMessageId=t,e)}findSelector(e){return this.selectors[e]}select(e){return this.dom(this.findSelector(e),this.root)}getConversationId(){var e=location.href.match(this.conversationIdRegex);return e?e[1]!==undefined?e[1]:e[0]:null}getCustomAgentId(){if(!this.customAgentIdRegex)return undefined;let e=location.href;if(this.findSelector(CUSTOM_AGENT_ID)){var t=this.select(CUSTOM_AGENT_ID);if(!t.length)return undefined;e=t.attr("href")||""}t=e.match(this.customAgentIdRegex);return t?t[1]!==undefined?t[1]:t[0]:undefined}getCustomAgentName(){var e;return this.findSelector(CUSTOM_AGENT_NAME)&&(e=this.select(CUSTOM_AGENT_NAME)).length?e.text().trim():""}addCustomAgentInfo(e){var t=this.getCustomAgentId();t&&(e.customAgentId=t,t=this.getCustomAgentName())&&(e.customAgentName=t)}onSubmit(e){this.listeners.push(e)}emit(t,n){n.conversationId=this.getConversationId(),this.addCustomAgentInfo(n),this._.each(this.listeners,e=>e(t,n))}startStreamingEndTimer(){this.stopStreamingEndTimer(),this.streamingEndTimer=setTimeout$1(()=>{this.streamingEndTimer=null,this.onSubmissionEnd()},STREAMING_END_SETTLE_MS)}stopStreamingEndTimer(){this.streamingEndTimer&&(clearTimeout$1(this.streamingEndTimer),this.streamingEndTimer=null)}startSubmissionStartRetryTimer(e){this.stopSubmissionStartRetryTimer(),this.submissionStartRetryTimer=setTimeout$1(()=>{this.submissionStartRetryTimer=null,this.onSubmissionStart(e)},SUBMISSION_START_RETRY_MS)}stopSubmissionStartRetryTimer(){this.submissionStartRetryTimer&&(clearTimeout$1(this.submissionStartRetryTimer),this.submissionStartRetryTimer=null)}suspend(){this.isActive=!1}resume(){this.isActive=!0,this.tryFlushNewConversation()}teardown(){this._.each(this.observers,e=>e&&e.disconnect&&e.disconnect()),this.observers=[],this.reactionClickHandler&&this.root&&(this.root.removeEventListener("click",this.reactionClickHandler,!0),this.reactionClickHandler=null),this.stopStreamingEndTimer(),this.stopSubmissionStartRetryTimer(),this.listeners=[]}}function ConversationAnalytics(){let i,r,o,a,s=[],d=new Map;const u="aiAgents";return{name:"ConversationAnalytics",initialize:function(e,t){i=e,r=t,o=i._,a=r.log;e=r.ConfigReader;e.addOption(u,[e.sources.PENDO_CONFIG_SRC,e.sources.SNIPPET_SRC]),p(e.get(u)),null!=(t=r.Events.guidesLoaded)&&t.on(n)},teardown:function(){o.each(s,e=>e.teardown()),s=[],d.clear()},onConfigLoaded:p,observeConversation:h,sendConversationEvent:f,reEvaluatePageRules:n};function c(e,t="unknown"){let n=e;var i;return Array.isArray(e)?(i=o.filter(e,e=>e&&""!==e.trim()),n=o.map(i,e=>e.startsWith("//*/")?e.substring(1):e)):"string"==typeof e&&e.startsWith("//*/")&&(n=e.substring(1)),r.util.testPageRule(n,undefined,{logger:a,context:"agent",id:t})}function n(){o.each(s,e=>{t=e.id;var t=d.get(t);t&&c(t.pageRule,t.id)?e.resume():e.suspend()});const n=o.map(o.filter(s,e=>e.isActive),e=>e.id);var e=r.ConfigReader.get(u)||[];o.each(e,e=>{var t;l(e)&&(t=o.contains(n,e.id),c(e.pageRule,e.id))&&!t&&h(e)})}function l(e){return DOMConversation.supportedPreset(e.preset)}function p(e=[]){e&&o.isArray(e)&&0!==e.length&&(d.clear(),o.each(e,e=>{l(e)&&(d.set(e.id,e),c(e.pageRule,e.id))&&h(e)}))}function h(e){const{id:t,cssSelectors:n}=e;o.find(s,e=>e.id===t)||((e=DOMConversation.validateConfig(n)).length?a.error("aiAgent config missing required selectors",{agentId:t,missing:e}):((e=new DOMConversation(i,r,t,n)).onSubmit(f),s.push(e)))}function f(e,t){var n=o.find(s,e=>e.id===t.agentId);n&&!n.isActive||(t=o.extend({agentType:"conversation"},t),r.analytics.collectEvent(e,t,undefined,"agentic"))}}export{ConsoleCapture,ConversationAnalytics,Feedback,GuideMarkdown,NetworkCapture,PredictGuides,createReplayPlugin as Replay,TextCapture,VocPortal,loadAgent};
209
+ </svg>`},a),s=i+"/external/analysis/prediction/summary/"+t,d=buildQueryParams(n),s=(createElement("iframe",{id:"frameFloatingModal",className:"frame-floating-modal",loading:"lazy",referrerPolicy:"strict-origin-when-cross-origin",allowFullscreen:!0,title:"Floating Modal",src:buildFrameSrc(s+"?"+d,r)},a),getFrameTargetOrigin(r,i));return a.dragHandle=setupDragAndDrop(e,a,s),()=>{var e,t;null!=(t=null==(e=a.dragHandle)?void 0:e.cleanup)&&t.call(e),a.remove();for(let e=0;e<o.length;e++){var n=$("frameExplanation-"+o[e]);n&&n.remove()}}},setupMessageListener=({token:l,forceAccountId:p,cleanup:h,pendo:f,predictBaseUrl:g,wrapperBase:m=""})=>{const v=getFrameTargetOrigin(m,g),e=({origin:e,data:i})=>{var t;if(((e=e)===g||m&&e===m)&&i&&"object"==typeof i){const{type:n,analysisId:r,height:o,width:a}=i,s=$("frameExplanation-"+r),d=$("floatingModalContainer"),u=()=>{d&&(d.style.height=o+"px",d.style.width=a+"px")},c=e=>{var t,n;d&&null!=(n=null==(t=d.dragHandle)?void 0:t.setCollapsedState)&&n.call(t,e)};e={MODAL_INITIALIZED:()=>{var n=$("frameFloatingModal");if(n){let e=null,t=null;var i=f.getConfigValue("retrieveIDPToken"),i=(f._.isFunction(i)&&(i=i())&&(e=i.idToken,t=i.extensionAPIKeys),null==(i=null==f?void 0:f.getVisitorId)?void 0:i.call(f)),r=null!=p?p:null==(r=null==f?void 0:f.getAccountId)?void 0:r.call(f);null!=(n=n.contentWindow)&&n.postMessage({type:"TOKEN_RECEIVED",token:l,idToken:e,extensionAPIKeys:t,visitorId:i,accountId:r},v)}},OPEN_EXPLANATION:()=>{var e;null!==s&&void 0!==s&&s.classList.add("is-visible"),null!=(e=null===s||void 0===s?void 0:s.contentWindow)&&e.postMessage(i,v)},CLOSE_EXPLANATION:()=>null===s||void 0===s?void 0:s.classList.remove("is-visible"),AUTH_ERROR_EXPLANATION:()=>{null!==s&&void 0!==s&&s.classList.remove("is-visible");var e=$("frameFloatingModal");e&&(e.src=e.src)},DATA_READY:()=>{null!==d&&void 0!==d&&d.classList.add("is-visible"),u();var t=i.analysisIds||[];for(let e=0;e<t.length;e++){var n=$("frameExplanation-"+t[e]);n&&n.classList.add("is-exists")}},AUTH_ERROR:()=>{null!==d&&void 0!==d&&d.classList.add("is-visible"),u()},CLOSE_FLOATING_MODAL:h,EXPAND_FLOATING_MODAL:()=>{u(),c(!1)},COLLAPSE_FLOATING_MODAL:()=>{u(),c(!0)}};n&&n in e&&null!=(t=null===e?void 0:e[n])&&t.call(e)}};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},mapAnalysisIds=e=>null==e?void 0:e.map(e=>e.map(e=>e.analysisId)),fetchWidgetConfiguration=r=>__awaiter(void 0,void 0,void 0,function*(){var{token:e,predictBaseUrl:t,log:n}=r,i=__rest(r,["token","predictBaseUrl","log"]),e=yield new PredictApiService({baseUrl:getPredictApiBaseUrl(t),token:e}).getWidgetSettingsById(null!=(t=i.widgetId)?t:"",n);return e?Object.assign(Object.assign({},i),{analysisIds:mapAnalysisIds(e.analysesHierarchy),recordRegexPattern:e.recordRegexPattern,recordRegexName:e.recordRegexKeyword,initialPosition:e.initialPosition}):i}),predictGuidesScript=({step:o,pendo:a,cleanupArray:s,cleanup:d,log:u,designerServer:c})=>__awaiter(void 0,void 0,void 0,function*(){u("[predict] initializing");var e,t,n,i,r=null==o?void 0:o.containerId;injectStyles(r,u),0<s.length?u("[predict] cleanupArray is not empty"):c?(r=getPredictBaseUrl(c),(t=null==(t=o.guideElement.find(GUIDE_BUTTON_IDENTIFIER))?void 0:t[0])?(e=(t=safeParse(t.textContent,{},u))["token"],(t=__rest(t,["token"]))&&e?(t=null!=t&&t.widgetId?yield fetchWidgetConfiguration(Object.assign(Object.assign({},t),{token:e,predictBaseUrl:r,log:u})):t,n=getPendoPageUrl(a),u("[predict] resolving recordId from "+n),(n=resolveRecordId(t,n,u))?(i=getFrameWrapperBase(a),u("[predict] predictBaseUrl: "+r+(i?", wrapping via "+i:"")),s.push(setupMessageListener({token:e,forceAccountId:t.forceAccountId,cleanup:d,pendo:a,predictBaseUrl:r,wrapperBase:i})),s.push(createFloatingModal({recordId:n,configuration:t,predictBaseUrl:r,wrapperBase:i}))):u("[predict] no recordId found in URL, aborting")):u("[predict] no configuration found, aborting")):u("[predict] no guide button found, aborting")):u("[predict] no designerServer found, aborting")}),PredictGuides=()=>{let o=null,a=[];const s=()=>{var e;null!=(e=null===o||void 0===o?void 0:o.log)&&e.debug("[predict] cleaning up");for(let e=0;e<a.length;e++)try{a[e]()}catch(t){}a=[]};return{name:"PredictGuides",initialize:(e,t)=>{var n=(o=t).ConfigReader,i="predictGuides",i=(n.addOption(i,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),n.get(i));if(i){const r=t.log.debug.bind(t.log);o.Events.urlChanged.on(s);n={name:"PredictFrameScript",script(e,t,n){var i=(null==(i=null==n?void 0:n.getConfigValue)?void 0:i.call(n,"designerServer"))||(null==(i=null==n?void 0:n.getConfigValue)?void 0:i.call(n,"server"));Promise$2.resolve(predictGuidesScript({step:e,pendo:n,cleanupArray:a,cleanup:s,log:r,designerServer:i}))["catch"](e=>{r("[predict] predictGuidesScript crashed, tearing down: "+e),s()}),this.on("unmounted",e=>{"hidden"!==e.reason&&s()})},test(e,t){e=e.name||"";return PREDICT_STEP_REGEX.test(e)}};o.GlobalRuntime.addGlobalScript(n)}},teardown:()=>{var e;s(),null!=(e=null==(e=null===o||void 0===o?void 0:o.Events)?void 0:e.urlChanged)&&e.off(s)}}},ASSISTANT_MESSAGE="assistantMessage",CONVERSATION_ID_URL_PATTERN="conversationIdUrlPattern",MESSAGE_CONTENT="messageContent",MESSAGE_ID_ATTR="messageIdAttr",MESSAGE_ID_PATTERN="messageIdPattern",MODEL_USED_ATTR="modelUsedAttr",REACTION_ACTIVE="reactionActive",STREAMING_ACTIVE="streamingActive",STREAMING_ACTIVE_ATTR="streamingActiveAttr",THUMB_DOWN="thumbDown",THUMB_UP="thumbUp",TURN_CONTAINER="turnContainer",USER_MESSAGE="userMessage",CUSTOM_AGENT_ID_URL_PATTERN="customAgentIdUrlPattern",CUSTOM_AGENT_ID="customAgentId",CUSTOM_AGENT_NAME="customAgentName",REQUIRED_SELECTORS=[ASSISTANT_MESSAGE,CONVERSATION_ID_URL_PATTERN,STREAMING_ACTIVE,TURN_CONTAINER,USER_MESSAGE],SUPPORTED_PRESETS=["chatgpt-full","gemini-full","claude-full","copilot-full","copilot-m365-full"],STREAMING_END_SETTLE_MS=500,SUBMISSION_START_RETRY_MS=1e3,SUBMISSION_START_MAX_ATTEMPTS=4,NEW_CONVERSATION_TTL_MS=3e5,NEW_CONVERSATION_KEY="pendo_pca_new_conv";class DOMConversation{static validateConfig(e){if(!Array.isArray(e))return REQUIRED_SELECTORS.slice();const t=new Set;for(const i of e)if(i&&i.type&&i.cssSelector){if(i.type===CONVERSATION_ID_URL_PATTERN)try{RegExp(i.cssSelector)}catch(n){continue}t.add(i.type)}return REQUIRED_SELECTORS.filter(e=>!t.has(e))}static supportedPreset(e){return-1!==SUPPORTED_PRESETS.indexOf(e)}constructor(e,t,n,i){this.selectors={},this.listeners=[],this.isActive=!0,this.observers=[],this.wasStreaming=!1,this.streamingEndTimer=null,this.submissionStartRetryTimer=null,this.requestNode=null,this.conversationIdRegex=null,this.customAgentIdRegex=null,this.messageIdRegex=null,this.lastReturnedMessageId=null,this.dom=e.dom,this._=e._,this.api=t,this.Sizzle=e.Sizzle,this.id=n,this._.isArray(i)||(this.api.log.error("cssSelectors must be an array, received: "+typeof i),i=[]),this._.each(i,e=>{e&&e.type&&(this.selectors[e.type]=e.cssSelector)}),this.conversationIdRegex=new RegExp(this.selectors[CONVERSATION_ID_URL_PATTERN]);t=this.selectors[CUSTOM_AGENT_ID_URL_PATTERN];if(t)try{this.customAgentIdRegex=new RegExp(t)}catch(r){this.api.log.error("bad customAgentIdUrlPattern "+t,{error:r})}e=this.selectors[MESSAGE_ID_PATTERN];if(e)try{this.messageIdRegex=new RegExp(e)}catch(r){this.api.log.error("bad messageIdPattern "+e,{error:r})}this.root=document.body,this.setupReactionListener(),this.setupStreamingObserver()}setupReactionListener(){(this.findSelector(THUMB_UP)||this.findSelector(THUMB_DOWN))&&(this.reactionClickHandler=this.handleReactionClick.bind(this),this.root.addEventListener("click",this.reactionClickHandler,!0))}handleReactionClick(t){t=t.target;if(t&&1===t.nodeType){var n=this.findSelector(THUMB_UP),i=this.findSelector(THUMB_DOWN),t=this.dom(t).closest(n+", "+i);if(t.length){i=this.Sizzle.matchesSelector(t[0],n),n=this.findSelector(REACTION_ACTIVE),n=n&&this.Sizzle.matchesSelector(t[0],n)?"unreact":i?"positive":"negative",i=this.findSelector(ASSISTANT_MESSAGE);let e=t.closest(i);e.length||(e=t.closest(this.findSelector(TURN_CONTAINER)).find(i)),this.emit("user_reaction",{agentId:this.id,messageId:this.getMessageId(e),content:n})}}}tryFlushNewConversation(){var e=+this.api.sessionStorage.getItem(NEW_CONVERSATION_KEY);e&&(this.api.sessionStorage.removeItem(NEW_CONVERSATION_KEY),Date.now()-e>NEW_CONVERSATION_TTL_MS||this.getConversationId()&&this.startStreamingEndTimer())}setupStreamingObserver(){this.wasStreaming=0<this.select(STREAMING_ACTIVE).length,this.stopStreamingEndTimer();var e=new(getZoneSafeMethod(this._,"MutationObserver"))(this.handleMutation.bind(this)),t=this.findSelector(STREAMING_ACTIVE_ATTR);e.observe(this.root,{childList:!0,subtree:!0,attributes:!0,attributeFilter:t?[t]:undefined}),this.observers.push(e)}handleMutation(){var e=0<this.select(STREAMING_ACTIVE).length;e!==this.wasStreaming&&(e?this.streamingEndTimer?this.stopStreamingEndTimer():(this.getConversationId()||this.api.sessionStorage.setItem(NEW_CONVERSATION_KEY,String(Date.now())),this.onSubmissionStart()):this.startStreamingEndTimer(),this.wasStreaming=e)}onSubmissionStart(e=1){this.requestNode=this.findLastRequestNode(),this.requestNode?this.handleUserMessage(this.requestNode):e<SUBMISSION_START_MAX_ATTEMPTS&&this.startSubmissionStartRetryTimer(e+1)}onSubmissionEnd(){this.stopSubmissionStartRetryTimer(),this.getConversationId()&&this.api.sessionStorage.removeItem(NEW_CONVERSATION_KEY);let e=this.requestNode;if(this.requestNode=null,!e){if(!(e=this.findLastRequestNode()))return;this.handleUserMessage(e)}var t=e[0];if(t){var n=this.select(ASSISTANT_MESSAGE);for(let e=0;e<n.length;e++){var i=n[e];t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING&&this.handleAssistantMessage(this.dom(i))}}}extractContent(e){let t=e;var n=this.findSelector(MESSAGE_CONTENT),e=(t=n&&(n=e.find(n)).length?n:t).text().trim();return e||t[0].textContent.trim()}getMessageId(e){var t=this.findSelector(MESSAGE_ID_ATTR);return t?e.attr(t):this.syntheticMessageId(e[0])}syntheticMessageId(t){if(t){var e=this.findSelector(USER_MESSAGE),e=e&&this.Sizzle.matchesSelector(t,e),n=e?"u":"a",i=this.select(e?USER_MESSAGE:ASSISTANT_MESSAGE);for(let e=0;e<i.length;e++)if(i[e]===t)return n+"-"+e}return undefined}handleUserMessage(e){this.emit("prompt",{agentId:this.id,messageId:this.getMessageId(e),content:this.extractContent(e)})}handleAssistantMessage(e){var t=this.findSelector(MODEL_USED_ATTR),t=t&&e.attr(t);this.emit("agent_response",{agentId:this.id,messageId:this.getMessageId(e),agentModelsUsed:t?[t]:[],content:this.extractContent(e)})}findLastRequestNode(){var e,t;return!this.getConversationId()||!(e=this._.last(this.select(USER_MESSAGE)))||(e=this.dom(e),!(t=this.getMessageId(e)))||this.messageIdRegex&&!this.messageIdRegex.test(t)||t===this.lastReturnedMessageId?null:(this.lastReturnedMessageId=t,e)}findSelector(e){return this.selectors[e]}select(e){return this.dom(this.findSelector(e),this.root)}getConversationId(){var e=location.href.match(this.conversationIdRegex);return e?e[1]!==undefined?e[1]:e[0]:null}getCustomAgentId(){if(!this.customAgentIdRegex)return undefined;let e=location.href;if(this.findSelector(CUSTOM_AGENT_ID)){var t=this.select(CUSTOM_AGENT_ID);if(!t.length)return undefined;e=t.attr("href")||""}t=e.match(this.customAgentIdRegex);return t?t[1]!==undefined?t[1]:t[0]:undefined}getCustomAgentName(){var e;return this.findSelector(CUSTOM_AGENT_NAME)&&(e=this.select(CUSTOM_AGENT_NAME)).length?e.text().trim():""}addCustomAgentInfo(e){var t=this.getCustomAgentId();t&&(e.customAgentId=t,t=this.getCustomAgentName())&&(e.customAgentName=t)}onSubmit(e){this.listeners.push(e)}emit(t,n){n.conversationId=this.getConversationId(),this.addCustomAgentInfo(n),this._.each(this.listeners,e=>e(t,n))}startStreamingEndTimer(){this.stopStreamingEndTimer(),this.streamingEndTimer=setTimeout$1(()=>{this.streamingEndTimer=null,this.onSubmissionEnd()},STREAMING_END_SETTLE_MS)}stopStreamingEndTimer(){this.streamingEndTimer&&(clearTimeout$1(this.streamingEndTimer),this.streamingEndTimer=null)}startSubmissionStartRetryTimer(e){this.stopSubmissionStartRetryTimer(),this.submissionStartRetryTimer=setTimeout$1(()=>{this.submissionStartRetryTimer=null,this.onSubmissionStart(e)},SUBMISSION_START_RETRY_MS)}stopSubmissionStartRetryTimer(){this.submissionStartRetryTimer&&(clearTimeout$1(this.submissionStartRetryTimer),this.submissionStartRetryTimer=null)}suspend(){this.isActive=!1}resume(){this.isActive=!0,this.tryFlushNewConversation()}teardown(){this._.each(this.observers,e=>e&&e.disconnect&&e.disconnect()),this.observers=[],this.reactionClickHandler&&this.root&&(this.root.removeEventListener("click",this.reactionClickHandler,!0),this.reactionClickHandler=null),this.stopStreamingEndTimer(),this.stopSubmissionStartRetryTimer(),this.listeners=[]}}function ConversationAnalytics(){let i,r,o,a,s=[],d=new Map;const u="aiAgents";return{name:"ConversationAnalytics",initialize:function(e,t){i=e,r=t,o=i._,a=r.log;e=r.ConfigReader;e.addOption(u,[e.sources.PENDO_CONFIG_SRC,e.sources.SNIPPET_SRC]),p(e.get(u)),null!=(t=r.Events.guidesLoaded)&&t.on(n)},teardown:function(){o.each(s,e=>e.teardown()),s=[],d.clear()},onConfigLoaded:p,observeConversation:h,sendConversationEvent:f,reEvaluatePageRules:n};function c(e,t="unknown"){let n=e;var i;return Array.isArray(e)?(i=o.filter(e,e=>e&&""!==e.trim()),n=o.map(i,e=>e.startsWith("//*/")?e.substring(1):e)):"string"==typeof e&&e.startsWith("//*/")&&(n=e.substring(1)),r.util.testPageRule(n,undefined,{logger:a,context:"agent",id:t})}function n(){o.each(s,e=>{t=e.id;var t=d.get(t);t&&c(t.pageRule,t.id)?e.resume():e.suspend()});const n=o.map(o.filter(s,e=>e.isActive),e=>e.id);var e=r.ConfigReader.get(u)||[];o.each(e,e=>{var t;l(e)&&(t=o.contains(n,e.id),c(e.pageRule,e.id))&&!t&&h(e)})}function l(e){return DOMConversation.supportedPreset(e.preset)}function p(e=[]){e&&o.isArray(e)&&0!==e.length&&(d.clear(),o.each(e,e=>{l(e)&&(d.set(e.id,e),c(e.pageRule,e.id))&&h(e)}))}function h(e){const{id:t,cssSelectors:n}=e;o.find(s,e=>e.id===t)||((e=DOMConversation.validateConfig(n)).length?a.error("aiAgent config missing required selectors",{agentId:t,missing:e}):((e=new DOMConversation(i,r,t,n)).onSubmit(f),s.push(e)))}function f(e,t){var n=o.find(s,e=>e.id===t.agentId);n&&!n.isActive||(t=o.extend({agentType:"conversation"},t),r.analytics.collectEvent(e,t,undefined,"agentic"))}}export{ConsoleCapture,ConversationAnalytics,Feedback,GuideMarkdown,NetworkCapture,PredictGuides,createReplayPlugin as Replay,TextCapture,VocPortal,loadAgent};