@pendo/agent 2.297.0 → 2.298.0

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(u){d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");var d,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 d[e>>18&63]+d[e>>12&63]+d[e>>6&63]+d[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=d[n>>2])+d[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=d[n>>10])+d[n>>4&63])+d[n<<2&63]}return o}},Gt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var G,o,B,z,j,H,q,e={exports:{}};function W(e){e?(H[0]=H[16]=H[1]=H[2]=H[3]=H[4]=H[5]=H[6]=H[7]=H[8]=H[9]=H[10]=H[11]=H[12]=H[13]=H[14]=H[15]=0,this.blocks=H):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}n=e,G="object"==typeof window?window:{},t=!G.JS_SHA1_NO_COMMON_JS&&n.exports,o="0123456789abcdef".split(""),B=[-2147483648,8388608,32768,128],z=[24,16,8,0],j=["hex","array","digest","arrayBuffer"],H=[],q=function(t){return function(e){return new W(!0).update(e)[t]()}},W.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===G.ArrayBuffer?new Uint8Array(e):e).length||0,a=this.blocks;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),i)for(n=this.start;r<o&&n<64;++r)a[n>>2]|=e[r]<<z[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<z[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<z[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<z[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<z[3&n++],a[n>>2]|=(128|t>>12&63)<<z[3&n++]),a[n>>2]|=(128|t>>6&63)<<z[3&n++]),a[n>>2]|=(128|63&t)<<z[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,64<=n?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},W.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=B[3&t],this.block=e[16],56<=t&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash())},W.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},W.prototype.toString=W.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]},W.prototype.array=W.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]},W.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},i=function(){var t=q("hex");t.create=function(){return new W},t.update=function(e){return t.create().update(e)};for(var e=0;e<j.length;++e){var n=j[e];t[n]=q(n)}return t}(),t?n.exports=i:G.sha1=i;var V=p(e.exports);let J;const $={createScriptURL:e=>e,createHTML:e=>e};function K(e){return J||(J=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",$):$),e.trustedTypesPolicy=J),J}var E,Z="stagingServerHashes",X={};function Y(e){return e.loadAsModule}function Q(e){return"staging"===e.environmentName}function ee(e){return"extension"===e.installType}function te(t=[],n){var i=/^https:\/\/[\w\-.]*cdn[\w\-.]*\.(pendo-dev\.com|pendo\.io)\/agent\/static\/([\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}|PENDO_API_KEY)\/pendo\.js$/g;for(let e=0;e<t.length;e++){var r=t[e];if(i.test(r.src)||r.id==="pendo-"+n)return r}}function ne(e,t,n){e=function(e=[]){if(e=te(e))return e.src.replace(/\.js$/,"-staging.js")}(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function ie(n,i=[],r=[]){if(n){if(0<r.length){e=n;var o=c.uint8ToBase64(V.create().update(e).digest());for(let e=0,t=r.length;e<t;++e)if(r[e]===o)return!0}var e;if(0<i.length)for(let t=0,e=i.length;t<e;++t){let e=i[t];if((e="string"==typeof(e="object"==typeof e&&e.value?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)?new RegExp("^"+e+"$"):e)instanceof RegExp&&e.test(n))return!0}}return!1}function re(e,t){return!!(e=e||X)&&(!!Q(e)||ie((t=t||window.location).host,e.stagingServers,e[Z]))}var oe=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function ae(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function se(e){if(!e._q)for(var t=oe,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){ae(t,e,arguments)}}(t[n],e)}function ue(e,t,n){if(!ee(i=e)&&!Q(i)&&re(i)){i=ne(e,!0,n);if(i)return se(t),ce(i,t),!0}var i;return!1}function de(e,t,n){if(r=n,!ee(i=e)&&!i.unminified&&r){i=ne(e,!1,n);if(i)return se(t),ce(i,t),!0}var i,r;return!1}function ce(e,t){var n=document.createElement("script"),t=(n["async"]=!0,n.src=K(t).createScriptURL(e),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(n,t):(document.head||document.body).appendChild(n)}function le(e){X=e}function pe(){return void 0===u?{}:u}function he(e){return X[e]}fe(window.setTimeout,window);function fe(e,t){return"function"==typeof e.bind?e.bind(t):e}var ge,Ut=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return fe(e[t],e)}(window),_=p(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Gt&&Gt.global===Gt&&Gt||Function("return this")()||{},i=Array.prototype,F=Object.prototype,D="undefined"!=typeof Symbol?Symbol.prototype:null,U=i.push,u=i.slice,l=F.toString,G=F.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),B=Array.isArray,z=Object.keys,j=Object.create,H=t&&ArrayBuffer.isView,q=isNaN,W=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],$=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 K(e){return void 0===e}function Z(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var X=r("String"),Y=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=B||r("Array");function g(e,t){return null!=e&&G.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return Y(e)&&q(e)}function ue(e){return function(){return e}}function de(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=$}}function ce(t){return function(e){return null==e?void 0:e[t]}}var m=ce("byteLength"),le=de(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return H?H(e)&&!h(e):le(e)&&pe.test(l.call(e))}:ue(!1),v=ce("length");function fe(e,t){t=function(t){for(var n={},e=t.length,i=0;i<e;++i)n[t[i]]=!0;return{contains:function(e){return!0===n[e]},push:function(e){return n[e]=!0,t.push(e)}}}(t);var n=J.length,i=e.constructor,r=p(i)&&i.prototype||F,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=J[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(z)return z(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return V&&fe(e,n),n}function ge(e,t){var n=y(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function c(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=l.call(e);if(r!==l.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return D.valueOf.call(e)===D.valueOf.call(t);case"[object ArrayBuffer]":case ve:return c(me(e),me(t),n,i)}r="[object Array]"===r;if(!r&&he(e)){var o=m(e);if(o!==m(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];i=i||[];var s=n.length;for(;s--;)if(n[s]===e)return i[s]===t;n.push(e);i.push(t);if(r){if((s=e.length)!==t.length)return!1;for(;s--;)if(!ye(e[s],t[s],n,i))return!1}else{var u,d=y(e);if(s=d.length,y(t).length!==s)return!1;for(;s--;)if(u=d[s],!g(t,u)||!ye(e[u],t[u],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function d(e){if(!o(e))return[];var t,n=[];for(t in e)n.push(t);return V&&fe(e,n),n}function be(i){var r=v(i);return function(e){if(null==e)return!1;var t=d(e);if(v(t))return!1;for(var n=0;n<r;n++)if(!p(e[i[n]]))return!1;return i!==Se||!p(e[we])}}var we="forEach",e=["clear","delete"],n=["get","has","set"],B=e.concat(we,n),Se=e.concat(n),t=["add"].concat(e,we,"has"),n=a?be(B):r("Map"),e=a?be(Se):r("WeakMap"),B=a?be(t):r("Set"),a=r("WeakSet");function w(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ee(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Ie(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function _e(u,d){return function(e){var t=arguments.length;if(d&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=u(i),o=r.length,a=0;a<o;a++){var s=r[a];d&&void 0!==e[s]||(e[s]=i[s])}return e}}var Ce=_e(d),s=_e(y),xe=_e(d,!0);function Te(e){var t;return o(e)?j?j(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function ke(e){return f(e)?e:[e]}function S(e){return b.toPath(e)}function Ae(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function Re(e,t,n){e=Ae(e,S(t));return K(e)?n:e}function Oe(e){return e}function E(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return Ae(e,t)}}function I(r,o,e){if(void 0===o)return r;switch(null==e?3:e){case 1:return function(e){return r.call(o,e)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return function(){return r.apply(o,arguments)}}function Me(e,t,n){return null==e?Oe:p(e)?I(e,t,n):(o(e)&&!f(e)?E:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function _(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Pe(){}function Fe(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=ke,b.iteratee=Le;var C=Date.now||function(){return(new Date).getTime()};function De(t){var n=function(e){return t[e]},e="(?:"+y(t).join("|")+")",i=RegExp(e),r=RegExp(e,"g");return function(e){return i.test(e=null==e?"":""+e)?e.replace(r,n):e}}var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Ue=De(t),t=De(Ee(t)),Ge=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Be=/(.)^/,ze={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},je=/\\|'|\r|\n|\u2028|\u2029/g;function He(e){return"\\"+ze[e]}var qe=/^\s*(\w|\$)+\s*$/;var We=0;function Ve(e,t,n,i,r){return i instanceof t?(i=Te(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var x=c(function(r,o){var a=x.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),i=0;i<t;i++)n[i]=o[i]===a?arguments[e++]:o[i];for(;e<arguments.length;)n.push(arguments[e++]);return Ve(r,s,this,this,n)};return s}),Je=(x.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return Ve(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),T=de(v);function k(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=Infinity;for(var r=i.length,o=0,a=v(e);o<a;o++){var s=e[o];if(T(s)&&(f(s)||ae(s)))if(1<t)k(s,t-1,n,i),r=i.length;else for(var u=0,d=s.length;u<d;)i[r++]=s[u++];else n||(i[r++]=s)}return i}var $e=c(function(e,t){var n=(t=k(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Je(e[i],e)}return e});var Ke=c(function(e,t,n){return Ut(function(){return e.apply(null,n)},t)}),Ze=x(Ke,b,1);function Xe(e){return function(){return!e.apply(this,arguments)}}function Ye(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=x(Ye,2);function et(e,t,n){t=_(t,n);for(var i,r=y(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function tt(o){return function(e,t,n){t=_(t,n);for(var i=v(e),r=0<o?0:i-1;0<=r&&r<i;r+=o)if(t(e[r],r,e))return r;return-1}}var nt=tt(1),it=tt(-1);function rt(e,t,n,i){for(var r=(n=_(n,i,1))(t),o=0,a=v(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function ot(o,a,s){return function(e,t,n){var i=0,r=v(e);if("number"==typeof n)0<o?i=0<=n?n:Math.max(n+r,i):r=0<=n?Math.min(n+1,r):n+r+1;else if(s&&n&&r)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(u.call(e,i,r),se))?n+i:-1;for(n=0<o?i:r-1;0<=n&&n<r;n+=o)if(e[n]===t)return n;return-1}}var at=ot(1,nt,rt),st=ot(-1,it);function ut(e,t,n){t=(T(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function A(e,t,n){if(t=I(t,n),T(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function R(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function dt(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=I(t,i,4),s=n,u=!T(o)&&y(o),d=(u||o).length,c=0<p?0:d-1;for(r||(s=o[u?u[c]:c],c+=p);0<=c&&c<d;c+=p){var l=u?u[c]:c;s=a(s,o[l],l,o)}return s}}var ct=dt(1),lt=dt(-1);function O(e,i,t){var r=[];return i=_(i,t),A(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function N(e,t,n,i){return T(e)||(e=w(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=c(function(e,n,i){var r,o;return p(n)?o=n:(n=S(n),r=n.slice(0,-1),n=n[n.length-1]),R(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Ae(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return R(e,Ne(t))}function mt(e,i,t){var n,r,o=-Infinity,a=-Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=T(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&o<n&&(o=n);else i=_(i,t),A(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?u.call(e):X(e)?e.match(vt):T(e)?R(e,Oe):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=T(e)?e:w(e))[Fe(e.length-1)];for(var i=yt(e),n=v(i),r=(t=Math.max(Math.min(t,n),0),n-1),o=0;o<t;o++){var a=Fe(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function M(o,t){return function(n,i,e){var r=t?[[],[]]:{};return i=_(i,e),A(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var wt=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),St=M(function(e,t,n){e[n]=t}),Et=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),It=M(function(e,t,n){e[n?0:1].push(t)},!0);function _t(e,t,n){return t in n}var Ct=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=I(i,t[1])),t=d(e)):(i=_t,t=k(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=e[a];i(s,a,e)&&(n[a]=s)}}return n}),xt=c(function(e,n){var t,i=n[0];return p(i)?(i=Xe(i),1<n.length&&(t=n[1])):(n=R(k(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Ct(e,i,t)});function Tt(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function kt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Tt(e,e.length-t)}function L(e,t,n){return u.call(e,null==t||n?1:t)}var At=c(function(e,t){return t=k(t,!0,!0),O(e,function(e){return!N(t,e)})}),Rt=c(function(e,t){return At(e,t)});function Ot(e,t,n,i){Z(t)||(i=n,n=t,t=!1),null!=n&&(n=_(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var u=e[a],d=n?n(u,a,e):u;t&&!n?(a&&o===d||r.push(u),o=d):n?N(o,d)||(o.push(d),r.push(u)):N(r,u)||r.push(u)}return r}var Nt=c(function(e){return Ot(k(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Pt(e,t){return e._chain?b(t).chain():t}function Ft(n){return A(Ie(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return U.apply(e,arguments),Pt(this,t.apply(b,e))}}),b}A(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Pt(this,e)}}),A(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Pt(this,e=null!=e?t.apply(e,arguments):e)}});var P=Ft({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:K,isBoolean:Z,isElement:function(e){return!(!e||1!==e.nodeType)},isString:X,isNumber:Y,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&W(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||X(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:B,isWeakSet:a,keys:y,allKeys:d,values:w,pairs:function(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:Ee,functions:Ie,methods:Ie,extend:Ce,extendOwn:s,assign:s,defaults:xe,create:function(e,t){return e=Te(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:Re,has:function(e,t){for(var n=(t=S(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=_(t,n);for(var i=y(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Oe,constant:ue,noop:Pe,toPath:ke,property:Ne,propertyOf:function(t){return null==t?Pe:function(e){return Re(t,e)}},matcher:E,matches:E,times:function(e,t,n){var i=Array(Math.max(0,e));t=I(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:Fe,now:C,escape:Ue,unescape:t,templateSettings:Ge,template:function(o,e,t){e=xe({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||Be).source,(e.interpolate||Be).source,(e.evaluate||Be).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace(je,He),a=r+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(s+="';\n"+i+"\n__p+='"),e}),s+="';\n",t=e.variable){if(!qe.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{throw new Error("Function constructor not supported")}catch(n){throw n.source=s,n}return(e=function(e){return(void 0).call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=S(t)).length;if(!i)return p(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++We+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:x,bind:Je,bindAll:$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:Ke,defer:Ze,throttle:function(n,i,r){var o,a,s,u,d=0,c=(r=r||{},function(){d=!1===r.leading?0:C(),o=null,u=n.apply(a,s),o||(a=s=null)}),e=function(){var e=C(),t=(d||!1!==r.leading||(d=e),i-(e-d));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout(o),o=null),d=e,u=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=Ut(c,t)),u};return e.cancel=function(){clearTimeout(o),d=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,u,d=function(){var e=C()-o;e<n?r=Ut(d,n-e):(r=null,i||(s=t.apply(u,a)),r||(a=u=null))},e=c(function(e){return u=this,a=e,o=C(),r||(r=Ut(d,n),i&&(s=t.apply(u,a))),s});return e.cancel=function(){clearTimeout(r),r=a=u=null},e},wrap:function(e,t){return x(t,e)},negate:Xe,compose:function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:Ye,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:ut,detect:ut,findWhere:function(e,t){return ut(e,E(t))},each:A,forEach:A,map:R,collect:R,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Xe(_(t)),n)},every:pt,all:pt,some:ht,any:ht,contains:N,includes:N,include:N,invoke:ft,pluck:gt,where:function(e,t){return O(e,E(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=T(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&n<o&&(o=n);else i=_(i,t),A(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=_(i,t),gt(R(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:wt,indexBy:St,countBy:Et,partition:It,toArray:yt,size:function(e){return null==e?0:(T(e)?e:y(e)).length},pick:Ct,omit:xt,first:kt,head:kt,take:kt,initial:Tt,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return O(e,Boolean)},flatten:function(e,t){return k(e,t,!1)},without:Rt,uniq:Ot,unique:Ot,union:Nt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=v(e);i<r;i++){var o=e[i];if(!N(t,o)){for(var a=1;a<n&&N(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:At,unzip:Mt,transpose:Mt,zip:Lt,object:function(e,t){for(var n={},i=0,r=v(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n=n||(t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(u.call(e,i,i+=t));return n},mixin:Ft,"default":b}),Dt=P.toPath;return P.mixin({toPath:function(e){return P.isString(e)?e.split("."):Dt(e)}}),P._=P}());function me(e){return!(null==e)}function ve(e){return _.isFunction(e)||_.isRegExp(e)?e:_.isArray(e)?_.map(e,ve):_.isObject(e)?_.reduce(e,function(e,t,n){return e[n]=ve(t),e},{}):e}var f=function(){var i=_.all,r=_.each,o=_.filter,a=_.first,s=_.find,n=_.map,u=_.pluck,d="snippet",c="pendoconfig",l="global",p="default";const h={};function e(e,t=[c],n,i){e&&!h[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),h[e]=n)}e("additionalApiKeys",[c,d]),e("allowedOriginServers"),e("allowedOriginServerHashes"),e("allowMixedApiKeyFrames",[d,c],!0),e("annotateUrl",[d]),e("apiKey",[c,d]),e("assetHost",[d,c]),e("autoFrameInstall",[d,c],!1),e("blockAgentMetadata",[c],!1),e("contentHost",[d,c]),e("cookieDomain",[d,c]),e("dataHost",[d,c]),e("disableAutoInitialize"),e("disableCookies",[d,c]),e("disablePendo",[d,c],!1),e("disablePersistence",[d,c]),e("enableSignedMetadata",[c],!1),e("frameIdentitySync",[d,c],!1),e("frameIdentityTopDownOnly",[d,c],!0),e("forceAnonymous",[d,c],!1),e("identityStorageLifetime",[d,c]),e("identityStorageSuffix",[d,c]),e("ignoreHashRouting",[d,c]),e("initializeImmediately",[d,c],!1),e("installType"),e("localStorageOnly",[d,c]),e("location.pushState",[d,c],!0),e("maxCookieTTLDays",[d,c],Infinity),e("observeShadowRoots",[d,c],!1),e("pendoCore",[c],!0),e("pendoGlobalKey",[c]),e("preferBroadcastChannel",[d,c],!1),e("preferMutationObserver",[d,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[d,c],!1),e("promotedAgentMetadataConfigurations",[c]),e("queryStringWhitelist",[d]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[d]),e("selfHosted"),e("selfHostedAgentUrl",[d,c]),e("sendEventsWithPostOnly",[d,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[d,c],[]),e("analytics.excludeEvents",[d,c],[]),e("analytics.localStorageUnload",[d,c],!1),e("enableDebugEvents",[d,c]),e("freeNPSData"),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[d,c],!0),e("excludeAllText",[c,d],!1,!0),e("excludeNonGuideAnalytics",[d,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptElementRemoval",[d,c],!1),e("interceptPreventDefault",[d,c],!0),e("interceptStopPropagation",[d,c],!0),e("syntheticClicks.elementRemoval",[d,c],!1),e("syntheticClicks.targetChanged",[d,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[d,c]),e("cacheGuides",[d,c],!1),e("cacheGuidesTimeout",[c],6e5),e("delayGuides",[d]),e("disableDesigner",[c,d],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[d,c],!1),e("disableGuidePseudoStyles",[d,c],!1),e("disableGuides",[d]),e("disablePrefetch",[d,c]),e("enableDesignerKeyboardShortcut",[d]),e("enableGuideTimeout",[c,d],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,d],1e4),e("guideTimeout",[d]),e("guideValidation",[d,c],!1),e("guides.attachPoint",[d]),e("guides.delay",[d]),e("guides.disabled",[d]),e("guides.ejectOnTimeout",[d,c],!1),e("guides.globalScripts",[d,c],[]),e("guides.timeout",[d]),e("guides.tooltip.arrowSize",[d]),e("inlineStyleNonce",[d]),e("leaderKey",[d,c],[]),e("preventCodeInjection",[c,d,l],!1),e("previewModeAssetPath"),e("useAssetHostForDesigner",[d,c],!1),e("storage.allowKeys",[d],"*"),e("disableFeedback",[d]),e("disableFeedbackAutoInit"),e("feedbackSettings",[c],{}),e("pendoFeedback",[c],!1),e("crossAppGuideStorageSuffix",[d,c]),e("enableCrossOriginIsolation",[d,c],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("agentDebuggerPluginLoader"),e("allowPartnerAnalyticsForwarding",[d],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerAgentPluginsLoader",[c,d]),e("trainingPartner"),e("errorClickLogging",[c],!1),e("enableAllEmbeddedGuideEvents",[c],!1),e("formValidation",[c],!1),e("performanceMetricsEnabled",[d,c],!0);var f={};function g(e){return h[e]||{name:e}}function m(e,t){if(t)return t=t(),me(e=_.get(t.lookup,(t=e,_.get(t,"key")||_.get(t,"name"))))?e:undefined}function v(e,t){var n=m(e,f[t]);return new w(e.name,n,t)}function y(e,t){return t=t||_.get(e,"supportedSources",[d,c,l]),o(n(t,_.partial(v,e)),function(e){return me(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||_.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&me(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function w(e,t,n){this.name=e,this.value=t,this.source=n}function S(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(u(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[d]=function(){return{lookup:ge||window.pendo_options,name:d}},f[c]=function(){return{lookup:X,name:c}},f[l]=function(){return{lookup:E,name:l}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get(e,t){return b(e,t).value},getLocalConfig(e,t){return arguments.length?b(e,t,[d]).value:ve(ge)},getHostedConfig(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig(e){ge=e},options:()=>u(h,"name"),sources:{SNIPPET_SRC:d,PENDO_CONFIG_SRC:c,GLOBAL_SRC:l,DEFAULT_SRC:p},validate(t){t.groupCollapsed("Validate Config options"),r(S(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}();const ye="extension",be="native";function we(){return f.get("installType")||pe().installType||be}function Se(){return we()===ye}function Ee(e){return/native/.test(e)}const Ie=e=>{e=_.get(window,e);return e&&Ee(e)};function _e(e,t){return e=e||10,(t=!isNaN(xe)&&(!t||xe<t))&&Ce<e}const Ce=function(e){let t=Te((/msie (\d+)/.exec(ke(e))||[])[1]);isNaN(t)&&(t=Te((/trident\/.*; rv:(\d+)/.exec(ke(e))||[])[1]));return t}(Ae()),xe=function(e,t){let n=Te((/trident\/(\d+)/.exec(ke(e))||[])[1]);isNaN(n)&&7==t&&(n=3);return n}(Ae(),Ce);function Te(e){return parseInt(e,10)}function ke(e){return _.isString(e)?e.toLowerCase():e}function Ae(){return(window.navigator||{}).userAgent}const Re={},Oe=Te((/android (\d+)/.exec(ke(Ae()))||[])[1]),Ne=/Boxee/i.test(Ae()),Me=window.document||{},Le=Me.documentMode;let Pe;var Fe,De=/^(Moz|webkit|O|ms)(?=[A-Z])/,t=Me.body&&Me.body.style;let Ue=!1,Ge=!1;if(t){for(const wS in t)if(Fe=De.exec(wS)){Pe=(Pe=Fe[0]).substr(0,1).toUpperCase()+Pe.substr(1);break}Pe=Pe||"WebkitOpacity"in t&&"webkit",Ue=!!("transition"in t||Pe+"Transition"in t),Ge=!!("animation"in t||Pe+"Animation"in t),!Oe||Ue&&Ge||(Ue=_.isString(Me.body.style.webkitTransition),Ge=_.isString(Me.body.style.webkitAnimation))}var n=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id;const Be=_.memoize(function Be(){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=!(Oe<4);return!(!e||t||!n||!i||Ne||Se())});const ze={supportsHistoryApi:Be,supportsHashChange:function(){var e="onhashchange"in window,t=!Le||7<Le;return!(!e||!t||Se())},hasEvent(e){var t;return("input"!=e||9!=Ce)&&(_.isUndefined(Re[e])&&(t=Me.createElement("div"),Re[e]="on"+e in t),Re[e])},vendorPrefix:Pe,transitions:Ue,animations:Ge,android:Oe,msie:Ce,msieDocumentMode:Le,safari:0<=(i=Ae()).indexOf("Safari")&&0<=!i.indexOf("Chrome"),sri:"integrity"in document.createElement("script"),addEventListener:_.isFunction(window.addEventListener),MutationObserver:Ee(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:_.memoize(function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Ae())}),isChromeExtension:n};var je=function(){return!isNaN(Ce)&&11!=Ce&&"CSS1Compat"!==document.compatMode},He=function(e,t){var n,i=e.height,r=e.width;return"top"==e.arrowPosition||"bottom"==e.arrowPosition?(n=0,"top"==e.arrowPosition?(e.top=t.top+t.height,n=-1,e.arrow.top=3,Ce<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+E.TOOLTIP_ARROW_SIZE),e.arrow.top=i-E.TOOLTIP_ARROW_SIZE,10==Ce?e.arrow.top--:Ce<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=10+E.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*E.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-E.TOOLTIP_ARROW_SIZE),e.arrow.border.top=e.arrow.top+n,e.arrow.border.left=e.arrow.left):("left"==e.arrow.hbias?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left-1):"right"==e.arrow.hbias&&(e.left=Math.max(0,t.left-r-E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left+1),e.top=t.top+t.height/2-i/2,e.arrow.top=i/2-E.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e};let qe="",We="",Ve="",Je="",$e="",Ke="",Ze="",Xe="2.297.0_",Ye="2.297.0",Qe="xhr";const et=function(){return je()?Xe+"+quirksmode":Xe};var tt=/^\s+|\s+$/g;function nt(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 it=(it=String.prototype.trim)||function(){return this.replace(tt,"")},e={exports:{}};!function(){var Y=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===Y?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&u(this)}function u(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(d[255&e]<<24|d[e>>>8&255]<<16|d[e>>>16&255]<<8|d[e>>>24&255])>>32-t:d[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=d[s],s=0,o===r.length)&&(r=u(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=d[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var d=t;function c(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&e instanceof Array?new Uint8Array(e):e,this.c=0,t&&(t.lazy&&(this.i=t.lazy),"number"==typeof t.compressionType&&(this.d=t.compressionType),t.outputBuffer&&(this.a=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.prototype.push=function(e,t){var n,i,r=this.buffer,o=this.length;for(r[this.length++]=t,r[this.length++]=e;0<o&&(n=this.getParent(o),r[o]>r[n]);)i=r[o],r[o]=r[n],r[n]=i,i=r[o+1],r[o+1]=r[n+1],r[n+1]=i,o=n;return this.length},c.prototype.pop=function(){var e,t,n,i=this.buffer,r=i[0],o=i[1];for(this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],n=0;!((t=2*n+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[n]);)e=i[n],i[n]=i[t],i[t]=e,e=i[n+1],i[n+1]=i[t+1],i[t+1]=e,n=t;return{index:o,value:r,length:this.length}};for(var ne=2,l={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,F,n=this.input;switch(this.d){case 0:for(t=0,F=n.length;t<F;){var D,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===F,o=Y,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),D=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&D,a[s++]=D>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,U=i.length;o<U;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var u,d=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(d.b(1,1,Q),d.b(1,2,Q),re(this,n)),l=0,G=c.length;l<G;l++)if(u=c[l],te.prototype.b.apply(d,ie[u]),256<u)d.b(c[++l],c[++l],Q),d.b(c[++l],5),d.b(c[++l],c[++l],Q);else if(256===u)break;this.a=d.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,z,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,x,T,k,q=h,W=f,A=new(ee?Uint32Array:Array)(q+W),R=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<q;N++)A[_++]=m[N];for(N=0;N<W;N++)A[_++]=v[N];if(!ee)for(N=0,x=O.length;N<x;++N)O[N]=0;for(N=T=0,x=A.length;N<x;N+=_){for(_=1;N+_<x&&A[N+_]===A[N];++_);if(C=_,0===A[N])if(C<3)for(;0<C--;)O[R[T++]=0]++;else for(;0<C;)(k=C-3<(k=C<138?C:138)&&k<C?C-3:k)<=10?(R[T++]=17,R[T++]=k-3,O[17]++):(R[T++]=18,R[T++]=k-11,O[18]++),C-=k;else if(R[T++]=A[N],O[A[N]]++,--C<3)for(;0<C--;)R[T++]=A[N],O[A[N]]++;else for(;0<C;)C-3<(k=C<6?C:6)&&k<C&&(k=C-3),R[T++]=16,R[T++]=k-3,O[16]++,C-=k}for(e=ee?R.subarray(0,T):R.slice(0,T),y=oe(O,7),S=0;S<19;S++)H[S]=y[j[S]];for(g=19;4<g&&0===H[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(H[S],3,Q);for(S=0,z=e.length;S<z;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],J=I[0],$=I[1],K=L[0],Z=L[1],P=0,X=p.length;P<X;++P)if(M=p[P],E.b(J[M],$[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b(K[V],Z[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,u=w[e.length];switch(a[s++]=65535&u,a[s++]=u>>16&255,a[s++]=u>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(u=n,a[s++]=u[0],a[+s]=u[1],a[5]=u[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,c=null}var i,r,o,a,s,u,d,c,l,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===Y&&(p[s]=[]),u=p[s],!(0<g--)){for(;0<u.length&&32768<i-u[0];)u.shift();if(r<=i+3){for(c&&n(c,-1),o=0,a=r-i;o<a;++o)l=t[i+o],h[f++]=l,++m[l];break}0<u.length?(d=function(e,t,n){var i,r,o,a,s,u,d=0,c=e.length;a=0,u=n.length;e:for(;a<u;a++){if(i=n[u-a-1],(o=3)<d){for(s=d;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=d}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(d<o&&(r=i,d=o),258===o)break}return new b(d,t-r)}(t,i,u),c?c.length<d.length?(l=t[i-1],h[f++]=l,++m[l],n(d,0)):n(c,-1):d.length<y?c=d:n(d,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}u.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,u=new c(572),d=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)d[o]=0;for(o=0;o<s;++o)0<e[o]&&u.push(o,e[o]);if(n=Array(u.length/2),i=new(ee?Uint32Array:Array)(u.length/2),1===n.length)d[u.pop().index]=1;else{for(o=0,a=u.length/2;o<a;++o)n[o]=u.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,u=new(ee?Uint16Array:Array)(t),d=new(ee?Uint8Array:Array)(t),c=new(ee?Uint8Array:Array)(n),l=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(u[t-1]=n,r=0;r<t;++r)f<g?d[r]=0:(d[r]=1,f-=g),f<<=1,u[t-2-r]=(u[t-1-r]/2|0)+n;for(u[0]=d[0],l[0]=Array(u[0]),p[0]=Array(u[0]),r=1;r<t;++r)u[r]>2*u[r-1]+d[r]&&(u[r]=2*u[r-1]+d[r]),l[r]=Array(u[r]),p[r]=Array(u[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<u[t-1];++o)l[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===d[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<u[r];o++)(a=l[r+1][s]+l[r+1][s+1])>e[i]?(l[r][o]=a,p[r][o]=n,s+=2):(l[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===d[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--c[t],++h[e]}(r)}return c}(i,i.length,t),o=0,a=n.length;o<a;++o)d[n[o].index]=r[o]}return d}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,u=e.length;s<u;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,u=16;s<=u;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,u=e.length;s<u;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,S=l,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,u=a.length;s<u;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var d,c=1,l=0,p=o.length,h=0;0<p;){for(p-=d=1024<p?1024:p;l+=c+=o[h++],--d;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call(e.exports);var rt={Deflate:p(e.exports).Zlib.Deflate},ot="base64url";function at(e,t){t=t||ot;e=nt("string"==typeof e?e:JSON.stringify(e)),e=new rt.Deflate(e).compress();return t===ot?c.uint8ToBase64(e):e}t={exports:{}};!function(){var o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||void 0===t?r=r[n]||(r[n]={}):r[n]=t}var a={c:function(e,t,n){return a.update(e,0,t,n)},update:function(e,t,n,i){var r=a.a,o="number"==typeof n?n:n=0,i="number"==typeof i?i:e.length;for(t^=4294967295,o=7&i;o--;++n)t=t>>>8^r[255&(t^e[n])];for(o=i>>3;o--;n+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^r[255&(t^e[n])])>>>8^r[255&(t^e[n+1])])>>>8^r[255&(t^e[n+2])])>>>8^r[255&(t^e[n+3])])>>>8^r[255&(t^e[n+4])])>>>8^r[255&(t^e[n+5])])>>>8^r[255&(t^e[n+6])])>>>8^r[255&(t^e[n+7])];return(4294967295^t)>>>0},d:function(e,t){return(a.a[255&(e^t)]^e>>>8)>>>0},b:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]};a.a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?new Uint32Array(a.b):a.b,e("Zlib.CRC32",a),e("Zlib.CRC32.calc",a.c),e("Zlib.CRC32.update",a.update)}.call(t.exports);var st={CRC32:p(t.exports).Zlib.CRC32},ut=function(e,n){var i;return 200<=(n=n||0)?e:_.isArray(e)?_.map(e,function(e){return ut(e,n+1)}):!_.isObject(e)||_.isDate(e)||_.isRegExp(e)||_.isElement(e)?_.isString(e)?_.escape(e):e:(i={},_.each(e,function(e,t){i[t]=ut(e,n+1)}),i)},dt=function(e){e=nt(e);return c.uint8ToBase64(e)},ct=function(e){if(void 0!==e)return e=nt(e=_.isString(e)?e:JSON.stringify(e)),st.CRC32.calc(e,0,e.length)};function lt(e){return e[Math.floor(Math.random()*e.length)]}function pt(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=lt(i);return n}var ht=function(e,t,n){return!(!me(e)||!me(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function S(){return(new Date).getTime()}function ft(){return"undefined"!=typeof $A&&_.isFunction($A.get)&&_.isString($A.get("$Browser.formFactor"))}function gt(e,t=window){var[e,t,n=window]=[_,e,t],i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}i=window;var mt=_.isFunction(i.isFinite)?i.isFinite:i.Number&&_.isFunction(i.Number.isFinite)?i.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function vt(e){return"number"==typeof e&&mt(e)&&Math.floor(e)===e}function yt(e,t,n,i){(t=t||{}).maxRetries=vt(t.maxRetries)?t.maxRetries:10,t.delay=vt(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,yt(e,t,o,a)},t.delay):(a||function(){})()}var bt=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function wt(e){return _.isObject(e)&&_.isFunction(e.then)}var St,Et=_.isFunction(window.decodeURIComponent)?window.decodeURIComponent:_.identity,It=_.isFunction(window.encodeURIComponent)?window.encodeURIComponent:_.identity;class _t{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 Ct{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()}}(n=St=St||{}).Debug="debug",n.Info="info",n.Warn="warn",n.Error="error",n.Critical="critical";class xt extends _t{write(e,t,n){this.dispatchEvent(new Ct(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 Ct(t,i,n);e.error=r,this.dispatchEvent(e)}debug(e,t){this.write(e,St.Debug,t)}info(e,t){this.write(e,St.Info,t)}warn(e,t){this.writeError(e,St.Warn,t)}error(e,t){this.writeError(e,St.Error,t)}critical(e,t){this.writeError(e,St.Critical,t)}}const C=new xt;function Tt(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const kt=function(){var e=f.get("storage.allowKeys")||"*";return _.isArray(e)?_.indexBy(e):e};function At(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function Rt(n){_.forEach(_.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function Ot(e){var t=_.noop,t={getItem:()=>null,setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:At(n,n.getItem,null),setItem:At(n,n.setItem),removeItem:At(n,n.removeItem),clearPendo:_.partial(Rt,n)}:t}catch(i){return t}}var Nt=Ot(function(){return window.localStorage}),Mt=Ot(function(){return window.sessionStorage});function Lt(e){try{return JSON.parse(e)}catch(t){return null}}var Pt,Ft={},Dt=!0,Bt=function(){return f.get("localStorageOnly")},zt=function(){return!!f.get("disableCookies")};function jt(e){Dt=e}var Ht=function(e){var t=zt()||Bt()?Ft[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?Et(e[2]):null},qt=function(e,t,n,i){var r,o;!Dt||f.get("preventCookieRefresh")&&Ht(e)===t||(o=Zt(n),(r=new Date).setTime(r.getTime()+o),o=e+"="+It(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict",Pt&&(o+=";domain="+Pt),zt()||Bt()?Ft[e]=o:document.cookie=o)};function Wt(e){Pt?qt(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var Vt=function(e,t){return`_pendo_${e}.`+(t||E.apiKey)},Jt=function(e,t){return Ht(Vt(e,t))};const $t=864e5,Kt=100*$t,Zt=(e=Kt)=>{var t=f.get("maxCookieTTLDays"),t=t<Infinity?t*$t:Infinity;return Math.min(e,t)};var Xt=function(e,t,n,i,r){n=n||Kt,qt(Vt(e,r),t,n,i)};class Yt{constructor(){this.keys={}}addLocal(e,t){this._add(e,"local",t)}addSession(e,t){this._add(e,"session",t)}hasLocal(e){return this._has(e,"local")}hasSession(e){return this._has(e,"session")}getKeyConfig(e,t,n){return me(n)?n:this.keys[e]?this.keys[e][t]:undefined}getKeySerializer(e){return this.keys[e]?this.keys[e].serializer:_.identity}getKeyDeserializer(e){return this.keys[e]?this.keys[e].deserializer:_.identity}_add(e,t,n={}){n=_.extend({type:t,duration:null,isPlain:!1,isSecure:!1,cookieSuffix:undefined,serializer:_.identity,deserializer:_.identity},n),this.keys[e]||(this.keys[e]=n)}_has(e,t){return!!this.keys[e]&&this.keys[e].type===t}}var Qt,en,tn,nn,m,h=function(){const u=new Yt;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=kt())||n[t])return u[r](e)||C.warn(`storage key ${e} is not registered`),i.apply(this,arguments);C.debug(`writing storage key ${e} is not allowed`)}}function d(){return!zt()&&!Pt&&c("localStorage")}var c=_.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}});function l(e){e.cache&&(e.cache={})}function o(e,t,n){t=u.getKeyConfig(e,"isPlain",t),n=u.getKeyConfig(e,"cookieSuffix",n);t=t?e:Vt(e,n);if(d())return localStorage.removeItem(t);Wt(t)}const t=_.extend({},Mt),n=(t.setItem=e(t.setItem,"hasSession"),_.extend({},Nt));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){t=u.getKeyConfig(e,"isPlain",t),n=u.getKeyConfig(e,"cookieSuffix",n);let i;var r;return d()?(r=t?e:Vt(e,n),null===(i=function(e){if(null===e)return null;try{var t=JSON.parse(e);return t.ttl?t.ttl<(new Date).getTime()?null:String(t.value||t):e}catch(n){return e}}(localStorage.getItem(r)))&&o(e,t,n)):i=t?Ht(e):Jt(e,n),u.getKeyDeserializer(e)(i)},write:e(function(e,t,n,i,r,o){if(n=u.getKeyConfig(e,"duration",n),i=u.getKeyConfig(e,"isPlain",i),r=u.getKeyConfig(e,"isSecure",r),o=u.getKeyConfig(e,"cookieSuffix",o),t=u.getKeySerializer(e)(t),l(c),d())try{var a=i?e:Vt(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+Zt(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void l(c)}catch(s){}if(!i)return Xt(e,t,n,r,o);qt(e,t,n,r)},"hasLocal"),clear:o,registry:u,getLocal:()=>n,getSession:()=>t}}(),rn=(window.Promise,e=function(){var t=Ut;function d(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void u(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!d(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function u(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){u(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)u(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!d(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a},"function"==typeof(t=window.Promise)&&/native/.test(t)?t:e()),i=(en=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},tn=function(n,i){var r=Qt.defer(),o=function(n,i){Ut(function(){var e;try{e=n(i)}catch(t){return void r.reject(t)}e===r.promise?r.reject(new TypeError("Cannot resolve promise with itself")):r.resolve(e)},1)};return{promise:r.promise,handle:function(e,t){e===nn?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},nn=1,(Qt={}).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(nn,e)},a=function(e){t(2,e)},s=function(e,t){e=tn(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},u=function(e){var t=en();try{e(t(d),t(a))}catch(n){t(a)(n)}},d=function(e){var t;try{t=function(e){var t=e&&e.then;if("object"==typeof e&&"function"==typeof t)return function(){return t.apply(e,arguments)}}(e)}catch(n){return void a(n)}t?u(t):o(e)},e=en();return{resolve:e(d),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},Qt);function on(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)}!Se()&&ze.isMinimumIEVersion(11)?m={all:function(e){return _.isArray(e)?rn.all.apply(rn,arguments):on(e)},reject:function(){return rn.reject.apply(rn,arguments)},resolve:function(){return rn.resolve.apply(rn,arguments)},defer:function(){var n={};return n.promise=new rn(function(e,t){n.resolve=e,n.reject=t}),n}}:((m=i).all=on,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 an=h.getSession(),sn="pendo_tabId",un="pendo_parentTabId";dn=window,n=_.partial,cn=_.extend,ln=_.omit,pn={data:{},getItem(e){return pn.data[e]},setItem(e,t){pn.data[e]=t},removeItem(e){pn.data[e]=null,delete pn.data[e]}},hn=n(yn,sn,bn),fn=n(yn,"pendo_frameId",pn);var dn,cn,ln,pn,hn,fn,gn={addTracerIds(e){return ln(cn(e,{parentTabId:mn(un,bn),tabId:hn(),frameId:fn()}),function(e){return e===undefined})},setParentTabId:function(e){vn(un,e,bn)},newTabId:function(){var e=pt(16);return vn(sn,e,bn),e},getTabId:hn,getFrameId:fn,tabIdChanged:function(t){var e;if(ze.addEventListener)return dn.addEventListener("storage",e=function(e){e.key===sn&&(pn.removeItem(sn),t())}),function(){dn.removeEventListener("storage",e)}}};function mn(e,t){return(_.isFunction(t)?t():t).getItem(e)}function vn(e,t,n){(_.isFunction(n)?n():n).setItem(e,t)}function yn(e,t){var n=mn(e,t);return n||vn(e,n=pt(16),t),n}function bn(){return n=pn,i=an,{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 wn(){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}wn.clear=function(t){t&&_.each(_.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};Li={DEBUG:t="debug",FRAMES:e="frames",LIFECYCLE:i="lifecycle",RUNTIME:n="runtime"},Sn=[new r("ready",[t,i]),new r("deliverablesLoaded",[t,i]),new r("guidesFailed",[t,i]),new r("guidesLoaded",[t,i]),new r("guideListChanged",[t,i]),new r("guideSeen",[t,i]),new r("guideNotSeen",[t,i]),new r("guideAdvanced",[t,i]),new r("guideDismissed",[t,i]),new r("guideSnoozed",[t,i]),new r("beforeGuideShow",[i]),new r("beforeMount",[n]),new r("beforeAdvance",[n]),new r("beforePrevious",[n]),new r("beforeSnooze",[n]),new r("beforeDismiss",[n]),new r("beforeUnmount",[n]),new r("unmounted",[n]),new r("beforeUpdate",[n]),new r("updated",[n]),new r("guideSnoozeCancelled",[t,i]),new r("guideTimeout",[t,i]),new r("guideLoopStopped",[t,i]),new r("guideUpdateComplete",[i]),new r("designerLaunched",[t,i]),new r("debuggerLaunched",[t,i]),new r("stepEligibility",[t]),new r("identify",[t,i]),new r("metadata",[t,i]),new r("appUnloaded",[t,i]),new r("appHidden",[t,i]),new r("startPreview",[t]),new r("resourceFetchFail",[t]),new r("contentVerificationFail",[t]),new r("contentValidationFail",[t]),new r("renderFail",[t]),new r("appUsage",[i]),new r("eventCaptured",[t]),new r("error",[t,i]),new r("onClickCaptured",[t]),new r("urlChanged",[i]),new r("leaderChanged",[i,e]),new r("transmit:locked",[i]),new r("transmit:unlocked",[i]),new r("sessionChanged",[i]),new r("ptm:unpaused",[i]),new r("ptm:paused",[i]),new r("childFrameJoined",[e]),new r("tabIdChanged:self",[t,i])],En=wn.call({}),In={debug(){return gn.addTracerIds(Cn.apply(null,arguments))},lifecycle:Cn,runtime:Cn,frames:Cn},_n=En.trigger,En.trigger=xn,_.each(_.values(Li),function(e){En[e]={on:_.partial(En.on,e),one:_.partial(En.one,e),off:_.partial(En.off,e)}}),_.each(Sn,function(e){e=e.name,En[e]={on:_.partial(En.on,e),one:_.partial(En.one,e),off:_.partial(En.off,e),trigger:_.partial(xn,e)}});var Sn,En,In,_n,v=En;function r(e,t){this.name=e,this.groups=t||[]}function Cn(e,t){e={type:e,ts:S()};return me(t)&&_.isObject(t)&&(e.data=t),e}function xn(t){var e=_.findWhere(Sn,{name:t}),n=_.toArray(arguments).slice(1),i={};return _.each(e.groups,function(e){i.cancel||(i=In[e](t,n),_n.apply(En,[e].concat(i)))}),i.cancel||(i=Cn(t,n),_n.apply(En,[t].concat(i))),i}function Tn(e){var i=[],r=[],o={},a={},s={state:{},commit:function(t,n){var e=o[t];if(!e)throw new Error("mutation "+t+" not found");e(n),_.each(i,function(e){e({type:t,payload:n},s.state)})},dispatch:function(t,n){var e=a[t];if(e)return e=e(n),_.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:_.partial(t,i),subscribeAction:_.partial(t,r),registerModule:function h(n,e){_.isString(n)&&(n=[n]);var t=d(s.state,e,n);_.extend(s.getters,p(e,t,s,n));_.extend(o,c(e,t,n));_.extend(a,l(e,t,s,n));_.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return _.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):_.noop;var n,i}function u(e,t){return(e=t?e.concat([t]):e).join("/")}function d(e,t,n){var i=e;return _.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),_.extend(i,ve(t.state||{}))}function c(e,n,i){var r={};return _.each(e.mutations,function(e,t){r[u(i,t)]=_.partial(e,n)}),r}function l(e,t,i,r){var n={},o={state:t,rootState:i.state,commit:function(e,t,n){n=n&&n.root?e:u(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:u(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=u(t);i&&(i+="/");return _.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return _.each(e.actions,function(e,t){n[u(r,t)]=_.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return _.each(e.getters,function(e,t){a[t]=o[u(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var g=Tn(),kn=(g.subscribe(function(e,t){}),"_PENDO_T_"),An=11;const Rn="visitorId",On="oldVisitorId",Nn="accountId";var Mn=function(e=""){return e+pt(An)};var Ln=function(e){return me(e)&&""!==e&&e!==Bn&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===it.call(e).length)},Pn=function(e){return!(!e||"number"==typeof e)&&e.substring(0,kn.length)===kn},Fn=function(){return!f.get("disablePersistence")},Dn=function(e){e=e||[Rn,Nn,On];const t=f.get("identityStorageSuffix")||E.apiKey;_.each(e,function(e){Wt(Vt(e,t)),h.clear(e,!1,t)})},Un="VISITOR-UNIQUE-ID",Gn=function(e){return Un===e},Bn="::",zn=function(e){return new RegExp(Bn).test(e)};function jn(e){return e.old_visitor_id!==e.visitor_id}var Hn,qn=function(e,t){var n,i={old_visitor_id:y(),old_account_id:$n()};Ln(e)?(Ln(n=e)?Vn(""+n):C.info("Invalid visitor id "+n),n=t,_.isUndefined(n)?C.info("No account id provided"):Ln(n)?(E.accountId=""+n,Fn()&&Kn(Nn,E.accountId)):(delete E.accountId,delete(t=f.getLocalConfig()).account,f.setLocalConfig(t),g.commit("metadata/clearAccount"),Fn()&&h.clear(Nn),C.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=y({generate:!0}),i.account_id=$n(),!jn(t=i)&&t.old_account_id===t.account_id||(jn(i)&&(n=i.old_visitor_id)&&(Hn=n,Kn(On,Hn)),v.identify.trigger(i))):C.info("Invalid visitor id "+e)};function Wn(){return Mn(kn)}function Vn(e){E.visitorId!==e&&(Fn()&&Kn(Rn,e),E.visitorId=e)}function y(e={}){var t=function(){if(Ln(E.visitorId))return E.visitorId;var e=f.get("forceAnonymous");if(Fn()){var t=Zn(Rn);if(Ln(t)&&(!e||Pn(t)))return t}return undefined}();return Vn(t=!t&&e.generate?Wn():t),t}function Jn(){return y()||Wn()}var $n=function(){var e=f.get("forceAnonymous");return Ln(E.accountId)||!Fn()||e||(e=Zn(Nn),E.accountId=e),E.accountId};function Kn(e,t){var n=f.get("identityStorageLifetime")||Kt,i=f.get("identityStorageSuffix")||E.apiKey;h.write(e,t,n,!1,!0,i)}function Zn(e){var t=f.get("identityStorageSuffix"),n=t||E.apiKey,n=h.read(e,!1,n)||h.read(e,!1,E.apiKey);return t&&h.clear(e,!1,E.apiKey),n}function Xn(){var e={old_visitor_id:y({generate:!1}),old_account_id:$n(),wasCleared:!0};Dn(),delete E.visitorId,delete E.accountId,y({generate:!0}),_.extend(e,{visitor_id:y(),account_id:$n()}),v.identify.trigger(e)}function Yn(e){e=e.data[0];return _.get(e,"wasCleared")}var Qn=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||C.critical(e)}}};n=function(n){return function ei(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 ei="function"==typeof(e=window.URL)&&/native/.test(e)?e:n(document);function ti(e){if((t=e)&&_.isFunction(t.composedPath))try{return e.composedPath()}catch(n){return e.path}var t;return null}function ni(e){return e.shadowRoot}function ii(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function ri(e,t){return ii(e,t)?e.host:e.parentNode}var oi={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:ti,getShadowRoot:ni,isElementShadowRoot:ii,getParent:ri,isShadowSelector:ai,wrapSizzle(i,d){i.intercept(function(a,t,n,i,r){var e,o;if(ai(t))return _.isFunction(document.documentElement.attachShadow)?(o=a,e=(e=t).replace(oi.PSEUDO_REGEX,oi.PSEUDO_SAFE),e=_.map(o.tokenize(e),si),_.reduce(e,function(e,t){return e.concat(s(t,n,i,r))},[])):a(t.replace(oi.PSEUDO_REGEX,""),n,i,r);{const u=a(t,n,i,r);return 0<d.cache.size&&d.cache.forEach(e=>{n&&n!==document&&!function(e,t,n){let i=t;for(;i;){if(i===e)return 1;i=ri(i,n)}}(n,e)||u.push(...a(t,e,i,r))}),u}function s(e,t,n,i){var r,o;return ai(e)?(o=s((r={baseCss:(o=(o=e).split(oi.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(oi.PSEUDO_ELEMENT)}).baseCss,t),_.reduce(o,function(e,t){return oi.getShadowRoot(t)?e.concat(s(r.shadowCss,oi.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!oi.isElementShadowRoot(t)&&(ai(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function ai(e){return!!e&&-1<e.indexOf(oi.PSEUDO_ELEMENT)}function si(e){return _.reduce(e,function(e,t){return t.value===oi.PSEUDO_SAFE?e+oi.PSEUDO_ELEMENT:e+t.value},"")}var ui,b,w,di,ci,li,pi,hi,fi,gi,mi,vi,I,yi,bi,wi,Si,Ei,Ii,t={exports:{}},i=t,_i=window,x="sizzle"+ +new Date,Ci=_i.document,xi=0,Ti=0,ki=ur(),Ai=ur(),Ri=ur(),Oi=ur(),Ni=function(e,t){return e===t&&(mi=!0),0},Mi={}.hasOwnProperty,Li=[],Pi=Li.pop,Fi=Li.push,Di=Li.push,Ui=Li.slice,Gi=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},Bi="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",e="(?:\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",n="\\["+a+"*("+e+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+e+"))|)"+a+"*\\]",zi=":("+e+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+n+")*)|.*)\\)|)",ji=new RegExp(a+"+","g"),Hi=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),qi=new RegExp("^"+a+"*,"+a+"*"),Wi=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),Vi=new RegExp(a+"|>"),Ji=new RegExp(zi),$i=new RegExp("^"+e+"$"),Ki={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+n),PSEUDO:new RegExp("^"+zi),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+Bi+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},Zi=/HTML$/i,Xi=/^(?:input|select|textarea|button)$/i,Yi=/^h\d$/i,Qi=/^[^{]+\{\s*\[native \w/,er=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tr=/[+~]/,nr=new RegExp("\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\([^\\r\\n\\f])","g"),ir=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))},rr=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,or=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ar=function(){vi()},sr=yr(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Di.apply(Li=Ui.call(Ci.childNodes),Ci.childNodes),Li[Ci.childNodes.length].nodeType}catch(yS){Di={apply:Li.length?function(e,t){Fi.apply(e,Ui.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function T(e,t,n,i){var r,o,a,s,u,d,c=t&&t.ownerDocument,l=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==l&&9!==l&&11!==l)return n;if(!i&&(vi(t),t=t||I,bi)){if(11!==l&&(s=er.exec(e)))if(r=s[1]){if(9===l){if(!(d=t.getElementById(r)))return n;if(d.id===r)return n.push(d),n}else if(c&&(d=c.getElementById(r))&&Ii(t,d)&&d.id===r)return n.push(d),n}else{if(s[2])return Di.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&b.getElementsByClassName&&t.getElementsByClassName)return Di.apply(n,t.getElementsByClassName(r)),n}if(b.qsa&&!Oi[e+" "]&&(!wi||!wi.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(d=e,c=t,1===l&&(Vi.test(e)||Wi.test(e))){for((c=tr.test(e)&&gr(t.parentNode)||t)===t&&b.scope||((a=t.getAttribute("id"))?a=a.replace(rr,or):t.setAttribute("id",a=x)),o=(u=li(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+vr(u[o]);d=u.join(",")}try{return Di.apply(n,c.querySelectorAll(d)),n}catch(p){Oi(e,!0)}finally{a===x&&t.removeAttribute("id")}}}return hi(e.replace(Hi,"$1"),t,n,i)}function ur(){var n=[];function i(e,t){return n.push(e+" ")>w.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function dr(e){return e[x]=!0,e}function cr(e){var t=I.createElement("fieldset");try{return!!e(t)}catch(yS){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function lr(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function pr(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 hr(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&&sr(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function fr(a){return dr(function(o){return o=+o,dr(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 gr(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ui in b=T.support={},ci=T.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!Zi.test(t||e&&e.nodeName||"HTML")},vi=T.setDocument=function(e){var e=e?e.ownerDocument||e:Ci;return e!=I&&9===e.nodeType&&e.documentElement&&(yi=(I=e).documentElement,bi=!ci(I),Ci!=I&&(e=I.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",ar,!1):e.attachEvent&&e.attachEvent("onunload",ar)),b.scope=cr(function(e){return yi.appendChild(e).appendChild(I.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),b.attributes=cr(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByTagName=cr(function(e){return e.appendChild(I.createComment("")),!e.getElementsByTagName("*").length}),b.getElementsByClassName=!!I.getElementsByClassName,b.getById=cr(function(e){return yi.appendChild(e).id=x,!I.getElementsByName||!I.getElementsByName(x).length}),b.getById?(w.filter.ID=function(e){var t=e.replace(nr,ir);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&bi)return(e=t.getElementById(e))?[e]:[]}):(w.filter.ID=function(e){var t=e.replace(nr,ir);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&&bi){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=b.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):b.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=b.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&bi?t.getElementsByClassName(e):b.qsa&&bi?t.querySelectorAll("."+e):void 0},Si=[],wi=[],(b.qsa=!!I.querySelectorAll)&&(cr(function(e){var t;yi.appendChild(e).innerHTML=K().createHTML("<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&wi.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||wi.push("\\["+a+"*(?:value|"+Bi+")"),e.querySelectorAll("[id~="+x+"-]").length||wi.push("~="),(t=I.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||wi.push("\\["+a+"*name"+a+"*="+a+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||wi.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||wi.push(".#.+[+~]"),e.querySelectorAll("\\\f"),wi.push("[\\r\\n\\f]")}),cr(function(e){e.innerHTML=K().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=I.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&wi.push("name"+a+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&wi.push(":enabled",":disabled"),yi.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&wi.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),wi.push(",.*:")})),(b.matchesSelector=Qi.test(Ei=yi.matches||yi.webkitMatchesSelector||yi.mozMatchesSelector||yi.oMatchesSelector||yi.msMatchesSelector))&&cr(function(e){b.disconnectedMatch=Ei.call(e,"*"),Ei.call(e,"[s!='']:x"),Si.push("!=",zi)}),wi=wi.length&&new RegExp(wi.join("|")),Si=Si.length&&new RegExp(Si.join("|")),e=!!yi.compareDocumentPosition,Ii=e||yi.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},Ni=e?function(e,t){var n;return e===t?(mi=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!b.sortDetached&&t.compareDocumentPosition(e)===n?e==I||e.ownerDocument==Ci&&Ii(Ci,e)?-1:t==I||t.ownerDocument==Ci&&Ii(Ci,t)?1:gi?Gi(gi,e)-Gi(gi,t):0:4&n?-1:1)}:function(e,t){if(e===t)return mi=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==I?-1:t==I?1:r?-1:o?1:gi?Gi(gi,e)-Gi(gi,t):0;if(r===o)return pr(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?pr(a[i],s[i]):a[i]==Ci?-1:s[i]==Ci?1:0}),I},T.matches=function(e,t){return T(e,null,null,t)},T.matchesSelector=function(e,t){if(vi(e),b.matchesSelector&&bi&&!Oi[t+" "]&&(!Si||!Si.test(t))&&(!wi||!wi.test(t)))try{var n=Ei.call(e,t);if(n||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(yS){Oi(t,!0)}return 0<T(t,I,null,[e]).length},T.contains=function(e,t){return(e.ownerDocument||e)!=I&&vi(e),Ii(e,t)},T.attr=function(e,t){(e.ownerDocument||e)!=I&&vi(e);var n=w.attrHandle[t.toLowerCase()],n=n&&Mi.call(w.attrHandle,t.toLowerCase())?n(e,t,!bi):undefined;return n!==undefined?n:b.attributes||!bi?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},T.escape=function(e){return(e+"").replace(rr,or)},T.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,n=[],i=0,r=0;if(mi=!b.detectDuplicates,gi=!b.sortStable&&e.slice(0),e.sort(Ni),mi){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return gi=null,e},di=T.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=di(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=di(t);return n},(w=T.selectors={cacheLength:50,createPseudo:dr,match:Ki,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(nr,ir),e[3]=(e[3]||e[4]||e[5]||"").replace(nr,ir),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||T.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&T.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Ki.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Ji.test(n)&&(t=(t=li(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(nr,ir).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=ki[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&ki(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=T.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e.replace(ji," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,e,t,g,m){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,u,d=v!=y?"nextSibling":"previousSibling",c=e.parentNode,l=b&&e.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(v){for(;d;){for(a=e;a=a[d];)if(b?a.nodeName.toLowerCase()===l:1===a.nodeType)return!1;u=d="only"===f&&!u&&"nextSibling"}return!0}if(u=[y?c.firstChild:c.lastChild],y&&p){for(h=(s=(i=(r=(o=(a=c)[x]||(a[x]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===xi&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[d]||(h=s=0,u.pop());)if(1===a.nodeType&&++h&&a===e){r[f]=[xi,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[x]||(a[x]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===xi&&i[1]:h))for(;(a=++s&&a&&a[d]||(h=s=0,u.pop()))&&((b?a.nodeName.toLowerCase()!==l:1!==a.nodeType)||!++h||(p&&((r=(o=a[x]||(a[x]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[xi,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()]||T.error("unsupported pseudo: "+e);return a[x]?a(o):1<a.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?dr(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=Gi(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:dr(function(e){var i=[],r=[],s=pi(e.replace(Hi,"$1"));return s[x]?dr(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:dr(function(t){return function(e){return 0<T(t,e).length}}),contains:dr(function(t){return t=t.replace(nr,ir),function(e){return-1<(e.textContent||di(e)).indexOf(t)}}),lang:dr(function(n){return $i.test(n||"")||T.error("unsupported lang: "+n),n=n.replace(nr,ir).toLowerCase(),function(e){var t;do{if(t=bi?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=_i.location&&_i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===yi},focus:function(e){return e===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:hr(!1),disabled:hr(!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 Yi.test(e.nodeName)},input:function(e){return Xi.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:fr(function(){return[0]}),last:fr(function(e,t){return[t-1]}),eq:fr(function(e,t,n){return[n<0?n+t:n]}),even:fr(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:fr(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:fr(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:fr(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[ui]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ui);for(ui in{submit:!0,reset:!0})w.pseudos[ui]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ui);function mr(){}function vr(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function yr(a,e,t){var s=e.dir,u=e.next,d=u||s,c=t&&"parentNode"===d,l=Ti++;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=[xi,l];if(n){for(;e=e[s];)if((1===e.nodeType||c)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||c)if(r=(r=e[x]||(e[x]={}))[e.uniqueID]||(r[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[d])&&i[0]===xi&&i[1]===l)return o[2]=i[2];if((r[d]=o)[2]=a(e,t,n))return!0}return!1}}function br(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 wr(e,t,n,i,r){for(var o,a=[],s=0,u=e.length,d=null!=t;s<u;s++)!(o=e[s])||n&&!n(o,i,r)||(a.push(o),d&&t.push(s));return a}function Sr(h,f,g,m,v,e){return m&&!m[x]&&(m=Sr(m)),v&&!v[x]&&(v=Sr(v,e)),dr(function(e,t,n,i){var r,o,a,s=[],u=[],d=t.length,c=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)T(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),l=!h||!e&&f?c:wr(c,s,h,n,i),p=g?v||(e?h:d||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=wr(p,u),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[u[o]]=!(l[u[o]]=a));if(e){if(v||h){if(v){for(r=[],o=p.length;o--;)(a=p[o])&&r.push(l[o]=a);v(null,p=[],r,i)}for(o=p.length;o--;)(a=p[o])&&-1<(r=v?Gi(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=wr(p===t?p.splice(d,p.length):p),v?v(null,t,p,i):Di.apply(t,p)})}mr.prototype=w.filters=w.pseudos,w.setFilters=new mr,li=T.tokenize=function(e,t){var n,i,r,o,a,s,u,d=Ai[e+" "];if(d)return t?0:d.slice(0);for(a=e,s=[],u=w.preFilter;a;){for(o in n&&!(i=qi.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Wi.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Hi," ")}),a=a.slice(n.length)),w.filter)w.filter.hasOwnProperty(o)&&(i=Ki[o].exec(a))&&(!u[o]||(i=u[o](i)))&&(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?T.error(e):Ai(e,s).slice(0)},pi=T.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=Ri[e+" "];if(!a){for(n=(t=t||li(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,u=yr(function(e){return e===i},a,!0),d=yr(function(e){return-1<Gi(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==fi)||((i=t).nodeType?u:d)(e,t,n),i=null,e}];s<r;s++)if(t=w.relative[e[s].type])c=[yr(br(c),t)];else{if((t=w.filter[e[s].type].apply(null,e[s].matches))[x]){for(n=++s;n<r&&!w.relative[e[n].type];n++);return Sr(1<s&&br(c),1<s&&vr(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Hi,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&vr(e))}c.push(t)}return br(c)}(t[n]))[x]?r:o).push(a);(a=Ri(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,u=0,d="0",c=e&&[],l=[],p=fi,h=e||b&&w.find.TAG("*",r),f=xi+=null==p?1:Math.random()||.1,g=h.length;for(r&&(fi=t==I||t||r);d!==g&&null!=(o=h[d]);d++){if(b&&o){for(a=0,t||o.ownerDocument==I||(vi(o),n=!bi);s=m[a++];)if(s(o,t||I,n)){i.push(o);break}r&&(xi=f)}y&&((o=!s&&o)&&u--,e)&&c.push(o)}if(u+=d,y&&d!==u){for(a=0;s=v[a++];)s(c,l,t,n);if(e){if(0<u)for(;d--;)c[d]||l[d]||(l[d]=Pi.call(i));l=wr(l)}Di.apply(i,l),r&&!e&&0<l.length&&1<u+v.length&&T.uniqueSort(i)}return r&&(xi=f,fi=p),c},y?dr(i):i))).selector=e}return a},hi=T.select=function(e,t,n,i){var r,o,a,s,u,d="function"==typeof e&&e,c=!i&&li(e=d.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&bi&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(nr,ir),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Ki.needsContext.test(e)?0:o.length;r--&&(a=o[r],!w.relative[s=a.type]);)if((u=w.find[s])&&(i=u(a.matches[0].replace(nr,ir),tr.test(o[0].type)&&gr(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&vr(o))break;return Di.apply(n,i),n}}return(d||pi(e,c))(i,t,!bi,n,!t||tr.test(e)&&gr(t.parentNode)||t),n},b.sortStable=x.split("").sort(Ni).join("")===x,b.detectDuplicates=!!mi,vi(),b.sortDetached=cr(function(e){return 1&e.compareDocumentPosition(I.createElement("fieldset"))}),cr(function(e){return e.innerHTML=K().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||lr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&cr(function(e){return e.innerHTML=K().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||lr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),cr(function(e){return null==e.getAttribute("disabled")})||lr(Bi,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var Er=_i.Sizzle;T.noConflict=function(){return _i.Sizzle===T&&(_i.Sizzle=Er),T},i.exports?i.exports=T:_i.Sizzle=T;Ir=p(t.exports),(_r=_.extend(function(){return _r.Sizzle.apply(this,arguments)},Ir)).reset=function(){_r.Sizzle=Ir,_r.matchesSelector=Ir.matchesSelector,_r.matches=Ir.matches},_r.intercept=function(e,t="Sizzle"){_r[t]=_.wrap(_r[t],e)},_r.reset();var Ir,_r,Cr=_r;function k(e,t){var n,i=this;if(e&&e instanceof k)return e;if(!(i instanceof k))return new k(e,t);if(e)if(e.nodeType)n=[e];else if(r=/^<(\w+)\/?>$/.exec(e))n=[document.createElement(r[1])];else if(/^<[\w\W]+>$/.test(e)){var r=document.createElement("div");r.innerHTML=e,n=_.toArray(r.childNodes)}else if(_.isString(e)){t instanceof k&&(t=0<t.length?t[0]:null);try{n=Cr(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 xr(){this.ownerKey="_pendo_"+pt(8)}_.extend(xr.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 Tr=new xr,kr=1;function Ar(e){return _.isNumber(e.eventPhase)&&e.eventPhase===kr}function Rr(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?gt("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{Or(e,t,n,i)}):_.noop}function Or(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?gt("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var Nr=function(e){var t=oi.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},Mr={add(t,e){var n=Tr.get(t),i=(n.handle||(n.handle=function(e){Mr.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||Rr(t,e.type,n.handle,e.capture),i.push(e),()=>{k.event.remove(t,e.type,e.handler,e.capture)}},dispatch(r,o){var e,t,a;r&&(e=(Tr.get(r,"captureEvents")||{})[o.type]||[],t=(Tr.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=Tr.get(o)).ignore&&(a.handled=a.handled||{},_.each(t.slice(),function(e){var t=!!e.capture===Ar(o),n=(n=o,_.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(Nr(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!me(e.selector)||0<k(Nr(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){C.error(i)}}}))},remove(e,t,n,i){var r=Tr.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],Or(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],Or(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],Or(e,t,r.handle));_.isEmpty(r.captureEvents)&&_.isEmpty(r.bubbleEvents)&&(Tr.remove(e,"captureEvents"),Tr.remove(e,"bubbleEvents"),Tr.remove(e,"handle"))}},trigger(e){var t=Tr.get(e);if(!t.pendoStopped)if(e.bubbles){var n=Nr(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=oi.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),Ar(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)Mr.dispatch(o[i],e);(e=Mr.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(Mr.dispatch(n,e),(e=Mr.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)Mr.dispatch(o[i],e)}}else Mr.dispatch(Nr(e),e)},clone(e){var t=_.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",Tr.ownerKey]),e=oi.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){Mr.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},Lr=_.extend(Fr,{get:function(e,t){return Fr({method:"GET",url:e,headers:t})},post:Dr,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",Dr(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)?It(e):It(e)+"="+It(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!==Pr()}});function Pr(){return window.XMLHttpRequest||ActiveXObject}function Fr(e){var t=m.defer(),n=new(Pr())("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 Dr(e,t,n){return Fr({method:"POST",url:e,data:t,headers:n})}var Ur,Gr=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},Br=function(){return f.get("annotateUrl")||Wr()||f.get("sanitizeUrl")||f.get(Qr)||f.get("xhrWhitelist")},zr=function(){return Wr()?{href:qr(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},jr=function(){return new ei(window.location.href)},Hr=function(){var e,t,n,i;return Br()?(e=jr(),Wr()&&(e.href=qr(e.href)),Gr()?(t=A.electronResourcesPath(),n=A.electronUserDirectory(),i=A.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(A.electronUserHomeDirectory(),"").replace("file:///","")):to(e.href)):g.getters["location/href"]()},qr=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Wr=function(){return!0===f.get("ignoreHashRouting")},Vr=500;function Jr(){return _.isUndefined(Ur)&&function e(){Yr(),Ur=Ut(e,Vr)}(),()=>{clearTimeout(Ur),Ur=undefined}}var $r=function(e){var t;try{t=Hr()}catch(n){}return t},Kr=[],Zr=!1,Xr=null;function Yr(){var t=zr().href;Xr!=t&&(Xr=t,_.map(Kr,function(e){e(t)}))}var Qr="queryStringWhitelist";function eo(e){var t=f.get("sanitizeUrl");return _.isFunction(t)?t(e):e}function to(e){e=e||zr().href;var t=f.get("annotateUrl");if(t)if(_.isFunction(t))try{var n,i,r,o=t();return o&&(_.isObject(o)||_.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&_.isArray(n)||i&&(_.isArray(i)||_.isObject(i)))&&(n&&(e=io(e,null,n,!0)),o=i||{}),Lr.urlFor(e,o,r)):e}catch(a){C.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else C.error("customer-provided `annotateUrl` must be of type: function");return e}function no(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function io(e,t,n,i){e=e||$r(),t=t||no(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)?oo(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var ro,oo=function(e,t,n){return n&&_.contains(t,"*")?"":(e=ao(e),e=n?_.omit(e,t):_.pick(e,t),so(e))},ao=function(e){e=e.split("&");return _.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&Et(t[1])),e},{})},so=function(e){return _.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},A={watch:function(e){const n=[];C.info("Initializing Pendo URL Watcher");var i,t=f.get("location.pushState")&&ze.supportsHistoryApi();return Zr||(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(Yr,0),t}),i[e]._pendoUnwrapped=t,n.push(()=>{i[e]=t})}),n.push(Rr(window,"popstate",Yr))),ze.supportsHashChange()&&n.push(Rr(window,"hashchange",Yr)),!1!==t&&ze.supportsHashChange()||n.push(Jr()),Zr=!0),Kr.push(e),()=>{_.each(n,function(e){e()}),Kr.length=0,Zr=!1}},get:$r,externalizeURL:function(e,t,n){n=n||f.get(Qr);return eo(io(e,t,n=_.isFunction(n)?n():n,!1))},startPoller:Jr,getWindowLocation:zr,clear:function(){Kr=[]},isElectron:Gr,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 uo(){var e=f.getLocalConfig("dataHost");return e||((e=f.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:Je)}function co(){ro=uo()}function lo(){return f.get("assetHost")||po()}function po(){var e=f.get("contentHost")||$e;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function ho(e){var t=lo(),n=0<=(n=t).indexOf("localhost")||0<=n.indexOf("local.pendo.io")?e.replace(".min.js",".js"):e;return t+"/"+(Ke?Ke+"/":"")+n}function fo(){var e=f.get("allowPartnerAnalyticsForwarding",!1)&&f.get("adoptAnalyticsForwarding",!1);return f.get("trainingPartner",!1)||e}var go=3,mo=1,vo=9,yo=11,bo=4;function R(e){var t;if((t=e)&&t.nodeType===mo)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function wo(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 So(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function Eo(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function Io(e){return _.isNumber(e)?e:0}function _o(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!xo(e)?null:e}function Co(e){return wo(R(e),Pe)&&isNaN(Ce)}function xo(e){if(e)return(e=R(e))&&(_.contains(["relative","absolute","fixed"],e.position)||wo(e,Pe))}function To(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=xo(t)?t:_o(t,n),i=t?ko(t):{top:0,left:0},e=ko(e),i={top:e.top-i.top,left:e.left-i.left,width:e.width,height:e.height};return t?(t!==n.document.scrollingElement&&(i.top+=Io(t.scrollTop),i.left+=Io(t.scrollLeft)),i.top-=Io(t.clientTop),i.left-=Io(t.clientLeft)):(i.top+=So(n),i.left+=Eo(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function ko(e){var t;return e?e.getBoundingClientRect?{top:(t=e.getBoundingClientRect()).top,left:t.left,bottom:t.bottom,right:t.right,width:t.width||Math.abs(t.right-t.left),height:t.height||Math.abs(t.bottom-t.top)}:{top:0,left:0,width:e.offsetWidth,height:e.offsetHeight,right:e.offsetWidth,bottom:e.offsetHeight}:{width:0,height:0}}var Ao=void 0===(e=f.get("pendoCore"))||e,Ro=function(e,t,n){e=ro+"/data/"+e+"/"+t,t=_.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function Oo(){return _.compact([E.apiKey].concat(E.additionalApiKeys))}var No=function(e){return e+="v"+Xe,Po(Ro("log.gif",E.apiKey,{msg:e,version:Xe}))};function Mo(e){try{var t=ro+"/data/errorlog?apiKey="+E.apiKey,n={error:e,version:"v"+Xe,visitorId:y()},i=Fo.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):Lr.postJSON(t,n);return i.then(function(){C.info("successfully wrote error")},function(e){C.info("error writing error:"+e)})}catch(r){return C.info("Failed to write error to server using POST endpoint: "+r),No("Failed to write error to server using POST endpoint: "+r)}}function Lo(e){try{var t=ro+"/data/agentmetrics?apiKey="+E.apiKey;C.debug(`Will send ${JSON.stringify(e)} to ${t} using ${Fo.supported()?"fetch":"xhr"} once the endpoint exists`),Fo.supported()}catch(n){C.critical("Failed to write metrics payload to server: "+n)}}function Po(e){var t,n;return Bo()?(t=m.defer(),Rr(n=new Image,"load",t.resolve),Rr(n,"error",t.reject),n.src=e,t.promise):m.resolve()}function Fo(e,t={}){t=_.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t)}function Do(e,t){return navigator.sendBeacon(e,t)}Fo.supported=function(){try{return _.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var Uo=!(Do.supported=function(){return _.isFunction(navigator.sendBeacon)}),Go=function(){var e=Bo();return Uo=!0,e&&v["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},Bo=function(){return!Uo&&Ao},zo=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(Wo(e))}catch(n){return!1}},jo=function(e,t){try{var n;zo(e,t)||(n=it.call(Wo(e))+" "+t,qo(e,n))}catch(i){}},Ho=function(e,t){try{var n,i;zo(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=Wo(e).replace(n," "),qo(e,i))}catch(r){}},qo=function(e,t){_.isString(e.className)?e.className=t:e.setAttribute("class",t)},Wo=function(e){try{var t=e.className;return(_.isString(t)||!me(t)?t:e.getAttribute("class"))||""}catch(n){return""}},Vo=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},Jo={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},$o=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);Ko(e,t)},Ko=function(a,e){_.each(e,function(e,t){if(""!==(t=it.call(t))){var n=Vo(t),i=(!_.isNumber(e)||isNaN(e)||Jo[n]?_.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=it.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=it.call(e)}catch(o){C.info("failed to set style: "+t+" with value "+e)}}})},Zo=function(e=window){return je()?{width:e.document.documentElement.offsetWidth||0,height:e.document.documentElement.offsetHeight||0}:{width:e.innerWidth||e.document.documentElement.clientWidth,height:e.innerHeight||e.document.documentElement.clientHeight}},Xo=function(e){var t=Zo(),n=So(),i=Eo();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function Yo(t){return _.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function Qo(e,t=window){var n;return function(e){var t,n=e;for(;n;){if(!(t=R(n)))return;if("fixed"===t.position)return!isNaN(Ce)||!sa(n);n=n.parentNode}return}(e)?((n=ko(e)).fixed=!0,Yo(n)):Yo(To(e,na(t.document),t))}var ea=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},ta=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return C.info("error interrogating body elements: "+n),No("error picking best body:"+n),0}},na=function(e=document){try{var t=Array.prototype.slice.call(e.getElementsByTagName("body"));return t&&1<t.length?(t.sort(ta),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return No("Error getting body element: "+n),e.body}};function ia(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 ra(e,t=document){if(Cr.contains(t,e))return!0;for(;e&&e.parentNode||oi.isElementShadowRoot(e);)e=oi.getParent(e);return e===t}var oa=function(e){var t,n,i;if(null!=e)return t=(n=e.ownerDocument||document).defaultView||window,i=na(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=Qo(e,t)).right=i.left+i.width,i.bottom=i.top+i.height,i)},aa=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function sa(e){for(var t=e&&e.parentNode;t;){if(wo(R(t),Pe))return 1;t=t.parentNode}}var ua=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(ra(e))for(i=e;i;)if(oi.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=R(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=R(r))&&!_.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&sa(i))i=_o(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function da(e,t){e=R(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?ca.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?ca.BOTH:t.test(e.overflowY)?ca.Y:t.test(e.overflowX)?ca.X:t.test(e.overflow)?ca.BOTH:ca.NONE}var ca={X:"x",Y:"y",BOTH:"both",NONE:"none"};function la(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&ra(e)}function pa(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 ha(e){if(e){if(_.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function fa(e,t,n){const i=[];var r=ha(document.documentElement);let o=ha(ua(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=ha(ua(o)),a++;return()=>{_.each(_.compact(i),function(e){e()}),i.length=0}}const ga=['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 ma(e,t,n){var i=oa(t),t=da(t,n);if(t!==ca.BOTH||aa(e,i)){if(t===ca.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===ca.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function va(e){if(e){if(la(e))return 1;var t=oa(e);if(0!==t.width&&0!==t.height){var n=R(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=R(i=i.parentNode)}return 1}}}}function ya(e,t){if(!va(e))return!1;if(!la(e)){for(var n=oa(e),i=ua(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!ma(n,i,t))return!1;i=ua(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=Eo(),e+=So()),o<=0||e<=0)return!1}}return!0}function ba(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,u=oa(e),d=ua(e,s);if(!va(e))return!1;for(;d;){if(t=oa(d),(o=da(d,a))!==ca.NONE&&(i=n=0,o!==ca.Y&&o!==ca.BOTH||(u.bottom>t.bottom&&(n+=u.bottom-t.bottom,u.top-=n,u.bottom-=n),u.top<t.top&&(n-=r=t.top-u.top,u.top+=r,u.bottom+=r)),o!==ca.X&&o!==ca.BOTH||(u.right>t.right&&(i+=u.right-t.right,u.left-=i,u.right-=i),u.left<t.left&&(i-=r=t.left-u.left,u.left+=r,u.right+=r))),!ma(u,d,s))return!1;d=ua(d,s)}return!0}function wa(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=na(),u=ua(e,a);u&&u!==s;)t=oa(e),n=oa(u),r=i=0,t.bottom>n.bottom&&(i+=t.bottom-n.bottom,t.top-=i,t.bottom-=i),t.top<n.top&&(i-=o=n.top-t.top,t.top+=o,t.bottom+=o),t.right>n.right&&(r+=t.right-n.right,t.left-=r,t.right-=r),t.left<n.left&&(r-=o=n.left-t.left,t.left+=o,t.right+=o),_.isFunction(u.scrollBy)?u.scrollBy(r,i):(u.scrollTop+=i,u.scrollLeft+=r),u=ua(u,a)}n={$:{findOrCreate(e){return 0<this.length?this:k(e)},find(e){var t=k();return t.context=this.context,this.each(function(){k(e,this).each(function(){t[t.length++]=this})}),t},each(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text(e){var t="innerText"in document.body;return e===undefined?t?this.length?this[0].innerText:this:this.length?this[0].textContent:this:this.each(function(){$o(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){jo(t,e)})})},removeClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Ho(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&&zo(t,e)})}),n)},toggleClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){(zo(t,e)?Ho:jo)(t,e)})})},css(e){return this.each(function(){$o(this,e)}),this},appendTo(e){return k(e).append(this),this},append(e){var t=this;return k(e).each(function(){t.length&&t[0].appendChild(this),ra(this)&&_.each(Cr("script",this),pa)}),t},prependTo(e){return k(e).prepend(this),this},prepend(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],k(e).each(function(){n?k(this).insertBefore(n):k(this).appendTo(t)})),this},getParent(){var e=k(this)[0];if(e&&e.parentNode)return k(e.parentNode)},insertBefore(e){e=k(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),ra(this[0]))&&_.each(Cr("script",this[0]),pa)},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&&!Cr.matchesSelector(n,e);)if((n=ri(n))===document||t&&Cr.matchesSelector(n,t))return k();return k(n)},eq(e){return k(this[e])},height(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus(){return this.each(function(){_.isFunction(this.focus)&&this.focus()})}}};class Sa{constructor(e=na(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},ze.MutationObserver){const n=new(gt("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()}}Li=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var Ea="function"==typeof(i=window.WeakRef)&&/native/.test(i)?i:Li();function Ia(e,t){var n,i;return e.tagName&&-1<["textarea","input"].indexOf(e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:Ta(n.substring(0,i))):_a(e,t)}function _a(e,t=128){var n,i="",r=e.nodeType;if(r===go||r===bo)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===mo||r===vo||r===yo)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=_a(e.childNodes[a],t-i.length))).length)return i+Ta(o.substring(0,t-i.length));i+=o}}return i}function Ca(e){return 55296<=e&&e<=56319}function xa(e){return 56320<=e&&e<=57343}function Ta(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(Ca(t)||xa(t)){if(1===e.length)return e.slice(0,-1);if(Ca(t))return e.slice(0,-1);if(xa(t))if(!Ca(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class ka{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let t=this.elRef&&this.elRef.deref();var e=ra(t);if(!t||!e){if(t&&!e&&this.teardown(t),!(t=k(this.cssSelector)[0]))return undefined;_.each(this.events,e=>{t.addEventListener(e,e=>this.onEvent(e))}),this.elRef=new Ea(t)}return t}getText(e=1024){return Ia(this.get(),e)}addEventListener(e,t){var n=this.get();this.events.indexOf(e)<0&&(this.events.push(e),n)&&n.addEventListener(e,e=>this.onEvent(e)),this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)}onEvent(t){var e=t.type;_.each(this.listeners[e],e=>e(t))}teardown(t=this.get()){t&&_.each(this.events,e=>t.removeEventListener(e,this.onEvent))}}function Aa(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===uo())return!0;if(t===lo())return!0;if(t===po())return!0;var e=f.get("adoptHost");if(e&&t==="https://"+e)return!0;return!!ie(t,f.get("allowedOriginServers",[]),f.get("allowedOriginServerHashes",[]))||_.any([/^https:\/\/(adopt\.)?((us1)\.)?(app|via|adopt|cdn)(\.(au|eu|gov|hsbc|jpn))?\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)pendo-(au|eu|govramp|hsbc|io|jp-prod|us1)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)pendo-(au|eu|govramp|hsbc|io|jp-prod|us1)\.appspot\.com$/,/^https:\/\/pendo-(au|eu|govramp|hsbc|io|jp-prod|us1)-static\.storage\.googleapis\.com$/,/^https:\/\/([a-zA-Z0-9-]+\.)*pendo-dev\.com$/,/^https:\/\/([a-zA-Z0-9-]+-dot-)?pendo-(apollo|armada|atlas|batman|calypso|dap|dev|dr-us-east1|eu-dev|freeze|helix|link|magic|mcfly|ml|mobile-fbi|mobile-guides|mobile-hummus|mobile-plat|perfserf|voc|wildlings|ionchef|scrum-ops|security|test|uat|au|eu|govramp|hsbc|io|jp-prod|us1)\.appspot\.com$/,/^https:\/\/(via|adopt|local)\.pendo\.(local|io):\d{4}$/,/^https:\/\/pendo-(apollo|armada|atlas|batman|calypso|dap|dev|dr-us-east1|eu-dev|freeze|helix|link|magic|mcfly|ml|mobile-fbi|mobile-guides|mobile-hummus|mobile-plat|perfserf|voc|wildlings|ionchef|scrum-ops|security|test|uat)-static\.storage\.googleapis\.com$/],function(e){return e.test(t)})}function Ra(e){var t;if(_.isString(e))return t=(t=no(e).substring(1))&&t.length?ao(t):{},e=_.last(_.first(e.split("?")).split("/")).split("."),{filename:_.first(e),extension:e.slice(1).join("."),query:t}}function Oa(e,t){var n;f.get("guideValidation")&&ze.sri&&(n=Ra(t),t=_.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],_.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}_.extend(k,{data:Tr,event:Mr,removeNode:ea,getClass:Wo,hasClass:zo,addClass:function(e,t){var n;"string"==typeof e?(n=k(e),_.map(n,function(e){jo(e,t)})):jo(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=k(e),_.map(n,function(e){Ho(e,t)})):Ho(e,t)},getBody:na,getComputedStyle:R,getClientRect:oa,intersectRect:aa,getScrollParent:ua,isElementVisible:ya,Observer:Sa,Element:ka,scrollIntoView:wa,getRootNode:ha}),_.extend(k.prototype,Mr.$,n.$);var Na,Ma=function(e){var t=!((t=f.get("allowedOriginServers",[]))&&0<t.length||(t=f.get("allowedOriginServerHashes",[]))&&0<t.length),n=fo();return!(!t&&!n)||Aa(e)},La=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(_.isString(e)&&(e={url:e}),!Ma((d=e.url,new ei(d).origin)))throw new Error;e.type=e.type||/\.css/.test(e.url)?r:o;var a=null,s=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0];if(e.type===r){var u=document.createElement("link");u.type=r,u.rel="stylesheet",u.href=e.url,Oa(u,e.url),a=u}else{if(ft())return(i=document.createElement("script")).addEventListener("load",function(){t(),ea(i)}),i.type=o,i.src=K(E).createScriptURL(e.url),Oa(i,e.url),document.body.appendChild(i),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=K(E).createScriptURL(e.url),Oa(i,e.url),a=i,t=_.wrap(t,function(e,t){k.removeNode(i),t?n&&e(t):e.apply(this,_.toArray(arguments).slice(1))})}return s.appendChild(a),Pa(a,e.url,t),a}catch(c){return{}}var d},Pa=function(e,t,n){var i=!1;me(n)&&(e.onload=function(){!0!==i&&(i=!0,n(null,t))},e.onerror=function(){!0!==i&&(i=!0,n(new Error("Failed to load script"),t))},e.onreadystatechange=function(){i||e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(i=!0,n(null,t))},"link"===e.tagName.toLowerCase())&&(Ut(function(){var e;i||((e=new Image).onload=e.onerror=function(){!0!==i&&(i=!0,n(null,t))},e.src=t)},500),Ut(function(){i||No("Failed to load "+t+" within 10 seconds")},1e4))},Fa=function(e){var t=JSON.parse(e.data),n=e.origin;C.debug(E.app_name+": Message: "+JSON.stringify(t)+" from "+n),Xa(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},Da=function(e){Ga(Ha)(Ua(e))},Ua=function(e){if(e.data)try{var t="string"==typeof e.data?JSON.parse(e.data):e.data,n=e.origin,i=e.source;if(!t.action&&!t.mutation){if(t.type&&"string"==typeof t.type)return{data:t,origin:n,source:i};C.debug("Invalid Message: Missing 'type' in data format")}}catch(r){}};function Ga(t){return function(e){if(e&&Aa(e.origin))return t.apply(this,arguments)}}var Ba={disconnect(e){},module:function(e){Za(e.moduleURL)},debug:function(e){es(Fa)}},za=function(e,t){Ba[e]=t},ja=function(e){delete Ba[e]},Ha=function(e){var t;e&&(t=e.data)&&me(Ba[t.type])&&Ba[t.type](t,e)},qa={},Wa=function(e){if(qa[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},Va=function(e){return me(qa[e])},Ja=function(e){if(qa)for(var t in qa)if(0<=t.indexOf(e))return t;return null},$a=[],Ka=function(){var e;$a.length<1||(e=$a.shift(),Va(e))||La(e,function(){Wa(e),Ka()})};var Za=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 ei(e);return Aa(n.origin)&&t[n.pathname]}catch(i){C.debug("Invalid module URL: "+e)}}(e)||($a.push(e),1<$a.length)||Ka()},Xa=function(e,t,n){var i,r=_.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Na||Qa(),n="*"),t.guid=r,e&&_.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";C.info("Failed to postMessage: "+t)}return r},Ya=function(){return window!=window.top},Qa=function(){return new RegExp("^"+Tt(ro).replace(/^https?:/,"https?:")).test(location.href)?window.parent:window.top},es=function(e){var t;return me(window.addEventListener)&&_.isFunction(window.addEventListener)&&(t=Ga(e),window.addEventListener("message",t,!1)),function(){me(window.removeEventListener)&&_.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},ts=_.memoize(function(){return f.get("restrictP1Access")}),ns=[],is=[],rs=[],os=12e4,as=16,ss=1900,us=65536,ds=function(e){return!(!e||""===e)},cs=function(){return A.get()},ls={flush:_.noop,flushBy:_.noop,flushEvents:gs,flushTrackEvents:gs,flushAgenticEvents:gs,flushSilos:gs,flushTrackEventSilos:gs,flushAgenticEventSilos:gs,flushBeacons:gs,flushNow:gs,flushLater:ms,flushEvery:vs,flushStop:ys,beacons:[],silos:[],trackEventSilos:[],agenticEventSilos:[],lock:Go,unlock:function(){if(!Bo())return bs(),function(){var e=!Bo();return Uo=!1,e&&v["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."}()}},ps=[];function hs(e){ps.push(e)}function fs(e){e=ps.indexOf(e);0<=e&&ps.splice(e,1)}function gs(e,t){try{_.each(ps,function(e){e.flush&&e.flush(t)})}catch(n){C.critical("unhandled error while flushing event cache",{error:n})}}function ms(e){return t=_.partial(gs,!0),n=e,n=parseInt(n,10)||0,t[n]||(i=Ut(function(){t(),t[n]()},n),t[n]=function(){window.clearTimeout(i),delete t[n]});var t,n,i}function vs(e){var t;if(e=parseInt(e,10)||0,_.isObject(vs.intervals)||(vs.intervals={}),!vs.intervals[e])return t=window.setInterval(gs,e),vs.intervals[e]=function(){clearInterval(t),delete vs.intervals[e]}}function ys(){var e=_.values(vs.intervals).concat([gs]);_.map(e,function(e){_.isFunction(e)&&e()})}function bs(){_.each(ps,function(e){e.clear&&e.clear()}),ys()}function ws(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 Ss(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(C.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(C.debug(t+"The signingKeyName is supplied but missing jwt."),!1):(e=e.jwt,!(!_.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(C.debug(t+"The jwt is invalid."),!1)):(C.debug(t+"Missing jwt and signingKeyName."),!1)}Es=null;var Es,Is={set:function(e){Es=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==Es?Es:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!f.get("enableSignedMetadata")&&(n=Ss(e,t),f.get("requireSignedMetadata")&&!n?(C.debug("Pendo will not "+t+"."),!1):n?ws(e.jwt):void C.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class _s{constructor(e,t=100){this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}isEmpty(){return this.queue.length<=0}stop(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer}start(){this.stopped=!1}push(...e){this.queue.push(...e),this.next()}next(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)}incrementFailure(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t}pass(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()}fail(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,6))))}retryLater(e){this.timer=Ut(()=>{delete this.timer,this.next()},e)}failed(){return 0<this.failures.get(this.queue[0])&&null!=this.timer}send(e,t,n){return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(()=>this.pass(e,n),()=>this.fail(e,n))}drain(e,t=!0){if(this.queue.push(...e),this.failed())return rn.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 rn.all(n)}}const Cs="unsentEvents";class xs{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(Cs);try{this.events=JSON.parse(e.read(Cs)||"{}"),e.clear(Cs)}catch(t){this.events={}}}write(e){0<_.size(this.events)?e.write(Cs,JSON.stringify(this.events),5184e5):e.clear(Cs)}}var Ts=new xs;const ks="agent-guideloop-timeout",As={};As[ks]={displayName:"Guide Loop Timeouts",name:ks,instrument:e=>e&&e instanceof Array?_.reduce(e,(e,t)=>{return e+(t.detail&&t.detail.incr?t.detail.incr:1)},0):0};class Rs{constructor(){this._isPerformanceApiAvailable=this._checkPerformanceApi(),this._measuringPerformance=!1,this.marks=new Set,this.measures=new Set}initialize(){return this._measuringPerformance=!0,this._markPerformance("initialize"),this.interval=setInterval(()=>{this.send()},6e5),()=>{this.teardown()}}teardown(){this._measuringPerformance=!1,this._clearMarksAndMeasures(),clearInterval(this.interval)}startTimer(e){this._markPerformance(e+"-start")}stopTimer(e){this._markPerformance(e+"-stop"),this._measurePerformance(e)}count(e,t=1){this._markPerformance(e,{detail:{type:"count",incr:t}})}send(){var e=_.reduce(_.keys(As),(e,t)=>{var n=performance.getEntriesByName(t),n=As[t].instrument(n);return e.push({name:t,value:n}),e},[]),e=_.filter(e,e=>0<e.value);this._clearMarksAndMeasures(),_.size(e)&&Lo(e)}_checkPerformanceApi(){return f.get("performanceMetricsEnabled")&&Ie("performance.mark")&&Ie("performance.measure")&&Ie("performance.getEntries")&&Ie("performance.getEntriesByName")&&Ie("performance.clearMarks")&&Ie("performance.clearMeasures")}_shouldMeasurePerformance(){return this._isPerformanceApiAvailable&&this._measuringPerformance}_markPerformance(e,t){this._shouldMeasurePerformance()&&(e="pendo-"+e,performance.mark(e),this.marks.add(e))}_measurePerformance(e){var t,n;this._shouldMeasurePerformance()&&(t=(e="pendo-"+e)+"-start",n=e+"-stop",performance.getEntriesByName(t).length)&&performance.getEntriesByName(n).length&&(performance.measure(e,t,n),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 Os=new Rs;var Ns="_PENDO_UNNAMED_",Ms=5;function Ls(e,t,n,i,r,o){var a,s;a=f.get("dropAnonymous"),s=Pn(y()),!Ao||a&&s||(a=t,s=n,t=i,n=r,r=o,s={type:o=e,browser_time:S(),visitor_id:y({generate:!0}),account_id:$n(),url:A.externalizeURL(s),props:a||{},eventProperties:n},s=gn.addTracerIds(s),"track"===o&&(s.track_event_name=t||Ns),v.eventCaptured.trigger(s,r),ds((a=s).url)&&function(e){if(f.get("freeNPSData"))return _.contains(Ps,e.type);return 1}(a)&&("track"===e?Ks:"agentic"===i?Zs:$s).push(a))}var Ps=["load","meta","identify"];function Fs(){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 Ds=0;function Us(e,t){e.sequence=Ds++,t(e)}function Gs(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 Bs(e,t){return fo()?zs("account_id")(e,t):t(e)}function zs(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 js(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function Hs(e,t,n){t=n[t-1]||_.last(n);return Math.ceil(e/t)}function qs(e,t){for(var n,i=0,r=(_.isFunction(t.overhead)?t.overhead:_.constant(0))(),o=0;o<e.length;++o){if(Hs(n=js(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(Hs(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(Hs(i+(n=js(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function Ws(){var e=Is.get();return _.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var Vs,Js,$s,Ks,Zs,Xs;function Ys(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=E.squeezeAndCompress(e.slice()),e.JZB.length<=us)||1===e.length?t(e):(n=e.length/2,Ys(e.slice(0,n),t),void Ys(e.slice(n),t))}function Qs(e,t){Bo()&&t(e)}function eu(){return function(e,t){1===e.length&&e.JZB.length>us?(C.debug("Couldn't write event"),No("Single item is: "+e.JZB.length+". Dropping."),Mo(e.JZB)):t(e)}}function tu(e,t){return Ro(t.beacon+".gif",e,_.extend({v:Xe,ct:S(),jzb:t.JZB},t.params,t.auth))}function nu(e,t){return Ro(t.beacon+".gif",e,_.extend({v:Xe,ct:S(),s:t.JZB.length},t.params))}function iu(i){return function(e,t){e.params=_.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=Is.get();_.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function ru(e,t){var n=fo(),i=_.first(e),i=_.get(i,"account_id");n&&i&&(e.params=_.extend({},e.params,{acc:dt(i)})),t(e)}function ou(e,t){var n=_.first(e),n=_.get(n,"props.source");n&&(e.params=_.extend({},e.params,{source:n})),t(e)}function au(e){return JSON.stringify(_.extend({events:e.JZB},e.auth))}function su(e){return e.status<200||300<=e.status?m.reject(new Error(`received status code ${e.status}: `+e.statusText)):m.resolve()}function uu(e,t){return Fo(tu(e,t)).then(su)}function du(e,t){return fetch(nu(e,t),{method:"POST",keepalive:!0,body:au(t),headers:{"Content-Type":"application/json"}}).then(su)}function cu(e,t){var n=au(t);return Do(nu(e,t),n)?m.resolve():m.reject()}function lu(n){return function(e,t){return t.JZB?t.eventLength<=ss&&!f.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&Fo.supported()?uu(e,t):t.auth?Lr({method:"GET",url:tu(e,t)}):Po(tu(e,t)):n.allowPost&&t.eventLength<=us?Fo.supported()?du(e,t):Do.supported()?cu(e,t):Lr({method:"POST",url:nu(e,e=t),data:au(e),headers:{"Content-Type":"application/json"}}):m.resolve():m.resolve()}}function pu(n){return function(e,t){if(t.JZB){if(t.eventLength<=ss&&!f.get("sendEventsWithPostOnly",!1)){if(!t.auth&&Fo.supported())return uu(e,t);if(ze.msie<=11)return Lr({method:"GET",url:tu(e,t),sync:!0})}if(t.eventLength<=us&&n.allowPost){if(Fo.supported())return du(e,t);if(Do.supported())return cu(e,t);if(ze.msie<=11)return Lr({method:"POST",url:nu(e,e=t),data:au(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return m.resolve()}}function hu(e,t){e.length=0;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);t(i)}function fu(e){return Fs(Qs,Bs,Ys,(t=e.shorten,t=_.defaults(t||{},{fields:[],siloMaxLength:us}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],C.debug("Max length exceeded for an event"),_.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(C.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),Ys,eu(),iu(e),ru,ou,hu);var t}class gu{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 mu(o,a,s){a=a||lu(o),s=s||pu(o);e=o;var e=_.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=_.map(e,(i,r)=>{var e=new _s(function(e,t,n){return n&&(e.params=_.extend({},e.params,{rt:n})),o.localStorageUnload&&t?(0===r&&Ts.push(o.beacon,e),m.resolve()):(t?s:a)(i,e)});return e.onTimeout=function(){Os.track(o.beacon+"-gif-failure")},e.retryPending=!0,e}),e=new gu(e);return Ts.send(o.beacon,e),e}function vu(e,t){var n=f.get("analytics.excludeEvents");0<=_.indexOf(n,e.type)||t(e)}class yu{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=mu(e)}pause(e=1e4){var t=_.uniqueId();const n=this["locks"];n[t]=1;var i=()=>{n[t]&&(v.trigger("ptm:unpaused"),clearTimeout(r),delete n[t],this.flush())},r=Ut(i,e);return v.trigger("ptm:paused"),i}push(e){this.packageSilos(e,e=>{this.silos.push(e)})}clear(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()}flush({unload:e=!1,hidden:t=!1}={}){var{cache:n,silos:i}=this;if((0!==n.length||0!==i.length||!this.sendQueue.isEmpty())&&_.isEmpty(this.locks)){i.push(n.slice()),n.length=0;n=i.slice();i.length=0;const r=[];_.each(n,function(e){this.processSilos(e,function(e){r.push(e)})},this),e||t?this.sendQueue.drain(r,e):this.sendQueue.push(...r)}}}function bu(e){var i,r,t=fu(e),n=Fs((r=e.beacon,function(e,t){var n=f.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),vu,Us,Gs(e.cache),(i={overhead:Ws,lower:f.get("sendEventsWithPostOnly")?us:ss,upper:us,compressionRatio:[.5*Ms,.75*Ms,Ms]},function(e,t){for(var n=qs(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=qs(e,i)}));return new yu(_.extend({processSilos:t,packageSilos:n},e))}var wu=Qn(function(e){var t,n,i;if((e=e||A.get())&&e!==wu.lastUrl)return wu.lastUrl=e,t=-1,ts()||Ya()&&(i=Qa(),Xa(i,{type:"load",url:location.toString()},"*")),C.debug("sending load event for url "+e),t={load_time:t="undefined"!=typeof performance&&_.isFunction(performance.getEntriesByType)&&!_.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},Ya()&&(t.is_frame=!0),"*"!==(n=kt())&&(t.allowed_storage_keys=_.keys(n)),Ls("load",t,e),ms(),v.urlChanged.trigger(),!0});function Su(e){return"hidden"===e.visibilityState}wu.reset=function(){wu.lastUrl=null};const Eu="visibilitychange",Iu="pagehide",_u="unload";function Cu(){this.serializers=_.toArray(arguments)}function xu(e,t){return e.tag=oi.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function Tu(e){return me(e)?""+e:""}function ku(e,t){return e.id=Tu(t.id),e}function Au(e,t){return e.cls=Tu(k.getClass(t)),e}_.extend(Cu.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 Ru=256,Ou=64,Nu={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 Mu=function(e,t,n){if(!e||!e.nodeName)return null;var i=e.nodeName.toLowerCase();if(("img"==i&&"src"==t||"a"==i&&"href"==t)&&Br())return i=e.getAttribute(t),eo((i=i)&&0===i.indexOf("data:")?(C.debug("Embedded data provided in URI."),i.substring(0,i.indexOf(","))):i+"");i=e,e=t;t=g.getters["nodeAttr/getAttribute"]()(i,e);return(!n||typeof t===n)&&t?_.isString(t)?it.call(t).substring(0,Ru):t:null};function Lu(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 Pu(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<=Ou?_.pluck(a,"nodeName"):(r=_.groupBy(e,function(e){return o[e.nodeName]?"defaults":_.isString(e.value)&&e.value.length>Ru?"large":"small"}),_.pluck([].concat(_.sortBy(r.defaults,"nodeName")).concat(_.sortBy(r.small,"nodeName")).concat(_.sortBy(r.large,"nodeName")).slice(0,Ou),"nodeName"))}catch(s){return C.error("Error collecting DOM Node attributes: "+s),[]}}function Fu(t,n){var e=Lu(f.get("htmlAttributes")),i=Lu(f.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=Mu(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},Pu(n.attributes,Nu[r]&&Nu[r].attr,e,i));return _.each(r,function(e){t.attrs[e.toLowerCase()]=Mu(n,e)}),t}function Du(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=_.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),e.childIndex=n.filter(function(e){return e.nodeType==mo}).indexOf(t).value()),e}function Uu(i,e){var r;return f.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(Uu),e=this.serialize(e.previousElementSibling),this.add(Uu),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 Gu=new Cu(xu,ku,Au,Fu,Du,Uu),Bu=function(e){return"BODY"===e.nodeName&&e===na()||null===e.parentNode&&!oi.isElementShadowRoot(e)},zu="pendo-ignore",ju="pendo-analytics-ignore",Hu=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=Gu.serialize(o,e)}while(r||!ht(a.cls,zu)&&!ht(a.cls,ju)||(r=!0),n.parentElem=a,n=a,(i=oi.getParent(o))&&!Bu(o));return r&&(t.parentElem.ignore=!0),t.parentElem},qu=["","left","right","middle"],t=function(e){return e},e=function(e,t){return e[t]},Wu=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return qu[t]}],["altKey",e,t,t],["ctrlKey",e,t,t],["metaKey",e,t,t],["shiftKey",e,t,t]],Vu={click:function(e,t){for(var n=[],i=0;i<Wu.length;i++){var r=Wu[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}},Ju=function(t){try{if(Os.startTimer("event-captured"),!k.data.get(t,"counted")){k.data.set(t,"counted",!0);var n=Nr(t),i=t.type,e={},r=Vu[i];if(r&&(e=r(t,e)),k.data.get(t,"stopped")&&(e.stopped=!0),t.from&&_.isString(t.from)&&(e.from=t.from),n=(s=n).nodeType===go?s.parentNode:s.nodeType===bo?null:s.correspondingUseElement||s){var o=Hu(n),a=(_.extend(o,e),wu());if(a&&A.startPoller(),!o.ignore){let e;"click"===i&&(e=function(e){e=function(e){const n={};return{getEventProperties(){return n},addEventProperty(e,t){_.isString(e)&&!_.isUndefined(t)?n[e]=t:C.error("Failed to add click event property")},target:e}}(e),v.onClickCaptured.trigger(e),e=e.getEventProperties();if(!_.isEmpty(e))return e}(n)),Ls(i,{target:o},undefined,undefined,e,t),v.trigger("appUsage",o,t)}}else C.info("Invalid HTML target",{contexts:["event","dom","processing"]})}}catch(u){C.critical("pendo.io while handling event",{error:u})}finally{Os.stopTimer("event-captured")}var s};var $u=_.debounce(Ju,5e3,!0),Ku=function(e){const t=[];_.contains(e=e||["click","focus","submit","change"],"change")&&(e=_.without(e,"change"),t.push(()=>{$u.cancel()}),t.push(Rr(document,"change",$u,!0)));var n,i=f.get("interceptElementRemoval")||f.get("syntheticClicks.elementRemoval"),r=f.get("syntheticClicks.targetChanged"),r=(t.push(function(t,e,n,i){var r,o,a=[],s=ze.hasEvent("pointerdown"),u=s?"pointerdown":"mousedown",s=s?"pointerup":"mouseup",d=[],c={cloneEvent:function(e){e=k.event.clone(e);return e.type="click",e.from=u,e.bubbles=!0,e},down:function(e){o=!1,e&&(r=c.cloneEvent(e),n)&&c.intercept(e)},up:function(e){o=!1,e&&r&&i&&Nr(r)!==Nr(e)&&ra(Nr(r))&&(o=!0,t(r))},click:function(e){r=null,o&&k.data.set(e,"ignore",!0),o=!1,n&&c.unwrap()},intercept:function(e){e=function(e){var t=[];for(;e&&!Bu(e);)t.push(e),e=e.parentNode;return t}(Nr(e));_.each(e,function(e){e=Zu(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 Yv(){c.unwrap(),_.each(d,function(e){e()})}};e&&(d.push(Rr(document,u,c.down,!0)),d.push(Rr(document,s,c.up,!0)),d.push(Rr(document,"click",c.click,!0)));return c}(k.event.trigger,ze.addEventListener,i,r).teardown),t.push((i=e,n=_.map(i,function(e){return l(document,e,Ju,!0)}),()=>{_.each(n,function(e){e()})})),t.push(function(e,t){if(t){const n=[];return n.push(Rr(document,Eu,()=>{Su(document)&&e(!0,!1)})),n.push(Rr(window,Iu,_.partial(e,!1,!0))),()=>_.each(n,function(e){e()})}return Rr(window,_u,_.partial(e,!0,!0))}(function(e,t){t&&v.appUnloaded.trigger(),e&&v.appHidden.trigger()},f.get("preventUnloadListener"))),f.get("interceptStopPropagation",!0)),i=f.get("interceptPreventDefault",!0);return r&&t.push(Xu(window.Event,e)),i&&t.push(Yu(window.Event,["touchend"])),()=>{_.each(t,function(e){e()})}};function Zu(n,i){var e=["remove","removeChild"];try{if(!n)return _.noop;_.each(e,function(e){var t=n[e];if(!t)return _.noop;n[e]=_.wrap(t,function(e){return i&&i(),e.apply(this,_.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return _.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){C.critical("ERROR in interceptRemove",{error:t})}return function(){_.each(e,function(e){if(!n[e])return _.noop;e=n[e]._pendoUnwrap;_.isFunction(e)&&e()})}}function Xu(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return _.noop;var i=_.indexBy(e);_.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=_.wrap(t,function(e){var t=e.apply(this,arguments);return i[this.type]&&(k.data.set(this,"stopped",!0),k.event.trigger(this)),t}),n.prototype[e]._pendoUnwrap=function(){n.prototype[e]=t,delete n.prototype[e]._pendoUnwrap})})}catch(r){C.critical("ERROR in interceptStopPropagation",{error:r})}return function(){_.each(t,function(e){e=n.prototype[e]._pendoUnwrap;_.isFunction(e)&&e()})}}function Yu(t,e){try{if(!t||!t.prototype)return _.noop;var i=_.indexBy(e),n=t.prototype.preventDefault;if(!n)return _.noop;t.prototype.preventDefault=_.wrap(n,function(e){var t,n=e.apply(this,arguments);return i[this.type]&&((t=k.event.clone(this)).type="click",t.from=this.type,t.bubbles=!0,t.eventPhase=kr,k.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){C.critical("ERROR in interceptPreventDefault",{error:r})}return function(){var e=t.prototype.preventDefault._pendoUnwrap;_.isFunction(e)&&e()}}function l(e,t,n,i){return e&&t&&n?(i&&!ze.addEventListener&&(i=!1),k.event.add(e,{type:t,handler:n,capture:i})):_.noop}function Qu(e,t,n,i){e&&t&&n&&(i&&!ze.addEventListener&&(i=!1),k.event.remove(e,t,n,i))}var ed=function(e){k.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},td=function(e,t){return"complete"!==(t=t||window).document.readyState?Rr(t,"load",e):(e(),_.noop)};function nd(){return E.normalizedUrl||function(e){try{var t=new ei(e),n=_.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return C.error("Invalid URL provided to normalize"),e}}(A.externalizeURL())}function id(t,e,n={}){if(!me(t))return!0;var i=e||nd(),{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(me(s))try{if(new RegExp(s).test(i))return!0}catch(u){r&&o&&a&&r.error(`Invalid page rule regex for ${o} (rule ${e}):`,a,u)}}}else if("string"==typeof t)try{return new RegExp(t).test(i)}catch(u){r&&o&&a&&r.error(`Invalid page rule regex for ${o}:`,a,u)}return!1}function rd(e,t){return id(e,t,{logger:C,context:"guide",id:"unknown"})}var O=[],od=[],ad={};let sd={};function ud(){return O}function dd(){return cd(O)}function cd(e){return _.filter(e,function(e){return!e.isFrameProxy})}function ld(e){_.isArray(e)?(O=e,v.guideListChanged.trigger({guideIds:_.pluck(e,"id")})):C.info("bad guide array input to `setActiveGuides`")}var pd=function(){let n=[];return{addGuide:e=>{var t;_.isEmpty(e)||(n=n.concat(e),_.each(n,e=>e.hide&&e.hide()),e=O,(t=_.difference(e,n)).length<e.length&&(ld(t),g.dispatch("frames/changeGuideList",t)))}}}();function hd(t,n){return _.find(md(),function(e){return _.get(e,t)===n})||null}function N(e){return hd("id",e)}function fd(e){return hd("name",e)}function gd(e,t){return e&&e.id?(e=N(e.id)).findStepById(t):null}function md(){var e=_.values(sd);return e.length?O.concat(_.flatten(e)):O}var vd="_pendo-guide-tt_",yd="_pendo-guide-mobile-tt_",bd=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},wd=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},Sd=function(e){return!!_.get(e,"attributes.form")};function Ed(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function Id(){return!!(Ed()&&Zo().width<=320)||ze.isMobileUserAgent()}function _d(e=document){var t=_d.attachPoint;if(null==t){var n=f.get("guides.attachPoint");if(_.isString(n)){try{t=Cr(n)[0]}catch(i){C.info('Error finding guide attach point "'+n+'"')}t=t||document.createElement("div")}else t=!!_.isFunction(n)&&n();_d.attachPoint=t}return t||na(e)}var Cd=function(e){var t=ad[e.guideId];if(t){t=t.element();if(ra(t)&&t.id==="_pendo-badge_"+e.id)return t}},xd=function(e,t){var n;return e?(n=e.getGuide(),n="building-block"===_.get(n,"attributes.type")||!wd(n),!e.overrideElement&&n&&(e.overrideElement=Cd(e)),e.targetElement=Td(e,t),e.overrideElement||e.targetElement):(C.info("Can't get element for null step"),null)},Td=function(e,t){e=e.elementPathRule||null,e=e?Cr(e,t):[na(t)];return 0===e.length?null:_.first(e)};function kd(e){var t=_.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function Ad(e,t,n){var i,r,o,e=Qo(e),t=Qo(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!==Xo(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([ca.X,ca.BOTH],i)&&(r.x=0);_.contains([ca.Y,ca.BOTH],i)&&(r.y=0);return r}(a,Zo(),n,da(na(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function Rd(e,t,n,i,r){var o,a=_.toArray(arguments).slice(1),s=e.apply(this,a);return n||ha(o=_d())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function Od(){return g.getters["frames/isLeader"]()}function Nd(e){return g.dispatch("frames/updateFrameVisibility",{visibility:e})}const Md={validateGuide:1,validateLauncher:1,validateGlobalScript:1},Ld={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1},Pd={ready:1},Fd=["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"];function Dd(i){const e=_.reduce(Fd,function(e,r){if(Ld[r]){const t=function(e){return Gd[r].apply(Gd[r],e.data)};i[r].on(t),e.push(()=>i[r].off(t))}if(Pd[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())}Ud=wn.call({}),_.each(Fd,function(n){Ud[n]=function(e){var t;return _.isFunction(e)?Ud.on(n,e):(t=Md[n]?"triggerAsync":"trigger",Ud[t].apply(Ud,[n].concat(_.toArray(arguments))))}});var Ud,Gd=Ud;var Bd={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 zd(e){e=Ra(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}Hd=Jd={failed:{},verified:{}},Wd=Mo,Vd=function(e){try{var t=[];return!Bd.usesXhr()&&e.domJsonpUrl?t.push(Zd(e,"domJsonpUrl")):Bd.usesXhr()&&e.domUrl&&t.push(Kd(e,"domUrl")),e.contentUrlJs?t.push(Zd(e,"contentUrlJs")):e.contentUrl&&t.push(Zd(e,"contentUrl")),m.all(t)}catch(n){throw v.contentVerificationFail.trigger(e,n),n}},qd=function(e){return Vd(e).then(_.noop,function(e){return/verify/.test(e)&&Wd(e),m.reject(e)})},jd=function(t){return Hd.failed[t.id]?m.reject():Hd.verified[t.id]?m.resolve():qd(t).then(function(){Hd.verified[t.id]=!0},function(e){return Hd.failed[t.id]=!0,m.reject(e)})};var jd,Hd,qd,Wd,Vd,Jd,$d={verify:function(e){return f.get("guideValidation")?jd(e):m.resolve()},reset:function(){Jd.failed={},Jd.verified={}}};function Kd(e,t){var n,i=e[t];return _.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||zd(e[t]),Lr.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=V.create()).update(e),c.uint8ToBase64(t.digest())!==n)return m.reject('Unable to verify content at "'+i+'"')})):m.reject('unable to parse "'+i+'"')}function Zd(e,t){var n=e[t];return ze.sri&&/[?&]sha(256|384|512)=/.test(n)?m.resolve():Kd(e,t)}Xd="allow",Yd="deny",Qd="pending",tc=function(){return 0<_.size(Gd._handlers.validateGuide)},nc=function(e,n){var i=[];return _.each(e,function(e,t){n&&(t=n+"."+t),_.isObject(e)?_.each(nc(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var Xd,Yd,Qd,ec,tc,nc,ic={state:ec={},Step:function(e){var n=this;function i(e){return _.filter([["content",zd(e.contentUrl)],["contentCss",zd(e.contentUrlCss)],["contentJs",zd(e.contentUrlJs)],["dom",zd(e.domUrl)],["domJsonp",zd(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=nc(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(Gd._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-"+ct(n.signature()),(t=ec[t])!==Yd)&&(t!==Xd?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+ct(t),Gd.validateLauncher(t).then(function(){ec[e]=Xd},function(){ec[e]=Yd}).then(function(){i=!1,n.render(),n.update(O)},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=nc(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(!tc())return m.resolve();try{return _.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=P.findResourceCenterModules(t,O),t=[t].concat(n),m.all(_.map(t,rc))):rc(e)}catch(i){throw v.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!tc()||!!(e=ec[e.guideId])&&e.status===Xd},invalid:function(e){return!!tc()&&!!(e=ec[e.guideId])&&e.status===Yd},reset(){ec={}}};function rc(i){var r=ec[i.id];return r||(r={},ec[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+ct(e),n=(r[t]||(r[t]={status:Qd},r.status=Qd),r[t].promise);return n||(n=Gd.validateGuide(e,i).then(function(){r[t].status=Xd,r.status=Xd},function(e){return r[t].status=Yd,r.status=Yd,m.reject(e)}),r[t].promise=n),n})}function oc(e,t){var n=_.toArray(arguments).slice(2);return _.reduce(e,function(e,t){return t.apply(e,n)},t)}function ac(e){return _.isFunction(e.before)?e:oc(ac.behaviors,e)}function sc(e,t){return oc(sc.behaviors,e,t)}function uc(e){var t,n,i=f.getLocalConfig("contentHost");return i&&e?(t=new RegExp(`(https:)?\\/\\/${Ve}-\\d+\\.storage\\.googleapis\\.com`,"g"),n=new RegExp(`(https:)?\\/\\/${We}\\.storage\\.googleapis\\.com`,"g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+Tt($e),"g"),i)):e}function dc(e){return f.getLocalConfig("contentHost")?JSON.parse(uc(JSON.stringify(e))):e}ac.behaviors=[],sc.behaviors=[];var cc=function(){var d={},c=_.compose(function(e){var t=function(){var e=Tt(f.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&C.debug("Failed to verify URL: "+e+" vs "+t),e},uc);const u=[function(e,t,n){return e.replace(`<% if (typeof guide !== 'undefined') { %>
4
+ function loadAgent(u){d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");var d,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 d[e>>18&63]+d[e>>12&63]+d[e>>6&63]+d[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=d[n>>2])+d[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=d[n>>10])+d[n>>4&63])+d[n<<2&63]}return o}},Gt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var G,o,B,z,j,H,q,e={exports:{}};function W(e){e?(H[0]=H[16]=H[1]=H[2]=H[3]=H[4]=H[5]=H[6]=H[7]=H[8]=H[9]=H[10]=H[11]=H[12]=H[13]=H[14]=H[15]=0,this.blocks=H):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}n=e,G="object"==typeof window?window:{},t=!G.JS_SHA1_NO_COMMON_JS&&n.exports,o="0123456789abcdef".split(""),B=[-2147483648,8388608,32768,128],z=[24,16,8,0],j=["hex","array","digest","arrayBuffer"],H=[],q=function(t){return function(e){return new W(!0).update(e)[t]()}},W.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===G.ArrayBuffer?new Uint8Array(e):e).length||0,a=this.blocks;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),i)for(n=this.start;r<o&&n<64;++r)a[n>>2]|=e[r]<<z[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<z[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<z[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<z[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<z[3&n++],a[n>>2]|=(128|t>>12&63)<<z[3&n++]),a[n>>2]|=(128|t>>6&63)<<z[3&n++]),a[n>>2]|=(128|63&t)<<z[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,64<=n?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},W.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=B[3&t],this.block=e[16],56<=t&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash())},W.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},W.prototype.toString=W.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]},W.prototype.array=W.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]},W.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},i=function(){var t=q("hex");t.create=function(){return new W},t.update=function(e){return t.create().update(e)};for(var e=0;e<j.length;++e){var n=j[e];t[n]=q(n)}return t}(),t?n.exports=i:G.sha1=i;var V=p(e.exports);let J;const $={createScriptURL:e=>e,createHTML:e=>e};function K(e){return J||(J=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",$):$),e.trustedTypesPolicy=J),J}var E,Z="stagingServerHashes",X={};function Y(e){return e.loadAsModule}function Q(e){return"staging"===e.environmentName}function ee(e){return"extension"===e.installType}function te(t=[],n){var i=/^https:\/\/[\w\-.]*cdn[\w\-.]*\.(pendo-dev\.com|pendo\.io)\/agent\/static\/([\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}|PENDO_API_KEY)\/pendo\.js$/g;for(let e=0;e<t.length;e++){var r=t[e];if(i.test(r.src)||r.id==="pendo-"+n)return r}}function ne(e,t,n){e=function(e=[]){if(e=te(e))return e.src.replace(/\.js$/,"-staging.js")}(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function ie(n,i=[],r=[]){if(n){if(0<r.length){e=n;var o=c.uint8ToBase64(V.create().update(e).digest());for(let e=0,t=r.length;e<t;++e)if(r[e]===o)return!0}var e;if(0<i.length)for(let t=0,e=i.length;t<e;++t){let e=i[t];if((e="string"==typeof(e="object"==typeof e&&e.value?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)?new RegExp("^"+e+"$"):e)instanceof RegExp&&e.test(n))return!0}}return!1}function re(e,t){return!!(e=e||X)&&(!!Q(e)||ie((t=t||window.location).host,e.stagingServers,e[Z]))}var oe=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function ae(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function se(e){if(!e._q)for(var t=oe,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){ae(t,e,arguments)}}(t[n],e)}function ue(e,t,n){if(!ee(i=e)&&!Q(i)&&re(i)){i=ne(e,!0,n);if(i)return se(t),ce(i,t),!0}var i;return!1}function de(e,t,n){if(r=n,!ee(i=e)&&!i.unminified&&r){i=ne(e,!1,n);if(i)return se(t),ce(i,t),!0}var i,r;return!1}function ce(e,t){var n=document.createElement("script"),t=(n["async"]=!0,n.src=K(t).createScriptURL(e),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(n,t):(document.head||document.body).appendChild(n)}function le(e){X=e}function pe(){return void 0===u?{}:u}function he(e){return X[e]}fe(window.setTimeout,window);function fe(e,t){return"function"==typeof e.bind?e.bind(t):e}var ge,Ut=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return fe(e[t],e)}(window),_=p(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Gt&&Gt.global===Gt&&Gt||Function("return this")()||{},i=Array.prototype,F=Object.prototype,D="undefined"!=typeof Symbol?Symbol.prototype:null,U=i.push,u=i.slice,l=F.toString,G=F.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),B=Array.isArray,z=Object.keys,j=Object.create,H=t&&ArrayBuffer.isView,q=isNaN,W=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],$=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 K(e){return void 0===e}function Z(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var X=r("String"),Y=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=B||r("Array");function g(e,t){return null!=e&&G.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return Y(e)&&q(e)}function ue(e){return function(){return e}}function de(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=$}}function ce(t){return function(e){return null==e?void 0:e[t]}}var m=ce("byteLength"),le=de(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return H?H(e)&&!h(e):le(e)&&pe.test(l.call(e))}:ue(!1),v=ce("length");function fe(e,t){t=function(t){for(var n={},e=t.length,i=0;i<e;++i)n[t[i]]=!0;return{contains:function(e){return!0===n[e]},push:function(e){return n[e]=!0,t.push(e)}}}(t);var n=J.length,i=e.constructor,r=p(i)&&i.prototype||F,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=J[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(z)return z(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return V&&fe(e,n),n}function ge(e,t){var n=y(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function c(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=l.call(e);if(r!==l.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return D.valueOf.call(e)===D.valueOf.call(t);case"[object ArrayBuffer]":case ve:return c(me(e),me(t),n,i)}r="[object Array]"===r;if(!r&&he(e)){var o=m(e);if(o!==m(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];i=i||[];var s=n.length;for(;s--;)if(n[s]===e)return i[s]===t;n.push(e);i.push(t);if(r){if((s=e.length)!==t.length)return!1;for(;s--;)if(!ye(e[s],t[s],n,i))return!1}else{var u,d=y(e);if(s=d.length,y(t).length!==s)return!1;for(;s--;)if(u=d[s],!g(t,u)||!ye(e[u],t[u],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function d(e){if(!o(e))return[];var t,n=[];for(t in e)n.push(t);return V&&fe(e,n),n}function be(i){var r=v(i);return function(e){if(null==e)return!1;var t=d(e);if(v(t))return!1;for(var n=0;n<r;n++)if(!p(e[i[n]]))return!1;return i!==Se||!p(e[we])}}var we="forEach",e=["clear","delete"],n=["get","has","set"],B=e.concat(we,n),Se=e.concat(n),t=["add"].concat(e,we,"has"),n=a?be(B):r("Map"),e=a?be(Se):r("WeakMap"),B=a?be(t):r("Set"),a=r("WeakSet");function w(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ee(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Ie(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function _e(u,d){return function(e){var t=arguments.length;if(d&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=u(i),o=r.length,a=0;a<o;a++){var s=r[a];d&&void 0!==e[s]||(e[s]=i[s])}return e}}var Ce=_e(d),s=_e(y),xe=_e(d,!0);function Te(e){var t;return o(e)?j?j(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function ke(e){return f(e)?e:[e]}function S(e){return b.toPath(e)}function Ae(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function Re(e,t,n){e=Ae(e,S(t));return K(e)?n:e}function Oe(e){return e}function E(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return Ae(e,t)}}function I(r,o,e){if(void 0===o)return r;switch(null==e?3:e){case 1:return function(e){return r.call(o,e)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return function(){return r.apply(o,arguments)}}function Me(e,t,n){return null==e?Oe:p(e)?I(e,t,n):(o(e)&&!f(e)?E:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function _(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Pe(){}function Fe(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=ke,b.iteratee=Le;var C=Date.now||function(){return(new Date).getTime()};function De(t){var n=function(e){return t[e]},e="(?:"+y(t).join("|")+")",i=RegExp(e),r=RegExp(e,"g");return function(e){return i.test(e=null==e?"":""+e)?e.replace(r,n):e}}var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Ue=De(t),t=De(Ee(t)),Ge=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Be=/(.)^/,ze={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},je=/\\|'|\r|\n|\u2028|\u2029/g;function He(e){return"\\"+ze[e]}var qe=/^\s*(\w|\$)+\s*$/;var We=0;function Ve(e,t,n,i,r){return i instanceof t?(i=Te(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var x=c(function(r,o){var a=x.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),i=0;i<t;i++)n[i]=o[i]===a?arguments[e++]:o[i];for(;e<arguments.length;)n.push(arguments[e++]);return Ve(r,s,this,this,n)};return s}),Je=(x.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return Ve(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),T=de(v);function k(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=Infinity;for(var r=i.length,o=0,a=v(e);o<a;o++){var s=e[o];if(T(s)&&(f(s)||ae(s)))if(1<t)k(s,t-1,n,i),r=i.length;else for(var u=0,d=s.length;u<d;)i[r++]=s[u++];else n||(i[r++]=s)}return i}var $e=c(function(e,t){var n=(t=k(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Je(e[i],e)}return e});var Ke=c(function(e,t,n){return Ut(function(){return e.apply(null,n)},t)}),Ze=x(Ke,b,1);function Xe(e){return function(){return!e.apply(this,arguments)}}function Ye(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=x(Ye,2);function et(e,t,n){t=_(t,n);for(var i,r=y(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function tt(o){return function(e,t,n){t=_(t,n);for(var i=v(e),r=0<o?0:i-1;0<=r&&r<i;r+=o)if(t(e[r],r,e))return r;return-1}}var nt=tt(1),it=tt(-1);function rt(e,t,n,i){for(var r=(n=_(n,i,1))(t),o=0,a=v(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function ot(o,a,s){return function(e,t,n){var i=0,r=v(e);if("number"==typeof n)0<o?i=0<=n?n:Math.max(n+r,i):r=0<=n?Math.min(n+1,r):n+r+1;else if(s&&n&&r)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(u.call(e,i,r),se))?n+i:-1;for(n=0<o?i:r-1;0<=n&&n<r;n+=o)if(e[n]===t)return n;return-1}}var at=ot(1,nt,rt),st=ot(-1,it);function ut(e,t,n){t=(T(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function A(e,t,n){if(t=I(t,n),T(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function R(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function dt(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=I(t,i,4),s=n,u=!T(o)&&y(o),d=(u||o).length,c=0<p?0:d-1;for(r||(s=o[u?u[c]:c],c+=p);0<=c&&c<d;c+=p){var l=u?u[c]:c;s=a(s,o[l],l,o)}return s}}var ct=dt(1),lt=dt(-1);function O(e,i,t){var r=[];return i=_(i,t),A(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function N(e,t,n,i){return T(e)||(e=w(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=c(function(e,n,i){var r,o;return p(n)?o=n:(n=S(n),r=n.slice(0,-1),n=n[n.length-1]),R(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Ae(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return R(e,Ne(t))}function mt(e,i,t){var n,r,o=-Infinity,a=-Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=T(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&o<n&&(o=n);else i=_(i,t),A(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?u.call(e):X(e)?e.match(vt):T(e)?R(e,Oe):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=T(e)?e:w(e))[Fe(e.length-1)];for(var i=yt(e),n=v(i),r=(t=Math.max(Math.min(t,n),0),n-1),o=0;o<t;o++){var a=Fe(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function M(o,t){return function(n,i,e){var r=t?[[],[]]:{};return i=_(i,e),A(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var wt=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),St=M(function(e,t,n){e[n]=t}),Et=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),It=M(function(e,t,n){e[n?0:1].push(t)},!0);function _t(e,t,n){return t in n}var Ct=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=I(i,t[1])),t=d(e)):(i=_t,t=k(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=e[a];i(s,a,e)&&(n[a]=s)}}return n}),xt=c(function(e,n){var t,i=n[0];return p(i)?(i=Xe(i),1<n.length&&(t=n[1])):(n=R(k(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Ct(e,i,t)});function Tt(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function kt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Tt(e,e.length-t)}function L(e,t,n){return u.call(e,null==t||n?1:t)}var At=c(function(e,t){return t=k(t,!0,!0),O(e,function(e){return!N(t,e)})}),Rt=c(function(e,t){return At(e,t)});function Ot(e,t,n,i){Z(t)||(i=n,n=t,t=!1),null!=n&&(n=_(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var u=e[a],d=n?n(u,a,e):u;t&&!n?(a&&o===d||r.push(u),o=d):n?N(o,d)||(o.push(d),r.push(u)):N(r,u)||r.push(u)}return r}var Nt=c(function(e){return Ot(k(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Pt(e,t){return e._chain?b(t).chain():t}function Ft(n){return A(Ie(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return U.apply(e,arguments),Pt(this,t.apply(b,e))}}),b}A(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Pt(this,e)}}),A(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Pt(this,e=null!=e?t.apply(e,arguments):e)}});var P=Ft({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:K,isBoolean:Z,isElement:function(e){return!(!e||1!==e.nodeType)},isString:X,isNumber:Y,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&W(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||X(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:B,isWeakSet:a,keys:y,allKeys:d,values:w,pairs:function(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:Ee,functions:Ie,methods:Ie,extend:Ce,extendOwn:s,assign:s,defaults:xe,create:function(e,t){return e=Te(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:Re,has:function(e,t){for(var n=(t=S(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=_(t,n);for(var i=y(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Oe,constant:ue,noop:Pe,toPath:ke,property:Ne,propertyOf:function(t){return null==t?Pe:function(e){return Re(t,e)}},matcher:E,matches:E,times:function(e,t,n){var i=Array(Math.max(0,e));t=I(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:Fe,now:C,escape:Ue,unescape:t,templateSettings:Ge,template:function(o,e,t){e=xe({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||Be).source,(e.interpolate||Be).source,(e.evaluate||Be).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace(je,He),a=r+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(s+="';\n"+i+"\n__p+='"),e}),s+="';\n",t=e.variable){if(!qe.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{throw new Error("Function constructor not supported")}catch(n){throw n.source=s,n}return(e=function(e){return(void 0).call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=S(t)).length;if(!i)return p(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++We+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:x,bind:Je,bindAll:$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:Ke,defer:Ze,throttle:function(n,i,r){var o,a,s,u,d=0,c=(r=r||{},function(){d=!1===r.leading?0:C(),o=null,u=n.apply(a,s),o||(a=s=null)}),e=function(){var e=C(),t=(d||!1!==r.leading||(d=e),i-(e-d));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout(o),o=null),d=e,u=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=Ut(c,t)),u};return e.cancel=function(){clearTimeout(o),d=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,u,d=function(){var e=C()-o;e<n?r=Ut(d,n-e):(r=null,i||(s=t.apply(u,a)),r||(a=u=null))},e=c(function(e){return u=this,a=e,o=C(),r||(r=Ut(d,n),i&&(s=t.apply(u,a))),s});return e.cancel=function(){clearTimeout(r),r=a=u=null},e},wrap:function(e,t){return x(t,e)},negate:Xe,compose:function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:Ye,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:ut,detect:ut,findWhere:function(e,t){return ut(e,E(t))},each:A,forEach:A,map:R,collect:R,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Xe(_(t)),n)},every:pt,all:pt,some:ht,any:ht,contains:N,includes:N,include:N,invoke:ft,pluck:gt,where:function(e,t){return O(e,E(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=T(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&n<o&&(o=n);else i=_(i,t),A(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=_(i,t),gt(R(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:wt,indexBy:St,countBy:Et,partition:It,toArray:yt,size:function(e){return null==e?0:(T(e)?e:y(e)).length},pick:Ct,omit:xt,first:kt,head:kt,take:kt,initial:Tt,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return O(e,Boolean)},flatten:function(e,t){return k(e,t,!1)},without:Rt,uniq:Ot,unique:Ot,union:Nt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=v(e);i<r;i++){var o=e[i];if(!N(t,o)){for(var a=1;a<n&&N(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:At,unzip:Mt,transpose:Mt,zip:Lt,object:function(e,t){for(var n={},i=0,r=v(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n=n||(t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(u.call(e,i,i+=t));return n},mixin:Ft,"default":b}),Dt=P.toPath;return P.mixin({toPath:function(e){return P.isString(e)?e.split("."):Dt(e)}}),P._=P}());function me(e){return!(null==e)}function ve(e){return _.isFunction(e)||_.isRegExp(e)?e:_.isArray(e)?_.map(e,ve):_.isObject(e)?_.reduce(e,function(e,t,n){return e[n]=ve(t),e},{}):e}var b=function(){var i=_.all,r=_.each,o=_.filter,a=_.first,s=_.find,n=_.map,u=_.pluck,d="snippet",c="pendoconfig",l="global",p="default";const h={};function e(e,t=[c],n,i){e&&!h[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),h[e]=n)}e("additionalApiKeys",[c,d]),e("allowedOriginServers"),e("allowedOriginServerHashes"),e("allowMixedApiKeyFrames",[d,c],!0),e("annotateUrl",[d]),e("apiKey",[c,d]),e("assetHost",[d,c]),e("autoFrameInstall",[d,c],!1),e("blockAgentMetadata",[c],!1),e("contentHost",[d,c]),e("cookieDomain",[d,c]),e("dataHost",[d,c]),e("disableAutoInitialize"),e("disableCookies",[d,c]),e("disablePendo",[d,c],!1),e("disablePersistence",[d,c]),e("enableSignedMetadata",[c],!1),e("frameIdentitySync",[d,c],!1),e("frameIdentityTopDownOnly",[d,c],!0),e("forceAnonymous",[d,c],!1),e("identityStorageLifetime",[d,c]),e("identityStorageSuffix",[d,c]),e("ignoreHashRouting",[d,c]),e("initializeImmediately",[d,c],!1),e("installType"),e("localStorageOnly",[d,c]),e("location.pushState",[d,c],!0),e("maxCookieTTLDays",[d,c],Infinity),e("observeShadowRoots",[d,c],!1),e("pendoCore",[c],!0),e("pendoGlobalKey",[c]),e("preferBroadcastChannel",[d,c],!1),e("preferMutationObserver",[d,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[d,c],!1),e("promotedAgentMetadataConfigurations",[c]),e("queryStringWhitelist",[d]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[d]),e("selfHosted"),e("selfHostedAgentUrl",[d,c]),e("sendEventsWithPostOnly",[d,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[d,c],[]),e("analytics.excludeEvents",[d,c],[]),e("analytics.localStorageUnload",[d,c],!1),e("enableDebugEvents",[d,c]),e("freeNPSData"),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[d,c],!0),e("excludeAllText",[c,d],!1,!0),e("excludeNonGuideAnalytics",[d,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptElementRemoval",[d,c],!1),e("interceptPreventDefault",[d,c],!0),e("interceptStopPropagation",[d,c],!0),e("syntheticClicks.elementRemoval",[d,c],!1),e("syntheticClicks.targetChanged",[d,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[d,c]),e("cacheGuides",[d,c],!1),e("cacheGuidesTimeout",[c],6e5),e("delayGuides",[d]),e("disableDesigner",[c,d],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[d,c],!1),e("disableGuidePseudoStyles",[d,c],!1),e("disableGuides",[d]),e("disablePrefetch",[d,c]),e("enableDesignerKeyboardShortcut",[d]),e("enableGuideTimeout",[c,d],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,d],1e4),e("guideTimeout",[d]),e("guideValidation",[d,c],!1),e("guides.attachPoint",[d]),e("guides.delay",[d]),e("guides.disabled",[d]),e("guides.ejectOnTimeout",[d,c],!1),e("guides.globalScripts",[d,c],[]),e("guides.timeout",[d]),e("guides.tooltip.arrowSize",[d]),e("inlineStyleNonce",[d]),e("leaderKey",[d,c],[]),e("preventCodeInjection",[c,d,l],!1),e("previewModeAssetPath"),e("useAssetHostForDesigner",[d,c],!1),e("storage.allowKeys",[d],"*"),e("disableFeedback",[d]),e("disableFeedbackAutoInit"),e("feedbackSettings",[c],{}),e("pendoFeedback",[c],!1),e("crossAppGuideStorageSuffix",[d,c]),e("enableCrossOriginIsolation",[d,c],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("agentDebuggerPluginLoader"),e("allowPartnerAnalyticsForwarding",[d],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerAgentPluginsLoader",[c,d]),e("trainingPartner"),e("errorClickLogging",[c],!1),e("enableAllEmbeddedGuideEvents",[c],!1),e("formValidation",[c],!1),e("performanceMetricsEnabled",[d,c],!0);var f={};function g(e){return h[e]||{name:e}}function m(e,t){if(t)return t=t(),me(e=_.get(t.lookup,(t=e,_.get(t,"key")||_.get(t,"name"))))?e:undefined}function v(e,t){var n=m(e,f[t]);return new w(e.name,n,t)}function y(e,t){return t=t||_.get(e,"supportedSources",[d,c,l]),o(n(t,_.partial(v,e)),function(e){return me(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||_.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&me(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function w(e,t,n){this.name=e,this.value=t,this.source=n}function S(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(u(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[d]=function(){return{lookup:ge||window.pendo_options,name:d}},f[c]=function(){return{lookup:X,name:c}},f[l]=function(){return{lookup:E,name:l}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get(e,t){return b(e,t).value},getLocalConfig(e,t){return arguments.length?b(e,t,[d]).value:ve(ge)},getHostedConfig(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig(e){ge=e},options:()=>u(h,"name"),sources:{SNIPPET_SRC:d,PENDO_CONFIG_SRC:c,GLOBAL_SRC:l,DEFAULT_SRC:p},validate(t){t.groupCollapsed("Validate Config options"),r(S(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}();const ye="extension",be="native";function we(){return b.get("installType")||pe().installType||be}function Se(){return we()===ye}function Ee(e){return/native/.test(e)}const Ie=e=>{e=_.get(window,e);return e&&Ee(e)};function _e(e,t){return e=e||10,(t=!isNaN(xe)&&(!t||xe<t))&&Ce<e}const Ce=function(e){let t=Te((/msie (\d+)/.exec(ke(e))||[])[1]);isNaN(t)&&(t=Te((/trident\/.*; rv:(\d+)/.exec(ke(e))||[])[1]));return t}(Ae()),xe=function(e,t){let n=Te((/trident\/(\d+)/.exec(ke(e))||[])[1]);isNaN(n)&&7==t&&(n=3);return n}(Ae(),Ce);function Te(e){return parseInt(e,10)}function ke(e){return _.isString(e)?e.toLowerCase():e}function Ae(){return(window.navigator||{}).userAgent}const Re={},Oe=Te((/android (\d+)/.exec(ke(Ae()))||[])[1]),Ne=/Boxee/i.test(Ae()),Me=window.document||{},Le=Me.documentMode;let Pe;var Fe,De=/^(Moz|webkit|O|ms)(?=[A-Z])/,t=Me.body&&Me.body.style;let Ue=!1,Ge=!1;if(t){for(const ES in t)if(Fe=De.exec(ES)){Pe=(Pe=Fe[0]).substr(0,1).toUpperCase()+Pe.substr(1);break}Pe=Pe||"WebkitOpacity"in t&&"webkit",Ue=!!("transition"in t||Pe+"Transition"in t),Ge=!!("animation"in t||Pe+"Animation"in t),!Oe||Ue&&Ge||(Ue=_.isString(Me.body.style.webkitTransition),Ge=_.isString(Me.body.style.webkitAnimation))}var n=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id;const Be=_.memoize(function Be(){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=!(Oe<4);return!(!e||t||!n||!i||Ne||Se())});const ze={supportsHistoryApi:Be,supportsHashChange:function(){var e="onhashchange"in window,t=!Le||7<Le;return!(!e||!t||Se())},hasEvent(e){var t;return("input"!=e||9!=Ce)&&(_.isUndefined(Re[e])&&(t=Me.createElement("div"),Re[e]="on"+e in t),Re[e])},vendorPrefix:Pe,transitions:Ue,animations:Ge,android:Oe,msie:Ce,msieDocumentMode:Le,safari:0<=(i=Ae()).indexOf("Safari")&&0<=!i.indexOf("Chrome"),sri:"integrity"in document.createElement("script"),addEventListener:_.isFunction(window.addEventListener),MutationObserver:Ee(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:_.memoize(function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Ae())}),isChromeExtension:n};var je=function(){return!isNaN(Ce)&&11!=Ce&&"CSS1Compat"!==document.compatMode},He=function(e,t){var n,i=e.height,r=e.width;return"top"==e.arrowPosition||"bottom"==e.arrowPosition?(n=0,"top"==e.arrowPosition?(e.top=t.top+t.height,n=-1,e.arrow.top=3,Ce<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+E.TOOLTIP_ARROW_SIZE),e.arrow.top=i-E.TOOLTIP_ARROW_SIZE,10==Ce?e.arrow.top--:Ce<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=10+E.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*E.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-E.TOOLTIP_ARROW_SIZE),e.arrow.border.top=e.arrow.top+n,e.arrow.border.left=e.arrow.left):("left"==e.arrow.hbias?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left-1):"right"==e.arrow.hbias&&(e.left=Math.max(0,t.left-r-E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left+1),e.top=t.top+t.height/2-i/2,e.arrow.top=i/2-E.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e};let qe="",We="",Ve="",Je="",$e="",Ke="",Ze="",Xe="2.298.0_",Ye="2.298.0",Qe="xhr";const et=function(){return je()?Xe+"+quirksmode":Xe};var tt=/^\s+|\s+$/g;function nt(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 it=(it=String.prototype.trim)||function(){return this.replace(tt,"")},e={exports:{}};!function(){var Y=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===Y?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&u(this)}function u(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(d[255&e]<<24|d[e>>>8&255]<<16|d[e>>>16&255]<<8|d[e>>>24&255])>>32-t:d[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=d[s],s=0,o===r.length)&&(r=u(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=d[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var d=t;function c(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&e instanceof Array?new Uint8Array(e):e,this.c=0,t&&(t.lazy&&(this.i=t.lazy),"number"==typeof t.compressionType&&(this.d=t.compressionType),t.outputBuffer&&(this.a=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.prototype.push=function(e,t){var n,i,r=this.buffer,o=this.length;for(r[this.length++]=t,r[this.length++]=e;0<o&&(n=this.getParent(o),r[o]>r[n]);)i=r[o],r[o]=r[n],r[n]=i,i=r[o+1],r[o+1]=r[n+1],r[n+1]=i,o=n;return this.length},c.prototype.pop=function(){var e,t,n,i=this.buffer,r=i[0],o=i[1];for(this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],n=0;!((t=2*n+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[n]);)e=i[n],i[n]=i[t],i[t]=e,e=i[n+1],i[n+1]=i[t+1],i[t+1]=e,n=t;return{index:o,value:r,length:this.length}};for(var ne=2,l={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,F,n=this.input;switch(this.d){case 0:for(t=0,F=n.length;t<F;){var D,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===F,o=Y,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),D=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&D,a[s++]=D>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,U=i.length;o<U;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var u,d=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(d.b(1,1,Q),d.b(1,2,Q),re(this,n)),l=0,G=c.length;l<G;l++)if(u=c[l],te.prototype.b.apply(d,ie[u]),256<u)d.b(c[++l],c[++l],Q),d.b(c[++l],5),d.b(c[++l],c[++l],Q);else if(256===u)break;this.a=d.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,z,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,x,T,k,q=h,W=f,A=new(ee?Uint32Array:Array)(q+W),R=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<q;N++)A[_++]=m[N];for(N=0;N<W;N++)A[_++]=v[N];if(!ee)for(N=0,x=O.length;N<x;++N)O[N]=0;for(N=T=0,x=A.length;N<x;N+=_){for(_=1;N+_<x&&A[N+_]===A[N];++_);if(C=_,0===A[N])if(C<3)for(;0<C--;)O[R[T++]=0]++;else for(;0<C;)(k=C-3<(k=C<138?C:138)&&k<C?C-3:k)<=10?(R[T++]=17,R[T++]=k-3,O[17]++):(R[T++]=18,R[T++]=k-11,O[18]++),C-=k;else if(R[T++]=A[N],O[A[N]]++,--C<3)for(;0<C--;)R[T++]=A[N],O[A[N]]++;else for(;0<C;)C-3<(k=C<6?C:6)&&k<C&&(k=C-3),R[T++]=16,R[T++]=k-3,O[16]++,C-=k}for(e=ee?R.subarray(0,T):R.slice(0,T),y=oe(O,7),S=0;S<19;S++)H[S]=y[j[S]];for(g=19;4<g&&0===H[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(H[S],3,Q);for(S=0,z=e.length;S<z;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],J=I[0],$=I[1],K=L[0],Z=L[1],P=0,X=p.length;P<X;++P)if(M=p[P],E.b(J[M],$[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b(K[V],Z[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,u=w[e.length];switch(a[s++]=65535&u,a[s++]=u>>16&255,a[s++]=u>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(u=n,a[s++]=u[0],a[+s]=u[1],a[5]=u[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,c=null}var i,r,o,a,s,u,d,c,l,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===Y&&(p[s]=[]),u=p[s],!(0<g--)){for(;0<u.length&&32768<i-u[0];)u.shift();if(r<=i+3){for(c&&n(c,-1),o=0,a=r-i;o<a;++o)l=t[i+o],h[f++]=l,++m[l];break}0<u.length?(d=function(e,t,n){var i,r,o,a,s,u,d=0,c=e.length;a=0,u=n.length;e:for(;a<u;a++){if(i=n[u-a-1],(o=3)<d){for(s=d;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=d}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(d<o&&(r=i,d=o),258===o)break}return new b(d,t-r)}(t,i,u),c?c.length<d.length?(l=t[i-1],h[f++]=l,++m[l],n(d,0)):n(c,-1):d.length<y?c=d:n(d,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}u.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,u=new c(572),d=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)d[o]=0;for(o=0;o<s;++o)0<e[o]&&u.push(o,e[o]);if(n=Array(u.length/2),i=new(ee?Uint32Array:Array)(u.length/2),1===n.length)d[u.pop().index]=1;else{for(o=0,a=u.length/2;o<a;++o)n[o]=u.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,u=new(ee?Uint16Array:Array)(t),d=new(ee?Uint8Array:Array)(t),c=new(ee?Uint8Array:Array)(n),l=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(u[t-1]=n,r=0;r<t;++r)f<g?d[r]=0:(d[r]=1,f-=g),f<<=1,u[t-2-r]=(u[t-1-r]/2|0)+n;for(u[0]=d[0],l[0]=Array(u[0]),p[0]=Array(u[0]),r=1;r<t;++r)u[r]>2*u[r-1]+d[r]&&(u[r]=2*u[r-1]+d[r]),l[r]=Array(u[r]),p[r]=Array(u[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<u[t-1];++o)l[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===d[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<u[r];o++)(a=l[r+1][s]+l[r+1][s+1])>e[i]?(l[r][o]=a,p[r][o]=n,s+=2):(l[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===d[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--c[t],++h[e]}(r)}return c}(i,i.length,t),o=0,a=n.length;o<a;++o)d[n[o].index]=r[o]}return d}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,u=e.length;s<u;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,u=16;s<=u;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,u=e.length;s<u;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,S=l,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,u=a.length;s<u;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var d,c=1,l=0,p=o.length,h=0;0<p;){for(p-=d=1024<p?1024:p;l+=c+=o[h++],--d;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call(e.exports);var rt={Deflate:p(e.exports).Zlib.Deflate},ot="base64url";function at(e,t){t=t||ot;e=nt("string"==typeof e?e:JSON.stringify(e)),e=new rt.Deflate(e).compress();return t===ot?c.uint8ToBase64(e):e}t={exports:{}};!function(){var o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||void 0===t?r=r[n]||(r[n]={}):r[n]=t}var a={c:function(e,t,n){return a.update(e,0,t,n)},update:function(e,t,n,i){var r=a.a,o="number"==typeof n?n:n=0,i="number"==typeof i?i:e.length;for(t^=4294967295,o=7&i;o--;++n)t=t>>>8^r[255&(t^e[n])];for(o=i>>3;o--;n+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^r[255&(t^e[n])])>>>8^r[255&(t^e[n+1])])>>>8^r[255&(t^e[n+2])])>>>8^r[255&(t^e[n+3])])>>>8^r[255&(t^e[n+4])])>>>8^r[255&(t^e[n+5])])>>>8^r[255&(t^e[n+6])])>>>8^r[255&(t^e[n+7])];return(4294967295^t)>>>0},d:function(e,t){return(a.a[255&(e^t)]^e>>>8)>>>0},b:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]};a.a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?new Uint32Array(a.b):a.b,e("Zlib.CRC32",a),e("Zlib.CRC32.calc",a.c),e("Zlib.CRC32.update",a.update)}.call(t.exports);var st={CRC32:p(t.exports).Zlib.CRC32},ut=function(e,n){var i;return 200<=(n=n||0)?e:_.isArray(e)?_.map(e,function(e){return ut(e,n+1)}):!_.isObject(e)||_.isDate(e)||_.isRegExp(e)||_.isElement(e)?_.isString(e)?_.escape(e):e:(i={},_.each(e,function(e,t){i[t]=ut(e,n+1)}),i)},dt=function(e){e=nt(e);return c.uint8ToBase64(e)},ct=function(e){if(void 0!==e)return e=nt(e=_.isString(e)?e:JSON.stringify(e)),st.CRC32.calc(e,0,e.length)};function lt(e){return e[Math.floor(Math.random()*e.length)]}function pt(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=lt(i);return n}var ht=function(e,t,n){return!(!me(e)||!me(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function S(){return(new Date).getTime()}function ft(){return"undefined"!=typeof $A&&_.isFunction($A.get)&&_.isString($A.get("$Browser.formFactor"))}function gt(e,t=window){var[e,t,n=window]=[_,e,t],i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}i=window;var mt=_.isFunction(i.isFinite)?i.isFinite:i.Number&&_.isFunction(i.Number.isFinite)?i.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function vt(e){return"number"==typeof e&&mt(e)&&Math.floor(e)===e}function yt(e,t,n,i){(t=t||{}).maxRetries=vt(t.maxRetries)?t.maxRetries:10,t.delay=vt(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,yt(e,t,o,a)},t.delay):(a||function(){})()}var bt=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function wt(e){return _.isObject(e)&&_.isFunction(e.then)}var St,Et=_.isFunction(window.decodeURIComponent)?window.decodeURIComponent:_.identity,It=_.isFunction(window.encodeURIComponent)?window.encodeURIComponent:_.identity;class _t{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 Ct{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()}}(n=St=St||{}).Debug="debug",n.Info="info",n.Warn="warn",n.Error="error",n.Critical="critical";class xt extends _t{write(e,t,n){this.dispatchEvent(new Ct(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 Ct(t,i,n);e.error=r,this.dispatchEvent(e)}debug(e,t){this.write(e,St.Debug,t)}info(e,t){this.write(e,St.Info,t)}warn(e,t){this.writeError(e,St.Warn,t)}error(e,t){this.writeError(e,St.Error,t)}critical(e,t){this.writeError(e,St.Critical,t)}}const C=new xt;function Tt(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const kt=function(){var e=b.get("storage.allowKeys")||"*";return _.isArray(e)?_.indexBy(e):e};function At(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function Rt(n){_.forEach(_.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function Ot(e){var t=_.noop,t={getItem:()=>null,setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:At(n,n.getItem,null),setItem:At(n,n.setItem),removeItem:At(n,n.removeItem),clearPendo:_.partial(Rt,n)}:t}catch(i){return t}}var Nt=Ot(function(){return window.localStorage}),Mt=Ot(function(){return window.sessionStorage});function Lt(e){try{return JSON.parse(e)}catch(t){return null}}var Pt,Ft={},Dt=!0,Bt=function(){return b.get("localStorageOnly")},zt=function(){return!!b.get("disableCookies")};function jt(e){Dt=e}var Ht=function(e){var t=zt()||Bt()?Ft[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?Et(e[2]):null},qt=function(e,t,n,i){var r,o;!Dt||b.get("preventCookieRefresh")&&Ht(e)===t||(o=Zt(n),(r=new Date).setTime(r.getTime()+o),o=e+"="+It(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict",Pt&&(o+=";domain="+Pt),zt()||Bt()?Ft[e]=o:document.cookie=o)};function Wt(e){Pt?qt(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var Vt=function(e,t){return`_pendo_${e}.`+(t||E.apiKey)},Jt=function(e,t){return Ht(Vt(e,t))};const $t=864e5,Kt=100*$t,Zt=(e=Kt)=>{var t=b.get("maxCookieTTLDays"),t=t<Infinity?t*$t:Infinity;return Math.min(e,t)};var Xt=function(e,t,n,i,r){n=n||Kt,qt(Vt(e,r),t,n,i)};class Yt{constructor(){this.keys={}}addLocal(e,t){this._add(e,"local",t)}addSession(e,t){this._add(e,"session",t)}hasLocal(e){return this._has(e,"local")}hasSession(e){return this._has(e,"session")}getKeyConfig(e,t,n){return me(n)?n:this.keys[e]?this.keys[e][t]:undefined}getKeySerializer(e){return this.keys[e]?this.keys[e].serializer:_.identity}getKeyDeserializer(e){return this.keys[e]?this.keys[e].deserializer:_.identity}_add(e,t,n={}){n=_.extend({type:t,duration:null,isPlain:!1,isSecure:!1,cookieSuffix:undefined,serializer:_.identity,deserializer:_.identity},n),this.keys[e]||(this.keys[e]=n)}_has(e,t){return!!this.keys[e]&&this.keys[e].type===t}}var Qt,en,tn,nn,m,h=function(){const u=new Yt;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=kt())||n[t])return u[r](e)||C.warn(`storage key ${e} is not registered`),i.apply(this,arguments);C.debug(`writing storage key ${e} is not allowed`)}}function d(){return!zt()&&!Pt&&c("localStorage")}var c=_.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}});function l(e){e.cache&&(e.cache={})}function o(e,t,n){t=u.getKeyConfig(e,"isPlain",t),n=u.getKeyConfig(e,"cookieSuffix",n);t=t?e:Vt(e,n);if(d())return localStorage.removeItem(t);Wt(t)}const t=_.extend({},Mt),n=(t.setItem=e(t.setItem,"hasSession"),_.extend({},Nt));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){t=u.getKeyConfig(e,"isPlain",t),n=u.getKeyConfig(e,"cookieSuffix",n);let i;var r;return d()?(r=t?e:Vt(e,n),null===(i=function(e){if(null===e)return null;try{var t=JSON.parse(e);return t.ttl?t.ttl<(new Date).getTime()?null:String(t.value||t):e}catch(n){return e}}(localStorage.getItem(r)))&&o(e,t,n)):i=t?Ht(e):Jt(e,n),u.getKeyDeserializer(e)(i)},write:e(function(e,t,n,i,r,o){if(n=u.getKeyConfig(e,"duration",n),i=u.getKeyConfig(e,"isPlain",i),r=u.getKeyConfig(e,"isSecure",r),o=u.getKeyConfig(e,"cookieSuffix",o),t=u.getKeySerializer(e)(t),l(c),d())try{var a=i?e:Vt(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+Zt(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void l(c)}catch(s){}if(!i)return Xt(e,t,n,r,o);qt(e,t,n,r)},"hasLocal"),clear:o,registry:u,getLocal:()=>n,getSession:()=>t}}(),rn=(window.Promise,e=function(){var t=Ut;function d(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void u(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!d(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function u(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){u(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)u(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!d(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a},"function"==typeof(t=window.Promise)&&/native/.test(t)?t:e()),i=(en=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},tn=function(n,i){var r=Qt.defer(),o=function(n,i){Ut(function(){var e;try{e=n(i)}catch(t){return void r.reject(t)}e===r.promise?r.reject(new TypeError("Cannot resolve promise with itself")):r.resolve(e)},1)};return{promise:r.promise,handle:function(e,t){e===nn?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},nn=1,(Qt={}).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(nn,e)},a=function(e){t(2,e)},s=function(e,t){e=tn(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},u=function(e){var t=en();try{e(t(d),t(a))}catch(n){t(a)(n)}},d=function(e){var t;try{t=function(e){var t=e&&e.then;if("object"==typeof e&&"function"==typeof t)return function(){return t.apply(e,arguments)}}(e)}catch(n){return void a(n)}t?u(t):o(e)},e=en();return{resolve:e(d),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},Qt);function on(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)}!Se()&&ze.isMinimumIEVersion(11)?m={all:function(e){return _.isArray(e)?rn.all.apply(rn,arguments):on(e)},reject:function(){return rn.reject.apply(rn,arguments)},resolve:function(){return rn.resolve.apply(rn,arguments)},defer:function(){var n={};return n.promise=new rn(function(e,t){n.resolve=e,n.reject=t}),n}}:((m=i).all=on,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 an=h.getSession(),sn="pendo_tabId",un="pendo_parentTabId";dn=window,n=_.partial,cn=_.extend,ln=_.omit,pn={data:{},getItem(e){return pn.data[e]},setItem(e,t){pn.data[e]=t},removeItem(e){pn.data[e]=null,delete pn.data[e]}},hn=n(yn,sn,bn),fn=n(yn,"pendo_frameId",pn);var dn,cn,ln,pn,hn,fn,gn={addTracerIds(e){return ln(cn(e,{parentTabId:mn(un,bn),tabId:hn(),frameId:fn()}),function(e){return e===undefined})},setParentTabId:function(e){vn(un,e,bn)},newTabId:function(){var e=pt(16);return vn(sn,e,bn),e},getTabId:hn,getFrameId:fn,tabIdChanged:function(t){var e;if(ze.addEventListener)return dn.addEventListener("storage",e=function(e){e.key===sn&&(pn.removeItem(sn),t())}),function(){dn.removeEventListener("storage",e)}}};function mn(e,t){return(_.isFunction(t)?t():t).getItem(e)}function vn(e,t,n){(_.isFunction(n)?n():n).setItem(e,t)}function yn(e,t){var n=mn(e,t);return n||vn(e,n=pt(16),t),n}function bn(){return n=pn,i=an,{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 wn(){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}wn.clear=function(t){t&&_.each(_.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};Li={DEBUG:t="debug",FRAMES:e="frames",LIFECYCLE:i="lifecycle",RUNTIME:n="runtime"},Sn=[new r("ready",[t,i]),new r("deliverablesLoaded",[t,i]),new r("guidesFailed",[t,i]),new r("guidesLoaded",[t,i]),new r("guideListChanged",[t,i]),new r("guideSeen",[t,i]),new r("guideNotSeen",[t,i]),new r("guideAdvanced",[t,i]),new r("guideDismissed",[t,i]),new r("guideSnoozed",[t,i]),new r("beforeGuideShow",[i]),new r("beforeMount",[n]),new r("beforeAdvance",[n]),new r("beforePrevious",[n]),new r("beforeSnooze",[n]),new r("beforeDismiss",[n]),new r("beforeUnmount",[n]),new r("unmounted",[n]),new r("beforeUpdate",[n]),new r("updated",[n]),new r("guideSnoozeCancelled",[t,i]),new r("guideTimeout",[t,i]),new r("guideLoopStopped",[t,i]),new r("guideUpdateComplete",[i]),new r("designerLaunched",[t,i]),new r("debuggerLaunched",[t,i]),new r("stepEligibility",[t]),new r("identify",[t,i]),new r("metadata",[t,i]),new r("appUnloaded",[t,i]),new r("appHidden",[t,i]),new r("startPreview",[t]),new r("resourceFetchFail",[t]),new r("contentVerificationFail",[t]),new r("contentValidationFail",[t]),new r("renderFail",[t]),new r("appUsage",[i]),new r("eventCaptured",[t]),new r("error",[t,i]),new r("onClickCaptured",[t]),new r("urlChanged",[i]),new r("leaderChanged",[i,e]),new r("transmit:locked",[i]),new r("transmit:unlocked",[i]),new r("sessionChanged",[i]),new r("ptm:unpaused",[i]),new r("ptm:paused",[i]),new r("childFrameJoined",[e]),new r("tabIdChanged:self",[t,i])],En=wn.call({}),In={debug(){return gn.addTracerIds(Cn.apply(null,arguments))},lifecycle:Cn,runtime:Cn,frames:Cn},_n=En.trigger,En.trigger=xn,_.each(_.values(Li),function(e){En[e]={on:_.partial(En.on,e),one:_.partial(En.one,e),off:_.partial(En.off,e)}}),_.each(Sn,function(e){e=e.name,En[e]={on:_.partial(En.on,e),one:_.partial(En.one,e),off:_.partial(En.off,e),trigger:_.partial(xn,e)}});var Sn,En,In,_n,v=En;function r(e,t){this.name=e,this.groups=t||[]}function Cn(e,t){e={type:e,ts:S()};return me(t)&&_.isObject(t)&&(e.data=t),e}function xn(t){var e=_.findWhere(Sn,{name:t}),n=_.toArray(arguments).slice(1),i={};return _.each(e.groups,function(e){i.cancel||(i=In[e](t,n),_n.apply(En,[e].concat(i)))}),i.cancel||(i=Cn(t,n),_n.apply(En,[t].concat(i))),i}function Tn(e){var i=[],r=[],o={},a={},s={state:{},commit:function(t,n){var e=o[t];if(!e)throw new Error("mutation "+t+" not found");e(n),_.each(i,function(e){e({type:t,payload:n},s.state)})},dispatch:function(t,n){var e=a[t];if(e)return e=e(n),_.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:_.partial(t,i),subscribeAction:_.partial(t,r),registerModule:function h(n,e){_.isString(n)&&(n=[n]);var t=d(s.state,e,n);_.extend(s.getters,p(e,t,s,n));_.extend(o,c(e,t,n));_.extend(a,l(e,t,s,n));_.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return _.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):_.noop;var n,i}function u(e,t){return(e=t?e.concat([t]):e).join("/")}function d(e,t,n){var i=e;return _.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),_.extend(i,ve(t.state||{}))}function c(e,n,i){var r={};return _.each(e.mutations,function(e,t){r[u(i,t)]=_.partial(e,n)}),r}function l(e,t,i,r){var n={},o={state:t,rootState:i.state,commit:function(e,t,n){n=n&&n.root?e:u(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:u(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=u(t);i&&(i+="/");return _.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return _.each(e.actions,function(e,t){n[u(r,t)]=_.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return _.each(e.getters,function(e,t){a[t]=o[u(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var f=Tn(),kn=(f.subscribe(function(e,t){}),"_PENDO_T_"),An=11;const Rn="visitorId",On="oldVisitorId",Nn="accountId";var Mn=function(e=""){return e+pt(An)};var Ln=function(e){return me(e)&&""!==e&&e!==Bn&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===it.call(e).length)},Pn=function(e){return!(!e||"number"==typeof e)&&e.substring(0,kn.length)===kn},Fn=function(){return!b.get("disablePersistence")},Dn=function(e){e=e||[Rn,Nn,On];const t=b.get("identityStorageSuffix")||E.apiKey;_.each(e,function(e){Wt(Vt(e,t)),h.clear(e,!1,t)})},Un="VISITOR-UNIQUE-ID",Gn=function(e){return Un===e},Bn="::",zn=function(e){return new RegExp(Bn).test(e)};function jn(e){return e.old_visitor_id!==e.visitor_id}var Hn,qn=function(e,t){var n,i={old_visitor_id:y(),old_account_id:$n()};Ln(e)?(Ln(n=e)?Vn(""+n):C.info("Invalid visitor id "+n),n=t,_.isUndefined(n)?C.info("No account id provided"):Ln(n)?(E.accountId=""+n,Fn()&&Kn(Nn,E.accountId)):(delete E.accountId,delete(t=b.getLocalConfig()).account,b.setLocalConfig(t),f.commit("metadata/clearAccount"),Fn()&&h.clear(Nn),C.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=y({generate:!0}),i.account_id=$n(),!jn(t=i)&&t.old_account_id===t.account_id||(jn(i)&&(n=i.old_visitor_id)&&(Hn=n,Kn(On,Hn)),v.identify.trigger(i))):C.info("Invalid visitor id "+e)};function Wn(){return Mn(kn)}function Vn(e){E.visitorId!==e&&(Fn()&&Kn(Rn,e),E.visitorId=e)}function y(e={}){var t=function(){if(Ln(E.visitorId))return E.visitorId;var e=b.get("forceAnonymous");if(Fn()){var t=Zn(Rn);if(Ln(t)&&(!e||Pn(t)))return t}return undefined}();return Vn(t=!t&&e.generate?Wn():t),t}function Jn(){return y()||Wn()}var $n=function(){var e=b.get("forceAnonymous");return Ln(E.accountId)||!Fn()||e||(e=Zn(Nn),E.accountId=e),E.accountId};function Kn(e,t){var n=b.get("identityStorageLifetime")||Kt,i=b.get("identityStorageSuffix")||E.apiKey;h.write(e,t,n,!1,!0,i)}function Zn(e){var t=b.get("identityStorageSuffix"),n=t||E.apiKey,n=h.read(e,!1,n)||h.read(e,!1,E.apiKey);return t&&h.clear(e,!1,E.apiKey),n}function Xn(){var e={old_visitor_id:y({generate:!1}),old_account_id:$n(),wasCleared:!0};Dn(),delete E.visitorId,delete E.accountId,y({generate:!0}),_.extend(e,{visitor_id:y(),account_id:$n()}),v.identify.trigger(e)}function Yn(e){e=e.data[0];return _.get(e,"wasCleared")}var Qn=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||C.critical(e)}}};n=function(n){return function ei(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 ei="function"==typeof(e=window.URL)&&/native/.test(e)?e:n(document);function ti(e){if((t=e)&&_.isFunction(t.composedPath))try{return e.composedPath()}catch(n){return e.path}var t;return null}function ni(e){return e.shadowRoot}function ii(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function ri(e,t){return ii(e,t)?e.host:e.parentNode}var oi={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:ti,getShadowRoot:ni,isElementShadowRoot:ii,getParent:ri,isShadowSelector:ai,wrapSizzle(i,d){i.intercept(function(a,t,n,i,r){var e,o;if(ai(t))return _.isFunction(document.documentElement.attachShadow)?(o=a,e=(e=t).replace(oi.PSEUDO_REGEX,oi.PSEUDO_SAFE),e=_.map(o.tokenize(e),si),_.reduce(e,function(e,t){return e.concat(s(t,n,i,r))},[])):a(t.replace(oi.PSEUDO_REGEX,""),n,i,r);{const u=a(t,n,i,r);return 0<d.cache.size&&d.cache.forEach(e=>{n&&n!==document&&!function(e,t,n){let i=t;for(;i;){if(i===e)return 1;i=ri(i,n)}}(n,e)||u.push(...a(t,e,i,r))}),u}function s(e,t,n,i){var r,o;return ai(e)?(o=s((r={baseCss:(o=(o=e).split(oi.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(oi.PSEUDO_ELEMENT)}).baseCss,t),_.reduce(o,function(e,t){return oi.getShadowRoot(t)?e.concat(s(r.shadowCss,oi.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!oi.isElementShadowRoot(t)&&(ai(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function ai(e){return!!e&&-1<e.indexOf(oi.PSEUDO_ELEMENT)}function si(e){return _.reduce(e,function(e,t){return t.value===oi.PSEUDO_SAFE?e+oi.PSEUDO_ELEMENT:e+t.value},"")}var ui,g,w,di,ci,li,pi,hi,fi,gi,mi,vi,I,yi,bi,wi,Si,Ei,Ii,t={exports:{}},i=t,_i=window,x="sizzle"+ +new Date,Ci=_i.document,xi=0,Ti=0,ki=ur(),Ai=ur(),Ri=ur(),Oi=ur(),Ni=function(e,t){return e===t&&(mi=!0),0},Mi={}.hasOwnProperty,Li=[],Pi=Li.pop,Fi=Li.push,Di=Li.push,Ui=Li.slice,Gi=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},Bi="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",e="(?:\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",n="\\["+a+"*("+e+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+e+"))|)"+a+"*\\]",zi=":("+e+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+n+")*)|.*)\\)|)",ji=new RegExp(a+"+","g"),Hi=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),qi=new RegExp("^"+a+"*,"+a+"*"),Wi=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),Vi=new RegExp(a+"|>"),Ji=new RegExp(zi),$i=new RegExp("^"+e+"$"),Ki={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+n),PSEUDO:new RegExp("^"+zi),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+Bi+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},Zi=/HTML$/i,Xi=/^(?:input|select|textarea|button)$/i,Yi=/^h\d$/i,Qi=/^[^{]+\{\s*\[native \w/,er=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tr=/[+~]/,nr=new RegExp("\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\([^\\r\\n\\f])","g"),ir=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))},rr=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,or=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ar=function(){vi()},sr=yr(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Di.apply(Li=Ui.call(Ci.childNodes),Ci.childNodes),Li[Ci.childNodes.length].nodeType}catch(wS){Di={apply:Li.length?function(e,t){Fi.apply(e,Ui.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function T(e,t,n,i){var r,o,a,s,u,d,c=t&&t.ownerDocument,l=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==l&&9!==l&&11!==l)return n;if(!i&&(vi(t),t=t||I,bi)){if(11!==l&&(s=er.exec(e)))if(r=s[1]){if(9===l){if(!(d=t.getElementById(r)))return n;if(d.id===r)return n.push(d),n}else if(c&&(d=c.getElementById(r))&&Ii(t,d)&&d.id===r)return n.push(d),n}else{if(s[2])return Di.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&g.getElementsByClassName&&t.getElementsByClassName)return Di.apply(n,t.getElementsByClassName(r)),n}if(g.qsa&&!Oi[e+" "]&&(!wi||!wi.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(d=e,c=t,1===l&&(Vi.test(e)||Wi.test(e))){for((c=tr.test(e)&&gr(t.parentNode)||t)===t&&g.scope||((a=t.getAttribute("id"))?a=a.replace(rr,or):t.setAttribute("id",a=x)),o=(u=li(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+vr(u[o]);d=u.join(",")}try{return Di.apply(n,c.querySelectorAll(d)),n}catch(p){Oi(e,!0)}finally{a===x&&t.removeAttribute("id")}}}return hi(e.replace(Hi,"$1"),t,n,i)}function ur(){var n=[];function i(e,t){return n.push(e+" ")>w.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function dr(e){return e[x]=!0,e}function cr(e){var t=I.createElement("fieldset");try{return!!e(t)}catch(wS){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function lr(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function pr(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 hr(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&&sr(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function fr(a){return dr(function(o){return o=+o,dr(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 gr(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ui in g=T.support={},ci=T.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!Zi.test(t||e&&e.nodeName||"HTML")},vi=T.setDocument=function(e){var e=e?e.ownerDocument||e:Ci;return e!=I&&9===e.nodeType&&e.documentElement&&(yi=(I=e).documentElement,bi=!ci(I),Ci!=I&&(e=I.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",ar,!1):e.attachEvent&&e.attachEvent("onunload",ar)),g.scope=cr(function(e){return yi.appendChild(e).appendChild(I.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),g.attributes=cr(function(e){return e.className="i",!e.getAttribute("className")}),g.getElementsByTagName=cr(function(e){return e.appendChild(I.createComment("")),!e.getElementsByTagName("*").length}),g.getElementsByClassName=!!I.getElementsByClassName,g.getById=cr(function(e){return yi.appendChild(e).id=x,!I.getElementsByName||!I.getElementsByName(x).length}),g.getById?(w.filter.ID=function(e){var t=e.replace(nr,ir);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&bi)return(e=t.getElementById(e))?[e]:[]}):(w.filter.ID=function(e){var t=e.replace(nr,ir);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&&bi){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=g.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):g.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=g.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&bi?t.getElementsByClassName(e):g.qsa&&bi?t.querySelectorAll("."+e):void 0},Si=[],wi=[],(g.qsa=!!I.querySelectorAll)&&(cr(function(e){var t;yi.appendChild(e).innerHTML=K().createHTML("<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&wi.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||wi.push("\\["+a+"*(?:value|"+Bi+")"),e.querySelectorAll("[id~="+x+"-]").length||wi.push("~="),(t=I.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||wi.push("\\["+a+"*name"+a+"*="+a+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||wi.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||wi.push(".#.+[+~]"),e.querySelectorAll("\\\f"),wi.push("[\\r\\n\\f]")}),cr(function(e){e.innerHTML=K().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=I.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&wi.push("name"+a+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&wi.push(":enabled",":disabled"),yi.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&wi.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),wi.push(",.*:")})),(g.matchesSelector=Qi.test(Ei=yi.matches||yi.webkitMatchesSelector||yi.mozMatchesSelector||yi.oMatchesSelector||yi.msMatchesSelector))&&cr(function(e){g.disconnectedMatch=Ei.call(e,"*"),Ei.call(e,"[s!='']:x"),Si.push("!=",zi)}),wi=wi.length&&new RegExp(wi.join("|")),Si=Si.length&&new RegExp(Si.join("|")),e=!!yi.compareDocumentPosition,Ii=e||yi.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},Ni=e?function(e,t){var n;return e===t?(mi=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===n?e==I||e.ownerDocument==Ci&&Ii(Ci,e)?-1:t==I||t.ownerDocument==Ci&&Ii(Ci,t)?1:gi?Gi(gi,e)-Gi(gi,t):0:4&n?-1:1)}:function(e,t){if(e===t)return mi=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==I?-1:t==I?1:r?-1:o?1:gi?Gi(gi,e)-Gi(gi,t):0;if(r===o)return pr(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?pr(a[i],s[i]):a[i]==Ci?-1:s[i]==Ci?1:0}),I},T.matches=function(e,t){return T(e,null,null,t)},T.matchesSelector=function(e,t){if(vi(e),g.matchesSelector&&bi&&!Oi[t+" "]&&(!Si||!Si.test(t))&&(!wi||!wi.test(t)))try{var n=Ei.call(e,t);if(n||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(wS){Oi(t,!0)}return 0<T(t,I,null,[e]).length},T.contains=function(e,t){return(e.ownerDocument||e)!=I&&vi(e),Ii(e,t)},T.attr=function(e,t){(e.ownerDocument||e)!=I&&vi(e);var n=w.attrHandle[t.toLowerCase()],n=n&&Mi.call(w.attrHandle,t.toLowerCase())?n(e,t,!bi):undefined;return n!==undefined?n:g.attributes||!bi?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},T.escape=function(e){return(e+"").replace(rr,or)},T.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,n=[],i=0,r=0;if(mi=!g.detectDuplicates,gi=!g.sortStable&&e.slice(0),e.sort(Ni),mi){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return gi=null,e},di=T.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=di(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=di(t);return n},(w=T.selectors={cacheLength:50,createPseudo:dr,match:Ki,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(nr,ir),e[3]=(e[3]||e[4]||e[5]||"").replace(nr,ir),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||T.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&T.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Ki.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Ji.test(n)&&(t=(t=li(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(nr,ir).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=ki[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&ki(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=T.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e.replace(ji," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,e,t,g,m){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,u,d=v!=y?"nextSibling":"previousSibling",c=e.parentNode,l=b&&e.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(v){for(;d;){for(a=e;a=a[d];)if(b?a.nodeName.toLowerCase()===l:1===a.nodeType)return!1;u=d="only"===f&&!u&&"nextSibling"}return!0}if(u=[y?c.firstChild:c.lastChild],y&&p){for(h=(s=(i=(r=(o=(a=c)[x]||(a[x]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===xi&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[d]||(h=s=0,u.pop());)if(1===a.nodeType&&++h&&a===e){r[f]=[xi,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[x]||(a[x]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===xi&&i[1]:h))for(;(a=++s&&a&&a[d]||(h=s=0,u.pop()))&&((b?a.nodeName.toLowerCase()!==l:1!==a.nodeType)||!++h||(p&&((r=(o=a[x]||(a[x]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[xi,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()]||T.error("unsupported pseudo: "+e);return a[x]?a(o):1<a.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?dr(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=Gi(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:dr(function(e){var i=[],r=[],s=pi(e.replace(Hi,"$1"));return s[x]?dr(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:dr(function(t){return function(e){return 0<T(t,e).length}}),contains:dr(function(t){return t=t.replace(nr,ir),function(e){return-1<(e.textContent||di(e)).indexOf(t)}}),lang:dr(function(n){return $i.test(n||"")||T.error("unsupported lang: "+n),n=n.replace(nr,ir).toLowerCase(),function(e){var t;do{if(t=bi?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=_i.location&&_i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===yi},focus:function(e){return e===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:hr(!1),disabled:hr(!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 Yi.test(e.nodeName)},input:function(e){return Xi.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:fr(function(){return[0]}),last:fr(function(e,t){return[t-1]}),eq:fr(function(e,t,n){return[n<0?n+t:n]}),even:fr(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:fr(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:fr(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:fr(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[ui]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ui);for(ui in{submit:!0,reset:!0})w.pseudos[ui]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ui);function mr(){}function vr(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function yr(a,e,t){var s=e.dir,u=e.next,d=u||s,c=t&&"parentNode"===d,l=Ti++;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=[xi,l];if(n){for(;e=e[s];)if((1===e.nodeType||c)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||c)if(r=(r=e[x]||(e[x]={}))[e.uniqueID]||(r[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[d])&&i[0]===xi&&i[1]===l)return o[2]=i[2];if((r[d]=o)[2]=a(e,t,n))return!0}return!1}}function br(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 wr(e,t,n,i,r){for(var o,a=[],s=0,u=e.length,d=null!=t;s<u;s++)!(o=e[s])||n&&!n(o,i,r)||(a.push(o),d&&t.push(s));return a}function Sr(h,f,g,m,v,e){return m&&!m[x]&&(m=Sr(m)),v&&!v[x]&&(v=Sr(v,e)),dr(function(e,t,n,i){var r,o,a,s=[],u=[],d=t.length,c=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)T(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),l=!h||!e&&f?c:wr(c,s,h,n,i),p=g?v||(e?h:d||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=wr(p,u),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[u[o]]=!(l[u[o]]=a));if(e){if(v||h){if(v){for(r=[],o=p.length;o--;)(a=p[o])&&r.push(l[o]=a);v(null,p=[],r,i)}for(o=p.length;o--;)(a=p[o])&&-1<(r=v?Gi(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=wr(p===t?p.splice(d,p.length):p),v?v(null,t,p,i):Di.apply(t,p)})}mr.prototype=w.filters=w.pseudos,w.setFilters=new mr,li=T.tokenize=function(e,t){var n,i,r,o,a,s,u,d=Ai[e+" "];if(d)return t?0:d.slice(0);for(a=e,s=[],u=w.preFilter;a;){for(o in n&&!(i=qi.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Wi.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Hi," ")}),a=a.slice(n.length)),w.filter)w.filter.hasOwnProperty(o)&&(i=Ki[o].exec(a))&&(!u[o]||(i=u[o](i)))&&(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?T.error(e):Ai(e,s).slice(0)},pi=T.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=Ri[e+" "];if(!a){for(n=(t=t||li(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,u=yr(function(e){return e===i},a,!0),d=yr(function(e){return-1<Gi(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==fi)||((i=t).nodeType?u:d)(e,t,n),i=null,e}];s<r;s++)if(t=w.relative[e[s].type])c=[yr(br(c),t)];else{if((t=w.filter[e[s].type].apply(null,e[s].matches))[x]){for(n=++s;n<r&&!w.relative[e[n].type];n++);return Sr(1<s&&br(c),1<s&&vr(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Hi,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&vr(e))}c.push(t)}return br(c)}(t[n]))[x]?r:o).push(a);(a=Ri(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,u=0,d="0",c=e&&[],l=[],p=fi,h=e||b&&w.find.TAG("*",r),f=xi+=null==p?1:Math.random()||.1,g=h.length;for(r&&(fi=t==I||t||r);d!==g&&null!=(o=h[d]);d++){if(b&&o){for(a=0,t||o.ownerDocument==I||(vi(o),n=!bi);s=m[a++];)if(s(o,t||I,n)){i.push(o);break}r&&(xi=f)}y&&((o=!s&&o)&&u--,e)&&c.push(o)}if(u+=d,y&&d!==u){for(a=0;s=v[a++];)s(c,l,t,n);if(e){if(0<u)for(;d--;)c[d]||l[d]||(l[d]=Pi.call(i));l=wr(l)}Di.apply(i,l),r&&!e&&0<l.length&&1<u+v.length&&T.uniqueSort(i)}return r&&(xi=f,fi=p),c},y?dr(i):i))).selector=e}return a},hi=T.select=function(e,t,n,i){var r,o,a,s,u,d="function"==typeof e&&e,c=!i&&li(e=d.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&bi&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(nr,ir),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Ki.needsContext.test(e)?0:o.length;r--&&(a=o[r],!w.relative[s=a.type]);)if((u=w.find[s])&&(i=u(a.matches[0].replace(nr,ir),tr.test(o[0].type)&&gr(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&vr(o))break;return Di.apply(n,i),n}}return(d||pi(e,c))(i,t,!bi,n,!t||tr.test(e)&&gr(t.parentNode)||t),n},g.sortStable=x.split("").sort(Ni).join("")===x,g.detectDuplicates=!!mi,vi(),g.sortDetached=cr(function(e){return 1&e.compareDocumentPosition(I.createElement("fieldset"))}),cr(function(e){return e.innerHTML=K().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||lr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),g.attributes&&cr(function(e){return e.innerHTML=K().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||lr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),cr(function(e){return null==e.getAttribute("disabled")})||lr(Bi,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var Er=_i.Sizzle;T.noConflict=function(){return _i.Sizzle===T&&(_i.Sizzle=Er),T},i.exports?i.exports=T:_i.Sizzle=T;Ir=p(t.exports),(_r=_.extend(function(){return _r.Sizzle.apply(this,arguments)},Ir)).reset=function(){_r.Sizzle=Ir,_r.matchesSelector=Ir.matchesSelector,_r.matches=Ir.matches},_r.intercept=function(e,t="Sizzle"){_r[t]=_.wrap(_r[t],e)},_r.reset();var Ir,_r,Cr=_r;function k(e,t){var n,i=this;if(e&&e instanceof k)return e;if(!(i instanceof k))return new k(e,t);if(e)if(e.nodeType)n=[e];else if(r=/^<(\w+)\/?>$/.exec(e))n=[document.createElement(r[1])];else if(/^<[\w\W]+>$/.test(e)){var r=document.createElement("div");r.innerHTML=e,n=_.toArray(r.childNodes)}else if(_.isString(e)){t instanceof k&&(t=0<t.length?t[0]:null);try{n=Cr(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 xr(){this.ownerKey="_pendo_"+pt(8)}_.extend(xr.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 Tr=new xr,kr=1;function Ar(e){return _.isNumber(e.eventPhase)&&e.eventPhase===kr}function Rr(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?gt("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{Or(e,t,n,i)}):_.noop}function Or(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?gt("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var Nr=function(e){var t=oi.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},Mr={add(t,e){var n=Tr.get(t),i=(n.handle||(n.handle=function(e){Mr.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||Rr(t,e.type,n.handle,e.capture),i.push(e),()=>{k.event.remove(t,e.type,e.handler,e.capture)}},dispatch(r,o){var e,t,a;r&&(e=(Tr.get(r,"captureEvents")||{})[o.type]||[],t=(Tr.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=Tr.get(o)).ignore&&(a.handled=a.handled||{},_.each(t.slice(),function(e){var t=!!e.capture===Ar(o),n=(n=o,_.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(Nr(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!me(e.selector)||0<k(Nr(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){C.error(i)}}}))},remove(e,t,n,i){var r=Tr.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],Or(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],Or(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],Or(e,t,r.handle));_.isEmpty(r.captureEvents)&&_.isEmpty(r.bubbleEvents)&&(Tr.remove(e,"captureEvents"),Tr.remove(e,"bubbleEvents"),Tr.remove(e,"handle"))}},trigger(e){var t=Tr.get(e);if(!t.pendoStopped)if(e.bubbles){var n=Nr(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=oi.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),Ar(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)Mr.dispatch(o[i],e);(e=Mr.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(Mr.dispatch(n,e),(e=Mr.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)Mr.dispatch(o[i],e)}}else Mr.dispatch(Nr(e),e)},clone(e){var t=_.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",Tr.ownerKey]),e=oi.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){Mr.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},Lr=_.extend(Fr,{get:function(e,t){return Fr({method:"GET",url:e,headers:t})},post:Dr,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",Dr(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)?It(e):It(e)+"="+It(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!==Pr()}});function Pr(){return window.XMLHttpRequest||ActiveXObject}function Fr(e){var t=m.defer(),n=new(Pr())("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 Dr(e,t,n){return Fr({method:"POST",url:e,data:t,headers:n})}var Ur,Gr=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},Br=function(){return b.get("annotateUrl")||Wr()||b.get("sanitizeUrl")||b.get(Qr)||b.get("xhrWhitelist")},zr=function(){return Wr()?{href:qr(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},jr=function(){return new ei(window.location.href)},Hr=function(){var e,t,n,i;return Br()?(e=jr(),Wr()&&(e.href=qr(e.href)),Gr()?(t=A.electronResourcesPath(),n=A.electronUserDirectory(),i=A.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(A.electronUserHomeDirectory(),"").replace("file:///","")):to(e.href)):f.getters["location/href"]()},qr=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Wr=function(){return!0===b.get("ignoreHashRouting")},Vr=500;function Jr(){return _.isUndefined(Ur)&&function e(){Yr(),Ur=Ut(e,Vr)}(),()=>{clearTimeout(Ur),Ur=undefined}}var $r=function(e){var t;try{t=Hr()}catch(n){}return t},Kr=[],Zr=!1,Xr=null;function Yr(){var t=zr().href;Xr!=t&&(Xr=t,_.map(Kr,function(e){e(t)}))}var Qr="queryStringWhitelist";function eo(e){var t=b.get("sanitizeUrl");return _.isFunction(t)?t(e):e}function to(e){e=e||zr().href;var t=b.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=io(e,null,n,!0)),o=i||{}),Lr.urlFor(e,o,r)):e}catch(a){C.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else C.error("customer-provided `annotateUrl` must be of type: function");return e}function no(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function io(e,t,n,i){e=e||$r(),t=t||no(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)?oo(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var ro,oo=function(e,t,n){return n&&_.contains(t,"*")?"":(e=ao(e),e=n?_.omit(e,t):_.pick(e,t),so(e))},ao=function(e){e=e.split("&");return _.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&Et(t[1])),e},{})},so=function(e){return _.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},A={watch:function(e){const n=[];C.info("Initializing Pendo URL Watcher");var i,t=b.get("location.pushState")&&ze.supportsHistoryApi();return Zr||(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(Yr,0),t}),i[e]._pendoUnwrapped=t,n.push(()=>{i[e]=t})}),n.push(Rr(window,"popstate",Yr))),ze.supportsHashChange()&&n.push(Rr(window,"hashchange",Yr)),!1!==t&&ze.supportsHashChange()||n.push(Jr()),Zr=!0),Kr.push(e),()=>{_.each(n,function(e){e()}),Kr.length=0,Zr=!1}},get:$r,externalizeURL:function(e,t,n){n=n||b.get(Qr);return eo(io(e,t,n=_.isFunction(n)?n():n,!1))},startPoller:Jr,getWindowLocation:zr,clear:function(){Kr=[]},isElectron:Gr,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 uo(){var e=b.getLocalConfig("dataHost");return e||((e=b.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:Je)}function co(){ro=uo()}function lo(){return b.get("assetHost")||po()}function po(){var e=b.get("contentHost")||$e;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function ho(e){var t=lo(),n=0<=(n=t).indexOf("localhost")||0<=n.indexOf("local.pendo.io")?e.replace(".min.js",".js"):e;return t+"/"+(Ke?Ke+"/":"")+n}function fo(){var e=b.get("allowPartnerAnalyticsForwarding",!1)&&b.get("adoptAnalyticsForwarding",!1);return b.get("trainingPartner",!1)||e}var go=3,mo=1,vo=9,yo=11,bo=4;function R(e){var t;if((t=e)&&t.nodeType===mo)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function wo(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 So(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function Eo(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function Io(e){return _.isNumber(e)?e:0}function _o(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!xo(e)?null:e}function Co(e){return wo(R(e),Pe)&&isNaN(Ce)}function xo(e){if(e)return(e=R(e))&&(_.contains(["relative","absolute","fixed"],e.position)||wo(e,Pe))}function To(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=xo(t)?t:_o(t,n),i=t?ko(t):{top:0,left:0},e=ko(e),i={top:e.top-i.top,left:e.left-i.left,width:e.width,height:e.height};return t?(t!==n.document.scrollingElement&&(i.top+=Io(t.scrollTop),i.left+=Io(t.scrollLeft)),i.top-=Io(t.clientTop),i.left-=Io(t.clientLeft)):(i.top+=So(n),i.left+=Eo(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function ko(e){var t;return e?e.getBoundingClientRect?{top:(t=e.getBoundingClientRect()).top,left:t.left,bottom:t.bottom,right:t.right,width:t.width||Math.abs(t.right-t.left),height:t.height||Math.abs(t.bottom-t.top)}:{top:0,left:0,width:e.offsetWidth,height:e.offsetHeight,right:e.offsetWidth,bottom:e.offsetHeight}:{width:0,height:0}}var Ao=void 0===(e=b.get("pendoCore"))||e,Ro=function(e,t,n){e=ro+"/data/"+e+"/"+t,t=_.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function Oo(){return _.compact([E.apiKey].concat(E.additionalApiKeys))}var No=function(e){return e+="v"+Xe,Po(Ro("log.gif",E.apiKey,{msg:e,version:Xe}))};function Mo(e){try{var t=ro+"/data/errorlog?apiKey="+E.apiKey,n={error:e,version:"v"+Xe,visitorId:y()},i=Fo.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):Lr.postJSON(t,n);return i.then(function(){C.info("successfully wrote error")},function(e){C.info("error writing error:"+e)})}catch(r){return C.info("Failed to write error to server using POST endpoint: "+r),No("Failed to write error to server using POST endpoint: "+r)}}function Lo(e){try{var t=ro+"/data/agentmetrics?apiKey="+E.apiKey;C.debug(`Will send ${JSON.stringify(e)} to ${t} using ${Fo.supported()?"fetch":"xhr"} once the endpoint exists`),Fo.supported()}catch(n){C.critical("Failed to write metrics payload to server: "+n)}}function Po(e){var t,n;return Bo()?(t=m.defer(),Rr(n=new Image,"load",t.resolve),Rr(n,"error",t.reject),n.src=e,t.promise):m.resolve()}function Fo(e,t={}){t=_.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t)}function Do(e,t){return navigator.sendBeacon(e,t)}Fo.supported=function(){try{return _.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var Uo=!(Do.supported=function(){return _.isFunction(navigator.sendBeacon)}),Go=function(){var e=Bo();return Uo=!0,e&&v["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},Bo=function(){return!Uo&&Ao},zo=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(Wo(e))}catch(n){return!1}},jo=function(e,t){try{var n;zo(e,t)||(n=it.call(Wo(e))+" "+t,qo(e,n))}catch(i){}},Ho=function(e,t){try{var n,i;zo(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=Wo(e).replace(n," "),qo(e,i))}catch(r){}},qo=function(e,t){_.isString(e.className)?e.className=t:e.setAttribute("class",t)},Wo=function(e){try{var t=e.className;return(_.isString(t)||!me(t)?t:e.getAttribute("class"))||""}catch(n){return""}},Vo=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},Jo={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},$o=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);Ko(e,t)},Ko=function(a,e){_.each(e,function(e,t){if(""!==(t=it.call(t))){var n=Vo(t),i=(!_.isNumber(e)||isNaN(e)||Jo[n]?_.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=it.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=it.call(e)}catch(o){C.info("failed to set style: "+t+" with value "+e)}}})},Zo=function(e=window){return je()?{width:e.document.documentElement.offsetWidth||0,height:e.document.documentElement.offsetHeight||0}:{width:e.innerWidth||e.document.documentElement.clientWidth,height:e.innerHeight||e.document.documentElement.clientHeight}},Xo=function(e){var t=Zo(),n=So(),i=Eo();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function Yo(t){return _.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function Qo(e,t=window){var n;return function(e){var t,n=e;for(;n;){if(!(t=R(n)))return;if("fixed"===t.position)return!isNaN(Ce)||!sa(n);n=n.parentNode}return}(e)?((n=ko(e)).fixed=!0,Yo(n)):Yo(To(e,na(t.document),t))}var ea=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},ta=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return C.info("error interrogating body elements: "+n),No("error picking best body:"+n),0}},na=function(e=document){try{var t=Array.prototype.slice.call(e.getElementsByTagName("body"));return t&&1<t.length?(t.sort(ta),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return No("Error getting body element: "+n),e.body}};function ia(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 ra(e,t=document){if(Cr.contains(t,e))return!0;for(;e&&e.parentNode||oi.isElementShadowRoot(e);)e=oi.getParent(e);return e===t}var oa=function(e){var t,n,i;if(null!=e)return t=(n=e.ownerDocument||document).defaultView||window,i=na(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=Qo(e,t)).right=i.left+i.width,i.bottom=i.top+i.height,i)},aa=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function sa(e){for(var t=e&&e.parentNode;t;){if(wo(R(t),Pe))return 1;t=t.parentNode}}var ua=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(ra(e))for(i=e;i;)if(oi.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=R(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=R(r))&&!_.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&sa(i))i=_o(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function da(e,t){e=R(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?ca.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?ca.BOTH:t.test(e.overflowY)?ca.Y:t.test(e.overflowX)?ca.X:t.test(e.overflow)?ca.BOTH:ca.NONE}var ca={X:"x",Y:"y",BOTH:"both",NONE:"none"};function la(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&ra(e)}function pa(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 ha(e){if(e){if(_.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function fa(e,t,n){const i=[];var r=ha(document.documentElement);let o=ha(ua(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=ha(ua(o)),a++;return()=>{_.each(_.compact(i),function(e){e()}),i.length=0}}const ga=['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 ma(e,t,n){var i=oa(t),t=da(t,n);if(t!==ca.BOTH||aa(e,i)){if(t===ca.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===ca.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function va(e){if(e){if(la(e))return 1;var t=oa(e);if(0!==t.width&&0!==t.height){var n=R(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=R(i=i.parentNode)}return 1}}}}function ya(e,t){if(!va(e))return!1;if(!la(e)){for(var n=oa(e),i=ua(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!ma(n,i,t))return!1;i=ua(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=Eo(),e+=So()),o<=0||e<=0)return!1}}return!0}function ba(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,u=oa(e),d=ua(e,s);if(!va(e))return!1;for(;d;){if(t=oa(d),(o=da(d,a))!==ca.NONE&&(i=n=0,o!==ca.Y&&o!==ca.BOTH||(u.bottom>t.bottom&&(n+=u.bottom-t.bottom,u.top-=n,u.bottom-=n),u.top<t.top&&(n-=r=t.top-u.top,u.top+=r,u.bottom+=r)),o!==ca.X&&o!==ca.BOTH||(u.right>t.right&&(i+=u.right-t.right,u.left-=i,u.right-=i),u.left<t.left&&(i-=r=t.left-u.left,u.left+=r,u.right+=r))),!ma(u,d,s))return!1;d=ua(d,s)}return!0}function wa(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=na(),u=ua(e,a);u&&u!==s;)t=oa(e),n=oa(u),r=i=0,t.bottom>n.bottom&&(i+=t.bottom-n.bottom,t.top-=i,t.bottom-=i),t.top<n.top&&(i-=o=n.top-t.top,t.top+=o,t.bottom+=o),t.right>n.right&&(r+=t.right-n.right,t.left-=r,t.right-=r),t.left<n.left&&(r-=o=n.left-t.left,t.left+=o,t.right+=o),_.isFunction(u.scrollBy)?u.scrollBy(r,i):(u.scrollTop+=i,u.scrollLeft+=r),u=ua(u,a)}n={$:{findOrCreate(e){return 0<this.length?this:k(e)},find(e){var t=k();return t.context=this.context,this.each(function(){k(e,this).each(function(){t[t.length++]=this})}),t},each(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text(e){var t="innerText"in document.body;return e===undefined?t?this.length?this[0].innerText:this:this.length?this[0].textContent:this:this.each(function(){$o(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){jo(t,e)})})},removeClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Ho(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&&zo(t,e)})}),n)},toggleClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){(zo(t,e)?Ho:jo)(t,e)})})},css(e){return this.each(function(){$o(this,e)}),this},appendTo(e){return k(e).append(this),this},append(e){var t=this;return k(e).each(function(){t.length&&t[0].appendChild(this),ra(this)&&_.each(Cr("script",this),pa)}),t},prependTo(e){return k(e).prepend(this),this},prepend(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],k(e).each(function(){n?k(this).insertBefore(n):k(this).appendTo(t)})),this},getParent(){var e=k(this)[0];if(e&&e.parentNode)return k(e.parentNode)},insertBefore(e){e=k(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),ra(this[0]))&&_.each(Cr("script",this[0]),pa)},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&&!Cr.matchesSelector(n,e);)if((n=ri(n))===document||t&&Cr.matchesSelector(n,t))return k();return k(n)},eq(e){return k(this[e])},height(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus(){return this.each(function(){_.isFunction(this.focus)&&this.focus()})}}};class Sa{constructor(e=na(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},ze.MutationObserver){const n=new(gt("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()}}Li=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var Ea="function"==typeof(i=window.WeakRef)&&/native/.test(i)?i:Li();function Ia(e,t){var n,i;return e.tagName&&-1<["textarea","input"].indexOf(e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:Ta(n.substring(0,i))):_a(e,t)}function _a(e,t=128){var n,i="",r=e.nodeType;if(r===go||r===bo)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===mo||r===vo||r===yo)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=_a(e.childNodes[a],t-i.length))).length)return i+Ta(o.substring(0,t-i.length));i+=o}}return i}function Ca(e){return 55296<=e&&e<=56319}function xa(e){return 56320<=e&&e<=57343}function Ta(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(Ca(t)||xa(t)){if(1===e.length)return e.slice(0,-1);if(Ca(t))return e.slice(0,-1);if(xa(t))if(!Ca(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class ka{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let t=this.elRef&&this.elRef.deref();var e=ra(t);if(!t||!e){if(t&&!e&&this.teardown(t),!(t=k(this.cssSelector)[0]))return undefined;_.each(this.events,e=>{t.addEventListener(e,e=>this.onEvent(e))}),this.elRef=new Ea(t)}return t}getText(e=1024){return Ia(this.get(),e)}addEventListener(e,t){var n=this.get();this.events.indexOf(e)<0&&(this.events.push(e),n)&&n.addEventListener(e,e=>this.onEvent(e)),this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)}onEvent(t){var e=t.type;_.each(this.listeners[e],e=>e(t))}teardown(t=this.get()){t&&_.each(this.events,e=>t.removeEventListener(e,this.onEvent))}}function Aa(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===uo())return!0;if(t===lo())return!0;if(t===po())return!0;var e=b.get("adoptHost");if(e&&t==="https://"+e)return!0;return!!ie(t,b.get("allowedOriginServers",[]),b.get("allowedOriginServerHashes",[]))||_.any([/^https:\/\/(adopt\.)?((us1)\.)?(app|via|adopt|cdn)(\.(au|eu|gov|hsbc|jpn))?\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)pendo-(au|eu|govramp|hsbc|io|jp-prod|us1)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)pendo-(au|eu|govramp|hsbc|io|jp-prod|us1)\.appspot\.com$/,/^https:\/\/pendo-(au|eu|govramp|hsbc|io|jp-prod|us1)-static\.storage\.googleapis\.com$/,/^https:\/\/([a-zA-Z0-9-]+\.)*pendo-dev\.com$/,/^https:\/\/([a-zA-Z0-9-]+-dot-)?pendo-(apollo|armada|atlas|batman|calypso|dap|dev|dr-us-east1|eu-dev|freeze|helix|link|magic|mcfly|ml|mobile-fbi|mobile-guides|mobile-hummus|mobile-plat|perfserf|voc|wildlings|ionchef|scrum-ops|security|test|uat|au|eu|govramp|hsbc|io|jp-prod|us1)\.appspot\.com$/,/^https:\/\/(via|adopt|local)\.pendo\.(local|io):\d{4}$/,/^https:\/\/pendo-(apollo|armada|atlas|batman|calypso|dap|dev|dr-us-east1|eu-dev|freeze|helix|link|magic|mcfly|ml|mobile-fbi|mobile-guides|mobile-hummus|mobile-plat|perfserf|voc|wildlings|ionchef|scrum-ops|security|test|uat)-static\.storage\.googleapis\.com$/],function(e){return e.test(t)})}function Ra(e){var t;if(_.isString(e))return t=(t=no(e).substring(1))&&t.length?ao(t):{},e=_.last(_.first(e.split("?")).split("/")).split("."),{filename:_.first(e),extension:e.slice(1).join("."),query:t}}function Oa(e,t){var n;b.get("guideValidation")&&ze.sri&&(n=Ra(t),t=_.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],_.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}_.extend(k,{data:Tr,event:Mr,removeNode:ea,getClass:Wo,hasClass:zo,addClass:function(e,t){var n;"string"==typeof e?(n=k(e),_.map(n,function(e){jo(e,t)})):jo(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=k(e),_.map(n,function(e){Ho(e,t)})):Ho(e,t)},getBody:na,getComputedStyle:R,getClientRect:oa,intersectRect:aa,getScrollParent:ua,isElementVisible:ya,Observer:Sa,Element:ka,scrollIntoView:wa,getRootNode:ha}),_.extend(k.prototype,Mr.$,n.$);var Na,Ma=function(e){var t=!((t=b.get("allowedOriginServers",[]))&&0<t.length||(t=b.get("allowedOriginServerHashes",[]))&&0<t.length),n=fo();return!(!t&&!n)||Aa(e)},La=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(_.isString(e)&&(e={url:e}),!Ma((d=e.url,new ei(d).origin)))throw new Error;e.type=e.type||/\.css/.test(e.url)?r:o;var a=null,s=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0];if(e.type===r){var u=document.createElement("link");u.type=r,u.rel="stylesheet",u.href=e.url,Oa(u,e.url),a=u}else{if(ft())return(i=document.createElement("script")).addEventListener("load",function(){t(),ea(i)}),i.type=o,i.src=K(E).createScriptURL(e.url),Oa(i,e.url),document.body.appendChild(i),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=K(E).createScriptURL(e.url),Oa(i,e.url),a=i,t=_.wrap(t,function(e,t){k.removeNode(i),t?n&&e(t):e.apply(this,_.toArray(arguments).slice(1))})}return s.appendChild(a),Pa(a,e.url,t),a}catch(c){return{}}var d},Pa=function(e,t,n){var i=!1;me(n)&&(e.onload=function(){!0!==i&&(i=!0,n(null,t))},e.onerror=function(){!0!==i&&(i=!0,n(new Error("Failed to load script"),t))},e.onreadystatechange=function(){i||e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(i=!0,n(null,t))},"link"===e.tagName.toLowerCase())&&(Ut(function(){var e;i||((e=new Image).onload=e.onerror=function(){!0!==i&&(i=!0,n(null,t))},e.src=t)},500),Ut(function(){i||No("Failed to load "+t+" within 10 seconds")},1e4))},Fa=function(e){var t=JSON.parse(e.data),n=e.origin;C.debug(E.app_name+": Message: "+JSON.stringify(t)+" from "+n),Xa(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},Da=function(e){Ga(Ha)(Ua(e))},Ua=function(e){if(e.data)try{var t="string"==typeof e.data?JSON.parse(e.data):e.data,n=e.origin,i=e.source;if(!t.action&&!t.mutation){if(t.type&&"string"==typeof t.type)return{data:t,origin:n,source:i};C.debug("Invalid Message: Missing 'type' in data format")}}catch(r){}};function Ga(t){return function(e){if(e&&Aa(e.origin))return t.apply(this,arguments)}}var Ba={disconnect(e){},module:function(e){Za(e.moduleURL)},debug:function(e){es(Fa)}},za=function(e,t){Ba[e]=t},ja=function(e){delete Ba[e]},Ha=function(e){var t;e&&(t=e.data)&&me(Ba[t.type])&&Ba[t.type](t,e)},qa={},Wa=function(e){if(qa[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},Va=function(e){return me(qa[e])},Ja=function(e){if(qa)for(var t in qa)if(0<=t.indexOf(e))return t;return null},$a=[],Ka=function(){var e;$a.length<1||(e=$a.shift(),Va(e))||La(e,function(){Wa(e),Ka()})};var Za=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 ei(e);return Aa(n.origin)&&t[n.pathname]}catch(i){C.debug("Invalid module URL: "+e)}}(e)||($a.push(e),1<$a.length)||Ka()},Xa=function(e,t,n){var i,r=_.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Na||Qa(),n="*"),t.guid=r,e&&_.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";C.info("Failed to postMessage: "+t)}return r},Ya=function(){return window!=window.top},Qa=function(){return new RegExp("^"+Tt(ro).replace(/^https?:/,"https?:")).test(location.href)?window.parent:window.top},es=function(e){var t;return me(window.addEventListener)&&_.isFunction(window.addEventListener)&&(t=Ga(e),window.addEventListener("message",t,!1)),function(){me(window.removeEventListener)&&_.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},ts=_.memoize(function(){return b.get("restrictP1Access")}),ns=[],is=[],rs=[],os=12e4,as=16,ss=1900,us=65536,ds=function(e){return!(!e||""===e)},cs=function(){return A.get()},ls={flush:_.noop,flushBy:_.noop,flushEvents:gs,flushTrackEvents:gs,flushAgenticEvents:gs,flushSilos:gs,flushTrackEventSilos:gs,flushAgenticEventSilos:gs,flushBeacons:gs,flushNow:gs,flushLater:ms,flushEvery:vs,flushStop:ys,beacons:[],silos:[],trackEventSilos:[],agenticEventSilos:[],lock:Go,unlock:function(){if(!Bo())return bs(),function(){var e=!Bo();return Uo=!1,e&&v["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."}()}},ps=[];function hs(e){ps.push(e)}function fs(e){e=ps.indexOf(e);0<=e&&ps.splice(e,1)}function gs(e,t){try{_.each(ps,function(e){e.flush&&e.flush(t)})}catch(n){C.critical("unhandled error while flushing event cache",{error:n})}}function ms(e){return t=_.partial(gs,!0),n=e,n=parseInt(n,10)||0,t[n]||(i=Ut(function(){t(),t[n]()},n),t[n]=function(){window.clearTimeout(i),delete t[n]});var t,n,i}function vs(e){var t;if(e=parseInt(e,10)||0,_.isObject(vs.intervals)||(vs.intervals={}),!vs.intervals[e])return t=window.setInterval(gs,e),vs.intervals[e]=function(){clearInterval(t),delete vs.intervals[e]}}function ys(){var e=_.values(vs.intervals).concat([gs]);_.map(e,function(e){_.isFunction(e)&&e()})}function bs(){_.each(ps,function(e){e.clear&&e.clear()}),ys()}function ws(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 Ss(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(C.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(C.debug(t+"The signingKeyName is supplied but missing jwt."),!1):(e=e.jwt,!(!_.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(C.debug(t+"The jwt is invalid."),!1)):(C.debug(t+"Missing jwt and signingKeyName."),!1)}Es=null;var Es,Is={set:function(e){Es=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==Es?Es:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!b.get("enableSignedMetadata")&&(n=Ss(e,t),b.get("requireSignedMetadata")&&!n?(C.debug("Pendo will not "+t+"."),!1):n?ws(e.jwt):void C.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class _s{constructor(e,t=100){this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}isEmpty(){return this.queue.length<=0}stop(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer}start(){this.stopped=!1}push(...e){this.queue.push(...e),this.next()}next(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)}incrementFailure(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t}pass(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()}fail(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,6))))}retryLater(e){this.timer=Ut(()=>{delete this.timer,this.next()},e)}failed(){return 0<this.failures.get(this.queue[0])&&null!=this.timer}send(e,t,n){return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(()=>this.pass(e,n),()=>this.fail(e,n))}drain(e,t=!0){if(this.queue.push(...e),this.failed())return rn.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 rn.all(n)}}const Cs="unsentEvents";class xs{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(Cs);try{this.events=JSON.parse(e.read(Cs)||"{}"),e.clear(Cs)}catch(t){this.events={}}}write(e){0<_.size(this.events)?e.write(Cs,JSON.stringify(this.events),5184e5):e.clear(Cs)}}var Ts=new xs;const ks="agent-guideloop-timeout",As={};As[ks]={displayName:"Guide Loop Timeouts",name:ks,instrument:e=>e&&e instanceof Array?_.reduce(e,(e,t)=>{return e+(t.detail&&t.detail.incr?t.detail.incr:1)},0):0};class Rs{constructor(){this._isPerformanceApiAvailable=this._checkPerformanceApi(),this._measuringPerformance=!1,this.marks=new Set,this.measures=new Set}initialize(){return this._measuringPerformance=!0,this._markPerformance("initialize"),this.interval=setInterval(()=>{this.send()},6e5),()=>{this.teardown()}}teardown(){this._measuringPerformance=!1,this._clearMarksAndMeasures(),clearInterval(this.interval)}startTimer(e){this._markPerformance(e+"-start")}stopTimer(e){this._markPerformance(e+"-stop"),this._measurePerformance(e)}count(e,t=1){this._markPerformance(e,{detail:{type:"count",incr:t}})}send(){var e=_.reduce(_.keys(As),(e,t)=>{var n=performance.getEntriesByName(t),n=As[t].instrument(n);return e.push({name:t,value:n}),e},[]),e=_.filter(e,e=>0<e.value);this._clearMarksAndMeasures(),_.size(e)&&Lo(e)}_checkPerformanceApi(){return b.get("performanceMetricsEnabled")&&Ie("performance.mark")&&Ie("performance.measure")&&Ie("performance.getEntries")&&Ie("performance.getEntriesByName")&&Ie("performance.clearMarks")&&Ie("performance.clearMeasures")}_shouldMeasurePerformance(){return this._isPerformanceApiAvailable&&this._measuringPerformance}_markPerformance(e,t){this._shouldMeasurePerformance()&&(e="pendo-"+e,performance.mark(e),this.marks.add(e))}_measurePerformance(e){var t,n;this._shouldMeasurePerformance()&&(t=(e="pendo-"+e)+"-start",n=e+"-stop",performance.getEntriesByName(t).length)&&performance.getEntriesByName(n).length&&(performance.measure(e,t,n),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 Os=new Rs;var Ns="_PENDO_UNNAMED_",Ms=5;function Ls(e,t,n,i,r,o){var a,s;a=b.get("dropAnonymous"),s=Pn(y()),!Ao||a&&s||(a=t,s=n,t=i,n=r,r=o,s={type:o=e,browser_time:S(),visitor_id:y({generate:!0}),account_id:$n(),url:A.externalizeURL(s),props:a||{},eventProperties:n},s=gn.addTracerIds(s),"track"===o&&(s.track_event_name=t||Ns),v.eventCaptured.trigger(s,r),ds((a=s).url)&&function(e){if(b.get("freeNPSData"))return _.contains(Ps,e.type);return 1}(a)&&("track"===e?Ks:"agentic"===i?Zs:$s).push(a))}var Ps=["load","meta","identify"];function Fs(){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 Ds=0;function Us(e,t){e.sequence=Ds++,t(e)}function Gs(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 Bs(e,t){return fo()?zs("account_id")(e,t):t(e)}function zs(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 js(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function Hs(e,t,n){t=n[t-1]||_.last(n);return Math.ceil(e/t)}function qs(e,t){for(var n,i=0,r=(_.isFunction(t.overhead)?t.overhead:_.constant(0))(),o=0;o<e.length;++o){if(Hs(n=js(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(Hs(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(Hs(i+(n=js(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function Ws(){var e=Is.get();return _.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var Vs,Js,$s,Ks,Zs,Xs;function Ys(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=E.squeezeAndCompress(e.slice()),e.JZB.length<=us)||1===e.length?t(e):(n=e.length/2,Ys(e.slice(0,n),t),void Ys(e.slice(n),t))}function Qs(e,t){Bo()&&t(e)}function eu(){return function(e,t){1===e.length&&e.JZB.length>us?(C.debug("Couldn't write event"),No("Single item is: "+e.JZB.length+". Dropping."),Mo(e.JZB)):t(e)}}function tu(e,t){return Ro(t.beacon+".gif",e,_.extend({v:Xe,ct:S(),jzb:t.JZB},t.params,t.auth))}function nu(e,t){return Ro(t.beacon+".gif",e,_.extend({v:Xe,ct:S(),s:t.JZB.length},t.params))}function iu(i){return function(e,t){e.params=_.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=Is.get();_.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function ru(e,t){var n=fo(),i=_.first(e),i=_.get(i,"account_id");n&&i&&(e.params=_.extend({},e.params,{acc:dt(i)})),t(e)}function ou(e,t){var n=_.first(e),n=_.get(n,"props.source");n&&(e.params=_.extend({},e.params,{source:n})),t(e)}function au(e){return JSON.stringify(_.extend({events:e.JZB},e.auth))}function su(e){return e.status<200||300<=e.status?m.reject(new Error(`received status code ${e.status}: `+e.statusText)):m.resolve()}function uu(e,t){return Fo(tu(e,t)).then(su)}function du(e,t){return fetch(nu(e,t),{method:"POST",keepalive:!0,body:au(t),headers:{"Content-Type":"application/json"}}).then(su)}function cu(e,t){var n=au(t);return Do(nu(e,t),n)?m.resolve():m.reject()}function lu(n){return function(e,t){return t.JZB?t.eventLength<=ss&&!b.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&Fo.supported()?uu(e,t):t.auth?Lr({method:"GET",url:tu(e,t)}):Po(tu(e,t)):n.allowPost&&t.eventLength<=us?Fo.supported()?du(e,t):Do.supported()?cu(e,t):Lr({method:"POST",url:nu(e,e=t),data:au(e),headers:{"Content-Type":"application/json"}}):m.resolve():m.resolve()}}function pu(n){return function(e,t){if(t.JZB){if(t.eventLength<=ss&&!b.get("sendEventsWithPostOnly",!1)){if(!t.auth&&Fo.supported())return uu(e,t);if(ze.msie<=11)return Lr({method:"GET",url:tu(e,t),sync:!0})}if(t.eventLength<=us&&n.allowPost){if(Fo.supported())return du(e,t);if(Do.supported())return cu(e,t);if(ze.msie<=11)return Lr({method:"POST",url:nu(e,e=t),data:au(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return m.resolve()}}function hu(e,t){e.length=0;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);t(i)}function fu(e){return Fs(Qs,Bs,Ys,(t=e.shorten,t=_.defaults(t||{},{fields:[],siloMaxLength:us}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],C.debug("Max length exceeded for an event"),_.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(C.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),Ys,eu(),iu(e),ru,ou,hu);var t}class gu{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 mu(o,a,s){a=a||lu(o),s=s||pu(o);e=o;var e=_.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=_.map(e,(i,r)=>{var e=new _s(function(e,t,n){return n&&(e.params=_.extend({},e.params,{rt:n})),o.localStorageUnload&&t?(0===r&&Ts.push(o.beacon,e),m.resolve()):(t?s:a)(i,e)});return e.onTimeout=function(){Os.count(o.beacon+"-gif-failure")},e.retryPending=!0,e}),e=new gu(e);return Ts.send(o.beacon,e),e}function vu(e,t){var n=b.get("analytics.excludeEvents");0<=_.indexOf(n,e.type)||t(e)}class yu{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=mu(e)}pause(e=1e4){var t=_.uniqueId();const n=this["locks"];n[t]=1;var i=()=>{n[t]&&(v.trigger("ptm:unpaused"),clearTimeout(r),delete n[t],this.flush())},r=Ut(i,e);return v.trigger("ptm:paused"),i}push(e){this.packageSilos(e,e=>{this.silos.push(e)})}clear(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()}flush({unload:e=!1,hidden:t=!1}={}){var{cache:n,silos:i}=this;if((0!==n.length||0!==i.length||!this.sendQueue.isEmpty())&&_.isEmpty(this.locks)){i.push(n.slice()),n.length=0;n=i.slice();i.length=0;const r=[];_.each(n,function(e){this.processSilos(e,function(e){r.push(e)})},this),e||t?this.sendQueue.drain(r,e):this.sendQueue.push(...r)}}}function bu(e){var i,r,t=fu(e),n=Fs((r=e.beacon,function(e,t){var n=b.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),vu,Us,Gs(e.cache),(i={overhead:Ws,lower:b.get("sendEventsWithPostOnly")?us:ss,upper:us,compressionRatio:[.5*Ms,.75*Ms,Ms]},function(e,t){for(var n=qs(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=qs(e,i)}));return new yu(_.extend({processSilos:t,packageSilos:n},e))}var wu=Qn(function(e){var t,n,i;if((e=e||A.get())&&e!==wu.lastUrl)return wu.lastUrl=e,t=-1,ts()||Ya()&&(i=Qa(),Xa(i,{type:"load",url:location.toString()},"*")),C.debug("sending load event for url "+e),t={load_time:t="undefined"!=typeof performance&&_.isFunction(performance.getEntriesByType)&&!_.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},Ya()&&(t.is_frame=!0),"*"!==(n=kt())&&(t.allowed_storage_keys=_.keys(n)),Ls("load",t,e),ms(),v.urlChanged.trigger(),!0});function Su(e){return"hidden"===e.visibilityState}wu.reset=function(){wu.lastUrl=null};const Eu="visibilitychange",Iu="pagehide",_u="unload";function Cu(){this.serializers=_.toArray(arguments)}function xu(e,t){return e.tag=oi.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function Tu(e){return me(e)?""+e:""}function ku(e,t){return e.id=Tu(t.id),e}function Au(e,t){return e.cls=Tu(k.getClass(t)),e}_.extend(Cu.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 Ru=256,Ou=64,Nu={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 Mu=function(e,t,n){if(!e||!e.nodeName)return null;var i=e.nodeName.toLowerCase();if(("img"==i&&"src"==t||"a"==i&&"href"==t)&&Br())return i=e.getAttribute(t),eo((i=i)&&0===i.indexOf("data:")?(C.debug("Embedded data provided in URI."),i.substring(0,i.indexOf(","))):i+"");i=e,e=t;t=f.getters["nodeAttr/getAttribute"]()(i,e);return(!n||typeof t===n)&&t?_.isString(t)?it.call(t).substring(0,Ru):t:null};function Lu(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 Pu(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<=Ou?_.pluck(a,"nodeName"):(r=_.groupBy(e,function(e){return o[e.nodeName]?"defaults":_.isString(e.value)&&e.value.length>Ru?"large":"small"}),_.pluck([].concat(_.sortBy(r.defaults,"nodeName")).concat(_.sortBy(r.small,"nodeName")).concat(_.sortBy(r.large,"nodeName")).slice(0,Ou),"nodeName"))}catch(s){return C.error("Error collecting DOM Node attributes: "+s),[]}}function Fu(t,n){var e=Lu(b.get("htmlAttributes")),i=Lu(b.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=Mu(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},Pu(n.attributes,Nu[r]&&Nu[r].attr,e,i));return _.each(r,function(e){t.attrs[e.toLowerCase()]=Mu(n,e)}),t}function Du(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=_.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),e.childIndex=n.filter(function(e){return e.nodeType==mo}).indexOf(t).value()),e}function Uu(i,e){var r;return b.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(Uu),e=this.serialize(e.previousElementSibling),this.add(Uu),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 Gu=new Cu(xu,ku,Au,Fu,Du,Uu),Bu=function(e){return"BODY"===e.nodeName&&e===na()||null===e.parentNode&&!oi.isElementShadowRoot(e)},zu="pendo-ignore",ju="pendo-analytics-ignore",Hu=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=Gu.serialize(o,e)}while(r||!ht(a.cls,zu)&&!ht(a.cls,ju)||(r=!0),n.parentElem=a,n=a,(i=oi.getParent(o))&&!Bu(o));return r&&(t.parentElem.ignore=!0),t.parentElem},qu=["","left","right","middle"],t=function(e){return e},e=function(e,t){return e[t]},Wu=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return qu[t]}],["altKey",e,t,t],["ctrlKey",e,t,t],["metaKey",e,t,t],["shiftKey",e,t,t]],Vu={click:function(e,t){for(var n=[],i=0;i<Wu.length;i++){var r=Wu[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}},Ju=function(t){try{if(Os.startTimer("event-captured"),!k.data.get(t,"counted")){k.data.set(t,"counted",!0);var n=Nr(t),i=t.type,e={},r=Vu[i];if(r&&(e=r(t,e)),k.data.get(t,"stopped")&&(e.stopped=!0),t.from&&_.isString(t.from)&&(e.from=t.from),n=(s=n).nodeType===go?s.parentNode:s.nodeType===bo?null:s.correspondingUseElement||s){var o=Hu(n),a=(_.extend(o,e),wu());if(a&&A.startPoller(),!o.ignore){let e;"click"===i&&(e=function(e){e=function(e){const n={};return{getEventProperties(){return n},addEventProperty(e,t){_.isString(e)&&!_.isUndefined(t)?n[e]=t:C.error("Failed to add click event property")},target:e}}(e),v.onClickCaptured.trigger(e),e=e.getEventProperties();if(!_.isEmpty(e))return e}(n)),Ls(i,{target:o},undefined,undefined,e,t),v.trigger("appUsage",o,t)}}else C.info("Invalid HTML target",{contexts:["event","dom","processing"]})}}catch(u){C.critical("pendo.io while handling event",{error:u})}finally{Os.stopTimer("event-captured")}var s};var $u=_.debounce(Ju,5e3,!0),Ku=function(e){const t=[];_.contains(e=e||["click","focus","submit","change"],"change")&&(e=_.without(e,"change"),t.push(()=>{$u.cancel()}),t.push(Rr(document,"change",$u,!0)));var n,i=b.get("interceptElementRemoval")||b.get("syntheticClicks.elementRemoval"),r=b.get("syntheticClicks.targetChanged"),r=(t.push(function(t,e,n,i){var r,o,a=[],s=ze.hasEvent("pointerdown"),u=s?"pointerdown":"mousedown",s=s?"pointerup":"mouseup",d=[],c={cloneEvent:function(e){e=k.event.clone(e);return e.type="click",e.from=u,e.bubbles=!0,e},down:function(e){o=!1,e&&(r=c.cloneEvent(e),n)&&c.intercept(e)},up:function(e){o=!1,e&&r&&i&&Nr(r)!==Nr(e)&&ra(Nr(r))&&(o=!0,t(r))},click:function(e){r=null,o&&k.data.set(e,"ignore",!0),o=!1,n&&c.unwrap()},intercept:function(e){e=function(e){var t=[];for(;e&&!Bu(e);)t.push(e),e=e.parentNode;return t}(Nr(e));_.each(e,function(e){e=Zu(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 ey(){c.unwrap(),_.each(d,function(e){e()})}};e&&(d.push(Rr(document,u,c.down,!0)),d.push(Rr(document,s,c.up,!0)),d.push(Rr(document,"click",c.click,!0)));return c}(k.event.trigger,ze.addEventListener,i,r).teardown),t.push((i=e,n=_.map(i,function(e){return l(document,e,Ju,!0)}),()=>{_.each(n,function(e){e()})})),t.push(function(e,t){if(t){const n=[];return n.push(Rr(document,Eu,()=>{Su(document)&&e(!0,!1)})),n.push(Rr(window,Iu,_.partial(e,!1,!0))),()=>_.each(n,function(e){e()})}return Rr(window,_u,_.partial(e,!0,!0))}(function(e,t){t&&v.appUnloaded.trigger(),e&&v.appHidden.trigger()},b.get("preventUnloadListener"))),b.get("interceptStopPropagation",!0)),i=b.get("interceptPreventDefault",!0);return r&&t.push(Xu(window.Event,e)),i&&t.push(Yu(window.Event,["touchend"])),()=>{_.each(t,function(e){e()})}};function Zu(n,i){var e=["remove","removeChild"];try{if(!n)return _.noop;_.each(e,function(e){var t=n[e];if(!t)return _.noop;n[e]=_.wrap(t,function(e){return i&&i(),e.apply(this,_.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return _.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){C.critical("ERROR in interceptRemove",{error:t})}return function(){_.each(e,function(e){if(!n[e])return _.noop;e=n[e]._pendoUnwrap;_.isFunction(e)&&e()})}}function Xu(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return _.noop;var i=_.indexBy(e);_.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=_.wrap(t,function(e){var t=e.apply(this,arguments);return i[this.type]&&(k.data.set(this,"stopped",!0),k.event.trigger(this)),t}),n.prototype[e]._pendoUnwrap=function(){n.prototype[e]=t,delete n.prototype[e]._pendoUnwrap})})}catch(r){C.critical("ERROR in interceptStopPropagation",{error:r})}return function(){_.each(t,function(e){e=n.prototype[e]._pendoUnwrap;_.isFunction(e)&&e()})}}function Yu(t,e){try{if(!t||!t.prototype)return _.noop;var i=_.indexBy(e),n=t.prototype.preventDefault;if(!n)return _.noop;t.prototype.preventDefault=_.wrap(n,function(e){var t,n=e.apply(this,arguments);return i[this.type]&&((t=k.event.clone(this)).type="click",t.from=this.type,t.bubbles=!0,t.eventPhase=kr,k.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){C.critical("ERROR in interceptPreventDefault",{error:r})}return function(){var e=t.prototype.preventDefault._pendoUnwrap;_.isFunction(e)&&e()}}function l(e,t,n,i){return e&&t&&n?(i&&!ze.addEventListener&&(i=!1),k.event.add(e,{type:t,handler:n,capture:i})):_.noop}function Qu(e,t,n,i){e&&t&&n&&(i&&!ze.addEventListener&&(i=!1),k.event.remove(e,t,n,i))}var ed=function(e){k.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},td=function(e,t){return"complete"!==(t=t||window).document.readyState?Rr(t,"load",e):(e(),_.noop)};function nd(){return E.normalizedUrl||function(e){try{var t=new ei(e),n=_.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return C.error("Invalid URL provided to normalize"),e}}(A.externalizeURL())}function id(t,e,n={}){if(!me(t))return!0;var i=e||nd(),{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(me(s))try{if(new RegExp(s).test(i))return!0}catch(u){r&&o&&a&&r.error(`Invalid page rule regex for ${o} (rule ${e}):`,a,u)}}}else if("string"==typeof t)try{return new RegExp(t).test(i)}catch(u){r&&o&&a&&r.error(`Invalid page rule regex for ${o}:`,a,u)}return!1}function rd(e,t){return id(e,t,{logger:C,context:"guide",id:"unknown"})}var O=[],od=[],ad={};let sd={};function ud(){return O}function dd(){return cd(O)}function cd(e){return _.filter(e,function(e){return!e.isFrameProxy})}function ld(e){_.isArray(e)?(O=e,v.guideListChanged.trigger({guideIds:_.pluck(e,"id")})):C.info("bad guide array input to `setActiveGuides`")}var pd=function(){let n=[];return{addGuide:e=>{var t;_.isEmpty(e)||(n=n.concat(e),_.each(n,e=>e.hide&&e.hide()),e=O,(t=_.difference(e,n)).length<e.length&&(ld(t),f.dispatch("frames/changeGuideList",t)))}}}();function hd(t,n){return _.find(md(),function(e){return _.get(e,t)===n})||null}function N(e){return hd("id",e)}function fd(e){return hd("name",e)}function gd(e,t){return e&&e.id?(e=N(e.id)).findStepById(t):null}function md(){var e=_.values(sd);return e.length?O.concat(_.flatten(e)):O}var vd="_pendo-guide-tt_",yd="_pendo-guide-mobile-tt_",bd=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},wd=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},Sd=function(e){return!!_.get(e,"attributes.form")};function Ed(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function Id(){return!!(Ed()&&Zo().width<=320)||ze.isMobileUserAgent()}function _d(e=document){var t=_d.attachPoint;if(null==t){var n=b.get("guides.attachPoint");if(_.isString(n)){try{t=Cr(n)[0]}catch(i){C.info('Error finding guide attach point "'+n+'"')}t=t||document.createElement("div")}else t=!!_.isFunction(n)&&n();_d.attachPoint=t}return t||na(e)}var Cd=function(e){var t=ad[e.guideId];if(t){t=t.element();if(ra(t)&&t.id==="_pendo-badge_"+e.id)return t}},xd=function(e,t){var n;return e?(n=e.getGuide(),n="building-block"===_.get(n,"attributes.type")||!wd(n),!e.overrideElement&&n&&(e.overrideElement=Cd(e)),e.targetElement=Td(e,t),e.overrideElement||e.targetElement):(C.info("Can't get element for null step"),null)},Td=function(e,t){e=e.elementPathRule||null,e=e?Cr(e,t):[na(t)];return 0===e.length?null:_.first(e)};function kd(e){var t=_.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function Ad(e,t,n){var i,r,o,e=Qo(e),t=Qo(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!==Xo(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([ca.X,ca.BOTH],i)&&(r.x=0);_.contains([ca.Y,ca.BOTH],i)&&(r.y=0);return r}(a,Zo(),n,da(na(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function Rd(e,t,n,i,r){var o,a=_.toArray(arguments).slice(1),s=e.apply(this,a);return n||ha(o=_d())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function Od(){return f.getters["frames/isLeader"]()}function Nd(e){return f.dispatch("frames/updateFrameVisibility",{visibility:e})}const Md={validateGuide:1,validateLauncher:1,validateGlobalScript:1},Ld={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1},Pd={ready:1},Fd=["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"];function Dd(i){const e=_.reduce(Fd,function(e,r){if(Ld[r]){const t=function(e){return Gd[r].apply(Gd[r],e.data)};i[r].on(t),e.push(()=>i[r].off(t))}if(Pd[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())}Ud=wn.call({}),_.each(Fd,function(n){Ud[n]=function(e){var t;return _.isFunction(e)?Ud.on(n,e):(t=Md[n]?"triggerAsync":"trigger",Ud[t].apply(Ud,[n].concat(_.toArray(arguments))))}});var Ud,Gd=Ud;var Bd={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 zd(e){e=Ra(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}Hd=Jd={failed:{},verified:{}},Wd=Mo,Vd=function(e){try{var t=[];return!Bd.usesXhr()&&e.domJsonpUrl?t.push(Zd(e,"domJsonpUrl")):Bd.usesXhr()&&e.domUrl&&t.push(Kd(e,"domUrl")),e.contentUrlJs?t.push(Zd(e,"contentUrlJs")):e.contentUrl&&t.push(Zd(e,"contentUrl")),m.all(t)}catch(n){throw v.contentVerificationFail.trigger(e,n),n}},qd=function(e){return Vd(e).then(_.noop,function(e){return/verify/.test(e)&&Wd(e),m.reject(e)})},jd=function(t){return Hd.failed[t.id]?m.reject():Hd.verified[t.id]?m.resolve():qd(t).then(function(){Hd.verified[t.id]=!0},function(e){return Hd.failed[t.id]=!0,m.reject(e)})};var jd,Hd,qd,Wd,Vd,Jd,$d={verify:function(e){return b.get("guideValidation")?jd(e):m.resolve()},reset:function(){Jd.failed={},Jd.verified={}}};function Kd(e,t){var n,i=e[t];return _.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||zd(e[t]),Lr.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=V.create()).update(e),c.uint8ToBase64(t.digest())!==n)return m.reject('Unable to verify content at "'+i+'"')})):m.reject('unable to parse "'+i+'"')}function Zd(e,t){var n=e[t];return ze.sri&&/[?&]sha(256|384|512)=/.test(n)?m.resolve():Kd(e,t)}Xd="allow",Yd="deny",Qd="pending",tc=function(){return 0<_.size(Gd._handlers.validateGuide)},nc=function(e,n){var i=[];return _.each(e,function(e,t){n&&(t=n+"."+t),_.isObject(e)?_.each(nc(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var Xd,Yd,Qd,ec,tc,nc,ic={state:ec={},Step:function(e){var n=this;function i(e){return _.filter([["content",zd(e.contentUrl)],["contentCss",zd(e.contentUrlCss)],["contentJs",zd(e.contentUrlJs)],["dom",zd(e.domUrl)],["domJsonp",zd(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=nc(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(Gd._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-"+ct(n.signature()),(t=ec[t])!==Yd)&&(t!==Xd?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+ct(t),Gd.validateLauncher(t).then(function(){ec[e]=Xd},function(){ec[e]=Yd}).then(function(){i=!1,n.render(),n.update(O)},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=nc(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(!tc())return m.resolve();try{return _.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=P.findResourceCenterModules(t,O),t=[t].concat(n),m.all(_.map(t,rc))):rc(e)}catch(i){throw v.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!tc()||!!(e=ec[e.guideId])&&e.status===Xd},invalid:function(e){return!!tc()&&!!(e=ec[e.guideId])&&e.status===Yd},reset(){ec={}}};function rc(i){var r=ec[i.id];return r||(r={},ec[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+ct(e),n=(r[t]||(r[t]={status:Qd},r.status=Qd),r[t].promise);return n||(n=Gd.validateGuide(e,i).then(function(){r[t].status=Xd,r.status=Xd},function(e){return r[t].status=Yd,r.status=Yd,m.reject(e)}),r[t].promise=n),n})}function oc(e,t){var n=_.toArray(arguments).slice(2);return _.reduce(e,function(e,t){return t.apply(e,n)},t)}function ac(e){return _.isFunction(e.before)?e:oc(ac.behaviors,e)}function sc(e,t){return oc(sc.behaviors,e,t)}function uc(e){var t,n,i=b.getLocalConfig("contentHost");return i&&e?(t=new RegExp(`(https:)?\\/\\/${Ve}-\\d+\\.storage\\.googleapis\\.com`,"g"),n=new RegExp(`(https:)?\\/\\/${We}\\.storage\\.googleapis\\.com`,"g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+Tt($e),"g"),i)):e}function dc(e){return b.getLocalConfig("contentHost")?JSON.parse(uc(JSON.stringify(e))):e}ac.behaviors=[],sc.behaviors=[];var cc=function(){var d={},c=_.compose(function(e){var t=function(){var e=Tt(b.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&C.debug("Failed to verify URL: "+e+" vs "+t),e},uc);const u=[function(e,t,n){return e.replace(`<% if (typeof guide !== 'undefined') { %>
5
5
  var guide = pendo.findGuideById('<%= guide.id %>');
6
6
  var step = guide && guide.findStepById('<%= step.id %>');
7
7
  <% } %>`,`var guide = pendo.findGuideById('${t}');
8
- var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{var e=d[t.id];if(e&&e.language!==t.language&&delete d[t.id],!d[t.id]){var n,i=[],r={deferred:{},language:t.language},o=!1;if(d[t.id]=r,Bd.usesXhr()&&t.domUrl?(r.deferred.domJson=m.defer(),Lr.get(c(t.domUrl)).then(function(e){r.domJson=dc(e.data);var e=e.data;e=e,_.isObject(e)&&e.hasOwnProperty("type")&&e.hasOwnProperty("children")&&e.hasOwnProperty("props")?r.deferred.domJson.resolve():(C.critical(new Error("Response from the guide was not in proper JSON format")),r.deferred.domJson.reject())})["catch"](function(e){C.critical(e),v.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=La(c(t.domJsonpUrl),function(e){k.removeNode(n),e&&v.resourceFetchFail.trigger(t,e)},!0),i.push(r.deferred.domJson.promise),o=!0),t.contentUrlJs&&!f.get("preventCodeInjection")){r.deferred.content=m.defer();var a=La(c(function(e){if(ft()){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}(nt(n)));if(_.isString(n))return n+"/"+t.join("/")}return e}(t.contentUrlJs)),function(e){k.removeNode(a),e&&v.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise),t.contentUrlCss&&(r.deferred.css=m.defer(),La({url:c(t.contentUrlCss),type:"text/css"},function(){r.deferred.css.resolve()}),i.push(r.deferred.css.promise))}else if(t.contentUrl&&!f.get("preventCodeInjection")){r.deferred.content=m.defer();var s=La(function(e,t){if(!_.isString(e))return e;var n=_.indexOf(e,"?");return n<0?e+t:e.substring(0,n)+t+e.substring(n)}(c(t.contentUrl),".js"),function(e){k.removeNode(s),e&&v.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise)}else if(!o)return m.reject("fetchedDomContent is still false");r.deferred.promise=m.all(i).then(function(){return _.omit(r,"deferred")})}return d[t.id].deferred.promise}catch(u){throw v.resourceFetchFail.trigger(t,u),u}},reset:function(){d={}},guideContent:function(e,t,n,i,r){var o,a,s;_.isString(n)&&(o=n,a=e,s=t,n=_.reduce(u,(e,t)=>t(e,a,s),o),_.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?_.template(n):_.constant(n)),o=d[e+t])&&o.deferred.content&&(o.content=n,o.template=i,o.script=r,o.deferred.content.resolve())},receiveDomStructureJson:function(e,t,n){(e=d[e+t])&&e.deferred.domJson&&(e.domJson=dc(n),e.deferred.domJson.resolve())}}}(),lc=(pc.state={},pc.queue=[],pc.pending=function(){return _.reduce(pc.state,(e,t)=>e+(t.loaded?0:1),0)},pc.reset=function(){cc.reset(),pc.state={},pc.queue=[]},pc.prefetch=function(e){var t;return pc.hasContent(e)?_.get(pc.state[hc(e)],"promise"):(t=m.defer(),pc.queue.push([t,e]),t.promise)},pc.processPrefetch=function(e=10){return pc.queue.length?(e=pc.queue.splice(0,Math.max(e-pc.pending(),0)),m.all(_.map(e,t=>pc.fetchContent(t[1]).then(e=>{t[0].resolve(e)})["catch"](e=>{t[0].reject(e)})))):m.resolve()},pc.fetchContent=function(t){var e=hc(t);if(!(i=pc.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=$d.verify(o).then(function(){return i.verified=!0,cc.load(o)}).then(function(e){return i.loaded=!0,e}),pc.state[e]=i}return i.promise.then(function(e){_.extend(t,e)})},pc.hasContent=function(e){return me(e.content)||me(e.domJson)},pc);function pc(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(_.extend(i,{fetchContent:function(e=!1){return e?pc.prefetch(i):pc.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 hc(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}var fc=function(){var t=v.runtime;const r=[];function o(e,n,i,r){return _.filter(e,function(e){if(_.isFunction(e[r])){if(_.isFunction(e.test))try{return e.test(n,i,E)}catch(t){return C.critical("Error in global script test code block",{error:t}),!1}return _.isRegExp(e.regex)?e.regex.test(i.name)||e.regex.test(n.name):!0}})}function e(e,t,n="script"){var i=[];return"script"===n&&_.isFunction(e.script)&&i.push(e.script),_.size(r)&&(e=o(r,e,t,n),_.each(e,function(e){i.push(e[n])})),i}function i(n,i,r){const o=r.guide;o&&_.all(e(r,o,"beforeMount"),function(e){try{return e.call(n,i),!i.cancel}catch(t){return C.critical("Exception thrown running beforeMount for: "+JSON.stringify({guideId:o.id,stepId:r.id}),{error:t}),!1}})}var a=wn.call({}),s={beforeUnmount:{type:"trigger",fromUnmount:!1},beforeUpdate:{type:"trigger",fromUnmount:!1},updated:{type:"trigger",fromUnmount:!1},unmounted:{type:"trigger",fromUnmount:!0},advanced:{type:"trigger",fromUnmount:!0},dismissed:{type:"trigger",fromUnmount:!0},snoozed:{type:"trigger",fromUnmount:!0},hidden:{type:"trigger",fromUnmount:!0},beforeMount:{type:"triggerCancelable",fromUnmount:!1},beforeAdvance:{type:"triggerCancelable",fromUnmount:!1},beforePrevious:{type:"triggerCancelable",fromUnmount:!1},beforeDismiss:{type:"triggerCancelable",fromUnmount:!1},beforeSnooze:{type:"triggerCancelable",fromUnmount:!1}};function u(e){return s[e]}function n(e){var t,n=e.data[0];if(e.step=n,delete e.data,u(e.type))return-1<_.indexOf(["beforeUnmount","unmounted"],e.type)&&(t="active"===(t=n).seenState?"hidden":t.seenState,e.reason=t,"unmounted"===e.type)&&a.trigger(t,e),t=s[e.type].type,a[t](e.type,e),"unmounted"===e.type?a.trigger("afterUnmounted",e):"beforeMount"===e.type&&i(this,e,n),"triggerCancelable"!==t&&e.cancel&&delete e.cancel,e}function d(n){this.step=n,_.each(["read","write","clear"],function(t){this[t]=h[t],this[t+"ByGuide"]=function(){var e=_.first(arguments)+":"+_.get(n,"guide.id");return h[t].apply(this,[e].concat(_.rest(arguments)))}},this);var e=_.bind(function(e){this.step.id!==e.step.id?C.debug("aborting afterUnmounted b/c step ids don't match"):this.purge()},this);this.purge=_.partial(a.off,"afterUnmounted",e),a.on("afterUnmounted",e)}return d.prototype.on=function(e,t){var n,i;u(e)?(s[e].fromUnmount&&(t=_.once(t)),n=this.step,i=t,t=Qn(t=e=>{var t=e["step"];if(t.id===n.id)return i(e);C.debug("called guide runtime callback on wrong step")}),a.on(e,t),this.purge=_.compose(this.purge,_.partial(a.off,e,t))):C.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)},{initialize:function(){t.on(n);var e=f.get("guides.globalScripts");_.each(e,fc.addGlobalScript)},teardown:function(){t.off(n),_.each(r,fc.removeGlobalScript)},addGlobalScript:function(e){var t;e=function(t){const e=_.without(_.keys(t),"script","test","regex","beforeMount");if(e.length){const n=t.script;t.script=function(){if(_.each(e,function(e){u(e)&&this.on(e,t[e])},this),_.isFunction(n))return n.apply(this,arguments)}}return t}(e),t=e,!_.isFunction(t.script)&&!_.isFunction(t.beforeMount)||t.test&&!_.isFunction(t.test)||t.regex&&!_.isRegExp(t.regex)?C.critical("Error adding invalid GlobalScript via API"):r.push(e)},removeGlobalScript:function(e){0<=(e=_.indexOf(r,e))&&r.splice(e,1)},getContext:function(e){return new d(e)},runCustomScripts:function(i,r){_.each(e(i,r),function(e){try{var t=fc.getContext(i);e.call(t,i,r,E)}catch(n){C.critical("Exception thrown running code block for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:n})}})},handleEvent:n}}();function gc(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?_.find(e.children,gc):void 0}function mc(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=mc(e.children[n],t);if(i)return i}return!1}function vc(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=vc(e,t.children[n]);if(i)return i}}function yc(e,t,n,i=document.head){let r=document.getElementById(t);return r||((r=document.createElement("style")).setAttribute("id",t),e.get("inlineStyleNonce")&&r.setAttribute("nonce",e.get("inlineStyleNonce")),r.innerHTML=n,r=i.appendChild(r)),r}var bc={buildNodesFromTemplate:function(e,t,n,i,r){var o=i||O,a=r||E.BuildingBlockGuides.buildNodeFromJSON;switch(e){case"pendo_resource_center_module_list_item":return function(p,h,f,g){var e=p.templateChildren;return _.reduce(e,function(e,t,n){var i=P.findResourceCenterHomeView(f),r=_.find(f,function(e){return e.id===t.id});if(E.designer)r=t,i=_.find(f,function(e){return _.get(e,"attributes.resourceCenter.isTopLevel")});else{if(!r)return e;if(!r.hasResourceCenterContent)return _.each(r.children,function(e){e=N(e);e&&e.control&&e.steps[0].onControlGuide("control")}),e}var o,a,s,u=JSON.parse(JSON.stringify(p)),d=(delete u.templateChildren,u.props.id=u.props.id+"-"+n,u.props["data-pendo-module-guide-id"]=r.id,u.actions||(u.actions=[]),{action:"renderResourceCenterModule",source:u.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id}],uiMetadata:{},eventType:"click"}),d=(u.props["data-localization-direction"]&&d.parameters.push({name:"transitionDirection",type:"string",value:u.props["data-localization-direction"]}),E.designer||u.actions.push(d),_.get(i,"attributes.notificationBubble")),c=_.get(i,"attributes.notifications"),d=(d&&c&&("AnnouncementsModule"===_.get(r,"attributes.resourceCenter.moduleId")&&(o=r.id),o="chat"===_.get(r,"attributes.resourceCenter.integrationName")?"chat":o)&&(u.props["data-pendo-notification-id"]=o,c=u,r=d,d=o,o=(i=i).attributes.notifications.individualCounts[o],c=mc(c,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-row")}))&&(s=_.find(c.children,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-text")}))&&s.props&&s.props.style&&(l=parseInt(s.props.style.width,10))&&!isNaN(l)&&(a=c.children.indexOf(s),l=l-40+"px","100%"!==s.props.style.width&&(s.props.style.width=l),(l="rtl"===s.props.dir)?s.props.style["padding-left"]="40px":s.props.style["padding-right"]="40px",s.props.style["box-sizing"]="content-box",s={type:"div",children:[{type:"div",content:String(i.attributes.notifications.individualCounts[d]),props:{style:{position:"relative",top:"50%","font-weight":r["font-weight"],"font-family":r["font-family"],color:r.color}}}],props:{id:"pendo-home-view-bubble","class":"_pendo-home-view-bubble",style:Object.assign(Object.assign(Object.assign({position:"absolute","border-radius":"20px",height:"26px","line-height":"0px",padding:"0px 10px"},!l&&{right:"20px"}),l&&{left:"20px"}),{top:"50%","margin-top":"-14px","box-sizing":"content-box","background-color":r["background-color"],display:o?"block":"none"}),"aria-hidden":!0}},c.children.splice(a+1,0,s)),mc(u=Sc(u,t,u.props.id,n),function(e){e=_.get(e,"props.class");return e&&0<=e.indexOf("_pendo-resource-center-module-list-item-text-container")})),i=mc(u,function(e){e=_.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),l=mc(u,function(e){e=_.get(e,"props.id");return e&&0<=e.indexOf("pendo-home-view-bubble-"+n)});return d&&(d.props["aria-hidden"]=!0,i)&&(i.props["aria-labelledby"]=d.props.id+" "+(l&&l.props.id)),e.concat(g(u,h,f))},[])}(t,n,o,a);case"pendo_resource_center_guide_list_item":return function(o,a,s,u){var e=o.templateChildren;return _.reduce(e,function(e,t,n){var i,r=Ec(s,t);return r?(i=JSON.parse(JSON.stringify(o)),t.keywords&&(i.props["data-_pendo-text-list-item-1"]=t.keywords),delete i.templateChildren,i.props.id=i.props.id+"-"+n,i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},E.designer||i.actions.push(r),i=Sc(i,t,i.props.id,n),e.concat(u(i,a,s))):e},[])}(t,n,o,a);case"pendo_task_list":return function(e,t,n,i){var r=e.templateChildren;_.filter(r,function(e){return Ec(n,e)}).length?(e.children=_.filter(e.children,function(e){return"pendo_task_list_fallback_text"!==e.templateName}),function o(t,n){t.templateName&&(t.templateChildren=n);if(!t.children||!t.children.length)return;for(let e=0;e<t.children.length;e++)o(t.children[e],n)}(e,r)):e.children=_.filter(e.children,function(e){return"pendo_task_list_item"!==e.templateName&&"pendo_task_list_progress_bar"!==e.templateName});P.updatePseudoStyleSelectors(e);r=i(e,t,n);return[r]}(t,n,o,a);case"pendo_resource_center_onboarding_item":case"pendo_task_list_item":return function(s,u,d,c){var e=s.templateChildren;return _.reduce(e,function(e,t,n){var i,r,o,a=Ec(d,t);return a?(delete(i=JSON.parse(JSON.stringify(s))).templateChildren,i.props.id=i.props.id+"-"+n,i.props["data-pendo-show-guide-id"]=a.id,i.props["class"]+=" pendo-task-list-item",i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:a.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},E.designer||i.actions.push(r),r=a.getTotalSteps(),o=a.getSeenSteps(),a.isComplete()&&(o=r),a=parseInt(o/r*100,10),mc(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=wc(t.subtitle,{currentStep:o,totalSteps:r}):t.stepProgress="Step "+o+" of "+r,i=Sc(i,t,i.props.id,n),e.concat(c(i,u,d))):e},[])}(t,n,o,a);case"pendo_resource_center_onboarding_progress_bar":case"pendo_task_list_progress_bar":return function(e,t,n,i){var r=e.templateChildren||t.getGuide().attributes.resourceCenter.children,o=0,a=0,r=(_.forEach(r,function(e){e=Ec(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 mc(e=Sc(e=JSON.parse(JSON.stringify(e)),r),function(e){return e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-progress-bar-fill")}).props.style.width=r.totalPercentComplete,[i(e,t,n)]}(t,n,o,a);case"pendo_task_list_fallback_text":return[a(t,n,o)];case"pendo_resource_center_announcement_item":return function(l,e,n,p){e=e.getGuide().attributes.resourceCenter.children,e=_.reduce(e,function(e,t){t=Ec(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!_.every(e,function(e){e=e.steps[0];return!!lc.hasContent(e)}))return[];var t=P.getResourceCenter(),h=_.get(t,"attributes.notificationBubble");h&&(delete h.dir,"rtl"===l.props["data-localization-direction"])&&(h.dir="rtl");return _.map(e,function(e,t){var n,i,r,o,a,s,u,d="whatsnew"===_.get(e,"attributes.type"),c=JSON.parse(JSON.stringify(l));return c.props.id=c.props.id+"-"+t,c.props["data-pendo-announcement-guide-id"]=e.id,c.props["data-pendo-announcement-send-seen-event"]=!0,d?(t=c,d=h,s=p,n=ac(r=e),(u=n.steps[0]).render(),fc.runCustomScripts(u,n),i=(n=u.guideElement)[0].id,yc(f,"pendo-whats-new-style-"+i,"#"+i+" h1::after { display:none; }",n[0]),d&&((o=Ic(d)).props.style.top="20px"),!P.hasAnnouncementBeenSeen(r)&&o&&(t.props["class"]+=" pendo-unseen-announcement",t.children=[o]),i=s(t,u),n.appendTo(i),i):(d=c,r=h,o=p,u=ac(t=e),s=t.steps[0],fc.runCustomScripts(s,u),u=JSON.parse(JSON.stringify(s.domJson)),d.children=[u],r&&(a=Ic(r),u=mc(d,function(e){return"pendo-guide-container"===e.props.id}),r=parseInt(d.props.style["padding-top"],10),u=parseInt(u.props.style["padding-top"],10),a.props.style.top=u+r+5+"px"),!P.hasAnnouncementBeenSeen(t)&&a&&(d.props["class"]+=" pendo-unseen-announcement",d.children.unshift(a)),delete d.templateName,(u=vc("pendo-guide-container",d))&&(u.props.id=u.props.id+"-"+s.id),o(d,s))})}(t,n,o,a);case"pendo_guide_data_text_block":return function(e,t,n,i){var r=t.getGuide?t.getGuide():_.find(n,function(e){return e.id===t.guideId}),o=_.get(r,"attributes.dates."+r.language,!1);o=o?{showsAfter:o}:(o=_.get(r,"currentFirstEligibleToBeSeenAt")||_.get(r,"showsAfter")||_.get(r,"publishedAt"),o=o?new Date(o):new Date,r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][o.getMonth()]+" "+o.getDate()+", "+o.getFullYear(),{showsAfter:r});return r=Sc(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:Ic,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return _.reduce(e,function(e,t,n){t=Ec(i,t);return t&&e.push(t),e},[])}};function wc(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 Sc(e,t,n,i){if(e.content&&(e.content=wc(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?wc(e.props["aria-label"],t):""),e.props.id)&&i!==undefined&&e.props.id!==n&&(e.props.id=e.props.id+"-"+i),e.children)for(var r=0;r<e.children.length;r++)Sc(e.children[r],t,n,i);return e}function Ec(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 Ic(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 _c={buildSvgNode:function(e,t){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return Cc(t)}},createProgressCircleSvg:Cc};function Cc(e){var t,n,i,r,o,a,s;return _e(9)?(n=(t=(t=e).svgAttributes).fillCircle.stroke,i=t.backgroundCircle.stroke,t=100<=(t.fillCircle.percentComplete||0),r=k(K(E).createHTML('<div aria-hidden="true" focusable="false" class="pendo-progress-circle-ie"><div class="pendo-progress-circle-fill"></div></div>')),o=r.find(".pendo-progress-circle-fill"),t?o.css({border:"3px solid "+n,height:"10px",width:"10px"}):o.css({border:"3px solid "+i,height:"10px",width:"10px"}),r):100<=((t=e.svgAttributes).fillCircle.percentComplete||0)?(n=(n=t).fillCircle.stroke,(i=k(K(E).createHTML('<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" class="pendo-progress-circle-fill" viewBox="0 0 24 24" fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>')))[0].setAttributeNS(null,"stroke",n),i):(r=(o=t).fillCircle.stroke,e=o.backgroundCircle.stroke,o=o.fillCircle.percentComplete||0,a='<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" version="1.1" viewBox="0 0 40 40" preserveAspectRatio="xMidYMid"><circle class="pendo-progress-circle-background" cx="20" cy="20" r="'+(a=100/(2*Math.PI))+'" stroke-width="6px" stroke-linecap="round" fill="none"></circle><circle class="pendo-progress-circle-fill" cx="20" cy="20" r="'+a+'" stroke-width="6px" stroke-linecap="round" transform="rotate(-90 20 20)" fill="none"></circle></svg>',s=(a=k(K(E).createHTML(a))).find(".pendo-progress-circle-fill")[0],a.find(".pendo-progress-circle-background")[0].setAttributeNS(null,"stroke",e),o<=0?s.setAttributeNS(null,"stroke-width","0px"):(s.setAttributeNS(null,"stroke",r),s.setAttributeNS(null,"stroke-dasharray",o+", 100")),a)}var xc=function(e,t){return e<t},Tc=_.negate(xc);function kc(){var e=na();return Co(e)?oa(e):((e=Zo()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function Ac(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 Rc(e){var t;if(e&&e.length)return t=Co(na())?oa:ko,(e=_.reduce(e,function(n,e){var i;return ya(e)?(i=t(e))?(_.each([["top",xc],["right",Tc],["bottom",Tc],["left",xc]],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 Oc(e,t){var n=kc(),e=Rc(e)||{top:0,left:0,right:n.width,bottom:n.height,width:0,height:0};return{viewport:n,box:e,overlays:Ac(n,e,t)}}function Nc(e){var t=[],n=_.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==na()){t.push(e.element);for(var i=n.additionalElements.replace(/\s/g,"").split(","),r=0;r<n.additionalElements.length;r++)try{var o=k(i[r]);o&&_.each(o,function(e){t.push(e)})}catch(a){C.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var Mc=null,Lc=function(e){var t=!_.isEqual(e,Mc);return Mc=e,t},Pc=null,Fc=function(e){var t=!_.isEqual(e,Pc);return Pc=e,t},Dc=null,Uc=function(e){var t=!_.isEqual(e,Dc);return Dc=e,t},Gc=function(e){return Fc(e.viewport)||Lc(e.box)||Uc(e.overlays)};function Bc(e){try{var t=Oc(Nc(e),_.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));Gc(t)&&_.each(e.backdrop.children,function(n){var e=n.getAttribute("pendo-region"),e=t.overlays[e];_.each(e,function(e,t){n.style[t]=e+"px"})})}catch(n){C.info("Failed to update BlockOut ui",{contexts:["error"]})}}function zc(e){try{var t,n,i,r;if(!(0<k("._pendo-guide-backdrop_").length))return t=Oc(Nc(e),_.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),Gc(t),n={"z-index":1e4,position:"fixed"},i=[],_.each(t.overlays,function(e,t){t=function(e,t){var n=k("div.pendo-backdrop-region-"+e);n.length||(n=k(document.createElement("div")).addClass("pendo-backdrop-region-"+e));return k(n).css(t).attr("pendo-region",e),n}(t,_.extend({},e,n));i.push(t)}),o=i,a=vc("pendo-backdrop",e.domJson),_.each(["left","right","width","height","bottom","top"],function(e){delete a.props.style[e]}),s=k(document.createElement("div")).attr("id","pendo-backdrop").addClass("_pendo-guide-backdrop_"),_.each(a.props,function(n,i){_.each(o,function(e,t){"style"===i?e.css(a.props.style):"class"===i?e.addClass(n):"id"===i?e.attr(i,n+"-"+t):e.attr(i,n),s.append(e)})}),r=s,e.backdrop=r[0],r}catch(u){C.info("Failed to add BlockOut ui",{contexts:["error"]})}var o,a,s}var jc="top",Hc="bottom",qc="left",Wc="right",Vc="center";function Jc(e,t,n){return n===Wc||n===qc?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?Vc:n<e/2?Wc:qc)}const $c={DEFAULT_CARET_OFFSET:10,BOUNDARY_MARGIN_RIGHT:.98,BOUNDARY_MARGIN_LEFT:.02,Z_INDEX:{DEFAULT:"300000",CARET:11,BORDER_CARET:10}};var Kc={createBBTooltip:Xc,getBBTooltipDimensions:tl,determineBBHorizontalBias:Jc,determineTooltipPosition:nl,positionBBTooltipWithBias:il,calculateToolTipPositionForTopBottom:rl,calculateToolTipPositionForLeftRight:sl,buildTooltipCaret:ul,styleTopOrBottomCaret:cl,styleLeftOrRightCaret:ll,buildBorderCaret:pl,determineBorderCaretColor:fl,placeBBTooltip:function(e,t){var n,i,r,o,a,s,t=t||gl(e);t&&(r=t.ownerDocument||document,n=r.defaultView||window,r=e.element||xd(e,r),i=Qo(r,n),"none"!==R(e.elements[0]).display)&&(r=ko(r),s=e.attributes.layoutDir,e=e.guideElement,o=k(t).find("#pendo-guide-container"),a=o[0].style,t=R(t),t={height:parseInt(t.height,10),width:parseInt(t.width,10)},o={height:parseInt(o[0].getAttribute("data-caret-height"),10)||0,width:parseInt(o[0].getAttribute("data-caret-width"),10)||0,backgroundColor:o[0].style["background-color"],offset:$c.DEFAULT_CARET_OFFSET,borderColor:a.borderColor,borderWidth:parseInt(a.borderWidth,10)||0},a=this.getBBTooltipDimensions(i,t,o,s,r,Zo(n)),o.height&&o.width&&(t=e.find(".pendo-tooltip-caret")[0],s=e.find(".pendo-tooltip-caret-border")[0],t&&dl(t,a,o,i),s)&&hl(s,o,a.layoutDir,t),e.css({top:a.top,left:a.left,position:i.fixed?"fixed":"absolute"}))},attachBBAdvanceActions:el,attachScrollHandlers:Yc,isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!_.isObject(e.domJson)||!(e=gc(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForTooltip:function(e,t,n){Xc(t,e.element,e,n),e.hasBeenScrolledTo||(wa(e.element),Ad(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)},patchGuideContainerWidthForResponsiveTooltips:function(e,t,n){t=t||gl(e);var i,r,o,a,s,u;t&&(i=e.element||xd(e,t.ownerDocument||document))&&(o=t.style.width)&&-1!==o.indexOf("vw")&&(o=Zc(e,i,n,t))&&(e=t,{elementPos:i,tooltipSizes:n,screenDimensions:t,caretDimensions:o,elementIsNotVisible:r}=i=o,o=parseInt(o.width,10)||0,a=parseInt(e.style.maxWidth,10),s=parseInt(e.style.minWidth,10),u=parseFloat(e.style.width)/100,r?n.width-=o:"left"===n.layoutDir?(r=i.left-o,n.width=Math.max(0,r*u)):"right"===n.layoutDir&&(r=t.width-i.right-o,n.width=Math.max(0,r*u)),a&&n.width>a&&(n.width=a),s&&n.width<s&&(n.width=s),e.style.width=n.width+"px")}};function Zc(e,t,n,i){var r,o,a,s,u,d=(t.ownerDocument||document).defaultView||window,c=Qo(t,d),t=ko(t),d=Zo(d),l=e.attributes.layoutDir||"auto";return(0!==c.height||0!==c.width)&&(r=e&&!e.elementPathRule,n=mc(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,backgroundColor:n.props.style["background-color"],offset:$c.DEFAULT_CARET_OFFSET,borderWidth:0},a=null,s=_.get(n,"props.style.border"),u=_.get(n,"darkModeProps.style.border"),e&&e.isDarkMode&&u?a=u:s&&(a=s),a&&(e=a.split(" "),o.borderColor=e[2],o.borderWidth=parseInt(e[0],10)||0),{elementPos:c,screenPos:t,screenDimensions:d,caretDimensions:o,tooltipSizes:{width:i.offsetWidth,height:i.offsetHeight,layoutDir:l},containerDomJson:n,elementIsNotVisible:r}):null}function Xc(e,t,n,i){var r,o,a,s,u;if(n.guideElement)return(t=Zc(n,t,e,i))?({elementPos:e,tooltipSizes:a,screenPos:u,caretDimensions:r}=t,(o=n.guideElement).addClass(Id()?yd:vd),el(n),a=tl(e,{height:a.height,width:a.width},r,n.attributes.layoutDir,u,t.screenDimensions),n&&(n.dim=a),n&&_.isFunction(n.getGuide)&&(s=n.getGuide()),u=_.get(s,"attributes.resourceCenter"),e.fixed?(o.css({position:"fixed"}),i.style.position="absolute"):n&&u||(i.style.position="absolute"),r.height&&r.width&&ul(o,a,r,e),t=$c.Z_INDEX.DEFAULT,i&&i.style&&i.style["z-index"]&&(t=i.style["z-index"]),o.css({"z-index":t}),u||o.css({height:"auto",width:"auto",overflow:"visible"}),n.elementPathRule&&o.css({left:a.left,top:a.top,position:e.fixed?"fixed":"absolute"}),"top"===a.layoutDir&&a.hbias===qc&&o.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),Yc(n,ml),o[0]):null}function Yc(e,t){e&&_.isFunction(e.attachEvent)&&(Ed()&&e.element===k.getBody()||(t=_.throttle(_.bind(t,e,e),10),e.attachEvent(window,"scroll",t,!0),fa(_.bind(e.attachEvent,e),e.targetElement,t)))}function Qc(t,n){var e=k(n.elementPathRule)[0];n.attachEvent(e,t,function(e){k.data.set(e,"advanced",!0),Zg(t,n)})}function el(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?Qc("mouseover",e):e.attributes.advanceActions.elementClick&&Qc("click",e))}function tl(e,t,n,i,r,o){var a,s,i=i||"auto",t={width:Math.min(t.width,o.width),height:t.height},u=(t.layoutDir=i,t.hbias=Jc(e,o,i),t.vbias=(a=e,u=o,(s=i)===jc||s===Hc?s:(s=a.top,(u=(a=u.height)/3)<s&&s<2*u?Vc:s<a/2?Hc:jc)),t.layoutDir=nl(t,o,r,i),il(t,e,o,n));return t.top=u.top,t.left=u.left,"top"===t.layoutDir?t.top-=n.height:"bottom"===t.layoutDir?t.top+=n.height:"right"===t.layoutDir?t.left+=n.height:"left"===t.layoutDir&&(t.left-=n.height),t}function nl(e,t,n,i){var r,o,a,s,u,d,c;return i&&"auto"!==i?i:(i=n.top,o=(r=n.left)+n.width,a=n.top-e.height<0,s=n.top+n.height+e.height>t.height,u=n.left-e.width<0,d=n.left+n.width+e.width>t.width,!(s&&a&&u&&d)&&(i<t.height/3&&(c="bottom"),(i>2*t.height/3||e.hbias===Vc)&&(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!==Vc&&(c=e.hbias),u&&d||(d||(c="right"),u)||(c="left")),(c=c&&"bottom"!==c||!s||a?c:"top")||e.hbias)||"bottom")}function il(e,t,n,i){return"top"===e.layoutDir||"bottom"===e.layoutDir?rl(e,n,t,e.layoutDir,e.hbias,i):sl(e,n,t,e.vbias)}function rl(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*$c.BOUNDARY_MARGIN_RIGHT,left:i.width*$c.BOUNDARY_MARGIN_LEFT});return s.left="right"===r?function(e,t,n,i,r,o){var n=ol(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?al(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=ol(n),t=t.width;e=e.left-t+e.width/2+n;if(e<o)return r<e+t+(n=o-e)?al(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 al(e,t,n)}else if(e<r){o=(e+=r-e)+t;if(i<o)return al(e,t,n)}return e}(n,e,t,a.right,a.left),s}function ol(e){e=(parseInt(e.offset,10)||0)+(parseInt(e.width,10)||0)+(parseInt(e.borderWidth,10)||0);return isNaN(e)?0:e}function al(e,t,n){n=n.width-(e+t);return n<e?e-(e-n)/2:e<n?e+(n-e)/2:e}function sl(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 ul(e,t,n,i){var r=document.createElement("div"),i=(r.setAttribute("class","pendo-tooltip-caret pendo-tooltip-caret--"+t.layoutDir),r.style.position="absolute",r.style.zIndex=$c.Z_INDEX.CARET,dl(r,t,n,i),e.find("#pendo-guide-container")[0].parentNode);i.appendChild(r),n.borderWidth&&(e=pl(r,n,t.layoutDir),i.appendChild(e))}function dl(e,t,n,i){"top"!==t.layoutDir&&"bottom"!==t.layoutDir||cl(e,t,n,i),"left"!==t.layoutDir&&"right"!==t.layoutDir||ll(e,t,n)}function cl(e,t,n,i){e.style["border-left"]=n.width+"px solid transparent",e.style["border-right"]=n.width+"px solid transparent",e.style.right="";i=i,r=n,o=(a=t).hbias;var r,o,a,i=i&&i.left?i.left+i.width/2-a.left-r.width:"left"===o?a.width-2*r.width-r.offset-r.borderWidth:"right"===o?r.offset+r.borderWidth:a.width/2-r.width;return e.style.left=i+"px","bottom"===t.layoutDir&&(e.style["border-bottom"]=n.height+"px solid "+n.backgroundColor,e.style["border-top"]="",o=-1*n.height,n.borderWidth&&(o+=n.borderWidth),e.style.top=o+"px",e.style.bottom=""),"top"===t.layoutDir&&(e.style["border-top"]=n.height+"px solid "+n.backgroundColor,e.style["border-bottom"]="",a=-1*n.height,n.borderWidth&&(a+=n.borderWidth),e.style.bottom=a+"px",e.style.top=""),e}function ll(e,t,n){var i,r=Zo();return e.style["border-top"]=n.width+"px solid transparent",e.style["border-bottom"]=n.width+"px solid transparent",e.style.bottom="",t.vbias===jc?(i=t.height-2*n.width-n.offset-n.borderWidth,e.style.top=i+"px",t.top+=n.offset+n.width+n.borderWidth):t.vbias===Hc?(e.style.top=n.offset+n.borderWidth+"px",t.top-=n.offset+n.width+n.borderWidth,t.top+t.height>r.height&&(t.top=t.top-(t.top+t.height-r.height)),t.top=Math.max(0,t.top)):e.style.top=t.height/2-n.width+"px","left"===t.layoutDir&&(e.style["border-left"]=n.height+"px solid "+n.backgroundColor,e.style["border-right"]="",i=-1*n.height,n.borderWidth&&(i+=n.borderWidth),e.style.right=i+"px",e.style.left=""),"right"===t.layoutDir&&(e.style["border-right"]=n.height+"px solid "+n.backgroundColor,e.style["border-left"]="",r=-1*n.height,n.borderWidth&&(r+=n.borderWidth),e.style.left=r+"px",e.style.right=""),e}function pl(e,t,n){var i=e.cloneNode();return i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=$c.Z_INDEX.BORDER_CARET,hl(i,t,n,e),i}function hl(e,t,n,i){for(var r={top:"",right:"",bottom:"",left:""},o=["Top","Right","Bottom","Left"],a=0;a<o.length;a++){var s="border"+o[a]+"Width",u="border"+o[a]+"Color",d="border"+o[a]+"Style";i.style[s]?(r[s]=parseInt(i.style[s],10)+t.borderWidth+"px",r[u]=fl(i.style[u],t.borderColor),r[d]="solid"):(r[s]="",r[u]="",r[d]="")}"top"===n&&(r.left=parseInt(i.style.left,10)-t.borderWidth+"px",r.bottom=parseInt(i.style.bottom,10)-t.borderWidth+"px"),"bottom"===n&&(r.left=parseInt(i.style.left,10)-t.borderWidth+"px",r.top=parseInt(i.style.top,10)-t.borderWidth+"px"),"right"===n&&(r.top=parseInt(i.style.top,10)-t.borderWidth+"px",r.left=parseInt(i.style.left,10)-t.borderWidth+"px"),"left"===n&&(r.top=parseInt(i.style.top,10)-t.borderWidth+"px",r.right=parseInt(i.style.right,10)-t.borderWidth+"px"),_.extend(e.style,r)}function fl(e,t){return"transparent"===e?e:t}function gl(e){var t,n;if(e.guideElement)return t="pendo-resource-center-container"===e.guideElement.attr("id"),n=gc(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}function ml(e){ya(e.element)?(Kc.placeBBTooltip(e),k(e.elements[0]).css({display:"block"})):k(e.elements[0]).css({display:"none"})}function vl(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}yl(o,e),i.push(o)}}}}function yl(t,e){let n=0;var i=t.parentNode.children;for(let e=0;e<i.length;e++){var r,o=i[e];o!==t&&(r=R(o),r=parseInt(r.marginTop,10)+parseInt(r.marginBottom,10),n+=o.offsetHeight+r)}var a=e.offsetHeight,e=R(e),e=parseInt(e.paddingTop,10)+parseInt(e.paddingBottom,10),s=R(t),s=parseInt(s.marginTop,10)+parseInt(s.marginBottom,10),a=Math.max(a-e-n-s,0);0<a&&(t.style.height=a+"px")}function bl(e,t){var n,i,r,o,a,s,u,d,c,e=k("#"+e,t)[0];e&&(t=k(e),n=k(t.find("#pendo-guide-container")[0]),r="%"===(i=e.style.height)[i.length-1]?"%":"px",o=parseInt(i,10),a=e.getAttribute("data-pendo-static-height"),t.css({height:"auto"}),a||n.css({"max-height":"none"}),s=parseInt(R(e).height,10),u=Zo().height,d=parseInt(e.style.top,10),d=isNaN(d)?0:d,c=parseInt(e.style.bottom,10),(u=u-d-(c=isNaN(c)?0:c))<s&&(n.css({"max-height":u+"px",overflow:"auto"}),s=u),s!==o?(t.css({height:(d=a&&o?o:s)+r}),"Centered"!==(c=e.getAttribute("data-vertical-alignment"))&&"Left Aligned"!==c&&"Right Aligned"!==c||t.css({"margin-top":"-"+(u<s?u:d)/2+"px"})):t.css({height:i}))}function wl(e,t){e=k("#"+e,t)[0];if(e){t=e.getAttribute("data-pendo-mobile-layout");if(!t){var n=k(e),t=k(n.find("#pendo-guide-container")[0]),i=parseInt(e.style.width,10),r=(t.css({"max-width":"none"}),n.css({"margin-right":"0px"}),parseInt(R(e).width,10)),o=Zo().width-parseInt(e.style.left||0,10)-parseInt(e.style.right||0,10);if(o<r&&(t.css({"max-width":o+"px"}),r=o),!isNaN(i))switch(e.getAttribute("data-vertical-alignment")){case"Centered":case"Top Aligned":case"Bottom Aligned":var a=r/2;parseInt(n.css("margin-left"),10)!==a&&n.css({"margin-left":"-"+a+"px"});break;case"Right Aligned":case"Top Right Aligned":case"Bottom Right Aligned":a=i-r;parseInt(n.css("margin-right"),10)!==a&&n.css({"margin-right":"-"+a+"px"})}}}}function Sl(e,i){var e=_.isArray(e)?e:[e],e=_.reduce(e,function(e,t){var t=k("#"+t,i),n=t[0];return n&&!n.getAttribute("data-pendo-mobile-layout")&&(n=t.find("#pendo-guide-container")[0],e.push(n)),e},[]),t=e;(t=_.reduce(t,function(e,t){return e.concat(_.toArray(k(['[class*="_pendo-text-"]:not([class*="_pendo-resource-center-"])','.pendo-mock-flexbox-element > [class*="_pendo-button-"]',"._pendo-multi-choice-poll-select"].join(","),t)))},[]))&&t.length&&El(_.reduce(t,function(e,t){var n,t=k(t),i=Cl(t[0]),i=i.marginLeft+i.marginRight,r=_l(t);return r&&(n=r.paddingLeft+r.paddingRight,r=r.width-i-n,e.push({$blockElement:t,availableSpace:r})),e},[])),_.each(e,function(e){var t=e,t=((t=k("._pendo-open-text-poll-input",t))&&t.length&&_.each(t,function(e){var t,n=k(e),i=n.attr("data-_pendo-open-text-poll-resize-base-width"),e=(i||(i=e.style.width,n.attr("data-_pendo-open-text-poll-resize-base-width",i)),Cl(n[0])),r=e.marginLeft+e.marginRight,o=_l(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&Il(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),El({$blockElement:n,availableSpace:o}))}),e);(t=k(["._pendo-video","._pendo-image"].join(","),t))&&t.length&&_.each(t,function(e){var t=k(e),n=Cl(t[0]),i=n.width,n=n.marginLeft+n.marginRight,r=t.attr("data-_pendo-media-resize-base-width"),e=(r||(r=e.style.width,t.attr("data-_pendo-media-resize-base-width",r)),-1!==r.indexOf("%"));if(t.hasClass("_pendo-image")){var o=e&&100<parseInt(r,10),a=t.attr("data-pendo-accessible-element");if(o||!a)return void t.css({width:i});t.css({height:"auto"})}o=_l(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&Il(t,i,r,a),El({$blockElement:t,availableSpace:a}))})})}function El(e){_.isArray(e)||(e=[e]),_.each(e,function(e){e.$blockElement.css({"max-width":"none"})});var n=_.map(e,function(e){return Cl(e.$blockElement[0]).width});_.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function Il(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 _l(e){e=e.closest("._pendo-row");if(e){e=R(e[0]);if(e)return{width:parseFloat(e.width),paddingLeft:parseInt(e.paddingLeft,10),paddingRight:parseInt(e.paddingRight,10)}}}function Cl(e){e=R(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var xl,M={calculateTotalOffsetWidth:Al,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=Al(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=Al(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=Al(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return _.filter(e,kl)},getPendoVisualElements:function(e){return _.filter(e,function(e){return!kl(e)})},initializeFlexElements:function(e){var t=e.cloneNode(),n=Tl(e),i=M.getPendoInlineUIElements(e.children);if(1===n.length&&0===n[0].id.indexOf("pendo-text"))return e;for(;t.childNodes.length;)t.removeChild(t.childNodes[0]);for(var r=0;r<n.length;r++)Ol(n[r])?t.appendChild(n[r]):t.appendChild(M.wrapElementInMockFlexboxContainer(n[r],e,t));for(var o=0;o<i.length;o++)t.appendChild(i[o]);return e.parentNode.replaceChild(t,e),t},isPendoInlineUIElement:kl,setElementHorizontalAlignment:function(e,t,n){if(!(e.length<1))switch(n){case"space-between":M.spaceBetween(e,t);break;case"space-around":M.spaceAround(e,t);break;case"space-evenly":M.spaceEvenly(e,t);break;case"center":M.center(e,t);break;case"flex-start":M.flexStart(e);break;case"flex-end":M.flexEnd(e,t)}},setElementVerticalAlignment:function(e,t,n){switch(n){case"top":M.topAlignment(e);break;case"center":M.centerAlignment(e,t);break;case"bottom":M.bottomAlignment(e)}},spaceAround:function(e,t){for(var n=t/(2*e.length),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=Al(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=Al(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=Al(e,r);e[r].style.left=n+o+"px"}t.style.left=n+"px",i.style.right=n+"px"},topAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.top="0px"},centerAlignment:function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=i.offsetHeight,o=t/2,o=Math.round(o-r/2);i.style.top=o+"px"}},bottomAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.bottom="0px"},wrapElementInMockFlexboxContainer:function(e,t,n){var i=e.getAttribute("class")||"",r=-1!==i.indexOf("pendo-block-wrapper"),o=e.style&&"absolute"===e.style.position,a=_.get(e.style,"width",""),s=R(e).width,u=-1!==i.indexOf("_pendo-open-text-poll-wrapper")||-1!==i.indexOf("_pendo-image-wrapper")||-1!==i.indexOf("pendo-video-wrapper")||-1!==i.indexOf("_pendo-number-scale-poll-wrapper");r&&!u&&(a=(a?s:null)||R(e.children[0]).width);(0<=i.indexOf("_pendo-resource-center-onboarding-module-guide-complete-circle-container")||0<=i.indexOf("pendo-task-list-progress-circle"))&&(s=parseInt(R(t).width,10),d=parseInt(R(e).width,10)+parseInt(e.style.marginRight||0,10)+parseInt(e.style.marginLeft||0,10),t=(k(t).find("._pendo-simple-text").getParent()||k(n).find("._pendo-simple-text").getParent())[0],n=s-d,"border-box"!==_.get(t,"style.boxSizing")&&(n=n-parseInt(t.style.paddingLeft||0,10)-parseInt(t.style.paddingRight||0,10)),t.style.width=n.toString()+"px",t.style.maxWidth=n.toString()+"px");{var d;if(!i||i.indexOf("pendo-mock-flexbox-element")<0)return(s=M.createFlexContainer(o)).appendChild(e),-1<e.id.indexOf("pendo-text")&&"rtl"===e.dir&&(s.style.right="0px"),d=_.get(e,"children")[0],r&&d&&-1!==(d.getAttribute("class")||"").indexOf("image-preview-placeholder")&&(s.children[0].style.width=a),!r||u||e.style.width||(s.children[0].children[0].style.width=a),s}return e},getVisualElementsWrappedInFlexElements:Tl,initializeFlexRows:function(e,t,n,i=!1){{var r;i?(e.style.display="flex",e.style.flexWrap="wrap",e.style.justifyContent=t,e.style.alignItems={top:"flex-start",center:"center",bottom:"flex-end"}[n]||"flex-start"):0!==(i=function(e){return _.filter(e,function(e){e=e.getAttribute("class")||"";return e&&-1<e.indexOf("pendo-mock-flexbox-element")})}(e.children)).length&&(r=M.getRowWidth(e),i=M.wrapFlexElementsInFlexRows(i,e,r),M.formatFlexRows(i,e,t,n,r))}},getRowWidth:Rl,wrapFlexElementsInFlexRows:function(e,t,n){for(var i=n||Rl(t),r=M.createFlexRow(),o={row:r,rowWidthUsed:0},a=[o],s=0;s<e.length;s++){var u=e[s],d=ko(u)["width"],d=parseInt(d,10);o.rowWidthUsed+=d,o.rowWidthUsed>i&&0!==_.indexOf(e,u)&&(o.rowWidthUsed-=d,(r=M.createFlexRow()).appendChild(u),a.push(o={row:r,rowWidthUsed:d})),o.row.appendChild(u)}return a},formatFlexRows:function(e,t,n,i,r){for(var o=r||Rl(t),a=0;a<e.length;a++){var s=e[a],u=(t.appendChild(s.row),M.findMaxChildHeight(s.row.children,!1)),d=(s.row.style["min-height"]=u+"px",o-parseInt(s.rowWidthUsed,10));M.setElementHorizontalAlignment(s.row.children,d,n),M.setElementVerticalAlignment(s.row.children,u,i)}},isElementHiddenInGuide:Ol,flexAllThings:function(e,t){var n=null==(n=null==t?void 0:t.attributes)?void 0:n.useFlexbox,t=(null==t?void 0:t.guideElement)||document,e=k("#"+e,t)[0];e&&(Ml(e),M.flexElement(e,n))},flexElement:function(e,i){e=k("[data-pendo-display-flex]",e);_.each(e,function(e){var t=i?e:M.initializeFlexElements(e),n=e.getAttribute("data-pendo-justify-content"),e=e.getAttribute("data-row-vertical-alignment");M.initializeFlexRows(t,n,e,i)})},maintainAspectRatios:Ml};function Tl(e){return k(["._pendo-button",".pendo-block-wrapper","._pendo-multi-choice-poll-select-border","._pendo-text-subTitle","._pendo-text-paragraph","._pendo-text-title","._pendo-text-custom","._pendo-close-guide","> ._pendo-simple-text","div._pendo-resource-center-module-list-item-text-container","._pendo-resource-center-right-caret",'[id^="pendo-onboarding-guide-progress-circle"]','[id^="pendo-task-list-progress-circle"]','[id^="pendo-a11y-list-item-button-block"]',"._pendo-resource-center-onboarding-module-listed-guide-link","._pendo-home-view-bubble"].join(","),e)}function kl(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function Al(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 Rl(e){var t=ko(e)["width"],e=R(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function Ol(e){Nl(e);var t=oa(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-")&&(Nl(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function Nl(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function Ml(e){var n="data-aspect-ratio",e=k("["+n+"]",e);_.each(e,function(e){var t=e.getAttribute(n).split(":"),t=1<t.length?parseInt(t[0],10)/parseInt(t[1],10):parseFloat(t[0]);isNaN(t)||(e.style.height=e.offsetWidth/t+"px")})}function Ll(){return!E.designer&&f.get("disableGuidePseudoStyles")}function Pl(e,t,n){return e&&e.templateName?bc.buildNodesFromTemplate(e.templateName,e,t,n,Ul):"style"===e.type&&Ll()?[]:[Ul(e,t,n)]}function Fl(e,t,n,i){e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw i&&(e+=' for node type "'+i+'"'),C.info(e),new Error(e)}function Dl(n,i,r,o){var a={allow:!0,allowfullscreen:!0,alt:!0,"alt-text":!0,autofocus:!0,"class":!0,cols:!0,contenteditable:!0,dir:!0,"for":!0,frameborder:!0,href:!0,id:!0,loading:!0,name:!0,placeholder:!0,placement:!0,rows:!0,role:!0,sandbox:!0,scoped:!0,src:!0,start:!0,style:!0,tabindex:!0,target:!0,title:!0,type:!0,value:!0},s={embed:{src:!0}},u=/^data-/,d=/^aria-/,e=_.keys(n);return _.reduce(e,function(e,t){return s[o]&&s[o][t]&&Fl(t,r,i,o),a[t]||u.test(t)||d.test(t)||Fl(t,r,i),e[t]=n[t],e},{})}function Ul(n,i,e){i=i||{id:"unknown",guideId:"unknown"},n.props=Dl(n.props,i.id,i.guideId,n.type),i.isDarkMode&&n.darkModeProps&&(n.darkModeProps=Dl(n.darkModeProps,i.id,i.guideId,n.type));var r=k(document.createElement(n.type));if(document.createElement("div").appendChild(r[0]),"script"===r[0].tagName.toLowerCase())return k(document.createElement("noscript"));if("pendo-backdrop"===(n.props&&n.props.id))return i.attributes&&i.attributes.blockOutUI&&i.attributes.blockOutUI.enabled&&Kc.attachScrollHandlers(i,Bc),zc(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||f.get("preventCodeInjection")?r.attr(t,e):(t=i.getContent(),0!==it.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=f.get("inlineStyleNonce");t&&r.attr("nonce",t);let e=n.css;if(n.forDarkMode){const l=_.get(i,"attributes.darkMode.selector","");e=_.map(e,function(e){return{styles:e.styles,selector:l+" "+e.selector}})}r.styleSheet?r.styleSheet.cssText=jl(e):r.text(jl(e))}if(n.svgWidgetId&&_c.buildSvgNode(n.svgWidgetId,n).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)zl(r,n.actions[a],i),"renderGuidesListItem"===n.actions[a].action&&((o=N(n.actions[a].parameters[0]))?r.text(o.name):r.attr("style","display: none;"));if(_.find(n.actions,function(e){return"dismissGuide"===e.action})&&!i.hasEscapeListener&&(i.hasEscapeListener=!0,i.attachEvent(window,"keyup",function(e){27===e.keyCode&&i.eventRouter.eventable.trigger("pendoEvent",{step:i,action:"dismissGuide"})},!0)),n.children)for(var s=ha(_d()),u=s!==document,d=0;d<n.children.length;d++){var c=Pl(n.children[d],i,e);_.each(c,function(e){var t;e&&("STYLE"!==e[0].tagName?e.appendTo(r):u?((t=new CSSStyleSheet).replaceSync(e[0].innerHTML),(s.hasOwnProperty("wrappedJSObject")?s.wrappedJSObject:s).adoptedStyleSheets.push(t)):(k.addClass(e[0],"pendo-style-"+(i.isBadge?i.guideId:i.id)),e.appendTo(document.head)))})}return r.hasClass("pendo-code-block")?r.find("img").each(function(e){Gl(e,i)}):Gl(r[0],i),r}function Gl(e,t){var n=e.id&&-1!==e.id.indexOf("badge"),i=!!e.getAttribute("src"),r=e.className&&0<=e.className.indexOf("bb-control"),o=e.tagName&&e.tagName.toLowerCase(),a=e.className&&0<=e.className.indexOf("_pendo-video");("img"===o&&i&&!n&&!r||"iframe"===o&&t&&!a)&&"lazy"!==e.getAttribute("loading")&&(t.attributes&&!t.attributes.imgCount?t.attributes.imgCount=1:t.attributes&&t.attributes.imgCount&&t.attributes.imgCount++,Bl(k(e),t))}function Bl(e,i){e.on("load",function(){var e,t={},t=(!i.containerId&&i.domJson&&(t=gc(i.domJson)),i.containerId||t.props&&t.props.id||""),n=t&&k("#"+t,i.guideElement)[0];i&&i.attributes&&i.attributes.imgCount&&(i.attributes.imgCount--,n)&&i.attributes.imgCount<=0&&(wl(t,i.guideElement),Sl(t,i.guideElement),M.flexAllThings(t,i),e=i.getGuide(),_.get(e,"attributes.isAnnouncement")||"AnnouncementsModule"===_.get(e,"attributes.resourceCenter.moduleId")||(bl(t,i.guideElement),(e=n.children.item("pendo-guide-container"))&&e.style&&"auto"===e.style.overflow&&(Sl(t,i.guideElement),M.flexAllThings(i.containerId,i))),"tooltip"===i.attributes.calculatedType&&Kc.positionStepForTooltip(i,i.domJson,n),n.style.visibility="visible",n.parentNode.style.visibility="visible",k.event.dispatch(n,{type:"imagesLoaded"}))}),e.on("error",function(){var e=k("#"+i.containerId,i.guideElement)[0];e?("tooltip"===i.attributes.calculatedType&&Kc.positionStepForTooltip(i,i.domJson,e),e.style.visibility="visible",e.parentNode.style.visibility="visible",M.flexAllThings(i.containerId,i)):C.info("Failed to find guideContainer for id: "+i.containerId)})}function zl(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 jl(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=jl(n[r].styles):_.each(n[r].styles,function(e,t){i+=t+":"+e,n[r].selector.match(/\d+%/)||(i+="!important;")}),i+="}";return i}function Hl(t){_.each(document.head.childNodes,function(e){e&&k.hasClass(e,"pendo-style-"+t)&&ea(e)})}var ql=function(){var e=window.navigator;return((_.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},Wl="meta",Vl=_.compose(JSON.parse,JSON.stringify),Jl=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()},$l=function(e={}){(e=_.isObject(e)?e:{}).jwt&&e.signingKeyName&&(t=Is.getJwtOptions(e,"updateOptions"))&&(Is.set(_.pick(e,"jwt","signingKeyName")),e=t),t=e,n=_.extend({},t.visitor),i=_.extend({},t.account),t=_.extend({},t.parentAccount),n.id===Un&&(C.info("Missing visitor id."),delete n.id),Ln(i.id)&&Ln(t.id)&&(zn(i.id)?t.id=i.id.split(Bn)[0]:i.id=""+t.id+Bn+i.id),Ln(i.id)&&(i.id=""+i.id),Ln(n.id)?n.id=""+n.id:n.id=y({generate:!0}),n.language=ql(),e={visitor:Vl(n),account:Vl(i),parentAccount:Vl(t),date:Jl(),version:E.VERSION},g.getters["metadata/selfHosted"]()&&(e.selfHosted=!0);var t,n=_.clone(Ql()),i=(f.setLocalConfig(_.extend({},f.getLocalConfig(),e)),g.commit("metadata/setMetadata",e),Ql()),r=(Ln(e.visitor.id)&&(E.identify(e.visitor.id,e.account.id),e.visitor.id=y(),e.account.id=$n()),ct(e)),o=(void 0!==(o="object"==typeof(o=r)?ct(o):o)&&o.toString&&(o=o.toString()),""+(_.isNumber(xl)?xl:Zn(Wl))!==o),r=(xl=r,o&&Kn(Wl,r),!_.isEqual(n,i));return{options:e,hashChanged:o,storeChanged:r}},Kl=Qn(function(e){e=$l(e);v.metadata.trigger(e)}),Zl=Qn(function(e,t){_.isObject(e)?Kl(e):qn(e,t)}),Xl=function(){var t,e=k("script");return e=e,t=new RegExp("/agent/static/"+E.apiKey+"/pendo\\.js$"),!_.any(e,function(e){return t.test(e.src)})&&!Se()},Yl=function(){var e=f.get("blockAgentMetadata");return e!==undefined&&e};function Ql(){return g.getters["metadata/metadata"]()}function ep(){return JSON.parse(JSON.stringify(Ql()))}function tp(e){var t=e.data[0],n=f.getLocalConfig()||{};Yn(e)?(Dn([Wl]),g.commit("metadata/reset",t)):(n.visitor=_.extend({},n.visitor,{id:t.visitor_id}),n.account=_.extend({},n.account,{id:t.account_id}),f.setLocalConfig(n),g.commit("metadata/setMetadata",n))}var np={Launcher:{addBehavior:_.noop},Metadata:{getMetadata:Ql},Util:{documentScrollTop:So,documentScrollLeft:Eo,getOffsetPosition:Qo},Events:v,JWT:{getJWT:Is.get}};var ip,rp,op,ap,sp={},up=(rp=[],op=[],ap={},(ip=sp).getExtensions=function(){return op},ip.tagExtension=function(e,t){e=ip.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},ip.findExtensionByTag=function(t){return _.find(op,function(e){return _.contains(e.tags,t)})},ip.findExtensionByName=function(e){return _.findWhere(op,{name:e})},ip.filterExtensionsByUse=function(t){return _.filter(op,function(e){return e.use===t})},ip.findExtensionByNameAndProvider=function(t,n){return _.find(op,function(e){e=e.data;return!!e&&e.name===t&&e.provider&&e.provider.name===n})},ip.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],ap[e]={handler:t,validators:n}},ip.getExtensionFrames=function(){return _.reduce(op,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=_.filter(e,dp)).length&&(rp=function n(e){if(!e.length)return e;var t=_.filter(e,cp);if(t.length)return n(_.difference(e,t));return e}(rp.concat(e)))});function dp(t){var e;return!!_.every(["name","version","use","type","uri"],_.partial(_.has,t))&&(e=t.use,e=ap[e]?ap[e].validators:[],_.every(_.map(e,function(e){return e(t)})))}function cp(e){var t;return"behavior"===e.use?!!e.uri(ip,np)&&(op.push(e),!0):(t=e.use,!!(t=ap[t]?ap[t].handler||_.identity:null)&&((e=t(e))&&op.push(e),!!e))}var L,lp,pp,hp,fp,gp,P={initializeResourceCenter:function(r){if(!(L=vp(r)))return m.resolve();if(g.getters["frames/isShownInAnotherFrame"]()(L.steps[0]))return m.resolve();if(P.isFullyCustom(L))return L.hasResourceCenterContent=!0,m.resolve();var e=yp(L,r),t=_.reduce(e,function(e,t){return mp(t)?e.concat(t.steps[0].fetchContent()):e},[]);return t.push(ic.validate(L).then(_.noop,function(){L.launchMethod="api"})),L.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},_.forEach(_p(),function(e){var t=sp.findExtensionByNameAndProvider("chat",e),t=(t&&kp(e,t),sp.findExtensionByNameAndProvider("helpcenter",e));t&&kp(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=Ep(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&Ip(e.integrationName,e.integrationProvider),_.reduce(n,function(e,t){var n=_.find(r,function(e){return e.id===t});return n?e.concat(n):e},[]));"AnnouncementsModule"===i&&(L.attributes.notifications.individualCounts[t.id]=0,_.forEach(e,function(e){eh(e)||e.isControlGroup()||L.attributes.notifications.individualCounts[t.id]++}));-1<_.indexOf(["GuideListModule","OnboardingModule","AnnouncementsModule"],i)&&_.filter(e,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):!(e.ineligibleForRC=!0)}).length&&(t.hasResourceCenterContent=!0),t.guidesInModule=e}),L.modules=e,L.badgeHidden=!0,m.all(t)["catch"](()=>(L=null,C.error("Failed to load one or more Resource Center modules"),m.resolve()))},findResourceCenterHomeView:vp,findResourceCenterModules:yp,replaceResourceCenterContent:bp,renderResourceCenterModule:function(e,t){bp(e.id,undefined,!0,t)},showHomeViewOrEmptyState:function(e){k("#pendo-resource-center-container._pendo-guide-walkthrough_").remove(),delete e.activeModule,e.hasResourceCenterContent&&e.skipResourceCenterHomeView?P.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,[{value:"none"},{value:"left"}]):e.showEmptyState&&(P.showResourceCenterEmptyState(),_.each(e.controlGuidesInAllModules,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}))},showResourceCenterEmptyState:function(){var e=k("#pendo-resource-center-empty-state-container");e&&e.length&&k(e[0]).css({display:"block"})},launchIntegrationByNameAndProvider:function(e,t,n){var e=sp.findExtensionByNameAndProvider(e,t);return e?(n=k(n))?((e=e.getFrame()).appendTo(n),void e.css({display:"block"})):C.info("could not find target element for "+t+" integration"):C.info(t+" integration has not been loaded into the agent")},appendIntegrationToBodyByNameAndProvider:Ip,attemptToPreserveIntegrationIframes:function(e){e.step&&(e=e.step.getGuide()).attributes&&e.attributes.resourceCenter&&(e=P.getResourceCenterContainer())&&(e=k(e).find('iframe[id^="_pendo-launcher-ext-frame-chat"]'))&&e.length&&e.each(function(e){e=k(e);e.css({display:"none"}),e.appendTo(_d())})},getResourceCenter:Pp,getResourceCenterContainer:Fp,getResourceCenterBadge:Dp,addNotificationBubbleToResourceCenterBadge:Vp,addNotificationBubbleToTargetElement:Jp,updateNotificationBubbles:function(){var e=L,t=_.get(e,"attributes.notifications");if(t){var n=zp(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&Yp(),t.totalUnseenCount=n;else{jp();var i=n!==t.totalUnseenCount;if(i||!Gp(hp)){if("badge"===e.launchMethod){i=Dp();if(!i)return;Vp(i.element(),e.attributes.notificationBubble,n)}if("dom"===e.launchMethod&&_.get(e,"attributes.activation.selector")){i=k(e.attributes.activation.selector);if(!i.length)return;Jp(i[0],e.attributes.notificationBubble,n),Rr(window,"resize",_.debounce(Bp,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:Yp,updateNotificationBubbleCount:Qp,updateNotificationBubbleOnHomeView:Hp,updateOrCreateNotificationBubble:$p,hexToRgb:Up,doesIntegrationExist:Ep,calculateTotalNotificationCount:zp,updateNotificationBubblesOnHomeView:jp,createNotification:Zp,appendNotificationBubble:Xp,hasAnnouncementBeenSeen:eh,clearAnnouncementUnseenInterval:wp,createAnnouncementUnseenInterval:Sp,findShownResourceCenterModule:function(){var e=P.getResourceCenterContainer();if(e){e=k(e).find('[id^="pendo-g-"]');if(e){var t=e.attr("data-pendo-guide-id"),e=_.find(dd(),function(e){return e.id===t});if(_.get(e,"attributes.resourceCenter.isModule",!1))return e}}},dismissResourceCenter:th,repositionResourceCenter:function(){var e=P.getResourceCenterContainer();{var t,n,i;e&&(i=P.findResourceCenterHomeView(dd()).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=Zo().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")}vl(k(e))},repositionDoubleResourceCenterBadge:function(){var e,t,n;g.getters["frames/isLeader"]()&&1<(e=_.unique(_.compact([].concat(_.toArray(k("._pendo-resource-center-badge-container"))).concat(_.toArray(k("._pendo-resource-center-badge-container")))))).length&&function(e){var t=oa(e[0]),e=oa(e[1]);return aa(t,e)}(e)&&(t=Qo(e[0]).width+5,n=Qo(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=Fp();if(t){o=Zo().width,r=k(t),e=k(e),r.css({"max-width":"none"}),e.css({"max-width":"none"}),i=parseInt(R(r[0]).width,10),o<i&&(i=parseInt(t.style.left,10),i=isNaN(i)?0:i,t=parseInt(t.style.right,10),t=isNaN(t)?0:t,o=o-t-i,r.css({"max-width":o+"px"}),e.css({"max-width":o+"px"}));var t=e,n=k('button[id^="pendo-a11y-list-item-button-block"]');if(n&&n.length)for(var i=k(t.find("ol._pendo-text-list-ordered"))[0],r=0,o=0,i=(i&&(i=R(i),o=parseInt(i.paddingLeft,10),r=parseInt(i.paddingRight,10)),k('[id^="pendo-onboarding-guide-progress-circle"]')[0]),e=0,a=0,s=0,u=(i&&(i=R(i),e=parseInt(i.width,10),a=parseInt(i.marginRight,10),s=parseInt(i.marginLeft,10)),o+r+e+s+a),d=parseInt(R(t[0]).width,10),c=0;c<n.length;c++){var l=n[c],p=k(l),l=(p.css({"max-width":"none"}),R(l)),h=parseInt(l.width,10),l=d-u-(parseInt(l.paddingLeft,10)+parseInt(l.paddingRight,10));l<=h&&p.css({"max-width":l})}}},setNativeIntegrationDefaults:kp,renderNativeIntegration:Mp,isSupportedNativeIntegration:Cp,handleNativeIntegrationContinuation:Lp,isProviderInstalled:xp,adjustNotificationBubbleForResize:Bp,getNotificationBubbleDefaultCss:Kp,getModuleId:nh,isIframeModule:function(e){return"IframeModule"===nh(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===nh(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===nh(e)&&e.hasResourceCenterContent},isFullyCustom:function(e){return"FullyCustomModule"===nh(e)},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!P.isSupportedNativeIntegration(e.integrationProvider)||P.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n=vp(e);if(!n)return m.resolve();if(t.getters["frames/isShownInAnotherFrame"]()(n.steps[0]))return m.resolve();if(P.isFullyCustom(n))return m.resolve();var t=yp(n,e),i=[],r=_.indexBy(e,"id");return _.each(t,function(e){var e=e.attributes.resourceCenter;"AnnouncementsModule"===e.moduleId&&(e=e.children,e=_.reduce(e,function(e,t){t=r[t];return t?e.concat(t):e},[]),_.each(e,function(e){mp(e)&&i.push(e.steps[0].fetchContent(!0))}))}),m.all(i)},setFocusForResourceCenterModule:function(e,t){var n;"HomeViewModule"===e[0].getAttribute("data-layout")?t&&(e=k('[data-pendo-module-guide-id="'+t+'"]'),n=e.find('button[id^="pendo-right-caret-"]')[0]):(t=k('[id="pendo-resource-center-module-title-container"]'),n=t.find('button[id^="pendo-left-caret-"')[0]);n&&n.focus()},revertRtlChanges:function(e,t){var n="rtl"===_.get(t,"data-localization-direction",!1),e=_.get(e,"attributes.badge.ignoreRTL",!1);n&&e&&!t["data-direction-changed"]&&(n=_.get(t,"style.left",!1),e=_.get(t,"style.right",!1),n)&&e&&(t.style.left=e,t.style.right=n,t["data-direction-changed"]=!0)},stashBadgeAriaLabel:qp,resetBadgeAriaLabel:function(){var e=P.getResourceCenterBadge();{var t;e&&(e=e.element(),t=e.getAttribute("data-pendo-stashed-aria-label"))&&e.setAttribute("aria-label",t)}},getNotificationBubbleAriaLabelAttribute:Wp,updatePseudoStyleSelectors:ih,hideRCBadge:rh};function mp(e){return e.steps&&e.steps.length&&_.isFunction(e.steps[0].fetchContent)}function vp(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 yp(t,e){return _.filter(e,function(e){return e&&!e.isFrameProxy&&_.get(e,"attributes.resourceCenter.isModule",!1)&&e.state===t.state})}function bp(t,e,n,i=!0){if(!pp){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),Fp());if(e){var a=k(e).find('[id^="pendo-g-"]')[0];if(a){var s,u=a.getAttribute("data-pendo-guide-id"),d=_.find(dd(),function(e){return e.id===t}),c=(t!==L.id?(Hl(_.get(L.activeModule||L,"steps.0.id")),L.activeModule=d):(s=L.activeModule,Hl(_.get(s,"steps.0.id")),delete L.activeModule),_.get(d,"attributes.resourceCenter.integrationProvider")),l=(Cp(c)&&Mp(c),d.steps[0]),c=ih(l.domJson),c=(c.props["data-pendo-guide-id"]=d.id,Ul(c,l)),p=c[0],r=(-1===p.id.indexOf("pendo-g-")&&(p=c.find('[id^="pendo-g-"]')[0]),n||(p.style.transition=r,a.style.transition=r,"left"===o?p.style.left=e.offsetWidth+"px":"right"===o&&(p.style.left=-1*e.offsetWidth+"px")),n&&(k(a).remove(),s)&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),k(e).find('[id^="pendo-end-focus-bumper-"]')[0]);if(r?k(p).insertBefore(r):k(p).appendTo(e),l.guideElement=k(e),l.elements.push(l.guideElement[0]),P.adjustResourceCenterWidth(p),"AnnouncementsModule"===nh(d)&&l.guide.guidesInModule?(Sl(r=_.reduce(l.guide.guidesInModule,function(e,t){var n;return _.isUndefined(t.steps[0].attributes.imgCount)&&(n=t.steps[0].id,n=k(p).find("#pendo-g-"+n)[0]?n:t.id,e.push("pendo-g-"+n)),e},[]),l.guideElement),_.each(r,function(e){M.flexAllThings(e,l)})):M.flexAllThings("pendo-resource-center-container"),vl(k(e)),p.style.left="0px",!n){pp=!0;try{"left"===o?a.style.left=-1*e.offsetWidth+"px":"right"===o&&(a.style.left=e.offsetWidth+"px"),Ut(function(){k(a).remove(),s&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),pp=!1},200)}catch(h){throw pp=!1,h}}return"AnnouncementsModule"===nh(d)&&(Sp(),r=bc.getGuidesInResourceCenterModule(d,dd()),(n=_.reduce(r,function(e,t){return t.steps&&t.steps.length&&lc.hasContent(t.steps[0])||e.push(t.fetchContent()),e},[])).length)&&((o=function(){var i,e,t;if(_.isFunction(document.createElementNS))return i="http://www.w3.org/2000/svg",e=function(e,t){var n=k(document.createElementNS(i,"circle")).attr({cx:e,cy:t,fill:"#9a9ca5",r:5});return _.each(_.toArray(arguments).slice(2),function(e){n.append(e)}),n},t=function(e){return k(document.createElementNS(i,"animate")).attr({attributeName:"fill-opacity",values:"0;1;0;0",keyTimes:"0;0.4;0.8;1",dur:"1.4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0 0 0.58 1; 0 0 0.58 1; 0 0 0.58 1",begin:e})},t=k(document.createElementNS(i,"svg")).attr({viewBox:"0 0 70 20",xmlns:"http://www.w3.org/2000/svg",width:"70",height:"20"}).append(e(21,10,t("-0.32s"))).append(e(35,10,t("-0.16s"))).append(e(49,10,t("0s"))),k(document.createElement("li")).css({padding:"5px 20px","list-style-type":"none","list-style-position":"inside",position:"relative","margin-left":"0em","border-width":"0px","border-style":"solid","border-color":"rgb(255, 255, 255)","float":"none","vertical-align":"baseline","text-align":"center"}).append(t)}())&&c.find("ol").append(o),m.all(n).then(function(){var e=m.defer();return Ut(e.resolve,500),e.promise}).then(function(){L.activeModule===d&&P.renderResourceCenterModule(d,i)})),P.setFocusForResourceCenterModule(c,u),i&&l.onShown("launcher"),c}}}}function wp(){window.clearInterval(lp),lp=null}function Sp(){lp=lp||window.setInterval(function(){var e=Fp();if(!e)return wp();e=k(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return wp();var t=k(e).find('ol[id^="pendo-list"]');if(!t.length)return wp();var n=oa(t[0]),i=k(t).find("li");if(!i.length)return wp();for(var r=e.attr("data-pendo-guide-id"),o=L.attributes.notifications.individualCounts[r],a=n.height/3,s=oa(i[i.length-1]).bottom-30<n.top+n.height,u=0;u<i.length;u++){var d=k(i[u]),c=d.hasClass("pendo-unseen-announcement"),l=d.attr("data-pendo-announcement-send-seen-event");if(c||l){if(oa(i[u]).top-n.top>n.height-a&&!s)break;var p=d.attr("data-pendo-announcement-guide-id"),l=_.find(dd(),function(e){return e.id===p});if(!l)break;c&&(d.removeClass("pendo-unseen-announcement"),c=d.find(".pendo-unread-announcement-mini-bubble"),_e(10)?d.find(".pendo-unread-announcement-mini-bubble").remove():(c[0].style.visibility="hidden",c[0].style.opacity="0",c[0].style.transition="visibility 0s 2s, opacity 2s linear"),eh(l)||o--,Qp(o,r)),l.steps[0].seenState="advanced",pm(l.id,l.steps[0].id,y(),"whatsnew",l.language,{last_updated_at:l.steps[0].lastUpdatedAt}),d[0].removeAttribute("data-pendo-announcement-send-seen-event"),fm(l.id,l.steps[0].id,y(),"advanced",l.language)}}},500)}function Ep(e,t){return sp.findExtensionByNameAndProvider(e,t)}function Ip(e,t){e=sp.findExtensionByNameAndProvider(e,t);if(!e)return C.info(t+" integration has not been loaded into the agent");Cp(t)&&xp(t)?L.hasEligibleNativeIntegrationModule=!0:(ra((t=e.getFrame())[0])||t.appendTo(_d()),t.css({display:"none"}))}function _p(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging"]}function Cp(e){return!!e&&0<=_p().indexOf(e)}function xp(e){return!!e&&null!==(e=Tp(e))&&_.isFunction(window[e])}function Tp(e){if(!e)return null;switch(e){case"zendesk-chat":case"zendesk-messaging":case"zendesk-native-kb":return"zE";case"intercom-chat":return"Intercom";case"drift-native-chat":return"drift";default:return null}}function kp(e,t){if(e)if(xp(e))Ap(e,t);else{var n;if("function"==typeof Object.defineProperty){const i=Tp(e);null!==i&&(fp&&fp[i]?fp[i][e]||(fp[i][e]={installed:!1,integrationObj:t}):((fp=fp||{})[i]={[e]:{installed:!1,integrationObj:t}},Object.defineProperty(window,i,{get(){return n},set(e){n=e,_.forEach(fp[i],function(e,t){const n=e.integrationObj;!e.installed&&xp(t)&&(e.installed=!0,Ap(t,n),Ip(n.name,t),_.forEach(L.modules,function(e){e.integrationConfig&&e.integrationConfig.data.name===n.name&&e.integrationConfig.data.provider.name===t&&(e.hasResourceCenterContent=!0)}))})},configurable:!0,enumerable:!0})))}}}function Ap(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=Op(i);Rp(n,"webWidget","hide"),Rp(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),Rp(n,"webWidget:on","close",function(){Rp(n,"webWidget","hide"),Np()}),L.isInProgress()&&!L.attributes.doNotResume&&Lp(L.activeModule),Rp(n,"webWidget:on","chat:unreadMessages",function(e){Qp(e,"chat")});break;case"zendesk-messaging":i=t;Rp(i=i.data.provider.name,"messenger","hide"),Rp(i,"messenger:on","close",function(){Np()}),Rp(i,"messenger:on","unreadMessages",function(e){Qp(e,"chat")});break;case"intercom-chat":var r=t;r=Op(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(){Np()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=Ql();window.drift.identify(t.visitor.id,function o(e){const t={};for(const n in e)if("object"!=typeof e[n]||Array.isArray(e[n]))t[n]=e[n];else{const i=o(e[n]);for(const r in i)i[r]&&(t[n+"."+r]=i[r])}return t}(t)),window.drift.on("message",function(e){if(!L.isNativeModuleActive)return Qp(1,"chat")})}),window.drift.on("chatClose",function(e){Qp(0,"chat"),window.drift.hide(),Np()})}}function Rp(e,...t){try{gp&&gp[e]||window.zE.apply(null,t)}catch(n){gp?gp[e]=!0:gp={[e]:!0}}}function Op(e){e=_.get(e,"data.options.labels.position");return e=e&&e.split("-")}function Np(){th(L.activeModule),delete L.activeModule,L.continueToNativeModule=!1}function Mp(e,t){if(e){var n=Ql();if(L.isShown()&&L.hide(),gp&&gp[e])C.info(e+" integration failed to communicate with API, closing"),P.replaceResourceCenterContent(L.id,undefined,!0),Np();else{var i=Dp();switch(i&&rh(i,L),e){case"zendesk-messaging":Rp(e,"messenger","show"),Rp(e,"messenger","open");break;case"zendesk-native-kb":Rp(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),Rp(e,"webWidget","show"),Rp(e,"webWidget","open");break;case"zendesk-chat":Rp(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&Rp(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})}Qp(0,"chat"),!L.activeModule&&t&&(L.activeModule=t).steps[0].onShown("launcher")}}}function Lp(e){e&&!e.isTopLevel&&(Mp(_.get(e,"attributes.resourceCenter.integrationProvider")),L.activeModule||(L.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function Pp(){return L}function Fp(){return _.get(L,"steps.0.guideElement.0")}function Dp(){if(L&&L.id)return ad[L.id]}function Up(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 Gp(e){return e&&_.all(e,function(e){return ra(e&&e.length?e[0]:e)})}function Bp(){var e,t=P.getResourceCenter(),n=_.get(t,"attributes.notifications");n&&(n=P.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&_.get(t,"attributes.activation.selector")&&(e=k(t.attributes.activation.selector)).length&&P.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function zp(e){return _.reduce(e,function(e,t){return e+t},0)}function jp(){var e,t=L;t&&(t=_.get(t,"attributes.notifications"))&&(e=Fp())&&k(e).find("._pendo-resource-center-home-list").length&&_.each(t.individualCounts,function(e,t){Hp(e,t)})}function Hp(e,t){var n=P.getResourceCenterContainer();n&&(n=k(n).find('[data-pendo-notification-id="'+t+'"]')).length&&(t=k(n[0]).find("._pendo-home-view-bubble"),n=k(t[0].children[0]),e!==parseInt(n.text(),10))&&(0<e?(n.text(e),k(t[0]).css({display:"block","margin-right":"0"})):(n.text(""),k(t[0]).css({display:"none"})))}function qp(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function Wp(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function Vp(e,t,n){var i=Wp(n);let r=e.getAttribute(i);r&&(qp(e),r=r.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",r));var i=_.get(t,"position","top-left"),o=R(e),o=(parseInt(o.width,10)||56)/2,a=o/Math.sqrt(2),o=Math.round(o-a)-10,s=o-10,a=Math.round(2*a),o={"top-left":{top:o+"px",left:s+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"top-right":{top:o+"px",left:s+a+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-left":{top:o+a,left:s+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-right":{top:o+a,left:s+a+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"}},s=e.attributes["data-localization-direction"]||!1,a=P.resourceCenterIgnoreRtl();$p(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 Jp(e,t,n){var i=To(e,e),r=To(e,na());$p(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 $p(e,t,n,i,r){var o,a;Gp(hp)?(a=(o=Kp(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=_.extend(a,i),o=_.extend(o,r),hp.bubbleEle.css(a),hp.unseenCountEle.css(o),hp.unseenCountEle.text()!=""+n&&hp.unseenCountEle.text(n)):(a=k(e).find(".pendo-resource-center-badge-notification-bubble")).length?a[0].getElementsByClassName("pendo-notification-bubble-unread-count")[0].textContent=n:n&&Xp(hp=Zp(t,n,i,r),e)}function Kp(e){return{defaultBubbleCss:{position:"absolute","border-radius":"20px","line-height":"0px",height:"26px","box-sizing":"content-box","background-color":e["background-color"]},defaultUnseenCountCss:{"font-weight":e["font-weight"],"font-family":e["font-family"],height:"100%",position:"relative",top:"50%",color:e.color}}}function Zp(e,t,n,i){var r=Kp(e),o=r.defaultBubbleCss,r=r.defaultUnseenCountCss,a=(t=t||0,k(document.createElement("div")).addClass("pendo-resource-center-badge-notification-bubble")),s=k(document.createElement("div")).addClass("pendo-notification-bubble-unread-count"),o=_.extend(o,n),n=_.extend(r,i);return a.css(o),s.css(n),_e(10)||Ll()||(i="rgb("+(r=Up(e["background-color"])).r+", "+r.g+", "+r.b+")",yc(f,"pendo-resource-center-bubble-animation","@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6) } } "+('.pendo-resource-center-badge-notification-bubble::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: '+i+"; border-radius: 100%; z-index: -1; animation: pulse 2s infinite; will-change: transform; }"))),s.text(t),{bubbleEle:a,unseenCountEle:s}}function Xp(e,t){e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function Yp(){var n=hp?hp.bubbleEle:k(".pendo-resource-center-badge-notification-bubble"),i=hp?hp.styleEle:k("#pendo-resource-center-bubble-animation");n&&_.each(n,function(e,t){n[t]&&(t=n[t])&&t.parentNode&&t.parentNode.removeChild(t)}),i&&_.each(i,function(e,t){i[t]&&(t=i[t])&&t.parentNode&&t.parentNode.removeChild(t)}),hp=null,P.resetBadgeAriaLabel()}function Qp(e,t){var n=L;n&&(n=_.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,P.updateNotificationBubbles())}function eh(e){return!(!_.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function th(e){var t=_.get(e,"attributes.resourceCenter.isModule",!1)?e:P.findShownResourceCenterModule();t&&(t=_.first(t.steps),Jg(t));t=(_.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:P.findResourceCenterHomeView(dd())).steps[0];return Jg(t)}function nh(e){return _.get(e,"attributes.resourceCenter.moduleId")}function ih(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 rh(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete ad[t.id])}var oh=1e4,ah="lastStepAdvanced";function sh(e){g.dispatch("guideState/updateLastGuideStepSeen",e),g.dispatch("guideState/write"),g.dispatch("frames/changeLastGuideStepSeen",e)}function uh(){g.dispatch("guideState/regainFocus")}function dh(){return g.state.guideState.lastGuideStepSeen}var i={actions:{init(e){e.getters.storage().registry.addLocal(ah),e.commit("setScopedStorageKey",Vt(e.state.storageKey)),v.identify.on(function(e){Yn(e)&&Dn([ah])})},load(t,e){if(e){var n;try{n=JSON.parse(e)}catch(i){}n&&_.each([].concat(n),function(e){t.commit("setStepState",e)})}},forceExpire(n){_.each(n.state.steps,function(e,t){n.commit("expireStepState",t)})},expire(n){var i=n.getters.now();_.each(n.state.steps,function(e,t){i-e.time>n.state.ttl&&n.commit("expireStepState",t)})},apply(o){var a,s=_.indexBy(o.getters.guideList(),"id");o.dispatch("expire"),_.each(o.state.steps,function(e){var t,n,i=e.guideId,r=e.guideStepId;e.visitorId&&e.visitorId!==o.getters.visitorId()||((!a||e.time>a.time)&&(a=e),(i=s[i])&&(t=_.findWhere(i.steps,{id:r}))&&(n=o.state.storageKey,t.seenState!=e.state&&(C.info("making sure that seenState = '"+e.state+"' for "+n+": "+r),t.seenState=e.state),t.snoozeEndTime!=e.snoozeEndTime&&(C.info("making sure that snoozeEndTime = '"+e.snoozeEndTime+"' for "+n+": "+r),t.snoozeEndTime=e.snoozeEndTime),t.seenReason!=e.seenReason&&(C.info("making sure that seenReason = '"+e.reason+"' for "+n+": "+r),t.seenReason=e.seenReason),e.dismissCount!==undefined&&t.dismissCount!=e.dismissCount&&(t.dismissCount===undefined?t.dismissCount=e.dismissCount:t.dismissCount=Math.max(e.dismissCount,t.dismissCount),C.info("making sure that dismissCount = '"+t.dismissCount+"' for "+n+": "+r)),e=_.indexOf(i.steps,t),_.each(i.steps.slice(0,e),function(e){_.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})))}),a&&o.dispatch("updateLastGuideStepSeen",_.extend({},o.state.lastGuideStepSeen,a))},receiveLastGuideStepSeen(e,t){e.commit("setReceivedLastGuideStepSeen",t),e.commit("setLastGuideStepSeen",t)},updateLastGuideStepSeen(e,t){var n;t.visitorId&&t.visitorId!==e.getters.visitorId()||(n=_.some(e.getters.guideList(),function({id:e}){return e===t.guideId}),t.guideStepId&&e.commit("setStepState",t),n&&(e.commit("setLastGuideStepSeen",t),E.lastGuideStepSeen=t,nv)&&nv.update(t))},updateThrottlingState(e,t){e.commit("setThrottlingState",t)},write(e){e.dispatch("expire");var t=e.rootState.frames.tabId,n=e.state.storageKey,i=e.getters.cookieSuffix(),r=e.state.ttl,o=e.getters.storage(),a=JSON.stringify(_.map(e.state.steps,function(e){return _.extend({tabId:t},e)}));C.info("writing "+a+" to a cookie named "+n+" for "+r+" and cookieSuffix "+i),o.write(n,a,r,!1,!1,i),e.dispatch("preview/update",e.state.lastGuideStepSeen,{root:!0})},storageChanged(e,t){if(t.key===e.state.scopedStorageKey){try{var n=e.getters.storage(),i=e.getters.cookieSuffix(),r=n.read(e.state.storageKey,!1,i),o=[].concat(JSON.parse(r))}catch(a){}e.getters.storageChangedInOtherTab()(o)&&(Eh(),e.dispatch("load",r),e.dispatch("apply"),e.state.receivedStateChangeAt||e.commit("setReceivedStateChange",e.getters.now()))}},regainFocus(e){var t=e.getters.tabLostFocus(),n=e.getters.isGuideRequestStale();t&&(e.commit("setReceivedStateChange",null),n||(Ih(),_h())),n&&mv()}},mutations:{expireStepState(e,t){e.expired[t]=e.steps[t],delete e.steps[t]},setStepState(e,t){e.steps[t.guideStepId]=t},setScopedStorageKey(e,t){e.scopedStorageKey=t},setLastGuideStepSeen(e,t){e.lastGuideStepSeen=t},setReceivedLastGuideStepSeen(e,t){e.receivedLastGuideStepSeen=t},setReceivedStateChange(e,t){e.receivedStateChangeAt=t},setLastGuideRequestAt(e,t){e.lastGuideRequestAt=t},setThrottlingState(e,t){e[t.name]=t.value}},state:{steps:{},expired:{},ttl:oh,storageKey:ah,guideRequestExpiration:36e5,scopedStorageKey:null,receivedStateChangeAt:null,receivedLastGuideStepSeen:null,lastGuideStepSeen:null,lastGuideRequestAt:null,latestDismissedAutoAt:null,latestSnoozedAutoAt:null,finalAdvancedAutoAt:null},getters:{now(){return S()},storage(){return h},guideList(){return O},tabLostFocus(e){return!!e.receivedStateChangeAt},isGuideRequestStale(e,t){return null!=e.lastGuideRequestAt&&t.now()-e.lastGuideRequestAt>e.guideRequestExpiration},storageChangedInOtherTab(n,e,i){return function(e){var t=_.get(i,"frames.tabId");return!!e&&!!((e=_.max(_.compact(e),"time"))&&e.tabId&&t&&e.tabId!==t)&&(!n.lastGuideStepSeen||!n.lastGuideStepSeen.time||e.time>n.lastGuideStepSeen.time)}},cookieSuffix(){return f.get("crossAppGuideStorageSuffix")},visitorId(){return y()}}},ch={canDisplay:function(e,t,n){if(n&&n.enabled&&_.isFinite(t)){t=hh(t,n);if(_.isNumber(t)&&!isNaN(t))return t<=e}return!0},lastDismissedTime:function(e){return Math.max(e.latestDismissedAutoAt||-Infinity,e.finalAdvancedAutoAt||-Infinity,e.latestSnoozedAutoAt||-Infinity)},sortAndFilter:function(e,t){var n=f.get("appAutoOrdering")||[].concat(f.get("leaderKey"));{var i;n.length&&(i=g.getters["frames/autoOrdering"](),n=_.reduce(n,(e,t)=>e.concat(i[t]||[]),[]),t=_.uniq(n.concat(t)))}var r,o,n=function(e){e=_.defaults(_.groupBy(e,function(e){return ph(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,lh),t));return _.find(e,function(e){return e.isTraining})?(t=f.get("adoptPrioritizeAdoptGuides"),e=t,r=[],o=[],_.each(n,function(e){(e.isTraining?r:o).push(e)}),e?r.concat(o):o.concat(r)):n},tryDisplayGuide:function(e,t){var n=ch.lastDismissedTime(t),n=ch.canDisplay(S(),n,t.throttling);if((ph(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:hh};function lh(e){return e&&/auto/.test(e.launchMethod)}function ph(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||_.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function hh(e,t){var n=t.interval,t=(t.unit||"").toLowerCase();return _.isNumber(n)&&mt(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 fh(t){return v.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+"?"+so(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=no(e).substring(1),t=ao(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=no(e.substring(n+1)).substring(1),_.extend(t,ao(n))),t}}var gh=_.memoize(function(){return fh(N)});function mh(e,t){var e=_.find(e,function(e){return e.isContinuation(t)}),n=e&&e.attributes&&e.attributes.doNotResume;if(e&&!n)return e}class vh{constructor(){this.name="autoDisplay",this.queue=[]}markDirty(){Od()&&(this.queue.push("permalink","continuation"),this.queue.push(...ch.sortAndFilter(ud(),E.autoOrdering)))}process(e){if(Ng())this.cancel();else{var t=this.queue.shift();if("permalink"===t)return gh().tryDisplay();if("continuation"===t){var n=mh(ud(),dh());if(n)return e.saveContext(n),n.show("continue")}else if(t){if(!mh(ud(),dh()))return e.saveContext(t),ch.tryDisplayGuide(t,E);this.cancel()}}}handleProcessTimeExceeded(e){e=e.getContext();e&&C.warn("Auto display ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}function yh(e,t=!1){var n=_.get(e,"attributes.darkMode.selector","");n&&(n=0<E.Sizzle(n).length,e.isDarkMode!==n)&&(e.isDarkMode=n,t)&&(e.hide(),e.show(e.seenReason))}var bh=null,wh=500,Sh=function(e){bh=_.delay(function(){bh=null,_h()},e=e||wh),E.guidesProcessingThreadHandle=bh},Eh=function(){bh&&(clearTimeout(bh),bh=null,E.guidesProcessingThreadHandle=bh),g.dispatch("guideUpdate/stopScheduledUpdate")},Ih=function(){Dg(),Lh.cancel();for(var e=0;e<od.length;e++){var t=od[e];t.parentNode.removeChild(t)}od.length=0,g.dispatch("guideUpdate/stopObserver"),v.guideLoopStopped.trigger()},_h=function(){if(Eh(),Rm())C.info("guides are loading.",{contexts:["guides","loading"]});else if(rv())C.info("guides are disabled.",{contexts:["guides","disabled"]});else if(ov())C.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!g.getters["guideState/tabLostFocus"]())try{var e=md();e&&0!==e.length&&(g.dispatch("guideUpdate/startObserverIfNeeded"),Lh.isComplete()&&Lh.markDirty(),g.getters["frames/leaderExists"]())&&Lh.process()}catch(t){Lh.cancel(),C.critical("ERROR in guide-loop",{error:t})}finally{Lh.paused||(Lh.isComplete()?(g.state.guideUpdate.useObserver&&!g.state.guideUpdate.needsUpdate||Sh(),v.guideUpdateComplete.trigger()):Sh(50))}};var Ch=function(){var e=f.getLocalConfig();f.get("delayGuides")&&(delete e.delayGuides,f.setLocalConfig(e)),f.get("guides.delay")&&(delete e.guides.delay,f.setLocalConfig(e)),_h()},xh=function(){rv()||sv(!0),Ih(),Tm()};class Th{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 kh{constructor(){this.name="badge",this.queue=[]}markDirty(){this.queue.push.apply(this.queue,_.filter(cd(ud()),bd))}process(e){var t=this.queue.shift();e.saveContext(t),t&&t.placeBadge()}handleProcessTimeExceeded(e){e=e.getContext();C.warn("Badge ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}function Ah(i,e){var r,o,t,n,a;P.isFullyCustom(i)||(r=!1,o=[],t=_.filter(i.modules,function(e){var t,n;return!!e&&(!!P.isIframeModule(e)||!!P.isSandboxModule(e)||(P.isIntegrationModule(e)?!!P.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1):(t=(n=_.filter(e.guidesInModule,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):(e.ineligibleForRC=!0,e.control&&o.push(e),!1)})).length,e.hasResourceCenterContent=!!t,i.activeModule&&e.id===i.activeModule.id&&(n=ct(_.map(n,function(e){var t=e.isAnnouncement()||e.isWhatsNew()?null:_.pluck(e.steps,"seenState");return{id:e.id,seenState:t}})),e.eligibleGuidesInModuleHash&&n!==e.eligibleGuidesInModuleHash&&(r=!0),e.eligibleGuidesInModuleHash=n),t)))}),n=!1,i.activeModule||(a=ct(_.map(t,function(e){return{id:e.id}})),i.eligibleModulesHash&&i.eligibleModulesHash!==a&&(n=!0,P.replaceResourceCenterContent(i.id,undefined,!0)),i.eligibleModulesHash=a),e(i,t,o),1===t.length&&(i.skipResourceCenterHomeView=!0,i.moduleIdToReplaceHomeViewWith=t[0].id,a=!i.activeModule&&n,e=i.activeModule&&i.activeModule.id!==t[0].id,a||e||r)&&P.replaceResourceCenterContent(i.moduleIdToReplaceHomeViewWith,undefined,!0),t&&(n=_.find(t,function(e){return e.isContinuation(dh())}),a=_.get(n,"attributes.doNotResume"),e=_.get(n,"attributes.resourceCenter.integrationProvider"),P.isSupportedNativeIntegration(e))&&!a&&i&&(i.continueToNativeModule=!0,n.continueToNativeModule=!0),i.activeModule&&((e=_.find(t,function(e){return e.id===i.activeModule.id}))&&r&&P.replaceResourceCenterContent(i.activeModule.id,undefined,!0),e||P.replaceResourceCenterContent(i.id)),P.repositionResourceCenter())}function Rh(e,t,n){var i,r,o=ad[e.id];t&&t.length||(t=-1!==e.launchMethod.indexOf("badge"),i=-1!==e.launchMethod.indexOf("dom"),r=-1!==e.launchMethod.indexOf("extensionIcon"),e.hasResourceCenterContent=!1,t?(e.isShown()&&e.hide(),o&&P.hideRCBadge(o,e),_.each(n,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}),e.badgeHidden=!0,delete e.activeModule):(i||r)&&(e.showEmptyState=!0,e.controlGuidesInAllModules=n)),e.badgeHidden&&e.hasResourceCenterContent&&!e.isNativeModuleActive&&(o||(_.isFunction(e.placeBadge)&&e.placeBadge(),o=ad[e.id]),o&&o.show(),e.badgeHidden=!1)}function Oh(e){var t,n,i,r,o,a;e&&e.launchMethod&&(e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith,t=e.activeModule,n=_.get(t,"attributes.resourceCenter.integrationProvider"),e.isNativeModuleActive=t&&P.isSupportedNativeIntegration(n),P.isFullyCustom(e)?e.hasResourceCenterContent=!0:(e.isShown()||!g.getters["frames/isLeader"]()?Ah(e,Rh):(t=e,n=Rh,P.isFullyCustom(t)||(i=[],o=[],(r=_.find(t.modules,function(e){return!!P.isIframeModule(e)||!!P.isSandboxModule(e)||!!P.isIntegrationModule(e)&&(!!P.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1))}))&&i.push(r),r=_.flatten(_.pluck(t.modules,"guidesInModule")),o=_.filter(_.compact(r),function(e){return e.control}),!i.length&&(a=_.reduce(t.modules,function(t,n){return _.each(n.guidesInModule,function(e){t[e.id]=n}),t},{}),r=_.filter(r,function(e){return e&&e.steps&&e.steps.length}),r=_.sortBy(r,function(e){return e.steps[0].elementPathRule?1:0}),r=a[(r=_.find(r,function(e){return e.shouldBeAddedToResourceCenter()}))&&r.id])&&i.push(r),n(t,i,o))),e.isNativeModuleActive&&(e.isShown()&&e.hide(),a=ad[e.id])&&P.hideRCBadge(a,e),"dom"===e.launchMethod&&(P.updateNotificationBubbles(),P.adjustNotificationBubbleForResize())))}class Nh{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 Mh{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 Nh(50);!this.timedOut()&&!i.isComplete()&&!e;)r.start(),!(e=i.process(r))&&r.isTimeExceeded()&&(Os.count(ks),i.handleProcessTimeExceeded&&i.handleProcessTimeExceeded(r),this.ejectGuide(r.getContext()));wt(e)?(t=this.updateId,n=_.bind(function(){this.updateId===t&&(this.paused=!1,_h())},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 Th(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>g.state.guideUpdate.iterationTimeLimit}ejectGuide(e){this.ejectOnTimeout===undefined&&(this.ejectOnTimeout=f.get("guides.ejectOnTimeout")),this.ejectOnTimeout&&e&&!e.isShown()&&pd.addGuide(e)}process(){var e=S();for(this.updateId||(this.updateId=e,this.updateTotalTime=0,g.commit("guideUpdate/startUpdate",e)),this.iterationStartTime=e;!this.paused&&this.queue.length&&!this.timedOut();)this.runGuidePhase();e=S(),this.updateTotalTime+=e-this.iterationStartTime,this.isComplete()&&this.complete(e)}complete(e){g.commit("guideUpdate/completeUpdate",e),this.cancel()}cancel(){this.updateId=null,this.paused=!1,this.queue.length=0;for(var e of this.phases)_.isFunction(e.cancel)&&e.cancel()}isComplete(){return!this.queue.length}}var Lh=new Mh([new Th("guideShowing",function(){var a=yv();a&&(_.each(a.steps,function(e){var t,n,i,r,o;a.guide,(e=e).isLocked()||g.getters["frames/isShownInAnotherFrame"]()(e)||(t=e.element,n=e.targetElement,r=e.guideElement,i=k("."+kg),(r=r.find("#pendo-guide-container")[0])&&r.textContent&&(r=R(r).fontSize,e.attributes.currentTextZoomFontSize!==r)&&(e.attributes.currentTextZoomFontSize&&e.redraw(),e.attributes.currentTextZoomFontSize=r),yh(e,!0),e.elementPathRule&&n&&!Cr.matchesSelector(n,e.elementPathRule)?e.hide():(r=ya(t),o=!0,n&&r&&e.elementContainsRulesList&&(o=im(n,e.elementContainsRulesList),r=o),t&&(r||i.hasClass("mouseover"))?e.checkPlacement():("tooltip"===e.type||"tooltip"===e.attributes.calculatedType)&&ba(t)&&o||e.hide()))}),a.guide.checkForHiddenGroupSteps())}),new vh,new kh,new Th("resourceCenter",function(){Oh(P.getResourceCenter())}),new Th("frameVisibility",function(){g.dispatch("frames/checkFrameVisibility")})]);function Ph(){Lh.addPhase(...arguments)}function Fh(){Lh.removePhase(...arguments)}function Dh(){var s={};return _.each(["after","before"],function(i){this[i]=function(e,t){var n,r,o,a;this[e]&&((n=s[e])||(n=s[e]={before:[],after:[]},this[e]=(r=this[e],o=n.before,a=n.after,function(){for(var e=_.toArray(arguments),t=0,n=o.length;t<n;++t)if(!1===o[t].apply(this,e))return;var i=r.apply(this,e);for(t=0,n=a.length;t<n&&!1!==a[t].apply(this,e);++t);return i})),n[i].push(t))}},this),this}var Uh="debug-enabled";function Gh(){try{var e=h.read(Uh)||JSON.parse(Ht(Uh));return"boolean"==typeof e?{enabled:e}:e||{}}catch(t){return{}}}function Bh(e=!0){let t;return t=g&&g.getters&&g.getters["debugger/debuggingEnabled"]?g.getters["debugger/debuggingEnabled"]():!0===Gh().enabled,e?t:t?"Yes":"No"}class zh{constructor(e,t){this.type=t,this.identificationFn=e}test(e){return this.identificationFn(e)}}const jh=(()=>{const n={},e=({data:e})=>{var[e,,]=e,e=e["guideId"];const t=N(e);e=(_.find(n,e=>e.GuideType.test(t))||{}).handler;e&&e(t,"resourceFetchFail")};return{run:()=>{v.resourceFetchFail.on(e)},stop:()=>{v.resourceFetchFail.off(e)},addTypeHandler:(e,t)=>{_.isFunction(t)?n[e.type]={GuideType:e,handler:t}:C.error("Invalid Handler function provided for type "+e.type)}}})();jh.addTypeHandler(new zh(bd,"badge"),(e,t)=>{pd.addGuide(e)});var Hh="_pendo-badge_";function qh(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function Wh(t,n){var e,i,r,o,a,s=Td(n),u=!(null==(u=null==t?void 0:t.attributes)||!u.resourceCenter),d=!1;return u&&(d=null==(e=null==(e=null==t?void 0:t.attributes)?void 0:e.badge)?void 0:e.ignoreRTL),"building-block"===t.attributes.type?(e=_.reduce([(o=t.language,a=u?["he","ar"]:[],e=>(_.contains(a,o)&&(e.props["data-localization-direction"]=!0),e)),(r=d,e=>{var t,n;return _.get(e,"props.data-localization-direction",!1)&&!r&&(t=_.get(e,"props.style.left","auto"),n=_.get(e,"props.style.right","auto"),t)&&n&&(e.props.style.left=n,e.props.style.right=t),e}),qh,dc,function(e){return Ul(e,{id:n.id,guideId:t.id,isBadge:!0})}],(e,t)=>t(e),this.domJson)[0],i=e,k.removeNode(e),-1===i.className.indexOf("_pendo-badge_")&&(i.className+=" _pendo-badge_"),this.isP2Badge=!0):((i=document.createElement("img")).src=uc(this.imageUrl),i.className="_pendo-badge "+Hh,u=this.width||13,d=this.height||13,$o(i,"width:"+u+"px;height:"+d+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=_.isFunction(n.getGuide)&&n.getGuide(),t=um(e);!e.isShown()||g.getters["frames/isShownInAnotherFrame"]()(n)?cm(n,"badge"):t?n.eventRouter.eventable.trigger("pendoEvent",{step:n,action:"dismissGuide"}):(t=_.find(e.steps,function(e){return e.isShown()}),Jg(t))},this.shouldShow=function(){return t.canBadgeBeShown()||!1},this.show=function(){if(_.isFunction(this.shouldShow))return this.shouldShow()},this.hide=function(){k.removeNode(i),Hl(t.id),_.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},um(t)&&(this.toggleAriaExpanded=function(){var e=!!k("#pendo-resource-center-container")[0],t=k("button._pendo-resource-center-badge-container")[0]||k('._pendo-resource-center-badge-container [id^="pendo-image-badge-"]')[0];t&&t.setAttribute("aria-expanded",e)},i.checkAriaExpanded=this.toggleAriaExpanded),this.step=_.constant(n),this.target=_.constant(s),this.element=_.constant(i),this}Wh.create=function(n){var i=Wh.findStep(n);if(i)return _.reduce(Wh.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},Wh.findStep=function(e){var t=_.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},Wh.behaviors=[Dh,Wh,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&&$o(i,"display:inline-block;vertical-align:text-bottom;"),this.css&&$o(i,this.css),n&&n.tagName&&(e=n.tagName.toLowerCase(),t=function(e){try{if(e.shadowRoot&&!e.shadowRoot.querySelector("slot"))return e.shadowRoot}catch(t){}return e}(n),/br|input|img|select|textarea/.test(e)?i.parentNode!==n.parentNode&&n.parentNode.insertBefore(i,n.nextSibling):i.parentNode!==t&&("inline"===this.position||"inline-right"===this.position?t.appendChild(i):"inline-left"===this.position&&t.prepend(i)))});return this},function(s){this.position&&"top-right"!==this.position&&"top-left"!==this.position||this.before("show",function(){var e=this.element(),t=Qo(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"}$o(e,o)}if(!e.parentNode){_d().appendChild(e);const a=fa(Rr,this.target(),Zh);this.removeScrollHandlers=()=>{Zh.cancel(),a()}}});return this},function(){"over"===this.position&&this.before("show",function(){var e=this.element(),t=Qo(this.target()),n="position:absolute;top:"+t.top+"px;left:"+t.left+"px;";if(n+="height:"+t.height+"px;width:"+t.width+"px;",$o(e,n+="background-color:transparent;"),!e.parentNode){_d().appendChild(e);const i=fa(Zh,e,this.target());this.removeScrollHandlers=()=>{Zh.cancel(),i()}}});return this},function(){var t=this,e=t.element(),n=!1,i=function(e){t.activate(),t.toggleAriaExpanded&&t.toggleAriaExpanded(),ed(e)};return t.after("show",function(){n||(l(e,"click",i),n=!0)}),t.after("hide",function(){Qu(e,"click",i),n=!1}),t},function(){var t=this.element(),n=this.step(),e=!1;{var i,r,o;"yes"!==this.useHover&&!this.showGuideOnBadgeHover||(i=_.throttle(function(e){Nr(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}(Nr(e))||o()},50,{trailing:!1}),r=function(e){n.isShown()||cm(n,"badge"),l(document,"mousemove",i),ed(e)},o=function(e){Qu(document,"mousemove",i),Ed()||Jg(n)},this.after("show",function(){e||(l(t,"mouseover",r),e=!0)}),this.after("hide",function(){Qu(t,"mouseover",r),Qu(document,"mousemove",i),e=!1}))}return this},function(){var s=this.element(),u=this.target(),e=!1;{var t,n,i,r,d;!this.showBadgeOnlyOnElementHover&&!/hover/.test(this.showOnEvent)||Ed()||(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;Nr(e)===u||Nr(e)===s||zo(s,"triggered")||(t=e.clientX,e=e.clientY,n=oa(u),i=oa(s),r=Math.min(n.left,i.left),o=Math.min(n.top,i.top),a=Math.max(n.right,i.right),n=Math.max(n.bottom,i.bottom),i=e+document.documentElement.scrollTop,r<=t&&t<=a&&o<=i&&i<=n)||d()},50,{trailing:!1}),r=function(){$o(s,t),l(document,"mousemove",i)},d=function(){Qu(document,"mousemove",i),$o(s,n)},this.after("show",function(){e||(l(u,"mouseover",r),e=!0,d())}),this.after("hide",function(){e&&(Qu(u,"mouseover",r),e=!1),d()}))}return this}];var Vh=function(e,t){var n,i,r=(t=t||ad)[e.id],o=r?r.step():Wh.findStep(e);o&&(i=r?r.target():Td(o),(n=_.get(e,"attributes.resourceCenter"))&&!g.getters["frames/canShowRCBadge"]()?r&&_.isFunction(r.hide)&&(t[e.id]=undefined,r.hide()):n&&!e.hasResourceCenterContent||(P.updateNotificationBubbles(),n=!0,o.elementContainsRulesList&&(n=i&&im(i,o.elementContainsRulesList)),(i=o.elementPathRule&&ya(i)&&Cr.matchesSelector(i,o.elementPathRule)&&n)?((r=r||Wh.create(e)).show(),t[e.id]=r):r&&!o.isShown()&&(t[e.id]=undefined,r.hide()),Bh()&&v.stepEligibility.trigger({stepId:o.id,guideId:e.id,eligible:i,reason:"target_element_badge"}),P.repositionDoubleResourceCenterBadge()))},Jh=function(){_.map(ad,$h),ad={}},$h=function(e,t){e&&(_.isFunction(e.hide)&&e.hide(),_.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete ad[t.id]},Kh=function(e){var t=ad[e.id];t&&$h(t,e)};var Zh=_.throttle(function(){_.map(ad,function(e){e&&e.show&&e.show()})},10);const Xh=h.getLocal();var F,Yh="pendo-preview",Qh="current-guide-preview";function ef(e){return g.dispatch("preview/load"),tf(e)}function tf(t){var e=vf();if(e)return rf(t),g.dispatch("preview/start",_.extend(e)),h.clear(ah),jt(!1),ls.lock(),Nm=Sf,uf()&&((e=X).allowedOriginServers=[],e.allowedOriginServerHashes=[]),v.startPreview.trigger(),v.leaderChanged.on(function(e){g.dispatch("preview/write"),e.oldLeaderId||mv(),g.getters["frames/isLeader"]()||(k(F).remove(),F=null,t.removeEventListener("message",af))}),Ph(nf),!0}function nf(){if(!g.getters["frames/isFollower"]()){var t,n,i,r,o,e,a=document,s=md(),u=dh();if(sf()&&(t=vf())&&F&&F.contentWindow)if(s&&s.length){F.contentWindow.postMessage({mutation:"preview/setGuideLoaded",payload:{guideLoaded:!0}},location.origin),n=_.find(s,function(e){return e.id===t.guideId}),i=0,r=n.steps.length,o=u||{},_.find(n.steps,function(e,t){return o.guideStepId===e.id&&("dismissed"===o.state||"active"===o.state?i=t:"advanced"===o.state&&o.destinationStepId?i=_.indexOf(n.steps,_.find(n.steps,function(e){return e.id===o.destinationStepId})):"advanced"===o.state&&t===r-1&&(i=r),!0)}),s="dismissed"===o.state,u=r-1<=i,s=s||u,u=u?r-1:i,e=n.steps[u],p=e.isShown(),F.contentWindow.postMessage({mutation:"preview/setHostname",payload:{hostname:Je}},location.origin),F.contentWindow.postMessage({mutation:"preview/setGuidePages",payload:{guidePages:n.previewPages}},location.origin),F.contentWindow.postMessage({mutation:"preview/setGuideProgress",payload:{guideName:n.name,guideAttributes:JSON.stringify(n.attributes),guideLaunchMethod:n.launchMethod,guideActivationSelector:kd(n),isAdoptGuide:n.isTraining,isResourceCenter:t.isResourceCenter,stepId:e&&e.id,currentStepIndex:u,stepCount:r,elementPathRule:e.elementPathRule,elementContainsRulesList:e.elementContainsRulesList,triggerElementPathRule:e.triggerElementPathRule,isShown:p,pageId:e.pageId,completed:s,languageOptions:_.get(t,"languageOptions",[]),currentLanguage:t.language}},location.origin);var d=e,c=u,l=F;if(d&&l&&l.contentWindow){const h=d.getGuide().id;var p=_.filter(g.state.frames.frames,e=>"hidden"!==e.visibility&&e.guides&&e.guides[h]);if(p.length)p=_.map(p,e=>D.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:e.id,stepId:d.id,guideId:h,currentStepIndex:c})),m.all(p).then(t=>{let n={},i=-1;for(let e=0;e<t.length;e++){var r=JSON.parse(t[e]).errors;if(!r.GUIDE){var o=_.keys(r).length;if(!o){n={};break}-1===i?(n=r,i=o):d.regexUrlRule?!r.PAGE&&o<=i&&(n=r,i=o):o<i&&(n=r,i=o)}}l.contentWindow.postMessage({mutation:"preview/setErrors",payload:{errors:n}},location.origin)})["catch"](_.noop)}}else hf(0,{status:404,data:"Guide not found"})}return!0}function rf(e){if(g.getters["frames/leaderExists"]()){if(!g.getters["frames/isFollower"]()){if(F)return!0;var t,n;_.isFunction(e.addEventListener)&&e.addEventListener("message",af),(t=document.createElement("iframe")).id=Yh,Ko(t,{border:"none",display:"block !important",height:n="70px !important","min-height":n,left:0,position:"fixed",right:0,top:0,visibility:"visible !important",width:"100% !important","z-index":4e5}),t.onload=function(){if(f.get("inlineStyleNonce")){const n=t.contentDocument.createElement.bind(t.contentDocument);t.contentDocument.createElement=(e,...t)=>{t=n(e,...t);return"style"===e&&(e=f.get("inlineStyleNonce"))&&t.setAttribute("nonce",e),t}}var e=document.createElement("script");e.src=f.get("previewModeAssetPath")||ho("pendo.preview.min.js"),t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},F=t,na().appendChild(F)}}else v.one("leaderChanged",_.partial(rf,e))}function of(e,t,n){Dg(),g.commit("healthCheck/resetStepStatus",null,{root:!0}),lc.reset(),mv();var i=e[0],i=(i&&_.each(i.steps,function(e){e.seenState=null}),h.clear(ah),g.dispatch("preview/update",null),vf());return i&&(i=_.findWhere(e,{id:i.guideId}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),g.dispatch("preview/restart",i)),pf(e,t)}function af(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===Yh+"::exit"?(ff({preventWindowClose:n}),g.dispatch("frames/stopPreview",{preventWindowClose:n})):t===Yh+"::restart"?(n=of(md(),dh(),e.data.language),g.dispatch("guideState/forceExpire"),g.dispatch("guideState/updateLastGuideStepSeen",n),g.dispatch("frames/restartPreview")):t===Yh+"::resize"?(n=e.data.height,F&&F.style&&(F.style.height=n)):t===Yh+"::request-preview-mode-type"&&(e=yf(),F)&&F.contentWindow&&e&&F.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:e.previewModeType||"NEW_TAB"}},location.origin))}function sf(){return g.getters["preview/isInPreviewMode"]()}function uf(){return g.getters["preview/isInDesignerPreviewMode"]()}function df(e){var t,n,i=vf();if(!i)return e;if(i.isResourceCenter)return r=e,t=i,n=P.findResourceCenterHomeView(r),r=_.filter(r,function(e){return e.id!==n.id}),lf(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"))}),cf(t),t.showsAfter=null,t.expiresAfter=null,lf(t,o.stepId),r}}function cf(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function lf(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 pf(e,t){null==t&&(t={});var n=vf();if(!n)return t;e=_.findWhere(e,{id:n.guideId});if(!e)return t;if(n.state)return n.state;cf(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:n.guideId,guideStepId:n.stepId,state:"active"}:{}}function hf(e,t){F&&F.contentWindow&&F.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:t}},location.origin)}function ff(e){var t=yf(),n=!1,i=(t&&(n="SAME_TAB"===t.previewModeType),Xh.getItem("pendo-navigation-state"));if(g.dispatch("preview/exit"),Dg({stayHidden:!0}),h.clear(ah),ls.unlock(),k(F).remove(),Nm=Bd,Fh(nf),jt(!0),n&&i){Xh.setItem(Qh,JSON.stringify(_.extend(t,{isExitBackToDesigner:!0})));try{var r=JSON.parse(i),o={target:r.baseUrl,gcsBucket:r.gcsBucket,preloader:!0,DADesigner:r.isDADesigner,host:r.host,forceNativeDesigner:"web"===t.guide.appPlatform};g.dispatch("preview/launchInAppDesigner",o)}catch(a){g.dispatch("preview/exitDesignerPreview")}}else e&&!e.preventWindowClose&&window.close(),mv()}function gf(e,t){e=_.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function mf(){return g}var vf=_.partial(gf,mf,"state.preview.preview"),yf=_.partial(gf,mf,"state.preview.designerPreview");function bf(e){var t;if(e.subscriptionId&&e.guideId)return t=e.isResourceCenter?"/resourcecenter/":"/guide/","/api/s/"+It(e.subscriptionId)+t+It(e.guideId)+"/preview"}var wf=function(e){var t;return Aa(e.origin)?(t=bf(e))?(t={url:e.origin+t+"?url="+It(A.externalizeURL())+"&apiKey="+E.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),Lr(t).then(function(e){return e.data.guide})):(C.info("Invalid guide url, exiting preview"),m.reject("invalid guide url")):(C.info("Invalid origin, exiting preview"),m.reject("invalid origin"))},Sf={load(e,t,n){return If(e,n)},post(e,t,n,i){return If(e,i)},endpoint(){return""},usesXhr(){return!0}};function Ef(n,t){if(!Aa(n.origin))return C.info("Invalid origin, exiting preview"),m.reject("invalid origin");var e=bf(n);if(!e)return C.info("Invalid guide url, exiting preview"),m.reject("invalid guide url");if(!g.getters["frames/leaderExists"]()||n.apiKey!==E.apiKey)return E.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),m.resolve();let i=""+n.origin+e+`?url=${It(A.externalizeURL())}&apiKey=`+E.apiKey;n.childGuides&&n.childGuides.length&&(i+="&childGuides="+n.childGuides.toString()),uf()&&(i+="&ignoreGuide=true");var e={url:i,withCredentials:!0},r=(n.headers&&(e.headers=n.headers),[]);return Lr(e).then(function(e){var t,c,e=e.data;return uf()?(t=yf(),r=t?uf()?(_.each(t.guide.steps,function(t){let e=["domJsonpUrl","domUrl"];t.domUrl&&0===t.domUrl.indexOf("data:")&&(e=["domJson","contentJs","contentCss","content"]),_.each(e,function(e){delete t[e]})}),t.guide.showsAfter=null,t.guide.expiresAfter=null,[t.guide]):void 0:[],e.guide=r[0]):r=n.isResourceCenter?e.guide:(e.guide.previewPages=e.pages,[e.guide]),e.children&&(r=r.concat(e.children)),n.language&&n.language!==_.get(r,"[0].authoredLanguage")&&(t=r,c=n.language.value,_.forEach(t,function(d){_.forEach(d.steps,function(e){var{domHash:t,domJsonpHash:n,translationHash:i,originalDomJsonHash:r,originalDomJsonpHash:o,originalBuildingBlockHash:a,domHash256:s,domJsonpHash256:u}=_.get(d,"translationStates."+c+".stepTranslations."+e.id,{});e.domUrl=_f(r,e.domUrl,".dom.json",s),e.domJsonpUrl=_f(o,e.domJsonpUrl,".dom.jsonp",u),e.buildingBlocksUrl=_f(a,e.buildingBlocksUrl,".buildingBlocks.json"),t&&n&&i&&(e.domUrl=e.domUrl.replace(".dom.json","-"+t+"-"+c+".dom.json"),e.domJsonpUrl=e.domJsonpUrl.replace(".dom.jsonp","-"+n+"-"+c+".dom.jsonp"),e.buildingBlocksUrl=e.buildingBlocksUrl.replace(".buildingBlocks.json","-"+i+"-"+c+".buildingBlocks.json"))})})),n.watermarkConfig&&(e.guide.isTraining=!0),E.guideWidget={enabled:!1,data:{guideCssUrl:e.guideCssUrl}},E.guideCssUrl=e.guideCssUrl,E.normalizedUrl=e.normalizedUrl,E.throttling=undefined,e.guide}).then(function(e){var t;return n.watermarkConfig?(t=JSON.parse(JSON.stringify(n)),t=Object.assign(t,n.watermarkConfig),wf(t)):e}).then(function(e){e&&e.attributes&&e.attributes.isWatermark&&r.push(e),E.guidesPayload({id:t,lastGuideStepSeen:pf(r,E.lastGuideStepSeen),guides:df(r)})})["catch"](function(e){return hf(document,e),m.reject(e)})}function If(e,t){var n=vf();return!n||!bf(n)||!(e=/[?&]id=(\d+)/.exec(e))||e.length<1?m.reject():Ef(n,e[1]).then(t)}function _f(t,n,i,r){if(n){var n=n.split("/"),o=n[n.length-1];let e=o;return t&&(e=""+t+o.slice(o.indexOf(i))),r&&-1<(t=e.indexOf("sha256="))&&(e=e.slice(0,t)+"sha256="+r),n[n.length-1]=e,n.join("/")}}const Cf=function(){let n=null,i=[];const r=e=>{E.apiKey=e+="",n=e};return{getApiKey(){return E.apiKey},discoverKeys({apiKey:e,additionalApiKeys:t=[]}){n=null,i=[],e=e,(e=f.get("apiKey",e))&&r(e),n,e=t,e=f.get("additionalApiKeys",e),i=_.reduce(e,(e,t)=>(t&&e.push(t+""),e),[]),i=[].concat(e),E.additionalApiKeys=i,!n&&i&&i.length&&r(i[0])},getAdditionalApiKeys(){return E.additionalApiKeys},tamperedWith(){return E.apiKey!==n||E.additionalApiKeys!==i}}}(),xf=h.getLocal();Tf=Ze||Je,kf="in-app-designer",Af="latest",v.leaderChanged.on(function(){Of({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||uf()})});var Tf,kf,Af,Rf={launchDesigner:function(e){var t,n="latest",i="designer";yc(f,"designer-styles","@keyframes pendoExtensionSlideIn{from{transform:translate3d(-300px,0,0)}to{transform:translate3d(0,0,0);}}#pendo-draggable-handle{z-index:11;line-height: 15px;text-align:center;font-size:20px;letter-spacing:1.5px;position:absolute;width:100%;height:65px;font-size:16px;background-color:transparent;color:#ABE7DB;user-select:none;cursor: move;cursor: grab;cursor: -moz-grab;cursor: -webkit-grab;}#pendo-draggable-handle:active{cursor: grabbing;cursor: -moz-grabbing;cursor: -webkit-grabbing !important;}#pendo-draggable-handle.hidden{display:none;}#pendo-draggable-handle:hover{color:#2EA2A0;}#pendo-designer-container{animation-duration:375ms;animation-name:pendoExtensionSlideIn;animation-timing-function:cubic-bezier(0.4,0.0,0.2,1); box-shadow: 0px 2px 10px rgba(0,0,0,0.15);height:100vh;width:400px;position:fixed;top:0;left:0;overflow:hidden;border-radius:3px;z-index:1000000;}#pendo-mousemove-cover{position:absolute;height:100%;width:100%;top:0;left:0;z-index:9999999999;display:none;}#pendo-designer-container.fullscreen{width:100%;opacity:0.98;}#pendo-designer-container.closed{left:-400px;}#pendo-designer-iframe{background:#3a3c45;border:0px;height:100%;left:0;z-index:10;top:0;width:100%;}"),Bf("designer-shims",Tf+"/"+i+"/"+n+"/plugin.js"),E.DESIGNER_VERSION?Uf(n,i):t=window.setInterval(function(){E.DESIGNER_VERSION&&(Uf(n,i),clearInterval(t))},100)},launchInAppDesigner:Df,localStorageNavigation:Of,launchOnToken:function(e){if(!zf(window.name)){var t=/pendo-designer=([A-Za-z0-9-]+)/;if(t.test(e)){var n,e=t.exec(e);if(e)return t=function(e){try{return JSON.parse(atob(Et(e)))||{}}catch(t){return{}}}(e[1]),e=Mf(t),n=Ff(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),Df({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,Rf.hostConfig.host)},isValidDesignerHost:Nf,isValidTarget:Pf,addCommunicationIframe:function(e,t){e=e||{};_.isFunction(t)||(t=_.noop);var n=Ff(e),e=Lf(e),i=(new Date).getTime(),r=(Rf.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=Gf(r,Tf+"/"+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:Tf},isDesignerFrame:zf,addScriptToPage:Bf};function Of(e){if(!e.ignoreLocalStorageNavigation){var t,e=xf.getItem("pendo-navigation-state");if(e&&g.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(n){return}if(!t.apiKey||t.apiKey===Cf.getApiKey())if(t.apiKey||!t.agentInstallType||t.agentInstallType===we())return e=t.isDADesigner?"da-designer":"in-app-designer",e={target:t.baseUrl,preloader:!0,host:t.host,gcsBucket:t.gcsBucket||e,DADesigner:t.isDADesigner,forceNativeDesigner:!!t.forceNativeDesigner,sidebarDesigner:!!t.sidebarDesigner},Rf.launchInAppDesigner(e),!0}}}function Nf(e){return!!e&&Aa(e)}function Mf(e){var e=(e=e||{}).host||Tf,t=Nf(e),n=t?e:Je;return e&&!t&&C.info("Invalid host, falling back to "+Je),n}function Lf(e){var e=(e=e||{}).gcsBucket||kf,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:kf;return t||C.info("Invalid bucket, falling back to "+kf),e}function Pf(e){return"latest"===e||"strict"===e||"beta"===e||"via"===e||"mobile"===e||new RegExp("^[0-9]+.[0-9]+.[0-9]+(-[a-z0-9-]+[a-z0-9]+)?$").test(e)}function Ff(e){e=e||{};var t=f.get("enableCrossOriginIsolation")?"strict":Af,e=e.target||e.baseFolder||t,t=Pf(e),e=t?e:Af;return t||C.info("Invalid target, falling back to "+Af),e}function Df(e){if(!zf(window.name)&&!E.designerLaunched)if(f.get("disableDesigner"))C.info("Unable to launch the Visual Design Studio, set to disabled in configuration.");else{var t,n,i,r,o,a=!1;try{a=!!window.top.pendo}catch(s){}Rf.crossFrameChannel===undefined&&(Rf.crossFrameChannel=D,Rf.useCrossFrameChannel=!0),Ya()&&a&&!e.allowChildFrame&&!e.selectionOnly?C.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):E.isReady()?(E.designerLaunchTime=(new Date).getTime(),a=Mf(e=e||{}),r=Lf(e),o=Ff(e),i=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+r+"/"+o+"/"+i,f.get("useAssetHostForDesigner")&&(n=ho(i)),Rf.hostConfig={gcsBucket:r,baseFolder:o,uniqueWindowId:e.uniqueWindowId,host:a,adoptv2:e.adoptv2,DADesigner:e.DADesigner,agentInstallType:we(),forceNativeDesigner:!!e.forceNativeDesigner,sidebarDesigner:!!e.sidebarDesigner,apiKey:Cf.getApiKey()},i={},e.selectionOnly&&(i["selection-only"]=!0),f.get("pendoGlobalKey")&&(i["data-pendo-global-key"]=f.get("pendoGlobalKey")),r=f.get("designerAgentPluginsLoader"),o=window.__pendoExtensions&&e.forceNativeDesigner,a=!window.__pendoExtensions&&!_.isFunction(r),(o||a)&&(Rf.addScriptToPage(t,n,i),E.designerLaunched=!0),!e.forceNativeDesigner&&_.isFunction(r)&&(r(t,n,i),E.designerLaunched=!0)):C.error("Unable to launch the designer, the agent has not been initialized. Please use `pendo.initialize` prior to launching the designer")}}function Uf(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+="__"+Rf.windowCommunicationId,(t=Gf("pendo-designer-iframe",Tf+"/"+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 Gf(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&$o(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 Bf(e,t,n){var i;document.getElementById(e)||((i=document.createElement("script")).setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=K(E).createScriptURL(t),n&&_.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function zf(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(n){return!1}}jf={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"},Hf={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},(qf={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370}).FOOTER_HEIGHT=1.25*qf.HEADER_HEIGHT,qf.BODY_HEIGHT="calc(100% - "+qf.HEADER_HEIGHT+"px - "+qf.FOOTER_HEIGHT+"px)",Wf='<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>',(Vf={})["#"+jf.closeButton+":hover"]={"background-color":Hf.GRAY_LIGHTER_6},Vf["#"+jf.launchButton+":hover"]={"background-color":Hf.TEAL_DARKER+" !important"},Jf={PRIMARY_FONT:"Helvetica Neue"};var jf,Hf,qf,Wf,Vf,Jf,$f={listen:function(){return _.isFunction(document.addEventListener)?(document.addEventListener("keyup",Kf,!1),()=>{document.removeEventListener("keyup",Kf,!1)}):()=>{}},launchOnLocalStorageToken:ng,ids:jf,removeElement:Qf,attemptToLaunch:Yf,loadPluginJs:function(){var t;E.designerLaunched||(t=_.once(function(e){ng(e,!0)}),es(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}};function Kf(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&Yf(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&Yf(!1,!0)}function Zf(e,t){var n,i,r,o={"background-color":Hf.WHITE,height:qf.MODAL_HEIGHT+"px","min-height":qf.MODAL_HEIGHT+"px",width:qf.MODAL_WIDTH+"px",position:"fixed",top:qf.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-qf.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=Xf("div",jf.container,o);yc(f,jf.style,_.reduce(_.pairs(Vf),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=Xf("div",jf.header,{"background-color":Hf.GRAY_PRIMARY,height:qf.HEADER_HEIGHT+"px","min-height":qf.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(i=Xf("div",jf.logoContainer,{height:"38px",width:"44px","background-color":Hf.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=K(E).createHTML(Wf),r.appendChild(i),(i=Xf("div",jf.title,{width:"100%",display:"flex","align-items":"center","font-family":Jf.PRIMARY_FONT,"font-size":"18px",color:Hf.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=t?"VIA Designer":"Pendo Designer",r.appendChild(i),r)),o.appendChild(((t=Xf("div",jf.body,{height:qf.BODY_HEIGHT,"min-height":qf.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":Jf.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=Xf("div",jf.footer,{"align-items":"center","border-top":"1px solid"+Hf.GRAY_LIGHTER_6,display:"flex",height:qf.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":qf.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(r=Xf("button",jf.closeButton,{"border-radius":"3px",border:"none",height:qf.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":Jf.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(){Qf(jf.container),Qf(jf.commIframeId)},(t=Xf("button",jf.launchButton,{"background-color":Hf.TEAL_PRIMARY,"border-radius":"3px",color:Hf.WHITE,border:"none",height:qf.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":Jf.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(){ng(n)},i.appendChild(r),i.appendChild(t),i)),document.body.appendChild(o)}function Xf(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),_.extend(e.style,n),e}function Yf(t,n){var i,r,o;E.designerLaunched||(o=_.once(function(e){t||!n?ng(e):Zf(e,t),eg()}),es(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(jf.commIframeId)&&tg()},100))):eg())}),Rf.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){tg(),i=window.setInterval(tg,50)}))}function Qf(e){document.getElementById(e)&&document.getElementById(e).remove()}function eg(){var e=document.querySelector("#"+jf.commIframeId+'[src*="pendo"]');e&&e.remove()}function tg(){var e=document.getElementById(jf.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",Je))}function ng(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),Qf(jf.container),Rf.launchInAppDesigner(n)}var ig=_.wrap(_.wrap(_.once(_.wrap(function(e){var t=m.defer();return La(e,function(){t.resolve()}),t.promise},function(e,t){return 0<_.size(Gd._handlers.validateGlobalScript)?Lr.get(t).then(function(e){return Gd.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)})),function(e,t){return t?e(t):m.resolve()}),function(e,t){return f.get("preventCodeInjection")?m.resolve():e(t)}),rg={initializeWatermark:function(e){e=_.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),rg.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(rg.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return _.find(rg.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 og=1e4;function ag(n,i){var r=!1;const o=[];return n.addEventListener("message",function(e){u(e.data),i.state.guideUpdate.useObserver&&i.dispatch("guideUpdate/documentChanged")}),{postMessage:a,postMessageAsPromise:s,postMessageOrTimeout:function(e,t=og){const n=m.defer(),i=pt(32),r=(e=_.extend(e,{promiseId:i}),Ut(()=>{o[i]&&(n.reject(JSON.stringify({message:"request timed out"})),delete o[i])},t));return s(e).then(e=>{clearTimeout(r),n.resolve(e)}),n.promise},close:function(){r=!0,_.isFunction(n.close)&&n.close()}};function a(e){var t;r||(t=_.extend({apiKey:E.apiKey,allowMixedApiKeyFrames:f.get("allowMixedApiKeyFrames"),agentInstallType:we()},e),n.postMessage(t),Ut(function(){u(t)},0))}function s(e){e.promiseId||(t=pt(32),e=_.extend(e,{promiseId:t}));var t=m.defer();return o[e.promiseId]=t,a(_.extend(e,{sourceFrame:i.state.frames.frameId})),t.promise}function u(e){try{var t;r||e.apiKey!==E.apiKey&&(!1===e.allowMixedApiKeyFrames||!1===f.get("allowMixedApiKeyFrames"))||e.targetFrame&&e.targetFrame!==i.state.frames.frameId||(e.resolveId?(t=o[e.resolveId])&&(delete o[e.resolveId],t.resolve(JSON.stringify(e))):/^frames\/|^debugger\//.test(e.action)&&i.dispatch(e.action,e))}catch(n){C.critical("ERROR in cross frame channel",{error:n})}}}var sg="frames/removeFrame";function ug(e,t,n){return new dg(e,t,n,(e=t,t=n,new(_.isFunction(e.MessageChannel)?cg:lg)(e,t)))}function dg(e,t,n,i){this.init(e,t,n,i)}_.extend(dg.prototype,{init(e,t,n,i){this._store=e,this._window=t,this._singletonMessageHandler=n,this._listeners=[],this._targetOrigin=n.targetOrigin(),this._impl=i,this._impl.onconnect=_.bind(this._frameConnectHandler,this),this._impl.onmessage=_.bind(this._fireMessageListeners,this),this._impl.onrelay=_.bind(this._topMessageHandler,this),this._connectToTop(10,0,function(){this._addControlMessageHandler(),this._connectToTop(250,21,function(){this.close(),this._store.commit("frames/setConnectFailed")})})},_fireMessageListeners(t){_.each(this._listeners,function(e){e(t)})},_controlMessageHandler(e){e=this._impl._parseMessage(e);e.data&&("pendo::connect"===e.data.action&&this._impl.frameConnect(e),e.data.action===sg)&&this._topMessageHandler(e)},_topMessageHandler(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===sg&&this._impl.frameDisconnect(e),this._impl.broadcast(e))},_connectToTop(e,t,n){this._impl.connectToTop({action:"pendo::connect",frameId:this._store.state.frames.frameId},this._targetOrigin),Ut(_.bind(function(){this._connected||(0===t?_.isFunction(n)&&n.call(this):0<t&&this._connectToTop(Math.min(2*e,1e4),t-1,n))},this),e)},_addControlMessageHandler(){this._singletonMessageHandler.addEventListener(_.bind(this._controlMessageHandler,this))},_frameConnectHandler(e){e.data&&"pendo::connectSuccess"===e.data.action&&(this._connected=!0,this._impl.connectSuccess(e),this._store.dispatch("frames/join"))},addEventListener(e,t){"message"===e&&this._listeners.push(t)},postMessage(e){this._closed||this._impl.postMessage(e)},close(){this._closed=!0,this._listeners.length=0,this._impl.close()}});Li={_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 cg(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function lg(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(cg.prototype,Li,{connectToTop(e,t){this._closeChannel(),this._openChannel();var n=[];this._channel.port2&&n.push(this._channel.port2),this._window.top.postMessage(e,t,n)},frameConnect(e){var t,n=e.ports[0];(t=n)&&_.all(["addEventListener","start"],function(e){return _.isFunction(t[e])})&&((this._ports[e.data.frameId]=n).addEventListener("message",_.bind(this._relayMessage,this)),n.start(),n.postMessage({action:"pendo::connectSuccess"}),n.postMessage({action:"frames/receiveFrame",frame:g.state.frames.frames[g.state.frames.frameId],"pendo-preview":g.state.preview.preview}))},frameDisconnect(e){delete this._ports[e.data.frameId]},connectSuccess(){this._port.removeEventListener("message",this._boundFrameConnectHandler),this._port.addEventListener("message",_.bind(this._messageReceived,this))},broadcast(t){_.each(this._ports,function(e){t.target!==e&&e.postMessage(t.data)})},postMessage(e){this._port&&this._port.postMessage(e),e.action===sg&&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(lg.prototype,Li,{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)}});pg=window,hg=Aa,gg=!(fg=[]);var pg,hg,fg,gg,mg={targetOrigin(){return gg?location.origin:"*"},secure(e){gg=e},addEventListener(e){0===fg.length&&pg.addEventListener("message",vg),fg.push(e)},removeEventListener(e){e=fg.indexOf(e);0<=e&&fg.splice(e,1),0===fg.length&&pg.removeEventListener("message",vg)},close(){pg.removeEventListener("message",vg),fg.length=0}};function vg(t){gg&&!hg(t.origin)||_.each(fg,function(e){_.isFunction(e)&&e(t)})}function yg(e){if(!ze.addEventListener)return{addEventListener:_.noop,postMessage:_.noop,close:_.noop};var t=!!window.__pendoExtensions;if(f.get("preferBroadcastChannel")&&!t&&_.isFunction(window.BroadcastChannel)){e.commit("frames/setChannelType","BroadcastChannel");t=function(e,o){const a=[];return e.removeEventListener=_.wrap(e.removeEventListener,function(e,t,n){var i,r=_.toArray(arguments).slice(1);return"message"===t&&0<=(i=_.findIndex(a,e=>e[0]===n))&&(r[1]=a[i][1],a.splice(i,1)),e.apply(this,r)}),e.addEventListener=_.wrap(e.addEventListener,function(e,t,n){var i,r=_.toArray(arguments).slice(1);return"message"===t&&(r[1]=i=function(e){if(e.data.tabId===o.getTabId())return n.apply(this,arguments)},a.push([n,i])),e.apply(this,r)}),e.postMessage=_.wrap(e.postMessage,function(e,t){return t.tabId=o.getTabId(),e.apply(this,_.toArray(arguments).slice(1))}),e}(new BroadcastChannel("pendo"),gn);if(t&&_.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),ug(e,window,mg)}const bg="guides_blocked",wg="Guides disabled: unreachable endpoint guide.gif";function Sg(e){return JSON.parse(JSON.stringify(e))}class Eg{constructor(e,t){this.apiKey=e,this.cacheGuides=t.get("cacheGuides"),this.cacheGuidesTimeout=t.get("cacheGuidesTimeout"),this.cacheGuidesPersistent=t.get("cacheGuidesPersistent"),this.cache=null,this.db=null}openDB(e,t=window.indexedDB){if(!this.cacheGuidesPersistent)return m.resolve();if(this.db)return m.resolve(this.db);const n=m.defer();e=t.open("pendo-"+e,1);return e.onerror=()=>{C.warn("Error opening guide database"),this.cacheGuidesPersistent=!1,n.resolve()},e.onsuccess=e=>{e=e.target.result;this.db=e,n.resolve(e)},e.onupgradeneeded=e=>{const t=e.target.result;t.createObjectStore("guides",{keyPath:"guide.id"}).transaction.oncomplete=()=>{this.db=t,n.resolve(t)}},n.promise}load(t=S()){if(this.cache)return m.resolve(this.cache);if(this.cache={},!this.db)return m.resolve(this.cache);const n=m.defer(),i=this.db.transaction(["guides"],"readwrite").objectStore("guides");var e=i.getAll();return e.onerror=()=>{C.warn("Error loading guide cache"),this.cacheGuidesPersistent=!1,this.db=null,n.resolve(this.cache)},e.onsuccess=e=>{e=e.target.result;_.each(e,e=>{e.expires>t?this.cache[e.guide.id]=e:i["delete"](e.guide.id)}),n.resolve(this.cache)},n.promise}add(e,t,n=S()){if(this.cacheGuides&&this.cache)return n={expires:n+this.cacheGuidesTimeout,visitorId:t,guide:Sg(e)},this.cache[e.id]=n,this.save(n)}save(e){if(this.db){var t=this.db.transaction(["guides"],"readwrite").objectStore("guides");const n=m.defer();t=t.put(e);return t.onerror=()=>{C.warn("Error saving guide to cache "+e.guide.id),n.resolve()},t.onsuccess=()=>{n.resolve()},n.promise}}update(t){if(this.cache){var e=this.cache[t.guideId];if(e){var n=_.find(e.guide.steps,e=>e.id===t.guideStepId);if(n)return n.seenState=t.state,n.seenReason=t.seenReason,n.lastSeenAt=t.time,null!=t.dismissCount&&(n.dismissCount=t.dismissCount),null!=t.snoozeEndTime&&(n.snoozeEndTime=t.snoozeEndTime),this.save(e)}}}list(n,i=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 Sg(this.cache[e].guide)}clear(){this.cache={},this.db&&this.db.transaction(["guides"],"readwrite").objectStore("guides").clear()}}const Ig=h.getLocal();var _g=[],Cg="Guide was not shown because this visitor is in a control group of an active experiment for the guide";const xg=[];function Tg(){var e=f.get("guideCssAssetPath");return e||ho("guide.css")}var kg="_pendo-guide_",Ag="_pendo_g_",Rg=0;function Og(e){Rg=e}var Ng=function(){return _.any(O,function(e){return e.isShown()})},Mg=function(e,t){var n=k("._pendo-close-guide_",e);return n.length||(n=k(document.createElement("button")).attr("id","_pendo-close-guide_").attr("aria-label","close").addClass("_pendo-close-guide_").text("\xd7"),je()?9<Ce&&n.css({top:3}):8===Ce?n.css({top:9,right:2}):9===Ce?n.css({right:2,top:3}):9<Ce&&n.css({top:3}),e=k("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},Lg=function(n){return _.reduce(O,function(e,t){return n(t)&&e.push(t),e},[])},Pg=function(e,t,n,i,r,o){e=gd(N(e),t);e&&(e.seenState=n,e.lastSeenAt=i,e.destinationStepId=o,r!==undefined)&&(e.dismissCount=r)},Fg=function(e){for(var t=new RegExp("^"+Ag);e;){if(_.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function Dg(t){_.each(O,function(e){_.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var Ug=function(e){return e&&e.guideId};var Gg=function(e,t){var n,i;return Ug(e)&&(t=e,e=null),(n=t)&&_.isFunction(n.render)?t:t?(n=N(t.guideId))&&n.findStepById(t.id):(n=_.find(O,function(e){return e.isShown()}))?((i=e?Fg(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||No("findStepForGuideEvent: step with id "+i):(t=_.find(n.steps,function(e){return e.isShown()}))||No("findStepForGuideEvent: no step shown"),t):void 0},Bg=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=xd(e);"tooltip"===e.type&&_.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Qu(n,t,Zg,!0)};function zg(e){return e.isLocked()&&(!e.elements||!e.elements.length||void Mo('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}var jg=function(e){var e=k("#_pendo-badge_"+e.id),t=e.find("input"),t=0<t.length?t:e;t.length<1||t[0].focus()},Hg=function(e){e=_.get(e,"attributes.activation.selector",""),e=Cr(e);e.length<1||e[0].focus()},qg=function(){var e=P.getResourceCenterBadge();e?e.element().focus():(e=P.getResourceCenter(),Hg(e))},Wg=function(e){if(!E.designer&&e&&"building-block"===_.get(e,"attributes.type","")){var t=e.steps[0],n=t.seenReason,i=_.get(e,"launchMethod","").split("-"),r=_.contains(i,"dom"),o=_.contains(i,"badge"),i=um(e);if(_.get(t,"attributes.isAutoFocus")||i)switch(n){case"badge":o&&jg(t);break;case"dom":r&&Hg(e);break;case"launcher":qg();break;default:return}}};function Vg(e,t){return!e.isMultiApp&&("auto"===t||"repeatGuide"===t)}var Jg=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=Gg(e,t))&&t.id?zg(t)||("dismissed"===t.seenState?C.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(C.info("onGuideDismissed called",{contexts:["guides"]}),v.beforeDismiss.trigger(t).cancel?C.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(Bg(t),e=t.id,n=N(s=t.guideId),i=(i=_.first(n&&n.steps))&&i.seenReason,o=n&&n.language,r=_.get(t,"dismissCount",0)+1,hm(s,e,y(),i,o),o=S(),Pg(s,e,"dismissed",o,r),(a=_.isFunction(t.getGuide)&&t.getGuide())&&a.attributes&&a.attributes.doNotResume||sh({guideId:s,guideStepId:e,time:o,state:"dismissed",seenReason:i,visitorId:y(),dismissCount:r}),Vg(n,i)&&mm(o,gm.DISMISSED),t.hide(),Wg(a),Ng()||(Ih(),_h())))):Ih()},$g=function(e,t,n){var i,r,o,a,s,u,d,c;C.info("onGuideSnoozed called",{contexts:["guides"]}),(t=Gg(e,t))?"snoozed"===t.seenState?C.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):v.beforeSnooze.trigger(t).cancel?C.info("Guide snooze canceled during runtime in step: "+t.id):(n||(n=864e5,C.info("no snooze duration provided, defaulting to 1 day")),zg(t)||(Bg(t),e=t.id,i=t.guideId,r=y(),o=N(i),a=o&&o.language,s=_.first(o&&o.steps),s=s&&s.seenReason,u=S(),C.info("snoozing guide for "+n+" ms"),d=u+n,t.snoozeEndTime=d,c=ym({type:"guideSnoozed",guideId:c=i,stepId:e,visitorId:r,seen_reason:s,language:a,snooze_duration:n}),Sm(c),v.guideSnoozed.trigger(c),Pg(i,e,"snoozed",u),o&&o.attributes&&o.attributes.doNotResume||sh({guideId:i,guideStepId:e,time:u,state:"snoozed",seenReason:s,visitorId:y(),snoozeEndTime:d}),Vg(o,s)&&mm(u,gm.SNOOZED),t.hide(),Wg(o),Ng())||(Ih(),_h())):(C.info("missing step. can't snooze",{contexts:["guides","error"]}),Ih(),No("onGuideSnoozed: missing step"))},Kg=function(e){var t,n,i,r=(r=e&&e.step)||Gg(e);r?(i=e&&e.params,i=_.find(i,function(e){return"goToStepId"===e.name}),t=i&&i.value,(t=e&&e.destinationStepId?e.destinationStepId:t)?t===r.id?C.info("[goToStep] step id matches the current step",{contexts:["guides","error"]}):(i=N(r.guideId),(n=_.find(i.steps,function(e){return e.id===t}))?(n=_.indexOf(i.steps,n),i=_.indexOf(i.steps,r),e.steps=Math.abs(n-i),e.action=e.action||"goToStep",e.destinationStepId=t,i<n?Zg(e,r,!1):Xg(e,r)):C.info("[goToStep] guide has no step matching the step id",{contexts:["guides","error"]})):C.info("[goToStep] missing step id to go to",{contexts:["guides","error"]})):C.info("[goToStep] missing current step",{contexts:["guides","error"]})},Zg=function(e,t,n){if((s=yv())&&_.each(s.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=xd(e);"tooltip"===e.type&&_.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Qu(n,t,Zg,!0)}),1===arguments.length&&Ug(e)&&(s=hd(e.guideId),i=Gg(),s)&&i&&_.first(s.steps).id===i.id&&_.last(s.steps).id===e.id&&(C.info("Cannot skip to last step from first step"),e=null),C.info("onGuideAdvanced called",{contexts:["guides"]}),(t=Gg(e,t))===e&&(e=null),t){if(!zg(t))if("advanced"!==t.seenState||n)if(v.beforeAdvance.trigger(t).cancel)C.info("Guide advance canceled during runtime in step: "+t.id);else{var i=e&&e.action&&"goToStep"===e.action||!1,r=N(t.guideId),o=r&&r.language,a=r&&r.steps&&_.findIndex(r.steps,e=>t.id==e.id);if(e&&_.isNumber(e.steps)&&1<e.steps&&!i){var s=a+(e.steps-1),u=s=s>=r.steps.length?r.steps.length-1:s;!0===e.skip&&(u=a+1);for(var d=a;d<u;++d){t=r.steps[d],fm(r.id,t.id,y(),t.seenReason,o,d!==a);var c=S();sh({guideId:t.guideId,guideStepId:t.id,time:c,state:"advanced",seenReason:t.seenReason,visitorId:y()}),Pg(r.id,t.id,"advanced",c,undefined,h)}return Zg(r.steps[s],t,!0)}var l,i=t.id,s=t.guideId,p=_.first(r&&r.steps),p=p&&p.seenReason,h=e&&e.destinationStepId,f=(h||(f=e&&_.isNumber(e.steps)&&1<e.steps?e.steps:1,h=(f=_.isNumber(a)&&r&&r.steps&&r.steps[a+f])&&f.id||null),h||C.info("missing destination step id"),C.info("advancing guide"),fm(s,i,y(),p,o,n,h),C.info("update guide status"),r&&_.last(r.steps).id===i&&(l=_.get(t,"dismissCount",0)+1),(new Date).getTime()),g=(Pg(s,i,"advanced",f,l,h),_.isFunction(t.getGuide)&&t.getGuide());g&&g.attributes&&g.attributes.doNotResume||sh({guideId:s,guideStepId:i,time:f,state:"advanced",seenReason:p,visitorId:y(),destinationStepId:h,dismissCount:l}),Vg(r,p)&&mm(f,gm.ADVANCED),C.info("stop guide"),Ih(),C.info("start guides"),_h()}else C.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else C.info("missing step. can't advance",{contexts:["guides","error"]}),Ih(),No("onGuideAdvanced: missing step")},Xg=function(e,t){var n,i,r,o,a,s;C.info("onGuidePrevious called",{contexts:["guides"]}),(t=Gg(e,t))?"advanced"===t.seenState?C.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):v.beforePrevious.trigger(t).cancel?C.info("Guide previous canceled during runtime in step: "+t.id):(o=N(n=t.guideId),s=e&&e.action&&"goToStep"===e.action||!1,0!==(i=_.indexOf(o.steps,t))&&(r="element"==t.advanceMethod?"click":"mouseover",a=xd(t),"tooltip"===t.type&&_.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):Qu(a,r,Zg,!0),a=e&&_.isNumber(e.steps)?e.steps:1,r=_.first(o&&o.steps),a=0<=(i=i-a)?o.steps[i]:r,i=r&&r.seenReason,r=o&&o.language,o=a.id,(o=s&&e&&e.destinationStepId?e.destinationStepId:o)||C.info("missing destination step id"),C.info("advancing guide"),fm(n,t.id,y(),i,r,!1,o),C.info("update guide status"),a=(new Date).getTime(),Pg(t.guideId,t.id,"advanced",a,undefined,o),(s=_.isFunction(t.getGuide)&&t.getGuide())&&s.attributes&&s.attributes.doNotResume||sh({guideId:t.guideId,guideStepId:t.id,time:a,state:"advanced",seenReason:i,visitorId:y(),destinationStepId:o}),Ih(),_h())):(Ih(),No("onGuidePrevious: missing step"))},Yg=function(e){var t;k("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",po()+"/img/tiny-logo.png"),t=k(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:E.TOOLTIP_ARROW_SIZE}).append(t),od.push(t[0]),t.appendTo(e))};function Qg(e){return e&&e.attributes&&e.attributes.stayHidden}const em=(e,t,n)=>{var i;return Bh()&&({id:e,guideId:i}=e,v.stepEligibility.trigger({stepId:e,guideId:i,eligible:t,reason:n})),t};var tm=function(e){var t,n,i=_.partial(em,e);return Qg(e)?i(!1,"dismissed"):e.elementPathRule||"lightbox"!==e.type&&"whatsnew"!==e.type?e.triggerElementPathRule&&!ya(Cr(e.triggerElementPathRule)[0])?i(!1,"trigger_element"):(t=xd(e),(n=e.targetElement)&&e.elementContainsRulesList&&!im(n,e.elementContainsRulesList)?i(!1,"contains_rules"):(n="tooltip"===e.type||Kc.isBuildingBlockGuideRelativeToElement(e),e=ya(t),n?e?i(e,"target_element_tooltip"):i(ba(t),"target_element_tooltip_scroll"):i(e,"target_element"))):i(!0,"")};function nm(e){var t=(k(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function im(e,t){for(var n=nm(e),i=0;i<t.length;i++)if(!rm(n,t[i]))return!1;return!0}function rm(e,t){var n=t.matchType,i=t.matchValue,t=t.dataType,e=e||"";if("number"===t){var r=bt(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 Ag+e.id},am=function(e){var t=e.element,n=_.first(k("#"+om(e)));t&&n?ya(t)||k.hasClass(n,"mouseover")?Ut(function(){am(e)},wh):e.hide&&(e.hide(),Ng())||(Ih(),_h()):t||!n||e.hide&&(e.hide(),Ng())||(Ih(),_h())},sm=function(){return!1},um=_.partial(_.get,_,"attributes.resourceCenter"),dm=function(t){var e;Ng()&&(e=Gg(),Bg(e),um(t)?(e=Lg(um),(e=_.filter(e,function(e){return e.id!==t.id})).length&&g.dispatch("frames/hideGuides",_.pluck(e,"id"))):(Dg(),g.dispatch("frames/hideGuides")))},cm=function(e,t){return!(!e||!e.guideId||!(e=N(e.guideId)))&&(dm(e),e.launch(t),e.isShown())},lm=function(e,t,n,i,r,o){e=ym({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&_.extend(e.props,{step_poll_types:o}),Sm(e),v.guideNotSeen.trigger(e)};var pm=function(e,t,n,i,r,o){i||(C.critical("pendo.io guideSeen exception",{guideId:e,stepId:t,error:new Error("seenGuide called without seen reason")}),a=N(e),s="auto",i=a&&(a=(a.launchMethod||s).split("-"),!_.contains(a,s))&&a.length?_.first(a):s);var a=ym({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),s=(_.extend(a.props,o),Sm(a),S());sh({guideId:e,guideStepId:t,time:s,state:"active",seenReason:i,visitorId:y()}),Pg(e,t,"active",s),v.guideSeen.trigger(a)};function hm(e,t,n,i,r){e=ym({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});Sm(e),v.guideDismissed.trigger(e)}function fm(e,t,n,i,r,o,a){e={type:"guideAdvanced",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r},a&&(e.destination_step_id=a),t=ym(e);Sm(t,null,o),v.guideAdvanced.trigger(t)}var gm={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function mm(e,t){vm(e,t);var n={};n[t]=e,g.dispatch("frames/changeThrottlingState",n)}function vm(e,t){_.contains(_.values(gm),t)&&(_.isFunction(e.getTime)&&(e=e.getTime()),E[t]=e,h.write(t,e,oh),g.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function ym(e,t,n,i,r,o){var a=e,e=("object"!=typeof a&&(a={type:e,guideId:t,stepId:n,visitorId:i,language:o}),r&&(a.reason=r),_.isString(a.language)||delete a.language,_.extend({guide_id:a.guideId,guide_step_id:a.stepId},_.omit(a,"type","guideId","stepId","visitorId"))),t=gn.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:$n(),browser_time:(new Date).getTime(),url:A.externalizeURL(),props:e});return v.eventCaptured.trigger(t),t}var bm=null,wm=function(e){window.clearTimeout(bm),bm=Ut(Km,e)},Sm=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-Rg,ev(),Jm.push(e),wm(t)},Em=function(e,t){return"dismissed"===e.state?null:N(e.guideId).nextStep(e,t||nd())},Im=function(e,t){e=fd(e);return!!e&&(!(t=cm(_.first(e.steps),t||"api"))&&e.control&&C.info(Cg),t)},_m=function(e,t){e=N(e);return!!e&&(!(t=cm(_.first(e.steps),t||"api"))&&e.control&&C.info(Cg),t)};function Cm(e,t){return t=parseInt(t,10),isNaN(t)||!_.isNumber(t)||!(_.isNumber(e)&&e<t)&&_.isNumber(e)?e:t}var xm,Tm=function(){Ih(),Eh(),P.removeNotificationBubble(),Jh(),ms()};function km(){Ih(),Go(),E.segmentFlags=[],E.doNotProcess=!0,g.commit("debugger/doNotProcess",!0),C.info("not tracking visitor due to 451 response")}function Am(e){xm&&(451===e.statusCode&&(km(),xm.deferred.reject(e)),_.isString(e.id)&&e.id!==xm.id||(_.extend(E,e),E.guides=_.map(E.guides,function(e){return 1==_.keys(e).length&&e.id?nv.get(e.id):(nv.add(e,y()),e)}),xm.deferred&&xm.deferred.resolve(),xm=null))}function Rm(){return gv.pending||!(!xm||!E.id||E.id===xm.id)}var Om=function(o,a){var e,s=fo(),u=_.uniqueId(),d=m.defer();return xm={id:u,deferred:d},Yl()||((e=Ql())?(C.info("sending metadata: "+JSON.stringify(e),{contexts:["guides","metadata"]}),a.metadata=e):C.info("no metadata to send",{contexts:["guides","metadata"]})),nv.list(a.visitorId).then(e=>{0<e.length&&(a.cachedGuides=e);var e=at(a),t={id:u,jzb:e,v:Xe,ct:(new Date).getTime()},n=(s&&a.accountId&&"ACCOUNT-UNIQUE-ID"!==a.accountId&&(t.acc=dt(a.accountId)),Bh()&&(t.debug=!0),Ro(Nm.endpoint(),o,t)),i=Is.get();let r;return r=2e3<n.length||!_.isEmpty(i)?(delete t.jzb,n=Ro("guide.json",o,t),t=_.extend({events:e},i),Nm.post(n,t,E,_.noop)):Nm.load(n,E,_.noop),m.all([r["catch"](function(e){return 451===e.status&&km(),m.reject(e)}),d.promise,(e=Nm,i=o,"1"===(t=h.read(bg))?(C.info(wg),m.resolve({success:!1,cached:!0})):"0"===t?m.resolve({success:!0,cached:!0}):(t=Ro("guide.gif",i,{jzb:"eJwFwIEIAAAAwDDQd3-N1QABFQC5",ct:S(),v:Xe}),(e.usesXhr()?Lr.get(t):Po(t)).then(function(){return{success:!0}},function(e){return e&&e.status?{success:!0}:{success:!1}})))]).then(function([,,e]){var t;if((t=e).cached||(t.success?h.write(bg,"0",144e5):(C.info(wg),h.write(bg,"1",18e5))),!e.success)return m.reject()})})},Nm=Bd;function Mm(e){e=_.find(e.steps,e=>e.pageId&&!e.regexUrlRule);return!e||(C.critical("pendo.io guide validation exception",{guideId:e.guideId,stepId:e.id,error:new Error("missing regexUrlRule for page "+e.pageId+'"')}),!1)}function Lm(n){return _.every(xg,e=>{try{return e(n)}catch(t){return console.debug("Error in guide processor",e,n.id),!1}})}function Pm(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&_.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}var Fm,Dm=function(){return!f.get("disableGlobalCSS")};function Um(e,t){var n=f.get("dropAnonymous");if(Pn(e)&&n)C.info("loading guides blocked for anonymous visitors due to dropAnonymous config setting being set to true"),_.isFunction(t)&&t("error: guides are blocked");else if("1"===h.read(bg))C.info("guide events are blocked, load guides cancelled"),_.isFunction(t)&&t("error: guides are blocked");else{if(ds(cs()))return 1;C.info("bad url: probably local file system",{contexts:["guides","error"]}),_.isFunction(t)&&t("error: invalid url")}}var Gm=function(e,a,s,u){var d=m.defer(),c=!1;if(e=e||E.apiKey,Um(a=a||y(),u)){C.info("loading guides for "+s+"...",{context:["guides"]}),s=A.externalizeURL(s);var n,t,l=Gm.lastVisitorId!==a?_.noop:(i=O,(t=_.find(i,function(e){return _.isFunction(e.isRendered)&&e.isRendered()&&!e.isTopLevel}))?(n=_.chain(t.steps).filter(function(e){return e.isRendered()}).indexBy("id").value(),function(e){e=_.findWhere(e,{id:t.id});e&&!_.get(e,"attributes.doNotResume")&&_.each(e.steps,function(e){var t=n[e.id];!t||e.seenState&&"active"!==e.seenState||e.show(t.seenReason)})}):function(){}),i=(Gm.lastVisitorId=a,Eh(),g.commit("guideState/setLastGuideRequestAt",S()),{visitorId:a,accountId:$n(),url:s,oldVisitorId:Hn=Hn===undefined&&Fn()?Zn(On):Hn});const p=_.uniqueId();Gm.reqId=p,Om(e,i).then(function(){if(!c&&!E.designer)if(Gm.reqId!==p)d.resolve();else{v.deliverablesLoaded.trigger(),C.info("successfully loaded guides for "+s,{contexts:["guides"]}),E.designerEnabled&&"true"!==Ig.getItem("pendo-designer-mode")&&$f.loadPluginJs(),Tm();var t=E.lastGuideStepSeen;if(t){g.dispatch("guideState/receiveLastGuideStepSeen",t),t.visitorId=a,g.dispatch("guideState/updateLastGuideStepSeen",t),g.commit("guideState/setLastGuideRequestAt",S()),sd={};t=E.guides;var t=_.chain(t).map(ac).filter(Mm).filter(Lm).sortBy(Pm).value(),n=(ld(t),md());g.dispatch("guideState/load",(r=ah,o=f.get("crossAppGuideStorageSuffix"),h.read(r,!1,o))),g.dispatch("guideState/apply"),E.latestDismissedAutoAt=Cm(E.latestDismissedAutoAt,h.read("latestDismissedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestDismissedAutoAt",value:E.latestDismissedAutoAt}),E.finalAdvancedAutoAt=Cm(E.finalAdvancedAutoAt,h.read("finalAdvancedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"finalAdvancedAutoAt",value:E.finalAdvancedAutoAt}),E.latestSnoozedAutoAt=Cm(E.latestSnoozedAutoAt,h.read("latestSnoozedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestSnoozedAutoAt",value:E.latestSnoozedAutoAt}),g.dispatch("healthCheck/init",t),g.dispatch("frames/changeGuideList",n),E.eventProperties=uv(E.features);let e=m.resolve();E.globalJsUrl&&(e=ig(uc(E.globalJsUrl))["catch"](function(e){C.error("Error loading global script: ",e)})),n.length?m.all([Vm(),e,Ym(t),rg.initializeWatermark(t),jm(5e3)].concat((i=t,_.map(Bm,function(e){return e(i)})))).then(function(){Gm.reqId===p&&(g.getters["frames/isLeader"]()&&l(O),v.guidesLoaded.trigger(),_h(),clearTimeout(Fm)),_.isFunction(u)&&u(),d.resolve()},function(e){C.error("Post loadGuide request failed: ",e),v.guidesFailed.trigger(),d.reject()}):(v.guidesLoaded.trigger(),d.resolve())}else C.info("lastGuideStepSeen is not set, shutting down guides")}var i,r,o})["catch"](function(e){v.guidesFailed.trigger(),d.reject(e)});e=f.get("guideTimeout")||f.get("guides.timeout");_.isNumber(e)&&(clearTimeout(Fm),Fm=Ut(function(){var e;e=d,Tm(),e.reject(),c=!0},e))}else d.reject();return d.promise};var Bm=[];function zm(e,t){var n,i=document.getElementById(e);return i&&i.href&&0<=i.href.indexOf(t)?m.resolve():(n=m.defer(),k(i).remove(),E.loadResource(t,function(){n.resolve()}).id=e,n.promise)}var jm=_.memoize(function(t,n,e){if(!Dm()||!Hm(O))return m.resolve();n=n||S,e=e||"_pendo-hidden_";var i=k(document.createElement("div")).addClass(e).css({position:"absolute",bottom:"0px",right:"0px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(k.getBody()),r=n(),o=m.defer();return function s(e){Ut(function(){a(i[0])?(i.remove(),o.resolve()):n()-r>t?(i.remove(),o.reject("Unable to find global css after delay")):s(100)},e)}(0),o.promise;function a(e){e=R(e);if(e)return"none"===e.display}});function Hm(e,t){return t&&t.designer||_.any(e,function(e){return!Sd(e)&&_.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl||e.domJson)})})}const qm="_pendo-default-css_",Wm="_pendo-css_";function Vm(){var e=[];if(!Dm())return m.resolve();Hm(O,E)&&e.push(zm(qm,Tg()));var t=((E.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(zm(Wm,uc(t))):k("#"+Wm).remove(),m.all(e)}var Jm,$m,Km=function(e){Jm&&Jm.flush(e)},Zm=function(){return _g};function Xm(e){var t=Fs(Qs,zs("visitor_id"),zs("props.guide_id"),zs("props.source"),Ys,eu(),iu(e),ru,ou,hu),n=Fs(Us,Gs(e.cache),_.noop);return new yu(_.extend({processSilos:t,packageSilos:n},e))}var Ym=function(e){return P.initializeResourceCenter(e)},D={postMessage:_.noop,close:_.noop};let Qm=D;function ev(e){return Jm=Jm||Xm(_.extend({cache:_g,apiKey(){return E.apiKey},beacon:"guide",allowPost:!0,preferFetch:ze.safari},e)),$m=$m||Xm(_.extend({cache:[],apiKey(){return E.apiKey},beacon:"poll",allowPost:!0,preferFetch:ze.safari},e)),hs(Jm),hs($m),()=>{Jm.clear(),$m.clear(),fs(Jm),fs($m)}}function tv(e){var e=e["blockedURI"];e&&-1!==e.indexOf("/data/guide.json")&&f.get("cacheGuides")&&((e=f.getLocalConfig()).cacheGuides=!1,f.setLocalConfig(e),Or(window,"securitypolicyviolation",tv),mv())}let nv;var iv=function(e){const t=[];t.push(ev({localStorageUnload:f.get("analytics.localStorageUnload")})),nv=new Eg(E.apiKey,f),jh.run(),t.push(jh.stop),v.appUnloaded.on(function(){g.dispatch("frames/leave")}),v.metadata.on(function(e){e=e.data[0].storeChanged;e&&!Yl()&&gv()}),v.identify.on(function(){gv()}),v.urlChanged.on(function(){gv(A.get())}),v.guideUpdateComplete.on(function(){var e,t,n;e=_.filter(O,e=>_.isFunction(e.outsideTimebox)&&e.outsideTimebox()),pd.addGuide(e),lc.processPrefetch(),e=O,t=ad,f.get("disablePrefetch")||(t=_.keys(t)).length&&(n=_.indexBy(e,"id"),_.each(t,function(e){var e=n[e];e&&(e=_.first(e.steps))&&_.isFunction(e.fetchContent)&&e.fetchContent(!0)}))}),v.guidesLoaded.on(function(){P.fetchAnnouncementGuidesContent(O,g)}),v.guideListChanged.on(function(e){e=e.data[0].guideIds;if(e&&e.length){const n=_.indexBy(e);_.each(ad,function(e,t){n[t]||(e.hide(),delete ad[t])})}}),t.push(function(e,t,n){var{Turbolinks:i,Turbo:r}=window;let o;if(i&&(o=i.EVENTS&&i.EVENTS.LOAD),!(o=r&&r.visit?"turbo:load":o))return()=>{};const a=Rr(e,o,t),s=Rr(e,"turbo:before-cache",n);return()=>{a(),s()}}(document,function(){A.get()===fv.lastUrl&&mv()},function(){Tm()}));var n=f.get("guides.tooltip.arrowSize");if(_.isNumber(n)&&(E.TOOLTIP_ARROW_SIZE=n),Qm=yg(g),D=ag(Qm,g),t.push(()=>D.close()),t.push(gn.tabIdChanged(function(){var e=gn.getTabId();g.commit("frames/setTabId",e),g.dispatch("frames/join")})),g.dispatch("frames/init"),g.dispatch("frames/join"),t.push(function(){const e=[];return g.dispatch("guideState/init"),e.push(Rr(window,"focus",uh)),e.push(Rr(window,"storage",function(e){g.dispatch("guideState/storageChanged",e)})),()=>_.each(e,function(e){e()})}()),t.push(()=>{lv.cancel(),Zh.cancel()}),t.push(Rr(window,"resize",lv)),t.push(Rr(window,"scroll",Zh,!0)),t.push(Rr(window,"gestureend",pv,!0)),t.push(Rr(window,"securitypolicyviolation",tv)),t.push(function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];const t=[];for(var n=0;n<e.length;n++)t.push(Rr(document,e[n],hv));return()=>{_.each(t,function(e){e()})}}()),e.observing){const i=_.debounce(function(){g.dispatch("guideUpdate/documentChanged")},50);t.push(()=>{i.cancel()}),t.push(l(window,"animationend",i)),t.push(l(window,"transitionend",i)),t.push(l(window,"mouseover",i)),g.commit("guideUpdate/setObserver",e),g.commit("guideUpdate/setUseObserver"),t.push(()=>g.dispatch("guideUpdate/stopObserver"))}return h.registry.addLocal(gm.ADVANCED),h.registry.addLocal(gm.DISMISSED),h.registry.addLocal(gm.SNOOZED),h.registry.addLocal(bg,{duration:144e5}),fc.initialize(),()=>{nv=null,fv.reset(),Tm(),gv.reset(),Gm.reqId=null,_.each(t,function(e){e()}),k("#"+qm).remove(),k("#"+Wm).remove(),fc.teardown()}},rv=function(){return f.get("guides.disabled",!1)||f.get("disableGuides",!1)||!Ao},ov=function(){return f.get("guides.delay",!1)||f.get("delayGuides",!1)},av=function(e){var t=f.getLocalConfig();t.disableGuides=e,f.setLocalConfig(t)},sv=function(e){var t=f.getLocalConfig();t.delayGuides=e,f.setLocalConfig(t)},uv=Qn(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},cv=function(){C.debug("adjustActiveGuideOnResize firing");var e=yv();e&&e.step&&!E.ignoreResize&&e.step.redraw()};const lv=_.debounce(function(){var e;-1<_.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=dv())||e.id.indexOf("pendo-video-")<0)&&Ut(function(){cv()},150):cv(),Zh()},50),pv=function(e){1!==e.scale&&lv()};var 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 fv(e){var t,n,i,r,o=y(),a=$n();e=e||A.get(),n=o,i=a,r=xl,!(t=e)||!E.apiKey||rv()&&"true"!==Ig.getItem("pendo-designer-mode")||t===fv.lastUrl&&n===fv.lastVisitorId&&i===fv.lastAccountId&&r===fv.lastMetadataHash||(fv.lastUrl=e,fv.lastVisitorId=o,fv.lastAccountId=a,fv.lastMetadataHash=xl,Gm(E.apiKey,o,e)["catch"](_.noop))}fv.reset=function(){_.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){fv[e]=null})};var gv=function(e){Ao&&(gv.reset(),gv.pending=Ut(function(){delete gv.pending,fv(e)},0))};function mv(){fv.lastUrl=null,gv()}function vv(e){e=xg.indexOf(e);-1!==e&&xg.splice(e,1)}function yv(){var e,n,t=_.find(O,function(e){return e.isShown()});return!t||_.get(t,"attributes.resourceCenter.isModule")&&!(t=P.getResourceCenter())?null:(e=_.find(t.steps,function(e,t){return n=t,e.isShown()}),{guide:t,steps:_.filter(t.steps,function(e,t){return e.isShown()}),step:e,stepIndex:n})}function bv(e,t,s,u){return new(s=s||rn)(function(n,i){function r(e){try{a(u.next(e))}catch(t){i(t)}}function o(e){try{a(u["throw"](e))}catch(t){i(t)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}a((u=u.apply(e,t||[])).next())})}gv.reset=function(){gv.pending&&clearTimeout(gv.pending)};const wv="_pendoHeaders";function Sv(e){return g.getters["networkUrl/getTransformedUrl"]()(e)}class Ev{entriesToObject(e){var t,n,i={};for([t,n]of e)i[t]=n;return i}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());else if("object"==typeof e)for(const n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}extractXHRHeaders(e){return e[wv]||{}}generateRequestId(){return"req_"+Date.now()+"_"+E.randomString(8)}safelyReadResponse(n){return bv(this,void 0,void 0,function*(){try{var e=n.headers.get("content-type")||"";return-1!==e.indexOf("application/json")?yield n.json():-1!==e.indexOf("text/")?yield n.text():`[Binary content: ${e}]`}catch(t){return"[Unable to read response body]"}})}extractResponseHeaders(e){let t={};return e.headers&&(e=Array.from(e.headers.entries()),t=this.entriesToObject(e)),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}patchFetch(){const m=this;m._originalFetch=window.fetch,window.fetch=function(...g){return bv(this,void 0,void 0,function*(){var[e,t={}]=g;const n=Sv(e),i=t.method||"GET",r=m.generateRequestId();try{const d=m.extractHeaders(t.headers),c=m.safelySerializeBody(t.body);_.each(m.callbackFns,({request:e})=>{_.isFunction(e)&&e({requestId:r,method:i,url:n,body:c,headers:d})})}catch(s){_.each(m.callbackFns,({error:e})=>{_.isFunction(e)&&e({context:"fetchRequest",error:s})})}try{var o=yield m._originalFetch.apply(this,g),a=o.clone();try{const l=yield m.safelyReadResponse(a),{status:p,statusText:h}=o,f=m.extractResponseHeaders(o);_.each(m.callbackFns,({response:e})=>{_.isFunction(e)&&e({requestId:r,status:p,statusText:h,body:l,headers:f,url:n,method:i})})}catch(s){_.each(m.callbackFns,({error:e})=>{_.isFunction(e)&&e({context:"fetchResponse",error:s})})}return o}catch(u){throw _.each(m.callbackFns,({response:e})=>{_.isFunction(e)&&e({requestId:r,status:0,statusText:"Network Error",headers:{},body:null,url:n,method:i,error:u.message})}),u}})}}patchXHR(){const d=this;d._originalSetRequestHeader=XMLHttpRequest.prototype.setRequestHeader,d._originalXHROpen=XMLHttpRequest.prototype.open,d._originalXHRSend=XMLHttpRequest.prototype.send,XMLHttpRequest.prototype.setRequestHeader=function(e,t){return this[wv]=this[wv]||{},this[wv][e]=t,d._originalSetRequestHeader.apply(this,arguments)},XMLHttpRequest.prototype.open=function(e,t){t=Sv(t);return this._method=e,this._url=t,this._requestId=d.generateRequestId(),d._originalXHROpen.apply(this,arguments)},XMLHttpRequest.prototype.send=function(e){const a=this,t=d.extractXHRHeaders(this),n=d.safelySerializeBody(e);try{_.each(d.callbackFns,({request:e})=>{_.isFunction(e)&&e({requestId:this._requestId,method:this._method||"GET",url:this._url,body:n,headers:t})})}catch(u){_.each(d.callbackFns,({error:e})=>{_.isFunction(e)&&e({context:"xhrRequest",error:u})})}this.addEventListener&&this.addEventListener("loadend",function(){delete this[wv]},{once:!0});const s=a.onreadystatechange;return a.onreadystatechange=function(){if(4===a.readyState)try{const t=d.parseXHRResponseHeaders(a.getAllResponseHeaders()),{status:n,statusText:i,responseText:r,_url:o}=a;_.each(d.callbackFns,({response:e})=>{_.isFunction(e)&&e({requestId:a._requestId,status:n,statusText:i,headers:t,body:r,url:o,method:a._method||"GET"})})}catch(u){_.each(d.callbackFns,({error:e})=>{_.isFunction(e)&&e({context:"xhrResponse",error:u})})}s&&s.apply(this,arguments)},d._originalXHRSend.apply(this,arguments)}}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))}}n=new Ev;function Iv(e){var t,n=_.get(e,"value","");-1!==_.get(e,"parentElement.className","").indexOf("_pendo-nps-poll-"+n+"-wrapper")&&(e=k("._pendo-nps-open-text-poll-question"),t=k("._pendo-nps-open-text-poll-input")[0],_.forEach(e,function(e){"none"!==_.get(e,"style.display","none")&&t&&t.setAttribute("aria-labelledby",e.id)}))}var _v=function(){var o=this,a=(this.eventable=wn.call({}),this.eventable.on("pendoEvent",function(e){try{o.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";C.critical("Error in Action "+e,{error:t})}}),this.eventHandler=function(e){if(!e.ignore&&!E.designer){var t=e.step["guideElement"];switch(e.action){case a.advanceGuide:Zg(e,e.step);break;case a.previousStep:Xg(e,e.step);break;case a.goToStep:Kg(e);break;case a.submitPoll:this.submitPoll(e);break;case a.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;$g(e,e.step,n);break;case a.dismissGuide:P.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return Jg();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return P.dismissResourceCenter(t);Jg(e,e.step)}(e);break;case a.showElements:this.setElementDisplay(e,"block"),e.srcElement&&Iv(e.srcElement),wl((i=gc(e.step.domJson)).props.id,t),Sl(i.props.id,t),M.flexAllThings(i.props.id,e.step),bl(i.props.id,t);break;case a.hideElements:this.setElementDisplay(e,"none"),wl((i=gc(e.step.domJson)).props.id,t),Sl(i.props.id,t),M.flexAllThings(i.props.id,e.step),bl(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});_m(e.params[0].value,n&&n.value);break;case a.launchGuide:this.launchGuide(e);break;case a.renderResourceCenterModule:var i=s(e);P.replaceResourceCenterContent(e.params[0].value,i);break;case a.returnToResourceCenterHome:n=P.findResourceCenterHomeView(dd());if(!n)return;P.attemptToPreserveIntegrationIframes(e),P.replaceResourceCenterContent(n.id,e.params);break;case a.openLink:this.openLink(e);break;case a.searchGuides:this.searchGuides(e);break;case a.submitPollAndGoToStep:this.submitPoll(e),Kg(e);break;case a.confirmation:this.confirmGuide(e);break;case a.conditionalSplit:this.handleConditionalSplit(e)}var r=_v.prototype.registeredActions,r=r&&r[e.action];"function"==typeof r&&r(e)}},this.submitPoll=function(e){var t=e&&e.action,i=e.step,n=[];e.srcElement&&e.srcElement.getAttribute("data-pendo-poll-type")&&"yesNo"===e.srcElement.getAttribute("data-pendo-poll-type")&&(r=e.srcElement.getAttribute("data-pendo-poll-id"),e=e.srcElement.value,n.push({pollId:r,value:parseInt(e,10)}));var r=k("[data-pendo-poll-id]",i.guideElement[0]);n=n.concat(_.map(r,function(e){var t,n=k("textarea,input:text,select,input:radio:checked",e);if(n&&n.length&&n[0].value)return t=e.getAttribute("data-pendo-poll-id"),e=_.find(i.guide.polls,function(e){return e.id===t}),n=n[0].value,e&&e.numericResponses&&(n=parseInt(n,10)),{pollId:t,value:n}})),i.response&&n?i.response(_.compact(n)):C.info("[Agent] Error! Trying to submit a poll response but step does not have response function!");t!==a.submitPollAndGoToStep&&i.advance()},this.setElementDisplay=function(e,t){var n=e.step,e=k(_.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);_.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=k(_.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=_.find(e.params,function(e){return"transition"===e.name}).value,e=_.find(e.params,function(e){return"left"===e.name}).value;t.style.transition=n,t.style.left=e},this.openLink=function(e){var t=_.find(e.params,function(e){return"url"===e.name}).value,e=_.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&Ya()&&(e="_top");window.open(t,e)},this.goToStep=Kg,this.searchGuides=function(t){var e="",n=t.srcElement.value,t=k("#pendo-resource-center-container"),i=t.find('[id^="pendo-list-item-"]'),r=t.find('[id^="pendo-results-count-container"]'),t=t.find('[id^="pendo-no-matches-container"]'),o=[],a=!0,s=0;if(i)for(var u in i){var d;u&&i[u]&&(d=!1,k(i[u]).text()&&(-1!==k(i[u]).text().toLowerCase().indexOf(n.toLowerCase())?(k(i[u]).css({display:"list-item"}),d=!(a=!1)):k(i[u]).css({display:"none"})),_.isFunction(i[u].getAttribute)&&(e=i[u].getAttribute("data-_pendo-text-list-item-1").split(","),_.forEach(e,function(e){_.contains(o,e)||o.push(e)})),this.searchAllTerms(o,e,n)&&i[u]&&(k(i[u]).css({display:"list-item"}),d=!(a=!1)),e="",d)&&s++}a?k(t[0]).css({display:"block"}):k(t[0]).css({display:"none"});if(r&&r.length&&(r[0].innerHTML="",n)){let e="";0===s?(e=t[0].innerText,this.debounceAnnounceResults(r[0],e)):(t=1===s?"data-pendo-aria-label-alert-singular":"data-pendo-aria-label-alert-plural",(e=r[0].getAttribute(t))&&(e=e.replace("{RESULT_COUNT}",s),this.debounceAnnounceResults(r[0],e)))}},this.searchAllTerms=function(t,e,n){return!!e&&e.some(function(e){return _.contains(t,e)&&e===n})},this.confirmGuide=function(e){var e=e.step,t=function(e){if(e.confirmationElementPathRule)return Cr(e.confirmationElementPathRule)[0]}(e);e.advance(),t?t.click():C.critical("pendo.io confirmationElement exception",{stepId:e.id,confirmationElementPathRule:e.confirmationElementPathRule,error:new Error("confirmation action called but confirmationElement was not found")})},this.getTransitionParams=s,this.launchGuide=function(e){var t=!_.get(e,"params.2.value.doNotDismiss");t&&Jg(e,e.step);var t=e&&e.params&&e.params[0]&&e.params[0].value,n=e&&e.params&&e.params[1]&&e.params[1].value;{var i,r;t&&n?(n=N(e.params[0].value),i=e.params[1].value,r=(r=_.find(n.steps,function(e){return e.id===i}))||n.steps[0],dm(n),r.show("api")):t&&_m(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),v.trigger("appUsage",{type:"conditionalSplitResult",elementId:t.srcElement.id,conditionResult:n}),e=_.find(r,function(e){return e.value===n}),0<(null==(i=null==e?void 0:e.actions)?void 0:i.length)?_.forEach(e.actions,function(e){e={action:e.action,params:e.parameters,step:t.step,srcElement:t.srcElement};o.eventHandler(e)}):C.warn("No matching case found for condition result:",n))},this.debounceAnnounceResults=_.debounce((e,t)=>{e.innerHTML=t},300),{advanceGuide:"advanceGuide",previousStep:"previousStep",goToStep:"goToStep",submitPoll:"submitPoll",guideSnoozed:"guideSnoozed",dismissGuide:"dismissGuide",showElements:"showElements",hideElements:"hideElements",slideElement:"slideElement",showGuide:"showGuide",launchGuide:"launchGuide",renderResourceCenterModule:"renderResourceCenterModule",returnToResourceCenterHome:"returnToResourceCenterHome",openLink:"openLink",searchGuides:"searchGuides",submitPollAndGoToStep:"submitPollAndGoToStep",confirmation:"confirmation",conditionalSplit:"conditionalSplit"});function s(e){return e.params.find(e=>"transitionDirection"===e.name)?[{name:"transitionCss",type:"string",value:"left 200ms"},{name:"transitionDirection",type:"string",value:"right"}]:[]}return this},Cv=(_v.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&((_v.prototype.registeredActions=_v.prototype.registeredActions?_v.prototype.registeredActions:{})[e]=t)},function(){var d="guideActivity",c=function(){return(new Date).getTime()-Rg},l=_.isObject,o=_.findWhere;const p=[];var h=[];return{type:d,handler(e){var t=e.data[0];if(t&&"conditionalSplitResult"===t.type){var n=t;const{conditionResult:a,elementId:s}=n,u=_.findIndex(h,e=>e.props.ui_element_id===s);-1!==u&&(n=h.splice(u,1)[0],(i=n.props.ui_element_actions[0]).condition_result=a,r=(r=i.cases)[a],n.props.ui_element_actions=n.props.ui_element_actions.concat(r),delete i.cases,Sm(n))}else{var i,r=e.data[1];i=r,l(n=t)&&function(e){return e&&"click"===e.type}(i)&&function o(e){if(_.isString(e.id)&&0===e.id.indexOf("pendo-base"))return!0;if(l(e.parentElem))return o(e.parentElem);return!1}(n)&&(function(e){return f(e)}(n)||function(e){return m(e)}(n)||function(e){return g(e)}(n))&&(e=function(e){var t=function(e){for(var t of p){t=t(e);if(t)return t}const n=function o(e){if(!e)return;if(/^pendo-g-/.test(e.id))return e.id.replace(/^pendo-g-/,"");return o(e.parentElem)}(e),i=yv();if(n&&i&&i.step&&n!=i.step.id){let t;var r=_.find(dd(),function(e){return!!(t=_.find(e.steps,e=>e.id===n))});if(r&&t)return{guide:r,step:t}}return i}(e);if(!t)return;if(function(e){e=e.guide.activeModule;return e&&e.attributes&&e.attributes.resourceCenter&&"AnnouncementsModule"===e.attributes.resourceCenter.moduleId}(t)&&!(t=function(e){var t=k("#"+e).closest("[data-pendo-announcement-guide-id]").attr("data-pendo-announcement-guide-id"),e=_.find(dd(),function(e){return e.id===t});return e?{guide:e,step:e.steps[0]}:undefined}(e.id)))return;if(!t.step||!t.step.domJson)return;var e=m(e)||f(e)||g(e)||{type:e.tag,id:e.id},n=function a(e,t){if(t.props&&t.props.id&&t.props.id===e)return t;if(t.children!==undefined)for(var n=0;n<t.children.length;n++){var i=a(e,t.children[n]);if(i!==undefined)return i}return undefined}(e.id,t.step.domJson);if(!n)return;let i=e.id;n=function(e,t){if(e!==undefined){if("a"===e.type)return[{action:"openLink",url:eo(e.props.href),target:e.props.target}];if(e.actions!==undefined)return _.map(e.actions,v);if("pendo_task_list_item"===t.templateName&&_.isArray(e.templateChildren)&&e.templateChildren[t.templateChildIndex])return[{action:"showGuide",guideId:e.templateChildren[t.templateChildIndex].id}]}return[]}(n,e);var[r={}]=n,{action:r,guideId:o}=r;"showGuide"===r&&o&&(i+="-"+o);return ym({type:d,visitorId:y(),ui_element_id:i,ui_element_type:e.type,ui_element_actions:n,guideId:t.guide.id,stepId:t.step.id,duration:c(),language:t.guide.language})}(t))&&("conditionalSplit"===_.get(e,["props","ui_element_actions",0,"action"])?h.push(e):Sm(e))}},registerGuideResolver(e){p.push(e)},removeGuideResolver(e){e=p.indexOf(e);-1!==e&&p.splice(e,1)}};function f(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-button/.test(e.id))?{type:e.tag,id:e.id}:i(e)||!l(e.parentElem)?null:f(e.parentElem)}function g(e){var t,n;if("LI"===e.tag&&/pendo-task-list-item/.test(e.cls))return t=(n=e.id.split("-")).pop(),n=n.join("-"),{type:e.tag,id:n,templateName:"pendo_task_list_item",templateChildIndex:t};return i(e)||!l(e.parentElem)?null:g(e.parentElem)}function m(e){return"A"===e.tag?{type:e.tag,id:e.id}:i(e)||!l(e.parentElem)?null:m(e.parentElem)}function v(e){switch(e.action){case"automation":var t=o(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=o(e.parameters,{name:"url"}),n=o(e.parameters,{name:"target"});return{action:e.action,url:eo(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=o(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=o(e.parameters,{name:"snooze_duration"}),t=o(e.parameters,{name:"time_unit"});return{action:e.action,duration:n.value,timeUnit:t.value};case"showGuide":case"launchGuide":n=e.parameters[0],t=e.parameters[1]||{};return{action:e.action,guideId:n.value,stepId:t.value};case"conditionalSplit":var n=o(e.parameters,{name:"name"}),t=o(e.parameters,{name:"conditionType"}),i=o(e.parameters,{name:"config"}),r=o(e.parameters,{name:"cases"}),r=_.reduce(r.value,function(e,t){return e[t.value]=_.map(t.actions,function(e){var t=v(e);return t.source=e.source,t}),e},{});return{action:e.action,name:n.value,condition_type:t.value,element_selector:i.value.elementSelector,feature_id:i.value.featureId,cases:r};case"advanceGuide":case"previousStep":case"submitPoll":case"dismissGuide":case"confirmation":return{action:e.action};default:return{}}}function i(e){return _.isString(e.id)&&0===e.id.indexOf("pendo-guide-container")}}()),xv=[],Tv=!(_v.deregisterAction=function(e){e&&"string"==typeof e&&delete(_v.prototype.registeredActions=_v.prototype.registeredActions?_v.prototype.registeredActions:{})[e]});const kv={agent:{getJwtInfoCopy:Is.get,treatAsAdoptPartner:fo},agentStorage:h,analytics:{ptm:()=>$s,collectEvent:Ls},attachEvent:l,attachEventInternal:Rr,detachEventInternal:Or,ConfigReader:f,Events:v,EventTracer:gn,EventRouter:_v,Extensions:{API:{addTopic:function(e,t){var n=np[e]||{};_.extend(n,t),np[e]=n}}},frames:{getChannel:()=>Qm},getAssetUrl:ho,getEventable:()=>wn.call({}),GlobalRuntime:{addGlobalScript:fc.addGlobalScript,removeGlobalScript:fc.removeGlobalScript},GuideActivity:Cv,GuideLoop:{addUpdatePhase:Ph,removeUpdatePhase:Fh},guides:{addProcessor:function(e){return xg.push(e),_.partial(vv,e)},removeProcessor:vv,registerDisplayableGuides:function(e,t){_.isArray(t)&&(sd[e]=t)},removeDisplayableGuides:function(e){delete sd[e]}},hosts:{SERVER:Je},NodeSerializer:Gu,q:m,sessionStorage:h.getSession(),sizeElements:vl,store:g,Tombstone:pd,transmit:{buildBaseDataUrl:Ro,fetchKeepalive:Fo,sendBeacon:Do},log:C,NetworkRequest:n,util:{trim:it,base64EncodeString:dt,parseUrl:Ra,addInlineStyles:_.partial(yc,f),getNow:S},constants:{URL_MAX_LENGTH:2e3}};function Av(t){_.find(xv,function(e){return e.name===t.name})?C.warn(`Plugin with name ${t.name} already exists. Skipping registration.`):(xv.push(t),Tv&&t.initialize(E,kv))}function Rv(){_.each(xv,function(e){_.isFunction(e.teardown)&&e.teardown(E,kv)}),Tv=!1}sp.registerExtensionsByUse("plugin",function(e){return _.extend(e.uri,_.pick(e,"name")),Av(e.uri),e},function(e){return!!e.uri.initialize&&!!e.uri.teardown});var Ov=!1;function Nv(){if(!Ov){const e=function(e){var t,n,e=e.data[0];n=(t=e).old_visitor_id,t=t.visitor_id,(Pn(n)?Ln(t)?Pn(t)?(C.info("Visitor is anonymous: "+t),1):Gn(t)?(C.info("Visitor id is the default: "+t),1):(C.info("Re-mapping visitor identity from "+n+" to "+t),0):(C.info("Not valid visitor id: "+t),1):(C.info("Visitor is already identified: "+n),1))&&(n=(t=e).old_account_id,t=t.account_id,Ln(t)?n===t||(C.info("Re-mapping account identity from "+n+" to "+t),0):(C.info("Not valid account id: "+t),1))||(Ls("identify",e),ms())},t=function(e){var t;Yl()||({options:e,hashChanged:t}=e.data[0],t&&(Ls("meta",e),ms()))};return v.identify.on(e),v.metadata.on(t),v.identify.on(tp),Ov=!0,function(){v.identify.off(e),v.metadata.off(t),v.identify.off(tp),Ov=!1}}}Mv="guideActivity",Lv=function(){return(new Date).getTime()-Rg},Pv=_.isObject;var Mv,Lv,Pv,Fv={type:Mv,handler(e){var t,n=e.data[0],e=e.data[1];e=e,Pv(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(Pv(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return Gv(e)}(t)||function(e){return Dv(e)}(t)||function(e){return Uv(e)}(t))&&(e=function(e){var t=P.getResourceCenter();if(t){var n=t.activeModule,i=Gv(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=Dv(e)||Uv(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),ym({type:Mv,visitorId:y(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,duration:Lv(),language:i.language})}}(n))&&Sm(e)}};function Dv(e){var t=e.cls.split(" ");return _.contains(t,"_pendo-resource-center-module-list-item")?{type:"BUTTON",elementId:k("#"+e.id).closest("[data-pendo-module-guide-id]").attr("data-pendo-module-guide-id")}:"pendo-resource-center-container"!==e.id&&Pv(e.parentElem)?Dv(e.parentElem):null}function Uv(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=P.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&&Pv(e.parentElem)?Uv(e.parentElem):null}function Gv(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&&Pv(e.parentElem)?Gv(e.parentElem):null}const Bv=e=>(e=e||E).doesExist(e.apiKey);class zv extends _t{constructor(){super(),this.cache=new Set,this.foundShadowRoots=!1,this.stoppedSearchEarly=!1}updateCache(){this.cache.forEach(e=>{ra(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=[na(r)],i;function s(e){do{if(!(e=e||r.createNodeIterator(n.pop(),NodeFilter.SHOW_ELEMENT))||!e.nextNode)break;for(;(i=e.nextNode())&&(t++,i&&i.shadowRoot&&(a(i.shadowRoot),n.push(i.shadowRoot),this.foundShadowRoots=!0),t%o!=0););}while(!i&&(e=null,n.length));i&&this.foundShadowRoots&&(this.findTimeout=Ut(()=>{this.findTimeout=null,s.call(this,e)},50)),t!==o||this.foundShadowRoots||(this.stoppedSearchEarly=!0)}s.call(this)}}teardown(){this.cache.clear(),_.isFunction(this.unpatchAttachShadow)&&(this.unpatchAttachShadow(),this.unpatchAttachShadow=null),this.findTimeout&&(clearTimeout(this.findTimeout),this.findTimeout=null)}}class jv extends _t{constructor(e=gt("MutationObserver")){super(),this.ObserverClass=e,this.observing=!1,this.observers=new Map,this.triggerMutation=this.dispatchMutationEvent,this.shadowDom=new zv,this.shadowDom.addEventListener("attachShadow",_.bind(this.handleAttachShadow,this)),this.shadowDom.addEventListener("detachShadow",_.bind(this.handleDetachShadow,this)),this.addEventListener("mutation",()=>{null!=this.timeout&&clearTimeout(this.timeout),this.timeout=Ut(()=>{this.shadowDom.updateCache(),this.timeout=null},0)})}initialize(e,t){t=t.ConfigReader;t.get("preferMutationObserver")&&e.sniffer.MutationObserver&&(this.observeShadowRoots=t.get("observeShadowRoots"),this.startObserver(document.documentElement),this.observing=!0,this.observeShadowRoots)&&this.shadowDom.initialize()}startObserver(e){var t=new this.ObserverClass(e=>this.triggerMutation(e));this.observers.set(e,t),t.observe(e,{subtree:!0,attributes:!0,childList:!0,characterData:!0})}teardown(){this.observers.clear(),this.shadowDom.teardown(),null!=this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispatchMutationEvent(e){this.dispatchEvent({type:"mutation",mutation:e})}triggerMutationOnce(e){this.triggerMutation=_.noop,queueMicrotask(()=>{this.dispatchMutationEvent(e),this.triggerMutation=this.triggerMutationOnce})}handleAttachShadow({shadowRoot:e}){this.triggerMutation=this.triggerMutationOnce,this.startObserver(e)}handleDetachShadow({shadowRoot:e}){this.observers["delete"](e)}}var Hv=new jv;let qv=0;const Wv="initializeImmediately",Vv=[],Jv=Qn(function(e){if("complete"===document.readyState||_.get(e,Wv)||f.get(Wv))if(C.info("pendo.initialize called with "+JSON.stringify(e)),E.apiKey)1==qv++&&C.info(["pendo.initialize only needs to be called once",ft()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join(""));else{if(e=e||{},_.isEmpty(Is.get())&&(o=Is.getJwtOptions(e,"initialize"))&&(Is.set(_.pick(e,"jwt","signingKeyName")),_.extend(e,o,{forceAnonymous:!0})),_.isString(e))return Lr.get(e).then(e=>(le(u=e.data),Jv()));try{g.dispatch("location/init",e.location||{})}catch(a){C.critical("Location API Exception",a)}f.setLocalConfig(e),co(),E.HOST=ro;var t,n,i,r,o=f.get("cookieDomain");if(o&&(o=o,i=location.host,o?_.isString(o)&&(i=i.replace(/:\d+$/,""),o=o.replace(/^\./,""),t=new RegExp("\\."+Tt(o)+"$"),n=new RegExp("^"+Tt(o)+"$"),t.test(i)||n.test(i))&&(Pt="."+o):Pt=o),Cf.discoverKeys(e),Cf.getApiKey()){g.commit("metadata/setMetadata",{selfHosted:Xl()}),e.logStackTraces&&(E.logStackTraces=e.logStackTraces),f.get("preferBroadcastChannel")&&mg.secure(!0);const s=f.get("analytics.localStorageUnload");Ts.read(h),Vv.push((t={localStorageUnload:s},Vs=ls.events=ns,Js=ls.trackEvents=is,Xs=ls.agenticEvents=rs,$s=bu(_.extend({cache:Vs,silos:ls.silos,apiKey:Oo,beacon:"ptm",allowPost:!0},t)),Ks=bu(_.extend({cache:Js,silos:ls.trackEventSilos,apiKey:Oo,beacon:"ptm",allowPost:!0,params:{type:"track"}},t)),Zs=bu(_.extend({cache:Xs,silos:ls.agenticEventSilos,apiKey:Oo,beacon:"agentic","class":"agentic",allowPost:!0},t)),hs($s),hs(Ks),hs(Zs),()=>{bs(),fs($s),fs(Ks),fs(Zs),$s=Ks=Zs=undefined})),Hv.initialize(E,kv),Vv.push(()=>Hv.teardown()),Ao&&(h.registry.addLocal(Rn),h.registry.addLocal(On),h.registry.addLocal(Nn),h.registry.addLocal(Wl),E.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,Vv.push(Dd(v)),[{events:i=[]}]=[e],_.each(i,(e,t)=>{Gd[t]&&Gd[t](e)}),Vv.push(iv(Hv)),Vv.push(Nv()),Vv.push(Ku()),Vv.push((_.each(xv,function(e){e.initialize(E,kv)}),Tv=!0,Rv)),Vv.push((n=e,h.registry.addLocal(Yh),h.registry.addLocal(Qh),_.find([_.partial(Rf.launchOnToken,window.location),_.partial(ef,window),_.partial(Rf.localStorageNavigation,n)],e=>e()),n.enableDesignerKeyboardShortcut||!f.get("disableDesignerKeyboardShortcut")?$f.listen():()=>{})),v.appUsage.on(Cv.handler),v.appUsage.on(Fv.handler),Vv.push(vs(os)),Vv.push(Os.initialize())),v.appHidden.on(()=>{gs(0,{hidden:!0})}),v.appUnloaded.on(()=>{gs(0,{unload:!0}),s&&Ts.write(h)}),Fn()||Dn(),E.updateOptions(e),e.visitorId&&e.visitorId!=Un&&E.identify(e.visitorId),Vv.push(A.watch(function(){E.pageLoad()})),Ao&&v.ready.trigger(),wu(A.get()),qv++,window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&((r=mg.targetOrigin())?window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},r):C.warn("Unable to announce frame to designer plugin, targetOrigin is not set. Check if broadcastChannel is enabled and cross origin frames are allowed.")),Zv()}else C.debug("API key is not set, Pendo will not initialize.")}else ae(E,"initialize",arguments)});function $v(e){return!_.isArray(e)||_.isEmpty(e)}function Kv(e){if(!$v(e))return _.find(e,e=>"initialize"===e[0])}function Zv(i){var e;return!$v((i=i||E)._q)&&(e=!!Kv(i._q),Bv(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(Zv)):m.resolve()}function Xv(){Bv()?C.info("already running"):(window.pendo_options&&Jv(window.pendo_options),Zv())}function Yv(){v.appHidden.trigger(),v.appUnloaded.trigger(),_.each(Vv,function(e){e()}),wu.reset(),Vv.length=0,mg.close(),wn.clear(v),wn.clear(Gd),delete E.apiKey,qv=0}var Qv,ey,ty={getActiveGuide:yv,smartNextStep:function(e){var t,n=yv();n&&(t=n.guide.steps[n.stepIndex+1],Ut(function(){var e=Cr(t.elementPathRule);0!==e.length&&_.some(e,ya)?Zg(n.step):Zg(t)},e=e||0))},smartFirstStep:function(){k("._pendo-guide_").css("display:none;");var t=nd(),e=yv().guide.steps,n=_.filter(_.rest(e),function(e){return!!e.pageId}),n=_.indexOf(e,_.find(n,function(e){return rd(e.regexUrlRule,t)}));C.info("startingPoint is "+n),-1==n?k("._pendo-guide_").css("display:block;"):(n=e[Math.max(0,n-1)],C.info("found starting step to be "+n.id),Zg(n))},advanceOn:function(e,t){var n=yv(),i=k(t=t||n.step.elementPathRule)[0],r=function(){Zg(),Qu(i,e,r,!0)};l(i,e,r,!0)},renderStepPosition:function(e,t,n){if(t)n||(i=[].concat(t.steps).reverse(),n=_.findWhere(i,{seenState:"active"}));else{var i=yv();if(!i)return;t=i.guide,n=i.step}return(e=_.template(e=e||"Step <%= currPos %> of <%= total %>"))({currPos:t.getPositionOfStep(n),total:t.getTotalSteps()})}},U={renderGuideFromJSON:function(e,n,t,i){i=i||{};var r=n.getGuide();n.isDarkMode===undefined&&yh(n);var o=gc(e),a=_.get(r,"attributes.resourceCenter");a&&(P.revertRtlChanges(r,e.props),e=P.updatePseudoStyleSelectors(e));var s=a&&P.isFullyCustom(r),u="AnnouncementsModule"===_.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.containerId=o&&o.props&&o.props.id,n.element=xd(n,i.document),U.buildNodeFromJSON(e,n,t)),t=(n.guideElement=o).find("#"+n.containerId),d="data-vertical-alignment",c="Relative to Element"===t.attr(d);c&&!a&&k(n.guideElement).css({overflow:"hidden",height:"0",width:"0"});t.css({visibility:"hidden"}),o.css({visibility:"hidden"});var l=_.get(r,"attributes.embedConfig",null);d=rg.buildWatermark({appId:r.appId,targetAccount:r.targetAccount,isTraining:r.isTraining,isBottomAligned:"Bottom Aligned"===t.attr(d),isEmbedded:!!l},U.buildNodeFromJSON);d&&t.append(d);d=n&&n.attributes&&n.attributes.imgCount,i=_d(i.document);{var p,h;l?(f=o[0],p=f.querySelector("#"+(h="pendo-guide-container")),{selector:p,method:h}=(p&&(p.id=h+"-"+n.id,f.id="pendo-base-"+n.id),l),i=k(p)[0],"replace"===h&&i?(i.innerHTML="",o.appendTo(i)):"prepend"===h?o.prependTo(i):o.appendTo(i)):o.appendTo(i)}(function(e,t,n){t=k.getRootNode(t),e=k.getRootNode(e);var i;e!==t&&(e!==document?e.hasOwnProperty("wrappedJSObject")?(i=e.wrappedJSObject.adoptedStyleSheets,t.wrappedJSObject.adoptedStyleSheets.push(...i)):(i=e.adoptedStyleSheets,t.adoptedStyleSheets.push(...i)):(n=k(".pendo-style-"+n,e)).length&&(n.remove(),n.appendTo(t)))})(_d(),o[0],n.id),vl(o),c&&Kc.patchGuideContainerWidthForResponsiveTooltips(n,t[0],e);s||u||(U.recalculateGuideWidth(n.containerId,n.guideElement),U.adjustGuideContentWidth(n.containerId,n.guideElement));d||a||U.flexAllThings(n.containerId,n);s||U.recalculateGuideHeight(n.containerId,n.guideElement);c?n.attributes.calculatedType="tooltip":Kc.attachBBAdvanceActions(n);c&&!d&&Kc.positionStepForTooltip(n,e,t[0]);{var f;a&&(P.showHomeViewOrEmptyState(r),f=[],u?f=[r.attributes.resourceCenter]:U.flexAllThings(n.containerId,n),f.length)&&_.forEach(f,function(e){e=_.get(e,"children",[]);_.forEach(e,function(e){var t;e&&(t=e.steps[0],_.isUndefined(t.attributes.imgCount))&&(t=_.get(t,"id",n.id),e=_.get(e,"id",r.id),t=k("#pendo-g-"+t).length?t:e,U.flexAllThings("pendo-g-"+t,n))})})}{var g;d?(g=m.defer(),o.rendered=g.promise,t.on("imagesLoaded",function(){g.resolve()})):(t.css({visibility:"visible"}),o.rendered=m.resolve())}o.css({visibility:"visible"}),n.elements.push(n.guideElement[0]),E.designer||(_.get(n,"attributes.isAutoFocus")&&(U.autofocusStep(n,t),U.trapFocusStep(n,t),n.hiddenElements=U.addAriaHiddenOutsideGuide(o[0])),a&&(U.attachRCFocusHandlers(),r.skipResourceCenterHomeView?(l=r.activeModule.steps[0],U.autofocusStep(l,l.guideElement)):U.autofocusStep(n,t)));return k(".pendo-video-wrapper",o).each(function(t){k("iframe",t).each(function(e){t.setAttribute("data-pendo-video-loading",""),U.addVideoLoadListener(t,e)})}),o},autofocusStep:function(e,o){var t="autofocus for guide id: "+e.getGuide().id+" step id: "+e.id+" ",n=function(e){var t,n;return!!e&&(t=ko(t=e),n=Zo(),_.extend(n,{top:0,left:0,bottom:n.height,right:n.width}),aa(n,t)||wa(e),e.focus(),e===k.getRootNode(e).activeElement)},i={maxRetries:100,delay:50,exponentialBackoff:!1};yt(function(){var e,t,n,i,r=k(o).find("#pendo-guide-container");return(r=r[0]||r)&&ya(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){yt(function(){return n(e)},i,function(){},function(){C.warn(t+"#pendo-guide-container is available on page but could not capture focus")})},function(){C.warn(t+"#pendo-guide-container did not render or become visible in time to focus")})},trapFocusStep:function(e,t){!function(e){var o,a,s,t,u,d,n,c=e[0];c&&(t=["a[href]:not([disabled])","button:not([disabled])","textarea:not([disabled])",'input[type="text"]:not([disabled])','input[type="radio"]:not([disabled])','input[type="checkbox"]:not([disabled])',"select:not([disabled])","[tabindex]","iframe"].join(", "),(o=_.toArray(e.find(t))).length)&&(a=o[0],s=o[o.length-1],t=oy(e),u=t[0],d=t[1],n=function(e){var t,n,i=ny(e),r=e.shiftKey;i&&(t=(i=k.getRootNode(c).activeElement)===c,n=document.activeElement===document.body,r?(i===u||t||n)&&(ry(o,s).focus(),e.preventDefault()):(t||i===d||n)&&(ry(o,a).focus(),e.preventDefault()))},l(document,"keyup",n),l(document,"keydown",n),v.one("unmounted",()=>{Qu(document,"keyup",n),Qu(document,"keydown",n)}))}(t.find("#pendo-guide-container"))},attachRCFocusHandlers:function(){const s=P.getResourceCenter(),u=P.getResourceCenterContainer();if("dom"===s.launchMethod&&u){let e=k(s.attributes.activation.selector)[0];if(e){const[d,c]=oy(k(u));var t=function(e){var t=ny(e),n=e.shiftKey;if(t){var t=k.getRootNode(u).activeElement,i=k(s.attributes.activation.selector)[0];if(i){var r=t===d,t=t===c;const a=k(ga);function o(t){return Object.values(a).findIndex(e=>e===t)}n?r?(i.focus(),e.preventDefault()):t&&iy(0===(n=o(d))?a.length-1:n-1,a,e):t?iy(o(i)+1,a,e):r&&iy((n=o(c))>=a.length-1?0:n+1,a,e)}}},n=function(e){var t=ny(e),n=e.shiftKey;t&&!n&&iy(0,k('[id^="pendo-g-"]').find(ga),e)},i=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=d&&t&&iy((n=k('[id^="pendo-g-"]').find(ga)).length-1,n,e)};l(document,"keyup",t),l(document,"keydown",t),l(e,"keydown",n),l(e,"focus",i),v.one("unmounted",()=>{Qu(document,"keyup",t),Qu(document,"keydown",t),Qu(e,"keydown",n),Qu(e,"focus",i)})}}},addAriaHiddenOutsideGuide:function bS(e,n=[]){if(!e||e===na())return n;const t=ia(e);_.each(t,e=>{if(-1===n.indexOf(e)&&"true"!==e.getAttribute("aria-hidden")){const t=e.tagName.toLowerCase();"script"!==t&&"style"!==t&&(e.setAttribute("aria-hidden","true"),n.push(e))}});e.parentNode&&bS(e.parentNode,n);return n},renderResourceCenterModule:P.renderResourceCenterModule,buildNodeFromJSON:Ul,attachImgLoadHandlers:Gl,recalculateGuideHeightOnImgLoad:Bl,buildStyleString:function(e){var n="";return _.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:jl,bindActionToNode:zl,recalculateGuideHeight:bl,recalculateGuideWidth:wl,adjustGuideContentWidth:Sl,findDomBlockInDomJson:mc,isElementHiddenInGuide:M.isElementHiddenInGuide,positionStepForTooltip:Kc.positionStepForTooltip,flexAllThings:M.flexAllThings,flexElement:M.flexElement,findTopLevelContainer:function(t){for(var e=["pendo-base","pendo-resource-center-container"],n=0;n<20;n++){if(_.find(e,function(e){return t.id===e}))return t;if(t===document.body)return document.body;t.parentNode&&(t=t.parentNode)}return document.body},updateBackdrop:Bc,buildNodesFromJSON:Pl,findGuideContainerJSON:gc,maintainAspectRatios:M.maintainAspectRatios,sizeElement:yl,sizeElements:vl,getAllowedAttributes:Dl,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:Kc.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:Iv,addVideoLoadListener:function(e,t){l(t,"load",function(){e.removeAttribute("data-pendo-video-loading")})}};function ny(e){return"Tab"===e.key||9===e.keyCode}function iy(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function ry(e,t){let n;if("radio"===t.getAttribute("type")){const i=t.getAttribute("data-pendo-poll-id");n=_.find(e,function(e){var t=e.getAttribute("data-pendo-poll-id");return i===t&&e.checked})}return n||t}function oy(e){var t={margin:0,padding:0,outline:"none",border:"none","box-shadow":"none",shadow:"none"},t={type:"style",props:{type:"text/css",scoped:"scoped",id:"pendo-focus-bumper-styles"+Date.now()},css:[{selector:".pendo-start-focus-bumper",styles:_.extend({},t,{tabIndex:0})},{selector:".pendo-start-focus-bumper:hover",styles:t},{selector:".pendo-start-focus-bumper:focus",styles:t},{selector:".pendo-end-focus-bumper",styles:_.extend({},t,{tabIndex:0})},{selector:".pendo-end-focus-bumper:hover",styles:t},{selector:".pendo-end-focus-bumper:focus",styles:t}]},t=U.buildNodeFromJSON(t),t=(e.prepend(t),document.createElement("div")),n=(t.setAttribute("id","pendo-start-focus-bumper-"+Date.now()),t.setAttribute("class","pendo-start-focus-bumper"),t.setAttribute("tabIndex",0),e.prepend(t),document.createElement("div"));return n.setAttribute("id","pendo-end-focus-bumper-"+Date.now()),n.setAttribute("class","pendo-end-focus-bumper"),n.setAttribute("tabIndex",0),e.append(n),[t,n]}var ay=100,sy=[],uy=[];const dy="log-enabled",cy="active-contexts";var ly=function(){var e=h.read(dy,!0);return null!==e?"true"==e:!(-1!==qe.indexOf("prod")||-1!==qe.indexOf("rc"))},py=function(){return gy()?ey?"logging already enabled":(h.write(dy,"true"),ey=!0,"logging enabled"):"logging unavailable"},hy=function(){return ey?(h.write(dy,"false"),ey=!1,"logging disabled"):"logging already disabled"};var fy=function(e,t){return _.compact([].concat(e,t))},gy=function(e){return e=e||"log","undefined"!=typeof console&&_.isFunction(console[e])},my=function(e){return e=fy(e),0<Qv.length?0<_.intersection(Qv,e).length:!!ey||!!Bh()},vy=function(e,...t){C.info(e,{contexts:t})};function yy(e){var t;e.level!==St.Debug&&e.level!==St.Info||(t=e.attributes?fy(e.attributes.contexts):[],gy()&&my(t)&&_y(e.message),wy(sy,e.message,t))}function by(...e){gy("error")&&console.error.apply(console,e),wy(uy,e.join(" "))}var wy=function(e,t,n){_.contains(n,"debug")||(e.length==ay&&e.shift(),e.push([t,n]))},Sy=function(t){t=fy(t),_.each(_.map(_.filter(sy,function(e){return 0===t.length||0<_.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){_y(e,"[Pendo-History] ")})},Ey=function(){return _.union.apply(_,_.map(sy,function(e){return e[1]}))},Iy=function(e){Qv=fy(e),h.write(cy,Qv.join(","))},_y=function(e,t){var n;gy()&&(t=t||"[Agent] ",e&&e.length?((n=1e3<e.length?e.length-1e3:0)&&(t+="..."),console.log(t+e.substring(n))):console.log(t+e))};function Cy({type:t,name:n,props:i}){if(n&&_.isString(n))if(t&&_.isString(t)){let e=i;_.isObject(i)||(e={__err__:i});i=A.get();Ls(t,e,i,n)}else C.error("Must provide valid type string for event tracking");else C.error("Must provide valid name string for event tracking")}function xy(e,t){Cy({type:"track",name:e,props:t})}function Ty(e,t){Cy({type:e,name:"agentic",props:t})}vy.init=function(){var e;e=h.read(cy,!0),Qv=e?e.split(","):[],ey=ly(),C.addEventListener("log",yy),h.registry.addLocal(dy,{isPlain:!0}),h.registry.addLocal(cy,{isPlain:!0})},vy.enableLogging=py,vy.disableLogging=hy,vy.getActiveContexts=function(){return Qv},vy.setActiveContexts=Iy,vy.showLogHistory=Sy,vy.getLoggedContexts=Ey;var ky=function ky(r){var o=[];function a(e,t,n,i){r?o.push({type:n,message:t,value:i}):me(i)?console[e](t,i):console[e](t)}if("undefined"==typeof console||!console.group)return"Please run this test in the latest version of Chrome, Firefox, Safari, or Internet Explorer";r||console.group("Pendo Install Validation"),E.apiKey||a("error","No Pendo API key configured. Make sure to call pendo.initialize() with a valid Pendo API key.","apiKey");var e=y(),e=(Pn(e)&&a("warn",'The current visitor is not identified and will be treated as "anonymous". Is this expected? (You might have used "VISITOR-UNIQUE-ID" as the visitor ID)',"isAnonymousVisitor"),Gn(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),$n()),t=(e||a("warn","The current visitor is not associated with an account. Is this expected?","noVisitorInAccount"),"ACCOUNT-UNIQUE-ID"===e&&a("error","The current account ID matches the example account ID from the Pendo installation instructions.","exampleAccountId"),f.get("disableCookies")&&a("warn","Cookies are disabled in Pendo config. Is this expected?","disableCookies"),Ql());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()},Ay=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:rn.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())},Ry=function(e){var t=[];if(_.isNumber(window.frames.length)&&_.isFinite(window.frames.length)&&k("iframe").length+k("frame").length===window.frames.length||t.push("Pendo has detected that window.frames.length has been modified"),window.Event&&window.Event.prototype||t.push("Pendo has detected that window.Event has been modified"),t.length){if(e)return t;console.group("Global variables:"),_.each(t,function(e){console.warn(e)}),console.groupEnd()}},Oy=function(e){var t,n=window.location.href,i=[];try{(t=Hr())!==n&&i.push({type:"customizedUrl",msg:"URL has been customized. This will affect data collection, guide requests, and reload tests.",value:t})}catch(o){i.push({method:"error",msg:"Error getting Custom URL",value:o})}try{var r=A.externalizeURL();r!==t&&i.push({type:"sanitizedUrl",msg:"URL has been sanitized. This will affect sending data and guides requests.",value:r})}catch(o){i.push({method:"error",msg:"Error getting Externalized URL",value:o})}if(e)return i;console.group("URL Validation"),console.log("Browser URL:",n),_.each(i,function(e){e.method?console[e.method](e.msg+"\n"+e.value):console.warn(e.msg+"\n"+e.value)}),console.groupEnd()};const Ny=e=>{if(0<uy.length){var t=[].concat(uy);if(e)return t;console.group("Agent Error History"),_.each(t,(e,t)=>{console.log("Error History ",t,e)}),console.groupEnd()}},My=e=>{t=e;var t,n=_.map(xv,function(e){return e.validate&&!t&&e.validate(E,kv),e.name});if(e)return n;console.group("Active Plugins"),_.each(n,e=>console.log(e)),console.groupEnd()};var Ly=function(e){var t={install:ky(e),plugins:My(e),globals:Ry(e),url:Oy(e),errors:Ny(e)};if(e)return t.methods=Ay(e),t;f.validate(console)},Py={BuildingBlockGuides:U,BuildingBlockResourceCenter:P,BuildingBlockTemplates:bc,BuildingBlockTooltips:Kc,BuildingBlockSvgs:_c};function Fy(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))}Fy.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},Fy.prototype.stop=function(){clearTimeout(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var Dy=Lr.urlFor,Uy={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace","Clear","AddTo"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};const Gy=["location","attribute","both","network","all"],By="location";function zy(e,t,n,i){var r;if(_.isObject(e)&&(t=e.action,n=e.data,i=(e=e.attr).target),!Uy[e])throw r=_.keys(Uy).join(", "),new Error('Invalid URL attribute type: "'+e+'". Valid attributes are: '+r+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!_.contains(Uy[e],t))throw r=Uy[e].join(", "),new Error('Invalid transform action: "'+t+'" for attribute "'+e+'". Valid actions for "'+e+'" are: '+r+'. Example: {attr: "'+e+'", action: "'+Uy[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<=Gy.indexOf(e)})).length?e:[By]:0<=Gy.indexOf(r)?r:By)}function jy(e){return e instanceof ei||e instanceof HTMLAnchorElement}zy.prototype.applyTo=function(e){return{AllowOnlyKeys(e,t,n){_.isFunction(n)&&(n=n(e[t],e));t=e.href;return new ei(io(t,null,n,!1))},ExcludeKeys(e,t,n){_.isFunction(n)&&(n=n(e[t],e));t=e.href;return new ei(io(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 ei(Dy(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 ei(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)},zy.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},zy.fromJSON=function(e){if(e instanceof zy)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(Uy).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=Uy[e.attr]?Uy[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(!Uy[e.attr])throw t=_.keys(Uy).join(", "),new Error('Invalid attribute "'+e.attr+'". Valid attributes are: '+t+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!_.contains(Uy[e.attr],e.action))throw t=Uy[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: "'+Uy[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 zy(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))}};Hy=function(t,n,i,r){return[new zy("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new zy("href","ForceSecure")]},e={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:qy=function(){var e=jr(),t=A.isElectron()?Hy(A.electronAppName(),A.electronResourcesPath(),A.electronUserDirectory(),A.electronUserHomeDirectory()):[];return $y([].concat(t),e)}},Wy=new Fy(500,function(e){!Bv()||Su(document)||wu()}),Vy=function(e){if("string"==typeof e)return new ei(e);if(jy(e))return e;throw new Error("Invalid type from custom URL source. Must be either an URL or a String of a valid url.")},Jy=function(e){return e||window.location},$y=function(e,t){return _.reduce(e,function(e,t){return t.applyTo(e)},t)};var Hy,qy,Wy,Vy,Jy,$y,Ky,t={state:e,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=zy.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"))&&g.dispatch("nodeAttr/addAttrTransform",e),(_.contains(t,"network")||_.contains(t,"all"))&&g.dispatch("networkUrl/addNetworkTransform",e)})},addInternalTransforms(t,e){_.each(e,function(e){t.commit("addInternalTransform",zy.fromJSON(e))})},removeInternalTransforms(t,e){_.each(e,function(e){t.commit("removeInternalTransform",zy.fromJSON(e))})},startPolling(e){Wy.start()},stopPolling(e){e.state.currentSrcFn===qy&&Wy.stop()}},mutations:{addTransform(e,t){e.transforms.push(t)},addInternalTransform(e,t){e.internalTransforms.push(t)},removeInternalTransform(e,t){t=_.indexOf(e.internalTransforms,t);0<=t&&e.internalTransforms.splice(t,1)},clearTransforms(e){e.transforms=[],g.commit("nodeAttr/clearURLTransforms"),g.commit("networkUrl/clearURLTransforms")},clearInternalTransforms(e){e.internalTransforms=[]},changeUrlSource(e,t){if(t){if("string"==typeof t)var n=new ei(t),n=_.partial(_.identity,n);else if(jy(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,Wy.start(!Bv())}else e.currentSrcFn=qy,Wy.stop()}},getters:{url:Ky=function(e){try{var t=function(e){return n=e},n=_.reduce([e.currentSrcFn,Vy,t,_.partial($y,e.transforms),Vy,t,_.partial($y,e.internalTransforms),Vy],function(e,t){return t(e)},null)}catch(i){C.critical(i),n=Jy(n)}return n},href(e){return Ky(e).href}}};function Zy(e){var t;if("function"==typeof Zy[e])return t=_.toArray(arguments).slice(1),Zy[e].apply(Zy,t)}_.extend(Zy,{getHref(){return A.get()},clearTransforms(){g.commit("location/clearTransforms"),wu()},addTransforms(e){g.dispatch("location/addTransforms",e),wu()},setUrl(e){g.commit("location/changeUrlSource",e)},useBrowserUrl(){g.commit("location/changeUrlSource"),wu()}});function Xy(){return f.get("guideSeenTimeoutLength")||1e4}Yy=[];var Yy,Qy={name:"StepTimeoutMonitor",initialize(){this._beforeGuideShow=_.bind(Qy.beforeGuideShow,Qy),this._stop=_.bind(Qy.stop,Qy),v.beforeGuideShow.on(this._beforeGuideShow),v.guideSeen.on(this._stop),v.guideNotSeen.on(this._stop)},teardown(){Qy.stop(),v.beforeGuideShow.off(this._beforeGuideShow),v.guideSeen.off(this._stop),v.guideNotSeen.off(this._stop)},beforeGuideShow(e){var t=e.data[0],e=e.data[1],n=t.guide;f.get("enableGuideTimeout")&&(e=-1<_.indexOf(["dom","launcher","badge","api"],e),"active"===t.seenState||t.hasBeenControlled()||t.isTimedOut()||(n=n&&n.steps)&&(0!==_.indexOf(n,t)||e)&&Qy.start(t))},start(e){var u,t,n=Yy[0];n&&n===e.id||(n&&n!==e.id&&(n=Yy[1],_.isFunction(n))&&n(),e.shouldStartTimer()&&(u=Xy(),n=_.partial(function(e,t){var n,i,r,o,a,s=N(t);s&&(n=s.findStepById(e))&&!s.isShown()&&(a=n.canShowOnPage(nd())?tm(n)?"other":"element":"page",i=t,r=e,o=y(),a=a,s=s.language,i=ym({type:"guideTimeout",guideId:i,stepId:r,visitorId:o,seen_reason:a,language:s,guideSeenTimeoutLength:u}),Sm(i),v.guideTimeout.trigger(i),C.info("Guide "+t+" timed out showing Step "+e),n.timeout()),Qy.stop()},e.id,e.guide.id),t=Ut(n,u),Yy=[e.id,n,t]))},stop(){var e=Yy[2];e&&clearTimeout(e),Yy=[]},getGuideSeenTimeoutLength:Xy};function e0(){console.warn("This functionality is not supported by your subscription.")}function s(e){return Ao?e:e0}var t0="is going away",n0="is gone",i0=_.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return C.info(e),e});function r0(e,t,n){return function(){return i0("pendo."+t,n),(e||_.noop).apply(null,arguments)}}function o0(e){return e&&1===e.length?e[0]:_.any(e,wt)?m.all(e).then(function(e){return _.any(e)}):void 0}function a0(){this.elements=[],this.attributes=this.attributes||{},this.attributes.device&&this.attributes.device.type?"all"==this.attributes.device.type?this.attributes.device={desktop:!0,mobile:!0}:(e=this.attributes.device.type,this.attributes.device={mobile:!1,desktop:!1},this.attributes.device[e]=!0):this.attributes.device=this.attributes.device||{},_.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),sc(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 o0(_.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(!Ed()){var e=Id(),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 o0(_.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(nd())&&Vh(this)):Kh(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 ht(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 ht(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(nd())||!t.canShowOnDevice()||!tm(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(nd())||!this.canShowOnDevice()||!tm(e)||this.outsideTimebox())};var e,n="PENDO_HELPER_STEP";return this.getPositionOfStep=function(e){var t=_.reject(this.steps,function(e){return ht(e.content,n)});return _.indexOf(t,e)+1},this.getTotalSteps=function(){return _.reject(this.steps,function(e){return ht(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 s0(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){_.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var u0=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function d0(){var r,o=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(_.each(this.steps,function(e){e.after("render",function(){_.each(e.elements,function(e){k(e).addClass("_pendo-guide-walkthrough_")})})}),r=null,this.sections=_.reduce(this.steps,function(e,t){var n,i;return i=t,!(n=r)||(n=_.last(n)).attributes.isRequired!=i.attributes.isRequired&&n.attributes.isRequired?(e.push(r),r=[t]):r.push(t),e},[]),this.sections=_.compact(this.sections.concat([r])),this.findSectionForStep=function(t){return _.find(this.sections,function(e){return _.contains(e,t)})},this.getSubSection=function(e,t){t=_.indexOf(e,t);return e.slice(t+1)},this.isContinuation=function(e){var t=this.isTopLevel||this.isModule,n=this.hasResourceCenterContent;return(!t||n)&&!!this.nextStep(e)},this.nextStep=function(t){var e=null;if(this.isGuideSnoozed())return null;t=t||{};for(var n,i,r=0;r<this.steps.length;r++)if(this.steps[r].id===t.guideStepId){if("dismissed"===t.state)break;if("active"===t.state||"snoozed"===t.state){e=this.steps[r];break}if("advanced"===t.state&&t.destinationStepId){e=_.find(this.steps,function(e){return e.id===t.destinationStepId});break}if(r+1<this.steps.length){e=this.steps[r+1];break}}return e?(n=(new Date).getTime(),(i=t.time)&&432e5<n-i&&!u0(this)?(o||(C.info("Multi-step continuation has expired",{contexts:["guides","info"]}),o=!0),null):e):null},this.shouldAutoDisplay=function(){return this.hasLaunchMethod("auto")&&(this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||_.all(this.steps,function(e){return e.shouldAutoDisplay()}))},this.autoDisplay=function(){var e,t,n;if(this.shouldAutoDisplay())return e=this.shouldRepeatGuide(),t=_.first(this.steps),n=this.nextStep(dh())||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=dh(),n=_.first(this.steps),t=this.nextStep(t)||n;return t.show("continue"===e&&t===n&&"auto"===n.seenReason?"auto":e)},this.isComplete=function(){var e=_.last(this.steps);return!!e&&_.contains(["advanced","dismissed"],e.seenState)},this.activeStep=function(){var e=[].concat(this.steps).reverse();return _.findWhere(e,{seenState:"active"})}),this}function c0(){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,c0.MAX_ERRORS_PER_MINUTE<=t&&(n="Exceeded error rate limit, dropping guide.\n"+n,pd.addGuide(a),v.trigger("renderFail",a)),o.shift()),C.critical(n,{error:i}),i}}}return _.each(["canShow","placeBadge","show"],function(e){a[e]=_.wrap(a[e],t(e))}),a}function l0(){return _.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=_.wrap(this.shouldBeAddedToLauncher,function(e){return g.getters["frames/hasFrames"]()?!(!g.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!g.getters["frames/isGuideInDifferentFrame"]()(this)&&g.getters["frames/shouldBeAddedToLauncher"]()(this):e.apply(this,arguments)}),this.shouldBeAddedToResourceCenter=_.wrap(this.shouldBeAddedToResourceCenter,function(e){return g.getters["frames/hasFrames"]()?!(!g.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!g.getters["frames/isGuideInDifferentFrame"]()(this)&&g.getters["frames/shouldBeAddedToResourceCenter"]()(this):e.apply(this,arguments)})),this}function p0(e){var t=this;return"whatsnew"===t.type||_.isFunction(e.isAnnouncement)&&e.isAnnouncement()||(t.isShown=_.wrap(t.isShown,function(e){return e.apply(this,arguments)||g.getters["frames/isShownInAnotherFrame"]()(t)})),t}function h0(o){var a,t,i,s,r,n,u,d=this;return d.pollIds&&d.pollIds.length&&(a="_pendo-poll-selected_",t=_.indexBy(o.polls,"id"),i=_.map(d.pollIds,function(e){return t[e]}),r=function(e,t){if(e&&t!==undefined)return e.numericResponses?parseInt(t,10):t},n=function(){var e=o.id,t=d.id,n=S();fm(e,t,y(),d.seenReason,o.language),Pg(e,t,"advanced",n),sh({guideId:e,guideStepId:t,time:n,state:"advanced"})},u=function(){var e=k("._pendo-poll_"),t=k("._pendo-poll-message_");t.length?(e.addClass("_pendo-poll-submitted_"),t.css("margin-top:-"+t.height()/2+"px"),n()):d.advance()},d.after("render",function(){var n=k("._pendo-poll_")[0],e=k("._pendo-poll-submit_",n)[0];e?d.attachEvent(e,"click",function(e){var t=k("._pendo-poll-question_",n),t=_.map(t,function(e,t){e=k("textarea,input:text,select,input:radio:checked",e);if(e&&e.length&&e[0].value)return{pollId:(t=i[t]).id,value:r(t,e[0].value)}});d.response(_.compact(t)),u()}):d.attachEvent(n,"click",function(e){var t,e=k(Nr(e)).closest("._pendo-poll-question_ :button,._pendo-poll-question_ :radio");e.length&&(t=i[0],e=r(t,e.attr("data-pendo-poll-value")||e.attr("value")),d.response([{pollId:t.id,value:e}]),u())})}),d.after("render",function(){var i=k("._pendo-poll_ ._pendo-poll-npsrating_")[0],r=k("._pendo-poll_ ._pendo-poll-submit_"),o="_pendo-poll-npsrating-selected_";i&&(r.css({display:"none"}),d.attachEvent(i,"click",function(e){var t=k(":radio:checked",i)[0],n=k("._pendo-poll_");k("label",i).removeClass(a),n.removeClass(o),t&&(k('label[for="'+t.id+'"]').addClass(a),n.addClass(o),r.css({display:""})),_.isFunction(d.resize)&&d.resize()}))}),d.after("show",function(){s=(new Date).getTime()}),d.response=function(e,r){e&&e.length&&(ev(),_.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=ym("pollResponse",d.guideId,d.id,y(),undefined,o.language);_.extend(i.props,{poll_id:e.pollId,poll_response:e.value,duration:(new Date).getTime()-s},r),n&&n.attributes&&n.attributes.type&&_.extend(i.props,{poll_type:n.attributes.type}),$m.push(i)}),$m.flush())}),d}c0.MAX_ERRORS_PER_MINUTE=30;var f0={show:function(t,n){if(Ed()&&_.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return g0(t,n);if(!g.getters["frames/hasFrames"]()||g.getters["frames/isGuideInThisFrame"]()(e)){e=function(e,t){if(e.getGuide().isModule){e=P.getResourceCenter();if(e)return g0(e.steps[0],t)}}(t,n);if(wt(e))return e.then(function(){return g0(t,n)}).then(function(e){return!!e||m0(t,n)});e=g0(t,n);if(wt(e))return e.then(function(e){return!!e||m0(t,n)});if(e)return!0}return m0(t,n)},showLocal:g0};function g0(e,t){return lc.hasContent(e)&&ic.valid(e)?(e._show(t),e.isShown()):!(lc.hasContent(e)&&ic.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(nd()))&&(e.lock(),lc.fetchContent(e).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&ic.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(Rm()?(C.info("guides are loading.",{contexts:["guides","loading"]}),!1):(e.unlock(),e._show(t),e.isShown()))}))}function m0(t,e){var n=t.getGuide();return!(!g.getters["frames/hasFrames"]()||!g.getters["frames/isGuideInDifferentFrame"]()(n))&&(t.lock(),g.dispatch("frames/showGuideStep",{guideId:t.guideId,stepId:t.id,reason:e}).then(function(e){return t.unlock(),e.isShown},function(){return t.unlock(),!1}).then(function(e){return e&&(clearInterval(t.timeoutTimer),delete t.timeoutTimer),e}))}function v0(u){var e=!1,t=!1;return this.guide=u,this.elements=[],this.handlers=[],this.attributes=this.attributes||{},(this.domUrl||this.domJson)&&(this.eventRouter=new _v),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=_.indexOf(t,this),i=Ql();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:ut(i),template:r};return this.template||(this.template=_.template(this.content||"")),uc(this.template(o).replace(/#_pendo_g_undefined/g,"#_pendo_g_"+this.id).replace(/pendo-src="([^"]+)"/g,function(e,t){return/<%=[^>]+>/.test(t)?e:'src="'+t+'"'}))}catch(a){return this.content}},this.isLocked=function(){return e},this.lock=function(){e=!0},this.unlock=function(){e=!1},this.isTimedOut=function(){return t},this.timeout=function(){t=!0},this.isRendered=function(){return this.elements&&0<this.elements.length},this.isShown=function(){return this.isRendered()||this.isLocked()},this.canShow=function(){return!_.get(this,"guide.attributes.isAnnouncement")&&!!u.canShowOnDevice()&&!this.isShown()&&!_.get(this,"stepIneligibleForApp")&&this.canShowOnPage(nd())&&tm(this)},this.canShowOnPage=function(e){e=rd(this.regexUrlRule,e);return Bh()&&v.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||Ed()||sf())&&(e=nd(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!rd(this.regexUrlRule,e)?(pd.addGuide(u),t.error=new Error('attempted display on page "'+e+'"'),C.critical("pendo.io page rule exception",t),1):g.getters["healthCheck/isMissingPageRule"]()(this)?(pd.addGuide(u),t.error=new Error('missing regexUrlRule"'),C.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(pd.addGuide(u),t.error=new Error("missing regexUrlRule for page "+this.pageId+'"'),C.critical("pendo.io page rule exception",t),1)))},this.render=function(){var e=this;if(this._preRenderHealthCheck()){if(e.domJson)return u.skipResourceCenterHomeView&&u.moduleIdToReplaceHomeViewWith&&u.hasEligibleNativeIntegrationModule?(t=_.find(dd(),function(e){return e.id===u.moduleIdToReplaceHomeViewWith}),n=_.get(t,"attributes.resourceCenter.integrationProvider"),P.renderNativeIntegration(n,t)):u.continueToNativeModule?P.handleNativeIntegrationContinuation(u):(_.get(u,"attributes.resourceCenter")&&Ah(P.getResourceCenter(),Rh),u.isModule?U.renderResourceCenterModule(u,!1):(n=U.renderGuideFromJSON(e.domJson,e),_.get(u,"attributes.resourceCenter")&&(t=u.activeModule?u.activeModule.activeStep().domJson.props.id:e.containerId,t=e.guideElement.find("#"+t),P.adjustResourceCenterWidth(t)),n));var t=e.attributes.width,n=e.attributes.height,i=E.TOOLTIP_ARROW_SIZE,r="_pendo-group-id-"+u.id+"_",r=k(document.createElement("div")).attr("id",om(e)).addClass(kg+" "+r),o=k(document.createElement("div")).addClass("_pendo-guide-content_").html(e.getContent()),a=k(document.createElement("div")).addClass("_pendo-guide-container_"),s=k(document.createElement("div")).addClass("_pendo-backdrop_");r.width(t),r.height(n),a.css({left:i,top:i}),e.isEditable&&o.attr("contenteditable","true"),o.appendTo(a),a.appendTo(r),u&&_.isFunction(u.isOnboarding)&&u.isOnboarding()&&r.addClass("_pendo-onboarding_"),e.overlayDiv=s,e.guideElement=r}},this.teardown=function(){C.info("guide step teardown",{contexts:["guide","render"]}),_.each(this.handlers,function(e){Qu(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,_.has(this.attributes,"imgCount")&&(this.attributes.imgCount=0),this.hiddenElements&&(_.each(this.hiddenElements,e=>{try{e&&"function"==typeof e.removeAttribute&&e.removeAttribute("aria-hidden")}catch(t){C.error("unable to remove aria-hidden from element",{error:t})}}),this.hiddenElements.length=0,this.hiddenElements=null),Hl(this.id)},this.show=function(e){var t;if(!_.contains(["auto","continue"],e)||!g.getters["healthCheck/isRedisplay"]()(this))return(t=f0.show(this,e))&&t["catch"]&&t["catch"](_.noop),t;g.dispatch("healthCheck/fixSeenStateAndLogError",{step:this,reason:e})},this.redraw=function(){var e,t,n,i,r,o=this;o.guideElement&&!E.designer&&(t=(e=_.get(u,"attributes.resourceCenter"))&&P.isFullyCustom(u),n=u.activeModule?u.activeModule.activeStep().domJson.props.id:o.containerId,i=o.guideElement.find("#"+n),r=u.activeModule&&"AnnouncementsModule"===_.get(u.activeModule,"attributes.resourceCenter.moduleId"),v.beforeUpdate.trigger(o),t||r||(U.recalculateGuideWidth(n,o.guideElement),U.adjustGuideContentWidth(n,o.guideElement)),e?(P.adjustResourceCenterWidth(i),r&&u.activeModule.guidesInModule?_.forEach(u.activeModule.guidesInModule,function(e){var t;!_.isUndefined(e.steps[0].attributes.imgCount)&&0!==_.get(e.steps[0],"attributes.imgCount")||(t=e.steps[0].id,t=k(i).find("#pendo-g-"+t)[0]?t:e.id,U.adjustGuideContentWidth("pendo-g-"+t,o.guideElement),U.flexAllThings("pendo-g-"+t,o))}):U.flexAllThings("pendo-resource-center-container")):U.flexAllThings(n,o),t||U.recalculateGuideHeight(n,o.guideElement),v.updated.trigger(o))},this._show=function(e){v.beforeGuideShow.trigger(this,e),this.canShow()&&(!Ed()&&u.control?this.hasBeenControlled()||this.onControlGuide("control"):v.beforeMount.trigger(this).cancel||(this.render(),this.isShown()&&this.onShown(e)))},this.shouldStartTimer=function(){return u.canShowOnDevice()&&!u.attributes.isAnnouncement&&!Qg(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;Ed()||(this.seenReason=e,Og(S()),t=this.getStepPollTypes(u,this),this.hasBeenControlled())||(lm(this.guideId,this.id,y(),e,u.language,t),_.each(u.steps,function(e){e.seenState="notSeen"}))},this.onShown=function(r,e=!0){var t,n,i=this;i.overrideElement&&(k.addClass(i.overrideElement,"triggered"),i.overrideElement.checkAriaExpanded)&&i.overrideElement.checkAriaExpanded(),Ed()||(i.seenReason=r,i.seenState="active",Og(S()),t={color_mode:i.isDarkMode?"dark":"default",last_updated_at:i.lastUpdatedAt},(n=this.getStepPollTypes(u,i))&&(t.step_poll_types=n),e&&pm(i.guideId,i.id,y(),r,u.language,t),g.dispatch("guideState/updateLastGuideStepSeen",{guideId:u.id,guideStepId:i.id,time:Rg,state:i.seenState,seenReason:r,visitorId:y()}),_.each(u.steps,function(e){var t,n,i;"snoozed"===e.seenState&&(e.snoozeEndTime=0,t=u.id,e=e.id,n=y(),i=u.language,t=ym({type:"guideSnoozeCanceled",guideId:t,stepId:e,visitorId:n,seen_reason:r,language:i}),Sm(t,null,!0),v.guideSnoozeCancelled.trigger(t))}),fc.runCustomScripts(i,u)),g.dispatch("frames/guideStepShownInFrame",{guideId:u.id,stepId:i.id,isShown:i.isShown()}),i.guideElement&&i.guideElement[0]&&i.attachEvent(i.guideElement[0],"focusin",function(e){"TEXTAREA"!==e.target.tagName&&"INPUT"!==e.target.tagName||(E.ignoreResize=!0,Ut(function(){E.ignoreResize=!1},1e3))})},this.hide=function(e){var t=this;t.unlock(),v.beforeUnmount.trigger(t),t.teardown(),_.each(t.elements,function(e){ea(e)}),v.unmounted.trigger(t),t.attributes&&e&&e.stayHidden&&(t.attributes.stayHidden=e.stayHidden),t.elements.length=0,t.element=null,t.guideElement=null,t.overrideElement&&(k.removeClass(t.overrideElement,"triggered"),t.overrideElement.checkAriaExpanded)&&t.overrideElement.checkAriaExpanded(),g.dispatch("frames/guideStepHiddenInFrame",{guideId:u.id,stepId:t.id})},this.advance=function(){"advanced"===this.seenState&&!this.isRendered()||Zg(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||Jg(this)},this.isPoweredByEnabled=function(){return!0!==this.hideCredits},this.isSnoozed=function(){var e="snoozed"===this.seenState,t=!this.snoozeEndTime||(new Date).getTime()>this.snoozeEndTime;return e&&!t},this.shouldRepeat=function(){return!!this.lastSeenAt&&u.redisplay&&!u.outsideTimebox()&&!this.isSnoozed()&&S()-this.lastSeenAt>=u.redisplay.interval&&!u.hasReachedMaxDismissals()},this.hasBeenControlled=function(){return u.isControlGroup()&&"notSeen"===this.seenState},this.attachEvent=function(e,t,n){var i={element:e,type:t,fn:n};l(e,t,n,!0),this.handlers.push(i)},this.searchFor=function(e){return!(e.length<3)&&ht(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&Kc.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&Bc(this)},this.getType=function(){return this.domJson?_.get(this,"attributes.calculatedType"):this.type},this}function y0(){return this.after("render",function(){var e,t;F&&F.contentWindow&&F.style&&(e=_.first(k('#pendo-resource-center-container, [id^="pendo-g-"]')))&&(e=R(e))&&(t={mutation:"preview/setIsPreviewBarTop",payload:{isPreviewBarTop:!1}},"0px"===e.top?(F.style.top="auto",F.style.bottom="0px",F.contentWindow.postMessage(t,location.origin)):"0px"!==e.bottom&&F.style.top||(F.style.top="0px",F.style.bottom="auto",t.payload.isPreviewBarTop=!0,F.contentWindow.postMessage(t,location.origin)))}),this}v0.isGuideStep=function(e){return!!e&&_.isFunction(e.render)};const b0={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===St.Critical?(i=window.pendo_options||{},by(e),!1!==E.logStackTraces&&!1!==i.logStackTraces&&n.stack?Mo(e+`
9
- `+n.stack):No(e)):t.level===St.Error?by(e):t.level===St.Warn&&(i=[e],gy("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()]}}}},w0=h.getSession(),S0="pendo_cd";class E0{constructor(){this.name="CloneDetection"}initialize(){if(_.isFunction(window.BroadcastChannel))return h.registry.addSession(S0),this.tabId=gn.getTabId(),this.id=pt(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=w0.getItem(S0)||"";-1===t.indexOf(e)&&(t+="-"+e),w0.setItem(S0,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()}isClonedSession(e){return this.startCloneDetectionTimer(),-1===(w0.getItem(S0)||"").indexOf(e)}clearCloneDetectionValue(){w0.removeItem(S0),this.cloneDetectionTimer=null}startCloneDetectionTimer(){this.stopCloneDetectionTimer(),this.cloneDetectionTimer=Ut(_.bind(this.clearCloneDetectionValue,this),1e4)}stopCloneDetectionTimer(){this.cloneDetectionTimer&&(clearTimeout(this.cloneDetectionTimer),this.cloneDetectionTimer=null)}clearClonedStorage(){w0.clearPendo(),gn.setParentTabId(this.tabId),this.tabId=gn.newTabId(),v.trigger("tabIdChanged:self"),g.dispatch("frames/setTabId",this.tabId)}sendMessage(e,t){this.channel.postMessage(Object.assign({type:e},t))}}let I0=new E0;function _0(e){g.dispatch("frames/setReady",{isReady:!0})}var C0=["unknown","hidden","visible"];function x0(e){return"visible"===e.visibility||"unknown"===e.visibility}T0={};var T0,Li={actions:{init(e){var t,n,i=e.state;i.initialized||(h.registry.addSession(sn),h.registry.addSession(un),t=gn.addTracerIds({}),n=we(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),v.ready.on(_0),v.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&D.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),I0.initialize(),e.commit("setInitialized",!0))},changeGuideList(e,t){e=e.state,t=A0(t);D.postMessage({action:"frames/receiveGuideList",frameId:e.frameId,guides:t,autoOrdering:E.autoOrdering||[]})},receiveGuideList(e,t){e.commit("setGuideList",t),t.frameId===e.state.frameId&&e.commit("setGuidesLoaded"),R0(e.state)},join(e){var t,n,i,r;e.state.disabled||(Ih(),t=e.state,n=window.top==window,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:A0(md())}),(r=[].concat(f.get("leaderKey"))).length||t.agentInstallType!==ye||(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},i)}))},receiveFrame(e,t){var n,i=e.state;if(E.designerv2.launched&&(n=Object.assign({},Rf.hostConfig,{selectionOnly:!0}),D.postMessage({action:"frames/addSelectionModeToFrames",options:n})),!i.frames[t.frame.id]||!i.frames[t.frame.id].id){if(e.commit("addFrame",t.frame),e.commit("setGuideList",{frameId:t.frame.id,guides:_.toArray(_.get(t,"frame.guides",[]))}),t.frame.isTop){for(var r=e.getters.leaderKeyPreference(),o=_.filter(i.frames,e=>e.isTop);r.length;){var a=r.shift(),s=_.filter(o,e=>e.apiKey===a);if(s.length){o=s;break}}e.commit("setTopId",o[0].id)}e.commit("setLeadershipMode",t.frame.agentInstallType),t[Yh]&&e.dispatch("receiveStartPreview",t),D.postMessage({action:"frames/receiveFrame",frame:i.frames[i.frameId],"pendo-preview":e.rootState.preview.preview}),e.dispatch("waitThenElectLeader")}},leave(t){var e=t.state;D.postMessage({action:"frames/removeFrame",frameId:e.frameId}),_.each(e.frames,function(e){t.commit("removeFrame",e.id)}),D.close()},removeFrame(e,n){e.getters.hasFrame()(n.frameId)&&(e.commit("removeFrame",n.frameId),_.each(T0,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete T0[t])}),e.dispatch("electLeader"))},waitThenElectLeader:_.debounce(function(e){e.dispatch("electLeader")},50),electLeader(e){var t=e.state,n=t.frames,i=e.getters.leaderKeyPreference();if(i.length)for(;i.length;){var r=i.shift(),o=_.filter(t.frames,e=>e.apiKey===r);if(o.length){n=o;break}}var a=_.find(n,e=>e.isTop);a?e.dispatch("followLeader",{leaderId:a.id}):(a=_.min(n,"joinedAt"),e.dispatch("followLeader",{leaderId:a.id})),R0(e.state),e.getters.isLeader()&&v.childFrameJoined.trigger()},followLeader(e,t){var n=e.state,i=n.leaderId,r=t.leaderId;e.commit("setLeaderId",t.leaderId),i!==r&&v.leaderChanged.trigger({frameId:n.frameId,oldLeaderId:i,newLeaderId:r})},showGuideStep(t,n){var i=_.filter(t.state.frames,function(e){return e.id!==t.state.frameId&&"hidden"!==e.visibility&&e.guides&&e.guides[n.guideId]});return function r(){var e=i.shift();return e?t.dispatch("requestShowGuideStepInFrame",_.extend({frameId:e.id},n)).then(function(e){return e.error?m.reject(e.error):e.isShown?e:r()}):m.resolve({isShown:!1})}()},requestShowGuideStepInFrame(e,t){var n=t.frameId+"/"+pt(32),i=m.defer();return T0[n]=i,D.postMessage(_.extend({action:"frames/showGuideStepInFrame",requestId:n},t)),i.promise},showGuideStepInFrame(t,n){var e;function i(e){t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:e})}t.state.frameId===n.frameId&&((e=(e=N(n.guideId))&&e.findStepById(n.stepId))?wt(e=f0.showLocal(e,n.reason))?e.then(i)["catch"](_.noop):i(e):t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:!1}))},guideStepShownInFrame(e,t){e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:t.isShown}),D.postMessage(_.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame(e,t){var n=T0[t.requestId];n&&(n.resolve(t),delete T0[t.requestId]),e.getters.isShownInFrame()(t.frameId,{id:t.stepId})!==t.isShown&&e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:t.isShown})},hideGuides(e,t){t=_.isArray(t)?t:[],D.postMessage({action:"frames/receiveHideGuides",frameId:e.state.frameId,guideIds:t}),e.commit("hideGuides")},receiveHideGuides(e,t){e.state.frameId!==t.frameId&&(t.guideIds.length?_.each(_.compact(_.map(t.guideIds,N)),function(e){e.hide()}):Dg(),e.commit("hideGuides"))},guideStepHiddenInFrame(e,t){var n=e.getters.isShownInFrame()(e.state.frameId,{id:t.stepId});e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:!1}),D.postMessage(_.extend({action:"frames/receiveGuideStepHiddenInFrame",frameId:e.state.frameId},t)),n&&e.dispatch("fixDoubleDisplay",t)},receiveGuideStepHiddenInFrame(e,t){e.state.frameId!==t.frameId&&e.getters.isShownInFrame()(t.frameId,{id:t.stepId})&&e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:!1})},fixDoubleDisplay(n,i){_.each(n.state.frames,function(e,t){t!==n.state.frameId&&n.getters.isShownInFrame()(t,{id:i.stepId})&&D.postMessage(_.extend({action:"frames/receiveHideGuideInFrame",frameId:t,guideId:i.guideId,stepId:i.stepId},i))})},receiveHideGuideInFrame(e,t){e.state.frameId===t.frameId&&(t=(e=N(t.guideId))&&e.findStepById(t.stepId))&&t.hide()},changeLastGuideStepSeen(e,t){D.postMessage({action:"frames/receiveLastGuideStepSeen",frameId:e.state.frameId,lastGuideStepSeen:t}),e.commit("updateLastGuideStepSeen",t),e.commit("healthCheck/updateStepState",{id:t.guideStepId,seenState:t.state},{root:!0})},receiveLastGuideStepSeen(e,t){var n;t.frameId!==e.state.frameId&&(n=e.state.frames[t.frameId],(n=_.get(n,"agentInstallType"))&&n!==e.state.agentInstallType&&delete t.lastGuideStepSeen.visitorId,e.dispatch("guideState/updateLastGuideStepSeen",t.lastGuideStepSeen,{root:!0}),e.dispatch("guideState/write",null,{root:!0}),t=(t=N((n=t.lastGuideStepSeen).guideId))&&t.findStepById(n.guideStepId))&&(t.seenState=n.state,t.seenReason=n.seenReason,t.lastSeenAt=n.time,n.dismissCount&&(t.dismissCount=n.dismissCount),n.snoozeEndTime&&(t.snoozeEndTime=n.snoozeEndTime),e.commit("updateLastGuideStepSeen",n),e.commit("healthCheck/updateStepState",t,{root:!0}))},changeThrottlingState(e,t){D.postMessage(_.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState(e,t){t.frameId!==e.state.frameId&&_.each(gm,function(e){t[e]&&vm(t[e],e)})},startPreview(e){D.postMessage({action:"frames/receiveStartPreview","pendo-preview":e.rootState.preview.preview})},restartPreview(e){D.postMessage({action:"frames/receiveRestartPreview","pendo-preview":e.rootState.preview.preview})},stopPreview(e,t){D.postMessage(_.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview(e,t){e.dispatch("preview/start",t[Yh],{root:!0}),tf(window),mv()},receiveRestartPreview(e){var t=of(O,dh());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview(e,t){ff({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=ya(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility(e,t){var n;!_.find(C0,function(e){return e===t.visibility})||(n=t.visibility,e.getters.frameVisibility()===n)||(e.commit("setFrameVisibility",{frameId:e.state.frameId,visibility:n}),D.postMessage({action:"frames/receiveFrameVisibility",frameId:e.state.frameId,visibility:n}))},receiveFrameVisibility(e,t){e.commit("setFrameVisibility",t)},addSelectionModeToFrames(e,t){t=t.options;Rf.launchInAppDesigner(t)},syncOptions(e,t){t.options&&D.postMessage({action:"frames/receiveOptions",frameId:e.state.frameId,options:t.options})},receiveOptions(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&t.options&&$l(t.options)},syncIdentity(e,t){var n;(t.visitorId||t.accountId)&&({visitorId:t,accountId:n}=t,D.postMessage({action:"frames/receiveIdentity",frameId:e.state.frameId,visitorId:t,accountId:n}))},receiveIdentity(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&(t.visitorId||t.accountId)&&qn(t.visitorId,t.accountId)},setReady(e,t){e.commit("setReady",t.isReady)},receiveGuideSeen(e,t){t.frameId!==e.state.frameId&&v.guideSeen.trigger(t.guideSeen)},checkGuideEligibility(e,t){var{guideId:t,stepId:n,currentStepIndex:i,sourceFrame:r,promiseId:o}=t,t=N(t),n=t&&t.findStepById(n),a={};return t&&n?(0===i&&(i=kd(t))&&((i=_.first(Cr(i)))?ya(i)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),_.isFunction(n.canShowOnPage)&&!n.canShowOnPage(nd())&&(a.PAGE="mismatch"),n.elementPathRule&&((i=_.first(Cr(n.elementPathRule)))?ya(i)?n.elementContainsRulesList&&!im(i,n.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),n.triggerElementPathRule&&((i=_.first(Cr(n.triggerElementPathRule)))?ya(i)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),_.get(t,"attributes.embedConfig")&&(n=_.get(t,"attributes.embedConfig.selector"),(i=_.first(Cr(n)))?ya(i)||(a.EMBED_CONTAINER="notVisible"):a.EMBED_CONTAINER="notFound")):a.GUIDE="notFound",o&&r&&D.postMessage({errors:a,action:"frameEligibilityResponse",targetFrame:r,resolveId:o}),a},setTabId(e,t){e.commit("setTabId",t)}},mutations:{addFrame(e,t){var n=t.id;e.frames[n]=_.extend({},e.frames[n],t)},removeFrame(e,t){delete e.frames[t]},setGuideList(e,t){var n=t.frameId;e.frames[n]=_.extend({},e.frames[n],{guides:_.indexBy(A0(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!==ye&&(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&&!!x0(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&&!!x0(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToResourceCenter})}},isBroadcastChannel(e){return"BroadcastChannel"===e.channelType},channelType(e){return e.channelType},canShowRCBadge(e,t){var n,i;return t.leaderKey()!==E.apiKey?(n=_.filter(e.frames,function(e){return e.apiKey===E.apiKey}),(i=_.find(n,function(e){return e.isTop}))?e.frameId===i.id:(i=_.min(n,function(e){return e.joinedAt}),e.frameId===i.id)):_.any(e.frames,function(e){return e.isTop})?t.isTop():t.isLeader()},leaderKeyPreference(e){e=_.filter(e.frames,e=>e.leaderKey&&e.leaderKey.length);return 1===_.unique(_.map(e,e=>e.leaderKey.join(","))).length?[].concat(e[0].leaderKey):[]},getMyApiKey(e,t){return t.getMyFrame().apiKey},getMyFrame(e){return e.frames[e.frameId]},window(){return window}},state:{initialized:!1,frameId:null,leaderId:null,tabId:null,agentInstallType:null,leadershipMode:null,topId:null,frames:{},guidesLoaded:!1,channelType:null,ready:!1},requests:T0};function k0(e){var t=_.pick(e,"id","name","launchMethod","isMultiStep","steps","control","lastUpdatedAt","language","state","polls","redisplay");return t.attributes=_.pick(e.attributes,"overrideAutoThrottling","priority","isAnnouncement","resourceCenter","device","sharedServiceVersion","embedConfig"),t._shouldBeAddedToLauncher=_.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e._shouldBeAddedToLauncher||!1,t._shouldBeAddedToResourceCenter=_.isFunction(e.shouldBeAddedToResourceCenter)?e.shouldBeAddedToResourceCenter():e._shouldBeAddedToResourceCenter||!1,t.steps=_.map(e.steps,function(e){return _.pick(e,"id","guideId","type","seenReason","seenState","lastSeenAt","lastUpdatedAt","dismissCount","snoozeEndTime","regexUrlRule","pageId","elementPathRule","triggerElementPathRule","elementContainsRulesList")}),t}function A0(e){return _.map(e,k0)}function R0(t){var n=_.indexBy(_.filter(md(),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(ac).value(),e=_.toArray(n).concat(e).filter(Lm);_.sortBy(e,Pm),Ym(e),ld(e),t.guidesLoaded&&0===_.size(_.get(t,"frames."+t.frameId+".guides",[]))&&_h()}var O0,n={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,wh-t),wh),t=Ut(M0,t),e.commit("setScheduledUpdate",t))},handleScheduledUpdate(e){e.dispatch("stopScheduledUpdate"),_h()},stopScheduledUpdate(e){e.state.scheduledUpdate&&(clearTimeout(e.state.scheduledUpdate),e.commit("setScheduledUpdate",null))},startObserverIfNeeded(e){e.state.useObserver&&!e.state.observing&&(e.getters.observer().addEventListener("mutation",N0),e.commit("setObserving",!0))},stopObserver(e){var t=e.getters.observer();t&&t.removeEventListener("mutation",N0),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setObserver(e,t){O0=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){Os.startTimer("guide-loop"),e.needsUpdate=!1,e.updateId=t},completeUpdate(e,t){Os.stopTimer("guide-loop"),e.updateId=null,e.updateCompleteTime=t}},getters:{now(){return S()},observer(){return O0}},state:{useObserver:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}};function N0(){g.dispatch("guideUpdate/documentChanged")}function M0(){g.dispatch("guideUpdate/handleScheduledUpdate")}L0=["advanced","dismissed","snoozed"];var L0,e={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){Mo(['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(L0,t.seenState)&&!_.contains(L0,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}},P0={state:{visitor:{},account:{},parentAccount:{},date:null,version:null,selfHosted:null},actions:{},mutations:{setMetadata(e,t){t&&(t.visitor&&(e.visitor=t.visitor),t.account&&(e.account=t.account),t.parentAccount&&(e.parentAccount=t.parentAccount),t.date&&(e.date=t.date),t.version&&(e.version=t.version),null!==t.selfHosted)&&(e.selfHosted=t.selfHosted)},clearAccount(e){e.account={}},reset(e,t){e.visitor={id:t.visitor_id},e.account={},e.parentAccount={},e.date=null,e.version=null,e.selfHosted=null}},getters:{metadata(e){return e},selfHosted(e){return e.selfHosted}}};const F0=h.getLocal();var D0="pendo-preview",U0="current-guide-preview",G0={state:{preview:null,designerPreview:null},actions:{start(e,t){e.commit("setPreview",t),e.dispatch("write")},restart(e,t){e.commit("updatePreview",{state:null}),e.commit("updatePreview",t)},update(e,t){e.commit("updatePreview",{state:t}),e.dispatch("write")},load(e){try{var t=e.getters.storage(),n=JSON.parse(t.getItem(D0)),i=(n.apiKey===E.apiKey&&e.commit("setPreview",n),t.getItem(U0));i&&e.commit("setDesignerPreview",JSON.parse(i))}catch(r){}},write(e){try{var t=e.getters.storage();e.state.preview?t.setItem(D0,JSON.stringify(e.state.preview)):t.removeItem(D0)}catch(n){}},exit(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview(e){e.commit("setDesignerPreview",null),e.getters.storage().removeItem(U0)},launchInAppDesigner(e,t){Rf.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 F0}}};const B0=(()=>{const n={isTop:undefined,isLeader:undefined,frameId:null,tabId:null,frames:{},autoOrdering:[],excludedGuides:[],throttling:{},enableEventLogging:!1,eventsCaptured:[],cspErrors:[],installType:null,doNotProcess:!1},a={TOP_DOWN:"top-down",BOTTOM_UP:"bottom-up"},s={debuggingEnabled:{type:a.TOP_DOWN,defaultValue:!1},guideLoopRunning:{type:a.BOTTOM_UP,defaultValue:!1},stepEligibilitySet:{type:a.BOTTOM_UP,defaultValue:{}},identity:{type:a.BOTTOM_UP,defaultValue:{}},location:{type:a.BOTTOM_UP,defaultValue:{}}};var e={init:(e,t)=>{e.commit("setFrameId",gn.getFrameId()),e.commit("setTabId",gn.getTabId()),e.commit("setInstallType",we());var n=Od()&&window.top===window;e.commit("setIsTop",n),e.commit("isLeader",Od()),n?(n=Gh(),e.commit("debuggingEnabled",!0===n.enabled),n.enableEventLogging&&e.commit("enableEventLogging",!0)):D.postMessage({action:"debugger/join",frameId:e.state.frameId}),_.each(t.events,e=>o(e))},join:(n,e)=>{n.state.frameId!==e.frameId&&_.each(s,({type:e},t)=>{e===a.TOP_DOWN&&D.postMessage({action:"debugger/sync",frameId:n.state.frameId,fields:{[t]:n.state[t]}})})},sync:(i,e)=>{if(i.state.frameId!==e.frameId){const{frameId:r,fields:t}=e;_.each(t,(e,t)=>{var n;s[t]&&(n=s[t]["type"],n===a.TOP_DOWN&&i.state.isTop||n===a.BOTTOM_UP&&!i.state.isTop||i.commit("_sync_"+t,{value:e,frameId:r}))})}},enableEventLogging:(e,t)=>{e.commit("enableEventLogging",t)},eventCaptured:(e,t)=>{E.designerEnabled||sf()||uf()||(e.state.isTop?e.commit("eventsCaptured",t):D.postMessage({action:"debugger/receiveEventCaptured",frameId:e.state.frameId,event:t}))},receiveEventCaptured:(e,t)=>{e.state.isTop&&e.commit("eventsCaptured",t.event)},clearEventsCaptured:e=>{e.commit("eventsCaptured",[])},onCspError:(e,t)=>{e.state.isTop?e.commit("cspError",t):D.postMessage({action:"debugger/recieveCspError",frameId:e.state.frameId,data:t})},recieveCspError:(e,t)=>{e.state.isTop&&e.commit("cspError",t.data)},checkGuideEligibility(e,t){const{guideId:i,response:n}=t;var t=_.filter(g.state.frames.frames,e=>e.guides&&e.guides[i]);t.length&&(t=_.map(t,n=>{var e=_.map(n.guides[i].steps,(e,t)=>D.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:n.id,stepId:e.id,currentStepIndex:t,guideId:i}));return m.all(e).then(e=>({frameId:n.id,frameVisibility:n.visibility,errors:_.map(e,e=>JSON.parse(e).errors)}))}),m.all(t).then(e=>e).then(e=>n(e))["catch"](e=>n({error:e})))}};const t={},u={setFrameId(e,t){e.frameId=t},setTabId(e,t){e.tabId=t},setIsTop(e,t){e.isTop=t},isLeader(e,t){e.isLeader=t},setInstallType(e,t){e.installType=t},stepEligibilitySet(e,t){var n=t["stepId"];e.stepEligibilitySet[n]=t},guideLoopRunning(e,t){e.guideLoopRunning!==t&&(e.guideLoopRunning=t)},identity(e,t){e.identity=t},location(e,t){e.location=t},debuggingEnabled(e,t){e.debuggingEnabled=t,t=t,e=e.isTop,n.debuggingEnabled!==t&&(t?(d(),c(),v.on("stepEligibility",i),v.on("guideUpdateComplete",p),v.on("guideLoopStopped",h),v.on("eventCaptured",o),v.on("identify",d),v.on("urlChanged",c),e&&(r(),v.on("guidesLoaded",r))):(v.off("stepEligibility",i),v.off("guideUpdateComplete",p),v.off("guideLoopStopped",h),v.off("eventCaptured",o),v.off("identify",d),v.off("urlChanged",c),e&&v.off("guidesLoaded",r)))},excludedGuides(e,t){e.excludedGuides=t},autoOrdering(e,t){e.autoOrdering=t},throttling(e,t){e.throttling=t},eventsCaptured(e,t){_.isArray(t)&&0===t.length?e.eventsCaptured=[]:e.debuggingEnabled&&e.enableEventLogging&&(e.eventsCaptured.unshift(t),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 i(e){e=e.data[0];g.commit("debugger/stepEligibilitySet",e)}function r(e){var t=_.map(ch.sortAndFilter(O,E.autoOrdering),e=>e.id);g.commit("debugger/autoOrdering",t||[]),g.commit("debugger/excludedGuides",E.excludedGuides||[]),g.commit("debugger/throttling",E.throttling||{})}function o(e){g.dispatch("debugger/eventCaptured",e.data[0])}function d(e){g.commit("debugger/identity",{visitorId:_.get(e,"data.0.visitor_id")||E.get_visitor_id(),accountId:_.get(e,"data.0.account_id")||E.get_account_id(),apiKey:E.apiKey})}function c(){g.commit("debugger/location",{href:Hr(),browserUrl:window.location.href})}function l(e){g.commit("debugger/guideLoopRunning",e)}const p=_.partial(l,!0),h=_.partial(l,!1);return _.each(s,({type:i,defaultValue:e},r)=>{n[r]=e,t[r]=e=>e[r];let o=u[r]||((e,t)=>{e[r]=t});u[r]=_.wrap(o,(e,t,n)=>{!t.isTop&&i===a.TOP_DOWN||(e(t,n),t.isTop&&i===a.BOTTOM_UP)||D.postMessage({action:"debugger/sync",frameId:t.frameId,fields:{[r]:n}})}),o=u["_sync_"+r]||o,u["_sync_"+r]=(e,{value:t,frameId:n})=>{e.frames[n]||(e.frames[n]={}),e.frames[n][r]||(e.frames[n][r]=s[r].defaultValue),o(e.frames[n],t),e.isTop||i!==a.TOP_DOWN||o(e,t)}}),{state:n,actions:e,getters:t,mutations:u}})(),z0=["src","href"],j0=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===z0.indexOf(t.toLowerCase()))return e;try{n=e,(i=document.createElement("a")).href=n;var r=new ei(i.href);return _.reduce([_.partial(s,a.transforms)],(e,t)=>t(e),r).href}catch(o){return C.critical(o),e}}}}}}(),H0={state:{transforms:[]},actions:{addNetworkTransform(e,t){e.commit("addTransform",t)}},mutations:{addTransform(e,t){e.transforms.push(t)},clearURLTransforms(e){e.transforms=[]}},getters:{getTransformedUrl(o){return function(e){if(_.size(o.transforms)<1)return e;try{var t=e instanceof ei?e:new ei(e,window.location.origin);return n=o.transforms,i=t,_.reduce(n,function(e,t){return t.applyTo(e)},i).href}catch(r){return C.critical(r),e}var n,i}}}};const q0=function(){const i="pendo-loader";let r,o,n;return{name:"IFrameMonitor",initialize:function(e,t){r=e,o=t,function(){o.ConfigReader.get("autoFrameInstall")&&o.Events.ready.on(l);o.ConfigReader.get("frameIdentitySync")&&(o.Events.metadata.on(h),o.Events.identify.on(f),o.Events.childFrameJoined.on(a))}(),n=o.ConfigReader.get("frameIdentityTopDownOnly")},teardown:function(){o.Events.ready.off(l),o.Events.metadata.off(h),o.Events.identify.off(f),o.Events.childFrameJoined.off(a)}};function a(){g()}function s(e){return e.ignoreIframeMonitor||e.pendo&&(e.pendo.initialize||e.pendo.iframeWaiting)||!!e.document.getElementById(i)}function u(e,t){var n;s(e)||((n=o.ConfigReader.getLocalConfig()).apiKey||(n.apiKey=r.apiKey),e.pendo={_q:[["initialize",n]]},(n=e.document.createElement("script")).src=t,n["async"]=!0,n.id=i,(t=e.document.getElementsByTagName("script")[0])&&t.parentNode?t.parentNode.insertBefore(n,t):(e.document.head||e.document.body).appendChild(n))}function d(e,t){e.pendo.iframeWaiting=!1,u(e,t)}function c(e){try{if(s(e))return}catch(n){return}var t=function(){var e=o.ConfigReader.get("selfHostedAgentUrl");if(e)return e;e=r.dom("script");const t=/\/pendo(\.\w+)?\.js$/;return(e=r._.find(e,e=>t.test(e.src)))&&e.src}();t?"complete"===e.document.readyState?u(e,t):(e.pendo={iframeWaiting:!0},e.document.addEventListener("DOMContentLoaded",r._.partial(d,e,t))):r.log("Unable to find agent url to install agent in frames","debug")}function e(){var t=r.dom("iframe").length;for(let e=0;e<t;e++)c(window.frames[e]);Ut(e,250)}function l(){e()}function p(){return!n||n&&o.store.getters["frames/isLeader"]()}function h(e){p()&&(e=null==(e=e.data)?void 0:e[0]).storeChanged&&o.store.dispatch("frames/syncOptions",{options:e.options})}function f(e){var t;g(null==(t=e.data)?void 0:t[0].visitor_id,null==(t=e.data)?void 0:t[0].account_id)}function g(e=y(),t=$n()){p()&&o.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}}();function W0(e,n){return e.length==n.length&&_.all(e,function(e,t){return e===n[t]})}class V0{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=Cr(n.selector)}catch(i){t=[]}t.length>this.maxTargets&&(t.length=this.maxTargets),W0(t,n.targets)||(n.targets=t,this.domActivation.detach(n,this.domActivation.targets),_.each(t,function(e){this.domActivation.attach(e,n,this.domActivation.targets)},this))}}handleProcessTimeExceeded(e){e=e.getContext();e&&C.warn("Element activated guide ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var J0,$0,K0,Z0,X0,Y0,Q0={name:"DOMActivation",key:K0="pendoTargetId",guides:Z0=[],targets:X0={},reset:rb,init:ab,attach:function(n,i,e){var t=n[K0],r=t?e[t]:null;r||(t=t||"target"+_.uniqueId(),r={target:n,events:{}},e[t]=r,n[K0]=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(ib,_,t.guideIds),l(n,e="mouseover"===e?"mouseenter":e,t.fn),r.events[e]=t),t.guideIds[i.id]=1})},detach:nb,handler:ib,activates:ob,prefetch:sb,initialize:function(e,t){(J0=t).Events.on("deliverablesLoaded",rb),t.Events.on("guideListChanged",eb),t.Events.on("guidesLoaded",tb),Ph($0=new V0(Q0))},teardown:function(){Fh($0),J0.Events.off("deliverablesLoaded",rb),J0.Events.off("guideListChanged",eb),J0.Events.off("guidesLoaded",tb)}};function eb(){rb(),ab(dd())}function tb(){sb(dd())}function nb(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)&&(Qu(n.target,t="mouseover"===t?"mouseenter":t,e.fn),delete n.events[t])}),_.size(n.events)<=0)&&(delete n.target[K0],n.target=null,delete t[e])}),delete t[i.id]}function ib(e,t){var n;!e.pendoActivatedGuide&&!k.data.get(e,"advanced")&&(n=f.get("adoptPrioritizeAdoptGuides"),t=_.compact(_.map(_.keys(t),N)),t=_.filter(t,function(e){return!(!e.steps||!e.steps.length||_.get(e,"attributes.dom.isOnlyShowOnce")&&e.steps[0].hasBeenSeen())}),t=_(t).chain().sortBy(function(e){return"staged"===e.state?0:1}).sortBy(function(e){e=e.isTraining;return n?e?0:1:e?1:0}).value(),t=_.find(t,function(e){var t=_.first(e.steps);return _.get(e,"attributes.resourceCenter",!1)&&e.isShown()?P.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||cm(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function rb(){_.each(Z0,function(e){nb(e,X0),e.targets=[]}),Z0.length=0}function ob(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(nd())){var t=_.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=kd(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function ab(e){_.each(e,function(e){e=ob(e);e&&Z0.push(e)})}function sb(e){f.get("disablePrefetch")||_.each(e,function(e){_.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&_.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent(!0)})}var ub=function(){(Y0=Y0||{dom:k,placeBadge:Vh,showPreview:sm,stopGuides:Ih,removeAllBadges:Jh,_:_,sizzle:Cr,tellMaster:Xa,tell:Xa,log:vy,attachEvent:l,createLauncher:_.constant({}),removeLauncher:_.noop,addGuideToLauncher:_.noop,updateLauncherContent:_.noop,DEFAULT_TIMER_LENGTH:wh,getOffsetPosition:Qo,getScreenDimensions:Zo,registerMessageHandler:za,whenLoadedCall:td,loadResource:La,loadGuideCss:Vm,GuideFactory:ac,GuideStep:sc,extractElementTreeContext:Hu,previewGuideFromJSON:U.previewGuideFromJSON,hidePreviewedGuide:U.hidePreviewedGuide,shadowAPI:oi,getTarget:Nr,pullContentsFromTargetElement:nm,doesElementMatchContainsRules:im,doesElementContentMatchRule:rm,getGuideAttachPoint:_d}).areGuidesEnabled=!rv(),E.designer||(E.designer=Y0)},db=function(){var r,o,i;let a;return{name:"DesignerConnect",initialize:function(e,t){r=e,o=t,ts()||za("connect",n);za("pendo-designer-launch::launch",d),za("pendo-preview::launch",c),e.app_name=document.title,(Ya()||window.opener)&&window.addEventListener&&(r.log(e.app_name+": listening to messages"),window.addEventListener("message",Da,!1));window.opener&&r._.isFunction(window.opener.postMessage)&&window.opener.postMessage({type:"pendo::ready"},"*");r.onConnectMessage=n},teardown:function(){window.removeEventListener&&window.removeEventListener("message",Da,!1),s(),ja("connect"),ja("pendo-designer-launch::launch"),ja("pendo-preview::launch"),a&&(o.Events.appUnloaded.off(a),a=undefined);i=i&&undefined},onConnectMessage:n,disconnectDesigner:s,launchDesignerListener:d,launchPreviewListener:c,sendToken:u};function n(e,t){var n,i;r.designer||(n=t.origin,r.stopGuides(),r.buffers.lock(),i=t.source,Na=i,r.designerv2.hostConfig||(o.store.dispatch("frames/leave"),a=r._.partial(s,i,n),o.Events.appUnloaded.on(a)),ub(),Xa(t.source,{status:"success",type:"connect"},n),Ja("selection.js")&&(r.log("Designer Modules already loaded."),Xa({type:"ready"},n)),o.Events.designerLaunched.trigger())}function s(e,t){r.buffers.unlock(),E.designer&&(E.designer=null,delete E.designer),e&&Xa(e,{type:"unload"},t)}function u(e,t){var n;i&&(n={token:i,type:"pendo-designer-launch::set-token"},t.source.postMessage(n,t.origin),i=undefined)}function d(e,t){var n,t=t.data.token;t&&(i=t,za("pendo-designer-launch::get-token",u),n=t.DADesigner?"da-designer":"in-app-designer",n={lookaside:t.baseUrl,host:t.host,target:t.target||"latest",DADesigner:!!t.DADesigner,gcsBucket:t.gcsBucket||n,forceNativeDesigner:!!t.forceNativeDesigner,sidebarDesigner:!!t.sidebarDesigner},r.designerv2.launchInAppDesigner(n))}function c(e,t){var n=t.data.config.preferredAgentInstallType;n&&n!==we()?r.log("Skipping preview launch due to agent install type mismatch."):(n=r._.extend({},t.data.config,{origin:t.origin}),fo()&&(n.apiKey=r.apiKey),o.store.dispatch("preview/exitDesignerPreview"),o.store.dispatch("preview/start",n),tf(window)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:r.apiKey,accountId:r.accountId},t.origin),mv(),o.store.dispatch("frames/startPreview")))}}();const cb="__sg__";pb="promotedAgentMetadataConfigurations",hb=[],fb={},gb={};var lb,pb,hb,fb,gb,mb={name:"PromoteMetadata",initialize:function(e,t){if(hb=(lb=t).ConfigReader.get(pb),gb={},lb.agentStorage.registry.addLocal(cb,{isSecure:!0,serializer:JSON.stringify,deserializer:Lt}),Fn())try{fb=lb.agentStorage.read(cb)}catch(n){Eb()}hb&&hb.length&&(lb.Events.on("metadata",bb),lb.Events.on("eventCaptured",_b),lb.Events.on("identify",wb))},teardown:function(){lb.Events.off("metadata",bb),lb.Events.off("eventCaptured",_b),lb.Events.off("identify",wb)},getPromotedMetadata:function(){return hb},hasPromotedMetadataKind:vb,setSchemaGroup:bb,getSchemaGroup:yb,resetSchemaGroup:Sb,resetCachedSchemaGroup:Eb};function vb(t){return _.some(hb,function(e){return e.kind===t})}function yb(){return gb}function bb(e){var t;e?(e=e.data[0]["options"],e&&(t=e)):t=Ql(),gb=function(r){if(Fn())try{var e=lb.agentStorage.read(cb);fb=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}(fb=e)}catch(t){Eb()}var o=gb;_.each(["visitor","account","parentAccount"],function(e){var t=vb(e),n=!_.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!_.isEmpty(fb)&&_.isEmpty(Is.get())&&(o[i]=Ib(fb[i],e)),n)&&(t=Ib(r[e],e),_.isEmpty(t)||(o[i]=Object.assign(Object.assign({},o[i]),t)))}),Fn()&&lb.agentStorage.write(cb,o);return o}(t)}function wb(e){e=e.data[0];_.get(e,"wasCleared")&&(lb.agentStorage.clear(cb),Sb())}function Sb(){gb={}}function Eb(){fb={}}function Ib(e,i){var r={};return e&&_.each(e,function(e,t){var n=t.toLowerCase();Boolean(_.find(hb,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function _b(e){e=e.data[0];e&&(_.isEmpty(gb)&&bb(),_.isEmpty(gb)||("track"===e.type?e.props.__sg__=gb:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=gb)))}function Cb(e,t,n){this.element=e,this.method="element"==t?"click":"hover"==t?"mouseover":t,this.step=n,this.guide=n.getGuide()}Cb.prototype.add=function(){0===_.indexOf(this.guide.steps,this.step)&&!Cb.shouldAttachHandler(this.guide,this.method)||bd(this.guide)&&!wd(this.guide)||this.setupElementEvent(this.element,this.method)},Cb.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},Cb.prototype.setupElementEvent=function(e,t){this.advanceFn||(this.advanceFn=_.compose(_.bind(this.teardownElementEvent,this,e,t),_.bind(this.step.advance,this.step))),Cb.attach(this.step,e,t,this.advanceFn)},Cb.prototype.teardownElementEvent=function(e,t){C.info("detach onGuideAdvanced",{contexts:["guide"]}),Qu(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},Cb.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||Q0.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector};var xb=null,Tb=function(){return Id()?yd:vd},kb=function(e){return"#_pendo_g_"+e.id},Ab=function(e,t){xb=null;var n,i,r,o,e=Qo(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(Tb()),o=Gb(e,o,i,r),t&&(t.dim=o),n.css({width:o.width,height:o.height,left:o.left,top:o.top}),e.fixed&&n.css({position:"fixed"}),k("._pendo-guide-container_",n).addClass(o.arrowPosition).css({top:o.content.top,left:o.content.left,width:o.content.width,height:o.content.height}),Rb(n[0],o),n[0])},Rb=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=_.chain(n).filter(function(e){return e!==o}).map(function(e){return"border-"+e+"-width:"+E.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=k("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),u=k("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");_.each(n,function(e){s.removeClass(i+e+"_").removeClass(e),u.removeClass(r+e+"_").removeClass(e)}),s.addClass(i+o+"_").addClass(o).css(a+"top:"+t.arrow.top+"px;left:"+t.arrow.left+"px;"),u.addClass(r+o+"_").addClass(o).css(a+"top:"+t.arrow.border.top+"px;left:"+t.arrow.border.left+"px;"),k(e).append(s).append(u)},Ob=function(e,t){t===undefined&&(t=od),e.element=xd(e);var n=e.element;if(!n)return C.info("No element found for step: "+e.id),null;wa(n);var i=Ab(n,e);return null===i?null:(i.id=E.getTooltipDivId(e),k(i).appendTo(_d()),t.push(i),l(i,"mouseover",_.partial(k.addClass,i,"mouseover")),l(i,"mouseout",_.partial(k.removeClass,i,"mouseover")),Ad(n,i),Fb(e),n)},Nb=null,Mb=null;var Lb=null,Pb={top:"north",left:"east",bottom:"south",right:"west"},Fb=function(e){try{var t,n,i,r,o,a,s,u;e.attributes&&e.attributes.blockOutUI&&e.attributes.blockOutUI.enabled&&(t=e.attributes.blockOutUI,(n=[]).push(e.element),i=Rc(n=n.concat(_.compact(_.flatten(_.map(t.additionalElements,function(e){return _.toArray(k(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=Ac(a=kc(),i,o),h=i,f=!_.isEqual(h,Nb),Nb=h,f||(l=a,p=!_.isEqual(l,Mb),Mb=l,p)||(d=s,c=!_.isEqual(d,Lb),Lb=d,c))&&(u={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(u["background-color"]=t.bgColor),t.opacity&&(u.opacity=t.opacity),_.each(s,function(e,t){t=Pb[t],e=_.extend({},e,u),t=k("div._pendo-guide-tt-region-block_._pendo-region-"+t+"_")[0]||Db(t),k(t).css(e)}))}catch(g){C.info("Failed to add BlockOut ui",{contexts:["error"]})}var d,c,l,p,h,f},Db=function(e){e=k(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");k("body").append(e)},Ub=function(e){var t=_.isEqual(e,xb);return xb=e,!t},Gb=function(e,t,n,i){var r=E.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=Zo();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=Bb(o,e,a,i=i||"auto"),o=zb(o,e,a,i),o=jb(o,e,a)},Bb=function(e,t,n,i){return e.arrow.hbias=Jc(t,n,i),e},zb=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-So(),t=(r=t.left-Eo())+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},jb=function(e,t,n){var i,r,o,a=e.height,s=e.width;return je()?He(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=_e(9,6)?6:2,i=-1):"bottom"==e.arrowPosition&&(e.top=t.top-a,e.arrow.top=a-E.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=_e(9,6)?6:0,e.arrow.top+=8==Ce?-1:0,i=1),r=10+E.TOOLTIP_ARROW_SIZE,o=s-3*E.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==qc?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==Wc?(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==qc?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=_e(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==Wc&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=_e(10,6)?5:0,e.arrow.left+=7==Ce&&6<=xe?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)},Hb=430,qb=200,Wb=15;function Vb(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||E.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||E.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.getTriggers=function(e){var t=this,n=t.element||xd(t);return!n&&e?[]:(e=(t.advanceMethod||"").split(","),this.triggers=_.map(e,function(e){return new Cb(n,e,t)}),this.triggers)},this.removeTrigger=function(e){this.triggers=_.without(this.triggers,e),0===this.triggers.length&&(this.triggers=null)},this.canShow=function(){return!Qg(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(nd())&&tm(t)},this.after("render",function(){Ob(this,this.elements)&&(_.each(this.getTriggers(),function(e){e.add()}),Kc.attachScrollHandlers(this,this.onscroll))}),this.reposition=function(){var e=this.attributes.width,t=this.attributes.height,n=this.attributes.layoutDir,i=this.guideElement,r=k("._pendo-guide-container_",i),o=Qo(this.element),t=Gb(o,t,e,n);r.removeClass("top right bottom left").removeClass("_pendo-guide-container-top_ _pendo-guide-container-right_ _pendo-guide-container-bottom_ _pendo-guide-container-left_").addClass(t.arrowPosition).addClass("_pendo-guide-container-"+t.arrowPosition+"_"),k("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),Rb(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,Fb(this)},this.onscroll=function(e){ya(e.element)?(e.reposition(),$o(e.elements[0],"display:block")):$o(e.elements[0],"display:none")},this.teardownElementEvent=function(){_.each(this.triggers,function(e){e.remove()})},this.after("hide",function(){k("._pendo-guide-tt-region-block_").remove(),Lb=Mb=Nb=null})),this}var Jb=function(e,t){var n=!!k("._pendo-backdrop_")[0];return _.get(t,"overlayDiv[0]")||(t.overlayDiv=k(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(_d())),je()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&k(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},$b=function(e){var t=e.guideElement,n=E.TOOLTIP_ARROW_SIZE,i=e.attributes.height,e=e.attributes.width,e=Math.floor(e/2),i=Math.floor(i/2);t.addClass("_pendo-guide-lb_").css({top:"50%",left:"50%","margin-top":-i,"margin-left":-e}),k("._pendo-guide-container_",t).css({bottom:n,right:n}),je()&&t.css({position:"absolute"})},Kb=function(e,t){t===undefined&&(t=od),e.element=xd(e),$b(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(Jb(n,e),e.guideElement);t.push(n[0]),n.appendTo(_d())},Zb=function(e,t){t===undefined&&(t=od),e.element=xd(e),e.guideElement.addClass("_pendo-guide-mobile-lb_");var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=Jb(n,e),e=e.guideElement,i=E.TOOLTIP_ARROW_SIZE,i=(e.css({width:"",height:""}),k("._pendo-guide-container_",e).css({bottom:i,right:i}));function r(e){e.preventDefault()}k("._pendo-close-guide_",e).remove().prependTo(i),e.appendTo(_d()),t.push(e[0]),l(n[0],"touchmove",r),l(e[0],"touchmove",r)};function Xb(){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(){(Id()?Zb:Kb)(e,e.elements)}),e.reposition=function(){Id()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var Yb=500,Qb="_pendo-guide-banner_";function e1(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||Yb,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=E.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(Qb).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),Ed()||e.addClass("_pendo-in_"),k("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=xd(n),n.elements.push(e[0]),e.appendTo(_d())})),n}function t1(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(_.extend(n,{isShown:_.constant(!1),launch:u,onShown:u,render:function(){var e=n.guideElement,t=n.attributes.height;e&&e.html()||(e=k(document.createElement("div")).attr("id",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&&!ra(e[0])&&(k("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),fc.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){Ed()||a()&&n.seenState!==r&&function(e){{var t,n;if(ya(e,/(auto|scroll|hidden)/))return(t=ua(e))?(t=oa(t),e=oa(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(pm(n.guideId,n.id,y(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,_.delay(function(){n.guideElement.addClass(i+" out")},_.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function u(){}}var n1="_pendo-launcher-searching_",i1="._pendo-launcher-search-box_ input";var r1,o1=function(e){return e&&_.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function a1(){var e;return function(){var e;if(E.guideWidget)return(e=E.guideWidget.data)&&e.enableSearch}()&&(e=k(i1)[0])&&0<(e=e.value).length?(e=it.call(e),[].concat(_.compact(e.split(" ")))):[]}function s1(e){if(!f.get("disablePrefetch"))return m.all(_.map(e,function(e){return e.fetchContent()}))}function u1(e,t){return C.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||O,t&&0!==t.length?_.chain(e).filter(o1).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return _.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var d1=function(){var e=md();if(Od()){if(E.guideWidget&&E.guideWidget.enabled){var t=y1(e),n=!0;if(E.guideWidget&&_.isFunction(E.guideWidget.update))E.guideWidget.update(t,n)}}else{k1();t=cd(e),n=b1(y1(t));n!==r1&&g.dispatch("frames/changeGuideList",t),r1=n}},c1="launcher-closed",l1=null,p1=null,h1=!(Cb.attach=function(e,t,n,i){if(e){for(var r=Cb.handlers=Cb.handlers||{},o=r[e.id]=r[e.id]||[],a=0;a<o.length;++a){var s=o[a];t===s[0]&&n===s[1]&&(Qu(t,n,s[2],!0),o.splice(_.indexOf(o,s),1),a--)}o.push([t,n,i]),Qu(t,n,i,!0),l(t,n,i,!0)}}),f1="_pendo-launcher-active_",g1=null,m1=function(){return""};function v1(e,t){m1=t}function y1(e){var t,e=_.filter(e||O,o1);return e=e,0===(t=a1()).length?e:(t=_.map(t,_.partial(u1,e)),_.union.apply(_,t))}function b1(e){return ct(_.map(e,function(e){var t=e.isWhatsNew()?[]:_.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function w1(e){var n=this,t=e.launchType||"badge",i=(_.extend(n,{show:function(){"badge"===t&&k(n.element).css("display: ;")},hide:function(){k(n.element).css("display: none;")},wrap:function(){var e=n.element;{var t;e&&/^img$/i.test(e.nodeName)&&(t=k(document.createElement("div")).addClass(e.className).append(e).appendTo(_d()),e.className="",n.element=t[0])}},dispose:function(){k.removeNode(n.element)},setActive:function(e){e?k(n.element).addClass(f1):k(n.element).removeClass(f1)}}),e),e=i.position||"bottom-right",r=document.createElement("img");k(n.element=r).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+e+"_"),i.launcherBadgeUrl&&(r.src=uc(i.launcherBadgeUrl)),r.onerror=function(e){C.info("[Agent] Error! Unable to load guide center image "+i.launcherBadgeUrl),C.critical("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},je()&&(l(r,"mouseover",function(e){k(r).addClass("_pendo-launcher-badge-active_")}),l(r,"mouseout",function(e){k(r).removeClass("_pendo-launcher-badge-active_")}),k(r).css({position:"absolute"})),_d().appendChild(r)}function S1(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=Nr(e),t=n();k(e).closest(t).length&&(M1()?h.write(c1,"yes"):E.guideWidget.position(e),D1())}E.guideWidget.removeCountBadge=function(){k("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),_.extend(this,{getLauncherTarget:function(){return k(n())[0]},dispose:function(){Qu(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&k("._pendo-launcher-whatsnew-count_").remove()}}),l(document,"click",t)}function E1(){var n,s="bottom-right",u="bottom-left";return this.update=function(e,t){t=t?e:y1(e),e=b1(t)+ct(a1());return e!==n&&(n=e,this.updateLauncherContent(t)),x1(),0<t.length},this.updateLauncherContent=O1,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(l1=new w1(e),e.height||310),n=(e.enableSearch&&(t+=je()?50:39),this&&!this.hidePoweredBy&&(t+=40),e.addHeight&&(t+=e.addHeight),this.height=t,e.width||330),i=(e.addWidth&&(n+=e.addWidth),this.width=n,k(document.createElement("div")).addClass("_pendo-launcher_")),r=(p1=i[0],Qo(l1.element)),r=Gb(r,t,n),o=(i.css({width:n,height:t}),E.TOOLTIP_ARROW_SIZE),n=k(document.createElement("div")).addClass("_pendo-guide-container_ "+r.arrowPosition).addClass("_pendo-guide-container-"+r.arrowPosition+"_").css({top:o,left:o,width:n-2*o,height:t-2*o}).appendTo(i),t=R1(),o=uc(I1(this.template(t))),t=k(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),Mg(i[0],function(){P1(),h.write(c1,"yes",288e5)}),t.on("click",function(e){var t=k(Nr(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=N((t=/^launcher-(.+)$/.exec(it.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(cm(t.steps[0],"launcher"),P1(),ed(e))}),je()&&(k("._pendo-launcher-header_",i).css({padding:"10px","margin-right":"10px","margin-left":"10px"}),k("._pendo-launcher-footer_",i).css({"border-top":"1px solid #bbb"}),i.css({position:"absolute"})),i.find("[pendo-style]").each(function(){var e=this.getAttribute("pendo-style");k(this).css(e)}),i.appendTo(_d()),_.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!_e(9,6)&&(o=e.autoHeight.offset||100,i.css({height:"calc(100% - "+o+"px)",maxHeight:e.height,minHeight:e.height/2}),k("._pendo-guide-container_."+r.arrowPosition).css({maxHeight:e.height-30,minHeight:e.height/2-30,height:"calc(100% - 30px)"}))},this.position=function(e){var t,n,i,r,o,a;e&&(t=this.data||{},e=Qo(e),n=Gb(e,this.height,this.width),i=k(p1),"badge"===(r=t.launchType||"badge")?(o=t.position,_.indexOf(a=[s,u,"top-left","top-right"],t.position)<0&&(o=s),_.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=_.contains([s,u],o)?"bottom":"top",n.arrow.hbias=_.contains([u,"top-left"],o)?"left":"right",n.arrow.floating=!1):"element"===r&&i.css({top:n.top,left:n.left,height:n.height,width:n.width,position:e.fixed?"fixed":"absolute"}),k("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),jb(n,e,{width:Infinity,height:Infinity}),Rb(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=D1,this}function I1(e){return e=_.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function _1(e,t){e.contentHostUrl&&(e.contentHostUrl=(n=e.contentHostUrl,i=location,(r=f.getLocalConfig("contentHost"))&&(n=(n=n.replace(/^pendo-static-\d+\.storage\.googleapis\.com$/,r).replace(/^pendo-\w+-static\.storage\.googleapis\.com$/,r).replace(/^cdn\.pendo\.io$/,r)).replace(/^https?:/,"").replace(/^\/\//,""),!/\./.test(n))&&!/^localhost/.test(n)&&/^\//.test(n)?i.host+n:n)),g1=new S1(e);var n,i,r=E1.create(E.guideWidget);return _.isFunction(r.template)||(r.template=e.template?_.template(e.template):m1),r.render(),r.position(g1.getLauncherTarget()),t&&r.toggle(),r}E1.create=function(e){return _.reduce(E1.behaviors,function(e,t){return t.call(e)},e)},E1.behaviors=[Dh,E1,ic.Launcher,function(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){k(i1).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,E.disableGuideCenterContentSearch||this.before("update",s1),this.before("update",function(){t.text=a1().join(" ");var e=k("._pendo-launcher_");t.text?e.addClass(n1):e.removeClass(n1)})),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,u0),t=_.filter(e,function(e){return"complete"==n.guideStatus(e)}),e=i.total=e.length,t=(i.percentComplete=0<e?Math.round(t.length/e*100):0,k("._pendo-launcher_,._pendo-launcher-badge_"));e?(t.addClass("onboarding"),t.addClass("_pendo-launcher-onboarding_")):(t.removeClass("onboarding"),t.removeClass("_pendo-launcher-onboarding_"))}),n.getOnboardingState=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":e.isNotStarted()?"not-started":null})}return n},function(){var n=this,i=k(document.createElement("div")).addClass("_pendo-launcher-whatsnew-count_");n.data&&n.data.whatsnew&&n.data.whatsnew.enabled&&(n.before("updateLauncherContent",function(e){e=_.filter(e,function(e){return e.isWhatsNew()});e.sort(t),n.data.whatsnew.total=e.length,n.data.whatsnew.guides=e}),n.after("update",function(e){var t=n.data.whatsnew.guides,t=(_.each(t,function(e){e.show()}),_.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),_.filter(t,function(e){return"active"!==e.steps[0].seenState}).length);t!==n.data.whatsnew.unseenCount&&(i.html(t).css({display:t?"":"none"}),n.data.whatsnew.unseenCount=t,k("span._pendo-launcher-whatsnew-count_").text(n.data.whatsnew.unseenCount))}),n.after("render",function(){A1()?i.appendTo(this.data.launchElement):(l1.wrap(),i.appendTo(l1.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 C1=function(){p1&&(k.removeNode(p1),p1=null),g1&&(g1.dispose(),g1=null),l1&&(l1.dispose(),l1=null)},x1=function(){(!A1()&&(L1()||0<a1().length)?T1:k1)()},T1=function(){l1&&l1.show()},k1=function(){A1()||P1(),l1&&l1.hide()},A1=function(){return!(!E.guideWidget||!E.guideWidget.data||"element"!==E.guideWidget.data.launchType)},R1=function(e){var t=Ql(),t=_.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:ut(t)},E.guideWidget);return t.data=_.extend({},t.data),e&&(t.guides=e),t};function O1(e){var t=E.guideWidget.template||m1,e=R1(e),e=k(document.createElement("div")).html(I1(t(e))),n=e.find("._pendo-launcher-guide-listing_"),t=e.find("._pendo-launcher-footer_").html(),e=e.find("._pendo-launcher-search-results_").html();k("._pendo-launcher_ ._pendo-launcher-guide-listing_").each(function(e,t){k(e).html(n.eq(t).html())}),k("._pendo-launcher_ ._pendo-launcher-footer_").html(t),k("._pendo-launcher_ ._pendo-launcher-search-results_").html(e)}var N1=_.compose(x1,function(e,t){var n,i,r,o;o1(e)&&(n=k("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0])&&(e=(o=k("#launcher-"+e.id)).length?o[0]:(e=e,k(i=document.createElement("div")).addClass("_pendo-launcher-item_"),k(i).attr("id","launcher-"+e.id),(r=document.createElement("a")).href="#",r.innerHTML=e.name,i.appendChild(r),i),o=0<o.length,_.isNumber(t)&&(r=k("._pendo-launcher-item_"))[t]?e.id!=r[t].id&&n.insertBefore(e,r[t]):n.appendChild(e))}),M1=function(){return k(p1).hasClass(f1)},L1=function(){return 0<k("._pendo-launcher-item_").length},P1=function(){var e;p1&&(e=k(p1))&&e.hasClass(f1)&&(e.removeClass(f1),l1)&&l1.setActive(!1)},F1=function(){var e;p1&&(e=k(p1))&&!e.hasClass(f1)&&(e.addClass(f1),l1)&&l1.setActive(!0)},D1=function(){p1&&!h1&&(M1()?P1:F1)()};var U1=function(){try{var e=E.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};C1(),!Id()&&!n.desktop||Id()&&!n.mobile||Ya()&&!n.iframe||e.enabled&&(_1(t),k1())}catch(i){C.critical("ERROR while initializing launcher",{error:i})}},G1=function(e){e.defaultLauncher=v1,_.each(e._defaultLauncher_queue,e=>{v1.apply(null,e)}),e._defaultLauncher_queue=[],e.toggleLauncher=D1,e.showLauncher=F1,e.hideLauncher=P1,e.removeLauncher=C1,e.initLauncher=U1,e.createLauncher=_1,e._addGuideToLauncher=N1,e.launcherToolTipDiv=p1},B1=function(){U1()},z1=function(){var e;(e=E).designer&&(e.designer.createLauncher=_1,e.designer.removeLauncher=C1,e.designer.addGuideToLauncher=N1,e.designer.updateLauncherContent=O1)},j1=function(){var e;(e=E).debugging&&(e.debugging.getLauncherGuides=y1)},H1=function(e){return i=E.guideWidget,e=e,r=i&&i.data,e=_.filter(e,function(e){e=_.first(e.steps);return e&&"launcher"===e.type}),(e=_.first(_.sortBy(e,function(e){return-e.lastUpdatedAt})))&&r&&(e=_.first(e.steps),_.extend(r,_.pick(e,"contentUrl","contentUrlCss","contentUrlJs"),e.attributes),_.defaults(r,{whatsnew:{},knowledgebase:{}}),r.id=e.guideId+e.id),n=(t=i)&&t.data||{},!0!==f.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?$d.verify(n).then(function(){return cc.load(n)}).then(function(e){return n.template=e.content,_.extend(t,e)}):m.resolve();var t,n,i,r},q1=function(e,t){G1(e),t.Events.on("guidesLoaded",B1),t.Events.on("designerLaunched",z1),t.Events.on("debuggerLaunched",j1),t.GuideLoop.addUpdatePhase(d1),Bm.push(H1),t.agentStorage.registry.addLocal(c1,{duration:864e6})},W1=function(e,t){var n;n=H1,0<=(n=_.indexOf(Bm,n))&&Bm.splice(n,1),t.GuideLoop.removeUpdatePhase(d1),t.Events.off("guidesLoaded",B1),t.Events.off("designerLaunched",z1),t.Events.off("debuggerLaunched",j1)};kv.Extensions.API.addTopic("Launcher",{addBehavior(e){E1.behaviors.push(e)}});var V1,J1,$1,K1,Z1={name:"P1Guides",initialize:function(e,t){var n;$1=t,V1=(J1=e).dom,K1=[Vb,Xb,e1,t1,Q1,ew,Y1,X1],-1<_.indexOf(sc.behaviors,Vb)||(n=_.indexOf(sc.behaviors,h0),sc.behaviors.splice.apply(sc.behaviors,[n,0].concat(K1)),t.Events.guideLoopStopped.on(k1),e.TOOLTIP_DEFAULT_WIDTH=Hb,e.TOOLTIP_DEFAULT_HEIGHT=qb,e.TOOLTIP_ARROW_SIZE=Wb,e._showElementGuide=Ob,e._createTooltip=Ab,e._get_tooltip_dimensions=Gb,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e._showLightboxGuide=Kb,q1(e,t))},teardown:function(){W1(0,$1),$1.Events.guideLoopStopped.off(k1),J1._.each(K1,function(e){e=_.indexOf(sc.behaviors,e);0<=e&&sc.behaviors.splice(e,1)}),K1=[]}};function X1(){const o=this;return"tooltip"!==o.type||o.domJson||(o.checkPlacement=function(){var e,t,n,i,r;e=o,r=Qo(e.element||xd(e)),Fb(e),Ub(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=Gb(r,n,i,t),(i=k(kb(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),Rb(i,n))}),o}function Y1(){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=V1("._pendo-guide-container_",n),"tooltip"==i.type||je()&&"lightbox"==i.type?e.css({width:i.attributes.width-2*t,height:""}):e.css({right:t,bottom:""}),i.attributes.height=e.height()+2*t,n.height(i.attributes.height),i.reposition())}),i}function Q1(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&Mg(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||Jg(t)})}),t}function ew(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||Sd(e.guide)||e.after("render",function(){Yg(e.guideElement[0])}),e}var tw,nw,iw={name:"Branding",initialize:function(e,t){tw=e,(nw=t).ConfigReader.get("isPendoFree")&&nw.Events.on("guideSeen",rw)},teardown:function(){nw.Events.off("guideSeen",rw)},addBranding:ow};function rw(e){ow(tw,e)}function ow(e,t){var n,i,r,t=t.data[0].props;t.step_poll_types&&-1<t.step_poll_types.indexOf("NPSRating")&&(e=-1<(t=e.findGuideById(t.guide_id).steps[0].guideElement[0].lastElementChild).dataset.verticalAlignment.indexOf("Bottom"),n=""!==t.style.width,(i=document.createElement("a")).href="https://www.pendo.io/pendo-free/nps?utm_source=pendo_app&utm_medium=branded-nps&utm_campaign=free-branded-nps",i.target="_blank",(r=document.createElement("img")).setAttribute("src",po()+"/img/nps-branding.png"),i.appendChild(r),i.style.display="inline-block",(r=document.createElement("div")).style.lineHeight=0,r.style.padding="8px",e&&(r.style.position="absolute",r.style.bottom="100%"),n&&(r.style.paddingLeft=0),r.append(i),t.append(r))}var aw,sw=function(){let r;var o,n,i;const a="automation",e=250,t=500,s=0,u=10;return{name:"ActionAutomation",automationQueue:void 0,initialize:function(e,t){o=e,n=t,r=o._,this.automationQueue=[],t.EventRouter.registerAction(a,e._.bind(d,this))},teardown:function(){n.EventRouter.deregisterAction(a),this.automationQueue=[]},guideActivity:d,getAutomationFromGuide:function(i,e){return r.reduce(e,function(e,t){var n=r.find(i,function(e){return e.id===t});return n?e.push(n):o.log("could not find automation for "+t,"debug"),e},[])},getAutomationConfigs:function(e){if(!e||e.length<=0)return[];if(!i)return[];var t=i.guide,n=i.step;if(!t||!n)return[];n=t.automations;if(!n||!n.length)return[];n=this.getAutomationFromGuide(n,e),e=n[n.length-1];if(this.isAutomationInQueue(e))return o.log("Automation is already in queue autoId: "+e.id+", guideId: "+t.id,"debug"),[];return n},getTarget:function(e){e=e.target.elementPathRules,e=o.Sizzle(e,document);return e&&e[0]},getElement:function(n,i=u){return new rn(r.bind(function(t){return Ut(r.bind(function(){var e=this.getTarget(n);e&&!e.disabled||i<1?t(e):this.getElement(n,i-1).then(function(e){t(e)})},this),e)},this))},getValue:function(e){return e.value},injectText:function(e,t){let n;"INPUT"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"));"TEXTAREA"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype,"value"));n&&"function"==typeof n.set?n.set.call(e,t):e.value=t;t=new InputEvent("input",{bubbles:!0,data:t[t.length-1]}),t.simulated=!0,e.dispatchEvent(t),t=new InputEvent("change",{bubbles:!0});t.simulated=!0,e.dispatchEvent(t)},simulateClick:function(e){e.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0,cancelable:!0})),e.click()},isAutomationInQueue:function(t){return!!r.find(this.automationQueue,function(e){return t.id===e.id})},popQueue:function(){let e=s;const n=this.automationQueue[0];"autoclick"===n.type&&(e=t);return Ut(r.bind(function(){return this.getElement(n,u).then(r.bind(function(e){if(e)if(e.disabled)this.automationQueue=[],o.log("automation target found but disabled. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug");else{switch(n.type){case"autofill":var t=this.getValue(n);this.injectText(e,t);break;case"autoclick":this.simulateClick(e)}this.automationQueue.shift(),this.automationQueue.length&&this.popQueue()}else this.automationQueue=[],o.log("automation target element not found. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug")},this))},this),e)},setActive:function(e){i=e}};function d(e){var t;e.step&&(this.setActive({guide:e.step.guide,step:e.step}),e.params)&&((e=r.find(e.params,function(e){return"automationIds"===e.name&&r.isArray(e.value)&&e.value.length}))?(e=this.getAutomationConfigs(e.value),t=!this.automationQueue.length,this.automationQueue=this.automationQueue.concat(e),t&&this.popQueue()):o.log("no automation ids were found","debug"))}}();function uw(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 uw(e[t],i)}return _.isFunction(e[t])?function(){return e[t].apply(e,arguments)}:e[t]}}):e}const dw=function(){let u,h,f,g,t,d,m,i;const v=3,n="eventPropertyTimeout",r=Qn(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 u=f._.any(o.featureRules,function(e){try{var t=y(r,h);return t(i,e)}catch(n){return!1}});if(u)for(var d=0;d<o.eventPropertyRules.length&&S()-t<e;d++){var c=o.eventPropertyRules[d];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 uw(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=Qn(function(){var e={};if(u)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);me(a)&&(o["_pendo_"+n.name]=a)}var s=S()-r;t<s?(d++,b({threshold:t,name:n.name,elapsedTime:s,failureCount:d,index:i,length:e.length})):d=0;d>=v&&(u=!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,u=!1,d=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"),d=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 zy("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=oi.getParent(r)}return n}return e?!(t=f.Sizzle(e)[0])||"password"!==t.type&&"hidden"!==t.type?t:void 0:window}}();function cw(){var e;Gh().enabled&&(g.commit("debugger/debuggingEnabled",!0),lw(),k("#pendo-client-debugger").length||(e=f.get("agentDebuggerPluginLoader"),kv.restartDebugger?kv.restartDebugger():"function"==typeof e?e():((e=document.createElement("script")).src=K(E).createScriptURL(ho("debugger-plugin.min.js")),e.setAttribute("id","pendo-debugger-plugin"),f.get("pendoGlobalKey")&&e.setAttribute("data-pendo-global-key",f.get("pendoGlobalKey")),k.getBody().appendChild(e)),v.debuggerLaunched.trigger()))}function lw(){aw=aw||{store:g,ConfigReader:f,getState(){return JSON.stringify(g.state)},getEventCache(){return[].concat(ns)},getAllGuides(){return[].concat(O)},getAutoGuides(){return ch.sortAndFilter(O,E.autoOrdering)},getBadgeGuides(){return _.filter(O,bd)},getLauncherGuides(){return[]},getEventHistory(){return[]},getAllFrames(){return g.getters["frames/allFrames"]()},getChannelType(){return g.getters["frames/channelType"]()},isStepShownInFrame(e,t){return g.getters["frames/isShownInFrame"]()(e,t)},setActiveGuides:ld,getBody:k.getBody,isMobileUserAgent:ze.isMobileUserAgent,areGuidesDelayed:ov,doesElementMatchContainsRules:im,getMetadata:Ql,isStagingServer:re,AutoDisplay:ch,isLeader:Od,Events:v,observer:Hv,guideCache:nv},E.debugging=aw}function pw(e){if(Bh())return e?t:"debugging already enabled";if(!Od())return;const t=Gh();return t.enabled=!0,h.write(Uh,t),cw(),e?t:"debugging enabled"}function hw(){if(!Bh())return"debugging already disabled";g.commit("debugger/debuggingEnabled",!1);var e=Gh();return e.enabled=!1,h.write(Uh,e),E.debugging=null,delete E.debugging,k("#pendo-client-debugger").remove(),"debugging disabled"}_.extend(function(e){C.debug(e,{contexts:["debug"]})},aw);const fw=(e,t,n)=>{const i={events:[]};if(e.on("eventCaptured",e=>{i.events.push(e)}),t.getters["frames/leaderExists"]())return n.resolve(i);const r=n.defer();return e.on("leaderChanged",()=>{r.resolve(i)}),r.promise},gw=function(){let t,o;return{name:"DebuggerLauncher",initialize:function(n,e){const{Events:i,q:r}=e;o=e.store,fw(i,o,r).then(e=>{o.dispatch("debugger/init",e),o.getters["frames/isLeader"]()&&cw()}),za("pendo-debugger::launch",(e,t)=>{e.config.apiKey===n.apiKey&&fw(i,o,r).then(()=>{t.source.postMessage({type:"pendo-debugger::ready",apiKey:n.apiKey},t.origin),!Bh()&&o.getters["frames/isLeader"]()&&pw(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",a);(t=n).isDebuggingEnabled=(e=!1)=>Bh(e),n.enableDebugging=pw,n.disableDebugging=hw,n.addDebuggingFunctions=lw},teardown:function(){ja("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",a),t.debugging&&t.debugging.teardown&&t.debugging.teardown();hw()}};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})}}(),mw=function(){let i,a=0,s,u,d,c,l=[];const p=100,h=9;let f;const o=4,g=500,m=["TEXTAREA","INPUT"];let v=!0,y={},n,b,r;const w="previous_page_loads";let S;const E="errorClickLogging",I=1500;let _=!1;return{name:"FrustrationEvent",initialize:function(e,t){S=e,c=S._,i=t,a=0,l=[],f=[],y={},_=i.ConfigReader.get(E),this.detachErrorEvent=i.attachEvent(window,"error",L,!0),this.detachDocumentEvents=function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange","visibilitychange","selectionchange","scroll"],t=[];for(var n=0;n<e.length;n++)switch(e[n]){case"selectionchange":t.push(i.attachEvent(window,e[n],T,!0));break;case"visibilitychange":t.push(i.attachEvent(window,e[n],()=>{x(250)},!0));break;default:t.push(i.attachEvent(window,e[n],x,!0))}return t}(),i.Events.on("eventCaptured",F),i.agentStorage.registry.addSession(w),S.sniffer.MutationObserver&&(e=gt("MutationObserver"),(n=new e(k)).observe(S.dom.getBody(),{childList:!0,attributes:!0,subtree:!0}))},teardown:function(){i.Events.off("eventCaptured",F),this.detachErrorEvent&&(this.detachErrorEvent(),this.detachErrorEvent=null);if(this.detachDocumentEvents){for(var e=0;e<this.detachDocumentEvents.length;e++)this.detachDocumentEvents[e]();this.detachDocumentEvents=null}n&&n.disconnect()},addErrorClickLog:O,getErrorEventTarget:M,checkErrorEvent:L,observeDOMMutation:k,checkFrustrationEvent:F};function C(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()){(l=c.filter(l,e=>t-e.timestamp<=p)).length&&Ut(C,p)}function x(e=g){v=!1,c.each(y,e=>{clearTimeout(e)}),y={},Ut(()=>{v=!0},e)}function T(){var e=document.getSelection().toString();(b||e.length)&&(x(),b=!!e.length)}function k(e){e.length&&x()}function t(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function A(e){return e&&t(e.element)}function R(e,t){var{frustrationTypes:n=[]}=e;c.contains(n,t)||(n.push(t),e.frustrationTypes=n)}function O(e,t){let n;var{detail:i={}}=t;(n=(A(i)&&i.error?i.error:t).message)&&n.length>I&&(n=n.substring(0,I)),e.errorClickLog=n}function N(e,t){var n=t.target&&"A"===t.target.tagName&&t.target.hasAttribute("href"),i=t.target&&!c.contains(m,t.target.tagName);if(v&&!b&&i&&!n){var r=e;const o=Ut(()=>{delete y[o],R(r,"deadClick")},g);y[o]=o}l.length>h&&l.pop(),l.unshift({target:t.target,activeElement:document.activeElement,browser_time:e.browser_time,timestamp:t.timeStamp}),Ut(C,p),c.each(f,e=>{L(e)}),s?(i=t,e.browser_time-s<=1e3&&Math.abs(u-i.x)<=30&&Math.abs(d-i.y)<=30?a++:(a=1,u=t.x,d=t.y),s=e.browser_time,4===a&&(s=null,R(e,"rageClick"))):(s=e.browser_time,u=t.x,d=t.y,a=1)}function M(e){if(t(e.target))return{detail:e={}}=e,A(e)?e.element:t(document.activeElement)?document.activeElement:void 0}function L(t){const n=M(t);if(n){const i=c.find(l,e=>(e.target===n||e.activeElement===n)&&t.timeStamp-e.timestamp<p);if(i){const r=e=>e.browser_time===i.browser_time&&"click"===e.type;var e=c.find(S.buffers.events,r)||c.find(S.buffers.silos,e=>c.find(e,r));e&&(R(e,"errorClick"),_)&&O(e,t)}else c.contains(f,t)||f.push(t),f.length>o&&f.pop()}}function P(e){r=function(){let e=i.sessionStorage.getItem(w);return null!=e&&0<e.length&&(e=JSON.parse(e)),c.isArray(e)?e:[]}(),function(e){var t,n;if(!(r.length<2))return t=r[0],n=r[1],t&&n&&t.url&&n.url&&t.browser_time&&n.browser_time?t.url===e.url&&e.browser_time-n.browser_time<=7e3&&n.url!==e.url:void 0}(e)&&R(e,"uTurn"),2===r.length&&r.shift(),r.push({url:e.url,browser_time:e.browser_time}),e=r,i.sessionStorage.setItem(w,JSON.stringify(e))}function F(e){var t=e.data[0],e=e.data[1],e=("click"===t.type&&e&&N(t,e),"load"===t.type&&P(t),"submit"!==t.type&&"change"!==t.type||x(),c.has(e,"target")&&c.contains(m,e.target.tagName));"focus"===t.type&&e&&x()}}(),vw=function(){let n,i,o;const a=[];let e=[];return{name:"EmbeddedGuides",activeEmbeddedGuides:a,initialize:function(e,t){n=t,i=e,o=i._,function(e){e.getEmbeddedGuides=yw,e.getActiveEmbeddedGuides=bw}(e),n.Events.on("deliverablesLoaded",d),n.Events.on("guideLoopStopped",r),n.Events.on("guideListChanged",f),n.Events.on("urlChanged",c),n.Events.on("guideAdvanced",s),n.GuideLoop.addUpdatePhase(u),n.guides.addProcessor(l),n.GuideActivity.registerGuideResolver(h),this.removeResizeEvent=e.attachEvent(window,"resize",p)},teardown:function(){d(),n.Events.off("deliverablesLoaded",d),n.Events.off("guideLoopStopped",r),n.Events.off("guideListChanged",f),n.Events.off("urlChanged",c),n.Events.off("guideAdvanced",s),n.GuideLoop.removeUpdatePhase(u),n.guides.removeProcessor(l),n.GuideActivity.removeGuideResolver(h),this.removeResizeEvent&&this.removeResizeEvent();e.length=0}};function r(){n.ConfigReader.get("delayGuides")&&o.forEach(a,function(e){e.isShownInThisFrame()&&e.hide()})}function s(e){const t=o.get(e,"data.0.props.guide_id",null);t&&(e=a.find(({id:e})=>e===t))&&e.hide()}function u(){o.forEach(a,function(e){e.process()})}function d(){e=o.toArray(a),n.guides.removeDisplayableGuides("embeddedGuides"),a.length=0}function c(){o.forEach(a,function(e){e.forceShowFirstStep=!!o.get(e,"attributes.restartOnReload")})}function l(t){var e;return!(e=t)||!e.launchMethod||"embed"!==e.launchMethod||(o.some(a,({id:e})=>e===t.id)||a.push(t),!1)}function p(){dv()||o.forEach(a,function(e){e=e.getActiveStep();e&&!i.ignoreResize&&e.redraw()})}function h(n){if(a.length){var i="pendo-base-";if(o.isString(n.id)&&0===n.id.indexOf(i)){var r=n.id.substring(i.length);let e,t;return(e=o.find(a,e=>{t=o.find(e.steps,e=>{if(e.id===r)return e});return!!t}))&&t?{guide:e,step:t}:null;return}else return o.isObject(n.parentElem)?h(n.parentElem):null}return null}function f(){o.each(e,function(t){var e=o.findIndex(a,function(e){return e.id===t.id});-1===e&&t.isShownInThisFrame()?t.hide():t.isFrameProxy||(a[e]=t)}),e.length=0,n.guides.registerDisplayableGuides("embeddedGuides",a),o.map(a,function(e){!function({globalPendo:o,pluginApi:e}){const a=o["_"],i=e["store"],r=(this.process=function(){let e=null;var t,n=a.get(this,"attributes.embedConfig.selector"),i=a.get(this,"attributes.embedConfig.method"),n=a.first(o.Sizzle(n)),r=this.isShownInThisFrame();n&&r&&(t="#pendo-guide-container-"+a.get(this.getActiveStep(),"id"),e=!!o.Sizzle(t,n).length),!r&&n&&this.shouldAutoDisplay()?"replace"===i&&o.Sizzle('[id^="pendo-guide-container"]',n).length||this.show("embed"):!r||n&&e||this.hide()},this.getActiveStep=function(){return this?a.find(this.steps,function(e){return e.isShown()}):null},this.shouldAutoDisplay=function(){return this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||a.all(this.steps,function(e){return e.shouldRepeat()||!e.isSnoozed()&&"dismissed"!==e.seenState})},this.show=function(e){var t,n=a.first(this.steps);return this.forceShowFirstStep?(this.forceShowFirstStep=!1,n.show(e)):(t=this.steps.map(e=>a.get(i,"state.guideState.steps."+e.id,r(e))),(t=a.max(t,function({time:e}){return e}))&&"advanced"==t.state&&!t.destinationStepId?this.findStepById(t.guideStepId).dismiss():(this.nextStep(t)||n).show(e))},this.hasOwnProperty("forceShowFirstStep")||(this.forceShowFirstStep=a.get(this,"attributes.restartOnReload")),this.isShownInThisFrame=function(){return a.any(this.steps,function(e){return e.isRendered()||e.isLocked()})},({id:e,guideId:t,seenReason:n,seenState:i,lastSeenAt:r,destinationStepId:o})=>({guideId:t,guideStepId:e,seenReason:n,state:i,time:r,destinationStepId:o}))}.call(e,{globalPendo:i,pluginApi:n}),o.map(e.steps,function(e){!function({pluginApi:n}){if(this._onShown||Object.defineProperty(this,"_onShown",{value:this.onShown,writable:!1,configurable:!1}),!this._onShown)return null;this.onShown=function(e){var t=!this.lastSeenAt||!!n.ConfigReader.get("enableAllEmbeddedGuideEvents");return this._onShown(e,t)}}.call(e,{pluginApi:n,_:o})})})}}();function yw(){return vw.activeEmbeddedGuides}function bw(){return vw.activeEmbeddedGuides.filter(e=>e.isShown())}const ww="sessionId";class Sw{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(ww,{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(ww)||this.api.agentStorage.read(ww,!1,"");return t||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(ww,t)),JSON.parse(t)}clearSessionInfo(){return this.api.agentStorage.clear(ww),this.api.agentStorage.clear(ww,!1,""),this.sessionInfo()}storeLastInteractionEventInformation(e,t){e.timestamp=t,this.api.agentStorage.write(ww,JSON.stringify(e))}}var Ew=new Sw;class Iw{constructor(){this.name="SegmentFlags"}initialize(e,t){var n="requestSegmentFlags",e=(this.pendo=e,(this.api=t).ConfigReader);e.addOption(n,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],!1),this.segmentFlagsEnabled=e.get(n),this.segmentFlagsEnabled&&(this.mostRecentSegmentsRequest=null,this.pendo.segmentsPayload=this.pendo._.bind(this.segmentsPayload,this),this.handleMetadataChange=this.pendo._.debounce(this.pendo._.bind(this.requestSegmentFlags,this),50),this.handleReadyBound=this.pendo._.bind(this.handleReady,this),this.api.Events.ready.on(this.handleReadyBound),this.api.Events.metadata.on(this.handleMetadataChange),this.api.Events.identify.on(this.handleMetadataChange))}teardown(){this.segmentFlagsEnabled&&(this.pendo.segmentsPayload=this.pendo._.noop,this.handleMetadataChange.cancel(),this.api.Events.ready.off(this.handleReadyBound),this.api.Events.metadata.off(this.handleMetadataChange),this.api.Events.identify.off(this.handleMetadataChange))}handleReady(){this.ready=!0,this.requestSegmentFlags()}requestSegmentFlags(){if(this.ready){var t=this.pendo._.uniqueId(),n=(this.mostRecentSegmentsRequest=t,{visitorId:this.pendo.get_visitor_id(),accountId:this.pendo.get_account_id(),metadata:this.pendo.getSerializedMetadata(),url:this.pendo.url.get()}),i=this.pendo.compress(n),t={id:t,jzb:i,v:this.pendo.VERSION,ct:(new Date).getTime()},n=(this.api.agent.treatAsAdoptPartner()&&n.accountId&&"ACCOUNT-UNIQUE-ID"!==n.accountId&&(t.acc=this.api.util.base64EncodeString(n.accountId)),"script"===this.pendo.LOADER?"segmentflag.js":"segmentflag.json");let e=this.api.transmit.buildBaseDataUrl(n,this.pendo.apiKey,t);var r,n=this.api.agent.getJwtInfoCopy();try{e.length>this.api.constants.URL_MAX_LENGTH||!this.pendo._.isEmpty(n)?(delete t.jzb,e=this.api.transmit.buildBaseDataUrl("segmentflag.json",this.pendo.apiKey,t),r=this.pendo._.extend({events:i},n),this.postLoad(e,r)):"script"===this.pendo.LOADER?this.scriptLoad(e):this.getLoad(e)}catch(o){this.api.log.error("Failed to load segment flags",{error:o})}}}segmentsPayload(e){!this.mostRecentSegmentsRequest||this.pendo._.isString(e.id)&&e.id!==this.mostRecentSegmentsRequest||(this.pendo.segmentFlags=e.segmentFlags,this.api.log.info("successfully loaded segment flags"),this.mostRecentSegmentsRequest=null)}scriptLoad(e){this.pendo.loadResource(e,this.pendo._.noop)}getLoad(t){return bv(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.get(t);this.segmentsPayload(e.data)})}postLoad(t,n){return bv(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.postJSON(t,n);this.segmentsPayload(e.data)})}}var _w=new Iw;const Cw=["google","bing","yahoo","duckduckgo","baidu","yandex","aol","ask","excite","lycos","webcrawler","infoseek","dogpile","altavista","netscape","hotbot","looksmart","gigablast","teoma","alltheweb","search.com","mamma","metacrawler","ixquick","searchy","searchalot","searchengine","searchenginez","searchengineland","searchenginewatch","searchengineworld","searchenginejournal","searchengineguide","searchengineforums"],xw=new RegExp(`(${Cw.join("|")})`,"i"),Tw=["facebook","twitter","linkedin","instagram","pinterest","tiktok","snapchat","twitch","reddit","quora","tumblr","flickr","discord","twitch","whatsapp","telegram","weibo","qq","line"],kw=["t.co","x.com"],Aw=new RegExp(`(${Tw.join("|")})`,"i");function Rw(e,t){return Fw(Aw,e)||t.contains(kw,e)}const Ow=["youtube","vimeo","dailymotion","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"],Nw=new RegExp(`(${Ow.join("|")})`,"i"),Mw=["amazon","ebay","walmart","etsy","shopify","shop","target","bestbuy","costco","temu","alibaba","aliexpress"],Lw=new RegExp(`(${Mw.join("|")})`,"i");const Pw=new RegExp(`(${["google performance max","microsoft audience network","facebook audience network"].join("|")})`,"i");function Fw(e,t){return"self"!==t&&"direct"!==t&&null!==t.match(e)}function Dw({referrer:e,currentHost:t}){if(!e||""===e)return"direct";e=new ei(e).hostname;let n="self";return n=e!==t?null==e?void 0:e.toLowerCase():n}const Uw=new RegExp("^(.*cp.*|ppc|retargeting|paid)$"),Gw=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i");function Bw(e="",t){return-1!==e.replace(/[^a-zA-Z]/g,"").indexOf(t)}const zw=[[undefined,({medium:e,source:t,referrer:n,gclid:i,fbclid:r})=>!(e||t||"self"!==n||i||r)],["Direct",({source:e,medium:t,referrer:n})=>!(t||e&&"direct"!==e||"direct"!==n)],["Cross-network",({source:e,medium:t})=>Bw(t,"crossnetwork")||e.match(Pw)],["Paid Search",({source:e,medium:t,referrer:n,gclid:i,_:r})=>i||Bw(t,"paidsearch")||t.match(Uw)&&(r.contains(Cw,e)||Fw(xw,n))],["Paid Social",({source:e,medium:t,referrer:n,fbclid:i,_:r})=>i||Bw(t,"paidsocial")||t.match(Uw)&&(r.contains(Tw,e)||Rw(n,r))],["Paid Video",({medium:e,source:t,referrer:n,_:i})=>Bw(e,"paidvideo")||e.match(Uw)&&(i.contains(Ow,t)||Fw(Nw,n))],["Paid Shopping",({medium:e,source:t,referrer:n,_:i})=>Bw(e,"paidshopping")||"shopping"===e||(Fw(Lw,n)||i.contains(Mw,t))&&e.match(Uw)],["Display",({medium:e,_:t})=>t.contains(["display","cpm","banner","interstitial","expandable","programmatic"],e)||Bw(e,"display")],["Paid Other",({medium:e})=>Bw(e,"paidother")||e.match(Uw)],["Organic Search",({source:e,medium:t,referrer:n,_:i})=>Bw(t,"organic")&&i.contains(Cw,e)||!t&&Fw(xw,n)],["Organic Social",({source:e,medium:t,referrer:n,_:i})=>!t&&Rw(n,i)||Bw(t,"social")||i.contains(Tw,e)&&!t.match(Uw)],["Organic Video",({medium:e,referrer:t})=>Bw(e,"video")||!e&&Fw(Nw,t)],["Organic Shopping",({medium:e,referrer:t})=>Bw(e,"organicshopping")||!e&&Fw(Lw,t)],["Email",({source:e,medium:t})=>null!==t.match(Gw)||null!==e.match(Gw)||Bw(t,"newsletter")],["Affiliates",({medium:e})=>Bw(e,"affiliate")||Bw(e,"partner")],["SMS",({source:e,medium:t})=>Bw(e,"sms")||Bw(t,"sms")],["Push Notifications",({source:e,medium:t})=>t.endsWith("push")||Bw(t,"mobile")||Bw(t,"notification")||Bw(e,"firebase")],["Audio",({medium:e})=>Bw(e,"podcast")||Bw(e,"audio")],["Referral",({medium:e,referrer:t})=>Bw(e,"referral")||!!t&&"self"!==t&&"direct"!==t],["Other",({medium:e,source:t})=>!!e||!!t]],jw="utm",Hw="enableFullUtmReferrer";class qw{constructor(){this.name="WebAnalytics"}initialize(e,t){this.pendo=e;var n=(this.api=t)["ConfigReader"],n=(n.addOption(Hw,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),e._)["bind"];this.subscriptions=[t.attachEvent(t.Events,"eventCaptured",n(this.addUtmToEvent,this)),t.attachEvent(t.Events,"sessionChanged",n(this.sessionChanged,this))];let i=this.loadParameters(t.agentStorage);i&&!e._.isEmpty(i)||(i=this.extractParameters(window.location.href,document.referrer)),this.api.agentStorage.registry.addLocal(jw),this.storeParameters(i,t.agentStorage),this.suffix=this.api.ConfigReader.get("identityStorageSuffix")}extractParameters(e,t){var n,i,r,o,a,s,u=new ei(e).hostname,d=Dw({referrer:t,currentHost:u}),e=this.api.util.parseUrl(e);return e?(e=e["query"],s=e.utm_source,n=e.utm_medium,i=e.utm_campaign,r=e.utm_term,o=e.utm_content,a=e.gclid,e=e.fbclid,(s={source:s,medium:n,campaign:i,term:r,content:o}).channel=this.calculateUtmChannel({referrerValue:d,utm:s,gclid:a,fbclid:e}),t&&this.api.ConfigReader.get(Hw)?s.referrer=t:"self"===d?s.referrer=u:"direct"!==d&&(s.referrer=d),s):{}}calculateUtmChannel({referrerValue:e,utm:t,gclid:n,fbclid:i}){var r=(null==(r=t.medium)?void 0:r.toLowerCase())||"",t=(null==(t=t.source)?void 0:t.toLowerCase())||"";const o={_:this.pendo._,referrer:e,source:t,medium:r,gclid:n,fbclid:i};e=this.pendo._.find(zw,e=>e[1](o));if(e)return e[0]}storeParameters(e,t){0<this.pendo._.size(e)&&t.write(jw,JSON.stringify(e),undefined,!1,!0,this.suffix)}loadParameters(e){e=e.read(jw,!1,this.suffix)||e.read(jw);return e?JSON.parse(e):null}teardown(){for(var e of this.subscriptions)e();this.subscriptions.length=0}addUtmToEvent(e){let t;try{t=this.loadParameters(this.api.agentStorage)}catch(n){}t&&(e.data[0].utm=t)}sessionChanged(){var e=this.api.agentStorage,t=(e.clear(jw),e.clear(jw,!1,this.suffix),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)}}var Ww=new qw;const Vw={children:[],props:{"class":"_pendo-step-container","data-layout":"tooltipBlank",id:"pendo-base"},type:"div"},Jw={css:[],props:{scoped:"scoped",type:"text/css"},type:"style"},$w={children:[],props:{"class":"_pendo-step-container-size","data-relative-alignment":!0,"data-vertical-alignment":"Relative to Element",id:"pendo-g-validation-tooltip-container",style:{display:"block",width:"300px","z-index":3e5}},type:"div"},Kw={children:[],props:{"class":"_pendo-step-container-styles",id:"pendo-guide-container",role:"dialog","data-caret-enabled":!0,"data-caret-height":"15px","data-caret-width":"15px",style:{"background-color":"rgba(255, 255, 255, 1)",border:"1px solid #BBBBBB","border-radius":"5px",padding:"8px 12px","box-shadow":"0px 0px 10px 0px rgba(190, 190, 190, 0.5)"},tabindex:-1},type:"div"},Zw={children:[],props:{"class":"_pendo-text-paragraph",style:{}},type:"div"};function Xw(e,t){return{content:t,props:{id:"text-"+e,"class":"_pendo-text-plain",style:{color:"gray",margin:0}},type:"p"}}function Yw(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 Qw=`
8
+ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{var e=d[t.id];if(e&&e.language!==t.language&&delete d[t.id],!d[t.id]){var n,i=[],r={deferred:{},language:t.language},o=!1;if(d[t.id]=r,Bd.usesXhr()&&t.domUrl?(r.deferred.domJson=m.defer(),Lr.get(c(t.domUrl)).then(function(e){r.domJson=dc(e.data);var e=e.data;e=e,_.isObject(e)&&e.hasOwnProperty("type")&&e.hasOwnProperty("children")&&e.hasOwnProperty("props")?r.deferred.domJson.resolve():(C.critical(new Error("Response from the guide was not in proper JSON format")),r.deferred.domJson.reject())})["catch"](function(e){C.critical(e),v.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=La(c(t.domJsonpUrl),function(e){k.removeNode(n),e&&v.resourceFetchFail.trigger(t,e)},!0),i.push(r.deferred.domJson.promise),o=!0),t.contentUrlJs&&!b.get("preventCodeInjection")){r.deferred.content=m.defer();var a=La(c(function(e){if(ft()){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}(nt(n)));if(_.isString(n))return n+"/"+t.join("/")}return e}(t.contentUrlJs)),function(e){k.removeNode(a),e&&v.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise),t.contentUrlCss&&(r.deferred.css=m.defer(),La({url:c(t.contentUrlCss),type:"text/css"},function(){r.deferred.css.resolve()}),i.push(r.deferred.css.promise))}else if(t.contentUrl&&!b.get("preventCodeInjection")){r.deferred.content=m.defer();var s=La(function(e,t){if(!_.isString(e))return e;var n=_.indexOf(e,"?");return n<0?e+t:e.substring(0,n)+t+e.substring(n)}(c(t.contentUrl),".js"),function(e){k.removeNode(s),e&&v.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise)}else if(!o)return m.reject("fetchedDomContent is still false");r.deferred.promise=m.all(i).then(function(){return _.omit(r,"deferred")})}return d[t.id].deferred.promise}catch(u){throw v.resourceFetchFail.trigger(t,u),u}},reset:function(){d={}},guideContent:function(e,t,n,i,r){var o,a,s;_.isString(n)&&(o=n,a=e,s=t,n=_.reduce(u,(e,t)=>t(e,a,s),o),_.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?_.template(n):_.constant(n)),o=d[e+t])&&o.deferred.content&&(o.content=n,o.template=i,o.script=r,o.deferred.content.resolve())},receiveDomStructureJson:function(e,t,n){(e=d[e+t])&&e.deferred.domJson&&(e.domJson=dc(n),e.deferred.domJson.resolve())}}}(),lc=(pc.state={},pc.queue=[],pc.pending=function(){return _.reduce(pc.state,(e,t)=>e+(t.loaded?0:1),0)},pc.reset=function(){cc.reset(),pc.state={},pc.queue=[]},pc.prefetch=function(e){var t;return pc.hasContent(e)?_.get(pc.state[hc(e)],"promise"):(t=m.defer(),pc.queue.push([t,e]),t.promise)},pc.processPrefetch=function(e=10){return pc.queue.length?(e=pc.queue.splice(0,Math.max(e-pc.pending(),0)),m.all(_.map(e,t=>pc.fetchContent(t[1]).then(e=>{t[0].resolve(e)})["catch"](e=>{t[0].reject(e)})))):m.resolve()},pc.fetchContent=function(t){var e=hc(t);if(!(i=pc.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=$d.verify(o).then(function(){return i.verified=!0,cc.load(o)}).then(function(e){return i.loaded=!0,e}),pc.state[e]=i}return i.promise.then(function(e){_.extend(t,e)})},pc.hasContent=function(e){return me(e.content)||me(e.domJson)},pc);function pc(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(_.extend(i,{fetchContent:function(e=!1){return e?pc.prefetch(i):pc.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 hc(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}var fc=function(){var t=v.runtime;const r=[];function o(e,n,i,r){return _.filter(e,function(e){if(_.isFunction(e[r])){if(_.isFunction(e.test))try{return e.test(n,i,E)}catch(t){return C.critical("Error in global script test code block",{error:t}),!1}return _.isRegExp(e.regex)?e.regex.test(i.name)||e.regex.test(n.name):!0}})}function e(e,t,n="script"){var i=[];return"script"===n&&_.isFunction(e.script)&&i.push(e.script),_.size(r)&&(e=o(r,e,t,n),_.each(e,function(e){i.push(e[n])})),i}function i(n,i,r){const o=r.guide;o&&_.all(e(r,o,"beforeMount"),function(e){try{return e.call(n,i),!i.cancel}catch(t){return C.critical("Exception thrown running beforeMount for: "+JSON.stringify({guideId:o.id,stepId:r.id}),{error:t}),!1}})}var a=wn.call({}),s={beforeUnmount:{type:"trigger",fromUnmount:!1},beforeUpdate:{type:"trigger",fromUnmount:!1},updated:{type:"trigger",fromUnmount:!1},unmounted:{type:"trigger",fromUnmount:!0},advanced:{type:"trigger",fromUnmount:!0},dismissed:{type:"trigger",fromUnmount:!0},snoozed:{type:"trigger",fromUnmount:!0},hidden:{type:"trigger",fromUnmount:!0},beforeMount:{type:"triggerCancelable",fromUnmount:!1},beforeAdvance:{type:"triggerCancelable",fromUnmount:!1},beforePrevious:{type:"triggerCancelable",fromUnmount:!1},beforeDismiss:{type:"triggerCancelable",fromUnmount:!1},beforeSnooze:{type:"triggerCancelable",fromUnmount:!1}};function u(e){return s[e]}function n(e){var t,n=e.data[0];if(e.step=n,delete e.data,u(e.type))return-1<_.indexOf(["beforeUnmount","unmounted"],e.type)&&(t="active"===(t=n).seenState?"hidden":t.seenState,e.reason=t,"unmounted"===e.type)&&a.trigger(t,e),t=s[e.type].type,a[t](e.type,e),"unmounted"===e.type?a.trigger("afterUnmounted",e):"beforeMount"===e.type&&i(this,e,n),"triggerCancelable"!==t&&e.cancel&&delete e.cancel,e}function d(n){this.step=n,_.each(["read","write","clear"],function(t){this[t]=h[t],this[t+"ByGuide"]=function(){var e=_.first(arguments)+":"+_.get(n,"guide.id");return h[t].apply(this,[e].concat(_.rest(arguments)))}},this);var e=_.bind(function(e){this.step.id!==e.step.id?C.debug("aborting afterUnmounted b/c step ids don't match"):this.purge()},this);this.purge=_.partial(a.off,"afterUnmounted",e),a.on("afterUnmounted",e)}return d.prototype.on=function(e,t){var n,i;u(e)?(s[e].fromUnmount&&(t=_.once(t)),n=this.step,i=t,t=Qn(t=e=>{var t=e["step"];if(t.id===n.id)return i(e);C.debug("called guide runtime callback on wrong step")}),a.on(e,t),this.purge=_.compose(this.purge,_.partial(a.off,e,t))):C.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)},{initialize:function(){t.on(n);var e=b.get("guides.globalScripts");_.each(e,fc.addGlobalScript)},teardown:function(){t.off(n),_.each(r,fc.removeGlobalScript)},addGlobalScript:function(e){var t;e=function(t){const e=_.without(_.keys(t),"script","test","regex","beforeMount");if(e.length){const n=t.script;t.script=function(){if(_.each(e,function(e){u(e)&&this.on(e,t[e])},this),_.isFunction(n))return n.apply(this,arguments)}}return t}(e),t=e,!_.isFunction(t.script)&&!_.isFunction(t.beforeMount)||t.test&&!_.isFunction(t.test)||t.regex&&!_.isRegExp(t.regex)?C.critical("Error adding invalid GlobalScript via API"):r.push(e)},removeGlobalScript:function(e){0<=(e=_.indexOf(r,e))&&r.splice(e,1)},getContext:function(e){return new d(e)},runCustomScripts:function(i,r){_.each(e(i,r),function(e){try{var t=fc.getContext(i);e.call(t,i,r,E)}catch(n){C.critical("Exception thrown running code block for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:n})}})},handleEvent:n}}();function gc(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?_.find(e.children,gc):void 0}function mc(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=mc(e.children[n],t);if(i)return i}return!1}function vc(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=vc(e,t.children[n]);if(i)return i}}function yc(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}bc=["p","h1","h2","h3","h4","h5","h6","span","div","li","ul","ol","strong","em","b","i","small","label"];var bc,wc={buildNodesFromTemplate:function(e,t,n,i,r){var o=i||O,a=r||E.BuildingBlockGuides.buildNodeFromJSON;switch(e){case"pendo_resource_center_module_list_item":return function(p,h,f,g){var e=p.templateChildren;return _.reduce(e,function(e,t,n){var i=P.findResourceCenterHomeView(f),r=_.find(f,function(e){return e.id===t.id});if(E.designer)r=t,i=_.find(f,function(e){return _.get(e,"attributes.resourceCenter.isTopLevel")});else{if(!r)return e;if(!r.hasResourceCenterContent)return _.each(r.children,function(e){e=N(e);e&&e.control&&e.steps[0].onControlGuide("control")}),e}var o,a,s,u=JSON.parse(JSON.stringify(p)),d=(delete u.templateChildren,u.props.id=u.props.id+"-"+n,u.props["data-pendo-module-guide-id"]=r.id,u.actions||(u.actions=[]),{action:"renderResourceCenterModule",source:u.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id}],uiMetadata:{},eventType:"click"}),d=(u.props["data-localization-direction"]&&d.parameters.push({name:"transitionDirection",type:"string",value:u.props["data-localization-direction"]}),E.designer||u.actions.push(d),_.get(i,"attributes.notificationBubble")),c=_.get(i,"attributes.notifications"),r=(d&&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)&&(d=_.clone(d),c&&(d["background-color"]=c),o)&&(d.color=o),"AnnouncementsModule"===_.get(r,"attributes.resourceCenter.moduleId")&&(s=r.id),s="chat"===_.get(r,"attributes.resourceCenter.integrationName")?"chat":s)&&(u.props["data-pendo-notification-id"]=s,c=u,o=d,r=s,i=(d=i).attributes.notifications.individualCounts[s],c=mc(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(d.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)),mc(u=Ec(u,t,u.props.id,n),function(e){e=_.get(e,"props.class");return e&&0<=e.indexOf("_pendo-resource-center-module-list-item-text-container")})),d=mc(u,function(e){e=_.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),l=mc(u,function(e){e=_.get(e,"props.id");return e&&0<=e.indexOf("pendo-home-view-bubble-"+n)});return r&&(r.props["aria-hidden"]=!0,d)&&(d.props["aria-labelledby"]=r.props.id+" "+(l&&l.props.id)),e.concat(g(u,h,f))},[])}(t,n,o,a);case"pendo_resource_center_guide_list_item":return function(o,a,s,u){var e=o.templateChildren;return _.reduce(e,function(e,t,n){var i,r=Ic(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=Ec(i,t,i.props.id,n),e.concat(u(i,a,s))):e},[])}(t,n,o,a);case"pendo_task_list":return function(e,t,n,i){var r=e.templateChildren;_.filter(r,function(e){return Ic(n,e)}).length?(e.children=_.filter(e.children,function(e){return"pendo_task_list_fallback_text"!==e.templateName}),function o(t,n){t.templateName&&(t.templateChildren=n);if(!t.children||!t.children.length)return;for(let e=0;e<t.children.length;e++)o(t.children[e],n)}(e,r)):e.children=_.filter(e.children,function(e){return"pendo_task_list_item"!==e.templateName&&"pendo_task_list_progress_bar"!==e.templateName});P.updatePseudoStyleSelectors(e);r=i(e,t,n);return[r]}(t,n,o,a);case"pendo_resource_center_onboarding_item":case"pendo_task_list_item":return function(s,u,d,c){var e=s.templateChildren;return _.reduce(e,function(e,t,n){var i,r,o,a=Ic(d,t);return a?(delete(i=JSON.parse(JSON.stringify(s))).templateChildren,i.props.id=i.props.id+"-"+n,i.props["data-pendo-show-guide-id"]=a.id,i.props["class"]+=" pendo-task-list-item",i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:a.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},E.designer||i.actions.push(r),r=a.getTotalSteps(),o=a.getSeenSteps(),a.isComplete()&&(o=r),a=parseInt(o/r*100,10),mc(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=Sc(t.subtitle,{currentStep:o,totalSteps:r}):t.stepProgress="Step "+o+" of "+r,i=Ec(i,t,i.props.id,n),e.concat(c(i,u,d))):e},[])}(t,n,o,a);case"pendo_resource_center_onboarding_progress_bar":case"pendo_task_list_progress_bar":return function(e,t,n,i){var r=e.templateChildren||t.getGuide().attributes.resourceCenter.children,o=0,a=0,r=(_.forEach(r,function(e){e=Ic(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 mc(e=Ec(e=JSON.parse(JSON.stringify(e)),r),function(e){return e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-progress-bar-fill")}).props.style.width=r.totalPercentComplete,[i(e,t,n)]}(t,n,o,a);case"pendo_task_list_fallback_text":return[a(t,n,o)];case"pendo_resource_center_announcement_item":return function(g,e,n,m){var t=e.getGuide().attributes.resourceCenter.children,t=_.reduce(t,function(e,t){t=Ic(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!_.every(t,function(e){e=e.steps[0];return!!lc.hasContent(e)}))return[];var i=P.getResourceCenter(),v=_.get(i,"attributes.notificationBubble");v&&(delete v.dir,"rtl"===g.props["data-localization-direction"])&&(v.dir="rtl");var y=e.getGuide();return _.map(t,function(e,t){var n,i,r,o,a,s,u,d,c,l,p="whatsnew"===_.get(e,"attributes.type"),h=JSON.parse(JSON.stringify(g));return h.props.id=h.props.id+"-"+t,h.props["data-pendo-announcement-guide-id"]=e.id,h.props["data-pendo-announcement-send-seen-event"]=!0,p?(t=h,p=v,s=m,a=ac(i=e),(n=a.steps[0]).render(),fc.runCustomScripts(n,a),u=(a=n.guideElement)[0].id,yc(b,"pendo-whats-new-style-"+u,"#"+u+" h1::after { display:none; }",a[0]),p&&((r=_c(p)).props.style.top="20px"),!P.hasAnnouncementBeenSeen(i)&&r&&(t.props["class"]+=" pendo-unseen-announcement",t.children=[r]),u=s(t,n),a.appendTo(u),u):(p=h,i=v,r=m,t=y,s=ac(n=e),a=n.steps[0],fc.runCustomScripts(a,s),s=JSON.parse(JSON.stringify(a.domJson)),(u=_.get(t,"attributes.darkModeColorOverrides"))&&u.enabled&&(l=a.attributes,d=_.get(l,"darkMode"),c=_.get(t,"attributes.darkMode"),(c=_.get(c,"selector",""))&&l&&(d||(l.darkMode={selector:""},d=l.darkMode),d.selector=c),l=!1,c=_.get(d,"selector","")||c,E.designerEnabled?l=_.get(d,"override")||_.get(t,"steps.0.attributes.darkMode.override",!1):c&&(l=0<E.Sizzle(c).length),l)&&(u.guideBackground||u.textColor||u.linkColor||u.borderColor)&&function f(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===bc.indexOf(e.type)&&!n||(i.color=r));n=_.get(e,"children",[]);_.isArray(n)&&_.each(n,function(e){f(e,t)})}(s,u),p.children=[s],i&&(o=_c(i),d=mc(p,function(e){return"pendo-guide-container"===e.props.id}),t=parseInt(p.props.style["padding-top"],10),c=parseInt(d.props.style["padding-top"],10),o.props.style.top=c+t+5+"px"),!P.hasAnnouncementBeenSeen(n)&&o&&(p.props["class"]+=" pendo-unseen-announcement",p.children.unshift(o)),delete p.templateName,(l=vc("pendo-guide-container",p))&&(l.props.id=l.props.id+"-"+a.id),r(p,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=Ec(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:_c,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return _.reduce(e,function(e,t,n){t=Ic(i,t);return t&&e.push(t),e},[])}};function Sc(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 Ec(e,t,n,i){if(e.content&&(e.content=Sc(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?Sc(e.props["aria-label"],t):""),e.props.id)&&i!==undefined&&e.props.id!==n&&(e.props.id=e.props.id+"-"+i),e.children)for(var r=0;r<e.children.length;r++)Ec(e.children[r],t,n,i);return e}function Ic(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 _c(e){var t={left:"0px"};return"rtl"===e.dir&&(t={right:"0px"}),{type:"div",children:[],props:{"class":"pendo-unread-announcement-mini-bubble",style:Object.assign(Object.assign({position:"absolute","border-radius":"5px",height:"10px",width:"10px","line-height":"0px"},t),{top:"30px","box-sizing":"content-box","background-color":e["background-color"],"z-index":"10"})}}}var Cc={buildSvgNode:function(e,t,n){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return xc(t,n)}},createProgressCircleSvg:xc};function xc(e,t){var n,i,r,o,a,s;return _e(9)?(i=(n=Tc(n=e,i=t)).fillCircle.stroke,r=n.backgroundCircle.stroke,n=100<=(n.fillCircle.percentComplete||0),o=k(K(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=Tc(e,t)).fillCircle.percentComplete||0)?(i=(i=n).fillCircle.stroke,(r=k(K(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=k(K(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 Tc(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 kc=function(e,t){return e<t},Ac=_.negate(kc);function Rc(){var e=na();return Co(e)?oa(e):((e=Zo()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function Oc(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 Nc(e){var t;if(e&&e.length)return t=Co(na())?oa:ko,(e=_.reduce(e,function(n,e){var i;return ya(e)?(i=t(e))?(_.each([["top",kc],["right",Ac],["bottom",Ac],["left",kc]],function(e){var t=e[0],e=e[1];n[t]&&!e(i[t],n[t])||(n[t]=i[t])}),n):void 0:n},{})).height=e.bottom-e.top,e.width=e.right-e.left,e}function Mc(e,t){var n=Rc(),e=Nc(e)||{top:0,left:0,right:n.width,bottom:n.height,width:0,height:0};return{viewport:n,box:e,overlays:Oc(n,e,t)}}function Lc(e){var t=[],n=_.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==na()){t.push(e.element);for(var i=n.additionalElements.replace(/\s/g,"").split(","),r=0;r<n.additionalElements.length;r++)try{var o=k(i[r]);o&&_.each(o,function(e){t.push(e)})}catch(a){C.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var Pc=null,Fc=function(e){var t=!_.isEqual(e,Pc);return Pc=e,t},Dc=null,Uc=function(e){var t=!_.isEqual(e,Dc);return Dc=e,t},Gc=null,Bc=function(e){var t=!_.isEqual(e,Gc);return Gc=e,t},zc=function(e){return Uc(e.viewport)||Fc(e.box)||Bc(e.overlays)};function jc(e){try{var t=Mc(Lc(e),_.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));zc(t)&&_.each(e.backdrop.children,function(n){var e=n.getAttribute("pendo-region"),e=t.overlays[e];_.each(e,function(e,t){n.style[t]=e+"px"})})}catch(n){C.info("Failed to update BlockOut ui",{contexts:["error"]})}}function Hc(e){try{var t,n,i,r;if(!(0<k("._pendo-guide-backdrop_").length))return t=Mc(Lc(e),_.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),zc(t),n={"z-index":1e4,position:"fixed"},i=[],_.each(t.overlays,function(e,t){t=function(e,t){var n=k("div.pendo-backdrop-region-"+e);n.length||(n=k(document.createElement("div")).addClass("pendo-backdrop-region-"+e));return k(n).css(t).attr("pendo-region",e),n}(t,_.extend({},e,n));i.push(t)}),o=i,s=vc("pendo-backdrop",(a=e).domJson),_.each(["left","right","width","height","bottom","top"],function(e){delete s.props.style[e]}),u=k(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);u.append(t)})}),r=u,e.backdrop=r[0],r}catch(d){C.info("Failed to add BlockOut ui",{contexts:["error"]})}var o,a,s,u}var qc="top",Wc="bottom",Vc="left",Jc="right",$c="center";function Kc(e,t,n){return n===Jc||n===Vc?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?$c:n<e/2?Jc:Vc)}const Zc={DEFAULT_CARET_OFFSET:10,BOUNDARY_MARGIN_RIGHT:.98,BOUNDARY_MARGIN_LEFT:.02,Z_INDEX:{DEFAULT:"300000",CARET:11,BORDER_CARET:10}};var Xc={createBBTooltip:Qc,getBBTooltipDimensions:il,determineBBHorizontalBias:Kc,determineTooltipPosition:rl,positionBBTooltipWithBias:ol,calculateToolTipPositionForTopBottom:al,calculateToolTipPositionForLeftRight:dl,buildTooltipCaret:cl,styleTopOrBottomCaret:pl,styleLeftOrRightCaret:hl,buildBorderCaret:fl,determineBorderCaretColor:ml,placeBBTooltip:function(e,t){var n,i,r,o,a,s,t=t||vl(e);t&&(r=t.ownerDocument||document,n=r.defaultView||window,r=e.element||xd(e,r),i=Qo(r,n),"none"!==R(e.elements[0]).display)&&(r=ko(r),s=e.attributes.layoutDir,e=e.guideElement,o=k(t).find("#pendo-guide-container"),a=o[0].style,t=R(t),t={height:parseInt(t.height,10),width:parseInt(t.width,10)},o={height:parseInt(o[0].getAttribute("data-caret-height"),10)||0,width:parseInt(o[0].getAttribute("data-caret-width"),10)||0,backgroundColor:o[0].style["background-color"],offset:Zc.DEFAULT_CARET_OFFSET,borderColor:a.borderColor,borderWidth:parseInt(a.borderWidth,10)||0},a=this.getBBTooltipDimensions(i,t,o,s,r,Zo(n)),o.height&&o.width&&(t=e.find(".pendo-tooltip-caret")[0],s=e.find(".pendo-tooltip-caret-border")[0],t&&ll(t,a,o,i),s)&&gl(s,o,a.layoutDir,t),e.css({top:a.top,left:a.left,position:i.fixed?"fixed":"absolute"}))},attachBBAdvanceActions:nl,attachScrollHandlers:el,isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!_.isObject(e.domJson)||!(e=gc(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForTooltip:function(e,t,n){Qc(t,e.element,e,n),e.hasBeenScrolledTo||(wa(e.element),Ad(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)},patchGuideContainerWidthForResponsiveTooltips:function(e,t,n){t=t||vl(e);var i,r,o,a,s,u;t&&(i=e.element||xd(e,t.ownerDocument||document))&&(o=t.style.width)&&-1!==o.indexOf("vw")&&(o=Yc(e,i,n,t))&&(e=t,{elementPos:i,tooltipSizes:n,screenDimensions:t,caretDimensions:o,elementIsNotVisible:r}=i=o,o=parseInt(o.width,10)||0,a=parseInt(e.style.maxWidth,10),s=parseInt(e.style.minWidth,10),u=parseFloat(e.style.width)/100,r?n.width-=o:"left"===n.layoutDir?(r=i.left-o,n.width=Math.max(0,r*u)):"right"===n.layoutDir&&(r=t.width-i.right-o,n.width=Math.max(0,r*u)),a&&n.width>a&&(n.width=a),s&&n.width<s&&(n.width=s),e.style.width=n.width+"px")}};function Yc(e,t,n,i){var r,o,a,s,u,d=(t.ownerDocument||document).defaultView||window,c=Qo(t,d),t=ko(t),d=Zo(d),l=e.attributes.layoutDir||"auto";return(0!==c.height||0!==c.width)&&(r=e&&!e.elementPathRule,n=mc(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,backgroundColor:n.props.style["background-color"],offset:Zc.DEFAULT_CARET_OFFSET,borderWidth:0},a=null,s=_.get(n,"props.style.border"),u=_.get(n,"darkModeProps.style.border"),e&&e.isDarkMode&&u?a=u:s&&(a=s),a&&(e=a.split(" "),o.borderColor=e[2],o.borderWidth=parseInt(e[0],10)||0),{elementPos:c,screenPos:t,screenDimensions:d,caretDimensions:o,tooltipSizes:{width:i.offsetWidth,height:i.offsetHeight,layoutDir:l},containerDomJson:n,elementIsNotVisible:r}):null}function Qc(e,t,n,i){var r,o,a,s,u;if(n.guideElement)return(t=Yc(n,t,e,i))?({elementPos:e,tooltipSizes:a,screenPos:u,caretDimensions:r}=t,(o=n.guideElement).addClass(Id()?yd:vd),nl(n),a=il(e,{height:a.height,width:a.width},r,n.attributes.layoutDir,u,t.screenDimensions),n&&(n.dim=a),n&&_.isFunction(n.getGuide)&&(s=n.getGuide()),u=_.get(s,"attributes.resourceCenter"),e.fixed?(o.css({position:"fixed"}),i.style.position="absolute"):n&&u||(i.style.position="absolute"),r.height&&r.width&&cl(o,a,r,e),t=Zc.Z_INDEX.DEFAULT,i&&i.style&&i.style["z-index"]&&(t=i.style["z-index"]),o.css({"z-index":t}),u||o.css({height:"auto",width:"auto",overflow:"visible"}),n.elementPathRule&&o.css({left:a.left,top:a.top,position:e.fixed?"fixed":"absolute"}),"top"===a.layoutDir&&a.hbias===Vc&&o.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),el(n,yl),o[0]):null}function el(e,t){e&&_.isFunction(e.attachEvent)&&(Ed()&&e.element===k.getBody()||(t=_.throttle(_.bind(t,e,e),10),e.attachEvent(window,"scroll",t,!0),fa(_.bind(e.attachEvent,e),e.targetElement,t)))}function tl(t,n){var e=k(n.elementPathRule)[0];n.attachEvent(e,t,function(e){k.data.set(e,"advanced",!0),Yg(t,n)})}function nl(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?tl("mouseover",e):e.attributes.advanceActions.elementClick&&tl("click",e))}function il(e,t,n,i,r,o){var a,s,i=i||"auto",t={width:Math.min(t.width,o.width),height:t.height},u=(t.layoutDir=i,t.hbias=Kc(e,o,i),t.vbias=(a=e,u=o,(s=i)===qc||s===Wc?s:(s=a.top,(u=(a=u.height)/3)<s&&s<2*u?$c:s<a/2?Wc:qc)),t.layoutDir=rl(t,o,r,i),ol(t,e,o,n));return t.top=u.top,t.left=u.left,"top"===t.layoutDir?t.top-=n.height:"bottom"===t.layoutDir?t.top+=n.height:"right"===t.layoutDir?t.left+=n.height:"left"===t.layoutDir&&(t.left-=n.height),t}function rl(e,t,n,i){var r,o,a,s,u,d,c;return i&&"auto"!==i?i:(i=n.top,o=(r=n.left)+n.width,a=n.top-e.height<0,s=n.top+n.height+e.height>t.height,u=n.left-e.width<0,d=n.left+n.width+e.width>t.width,!(s&&a&&u&&d)&&(i<t.height/3&&(c="bottom"),(i>2*t.height/3||e.hbias===$c)&&(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!==$c&&(c=e.hbias),u&&d||(d||(c="right"),u)||(c="left")),(c=c&&"bottom"!==c||!s||a?c:"top")||e.hbias)||"bottom")}function ol(e,t,n,i){return"top"===e.layoutDir||"bottom"===e.layoutDir?al(e,n,t,e.layoutDir,e.hbias,i):dl(e,n,t,e.vbias)}function al(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*Zc.BOUNDARY_MARGIN_RIGHT,left:i.width*Zc.BOUNDARY_MARGIN_LEFT});return s.left="right"===r?function(e,t,n,i,r,o){var n=sl(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?ul(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=sl(n),t=t.width;e=e.left-t+e.width/2+n;if(e<o)return r<e+t+(n=o-e)?ul(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 ul(e,t,n)}else if(e<r){o=(e+=r-e)+t;if(i<o)return ul(e,t,n)}return e}(n,e,t,a.right,a.left),s}function sl(e){e=(parseInt(e.offset,10)||0)+(parseInt(e.width,10)||0)+(parseInt(e.borderWidth,10)||0);return isNaN(e)?0:e}function ul(e,t,n){n=n.width-(e+t);return n<e?e-(e-n)/2:e<n?e+(n-e)/2:e}function dl(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 cl(e,t,n,i){var r=document.createElement("div"),i=(r.setAttribute("class","pendo-tooltip-caret pendo-tooltip-caret--"+t.layoutDir),r.style.position="absolute",r.style.zIndex=Zc.Z_INDEX.CARET,ll(r,t,n,i),e.find("#pendo-guide-container")[0].parentNode);i.appendChild(r),n.borderWidth&&(e=fl(r,n,t.layoutDir),i.appendChild(e))}function ll(e,t,n,i){"top"!==t.layoutDir&&"bottom"!==t.layoutDir||pl(e,t,n,i),"left"!==t.layoutDir&&"right"!==t.layoutDir||hl(e,t,n)}function pl(e,t,n,i){e.style["border-left"]=n.width+"px solid transparent",e.style["border-right"]=n.width+"px solid transparent",e.style.right="";i=i,r=n,o=(a=t).hbias;var r,o,a,i=i&&i.left?i.left+i.width/2-a.left-r.width:"left"===o?a.width-2*r.width-r.offset-r.borderWidth:"right"===o?r.offset+r.borderWidth:a.width/2-r.width;return e.style.left=i+"px","bottom"===t.layoutDir&&(e.style["border-bottom"]=n.height+"px solid "+n.backgroundColor,e.style["border-top"]="",o=-1*n.height,n.borderWidth&&(o+=n.borderWidth),e.style.top=o+"px",e.style.bottom=""),"top"===t.layoutDir&&(e.style["border-top"]=n.height+"px solid "+n.backgroundColor,e.style["border-bottom"]="",a=-1*n.height,n.borderWidth&&(a+=n.borderWidth),e.style.bottom=a+"px",e.style.top=""),e}function hl(e,t,n){var i,r=Zo();return e.style["border-top"]=n.width+"px solid transparent",e.style["border-bottom"]=n.width+"px solid transparent",e.style.bottom="",t.vbias===qc?(i=t.height-2*n.width-n.offset-n.borderWidth,e.style.top=i+"px",t.top+=n.offset+n.width+n.borderWidth):t.vbias===Wc?(e.style.top=n.offset+n.borderWidth+"px",t.top-=n.offset+n.width+n.borderWidth,t.top+t.height>r.height&&(t.top=t.top-(t.top+t.height-r.height)),t.top=Math.max(0,t.top)):e.style.top=t.height/2-n.width+"px","left"===t.layoutDir&&(e.style["border-left"]=n.height+"px solid "+n.backgroundColor,e.style["border-right"]="",i=-1*n.height,n.borderWidth&&(i+=n.borderWidth),e.style.right=i+"px",e.style.left=""),"right"===t.layoutDir&&(e.style["border-right"]=n.height+"px solid "+n.backgroundColor,e.style["border-left"]="",r=-1*n.height,n.borderWidth&&(r+=n.borderWidth),e.style.left=r+"px",e.style.right=""),e}function fl(e,t,n){var i=e.cloneNode();return i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=Zc.Z_INDEX.BORDER_CARET,gl(i,t,n,e),i}function gl(e,t,n,i){for(var r={top:"",right:"",bottom:"",left:""},o=["Top","Right","Bottom","Left"],a=0;a<o.length;a++){var s="border"+o[a]+"Width",u="border"+o[a]+"Color",d="border"+o[a]+"Style";i.style[s]?(r[s]=parseInt(i.style[s],10)+t.borderWidth+"px",r[u]=ml(i.style[u],t.borderColor),r[d]="solid"):(r[s]="",r[u]="",r[d]="")}"top"===n&&(r.left=parseInt(i.style.left,10)-t.borderWidth+"px",r.bottom=parseInt(i.style.bottom,10)-t.borderWidth+"px"),"bottom"===n&&(r.left=parseInt(i.style.left,10)-t.borderWidth+"px",r.top=parseInt(i.style.top,10)-t.borderWidth+"px"),"right"===n&&(r.top=parseInt(i.style.top,10)-t.borderWidth+"px",r.left=parseInt(i.style.left,10)-t.borderWidth+"px"),"left"===n&&(r.top=parseInt(i.style.top,10)-t.borderWidth+"px",r.right=parseInt(i.style.right,10)-t.borderWidth+"px"),_.extend(e.style,r)}function ml(e,t){return"transparent"===e?e:t}function vl(e){var t,n;if(e.guideElement)return t="pendo-resource-center-container"===e.guideElement.attr("id"),n=gc(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}function yl(e){ya(e.element)?(Xc.placeBBTooltip(e),k(e.elements[0]).css({display:"block"})):k(e.elements[0]).css({display:"none"})}function bl(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}wl(o,e),i.push(o)}}}}function wl(t,e){let n=0;var i=t.parentNode.children;for(let e=0;e<i.length;e++){var r,o=i[e];o!==t&&(r=R(o),r=parseInt(r.marginTop,10)+parseInt(r.marginBottom,10),n+=o.offsetHeight+r)}var a=e.offsetHeight,e=R(e),e=parseInt(e.paddingTop,10)+parseInt(e.paddingBottom,10),s=R(t),s=parseInt(s.marginTop,10)+parseInt(s.marginBottom,10),a=Math.max(a-e-n-s,0);0<a&&(t.style.height=a+"px")}function Sl(e,t){var n,i,r,o,a,s,u,d,c,e=k("#"+e,t)[0];e&&(t=k(e),n=k(t.find("#pendo-guide-container")[0]),r="%"===(i=e.style.height)[i.length-1]?"%":"px",o=parseInt(i,10),a=e.getAttribute("data-pendo-static-height"),t.css({height:"auto"}),a||n.css({"max-height":"none"}),s=parseInt(R(e).height,10),u=Zo().height,d=parseInt(e.style.top,10),d=isNaN(d)?0:d,c=parseInt(e.style.bottom,10),(u=u-d-(c=isNaN(c)?0:c))<s&&(n.css({"max-height":u+"px",overflow:"auto"}),s=u),s!==o?(t.css({height:(d=a&&o?o:s)+r}),"Centered"!==(c=e.getAttribute("data-vertical-alignment"))&&"Left Aligned"!==c&&"Right Aligned"!==c||t.css({"margin-top":"-"+(u<s?u:d)/2+"px"})):t.css({height:i}))}function El(e,t){e=k("#"+e,t)[0];if(e){t=e.getAttribute("data-pendo-mobile-layout");if(!t){var n=k(e),t=k(n.find("#pendo-guide-container")[0]),i=parseInt(e.style.width,10),r=(t.css({"max-width":"none"}),n.css({"margin-right":"0px"}),parseInt(R(e).width,10)),o=Zo().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 Il(e,i){var e=_.isArray(e)?e:[e],e=_.reduce(e,function(e,t){var t=k("#"+t,i),n=t[0];return n&&!n.getAttribute("data-pendo-mobile-layout")&&(n=t.find("#pendo-guide-container")[0],e.push(n)),e},[]),t=e;(t=_.reduce(t,function(e,t){return e.concat(_.toArray(k(['[class*="_pendo-text-"]:not([class*="_pendo-resource-center-"])','.pendo-mock-flexbox-element > [class*="_pendo-button-"]',"._pendo-multi-choice-poll-select"].join(","),t)))},[]))&&t.length&&_l(_.reduce(t,function(e,t){var n,t=k(t),i=Tl(t[0]),i=i.marginLeft+i.marginRight,r=xl(t);return r&&(n=r.paddingLeft+r.paddingRight,r=r.width-i-n,e.push({$blockElement:t,availableSpace:r})),e},[])),_.each(e,function(e){var t=e,t=((t=k("._pendo-open-text-poll-input",t))&&t.length&&_.each(t,function(e){var t,n=k(e),i=n.attr("data-_pendo-open-text-poll-resize-base-width"),e=(i||(i=e.style.width,n.attr("data-_pendo-open-text-poll-resize-base-width",i)),Tl(n[0])),r=e.marginLeft+e.marginRight,o=xl(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&Cl(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),_l({$blockElement:n,availableSpace:o}))}),e);(t=k(["._pendo-video","._pendo-image"].join(","),t))&&t.length&&_.each(t,function(e){var t=k(e),n=Tl(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=xl(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&Cl(t,i,r,a),_l({$blockElement:t,availableSpace:a}))})})}function _l(e){_.isArray(e)||(e=[e]),_.each(e,function(e){e.$blockElement.css({"max-width":"none"})});var n=_.map(e,function(e){return Tl(e.$blockElement[0]).width});_.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function Cl(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 xl(e){e=e.closest("._pendo-row");if(e){e=R(e[0]);if(e)return{width:parseFloat(e.width),paddingLeft:parseInt(e.paddingLeft,10),paddingRight:parseInt(e.paddingRight,10)}}}function Tl(e){e=R(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var kl,M={calculateTotalOffsetWidth:Ol,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=Ol(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=Ol(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=Ol(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return _.filter(e,Rl)},getPendoVisualElements:function(e){return _.filter(e,function(e){return!Rl(e)})},initializeFlexElements:function(e){var t=e.cloneNode(),n=Al(e),i=M.getPendoInlineUIElements(e.children);if(1===n.length&&0===n[0].id.indexOf("pendo-text"))return e;for(;t.childNodes.length;)t.removeChild(t.childNodes[0]);for(var r=0;r<n.length;r++)Ml(n[r])?t.appendChild(n[r]):t.appendChild(M.wrapElementInMockFlexboxContainer(n[r],e,t));for(var o=0;o<i.length;o++)t.appendChild(i[o]);return e.parentNode.replaceChild(t,e),t},isPendoInlineUIElement:Rl,setElementHorizontalAlignment:function(e,t,n){if(!(e.length<1))switch(n){case"space-between":M.spaceBetween(e,t);break;case"space-around":M.spaceAround(e,t);break;case"space-evenly":M.spaceEvenly(e,t);break;case"center":M.center(e,t);break;case"flex-start":M.flexStart(e);break;case"flex-end":M.flexEnd(e,t)}},setElementVerticalAlignment:function(e,t,n){switch(n){case"top":M.topAlignment(e);break;case"center":M.centerAlignment(e,t);break;case"bottom":M.bottomAlignment(e)}},spaceAround:function(e,t){for(var n=t/(2*e.length),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=Ol(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=Ol(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=Ol(e,r);e[r].style.left=n+o+"px"}t.style.left=n+"px",i.style.right=n+"px"},topAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.top="0px"},centerAlignment:function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=i.offsetHeight,o=t/2,o=Math.round(o-r/2);i.style.top=o+"px"}},bottomAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.bottom="0px"},wrapElementInMockFlexboxContainer:function(e,t,n){var i=e.getAttribute("class")||"",r=-1!==i.indexOf("pendo-block-wrapper"),o=e.style&&"absolute"===e.style.position,a=_.get(e.style,"width",""),s=R(e).width,u=-1!==i.indexOf("_pendo-open-text-poll-wrapper")||-1!==i.indexOf("_pendo-image-wrapper")||-1!==i.indexOf("pendo-video-wrapper")||-1!==i.indexOf("_pendo-number-scale-poll-wrapper");r&&!u&&(a=(a?s:null)||R(e.children[0]).width);(0<=i.indexOf("_pendo-resource-center-onboarding-module-guide-complete-circle-container")||0<=i.indexOf("pendo-task-list-progress-circle"))&&(s=parseInt(R(t).width,10),d=parseInt(R(e).width,10)+parseInt(e.style.marginRight||0,10)+parseInt(e.style.marginLeft||0,10),t=(k(t).find("._pendo-simple-text").getParent()||k(n).find("._pendo-simple-text").getParent())[0],n=s-d,"border-box"!==_.get(t,"style.boxSizing")&&(n=n-parseInt(t.style.paddingLeft||0,10)-parseInt(t.style.paddingRight||0,10)),t.style.width=n.toString()+"px",t.style.maxWidth=n.toString()+"px");{var d;if(!i||i.indexOf("pendo-mock-flexbox-element")<0)return(s=M.createFlexContainer(o)).appendChild(e),-1<e.id.indexOf("pendo-text")&&"rtl"===e.dir&&(s.style.right="0px"),d=_.get(e,"children")[0],r&&d&&-1!==(d.getAttribute("class")||"").indexOf("image-preview-placeholder")&&(s.children[0].style.width=a),!r||u||e.style.width||(s.children[0].children[0].style.width=a),s}return e},getVisualElementsWrappedInFlexElements:Al,initializeFlexRows:function(e,t,n,i=!1){{var r;i?(e.style.display="flex",e.style.flexWrap="wrap",e.style.justifyContent=t,e.style.alignItems={top:"flex-start",center:"center",bottom:"flex-end"}[n]||"flex-start"):0!==(i=function(e){return _.filter(e,function(e){e=e.getAttribute("class")||"";return e&&-1<e.indexOf("pendo-mock-flexbox-element")})}(e.children)).length&&(r=M.getRowWidth(e),i=M.wrapFlexElementsInFlexRows(i,e,r),M.formatFlexRows(i,e,t,n,r))}},getRowWidth:Nl,wrapFlexElementsInFlexRows:function(e,t,n){for(var i=n||Nl(t),r=M.createFlexRow(),o={row:r,rowWidthUsed:0},a=[o],s=0;s<e.length;s++){var u=e[s],d=ko(u)["width"],d=parseInt(d,10);o.rowWidthUsed+=d,o.rowWidthUsed>i&&0!==_.indexOf(e,u)&&(o.rowWidthUsed-=d,(r=M.createFlexRow()).appendChild(u),a.push(o={row:r,rowWidthUsed:d})),o.row.appendChild(u)}return a},formatFlexRows:function(e,t,n,i,r){for(var o=r||Nl(t),a=0;a<e.length;a++){var s=e[a],u=(t.appendChild(s.row),M.findMaxChildHeight(s.row.children,!1)),d=(s.row.style["min-height"]=u+"px",o-parseInt(s.rowWidthUsed,10));M.setElementHorizontalAlignment(s.row.children,d,n),M.setElementVerticalAlignment(s.row.children,u,i)}},isElementHiddenInGuide:Ml,flexAllThings:function(e,t){var n=null==(n=null==t?void 0:t.attributes)?void 0:n.useFlexbox,t=(null==t?void 0:t.guideElement)||document,e=k("#"+e,t)[0];e&&(Pl(e),M.flexElement(e,n))},flexElement:function(e,i){e=k("[data-pendo-display-flex]",e);_.each(e,function(e){var t=i?e:M.initializeFlexElements(e),n=e.getAttribute("data-pendo-justify-content"),e=e.getAttribute("data-row-vertical-alignment");M.initializeFlexRows(t,n,e,i)})},maintainAspectRatios:Pl};function Al(e){return k(["._pendo-button",".pendo-block-wrapper","._pendo-multi-choice-poll-select-border","._pendo-text-subTitle","._pendo-text-paragraph","._pendo-text-title","._pendo-text-custom","._pendo-close-guide","> ._pendo-simple-text","div._pendo-resource-center-module-list-item-text-container","._pendo-resource-center-right-caret",'[id^="pendo-onboarding-guide-progress-circle"]','[id^="pendo-task-list-progress-circle"]','[id^="pendo-a11y-list-item-button-block"]',"._pendo-resource-center-onboarding-module-listed-guide-link","._pendo-home-view-bubble"].join(","),e)}function Rl(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function Ol(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 Nl(e){var t=ko(e)["width"],e=R(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function Ml(e){Ll(e);var t=oa(e);if(0===t.width||0===t.height)return!0;if(!e.style||"visible"!==e.style.visibility)for(var n=e,i=e.id||"",r=0;0!==i.indexOf("pendo-g-")&&(Ll(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function Ll(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function Pl(e){var n="data-aspect-ratio",e=k("["+n+"]",e);_.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 Fl(){return!E.designer&&b.get("disableGuidePseudoStyles")}function Dl(e,t,n){return e&&e.templateName?wc.buildNodesFromTemplate(e.templateName,e,t,n,Bl):"style"===e.type&&Fl()?[]:[Bl(e,t,n)]}function Ul(e,t,n,i){e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw i&&(e+=' for node type "'+i+'"'),C.info(e),new Error(e)}function Gl(n,i,r,o){var a={allow:!0,allowfullscreen:!0,alt:!0,"alt-text":!0,autofocus:!0,"class":!0,cols:!0,contenteditable:!0,dir:!0,"for":!0,frameborder:!0,href:!0,id:!0,loading:!0,name:!0,placeholder:!0,placement:!0,rows:!0,role:!0,sandbox:!0,scoped:!0,src:!0,start:!0,style:!0,tabindex:!0,target:!0,title:!0,type:!0,value:!0},s={embed:{src:!0}},u=/^data-/,d=/^aria-/,e=_.keys(n);return _.reduce(e,function(e,t){return s[o]&&s[o][t]&&Ul(t,r,i,o),a[t]||u.test(t)||d.test(t)||Ul(t,r,i),e[t]=n[t],e},{})}function Bl(n,i,e){i=i||{id:"unknown",guideId:"unknown"},n.props=Gl(n.props,i.id,i.guideId,n.type),i.isDarkMode&&n.darkModeProps&&(n.darkModeProps=Gl(n.darkModeProps,i.id,i.guideId,n.type));var r=k(document.createElement(n.type));if(document.createElement("div").appendChild(r[0]),"script"===r[0].tagName.toLowerCase())return k(document.createElement("noscript"));if("pendo-backdrop"===(n.props&&n.props.id))return i.attributes&&i.attributes.blockOutUI&&i.attributes.blockOutUI.enabled&&Xc.attachScrollHandlers(i,jc),Hc(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||b.get("preventCodeInjection")?r.attr(t,e):(t=i.getContent(),0!==it.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=b.get("inlineStyleNonce");t&&r.attr("nonce",t);let e=n.css;if(n.forDarkMode){const l=_.get(i,"attributes.darkMode.selector","");e=_.map(e,function(e){return{styles:e.styles,selector:l+" "+e.selector}})}r.styleSheet?r.styleSheet.cssText=ql(e):r.text(ql(e))}if(n.svgWidgetId&&Cc.buildSvgNode(n.svgWidgetId,n,i.isDarkMode).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)Hl(r,n.actions[a],i),"renderGuidesListItem"===n.actions[a].action&&((o=N(n.actions[a].parameters[0]))?r.text(o.name):r.attr("style","display: none;"));if(_.find(n.actions,function(e){return"dismissGuide"===e.action})&&!i.hasEscapeListener&&(i.hasEscapeListener=!0,i.attachEvent(window,"keyup",function(e){27===e.keyCode&&i.eventRouter.eventable.trigger("pendoEvent",{step:i,action:"dismissGuide"})},!0)),n.children)for(var s=ha(_d()),u=s!==document,d=0;d<n.children.length;d++){var c=Dl(n.children[d],i,e);_.each(c,function(e){var t;e&&("STYLE"!==e[0].tagName?e.appendTo(r):u?((t=new CSSStyleSheet).replaceSync(e[0].innerHTML),(s.hasOwnProperty("wrappedJSObject")?s.wrappedJSObject:s).adoptedStyleSheets.push(t)):(k.addClass(e[0],"pendo-style-"+(i.isBadge?i.guideId:i.id)),e.appendTo(document.head)))})}return r.hasClass("pendo-code-block")?r.find("img").each(function(e){zl(e,i)}):zl(r[0],i),r}function zl(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++,jl(k(e),t))}function jl(e,i){e.on("load",function(){var e,t={},t=(!i.containerId&&i.domJson&&(t=gc(i.domJson)),i.containerId||t.props&&t.props.id||""),n=t&&k("#"+t,i.guideElement)[0];i&&i.attributes&&i.attributes.imgCount&&(i.attributes.imgCount--,n)&&i.attributes.imgCount<=0&&(El(t,i.guideElement),Il(t,i.guideElement),M.flexAllThings(t,i),e=i.getGuide(),_.get(e,"attributes.isAnnouncement")||"AnnouncementsModule"===_.get(e,"attributes.resourceCenter.moduleId")||(Sl(t,i.guideElement),(e=n.children.item("pendo-guide-container"))&&e.style&&"auto"===e.style.overflow&&(Il(t,i.guideElement),M.flexAllThings(i.containerId,i))),"tooltip"===i.attributes.calculatedType&&Xc.positionStepForTooltip(i,i.domJson,n),n.style.visibility="visible",n.parentNode.style.visibility="visible",k.event.dispatch(n,{type:"imagesLoaded"}))}),e.on("error",function(){var e=k("#"+i.containerId,i.guideElement)[0];e?("tooltip"===i.attributes.calculatedType&&Xc.positionStepForTooltip(i,i.domJson,e),e.style.visibility="visible",e.parentNode.style.visibility="visible",M.flexAllThings(i.containerId,i)):C.info("Failed to find guideContainer for id: "+i.containerId)})}function Hl(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 ql(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=ql(n[r].styles):_.each(n[r].styles,function(e,t){i+=t+":"+e,n[r].selector.match(/\d+%/)||(i+="!important;")}),i+="}";return i}function Wl(t){_.each(document.head.childNodes,function(e){e&&k.hasClass(e,"pendo-style-"+t)&&ea(e)})}var Vl=function(){var e=window.navigator;return((_.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},Jl="meta",$l=_.compose(JSON.parse,JSON.stringify),Kl=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()},Zl=function(e={}){(e=_.isObject(e)?e:{}).jwt&&e.signingKeyName&&(t=Is.getJwtOptions(e,"updateOptions"))&&(Is.set(_.pick(e,"jwt","signingKeyName")),e=t),t=e,n=_.extend({},t.visitor),i=_.extend({},t.account),t=_.extend({},t.parentAccount),n.id===Un&&(C.info("Missing visitor id."),delete n.id),Ln(i.id)&&Ln(t.id)&&(zn(i.id)?t.id=i.id.split(Bn)[0]:i.id=""+t.id+Bn+i.id),Ln(i.id)&&(i.id=""+i.id),Ln(n.id)?n.id=""+n.id:n.id=y({generate:!0}),n.language=Vl(),e={visitor:$l(n),account:$l(i),parentAccount:$l(t),date:Kl(),version:E.VERSION},f.getters["metadata/selfHosted"]()&&(e.selfHosted=!0);var t,n=_.clone(tp()),i=(b.setLocalConfig(_.extend({},b.getLocalConfig(),e)),f.commit("metadata/setMetadata",e),tp()),r=(Ln(e.visitor.id)&&(E.identify(e.visitor.id,e.account.id),e.visitor.id=y(),e.account.id=$n()),ct(e)),o=(void 0!==(o="object"==typeof(o=r)?ct(o):o)&&o.toString&&(o=o.toString()),""+(_.isNumber(kl)?kl:Zn(Jl))!==o),r=(kl=r,o&&Kn(Jl,r),!_.isEqual(n,i));return{options:e,hashChanged:o,storeChanged:r}},Xl=Qn(function(e){e=Zl(e);v.metadata.trigger(e)}),Yl=Qn(function(e,t){_.isObject(e)?Xl(e):qn(e,t)}),Ql=function(){var t,e=k("script");return e=e,t=new RegExp("/agent/static/"+E.apiKey+"/pendo\\.js$"),!_.any(e,function(e){return t.test(e.src)})&&!Se()},ep=function(){var e=b.get("blockAgentMetadata");return e!==undefined&&e};function tp(){return f.getters["metadata/metadata"]()}function np(){return JSON.parse(JSON.stringify(tp()))}function ip(e){var t=e.data[0],n=b.getLocalConfig()||{};Yn(e)?(Dn([Jl]),f.commit("metadata/reset",t)):(n.visitor=_.extend({},n.visitor,{id:t.visitor_id}),n.account=_.extend({},n.account,{id:t.account_id}),b.setLocalConfig(n),f.commit("metadata/setMetadata",n))}var rp={Launcher:{addBehavior:_.noop},Metadata:{getMetadata:tp},Util:{documentScrollTop:So,documentScrollLeft:Eo,getOffsetPosition:Qo},Events:v,JWT:{getJWT:Is.get}};var op,ap,sp,up,dp={},cp=(ap=[],sp=[],up={},(op=dp).getExtensions=function(){return sp},op.tagExtension=function(e,t){e=op.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},op.findExtensionByTag=function(t){return _.find(sp,function(e){return _.contains(e.tags,t)})},op.findExtensionByName=function(e){return _.findWhere(sp,{name:e})},op.filterExtensionsByUse=function(t){return _.filter(sp,function(e){return e.use===t})},op.findExtensionByNameAndProvider=function(t,n){return _.find(sp,function(e){e=e.data;return!!e&&e.name===t&&e.provider&&e.provider.name===n})},op.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],up[e]={handler:t,validators:n}},op.getExtensionFrames=function(){return _.reduce(sp,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=_.filter(e,lp)).length&&(ap=function n(e){if(!e.length)return e;var t=_.filter(e,pp);if(t.length)return n(_.difference(e,t));return e}(ap.concat(e)))});function lp(t){var e;return!!_.every(["name","version","use","type","uri"],_.partial(_.has,t))&&(e=t.use,e=up[e]?up[e].validators:[],_.every(_.map(e,function(e){return e(t)})))}function pp(e){var t;return"behavior"===e.use?!!e.uri(op,rp)&&(sp.push(e),!0):(t=e.use,!!(t=up[t]?up[t].handler||_.identity:null)&&((e=t(e))&&sp.push(e),!!e))}var L,hp,fp,gp,mp,vp,P={initializeResourceCenter:function(r){if(!(L=bp(r)))return m.resolve();if(f.getters["frames/isShownInAnotherFrame"]()(L.steps[0]))return m.resolve();if(P.isFullyCustom(L))return L.hasResourceCenterContent=!0,m.resolve();var e=wp(L,r),t=_.reduce(e,function(e,t){return yp(t)?e.concat(t.steps[0].fetchContent()):e},[]);return t.push(ic.validate(L).then(_.noop,function(){L.launchMethod="api"})),L.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},_.forEach(xp(),function(e){var t=dp.findExtensionByNameAndProvider("chat",e),t=(t&&Rp(e,t),dp.findExtensionByNameAndProvider("helpcenter",e));t&&Rp(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=_p(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&Cp(e.integrationName,e.integrationProvider),_.reduce(n,function(e,t){var n=_.find(r,function(e){return e.id===t});return n?e.concat(n):e},[]));"AnnouncementsModule"===i&&(L.attributes.notifications.individualCounts[t.id]=0,_.forEach(e,function(e){nh(e)||e.isControlGroup()||L.attributes.notifications.individualCounts[t.id]++}));-1<_.indexOf(["GuideListModule","OnboardingModule","AnnouncementsModule"],i)&&_.filter(e,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):!(e.ineligibleForRC=!0)}).length&&(t.hasResourceCenterContent=!0),t.guidesInModule=e}),L.modules=e,L.badgeHidden=!0,m.all(t)["catch"](()=>(L=null,C.error("Failed to load one or more Resource Center modules"),m.resolve()))},findResourceCenterHomeView:bp,findResourceCenterModules:wp,replaceResourceCenterContent:Sp,renderResourceCenterModule:function(e,t){Sp(e.id,undefined,!0,t)},showHomeViewOrEmptyState:function(e){k("#pendo-resource-center-container._pendo-guide-walkthrough_").remove(),delete e.activeModule,e.hasResourceCenterContent&&e.skipResourceCenterHomeView?P.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,[{value:"none"},{value:"left"}]):e.showEmptyState&&(P.showResourceCenterEmptyState(),_.each(e.controlGuidesInAllModules,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}))},showResourceCenterEmptyState:function(){var e=k("#pendo-resource-center-empty-state-container");e&&e.length&&k(e[0]).css({display:"block"})},launchIntegrationByNameAndProvider:function(e,t,n){var e=dp.findExtensionByNameAndProvider(e,t);return e?(n=k(n))?((e=e.getFrame()).appendTo(n),void e.css({display:"block"})):C.info("could not find target element for "+t+" integration"):C.info(t+" integration has not been loaded into the agent")},appendIntegrationToBodyByNameAndProvider:Cp,attemptToPreserveIntegrationIframes:function(e){e.step&&(e=e.step.getGuide()).attributes&&e.attributes.resourceCenter&&(e=P.getResourceCenterContainer())&&(e=k(e).find('iframe[id^="_pendo-launcher-ext-frame-chat"]'))&&e.length&&e.each(function(e){e=k(e);e.css({display:"none"}),e.appendTo(_d())})},getResourceCenter:Dp,getResourceCenterContainer:Up,getResourceCenterBadge:Gp,addNotificationBubbleToResourceCenterBadge:$p,addNotificationBubbleToTargetElement:Kp,updateNotificationBubbles:function(){var e=L,t=_.get(e,"attributes.notifications");if(t){var n=Hp(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&eh(),t.totalUnseenCount=n;else{qp();var i=n!==t.totalUnseenCount;if(i||!zp(gp)){if("badge"===e.launchMethod){i=Gp();if(!i)return;$p(i.element(),e.attributes.notificationBubble,n)}if("dom"===e.launchMethod&&_.get(e,"attributes.activation.selector")){i=k(e.attributes.activation.selector);if(!i.length)return;Kp(i[0],e.attributes.notificationBubble,n),Rr(window,"resize",_.debounce(jp,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:eh,updateNotificationBubbleCount:th,updateNotificationBubbleOnHomeView:Wp,updateOrCreateNotificationBubble:Zp,hexToRgb:Bp,doesIntegrationExist:_p,calculateTotalNotificationCount:Hp,updateNotificationBubblesOnHomeView:qp,createNotification:Yp,appendNotificationBubble:Qp,hasAnnouncementBeenSeen:nh,clearAnnouncementUnseenInterval:Ep,createAnnouncementUnseenInterval:Ip,findShownResourceCenterModule:function(){var e=P.getResourceCenterContainer();if(e){e=k(e).find('[id^="pendo-g-"]');if(e){var t=e.attr("data-pendo-guide-id"),e=_.find(dd(),function(e){return e.id===t});if(_.get(e,"attributes.resourceCenter.isModule",!1))return e}}},dismissResourceCenter:ih,repositionResourceCenter:function(){var e=P.getResourceCenterContainer();{var t,n,i;e&&(i=P.findResourceCenterHomeView(dd()).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=Zo().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")}bl(k(e))},repositionDoubleResourceCenterBadge:function(){var e,t,n;f.getters["frames/isLeader"]()&&1<(e=_.unique(_.compact([].concat(_.toArray(k("._pendo-resource-center-badge-container"))).concat(_.toArray(k("._pendo-resource-center-badge-container")))))).length&&function(e){var t=oa(e[0]),e=oa(e[1]);return aa(t,e)}(e)&&(t=Qo(e[0]).width+5,n=Qo(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=Up();if(t){o=Zo().width,r=k(t),e=k(e),r.css({"max-width":"none"}),e.css({"max-width":"none"}),i=parseInt(R(r[0]).width,10),o<i&&(i=parseInt(t.style.left,10),i=isNaN(i)?0:i,t=parseInt(t.style.right,10),t=isNaN(t)?0:t,o=o-t-i,r.css({"max-width":o+"px"}),e.css({"max-width":o+"px"}));var t=e,n=k('button[id^="pendo-a11y-list-item-button-block"]');if(n&&n.length)for(var i=k(t.find("ol._pendo-text-list-ordered"))[0],r=0,o=0,i=(i&&(i=R(i),o=parseInt(i.paddingLeft,10),r=parseInt(i.paddingRight,10)),k('[id^="pendo-onboarding-guide-progress-circle"]')[0]),e=0,a=0,s=0,u=(i&&(i=R(i),e=parseInt(i.width,10),a=parseInt(i.marginRight,10),s=parseInt(i.marginLeft,10)),o+r+e+s+a),d=parseInt(R(t[0]).width,10),c=0;c<n.length;c++){var l=n[c],p=k(l),l=(p.css({"max-width":"none"}),R(l)),h=parseInt(l.width,10),l=d-u-(parseInt(l.paddingLeft,10)+parseInt(l.paddingRight,10));l<=h&&p.css({"max-width":l})}}},setNativeIntegrationDefaults:Rp,renderNativeIntegration:Pp,isSupportedNativeIntegration:Tp,handleNativeIntegrationContinuation:Fp,isProviderInstalled:kp,adjustNotificationBubbleForResize:jp,getNotificationBubbleDefaultCss:Xp,getModuleId:rh,isIframeModule:function(e){return"IframeModule"===rh(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===rh(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===rh(e)&&e.hasResourceCenterContent},isFullyCustom:function(e){return"FullyCustomModule"===rh(e)},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!P.isSupportedNativeIntegration(e.integrationProvider)||P.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n=bp(e);if(!n)return m.resolve();if(t.getters["frames/isShownInAnotherFrame"]()(n.steps[0]))return m.resolve();if(P.isFullyCustom(n))return m.resolve();var t=wp(n,e),i=[],r=_.indexBy(e,"id");return _.each(t,function(e){var e=e.attributes.resourceCenter;"AnnouncementsModule"===e.moduleId&&(e=e.children,e=_.reduce(e,function(e,t){t=r[t];return t?e.concat(t):e},[]),_.each(e,function(e){yp(e)&&i.push(e.steps[0].fetchContent(!0))}))}),m.all(i)},setFocusForResourceCenterModule:function(e,t){var n;"HomeViewModule"===e[0].getAttribute("data-layout")?t&&(e=k('[data-pendo-module-guide-id="'+t+'"]'),n=e.find('button[id^="pendo-right-caret-"]')[0]):(t=k('[id="pendo-resource-center-module-title-container"]'),n=t.find('button[id^="pendo-left-caret-"')[0]);n&&n.focus()},revertRtlChanges:function(e,t){var n="rtl"===_.get(t,"data-localization-direction",!1),e=_.get(e,"attributes.badge.ignoreRTL",!1);n&&e&&!t["data-direction-changed"]&&(n=_.get(t,"style.left",!1),e=_.get(t,"style.right",!1),n)&&e&&(t.style.left=e,t.style.right=n,t["data-direction-changed"]=!0)},stashBadgeAriaLabel:Vp,resetBadgeAriaLabel:function(){var e=P.getResourceCenterBadge();{var t;e&&(e=e.element(),t=e.getAttribute("data-pendo-stashed-aria-label"))&&e.setAttribute("aria-label",t)}},getNotificationBubbleAriaLabelAttribute:Jp,updatePseudoStyleSelectors:oh,hideRCBadge:ah};function yp(e){return e.steps&&e.steps.length&&_.isFunction(e.steps[0].fetchContent)}function bp(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 wp(t,e){return _.filter(e,function(e){return e&&!e.isFrameProxy&&_.get(e,"attributes.resourceCenter.isModule",!1)&&e.state===t.state})}function Sp(t,e,n,i=!0){if(!fp){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),Up());if(e){var a=k(e).find('[id^="pendo-g-"]')[0];if(a){var s,u=a.getAttribute("data-pendo-guide-id"),d=_.find(dd(),function(e){return e.id===t}),c=(t!==L.id?(Wl(_.get(L.activeModule||L,"steps.0.id")),L.activeModule=d):(s=L.activeModule,Wl(_.get(s,"steps.0.id")),delete L.activeModule),_.get(d,"attributes.resourceCenter.integrationProvider")),l=(Tp(c)&&Pp(c),d.steps[0]),c=oh(l.domJson),c=(c.props["data-pendo-guide-id"]=d.id,Bl(c,l)),p=c[0],r=(-1===p.id.indexOf("pendo-g-")&&(p=c.find('[id^="pendo-g-"]')[0]),n||(p.style.transition=r,a.style.transition=r,"left"===o?p.style.left=e.offsetWidth+"px":"right"===o&&(p.style.left=-1*e.offsetWidth+"px")),n&&(k(a).remove(),s)&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),k(e).find('[id^="pendo-end-focus-bumper-"]')[0]);if(r?k(p).insertBefore(r):k(p).appendTo(e),l.guideElement=k(e),l.elements.push(l.guideElement[0]),P.adjustResourceCenterWidth(p),"AnnouncementsModule"===rh(d)&&l.guide.guidesInModule?(Il(r=_.reduce(l.guide.guidesInModule,function(e,t){var n;return _.isUndefined(t.steps[0].attributes.imgCount)&&(n=t.steps[0].id,n=k(p).find("#pendo-g-"+n)[0]?n:t.id,e.push("pendo-g-"+n)),e},[]),l.guideElement),_.each(r,function(e){M.flexAllThings(e,l)})):M.flexAllThings("pendo-resource-center-container"),bl(k(e)),p.style.left="0px",!n){fp=!0;try{"left"===o?a.style.left=-1*e.offsetWidth+"px":"right"===o&&(a.style.left=e.offsetWidth+"px"),Ut(function(){k(a).remove(),s&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),fp=!1},200)}catch(h){throw fp=!1,h}}return"AnnouncementsModule"===rh(d)&&(Ip(),r=wc.getGuidesInResourceCenterModule(d,dd()),(n=_.reduce(r,function(e,t){return t.steps&&t.steps.length&&lc.hasContent(t.steps[0])||e.push(t.fetchContent()),e},[])).length)&&((o=function(){var i,e,t;if(_.isFunction(document.createElementNS))return i="http://www.w3.org/2000/svg",e=function(e,t){var n=k(document.createElementNS(i,"circle")).attr({cx:e,cy:t,fill:"#9a9ca5",r:5});return _.each(_.toArray(arguments).slice(2),function(e){n.append(e)}),n},t=function(e){return k(document.createElementNS(i,"animate")).attr({attributeName:"fill-opacity",values:"0;1;0;0",keyTimes:"0;0.4;0.8;1",dur:"1.4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0 0 0.58 1; 0 0 0.58 1; 0 0 0.58 1",begin:e})},t=k(document.createElementNS(i,"svg")).attr({viewBox:"0 0 70 20",xmlns:"http://www.w3.org/2000/svg",width:"70",height:"20"}).append(e(21,10,t("-0.32s"))).append(e(35,10,t("-0.16s"))).append(e(49,10,t("0s"))),k(document.createElement("li")).css({padding:"5px 20px","list-style-type":"none","list-style-position":"inside",position:"relative","margin-left":"0em","border-width":"0px","border-style":"solid","border-color":"rgb(255, 255, 255)","float":"none","vertical-align":"baseline","text-align":"center"}).append(t)}())&&c.find("ol").append(o),m.all(n).then(function(){var e=m.defer();return Ut(e.resolve,500),e.promise}).then(function(){L.activeModule===d&&P.renderResourceCenterModule(d,i)})),P.setFocusForResourceCenterModule(c,u),i&&l.onShown("launcher"),c}}}}function Ep(){window.clearInterval(hp),hp=null}function Ip(){hp=hp||window.setInterval(function(){var e=Up();if(!e)return Ep();e=k(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return Ep();var t=k(e).find('ol[id^="pendo-list"]');if(!t.length)return Ep();var n=oa(t[0]),i=k(t).find("li");if(!i.length)return Ep();for(var r=e.attr("data-pendo-guide-id"),o=L.attributes.notifications.individualCounts[r],a=n.height/3,s=oa(i[i.length-1]).bottom-30<n.top+n.height,u=0;u<i.length;u++){var d=k(i[u]),c=d.hasClass("pendo-unseen-announcement"),l=d.attr("data-pendo-announcement-send-seen-event");if(c||l){if(oa(i[u]).top-n.top>n.height-a&&!s)break;var p=d.attr("data-pendo-announcement-guide-id"),l=_.find(dd(),function(e){return e.id===p});if(!l)break;c&&(d.removeClass("pendo-unseen-announcement"),c=d.find(".pendo-unread-announcement-mini-bubble"),_e(10)?d.find(".pendo-unread-announcement-mini-bubble").remove():(c[0].style.visibility="hidden",c[0].style.opacity="0",c[0].style.transition="visibility 0s 2s, opacity 2s linear"),nh(l)||o--,th(o,r)),l.steps[0].seenState="advanced",fm(l.id,l.steps[0].id,y(),"whatsnew",l.language,{last_updated_at:l.steps[0].lastUpdatedAt}),d[0].removeAttribute("data-pendo-announcement-send-seen-event"),mm(l.id,l.steps[0].id,y(),"advanced",l.language)}}},500)}function _p(e,t){return dp.findExtensionByNameAndProvider(e,t)}function Cp(e,t){e=dp.findExtensionByNameAndProvider(e,t);if(!e)return C.info(t+" integration has not been loaded into the agent");Tp(t)&&kp(t)?L.hasEligibleNativeIntegrationModule=!0:(ra((t=e.getFrame())[0])||t.appendTo(_d()),t.css({display:"none"}))}function xp(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging"]}function Tp(e){return!!e&&0<=xp().indexOf(e)}function kp(e){return!!e&&null!==(e=Ap(e))&&_.isFunction(window[e])}function Ap(e){if(!e)return null;switch(e){case"zendesk-chat":case"zendesk-messaging":case"zendesk-native-kb":return"zE";case"intercom-chat":return"Intercom";case"drift-native-chat":return"drift";default:return null}}function Rp(e,t){if(e)if(kp(e))Op(e,t);else{var n;if("function"==typeof Object.defineProperty){const i=Ap(e);null!==i&&(mp&&mp[i]?mp[i][e]||(mp[i][e]={installed:!1,integrationObj:t}):((mp=mp||{})[i]={[e]:{installed:!1,integrationObj:t}},Object.defineProperty(window,i,{get(){return n},set(e){n=e,_.forEach(mp[i],function(e,t){const n=e.integrationObj;!e.installed&&kp(t)&&(e.installed=!0,Op(t,n),Cp(n.name,t),_.forEach(L.modules,function(e){e.integrationConfig&&e.integrationConfig.data.name===n.name&&e.integrationConfig.data.provider.name===t&&(e.hasResourceCenterContent=!0)}))})},configurable:!0,enumerable:!0})))}}}function Op(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=Mp(i);Np(n,"webWidget","hide"),Np(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),Np(n,"webWidget:on","close",function(){Np(n,"webWidget","hide"),Lp()}),L.isInProgress()&&!L.attributes.doNotResume&&Fp(L.activeModule),Np(n,"webWidget:on","chat:unreadMessages",function(e){th(e,"chat")});break;case"zendesk-messaging":i=t;Np(i=i.data.provider.name,"messenger","hide"),Np(i,"messenger:on","close",function(){Lp()}),Np(i,"messenger:on","unreadMessages",function(e){th(e,"chat")});break;case"intercom-chat":var r=t;r=Mp(r),window.intercomSettings||(window.intercomSettings={}),window.intercomSettings.hide_default_launcher=!0,window.intercomSettings.alignment=r?r[1]:"right",window.Intercom("update",{hide_default_launcher:!0,alignment:r?r[1]:"right"}),window.Intercom("onHide",function(){Lp()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=tp();window.drift.identify(t.visitor.id,function o(e){const t={};for(const n in e)if("object"!=typeof e[n]||Array.isArray(e[n]))t[n]=e[n];else{const i=o(e[n]);for(const r in i)i[r]&&(t[n+"."+r]=i[r])}return t}(t)),window.drift.on("message",function(e){if(!L.isNativeModuleActive)return th(1,"chat")})}),window.drift.on("chatClose",function(e){th(0,"chat"),window.drift.hide(),Lp()})}}function Np(e,...t){try{vp&&vp[e]||window.zE.apply(null,t)}catch(n){vp?vp[e]=!0:vp={[e]:!0}}}function Mp(e){e=_.get(e,"data.options.labels.position");return e=e&&e.split("-")}function Lp(){ih(L.activeModule),delete L.activeModule,L.continueToNativeModule=!1}function Pp(e,t){if(e){var n=tp();if(L.isShown()&&L.hide(),vp&&vp[e])C.info(e+" integration failed to communicate with API, closing"),P.replaceResourceCenterContent(L.id,undefined,!0),Lp();else{var i=Gp();switch(i&&ah(i,L),e){case"zendesk-messaging":Np(e,"messenger","show"),Np(e,"messenger","open");break;case"zendesk-native-kb":Np(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),Np(e,"webWidget","show"),Np(e,"webWidget","open");break;case"zendesk-chat":Np(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&Np(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})}th(0,"chat"),!L.activeModule&&t&&(L.activeModule=t).steps[0].onShown("launcher")}}}function Fp(e){e&&!e.isTopLevel&&(Pp(_.get(e,"attributes.resourceCenter.integrationProvider")),L.activeModule||(L.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function Dp(){return L}function Up(){return _.get(L,"steps.0.guideElement.0")}function Gp(){if(L&&L.id)return ad[L.id]}function Bp(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 zp(e){return e&&_.all(e,function(e){return ra(e&&e.length?e[0]:e)})}function jp(){var e,t=P.getResourceCenter(),n=_.get(t,"attributes.notifications");n&&(n=P.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&_.get(t,"attributes.activation.selector")&&(e=k(t.attributes.activation.selector)).length&&P.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function Hp(e){return _.reduce(e,function(e,t){return e+t},0)}function qp(){var e,t=L;t&&(t=_.get(t,"attributes.notifications"))&&(e=Up())&&k(e).find("._pendo-resource-center-home-list").length&&_.each(t.individualCounts,function(e,t){Wp(e,t)})}function Wp(e,t){var n=P.getResourceCenterContainer();n&&(n=k(n).find('[data-pendo-notification-id="'+t+'"]')).length&&(t=k(n[0]).find("._pendo-home-view-bubble"),n=k(t[0].children[0]),e!==parseInt(n.text(),10))&&(0<e?(n.text(e),k(t[0]).css({display:"block","margin-right":"0"})):(n.text(""),k(t[0]).css({display:"none"})))}function Vp(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function Jp(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function $p(e,t,n){var i=Jp(n);let r=e.getAttribute(i);r&&(Vp(e),r=r.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",r));var i=_.get(t,"position","top-left"),o=R(e),o=(parseInt(o.width,10)||56)/2,a=o/Math.sqrt(2),o=Math.round(o-a)-10,s=o-10,a=Math.round(2*a),o={"top-left":{top:o+"px",left:s+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"top-right":{top:o+"px",left:s+a+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-left":{top:o+a,left:s+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-right":{top:o+a,left:s+a+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"}},s=e.attributes["data-localization-direction"]||!1,a=P.resourceCenterIgnoreRtl();Zp(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 Kp(e,t,n){var i=To(e,e),r=To(e,na());Zp(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 Zp(e,t,n,i,r){var o,a;zp(gp)?(a=(o=Xp(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=_.extend(a,i),o=_.extend(o,r),gp.bubbleEle.css(a),gp.unseenCountEle.css(o),gp.unseenCountEle.text()!=""+n&&gp.unseenCountEle.text(n)):(a=k(e).find(".pendo-resource-center-badge-notification-bubble")).length?a[0].getElementsByClassName("pendo-notification-bubble-unread-count")[0].textContent=n:n&&Qp(gp=Yp(t,n,i,r),e)}function Xp(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 Yp(e,t,n,i){var r=Xp(e),o=r.defaultBubbleCss,r=r.defaultUnseenCountCss,a=(t=t||0,k(document.createElement("div")).addClass("pendo-resource-center-badge-notification-bubble")),s=k(document.createElement("div")).addClass("pendo-notification-bubble-unread-count"),o=_.extend(o,n),n=_.extend(r,i);return a.css(o),s.css(n),_e(10)||Fl()||(i="rgb("+(r=Bp(e["background-color"])).r+", "+r.g+", "+r.b+")",yc(b,"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 Qp(e,t){e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function eh(){var n=gp?gp.bubbleEle:k(".pendo-resource-center-badge-notification-bubble"),i=gp?gp.styleEle:k("#pendo-resource-center-bubble-animation");n&&_.each(n,function(e,t){n[t]&&(t=n[t])&&t.parentNode&&t.parentNode.removeChild(t)}),i&&_.each(i,function(e,t){i[t]&&(t=i[t])&&t.parentNode&&t.parentNode.removeChild(t)}),gp=null,P.resetBadgeAriaLabel()}function th(e,t){var n=L;n&&(n=_.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,P.updateNotificationBubbles())}function nh(e){return!(!_.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function ih(e){var t=_.get(e,"attributes.resourceCenter.isModule",!1)?e:P.findShownResourceCenterModule();t&&(t=_.first(t.steps),Kg(t));t=(_.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:P.findResourceCenterHomeView(dd())).steps[0];return Kg(t)}function rh(e){return _.get(e,"attributes.resourceCenter.moduleId")}function oh(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 ah(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete ad[t.id])}var sh=1e4,uh="lastStepAdvanced";function dh(e){f.dispatch("guideState/updateLastGuideStepSeen",e),f.dispatch("guideState/write"),f.dispatch("frames/changeLastGuideStepSeen",e)}function ch(){f.dispatch("guideState/regainFocus")}function lh(){return f.state.guideState.lastGuideStepSeen}var i={actions:{init(e){e.getters.storage().registry.addLocal(uh),e.commit("setScopedStorageKey",Vt(e.state.storageKey)),v.identify.on(function(e){Yn(e)&&Dn([uh])})},load(t,e){if(e){var n;try{n=JSON.parse(e)}catch(i){}n&&_.each([].concat(n),function(e){t.commit("setStepState",e)})}},forceExpire(n){_.each(n.state.steps,function(e,t){n.commit("expireStepState",t)})},expire(n){var i=n.getters.now();_.each(n.state.steps,function(e,t){i-e.time>n.state.ttl&&n.commit("expireStepState",t)})},apply(o){var a,s=_.indexBy(o.getters.guideList(),"id");o.dispatch("expire"),_.each(o.state.steps,function(e){var t,n,i=e.guideId,r=e.guideStepId;e.visitorId&&e.visitorId!==o.getters.visitorId()||((!a||e.time>a.time)&&(a=e),(i=s[i])&&(t=_.findWhere(i.steps,{id:r}))&&(n=o.state.storageKey,t.seenState!=e.state&&(C.info("making sure that seenState = '"+e.state+"' for "+n+": "+r),t.seenState=e.state),t.snoozeEndTime!=e.snoozeEndTime&&(C.info("making sure that snoozeEndTime = '"+e.snoozeEndTime+"' for "+n+": "+r),t.snoozeEndTime=e.snoozeEndTime),t.seenReason!=e.seenReason&&(C.info("making sure that seenReason = '"+e.reason+"' for "+n+": "+r),t.seenReason=e.seenReason),e.dismissCount!==undefined&&t.dismissCount!=e.dismissCount&&(t.dismissCount===undefined?t.dismissCount=e.dismissCount:t.dismissCount=Math.max(e.dismissCount,t.dismissCount),C.info("making sure that dismissCount = '"+t.dismissCount+"' for "+n+": "+r)),e=_.indexOf(i.steps,t),_.each(i.steps.slice(0,e),function(e){_.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})))}),a&&o.dispatch("updateLastGuideStepSeen",_.extend({},o.state.lastGuideStepSeen,a))},receiveLastGuideStepSeen(e,t){e.commit("setReceivedLastGuideStepSeen",t),e.commit("setLastGuideStepSeen",t)},updateLastGuideStepSeen(e,t){var n;t.visitorId&&t.visitorId!==e.getters.visitorId()||(n=_.some(e.getters.guideList(),function({id:e}){return e===t.guideId}),t.guideStepId&&e.commit("setStepState",t),n&&(e.commit("setLastGuideStepSeen",t),E.lastGuideStepSeen=t,rv)&&rv.update(t))},updateThrottlingState(e,t){e.commit("setThrottlingState",t)},write(e){e.dispatch("expire");var t=e.rootState.frames.tabId,n=e.state.storageKey,i=e.getters.cookieSuffix(),r=e.state.ttl,o=e.getters.storage(),a=JSON.stringify(_.map(e.state.steps,function(e){return _.extend({tabId:t},e)}));C.info("writing "+a+" to a cookie named "+n+" for "+r+" and cookieSuffix "+i),o.write(n,a,r,!1,!1,i),e.dispatch("preview/update",e.state.lastGuideStepSeen,{root:!0})},storageChanged(e,t){if(t.key===e.state.scopedStorageKey){try{var n=e.getters.storage(),i=e.getters.cookieSuffix(),r=n.read(e.state.storageKey,!1,i),o=[].concat(JSON.parse(r))}catch(a){}e.getters.storageChangedInOtherTab()(o)&&(_h(),e.dispatch("load",r),e.dispatch("apply"),e.state.receivedStateChangeAt||e.commit("setReceivedStateChange",e.getters.now()))}},regainFocus(e){var t=e.getters.tabLostFocus(),n=e.getters.isGuideRequestStale();t&&(e.commit("setReceivedStateChange",null),n||(Ch(),xh())),n&&yv()}},mutations:{expireStepState(e,t){e.expired[t]=e.steps[t],delete e.steps[t]},setStepState(e,t){e.steps[t.guideStepId]=t},setScopedStorageKey(e,t){e.scopedStorageKey=t},setLastGuideStepSeen(e,t){e.lastGuideStepSeen=t},setReceivedLastGuideStepSeen(e,t){e.receivedLastGuideStepSeen=t},setReceivedStateChange(e,t){e.receivedStateChangeAt=t},setLastGuideRequestAt(e,t){e.lastGuideRequestAt=t},setThrottlingState(e,t){e[t.name]=t.value}},state:{steps:{},expired:{},ttl:sh,storageKey:uh,guideRequestExpiration:36e5,scopedStorageKey:null,receivedStateChangeAt:null,receivedLastGuideStepSeen:null,lastGuideStepSeen:null,lastGuideRequestAt:null,latestDismissedAutoAt:null,latestSnoozedAutoAt:null,finalAdvancedAutoAt:null},getters:{now(){return S()},storage(){return h},guideList(){return O},tabLostFocus(e){return!!e.receivedStateChangeAt},isGuideRequestStale(e,t){return null!=e.lastGuideRequestAt&&t.now()-e.lastGuideRequestAt>e.guideRequestExpiration},storageChangedInOtherTab(n,e,i){return function(e){var t=_.get(i,"frames.tabId");return!!e&&!!((e=_.max(_.compact(e),"time"))&&e.tabId&&t&&e.tabId!==t)&&(!n.lastGuideStepSeen||!n.lastGuideStepSeen.time||e.time>n.lastGuideStepSeen.time)}},cookieSuffix(){return b.get("crossAppGuideStorageSuffix")},visitorId(){return y()}}},ph={canDisplay:function(e,t,n){if(n&&n.enabled&&_.isFinite(t)){t=gh(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=b.get("appAutoOrdering")||[].concat(b.get("leaderKey"));{var i;n.length&&(i=f.getters["frames/autoOrdering"](),n=_.reduce(n,(e,t)=>e.concat(i[t]||[]),[]),t=_.uniq(n.concat(t)))}var r,o,n=function(e){e=_.defaults(_.groupBy(e,function(e){return fh(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,hh),t));return _.find(e,function(e){return e.isTraining})?(t=b.get("adoptPrioritizeAdoptGuides"),e=t,r=[],o=[],_.each(n,function(e){(e.isTraining?r:o).push(e)}),e?r.concat(o):o.concat(r)):n},tryDisplayGuide:function(e,t){var n=ph.lastDismissedTime(t),n=ph.canDisplay(S(),n,t.throttling);if((fh(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:gh};function hh(e){return e&&/auto/.test(e.launchMethod)}function fh(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||_.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function gh(e,t){var n=t.interval,t=(t.unit||"").toLowerCase();return _.isNumber(n)&&mt(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 mh(t){return v.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+"?"+so(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=no(e).substring(1),t=ao(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=no(e.substring(n+1)).substring(1),_.extend(t,ao(n))),t}}var vh=_.memoize(function(){return mh(N)});function yh(e,t){var e=_.find(e,function(e){return e.isContinuation(t)}),n=e&&e.attributes&&e.attributes.doNotResume;if(e&&!n)return e}class bh{constructor(){this.name="autoDisplay",this.queue=[]}markDirty(){Od()&&(this.queue.push("permalink","continuation"),this.queue.push(...ph.sortAndFilter(ud(),E.autoOrdering)))}process(e){if(Lg())this.cancel();else{var t=this.queue.shift();if("permalink"===t)return vh().tryDisplay();if("continuation"===t){var n=yh(ud(),lh());if(n)return e.saveContext(n),n.show("continue")}else if(t){if(!yh(ud(),lh()))return e.saveContext(t),ph.tryDisplayGuide(t,E);this.cancel()}}}handleProcessTimeExceeded(e){e=e.getContext();e&&C.warn("Auto display ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}function wh(t,n=!1){var i=_.get(t,"attributes.darkMode.selector","");if(i){let e;e=E.designerEnabled&&_.has(t,"attributes.darkMode.override")?t.attributes.darkMode.override:0<E.Sizzle(i).length,t.isDarkMode!==e&&(t.isDarkMode=e,n)&&(t.hide(),t.show(t.seenReason))}}var Sh=null,Eh=500,Ih=function(e){Sh=_.delay(function(){Sh=null,xh()},e=e||Eh),E.guidesProcessingThreadHandle=Sh},_h=function(){Sh&&(clearTimeout(Sh),Sh=null,E.guidesProcessingThreadHandle=Sh),f.dispatch("guideUpdate/stopScheduledUpdate")},Ch=function(){Gg(),Fh.cancel();for(var e=0;e<od.length;e++){var t=od[e];t.parentNode.removeChild(t)}od.length=0,f.dispatch("guideUpdate/stopObserver"),v.guideLoopStopped.trigger()},xh=function(){if(_h(),Nm())C.info("guides are loading.",{contexts:["guides","loading"]});else if(av())C.info("guides are disabled.",{contexts:["guides","disabled"]});else if(sv())C.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!f.getters["guideState/tabLostFocus"]())try{var e=md();e&&0!==e.length&&(f.dispatch("guideUpdate/startObserverIfNeeded"),Fh.isComplete()&&Fh.markDirty(),f.getters["frames/leaderExists"]())&&Fh.process()}catch(t){Fh.cancel(),C.critical("ERROR in guide-loop",{error:t})}finally{Fh.paused||(Fh.isComplete()?(f.state.guideUpdate.useObserver&&!f.state.guideUpdate.needsUpdate||Ih(),v.guideUpdateComplete.trigger()):Ih(50))}};var Th=function(){var e=b.getLocalConfig();b.get("delayGuides")&&(delete e.delayGuides,b.setLocalConfig(e)),b.get("guides.delay")&&(delete e.guides.delay,b.setLocalConfig(e)),xh()},kh=function(){av()||dv(!0),Ch(),Am()};class Ah{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 Rh{constructor(){this.name="badge",this.queue=[]}markDirty(){this.queue.push.apply(this.queue,_.filter(cd(ud()),bd))}process(e){var t=this.queue.shift();e.saveContext(t),t&&t.placeBadge()}handleProcessTimeExceeded(e){e=e.getContext();C.warn("Badge ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}function Oh(i,e){var r,o,t,n,a;P.isFullyCustom(i)||(r=!1,o=[],t=_.filter(i.modules,function(e){var t,n;return!!e&&(!!P.isIframeModule(e)||!!P.isSandboxModule(e)||(P.isIntegrationModule(e)?!!P.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1):(t=(n=_.filter(e.guidesInModule,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):(e.ineligibleForRC=!0,e.control&&o.push(e),!1)})).length,e.hasResourceCenterContent=!!t,i.activeModule&&e.id===i.activeModule.id&&(n=ct(_.map(n,function(e){var t=e.isAnnouncement()||e.isWhatsNew()?null:_.pluck(e.steps,"seenState");return{id:e.id,seenState:t}})),e.eligibleGuidesInModuleHash&&n!==e.eligibleGuidesInModuleHash&&(r=!0),e.eligibleGuidesInModuleHash=n),t)))}),n=!1,i.activeModule||(a=ct(_.map(t,function(e){return{id:e.id}})),i.eligibleModulesHash&&i.eligibleModulesHash!==a&&(n=!0,P.replaceResourceCenterContent(i.id,undefined,!0)),i.eligibleModulesHash=a),e(i,t,o),1===t.length&&(i.skipResourceCenterHomeView=!0,i.moduleIdToReplaceHomeViewWith=t[0].id,a=!i.activeModule&&n,e=i.activeModule&&i.activeModule.id!==t[0].id,a||e||r)&&P.replaceResourceCenterContent(i.moduleIdToReplaceHomeViewWith,undefined,!0),t&&(n=_.find(t,function(e){return e.isContinuation(lh())}),a=_.get(n,"attributes.doNotResume"),e=_.get(n,"attributes.resourceCenter.integrationProvider"),P.isSupportedNativeIntegration(e))&&!a&&i&&(i.continueToNativeModule=!0,n.continueToNativeModule=!0),i.activeModule&&((e=_.find(t,function(e){return e.id===i.activeModule.id}))&&r&&P.replaceResourceCenterContent(i.activeModule.id,undefined,!0),e||P.replaceResourceCenterContent(i.id)),P.repositionResourceCenter())}function Nh(e,t,n){var i,r,o=ad[e.id];t&&t.length||(t=-1!==e.launchMethod.indexOf("badge"),i=-1!==e.launchMethod.indexOf("dom"),r=-1!==e.launchMethod.indexOf("extensionIcon"),e.hasResourceCenterContent=!1,t?(e.isShown()&&e.hide(),o&&P.hideRCBadge(o,e),_.each(n,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}),e.badgeHidden=!0,delete e.activeModule):(i||r)&&(e.showEmptyState=!0,e.controlGuidesInAllModules=n)),e.badgeHidden&&e.hasResourceCenterContent&&!e.isNativeModuleActive&&(o||(_.isFunction(e.placeBadge)&&e.placeBadge(),o=ad[e.id]),o&&o.show(),e.badgeHidden=!1)}function Mh(e){var t,n,i,r,o,a;e&&e.launchMethod&&(e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith,t=e.activeModule,n=_.get(t,"attributes.resourceCenter.integrationProvider"),e.isNativeModuleActive=t&&P.isSupportedNativeIntegration(n),P.isFullyCustom(e)?e.hasResourceCenterContent=!0:(e.isShown()||!f.getters["frames/isLeader"]()?Oh(e,Nh):(t=e,n=Nh,P.isFullyCustom(t)||(i=[],o=[],(r=_.find(t.modules,function(e){return!!P.isIframeModule(e)||!!P.isSandboxModule(e)||!!P.isIntegrationModule(e)&&(!!P.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1))}))&&i.push(r),r=_.flatten(_.pluck(t.modules,"guidesInModule")),o=_.filter(_.compact(r),function(e){return e.control}),!i.length&&(a=_.reduce(t.modules,function(t,n){return _.each(n.guidesInModule,function(e){t[e.id]=n}),t},{}),r=_.filter(r,function(e){return e&&e.steps&&e.steps.length}),r=_.sortBy(r,function(e){return e.steps[0].elementPathRule?1:0}),r=a[(r=_.find(r,function(e){return e.shouldBeAddedToResourceCenter()}))&&r.id])&&i.push(r),n(t,i,o))),e.isNativeModuleActive&&(e.isShown()&&e.hide(),a=ad[e.id])&&P.hideRCBadge(a,e),"dom"===e.launchMethod&&(P.updateNotificationBubbles(),P.adjustNotificationBubbleForResize())))}class Lh{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 Ph{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 Lh(50);!this.timedOut()&&!i.isComplete()&&!e;)r.start(),!(e=i.process(r))&&r.isTimeExceeded()&&(Os.count(ks),i.handleProcessTimeExceeded&&i.handleProcessTimeExceeded(r),this.ejectGuide(r.getContext()));wt(e)?(t=this.updateId,n=_.bind(function(){this.updateId===t&&(this.paused=!1,xh())},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 Ah(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>f.state.guideUpdate.iterationTimeLimit}ejectGuide(e){this.ejectOnTimeout===undefined&&(this.ejectOnTimeout=b.get("guides.ejectOnTimeout")),this.ejectOnTimeout&&e&&!e.isShown()&&pd.addGuide(e)}process(){var e=S();for(this.updateId||(this.updateId=e,this.updateTotalTime=0,f.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){f.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 Fh=new Ph([new Ah("guideShowing",function(){var a=wv();a&&(_.each(a.steps,function(e){var t,n,i,r,o;a.guide,(e=e).isLocked()||f.getters["frames/isShownInAnotherFrame"]()(e)||(t=e.element,n=e.targetElement,r=e.guideElement,i=k("."+Rg),(r=r.find("#pendo-guide-container")[0])&&r.textContent&&(r=R(r).fontSize,e.attributes.currentTextZoomFontSize!==r)&&(e.attributes.currentTextZoomFontSize&&e.redraw(),e.attributes.currentTextZoomFontSize=r),wh(e,!0),e.elementPathRule&&n&&!Cr.matchesSelector(n,e.elementPathRule)?e.hide():(r=ya(t),o=!0,n&&r&&e.elementContainsRulesList&&(o=om(n,e.elementContainsRulesList),r=o),t&&(r||i.hasClass("mouseover"))?e.checkPlacement():("tooltip"===e.type||"tooltip"===e.attributes.calculatedType)&&ba(t)&&o||e.hide()))}),a.guide.checkForHiddenGroupSteps())}),new bh,new Rh,new Ah("resourceCenter",function(){Mh(P.getResourceCenter())}),new Ah("frameVisibility",function(){f.dispatch("frames/checkFrameVisibility")})]);function Dh(){Fh.addPhase(...arguments)}function Uh(){Fh.removePhase(...arguments)}function Gh(){var s={};return _.each(["after","before"],function(i){this[i]=function(e,t){var n,r,o,a;this[e]&&((n=s[e])||(n=s[e]={before:[],after:[]},this[e]=(r=this[e],o=n.before,a=n.after,function(){for(var e=_.toArray(arguments),t=0,n=o.length;t<n;++t)if(!1===o[t].apply(this,e))return;var i=r.apply(this,e);for(t=0,n=a.length;t<n&&!1!==a[t].apply(this,e);++t);return i})),n[i].push(t))}},this),this}var Bh="debug-enabled";function zh(){try{var e=h.read(Bh)||JSON.parse(Ht(Bh));return"boolean"==typeof e?{enabled:e}:e||{}}catch(t){return{}}}function jh(e=!0){let t;return t=f&&f.getters&&f.getters["debugger/debuggingEnabled"]?f.getters["debugger/debuggingEnabled"]():!0===zh().enabled,e?t:t?"Yes":"No"}class Hh{constructor(e,t){this.type=t,this.identificationFn=e}test(e){return this.identificationFn(e)}}const qh=(()=>{const n={},e=({data:e})=>{var[e,,]=e,e=e["guideId"];const t=N(e);e=(_.find(n,e=>e.GuideType.test(t))||{}).handler;e&&e(t,"resourceFetchFail")};return{run:()=>{v.resourceFetchFail.on(e)},stop:()=>{v.resourceFetchFail.off(e)},addTypeHandler:(e,t)=>{_.isFunction(t)?n[e.type]={GuideType:e,handler:t}:C.error("Invalid Handler function provided for type "+e.type)}}})();qh.addTypeHandler(new Hh(bd,"badge"),(e,t)=>{pd.addGuide(e)});var Wh="_pendo-badge_";function Vh(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function Jh(t,n){var e,i,r,o,a,s=Td(n),u=!(null==(u=null==t?void 0:t.attributes)||!u.resourceCenter),d=!1;return u&&(d=null==(e=null==(e=null==t?void 0:t.attributes)?void 0:e.badge)?void 0:e.ignoreRTL),"building-block"===t.attributes.type?(e=_.reduce([(o=t.language,a=u?["he","ar"]:[],e=>(_.contains(a,o)&&(e.props["data-localization-direction"]=!0),e)),(r=d,e=>{var t,n;return _.get(e,"props.data-localization-direction",!1)&&!r&&(t=_.get(e,"props.style.left","auto"),n=_.get(e,"props.style.right","auto"),t)&&n&&(e.props.style.left=n,e.props.style.right=t),e}),Vh,dc,function(e){return Bl(e,{id:n.id,guideId:t.id,isBadge:!0})}],(e,t)=>t(e),this.domJson)[0],i=e,k.removeNode(e),-1===i.className.indexOf("_pendo-badge_")&&(i.className+=" _pendo-badge_"),this.isP2Badge=!0):((i=document.createElement("img")).src=uc(this.imageUrl),i.className="_pendo-badge "+Wh,u=this.width||13,d=this.height||13,$o(i,"width:"+u+"px;height:"+d+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=_.isFunction(n.getGuide)&&n.getGuide(),t=cm(e);!e.isShown()||f.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()}),Kg(t))},this.shouldShow=function(){return t.canBadgeBeShown()||!1},this.show=function(){if(_.isFunction(this.shouldShow))return this.shouldShow()},this.hide=function(){k.removeNode(i),Wl(t.id),_.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},cm(t)&&(this.toggleAriaExpanded=function(){var e=!!k("#pendo-resource-center-container")[0],t=k("button._pendo-resource-center-badge-container")[0]||k('._pendo-resource-center-badge-container [id^="pendo-image-badge-"]')[0];t&&t.setAttribute("aria-expanded",e)},i.checkAriaExpanded=this.toggleAriaExpanded),this.step=_.constant(n),this.target=_.constant(s),this.element=_.constant(i),this}Jh.create=function(n){var i=Jh.findStep(n);if(i)return _.reduce(Jh.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},Jh.findStep=function(e){var t=_.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},Jh.behaviors=[Gh,Jh,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&&$o(i,"display:inline-block;vertical-align:text-bottom;"),this.css&&$o(i,this.css),n&&n.tagName&&(e=n.tagName.toLowerCase(),t=function(e){try{if(e.shadowRoot&&!e.shadowRoot.querySelector("slot"))return e.shadowRoot}catch(t){}return e}(n),/br|input|img|select|textarea/.test(e)?i.parentNode!==n.parentNode&&n.parentNode.insertBefore(i,n.nextSibling):i.parentNode!==t&&("inline"===this.position||"inline-right"===this.position?t.appendChild(i):"inline-left"===this.position&&t.prepend(i)))});return this},function(s){this.position&&"top-right"!==this.position&&"top-left"!==this.position||this.before("show",function(){var e=this.element(),t=Qo(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"}$o(e,o)}if(!e.parentNode){_d().appendChild(e);const a=fa(Rr,this.target(),Yh);this.removeScrollHandlers=()=>{Yh.cancel(),a()}}});return this},function(){"over"===this.position&&this.before("show",function(){var e=this.element(),t=Qo(this.target()),n="position:absolute;top:"+t.top+"px;left:"+t.left+"px;";if(n+="height:"+t.height+"px;width:"+t.width+"px;",$o(e,n+="background-color:transparent;"),!e.parentNode){_d().appendChild(e);const i=fa(Yh,e,this.target());this.removeScrollHandlers=()=>{Yh.cancel(),i()}}});return this},function(){var t=this,e=t.element(),n=!1,i=function(e){t.activate(),t.toggleAriaExpanded&&t.toggleAriaExpanded(),ed(e)};return t.after("show",function(){n||(l(e,"click",i),n=!0)}),t.after("hide",function(){Qu(e,"click",i),n=!1}),t},function(){var t=this.element(),n=this.step(),e=!1;{var i,r,o;"yes"!==this.useHover&&!this.showGuideOnBadgeHover||(i=_.throttle(function(e){Nr(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}(Nr(e))||o()},50,{trailing:!1}),r=function(e){n.isShown()||pm(n,"badge"),l(document,"mousemove",i),ed(e)},o=function(e){Qu(document,"mousemove",i),Ed()||Kg(n)},this.after("show",function(){e||(l(t,"mouseover",r),e=!0)}),this.after("hide",function(){Qu(t,"mouseover",r),Qu(document,"mousemove",i),e=!1}))}return this},function(){var s=this.element(),u=this.target(),e=!1;{var t,n,i,r,d;!this.showBadgeOnlyOnElementHover&&!/hover/.test(this.showOnEvent)||Ed()||(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;Nr(e)===u||Nr(e)===s||zo(s,"triggered")||(t=e.clientX,e=e.clientY,n=oa(u),i=oa(s),r=Math.min(n.left,i.left),o=Math.min(n.top,i.top),a=Math.max(n.right,i.right),n=Math.max(n.bottom,i.bottom),i=e+document.documentElement.scrollTop,r<=t&&t<=a&&o<=i&&i<=n)||d()},50,{trailing:!1}),r=function(){$o(s,t),l(document,"mousemove",i)},d=function(){Qu(document,"mousemove",i),$o(s,n)},this.after("show",function(){e||(l(u,"mouseover",r),e=!0,d())}),this.after("hide",function(){e&&(Qu(u,"mouseover",r),e=!1),d()}))}return this}];var $h=function(e,t){var n,i,r=(t=t||ad)[e.id],o=r?r.step():Jh.findStep(e);o&&(i=r?r.target():Td(o),(n=_.get(e,"attributes.resourceCenter"))&&!f.getters["frames/canShowRCBadge"]()?r&&_.isFunction(r.hide)&&(t[e.id]=undefined,r.hide()):n&&!e.hasResourceCenterContent||(P.updateNotificationBubbles(),n=!0,o.elementContainsRulesList&&(n=i&&om(i,o.elementContainsRulesList)),(i=o.elementPathRule&&ya(i)&&Cr.matchesSelector(i,o.elementPathRule)&&n)?((r=r||Jh.create(e)).show(),t[e.id]=r):r&&!o.isShown()&&(t[e.id]=undefined,r.hide()),jh()&&v.stepEligibility.trigger({stepId:o.id,guideId:e.id,eligible:i,reason:"target_element_badge"}),P.repositionDoubleResourceCenterBadge()))},Kh=function(){_.map(ad,Zh),ad={}},Zh=function(e,t){e&&(_.isFunction(e.hide)&&e.hide(),_.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete ad[t.id]},Xh=function(e){var t=ad[e.id];t&&Zh(t,e)};var Yh=_.throttle(function(){_.map(ad,function(e){e&&e.show&&e.show()})},10);const Qh=h.getLocal();var F,ef="pendo-preview",tf="current-guide-preview";function nf(e){return f.dispatch("preview/load"),rf(e)}function rf(t){var e=bf();if(e)return af(t),f.dispatch("preview/start",_.extend(e)),h.clear(uh),jt(!1),ls.lock(),Lm=If,cf()&&((e=X).allowedOriginServers=[],e.allowedOriginServerHashes=[]),v.startPreview.trigger(),v.leaderChanged.on(function(e){f.dispatch("preview/write"),e.oldLeaderId||yv(),f.getters["frames/isLeader"]()||(k(F).remove(),F=null,t.removeEventListener("message",uf))}),Dh(of),!0}function of(){if(!f.getters["frames/isFollower"]()){var t,n,i,r,o,e,a=document,s=md(),u=lh();if(df()&&(t=bf())&&F&&F.contentWindow)if(s&&s.length){F.contentWindow.postMessage({mutation:"preview/setGuideLoaded",payload:{guideLoaded:!0}},location.origin),n=_.find(s,function(e){return e.id===t.guideId}),i=0,r=n.steps.length,o=u||{},_.find(n.steps,function(e,t){return o.guideStepId===e.id&&("dismissed"===o.state||"active"===o.state?i=t:"advanced"===o.state&&o.destinationStepId?i=_.indexOf(n.steps,_.find(n.steps,function(e){return e.id===o.destinationStepId})):"advanced"===o.state&&t===r-1&&(i=r),!0)}),s="dismissed"===o.state,u=r-1<=i,s=s||u,u=u?r-1:i,e=n.steps[u],p=e.isShown(),F.contentWindow.postMessage({mutation:"preview/setHostname",payload:{hostname:Je}},location.origin),F.contentWindow.postMessage({mutation:"preview/setGuidePages",payload:{guidePages:n.previewPages}},location.origin),F.contentWindow.postMessage({mutation:"preview/setGuideProgress",payload:{guideName:n.name,guideAttributes:JSON.stringify(n.attributes),guideLaunchMethod:n.launchMethod,guideActivationSelector:kd(n),isAdoptGuide:n.isTraining,isResourceCenter:t.isResourceCenter,stepId:e&&e.id,currentStepIndex:u,stepCount:r,elementPathRule:e.elementPathRule,elementContainsRulesList:e.elementContainsRulesList,triggerElementPathRule:e.triggerElementPathRule,isShown:p,pageId:e.pageId,completed:s,languageOptions:_.get(t,"languageOptions",[]),currentLanguage:t.language}},location.origin);var d=e,c=u,l=F;if(d&&l&&l.contentWindow){const h=d.getGuide().id;var p=_.filter(f.state.frames.frames,e=>"hidden"!==e.visibility&&e.guides&&e.guides[h]);if(p.length)p=_.map(p,e=>D.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:e.id,stepId:d.id,guideId:h,currentStepIndex:c})),m.all(p).then(t=>{let n={},i=-1;for(let e=0;e<t.length;e++){var r=JSON.parse(t[e]).errors;if(!r.GUIDE){var o=_.keys(r).length;if(!o){n={};break}-1===i?(n=r,i=o):d.regexUrlRule?!r.PAGE&&o<=i&&(n=r,i=o):o<i&&(n=r,i=o)}}l.contentWindow.postMessage({mutation:"preview/setErrors",payload:{errors:n}},location.origin)})["catch"](_.noop)}}else gf(0,{status:404,data:"Guide not found"})}return!0}function af(e){if(f.getters["frames/leaderExists"]()){if(!f.getters["frames/isFollower"]()){if(F)return!0;var t,n;_.isFunction(e.addEventListener)&&e.addEventListener("message",uf),(t=document.createElement("iframe")).id=ef,Ko(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(b.get("inlineStyleNonce")){const n=t.contentDocument.createElement.bind(t.contentDocument);t.contentDocument.createElement=(e,...t)=>{t=n(e,...t);return"style"===e&&(e=b.get("inlineStyleNonce"))&&t.setAttribute("nonce",e),t}}var e=document.createElement("script");e.src=b.get("previewModeAssetPath")||ho("pendo.preview.min.js"),t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},F=t,na().appendChild(F)}}else v.one("leaderChanged",_.partial(af,e))}function sf(e,t,n){Gg(),f.commit("healthCheck/resetStepStatus",null,{root:!0}),lc.reset(),yv();var i=e[0],i=(i&&_.each(i.steps,function(e){e.seenState=null}),h.clear(uh),f.dispatch("preview/update",null),bf());return i&&(i=_.findWhere(e,{id:i.guideId}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),f.dispatch("preview/restart",i)),ff(e,t)}function uf(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===ef+"::exit"?(mf({preventWindowClose:n}),f.dispatch("frames/stopPreview",{preventWindowClose:n})):t===ef+"::restart"?(n=sf(md(),lh(),e.data.language),f.dispatch("guideState/forceExpire"),f.dispatch("guideState/updateLastGuideStepSeen",n),f.dispatch("frames/restartPreview")):t===ef+"::resize"?(n=e.data.height,F&&F.style&&(F.style.height=n)):t===ef+"::request-preview-mode-type"&&(e=wf(),F)&&F.contentWindow&&e&&F.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:e.previewModeType||"NEW_TAB"}},location.origin))}function df(){return f.getters["preview/isInPreviewMode"]()}function cf(){return f.getters["preview/isInDesignerPreviewMode"]()}function lf(e){var t,n,i=bf();if(!i)return e;if(i.isResourceCenter)return r=e,t=i,n=P.findResourceCenterHomeView(r),r=_.filter(r,function(e){return e.id!==n.id}),hf(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"))}),pf(t),t.showsAfter=null,t.expiresAfter=null,hf(t,o.stepId),r}}function pf(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function hf(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 ff(e,t){null==t&&(t={});var n=bf();if(!n)return t;e=_.findWhere(e,{id:n.guideId});if(!e)return t;if(n.state)return n.state;pf(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:n.guideId,guideStepId:n.stepId,state:"active"}:{}}function gf(e,t){F&&F.contentWindow&&F.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:t}},location.origin)}function mf(e){var t=wf(),n=!1,i=(t&&(n="SAME_TAB"===t.previewModeType),Qh.getItem("pendo-navigation-state"));if(f.dispatch("preview/exit"),Gg({stayHidden:!0}),h.clear(uh),ls.unlock(),k(F).remove(),Lm=Bd,Uh(of),jt(!0),n&&i){Qh.setItem(tf,JSON.stringify(_.extend(t,{isExitBackToDesigner:!0})));try{var r=JSON.parse(i),o={target:r.baseUrl,gcsBucket:r.gcsBucket,preloader:!0,DADesigner:r.isDADesigner,host:r.host,forceNativeDesigner:"web"===t.guide.appPlatform};f.dispatch("preview/launchInAppDesigner",o)}catch(a){f.dispatch("preview/exitDesignerPreview")}}else e&&!e.preventWindowClose&&window.close(),yv()}function vf(e,t){e=_.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function yf(){return f}var bf=_.partial(vf,yf,"state.preview.preview"),wf=_.partial(vf,yf,"state.preview.designerPreview");function Sf(e){var t;if(e.subscriptionId&&e.guideId)return t=e.isResourceCenter?"/resourcecenter/":"/guide/","/api/s/"+It(e.subscriptionId)+t+It(e.guideId)+"/preview"}var Ef=function(e){var t;return Aa(e.origin)?(t=Sf(e))?(t={url:e.origin+t+"?url="+It(A.externalizeURL())+"&apiKey="+E.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),Lr(t).then(function(e){return e.data.guide})):(C.info("Invalid guide url, exiting preview"),m.reject("invalid guide url")):(C.info("Invalid origin, exiting preview"),m.reject("invalid origin"))},If={load(e,t,n){return Cf(e,n)},post(e,t,n,i){return Cf(e,i)},endpoint(){return""},usesXhr(){return!0}};function _f(n,t){if(!Aa(n.origin))return C.info("Invalid origin, exiting preview"),m.reject("invalid origin");var e=Sf(n);if(!e)return C.info("Invalid guide url, exiting preview"),m.reject("invalid guide url");if(!f.getters["frames/leaderExists"]()||n.apiKey!==E.apiKey)return E.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),m.resolve();let i=""+n.origin+e+`?url=${It(A.externalizeURL())}&apiKey=`+E.apiKey;n.childGuides&&n.childGuides.length&&(i+="&childGuides="+n.childGuides.toString()),cf()&&(i+="&ignoreGuide=true");var e={url:i,withCredentials:!0},r=(n.headers&&(e.headers=n.headers),[]);return Lr(e).then(function(e){var t,c,e=e.data;return cf()?(t=wf(),r=t?cf()?(_.each(t.guide.steps,function(t){let e=["domJsonpUrl","domUrl"];t.domUrl&&0===t.domUrl.indexOf("data:")&&(e=["domJson","contentJs","contentCss","content"]),_.each(e,function(e){delete t[e]})}),t.guide.showsAfter=null,t.guide.expiresAfter=null,[t.guide]):void 0:[],e.guide=r[0]):r=n.isResourceCenter?e.guide:(e.guide.previewPages=e.pages,[e.guide]),e.children&&(r=r.concat(e.children)),n.language&&n.language!==_.get(r,"[0].authoredLanguage")&&(t=r,c=n.language.value,_.forEach(t,function(d){_.forEach(d.steps,function(e){var{domHash:t,domJsonpHash:n,translationHash:i,originalDomJsonHash:r,originalDomJsonpHash:o,originalBuildingBlockHash:a,domHash256:s,domJsonpHash256:u}=_.get(d,"translationStates."+c+".stepTranslations."+e.id,{});e.domUrl=xf(r,e.domUrl,".dom.json",s),e.domJsonpUrl=xf(o,e.domJsonpUrl,".dom.jsonp",u),e.buildingBlocksUrl=xf(a,e.buildingBlocksUrl,".buildingBlocks.json"),t&&n&&i&&(e.domUrl=e.domUrl.replace(".dom.json","-"+t+"-"+c+".dom.json"),e.domJsonpUrl=e.domJsonpUrl.replace(".dom.jsonp","-"+n+"-"+c+".dom.jsonp"),e.buildingBlocksUrl=e.buildingBlocksUrl.replace(".buildingBlocks.json","-"+i+"-"+c+".buildingBlocks.json"))})})),n.watermarkConfig&&(e.guide.isTraining=!0),E.guideWidget={enabled:!1,data:{guideCssUrl:e.guideCssUrl}},E.guideCssUrl=e.guideCssUrl,E.normalizedUrl=e.normalizedUrl,E.throttling=undefined,e.guide}).then(function(e){var t;return n.watermarkConfig?(t=JSON.parse(JSON.stringify(n)),t=Object.assign(t,n.watermarkConfig),Ef(t)):e}).then(function(e){e&&e.attributes&&e.attributes.isWatermark&&r.push(e),E.guidesPayload({id:t,lastGuideStepSeen:ff(r,E.lastGuideStepSeen),guides:lf(r)})})["catch"](function(e){return gf(document,e),m.reject(e)})}function Cf(e,t){var n=bf();return!n||!Sf(n)||!(e=/[?&]id=(\d+)/.exec(e))||e.length<1?m.reject():_f(n,e[1]).then(t)}function xf(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 Tf=function(){let n=null,i=[];const r=e=>{E.apiKey=e+="",n=e};return{getApiKey(){return E.apiKey},discoverKeys({apiKey:e,additionalApiKeys:t=[]}){n=null,i=[],e=e,(e=b.get("apiKey",e))&&r(e),n,e=t,e=b.get("additionalApiKeys",e),i=_.reduce(e,(e,t)=>(t&&e.push(t+""),e),[]),i=[].concat(e),E.additionalApiKeys=i,!n&&i&&i.length&&r(i[0])},getAdditionalApiKeys(){return E.additionalApiKeys},tamperedWith(){return E.apiKey!==n||E.additionalApiKeys!==i}}}(),kf=h.getLocal();Af=Ze||Je,Rf="in-app-designer",Of="latest",v.leaderChanged.on(function(){Mf({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||cf()})});var Af,Rf,Of,Nf={launchDesigner:function(e){var t,n="latest",i="designer";yc(b,"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%;}"),jf("designer-shims",Af+"/"+i+"/"+n+"/plugin.js"),E.DESIGNER_VERSION?Bf(n,i):t=window.setInterval(function(){E.DESIGNER_VERSION&&(Bf(n,i),clearInterval(t))},100)},launchInAppDesigner:Gf,localStorageNavigation:Mf,launchOnToken:function(e){if(!Hf(window.name)){var t=/pendo-designer=([A-Za-z0-9-]+)/;if(t.test(e)){var n,e=t.exec(e);if(e)return t=function(e){try{return JSON.parse(atob(Et(e)))||{}}catch(t){return{}}}(e[1]),e=Pf(t),n=Uf(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),Gf({target:n,host:e,preloader:!1,sidebarDesigner:!!t.sidebarDesigner}),!0}}},sendMessageToLocalStorage:function(e){var t=document.getElementById("pendo-designer-communication-iframe");t&&t.contentWindow.postMessage(e.data,Nf.hostConfig.host)},isValidDesignerHost:Lf,isValidTarget:Df,addCommunicationIframe:function(e,t){e=e||{};_.isFunction(t)||(t=_.noop);var n=Uf(e),e=Ff(e),i=(new Date).getTime(),r=(Nf.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=zf(r,Af+"/"+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:Af},isDesignerFrame:Hf,addScriptToPage:jf};function Mf(e){if(!e.ignoreLocalStorageNavigation){var t,e=kf.getItem("pendo-navigation-state");if(e&&f.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(n){return}if(!t.apiKey||t.apiKey===Tf.getApiKey())if(t.apiKey||!t.agentInstallType||t.agentInstallType===we())return e=t.isDADesigner?"da-designer":"in-app-designer",e={target:t.baseUrl,preloader:!0,host:t.host,gcsBucket:t.gcsBucket||e,DADesigner:t.isDADesigner,forceNativeDesigner:!!t.forceNativeDesigner,sidebarDesigner:!!t.sidebarDesigner},Nf.launchInAppDesigner(e),!0}}}function Lf(e){return!!e&&Aa(e)}function Pf(e){var e=(e=e||{}).host||Af,t=Lf(e),n=t?e:Je;return e&&!t&&C.info("Invalid host, falling back to "+Je),n}function Ff(e){var e=(e=e||{}).gcsBucket||Rf,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:Rf;return t||C.info("Invalid bucket, falling back to "+Rf),e}function Df(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 Uf(e){e=e||{};var t=b.get("enableCrossOriginIsolation")?"strict":Of,e=e.target||e.baseFolder||t,t=Df(e),e=t?e:Of;return t||C.info("Invalid target, falling back to "+Of),e}function Gf(e){if(!Hf(window.name)&&!E.designerLaunched)if(b.get("disableDesigner"))C.info("Unable to launch the Visual Design Studio, set to disabled in configuration.");else{var t,n,i,r,o,a=!1;try{a=!!window.top.pendo}catch(s){}Nf.crossFrameChannel===undefined&&(Nf.crossFrameChannel=D,Nf.useCrossFrameChannel=!0),Ya()&&a&&!e.allowChildFrame&&!e.selectionOnly?C.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):E.isReady()?(E.designerLaunchTime=(new Date).getTime(),a=Pf(e=e||{}),r=Ff(e),o=Uf(e),i=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+r+"/"+o+"/"+i,b.get("useAssetHostForDesigner")&&(n=ho(i)),Nf.hostConfig={gcsBucket:r,baseFolder:o,uniqueWindowId:e.uniqueWindowId,host:a,adoptv2:e.adoptv2,DADesigner:e.DADesigner,agentInstallType:we(),forceNativeDesigner:!!e.forceNativeDesigner,sidebarDesigner:!!e.sidebarDesigner,apiKey:Tf.getApiKey()},i={},e.selectionOnly&&(i["selection-only"]=!0),b.get("pendoGlobalKey")&&(i["data-pendo-global-key"]=b.get("pendoGlobalKey")),r=b.get("designerAgentPluginsLoader"),o=window.__pendoExtensions&&e.forceNativeDesigner,a=!window.__pendoExtensions&&!_.isFunction(r),(o||a)&&(Nf.addScriptToPage(t,n,i),E.designerLaunched=!0),!e.forceNativeDesigner&&_.isFunction(r)&&(r(t,n,i),E.designerLaunched=!0)):C.error("Unable to launch the designer, the agent has not been initialized. Please use `pendo.initialize` prior to launching the designer")}}function Bf(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+="__"+Nf.windowCommunicationId,(t=zf("pendo-designer-iframe",Af+"/"+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 zf(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&$o(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 jf(e,t,n){var i;document.getElementById(e)||((i=document.createElement("script")).setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=K(E).createScriptURL(t),n&&_.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function Hf(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(n){return!1}}qf={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"},Wf={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},(Vf={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370}).FOOTER_HEIGHT=1.25*Vf.HEADER_HEIGHT,Vf.BODY_HEIGHT="calc(100% - "+Vf.HEADER_HEIGHT+"px - "+Vf.FOOTER_HEIGHT+"px)",Jf='<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>',($f={})["#"+qf.closeButton+":hover"]={"background-color":Wf.GRAY_LIGHTER_6},$f["#"+qf.launchButton+":hover"]={"background-color":Wf.TEAL_DARKER+" !important"},Kf={PRIMARY_FONT:"Helvetica Neue"};var qf,Wf,Vf,Jf,$f,Kf,Zf={listen:function(){return _.isFunction(document.addEventListener)?(document.addEventListener("keyup",Xf,!1),()=>{document.removeEventListener("keyup",Xf,!1)}):()=>{}},launchOnLocalStorageToken:rg,ids:qf,removeElement:tg,attemptToLaunch:eg,loadPluginJs:function(){var t;E.designerLaunched||(t=_.once(function(e){rg(e,!0)}),es(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}};function Xf(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&eg(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&eg(!1,!0)}function Yf(e,t){var n,i,r,o={"background-color":Wf.WHITE,height:Vf.MODAL_HEIGHT+"px","min-height":Vf.MODAL_HEIGHT+"px",width:Vf.MODAL_WIDTH+"px",position:"fixed",top:Vf.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-Vf.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=Qf("div",qf.container,o);yc(b,qf.style,_.reduce(_.pairs($f),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=Qf("div",qf.header,{"background-color":Wf.GRAY_PRIMARY,height:Vf.HEADER_HEIGHT+"px","min-height":Vf.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(i=Qf("div",qf.logoContainer,{height:"38px",width:"44px","background-color":Wf.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=K(E).createHTML(Jf),r.appendChild(i),(i=Qf("div",qf.title,{width:"100%",display:"flex","align-items":"center","font-family":Kf.PRIMARY_FONT,"font-size":"18px",color:Wf.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=t?"VIA Designer":"Pendo Designer",r.appendChild(i),r)),o.appendChild(((t=Qf("div",qf.body,{height:Vf.BODY_HEIGHT,"min-height":Vf.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":Kf.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=Qf("div",qf.footer,{"align-items":"center","border-top":"1px solid"+Wf.GRAY_LIGHTER_6,display:"flex",height:Vf.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":Vf.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(r=Qf("button",qf.closeButton,{"border-radius":"3px",border:"none",height:Vf.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":Kf.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(){tg(qf.container),tg(qf.commIframeId)},(t=Qf("button",qf.launchButton,{"background-color":Wf.TEAL_PRIMARY,"border-radius":"3px",color:Wf.WHITE,border:"none",height:Vf.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":Kf.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(){rg(n)},i.appendChild(r),i.appendChild(t),i)),document.body.appendChild(o)}function Qf(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),_.extend(e.style,n),e}function eg(t,n){var i,r,o;E.designerLaunched||(o=_.once(function(e){t||!n?rg(e):Yf(e,t),ng()}),es(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(qf.commIframeId)&&ig()},100))):ng())}),Nf.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){ig(),i=window.setInterval(ig,50)}))}function tg(e){document.getElementById(e)&&document.getElementById(e).remove()}function ng(){var e=document.querySelector("#"+qf.commIframeId+'[src*="pendo"]');e&&e.remove()}function ig(){var e=document.getElementById(qf.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",Je))}function rg(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),tg(qf.container),Nf.launchInAppDesigner(n)}var og=_.wrap(_.wrap(_.once(_.wrap(function(e){var t=m.defer();return La(e,function(){t.resolve()}),t.promise},function(e,t){return 0<_.size(Gd._handlers.validateGlobalScript)?Lr.get(t).then(function(e){return Gd.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)})),function(e,t){return t?e(t):m.resolve()}),function(e,t){return b.get("preventCodeInjection")?m.resolve():e(t)}),ag={initializeWatermark:function(e){e=_.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),ag.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(ag.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return _.find(ag.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 sg=1e4;function ug(n,i){var r=!1;const o=[];return n.addEventListener("message",function(e){u(e.data),i.state.guideUpdate.useObserver&&i.dispatch("guideUpdate/documentChanged")}),{postMessage:a,postMessageAsPromise:s,postMessageOrTimeout:function(e,t=sg){const n=m.defer(),i=pt(32),r=(e=_.extend(e,{promiseId:i}),Ut(()=>{o[i]&&(n.reject(JSON.stringify({message:"request timed out"})),delete o[i])},t));return s(e).then(e=>{clearTimeout(r),n.resolve(e)}),n.promise},close:function(){r=!0,_.isFunction(n.close)&&n.close()}};function a(e){var t;r||(t=_.extend({apiKey:E.apiKey,allowMixedApiKeyFrames:b.get("allowMixedApiKeyFrames"),agentInstallType:we()},e),n.postMessage(t),Ut(function(){u(t)},0))}function s(e){e.promiseId||(t=pt(32),e=_.extend(e,{promiseId:t}));var t=m.defer();return o[e.promiseId]=t,a(_.extend(e,{sourceFrame:i.state.frames.frameId})),t.promise}function u(e){try{var t;r||e.apiKey!==E.apiKey&&(!1===e.allowMixedApiKeyFrames||!1===b.get("allowMixedApiKeyFrames"))||e.targetFrame&&e.targetFrame!==i.state.frames.frameId||(e.resolveId?(t=o[e.resolveId])&&(delete o[e.resolveId],t.resolve(JSON.stringify(e))):/^frames\/|^debugger\//.test(e.action)&&i.dispatch(e.action,e))}catch(n){C.critical("ERROR in cross frame channel",{error:n})}}}var dg="frames/removeFrame";function cg(e,t,n){return new lg(e,t,n,(e=t,t=n,new(_.isFunction(e.MessageChannel)?pg:hg)(e,t)))}function lg(e,t,n,i){this.init(e,t,n,i)}_.extend(lg.prototype,{init(e,t,n,i){this._store=e,this._window=t,this._singletonMessageHandler=n,this._listeners=[],this._targetOrigin=n.targetOrigin(),this._impl=i,this._impl.onconnect=_.bind(this._frameConnectHandler,this),this._impl.onmessage=_.bind(this._fireMessageListeners,this),this._impl.onrelay=_.bind(this._topMessageHandler,this),this._connectToTop(10,0,function(){this._addControlMessageHandler(),this._connectToTop(250,21,function(){this.close(),this._store.commit("frames/setConnectFailed")})})},_fireMessageListeners(t){_.each(this._listeners,function(e){e(t)})},_controlMessageHandler(e){e=this._impl._parseMessage(e);e.data&&("pendo::connect"===e.data.action&&this._impl.frameConnect(e),e.data.action===dg)&&this._topMessageHandler(e)},_topMessageHandler(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===dg&&this._impl.frameDisconnect(e),this._impl.broadcast(e))},_connectToTop(e,t,n){this._impl.connectToTop({action:"pendo::connect",frameId:this._store.state.frames.frameId},this._targetOrigin),Ut(_.bind(function(){this._connected||(0===t?_.isFunction(n)&&n.call(this):0<t&&this._connectToTop(Math.min(2*e,1e4),t-1,n))},this),e)},_addControlMessageHandler(){this._singletonMessageHandler.addEventListener(_.bind(this._controlMessageHandler,this))},_frameConnectHandler(e){e.data&&"pendo::connectSuccess"===e.data.action&&(this._connected=!0,this._impl.connectSuccess(e),this._store.dispatch("frames/join"))},addEventListener(e,t){"message"===e&&this._listeners.push(t)},postMessage(e){this._closed||this._impl.postMessage(e)},close(){this._closed=!0,this._listeners.length=0,this._impl.close()}});Li={_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 pg(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function hg(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(pg.prototype,Li,{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:f.state.frames.frames[f.state.frames.frameId],"pendo-preview":f.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===dg&&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(hg.prototype,Li,{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)}});fg=window,gg=Aa,vg=!(mg=[]);var fg,gg,mg,vg,yg={targetOrigin(){return vg?location.origin:"*"},secure(e){vg=e},addEventListener(e){0===mg.length&&fg.addEventListener("message",bg),mg.push(e)},removeEventListener(e){e=mg.indexOf(e);0<=e&&mg.splice(e,1),0===mg.length&&fg.removeEventListener("message",bg)},close(){fg.removeEventListener("message",bg),mg.length=0}};function bg(t){vg&&!gg(t.origin)||_.each(mg,function(e){_.isFunction(e)&&e(t)})}function wg(e){if(!ze.addEventListener)return{addEventListener:_.noop,postMessage:_.noop,close:_.noop};var t=!!window.__pendoExtensions;if(b.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"),gn);if(t&&_.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),cg(e,window,yg)}const Sg="guides_blocked",Eg="Guides disabled: unreachable endpoint guide.gif";function Ig(e){return JSON.parse(JSON.stringify(e))}class _g{constructor(e,t){this.apiKey=e,this.cacheGuides=t.get("cacheGuides"),this.cacheGuidesTimeout=t.get("cacheGuidesTimeout"),this.cacheGuidesPersistent=t.get("cacheGuidesPersistent"),this.cache=null,this.db=null}openDB(e,t=window.indexedDB){if(!this.cacheGuidesPersistent)return m.resolve();if(this.db)return m.resolve(this.db);const n=m.defer();e=t.open("pendo-"+e,1);return e.onerror=()=>{C.warn("Error opening guide database"),this.cacheGuidesPersistent=!1,n.resolve()},e.onsuccess=e=>{e=e.target.result;this.db=e,n.resolve(e)},e.onupgradeneeded=e=>{const t=e.target.result;t.createObjectStore("guides",{keyPath:"guide.id"}).transaction.oncomplete=()=>{this.db=t,n.resolve(t)}},n.promise}load(t=S()){if(this.cache)return m.resolve(this.cache);if(this.cache={},!this.db)return m.resolve(this.cache);const n=m.defer(),i=this.db.transaction(["guides"],"readwrite").objectStore("guides");var e=i.getAll();return e.onerror=()=>{C.warn("Error loading guide cache"),this.cacheGuidesPersistent=!1,this.db=null,n.resolve(this.cache)},e.onsuccess=e=>{e=e.target.result;_.each(e,e=>{e.expires>t?this.cache[e.guide.id]=e:i["delete"](e.guide.id)}),n.resolve(this.cache)},n.promise}add(e,t,n=S()){if(this.cacheGuides&&this.cache)return n={expires:n+this.cacheGuidesTimeout,visitorId:t,guide:Ig(e)},this.cache[e.id]=n,this.save(n)}save(e){if(this.db){var t=this.db.transaction(["guides"],"readwrite").objectStore("guides");const n=m.defer();t=t.put(e);return t.onerror=()=>{C.warn("Error saving guide to cache "+e.guide.id),n.resolve()},t.onsuccess=()=>{n.resolve()},n.promise}}update(t){if(this.cache){var e=this.cache[t.guideId];if(e){var n=_.find(e.guide.steps,e=>e.id===t.guideStepId);if(n)return n.seenState=t.state,n.seenReason=t.seenReason,n.lastSeenAt=t.time,null!=t.dismissCount&&(n.dismissCount=t.dismissCount),null!=t.snoozeEndTime&&(n.snoozeEndTime=t.snoozeEndTime),this.save(e)}}}list(n,i=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 Ig(this.cache[e].guide)}clear(){this.cache={},this.db&&this.db.transaction(["guides"],"readwrite").objectStore("guides").clear()}}const Cg=h.getLocal();var xg=[],Tg="Guide was not shown because this visitor is in a control group of an active experiment for the guide";const kg=[];function Ag(){var e=b.get("guideCssAssetPath");return e||ho("guide.css")}var Rg="_pendo-guide_",Og="_pendo_g_",Ng=0;function Mg(e){Ng=e}var Lg=function(){return _.any(O,function(e){return e.isShown()})},Pg=function(e,t){var n=k("._pendo-close-guide_",e);return n.length||(n=k(document.createElement("button")).attr("id","_pendo-close-guide_").attr("aria-label","close").addClass("_pendo-close-guide_").text("\xd7"),je()?9<Ce&&n.css({top:3}):8===Ce?n.css({top:9,right:2}):9===Ce?n.css({right:2,top:3}):9<Ce&&n.css({top:3}),e=k("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},Fg=function(n){return _.reduce(O,function(e,t){return n(t)&&e.push(t),e},[])},Dg=function(e,t,n,i,r,o){e=gd(N(e),t);e&&(e.seenState=n,e.lastSeenAt=i,e.destinationStepId=o,r!==undefined)&&(e.dismissCount=r)},Ug=function(e){for(var t=new RegExp("^"+Og);e;){if(_.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function Gg(t){_.each(O,function(e){_.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var Bg=function(e){return e&&e.guideId};var zg=function(e,t){var n,i;return Bg(e)&&(t=e,e=null),(n=t)&&_.isFunction(n.render)?t:t?(n=N(t.guideId))&&n.findStepById(t.id):(n=_.find(O,function(e){return e.isShown()}))?((i=e?Ug(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||No("findStepForGuideEvent: step with id "+i):(t=_.find(n.steps,function(e){return e.isShown()}))||No("findStepForGuideEvent: no step shown"),t):void 0},jg=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=xd(e);"tooltip"===e.type&&_.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Qu(n,t,Yg,!0)};function Hg(e){return e.isLocked()&&(!e.elements||!e.elements.length||void Mo('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}var qg=function(e){var e=k("#_pendo-badge_"+e.id),t=e.find("input"),t=0<t.length?t:e;t.length<1||t[0].focus()},Wg=function(e){e=_.get(e,"attributes.activation.selector",""),e=Cr(e);e.length<1||e[0].focus()},Vg=function(){var e=P.getResourceCenterBadge();e?e.element().focus():(e=P.getResourceCenter(),Wg(e))},Jg=function(e){if(!E.designer&&e&&"building-block"===_.get(e,"attributes.type","")){var t=e.steps[0],n=t.seenReason,i=_.get(e,"launchMethod","").split("-"),r=_.contains(i,"dom"),o=_.contains(i,"badge"),i=cm(e);if(_.get(t,"attributes.isAutoFocus")||i)switch(n){case"badge":o&&qg(t);break;case"dom":r&&Wg(e);break;case"launcher":Vg();break;default:return}}};function $g(e,t){return!e.isMultiApp&&("auto"===t||"repeatGuide"===t)}var Kg=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=zg(e,t))&&t.id?Hg(t)||("dismissed"===t.seenState?C.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(C.info("onGuideDismissed called",{contexts:["guides"]}),v.beforeDismiss.trigger(t).cancel?C.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(jg(t),e=t.id,n=N(s=t.guideId),i=(i=_.first(n&&n.steps))&&i.seenReason,o=n&&n.language,r=_.get(t,"dismissCount",0)+1,gm(s,e,y(),i,o),o=S(),Dg(s,e,"dismissed",o,r),(a=_.isFunction(t.getGuide)&&t.getGuide())&&a.attributes&&a.attributes.doNotResume||dh({guideId:s,guideStepId:e,time:o,state:"dismissed",seenReason:i,visitorId:y(),dismissCount:r}),$g(n,i)&&ym(o,vm.DISMISSED),t.hide(),Jg(a),Lg()||(Ch(),xh())))):Ch()},Zg=function(e,t,n){var i,r,o,a,s,u,d,c;C.info("onGuideSnoozed called",{contexts:["guides"]}),(t=zg(e,t))?"snoozed"===t.seenState?C.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):v.beforeSnooze.trigger(t).cancel?C.info("Guide snooze canceled during runtime in step: "+t.id):(n||(n=864e5,C.info("no snooze duration provided, defaulting to 1 day")),Hg(t)||(jg(t),e=t.id,i=t.guideId,r=y(),o=N(i),a=o&&o.language,s=_.first(o&&o.steps),s=s&&s.seenReason,u=S(),C.info("snoozing guide for "+n+" ms"),d=u+n,t.snoozeEndTime=d,c=wm({type:"guideSnoozed",guideId:c=i,stepId:e,visitorId:r,seen_reason:s,language:a,snooze_duration:n}),Im(c),v.guideSnoozed.trigger(c),Dg(i,e,"snoozed",u),o&&o.attributes&&o.attributes.doNotResume||dh({guideId:i,guideStepId:e,time:u,state:"snoozed",seenReason:s,visitorId:y(),snoozeEndTime:d}),$g(o,s)&&ym(u,vm.SNOOZED),t.hide(),Jg(o),Lg())||(Ch(),xh())):(C.info("missing step. can't snooze",{contexts:["guides","error"]}),Ch(),No("onGuideSnoozed: missing step"))},Xg=function(e){var t,n,i,r=(r=e&&e.step)||zg(e);r?(i=e&&e.params,i=_.find(i,function(e){return"goToStepId"===e.name}),t=i&&i.value,(t=e&&e.destinationStepId?e.destinationStepId:t)?t===r.id?C.info("[goToStep] step id matches the current step",{contexts:["guides","error"]}):(i=N(r.guideId),(n=_.find(i.steps,function(e){return e.id===t}))?(n=_.indexOf(i.steps,n),i=_.indexOf(i.steps,r),e.steps=Math.abs(n-i),e.action=e.action||"goToStep",e.destinationStepId=t,i<n?Yg(e,r,!1):Qg(e,r)):C.info("[goToStep] guide has no step matching the step id",{contexts:["guides","error"]})):C.info("[goToStep] missing step id to go to",{contexts:["guides","error"]})):C.info("[goToStep] missing current step",{contexts:["guides","error"]})},Yg=function(e,t,n){if((s=wv())&&_.each(s.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=xd(e);"tooltip"===e.type&&_.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Qu(n,t,Yg,!0)}),1===arguments.length&&Bg(e)&&(s=hd(e.guideId),i=zg(),s)&&i&&_.first(s.steps).id===i.id&&_.last(s.steps).id===e.id&&(C.info("Cannot skip to last step from first step"),e=null),C.info("onGuideAdvanced called",{contexts:["guides"]}),(t=zg(e,t))===e&&(e=null),t){if(!Hg(t))if("advanced"!==t.seenState||n)if(v.beforeAdvance.trigger(t).cancel)C.info("Guide advance canceled during runtime in step: "+t.id);else{var i=e&&e.action&&"goToStep"===e.action||!1,r=N(t.guideId),o=r&&r.language,a=r&&r.steps&&_.findIndex(r.steps,e=>t.id==e.id);if(e&&_.isNumber(e.steps)&&1<e.steps&&!i){var s=a+(e.steps-1),u=s=s>=r.steps.length?r.steps.length-1:s;!0===e.skip&&(u=a+1);for(var d=a;d<u;++d){t=r.steps[d],mm(r.id,t.id,y(),t.seenReason,o,d!==a);var c=S();dh({guideId:t.guideId,guideStepId:t.id,time:c,state:"advanced",seenReason:t.seenReason,visitorId:y()}),Dg(r.id,t.id,"advanced",c,undefined,h)}return Yg(r.steps[s],t,!0)}var l,i=t.id,s=t.guideId,p=_.first(r&&r.steps),p=p&&p.seenReason,h=e&&e.destinationStepId,f=(h||(f=e&&_.isNumber(e.steps)&&1<e.steps?e.steps:1,h=(f=_.isNumber(a)&&r&&r.steps&&r.steps[a+f])&&f.id||null),h||C.info("missing destination step id"),C.info("advancing guide"),mm(s,i,y(),p,o,n,h),C.info("update guide status"),r&&_.last(r.steps).id===i&&(l=_.get(t,"dismissCount",0)+1),(new Date).getTime()),g=(Dg(s,i,"advanced",f,l,h),_.isFunction(t.getGuide)&&t.getGuide());g&&g.attributes&&g.attributes.doNotResume||dh({guideId:s,guideStepId:i,time:f,state:"advanced",seenReason:p,visitorId:y(),destinationStepId:h,dismissCount:l}),$g(r,p)&&ym(f,vm.ADVANCED),C.info("stop guide"),Ch(),C.info("start guides"),xh()}else C.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else C.info("missing step. can't advance",{contexts:["guides","error"]}),Ch(),No("onGuideAdvanced: missing step")},Qg=function(e,t){var n,i,r,o,a,s;C.info("onGuidePrevious called",{contexts:["guides"]}),(t=zg(e,t))?"advanced"===t.seenState?C.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):v.beforePrevious.trigger(t).cancel?C.info("Guide previous canceled during runtime in step: "+t.id):(o=N(n=t.guideId),s=e&&e.action&&"goToStep"===e.action||!1,0!==(i=_.indexOf(o.steps,t))&&(r="element"==t.advanceMethod?"click":"mouseover",a=xd(t),"tooltip"===t.type&&_.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):Qu(a,r,Yg,!0),a=e&&_.isNumber(e.steps)?e.steps:1,r=_.first(o&&o.steps),a=0<=(i=i-a)?o.steps[i]:r,i=r&&r.seenReason,r=o&&o.language,o=a.id,(o=s&&e&&e.destinationStepId?e.destinationStepId:o)||C.info("missing destination step id"),C.info("advancing guide"),mm(n,t.id,y(),i,r,!1,o),C.info("update guide status"),a=(new Date).getTime(),Dg(t.guideId,t.id,"advanced",a,undefined,o),(s=_.isFunction(t.getGuide)&&t.getGuide())&&s.attributes&&s.attributes.doNotResume||dh({guideId:t.guideId,guideStepId:t.id,time:a,state:"advanced",seenReason:i,visitorId:y(),destinationStepId:o}),Ch(),xh())):(Ch(),No("onGuidePrevious: missing step"))},em=function(e){var t;k("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",po()+"/img/tiny-logo.png"),t=k(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:E.TOOLTIP_ARROW_SIZE}).append(t),od.push(t[0]),t.appendTo(e))};function tm(e){return e&&e.attributes&&e.attributes.stayHidden}const nm=(e,t,n)=>{var i;return jh()&&({id:e,guideId:i}=e,v.stepEligibility.trigger({stepId:e,guideId:i,eligible:t,reason:n})),t};var im=function(e){var t,n,i=_.partial(nm,e);return tm(e)?i(!1,"dismissed"):e.elementPathRule||"lightbox"!==e.type&&"whatsnew"!==e.type?e.triggerElementPathRule&&!ya(Cr(e.triggerElementPathRule)[0])?i(!1,"trigger_element"):(t=xd(e),(n=e.targetElement)&&e.elementContainsRulesList&&!om(n,e.elementContainsRulesList)?i(!1,"contains_rules"):(n="tooltip"===e.type||Xc.isBuildingBlockGuideRelativeToElement(e),e=ya(t),n?e?i(e,"target_element_tooltip"):i(ba(t),"target_element_tooltip_scroll"):i(e,"target_element"))):i(!0,"")};function rm(e){var t=(k(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function om(e,t){for(var n=rm(e),i=0;i<t.length;i++)if(!am(n,t[i]))return!1;return!0}function am(e,t){var n=t.matchType,i=t.matchValue,t=t.dataType,e=e||"";if("number"===t){var r=bt(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 sm=function(e){return Og+e.id},um=function(e){var t=e.element,n=_.first(k("#"+sm(e)));t&&n?ya(t)||k.hasClass(n,"mouseover")?Ut(function(){um(e)},Eh):e.hide&&(e.hide(),Lg())||(Ch(),xh()):t||!n||e.hide&&(e.hide(),Lg())||(Ch(),xh())},dm=function(){return!1},cm=_.partial(_.get,_,"attributes.resourceCenter"),lm=function(t){var e;Lg()&&(e=zg(),jg(e),cm(t)?(e=Fg(cm),(e=_.filter(e,function(e){return e.id!==t.id})).length&&f.dispatch("frames/hideGuides",_.pluck(e,"id"))):(Gg(),f.dispatch("frames/hideGuides")))},pm=function(e,t){return!(!e||!e.guideId||!(e=N(e.guideId)))&&(lm(e),e.launch(t),e.isShown())},hm=function(e,t,n,i,r,o){e=wm({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&_.extend(e.props,{step_poll_types:o}),Im(e),v.guideNotSeen.trigger(e)};var fm=function(e,t,n,i,r,o){i||(C.critical("pendo.io guideSeen exception",{guideId:e,stepId:t,error:new Error("seenGuide called without seen reason")}),a=N(e),s="auto",i=a&&(a=(a.launchMethod||s).split("-"),!_.contains(a,s))&&a.length?_.first(a):s);var a=wm({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),s=(_.extend(a.props,o),Im(a),S());dh({guideId:e,guideStepId:t,time:s,state:"active",seenReason:i,visitorId:y()}),Dg(e,t,"active",s),v.guideSeen.trigger(a)};function gm(e,t,n,i,r){e=wm({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});Im(e),v.guideDismissed.trigger(e)}function mm(e,t,n,i,r,o,a){e={type:"guideAdvanced",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r},a&&(e.destination_step_id=a),t=wm(e);Im(t,null,o),v.guideAdvanced.trigger(t)}var vm={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function ym(e,t){bm(e,t);var n={};n[t]=e,f.dispatch("frames/changeThrottlingState",n)}function bm(e,t){_.contains(_.values(vm),t)&&(_.isFunction(e.getTime)&&(e=e.getTime()),E[t]=e,h.write(t,e,sh),f.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function wm(e,t,n,i,r,o){var a=e,e=("object"!=typeof a&&(a={type:e,guideId:t,stepId:n,visitorId:i,language:o}),r&&(a.reason=r),_.isString(a.language)||delete a.language,_.extend({guide_id:a.guideId,guide_step_id:a.stepId},_.omit(a,"type","guideId","stepId","visitorId"))),t=gn.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:$n(),browser_time:(new Date).getTime(),url:A.externalizeURL(),props:e});return v.eventCaptured.trigger(t),t}var Sm=null,Em=function(e){window.clearTimeout(Sm),Sm=Ut(Xm,e)},Im=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-Ng,nv(),Km.push(e),Em(t)},_m=function(e,t){return"dismissed"===e.state?null:N(e.guideId).nextStep(e,t||nd())},Cm=function(e,t){e=fd(e);return!!e&&(!(t=pm(_.first(e.steps),t||"api"))&&e.control&&C.info(Tg),t)},xm=function(e,t){e=N(e);return!!e&&(!(t=pm(_.first(e.steps),t||"api"))&&e.control&&C.info(Tg),t)};function Tm(e,t){return t=parseInt(t,10),isNaN(t)||!_.isNumber(t)||!(_.isNumber(e)&&e<t)&&_.isNumber(e)?e:t}var km,Am=function(){Ch(),_h(),P.removeNotificationBubble(),Kh(),ms()};function Rm(){Ch(),Go(),E.segmentFlags=[],E.doNotProcess=!0,f.commit("debugger/doNotProcess",!0),C.info("not tracking visitor due to 451 response")}function Om(e){km&&(451===e.statusCode&&(Rm(),km.deferred.reject(e)),_.isString(e.id)&&e.id!==km.id||(_.extend(E,e),E.guides=_.map(E.guides,function(e){return 1==_.keys(e).length&&e.id?rv.get(e.id):(rv.add(e,y()),e)}),km.deferred&&km.deferred.resolve(),km=null))}function Nm(){return vv.pending||!(!km||!E.id||E.id===km.id)}var Mm=function(o,a){var e,s=fo(),u=_.uniqueId(),d=m.defer();return km={id:u,deferred:d},ep()||((e=tp())?(C.info("sending metadata: "+JSON.stringify(e),{contexts:["guides","metadata"]}),a.metadata=e):C.info("no metadata to send",{contexts:["guides","metadata"]})),rv.list(a.visitorId).then(e=>{0<e.length&&(a.cachedGuides=e);var e=at(a),t={id:u,jzb:e,v:Xe,ct:(new Date).getTime()},n=(s&&a.accountId&&"ACCOUNT-UNIQUE-ID"!==a.accountId&&(t.acc=dt(a.accountId)),jh()&&(t.debug=!0),Ro(Lm.endpoint(),o,t)),i=Is.get();let r;return r=2e3<n.length||!_.isEmpty(i)?(delete t.jzb,n=Ro("guide.json",o,t),t=_.extend({events:e},i),Lm.post(n,t,E,_.noop)):Lm.load(n,E,_.noop),m.all([r["catch"](function(e){return 451===e.status&&Rm(),m.reject(e)}),d.promise,(e=Lm,i=o,"1"===(t=h.read(Sg))?(C.info(Eg),m.resolve({success:!1,cached:!0})):"0"===t?m.resolve({success:!0,cached:!0}):(t=Ro("guide.gif",i,{jzb:"eJwFwIEIAAAAwDDQd3-N1QABFQC5",ct:S(),v:Xe}),(e.usesXhr()?Lr.get(t):Po(t)).then(function(){return{success:!0}},function(e){return e&&e.status?{success:!0}:{success:!1}})))]).then(function([,,e]){var t;if((t=e).cached||(t.success?h.write(Sg,"0",144e5):(C.info(Eg),h.write(Sg,"1",18e5))),!e.success)return m.reject()})})},Lm=Bd;function Pm(e){e=_.find(e.steps,e=>e.pageId&&!e.regexUrlRule);return!e||(C.critical("pendo.io guide validation exception",{guideId:e.guideId,stepId:e.id,error:new Error("missing regexUrlRule for page "+e.pageId+'"')}),!1)}function Fm(n){return _.every(kg,e=>{try{return e(n)}catch(t){return console.debug("Error in guide processor",e,n.id),!1}})}function Dm(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&_.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}var Um,Gm=function(){return!b.get("disableGlobalCSS")};function Bm(e,t){var n=b.get("dropAnonymous");if(Pn(e)&&n)C.info("loading guides blocked for anonymous visitors due to dropAnonymous config setting being set to true"),_.isFunction(t)&&t("error: guides are blocked");else if("1"===h.read(Sg))C.info("guide events are blocked, load guides cancelled"),_.isFunction(t)&&t("error: guides are blocked");else{if(ds(cs()))return 1;C.info("bad url: probably local file system",{contexts:["guides","error"]}),_.isFunction(t)&&t("error: invalid url")}}var zm=function(e,a,s,u){var d=m.defer(),c=!1;if(e=e||E.apiKey,Bm(a=a||y(),u)){C.info("loading guides for "+s+"...",{context:["guides"]}),s=A.externalizeURL(s);var n,t,l=zm.lastVisitorId!==a?_.noop:(i=O,(t=_.find(i,function(e){return _.isFunction(e.isRendered)&&e.isRendered()&&!e.isTopLevel}))?(n=_.chain(t.steps).filter(function(e){return e.isRendered()}).indexBy("id").value(),function(e){e=_.findWhere(e,{id:t.id});e&&!_.get(e,"attributes.doNotResume")&&_.each(e.steps,function(e){var t=n[e.id];!t||e.seenState&&"active"!==e.seenState||e.show(t.seenReason)})}):function(){}),i=(zm.lastVisitorId=a,_h(),f.commit("guideState/setLastGuideRequestAt",S()),{visitorId:a,accountId:$n(),url:s,oldVisitorId:Hn=Hn===undefined&&Fn()?Zn(On):Hn});const p=_.uniqueId();zm.reqId=p,Mm(e,i).then(function(){if(!c&&!E.designer)if(zm.reqId!==p)d.resolve();else{v.deliverablesLoaded.trigger(),C.info("successfully loaded guides for "+s,{contexts:["guides"]}),E.designerEnabled&&"true"!==Cg.getItem("pendo-designer-mode")&&Zf.loadPluginJs(),Am();var t=E.lastGuideStepSeen;if(t){f.dispatch("guideState/receiveLastGuideStepSeen",t),t.visitorId=a,f.dispatch("guideState/updateLastGuideStepSeen",t),f.commit("guideState/setLastGuideRequestAt",S()),sd={};t=E.guides;var t=_.chain(t).map(ac).filter(Pm).filter(Fm).sortBy(Dm).value(),n=(ld(t),md());f.dispatch("guideState/load",(r=uh,o=b.get("crossAppGuideStorageSuffix"),h.read(r,!1,o))),f.dispatch("guideState/apply"),E.latestDismissedAutoAt=Tm(E.latestDismissedAutoAt,h.read("latestDismissedAutoAt")),f.dispatch("guideState/updateThrottlingState",{name:"latestDismissedAutoAt",value:E.latestDismissedAutoAt}),E.finalAdvancedAutoAt=Tm(E.finalAdvancedAutoAt,h.read("finalAdvancedAutoAt")),f.dispatch("guideState/updateThrottlingState",{name:"finalAdvancedAutoAt",value:E.finalAdvancedAutoAt}),E.latestSnoozedAutoAt=Tm(E.latestSnoozedAutoAt,h.read("latestSnoozedAutoAt")),f.dispatch("guideState/updateThrottlingState",{name:"latestSnoozedAutoAt",value:E.latestSnoozedAutoAt}),f.dispatch("healthCheck/init",t),f.dispatch("frames/changeGuideList",n),E.eventProperties=cv(E.features);let e=m.resolve();E.globalJsUrl&&(e=og(uc(E.globalJsUrl))["catch"](function(e){C.error("Error loading global script: ",e)})),n.length?m.all([$m(),e,ev(t),ag.initializeWatermark(t),qm(5e3)].concat((i=t,_.map(jm,function(e){return e(i)})))).then(function(){zm.reqId===p&&(f.getters["frames/isLeader"]()&&l(O),v.guidesLoaded.trigger(),xh(),clearTimeout(Um)),_.isFunction(u)&&u(),d.resolve()},function(e){C.error("Post loadGuide request failed: ",e),v.guidesFailed.trigger(),d.reject()}):(v.guidesLoaded.trigger(),d.resolve())}else C.info("lastGuideStepSeen is not set, shutting down guides")}var i,r,o})["catch"](function(e){v.guidesFailed.trigger(),d.reject(e)});e=b.get("guideTimeout")||b.get("guides.timeout");_.isNumber(e)&&(clearTimeout(Um),Um=Ut(function(){var e;e=d,Am(),e.reject(),c=!0},e))}else d.reject();return d.promise};var jm=[];function Hm(e,t){var n,i=document.getElementById(e);return i&&i.href&&0<=i.href.indexOf(t)?m.resolve():(n=m.defer(),k(i).remove(),E.loadResource(t,function(){n.resolve()}).id=e,n.promise)}var qm=_.memoize(function(t,n,e){if(!Gm()||!Wm(O))return m.resolve();n=n||S,e=e||"_pendo-hidden_";var i=k(document.createElement("div")).addClass(e).css({position:"absolute",bottom:"0px",right:"0px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(k.getBody()),r=n(),o=m.defer();return function s(e){Ut(function(){a(i[0])?(i.remove(),o.resolve()):n()-r>t?(i.remove(),o.reject("Unable to find global css after delay")):s(100)},e)}(0),o.promise;function a(e){e=R(e);if(e)return"none"===e.display}});function Wm(e,t){return t&&t.designer||_.any(e,function(e){return!Sd(e)&&_.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl||e.domJson)})})}const Vm="_pendo-default-css_",Jm="_pendo-css_";function $m(){var e=[];if(!Gm())return m.resolve();Wm(O,E)&&e.push(Hm(Vm,Ag()));var t=((E.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(Hm(Jm,uc(t))):k("#"+Jm).remove(),m.all(e)}var Km,Zm,Xm=function(e){Km&&Km.flush(e)},Ym=function(){return xg};function Qm(e){var t=Fs(Qs,zs("visitor_id"),zs("props.guide_id"),zs("props.source"),Ys,eu(),iu(e),ru,ou,hu),n=Fs(Us,Gs(e.cache),_.noop);return new yu(_.extend({processSilos:t,packageSilos:n},e))}var ev=function(e){return P.initializeResourceCenter(e)},D={postMessage:_.noop,close:_.noop};let tv=D;function nv(e){return Km=Km||Qm(_.extend({cache:xg,apiKey(){return E.apiKey},beacon:"guide",allowPost:!0,preferFetch:ze.safari},e)),Zm=Zm||Qm(_.extend({cache:[],apiKey(){return E.apiKey},beacon:"poll",allowPost:!0,preferFetch:ze.safari},e)),hs(Km),hs(Zm),()=>{Km.clear(),Zm.clear(),fs(Km),fs(Zm)}}function iv(e){var e=e["blockedURI"];e&&-1!==e.indexOf("/data/guide.json")&&b.get("cacheGuides")&&((e=b.getLocalConfig()).cacheGuides=!1,b.setLocalConfig(e),Or(window,"securitypolicyviolation",iv),yv())}let rv;var ov=function(e){const t=[];t.push(nv({localStorageUnload:b.get("analytics.localStorageUnload")})),rv=new _g(E.apiKey,b),qh.run(),t.push(qh.stop),v.appUnloaded.on(function(){f.dispatch("frames/leave")}),v.metadata.on(function(e){e=e.data[0].storeChanged;e&&!ep()&&vv()}),v.identify.on(function(){vv()}),v.urlChanged.on(function(){vv(A.get())}),v.guideUpdateComplete.on(function(){var e,t,n;e=_.filter(O,e=>_.isFunction(e.outsideTimebox)&&e.outsideTimebox()),pd.addGuide(e),lc.processPrefetch(),e=O,t=ad,b.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)}))}),v.guidesLoaded.on(function(){P.fetchAnnouncementGuidesContent(O,f)}),v.guideListChanged.on(function(e){e=e.data[0].guideIds;if(e&&e.length){const n=_.indexBy(e);_.each(ad,function(e,t){n[t]||(e.hide(),delete ad[t])})}}),t.push(function(e,t,n){var{Turbolinks:i,Turbo:r}=window;let o;if(i&&(o=i.EVENTS&&i.EVENTS.LOAD),!(o=r&&r.visit?"turbo:load":o))return()=>{};const a=Rr(e,o,t),s=Rr(e,"turbo:before-cache",n);return()=>{a(),s()}}(document,function(){A.get()===mv.lastUrl&&yv()},function(){Am()}));var n=b.get("guides.tooltip.arrowSize");if(_.isNumber(n)&&(E.TOOLTIP_ARROW_SIZE=n),tv=wg(f),D=ug(tv,f),t.push(()=>D.close()),t.push(gn.tabIdChanged(function(){var e=gn.getTabId();f.commit("frames/setTabId",e),f.dispatch("frames/join")})),f.dispatch("frames/init"),f.dispatch("frames/join"),t.push(function(){const e=[];return f.dispatch("guideState/init"),e.push(Rr(window,"focus",ch)),e.push(Rr(window,"storage",function(e){f.dispatch("guideState/storageChanged",e)})),()=>_.each(e,function(e){e()})}()),t.push(()=>{hv.cancel(),Yh.cancel()}),t.push(Rr(window,"resize",hv)),t.push(Rr(window,"scroll",Yh,!0)),t.push(Rr(window,"gestureend",fv,!0)),t.push(Rr(window,"securitypolicyviolation",iv)),t.push(function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];const t=[];for(var n=0;n<e.length;n++)t.push(Rr(document,e[n],gv));return()=>{_.each(t,function(e){e()})}}()),e.observing){const i=_.debounce(function(){f.dispatch("guideUpdate/documentChanged")},50);t.push(()=>{i.cancel()}),t.push(l(window,"animationend",i)),t.push(l(window,"transitionend",i)),t.push(l(window,"mouseover",i)),f.commit("guideUpdate/setObserver",e),f.commit("guideUpdate/setUseObserver"),t.push(()=>f.dispatch("guideUpdate/stopObserver"))}return h.registry.addLocal(vm.ADVANCED),h.registry.addLocal(vm.DISMISSED),h.registry.addLocal(vm.SNOOZED),h.registry.addLocal(Sg,{duration:144e5}),fc.initialize(),()=>{rv=null,mv.reset(),Am(),vv.reset(),zm.reqId=null,_.each(t,function(e){e()}),k("#"+Vm).remove(),k("#"+Jm).remove(),fc.teardown()}},av=function(){return b.get("guides.disabled",!1)||b.get("disableGuides",!1)||!Ao},sv=function(){return b.get("guides.delay",!1)||b.get("delayGuides",!1)},uv=function(e){var t=b.getLocalConfig();t.disableGuides=e,b.setLocalConfig(t)},dv=function(e){var t=b.getLocalConfig();t.delayGuides=e,b.setLocalConfig(t)},cv=Qn(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}}),lv=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},pv=function(){C.debug("adjustActiveGuideOnResize firing");var e=wv();e&&e.step&&!E.ignoreResize&&e.step.redraw()};const hv=_.debounce(function(){var e;-1<_.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=lv())||e.id.indexOf("pendo-video-")<0)&&Ut(function(){pv()},150):pv(),Yh()},50),fv=function(e){1!==e.scale&&hv()};var gv=function(e){var t=_.get(document,"activeElement.id",""),e=_.get(e,"target.id","");_.filter([t,e],e=>-1<e.indexOf("pendo-video-")).length&&(lv()?E.ignoreResize=!0:Ut(function(){E.ignoreResize=!1},1e3))};function mv(e){var t,n,i,r,o=y(),a=$n();e=e||A.get(),n=o,i=a,r=kl,!(t=e)||!E.apiKey||av()&&"true"!==Cg.getItem("pendo-designer-mode")||t===mv.lastUrl&&n===mv.lastVisitorId&&i===mv.lastAccountId&&r===mv.lastMetadataHash||(mv.lastUrl=e,mv.lastVisitorId=o,mv.lastAccountId=a,mv.lastMetadataHash=kl,zm(E.apiKey,o,e)["catch"](_.noop))}mv.reset=function(){_.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){mv[e]=null})};var vv=function(e){Ao&&(vv.reset(),vv.pending=Ut(function(){delete vv.pending,mv(e)},0))};function yv(){mv.lastUrl=null,vv()}function bv(e){e=kg.indexOf(e);-1!==e&&kg.splice(e,1)}function wv(){var e,n,t=_.find(O,function(e){return e.isShown()});return!t||_.get(t,"attributes.resourceCenter.isModule")&&!(t=P.getResourceCenter())?null:(e=_.find(t.steps,function(e,t){return n=t,e.isShown()}),{guide:t,steps:_.filter(t.steps,function(e,t){return e.isShown()}),step:e,stepIndex:n})}function Sv(e,t,s,u){return new(s=s||rn)(function(n,i){function r(e){try{a(u.next(e))}catch(t){i(t)}}function o(e){try{a(u["throw"](e))}catch(t){i(t)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}a((u=u.apply(e,t||[])).next())})}vv.reset=function(){vv.pending&&clearTimeout(vv.pending)};const Ev="_pendoHeaders";function Iv(e){return f.getters["networkUrl/getTransformedUrl"]()(e)}class _v{entriesToObject(e){var t,n,i={};for([t,n]of e)i[t]=n;return i}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());else if("object"==typeof e)for(const n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}extractXHRHeaders(e){return e[Ev]||{}}generateRequestId(){return"req_"+Date.now()+"_"+E.randomString(8)}safelyReadBody(n,i){return Sv(this,void 0,void 0,function*(){try{var e=n.headers.get("content-type")||"";return-1!==e.indexOf("application/json")?yield n.json():-1!==e.indexOf("text/")?yield n.text():`[Binary content: ${e}]`}catch(t){return`[Unable to read ${i} body]`}})}extractConfigHeaders(e){let t={};return e.headers&&(e=Array.from(e.headers.entries()),t=this.entriesToObject(e)),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 Sv(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 v=this;v._originalFetch=window.fetch,window.fetch=function(...m){return Sv(this,void 0,void 0,function*(){let[e,t={}]=m,n=!1;_.isObject(m[0])&&(n=!0,e=m[0].url,t=m[0].clone());const i=Iv(e),r=t.method||"GET",o=v.generateRequestId();try{const c=v.extractRequestHeaders(t,n),l=yield v.safelyReadRequestBody(t,n);_.each(v.callbackFns,({request:e})=>{_.isFunction(e)&&e({requestId:o,method:r,url:i,body:l,headers:c})})}catch(u){_.each(v.callbackFns,({error:e})=>{_.isFunction(e)&&e({context:"fetchRequest",error:u})})}try{var a=yield v._originalFetch.apply(this,m),s=a.clone();try{const p=yield v.safelyReadBody(s,"response"),{status:h,statusText:f}=a,g=v.extractConfigHeaders(a);_.each(v.callbackFns,({response:e})=>{_.isFunction(e)&&e({requestId:o,status:h,statusText:f,body:p,headers:g,url:i,method:r})})}catch(u){_.each(v.callbackFns,({error:e})=>{_.isFunction(e)&&e({context:"fetchResponse",error:u})})}return a}catch(d){throw _.each(v.callbackFns,({response:e})=>{_.isFunction(e)&&e({requestId:o,status:0,statusText:"Network Error",headers:{},body:null,url:i,method:r,error:d.message})}),d}})}}patchXHR(){const d=this;d._originalSetRequestHeader=XMLHttpRequest.prototype.setRequestHeader,d._originalXHROpen=XMLHttpRequest.prototype.open,d._originalXHRSend=XMLHttpRequest.prototype.send,XMLHttpRequest.prototype.setRequestHeader=function(e,t){return this[Ev]=this[Ev]||{},this[Ev][e]=t,d._originalSetRequestHeader.apply(this,arguments)},XMLHttpRequest.prototype.open=function(e,t){t=Iv(t);return this._method=e,this._url=t,this._requestId=d.generateRequestId(),d._originalXHROpen.apply(this,arguments)},XMLHttpRequest.prototype.send=function(e){const a=this,t=d.extractXHRHeaders(this),n=d.safelySerializeBody(e);try{_.each(d.callbackFns,({request:e})=>{_.isFunction(e)&&e({requestId:this._requestId,method:this._method||"GET",url:this._url,body:n,headers:t})})}catch(u){_.each(d.callbackFns,({error:e})=>{_.isFunction(e)&&e({context:"xhrRequest",error:u})})}this.addEventListener&&this.addEventListener("loadend",function(){delete this[Ev]},{once:!0});const s=a.onreadystatechange;return a.onreadystatechange=function(){if(4===a.readyState)try{const t=d.parseXHRResponseHeaders(a.getAllResponseHeaders()),{status:n,statusText:i,responseText:r,_url:o}=a;_.each(d.callbackFns,({response:e})=>{_.isFunction(e)&&e({requestId:a._requestId,status:n,statusText:i,headers:t,body:r,url:o,method:a._method||"GET"})})}catch(u){_.each(d.callbackFns,({error:e})=>{_.isFunction(e)&&e({context:"xhrResponse",error:u})})}s&&s.apply(this,arguments)},d._originalXHRSend.apply(this,arguments)}}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))}}n=new _v;function Cv(e){var t,n=_.get(e,"value","");-1!==_.get(e,"parentElement.className","").indexOf("_pendo-nps-poll-"+n+"-wrapper")&&(e=k("._pendo-nps-open-text-poll-question"),t=k("._pendo-nps-open-text-poll-input")[0],_.forEach(e,function(e){"none"!==_.get(e,"style.display","none")&&t&&t.setAttribute("aria-labelledby",e.id)}))}var xv=function(){var o=this,a=(this.eventable=wn.call({}),this.eventable.on("pendoEvent",function(e){try{o.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";C.critical("Error in Action "+e,{error:t})}}),this.eventHandler=function(e){if(!e.ignore&&!E.designer){var t=e.step["guideElement"];switch(e.action){case a.advanceGuide:Yg(e,e.step);break;case a.previousStep:Qg(e,e.step);break;case a.goToStep:Xg(e);break;case a.submitPoll:this.submitPoll(e);break;case a.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;Zg(e,e.step,n);break;case a.dismissGuide:P.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return Kg();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return P.dismissResourceCenter(t);Kg(e,e.step)}(e);break;case a.showElements:this.setElementDisplay(e,"block"),e.srcElement&&Cv(e.srcElement),El((i=gc(e.step.domJson)).props.id,t),Il(i.props.id,t),M.flexAllThings(i.props.id,e.step),Sl(i.props.id,t);break;case a.hideElements:this.setElementDisplay(e,"none"),El((i=gc(e.step.domJson)).props.id,t),Il(i.props.id,t),M.flexAllThings(i.props.id,e.step),Sl(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});xm(e.params[0].value,n&&n.value);break;case a.launchGuide:this.launchGuide(e);break;case a.renderResourceCenterModule:var i=s(e);P.replaceResourceCenterContent(e.params[0].value,i);break;case a.returnToResourceCenterHome:n=P.findResourceCenterHomeView(dd());if(!n)return;P.attemptToPreserveIntegrationIframes(e),P.replaceResourceCenterContent(n.id,e.params);break;case a.openLink:this.openLink(e);break;case a.searchGuides:this.searchGuides(e);break;case a.submitPollAndGoToStep:this.submitPoll(e),Xg(e);break;case a.confirmation:this.confirmGuide(e);break;case a.conditionalSplit:this.handleConditionalSplit(e)}var r=xv.prototype.registeredActions,r=r&&r[e.action];"function"==typeof r&&r(e)}},this.submitPoll=function(e){var t=e&&e.action,i=e.step,n=[];e.srcElement&&e.srcElement.getAttribute("data-pendo-poll-type")&&"yesNo"===e.srcElement.getAttribute("data-pendo-poll-type")&&(r=e.srcElement.getAttribute("data-pendo-poll-id"),e=e.srcElement.value,n.push({pollId:r,value:parseInt(e,10)}));var r=k("[data-pendo-poll-id]",i.guideElement[0]);n=n.concat(_.map(r,function(e){var t,n=k("textarea,input:text,select,input:radio:checked",e);if(n&&n.length&&n[0].value)return t=e.getAttribute("data-pendo-poll-id"),e=_.find(i.guide.polls,function(e){return e.id===t}),n=n[0].value,e&&e.numericResponses&&(n=parseInt(n,10)),{pollId:t,value:n}})),i.response&&n?i.response(_.compact(n)):C.info("[Agent] Error! Trying to submit a poll response but step does not have response function!");t!==a.submitPollAndGoToStep&&i.advance()},this.setElementDisplay=function(e,t){var n=e.step,e=k(_.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);_.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=k(_.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=_.find(e.params,function(e){return"transition"===e.name}).value,e=_.find(e.params,function(e){return"left"===e.name}).value;t.style.transition=n,t.style.left=e},this.openLink=function(e){var t=_.find(e.params,function(e){return"url"===e.name}).value,e=_.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&Ya()&&(e="_top");window.open(t,e)},this.goToStep=Xg,this.searchGuides=function(t){var e="",n=t.srcElement.value,t=k("#pendo-resource-center-container"),i=t.find('[id^="pendo-list-item-"]'),r=t.find('[id^="pendo-results-count-container"]'),t=t.find('[id^="pendo-no-matches-container"]'),o=[],a=!0,s=0;if(i)for(var u in i){var d;u&&i[u]&&(d=!1,k(i[u]).text()&&(-1!==k(i[u]).text().toLowerCase().indexOf(n.toLowerCase())?(k(i[u]).css({display:"list-item"}),d=!(a=!1)):k(i[u]).css({display:"none"})),_.isFunction(i[u].getAttribute)&&(e=i[u].getAttribute("data-_pendo-text-list-item-1").split(","),_.forEach(e,function(e){_.contains(o,e)||o.push(e)})),this.searchAllTerms(o,e,n)&&i[u]&&(k(i[u]).css({display:"list-item"}),d=!(a=!1)),e="",d)&&s++}a?k(t[0]).css({display:"block"}):k(t[0]).css({display:"none"});if(r&&r.length&&(r[0].innerHTML="",n)){let e="";0===s?(e=t[0].innerText,this.debounceAnnounceResults(r[0],e)):(t=1===s?"data-pendo-aria-label-alert-singular":"data-pendo-aria-label-alert-plural",(e=r[0].getAttribute(t))&&(e=e.replace("{RESULT_COUNT}",s),this.debounceAnnounceResults(r[0],e)))}},this.searchAllTerms=function(t,e,n){return!!e&&e.some(function(e){return _.contains(t,e)&&e===n})},this.confirmGuide=function(e){var e=e.step,t=function(e){if(e.confirmationElementPathRule)return Cr(e.confirmationElementPathRule)[0]}(e);e.advance(),t?t.click():C.critical("pendo.io confirmationElement exception",{stepId:e.id,confirmationElementPathRule:e.confirmationElementPathRule,error:new Error("confirmation action called but confirmationElement was not found")})},this.getTransitionParams=s,this.launchGuide=function(e){var t=!_.get(e,"params.2.value.doNotDismiss");t&&Kg(e,e.step);var t=e&&e.params&&e.params[0]&&e.params[0].value,n=e&&e.params&&e.params[1]&&e.params[1].value;{var i,r;t&&n?(n=N(e.params[0].value),i=e.params[1].value,r=(r=_.find(n.steps,function(e){return e.id===i}))||n.steps[0],lm(n),r.show("api")):t&&xm(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),v.trigger("appUsage",{type:"conditionalSplitResult",elementId:t.srcElement.id,conditionResult:n}),e=_.find(r,function(e){return e.value===n}),0<(null==(i=null==e?void 0:e.actions)?void 0:i.length)?_.forEach(e.actions,function(e){e={action:e.action,params:e.parameters,step:t.step,srcElement:t.srcElement};o.eventHandler(e)}):C.warn("No matching case found for condition result:",n))},this.debounceAnnounceResults=_.debounce((e,t)=>{e.innerHTML=t},300),{advanceGuide:"advanceGuide",previousStep:"previousStep",goToStep:"goToStep",submitPoll:"submitPoll",guideSnoozed:"guideSnoozed",dismissGuide:"dismissGuide",showElements:"showElements",hideElements:"hideElements",slideElement:"slideElement",showGuide:"showGuide",launchGuide:"launchGuide",renderResourceCenterModule:"renderResourceCenterModule",returnToResourceCenterHome:"returnToResourceCenterHome",openLink:"openLink",searchGuides:"searchGuides",submitPollAndGoToStep:"submitPollAndGoToStep",confirmation:"confirmation",conditionalSplit:"conditionalSplit"});function s(e){return e.params.find(e=>"transitionDirection"===e.name)?[{name:"transitionCss",type:"string",value:"left 200ms"},{name:"transitionDirection",type:"string",value:"right"}]:[]}return this},Tv=(xv.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&((xv.prototype.registeredActions=xv.prototype.registeredActions?xv.prototype.registeredActions:{})[e]=t)},function(){var d="guideActivity",c=function(){return(new Date).getTime()-Ng},l=_.isObject,o=_.findWhere;const p=[];var h=[];return{type:d,handler(e){var t=e.data[0];if(t&&"conditionalSplitResult"===t.type){var n=t;const{conditionResult:a,elementId:s}=n,u=_.findIndex(h,e=>e.props.ui_element_id===s);-1!==u&&(n=h.splice(u,1)[0],(i=n.props.ui_element_actions[0]).condition_result=a,r=(r=i.cases)[a],n.props.ui_element_actions=n.props.ui_element_actions.concat(r),delete i.cases,Im(n))}else{var i,r=e.data[1];i=r,l(n=t)&&function(e){return e&&"click"===e.type}(i)&&function o(e){if(_.isString(e.id)&&0===e.id.indexOf("pendo-base"))return!0;if(l(e.parentElem))return o(e.parentElem);return!1}(n)&&(function(e){return f(e)}(n)||function(e){return m(e)}(n)||function(e){return g(e)}(n))&&(e=function(e){var t=function(e){for(var t of p){t=t(e);if(t)return t}const n=function o(e){if(!e)return;if(/^pendo-g-/.test(e.id))return e.id.replace(/^pendo-g-/,"");return o(e.parentElem)}(e),i=wv();if(n&&i&&i.step&&n!=i.step.id){let t;var r=_.find(dd(),function(e){return!!(t=_.find(e.steps,e=>e.id===n))});if(r&&t)return{guide:r,step:t}}return i}(e);if(!t)return;if(function(e){e=e.guide.activeModule;return e&&e.attributes&&e.attributes.resourceCenter&&"AnnouncementsModule"===e.attributes.resourceCenter.moduleId}(t)&&!(t=function(e){var t=k("#"+e).closest("[data-pendo-announcement-guide-id]").attr("data-pendo-announcement-guide-id"),e=_.find(dd(),function(e){return e.id===t});return e?{guide:e,step:e.steps[0]}:undefined}(e.id)))return;if(!t.step||!t.step.domJson)return;var e=m(e)||f(e)||g(e)||{type:e.tag,id:e.id},n=function a(e,t){if(t.props&&t.props.id&&t.props.id===e)return t;if(t.children!==undefined)for(var n=0;n<t.children.length;n++){var i=a(e,t.children[n]);if(i!==undefined)return i}return undefined}(e.id,t.step.domJson);if(!n)return;let i=e.id;n=function(e,t){if(e!==undefined){if("a"===e.type)return[{action:"openLink",url:eo(e.props.href),target:e.props.target}];if(e.actions!==undefined)return _.map(e.actions,v);if("pendo_task_list_item"===t.templateName&&_.isArray(e.templateChildren)&&e.templateChildren[t.templateChildIndex])return[{action:"showGuide",guideId:e.templateChildren[t.templateChildIndex].id}]}return[]}(n,e);var[r={}]=n,{action:r,guideId:o}=r;"showGuide"===r&&o&&(i+="-"+o);return wm({type:d,visitorId:y(),ui_element_id:i,ui_element_type:e.type,ui_element_actions:n,guideId:t.guide.id,stepId:t.step.id,duration:c(),language:t.guide.language})}(t))&&("conditionalSplit"===_.get(e,["props","ui_element_actions",0,"action"])?h.push(e):Im(e))}},registerGuideResolver(e){p.push(e)},removeGuideResolver(e){e=p.indexOf(e);-1!==e&&p.splice(e,1)}};function f(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-button/.test(e.id))?{type:e.tag,id:e.id}:i(e)||!l(e.parentElem)?null:f(e.parentElem)}function g(e){var t,n;if("LI"===e.tag&&/pendo-task-list-item/.test(e.cls))return t=(n=e.id.split("-")).pop(),n=n.join("-"),{type:e.tag,id:n,templateName:"pendo_task_list_item",templateChildIndex:t};return i(e)||!l(e.parentElem)?null:g(e.parentElem)}function m(e){return"A"===e.tag?{type:e.tag,id:e.id}:i(e)||!l(e.parentElem)?null:m(e.parentElem)}function v(e){switch(e.action){case"automation":var t=o(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=o(e.parameters,{name:"url"}),n=o(e.parameters,{name:"target"});return{action:e.action,url:eo(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=o(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=o(e.parameters,{name:"snooze_duration"}),t=o(e.parameters,{name:"time_unit"});return{action:e.action,duration:n.value,timeUnit:t.value};case"showGuide":case"launchGuide":n=e.parameters[0],t=e.parameters[1]||{};return{action:e.action,guideId:n.value,stepId:t.value};case"conditionalSplit":var n=o(e.parameters,{name:"name"}),t=o(e.parameters,{name:"conditionType"}),i=o(e.parameters,{name:"config"}),r=o(e.parameters,{name:"cases"}),r=_.reduce(r.value,function(e,t){return e[t.value]=_.map(t.actions,function(e){var t=v(e);return t.source=e.source,t}),e},{});return{action:e.action,name:n.value,condition_type:t.value,element_selector:i.value.elementSelector,feature_id:i.value.featureId,cases:r};case"advanceGuide":case"previousStep":case"submitPoll":case"dismissGuide":case"confirmation":return{action:e.action};default:return{}}}function i(e){return _.isString(e.id)&&0===e.id.indexOf("pendo-guide-container")}}()),kv=[],Av=!(xv.deregisterAction=function(e){e&&"string"==typeof e&&delete(xv.prototype.registeredActions=xv.prototype.registeredActions?xv.prototype.registeredActions:{})[e]});const Rv={agent:{getJwtInfoCopy:Is.get,treatAsAdoptPartner:fo},agentStorage:h,analytics:{ptm:()=>$s,collectEvent:Ls},attachEvent:l,attachEventInternal:Rr,detachEventInternal:Or,ConfigReader:b,Events:v,EventTracer:gn,EventRouter:xv,Extensions:{API:{addTopic:function(e,t){var n=rp[e]||{};_.extend(n,t),rp[e]=n}}},frames:{getChannel:()=>tv},getAssetUrl:ho,getEventable:()=>wn.call({}),GlobalRuntime:{addGlobalScript:fc.addGlobalScript,removeGlobalScript:fc.removeGlobalScript},GuideActivity:Tv,GuideLoop:{addUpdatePhase:Dh,removeUpdatePhase:Uh},guides:{addProcessor:function(e){return kg.push(e),_.partial(bv,e)},removeProcessor:bv,registerDisplayableGuides:function(e,t){_.isArray(t)&&(sd[e]=t)},removeDisplayableGuides:function(e){delete sd[e]}},hosts:{SERVER:Je},NodeSerializer:Gu,q:m,sessionStorage:h.getSession(),sizeElements:bl,store:f,Tombstone:pd,transmit:{buildBaseDataUrl:Ro,fetchKeepalive:Fo,sendBeacon:Do},log:C,NetworkRequest:n,util:{trim:it,base64EncodeString:dt,parseUrl:Ra,addInlineStyles:_.partial(yc,b),getNow:S},constants:{URL_MAX_LENGTH:2e3}};function Ov(t){_.find(kv,function(e){return e.name===t.name})?C.warn(`Plugin with name ${t.name} already exists. Skipping registration.`):(kv.push(t),Av&&t.initialize(E,Rv))}function Nv(){_.each(kv,function(e){_.isFunction(e.teardown)&&e.teardown(E,Rv)}),Av=!1}dp.registerExtensionsByUse("plugin",function(e){return _.extend(e.uri,_.pick(e,"name")),Ov(e.uri),e},function(e){return!!e.uri.initialize&&!!e.uri.teardown});var Mv=!1;function Lv(){if(!Mv){const e=function(e){var t,n,e=e.data[0];n=(t=e).old_visitor_id,t=t.visitor_id,(Pn(n)?Ln(t)?Pn(t)?(C.info("Visitor is anonymous: "+t),1):Gn(t)?(C.info("Visitor id is the default: "+t),1):(C.info("Re-mapping visitor identity from "+n+" to "+t),0):(C.info("Not valid visitor id: "+t),1):(C.info("Visitor is already identified: "+n),1))&&(n=(t=e).old_account_id,t=t.account_id,Ln(t)?n===t||(C.info("Re-mapping account identity from "+n+" to "+t),0):(C.info("Not valid account id: "+t),1))||(Ls("identify",e),ms())},t=function(e){var t;ep()||({options:e,hashChanged:t}=e.data[0],t&&(Ls("meta",e),ms()))};return v.identify.on(e),v.metadata.on(t),v.identify.on(ip),Mv=!0,function(){v.identify.off(e),v.metadata.off(t),v.identify.off(ip),Mv=!1}}}Pv="guideActivity",Fv=function(){return(new Date).getTime()-Ng},Dv=_.isObject;var Pv,Fv,Dv,Uv={type:Pv,handler(e){var t,n=e.data[0],e=e.data[1];e=e,Dv(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(Dv(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return zv(e)}(t)||function(e){return Gv(e)}(t)||function(e){return Bv(e)}(t))&&(e=function(e){var t=P.getResourceCenter();if(t){var n=t.activeModule,i=zv(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=Gv(e)||Bv(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),wm({type:Pv,visitorId:y(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,duration:Fv(),language:i.language})}}(n))&&Im(e)}};function Gv(e){var t=e.cls.split(" ");return _.contains(t,"_pendo-resource-center-module-list-item")?{type:"BUTTON",elementId:k("#"+e.id).closest("[data-pendo-module-guide-id]").attr("data-pendo-module-guide-id")}:"pendo-resource-center-container"!==e.id&&Dv(e.parentElem)?Gv(e.parentElem):null}function Bv(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=P.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&&Dv(e.parentElem)?Bv(e.parentElem):null}function zv(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-left-caret/.test(e.id))?{type:e.tag,id:e.id}:"pendo-guide-container"!==e.id&&Dv(e.parentElem)?zv(e.parentElem):null}const jv=e=>(e=e||E).doesExist(e.apiKey);class Hv extends _t{constructor(){super(),this.cache=new Set,this.foundShadowRoots=!1,this.stoppedSearchEarly=!1}updateCache(){this.cache.forEach(e=>{ra(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=[na(r)],i;function s(e){do{if(!(e=e||r.createNodeIterator(n.pop(),NodeFilter.SHOW_ELEMENT))||!e.nextNode)break;for(;(i=e.nextNode())&&(t++,i&&i.shadowRoot&&(a(i.shadowRoot),n.push(i.shadowRoot),this.foundShadowRoots=!0),t%o!=0););}while(!i&&(e=null,n.length));i&&this.foundShadowRoots&&(this.findTimeout=Ut(()=>{this.findTimeout=null,s.call(this,e)},50)),t!==o||this.foundShadowRoots||(this.stoppedSearchEarly=!0)}s.call(this)}}teardown(){this.cache.clear(),_.isFunction(this.unpatchAttachShadow)&&(this.unpatchAttachShadow(),this.unpatchAttachShadow=null),this.findTimeout&&(clearTimeout(this.findTimeout),this.findTimeout=null)}}class qv extends _t{constructor(e=gt("MutationObserver")){super(),this.ObserverClass=e,this.observing=!1,this.observers=new Map,this.triggerMutation=this.dispatchMutationEvent,this.shadowDom=new Hv,this.shadowDom.addEventListener("attachShadow",_.bind(this.handleAttachShadow,this)),this.shadowDom.addEventListener("detachShadow",_.bind(this.handleDetachShadow,this)),this.addEventListener("mutation",()=>{null!=this.timeout&&clearTimeout(this.timeout),this.timeout=Ut(()=>{this.shadowDom.updateCache(),this.timeout=null},0)})}initialize(e,t){t=t.ConfigReader;t.get("preferMutationObserver")&&e.sniffer.MutationObserver&&(this.observeShadowRoots=t.get("observeShadowRoots"),this.startObserver(document.documentElement),this.observing=!0,this.observeShadowRoots)&&this.shadowDom.initialize()}startObserver(e){var t=new this.ObserverClass(e=>this.triggerMutation(e));this.observers.set(e,t),t.observe(e,{subtree:!0,attributes:!0,childList:!0,characterData:!0})}teardown(){this.observers.clear(),this.shadowDom.teardown(),null!=this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispatchMutationEvent(e){this.dispatchEvent({type:"mutation",mutation:e})}triggerMutationOnce(e){this.triggerMutation=_.noop,queueMicrotask(()=>{this.dispatchMutationEvent(e),this.triggerMutation=this.triggerMutationOnce})}handleAttachShadow({shadowRoot:e}){this.triggerMutation=this.triggerMutationOnce,this.startObserver(e)}handleDetachShadow({shadowRoot:e}){this.observers["delete"](e)}}var Wv=new qv;let Vv=0;const Jv="initializeImmediately",$v=[],Kv=Qn(function(e){if("complete"===document.readyState||_.get(e,Jv)||b.get(Jv))if(C.info("pendo.initialize called with "+JSON.stringify(e)),E.apiKey)1==Vv++&&C.info(["pendo.initialize only needs to be called once",ft()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join(""));else{if(e=e||{},_.isEmpty(Is.get())&&(o=Is.getJwtOptions(e,"initialize"))&&(Is.set(_.pick(e,"jwt","signingKeyName")),_.extend(e,o,{forceAnonymous:!0})),_.isString(e))return Lr.get(e).then(e=>(le(u=e.data),Kv()));try{f.dispatch("location/init",e.location||{})}catch(a){C.critical("Location API Exception",a)}b.setLocalConfig(e),co(),E.HOST=ro;var t,n,i,r,o=b.get("cookieDomain");if(o&&(o=o,i=location.host,o?_.isString(o)&&(i=i.replace(/:\d+$/,""),o=o.replace(/^\./,""),t=new RegExp("\\."+Tt(o)+"$"),n=new RegExp("^"+Tt(o)+"$"),t.test(i)||n.test(i))&&(Pt="."+o):Pt=o),Tf.discoverKeys(e),Tf.getApiKey()){f.commit("metadata/setMetadata",{selfHosted:Ql()}),e.logStackTraces&&(E.logStackTraces=e.logStackTraces),b.get("preferBroadcastChannel")&&yg.secure(!0);const s=b.get("analytics.localStorageUnload");Ts.read(h),$v.push((t={localStorageUnload:s},Vs=ls.events=ns,Js=ls.trackEvents=is,Xs=ls.agenticEvents=rs,$s=bu(_.extend({cache:Vs,silos:ls.silos,apiKey:Oo,beacon:"ptm",allowPost:!0},t)),Ks=bu(_.extend({cache:Js,silos:ls.trackEventSilos,apiKey:Oo,beacon:"ptm",allowPost:!0,params:{type:"track"}},t)),Zs=bu(_.extend({cache:Xs,silos:ls.agenticEventSilos,apiKey:Oo,beacon:"agentic","class":"agentic",allowPost:!0},t)),hs($s),hs(Ks),hs(Zs),()=>{bs(),fs($s),fs(Ks),fs(Zs),$s=Ks=Zs=undefined})),Wv.initialize(E,Rv),$v.push(()=>Wv.teardown()),Ao&&(h.registry.addLocal(Rn),h.registry.addLocal(On),h.registry.addLocal(Nn),h.registry.addLocal(Jl),E.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,$v.push(Dd(v)),[{events:i=[]}]=[e],_.each(i,(e,t)=>{Gd[t]&&Gd[t](e)}),$v.push(ov(Wv)),$v.push(Lv()),$v.push(Ku()),$v.push((_.each(kv,function(e){e.initialize(E,Rv)}),Av=!0,Nv)),$v.push((n=e,h.registry.addLocal(ef),h.registry.addLocal(tf),_.find([_.partial(Nf.launchOnToken,window.location),_.partial(nf,window),_.partial(Nf.localStorageNavigation,n)],e=>e()),n.enableDesignerKeyboardShortcut||!b.get("disableDesignerKeyboardShortcut")?Zf.listen():()=>{})),v.appUsage.on(Tv.handler),v.appUsage.on(Uv.handler),$v.push(vs(os)),$v.push(Os.initialize())),v.appHidden.on(()=>{gs(0,{hidden:!0})}),v.appUnloaded.on(()=>{gs(0,{unload:!0}),s&&Ts.write(h)}),Fn()||Dn(),E.updateOptions(e),e.visitorId&&e.visitorId!=Un&&E.identify(e.visitorId),$v.push(A.watch(function(){E.pageLoad()})),Ao&&v.ready.trigger(),wu(A.get()),Vv++,window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&((r=yg.targetOrigin())?window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},r):C.warn("Unable to announce frame to designer plugin, targetOrigin is not set. Check if broadcastChannel is enabled and cross origin frames are allowed.")),Yv()}else C.debug("API key is not set, Pendo will not initialize.")}else ae(E,"initialize",arguments)});function Zv(e){return!_.isArray(e)||_.isEmpty(e)}function Xv(e){if(!Zv(e))return _.find(e,e=>"initialize"===e[0])}function Yv(i){var e;return!Zv((i=i||E)._q)&&(e=!!Xv(i._q),jv(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(Yv)):m.resolve()}function Qv(){jv()?C.info("already running"):(window.pendo_options&&Kv(window.pendo_options),Yv())}function ey(){v.appHidden.trigger(),v.appUnloaded.trigger(),_.each($v,function(e){e()}),wu.reset(),$v.length=0,yg.close(),wn.clear(v),wn.clear(Gd),delete E.apiKey,Vv=0}var ty,ny,iy={getActiveGuide:wv,smartNextStep:function(e){var t,n=wv();n&&(t=n.guide.steps[n.stepIndex+1],Ut(function(){var e=Cr(t.elementPathRule);0!==e.length&&_.some(e,ya)?Yg(n.step):Yg(t)},e=e||0))},smartFirstStep:function(){k("._pendo-guide_").css("display:none;");var t=nd(),e=wv().guide.steps,n=_.filter(_.rest(e),function(e){return!!e.pageId}),n=_.indexOf(e,_.find(n,function(e){return rd(e.regexUrlRule,t)}));C.info("startingPoint is "+n),-1==n?k("._pendo-guide_").css("display:block;"):(n=e[Math.max(0,n-1)],C.info("found starting step to be "+n.id),Yg(n))},advanceOn:function(e,t){var n=wv(),i=k(t=t||n.step.elementPathRule)[0],r=function(){Yg(),Qu(i,e,r,!0)};l(i,e,r,!0)},renderStepPosition:function(e,t,n){if(t)n||(i=[].concat(t.steps).reverse(),n=_.findWhere(i,{seenState:"active"}));else{var i=wv();if(!i)return;t=i.guide,n=i.step}return(e=_.template(e=e||"Step <%= currPos %> of <%= total %>"))({currPos:t.getPositionOfStep(n),total:t.getTotalSteps()})}},U={renderGuideFromJSON:function(e,n,t,i){i=i||{};var r=n.getGuide();n.isDarkMode===undefined&&wh(n);var o=gc(e),a=_.get(r,"attributes.resourceCenter");a&&(P.revertRtlChanges(r,e.props),e=P.updatePseudoStyleSelectors(e));var s=a&&P.isFullyCustom(r),u="AnnouncementsModule"===_.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.containerId=o&&o.props&&o.props.id,n.element=xd(n,i.document),U.buildNodeFromJSON(e,n,t)),t=(n.guideElement=o).find("#"+n.containerId),d="data-vertical-alignment",c="Relative to Element"===t.attr(d);c&&!a&&k(n.guideElement).css({overflow:"hidden",height:"0",width:"0"});t.css({visibility:"hidden"}),o.css({visibility:"hidden"});var l=_.get(r,"attributes.embedConfig",null);d=ag.buildWatermark({appId:r.appId,targetAccount:r.targetAccount,isTraining:r.isTraining,isBottomAligned:"Bottom Aligned"===t.attr(d),isEmbedded:!!l},U.buildNodeFromJSON);d&&t.append(d);d=n&&n.attributes&&n.attributes.imgCount,i=_d(i.document);{var p,h;l?(f=o[0],p=f.querySelector("#"+(h="pendo-guide-container")),{selector:p,method:h}=(p&&(p.id=h+"-"+n.id,f.id="pendo-base-"+n.id),l),i=k(p)[0],"replace"===h&&i?(i.innerHTML="",o.appendTo(i)):"prepend"===h?o.prependTo(i):o.appendTo(i)):o.appendTo(i)}(function(e,t,n){t=k.getRootNode(t),e=k.getRootNode(e);var i;e!==t&&(e!==document?e.hasOwnProperty("wrappedJSObject")?(i=e.wrappedJSObject.adoptedStyleSheets,t.wrappedJSObject.adoptedStyleSheets.push(...i)):(i=e.adoptedStyleSheets,t.adoptedStyleSheets.push(...i)):(n=k(".pendo-style-"+n,e)).length&&(n.remove(),n.appendTo(t)))})(_d(),o[0],n.id),bl(o),c&&Xc.patchGuideContainerWidthForResponsiveTooltips(n,t[0],e);s||u||(U.recalculateGuideWidth(n.containerId,n.guideElement),U.adjustGuideContentWidth(n.containerId,n.guideElement));d||a||U.flexAllThings(n.containerId,n);s||U.recalculateGuideHeight(n.containerId,n.guideElement);c?n.attributes.calculatedType="tooltip":Xc.attachBBAdvanceActions(n);c&&!d&&Xc.positionStepForTooltip(n,e,t[0]);{var f;a&&(P.showHomeViewOrEmptyState(r),f=[],u?f=[r.attributes.resourceCenter]:U.flexAllThings(n.containerId,n),f.length)&&_.forEach(f,function(e){e=_.get(e,"children",[]);_.forEach(e,function(e){var t;e&&(t=e.steps[0],_.isUndefined(t.attributes.imgCount))&&(t=_.get(t,"id",n.id),e=_.get(e,"id",r.id),t=k("#pendo-g-"+t).length?t:e,U.flexAllThings("pendo-g-"+t,n))})})}{var g;d?(g=m.defer(),o.rendered=g.promise,t.on("imagesLoaded",function(){g.resolve()})):(t.css({visibility:"visible"}),o.rendered=m.resolve())}o.css({visibility:"visible"}),n.elements.push(n.guideElement[0]),E.designer||(_.get(n,"attributes.isAutoFocus")&&(U.autofocusStep(n,t),U.trapFocusStep(n,t),n.hiddenElements=U.addAriaHiddenOutsideGuide(o[0])),a&&(U.attachRCFocusHandlers(),r.skipResourceCenterHomeView?(l=r.activeModule.steps[0],U.autofocusStep(l,l.guideElement)):U.autofocusStep(n,t)));return k(".pendo-video-wrapper",o).each(function(t){k("iframe",t).each(function(e){t.setAttribute("data-pendo-video-loading",""),U.addVideoLoadListener(t,e)})}),o},autofocusStep:function(e,o){var t="autofocus for guide id: "+e.getGuide().id+" step id: "+e.id+" ",n=function(e){var t,n;return!!e&&(t=ko(t=e),n=Zo(),_.extend(n,{top:0,left:0,bottom:n.height,right:n.width}),aa(n,t)||wa(e),e.focus(),e===k.getRootNode(e).activeElement)},i={maxRetries:100,delay:50,exponentialBackoff:!1};yt(function(){var e,t,n,i,r=k(o).find("#pendo-guide-container");return(r=r[0]||r)&&ya(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){yt(function(){return n(e)},i,function(){},function(){C.warn(t+"#pendo-guide-container is available on page but could not capture focus")})},function(){C.warn(t+"#pendo-guide-container did not render or become visible in time to focus")})},trapFocusStep:function(e,t){!function(e){var o,a,s,t,u,d,n,c=e[0];c&&(t=["a[href]:not([disabled])","button:not([disabled])","textarea:not([disabled])",'input[type="text"]:not([disabled])','input[type="radio"]:not([disabled])','input[type="checkbox"]:not([disabled])',"select:not([disabled])","[tabindex]","iframe"].join(", "),(o=_.toArray(e.find(t))).length)&&(a=o[0],s=o[o.length-1],t=sy(e),u=t[0],d=t[1],n=function(e){var t,n,i=ry(e),r=e.shiftKey;i&&(t=(i=k.getRootNode(c).activeElement)===c,n=document.activeElement===document.body,r?(i===u||t||n)&&(ay(o,s).focus(),e.preventDefault()):(t||i===d||n)&&(ay(o,a).focus(),e.preventDefault()))},l(document,"keyup",n),l(document,"keydown",n),v.one("unmounted",()=>{Qu(document,"keyup",n),Qu(document,"keydown",n)}))}(t.find("#pendo-guide-container"))},attachRCFocusHandlers:function(){const s=P.getResourceCenter(),u=P.getResourceCenterContainer();if("dom"===s.launchMethod&&u){let e=k(s.attributes.activation.selector)[0];if(e){const[d,c]=sy(k(u));var t=function(e){var t=ry(e),n=e.shiftKey;if(t){var t=k.getRootNode(u).activeElement,i=k(s.attributes.activation.selector)[0];if(i){var r=t===d,t=t===c;const a=k(ga);function o(t){return Object.values(a).findIndex(e=>e===t)}n?r?(i.focus(),e.preventDefault()):t&&oy(0===(n=o(d))?a.length-1:n-1,a,e):t?oy(o(i)+1,a,e):r&&oy((n=o(c))>=a.length-1?0:n+1,a,e)}}},n=function(e){var t=ry(e),n=e.shiftKey;t&&!n&&oy(0,k('[id^="pendo-g-"]').find(ga),e)},i=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=d&&t&&oy((n=k('[id^="pendo-g-"]').find(ga)).length-1,n,e)};l(document,"keyup",t),l(document,"keydown",t),l(e,"keydown",n),l(e,"focus",i),v.one("unmounted",()=>{Qu(document,"keyup",t),Qu(document,"keydown",t),Qu(e,"keydown",n),Qu(e,"focus",i)})}}},addAriaHiddenOutsideGuide:function SS(e,n=[]){if(!e||e===na())return n;const t=ia(e);_.each(t,e=>{if(-1===n.indexOf(e)&&"true"!==e.getAttribute("aria-hidden")){const t=e.tagName.toLowerCase();"script"!==t&&"style"!==t&&(e.setAttribute("aria-hidden","true"),n.push(e))}});e.parentNode&&SS(e.parentNode,n);return n},renderResourceCenterModule:P.renderResourceCenterModule,buildNodeFromJSON:Bl,attachImgLoadHandlers:zl,recalculateGuideHeightOnImgLoad:jl,buildStyleString:function(e){var n="";return _.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:ql,bindActionToNode:Hl,recalculateGuideHeight:Sl,recalculateGuideWidth:El,adjustGuideContentWidth:Il,findDomBlockInDomJson:mc,isElementHiddenInGuide:M.isElementHiddenInGuide,positionStepForTooltip:Xc.positionStepForTooltip,flexAllThings:M.flexAllThings,flexElement:M.flexElement,findTopLevelContainer:function(t){for(var e=["pendo-base","pendo-resource-center-container"],n=0;n<20;n++){if(_.find(e,function(e){return t.id===e}))return t;if(t===document.body)return document.body;t.parentNode&&(t=t.parentNode)}return document.body},updateBackdrop:jc,buildNodesFromJSON:Dl,findGuideContainerJSON:gc,maintainAspectRatios:M.maintainAspectRatios,sizeElement:wl,sizeElements:bl,getAllowedAttributes:Gl,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:Xc.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:Cv,addVideoLoadListener:function(e,t){l(t,"load",function(){e.removeAttribute("data-pendo-video-loading")})}};function ry(e){return"Tab"===e.key||9===e.keyCode}function oy(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function ay(e,t){let n;if("radio"===t.getAttribute("type")){const i=t.getAttribute("data-pendo-poll-id");n=_.find(e,function(e){var t=e.getAttribute("data-pendo-poll-id");return i===t&&e.checked})}return n||t}function sy(e){var t={margin:0,padding:0,outline:"none",border:"none","box-shadow":"none",shadow:"none"},t={type:"style",props:{type:"text/css",scoped:"scoped",id:"pendo-focus-bumper-styles"+Date.now()},css:[{selector:".pendo-start-focus-bumper",styles:_.extend({},t,{tabIndex:0})},{selector:".pendo-start-focus-bumper:hover",styles:t},{selector:".pendo-start-focus-bumper:focus",styles:t},{selector:".pendo-end-focus-bumper",styles:_.extend({},t,{tabIndex:0})},{selector:".pendo-end-focus-bumper:hover",styles:t},{selector:".pendo-end-focus-bumper:focus",styles:t}]},t=U.buildNodeFromJSON(t),t=(e.prepend(t),document.createElement("div")),n=(t.setAttribute("id","pendo-start-focus-bumper-"+Date.now()),t.setAttribute("class","pendo-start-focus-bumper"),t.setAttribute("tabIndex",0),e.prepend(t),document.createElement("div"));return n.setAttribute("id","pendo-end-focus-bumper-"+Date.now()),n.setAttribute("class","pendo-end-focus-bumper"),n.setAttribute("tabIndex",0),e.append(n),[t,n]}var uy=100,dy=[],cy=[];const ly="log-enabled",py="active-contexts";var hy=function(){var e=h.read(ly,!0);return null!==e?"true"==e:!(-1!==qe.indexOf("prod")||-1!==qe.indexOf("rc"))},fy=function(){return vy()?ny?"logging already enabled":(h.write(ly,"true"),ny=!0,"logging enabled"):"logging unavailable"},gy=function(){return ny?(h.write(ly,"false"),ny=!1,"logging disabled"):"logging already disabled"};var my=function(e,t){return _.compact([].concat(e,t))},vy=function(e){return e=e||"log","undefined"!=typeof console&&_.isFunction(console[e])},yy=function(e){return e=my(e),0<ty.length?0<_.intersection(ty,e).length:!!ny||!!jh()},by=function(e,...t){C.info(e,{contexts:t})};function wy(e){var t;e.level!==St.Debug&&e.level!==St.Info||(t=e.attributes?my(e.attributes.contexts):[],vy()&&yy(t)&&xy(e.message),Ey(dy,e.message,t))}function Sy(...e){vy("error")&&console.error.apply(console,e),Ey(cy,e.join(" "))}var Ey=function(e,t,n){_.contains(n,"debug")||(e.length==uy&&e.shift(),e.push([t,n]))},Iy=function(t){t=my(t),_.each(_.map(_.filter(dy,function(e){return 0===t.length||0<_.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){xy(e,"[Pendo-History] ")})},_y=function(){return _.union.apply(_,_.map(dy,function(e){return e[1]}))},Cy=function(e){ty=my(e),h.write(py,ty.join(","))},xy=function(e,t){var n;vy()&&(t=t||"[Agent] ",e&&e.length?((n=1e3<e.length?e.length-1e3:0)&&(t+="..."),console.log(t+e.substring(n))):console.log(t+e))};function Ty({type:t,name:n,props:i}){if(n&&_.isString(n))if(t&&_.isString(t)){let e=i;_.isObject(i)||(e={__err__:i});i=A.get();Ls(t,e,i,n)}else C.error("Must provide valid type string for event tracking");else C.error("Must provide valid name string for event tracking")}function ky(e,t){Ty({type:"track",name:e,props:t})}function Ay(e,t){Ty({type:e,name:"agentic",props:t})}by.init=function(){var e;e=h.read(py,!0),ty=e?e.split(","):[],ny=hy(),C.addEventListener("log",wy),h.registry.addLocal(ly,{isPlain:!0}),h.registry.addLocal(py,{isPlain:!0})},by.enableLogging=fy,by.disableLogging=gy,by.getActiveContexts=function(){return ty},by.setActiveContexts=Cy,by.showLogHistory=Iy,by.getLoggedContexts=_y;var Ry=function Ry(r){var o=[];function a(e,t,n,i){r?o.push({type:n,message:t,value:i}):me(i)?console[e](t,i):console[e](t)}if("undefined"==typeof console||!console.group)return"Please run this test in the latest version of Chrome, Firefox, Safari, or Internet Explorer";r||console.group("Pendo Install Validation"),E.apiKey||a("error","No Pendo API key configured. Make sure to call pendo.initialize() with a valid Pendo API key.","apiKey");var e=y(),e=(Pn(e)&&a("warn",'The current visitor is not identified and will be treated as "anonymous". Is this expected? (You might have used "VISITOR-UNIQUE-ID" as the visitor ID)',"isAnonymousVisitor"),Gn(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),$n()),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"),b.get("disableCookies")&&a("warn","Cookies are disabled in Pendo config. Is this expected?","disableCookies"),tp());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()},Oy=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:rn.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())},Ny=function(e){var t=[];if(_.isNumber(window.frames.length)&&_.isFinite(window.frames.length)&&k("iframe").length+k("frame").length===window.frames.length||t.push("Pendo has detected that window.frames.length has been modified"),window.Event&&window.Event.prototype||t.push("Pendo has detected that window.Event has been modified"),t.length){if(e)return t;console.group("Global variables:"),_.each(t,function(e){console.warn(e)}),console.groupEnd()}},My=function(e){var t,n=window.location.href,i=[];try{(t=Hr())!==n&&i.push({type:"customizedUrl",msg:"URL has been customized. This will affect data collection, guide requests, and reload tests.",value:t})}catch(o){i.push({method:"error",msg:"Error getting Custom URL",value:o})}try{var r=A.externalizeURL();r!==t&&i.push({type:"sanitizedUrl",msg:"URL has been sanitized. This will affect sending data and guides requests.",value:r})}catch(o){i.push({method:"error",msg:"Error getting Externalized URL",value:o})}if(e)return i;console.group("URL Validation"),console.log("Browser URL:",n),_.each(i,function(e){e.method?console[e.method](e.msg+"\n"+e.value):console.warn(e.msg+"\n"+e.value)}),console.groupEnd()};const Ly=e=>{if(0<cy.length){var t=[].concat(cy);if(e)return t;console.group("Agent Error History"),_.each(t,(e,t)=>{console.log("Error History ",t,e)}),console.groupEnd()}},Py=e=>{t=e;var t,n=_.map(kv,function(e){return e.validate&&!t&&e.validate(E,Rv),e.name});if(e)return n;console.group("Active Plugins"),_.each(n,e=>console.log(e)),console.groupEnd()};var Fy=function(e){var t={install:Ry(e),plugins:Py(e),globals:Ny(e),url:My(e),errors:Ly(e)};if(e)return t.methods=Oy(e),t;b.validate(console)},Dy={BuildingBlockGuides:U,BuildingBlockResourceCenter:P,BuildingBlockTemplates:wc,BuildingBlockTooltips:Xc,BuildingBlockSvgs:Cc};function Uy(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))}Uy.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},Uy.prototype.stop=function(){clearTimeout(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var Gy=Lr.urlFor,By={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace","Clear","AddTo"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};const zy=["location","attribute","both","network","all"],jy="location";function Hy(e,t,n,i){var r;if(_.isObject(e)&&(t=e.action,n=e.data,i=(e=e.attr).target),!By[e])throw r=_.keys(By).join(", "),new Error('Invalid URL attribute type: "'+e+'". Valid attributes are: '+r+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!_.contains(By[e],t))throw r=By[e].join(", "),new Error('Invalid transform action: "'+t+'" for attribute "'+e+'". Valid actions for "'+e+'" are: '+r+'. Example: {attr: "'+e+'", action: "'+By[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<=zy.indexOf(e)})).length?e:[jy]:0<=zy.indexOf(r)?r:jy)}function qy(e){return e instanceof ei||e instanceof HTMLAnchorElement}Hy.prototype.applyTo=function(e){return{AllowOnlyKeys(e,t,n){_.isFunction(n)&&(n=n(e[t],e));t=e.href;return new ei(io(t,null,n,!1))},ExcludeKeys(e,t,n){_.isFunction(n)&&(n=n(e[t],e));t=e.href;return new ei(io(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 ei(Gy(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 ei(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)},Hy.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},Hy.fromJSON=function(e){if(e instanceof Hy)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(By).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=By[e.attr]?By[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(!By[e.attr])throw t=_.keys(By).join(", "),new Error('Invalid attribute "'+e.attr+'". Valid attributes are: '+t+'. Example: {attr: "search", action: "AddTo", data: {key: "value"}}');if(!_.contains(By[e.attr],e.action))throw t=By[e.attr].join(", "),new Error('Invalid action "'+e.action+'" for attribute "'+e.attr+'". Valid actions for "'+e.attr+'" are: '+t+'. Example: {attr: "'+e.attr+'", action: "'+By[e.attr][0]+'", data: ...}');var t;if(_.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 Hy(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))}};Wy=function(t,n,i,r){return[new Hy("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new Hy("href","ForceSecure")]},e={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:Vy=function(){var e=jr(),t=A.isElectron()?Wy(A.electronAppName(),A.electronResourcesPath(),A.electronUserDirectory(),A.electronUserHomeDirectory()):[];return Zy([].concat(t),e)}},Jy=new Uy(500,function(e){!jv()||Su(document)||wu()}),$y=function(e){if("string"==typeof e)return new ei(e);if(qy(e))return e;throw new Error("Invalid type from custom URL source. Must be either an URL or a String of a valid url.")},Ky=function(e){return e||window.location},Zy=function(e,t){return _.reduce(e,function(e,t){return t.applyTo(e)},t)};var Wy,Vy,Jy,$y,Ky,Zy,Xy,t={state:e,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=Hy.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"))&&f.dispatch("nodeAttr/addAttrTransform",e),(_.contains(t,"network")||_.contains(t,"all"))&&f.dispatch("networkUrl/addNetworkTransform",e)})},addInternalTransforms(t,e){_.each(e,function(e){t.commit("addInternalTransform",Hy.fromJSON(e))})},removeInternalTransforms(t,e){_.each(e,function(e){t.commit("removeInternalTransform",Hy.fromJSON(e))})},startPolling(e){Jy.start()},stopPolling(e){e.state.currentSrcFn===Vy&&Jy.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=[],f.commit("nodeAttr/clearURLTransforms"),f.commit("networkUrl/clearURLTransforms")},clearInternalTransforms(e){e.internalTransforms=[]},changeUrlSource(e,t){if(t){if("string"==typeof t)var n=new ei(t),n=_.partial(_.identity,n);else if(qy(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,Jy.start(!jv())}else e.currentSrcFn=Vy,Jy.stop()}},getters:{url:Xy=function(e){try{var t=function(e){return n=e},n=_.reduce([e.currentSrcFn,$y,t,_.partial(Zy,e.transforms),$y,t,_.partial(Zy,e.internalTransforms),$y],function(e,t){return t(e)},null)}catch(i){C.critical(i),n=Ky(n)}return n},href(e){return Xy(e).href}}};function Yy(e){var t;if("function"==typeof Yy[e])return t=_.toArray(arguments).slice(1),Yy[e].apply(Yy,t)}_.extend(Yy,{getHref(){return A.get()},clearTransforms(){f.commit("location/clearTransforms"),wu()},addTransforms(e){f.dispatch("location/addTransforms",e),wu()},setUrl(e){f.commit("location/changeUrlSource",e)},useBrowserUrl(){f.commit("location/changeUrlSource"),wu()}});function Qy(){return b.get("guideSeenTimeoutLength")||1e4}e0=[];var e0,t0={name:"StepTimeoutMonitor",initialize(){this._beforeGuideShow=_.bind(t0.beforeGuideShow,t0),this._stop=_.bind(t0.stop,t0),v.beforeGuideShow.on(this._beforeGuideShow),v.guideSeen.on(this._stop),v.guideNotSeen.on(this._stop)},teardown(){t0.stop(),v.beforeGuideShow.off(this._beforeGuideShow),v.guideSeen.off(this._stop),v.guideNotSeen.off(this._stop)},beforeGuideShow(e){var t=e.data[0],e=e.data[1],n=t.guide;b.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)&&t0.start(t))},start(e){var u,t,n=e0[0];n&&n===e.id||(n&&n!==e.id&&(n=e0[1],_.isFunction(n))&&n(),e.shouldStartTimer()&&(u=Qy(),n=_.partial(function(e,t){var n,i,r,o,a,s=N(t);s&&(n=s.findStepById(e))&&!s.isShown()&&(a=n.canShowOnPage(nd())?im(n)?"other":"element":"page",i=t,r=e,o=y(),a=a,s=s.language,i=wm({type:"guideTimeout",guideId:i,stepId:r,visitorId:o,seen_reason:a,language:s,guideSeenTimeoutLength:u}),Im(i),v.guideTimeout.trigger(i),C.info("Guide "+t+" timed out showing Step "+e),n.timeout()),t0.stop()},e.id,e.guide.id),t=Ut(n,u),e0=[e.id,n,t]))},stop(){var e=e0[2];e&&clearTimeout(e),e0=[]},getGuideSeenTimeoutLength:Qy};function n0(){console.warn("This functionality is not supported by your subscription.")}function s(e){return Ao?e:n0}var i0="is going away",r0="is gone",o0=_.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return C.info(e),e});function a0(e,t,n){return function(){return o0("pendo."+t,n),(e||_.noop).apply(null,arguments)}}function s0(e){return e&&1===e.length?e[0]:_.any(e,wt)?m.all(e).then(function(e){return _.any(e)}):void 0}function u0(){this.elements=[],this.attributes=this.attributes||{},this.attributes.device&&this.attributes.device.type?"all"==this.attributes.device.type?this.attributes.device={desktop:!0,mobile:!0}:(e=this.attributes.device.type,this.attributes.device={mobile:!1,desktop:!1},this.attributes.device[e]=!0):this.attributes.device=this.attributes.device||{},_.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),sc(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 s0(_.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(!Ed()){var e=Id(),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 s0(_.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(nd())&&$h(this)):Xh(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 ht(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 ht(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(nd())||!t.canShowOnDevice()||!im(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(nd())||!this.canShowOnDevice()||!im(e)||this.outsideTimebox())};var e,n="PENDO_HELPER_STEP";return this.getPositionOfStep=function(e){var t=_.reject(this.steps,function(e){return ht(e.content,n)});return _.indexOf(t,e)+1},this.getTotalSteps=function(){return _.reject(this.steps,function(e){return ht(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 d0(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){_.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var c0=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function l0(){var r,o=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(_.each(this.steps,function(e){e.after("render",function(){_.each(e.elements,function(e){k(e).addClass("_pendo-guide-walkthrough_")})})}),r=null,this.sections=_.reduce(this.steps,function(e,t){var n,i;return i=t,!(n=r)||(n=_.last(n)).attributes.isRequired!=i.attributes.isRequired&&n.attributes.isRequired?(e.push(r),r=[t]):r.push(t),e},[]),this.sections=_.compact(this.sections.concat([r])),this.findSectionForStep=function(t){return _.find(this.sections,function(e){return _.contains(e,t)})},this.getSubSection=function(e,t){t=_.indexOf(e,t);return e.slice(t+1)},this.isContinuation=function(e){var t=this.isTopLevel||this.isModule,n=this.hasResourceCenterContent;return(!t||n)&&!!this.nextStep(e)},this.nextStep=function(t){var e=null;if(this.isGuideSnoozed())return null;t=t||{};for(var n,i,r=0;r<this.steps.length;r++)if(this.steps[r].id===t.guideStepId){if("dismissed"===t.state)break;if("active"===t.state||"snoozed"===t.state){e=this.steps[r];break}if("advanced"===t.state&&t.destinationStepId){e=_.find(this.steps,function(e){return e.id===t.destinationStepId});break}if(r+1<this.steps.length){e=this.steps[r+1];break}}return e?(n=(new Date).getTime(),(i=t.time)&&432e5<n-i&&!c0(this)?(o||(C.info("Multi-step continuation has expired",{contexts:["guides","info"]}),o=!0),null):e):null},this.shouldAutoDisplay=function(){return this.hasLaunchMethod("auto")&&(this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||_.all(this.steps,function(e){return e.shouldAutoDisplay()}))},this.autoDisplay=function(){var e,t,n;if(this.shouldAutoDisplay())return e=this.shouldRepeatGuide(),t=_.first(this.steps),n=this.nextStep(lh())||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=lh(),n=_.first(this.steps),t=this.nextStep(t)||n;return t.show("continue"===e&&t===n&&"auto"===n.seenReason?"auto":e)},this.isComplete=function(){var e=_.last(this.steps);return!!e&&_.contains(["advanced","dismissed"],e.seenState)},this.activeStep=function(){var e=[].concat(this.steps).reverse();return _.findWhere(e,{seenState:"active"})}),this}function p0(){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,p0.MAX_ERRORS_PER_MINUTE<=t&&(n="Exceeded error rate limit, dropping guide.\n"+n,pd.addGuide(a),v.trigger("renderFail",a)),o.shift()),C.critical(n,{error:i}),i}}}return _.each(["canShow","placeBadge","show"],function(e){a[e]=_.wrap(a[e],t(e))}),a}function h0(){return _.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=_.wrap(this.shouldBeAddedToLauncher,function(e){return f.getters["frames/hasFrames"]()?!(!f.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!f.getters["frames/isGuideInDifferentFrame"]()(this)&&f.getters["frames/shouldBeAddedToLauncher"]()(this):e.apply(this,arguments)}),this.shouldBeAddedToResourceCenter=_.wrap(this.shouldBeAddedToResourceCenter,function(e){return f.getters["frames/hasFrames"]()?!(!f.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!f.getters["frames/isGuideInDifferentFrame"]()(this)&&f.getters["frames/shouldBeAddedToResourceCenter"]()(this):e.apply(this,arguments)})),this}function f0(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)||f.getters["frames/isShownInAnotherFrame"]()(t)})),t}function g0(o){var a,t,i,s,r,n,u,d=this;return d.pollIds&&d.pollIds.length&&(a="_pendo-poll-selected_",t=_.indexBy(o.polls,"id"),i=_.map(d.pollIds,function(e){return t[e]}),r=function(e,t){if(e&&t!==undefined)return e.numericResponses?parseInt(t,10):t},n=function(){var e=o.id,t=d.id,n=S();mm(e,t,y(),d.seenReason,o.language),Dg(e,t,"advanced",n),dh({guideId:e,guideStepId:t,time:n,state:"advanced"})},u=function(){var e=k("._pendo-poll_"),t=k("._pendo-poll-message_");t.length?(e.addClass("_pendo-poll-submitted_"),t.css("margin-top:-"+t.height()/2+"px"),n()):d.advance()},d.after("render",function(){var n=k("._pendo-poll_")[0],e=k("._pendo-poll-submit_",n)[0];e?d.attachEvent(e,"click",function(e){var t=k("._pendo-poll-question_",n),t=_.map(t,function(e,t){e=k("textarea,input:text,select,input:radio:checked",e);if(e&&e.length&&e[0].value)return{pollId:(t=i[t]).id,value:r(t,e[0].value)}});d.response(_.compact(t)),u()}):d.attachEvent(n,"click",function(e){var t,e=k(Nr(e)).closest("._pendo-poll-question_ :button,._pendo-poll-question_ :radio");e.length&&(t=i[0],e=r(t,e.attr("data-pendo-poll-value")||e.attr("value")),d.response([{pollId:t.id,value:e}]),u())})}),d.after("render",function(){var i=k("._pendo-poll_ ._pendo-poll-npsrating_")[0],r=k("._pendo-poll_ ._pendo-poll-submit_"),o="_pendo-poll-npsrating-selected_";i&&(r.css({display:"none"}),d.attachEvent(i,"click",function(e){var t=k(":radio:checked",i)[0],n=k("._pendo-poll_");k("label",i).removeClass(a),n.removeClass(o),t&&(k('label[for="'+t.id+'"]').addClass(a),n.addClass(o),r.css({display:""})),_.isFunction(d.resize)&&d.resize()}))}),d.after("show",function(){s=(new Date).getTime()}),d.response=function(e,r){e&&e.length&&(nv(),_.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=wm("pollResponse",d.guideId,d.id,y(),undefined,o.language);_.extend(i.props,{poll_id:e.pollId,poll_response:e.value,duration:(new Date).getTime()-s},r),n&&n.attributes&&n.attributes.type&&_.extend(i.props,{poll_type:n.attributes.type}),Zm.push(i)}),Zm.flush())}),d}p0.MAX_ERRORS_PER_MINUTE=30;var m0={show:function(t,n){if(Ed()&&_.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return v0(t,n);if(!f.getters["frames/hasFrames"]()||f.getters["frames/isGuideInThisFrame"]()(e)){e=function(e,t){if(e.getGuide().isModule){e=P.getResourceCenter();if(e)return v0(e.steps[0],t)}}(t,n);if(wt(e))return e.then(function(){return v0(t,n)}).then(function(e){return!!e||y0(t,n)});e=v0(t,n);if(wt(e))return e.then(function(e){return!!e||y0(t,n)});if(e)return!0}return y0(t,n)},showLocal:v0};function v0(e,t){return lc.hasContent(e)&&ic.valid(e)?(e._show(t),e.isShown()):!(lc.hasContent(e)&&ic.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(nd()))&&(e.lock(),lc.fetchContent(e).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&ic.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(Nm()?(C.info("guides are loading.",{contexts:["guides","loading"]}),!1):(e.unlock(),e._show(t),e.isShown()))}))}function y0(t,e){var n=t.getGuide();return!(!f.getters["frames/hasFrames"]()||!f.getters["frames/isGuideInDifferentFrame"]()(n))&&(t.lock(),f.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 b0(u){var e=!1,t=!1;return this.guide=u,this.elements=[],this.handlers=[],this.attributes=this.attributes||{},(this.domUrl||this.domJson)&&(this.eventRouter=new xv),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=_.indexOf(t,this),i=tp();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:ut(i),template:r};return this.template||(this.template=_.template(this.content||"")),uc(this.template(o).replace(/#_pendo_g_undefined/g,"#_pendo_g_"+this.id).replace(/pendo-src="([^"]+)"/g,function(e,t){return/<%=[^>]+>/.test(t)?e:'src="'+t+'"'}))}catch(a){return this.content}},this.isLocked=function(){return e},this.lock=function(){e=!0},this.unlock=function(){e=!1},this.isTimedOut=function(){return t},this.timeout=function(){t=!0},this.isRendered=function(){return this.elements&&0<this.elements.length},this.isShown=function(){return this.isRendered()||this.isLocked()},this.canShow=function(){return!_.get(this,"guide.attributes.isAnnouncement")&&!!u.canShowOnDevice()&&!this.isShown()&&!_.get(this,"stepIneligibleForApp")&&this.canShowOnPage(nd())&&im(this)},this.canShowOnPage=function(e){e=rd(this.regexUrlRule,e);return jh()&&v.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||Ed()||df())&&(e=nd(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!rd(this.regexUrlRule,e)?(pd.addGuide(u),t.error=new Error('attempted display on page "'+e+'"'),C.critical("pendo.io page rule exception",t),1):f.getters["healthCheck/isMissingPageRule"]()(this)?(pd.addGuide(u),t.error=new Error('missing regexUrlRule"'),C.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(pd.addGuide(u),t.error=new Error("missing regexUrlRule for page "+this.pageId+'"'),C.critical("pendo.io page rule exception",t),1)))},this.render=function(){var e=this;if(this._preRenderHealthCheck()){if(e.domJson)return u.skipResourceCenterHomeView&&u.moduleIdToReplaceHomeViewWith&&u.hasEligibleNativeIntegrationModule?(t=_.find(dd(),function(e){return e.id===u.moduleIdToReplaceHomeViewWith}),n=_.get(t,"attributes.resourceCenter.integrationProvider"),P.renderNativeIntegration(n,t)):u.continueToNativeModule?P.handleNativeIntegrationContinuation(u):(_.get(u,"attributes.resourceCenter")&&Oh(P.getResourceCenter(),Nh),u.isModule?U.renderResourceCenterModule(u,!1):(n=U.renderGuideFromJSON(e.domJson,e),_.get(u,"attributes.resourceCenter")&&(t=u.activeModule?u.activeModule.activeStep().domJson.props.id:e.containerId,t=e.guideElement.find("#"+t),P.adjustResourceCenterWidth(t)),n));var t=e.attributes.width,n=e.attributes.height,i=E.TOOLTIP_ARROW_SIZE,r="_pendo-group-id-"+u.id+"_",r=k(document.createElement("div")).attr("id",sm(e)).addClass(Rg+" "+r),o=k(document.createElement("div")).addClass("_pendo-guide-content_").html(e.getContent()),a=k(document.createElement("div")).addClass("_pendo-guide-container_"),s=k(document.createElement("div")).addClass("_pendo-backdrop_");r.width(t),r.height(n),a.css({left:i,top:i}),e.isEditable&&o.attr("contenteditable","true"),o.appendTo(a),a.appendTo(r),u&&_.isFunction(u.isOnboarding)&&u.isOnboarding()&&r.addClass("_pendo-onboarding_"),e.overlayDiv=s,e.guideElement=r}},this.teardown=function(){C.info("guide step teardown",{contexts:["guide","render"]}),_.each(this.handlers,function(e){Qu(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,_.has(this.attributes,"imgCount")&&(this.attributes.imgCount=0),this.hiddenElements&&(_.each(this.hiddenElements,e=>{try{e&&"function"==typeof e.removeAttribute&&e.removeAttribute("aria-hidden")}catch(t){C.error("unable to remove aria-hidden from element",{error:t})}}),this.hiddenElements.length=0,this.hiddenElements=null),Wl(this.id)},this.show=function(e){var t;if(!_.contains(["auto","continue"],e)||!f.getters["healthCheck/isRedisplay"]()(this))return(t=m0.show(this,e))&&t["catch"]&&t["catch"](_.noop),t;f.dispatch("healthCheck/fixSeenStateAndLogError",{step:this,reason:e})},this.redraw=function(){var e,t,n,i,r,o=this;o.guideElement&&!E.designer&&(t=(e=_.get(u,"attributes.resourceCenter"))&&P.isFullyCustom(u),n=u.activeModule?u.activeModule.activeStep().domJson.props.id:o.containerId,i=o.guideElement.find("#"+n),r=u.activeModule&&"AnnouncementsModule"===_.get(u.activeModule,"attributes.resourceCenter.moduleId"),v.beforeUpdate.trigger(o),t||r||(U.recalculateGuideWidth(n,o.guideElement),U.adjustGuideContentWidth(n,o.guideElement)),e?(P.adjustResourceCenterWidth(i),r&&u.activeModule.guidesInModule?_.forEach(u.activeModule.guidesInModule,function(e){var t;!_.isUndefined(e.steps[0].attributes.imgCount)&&0!==_.get(e.steps[0],"attributes.imgCount")||(t=e.steps[0].id,t=k(i).find("#pendo-g-"+t)[0]?t:e.id,U.adjustGuideContentWidth("pendo-g-"+t,o.guideElement),U.flexAllThings("pendo-g-"+t,o))}):U.flexAllThings("pendo-resource-center-container")):U.flexAllThings(n,o),t||U.recalculateGuideHeight(n,o.guideElement),v.updated.trigger(o))},this._show=function(e){v.beforeGuideShow.trigger(this,e),this.canShow()&&(!Ed()&&u.control?this.hasBeenControlled()||this.onControlGuide("control"):v.beforeMount.trigger(this).cancel||(this.render(),this.isShown()&&this.onShown(e)))},this.shouldStartTimer=function(){return u.canShowOnDevice()&&!u.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;Ed()||(this.seenReason=e,Mg(S()),t=this.getStepPollTypes(u,this),this.hasBeenControlled())||(hm(this.guideId,this.id,y(),e,u.language,t),_.each(u.steps,function(e){e.seenState="notSeen"}))},this.onShown=function(r,e=!0){var t,n,i=this;i.overrideElement&&(k.addClass(i.overrideElement,"triggered"),i.overrideElement.checkAriaExpanded)&&i.overrideElement.checkAriaExpanded(),Ed()||(i.seenReason=r,i.seenState="active",Mg(S()),t={color_mode:i.isDarkMode?"dark":"default",last_updated_at:i.lastUpdatedAt},(n=this.getStepPollTypes(u,i))&&(t.step_poll_types=n),e&&fm(i.guideId,i.id,y(),r,u.language,t),f.dispatch("guideState/updateLastGuideStepSeen",{guideId:u.id,guideStepId:i.id,time:Ng,state:i.seenState,seenReason:r,visitorId:y()}),_.each(u.steps,function(e){var t,n,i;"snoozed"===e.seenState&&(e.snoozeEndTime=0,t=u.id,e=e.id,n=y(),i=u.language,t=wm({type:"guideSnoozeCanceled",guideId:t,stepId:e,visitorId:n,seen_reason:r,language:i}),Im(t,null,!0),v.guideSnoozeCancelled.trigger(t))}),fc.runCustomScripts(i,u)),f.dispatch("frames/guideStepShownInFrame",{guideId:u.id,stepId:i.id,isShown:i.isShown()}),i.guideElement&&i.guideElement[0]&&i.attachEvent(i.guideElement[0],"focusin",function(e){"TEXTAREA"!==e.target.tagName&&"INPUT"!==e.target.tagName||(E.ignoreResize=!0,Ut(function(){E.ignoreResize=!1},1e3))})},this.hide=function(e){var t=this;t.unlock(),v.beforeUnmount.trigger(t),t.teardown(),_.each(t.elements,function(e){ea(e)}),v.unmounted.trigger(t),t.attributes&&e&&e.stayHidden&&(t.attributes.stayHidden=e.stayHidden),t.elements.length=0,t.element=null,t.guideElement=null,t.overrideElement&&(k.removeClass(t.overrideElement,"triggered"),t.overrideElement.checkAriaExpanded)&&t.overrideElement.checkAriaExpanded(),f.dispatch("frames/guideStepHiddenInFrame",{guideId:u.id,stepId:t.id})},this.advance=function(){"advanced"===this.seenState&&!this.isRendered()||Yg(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||Kg(this)},this.isPoweredByEnabled=function(){return!0!==this.hideCredits},this.isSnoozed=function(){var e="snoozed"===this.seenState,t=!this.snoozeEndTime||(new Date).getTime()>this.snoozeEndTime;return e&&!t},this.shouldRepeat=function(){return!!this.lastSeenAt&&u.redisplay&&!u.outsideTimebox()&&!this.isSnoozed()&&S()-this.lastSeenAt>=u.redisplay.interval&&!u.hasReachedMaxDismissals()},this.hasBeenControlled=function(){return u.isControlGroup()&&"notSeen"===this.seenState},this.attachEvent=function(e,t,n){var i={element:e,type:t,fn:n};l(e,t,n,!0),this.handlers.push(i)},this.searchFor=function(e){return!(e.length<3)&&ht(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&Xc.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&jc(this)},this.getType=function(){return this.domJson?_.get(this,"attributes.calculatedType"):this.type},this}function w0(){return this.after("render",function(){var e,t;F&&F.contentWindow&&F.style&&(e=_.first(k('#pendo-resource-center-container, [id^="pendo-g-"]')))&&(e=R(e))&&(t={mutation:"preview/setIsPreviewBarTop",payload:{isPreviewBarTop:!1}},"0px"===e.top?(F.style.top="auto",F.style.bottom="0px",F.contentWindow.postMessage(t,location.origin)):"0px"!==e.bottom&&F.style.top||(F.style.top="0px",F.style.bottom="auto",t.payload.isPreviewBarTop=!0,F.contentWindow.postMessage(t,location.origin)))}),this}b0.isGuideStep=function(e){return!!e&&_.isFunction(e.render)};const S0={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===St.Critical?(i=window.pendo_options||{},Sy(e),!1!==E.logStackTraces&&!1!==i.logStackTraces&&n.stack?Mo(e+`
9
+ `+n.stack):No(e)):t.level===St.Error?Sy(e):t.level===St.Warn&&(i=[e],vy("warn"))&&console.warn.apply(console,i)}}},update(e,t){t&&(e.getters.hasLogged()(t)||e.commit("addError",t),e.commit("incrementError",t))}},mutations:{addError(e,t){var{message:n,level:i}=t,r=t.hashCode();e.errors[r]={count:0,stack:t.error.stack,message:n,level:i,hash:r}},incrementError(e,t){e.errors[t.hashCode()].count++,e.errorCount++}},getters:{hasLogged(t){return function(e){return!!t.errors[e.hashCode()]}}}},E0=h.getSession(),I0="pendo_cd";class _0{constructor(){this.name="CloneDetection"}initialize(){if(_.isFunction(window.BroadcastChannel))return h.registry.addSession(I0),this.tabId=gn.getTabId(),this.id=pt(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=E0.getItem(I0)||"";-1===t.indexOf(e)&&(t+="-"+e),E0.setItem(I0,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()}isClonedSession(e){return this.startCloneDetectionTimer(),-1===(E0.getItem(I0)||"").indexOf(e)}clearCloneDetectionValue(){E0.removeItem(I0),this.cloneDetectionTimer=null}startCloneDetectionTimer(){this.stopCloneDetectionTimer(),this.cloneDetectionTimer=Ut(_.bind(this.clearCloneDetectionValue,this),1e4)}stopCloneDetectionTimer(){this.cloneDetectionTimer&&(clearTimeout(this.cloneDetectionTimer),this.cloneDetectionTimer=null)}clearClonedStorage(){E0.clearPendo(),gn.setParentTabId(this.tabId),this.tabId=gn.newTabId(),v.trigger("tabIdChanged:self"),f.dispatch("frames/setTabId",this.tabId)}sendMessage(e,t){this.channel.postMessage(Object.assign({type:e},t))}}let C0=new _0;function x0(e){f.dispatch("frames/setReady",{isReady:!0})}var T0=["unknown","hidden","visible"];function k0(e){return"visible"===e.visibility||"unknown"===e.visibility}A0={};var A0,Li={actions:{init(e){var t,n,i=e.state;i.initialized||(h.registry.addSession(sn),h.registry.addSession(un),t=gn.addTracerIds({}),n=we(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),v.ready.on(x0),v.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&D.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),C0.initialize(),e.commit("setInitialized",!0))},changeGuideList(e,t){e=e.state,t=O0(t);D.postMessage({action:"frames/receiveGuideList",frameId:e.frameId,guides:t,autoOrdering:E.autoOrdering||[]})},receiveGuideList(e,t){e.commit("setGuideList",t),t.frameId===e.state.frameId&&e.commit("setGuidesLoaded"),N0(e.state)},join(e){var t,n,i,r;e.state.disabled||(Ch(),t=e.state,n=window.top==window,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:O0(md())}),(r=[].concat(b.get("leaderKey"))).length||t.agentInstallType!==ye||(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},i)}))},receiveFrame(e,t){var n,i=e.state;if(E.designerv2.launched&&(n=Object.assign({},Nf.hostConfig,{selectionOnly:!0}),D.postMessage({action:"frames/addSelectionModeToFrames",options:n})),!i.frames[t.frame.id]||!i.frames[t.frame.id].id){if(e.commit("addFrame",t.frame),e.commit("setGuideList",{frameId:t.frame.id,guides:_.toArray(_.get(t,"frame.guides",[]))}),t.frame.isTop){for(var r=e.getters.leaderKeyPreference(),o=_.filter(i.frames,e=>e.isTop);r.length;){var a=r.shift(),s=_.filter(o,e=>e.apiKey===a);if(s.length){o=s;break}}e.commit("setTopId",o[0].id)}e.commit("setLeadershipMode",t.frame.agentInstallType),t[ef]&&e.dispatch("receiveStartPreview",t),D.postMessage({action:"frames/receiveFrame",frame:i.frames[i.frameId],"pendo-preview":e.rootState.preview.preview}),e.dispatch("waitThenElectLeader")}},leave(t){var e=t.state;D.postMessage({action:"frames/removeFrame",frameId:e.frameId}),_.each(e.frames,function(e){t.commit("removeFrame",e.id)}),D.close()},removeFrame(e,n){e.getters.hasFrame()(n.frameId)&&(e.commit("removeFrame",n.frameId),_.each(A0,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete A0[t])}),e.dispatch("electLeader"))},waitThenElectLeader:_.debounce(function(e){e.dispatch("electLeader")},50),electLeader(e){var t=e.state,n=t.frames,i=e.getters.leaderKeyPreference();if(i.length)for(;i.length;){var r=i.shift(),o=_.filter(t.frames,e=>e.apiKey===r);if(o.length){n=o;break}}var a=_.find(n,e=>e.isTop);a?e.dispatch("followLeader",{leaderId:a.id}):(a=_.min(n,"joinedAt"),e.dispatch("followLeader",{leaderId:a.id})),N0(e.state),e.getters.isLeader()&&v.childFrameJoined.trigger()},followLeader(e,t){var n=e.state,i=n.leaderId,r=t.leaderId;e.commit("setLeaderId",t.leaderId),i!==r&&v.leaderChanged.trigger({frameId:n.frameId,oldLeaderId:i,newLeaderId:r})},showGuideStep(t,n){var i=_.filter(t.state.frames,function(e){return e.id!==t.state.frameId&&"hidden"!==e.visibility&&e.guides&&e.guides[n.guideId]});return function r(){var e=i.shift();return e?t.dispatch("requestShowGuideStepInFrame",_.extend({frameId:e.id},n)).then(function(e){return e.error?m.reject(e.error):e.isShown?e:r()}):m.resolve({isShown:!1})}()},requestShowGuideStepInFrame(e,t){var n=t.frameId+"/"+pt(32),i=m.defer();return A0[n]=i,D.postMessage(_.extend({action:"frames/showGuideStepInFrame",requestId:n},t)),i.promise},showGuideStepInFrame(t,n){var e;function i(e){t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:e})}t.state.frameId===n.frameId&&((e=(e=N(n.guideId))&&e.findStepById(n.stepId))?wt(e=m0.showLocal(e,n.reason))?e.then(i)["catch"](_.noop):i(e):t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:!1}))},guideStepShownInFrame(e,t){e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:t.isShown}),D.postMessage(_.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame(e,t){var n=A0[t.requestId];n&&(n.resolve(t),delete A0[t.requestId]),e.getters.isShownInFrame()(t.frameId,{id:t.stepId})!==t.isShown&&e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:t.isShown})},hideGuides(e,t){t=_.isArray(t)?t:[],D.postMessage({action:"frames/receiveHideGuides",frameId:e.state.frameId,guideIds:t}),e.commit("hideGuides")},receiveHideGuides(e,t){e.state.frameId!==t.frameId&&(t.guideIds.length?_.each(_.compact(_.map(t.guideIds,N)),function(e){e.hide()}):Gg(),e.commit("hideGuides"))},guideStepHiddenInFrame(e,t){var n=e.getters.isShownInFrame()(e.state.frameId,{id:t.stepId});e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:!1}),D.postMessage(_.extend({action:"frames/receiveGuideStepHiddenInFrame",frameId:e.state.frameId},t)),n&&e.dispatch("fixDoubleDisplay",t)},receiveGuideStepHiddenInFrame(e,t){e.state.frameId!==t.frameId&&e.getters.isShownInFrame()(t.frameId,{id:t.stepId})&&e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:!1})},fixDoubleDisplay(n,i){_.each(n.state.frames,function(e,t){t!==n.state.frameId&&n.getters.isShownInFrame()(t,{id:i.stepId})&&D.postMessage(_.extend({action:"frames/receiveHideGuideInFrame",frameId:t,guideId:i.guideId,stepId:i.stepId},i))})},receiveHideGuideInFrame(e,t){e.state.frameId===t.frameId&&(t=(e=N(t.guideId))&&e.findStepById(t.stepId))&&t.hide()},changeLastGuideStepSeen(e,t){D.postMessage({action:"frames/receiveLastGuideStepSeen",frameId:e.state.frameId,lastGuideStepSeen:t}),e.commit("updateLastGuideStepSeen",t),e.commit("healthCheck/updateStepState",{id:t.guideStepId,seenState:t.state},{root:!0})},receiveLastGuideStepSeen(e,t){var n;t.frameId!==e.state.frameId&&(n=e.state.frames[t.frameId],(n=_.get(n,"agentInstallType"))&&n!==e.state.agentInstallType&&delete t.lastGuideStepSeen.visitorId,e.dispatch("guideState/updateLastGuideStepSeen",t.lastGuideStepSeen,{root:!0}),e.dispatch("guideState/write",null,{root:!0}),t=(t=N((n=t.lastGuideStepSeen).guideId))&&t.findStepById(n.guideStepId))&&(t.seenState=n.state,t.seenReason=n.seenReason,t.lastSeenAt=n.time,n.dismissCount&&(t.dismissCount=n.dismissCount),n.snoozeEndTime&&(t.snoozeEndTime=n.snoozeEndTime),e.commit("updateLastGuideStepSeen",n),e.commit("healthCheck/updateStepState",t,{root:!0}))},changeThrottlingState(e,t){D.postMessage(_.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState(e,t){t.frameId!==e.state.frameId&&_.each(vm,function(e){t[e]&&bm(t[e],e)})},startPreview(e){D.postMessage({action:"frames/receiveStartPreview","pendo-preview":e.rootState.preview.preview})},restartPreview(e){D.postMessage({action:"frames/receiveRestartPreview","pendo-preview":e.rootState.preview.preview})},stopPreview(e,t){D.postMessage(_.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview(e,t){e.dispatch("preview/start",t[ef],{root:!0}),rf(window),yv()},receiveRestartPreview(e){var t=sf(O,lh());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview(e,t){mf({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=ya(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility(e,t){var n;!_.find(T0,function(e){return e===t.visibility})||(n=t.visibility,e.getters.frameVisibility()===n)||(e.commit("setFrameVisibility",{frameId:e.state.frameId,visibility:n}),D.postMessage({action:"frames/receiveFrameVisibility",frameId:e.state.frameId,visibility:n}))},receiveFrameVisibility(e,t){e.commit("setFrameVisibility",t)},addSelectionModeToFrames(e,t){t=t.options;Nf.launchInAppDesigner(t)},syncOptions(e,t){t.options&&D.postMessage({action:"frames/receiveOptions",frameId:e.state.frameId,options:t.options})},receiveOptions(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&t.options&&Zl(t.options)},syncIdentity(e,t){var n;(t.visitorId||t.accountId)&&({visitorId:t,accountId:n}=t,D.postMessage({action:"frames/receiveIdentity",frameId:e.state.frameId,visitorId:t,accountId:n}))},receiveIdentity(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&(t.visitorId||t.accountId)&&qn(t.visitorId,t.accountId)},setReady(e,t){e.commit("setReady",t.isReady)},receiveGuideSeen(e,t){t.frameId!==e.state.frameId&&v.guideSeen.trigger(t.guideSeen)},checkGuideEligibility(e,t){var{guideId:t,stepId:n,currentStepIndex:i,sourceFrame:r,promiseId:o}=t,t=N(t),n=t&&t.findStepById(n),a={};return t&&n?(0===i&&(i=kd(t))&&((i=_.first(Cr(i)))?ya(i)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),_.isFunction(n.canShowOnPage)&&!n.canShowOnPage(nd())&&(a.PAGE="mismatch"),n.elementPathRule&&((i=_.first(Cr(n.elementPathRule)))?ya(i)?n.elementContainsRulesList&&!om(i,n.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),n.triggerElementPathRule&&((i=_.first(Cr(n.triggerElementPathRule)))?ya(i)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),_.get(t,"attributes.embedConfig")&&(n=_.get(t,"attributes.embedConfig.selector"),(i=_.first(Cr(n)))?ya(i)||(a.EMBED_CONTAINER="notVisible"):a.EMBED_CONTAINER="notFound")):a.GUIDE="notFound",o&&r&&D.postMessage({errors:a,action:"frameEligibilityResponse",targetFrame:r,resolveId:o}),a},setTabId(e,t){e.commit("setTabId",t)}},mutations:{addFrame(e,t){var n=t.id;e.frames[n]=_.extend({},e.frames[n],t)},removeFrame(e,t){delete e.frames[t]},setGuideList(e,t){var n=t.frameId;e.frames[n]=_.extend({},e.frames[n],{guides:_.indexBy(O0(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!==ye&&(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&&!!k0(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&&!!k0(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToResourceCenter})}},isBroadcastChannel(e){return"BroadcastChannel"===e.channelType},channelType(e){return e.channelType},canShowRCBadge(e,t){var n,i;return t.leaderKey()!==E.apiKey?(n=_.filter(e.frames,function(e){return e.apiKey===E.apiKey}),(i=_.find(n,function(e){return e.isTop}))?e.frameId===i.id:(i=_.min(n,function(e){return e.joinedAt}),e.frameId===i.id)):_.any(e.frames,function(e){return e.isTop})?t.isTop():t.isLeader()},leaderKeyPreference(e){e=_.filter(e.frames,e=>e.leaderKey&&e.leaderKey.length);return 1===_.unique(_.map(e,e=>e.leaderKey.join(","))).length?[].concat(e[0].leaderKey):[]},getMyApiKey(e,t){return t.getMyFrame().apiKey},getMyFrame(e){return e.frames[e.frameId]},window(){return window}},state:{initialized:!1,frameId:null,leaderId:null,tabId:null,agentInstallType:null,leadershipMode:null,topId:null,frames:{},guidesLoaded:!1,channelType:null,ready:!1},requests:A0};function R0(e){var t=_.pick(e,"id","name","launchMethod","isMultiStep","steps","control","lastUpdatedAt","language","state","polls","redisplay");return t.attributes=_.pick(e.attributes,"overrideAutoThrottling","priority","isAnnouncement","resourceCenter","device","sharedServiceVersion","embedConfig"),t._shouldBeAddedToLauncher=_.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e._shouldBeAddedToLauncher||!1,t._shouldBeAddedToResourceCenter=_.isFunction(e.shouldBeAddedToResourceCenter)?e.shouldBeAddedToResourceCenter():e._shouldBeAddedToResourceCenter||!1,t.steps=_.map(e.steps,function(e){return _.pick(e,"id","guideId","type","seenReason","seenState","lastSeenAt","lastUpdatedAt","dismissCount","snoozeEndTime","regexUrlRule","pageId","elementPathRule","triggerElementPathRule","elementContainsRulesList")}),t}function O0(e){return _.map(e,R0)}function N0(t){var n=_.indexBy(_.filter(md(),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(ac).value(),e=_.toArray(n).concat(e).filter(Fm);_.sortBy(e,Dm),ev(e),ld(e),t.guidesLoaded&&0===_.size(_.get(t,"frames."+t.frameId+".guides",[]))&&xh()}var M0,n={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,Eh-t),Eh),t=Ut(P0,t),e.commit("setScheduledUpdate",t))},handleScheduledUpdate(e){e.dispatch("stopScheduledUpdate"),xh()},stopScheduledUpdate(e){e.state.scheduledUpdate&&(clearTimeout(e.state.scheduledUpdate),e.commit("setScheduledUpdate",null))},startObserverIfNeeded(e){e.state.useObserver&&!e.state.observing&&(e.getters.observer().addEventListener("mutation",L0),e.commit("setObserving",!0))},stopObserver(e){var t=e.getters.observer();t&&t.removeEventListener("mutation",L0),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setObserver(e,t){M0=t},setUseObserver(e){e.useObserver=!0},setObserving(e,t){e.observing=t},setNeedsUpdate(e){e.needsUpdate=!0},setScheduledUpdate(e,t){e.scheduledUpdate=t},startUpdate(e,t){Os.startTimer("guide-loop"),e.needsUpdate=!1,e.updateId=t},completeUpdate(e,t){Os.stopTimer("guide-loop"),e.updateId=null,e.updateCompleteTime=t}},getters:{now(){return S()},observer(){return M0}},state:{useObserver:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}};function L0(){f.dispatch("guideUpdate/documentChanged")}function P0(){f.dispatch("guideUpdate/handleScheduledUpdate")}F0=["advanced","dismissed","snoozed"];var F0,e={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){Mo(['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(F0,t.seenState)&&!_.contains(F0,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}},D0={state:{visitor:{},account:{},parentAccount:{},date:null,version:null,selfHosted:null},actions:{},mutations:{setMetadata(e,t){t&&(t.visitor&&(e.visitor=t.visitor),t.account&&(e.account=t.account),t.parentAccount&&(e.parentAccount=t.parentAccount),t.date&&(e.date=t.date),t.version&&(e.version=t.version),null!==t.selfHosted)&&(e.selfHosted=t.selfHosted)},clearAccount(e){e.account={}},reset(e,t){e.visitor={id:t.visitor_id},e.account={},e.parentAccount={},e.date=null,e.version=null,e.selfHosted=null}},getters:{metadata(e){return e},selfHosted(e){return e.selfHosted}}};const U0=h.getLocal();var G0="pendo-preview",B0="current-guide-preview",z0={state:{preview:null,designerPreview:null},actions:{start(e,t){e.commit("setPreview",t),e.dispatch("write")},restart(e,t){e.commit("updatePreview",{state:null}),e.commit("updatePreview",t)},update(e,t){e.commit("updatePreview",{state:t}),e.dispatch("write")},load(e){try{var t=e.getters.storage(),n=JSON.parse(t.getItem(G0)),i=(n.apiKey===E.apiKey&&e.commit("setPreview",n),t.getItem(B0));i&&e.commit("setDesignerPreview",JSON.parse(i))}catch(r){}},write(e){try{var t=e.getters.storage();e.state.preview?t.setItem(G0,JSON.stringify(e.state.preview)):t.removeItem(G0)}catch(n){}},exit(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview(e){e.commit("setDesignerPreview",null),e.getters.storage().removeItem(B0)},launchInAppDesigner(e,t){Nf.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 U0}}};const j0=(()=>{const n={isTop:undefined,isLeader:undefined,frameId:null,tabId:null,frames:{},autoOrdering:[],excludedGuides:[],throttling:{},enableEventLogging:!1,eventsCaptured:[],cspErrors:[],installType:null,doNotProcess:!1},a={TOP_DOWN:"top-down",BOTTOM_UP:"bottom-up"},s={debuggingEnabled:{type:a.TOP_DOWN,defaultValue:!1},guideLoopRunning:{type:a.BOTTOM_UP,defaultValue:!1},stepEligibilitySet:{type:a.BOTTOM_UP,defaultValue:{}},identity:{type:a.BOTTOM_UP,defaultValue:{}},location:{type:a.BOTTOM_UP,defaultValue:{}}};var e={init:(e,t)=>{e.commit("setFrameId",gn.getFrameId()),e.commit("setTabId",gn.getTabId()),e.commit("setInstallType",we());var n=Od()&&window.top===window;e.commit("setIsTop",n),e.commit("isLeader",Od()),n?(n=zh(),e.commit("debuggingEnabled",!0===n.enabled),n.enableEventLogging&&e.commit("enableEventLogging",!0)):D.postMessage({action:"debugger/join",frameId:e.state.frameId}),_.each(t.events,e=>o(e))},join:(n,e)=>{n.state.frameId!==e.frameId&&_.each(s,({type:e},t)=>{e===a.TOP_DOWN&&D.postMessage({action:"debugger/sync",frameId:n.state.frameId,fields:{[t]:n.state[t]}})})},sync:(i,e)=>{if(i.state.frameId!==e.frameId){const{frameId:r,fields:t}=e;_.each(t,(e,t)=>{var n;s[t]&&(n=s[t]["type"],n===a.TOP_DOWN&&i.state.isTop||n===a.BOTTOM_UP&&!i.state.isTop||i.commit("_sync_"+t,{value:e,frameId:r}))})}},enableEventLogging:(e,t)=>{e.commit("enableEventLogging",t)},eventCaptured:(e,t)=>{E.designerEnabled||df()||cf()||(e.state.isTop?e.commit("eventsCaptured",t):D.postMessage({action:"debugger/receiveEventCaptured",frameId:e.state.frameId,event:t}))},receiveEventCaptured:(e,t)=>{e.state.isTop&&e.commit("eventsCaptured",t.event)},clearEventsCaptured:e=>{e.commit("eventsCaptured",[])},onCspError:(e,t)=>{e.state.isTop?e.commit("cspError",t):D.postMessage({action:"debugger/recieveCspError",frameId:e.state.frameId,data:t})},recieveCspError:(e,t)=>{e.state.isTop&&e.commit("cspError",t.data)},checkGuideEligibility(e,t){const{guideId:i,response:n}=t;var t=_.filter(f.state.frames.frames,e=>e.guides&&e.guides[i]);t.length&&(t=_.map(t,n=>{var e=_.map(n.guides[i].steps,(e,t)=>D.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:n.id,stepId:e.id,currentStepIndex:t,guideId:i}));return m.all(e).then(e=>({frameId:n.id,frameVisibility:n.visibility,errors:_.map(e,e=>JSON.parse(e).errors)}))}),m.all(t).then(e=>e).then(e=>n(e))["catch"](e=>n({error:e})))}};const t={},u={setFrameId(e,t){e.frameId=t},setTabId(e,t){e.tabId=t},setIsTop(e,t){e.isTop=t},isLeader(e,t){e.isLeader=t},setInstallType(e,t){e.installType=t},stepEligibilitySet(e,t){var n=t["stepId"];e.stepEligibilitySet[n]=t},guideLoopRunning(e,t){e.guideLoopRunning!==t&&(e.guideLoopRunning=t)},identity(e,t){e.identity=t},location(e,t){e.location=t},debuggingEnabled(e,t){e.debuggingEnabled=t,t=t,e=e.isTop,n.debuggingEnabled!==t&&(t?(d(),c(),v.on("stepEligibility",i),v.on("guideUpdateComplete",p),v.on("guideLoopStopped",h),v.on("eventCaptured",o),v.on("identify",d),v.on("urlChanged",c),e&&(r(),v.on("guidesLoaded",r))):(v.off("stepEligibility",i),v.off("guideUpdateComplete",p),v.off("guideLoopStopped",h),v.off("eventCaptured",o),v.off("identify",d),v.off("urlChanged",c),e&&v.off("guidesLoaded",r)))},excludedGuides(e,t){e.excludedGuides=t},autoOrdering(e,t){e.autoOrdering=t},throttling(e,t){e.throttling=t},eventsCaptured(e,t){_.isArray(t)&&0===t.length?e.eventsCaptured=[]:e.debuggingEnabled&&e.enableEventLogging&&(e.eventsCaptured.unshift(t),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 i(e){e=e.data[0];f.commit("debugger/stepEligibilitySet",e)}function r(e){var t=_.map(ph.sortAndFilter(O,E.autoOrdering),e=>e.id);f.commit("debugger/autoOrdering",t||[]),f.commit("debugger/excludedGuides",E.excludedGuides||[]),f.commit("debugger/throttling",E.throttling||{})}function o(e){f.dispatch("debugger/eventCaptured",e.data[0])}function d(e){f.commit("debugger/identity",{visitorId:_.get(e,"data.0.visitor_id")||E.get_visitor_id(),accountId:_.get(e,"data.0.account_id")||E.get_account_id(),apiKey:E.apiKey})}function c(){f.commit("debugger/location",{href:Hr(),browserUrl:window.location.href})}function l(e){f.commit("debugger/guideLoopRunning",e)}const p=_.partial(l,!0),h=_.partial(l,!1);return _.each(s,({type:i,defaultValue:e},r)=>{n[r]=e,t[r]=e=>e[r];let o=u[r]||((e,t)=>{e[r]=t});u[r]=_.wrap(o,(e,t,n)=>{!t.isTop&&i===a.TOP_DOWN||(e(t,n),t.isTop&&i===a.BOTTOM_UP)||D.postMessage({action:"debugger/sync",frameId:t.frameId,fields:{[r]:n}})}),o=u["_sync_"+r]||o,u["_sync_"+r]=(e,{value:t,frameId:n})=>{e.frames[n]||(e.frames[n]={}),e.frames[n][r]||(e.frames[n][r]=s[r].defaultValue),o(e.frames[n],t),e.isTop||i!==a.TOP_DOWN||o(e,t)}}),{state:n,actions:e,getters:t,mutations:u}})(),H0=["src","href"],q0=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===H0.indexOf(t.toLowerCase()))return e;try{n=e,(i=document.createElement("a")).href=n;var r=new ei(i.href);return _.reduce([_.partial(s,a.transforms)],(e,t)=>t(e),r).href}catch(o){return C.critical(o),e}}}}}}(),W0={state:{transforms:[]},actions:{addNetworkTransform(e,t){e.commit("addTransform",t)}},mutations:{addTransform(e,t){e.transforms.push(t)},clearURLTransforms(e){e.transforms=[]}},getters:{getTransformedUrl(o){return function(e){if(_.size(o.transforms)<1)return e;try{var t=e instanceof ei?e:new ei(e,window.location.origin);return n=o.transforms,i=t,_.reduce(n,function(e,t){return t.applyTo(e)},i).href}catch(r){return C.critical(r),e}var n,i}}}};const V0=function(){const i="pendo-loader";let r,o,n;return{name:"IFrameMonitor",initialize:function(e,t){r=e,o=t,function(){o.ConfigReader.get("autoFrameInstall")&&o.Events.ready.on(l);o.ConfigReader.get("frameIdentitySync")&&(o.Events.metadata.on(h),o.Events.identify.on(f),o.Events.childFrameJoined.on(a))}(),n=o.ConfigReader.get("frameIdentityTopDownOnly")},teardown:function(){o.Events.ready.off(l),o.Events.metadata.off(h),o.Events.identify.off(f),o.Events.childFrameJoined.off(a)}};function a(){g()}function s(e){return e.ignoreIframeMonitor||e.pendo&&(e.pendo.initialize||e.pendo.iframeWaiting)||!!e.document.getElementById(i)}function u(e,t){var n;s(e)||((n=o.ConfigReader.getLocalConfig()).apiKey||(n.apiKey=r.apiKey),e.pendo={_q:[["initialize",n]]},(n=e.document.createElement("script")).src=t,n["async"]=!0,n.id=i,(t=e.document.getElementsByTagName("script")[0])&&t.parentNode?t.parentNode.insertBefore(n,t):(e.document.head||e.document.body).appendChild(n))}function d(e,t){e.pendo.iframeWaiting=!1,u(e,t)}function c(e){try{if(s(e))return}catch(n){return}var t=function(){var e=o.ConfigReader.get("selfHostedAgentUrl");if(e)return e;e=r.dom("script");const t=/\/pendo(\.\w+)?\.js$/;return(e=r._.find(e,e=>t.test(e.src)))&&e.src}();t?"complete"===e.document.readyState?u(e,t):(e.pendo={iframeWaiting:!0},e.document.addEventListener("DOMContentLoaded",r._.partial(d,e,t))):r.log("Unable to find agent url to install agent in frames","debug")}function e(){var t=r.dom("iframe").length;for(let e=0;e<t;e++)c(window.frames[e]);Ut(e,250)}function l(){e()}function p(){return!n||n&&o.store.getters["frames/isLeader"]()}function h(e){p()&&(e=null==(e=e.data)?void 0:e[0]).storeChanged&&o.store.dispatch("frames/syncOptions",{options:e.options})}function f(e){var t;g(null==(t=e.data)?void 0:t[0].visitor_id,null==(t=e.data)?void 0:t[0].account_id)}function g(e=y(),t=$n()){p()&&o.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}}();function J0(e,n){return e.length==n.length&&_.all(e,function(e,t){return e===n[t]})}class $0{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=Cr(n.selector)}catch(i){t=[]}t.length>this.maxTargets&&(t.length=this.maxTargets),J0(t,n.targets)||(n.targets=t,this.domActivation.detach(n,this.domActivation.targets),_.each(t,function(e){this.domActivation.attach(e,n,this.domActivation.targets)},this))}}handleProcessTimeExceeded(e){e=e.getContext();e&&C.warn("Element activated guide ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var K0,Z0,X0,Y0,Q0,eb,tb={name:"DOMActivation",key:X0="pendoTargetId",guides:Y0=[],targets:Q0={},reset:ab,init:ub,attach:function(n,i,e){var t=n[X0],r=t?e[t]:null;r||(t=t||"target"+_.uniqueId(),r={target:n,events:{}},e[t]=r,n[X0]=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(ob,_,t.guideIds),l(n,e="mouseover"===e?"mouseenter":e,t.fn),r.events[e]=t),t.guideIds[i.id]=1})},detach:rb,handler:ob,activates:sb,prefetch:db,initialize:function(e,t){(K0=t).Events.on("deliverablesLoaded",ab),t.Events.on("guideListChanged",nb),t.Events.on("guidesLoaded",ib),Dh(Z0=new $0(tb))},teardown:function(){Uh(Z0),K0.Events.off("deliverablesLoaded",ab),K0.Events.off("guideListChanged",nb),K0.Events.off("guidesLoaded",ib)}};function nb(){ab(),ub(dd())}function ib(){db(dd())}function rb(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)&&(Qu(n.target,t="mouseover"===t?"mouseenter":t,e.fn),delete n.events[t])}),_.size(n.events)<=0)&&(delete n.target[X0],n.target=null,delete t[e])}),delete t[i.id]}function ob(e,t){var n;!e.pendoActivatedGuide&&!k.data.get(e,"advanced")&&(n=b.get("adoptPrioritizeAdoptGuides"),t=_.compact(_.map(_.keys(t),N)),t=_.filter(t,function(e){return!(!e.steps||!e.steps.length||_.get(e,"attributes.dom.isOnlyShowOnce")&&e.steps[0].hasBeenSeen())}),t=_(t).chain().sortBy(function(e){return"staged"===e.state?0:1}).sortBy(function(e){e=e.isTraining;return n?e?0:1:e?1:0}).value(),t=_.find(t,function(e){var t=_.first(e.steps);return _.get(e,"attributes.resourceCenter",!1)&&e.isShown()?P.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||pm(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function ab(){_.each(Y0,function(e){rb(e,Q0),e.targets=[]}),Y0.length=0}function sb(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(nd())){var t=_.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=kd(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function ub(e){_.each(e,function(e){e=sb(e);e&&Y0.push(e)})}function db(e){b.get("disablePrefetch")||_.each(e,function(e){_.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&_.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent(!0)})}var cb=function(){(eb=eb||{dom:k,placeBadge:$h,showPreview:dm,stopGuides:Ch,removeAllBadges:Kh,_:_,sizzle:Cr,tellMaster:Xa,tell:Xa,log:by,attachEvent:l,createLauncher:_.constant({}),removeLauncher:_.noop,addGuideToLauncher:_.noop,updateLauncherContent:_.noop,DEFAULT_TIMER_LENGTH:Eh,getOffsetPosition:Qo,getScreenDimensions:Zo,registerMessageHandler:za,whenLoadedCall:td,loadResource:La,loadGuideCss:$m,GuideFactory:ac,GuideStep:sc,extractElementTreeContext:Hu,previewGuideFromJSON:U.previewGuideFromJSON,hidePreviewedGuide:U.hidePreviewedGuide,shadowAPI:oi,getTarget:Nr,pullContentsFromTargetElement:rm,doesElementMatchContainsRules:om,doesElementContentMatchRule:am,getGuideAttachPoint:_d}).areGuidesEnabled=!av(),E.designer||(E.designer=eb)},lb=function(){var r,o,i;let a;return{name:"DesignerConnect",initialize:function(e,t){r=e,o=t,ts()||za("connect",n);za("pendo-designer-launch::launch",d),za("pendo-preview::launch",c),e.app_name=document.title,(Ya()||window.opener)&&window.addEventListener&&(r.log(e.app_name+": listening to messages"),window.addEventListener("message",Da,!1));window.opener&&r._.isFunction(window.opener.postMessage)&&window.opener.postMessage({type:"pendo::ready"},"*");r.onConnectMessage=n},teardown:function(){window.removeEventListener&&window.removeEventListener("message",Da,!1),s(),ja("connect"),ja("pendo-designer-launch::launch"),ja("pendo-preview::launch"),a&&(o.Events.appUnloaded.off(a),a=undefined);i=i&&undefined},onConnectMessage:n,disconnectDesigner:s,launchDesignerListener:d,launchPreviewListener:c,sendToken:u};function n(e,t){var n,i;r.designer||(n=t.origin,r.stopGuides(),r.buffers.lock(),i=t.source,Na=i,r.designerv2.hostConfig||(o.store.dispatch("frames/leave"),a=r._.partial(s,i,n),o.Events.appUnloaded.on(a)),cb(),Xa(t.source,{status:"success",type:"connect"},n),Ja("selection.js")&&(r.log("Designer Modules already loaded."),Xa({type:"ready"},n)),o.Events.designerLaunched.trigger())}function s(e,t){r.buffers.unlock(),E.designer&&(E.designer=null,delete E.designer),e&&Xa(e,{type:"unload"},t)}function u(e,t){var n;i&&(n={token:i,type:"pendo-designer-launch::set-token"},t.source.postMessage(n,t.origin),i=undefined)}function d(e,t){var n,t=t.data.token;t&&(i=t,za("pendo-designer-launch::get-token",u),n=t.DADesigner?"da-designer":"in-app-designer",n={lookaside:t.baseUrl,host:t.host,target:t.target||"latest",DADesigner:!!t.DADesigner,gcsBucket:t.gcsBucket||n,forceNativeDesigner:!!t.forceNativeDesigner,sidebarDesigner:!!t.sidebarDesigner},r.designerv2.launchInAppDesigner(n))}function c(e,t){var n=t.data.config.preferredAgentInstallType;n&&n!==we()?r.log("Skipping preview launch due to agent install type mismatch."):(n=r._.extend({},t.data.config,{origin:t.origin}),fo()&&(n.apiKey=r.apiKey),o.store.dispatch("preview/exitDesignerPreview"),o.store.dispatch("preview/start",n),rf(window)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:r.apiKey,accountId:r.accountId},t.origin),yv(),o.store.dispatch("frames/startPreview")))}}();const pb="__sg__";fb="promotedAgentMetadataConfigurations",gb=[],mb={},vb={};var hb,fb,gb,mb,vb,yb={name:"PromoteMetadata",initialize:function(e,t){if(gb=(hb=t).ConfigReader.get(fb),vb={},hb.agentStorage.registry.addLocal(pb,{isSecure:!0,serializer:JSON.stringify,deserializer:Lt}),Fn())try{mb=hb.agentStorage.read(pb)}catch(n){_b()}gb&&gb.length&&(hb.Events.on("metadata",Sb),hb.Events.on("eventCaptured",xb),hb.Events.on("identify",Eb))},teardown:function(){hb.Events.off("metadata",Sb),hb.Events.off("eventCaptured",xb),hb.Events.off("identify",Eb)},getPromotedMetadata:function(){return gb},hasPromotedMetadataKind:bb,setSchemaGroup:Sb,getSchemaGroup:wb,resetSchemaGroup:Ib,resetCachedSchemaGroup:_b};function bb(t){return _.some(gb,function(e){return e.kind===t})}function wb(){return vb}function Sb(e){var t;e?(e=e.data[0]["options"],e&&(t=e)):t=tp(),vb=function(r){if(Fn())try{var e=hb.agentStorage.read(pb);mb=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}(mb=e)}catch(t){_b()}var o=vb;_.each(["visitor","account","parentAccount"],function(e){var t=bb(e),n=!_.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!_.isEmpty(mb)&&_.isEmpty(Is.get())&&(o[i]=Cb(mb[i],e)),n)&&(t=Cb(r[e],e),_.isEmpty(t)||(o[i]=Object.assign(Object.assign({},o[i]),t)))}),Fn()&&hb.agentStorage.write(pb,o);return o}(t)}function Eb(e){e=e.data[0];_.get(e,"wasCleared")&&(hb.agentStorage.clear(pb),Ib())}function Ib(){vb={}}function _b(){mb={}}function Cb(e,i){var r={};return e&&_.each(e,function(e,t){var n=t.toLowerCase();Boolean(_.find(gb,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function xb(e){e=e.data[0];e&&(_.isEmpty(vb)&&Sb(),_.isEmpty(vb)||("track"===e.type?e.props.__sg__=vb:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=vb)))}function Tb(e,t,n){this.element=e,this.method="element"==t?"click":"hover"==t?"mouseover":t,this.step=n,this.guide=n.getGuide()}Tb.prototype.add=function(){0===_.indexOf(this.guide.steps,this.step)&&!Tb.shouldAttachHandler(this.guide,this.method)||bd(this.guide)&&!wd(this.guide)||this.setupElementEvent(this.element,this.method)},Tb.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},Tb.prototype.setupElementEvent=function(e,t){this.advanceFn||(this.advanceFn=_.compose(_.bind(this.teardownElementEvent,this,e,t),_.bind(this.step.advance,this.step))),Tb.attach(this.step,e,t,this.advanceFn)},Tb.prototype.teardownElementEvent=function(e,t){C.info("detach onGuideAdvanced",{contexts:["guide"]}),Qu(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},Tb.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||tb.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector};var kb=null,Ab=function(){return Id()?yd:vd},Rb=function(e){return"#_pendo_g_"+e.id},Ob=function(e,t){kb=null;var n,i,r,o,e=Qo(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(Ab()),o=zb(e,o,i,r),t&&(t.dim=o),n.css({width:o.width,height:o.height,left:o.left,top:o.top}),e.fixed&&n.css({position:"fixed"}),k("._pendo-guide-container_",n).addClass(o.arrowPosition).css({top:o.content.top,left:o.content.left,width:o.content.width,height:o.content.height}),Nb(n[0],o),n[0])},Nb=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=_.chain(n).filter(function(e){return e!==o}).map(function(e){return"border-"+e+"-width:"+E.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=k("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),u=k("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");_.each(n,function(e){s.removeClass(i+e+"_").removeClass(e),u.removeClass(r+e+"_").removeClass(e)}),s.addClass(i+o+"_").addClass(o).css(a+"top:"+t.arrow.top+"px;left:"+t.arrow.left+"px;"),u.addClass(r+o+"_").addClass(o).css(a+"top:"+t.arrow.border.top+"px;left:"+t.arrow.border.left+"px;"),k(e).append(s).append(u)},Mb=function(e,t){t===undefined&&(t=od),e.element=xd(e);var n=e.element;if(!n)return C.info("No element found for step: "+e.id),null;wa(n);var i=Ob(n,e);return null===i?null:(i.id=E.getTooltipDivId(e),k(i).appendTo(_d()),t.push(i),l(i,"mouseover",_.partial(k.addClass,i,"mouseover")),l(i,"mouseout",_.partial(k.removeClass,i,"mouseover")),Ad(n,i),Ub(e),n)},Lb=null,Pb=null;var Fb=null,Db={top:"north",left:"east",bottom:"south",right:"west"},Ub=function(e){try{var t,n,i,r,o,a,s,u;e.attributes&&e.attributes.blockOutUI&&e.attributes.blockOutUI.enabled&&(t=e.attributes.blockOutUI,(n=[]).push(e.element),i=Nc(n=n.concat(_.compact(_.flatten(_.map(t.additionalElements,function(e){return _.toArray(k(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=Oc(a=Rc(),i,o),h=i,f=!_.isEqual(h,Lb),Lb=h,f||(l=a,p=!_.isEqual(l,Pb),Pb=l,p)||(d=s,c=!_.isEqual(d,Fb),Fb=d,c))&&(u={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(u["background-color"]=t.bgColor),t.opacity&&(u.opacity=t.opacity),_.each(s,function(e,t){t=Db[t],e=_.extend({},e,u),t=k("div._pendo-guide-tt-region-block_._pendo-region-"+t+"_")[0]||Gb(t),k(t).css(e)}))}catch(g){C.info("Failed to add BlockOut ui",{contexts:["error"]})}var d,c,l,p,h,f},Gb=function(e){e=k(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");k("body").append(e)},Bb=function(e){var t=_.isEqual(e,kb);return kb=e,!t},zb=function(e,t,n,i){var r=E.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=Zo();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=jb(o,e,a,i=i||"auto"),o=Hb(o,e,a,i),o=qb(o,e,a)},jb=function(e,t,n,i){return e.arrow.hbias=Kc(t,n,i),e},Hb=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-So(),t=(r=t.left-Eo())+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},qb=function(e,t,n){var i,r,o,a=e.height,s=e.width;return je()?He(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=_e(9,6)?6:2,i=-1):"bottom"==e.arrowPosition&&(e.top=t.top-a,e.arrow.top=a-E.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=_e(9,6)?6:0,e.arrow.top+=8==Ce?-1:0,i=1),r=10+E.TOOLTIP_ARROW_SIZE,o=s-3*E.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==Vc?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==Jc?(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==Vc?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=_e(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==Jc&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=_e(10,6)?5:0,e.arrow.left+=7==Ce&&6<=xe?1:0,e.arrow.border.left=e.arrow.left+1),e.top=t.top-a/2+t.height/2,e.arrow.top=a/2-E.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e)},Wb=430,Vb=200,Jb=15;function $b(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||E.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||E.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.getTriggers=function(e){var t=this,n=t.element||xd(t);return!n&&e?[]:(e=(t.advanceMethod||"").split(","),this.triggers=_.map(e,function(e){return new Tb(n,e,t)}),this.triggers)},this.removeTrigger=function(e){this.triggers=_.without(this.triggers,e),0===this.triggers.length&&(this.triggers=null)},this.canShow=function(){return!tm(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(nd())&&im(t)},this.after("render",function(){Mb(this,this.elements)&&(_.each(this.getTriggers(),function(e){e.add()}),Xc.attachScrollHandlers(this,this.onscroll))}),this.reposition=function(){var e=this.attributes.width,t=this.attributes.height,n=this.attributes.layoutDir,i=this.guideElement,r=k("._pendo-guide-container_",i),o=Qo(this.element),t=zb(o,t,e,n);r.removeClass("top right bottom left").removeClass("_pendo-guide-container-top_ _pendo-guide-container-right_ _pendo-guide-container-bottom_ _pendo-guide-container-left_").addClass(t.arrowPosition).addClass("_pendo-guide-container-"+t.arrowPosition+"_"),k("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),Nb(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,Ub(this)},this.onscroll=function(e){ya(e.element)?(e.reposition(),$o(e.elements[0],"display:block")):$o(e.elements[0],"display:none")},this.teardownElementEvent=function(){_.each(this.triggers,function(e){e.remove()})},this.after("hide",function(){k("._pendo-guide-tt-region-block_").remove(),Fb=Pb=Lb=null})),this}var Kb=function(e,t){var n=!!k("._pendo-backdrop_")[0];return _.get(t,"overlayDiv[0]")||(t.overlayDiv=k(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(_d())),je()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&k(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},Zb=function(e){var t=e.guideElement,n=E.TOOLTIP_ARROW_SIZE,i=e.attributes.height,e=e.attributes.width,e=Math.floor(e/2),i=Math.floor(i/2);t.addClass("_pendo-guide-lb_").css({top:"50%",left:"50%","margin-top":-i,"margin-left":-e}),k("._pendo-guide-container_",t).css({bottom:n,right:n}),je()&&t.css({position:"absolute"})},Xb=function(e,t){t===undefined&&(t=od),e.element=xd(e),Zb(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(Kb(n,e),e.guideElement);t.push(n[0]),n.appendTo(_d())},Yb=function(e,t){t===undefined&&(t=od),e.element=xd(e),e.guideElement.addClass("_pendo-guide-mobile-lb_");var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=Kb(n,e),e=e.guideElement,i=E.TOOLTIP_ARROW_SIZE,i=(e.css({width:"",height:""}),k("._pendo-guide-container_",e).css({bottom:i,right:i}));function r(e){e.preventDefault()}k("._pendo-close-guide_",e).remove().prependTo(i),e.appendTo(_d()),t.push(e[0]),l(n[0],"touchmove",r),l(e[0],"touchmove",r)};function Qb(){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(){(Id()?Yb:Xb)(e,e.elements)}),e.reposition=function(){Id()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var e1=500,t1="_pendo-guide-banner_";function n1(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||e1,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=E.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(t1).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),Ed()||e.addClass("_pendo-in_"),k("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=xd(n),n.elements.push(e[0]),e.appendTo(_d())})),n}function i1(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(_.extend(n,{isShown:_.constant(!1),launch:u,onShown:u,render:function(){var e=n.guideElement,t=n.attributes.height;e&&e.html()||(e=k(document.createElement("div")).attr("id",sm(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&&!ra(e[0])&&(k("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),fc.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){Ed()||a()&&n.seenState!==r&&function(e){{var t,n;if(ya(e,/(auto|scroll|hidden)/))return(t=ua(e))?(t=oa(t),e=oa(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,y(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,_.delay(function(){n.guideElement.addClass(i+" out")},_.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function u(){}}var r1="_pendo-launcher-searching_",o1="._pendo-launcher-search-box_ input";var a1,s1=function(e){return e&&_.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function u1(){var e;return function(){var e;if(E.guideWidget)return(e=E.guideWidget.data)&&e.enableSearch}()&&(e=k(o1)[0])&&0<(e=e.value).length?(e=it.call(e),[].concat(_.compact(e.split(" ")))):[]}function d1(e){if(!b.get("disablePrefetch"))return m.all(_.map(e,function(e){return e.fetchContent()}))}function c1(e,t){return C.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||O,t&&0!==t.length?_.chain(e).filter(s1).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return _.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var l1=function(){var e=md();if(Od()){if(E.guideWidget&&E.guideWidget.enabled){var t=w1(e),n=!0;if(E.guideWidget&&_.isFunction(E.guideWidget.update))E.guideWidget.update(t,n)}}else{R1();t=cd(e),n=S1(w1(t));n!==a1&&f.dispatch("frames/changeGuideList",t),a1=n}},p1="launcher-closed",h1=null,f1=null,g1=!(Tb.attach=function(e,t,n,i){if(e){for(var r=Tb.handlers=Tb.handlers||{},o=r[e.id]=r[e.id]||[],a=0;a<o.length;++a){var s=o[a];t===s[0]&&n===s[1]&&(Qu(t,n,s[2],!0),o.splice(_.indexOf(o,s),1),a--)}o.push([t,n,i]),Qu(t,n,i,!0),l(t,n,i,!0)}}),m1="_pendo-launcher-active_",v1=null,y1=function(){return""};function b1(e,t){y1=t}function w1(e){var t,e=_.filter(e||O,s1);return e=e,0===(t=u1()).length?e:(t=_.map(t,_.partial(c1,e)),_.union.apply(_,t))}function S1(e){return ct(_.map(e,function(e){var t=e.isWhatsNew()?[]:_.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function E1(e){var n=this,t=e.launchType||"badge",i=(_.extend(n,{show:function(){"badge"===t&&k(n.element).css("display: ;")},hide:function(){k(n.element).css("display: none;")},wrap:function(){var e=n.element;{var t;e&&/^img$/i.test(e.nodeName)&&(t=k(document.createElement("div")).addClass(e.className).append(e).appendTo(_d()),e.className="",n.element=t[0])}},dispose:function(){k.removeNode(n.element)},setActive:function(e){e?k(n.element).addClass(m1):k(n.element).removeClass(m1)}}),e),e=i.position||"bottom-right",r=document.createElement("img");k(n.element=r).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+e+"_"),i.launcherBadgeUrl&&(r.src=uc(i.launcherBadgeUrl)),r.onerror=function(e){C.info("[Agent] Error! Unable to load guide center image "+i.launcherBadgeUrl),C.critical("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},je()&&(l(r,"mouseover",function(e){k(r).addClass("_pendo-launcher-badge-active_")}),l(r,"mouseout",function(e){k(r).removeClass("_pendo-launcher-badge-active_")}),k(r).css({position:"absolute"})),_d().appendChild(r)}function I1(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=Nr(e),t=n();k(e).closest(t).length&&(P1()?h.write(p1,"yes"):E.guideWidget.position(e),G1())}E.guideWidget.removeCountBadge=function(){k("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),_.extend(this,{getLauncherTarget:function(){return k(n())[0]},dispose:function(){Qu(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&k("._pendo-launcher-whatsnew-count_").remove()}}),l(document,"click",t)}function _1(){var n,s="bottom-right",u="bottom-left";return this.update=function(e,t){t=t?e:w1(e),e=S1(t)+ct(u1());return e!==n&&(n=e,this.updateLauncherContent(t)),k1(),0<t.length},this.updateLauncherContent=M1,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(h1=new E1(e),e.height||310),n=(e.enableSearch&&(t+=je()?50:39),this&&!this.hidePoweredBy&&(t+=40),e.addHeight&&(t+=e.addHeight),this.height=t,e.width||330),i=(e.addWidth&&(n+=e.addWidth),this.width=n,k(document.createElement("div")).addClass("_pendo-launcher_")),r=(f1=i[0],Qo(h1.element)),r=zb(r,t,n),o=(i.css({width:n,height:t}),E.TOOLTIP_ARROW_SIZE),n=k(document.createElement("div")).addClass("_pendo-guide-container_ "+r.arrowPosition).addClass("_pendo-guide-container-"+r.arrowPosition+"_").css({top:o,left:o,width:n-2*o,height:t-2*o}).appendTo(i),t=N1(),o=uc(C1(this.template(t))),t=k(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),Pg(i[0],function(){D1(),h.write(p1,"yes",288e5)}),t.on("click",function(e){var t=k(Nr(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=N((t=/^launcher-(.+)$/.exec(it.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(pm(t.steps[0],"launcher"),D1(),ed(e))}),je()&&(k("._pendo-launcher-header_",i).css({padding:"10px","margin-right":"10px","margin-left":"10px"}),k("._pendo-launcher-footer_",i).css({"border-top":"1px solid #bbb"}),i.css({position:"absolute"})),i.find("[pendo-style]").each(function(){var e=this.getAttribute("pendo-style");k(this).css(e)}),i.appendTo(_d()),_.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!_e(9,6)&&(o=e.autoHeight.offset||100,i.css({height:"calc(100% - "+o+"px)",maxHeight:e.height,minHeight:e.height/2}),k("._pendo-guide-container_."+r.arrowPosition).css({maxHeight:e.height-30,minHeight:e.height/2-30,height:"calc(100% - 30px)"}))},this.position=function(e){var t,n,i,r,o,a;e&&(t=this.data||{},e=Qo(e),n=zb(e,this.height,this.width),i=k(f1),"badge"===(r=t.launchType||"badge")?(o=t.position,_.indexOf(a=[s,u,"top-left","top-right"],t.position)<0&&(o=s),_.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=_.contains([s,u],o)?"bottom":"top",n.arrow.hbias=_.contains([u,"top-left"],o)?"left":"right",n.arrow.floating=!1):"element"===r&&i.css({top:n.top,left:n.left,height:n.height,width:n.width,position:e.fixed?"fixed":"absolute"}),k("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),qb(n,e,{width:Infinity,height:Infinity}),Nb(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=G1,this}function C1(e){return e=_.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function x1(e,t){e.contentHostUrl&&(e.contentHostUrl=(n=e.contentHostUrl,i=location,(r=b.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)),v1=new I1(e);var n,i,r=_1.create(E.guideWidget);return _.isFunction(r.template)||(r.template=e.template?_.template(e.template):y1),r.render(),r.position(v1.getLauncherTarget()),t&&r.toggle(),r}_1.create=function(e){return _.reduce(_1.behaviors,function(e,t){return t.call(e)},e)},_1.behaviors=[Gh,_1,ic.Launcher,function(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){k(o1).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,E.disableGuideCenterContentSearch||this.before("update",d1),this.before("update",function(){t.text=u1().join(" ");var e=k("._pendo-launcher_");t.text?e.addClass(r1):e.removeClass(r1)})),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,c0),t=_.filter(e,function(e){return"complete"==n.guideStatus(e)}),e=i.total=e.length,t=(i.percentComplete=0<e?Math.round(t.length/e*100):0,k("._pendo-launcher_,._pendo-launcher-badge_"));e?(t.addClass("onboarding"),t.addClass("_pendo-launcher-onboarding_")):(t.removeClass("onboarding"),t.removeClass("_pendo-launcher-onboarding_"))}),n.getOnboardingState=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":e.isNotStarted()?"not-started":null})}return n},function(){var n=this,i=k(document.createElement("div")).addClass("_pendo-launcher-whatsnew-count_");n.data&&n.data.whatsnew&&n.data.whatsnew.enabled&&(n.before("updateLauncherContent",function(e){e=_.filter(e,function(e){return e.isWhatsNew()});e.sort(t),n.data.whatsnew.total=e.length,n.data.whatsnew.guides=e}),n.after("update",function(e){var t=n.data.whatsnew.guides,t=(_.each(t,function(e){e.show()}),_.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),_.filter(t,function(e){return"active"!==e.steps[0].seenState}).length);t!==n.data.whatsnew.unseenCount&&(i.html(t).css({display:t?"":"none"}),n.data.whatsnew.unseenCount=t,k("span._pendo-launcher-whatsnew-count_").text(n.data.whatsnew.unseenCount))}),n.after("render",function(){O1()?i.appendTo(this.data.launchElement):(h1.wrap(),i.appendTo(h1.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 T1=function(){f1&&(k.removeNode(f1),f1=null),v1&&(v1.dispose(),v1=null),h1&&(h1.dispose(),h1=null)},k1=function(){(!O1()&&(F1()||0<u1().length)?A1:R1)()},A1=function(){h1&&h1.show()},R1=function(){O1()||D1(),h1&&h1.hide()},O1=function(){return!(!E.guideWidget||!E.guideWidget.data||"element"!==E.guideWidget.data.launchType)},N1=function(e){var t=tp(),t=_.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:ut(t)},E.guideWidget);return t.data=_.extend({},t.data),e&&(t.guides=e),t};function M1(e){var t=E.guideWidget.template||y1,e=N1(e),e=k(document.createElement("div")).html(C1(t(e))),n=e.find("._pendo-launcher-guide-listing_"),t=e.find("._pendo-launcher-footer_").html(),e=e.find("._pendo-launcher-search-results_").html();k("._pendo-launcher_ ._pendo-launcher-guide-listing_").each(function(e,t){k(e).html(n.eq(t).html())}),k("._pendo-launcher_ ._pendo-launcher-footer_").html(t),k("._pendo-launcher_ ._pendo-launcher-search-results_").html(e)}var L1=_.compose(k1,function(e,t){var n,i,r,o;s1(e)&&(n=k("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0])&&(e=(o=k("#launcher-"+e.id)).length?o[0]:(e=e,k(i=document.createElement("div")).addClass("_pendo-launcher-item_"),k(i).attr("id","launcher-"+e.id),(r=document.createElement("a")).href="#",r.innerHTML=e.name,i.appendChild(r),i),o=0<o.length,_.isNumber(t)&&(r=k("._pendo-launcher-item_"))[t]?e.id!=r[t].id&&n.insertBefore(e,r[t]):n.appendChild(e))}),P1=function(){return k(f1).hasClass(m1)},F1=function(){return 0<k("._pendo-launcher-item_").length},D1=function(){var e;f1&&(e=k(f1))&&e.hasClass(m1)&&(e.removeClass(m1),h1)&&h1.setActive(!1)},U1=function(){var e;f1&&(e=k(f1))&&!e.hasClass(m1)&&(e.addClass(m1),h1)&&h1.setActive(!0)},G1=function(){f1&&!g1&&(P1()?D1:U1)()};var B1=function(){try{var e=E.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};T1(),!Id()&&!n.desktop||Id()&&!n.mobile||Ya()&&!n.iframe||e.enabled&&(x1(t),R1())}catch(i){C.critical("ERROR while initializing launcher",{error:i})}},z1=function(e){e.defaultLauncher=b1,_.each(e._defaultLauncher_queue,e=>{b1.apply(null,e)}),e._defaultLauncher_queue=[],e.toggleLauncher=G1,e.showLauncher=U1,e.hideLauncher=D1,e.removeLauncher=T1,e.initLauncher=B1,e.createLauncher=x1,e._addGuideToLauncher=L1,e.launcherToolTipDiv=f1},j1=function(){B1()},H1=function(){var e;(e=E).designer&&(e.designer.createLauncher=x1,e.designer.removeLauncher=T1,e.designer.addGuideToLauncher=L1,e.designer.updateLauncherContent=M1)},q1=function(){var e;(e=E).debugging&&(e.debugging.getLauncherGuides=w1)},W1=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!==b.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?$d.verify(n).then(function(){return cc.load(n)}).then(function(e){return n.template=e.content,_.extend(t,e)}):m.resolve();var t,n,i,r},V1=function(e,t){z1(e),t.Events.on("guidesLoaded",j1),t.Events.on("designerLaunched",H1),t.Events.on("debuggerLaunched",q1),t.GuideLoop.addUpdatePhase(l1),jm.push(W1),t.agentStorage.registry.addLocal(p1,{duration:864e6})},J1=function(e,t){var n;n=W1,0<=(n=_.indexOf(jm,n))&&jm.splice(n,1),t.GuideLoop.removeUpdatePhase(l1),t.Events.off("guidesLoaded",j1),t.Events.off("designerLaunched",H1),t.Events.off("debuggerLaunched",q1)};Rv.Extensions.API.addTopic("Launcher",{addBehavior(e){_1.behaviors.push(e)}});var $1,K1,Z1,X1,Y1={name:"P1Guides",initialize:function(e,t){var n;Z1=t,$1=(K1=e).dom,X1=[$b,Qb,n1,i1,tw,nw,ew,Q1],-1<_.indexOf(sc.behaviors,$b)||(n=_.indexOf(sc.behaviors,g0),sc.behaviors.splice.apply(sc.behaviors,[n,0].concat(X1)),t.Events.guideLoopStopped.on(R1),e.TOOLTIP_DEFAULT_WIDTH=Wb,e.TOOLTIP_DEFAULT_HEIGHT=Vb,e.TOOLTIP_ARROW_SIZE=Jb,e._showElementGuide=Mb,e._createTooltip=Ob,e._get_tooltip_dimensions=zb,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e._showLightboxGuide=Xb,V1(e,t))},teardown:function(){J1(0,Z1),Z1.Events.guideLoopStopped.off(R1),K1._.each(X1,function(e){e=_.indexOf(sc.behaviors,e);0<=e&&sc.behaviors.splice(e,1)}),X1=[]}};function Q1(){const o=this;return"tooltip"!==o.type||o.domJson||(o.checkPlacement=function(){var e,t,n,i,r;e=o,r=Qo(e.element||xd(e)),Ub(e),Bb(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=zb(r,n,i,t),(i=k(Rb(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),Nb(i,n))}),o}function ew(){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=$1("._pendo-guide-container_",n),"tooltip"==i.type||je()&&"lightbox"==i.type?e.css({width:i.attributes.width-2*t,height:""}):e.css({right:t,bottom:""}),i.attributes.height=e.height()+2*t,n.height(i.attributes.height),i.reposition())}),i}function tw(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&Pg(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||Kg(t)})}),t}function nw(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||Sd(e.guide)||e.after("render",function(){em(e.guideElement[0])}),e}var iw,rw,ow={name:"Branding",initialize:function(e,t){iw=e,(rw=t).ConfigReader.get("isPendoFree")&&rw.Events.on("guideSeen",aw)},teardown:function(){rw.Events.off("guideSeen",aw)},addBranding:sw};function aw(e){sw(iw,e)}function sw(e,t){var n,i,r,t=t.data[0].props;t.step_poll_types&&-1<t.step_poll_types.indexOf("NPSRating")&&(e=-1<(t=e.findGuideById(t.guide_id).steps[0].guideElement[0].lastElementChild).dataset.verticalAlignment.indexOf("Bottom"),n=""!==t.style.width,(i=document.createElement("a")).href="https://www.pendo.io/pendo-free/nps?utm_source=pendo_app&utm_medium=branded-nps&utm_campaign=free-branded-nps",i.target="_blank",(r=document.createElement("img")).setAttribute("src",po()+"/img/nps-branding.png"),i.appendChild(r),i.style.display="inline-block",(r=document.createElement("div")).style.lineHeight=0,r.style.padding="8px",e&&(r.style.position="absolute",r.style.bottom="100%"),n&&(r.style.paddingLeft=0),r.append(i),t.append(r))}var uw,dw=function(){let r;var o,n,i;const a="automation",e=250,t=500,s=0,u=10;return{name:"ActionAutomation",automationQueue:void 0,initialize:function(e,t){o=e,n=t,r=o._,this.automationQueue=[],t.EventRouter.registerAction(a,e._.bind(d,this))},teardown:function(){n.EventRouter.deregisterAction(a),this.automationQueue=[]},guideActivity:d,getAutomationFromGuide:function(i,e){return r.reduce(e,function(e,t){var n=r.find(i,function(e){return e.id===t});return n?e.push(n):o.log("could not find automation for "+t,"debug"),e},[])},getAutomationConfigs:function(e){if(!e||e.length<=0)return[];if(!i)return[];var t=i.guide,n=i.step;if(!t||!n)return[];n=t.automations;if(!n||!n.length)return[];n=this.getAutomationFromGuide(n,e),e=n[n.length-1];if(this.isAutomationInQueue(e))return o.log("Automation is already in queue autoId: "+e.id+", guideId: "+t.id,"debug"),[];return n},getTarget:function(e){e=e.target.elementPathRules,e=o.Sizzle(e,document);return e&&e[0]},getElement:function(n,i=u){return new rn(r.bind(function(t){return Ut(r.bind(function(){var e=this.getTarget(n);e&&!e.disabled||i<1?t(e):this.getElement(n,i-1).then(function(e){t(e)})},this),e)},this))},getValue:function(e){return e.value},injectText:function(e,t){let n;"INPUT"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"));"TEXTAREA"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype,"value"));n&&"function"==typeof n.set?n.set.call(e,t):e.value=t;t=new InputEvent("input",{bubbles:!0,data:t[t.length-1]}),t.simulated=!0,e.dispatchEvent(t),t=new InputEvent("change",{bubbles:!0});t.simulated=!0,e.dispatchEvent(t)},simulateClick:function(e){e.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0,cancelable:!0})),e.click()},isAutomationInQueue:function(t){return!!r.find(this.automationQueue,function(e){return t.id===e.id})},popQueue:function(){let e=s;const n=this.automationQueue[0];"autoclick"===n.type&&(e=t);return Ut(r.bind(function(){return this.getElement(n,u).then(r.bind(function(e){if(e)if(e.disabled)this.automationQueue=[],o.log("automation target found but disabled. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug");else{switch(n.type){case"autofill":var t=this.getValue(n);this.injectText(e,t);break;case"autoclick":this.simulateClick(e)}this.automationQueue.shift(),this.automationQueue.length&&this.popQueue()}else this.automationQueue=[],o.log("automation target element not found. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug")},this))},this),e)},setActive:function(e){i=e}};function d(e){var t;e.step&&(this.setActive({guide:e.step.guide,step:e.step}),e.params)&&((e=r.find(e.params,function(e){return"automationIds"===e.name&&r.isArray(e.value)&&e.value.length}))?(e=this.getAutomationConfigs(e.value),t=!this.automationQueue.length,this.automationQueue=this.automationQueue.concat(e),t&&this.popQueue()):o.log("no automation ids were found","debug"))}}();function cw(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 cw(e[t],i)}return _.isFunction(e[t])?function(){return e[t].apply(e,arguments)}:e[t]}}):e}const lw=function(){let u,h,f,g,t,d,m,i;const v=3,n="eventPropertyTimeout",r=Qn(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 u=f._.any(o.featureRules,function(e){try{var t=y(r,h);return t(i,e)}catch(n){return!1}});if(u)for(var d=0;d<o.eventPropertyRules.length&&S()-t<e;d++){var c=o.eventPropertyRules[d];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 cw(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=Qn(function(){var e={};if(u)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);me(a)&&(o["_pendo_"+n.name]=a)}var s=S()-r;t<s?(d++,b({threshold:t,name:n.name,elapsedTime:s,failureCount:d,index:i,length:e.length})):d=0;d>=v&&(u=!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,u=!1,d=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"),d=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 Hy("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=oi.getParent(r)}return n}return e?!(t=f.Sizzle(e)[0])||"password"!==t.type&&"hidden"!==t.type?t:void 0:window}}();function pw(){var e;zh().enabled&&(f.commit("debugger/debuggingEnabled",!0),hw(),k("#pendo-client-debugger").length||(e=b.get("agentDebuggerPluginLoader"),Rv.restartDebugger?Rv.restartDebugger():"function"==typeof e?e():((e=document.createElement("script")).src=K(E).createScriptURL(ho("debugger-plugin.min.js")),e.setAttribute("id","pendo-debugger-plugin"),b.get("pendoGlobalKey")&&e.setAttribute("data-pendo-global-key",b.get("pendoGlobalKey")),k.getBody().appendChild(e)),v.debuggerLaunched.trigger()))}function hw(){uw=uw||{store:f,ConfigReader:b,getState(){return JSON.stringify(f.state)},getEventCache(){return[].concat(ns)},getAllGuides(){return[].concat(O)},getAutoGuides(){return ph.sortAndFilter(O,E.autoOrdering)},getBadgeGuides(){return _.filter(O,bd)},getLauncherGuides(){return[]},getEventHistory(){return[]},getAllFrames(){return f.getters["frames/allFrames"]()},getChannelType(){return f.getters["frames/channelType"]()},isStepShownInFrame(e,t){return f.getters["frames/isShownInFrame"]()(e,t)},setActiveGuides:ld,getBody:k.getBody,isMobileUserAgent:ze.isMobileUserAgent,areGuidesDelayed:sv,doesElementMatchContainsRules:om,getMetadata:tp,isStagingServer:re,AutoDisplay:ph,isLeader:Od,Events:v,observer:Wv,guideCache:rv},E.debugging=uw}function fw(e){if(jh())return e?t:"debugging already enabled";if(!Od())return;const t=zh();return t.enabled=!0,h.write(Bh,t),pw(),e?t:"debugging enabled"}function gw(){if(!jh())return"debugging already disabled";f.commit("debugger/debuggingEnabled",!1);var e=zh();return e.enabled=!1,h.write(Bh,e),E.debugging=null,delete E.debugging,k("#pendo-client-debugger").remove(),"debugging disabled"}_.extend(function(e){C.debug(e,{contexts:["debug"]})},uw);const mw=(e,t,n)=>{const i={events:[]};if(e.on("eventCaptured",e=>{i.events.push(e)}),t.getters["frames/leaderExists"]())return n.resolve(i);const r=n.defer();return e.on("leaderChanged",()=>{r.resolve(i)}),r.promise},vw=function(){let t,o;return{name:"DebuggerLauncher",initialize:function(n,e){const{Events:i,q:r}=e;o=e.store,mw(i,o,r).then(e=>{o.dispatch("debugger/init",e),o.getters["frames/isLeader"]()&&pw()}),za("pendo-debugger::launch",(e,t)=>{e.config.apiKey===n.apiKey&&mw(i,o,r).then(()=>{t.source.postMessage({type:"pendo-debugger::ready",apiKey:n.apiKey},t.origin),!jh()&&o.getters["frames/isLeader"]()&&fw(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",a);(t=n).isDebuggingEnabled=(e=!1)=>jh(e),n.enableDebugging=fw,n.disableDebugging=gw,n.addDebuggingFunctions=hw},teardown:function(){ja("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",a),t.debugging&&t.debugging.teardown&&t.debugging.teardown();gw()}};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})}}(),yw=function(){let i,a=0,s,u,d,c,l=[];const p=100,h=9;let f;const o=4,g=500,m=["TEXTAREA","INPUT"];let v=!0,y={},n,b,r;const w="previous_page_loads";let S;const E="errorClickLogging",I=1500;let _=!1;return{name:"FrustrationEvent",initialize:function(e,t){S=e,c=S._,i=t,a=0,l=[],f=[],y={},_=i.ConfigReader.get(E),this.detachErrorEvent=i.attachEvent(window,"error",L,!0),this.detachDocumentEvents=function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange","visibilitychange","selectionchange","scroll"],t=[];for(var n=0;n<e.length;n++)switch(e[n]){case"selectionchange":t.push(i.attachEvent(window,e[n],T,!0));break;case"visibilitychange":t.push(i.attachEvent(window,e[n],()=>{x(250)},!0));break;default:t.push(i.attachEvent(window,e[n],x,!0))}return t}(),i.Events.on("eventCaptured",F),i.agentStorage.registry.addSession(w),S.sniffer.MutationObserver&&(e=gt("MutationObserver"),(n=new e(k)).observe(S.dom.getBody(),{childList:!0,attributes:!0,subtree:!0}))},teardown:function(){i.Events.off("eventCaptured",F),this.detachErrorEvent&&(this.detachErrorEvent(),this.detachErrorEvent=null);if(this.detachDocumentEvents){for(var e=0;e<this.detachDocumentEvents.length;e++)this.detachDocumentEvents[e]();this.detachDocumentEvents=null}n&&n.disconnect()},addErrorClickLog:O,getErrorEventTarget:M,checkErrorEvent:L,observeDOMMutation:k,checkFrustrationEvent:F};function C(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()){(l=c.filter(l,e=>t-e.timestamp<=p)).length&&Ut(C,p)}function x(e=g){v=!1,c.each(y,e=>{clearTimeout(e)}),y={},Ut(()=>{v=!0},e)}function T(){var e=document.getSelection().toString();(b||e.length)&&(x(),b=!!e.length)}function k(e){e.length&&x()}function t(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function A(e){return e&&t(e.element)}function R(e,t){var{frustrationTypes:n=[]}=e;c.contains(n,t)||(n.push(t),e.frustrationTypes=n)}function O(e,t){let n;var{detail:i={}}=t;(n=(A(i)&&i.error?i.error:t).message)&&n.length>I&&(n=n.substring(0,I)),e.errorClickLog=n}function N(e,t){var n=t.target&&"A"===t.target.tagName&&t.target.hasAttribute("href"),i=t.target&&!c.contains(m,t.target.tagName);if(v&&!b&&i&&!n){var r=e;const o=Ut(()=>{delete y[o],R(r,"deadClick")},g);y[o]=o}l.length>h&&l.pop(),l.unshift({target:t.target,activeElement:document.activeElement,browser_time:e.browser_time,timestamp:t.timeStamp}),Ut(C,p),c.each(f,e=>{L(e)}),s?(i=t,e.browser_time-s<=1e3&&Math.abs(u-i.x)<=30&&Math.abs(d-i.y)<=30?a++:(a=1,u=t.x,d=t.y),s=e.browser_time,4===a&&(s=null,R(e,"rageClick"))):(s=e.browser_time,u=t.x,d=t.y,a=1)}function M(e){if(t(e.target))return{detail:e={}}=e,A(e)?e.element:t(document.activeElement)?document.activeElement:void 0}function L(t){const n=M(t);if(n){const i=c.find(l,e=>(e.target===n||e.activeElement===n)&&t.timeStamp-e.timestamp<p);if(i){const r=e=>e.browser_time===i.browser_time&&"click"===e.type;var e=c.find(S.buffers.events,r)||c.find(S.buffers.silos,e=>c.find(e,r));e&&(R(e,"errorClick"),_)&&O(e,t)}else c.contains(f,t)||f.push(t),f.length>o&&f.pop()}}function P(e){r=function(){let e=i.sessionStorage.getItem(w);return null!=e&&0<e.length&&(e=JSON.parse(e)),c.isArray(e)?e:[]}(),function(e){var t,n;if(!(r.length<2))return t=r[0],n=r[1],t&&n&&t.url&&n.url&&t.browser_time&&n.browser_time?t.url===e.url&&e.browser_time-n.browser_time<=7e3&&n.url!==e.url:void 0}(e)&&R(e,"uTurn"),2===r.length&&r.shift(),r.push({url:e.url,browser_time:e.browser_time}),e=r,i.sessionStorage.setItem(w,JSON.stringify(e))}function F(e){var t=e.data[0],e=e.data[1],e=("click"===t.type&&e&&N(t,e),"load"===t.type&&P(t),"submit"!==t.type&&"change"!==t.type||x(),c.has(e,"target")&&c.contains(m,e.target.tagName));"focus"===t.type&&e&&x()}}(),bw=function(){let n,i,o;const a=[];let e=[];return{name:"EmbeddedGuides",activeEmbeddedGuides:a,initialize:function(e,t){n=t,i=e,o=i._,function(e){e.getEmbeddedGuides=ww,e.getActiveEmbeddedGuides=Sw}(e),n.Events.on("deliverablesLoaded",d),n.Events.on("guideLoopStopped",r),n.Events.on("guideListChanged",f),n.Events.on("urlChanged",c),n.Events.on("guideAdvanced",s),n.GuideLoop.addUpdatePhase(u),n.guides.addProcessor(l),n.GuideActivity.registerGuideResolver(h),this.removeResizeEvent=e.attachEvent(window,"resize",p)},teardown:function(){d(),n.Events.off("deliverablesLoaded",d),n.Events.off("guideLoopStopped",r),n.Events.off("guideListChanged",f),n.Events.off("urlChanged",c),n.Events.off("guideAdvanced",s),n.GuideLoop.removeUpdatePhase(u),n.guides.removeProcessor(l),n.GuideActivity.removeGuideResolver(h),this.removeResizeEvent&&this.removeResizeEvent();e.length=0}};function r(){n.ConfigReader.get("delayGuides")&&o.forEach(a,function(e){e.isShownInThisFrame()&&e.hide()})}function s(e){const t=o.get(e,"data.0.props.guide_id",null);t&&(e=a.find(({id:e})=>e===t))&&e.hide()}function u(){o.forEach(a,function(e){e.process()})}function d(){e=o.toArray(a),n.guides.removeDisplayableGuides("embeddedGuides"),a.length=0}function c(){o.forEach(a,function(e){e.forceShowFirstStep=!!o.get(e,"attributes.restartOnReload")})}function l(t){var e;return!(e=t)||!e.launchMethod||"embed"!==e.launchMethod||(o.some(a,({id:e})=>e===t.id)||a.push(t),!1)}function p(){lv()||o.forEach(a,function(e){e=e.getActiveStep();e&&!i.ignoreResize&&e.redraw()})}function h(n){if(a.length){var i="pendo-base-";if(o.isString(n.id)&&0===n.id.indexOf(i)){var r=n.id.substring(i.length);let e,t;return(e=o.find(a,e=>{t=o.find(e.steps,e=>{if(e.id===r)return e});return!!t}))&&t?{guide:e,step:t}:null;return}else return o.isObject(n.parentElem)?h(n.parentElem):null}return null}function f(){o.each(e,function(t){var e=o.findIndex(a,function(e){return e.id===t.id});-1===e&&t.isShownInThisFrame()?t.hide():t.isFrameProxy||(a[e]=t)}),e.length=0,n.guides.registerDisplayableGuides("embeddedGuides",a),o.map(a,function(e){!function({globalPendo:o,pluginApi:e}){const a=o["_"],i=e["store"],r=(this.process=function(){let e=null;var t,n=a.get(this,"attributes.embedConfig.selector"),i=a.get(this,"attributes.embedConfig.method"),n=a.first(o.Sizzle(n)),r=this.isShownInThisFrame();n&&r&&(t="#pendo-guide-container-"+a.get(this.getActiveStep(),"id"),e=!!o.Sizzle(t,n).length),!r&&n&&this.shouldAutoDisplay()?"replace"===i&&o.Sizzle('[id^="pendo-guide-container"]',n).length||this.show("embed"):!r||n&&e||this.hide()},this.getActiveStep=function(){return this?a.find(this.steps,function(e){return e.isShown()}):null},this.shouldAutoDisplay=function(){return this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||a.all(this.steps,function(e){return e.shouldRepeat()||!e.isSnoozed()&&"dismissed"!==e.seenState})},this.show=function(e){var t,n=a.first(this.steps);return this.forceShowFirstStep?(this.forceShowFirstStep=!1,n.show(e)):(t=this.steps.map(e=>a.get(i,"state.guideState.steps."+e.id,r(e))),(t=a.max(t,function({time:e}){return e}))&&"advanced"==t.state&&!t.destinationStepId?this.findStepById(t.guideStepId).dismiss():(this.nextStep(t)||n).show(e))},this.hasOwnProperty("forceShowFirstStep")||(this.forceShowFirstStep=a.get(this,"attributes.restartOnReload")),this.isShownInThisFrame=function(){return a.any(this.steps,function(e){return e.isRendered()||e.isLocked()})},({id:e,guideId:t,seenReason:n,seenState:i,lastSeenAt:r,destinationStepId:o})=>({guideId:t,guideStepId:e,seenReason:n,state:i,time:r,destinationStepId:o}))}.call(e,{globalPendo:i,pluginApi:n}),o.map(e.steps,function(e){!function({pluginApi:n}){if(this._onShown||Object.defineProperty(this,"_onShown",{value:this.onShown,writable:!1,configurable:!1}),!this._onShown)return null;this.onShown=function(e){var t=!this.lastSeenAt||!!n.ConfigReader.get("enableAllEmbeddedGuideEvents");return this._onShown(e,t)}}.call(e,{pluginApi:n,_:o})})})}}();function ww(){return bw.activeEmbeddedGuides}function Sw(){return bw.activeEmbeddedGuides.filter(e=>e.isShown())}const Ew="sessionId";class Iw{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(Ew,{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(Ew)||this.api.agentStorage.read(Ew,!1,"");return t||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(Ew,t)),JSON.parse(t)}clearSessionInfo(){return this.api.agentStorage.clear(Ew),this.api.agentStorage.clear(Ew,!1,""),this.sessionInfo()}storeLastInteractionEventInformation(e,t){e.timestamp=t,this.api.agentStorage.write(Ew,JSON.stringify(e))}}var _w=new Iw;class Cw{constructor(){this.name="SegmentFlags"}initialize(e,t){var n="requestSegmentFlags",e=(this.pendo=e,(this.api=t).ConfigReader);e.addOption(n,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],!1),this.segmentFlagsEnabled=e.get(n),this.segmentFlagsEnabled&&(this.mostRecentSegmentsRequest=null,this.pendo.segmentsPayload=this.pendo._.bind(this.segmentsPayload,this),this.handleMetadataChange=this.pendo._.debounce(this.pendo._.bind(this.requestSegmentFlags,this),50),this.handleReadyBound=this.pendo._.bind(this.handleReady,this),this.api.Events.ready.on(this.handleReadyBound),this.api.Events.metadata.on(this.handleMetadataChange),this.api.Events.identify.on(this.handleMetadataChange))}teardown(){this.segmentFlagsEnabled&&(this.pendo.segmentsPayload=this.pendo._.noop,this.handleMetadataChange.cancel(),this.api.Events.ready.off(this.handleReadyBound),this.api.Events.metadata.off(this.handleMetadataChange),this.api.Events.identify.off(this.handleMetadataChange))}handleReady(){this.ready=!0,this.requestSegmentFlags()}requestSegmentFlags(){if(this.ready){var t=this.pendo._.uniqueId(),n=(this.mostRecentSegmentsRequest=t,{visitorId:this.pendo.get_visitor_id(),accountId:this.pendo.get_account_id(),metadata:this.pendo.getSerializedMetadata(),url:this.pendo.url.get()}),i=this.pendo.compress(n),t={id:t,jzb:i,v:this.pendo.VERSION,ct:(new Date).getTime()},n=(this.api.agent.treatAsAdoptPartner()&&n.accountId&&"ACCOUNT-UNIQUE-ID"!==n.accountId&&(t.acc=this.api.util.base64EncodeString(n.accountId)),"script"===this.pendo.LOADER?"segmentflag.js":"segmentflag.json");let e=this.api.transmit.buildBaseDataUrl(n,this.pendo.apiKey,t);var r,n=this.api.agent.getJwtInfoCopy();try{e.length>this.api.constants.URL_MAX_LENGTH||!this.pendo._.isEmpty(n)?(delete t.jzb,e=this.api.transmit.buildBaseDataUrl("segmentflag.json",this.pendo.apiKey,t),r=this.pendo._.extend({events:i},n),this.postLoad(e,r)):"script"===this.pendo.LOADER?this.scriptLoad(e):this.getLoad(e)}catch(o){this.api.log.error("Failed to load segment flags",{error:o})}}}segmentsPayload(e){!this.mostRecentSegmentsRequest||this.pendo._.isString(e.id)&&e.id!==this.mostRecentSegmentsRequest||(this.pendo.segmentFlags=e.segmentFlags,this.api.log.info("successfully loaded segment flags"),this.mostRecentSegmentsRequest=null)}scriptLoad(e){this.pendo.loadResource(e,this.pendo._.noop)}getLoad(t){return Sv(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.get(t);this.segmentsPayload(e.data)})}postLoad(t,n){return Sv(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.postJSON(t,n);this.segmentsPayload(e.data)})}}var xw=new Cw;const Tw=["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"],kw=new RegExp(`(${Tw.join("|")})`,"i"),Aw=["facebook","twitter","linkedin","instagram","pinterest","tiktok","snapchat","twitch","reddit","quora","tumblr","flickr","discord","twitch","whatsapp","telegram","weibo","qq","line"],Rw=["t.co","x.com"],Ow=new RegExp(`(${Aw.join("|")})`,"i");function Nw(e,t){return Uw(Ow,e)||t.contains(Rw,e)}const Mw=["youtube","vimeo","dailymotion","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"],Lw=new RegExp(`(${Mw.join("|")})`,"i"),Pw=["amazon","ebay","walmart","etsy","shopify","shop","target","bestbuy","costco","temu","alibaba","aliexpress"],Fw=new RegExp(`(${Pw.join("|")})`,"i");const Dw=new RegExp(`(${["google performance max","microsoft audience network","facebook audience network"].join("|")})`,"i");function Uw(e,t){return"self"!==t&&"direct"!==t&&null!==t.match(e)}function Gw({referrer:e,currentHost:t}){if(!e||""===e)return"direct";e=new ei(e).hostname;let n="self";return n=e!==t?null==e?void 0:e.toLowerCase():n}const Bw=new RegExp("^(.*cp.*|ppc|retargeting|paid)$"),zw=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i");function jw(e="",t){return-1!==e.replace(/[^a-zA-Z]/g,"").indexOf(t)}const Hw=[[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})=>jw(t,"crossnetwork")||e.match(Dw)],["Paid Search",({source:e,medium:t,referrer:n,gclid:i,_:r})=>i||jw(t,"paidsearch")||t.match(Bw)&&(r.contains(Tw,e)||Uw(kw,n))],["Paid Social",({source:e,medium:t,referrer:n,fbclid:i,_:r})=>i||jw(t,"paidsocial")||t.match(Bw)&&(r.contains(Aw,e)||Nw(n,r))],["Paid Video",({medium:e,source:t,referrer:n,_:i})=>jw(e,"paidvideo")||e.match(Bw)&&(i.contains(Mw,t)||Uw(Lw,n))],["Paid Shopping",({medium:e,source:t,referrer:n,_:i})=>jw(e,"paidshopping")||"shopping"===e||(Uw(Fw,n)||i.contains(Pw,t))&&e.match(Bw)],["Display",({medium:e,_:t})=>t.contains(["display","cpm","banner","interstitial","expandable","programmatic"],e)||jw(e,"display")],["Paid Other",({medium:e})=>jw(e,"paidother")||e.match(Bw)],["Organic Search",({source:e,medium:t,referrer:n,_:i})=>jw(t,"organic")&&i.contains(Tw,e)||!t&&Uw(kw,n)],["Organic Social",({source:e,medium:t,referrer:n,_:i})=>!t&&Nw(n,i)||jw(t,"social")||i.contains(Aw,e)&&!t.match(Bw)],["Organic Video",({medium:e,referrer:t})=>jw(e,"video")||!e&&Uw(Lw,t)],["Organic Shopping",({medium:e,referrer:t})=>jw(e,"organicshopping")||!e&&Uw(Fw,t)],["Email",({source:e,medium:t})=>null!==t.match(zw)||null!==e.match(zw)||jw(t,"newsletter")],["Affiliates",({medium:e})=>jw(e,"affiliate")||jw(e,"partner")],["SMS",({source:e,medium:t})=>jw(e,"sms")||jw(t,"sms")],["Push Notifications",({source:e,medium:t})=>t.endsWith("push")||jw(t,"mobile")||jw(t,"notification")||jw(e,"firebase")],["Audio",({medium:e})=>jw(e,"podcast")||jw(e,"audio")],["Referral",({medium:e,referrer:t})=>jw(e,"referral")||!!t&&"self"!==t&&"direct"!==t],["Other",({medium:e,source:t})=>!!e||!!t]],qw="utm",Ww="enableFullUtmReferrer";class Vw{constructor(){this.name="WebAnalytics"}initialize(e,t){this.pendo=e;var n=(this.api=t)["ConfigReader"],n=(n.addOption(Ww,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),e._)["bind"];this.subscriptions=[t.attachEvent(t.Events,"eventCaptured",n(this.addUtmToEvent,this)),t.attachEvent(t.Events,"sessionChanged",n(this.sessionChanged,this))];let i=this.loadParameters(t.agentStorage);i&&!e._.isEmpty(i)||(i=this.extractParameters(window.location.href,document.referrer)),this.api.agentStorage.registry.addLocal(qw),this.storeParameters(i,t.agentStorage),this.suffix=this.api.ConfigReader.get("identityStorageSuffix")}extractParameters(e,t){var n,i,r,o,a,s,u=new ei(e).hostname,d=Gw({referrer:t,currentHost:u}),e=this.api.util.parseUrl(e);return e?(e=e["query"],s=e.utm_source,n=e.utm_medium,i=e.utm_campaign,r=e.utm_term,o=e.utm_content,a=e.gclid,e=e.fbclid,(s={source:s,medium:n,campaign:i,term:r,content:o}).channel=this.calculateUtmChannel({referrerValue:d,utm:s,gclid:a,fbclid:e}),t&&this.api.ConfigReader.get(Ww)?s.referrer=t:"self"===d?s.referrer=u:"direct"!==d&&(s.referrer=d),s):{}}calculateUtmChannel({referrerValue:e,utm:t,gclid:n,fbclid:i}){var r=(null==(r=t.medium)?void 0:r.toLowerCase())||"",t=(null==(t=t.source)?void 0:t.toLowerCase())||"";const o={_:this.pendo._,referrer:e,source:t,medium:r,gclid:n,fbclid:i};e=this.pendo._.find(Hw,e=>e[1](o));if(e)return e[0]}storeParameters(e,t){0<this.pendo._.size(e)&&t.write(qw,JSON.stringify(e),undefined,!1,!0,this.suffix)}loadParameters(e){e=e.read(qw,!1,this.suffix)||e.read(qw);return e?JSON.parse(e):null}teardown(){for(var e of this.subscriptions)e();this.subscriptions.length=0}addUtmToEvent(e){let t;try{t=this.loadParameters(this.api.agentStorage)}catch(n){}t&&(e.data[0].utm=t)}sessionChanged(){var e=this.api.agentStorage,t=(e.clear(qw),e.clear(qw,!1,this.suffix),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)}}var Jw=new Vw;const $w={children:[],props:{"class":"_pendo-step-container","data-layout":"tooltipBlank",id:"pendo-base"},type:"div"},Kw={css:[],props:{scoped:"scoped",type:"text/css"},type:"style"},Zw={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"},Xw={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"},Yw={children:[],props:{"class":"_pendo-text-paragraph",style:{}},type:"div"};function Qw(e,t){return{content:t,props:{id:"text-"+e,"class":"_pendo-text-plain",style:{color:"gray",margin:0}},type:"p"}}function eS(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 tS=`
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
- `,eS=`
16
+ `,nS=`
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
- `,tS=`
24
+ `,iS=`
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
- `,nS={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()@:%_+.~#?&/=]*)$/},iS={"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 rS={email(e){return nS.emailRegex.test(e)},phone(e){return nS.phoneRegex.test(e)},date(e,t={}){return(iS[t.format]||iS["MM/DD/YYYY"]).test(e)},url(e){return nS.urlRegex.test(e)},number(e,t={}){if(""===e)return!1;let{min:n,max:i,allowDecimal:r}=t;var t=oS(n),o=oS(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=oS(n),r=oS(i);return t&&(n=Number(n)),r&&(i=Number(i)),!(t&&e.length<n||r&&e.length>i)}};function oS(e){return e!==undefined&&null!==e&&""!==e}const aS=function(){let r,o,i=[],a,u,d,c=null,s;return{name:"FormValidation",validationGuides:i,debouncedValidate:a,initialize:function(e,t){var n=t.ConfigReader.get("formValidation");if(n){r=e,o=t,a=_.debounce(w,100),o.Events.on("deliverablesLoaded",p),o.Events.on("guideLoopStopped",h),o.Events.on("guideListChanged",f),o.GuideLoop.addUpdatePhase(g),o.guides.addProcessor(m);const i=!(null===r||void 0===r||!r.designer);s=setInterval(()=>{i&&(l(),clearInterval(s),s=null)},1e3),e.attachEvent(document,"focusin",v),e.attachEvent(document,"focusout",y),e.attachEvent(document,"input",a)}},teardown:l,appendValidationStyles:t,getActiveStep:function(){return u},setActiveStep:function(e){u=e},setActiveField:function(e){d=e},getActiveField:function(){return d},getActiveFieldIsValid:function(){return c},setActiveFieldIsValid:function(e){c=e},getValidationGuides:function(){return i},setValidationGuides:function(e){i=e},initializeFormValidation:f,clearAllValidationGuides:p,extractValidationGuides:m,applyFormBehaviors:e,checkValidationFieldVisibility:g,hideValidationTooltip:h,focusField:v,blurField:y,findFieldByElement:b,validateInput:w,validateField:S,getRuleText:E,setValidationStyle:I};function l(){o&&(s&&(clearInterval(s),s=null),o.Events.off("deliverablesLoaded",p),o.Events.off("guideLoopStopped",h),o.Events.off("guideListChanged",f),o.GuideLoop.removeUpdatePhase(g),o.guides.removeProcessor(m),r.detachEvent(document,"focusin",v),r.detachEvent(document,"focusout",y),r.detachEvent(document,"input",a),a.cancel(),i=[],u=null,d=null,c=null)}function p(){o.guides.removeDisplayableGuides("validationGuides"),i=[]}function h(){r.detachEvent(document,"focusin",v),d&&(d=null,c=null),u&&(u.hide({validationHidden:!0}),u=null)}function f(){t(),o.guides.registerDisplayableGuides("validationGuides",i),e()}function e(){_.map(i,function(e){_.map(e.steps,function(e){var t=function(){if(!this.attributes)return C.info("buildFormStepBehaviors called with invalid context"),{};const t=this,n=t.show,i=t.hide;return{show:function(e){return!t.attributes.validationHidden&&n.call(t,e)},hide:function(e){return e&&e.validationHidden&&(t.attributes.validationHidden=!0),i.call(t,e)}}}.call(e);Object.assign(e,t)})})}function g(){!d||(e=r.Sizzle(u.elementPathRule)[0])&&r.isElementVisible(e)||(d=null,c=null,u.hide({validationHidden:!0}),u=null);var e=Tr.get(document);((null==(e=e.bubbleEvents)?void 0:e.focusin)||[]).some(e=>e.handler===v)||r.attachEvent(document,"focusin",v)}function m(t){return"form"!==t.launchMethod||_.some(i,({id:e})=>e===t.id)||i.push(t),!0}function t(){0!==i.length&&o.util.addInlineStyles("pendo-form-validation-styles",`input[data-pendo-field-valid="false"] {
33
+ `,rS={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()@:%_+.~#?&/=]*)$/},oS={"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 aS={email(e){return rS.emailRegex.test(e)},phone(e){return rS.phoneRegex.test(e)},date(e,t={}){return(oS[t.format]||oS["MM/DD/YYYY"]).test(e)},url(e){return rS.urlRegex.test(e)},number(e,t={}){if(""===e)return!1;let{min:n,max:i,allowDecimal:r}=t;var t=sS(n),o=sS(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=sS(n),r=sS(i);return t&&(n=Number(n)),r&&(i=Number(i)),!(t&&e.length<n||r&&e.length>i)}};function sS(e){return e!==undefined&&null!==e&&""!==e}const uS=function(){let r,o,i=[],a,u,d,c=null,s;return{name:"FormValidation",validationGuides:i,debouncedValidate:a,initialize:function(e,t){var n=t.ConfigReader.get("formValidation");if(n){r=e,o=t,a=_.debounce(w,100),o.Events.on("deliverablesLoaded",p),o.Events.on("guideLoopStopped",h),o.Events.on("guideListChanged",f),o.GuideLoop.addUpdatePhase(g),o.guides.addProcessor(m);const i=!(null===r||void 0===r||!r.designer);s=setInterval(()=>{i&&(l(),clearInterval(s),s=null)},1e3),e.attachEvent(document,"focusin",v),e.attachEvent(document,"focusout",y),e.attachEvent(document,"input",a)}},teardown:l,appendValidationStyles:t,getActiveStep:function(){return u},setActiveStep:function(e){u=e},setActiveField:function(e){d=e},getActiveField:function(){return d},getActiveFieldIsValid:function(){return c},setActiveFieldIsValid:function(e){c=e},getValidationGuides:function(){return i},setValidationGuides:function(e){i=e},initializeFormValidation:f,clearAllValidationGuides:p,extractValidationGuides:m,applyFormBehaviors:e,checkValidationFieldVisibility:g,hideValidationTooltip:h,focusField:v,blurField:y,findFieldByElement:b,validateInput:w,validateField:S,getRuleText:E,setValidationStyle:I};function l(){o&&(s&&(clearInterval(s),s=null),o.Events.off("deliverablesLoaded",p),o.Events.off("guideLoopStopped",h),o.Events.off("guideListChanged",f),o.GuideLoop.removeUpdatePhase(g),o.guides.removeProcessor(m),r.detachEvent(document,"focusin",v),r.detachEvent(document,"focusout",y),r.detachEvent(document,"input",a),a.cancel(),i=[],u=null,d=null,c=null)}function p(){o.guides.removeDisplayableGuides("validationGuides"),i=[]}function h(){r.detachEvent(document,"focusin",v),d&&(d=null,c=null),u&&(u.hide({validationHidden:!0}),u=null)}function f(){t(),o.guides.registerDisplayableGuides("validationGuides",i),e()}function e(){_.map(i,function(e){_.map(e.steps,function(e){var t=function(){if(!this.attributes)return C.info("buildFormStepBehaviors called with invalid context"),{};const t=this,n=t.show,i=t.hide;return{show:function(e){return!t.attributes.validationHidden&&n.call(t,e)},hide:function(e){return e&&e.validationHidden&&(t.attributes.validationHidden=!0),i.call(t,e)}}}.call(e);Object.assign(e,t)})})}function g(){!d||(e=r.Sizzle(u.elementPathRule)[0])&&r.isElementVisible(e)||(d=null,c=null,u.hide({validationHidden:!0}),u=null);var e=Tr.get(document);((null==(e=e.bubbleEvents)?void 0:e.focusin)||[]).some(e=>e.handler===v)||r.attachEvent(document,"focusin",v)}function m(t){return"form"!==t.launchMethod||_.some(i,({id:e})=>e===t.id)||i.push(t),!0}function t(){0!==i.length&&o.util.addInlineStyles("pendo-form-validation-styles",`input[data-pendo-field-valid="false"] {
34
34
  border-color: red !important;
35
35
  outline-color: red !important;
36
- }`)}function v(e){var t,n,i,r,o,a,s,e=e["target"];"INPUT"===e.tagName&&(t=b(e))&&u&&(u.attributes.validationHidden=!1,u.domJson||(n=d.rules[0],i=Xw("context-"+d.id,d.context),n=null!=n&&n.type?function(e,t){return{props:{id:"rule-"+e,"class":"text-row",style:{display:"flex","align-items":"center"}},children:[Xw(e,t)],type:"div"}}(n.id,n.ruleText):null,0!==(i=[i,n].filter(Boolean)).length&&(n=ve(Vw),r=ve(Jw),o=ve($w),a=ve(Kw),s=ve(Zw),n.children.push(r,o),o.children.push(a),a.children.push(s),s.children=i,u.domJson=n)),u.show("api"),(o=document.getElementById("rule-"+(null==(r=null===d||void 0===d?void 0:d.rules[0])?void 0:r.id)))&&null!=(a=null===d||void 0===d?void 0:d.rules[0])&&a.type&&(s=null===d.isValid?Yw(Qw):c?Yw(eS):Yw(tS),o.insertBefore(s,o.firstChild)),""!==t.value)&&S(e)}function y(e){e=e.target;d&&u&&(r.Sizzle.matchesSelector(e,null===u||void 0===u?void 0:u.elementPathRule)&&I(e,c),u.hide({validationHidden:!0}),null===d.isValid&&!1===c&&(E().props.style.color="red"),d.isValid=c,d=null,u=null,c=null)}function b(t){u&&u.hide({validationHidden:!0}),u=null,d=null,c=null;for(const n of i){var e=_.find(n.steps,function(e){return r.Sizzle.matchesSelector(t,e.elementPathRule)});if(e)return u=e,d=null==(e=e.attributes)?void 0:e.field,c=d.isValid,d}return null}function w(e){var t,e=e["target"];r.Sizzle.matchesSelector(e,null===u||void 0===u?void 0:u.elementPathRule)?S(e):(t=b(e))&&(c=t.isValid,S(e))}function S(t){var n=null===d||void 0===d?void 0:d.rules[0];if(n){var i=rS[n.type];if(i){n=i(t.value,n.options),i=(c=!!n,E());let e;null===d.isValid?(i.props.style.color=n?"green":"gray",e=Yw(n?eS:Qw)):(i.props.style.color=n?"green":"red",e=Yw(n?eS:tS),I(t,n)),u.hide({stepHidden:!0}),u.show("api");i=document.getElementById("rule-"+d.rules[0].id);i&&i.insertBefore(e,i.firstChild)}}}function E(){return vc("text-"+d.rules[0].id,u.domJson)}function I(e,t){!1===t?e.setAttribute("data-pendo-field-valid",!1):e.removeAttribute("data-pendo-field-valid")}}();class sS{constructor(e,t,n,i,r,o){this.listeners=[],this.latestPromptValue="",this.dom=e.dom,this._=e._,this.api=t,this.q=t.q,this.id=n,this.setFilters(i),this._.isArray(r)||(this.api.log.error("inputCssSelectors must be an array, received:",typeof r),r=[]),this._.isArray(o)||(this.api.log.error("submitCssSelectors must be an array, received:",typeof o),o=[]),this.inputEls=this._.map(r,e=>new this.dom.Element(e)),this.submitEls=this._.map(o,e=>new this.dom.Element(e)),this.setupInputListeners(),this.setupSubmitListeners(),this.setupObserver()}setupInputListeners(){this._.each(this.inputEls,e=>{e&&(e.addEventListener("change",e=>{this.capturePromptValue()},!0),e.addEventListener("keydown",e=>{"Enter"!==e.code&&"Enter"!==e.key&&13!==e.keyCode||this.submit(this.latestPromptValue)},!0),e.addEventListener("keyup",e=>{this.capturePromptValue()},!0))})}setupSubmitListeners(){this._.each(this.submitEls,e=>{e&&(e.addEventListener("mousedown",e=>{var t=this.getPromptValue()||this.latestPromptValue;this.submit(t)},!0),e.addEventListener("keydown",e=>{"Enter"!==e.code&&"Enter"!==e.key&&13!==e.keyCode||(e=this.getPromptValue()||this.latestPromptValue,this.submit(e))},!0))})}setupObserver(){this.promptContainer=new this.dom.Observer;var e=this._.filter(this.inputEls,e=>e),t=this._.filter(this.submitEls,e=>e);this.promptContainer.addObservers(...e,...t)}setFilters(e){if(!e)return this.privacyFilters=null;try{this.privacyFilters=new RegExp(e,"gmi")}catch(t){this.privacyFilters=null,this.api.log.error(t)}return this.privacyFilters}applyPrivacyFilter(e,t=null){t=t||this.privacyFilters;return t&&this._.isRegExp(t)?e.replace(t,"redacted"):e}submit(e){if(e){var t=this.applyPrivacyFilter(e);const n={agentId:this.id,prompt:t,privacyFilterApplied:t!==e};this._.each(this.listeners,e=>e(n))}}capturePromptValue(e=!1){var t=this.getPromptValue();return!t&&e||(this.latestPromptValue=t),t}getPromptValue(){var e=this._.find(this.inputEls,e=>{if(e)try{var t=e.getText();return t&&t.trim()}catch(n){}return!1});if(e)try{return e.getText().trim()}catch(t){}return""}onSubmit(e){this.listeners.push(e)}teardown(){this.promptContainer&&this.promptContainer.teardown(),this._.each(this.inputEls,e=>{e&&e.teardown()}),this._.each(this.submitEls,e=>{e&&e.teardown()})}}class uS{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"](()=>{}),null!=(e=this.api.Events.urlChanged)&&e.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)),id(i,t,{logger:this.api.log,context:"agent",id:n})}reEvaluatePageRules(){const n=nd();var e=this.api.ConfigReader.get(this.configName)||[];const i=this._.map(this.prompts,e=>e.id);this.prompts=this._.filter(this.prompts,e=>{e=this.findAgentById(e.id);return e&&this.testPageRule(e.pageRule,n,e.id)}),this._.each(e,e=>{var t=this._.contains(i,e.id);this.testPageRule(e.pageRule,n,e.id)&&!t&&this.observePrompt(e)})}findAgentById(e){return this.agentsCache||(this.agentsCache=new Map),this.agentsCache.get(e)}applyPrivacyFilter(e,t=null){return t&&this._.isRegExp(t)?e.replace(t,"redacted"):e}onConfigLoaded(e=[]){if(e&&this._.isArray(e)&&0!==e.length){var t=[],n=[];for(const i of e)("network"===i.trackingMethod?t:(i.trackingMethod,n)).push(i);0<t.length&&(this.networkAgents=t,this.api.NetworkRequest.on({request:this.handleRequest,error:this.handleError})),this.agentsCache||(this.agentsCache=new Map),this.agentsCache.clear(),this._.each(e,e=>this.agentsCache.set(e.id,e)),this._.each(n,e=>{var t=nd();this.testPageRule(e.pageRule,t,e.id)&&this.observePrompt(e)})}}handleRequest({method:i,url:r,body:o}){this._.each(this.networkAgents,e=>{var t=o||"",n=this.applyPrivacyFilter(t,e.privacyFilters);this.api.analytics.collectEvent("prompt",{prompt:n,agentId:e.id,promptType:i,url:r,privacyFilterApplied:n!==t})})}handleError({error:e,context:t}){"fetch"==t&&this.api.log.debug("[PromptPlugin] Fetch tracking failed:",e),"xhr"==t&&this.api.log.debug("[PromptPlugin] XHR tracking failed:",e)}observePrompt(e){const{id:t,cssSelectors:n,privacyFilters:i}=e;var r;this._.find(this.prompts,e=>e.id===t)||(e=this.parseCssSelector("input",n),r=this.parseCssSelector("submit",n),(e=new sS(this.pendo,this.api,t,i,e,r)).onSubmit(e=>{this.sendEvent(e)}),this.prompts.push(e))}parseCssSelector(t,e){e=this._.filter(e,e=>e.type===t);return this._.map(e,e=>e.cssSelector)}sendEvent(e){var t=nd(),n=this.findAgentById(e.agentId);n&&!this.testPageRule(n.pageRule,t,n.id)||(t=this._.extend({promptType:"request"},e),this.api.analytics.collectEvent("prompt",t))}teardown(){this._.each(this.prompts,e=>e.teardown()),this.agentsCache&&this.agentsCache.clear(),this.api.NetworkRequest.off({request:this.handleRequest,error:this.handleError})}}var dS=new uS;function cS(i){var t;!function(e){e.getVersion=et,e.isReady=Bv,e.pageLoad=wu,e.getVisitorId=Jn,e.getAccountId=$n,e.clearSession=Xn,e.VERSION=Xe,e.LOADER=Qe,e.flushNow=s(function(e){return gs(0,e)}),e.teardown=Qn(Yv),e.initGuides=s(iv),e.loadGuides=s(Gm),e.findGuideByName=s(fd),e.hideGuides=s(Dg),e.onGuideDismissed=s(Jg),e.goToStep=Kg,e.onGuideAdvanced=s(Zg),e.onGuidePrevious=s(Xg),e.onGuideSnoozed=$g,e.startGuides=s(Ch),e.stopGuides=s(xh),e.defaultCssUrl=s(Tg()),e.getActiveGuides=ud,e.getActiveGuide=yv,e.guideSeenTimeoutLength=Qy.getGuideSeenTimeoutLength(),e.guidesPayload=Am,e.areGuidesDisabled=s(rv),e.setGuidesDisabled=s(av),e.buildNodeFromJSON=U.buildNodeFromJSON,e.flexElement=s(U.flexElement),e.GuideFactory=s(ac),e.dom=k,e.getText=_a,e.attachEvent=s(l),e.detactEvent=s(Qu),e.frames={setFrameVisibility:Nd},e.log=vy,e.enableLogging=py,e.disableLogging=hy,e.setActiveContexts=Iy,e.showLogHistory=Sy,e.getLoggedContexts=Ey,e.isDebuggingEnabled=_.noop,e.enableDebugging=_.noop,e.disableDebugging=_.noop,e.addDebuggingFunctions=_.noop,e.stopSendingEvents=s(ls.lock),e.startSendingEvents=s(ls.unlock),e.isSendingEvents=s(Bo),e.fromByteArray=c.uint8ToBase64,e.events=s(Gd),e.track=s(xy),e.trackAgent=s(Ty),e.validateInstall=ky,e.validateNativeMethods=Ay,e.validateBuiltInGlobals=Ry,e.validateUrl=Oy,e.validateEnvironment=Ly,e.doesExist=me,e.generate_unique_id=Mn,e.TEMP_PREFIX=kn,e.SIZE_UNIQUE_ID=An,e._defaultLauncher_queue=[],e.defaultLauncher=()=>{e._defaultLauncher_queue.push(arguments)},e.toggleLauncher=_.noop,e.showLauncher=_.noop,e.hideLauncher=_.noop,e.removeLauncher=_.noop,e.identify=Zl,e.get_visitor_id=Jn,e.set_visitor_id=function(e){Zl(e)},e.get_account_id=$n,e.set_account_id=function(e){Zl(y(),e)},e.getSerializedMetadata=ep,e.compress=at,e.squeezeAndCompress=at,e.randomElement=lt,e.randomString=pt,e.toUTF8Array=nt,e.getNumberFromText=bt,e._addCredits=s(Yg),e.getCurrentUrl=nd,e.getNormalizedUrl=nd,e.testUrlForStep=s(rd),e.showGuideByName=s(Im),e.showGuideById=s(_m),e.designerv2=Rf,e.P2AutoLaunch=s($f),e.BuildingBlocks=s(Py),e.onConnectMessage=_.noop,e.buffers=ls,e.guideDev=s(ty),e.badgesShown=s(ad),e.get_pendo_cookie=Jt,e.DEFAULT_EXPIRE_LEN=Kt,e.set_pendo_cookie=Xt,e.loadResource=La,e.loadWatcher=Pa,e.messageLogger=Fa,e.messageReceiver=Da,e.messageValidator=Ua,e.MESSAGE_TYPES=Ba,e.messageDispatcher=Ha,e.moduleRegistry=qa,e.addModule=Wa,e.hasModule=s(Va),e.findModuleByName=s(Ja),e.modulesWaiting=$a,e.loadModules=Ka,e.moduleLoader=Za,e.TOOLTIP_DEFAULT_WIDTH=430,e.TOOLTIP_DEFAULT_HEIGHT=200,e.TOOLTIP_ARROW_SIZE=15,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e.sniffer=ze,e.url=A,e.location=Zy,e.Sizzle=Cr,e._=_,e.ajax=Lr,e.Zlib=st,e.guideContent=s(cc.guideContent),e.receiveDomStructureJson=s(cc.receiveDomStructureJson),e.addExtension=up}(i),(t=i).SHADOW_STYLE="",_.extend(t,{_showElementGuide:_.noop,flushEventCache:r0(null,"flushEventCache",n0),HOST:ro,MAX_LENGTH:ss,MAX_NUM_EVENTS:as,_createToolTip:_.noop,_get_tooltip_dimensions:_.noop,_isOldIE:s(r0(_e,"_isOldIE",t0)),_logMessage:r0(No,"_logMessage",t0),_sendEvent:r0(null,"_sendEvent",n0),_sendGuideEvent:r0(null,"_sendGuideEvent",n0),_stopEvents:!1,_storeInCache:r0(null,"_storeInCache",n0),_writeEventImgTag:r0(null,"_writeEventImgTag",n0),_writeImgTag:s(r0(Po,"_writeImgTag",t0)),getUA:r0(Ae,"getUA",t0),ifDebugThen:r0(null,"ifDebugThen",n0),send_event:s(r0(Ls,"send_event","has changed to pendo.cache.createEvent")),wire_page:r0(Ku,"wire_page",t0),messageOriginTester:r0(null,"messageOriginTester",n0),findGuideBy:s(hd),findGuideById:s(N),findStepInGuide:s(gd),_updateGuideStepStatus:s(Pg),_addCloseButton:s(Mg),initialize:Jv,getEventCache:s(Zm),processEventCache:s(Km),isGuideShown:s(Ng),_getNextStepInMultistep:s(Em),attachEvent:l,detachEvent:Qu,updateOptions:Kl,createLauncher:_.constant({}),initLauncher:_.noop,_addGuideToLauncher:_.noop,launcherToolTipDiv:null,isAnonymousVisitor:(e=t.get_visitor_id())=>Pn(e),DEFAULT_VISITOR_ID:Un,shouldIdentityChange:_.constant(!1),read:h.read,write:h.write,_delete_cookie:h.clear,_set_cookie:qt,_get_cookie:Ht,get_cookie_key:Vt,ENV:qe,eventCache:s(ns),_getOpacityStyles:r0(null,"_getOpacityStyles",t0),setStyle:$o,_createGuideEvent:s(ym),seenGuide:s(pm),dismissedGuide:s(hm),advancedGuide:s(fm),seenTime:0,placeBadge:s(Vh),isBadge:s(bd),showPreview:s(r0(sm,"showPreview",t0)),removeAllBadges:s(Jh),tellMaster:Xa,DEFAULT_TIMER_LENGTH:wh,registerMessageHandler:za,_get_offset:s(Qo),_shouldAutoDisplayGuide:_.constant(!1),removeBadge:$h,_showLightboxGuide:_.noop,_showGuide:s(cm),getElementForGuideStep:s(xd),isElementVisible:ya,getTooltipDivId:s(om),setupWatchOnTooltip:s(am),letters:"",charset:"",detectMaster:Ya,listenToMaster:r0(null,"listenToMaster",n0),start:td,SEND_INTERVAL:os,stageGuideEvent:s(Sm),startStagedTimer:wm,isURLValid:ds,getURL:cs,_get_screen_dim:s(Zo),_isInViewport:s(Xo),_getCss3Prop:Vo,waitThenStartGuides:s(Sh),guidesProcessingThreadHandle:bh,getMode:_.constant("default")}),_.each(["identify","updateOptions","pageLoad","track","trackAgent"],function(t){var n=i[t];i[t]=function(){try{Bv()?n.apply(this,arguments):ae(i,t,arguments)}catch(e){C.critical(e)}}})}var lS,pS,hS,fS,gS,mS=pe(),vS=function(e){var t=Y(e)?{}:window,n=document.currentScript||te(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]||{}}(mS);return lS=vS,mS=mS,h.registry.addLocal(Uh,{isPlain:!0,serializer:JSON.stringify,deserializer:Lt}),le(mS),qe=he("env")||qe,Je=he("server")||Je,$e=he("assetHost")||$e,Ke=he("assetPath")||Ke,Ze=he("designerServer")||Ze,We=he("globalBucket")||We,Ve=he("subscriptionBucket")||Ve,gS=Se()?qe+"_ext":qe,Xe=Ye+"_"+gS,!Y(mS)&&(gS=mS,hS=lS,fS=Bh(),ue(gS,hS,fS)||de(gS,hS,fS))||lS&&lS.VERSION||(!ze.isChromeExtension||(gS=mS)&&gS.useAssetHostForDesigner||console.warn("Pendo Agent detected running in a Chrome extension with setup that is incompatible with manifest V3. Please follow the linked instructions to maintain manifest V3 compatibility: https://www.npmjs.com/package/@pendo/agent#manifest-v3-extensions"),f.get("disablePendo")?(pS=lS,_.each(["initialize","identify","updateOptions","pageLoad","track","trackAgent"],function(e){pS[e]=function(){console.log("Pendo is currently disabled.")}})):((hS=g).registerModule("debugger",B0),hS.registerModule("errorLog",b0),hS.registerModule("frames",Li),hS.registerModule("guideUpdate",n),hS.registerModule("guideState",i),hS.registerModule("healthCheck",e),hS.registerModule("location",t),hS.registerModule("metadata",P0),hS.registerModule("preview",G0),hS.registerModule("nodeAttr",j0),hS.registerModule("networkUrl",H0),co(),ac.behaviors=[Dh,a0,ic.Guide,s0,d0,c0,l0],sc.behaviors=[Dh,v0,p0,lc,ic.Step,h0,y0],lc.reset(),g.dispatch("frames/init"),vy.init(),oi.wrapSizzle(Cr,Hv.shadowDom),Cr.intercept(Rd),cS(lS),C.addEventListener("log",_.partial(g.dispatch,"errorLog/write")),Av(q0),Av(Q0),Av(db),Av(mb),Av(Z1),Av(iw),Av(sw),Av(dw),Av(Qy),Av(gw),Av(mw),Av(vw),Av(Ew),Av(_w),Av(Ww),Av(aS),Av(dS),fS=lS._q,mS=Xv,gS=td,f.get("disableAutoInitialize")||(fS=(fS=Kv(fS))&&1<fS.length?fS[1]:{},_.get(fS,Wv)||f.get(Wv)?mS():Vv.push(gS(mS))))),vS}function TextCapture(){var i,r,n,o={};return{name:"TextCapture",initialize:function(e,t){r=t,(i=e).excludeAllText=r.ConfigReader.get("excludeAllText");t=r.ConfigReader.get("allowedText");o=i._.reduce(t,function(e,t){return i._.isString(t)&&(e[t]=!0),e},{}),r.NodeSerializer.add(a),n=i._.partial(s,e),r.Events.on("eventCaptured",n)},teardown:function(){r.NodeSerializer.remove(a),r.Events.off("eventCaptured",n)},isEnabled:u,isTextCapturable:d,hasWhitelist:c,serializer:a,guideActivity:s};function a(e,t,n){return t===n&&(u()||!u()&&c())&&d(t=i.getText(n,128))&&(e.txt=c()?r.util.trim.call(t):t),e}function s(e,t){var n;u()&&(n=t.data[0])&&"guideActivity"===n.type&&(t=e.getActiveGuide())&&(e=(0,e.BuildingBlocks.BuildingBlockGuides.findDomBlockInDomJson)(t.step.domJson,function(e){return e.props&&e.props.id&&e.props.id===n.props.ui_element_id}))&&(n.props.ui_element_text=e.content)}function u(){return!i.excludeAllText}function d(e){var t=r.util.trim.call(e);return u()||i._.has(o,[t])||i._.has(o,[e])}function c(){return 0<i._.size(o)}}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}const substitutionRegex="\\{(?:\\s?)([^.\\s]?visitor|account|parentAccount)\\.([^|\\s/]*)(?:\\s?\\|\\s?([^}]+|[\\/s]+))?(?:\\s?\\/\\s?){1}\\}",skipStepString="{skipStep:* *(auto|\\d+)\\/}",goToMiddleString="(?!0)(\\d+)",goToString=`({goto-${goToMiddleString}\\/})`;function lookupGuideButtons(e,t=[]){if("button"===e.type&&e.actions&&t.push(e),e.children)for(const n of e.children)lookupGuideButtons(n,t);return t}function removeMarkdownSyntax(e,t,n,i){var r;i.dom(e).hasClass("_pendo-nps-open-text-poll-question")&&(e.innerHTML=null==(r=e.innerHTML)?void 0:r.replace(t,n)),"div"===e.localName||("button"!==e.localName&&"label"!==e.localName&&"a"!==e.localName||(e.textContent=e.textContent.replace(t,n)),0<e.children.length)||(i.dom(e).hasClass("_pendo-simple-text")||i.dom(e).hasClass("_pendo-text-plain")||i.dom(e).hasClass("_pendo-text-list-item")||i.dom(e).hasClass("_pendo-text-link"))&&(e.textContent=e.textContent.replace(t,n))}var guideMarkdownUtil={substitutionRegex:substitutionRegex,skipStepString:skipStepString,goToString:goToString,lookupGuideButtons:lookupGuideButtons,removeMarkdownSyntax:removeMarkdownSyntax};function getZoneSafeMethod$1(e,t,n=window){var i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}const goToRegex=new RegExp(guideMarkdownUtil.goToString),PollBranching={name:"PollBranching",script(r,o,a){let s=!1;var e=initialBranchingSetup(r,a);!e||1<a._.size(e)||this.on("beforeAdvance",e=>{var t=0===r.guideElement.find("[branching] .pendo-radio:checked").length,n=r.guideElement.find("[branching] .pendo-radio:checked + label")[0];let i;n&&(i=a._.isNull(n.getAttribute("goToStep"))),s||t||i||(s=!0,branchingGoToStep(e,r,o,a))})},test(e,t,n){e=null==(e=e.guideElement)?void 0:e.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return!n._.isUndefined(e)&&n._.size(e)},designerListener(i){var e=i.dom.getBody();function r(e,t){return`<svg id="pendo-ps-branching-svg" viewBox="0 0 24 24" fill="none"
36
+ }`)}function v(e){var t,n,i,r,o,a,s,e=e["target"];"INPUT"===e.tagName&&(t=b(e))&&u&&(u.attributes.validationHidden=!1,u.domJson||(n=d.rules[0],i=Qw("context-"+d.id,d.context),n=null!=n&&n.type?function(e,t){return{props:{id:"rule-"+e,"class":"text-row",style:{display:"flex","align-items":"center"}},children:[Qw(e,t)],type:"div"}}(n.id,n.ruleText):null,0!==(i=[i,n].filter(Boolean)).length&&(n=ve($w),r=ve(Kw),o=ve(Zw),a=ve(Xw),s=ve(Yw),n.children.push(r,o),o.children.push(a),a.children.push(s),s.children=i,u.domJson=n)),u.show("api"),(o=document.getElementById("rule-"+(null==(r=null===d||void 0===d?void 0:d.rules[0])?void 0:r.id)))&&null!=(a=null===d||void 0===d?void 0:d.rules[0])&&a.type&&(s=null===d.isValid?eS(tS):c?eS(nS):eS(iS),o.insertBefore(s,o.firstChild)),""!==t.value)&&S(e)}function y(e){e=e.target;d&&u&&(r.Sizzle.matchesSelector(e,null===u||void 0===u?void 0:u.elementPathRule)&&I(e,c),u.hide({validationHidden:!0}),null===d.isValid&&!1===c&&(E().props.style.color="red"),d.isValid=c,d=null,u=null,c=null)}function b(t){u&&u.hide({validationHidden:!0}),u=null,d=null,c=null;for(const n of i){var e=_.find(n.steps,function(e){return r.Sizzle.matchesSelector(t,e.elementPathRule)});if(e)return u=e,d=null==(e=e.attributes)?void 0:e.field,c=d.isValid,d}return null}function w(e){var t,e=e["target"];r.Sizzle.matchesSelector(e,null===u||void 0===u?void 0:u.elementPathRule)?S(e):(t=b(e))&&(c=t.isValid,S(e))}function S(t){var n=null===d||void 0===d?void 0:d.rules[0];if(n){var i=aS[n.type];if(i){n=i(t.value,n.options),i=(c=!!n,E());let e;null===d.isValid?(i.props.style.color=n?"green":"gray",e=eS(n?nS:tS)):(i.props.style.color=n?"green":"red",e=eS(n?nS:iS),I(t,n)),u.hide({stepHidden:!0}),u.show("api");i=document.getElementById("rule-"+d.rules[0].id);i&&i.insertBefore(e,i.firstChild)}}}function E(){return vc("text-"+d.rules[0].id,u.domJson)}function I(e,t){!1===t?e.setAttribute("data-pendo-field-valid",!1):e.removeAttribute("data-pendo-field-valid")}}();class dS{constructor(e,t,n,i,r,o){this.listeners=[],this.latestPromptValue="",this.isActive=!0,this.lastSubmitTime=0,this.dom=e.dom,this._=e._,this.api=t,this.q=t.q,this.id=n,this.setFilters(i),this._.isArray(r)||(this.api.log.error("inputCssSelectors must be an array, received:",typeof r),r=[]),this._.isArray(o)||(this.api.log.error("submitCssSelectors must be an array, received:",typeof o),o=[]),this.inputEls=this._.map(r,e=>new this.dom.Element(e)),this.submitEls=this._.map(o,e=>new this.dom.Element(e)),this.setupInputListeners(),this.setupSubmitListeners(),this.setupObserver()}setupInputListeners(){this._.each(this.inputEls,e=>{e&&(e.addEventListener("change",e=>{this.capturePromptValue()},!0),e.addEventListener("keydown",e=>{"Enter"!==e.code&&"Enter"!==e.key&&13!==e.keyCode||this.submit(this.latestPromptValue)},!0),e.addEventListener("keyup",e=>{this.capturePromptValue()},!0))})}setupSubmitListeners(){this._.each(this.submitEls,e=>{e&&(e.addEventListener("mousedown",e=>{var t=this.getPromptValue()||this.latestPromptValue;this.submit(t)},!0),e.addEventListener("keydown",e=>{"Enter"!==e.code&&"Enter"!==e.key&&13!==e.keyCode||(e=this.getPromptValue()||this.latestPromptValue,this.submit(e))},!0))})}setupObserver(){this.promptContainer=new this.dom.Observer;var e=this._.filter(this.inputEls,e=>e),t=this._.filter(this.submitEls,e=>e);this.promptContainer.addObservers(...e,...t)}setFilters(e){if(!e)return this.privacyFilters=null;try{this.privacyFilters=new RegExp(e,"gmi")}catch(t){this.privacyFilters=null,this.api.log.error(t)}return this.privacyFilters}applyPrivacyFilter(e,t=null){t=t||this.privacyFilters;return t&&this._.isRegExp(t)?e.replace(t,"redacted"):e}submit(e){if(e&&this.isActive){var t=Date.now();if(!(t-this.lastSubmitTime<2)){this.lastSubmitTime=t;t=this.applyPrivacyFilter(e);const n={agentId:this.id,prompt:t,privacyFilterApplied:t!==e};this._.each(this.listeners,e=>e(n))}}}capturePromptValue(e=!1){var t=this.getPromptValue();return!t&&e||(this.latestPromptValue=t),t}getPromptValue(){var e=this._.find(this.inputEls,e=>{if(e)try{var t=e.getText();return t&&t.trim()}catch(n){}return!1});if(e)try{return e.getText().trim()}catch(t){}return""}onSubmit(e){this.listeners.push(e)}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.promptContainer&&this.promptContainer.teardown(),this._.each(this.inputEls,e=>{e&&e.teardown()}),this._.each(this.submitEls,e=>{e&&e.teardown()})}}class cS{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"](()=>{}),null!=(e=this.api.Events.urlChanged)&&e.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)),id(i,t,{logger:this.api.log,context:"agent",id:n})}reEvaluatePageRules(){const n=nd();var e=this.api.ConfigReader.get(this.configName)||[];this._.each(this.prompts,e=>{var t=this.findAgentById(e.id);t&&this.testPageRule(t.pageRule,n,t.id)?e.resume():e.suspend()});const i=this._.map(this._.filter(this.prompts,e=>e.isActive),e=>e.id);this._.each(e,e=>{var t=this._.contains(i,e.id);this.testPageRule(e.pageRule,n,e.id)&&!t&&this.observePrompt(e)})}findAgentById(e){return this.agentsCache||(this.agentsCache=new Map),this.agentsCache.get(e)}applyPrivacyFilter(e,t=null){return t&&this._.isRegExp(t)?e.replace(t,"redacted"):e}onConfigLoaded(e=[]){if(e&&this._.isArray(e)&&0!==e.length){var t=[],n=[];for(const i of e)("network"===i.trackingMethod?t:(i.trackingMethod,n)).push(i);0<t.length&&(this.networkAgents=t,this.api.NetworkRequest.on({request:this.handleRequest,error:this.handleError})),this.agentsCache||(this.agentsCache=new Map),this.agentsCache.clear(),this._.each(e,e=>this.agentsCache.set(e.id,e)),this._.each(n,e=>{var t=nd();this.testPageRule(e.pageRule,t,e.id)&&this.observePrompt(e)})}}handleRequest({method:i,url:r,body:o}){this._.each(this.networkAgents,e=>{var t=o||"",n=this.applyPrivacyFilter(t,e.privacyFilters);this.api.analytics.collectEvent("prompt",{prompt:n,agentId:e.id,promptType:i,url:r,privacyFilterApplied:n!==t})})}handleError({error:e,context:t}){"fetch"==t&&this.api.log.debug("[PromptPlugin] Fetch tracking failed:",e),"xhr"==t&&this.api.log.debug("[PromptPlugin] XHR tracking failed:",e)}observePrompt(e){const{id:t,cssSelectors:n,privacyFilters:i}=e;var r;this._.find(this.prompts,e=>e.id===t)||(e=this.parseCssSelector("input",n),r=this.parseCssSelector("submit",n),(e=new dS(this.pendo,this.api,t,i,e,r)).onSubmit(e=>{this.sendEvent(e)}),this.prompts.push(e))}parseCssSelector(t,e){e=this._.filter(e,e=>e.type===t);return this._.map(e,e=>e.cssSelector)}sendEvent(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))}teardown(){this._.each(this.prompts,e=>e.teardown()),this.agentsCache&&this.agentsCache.clear(),this.api.NetworkRequest.off({request:this.handleRequest,error:this.handleError})}}var lS=new cS;function pS(i){var t;!function(e){e.getVersion=et,e.isReady=jv,e.pageLoad=wu,e.getVisitorId=Jn,e.getAccountId=$n,e.clearSession=Xn,e.VERSION=Xe,e.LOADER=Qe,e.flushNow=s(function(e){return gs(0,e)}),e.teardown=Qn(ey),e.initGuides=s(ov),e.loadGuides=s(zm),e.findGuideByName=s(fd),e.hideGuides=s(Gg),e.onGuideDismissed=s(Kg),e.goToStep=Xg,e.onGuideAdvanced=s(Yg),e.onGuidePrevious=s(Qg),e.onGuideSnoozed=Zg,e.startGuides=s(Th),e.stopGuides=s(kh),e.defaultCssUrl=s(Ag()),e.getActiveGuides=ud,e.getActiveGuide=wv,e.guideSeenTimeoutLength=t0.getGuideSeenTimeoutLength(),e.guidesPayload=Om,e.areGuidesDisabled=s(av),e.setGuidesDisabled=s(uv),e.buildNodeFromJSON=U.buildNodeFromJSON,e.flexElement=s(U.flexElement),e.GuideFactory=s(ac),e.dom=k,e.getText=_a,e.attachEvent=s(l),e.detactEvent=s(Qu),e.frames={setFrameVisibility:Nd},e.log=by,e.enableLogging=fy,e.disableLogging=gy,e.setActiveContexts=Cy,e.showLogHistory=Iy,e.getLoggedContexts=_y,e.isDebuggingEnabled=_.noop,e.enableDebugging=_.noop,e.disableDebugging=_.noop,e.addDebuggingFunctions=_.noop,e.stopSendingEvents=s(ls.lock),e.startSendingEvents=s(ls.unlock),e.isSendingEvents=s(Bo),e.fromByteArray=c.uint8ToBase64,e.events=s(Gd),e.track=s(ky),e.trackAgent=s(Ay),e.validateInstall=Ry,e.validateNativeMethods=Oy,e.validateBuiltInGlobals=Ny,e.validateUrl=My,e.validateEnvironment=Fy,e.doesExist=me,e.generate_unique_id=Mn,e.TEMP_PREFIX=kn,e.SIZE_UNIQUE_ID=An,e._defaultLauncher_queue=[],e.defaultLauncher=()=>{e._defaultLauncher_queue.push(arguments)},e.toggleLauncher=_.noop,e.showLauncher=_.noop,e.hideLauncher=_.noop,e.removeLauncher=_.noop,e.identify=Yl,e.get_visitor_id=Jn,e.set_visitor_id=function(e){Yl(e)},e.get_account_id=$n,e.set_account_id=function(e){Yl(y(),e)},e.getSerializedMetadata=np,e.compress=at,e.squeezeAndCompress=at,e.randomElement=lt,e.randomString=pt,e.toUTF8Array=nt,e.getNumberFromText=bt,e._addCredits=s(em),e.getCurrentUrl=nd,e.getNormalizedUrl=nd,e.testUrlForStep=s(rd),e.showGuideByName=s(Cm),e.showGuideById=s(xm),e.designerv2=Nf,e.P2AutoLaunch=s(Zf),e.BuildingBlocks=s(Dy),e.onConnectMessage=_.noop,e.buffers=ls,e.guideDev=s(iy),e.badgesShown=s(ad),e.get_pendo_cookie=Jt,e.DEFAULT_EXPIRE_LEN=Kt,e.set_pendo_cookie=Xt,e.loadResource=La,e.loadWatcher=Pa,e.messageLogger=Fa,e.messageReceiver=Da,e.messageValidator=Ua,e.MESSAGE_TYPES=Ba,e.messageDispatcher=Ha,e.moduleRegistry=qa,e.addModule=Wa,e.hasModule=s(Va),e.findModuleByName=s(Ja),e.modulesWaiting=$a,e.loadModules=Ka,e.moduleLoader=Za,e.TOOLTIP_DEFAULT_WIDTH=430,e.TOOLTIP_DEFAULT_HEIGHT=200,e.TOOLTIP_ARROW_SIZE=15,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e.sniffer=ze,e.url=A,e.location=Yy,e.Sizzle=Cr,e._=_,e.ajax=Lr,e.Zlib=st,e.guideContent=s(cc.guideContent),e.receiveDomStructureJson=s(cc.receiveDomStructureJson),e.addExtension=cp}(i),(t=i).SHADOW_STYLE="",_.extend(t,{_showElementGuide:_.noop,flushEventCache:a0(null,"flushEventCache",r0),HOST:ro,MAX_LENGTH:ss,MAX_NUM_EVENTS:as,_createToolTip:_.noop,_get_tooltip_dimensions:_.noop,_isOldIE:s(a0(_e,"_isOldIE",i0)),_logMessage:a0(No,"_logMessage",i0),_sendEvent:a0(null,"_sendEvent",r0),_sendGuideEvent:a0(null,"_sendGuideEvent",r0),_stopEvents:!1,_storeInCache:a0(null,"_storeInCache",r0),_writeEventImgTag:a0(null,"_writeEventImgTag",r0),_writeImgTag:s(a0(Po,"_writeImgTag",i0)),getUA:a0(Ae,"getUA",i0),ifDebugThen:a0(null,"ifDebugThen",r0),send_event:s(a0(Ls,"send_event","has changed to pendo.cache.createEvent")),wire_page:a0(Ku,"wire_page",i0),messageOriginTester:a0(null,"messageOriginTester",r0),findGuideBy:s(hd),findGuideById:s(N),findStepInGuide:s(gd),_updateGuideStepStatus:s(Dg),_addCloseButton:s(Pg),initialize:Kv,getEventCache:s(Ym),processEventCache:s(Xm),isGuideShown:s(Lg),_getNextStepInMultistep:s(_m),attachEvent:l,detachEvent:Qu,updateOptions:Xl,createLauncher:_.constant({}),initLauncher:_.noop,_addGuideToLauncher:_.noop,launcherToolTipDiv:null,isAnonymousVisitor:(e=t.get_visitor_id())=>Pn(e),DEFAULT_VISITOR_ID:Un,shouldIdentityChange:_.constant(!1),read:h.read,write:h.write,_delete_cookie:h.clear,_set_cookie:qt,_get_cookie:Ht,get_cookie_key:Vt,ENV:qe,eventCache:s(ns),_getOpacityStyles:a0(null,"_getOpacityStyles",i0),setStyle:$o,_createGuideEvent:s(wm),seenGuide:s(fm),dismissedGuide:s(gm),advancedGuide:s(mm),seenTime:0,placeBadge:s($h),isBadge:s(bd),showPreview:s(a0(dm,"showPreview",i0)),removeAllBadges:s(Kh),tellMaster:Xa,DEFAULT_TIMER_LENGTH:Eh,registerMessageHandler:za,_get_offset:s(Qo),_shouldAutoDisplayGuide:_.constant(!1),removeBadge:Zh,_showLightboxGuide:_.noop,_showGuide:s(pm),getElementForGuideStep:s(xd),isElementVisible:ya,getTooltipDivId:s(sm),setupWatchOnTooltip:s(um),letters:"",charset:"",detectMaster:Ya,listenToMaster:a0(null,"listenToMaster",r0),start:td,SEND_INTERVAL:os,stageGuideEvent:s(Im),startStagedTimer:Em,isURLValid:ds,getURL:cs,_get_screen_dim:s(Zo),_isInViewport:s(Xo),_getCss3Prop:Vo,waitThenStartGuides:s(Ih),guidesProcessingThreadHandle:Sh,getMode:_.constant("default")}),_.each(["identify","updateOptions","pageLoad","track","trackAgent"],function(t){var n=i[t];i[t]=function(){try{jv()?n.apply(this,arguments):ae(i,t,arguments)}catch(e){C.critical(e)}}})}var hS,fS,gS,mS,vS,yS=pe(),bS=function(e){var t=Y(e)?{}:window,n=document.currentScript||te(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]||{}}(yS);return hS=bS,yS=yS,h.registry.addLocal(Bh,{isPlain:!0,serializer:JSON.stringify,deserializer:Lt}),le(yS),qe=he("env")||qe,Je=he("server")||Je,$e=he("assetHost")||$e,Ke=he("assetPath")||Ke,Ze=he("designerServer")||Ze,We=he("globalBucket")||We,Ve=he("subscriptionBucket")||Ve,vS=Se()?qe+"_ext":qe,Xe=Ye+"_"+vS,!Y(yS)&&(vS=yS,gS=hS,mS=jh(),ue(vS,gS,mS)||de(vS,gS,mS))||hS&&hS.VERSION||(!ze.isChromeExtension||(vS=yS)&&vS.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"),b.get("disablePendo")?(fS=hS,_.each(["initialize","identify","updateOptions","pageLoad","track","trackAgent"],function(e){fS[e]=function(){console.log("Pendo is currently disabled.")}})):((gS=f).registerModule("debugger",j0),gS.registerModule("errorLog",S0),gS.registerModule("frames",Li),gS.registerModule("guideUpdate",n),gS.registerModule("guideState",i),gS.registerModule("healthCheck",e),gS.registerModule("location",t),gS.registerModule("metadata",D0),gS.registerModule("preview",z0),gS.registerModule("nodeAttr",q0),gS.registerModule("networkUrl",W0),co(),ac.behaviors=[Gh,u0,ic.Guide,d0,l0,p0,h0],sc.behaviors=[Gh,b0,f0,lc,ic.Step,g0,w0],lc.reset(),f.dispatch("frames/init"),by.init(),oi.wrapSizzle(Cr,Wv.shadowDom),Cr.intercept(Rd),pS(hS),C.addEventListener("log",_.partial(f.dispatch,"errorLog/write")),Ov(V0),Ov(tb),Ov(lb),Ov(yb),Ov(Y1),Ov(ow),Ov(dw),Ov(lw),Ov(t0),Ov(vw),Ov(yw),Ov(bw),Ov(_w),Ov(xw),Ov(Jw),Ov(uS),Ov(lS),mS=hS._q,yS=Qv,vS=td,b.get("disableAutoInitialize")||(mS=(mS=Xv(mS))&&1<mS.length?mS[1]:{},_.get(mS,Jv)||b.get(Jv)?yS():$v.push(vS(yS))))),bS}function TextCapture(){var i,r,n,o={};return{name:"TextCapture",initialize:function(e,t){r=t,(i=e).excludeAllText=r.ConfigReader.get("excludeAllText");t=r.ConfigReader.get("allowedText");o=i._.reduce(t,function(e,t){return i._.isString(t)&&(e[t]=!0),e},{}),r.NodeSerializer.add(a),n=i._.partial(s,e),r.Events.on("eventCaptured",n)},teardown:function(){r.NodeSerializer.remove(a),r.Events.off("eventCaptured",n)},isEnabled:u,isTextCapturable:d,hasWhitelist:c,serializer:a,guideActivity:s};function a(e,t,n){return t===n&&(u()||!u()&&c())&&d(t=i.getText(n,128))&&(e.txt=c()?r.util.trim.call(t):t),e}function s(e,t){var n;u()&&(n=t.data[0])&&"guideActivity"===n.type&&(t=e.getActiveGuide())&&(e=(0,e.BuildingBlocks.BuildingBlockGuides.findDomBlockInDomJson)(t.step.domJson,function(e){return e.props&&e.props.id&&e.props.id===n.props.ui_element_id}))&&(n.props.ui_element_text=e.content)}function u(){return!i.excludeAllText}function d(e){var t=r.util.trim.call(e);return u()||i._.has(o,[t])||i._.has(o,[e])}function c(){return 0<i._.size(o)}}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}const substitutionRegex="\\{(?:\\s?)([^.\\s]?visitor|account|parentAccount)\\.([^|\\s/]*)(?:\\s?\\|\\s?([^}]+|[\\/s]+))?(?:\\s?\\/\\s?){1}\\}",skipStepString="{skipStep:* *(auto|\\d+)\\/}",goToMiddleString="(?!0)(\\d+)",goToString=`({goto-${goToMiddleString}\\/})`;function lookupGuideButtons(e,t=[]){if("button"===e.type&&e.actions&&t.push(e),e.children)for(const n of e.children)lookupGuideButtons(n,t);return t}function removeMarkdownSyntax(e,t,n,i){var r;i.dom(e).hasClass("_pendo-nps-open-text-poll-question")&&(e.innerHTML=null==(r=e.innerHTML)?void 0:r.replace(t,n)),"div"===e.localName||("button"!==e.localName&&"label"!==e.localName&&"a"!==e.localName||(e.textContent=e.textContent.replace(t,n)),0<e.children.length)||(i.dom(e).hasClass("_pendo-simple-text")||i.dom(e).hasClass("_pendo-text-plain")||i.dom(e).hasClass("_pendo-text-list-item")||i.dom(e).hasClass("_pendo-text-link"))&&(e.textContent=e.textContent.replace(t,n))}var guideMarkdownUtil={substitutionRegex:substitutionRegex,skipStepString:skipStepString,goToString:goToString,lookupGuideButtons:lookupGuideButtons,removeMarkdownSyntax:removeMarkdownSyntax};function getZoneSafeMethod$1(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>
@@ -138,4 +138,4 @@ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{
138
138
  }
139
139
  `,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()),D()}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 z(e){e=e||M();if(!isUnsupportedIE(h)&&s&&a&&u&&d)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,u=t.siteUrl,d=t.productId,c)return f.q.reject();if(!z(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 x().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:d}]}),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:d}]}),e)}function j(){return c}function F(){h._.each(h._.values(p),function(e){h.dom("#"+e).remove()}),d=r=u=s=a="",c=o=!1,f.agentStorage.clear(i),f.agentStorage.clear(l)}function H(){return JSON.parse(JSON.stringify(f.ConfigReader.get("feedbackSettings",{})))}}function URLPolyfillFactory(n){return function URL(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 URL$1=function(e){var t=window.URL;return"function"==typeof t&&/native/.test(t)?t:e(document)}(URLPolyfillFactory);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},u=Object.defineProperty,t=(e,t,n)=>{return n=n,(t="symbol"!=typeof t?t+"":t)in(e=e)?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},P=(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))(P||{});const d={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},c={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},g={};function m(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 d?d[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{var o,a=document.createElement("iframe"),s=(document.body.appendChild(a),a.contentWindow);return s?(o=s[e].prototype,document.body.removeChild(a),o?g[e]=o:n):t.prototype}catch{return n}}const v={};function n(e,t,n){var i=e+"."+String(n);return v[i]?v[i].call(t):(e=m(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(v[i]=e).call(t):t[n])}const y={};function b(e,t,n){var i=e+"."+String(n);return y[i]?y[i].bind(t):"function"!=typeof(e=m(e)[n])?t[n]:(y[i]=e).bind(t)}const F={childNodes:function(e){return n("Node",e,"childNodes")},parentNode:function(e){return n("Node",e,"parentNode")},parentElement:function(e){return n("Node",e,"parentElement")},textContent:function(e){return n("Node",e,"textContent")},contains:function(e,t){return b("Node",e,"contains")(t)},getRootNode:function(e){return b("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?n("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?n("Element",e,"shadowRoot"):null},querySelector:function(e,t){return n("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return n("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return m("MutationObserver").constructor},patch:function(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()=>{}}}};function $(e){return e.nodeType===e.ELEMENT_NODE}function D(e){var t=e&&"host"in e&&"mode"in e&&F.host(e)||null;return Boolean(t&&"shadowRoot"in t&&F.shadowRoot(t)===e)}function U(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function w(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]}const G="undefined"!=typeof window?w("setTimeout").bind(window):global.setTimeout;function A(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=>S(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 S(t,n){var i,r;if("styleSheet"in t){let e;try{e=A(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 de{constructor(){t(this,"idNodeMap",new Map),t(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 K({element:e,maskInputOptions:t,tagName:n,type:i,value:r,maskInputFn:o,needsMask:a}){let s=r||"";r=i&&T(i);return s=t[n.toLowerCase()]||r&&t[r]||a?o?o(s,e):"*".repeat(s.length):s}function T(e){return e.toLowerCase()}const R="__rrweb_original__";function Z(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?T(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 E=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,I=/^(?:[a-z+]+:)?\/\//i,_=/^www\..*/i,C=/^(data:)([^,]*),(.*)/i;function f(e,u){return(e||"").replace(E,(e,t,n,i,r,o)=>{n=n||r||o,r=t||i||"";if(!n)return e;if(I.test(n)||_.test(n))return`url(${r}${n}${r})`;if(C.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]}(u)+n}${r})`;var a=u.split("/"),o=n.split("/");a.pop();for(const s of o)"."!==s&&(".."===s?a.pop():a.push(s));return`url(${r}${a.join("/")}${r})`})}function x(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function O(e,t){return function(a,e,s=!1){var u=Array.from(e.childNodes),d=[];let c=0;if(1<u.length&&a&&"string"==typeof a){let o=x(a,s);var l=o.length/a.length;for(let r=1;r<u.length;r++)if(u[r].textContent&&"string"==typeof u[r].textContent){var p,h=x(u[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]&&""!==u[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 d.push(a),d;i=101}else i===h.length-1&&(n=o.indexOf(e));if(-1!==(n=2<=t.length&&100<i&&((p=u[r-1].textContent)&&"string"==typeof p&&(p=x(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*u.length)return d.push(a),d;var f=x(a.substring(0,e),s);if(f.length===n){d.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 d.push(a),d}(e,t).join("/* rr_split */")}let ce=1;const N=new RegExp("[^a-z0-9-_:]"),B=-2;function M(){return ce++}let k,le;const pe=/^[^ \t\n\r\u000c]+/,he=/^[, \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(he),!(o>=r.length);){let n=e(pe);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"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?fe(e,i):"style"===n?f(i,ve(e)):"object"===t&&"data"===n?me(e,i):i:me(e,i))}function be(e,t){return("video"===e||"audio"===e)&&"autoplay"===t}function we(t,n,e){if(!t)return!1;if(!n)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!e&&we(F.parentNode(t),n,e);for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}return!!e&&we(F.parentNode(t),n,e)}function z(e,t,n,i){let r;if($(e)){if(r=e,"*"===n)return!0;if(!F.childNodes(r).length)return!1}else{if(null===F.parentElement(e))return!1;r=F.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(we(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 Se(e,t){var n,{needsMask:i,maskTextFn:r,maskInputOptions:o,maskInputFn:a,rootId:s,cssCaptured:u}=t,d=e.parentNode&&e.parentNode.tagName;let c="";var l="STYLE"===d||void 0,p="SCRIPT"===d||void 0,d="TEXTAREA"===d||void 0;if(l&&c){try{e.nextSibling||e.previousSibling||null!=(n=e.parentNode.sheet)&&n.cssRules&&(c=A(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":u||(c=F.textContent(e),l&&(c=c&&f(c,ve(t.doc)))),!l&&!p&&c&&i&&(c=r?r(c,F.parentElement(e)):c.replace(/[\S]/g,"*")),d&&c&&o.textarea&&(c=a?a(c,e.parentNode):c.replace(/[\S]/g,"*")),{type:P.Text,textContent:c||"",rootId:s}}function Ee(t,e){const{doc:n,blockClass:i,blockSelector:r,inlineStylesheet:o,maskInputOptions:a={},maskInputFn:s,dataURLOptions:u={},inlineImages:d,recordCanvas:c,keepIframeSrcFn:l,newlyAddedElement:p=!1,rootId:h,needsMask:f}=e;var e=function(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}(t,i,r),g=(w=t)instanceof HTMLFormElement?"form":(w=T(w.tagName),N.test(w)?"div":w);let m={};var v,y=t.attributes.length;for(let e=0;e<y;e++){var b=t.attributes[e];be(g,b.name,b.value)||(m[b.name]=ye(n,g,T(b.name),b.value))}if("link"===g&&o){var w=Array.from(n.styleSheets).find(e=>e.href===t.href);let e=null;(e=w?A(w):e)&&(delete m.rel,delete m.href,m._cssText=e)}if("style"===g&&t.sheet){let e=A(t.sheet);e&&(1<t.childNodes.length&&(e=O(e,t)),m._cssText=e)}if("input"!==g&&"textarea"!==g&&"select"!==g||(w=t.value,v=t.checked,"radio"!==m.type&&"checkbox"!==m.type&&"submit"!==m.type&&"button"!==m.type&&w?m.value=K({element:t,type:Z(t),tagName:g,value:w,maskInputOptions:a,maskInputFn:s,needsMask:f}):v&&(m.checked=v)),"option"===g&&(t.selected&&!a.select?m.selected=!0:delete m.selected),"dialog"===g&&t.open&&(m.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),"canvas"===g&&c&&("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=R in r?r[R]: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)||(m.rr_dataURL=t.toDataURL(u.type,u.quality)):"__context"in t||(w=t.toDataURL(u.type,u.quality),(v=n.createElement("canvas")).width=t.width,v.height=t.height,w!==v.toDataURL(u.type,u.quality)&&(m.rr_dataURL=w))),"img"===g&&d){k||(k=n.createElement("canvas"),le=k.getContext("2d"));const I=t,_=I.currentSrc||I.getAttribute("src")||"<unknown-src>",C=I.crossOrigin,x=()=>{I.removeEventListener("load",x);try{k.width=I.naturalWidth,k.height=I.naturalHeight,le.drawImage(I,0,0),m.rr_dataURL=k.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==I.crossOrigin)return I.crossOrigin="anonymous",void(I.complete&&0!==I.naturalWidth?x():I.addEventListener("load",x));console.warn(`Cannot inline img src=${_}! Error: `+e)}"anonymous"===I.crossOrigin&&(C?m.crossOrigin=C:I.removeAttribute("crossorigin"))};I.complete&&0!==I.naturalWidth?x():I.addEventListener("load",x)}"audio"!==g&&"video"!==g||((v=m).rr_mediaState=t.paused?"paused":"played",v.rr_mediaCurrentTime=t.currentTime,v.rr_mediaPlaybackRate=t.playbackRate,v.rr_mediaMuted=t.muted,v.rr_mediaLoop=t.loop,v.rr_mediaVolume=t.volume),p||(t.scrollLeft&&(m.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(m.rr_scrollTop=t.scrollTop)),e&&({width:w,height:v}=t.getBoundingClientRect(),m={"class":m["class"],rr_width:w+"px",rr_height:v+"px"}),"iframe"!==g||l(m.src)||(t.contentDocument||(m.rr_src=m.src),delete m.src);let S;try{customElements.get(g)&&(S=!0)}catch(E){}return{type:P.Element,tagName:g,attributes:m,childNodes:[],isSVG:(w=t,Boolean("svg"===w.tagName||w.ownerSVGElement)||void 0),needBlock:e,rootId:h,isCustom:S}}function j(e){return null==e?"":e.toLowerCase()}function Y(t,e){const{doc:n,mirror:i,blockClass:r,blockSelector:o,maskTextClass:a,maskTextSelector:s,skipChild:u=!1,inlineStylesheet:d=!0,maskInputOptions:c={},maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f={},inlineImages:g=!1,recordCanvas:m=!1,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b=5e3,onStylesheetLoad:w,stylesheetLoadTimeout:S=5e3,keepIframeSrcFn:E=()=>!1,newlyAddedElement:I=!1,cssCaptured:_=!1}=e;let C=e["needsMask"],{preserveWhiteSpace:x=!0}=e;C||(e=void 0===C,C=z(t,a,s,e));e=function(e,t){var n,{doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:a,inlineStylesheet:s,maskInputOptions:u={},maskTextFn:d,maskInputFn:c,dataURLOptions:l={},inlineImages:p,recordCanvas:h,keepIframeSrcFn:f,newlyAddedElement:g=!1,cssCaptured:m=!1}=t,v=(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:P.Document,childNodes:[],compatMode:e.compatMode}:{type:P.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:P.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:v};case e.ELEMENT_NODE:return Ee(e,{doc:i,blockClass:r,blockSelector:o,inlineStylesheet:s,maskInputOptions:u,maskInputFn:c,dataURLOptions:l,inlineImages:p,recordCanvas:h,keepIframeSrcFn:f,newlyAddedElement:g,rootId:v,needsMask:a});case e.TEXT_NODE:return Se(e,{doc:i,needsMask:a,maskTextFn:d,maskInputOptions:u,maskInputFn:c,rootId:v,cssCaptured:m});case e.CDATA_SECTION_NODE:return{type:P.CDATA,textContent:"",rootId:v};case e.COMMENT_NODE:return{type:P.Comment,textContent:F.textContent(e)||"",rootId:v};default:return!1}}(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:C,inlineStylesheet:d,maskInputOptions:c,maskTextFn:l,maskInputFn:p,dataURLOptions:f,inlineImages:g,recordCanvas:m,keepIframeSrcFn:E,newlyAddedElement:I,cssCaptured:_});if(!e)return console.warn(t,"not serialized"),null;let T;T=i.hasNode(t)?i.getId(t):function(e,t){if(t.comment&&e.type===P.Comment)return 1;if(e.type===P.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&&(j(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===j(e.attributes.name)||"icon"===j(e.attributes.rel)||"apple-touch-icon"===j(e.attributes.rel)||"shortcut icon"===j(e.attributes.rel))))return 1;if("meta"===e.tagName){if(t.headMetaDescKeywords&&j(e.attributes.name).match(/^description|keywords$/))return 1;if(t.headMetaSocial&&(j(e.attributes.property).match(/^(og|twitter|fb):/)||j(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===j(e.attributes.name)))return 1;if(t.headMetaRobots&&("robots"===j(e.attributes.name)||"googlebot"===j(e.attributes.name)||"bingbot"===j(e.attributes.name)))return 1;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return 1;if(t.headMetaAuthorship&&("author"===j(e.attributes.name)||"generator"===j(e.attributes.name)||"framework"===j(e.attributes.name)||"publisher"===j(e.attributes.name)||"progid"===j(e.attributes.name)||j(e.attributes.property).match(/^article:/)||j(e.attributes.property).match(/^product:/)))return 1;if(t.headMetaVerification&&("google-site-verification"===j(e.attributes.name)||"yandex-verification"===j(e.attributes.name)||"csrf-token"===j(e.attributes.name)||"p:domain_verify"===j(e.attributes.name)||"verify-v1"===j(e.attributes.name)||"verification"===j(e.attributes.name)||"shopify-checkout-api-token"===j(e.attributes.name)))return 1}}}(e,h)||!x&&e.type===P.Text&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?B:ce++;var k=Object.assign(e,{id:T});if(i.add(t,k),T===B)return null;v&&v(t);let A=!u;if(k.type===P.Element&&(A=A&&!k.needBlock,delete k.needBlock,e=F.shadowRoot(t))&&U(e)&&(k.isShadowHost=!0),(k.type===P.Document||k.type===P.Element)&&A){h.headWhitespace&&k.type===P.Element&&"head"===k.tagName&&(x=!1);var R={doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:C,maskTextClass:a,maskTextSelector:s,skipChild:u,inlineStylesheet:d,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:x,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:S,keepIframeSrcFn:E,cssCaptured:!1};if(k.type!==P.Element||"textarea"!==k.tagName||void 0===k.attributes.value){k.type===P.Element&&void 0!==k.attributes._cssText&&"string"==typeof k.attributes._cssText&&(R.cssCaptured=!0);for(const M of Array.from(F.childNodes(t))){var O=Y(M,R);O&&k.childNodes.push(O)}}let e=null;if($(t)&&(e=F.shadowRoot(t)))for(const L of Array.from(F.childNodes(e))){var N=Y(L,R);N&&(U(e)&&(N.isShadow=!0),k.childNodes.push(N))}}e=F.parentNode(t);return e&&D(e)&&U(e)&&(k.isShadow=!0),k.type===P.Element&&"iframe"===k.tagName&&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=G(()=>{e||(i(),e=!0)},r);void n.addEventListener("load",()=>{clearTimeout(s),e=!0,i()})}else{r="about:blank";if((n.src===r||n.src!==r&&o.location.href!==r)&&"complete"===t)return G(i,0),n.addEventListener("load",i);n.addEventListener("load",i)}}}(t,()=>{var e=t.contentDocument;e&&y&&(e=Y(e,{doc:e,mirror:i,blockClass:r,blockSelector:o,needsMask:C,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:x,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:S,keepIframeSrcFn:E}))&&y(t,e)},b),k.type===P.Element&&"link"===k.tagName&&"string"==typeof k.attributes.rel&&("stylesheet"===k.attributes.rel||"preload"===k.attributes.rel&&"string"==typeof k.attributes.href&&"css"===X(k.attributes.href))&&function(e,t,n){let i=!1,r;try{r=e.sheet}catch(o){return}if(!r){const a=G(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}}(t,()=>{var e;w&&(e=Y(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:C,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:x,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:S,keepIframeSrcFn:E}))&&w(t,e)},S),k}Object.defineProperty;"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;const Ie={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},_e={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ce={};function xe(e){if(Ce[e])return Ce[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 Ie?Ie[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 _e?_e[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 Ce[e]=t.prototype,t.prototype;try{var o,a=document.createElement("iframe"),s=(document.body.appendChild(a),a.contentWindow);return s?(o=s[e].prototype,document.body.removeChild(a),o?Ce[e]=o:n):t.prototype}catch{return n}}const Te={};function i(e,t,n){var i=e+"."+String(n);return Te[i]?Te[i].call(t):(e=xe(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(Te[i]=e).call(t):t[n])}const ke={};function Ae(e,t,n){var i=e+"."+String(n);return ke[i]?ke[i].bind(t):"function"!=typeof(e=xe(e)[n])?t[n]:(ke[i]=e).bind(t)}function Re(){return xe("MutationObserver").constructor}function L(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 Q={childNodes:function(e){return i("Node",e,"childNodes")},parentNode:function(e){return i("Node",e,"parentNode")},parentElement:function(e){return i("Node",e,"parentElement")},textContent:function(e){return i("Node",e,"textContent")},contains:function(e,t){return Ae("Node",e,"contains")(t)},getRootNode:function(e){return Ae("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?i("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?i("Element",e,"shadowRoot"):null},querySelector:function(e,t){return i("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return i("Element",e,"querySelectorAll")(t)},mutationObserver:Re,patch:L};function ee(e,t,n=document){var i=(i=n).defaultView||i,r=w("addEventListener",i);const o=w("removeEventListener",i),a={capture:!0,passive:!0};return r.call(n,e,t,a),()=>o.call(n,e,t,a)}const r="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 Oe={map:{},getId(){return console.error(r),-1},getNode(){return console.error(r),null},removeNodeFromMap(){console.error(r)},has(){return console.error(r),!1},reset(){console.error(r)}};function H(r,o,a={}){let s=null,u=0;return function(...e){var t=Date.now(),n=(u||!1!==a.leading||(u=t),o-(t-u));const i=this;n<=0||o<n?(s&&(clearTimeout(s),s=null),u=t,r.apply(i,e)):s||!1===a.trailing||(s=G(()=>{u=!1===a.leading?0:Date.now(),s=null,r.apply(i,e)},n))}}function Ne(e,t,n,i,r=window){const o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(e){G(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>Ne(e,t,o||{},!0)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&new Proxy(Oe,{get(e,t,n){return"map"===t&&console.error(r),Reflect.get(e,t,n)}});let Me=Date.now;function Le(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=Q.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=Q.parentElement(n.body))?void 0:t.scrollTop)||(null==(e=null==n?void 0:n.body)?void 0:e.scrollTop)||0}}function Pe(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Fe(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function De(e){return e?e.nodeType===e.ELEMENT_NODE?e:Q.parentElement(e):null}function q(e,t,n,i){if(e){e=De(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(we(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 Ue(e,t){return-1!==t.getId(e)}function Ge(e,t,n){return"TITLE"===e.tagName&&n.headTitleMutations||t.getId(e)===B}function Be(e,t){var n;return!D(e)&&(n=t.getId(e),!t.has(n)||(!(n=Q.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||Be(n,t)))}function ze(e){return Boolean(e.changedTouches)}function je(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function He(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function qe(e){return e&&(!1&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Q.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Me=()=>(new Date).getTime());class We{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 Ve(e){var t;let n=null;return n="getRootNode"in e&&(null==(t=Q.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Q.host(Q.getRootNode(e))?Q.host(Q.getRootNode(e)):n}function Je(e){var t=e.ownerDocument;return!!t&&(e=function(e){let t=e;for(var n;n=Ve(t);)t=n;return t}(e),Q.contains(t,e))}function $e(e){var t=e.ownerDocument;return t&&(Q.contains(t,e)||Je(e))}var 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))({}),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))({}),W=(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))(W||{}),Ke=(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))({});function Ze(e){return"__ln"in e}class Xe{constructor(){s(this,"length",0),s(this,"head",null),s(this,"tail",null),s(this,"reordered",!1)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let e=0;e<t;e++)n=(null==n?void 0:n.next)||null;return n}addNode(e){var t,n={value:e,previous:null,next:null};e.__ln=n,e.previousSibling&&Ze(e.previousSibling)?(t=e.previousSibling.__ln.next,n.next=t,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,t&&(t.previous=n)):e.nextSibling&&Ze(e.nextSibling)&&e.nextSibling.__ln.previous?(t=e.nextSibling.__ln.previous,n.previous=t,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,t&&(t.next=n)):(this.head&&(this.head.previous=n),n.next=this.head,this.head=n),null===n.next&&(this.tail=n),this.length++}removeNode(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}needsReorder(e){return!(this.reordered||!e.value.previousSibling||!Ze(e.value.previousSibling)||!e.previous||e.previous.value===e.value.previousSibling)}reorder(){if(this.reordered)return!1;let e=this.tail;for(var t=this.head;e;){var n=e.previous;if(this.removeNode(e.value),this.addNode(e.value),e===t)break;e=n}return this.reordered=!0}}const Ye=(e,t)=>e+"@"+t;class Qe{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,"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){const u=[],d=new Set,c=new Xe,l=e=>{let t=e,n=B;for(;n===B;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n};for(var n,i,r=t=>{var n=Q.parentNode(t);if(n&&$e(t)){let e=!1;if(t.nodeType===Node.TEXT_NODE){var i=n.tagName;if("TEXTAREA"===i)return;"STYLE"===i&&this.addedSet.has(n)&&(e=!0)}i=D(n)?this.mirror.getId(Ve(t)):this.mirror.getId(n),n=l(t);if(-1===i||-1===n)return c.addNode(t);var r=Y(t,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,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=>{je(e,this.mirror)&&this.iframeManager.addIframe(e),He(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),qe(t)&&this.shadowDomManager.addShadowRoot(Q.shadowRoot(t),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},cssCaptured:e});r&&(u.push({parentId:i,nextId:n,node:r}),d.add(r.id))}};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const p of this.movedSet){var t=Q.parentNode(p);nt(this.removesSubTreeCache,p,this.mirror)&&!this.movedSet.has(t)&&!this.addedSet.has(t)||r(p)}for(const h of this.addedSet)!it(this.droppedSet,h)&&!nt(this.removesSubTreeCache,h,this.mirror)||it(this.movedSet,h)?r(h):this.droppedSet.add(h);let e=null;for(;c.length;){let t=null;if(!(t=e&&(n=this.mirror.getId(Q.parentNode(e.value)),i=l(e.value),-1!==n)&&-1!==i?e:t)){let e=c.tail;for(;e;){var o=e;if(e=e.previous,o){var a=this.mirror.getId(Q.parentNode(o.value));if(-1===l(o.value))c.needsReorder(o)&&c.reorder()&&(e=c.tail);else{if(-1!==a){t=o;break}a=o.value,a=Q.parentNode(a);if(a&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){a=Q.host(a);if(-1!==this.mirror.getId(a)){t=o;break}}}}}}if(!t){for(;c.head;)c.removeNode(c.head.value);break}e=t.previous,c.removeNode(t.value),r(t.value)}var s={texts:this.texts.map(e=>{var t=e.node,n=Q.parentNode(t);return n&&"TEXTAREA"===n.tagName&&this.genTextAreaValueMutation(n),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!d.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=>!d.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:u};(s.texts.length||s.attributes.length||s.removes.length||s.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(s))}}),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(Q.childNodes(e),e=>Q.textContent(e)||"").join(""),i=z(e,this.maskTextClass,this.maskTextSelector,!0);t.attributes.value=K({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:Z(e),value:n,maskInputFn:this.maskInputFn,needsMask:i})}),s(this,"processMutation",i=>{if(!Ge(i.target,this.mirror,this.slimDOMOptions))switch(i.type){case"characterData":var r=Q.textContent(i.target);q(i.target,this.blockClass,this.blockSelector,!1)||r===i.oldValue||this.texts.push({value:z(i.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,De(i.target)):r.replace(/[\S]/g,"*"):r,node:i.target});break;case"attributes":{var o,a=i.target;let e=i.attributeName,t=i.target.getAttribute(e);if("value"===e&&(r=Z(a),o=z(i.target,this.maskTextClass,this.maskTextSelector,!0),t=K({element:a,maskInputOptions:this.maskInputOptions,tagName:a.tagName,type:r,value:t,maskInputFn:this.maskInputFn,needsMask:o})),q(i.target,this.blockClass,this.blockSelector,!1)||t===i.oldValue)return;let n=this.attributeMap.get(i.target);if("IFRAME"===a.tagName&&"src"===e&&!this.keepIframeSrcFn(t)){if(a.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"===a.tagName&&"password"===(i.oldValue||"").toLowerCase()&&a.setAttribute("data-rr-is-password","true"),!be(a.tagName,e))if(n.attributes[e]=ye(this.doc,T(a.tagName),T(e),t),"style"===e){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(c){this.unattachedDoc=this.doc}var s=this.unattachedDoc.createElement("span");i.oldValue&&(s.style.cssText=i.oldValue);for(const l of Array.from(a.style)){var u=a.style.getPropertyValue(l),d=a.style.getPropertyPriority(l);u!==s.style.getPropertyValue(l)||d!==s.style.getPropertyPriority(l)?n.styleDiff[l]=""===d?u:[u,d]:n._unchangedStyles[l]=[u,d]}for(const p of Array.from(s.style))""===a.style.getPropertyValue(p)&&(n.styleDiff[p]=!1)}else"open"===e&&"DIALOG"===a.tagName&&(a.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=D(i.target)?this.mirror.getId(Q.host(i.target)):this.mirror.getId(i.target);q(i.target,this.blockClass,this.blockSelector,!1)||Ge(e,this.mirror,this.slimDOMOptions)||!Ue(e,this.mirror)||(this.addedSet.has(e)?(et(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(i.target)&&-1===t||Be(i.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[Ye(t,n)]?et(this.movedSet,e):(this.removes.push({parentId:n,id:t,isShadow:!(!D(i.target)||!U(i.target))||void 0}),tt(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(Ge(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[Ye(this.mirror.getId(t),e)]=!0)}else this.addedSet.add(t),this.droppedSet["delete"](t);q(t,this.blockClass,this.blockSelector,!1)||(Q.childNodes(t).forEach(e=>this.genAdds(e)),qe(t)&&Q.childNodes(Q.shadowRoot(t)).forEach(e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","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 et(t,e){t["delete"](e),Q.childNodes(e).forEach(e=>et(t,e))}function tt(e,t){const n=[e];for(;n.length;){var i=n.pop();t.has(i)||(t.add(i),Q.childNodes(i).forEach(e=>n.push(e)))}}function nt(e,t){if(0!==e.size)return e=e,t=t,(t=Q.parentNode(t))&&e.has(t)}function it(e,t){return 0!==e.size&&function i(e,t){const n=Q.parentNode(t);if(!n)return!1;if(e.has(n))return!0;return i(e,n)}(e,t)}let ie;const re=n=>{return ie?(...e)=>{try{return n(...e)}catch(t){if(!ie||!0!==ie(t))throw t}}:n},oe=[];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 rt(e,t){var n=new Qe,e=(oe.push(n),n.init(e),new(Re())(re(n.processMutations.bind(n))));return e.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function ot({mouseInteractionCb:a,doc:i,mirror:s,blockClass:u,blockSelector:d,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=T(e);o=e;var o,n=n=>{var i=V(n);if(!q(i,u,d,!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 ze(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=ze(n)?n.changedTouches[0]:n;n&&(i=s.getId(i),{clientX:n,clientY:r}=n,re(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(ee(t,n,i))}),re(()=>{r.forEach(e=>e())})}function at({scrollCb:i,doc:r,mirror:o,blockClass:a,blockSelector:s,sampling:e}){return ee("scroll",re(H(re(e=>{var t,n,e=V(e);e&&!q(e,a,s,!0)&&(t=o.getId(e),e===r&&r.defaultView?(n=Le(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 st=["INPUT","TEXTAREA","SELECT"],ut=new WeakMap;function dt(e){var t,n;return e=e,t=[],pt("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||pt("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||pt("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||pt("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?(n=Array.from(e.parentRule.cssRules).indexOf(e),t.unshift(n)):e.parentStyleSheet&&(n=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(n)),t}function J(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function ct({mirror:e,stylesheetManager:i},t){let r=null;r="#document"===t.nodeName?e.getId(t):e.getId(Q.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}}),re(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function lt(e,t={}){var o,n=e.doc.defaultView;if(!n)return()=>{};{var i=e,r=t;const{mutationCb:w,mousemoveCb:S,mouseInteractionCb:E,scrollCb:I,viewportResizeCb:_,inputCb:C,mediaInteractionCb:x,styleSheetRuleCb:T,styleDeclarationCb:k,canvasMutationCb:A,fontCb:R,selectionCb:O,customElementCb:N}=i;i.mutationCb=(...e)=>{r.mutation&&r.mutation(...e),w(...e)},i.mousemoveCb=(...e)=>{r.mousemove&&r.mousemove(...e),S(...e)},i.mouseInteractionCb=(...e)=>{r.mouseInteraction&&r.mouseInteraction(...e),E(...e)},i.scrollCb=(...e)=>{r.scroll&&r.scroll(...e),I(...e)},i.viewportResizeCb=(...e)=>{r.viewportResize&&r.viewportResize(...e),_(...e)},i.inputCb=(...e)=>{r.input&&r.input(...e),C(...e)},i.mediaInteractionCb=(...e)=>{r.mediaInteaction&&r.mediaInteaction(...e),x(...e)},i.styleSheetRuleCb=(...e)=>{r.styleSheetRule&&r.styleSheetRule(...e),T(...e)},i.styleDeclarationCb=(...e)=>{r.styleDeclaration&&r.styleDeclaration(...e),k(...e)},i.canvasMutationCb=(...e)=>{r.canvasMutation&&r.canvasMutation(...e),A(...e)},i.fontCb=(...e)=>{r.font&&r.font(...e),R(...e)},i.selectionCb=(...e)=>{r.selection&&r.selection(...e),O(...e)},i.customElementCb=(...e)=>{r.customElement&&r.customElement(...e),N(...e)}}let a;e.recordDOM&&(a=rt(e,e.doc));const s=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=H(re(e=>{const t=Date.now()-a;n(o.map(e=>(e.timeOffset-=t,e)),e),o=[],a=null}),e),u=[ee("mousemove",e=re(H(re(e=>{var t=V(e),{clientX:n,clientY:i}=ze(e)?e.changedTouches[0]:e;a=a||Me(),o.push({x:n,y:i,id:r.getId(t),timeOffset:Me()-a}),s("undefined"!=typeof DragEvent&&e instanceof DragEvent?ne.Drag:e instanceof MouseEvent?ne.MouseMove:ne.TouchMove)}),i,{trailing:!1})),t),ee("touchmove",e,t),ee("drag",e,t)];return re(()=>{u.forEach(e=>e())})}(e),u=ot(e),d=at(e),c=function({viewportResizeCb:n},{win:e}){let i=-1,r=-1;return ee("resize",re(H(re(()=>{var e=Pe(),t=Fe();i===e&&r===t||(n({width:Number(t),height:Number(e)}),i=e,r=t)}),200)),e)}(e,{win:n}),l=function({inputCb:i,doc:s,mirror:r,blockClass:e,blockSelector:n,ignoreClass:u,ignoreSelector:d,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?Q.parentElement(i):i)&&r&&!(st.indexOf(r)<0)&&!q(i,e,n,!0)&&!(i.classList.contains(u)||d&&i.matches(d))){let e=i.value,n=!1;var o=Z(i)||"",a=z(i,h,f,!0),r=("radio"===o||"checkbox"===o?n=i.checked:(c[r.toLowerCase()]||c[o]||a)&&(e=K({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=ut.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(ut.set(e,t),n=r.getId(e),re(i)({...t,id:n}))}var a;const m=("last"===t.input?["change"]:["input","change"]).map(e=>ee(e,re(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=>Ne(e[0],e[1],{set(){re(o)({target:this,isTrusted:!1})}},!1,v))),re(()=>{m.forEach(e=>e())})):()=>{m.forEach(e=>e())}}(e),p=function({mediaInteractionCb:s,blockClass:u,blockSelector:d,mirror:c,sampling:e,doc:t}){var n=re(a=>H(re(e=>{var t,n,i,r,o,e=V(e);e&&!q(e,u,d,!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=[ee("play",n(W.Play),t),ee("pause",n(W.Pause),t),ee("seeked",n(W.Seeked),t),ee("volumechange",n(W.VolumeChange),t),ee("ratechange",n(W.RateChange),t)];return re(()=>{i.forEach(e=>e())})}(e);let h=()=>{},f=()=>{},g=()=>{},m=()=>{};e.recordDOM&&(h=function({styleSheetRuleCb:s,mirror:u,stylesheetManager:d},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const e=i.CSSStyleSheet.prototype.insertRule,t=(i.CSSStyleSheet.prototype.insertRule=new Proxy(e,{apply:re((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=J(t,u,d.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 Proxy(t,{apply:re((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t,u,d.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 Proxy(n,{apply:re((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t,u,d.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 Proxy(r,{apply:re((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t,u,d.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replaceSync:i}),e.apply(t,n)})}));const o={},a=(ht("CSSGroupingRule")?o.CSSGroupingRule=i.CSSGroupingRule:(ht("CSSMediaRule")&&(o.CSSMediaRule=i.CSSMediaRule),ht("CSSConditionRule")&&(o.CSSConditionRule=i.CSSConditionRule),ht("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 Proxy(a[e].insertRule,{apply:re((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=J(t.parentStyleSheet,u,d.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:[...dt(t),r||0]}]}),e.apply(t,n)})}),t.prototype.deleteRule=new Proxy(a[e].deleteRule,{apply:re((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t.parentStyleSheet,u,d.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:[...dt(t),i]}]}),e.apply(t,n)})})}),re(()=>{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}),f=ct(e,e.doc),g=function({styleDeclarationCb:u,mirror:d,ignoreCSSAttributes:c,stylesheetManager:l},{win:e}){const p=e.CSSStyleDeclaration.prototype.setProperty,a=(e.CSSStyleDeclaration.prototype.setProperty=new Proxy(p,{apply:re((e,t,n)=>{var i,r,[o,a,s]=n;return c.has(o)?p.apply(t,[o,a,s]):({id:i,styleId:r}=J(null==(i=t.parentRule)?void 0:i.parentStyleSheet,d,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&u({id:i,styleId:r,set:{property:o,value:a,priority:s},index:dt(t.parentRule)}),e.apply(t,n))})}),e.CSSStyleDeclaration.prototype.removeProperty);return e.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:re((e,t,n)=>{var i,r,[o]=n;return c.has(o)?a.apply(t,[o]):({id:i,styleId:r}=J(null==(i=t.parentRule)?void 0:i.parentStyleSheet,d,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&u({id:i,styleId:r,remove:{property:o},index:dt(t.parentRule)}),e.apply(t,n))})}),re(()=>{e.CSSStyleDeclaration.prototype.setProperty=p,e.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:n}),e.collectFonts)&&(m=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=L(e.fonts,"add",function(e){return function(t){return G(re(()=>{var e=r.get(t);e&&(n(e),r["delete"](t))}),0),e.apply(this,[t])}}),i.push(()=>{t.FontFace=o}),i.push(e),re(()=>{i.forEach(e=>e())})}(e));const v=function(e){const{doc:u,mirror:d,blockClass:c,blockSelector:l,selectionCb:p}=e;let h=!0;return(e=re(()=>{var t=u.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:d.getId(r),startOffset:o,end:d.getId(a),endOffset:s})}p({ranges:n})}}))(),ee("selectionchange",e)}(e),y=({doc:t,customElementCb:o}=[e][0],(t=t.defaultView)&&t.customElements?L(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])}}):()=>{}),b=[];for(const M of e.plugins)b.push(M.observer(M.callback,n,M.options));return re(()=>{oe.forEach(e=>e.reset()),null!=a&&a.disconnect(),s(),u(),d(),c(),l(),p(),h(),f(),g(),m(),v(),y(),b.forEach(e=>e())})}function pt(e){return"undefined"!=typeof window[e]}function ht(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class ft{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 gt{constructor(e){s(this,"iframes",new WeakMap),s(this,"crossOriginIframeMap",new WeakMap),s(this,"crossOriginIframeMirror",new ft(M)),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,"stylesheetManager"),s(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.takeFullSnapshot=e.takeFullSnapshot,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ft(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){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e),!e.contentDocument&&e.contentWindow&&e.contentWindow.postMessage({type:"rrweb",origin:window.location.origin,snapshot:!0},"*")}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null!=(t=e.contentWindow)&&t.addEventListener("message",this.handleMessage.bind(this)),null!=(t=e.contentWindow))&&t.addEventListener("pagehide",()=>{this.crossOriginIframeMap["delete"](e.contentWindow)}),null!=(t=this.loadListener)&&t.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&0<e.contentDocument.adoptedStyleSheets.length&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.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===Ke.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class mt{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(U(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);const n=rt({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(at({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),G(()=>{e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(Q.host(e))),this.restoreHandlers.push(ct({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(L(e.prototype,"attachShadow",function(n){return function(e){var e=n.call(this,e),t=Q.shadowRoot(this);return t&&$e(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+/",vt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),yt=0;yt<o.length;yt++)vt[o.charCodeAt(yt)]=yt;var bt,wt=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 St=new Map;const Et=(t,n,i)=>{if(t&&(_t(t,n)||"object"==typeof t)){n=function(e,t){let n=St.get(e);return n||(n=new Map,St.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 It=(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:wt(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]}:_t(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:Et(e,t,n)}:e}(e,t,n)),_t=(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 Ct(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=L(i.CanvasRenderingContext2D.prototype,s,function(e){return function(...t){return q(this.canvas,r,o,!0)||G(()=>{var e=It(t,i,this);n(this.canvas,{type:h["2D"],property:s,args:e})},0),e.apply(this,t)}}),e.push(t))}catch{var a=Ne(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 xt(e,r,o,a){const t=[];try{var n=L(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 Tt(e,i,r,o,a,s){var t,n=[];for(const d of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))try{"function"==typeof e[d]&&(t=L(e,d,function(n){return function(...e){var t=n.apply(this,e);return Et(t,s,this),"tagName"in this.canvas&&!q(this.canvas,o,a,!0)&&(e=It(e,s,this),e={type:i,property:d,args:e},r(this.canvas,e)),t}}),n.push(t))}catch{var u=Ne(e,d,{set(e){r(this.canvas,{type:i,property:d,args:[e],setter:!0})}});n.push(u)}return n}function kt(e,t,n,i){const r=[];return r.push(...Tt(t.WebGLRenderingContext.prototype,h.WebGL,e,n,i,t)),"undefined"!=typeof t.WebGL2RenderingContext&&r.push(...Tt(t.WebGL2RenderingContext.prototype,h.WebGL2,e,n,i,t)),()=>{r.forEach(e=>e())}}function At(e){return function(){return{onerror:null,onmessage:null}}}class Rt{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=xt(n,i,r,!0),a=new Map,s=new At,u=(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 d=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=(d&&e-d<u||(d=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=xt(e,t,n,!1),r=Ct(this.processMutation.bind(this),e,t,n),o=kt(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 Ot{constructor(e){s(this,"trackedLinkElements",new WeakSet),s(this,"mutationCb"),s(this,"adoptedStyleSheetCb"),s(this,"styleMirror",new We),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:S(o.rules[e],o.href),index:e});i.push({styleId:e,rules:Array.from(o.rules||CSSRule,(e,t)=>({rule:S(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 Nt{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 ae,se=()=>{},Mt,Lt=!1;try{2!==Array.from([1],e=>2*e)[0]&&(bt=document.createElement("iframe"),document.body.appendChild(bt),Array.from=(null==(e=bt.contentWindow)?void 0:e.Array.from)||Array.from,document.body.removeChild(bt))}catch(Ft){console.debug("Unable to override Array.from",Ft)}const ue=new de;function Pt(e={}){const{emit:i,checkoutEveryNms:r,checkoutEveryNth:o,blockClass:n="rr-block",blockSelector:a=null,ignoreClass:F="rr-ignore",ignoreSelector:D=null,maskTextClass:s="rr-mask",maskTextSelector:u=null,inlineStylesheet:d=!0,maskAllInputs:U,maskInputOptions:t,slimDOMOptions:c,maskInputFn:l,maskTextFn:p,hooks:G,packFn:h,sampling:f={},dataURLOptions:g={},mousemoveWait:m,recordDOM:B=!0,recordCanvas:v=!1,recordCrossOriginIframes:z=!1,recordAfter:j="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:H=!1,collectFonts:q=!1,inlineImages:y=!1,plugins:b,keepIframeSrcFn:w=()=>!1,ignoreCSSAttributes:W=new Set([]),errorHandler:V}=e;e=V,ie=e;const S=!z||window.parent===window;let E=!1;if(!S)try{window.parent.document&&(E=!1)}catch(X){E=!0}if(S&&!i)throw new Error("emit function is required");if(!S&&!E)return()=>{};void 0!==m&&void 0===f.mousemove&&(f.mousemove=m),ue.reset();const I=!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},_=!0===c||"all"===c?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===c,headMetaDescKeywords:"all"===c,headTitleMutations:"all"===c}:c||{};"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 J,C=0;const $=e=>{for(const t of b||[])t.eventProcessor&&(e=t.eventProcessor(e));return e=h&&!E?h(e):e},x=(ae=(e,t)=>{var n;e.timestamp=Me(),null==(n=oe[0])||!n.isFrozen()||e.type===te.FullSnapshot||e.type===te.IncrementalSnapshot&&e.data.source===ne.Mutation||oe.forEach(e=>e.unfreeze()),S?null!=i&&i($(e),t):E&&(n={type:"rrweb",event:$(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===te.FullSnapshot?(J=e,C=0):e.type!==te.IncrementalSnapshot||e.data.source===ne.Mutation&&e.data.isAttachIframe||(C++,t=o&&C>=o,n=r&&e.timestamp-J.timestamp>r,(t||n)&&se(!0))},e=>{ae({type:te.IncrementalSnapshot,data:{source:ne.Mutation,...e}})}),K=e=>ae({type:te.IncrementalSnapshot,data:{source:ne.Scroll,...e}}),Z=e=>ae({type:te.IncrementalSnapshot,data:{source:ne.CanvasMutation,...e}});const T=new Ot({mutationCb:x,adoptedStyleSheetCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.AdoptedStyleSheet,...e}})}),k=new gt({mirror:ue,mutationCb:x,stylesheetManager:T,recordCrossOriginIframes:z,wrappedEmit:ae,takeFullSnapshot:se});for(const N of b||[])N.getMirror&&N.getMirror({nodeMirror:ue,crossOriginIframeMirror:k.crossOriginIframeMirror,crossOriginIframeStyleMirror:k.crossOriginIframeStyleMirror});const A=new Nt,R=(Mt=new Rt({recordCanvas:v,mutationCb:Z,win:window,blockClass:n,blockSelector:a,mirror:ue,sampling:f.canvas,dataURLOptions:g}),new mt({mutationCb:x,scrollCb:K,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:u,inlineStylesheet:d,maskInputOptions:I,dataURLOptions:g,maskTextFn:p,maskInputFn:l,recordCanvas:v,inlineImages:y,sampling:f,slimDOMOptions:_,iframeManager:k,stylesheetManager:T,canvasManager:Mt,keepIframeSrcFn:w,processedNodeManager:A},mirror:ue}));se=(e=!1)=>{if(B){ae({type:te.Meta,data:{href:window.location.href,width:Fe(),height:Pe()}},e),T.reset(),R.init(),oe.forEach(e=>e.lock());var t=function(e,t){var{mirror:t=new de,blockClass:n="rr-block",blockSelector:i=null,maskTextClass:r="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:s=!1,recordCanvas:u=!1,maskAllInputs:d=!1,maskTextFn:c,maskInputFn:l,slimDOM:p=!1,dataURLOptions:h,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:w=()=>!1}=t||{};return Y(e,{doc:e,mirror:t,blockClass:n,blockSelector:i,maskTextClass:r,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===d?{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===d?{password:!0}:d,maskTextFn:c,maskInputFn:l,slimDOMOptions:!0===p||"all"===p?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===p,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===p?{}:p,dataURLOptions:h,inlineImages:s,recordCanvas:u,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:w,newlyAddedElement:!1})}(document,{mirror:ue,blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:u,inlineStylesheet:d,maskAllInputs:I,maskTextFn:p,maskInputFn:l,slimDOM:_,dataURLOptions:g,recordCanvas:v,inlineImages:y,onSerialize:e=>{je(e,ue)&&k.addIframe(e),He(e,ue)&&T.trackLinkElement(e),qe(e)&&R.addShadowRoot(Q.shadowRoot(e),document)},onIframeLoad:(e,t)=>{k.attachIframe(e,t),R.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{T.attachLinkElement(e,t)},keepIframeSrcFn:w});if(!t)return console.warn("Failed to snapshot the document");ae({type:te.FullSnapshot,data:{node:t,initialOffset:Le(window)}},e),oe.forEach(e=>e.unlock()),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&T.adoptStyleSheets(document.adoptedStyleSheets,ue.getId(document))}},k.setTakeFullSnapshot(se);try{const M=[],L=e=>{return re(lt)({mutationCb:x,mousemoveCb:(e,t)=>ae({type:te.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.ViewportResize,...e}}),inputCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.Input,...e}}),mediaInteractionCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.MediaInteraction,...e}}),styleSheetRuleCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.StyleSheetRule,...e}}),styleDeclarationCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.StyleDeclaration,...e}}),canvasMutationCb:Z,fontCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.Font,...e}}),selectionCb:e=>{ae({type:te.IncrementalSnapshot,data:{source:ne.Selection,...e}})},customElementCb:e=>{ae({type:te.IncrementalSnapshot,data:{source:ne.CustomElement,...e}})},blockClass:n,ignoreClass:F,ignoreSelector:D,maskTextClass:s,maskTextSelector:u,maskInputOptions:I,inlineStylesheet:d,sampling:f,recordDOM:B,recordCanvas:v,inlineImages:y,userTriggeredOnInput:H,collectFonts:q,doc:e,maskInputFn:l,maskTextFn:p,keepIframeSrcFn:w,blockSelector:a,slimDOMOptions:_,dataURLOptions:g,mirror:ue,iframeManager:k,stylesheetManager:T,shadowDomManager:R,processedNodeManager:A,canvasManager:Mt,ignoreCSSAttributes:W,plugins:(null==(e=null==b?void 0:b.filter(e=>e.observer))?void 0:e.map(t=>({observer:t.observer,options:t.options,callback:e=>ae({type:te.Plugin,data:{plugin:t.name,payload:e}})})))||[]},G)},P=(k.addLoadListener(e=>{try{M.push(L(e.contentDocument))}catch(t){console.warn(t)}}),()=>{se(),M.push(L(document)),Lt=!0});return"interactive"===document.readyState||"complete"===document.readyState?P():(M.push(ee("DOMContentLoaded",()=>{ae({type:te.DomContentLoaded,data:{}}),"DOMContentLoaded"===j&&P()})),M.push(ee("load",()=>{ae({type:te.Load,data:{}}),"load"===j&&P()},window))),()=>{M.forEach(e=>e()),A.destroy(),Lt=!1,ie=void 0}}catch(O){console.warn(O)}}return Pt.addCustomEvent=(e,t)=>{if(!Lt)throw new Error("please add custom event after start recording");ae({type:te.Custom,data:{tag:e,payload:t}})},Pt.freezePage=()=>{oe.forEach(e=>e.freeze())},Pt.takeFullSnapshot=e=>{if(!Lt)throw new Error("please take full snapshot after start recording");se(e)},Pt.mirror=ue,0,Pt}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()}}const MAX_BACKOFF=6,MAX_FAILURES=100;class SendQueue{constructor(e,t=MAX_FAILURES){this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}isEmpty(){return this.queue.length<=0}stop(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer}start(){this.stopped=!1}push(...e){this.queue.push(...e),this.next()}next(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)}incrementFailure(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t}pass(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()}fail(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,MAX_BACKOFF))))}retryLater(e){this.timer=setTimeout$1(()=>{delete this.timer,this.next()},e)}failed(){return 0<this.failures.get(this.queue[0])&&null!=this.timer}send(e,t,n){return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(()=>this.pass(e,n),()=>this.fail(e,n))}drain(e,t=!0){if(this.queue.push(...e),this.failed())return Promise$2.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 Promise$2.all(n)}}function __awaiter(e,t,s,u){return new(s=s||Promise$2)(function(n,i){function r(e){try{a(u.next(e))}catch(t){i(t)}}function o(e){try{a(u["throw"](e))}catch(t){i(t)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}a((u=u.apply(e,t||[])).next())})}const RECORDING_CONFIG_WORKERURL$1="recording.workerUrl",MAX_SIZE=1e6,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 o={};return o.promise=new Promise$2((e,t)=>{o.resolve=e,o.reject=t}),this.workerResponse=o,this.worker.postMessage({url:i,payload:r,shouldCacheResources:this.isResourceCachingEnabled}),o.promise}if(!e.body){n=JSON.stringify(r);if(n.length>this.maxSize)throw(r=new Error("maximum recording payload size exceeded")).reason="HEAVY_EVENT",r;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&&(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 ELEMENT_NODE=1,INPUT_MASK="*".repeat(10);function isElementNode(e){return!!e&&e.nodeType===ELEMENT_NODE}function distanceToMatch(e,t,n=Infinity,i=0){return!isElementNode(e)||n<i?-1:e.matches(t)?i:distanceToMatch(e.parentNode,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;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 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?INPUT_MASK:"":t}function maskText(e,t,n){return shouldMask(n,e)?t?t.replace(/[\S]/g,"*"):"":t}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,F=Object.prototype,D="undefined"!=typeof Symbol?Symbol.prototype:null,U=i.push,u=i.slice,l=F.toString,G=F.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),B=Array.isArray,z=Object.keys,j=Object.create,H=t&&ArrayBuffer.isView,q=isNaN,W=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],$=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 K(e){return void 0===e}function Z(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var X=r("String"),Y=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=B||r("Array");function g(e,t){return null!=e&&G.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return Y(e)&&q(e)}function ue(e){return function(){return e}}function de(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=$}}function ce(t){return function(e){return null==e?void 0:e[t]}}var m=ce("byteLength"),le=de(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return H?H(e)&&!h(e):le(e)&&pe.test(l.call(e))}:ue(!1),v=ce("length");function fe(e,t){t=function(t){for(var n={},e=t.length,i=0;i<e;++i)n[t[i]]=!0;return{contains:function(e){return!0===n[e]},push:function(e){return n[e]=!0,t.push(e)}}}(t);var n=J.length,i=e.constructor,r=p(i)&&i.prototype||F,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=J[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(z)return z(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return V&&fe(e,n),n}function ge(e,t){var n=y(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function c(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=l.call(e);if(r!==l.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return D.valueOf.call(e)===D.valueOf.call(t);case"[object ArrayBuffer]":case ve:return c(me(e),me(t),n,i)}r="[object Array]"===r;if(!r&&he(e)){var o=m(e);if(o!==m(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];i=i||[];var s=n.length;for(;s--;)if(n[s]===e)return i[s]===t;n.push(e);i.push(t);if(r){if((s=e.length)!==t.length)return!1;for(;s--;)if(!ye(e[s],t[s],n,i))return!1}else{var u,d=y(e);if(s=d.length,y(t).length!==s)return!1;for(;s--;)if(u=d[s],!g(t,u)||!ye(e[u],t[u],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function d(e){if(!o(e))return[];var t,n=[];for(t in e)n.push(t);return V&&fe(e,n),n}function be(i){var r=v(i);return function(e){if(null==e)return!1;var t=d(e);if(v(t))return!1;for(var n=0;n<r;n++)if(!p(e[i[n]]))return!1;return i!==Se||!p(e[we])}}var we="forEach",e=["clear","delete"],n=["get","has","set"],B=e.concat(we,n),Se=e.concat(n),t=["add"].concat(e,we,"has"),n=a?be(B):r("Map"),e=a?be(Se):r("WeakMap"),B=a?be(t):r("Set"),a=r("WeakSet");function w(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ee(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Ie(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function _e(u,d){return function(e){var t=arguments.length;if(d&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=u(i),o=r.length,a=0;a<o;a++){var s=r[a];d&&void 0!==e[s]||(e[s]=i[s])}return e}}var Ce=_e(d),s=_e(y),xe=_e(d,!0);function Te(e){var t;return o(e)?j?j(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function ke(e){return f(e)?e:[e]}function S(e){return b.toPath(e)}function Ae(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function Re(e,t,n){e=Ae(e,S(t));return K(e)?n:e}function Oe(e){return e}function E(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return Ae(e,t)}}function I(r,o,e){if(void 0===o)return r;switch(null==e?3:e){case 1:return function(e){return r.call(o,e)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return function(){return r.apply(o,arguments)}}function Me(e,t,n){return null==e?Oe:p(e)?I(e,t,n):(o(e)&&!f(e)?E:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function _(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Pe(){}function Fe(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=ke,b.iteratee=Le;var C=Date.now||function(){return(new Date).getTime()};function De(t){var n=function(e){return t[e]},e="(?:"+y(t).join("|")+")",i=RegExp(e),r=RegExp(e,"g");return function(e){return i.test(e=null==e?"":""+e)?e.replace(r,n):e}}var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Ue=De(t),t=De(Ee(t)),Ge=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Be=/(.)^/,ze={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},je=/\\|'|\r|\n|\u2028|\u2029/g;function He(e){return"\\"+ze[e]}var qe=/^\s*(\w|\$)+\s*$/;var We=0;function Ve(e,t,n,i,r){return i instanceof t?(i=Te(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var x=c(function(r,o){var a=x.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),i=0;i<t;i++)n[i]=o[i]===a?arguments[e++]:o[i];for(;e<arguments.length;)n.push(arguments[e++]);return Ve(r,s,this,this,n)};return s}),Je=(x.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return Ve(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),T=de(v);function k(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=Infinity;for(var r=i.length,o=0,a=v(e);o<a;o++){var s=e[o];if(T(s)&&(f(s)||ae(s)))if(1<t)k(s,t-1,n,i),r=i.length;else for(var u=0,d=s.length;u<d;)i[r++]=s[u++];else n||(i[r++]=s)}return i}var $e=c(function(e,t){var n=(t=k(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Je(e[i],e)}return e});var Ke=c(function(e,t,n){return setTimeout$1(function(){return e.apply(null,n)},t)}),Ze=x(Ke,b,1);function Xe(e){return function(){return!e.apply(this,arguments)}}function Ye(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=x(Ye,2);function et(e,t,n){t=_(t,n);for(var i,r=y(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function tt(o){return function(e,t,n){t=_(t,n);for(var i=v(e),r=0<o?0:i-1;0<=r&&r<i;r+=o)if(t(e[r],r,e))return r;return-1}}var nt=tt(1),it=tt(-1);function rt(e,t,n,i){for(var r=(n=_(n,i,1))(t),o=0,a=v(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function ot(o,a,s){return function(e,t,n){var i=0,r=v(e);if("number"==typeof n)0<o?i=0<=n?n:Math.max(n+r,i):r=0<=n?Math.min(n+1,r):n+r+1;else if(s&&n&&r)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(u.call(e,i,r),se))?n+i:-1;for(n=0<o?i:r-1;0<=n&&n<r;n+=o)if(e[n]===t)return n;return-1}}var at=ot(1,nt,rt),st=ot(-1,it);function ut(e,t,n){t=(T(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function A(e,t,n){if(t=I(t,n),T(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function R(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function dt(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=I(t,i,4),s=n,u=!T(o)&&y(o),d=(u||o).length,c=0<p?0:d-1;for(r||(s=o[u?u[c]:c],c+=p);0<=c&&c<d;c+=p){var l=u?u[c]:c;s=a(s,o[l],l,o)}return s}}var ct=dt(1),lt=dt(-1);function O(e,i,t){var r=[];return i=_(i,t),A(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function N(e,t,n,i){return T(e)||(e=w(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=c(function(e,n,i){var r,o;return p(n)?o=n:(n=S(n),r=n.slice(0,-1),n=n[n.length-1]),R(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Ae(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return R(e,Ne(t))}function mt(e,i,t){var n,r,o=-Infinity,a=-Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=T(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&o<n&&(o=n);else i=_(i,t),A(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?u.call(e):X(e)?e.match(vt):T(e)?R(e,Oe):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=T(e)?e:w(e))[Fe(e.length-1)];for(var i=yt(e),n=v(i),r=(t=Math.max(Math.min(t,n),0),n-1),o=0;o<t;o++){var a=Fe(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function M(o,t){return function(n,i,e){var r=t?[[],[]]:{};return i=_(i,e),A(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var wt=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),St=M(function(e,t,n){e[n]=t}),Et=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),It=M(function(e,t,n){e[n?0:1].push(t)},!0);function _t(e,t,n){return t in n}var Ct=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=I(i,t[1])),t=d(e)):(i=_t,t=k(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=e[a];i(s,a,e)&&(n[a]=s)}}return n}),xt=c(function(e,n){var t,i=n[0];return p(i)?(i=Xe(i),1<n.length&&(t=n[1])):(n=R(k(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Ct(e,i,t)});function Tt(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function kt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Tt(e,e.length-t)}function L(e,t,n){return u.call(e,null==t||n?1:t)}var At=c(function(e,t){return t=k(t,!0,!0),O(e,function(e){return!N(t,e)})}),Rt=c(function(e,t){return At(e,t)});function Ot(e,t,n,i){Z(t)||(i=n,n=t,t=!1),null!=n&&(n=_(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var u=e[a],d=n?n(u,a,e):u;t&&!n?(a&&o===d||r.push(u),o=d):n?N(o,d)||(o.push(d),r.push(u)):N(r,u)||r.push(u)}return r}var Nt=c(function(e){return Ot(k(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Pt(e,t){return e._chain?b(t).chain():t}function Ft(n){return A(Ie(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return U.apply(e,arguments),Pt(this,t.apply(b,e))}}),b}A(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Pt(this,e)}}),A(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Pt(this,e=null!=e?t.apply(e,arguments):e)}});var P=Ft({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:K,isBoolean:Z,isElement:function(e){return!(!e||1!==e.nodeType)},isString:X,isNumber:Y,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&W(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||X(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:B,isWeakSet:a,keys:y,allKeys:d,values:w,pairs:function(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:Ee,functions:Ie,methods:Ie,extend:Ce,extendOwn:s,assign:s,defaults:xe,create:function(e,t){return e=Te(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:Re,has:function(e,t){for(var n=(t=S(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=_(t,n);for(var i=y(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Oe,constant:ue,noop:Pe,toPath:ke,property:Ne,propertyOf:function(t){return null==t?Pe:function(e){return Re(t,e)}},matcher:E,matches:E,times:function(e,t,n){var i=Array(Math.max(0,e));t=I(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:Fe,now:C,escape:Ue,unescape:t,templateSettings:Ge,template:function(o,e,t){e=xe({},e=!e&&t?t:e,b.templateSettings);var 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(je,He),a=r+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(s+="';\n"+i+"\n__p+='"),e}),s+="';\n",t=e.variable){if(!qe.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{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:x,bind:Je,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:Ke,defer:Ze,throttle:function(n,i,r){var o,a,s,u,d=0,c=(r=r||{},function(){d=!1===r.leading?0:C(),o=null,u=n.apply(a,s),o||(a=s=null)}),e=function(){var e=C(),t=(d||!1!==r.leading||(d=e),i-(e-d));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout(o),o=null),d=e,u=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=setTimeout$1(c,t)),u};return e.cancel=function(){clearTimeout(o),d=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,u,d=function(){var e=C()-o;e<n?r=setTimeout$1(d,n-e):(r=null,i||(s=t.apply(u,a)),r||(a=u=null))},e=c(function(e){return u=this,a=e,o=C(),r||(r=setTimeout$1(d,n),i&&(s=t.apply(u,a))),s});return e.cancel=function(){clearTimeout(r),r=a=u=null},e},wrap:function(e,t){return x(t,e)},negate:Xe,compose:function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:Ye,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:ut,detect:ut,findWhere:function(e,t){return ut(e,E(t))},each:A,forEach:A,map:R,collect:R,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Xe(_(t)),n)},every:pt,all:pt,some:ht,any:ht,contains:N,includes:N,include:N,invoke:ft,pluck:gt,where:function(e,t){return O(e,E(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=T(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&n<o&&(o=n);else i=_(i,t),A(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=_(i,t),gt(R(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:wt,indexBy:St,countBy:Et,partition:It,toArray:yt,size:function(e){return null==e?0:(T(e)?e:y(e)).length},pick:Ct,omit:xt,first:kt,head:kt,take:kt,initial:Tt,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return O(e,Boolean)},flatten:function(e,t){return k(e,t,!1)},without:Rt,uniq:Ot,unique:Ot,union:Nt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=v(e);i<r;i++){var o=e[i];if(!N(t,o)){for(var a=1;a<n&&N(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:At,unzip:Mt,transpose:Mt,zip:Lt,object:function(e,t){for(var n={},i=0,r=v(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n=n||(t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(u.call(e,i,i+=t));return n},mixin:Ft,"default":b}),Dt=P.toPath;return P.mixin({toPath:function(e){return P.isString(e)?e.split("."):Dt(e)}}),P._=P},underscore.exports=e()}(),underscore.exports),_=getDefaultExportFromCjs(underscoreExports);function doesExist(e){return!(null==e)}var deflate_min={exports:{}},deflate_minExports=(!function(){var Y=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===Y?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&u(this)}function u(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(d[255&e]<<24|d[e>>>8&255]<<16|d[e>>>16&255]<<8|d[e>>>24&255])>>32-t:d[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=d[s],s=0,o===r.length)&&(r=u(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=d[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var d=t;function c(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&e instanceof Array?new Uint8Array(e):e,this.c=0,t&&(t.lazy&&(this.i=t.lazy),"number"==typeof t.compressionType&&(this.d=t.compressionType),t.outputBuffer&&(this.a=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.prototype.push=function(e,t){var n,i,r=this.buffer,o=this.length;for(r[this.length++]=t,r[this.length++]=e;0<o&&(n=this.getParent(o),r[o]>r[n]);)i=r[o],r[o]=r[n],r[n]=i,i=r[o+1],r[o+1]=r[n+1],r[n+1]=i,o=n;return this.length},c.prototype.pop=function(){var e,t,n,i=this.buffer,r=i[0],o=i[1];for(this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],n=0;!((t=2*n+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[n]);)e=i[n],i[n]=i[t],i[t]=e,e=i[n+1],i[n+1]=i[t+1],i[t+1]=e,n=t;return{index:o,value:r,length:this.length}};for(var ne=2,l={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,F,n=this.input;switch(this.d){case 0:for(t=0,F=n.length;t<F;){var D,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===F,o=Y,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),D=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&D,a[s++]=D>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,U=i.length;o<U;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var u,d=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(d.b(1,1,Q),d.b(1,2,Q),re(this,n)),l=0,G=c.length;l<G;l++)if(u=c[l],te.prototype.b.apply(d,ie[u]),256<u)d.b(c[++l],c[++l],Q),d.b(c[++l],5),d.b(c[++l],c[++l],Q);else if(256===u)break;this.a=d.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,z,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,x,T,k,q=h,W=f,A=new(ee?Uint32Array:Array)(q+W),R=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<q;N++)A[_++]=m[N];for(N=0;N<W;N++)A[_++]=v[N];if(!ee)for(N=0,x=O.length;N<x;++N)O[N]=0;for(N=T=0,x=A.length;N<x;N+=_){for(_=1;N+_<x&&A[N+_]===A[N];++_);if(C=_,0===A[N])if(C<3)for(;0<C--;)O[R[T++]=0]++;else for(;0<C;)(k=C-3<(k=C<138?C:138)&&k<C?C-3:k)<=10?(R[T++]=17,R[T++]=k-3,O[17]++):(R[T++]=18,R[T++]=k-11,O[18]++),C-=k;else if(R[T++]=A[N],O[A[N]]++,--C<3)for(;0<C--;)R[T++]=A[N],O[A[N]]++;else for(;0<C;)C-3<(k=C<6?C:6)&&k<C&&(k=C-3),R[T++]=16,R[T++]=k-3,O[16]++,C-=k}for(e=ee?R.subarray(0,T):R.slice(0,T),y=oe(O,7),S=0;S<19;S++)H[S]=y[j[S]];for(g=19;4<g&&0===H[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(H[S],3,Q);for(S=0,z=e.length;S<z;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],J=I[0],$=I[1],K=L[0],Z=L[1],P=0,X=p.length;P<X;++P)if(M=p[P],E.b(J[M],$[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b(K[V],Z[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,u=w[e.length];switch(a[s++]=65535&u,a[s++]=u>>16&255,a[s++]=u>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(u=n,a[s++]=u[0],a[+s]=u[1],a[5]=u[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,c=null}var i,r,o,a,s,u,d,c,l,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===Y&&(p[s]=[]),u=p[s],!(0<g--)){for(;0<u.length&&32768<i-u[0];)u.shift();if(r<=i+3){for(c&&n(c,-1),o=0,a=r-i;o<a;++o)l=t[i+o],h[f++]=l,++m[l];break}0<u.length?(d=function(e,t,n){var i,r,o,a,s,u,d=0,c=e.length;a=0,u=n.length;e:for(;a<u;a++){if(i=n[u-a-1],(o=3)<d){for(s=d;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=d}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(d<o&&(r=i,d=o),258===o)break}return new b(d,t-r)}(t,i,u),c?c.length<d.length?(l=t[i-1],h[f++]=l,++m[l],n(d,0)):n(c,-1):d.length<y?c=d:n(d,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}u.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,u=new c(572),d=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)d[o]=0;for(o=0;o<s;++o)0<e[o]&&u.push(o,e[o]);if(n=Array(u.length/2),i=new(ee?Uint32Array:Array)(u.length/2),1===n.length)d[u.pop().index]=1;else{for(o=0,a=u.length/2;o<a;++o)n[o]=u.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,u=new(ee?Uint16Array:Array)(t),d=new(ee?Uint8Array:Array)(t),c=new(ee?Uint8Array:Array)(n),l=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(u[t-1]=n,r=0;r<t;++r)f<g?d[r]=0:(d[r]=1,f-=g),f<<=1,u[t-2-r]=(u[t-1-r]/2|0)+n;for(u[0]=d[0],l[0]=Array(u[0]),p[0]=Array(u[0]),r=1;r<t;++r)u[r]>2*u[r-1]+d[r]&&(u[r]=2*u[r-1]+d[r]),l[r]=Array(u[r]),p[r]=Array(u[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<u[t-1];++o)l[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===d[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<u[r];o++)(a=l[r+1][s]+l[r+1][s+1])>e[i]?(l[r][o]=a,p[r][o]=n,s+=2):(l[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===d[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--c[t],++h[e]}(r)}return c}(i,i.length,t),o=0,a=n.length;o<a;++o)d[n[o].index]=r[o]}return d}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,u=e.length;s<u;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,u=16;s<=u;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,u=e.length;s<u;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,S=l,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,u=a.length;s<u;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var d,c=1,l=0,p=o.length,h=0;0<p;){for(p-=d=1024<p?1024:p;l+=c+=o[h++],--d;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call(deflate_min.exports),deflate_min.exports),ZLibDeflate=getDefaultExportFromCjs(deflate_minExports),crc32_min=(ZLibDeflate.Zlib.Deflate,{exports:{}}),crc32_minExports=(!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(crc32_min.exports),crc32_min.exports),ZlibCRC32=getDefaultExportFromCjs(crc32_minExports);function randomElement(e){return e[Math.floor(Math.random()*e.length)]}function randomString(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=randomElement(i);return n}function getZoneSafeMethod(e,t=window){return getZoneSafeMethod$1(_,e,t)}function getIsFiniteImpl(e){return _.isFunction(e.isFinite)?e.isFinite:e.Number&&_.isFunction(e.Number.isFinite)?e.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)}}ZlibCRC32.Zlib.CRC32,getIsFiniteImpl(window);let policy;const policyOptions={createScriptURL:e=>e,createHTML:e=>e};function getPolicy(e){return policy||(policy=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",policyOptions):policyOptions),e.trustedTypesPolicy=policy),policy}var LogLevel,sizzle={exports:{}},sizzleExports=(!function(F){var e,h,w,o,D,f,U,G,S,u,d,E,I,n,_,g,i,r,m,a=window,C="sizzle"+ +new Date,c=a.document,x=0,B=0,z=O(),j=O(),H=O(),v=O(),q=function(e,t){return e===t&&(d=!0),0},W={}.hasOwnProperty,t=[],V=t.pop,J=t.push,T=t.push,$=t.slice,k=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",s="[\\x20\\t\\r\\n\\f]",l="(?:\\\\[\\da-fA-F]{1,6}"+s+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Z="\\["+s+"*("+l+")(?:"+s+"*([*^$|!~]?=)"+s+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+l+"))|)"+s+"*\\]",X=":("+l+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Z+")*)|.*)\\)|)",Y=new RegExp(s+"+","g"),A=new RegExp("^"+s+"+|((?:^|[^\\\\])(?:\\\\.)*)"+s+"+$","g"),Q=new RegExp("^"+s+"*,"+s+"*"),ee=new RegExp("^"+s+"*([>+~]|"+s+")"+s+"*"),te=new RegExp(s+"|>"),ne=new RegExp(X),ie=new RegExp("^"+l+"$"),p={ID:new RegExp("^#("+l+")"),CLASS:new RegExp("^\\.("+l+")"),TAG:new RegExp("^("+l+"|[*])"),ATTR:new RegExp("^"+Z),PSEUDO:new RegExp("^"+X),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+s+"*(even|odd|(([+-]|)(\\d*)n|)"+s+"*(?:([+-]|)"+s+"*(\\d+)|))"+s+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+s+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+s+"*((?:-\\d)?\\d*)"+s+"*\\)|)(?=[^-]|$)","i")},re=/HTML$/i,oe=/^(?:input|select|textarea|button)$/i,ae=/^h\d$/i,se=/^[^{]+\{\s*\[native \w/,ue=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,de=/[+~]/,y=new RegExp("\\\\[\\da-fA-F]{1,6}"+s+"?|\\\\([^\\r\\n\\f])","g"),b=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))},ce=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,le=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},pe=function(){E()},he=we(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{T.apply(t=$.call(c.childNodes),c.childNodes),t[c.childNodes.length].nodeType}catch(P){T={apply:t.length?function(e,t){J.apply(e,$.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function R(e,t,n,i){var r,o,a,s,u,d,c=t&&t.ownerDocument,l=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==l&&9!==l&&11!==l)return n;if(!i&&(E(t),t=t||I,_)){if(11!==l&&(s=ue.exec(e)))if(r=s[1]){if(9===l){if(!(d=t.getElementById(r)))return n;if(d.id===r)return n.push(d),n}else if(c&&(d=c.getElementById(r))&&m(t,d)&&d.id===r)return n.push(d),n}else{if(s[2])return T.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&h.getElementsByClassName&&t.getElementsByClassName)return T.apply(n,t.getElementsByClassName(r)),n}if(h.qsa&&!v[e+" "]&&(!g||!g.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(d=e,c=t,1===l&&(te.test(e)||ee.test(e))){for((c=de.test(e)&&ve(t.parentNode)||t)===t&&h.scope||((a=t.getAttribute("id"))?a=a.replace(ce,le):t.setAttribute("id",a=C)),o=(u=f(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+be(u[o]);d=u.join(",")}try{return T.apply(n,c.querySelectorAll(d)),n}catch(p){v(e,!0)}finally{a===C&&t.removeAttribute("id")}}}return G(e.replace(A,"$1"),t,n,i)}function O(){var n=[];function i(e,t){return n.push(e+" ")>w.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function N(e){return e[C]=!0,e}function M(e){var t=I.createElement("fieldset");try{return!!e(t)}catch(P){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function fe(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function ge(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 me(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&&he(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function L(a){return N(function(o){return o=+o,N(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 ve(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in h=R.support={},D=R.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!re.test(t||e&&e.nodeName||"HTML")},E=R.setDocument=function(e){var e=e?e.ownerDocument||e:c;return e!=I&&9===e.nodeType&&e.documentElement&&(n=(I=e).documentElement,_=!D(I),c!=I&&(e=I.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",pe,!1):e.attachEvent&&e.attachEvent("onunload",pe)),h.scope=M(function(e){return n.appendChild(e).appendChild(I.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),h.attributes=M(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=M(function(e){return e.appendChild(I.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=!!I.getElementsByClassName,h.getById=M(function(e){return n.appendChild(e).id=C,!I.getElementsByName||!I.getElementsByName(C).length}),h.getById?(w.filter.ID=function(e){var t=e.replace(y,b);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&_)return(e=t.getElementById(e))?[e]:[]}):(w.filter.ID=function(e){var t=e.replace(y,b);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&&_){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&&_?t.getElementsByClassName(e):h.qsa&&_?t.querySelectorAll("."+e):void 0},i=[],g=[],(h.qsa=!!I.querySelectorAll)&&(M(function(e){var t;n.appendChild(e).innerHTML=getPolicy().createHTML("<a id='"+C+"'></a><select id='"+C+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+s+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+s+"*(?:value|"+K+")"),e.querySelectorAll("[id~="+C+"-]").length||g.push("~="),(t=I.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+s+"*name"+s+"*="+s+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+C+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")}),M(function(e){e.innerHTML=getPolicy().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=I.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+s+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),n.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(h.matchesSelector=se.test(r=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.oMatchesSelector||n.msMatchesSelector))&&M(function(e){h.disconnectedMatch=r.call(e,"*"),r.call(e,"[s!='']:x"),i.push("!=",X)}),g=g.length&&new RegExp(g.join("|")),i=i.length&&new RegExp(i.join("|")),e=!!n.compareDocumentPosition,m=e||n.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},q=e?function(e,t){var n;return e===t?(d=!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==I||e.ownerDocument==c&&m(c,e)?-1:t==I||t.ownerDocument==c&&m(c,t)?1:u?k(u,e)-k(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==I?-1:t==I?1:r?-1:o?1:u?k(u,e)-k(u,t):0;if(r===o)return ge(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?ge(a[i],s[i]):a[i]==c?-1:s[i]==c?1:0}),I},R.matches=function(e,t){return R(e,null,null,t)},R.matchesSelector=function(e,t){if(E(e),h.matchesSelector&&_&&!v[t+" "]&&(!i||!i.test(t))&&(!g||!g.test(t)))try{var n=r.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(P){v(t,!0)}return 0<R(t,I,null,[e]).length},R.contains=function(e,t){return(e.ownerDocument||e)!=I&&E(e),m(e,t)},R.attr=function(e,t){(e.ownerDocument||e)!=I&&E(e);var n=w.attrHandle[t.toLowerCase()],n=n&&W.call(w.attrHandle,t.toLowerCase())?n(e,t,!_):undefined;return n!==undefined?n:h.attributes||!_?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},R.escape=function(e){return(e+"").replace(ce,le)},R.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},R.uniqueSort=function(e){var t,n=[],i=0,r=0;if(d=!h.detectDuplicates,u=!h.sortStable&&e.slice(0),e.sort(q),d){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return u=null,e},o=R.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+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},(w=R.selectors={cacheLength:50,createPseudo:N,match:p,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(y,b),e[3]=(e[3]||e[4]||e[5]||"").replace(y,b),"~="===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]||R.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]&&R.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return p.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ne.test(n)&&(t=(t=f(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(y,b).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+s+")"+e+"("+s+"|$)"))&&z(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=R.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(Y," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,e,t,g,m){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,u,d=v!=y?"nextSibling":"previousSibling",c=e.parentNode,l=b&&e.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(v){for(;d;){for(a=e;a=a[d];)if(b?a.nodeName.toLowerCase()===l:1===a.nodeType)return!1;u=d="only"===f&&!u&&"nextSibling"}return!0}if(u=[y?c.firstChild:c.lastChild],y&&p){for(h=(s=(i=(r=(o=(a=c)[C]||(a[C]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===x&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[d]||(h=s=0,u.pop());)if(1===a.nodeType&&++h&&a===e){r[f]=[x,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[C]||(a[C]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===x&&i[1]:h))for(;(a=++s&&a&&a[d]||(h=s=0,u.pop()))&&((b?a.nodeName.toLowerCase()!==l:1!==a.nodeType)||!++h||(p&&((r=(o=a[C]||(a[C]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[x,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()]||R.error("unsupported pseudo: "+e);return a[C]?a(o):1<a.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=k(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:N(function(e){var i=[],r=[],s=U(e.replace(A,"$1"));return s[C]?N(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:N(function(t){return function(e){return 0<R(t,e).length}}),contains:N(function(t){return t=t.replace(y,b),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:N(function(n){return ie.test(n||"")||R.error("unsupported lang: "+n),n=n.replace(y,b).toLowerCase(),function(e){var t;do{if(t=_?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=a.location&&a.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===n},focus:function(e){return e===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!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 ae.test(e.nodeName)},input:function(e){return oe.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:L(function(){return[0]}),last:L(function(e,t){return[t-1]}),eq:L(function(e,t,n){return[n<0?n+t:n]}),even:L(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:L(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:L(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:L(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[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})w.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function ye(){}function be(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function we(a,e,t){var s=e.dir,u=e.next,d=u||s,c=t&&"parentNode"===d,l=B++;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=[x,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[C]||(e[C]={}))[e.uniqueID]||(r[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[d])&&i[0]===x&&i[1]===l)return o[2]=i[2];if((r[d]=o)[2]=a(e,t,n))return!0}return!1}}function Se(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 Ee(e,t,n,i,r){for(var o,a=[],s=0,u=e.length,d=null!=t;s<u;s++)!(o=e[s])||n&&!n(o,i,r)||(a.push(o),d&&t.push(s));return a}function Ie(h,f,g,m,v,e){return m&&!m[C]&&(m=Ie(m)),v&&!v[C]&&(v=Ie(v,e)),N(function(e,t,n,i){var r,o,a,s=[],u=[],d=t.length,c=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)R(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),l=!h||!e&&f?c:Ee(c,s,h,n,i),p=g?v||(e?h:d||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=Ee(p,u),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[u[o]]=!(l[u[o]]=a));if(e){if(v||h){if(v){for(r=[],o=p.length;o--;)(a=p[o])&&r.push(l[o]=a);v(null,p=[],r,i)}for(o=p.length;o--;)(a=p[o])&&-1<(r=v?k(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=Ee(p===t?p.splice(d,p.length):p),v?v(null,t,p,i):T.apply(t,p)})}ye.prototype=w.filters=w.pseudos,w.setFilters=new ye,f=R.tokenize=function(e,t){var n,i,r,o,a,s,u,d=j[e+" "];if(d)return t?0:d.slice(0);for(a=e,s=[],u=w.preFilter;a;){for(o in n&&!(i=Q.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=ee.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(A," ")}),a=a.slice(n.length)),w.filter)w.filter.hasOwnProperty(o)&&(i=p[o].exec(a))&&(!u[o]||(i=u[o](i)))&&(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?R.error(e):j(e,s).slice(0)},U=R.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=H[e+" "];if(!a){for(n=(t=t||f(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,u=we(function(e){return e===i},a,!0),d=we(function(e){return-1<k(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==S)||((i=t).nodeType?u:d)(e,t,n),i=null,e}];s<r;s++)if(t=w.relative[e[s].type])c=[we(Se(c),t)];else{if((t=w.filter[e[s].type].apply(null,e[s].matches))[C]){for(n=++s;n<r&&!w.relative[e[n].type];n++);return Ie(1<s&&Se(c),1<s&&be(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(A,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&be(e))}c.push(t)}return Se(c)}(t[n]))[C]?r:o).push(a);(a=H(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,u=0,d="0",c=e&&[],l=[],p=S,h=e||b&&w.find.TAG("*",r),f=x+=null==p?1:Math.random()||.1,g=h.length;for(r&&(S=t==I||t||r);d!==g&&null!=(o=h[d]);d++){if(b&&o){for(a=0,t||o.ownerDocument==I||(E(o),n=!_);s=m[a++];)if(s(o,t||I,n)){i.push(o);break}r&&(x=f)}y&&((o=!s&&o)&&u--,e)&&c.push(o)}if(u+=d,y&&d!==u){for(a=0;s=v[a++];)s(c,l,t,n);if(e){if(0<u)for(;d--;)c[d]||l[d]||(l[d]=V.call(i));l=Ee(l)}T.apply(i,l),r&&!e&&0<l.length&&1<u+v.length&&R.uniqueSort(i)}return r&&(x=f,S=p),c},y?N(i):i))).selector=e}return a},G=R.select=function(e,t,n,i){var r,o,a,s,u,d="function"==typeof e&&e,c=!i&&f(e=d.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&_&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(y,b),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=p.needsContext.test(e)?0:o.length;r--&&(a=o[r],!w.relative[s=a.type]);)if((u=w.find[s])&&(i=u(a.matches[0].replace(y,b),de.test(o[0].type)&&ve(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&be(o))break;return T.apply(n,i),n}}return(d||U(e,c))(i,t,!_,n,!t||de.test(e)&&ve(t.parentNode)||t),n},h.sortStable=C.split("").sort(q).join("")===C,h.detectDuplicates=!!d,E(),h.sortDetached=M(function(e){return 1&e.compareDocumentPosition(I.createElement("fieldset"))}),M(function(e){return e.innerHTML=getPolicy().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&M(function(e){return e.innerHTML=getPolicy().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),M(function(e){return null==e.getAttribute("disabled")})||fe(K,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var _e=a.Sizzle;R.noConflict=function(){return a.Sizzle===R&&(a.Sizzle=_e),R},F.exports?F.exports=R:a.Sizzle=R}(sizzle),sizzle.exports),Sizzle=getDefaultExportFromCjs(sizzleExports);function wrapSizzle(e){var n=_.extend(function(){return n.Sizzle.apply(this,arguments)},e);return n.reset=function(){n.Sizzle=e,n.matchesSelector=e.matchesSelector,n.matches=e.matches},n.intercept=function(e,t="Sizzle"){n[t]=_.wrap(n[t],e)},n.reset(),n}function DomData(){this.ownerKey="_pendo_"+randomString(8)}function attachEventInternal(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?getZoneSafeMethod("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{detachEventInternal(e,t,n,i)}):_.noop}function detachEventInternal(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?getZoneSafeMethod("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}wrapSizzle(Sizzle),_.extend(DomData.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)}}),new DomData,function(e){e.Debug="debug",e.Info="info",e.Warn="warn",e.Error="error",e.Critical="critical"}(LogLevel=LogLevel||{});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",RESOURCE_CACHING="resourceCaching",ONE_DAY_IN_MILLISECONDS=864e5,THIRTY_MINUTES=18e5,ONE_HUNDRED_MB_IN_BYTES=104857600,SESSION_RECORDING_ID="pendo_srId",SESSION_RECORDING_LAST_USER_INTERACTION_EVENT="pendo_srLastUserInteractionEvent",SEND_INTERVAL$1=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(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$1,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.sendQueue=new SendQueue(e(this.transport.send,this.transport)),this.sendQueue.onTimeout=e(this.sendFailure,this,"SEND_TIMEOUT"),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);this.pendo._.isBoolean(i)?(n=i)||this.api.log.info("Session Replay disabled via the snippet config"):n=this.config.enabled,n&&(t.get("excludeNonGuideAnalytics")?this.api.log.info("Session Replay is disabled because excludeNonGuideAnalytics is enabled"):(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.frames.getChannel(),"message",e(this._frameMessage,this)),this.api.attachEvent(this.api.Events,"tabIdChanged:self",e(this.handleTabIdChange,this))],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()}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(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(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(this._changeIdentityTimer),this.visitorId=t.visitor.id,this.accountId=t.account.id,this.checkVisitorEligibility()}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()&&t&&t.call(this),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())}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:{}},t=(this.pendo._.isObject(e.maskInputOptions)&&(t.maskInputOptions=e.maskInputOptions),t.maskInputOptions=this.pendo._.extend(t.maskInputOptions,{email:!0,password:!0,tel:!0}),{maskInputFn:this.pendo._.partial(maskInput,t),maskTextFn:this.pendo._.partial(maskText,t),maskTextSelector:"*",maskTextClass:null,maskInputOptions:t.maskInputOptions,blockClass:null,blockSelector:[".pendo-ignore",".pendo-sr-ignore"].concat(e.blockedSelectors||[]).join(","),recordCrossOriginIframes:null==e.recordCrossOriginIframes||e.recordCrossOriginIframes});return t}start(){this._restartPtm=this.api.analytics.ptm().pause(),this.allowStart=!0,this.visitorId=this.pendo.get_visitor_id(),this.accountId=this.pendo.get_account_id(),this._start()}_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._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(),this.api.log.critical("Failed to fetch recording config",{error:e}),this.logStopReason("VISITOR_CONFIG_ERROR")})}_startRecordingForVisitor(e){if(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$1),this.recordingConfig(e));this._stop=this.record(this.pendo._.extend({emit:t(this.emit,this),errorHandler:t(this.errorHandler,this)},n)),this._refreshIds(),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})}_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||(this.recordingId=e.recordingId,this._sessionId=e._sessionId,this.restartPtm()):"pendo:sr:refresh"===e.type&&window==window.top&&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}}errorHandler(e){this.logStopReason("RRWEB_ERROR",e)}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.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.send({keyframe:!0})):!t&&(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}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)}}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.sendQueue.stop(),this.recordingId=null,clearInterval(this.interval),this.interval=null,this._stop=null,this.visitorConfig=null,this.visitorId=null,this.accountId=null,this.clearSessionInfo(),this.onRecordingStop()}handleHidden(){this.send({hidden:!0})}handleUnload(){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}),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):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})},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 i(e,t){return"function"==typeof e.bind?e.bind(t):e}function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function c(e,t){t=t||u;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 s.Deflate(e).compress();return t===u?r.uint8ToBase64(e):e}function l(e,t){t=t.match(/https:\/\/[^\s]+?\.(woff2?|ttf|otf|eot)(\?[^\s]*)?\b/g);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 t,a,n,p,r,o,s,u;i(window.setTimeout,window),n=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 i(e[t],e)}(window),window.Promise,t=function(){var t=n;function d(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void u(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!d(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function u(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){u(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)u(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!d(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a},p="function"==typeof(o=window.Promise)&&/native/.test(o)?o:t(),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),r={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 Y=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===Y?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&u(this)}function u(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(d[255&e]<<24|d[e>>>8&255]<<16|d[e>>>16&255]<<8|d[e>>>24&255])>>32-t:d[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=d[s],s=0,o===r.length)&&(r=u(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=d[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var d=t;function c(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&e instanceof Array?new Uint8Array(e):e,this.c=0,t&&(t.lazy&&(this.i=t.lazy),"number"==typeof t.compressionType&&(this.d=t.compressionType),t.outputBuffer&&(this.a=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.prototype.push=function(e,t){var n,i,r=this.buffer,o=this.length;for(r[this.length++]=t,r[this.length++]=e;0<o&&(n=this.getParent(o),r[o]>r[n]);)i=r[o],r[o]=r[n],r[n]=i,i=r[o+1],r[o+1]=r[n+1],r[n+1]=i,o=n;return this.length},c.prototype.pop=function(){var e,t,n,i=this.buffer,r=i[0],o=i[1];for(this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],n=0;!((t=2*n+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[n]);)e=i[n],i[n]=i[t],i[t]=e,e=i[n+1],i[n+1]=i[t+1],i[t+1]=e,n=t;return{index:o,value:r,length:this.length}};for(var ne=2,l={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,F,n=this.input;switch(this.d){case 0:for(t=0,F=n.length;t<F;){var D,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===F,o=Y,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),D=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&D,a[s++]=D>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,U=i.length;o<U;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var u,d=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(d.b(1,1,Q),d.b(1,2,Q),re(this,n)),l=0,G=c.length;l<G;l++)if(u=c[l],te.prototype.b.apply(d,ie[u]),256<u)d.b(c[++l],c[++l],Q),d.b(c[++l],5),d.b(c[++l],c[++l],Q);else if(256===u)break;this.a=d.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,z,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,x,T,k,q=h,W=f,A=new(ee?Uint32Array:Array)(q+W),R=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<q;N++)A[_++]=m[N];for(N=0;N<W;N++)A[_++]=v[N];if(!ee)for(N=0,x=O.length;N<x;++N)O[N]=0;for(N=T=0,x=A.length;N<x;N+=_){for(_=1;N+_<x&&A[N+_]===A[N];++_);if(C=_,0===A[N])if(C<3)for(;0<C--;)O[R[T++]=0]++;else for(;0<C;)(k=C-3<(k=C<138?C:138)&&k<C?C-3:k)<=10?(R[T++]=17,R[T++]=k-3,O[17]++):(R[T++]=18,R[T++]=k-11,O[18]++),C-=k;else if(R[T++]=A[N],O[A[N]]++,--C<3)for(;0<C--;)R[T++]=A[N],O[A[N]]++;else for(;0<C;)C-3<(k=C<6?C:6)&&k<C&&(k=C-3),R[T++]=16,R[T++]=k-3,O[16]++,C-=k}for(e=ee?R.subarray(0,T):R.slice(0,T),y=oe(O,7),S=0;S<19;S++)H[S]=y[j[S]];for(g=19;4<g&&0===H[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(H[S],3,Q);for(S=0,z=e.length;S<z;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],J=I[0],$=I[1],K=L[0],Z=L[1],P=0,X=p.length;P<X;++P)if(M=p[P],E.b(J[M],$[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b(K[V],Z[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,u=w[e.length];switch(a[s++]=65535&u,a[s++]=u>>16&255,a[s++]=u>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(u=n,a[s++]=u[0],a[+s]=u[1],a[5]=u[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,c=null}var i,r,o,a,s,u,d,c,l,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===Y&&(p[s]=[]),u=p[s],!(0<g--)){for(;0<u.length&&32768<i-u[0];)u.shift();if(r<=i+3){for(c&&n(c,-1),o=0,a=r-i;o<a;++o)l=t[i+o],h[f++]=l,++m[l];break}0<u.length?(d=function(e,t,n){var i,r,o,a,s,u,d=0,c=e.length;a=0,u=n.length;e:for(;a<u;a++){if(i=n[u-a-1],(o=3)<d){for(s=d;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=d}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(d<o&&(r=i,d=o),258===o)break}return new b(d,t-r)}(t,i,u),c?c.length<d.length?(l=t[i-1],h[f++]=l,++m[l],n(d,0)):n(c,-1):d.length<y?c=d:n(d,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}u.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,u=new c(572),d=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)d[o]=0;for(o=0;o<s;++o)0<e[o]&&u.push(o,e[o]);if(n=Array(u.length/2),i=new(ee?Uint32Array:Array)(u.length/2),1===n.length)d[u.pop().index]=1;else{for(o=0,a=u.length/2;o<a;++o)n[o]=u.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,u=new(ee?Uint16Array:Array)(t),d=new(ee?Uint8Array:Array)(t),c=new(ee?Uint8Array:Array)(n),l=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(u[t-1]=n,r=0;r<t;++r)f<g?d[r]=0:(d[r]=1,f-=g),f<<=1,u[t-2-r]=(u[t-1-r]/2|0)+n;for(u[0]=d[0],l[0]=Array(u[0]),p[0]=Array(u[0]),r=1;r<t;++r)u[r]>2*u[r-1]+d[r]&&(u[r]=2*u[r-1]+d[r]),l[r]=Array(u[r]),p[r]=Array(u[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<u[t-1];++o)l[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===d[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<u[r];o++)(a=l[r+1][s]+l[r+1][s+1])>e[i]?(l[r][o]=a,p[r][o]=n,s+=2):(l[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===d[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--c[t],++h[e]}(r)}return c}(i,i.length,t),o=0,a=n.length;o<a;++o)d[n[o].index]=r[o]}return d}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,u=e.length;s<u;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,u=16;s<=u;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,u=e.length;s<u;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,S=l,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,u=a.length;s<u;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var d,c=1,l=0,p=o.length,h=0;0<p;){for(p-=d=1024<p?1024:p;l+=c+=o[h++],--d;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call((o={exports:{}}).exports),s={Deflate:e(o.exports).Zlib.Deflate},u="base64url",self.onmessage=function(e){try{if("init"===e.data.type&&e.data.lockID)navigator.locks.request(e.data.lockID,()=>(postMessage({ready:!0}),new p(()=>{})));else if(e.data.url&&e.data.payload){var{url:t,payload:n,shouldCacheResources:i}=e.data;0===Object.keys(n).length&&postMessage({type:"emptyPayload"});const d=n["sequence"];var r,o,a=JSON.stringify(n.recordingPayload),s=(new TextEncoder).encode(a).length,u=104857600<=s;postMessage({type:"recordingPayloadSize",recordingPayloadSize:s,exceedsPayloadSizeLimit:u}),u||(i&&(r=l(n,a)).hostedResources.length&&postMessage({type:"hostedResources",hostedResourcesEvent:r}),n.recordingSize=s,o=c(n,"binary"),t=t+"&ct="+(new Date).getTime(),fetch(t,{method:"POST",body:o}).then(function(e){e.status<200||300<=e.status?postMessage({error:new Error(`received status code ${e.status}: `+e.statusText),status:e.status,sequence:d}):postMessage({sequence:d})})["catch"](function(e){postMessage({error:e,sequence:d})}))}else postMessage({type:"missingData",missingData:e.data.url?"PAYLOAD":"URL"})}catch(e){postMessage({error:e})}}},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){return e===undefined?"undefined":"object"!=typeof e?"bigint"==typeof e?e.toString()+"n":"function"==typeof e?e.toString():String(e):JSON.stringify(e,function(e,t){if(null!==t){if(t===undefined)return"undefined";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 n={};for(const r in t){var i=t[r];n[r]=Array.isArray(i)&&i[0]instanceof HTMLElement?serializeHTML(i[0]):i}return n}}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 u=o[e],d=t.test(u),d=n&&!d||!n&&d;if(!d&&!(++s<=DEFAULT_NUM_FRAMES_TO_SKIP)){if(i&&s>DEFAULT_NUM_FRAMES_TO_SKIP+i)break;r(u,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=-1<["eval","<anonymous>"].indexOf(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]})))})}},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[ -]*?){13,16}\b/g,httpsUrls:/https:\/\/[^\s]+/g},PII_REPLACEMENT="*".repeat(10);function truncate(e){return e.length>MAX_LENGTH?e.slice(0,MAX_LENGTH):e}function generateLogKey(e,t,n){return e+`|${t}|`+n}function mightContainPII(e){return/[\d]{2,}|https:\/\//.test(e)}function scrubPII(e){return e&&"string"==typeof e&&mightContainPII(e)?Object.values(PII_PATTERN).reduce((e,t)=>e.replace(t,PII_REPLACEMENT),e):e}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.
140
140
  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.
141
- Current CSP: "${i}".`}catch(s){return"Content Security Policy: Error formatting violation message: "+s.message}}const DEV_LOG_LEVELS=["info","warn","error"],TOKEN_MAX_SIZE=100,TOKEN_REFILL_RATE=10,TOKEN_REFRESH_INTERVAL=1e3;class ConsoleCaptureBuffer{constructor(e,t){this.pendo=e,this.pluginAPI=t,this.events=[],this.lastEvent=null,this.tokens=TOKEN_MAX_SIZE,this.lastRefillTime=this.pluginAPI.util.getNow(),this.nextRefillTime=this.lastRefillTime+TOKEN_REFRESH_INTERVAL}isEmpty(){return 0===this.events.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}push(e){var t=e["devLogLevel"];return!!this.pendo._.contains(DEV_LOG_LEVELS,t)&&(this.refillTokens(),0!==this.tokens)&&(this.lastEvent=e,this.events.push(e),this.tokens=Math.max(this.tokens-1,0),!0)}pack(){var e;if(!this.isEmpty())return e=this.pendo.compress(this.events),this.clear(),e}}_.isFunction(window.decodeURIComponent)?window.decodeURIComponent:_.identity;var pendo,originalOptions,sha1={exports:{}},_pendoConfig=(!function(e){function i(e){e?(a[0]=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,this.blocks=a):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}var s,t,o,n,u,r,a,d,c;s="object"==typeof window?window:{},t=!s.JS_SHA1_NO_COMMON_JS&&e.exports,o="0123456789abcdef".split(""),n=[-2147483648,8388608,32768,128],u=[24,16,8,0],r=["hex","array","digest","arrayBuffer"],a=[],d=function(t){return function(e){return new i(!0).update(e)[t]()}},i.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===s.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]<<u[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<u[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<u[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<u[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<u[3&n++],a[n>>2]|=(128|t>>12&63)<<u[3&n++]),a[n>>2]|=(128|t>>6&63)<<u[3&n++]),a[n>>2]|=(128|63&t)<<u[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}},i.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=n[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())},i.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},i.prototype.toString=i.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]},i.prototype.array=i.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]},i.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},c=function(){var t=d("hex");t.create=function(){return new i},t.update=function(e){return t.create().update(e)};for(var e=0;e<r.length;++e){var n=r[e];t[n]=d(n)}return t}(),t?e.exports=c:s.sha1=c}(sha1),{});function getPendoConfig(){return _pendoConfig}function getPendoConfigFromEnclosingScope(){return"undefined"==typeof PendoConfig?{}:PendoConfig}function deepCopy(e){return _.isFunction(e)||_.isRegExp(e)?e:_.isArray(e)?_.map(e,deepCopy):_.isObject(e)?_.reduce(e,function(e,t,n){return e[n]=deepCopy(t),e},{}):e}var ConfigReader=function(){var i=_.all,r=_.each,o=_.filter,a=_.first,s=_.find,n=_.map,u=_.pluck,d="snippet",c="pendoconfig",l="global",p="default";const h={};function e(e,t=[c],n,i){e&&!h[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),h[e]=n)}e("additionalApiKeys",[c,d]),e("allowedOriginServers"),e("allowedOriginServerHashes"),e("allowMixedApiKeyFrames",[d,c],!0),e("annotateUrl",[d]),e("apiKey",[c,d]),e("assetHost",[d,c]),e("autoFrameInstall",[d,c],!1),e("blockAgentMetadata",[c],!1),e("contentHost",[d,c]),e("cookieDomain",[d,c]),e("dataHost",[d,c]),e("disableAutoInitialize"),e("disableCookies",[d,c]),e("disablePendo",[d,c],!1),e("disablePersistence",[d,c]),e("enableSignedMetadata",[c],!1),e("frameIdentitySync",[d,c],!1),e("frameIdentityTopDownOnly",[d,c],!0),e("forceAnonymous",[d,c],!1),e("identityStorageLifetime",[d,c]),e("identityStorageSuffix",[d,c]),e("ignoreHashRouting",[d,c]),e("initializeImmediately",[d,c],!1),e("installType"),e("localStorageOnly",[d,c]),e("location.pushState",[d,c],!0),e("maxCookieTTLDays",[d,c],Infinity),e("observeShadowRoots",[d,c],!1),e("pendoCore",[c],!0),e("pendoGlobalKey",[c]),e("preferBroadcastChannel",[d,c],!1),e("preferMutationObserver",[d,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[d,c],!1),e("promotedAgentMetadataConfigurations",[c]),e("queryStringWhitelist",[d]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[d]),e("selfHosted"),e("selfHostedAgentUrl",[d,c]),e("sendEventsWithPostOnly",[d,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[d,c],[]),e("analytics.excludeEvents",[d,c],[]),e("analytics.localStorageUnload",[d,c],!1),e("enableDebugEvents",[d,c]),e("freeNPSData"),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[d,c],!0),e("excludeAllText",[c,d],!1,!0),e("excludeNonGuideAnalytics",[d,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptElementRemoval",[d,c],!1),e("interceptPreventDefault",[d,c],!0),e("interceptStopPropagation",[d,c],!0),e("syntheticClicks.elementRemoval",[d,c],!1),e("syntheticClicks.targetChanged",[d,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[d,c]),e("cacheGuides",[d,c],!1),e("cacheGuidesTimeout",[c],6e5),e("delayGuides",[d]),e("disableDesigner",[c,d],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[d,c],!1),e("disableGuidePseudoStyles",[d,c],!1),e("disableGuides",[d]),e("disablePrefetch",[d,c]),e("enableDesignerKeyboardShortcut",[d]),e("enableGuideTimeout",[c,d],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,d],1e4),e("guideTimeout",[d]),e("guideValidation",[d,c],!1),e("guides.attachPoint",[d]),e("guides.delay",[d]),e("guides.disabled",[d]),e("guides.ejectOnTimeout",[d,c],!1),e("guides.globalScripts",[d,c],[]),e("guides.timeout",[d]),e("guides.tooltip.arrowSize",[d]),e("inlineStyleNonce",[d]),e("leaderKey",[d,c],[]),e("preventCodeInjection",[c,d,l],!1),e("previewModeAssetPath"),e("useAssetHostForDesigner",[d,c],!1),e("storage.allowKeys",[d],"*"),e("disableFeedback",[d]),e("disableFeedbackAutoInit"),e("feedbackSettings",[c],{}),e("pendoFeedback",[c],!1),e("crossAppGuideStorageSuffix",[d,c]),e("enableCrossOriginIsolation",[d,c],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("agentDebuggerPluginLoader"),e("allowPartnerAnalyticsForwarding",[d],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerAgentPluginsLoader",[c,d]),e("trainingPartner"),e("errorClickLogging",[c],!1),e("enableAllEmbeddedGuideEvents",[c],!1),e("formValidation",[c],!1),e("performanceMetricsEnabled",[d,c],!0);var f={};function g(e){return h[e]||{name:e}}function m(e,t){if(t)return t=t(),doesExist(e=_.get(t.lookup,(t=e,_.get(t,"key")||_.get(t,"name"))))?e:undefined}function v(e,t){var n=m(e,f[t]);return new w(e.name,n,t)}function y(e,t){return t=t||_.get(e,"supportedSources",[d,c,l]),o(n(t,_.partial(v,e)),function(e){return doesExist(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&&doesExist(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function w(e,t,n){this.name=e,this.value=t,this.source=n}function S(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(u(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[d]=function(){return{lookup:originalOptions||window.pendo_options,name:d}},f[c]=function(){return{lookup:getPendoConfig(),name:c}},f[l]=function(){return{lookup:pendo,name:l}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get(e,t){return b(e,t).value},getLocalConfig(e,t){return arguments.length?b(e,t,[d]).value:deepCopy(originalOptions)},getHostedConfig(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig(e){originalOptions=e},options:()=>u(h,"name"),sources:{SNIPPET_SRC:d,PENDO_CONFIG_SRC:c,GLOBAL_SRC:l,DEFAULT_SRC:p},validate(t){t.groupCollapsed("Validate Config options"),r(S(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}();function flux(e){var i=[],r=[],o={},a={},s={state:{},commit:function(t,n){var e=o[t];if(!e)throw new Error("mutation "+t+" not found");e(n),_.each(i,function(e){e({type:t,payload:n},s.state)})},dispatch:function(t,n){var e=a[t];if(e)return e=e(n),_.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:_.partial(t,i),subscribeAction:_.partial(t,r),registerModule:function h(n,e){_.isString(n)&&(n=[n]);var t=d(s.state,e,n);_.extend(s.getters,p(e,t,s,n));_.extend(o,c(e,t,n));_.extend(a,l(e,t,s,n));_.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return _.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):_.noop;var n,i}function u(e,t){return(e=t?e.concat([t]):e).join("/")}function d(e,t,n){var i=e;return _.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),_.extend(i,deepCopy(t.state||{}))}function c(e,n,i){var r={};return _.each(e.mutations,function(e,t){r[u(i,t)]=_.partial(e,n)}),r}function l(e,t,i,r){var n={},o={state:t,rootState:i.state,commit:function(e,t,n){n=n&&n.root?e:u(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:u(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=u(t);i&&(i+="/");return _.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return _.each(e.actions,function(e,t){n[u(r,t)]=_.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return _.each(e.getters,function(e,t){a[t]=o[u(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}function createStore(){return flux()}var store=createStore();store.subscribe(function(e,t){});const EXTENSION_INSTALL_TYPE="extension",NATIVE_INSTALL_TYPE="native";function getInstallType(){return ConfigReader.get("installType")||getPendoConfigFromEnclosingScope().installType||NATIVE_INSTALL_TYPE}function isExtensionAgent(){return getInstallType()===EXTENSION_INSTALL_TYPE}function isNativeCode(e){return/native/.test(e)}const msie=determineMSIE(getUA());function pint(e){return parseInt(e,10)}function lowercase(e){return _.isString(e)?e.toLowerCase():e}function isMinimumIEVersion(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e}function getUA(){return(window.navigator||{}).userAgent}function determineMSIE(e){let t=pint((/msie (\d+)/.exec(lowercase(e))||[])[1]);return t=isNaN(t)?pint((/trident\/.*; rv:(\d+)/.exec(lowercase(e))||[])[1]):t}function determineTrident(e,t){let n=pint((/trident\/(\d+)/.exec(lowercase(e))||[])[1]);return n=isNaN(n)&&7==t?3:n}determineTrident(getUA(),msie);const eventSupport={},android=pint((/android (\d+)/.exec(lowercase(getUA()))||[])[1]),boxee=/Boxee/i.test(getUA()),pdocument=window.document||{},documentMode=pdocument.documentMode;let vendorPrefix;const vendorRegex=/^(Moz|webkit|O|ms)(?=[A-Z])/,bodyStyle=pdocument.body&&pdocument.body.style;let transitions=!1,animations=!1,match;if(bodyStyle){for(const RE1 in bodyStyle)if(match=vendorRegex.exec(RE1)){vendorPrefix=(vendorPrefix=match[0]).substr(0,1).toUpperCase()+vendorPrefix.substr(1);break}vendorPrefix=vendorPrefix||"WebkitOpacity"in bodyStyle&&"webkit",transitions=!!("transition"in bodyStyle||vendorPrefix+"Transition"in bodyStyle),animations=!!("animation"in bodyStyle||vendorPrefix+"Animation"in bodyStyle),!android||transitions&&animations||(transitions=_.isString(pdocument.body.style.webkitTransition),animations=_.isString(pdocument.body.style.webkitAnimation))}const isChromeExtension=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id,shouldWrapNativeHistory=_.memoize(function shouldWrapNativeHistory(){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=!(android<4);return!(!e||t||!n||!i||boxee||isExtensionAgent())});function shouldWrapHashChange(){var e="onhashchange"in window,t=!documentMode||7<documentMode;return!(!e||!t||isExtensionAgent())}function isMobileUserAgent(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(getUA())}function isSafari(e=getUA()){return 0<=e.indexOf("Safari")&&0<=!e.indexOf("Chrome")}const sniffer={supportsHistoryApi:shouldWrapNativeHistory,supportsHashChange:shouldWrapHashChange,hasEvent(e){var t;return("input"!=e||9!=msie)&&(_.isUndefined(eventSupport[e])&&(t=pdocument.createElement("div"),eventSupport[e]="on"+e in t),eventSupport[e])},vendorPrefix:vendorPrefix,transitions:transitions,animations:animations,android:android,msie:msie,msieDocumentMode:documentMode,safari:isSafari(),sri:"integrity"in document.createElement("script"),addEventListener:_.isFunction(window.addEventListener),MutationObserver:isNativeCode(window.MutationObserver),isMinimumIEVersion:isMinimumIEVersion,isMobileUserAgent:_.memoize(isMobileUserAgent),isChromeExtension:isChromeExtension};var q,encodeURIComponent=_.isFunction(window.encodeURIComponent)?window.encodeURIComponent:_.identity,ayepromise=function(){var e={},d=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},c=function(n,i){var r=e.defer(),o=function(n,i){setTimeout$1(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===l?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},l=1;return e.defer=function(){var n,i=0,r=[],o=function(e,t){i=e,n=t,_.each(r,function(e){e.handle(i,n)}),r=null},a=function(e){o(2,e)},t=function(e,t){e=c(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},s=function(e){var t=d();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?s(t):o(l,e)},e=d();return{resolve:e(u),reject:e(a),promise:{then:t,"catch":function(e){return t(null,e)}}}},e}();function qAllObject(e){var n,i=q.defer(),r=_.isArray(e)?[]:{},o=_.size(e);return o?(n=!1,_.each(e,function(e,t){q.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):q.resolve(e)}!isExtensionAgent()&&sniffer.isMinimumIEVersion(11)?q={all:function(e){return _.isArray(e)?Promise$2.all.apply(Promise$2,arguments):qAllObject(e)},reject:function(){return Promise$2.reject.apply(Promise$2,arguments)},resolve:function(){return Promise$2.resolve.apply(Promise$2,arguments)},defer:function(){var n={};return n.promise=new Promise$2(function(e,t){n.resolve=e,n.reject=t}),n}}:((q=ayepromise).all=qAllObject,q.reject=function(e){var t=q.defer();return t.reject(e),t.promise},q.resolve=function(e){var t=q.defer();return t.resolve(e),t.promise}),function(){function i(){return window.XMLHttpRequest||ActiveXObject}function r(e){var t=q.defer(),n=new(i())("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 o(e,t,n){return r({method:"POST",url:e,data:t,headers:n})}_.extend(r,{get:function(e,t){return r({method:"GET",url:e,headers:t})},post:o,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",o(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)?encodeURIComponent(e):encodeURIComponent(e)+"="+encodeURIComponent(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!==i()}})}();var SEND_INTERVAL=12e4,ENCODED_EVENT_MAX_LENGTH=1900;class ConsoleTransport{constructor(e,t){this.pendo=e,this.pluginAPI=t}buildGetUrl(e,t){var n={},i=this.pluginAPI.agent.treatAsAdoptPartner(),r=this.pendo.get_account_id(),i=(i&&r&&"ACCOUNT-UNIQUE-ID"!==r&&(n.acc=this.pluginAPI.util.base64EncodeString(r)),this.pluginAPI.agent.getJwtInfoCopy()),r=(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("?")?"&":"?")+r}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 console 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()},r=this.pluginAPI.agent.treatAsAdoptPartner(),o=this.pendo.get_account_id(),r=(r&&o&&"ACCOUNT-UNIQUE-ID"!==o&&(t.acc=this.pluginAPI.util.base64EncodeString(o)),JSON.stringify(this.pendo._.extend(t,i)));return this.post(e,{body:r,headers:{"Content-Type":"application/json"},keepalive:n})}sendRequest({url:e,jzb:t},n){return t.length<=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,u,d,r,n,i,c;const o="captureConsoleLogs",e=["log","warn","error","info"],l="devlog",p="console";let h="";return{name:"ConsoleCapture",initialize:function(e,t){s=e._;t=(a=t).ConfigReader,t.addOption(o,[t.sources.PENDO_CONFIG_SRC],!1),t=t.get(o);t&&(u=e,d=new ConsoleCaptureBuffer(e,a),i=new ConsoleTransport(e,a),r=new SendQueue(i.sendRequest.bind(i)),n=setInterval(()=>{r.failed()||E()},SEND_INTERVAL),r.start(),a.Events.ready.on(y),a.Events.appUnloaded.on(g),a.Events.appHidden.on(f),a.Events["ptm:paused"].on(m),a.Events["ptm:unpaused"].on(v),a.log.info("Console logs are being captured"))},teardown:function(){E({unload:!0}),n&&clearInterval(n);r&&r.stop();d&&d.clear();a.Events.appHidden.off(f),a.Events.appUnloaded.off(g),a.Events["ptm:paused"].off(m),a.Events["ptm:unpaused"].off(v),a.detachEventInternal(window,"securitypolicyviolation",b),s.each(e,function(e){if(!console[e])return s.noop;e=console[e]._pendoUnwrap;s.isFunction(e)&&e()})},addIntercepts:t,createConsoleEvent:w,captureStackTrace:S,send:E,onAppHidden:f,onAppUnloaded:g,onPtmPaused:m,onPtmUnpaused:v,securityPolicyViolationFn:b,get buffer(){return d},get sendQueue(){return r},get isPtmPaused(){return c}};function f(){E({hidden:!0})}function g(){E({unload:!0})}function m(){c=!0}function v(){if(c=!1,!d.isEmpty()){for(const e of d.events)a.Events.eventCaptured.trigger(e);E()}}function y(){t(),a.attachEventInternal(window,"securitypolicyviolation",b)}function t(){s.each(e,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),w(t,n)}),console[n]._pendoUnwrap=function(){console[n]=e})})}function b(e){var t,n,i,r;e&&"object"==typeof e&&({blockedURI:e,violatedDirective:t,effectiveDirective:n,disposition:i,originalPolicy:r}=e,w([createCspViolationMessage(e,t||n,e="report"===i,r)],e?"warn":"error",{skipStackTrace:!0,skipScrubPII:!0}))}function w(t,n,{skipStackTrace:i=!1,skipScrubPII:r=!1}={}){if(t&&0!==t.length){t=s.compact(s.map(t,e=>{let t;try{t=stringify(e)}catch(n){a.log.error("Error stringifying arg: ",n)}return t})).join(" ");if(t){let e="";i||(e=S("error"===n?4:1));var o,i=generateLogKey(n,t=truncate(t),e=truncate(e));if(i!==h||!d.lastEvent)return o={visitorId:u.get_visitor_id(),accountId:u.get_account_id(),type:l,subType:p,browser_time:a.util.getNow(),url:u.url.get()},o=Object.assign(Object.assign({},o),{devLogLevel:"log"===n?"info":n,devLogMessage:r?t:scrubPII(t),devLogTrace:e,devLogCount:1}),d.push(o)&&(c||a.Events.eventCaptured.trigger(o),n=i,h=n),o;d.lastEvent.devLogCount++}}}function S(e){try{var t=ErrorStackParser.parse(new Error,e);return s.map(t,e=>e.toString()).join("\n")}catch(n){return""}}function E({unload:e=!1,hidden:t=!1}={}){var n,i;d&&!d.isEmpty()&&(u.isSendingEvents()?(n={v:u.VERSION,ct:a.util.getNow()},n=a.transmit.buildBaseDataUrl("devlog",u.apiKey,n),(i=d.pack())&&(e||t?r.drain([{url:n,jzb:i}],e):r.push({url:n,jzb:i}))):d.clear())}}export{ConsoleCapture,Feedback,GuideMarkdown,createReplayPlugin as Replay,TextCapture,VocPortal,loadAgent};
141
+ Current CSP: "${i}".`}catch(s){return"Content Security Policy: Error formatting violation message: "+s.message}}const DEV_LOG_LEVELS=["info","warn","error"],TOKEN_MAX_SIZE=100,TOKEN_REFILL_RATE=10,TOKEN_REFRESH_INTERVAL=1e3;class ConsoleCaptureBuffer{constructor(e,t){this.pendo=e,this.pluginAPI=t,this.events=[],this.lastEvent=null,this.tokens=TOKEN_MAX_SIZE,this.lastRefillTime=this.pluginAPI.util.getNow(),this.nextRefillTime=this.lastRefillTime+TOKEN_REFRESH_INTERVAL}isEmpty(){return 0===this.events.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}push(e){var t=e["devLogLevel"];return!!this.pendo._.contains(DEV_LOG_LEVELS,t)&&(this.refillTokens(),0!==this.tokens)&&(this.lastEvent=e,this.events.push(e),this.tokens=Math.max(this.tokens-1,0),!0)}pack(){var e;if(!this.isEmpty())return e=this.pendo.compress(this.events),this.clear(),e}}_.isFunction(window.decodeURIComponent)?window.decodeURIComponent:_.identity;var pendo,originalOptions,sha1={exports:{}},_pendoConfig=(!function(e){function i(e){e?(a[0]=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,this.blocks=a):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}var s,t,o,n,u,r,a,d,c;s="object"==typeof window?window:{},t=!s.JS_SHA1_NO_COMMON_JS&&e.exports,o="0123456789abcdef".split(""),n=[-2147483648,8388608,32768,128],u=[24,16,8,0],r=["hex","array","digest","arrayBuffer"],a=[],d=function(t){return function(e){return new i(!0).update(e)[t]()}},i.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===s.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]<<u[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<u[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<u[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<u[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<u[3&n++],a[n>>2]|=(128|t>>12&63)<<u[3&n++]),a[n>>2]|=(128|t>>6&63)<<u[3&n++]),a[n>>2]|=(128|63&t)<<u[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}},i.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=n[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())},i.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},i.prototype.toString=i.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]},i.prototype.array=i.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]},i.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},c=function(){var t=d("hex");t.create=function(){return new i},t.update=function(e){return t.create().update(e)};for(var e=0;e<r.length;++e){var n=r[e];t[n]=d(n)}return t}(),t?e.exports=c:s.sha1=c}(sha1),{});function getPendoConfig(){return _pendoConfig}function getPendoConfigFromEnclosingScope(){return"undefined"==typeof PendoConfig?{}:PendoConfig}function deepCopy(e){return _.isFunction(e)||_.isRegExp(e)?e:_.isArray(e)?_.map(e,deepCopy):_.isObject(e)?_.reduce(e,function(e,t,n){return e[n]=deepCopy(t),e},{}):e}var ConfigReader=function(){var i=_.all,r=_.each,o=_.filter,a=_.first,s=_.find,n=_.map,u=_.pluck,d="snippet",c="pendoconfig",l="global",p="default";const h={};function e(e,t=[c],n,i){e&&!h[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),h[e]=n)}e("additionalApiKeys",[c,d]),e("allowedOriginServers"),e("allowedOriginServerHashes"),e("allowMixedApiKeyFrames",[d,c],!0),e("annotateUrl",[d]),e("apiKey",[c,d]),e("assetHost",[d,c]),e("autoFrameInstall",[d,c],!1),e("blockAgentMetadata",[c],!1),e("contentHost",[d,c]),e("cookieDomain",[d,c]),e("dataHost",[d,c]),e("disableAutoInitialize"),e("disableCookies",[d,c]),e("disablePendo",[d,c],!1),e("disablePersistence",[d,c]),e("enableSignedMetadata",[c],!1),e("frameIdentitySync",[d,c],!1),e("frameIdentityTopDownOnly",[d,c],!0),e("forceAnonymous",[d,c],!1),e("identityStorageLifetime",[d,c]),e("identityStorageSuffix",[d,c]),e("ignoreHashRouting",[d,c]),e("initializeImmediately",[d,c],!1),e("installType"),e("localStorageOnly",[d,c]),e("location.pushState",[d,c],!0),e("maxCookieTTLDays",[d,c],Infinity),e("observeShadowRoots",[d,c],!1),e("pendoCore",[c],!0),e("pendoGlobalKey",[c]),e("preferBroadcastChannel",[d,c],!1),e("preferMutationObserver",[d,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[d,c],!1),e("promotedAgentMetadataConfigurations",[c]),e("queryStringWhitelist",[d]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[d]),e("selfHosted"),e("selfHostedAgentUrl",[d,c]),e("sendEventsWithPostOnly",[d,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[d,c],[]),e("analytics.excludeEvents",[d,c],[]),e("analytics.localStorageUnload",[d,c],!1),e("enableDebugEvents",[d,c]),e("freeNPSData"),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[d,c],!0),e("excludeAllText",[c,d],!1,!0),e("excludeNonGuideAnalytics",[d,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptElementRemoval",[d,c],!1),e("interceptPreventDefault",[d,c],!0),e("interceptStopPropagation",[d,c],!0),e("syntheticClicks.elementRemoval",[d,c],!1),e("syntheticClicks.targetChanged",[d,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[d,c]),e("cacheGuides",[d,c],!1),e("cacheGuidesTimeout",[c],6e5),e("delayGuides",[d]),e("disableDesigner",[c,d],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[d,c],!1),e("disableGuidePseudoStyles",[d,c],!1),e("disableGuides",[d]),e("disablePrefetch",[d,c]),e("enableDesignerKeyboardShortcut",[d]),e("enableGuideTimeout",[c,d],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,d],1e4),e("guideTimeout",[d]),e("guideValidation",[d,c],!1),e("guides.attachPoint",[d]),e("guides.delay",[d]),e("guides.disabled",[d]),e("guides.ejectOnTimeout",[d,c],!1),e("guides.globalScripts",[d,c],[]),e("guides.timeout",[d]),e("guides.tooltip.arrowSize",[d]),e("inlineStyleNonce",[d]),e("leaderKey",[d,c],[]),e("preventCodeInjection",[c,d,l],!1),e("previewModeAssetPath"),e("useAssetHostForDesigner",[d,c],!1),e("storage.allowKeys",[d],"*"),e("disableFeedback",[d]),e("disableFeedbackAutoInit"),e("feedbackSettings",[c],{}),e("pendoFeedback",[c],!1),e("crossAppGuideStorageSuffix",[d,c]),e("enableCrossOriginIsolation",[d,c],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("agentDebuggerPluginLoader"),e("allowPartnerAnalyticsForwarding",[d],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerAgentPluginsLoader",[c,d]),e("trainingPartner"),e("errorClickLogging",[c],!1),e("enableAllEmbeddedGuideEvents",[c],!1),e("formValidation",[c],!1),e("performanceMetricsEnabled",[d,c],!0);var f={};function g(e){return h[e]||{name:e}}function m(e,t){if(t)return t=t(),doesExist(e=_.get(t.lookup,(t=e,_.get(t,"key")||_.get(t,"name"))))?e:undefined}function v(e,t){var n=m(e,f[t]);return new w(e.name,n,t)}function y(e,t){return t=t||_.get(e,"supportedSources",[d,c,l]),o(n(t,_.partial(v,e)),function(e){return doesExist(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&&doesExist(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function w(e,t,n){this.name=e,this.value=t,this.source=n}function S(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(u(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[d]=function(){return{lookup:originalOptions||window.pendo_options,name:d}},f[c]=function(){return{lookup:getPendoConfig(),name:c}},f[l]=function(){return{lookup:pendo,name:l}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get(e,t){return b(e,t).value},getLocalConfig(e,t){return arguments.length?b(e,t,[d]).value:deepCopy(originalOptions)},getHostedConfig(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig(e){originalOptions=e},options:()=>u(h,"name"),sources:{SNIPPET_SRC:d,PENDO_CONFIG_SRC:c,GLOBAL_SRC:l,DEFAULT_SRC:p},validate(t){t.groupCollapsed("Validate Config options"),r(S(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}();function flux(e){var i=[],r=[],o={},a={},s={state:{},commit:function(t,n){var e=o[t];if(!e)throw new Error("mutation "+t+" not found");e(n),_.each(i,function(e){e({type:t,payload:n},s.state)})},dispatch:function(t,n){var e=a[t];if(e)return e=e(n),_.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:_.partial(t,i),subscribeAction:_.partial(t,r),registerModule:function h(n,e){_.isString(n)&&(n=[n]);var t=d(s.state,e,n);_.extend(s.getters,p(e,t,s,n));_.extend(o,c(e,t,n));_.extend(a,l(e,t,s,n));_.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return _.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):_.noop;var n,i}function u(e,t){return(e=t?e.concat([t]):e).join("/")}function d(e,t,n){var i=e;return _.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),_.extend(i,deepCopy(t.state||{}))}function c(e,n,i){var r={};return _.each(e.mutations,function(e,t){r[u(i,t)]=_.partial(e,n)}),r}function l(e,t,i,r){var n={},o={state:t,rootState:i.state,commit:function(e,t,n){n=n&&n.root?e:u(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:u(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=u(t);i&&(i+="/");return _.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return _.each(e.actions,function(e,t){n[u(r,t)]=_.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return _.each(e.getters,function(e,t){a[t]=o[u(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}function createStore(){return flux()}var store=createStore();store.subscribe(function(e,t){});const EXTENSION_INSTALL_TYPE="extension",NATIVE_INSTALL_TYPE="native";function getInstallType(){return ConfigReader.get("installType")||getPendoConfigFromEnclosingScope().installType||NATIVE_INSTALL_TYPE}function isExtensionAgent(){return getInstallType()===EXTENSION_INSTALL_TYPE}function isNativeCode(e){return/native/.test(e)}const msie=determineMSIE(getUA());function pint(e){return parseInt(e,10)}function lowercase(e){return _.isString(e)?e.toLowerCase():e}function isMinimumIEVersion(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e}function getUA(){return(window.navigator||{}).userAgent}function determineMSIE(e){let t=pint((/msie (\d+)/.exec(lowercase(e))||[])[1]);return t=isNaN(t)?pint((/trident\/.*; rv:(\d+)/.exec(lowercase(e))||[])[1]):t}function determineTrident(e,t){let n=pint((/trident\/(\d+)/.exec(lowercase(e))||[])[1]);return n=isNaN(n)&&7==t?3:n}determineTrident(getUA(),msie);const eventSupport={},android=pint((/android (\d+)/.exec(lowercase(getUA()))||[])[1]),boxee=/Boxee/i.test(getUA()),pdocument=window.document||{},documentMode=pdocument.documentMode;let vendorPrefix;const vendorRegex=/^(Moz|webkit|O|ms)(?=[A-Z])/,bodyStyle=pdocument.body&&pdocument.body.style;let transitions=!1,animations=!1,match;if(bodyStyle){for(const KF1 in bodyStyle)if(match=vendorRegex.exec(KF1)){vendorPrefix=(vendorPrefix=match[0]).substr(0,1).toUpperCase()+vendorPrefix.substr(1);break}vendorPrefix=vendorPrefix||"WebkitOpacity"in bodyStyle&&"webkit",transitions=!!("transition"in bodyStyle||vendorPrefix+"Transition"in bodyStyle),animations=!!("animation"in bodyStyle||vendorPrefix+"Animation"in bodyStyle),!android||transitions&&animations||(transitions=_.isString(pdocument.body.style.webkitTransition),animations=_.isString(pdocument.body.style.webkitAnimation))}const isChromeExtension=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id,shouldWrapNativeHistory=_.memoize(function shouldWrapNativeHistory(){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=!(android<4);return!(!e||t||!n||!i||boxee||isExtensionAgent())});function shouldWrapHashChange(){var e="onhashchange"in window,t=!documentMode||7<documentMode;return!(!e||!t||isExtensionAgent())}function isMobileUserAgent(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(getUA())}function isSafari(e=getUA()){return 0<=e.indexOf("Safari")&&0<=!e.indexOf("Chrome")}const sniffer={supportsHistoryApi:shouldWrapNativeHistory,supportsHashChange:shouldWrapHashChange,hasEvent(e){var t;return("input"!=e||9!=msie)&&(_.isUndefined(eventSupport[e])&&(t=pdocument.createElement("div"),eventSupport[e]="on"+e in t),eventSupport[e])},vendorPrefix:vendorPrefix,transitions:transitions,animations:animations,android:android,msie:msie,msieDocumentMode:documentMode,safari:isSafari(),sri:"integrity"in document.createElement("script"),addEventListener:_.isFunction(window.addEventListener),MutationObserver:isNativeCode(window.MutationObserver),isMinimumIEVersion:isMinimumIEVersion,isMobileUserAgent:_.memoize(isMobileUserAgent),isChromeExtension:isChromeExtension};var q,encodeURIComponent=_.isFunction(window.encodeURIComponent)?window.encodeURIComponent:_.identity,ayepromise=function(){var e={},d=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},c=function(n,i){var r=e.defer(),o=function(n,i){setTimeout$1(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===l?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},l=1;return e.defer=function(){var n,i=0,r=[],o=function(e,t){i=e,n=t,_.each(r,function(e){e.handle(i,n)}),r=null},a=function(e){o(2,e)},t=function(e,t){e=c(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},s=function(e){var t=d();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?s(t):o(l,e)},e=d();return{resolve:e(u),reject:e(a),promise:{then:t,"catch":function(e){return t(null,e)}}}},e}();function qAllObject(e){var n,i=q.defer(),r=_.isArray(e)?[]:{},o=_.size(e);return o?(n=!1,_.each(e,function(e,t){q.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):q.resolve(e)}!isExtensionAgent()&&sniffer.isMinimumIEVersion(11)?q={all:function(e){return _.isArray(e)?Promise$2.all.apply(Promise$2,arguments):qAllObject(e)},reject:function(){return Promise$2.reject.apply(Promise$2,arguments)},resolve:function(){return Promise$2.resolve.apply(Promise$2,arguments)},defer:function(){var n={};return n.promise=new Promise$2(function(e,t){n.resolve=e,n.reject=t}),n}}:((q=ayepromise).all=qAllObject,q.reject=function(e){var t=q.defer();return t.reject(e),t.promise},q.resolve=function(e){var t=q.defer();return t.resolve(e),t.promise}),function(){function i(){return window.XMLHttpRequest||ActiveXObject}function r(e){var t=q.defer(),n=new(i())("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 o(e,t,n){return r({method:"POST",url:e,data:t,headers:n})}_.extend(r,{get:function(e,t){return r({method:"GET",url:e,headers:t})},post:o,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",o(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)?encodeURIComponent(e):encodeURIComponent(e)+"="+encodeURIComponent(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!==i()}})}();var SEND_INTERVAL=12e4,ENCODED_EVENT_MAX_LENGTH=1900;class ConsoleTransport{constructor(e,t){this.pendo=e,this.pluginAPI=t}buildGetUrl(e,t){var n={},i=this.pluginAPI.agent.treatAsAdoptPartner(),r=this.pendo.get_account_id(),i=(i&&r&&"ACCOUNT-UNIQUE-ID"!==r&&(n.acc=this.pluginAPI.util.base64EncodeString(r)),this.pluginAPI.agent.getJwtInfoCopy()),r=(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("?")?"&":"?")+r}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 console 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()},r=this.pluginAPI.agent.treatAsAdoptPartner(),o=this.pendo.get_account_id(),r=(r&&o&&"ACCOUNT-UNIQUE-ID"!==o&&(t.acc=this.pluginAPI.util.base64EncodeString(o)),JSON.stringify(this.pendo._.extend(t,i)));return this.post(e,{body:r,headers:{"Content-Type":"application/json"},keepalive:n})}sendRequest({url:e,jzb:t},n){return t.length<=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,u,d,r,n,i,c;const o="captureConsoleLogs",e=["log","warn","error","info"],l="devlog",p="console";let h="";return{name:"ConsoleCapture",initialize:function(e,t){s=e._;t=(a=t).ConfigReader,t.addOption(o,[t.sources.PENDO_CONFIG_SRC],!1),t=t.get(o);t&&(u=e,d=new ConsoleCaptureBuffer(e,a),i=new ConsoleTransport(e,a),r=new SendQueue(i.sendRequest.bind(i)),n=setInterval(()=>{r.failed()||E()},SEND_INTERVAL),r.start(),a.Events.ready.on(y),a.Events.appUnloaded.on(g),a.Events.appHidden.on(f),a.Events["ptm:paused"].on(m),a.Events["ptm:unpaused"].on(v),a.log.info("Console logs are being captured"))},teardown:function(){E({unload:!0}),n&&clearInterval(n);r&&r.stop();d&&d.clear();a.Events.appHidden.off(f),a.Events.appUnloaded.off(g),a.Events["ptm:paused"].off(m),a.Events["ptm:unpaused"].off(v),a.detachEventInternal(window,"securitypolicyviolation",b),s.each(e,function(e){if(!console[e])return s.noop;e=console[e]._pendoUnwrap;s.isFunction(e)&&e()})},addIntercepts:t,createConsoleEvent:w,captureStackTrace:S,send:E,onAppHidden:f,onAppUnloaded:g,onPtmPaused:m,onPtmUnpaused:v,securityPolicyViolationFn:b,get buffer(){return d},get sendQueue(){return r},get isPtmPaused(){return c}};function f(){E({hidden:!0})}function g(){E({unload:!0})}function m(){c=!0}function v(){if(c=!1,!d.isEmpty()){for(const e of d.events)a.Events.eventCaptured.trigger(e);E()}}function y(){t(),a.attachEventInternal(window,"securitypolicyviolation",b)}function t(){s.each(e,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),w(t,n)}),console[n]._pendoUnwrap=function(){console[n]=e})})}function b(e){var t,n,i,r;e&&"object"==typeof e&&({blockedURI:e,violatedDirective:t,effectiveDirective:n,disposition:i,originalPolicy:r}=e,w([createCspViolationMessage(e,t||n,e="report"===i,r)],e?"warn":"error",{skipStackTrace:!0,skipScrubPII:!0}))}function w(t,n,{skipStackTrace:i=!1,skipScrubPII:r=!1}={}){if(t&&0!==t.length){t=s.compact(s.map(t,e=>{let t;try{t=stringify(e)}catch(n){a.log.error("Error stringifying arg: ",n)}return t})).join(" ");if(t){let e="";i||(e=S("error"===n?4:1));var o,i=generateLogKey(n,t=truncate(t),e=truncate(e));if(i!==h||!d.lastEvent)return o={visitorId:u.get_visitor_id(),accountId:u.get_account_id(),type:l,subType:p,browser_time:a.util.getNow(),url:u.url.get()},o=Object.assign(Object.assign({},o),{devLogLevel:"log"===n?"info":n,devLogMessage:r?t:scrubPII(t),devLogTrace:e,devLogCount:1}),d.push(o)&&(c||a.Events.eventCaptured.trigger(o),n=i,h=n),o;d.lastEvent.devLogCount++}}}function S(e){try{var t=ErrorStackParser.parse(new Error,e);return s.map(t,e=>e.toString()).join("\n")}catch(n){return""}}function E({unload:e=!1,hidden:t=!1}={}){var n,i;d&&!d.isEmpty()&&(u.isSendingEvents()?(n={v:u.VERSION,ct:a.util.getNow()},n=a.transmit.buildBaseDataUrl("devlog",u.apiKey,n),(i=d.pack())&&(e||t?r.drain([{url:n,jzb:i}],e):r.push({url:n,jzb:i}))):d.clear())}}export{ConsoleCapture,Feedback,GuideMarkdown,createReplayPlugin as Replay,TextCapture,VocPortal,loadAgent};