@pendo/agent 2.279.4 → 2.280.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}},Ut="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 U,o,G,j,B,z,H,e={exports:{}};function W(e){e?(z[0]=z[16]=z[1]=z[2]=z[3]=z[4]=z[5]=z[6]=z[7]=z[8]=z[9]=z[10]=z[11]=z[12]=z[13]=z[14]=z[15]=0,this.blocks=z):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,U="object"==typeof window?window:{},t=!U.JS_SHA1_NO_COMMON_JS&&n.exports,o="0123456789abcdef".split(""),G=[-2147483648,8388608,32768,128],j=[24,16,8,0],B=["hex","array","digest","arrayBuffer"],z=[],H=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===U.ArrayBuffer?new Uint8Array(e):e).length||0,a=this.blocks;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),i)for(n=this.start;r<o&&n<64;++r)a[n>>2]|=e[r]<<j[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<j[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<j[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<j[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<j[3&n++],a[n>>2]|=(128|t>>12&63)<<j[3&n++]),a[n>>2]|=(128|t>>6&63)<<j[3&n++]),a[n>>2]|=(128|63&t)<<j[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,64<=n?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},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]|=G[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},Pe=function(){var t=H("hex");t.create=function(){return new W},t.update=function(e){return t.create().update(e)};for(var e=0;e<B.length;++e){var n=B[e];t[n]=H(n)}return t}(),t?n.exports=Pe:U.sha1=Pe;var q=p(e.exports);let V;const K={createScriptURL:e=>e,createHTML:e=>e};function J(e){return V||(V=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",K):K),e.trustedTypesPolicy=V),V}var I,Y="stagingServerHashes",Z={};function X(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(e,t){if(Q(e=e||Z))return!0;if(t=t||window.location,(o=e)&&o.stagingAgentUrl&&o[Y]){o=t.host;for(var n=c.uint8ToBase64(q.create().update(o).digest()),i=0,r=e[Y].length;i<r;++i)if(e[Y][i]===n)return!0}var o;if((o=e)&&o.stagingAgentUrl&&o.stagingServers)for(var a=0,s=e.stagingServers.length;a<s;++a){var u=e.stagingServers[a];if((u="string"==typeof u?new RegExp("^"+u+"$"):u)instanceof RegExp&&u.test(t.host))return!0}return!1}var re=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function oe(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function ae(e){if(!e._q)for(var t=re,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){oe(t,e,arguments)}}(t[n],e)}function se(e,t,n){if(!ee(i=e)&&!Q(i)&&ie(i)){i=ne(e,!0,n);if(i)return ae(t),de(i,t),!0}var i;return!1}function ue(e,t,n){if(r=n,!ee(i=e)&&!i.unminified&&r){i=ne(e,!1,n);if(i)return ae(t),de(i,t),!0}var i,r;return!1}function de(e,t){var n=document.createElement("script"),t=(n["async"]=!0,n.src=J(t).createScriptURL(e),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(n,t):(document.head||document.body).appendChild(n)}function ce(e){Z=e}function le(){return void 0===u?{}:u}function pe(e){return Z[e]}he(window.setTimeout,window);function he(e,t){return"function"==typeof e.bind?e.bind(t):e}var fe,Dt=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return he(e[t],e)}(window),E=p(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Ut&&Ut.global===Ut&&Ut||Function("return this")()||{},i=Array.prototype,$=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,D=i.push,u=i.slice,l=$.toString,U=$.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),G=Array.isArray,j=Object.keys,B=Object.create,z=t&&ArrayBuffer.isView,H=isNaN,W=isFinite,q=!{toString:null}.propertyIsEnumerable("toString"),V=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],K=Math.pow(2,53)-1;function c(r,o){return o=null==o?r.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),n=0;n<e;n++)t[n]=arguments[n+o];switch(o){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}for(var i=Array(o+1),n=0;n<o;n++)i[n]=arguments[n];return i[o]=t,r.apply(this,i)}}function o(e){var t=typeof e;return"function"==t||"object"==t&&!!e}function J(e){return void 0===e}function Y(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var Z=r("String"),X=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=G||r("Array");function g(e,t){return null!=e&&U.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return X(e)&&H(e)}function ue(e){return function(){return e}}function de(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=K}}function ce(t){return function(e){return null==e?void 0:e[t]}}var m=ce("byteLength"),le=de(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return z?z(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=V.length,i=e.constructor,r=p(i)&&i.prototype||$,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=V[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(j)return j(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return q&&fe(e,n),n}function ge(e,t){var n=y(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function c(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=l.call(e);if(r!==l.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return F.valueOf.call(e)===F.valueOf.call(t);case"[object ArrayBuffer]":case ve:return c(me(e),me(t),n,i)}r="[object Array]"===r;if(!r&&he(e)){var o=m(e);if(o!==m(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];i=i||[];var s=n.length;for(;s--;)if(n[s]===e)return i[s]===t;n.push(e);i.push(t);if(r){if((s=e.length)!==t.length)return!1;for(;s--;)if(!ye(e[s],t[s],n,i))return!1}else{var 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 q&&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"],G=e.concat(we,n),Se=e.concat(n),t=["add"].concat(e,we,"has"),n=a?be(G):r("Map"),e=a?be(Se):r("WeakMap"),G=a?be(t):r("Set"),a=r("WeakSet");function w(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ie(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function _e(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function Ee(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=Ee(d),s=Ee(y),Te=Ee(d,!0);function xe(e){var t;return o(e)?B?B(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 Oe(e,t,n){e=Ae(e,S(t));return J(e)?n:e}function Re(e){return e}function I(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return Ae(e,t)}}function _(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?Re:p(e)?_(e,t,n):(o(e)&&!f(e)?I:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function E(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Pe(){}function $e(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 Fe(t){var n=function(e){return t[e]},e="(?:"+y(t).join("|")+")",i=RegExp(e),r=RegExp(e,"g");return function(e){return i.test(e=null==e?"":""+e)?e.replace(r,n):e}}var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},De=Fe(t),t=Fe(Ie(t)),Ue=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Ge=/(.)^/,je={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Be=/\\|'|\r|\n|\u2028|\u2029/g;function ze(e){return"\\"+je[e]}var He=/^\s*(\w|\$)+\s*$/;var We=0;function qe(e,t,n,i,r){return i instanceof t?(i=xe(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var T=c(function(r,o){var a=T.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),i=0;i<t;i++)n[i]=o[i]===a?arguments[e++]:o[i];for(;e<arguments.length;)n.push(arguments[e++]);return qe(r,s,this,this,n)};return s}),Ve=(T.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return qe(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),x=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(x(s)&&(f(s)||ae(s)))if(1<t)k(s,t-1,n,i),r=i.length;else for(var u=0,d=s.length;u<d;)i[r++]=s[u++];else n||(i[r++]=s)}return i}var Ke=c(function(e,t){var n=(t=k(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Ve(e[i],e)}return e});var Je=c(function(e,t,n){return Dt(function(){return e.apply(null,n)},t)}),Ye=T(Je,b,1);function Ze(e){return function(){return!e.apply(this,arguments)}}function Xe(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=T(Xe,2);function et(e,t,n){t=E(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=E(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=E(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=(x(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function A(e,t,n){if(t=_(t,n),x(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function O(e,t,n){t=E(t,n);for(var i=!x(e)&&y(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function dt(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=_(t,i,4),s=n,u=!x(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 R(e,i,t){var r=[];return i=E(i,t),A(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=E(t,n);for(var i=!x(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=E(t,n);for(var i=!x(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function N(e,t,n,i){return x(e)||(e=w(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=c(function(e,n,i){var r,o;return p(n)?o=n:(n=S(n),r=n.slice(0,-1),n=n[n.length-1]),O(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 O(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=x(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&o<n&&(o=n);else i=E(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):Z(e)?e.match(vt):x(e)?O(e,Re):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=x(e)?e:w(e))[$e(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=$e(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=E(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}),It=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),_t=M(function(e,t,n){e[n?0:1].push(t)},!0);function Et(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,t[1])),t=d(e)):(i=Et,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}),Tt=c(function(e,n){var t,i=n[0];return p(i)?(i=Ze(i),1<n.length&&(t=n[1])):(n=O(k(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Ct(e,i,t)});function xt(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]:xt(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),R(e,function(e){return!N(t,e)})}),Ot=c(function(e,t){return At(e,t)});function Rt(e,t,n,i){Y(t)||(i=n,n=t,t=!1),null!=n&&(n=E(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 Rt(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 $t(n){return A(_e(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return D.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=$t({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:J,isBoolean:Y,isElement:function(e){return!(!e||1!==e.nodeType)},isString:Z,isNumber:X,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&W(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||Z(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:G,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:Ie,functions:_e,methods:_e,extend:Ce,extendOwn:s,assign:s,defaults:Te,create:function(e,t){return e=xe(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:Oe,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=E(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:Re,constant:ue,noop:Pe,toPath:ke,property:Ne,propertyOf:function(t){return null==t?Pe:function(e){return Oe(t,e)}},matcher:I,matches:I,times:function(e,t,n){var i=Array(Math.max(0,e));t=_(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:$e,now:C,escape:De,unescape:t,templateSettings:Ue,template:function(o,e,t){e=Te({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||Ge).source,(e.interpolate||Ge).source,(e.evaluate||Ge).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace(Be,ze),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(!He.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{throw new Error("Function constructor not supported")}catch(n){throw n.source=s,n}return(e=function(e){return(void 0).call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=S(t)).length;if(!i)return p(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++We+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:T,bind:Ve,bindAll:Ke,memoize:function(i,r){var o=function(e){var t=o.cache,n=""+(r?r.apply(this,arguments):e);return g(t,n)||(t[n]=i.apply(this,arguments)),t[n]};return o.cache={},o},delay:Je,defer:Ye,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=Dt(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=Dt(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=Dt(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 T(t,e)},negate:Ze,compose:function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:Xe,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:ut,detect:ut,findWhere:function(e,t){return ut(e,I(t))},each:A,forEach:A,map:O,collect:O,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:R,select:R,reject:function(e,t,n){return R(e,Ze(E(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 R(e,I(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=x(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&n<o&&(o=n);else i=E(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=E(i,t),gt(O(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:wt,indexBy:St,countBy:It,partition:_t,toArray:yt,size:function(e){return null==e?0:(x(e)?e:y(e)).length},pick:Ct,omit:Tt,first:kt,head:kt,take:kt,initial:xt,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return R(e,Boolean)},flatten:function(e,t){return k(e,t,!1)},without:Ot,uniq:Rt,unique:Rt,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:$t,"default":b}),Ft=P.toPath;return P.mixin({toPath:function(e){return P.isString(e)?e.split("."):Ft(e)}}),P._=P}());function ge(e){return!(null==e)}function me(e){return E.isFunction(e)||E.isRegExp(e)?e:E.isArray(e)?E.map(e,me):E.isObject(e)?E.reduce(e,function(e,t,n){return e[n]=me(t),e},{}):e}var h=function(){var i=E.all,r=E.each,o=E.filter,a=E.first,s=E.find,n=E.map,u=E.pluck,d="snippet",c="pendoconfig",l="global",p="default";const h={};function e(e,t=[c],n,i){e&&!h[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),h[e]=n)}e("additionalApiKeys",[c,d]),e("allowedOriginServers"),e("allowMixedApiKeyFrames",[d,c],!0),e("annotateUrl",[d]),e("apiKey",[c,d]),e("assetHost",[d,c]),e("autoFrameInstall",[d,c],!1),e("blockAgentMetadata",[c],!1),e("contentHost",[d,c]),e("cookieDomain",[d,c]),e("dataHost",[d,c]),e("disableAutoInitialize"),e("disableCookies",[d,c]),e("disablePendo",[d,c],!1),e("disablePersistence",[d,c]),e("enableSignedMetadata",[c],!1),e("frameIdentitySync",[d,c],!1),e("frameIdentityTopDownOnly",[d,c],!0),e("forceAnonymous",[d,c],!1),e("identityStorageLifetime",[d,c]),e("identityStorageSuffix",[d,c]),e("ignoreHashRouting",[d,c]),e("initializeImmediately",[d,c],!1),e("installType"),e("localStorageOnly",[d,c]),e("location.pushState",[d,c],!0),e("maxCookieTTLDays",[d,c],Infinity),e("observeShadowRoots",[d,c],!1),e("pendoCore",[c],!0),e("pendoGlobalKey",[c]),e("preferBroadcastChannel",[d,c],!1),e("preferMutationObserver",[d,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[d,c],!1),e("promotedAgentMetadataConfigurations",[c]),e("queryStringWhitelist",[d]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[d]),e("selfHosted"),e("selfHostedAgentUrl",[d,c]),e("sendEventsWithPostOnly",[d,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[d,c],[]),e("analytics.excludeEvents",[d,c],[]),e("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("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("forceParentDesigner",[d]),e("enableAllEmbeddedGuideEvents",[c],!1),e("formValidation",[c],!1);var f={};function g(e){return h[e]||{name:e}}function m(e,t){if(t)return t=t(),ge(e=E.get(t.lookup,(t=e,E.get(t,"key")||E.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||E.get(e,"supportedSources",[d,c,l]),o(n(t,E.partial(v,e)),function(e){return ge(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||E.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&ge(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function w(e,t,n){this.name=e,this.value=t,this.source=n}function S(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(u(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[d]=function(){return{lookup:fe||window.pendo_options,name:d}},f[c]=function(){return{lookup:Z,name:c}},f[l]=function(){return{lookup:I,name:l}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get:function(e,t){return b(e,t).value},getLocalConfig:function(e,t){return arguments.length?b(e,t,[d]).value:me(fe)},getHostedConfig:function(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig:function(e){fe=e},options:()=>u(h,"name"),sources:{SNIPPET_SRC:d,PENDO_CONFIG_SRC:c,GLOBAL_SRC:l,DEFAULT_SRC:p},validate:function(t){t.groupCollapsed("Validate Config options"),r(S(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}(),ve="prod",ye="extension",be="native";function we(){return h.get("installType")||be}function Se(e){var t;return e===ve?"pendo-io-static":"prod-jp"===e?"pendo-jp-prod-static":"pendo-"+((t=/^prod-(.+)$/.exec(e))&&1<t.length?t[1]:e)+"-static"}var Ie,_e=function(e,t){return e=e||10,(t=!isNaN(ke)&&(!t||ke<t))&&Ie<e};function Ee(e){return parseInt(e,10)}var Ce=function(e){return E.isString(e)?e.toLowerCase():e};function Te(){return(window.navigator||{}).userAgent}t=Te(),n=Ee((/msie (\d+)/.exec(Ce(t))||[])[1]),Ie=n=isNaN(n)?Ee((/trident\/.*; rv:(\d+)/.exec(Ce(t))||[])[1]):n;var xe,ke=function(e,t){e=Ee((/trident\/(\d+)/.exec(Ce(e))||[])[1]);return e=isNaN(e)&&7==t?3:e}(Te(),Ie),Ae={},Oe=Ee((/android (\d+)/.exec(Ce(Te()))||[])[1]),Re=/Boxee/i.test(Te()),Ne=window.document||{},Me=Ne.documentMode,Le=/^(Moz|webkit|O|ms)(?=[A-Z])/,Pe=Ne.body&&Ne.body.style,e=!1,t=!1;if(Pe){for(var $e in Pe)if($e=Le.exec($e)){xe=(xe=$e[0]).substr(0,1).toUpperCase()+xe.substr(1);break}xe=xe||"WebkitOpacity"in Pe&&"webkit",e=!!("transition"in Pe||xe+"Transition"in Pe),t=!!("animation"in Pe||xe+"Animation"in Pe),!Oe||e&&t||(e=E.isString(Ne.body.style.webkitTransition),t=E.isString(Ne.body.style.webkitAnimation))}var Fe={supportsHistoryApi:E.memoize(function(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&E.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&E.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&E.get(n,"pushState.writable",!0)&&E.get(n,"replaceState.writable",!0),i=!(Oe<4),r=we()===ye;return!(!e||t||!n||!i||Re||r)}),supportsHashChange:function(){var e="onhashchange"in window,t=!Me||7<Me,n=we()===ye;return!(!e||!t||n)},hasEvent:function(e){var t;return("input"!=e||9!=Ie)&&(E.isUndefined(Ae[e])&&(t=Ne.createElement("div"),Ae[e]="on"+e in t),Ae[e])},vendorPrefix:xe,transitions:e,animations:t,android:Oe,msie:Ie,msieDocumentMode:Me,safari:/apple/i.test(navigator.vendor),sri:"integrity"in document.createElement("script"),addEventListener:E.isFunction(window.addEventListener),MutationObserver:/native/.test(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:E.memoize(function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Te())})},De=function(){return!isNaN(Ie)&&11!=Ie&&"CSS1Compat"!==document.compatMode},Ue=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,Ie<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+I.TOOLTIP_ARROW_SIZE),e.arrow.top=i-I.TOOLTIP_ARROW_SIZE,10==Ie?e.arrow.top--:Ie<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=10+I.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*I.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-I.TOOLTIP_ARROW_SIZE),e.arrow.border.top=e.arrow.top+n,e.arrow.border.left=e.arrow.left):("left"==e.arrow.hbias?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left-1):"right"==e.arrow.hbias&&(e.left=Math.max(0,t.left-r-I.TOOLTIP_ARROW_SIZE),e.arrow.left=r-I.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left+1),e.top=t.top+t.height/2-i/2,e.arrow.top=i/2-I.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e},Ge="",je="",Be="",ze="",n="",He="2.279.4_",Pe="2.279.4",We="xhr",qe=function(){return De()?He+"+quirksmode":He};function Ve(){return(pe("installType")||le().installType)===ye}function Ke(){return-1!==Ge.indexOf("prod")}var Je=/^\s+|\s+$/g;function Ye(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||57344<=i?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}var Ze=(Ze=String.prototype.trim)||function(){return this.replace(Je,"")},e={exports:{}};!function(){var X=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===X?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&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,$,n=this.input;switch(this.d){case 0:for(t=0,$=n.length;t<$;){var F,D,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===$,o=X,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),F=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&F,a[s++]=F>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,D=i.length;o<D;++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,U=c.length;l<U;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,G,b,w,S,j,I=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],z=Array(19),_=ne;for(I.b(1,1,Q),I.b(_,2,Q),p=re(this,n),_=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 E,C,T,x,k,H=h,W=f,A=new(ee?Uint32Array:Array)(H+W),O=new(ee?Uint32Array:Array)(316),R=new(ee?Uint8Array:Array)(19),N=E=0;N<H;N++)A[E++]=m[N];for(N=0;N<W;N++)A[E++]=v[N];if(!ee)for(N=0,T=R.length;N<T;++N)R[N]=0;for(N=x=0,T=A.length;N<T;N+=E){for(E=1;N+E<T&&A[N+E]===A[N];++E);if(C=E,0===A[N])if(C<3)for(;0<C--;)R[O[x++]=0]++;else for(;0<C;)(k=C-3<(k=C<138?C:138)&&k<C?C-3:k)<=10?(O[x++]=17,O[x++]=k-3,R[17]++):(O[x++]=18,O[x++]=k-11,R[18]++),C-=k;else if(O[x++]=A[N],R[A[N]]++,--C<3)for(;0<C--;)O[x++]=A[N],R[A[N]]++;else for(;0<C;)C-3<(k=C<6?C:6)&&k<C&&(k=C-3),O[x++]=16,O[x++]=k-3,R[16]++,C-=k}for(e=ee?O.subarray(0,x):O.slice(0,x),y=oe(R,7),S=0;S<19;S++)z[S]=y[B[S]];for(g=19;4<g&&0===z[g-1];g--);for(G=ae(y),I.b(h-257,5,Q),I.b(f-1,5,Q),I.b(g-4,4,Q),S=0;S<g;S++)I.b(z[S],3,Q);for(S=0,j=e.length;S<j;S++)if(b=e[S],I.b(G[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}I.b(e[S],w,Q)}for(var M,q,_=[_,m],L=[L,v],V=_[0],K=_[1],J=L[0],Y=L[1],P=0,Z=p.length;P<Z;++P)if(M=p[P],I.b(V[M],K[M],Q),256<M)I.b(p[++P],p[++P],Q),q=p[++P],I.b(J[q],Y[q],Q),I.b(p[++P],p[++P],Q);else if(256===M)break;this.a=I.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,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]===X&&(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,I=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,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(I);else for(m in g=[],v=0,I)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),I[m])}.call(e.exports);var Xe={Deflate:p(e.exports).Zlib.Deflate},Qe="base64url";function et(e,t){t=t||Qe;e=Ye("string"==typeof e?e:JSON.stringify(e)),e=new Xe.Deflate(e).compress();return t===Qe?c.uint8ToBase64(e):e}t={exports:{}};!function(){var o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||void 0===t?r=r[n]||(r[n]={}):r[n]=t}var a={c:function(e,t,n){return a.update(e,0,t,n)},update:function(e,t,n,i){var r=a.a,o="number"==typeof n?n:n=0,i="number"==typeof i?i:e.length;for(t^=4294967295,o=7&i;o--;++n)t=t>>>8^r[255&(t^e[n])];for(o=i>>3;o--;n+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^r[255&(t^e[n])])>>>8^r[255&(t^e[n+1])])>>>8^r[255&(t^e[n+2])])>>>8^r[255&(t^e[n+3])])>>>8^r[255&(t^e[n+4])])>>>8^r[255&(t^e[n+5])])>>>8^r[255&(t^e[n+6])])>>>8^r[255&(t^e[n+7])];return(4294967295^t)>>>0},d:function(e,t){return(a.a[255&(e^t)]^e>>>8)>>>0},b:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]};a.a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?new Uint32Array(a.b):a.b,e("Zlib.CRC32",a),e("Zlib.CRC32.calc",a.c),e("Zlib.CRC32.update",a.update)}.call(t.exports);var tt={CRC32:p(t.exports).Zlib.CRC32},nt=function(e,n){var i;return 200<=(n=n||0)?e:E.isArray(e)?E.map(e,function(e){return nt(e,n+1)}):!E.isObject(e)||E.isDate(e)||E.isRegExp(e)||E.isElement(e)?E.isString(e)?E.escape(e):e:(i={},E.each(e,function(e,t){i[t]=nt(e,n+1)}),i)},it=function(e){e=Ye(e);return c.uint8ToBase64(e)},rt=function(e){if(void 0!==e)return e=Ye(e=E.isString(e)?e:JSON.stringify(e)),tt.CRC32.calc(e,0,e.length)};function ot(e){return e[Math.floor(Math.random()*e.length)]}function at(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=ot(i);return n}var st=function(e,t,n){return!(!ge(e)||!ge(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function v(){return(new Date).getTime()}function ut(){return"undefined"!=typeof $A&&E.isFunction($A.get)&&E.isString($A.get("$Browser.formFactor"))}function dt(e,t=window){var n="__symbol__";if("undefined"!=typeof Zone&&E.isFunction(Zone[n])){n=t[Zone[n](e)];if(E.isFunction(n))return n}return t[e]}e=window;var ct=E.isFunction(e.isFinite)?e.isFinite:e.Number&&E.isFunction(e.Number.isFinite)?e.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function lt(e){return"number"==typeof e&&ct(e)&&Math.floor(e)===e}function pt(e,t,n,i){(t=t||{}).maxRetries=lt(t.maxRetries)?t.maxRetries:10,t.delay=lt(t.delay)?t.delay:50,t.exponentialBackoff=t.exponentialBackoff||!1;var r=function(e){return e&&"[object Function]"==={}.toString.call(e)},o=r(n)?n:function(){},a=r(i)?i:function(){},n=e();n?o(n):0<t.maxRetries?Dt(function(){t.maxRetries=--t.maxRetries,t.delay=t.exponentialBackoff?2*t.delay:t.delay,pt(e,t,o,a)},t.delay):(a||function(){})()}var ht=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function ft(e){return E.isObject(e)&&E.isFunction(e.then)}var gt,mt=E.isFunction(window.decodeURIComponent)?window.decodeURIComponent:E.identity,vt=E.isFunction(window.encodeURIComponent)?window.encodeURIComponent:E.identity;class yt{constructor(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}toString(){let e=this.message;return this.error&&e!==this.error.message&&(e=e+":"+this.error.message),this.attributes&&(e+=": "+E.map(this.attributes,(e,t)=>t+"="+e)),e}hashCode(){return this.toString()}}(t=gt=gt||{}).Debug="debug",t.Info="info",t.Warn="warn",t.Error="error",t.Critical="critical";class bt extends class{constructor(){this.listeners={}}addEventListener(e,t){let n=this.listeners[e];n||(n=[],this.listeners[e]=n),E.findIndex(n,e=>t===e)<0&&n.push(t)}removeEventListener(e,t){var n,i=this.listeners[e];i&&0<=(n=E.findIndex(i,e=>t===e))&&(i.splice(n,1),i.length||delete this.listeners[e])}dispatchEvent(t){var e=this.listeners[t.type];e&&E.each(e,e=>{e(t)})}}{write(e,t,n){this.dispatchEvent(new yt(t,e,n))}writeError(e,t,n){let i,r;E.isString(e)?(i=e,r={message:i}):(r=e,i=r.message),n&&n.error&&(r=n.error,delete n.error);e=new yt(t,i,n);e.error=r,this.dispatchEvent(e)}debug(e,t){this.write(e,gt.Debug,t)}info(e,t){this.write(e,gt.Info,t)}warn(e,t){this.writeError(e,gt.Warn,t)}error(e,t){this.writeError(e,gt.Error,t)}critical(e,t){this.writeError(e,gt.Critical,t)}}const C=new bt;function wt(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const St=function(){var e=h.get("storage.allowKeys")||"*";return E.isArray(e)?E.indexBy(e):e};function It(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function _t(n){E.forEach(E.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function Et(e){var t=E.noop,t={getItem:()=>null,setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:It(n,n.getItem,null),setItem:It(n,n.setItem),removeItem:It(n,n.removeItem),clearPendo:E.partial(_t,n)}:t}catch(i){return t}}var Ct,Tt=Et(function(){return window.localStorage}),xt=Et(function(){return window.sessionStorage}),kt={},At=!0,Ot=function(){return h.get("localStorageOnly")},Rt=function(){return!!h.get("disableCookies")};function Nt(e){At=e}var Mt=function(e){var t=Rt()||Ot()?kt[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?mt(e[2]):null},Lt=function(e,t,n,i){var r,o;!At||h.get("preventCookieRefresh")&&Mt(e)===t||(o=Bt(n),(r=new Date).setTime(r.getTime()+o),o=e+"="+vt(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict",Ct&&(o+=";domain="+Ct),Rt()||Ot()?kt[e]=o:document.cookie=o)};function Pt(e){Ct?Lt(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var $t=function(e,t){return`_pendo_${e}.`+(t||I.apiKey)},Ft=function(e,t){return Mt($t(e,t))};const Gt=864e5,jt=100*Gt,Bt=(e=jt)=>{var t=h.get("maxCookieTTLDays"),t=t<Infinity?t*Gt:Infinity;return Math.min(e,t)};var zt=function(e,t,n,i,r){n=n||jt,Lt($t(e,r),t,n,i)};class Ht{constructor(){this.keys={}}addLocal(e){this._add(e,"local")}addSession(e){this._add(e,"session")}hasLocal(e){return this._has(e,"local")}hasSession(e){return this._has(e,"session")}_add(e,t){this.keys[e]||(this.keys[e]=t)}_has(e,t){return this.keys[e]===t}}var Wt,qt,Vt,Kt,y,f=function(){const o=new Ht;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=St())||n[t])return o[r](e)||C.warn(`storage key ${e} is not registered`),i.apply(this,arguments);C.debug(`writing storage key ${e} is not allowed`)}}function u(){return!Rt()&&!Ct&&d("localStorage")}var d=E.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}});function c(e){e.cache&&(e.cache={})}function r(e,t,n){t=t?e:$t(e,n);if(u())return localStorage.removeItem(t);Pt(t)}const t=E.extend({},xt),n=(t.setItem=e(t.setItem,"hasSession"),E.extend({},Tt));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){var i;return u()?(i=t?e:$t(e,n),null===(i=function(e){if(null===e)return null;try{var t=JSON.parse(e);return t.ttl?t.ttl<(new Date).getTime()?null:String(t.value||t):e}catch(n){return e}}(localStorage.getItem(i)))&&r(e,t,n),i):t?Mt(e):Ft(e,n)},write:e(function(e,t,n,i,r,o){if(c(d),u())try{var a=i?e:$t(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+Bt(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void c(d)}catch(s){}if(!i)return zt(e,t,n,r,o);Lt(e,t,n,r)},"hasLocal"),clear:r,registry:o,getLocal:()=>n,getSession:()=>t}}(),Jt=(window.Promise,e=function(){var t=Dt;function d(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void u(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!d(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function u(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){u(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)u(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!d(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a},"function"==typeof(t=window.Promise)&&/native/.test(t)?t:e()),t=(qt=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},Vt=function(n,i){var r=Wt.defer(),o=function(n,i){Dt(function(){var e;try{e=n(i)}catch(t){return void r.reject(t)}e===r.promise?r.reject(new TypeError("Cannot resolve promise with itself")):r.resolve(e)},1)};return{promise:r.promise,handle:function(e,t){e===Kt?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},Kt=1,(Wt={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,E.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(Kt,e)},a=function(e){t(2,e)},s=function(e,t){e=Vt(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},u=function(e){var t=qt();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=qt();return{resolve:e(d),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},Wt);function Yt(e){var n,i=y.defer(),r=E.isArray(e)?[]:{},o=E.size(e);return o?(n=!1,E.each(e,function(e,t){y.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):y.resolve(e)}!Ve()&&Fe.isMinimumIEVersion(11)?y={all:function(e){return E.isArray(e)?Jt.all.apply(Jt,arguments):Yt(e)},reject:function(){return Jt.reject.apply(Jt,arguments)},resolve:function(){return Jt.resolve.apply(Jt,arguments)},defer:function(){var n={};return n.promise=new Jt(function(e,t){n.resolve=e,n.reject=t}),n}}:((y=t).all=Yt,y.reject=function(e){var t=y.defer();return t.reject(e),t.promise},y.resolve=function(e){var t=y.defer();return t.resolve(e),t.promise});const Zt=f.getSession(),Xt="pendo_tabId",Qt="pendo_parentTabId";en=window,e=E.partial,tn=E.extend,nn=E.omit,rn={data:{},getItem:function(e){return rn.data[e]},setItem:function(e,t){rn.data[e]=t},removeItem:function(e){rn.data[e]=null,delete rn.data[e]}},on=e(cn,Xt,ln),an=e(cn,"pendo_frameId",rn);var en,tn,nn,rn,on,an,sn={addTracerIds:function(e){return nn(tn(e,{parentTabId:un(Qt,ln),tabId:on(),frameId:an()}),function(e){return e===undefined})},setParentTabId:function(e){dn(Qt,e,ln)},newTabId:function(){var e=at(16);return dn(Xt,e,ln),e},getTabId:on,getFrameId:an,tabIdChanged:function(t){var e;if(Fe.addEventListener)return en.addEventListener("storage",e=function(e){e.key===Xt&&(rn.removeItem(Xt),t())}),function(){en.removeEventListener("storage",e)}}};function un(e,t){return(E.isFunction(t)?t():t).getItem(e)}function dn(e,t,n){(E.isFunction(n)?n():n).setItem(e,t)}function cn(e,t){var n=un(e,t);return n||dn(e,n=at(16),t),n}function ln(){return n=rn,i=Zt,{getItem(e){var t=n.getItem(e);return t===undefined&&(t=i.getItem(e),n.setItem(e,t)),t},setItem(e,t){n.setItem(e,t),i.setItem(e,t)},removeItem(e){n.removeItem(e),i.removeItem(e)}};var n,i}function pn(){var i=this._handlers={};return this.addEventListener=function(){this.on.apply(this,arguments)},this.removeEventListener=function(){this.off.apply(this,arguments)},this.on=function(e,t){var n;return(E.isString(e)||E.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),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 E.isFunction(t)?(n=E.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=E.toArray(arguments).slice(1);return E.map(t,function(e){return e.apply(I,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return E.map(e,function(e){if(!t.cancel)return e.apply(I,[t])})},this.triggerAsync=function(){var e=E.map(this.trigger.apply(this,arguments),function(e){return!1===e?y.reject():e});return y.all(e)},this}pn.clear=function(t){t&&E.each(E.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};Ti={DEBUG:t="debug",FRAMES:e="frames",LIFECYCLE:r="lifecycle",RUNTIME:Mi="runtime"},hn=[new i("ready",[t,r]),new i("deliverablesLoaded",[t,r]),new i("guidesFailed",[t,r]),new i("guidesLoaded",[t,r]),new i("guideListChanged",[t,r]),new i("guideSeen",[t,r]),new i("guideNotSeen",[t,r]),new i("guideAdvanced",[t,r]),new i("guideDismissed",[t,r]),new i("guideSnoozed",[t,r]),new i("beforeGuideShow",[r]),new i("beforeMount",[Mi]),new i("beforeAdvance",[Mi]),new i("beforePrevious",[Mi]),new i("beforeSnooze",[Mi]),new i("beforeDismiss",[Mi]),new i("beforeUnmount",[Mi]),new i("unmounted",[Mi]),new i("beforeUpdate",[Mi]),new i("updated",[Mi]),new i("guideSnoozeCancelled",[t,r]),new i("guideTimeout",[t,r]),new i("guideLoopStopped",[t,r]),new i("guideUpdateComplete",[r]),new i("designerLaunched",[t,r]),new i("debuggerLaunched",[t,r]),new i("stepEligibility",[t]),new i("identify",[t,r]),new i("metadata",[t,r]),new i("appUnloaded",[t,r]),new i("appHidden",[t,r]),new i("startPreview",[t]),new i("resourceFetchFail",[t]),new i("contentVerificationFail",[t]),new i("contentValidationFail",[t]),new i("renderFail",[t]),new i("appUsage",[r]),new i("eventCaptured",[t]),new i("error",[t,r]),new i("onClickCaptured",[t]),new i("urlChanged",[r]),new i("leaderChanged",[r,e]),new i("transmit:locked",[r]),new i("transmit:unlocked",[r]),new i("sessionChanged",[r]),new i("childFrameJoined",[e]),new i("tabIdChanged:self",[t,r])],fn=pn.call({}),gn={debug:function(){return sn.addTracerIds(vn.apply(null,arguments))},lifecycle:vn,runtime:vn,frames:vn},mn=fn.trigger,fn.trigger=yn,E.each(E.values(Ti),function(e){fn[e]={on:E.partial(fn.on,e),one:E.partial(fn.one,e),off:E.partial(fn.off,e)}}),E.each(hn,function(e){e=e.name,fn[e]={on:E.partial(fn.on,e),one:E.partial(fn.one,e),off:E.partial(fn.off,e),trigger:E.partial(yn,e)}});var hn,fn,gn,mn,m=fn;function i(e,t){this.name=e,this.groups=t||[]}function vn(e,t){e={type:e,ts:v()};return ge(t)&&E.isObject(t)&&(e.data=t),e}function yn(t){var e=E.findWhere(hn,{name:t}),n=E.toArray(arguments).slice(1),i={};return E.each(e.groups,function(e){i.cancel||(i=gn[e](t,n),mn.apply(fn,[e].concat(i)))}),i.cancel||(i=vn(t,n),mn.apply(fn,[t].concat(i))),i}function bn(e){var i=[],r=[],o={},a={},s={state:{},commit:function(t,n){var e=o[t];if(!e)throw new Error("mutation "+t+" not found");e(n),E.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),E.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:E.partial(t,i),subscribeAction:E.partial(t,r),registerModule:function h(n,e){E.isString(n)&&(n=[n]);var t=d(s.state,e,n);E.extend(s.getters,p(e,t,s,n));E.extend(o,c(e,t,n));E.extend(a,l(e,t,s,n));E.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return E.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):E.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 E.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),E.extend(i,me(t.state||{}))}function c(e,n,i){var r={};return E.each(e.mutations,function(e,t){r[u(i,t)]=E.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 E.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return E.each(e.actions,function(e,t){n[u(r,t)]=E.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return E.each(e.getters,function(e,t){a[t]=o[u(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var g=bn(),wn=(g.subscribe(function(e,t){}),"_PENDO_T_"),Sn=11;const In="visitorId",_n="oldVisitorId",En="accountId";var Cn=function(e=""){return e+at(Sn)};var Tn=function(e){return ge(e)&&""!==e&&e!==Nn&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===Ze.call(e).length)},xn=function(e){return!(!e||"number"==typeof e)&&e.substring(0,wn.length)===wn},kn=function(){return!h.get("disablePersistence")},An=function(e){e=e||[In,En,_n];const t=h.get("identityStorageSuffix")||I.apiKey;E.each(e,function(e){Pt($t(e,t)),f.clear(e,!1,t)})},On="VISITOR-UNIQUE-ID",Rn=function(e){return On===e},Nn="::",Mn=function(e){return new RegExp(Nn).test(e)};function Ln(e){return e.old_visitor_id!==e.visitor_id}var Pn,$n=function(e,t){var n,i={old_visitor_id:b(),old_account_id:Gn()};Tn(e)?(Tn(n=e)?Dn(""+n):C.info("Invalid visitor id "+n),n=t,E.isUndefined(n)?C.info("No account id provided"):Tn(n)?(I.accountId=""+n,kn()&&jn(En,I.accountId)):(delete I.accountId,delete(t=h.getLocalConfig()).account,h.setLocalConfig(t),g.commit("metadata/clearAccount"),kn()&&f.clear(En),C.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=b({generate:!0}),i.account_id=Gn(),!Ln(t=i)&&t.old_account_id===t.account_id||(Ln(i)&&(n=i.old_visitor_id)&&(Pn=n,jn(_n,Pn)),m.identify.trigger(i))):C.info("Invalid visitor id "+e)};function Fn(){return Cn(wn)}function Dn(e){I.visitorId!==e&&(kn()&&jn(In,e),I.visitorId=e)}function b(e={}){var t=function(){if(Tn(I.visitorId))return I.visitorId;var e=h.get("forceAnonymous");if(kn()){var t=Bn(In);if(Tn(t)&&(!e||xn(t)))return t}return undefined}();return Dn(t=!t&&e.generate?Fn():t),t}function Un(){return b()||Fn()}var Gn=function(){var e=h.get("forceAnonymous");return Tn(I.accountId)||!kn()||e||(e=Bn(En),I.accountId=e),I.accountId};function jn(e,t){var n=h.get("identityStorageLifetime")||jt,i=h.get("identityStorageSuffix")||I.apiKey;f.write(e,t,n,!1,!0,i)}function Bn(e){var t=h.get("identityStorageSuffix"),n=t||I.apiKey,n=f.read(e,!1,n)||f.read(e,!1,I.apiKey);return t&&f.clear(e,!1,I.apiKey),n}function zn(){var e={old_visitor_id:b({generate:!1}),old_account_id:Gn(),wasCleared:!0};An(),delete I.visitorId,delete I.accountId,b({generate:!0}),E.extend(e,{visitor_id:b(),account_id:Gn()}),m.identify.trigger(e)}function Hn(e){e=e.data[0];return E.get(e,"wasCleared")}var Wn=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||C.critical(e)}}};Mi=function(n){return function qn(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 qn="function"==typeof(e=window.URL)&&/native/.test(e)?e:Mi(document);function Vn(e){if((t=e)&&E.isFunction(t.composedPath))try{return e.composedPath()}catch(n){return e.path}var t;return null}function Kn(e){return e.shadowRoot}function Jn(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function Yn(e,t){return Jn(e,t)?e.host:e.parentNode}var Zn={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:Vn,getShadowRoot:Kn,isElementShadowRoot:Jn,getParent:Yn,isShadowSelector:Xn,wrapSizzle:function(i){i.intercept(function(a,e,n,i,r){var t,o;return Xn(e)?E.isFunction(document.documentElement.attachShadow)?(o=a,t=(t=e).replace(Zn.PSEUDO_REGEX,Zn.PSEUDO_SAFE),t=E.map(o.tokenize(t),Qn),E.reduce(t,function(e,t){return e.concat(s(t,n,i,r))},[])):a(e.replace(Zn.PSEUDO_REGEX,""),n,i,r):a(e,n,i,r);function s(e,t,n,i){var r,o;return Xn(e)?(o=s((r={baseCss:(o=(o=e).split(Zn.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(Zn.PSEUDO_ELEMENT)}).baseCss,t),E.reduce(o,function(e,t){return Zn.getShadowRoot(t)?e.concat(s(r.shadowCss,Zn.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!Zn.isElementShadowRoot(t)&&(Xn(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function Xn(e){return!!e&&-1<e.indexOf(Zn.PSEUDO_ELEMENT)}function Qn(e){return E.reduce(e,function(e,t){return t.value===Zn.PSEUDO_SAFE?e+Zn.PSEUDO_ELEMENT:e+t.value},"")}var ei,w,S,ti,ni,ii,ri,oi,ai,si,ui,di,_,ci,li,pi,hi,fi,gi,t={exports:{}},r=t,mi=window,T="sizzle"+ +new Date,vi=mi.document,yi=0,bi=0,wi=tr(),Si=tr(),Ii=tr(),_i=tr(),Ei=function(e,t){return e===t&&(ui=!0),0},Ci={}.hasOwnProperty,Ti=[],xi=Ti.pop,ki=Ti.push,Ai=Ti.push,Oi=Ti.slice,Ri=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},Ni="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",e="(?:\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Mi="\\["+a+"*("+e+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+e+"))|)"+a+"*\\]",Li=":("+e+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Mi+")*)|.*)\\)|)",Pi=new RegExp(a+"+","g"),$i=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),Fi=new RegExp("^"+a+"*,"+a+"*"),Di=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),Ui=new RegExp(a+"|>"),Gi=new RegExp(Li),ji=new RegExp("^"+e+"$"),Bi={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+Mi),PSEUDO:new RegExp("^"+Li),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+Ni+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},zi=/HTML$/i,Hi=/^(?:input|select|textarea|button)$/i,Wi=/^h\d$/i,qi=/^[^{]+\{\s*\[native \w/,Vi=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ki=/[+~]/,Ji=new RegExp("\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\([^\\r\\n\\f])","g"),Yi=function(e,t){e="0x"+e.slice(1)-65536;return t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))},Zi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Xi=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Qi=function(){di()},er=lr(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Ai.apply(Ti=Oi.call(vi.childNodes),vi.childNodes),Ti[vi.childNodes.length].nodeType}catch(Ew){Ai={apply:Ti.length?function(e,t){ki.apply(e,Oi.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function x(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&&(di(t),t=t||_,li)){if(11!==l&&(s=Vi.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))&&gi(t,d)&&d.id===r)return n.push(d),n}else{if(s[2])return Ai.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&w.getElementsByClassName&&t.getElementsByClassName)return Ai.apply(n,t.getElementsByClassName(r)),n}if(w.qsa&&!_i[e+" "]&&(!pi||!pi.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(d=e,c=t,1===l&&(Ui.test(e)||Di.test(e))){for((c=Ki.test(e)&&ur(t.parentNode)||t)===t&&w.scope||((a=t.getAttribute("id"))?a=a.replace(Zi,Xi):t.setAttribute("id",a=T)),o=(u=ii(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+cr(u[o]);d=u.join(",")}try{return Ai.apply(n,c.querySelectorAll(d)),n}catch(p){_i(e,!0)}finally{a===T&&t.removeAttribute("id")}}}return oi(e.replace($i,"$1"),t,n,i)}function tr(){var n=[];function i(e,t){return n.push(e+" ")>S.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function nr(e){return e[T]=!0,e}function ir(e){var t=_.createElement("fieldset");try{return!!e(t)}catch(Ew){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function rr(e,t){for(var n=e.split("|"),i=n.length;i--;)S.attrHandle[n[i]]=t}function or(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ar(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&er(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function sr(a){return nr(function(o){return o=+o,nr(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function ur(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ei in w=x.support={},ni=x.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!zi.test(t||e&&e.nodeName||"HTML")},di=x.setDocument=function(e){var e=e?e.ownerDocument||e:vi;return e!=_&&9===e.nodeType&&e.documentElement&&(ci=(_=e).documentElement,li=!ni(_),vi!=_&&(e=_.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",Qi,!1):e.attachEvent&&e.attachEvent("onunload",Qi)),w.scope=ir(function(e){return ci.appendChild(e).appendChild(_.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),w.attributes=ir(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=ir(function(e){return e.appendChild(_.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=!!_.getElementsByClassName,w.getById=ir(function(e){return ci.appendChild(e).id=T,!_.getElementsByName||!_.getElementsByName(T).length}),w.getById?(S.filter.ID=function(e){var t=e.replace(Ji,Yi);return function(e){return e.getAttribute("id")===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&li)return(e=t.getElementById(e))?[e]:[]}):(S.filter.ID=function(e){var t=e.replace(Ji,Yi);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&li){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),S.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},S.find.CLASS=w.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&li?t.getElementsByClassName(e):w.qsa&&li?t.querySelectorAll("."+e):void 0},hi=[],pi=[],(w.qsa=!!_.querySelectorAll)&&(ir(function(e){var t;ci.appendChild(e).innerHTML=J().createHTML("<a id='"+T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&pi.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||pi.push("\\["+a+"*(?:value|"+Ni+")"),e.querySelectorAll("[id~="+T+"-]").length||pi.push("~="),(t=_.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||pi.push("\\["+a+"*name"+a+"*="+a+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||pi.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||pi.push(".#.+[+~]"),e.querySelectorAll("\\\f"),pi.push("[\\r\\n\\f]")}),ir(function(e){e.innerHTML=J().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=_.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&pi.push("name"+a+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&pi.push(":enabled",":disabled"),ci.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&pi.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),pi.push(",.*:")})),(w.matchesSelector=qi.test(fi=ci.matches||ci.webkitMatchesSelector||ci.mozMatchesSelector||ci.oMatchesSelector||ci.msMatchesSelector))&&ir(function(e){w.disconnectedMatch=fi.call(e,"*"),fi.call(e,"[s!='']:x"),hi.push("!=",Li)}),pi=pi.length&&new RegExp(pi.join("|")),hi=hi.length&&new RegExp(hi.join("|")),e=!!ci.compareDocumentPosition,gi=e||ci.contains?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Ei=e?function(e,t){var n;return e===t?(ui=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!w.sortDetached&&t.compareDocumentPosition(e)===n?e==_||e.ownerDocument==vi&&gi(vi,e)?-1:t==_||t.ownerDocument==vi&&gi(vi,t)?1:si?Ri(si,e)-Ri(si,t):0:4&n?-1:1)}:function(e,t){if(e===t)return ui=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==_?-1:t==_?1:r?-1:o?1:si?Ri(si,e)-Ri(si,t):0;if(r===o)return or(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?or(a[i],s[i]):a[i]==vi?-1:s[i]==vi?1:0}),_},x.matches=function(e,t){return x(e,null,null,t)},x.matchesSelector=function(e,t){if(di(e),w.matchesSelector&&li&&!_i[t+" "]&&(!hi||!hi.test(t))&&(!pi||!pi.test(t)))try{var n=fi.call(e,t);if(n||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(Ew){_i(t,!0)}return 0<x(t,_,null,[e]).length},x.contains=function(e,t){return(e.ownerDocument||e)!=_&&di(e),gi(e,t)},x.attr=function(e,t){(e.ownerDocument||e)!=_&&di(e);var n=S.attrHandle[t.toLowerCase()],n=n&&Ci.call(S.attrHandle,t.toLowerCase())?n(e,t,!li):undefined;return n!==undefined?n:w.attributes||!li?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},x.escape=function(e){return(e+"").replace(Zi,Xi)},x.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},x.uniqueSort=function(e){var t,n=[],i=0,r=0;if(ui=!w.detectDuplicates,si=!w.sortStable&&e.slice(0),e.sort(Ei),ui){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return si=null,e},ti=x.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=ti(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=ti(t);return n},(S=x.selectors={cacheLength:50,createPseudo:nr,match:Bi,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(Ji,Yi),e[3]=(e[3]||e[4]||e[5]||"").replace(Ji,Yi),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||x.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]&&x.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Bi.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Gi.test(n)&&(t=(t=ii(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Ji,Yi).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=wi[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&wi(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=x.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(Pi," ")+" ").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)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===yi&&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]=[yi,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===yi&&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[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[yi,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=S.pseudos[e]||S.setFilters[e.toLowerCase()]||x.error("unsupported pseudo: "+e);return a[T]?a(o):1<a.length?(t=[e,e,"",o],S.setFilters.hasOwnProperty(e.toLowerCase())?nr(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=Ri(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:nr(function(e){var i=[],r=[],s=ri(e.replace($i,"$1"));return s[T]?nr(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),i[0]=null,!r.pop()}}),has:nr(function(t){return function(e){return 0<x(t,e).length}}),contains:nr(function(t){return t=t.replace(Ji,Yi),function(e){return-1<(e.textContent||ti(e)).indexOf(t)}}),lang:nr(function(n){return ji.test(n||"")||x.error("unsupported lang: "+n),n=n.replace(Ji,Yi).toLowerCase(),function(e){var t;do{if(t=li?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=mi.location&&mi.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===ci},focus:function(e){return e===_.activeElement&&(!_.hasFocus||_.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ar(!1),disabled:ar(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!S.pseudos.empty(e)},header:function(e){return Wi.test(e.nodeName)},input:function(e){return Hi.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:sr(function(){return[0]}),last:sr(function(e,t){return[t-1]}),eq:sr(function(e,t,n){return[n<0?n+t:n]}),even:sr(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:sr(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:sr(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:sr(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=S.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.pseudos[ei]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ei);for(ei in{submit:!0,reset:!0})S.pseudos[ei]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ei);function dr(){}function cr(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function lr(a,e,t){var s=e.dir,u=e.next,d=u||s,c=t&&"parentNode"===d,l=bi++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var i,r,o=[yi,l];if(n){for(;e=e[s];)if((1===e.nodeType||c)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||c)if(r=(r=e[T]||(e[T]={}))[e.uniqueID]||(r[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[d])&&i[0]===yi&&i[1]===l)return o[2]=i[2];if((r[d]=o)[2]=a(e,t,n))return!0}return!1}}function pr(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function hr(e,t,n,i,r){for(var o,a=[],s=0,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 fr(h,f,g,m,v,e){return m&&!m[T]&&(m=fr(m)),v&&!v[T]&&(v=fr(v,e)),nr(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++)x(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),l=!h||!e&&f?c:hr(c,s,h,n,i),p=g?v||(e?h:d||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=hr(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?Ri(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=hr(p===t?p.splice(d,p.length):p),v?v(null,t,p,i):Ai.apply(t,p)})}dr.prototype=S.filters=S.pseudos,S.setFilters=new dr,ii=x.tokenize=function(e,t){var n,i,r,o,a,s,u,d=Si[e+" "];if(d)return t?0:d.slice(0);for(a=e,s=[],u=S.preFilter;a;){for(o in n&&!(i=Fi.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Di.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace($i," ")}),a=a.slice(n.length)),S.filter)S.filter.hasOwnProperty(o)&&(i=Bi[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?x.error(e):Si(e,s).slice(0)},ri=x.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=Ii[e+" "];if(!a){for(n=(t=t||ii(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=S.relative[e[0].type],a=o||S.relative[" "],s=o?1:0,u=lr(function(e){return e===i},a,!0),d=lr(function(e){return-1<Ri(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==ai)||((i=t).nodeType?u:d)(e,t,n),i=null,e}];s<r;s++)if(t=S.relative[e[s].type])c=[lr(pr(c),t)];else{if((t=S.filter[e[s].type].apply(null,e[s].matches))[T]){for(n=++s;n<r&&!S.relative[e[n].type];n++);return fr(1<s&&pr(c),1<s&&cr(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace($i,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&cr(e))}c.push(t)}return pr(c)}(t[n]))[T]?r:o).push(a);(a=Ii(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,u=0,d="0",c=e&&[],l=[],p=ai,h=e||b&&S.find.TAG("*",r),f=yi+=null==p?1:Math.random()||.1,g=h.length;for(r&&(ai=t==_||t||r);d!==g&&null!=(o=h[d]);d++){if(b&&o){for(a=0,t||o.ownerDocument==_||(di(o),n=!li);s=m[a++];)if(s(o,t||_,n)){i.push(o);break}r&&(yi=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]=xi.call(i));l=hr(l)}Ai.apply(i,l),r&&!e&&0<l.length&&1<u+v.length&&x.uniqueSort(i)}return r&&(yi=f,ai=p),c},y?nr(i):i))).selector=e}return a},oi=x.select=function(e,t,n,i){var r,o,a,s,u,d="function"==typeof e&&e,c=!i&&ii(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&&li&&S.relative[o[1].type]){if(!(t=(S.find.ID(a.matches[0].replace(Ji,Yi),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Bi.needsContext.test(e)?0:o.length;r--&&(a=o[r],!S.relative[s=a.type]);)if((u=S.find[s])&&(i=u(a.matches[0].replace(Ji,Yi),Ki.test(o[0].type)&&ur(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&cr(o))break;return Ai.apply(n,i),n}}return(d||ri(e,c))(i,t,!li,n,!t||Ki.test(e)&&ur(t.parentNode)||t),n},w.sortStable=T.split("").sort(Ei).join("")===T,w.detectDuplicates=!!ui,di(),w.sortDetached=ir(function(e){return 1&e.compareDocumentPosition(_.createElement("fieldset"))}),ir(function(e){return e.innerHTML=J().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||rr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&ir(function(e){return e.innerHTML=J().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||rr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ir(function(e){return null==e.getAttribute("disabled")})||rr(Ni,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var gr=mi.Sizzle;x.noConflict=function(){return mi.Sizzle===x&&(mi.Sizzle=gr),x},r.exports?r.exports=x:mi.Sizzle=x;mr=p(t.exports),(vr=E.extend(function(){return vr.Sizzle.apply(this,arguments)},mr)).reset=function(){vr.Sizzle=mr,vr.matchesSelector=mr.matchesSelector,vr.matches=mr.matches},vr.intercept=function(e,t="Sizzle"){vr[t]=E.wrap(vr[t],e)},vr.reset();var mr,vr,yr=vr;function k(e,t){var n,i=this;if(e&&e instanceof k)return e;if(!(i instanceof k))return new k(e,t);if(e)if(e.nodeType)n=[e];else if(r=/^<(\w+)\/?>$/.exec(e))n=[document.createElement(r[1])];else if(/^<[\w\W]+>$/.test(e)){var r=document.createElement("div");r.innerHTML=e,n=E.toArray(r.childNodes)}else if(E.isString(e)){t instanceof k&&(t=0<t.length?t[0]:null);try{n=yr(e,t)}catch(o){n=[]}}else n=[e];else n=[];return E.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,i}function br(){this.ownerKey="_pendo_"+at(8)}E.extend(br.prototype,{cache:function(e){var t;return E.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set:function(e,t,n){e=this.cache(e);return e[t]=n,e},get:function(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove:function(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!E.isEmpty(n)||(e[this.ownerKey]=undefined)}});var wr=new br,Sr=1;function Ir(e){return E.isNumber(e.eventPhase)&&e.eventPhase===Sr}function _r(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?dt("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{Er(e,t,n,i)}):E.noop}function Er(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?dt("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var Cr=function(e){var t=Zn.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},Tr={add:function(t,e){var n=wr.get(t),i=(n.handle||(n.handle=function(e){Tr.dispatch(t,e)}),e.id=E.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||_r(t,e.type,n.handle,e.capture),i.push(e),()=>{k.event.remove(t,e.type,e.handler,e.capture)}},dispatch:function(r,o){var e,t,a;r&&(e=(wr.get(r,"captureEvents")||{})[o.type]||[],t=(wr.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=wr.get(o)).ignore&&(a.handled=a.handled||{},E.each(t.slice(),function(e){var t=!!e.capture===Ir(o),n=(n=o,E.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(Cr(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!ge(e.selector)||0<k(Cr(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){C.error(i)}}}))},remove:function(e,t,n,i){var r=wr.get(e);if(r){if(E.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=E.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],Er(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],Er(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],Er(e,t,r.handle));E.isEmpty(r.captureEvents)&&E.isEmpty(r.bubbleEvents)&&(wr.remove(e,"captureEvents"),wr.remove(e,"bubbleEvents"),wr.remove(e,"handle"))}},trigger:function(e){var t=wr.get(e);if(!t.pendoStopped)if(e.bubbles){var n=Cr(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=Zn.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),Ir(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)Tr.dispatch(o[i],e);(e=Tr.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(Tr.dispatch(n,e),(e=Tr.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)Tr.dispatch(o[i],e)}}else Tr.dispatch(Cr(e),e)},clone:function(e){var t=E.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",wr.ownerKey]),e=Zn.getComposedPath(e);return e&&(t.composedPath=E.constant(e)),t},$:{on:function(e,n,i,r){return E.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){E.each(e,function(e){Tr.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},xr=E.extend(Ar,{get:function(e,t){return Ar({method:"GET",url:e,headers:t})},post:Or,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",Or(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(E.isArray(t))i=t;else{if(!E.isObject(t))return e||"";i=E.keys(t)}var i=E.map(i,function(e){return E.isArray(t)?vt(e):vt(e)+"="+vt(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=E.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported:function(){return void 0!==kr()}});function kr(){return window.XMLHttpRequest||ActiveXObject}function Ar(e){var t=y.defer(),n=new(kr())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),E.each(e.headers,function(e,t){n.setRequestHeader(t.toLowerCase(),e)}),n.onreadystatechange=function(){var e;4===n.readyState&&(e=function(e){var t={status:e.status};try{t.data=JSON.parse(e.responseText)}catch(n){t.data=e.responseText}return t}(n),200<=n.status&&n.status<300?t.resolve(e):t.reject(e))},e.withCredentials&&(n.withCredentials=!0),e.data?n.send(e.data):n.send(),t.promise}function Or(e,t,n){return Ar({method:"POST",url:e,data:t,headers:n})}var Rr,Nr=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},Mr=function(){return h.get("annotateUrl")||Dr()||h.get("sanitizeUrl")||h.get(qr)||h.get("xhrWhitelist")},Lr=function(){return Dr()?{href:Fr(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Pr=function(){return new qn(window.location.href)},$r=function(){var e,t,n,i;return Mr()?(e=Pr(),Dr()&&(e.href=Fr(e.href)),Nr()?(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:///","")):Kr(e.href)):g.getters["location/href"]()},Fr=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Dr=function(){return!0===h.get("ignoreHashRouting")},Ur=500;function Gr(){return E.isUndefined(Rr)&&function e(){Wr(),Rr=Dt(e,Ur)}(),()=>{clearTimeout(Rr)}}var jr=function(e){var t;try{t=$r()}catch(n){}return t},Br=[],zr=!1,Hr=null;function Wr(){var t=Lr().href;Hr!=t&&(Hr=t,E.map(Br,function(e){e(t)}))}var qr="queryStringWhitelist";function Vr(e){var t=h.get("sanitizeUrl");return E.isFunction(t)?t(e):e}function Kr(e){e=e||Lr().href;var t=h.get("annotateUrl");if(t)if(E.isFunction(t))try{var n,i,r,o=t();return o&&(E.isObject(o)||E.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&E.isArray(n)||i&&(E.isArray(i)||E.isObject(i)))&&(n&&(e=Yr(e,null,n,!0)),o=i||{}),xr.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 Jr(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function Yr(e,t,n,i){e=e||jr(),t=t||Jr(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=E.isArray(n)?Xr(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var Zr,Xr=function(e,t,n){return n&&E.contains(t,"*")?"":(e=Qr(e),e=n?E.omit(e,t):E.pick(e,t),eo(e))},Qr=function(e){e=e.split("&");return E.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&mt(t[1])),e},{})},eo=function(e){return E.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=h.get("location.pushState")&&Fe.supportsHistoryApi();return zr||(t&&(i=window.history,E.each(["pushState","replaceState"],function(e){var t=i[e];i[e]=E.wrap(i[e],function(e){var t=e.apply(i,E.toArray(arguments).slice(1));return Dt(Wr,0),t}),n.push(()=>{i[e]=t})}),n.push(_r(window,"popstate",Wr))),Fe.supportsHashChange()&&n.push(_r(window,"hashchange",Wr)),!1!==t&&Fe.supportsHashChange()||n.push(Gr()),zr=!0),Br.push(e),()=>{E.each(n,function(e){e()}),Br.length=0,zr=!1}},get:jr,externalizeURL:function(e,t,n){n=n||h.get(qr);return Vr(Yr(e,t,n=E.isFunction(n)?n():n,!1))},startPoller:Gr,getWindowLocation:Lr,clear:function(){Br=[]},isElectron:Nr,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 to(){var e=h.getLocalConfig("dataHost");return e||((e=h.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:je)}function no(){Zr=to()}function io(){var e=h.get("contentHost")||h.get("assetHost")||Be;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function ro(e){return io()+"/"+(ze?ze+"/":"")+e}function oo(){var e=h.get("allowPartnerAnalyticsForwarding",!1)&&h.get("adoptAnalyticsForwarding",!1);return h.get("trainingPartner",!1)||e}var ao=3,so=1,uo=9,co=11,lo=4;function O(e){var t;if((t=e)&&t.nodeType===so)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function po(e,t){var n;return!(!e||!E.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&E.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),E.any(n,function(e){return e&&"none"!==e}))}function ho(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function fo(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function go(e){return E.isNumber(e)?e:0}function mo(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!yo(e)?null:e}function vo(e){return po(O(e),xe)&&isNaN(Ie)}function yo(e){if(e)return(e=O(e))&&(E.contains(["relative","absolute","fixed"],e.position)||po(e,xe))}function bo(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=yo(t)?t:mo(t,n),i=t?wo(t):{top:0,left:0},e=wo(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+=go(t.scrollTop),i.left+=go(t.scrollLeft)),i.top-=go(t.clientTop),i.left-=go(t.clientLeft)):(i.top+=ho(n),i.left+=fo(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function wo(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 So=void 0===(e=h.get("pendoCore"))||e,Io=function(e,t,n){e=Zr+"/data/"+e+"/"+t,t=E.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function _o(){return E.compact([I.apiKey].concat(I.additionalApiKeys))}var Eo=function(e){return e+="v"+He,To(Io("log.gif",I.apiKey,{msg:e,version:He}))};function Co(e){try{var t=Zr+"/data/errorlog?apiKey="+I.apiKey,n={error:e,version:"v"+He,visitorId:b()},i=xo.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):xr.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),Eo("Failed to write error to server using POST endpoint: "+r)}}function To(e){var t,n;return Ro()?(t=y.defer(),_r(n=new Image,"load",t.resolve),_r(n,"error",t.reject),n.src=e,t.promise):y.resolve()}function xo(e,t={}){t=E.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t)}function ko(e,t){return navigator.sendBeacon(e,t)}xo.supported=function(){try{return E.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var Ao=!(ko.supported=function(){return E.isFunction(navigator.sendBeacon)}),Oo=function(){var e=Ro();return Ao=!0,e&&m["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},Ro=function(){return!Ao&&So},No=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test($o(e))}catch(n){return!1}},Mo=function(e,t){try{var n;No(e,t)||(n=Ze.call($o(e))+" "+t,Po(e,n))}catch(i){}},Lo=function(e,t){try{var n,i;No(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=$o(e).replace(n," "),Po(e,i))}catch(r){}},Po=function(e,t){E.isString(e.className)?e.className=t:e.setAttribute("class",t)},$o=function(e){try{var t=e.className;return(E.isString(t)||!ge(t)?t:e.getAttribute("class"))||""}catch(n){return""}},Fo=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},Do={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},Uo=function(e,t){t=function(e){if(E.isString(e)){var t=e.split(";");var n;var i;var r;var o;e={};for(r=0;r<t.length;r++){n=t[r];o=n.indexOf(":");i=n.substring(0,o);e[i]=n.substring(o+1)}}return e}(t);Go(e,t)},Go=function(a,e){E.each(e,function(e,t){if(""!==(t=Ze.call(t))){var n=Fo(t),i=(!E.isNumber(e)||isNaN(e)||Do[n]?E.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=Ze.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=Ze.call(e)}catch(o){C.info("failed to set style: "+t+" with value "+e)}}})},jo=function(){return De()?{width:document.documentElement.offsetWidth||0,height:document.documentElement.offsetHeight||0}:{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}},Bo=function(e){var t=jo(),n=ho(),i=fo();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function zo(t){return E.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function Ho(e,t=window){var n;return function(e){var t,n=e;for(;n;){if(!(t=O(n)))return;if("fixed"===t.position)return!isNaN(Ie)||!Qo(n);n=n.parentNode}return}(e)?((n=wo(e)).fixed=!0,zo(n)):zo(bo(e,Ko(t.document),t))}var Wo=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},qo=E.compose(function(e){return Array.prototype.slice.call(e)},function(e,t){try{return yr(e,t)}catch(n){return Eo("error using sizzle: "+n),t.getElementsByTagName(e)}}),Vo=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),Eo("error picking best body:"+n),0}},Ko=function(e){e=e||document;try{var t=qo("body",e);return t&&1<t.length?(t.sort(Vo),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return Eo("Error getting body element: "+n),e.body}};function Jo(e){if(e&&e.parentNode){var t=e.parentNode,n=e;if(!t)return[];var i=[];if(t.childNodes)for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];1===r.nodeType&&r!==n&&i.push(r)}return i}return[]}function Yo(e){if(yr.contains(document,e))return!0;for(;e&&e.parentNode||Zn.isElementShadowRoot(e);)e=Zn.getParent(e);return e===document}var Zo=function(e){var t=Ko();if(null!==e)return e===document||e===window?((t={left:window.pageXOffset||t.scrollLeft,top:window.pageYOffset||t.scrollTop,width:window.innerWidth,height:window.innerHeight}).right=t.left+t.width,t.bottom=t.top+t.height,t):((t=Ho(e)).right=t.left+t.width,t.bottom=t.top+t.height,t)},Xo=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function Qo(e){for(var t=e&&e.parentNode;t;){if(po(O(t),xe))return 1;t=t.parentNode}}var ea=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(Yo(e))for(i=e;i;)if(Zn.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=O(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=O(r))&&!E.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&Qo(i))i=mo(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function ta(e,t){e=O(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?na.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?na.BOTH:t.test(e.overflowY)?na.Y:t.test(e.overflowX)?na.X:t.test(e.overflow)?na.BOTH:na.NONE}var na={X:"x",Y:"y",BOTH:"both",NONE:"none"};function ia(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&Yo(e)}function ra(e){var t=document.createElement("script"),n=document.head||document.getElementsByTagName("head")[0]||document.body;t.type="text/javascript",e.src?t.src=e.src:t.text=e.text||e.textContent||e.innerHTML||"",n.appendChild(t),n.removeChild(t)}function oa(e){if(e){if(E.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function aa(e,t,n){const i=[];var r=oa(document.documentElement);let o=oa(ea(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=oa(ea(o)),a++;return()=>{E.each(E.compact(i),function(e){e()}),i.length=0}}const sa=['a[href]:not([disabled]):not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])',"iframe"].join(", ");function ua(e,t,n){var i=Zo(t),t=ta(t,n);if(t!==na.BOTH||Xo(e,i)){if(t===na.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===na.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function da(e){if(e){if(ia(e))return 1;var t=Zo(e);if(0!==t.width&&0!==t.height){var n=O(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=O(i=i.parentNode)}return 1}}}}function ca(e,t){if(!da(e))return!1;if(!ia(e)){for(var n=Zo(e),i=ea(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!ua(n,i,t))return!1;i=ea(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=fo(),e+=ho()),o<=0||e<=0)return!1}}return!0}function la(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,u=Zo(e),d=ea(e,s);if(!da(e))return!1;for(;d;){if(t=Zo(d),(o=ta(d,a))!==na.NONE&&(i=n=0,o!==na.Y&&o!==na.BOTH||(u.bottom>t.bottom&&(n+=u.bottom-t.bottom,u.top-=n,u.bottom-=n),u.top<t.top&&(n-=r=t.top-u.top,u.top+=r,u.bottom+=r)),o!==na.X&&o!==na.BOTH||(u.right>t.right&&(i+=u.right-t.right,u.left-=i,u.right-=i),u.left<t.left&&(i-=r=t.left-u.left,u.left+=r,u.right+=r))),!ua(u,d,s))return!1;d=ea(d,s)}return!0}function pa(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=Ko(),u=ea(e,a);u&&u!==s;)t=Zo(e),n=Zo(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),E.isFunction(u.scrollBy)?u.scrollBy(r,i):(u.scrollTop+=i,u.scrollLeft+=r),u=ea(u,a)}Mi={$:{findOrCreate:function(e){return 0<this.length?this:k(e)},find:function(e){var t=k();return t.context=this.context,this.each(function(){k(e,this).each(function(){t[t.length++]=this})}),t},each:function(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html:function(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text:function(e){var t="innerText"in document.body;return e===undefined?t?this.length?this[0].innerText:this:this.length?this[0].textContent:this:this.each(function(){Uo(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass:function(e){return e=e.split(/\s+/),this.each(function(t){E.each(e,function(e){Mo(t,e)})})},removeClass:function(e){return e=e.split(/\s+/),this.each(function(t){E.each(e,function(e){Lo(t,e)})})},hasClass:function(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){E.each(e,function(e){n=n&&No(t,e)})}),n)},toggleClass:function(e){return e=e.split(/\s+/),this.each(function(t){E.each(e,function(e){(No(t,e)?Lo:Mo)(t,e)})})},css:function(e){return this.each(function(){Uo(this,e)}),this},appendTo:function(e){return k(e).append(this),this},append:function(e){var t=this;return k(e).each(function(){t.length&&t[0].appendChild(this),Yo(this)&&E.each(yr("script",this),ra)}),t},prependTo:function(e){return k(e).prepend(this),this},prepend:function(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:function(){var e=k(this)[0];if(e&&e.parentNode)return k(e.parentNode)},insertBefore:function(e){e=k(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),Yo(document))&&E.each(yr("script",this[0]),ra)},remove:function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr:function(e,t){return E.isObject(e)?(this.each(function(){E.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:function(e,t){for(var n=this[0];n&&!yr.matchesSelector(n,e);)if((n=Yn(n))===document||t&&yr.matchesSelector(n,t))return k();return k(n)},eq:function(e){return k(this[e])},height:function(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width:function(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus:function(){return this.each(function(){E.isFunction(this.focus)&&this.focus()})}}};class ha{constructor(e=Ko(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},Fe.MutationObserver){const n=new(dt("MutationObserver"))((e,t)=>{this.signal()});n.observe(e,t),this._teardown=()=>n.disconnect}else{const i=Dt(()=>{this.signal()},500);this._teardown=()=>{clearTimeout(i)}}}signal(){E.each(this.listeners,e=>{e.get()})}addObservers(...e){this.listeners=[].concat(this.listeners,e)}teardown(){this._teardown()}}Ti=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var fa="function"==typeof(r=window.WeakRef)&&/native/.test(r)?r:Ti();function ga(e,t){var n,i;return e.tagName&&-1<["textarea","input"].indexOf(e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:ba(n.substring(0,i))):ma(e,t)}function ma(e,t=128){var n,i="",r=e.nodeType;if(r===ao||r===lo)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===so||r===uo||r===co)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=ma(e.childNodes[a],t-i.length))).length)return i+ba(o.substring(0,t-i.length));i+=o}}return i}function va(e){return 55296<=e&&e<=56319}function ya(e){return 56320<=e&&e<=57343}function ba(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(va(t)||ya(t)){if(1===e.length)return e.slice(0,-1);if(va(t))return e.slice(0,-1);if(ya(t))if(!va(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class wa{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let t=this.elRef&&this.elRef.deref();var e=Yo(t);if(!t||!e){if(t&&!e)return undefined;if([t]=k(this.cssSelector),!t)return undefined;E.each(this.events,e=>{t.addEventListener(e,e=>this.onEvent(e))}),this.elRef=new fa(t)}return t}getText(e=1024){return ga(this.get(),e)}addEventListener(e,t){var n=this.get();this.events.indexOf(e)<0&&(this.events.push(e),n)&&n.addEventListener(e,e=>this.onEvent(e)),this.listeners[e]=this.listeners[e]?this.listeners[e].push(t):[].concat(t)}onEvent(t){var e=t.type;E.each(this.listeners[e],e=>e(t))}teardown(){const t=this.get();t&&E.each(this.events,e=>t.removeEventListener(e,this.onEvent))}}function Sa(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===to())return!0;if(t===io())return!0;var e=[/^https:\/\/(app|via|adopt)(\.eu|\.us|\.gov|\.jpn|\.hsbc|\.au)?\.pendo\.io$/,/^https:\/\/((adopt\.)?us1\.)?(app|via|adopt)\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)-static\.storage\.googleapis\.com$/,/^https:\/\/(us1\.)?cdn(\.eu|\.jpn|\.gov|\.hsbc|\.au)?\.pendo\.io$/],n=(Ke()||(e=e.concat([/^https:\/\/([a-zA-Z0-9-]+\.)*pendo-dev\.com$/,/^https:\/\/([a-zA-Z0-9-]+-dot-)?pendo-(dev|test|io|us1|govramp|jp-prod|hsbc|au|batman|magic|atlas|wildlings|ionchef|mobile-guides|mobile-hummus|mobile-fbi|mobile-plat|eu|eu-dev|apollo|security|perfserf|freeze|armada|voc|mcfly|calypso|dap|scrum-ops|ml|helix|uat)\.appspot\.com$/,/^https:\/\/via\.pendo\.local:\d{4}$/,/^https:\/\/adopt\.pendo\.local:\d{4}$/,/^https:\/\/local\.pendo\.io:\d{4}$/,new RegExp("^https://pendo-"+Ge+"-static\\.storage\\.googleapis\\.com$")])),h.get("adoptHost"));if(n&&t==="https://"+n)return!0;return!!E.contains(h.get("allowedOriginServers",[]),t)||E.any(e,function(e){return e.test(t)})}function Ia(e){var t;if(E.isString(e))return t=(t=Jr(e).substring(1))&&t.length?Qr(t):{},e=E.last(E.first(e.split("?")).split("/")).split("."),{filename:E.first(e),extension:e.slice(1).join("."),query:t}}function _a(e,t){var n;h.get("guideValidation")&&Fe.sri&&(n=Ia(t),t=E.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],E.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}E.extend(k,{data:wr,event:Tr,removeNode:Wo,getClass:$o,hasClass:No,addClass:function(e,t){var n;"string"==typeof e?(n=k(e),E.map(n,function(e){Mo(e,t)})):Mo(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=k(e),E.map(n,function(e){Lo(e,t)})):Lo(e,t)},getBody:Ko,getComputedStyle:O,getClientRect:Zo,intersectRect:Xo,getScrollParent:ea,isElementVisible:ca,Observer:ha,Element:wa,scrollIntoView:pa,getRootNode:oa}),E.extend(k.prototype,Tr.$,Mi.$);var Ea,Ca=function(e){var t=0===h.get("allowedOriginServers",[]).length,n=oo();return!(!t&&!n&&(t=Ge,n=Z,!/prod/.test(t)||ie(n)))||Sa(e)},Ta=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(E.isString(e)&&(e={url:e}),!Ca((d=e.url,new qn(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,_a(u,e.url),a=u}else{if(ut())return(i=document.createElement("script")).addEventListener("load",function(){t(),Wo(i)}),i.type=o,i.src=J(I).createScriptURL(e.url),_a(i,e.url),document.body.appendChild(i),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=J(I).createScriptURL(e.url),_a(i,e.url),a=i,t=E.wrap(t,function(e,t){k.removeNode(i),t?n&&e(t):e.apply(this,E.toArray(arguments).slice(1))})}return s.appendChild(a),xa(a,e.url,t),a}catch(c){return{}}var d},xa=function(e,t,n){var i=!1;ge(n)&&(e.onload=function(){!0!==i&&(i=!0,n(null,t))},e.onerror=function(){!0!==i&&(i=!0,n(new Error("Failed to load script"),t))},e.onreadystatechange=function(){i||e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(i=!0,n(null,t))},"link"===e.tagName.toLowerCase())&&(Dt(function(){var e;i||((e=new Image).onload=e.onerror=function(){!0!==i&&(i=!0,n(null,t))},e.src=t)},500),Dt(function(){i||Eo("Failed to load "+t+" within 10 seconds")},1e4))},ka=function(e){var t=JSON.parse(e.data),n=e.origin;C.debug(I.app_name+": Message: "+JSON.stringify(t)+" from "+n),za(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},Aa=function(e){Ra(Pa)(Oa(e))},Oa=function(e){if(e.data)try{var t="string"==typeof e.data?JSON.parse(e.data):e.data,n=e.origin,i=e.source;if(!t.action&&!t.mutation){if(t.type&&"string"==typeof t.type)return{data:t,origin:n,source:i};C.debug("Invalid Message: Missing 'type' in data format")}}catch(r){}};function Ra(t){return function(e){if(e&&Sa(e.origin))return t.apply(this,arguments)}}var Na={disconnect:function(e){},module:function(e){Ba(e.moduleURL)},debug:function(e){qa(ka)}},Ma=function(e,t){Na[e]=t},La=function(e){delete Na[e]},Pa=function(e){var t;e&&(t=e.data)&&ge(Na[t.type])&&Na[t.type](t,e)},$a={},Fa=function(e){if($a[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},Da=function(e){return ge($a[e])},Ua=function(e){if($a)for(var t in $a)if(0<=t.indexOf(e))return t;return null},Ga=[],ja=function(){var e;Ga.length<1||(e=Ga.shift(),Da(e))||Ta(e,function(){Fa(e),ja()})};var Ba=function(e){!function(e){var t={"/js/lib/ckeditor/ckeditor.js":1};E.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 qn(e);return Sa(n.origin)&&t[n.pathname]}catch(i){C.debug("Invalid module URL: "+e)}}(e)||(Ga.push(e),1<Ga.length)||ja()},za=function(e,t,n){var i,r=E.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Ea||Wa(),n="*"),t.guid=r,e&&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},Ha=function(){return window!=window.top},Wa=function(){var e=new RegExp("^"+wt(Zr).replace(/^https?:/,"https?:")),t=h.get("forceParentDesigner");return!Ke()&&t||e.test(location.href)?window.parent:window.top},qa=function(e){var t;return ge(window.addEventListener)&&E.isFunction(window.addEventListener)&&(t=Ra(e),window.addEventListener("message",t,!1)),function(){ge(window.removeEventListener)&&E.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},Va=E.memoize(function(){return h.get("restrictP1Access")}),Ka=[],Ja=[],Ya=12e4,Za=16,Xa=1900,Qa=65536,es=function(e){return!(!e||""===e)},ts=function(){return A.get()},ns={flush:E.noop,flushBy:E.noop,flushEvents:as,flushTrackEvents:as,flushSilos:as,flushTrackEventSilos:as,flushBeacons:as,flushNow:as,flushLater:ss,flushEvery:us,flushStop:ds,beacons:[],silos:[],trackEventSilos:[],lock:Oo,unlock:function(){if(!Ro())return cs(),function(){var e=!Ro();return Ao=!1,e&&m["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."}()}},is=[];function rs(e){is.push(e)}function os(e){e=is.indexOf(e);0<=e&&is.splice(e,1)}function as(e,t){try{E.each(is,function(e){e.flush&&e.flush(t)})}catch(n){C.critical("unhandled error while flushing event cache",{error:n})}}function ss(e){return t=E.partial(as,!0),n=e,n=parseInt(n,10)||0,t[n]||(i=Dt(function(){t(),t[n]()},n),t[n]=function(){window.clearTimeout(i),delete t[n]});var t,n,i}function us(e){var t;if(e=parseInt(e,10)||0,E.isObject(us.intervals)||(us.intervals={}),!us.intervals[e])return t=window.setInterval(as,e),us.intervals[e]=function(){clearInterval(t),delete us.intervals[e]}}function ds(){var e=E.values(us.intervals).concat([as]);E.map(e,function(e){E.isFunction(e)&&e()})}function cs(){E.each(is,function(e){e.clear&&e.clear()}),ds()}function ls(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 ps(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,!(!E.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)}hs=null;var hs,fs={set:function(e){hs=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==hs?hs:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!h.get("enableSignedMetadata")&&(n=ps(e,t),h.get("requireSignedMetadata")&&!n?(C.debug("Pendo will not "+t+"."),!1):n?ls(e.jwt):void C.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class gs{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=Dt(()=>{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 Jt.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 Jt.all(n)}}var ms="_PENDO_UNNAMED_",vs=5;function ys(e,t,n,i,r,o){var a,s;a=h.get("dropAnonymous"),s=xn(b()),!So||a&&s||(a=t,s=n,t=i,n=r,i=o,s={type:r=e,browser_time:v(),visitor_id:b({generate:!0}),account_id:Gn(),url:A.externalizeURL(s),props:a||{},eventProperties:n},s=sn.addTracerIds(s),"track"===r&&(s.track_event_name=t||ms),m.eventCaptured.trigger(s,i),es((o=s).url)&&function(e){if(h.get("freeNPSData"))return E.contains(bs,e.type);return 1}(o)&&("track"===e?Ms.push(o):Ns.push(function(e,t){try{if(!e.getters["monitoring/shouldFlush"]())return t;var n=e.getters["monitoring/payload"]();e.dispatch("monitoring/flush"),E.isEmpty(n)||(t.ops=n)}catch(i){}return t}(g,o))))}var bs=["load","meta","identify"];function ws(){var r=E.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 Ss=0;function Is(e,t){e.sequence=Ss++,t(e)}function _s(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 Es(e,t){return oo()?Cs("account_id")(e,t):t(e)}function Cs(s){return function(e,t){if(!e.length)return t(e);for(var n=E.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==E.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 Ts(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function xs(e,t,n){t=n[t-1]||E.last(n);return Math.ceil(e/t)}function ks(e,t){for(var n,i=0,r=(E.isFunction(t.overhead)?t.overhead:E.constant(0))(),o=0;o<e.length;++o){if(xs(n=Ts(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(xs(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(xs(i+(n=Ts(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function As(){var e=fs.get();return E.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var Os,Rs,Ns,Ms;function Ls(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=I.squeezeAndCompress(e.slice()),e.JZB.length<=Qa)||1===e.length?t(e):(n=e.length/2,Ls(e.slice(0,n),t),void Ls(e.slice(n),t))}function Ps(e,t){Ro()&&t(e)}function $s(){return function(e,t){1===e.length&&e.JZB.length>Qa?(C.debug("Couldn't write event"),Eo("Single item is: "+e.JZB.length+". Dropping."),Co(e.JZB)):t(e)}}function Fs(e,t){return Io(t.beacon+".gif",e,E.extend({v:He,ct:v(),jzb:t.JZB},t.params,t.auth))}function Ds(e,t){return Io(t.beacon+".gif",e,E.extend({v:He,ct:v(),s:t.JZB.length},t.params))}function Us(i){return function(e,t){e.params=E.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=fs.get();E.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function Gs(e,t){var n=oo(),i=E.first(e),i=E.get(i,"account_id");n&&i&&(e.params=E.extend({},e.params,{acc:it(i)})),t(e)}function js(e,t){var n=E.first(e),n=E.get(n,"props.source");n&&(e.params=E.extend({},e.params,{source:n})),t(e)}function Bs(e){return JSON.stringify(E.extend({events:e.JZB},e.auth))}function zs(e){return e.status<200||300<=e.status?y.reject(new Error(`received status code ${e.status}: `+e.statusText)):y.resolve()}function Hs(e,t){return xo(Fs(e,t)).then(zs)}function Ws(e,t){return fetch(Ds(e,t),{method:"POST",keepalive:!0,body:Bs(t),headers:{"Content-Type":"application/json"}}).then(zs)}function qs(e,t){var n=Bs(t);return ko(Ds(e,t),n)?y.resolve():y.reject()}function Vs(n){return function(e,t){return t.JZB?t.eventLength<=Xa&&!h.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&xo.supported()?Hs(e,t):t.auth?xr({method:"GET",url:Fs(e,t)}):To(Fs(e,t)):n.allowPost&&t.eventLength<=Qa?xo.supported()?Ws(e,t):ko.supported()?qs(e,t):xr({method:"POST",url:Ds(e,e=t),data:Bs(e),headers:{"Content-Type":"application/json"}}):y.resolve():y.resolve()}}function Ks(n){return function(e,t){if(t.JZB){if(t.eventLength<=Xa&&!h.get("sendEventsWithPostOnly",!1)){if(!t.auth&&xo.supported())return Hs(e,t);if(Fe.msie<=11)return xr({method:"GET",url:Fs(e,t),sync:!0})}if(t.eventLength<=Qa&&n.allowPost){if(xo.supported())return Ws(e,t);if(ko.supported())return qs(e,t);if(Fe.msie<=11)return xr({method:"POST",url:Ds(e,e=t),data:Bs(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return y.resolve()}}function Js(e){return ws(Ps,Es,Ls,(t=e.shorten,t=E.defaults(t||{},{fields:[],siloMaxLength:Qa}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],C.debug("Max length exceeded for an event"),E.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)}),Ls,$s(),Us(e),Gs,js);var t}class Ys{constructor(e){this.queues=e}isEmpty(){return E.all(this.queues,e=>e.isEmpty())}stop(){E.each(this.queues,e=>e.stop())}push(){const t=E.toArray(arguments);E.each(this.queues,e=>e.push.apply(e,t))}drain(){const t=E.toArray(arguments);return y.all(E.map(this.queues,e=>e.drain.apply(e,t)))}}function Zs(t,r,o){r=r||Vs(t),o=o||Ks(t);e=t;var e=E.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=E.map(e,i=>{var e=new gs(function(e,t,n){return n&&(e.params=E.extend({},e.params,{rt:n})),(t?o:r)(i,e)});return e.onTimeout=function(){g.commit("monitoring/incrementCounter",t.beacon+"GifFailures")},e.retryPending=!0,e});return new Ys(e)}function Xs(e,t){var n=h.get("analytics.excludeEvents");0<=E.indexOf(n,e.type)||t(e)}class Qs{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=Zs(e)}pause(e=1e4){var t=E.uniqueId();const n=this["locks"];n[t]=1;var i=()=>{n[t]&&(clearTimeout(r),delete n[t],this.flush())},r=Dt(i,e);return i}push(e){this.packageSilos(e,e=>{this.silos.push(e)})}clear(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()}flush({unload:e=!1,hidden:t=!1}={}){var{cache:n,silos:i}=this;if((0!==n.length||0!==i.length||!this.sendQueue.isEmpty())&&E.isEmpty(this.locks)){i.push(n.slice()),n.length=0;n=i.slice();i.length=0;const r=[];E.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 eu(e){var i,r,t=Js(e),n=ws((r=e.beacon,function(e,t){var n=h.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),Xs,Is,_s(e.cache),(i={overhead:As,lower:h.get("sendEventsWithPostOnly")?Qa:Xa,upper:Qa,compressionRatio:[.5*vs,.75*vs,vs]},function(e,t){for(var n=ks(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=ks(e,i)}));return new Qs(E.extend({processSilos:t,packageSilos:n},e))}var tu=Wn(function(e){var t,n,i;if((e=e||A.get())&&e!==tu.lastUrl)return tu.lastUrl=e,t=-1,Va()||Ha()&&(i=Wa(),za(i,{type:"load",url:location.toString()},"*")),C.debug("sending load event for url "+e),t={load_time:t="undefined"!=typeof performance&&E.isFunction(performance.getEntriesByType)&&!E.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},Ha()&&(t.is_frame=!0),"*"!==(n=St())&&(t.allowed_storage_keys=E.keys(n)),ys("load",t,e),ss(),m.urlChanged.trigger(),!0});function nu(e){return"hidden"===e.visibilityState}tu.reset=function(){tu.lastUrl=null};const iu="visibilitychange",ru="pagehide",ou="unload";function au(){this.serializers=E.toArray(arguments)}function su(e,t){return e.tag=Zn.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function uu(e){return ge(e)?""+e:""}function du(e,t){return e.id=uu(t.id),e}function cu(e,t){return e.cls=uu(k.getClass(t)),e}E.extend(au.prototype,{add:function(e){this.serializers.push(e)},remove:function(e){e=E.indexOf(this.serializers,e);0<=e&&this.serializers.splice(e,1)},serialize:function(n,i){return n?(i=i||n,E.reduce(this.serializers,function(e,t){return t.call(this,e,n,i)},{},this)):{}}});var lu=256,pu=64,hu={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 fu=function(e,t,n){var i;return e&&e.nodeName?"img"==(i=e.nodeName.toLowerCase())&&"src"==t||"a"==i&&"href"==t?(i=e.getAttribute(t),Vr((i=i)&&0===i.indexOf("data:")?(C.debug("Embedded data provided in URI."),i.substring(0,i.indexOf(","))):i+"")):(i=t,e=(t=e).getAttribute?t.getAttribute(i):t[i],(!n||typeof e===n)&&e?E.isString(e)?Ze.call(e).substring(0,lu):e:null):null};function gu(t){var e,n,i;return E.isRegExp(t)&&E.isFunction(t.test)?function(e){return t.test(e)}:E.isArray(t)?(e=E.map(E.filter(t,E.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 E.any(e,function(e){return e.test(t)})}):E.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)}):E.constant(!1)}function mu(e,t,n,i){try{var r,o=E.indexBy(t),a=E.filter(E.filter(e,function(e){return n(e.nodeName)||o[e.nodeName]}),function(e){return!i(e.nodeName)});return a.length<=pu?E.pluck(a,"nodeName"):(r=E.groupBy(e,function(e){return o[e.nodeName]?"defaults":E.isString(e.value)&&e.value.length>lu?"large":"small"}),E.pluck([].concat(E.sortBy(r.defaults,"nodeName")).concat(E.sortBy(r.small,"nodeName")).concat(E.sortBy(r.large,"nodeName")).slice(0,pu),"nodeName"))}catch(s){return C.error("Error collecting DOM Node attributes: "+s),[]}}function vu(t,n){var e=gu(h.get("htmlAttributes")),i=gu(h.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=fu(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},mu(n.attributes,hu[r]&&hu[r].attr,e,i));return E.each(r,function(e){t.attrs[e.toLowerCase()]=fu(n,e)}),t}function yu(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=E.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),e.childIndex=n.filter(function(e){return e.nodeType==so}).indexOf(t).value()),e}function bu(i,e){var r;return h.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(bu),e=this.serialize(e.previousElementSibling),this.add(bu),i.attrs=i.attrs||{},E.each(e,function(e,t){var n={cls:"class",txt:"pendo_text"}[t]||t;E.isEmpty(e)||(E.isObject(e)?E.each(e,function(e,t){e&&!E.isEmpty(e)&&(i.attrs[r+n+"_"+t]=e)}):i.attrs[r+n]=e)})),i}var wu=new au(su,du,cu,vu,yu,bu),Su=function(e){return"BODY"===e.nodeName&&e===Ko()||null===e.parentNode&&!Zn.isElementShadowRoot(e)},Iu="pendo-ignore",_u="pendo-analytics-ignore",Eu=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=wu.serialize(o,e)}while(r||!st(a.cls,Iu)&&!st(a.cls,_u)||(r=!0),n.parentElem=a,n=a,(i=Zn.getParent(o))&&!Su(o));return r&&(t.parentElem.ignore=!0),t.parentElem},Cu=["","left","right","middle"],t=function(e){return e},e=function(e,t){return e[t]},Tu=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return Cu[t]}],["altKey",e,t,t],["ctrlKey",e,t,t],["metaKey",e,t,t],["shiftKey",e,t,t]],xu={click:function(e,t){for(var n=[],i=0;i<Tu.length;i++){var r=Tu[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}},ku=function(t){try{if(!k.data.get(t,"counted")){k.data.set(t,"counted",!0);var n=Cr(t),i=t.type,e={},r=xu[i];if(r&&(e=r(t,e)),k.data.get(t,"stopped")&&(e.stopped=!0),t.from&&E.isString(t.from)&&(e.from=t.from),n=(s=n).nodeType===ao?s.parentNode:s.nodeType===lo?null:s.correspondingUseElement||s){var o=Eu(n),a=(E.extend(o,e),tu());if(a&&A.startPoller(),!o.ignore){let e;"click"===i&&(e=function(e){e=function(e){const n={};return{getEventProperties:function(){return n},addEventProperty:function(e,t){E.isString(e)&&!E.isUndefined(t)?n[e]=t:C.error("Failed to add click event property")},target:e}}(e),m.onClickCaptured.trigger(e),e=e.getEventProperties();if(!E.isEmpty(e))return e}(n)),ys(i,{target:o},undefined,undefined,e,t),m.trigger("appUsage",o,t)}}else C.info("Invalid HTML target",{contexts:["event","dom","processing"]})}}catch(u){C.critical("pendo.io while handling event",{error:u})}var s};var Au=E.debounce(ku,5e3,!0),Ou=function(e){const t=[];E.contains(e=e||["click","focus","submit","change"],"change")&&(e=E.without(e,"change"),t.push(()=>{Au.cancel()}),t.push(_r(document,"change",Au,!0)));var n,i=h.get("interceptElementRemoval")||h.get("syntheticClicks.elementRemoval"),r=h.get("syntheticClicks.targetChanged"),r=(t.push(function(t,e,n,i){var r,o,a=[],s=Fe.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&&Cr(r)!==Cr(e)&&(o=!0,t(r))},click:function(e){r=null,o&&k.data.set(e,"ignore",!0),o=!1,n&&c.unwrap()},intercept:function(e){e=function(e){var t=[];for(;e&&!Su(e);)t.push(e),e=e.parentNode;return t}(Cr(e));E.each(e,function(e){e=Ru(e,c.remove);a.push(e)})},remove:function(){r&&(t(r),r=null),c.unwrap()},unwrap:function(){0<a.length&&(E.each(a,function(e){e()}),a=[])},teardown:function pv(){c.unwrap(),E.each(d,function(e){e()})}};e&&(d.push(_r(document,u,c.down,!0)),d.push(_r(document,s,c.up,!0)),d.push(_r(document,"click",c.click,!0)));return c}(k.event.trigger,Fe.addEventListener,i,r).teardown),t.push((i=e,n=E.map(i,function(e){return l(document,e,ku,!0)}),()=>{E.each(n,function(e){e()})})),t.push(function(e,t){if(t){const n=[];return n.push(_r(document,iu,()=>{nu(document)&&e(!0,!1)})),n.push(_r(window,ru,E.partial(e,!1,!0))),()=>E.each(n,function(e){e()})}return _r(window,ou,E.partial(e,!0,!0))}(function(e,t){t&&m.appUnloaded.trigger(),e&&m.appHidden.trigger()},h.get("preventUnloadListener"))),m.appHidden.on(()=>{as(0,{hidden:!0})}),m.appUnloaded.on(()=>{as(0,{unload:!0})}),h.get("interceptStopPropagation",!0)),i=h.get("interceptPreventDefault",!0);return r&&t.push(Nu(window.Event,e)),i&&t.push(Mu(window.Event,["touchend"])),()=>{E.each(t,function(e){e()})}};function Ru(n,i){var e=["remove","removeChild"];try{if(!n)return E.noop;E.each(e,function(e){var t=n[e];if(!t)return E.noop;n[e]=E.wrap(t,function(e){return i&&i(),e.apply(this,E.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return E.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){C.critical("ERROR in interceptRemove",{error:t})}return function(){E.each(e,function(e){if(!n[e])return E.noop;e=n[e]._pendoUnwrap;E.isFunction(e)&&e()})}}function Nu(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return E.noop;var i=E.indexBy(e);E.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=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(){E.each(t,function(e){e=n.prototype[e]._pendoUnwrap;E.isFunction(e)&&e()})}}function Mu(t,e){try{if(!t||!t.prototype)return E.noop;var i=E.indexBy(e),n=t.prototype.preventDefault;if(!n)return E.noop;t.prototype.preventDefault=E.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=Sr,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;E.isFunction(e)&&e()}}function l(e,t,n,i){return e&&t&&n?(i&&!Fe.addEventListener&&(i=!1),k.event.add(e,{type:t,handler:n,capture:i})):E.noop}function Lu(e,t,n,i){e&&t&&n&&(i&&!Fe.addEventListener&&(i=!1),k.event.remove(e,t,n,i))}var Pu=function(e){k.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},$u=function(e,t){return"complete"!==(t=t||window).document.readyState?_r(t,"load",e):(e(),E.noop)},R=[],Fu=[],Du={};let Uu={};function Gu(){return R}function ju(){return Bu(R)}function Bu(e){return E.filter(e,function(e){return!e.isFrameProxy})}function zu(e){E.isArray(e)?(R=e,m.guideListChanged.trigger({guideIds:E.pluck(e,"id")})):C.info("bad guide array input to `setActiveGuides`")}var Hu=function(){let n=[];return{addGuide:e=>{var t;E.isEmpty(e)||(n=n.concat(e),E.each(n,e=>e.hide&&e.hide()),e=R,(t=E.difference(e,n)).length<e.length&&(zu(t),g.dispatch("frames/changeGuideList",t)))}}}();function Wu(t,n){return E.find(Ku(),function(e){return E.get(e,t)===n})||null}function N(e){return Wu("id",e)}function qu(e){return Wu("name",e)}function Vu(e,t){return e&&e.id?(e=N(e.id)).findStepById(t):null}function Ku(){var e=E.values(Uu);return e.length?R.concat(E.flatten(e)):R}var Ju="_pendo-guide-tt_",Yu="_pendo-guide-mobile-tt_",Zu=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},Xu=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},Qu=function(e){return!!E.get(e,"attributes.form")};function ed(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function td(){return!!(ed()&&jo().width<=320)||Fe.isMobileUserAgent()}function nd(){var e=nd.attachPoint;if(null==e){var t=h.get("guides.attachPoint");if(E.isString(t)){try{e=yr(t)[0]}catch(n){C.info('Error finding guide attach point "'+t+'"')}e=e||document.createElement("div")}else e=!!E.isFunction(t)&&t();nd.attachPoint=e}return e||Ko()}var id=function(e){var t=Du[e.guideId];if(t){t=t.element();if(Yo(t)&&t.id==="_pendo-badge_"+e.id)return t}},rd=function(e){var t;return e?(t=e.getGuide(),t="building-block"===E.get(t,"attributes.type")||!Xu(t),!e.overrideElement&&t&&(e.overrideElement=id(e)),e.targetElement=od(e),e.overrideElement||e.targetElement):(C.info("Can't get element for null step"),null)},od=function(e){e=e.elementPathRule||null,e=e?yr(e):[Ko()];return 0===e.length?null:E.first(e)};function ad(e){var t=E.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function sd(e,t,n){var i,r,o,e=Ho(e),t=Ho(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!==Bo(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),E.contains([na.X,na.BOTH],i)&&(r.x=0);E.contains([na.Y,na.BOTH],i)&&(r.y=0);return r}(a,jo(),n,ta(Ko(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function ud(e,t,n,i,r){var o,a=E.toArray(arguments).slice(1),s=e.apply(this,a);return n||oa(o=nd())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function dd(){return g.getters["frames/isLeader"]()}function cd(e){return g.dispatch("frames/updateFrameVisibility",{visibility:e})}ld=pn.call({}),pd={validateGuide:1,validateLauncher:1,validateGlobalScript:1},hd={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1},E.each(["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"],function(t){hd[t]&&m[t].on(function(e){return fd[t].apply(fd[t],e.data)}),ld[t]=function(e){return E.isFunction(e)?ld.on(t,e):ld[pd[t]?"triggerAsync":"trigger"].apply(ld,[t].concat(E.toArray(arguments)))}});var ld,pd,hd,fd=ld;var gd={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:function(e,t,n){return t.ajax.get(e).then(function(e){t.guidesPayload(e.data),n()})},endpoint:function(){return"guide.json"},usesXhr:function(){return!0}};function md(e){e=Ia(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}yd=Id={failed:{},verified:{}},wd=Co,Sd=function(e){try{var t=[];return!gd.usesXhr()&&e.domJsonpUrl?t.push(Cd(e,"domJsonpUrl")):gd.usesXhr()&&e.domUrl&&t.push(Ed(e,"domUrl")),e.contentUrlJs?t.push(Cd(e,"contentUrlJs")):e.contentUrl&&t.push(Cd(e,"contentUrl")),y.all(t)}catch(n){throw m.contentVerificationFail.trigger(e,n),n}},bd=function(e){return Sd(e).then(E.noop,function(e){return/verify/.test(e)&&wd(e),y.reject(e)})},vd=function(t){return yd.failed[t.id]?y.reject():yd.verified[t.id]?y.resolve():bd(t).then(function(){yd.verified[t.id]=!0},function(e){return yd.failed[t.id]=!0,y.reject(e)})};var vd,yd,bd,wd,Sd,Id,_d={verify:function(e){return h.get("guideValidation")?vd(e):y.resolve()},reset:function(){Id.failed={},Id.verified={}}};function Ed(e,t){var n,i=e[t];return E.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||md(e[t]),xr.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=q.create()).update(e),c.uint8ToBase64(t.digest())!==n)return y.reject('Unable to verify content at "'+i+'"')})):y.reject('unable to parse "'+i+'"')}function Cd(e,t){var n=e[t];return Fe.sri&&/[?&]sha(256|384|512)=/.test(n)?y.resolve():Ed(e,t)}Td="allow",xd="deny",kd="pending",Od=function(){return 0<E.size(fd._handlers.validateGuide)},Rd=function(e,n){var i=[];return E.each(e,function(e,t){n&&(t=n+"."+t),E.isObject(e)?E.each(Rd(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var Td,xd,kd,Ad,Od,Rd,Nd={state:Ad={},Step:function(e){var n=this;function i(e){return E.filter([["content",md(e.contentUrl)],["contentCss",md(e.contentUrlCss)],["contentJs",md(e.contentUrlJs)],["dom",md(e.domUrl)],["domJsonp",md(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=Rd(t)).length&&(t=E.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return E.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<E.size(fd._handlers.validateLauncher)&&n.data.template};return n.before("update",function(){if(r()&&i)return!1}),n.before("render",function(){var e,t;if(r())return!i&&(t="launcher-"+rt(n.signature()),(t=Ad[t])!==xd)&&(t!==Td?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+rt(t),fd.validateLauncher(t).then(function(){Ad[e]=Td},function(){Ad[e]=xd}).then(function(){i=!1,n.render(),n.update(R)},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=Rd(this.data);return t.length&&(t=E.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(!Od())return y.resolve();try{return E.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=P.findResourceCenterModules(t,R),t=[t].concat(n),y.all(E.map(t,Md))):Md(e)}catch(i){throw m.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!Od()||!!(e=Ad[e.guideId])&&e.status===Td},invalid:function(e){return!!Od()&&!!(e=Ad[e.guideId])&&e.status===xd},reset:function(){Ad={}}};function Md(i){var r=Ad[i.id];return r||(r={},Ad[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+rt(e),n=(r[t]||(r[t]={status:kd},r.status=kd),r[t].promise);return n||(n=fd.validateGuide(e,i).then(function(){r[t].status=Td,r.status=Td},function(e){return r[t].status=xd,r.status=xd,y.reject(e)}),r[t].promise=n),n})}function Ld(e,t){var n=E.toArray(arguments).slice(2);return E.reduce(e,function(e,t){return t.apply(e,n)},t)}function Pd(e){return E.isFunction(e.before)?e:Ld(Pd.behaviors,e)}function $d(e,t){return Ld($d.behaviors,e,t)}function Fd(e){var t,n,i=h.getLocalConfig("contentHost");return i&&e?(t=new RegExp("(https:)?\\/\\/"+((t=Ge)===ve?"pendo-static":Se(t))+"-\\d+\\.storage\\.googleapis\\.com","g"),n=new RegExp("(https:)?\\/\\/"+Se(Ge)+"\\.storage\\.googleapis\\.com","g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+wt(Be),"g"),i)):e}function Dd(e){return h.getLocalConfig("contentHost")?JSON.parse(Fd(JSON.stringify(e))):e}Pd.behaviors=[],$d.behaviors=[];var Ud=function(){var d={},c=E.compose(function(e){var t=function(){var e=wt(h.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&C.debug("Failed to verify URL: "+e+" vs "+t),e},Fd);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}},Ut="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 U,o,G,j,B,z,H,e={exports:{}};function W(e){e?(z[0]=z[16]=z[1]=z[2]=z[3]=z[4]=z[5]=z[6]=z[7]=z[8]=z[9]=z[10]=z[11]=z[12]=z[13]=z[14]=z[15]=0,this.blocks=z):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,U="object"==typeof window?window:{},t=!U.JS_SHA1_NO_COMMON_JS&&n.exports,o="0123456789abcdef".split(""),G=[-2147483648,8388608,32768,128],j=[24,16,8,0],B=["hex","array","digest","arrayBuffer"],z=[],H=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===U.ArrayBuffer?new Uint8Array(e):e).length||0,a=this.blocks;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),i)for(n=this.start;r<o&&n<64;++r)a[n>>2]|=e[r]<<j[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<j[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<j[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<j[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<j[3&n++],a[n>>2]|=(128|t>>12&63)<<j[3&n++]),a[n>>2]|=(128|t>>6&63)<<j[3&n++]),a[n>>2]|=(128|63&t)<<j[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,64<=n?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},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]|=G[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},Pe=function(){var t=H("hex");t.create=function(){return new W},t.update=function(e){return t.create().update(e)};for(var e=0;e<B.length;++e){var n=B[e];t[n]=H(n)}return t}(),t?n.exports=Pe:U.sha1=Pe;var q=p(e.exports);let V;const K={createScriptURL:e=>e,createHTML:e=>e};function J(e){return V||(V=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",K):K),e.trustedTypesPolicy=V),V}var I,Z="stagingServerHashes",Y={};function X(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(e,t){if(Q(e=e||Y))return!0;if(t=t||window.location,(o=e)&&o.stagingAgentUrl&&o[Z]){o=t.host;for(var n=c.uint8ToBase64(q.create().update(o).digest()),i=0,r=e[Z].length;i<r;++i)if(e[Z][i]===n)return!0}var o;if((o=e)&&o.stagingAgentUrl&&o.stagingServers)for(var a=0,s=e.stagingServers.length;a<s;++a){var u=e.stagingServers[a];if((u="string"==typeof u?new RegExp("^"+u+"$"):u)instanceof RegExp&&u.test(t.host))return!0}return!1}var re=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function oe(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function ae(e){if(!e._q)for(var t=re,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){oe(t,e,arguments)}}(t[n],e)}function se(e,t,n){if(!ee(i=e)&&!Q(i)&&ie(i)){i=ne(e,!0,n);if(i)return ae(t),de(i,t),!0}var i;return!1}function ue(e,t,n){if(r=n,!ee(i=e)&&!i.unminified&&r){i=ne(e,!1,n);if(i)return ae(t),de(i,t),!0}var i,r;return!1}function de(e,t){var n=document.createElement("script"),t=(n["async"]=!0,n.src=J(t).createScriptURL(e),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(n,t):(document.head||document.body).appendChild(n)}function ce(e){Y=e}function le(){return void 0===u?{}:u}function pe(e){return Y[e]}he(window.setTimeout,window);function he(e,t){return"function"==typeof e.bind?e.bind(t):e}var fe,Dt=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return he(e[t],e)}(window),E=p(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Ut&&Ut.global===Ut&&Ut||Function("return this")()||{},i=Array.prototype,F=Object.prototype,$="undefined"!=typeof Symbol?Symbol.prototype:null,D=i.push,u=i.slice,l=F.toString,U=F.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),G=Array.isArray,j=Object.keys,B=Object.create,z=t&&ArrayBuffer.isView,H=isNaN,W=isFinite,q=!{toString:null}.propertyIsEnumerable("toString"),V=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],K=Math.pow(2,53)-1;function c(r,o){return o=null==o?r.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),n=0;n<e;n++)t[n]=arguments[n+o];switch(o){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}for(var i=Array(o+1),n=0;n<o;n++)i[n]=arguments[n];return i[o]=t,r.apply(this,i)}}function o(e){var t=typeof e;return"function"==t||"object"==t&&!!e}function J(e){return void 0===e}function Z(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var Y=r("String"),X=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=G||r("Array");function g(e,t){return null!=e&&U.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return X(e)&&H(e)}function ue(e){return function(){return e}}function de(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=K}}function ce(t){return function(e){return null==e?void 0:e[t]}}var m=ce("byteLength"),le=de(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return z?z(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=V.length,i=e.constructor,r=p(i)&&i.prototype||F,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=V[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(j)return j(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return q&&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 $.valueOf.call(e)===$.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 q&&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"],G=e.concat(we,n),Se=e.concat(n),t=["add"].concat(e,we,"has"),n=a?be(G):r("Map"),e=a?be(Se):r("WeakMap"),G=a?be(t):r("Set"),a=r("WeakSet");function w(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ie(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function _e(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function Ee(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=Ee(d),s=Ee(y),Te=Ee(d,!0);function xe(e){var t;return o(e)?B?B(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 Oe(e,t,n){e=Ae(e,S(t));return J(e)?n:e}function Re(e){return e}function I(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return Ae(e,t)}}function _(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?Re:p(e)?_(e,t,n):(o(e)&&!f(e)?I:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function E(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 $e(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;"},De=$e(t),t=$e(Ie(t)),Ue=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Ge=/(.)^/,je={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Be=/\\|'|\r|\n|\u2028|\u2029/g;function ze(e){return"\\"+je[e]}var He=/^\s*(\w|\$)+\s*$/;var We=0;function qe(e,t,n,i,r){return i instanceof t?(i=xe(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var T=c(function(r,o){var a=T.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),i=0;i<t;i++)n[i]=o[i]===a?arguments[e++]:o[i];for(;e<arguments.length;)n.push(arguments[e++]);return qe(r,s,this,this,n)};return s}),Ve=(T.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return qe(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),x=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(x(s)&&(f(s)||ae(s)))if(1<t)k(s,t-1,n,i),r=i.length;else for(var u=0,d=s.length;u<d;)i[r++]=s[u++];else n||(i[r++]=s)}return i}var Ke=c(function(e,t){var n=(t=k(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Ve(e[i],e)}return e});var Je=c(function(e,t,n){return Dt(function(){return e.apply(null,n)},t)}),Ze=T(Je,b,1);function Ye(e){return function(){return!e.apply(this,arguments)}}function Xe(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=T(Xe,2);function et(e,t,n){t=E(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=E(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=E(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=(x(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function A(e,t,n){if(t=_(t,n),x(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function O(e,t,n){t=E(t,n);for(var i=!x(e)&&y(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function dt(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=_(t,i,4),s=n,u=!x(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 R(e,i,t){var r=[];return i=E(i,t),A(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=E(t,n);for(var i=!x(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=E(t,n);for(var i=!x(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function N(e,t,n,i){return x(e)||(e=w(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=c(function(e,n,i){var r,o;return p(n)?o=n:(n=S(n),r=n.slice(0,-1),n=n[n.length-1]),O(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 O(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=x(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&o<n&&(o=n);else i=E(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):Y(e)?e.match(vt):x(e)?O(e,Re):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=x(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=E(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}),It=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),_t=M(function(e,t,n){e[n?0:1].push(t)},!0);function Et(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,t[1])),t=d(e)):(i=Et,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}),Tt=c(function(e,n){var t,i=n[0];return p(i)?(i=Ye(i),1<n.length&&(t=n[1])):(n=O(k(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Ct(e,i,t)});function xt(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]:xt(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),R(e,function(e){return!N(t,e)})}),Ot=c(function(e,t){return At(e,t)});function Rt(e,t,n,i){Z(t)||(i=n,n=t,t=!1),null!=n&&(n=E(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 Rt(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(_e(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return D.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:J,isBoolean:Z,isElement:function(e){return!(!e||1!==e.nodeType)},isString:Y,isNumber:X,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&W(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||Y(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:G,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:Ie,functions:_e,methods:_e,extend:Ce,extendOwn:s,assign:s,defaults:Te,create:function(e,t){return e=xe(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:Oe,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=E(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:Re,constant:ue,noop:Pe,toPath:ke,property:Ne,propertyOf:function(t){return null==t?Pe:function(e){return Oe(t,e)}},matcher:I,matches:I,times:function(e,t,n){var i=Array(Math.max(0,e));t=_(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:Fe,now:C,escape:De,unescape:t,templateSettings:Ue,template:function(o,e,t){e=Te({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||Ge).source,(e.interpolate||Ge).source,(e.evaluate||Ge).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace(Be,ze),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(!He.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{throw new Error("Function constructor not supported")}catch(n){throw n.source=s,n}return(e=function(e){return(void 0).call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=S(t)).length;if(!i)return p(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++We+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:T,bind:Ve,bindAll:Ke,memoize:function(i,r){var o=function(e){var t=o.cache,n=""+(r?r.apply(this,arguments):e);return g(t,n)||(t[n]=i.apply(this,arguments)),t[n]};return o.cache={},o},delay:Je,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=Dt(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=Dt(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=Dt(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 T(t,e)},negate:Ye,compose:function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:Xe,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:ut,detect:ut,findWhere:function(e,t){return ut(e,I(t))},each:A,forEach:A,map:O,collect:O,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:R,select:R,reject:function(e,t,n){return R(e,Ye(E(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 R(e,I(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=x(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&n<o&&(o=n);else i=E(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=E(i,t),gt(O(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:wt,indexBy:St,countBy:It,partition:_t,toArray:yt,size:function(e){return null==e?0:(x(e)?e:y(e)).length},pick:Ct,omit:Tt,first:kt,head:kt,take:kt,initial:xt,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return R(e,Boolean)},flatten:function(e,t){return k(e,t,!1)},without:Ot,uniq:Rt,unique:Rt,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}),$t=P.toPath;return P.mixin({toPath:function(e){return P.isString(e)?e.split("."):$t(e)}}),P._=P}());function ge(e){return!(null==e)}function me(e){return E.isFunction(e)||E.isRegExp(e)?e:E.isArray(e)?E.map(e,me):E.isObject(e)?E.reduce(e,function(e,t,n){return e[n]=me(t),e},{}):e}var f=function(){var i=E.all,r=E.each,o=E.filter,a=E.first,s=E.find,n=E.map,u=E.pluck,d="snippet",c="pendoconfig",l="global",p="default";const h={};function e(e,t=[c],n,i){e&&!h[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),h[e]=n)}e("additionalApiKeys",[c,d]),e("allowedOriginServers"),e("allowMixedApiKeyFrames",[d,c],!0),e("annotateUrl",[d]),e("apiKey",[c,d]),e("assetHost",[d,c]),e("autoFrameInstall",[d,c],!1),e("blockAgentMetadata",[c],!1),e("contentHost",[d,c]),e("cookieDomain",[d,c]),e("dataHost",[d,c]),e("disableAutoInitialize"),e("disableCookies",[d,c]),e("disablePendo",[d,c],!1),e("disablePersistence",[d,c]),e("enableSignedMetadata",[c],!1),e("frameIdentitySync",[d,c],!1),e("frameIdentityTopDownOnly",[d,c],!0),e("forceAnonymous",[d,c],!1),e("identityStorageLifetime",[d,c]),e("identityStorageSuffix",[d,c]),e("ignoreHashRouting",[d,c]),e("initializeImmediately",[d,c],!1),e("installType"),e("localStorageOnly",[d,c]),e("location.pushState",[d,c],!0),e("maxCookieTTLDays",[d,c],Infinity),e("observeShadowRoots",[d,c],!1),e("pendoCore",[c],!0),e("pendoGlobalKey",[c]),e("preferBroadcastChannel",[d,c],!1),e("preferMutationObserver",[d,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[d,c],!1),e("promotedAgentMetadataConfigurations",[c]),e("queryStringWhitelist",[d]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[d]),e("selfHosted"),e("selfHostedAgentUrl",[d,c]),e("sendEventsWithPostOnly",[d,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[d,c],[]),e("analytics.excludeEvents",[d,c],[]),e("analytics.localStorageUnload",[d,c],!1),e("enableDebugEvents",[d,c]),e("freeNPSData"),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[d,c],!0),e("excludeAllText",[c,d],!1,!0),e("excludeNonGuideAnalytics",[d,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptElementRemoval",[d,c],!1),e("interceptPreventDefault",[d,c],!0),e("interceptStopPropagation",[d,c],!0),e("syntheticClicks.elementRemoval",[d,c],!1),e("syntheticClicks.targetChanged",[d,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[d,c]),e("cacheGuides",[d,c],!1),e("cacheGuidesTimeout",[c],6e5),e("delayGuides",[d]),e("disableDesigner",[c,d],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[d,c],!1),e("disableGuidePseudoStyles",[d,c],!1),e("disableGuides",[d]),e("disablePrefetch",[d,c]),e("enableDesignerKeyboardShortcut",[d]),e("enableGuideTimeout",[c,d],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,d],1e4),e("guideTimeout",[d]),e("guideValidation",[d,c],!1),e("guides.attachPoint",[d]),e("guides.delay",[d]),e("guides.disabled",[d]),e("guides.ejectOnTimeout",[d,c],!1),e("guides.globalScripts",[d,c],[]),e("guides.timeout",[d]),e("guides.tooltip.arrowSize",[d]),e("inlineStyleNonce",[d]),e("leaderKey",[d,c],[]),e("preventCodeInjection",[c,d,l],!1),e("previewModeAssetPath"),e("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("forceParentDesigner",[d]),e("enableAllEmbeddedGuideEvents",[c],!1),e("formValidation",[c],!1);var f={};function g(e){return h[e]||{name:e}}function m(e,t){if(t)return t=t(),ge(e=E.get(t.lookup,(t=e,E.get(t,"key")||E.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||E.get(e,"supportedSources",[d,c,l]),o(n(t,E.partial(v,e)),function(e){return ge(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||E.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&ge(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function w(e,t,n){this.name=e,this.value=t,this.source=n}function S(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(u(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[d]=function(){return{lookup:fe||window.pendo_options,name:d}},f[c]=function(){return{lookup:Y,name:c}},f[l]=function(){return{lookup:I,name:l}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get:function(e,t){return b(e,t).value},getLocalConfig:function(e,t){return arguments.length?b(e,t,[d]).value:me(fe)},getHostedConfig:function(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig:function(e){fe=e},options:()=>u(h,"name"),sources:{SNIPPET_SRC:d,PENDO_CONFIG_SRC:c,GLOBAL_SRC:l,DEFAULT_SRC:p},validate:function(t){t.groupCollapsed("Validate Config options"),r(S(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}(),ve="prod",ye="extension",be="native";function we(){return f.get("installType")||be}function Se(e){var t;return e===ve?"pendo-io-static":"prod-jp"===e?"pendo-jp-prod-static":"pendo-"+((t=/^prod-(.+)$/.exec(e))&&1<t.length?t[1]:e)+"-static"}var Ie,_e=function(e,t){return e=e||10,(t=!isNaN(ke)&&(!t||ke<t))&&Ie<e};function Ee(e){return parseInt(e,10)}var Ce=function(e){return E.isString(e)?e.toLowerCase():e};function Te(){return(window.navigator||{}).userAgent}t=Te(),n=Ee((/msie (\d+)/.exec(Ce(t))||[])[1]),Ie=n=isNaN(n)?Ee((/trident\/.*; rv:(\d+)/.exec(Ce(t))||[])[1]):n;var xe,ke=function(e,t){e=Ee((/trident\/(\d+)/.exec(Ce(e))||[])[1]);return e=isNaN(e)&&7==t?3:e}(Te(),Ie),Ae={},Oe=Ee((/android (\d+)/.exec(Ce(Te()))||[])[1]),Re=/Boxee/i.test(Te()),Ne=window.document||{},Me=Ne.documentMode,Le=/^(Moz|webkit|O|ms)(?=[A-Z])/,Pe=Ne.body&&Ne.body.style,e=!1,t=!1;if(Pe){for(var Fe in Pe)if(Fe=Le.exec(Fe)){xe=(xe=Fe[0]).substr(0,1).toUpperCase()+xe.substr(1);break}xe=xe||"WebkitOpacity"in Pe&&"webkit",e=!!("transition"in Pe||xe+"Transition"in Pe),t=!!("animation"in Pe||xe+"Animation"in Pe),!Oe||e&&t||(e=E.isString(Ne.body.style.webkitTransition),t=E.isString(Ne.body.style.webkitAnimation))}var $e={supportsHistoryApi:E.memoize(function(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&E.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&E.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&E.get(n,"pushState.writable",!0)&&E.get(n,"replaceState.writable",!0),i=!(Oe<4),r=we()===ye;return!(!e||t||!n||!i||Re||r)}),supportsHashChange:function(){var e="onhashchange"in window,t=!Me||7<Me,n=we()===ye;return!(!e||!t||n)},hasEvent:function(e){var t;return("input"!=e||9!=Ie)&&(E.isUndefined(Ae[e])&&(t=Ne.createElement("div"),Ae[e]="on"+e in t),Ae[e])},vendorPrefix:xe,transitions:e,animations:t,android:Oe,msie:Ie,msieDocumentMode:Me,safari:/apple/i.test(navigator.vendor),sri:"integrity"in document.createElement("script"),addEventListener:E.isFunction(window.addEventListener),MutationObserver:/native/.test(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:E.memoize(function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Te())})},De=function(){return!isNaN(Ie)&&11!=Ie&&"CSS1Compat"!==document.compatMode},Ue=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,Ie<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+I.TOOLTIP_ARROW_SIZE),e.arrow.top=i-I.TOOLTIP_ARROW_SIZE,10==Ie?e.arrow.top--:Ie<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=10+I.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*I.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-I.TOOLTIP_ARROW_SIZE),e.arrow.border.top=e.arrow.top+n,e.arrow.border.left=e.arrow.left):("left"==e.arrow.hbias?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left-1):"right"==e.arrow.hbias&&(e.left=Math.max(0,t.left-r-I.TOOLTIP_ARROW_SIZE),e.arrow.left=r-I.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left+1),e.top=t.top+t.height/2-i/2,e.arrow.top=i/2-I.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e},Ge="",je="",Be="",ze="",n="",He="2.280.0_",Pe="2.280.0",We="xhr",qe=function(){return De()?He+"+quirksmode":He};function Ve(){return(pe("installType")||le().installType)===ye}function Ke(){return-1!==Ge.indexOf("prod")}var Je=/^\s+|\s+$/g;function Ze(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||57344<=i?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}var Ye=(Ye=String.prototype.trim)||function(){return this.replace(Je,"")},e={exports:{}};!function(){var X=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===X?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&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,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===F,o=X,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),$=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&$,a[s++]=$>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,D=i.length;o<D;++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,U=c.length;l<U;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,G,b,w,S,j,I=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],z=Array(19),_=ne;for(I.b(1,1,Q),I.b(_,2,Q),p=re(this,n),_=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 E,C,T,x,k,H=h,W=f,A=new(ee?Uint32Array:Array)(H+W),O=new(ee?Uint32Array:Array)(316),R=new(ee?Uint8Array:Array)(19),N=E=0;N<H;N++)A[E++]=m[N];for(N=0;N<W;N++)A[E++]=v[N];if(!ee)for(N=0,T=R.length;N<T;++N)R[N]=0;for(N=x=0,T=A.length;N<T;N+=E){for(E=1;N+E<T&&A[N+E]===A[N];++E);if(C=E,0===A[N])if(C<3)for(;0<C--;)R[O[x++]=0]++;else for(;0<C;)(k=C-3<(k=C<138?C:138)&&k<C?C-3:k)<=10?(O[x++]=17,O[x++]=k-3,R[17]++):(O[x++]=18,O[x++]=k-11,R[18]++),C-=k;else if(O[x++]=A[N],R[A[N]]++,--C<3)for(;0<C--;)O[x++]=A[N],R[A[N]]++;else for(;0<C;)C-3<(k=C<6?C:6)&&k<C&&(k=C-3),O[x++]=16,O[x++]=k-3,R[16]++,C-=k}for(e=ee?O.subarray(0,x):O.slice(0,x),y=oe(R,7),S=0;S<19;S++)z[S]=y[B[S]];for(g=19;4<g&&0===z[g-1];g--);for(G=ae(y),I.b(h-257,5,Q),I.b(f-1,5,Q),I.b(g-4,4,Q),S=0;S<g;S++)I.b(z[S],3,Q);for(S=0,j=e.length;S<j;S++)if(b=e[S],I.b(G[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}I.b(e[S],w,Q)}for(var M,q,_=[_,m],L=[L,v],V=_[0],K=_[1],J=L[0],Z=L[1],P=0,Y=p.length;P<Y;++P)if(M=p[P],I.b(V[M],K[M],Q),256<M)I.b(p[++P],p[++P],Q),q=p[++P],I.b(J[q],Z[q],Q),I.b(p[++P],p[++P],Q);else if(256===M)break;this.a=I.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,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]===X&&(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,I=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,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(I);else for(m in g=[],v=0,I)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),I[m])}.call(e.exports);var Xe={Deflate:p(e.exports).Zlib.Deflate},Qe="base64url";function et(e,t){t=t||Qe;e=Ze("string"==typeof e?e:JSON.stringify(e)),e=new Xe.Deflate(e).compress();return t===Qe?c.uint8ToBase64(e):e}t={exports:{}};!function(){var o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||void 0===t?r=r[n]||(r[n]={}):r[n]=t}var a={c:function(e,t,n){return a.update(e,0,t,n)},update:function(e,t,n,i){var r=a.a,o="number"==typeof n?n:n=0,i="number"==typeof i?i:e.length;for(t^=4294967295,o=7&i;o--;++n)t=t>>>8^r[255&(t^e[n])];for(o=i>>3;o--;n+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^r[255&(t^e[n])])>>>8^r[255&(t^e[n+1])])>>>8^r[255&(t^e[n+2])])>>>8^r[255&(t^e[n+3])])>>>8^r[255&(t^e[n+4])])>>>8^r[255&(t^e[n+5])])>>>8^r[255&(t^e[n+6])])>>>8^r[255&(t^e[n+7])];return(4294967295^t)>>>0},d:function(e,t){return(a.a[255&(e^t)]^e>>>8)>>>0},b:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]};a.a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?new Uint32Array(a.b):a.b,e("Zlib.CRC32",a),e("Zlib.CRC32.calc",a.c),e("Zlib.CRC32.update",a.update)}.call(t.exports);var tt={CRC32:p(t.exports).Zlib.CRC32},nt=function(e,n){var i;return 200<=(n=n||0)?e:E.isArray(e)?E.map(e,function(e){return nt(e,n+1)}):!E.isObject(e)||E.isDate(e)||E.isRegExp(e)||E.isElement(e)?E.isString(e)?E.escape(e):e:(i={},E.each(e,function(e,t){i[t]=nt(e,n+1)}),i)},it=function(e){e=Ze(e);return c.uint8ToBase64(e)},rt=function(e){if(void 0!==e)return e=Ze(e=E.isString(e)?e:JSON.stringify(e)),tt.CRC32.calc(e,0,e.length)};function ot(e){return e[Math.floor(Math.random()*e.length)]}function at(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=ot(i);return n}var st=function(e,t,n){return!(!ge(e)||!ge(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function v(){return(new Date).getTime()}function ut(){return"undefined"!=typeof $A&&E.isFunction($A.get)&&E.isString($A.get("$Browser.formFactor"))}function dt(e,t=window){var[e,t,n=window]=[E,e,t],i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}e=window;var ct=E.isFunction(e.isFinite)?e.isFinite:e.Number&&E.isFunction(e.Number.isFinite)?e.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function lt(e){return"number"==typeof e&&ct(e)&&Math.floor(e)===e}function pt(e,t,n,i){(t=t||{}).maxRetries=lt(t.maxRetries)?t.maxRetries:10,t.delay=lt(t.delay)?t.delay:50,t.exponentialBackoff=t.exponentialBackoff||!1;var r=function(e){return e&&"[object Function]"==={}.toString.call(e)},o=r(n)?n:function(){},a=r(i)?i:function(){},n=e();n?o(n):0<t.maxRetries?Dt(function(){t.maxRetries=--t.maxRetries,t.delay=t.exponentialBackoff?2*t.delay:t.delay,pt(e,t,o,a)},t.delay):(a||function(){})()}var ht=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function ft(e){return E.isObject(e)&&E.isFunction(e.then)}var gt,mt=E.isFunction(window.decodeURIComponent)?window.decodeURIComponent:E.identity,vt=E.isFunction(window.encodeURIComponent)?window.encodeURIComponent:E.identity;class yt{constructor(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}toString(){let e=this.message;return this.error&&e!==this.error.message&&(e=e+":"+this.error.message),this.attributes&&(e+=": "+E.map(this.attributes,(e,t)=>t+"="+e)),e}hashCode(){return this.toString()}}(t=gt=gt||{}).Debug="debug",t.Info="info",t.Warn="warn",t.Error="error",t.Critical="critical";class bt extends class{constructor(){this.listeners={}}addEventListener(e,t){let n=this.listeners[e];n||(n=[],this.listeners[e]=n),E.findIndex(n,e=>t===e)<0&&n.push(t)}removeEventListener(e,t){var n,i=this.listeners[e];i&&0<=(n=E.findIndex(i,e=>t===e))&&(i.splice(n,1),i.length||delete this.listeners[e])}dispatchEvent(t){var e=this.listeners[t.type];e&&E.each(e,e=>{e(t)})}}{write(e,t,n){this.dispatchEvent(new yt(t,e,n))}writeError(e,t,n){let i,r;E.isString(e)?(i=e,r={message:i}):(r=e,i=r.message),n&&n.error&&(r=n.error,delete n.error);e=new yt(t,i,n);e.error=r,this.dispatchEvent(e)}debug(e,t){this.write(e,gt.Debug,t)}info(e,t){this.write(e,gt.Info,t)}warn(e,t){this.writeError(e,gt.Warn,t)}error(e,t){this.writeError(e,gt.Error,t)}critical(e,t){this.writeError(e,gt.Critical,t)}}const C=new bt;function wt(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const St=function(){var e=f.get("storage.allowKeys")||"*";return E.isArray(e)?E.indexBy(e):e};function It(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function _t(n){E.forEach(E.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function Et(e){var t=E.noop,t={getItem:()=>null,setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:It(n,n.getItem,null),setItem:It(n,n.setItem),removeItem:It(n,n.removeItem),clearPendo:E.partial(_t,n)}:t}catch(i){return t}}var Ct,Tt=Et(function(){return window.localStorage}),xt=Et(function(){return window.sessionStorage}),kt={},At=!0,Ot=function(){return f.get("localStorageOnly")},Rt=function(){return!!f.get("disableCookies")};function Nt(e){At=e}var Mt=function(e){var t=Rt()||Ot()?kt[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?mt(e[2]):null},Lt=function(e,t,n,i){var r,o;!At||f.get("preventCookieRefresh")&&Mt(e)===t||(o=Bt(n),(r=new Date).setTime(r.getTime()+o),o=e+"="+vt(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict",Ct&&(o+=";domain="+Ct),Rt()||Ot()?kt[e]=o:document.cookie=o)};function Pt(e){Ct?Lt(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var Ft=function(e,t){return`_pendo_${e}.`+(t||I.apiKey)},$t=function(e,t){return Mt(Ft(e,t))};const Gt=864e5,jt=100*Gt,Bt=(e=jt)=>{var t=f.get("maxCookieTTLDays"),t=t<Infinity?t*Gt:Infinity;return Math.min(e,t)};var zt=function(e,t,n,i,r){n=n||jt,Lt(Ft(e,r),t,n,i)};class Ht{constructor(){this.keys={}}addLocal(e){this._add(e,"local")}addSession(e){this._add(e,"session")}hasLocal(e){return this._has(e,"local")}hasSession(e){return this._has(e,"session")}_add(e,t){this.keys[e]||(this.keys[e]=t)}_has(e,t){return this.keys[e]===t}}var Wt,qt,Vt,Kt,y,h=function(){const o=new Ht;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=St())||n[t])return o[r](e)||C.warn(`storage key ${e} is not registered`),i.apply(this,arguments);C.debug(`writing storage key ${e} is not allowed`)}}function u(){return!Rt()&&!Ct&&d("localStorage")}var d=E.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}});function c(e){e.cache&&(e.cache={})}function r(e,t,n){t=t?e:Ft(e,n);if(u())return localStorage.removeItem(t);Pt(t)}const t=E.extend({},xt),n=(t.setItem=e(t.setItem,"hasSession"),E.extend({},Tt));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){var i;return u()?(i=t?e:Ft(e,n),null===(i=function(e){if(null===e)return null;try{var t=JSON.parse(e);return t.ttl?t.ttl<(new Date).getTime()?null:String(t.value||t):e}catch(n){return e}}(localStorage.getItem(i)))&&r(e,t,n),i):t?Mt(e):$t(e,n)},write:e(function(e,t,n,i,r,o){if(c(d),u())try{var a=i?e:Ft(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+Bt(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void c(d)}catch(s){}if(!i)return zt(e,t,n,r,o);Lt(e,t,n,r)},"hasLocal"),clear:r,registry:o,getLocal:()=>n,getSession:()=>t}}(),Jt=(window.Promise,e=function(){var t=Dt;function d(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void u(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!d(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function u(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){u(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)u(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!d(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a},"function"==typeof(t=window.Promise)&&/native/.test(t)?t:e()),t=(qt=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},Vt=function(n,i){var r=Wt.defer(),o=function(n,i){Dt(function(){var e;try{e=n(i)}catch(t){return void r.reject(t)}e===r.promise?r.reject(new TypeError("Cannot resolve promise with itself")):r.resolve(e)},1)};return{promise:r.promise,handle:function(e,t){e===Kt?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},Kt=1,(Wt={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,E.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(Kt,e)},a=function(e){t(2,e)},s=function(e,t){e=Vt(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},u=function(e){var t=qt();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=qt();return{resolve:e(d),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},Wt);function Zt(e){var n,i=y.defer(),r=E.isArray(e)?[]:{},o=E.size(e);return o?(n=!1,E.each(e,function(e,t){y.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):y.resolve(e)}!Ve()&&$e.isMinimumIEVersion(11)?y={all:function(e){return E.isArray(e)?Jt.all.apply(Jt,arguments):Zt(e)},reject:function(){return Jt.reject.apply(Jt,arguments)},resolve:function(){return Jt.resolve.apply(Jt,arguments)},defer:function(){var n={};return n.promise=new Jt(function(e,t){n.resolve=e,n.reject=t}),n}}:((y=t).all=Zt,y.reject=function(e){var t=y.defer();return t.reject(e),t.promise},y.resolve=function(e){var t=y.defer();return t.resolve(e),t.promise});const Yt=h.getSession(),Xt="pendo_tabId",Qt="pendo_parentTabId";en=window,e=E.partial,tn=E.extend,nn=E.omit,rn={data:{},getItem:function(e){return rn.data[e]},setItem:function(e,t){rn.data[e]=t},removeItem:function(e){rn.data[e]=null,delete rn.data[e]}},on=e(cn,Xt,ln),an=e(cn,"pendo_frameId",rn);var en,tn,nn,rn,on,an,sn={addTracerIds:function(e){return nn(tn(e,{parentTabId:un(Qt,ln),tabId:on(),frameId:an()}),function(e){return e===undefined})},setParentTabId:function(e){dn(Qt,e,ln)},newTabId:function(){var e=at(16);return dn(Xt,e,ln),e},getTabId:on,getFrameId:an,tabIdChanged:function(t){var e;if($e.addEventListener)return en.addEventListener("storage",e=function(e){e.key===Xt&&(rn.removeItem(Xt),t())}),function(){en.removeEventListener("storage",e)}}};function un(e,t){return(E.isFunction(t)?t():t).getItem(e)}function dn(e,t,n){(E.isFunction(n)?n():n).setItem(e,t)}function cn(e,t){var n=un(e,t);return n||dn(e,n=at(16),t),n}function ln(){return n=rn,i=Yt,{getItem(e){var t=n.getItem(e);return t===undefined&&(t=i.getItem(e),n.setItem(e,t)),t},setItem(e,t){n.setItem(e,t),i.setItem(e,t)},removeItem(e){n.removeItem(e),i.removeItem(e)}};var n,i}function pn(){var i=this._handlers={};return this.addEventListener=function(){this.on.apply(this,arguments)},this.removeEventListener=function(){this.off.apply(this,arguments)},this.on=function(e,t){var n;return(E.isString(e)||E.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),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 E.isFunction(t)?(n=E.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=E.toArray(arguments).slice(1);return E.map(t,function(e){return e.apply(I,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return E.map(e,function(e){if(!t.cancel)return e.apply(I,[t])})},this.triggerAsync=function(){var e=E.map(this.trigger.apply(this,arguments),function(e){return!1===e?y.reject():e});return y.all(e)},this}pn.clear=function(t){t&&E.each(E.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};Ti={DEBUG:t="debug",FRAMES:e="frames",LIFECYCLE:r="lifecycle",RUNTIME:Mi="runtime"},hn=[new i("ready",[t,r]),new i("deliverablesLoaded",[t,r]),new i("guidesFailed",[t,r]),new i("guidesLoaded",[t,r]),new i("guideListChanged",[t,r]),new i("guideSeen",[t,r]),new i("guideNotSeen",[t,r]),new i("guideAdvanced",[t,r]),new i("guideDismissed",[t,r]),new i("guideSnoozed",[t,r]),new i("beforeGuideShow",[r]),new i("beforeMount",[Mi]),new i("beforeAdvance",[Mi]),new i("beforePrevious",[Mi]),new i("beforeSnooze",[Mi]),new i("beforeDismiss",[Mi]),new i("beforeUnmount",[Mi]),new i("unmounted",[Mi]),new i("beforeUpdate",[Mi]),new i("updated",[Mi]),new i("guideSnoozeCancelled",[t,r]),new i("guideTimeout",[t,r]),new i("guideLoopStopped",[t,r]),new i("guideUpdateComplete",[r]),new i("designerLaunched",[t,r]),new i("debuggerLaunched",[t,r]),new i("stepEligibility",[t]),new i("identify",[t,r]),new i("metadata",[t,r]),new i("appUnloaded",[t,r]),new i("appHidden",[t,r]),new i("startPreview",[t]),new i("resourceFetchFail",[t]),new i("contentVerificationFail",[t]),new i("contentValidationFail",[t]),new i("renderFail",[t]),new i("appUsage",[r]),new i("eventCaptured",[t]),new i("error",[t,r]),new i("onClickCaptured",[t]),new i("urlChanged",[r]),new i("leaderChanged",[r,e]),new i("transmit:locked",[r]),new i("transmit:unlocked",[r]),new i("sessionChanged",[r]),new i("childFrameJoined",[e]),new i("tabIdChanged:self",[t,r])],fn=pn.call({}),gn={debug:function(){return sn.addTracerIds(vn.apply(null,arguments))},lifecycle:vn,runtime:vn,frames:vn},mn=fn.trigger,fn.trigger=yn,E.each(E.values(Ti),function(e){fn[e]={on:E.partial(fn.on,e),one:E.partial(fn.one,e),off:E.partial(fn.off,e)}}),E.each(hn,function(e){e=e.name,fn[e]={on:E.partial(fn.on,e),one:E.partial(fn.one,e),off:E.partial(fn.off,e),trigger:E.partial(yn,e)}});var hn,fn,gn,mn,m=fn;function i(e,t){this.name=e,this.groups=t||[]}function vn(e,t){e={type:e,ts:v()};return ge(t)&&E.isObject(t)&&(e.data=t),e}function yn(t){var e=E.findWhere(hn,{name:t}),n=E.toArray(arguments).slice(1),i={};return E.each(e.groups,function(e){i.cancel||(i=gn[e](t,n),mn.apply(fn,[e].concat(i)))}),i.cancel||(i=vn(t,n),mn.apply(fn,[t].concat(i))),i}function bn(e){var i=[],r=[],o={},a={},s={state:{},commit:function(t,n){var e=o[t];if(!e)throw new Error("mutation "+t+" not found");e(n),E.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),E.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:E.partial(t,i),subscribeAction:E.partial(t,r),registerModule:function h(n,e){E.isString(n)&&(n=[n]);var t=d(s.state,e,n);E.extend(s.getters,p(e,t,s,n));E.extend(o,c(e,t,n));E.extend(a,l(e,t,s,n));E.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return E.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):E.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 E.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),E.extend(i,me(t.state||{}))}function c(e,n,i){var r={};return E.each(e.mutations,function(e,t){r[u(i,t)]=E.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 E.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return E.each(e.actions,function(e,t){n[u(r,t)]=E.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return E.each(e.getters,function(e,t){a[t]=o[u(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var g=bn(),wn=(g.subscribe(function(e,t){}),"_PENDO_T_"),Sn=11;const In="visitorId",_n="oldVisitorId",En="accountId";var Cn=function(e=""){return e+at(Sn)};var Tn=function(e){return ge(e)&&""!==e&&e!==Nn&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===Ye.call(e).length)},xn=function(e){return!(!e||"number"==typeof e)&&e.substring(0,wn.length)===wn},kn=function(){return!f.get("disablePersistence")},An=function(e){e=e||[In,En,_n];const t=f.get("identityStorageSuffix")||I.apiKey;E.each(e,function(e){Pt(Ft(e,t)),h.clear(e,!1,t)})},On="VISITOR-UNIQUE-ID",Rn=function(e){return On===e},Nn="::",Mn=function(e){return new RegExp(Nn).test(e)};function Ln(e){return e.old_visitor_id!==e.visitor_id}var Pn,Fn=function(e,t){var n,i={old_visitor_id:b(),old_account_id:Gn()};Tn(e)?(Tn(n=e)?Dn(""+n):C.info("Invalid visitor id "+n),n=t,E.isUndefined(n)?C.info("No account id provided"):Tn(n)?(I.accountId=""+n,kn()&&jn(En,I.accountId)):(delete I.accountId,delete(t=f.getLocalConfig()).account,f.setLocalConfig(t),g.commit("metadata/clearAccount"),kn()&&h.clear(En),C.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=b({generate:!0}),i.account_id=Gn(),!Ln(t=i)&&t.old_account_id===t.account_id||(Ln(i)&&(n=i.old_visitor_id)&&(Pn=n,jn(_n,Pn)),m.identify.trigger(i))):C.info("Invalid visitor id "+e)};function $n(){return Cn(wn)}function Dn(e){I.visitorId!==e&&(kn()&&jn(In,e),I.visitorId=e)}function b(e={}){var t=function(){if(Tn(I.visitorId))return I.visitorId;var e=f.get("forceAnonymous");if(kn()){var t=Bn(In);if(Tn(t)&&(!e||xn(t)))return t}return undefined}();return Dn(t=!t&&e.generate?$n():t),t}function Un(){return b()||$n()}var Gn=function(){var e=f.get("forceAnonymous");return Tn(I.accountId)||!kn()||e||(e=Bn(En),I.accountId=e),I.accountId};function jn(e,t){var n=f.get("identityStorageLifetime")||jt,i=f.get("identityStorageSuffix")||I.apiKey;h.write(e,t,n,!1,!0,i)}function Bn(e){var t=f.get("identityStorageSuffix"),n=t||I.apiKey,n=h.read(e,!1,n)||h.read(e,!1,I.apiKey);return t&&h.clear(e,!1,I.apiKey),n}function zn(){var e={old_visitor_id:b({generate:!1}),old_account_id:Gn(),wasCleared:!0};An(),delete I.visitorId,delete I.accountId,b({generate:!0}),E.extend(e,{visitor_id:b(),account_id:Gn()}),m.identify.trigger(e)}function Hn(e){e=e.data[0];return E.get(e,"wasCleared")}var Wn=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||C.critical(e)}}};Mi=function(n){return function qn(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 qn="function"==typeof(e=window.URL)&&/native/.test(e)?e:Mi(document);function Vn(e){if((t=e)&&E.isFunction(t.composedPath))try{return e.composedPath()}catch(n){return e.path}var t;return null}function Kn(e){return e.shadowRoot}function Jn(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function Zn(e,t){return Jn(e,t)?e.host:e.parentNode}var Yn={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:Vn,getShadowRoot:Kn,isElementShadowRoot:Jn,getParent:Zn,isShadowSelector:Xn,wrapSizzle:function(i){i.intercept(function(a,e,n,i,r){var t,o;return Xn(e)?E.isFunction(document.documentElement.attachShadow)?(o=a,t=(t=e).replace(Yn.PSEUDO_REGEX,Yn.PSEUDO_SAFE),t=E.map(o.tokenize(t),Qn),E.reduce(t,function(e,t){return e.concat(s(t,n,i,r))},[])):a(e.replace(Yn.PSEUDO_REGEX,""),n,i,r):a(e,n,i,r);function s(e,t,n,i){var r,o;return Xn(e)?(o=s((r={baseCss:(o=(o=e).split(Yn.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(Yn.PSEUDO_ELEMENT)}).baseCss,t),E.reduce(o,function(e,t){return Yn.getShadowRoot(t)?e.concat(s(r.shadowCss,Yn.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!Yn.isElementShadowRoot(t)&&(Xn(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function Xn(e){return!!e&&-1<e.indexOf(Yn.PSEUDO_ELEMENT)}function Qn(e){return E.reduce(e,function(e,t){return t.value===Yn.PSEUDO_SAFE?e+Yn.PSEUDO_ELEMENT:e+t.value},"")}var ei,w,S,ti,ni,ii,ri,oi,ai,si,ui,di,_,ci,li,pi,hi,fi,gi,t={exports:{}},r=t,mi=window,T="sizzle"+ +new Date,vi=mi.document,yi=0,bi=0,wi=tr(),Si=tr(),Ii=tr(),_i=tr(),Ei=function(e,t){return e===t&&(ui=!0),0},Ci={}.hasOwnProperty,Ti=[],xi=Ti.pop,ki=Ti.push,Ai=Ti.push,Oi=Ti.slice,Ri=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},Ni="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",e="(?:\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Mi="\\["+a+"*("+e+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+e+"))|)"+a+"*\\]",Li=":("+e+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Mi+")*)|.*)\\)|)",Pi=new RegExp(a+"+","g"),Fi=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),$i=new RegExp("^"+a+"*,"+a+"*"),Di=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),Ui=new RegExp(a+"|>"),Gi=new RegExp(Li),ji=new RegExp("^"+e+"$"),Bi={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+Mi),PSEUDO:new RegExp("^"+Li),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+Ni+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},zi=/HTML$/i,Hi=/^(?:input|select|textarea|button)$/i,Wi=/^h\d$/i,qi=/^[^{]+\{\s*\[native \w/,Vi=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ki=/[+~]/,Ji=new RegExp("\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\([^\\r\\n\\f])","g"),Zi=function(e,t){e="0x"+e.slice(1)-65536;return t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))},Yi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Xi=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Qi=function(){di()},er=lr(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Ai.apply(Ti=Oi.call(vi.childNodes),vi.childNodes),Ti[vi.childNodes.length].nodeType}catch(kw){Ai={apply:Ti.length?function(e,t){ki.apply(e,Oi.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function x(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&&(di(t),t=t||_,li)){if(11!==l&&(s=Vi.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))&&gi(t,d)&&d.id===r)return n.push(d),n}else{if(s[2])return Ai.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&w.getElementsByClassName&&t.getElementsByClassName)return Ai.apply(n,t.getElementsByClassName(r)),n}if(w.qsa&&!_i[e+" "]&&(!pi||!pi.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(d=e,c=t,1===l&&(Ui.test(e)||Di.test(e))){for((c=Ki.test(e)&&ur(t.parentNode)||t)===t&&w.scope||((a=t.getAttribute("id"))?a=a.replace(Yi,Xi):t.setAttribute("id",a=T)),o=(u=ii(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+cr(u[o]);d=u.join(",")}try{return Ai.apply(n,c.querySelectorAll(d)),n}catch(p){_i(e,!0)}finally{a===T&&t.removeAttribute("id")}}}return oi(e.replace(Fi,"$1"),t,n,i)}function tr(){var n=[];function i(e,t){return n.push(e+" ")>S.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function nr(e){return e[T]=!0,e}function ir(e){var t=_.createElement("fieldset");try{return!!e(t)}catch(kw){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function rr(e,t){for(var n=e.split("|"),i=n.length;i--;)S.attrHandle[n[i]]=t}function or(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ar(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&er(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function sr(a){return nr(function(o){return o=+o,nr(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function ur(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ei in w=x.support={},ni=x.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!zi.test(t||e&&e.nodeName||"HTML")},di=x.setDocument=function(e){var e=e?e.ownerDocument||e:vi;return e!=_&&9===e.nodeType&&e.documentElement&&(ci=(_=e).documentElement,li=!ni(_),vi!=_&&(e=_.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",Qi,!1):e.attachEvent&&e.attachEvent("onunload",Qi)),w.scope=ir(function(e){return ci.appendChild(e).appendChild(_.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),w.attributes=ir(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=ir(function(e){return e.appendChild(_.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=!!_.getElementsByClassName,w.getById=ir(function(e){return ci.appendChild(e).id=T,!_.getElementsByName||!_.getElementsByName(T).length}),w.getById?(S.filter.ID=function(e){var t=e.replace(Ji,Zi);return function(e){return e.getAttribute("id")===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&li)return(e=t.getElementById(e))?[e]:[]}):(S.filter.ID=function(e){var t=e.replace(Ji,Zi);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&li){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),S.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},S.find.CLASS=w.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&li?t.getElementsByClassName(e):w.qsa&&li?t.querySelectorAll("."+e):void 0},hi=[],pi=[],(w.qsa=!!_.querySelectorAll)&&(ir(function(e){var t;ci.appendChild(e).innerHTML=J().createHTML("<a id='"+T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&pi.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||pi.push("\\["+a+"*(?:value|"+Ni+")"),e.querySelectorAll("[id~="+T+"-]").length||pi.push("~="),(t=_.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||pi.push("\\["+a+"*name"+a+"*="+a+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||pi.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||pi.push(".#.+[+~]"),e.querySelectorAll("\\\f"),pi.push("[\\r\\n\\f]")}),ir(function(e){e.innerHTML=J().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=_.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&pi.push("name"+a+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&pi.push(":enabled",":disabled"),ci.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&pi.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),pi.push(",.*:")})),(w.matchesSelector=qi.test(fi=ci.matches||ci.webkitMatchesSelector||ci.mozMatchesSelector||ci.oMatchesSelector||ci.msMatchesSelector))&&ir(function(e){w.disconnectedMatch=fi.call(e,"*"),fi.call(e,"[s!='']:x"),hi.push("!=",Li)}),pi=pi.length&&new RegExp(pi.join("|")),hi=hi.length&&new RegExp(hi.join("|")),e=!!ci.compareDocumentPosition,gi=e||ci.contains?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Ei=e?function(e,t){var n;return e===t?(ui=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!w.sortDetached&&t.compareDocumentPosition(e)===n?e==_||e.ownerDocument==vi&&gi(vi,e)?-1:t==_||t.ownerDocument==vi&&gi(vi,t)?1:si?Ri(si,e)-Ri(si,t):0:4&n?-1:1)}:function(e,t){if(e===t)return ui=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==_?-1:t==_?1:r?-1:o?1:si?Ri(si,e)-Ri(si,t):0;if(r===o)return or(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?or(a[i],s[i]):a[i]==vi?-1:s[i]==vi?1:0}),_},x.matches=function(e,t){return x(e,null,null,t)},x.matchesSelector=function(e,t){if(di(e),w.matchesSelector&&li&&!_i[t+" "]&&(!hi||!hi.test(t))&&(!pi||!pi.test(t)))try{var n=fi.call(e,t);if(n||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(kw){_i(t,!0)}return 0<x(t,_,null,[e]).length},x.contains=function(e,t){return(e.ownerDocument||e)!=_&&di(e),gi(e,t)},x.attr=function(e,t){(e.ownerDocument||e)!=_&&di(e);var n=S.attrHandle[t.toLowerCase()],n=n&&Ci.call(S.attrHandle,t.toLowerCase())?n(e,t,!li):undefined;return n!==undefined?n:w.attributes||!li?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},x.escape=function(e){return(e+"").replace(Yi,Xi)},x.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},x.uniqueSort=function(e){var t,n=[],i=0,r=0;if(ui=!w.detectDuplicates,si=!w.sortStable&&e.slice(0),e.sort(Ei),ui){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return si=null,e},ti=x.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=ti(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=ti(t);return n},(S=x.selectors={cacheLength:50,createPseudo:nr,match:Bi,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(Ji,Zi),e[3]=(e[3]||e[4]||e[5]||"").replace(Ji,Zi),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||x.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]&&x.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Bi.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Gi.test(n)&&(t=(t=ii(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Ji,Zi).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=wi[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&wi(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=x.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(Pi," ")+" ").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)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===yi&&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]=[yi,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===yi&&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[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[yi,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=S.pseudos[e]||S.setFilters[e.toLowerCase()]||x.error("unsupported pseudo: "+e);return a[T]?a(o):1<a.length?(t=[e,e,"",o],S.setFilters.hasOwnProperty(e.toLowerCase())?nr(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=Ri(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:nr(function(e){var i=[],r=[],s=ri(e.replace(Fi,"$1"));return s[T]?nr(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),i[0]=null,!r.pop()}}),has:nr(function(t){return function(e){return 0<x(t,e).length}}),contains:nr(function(t){return t=t.replace(Ji,Zi),function(e){return-1<(e.textContent||ti(e)).indexOf(t)}}),lang:nr(function(n){return ji.test(n||"")||x.error("unsupported lang: "+n),n=n.replace(Ji,Zi).toLowerCase(),function(e){var t;do{if(t=li?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=mi.location&&mi.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===ci},focus:function(e){return e===_.activeElement&&(!_.hasFocus||_.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ar(!1),disabled:ar(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!S.pseudos.empty(e)},header:function(e){return Wi.test(e.nodeName)},input:function(e){return Hi.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:sr(function(){return[0]}),last:sr(function(e,t){return[t-1]}),eq:sr(function(e,t,n){return[n<0?n+t:n]}),even:sr(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:sr(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:sr(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:sr(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=S.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.pseudos[ei]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ei);for(ei in{submit:!0,reset:!0})S.pseudos[ei]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ei);function dr(){}function cr(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function lr(a,e,t){var s=e.dir,u=e.next,d=u||s,c=t&&"parentNode"===d,l=bi++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var i,r,o=[yi,l];if(n){for(;e=e[s];)if((1===e.nodeType||c)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||c)if(r=(r=e[T]||(e[T]={}))[e.uniqueID]||(r[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[d])&&i[0]===yi&&i[1]===l)return o[2]=i[2];if((r[d]=o)[2]=a(e,t,n))return!0}return!1}}function pr(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function hr(e,t,n,i,r){for(var o,a=[],s=0,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 fr(h,f,g,m,v,e){return m&&!m[T]&&(m=fr(m)),v&&!v[T]&&(v=fr(v,e)),nr(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++)x(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),l=!h||!e&&f?c:hr(c,s,h,n,i),p=g?v||(e?h:d||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=hr(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?Ri(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=hr(p===t?p.splice(d,p.length):p),v?v(null,t,p,i):Ai.apply(t,p)})}dr.prototype=S.filters=S.pseudos,S.setFilters=new dr,ii=x.tokenize=function(e,t){var n,i,r,o,a,s,u,d=Si[e+" "];if(d)return t?0:d.slice(0);for(a=e,s=[],u=S.preFilter;a;){for(o in n&&!(i=$i.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Di.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Fi," ")}),a=a.slice(n.length)),S.filter)S.filter.hasOwnProperty(o)&&(i=Bi[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?x.error(e):Si(e,s).slice(0)},ri=x.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=Ii[e+" "];if(!a){for(n=(t=t||ii(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=S.relative[e[0].type],a=o||S.relative[" "],s=o?1:0,u=lr(function(e){return e===i},a,!0),d=lr(function(e){return-1<Ri(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==ai)||((i=t).nodeType?u:d)(e,t,n),i=null,e}];s<r;s++)if(t=S.relative[e[s].type])c=[lr(pr(c),t)];else{if((t=S.filter[e[s].type].apply(null,e[s].matches))[T]){for(n=++s;n<r&&!S.relative[e[n].type];n++);return fr(1<s&&pr(c),1<s&&cr(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Fi,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&cr(e))}c.push(t)}return pr(c)}(t[n]))[T]?r:o).push(a);(a=Ii(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,u=0,d="0",c=e&&[],l=[],p=ai,h=e||b&&S.find.TAG("*",r),f=yi+=null==p?1:Math.random()||.1,g=h.length;for(r&&(ai=t==_||t||r);d!==g&&null!=(o=h[d]);d++){if(b&&o){for(a=0,t||o.ownerDocument==_||(di(o),n=!li);s=m[a++];)if(s(o,t||_,n)){i.push(o);break}r&&(yi=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]=xi.call(i));l=hr(l)}Ai.apply(i,l),r&&!e&&0<l.length&&1<u+v.length&&x.uniqueSort(i)}return r&&(yi=f,ai=p),c},y?nr(i):i))).selector=e}return a},oi=x.select=function(e,t,n,i){var r,o,a,s,u,d="function"==typeof e&&e,c=!i&&ii(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&&li&&S.relative[o[1].type]){if(!(t=(S.find.ID(a.matches[0].replace(Ji,Zi),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Bi.needsContext.test(e)?0:o.length;r--&&(a=o[r],!S.relative[s=a.type]);)if((u=S.find[s])&&(i=u(a.matches[0].replace(Ji,Zi),Ki.test(o[0].type)&&ur(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&cr(o))break;return Ai.apply(n,i),n}}return(d||ri(e,c))(i,t,!li,n,!t||Ki.test(e)&&ur(t.parentNode)||t),n},w.sortStable=T.split("").sort(Ei).join("")===T,w.detectDuplicates=!!ui,di(),w.sortDetached=ir(function(e){return 1&e.compareDocumentPosition(_.createElement("fieldset"))}),ir(function(e){return e.innerHTML=J().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||rr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&ir(function(e){return e.innerHTML=J().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||rr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ir(function(e){return null==e.getAttribute("disabled")})||rr(Ni,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var gr=mi.Sizzle;x.noConflict=function(){return mi.Sizzle===x&&(mi.Sizzle=gr),x},r.exports?r.exports=x:mi.Sizzle=x;mr=p(t.exports),(vr=E.extend(function(){return vr.Sizzle.apply(this,arguments)},mr)).reset=function(){vr.Sizzle=mr,vr.matchesSelector=mr.matchesSelector,vr.matches=mr.matches},vr.intercept=function(e,t="Sizzle"){vr[t]=E.wrap(vr[t],e)},vr.reset();var mr,vr,yr=vr;function k(e,t){var n,i=this;if(e&&e instanceof k)return e;if(!(i instanceof k))return new k(e,t);if(e)if(e.nodeType)n=[e];else if(r=/^<(\w+)\/?>$/.exec(e))n=[document.createElement(r[1])];else if(/^<[\w\W]+>$/.test(e)){var r=document.createElement("div");r.innerHTML=e,n=E.toArray(r.childNodes)}else if(E.isString(e)){t instanceof k&&(t=0<t.length?t[0]:null);try{n=yr(e,t)}catch(o){n=[]}}else n=[e];else n=[];return E.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,i}function br(){this.ownerKey="_pendo_"+at(8)}E.extend(br.prototype,{cache:function(e){var t;return E.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set:function(e,t,n){e=this.cache(e);return e[t]=n,e},get:function(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove:function(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!E.isEmpty(n)||(e[this.ownerKey]=undefined)}});var wr=new br,Sr=1;function Ir(e){return E.isNumber(e.eventPhase)&&e.eventPhase===Sr}function _r(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?dt("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{Er(e,t,n,i)}):E.noop}function Er(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?dt("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var Cr=function(e){var t=Yn.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},Tr={add:function(t,e){var n=wr.get(t),i=(n.handle||(n.handle=function(e){Tr.dispatch(t,e)}),e.id=E.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||_r(t,e.type,n.handle,e.capture),i.push(e),()=>{k.event.remove(t,e.type,e.handler,e.capture)}},dispatch:function(r,o){var e,t,a;r&&(e=(wr.get(r,"captureEvents")||{})[o.type]||[],t=(wr.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=wr.get(o)).ignore&&(a.handled=a.handled||{},E.each(t.slice(),function(e){var t=!!e.capture===Ir(o),n=(n=o,E.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(Cr(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!ge(e.selector)||0<k(Cr(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){C.error(i)}}}))},remove:function(e,t,n,i){var r=wr.get(e);if(r){if(E.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=E.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],Er(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],Er(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],Er(e,t,r.handle));E.isEmpty(r.captureEvents)&&E.isEmpty(r.bubbleEvents)&&(wr.remove(e,"captureEvents"),wr.remove(e,"bubbleEvents"),wr.remove(e,"handle"))}},trigger:function(e){var t=wr.get(e);if(!t.pendoStopped)if(e.bubbles){var n=Cr(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=Yn.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),Ir(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)Tr.dispatch(o[i],e);(e=Tr.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(Tr.dispatch(n,e),(e=Tr.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)Tr.dispatch(o[i],e)}}else Tr.dispatch(Cr(e),e)},clone:function(e){var t=E.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",wr.ownerKey]),e=Yn.getComposedPath(e);return e&&(t.composedPath=E.constant(e)),t},$:{on:function(e,n,i,r){return E.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){E.each(e,function(e){Tr.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},xr=E.extend(Ar,{get:function(e,t){return Ar({method:"GET",url:e,headers:t})},post:Or,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",Or(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(E.isArray(t))i=t;else{if(!E.isObject(t))return e||"";i=E.keys(t)}var i=E.map(i,function(e){return E.isArray(t)?vt(e):vt(e)+"="+vt(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=E.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported:function(){return void 0!==kr()}});function kr(){return window.XMLHttpRequest||ActiveXObject}function Ar(e){var t=y.defer(),n=new(kr())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),E.each(e.headers,function(e,t){n.setRequestHeader(t.toLowerCase(),e)}),n.onreadystatechange=function(){var e;4===n.readyState&&(e=function(e){var t={status:e.status};try{t.data=JSON.parse(e.responseText)}catch(n){t.data=e.responseText}return t}(n),200<=n.status&&n.status<300?t.resolve(e):t.reject(e))},e.withCredentials&&(n.withCredentials=!0),e.data?n.send(e.data):n.send(),t.promise}function Or(e,t,n){return Ar({method:"POST",url:e,data:t,headers:n})}var Rr,Nr=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},Mr=function(){return f.get("annotateUrl")||Dr()||f.get("sanitizeUrl")||f.get(qr)||f.get("xhrWhitelist")},Lr=function(){return Dr()?{href:$r(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Pr=function(){return new qn(window.location.href)},Fr=function(){var e,t,n,i;return Mr()?(e=Pr(),Dr()&&(e.href=$r(e.href)),Nr()?(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:///","")):Kr(e.href)):g.getters["location/href"]()},$r=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Dr=function(){return!0===f.get("ignoreHashRouting")},Ur=500;function Gr(){return E.isUndefined(Rr)&&function e(){Wr(),Rr=Dt(e,Ur)}(),()=>{clearTimeout(Rr)}}var jr=function(e){var t;try{t=Fr()}catch(n){}return t},Br=[],zr=!1,Hr=null;function Wr(){var t=Lr().href;Hr!=t&&(Hr=t,E.map(Br,function(e){e(t)}))}var qr="queryStringWhitelist";function Vr(e){var t=f.get("sanitizeUrl");return E.isFunction(t)?t(e):e}function Kr(e){e=e||Lr().href;var t=f.get("annotateUrl");if(t)if(E.isFunction(t))try{var n,i,r,o=t();return o&&(E.isObject(o)||E.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&E.isArray(n)||i&&(E.isArray(i)||E.isObject(i)))&&(n&&(e=Zr(e,null,n,!0)),o=i||{}),xr.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 Jr(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function Zr(e,t,n,i){e=e||jr(),t=t||Jr(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=E.isArray(n)?Xr(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var Yr,Xr=function(e,t,n){return n&&E.contains(t,"*")?"":(e=Qr(e),e=n?E.omit(e,t):E.pick(e,t),eo(e))},Qr=function(e){e=e.split("&");return E.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&mt(t[1])),e},{})},eo=function(e){return E.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")&&$e.supportsHistoryApi();return zr||(t&&(i=window.history,E.each(["pushState","replaceState"],function(e){var t=i[e];i[e]=E.wrap(i[e],function(e){var t=e.apply(i,E.toArray(arguments).slice(1));return Dt(Wr,0),t}),n.push(()=>{i[e]=t})}),n.push(_r(window,"popstate",Wr))),$e.supportsHashChange()&&n.push(_r(window,"hashchange",Wr)),!1!==t&&$e.supportsHashChange()||n.push(Gr()),zr=!0),Br.push(e),()=>{E.each(n,function(e){e()}),Br.length=0,zr=!1}},get:jr,externalizeURL:function(e,t,n){n=n||f.get(qr);return Vr(Zr(e,t,n=E.isFunction(n)?n():n,!1))},startPoller:Gr,getWindowLocation:Lr,clear:function(){Br=[]},isElectron:Nr,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 to(){var e=f.getLocalConfig("dataHost");return e||((e=f.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:je)}function no(){Yr=to()}function io(){var e=f.get("contentHost")||f.get("assetHost")||Be;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function ro(e){return io()+"/"+(ze?ze+"/":"")+e}function oo(){var e=f.get("allowPartnerAnalyticsForwarding",!1)&&f.get("adoptAnalyticsForwarding",!1);return f.get("trainingPartner",!1)||e}var ao=3,so=1,uo=9,co=11,lo=4;function O(e){var t;if((t=e)&&t.nodeType===so)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function po(e,t){var n;return!(!e||!E.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&E.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),E.any(n,function(e){return e&&"none"!==e}))}function ho(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function fo(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function go(e){return E.isNumber(e)?e:0}function mo(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!yo(e)?null:e}function vo(e){return po(O(e),xe)&&isNaN(Ie)}function yo(e){if(e)return(e=O(e))&&(E.contains(["relative","absolute","fixed"],e.position)||po(e,xe))}function bo(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=yo(t)?t:mo(t,n),i=t?wo(t):{top:0,left:0},e=wo(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+=go(t.scrollTop),i.left+=go(t.scrollLeft)),i.top-=go(t.clientTop),i.left-=go(t.clientLeft)):(i.top+=ho(n),i.left+=fo(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function wo(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 So=void 0===(e=f.get("pendoCore"))||e,Io=function(e,t,n){e=Yr+"/data/"+e+"/"+t,t=E.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function _o(){return E.compact([I.apiKey].concat(I.additionalApiKeys))}var Eo=function(e){return e+="v"+He,To(Io("log.gif",I.apiKey,{msg:e,version:He}))};function Co(e){try{var t=Yr+"/data/errorlog?apiKey="+I.apiKey,n={error:e,version:"v"+He,visitorId:b()},i=xo.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):xr.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),Eo("Failed to write error to server using POST endpoint: "+r)}}function To(e){var t,n;return Ro()?(t=y.defer(),_r(n=new Image,"load",t.resolve),_r(n,"error",t.reject),n.src=e,t.promise):y.resolve()}function xo(e,t={}){t=E.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t)}function ko(e,t){return navigator.sendBeacon(e,t)}xo.supported=function(){try{return E.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var Ao=!(ko.supported=function(){return E.isFunction(navigator.sendBeacon)}),Oo=function(){var e=Ro();return Ao=!0,e&&m["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},Ro=function(){return!Ao&&So},No=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(Fo(e))}catch(n){return!1}},Mo=function(e,t){try{var n;No(e,t)||(n=Ye.call(Fo(e))+" "+t,Po(e,n))}catch(i){}},Lo=function(e,t){try{var n,i;No(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=Fo(e).replace(n," "),Po(e,i))}catch(r){}},Po=function(e,t){E.isString(e.className)?e.className=t:e.setAttribute("class",t)},Fo=function(e){try{var t=e.className;return(E.isString(t)||!ge(t)?t:e.getAttribute("class"))||""}catch(n){return""}},$o=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},Do={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},Uo=function(e,t){t=function(e){if(E.isString(e)){var t=e.split(";");var n;var i;var r;var o;e={};for(r=0;r<t.length;r++){n=t[r];o=n.indexOf(":");i=n.substring(0,o);e[i]=n.substring(o+1)}}return e}(t);Go(e,t)},Go=function(a,e){E.each(e,function(e,t){if(""!==(t=Ye.call(t))){var n=$o(t),i=(!E.isNumber(e)||isNaN(e)||Do[n]?E.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=Ye.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=Ye.call(e)}catch(o){C.info("failed to set style: "+t+" with value "+e)}}})},jo=function(){return De()?{width:document.documentElement.offsetWidth||0,height:document.documentElement.offsetHeight||0}:{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}},Bo=function(e){var t=jo(),n=ho(),i=fo();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function zo(t){return E.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function Ho(e,t=window){var n;return function(e){var t,n=e;for(;n;){if(!(t=O(n)))return;if("fixed"===t.position)return!isNaN(Ie)||!Qo(n);n=n.parentNode}return}(e)?((n=wo(e)).fixed=!0,zo(n)):zo(bo(e,Ko(t.document),t))}var Wo=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},qo=E.compose(function(e){return Array.prototype.slice.call(e)},function(e,t){try{return yr(e,t)}catch(n){return Eo("error using sizzle: "+n),t.getElementsByTagName(e)}}),Vo=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),Eo("error picking best body:"+n),0}},Ko=function(e){e=e||document;try{var t=qo("body",e);return t&&1<t.length?(t.sort(Vo),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return Eo("Error getting body element: "+n),e.body}};function Jo(e){if(e&&e.parentNode){var t=e.parentNode,n=e;if(!t)return[];var i=[];if(t.childNodes)for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];1===r.nodeType&&r!==n&&i.push(r)}return i}return[]}function Zo(e){if(yr.contains(document,e))return!0;for(;e&&e.parentNode||Yn.isElementShadowRoot(e);)e=Yn.getParent(e);return e===document}var Yo=function(e){var t=Ko();if(null!==e)return e===document||e===window?((t={left:window.pageXOffset||t.scrollLeft,top:window.pageYOffset||t.scrollTop,width:window.innerWidth,height:window.innerHeight}).right=t.left+t.width,t.bottom=t.top+t.height,t):((t=Ho(e)).right=t.left+t.width,t.bottom=t.top+t.height,t)},Xo=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function Qo(e){for(var t=e&&e.parentNode;t;){if(po(O(t),xe))return 1;t=t.parentNode}}var ea=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(Zo(e))for(i=e;i;)if(Yn.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=O(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=O(r))&&!E.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&Qo(i))i=mo(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function ta(e,t){e=O(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?na.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?na.BOTH:t.test(e.overflowY)?na.Y:t.test(e.overflowX)?na.X:t.test(e.overflow)?na.BOTH:na.NONE}var na={X:"x",Y:"y",BOTH:"both",NONE:"none"};function ia(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&Zo(e)}function ra(e){var t=document.createElement("script"),n=document.head||document.getElementsByTagName("head")[0]||document.body;t.type="text/javascript",e.src?t.src=e.src:t.text=e.text||e.textContent||e.innerHTML||"",n.appendChild(t),n.removeChild(t)}function oa(e){if(e){if(E.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function aa(e,t,n){const i=[];var r=oa(document.documentElement);let o=oa(ea(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=oa(ea(o)),a++;return()=>{E.each(E.compact(i),function(e){e()}),i.length=0}}const sa=['a[href]:not([disabled]):not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])',"iframe"].join(", ");function ua(e,t,n){var i=Yo(t),t=ta(t,n);if(t!==na.BOTH||Xo(e,i)){if(t===na.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===na.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function da(e){if(e){if(ia(e))return 1;var t=Yo(e);if(0!==t.width&&0!==t.height){var n=O(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=O(i=i.parentNode)}return 1}}}}function ca(e,t){if(!da(e))return!1;if(!ia(e)){for(var n=Yo(e),i=ea(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!ua(n,i,t))return!1;i=ea(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=fo(),e+=ho()),o<=0||e<=0)return!1}}return!0}function la(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,u=Yo(e),d=ea(e,s);if(!da(e))return!1;for(;d;){if(t=Yo(d),(o=ta(d,a))!==na.NONE&&(i=n=0,o!==na.Y&&o!==na.BOTH||(u.bottom>t.bottom&&(n+=u.bottom-t.bottom,u.top-=n,u.bottom-=n),u.top<t.top&&(n-=r=t.top-u.top,u.top+=r,u.bottom+=r)),o!==na.X&&o!==na.BOTH||(u.right>t.right&&(i+=u.right-t.right,u.left-=i,u.right-=i),u.left<t.left&&(i-=r=t.left-u.left,u.left+=r,u.right+=r))),!ua(u,d,s))return!1;d=ea(d,s)}return!0}function pa(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=Ko(),u=ea(e,a);u&&u!==s;)t=Yo(e),n=Yo(u),r=i=0,t.bottom>n.bottom&&(i+=t.bottom-n.bottom,t.top-=i,t.bottom-=i),t.top<n.top&&(i-=o=n.top-t.top,t.top+=o,t.bottom+=o),t.right>n.right&&(r+=t.right-n.right,t.left-=r,t.right-=r),t.left<n.left&&(r-=o=n.left-t.left,t.left+=o,t.right+=o),E.isFunction(u.scrollBy)?u.scrollBy(r,i):(u.scrollTop+=i,u.scrollLeft+=r),u=ea(u,a)}Mi={$:{findOrCreate:function(e){return 0<this.length?this:k(e)},find:function(e){var t=k();return t.context=this.context,this.each(function(){k(e,this).each(function(){t[t.length++]=this})}),t},each:function(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html:function(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text:function(e){var t="innerText"in document.body;return e===undefined?t?this.length?this[0].innerText:this:this.length?this[0].textContent:this:this.each(function(){Uo(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass:function(e){return e=e.split(/\s+/),this.each(function(t){E.each(e,function(e){Mo(t,e)})})},removeClass:function(e){return e=e.split(/\s+/),this.each(function(t){E.each(e,function(e){Lo(t,e)})})},hasClass:function(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){E.each(e,function(e){n=n&&No(t,e)})}),n)},toggleClass:function(e){return e=e.split(/\s+/),this.each(function(t){E.each(e,function(e){(No(t,e)?Lo:Mo)(t,e)})})},css:function(e){return this.each(function(){Uo(this,e)}),this},appendTo:function(e){return k(e).append(this),this},append:function(e){var t=this;return k(e).each(function(){t.length&&t[0].appendChild(this),Zo(this)&&E.each(yr("script",this),ra)}),t},prependTo:function(e){return k(e).prepend(this),this},prepend:function(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:function(){var e=k(this)[0];if(e&&e.parentNode)return k(e.parentNode)},insertBefore:function(e){e=k(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),Zo(document))&&E.each(yr("script",this[0]),ra)},remove:function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr:function(e,t){return E.isObject(e)?(this.each(function(){E.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:function(e,t){for(var n=this[0];n&&!yr.matchesSelector(n,e);)if((n=Zn(n))===document||t&&yr.matchesSelector(n,t))return k();return k(n)},eq:function(e){return k(this[e])},height:function(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width:function(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus:function(){return this.each(function(){E.isFunction(this.focus)&&this.focus()})}}};class ha{constructor(e=Ko(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},$e.MutationObserver){const n=new(dt("MutationObserver"))((e,t)=>{this.signal()});n.observe(e,t),this._teardown=()=>n.disconnect}else{const i=Dt(()=>{this.signal()},500);this._teardown=()=>{clearTimeout(i)}}}signal(){E.each(this.listeners,e=>{e.get()})}addObservers(...e){this.listeners=[].concat(this.listeners,e)}teardown(){this._teardown()}}Ti=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var fa="function"==typeof(r=window.WeakRef)&&/native/.test(r)?r:Ti();function ga(e,t){var n,i;return e.tagName&&-1<["textarea","input"].indexOf(e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:ba(n.substring(0,i))):ma(e,t)}function ma(e,t=128){var n,i="",r=e.nodeType;if(r===ao||r===lo)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===so||r===uo||r===co)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=ma(e.childNodes[a],t-i.length))).length)return i+ba(o.substring(0,t-i.length));i+=o}}return i}function va(e){return 55296<=e&&e<=56319}function ya(e){return 56320<=e&&e<=57343}function ba(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(va(t)||ya(t)){if(1===e.length)return e.slice(0,-1);if(va(t))return e.slice(0,-1);if(ya(t))if(!va(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class wa{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let t=this.elRef&&this.elRef.deref();var e=Zo(t);if(!t||!e){if(t&&!e)return undefined;if(!(t=k(this.cssSelector)[0]))return undefined;E.each(this.events,e=>{t.addEventListener(e,e=>this.onEvent(e))}),this.elRef=new fa(t)}return t}getText(e=1024){return ga(this.get(),e)}addEventListener(e,t){var n=this.get();this.events.indexOf(e)<0&&(this.events.push(e),n)&&n.addEventListener(e,e=>this.onEvent(e)),this.listeners[e]=this.listeners[e]?this.listeners[e].push(t):[].concat(t)}onEvent(t){var e=t.type;E.each(this.listeners[e],e=>e(t))}teardown(){const t=this.get();t&&E.each(this.events,e=>t.removeEventListener(e,this.onEvent))}}function Sa(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===to())return!0;if(t===io())return!0;var e=[/^https:\/\/(app|via|adopt)(\.eu|\.us|\.gov|\.jpn|\.hsbc|\.au)?\.pendo\.io$/,/^https:\/\/((adopt\.)?us1\.)?(app|via|adopt)\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)-static\.storage\.googleapis\.com$/,/^https:\/\/(us1\.)?cdn(\.eu|\.jpn|\.gov|\.hsbc|\.au)?\.pendo\.io$/],n=(Ke()||(e=e.concat([/^https:\/\/([a-zA-Z0-9-]+\.)*pendo-dev\.com$/,/^https:\/\/([a-zA-Z0-9-]+-dot-)?pendo-(dev|test|io|us1|govramp|jp-prod|hsbc|au|batman|magic|atlas|wildlings|ionchef|mobile-guides|mobile-hummus|mobile-fbi|mobile-plat|eu|eu-dev|apollo|security|perfserf|freeze|armada|voc|mcfly|calypso|dap|scrum-ops|ml|helix|uat)\.appspot\.com$/,/^https:\/\/via\.pendo\.local:\d{4}$/,/^https:\/\/adopt\.pendo\.local:\d{4}$/,/^https:\/\/local\.pendo\.io:\d{4}$/,new RegExp("^https://pendo-"+Ge+"-static\\.storage\\.googleapis\\.com$")])),f.get("adoptHost"));if(n&&t==="https://"+n)return!0;return!!E.contains(f.get("allowedOriginServers",[]),t)||E.any(e,function(e){return e.test(t)})}function Ia(e){var t;if(E.isString(e))return t=(t=Jr(e).substring(1))&&t.length?Qr(t):{},e=E.last(E.first(e.split("?")).split("/")).split("."),{filename:E.first(e),extension:e.slice(1).join("."),query:t}}function _a(e,t){var n;f.get("guideValidation")&&$e.sri&&(n=Ia(t),t=E.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],E.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}E.extend(k,{data:wr,event:Tr,removeNode:Wo,getClass:Fo,hasClass:No,addClass:function(e,t){var n;"string"==typeof e?(n=k(e),E.map(n,function(e){Mo(e,t)})):Mo(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=k(e),E.map(n,function(e){Lo(e,t)})):Lo(e,t)},getBody:Ko,getComputedStyle:O,getClientRect:Yo,intersectRect:Xo,getScrollParent:ea,isElementVisible:ca,Observer:ha,Element:wa,scrollIntoView:pa,getRootNode:oa}),E.extend(k.prototype,Tr.$,Mi.$);var Ea,Ca=function(e){var t=0===f.get("allowedOriginServers",[]).length,n=oo();return!(!t&&!n&&(t=Ge,n=Y,!/prod/.test(t)||ie(n)))||Sa(e)},Ta=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(E.isString(e)&&(e={url:e}),!Ca((d=e.url,new qn(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,_a(u,e.url),a=u}else{if(ut())return(i=document.createElement("script")).addEventListener("load",function(){t(),Wo(i)}),i.type=o,i.src=J(I).createScriptURL(e.url),_a(i,e.url),document.body.appendChild(i),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=J(I).createScriptURL(e.url),_a(i,e.url),a=i,t=E.wrap(t,function(e,t){k.removeNode(i),t?n&&e(t):e.apply(this,E.toArray(arguments).slice(1))})}return s.appendChild(a),xa(a,e.url,t),a}catch(c){return{}}var d},xa=function(e,t,n){var i=!1;ge(n)&&(e.onload=function(){!0!==i&&(i=!0,n(null,t))},e.onerror=function(){!0!==i&&(i=!0,n(new Error("Failed to load script"),t))},e.onreadystatechange=function(){i||e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(i=!0,n(null,t))},"link"===e.tagName.toLowerCase())&&(Dt(function(){var e;i||((e=new Image).onload=e.onerror=function(){!0!==i&&(i=!0,n(null,t))},e.src=t)},500),Dt(function(){i||Eo("Failed to load "+t+" within 10 seconds")},1e4))},ka=function(e){var t=JSON.parse(e.data),n=e.origin;C.debug(I.app_name+": Message: "+JSON.stringify(t)+" from "+n),za(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},Aa=function(e){Ra(Pa)(Oa(e))},Oa=function(e){if(e.data)try{var t="string"==typeof e.data?JSON.parse(e.data):e.data,n=e.origin,i=e.source;if(!t.action&&!t.mutation){if(t.type&&"string"==typeof t.type)return{data:t,origin:n,source:i};C.debug("Invalid Message: Missing 'type' in data format")}}catch(r){}};function Ra(t){return function(e){if(e&&Sa(e.origin))return t.apply(this,arguments)}}var Na={disconnect:function(e){},module:function(e){Ba(e.moduleURL)},debug:function(e){qa(ka)}},Ma=function(e,t){Na[e]=t},La=function(e){delete Na[e]},Pa=function(e){var t;e&&(t=e.data)&&ge(Na[t.type])&&Na[t.type](t,e)},Fa={},$a=function(e){if(Fa[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},Da=function(e){return ge(Fa[e])},Ua=function(e){if(Fa)for(var t in Fa)if(0<=t.indexOf(e))return t;return null},Ga=[],ja=function(){var e;Ga.length<1||(e=Ga.shift(),Da(e))||Ta(e,function(){$a(e),ja()})};var Ba=function(e){!function(e){var t={"/js/lib/ckeditor/ckeditor.js":1};E.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 qn(e);return Sa(n.origin)&&t[n.pathname]}catch(i){C.debug("Invalid module URL: "+e)}}(e)||(Ga.push(e),1<Ga.length)||ja()},za=function(e,t,n){var i,r=E.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Ea||Wa(),n="*"),t.guid=r,e&&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},Ha=function(){return window!=window.top},Wa=function(){var e=new RegExp("^"+wt(Yr).replace(/^https?:/,"https?:")),t=f.get("forceParentDesigner");return!Ke()&&t||e.test(location.href)?window.parent:window.top},qa=function(e){var t;return ge(window.addEventListener)&&E.isFunction(window.addEventListener)&&(t=Ra(e),window.addEventListener("message",t,!1)),function(){ge(window.removeEventListener)&&E.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},Va=E.memoize(function(){return f.get("restrictP1Access")}),Ka=[],Ja=[],Za=12e4,Ya=16,Xa=1900,Qa=65536,es=function(e){return!(!e||""===e)},ts=function(){return A.get()},ns={flush:E.noop,flushBy:E.noop,flushEvents:as,flushTrackEvents:as,flushSilos:as,flushTrackEventSilos:as,flushBeacons:as,flushNow:as,flushLater:ss,flushEvery:us,flushStop:ds,beacons:[],silos:[],trackEventSilos:[],lock:Oo,unlock:function(){if(!Ro())return cs(),function(){var e=!Ro();return Ao=!1,e&&m["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."}()}},is=[];function rs(e){is.push(e)}function os(e){e=is.indexOf(e);0<=e&&is.splice(e,1)}function as(e,t){try{E.each(is,function(e){e.flush&&e.flush(t)})}catch(n){C.critical("unhandled error while flushing event cache",{error:n})}}function ss(e){return t=E.partial(as,!0),n=e,n=parseInt(n,10)||0,t[n]||(i=Dt(function(){t(),t[n]()},n),t[n]=function(){window.clearTimeout(i),delete t[n]});var t,n,i}function us(e){var t;if(e=parseInt(e,10)||0,E.isObject(us.intervals)||(us.intervals={}),!us.intervals[e])return t=window.setInterval(as,e),us.intervals[e]=function(){clearInterval(t),delete us.intervals[e]}}function ds(){var e=E.values(us.intervals).concat([as]);E.map(e,function(e){E.isFunction(e)&&e()})}function cs(){E.each(is,function(e){e.clear&&e.clear()}),ds()}function ls(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 ps(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,!(!E.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)}hs=null;var hs,fs={set:function(e){hs=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==hs?hs:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!f.get("enableSignedMetadata")&&(n=ps(e,t),f.get("requireSignedMetadata")&&!n?(C.debug("Pendo will not "+t+"."),!1):n?ls(e.jwt):void C.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class gs{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=Dt(()=>{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 Jt.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 Jt.all(n)}}const ms="unsentEvents";class vs{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(ms),this.events=JSON.parse(e.read(ms)||"{}"),e.clear(ms)}write(e){0<E.size(this.events)?e.write(ms,JSON.stringify(this.events),5184e5):e.clear(ms)}}var ys=new vs,bs="_PENDO_UNNAMED_",ws=5;function Ss(e,t,n,i,r,o){var a,s;a=f.get("dropAnonymous"),s=xn(b()),!So||a&&s||(a=t,s=n,t=i,n=r,i=o,s={type:r=e,browser_time:v(),visitor_id:b({generate:!0}),account_id:Gn(),url:A.externalizeURL(s),props:a||{},eventProperties:n},s=sn.addTracerIds(s),"track"===r&&(s.track_event_name=t||bs),m.eventCaptured.trigger(s,i),es((o=s).url)&&function(e){if(f.get("freeNPSData"))return E.contains(Is,e.type);return 1}(o)&&("track"===e?Fs.push(o):Ps.push(function(e,t){try{if(!e.getters["monitoring/shouldFlush"]())return t;var n=e.getters["monitoring/payload"]();e.dispatch("monitoring/flush"),E.isEmpty(n)||(t.ops=n)}catch(i){}return t}(g,o))))}var Is=["load","meta","identify"];function _s(){var r=E.toArray(arguments);return function(e,t){var n=r.concat([t]);!function i(t,e){t<n.length&&n[t](e,function(e){i(t+1,e)})}(0,e)}}let Es=0;function Cs(e,t){e.sequence=Es++,t(e)}function Ts(e){return n=function(e,t){return e.push(t),e},i=e,function(e,t){t(i=n(i,e))};var n,i}function xs(e,t){return oo()?ks("account_id")(e,t):t(e)}function ks(s){return function(e,t){if(!e.length)return t(e);for(var n=E.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==E.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 As(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function Os(e,t,n){t=n[t-1]||E.last(n);return Math.ceil(e/t)}function Rs(e,t){for(var n,i=0,r=(E.isFunction(t.overhead)?t.overhead:E.constant(0))(),o=0;o<e.length;++o){if(Os(n=As(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(Os(i+n,o+1,t.compressionRatio)+r>t.upper)return o;i+=n}if(!(0<o))for(o=i=0;o<e.length;++o){if(Os(i+(n=As(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function Ns(){var e=fs.get();return E.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var Ms,Ls,Ps,Fs;function $s(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=I.squeezeAndCompress(e.slice()),e.JZB.length<=Qa)||1===e.length?t(e):(n=e.length/2,$s(e.slice(0,n),t),void $s(e.slice(n),t))}function Ds(e,t){Ro()&&t(e)}function Us(){return function(e,t){1===e.length&&e.JZB.length>Qa?(C.debug("Couldn't write event"),Eo("Single item is: "+e.JZB.length+". Dropping."),Co(e.JZB)):t(e)}}function Gs(e,t){return Io(t.beacon+".gif",e,E.extend({v:He,ct:v(),jzb:t.JZB},t.params,t.auth))}function js(e,t){return Io(t.beacon+".gif",e,E.extend({v:He,ct:v(),s:t.JZB.length},t.params))}function Bs(i){return function(e,t){e.params=E.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=fs.get();E.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function zs(e,t){var n=oo(),i=E.first(e),i=E.get(i,"account_id");n&&i&&(e.params=E.extend({},e.params,{acc:it(i)})),t(e)}function Hs(e,t){var n=E.first(e),n=E.get(n,"props.source");n&&(e.params=E.extend({},e.params,{source:n})),t(e)}function Ws(e){return JSON.stringify(E.extend({events:e.JZB},e.auth))}function qs(e){return e.status<200||300<=e.status?y.reject(new Error(`received status code ${e.status}: `+e.statusText)):y.resolve()}function Vs(e,t){return xo(Gs(e,t)).then(qs)}function Ks(e,t){return fetch(js(e,t),{method:"POST",keepalive:!0,body:Ws(t),headers:{"Content-Type":"application/json"}}).then(qs)}function Js(e,t){var n=Ws(t);return ko(js(e,t),n)?y.resolve():y.reject()}function Zs(n){return function(e,t){return t.JZB?t.eventLength<=Xa&&!f.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&xo.supported()?Vs(e,t):t.auth?xr({method:"GET",url:Gs(e,t)}):To(Gs(e,t)):n.allowPost&&t.eventLength<=Qa?xo.supported()?Ks(e,t):ko.supported()?Js(e,t):xr({method:"POST",url:js(e,e=t),data:Ws(e),headers:{"Content-Type":"application/json"}}):y.resolve():y.resolve()}}function Ys(n){return function(e,t){if(t.JZB){if(t.eventLength<=Xa&&!f.get("sendEventsWithPostOnly",!1)){if(!t.auth&&xo.supported())return Vs(e,t);if($e.msie<=11)return xr({method:"GET",url:Gs(e,t),sync:!0})}if(t.eventLength<=Qa&&n.allowPost){if(xo.supported())return Ks(e,t);if(ko.supported())return Js(e,t);if($e.msie<=11)return xr({method:"POST",url:js(e,e=t),data:Ws(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return y.resolve()}}function Xs(e,t){e.length=0;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);t(i)}function Qs(e){return _s(Ds,xs,$s,(t=e.shorten,t=E.defaults(t||{},{fields:[],siloMaxLength:Qa}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],C.debug("Max length exceeded for an event"),E.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)}),$s,Us(),Bs(e),zs,Hs,Xs);var t}class eu{constructor(e){this.queues=e}isEmpty(){return E.all(this.queues,e=>e.isEmpty())}stop(){E.each(this.queues,e=>e.stop())}push(){const t=E.toArray(arguments);E.each(this.queues,e=>e.push.apply(e,t))}drain(){const t=E.toArray(arguments);return y.all(E.map(this.queues,e=>e.drain.apply(e,t)))}}function tu(o,a,s){a=a||Zs(o),s=s||Ys(o);e=o;var e=E.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=E.map(e,(i,r)=>{var e=new gs(function(e,t,n){return n&&(e.params=E.extend({},e.params,{rt:n})),o.localStorageUnload&&t?(0===r&&ys.push(o.beacon,e),y.resolve()):(t?s:a)(i,e)});return e.onTimeout=function(){g.commit("monitoring/incrementCounter",o.beacon+"GifFailures")},e.retryPending=!0,e}),e=new eu(e);return ys.send(o.beacon,e),e}function nu(e,t){var n=f.get("analytics.excludeEvents");0<=E.indexOf(n,e.type)||t(e)}class iu{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=tu(e)}pause(e=1e4){var t=E.uniqueId();const n=this["locks"];n[t]=1;var i=()=>{n[t]&&(clearTimeout(r),delete n[t],this.flush())},r=Dt(i,e);return i}push(e){this.packageSilos(e,e=>{this.silos.push(e)})}clear(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()}flush({unload:e=!1,hidden:t=!1}={}){var{cache:n,silos:i}=this;if((0!==n.length||0!==i.length||!this.sendQueue.isEmpty())&&E.isEmpty(this.locks)){i.push(n.slice()),n.length=0;n=i.slice();i.length=0;const r=[];E.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 ru(e){var i,r,t=Qs(e),n=_s((r=e.beacon,function(e,t){var n=f.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),nu,Cs,Ts(e.cache),(i={overhead:Ns,lower:f.get("sendEventsWithPostOnly")?Qa:Xa,upper:Qa,compressionRatio:[.5*ws,.75*ws,ws]},function(e,t){for(var n=Rs(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=Rs(e,i)}));return new iu(E.extend({processSilos:t,packageSilos:n},e))}var ou=Wn(function(e){var t,n,i;if((e=e||A.get())&&e!==ou.lastUrl)return ou.lastUrl=e,t=-1,Va()||Ha()&&(i=Wa(),za(i,{type:"load",url:location.toString()},"*")),C.debug("sending load event for url "+e),t={load_time:t="undefined"!=typeof performance&&E.isFunction(performance.getEntriesByType)&&!E.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},Ha()&&(t.is_frame=!0),"*"!==(n=St())&&(t.allowed_storage_keys=E.keys(n)),Ss("load",t,e),ss(),m.urlChanged.trigger(),!0});function au(e){return"hidden"===e.visibilityState}ou.reset=function(){ou.lastUrl=null};const su="visibilitychange",uu="pagehide",du="unload";function cu(){this.serializers=E.toArray(arguments)}function lu(e,t){return e.tag=Yn.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function pu(e){return ge(e)?""+e:""}function hu(e,t){return e.id=pu(t.id),e}function fu(e,t){return e.cls=pu(k.getClass(t)),e}E.extend(cu.prototype,{add:function(e){this.serializers.push(e)},remove:function(e){e=E.indexOf(this.serializers,e);0<=e&&this.serializers.splice(e,1)},serialize:function(n,i){return n?(i=i||n,E.reduce(this.serializers,function(e,t){return t.call(this,e,n,i)},{},this)):{}}});var gu=256,mu=64,vu={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 yu=function(e,t,n){var i;return e&&e.nodeName?"img"==(i=e.nodeName.toLowerCase())&&"src"==t||"a"==i&&"href"==t?(i=e.getAttribute(t),Vr((i=i)&&0===i.indexOf("data:")?(C.debug("Embedded data provided in URI."),i.substring(0,i.indexOf(","))):i+"")):(i=t,e=(t=e).getAttribute?t.getAttribute(i):t[i],(!n||typeof e===n)&&e?E.isString(e)?Ye.call(e).substring(0,gu):e:null):null};function bu(t){var e,n,i;return E.isRegExp(t)&&E.isFunction(t.test)?function(e){return t.test(e)}:E.isArray(t)?(e=E.map(E.filter(t,E.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 E.any(e,function(e){return e.test(t)})}):E.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)}):E.constant(!1)}function wu(e,t,n,i){try{var r,o=E.indexBy(t),a=E.filter(E.filter(e,function(e){return n(e.nodeName)||o[e.nodeName]}),function(e){return!i(e.nodeName)});return a.length<=mu?E.pluck(a,"nodeName"):(r=E.groupBy(e,function(e){return o[e.nodeName]?"defaults":E.isString(e.value)&&e.value.length>gu?"large":"small"}),E.pluck([].concat(E.sortBy(r.defaults,"nodeName")).concat(E.sortBy(r.small,"nodeName")).concat(E.sortBy(r.large,"nodeName")).slice(0,mu),"nodeName"))}catch(s){return C.error("Error collecting DOM Node attributes: "+s),[]}}function Su(t,n){var e=bu(f.get("htmlAttributes")),i=bu(f.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=yu(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},wu(n.attributes,vu[r]&&vu[r].attr,e,i));return E.each(r,function(e){t.attrs[e.toLowerCase()]=yu(n,e)}),t}function Iu(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=E.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),e.childIndex=n.filter(function(e){return e.nodeType==so}).indexOf(t).value()),e}function _u(i,e){var r;return f.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(_u),e=this.serialize(e.previousElementSibling),this.add(_u),i.attrs=i.attrs||{},E.each(e,function(e,t){var n={cls:"class",txt:"pendo_text"}[t]||t;E.isEmpty(e)||(E.isObject(e)?E.each(e,function(e,t){e&&!E.isEmpty(e)&&(i.attrs[r+n+"_"+t]=e)}):i.attrs[r+n]=e)})),i}var Eu=new cu(lu,hu,fu,Su,Iu,_u),Cu=function(e){return"BODY"===e.nodeName&&e===Ko()||null===e.parentNode&&!Yn.isElementShadowRoot(e)},Tu="pendo-ignore",xu="pendo-analytics-ignore",ku=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=Eu.serialize(o,e)}while(r||!st(a.cls,Tu)&&!st(a.cls,xu)||(r=!0),n.parentElem=a,n=a,(i=Yn.getParent(o))&&!Cu(o));return r&&(t.parentElem.ignore=!0),t.parentElem},Au=["","left","right","middle"],t=function(e){return e},e=function(e,t){return e[t]},Ou=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return Au[t]}],["altKey",e,t,t],["ctrlKey",e,t,t],["metaKey",e,t,t],["shiftKey",e,t,t]],Ru={click:function(e,t){for(var n=[],i=0;i<Ou.length;i++){var r=Ou[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}},Nu=function(t){try{if(!k.data.get(t,"counted")){k.data.set(t,"counted",!0);var n=Cr(t),i=t.type,e={},r=Ru[i];if(r&&(e=r(t,e)),k.data.get(t,"stopped")&&(e.stopped=!0),t.from&&E.isString(t.from)&&(e.from=t.from),n=(s=n).nodeType===ao?s.parentNode:s.nodeType===lo?null:s.correspondingUseElement||s){var o=ku(n),a=(E.extend(o,e),ou());if(a&&A.startPoller(),!o.ignore){let e;"click"===i&&(e=function(e){e=function(e){const n={};return{getEventProperties:function(){return n},addEventProperty:function(e,t){E.isString(e)&&!E.isUndefined(t)?n[e]=t:C.error("Failed to add click event property")},target:e}}(e),m.onClickCaptured.trigger(e),e=e.getEventProperties();if(!E.isEmpty(e))return e}(n)),Ss(i,{target:o},undefined,undefined,e,t),m.trigger("appUsage",o,t)}}else C.info("Invalid HTML target",{contexts:["event","dom","processing"]})}}catch(u){C.critical("pendo.io while handling event",{error:u})}var s};var Mu=E.debounce(Nu,5e3,!0),Lu=function(e){const t=[];E.contains(e=e||["click","focus","submit","change"],"change")&&(e=E.without(e,"change"),t.push(()=>{Mu.cancel()}),t.push(_r(document,"change",Mu,!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=$e.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&&Cr(r)!==Cr(e)&&(o=!0,t(r))},click:function(e){r=null,o&&k.data.set(e,"ignore",!0),o=!1,n&&c.unwrap()},intercept:function(e){e=function(e){var t=[];for(;e&&!Cu(e);)t.push(e),e=e.parentNode;return t}(Cr(e));E.each(e,function(e){e=Pu(e,c.remove);a.push(e)})},remove:function(){r&&(t(r),r=null),c.unwrap()},unwrap:function(){0<a.length&&(E.each(a,function(e){e()}),a=[])},teardown:function mv(){c.unwrap(),E.each(d,function(e){e()})}};e&&(d.push(_r(document,u,c.down,!0)),d.push(_r(document,s,c.up,!0)),d.push(_r(document,"click",c.click,!0)));return c}(k.event.trigger,$e.addEventListener,i,r).teardown),t.push((i=e,n=E.map(i,function(e){return l(document,e,Nu,!0)}),()=>{E.each(n,function(e){e()})})),t.push(function(e,t){if(t){const n=[];return n.push(_r(document,su,()=>{au(document)&&e(!0,!1)})),n.push(_r(window,uu,E.partial(e,!1,!0))),()=>E.each(n,function(e){e()})}return _r(window,du,E.partial(e,!0,!0))}(function(e,t){t&&m.appUnloaded.trigger(),e&&m.appHidden.trigger()},f.get("preventUnloadListener"))),f.get("interceptStopPropagation",!0)),i=f.get("interceptPreventDefault",!0);return r&&t.push(Fu(window.Event,e)),i&&t.push($u(window.Event,["touchend"])),()=>{E.each(t,function(e){e()})}};function Pu(n,i){var e=["remove","removeChild"];try{if(!n)return E.noop;E.each(e,function(e){var t=n[e];if(!t)return E.noop;n[e]=E.wrap(t,function(e){return i&&i(),e.apply(this,E.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return E.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){C.critical("ERROR in interceptRemove",{error:t})}return function(){E.each(e,function(e){if(!n[e])return E.noop;e=n[e]._pendoUnwrap;E.isFunction(e)&&e()})}}function Fu(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return E.noop;var i=E.indexBy(e);E.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=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(){E.each(t,function(e){e=n.prototype[e]._pendoUnwrap;E.isFunction(e)&&e()})}}function $u(t,e){try{if(!t||!t.prototype)return E.noop;var i=E.indexBy(e),n=t.prototype.preventDefault;if(!n)return E.noop;t.prototype.preventDefault=E.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=Sr,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;E.isFunction(e)&&e()}}function l(e,t,n,i){return e&&t&&n?(i&&!$e.addEventListener&&(i=!1),k.event.add(e,{type:t,handler:n,capture:i})):E.noop}function Du(e,t,n,i){e&&t&&n&&(i&&!$e.addEventListener&&(i=!1),k.event.remove(e,t,n,i))}var Uu=function(e){k.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},Gu=function(e,t){return"complete"!==(t=t||window).document.readyState?_r(t,"load",e):(e(),E.noop)},R=[],ju=[],Bu={};let zu={};function Hu(){return R}function Wu(){return qu(R)}function qu(e){return E.filter(e,function(e){return!e.isFrameProxy})}function Vu(e){E.isArray(e)?(R=e,m.guideListChanged.trigger({guideIds:E.pluck(e,"id")})):C.info("bad guide array input to `setActiveGuides`")}var Ku=function(){let n=[];return{addGuide:e=>{var t;E.isEmpty(e)||(n=n.concat(e),E.each(n,e=>e.hide&&e.hide()),e=R,(t=E.difference(e,n)).length<e.length&&(Vu(t),g.dispatch("frames/changeGuideList",t)))}}}();function Ju(t,n){return E.find(Xu(),function(e){return E.get(e,t)===n})||null}function N(e){return Ju("id",e)}function Zu(e){return Ju("name",e)}function Yu(e,t){return e&&e.id?(e=N(e.id)).findStepById(t):null}function Xu(){var e=E.values(zu);return e.length?R.concat(E.flatten(e)):R}var Qu="_pendo-guide-tt_",ed="_pendo-guide-mobile-tt_",td=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},nd=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},id=function(e){return!!E.get(e,"attributes.form")};function rd(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function od(){return!!(rd()&&jo().width<=320)||$e.isMobileUserAgent()}function ad(){var e=ad.attachPoint;if(null==e){var t=f.get("guides.attachPoint");if(E.isString(t)){try{e=yr(t)[0]}catch(n){C.info('Error finding guide attach point "'+t+'"')}e=e||document.createElement("div")}else e=!!E.isFunction(t)&&t();ad.attachPoint=e}return e||Ko()}var sd=function(e){var t=Bu[e.guideId];if(t){t=t.element();if(Zo(t)&&t.id==="_pendo-badge_"+e.id)return t}},ud=function(e){var t;return e?(t=e.getGuide(),t="building-block"===E.get(t,"attributes.type")||!nd(t),!e.overrideElement&&t&&(e.overrideElement=sd(e)),e.targetElement=dd(e),e.overrideElement||e.targetElement):(C.info("Can't get element for null step"),null)},dd=function(e){e=e.elementPathRule||null,e=e?yr(e):[Ko()];return 0===e.length?null:E.first(e)};function cd(e){var t=E.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function ld(e,t,n){var i,r,o,e=Ho(e),t=Ho(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!==Bo(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),E.contains([na.X,na.BOTH],i)&&(r.x=0);E.contains([na.Y,na.BOTH],i)&&(r.y=0);return r}(a,jo(),n,ta(Ko(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function pd(e,t,n,i,r){var o,a=E.toArray(arguments).slice(1),s=e.apply(this,a);return n||oa(o=ad())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function hd(){return g.getters["frames/isLeader"]()}function fd(e){return g.dispatch("frames/updateFrameVisibility",{visibility:e})}gd=pn.call({}),md={validateGuide:1,validateLauncher:1,validateGlobalScript:1},vd={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1},E.each(["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"],function(t){vd[t]&&m[t].on(function(e){return yd[t].apply(yd[t],e.data)}),gd[t]=function(e){return E.isFunction(e)?gd.on(t,e):gd[md[t]?"triggerAsync":"trigger"].apply(gd,[t].concat(E.toArray(arguments)))}});var gd,md,vd,yd=gd;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:function(e,t,n){return t.ajax.get(e).then(function(e){t.guidesPayload(e.data),n()})},endpoint:function(){return"guide.json"},usesXhr:function(){return!0}};function wd(e){e=Ia(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}Id=Td={failed:{},verified:{}},Ed=Co,Cd=function(e){try{var t=[];return!bd.usesXhr()&&e.domJsonpUrl?t.push(Ad(e,"domJsonpUrl")):bd.usesXhr()&&e.domUrl&&t.push(kd(e,"domUrl")),e.contentUrlJs?t.push(Ad(e,"contentUrlJs")):e.contentUrl&&t.push(Ad(e,"contentUrl")),y.all(t)}catch(n){throw m.contentVerificationFail.trigger(e,n),n}},_d=function(e){return Cd(e).then(E.noop,function(e){return/verify/.test(e)&&Ed(e),y.reject(e)})},Sd=function(t){return Id.failed[t.id]?y.reject():Id.verified[t.id]?y.resolve():_d(t).then(function(){Id.verified[t.id]=!0},function(e){return Id.failed[t.id]=!0,y.reject(e)})};var Sd,Id,_d,Ed,Cd,Td,xd={verify:function(e){return f.get("guideValidation")?Sd(e):y.resolve()},reset:function(){Td.failed={},Td.verified={}}};function kd(e,t){var n,i=e[t];return E.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||wd(e[t]),xr.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=q.create()).update(e),c.uint8ToBase64(t.digest())!==n)return y.reject('Unable to verify content at "'+i+'"')})):y.reject('unable to parse "'+i+'"')}function Ad(e,t){var n=e[t];return $e.sri&&/[?&]sha(256|384|512)=/.test(n)?y.resolve():kd(e,t)}Od="allow",Rd="deny",Nd="pending",Ld=function(){return 0<E.size(yd._handlers.validateGuide)},Pd=function(e,n){var i=[];return E.each(e,function(e,t){n&&(t=n+"."+t),E.isObject(e)?E.each(Pd(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var Od,Rd,Nd,Md,Ld,Pd,Fd={state:Md={},Step:function(e){var n=this;function i(e){return E.filter([["content",wd(e.contentUrl)],["contentCss",wd(e.contentUrlCss)],["contentJs",wd(e.contentUrlJs)],["dom",wd(e.domUrl)],["domJsonp",wd(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=Pd(t)).length&&(t=E.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return E.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<E.size(yd._handlers.validateLauncher)&&n.data.template};return n.before("update",function(){if(r()&&i)return!1}),n.before("render",function(){var e,t;if(r())return!i&&(t="launcher-"+rt(n.signature()),(t=Md[t])!==Rd)&&(t!==Od?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+rt(t),yd.validateLauncher(t).then(function(){Md[e]=Od},function(){Md[e]=Rd}).then(function(){i=!1,n.render(),n.update(R)},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=Pd(this.data);return t.length&&(t=E.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(!Ld())return y.resolve();try{return E.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=P.findResourceCenterModules(t,R),t=[t].concat(n),y.all(E.map(t,$d))):$d(e)}catch(i){throw m.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!Ld()||!!(e=Md[e.guideId])&&e.status===Od},invalid:function(e){return!!Ld()&&!!(e=Md[e.guideId])&&e.status===Rd},reset:function(){Md={}}};function $d(i){var r=Md[i.id];return r||(r={},Md[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+rt(e),n=(r[t]||(r[t]={status:Nd},r.status=Nd),r[t].promise);return n||(n=yd.validateGuide(e,i).then(function(){r[t].status=Od,r.status=Od},function(e){return r[t].status=Rd,r.status=Rd,y.reject(e)}),r[t].promise=n),n})}function Dd(e,t){var n=E.toArray(arguments).slice(2);return E.reduce(e,function(e,t){return t.apply(e,n)},t)}function Ud(e){return E.isFunction(e.before)?e:Dd(Ud.behaviors,e)}function Gd(e,t){return Dd(Gd.behaviors,e,t)}function jd(e){var t,n,i=f.getLocalConfig("contentHost");return i&&e?(t=new RegExp("(https:)?\\/\\/"+((t=Ge)===ve?"pendo-static":Se(t))+"-\\d+\\.storage\\.googleapis\\.com","g"),n=new RegExp("(https:)?\\/\\/"+Se(Ge)+"\\.storage\\.googleapis\\.com","g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+wt(Be),"g"),i)):e}function Bd(e){return f.getLocalConfig("contentHost")?JSON.parse(jd(JSON.stringify(e))):e}Ud.behaviors=[],Gd.behaviors=[];var zd=function(){var d={},c=E.compose(function(e){var t=function(){var e=wt(f.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&C.debug("Failed to verify URL: "+e+" vs "+t),e},jd);const u=[function(e,t,n){return e.replace(`<% if (typeof guide !== 'undefined') { %>
5
5
  var guide = pendo.findGuideById('<%= guide.id %>');
6
6
  var step = guide && guide.findStepById('<%= step.id %>');
7
7
  <% } %>`,`var guide = pendo.findGuideById('${t}');
8
- var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{var e=d[t.id];if(e&&e.language!==t.language&&delete d[t.id],!d[t.id]){var n,i=[],r={deferred:{},language:t.language},o=!1;if(d[t.id]=r,gd.usesXhr()&&t.domUrl?(r.deferred.domJson=y.defer(),xr.get(c(t.domUrl)).then(function(e){r.domJson=Dd(e.data);var e=e.data;e=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),m.resourceFetchFail.trigger(t,e),r.deferred.domJson.reject("Failed to load content")}),i.push(r.deferred.domJson.promise),o=!0):t.domJsonpUrl&&(r.deferred.domJson=y.defer(),n=Ta(c(t.domJsonpUrl),function(e){k.removeNode(n),e&&m.resourceFetchFail.trigger(t,e)},!0),i.push(r.deferred.domJson.promise),o=!0),t.contentUrlJs&&!h.get("preventCodeInjection")){r.deferred.content=y.defer();var a=Ta(c(function(e){if(ut()){var t=e.replace(/^https?:\/\/[^/]+\/guide-content\//,"").split("/"),n=t[0],n=$A.get("$Resource.pendoGuide"+function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",n=e.length,i=0,r=0,o="",a=0;a<n;a++)for(r=r<<8|e[a],i+=8;5<=i;)o+=t[r>>>i-5&31],i-=5;return 0<i&&(o+=t[r<<5-i&31]),o}(Ye(n)));if(E.isString(n))return n+"/"+t.join("/")}return e}(t.contentUrlJs)),function(e){k.removeNode(a),e&&m.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise),t.contentUrlCss&&(r.deferred.css=y.defer(),Ta({url:c(t.contentUrlCss),type:"text/css"},function(){r.deferred.css.resolve()}),i.push(r.deferred.css.promise))}else if(t.contentUrl&&!h.get("preventCodeInjection")){r.deferred.content=y.defer();var s=Ta(function(e,t){if(!E.isString(e))return e;var n=E.indexOf(e,"?");return n<0?e+t:e.substring(0,n)+t+e.substring(n)}(c(t.contentUrl),".js"),function(e){k.removeNode(s),e&&m.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise)}else if(!o)return y.reject("fetchedDomContent is still false");r.deferred.promise=y.all(i).then(function(){return E.omit(r,"deferred")})}return d[t.id].deferred.promise}catch(u){throw m.resourceFetchFail.trigger(t,u),u}},reset:function(){d={}},guideContent:function(e,t,n,i,r){var o,a,s;E.isString(n)&&(o=n,a=e,s=t,n=E.reduce(u,(e,t)=>t(e,a,s),o),E.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?E.template(n):E.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=Dd(n),e.deferred.domJson.resolve())}}}(),Gd=(jd.state={},jd.queue=[],jd.pending=function(){return E.reduce(jd.state,(e,t)=>e+(t.loaded?0:1),0)},jd.reset=function(){Ud.reset(),jd.state={},jd.queue=[]},jd.prefetch=function(e){var t;return jd.hasContent(e)?E.get(jd.state[Bd(e)],"promise"):(t=y.defer(),jd.queue.push([t,e]),t.promise)},jd.processPrefetch=function(e=10){return jd.queue.length?(e=jd.queue.splice(0,Math.max(e-jd.pending(),0)),y.all(E.map(e,t=>jd.fetchContent(t[1]).then(e=>{t[0].resolve(e)})["catch"](e=>{t[0].reject(e)})))):y.resolve()},jd.fetchContent=function(t){var e=Bd(t);if(!(i=jd.state[e])){var n,i={},r=t.getGuide();if(r.control)return y.resolve();r&&r.language&&(n=r.language);var r=t.guideId+t.id,o=E.extend({id:r,language:n,guideId:t.guideId},E.pick(t,"contentUrl","contentUrlCss","contentUrlJs","domJsonpUrl","domUrl","domHash","contentHash","contentJsHash"));i.promise=_d.verify(o).then(function(){return i.verified=!0,Ud.load(o)}).then(function(e){return i.loaded=!0,e}),jd.state[e]=i}return i.promise.then(function(e){E.extend(t,e)})},jd.hasContent=function(e){return ge(e.content)||ge(e.domJson)},jd);function jd(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(E.extend(i,{fetchContent:function(e=!1){return e?jd.prefetch(i):jd.fetchContent(i)}}),i.after("render",function(e){!function(e){var t=E.indexOf(n.steps,i);E.chain(n.steps).rest(t+1).first(e).each(function(e){E.isFunction(e.fetchContent)&&e.fetchContent()}).value()}(t)})),i}function Bd(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}var zd=function(){var e=m.runtime;const r=[];function o(e,n,i,r){return E.filter(e,function(e){if(E.isFunction(e[r])){if(E.isFunction(e.test))try{return e.test(n,i,I)}catch(t){return C.critical("Error in global script test code block",{error:t}),!1}return E.isRegExp(e.regex)?e.regex.test(i.name)||e.regex.test(n.name):!0}})}function t(e,t,n="script"){var i=[];return"script"===n&&E.isFunction(e.script)&&i.push(e.script),E.size(r)&&(e=o(r,e,t,n),E.each(e,function(e){i.push(e[n])})),i}function i(n,i,r){const o=r.guide;o&&E.all(t(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=pn.call({}),s={beforeUnmount:{type:"trigger",fromUnmount:!1},beforeUpdate:{type:"trigger",fromUnmount:!1},updated:{type:"trigger",fromUnmount:!1},unmounted:{type:"trigger",fromUnmount:!0},advanced:{type:"trigger",fromUnmount:!0},dismissed:{type:"trigger",fromUnmount:!0},snoozed:{type:"trigger",fromUnmount:!0},hidden:{type:"trigger",fromUnmount:!0},beforeMount:{type:"triggerCancelable",fromUnmount:!1},beforeAdvance:{type:"triggerCancelable",fromUnmount:!1},beforePrevious:{type:"triggerCancelable",fromUnmount:!1},beforeDismiss:{type:"triggerCancelable",fromUnmount:!1},beforeSnooze:{type:"triggerCancelable",fromUnmount:!1}};function u(e){return s[e]}function n(n){this.step=n,E.each(["read","write","clear"],function(t){this[t]=f[t],this[t+"ByGuide"]=function(){var e=E.first(arguments)+":"+E.get(n,"guide.id");return f[t].apply(this,[e].concat(E.rest(arguments)))}},this);var e=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=E.partial(a.off,"afterUnmounted",e),a.on("afterUnmounted",e)}return e.on(function(e){var t,n=e.data[0];if(e.step=n,delete e.data,u(e.type))return-1<E.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}),n.prototype.on=function(e,t){var n,i;u(e)?(s[e].fromUnmount&&(t=E.once(t)),n=this.step,i=t,t=Wn(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=E.compose(this.purge,E.partial(a.off,e,t))):C.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)},{initialize:function(){var e=h.get("guides.globalScripts");E.each(e,zd.addGlobalScript)},teardown:function(){E.each(r,zd.removeGlobalScript)},addGlobalScript:function(e){var t;e=function(t){const e=E.without(E.keys(t),"script","test","regex","beforeMount");if(e.length){const n=t.script;t.script=function(){if(E.each(e,function(e){u(e)&&this.on(e,t[e])},this),E.isFunction(n))return n.apply(this,arguments)}}return t}(e),t=e,!E.isFunction(t.script)&&!E.isFunction(t.beforeMount)||t.test&&!E.isFunction(t.test)||t.regex&&!E.isRegExp(t.regex)?C.critical("Error adding invalid GlobalScript via API"):r.push(e)},removeGlobalScript:function(e){0<=(e=E.indexOf(r,e))&&r.splice(e,1)},getContext:function(e){return new n(e)},runCustomScripts:function(i,r){E.each(t(i,r),function(e){try{var t=zd.getContext(i);e.call(t,i,r,I)}catch(n){C.critical("Exception thrown running code block for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:n})}})}}}();function Hd(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?E.find(e.children,Hd):void 0}function Wd(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=Wd(e.children[n],t);if(i)return i}return!1}function qd(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=qd(e,t.children[n]);if(i)return i}}var Vd={buildNodesFromTemplate:function(e,t,n,i,r){var o=i||R,a=r||I.BuildingBlockGuides.buildNodeFromJSON;switch(e){case"pendo_resource_center_module_list_item":return function(p,h,f,g){var e=p.templateChildren;return E.reduce(e,function(e,t,n){var i=P.findResourceCenterHomeView(f),r=E.find(f,function(e){return e.id===t.id});if(I.designer)r=t,i=E.find(f,function(e){return E.get(e,"attributes.resourceCenter.isTopLevel")});else{if(!r)return e;if(!r.hasResourceCenterContent)return E.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"]}),I.designer||u.actions.push(d),E.get(i,"attributes.notificationBubble")),c=E.get(i,"attributes.notifications"),d=(d&&c&&("AnnouncementsModule"===E.get(r,"attributes.resourceCenter.moduleId")&&(o=r.id),o="chat"===E.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=Wd(c,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-row")}))&&(s=E.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)),Wd(u=Jd(u,t,u.props.id,n),function(e){e=E.get(e,"props.class");return e&&0<=e.indexOf("_pendo-resource-center-module-list-item-text-container")})),i=Wd(u,function(e){e=E.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),l=Wd(u,function(e){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 E.reduce(e,function(e,t,n){var i,r=Yd(s,t);return r?(i=JSON.parse(JSON.stringify(o)),t.keywords&&(i.props["data-_pendo-text-list-item-1"]=t.keywords),delete i.templateChildren,i.props.id=i.props.id+"-"+n,i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},I.designer||i.actions.push(r),i=Jd(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;E.filter(r,function(e){return Yd(n,e)}).length?(e.children=E.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=E.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 E.reduce(e,function(e,t,n){var i,r,o,a=Yd(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"},I.designer||i.actions.push(r),r=a.getTotalSteps(),o=a.getSeenSteps(),a.isComplete()&&(o=r),a=parseInt(o/r*100,10),Wd(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=Kd(t.subtitle,{currentStep:o,totalSteps:r}):t.stepProgress="Step "+o+" of "+r,i=Jd(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=(E.forEach(r,function(e){e=Yd(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 Wd(e=Jd(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=E.reduce(e,function(e,t){t=Yd(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!E.every(e,function(e){e=e.steps[0];return!!Gd.hasContent(e)}))return[];var t=P.getResourceCenter(),h=E.get(t,"attributes.notificationBubble");h&&(delete h.dir,"rtl"===l.props["data-localization-direction"])&&(h.dir="rtl");return E.map(e,function(e,t){var n,i,r,o,a,s,u,d="whatsnew"===E.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=Pd(r=e),(u=n.steps[0]).render(),zd.runCustomScripts(u,n),i="#"+(n=u.guideElement)[0].id+" h1::after { display:none; }",n[0].appendChild(document.createElement("style")).innerHTML=i,d&&((o=Zd(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=Pd(t=e),s=t.steps[0],zd.runCustomScripts(s,u),u=JSON.parse(JSON.stringify(s.domJson)),d.children=[u],r&&(a=Zd(r),u=Wd(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=qd("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():E.find(n,function(e){return e.id===t.guideId}),o=E.get(r,"attributes.dates."+r.language,!1);o=o?{showsAfter:o}:(o=E.get(r,"currentFirstEligibleToBeSeenAt")||E.get(r,"showsAfter")||E.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=Jd(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:Zd,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return E.reduce(e,function(e,t,n){t=Yd(i,t);return t&&e.push(t),e},[])}};function Kd(e,n){return e.replace(/<%=\s*([A-Za-z_0-9$]+)\s*%>/gi,function(e,t){return E.isNull(n[t])||E.isUndefined(n[t])?e:n[t]})}function Jd(e,t,n,i){if(e.content&&(e.content=Kd(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?Kd(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++)Jd(e.children[r],t,n,i);return e}function Yd(e,t){e=E.find(e,function(e){return e.id===(t.id||t)});if(I.designer)return t;if(e){if(!e.ineligibleForRC)return e;e.control&&e.steps[0].onControlGuide("control")}}function Zd(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 Xd={buildSvgNode:function(e,t){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return Qd(t)}},createProgressCircleSvg:Qd};function Qd(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(J(I).createHTML('<div aria-hidden="true" focusable="false" class="pendo-progress-circle-ie"><div class="pendo-progress-circle-fill"></div></div>')),o=r.find(".pendo-progress-circle-fill"),t?o.css({border:"3px solid "+n,height:"10px",width:"10px"}):o.css({border:"3px solid "+i,height:"10px",width:"10px"}),r):100<=((t=e.svgAttributes).fillCircle.percentComplete||0)?(n=(n=t).fillCircle.stroke,(i=k(J(I).createHTML('<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" class="pendo-progress-circle-fill" viewBox="0 0 24 24" fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>')))[0].setAttributeNS(null,"stroke",n),i):(r=(o=t).fillCircle.stroke,e=o.backgroundCircle.stroke,o=o.fillCircle.percentComplete||0,a='<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" version="1.1" viewBox="0 0 40 40" preserveAspectRatio="xMidYMid"><circle class="pendo-progress-circle-background" cx="20" cy="20" r="'+(a=100/(2*Math.PI))+'" stroke-width="6px" stroke-linecap="round" fill="none"></circle><circle class="pendo-progress-circle-fill" cx="20" cy="20" r="'+a+'" stroke-width="6px" stroke-linecap="round" transform="rotate(-90 20 20)" fill="none"></circle></svg>',s=(a=k(J(I).createHTML(a))).find(".pendo-progress-circle-fill")[0],a.find(".pendo-progress-circle-background")[0].setAttributeNS(null,"stroke",e),o<=0?s.setAttributeNS(null,"stroke-width","0px"):(s.setAttributeNS(null,"stroke",r),s.setAttributeNS(null,"stroke-dasharray",o+", 100")),a)}var ec=function(e,t){return e<t},tc=E.negate(ec);function nc(){var e=Ko();return vo(e)?Zo(e):((e=jo()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function ic(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=vo(Ko())?Zo:wo,(e=E.reduce(e,function(n,e){var i;return ca(e)?(i=t(e))?(E.each([["top",ec],["right",tc],["bottom",tc],["left",ec]],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=nc(),e=rc(e)||{top:0,left:0,right:n.width,bottom:n.height,width:0,height:0};return{viewport:n,box:e,overlays:ic(n,e,t)}}function ac(e){var t=[],n=E.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==Ko()){t.push(e.element);for(var i=n.additionalElements.replace(/\s/g,"").split(","),r=0;r<n.additionalElements.length;r++)try{var o=k(i[r]);o&&E.each(o,function(e){t.push(e)})}catch(a){C.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var sc=null,uc=function(e){var t=!E.isEqual(e,sc);return sc=e,t},dc=null,cc=function(e){var t=!E.isEqual(e,dc);return dc=e,t},lc=null,pc=function(e){var t=!E.isEqual(e,lc);return lc=e,t},hc=function(e){return cc(e.viewport)||uc(e.box)||pc(e.overlays)};function fc(e){try{var t=oc(ac(e),E.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));hc(t)&&E.each(e.backdrop.children,function(n){var e=n.getAttribute("pendo-region"),e=t.overlays[e];E.each(e,function(e,t){n.style[t]=e+"px"})})}catch(n){C.info("Failed to update BlockOut ui",{contexts:["error"]})}}function gc(e){try{var t,n,i,r;if(!(0<k("._pendo-guide-backdrop_").length))return t=oc(ac(e),E.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),hc(t),n={"z-index":1e4,position:"fixed"},i=[],E.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,E.extend({},e,n));i.push(t)}),o=i,a=qd("pendo-backdrop",e.domJson),E.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_"),E.each(a.props,function(n,i){E.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 mc="top",vc="bottom",yc="left",bc="right",wc="center";function Sc(e,t,n){return n===bc||n===yc?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?wc:n<e/2?bc:yc)}var Ic={createBBTooltip:_c,getBBTooltipDimensions:xc,determineBBHorizontalBias:Sc,determineTooltipPosition:kc,positionBBTooltipWithBias:Ac,calculateToolTipPositionForTopBottom:Oc,calculateToolTipPositionForLeftRight:Rc,buildTooltipCaret:Nc,styleTopOrBottomCaret:Lc,styleLeftOrRightCaret:Pc,buildBorderCaret:$c,determineBorderCaretColor:Dc,placeBBTooltip:function(e,t){var n,i,r,o,a,t=t||function(e){var t,n;if(e.guideElement)return t="pendo-resource-center-container"===e.guideElement.attr("id"),n=Hd(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}(e);t&&(i=e.element||rd(e),n=Ho(i),"none"!==O(e.elements[0]).display)&&(i=wo(i),a=e.attributes.layoutDir,e=e.guideElement,r=k(t).find("#pendo-guide-container"),o=r[0].style,t=O(t),t={height:parseInt(t.height,10),width:parseInt(t.width,10)},r={height:parseInt(r[0].getAttribute("data-caret-height"),10)||0,width:parseInt(r[0].getAttribute("data-caret-width"),10)||0,backgroundColor:r[0].style["background-color"],offset:10,borderColor:o.borderColor,borderWidth:parseInt(o.borderWidth,10)},o=this.getBBTooltipDimensions(n,t,r,a,i),r.height&&r.width&&(t=e.find(".pendo-tooltip-caret")[0],a=e.find(".pendo-tooltip-caret-border")[0],t&&Mc(t,o,r),a)&&Fc(a,r,o.layoutDir,t),e.css({top:o.top,left:o.left,position:n.fixed?"fixed":"absolute"}))},attachBBAdvanceActions:Tc,attachScrollHandlers:Ec,isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!E.isObject(e.domJson)||!(e=Hd(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForTooltip:function(e,t,n){_c(t,e.element,e,n),e.hasBeenScrolledTo||(pa(e.element),sd(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)}};function _c(e,t,n,i){var r,o,a,s,u,d;if(n.guideElement)return(r=n.guideElement).addClass(td()?Yu:Ju),0===(o=Ho(t)).height&&0===o.width?null:(t=wo(t),(e=Wd(e,function(e){return"pendo-guide-container"===e.props.id}))?(d=n.attributes.layoutDir,u={height:i.offsetHeight,width:i.offsetWidth},a={height:parseInt(e.props["data-caret-height"],10)||0,width:parseInt(e.props["data-caret-width"],10)||0,backgroundColor:e.props.style["background-color"],offset:10},Tc(n),e.props.style.border&&(e=e.props.style.border.split(" "),a.borderColor=e[2],a.borderWidth=parseInt(e[0],10)),e=xc(o,u,a,d,t),n&&(n.dim=e),n&&E.isFunction(n.getGuide)&&(s=n.getGuide()),u=E.get(s,"attributes.resourceCenter"),o.fixed?(r.css({position:"fixed"}),i.style.position="absolute"):n&&u||(i.style.position="absolute"),a.height&&a.width&&Nc(r,e,a),d="300000",i&&i.style&&i.style["z-index"]&&(d=i.style["z-index"]),r.css({"z-index":d}),u||r.css({height:"auto",width:"auto",overflow:"visible"}),n.elementPathRule&&r.css({left:e.left,top:e.top,position:o.fixed?"fixed":"absolute"}),"top"===e.layoutDir&&e.hbias===yc&&r.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),Ec(n,Uc),r[0]):void 0)}function Ec(e,t){e&&E.isFunction(e.attachEvent)&&(ed()&&e.element===k.getBody()||(t=E.throttle(E.bind(t,e,e),10),e.attachEvent(window,"scroll",t,!0),aa(E.bind(e.attachEvent,e),e.targetElement,t)))}function Cc(t,n){var e=k(n.elementPathRule)[0];n.attachEvent(e,t,function(e){k.data.set(e,"advanced",!0),mg(t,n)})}function Tc(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?Cc("mouseover",e):e.attributes.advanceActions.elementClick&&Cc("click",e))}function xc(e,t,n,i,r){var o,a,s=jo(),i=i||"auto",t={width:Math.min(t.width,s.width),height:t.height},u=(t.layoutDir=i,t.hbias=Sc(e,s,i),t.vbias=(o=e,u=s,(a=i)===mc||a===vc?a:(a=o.top,(u=(o=u.height)/3)<a&&a<2*u?wc:a<o/2?vc:mc)),t.layoutDir=kc(t,s,r,i),Ac(t,e,s));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 kc(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===wc)&&(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!==wc&&(c=e.hbias),u&&d||(d||(c="right"),u)||(c="left")),(c=c&&"bottom"!==c||!s||a?c:"top")||e.hbias)||"bottom")}function Ac(e,t,n){return"top"===e.layoutDir||"bottom"===e.layoutDir?Oc(e,n,t,e.layoutDir,e.hbias):Rc(e,n,t,e.vbias)}function Oc(e,t,n,i,r){var o=e.height,a=e.width,s={top:null,left:null};return"bottom"===i?s.top=n.top+n.height:"top"===i&&(s.top=n.top-o),"right"===r?((i=n.left+n.width/2)+e.width>t.width&&(i-=i+e.width-t.width),s.left=i):s.left="left"===r?n.left-a+n.width/2:n.left+n.width/2-a/2,s}function Rc(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 Nc(e,t,n){var i=document.createElement("div"),e=(i.setAttribute("class","pendo-tooltip-caret pendo-tooltip-caret--"+t.layoutDir),i.style.position="absolute",i.style.zIndex=11,Mc(i,t,n),e.find("#pendo-guide-container")[0].parentNode);e.appendChild(i),n.borderWidth&&(i=$c(i,n,t.layoutDir),e.appendChild(i))}function Mc(e,t,n){"top"!==t.layoutDir&&"bottom"!==t.layoutDir||Lc(e,t,n),"left"!==t.layoutDir&&"right"!==t.layoutDir||Pc(e,t,n)}function Lc(e,t,n){var i,r=jo();return e.style["border-left"]=n.width+"px solid transparent",e.style["border-right"]=n.width+"px solid transparent",e.style.right="",t.hbias===yc?(i=t.width-2*n.width-n.offset-n.borderWidth,e.style.left=i+"px",t.left+=n.offset+n.width+n.borderWidth):t.hbias===bc?(e.style.left=n.offset+n.borderWidth+"px",t.left-=n.offset+n.width+n.borderWidth,t.left+t.width>r.width&&(t.left=t.left-(t.left+t.width-r.width)),t.left=Math.max(0,t.left)):e.style.left=t.width/2-n.width+"px","bottom"===t.layoutDir&&(e.style["border-bottom"]=n.height+"px solid "+n.backgroundColor,e.style["border-top"]="",i=-1*n.height,n.borderWidth&&(i+=n.borderWidth),e.style.top=i+"px",e.style.bottom=""),"top"===t.layoutDir&&(e.style["border-top"]=n.height+"px solid "+n.backgroundColor,e.style["border-bottom"]="",r=-1*n.height,n.borderWidth&&(r+=n.borderWidth),e.style.bottom=r+"px",e.style.top=""),e}function Pc(e,t,n){var i,r=jo();return e.style["border-top"]=n.width+"px solid transparent",e.style["border-bottom"]=n.width+"px solid transparent",e.style.bottom="",t.vbias===mc?(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===vc?(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 $c(e,t,n){var i=e.cloneNode();return i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=10,Fc(i,t,n,e),i}function Fc(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]=Dc(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"),E.extend(e.style,r)}function Dc(e,t){return"transparent"===e?e:t}function Uc(e){ca(e.element)?(Ic.placeBBTooltip(e),k(e.elements[0]).css({display:"block"})):k(e.elements[0]).css({display:"none"})}function Gc(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=E.some(i,function(e){return e.parentNode===o.parentNode});if(!r){let e=t[0];r=o.parentNode.closest('[data-pendo-grow-height="true"]');if(r){if(!i.includes(r))continue;e=r}jc(o,e),i.push(o)}}}}function jc(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=O(o),r=parseInt(r.marginTop,10)+parseInt(r.marginBottom,10),n+=o.offsetHeight+r)}var a=e.offsetHeight,e=O(e),e=parseInt(e.paddingTop,10)+parseInt(e.paddingBottom,10),s=O(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 Bc(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(O(e).height,10),u=jo().height,d=parseInt(e.style.top,10),d=isNaN(d)?0:d,c=parseInt(e.style.bottom,10),(u=u-d-(c=isNaN(c)?0:c))<s&&(n.css({"max-height":u+"px",overflow:"auto"}),s=u),s!==o?(t.css({height:(d=a&&o?o:s)+r}),"Centered"!==(c=e.getAttribute("data-vertical-alignment"))&&"Left Aligned"!==c&&"Right Aligned"!==c||t.css({"margin-top":"-"+(u<s?u:d)/2+"px"})):t.css({height:i}))}function zc(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(O(e).width,10)),o=jo().width-parseInt(e.style.left||0,10)-parseInt(e.style.right||0,10);if(o<r&&(t.css({"max-width":o+"px"}),r=o),!isNaN(i))switch(e.getAttribute("data-vertical-alignment")){case"Centered":case"Top Aligned":case"Bottom Aligned":var a=r/2;parseInt(n.css("margin-left"),10)!==a&&n.css({"margin-left":"-"+a+"px"});break;case"Right Aligned":case"Top Right Aligned":case"Bottom Right Aligned":a=i-r;parseInt(n.css("margin-right"),10)!==a&&n.css({"margin-right":"-"+a+"px"})}}}}function Hc(e,i){var e=E.isArray(e)?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=E.reduce(t,function(e,t){return e.concat(E.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&&Wc(E.reduce(t,function(e,t){var n,t=k(t),i=Kc(t[0]),i=i.marginLeft+i.marginRight,r=Vc(t);return r&&(n=r.paddingLeft+r.paddingRight,r=r.width-i-n,e.push({$blockElement:t,availableSpace:r})),e},[])),E.each(e,function(e){var t=e,t=((t=k("._pendo-open-text-poll-input",t))&&t.length&&E.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)),Kc(n[0])),r=e.marginLeft+e.marginRight,o=Vc(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&qc(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),Wc({$blockElement:n,availableSpace:o}))}),e);(t=k(["._pendo-video","._pendo-image"].join(","),t))&&t.length&&E.each(t,function(e){var t=k(e),n=Kc(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=Vc(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&qc(t,i,r,a),Wc({$blockElement:t,availableSpace:a}))})})}function Wc(e){E.isArray(e)||(e=[e]),E.each(e,function(e){e.$blockElement.css({"max-width":"none"})});var n=E.map(e,function(e){return Kc(e.$blockElement[0]).width});E.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function qc(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 Vc(e){e=e.closest("._pendo-row");if(e){e=O(e[0]);if(e)return{width:parseFloat(e.width),paddingLeft:parseInt(e.paddingLeft,10),paddingRight:parseInt(e.paddingRight,10)}}}function Kc(e){e=O(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var Jc,M={calculateTotalOffsetWidth:Xc,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=Xc(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 E.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=Xc(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=Xc(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return E.filter(e,Zc)},getPendoVisualElements:function(e){return E.filter(e,function(e){return!Zc(e)})},initializeFlexElements:function(e){var t=e.cloneNode(),n=Yc(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++)el(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:Zc,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=Xc(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=Xc(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=Xc(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=E.get(e.style,"width",""),s=O(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)||O(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(O(t).width,10),d=parseInt(O(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"!==E.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=E.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:Yc,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 E.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:Qc,wrapFlexElementsInFlexRows:function(e,t,n){for(var i=n||Qc(t),r=M.createFlexRow(),o={row:r,rowWidthUsed:0},a=[o],s=0;s<e.length;s++){var u=e[s],d=wo(u)["width"],d=parseInt(d,10);o.rowWidthUsed+=d,o.rowWidthUsed>i&&0!==E.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||Qc(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:el,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&&(nl(e),M.flexElement(e,n))},flexElement:function(e,i){e=k("[data-pendo-display-flex]",e);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:nl};function Yc(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 Zc(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function Xc(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 Qc(e){var t=wo(e)["width"],e=O(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function el(e){tl(e);var t=Zo(e);if(0===t.width||0===t.height)return!0;if(!e.style||"visible"!==e.style.visibility)for(var n=e,i=e.id||"",r=0;0!==i.indexOf("pendo-g-")&&(tl(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function tl(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function nl(e){var n="data-aspect-ratio",e=k("["+n+"]",e);E.each(e,function(e){var t=e.getAttribute(n).split(":"),t=1<t.length?parseInt(t[0],10)/parseInt(t[1],10):parseFloat(t[0]);isNaN(t)||(e.style.height=e.offsetWidth/t+"px")})}function il(){return!I.designer&&h.get("disableGuidePseudoStyles")}function rl(e,t,n){return e&&e.templateName?Vd.buildNodesFromTemplate(e.templateName,e,t,n,sl):"style"===e.type&&il()?[]:[sl(e,t,n)]}function ol(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 al(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=E.keys(n);return E.reduce(e,function(e,t){return s[o]&&s[o][t]&&ol(t,r,i,o),a[t]||u.test(t)||d.test(t)||ol(t,r,i),e[t]=n[t],e},{})}function sl(n,i,e){i=i||{id:"unknown",guideId:"unknown"},n.props=al(n.props,i.id,i.guideId,n.type);var t,r=k(document.createElement(n.type));if(document.createElement("div").appendChild(r[0]),"script"===r[0].tagName.toLowerCase())return k(document.createElement("noscript"));if("pendo-backdrop"===(n.props&&n.props.id))return i.attributes&&i.attributes.blockOutUI&&i.attributes.blockOutUI.enabled&&Ic.attachScrollHandlers(i,fc),gc(i);if(E.each(n.props,function(e,t){"style"===t?r.css(n.props.style):"data-pendo-code-block"!==t||!0!==e||h.get("preventCodeInjection")?r.attr(t,e):(t=i.getContent(),0!==Ze.call(t).length&&r.addClass("pendo-code-block").html(t))}),n.content&&r.text(n.content),"style"===n.type&&(I.designer||(n.css=function(e){for(var t=["button:focus"],n=[],i=0;i<e.length;i++)E.contains(t,e[i].selector)||n.push(e[i]);return n}(n.css)),(t=h.get("inlineStyleNonce"))&&r.attr("nonce",t),r.styleSheet?r.styleSheet.cssText=ll(n.css):r.text(ll(n.css))),n.svgWidgetId&&Xd.buildSvgNode(n.svgWidgetId,n).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)cl(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(E.find(n.actions,function(e){return"dismissGuide"===e.action})&&!i.hasEscapeListener&&(i.hasEscapeListener=!0,i.attachEvent(window,"keyup",function(e){27===e.keyCode&&i.eventRouter.eventable.trigger("pendoEvent",{step:i,action:"dismissGuide"})},!0)),n.children)for(var s=oa(nd()),u=s!==document,d=0;d<n.children.length;d++){var c=rl(n.children[d],i,e);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){ul(e,i)}):ul(r[0],i),r}function ul(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++,dl(k(e),t))}function dl(e,i){e.on("load",function(){var e,t={},t=(!i.containerId&&i.domJson&&(t=Hd(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&&(zc(t,i.guideElement),Hc(t,i.guideElement),M.flexAllThings(t,i),e=i.getGuide(),E.get(e,"attributes.isAnnouncement")||"AnnouncementsModule"===E.get(e,"attributes.resourceCenter.moduleId")||(Bc(t,i.guideElement),(e=n.children.item("pendo-guide-container"))&&e.style&&"auto"===e.style.overflow&&(Hc(t,i.guideElement),M.flexAllThings(i.containerId,i))),"tooltip"===i.attributes.calculatedType&&Ic.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&&Ic.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 cl(n,i,r){n.on(i.eventType,function(e){var t;i.designerAction?I.designerv2&&I.designerv2.designerActions&&I.designerv2.designerActions[i.action](n,i.parameters):(t={action:i.action,params:i.parameters,step:r,ignore:!!i.ignore,srcElement:e.srcElement},("showElements"!==i.action&&"hideElements"!==i.action||e.srcElement&&e.srcElement.getAttribute("id")===i.source||e.target&&e.target.getAttribute("id")===i.source)&&r.eventRouter.eventable.trigger("pendoEvent",t))})}function ll(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=ll(n[r].styles):E.each(n[r].styles,function(e,t){i+=t+":"+e,n[r].selector.match(/\d+%/)||(i+="!important;")}),i+="}";return i}function pl(t){E.each(document.head.childNodes,function(e){e&&k.hasClass(e,"pendo-style-"+t)&&Wo(e)})}var hl=function(){var e=window.navigator;return((E.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},fl="meta",gl=E.compose(JSON.parse,JSON.stringify),ml=function(){var e=new Date,t=e.getDate(),n=e.getMonth()+1;return e=(t=t<10?"0"+t:t)+"/"+(n=n<10?"0"+n:n)+"/"+e.getFullYear()},vl=function(e={}){(e=E.isObject(e)?e:{}).jwt&&e.signingKeyName&&(t=fs.getJwtOptions(e,"updateOptions"))&&(fs.set(E.pick(e,"jwt","signingKeyName")),e=t),t=e,n=E.extend({},t.visitor),i=E.extend({},t.account),t=E.extend({},t.parentAccount),n.id===On&&(C.info("Missing visitor id."),delete n.id),Tn(i.id)&&Tn(t.id)&&(Mn(i.id)?t.id=i.id.split(Nn)[0]:i.id=""+t.id+Nn+i.id),Tn(i.id)&&(i.id=""+i.id),Tn(n.id)?n.id=""+n.id:n.id=b({generate:!0}),n.language=hl(),e={visitor:gl(n),account:gl(i),parentAccount:gl(t),date:ml(),version:I.VERSION},g.getters["metadata/selfHosted"]()&&(e.selfHosted=!0);var t,n=E.clone(Il()),i=(h.setLocalConfig(E.extend({},h.getLocalConfig(),e)),g.commit("metadata/setMetadata",e),Il()),r=(Tn(e.visitor.id)&&(I.identify(e.visitor.id,e.account.id),e.visitor.id=b(),e.account.id=Gn()),rt(e)),o=(void 0!==(o="object"==typeof(o=r)?rt(o):o)&&o.toString&&(o=o.toString()),""+(E.isNumber(Jc)?Jc:Bn(fl))!==o),r=(Jc=r,o&&jn(fl,r),!E.isEqual(n,i));return{options:e,hashChanged:o,storeChanged:r}},yl=Wn(function(e){e=vl(e);m.metadata.trigger(e)}),bl=Wn(function(e,t){E.isObject(e)?yl(e):$n(e,t)}),wl=function(){var t,e=k("script");return e=e,t=new RegExp("/agent/static/"+I.apiKey+"/pendo\\.js$"),!E.any(e,function(e){return t.test(e.src)})&&"extension"!==we()},Sl=function(){var e=h.get("blockAgentMetadata");return e!==undefined&&e};function Il(){return g.getters["metadata/metadata"]()}function _l(){return JSON.parse(JSON.stringify(Il()))}m.identify.on(function(e){var t=e.data[0],n=h.getLocalConfig()||{};Hn(e)?(An([fl]),g.commit("metadata/reset",t)):(n.visitor=E.extend({},n.visitor,{id:t.visitor_id}),n.account=E.extend({},n.account,{id:t.account_id}),h.setLocalConfig(n),g.commit("metadata/setMetadata",n))});var El={Launcher:{addBehavior:E.noop},Metadata:{getMetadata:Il},Util:{documentScrollTop:ho,documentScrollLeft:fo,getOffsetPosition:Ho},Events:m,JWT:{getJWT:fs.get}};var Cl,Tl,xl,kl,Al={},Ol=(Tl=[],xl=[],kl={},(Cl=Al).tagExtension=function(e,t){e=Cl.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},Cl.findExtensionByTag=function(t){return E.find(xl,function(e){return E.contains(e.tags,t)})},Cl.findExtensionByName=function(e){return E.findWhere(xl,{name:e})},Cl.filterExtensionsByUse=function(t){return E.filter(xl,function(e){return e.use===t})},Cl.findExtensionByNameAndProvider=function(t,n){return E.find(xl,function(e){e=e.data;return!!e&&e.name===t&&e.provider&&e.provider.name===n})},Cl.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],kl[e]={handler:t,validators:n}},Cl.getExtensionFrames=function(){return E.reduce(xl,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=E.filter(e,Rl)).length&&(Tl=function n(e){if(!e.length)return e;var t=E.filter(e,Nl);if(t.length)return n(E.difference(e,t));return e}(Tl.concat(e)))});function Rl(t){var e;return!!E.every(["name","version","use","type","uri"],E.partial(E.has,t))&&(e=t.use,e=kl[e]?kl[e].validators:[],E.every(E.map(e,function(e){return e(t)})))}function Nl(e){var t;return"behavior"===e.use?!!e.uri(Cl,El)&&(xl.push(e),!0):(t=e.use,!!(t=kl[t]?kl[t].handler||E.identity:null)&&((e=t(e))&&xl.push(e),!!e))}var L,Ml,Ll,Pl,$l,Fl,P={initializeResourceCenter:function(r){if(!(L=Ul(r)))return y.resolve();if(g.getters["frames/isShownInAnotherFrame"]()(L.steps[0]))return y.resolve();if(P.isFullyCustom(L))return L.hasResourceCenterContent=!0,y.resolve();var e=Gl(L,r),t=E.reduce(e,function(e,t){return Dl(t)?e.concat(t.steps[0].fetchContent()):e},[]);return t.push(Nd.validate(L).then(E.noop,function(){L.launchMethod="api"})),L.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},E.forEach(ql(),function(e){var t=Al.findExtensionByNameAndProvider("chat",e),t=(t&&Yl(e,t),Al.findExtensionByNameAndProvider("helpcenter",e));t&&Yl(e,t)}),E.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=Hl(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&Wl(e.integrationName,e.integrationProvider),E.reduce(n,function(e,t){var n=E.find(r,function(e){return e.id===t});return n?e.concat(n):e},[]));"AnnouncementsModule"===i&&(L.attributes.notifications.individualCounts[t.id]=0,E.forEach(e,function(e){Ip(e)||e.isControlGroup()||L.attributes.notifications.individualCounts[t.id]++}));-1<E.indexOf(["GuideListModule","OnboardingModule","AnnouncementsModule"],i)&&E.filter(e,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):!(e.ineligibleForRC=!0)}).length&&(t.hasResourceCenterContent=!0),t.guidesInModule=e}),L.modules=e,L.badgeHidden=!0,y.all(t)["catch"](()=>(L=null,C.error("Failed to load one or more Resource Center modules"),y.resolve()))},findResourceCenterHomeView:Ul,findResourceCenterModules:Gl,replaceResourceCenterContent:jl,renderResourceCenterModule:function(e,t){jl(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(),E.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=Al.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:Wl,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(nd())})},getResourceCenter:ip,getResourceCenterContainer:rp,getResourceCenterBadge:op,addNotificationBubbleToResourceCenterBadge:fp,addNotificationBubbleToTargetElement:gp,updateNotificationBubbles:function(){var e=L,t=E.get(e,"attributes.notifications");if(t){var n=dp(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&wp(),t.totalUnseenCount=n;else{cp();var i=n!==t.totalUnseenCount;if(i||!sp(Pl)){if("badge"===e.launchMethod){i=op();if(!i)return;fp(i.element(),e.attributes.notificationBubble,n)}if("dom"===e.launchMethod&&E.get(e,"attributes.activation.selector")){i=k(e.attributes.activation.selector);if(!i.length)return;gp(i[0],e.attributes.notificationBubble,n),_r(window,"resize",E.debounce(up,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:wp,updateNotificationBubbleCount:Sp,updateNotificationBubbleOnHomeView:lp,updateOrCreateNotificationBubble:mp,hexToRgb:ap,doesIntegrationExist:Hl,calculateTotalNotificationCount:dp,updateNotificationBubblesOnHomeView:cp,createNotification:yp,appendNotificationBubble:bp,hasAnnouncementBeenSeen:Ip,clearAnnouncementUnseenInterval:Bl,createAnnouncementUnseenInterval:zl,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=E.find(ju(),function(e){return e.id===t});if(E.get(e,"attributes.resourceCenter.isModule",!1))return e}}},dismissResourceCenter:_p,repositionResourceCenter:function(){var e=P.getResourceCenterContainer();{var t,n,i;e&&(i=P.findResourceCenterHomeView(ju()).steps[0],t=E.get(i,"domJson.props.style.height"),t=parseInt(t,10),t=isNaN(t)?0:t,n=parseInt(E.get(i,"domJson.props.style.bottom",0),10),i=parseInt(E.get(i,"domJson.props.style.top",0),10),n=isNaN(n)?0:n,i=isNaN(i)?0:i,(n=jo().height-n-i)<=t&&(e.style.height=(n-10).toString()+"px"),i=parseInt(e.style.height,10),i=isNaN(i)?0:i,t<n)&&t!==i&&(e.style.height=t.toString()+"px")}Gc(k(e))},repositionDoubleResourceCenterBadge:function(){var e,t,n;g.getters["frames/isLeader"]()&&1<(e=E.unique(E.compact([].concat(E.toArray(k("._pendo-resource-center-badge-container"))).concat(E.toArray(k("._pendo-resource-center-badge-container")))))).length&&function(e){var t=Zo(e[0]),e=Zo(e[1]);return Xo(t,e)}(e)&&(t=Ho(e[0]).width+5,n=Ho(e[1]).left-t<0?"":"-",e[1].style.transform="translateX("+n+t+"px)")},resourceCenterIgnoreRtl:function(){return E.get(this.getResourceCenterBadge(),"ignoreRTL",!1)},adjustResourceCenterWidth:function(e){var t=rp();if(t){o=jo().width,r=k(t),e=k(e),r.css({"max-width":"none"}),e.css({"max-width":"none"}),i=parseInt(O(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=O(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=O(i),e=parseInt(i.width,10),a=parseInt(i.marginRight,10),s=parseInt(i.marginLeft,10)),o+r+e+s+a),d=parseInt(O(t[0]).width,10),c=0;c<n.length;c++){var l=n[c],p=k(l),l=(p.css({"max-width":"none"}),O(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:Yl,renderNativeIntegration:tp,isSupportedNativeIntegration:Vl,handleNativeIntegrationContinuation:np,isProviderInstalled:Kl,adjustNotificationBubbleForResize:up,getNotificationBubbleDefaultCss:vp,getModuleId:Ep,isIframeModule:function(e){return"IframeModule"===Ep(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===Ep(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===Ep(e)&&e.hasResourceCenterContent},isFullyCustom:function(e){return"FullyCustomModule"===Ep(e)},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!P.isSupportedNativeIntegration(e.integrationProvider)||P.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n=Ul(e);if(!n)return y.resolve();if(t.getters["frames/isShownInAnotherFrame"]()(n.steps[0]))return y.resolve();if(P.isFullyCustom(n))return y.resolve();var t=Gl(n,e),i=[],r=E.indexBy(e,"id");return E.each(t,function(e){var e=e.attributes.resourceCenter;"AnnouncementsModule"===e.moduleId&&(e=e.children,e=E.reduce(e,function(e,t){t=r[t];return t?e.concat(t):e},[]),E.each(e,function(e){Dl(e)&&i.push(e.steps[0].fetchContent(!0))}))}),y.all(i)},setFocusForResourceCenterModule:function(e,t){var n;"HomeViewModule"===e[0].getAttribute("data-layout")?t&&(e=k('[data-pendo-module-guide-id="'+t+'"]'),n=e.find('button[id^="pendo-right-caret-"]')[0]):(t=k('[id="pendo-resource-center-module-title-container"]'),n=t.find('button[id^="pendo-left-caret-"')[0]);n&&n.focus()},revertRtlChanges:function(e,t){var n="rtl"===E.get(t,"data-localization-direction",!1),e=E.get(e,"attributes.badge.ignoreRTL",!1);n&&e&&!t["data-direction-changed"]&&(n=E.get(t,"style.left",!1),e=E.get(t,"style.right",!1),n)&&e&&(t.style.left=e,t.style.right=n,t["data-direction-changed"]=!0)},stashBadgeAriaLabel:pp,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:hp,updatePseudoStyleSelectors:Cp,hideRCBadge:Tp};function Dl(e){return e.steps&&e.steps.length&&E.isFunction(e.steps[0].fetchContent)}function Ul(e){var e=E.filter(e,function(e){return E.get(e,"attributes.resourceCenter.isTopLevel")&&!e.isFrameProxy}),t=E.find(e,function(e){return"staged"===e.state});return t||e[0]}function Gl(t,e){return E.filter(e,function(e){return e&&!e.isFrameProxy&&E.get(e,"attributes.resourceCenter.isModule",!1)&&e.state===t.state})}function jl(t,e,n,i=!0){if(!Ll){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),rp());if(e){var a=k(e).find('[id^="pendo-g-"]')[0];if(a){var s,u=a.getAttribute("data-pendo-guide-id"),d=E.find(ju(),function(e){return e.id===t}),c=(t!==L.id?(pl(E.get(L.activeModule||L,"steps.0.id")),L.activeModule=d):(s=L.activeModule,pl(E.get(s,"steps.0.id")),delete L.activeModule),E.get(d,"attributes.resourceCenter.integrationProvider")),l=(Vl(c)&&tp(c),d.steps[0]),c=Cp(l.domJson),c=(c.props["data-pendo-guide-id"]=d.id,sl(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"===Ep(d)&&l.guide.guidesInModule?(Hc(r=E.reduce(l.guide.guidesInModule,function(e,t){var n;return E.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),E.each(r,function(e){M.flexAllThings(e,l)})):M.flexAllThings("pendo-resource-center-container"),Gc(k(e)),p.style.left="0px",!n){Ll=!0;try{"left"===o?a.style.left=-1*e.offsetWidth+"px":"right"===o&&(a.style.left=e.offsetWidth+"px"),Dt(function(){k(a).remove(),s&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),Ll=!1},200)}catch(h){throw Ll=!1,h}}return"AnnouncementsModule"===Ep(d)&&(zl(),r=Vd.getGuidesInResourceCenterModule(d,ju()),(n=E.reduce(r,function(e,t){return t.steps&&t.steps.length&&Gd.hasContent(t.steps[0])||e.push(t.fetchContent()),e},[])).length)&&((o=function(){var i,e,t;if(E.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 E.each(E.toArray(arguments).slice(2),function(e){n.append(e)}),n},t=function(e){return k(document.createElementNS(i,"animate")).attr({attributeName:"fill-opacity",values:"0;1;0;0",keyTimes:"0;0.4;0.8;1",dur:"1.4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0 0 0.58 1; 0 0 0.58 1; 0 0 0.58 1",begin:e})},t=k(document.createElementNS(i,"svg")).attr({viewBox:"0 0 70 20",xmlns:"http://www.w3.org/2000/svg",width:"70",height:"20"}).append(e(21,10,t("-0.32s"))).append(e(35,10,t("-0.16s"))).append(e(49,10,t("0s"))),k(document.createElement("li")).css({padding:"5px 20px","list-style-type":"none","list-style-position":"inside",position:"relative","margin-left":"0em","border-width":"0px","border-style":"solid","border-color":"rgb(255, 255, 255)","float":"none","vertical-align":"baseline","text-align":"center"}).append(t)}())&&c.find("ol").append(o),y.all(n).then(function(){var e=y.defer();return Dt(e.resolve,500),e.promise}).then(function(){L.activeModule===d&&P.renderResourceCenterModule(d,i)})),P.setFocusForResourceCenterModule(c,u),i&&l.onShown("launcher"),c}}}}function Bl(){window.clearInterval(Ml),Ml=null}function zl(){Ml=Ml||window.setInterval(function(){var e=rp();if(!e)return Bl();e=k(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return Bl();var t=k(e).find('ol[id^="pendo-list"]');if(!t.length)return Bl();var n=Zo(t[0]),i=k(t).find("li");if(!i.length)return Bl();for(var r=e.attr("data-pendo-guide-id"),o=L.attributes.notifications.individualCounts[r],a=n.height/3,s=Zo(i[i.length-1]).bottom-30<n.top+n.height,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(Zo(i[u]).top-n.top>n.height-a&&!s)break;var p=d.attr("data-pendo-announcement-guide-id"),l=E.find(ju(),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"),Ip(l)||o--,Sp(o,r)),l.steps[0].seenState="advanced",Ng(l.id,l.steps[0].id,b(),"whatsnew",l.language,{last_updated_at:l.steps[0].lastUpdatedAt}),d[0].removeAttribute("data-pendo-announcement-send-seen-event"),Lg(l.id,l.steps[0].id,b(),"advanced",l.language)}}},500)}function Hl(e,t){return Al.findExtensionByNameAndProvider(e,t)}function Wl(e,t){e=Al.findExtensionByNameAndProvider(e,t);if(!e)return C.info(t+" integration has not been loaded into the agent");Vl(t)&&Kl(t)?L.hasEligibleNativeIntegrationModule=!0:(Yo((t=e.getFrame())[0])||t.appendTo(nd()),t.css({display:"none"}))}function ql(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging"]}function Vl(e){return!!e&&0<=ql().indexOf(e)}function Kl(e){return!!e&&null!==(e=Jl(e))&&E.isFunction(window[e])}function Jl(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 Yl(e,t){if(e)if(Kl(e))Zl(e,t);else{var n;if("function"==typeof Object.defineProperty){const i=Jl(e);null!==i&&($l&&$l[i]?$l[i][e]||($l[i][e]={installed:!1,integrationObj:t}):(($l=$l||{})[i]={[e]:{installed:!1,integrationObj:t}},Object.defineProperty(window,i,{get(){return n},set(e){n=e,E.forEach($l[i],function(e,t){const n=e.integrationObj;!e.installed&&Kl(t)&&(e.installed=!0,Zl(t,n),Wl(n.name,t),E.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 Zl(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=Ql(i);Xl(n,"webWidget","hide"),Xl(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),Xl(n,"webWidget:on","close",function(){Xl(n,"webWidget","hide"),ep()}),L.isInProgress()&&np(L.activeModule),Xl(n,"webWidget:on","chat:unreadMessages",function(e){Sp(e,"chat")});break;case"zendesk-messaging":i=t;Xl(i=i.data.provider.name,"messenger","hide"),Xl(i,"messenger:on","close",function(){ep()}),Xl(i,"messenger:on","unreadMessages",function(e){Sp(e,"chat")});break;case"intercom-chat":var r=t;r=Ql(r),window.intercomSettings||(window.intercomSettings={}),window.intercomSettings.hide_default_launcher=!0,window.intercomSettings.alignment=r?r[1]:"right",window.Intercom("update",{hide_default_launcher:!0,alignment:r?r[1]:"right"}),window.Intercom("onHide",function(){ep()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=Il();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 Sp(1,"chat")})}),window.drift.on("chatClose",function(e){Sp(0,"chat"),window.drift.hide(),ep()})}}function Xl(e,...t){try{Fl&&Fl[e]||window.zE.apply(null,t)}catch(n){Fl?Fl[e]=!0:Fl={[e]:!0}}}function Ql(e){e=E.get(e,"data.options.labels.position");return e=e&&e.split("-")}function ep(){_p(L.activeModule),delete L.activeModule,L.continueToNativeModule=!1}function tp(e,t){if(e){var n=Il();if(L.isShown()&&L.hide(),Fl&&Fl[e])C.info(e+" integration failed to communicate with API, closing"),P.replaceResourceCenterContent(L.id,undefined,!0),ep();else{var i=op();switch(i&&Tp(i,L),e){case"zendesk-messaging":Xl(e,"messenger","show"),Xl(e,"messenger","open");break;case"zendesk-native-kb":Xl(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),Xl(e,"webWidget","show"),Xl(e,"webWidget","open");break;case"zendesk-chat":Xl(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&Xl(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})}Sp(0,"chat"),!L.activeModule&&t&&(L.activeModule=t).steps[0].onShown("launcher")}}}function np(e){e&&!e.isTopLevel&&(tp(E.get(e,"attributes.resourceCenter.integrationProvider")),L.activeModule||(L.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function ip(){return L}function rp(){return E.get(L,"steps.0.guideElement.0")}function op(){if(L&&L.id)return Du[L.id]}function ap(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 sp(e){return e&&E.all(e,function(e){return Yo(e&&e.length?e[0]:e)})}function up(){var e,t=P.getResourceCenter(),n=E.get(t,"attributes.notifications");n&&(n=P.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&E.get(t,"attributes.activation.selector")&&(e=k(t.attributes.activation.selector)).length&&P.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function dp(e){return E.reduce(e,function(e,t){return e+t},0)}function cp(){var e,t=L;t&&(t=E.get(t,"attributes.notifications"))&&(e=rp())&&k(e).find("._pendo-resource-center-home-list").length&&E.each(t.individualCounts,function(e,t){lp(e,t)})}function lp(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 pp(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function hp(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function fp(e,t,n){var i=hp(n);let r=e.getAttribute(i);r&&(pp(e),r=r.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",r));var i=E.get(t,"position","top-left"),o=O(e),o=(parseInt(o.width,10)||56)/2,a=o/Math.sqrt(2),o=Math.round(o-a)-10,s=o-10,a=Math.round(2*a),o={"top-left":{top:o+"px",left:s+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"top-right":{top:o+"px",left:s+a+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-left":{top:o+a,left:s+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-right":{top:o+a,left:s+a+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"}},s=e.attributes["data-localization-direction"]||!1,a=P.resourceCenterIgnoreRtl();mp(e,t,n,o[i=s&&!a?{"top-left":"top-right","top-right":"top-left","bottom-left":"bottom-right","bottom-right":"bottom-left"}[i]:i])}function gp(e,t,n){var i=bo(e,e),r=bo(e,Ko());mp(e,t,n,{width:"28px",top:i.top-Math.min(r.top,14)+"px",left:i.left-Math.min(r.left,14)+"px",position:"absolute"},{width:"28px","font-size":"16px","text-align":"center",position:"absolute",right:"0px"})}function mp(e,t,n,i,r){var o,a;sp(Pl)?(a=(o=vp(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=E.extend(a,i),o=E.extend(o,r),Pl.bubbleEle.css(a),Pl.unseenCountEle.css(o),Pl.unseenCountEle.text()!=""+n&&Pl.unseenCountEle.text(n)):(a=k(e).find(".pendo-resource-center-badge-notification-bubble")).length?a[0].getElementsByClassName("pendo-notification-bubble-unread-count")[0].textContent=n:n&&bp(Pl=yp(t,n,i,r),e)}function vp(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,o=vp(e),a=o.defaultBubbleCss,o=o.defaultUnseenCountCss,s=(t=t||0,k(document.createElement("div")).addClass("pendo-resource-center-badge-notification-bubble")),u=k(document.createElement("div")).addClass("pendo-notification-bubble-unread-count"),a=E.extend(a,n),n=E.extend(o,i);return s.css(a),u.css(n),_e(10)||il()||(r=k(document.createElement("style")).attr("id","pendo-resource-center-bubble-animation"),i="@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: '+("rgb("+(o=ap(e["background-color"])).r+", "+o.g+", "+o.b+")")+"; border-radius: 100%; z-index: -1; animation: pulse 2s infinite; will-change: transform; }"),r.styleSheet?r.styleSheet.cssText=i:r[0].innerHTML=i),u.text(t),{bubbleEle:s,unseenCountEle:u,styleEle:r}}function bp(e,t){e.styleEle&&e.styleEle.appendTo(t),e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function wp(){var n=Pl?Pl.bubbleEle:k(".pendo-resource-center-badge-notification-bubble"),i=Pl?Pl.styleEle:k("#pendo-resource-center-bubble-animation");n&&E.each(n,function(e,t){n[t]&&(t=n[t])&&t.parentNode&&t.parentNode.removeChild(t)}),i&&E.each(i,function(e,t){i[t]&&(t=i[t])&&t.parentNode&&t.parentNode.removeChild(t)}),Pl=null,P.resetBadgeAriaLabel()}function Sp(e,t){var n=L;n&&(n=E.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,P.updateNotificationBubbles())}function Ip(e){return!(!E.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function _p(e){var t=E.get(e,"attributes.resourceCenter.isModule",!1)?e:P.findShownResourceCenterModule();t&&(t=E.first(t.steps),hg(t));t=(E.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:P.findResourceCenterHomeView(ju())).steps[0];return hg(t)}function Ep(e){return E.get(e,"attributes.resourceCenter.moduleId")}function Cp(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(...E.map(e.children,function(e){return i(e,t)})):n}(e,function(e){return e.css&&e.css.length});return E.forEach(t,function(e){E.forEach(e.css,function(e){e.selector=e.selector.replace(n,"[id^='$1']")})}),e}function Tp(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete Du[t.id])}var xp=1e4,kp="lastStepAdvanced";function Ap(e){g.dispatch("guideState/updateLastGuideStepSeen",e),g.dispatch("guideState/write"),g.dispatch("frames/changeLastGuideStepSeen",e)}function Op(){g.dispatch("guideState/regainFocus")}function Rp(){return g.state.guideState.lastGuideStepSeen}var r={actions:{init:function(e){e.getters.storage().registry.addLocal(kp),e.commit("setScopedStorageKey",$t(e.state.storageKey)),m.identify.on(function(e){Hn(e)&&An([kp])})},load:function(t,e){if(e){var n;try{n=JSON.parse(e)}catch(i){}n&&E.each([].concat(n),function(e){t.commit("setStepState",e)})}},forceExpire:function(n){E.each(n.state.steps,function(e,t){n.commit("expireStepState",t)})},expire:function(n){var i=n.getters.now();E.each(n.state.steps,function(e,t){i-e.time>n.state.ttl&&n.commit("expireStepState",t)})},apply:function(o){var a,s=E.indexBy(o.getters.guideList(),"id");o.dispatch("expire"),E.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=E.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=E.indexOf(i.steps,t),E.each(i.steps.slice(0,e),function(e){E.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})))}),a&&o.dispatch("updateLastGuideStepSeen",E.extend({},o.state.lastGuideStepSeen,a))},receiveLastGuideStepSeen:function(e,t){e.commit("setReceivedLastGuideStepSeen",t),e.commit("setLastGuideStepSeen",t)},updateLastGuideStepSeen:function(e,t){var n;t.visitorId&&t.visitorId!==e.getters.visitorId()||(n=E.some(e.getters.guideList(),function({id:e}){return e===t.guideId}),t.guideStepId&&e.commit("setStepState",t),n&&(e.commit("setLastGuideStepSeen",t),I.lastGuideStepSeen=t))},updateThrottlingState:function(e,t){e.commit("setThrottlingState",t)},write:function(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(E.map(e.state.steps,function(e){return E.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:function(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)&&(zp(),e.dispatch("load",r),e.dispatch("apply"),e.state.receivedStateChangeAt||e.commit("setReceivedStateChange",e.getters.now()))}},regainFocus:function(e){var t=e.getters.tabLostFocus(),n=e.getters.isGuideRequestStale();t&&(e.commit("setReceivedStateChange",null),n||(Hp(),Wp())),n&&Fm()}},mutations:{expireStepState:function(e,t){e.expired[t]=e.steps[t],delete e.steps[t]},setStepState:function(e,t){e.steps[t.guideStepId]=t},setScopedStorageKey:function(e,t){e.scopedStorageKey=t},setLastGuideStepSeen:function(e,t){e.lastGuideStepSeen=t},setReceivedLastGuideStepSeen:function(e,t){e.receivedLastGuideStepSeen=t},setReceivedStateChange:function(e,t){e.receivedStateChangeAt=t},setLastGuideRequestAt:function(e,t){e.lastGuideRequestAt=t},setThrottlingState:function(e,t){e[t.name]=t.value}},state:{steps:{},expired:{},ttl:xp,storageKey:kp,guideRequestExpiration:36e5,scopedStorageKey:null,receivedStateChangeAt:null,receivedLastGuideStepSeen:null,lastGuideStepSeen:null,lastGuideRequestAt:null,latestDismissedAutoAt:null,latestSnoozedAutoAt:null,finalAdvancedAutoAt:null},getters:{now:v,storage:function(){return f},guideList:function(){return R},tabLostFocus:function(e){return!!e.receivedStateChangeAt},isGuideRequestStale:function(e,t){return null!=e.lastGuideRequestAt&&t.now()-e.lastGuideRequestAt>e.guideRequestExpiration},storageChangedInOtherTab:function(n,e,i){return function(e){var t=E.get(i,"frames.tabId");return!!e&&!!((e=E.max(E.compact(e),"time"))&&e.tabId&&t&&e.tabId!==t)&&(!n.lastGuideStepSeen||!n.lastGuideStepSeen.time||e.time>n.lastGuideStepSeen.time)}},cookieSuffix:function(){return h.get("crossAppGuideStorageSuffix")},visitorId:function(){return b()}}},Np={canDisplay:function(e,t,n){if(n&&n.enabled&&E.isFinite(t)){t=Pp(t,n);if(E.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=h.get("appAutoOrdering")||[].concat(h.get("leaderKey"));{var i;n.length&&(i=g.getters["frames/autoOrdering"](),n=E.reduce(n,(e,t)=>e.concat(i[t]||[]),[]),t=E.uniq(n.concat(t)))}var r,o,n=function(e){e=E.defaults(E.groupBy(e,function(e){return Lp(e)?"override":"auto"}),{override:[],auto:[]});return e.override.concat(e.auto)}(function(e,t){var n;return E.isArray(t)&&t.length?(n=E.indexBy(e,"id"),t=E.reduce(t,i,[]),E.chain(e).pluck("id").reduce(i,t).value()):e;function i(e,t){return n[t]&&(e.push(n[t]),delete n[t]),e}}(E.filter(e,Mp),t));return E.find(e,function(e){return e.isTraining})?(t=h.get("adoptPrioritizeAdoptGuides"),e=t,r=[],o=[],E.each(n,function(e){(e.isTraining?r:o).push(e)}),e?r.concat(o):o.concat(r)):n},tryDisplayGuide:function(e,t){var n=Np.lastDismissedTime(t),n=Np.canDisplay(v(),n,t.throttling);if((Lp(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:Pp};function Mp(e){return e&&/auto/.test(e.launchMethod)}function Lp(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||E.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function Pp(e,t){var n=t.interval,t=(t.unit||"").toLowerCase();return E.isNumber(n)&&ct(e)?"minute"===t?6e4*n+e+1:"hour"===t?36e5*n+e+1:"day"===t?(t=e,e=n,(t=new Date(Math.max(t,0))).setHours(0,0,0,0),t.setDate(t.getDate()+e),t.getTime()):void 0:E.isNumber(n)?(new Date).getTime():void 0}function $p(t){return m.guideSeen.on(function(e){var e=e.data[0].props||{};"permalink"===e.reason&&(e=t(e.guide_id))&&(e.shownFromPermalink=!0)}),{tryDisplay:function(){var t=r(window.location.href),e=this.getGuideFromUrl(t);{var n,i;if(e&&this.shouldShowPermalinkGuide(e))return n=this.getStepFromUrl(t,e),i=t.pendo_once,this.showPermalinkGuide(e,n).then(function(e){return e&&i&&(delete t.pendo_once,delete t.pendo,delete t.step,delete t.c__pendo,window.history.replaceState({},document.title,window.location.pathname+"?"+eo(t))),e})}},getQueryString:r,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 E.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 r(e){var t=Jr(e).substring(1),t=Qr(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=Jr(e.substring(n+1)).substring(1),E.extend(t,Qr(n))),t}}var Fp=E.memoize(function(){return $p(N)});function Dp(e,t){var e=E.find(e,function(e){return e.isContinuation(t)}),n=e&&e.attributes&&e.attributes.doNotResume;if(e&&!n)return e}class Up{constructor(){this.name="autoDisplay",this.queue=[]}markDirty(){dd()&&(this.queue.push("permalink","continuation"),this.queue.push(...Np.sortAndFilter(Gu(),I.autoOrdering)))}process(e){if(Xf())this.cancel();else{var t=this.queue.shift();if("permalink"===t)return Fp().tryDisplay(I);if("continuation"===t){var n=Dp(Gu(),Rp());if(n)return e.saveContext(n),n.show("continue")}else if(t){if(!Dp(Gu(),Rp()))return e.saveContext(t),Np.tryDisplayGuide(t,I);this.cancel()}}}handleProcessTimeExceeded(e){e=e.getContext();e&&C.warn("Auto display ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var Gp=null,jp=500,Bp=function(e){Gp=E.delay(function(){Gp=null,Wp()},e=e||jp),I.guidesProcessingThreadHandle=Gp},zp=function(){Gp&&(clearTimeout(Gp),Gp=null,I.guidesProcessingThreadHandle=Gp),g.dispatch("guideUpdate/stopScheduledUpdate")},Hp=function(){ig(),th.cancel();for(var e=0;e<Fu.length;e++){var t=Fu[e];t.parentNode.removeChild(t)}Fu.length=0,g.dispatch("guideUpdate/stopObserver"),m.guideLoopStopped.trigger()},Wp=function(){if(zp(),$m.pending||Jg&&I.id&&I.id!==Jg.id)C.info("guides are loading.",{contexts:["guides","loading"]});else if(Cm())C.info("guides are disabled.",{contexts:["guides","disabled"]});else if(Tm())C.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!g.getters["guideState/tabLostFocus"]())try{var e=Ku();e&&0!==e.length&&(g.dispatch("guideUpdate/startObserverIfNeeded"),th.isComplete()&&th.markDirty(),g.getters["frames/leaderExists"]())&&th.process()}catch(t){th.cancel(),C.critical("ERROR in guide-loop",{error:t})}finally{th.paused||(th.isComplete()?(g.state.guideUpdate.useObserver&&!g.state.guideUpdate.needsUpdate||Bp(),m.guideUpdateComplete.trigger()):Bp(50))}};var qp=function(){var e=h.getLocalConfig();h.get("delayGuides")&&(delete e.delayGuides,h.setLocalConfig(e)),h.get("guides.delay")&&(delete e.guides.delay,h.setLocalConfig(e)),Wp()},Vp=function(){Cm()||km(!0),Hp(),Yg()};class Kp{constructor(e,t){this.dirty=!1,this.name=e,this.processFn=E.isFunction(t)?t:E.noop}markDirty(){this.dirty=!0}process(){this.processFn(),this.dirty=!1}cancel(){this.dirty=!1}isComplete(){return!this.dirty}}class Jp{constructor(){this.name="badge",this.queue=[]}markDirty(){this.queue.push.apply(this.queue,E.filter(Bu(Gu()),Zu))}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 Yp(i,e){var r,o,t,n,a;P.isFullyCustom(i)||(r=!1,o=[],t=E.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=E.filter(e.guidesInModule,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):(e.ineligibleForRC=!0,e.control&&o.push(e),!1)})).length,e.hasResourceCenterContent=!!t,i.activeModule&&e.id===i.activeModule.id&&(n=rt(E.map(n,function(e){var t=e.isAnnouncement()||e.isWhatsNew()?null:E.pluck(e.steps,"seenState");return{id:e.id,seenState:t}})),e.eligibleGuidesInModuleHash&&n!==e.eligibleGuidesInModuleHash&&(r=!0),e.eligibleGuidesInModuleHash=n),t)))}),n=!1,i.activeModule||(a=rt(E.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=E.find(t,function(e){return e.isContinuation(Rp())}),a=E.get(n,"attributes.doNotResume"),e=E.get(n,"attributes.resourceCenter.integrationProvider"),P.isSupportedNativeIntegration(e))&&!a&&i&&(i.continueToNativeModule=!0,n.continueToNativeModule=!0),i.activeModule&&((e=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 Zp(e,t,n){var i,r,o=Du[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),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||(E.isFunction(e.placeBadge)&&e.placeBadge(),o=Du[e.id]),o&&o.show(),e.badgeHidden=!1)}function Xp(e){var t,n,i,r,o,a;e&&e.launchMethod&&(e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith,t=e.activeModule,n=E.get(t,"attributes.resourceCenter.integrationProvider"),e.isNativeModuleActive=t&&P.isSupportedNativeIntegration(n),P.isFullyCustom(e)?e.hasResourceCenterContent=!0:(e.isShown()||!g.getters["frames/isLeader"]()?Yp(e,Zp):(t=e,n=Zp,P.isFullyCustom(t)||(i=[],o=[],(r=E.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=E.flatten(E.pluck(t.modules,"guidesInModule")),o=E.filter(E.compact(r),function(e){return e.control}),!i.length&&(a=E.reduce(t.modules,function(t,n){return E.each(n.guidesInModule,function(e){t[e.id]=n}),t},{}),r=E.filter(r,function(e){return e&&e.steps&&e.steps.length}),r=E.sortBy(r,function(e){return e.steps[0].elementPathRule?1:0}),r=a[(r=E.find(r,function(e){return e.shouldBeAddedToResourceCenter()}))&&r.id])&&i.push(r),n(t,i,o))),e.isNativeModuleActive&&(e.isShown()&&e.hide(),a=Du[e.id])&&P.hideRCBadge(a,e),"dom"===e.launchMethod&&(P.updateNotificationBubbles(),P.adjustNotificationBubbleForResize())))}class Qp{constructor(e=50){this.startTime=-1,this.timeLimit=e,this.context=null}start(){this.context=null,this.startTime=v()}isTimeExceeded(){return v()-this.startTime>this.timeLimit}saveContext(e){this.context=e}getContext(){return this.context}}class eh{constructor(e){this.phases=e,this.queue=[],this.paused=!1}markDirty(){for(var e of this.phases)e.markDirty();this.queue=this.phases.slice()}runGuidePhase(){for(var e,t,n,i=this.queue[0],r=new Qp(50);!this.timedOut()&&!i.isComplete()&&!e;)r.start(),!(e=i.process(r))&&r.isTimeExceeded()&&(i.handleProcessTimeExceeded&&i.handleProcessTimeExceeded(r),this.ejectGuide(r.getContext()));ft(e)?(t=this.updateId,n=E.bind(function(){this.updateId===t&&(this.paused=!1,Wp())},this),this.paused=!0,e.then(n)["catch"](n)):i.isComplete()&&this.queue.shift()}addPhase(e,t){t=t||e.name||this.phases.length,E.isFunction(e)&&(e=new Kp(t,e)),this.phases.push(e)}removePhase(t){var e=E.findIndex(this.phases,function(e){return e.name===t});0<=e&&this.phases.splice(e,1)}timedOut(){return!!this.iterationStartTime&&v()-this.iterationStartTime>g.state.guideUpdate.iterationTimeLimit}ejectGuide(e){this.ejectOnTimeout===undefined&&(this.ejectOnTimeout=h.get("guides.ejectOnTimeout")),this.ejectOnTimeout&&e&&!e.isShown()&&Hu.addGuide(e)}process(){var e=v();for(this.updateId||(this.updateId=e,this.updateTotalTime=0,g.commit("guideUpdate/startUpdate",e)),this.iterationStartTime=e;!this.paused&&this.queue.length&&!this.timedOut();)this.runGuidePhase();e=v(),this.updateTotalTime+=e-this.iterationStartTime,this.isComplete()&&this.complete(e)}complete(e){g.commit("monitoring/setTimer",{name:"guideUpdateTimeMS",time:this.updateTotalTime}),g.commit("guideUpdate/completeUpdate",e),this.cancel()}cancel(){this.updateId=null,this.paused=!1,this.queue.length=0;for(var e of this.phases)E.isFunction(e.cancel)&&e.cancel()}isComplete(){return!this.queue.length}}var th=new eh([new Jp,new Kp("resourceCenter",function(){Xp(P.getResourceCenter())}),new Kp("frameVisibility",function(){g.dispatch("frames/checkFrameVisibility")}),new Kp("guideShowing",function(){var a=Um();a&&(E.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("."+Kf),(r=r.find("#pendo-guide-container")[0])&&r.textContent&&(r=O(r).fontSize,e.attributes.currentTextZoomFontSize!==r)&&(e.attributes.currentTextZoomFontSize&&e.redraw(),e.attributes.currentTextZoomFontSize=r),e.elementPathRule&&n&&!yr.matchesSelector(n,e.elementPathRule)?e.hide():(r=ca(t),o=!0,n&&r&&e.elementContainsRulesList&&(o=_g(n,e.elementContainsRulesList),r=o),t&&(r||i.hasClass("mouseover"))?e.checkPlacement():("tooltip"===e.type||"tooltip"===e.attributes.calculatedType)&&la(t)&&o||e.hide()))}),a.guide.checkForHiddenGroupSteps())}),new Up]);function nh(){th.addPhase(...arguments)}function ih(){th.removePhase(...arguments)}function rh(){var s={};return E.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=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 oh="debug-enabled";function ah(){try{return JSON.parse(f.read(oh,!0)||Mt(oh))||{}}catch(e){return{}}}function sh(e=!0){let t;return t=g&&g.getters&&g.getters["debugger/debuggingEnabled"]?g.getters["debugger/debuggingEnabled"]():!0===ah().enabled,e?t:t?"Yes":"No"}class uh{constructor(e,t){this.type=t,this.identificationFn=e}test(e){return this.identificationFn(e)}}const dh=(()=>{const n={},e=({data:e})=>{var[e,,]=e,e=e["guideId"];const t=N(e);e=(E.find(n,e=>e.GuideType.test(t))||{}).handler;e&&e(t,"resourceFetchFail")};return{run:()=>{m.resourceFetchFail.on(e)},stop:()=>{m.resourceFetchFail.off(e)},addTypeHandler:(e,t)=>{E.isFunction(t)?n[e.type]={GuideType:e,handler:t}:C.error("Invalid Handler function provided for type "+e.type)}}})();dh.addTypeHandler(new uh(Zu,"badge"),(e,t)=>{Hu.addGuide(e)});var ch="_pendo-badge_";function lh(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function ph(t,n){var e,i,r,o,a,s=od(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=E.reduce([(o=t.language,a=u?["he","ar"]:[],e=>(E.contains(a,o)&&(e.props["data-localization-direction"]=!0),e)),(r=d,e=>{var t,n;return E.get(e,"props.data-localization-direction",!1)&&!r&&(t=E.get(e,"props.style.left","auto"),n=E.get(e,"props.style.right","auto"),t)&&n&&(e.props.style.left=n,e.props.style.right=t),e}),lh,Dd,function(e){return sl(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=Fd(this.imageUrl),i.className="_pendo-badge "+ch,u=this.width||13,d=this.height||13,Uo(i,"width:"+u+"px;height:"+d+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=E.isFunction(n.getGuide)&&n.getGuide(),t=kg(e);!e.isShown()||g.getters["frames/isShownInAnotherFrame"]()(n)?Og(n,"badge"):t?n.eventRouter.eventable.trigger("pendoEvent",{step:n,action:"dismissGuide"}):(t=E.find(e.steps,function(e){return e.isShown()}),hg(t))},this.shouldShow=function(){return t.canBadgeBeShown()||!1},this.show=function(){if(E.isFunction(this.shouldShow))return this.shouldShow()},this.hide=function(){k.removeNode(i),pl(t.id),E.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},kg(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=E.constant(n),this.target=E.constant(s),this.element=E.constant(i),this}ph.create=function(n){var i=ph.findStep(n);if(i)return E.reduce(ph.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},ph.findStep=function(e){var t=E.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},ph.behaviors=[rh,ph,function(){"inline"!==this.position&&"inline-right"!==this.position&&"inline-left"!==this.position||this.before("show",function(){var e,t=this.target(),n=this.element();this.isP2Badge&&Uo(n,"display:inline-block;vertical-align:text-bottom;"),this.css&&Uo(n,this.css),t&&t.tagName&&(e=t.tagName.toLowerCase(),/br|input|img|select|textarea/.test(e)?n.parentNode!==t.parentNode&&t.parentNode.insertBefore(n,t.nextSibling):n.parentNode!==t&&("inline"===this.position||"inline-right"===this.position?t.appendChild(n):"inline-left"===this.position&&t.prepend(n)))});return this},function(s){this.position&&"top-right"!==this.position&&"top-left"!==this.position||this.before("show",function(){var e=this.element(),t=Ho(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),!E.get(s,"attributes.resourceCenter",!1)){var o="position:"+(t.fixed?"fixed":"absolute")+";top:"+(t.top+n)+"px;";switch(this.position){case"top-right":o+="left:"+(t.left+t.width-i)+"px";break;case"top-left":o+="left:"+(t.left+r)+"px"}Uo(e,o)}if(!e.parentNode){nd().appendChild(e);const a=aa(_r,this.target(),vh);this.removeScrollHandlers=()=>{vh.cancel(),a()}}});return this},function(){"over"===this.position&&this.before("show",function(){var e=this.element(),t=Ho(this.target()),n="position:absolute;top:"+t.top+"px;left:"+t.left+"px;";if(n+="height:"+t.height+"px;width:"+t.width+"px;",Uo(e,n+="background-color:transparent;"),!e.parentNode){nd().appendChild(e);const i=aa(vh,e,this.target());this.removeScrollHandlers=()=>{vh.cancel(),i()}}});return this},function(){var t=this,e=t.element(),n=!1,i=function(e){t.activate(),t.toggleAriaExpanded&&t.toggleAriaExpanded(),Pu(e)};return t.after("show",function(){n||(l(e,"click",i),n=!0)}),t.after("hide",function(){Lu(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=E.throttle(function(e){Cr(e)===t||function(e){for(;e;){if(/_pendo-guide_|_pendo-guide-tt_|_pendo-backdrop|_pendo-badge_/.test(e.className))return!0;if(/pendo-guide-container/.test(e.id))return!0;e=e.parentNode}return!1}(Cr(e))||o()},50,{trailing:!1}),r=function(e){n.isShown()||Og(n,"badge"),l(document,"mousemove",i),Pu(e)},o=function(e){Lu(document,"mousemove",i),ed()||hg(n)},this.after("show",function(){e||(l(t,"mouseover",r),e=!0)}),this.after("hide",function(){Lu(t,"mouseover",r),Lu(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=E.throttle(function(e){var t,n,i,r,o,a;Cr(e)===u||Cr(e)===s||No(s,"triggered")||(t=e.clientX,e=e.clientY,n=Zo(u),i=Zo(s),r=Math.min(n.left,i.left),o=Math.min(n.top,i.top),a=Math.max(n.right,i.right),n=Math.max(n.bottom,i.bottom),i=e+document.documentElement.scrollTop,r<=t&&t<=a&&o<=i&&i<=n)||d()},50,{trailing:!1}),r=function(){Uo(s,t),l(document,"mousemove",i)},d=function(){Lu(document,"mousemove",i),Uo(s,n)},this.after("show",function(){e||(l(u,"mouseover",r),e=!0,d())}),this.after("hide",function(){e&&(Lu(u,"mouseover",r),e=!1),d()}))}return this}];var hh=function(e,t){var n,i,r=(t=t||Du)[e.id],o=r?r.step():ph.findStep(e);o&&(i=r?r.target():od(o),(n=E.get(e,"attributes.resourceCenter"))&&!g.getters["frames/canShowRCBadge"]()?r&&E.isFunction(r.hide)&&(t[e.id]=undefined,r.hide()):n&&!e.hasResourceCenterContent||(P.updateNotificationBubbles(),n=!0,o.elementContainsRulesList&&(n=i&&_g(i,o.elementContainsRulesList)),(i=o.elementPathRule&&ca(i)&&yr.matchesSelector(i,o.elementPathRule)&&n)?((r=r||ph.create(e)).show(),t[e.id]=r):r&&!o.isShown()&&(t[e.id]=undefined,r.hide()),sh()&&m.stepEligibility.trigger({stepId:o.id,guideId:e.id,eligible:i,reason:"target_element_badge"}),P.repositionDoubleResourceCenterBadge()))},fh=function(){E.map(Du,gh),Du={}},gh=function(e,t){e&&(E.isFunction(e.hide)&&e.hide(),E.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete Du[t.id]},mh=function(e){var t=Du[e.id];t&&gh(t,e)};var vh=E.throttle(function(){E.map(Du,function(e){e&&e.show&&e.show()})},10);const yh=f.getLocal();var $,bh="pendo-preview",wh="current-guide-preview";function Sh(e){return g.dispatch("preview/load"),Ih(e)}function Ih(t){var e=Fh();if(e)return Eh(t),g.dispatch("preview/start",E.extend(e)),f.clear(kp),Nt(!1),ns.lock(),em=jh,m.startPreview.trigger(),m.leaderChanged.on(function(e){g.dispatch("preview/write"),e.oldLeaderId||Fm(),g.getters["frames/isLeader"]()||(k($).remove(),$=null,t.removeEventListener("message",Th))}),nh(_h),!0}function _h(){if(!g.getters["frames/isFollower"]()){var t,n,i,r,o,e,a=document,s=Ku(),u=Rp();if(xh()&&(t=Fh())&&$&&$.contentWindow)if(s&&s.length){$.contentWindow.postMessage({mutation:"preview/setGuideLoaded",payload:{guideLoaded:!0}},location.origin),n=E.find(s,function(e){return e.id===t.guideId}),i=0,r=n.steps.length,o=u||{},E.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=E.indexOf(n.steps,E.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(),$.contentWindow.postMessage({mutation:"preview/setHostname",payload:{hostname:je}},location.origin),$.contentWindow.postMessage({mutation:"preview/setGuidePages",payload:{guidePages:n.previewPages}},location.origin),$.contentWindow.postMessage({mutation:"preview/setGuideProgress",payload:{guideName:n.name,guideAttributes:JSON.stringify(n.attributes),guideLaunchMethod:n.launchMethod,guideActivationSelector:ad(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:E.get(t,"languageOptions",[]),currentLanguage:t.language}},location.origin);var d=e,c=u,l=$;if(d&&l&&l.contentWindow){const h=d.getGuide().id;var p=E.filter(g.state.frames.frames,e=>"hidden"!==e.visibility&&e.guides&&e.guides[h]);if(p.length)p=E.map(p,e=>F.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:e.id,stepId:d.id,guideId:h,currentStepIndex:c})),y.all(p).then(t=>{let n={},i=-1;for(let e=0;e<t.length;e++){var r=JSON.parse(t[e]).errors;if(!r.GUIDE){var o=E.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"](E.noop)}}else Mh(0,{status:404,data:"Guide not found"})}return!0}function Eh(e){if(g.getters["frames/leaderExists"]()){if(!g.getters["frames/isFollower"]()){if($)return!0;var t,n;E.isFunction(e.addEventListener)&&e.addEventListener("message",Th),(t=document.createElement("iframe")).id=bh,Go(t,{border:"none",display:"block !important",height:n="70px !important","min-height":n,left:0,position:"fixed",right:0,top:0,visibility:"visible !important",width:"100% !important","z-index":4e5}),t.onload=function(){if(h.get("inlineStyleNonce")){const n=t.contentDocument.createElement.bind(t.contentDocument);t.contentDocument.createElement=(e,...t)=>{t=n(e,...t);return"style"===e&&(e=h.get("inlineStyleNonce"))&&t.setAttribute("nonce",e),t}}var e=document.createElement("script");e.src=h.get("previewModeAssetPath")||ro("pendo.preview.min.js"),t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},$=t,Ko().appendChild($)}}else m.one("leaderChanged",E.partial(Eh,e))}function Ch(e,t,n){ig(),g.commit("healthCheck/resetStepStatus",null,{root:!0}),Gd.reset(),Fm();var i=e[0],i=(i&&E.each(i.steps,function(e){e.seenState=null}),f.clear(kp),g.dispatch("preview/update",null),Fh());return i&&(i=E.findWhere(e,{id:i.guideId}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),g.dispatch("preview/restart",i)),Nh(e,t)}function Th(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===bh+"::exit"?(Lh({preventWindowClose:n}),g.dispatch("frames/stopPreview",{preventWindowClose:n})):t===bh+"::restart"?(n=Ch(Ku(),Rp(),e.data.language),g.dispatch("guideState/forceExpire"),g.dispatch("guideState/updateLastGuideStepSeen",n),g.dispatch("frames/restartPreview")):t===bh+"::resize"?(n=e.data.height,$&&$.style&&($.style.height=n)):t===bh+"::request-preview-mode-type"&&(e=Dh(),$)&&$.contentWindow&&e&&$.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:e.previewModeType||"NEW_TAB"}},location.origin))}function xh(){return g.getters["preview/isInPreviewMode"]()}function kh(){return g.getters["preview/isInDesignerPreviewMode"]()}function Ah(e){var t,n,i=Fh();if(!i)return e;if(i.isResourceCenter)return r=e,t=i,n=P.findResourceCenterHomeView(r),r=E.filter(r,function(e){return e.id!==n.id}),Rh(n,t.stepId),t=E.map(r,function(e){return e.launchMethod="launcher",e}),[n].concat(t);{var r=e,o=i;let t;return E.each(r,function(e){e.id===o.guideId?t=e:((e=e).launchMethod="api",(e=e.steps[0])&&(e.seenState="advanced"))}),Oh(t),t.showsAfter=null,t.expiresAfter=null,Rh(t,o.stepId),r}}function Oh(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function Rh(e,t){for(var n=E.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 Nh(e,t){null==t&&(t={});var n=Fh();if(!n)return t;e=E.findWhere(e,{id:n.guideId});if(!e)return t;if(n.state)return n.state;Oh(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:n.guideId,guideStepId:n.stepId,state:"active"}:{}}function Mh(e,t){$&&$.contentWindow&&$.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:t}},location.origin)}function Lh(e){var t=Dh(),n=!1,i=(t&&(n="SAME_TAB"===t.previewModeType),yh.getItem("pendo-navigation-state"));if(g.dispatch("preview/exit"),ig({stayHidden:!0}),f.clear(kp),ns.unlock(),k($).remove(),em=gd,ih(_h),Nt(!0),n&&i){yh.setItem(wh,JSON.stringify(E.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(),Fm()}function Ph(e,t){e=E.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function $h(){return g}var Fh=E.partial(Ph,$h,"state.preview.preview"),Dh=E.partial(Ph,$h,"state.preview.designerPreview");function Uh(e){var t;if(e.subscriptionId&&e.guideId)return t=e.isResourceCenter?"/resourcecenter/":"/guide/","/api/s/"+vt(e.subscriptionId)+t+vt(e.guideId)+"/preview"}var Gh=function(e){var t;return Sa(e.origin)?(t=Uh(e))?(t={url:e.origin+t+"?url="+vt(A.externalizeURL())+"&apiKey="+I.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),xr(t).then(function(e){return e.data.guide})):(C.info("Invalid guide url, exiting preview"),y.reject("invalid guide url")):(C.info("Invalid origin, exiting preview"),y.reject("invalid origin"))},jh={load:function(e,t,n){return zh(e,n)},post:function(e,t,n,i){return zh(e,i)},endpoint:function(){return""},usesXhr:function(){return!0}};function Bh(n,t){if(!Sa(n.origin))return C.info("Invalid origin, exiting preview"),y.reject("invalid origin");var e=Uh(n);if(!e)return C.info("Invalid guide url, exiting preview"),y.reject("invalid guide url");if(!g.getters["frames/leaderExists"]()||n.apiKey!==I.apiKey)return I.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),y.resolve();let i=""+n.origin+e+`?url=${vt(A.externalizeURL())}&apiKey=`+I.apiKey;n.childGuides&&n.childGuides.length&&(i+="&childGuides="+n.childGuides.toString()),kh()&&(i+="&ignoreGuide=true");var e={url:i,withCredentials:!0},r=(n.headers&&(e.headers=n.headers),[]);return xr(e).then(function(e){var t,c,e=e.data;return kh()?(t=Dh(),r=t?kh()?(E.each(t.guide.steps,function(t){let e=["domJsonpUrl","domUrl"];t.domUrl&&0===t.domUrl.indexOf("data:")&&(e=["domJson","contentJs","contentCss","content"]),E.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!==E.get(r,"[0].authoredLanguage")&&(t=r,c=n.language.value,E.forEach(t,function(d){E.forEach(d.steps,function(e){var{domHash:t,domJsonpHash:n,translationHash:i,originalDomJsonHash:r,originalDomJsonpHash:o,originalBuildingBlockHash:a,domHash256:s,domJsonpHash256:u}=E.get(d,"translationStates."+c+".stepTranslations."+e.id,{});e.domUrl=Hh(r,e.domUrl,".dom.json",s),e.domJsonpUrl=Hh(o,e.domJsonpUrl,".dom.jsonp",u),e.buildingBlocksUrl=Hh(a,e.buildingBlocksUrl,".buildingBlocks.json"),t&&n&&i&&(e.domUrl=e.domUrl.replace(".dom.json","-"+t+"-"+c+".dom.json"),e.domJsonpUrl=e.domJsonpUrl.replace(".dom.jsonp","-"+n+"-"+c+".dom.jsonp"),e.buildingBlocksUrl=e.buildingBlocksUrl.replace(".buildingBlocks.json","-"+i+"-"+c+".buildingBlocks.json"))})})),n.watermarkConfig&&(e.guide.isTraining=!0),I.guideWidget={enabled:!1,data:{guideCssUrl:e.guideCssUrl}},I.guideCssUrl=e.guideCssUrl,I.normalizedUrl=e.normalizedUrl,I.throttling=undefined,e.guide}).then(function(e){var t;return n.watermarkConfig?(t=JSON.parse(JSON.stringify(n)),t=Object.assign(t,n.watermarkConfig),Gh(t)):e}).then(function(e){e&&e.attributes&&e.attributes.isWatermark&&r.push(e),I.guidesPayload({id:t,lastGuideStepSeen:Nh(r,I.lastGuideStepSeen),guides:Ah(r)})})["catch"](function(e){return Mh(document,e),y.reject(e)})}function zh(e,t){var n=Fh();return!n||!Uh(n)||!(e=/[?&]id=(\d+)/.exec(e))||e.length<1?y.reject():Bh(n,e[1]).then(t)}function Hh(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 Wh=function(){let n=null,i=[];const r=e=>{I.apiKey=e+="",n=e};return{getApiKey(){return I.apiKey},discoverKeys({apiKey:e,additionalApiKeys:t=[]}){n=null,i=[],e=e,(e=h.get("apiKey",e))&&r(e),n,e=t,e=h.get("additionalApiKeys",e),i=E.reduce(e,(e,t)=>(t&&e.push(t+""),e),[]),i=[].concat(e),I.additionalApiKeys=i,!n&&i&&i.length&&r(i[0])},getAdditionalApiKeys(){return I.additionalApiKeys},tamperedWith(){return I.apiKey!==n||I.additionalApiKeys!==i}}}(),qh=f.getLocal();Vh=je,Kh="in-app-designer",Jh="latest","local"===n&&(Vh="https://local.pendo.io:8080"),m.leaderChanged.on(function(){Zh({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||kh()})});var Vh,Kh,Jh,Yh={launchDesigner:function(e){var t,n="latest",i="designer";sf("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%;}"),uf("designer-shims",Vh+"/"+i+"/"+n+"/plugin.js"),I.DESIGNER_VERSION?of(n,i):t=window.setInterval(function(){I.DESIGNER_VERSION&&(of(n,i),clearInterval(t))},100)},launchInAppDesigner:rf,localStorageNavigation:Zh,launchOnToken:function(e){if(!df(window.name)){var t=/pendo-designer=([A-Za-z0-9-]+)/;if(t.test(e)){var n,e=t.exec(e);if(e)return t=function(e){try{return JSON.parse(atob(mt(e)))||{}}catch(t){return{}}}(e[1]),e=Qh(t),n=nf(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),rf({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,Yh.hostConfig.host)},isValidDesignerHost:Xh,isValidTarget:tf,addCommunicationIframe:function(e,t){e=e||{};E.isFunction(t)||(t=E.noop);var n=nf(e),e=ef(e),i=(new Date).getTime(),r=(Yh.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=af(r,Vh+"/"+e+"/"+n+"/communication.html","border-width:0;height:0;width:0;");return i.setAttribute("name",o),i.onload=t,document.body.appendChild(i),i},addStylesToPage:sf,hostConfig:{host:Vh},isDesignerFrame:df,addScriptToPage:uf};function Zh(e){if(!e.ignoreLocalStorageNavigation){var t,e=qh.getItem("pendo-navigation-state");if(e&&g.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(n){return}if(!t.apiKey||t.apiKey===Wh.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},Yh.launchInAppDesigner(e),!0}}}function Xh(e){return!!e&&Sa(e)}function Qh(e){var e=(e=e||{}).host||Vh,t=Xh(e),e=t?e:je;return t||C.info("Invalid host, falling back to "+je),e}function ef(e){var e=(e=e||{}).gcsBucket||Kh,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:Kh;return t||C.info("Invalid bucket, falling back to "+Kh),e}function tf(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 nf(e){e=e||{};var t=h.get("enableCrossOriginIsolation")?"strict":Jh,e=e.target||e.baseFolder||t,t=tf(e),e=t?e:Jh;return t||C.info("Invalid target, falling back to "+Jh),e}function rf(e){if(!df(window.name)&&!I.designerLaunched)if(h.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){}Yh.crossFrameChannel===undefined&&(Yh.crossFrameChannel=F,Yh.useCrossFrameChannel=!0),Ha()&&a&&!e.allowChildFrame&&!e.selectionOnly?C.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):I.isReady()?(I.designerLaunchTime=(new Date).getTime(),a=Qh(e=e||{}),i=ef(e),r=nf(e),n=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+i+"/"+r+"/"+n,Yh.hostConfig={gcsBucket:i,baseFolder:r,uniqueWindowId:e.uniqueWindowId,host:a,adoptv2:e.adoptv2,DADesigner:e.DADesigner,agentInstallType:we(),forceNativeDesigner:!!e.forceNativeDesigner,sidebarDesigner:!!e.sidebarDesigner,apiKey:Wh.getApiKey()},i={},e.selectionOnly&&(i["selection-only"]=!0),h.get("pendoGlobalKey")&&(i["data-pendo-global-key"]=h.get("pendoGlobalKey")),r=h.get("designerAgentPluginsLoader"),a=window.__pendoExtensions&&e.forceNativeDesigner,o=!window.__pendoExtensions&&!E.isFunction(r),(a||o)&&(Yh.addScriptToPage(t,n,i),I.designerLaunched=!0),!e.forceNativeDesigner&&E.isFunction(r)&&(r(t,n,i),I.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 of(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+="__"+Yh.windowCommunicationId,(t=af("pendo-designer-iframe",Vh+"/"+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 af(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&Uo(i,n),i.setAttribute("sandbox","allow-scripts allow-same-origin allow-top-navigation allow-forms allow-pointer-lock allow-popups allow-storage-access-by-user-activation"),i.src=t,i}function sf(e,t){var n;document.getElementById(e)||((n=document.createElement("style")).setAttribute("id",e),n.type="text/css",e=document.createTextNode(t),n.appendChild(e),document.getElementsByTagName("head")[0].appendChild(n))}function uf(e,t,n){var i;document.getElementById(e)||((i=document.createElement("script")).setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=J(I).createScriptURL(t),n&&E.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function df(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(n){return!1}}cf={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"},lf={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},(pf={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370}).FOOTER_HEIGHT=1.25*pf.HEADER_HEIGHT,pf.BODY_HEIGHT="calc(100% - "+pf.HEADER_HEIGHT+"px - "+pf.FOOTER_HEIGHT+"px)",hf='<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>',(ff={})["#"+cf.closeButton+":hover"]={"background-color":lf.GRAY_LIGHTER_6},ff["#"+cf.launchButton+":hover"]={"background-color":lf.TEAL_DARKER+" !important"},gf={PRIMARY_FONT:"Helvetica Neue"};var cf,lf,pf,hf,ff,gf,mf={listen:function(){return E.isFunction(document.addEventListener)?(document.addEventListener("keyup",vf,!1),()=>{document.removeEventListener("keyup",vf,!1)}):()=>{}},launchOnLocalStorageToken:Ef,ids:cf,removeElement:Sf,attemptToLaunch:wf,loadPluginJs:function(){var t;I.designerLaunched||(t=E.once(function(e){Ef(e,!0)}),qa(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}};function vf(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&wf(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&wf(!1,!0)}function yf(e,t){var n,i,r,o={"background-color":lf.WHITE,height:pf.MODAL_HEIGHT+"px","min-height":pf.MODAL_HEIGHT+"px",width:pf.MODAL_WIDTH+"px",position:"fixed",top:pf.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-pf.MODAL_WIDTH/2+"px","border-radius":"4px","box-shadow":"0px 13px 28px rgba(0, 0, 0, 0.17)",overflow:"hidden","z-index":"300000","box-sizing":"border-box"},o=bf("div",cf.container,o);o.appendChild(((i=document.createElement("style")).setAttribute("id",cf.style),i.type="text/css",r=document.createTextNode(function(e){return E.reduce(E.pairs(e),function(e,t){var n=t[0],t=t[1];return e+n+"{"+E.reduce(E.pairs(t),function(e,t){return e+t[0]+":"+t[1]+";"},"")+"} "},"")}(ff)),i.appendChild(r),i)),o.appendChild((r=t,i=bf("div",cf.header,{"background-color":lf.GRAY_PRIMARY,height:pf.HEADER_HEIGHT+"px","min-height":pf.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(t=bf("div",cf.logoContainer,{height:"38px",width:"44px","background-color":lf.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=J(I).createHTML(hf),i.appendChild(t),(t=bf("div",cf.title,{width:"100%",display:"flex","align-items":"center","font-family":gf.PRIMARY_FONT,"font-size":"18px",color:lf.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=r?"VIA Designer":"Pendo Designer",i.appendChild(t),i)),o.appendChild(((r=bf("div",cf.body,{height:pf.BODY_HEIGHT,"min-height":pf.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":gf.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.",r)),o.appendChild((n=e,t=bf("div",cf.footer,{"align-items":"center","border-top":"1px solid"+lf.GRAY_LIGHTER_6,display:"flex",height:pf.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":pf.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(i=bf("button",cf.closeButton,{"border-radius":"3px",border:"none",height:pf.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":gf.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",i.onclick=function(){Sf(cf.container),Sf(cf.commIframeId)},(r=bf("button",cf.launchButton,{"background-color":lf.TEAL_PRIMARY,"border-radius":"3px",color:lf.WHITE,border:"none",height:pf.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":gf.PRIMARY_FONT,"font-size":"14px",display:"flex","line-height":"120%","min-width":"90px","justify-content":"center","box-sizing":"border-box"})).textContent="Launch Designer",r.onclick=function(){Ef(n)},t.appendChild(i),t.appendChild(r),t)),document.body.appendChild(o)}function bf(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),E.extend(e.style,n),e}function wf(t,n){var i,r,o;I.designerLaunched||(o=E.once(function(e){t||!n?Ef(e):yf(e,t),If()}),qa(function(e){"pendo-designer-launch-modal"===e.data.destination&&(clearInterval(i),e.data.viaconfirmed?clearInterval(r):e.data.token?(o(e.data.token),e=JSON.parse(e.data.token),E.contains(e.host,"via")&&!e.visitorId&&(r=r||setInterval(function(){document.getElementById(cf.commIframeId)&&_f()},100))):If())}),Yh.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){_f(),i=window.setInterval(_f,50)}))}function Sf(e){document.getElementById(e)&&document.getElementById(e).remove()}function If(){var e=document.querySelector("#"+cf.commIframeId+'[src*="pendo"]');e&&e.remove()}function _f(){var e=document.getElementById(cf.commIframeId);e&&e.contentWindow&&E.isFunction(e.contentWindow.postMessage)&&e.contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:I.visitorId},E.get(I,"designerv2.hostConfig.host",je))}function Ef(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),Sf(cf.container),Yh.launchInAppDesigner(n)}var Cf=E.wrap(E.wrap(E.once(E.wrap(function(e){var t=y.defer();return Ta(e,function(){t.resolve()}),t.promise},function(e,t){return 0<E.size(fd._handlers.validateGlobalScript)?xr.get(t).then(function(e){return fd.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)})),function(e,t){return t?e(t):y.resolve()}),function(e,t){return h.get("preventCodeInjection")?y.resolve():e(t)}),Tf={initializeWatermark:function(e){e=E.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),Tf.watermarkGuides=e,e=E.map(e,function(e){return e.fetchContent()});return y.all(e)},buildWatermark:function(e,t){if((e=e||{}).isTraining){var n=e.targetAccount?function(t){return E.find(Tf.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return E.find(Tf.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 xf=1e4;function kf(n,i){var r=!1;const o=[];return n.addEventListener("message",function(e){u(e.data),i.state.guideUpdate.useObserver&&i.dispatch("guideUpdate/documentChanged")}),{postMessage:a,postMessageAsPromise:s,postMessageOrTimeout:function(e,t=xf){const n=y.defer(),i=at(32),r=(e=E.extend(e,{promiseId:i}),Dt(()=>{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,E.isFunction(n.close)&&n.close()}};function a(e){var t;r||(t=E.extend({apiKey:I.apiKey,allowMixedApiKeyFrames:h.get("allowMixedApiKeyFrames"),agentInstallType:we()},e),n.postMessage(t),Dt(function(){u(t)},0))}function s(e){e.promiseId||(t=at(32),e=E.extend(e,{promiseId:t}));var t=y.defer();return o[e.promiseId]=t,a(E.extend(e,{sourceFrame:i.state.frames.frameId})),t.promise}function u(e){try{var t;r||e.apiKey!==I.apiKey&&(!1===e.allowMixedApiKeyFrames||!1===h.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 Af="frames/removeFrame";function Of(e,t,n){return new Rf(e,t,n,(e=t,t=n,new(E.isFunction(e.MessageChannel)?Nf:Mf)(e,t)))}function Rf(e,t,n,i){this.init(e,t,n,i)}E.extend(Rf.prototype,{init:function(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=E.bind(this._frameConnectHandler,this),this._impl.onmessage=E.bind(this._fireMessageListeners,this),this._impl.onrelay=E.bind(this._topMessageHandler,this),this._connectToTop(10,0,function(){this._addControlMessageHandler(),this._connectToTop(250,21,function(){this.close(),this._store.commit("frames/setConnectFailed")})})},_fireMessageListeners:function(t){E.each(this._listeners,function(e){e(t)})},_controlMessageHandler:function(e){e=this._impl._parseMessage(e);e.data&&("pendo::connect"===e.data.action&&this._impl.frameConnect(e),e.data.action===Af)&&this._topMessageHandler(e)},_topMessageHandler:function(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===Af&&this._impl.frameDisconnect(e),this._impl.broadcast(e))},_connectToTop:function(e,t,n){this._impl.connectToTop({action:"pendo::connect",frameId:this._store.state.frames.frameId},this._targetOrigin),Dt(E.bind(function(){this._connected||(0===t?E.isFunction(n)&&n.call(this):0<t&&this._connectToTop(Math.min(2*e,1e4),t-1,n))},this),e)},_addControlMessageHandler:function(){this._singletonMessageHandler.addEventListener(E.bind(this._controlMessageHandler,this))},_frameConnectHandler:function(e){e.data&&"pendo::connectSuccess"===e.data.action&&(this._connected=!0,this._impl.connectSuccess(e),this._store.dispatch("frames/join"))},addEventListener:function(e,t){"message"===e&&this._listeners.push(t)},postMessage:function(e){this._closed||this._impl.postMessage(e)},close:function(){this._closed=!0,this._listeners.length=0,this._impl.close()}});Ti={_frameConnectHandler:function(e){E.isFunction(this.onconnect)&&this.onconnect(this._parseMessage(e))},_messageReceived:function(e){E.isFunction(this.onmessage)&&this.onmessage(this._parseMessage(e))},_relayMessage:function(e){E.isFunction(this.onrelay)&&this.onrelay(this._parseMessage(e))},_parseMessage:function(e){var t;return E.isString(e.data)?((t=E.pick(e,"type","origin","source","ports","lastEventId","target")).data=function(e){if(!E.isString(e))return e;try{return JSON.parse(e)}catch(t){return e}}(e.data),t):e}};function Nf(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function Mf(e,t){this._window=e,this._frames={},this._isTop=e==e.top,this._singletonMessageHandler=t,this._boundMessageReceived=E.bind(this._messageReceived,this),this._isTop||(this._boundFrameConnectHandler=E.bind(this._frameConnectHandler,this),t.addEventListener(this._boundFrameConnectHandler))}E.extend(Nf.prototype,Ti,{connectToTop:function(e,t){this._closeChannel(),this._openChannel();var n=[];this._channel.port2&&n.push(this._channel.port2),this._window.top.postMessage(e,t,n)},frameConnect:function(e){var t,n=e.ports[0];(t=n)&&E.all(["addEventListener","start"],function(e){return E.isFunction(t[e])})&&((this._ports[e.data.frameId]=n).addEventListener("message",E.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:function(e){delete this._ports[e.data.frameId]},connectSuccess:function(){this._port.removeEventListener("message",this._boundFrameConnectHandler),this._port.addEventListener("message",E.bind(this._messageReceived,this))},broadcast:function(t){E.each(this._ports,function(e){t.target!==e&&e.postMessage(t.data)})},postMessage:function(e){this._port&&this._port.postMessage(e),e.action===Af&&this._window.top.postMessage(e,this._targetOrigin)},close:function(){E.each(this._ports,function(e){e.close()}),this._ports={},this._closeChannel()},_openChannel:function(){this._channel=new this._window.MessageChannel,this._port=this._channel.port1,this._boundFrameConnectHandler=E.bind(this._frameConnectHandler,this),this._port.addEventListener("message",this._boundFrameConnectHandler),this._port.start()},_closeChannel:function(){this._port&&E.isFunction(this._port.close)&&(this._port.close(),this._port=null,this._channel=null)}}),E.extend(Mf.prototype,Ti,{connectToTop:function(e,t){this._isTop||this._window.top.postMessage(JSON.stringify(e),t)},frameConnect:function(e){this._frames[e.data.frameId]=e.source,this._relayHandlerAdded||(this._relayHandlerAdded=!0,this._boundRelayMessage=E.bind(this._relayMessage,this),this._singletonMessageHandler.addEventListener(this._boundRelayMessage)),e.source.postMessage(JSON.stringify({action:"pendo::connectSuccess"}))},frameDisconnect:function(e){delete this._frames[e.data.frameId]},connectSuccess:function(){this._singletonMessageHandler.removeEventListener(this._boundFrameConnectHandler),this._singletonMessageHandler.addEventListener(this._boundMessageReceived)},broadcast:function(t){var n=this._singletonMessageHandler.targetOrigin();E.each(this._frames,function(e){t.source!=e&&e.postMessage(JSON.stringify(t.data),n)}),t.source!=this._window&&this._messageReceived(t)},postMessage:function(e){this._isTop?this._relayMessage({data:e,source:this._window}):this._window.top.postMessage(JSON.stringify(e),this._singletonMessageHandler.targetOrigin())},close:function(){var e=this._singletonMessageHandler;e.removeEventListener(this._boundFrameConnectHandler),e.removeEventListener(this._boundMessageReceived),e.removeEventListener(this._boundRelayMessage)}});Lf=window,Pf=Sa,Ff=!($f=[]);var Lf,Pf,$f,Ff,Df={targetOrigin:function(){return Ff?location.origin:"*"},secure:function(e){Ff=e},addEventListener:function(e){0===$f.length&&Lf.addEventListener("message",Uf),$f.push(e)},removeEventListener:function(e){e=$f.indexOf(e);0<=e&&$f.splice(e,1),0===$f.length&&Lf.removeEventListener("message",Uf)},close:function(){Lf.removeEventListener("message",Uf),$f.length=0}};function Uf(t){Ff&&!Pf(t.origin)||E.each($f,function(e){E.isFunction(e)&&e(t)})}function Gf(e){if(!Fe.addEventListener)return{addEventListener:E.noop,postMessage:E.noop,close:E.noop};var t=!!window.__pendoExtensions;if(h.get("preferBroadcastChannel")&&!t&&E.isFunction(window.BroadcastChannel)){e.commit("frames/setChannelType","BroadcastChannel");t=function(e,o){const a=[];return e.removeEventListener=E.wrap(e.removeEventListener,function(e,t,n){var i,r=E.toArray(arguments).slice(1);return"message"===t&&0<=(i=E.findIndex(a,e=>e[0]===n))&&(r[1]=a[i][1],a.splice(i,1)),e.apply(this,r)}),e.addEventListener=E.wrap(e.addEventListener,function(e,t,n){var i,r=E.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=E.wrap(e.postMessage,function(e,t){return t.tabId=o.getTabId(),e.apply(this,E.toArray(arguments).slice(1))}),e}(new BroadcastChannel("pendo"),sn);if(t&&E.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),Of(e,window,Df)}var jf="guides_blocked",Bf="Guides disabled: unreachable endpoint guide.gif";const zf=f.getLocal();var Hf=[],Wf="Guide was not shown because this visitor is in a control group of an active experiment for the guide";const qf=[];function Vf(){var e=h.get("guideCssAssetPath");return e||ro("guide.css")}var Kf="_pendo-guide_",Jf="_pendo_g_",Yf=0;function Zf(e){Yf=e}var Xf=function(){return E.any(R,function(e){return e.isShown()})},Qf=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"),De()?9<Ie&&n.css({top:3}):8===Ie?n.css({top:9,right:2}):9===Ie?n.css({right:2,top:3}):9<Ie&&n.css({top:3}),e=k("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},eg=function(n){return E.reduce(R,function(e,t){return n(t)&&e.push(t),e},[])},tg=function(e,t,n,i,r){e=Vu(N(e),t);e&&(e.seenState=n,e.lastSeenAt=i,r!==undefined)&&(e.dismissCount=r)},ng=function(e){for(var t=new RegExp("^"+Jf);e;){if(E.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function ig(t){E.each(R,function(e){E.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var rg=function(e){return e&&e.guideId};var og=function(e,t){var n,i;return rg(e)&&(t=e,e=null),(n=t)&&E.isFunction(n.render)?t:t?(n=N(t.guideId))&&n.findStepById(t.id):(n=E.find(R,function(e){return e.isShown()}))?((i=e?ng(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||Eo("findStepForGuideEvent: step with id "+i):(t=E.find(n.steps,function(e){return e.isShown()}))||Eo("findStepForGuideEvent: no step shown"),t):void 0},ag=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=rd(e);"tooltip"===e.type&&E.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Lu(n,t,mg,!0)};function sg(e){return e.isLocked()&&(!e.elements||!e.elements.length||void Co('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}var ug=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()},dg=function(e){e=E.get(e,"attributes.activation.selector",""),e=yr(e);e.length<1||e[0].focus()},cg=function(){var e=P.getResourceCenterBadge();e?e.element().focus():(e=P.getResourceCenter(),dg(e))},lg=function(e){if(!I.designer&&e&&"building-block"===E.get(e,"attributes.type","")){var t=e.steps[0],n=t.seenReason,i=E.get(e,"launchMethod","").split("-"),r=E.contains(i,"dom"),o=E.contains(i,"badge"),i=kg(e);if(E.get(t,"attributes.isAutoFocus")||i)switch(n){case"badge":o&&ug(t);break;case"dom":r&&dg(e);break;case"launcher":cg();break;default:return}}};function pg(e,t){return!e.isMultiApp&&("auto"===t||"repeatGuide"===t)}var hg=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=og(e,t))&&t.id?sg(t)||("dismissed"===t.seenState?C.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(C.info("onGuideDismissed called",{contexts:["guides"]}),m.beforeDismiss.trigger(t).cancel?C.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(ag(t),e=t.id,n=N(s=t.guideId),i=(i=E.first(n&&n.steps))&&i.seenReason,o=n&&n.language,r=E.get(t,"dismissCount",0)+1,Mg(s,e,b(),i,o),o=v(),tg(s,e,"dismissed",o,r),(a=E.isFunction(t.getGuide)&&t.getGuide())&&a.attributes&&a.attributes.doNotResume||Ap({guideId:s,guideStepId:e,time:o,state:"dismissed",seenReason:i,visitorId:b(),dismissCount:r}),pg(n,i)&&$g(o,Pg.DISMISSED),t.hide(),lg(a),Xf()||(Hp(),Wp())))):Hp()},fg=function(e,t,n){var i,r,o,a,s,u,d,c;C.info("onGuideSnoozed called",{contexts:["guides"]}),(t=og(e,t))?"snoozed"===t.seenState?C.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):m.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")),sg(t)||(ag(t),e=t.id,i=t.guideId,r=b(),o=N(i),a=o&&o.language,s=E.first(o&&o.steps),s=s&&s.seenReason,u=v(),C.info("snoozing guide for "+n+" ms"),d=u+n,t.snoozeEndTime=d,c=Dg({type:"guideSnoozed",guideId:c=i,stepId:e,visitorId:r,seen_reason:s,language:a,snooze_duration:n}),jg(c),m.guideSnoozed.trigger(c),tg(i,e,"snoozed",u),o&&o.attributes&&o.attributes.doNotResume||Ap({guideId:i,guideStepId:e,time:u,state:"snoozed",seenReason:s,visitorId:b(),snoozeEndTime:d}),pg(o,s)&&$g(u,Pg.SNOOZED),t.hide(),lg(o),Xf())||(Hp(),Wp())):(C.info("missing step. can't snooze",{contexts:["guides","error"]}),Hp(),Eo("onGuideSnoozed: missing step"))},gg=function(e){var t,n,i,r=(r=e&&e.step)||og(e);r?(i=e&&e.params,i=E.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=E.find(i.steps,function(e){return e.id===t}))?(n=E.indexOf(i.steps,n),i=E.indexOf(i.steps,r),e.steps=Math.abs(n-i),e.action=e.action||"goToStep",e.destinationStepId=t,i<n?mg(e,r,!1):vg(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"]})},mg=function(e,t,n){if((s=Um())&&E.each(s.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=rd(e);"tooltip"===e.type&&E.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Lu(n,t,mg,!0)}),1===arguments.length&&rg(e)&&(s=Wu(e.guideId),i=og(),s)&&i&&E.first(s.steps).id===i.id&&E.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=og(e,t))===e&&(e=null),t){if(!sg(t))if("advanced"!==t.seenState||n)if(m.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&&E.findIndex(r.steps,e=>t.id==e.id);if(e&&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],Lg(r.id,t.id,b(),t.seenReason,o,d!==a);var c=v();Ap({guideId:t.guideId,guideStepId:t.id,time:c,state:"advanced",seenReason:t.seenReason,visitorId:b()}),tg(r.id,t.id,"advanced",c)}return mg(r.steps[s],t,!0)}var l,i=t.id,s=t.guideId,p=E.first(r&&r.steps),p=p&&p.seenReason,h=e&&e.destinationStepId,f=(h||(f=e&&E.isNumber(e.steps)&&1<e.steps?e.steps:1,h=(f=E.isNumber(a)&&r&&r.steps&&r.steps[a+f])&&f.id||null),h||C.info("missing destination step id"),C.info("advancing guide"),Lg(s,i,b(),p,o,n,h),C.info("update guide status"),r&&E.last(r.steps).id===i&&(l=E.get(t,"dismissCount",0)+1),(new Date).getTime()),g=(tg(s,i,"advanced",f,l),E.isFunction(t.getGuide)&&t.getGuide());g&&g.attributes&&g.attributes.doNotResume||Ap({guideId:s,guideStepId:i,time:f,state:"advanced",seenReason:p,visitorId:b(),destinationStepId:h,dismissCount:l}),pg(r,p)&&$g(f,Pg.ADVANCED),C.info("stop guide"),Hp(),C.info("start guides"),Wp()}else C.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else C.info("missing step. can't advance",{contexts:["guides","error"]}),Hp(),Eo("onGuideAdvanced: missing step")},vg=function(e,t){var n,i,r,o,a,s;C.info("onGuidePrevious called",{contexts:["guides"]}),(t=og(e,t))?"advanced"===t.seenState?C.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):m.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=E.indexOf(o.steps,t))&&(r="element"==t.advanceMethod?"click":"mouseover",a=rd(t),"tooltip"===t.type&&E.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):Lu(a,r,mg,!0),a=e&&E.isNumber(e.steps)?e.steps:1,r=E.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"),Lg(n,t.id,b(),i,r,!1,o),C.info("update guide status"),a=(new Date).getTime(),tg(t.guideId,t.id,"advanced",a),(s=E.isFunction(t.getGuide)&&t.getGuide())&&s.attributes&&s.attributes.doNotResume||Ap({guideId:t.guideId,guideStepId:t.id,time:a,state:"advanced",seenReason:i,visitorId:b(),destinationStepId:o}),Hp(),Wp())):(Hp(),Eo("onGuidePrevious: missing step"))},yg=function(e){var t;k("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",io()+"/img/tiny-logo.png"),t=k(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:I.TOOLTIP_ARROW_SIZE}).append(t),Fu.push(t[0]),t.appendTo(e))};function bg(e){return e&&e.attributes&&e.attributes.stayHidden}const wg=(e,t,n)=>{var i;return sh()&&({id:e,guideId:i}=e,m.stepEligibility.trigger({stepId:e,guideId:i,eligible:t,reason:n})),t};var Sg=function(e){var t,n,i=E.partial(wg,e);return bg(e)?i(!1,"dismissed"):e.elementPathRule||"lightbox"!==e.type&&"whatsnew"!==e.type?e.triggerElementPathRule&&!ca(yr(e.triggerElementPathRule)[0])?i(!1,"trigger_element"):(t=rd(e),(n=e.targetElement)&&e.elementContainsRulesList&&!_g(n,e.elementContainsRulesList)?i(!1,"contains_rules"):(n="tooltip"===e.type||Ic.isBuildingBlockGuideRelativeToElement(e),e=ca(t),n?e?i(e,"target_element_tooltip"):i(la(t),"target_element_tooltip_scroll"):i(e,"target_element"))):i(!0,"")};function Ig(e){var t=(k(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function _g(e,t){for(var n=Ig(e),i=0;i<t.length;i++)if(!Eg(n,t[i]))return!1;return!0}function Eg(e,t){var n=t.matchType,i=t.matchValue,t=t.dataType,e=e||"";if("number"===t){var r=ht(e);if(null==r)return!1;e=parseFloat(r),i=parseFloat(i);if(isNaN(e)||isNaN(i))return!1}else"string"===t&&(e=e.toLowerCase(),i=i.toLowerCase());return"equal"===n?e===i:"notEqual"===n?e!==i:"contains"===n?-1<String(e).indexOf(i):"notContains"===n?-1===String(e).indexOf(i):"greaterThan"===n?i<e:"lessThan"===n&&e<i}var Cg=function(e){return Jf+e.id},Tg=function(e){var t=e.element,n=E.first(k("#"+Cg(e)));t&&n?ca(t)||k.hasClass(n,"mouseover")?Dt(function(){Tg(e)},jp):e.hide&&(e.hide(),Xf())||(Hp(),Wp()):t||!n||e.hide&&(e.hide(),Xf())||(Hp(),Wp())},xg=function(){return!1},kg=E.partial(E.get,E,"attributes.resourceCenter"),Ag=function(t){var e;Xf()&&(e=og(),ag(e),kg(t)?(e=eg(kg),(e=E.filter(e,function(e){return e.id!==t.id})).length&&g.dispatch("frames/hideGuides",E.pluck(e,"id"))):(ig(),g.dispatch("frames/hideGuides")))},Og=function(e,t){return!(!e||!e.guideId||!(e=N(e.guideId)))&&(Ag(e),e.launch(t),e.isShown())},Rg=function(e,t,n,i,r,o){e=Dg({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&E.extend(e.props,{step_poll_types:o}),jg(e),m.guideNotSeen.trigger(e)};var Ng=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("-"),!E.contains(a,s))&&a.length?E.first(a):s);var a=Dg({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),s=(E.extend(a.props,o),jg(a),v());Ap({guideId:e,guideStepId:t,time:s,state:"active",seenReason:i,visitorId:b()}),tg(e,t,"active",s),m.guideSeen.trigger(a)};function Mg(e,t,n,i,r){e=Dg({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});jg(e),m.guideDismissed.trigger(e)}function Lg(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=Dg(e);jg(t,null,o),m.guideAdvanced.trigger(t)}var Pg={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function $g(e,t){Fg(e,t);var n={};n[t]=e,g.dispatch("frames/changeThrottlingState",n)}function Fg(e,t){E.contains(E.values(Pg),t)&&(E.isFunction(e.getTime)&&(e=e.getTime()),I[t]=e,f.write(t,e,xp),g.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function Dg(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),E.isString(a.language)||delete a.language,E.extend({guide_id:a.guideId,guide_step_id:a.stepId},E.omit(a,"type","guideId","stepId","visitorId"))),t=sn.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:Gn(),browser_time:(new Date).getTime(),url:A.externalizeURL(),props:e});return m.eventCaptured.trigger(t),t}var Ug=null,Gg=function(e){window.clearTimeout(Ug),Ug=Dt(vm,e)},jg=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-Yf,Im(),gm.push(e),Gg(t)},Bg=function(e,t){return"dismissed"===e.state?null:N(e.guideId).nextStep(e,t||zg())},zg=function(){return I.normalizedUrl||Hg(A.externalizeURL())},Hg=function(e){try{var t=new qn(e),n=E.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return C.error("Invalid URL provided to normalize"),e}},Wg=function(e,t){return!ge(e)||new RegExp(e).test(t)},qg=function(e,t){e=qu(e);return!!e&&(!(t=Og(E.first(e.steps),t||"api"))&&e.control&&C.info(Wf),t)},Vg=function(e,t){e=N(e);return!!e&&(!(t=Og(E.first(e.steps),t||"api"))&&e.control&&C.info(Wf),t)};function Kg(e,t){return t=parseInt(t,10),isNaN(t)||!E.isNumber(t)||!(E.isNumber(e)&&e<t)&&E.isNumber(e)?e:t}var Jg,Yg=function(){Hp(),zp(),P.removeNotificationBubble(),fh(),ss()};function Zg(){Hp(),Oo(),I.segmentFlags=[],I.doNotProcess=!0,g.commit("debugger/doNotProcess",!0),C.info("not tracking visitor due to 451 response")}function Xg(e){if(Jg&&(451===e.statusCode&&(Zg(),Jg.deferred.reject(e)),!E.isString(e.id)||e.id===Jg.id)){const t=E.indexBy(I.guides,"id");E.extend(I,e),I.guides=E.map(I.guides,function(e){return 1==E.keys(e).length&&e.id?t[e.id]:e}),Jg.deferred&&Jg.deferred.resolve(),Jg=null}}var Qg=function(e,t){var n=oo(),i=E.uniqueId(),r=y.defer(),o=(Jg={id:i,deferred:r},Sl()||((o=Il())?(C.info("sending metadata: "+JSON.stringify(o),{contexts:["guides","metadata"]}),t.metadata=o):C.info("no metadata to send",{contexts:["guides","metadata"]})),et(t)),i={id:i,jzb:o,v:He,ct:(new Date).getTime()},n=(n&&t.accountId&&"ACCOUNT-UNIQUE-ID"!==t.accountId&&(i.acc=it(t.accountId)),sh()&&(i.debug=!0),Io(em.endpoint(),e,i)),t=fs.get();return o=2e3<n.length||!E.isEmpty(t)?(delete i.jzb,n=Io("guide.json",e,i),i=E.extend({events:o},t),em.post(n,i,I,E.noop)):em.load(n,I,E.noop),y.all([o["catch"](function(e){return 451===e.status&&Zg(),y.reject(e)}),r.promise,(t=em,i=e,"1"===(n=f.read(jf))?(C.info(Bf),y.resolve({success:!1,cached:!0})):"0"===n?y.resolve({success:!0,cached:!0}):(n=Io("guide.gif",i,{jzb:"eJwFwIEIAAAAwDDQd3-N1QABFQC5",ct:v(),v:He}),(t.usesXhr()?xr.get(n):To(n)).then(function(){return{success:!0}},function(e){return e&&e.status?{success:!0}:{success:!1}})))]).then(function([,,e]){var t;if((t=e).cached||(t.success?f.write(jf,"0",144e5):(C.info(Bf),f.write(jf,"1",18e5))),!e.success)return y.reject()})},em=gd;function tm(e){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 nm(n){return E.every(qf,e=>{try{return e(n)}catch(t){return console.debug("Error in guide processor",e,n.id),!1}})}function im(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&E.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}var rm,om=function(){return!h.get("disableGlobalCSS")};function am(e,t){var n=h.get("dropAnonymous");if(xn(e)&&n)C.info("loading guides blocked for anonymous visitors due to dropAnonymous config setting being set to true"),E.isFunction(t)&&t("error: guides are blocked");else if("1"===f.read(jf))C.info("guide events are blocked, load guides cancelled"),E.isFunction(t)&&t("error: guides are blocked");else{if(es(ts()))return 1;C.info("bad url: probably local file system",{contexts:["guides","error"]}),E.isFunction(t)&&t("error: invalid url")}}var sm=function(e,a,s,u){var d=y.defer(),c=!1;if(e=e||I.apiKey,am(a=a||b(),u)){C.info("loading guides for "+s+"...",{context:["guides"]}),s=A.externalizeURL(s);var n,t,i=sm.lastVisitorId!==a,l=i?E.noop:(r=R,(t=E.find(r,function(e){return E.isFunction(e.isRendered)&&e.isRendered()&&!e.isTopLevel}))?(n=E.chain(t.steps).filter(function(e){return e.isRendered()}).indexBy("id").value(),function(e){e=E.findWhere(e,{id:t.id});e&&!E.get(e,"attributes.doNotResume")&&E.each(e.steps,function(e){var t=n[e.id];!t||e.seenState&&"active"!==e.seenState||e.show(t.seenReason)})}):function(){}),r=(sm.lastVisitorId=a,zp(),g.commit("guideState/setLastGuideRequestAt",v()),{visitorId:a,accountId:Gn(),url:s,oldVisitorId:Pn=Pn===undefined&&kn()?Bn(_n):Pn}),o=function(e,t,n=v()){let i=[];return h.get("cacheGuides")&&!(i=n-(t.lastUncached||0)<h.get("cacheGuidesTimeout")?E.map(e.guides,e=>E.pick(e,"id","lastUpdatedAt")):i).length&&(t.lastUncached=n),i}(I,sm);o.length&&!i&&(r.cachedGuides=o);const p=E.uniqueId();sm.reqId=p,Qg(e,r).then(function(){if(!c&&!I.designer)if(sm.reqId!==p)d.resolve();else{m.deliverablesLoaded.trigger(),C.info("successfully loaded guides for "+s,{contexts:["guides"]}),I.designerEnabled&&"true"!==zf.getItem("pendo-designer-mode")&&mf.loadPluginJs(),Yg();var t=I.lastGuideStepSeen;if(t){g.dispatch("guideState/receiveLastGuideStepSeen",t),t.visitorId=a,g.dispatch("guideState/updateLastGuideStepSeen",t),g.commit("guideState/setLastGuideRequestAt",v()),Uu={};t=I.guides;var t=E.chain(t).map(Pd).filter(tm).filter(nm).sortBy(im).value(),n=(zu(t),Ku());g.dispatch("guideState/load",(r=kp,o=h.get("crossAppGuideStorageSuffix"),f.read(r,!1,o))),g.dispatch("guideState/apply"),I.latestDismissedAutoAt=Kg(I.latestDismissedAutoAt,f.read("latestDismissedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestDismissedAutoAt",value:I.latestDismissedAutoAt}),I.finalAdvancedAutoAt=Kg(I.finalAdvancedAutoAt,f.read("finalAdvancedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"finalAdvancedAutoAt",value:I.finalAdvancedAutoAt}),I.latestSnoozedAutoAt=Kg(I.latestSnoozedAutoAt,f.read("latestSnoozedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestSnoozedAutoAt",value:I.latestSnoozedAutoAt}),g.dispatch("healthCheck/init",t),g.dispatch("frames/changeGuideList",n),I.eventProperties=Am(I.features);let e=y.resolve();I.globalJsUrl&&(e=Cf(Fd(I.globalJsUrl))["catch"](function(e){C.error("Error loading global script: ",e)})),n.length?y.all([fm(),e,wm(t),Tf.initializeWatermark(t),cm(5e3)].concat((i=t,E.map(um,function(e){return e(i)})))).then(function(){sm.reqId===p&&(g.getters["frames/isLeader"]()&&l(R),m.guidesLoaded.trigger(),Wp(),clearTimeout(rm)),E.isFunction(u)&&u(),d.resolve()},function(e){C.error("Post loadGuide request failed: ",e),m.guidesFailed.trigger(),d.reject()}):(m.guidesLoaded.trigger(),d.resolve())}else C.info("lastGuideStepSeen is not set, shutting down guides")}var i,r,o})["catch"](function(e){m.guidesFailed.trigger(),d.reject(e)});i=h.get("guideTimeout")||h.get("guides.timeout");E.isNumber(i)&&(clearTimeout(rm),rm=Dt(function(){var e;e=d,Yg(),e.reject(),c=!0},i))}else d.reject();return d.promise};var um=[];function dm(e,t){var n,i=document.getElementById(e);return i&&i.href&&0<=i.href.indexOf(t)?y.resolve():(n=y.defer(),k(i).remove(),I.loadResource(t,function(){n.resolve()}).id=e,n.promise)}var cm=E.memoize(function(t,n,e){if(!om()||!lm(R))return y.resolve();n=n||v,e=e||"_pendo-hidden_";var i=k(document.createElement("div")).addClass(e).css({position:"absolute",bottom:"0px",right:"0px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(k.getBody()),r=n(),o=y.defer();return function s(e){Dt(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=O(e);if(e)return"none"===e.display}});function lm(e,t){return t&&t.designer||E.any(e,function(e){return!Qu(e)&&E.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl||e.domJson)})})}const pm="_pendo-default-css_",hm="_pendo-css_";function fm(){var e=[];if(!om())return y.resolve();lm(R,I)&&e.push(dm(pm,Vf()));var t=((I.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(dm(hm,Fd(t))):k("#"+hm).remove(),y.all(e)}var gm,mm,vm=function(e){gm&&gm.flush(e)},ym=function(){return Hf};function bm(e){var t=ws(Ps,Cs("visitor_id"),Cs("props.guide_id"),Cs("props.source"),Ls,$s(),Us(e),Gs,js),n=ws(Is,_s(e.cache),E.noop);return new Qs(E.extend({processSilos:t,packageSilos:n},e))}var wm=function(e){return P.initializeResourceCenter(e)},F={postMessage:E.noop,close:E.noop};let Sm=F;function Im(){return gm=gm||bm({cache:Hf,apiKey:function(){return I.apiKey},beacon:"guide",allowPost:!0,preferFetch:Fe.safari}),mm=mm||bm({cache:[],apiKey:function(){return I.apiKey},beacon:"poll",allowPost:!0,preferFetch:Fe.safari}),()=>{gm.clear(),mm.clear()}}function _m(e){var e=e["blockedURI"];e&&-1!==e.indexOf("/data/guide.json")&&h.get("cacheGuides")&&((e=h.getLocalConfig()).cacheGuides=!1,h.setLocalConfig(e),Er(window,"securitypolicyviolation",_m),Fm())}var Em=function(){const e=[];e.push(Im()),dh.run(),e.push(dh.stop),m.appHidden.on(function(){vm({hidden:!0})}),m.appUnloaded.on(function(){vm({unload:!0}),g.dispatch("frames/leave")}),m.metadata.on(function(e){e=e.data[0].storeChanged;e&&!Sl()&&$m()}),m.identify.on(function(){$m()}),m.urlChanged.on(function(){$m(A.get())}),m.guideUpdateComplete.on(function(){var e,t,n;e=E.filter(R,e=>E.isFunction(e.outsideTimebox)&&e.outsideTimebox()),Hu.addGuide(e),Gd.processPrefetch(),e=R,t=Du,h.get("disablePrefetch")||(t=E.keys(t)).length&&(n=E.indexBy(e,"id"),E.each(t,function(e){var e=n[e];e&&(e=E.first(e.steps))&&E.isFunction(e.fetchContent)&&e.fetchContent(!0)}))}),m.guidesLoaded.on(function(){P.fetchAnnouncementGuidesContent(R,g)}),m.guideListChanged.on(function(e){e=e.data[0].guideIds;if(e&&e.length){const n=E.indexBy(e);E.each(Du,function(e,t){n[t]||(e.hide(),delete Du[t])})}}),e.push(function(e,t,n){var{Turbolinks:i,Turbo:r}=window;let o;if(i&&(o=i.EVENTS&&i.EVENTS.LOAD),!(o=r&&r.visit?"turbo:load":o))return()=>{};const a=_r(e,o,t),s=_r(e,"turbo:before-cache",n);return()=>{a(),s()}}(document,function(){A.get()===Pm.lastUrl&&Fm()},function(){Yg()}));var t=h.get("guides.tooltip.arrowSize");if(E.isNumber(t)&&(I.TOOLTIP_ARROW_SIZE=t),Sm=Gf(g),F=kf(Sm,g),e.push(()=>F.close()),e.push(sn.tabIdChanged(function(){var e=sn.getTabId();g.commit("frames/setTabId",e),g.dispatch("frames/join")})),g.dispatch("frames/init"),g.dispatch("frames/join"),e.push(function(){const e=[];return g.dispatch("guideState/init"),e.push(_r(window,"focus",Op)),e.push(_r(window,"storage",function(e){g.dispatch("guideState/storageChanged",e)})),()=>E.each(e,function(e){e()})}()),e.push(()=>{Nm.cancel(),vh.cancel()}),e.push(_r(window,"resize",Nm)),e.push(_r(window,"scroll",vh,!0)),e.push(_r(window,"gestureend",Mm,!0)),e.push(_r(window,"securitypolicyviolation",_m)),e.push(function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];const t=[];for(var n=0;n<e.length;n++)t.push(_r(document,e[n],Lm));return()=>{E.each(t,function(e){e()})}}()),h.get("preferMutationObserver")&&Fe.MutationObserver){const n=E.debounce(function(e){g.dispatch("guideUpdate/documentChanged")},50);e.push(()=>{n.cancel()}),e.push(l(window,"animationend",n)),e.push(l(window,"transitionend",n)),e.push(l(window,"mouseover",n)),g.commit("guideUpdate/setUseObserver"),h.get("observeShadowRoots")&&g.commit("guideUpdate/setObserveShadowRoots"),e.push(()=>g.dispatch("guideUpdate/stopObserver"))}return f.registry.addLocal(Pg.ADVANCED),f.registry.addLocal(Pg.DISMISSED),f.registry.addLocal(Pg.SNOOZED),f.registry.addLocal(jf),zd.initialize(),()=>{Pm.reset(),Yg(),$m.reset(),sm.reqId=null,E.each(e,function(e){e()}),k("#"+pm).remove(),k("#"+hm).remove(),zd.teardown()}},Cm=function(){return h.get("guides.disabled",!1)||h.get("disableGuides",!1)||!So},Tm=function(){return h.get("guides.delay",!1)||h.get("delayGuides",!1)},xm=function(e){var t=h.getLocalConfig();t.disableGuides=e,h.setLocalConfig(t)},km=function(e){var t=h.getLocalConfig();t.delayGuides=e,h.setLocalConfig(t)},Am=Wn(function(e){if(e&&e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n].featureRule,r=E.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}}),Om=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},Rm=function(){C.debug("adjustActiveGuideOnResize firing");var e=Um();e&&e.step&&!I.ignoreResize&&e.step.redraw()};const Nm=E.debounce(function(){var e;-1<E.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=Om())||e.id.indexOf("pendo-video-")<0)&&Dt(function(){Rm()},150):Rm(),vh()},50),Mm=function(e){1!==e.scale&&Nm()};var Lm=function(e){var t=E.get(document,"activeElement.id",""),e=E.get(e,"target.id","");E.filter([t,e],e=>-1<e.indexOf("pendo-video-")).length&&(Om()?I.ignoreResize=!0:Dt(function(){I.ignoreResize=!1},1e3))};function Pm(e){var t,n,i,r,o=b(),a=Gn();e=e||A.get(),n=o,i=a,r=Jc,!(t=e)||!I.apiKey||Cm()&&"true"!==zf.getItem("pendo-designer-mode")||t===Pm.lastUrl&&n===Pm.lastVisitorId&&i===Pm.lastAccountId&&r===Pm.lastMetadataHash||(Pm.lastUrl=e,Pm.lastVisitorId=o,Pm.lastAccountId=a,Pm.lastMetadataHash=Jc,sm(I.apiKey,o,e)["catch"](E.noop))}Pm.reset=function(){E.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){Pm[e]=null})};var $m=function(e){So&&($m.reset(),$m.pending=Dt(function(){delete $m.pending,Pm(e)},0))};function Fm(){Pm.lastUrl=null,$m()}function Dm(e){e=qf.indexOf(e);-1!==e&&qf.splice(e,1)}function Um(){var e,n,t=E.find(R,function(e){return e.isShown()});return!t||E.get(t,"attributes.resourceCenter.isModule")&&!(t=P.getResourceCenter())?null:(e=E.find(t.steps,function(e,t){return n=t,e.isShown()}),{guide:t,steps:E.filter(t.steps,function(e,t){return e.isShown()}),step:e,stepIndex:n})}function Gm(e){var t,n=E.get(e,"value","");-1!==E.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],E.forEach(e,function(e){"none"!==E.get(e,"style.display","none")&&t&&t.setAttribute("aria-labelledby",e.id)}))}$m.reset=function(){$m.pending&&clearTimeout($m.pending)};var jm=function(){var n=this,o=(this.eventable=pn.call({}),this.eventable.on("pendoEvent",function(e){try{n.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";C.critical("Error in Action "+e,{error:t})}}),this.eventHandler=function(e){if(!e.ignore&&!I.designer){var t=e.step["guideElement"];switch(e.action){case o.advanceGuide:mg(e,e.step);break;case o.previousStep:vg(e,e.step);break;case o.goToStep:gg(e);break;case o.submitPoll:this.submitPoll(e);break;case o.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;fg(e,e.step,n);break;case o.dismissGuide:P.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return hg();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return P.dismissResourceCenter(t);hg(e,e.step)}(e);break;case o.showElements:this.setElementDisplay(e,"block"),e.srcElement&&Gm(e.srcElement),zc((i=Hd(e.step.domJson)).props.id,t),Hc(i.props.id,t),M.flexAllThings(i.props.id,e.step),Bc(i.props.id,t);break;case o.hideElements:this.setElementDisplay(e,"none"),zc((i=Hd(e.step.domJson)).props.id,t),Hc(i.props.id,t),M.flexAllThings(i.props.id,e.step),Bc(i.props.id,t);break;case o.slideElement:this.setElementAnimation(e);break;case o.showGuide:n=E.find(e.params,function(e){return"reason"===e.name});Vg(e.params[0].value,n&&n.value);break;case o.launchGuide:this.launchGuide(e);break;case o.renderResourceCenterModule:var i=a(e);P.replaceResourceCenterContent(e.params[0].value,i);break;case o.returnToResourceCenterHome:n=P.findResourceCenterHomeView(ju());if(!n)return;P.attemptToPreserveIntegrationIframes(e),P.replaceResourceCenterContent(n.id,e.params);break;case o.openLink:this.openLink(e);break;case o.searchGuides:this.searchGuides(e);break;case o.submitPollAndGoToStep:this.submitPoll(e),gg(e);break;case o.confirmation:this.confirmGuide(e)}var r=jm.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(E.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=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(E.compact(n)):C.info("[Agent] Error! Trying to submit a poll response but step does not have response function!");t!==o.submitPollAndGoToStep&&i.advance()},this.setElementDisplay=function(e,t){var n=e.step,e=k(E.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);E.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=k(E.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=E.find(e.params,function(e){return"transition"===e.name}).value,e=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=E.find(e.params,function(e){return"url"===e.name}).value,e=E.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&Ha()&&(e="_top");window.open(t,e)},this.goToStep=gg,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"})),E.isFunction(i[u].getAttribute)&&(e=i[u].getAttribute("data-_pendo-text-list-item-1").split(","),E.forEach(e,function(e){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 E.contains(t,e)&&e===n})},this.confirmGuide=function(e){var e=e.step,t=function(e){if(e.confirmationElementPathRule)return yr(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=a,this.launchGuide=function(e){var t=!E.get(e,"params.2.value.doNotDismiss");t&&hg(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=E.find(n.steps,function(e){return e.id===i}))||n.steps[0],Ag(n),r.show("api")):t&&Vg(e.params[0].value)}},this.debounceAnnounceResults=E.debounce((e,t)=>{e.innerHTML=t},300),{advanceGuide:"advanceGuide",previousStep:"previousStep",goToStep:"goToStep",submitPoll:"submitPoll",guideSnoozed:"guideSnoozed",dismissGuide:"dismissGuide",showElements:"showElements",hideElements:"hideElements",slideElement:"slideElement",showGuide:"showGuide",launchGuide:"launchGuide",renderResourceCenterModule:"renderResourceCenterModule",returnToResourceCenterHome:"returnToResourceCenterHome",openLink:"openLink",searchGuides:"searchGuides",submitPollAndGoToStep:"submitPollAndGoToStep",confirmation:"confirmation"});function a(e){return e.params.find(e=>"transitionDirection"===e.name)?[{name:"transitionCss",type:"string",value:"left 200ms"},{name:"transitionDirection",type:"string",value:"right"}]:[]}return this},Bm=(jm.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&((jm.prototype.registeredActions=jm.prototype.registeredActions?jm.prototype.registeredActions:{})[e]=t)},function(){var s="guideActivity",u=function(){return(new Date).getTime()-Yf},r=E.isObject,d=E.findWhere;const c=[];return{type:s,handler:function(e){var t,n=e.data[0],e=e.data[1];e=e,r(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if(E.isString(e.id)&&0===e.id.indexOf("pendo-base"))return!0;if(r(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return l(e)}(t)||function(e){return h(e)}(t)||function(e){return p(e)}(t))&&(e=function(e){var t=function(e){for(var t of c){t=t(e);if(t)return t}return Um()}(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=E.find(ju(),function(e){return e.id===t});return e?{guide:e,step:e.steps[0]}:undefined}(e.id)))return;if(!t.step||!t.step.domJson)return;var e=h(e)||l(e)||p(e)||{type:e.tag,id:e.id},n=function a(e,t){if(t.props&&t.props.id&&t.props.id===e)return t;if(t.children!==undefined)for(var n=0;n<t.children.length;n++){var i=a(e,t.children[n]);if(i!==undefined)return i}return undefined}(e.id,t.step.domJson);if(!n)return;let i=e.id;n=function(e,t){if(e!==undefined){if("a"===e.type)return[{action:"openLink",url:Vr(e.props.href),target:e.props.target}];if(e.actions!==undefined)return E.map(e.actions,function(e){switch(e.action){case"automation":var t=d(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=d(e.parameters,{name:"url"}),n=d(e.parameters,{name:"target"});return{action:e.action,url:Vr(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=d(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=d(e.parameters,{name:"snooze_duration"}),t=d(e.parameters,{name:"time_unit"});return{action:e.action,duration:n.value,timeUnit:t.value};case"showGuide":case"launchGuide":n=e.parameters[0],t=e.parameters[1]||{};return{action:e.action,guideId:n.value,stepId:t.value};case"advanceGuide":case"previousStep":case"submitPoll":case"dismissGuide":case"confirmation":return{action:e.action};default:return{}}});if("pendo_task_list_item"===t.templateName&&E.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 Dg({type:s,visitorId:b(),ui_element_id:i,ui_element_type:e.type,ui_element_actions:n,guideId:t.guide.id,stepId:t.step.id,duration:u(),language:t.guide.language})}(n))&&jg(e)},registerGuideResolver:function(e){c.push(e)},removeGuideResolver:function(e){e=c.indexOf(e);-1!==e&&c.splice(e,1)}};function l(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-button/.test(e.id))?{type:e.tag,id:e.id}:i(e)||!r(e.parentElem)?null:l(e.parentElem)}function p(e){var t,n;if("LI"===e.tag&&/pendo-task-list-item/.test(e.cls))return t=(n=e.id.split("-")).pop(),n=n.join("-"),{type:e.tag,id:n,templateName:"pendo_task_list_item",templateChildIndex:t};return i(e)||!r(e.parentElem)?null:p(e.parentElem)}function h(e){return"A"===e.tag?{type:e.tag,id:e.id}:i(e)||!r(e.parentElem)?null:h(e.parentElem)}function i(e){return E.isString(e.id)&&0===e.id.indexOf("pendo-guide-container")}}()),zm=[],Hm=!(jm.deregisterAction=function(e){e&&"string"==typeof e&&delete(jm.prototype.registeredActions=jm.prototype.registeredActions?jm.prototype.registeredActions:{})[e]});const Wm={agent:{getJwtInfoCopy:fs.get,treatAsAdoptPartner:oo},agentStorage:f,analytics:{ptm:()=>Ns,collectEvent:ys},attachEvent:l,ConfigReader:h,Events:m,EventTracer:sn,EventRouter:jm,Extensions:{API:{addTopic:function(e,t){var n=El[e]||{};E.extend(n,t),El[e]=n}}},frames:{getChannel:()=>Sm},getAssetUrl:ro,getEventable:()=>pn.call({}),GlobalRuntime:{addGlobalScript:zd.addGlobalScript,removeGlobalScript:zd.removeGlobalScript},GuideActivity:Bm,GuideLoop:{addUpdatePhase:nh,removeUpdatePhase:ih},guides:{addProcessor:function(e){return qf.push(e),E.partial(Dm,e)},removeProcessor:Dm,registerDisplayableGuides:function(e,t){E.isArray(t)&&(Uu[e]=t)},removeDisplayableGuides:function(e){delete Uu[e]}},hosts:{SERVER:je},NodeSerializer:wu,q:y,sessionStorage:f.getSession(),sizeElements:Gc,store:g,Tombstone:Hu,transmit:{buildBaseDataUrl:Io,fetchKeepalive:xo,sendBeacon:ko},log:C,util:{trim:Ze,base64EncodeString:it,parseUrl:Ia},constants:{URL_MAX_LENGTH:2e3}};function qm(t){E.find(zm,function(e){return e.name===t.name})?C.warn(`Plugin with name ${t.name} already exists. Skipping registration.`):(zm.push(t),Hm&&t.initialize(I,Wm))}function Vm(){E.each(zm,function(e){E.isFunction(e.teardown)&&e.teardown(I,Wm)}),Hm=!1}Al.registerExtensionsByUse("plugin",function(e){return E.extend(e.uri,E.pick(e,"name")),qm(e.uri),e},function(e){return!!e.uri.initialize&&!!e.uri.teardown});var Km=!1;function Jm(){Km||(m.identify.on(function(e){var t,n,e=e.data[0];n=(t=e).old_visitor_id,t=t.visitor_id,(xn(n)?Tn(t)?xn(t)?(C.info("Visitor is anonymous: "+t),1):Rn(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,Tn(t)?n===t||(C.info("Re-mapping account identity from "+n+" to "+t),0):(C.info("Not valid account id: "+t),1))||(ys("identify",e),ss())}),m.metadata.on(function(e){var t;Sl()||({options:e,hashChanged:t}=e.data[0],t&&(ys("meta",e),ss()))}),Km=!0)}Ym="guideActivity",Zm=function(){return(new Date).getTime()-Yf},Xm=E.isObject;var Ym,Zm,Xm,Qm={type:Ym,handler:function(e){var t,n=e.data[0],e=e.data[1];e=e,Xm(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(Xm(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return nv(e)}(t)||function(e){return ev(e)}(t)||function(e){return tv(e)}(t))&&(e=function(e){var t=P.getResourceCenter();if(t){var n=t.activeModule,i=nv(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=ev(e)||tv(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),Dg({type:Ym,visitorId:b(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,duration:Zm(),language:i.language})}}(n))&&jg(e)}};function ev(e){return-1!==e.cls.split(" ").indexOf("_pendo-resource-center-module-list-item")?{type:"BUTTON",elementId:k("#"+e.id).closest("[data-pendo-module-guide-id]").attr("data-pendo-module-guide-id")}:"pendo-resource-center-container"!==e.id&&Xm(e.parentElem)?ev(e.parentElem):null}function tv(e){var t=e.cls.split(" ");if(-1===t.indexOf("_pendo-resource-center-guidelist-module-listed-guide")&&-1===t.indexOf("_pendo-resource-center-onboarding-module-listed-guide"))return"pendo-resource-center-container"!==e.id&&Xm(e.parentElem)?tv(e.parentElem):null;t=P.getResourceCenter();if(t){e=e.id.split("-").pop(),t=t.activeModule;if(t&&t.attributes&&t.attributes.resourceCenter)return{type:"BUTTON",elementId:t.attributes.resourceCenter.children[e]}}return null}function nv(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&&Xm(e.parentElem)?nv(e.parentElem):null}const iv=e=>(e=e||I).doesExist(e.apiKey);let rv=0;const ov="initializeImmediately",av=[],sv=Wn(function(e){if("complete"===document.readyState||E.get(e,ov)||h.get(ov))if(C.info("pendo.initialize called with "+JSON.stringify(e)),I.apiKey)1==rv++&&C.info(["pendo.initialize only needs to be called once",ut()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join(""));else{if(e=e||{},E.isEmpty(fs.get())&&(r=fs.getJwtOptions(e,"initialize"))&&(fs.set(E.pick(e,"jwt","signingKeyName")),E.extend(e,r,{forceAnonymous:!0})),E.isString(e))return xr.get(e).then(e=>(ce(u=e.data),sv()));g.dispatch("location/init",e.location||{}),h.setLocalConfig(e),no(),I.HOST=Zr;var t,n,i,r=h.get("cookieDomain");r&&(r=r,t=location.host,r?E.isString(r)&&(t=t.replace(/:\d+$/,""),r=r.replace(/^\./,""),n=new RegExp("\\."+wt(r)+"$"),i=new RegExp("^"+wt(r)+"$"),n.test(t)||i.test(t))&&(Ct="."+r):Ct=r),Wh.discoverKeys(e),Wh.getApiKey()?(g.commit("metadata/setMetadata",{selfHosted:wl()}),e.logStackTraces&&(I.logStackTraces=e.logStackTraces),h.get("preferBroadcastChannel")&&Df.secure(!0),av.push((Os=ns.events=Ka,Rs=ns.trackEvents=Ja,Ns=eu({cache:Os,silos:ns.silos,apiKey:_o,beacon:"ptm",allowPost:!0}),Ms=eu({cache:Rs,silos:ns.trackEventSilos,apiKey:_o,beacon:"ptm",allowPost:!0,params:{type:"track"}}),rs(Ns),rs(Ms),()=>{cs(),os(Ns),os(Ms)})),So&&(f.registry.addLocal(In),f.registry.addLocal(_n),f.registry.addLocal(En),f.registry.addLocal(fl),f.registry.addLocal(oh),I.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,[{events:n=[]}]=[e],E.each(n,(e,t)=>{fd[t]&&fd[t](e)}),av.push(Em()),Jm(),av.push(Ou()),av.push((E.each(zm,function(e){e.initialize(I,Wm)}),Hm=!0,Vm)),av.push((t=e,f.registry.addLocal(bh),f.registry.addLocal(wh),E.find([E.partial(Yh.launchOnToken,window.location),E.partial(Sh,window),E.partial(Yh.localStorageNavigation,t)],e=>e()),t.enableDesignerKeyboardShortcut||!h.get("disableDesignerKeyboardShortcut")?mf.listen():()=>{})),m.appUsage.on(Bm.handler),m.appUsage.on(Qm.handler),av.push(us(Ya))),kn()||An(),I.updateOptions(e),e.visitorId&&e.visitorId!=On&&I.identify(e.visitorId),av.push(A.watch(function(){I.pageLoad()})),So&&m.ready.trigger(),tu(A.get()),rv++,window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&((i=Df.targetOrigin())?window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},i):C.warn("Unable to announce frame to designer plugin, targetOrigin is not set. Check if broadcastChannel is enabled and cross origin frames are allowed.")),cv()):C.debug("API key is not set, Pendo will not initialize.")}else oe(I,"initialize",arguments)});function uv(e){return!E.isArray(e)||E.isEmpty(e)}function dv(e){if(!uv(e))return E.find(e,e=>"initialize"===e[0])}function cv(i){var e;return!uv((i=i||I)._q)&&(e=!!dv(i._q),iv(i)||e)?(e=i._q.splice(0,i._q.length),E.reduce(e,(e,t)=>{if(!E.isArray(t))return e;const n=i[t.shift()];return E.isFunction(n)?e.then(()=>n.apply(i,t)):e},y.resolve()).then(cv)):y.resolve()}function lv(){iv()?C.info("already running"):(window.pendo_options&&sv(window.pendo_options),cv())}function pv(){m.appHidden.trigger(),m.appUnloaded.trigger(),E.each(av,function(e){e()}),tu.reset(),av.length=0,Df.close(),pn.clear(m),pn.clear(fd),delete I.apiKey,rv=0}var hv,fv,gv={getActiveGuide:Um,smartNextStep:function(e){var t,n=Um();n&&(t=n.guide.steps[n.stepIndex+1],Dt(function(){var e=yr(t.elementPathRule);0!==e.length&&E.some(e,ca)?mg(n.step):mg(t)},e=e||0))},smartFirstStep:function(){k("._pendo-guide_").css("display:none;");var t=zg(),e=Um().guide.steps,n=E.filter(E.rest(e),function(e){return!!e.pageId}),n=E.indexOf(e,E.find(n,function(e){return Wg(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),mg(n))},advanceOn:function(e,t){var n=Um(),i=k(t=t||n.step.elementPathRule)[0],r=function(){mg(),Lu(i,e,r,!0)};l(i,e,r,!0)},renderStepPosition:function(e,t,n){if(t)n||(i=[].concat(t.steps).reverse(),n=E.findWhere(i,{seenState:"active"}));else{var i=Um();if(!i)return;t=i.guide,n=i.step}return(e=E.template(e=e||"Step <%= currPos %> of <%= total %>"))({currPos:t.getPositionOfStep(n),total:t.getTotalSteps()})}},D={renderGuideFromJSON:function(e,n,t,i){var r=n.getGuide(),o=Hd(e),a=E.get(r,"attributes.resourceCenter");a&&(P.revertRtlChanges(r,e.props),e=P.updatePseudoStyleSelectors(e));var s=a&&P.isFullyCustom(r),u="AnnouncementsModule"===E.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.containerId=o&&o.props&&o.props.id,n.element=rd(n),D.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"});d=Tf.buildWatermark({appId:r.appId,targetAccount:r.targetAccount,isTraining:r.isTraining,isBottomAligned:"Bottom Aligned"===t.attr(d)},D.buildNodeFromJSON);d&&t.append(d);var d=n&&n.attributes&&n.attributes.imgCount,l=nd();var p=E.get(r,"attributes.embedConfig",null);{var h,f;p?(g=o[0],h=g.querySelector("#"+(f="pendo-guide-container")),{selector:h,method:f}=(h&&(h.id=f+"-"+n.id,g.id="pendo-base-"+n.id),p),l=k(h)[0],"replace"===f&&l?(l.innerHTML="",o.appendTo(l)):"prepend"===f?o.prependTo(l):o.appendTo(l)):o.appendTo(l)}(function(e,t,n){t=k.getRootNode(t),e=k.getRootNode(e);var i;e!==t&&(e!==document?e.hasOwnProperty("wrappedJSObject")?(i=e.wrappedJSObject.adoptedStyleSheets,t.wrappedJSObject.adoptedStyleSheets.push(...i)):(i=e.adoptedStyleSheets,t.adoptedStyleSheets.push(...i)):(n=k(".pendo-style-"+n,e)).length&&(n.remove(),n.appendTo(t)))})(nd(),o[0],n.id),Gc(o),s||u||(D.recalculateGuideWidth(n.containerId,n.guideElement),D.adjustGuideContentWidth(n.containerId,n.guideElement));d||a||D.flexAllThings(n.containerId,n);s||D.recalculateGuideHeight(n.containerId,n.guideElement);c?n.attributes.calculatedType="tooltip":Ic.attachBBAdvanceActions(n);c&&!d&&Ic.positionStepForTooltip(n,e,t[0]);{var g;a&&(P.showHomeViewOrEmptyState(r),g=[],u?g=[r.attributes.resourceCenter]:D.flexAllThings(n.containerId,n),g.length)&&E.forEach(g,function(e){e=E.get(e,"children",[]);E.forEach(e,function(e){var t;e&&(t=e.steps[0],E.isUndefined(t.attributes.imgCount))&&(t=E.get(t,"id",n.id),e=E.get(e,"id",r.id),t=k("#pendo-g-"+t).length?t:e,D.flexAllThings("pendo-g-"+t,n))})})}{var m;d?(m=y.defer(),o.rendered=m.promise,t.on("imagesLoaded",function(){m.resolve()})):(t.css({visibility:"visible"}),o.rendered=y.resolve())}o.css({visibility:"visible"}),n.elements.push(n.guideElement[0]),I.designer||(E.get(n,"attributes.isAutoFocus")&&(D.autofocusStep(n,t),D.trapFocusStep(n,t),n.hiddenElements=D.addAriaHiddenOutsideGuide(o[0])),a&&(D.attachRCFocusHandlers(),r.skipResourceCenterHomeView?(p=r.activeModule.steps[0],D.autofocusStep(p,p.guideElement)):D.autofocusStep(n,t)));return k(".pendo-video-wrapper",o).each(function(t){k("iframe",t).each(function(e){t.setAttribute("data-pendo-video-loading",""),D.addVideoLoadListener(t,e)})}),o},autofocusStep:function(e,o){var n="autofocus for guide id: "+e.getGuide().id+" step id: "+e.id+" ",i={maxRetries:100,delay:50,exponentialBackoff:!1};pt(function(){var e,t,n,i,r=k(o).find("#pendo-guide-container");return(r=r[0]||r)&&ca(r)&&(n=wo(n=r),i=jo(),E.extend(i,{top:0,left:0,bottom:i.height,right:i.width}),Xo(i,n))&&(i=r,n=E.contains(["A","INPUT","LABEL","SELECT","TEXTAREA","BUTTON","FIELDSET","LEGEND","DATALIST","OUTPUT","OPTION","OPTGROUP"],i.nodeName),e=!!i.tabIndex,t=!i.hidden,i=!i.disabled,(n||e)&&t&&i)?r:null},i,function(t){pt(function(){return!!(e=t)&&(e.focus(),e===k.getRootNode(e).activeElement);var e},i,function(){},function(){C.warn(n+"#pendo-guide-container is available on page but could not capture focus")})},function(){C.warn(n+"#pendo-guide-container did not render or become visible in time to focus")})},trapFocusStep:function(e,t){!function(e){var o,a,s,t,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=E.toArray(e.find(t))).length)&&(a=o[0],s=o[o.length-1],t=bv(e),u=t[0],d=t[1],n=function(e){var t,n,i=mv(e),r=e.shiftKey;i&&(t=(i=k.getRootNode(c).activeElement)===c,n=document.activeElement===document.body,r?(i===u||t||n)&&(yv(o,s).focus(),e.preventDefault()):(t||i===d||n)&&(yv(o,a).focus(),e.preventDefault()))},l(document,"keyup",n),l(document,"keydown",n),m.one("unmounted",()=>{Lu(document,"keyup",n),Lu(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]=bv(k(u));var t=function(e){var t=mv(e),n=e.shiftKey;if(t){var t=k.getRootNode(u).activeElement,i=k(s.attributes.activation.selector)[0];if(i){var r=t===d,t=t===c;const a=k(sa);function o(t){return Object.values(a).findIndex(e=>e===t)}n?r?(i.focus(),e.preventDefault()):t&&vv(0===(n=o(d))?a.length-1:n-1,a,e):t?vv(o(i)+1,a,e):r&&vv((n=o(c))>=a.length-1?0:n+1,a,e)}}},n=function(e){var t=mv(e),n=e.shiftKey;t&&!n&&vv(0,k('[id^="pendo-g-"]').find(sa),e)},i=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=d&&t&&vv((n=k('[id^="pendo-g-"]').find(sa)).length-1,n,e)};l(document,"keyup",t),l(document,"keydown",t),l(e,"keydown",n),l(e,"focus",i),m.one("unmounted",()=>{Lu(document,"keyup",t),Lu(document,"keydown",t),Lu(e,"keydown",n),Lu(e,"focus",i)})}}},addAriaHiddenOutsideGuide:function Cw(e,n=[]){if(!e||e===Ko())return n;const t=Jo(e);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&&Cw(e.parentNode,n);return n},renderResourceCenterModule:P.renderResourceCenterModule,buildNodeFromJSON:sl,attachImgLoadHandlers:ul,recalculateGuideHeightOnImgLoad:dl,buildStyleString:function(e){var n="";return E.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:ll,bindActionToNode:cl,recalculateGuideHeight:Bc,recalculateGuideWidth:zc,adjustGuideContentWidth:Hc,findDomBlockInDomJson:Wd,isElementHiddenInGuide:M.isElementHiddenInGuide,positionStepForTooltip:Ic.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(E.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:fc,buildNodesFromJSON:rl,findGuideContainerJSON:Hd,maintainAspectRatios:M.maintainAspectRatios,sizeElement:jc,sizeElements:Gc,getAllowedAttributes:al,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:Ic.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:Gm,addVideoLoadListener:function(e,t){l(t,"load",function(){e.removeAttribute("data-pendo-video-loading")})}};function mv(e){return"Tab"===e.key||9===e.keyCode}function vv(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function yv(e,t){let n;if("radio"===t.getAttribute("type")){const i=t.getAttribute("data-pendo-poll-id");n=E.find(e,function(e){var t=e.getAttribute("data-pendo-poll-id");return i===t&&e.checked})}return n||t}function bv(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:E.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:E.extend({},t,{tabIndex:0})},{selector:".pendo-end-focus-bumper:hover",styles:t},{selector:".pendo-end-focus-bumper:focus",styles:t}]},t=D.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 wv=100,Sv=[],Iv=[];const _v="log-enabled",Ev="active-contexts";var Cv=function(){return kv()?fv?"logging already enabled":(f.write(_v,"true",null,!0),fv=!0,"logging enabled"):"logging unavailable"},Tv=function(){return fv?(f.write(_v,"false",null,!0),fv=!1,"logging disabled"):"logging already disabled"};var xv=function(e,t){return E.compact([].concat(e,t))},kv=function(e){return e=e||"log","undefined"!=typeof console&&E.isFunction(console[e])},Av=function(e){return e=xv(e),0<hv.length?0<E.intersection(hv,e).length:!!fv||!!sh()},Ov=function(e,...t){C.info(e,{contexts:t})};function Rv(e){var t;e.level!==gt.Debug&&e.level!==gt.Info||(t=e.attributes?xv(e.attributes.contexts):[],kv()&&Av(t)&&Fv(e.message),Mv(Sv,e.message,t))}function Nv(...e){kv("error")&&console.error.apply(console,e),Mv(Iv,e.join(" "))}var Mv=function(e,t,n){E.contains(n,"debug")||(e.length==wv&&e.shift(),e.push([t,n]))},Lv=function(t){t=xv(t),E.each(E.map(E.filter(Sv,function(e){return 0===t.length||0<E.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){Fv(e,"[Pendo-History] ")})},Pv=function(){return E.union.apply(E,E.map(Sv,function(e){return e[1]}))},$v=function(e){hv=xv(e),f.write(Ev,hv.join(","),null,!0)},Fv=function(e,t){var n;kv()&&(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 Dv(t,n){if(t&&E.isString(t)){let e=n;E.isObject(n)||(e={__err__:n});n=A.get();ys("track",e,n,t)}else C.error("Must provide valid name string for event tracking")}Ov.init=function(){var e,t;e=f.read(Ev,!0),hv=e?e.split(","):[],e=Ge,t=f.read(_v,!0),fv=null!==t?"true"==t:!E.contains(["prod","prod-eu","prod-us1","prod-jp","prod-hsbc","prod-au","prod-gov","rc"],e),C.addEventListener("log",Rv),f.registry.addLocal(_v),f.registry.addLocal(Ev)},Ov.enableLogging=Cv,Ov.disableLogging=Tv,Ov.getActiveContexts=function(){return hv},Ov.setActiveContexts=$v,Ov.showLogHistory=Lv,Ov.getLoggedContexts=Pv;var Uv=function Uv(r){var o=[];function a(e,t,n,i){r?o.push({type:n,message:t,value:i}):ge(i)?console[e](t,i):console[e](t)}if("undefined"==typeof console||!console.group)return"Please run this test in the latest version of Chrome, Firefox, Safari, or Internet Explorer";r||console.group("Pendo Install Validation"),I.apiKey||a("error","No Pendo API key configured. Make sure to call pendo.initialize() with a valid Pendo API key.","apiKey");var e=b(),e=(xn(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"),Rn(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),Gn()),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"),h.get("disableCookies")&&a("warn","Cookies are disabled in Pendo config. Is this expected?","disableCookies"),Il());if(E.each(["visitor","account","parentAccount"],function(n){var i=t&&t[n],e=E.chain(i).keys().value();0<e.length?(r||console.group(n+" metadata (does this look right?):"),0<(e=E.chain(e).map(function(e){return e.toLowerCase()}).countBy().pick(function(e){return 1<e}).keys().value()).length&&E.each(e,function(e){a("warn","Keys will be lowercased and any duplicates overwritten. Please choose unique key names for:",n+"MetadataConflict",e)}),E.each(E.keys(i),function(e){var t=i[e];E.isObject(t)&&!E.isArray(t)?a("warn",e+" is an object and will be ignored.",n+"Metadata",t):E.isArray(t)&&E.any(t,E.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()},Gv=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:Jt.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=(E.each(e,function(e){var n=e.nativeType,i=[],t=e.propsToCheck||Object.getOwnPropertyNames(n);E.each(t,function(e){try{e&&n[e]&&"function"==typeof n[e]&&(n[e].toString().includes("[native code]")||i.push(e))}catch(t){}}),i.length&&(e.nonNativeImplementations=i,r=!0)}),{hasNonNativeMethods:r,implementations:[]});return n||console.group("Native javascript method check:"),r?(n||console.warn("Pendo has detected that your application may be changing native javascript functionality. We suggest consulting an engineer or your CSM to better understand if these changes will negatively impact Pendo's ability to function properly"),E.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())},jv=function(e){var t=[];if(E.isNumber(window.frames.length)&&E.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:"),E.each(t,function(e){console.warn(e)}),console.groupEnd()}},Bv=function(e){var t,n=window.location.href,i=[];try{(t=$r())!==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),E.each(i,function(e){e.method?console[e.method](e.msg+"\n"+e.value):console.warn(e.msg+"\n"+e.value)}),console.groupEnd()};const zv=e=>{if(0<Iv.length){var t=[].concat(Iv);if(e)return t;console.group("Agent Error History"),E.each(t,(e,t)=>{console.log("Error History ",t,e)}),console.groupEnd()}},Hv=e=>{t=e;var t,n=E.map(zm,function(e){return e.validate&&!t&&e.validate(I,Wm),e.name});if(e)return n;console.group("Active Plugins"),E.each(n,e=>console.log(e)),console.groupEnd()};var Wv=function(e){var t={install:Uv(e),plugins:Hv(e),globals:jv(e),url:Bv(e),errors:zv(e)};if(e)return t.methods=Gv(e),t;h.validate(console)},qv={BuildingBlockGuides:D,BuildingBlockResourceCenter:P,BuildingBlockTemplates:Vd,BuildingBlockTooltips:Ic,BuildingBlockSvgs:Xd};function Vv(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=Dt(this.run,this.state.duration)},this.run=E.compose(E.bind(this.afterJobRun,this),E.bind(this.doJob,this),E.bind(this.shouldJobRun,this))}Vv.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},Vv.prototype.stop=function(){clearTimeout(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var Kv=xr.urlFor;function Jv(e,t,n){var i={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};if(E.isObject(e)&&(t=e.action,n=e.data,e=e.attr),!i[e])throw new Error("Invalid URL attribute type: "+e);if(!E.contains(i[e],t))throw new Error("Invalid transform ("+t+") for attribute ("+e+")");this.attr=e,this.action=t,this.data=n}function Yv(e){return e instanceof qn||e instanceof HTMLAnchorElement}Jv.prototype.applyToURL=function(e){return{AllowOnlyKeys:function(e,t,n){E.isFunction(n)&&(n=n(e[t],e));t=e.href;return new qn(Yr(t,null,n,!1))},ExcludeKeys:function(e,t,n){E.isFunction(n)&&(n=n(e[t],e));t=e.href;return new qn(Yr(t,null,n,!0))},AddTo:function(e,t,n){E.isFunction(n)&&(n=n(e[t],e));t=e.href;return new qn(Kv(t,n))},Clear:function(e,t){return e[t]="",e},Replace:function(e,t,n){return E.isFunction(n)&&(n=n(e[t],e)),"href"===t?new qn(n):(e[t]=n,e)},ForceSecure:function(e,t){return"protocol"===t?e.protocol="https":e.href=e.href.replace(/^(.*:\/\/\/)/,"https://"),e}}[this.action](e,this.attr,this.data)},Jv.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},Jv.fromJSON=function(e){return e instanceof Jv?e:new Jv(e.attr,e.action,e.data)};Zv=function(t,n,i,r){return[new Jv("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new Jv("href","ForceSecure")]},Mi={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:Xv=function(){var e=Pr(),t=A.isElectron()?Zv(A.electronAppName(),A.electronResourcesPath(),A.electronUserDirectory(),A.electronUserHomeDirectory()):[];return ny([].concat(t),e)}},Qv=new Vv(500,function(e){!iv()||nu(document)||tu()}),ey=function(e){if("string"==typeof e)return new qn(e);if(Yv(e))return e;throw new Error("Invalid type from custom URL source. Must be either an URL or a String of a valid url.")},ty=function(e){return e||window.location},ny=function(e,t){return E.reduce(e,function(e,t){return t.applyToURL(e)},t)};var Zv,Xv,Qv,ey,ty,ny,iy,e={state:Mi,actions:{init:function(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:function(t,e){E.each(e,function(e){t.commit("addTransform",Jv.fromJSON(e))})},addInternalTransforms:function(t,e){E.each(e,function(e){t.commit("addInternalTransform",Jv.fromJSON(e))})},removeInternalTransforms:function(t,e){E.each(e,function(e){t.commit("removeInternalTransform",Jv.fromJSON(e))})},startPolling:function(e){Qv.start()},stopPolling:function(e){e.state.currentSrcFn===Xv&&Qv.stop()}},mutations:{addTransform:function(e,t){e.transforms.push(t)},addInternalTransform:function(e,t){e.internalTransforms.push(t)},removeInternalTransform:function(e,t){t=E.indexOf(e.internalTransforms,t);0<=t&&e.internalTransforms.splice(t,1)},clearTransforms:function(e){e.transforms=[]},clearInternalTransforms:function(e){e.internalTransforms=[]},changeUrlSource:function(e,t){if(t){if("string"==typeof t)var n=new qn(t),n=E.partial(E.identity,n);else if(Yv(t))n=E.partial(E.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,Qv.start(!iv())}else e.currentSrcFn=Xv,Qv.stop()}},getters:{url:iy=function(e){try{var t=function(e){return n=e},n=E.reduce([e.currentSrcFn,ey,t,E.partial(ny,e.transforms),ey,t,E.partial(ny,e.internalTransforms),ey],function(e,t){return t(e)},null)}catch(i){C.critical(i),n=ty(n)}return n},href:function(e){return iy(e).href}}};function ry(e){var t;if("function"==typeof ry[e])return t=E.toArray(arguments).slice(1),ry[e].apply(ry,t)}E.extend(ry,{getHref:function(){return g.getters["location/href"]()},clearTransforms:function(){g.commit("location/clearTransforms"),tu()},addTransforms:function(e){g.dispatch("location/addTransforms",e),tu()},setUrl:function(e){g.commit("location/changeUrlSource",e)},useBrowserUrl:function(){g.commit("location/changeUrlSource"),tu()}});function oy(){return h.get("guideSeenTimeoutLength")||1e4}ay=[];var ay,sy={name:"StepTimeoutMonitor",initialize:function(){this._beforeGuideShow=E.bind(sy.beforeGuideShow,sy),this._stop=E.bind(sy.stop,sy),m.beforeGuideShow.on(this._beforeGuideShow),m.guideSeen.on(this._stop),m.guideNotSeen.on(this._stop)},teardown:function(){sy.stop(),m.beforeGuideShow.off(this._beforeGuideShow),m.guideSeen.off(this._stop),m.guideNotSeen.off(this._stop)},beforeGuideShow:function(e){var t=e.data[0],e=e.data[1],n=t.guide;h.get("enableGuideTimeout")&&(e=-1<E.indexOf(["dom","launcher","badge","api"],e),"active"===t.seenState||t.hasBeenControlled()||t.isTimedOut()||(n=n&&n.steps)&&(0!==E.indexOf(n,t)||e)&&sy.start(t))},start:function(e){var u,t,n=ay[0];n&&n===e.id||(n&&n!==e.id&&(n=ay[1],E.isFunction(n))&&n(),e.shouldStartTimer()&&(u=oy(),n=E.partial(function(e,t){var n,i,r,o,a,s=N(t);s&&(n=s.findStepById(e))&&!s.isShown()&&(a=n.canShowOnPage(zg())?Sg(n)?"other":"element":"page",i=t,r=e,o=b(),a=a,s=s.language,i=Dg({type:"guideTimeout",guideId:i,stepId:r,visitorId:o,seen_reason:a,language:s,guideSeenTimeoutLength:u}),jg(i),m.guideTimeout.trigger(i),C.info("Guide "+t+" timed out showing Step "+e),n.timeout()),sy.stop()},e.id,e.guide.id),t=Dt(n,u),ay=[e.id,n,t]))},stop:function(){var e=ay[2];e&&clearTimeout(e),ay=[]},getGuideSeenTimeoutLength:oy};function uy(){console.warn("This functionality is not supported by your subscription.")}function s(e){return So?e:uy}var dy="is going away",cy="is gone",ly=E.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return C.info(e),e});function py(e,t,n){return function(){return ly("pendo."+t,n),(e||E.noop).apply(null,arguments)}}function hy(e){return e&&1===e.length?e[0]:E.any(e,ft)?y.all(e).then(function(e){return E.any(e)}):void 0}function fy(){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||{},E.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),$d(e,this)},this),this.isActivatedByEvent=function(e){return!!(this.hasLaunchMethod("dom")&&this.attributes&&this.attributes.activation&&E.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=E.first(this.steps);return e&&"whatsnew"===e.type},this.isAnnouncement=function(){return E.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")&&E.any(this.steps,function(e){return e.shouldAutoDisplay()})},this.autoDisplay=function(){if(this.shouldAutoDisplay())return hy(E.map(this.steps,function(e){return e.autoDisplay()}))},this.isRendered=function(){return E.any(this.steps,function(e){return e.isRendered()})},this.isShown=function(){return E.any(this.steps,function(e){return e.isShown()})},this.canShowOnDevice=function(){if(!ed()){var e=td(),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()&&E.any(this.steps,function(e){return e.canShow()})},this.launch=function(e){var t;return this.hasGuideBeenControlled()||(t=this.show(e)),this.isShown()?E.each(this.steps,function(e){e.seenState="active"}):!this.isShown()&&this.isControlGroup()&&E.each(this.steps,function(e){e.seenState="notSeen"}),t},this.show=function(t){return hy(E.map(this.steps,function(e){return e.show(t)}))},this.checkForHiddenGroupSteps=function(){},this.hide=function(t){E.each(this.steps,function(e){e.hide(t)})},this.hasBeenSeen=function(){return E.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=E.get(this,"attributes.resourceCenter"),this.isControlGroup()&&!e?this.hasGuideBeenControlled()||this.steps[0].onControlGuide("control"):(e=E.first(this.steps))&&E.isFunction(e.canShowOnPage)&&e.canShowOnPage(zg())&&hh(this)):mh(this)},this.findStepById=function(t){return E.find(this.steps,function(e){return e.id===t})},this.isPoweredByEnabled=function(){return!!E.find(this.steps,function(e){return e.isPoweredByEnabled()})},this.searchFor=function(t){var e,n,i=null;return st(this.name,t,!0)?i="name":(e=!(n=[]),(e=0<(n=this.attributes&&this.attributes.launcher&&this.attributes.launcher.keywords?this.attributes.launcher.keywords:n).length?E.find(n,function(e){return st(e.text,t,!0)}):e)?i="tag":(n=E.map(this.steps,function(e){return e.searchFor(t)}),0<E.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&&!E.isFunction(t.steps[0].fetchContent)||(e=t.steps[0],!t.hasLaunchMethod("launcher")&&!t.isWhatsNew())||!e.canShowOnPage(zg())||!t.canShowOnDevice()||!Sg(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(zg())||!this.canShowOnDevice()||!Sg(e)||this.outsideTimebox())};var e,n="PENDO_HELPER_STEP";return this.getPositionOfStep=function(e){var t=E.reject(this.steps,function(e){return st(e.content,n)});return E.indexOf(t,e)+1},this.getTotalSteps=function(){return E.reject(this.steps,function(e){return st(e.content,n)}).length},this.getSeenSteps=function(){return E.size(E.filter(this.steps,function(e){return e.hasBeenSeen()}))},this.isComplete=function(){var t=["advanced","dismissed"];return E.all(this.steps,function(e){return E.contains(t,e.seenState)})},this.isInProgress=function(){var t=["active","advanced","dismissed"];return!this.isComplete()&&E.any(this.steps,function(e){return E.contains(t,e.seenState)})},this.isNotStarted=function(){return!this.isInProgress()&&!this.isComplete()},this.fetchContent=function(){return y.all(E.map(this.steps,function(e){if(E.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 E.any(this.steps,function(e){return e.isSnoozed()})},this.hasGuideBeenControlled=function(){return E.any(this.steps,function(e){return e.hasBeenControlled()})},this.isControlGroup=function(){return this.control},this.shouldShowSnoozedGuide=function(){var t=!1;return!this.outsideTimebox()&&E.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,E.forEach(this.steps,function(e){t=Math.max(t,e.lastSeenAt||0)}),!t))&&v()-t>=this.redisplay.interval},this.isExpired=function(){return!!this.expiresAfter&&v()>this.expiresAfter},this.isBeforeStartTime=()=>!!this.showsAfter&&v()<this.showsAfter,this.outsideTimebox=()=>this.isExpired()||this.isBeforeStartTime(),this.calculateDismissCountFromSteps=function(){var t=0;return E.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 gy(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){E.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var my=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function vy(){var r,o=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(E.each(this.steps,function(e){e.after("render",function(){E.each(e.elements,function(e){k(e).addClass("_pendo-guide-walkthrough_")})})}),r=null,this.sections=E.reduce(this.steps,function(e,t){var n,i;return i=t,!(n=r)||(n=E.last(n)).attributes.isRequired!=i.attributes.isRequired&&n.attributes.isRequired?(e.push(r),r=[t]):r.push(t),e},[]),this.sections=E.compact(this.sections.concat([r])),this.findSectionForStep=function(t){return E.find(this.sections,function(e){return E.contains(e,t)})},this.getSubSection=function(e,t){t=E.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=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&&!my(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()||E.all(this.steps,function(e){return e.shouldAutoDisplay()}))},this.autoDisplay=function(){var e,t,n;if(this.shouldAutoDisplay())return e=this.shouldRepeatGuide(),t=E.first(this.steps),n=this.nextStep(Rp())||t,this.shouldShowSnoozedGuide()||e?n.show(e?"repeatGuide":"auto"):t.autoDisplay()},this.launch=function(e){return E.first(this.steps).show(e)},this.show=function(e){var t=Rp(),n=E.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=E.last(this.steps);return!!e&&E.contains(["advanced","dismissed"],e.seenState)},this.activeStep=function(){var e=[].concat(this.steps).reverse();return E.findWhere(e,{seenState:"active"})}),this}function yy(){var a=this;function t(r){var o=[];return function(e){try{return e.apply(a,E.toArray(arguments).slice(1))}catch(i){var t,n="ERROR in guide "+r+' (ID="'+a.id+'")';throw o.push(v()),5<=o.length&&(t=0<(t=E.last(o)-E.first(o))?(o.length-1)/(t/6e4):Infinity,yy.MAX_ERRORS_PER_MINUTE<=t&&(n="Exceeded error rate limit, dropping guide.\n"+n,Hu.addGuide(a),m.trigger("renderFail",a)),o.shift()),C.critical(n,{error:i}),i}}}return E.each(["canShow","placeBadge","show"],function(e){a[e]=E.wrap(a[e],t(e))}),a}function by(){return E.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=E.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=E.wrap(this.shouldBeAddedToResourceCenter,function(e){return g.getters["frames/hasFrames"]()?!(!g.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!g.getters["frames/isGuideInDifferentFrame"]()(this)&&g.getters["frames/shouldBeAddedToResourceCenter"]()(this):e.apply(this,arguments)})),this}function wy(e){var t=this;return"whatsnew"===t.type||E.isFunction(e.isAnnouncement)&&e.isAnnouncement()||(t.isShown=E.wrap(t.isShown,function(e){return e.apply(this,arguments)||g.getters["frames/isShownInAnotherFrame"]()(t)})),t}function Sy(o){var a,t,i,s,r,n,u,d=this;return d.pollIds&&d.pollIds.length&&(a="_pendo-poll-selected_",t=E.indexBy(o.polls,"id"),i=E.map(d.pollIds,function(e){return t[e]}),r=function(e,t){if(e&&t!==undefined)return e.numericResponses?parseInt(t,10):t},n=function(){var e=o.id,t=d.id,n=v();Lg(e,t,b(),d.seenReason,o.language),tg(e,t,"advanced",n),Ap({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=E.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(E.compact(t)),u()}):d.attachEvent(n,"click",function(e){var t,e=k(Cr(e)).closest("._pendo-poll-question_ :button,._pendo-poll-question_ :radio");e.length&&(t=i[0],e=r(t,e.attr("data-pendo-poll-value")||e.attr("value")),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:""})),E.isFunction(d.resize)&&d.resize()}))}),d.after("show",function(){s=(new Date).getTime()}),d.response=function(e,r){e&&e.length&&(Im(),E.each(e,function(e,t){var n=function(t,e){if(e&&e.polls&&e.polls.length)return E.find(e.polls,function(e){return e.id===t})}(e.pollId,o),i=Dg("pollResponse",d.guideId,d.id,b(),undefined,o.language);E.extend(i.props,{poll_id:e.pollId,poll_response:e.value,duration:(new Date).getTime()-s},r),n&&n.attributes&&n.attributes.type&&E.extend(i.props,{poll_type:n.attributes.type}),mm.push(i)}),mm.flush())}),d}yy.MAX_ERRORS_PER_MINUTE=30;var Iy={show:function(t,n){if(ed()&&E.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return _y(t,n);if(!g.getters["frames/hasFrames"]()||g.getters["frames/isGuideInThisFrame"]()(e)){e=function(e,t){if(e.getGuide().isModule){e=P.getResourceCenter();if(e)return _y(e.steps[0],t)}}(t,n);if(ft(e))return e.then(function(){return _y(t,n)}).then(function(e){return!!e||Ey(t,n)});e=_y(t,n);if(ft(e))return e.then(function(e){return!!e||Ey(t,n)});if(e)return!0}return Ey(t,n)},showLocal:_y};function _y(e,t){return Gd.hasContent(e)&&Nd.valid(e)?(e._show(t),e.isShown()):!(Gd.hasContent(e)&&Nd.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(zg()))&&(e.lock(),Gd.fetchContent(e).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&Nd.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(e.unlock(),e._show(t),e.isShown())}))}function Ey(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 Cy(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 jm),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=E.indexOf(t,this),i=Il();try{var r=this.attributes.variables||{},o={step:{id:this.id,isFirst:0===n,isLast:n===t.length-1,index:n,number:n+1},guide:{id:e.id,name:e.name,publishedAt:e.publishedAt,showsAfter:e.showsAfter,percentComplete:t.length?Math.round((n+1)/t.length*100):0,stepCount:t.length},metadata:nt(i),template:r};return this.template||(this.template=E.template(this.content||"")),Fd(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!E.get(this,"guide.attributes.isAnnouncement")&&!!u.canShowOnDevice()&&!this.isShown()&&!E.get(this,"stepIneligibleForApp")&&this.canShowOnPage(zg())&&Sg(this)},this.canShowOnPage=function(e){e=Wg(this.regexUrlRule,e);return sh()&&m.stepEligibility.trigger({stepId:this.id,guideId:this.guideId,eligible:e,reason:"page_match"}),e},this.shouldAutoDisplay=function(){return this.shouldRepeat()||!this.hasBeenControlled()&&!this.isSnoozed()&&!E.contains(["dismissed","advanced"],this.seenState)},this.autoDisplay=function(){var e;if(this.shouldAutoDisplay())return e=this.shouldRepeat()?"repeatGuide":"auto",this.show(e)},this._preRenderHealthCheck=function(){var e,t;return!(!(I.designer||ed()||xh())&&(e=zg(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!Wg(this.regexUrlRule,e)?(Hu.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)?(Hu.addGuide(u),t.error=new Error('missing regexUrlRule"'),C.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(Hu.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=E.find(ju(),function(e){return e.id===u.moduleIdToReplaceHomeViewWith}),n=E.get(t,"attributes.resourceCenter.integrationProvider"),P.renderNativeIntegration(n,t)):u.continueToNativeModule?P.handleNativeIntegrationContinuation(u):(E.get(u,"attributes.resourceCenter")&&Yp(P.getResourceCenter(),Zp),u.isModule?D.renderResourceCenterModule(u,!1):(n=D.renderGuideFromJSON(e.domJson,e),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=I.TOOLTIP_ARROW_SIZE,r="_pendo-group-id-"+u.id+"_",r=k(document.createElement("div")).attr("id",Cg(e)).addClass(Kf+" "+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&&E.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"]}),E.each(this.handlers,function(e){Lu(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,E.has(this.attributes,"imgCount")&&(this.attributes.imgCount=0),this.hiddenElements&&(E.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),pl(this.id)},this.show=function(e){var t;if(!E.contains(["auto","continue"],e)||!g.getters["healthCheck/isRedisplay"]()(this))return(t=Iy.show(this,e))&&t["catch"]&&t["catch"](E.noop),t;g.dispatch("healthCheck/fixSeenStateAndLogError",{step:this,reason:e})},this.redraw=function(){var e,t,n,i,r,o=this;o.guideElement&&!I.designer&&(t=(e=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"===E.get(u.activeModule,"attributes.resourceCenter.moduleId"),m.beforeUpdate.trigger(o),t||r||(D.recalculateGuideWidth(n,o.guideElement),D.adjustGuideContentWidth(n,o.guideElement)),e?(P.adjustResourceCenterWidth(i),r&&u.activeModule.guidesInModule?E.forEach(u.activeModule.guidesInModule,function(e){var t;!E.isUndefined(e.steps[0].attributes.imgCount)&&0!==E.get(e.steps[0],"attributes.imgCount")||(t=e.steps[0].id,t=k(i).find("#pendo-g-"+t)[0]?t:e.id,D.adjustGuideContentWidth("pendo-g-"+t,o.guideElement),D.flexAllThings("pendo-g-"+t,o))}):D.flexAllThings("pendo-resource-center-container")):D.flexAllThings(n,o),t||D.recalculateGuideHeight(n,o.guideElement),m.updated.trigger(o))},this._show=function(e){m.beforeGuideShow.trigger(this,e),this.canShow()&&(!ed()&&u.control?this.hasBeenControlled()||this.onControlGuide("control"):m.beforeMount.trigger(this).cancel||(this.render(),this.isShown()&&this.onShown(e)))},this.shouldStartTimer=function(){return u.canShowOnDevice()&&!u.attributes.isAnnouncement&&!bg(this)},this.getStepPollTypes=function(n,e){var i;if(e.pollIds&&e.pollIds.length)return i=[],E.forEach(e.pollIds,function(t){var e=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,Zf(v()),t=this.getStepPollTypes(u,this),this.hasBeenControlled())||(Rg(this.guideId,this.id,b(),e,u.language,t),E.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",Zf(v()),t={last_updated_at:i.lastUpdatedAt},(n=this.getStepPollTypes(u,i))&&(t.step_poll_types=n),e&&Ng(i.guideId,i.id,b(),r,u.language,t),g.dispatch("guideState/updateLastGuideStepSeen",{guideId:u.id,guideStepId:i.id,time:Yf,state:i.seenState,seenReason:r,visitorId:b()}),E.each(u.steps,function(e){var t,n,i;"snoozed"===e.seenState&&(e.snoozeEndTime=0,t=u.id,e=e.id,n=b(),i=u.language,t=Dg({type:"guideSnoozeCanceled",guideId:t,stepId:e,visitorId:n,seen_reason:r,language:i}),jg(t,null,!0),m.guideSnoozeCancelled.trigger(t))}),zd.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||(I.ignoreResize=!0,Dt(function(){I.ignoreResize=!1},1e3))})},this.hide=function(e){var t=this;t.unlock(),m.beforeUnmount.trigger(t),t.teardown(),E.each(t.elements,function(e){Wo(e)}),m.unmounted.trigger(t),t.attributes&&e&&e.stayHidden&&(t.attributes.stayHidden=e.stayHidden),t.elements.length=0,t.element=null,t.guideElement=null,t.overrideElement&&(k.removeClass(t.overrideElement,"triggered"),t.overrideElement.checkAriaExpanded)&&t.overrideElement.checkAriaExpanded(),g.dispatch("frames/guideStepHiddenInFrame",{guideId:u.id,stepId:t.id})},this.advance=function(){"advanced"===this.seenState&&!this.isRendered()||mg(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||hg(this)},this.isPoweredByEnabled=function(){return!0!==this.hideCredits},this.isSnoozed=function(){var e="snoozed"===this.seenState,t=!this.snoozeEndTime||(new Date).getTime()>this.snoozeEndTime;return e&&!t},this.shouldRepeat=function(){return!!this.lastSeenAt&&u.redisplay&&!u.outsideTimebox()&&!this.isSnoozed()&&v()-this.lastSeenAt>=u.redisplay.interval&&!u.hasReachedMaxDismissals()},this.hasBeenControlled=function(){return u.isControlGroup()&&"notSeen"===this.seenState},this.attachEvent=function(e,t,n){var i={element:e,type:t,fn:n};l(e,t,n,!0),this.handlers.push(i)},this.searchFor=function(e){return!(e.length<3)&&st(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&Ic.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&fc(this)},this.getType=function(){return this.domJson?E.get(this,"attributes.calculatedType"):this.type},this}function Ty(){return this.after("render",function(){var e,t;$&&$.contentWindow&&$.style&&(e=E.first(k('#pendo-resource-center-container, [id^="pendo-g-"]')))&&(e=O(e))&&(t={mutation:"preview/setIsPreviewBarTop",payload:{isPreviewBarTop:!1}},"0px"===e.top?($.style.top="auto",$.style.bottom="0px",$.contentWindow.postMessage(t,location.origin)):"0px"!==e.bottom&&$.style.top||($.style.top="0px",$.style.bottom="auto",t.payload.isPreviewBarTop=!0,$.contentWindow.postMessage(t,location.origin)))}),this}Cy.isGuideStep=function(e){return!!e&&E.isFunction(e.render)};const xy={state:{errorCount:0,errors:{}},actions:{write:function(e,t){var n=t.error;if(n&&!t.logged){var i=e.getters.hasLogged()(t);if(e.dispatch("update",t),!i){try{t.logged=!0}catch(r){}e=`[${t}]`;t.level===gt.Critical?(i=window.pendo_options||{},Nv(e),!1!==I.logStackTraces&&!1!==i.logStackTraces&&n.stack?Co(e+`
9
- `+n.stack):Eo(e)):t.level===gt.Error?Nv(e):t.level===gt.Warn&&(i=[e],kv("warn"))&&console.warn.apply(console,i)}}},update:function(e,t){t&&(e.getters.hasLogged()(t)||e.commit("addError",t),e.commit("incrementError",t))}},mutations:{addError:function(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:function(e,t){e.errors[t.hashCode()].count++,e.errorCount++}},getters:{hasLogged:function(t){return function(e){return!!t.errors[e.hashCode()]}}}},ky=f.getSession(),Ay="pendo_cd";class Oy{constructor(){this.name="CloneDetection"}initialize(){if(E.isFunction(window.BroadcastChannel))return f.registry.addSession(Ay),this.tabId=sn.getTabId(),this.id=at(16),this.channel=new BroadcastChannel("pendo-clone-detection-"+I.apiKey),this.channel.addEventListener("message",E.bind(this.onmessage,this)),this.detectClonedSession(this.id),E.bind(this.teardown,this)}teardown(){this.stopCloneDetectionTimer(),this.channel.removeEventListener("message",this.onmessage),this.channel.close(),this.channel=null}onmessage(e){var t=E.get(e,"data.type"),n=E.get(e,"data.tabId"),i=E.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=ky.getItem(Ay)||"";-1===t.indexOf(e)&&(t+="-"+e),ky.setItem(Ay,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()}isClonedSession(e){return this.startCloneDetectionTimer(),-1===(ky.getItem(Ay)||"").indexOf(e)}clearCloneDetectionValue(){ky.removeItem(Ay),this.cloneDetectionTimer=null}startCloneDetectionTimer(){this.stopCloneDetectionTimer(),this.cloneDetectionTimer=Dt(E.bind(this.clearCloneDetectionValue,this),1e4)}stopCloneDetectionTimer(){this.cloneDetectionTimer&&(clearTimeout(this.cloneDetectionTimer),this.cloneDetectionTimer=null)}clearClonedStorage(){ky.clearPendo(),sn.setParentTabId(this.tabId),this.tabId=sn.newTabId(),m.trigger("tabIdChanged:self"),g.dispatch("frames/setTabId",this.tabId)}sendMessage(e,t){this.channel.postMessage(Object.assign({type:e},t))}}let Ry=new Oy;function Ny(e){g.dispatch("frames/setReady",{isReady:!0})}var My=["unknown","hidden","visible"];function Ly(e){return"visible"===e.visibility||"unknown"===e.visibility}Py={};var Py,t={actions:{init:function(e){var t,n,i=e.state;i.initialized||(f.registry.addSession(Xt),f.registry.addSession(Qt),t=sn.addTracerIds({}),n=we(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),m.ready.on(Ny),m.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&F.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),Ry.initialize(),e.commit("setInitialized",!0))},changeGuideList:function(e,t){e=e.state,t=Fy(t);F.postMessage({action:"frames/receiveGuideList",frameId:e.frameId,guides:t,autoOrdering:I.autoOrdering||[]})},receiveGuideList:function(e,t){e.commit("setGuideList",t),t.frameId===e.state.frameId&&e.commit("setGuidesLoaded"),Dy(e.state)},join:function(e){var t,n,i,r;e.state.disabled||(Hp(),t=e.state,n=window.top==window,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:Fy(Ku())}),(r=[].concat(h.get("leaderKey"))).length||t.agentInstallType!==ye||(r=[I.apiKey]),e.dispatch("receiveFrame",{frame:E.extend({agentInstallType:t.agentInstallType,id:t.frameId,joinedAt:v(),isTop:n,visibility:n?"visible":"unknown",apiKey:I.apiKey,leaderKey:r},i)}))},receiveFrame:function(e,t){var n,i=e.state;if(I.designerv2.launched&&(n=Object.assign({},Yh.hostConfig,{selectionOnly:!0}),F.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:E.toArray(E.get(t,"frame.guides",[]))}),t.frame.isTop){for(var r=e.getters.leaderKeyPreference(),o=E.filter(i.frames,e=>e.isTop);r.length;){var a=r.shift(),s=E.filter(o,e=>e.apiKey===a);if(s.length){o=s;break}}e.commit("setTopId",o[0].id)}e.commit("setLeadershipMode",t.frame.agentInstallType),t[bh]&&e.dispatch("receiveStartPreview",t),F.postMessage({action:"frames/receiveFrame",frame:i.frames[i.frameId],"pendo-preview":e.rootState.preview.preview}),e.dispatch("waitThenElectLeader")}},leave:function(t){var e=t.state;F.postMessage({action:"frames/removeFrame",frameId:e.frameId}),E.each(e.frames,function(e){t.commit("removeFrame",e.id)}),F.close()},removeFrame:function(e,n){e.getters.hasFrame()(n.frameId)&&(e.commit("removeFrame",n.frameId),E.each(Py,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete Py[t])}),e.dispatch("electLeader"))},waitThenElectLeader:E.debounce(function(e){e.dispatch("electLeader")},50),electLeader:function(e){var t=e.state,n=t.frames,i=e.getters.leaderKeyPreference();if(i.length)for(;i.length;){var r=i.shift(),o=E.filter(t.frames,e=>e.apiKey===r);if(o.length){n=o;break}}var a=E.find(n,e=>e.isTop);a?e.dispatch("followLeader",{leaderId:a.id}):(a=E.min(n,"joinedAt"),e.dispatch("followLeader",{leaderId:a.id})),Dy(e.state),e.getters.isLeader()&&m.childFrameJoined.trigger()},followLeader:function(e,t){var n=e.state,i=n.leaderId,r=t.leaderId;e.commit("setLeaderId",t.leaderId),i!==r&&m.leaderChanged.trigger({frameId:n.frameId,oldLeaderId:i,newLeaderId:r})},showGuideStep:function(t,n){var i=E.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",E.extend({frameId:e.id},n)).then(function(e){return e.error?y.reject(e.error):e.isShown?e:r()}):y.resolve({isShown:!1})}()},requestShowGuideStepInFrame:function(e,t){var n=t.frameId+"/"+at(32),i=y.defer();return Py[n]=i,F.postMessage(E.extend({action:"frames/showGuideStepInFrame",requestId:n},t)),i.promise},showGuideStepInFrame:function(t,n){var e;function i(e){t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:e})}t.state.frameId===n.frameId&&((e=(e=N(n.guideId))&&e.findStepById(n.stepId))?ft(e=Iy.showLocal(e,n.reason))?e.then(i)["catch"](E.noop):i(e):t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:!1}))},guideStepShownInFrame:function(e,t){e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:t.isShown}),F.postMessage(E.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame:function(e,t){var n=Py[t.requestId];n&&(n.resolve(t),delete Py[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:function(e,t){t=E.isArray(t)?t:[],F.postMessage({action:"frames/receiveHideGuides",frameId:e.state.frameId,guideIds:t}),e.commit("hideGuides")},receiveHideGuides:function(e,t){e.state.frameId!==t.frameId&&(t.guideIds.length?E.each(E.compact(E.map(t.guideIds,N)),function(e){e.hide()}):ig(),e.commit("hideGuides"))},guideStepHiddenInFrame:function(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}),F.postMessage(E.extend({action:"frames/receiveGuideStepHiddenInFrame",frameId:e.state.frameId},t)),n&&e.dispatch("fixDoubleDisplay",t)},receiveGuideStepHiddenInFrame:function(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:function(n,i){E.each(n.state.frames,function(e,t){t!==n.state.frameId&&n.getters.isShownInFrame()(t,{id:i.stepId})&&F.postMessage(E.extend({action:"frames/receiveHideGuideInFrame",frameId:t,guideId:i.guideId,stepId:i.stepId},i))})},receiveHideGuideInFrame:function(e,t){e.state.frameId===t.frameId&&(t=(e=N(t.guideId))&&e.findStepById(t.stepId))&&t.hide()},changeLastGuideStepSeen:function(e,t){F.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:function(e,t){var n;t.frameId!==e.state.frameId&&(n=e.state.frames[t.frameId],(n=E.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:function(e,t){F.postMessage(E.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState:function(e,t){t.frameId!==e.state.frameId&&E.each(Pg,function(e){t[e]&&Fg(t[e],e)})},startPreview:function(e){F.postMessage({action:"frames/receiveStartPreview","pendo-preview":e.rootState.preview.preview})},restartPreview:function(e){F.postMessage({action:"frames/receiveRestartPreview","pendo-preview":e.rootState.preview.preview})},stopPreview:function(e,t){F.postMessage(E.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview:function(e,t){e.dispatch("preview/start",t[bh],{root:!0}),Ih(window),Fm()},receiveRestartPreview:function(e){var t=Ch(R,Rp());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview:function(e,t){Lh({preventWindowClose:!!t.preventWindowClose})},checkFrameVisibility:function(e,t){if(!e.getters.isTop()&&!e.state.disableFrameVisibilityCheck)try{var n="unknown",i=(t=null==t?window:t).frameElement;i?(n=ca(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility:function(e,t){var n;!E.find(My,function(e){return e===t.visibility})||(n=t.visibility,e.getters.frameVisibility()===n)||(e.commit("setFrameVisibility",{frameId:e.state.frameId,visibility:n}),F.postMessage({action:"frames/receiveFrameVisibility",frameId:e.state.frameId,visibility:n}))},receiveFrameVisibility:function(e,t){e.commit("setFrameVisibility",t)},addSelectionModeToFrames:function(e,t){t=t.options;Yh.launchInAppDesigner(t)},syncOptions:function(e,t){t.options&&F.postMessage({action:"frames/receiveOptions",frameId:e.state.frameId,options:t.options})},receiveOptions:function(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&t.options&&vl(t.options)},syncIdentity:function(e,t){var n;(t.visitorId||t.accountId)&&({visitorId:t,accountId:n}=t,F.postMessage({action:"frames/receiveIdentity",frameId:e.state.frameId,visitorId:t,accountId:n}))},receiveIdentity:function(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&(t.visitorId||t.accountId)&&$n(t.visitorId,t.accountId)},setReady:function(e,t){e.commit("setReady",t.isReady)},receiveGuideSeen:function(e,t){t.frameId!==e.state.frameId&&m.guideSeen.trigger(t.guideSeen)},checkGuideEligibility:function(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=ad(t))&&((i=E.first(yr(i)))?ca(i)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),E.isFunction(n.canShowOnPage)&&!n.canShowOnPage(zg())&&(a.PAGE="mismatch"),n.elementPathRule&&((i=E.first(yr(n.elementPathRule)))?ca(i)?n.elementContainsRulesList&&!_g(i,n.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),n.triggerElementPathRule&&((i=E.first(yr(n.triggerElementPathRule)))?ca(i)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),E.get(t,"attributes.embedConfig")&&(n=E.get(t,"attributes.embedConfig.selector"),(i=E.first(yr(n)))?ca(i)||(a.EMBED_CONTAINER="notVisible"):a.EMBED_CONTAINER="notFound")):a.GUIDE="notFound",o&&r&&F.postMessage({errors:a,action:"frameEligibilityResponse",targetFrame:r,resolveId:o}),a},setTabId:function(e,t){e.commit("setTabId",t)}},mutations:{addFrame:function(e,t){var n=t.id;e.frames[n]=E.extend({},e.frames[n],t)},removeFrame:function(e,t){delete e.frames[t]},setGuideList:function(e,t){var n=t.frameId;e.frames[n]=E.extend({},e.frames[n],{guides:E.indexBy(Fy(t.guides),"id"),autoOrdering:t.autoOrdering})},setStepShown:function(e,t){var n=t.frameId,n=e.frames[n]=E.extend({},e.frames[n]);n.shown=E.extend({},n.shown),n.shown[t.stepId]=t.shown},setInitialized:function(e,t){e.initialized=t},setLeaderId:function(e,t){e.leaderId=t},setFrameId:function(e,t){e.frameId=t},setTabId:function(e,t){e.tabId=t},setTopId:function(e,t){e.topId=t},setAgentInstallType:function(e,t){e.agentInstallType=t},setLeadershipMode:function(e,t){e.leadershipMode!==ye&&(e.leadershipMode=t)},setFrameVisibility:function(e,t){var n=t.frameId;e.frames[n]=E.extend({},e.frames[n],{visibility:t.visibility})},setReady:function(e,t){e.isReady=t},disableFrameVisibilityCheck:function(e){e.disableFrameVisibilityCheck=!0},hideGuides:function(e){E.each(e.frames,function(n){E.each(n.shown,function(e,t){n.shown[t]=!1})})},setChannelType:function(e,t){e.channelType=t},setGuidesLoaded:function(e){e.guidesLoaded=!0},setConnectFailed:function(e){e.connectFailed=!0},updateLastGuideStepSeen:function(e,t){t&&E.each(e.frames,function(e){e.guides&&(e=e.guides[t.guideId])&&(e=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:function(e){return e.frames},autoOrdering:function(e){return E.reduce(e.frames,(e,t)=>(e[t.apiKey]=t.autoOrdering,e),{})},leaderExists:function(e){return!!e.leaderId},isLeader:function(e){return e.leaderId===e.frameId},leaderKey:function(e,t){if(t.leaderExists()){t=e.frames[e.leaderId];if(t)return t.apiKey}},isFollower:function(e){return!!e.leaderId&&e.leaderId!==e.frameId},isTop:function(e,t){t=t.window();return e.topId===e.frameId||t==t.top},frameVisibility:function(e){return(e.frames?e.frames[e.frameId]:{}).visibility||"unknown"},isGuideInThisFrame:function(n){return function(e){var t=n.frames&&n.frames[n.frameId];return!!(t&&t.guides||{})[e.id]}},isGuideInDifferentFrame:function(i){return function(n){return E.any(i.frames,function(e,t){return t!==i.frameId&&e.guides&&e.guides[n.id]})}},isReady:function(e){return e.isReady},isShownInAnotherFrame:function(i){return function(n){return E.any(i.frames,function(e,t){return t!==i.frameId&&e.shown&&e.shown[n.id]})}},isShownInFrame:function(n){return function(e,t){e=n.frames&&n.frames[e],e=e&&e.shown||{};return!(!e||!e[t.id])}},hasFrame:function(t){return function(e){return t.frames&&t.frames[e]}},hasFrames:function(e){return 1<E.size(e.frames)},shouldBeAddedToLauncher:function(i,e){return function(n){return e.canShowRCBadge()&&E.any(i.frames,function(e,t){return t!==i.frameId&&!!Ly(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToLauncher})}},shouldBeAddedToResourceCenter:function(i,e){return function(n){return e.canShowRCBadge()&&E.any(i.frames,function(e,t){return t!==i.frameId&&e.apiKey===I.apiKey&&!!Ly(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToResourceCenter})}},isBroadcastChannel:function(e){return"BroadcastChannel"===e.channelType},channelType:function(e){return e.channelType},canShowRCBadge:function(e,t){var n,i;return t.leaderKey()!==I.apiKey?(n=E.filter(e.frames,function(e){return e.apiKey===I.apiKey}),(i=E.find(n,function(e){return e.isTop}))?e.frameId===i.id:(i=E.min(n,function(e){return e.joinedAt}),e.frameId===i.id)):E.any(e.frames,function(e){return e.isTop})?t.isTop():t.isLeader()},leaderKeyPreference:function(e){e=E.filter(e.frames,e=>e.leaderKey&&e.leaderKey.length);return 1===E.unique(E.map(e,e=>e.leaderKey.join(","))).length?[].concat(e[0].leaderKey):[]},getMyApiKey:function(e,t){return t.getMyFrame().apiKey},getMyFrame:function(e){return e.frames[e.frameId]},window:function(){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:Py};function $y(e){var t=E.pick(e,"id","name","launchMethod","isMultiStep","steps","control","lastUpdatedAt","language","state","polls","redisplay");return t.attributes=E.pick(e.attributes,"overrideAutoThrottling","priority","isAnnouncement","resourceCenter","device","sharedServiceVersion","embedConfig"),t._shouldBeAddedToLauncher=E.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e._shouldBeAddedToLauncher||!1,t._shouldBeAddedToResourceCenter=E.isFunction(e.shouldBeAddedToResourceCenter)?e.shouldBeAddedToResourceCenter():e._shouldBeAddedToResourceCenter||!1,t.steps=E.map(e.steps,function(e){return E.pick(e,"id","guideId","type","seenReason","seenState","lastSeenAt","lastUpdatedAt","dismissCount","snoozeEndTime","regexUrlRule","pageId","elementPathRule","triggerElementPathRule","elementContainsRulesList")}),t}function Fy(e){return E.map(e,$y)}function Dy(t){var n=E.indexBy(E.filter(Ku(),function(e){return!e.isFrameProxy}),"id"),e=E.chain(t.frames).filter(function(e){return e.id!==t.frameId}).map(function(e){return E.toArray(E.get(e,"guides",[]))}).flatten(!0).unique("id").filter(function(e){return!n[e.id]}).map(function(e){return E.extend(JSON.parse(JSON.stringify(e)),{isFrameProxy:!0})}).map(Pd).value(),e=E.toArray(n).concat(e).filter(nm);E.sortBy(e,im),wm(e),zu(e),t.guidesLoaded&&0===E.size(E.get(t,"frames."+t.frameId+".guides",[]))&&Wp()}function Uy(e,t){new(dt("MutationObserver"))(t).observe(e,{subtree:!0,attributes:!0,childList:!0,characterData:!0})}const Gy={startObserver:function(r){{var t=r;const n=Element.prototype.attachShadow;Element.prototype.attachShadow=function(e){e=n.call(this,e);return this.shadowRoot&&Uy(this.shadowRoot,t),e},Element.prototype.attachShadow.toString=function(){return n.toString()}}if(E.isFunction(document.createNodeIterator)){let t=0,n=[Ko()],i;!function o(e){do{if(!(e=e||document.createNodeIterator(n.pop(),NodeFilter.SHOW_ELEMENT))||!e.nextNode)break;for(;(i=e.nextNode())&&(t++,i&&i.shadowRoot&&(Uy(i.shadowRoot,r),n.push(i.shadowRoot),Gy.foundShadowRoots=!0),t%5e3!=0););}while(!i&&(e=null,n.length));i&&Gy.foundShadowRoots&&Dt(()=>{o(e)},50),5e3!==t||Gy.foundShadowRoots||(Gy.stoppedSearchEarly=!0)}()}},foundShadowRoots:!1,stoppedSearchEarly:!1};var jy,Ti={actions:{documentChanged:function(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,jp-t),jp),t=Dt(zy,t),e.commit("setScheduledUpdate",t))},handleScheduledUpdate:function(e){e.dispatch("stopScheduledUpdate"),Wp()},stopScheduledUpdate:function(e){e.state.scheduledUpdate&&(clearTimeout(e.state.scheduledUpdate),e.commit("setScheduledUpdate",null))},startObserverIfNeeded:function(e,t){var n;e.state.useObserver&&((n=e.getters.observer())||(n=new(t||dt("MutationObserver"))(By),jy=n),e.state.observing||(n.observe(document.documentElement,{subtree:!0,attributes:!0,childList:!0,characterData:!0}),e.state.observeShadowRoots&&Gy.startObserver(By),e.commit("setObserving",!0)))},stopObserver:function(e){var t=e.getters.observer();t&&E.isFunction(t.disconnect)&&t.disconnect(),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setUseObserver:function(e){e.useObserver=!0},setObserveShadowRoots:function(e){e.observeShadowRoots=!0},setObserving:function(e,t){e.observing=t},setNeedsUpdate:function(e){e.needsUpdate=!0},setScheduledUpdate:function(e,t){e.scheduledUpdate=t},startUpdate:function(e,t){e.needsUpdate=!1,e.updateId=t},completeUpdate:function(e,t){e.updateId=null,e.updateCompleteTime=t}},getters:{now:v,observer:function(){return jy}},state:{useObserver:!1,observeShadowRoots:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}};function By(){g.dispatch("guideUpdate/documentChanged")}function zy(){g.dispatch("guideUpdate/handleScheduledUpdate")}Hy=["advanced","dismissed","snoozed"];var Hy,Mi={actions:{init:function(t,e){E.each(e,function(e){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){Co(['Attempted redisplay of guide="',t.guideId,'" step="',t.id,'" reason="',t.reason,'" seenState="',t.seenState,'" previousSeenState="',t.previousSeenState,'"'].join())}},mutations:{updateStepState:function(e,t){var n=v();e.steps[t.id]=E.extend({},e.steps[t.id],{pageId:t.pageId,regexUrlRule:t.regexUrlRule,seenState:t.seenState,updatedAt:n,allowedAt:n+6e4})},resetStepStatus:function(e){e.steps={}}},getters:{isRedisplay:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(e.resetAt>t.updatedAt)&&!(v()>=t.allowedAt)&&E.contains(Hy,t.seenState)&&!E.contains(Hy,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}},Wy={state:{lastFlush:v(),flushInterval:3e5,counters:{ptmGifFailures:0,guideGifFailures:0},timers:{}},actions:{flush:function(n){E.each(n.state.counters,function(e,t){n.commit("resetCounter",t)}),E.each(n.state.timers,function(e,t){n.commit("resetTimer",t)}),n.commit("setLastFlush",n.getters.now())}},mutations:{setLastFlush:function(e,t){e.lastFlush=t},incrementCounter:function(e,t){e.counters[t]!==undefined&&e.counters[t]++},resetCounter:function(e,t){e.counters[t]!==undefined&&(e.counters[t]=0)},setTimer:function(e,{name:t,time:n}={}){t&&null!=n&&(e.timers[t]=n)},resetTimer:function(e,t){delete e.timers[t]}},getters:{shouldFlush:function(e,t){return t.now()-e.lastFlush>=e.flushInterval},payload:function(e){var t=E.reduce(e.counters,function(e,t,n){return 0<t&&(e[n]=t),e},{});return E.extend({},t,e.timers)},now:v}},qy={state:{visitor:{},account:{},parentAccount:{},date:null,version:null,selfHosted:null},actions:{},mutations:{setMetadata:function(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:function(e){e.account={}},reset:function(e,t){e.visitor={id:t.visitor_id},e.account={},e.parentAccount={},e.date=null,e.version=null,e.selfHosted=null}},getters:{metadata:function(e){return e},selfHosted:function(e){return e.selfHosted}}};const Vy=f.getLocal();var Ky="pendo-preview",Jy="current-guide-preview",Yy={state:{preview:null,designerPreview:null},actions:{start:function(e,t){e.commit("setPreview",t),e.dispatch("write")},restart:function(e,t){e.commit("updatePreview",{state:null}),e.commit("updatePreview",t)},update:function(e,t){e.commit("updatePreview",{state:t}),e.dispatch("write")},load:function(e){try{var t=e.getters.storage(),n=JSON.parse(t.getItem(Ky)),i=(n.apiKey===I.apiKey&&e.commit("setPreview",n),t.getItem(Jy));i&&e.commit("setDesignerPreview",JSON.parse(i))}catch(r){}},write:function(e){try{var t=e.getters.storage();e.state.preview?t.setItem(Ky,JSON.stringify(e.state.preview)):t.removeItem(Ky)}catch(n){}},exit:function(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview:function(e){e.commit("setDesignerPreview",null),e.getters.storage().removeItem(Jy)},launchInAppDesigner:function(e,t){Yh.launchInAppDesigner(t)}},mutations:{updatePreview:function(e,t){e.preview&&E.extend(e.preview,t)},setPreview:function(e,t){e.preview=t},setDesignerPreview:function(e,t){e.designerPreview=t}},getters:{isInPreviewMode:function(e){return!!e.preview},isInDesignerPreviewMode:function(e,t){return!!e.designerPreview&&t.isInPreviewMode()},storage:function(){return Vy}}};const Zy=(()=>{const n={isTop:undefined,isLeader:undefined,frameId:null,tabId:null,frames:{},autoOrdering:[],excludedGuides:[],throttling:{},enableEventLogging:!1,eventsCaptured:[],cspErrors:[],installType:null,doNotProcess:!1},a={TOP_DOWN:"top-down",BOTTOM_UP:"bottom-up"},s={debuggingEnabled:{type:a.TOP_DOWN,defaultValue:!1},guideLoopRunning:{type:a.BOTTOM_UP,defaultValue:!1},stepEligibilitySet:{type:a.BOTTOM_UP,defaultValue:{}},identity:{type:a.BOTTOM_UP,defaultValue:{}},location:{type:a.BOTTOM_UP,defaultValue:{}}};var e={init:e=>{e.commit("setFrameId",sn.getFrameId()),e.commit("setTabId",sn.getTabId()),e.commit("setInstallType",we());var t=dd()&&window.top===window;n.isTop,e.commit("setIsTop",t),e.commit("isLeader",dd()),t?(t=ah(),e.commit("debuggingEnabled",!0===t.enabled),t.enableEventLogging&&e.commit("enableEventLogging",!0)):F.postMessage({action:"debugger/join",frameId:e.state.frameId})},join:(n,e)=>{n.state.frameId!==e.frameId&&E.each(s,({type:e},t)=>{e===a.TOP_DOWN&&F.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;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.state.isTop?e.commit("eventsCaptured",t):F.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):F.postMessage({action:"debugger/recieveCspError",frameId:e.state.frameId,data:t})},recieveCspError:(e,t)=>{e.state.isTop&&e.commit("cspError",t.data)},checkGuideEligibility:function(e,t){const{guideId:i,response:n}=t;var t=E.filter(g.state.frames.frames,e=>e.guides&&e.guides[i]);t.length&&(t=E.map(t,n=>{var e=E.map(n.guides[i].steps,(e,t)=>F.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:n.id,stepId:e.id,currentStepIndex:t,guideId:i}));return y.all(e).then(e=>({frameId:n.id,frameVisibility:n.visibility,errors:E.map(e,e=>JSON.parse(e).errors)}))}),y.all(t).then(e=>e).then(e=>n(e))["catch"](e=>n({error:e})))}};const t={},u={setFrameId:function(e,t){e.frameId=t},setTabId:function(e,t){e.tabId=t},setIsTop:function(e,t){e.isTop=t},isLeader:function(e,t){e.isLeader=t},setInstallType:function(e,t){e.installType=t},stepEligibilitySet:function(e,t){var n=t["stepId"];e.stepEligibilitySet[n]=t},guideLoopRunning:function(e,t){e.guideLoopRunning!==t&&(e.guideLoopRunning=t)},identity:function(e,t){e.identity=t},location:function(e,t){e.location=t},debuggingEnabled:function(e,t){e.debuggingEnabled=t,t=t,e=e.isTop,n.debuggingEnabled!==t&&(t?(d(),c(),m.on("stepEligibility",i),m.on("guideUpdateComplete",p),m.on("guideLoopStopped",h),m.on("eventCaptured",o),m.on("identify",d),m.on("urlChanged",c),e&&(r(),m.on("guidesLoaded",r))):(m.off("stepEligibility",i),m.off("guideUpdateComplete",p),m.off("guideLoopStopped",h),m.off("eventCaptured",o),m.off("identify",d),m.off("urlChanged",c),e&&m.off("guidesLoaded",r)))},excludedGuides:function(e,t){e.excludedGuides=t},autoOrdering:function(e,t){e.autoOrdering=t},throttling:function(e,t){e.throttling=t},eventsCaptured:function(e,t){E.isArray(t)&&0===t.length?e.eventsCaptured=[]:e.debuggingEnabled&&e.enableEventLogging&&e.eventsCaptured.unshift(t)},enableEventLogging:function(e,t){e.enableEventLogging=t},cspError:function(e,t){e.cspErrors.unshift(t),10<e.cspErrors.length&&e.cspErrors.pop()},doNotProcess:function(e,t){e.doNotProcess=t}};function i(e){e=e.data[0];g.commit("debugger/stepEligibilitySet",e)}function r(e){var t=E.map(Np.sortAndFilter(R,I.autoOrdering),e=>e.id);g.commit("debugger/autoOrdering",t||[]),g.commit("debugger/excludedGuides",I.excludedGuides||[]),g.commit("debugger/throttling",I.throttling||{})}function o(e){g.dispatch("debugger/eventCaptured",e.data[0])}function d(e){g.commit("debugger/identity",{visitorId:E.get(e,"data.0.visitor_id")||I.get_visitor_id(),accountId:E.get(e,"data.0.account_id")||I.get_account_id(),apiKey:I.apiKey})}function c(){g.commit("debugger/location",{href:$r(),browserUrl:window.location.href})}function l(e){g.commit("debugger/guideLoopRunning",e)}const p=E.partial(l,!0),h=E.partial(l,!1);return E.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]=E.wrap(o,(e,t,n)=>{!t.isTop&&i===a.TOP_DOWN||(e(t,n),t.isTop&&i===a.BOTTOM_UP)||F.postMessage({action:"debugger/sync",frameId:t.frameId,fields:{[r]:n}})}),o=u["_sync_"+r]||o,u["_sync_"+r]=(e,{value:t,frameId:n})=>{e.frames[n]||(e.frames[n]={}),e.frames[n][r]||(e.frames[n][r]=s[r].defaultValue),o(e.frames[n],t),e.isTop||i!==a.TOP_DOWN||o(e,t)}}),{state:n,actions:e,getters:t,mutations:u}})();const Xy=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]);Dt(e,250)}function l(){e()}function p(){return!n||n&&o.store.getters["frames/isLeader"]()}function h(e){p()&&(e=null==(e=e.data)?void 0:e[0]).storeChanged&&o.store.dispatch("frames/syncOptions",{options:e.options})}function f(e){var t;g(null==(t=e.data)?void 0:t[0].visitor_id,null==(t=e.data)?void 0:t[0].account_id)}function g(e=b(),t=Gn()){p()&&o.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}}();function Qy(e,n){return e.length==n.length&&E.all(e,function(e,t){return e===n[t]})}class eb{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=yr(n.selector)}catch(i){t=[]}t.length>this.maxTargets&&(t.length=this.maxTargets),Qy(t,n.targets)||(n.targets=t,this.domActivation.detach(n,this.domActivation.targets),E.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 tb,nb,ib,rb,ob,ab,sb={name:"DOMActivation",key:ib="pendoTargetId",guides:rb=[],targets:ob={},reset:pb,init:fb,attach:function(n,i,e){var t=n[ib],r=t?e[t]:null;r||(t=t||"target"+E.uniqueId(),r={target:n,events:{}},e[t]=r,n[ib]=t);var o=e[i.id]||[];o.push(t),e[i.id]=o,E.each(i.events,function(e){var t=r.events[e];t||((t={guideIds:{}}).fn=E.partial(lb,E,t.guideIds),l(n,e="mouseover"===e?"mouseenter":e,t.fn),r.events[e]=t),t.guideIds[i.id]=1})},detach:cb,handler:lb,activates:hb,prefetch:gb,initialize:function(e,t){(tb=t).Events.on("deliverablesLoaded",pb),t.Events.on("guideListChanged",ub),t.Events.on("guidesLoaded",db),nh(nb=new eb(sb))},teardown:function(){ih(nb),tb.Events.off("deliverablesLoaded",pb),tb.Events.off("guideListChanged",ub),tb.Events.off("guidesLoaded",db)}};function ub(){pb(),fb(ju())}function db(){gb(ju())}function cb(i,t){E.each(t[i.id],function(e){var n=e?t[e]:null;n&&(E.each(n.events,function(e,t){e&&e.guideIds&&(delete e.guideIds[i.id],E.size(e.guideIds)<=0)&&(Lu(n.target,t="mouseover"===t?"mouseenter":t,e.fn),delete n.events[t])}),E.size(n.events)<=0)&&(delete n.target[ib],n.target=null,delete t[e])}),delete t[i.id]}function lb(e,t){var n;!e.pendoActivatedGuide&&!k.data.get(e,"advanced")&&(n=h.get("adoptPrioritizeAdoptGuides"),t=E.compact(E.map(E.keys(t),N)),t=E.filter(t,function(e){return!(!e.steps||!e.steps.length||E.get(e,"attributes.dom.isOnlyShowOnce")&&e.steps[0].hasBeenSeen())}),t=E(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=E.find(t,function(e){var t=E.first(e.steps);return E.get(e,"attributes.resourceCenter",!1)&&e.isShown()?P.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||Og(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function pb(){E.each(rb,function(e){cb(e,ob),e.targets=[]}),rb.length=0}function hb(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(zg())){var t=E.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=ad(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function fb(e){E.each(e,function(e){e=hb(e);e&&rb.push(e)})}function gb(e){h.get("disablePrefetch")||E.each(e,function(e){E.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&E.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent(!0)})}var mb=function(){(ab=ab||{dom:k,placeBadge:hh,showPreview:xg,stopGuides:Hp,removeAllBadges:fh,_:E,sizzle:yr,tellMaster:za,tell:za,log:Ov,attachEvent:l,createLauncher:E.constant({}),removeLauncher:E.noop,addGuideToLauncher:E.noop,updateLauncherContent:E.noop,DEFAULT_TIMER_LENGTH:jp,getOffsetPosition:Ho,getScreenDimensions:jo,registerMessageHandler:Ma,whenLoadedCall:$u,loadResource:Ta,loadGuideCss:fm,GuideFactory:Pd,GuideStep:$d,extractElementTreeContext:Eu,previewGuideFromJSON:D.previewGuideFromJSON,hidePreviewedGuide:D.hidePreviewedGuide,shadowAPI:Zn,getTarget:Cr,pullContentsFromTargetElement:Ig,doesElementMatchContainsRules:_g,doesElementContentMatchRule:Eg,getGuideAttachPoint:nd}).areGuidesEnabled=!Cm(),I.designer||(I.designer=ab)},vb=function(){var r,o,i;let a;return{name:"DesignerConnect",initialize:function(e,t){r=e,o=t,Va()||Ma("connect",n);Ma("pendo-designer-launch::launch",d),Ma("pendo-preview::launch",c),e.app_name=document.title,(Ha()||window.opener)&&window.addEventListener&&(r.log(e.app_name+": listening to messages"),window.addEventListener("message",Aa,!1));window.opener&&r._.isFunction(window.opener.postMessage)&&window.opener.postMessage({type:"pendo::ready"},"*");r.onConnectMessage=n},teardown:function(){window.removeEventListener&&window.removeEventListener("message",Aa,!1),s(),La("connect"),La("pendo-designer-launch::launch"),La("pendo-preview::launch"),a&&(o.Events.appUnloaded.off(a),a=undefined);i=i&&undefined},onConnectMessage:n,disconnectDesigner:s,launchDesignerListener:d,launchPreviewListener:c,sendToken:u};function n(e,t){var n,i;r.isSendingEvents()&&(n=t.origin,r.stopGuides(),r.buffers.lock(),i=t.source,Ea=i,r.designerv2.hostConfig||(o.store.dispatch("frames/leave"),a=r._.partial(s,i,n),o.Events.appUnloaded.on(a)),mb(),za(t.source,{status:"success",type:"connect"},n),Ua("selection.js")&&(r.log("Designer Modules already loaded."),za({type:"ready"},n)),o.Events.designerLaunched.trigger())}function s(e,t){r.buffers.unlock(),I.designer&&(I.designer=null,delete I.designer),e&&za(e,{type:"unload"},t)}function u(e,t){var n;i&&(n={token:i,type:"pendo-designer-launch::set-token"},t.source.postMessage(n,t.origin),i=undefined)}function d(e,t){var n,t=t.data.token;t&&(i=t,Ma("pendo-designer-launch::get-token",u),n=t.DADesigner?"da-designer":"in-app-designer",n={lookaside:t.baseUrl,host:t.host,target:t.target||"latest",DADesigner:!!t.DADesigner,gcsBucket:t.gcsBucket||n,forceNativeDesigner:!!t.forceNativeDesigner,sidebarDesigner:!!t.sidebarDesigner},r.designerv2.launchInAppDesigner(n))}function c(e,t){var n=t.data.config.preferredAgentInstallType;n&&n!==we()?r.log("Skipping preview launch due to agent install type mismatch."):(n=r._.extend({},t.data.config,{origin:t.origin}),oo()&&(n.apiKey=r.apiKey),o.store.dispatch("preview/exitDesignerPreview"),o.store.dispatch("preview/start",n),Ih(window)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:r.apiKey,accountId:r.accountId},t.origin),Fm(),o.store.dispatch("frames/startPreview")))}}();const yb="__sg__";wb="promotedAgentMetadataConfigurations",Sb=[],Ib={},_b={};var bb,wb,Sb,Ib,_b,Eb={name:"PromoteMetadata",initialize:function(e,t){if(Sb=(bb=t).ConfigReader.get(wb),_b={},bb.agentStorage.registry.addLocal(yb),kn())try{Ib=JSON.parse(bb.agentStorage.read(yb))||{}}catch(n){Ob()}Sb&&Sb.length&&(bb.Events.on("metadata",xb),bb.Events.on("eventCaptured",Nb),bb.Events.on("identify",kb))},teardown:function(){bb.Events.off("metadata",xb),bb.Events.off("eventCaptured",Nb),bb.Events.off("identify",kb)},getPromotedMetadata:function(){return Sb},hasPromotedMetadataKind:Cb,setSchemaGroup:xb,getSchemaGroup:Tb,resetSchemaGroup:Ab,resetCachedSchemaGroup:Ob};function Cb(t){return E.some(Sb,function(e){return e.kind===t})}function Tb(){return _b}function xb(e){var t;e?(e=e.data[0]["options"],e&&(t=e)):t=Il(),_b=function(r){kn()&&(Ib=function(e){e=E.mapObject(e,(t,e)=>{const n={};return Object.keys(t).forEach(e=>{n[e.replace("agent__","")]=t[e]}),n});return e}(Ib=JSON.parse(bb.agentStorage.read(yb))||{}));var o=_b;E.each(["visitor","account","parentAccount"],function(e){var t=Cb(e),n=!E.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!E.isEmpty(Ib)&&E.isEmpty(fs.get())&&(o[i]=Rb(Ib[i],e)),n)&&(t=Rb(r[e],e),E.isEmpty(t)||(o[i]=Object.assign(Object.assign({},o[i]),t)))}),kn()&&bb.agentStorage.write(yb,JSON.stringify(o),undefined,!1,!0);return o}(t)}function kb(e){e=e.data[0];E.get(e,"wasCleared")&&(bb.agentStorage.clear(yb),Ab())}function Ab(){_b={}}function Ob(){Ib={}}function Rb(e,i){var r={};return e&&E.each(e,function(e,t){var n=t.toLowerCase();Boolean(E.find(Sb,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function Nb(e){e=e.data[0];e&&(E.isEmpty(_b)&&xb(),E.isEmpty(_b)||("track"===e.type?e.props.__sg__=_b:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=_b)))}function Mb(e,t,n){this.element=e,this.method="element"==t?"click":"hover"==t?"mouseover":t,this.step=n,this.guide=n.getGuide()}Mb.prototype.add=function(){0===E.indexOf(this.guide.steps,this.step)&&!Mb.shouldAttachHandler(this.guide,this.method)||Zu(this.guide)&&!Xu(this.guide)||this.setupElementEvent(this.element,this.method)},Mb.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},Mb.prototype.setupElementEvent=function(e,t){this.advanceFn||(this.advanceFn=E.compose(E.bind(this.teardownElementEvent,this,e,t),E.bind(this.step.advance,this.step))),Mb.attach(this.step,e,t,this.advanceFn)},Mb.prototype.teardownElementEvent=function(e,t){C.info("detach onGuideAdvanced",{contexts:["guide"]}),Lu(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},Mb.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||sb.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector};var Lb=null,Pb=function(){return td()?Yu:Ju},$b=function(e){return"#_pendo_g_"+e.id},Fb=function(e,t){Lb=null;var n,i,r,o,e=Ho(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(Pb()),o=Vb(e,o,i,r),t&&(t.dim=o),n.css({width:o.width,height:o.height,left:o.left,top:o.top}),e.fixed&&n.css({position:"fixed"}),k("._pendo-guide-container_",n).addClass(o.arrowPosition).css({top:o.content.top,left:o.content.left,width:o.content.width,height:o.content.height}),Db(n[0],o),n[0])},Db=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=E.chain(n).filter(function(e){return e!==o}).map(function(e){return"border-"+e+"-width:"+I.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=k("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),u=k("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");E.each(n,function(e){s.removeClass(i+e+"_").removeClass(e),u.removeClass(r+e+"_").removeClass(e)}),s.addClass(i+o+"_").addClass(o).css(a+"top:"+t.arrow.top+"px;left:"+t.arrow.left+"px;"),u.addClass(r+o+"_").addClass(o).css(a+"top:"+t.arrow.border.top+"px;left:"+t.arrow.border.left+"px;"),k(e).append(s).append(u)},Ub=function(e,t){t===undefined&&(t=Fu),e.element=rd(e);var n=e.element;if(!n)return C.info("No element found for step: "+e.id),null;pa(n);var i=Fb(n,e);return null===i?null:(i.id=I.getTooltipDivId(e),k(i).appendTo(nd()),t.push(i),l(i,"mouseover",E.partial(k.addClass,i,"mouseover")),l(i,"mouseout",E.partial(k.removeClass,i,"mouseover")),sd(n,i),Hb(e),n)},Gb=null,jb=null;var Bb=null,zb={top:"north",left:"east",bottom:"south",right:"west"},Hb=function(e){try{var t,n,i,r,o,a,s,u;e.attributes&&e.attributes.blockOutUI&&e.attributes.blockOutUI.enabled&&(t=e.attributes.blockOutUI,(n=[]).push(e.element),i=rc(n=n.concat(E.compact(E.flatten(E.map(t.additionalElements,function(e){return E.toArray(k(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=ic(a=nc(),i,o),h=i,f=!E.isEqual(h,Gb),Gb=h,f||(l=a,p=!E.isEqual(l,jb),jb=l,p)||(d=s,c=!E.isEqual(d,Bb),Bb=d,c))&&(u={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(u["background-color"]=t.bgColor),t.opacity&&(u.opacity=t.opacity),E.each(s,function(e,t){t=zb[t],e=E.extend({},e,u),t=k("div._pendo-guide-tt-region-block_._pendo-region-"+t+"_")[0]||Wb(t),k(t).css(e)}))}catch(g){C.info("Failed to add BlockOut ui",{contexts:["error"]})}var d,c,l,p,h,f},Wb=function(e){e=k(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");k("body").append(e)},qb=function(e){var t=E.isEqual(e,Lb);return Lb=e,!t},Vb=function(e,t,n,i){var r=I.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=jo();return o.width=Math.min(n,a.width),o.height=t,o.content.width=o.width-2*r,o.content.height=o.height-2*r,o=Kb(o,e,a,i=i||"auto"),o=Jb(o,e,a,i),o=Yb(o,e,a)},Kb=function(e,t,n,i){return e.arrow.hbias=Sc(t,n,i),e},Jb=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-ho(),t=(r=t.left-fo())+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},Yb=function(e,t,n){var i,r,o,a=e.height,s=e.width;return De()?Ue(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-I.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=_e(9,6)?6:0,e.arrow.top+=8==Ie?-1:0,i=1),r=10+I.TOOLTIP_ARROW_SIZE,o=s-3*I.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==yc?(e.left=t.left+t.width/2-(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==bc?(e.left=t.left-s+t.width/2+(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=o):(e.left=t.left+t.width/2-s/2,e.arrow.left=s/2-I.TOOLTIP_ARROW_SIZE),!1!==e.arrow.floating&&(n=e.left+s-n.width,0<(n-=Math.max(0,e.arrow.left+n-o))&&(e.left-=n,e.arrow.left+=n),o=-e.left,0<(o-=Math.max(0,r-(e.arrow.left-o))))&&(e.left+=o,e.arrow.left-=o),e.arrow.border.top=e.arrow.top+i,e.arrow.border.left=e.arrow.left):(e.arrow.hbias==yc?(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==bc&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-I.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=_e(10,6)?5:0,e.arrow.left+=7==Ie&&6<=ke?1:0,e.arrow.border.left=e.arrow.left+1),e.top=t.top-a/2+t.height/2,e.arrow.top=a/2-I.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e)},Zb=430,Xb=200,Qb=15;function e0(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||I.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||I.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.getTriggers=function(e){var t=this,n=t.element||rd(t);return!n&&e?[]:(e=(t.advanceMethod||"").split(","),this.triggers=E.map(e,function(e){return new Mb(n,e,t)}),this.triggers)},this.removeTrigger=function(e){this.triggers=E.without(this.triggers,e),0===this.triggers.length&&(this.triggers=null)},this.canShow=function(){return!bg(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(zg())&&Sg(t)},this.after("render",function(){Ub(this,this.elements)&&(E.each(this.getTriggers(),function(e){e.add()}),Ic.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=Ho(this.element),t=Vb(o,t,e,n);r.removeClass("top right bottom left").removeClass("_pendo-guide-container-top_ _pendo-guide-container-right_ _pendo-guide-container-bottom_ _pendo-guide-container-left_").addClass(t.arrowPosition).addClass("_pendo-guide-container-"+t.arrowPosition+"_"),k("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),Db(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,Hb(this)},this.onscroll=function(e){ca(e.element)?(e.reposition(),Uo(e.elements[0],"display:block")):Uo(e.elements[0],"display:none")},this.teardownElementEvent=function(){E.each(this.triggers,function(e){e.remove()})},this.after("hide",function(){k("._pendo-guide-tt-region-block_").remove(),Bb=jb=Gb=null})),this}var t0=function(e,t){var n=!!k("._pendo-backdrop_")[0];return E.get(t,"overlayDiv[0]")||(t.overlayDiv=k(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(nd())),De()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&k(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},n0=function(e){var t=e.guideElement,n=I.TOOLTIP_ARROW_SIZE,i=e.attributes.height,e=e.attributes.width,e=Math.floor(e/2),i=Math.floor(i/2);t.addClass("_pendo-guide-lb_").css({top:"50%",left:"50%","margin-top":-i,"margin-left":-e}),k("._pendo-guide-container_",t).css({bottom:n,right:n}),De()&&t.css({position:"absolute"})},i0=function(e,t){t===undefined&&(t=Fu),e.element=rd(e),n0(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(t0(n,e),e.guideElement);t.push(n[0]),n.appendTo(nd())},r0=function(e,t){t===undefined&&(t=Fu),e.element=rd(e),e.guideElement.addClass("_pendo-guide-mobile-lb_");var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=t0(n,e),e=e.guideElement,i=I.TOOLTIP_ARROW_SIZE,i=(e.css({width:"",height:""}),k("._pendo-guide-container_",e).css({bottom:i,right:i}));function r(e){e.preventDefault()}k("._pendo-close-guide_",e).remove().prependTo(i),e.appendTo(nd()),t.push(e[0]),l(n[0],"touchmove",r),l(e[0],"touchmove",r)};function o0(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||I.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||I.LB_DEFAULT_WIDTH,e.after("render",function(){(td()?r0:i0)(e,e.elements)}),e.reposition=function(){td()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var a0=500,s0="_pendo-guide-banner_";function u0(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||a0,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=I.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(s0).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),ed()||e.addClass("_pendo-in_"),k("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=rd(n),n.elements.push(e[0]),e.appendTo(nd())})),n}function d0(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(E.extend(n,{isShown:E.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",Cg(n)).addClass("_pendo-guide-whatsnew_").html(n.getContent()),E.isNumber(t)&&!n.attributes.autoHeight&&e.height(t),n.seenState===r&&e.addClass(i),n.guideElement=e)},seen:s}),E.extend(t,{addToLauncher:function(){var e=n.guideElement;e&&!Yo(e[0])&&(k("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),zd.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(ca(e,/(auto|scroll|hidden)/))return(t=ea(e))?(t=Zo(t),e=Zo(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(Ng(n.guideId,n.id,b(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,E.delay(function(){n.guideElement.addClass(i+" out")},E.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function u(){}}var c0="_pendo-launcher-searching_",l0="._pendo-launcher-search-box_ input";var p0,h0=function(e){return e&&E.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function f0(){var e;return function(){var e;if(I.guideWidget)return(e=I.guideWidget.data)&&e.enableSearch}()&&(e=k(l0)[0])&&0<(e=e.value).length?(e=Ze.call(e),[].concat(E.compact(e.split(" ")))):[]}function g0(e){if(!h.get("disablePrefetch"))return y.all(E.map(e,function(e){return e.fetchContent()}))}function m0(e,t){return C.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||R,t&&0!==t.length?E.chain(e).filter(h0).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return E.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var v0=function(){var e=Ku();if(dd()){if(I.guideWidget&&I.guideWidget.enabled){var t=T0(e),n=!0;if(I.guideWidget&&E.isFunction(I.guideWidget.update))I.guideWidget.update(t,n)}}else{$0();t=Bu(e),n=x0(T0(t));n!==p0&&g.dispatch("frames/changeGuideList",t),p0=n}},y0="launcher-closed",b0=null,w0=null,S0=!(Mb.attach=function(e,t,n,i){if(e){for(var r=Mb.handlers=Mb.handlers||{},o=r[e.id]=r[e.id]||[],a=0;a<o.length;++a){var s=o[a];t===s[0]&&n===s[1]&&(Lu(t,n,s[2],!0),o.splice(E.indexOf(o,s),1),a--)}o.push([t,n,i]),Lu(t,n,i,!0),l(t,n,i,!0)}}),I0="_pendo-launcher-active_",_0=null,E0=function(){return""};function C0(e,t){E0=t}function T0(e){var t,e=E.filter(e||R,h0);return e=e,0===(t=f0()).length?e:(t=E.map(t,E.partial(m0,e)),E.union.apply(E,t))}function x0(e){return rt(E.map(e,function(e){var t=e.isWhatsNew()?[]:E.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function k0(e){var n=this,t=e.launchType||"badge",i=(E.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(nd()),e.className="",n.element=t[0])}},dispose:function(){k.removeNode(n.element)},setActive:function(e){e?k(n.element).addClass(I0):k(n.element).removeClass(I0)}}),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=Fd(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})},De()&&(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"})),nd().appendChild(r)}function A0(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=Cr(e),t=n();k(e).closest(t).length&&(j0()?f.write(y0,"yes",864e6):I.guideWidget.position(e),W0())}I.guideWidget.removeCountBadge=function(){k("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),E.extend(this,{getLauncherTarget:function(){return k(n())[0]},dispose:function(){Lu(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&k("._pendo-launcher-whatsnew-count_").remove()}}),l(document,"click",t)}function O0(){var n,s="bottom-right",u="bottom-left";return this.update=function(e,t){t=t?e:T0(e),e=x0(t)+rt(f0());return e!==n&&(n=e,this.updateLauncherContent(t)),L0(),0<t.length},this.updateLauncherContent=U0,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(b0=new k0(e),e.height||310),n=(e.enableSearch&&(t+=De()?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=(w0=i[0],Ho(b0.element)),r=Vb(r,t,n),o=(i.css({width:n,height:t}),I.TOOLTIP_ARROW_SIZE),n=k(document.createElement("div")).addClass("_pendo-guide-container_ "+r.arrowPosition).addClass("_pendo-guide-container-"+r.arrowPosition+"_").css({top:o,left:o,width:n-2*o,height:t-2*o}).appendTo(i),t=D0(),o=Fd(R0(this.template(t))),t=k(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),Qf(i[0],function(){z0(),f.write(y0,"yes",288e5)}),t.on("click",function(e){var t=k(Cr(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=N((t=/^launcher-(.+)$/.exec(Ze.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(Og(t.steps[0],"launcher"),z0(),Pu(e))}),De()&&(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(nd()),E.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=Ho(e),n=Vb(e,this.height,this.width),i=k(w0),"badge"===(r=t.launchType||"badge")?(o=t.position,E.indexOf(a=[s,u,"top-left","top-right"],t.position)<0&&(o=s),E.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=E.contains([s,u],o)?"bottom":"top",n.arrow.hbias=E.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(),Yb(n,e,{width:Infinity,height:Infinity}),Db(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=W0,this}function R0(e){return e=E.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function N0(e,t){e.contentHostUrl&&(e.contentHostUrl=(n=e.contentHostUrl,i=location,(r=h.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)),_0=new A0(e);var n,i,r=O0.create(I.guideWidget);return E.isFunction(r.template)||(r.template=e.template?E.template(e.template):E0),r.render(),r.position(_0.getLauncherTarget()),t&&r.toggle(),r}O0.create=function(e){return E.reduce(O0.behaviors,function(e,t){return t.call(e)},e)},O0.behaviors=[rh,O0,Nd.Launcher,function(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){k(l0).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,I.disableGuideCenterContentSearch||this.before("update",g0),this.before("update",function(){t.text=f0().join(" ");var e=k("._pendo-launcher_");t.text?e.addClass(c0):e.removeClass(c0)})),this},function(){var n=this;{var i;n.data&&n.data.onboarding&&(i=n.onboarding=n.onboarding||{},n.before("update",function(e){var e=E.filter(e,my),t=E.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=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=(E.each(t,function(e){e.show()}),E.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),E.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(){F0()?i.appendTo(this.data.launchElement):(b0.wrap(),i.appendTo(b0.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 M0=function(){w0&&(k.removeNode(w0),w0=null),_0&&(_0.dispose(),_0=null),b0&&(b0.dispose(),b0=null)},L0=function(){(!F0()&&(B0()||0<f0().length)?P0:$0)()},P0=function(){b0&&b0.show()},$0=function(){F0()||z0(),b0&&b0.hide()},F0=function(){return!(!I.guideWidget||!I.guideWidget.data||"element"!==I.guideWidget.data.launchType)},D0=function(e){var t=Il(),t=E.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:nt(t)},I.guideWidget);return t.data=E.extend({},t.data),e&&(t.guides=e),t};function U0(e){var t=I.guideWidget.template||E0,e=D0(e),e=k(document.createElement("div")).html(R0(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 G0=E.compose(L0,function(e,t){var n,i,r,o;h0(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,E.isNumber(t)&&(r=k("._pendo-launcher-item_"))[t]?e.id!=r[t].id&&n.insertBefore(e,r[t]):n.appendChild(e))}),j0=function(){return k(w0).hasClass(I0)},B0=function(){return 0<k("._pendo-launcher-item_").length},z0=function(){var e;w0&&(e=k(w0))&&e.hasClass(I0)&&(e.removeClass(I0),b0)&&b0.setActive(!1)},H0=function(){var e;w0&&(e=k(w0))&&!e.hasClass(I0)&&(e.addClass(I0),b0)&&b0.setActive(!0)},W0=function(){w0&&!S0&&(j0()?z0:H0)()};var q0=function(){try{var e=I.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};M0(),!td()&&!n.desktop||td()&&!n.mobile||Ha()&&!n.iframe||e.enabled&&(N0(t),$0())}catch(i){C.critical("ERROR while initializing launcher",{error:i})}},V0=function(e){e.defaultLauncher=C0,e.toggleLauncher=W0,e.showLauncher=H0,e.hideLauncher=z0,e.removeLauncher=M0,e.initLauncher=q0,e.createLauncher=N0,e._addGuideToLauncher=G0,e.launcherToolTipDiv=w0},K0=function(){q0()},J0=function(){var e;(e=I).designer&&(e.designer.createLauncher=N0,e.designer.removeLauncher=M0,e.designer.addGuideToLauncher=G0,e.designer.updateLauncherContent=U0)},Y0=function(){var e;(e=I).debugging&&(e.debugging.getLauncherGuides=T0)},Z0=function(e){return i=I.guideWidget,e=e,r=i&&i.data,e=E.filter(e,function(e){e=E.first(e.steps);return e&&"launcher"===e.type}),(e=E.first(E.sortBy(e,function(e){return-e.lastUpdatedAt})))&&r&&(e=E.first(e.steps),E.extend(r,E.pick(e,"contentUrl","contentUrlCss","contentUrlJs"),e.attributes),E.defaults(r,{whatsnew:{},knowledgebase:{}}),r.id=e.guideId+e.id),n=(t=i)&&t.data||{},!0!==h.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?_d.verify(n).then(function(){return Ud.load(n)}).then(function(e){return n.template=e.content,E.extend(t,e)}):y.resolve();var t,n,i,r},X0=function(e,t){V0(e),t.Events.on("guidesLoaded",K0),t.Events.on("designerLaunched",J0),t.Events.on("debuggerLaunched",Y0),t.GuideLoop.addUpdatePhase(v0),um.push(Z0),t.agentStorage.registry.addLocal(y0)},Q0=function(e,t){var n;n=Z0,0<=(n=E.indexOf(um,n))&&um.splice(n,1),t.GuideLoop.removeUpdatePhase(v0),t.Events.off("guidesLoaded",K0),t.Events.off("designerLaunched",J0),t.Events.off("debuggerLaunched",Y0)};Wm.Extensions.API.addTopic("Launcher",{addBehavior:function(e){O0.behaviors.push(e)}});var e1,t1,n1,i1={name:"P1Guides",initialize:function(e,t){var n;t1=t,e1=e.dom,n1=[e0,o0,u0,d0,a1,s1,o1,r1],-1<E.indexOf($d.behaviors,e0)||(n=E.indexOf($d.behaviors,Sy),$d.behaviors.splice.apply($d.behaviors,[n,0].concat(n1)),t.Events.guideLoopStopped.on($0),e.TOOLTIP_DEFAULT_WIDTH=Zb,e.TOOLTIP_DEFAULT_HEIGHT=Xb,e.TOOLTIP_ARROW_SIZE=Qb,e._showElementGuide=Ub,e._createTooltip=Fb,e._get_tooltip_dimensions=Vb,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e._showLightboxGuide=i0,X0(e,t))},teardown:function(){Q0(0,t1),t1.Events.guideLoopStopped.off($0),n1.forEach(e=>{e=E.indexOf($d.behaviors,e);0<=e&&$d.behaviors.splice(e,1)}),n1=[]}};function r1(){const o=this;return"tooltip"!==o.type||o.domJson||(o.checkPlacement=function(){var e,t,n,i,r;e=o,r=Ho(e.element||rd(e)),Hb(e),qb(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=Vb(r,n,i,t),(i=k($b(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),Db(i,n))}),o}function o1(){var i=this;return i.attributes&&i.attributes.autoHeight&&(i.after("render",function(){i.guideElement&&i.guideElement.length&&(i.resize(),i.attachEvent(i.guideElement[0],"load",function(){i.resize()}))}),i.resize=function(){var e,t=I.TOOLTIP_ARROW_SIZE,n=i.guideElement;n&&(e=e1("._pendo-guide-container_",n),"tooltip"==i.type||De()&&"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 a1(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&Qf(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||hg(t)})}),t}function s1(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||Qu(e.guide)||e.after("render",function(){yg(e.guideElement[0])}),e}var u1,d1,c1={name:"Branding",initialize:function(e,t){u1=e,(d1=t).ConfigReader.get("isPendoFree")&&d1.Events.on("guideSeen",l1)},teardown:function(){d1.Events.off("guideSeen",l1)},addBranding:p1};function l1(e){p1(u1,e)}function p1(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",d1.getAssetUrl("img/nps-branding.png")),i.appendChild(r),i.style.display="inline-block",(r=document.createElement("div")).style.lineHeight=0,r.style.padding="8px",e&&(r.style.position="absolute",r.style.bottom="100%"),n&&(r.style.paddingLeft=0),r.append(i),t.append(r))}var h1,f1=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 Jt(r.bind(function(t){return Dt(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 Dt(r.bind(function(){return this.getElement(n,u).then(r.bind(function(e){if(e)if(e.disabled)this.automationQueue=[],o.log("automation target found but disabled. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug");else{switch(n.type){case"autofill":var t=this.getValue(n);this.injectText(e,t);break;case"autoclick":this.simulateClick(e)}this.automationQueue.shift(),this.automationQueue.length&&this.popQueue()}else this.automationQueue=[],o.log("automation target element not found. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug")},this))},this),e)},setActive:function(e){i=e}};function d(e){var t;e.step&&(this.setActive({guide:e.step.guide,step:e.step}),e.params)&&((e=r.find(e.params,function(e){return"automationIds"===e.name&&r.isArray(e.value)&&e.value.length}))?(e=this.getAutomationConfigs(e.value),t=!this.automationQueue.length,this.automationQueue=this.automationQueue.concat(e),t&&this.popQueue()):o.log("no automation ids were found","debug"))}}();function g1(e,i){return"undefined"!=typeof Proxy&&E.isFunction(i)?new Proxy(e,{get:function(e,t){if("textContent"===t)return i(e);if("parentNode"===t){var n=e[t];if(e.ownerDocument!==n)return g1(e[t],i)}return E.isFunction(e[t])?function(){return e[t].apply(e,arguments)}:e[t]}}):e}const m1=function(){let n,l,p,h,t;const i=Wn(function(n){{var e;p.eventProperties&&p.eventProperties.length&&(e=function c(i){var r=h.ConfigReader.get("eventPropertyMatchParents");var e=v();var t={};var n;for(var o=0;o<p.eventProperties.length&&v()-e<50;o++){n=p.eventProperties[o];var a=p._.any(n.featureRules,function(e){try{var t=f(r,l);return t(i,e)}catch(n){return!1}});if(a)for(var s=0;s<n.eventPropertyRules.length&&v()-e<50;s++){var u=n.eventPropertyRules[s];if(!u.name)return;t[u.name]=m(u,i)}}var d=v()-e;if(50<d){if(r&&l===p._.identity&&p._.isFunction(p.getText))return p.log("switching event property collection to fast text implementation"),l=function(e){return g1(e,function(e){return p.getText(e,128)})},c(i);g(50,n)}return t}(n.target),p._.pairs(e).forEach(([e,t])=>{n.addEventProperty(e,t)}))}}),r=Wn(function(){var e={};if(n)return{};var t=h.ConfigReader.get("eventPropertyConfigurations");if(!t||p._.isEmpty(t))return{};if(e=function(e){for(var t,n=v(),i={},r=0;r<e.length&&v()-n<50;r++){if(!(t=e[r]).name)return;var o=m(t);o&&(i["_pendo_"+t.name]=o)}50<v()-n&&g(50,t);return i}(t),p._.isEmpty(e))return{};return e});return{name:"EventProperties",initialize:function(e,t){p=e,h=t,l=p._.identity,n=!1,p.getEventPropertyTarget=s,p.previewEventProperty=m,h.Events.onClickCaptured.off(o),h.Events.onClickCaptured.on(o),h.Events.ready.on(a)},teardown:function(){h.Events.onClickCaptured.off(o),h.Events.ready.off(a),h.store.dispatch("location/removeInternalTransforms",t),t=[],h.store.dispatch("location/stopPolling")},collectClickEventProperties:i,collectEventProperty:m,collectPageEventProperties:r,getEventPropertyTarget:s,addPageEventProperties:a};function f(e,n){return e?function(e,t){return 0<p.dom(n(e)).closest(t).length}:function(e,t){return p.Sizzle.matchesSelector(e,t)}}function o(e){i(e.data[0])}function a(){var e;t=(e=h.ConfigReader.get("eventPropertyConfigurations"))&&!p._.isEmpty(e)?[new Jv("search","AddTo",function(){return r()})]:[],h.store.dispatch("location/addInternalTransforms",t),0<t.length&&h.store.dispatch("location/startPolling")}function g(e,t){p.log("event property collection disabled; collection took greater than "+e+" milliseconds.");e="ERROR event property collection exceeded time limit.";t.featureId?e+="\n For feature with id: "+t.featureId:e+="\n For page event with name: "+t.name,h.log.critical(e),t.featureId?p.eventProperties=[]:n=!0}function m(e,t){if(e.path)return t=s(e,t),p._.get(t,e.path,undefined)}function s(e,t){e=e.source||e.selector;if(e&&t){for(var n,i=e,r=t;!n&&r;){try{if((n=p.Sizzle.matchesSelector(r,i)?r:p.Sizzle(i,r)[0])&&("password"===n.type||"hidden"===n.type))return}catch(o){return}r=Zn.getParent(r)}return n}return e?!(t=p.Sizzle(e)[0])||"password"!==t.type&&"hidden"!==t.type?t:void 0:window}}();function v1(){var e;ah().enabled&&(g.commit("debugger/debuggingEnabled",!0),y1(),k("#pendo-client-debugger").length||(e=h.get("agentDebuggerPluginLoader"),Wm.restartDebugger?Wm.restartDebugger():"function"==typeof e?e():((e=document.createElement("script")).src=J(I).createScriptURL(ro("debugger-plugin.min.js")),e.setAttribute("id","pendo-debugger-plugin"),h.get("pendoGlobalKey")&&e.setAttribute("data-pendo-global-key",h.get("pendoGlobalKey")),k.getBody().appendChild(e)),m.debuggerLaunched.trigger()))}function y1(){h1=h1||{store:g,ConfigReader:h,getState:function(){return JSON.stringify(g.state)},getEventCache:function(){return[].concat(Ka)},getAllGuides:function(){return[].concat(R)},getAutoGuides:function(){return Np.sortAndFilter(R,I.autoOrdering)},getBadgeGuides:function(){return E.filter(R,Zu)},getLauncherGuides:function(){return[]},getEventHistory:function(){return[]},getAllFrames:function(){return g.getters["frames/allFrames"]()},getChannelType:function(){return g.getters["frames/channelType"]()},isStepShownInFrame:function(e,t){return g.getters["frames/isShownInFrame"]()(e,t)},setActiveGuides:zu,getBody:k.getBody,isMobileUserAgent:Fe.isMobileUserAgent,areGuidesDelayed:Tm,doesElementMatchContainsRules:_g,getMetadata:Il,isStagingServer:ie,AutoDisplay:Np,isLeader:dd,Events:m},I.debugging=h1}function b1(e){if(sh())return e?t:"debugging already enabled";if(!dd())return;const t=ah();return t.enabled=!0,f.write(oh,JSON.stringify(t),null,!0),v1(),e?t:"debugging enabled"}function w1(){if(!sh())return"debugging already disabled";g.commit("debugger/debuggingEnabled",!1);var e=ah();return e.enabled=!1,f.write(oh,JSON.stringify(e),null,!0),I.debugging=null,delete I.debugging,k("#pendo-client-debugger").remove(),"debugging disabled"}E.extend(function(e){C.debug(e,{contexts:["debug"]})},h1);const S1=(e,t,n)=>{if(t.getters["frames/leaderExists"]())return n.resolve();const i=n.defer();return e.on("leaderChanged",()=>{i.resolve()}),i.promise},I1=function(){let t,o;return{name:"DebuggerLauncher",initialize:function(n,e){const{Events:i,q:r}=e;o=e.store,S1(i,o,r).then(()=>{o.dispatch("debugger/init"),o.getters["frames/isLeader"]()&&v1()}),Ma("pendo-debugger::launch",(e,t)=>{e.config.apiKey===n.apiKey&&S1(i,o,r).then(()=>{t.source.postMessage({type:"pendo-debugger::ready",apiKey:n.apiKey},t.origin),!sh()&&o.getters["frames/isLeader"]()&&b1(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",a);(t=n).isDebuggingEnabled=(e=!1)=>sh(e),n.enableDebugging=b1,n.disableDebugging=w1,n.addDebuggingFunctions=y1},teardown:function(){La("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",a),t.debugging&&t.debugging.teardown&&t.debugging.teardown();w1()}};function a(e){var{blockedURI:e,documentURI:t,originalPolicy:n,violatedDirective:i}=e;e&&-1!==e.indexOf("pendo")&&o.dispatch("debugger/onCspError",{blockedURI:e,documentURI:t,originalPolicy:n,violatedDirective:i})}}(),_1=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 I="errorClickLogging",_=1500;let E=!1;return{name:"FrustrationEvent",initialize:function(e,t){S=e,c=S._,i=t,a=0,l=[],f=[],y={},E=i.ConfigReader.get(I),this.detachErrorEvent=i.attachEvent(window,"error",L,!0),this.detachDocumentEvents=function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange","visibilitychange","selectionchange","scroll"],t=[];for(var n=0;n<e.length;n++)switch(e[n]){case"selectionchange":t.push(i.attachEvent(window,e[n],x,!0));break;case"visibilitychange":t.push(i.attachEvent(window,e[n],()=>{T(250)},!0));break;default:t.push(i.attachEvent(window,e[n],T,!0))}return t}(),i.Events.on("eventCaptured",$),i.agentStorage.registry.addSession(w),S.sniffer.MutationObserver&&(e=dt("MutationObserver"),(n=new e(k)).observe(S.dom.getBody(),{childList:!0,attributes:!0,subtree:!0}))},teardown:function(){i.Events.off("eventCaptured",$),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:R,getErrorEventTarget:M,checkErrorEvent:L,observeDOMMutation:k,checkFrustrationEvent:$};function C(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()){(l=c.filter(l,e=>t-e.timestamp<=p)).length&&Dt(C,p)}function T(e=g){v=!1,c.each(y,e=>{clearTimeout(e)}),y={},Dt(()=>{v=!0},e)}function x(){var e=document.getSelection().toString();(b||e.length)&&(T(),b=!!e.length)}function k(e){e.length&&T()}function t(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function A(e){return e&&t(e.element)}function O(e,t){var{frustrationTypes:n=[]}=e;c.contains(n,t)||(n.push(t),e.frustrationTypes=n)}function R(e,t){let n;var{detail:i={}}=t;(n=(A(i)&&i.error?i.error:t).message)&&n.length>_&&(n=n.substring(0,_)),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=Dt(()=>{delete y[o],O(r,"deadClick")},g);y[o]=o}l.length>h&&l.pop(),l.unshift({target:t.target,activeElement:document.activeElement,browser_time:e.browser_time,timestamp:t.timeStamp}),Dt(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,O(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&&(O(e,"errorClick"),E)&&R(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)&&O(e,"uTurn"),2===r.length&&r.shift(),r.push({url:e.url,browser_time:e.browser_time}),e=r,i.sessionStorage.setItem(w,JSON.stringify(e))}function $(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||T(),c.has(e,"target")&&c.contains(m,e.target.tagName));"focus"===t.type&&e&&T()}}(),E1=function(){let n,i,r,o;const a=[];let e=[];return{name:"EmbeddedGuides",activeEmbeddedGuides:a,initialize:function(e,t){n=t,i=e,o=i._,function(e){e.getEmbeddedGuides=C1,e.getActiveEmbeddedGuides=T1}(e),r=function({store:r,globalPendo:o}){const a=o["_"];return{show:function(e){var t=a.first(this.steps),n=a.map(this.steps,function({id:e}){return e}),n=a.pick(r.state.guideState.steps,n);let i=null;return a.isEmpty(n)||(i=a.max(n,function({time:e}){return e||0})),(this.nextStep(i)||t).show(e)},isShownInThisFrame:function(){return a.any(this.steps,function(e){return e.isRendered()||e.isLocked()})},getActiveStep:function(){return this?a.find(this.steps,function(e){return e.isShown()}):null},handleShow: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()},shouldAutoDisplay:function(){return this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||a.all(this.steps,function(e){return e.shouldRepeat()||!e.isSnoozed()&&"dismissed"!==e.seenState})}}}({store:n.store,globalPendo:i}),n.Events.on("deliverablesLoaded",d),n.Events.on("guideLoopStopped",u),n.Events.on("guideListChanged",h),n.GuideLoop.addUpdatePhase(s),n.guides.addProcessor(c),n.GuideActivity.registerGuideResolver(p),this.removeResizeEvent=e.attachEvent(window,"resize",l)},teardown:function(){d(),n.Events.off("deliverablesLoaded",d),n.Events.off("guideLoopStopped",u),n.Events.off("guideListChanged",h),n.GuideLoop.removeUpdatePhase(s),n.guides.removeProcessor(c),n.GuideActivity.removeGuideResolver(p),this.removeResizeEvent&&this.removeResizeEvent();e.length=0}};function s(){o.forEach(a,function(e){e.handleShow()})}function u(){o.forEach(a,function(e){e.isShownInThisFrame()&&e.hide()})}function d(){e=o.toArray(a),n.guides.removeDisplayableGuides("embeddedGuides"),a.length=0}function c(t){var e;return!(e=t)||!e.launchMethod||"embed"!==e.launchMethod||(o.some(a,({id:e})=>e===t.id)||a.push(t),!1)}function l(){Om()||o.forEach(a,function(e){e=e.getActiveStep();e&&!i.ignoreResize&&e.redraw()})}function p(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)?p(n.parentElem):null}return null}function h(){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){Object.assign(e,r),o.map(e.steps,function(e){var t=function({pluginApi:n}){return this._onShown||Object.defineProperty(this,"_onShown",{value:this.onShown,writable:!1,configurable:!1}),this._onShown?{onShown:function(e){var t=!this.lastSeenAt||!!n.ConfigReader.get("enableAllEmbeddedGuideEvents");return this._onShown(e,t)}}:null}.call(e,{pluginApi:n,_:o});Object.assign(e,t)})})}}();function C1(){return E1.activeEmbeddedGuides}function T1(){return E1.activeEmbeddedGuides.filter(e=>e.isShown())}const x1="sessionId";class k1{constructor(){this.name="SessionManager"}initialize(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"eventCaptured",E.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",18e5),this.api.agentStorage.registry.addLocal(x1)}teardown(){E.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0}isExpired(e,t){e=E.get(e,"timestamp");return!!(e&&t-e>this.inactivityDuration)}eventCaptured(t){if(t&&t.data&&t.data.length){var t=t.data[0],n=t.browser_time||(new Date).getTime();let e=this.sessionInfo();this.isExpired(e,n)&&(e=this.clearSessionInfo(),this.api.Events.sessionChanged.trigger()),this.storeLastInteractionEventInformation(e,n),t.sessionId=e.sessionId}}sessionInfo(e=this.pendo.randomString(16)){let t=this.api.agentStorage.read(x1);return t||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(x1,t)),JSON.parse(t)}clearSessionInfo(){return this.api.agentStorage.clear(x1),this.sessionInfo()}storeLastInteractionEventInformation(e,t){e.timestamp=t,this.api.agentStorage.write(x1,JSON.stringify(e))}}var A1=new k1;function O1(e,t,s,u){return new(s=s||Jt)(function(n,i){function r(e){try{a(u.next(e))}catch(t){i(t)}}function o(e){try{a(u["throw"](e))}catch(t){i(t)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}a((u=u.apply(e,t||[])).next())})}class R1{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 O1(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.get(t);this.segmentsPayload(e.data)})}postLoad(t,n){return O1(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.postJSON(t,n);this.segmentsPayload(e.data)})}}var N1=new R1;const M1=["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"],L1=new RegExp(`(${M1.join("|")})`,"i"),P1=["facebook","twitter","linkedin","instagram","pinterest","tiktok","snapchat"],$1=new RegExp(`(${P1.join("|")})`,"i"),F1=["youtube","vimeo","dailymotion","twitch","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"],D1=new RegExp(`(${F1.join("|")})`,"i");const U1=new RegExp(`(${["amazon","ebay","walmart","etsy","shopify","shop","target","bestbuy","costco"].join("|")})`,"i");const G1=new RegExp(`(${["google performance max","microsoft audience network","facebook audience network"].join("|")})`,"i");function j1(e,t){return"self"!==t&&"direct"!==t&&null!==t.match(e)}function B1({referrer:e,currentHost:t}){if(!e||""===e)return"direct";e=new qn(e).hostname;let n="self";return n=e!==t?null==e?void 0:e.toLowerCase():n}const z1=new RegExp("^(.*cp.*|ppc|retargeting)$"),H1=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i"),W1=[["Email",({source:e,medium:t,referrer:n})=>"direct"===n&&(null!==t.match(H1)||null!==e.match(H1)||"newsletter"===t)],["Paid Search",({source:e,medium:t,gclid:n,_:i})=>n||"paid-search"===t||t.match(z1)&&i.contains(M1,e)],["Organic Search",({source:e,medium:t,referrer:n,_:i})=>"organic"===t&&i.contains(M1,e)||!t&&j1(L1,n)],["Display",({medium:e,_:t})=>t.contains(["display","cpm","banner","interstitial","expandable","programmatic"],e)],["Paid Social",({source:e,medium:t,fbclid:n,_:i})=>n||"paid-social"===t||t.match(z1)&&i.contains(P1,e)],["Organic Social",({source:e,medium:t,referrer:n,_:i})=>!t&&j1($1,n)||"social"===t||i.contains(P1,e)],["Paid Shopping",({medium:e})=>"shopping"==e||"paid-shopping"==e],["Organic Shopping",({medium:e,referrer:t})=>"organic-shopping"===e||!e&&j1(U1,t)],["Paid Video",({medium:e,source:t,_:n})=>"paid-video"==e||!e.match(z1)&&n.contains(F1,t)],["Organic Video",({medium:e,referrer:t})=>"video"===e||!e&&j1(D1,t)],["Affiliates",({medium:e})=>"affiliate"===e||"partner"===e],["Audio",({medium:e})=>"podcast"===e||"audio"===e],["Cross-network",({source:e,medium:t})=>"cross-network"===t||e.match(G1)],["Other Advertising",({medium:e})=>"cpv"===e||"cpa"===e],["SMS",({source:e,medium:t})=>"sms"===e||"sms"===t],["Push Notifications",({source:e,medium:t})=>t.endsWith("push")||0<=t.indexOf("notification")||"firebase"===e],["Referral",({medium:e,referrer:t})=>"referral"===e||!!t&&"self"!==t&&"direct"!==t],["Paid Other",({medium:e})=>"paid-other"==e||e.match(z1)],["Other",({medium:e})=>!!e],["Direct",({source:e,medium:t})=>!t&&!e]],q1="utm",V1="enableFullUtmReferrer";class K1{constructor(){this.name="WebAnalytics"}initialize(e,t){this.pendo=e;var n=(this.api=t)["ConfigReader"],n=(n.addOption(V1,[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(q1),this.storeParameters(i,t.agentStorage)}extractParameters(e,t){var n=B1({referrer:t,currentHost:new qn(e).hostname});if("self"!==n){e=this.api.util.parseUrl(e);if(!e)return{};var e=e["query"],i=e.utm_source,r=e.utm_medium,o=e.utm_campaign,a=e.utm_term,s=e.utm_content,u=e.gclid,e=e.fbclid;if(this.pendo._.compact([i,r,o,a,s,u]).length)return(i={source:i,medium:r,campaign:o,term:a,content:s}).channel=this.calculateUtmChannel({referrerValue:n,utm:i,gclid:u,fbclid:e}),t&&this.api.ConfigReader.get(V1)?i.referrer=t:"direct"!==n&&(i.referrer=n),i}return{}}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(W1,e=>e[1](o));return e?e[0]:"Direct"}storeParameters(e,t){0<this.pendo._.size(e)&&(this.utm=e,t.write(q1,JSON.stringify(e)))}loadParameters(e){e=e.read(q1);return e?JSON.parse(e):null}teardown(){for(var e of this.subscriptions)e();this.subscriptions.length=0,this.utm=null}addUtmToEvent(e){this.utm&&(e.data[0].utm=this.utm)}sessionChanged(){this.utm=null;var e=this.api.agentStorage,t=(e.clear(q1),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)}}var J1=new K1;const Y1={children:[],props:{"class":"_pendo-step-container","data-layout":"tooltipBlank",id:"pendo-base"},type:"div"},Z1={css:[],props:{scoped:"scoped",type:"text/css"},type:"style"},X1={children:[],props:{"class":"_pendo-step-container-size","data-relative-alignment":!0,"data-vertical-alignment":"Relative to Element",id:"pendo-g-validation-tooltip-container",style:{display:"block",width:"300px","z-index":3e5}},type:"div"},Q1={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"},ew={children:[],props:{"class":"_pendo-text-paragraph",style:{}},type:"div"};function tw(e,t){return{content:t,props:{id:"text-"+e,"class":"_pendo-text-plain",style:{color:"gray",margin:0}},type:"p"}}function nw(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 iw=`
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=y.defer(),xr.get(c(t.domUrl)).then(function(e){r.domJson=Bd(e.data);var e=e.data;e=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),m.resourceFetchFail.trigger(t,e),r.deferred.domJson.reject("Failed to load content")}),i.push(r.deferred.domJson.promise),o=!0):t.domJsonpUrl&&(r.deferred.domJson=y.defer(),n=Ta(c(t.domJsonpUrl),function(e){k.removeNode(n),e&&m.resourceFetchFail.trigger(t,e)},!0),i.push(r.deferred.domJson.promise),o=!0),t.contentUrlJs&&!f.get("preventCodeInjection")){r.deferred.content=y.defer();var a=Ta(c(function(e){if(ut()){var t=e.replace(/^https?:\/\/[^/]+\/guide-content\//,"").split("/"),n=t[0],n=$A.get("$Resource.pendoGuide"+function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",n=e.length,i=0,r=0,o="",a=0;a<n;a++)for(r=r<<8|e[a],i+=8;5<=i;)o+=t[r>>>i-5&31],i-=5;return 0<i&&(o+=t[r<<5-i&31]),o}(Ze(n)));if(E.isString(n))return n+"/"+t.join("/")}return e}(t.contentUrlJs)),function(e){k.removeNode(a),e&&m.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise),t.contentUrlCss&&(r.deferred.css=y.defer(),Ta({url:c(t.contentUrlCss),type:"text/css"},function(){r.deferred.css.resolve()}),i.push(r.deferred.css.promise))}else if(t.contentUrl&&!f.get("preventCodeInjection")){r.deferred.content=y.defer();var s=Ta(function(e,t){if(!E.isString(e))return e;var n=E.indexOf(e,"?");return n<0?e+t:e.substring(0,n)+t+e.substring(n)}(c(t.contentUrl),".js"),function(e){k.removeNode(s),e&&m.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise)}else if(!o)return y.reject("fetchedDomContent is still false");r.deferred.promise=y.all(i).then(function(){return E.omit(r,"deferred")})}return d[t.id].deferred.promise}catch(u){throw m.resourceFetchFail.trigger(t,u),u}},reset:function(){d={}},guideContent:function(e,t,n,i,r){var o,a,s;E.isString(n)&&(o=n,a=e,s=t,n=E.reduce(u,(e,t)=>t(e,a,s),o),E.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?E.template(n):E.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=Bd(n),e.deferred.domJson.resolve())}}}(),Hd=(Wd.state={},Wd.queue=[],Wd.pending=function(){return E.reduce(Wd.state,(e,t)=>e+(t.loaded?0:1),0)},Wd.reset=function(){zd.reset(),Wd.state={},Wd.queue=[]},Wd.prefetch=function(e){var t;return Wd.hasContent(e)?E.get(Wd.state[qd(e)],"promise"):(t=y.defer(),Wd.queue.push([t,e]),t.promise)},Wd.processPrefetch=function(e=10){return Wd.queue.length?(e=Wd.queue.splice(0,Math.max(e-Wd.pending(),0)),y.all(E.map(e,t=>Wd.fetchContent(t[1]).then(e=>{t[0].resolve(e)})["catch"](e=>{t[0].reject(e)})))):y.resolve()},Wd.fetchContent=function(t){var e=qd(t);if(!(i=Wd.state[e])){var n,i={},r=t.getGuide();if(r.control)return y.resolve();r&&r.language&&(n=r.language);var r=t.guideId+t.id,o=E.extend({id:r,language:n,guideId:t.guideId},E.pick(t,"contentUrl","contentUrlCss","contentUrlJs","domJsonpUrl","domUrl","domHash","contentHash","contentJsHash"));i.promise=xd.verify(o).then(function(){return i.verified=!0,zd.load(o)}).then(function(e){return i.loaded=!0,e}),Wd.state[e]=i}return i.promise.then(function(e){E.extend(t,e)})},Wd.hasContent=function(e){return ge(e.content)||ge(e.domJson)},Wd);function Wd(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(E.extend(i,{fetchContent:function(e=!1){return e?Wd.prefetch(i):Wd.fetchContent(i)}}),i.after("render",function(e){!function(e){var t=E.indexOf(n.steps,i);E.chain(n.steps).rest(t+1).first(e).each(function(e){E.isFunction(e.fetchContent)&&e.fetchContent()}).value()}(t)})),i}function qd(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}var Vd=function(){var e=m.runtime;const r=[];function o(e,n,i,r){return E.filter(e,function(e){if(E.isFunction(e[r])){if(E.isFunction(e.test))try{return e.test(n,i,I)}catch(t){return C.critical("Error in global script test code block",{error:t}),!1}return E.isRegExp(e.regex)?e.regex.test(i.name)||e.regex.test(n.name):!0}})}function t(e,t,n="script"){var i=[];return"script"===n&&E.isFunction(e.script)&&i.push(e.script),E.size(r)&&(e=o(r,e,t,n),E.each(e,function(e){i.push(e[n])})),i}function i(n,i,r){const o=r.guide;o&&E.all(t(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=pn.call({}),s={beforeUnmount:{type:"trigger",fromUnmount:!1},beforeUpdate:{type:"trigger",fromUnmount:!1},updated:{type:"trigger",fromUnmount:!1},unmounted:{type:"trigger",fromUnmount:!0},advanced:{type:"trigger",fromUnmount:!0},dismissed:{type:"trigger",fromUnmount:!0},snoozed:{type:"trigger",fromUnmount:!0},hidden:{type:"trigger",fromUnmount:!0},beforeMount:{type:"triggerCancelable",fromUnmount:!1},beforeAdvance:{type:"triggerCancelable",fromUnmount:!1},beforePrevious:{type:"triggerCancelable",fromUnmount:!1},beforeDismiss:{type:"triggerCancelable",fromUnmount:!1},beforeSnooze:{type:"triggerCancelable",fromUnmount:!1}};function u(e){return s[e]}function n(n){this.step=n,E.each(["read","write","clear"],function(t){this[t]=h[t],this[t+"ByGuide"]=function(){var e=E.first(arguments)+":"+E.get(n,"guide.id");return h[t].apply(this,[e].concat(E.rest(arguments)))}},this);var e=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=E.partial(a.off,"afterUnmounted",e),a.on("afterUnmounted",e)}return e.on(function(e){var t,n=e.data[0];if(e.step=n,delete e.data,u(e.type))return-1<E.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}),n.prototype.on=function(e,t){var n,i;u(e)?(s[e].fromUnmount&&(t=E.once(t)),n=this.step,i=t,t=Wn(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=E.compose(this.purge,E.partial(a.off,e,t))):C.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)},{initialize:function(){var e=f.get("guides.globalScripts");E.each(e,Vd.addGlobalScript)},teardown:function(){E.each(r,Vd.removeGlobalScript)},addGlobalScript:function(e){var t;e=function(t){const e=E.without(E.keys(t),"script","test","regex","beforeMount");if(e.length){const n=t.script;t.script=function(){if(E.each(e,function(e){u(e)&&this.on(e,t[e])},this),E.isFunction(n))return n.apply(this,arguments)}}return t}(e),t=e,!E.isFunction(t.script)&&!E.isFunction(t.beforeMount)||t.test&&!E.isFunction(t.test)||t.regex&&!E.isRegExp(t.regex)?C.critical("Error adding invalid GlobalScript via API"):r.push(e)},removeGlobalScript:function(e){0<=(e=E.indexOf(r,e))&&r.splice(e,1)},getContext:function(e){return new n(e)},runCustomScripts:function(i,r){E.each(t(i,r),function(e){try{var t=Vd.getContext(i);e.call(t,i,r,I)}catch(n){C.critical("Exception thrown running code block for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:n})}})}}}();function Kd(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?E.find(e.children,Kd):void 0}function Jd(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=Jd(e.children[n],t);if(i)return i}return!1}function Zd(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=Zd(e,t.children[n]);if(i)return i}}function Yd(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 Xd={buildNodesFromTemplate:function(e,t,n,i,r){var o=i||R,a=r||I.BuildingBlockGuides.buildNodeFromJSON;switch(e){case"pendo_resource_center_module_list_item":return function(p,h,f,g){var e=p.templateChildren;return E.reduce(e,function(e,t,n){var i=P.findResourceCenterHomeView(f),r=E.find(f,function(e){return e.id===t.id});if(I.designer)r=t,i=E.find(f,function(e){return E.get(e,"attributes.resourceCenter.isTopLevel")});else{if(!r)return e;if(!r.hasResourceCenterContent)return E.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"]}),I.designer||u.actions.push(d),E.get(i,"attributes.notificationBubble")),c=E.get(i,"attributes.notifications"),d=(d&&c&&("AnnouncementsModule"===E.get(r,"attributes.resourceCenter.moduleId")&&(o=r.id),o="chat"===E.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=Jd(c,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-row")}))&&(s=E.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)),Jd(u=ec(u,t,u.props.id,n),function(e){e=E.get(e,"props.class");return e&&0<=e.indexOf("_pendo-resource-center-module-list-item-text-container")})),i=Jd(u,function(e){e=E.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),l=Jd(u,function(e){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 E.reduce(e,function(e,t,n){var i,r=tc(s,t);return r?(i=JSON.parse(JSON.stringify(o)),t.keywords&&(i.props["data-_pendo-text-list-item-1"]=t.keywords),delete i.templateChildren,i.props.id=i.props.id+"-"+n,i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},I.designer||i.actions.push(r),i=ec(i,t,i.props.id,n),e.concat(u(i,a,s))):e},[])}(t,n,o,a);case"pendo_task_list":return function(e,t,n,i){var r=e.templateChildren;E.filter(r,function(e){return tc(n,e)}).length?(e.children=E.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=E.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 E.reduce(e,function(e,t,n){var i,r,o,a=tc(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"},I.designer||i.actions.push(r),r=a.getTotalSteps(),o=a.getSeenSteps(),a.isComplete()&&(o=r),a=parseInt(o/r*100,10),Jd(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=Qd(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=(E.forEach(r,function(e){e=tc(n,e);e&&(e.isComplete()?(o+=e.getTotalSteps(),a+=e.getTotalSteps()):(o+=e.getTotalSteps(),a+=e.getSeenSteps()))}),parseInt(a/o*100,10));isNaN(r)&&(r=0);r={totalPercentComplete:r+"%"};return Jd(e=ec(e=JSON.parse(JSON.stringify(e)),r),function(e){return e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-progress-bar-fill")}).props.style.width=r.totalPercentComplete,[i(e,t,n)]}(t,n,o,a);case"pendo_task_list_fallback_text":return[a(t,n,o)];case"pendo_resource_center_announcement_item":return function(l,e,n,p){e=e.getGuide().attributes.resourceCenter.children,e=E.reduce(e,function(e,t){t=tc(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!E.every(e,function(e){e=e.steps[0];return!!Hd.hasContent(e)}))return[];var t=P.getResourceCenter(),h=E.get(t,"attributes.notificationBubble");h&&(delete h.dir,"rtl"===l.props["data-localization-direction"])&&(h.dir="rtl");return E.map(e,function(e,t){var n,i,r,o,a,s,u,d="whatsnew"===E.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=Ud(r=e),(u=n.steps[0]).render(),Vd.runCustomScripts(u,n),i=(n=u.guideElement)[0].id,Yd(f,"pendo-whats-new-style-"+i,"#"+i+" h1::after { display:none; }",n[0]),d&&((o=nc(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=Ud(t=e),s=t.steps[0],Vd.runCustomScripts(s,u),u=JSON.parse(JSON.stringify(s.domJson)),d.children=[u],r&&(a=nc(r),u=Jd(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=Zd("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():E.find(n,function(e){return e.id===t.guideId}),o=E.get(r,"attributes.dates."+r.language,!1);o=o?{showsAfter:o}:(o=E.get(r,"currentFirstEligibleToBeSeenAt")||E.get(r,"showsAfter")||E.get(r,"publishedAt"),o=o?new Date(o):new Date,r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][o.getMonth()]+" "+o.getDate()+", "+o.getFullYear(),{showsAfter:r});return r=ec(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:nc,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return E.reduce(e,function(e,t,n){t=tc(i,t);return t&&e.push(t),e},[])}};function Qd(e,n){return e.replace(/<%=\s*([A-Za-z_0-9$]+)\s*%>/gi,function(e,t){return E.isNull(n[t])||E.isUndefined(n[t])?e:n[t]})}function ec(e,t,n,i){if(e.content&&(e.content=Qd(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?Qd(e.props["aria-label"],t):""),e.props.id)&&i!==undefined&&e.props.id!==n&&(e.props.id=e.props.id+"-"+i),e.children)for(var r=0;r<e.children.length;r++)ec(e.children[r],t,n,i);return e}function tc(e,t){e=E.find(e,function(e){return e.id===(t.id||t)});if(I.designer)return t;if(e){if(!e.ineligibleForRC)return e;e.control&&e.steps[0].onControlGuide("control")}}function nc(e){var t={left:"0px"};return"rtl"===e.dir&&(t={right:"0px"}),{type:"div",children:[],props:{"class":"pendo-unread-announcement-mini-bubble",style:Object.assign(Object.assign({position:"absolute","border-radius":"5px",height:"10px",width:"10px","line-height":"0px"},t),{top:"30px","box-sizing":"content-box","background-color":e["background-color"],"z-index":"10"})}}}var ic={buildSvgNode:function(e,t){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return rc(t)}},createProgressCircleSvg:rc};function rc(e){var t,n,i,r,o,a,s;return _e(9)?(n=(t=(t=e).svgAttributes).fillCircle.stroke,i=t.backgroundCircle.stroke,t=100<=(t.fillCircle.percentComplete||0),r=k(J(I).createHTML('<div aria-hidden="true" focusable="false" class="pendo-progress-circle-ie"><div class="pendo-progress-circle-fill"></div></div>')),o=r.find(".pendo-progress-circle-fill"),t?o.css({border:"3px solid "+n,height:"10px",width:"10px"}):o.css({border:"3px solid "+i,height:"10px",width:"10px"}),r):100<=((t=e.svgAttributes).fillCircle.percentComplete||0)?(n=(n=t).fillCircle.stroke,(i=k(J(I).createHTML('<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" class="pendo-progress-circle-fill" viewBox="0 0 24 24" fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>')))[0].setAttributeNS(null,"stroke",n),i):(r=(o=t).fillCircle.stroke,e=o.backgroundCircle.stroke,o=o.fillCircle.percentComplete||0,a='<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" version="1.1" viewBox="0 0 40 40" preserveAspectRatio="xMidYMid"><circle class="pendo-progress-circle-background" cx="20" cy="20" r="'+(a=100/(2*Math.PI))+'" stroke-width="6px" stroke-linecap="round" fill="none"></circle><circle class="pendo-progress-circle-fill" cx="20" cy="20" r="'+a+'" stroke-width="6px" stroke-linecap="round" transform="rotate(-90 20 20)" fill="none"></circle></svg>',s=(a=k(J(I).createHTML(a))).find(".pendo-progress-circle-fill")[0],a.find(".pendo-progress-circle-background")[0].setAttributeNS(null,"stroke",e),o<=0?s.setAttributeNS(null,"stroke-width","0px"):(s.setAttributeNS(null,"stroke",r),s.setAttributeNS(null,"stroke-dasharray",o+", 100")),a)}var oc=function(e,t){return e<t},ac=E.negate(oc);function sc(){var e=Ko();return vo(e)?Yo(e):((e=jo()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function uc(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 dc(e){var t;if(e&&e.length)return t=vo(Ko())?Yo:wo,(e=E.reduce(e,function(n,e){var i;return ca(e)?(i=t(e))?(E.each([["top",oc],["right",ac],["bottom",ac],["left",oc]],function(e){var t=e[0],e=e[1];n[t]&&!e(i[t],n[t])||(n[t]=i[t])}),n):void 0:n},{})).height=e.bottom-e.top,e.width=e.right-e.left,e}function cc(e,t){var n=sc(),e=dc(e)||{top:0,left:0,right:n.width,bottom:n.height,width:0,height:0};return{viewport:n,box:e,overlays:uc(n,e,t)}}function lc(e){var t=[],n=E.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==Ko()){t.push(e.element);for(var i=n.additionalElements.replace(/\s/g,"").split(","),r=0;r<n.additionalElements.length;r++)try{var o=k(i[r]);o&&E.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,hc=function(e){var t=!E.isEqual(e,pc);return pc=e,t},fc=null,gc=function(e){var t=!E.isEqual(e,fc);return fc=e,t},mc=null,vc=function(e){var t=!E.isEqual(e,mc);return mc=e,t},yc=function(e){return gc(e.viewport)||hc(e.box)||vc(e.overlays)};function bc(e){try{var t=cc(lc(e),E.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));yc(t)&&E.each(e.backdrop.children,function(n){var e=n.getAttribute("pendo-region"),e=t.overlays[e];E.each(e,function(e,t){n.style[t]=e+"px"})})}catch(n){C.info("Failed to update BlockOut ui",{contexts:["error"]})}}function wc(e){try{var t,n,i,r;if(!(0<k("._pendo-guide-backdrop_").length))return t=cc(lc(e),E.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),yc(t),n={"z-index":1e4,position:"fixed"},i=[],E.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,E.extend({},e,n));i.push(t)}),o=i,a=Zd("pendo-backdrop",e.domJson),E.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_"),E.each(a.props,function(n,i){E.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 Sc="top",Ic="bottom",_c="left",Ec="right",Cc="center";function Tc(e,t,n){return n===Ec||n===_c?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?Cc:n<e/2?Ec:_c)}var xc={createBBTooltip:kc,getBBTooltipDimensions:Nc,determineBBHorizontalBias:Tc,determineTooltipPosition:Mc,positionBBTooltipWithBias:Lc,calculateToolTipPositionForTopBottom:Pc,calculateToolTipPositionForLeftRight:Fc,buildTooltipCaret:$c,styleTopOrBottomCaret:Uc,styleLeftOrRightCaret:Gc,buildBorderCaret:jc,determineBorderCaretColor:zc,placeBBTooltip:function(e,t){var n,i,r,o,a,t=t||function(e){var t,n;if(e.guideElement)return t="pendo-resource-center-container"===e.guideElement.attr("id"),n=Kd(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}(e);t&&(i=e.element||ud(e),n=Ho(i),"none"!==O(e.elements[0]).display)&&(i=wo(i),a=e.attributes.layoutDir,e=e.guideElement,r=k(t).find("#pendo-guide-container"),o=r[0].style,t=O(t),t={height:parseInt(t.height,10),width:parseInt(t.width,10)},r={height:parseInt(r[0].getAttribute("data-caret-height"),10)||0,width:parseInt(r[0].getAttribute("data-caret-width"),10)||0,backgroundColor:r[0].style["background-color"],offset:10,borderColor:o.borderColor,borderWidth:parseInt(o.borderWidth,10)},o=this.getBBTooltipDimensions(n,t,r,a,i),r.height&&r.width&&(t=e.find(".pendo-tooltip-caret")[0],a=e.find(".pendo-tooltip-caret-border")[0],t&&Dc(t,o,r),a)&&Bc(a,r,o.layoutDir,t),e.css({top:o.top,left:o.left,position:n.fixed?"fixed":"absolute"}))},attachBBAdvanceActions:Rc,attachScrollHandlers:Ac,isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!E.isObject(e.domJson)||!(e=Kd(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForTooltip:function(e,t,n){kc(t,e.element,e,n),e.hasBeenScrolledTo||(pa(e.element),ld(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)}};function kc(e,t,n,i){var r,o,a,s,u,d;if(n.guideElement)return(r=n.guideElement).addClass(od()?ed:Qu),0===(o=Ho(t)).height&&0===o.width?null:(t=wo(t),(e=Jd(e,function(e){return"pendo-guide-container"===e.props.id}))?(d=n.attributes.layoutDir,u={height:i.offsetHeight,width:i.offsetWidth},a={height:parseInt(e.props["data-caret-height"],10)||0,width:parseInt(e.props["data-caret-width"],10)||0,backgroundColor:e.props.style["background-color"],offset:10},Rc(n),e.props.style.border&&(e=e.props.style.border.split(" "),a.borderColor=e[2],a.borderWidth=parseInt(e[0],10)),e=Nc(o,u,a,d,t),n&&(n.dim=e),n&&E.isFunction(n.getGuide)&&(s=n.getGuide()),u=E.get(s,"attributes.resourceCenter"),o.fixed?(r.css({position:"fixed"}),i.style.position="absolute"):n&&u||(i.style.position="absolute"),a.height&&a.width&&$c(r,e,a),d="300000",i&&i.style&&i.style["z-index"]&&(d=i.style["z-index"]),r.css({"z-index":d}),u||r.css({height:"auto",width:"auto",overflow:"visible"}),n.elementPathRule&&r.css({left:e.left,top:e.top,position:o.fixed?"fixed":"absolute"}),"top"===e.layoutDir&&e.hbias===_c&&r.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),Ac(n,Hc),r[0]):void 0)}function Ac(e,t){e&&E.isFunction(e.attachEvent)&&(rd()&&e.element===k.getBody()||(t=E.throttle(E.bind(t,e,e),10),e.attachEvent(window,"scroll",t,!0),aa(E.bind(e.attachEvent,e),e.targetElement,t)))}function Oc(t,n){var e=k(n.elementPathRule)[0];n.attachEvent(e,t,function(e){k.data.set(e,"advanced",!0),wg(t,n)})}function Rc(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?Oc("mouseover",e):e.attributes.advanceActions.elementClick&&Oc("click",e))}function Nc(e,t,n,i,r){var o,a,s=jo(),i=i||"auto",t={width:Math.min(t.width,s.width),height:t.height},u=(t.layoutDir=i,t.hbias=Tc(e,s,i),t.vbias=(o=e,u=s,(a=i)===Sc||a===Ic?a:(a=o.top,(u=(o=u.height)/3)<a&&a<2*u?Cc:a<o/2?Ic:Sc)),t.layoutDir=Mc(t,s,r,i),Lc(t,e,s));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 Mc(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===Cc)&&(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!==Cc&&(c=e.hbias),u&&d||(d||(c="right"),u)||(c="left")),(c=c&&"bottom"!==c||!s||a?c:"top")||e.hbias)||"bottom")}function Lc(e,t,n){return"top"===e.layoutDir||"bottom"===e.layoutDir?Pc(e,n,t,e.layoutDir,e.hbias):Fc(e,n,t,e.vbias)}function Pc(e,t,n,i,r){var o=e.height,a=e.width,s={top:null,left:null};return"bottom"===i?s.top=n.top+n.height:"top"===i&&(s.top=n.top-o),"right"===r?((i=n.left+n.width/2)+e.width>t.width&&(i-=i+e.width-t.width),s.left=i):s.left="left"===r?n.left-a+n.width/2:n.left+n.width/2-a/2,s}function Fc(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 $c(e,t,n){var i=document.createElement("div"),e=(i.setAttribute("class","pendo-tooltip-caret pendo-tooltip-caret--"+t.layoutDir),i.style.position="absolute",i.style.zIndex=11,Dc(i,t,n),e.find("#pendo-guide-container")[0].parentNode);e.appendChild(i),n.borderWidth&&(i=jc(i,n,t.layoutDir),e.appendChild(i))}function Dc(e,t,n){"top"!==t.layoutDir&&"bottom"!==t.layoutDir||Uc(e,t,n),"left"!==t.layoutDir&&"right"!==t.layoutDir||Gc(e,t,n)}function Uc(e,t,n){var i,r=jo();return e.style["border-left"]=n.width+"px solid transparent",e.style["border-right"]=n.width+"px solid transparent",e.style.right="",t.hbias===_c?(i=t.width-2*n.width-n.offset-n.borderWidth,e.style.left=i+"px",t.left+=n.offset+n.width+n.borderWidth):t.hbias===Ec?(e.style.left=n.offset+n.borderWidth+"px",t.left-=n.offset+n.width+n.borderWidth,t.left+t.width>r.width&&(t.left=t.left-(t.left+t.width-r.width)),t.left=Math.max(0,t.left)):e.style.left=t.width/2-n.width+"px","bottom"===t.layoutDir&&(e.style["border-bottom"]=n.height+"px solid "+n.backgroundColor,e.style["border-top"]="",i=-1*n.height,n.borderWidth&&(i+=n.borderWidth),e.style.top=i+"px",e.style.bottom=""),"top"===t.layoutDir&&(e.style["border-top"]=n.height+"px solid "+n.backgroundColor,e.style["border-bottom"]="",r=-1*n.height,n.borderWidth&&(r+=n.borderWidth),e.style.bottom=r+"px",e.style.top=""),e}function Gc(e,t,n){var i,r=jo();return e.style["border-top"]=n.width+"px solid transparent",e.style["border-bottom"]=n.width+"px solid transparent",e.style.bottom="",t.vbias===Sc?(i=t.height-2*n.width-n.offset-n.borderWidth,e.style.top=i+"px",t.top+=n.offset+n.width+n.borderWidth):t.vbias===Ic?(e.style.top=n.offset+n.borderWidth+"px",t.top-=n.offset+n.width+n.borderWidth,t.top+t.height>r.height&&(t.top=t.top-(t.top+t.height-r.height)),t.top=Math.max(0,t.top)):e.style.top=t.height/2-n.width+"px","left"===t.layoutDir&&(e.style["border-left"]=n.height+"px solid "+n.backgroundColor,e.style["border-right"]="",i=-1*n.height,n.borderWidth&&(i+=n.borderWidth),e.style.right=i+"px",e.style.left=""),"right"===t.layoutDir&&(e.style["border-right"]=n.height+"px solid "+n.backgroundColor,e.style["border-left"]="",r=-1*n.height,n.borderWidth&&(r+=n.borderWidth),e.style.left=r+"px",e.style.right=""),e}function jc(e,t,n){var i=e.cloneNode();return i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=10,Bc(i,t,n,e),i}function Bc(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]=zc(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"),E.extend(e.style,r)}function zc(e,t){return"transparent"===e?e:t}function Hc(e){ca(e.element)?(xc.placeBBTooltip(e),k(e.elements[0]).css({display:"block"})):k(e.elements[0]).css({display:"none"})}function Wc(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=E.some(i,function(e){return e.parentNode===o.parentNode});if(!r){let e=t[0];r=o.parentNode.closest('[data-pendo-grow-height="true"]');if(r){if(!i.includes(r))continue;e=r}qc(o,e),i.push(o)}}}}function qc(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=O(o),r=parseInt(r.marginTop,10)+parseInt(r.marginBottom,10),n+=o.offsetHeight+r)}var a=e.offsetHeight,e=O(e),e=parseInt(e.paddingTop,10)+parseInt(e.paddingBottom,10),s=O(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 Vc(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(O(e).height,10),u=jo().height,d=parseInt(e.style.top,10),d=isNaN(d)?0:d,c=parseInt(e.style.bottom,10),(u=u-d-(c=isNaN(c)?0:c))<s&&(n.css({"max-height":u+"px",overflow:"auto"}),s=u),s!==o?(t.css({height:(d=a&&o?o:s)+r}),"Centered"!==(c=e.getAttribute("data-vertical-alignment"))&&"Left Aligned"!==c&&"Right Aligned"!==c||t.css({"margin-top":"-"+(u<s?u:d)/2+"px"})):t.css({height:i}))}function Kc(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(O(e).width,10)),o=jo().width-parseInt(e.style.left||0,10)-parseInt(e.style.right||0,10);if(o<r&&(t.css({"max-width":o+"px"}),r=o),!isNaN(i))switch(e.getAttribute("data-vertical-alignment")){case"Centered":case"Top Aligned":case"Bottom Aligned":var a=r/2;parseInt(n.css("margin-left"),10)!==a&&n.css({"margin-left":"-"+a+"px"});break;case"Right Aligned":case"Top Right Aligned":case"Bottom Right Aligned":a=i-r;parseInt(n.css("margin-right"),10)!==a&&n.css({"margin-right":"-"+a+"px"})}}}}function Jc(e,i){var e=E.isArray(e)?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=E.reduce(t,function(e,t){return e.concat(E.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&&Zc(E.reduce(t,function(e,t){var n,t=k(t),i=Qc(t[0]),i=i.marginLeft+i.marginRight,r=Xc(t);return r&&(n=r.paddingLeft+r.paddingRight,r=r.width-i-n,e.push({$blockElement:t,availableSpace:r})),e},[])),E.each(e,function(e){var t=e,t=((t=k("._pendo-open-text-poll-input",t))&&t.length&&E.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)),Qc(n[0])),r=e.marginLeft+e.marginRight,o=Xc(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&Yc(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),Zc({$blockElement:n,availableSpace:o}))}),e);(t=k(["._pendo-video","._pendo-image"].join(","),t))&&t.length&&E.each(t,function(e){var t=k(e),n=Qc(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=Xc(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&Yc(t,i,r,a),Zc({$blockElement:t,availableSpace:a}))})})}function Zc(e){E.isArray(e)||(e=[e]),E.each(e,function(e){e.$blockElement.css({"max-width":"none"})});var n=E.map(e,function(e){return Qc(e.$blockElement[0]).width});E.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function Yc(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 Xc(e){e=e.closest("._pendo-row");if(e){e=O(e[0]);if(e)return{width:parseFloat(e.width),paddingLeft:parseInt(e.paddingLeft,10),paddingRight:parseInt(e.paddingRight,10)}}}function Qc(e){e=O(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var el,M={calculateTotalOffsetWidth:il,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=il(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 E.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=il(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=il(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return E.filter(e,nl)},getPendoVisualElements:function(e){return E.filter(e,function(e){return!nl(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:nl,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=il(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=il(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=il(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=E.get(e.style,"width",""),s=O(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)||O(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(O(t).width,10),d=parseInt(O(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"!==E.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=E.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 E.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=wo(u)["width"],d=parseInt(d,10);o.rowWidthUsed+=d,o.rowWidthUsed>i&&0!==E.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&&(sl(e),M.flexElement(e,n))},flexElement:function(e,i){e=k("[data-pendo-display-flex]",e);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:sl};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 nl(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function il(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=wo(e)["width"],e=O(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function ol(e){al(e);var t=Yo(e);if(0===t.width||0===t.height)return!0;if(!e.style||"visible"!==e.style.visibility)for(var n=e,i=e.id||"",r=0;0!==i.indexOf("pendo-g-")&&(al(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function al(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function sl(e){var n="data-aspect-ratio",e=k("["+n+"]",e);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 ul(){return!I.designer&&f.get("disableGuidePseudoStyles")}function dl(e,t,n){return e&&e.templateName?Xd.buildNodesFromTemplate(e.templateName,e,t,n,pl):"style"===e.type&&ul()?[]:[pl(e,t,n)]}function cl(e,t,n,i){e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw i&&(e+=' for node type "'+i+'"'),C.info(e),new Error(e)}function ll(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=E.keys(n);return E.reduce(e,function(e,t){return s[o]&&s[o][t]&&cl(t,r,i,o),a[t]||u.test(t)||d.test(t)||cl(t,r,i),e[t]=n[t],e},{})}function pl(n,i,e){i=i||{id:"unknown",guideId:"unknown"},n.props=ll(n.props,i.id,i.guideId,n.type);var t,r=k(document.createElement(n.type));if(document.createElement("div").appendChild(r[0]),"script"===r[0].tagName.toLowerCase())return k(document.createElement("noscript"));if("pendo-backdrop"===(n.props&&n.props.id))return i.attributes&&i.attributes.blockOutUI&&i.attributes.blockOutUI.enabled&&xc.attachScrollHandlers(i,bc),wc(i);if(E.each(n.props,function(e,t){"style"===t?r.css(n.props.style):"data-pendo-code-block"!==t||!0!==e||f.get("preventCodeInjection")?r.attr(t,e):(t=i.getContent(),0!==Ye.call(t).length&&r.addClass("pendo-code-block").html(t))}),n.content&&r.text(n.content),"style"===n.type&&(I.designer||(n.css=function(e){for(var t=["button:focus"],n=[],i=0;i<e.length;i++)E.contains(t,e[i].selector)||n.push(e[i]);return n}(n.css)),(t=f.get("inlineStyleNonce"))&&r.attr("nonce",t),r.styleSheet?r.styleSheet.cssText=ml(n.css):r.text(ml(n.css))),n.svgWidgetId&&ic.buildSvgNode(n.svgWidgetId,n).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)gl(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(E.find(n.actions,function(e){return"dismissGuide"===e.action})&&!i.hasEscapeListener&&(i.hasEscapeListener=!0,i.attachEvent(window,"keyup",function(e){27===e.keyCode&&i.eventRouter.eventable.trigger("pendoEvent",{step:i,action:"dismissGuide"})},!0)),n.children)for(var s=oa(ad()),u=s!==document,d=0;d<n.children.length;d++){var c=dl(n.children[d],i,e);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){hl(e,i)}):hl(r[0],i),r}function hl(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++,fl(k(e),t))}function fl(e,i){e.on("load",function(){var e,t={},t=(!i.containerId&&i.domJson&&(t=Kd(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&&(Kc(t,i.guideElement),Jc(t,i.guideElement),M.flexAllThings(t,i),e=i.getGuide(),E.get(e,"attributes.isAnnouncement")||"AnnouncementsModule"===E.get(e,"attributes.resourceCenter.moduleId")||(Vc(t,i.guideElement),(e=n.children.item("pendo-guide-container"))&&e.style&&"auto"===e.style.overflow&&(Jc(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 gl(n,i,r){n.on(i.eventType,function(e){var t;i.designerAction?I.designerv2&&I.designerv2.designerActions&&I.designerv2.designerActions[i.action](n,i.parameters):(t={action:i.action,params:i.parameters,step:r,ignore:!!i.ignore,srcElement:e.srcElement},("showElements"!==i.action&&"hideElements"!==i.action||e.srcElement&&e.srcElement.getAttribute("id")===i.source||e.target&&e.target.getAttribute("id")===i.source)&&r.eventRouter.eventable.trigger("pendoEvent",t))})}function ml(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=ml(n[r].styles):E.each(n[r].styles,function(e,t){i+=t+":"+e,n[r].selector.match(/\d+%/)||(i+="!important;")}),i+="}";return i}function vl(t){E.each(document.head.childNodes,function(e){e&&k.hasClass(e,"pendo-style-"+t)&&Wo(e)})}var yl=function(){var e=window.navigator;return((E.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},bl="meta",wl=E.compose(JSON.parse,JSON.stringify),Sl=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()},Il=function(e={}){(e=E.isObject(e)?e:{}).jwt&&e.signingKeyName&&(t=fs.getJwtOptions(e,"updateOptions"))&&(fs.set(E.pick(e,"jwt","signingKeyName")),e=t),t=e,n=E.extend({},t.visitor),i=E.extend({},t.account),t=E.extend({},t.parentAccount),n.id===On&&(C.info("Missing visitor id."),delete n.id),Tn(i.id)&&Tn(t.id)&&(Mn(i.id)?t.id=i.id.split(Nn)[0]:i.id=""+t.id+Nn+i.id),Tn(i.id)&&(i.id=""+i.id),Tn(n.id)?n.id=""+n.id:n.id=b({generate:!0}),n.language=yl(),e={visitor:wl(n),account:wl(i),parentAccount:wl(t),date:Sl(),version:I.VERSION},g.getters["metadata/selfHosted"]()&&(e.selfHosted=!0);var t,n=E.clone(xl()),i=(f.setLocalConfig(E.extend({},f.getLocalConfig(),e)),g.commit("metadata/setMetadata",e),xl()),r=(Tn(e.visitor.id)&&(I.identify(e.visitor.id,e.account.id),e.visitor.id=b(),e.account.id=Gn()),rt(e)),o=(void 0!==(o="object"==typeof(o=r)?rt(o):o)&&o.toString&&(o=o.toString()),""+(E.isNumber(el)?el:Bn(bl))!==o),r=(el=r,o&&jn(bl,r),!E.isEqual(n,i));return{options:e,hashChanged:o,storeChanged:r}},_l=Wn(function(e){e=Il(e);m.metadata.trigger(e)}),El=Wn(function(e,t){E.isObject(e)?_l(e):Fn(e,t)}),Cl=function(){var t,e=k("script");return e=e,t=new RegExp("/agent/static/"+I.apiKey+"/pendo\\.js$"),!E.any(e,function(e){return t.test(e.src)})&&"extension"!==we()},Tl=function(){var e=f.get("blockAgentMetadata");return e!==undefined&&e};function xl(){return g.getters["metadata/metadata"]()}function kl(){return JSON.parse(JSON.stringify(xl()))}m.identify.on(function(e){var t=e.data[0],n=f.getLocalConfig()||{};Hn(e)?(An([bl]),g.commit("metadata/reset",t)):(n.visitor=E.extend({},n.visitor,{id:t.visitor_id}),n.account=E.extend({},n.account,{id:t.account_id}),f.setLocalConfig(n),g.commit("metadata/setMetadata",n))});var Al={Launcher:{addBehavior:E.noop},Metadata:{getMetadata:xl},Util:{documentScrollTop:ho,documentScrollLeft:fo,getOffsetPosition:Ho},Events:m,JWT:{getJWT:fs.get}};var Ol,Rl,Nl,Ml,Ll={},Pl=(Rl=[],Nl=[],Ml={},(Ol=Ll).tagExtension=function(e,t){e=Ol.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},Ol.findExtensionByTag=function(t){return E.find(Nl,function(e){return E.contains(e.tags,t)})},Ol.findExtensionByName=function(e){return E.findWhere(Nl,{name:e})},Ol.filterExtensionsByUse=function(t){return E.filter(Nl,function(e){return e.use===t})},Ol.findExtensionByNameAndProvider=function(t,n){return E.find(Nl,function(e){e=e.data;return!!e&&e.name===t&&e.provider&&e.provider.name===n})},Ol.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],Ml[e]={handler:t,validators:n}},Ol.getExtensionFrames=function(){return E.reduce(Nl,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=E.filter(e,Fl)).length&&(Rl=function n(e){if(!e.length)return e;var t=E.filter(e,$l);if(t.length)return n(E.difference(e,t));return e}(Rl.concat(e)))});function Fl(t){var e;return!!E.every(["name","version","use","type","uri"],E.partial(E.has,t))&&(e=t.use,e=Ml[e]?Ml[e].validators:[],E.every(E.map(e,function(e){return e(t)})))}function $l(e){var t;return"behavior"===e.use?!!e.uri(Ol,Al)&&(Nl.push(e),!0):(t=e.use,!!(t=Ml[t]?Ml[t].handler||E.identity:null)&&((e=t(e))&&Nl.push(e),!!e))}var L,Dl,Ul,Gl,jl,Bl,P={initializeResourceCenter:function(r){if(!(L=Hl(r)))return y.resolve();if(g.getters["frames/isShownInAnotherFrame"]()(L.steps[0]))return y.resolve();if(P.isFullyCustom(L))return L.hasResourceCenterContent=!0,y.resolve();var e=Wl(L,r),t=E.reduce(e,function(e,t){return zl(t)?e.concat(t.steps[0].fetchContent()):e},[]);return t.push(Fd.validate(L).then(E.noop,function(){L.launchMethod="api"})),L.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},E.forEach(Yl(),function(e){var t=Ll.findExtensionByNameAndProvider("chat",e),t=(t&&tp(e,t),Ll.findExtensionByNameAndProvider("helpcenter",e));t&&tp(e,t)}),E.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=Jl(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&Zl(e.integrationName,e.integrationProvider),E.reduce(n,function(e,t){var n=E.find(r,function(e){return e.id===t});return n?e.concat(n):e},[]));"AnnouncementsModule"===i&&(L.attributes.notifications.individualCounts[t.id]=0,E.forEach(e,function(e){xp(e)||e.isControlGroup()||L.attributes.notifications.individualCounts[t.id]++}));-1<E.indexOf(["GuideListModule","OnboardingModule","AnnouncementsModule"],i)&&E.filter(e,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):!(e.ineligibleForRC=!0)}).length&&(t.hasResourceCenterContent=!0),t.guidesInModule=e}),L.modules=e,L.badgeHidden=!0,y.all(t)["catch"](()=>(L=null,C.error("Failed to load one or more Resource Center modules"),y.resolve()))},findResourceCenterHomeView:Hl,findResourceCenterModules:Wl,replaceResourceCenterContent:ql,renderResourceCenterModule:function(e,t){ql(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(),E.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=Ll.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:Zl,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(ad())})},getResourceCenter:up,getResourceCenterContainer:dp,getResourceCenterBadge:cp,addNotificationBubbleToResourceCenterBadge:bp,addNotificationBubbleToTargetElement:wp,updateNotificationBubbles:function(){var e=L,t=E.get(e,"attributes.notifications");if(t){var n=fp(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&Cp(),t.totalUnseenCount=n;else{gp();var i=n!==t.totalUnseenCount;if(i||!pp(Gl)){if("badge"===e.launchMethod){i=cp();if(!i)return;bp(i.element(),e.attributes.notificationBubble,n)}if("dom"===e.launchMethod&&E.get(e,"attributes.activation.selector")){i=k(e.attributes.activation.selector);if(!i.length)return;wp(i[0],e.attributes.notificationBubble,n),_r(window,"resize",E.debounce(hp,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:Cp,updateNotificationBubbleCount:Tp,updateNotificationBubbleOnHomeView:mp,updateOrCreateNotificationBubble:Sp,hexToRgb:lp,doesIntegrationExist:Jl,calculateTotalNotificationCount:fp,updateNotificationBubblesOnHomeView:gp,createNotification:_p,appendNotificationBubble:Ep,hasAnnouncementBeenSeen:xp,clearAnnouncementUnseenInterval:Vl,createAnnouncementUnseenInterval:Kl,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=E.find(Wu(),function(e){return e.id===t});if(E.get(e,"attributes.resourceCenter.isModule",!1))return e}}},dismissResourceCenter:kp,repositionResourceCenter:function(){var e=P.getResourceCenterContainer();{var t,n,i;e&&(i=P.findResourceCenterHomeView(Wu()).steps[0],t=E.get(i,"domJson.props.style.height"),t=parseInt(t,10),t=isNaN(t)?0:t,n=parseInt(E.get(i,"domJson.props.style.bottom",0),10),i=parseInt(E.get(i,"domJson.props.style.top",0),10),n=isNaN(n)?0:n,i=isNaN(i)?0:i,(n=jo().height-n-i)<=t&&(e.style.height=(n-10).toString()+"px"),i=parseInt(e.style.height,10),i=isNaN(i)?0:i,t<n)&&t!==i&&(e.style.height=t.toString()+"px")}Wc(k(e))},repositionDoubleResourceCenterBadge:function(){var e,t,n;g.getters["frames/isLeader"]()&&1<(e=E.unique(E.compact([].concat(E.toArray(k("._pendo-resource-center-badge-container"))).concat(E.toArray(k("._pendo-resource-center-badge-container")))))).length&&function(e){var t=Yo(e[0]),e=Yo(e[1]);return Xo(t,e)}(e)&&(t=Ho(e[0]).width+5,n=Ho(e[1]).left-t<0?"":"-",e[1].style.transform="translateX("+n+t+"px)")},resourceCenterIgnoreRtl:function(){return E.get(this.getResourceCenterBadge(),"ignoreRTL",!1)},adjustResourceCenterWidth:function(e){var t=dp();if(t){o=jo().width,r=k(t),e=k(e),r.css({"max-width":"none"}),e.css({"max-width":"none"}),i=parseInt(O(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=O(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=O(i),e=parseInt(i.width,10),a=parseInt(i.marginRight,10),s=parseInt(i.marginLeft,10)),o+r+e+s+a),d=parseInt(O(t[0]).width,10),c=0;c<n.length;c++){var l=n[c],p=k(l),l=(p.css({"max-width":"none"}),O(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:tp,renderNativeIntegration:ap,isSupportedNativeIntegration:Xl,handleNativeIntegrationContinuation:sp,isProviderInstalled:Ql,adjustNotificationBubbleForResize:hp,getNotificationBubbleDefaultCss:Ip,getModuleId:Ap,isIframeModule:function(e){return"IframeModule"===Ap(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===Ap(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===Ap(e)&&e.hasResourceCenterContent},isFullyCustom:function(e){return"FullyCustomModule"===Ap(e)},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!P.isSupportedNativeIntegration(e.integrationProvider)||P.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n=Hl(e);if(!n)return y.resolve();if(t.getters["frames/isShownInAnotherFrame"]()(n.steps[0]))return y.resolve();if(P.isFullyCustom(n))return y.resolve();var t=Wl(n,e),i=[],r=E.indexBy(e,"id");return E.each(t,function(e){var e=e.attributes.resourceCenter;"AnnouncementsModule"===e.moduleId&&(e=e.children,e=E.reduce(e,function(e,t){t=r[t];return t?e.concat(t):e},[]),E.each(e,function(e){zl(e)&&i.push(e.steps[0].fetchContent(!0))}))}),y.all(i)},setFocusForResourceCenterModule:function(e,t){var n;"HomeViewModule"===e[0].getAttribute("data-layout")?t&&(e=k('[data-pendo-module-guide-id="'+t+'"]'),n=e.find('button[id^="pendo-right-caret-"]')[0]):(t=k('[id="pendo-resource-center-module-title-container"]'),n=t.find('button[id^="pendo-left-caret-"')[0]);n&&n.focus()},revertRtlChanges:function(e,t){var n="rtl"===E.get(t,"data-localization-direction",!1),e=E.get(e,"attributes.badge.ignoreRTL",!1);n&&e&&!t["data-direction-changed"]&&(n=E.get(t,"style.left",!1),e=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:yp,updatePseudoStyleSelectors:Op,hideRCBadge:Rp};function zl(e){return e.steps&&e.steps.length&&E.isFunction(e.steps[0].fetchContent)}function Hl(e){var e=E.filter(e,function(e){return E.get(e,"attributes.resourceCenter.isTopLevel")&&!e.isFrameProxy}),t=E.find(e,function(e){return"staged"===e.state});return t||e[0]}function Wl(t,e){return E.filter(e,function(e){return e&&!e.isFrameProxy&&E.get(e,"attributes.resourceCenter.isModule",!1)&&e.state===t.state})}function ql(t,e,n,i=!0){if(!Ul){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),dp());if(e){var a=k(e).find('[id^="pendo-g-"]')[0];if(a){var s,u=a.getAttribute("data-pendo-guide-id"),d=E.find(Wu(),function(e){return e.id===t}),c=(t!==L.id?(vl(E.get(L.activeModule||L,"steps.0.id")),L.activeModule=d):(s=L.activeModule,vl(E.get(s,"steps.0.id")),delete L.activeModule),E.get(d,"attributes.resourceCenter.integrationProvider")),l=(Xl(c)&&ap(c),d.steps[0]),c=Op(l.domJson),c=(c.props["data-pendo-guide-id"]=d.id,pl(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"===Ap(d)&&l.guide.guidesInModule?(Jc(r=E.reduce(l.guide.guidesInModule,function(e,t){var n;return E.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),E.each(r,function(e){M.flexAllThings(e,l)})):M.flexAllThings("pendo-resource-center-container"),Wc(k(e)),p.style.left="0px",!n){Ul=!0;try{"left"===o?a.style.left=-1*e.offsetWidth+"px":"right"===o&&(a.style.left=e.offsetWidth+"px"),Dt(function(){k(a).remove(),s&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),Ul=!1},200)}catch(h){throw Ul=!1,h}}return"AnnouncementsModule"===Ap(d)&&(Kl(),r=Xd.getGuidesInResourceCenterModule(d,Wu()),(n=E.reduce(r,function(e,t){return t.steps&&t.steps.length&&Hd.hasContent(t.steps[0])||e.push(t.fetchContent()),e},[])).length)&&((o=function(){var i,e,t;if(E.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 E.each(E.toArray(arguments).slice(2),function(e){n.append(e)}),n},t=function(e){return k(document.createElementNS(i,"animate")).attr({attributeName:"fill-opacity",values:"0;1;0;0",keyTimes:"0;0.4;0.8;1",dur:"1.4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0 0 0.58 1; 0 0 0.58 1; 0 0 0.58 1",begin:e})},t=k(document.createElementNS(i,"svg")).attr({viewBox:"0 0 70 20",xmlns:"http://www.w3.org/2000/svg",width:"70",height:"20"}).append(e(21,10,t("-0.32s"))).append(e(35,10,t("-0.16s"))).append(e(49,10,t("0s"))),k(document.createElement("li")).css({padding:"5px 20px","list-style-type":"none","list-style-position":"inside",position:"relative","margin-left":"0em","border-width":"0px","border-style":"solid","border-color":"rgb(255, 255, 255)","float":"none","vertical-align":"baseline","text-align":"center"}).append(t)}())&&c.find("ol").append(o),y.all(n).then(function(){var e=y.defer();return Dt(e.resolve,500),e.promise}).then(function(){L.activeModule===d&&P.renderResourceCenterModule(d,i)})),P.setFocusForResourceCenterModule(c,u),i&&l.onShown("launcher"),c}}}}function Vl(){window.clearInterval(Dl),Dl=null}function Kl(){Dl=Dl||window.setInterval(function(){var e=dp();if(!e)return Vl();e=k(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return Vl();var t=k(e).find('ol[id^="pendo-list"]');if(!t.length)return Vl();var n=Yo(t[0]),i=k(t).find("li");if(!i.length)return Vl();for(var r=e.attr("data-pendo-guide-id"),o=L.attributes.notifications.individualCounts[r],a=n.height/3,s=Yo(i[i.length-1]).bottom-30<n.top+n.height,u=0;u<i.length;u++){var d=k(i[u]),c=d.hasClass("pendo-unseen-announcement"),l=d.attr("data-pendo-announcement-send-seen-event");if(c||l){if(Yo(i[u]).top-n.top>n.height-a&&!s)break;var p=d.attr("data-pendo-announcement-guide-id"),l=E.find(Wu(),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"),xp(l)||o--,Tp(o,r)),l.steps[0].seenState="advanced",Fg(l.id,l.steps[0].id,b(),"whatsnew",l.language,{last_updated_at:l.steps[0].lastUpdatedAt}),d[0].removeAttribute("data-pendo-announcement-send-seen-event"),Dg(l.id,l.steps[0].id,b(),"advanced",l.language)}}},500)}function Jl(e,t){return Ll.findExtensionByNameAndProvider(e,t)}function Zl(e,t){e=Ll.findExtensionByNameAndProvider(e,t);if(!e)return C.info(t+" integration has not been loaded into the agent");Xl(t)&&Ql(t)?L.hasEligibleNativeIntegrationModule=!0:(Zo((t=e.getFrame())[0])||t.appendTo(ad()),t.css({display:"none"}))}function Yl(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging"]}function Xl(e){return!!e&&0<=Yl().indexOf(e)}function Ql(e){return!!e&&null!==(e=ep(e))&&E.isFunction(window[e])}function ep(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 tp(e,t){if(e)if(Ql(e))np(e,t);else{var n;if("function"==typeof Object.defineProperty){const i=ep(e);null!==i&&(jl&&jl[i]?jl[i][e]||(jl[i][e]={installed:!1,integrationObj:t}):((jl=jl||{})[i]={[e]:{installed:!1,integrationObj:t}},Object.defineProperty(window,i,{get(){return n},set(e){n=e,E.forEach(jl[i],function(e,t){const n=e.integrationObj;!e.installed&&Ql(t)&&(e.installed=!0,np(t,n),Zl(n.name,t),E.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 np(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=rp(i);ip(n,"webWidget","hide"),ip(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),ip(n,"webWidget:on","close",function(){ip(n,"webWidget","hide"),op()}),L.isInProgress()&&sp(L.activeModule),ip(n,"webWidget:on","chat:unreadMessages",function(e){Tp(e,"chat")});break;case"zendesk-messaging":i=t;ip(i=i.data.provider.name,"messenger","hide"),ip(i,"messenger:on","close",function(){op()}),ip(i,"messenger:on","unreadMessages",function(e){Tp(e,"chat")});break;case"intercom-chat":var r=t;r=rp(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(){op()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=xl();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 Tp(1,"chat")})}),window.drift.on("chatClose",function(e){Tp(0,"chat"),window.drift.hide(),op()})}}function ip(e,...t){try{Bl&&Bl[e]||window.zE.apply(null,t)}catch(n){Bl?Bl[e]=!0:Bl={[e]:!0}}}function rp(e){e=E.get(e,"data.options.labels.position");return e=e&&e.split("-")}function op(){kp(L.activeModule),delete L.activeModule,L.continueToNativeModule=!1}function ap(e,t){if(e){var n=xl();if(L.isShown()&&L.hide(),Bl&&Bl[e])C.info(e+" integration failed to communicate with API, closing"),P.replaceResourceCenterContent(L.id,undefined,!0),op();else{var i=cp();switch(i&&Rp(i,L),e){case"zendesk-messaging":ip(e,"messenger","show"),ip(e,"messenger","open");break;case"zendesk-native-kb":ip(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),ip(e,"webWidget","show"),ip(e,"webWidget","open");break;case"zendesk-chat":ip(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&ip(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})}Tp(0,"chat"),!L.activeModule&&t&&(L.activeModule=t).steps[0].onShown("launcher")}}}function sp(e){e&&!e.isTopLevel&&(ap(E.get(e,"attributes.resourceCenter.integrationProvider")),L.activeModule||(L.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function up(){return L}function dp(){return E.get(L,"steps.0.guideElement.0")}function cp(){if(L&&L.id)return Bu[L.id]}function lp(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 pp(e){return e&&E.all(e,function(e){return Zo(e&&e.length?e[0]:e)})}function hp(){var e,t=P.getResourceCenter(),n=E.get(t,"attributes.notifications");n&&(n=P.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&E.get(t,"attributes.activation.selector")&&(e=k(t.attributes.activation.selector)).length&&P.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function fp(e){return E.reduce(e,function(e,t){return e+t},0)}function gp(){var e,t=L;t&&(t=E.get(t,"attributes.notifications"))&&(e=dp())&&k(e).find("._pendo-resource-center-home-list").length&&E.each(t.individualCounts,function(e,t){mp(e,t)})}function mp(e,t){var n=P.getResourceCenterContainer();n&&(n=k(n).find('[data-pendo-notification-id="'+t+'"]')).length&&(t=k(n[0]).find("._pendo-home-view-bubble"),n=k(t[0].children[0]),e!==parseInt(n.text(),10))&&(0<e?(n.text(e),k(t[0]).css({display:"block","margin-right":"0"})):(n.text(""),k(t[0]).css({display:"none"})))}function 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 yp(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function bp(e,t,n){var i=yp(n);let r=e.getAttribute(i);r&&(vp(e),r=r.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",r));var i=E.get(t,"position","top-left"),o=O(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();Sp(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 wp(e,t,n){var i=bo(e,e),r=bo(e,Ko());Sp(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 Sp(e,t,n,i,r){var o,a;pp(Gl)?(a=(o=Ip(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=E.extend(a,i),o=E.extend(o,r),Gl.bubbleEle.css(a),Gl.unseenCountEle.css(o),Gl.unseenCountEle.text()!=""+n&&Gl.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&&Ep(Gl=_p(t,n,i,r),e)}function Ip(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 _p(e,t,n,i){var r=Ip(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=E.extend(o,n),n=E.extend(r,i);return a.css(o),s.css(n),_e(10)||ul()||(i="rgb("+(r=lp(e["background-color"])).r+", "+r.g+", "+r.b+")",Yd(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 Ep(e,t){e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function Cp(){var n=Gl?Gl.bubbleEle:k(".pendo-resource-center-badge-notification-bubble"),i=Gl?Gl.styleEle:k("#pendo-resource-center-bubble-animation");n&&E.each(n,function(e,t){n[t]&&(t=n[t])&&t.parentNode&&t.parentNode.removeChild(t)}),i&&E.each(i,function(e,t){i[t]&&(t=i[t])&&t.parentNode&&t.parentNode.removeChild(t)}),Gl=null,P.resetBadgeAriaLabel()}function Tp(e,t){var n=L;n&&(n=E.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,P.updateNotificationBubbles())}function xp(e){return!(!E.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function kp(e){var t=E.get(e,"attributes.resourceCenter.isModule",!1)?e:P.findShownResourceCenterModule();t&&(t=E.first(t.steps),vg(t));t=(E.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:P.findResourceCenterHomeView(Wu())).steps[0];return vg(t)}function Ap(e){return E.get(e,"attributes.resourceCenter.moduleId")}function Op(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(...E.map(e.children,function(e){return i(e,t)})):n}(e,function(e){return e.css&&e.css.length});return E.forEach(t,function(e){E.forEach(e.css,function(e){e.selector=e.selector.replace(n,"[id^='$1']")})}),e}function Rp(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete Bu[t.id])}var Np=1e4,Mp="lastStepAdvanced";function Lp(e){g.dispatch("guideState/updateLastGuideStepSeen",e),g.dispatch("guideState/write"),g.dispatch("frames/changeLastGuideStepSeen",e)}function Pp(){g.dispatch("guideState/regainFocus")}function Fp(){return g.state.guideState.lastGuideStepSeen}var r={actions:{init:function(e){e.getters.storage().registry.addLocal(Mp),e.commit("setScopedStorageKey",Ft(e.state.storageKey)),m.identify.on(function(e){Hn(e)&&An([Mp])})},load:function(t,e){if(e){var n;try{n=JSON.parse(e)}catch(i){}n&&E.each([].concat(n),function(e){t.commit("setStepState",e)})}},forceExpire:function(n){E.each(n.state.steps,function(e,t){n.commit("expireStepState",t)})},expire:function(n){var i=n.getters.now();E.each(n.state.steps,function(e,t){i-e.time>n.state.ttl&&n.commit("expireStepState",t)})},apply:function(o){var a,s=E.indexBy(o.getters.guideList(),"id");o.dispatch("expire"),E.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=E.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=E.indexOf(i.steps,t),E.each(i.steps.slice(0,e),function(e){E.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})))}),a&&o.dispatch("updateLastGuideStepSeen",E.extend({},o.state.lastGuideStepSeen,a))},receiveLastGuideStepSeen:function(e,t){e.commit("setReceivedLastGuideStepSeen",t),e.commit("setLastGuideStepSeen",t)},updateLastGuideStepSeen:function(e,t){var n;t.visitorId&&t.visitorId!==e.getters.visitorId()||(n=E.some(e.getters.guideList(),function({id:e}){return e===t.guideId}),t.guideStepId&&e.commit("setStepState",t),n&&(e.commit("setLastGuideStepSeen",t),I.lastGuideStepSeen=t))},updateThrottlingState:function(e,t){e.commit("setThrottlingState",t)},write:function(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(E.map(e.state.steps,function(e){return E.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:function(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)&&(Kp(),e.dispatch("load",r),e.dispatch("apply"),e.state.receivedStateChangeAt||e.commit("setReceivedStateChange",e.getters.now()))}},regainFocus:function(e){var t=e.getters.tabLostFocus(),n=e.getters.isGuideRequestStale();t&&(e.commit("setReceivedStateChange",null),n||(Jp(),Zp())),n&&jm()}},mutations:{expireStepState:function(e,t){e.expired[t]=e.steps[t],delete e.steps[t]},setStepState:function(e,t){e.steps[t.guideStepId]=t},setScopedStorageKey:function(e,t){e.scopedStorageKey=t},setLastGuideStepSeen:function(e,t){e.lastGuideStepSeen=t},setReceivedLastGuideStepSeen:function(e,t){e.receivedLastGuideStepSeen=t},setReceivedStateChange:function(e,t){e.receivedStateChangeAt=t},setLastGuideRequestAt:function(e,t){e.lastGuideRequestAt=t},setThrottlingState:function(e,t){e[t.name]=t.value}},state:{steps:{},expired:{},ttl:Np,storageKey:Mp,guideRequestExpiration:36e5,scopedStorageKey:null,receivedStateChangeAt:null,receivedLastGuideStepSeen:null,lastGuideStepSeen:null,lastGuideRequestAt:null,latestDismissedAutoAt:null,latestSnoozedAutoAt:null,finalAdvancedAutoAt:null},getters:{now:v,storage:function(){return h},guideList:function(){return R},tabLostFocus:function(e){return!!e.receivedStateChangeAt},isGuideRequestStale:function(e,t){return null!=e.lastGuideRequestAt&&t.now()-e.lastGuideRequestAt>e.guideRequestExpiration},storageChangedInOtherTab:function(n,e,i){return function(e){var t=E.get(i,"frames.tabId");return!!e&&!!((e=E.max(E.compact(e),"time"))&&e.tabId&&t&&e.tabId!==t)&&(!n.lastGuideStepSeen||!n.lastGuideStepSeen.time||e.time>n.lastGuideStepSeen.time)}},cookieSuffix:function(){return f.get("crossAppGuideStorageSuffix")},visitorId:function(){return b()}}},$p={canDisplay:function(e,t,n){if(n&&n.enabled&&E.isFinite(t)){t=Gp(t,n);if(E.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=E.reduce(n,(e,t)=>e.concat(i[t]||[]),[]),t=E.uniq(n.concat(t)))}var r,o,n=function(e){e=E.defaults(E.groupBy(e,function(e){return Up(e)?"override":"auto"}),{override:[],auto:[]});return e.override.concat(e.auto)}(function(e,t){var n;return E.isArray(t)&&t.length?(n=E.indexBy(e,"id"),t=E.reduce(t,i,[]),E.chain(e).pluck("id").reduce(i,t).value()):e;function i(e,t){return n[t]&&(e.push(n[t]),delete n[t]),e}}(E.filter(e,Dp),t));return E.find(e,function(e){return e.isTraining})?(t=f.get("adoptPrioritizeAdoptGuides"),e=t,r=[],o=[],E.each(n,function(e){(e.isTraining?r:o).push(e)}),e?r.concat(o):o.concat(r)):n},tryDisplayGuide:function(e,t){var n=$p.lastDismissedTime(t),n=$p.canDisplay(v(),n,t.throttling);if((Up(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:Gp};function Dp(e){return e&&/auto/.test(e.launchMethod)}function Up(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||E.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function Gp(e,t){var n=t.interval,t=(t.unit||"").toLowerCase();return E.isNumber(n)&&ct(e)?"minute"===t?6e4*n+e+1:"hour"===t?36e5*n+e+1:"day"===t?(t=e,e=n,(t=new Date(Math.max(t,0))).setHours(0,0,0,0),t.setDate(t.getDate()+e),t.getTime()):void 0:E.isNumber(n)?(new Date).getTime():void 0}function jp(t){return m.guideSeen.on(function(e){var e=e.data[0].props||{};"permalink"===e.reason&&(e=t(e.guide_id))&&(e.shownFromPermalink=!0)}),{tryDisplay:function(){var t=r(window.location.href),e=this.getGuideFromUrl(t);{var n,i;if(e&&this.shouldShowPermalinkGuide(e))return n=this.getStepFromUrl(t,e),i=t.pendo_once,this.showPermalinkGuide(e,n).then(function(e){return e&&i&&(delete t.pendo_once,delete t.pendo,delete t.step,delete t.c__pendo,window.history.replaceState({},document.title,window.location.pathname+"?"+eo(t))),e})}},getQueryString:r,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 E.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 r(e){var t=Jr(e).substring(1),t=Qr(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=Jr(e.substring(n+1)).substring(1),E.extend(t,Qr(n))),t}}var Bp=E.memoize(function(){return jp(N)});function zp(e,t){var e=E.find(e,function(e){return e.isContinuation(t)}),n=e&&e.attributes&&e.attributes.doNotResume;if(e&&!n)return e}class Hp{constructor(){this.name="autoDisplay",this.queue=[]}markDirty(){hd()&&(this.queue.push("permalink","continuation"),this.queue.push(...$p.sortAndFilter(Hu(),I.autoOrdering)))}process(e){if(ng())this.cancel();else{var t=this.queue.shift();if("permalink"===t)return Bp().tryDisplay(I);if("continuation"===t){var n=zp(Hu(),Fp());if(n)return e.saveContext(n),n.show("continue")}else if(t){if(!zp(Hu(),Fp()))return e.saveContext(t),$p.tryDisplayGuide(t,I);this.cancel()}}}handleProcessTimeExceeded(e){e=e.getContext();e&&C.warn("Auto display ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var Wp=null,qp=500,Vp=function(e){Wp=E.delay(function(){Wp=null,Zp()},e=e||qp),I.guidesProcessingThreadHandle=Wp},Kp=function(){Wp&&(clearTimeout(Wp),Wp=null,I.guidesProcessingThreadHandle=Wp),g.dispatch("guideUpdate/stopScheduledUpdate")},Jp=function(){sg(),ah.cancel();for(var e=0;e<ju.length;e++){var t=ju[e];t.parentNode.removeChild(t)}ju.length=0,g.dispatch("guideUpdate/stopObserver"),m.guideLoopStopped.trigger()},Zp=function(){if(Kp(),Gm.pending||Qg&&I.id&&I.id!==Qg.id)C.info("guides are loading.",{contexts:["guides","loading"]});else if(Am())C.info("guides are disabled.",{contexts:["guides","disabled"]});else if(Om())C.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!g.getters["guideState/tabLostFocus"]())try{var e=Xu();e&&0!==e.length&&(g.dispatch("guideUpdate/startObserverIfNeeded"),ah.isComplete()&&ah.markDirty(),g.getters["frames/leaderExists"]())&&ah.process()}catch(t){ah.cancel(),C.critical("ERROR in guide-loop",{error:t})}finally{ah.paused||(ah.isComplete()?(g.state.guideUpdate.useObserver&&!g.state.guideUpdate.needsUpdate||Vp(),m.guideUpdateComplete.trigger()):Vp(50))}};var Yp=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)),Zp()},Xp=function(){Am()||Nm(!0),Jp(),em()};class Qp{constructor(e,t){this.dirty=!1,this.name=e,this.processFn=E.isFunction(t)?t:E.noop}markDirty(){this.dirty=!0}process(){this.processFn(),this.dirty=!1}cancel(){this.dirty=!1}isComplete(){return!this.dirty}}class eh{constructor(){this.name="badge",this.queue=[]}markDirty(){this.queue.push.apply(this.queue,E.filter(qu(Hu()),td))}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 th(i,e){var r,o,t,n,a;P.isFullyCustom(i)||(r=!1,o=[],t=E.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=E.filter(e.guidesInModule,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):(e.ineligibleForRC=!0,e.control&&o.push(e),!1)})).length,e.hasResourceCenterContent=!!t,i.activeModule&&e.id===i.activeModule.id&&(n=rt(E.map(n,function(e){var t=e.isAnnouncement()||e.isWhatsNew()?null:E.pluck(e.steps,"seenState");return{id:e.id,seenState:t}})),e.eligibleGuidesInModuleHash&&n!==e.eligibleGuidesInModuleHash&&(r=!0),e.eligibleGuidesInModuleHash=n),t)))}),n=!1,i.activeModule||(a=rt(E.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=E.find(t,function(e){return e.isContinuation(Fp())}),a=E.get(n,"attributes.doNotResume"),e=E.get(n,"attributes.resourceCenter.integrationProvider"),P.isSupportedNativeIntegration(e))&&!a&&i&&(i.continueToNativeModule=!0,n.continueToNativeModule=!0),i.activeModule&&((e=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=Bu[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),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||(E.isFunction(e.placeBadge)&&e.placeBadge(),o=Bu[e.id]),o&&o.show(),e.badgeHidden=!1)}function ih(e){var t,n,i,r,o,a;e&&e.launchMethod&&(e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith,t=e.activeModule,n=E.get(t,"attributes.resourceCenter.integrationProvider"),e.isNativeModuleActive=t&&P.isSupportedNativeIntegration(n),P.isFullyCustom(e)?e.hasResourceCenterContent=!0:(e.isShown()||!g.getters["frames/isLeader"]()?th(e,nh):(t=e,n=nh,P.isFullyCustom(t)||(i=[],o=[],(r=E.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=E.flatten(E.pluck(t.modules,"guidesInModule")),o=E.filter(E.compact(r),function(e){return e.control}),!i.length&&(a=E.reduce(t.modules,function(t,n){return E.each(n.guidesInModule,function(e){t[e.id]=n}),t},{}),r=E.filter(r,function(e){return e&&e.steps&&e.steps.length}),r=E.sortBy(r,function(e){return e.steps[0].elementPathRule?1:0}),r=a[(r=E.find(r,function(e){return e.shouldBeAddedToResourceCenter()}))&&r.id])&&i.push(r),n(t,i,o))),e.isNativeModuleActive&&(e.isShown()&&e.hide(),a=Bu[e.id])&&P.hideRCBadge(a,e),"dom"===e.launchMethod&&(P.updateNotificationBubbles(),P.adjustNotificationBubbleForResize())))}class rh{constructor(e=50){this.startTime=-1,this.timeLimit=e,this.context=null}start(){this.context=null,this.startTime=v()}isTimeExceeded(){return v()-this.startTime>this.timeLimit}saveContext(e){this.context=e}getContext(){return this.context}}class oh{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 rh(50);!this.timedOut()&&!i.isComplete()&&!e;)r.start(),!(e=i.process(r))&&r.isTimeExceeded()&&(i.handleProcessTimeExceeded&&i.handleProcessTimeExceeded(r),this.ejectGuide(r.getContext()));ft(e)?(t=this.updateId,n=E.bind(function(){this.updateId===t&&(this.paused=!1,Zp())},this),this.paused=!0,e.then(n)["catch"](n)):i.isComplete()&&this.queue.shift()}addPhase(e,t){t=t||e.name||this.phases.length,E.isFunction(e)&&(e=new Qp(t,e)),this.phases.push(e)}removePhase(t){var e=E.findIndex(this.phases,function(e){return e.name===t});0<=e&&this.phases.splice(e,1)}timedOut(){return!!this.iterationStartTime&&v()-this.iterationStartTime>g.state.guideUpdate.iterationTimeLimit}ejectGuide(e){this.ejectOnTimeout===undefined&&(this.ejectOnTimeout=f.get("guides.ejectOnTimeout")),this.ejectOnTimeout&&e&&!e.isShown()&&Ku.addGuide(e)}process(){var e=v();for(this.updateId||(this.updateId=e,this.updateTotalTime=0,g.commit("guideUpdate/startUpdate",e)),this.iterationStartTime=e;!this.paused&&this.queue.length&&!this.timedOut();)this.runGuidePhase();e=v(),this.updateTotalTime+=e-this.iterationStartTime,this.isComplete()&&this.complete(e)}complete(e){g.commit("monitoring/setTimer",{name:"guideUpdateTimeMS",time:this.updateTotalTime}),g.commit("guideUpdate/completeUpdate",e),this.cancel()}cancel(){this.updateId=null,this.paused=!1,this.queue.length=0;for(var e of this.phases)E.isFunction(e.cancel)&&e.cancel()}isComplete(){return!this.queue.length}}var ah=new oh([new eh,new Qp("resourceCenter",function(){ih(P.getResourceCenter())}),new Qp("frameVisibility",function(){g.dispatch("frames/checkFrameVisibility")}),new Qp("guideShowing",function(){var a=zm();a&&(E.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("."+Xf),(r=r.find("#pendo-guide-container")[0])&&r.textContent&&(r=O(r).fontSize,e.attributes.currentTextZoomFontSize!==r)&&(e.attributes.currentTextZoomFontSize&&e.redraw(),e.attributes.currentTextZoomFontSize=r),e.elementPathRule&&n&&!yr.matchesSelector(n,e.elementPathRule)?e.hide():(r=ca(t),o=!0,n&&r&&e.elementContainsRulesList&&(o=xg(n,e.elementContainsRulesList),r=o),t&&(r||i.hasClass("mouseover"))?e.checkPlacement():("tooltip"===e.type||"tooltip"===e.attributes.calculatedType)&&la(t)&&o||e.hide()))}),a.guide.checkForHiddenGroupSteps())}),new Hp]);function sh(){ah.addPhase(...arguments)}function uh(){ah.removePhase(...arguments)}function dh(){var s={};return E.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=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 ch="debug-enabled";function lh(){try{var e=JSON.parse(h.read(ch,!0)||Mt(ch));return"boolean"==typeof e?{enabled:e}:e||{}}catch(t){return{}}}function ph(e=!0){let t;return t=g&&g.getters&&g.getters["debugger/debuggingEnabled"]?g.getters["debugger/debuggingEnabled"]():!0===lh().enabled,e?t:t?"Yes":"No"}class hh{constructor(e,t){this.type=t,this.identificationFn=e}test(e){return this.identificationFn(e)}}const fh=(()=>{const n={},e=({data:e})=>{var[e,,]=e,e=e["guideId"];const t=N(e);e=(E.find(n,e=>e.GuideType.test(t))||{}).handler;e&&e(t,"resourceFetchFail")};return{run:()=>{m.resourceFetchFail.on(e)},stop:()=>{m.resourceFetchFail.off(e)},addTypeHandler:(e,t)=>{E.isFunction(t)?n[e.type]={GuideType:e,handler:t}:C.error("Invalid Handler function provided for type "+e.type)}}})();fh.addTypeHandler(new hh(td,"badge"),(e,t)=>{Ku.addGuide(e)});var gh="_pendo-badge_";function mh(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function vh(t,n){var e,i,r,o,a,s=dd(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=E.reduce([(o=t.language,a=u?["he","ar"]:[],e=>(E.contains(a,o)&&(e.props["data-localization-direction"]=!0),e)),(r=d,e=>{var t,n;return E.get(e,"props.data-localization-direction",!1)&&!r&&(t=E.get(e,"props.style.left","auto"),n=E.get(e,"props.style.right","auto"),t)&&n&&(e.props.style.left=n,e.props.style.right=t),e}),mh,Bd,function(e){return pl(e,{id:n.id,guideId:t.id,isBadge:!0})}],(e,t)=>t(e),this.domJson)[0],i=e,k.removeNode(e),-1===i.className.indexOf("_pendo-badge_")&&(i.className+=" _pendo-badge_"),this.isP2Badge=!0):((i=document.createElement("img")).src=jd(this.imageUrl),i.className="_pendo-badge "+gh,u=this.width||13,d=this.height||13,Uo(i,"width:"+u+"px;height:"+d+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=E.isFunction(n.getGuide)&&n.getGuide(),t=Ng(e);!e.isShown()||g.getters["frames/isShownInAnotherFrame"]()(n)?Lg(n,"badge"):t?n.eventRouter.eventable.trigger("pendoEvent",{step:n,action:"dismissGuide"}):(t=E.find(e.steps,function(e){return e.isShown()}),vg(t))},this.shouldShow=function(){return t.canBadgeBeShown()||!1},this.show=function(){if(E.isFunction(this.shouldShow))return this.shouldShow()},this.hide=function(){k.removeNode(i),vl(t.id),E.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},Ng(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=E.constant(n),this.target=E.constant(s),this.element=E.constant(i),this}vh.create=function(n){var i=vh.findStep(n);if(i)return E.reduce(vh.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},vh.findStep=function(e){var t=E.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},vh.behaviors=[dh,vh,function(){"inline"!==this.position&&"inline-right"!==this.position&&"inline-left"!==this.position||this.before("show",function(){var e,t=this.target(),n=this.element();this.isP2Badge&&Uo(n,"display:inline-block;vertical-align:text-bottom;"),this.css&&Uo(n,this.css),t&&t.tagName&&(e=t.tagName.toLowerCase(),/br|input|img|select|textarea/.test(e)?n.parentNode!==t.parentNode&&t.parentNode.insertBefore(n,t.nextSibling):n.parentNode!==t&&("inline"===this.position||"inline-right"===this.position?t.appendChild(n):"inline-left"===this.position&&t.prepend(n)))});return this},function(s){this.position&&"top-right"!==this.position&&"top-left"!==this.position||this.before("show",function(){var e=this.element(),t=Ho(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),!E.get(s,"attributes.resourceCenter",!1)){var o="position:"+(t.fixed?"fixed":"absolute")+";top:"+(t.top+n)+"px;";switch(this.position){case"top-right":o+="left:"+(t.left+t.width-i)+"px";break;case"top-left":o+="left:"+(t.left+r)+"px"}Uo(e,o)}if(!e.parentNode){ad().appendChild(e);const a=aa(_r,this.target(),Ih);this.removeScrollHandlers=()=>{Ih.cancel(),a()}}});return this},function(){"over"===this.position&&this.before("show",function(){var e=this.element(),t=Ho(this.target()),n="position:absolute;top:"+t.top+"px;left:"+t.left+"px;";if(n+="height:"+t.height+"px;width:"+t.width+"px;",Uo(e,n+="background-color:transparent;"),!e.parentNode){ad().appendChild(e);const i=aa(Ih,e,this.target());this.removeScrollHandlers=()=>{Ih.cancel(),i()}}});return this},function(){var t=this,e=t.element(),n=!1,i=function(e){t.activate(),t.toggleAriaExpanded&&t.toggleAriaExpanded(),Uu(e)};return t.after("show",function(){n||(l(e,"click",i),n=!0)}),t.after("hide",function(){Du(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=E.throttle(function(e){Cr(e)===t||function(e){for(;e;){if(/_pendo-guide_|_pendo-guide-tt_|_pendo-backdrop|_pendo-badge_/.test(e.className))return!0;if(/pendo-guide-container/.test(e.id))return!0;e=e.parentNode}return!1}(Cr(e))||o()},50,{trailing:!1}),r=function(e){n.isShown()||Lg(n,"badge"),l(document,"mousemove",i),Uu(e)},o=function(e){Du(document,"mousemove",i),rd()||vg(n)},this.after("show",function(){e||(l(t,"mouseover",r),e=!0)}),this.after("hide",function(){Du(t,"mouseover",r),Du(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)||rd()||(t="inline"===this.position?"visibility:visible;":"display:inline;",n="inline"===this.position?"visibility:hidden;":"display:none;",i=E.throttle(function(e){var t,n,i,r,o,a;Cr(e)===u||Cr(e)===s||No(s,"triggered")||(t=e.clientX,e=e.clientY,n=Yo(u),i=Yo(s),r=Math.min(n.left,i.left),o=Math.min(n.top,i.top),a=Math.max(n.right,i.right),n=Math.max(n.bottom,i.bottom),i=e+document.documentElement.scrollTop,r<=t&&t<=a&&o<=i&&i<=n)||d()},50,{trailing:!1}),r=function(){Uo(s,t),l(document,"mousemove",i)},d=function(){Du(document,"mousemove",i),Uo(s,n)},this.after("show",function(){e||(l(u,"mouseover",r),e=!0,d())}),this.after("hide",function(){e&&(Du(u,"mouseover",r),e=!1),d()}))}return this}];var yh=function(e,t){var n,i,r=(t=t||Bu)[e.id],o=r?r.step():vh.findStep(e);o&&(i=r?r.target():dd(o),(n=E.get(e,"attributes.resourceCenter"))&&!g.getters["frames/canShowRCBadge"]()?r&&E.isFunction(r.hide)&&(t[e.id]=undefined,r.hide()):n&&!e.hasResourceCenterContent||(P.updateNotificationBubbles(),n=!0,o.elementContainsRulesList&&(n=i&&xg(i,o.elementContainsRulesList)),(i=o.elementPathRule&&ca(i)&&yr.matchesSelector(i,o.elementPathRule)&&n)?((r=r||vh.create(e)).show(),t[e.id]=r):r&&!o.isShown()&&(t[e.id]=undefined,r.hide()),ph()&&m.stepEligibility.trigger({stepId:o.id,guideId:e.id,eligible:i,reason:"target_element_badge"}),P.repositionDoubleResourceCenterBadge()))},bh=function(){E.map(Bu,wh),Bu={}},wh=function(e,t){e&&(E.isFunction(e.hide)&&e.hide(),E.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete Bu[t.id]},Sh=function(e){var t=Bu[e.id];t&&wh(t,e)};var Ih=E.throttle(function(){E.map(Bu,function(e){e&&e.show&&e.show()})},10);const _h=h.getLocal();var F,Eh="pendo-preview",Ch="current-guide-preview";function Th(e){return g.dispatch("preview/load"),xh(e)}function xh(t){var e=Bh();if(e)return Ah(t),g.dispatch("preview/start",E.extend(e)),h.clear(Mp),Nt(!1),ns.lock(),rm=qh,m.startPreview.trigger(),m.leaderChanged.on(function(e){g.dispatch("preview/write"),e.oldLeaderId||jm(),g.getters["frames/isLeader"]()||(k(F).remove(),F=null,t.removeEventListener("message",Rh))}),sh(kh),!0}function kh(){if(!g.getters["frames/isFollower"]()){var t,n,i,r,o,e,a=document,s=Xu(),u=Fp();if(Nh()&&(t=Bh())&&F&&F.contentWindow)if(s&&s.length){F.contentWindow.postMessage({mutation:"preview/setGuideLoaded",payload:{guideLoaded:!0}},location.origin),n=E.find(s,function(e){return e.id===t.guideId}),i=0,r=n.steps.length,o=u||{},E.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=E.indexOf(n.steps,E.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:cd(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:E.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=E.filter(g.state.frames.frames,e=>"hidden"!==e.visibility&&e.guides&&e.guides[h]);if(p.length)p=E.map(p,e=>$.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:e.id,stepId:d.id,guideId:h,currentStepIndex:c})),y.all(p).then(t=>{let n={},i=-1;for(let e=0;e<t.length;e++){var r=JSON.parse(t[e]).errors;if(!r.GUIDE){var o=E.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"](E.noop)}}else Dh(0,{status:404,data:"Guide not found"})}return!0}function Ah(e){if(g.getters["frames/leaderExists"]()){if(!g.getters["frames/isFollower"]()){if(F)return!0;var t,n;E.isFunction(e.addEventListener)&&e.addEventListener("message",Rh),(t=document.createElement("iframe")).id=Eh,Go(t,{border:"none",display:"block !important",height:n="70px !important","min-height":n,left:0,position:"fixed",right:0,top:0,visibility:"visible !important",width:"100% !important","z-index":4e5}),t.onload=function(){if(f.get("inlineStyleNonce")){const n=t.contentDocument.createElement.bind(t.contentDocument);t.contentDocument.createElement=(e,...t)=>{t=n(e,...t);return"style"===e&&(e=f.get("inlineStyleNonce"))&&t.setAttribute("nonce",e),t}}var e=document.createElement("script");e.src=f.get("previewModeAssetPath")||ro("pendo.preview.min.js"),t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},F=t,Ko().appendChild(F)}}else m.one("leaderChanged",E.partial(Ah,e))}function Oh(e,t,n){sg(),g.commit("healthCheck/resetStepStatus",null,{root:!0}),Hd.reset(),jm();var i=e[0],i=(i&&E.each(i.steps,function(e){e.seenState=null}),h.clear(Mp),g.dispatch("preview/update",null),Bh());return i&&(i=E.findWhere(e,{id:i.guideId}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),g.dispatch("preview/restart",i)),$h(e,t)}function Rh(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===Eh+"::exit"?(Uh({preventWindowClose:n}),g.dispatch("frames/stopPreview",{preventWindowClose:n})):t===Eh+"::restart"?(n=Oh(Xu(),Fp(),e.data.language),g.dispatch("guideState/forceExpire"),g.dispatch("guideState/updateLastGuideStepSeen",n),g.dispatch("frames/restartPreview")):t===Eh+"::resize"?(n=e.data.height,F&&F.style&&(F.style.height=n)):t===Eh+"::request-preview-mode-type"&&(e=zh(),F)&&F.contentWindow&&e&&F.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:e.previewModeType||"NEW_TAB"}},location.origin))}function Nh(){return g.getters["preview/isInPreviewMode"]()}function Mh(){return g.getters["preview/isInDesignerPreviewMode"]()}function Lh(e){var t,n,i=Bh();if(!i)return e;if(i.isResourceCenter)return r=e,t=i,n=P.findResourceCenterHomeView(r),r=E.filter(r,function(e){return e.id!==n.id}),Fh(n,t.stepId),t=E.map(r,function(e){return e.launchMethod="launcher",e}),[n].concat(t);{var r=e,o=i;let t;return E.each(r,function(e){e.id===o.guideId?t=e:((e=e).launchMethod="api",(e=e.steps[0])&&(e.seenState="advanced"))}),Ph(t),t.showsAfter=null,t.expiresAfter=null,Fh(t,o.stepId),r}}function Ph(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function Fh(e,t){for(var n=E.find(e.steps,function(e){return e.id===t}),i=n?e.steps.indexOf(n):0,r=0;r<e.steps.length;r++)r<i?(e.steps[r].seenState="advanced",e.steps[r].seenReason="continue"):(e.steps[r].seenState=null,e.steps[r].seenReason=null)}function $h(e,t){null==t&&(t={});var n=Bh();if(!n)return t;e=E.findWhere(e,{id:n.guideId});if(!e)return t;if(n.state)return n.state;Ph(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:n.guideId,guideStepId:n.stepId,state:"active"}:{}}function Dh(e,t){F&&F.contentWindow&&F.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:t}},location.origin)}function Uh(e){var t=zh(),n=!1,i=(t&&(n="SAME_TAB"===t.previewModeType),_h.getItem("pendo-navigation-state"));if(g.dispatch("preview/exit"),sg({stayHidden:!0}),h.clear(Mp),ns.unlock(),k(F).remove(),rm=bd,uh(kh),Nt(!0),n&&i){_h.setItem(Ch,JSON.stringify(E.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(),jm()}function Gh(e,t){e=E.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function jh(){return g}var Bh=E.partial(Gh,jh,"state.preview.preview"),zh=E.partial(Gh,jh,"state.preview.designerPreview");function Hh(e){var t;if(e.subscriptionId&&e.guideId)return t=e.isResourceCenter?"/resourcecenter/":"/guide/","/api/s/"+vt(e.subscriptionId)+t+vt(e.guideId)+"/preview"}var Wh=function(e){var t;return Sa(e.origin)?(t=Hh(e))?(t={url:e.origin+t+"?url="+vt(A.externalizeURL())+"&apiKey="+I.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),xr(t).then(function(e){return e.data.guide})):(C.info("Invalid guide url, exiting preview"),y.reject("invalid guide url")):(C.info("Invalid origin, exiting preview"),y.reject("invalid origin"))},qh={load:function(e,t,n){return Kh(e,n)},post:function(e,t,n,i){return Kh(e,i)},endpoint:function(){return""},usesXhr:function(){return!0}};function Vh(n,t){if(!Sa(n.origin))return C.info("Invalid origin, exiting preview"),y.reject("invalid origin");var e=Hh(n);if(!e)return C.info("Invalid guide url, exiting preview"),y.reject("invalid guide url");if(!g.getters["frames/leaderExists"]()||n.apiKey!==I.apiKey)return I.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),y.resolve();let i=""+n.origin+e+`?url=${vt(A.externalizeURL())}&apiKey=`+I.apiKey;n.childGuides&&n.childGuides.length&&(i+="&childGuides="+n.childGuides.toString()),Mh()&&(i+="&ignoreGuide=true");var e={url:i,withCredentials:!0},r=(n.headers&&(e.headers=n.headers),[]);return xr(e).then(function(e){var t,c,e=e.data;return Mh()?(t=zh(),r=t?Mh()?(E.each(t.guide.steps,function(t){let e=["domJsonpUrl","domUrl"];t.domUrl&&0===t.domUrl.indexOf("data:")&&(e=["domJson","contentJs","contentCss","content"]),E.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!==E.get(r,"[0].authoredLanguage")&&(t=r,c=n.language.value,E.forEach(t,function(d){E.forEach(d.steps,function(e){var{domHash:t,domJsonpHash:n,translationHash:i,originalDomJsonHash:r,originalDomJsonpHash:o,originalBuildingBlockHash:a,domHash256:s,domJsonpHash256:u}=E.get(d,"translationStates."+c+".stepTranslations."+e.id,{});e.domUrl=Jh(r,e.domUrl,".dom.json",s),e.domJsonpUrl=Jh(o,e.domJsonpUrl,".dom.jsonp",u),e.buildingBlocksUrl=Jh(a,e.buildingBlocksUrl,".buildingBlocks.json"),t&&n&&i&&(e.domUrl=e.domUrl.replace(".dom.json","-"+t+"-"+c+".dom.json"),e.domJsonpUrl=e.domJsonpUrl.replace(".dom.jsonp","-"+n+"-"+c+".dom.jsonp"),e.buildingBlocksUrl=e.buildingBlocksUrl.replace(".buildingBlocks.json","-"+i+"-"+c+".buildingBlocks.json"))})})),n.watermarkConfig&&(e.guide.isTraining=!0),I.guideWidget={enabled:!1,data:{guideCssUrl:e.guideCssUrl}},I.guideCssUrl=e.guideCssUrl,I.normalizedUrl=e.normalizedUrl,I.throttling=undefined,e.guide}).then(function(e){var t;return n.watermarkConfig?(t=JSON.parse(JSON.stringify(n)),t=Object.assign(t,n.watermarkConfig),Wh(t)):e}).then(function(e){e&&e.attributes&&e.attributes.isWatermark&&r.push(e),I.guidesPayload({id:t,lastGuideStepSeen:$h(r,I.lastGuideStepSeen),guides:Lh(r)})})["catch"](function(e){return Dh(document,e),y.reject(e)})}function Kh(e,t){var n=Bh();return!n||!Hh(n)||!(e=/[?&]id=(\d+)/.exec(e))||e.length<1?y.reject():Vh(n,e[1]).then(t)}function Jh(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 Zh=function(){let n=null,i=[];const r=e=>{I.apiKey=e+="",n=e};return{getApiKey(){return I.apiKey},discoverKeys({apiKey:e,additionalApiKeys:t=[]}){n=null,i=[],e=e,(e=f.get("apiKey",e))&&r(e),n,e=t,e=f.get("additionalApiKeys",e),i=E.reduce(e,(e,t)=>(t&&e.push(t+""),e),[]),i=[].concat(e),I.additionalApiKeys=i,!n&&i&&i.length&&r(i[0])},getAdditionalApiKeys(){return I.additionalApiKeys},tamperedWith(){return I.apiKey!==n||I.additionalApiKeys!==i}}}(),Yh=h.getLocal();Xh=je,Qh="in-app-designer",ef="latest","local"===n&&(Xh="https://local.pendo.io:8080"),m.leaderChanged.on(function(){nf({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||Mh()})});var Xh,Qh,ef,tf={launchDesigner:function(e){var t,n="latest",i="designer";Yd(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%;}"),pf("designer-shims",Xh+"/"+i+"/"+n+"/plugin.js"),I.DESIGNER_VERSION?cf(n,i):t=window.setInterval(function(){I.DESIGNER_VERSION&&(cf(n,i),clearInterval(t))},100)},launchInAppDesigner:df,localStorageNavigation:nf,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(mt(e)))||{}}catch(t){return{}}}(e[1]),e=of(t),n=uf(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,tf.hostConfig.host)},isValidDesignerHost:rf,isValidTarget:sf,addCommunicationIframe:function(e,t){e=e||{};E.isFunction(t)||(t=E.noop);var n=uf(e),e=af(e),i=(new Date).getTime(),r=(tf.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=lf(r,Xh+"/"+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:Xh},isDesignerFrame:hf,addScriptToPage:pf};function nf(e){if(!e.ignoreLocalStorageNavigation){var t,e=Yh.getItem("pendo-navigation-state");if(e&&g.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(n){return}if(!t.apiKey||t.apiKey===Zh.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},tf.launchInAppDesigner(e),!0}}}function rf(e){return!!e&&Sa(e)}function of(e){var e=(e=e||{}).host||Xh,t=rf(e),e=t?e:je;return t||C.info("Invalid host, falling back to "+je),e}function af(e){var e=(e=e||{}).gcsBucket||Qh,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:Qh;return t||C.info("Invalid bucket, falling back to "+Qh),e}function sf(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=f.get("enableCrossOriginIsolation")?"strict":ef,e=e.target||e.baseFolder||t,t=sf(e),e=t?e:ef;return t||C.info("Invalid target, falling back to "+ef),e}function df(e){if(!hf(window.name)&&!I.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){}tf.crossFrameChannel===undefined&&(tf.crossFrameChannel=$,tf.useCrossFrameChannel=!0),Ha()&&a&&!e.allowChildFrame&&!e.selectionOnly?C.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):I.isReady()?(I.designerLaunchTime=(new Date).getTime(),a=of(e=e||{}),i=af(e),r=uf(e),n=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+i+"/"+r+"/"+n,tf.hostConfig={gcsBucket:i,baseFolder:r,uniqueWindowId:e.uniqueWindowId,host:a,adoptv2:e.adoptv2,DADesigner:e.DADesigner,agentInstallType:we(),forceNativeDesigner:!!e.forceNativeDesigner,sidebarDesigner:!!e.sidebarDesigner,apiKey:Zh.getApiKey()},i={},e.selectionOnly&&(i["selection-only"]=!0),f.get("pendoGlobalKey")&&(i["data-pendo-global-key"]=f.get("pendoGlobalKey")),r=f.get("designerAgentPluginsLoader"),a=window.__pendoExtensions&&e.forceNativeDesigner,o=!window.__pendoExtensions&&!E.isFunction(r),(a||o)&&(tf.addScriptToPage(t,n,i),I.designerLaunched=!0),!e.forceNativeDesigner&&E.isFunction(r)&&(r(t,n,i),I.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 cf(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+="__"+tf.windowCommunicationId,(t=lf("pendo-designer-iframe",Xh+"/"+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 lf(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&Uo(i,n),i.setAttribute("sandbox","allow-scripts allow-same-origin allow-top-navigation allow-forms allow-pointer-lock allow-popups allow-storage-access-by-user-activation"),i.src=t,i}function pf(e,t,n){var i;document.getElementById(e)||((i=document.createElement("script")).setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=J(I).createScriptURL(t),n&&E.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}}ff={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"},gf={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},(mf={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370}).FOOTER_HEIGHT=1.25*mf.HEADER_HEIGHT,mf.BODY_HEIGHT="calc(100% - "+mf.HEADER_HEIGHT+"px - "+mf.FOOTER_HEIGHT+"px)",vf='<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>',(yf={})["#"+ff.closeButton+":hover"]={"background-color":gf.GRAY_LIGHTER_6},yf["#"+ff.launchButton+":hover"]={"background-color":gf.TEAL_DARKER+" !important"},bf={PRIMARY_FONT:"Helvetica Neue"};var ff,gf,mf,vf,yf,bf,wf={listen:function(){return E.isFunction(document.addEventListener)?(document.addEventListener("keyup",Sf,!1),()=>{document.removeEventListener("keyup",Sf,!1)}):()=>{}},launchOnLocalStorageToken:kf,ids:ff,removeElement:Cf,attemptToLaunch:Ef,loadPluginJs:function(){var t;I.designerLaunched||(t=E.once(function(e){kf(e,!0)}),qa(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}};function Sf(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&Ef(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&Ef(!1,!0)}function If(e,t){var n,i,r,o={"background-color":gf.WHITE,height:mf.MODAL_HEIGHT+"px","min-height":mf.MODAL_HEIGHT+"px",width:mf.MODAL_WIDTH+"px",position:"fixed",top:mf.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-mf.MODAL_WIDTH/2+"px","border-radius":"4px","box-shadow":"0px 13px 28px rgba(0, 0, 0, 0.17)",overflow:"hidden","z-index":"300000","box-sizing":"border-box"},o=_f("div",ff.container,o);Yd(f,ff.style,E.reduce(E.pairs(yf),function(e,t){var n=t[0],t=t[1];return e+n+"{"+E.reduce(E.pairs(t),function(e,t){return e+t[0]+":"+t[1]+";"},"")+"} "},""),o),o.appendChild((t=t,r=_f("div",ff.header,{"background-color":gf.GRAY_PRIMARY,height:mf.HEADER_HEIGHT+"px","min-height":mf.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(i=_f("div",ff.logoContainer,{height:"38px",width:"44px","background-color":gf.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=J(I).createHTML(vf),r.appendChild(i),(i=_f("div",ff.title,{width:"100%",display:"flex","align-items":"center","font-family":bf.PRIMARY_FONT,"font-size":"18px",color:gf.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=t?"VIA Designer":"Pendo Designer",r.appendChild(i),r)),o.appendChild(((t=_f("div",ff.body,{height:mf.BODY_HEIGHT,"min-height":mf.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":bf.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=_f("div",ff.footer,{"align-items":"center","border-top":"1px solid"+gf.GRAY_LIGHTER_6,display:"flex",height:mf.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":mf.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(r=_f("button",ff.closeButton,{"border-radius":"3px",border:"none",height:mf.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":bf.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(){Cf(ff.container),Cf(ff.commIframeId)},(t=_f("button",ff.launchButton,{"background-color":gf.TEAL_PRIMARY,"border-radius":"3px",color:gf.WHITE,border:"none",height:mf.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":bf.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(){kf(n)},i.appendChild(r),i.appendChild(t),i)),document.body.appendChild(o)}function _f(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),E.extend(e.style,n),e}function Ef(t,n){var i,r,o;I.designerLaunched||(o=E.once(function(e){t||!n?kf(e):If(e,t),Tf()}),qa(function(e){"pendo-designer-launch-modal"===e.data.destination&&(clearInterval(i),e.data.viaconfirmed?clearInterval(r):e.data.token?(o(e.data.token),e=JSON.parse(e.data.token),E.contains(e.host,"via")&&!e.visitorId&&(r=r||setInterval(function(){document.getElementById(ff.commIframeId)&&xf()},100))):Tf())}),tf.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){xf(),i=window.setInterval(xf,50)}))}function Cf(e){document.getElementById(e)&&document.getElementById(e).remove()}function Tf(){var e=document.querySelector("#"+ff.commIframeId+'[src*="pendo"]');e&&e.remove()}function xf(){var e=document.getElementById(ff.commIframeId);e&&e.contentWindow&&E.isFunction(e.contentWindow.postMessage)&&e.contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:I.visitorId},E.get(I,"designerv2.hostConfig.host",je))}function kf(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),Cf(ff.container),tf.launchInAppDesigner(n)}var Af=E.wrap(E.wrap(E.once(E.wrap(function(e){var t=y.defer();return Ta(e,function(){t.resolve()}),t.promise},function(e,t){return 0<E.size(yd._handlers.validateGlobalScript)?xr.get(t).then(function(e){return yd.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)})),function(e,t){return t?e(t):y.resolve()}),function(e,t){return f.get("preventCodeInjection")?y.resolve():e(t)}),Of={initializeWatermark:function(e){e=E.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),Of.watermarkGuides=e,e=E.map(e,function(e){return e.fetchContent()});return y.all(e)},buildWatermark:function(e,t){if((e=e||{}).isTraining){var n=e.targetAccount?function(t){return E.find(Of.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return E.find(Of.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 Rf=1e4;function Nf(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=Rf){const n=y.defer(),i=at(32),r=(e=E.extend(e,{promiseId:i}),Dt(()=>{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,E.isFunction(n.close)&&n.close()}};function a(e){var t;r||(t=E.extend({apiKey:I.apiKey,allowMixedApiKeyFrames:f.get("allowMixedApiKeyFrames"),agentInstallType:we()},e),n.postMessage(t),Dt(function(){u(t)},0))}function s(e){e.promiseId||(t=at(32),e=E.extend(e,{promiseId:t}));var t=y.defer();return o[e.promiseId]=t,a(E.extend(e,{sourceFrame:i.state.frames.frameId})),t.promise}function u(e){try{var t;r||e.apiKey!==I.apiKey&&(!1===e.allowMixedApiKeyFrames||!1===f.get("allowMixedApiKeyFrames"))||e.targetFrame&&e.targetFrame!==i.state.frames.frameId||(e.resolveId?(t=o[e.resolveId])&&(delete o[e.resolveId],t.resolve(JSON.stringify(e))):/^frames\/|^debugger\//.test(e.action)&&i.dispatch(e.action,e))}catch(n){C.critical("ERROR in cross frame channel",{error:n})}}}var Mf="frames/removeFrame";function Lf(e,t,n){return new Pf(e,t,n,(e=t,t=n,new(E.isFunction(e.MessageChannel)?Ff:$f)(e,t)))}function Pf(e,t,n,i){this.init(e,t,n,i)}E.extend(Pf.prototype,{init:function(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=E.bind(this._frameConnectHandler,this),this._impl.onmessage=E.bind(this._fireMessageListeners,this),this._impl.onrelay=E.bind(this._topMessageHandler,this),this._connectToTop(10,0,function(){this._addControlMessageHandler(),this._connectToTop(250,21,function(){this.close(),this._store.commit("frames/setConnectFailed")})})},_fireMessageListeners:function(t){E.each(this._listeners,function(e){e(t)})},_controlMessageHandler:function(e){e=this._impl._parseMessage(e);e.data&&("pendo::connect"===e.data.action&&this._impl.frameConnect(e),e.data.action===Mf)&&this._topMessageHandler(e)},_topMessageHandler:function(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===Mf&&this._impl.frameDisconnect(e),this._impl.broadcast(e))},_connectToTop:function(e,t,n){this._impl.connectToTop({action:"pendo::connect",frameId:this._store.state.frames.frameId},this._targetOrigin),Dt(E.bind(function(){this._connected||(0===t?E.isFunction(n)&&n.call(this):0<t&&this._connectToTop(Math.min(2*e,1e4),t-1,n))},this),e)},_addControlMessageHandler:function(){this._singletonMessageHandler.addEventListener(E.bind(this._controlMessageHandler,this))},_frameConnectHandler:function(e){e.data&&"pendo::connectSuccess"===e.data.action&&(this._connected=!0,this._impl.connectSuccess(e),this._store.dispatch("frames/join"))},addEventListener:function(e,t){"message"===e&&this._listeners.push(t)},postMessage:function(e){this._closed||this._impl.postMessage(e)},close:function(){this._closed=!0,this._listeners.length=0,this._impl.close()}});Ti={_frameConnectHandler:function(e){E.isFunction(this.onconnect)&&this.onconnect(this._parseMessage(e))},_messageReceived:function(e){E.isFunction(this.onmessage)&&this.onmessage(this._parseMessage(e))},_relayMessage:function(e){E.isFunction(this.onrelay)&&this.onrelay(this._parseMessage(e))},_parseMessage:function(e){var t;return E.isString(e.data)?((t=E.pick(e,"type","origin","source","ports","lastEventId","target")).data=function(e){if(!E.isString(e))return e;try{return JSON.parse(e)}catch(t){return e}}(e.data),t):e}};function Ff(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function $f(e,t){this._window=e,this._frames={},this._isTop=e==e.top,this._singletonMessageHandler=t,this._boundMessageReceived=E.bind(this._messageReceived,this),this._isTop||(this._boundFrameConnectHandler=E.bind(this._frameConnectHandler,this),t.addEventListener(this._boundFrameConnectHandler))}E.extend(Ff.prototype,Ti,{connectToTop:function(e,t){this._closeChannel(),this._openChannel();var n=[];this._channel.port2&&n.push(this._channel.port2),this._window.top.postMessage(e,t,n)},frameConnect:function(e){var t,n=e.ports[0];(t=n)&&E.all(["addEventListener","start"],function(e){return E.isFunction(t[e])})&&((this._ports[e.data.frameId]=n).addEventListener("message",E.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:function(e){delete this._ports[e.data.frameId]},connectSuccess:function(){this._port.removeEventListener("message",this._boundFrameConnectHandler),this._port.addEventListener("message",E.bind(this._messageReceived,this))},broadcast:function(t){E.each(this._ports,function(e){t.target!==e&&e.postMessage(t.data)})},postMessage:function(e){this._port&&this._port.postMessage(e),e.action===Mf&&this._window.top.postMessage(e,this._targetOrigin)},close:function(){E.each(this._ports,function(e){e.close()}),this._ports={},this._closeChannel()},_openChannel:function(){this._channel=new this._window.MessageChannel,this._port=this._channel.port1,this._boundFrameConnectHandler=E.bind(this._frameConnectHandler,this),this._port.addEventListener("message",this._boundFrameConnectHandler),this._port.start()},_closeChannel:function(){this._port&&E.isFunction(this._port.close)&&(this._port.close(),this._port=null,this._channel=null)}}),E.extend($f.prototype,Ti,{connectToTop:function(e,t){this._isTop||this._window.top.postMessage(JSON.stringify(e),t)},frameConnect:function(e){this._frames[e.data.frameId]=e.source,this._relayHandlerAdded||(this._relayHandlerAdded=!0,this._boundRelayMessage=E.bind(this._relayMessage,this),this._singletonMessageHandler.addEventListener(this._boundRelayMessage)),e.source.postMessage(JSON.stringify({action:"pendo::connectSuccess"}))},frameDisconnect:function(e){delete this._frames[e.data.frameId]},connectSuccess:function(){this._singletonMessageHandler.removeEventListener(this._boundFrameConnectHandler),this._singletonMessageHandler.addEventListener(this._boundMessageReceived)},broadcast:function(t){var n=this._singletonMessageHandler.targetOrigin();E.each(this._frames,function(e){t.source!=e&&e.postMessage(JSON.stringify(t.data),n)}),t.source!=this._window&&this._messageReceived(t)},postMessage:function(e){this._isTop?this._relayMessage({data:e,source:this._window}):this._window.top.postMessage(JSON.stringify(e),this._singletonMessageHandler.targetOrigin())},close:function(){var e=this._singletonMessageHandler;e.removeEventListener(this._boundFrameConnectHandler),e.removeEventListener(this._boundMessageReceived),e.removeEventListener(this._boundRelayMessage)}});Df=window,Uf=Sa,jf=!(Gf=[]);var Df,Uf,Gf,jf,Bf={targetOrigin:function(){return jf?location.origin:"*"},secure:function(e){jf=e},addEventListener:function(e){0===Gf.length&&Df.addEventListener("message",zf),Gf.push(e)},removeEventListener:function(e){e=Gf.indexOf(e);0<=e&&Gf.splice(e,1),0===Gf.length&&Df.removeEventListener("message",zf)},close:function(){Df.removeEventListener("message",zf),Gf.length=0}};function zf(t){jf&&!Uf(t.origin)||E.each(Gf,function(e){E.isFunction(e)&&e(t)})}function Hf(e){if(!$e.addEventListener)return{addEventListener:E.noop,postMessage:E.noop,close:E.noop};var t=!!window.__pendoExtensions;if(f.get("preferBroadcastChannel")&&!t&&E.isFunction(window.BroadcastChannel)){e.commit("frames/setChannelType","BroadcastChannel");t=function(e,o){const a=[];return e.removeEventListener=E.wrap(e.removeEventListener,function(e,t,n){var i,r=E.toArray(arguments).slice(1);return"message"===t&&0<=(i=E.findIndex(a,e=>e[0]===n))&&(r[1]=a[i][1],a.splice(i,1)),e.apply(this,r)}),e.addEventListener=E.wrap(e.addEventListener,function(e,t,n){var i,r=E.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=E.wrap(e.postMessage,function(e,t){return t.tabId=o.getTabId(),e.apply(this,E.toArray(arguments).slice(1))}),e}(new BroadcastChannel("pendo"),sn);if(t&&E.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),Lf(e,window,Bf)}var Wf="guides_blocked",qf="Guides disabled: unreachable endpoint guide.gif";const Vf=h.getLocal();var Kf=[],Jf="Guide was not shown because this visitor is in a control group of an active experiment for the guide";const Zf=[];function Yf(){var e=f.get("guideCssAssetPath");return e||ro("guide.css")}var Xf="_pendo-guide_",Qf="_pendo_g_",eg=0;function tg(e){eg=e}var ng=function(){return E.any(R,function(e){return e.isShown()})},ig=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"),De()?9<Ie&&n.css({top:3}):8===Ie?n.css({top:9,right:2}):9===Ie?n.css({right:2,top:3}):9<Ie&&n.css({top:3}),e=k("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},rg=function(n){return E.reduce(R,function(e,t){return n(t)&&e.push(t),e},[])},og=function(e,t,n,i,r,o){e=Yu(N(e),t);e&&(e.seenState=n,e.lastSeenAt=i,e.destinationStepId=o,r!==undefined)&&(e.dismissCount=r)},ag=function(e){for(var t=new RegExp("^"+Qf);e;){if(E.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function sg(t){E.each(R,function(e){E.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var ug=function(e){return e&&e.guideId};var dg=function(e,t){var n,i;return ug(e)&&(t=e,e=null),(n=t)&&E.isFunction(n.render)?t:t?(n=N(t.guideId))&&n.findStepById(t.id):(n=E.find(R,function(e){return e.isShown()}))?((i=e?ag(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||Eo("findStepForGuideEvent: step with id "+i):(t=E.find(n.steps,function(e){return e.isShown()}))||Eo("findStepForGuideEvent: no step shown"),t):void 0},cg=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=ud(e);"tooltip"===e.type&&E.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Du(n,t,wg,!0)};function lg(e){return e.isLocked()&&(!e.elements||!e.elements.length||void Co('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}var pg=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=E.get(e,"attributes.activation.selector",""),e=yr(e);e.length<1||e[0].focus()},fg=function(){var e=P.getResourceCenterBadge();e?e.element().focus():(e=P.getResourceCenter(),hg(e))},gg=function(e){if(!I.designer&&e&&"building-block"===E.get(e,"attributes.type","")){var t=e.steps[0],n=t.seenReason,i=E.get(e,"launchMethod","").split("-"),r=E.contains(i,"dom"),o=E.contains(i,"badge"),i=Ng(e);if(E.get(t,"attributes.isAutoFocus")||i)switch(n){case"badge":o&&pg(t);break;case"dom":r&&hg(e);break;case"launcher":fg();break;default:return}}};function mg(e,t){return!e.isMultiApp&&("auto"===t||"repeatGuide"===t)}var vg=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=dg(e,t))&&t.id?lg(t)||("dismissed"===t.seenState?C.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(C.info("onGuideDismissed called",{contexts:["guides"]}),m.beforeDismiss.trigger(t).cancel?C.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(cg(t),e=t.id,n=N(s=t.guideId),i=(i=E.first(n&&n.steps))&&i.seenReason,o=n&&n.language,r=E.get(t,"dismissCount",0)+1,$g(s,e,b(),i,o),o=v(),og(s,e,"dismissed",o,r),(a=E.isFunction(t.getGuide)&&t.getGuide())&&a.attributes&&a.attributes.doNotResume||Lp({guideId:s,guideStepId:e,time:o,state:"dismissed",seenReason:i,visitorId:b(),dismissCount:r}),mg(n,i)&&Gg(o,Ug.DISMISSED),t.hide(),gg(a),ng()||(Jp(),Zp())))):Jp()},yg=function(e,t,n){var i,r,o,a,s,u,d,c;C.info("onGuideSnoozed called",{contexts:["guides"]}),(t=dg(e,t))?"snoozed"===t.seenState?C.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):m.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")),lg(t)||(cg(t),e=t.id,i=t.guideId,r=b(),o=N(i),a=o&&o.language,s=E.first(o&&o.steps),s=s&&s.seenReason,u=v(),C.info("snoozing guide for "+n+" ms"),d=u+n,t.snoozeEndTime=d,c=Bg({type:"guideSnoozed",guideId:c=i,stepId:e,visitorId:r,seen_reason:s,language:a,snooze_duration:n}),Wg(c),m.guideSnoozed.trigger(c),og(i,e,"snoozed",u),o&&o.attributes&&o.attributes.doNotResume||Lp({guideId:i,guideStepId:e,time:u,state:"snoozed",seenReason:s,visitorId:b(),snoozeEndTime:d}),mg(o,s)&&Gg(u,Ug.SNOOZED),t.hide(),gg(o),ng())||(Jp(),Zp())):(C.info("missing step. can't snooze",{contexts:["guides","error"]}),Jp(),Eo("onGuideSnoozed: missing step"))},bg=function(e){var t,n,i,r=(r=e&&e.step)||dg(e);r?(i=e&&e.params,i=E.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=E.find(i.steps,function(e){return e.id===t}))?(n=E.indexOf(i.steps,n),i=E.indexOf(i.steps,r),e.steps=Math.abs(n-i),e.action=e.action||"goToStep",e.destinationStepId=t,i<n?wg(e,r,!1):Sg(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"]})},wg=function(e,t,n){if((s=zm())&&E.each(s.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=ud(e);"tooltip"===e.type&&E.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Du(n,t,wg,!0)}),1===arguments.length&&ug(e)&&(s=Ju(e.guideId),i=dg(),s)&&i&&E.first(s.steps).id===i.id&&E.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=dg(e,t))===e&&(e=null),t){if(!lg(t))if("advanced"!==t.seenState||n)if(m.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&&E.findIndex(r.steps,e=>t.id==e.id);if(e&&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],Dg(r.id,t.id,b(),t.seenReason,o,d!==a);var c=v();Lp({guideId:t.guideId,guideStepId:t.id,time:c,state:"advanced",seenReason:t.seenReason,visitorId:b()}),og(r.id,t.id,"advanced",c,undefined,h)}return wg(r.steps[s],t,!0)}var l,i=t.id,s=t.guideId,p=E.first(r&&r.steps),p=p&&p.seenReason,h=e&&e.destinationStepId,f=(h||(f=e&&E.isNumber(e.steps)&&1<e.steps?e.steps:1,h=(f=E.isNumber(a)&&r&&r.steps&&r.steps[a+f])&&f.id||null),h||C.info("missing destination step id"),C.info("advancing guide"),Dg(s,i,b(),p,o,n,h),C.info("update guide status"),r&&E.last(r.steps).id===i&&(l=E.get(t,"dismissCount",0)+1),(new Date).getTime()),g=(og(s,i,"advanced",f,l,h),E.isFunction(t.getGuide)&&t.getGuide());g&&g.attributes&&g.attributes.doNotResume||Lp({guideId:s,guideStepId:i,time:f,state:"advanced",seenReason:p,visitorId:b(),destinationStepId:h,dismissCount:l}),mg(r,p)&&Gg(f,Ug.ADVANCED),C.info("stop guide"),Jp(),C.info("start guides"),Zp()}else C.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else C.info("missing step. can't advance",{contexts:["guides","error"]}),Jp(),Eo("onGuideAdvanced: missing step")},Sg=function(e,t){var n,i,r,o,a,s;C.info("onGuidePrevious called",{contexts:["guides"]}),(t=dg(e,t))?"advanced"===t.seenState?C.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):m.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=E.indexOf(o.steps,t))&&(r="element"==t.advanceMethod?"click":"mouseover",a=ud(t),"tooltip"===t.type&&E.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):Du(a,r,wg,!0),a=e&&E.isNumber(e.steps)?e.steps:1,r=E.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"),Dg(n,t.id,b(),i,r,!1,o),C.info("update guide status"),a=(new Date).getTime(),og(t.guideId,t.id,"advanced",a,undefined,o),(s=E.isFunction(t.getGuide)&&t.getGuide())&&s.attributes&&s.attributes.doNotResume||Lp({guideId:t.guideId,guideStepId:t.id,time:a,state:"advanced",seenReason:i,visitorId:b(),destinationStepId:o}),Jp(),Zp())):(Jp(),Eo("onGuidePrevious: missing step"))},Ig=function(e){var t;k("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",io()+"/img/tiny-logo.png"),t=k(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:I.TOOLTIP_ARROW_SIZE}).append(t),ju.push(t[0]),t.appendTo(e))};function _g(e){return e&&e.attributes&&e.attributes.stayHidden}const Eg=(e,t,n)=>{var i;return ph()&&({id:e,guideId:i}=e,m.stepEligibility.trigger({stepId:e,guideId:i,eligible:t,reason:n})),t};var Cg=function(e){var t,n,i=E.partial(Eg,e);return _g(e)?i(!1,"dismissed"):e.elementPathRule||"lightbox"!==e.type&&"whatsnew"!==e.type?e.triggerElementPathRule&&!ca(yr(e.triggerElementPathRule)[0])?i(!1,"trigger_element"):(t=ud(e),(n=e.targetElement)&&e.elementContainsRulesList&&!xg(n,e.elementContainsRulesList)?i(!1,"contains_rules"):(n="tooltip"===e.type||xc.isBuildingBlockGuideRelativeToElement(e),e=ca(t),n?e?i(e,"target_element_tooltip"):i(la(t),"target_element_tooltip_scroll"):i(e,"target_element"))):i(!0,"")};function Tg(e){var t=(k(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function xg(e,t){for(var n=Tg(e),i=0;i<t.length;i++)if(!kg(n,t[i]))return!1;return!0}function kg(e,t){var n=t.matchType,i=t.matchValue,t=t.dataType,e=e||"";if("number"===t){var r=ht(e);if(null==r)return!1;e=parseFloat(r),i=parseFloat(i);if(isNaN(e)||isNaN(i))return!1}else"string"===t&&(e=e.toLowerCase(),i=i.toLowerCase());return"equal"===n?e===i:"notEqual"===n?e!==i:"contains"===n?-1<String(e).indexOf(i):"notContains"===n?-1===String(e).indexOf(i):"greaterThan"===n?i<e:"lessThan"===n&&e<i}var Ag=function(e){return Qf+e.id},Og=function(e){var t=e.element,n=E.first(k("#"+Ag(e)));t&&n?ca(t)||k.hasClass(n,"mouseover")?Dt(function(){Og(e)},qp):e.hide&&(e.hide(),ng())||(Jp(),Zp()):t||!n||e.hide&&(e.hide(),ng())||(Jp(),Zp())},Rg=function(){return!1},Ng=E.partial(E.get,E,"attributes.resourceCenter"),Mg=function(t){var e;ng()&&(e=dg(),cg(e),Ng(t)?(e=rg(Ng),(e=E.filter(e,function(e){return e.id!==t.id})).length&&g.dispatch("frames/hideGuides",E.pluck(e,"id"))):(sg(),g.dispatch("frames/hideGuides")))},Lg=function(e,t){return!(!e||!e.guideId||!(e=N(e.guideId)))&&(Mg(e),e.launch(t),e.isShown())},Pg=function(e,t,n,i,r,o){e=Bg({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&E.extend(e.props,{step_poll_types:o}),Wg(e),m.guideNotSeen.trigger(e)};var Fg=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("-"),!E.contains(a,s))&&a.length?E.first(a):s);var a=Bg({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),s=(E.extend(a.props,o),Wg(a),v());Lp({guideId:e,guideStepId:t,time:s,state:"active",seenReason:i,visitorId:b()}),og(e,t,"active",s),m.guideSeen.trigger(a)};function $g(e,t,n,i,r){e=Bg({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});Wg(e),m.guideDismissed.trigger(e)}function Dg(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=Bg(e);Wg(t,null,o),m.guideAdvanced.trigger(t)}var Ug={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function Gg(e,t){jg(e,t);var n={};n[t]=e,g.dispatch("frames/changeThrottlingState",n)}function jg(e,t){E.contains(E.values(Ug),t)&&(E.isFunction(e.getTime)&&(e=e.getTime()),I[t]=e,h.write(t,e,Np),g.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function Bg(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),E.isString(a.language)||delete a.language,E.extend({guide_id:a.guideId,guide_step_id:a.stepId},E.omit(a,"type","guideId","stepId","visitorId"))),t=sn.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:Gn(),browser_time:(new Date).getTime(),url:A.externalizeURL(),props:e});return m.eventCaptured.trigger(t),t}var zg=null,Hg=function(e){window.clearTimeout(zg),zg=Dt(Sm,e)},Wg=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-eg,Tm(),bm.push(e),Hg(t)},qg=function(e,t){return"dismissed"===e.state?null:N(e.guideId).nextStep(e,t||Vg())},Vg=function(){return I.normalizedUrl||Kg(A.externalizeURL())},Kg=function(e){try{var t=new qn(e),n=E.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return C.error("Invalid URL provided to normalize"),e}},Jg=function(e,t){return!ge(e)||new RegExp(e).test(t)},Zg=function(e,t){e=Zu(e);return!!e&&(!(t=Lg(E.first(e.steps),t||"api"))&&e.control&&C.info(Jf),t)},Yg=function(e,t){e=N(e);return!!e&&(!(t=Lg(E.first(e.steps),t||"api"))&&e.control&&C.info(Jf),t)};function Xg(e,t){return t=parseInt(t,10),isNaN(t)||!E.isNumber(t)||!(E.isNumber(e)&&e<t)&&E.isNumber(e)?e:t}var Qg,em=function(){Jp(),Kp(),P.removeNotificationBubble(),bh(),ss()};function tm(){Jp(),Oo(),I.segmentFlags=[],I.doNotProcess=!0,g.commit("debugger/doNotProcess",!0),C.info("not tracking visitor due to 451 response")}function nm(e){if(Qg&&(451===e.statusCode&&(tm(),Qg.deferred.reject(e)),!E.isString(e.id)||e.id===Qg.id)){const t=E.indexBy(I.guides,"id");E.extend(I,e),I.guides=E.map(I.guides,function(e){return 1==E.keys(e).length&&e.id?t[e.id]:e}),Qg.deferred&&Qg.deferred.resolve(),Qg=null}}var im=function(e,t){var n=oo(),i=E.uniqueId(),r=y.defer(),o=(Qg={id:i,deferred:r},Tl()||((o=xl())?(C.info("sending metadata: "+JSON.stringify(o),{contexts:["guides","metadata"]}),t.metadata=o):C.info("no metadata to send",{contexts:["guides","metadata"]})),et(t)),i={id:i,jzb:o,v:He,ct:(new Date).getTime()},n=(n&&t.accountId&&"ACCOUNT-UNIQUE-ID"!==t.accountId&&(i.acc=it(t.accountId)),ph()&&(i.debug=!0),Io(rm.endpoint(),e,i)),t=fs.get();return o=2e3<n.length||!E.isEmpty(t)?(delete i.jzb,n=Io("guide.json",e,i),i=E.extend({events:o},t),rm.post(n,i,I,E.noop)):rm.load(n,I,E.noop),y.all([o["catch"](function(e){return 451===e.status&&tm(),y.reject(e)}),r.promise,(t=rm,i=e,"1"===(n=h.read(Wf))?(C.info(qf),y.resolve({success:!1,cached:!0})):"0"===n?y.resolve({success:!0,cached:!0}):(n=Io("guide.gif",i,{jzb:"eJwFwIEIAAAAwDDQd3-N1QABFQC5",ct:v(),v:He}),(t.usesXhr()?xr.get(n):To(n)).then(function(){return{success:!0}},function(e){return e&&e.status?{success:!0}:{success:!1}})))]).then(function([,,e]){var t;if((t=e).cached||(t.success?h.write(Wf,"0",144e5):(C.info(qf),h.write(Wf,"1",18e5))),!e.success)return y.reject()})},rm=bd;function om(e){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 am(n){return E.every(Zf,e=>{try{return e(n)}catch(t){return console.debug("Error in guide processor",e,n.id),!1}})}function sm(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&E.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}var um,dm=function(){return!f.get("disableGlobalCSS")};function cm(e,t){var n=f.get("dropAnonymous");if(xn(e)&&n)C.info("loading guides blocked for anonymous visitors due to dropAnonymous config setting being set to true"),E.isFunction(t)&&t("error: guides are blocked");else if("1"===h.read(Wf))C.info("guide events are blocked, load guides cancelled"),E.isFunction(t)&&t("error: guides are blocked");else{if(es(ts()))return 1;C.info("bad url: probably local file system",{contexts:["guides","error"]}),E.isFunction(t)&&t("error: invalid url")}}var lm=function(e,a,s,u){var d=y.defer(),c=!1;if(e=e||I.apiKey,cm(a=a||b(),u)){C.info("loading guides for "+s+"...",{context:["guides"]}),s=A.externalizeURL(s);var n,t,i=lm.lastVisitorId!==a,l=i?E.noop:(r=R,(t=E.find(r,function(e){return E.isFunction(e.isRendered)&&e.isRendered()&&!e.isTopLevel}))?(n=E.chain(t.steps).filter(function(e){return e.isRendered()}).indexBy("id").value(),function(e){e=E.findWhere(e,{id:t.id});e&&!E.get(e,"attributes.doNotResume")&&E.each(e.steps,function(e){var t=n[e.id];!t||e.seenState&&"active"!==e.seenState||e.show(t.seenReason)})}):function(){}),r=(lm.lastVisitorId=a,Kp(),g.commit("guideState/setLastGuideRequestAt",v()),{visitorId:a,accountId:Gn(),url:s,oldVisitorId:Pn=Pn===undefined&&kn()?Bn(_n):Pn}),o=function(e,t,n=v()){let i=[];return f.get("cacheGuides")&&!(i=n-(t.lastUncached||0)<f.get("cacheGuidesTimeout")?E.map(e.guides,e=>E.pick(e,"id","lastUpdatedAt")):i).length&&(t.lastUncached=n),i}(I,lm);o.length&&!i&&(r.cachedGuides=o);const p=E.uniqueId();lm.reqId=p,im(e,r).then(function(){if(!c&&!I.designer)if(lm.reqId!==p)d.resolve();else{m.deliverablesLoaded.trigger(),C.info("successfully loaded guides for "+s,{contexts:["guides"]}),I.designerEnabled&&"true"!==Vf.getItem("pendo-designer-mode")&&wf.loadPluginJs(),em();var t=I.lastGuideStepSeen;if(t){g.dispatch("guideState/receiveLastGuideStepSeen",t),t.visitorId=a,g.dispatch("guideState/updateLastGuideStepSeen",t),g.commit("guideState/setLastGuideRequestAt",v()),zu={};t=I.guides;var t=E.chain(t).map(Ud).filter(om).filter(am).sortBy(sm).value(),n=(Vu(t),Xu());g.dispatch("guideState/load",(r=Mp,o=f.get("crossAppGuideStorageSuffix"),h.read(r,!1,o))),g.dispatch("guideState/apply"),I.latestDismissedAutoAt=Xg(I.latestDismissedAutoAt,h.read("latestDismissedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestDismissedAutoAt",value:I.latestDismissedAutoAt}),I.finalAdvancedAutoAt=Xg(I.finalAdvancedAutoAt,h.read("finalAdvancedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"finalAdvancedAutoAt",value:I.finalAdvancedAutoAt}),I.latestSnoozedAutoAt=Xg(I.latestSnoozedAutoAt,h.read("latestSnoozedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestSnoozedAutoAt",value:I.latestSnoozedAutoAt}),g.dispatch("healthCheck/init",t),g.dispatch("frames/changeGuideList",n),I.eventProperties=Mm(I.features);let e=y.resolve();I.globalJsUrl&&(e=Af(jd(I.globalJsUrl))["catch"](function(e){C.error("Error loading global script: ",e)})),n.length?y.all([ym(),e,Em(t),Of.initializeWatermark(t),fm(5e3)].concat((i=t,E.map(pm,function(e){return e(i)})))).then(function(){lm.reqId===p&&(g.getters["frames/isLeader"]()&&l(R),m.guidesLoaded.trigger(),Zp(),clearTimeout(um)),E.isFunction(u)&&u(),d.resolve()},function(e){C.error("Post loadGuide request failed: ",e),m.guidesFailed.trigger(),d.reject()}):(m.guidesLoaded.trigger(),d.resolve())}else C.info("lastGuideStepSeen is not set, shutting down guides")}var i,r,o})["catch"](function(e){m.guidesFailed.trigger(),d.reject(e)});i=f.get("guideTimeout")||f.get("guides.timeout");E.isNumber(i)&&(clearTimeout(um),um=Dt(function(){var e;e=d,em(),e.reject(),c=!0},i))}else d.reject();return d.promise};var pm=[];function hm(e,t){var n,i=document.getElementById(e);return i&&i.href&&0<=i.href.indexOf(t)?y.resolve():(n=y.defer(),k(i).remove(),I.loadResource(t,function(){n.resolve()}).id=e,n.promise)}var fm=E.memoize(function(t,n,e){if(!dm()||!gm(R))return y.resolve();n=n||v,e=e||"_pendo-hidden_";var i=k(document.createElement("div")).addClass(e).css({position:"absolute",bottom:"0px",right:"0px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(k.getBody()),r=n(),o=y.defer();return function s(e){Dt(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=O(e);if(e)return"none"===e.display}});function gm(e,t){return t&&t.designer||E.any(e,function(e){return!id(e)&&E.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl||e.domJson)})})}const mm="_pendo-default-css_",vm="_pendo-css_";function ym(){var e=[];if(!dm())return y.resolve();gm(R,I)&&e.push(hm(mm,Yf()));var t=((I.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(hm(vm,jd(t))):k("#"+vm).remove(),y.all(e)}var bm,wm,Sm=function(e){bm&&bm.flush(e)},Im=function(){return Kf};function _m(e){var t=_s(Ds,ks("visitor_id"),ks("props.guide_id"),ks("props.source"),$s,Us(),Bs(e),zs,Hs,Xs),n=_s(Cs,Ts(e.cache),E.noop);return new iu(E.extend({processSilos:t,packageSilos:n},e))}var Em=function(e){return P.initializeResourceCenter(e)},$={postMessage:E.noop,close:E.noop};let Cm=$;function Tm(e){return bm=bm||_m(E.extend({cache:Kf,apiKey:function(){return I.apiKey},beacon:"guide",allowPost:!0,preferFetch:$e.safari},e)),wm=wm||_m(E.extend({cache:[],apiKey:function(){return I.apiKey},beacon:"poll",allowPost:!0,preferFetch:$e.safari},e)),rs(bm),rs(wm),()=>{bm.clear(),wm.clear(),os(bm),os(wm)}}function xm(e){var e=e["blockedURI"];e&&-1!==e.indexOf("/data/guide.json")&&f.get("cacheGuides")&&((e=f.getLocalConfig()).cacheGuides=!1,f.setLocalConfig(e),Er(window,"securitypolicyviolation",xm),jm())}var km=function(){const e=[];e.push(Tm({localStorageUnload:f.get("analytics.localStorageUnload")})),fh.run(),e.push(fh.stop),m.appUnloaded.on(function(){g.dispatch("frames/leave")}),m.metadata.on(function(e){e=e.data[0].storeChanged;e&&!Tl()&&Gm()}),m.identify.on(function(){Gm()}),m.urlChanged.on(function(){Gm(A.get())}),m.guideUpdateComplete.on(function(){var e,t,n;e=E.filter(R,e=>E.isFunction(e.outsideTimebox)&&e.outsideTimebox()),Ku.addGuide(e),Hd.processPrefetch(),e=R,t=Bu,f.get("disablePrefetch")||(t=E.keys(t)).length&&(n=E.indexBy(e,"id"),E.each(t,function(e){var e=n[e];e&&(e=E.first(e.steps))&&E.isFunction(e.fetchContent)&&e.fetchContent(!0)}))}),m.guidesLoaded.on(function(){P.fetchAnnouncementGuidesContent(R,g)}),m.guideListChanged.on(function(e){e=e.data[0].guideIds;if(e&&e.length){const n=E.indexBy(e);E.each(Bu,function(e,t){n[t]||(e.hide(),delete Bu[t])})}}),e.push(function(e,t,n){var{Turbolinks:i,Turbo:r}=window;let o;if(i&&(o=i.EVENTS&&i.EVENTS.LOAD),!(o=r&&r.visit?"turbo:load":o))return()=>{};const a=_r(e,o,t),s=_r(e,"turbo:before-cache",n);return()=>{a(),s()}}(document,function(){A.get()===Um.lastUrl&&jm()},function(){em()}));var t=f.get("guides.tooltip.arrowSize");if(E.isNumber(t)&&(I.TOOLTIP_ARROW_SIZE=t),Cm=Hf(g),$=Nf(Cm,g),e.push(()=>$.close()),e.push(sn.tabIdChanged(function(){var e=sn.getTabId();g.commit("frames/setTabId",e),g.dispatch("frames/join")})),g.dispatch("frames/init"),g.dispatch("frames/join"),e.push(function(){const e=[];return g.dispatch("guideState/init"),e.push(_r(window,"focus",Pp)),e.push(_r(window,"storage",function(e){g.dispatch("guideState/storageChanged",e)})),()=>E.each(e,function(e){e()})}()),e.push(()=>{Fm.cancel(),Ih.cancel()}),e.push(_r(window,"resize",Fm)),e.push(_r(window,"scroll",Ih,!0)),e.push(_r(window,"gestureend",$m,!0)),e.push(_r(window,"securitypolicyviolation",xm)),e.push(function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];const t=[];for(var n=0;n<e.length;n++)t.push(_r(document,e[n],Dm));return()=>{E.each(t,function(e){e()})}}()),f.get("preferMutationObserver")&&$e.MutationObserver){const n=E.debounce(function(e){g.dispatch("guideUpdate/documentChanged")},50);e.push(()=>{n.cancel()}),e.push(l(window,"animationend",n)),e.push(l(window,"transitionend",n)),e.push(l(window,"mouseover",n)),g.commit("guideUpdate/setUseObserver"),f.get("observeShadowRoots")&&g.commit("guideUpdate/setObserveShadowRoots"),e.push(()=>g.dispatch("guideUpdate/stopObserver"))}return h.registry.addLocal(Ug.ADVANCED),h.registry.addLocal(Ug.DISMISSED),h.registry.addLocal(Ug.SNOOZED),h.registry.addLocal(Wf),Vd.initialize(),()=>{Um.reset(),em(),Gm.reset(),lm.reqId=null,E.each(e,function(e){e()}),k("#"+mm).remove(),k("#"+vm).remove(),Vd.teardown()}},Am=function(){return f.get("guides.disabled",!1)||f.get("disableGuides",!1)||!So},Om=function(){return f.get("guides.delay",!1)||f.get("delayGuides",!1)},Rm=function(e){var t=f.getLocalConfig();t.disableGuides=e,f.setLocalConfig(t)},Nm=function(e){var t=f.getLocalConfig();t.delayGuides=e,f.setLocalConfig(t)},Mm=Wn(function(e){if(e&&e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n].featureRule,r=E.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}}),Lm=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},Pm=function(){C.debug("adjustActiveGuideOnResize firing");var e=zm();e&&e.step&&!I.ignoreResize&&e.step.redraw()};const Fm=E.debounce(function(){var e;-1<E.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=Lm())||e.id.indexOf("pendo-video-")<0)&&Dt(function(){Pm()},150):Pm(),Ih()},50),$m=function(e){1!==e.scale&&Fm()};var Dm=function(e){var t=E.get(document,"activeElement.id",""),e=E.get(e,"target.id","");E.filter([t,e],e=>-1<e.indexOf("pendo-video-")).length&&(Lm()?I.ignoreResize=!0:Dt(function(){I.ignoreResize=!1},1e3))};function Um(e){var t,n,i,r,o=b(),a=Gn();e=e||A.get(),n=o,i=a,r=el,!(t=e)||!I.apiKey||Am()&&"true"!==Vf.getItem("pendo-designer-mode")||t===Um.lastUrl&&n===Um.lastVisitorId&&i===Um.lastAccountId&&r===Um.lastMetadataHash||(Um.lastUrl=e,Um.lastVisitorId=o,Um.lastAccountId=a,Um.lastMetadataHash=el,lm(I.apiKey,o,e)["catch"](E.noop))}Um.reset=function(){E.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){Um[e]=null})};var Gm=function(e){So&&(Gm.reset(),Gm.pending=Dt(function(){delete Gm.pending,Um(e)},0))};function jm(){Um.lastUrl=null,Gm()}function Bm(e){e=Zf.indexOf(e);-1!==e&&Zf.splice(e,1)}function zm(){var e,n,t=E.find(R,function(e){return e.isShown()});return!t||E.get(t,"attributes.resourceCenter.isModule")&&!(t=P.getResourceCenter())?null:(e=E.find(t.steps,function(e,t){return n=t,e.isShown()}),{guide:t,steps:E.filter(t.steps,function(e,t){return e.isShown()}),step:e,stepIndex:n})}function Hm(e){var t,n=E.get(e,"value","");-1!==E.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],E.forEach(e,function(e){"none"!==E.get(e,"style.display","none")&&t&&t.setAttribute("aria-labelledby",e.id)}))}Gm.reset=function(){Gm.pending&&clearTimeout(Gm.pending)};var Wm=function(){var n=this,o=(this.eventable=pn.call({}),this.eventable.on("pendoEvent",function(e){try{n.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";C.critical("Error in Action "+e,{error:t})}}),this.eventHandler=function(e){if(!e.ignore&&!I.designer){var t=e.step["guideElement"];switch(e.action){case o.advanceGuide:wg(e,e.step);break;case o.previousStep:Sg(e,e.step);break;case o.goToStep:bg(e);break;case o.submitPoll:this.submitPoll(e);break;case o.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;yg(e,e.step,n);break;case o.dismissGuide:P.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return vg();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return P.dismissResourceCenter(t);vg(e,e.step)}(e);break;case o.showElements:this.setElementDisplay(e,"block"),e.srcElement&&Hm(e.srcElement),Kc((i=Kd(e.step.domJson)).props.id,t),Jc(i.props.id,t),M.flexAllThings(i.props.id,e.step),Vc(i.props.id,t);break;case o.hideElements:this.setElementDisplay(e,"none"),Kc((i=Kd(e.step.domJson)).props.id,t),Jc(i.props.id,t),M.flexAllThings(i.props.id,e.step),Vc(i.props.id,t);break;case o.slideElement:this.setElementAnimation(e);break;case o.showGuide:n=E.find(e.params,function(e){return"reason"===e.name});Yg(e.params[0].value,n&&n.value);break;case o.launchGuide:this.launchGuide(e);break;case o.renderResourceCenterModule:var i=a(e);P.replaceResourceCenterContent(e.params[0].value,i);break;case o.returnToResourceCenterHome:n=P.findResourceCenterHomeView(Wu());if(!n)return;P.attemptToPreserveIntegrationIframes(e),P.replaceResourceCenterContent(n.id,e.params);break;case o.openLink:this.openLink(e);break;case o.searchGuides:this.searchGuides(e);break;case o.submitPollAndGoToStep:this.submitPoll(e),bg(e);break;case o.confirmation:this.confirmGuide(e)}var r=Wm.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(E.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=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(E.compact(n)):C.info("[Agent] Error! Trying to submit a poll response but step does not have response function!");t!==o.submitPollAndGoToStep&&i.advance()},this.setElementDisplay=function(e,t){var n=e.step,e=k(E.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);E.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=k(E.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=E.find(e.params,function(e){return"transition"===e.name}).value,e=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=E.find(e.params,function(e){return"url"===e.name}).value,e=E.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&Ha()&&(e="_top");window.open(t,e)},this.goToStep=bg,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"})),E.isFunction(i[u].getAttribute)&&(e=i[u].getAttribute("data-_pendo-text-list-item-1").split(","),E.forEach(e,function(e){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 E.contains(t,e)&&e===n})},this.confirmGuide=function(e){var e=e.step,t=function(e){if(e.confirmationElementPathRule)return yr(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=a,this.launchGuide=function(e){var t=!E.get(e,"params.2.value.doNotDismiss");t&&vg(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=E.find(n.steps,function(e){return e.id===i}))||n.steps[0],Mg(n),r.show("api")):t&&Yg(e.params[0].value)}},this.debounceAnnounceResults=E.debounce((e,t)=>{e.innerHTML=t},300),{advanceGuide:"advanceGuide",previousStep:"previousStep",goToStep:"goToStep",submitPoll:"submitPoll",guideSnoozed:"guideSnoozed",dismissGuide:"dismissGuide",showElements:"showElements",hideElements:"hideElements",slideElement:"slideElement",showGuide:"showGuide",launchGuide:"launchGuide",renderResourceCenterModule:"renderResourceCenterModule",returnToResourceCenterHome:"returnToResourceCenterHome",openLink:"openLink",searchGuides:"searchGuides",submitPollAndGoToStep:"submitPollAndGoToStep",confirmation:"confirmation"});function a(e){return e.params.find(e=>"transitionDirection"===e.name)?[{name:"transitionCss",type:"string",value:"left 200ms"},{name:"transitionDirection",type:"string",value:"right"}]:[]}return this},qm=(Wm.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&((Wm.prototype.registeredActions=Wm.prototype.registeredActions?Wm.prototype.registeredActions:{})[e]=t)},function(){var s="guideActivity",u=function(){return(new Date).getTime()-eg},r=E.isObject,d=E.findWhere;const c=[];return{type:s,handler:function(e){var t,n=e.data[0],e=e.data[1];e=e,r(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if(E.isString(e.id)&&0===e.id.indexOf("pendo-base"))return!0;if(r(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return l(e)}(t)||function(e){return h(e)}(t)||function(e){return p(e)}(t))&&(e=function(e){var t=function(e){for(var t of c){t=t(e);if(t)return t}return zm()}(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=E.find(Wu(),function(e){return e.id===t});return e?{guide:e,step:e.steps[0]}:undefined}(e.id)))return;if(!t.step||!t.step.domJson)return;var e=h(e)||l(e)||p(e)||{type:e.tag,id:e.id},n=function a(e,t){if(t.props&&t.props.id&&t.props.id===e)return t;if(t.children!==undefined)for(var n=0;n<t.children.length;n++){var i=a(e,t.children[n]);if(i!==undefined)return i}return undefined}(e.id,t.step.domJson);if(!n)return;let i=e.id;n=function(e,t){if(e!==undefined){if("a"===e.type)return[{action:"openLink",url:Vr(e.props.href),target:e.props.target}];if(e.actions!==undefined)return E.map(e.actions,function(e){switch(e.action){case"automation":var t=d(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=d(e.parameters,{name:"url"}),n=d(e.parameters,{name:"target"});return{action:e.action,url:Vr(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=d(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=d(e.parameters,{name:"snooze_duration"}),t=d(e.parameters,{name:"time_unit"});return{action:e.action,duration:n.value,timeUnit:t.value};case"showGuide":case"launchGuide":n=e.parameters[0],t=e.parameters[1]||{};return{action:e.action,guideId:n.value,stepId:t.value};case"advanceGuide":case"previousStep":case"submitPoll":case"dismissGuide":case"confirmation":return{action:e.action};default:return{}}});if("pendo_task_list_item"===t.templateName&&E.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 Bg({type:s,visitorId:b(),ui_element_id:i,ui_element_type:e.type,ui_element_actions:n,guideId:t.guide.id,stepId:t.step.id,duration:u(),language:t.guide.language})}(n))&&Wg(e)},registerGuideResolver:function(e){c.push(e)},removeGuideResolver:function(e){e=c.indexOf(e);-1!==e&&c.splice(e,1)}};function l(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-button/.test(e.id))?{type:e.tag,id:e.id}:i(e)||!r(e.parentElem)?null:l(e.parentElem)}function p(e){var t,n;if("LI"===e.tag&&/pendo-task-list-item/.test(e.cls))return t=(n=e.id.split("-")).pop(),n=n.join("-"),{type:e.tag,id:n,templateName:"pendo_task_list_item",templateChildIndex:t};return i(e)||!r(e.parentElem)?null:p(e.parentElem)}function h(e){return"A"===e.tag?{type:e.tag,id:e.id}:i(e)||!r(e.parentElem)?null:h(e.parentElem)}function i(e){return E.isString(e.id)&&0===e.id.indexOf("pendo-guide-container")}}()),Vm=[],Km=!(Wm.deregisterAction=function(e){e&&"string"==typeof e&&delete(Wm.prototype.registeredActions=Wm.prototype.registeredActions?Wm.prototype.registeredActions:{})[e]});const Jm={agent:{getJwtInfoCopy:fs.get,treatAsAdoptPartner:oo},agentStorage:h,analytics:{ptm:()=>Ps,collectEvent:Ss},attachEvent:l,ConfigReader:f,Events:m,EventTracer:sn,EventRouter:Wm,Extensions:{API:{addTopic:function(e,t){var n=Al[e]||{};E.extend(n,t),Al[e]=n}}},frames:{getChannel:()=>Cm},getAssetUrl:ro,getEventable:()=>pn.call({}),GlobalRuntime:{addGlobalScript:Vd.addGlobalScript,removeGlobalScript:Vd.removeGlobalScript},GuideActivity:qm,GuideLoop:{addUpdatePhase:sh,removeUpdatePhase:uh},guides:{addProcessor:function(e){return Zf.push(e),E.partial(Bm,e)},removeProcessor:Bm,registerDisplayableGuides:function(e,t){E.isArray(t)&&(zu[e]=t)},removeDisplayableGuides:function(e){delete zu[e]}},hosts:{SERVER:je},NodeSerializer:Eu,q:y,sessionStorage:h.getSession(),sizeElements:Wc,store:g,Tombstone:Ku,transmit:{buildBaseDataUrl:Io,fetchKeepalive:xo,sendBeacon:ko},log:C,util:{trim:Ye,base64EncodeString:it,parseUrl:Ia,addInlineStyles:E.partial(Yd,f)},constants:{URL_MAX_LENGTH:2e3}};function Zm(t){E.find(Vm,function(e){return e.name===t.name})?C.warn(`Plugin with name ${t.name} already exists. Skipping registration.`):(Vm.push(t),Km&&t.initialize(I,Jm))}function Ym(){E.each(Vm,function(e){E.isFunction(e.teardown)&&e.teardown(I,Jm)}),Km=!1}Ll.registerExtensionsByUse("plugin",function(e){return E.extend(e.uri,E.pick(e,"name")),Zm(e.uri),e},function(e){return!!e.uri.initialize&&!!e.uri.teardown});var Xm=!1;function Qm(){Xm||(m.identify.on(function(e){var t,n,e=e.data[0];n=(t=e).old_visitor_id,t=t.visitor_id,(xn(n)?Tn(t)?xn(t)?(C.info("Visitor is anonymous: "+t),1):Rn(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,Tn(t)?n===t||(C.info("Re-mapping account identity from "+n+" to "+t),0):(C.info("Not valid account id: "+t),1))||(Ss("identify",e),ss())}),m.metadata.on(function(e){var t;Tl()||({options:e,hashChanged:t}=e.data[0],t&&(Ss("meta",e),ss()))}),Xm=!0)}ev="guideActivity",tv=function(){return(new Date).getTime()-eg},nv=E.isObject;var ev,tv,nv,iv={type:ev,handler:function(e){var t,n=e.data[0],e=e.data[1];e=e,nv(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(nv(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return av(e)}(t)||function(e){return rv(e)}(t)||function(e){return ov(e)}(t))&&(e=function(e){var t=P.getResourceCenter();if(t){var n=t.activeModule,i=av(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=rv(e)||ov(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),Bg({type:ev,visitorId:b(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,duration:tv(),language:i.language})}}(n))&&Wg(e)}};function rv(e){return-1!==e.cls.split(" ").indexOf("_pendo-resource-center-module-list-item")?{type:"BUTTON",elementId:k("#"+e.id).closest("[data-pendo-module-guide-id]").attr("data-pendo-module-guide-id")}:"pendo-resource-center-container"!==e.id&&nv(e.parentElem)?rv(e.parentElem):null}function ov(e){var t=e.cls.split(" ");if(-1===t.indexOf("_pendo-resource-center-guidelist-module-listed-guide")&&-1===t.indexOf("_pendo-resource-center-onboarding-module-listed-guide"))return"pendo-resource-center-container"!==e.id&&nv(e.parentElem)?ov(e.parentElem):null;t=P.getResourceCenter();if(t){e=e.id.split("-").pop(),t=t.activeModule;if(t&&t.attributes&&t.attributes.resourceCenter)return{type:"BUTTON",elementId:t.attributes.resourceCenter.children[e]}}return null}function av(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&&nv(e.parentElem)?av(e.parentElem):null}const sv=e=>(e=e||I).doesExist(e.apiKey);let uv=0;const dv="initializeImmediately",cv=[],lv=Wn(function(e){if("complete"===document.readyState||E.get(e,dv)||f.get(dv))if(C.info("pendo.initialize called with "+JSON.stringify(e)),I.apiKey)1==uv++&&C.info(["pendo.initialize only needs to be called once",ut()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join(""));else{if(e=e||{},E.isEmpty(fs.get())&&(o=fs.getJwtOptions(e,"initialize"))&&(fs.set(E.pick(e,"jwt","signingKeyName")),E.extend(e,o,{forceAnonymous:!0})),E.isString(e))return xr.get(e).then(e=>(ce(u=e.data),lv()));g.dispatch("location/init",e.location||{}),f.setLocalConfig(e),no(),I.HOST=Yr;var t,n,i,r,o=f.get("cookieDomain");if(o&&(o=o,i=location.host,o?E.isString(o)&&(i=i.replace(/:\d+$/,""),o=o.replace(/^\./,""),t=new RegExp("\\."+wt(o)+"$"),n=new RegExp("^"+wt(o)+"$"),t.test(i)||n.test(i))&&(Ct="."+o):Ct=o),Zh.discoverKeys(e),Zh.getApiKey()){g.commit("metadata/setMetadata",{selfHosted:Cl()}),e.logStackTraces&&(I.logStackTraces=e.logStackTraces),f.get("preferBroadcastChannel")&&Bf.secure(!0);const a=f.get("analytics.localStorageUnload");ys.read(h),cv.push((t={localStorageUnload:a},Ms=ns.events=Ka,Ls=ns.trackEvents=Ja,Ps=ru(E.extend({cache:Ms,silos:ns.silos,apiKey:_o,beacon:"ptm",allowPost:!0},t)),Fs=ru(E.extend({cache:Ls,silos:ns.trackEventSilos,apiKey:_o,beacon:"ptm",allowPost:!0,params:{type:"track"}},t)),rs(Ps),rs(Fs),()=>{cs(),os(Ps),os(Fs)})),So&&(h.registry.addLocal(In),h.registry.addLocal(_n),h.registry.addLocal(En),h.registry.addLocal(bl),h.registry.addLocal(ch),I.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,[{events:i=[]}]=[e],E.each(i,(e,t)=>{yd[t]&&yd[t](e)}),cv.push(km()),Qm(),cv.push(Lu()),cv.push((E.each(Vm,function(e){e.initialize(I,Jm)}),Km=!0,Ym)),cv.push((n=e,h.registry.addLocal(Eh),h.registry.addLocal(Ch),E.find([E.partial(tf.launchOnToken,window.location),E.partial(Th,window),E.partial(tf.localStorageNavigation,n)],e=>e()),n.enableDesignerKeyboardShortcut||!f.get("disableDesignerKeyboardShortcut")?wf.listen():()=>{})),m.appUsage.on(qm.handler),m.appUsage.on(iv.handler),cv.push(us(Za))),m.appHidden.on(()=>{as(0,{hidden:!0})}),m.appUnloaded.on(()=>{as(0,{unload:!0}),a&&ys.write(h)}),kn()||An(),I.updateOptions(e),e.visitorId&&e.visitorId!=On&&I.identify(e.visitorId),cv.push(A.watch(function(){I.pageLoad()})),So&&m.ready.trigger(),ou(A.get()),uv++,window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&((r=Bf.targetOrigin())?window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},r):C.warn("Unable to announce frame to designer plugin, targetOrigin is not set. Check if broadcastChannel is enabled and cross origin frames are allowed.")),fv()}else C.debug("API key is not set, Pendo will not initialize.")}else oe(I,"initialize",arguments)});function pv(e){return!E.isArray(e)||E.isEmpty(e)}function hv(e){if(!pv(e))return E.find(e,e=>"initialize"===e[0])}function fv(i){var e;return!pv((i=i||I)._q)&&(e=!!hv(i._q),sv(i)||e)?(e=i._q.splice(0,i._q.length),E.reduce(e,(e,t)=>{if(!E.isArray(t))return e;const n=i[t.shift()];return E.isFunction(n)?e.then(()=>n.apply(i,t)):e},y.resolve()).then(fv)):y.resolve()}function gv(){sv()?C.info("already running"):(window.pendo_options&&lv(window.pendo_options),fv())}function mv(){m.appHidden.trigger(),m.appUnloaded.trigger(),E.each(cv,function(e){e()}),ou.reset(),cv.length=0,Bf.close(),pn.clear(m),pn.clear(yd),delete I.apiKey,uv=0}var vv,yv,bv={getActiveGuide:zm,smartNextStep:function(e){var t,n=zm();n&&(t=n.guide.steps[n.stepIndex+1],Dt(function(){var e=yr(t.elementPathRule);0!==e.length&&E.some(e,ca)?wg(n.step):wg(t)},e=e||0))},smartFirstStep:function(){k("._pendo-guide_").css("display:none;");var t=Vg(),e=zm().guide.steps,n=E.filter(E.rest(e),function(e){return!!e.pageId}),n=E.indexOf(e,E.find(n,function(e){return Jg(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),wg(n))},advanceOn:function(e,t){var n=zm(),i=k(t=t||n.step.elementPathRule)[0],r=function(){wg(),Du(i,e,r,!0)};l(i,e,r,!0)},renderStepPosition:function(e,t,n){if(t)n||(i=[].concat(t.steps).reverse(),n=E.findWhere(i,{seenState:"active"}));else{var i=zm();if(!i)return;t=i.guide,n=i.step}return(e=E.template(e=e||"Step <%= currPos %> of <%= total %>"))({currPos:t.getPositionOfStep(n),total:t.getTotalSteps()})}},D={renderGuideFromJSON:function(e,n,t,i){var r=n.getGuide(),o=Kd(e),a=E.get(r,"attributes.resourceCenter");a&&(P.revertRtlChanges(r,e.props),e=P.updatePseudoStyleSelectors(e));var s=a&&P.isFullyCustom(r),u="AnnouncementsModule"===E.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.containerId=o&&o.props&&o.props.id,n.element=ud(n),D.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"});d=Of.buildWatermark({appId:r.appId,targetAccount:r.targetAccount,isTraining:r.isTraining,isBottomAligned:"Bottom Aligned"===t.attr(d)},D.buildNodeFromJSON);d&&t.append(d);var d=n&&n.attributes&&n.attributes.imgCount,l=ad();var p=E.get(r,"attributes.embedConfig",null);{var h,f;p?(g=o[0],h=g.querySelector("#"+(f="pendo-guide-container")),{selector:h,method:f}=(h&&(h.id=f+"-"+n.id,g.id="pendo-base-"+n.id),p),l=k(h)[0],"replace"===f&&l?(l.innerHTML="",o.appendTo(l)):"prepend"===f?o.prependTo(l):o.appendTo(l)):o.appendTo(l)}(function(e,t,n){t=k.getRootNode(t),e=k.getRootNode(e);var i;e!==t&&(e!==document?e.hasOwnProperty("wrappedJSObject")?(i=e.wrappedJSObject.adoptedStyleSheets,t.wrappedJSObject.adoptedStyleSheets.push(...i)):(i=e.adoptedStyleSheets,t.adoptedStyleSheets.push(...i)):(n=k(".pendo-style-"+n,e)).length&&(n.remove(),n.appendTo(t)))})(ad(),o[0],n.id),Wc(o),s||u||(D.recalculateGuideWidth(n.containerId,n.guideElement),D.adjustGuideContentWidth(n.containerId,n.guideElement));d||a||D.flexAllThings(n.containerId,n);s||D.recalculateGuideHeight(n.containerId,n.guideElement);c?n.attributes.calculatedType="tooltip":xc.attachBBAdvanceActions(n);c&&!d&&xc.positionStepForTooltip(n,e,t[0]);{var g;a&&(P.showHomeViewOrEmptyState(r),g=[],u?g=[r.attributes.resourceCenter]:D.flexAllThings(n.containerId,n),g.length)&&E.forEach(g,function(e){e=E.get(e,"children",[]);E.forEach(e,function(e){var t;e&&(t=e.steps[0],E.isUndefined(t.attributes.imgCount))&&(t=E.get(t,"id",n.id),e=E.get(e,"id",r.id),t=k("#pendo-g-"+t).length?t:e,D.flexAllThings("pendo-g-"+t,n))})})}{var m;d?(m=y.defer(),o.rendered=m.promise,t.on("imagesLoaded",function(){m.resolve()})):(t.css({visibility:"visible"}),o.rendered=y.resolve())}o.css({visibility:"visible"}),n.elements.push(n.guideElement[0]),I.designer||(E.get(n,"attributes.isAutoFocus")&&(D.autofocusStep(n,t),D.trapFocusStep(n,t),n.hiddenElements=D.addAriaHiddenOutsideGuide(o[0])),a&&(D.attachRCFocusHandlers(),r.skipResourceCenterHomeView?(p=r.activeModule.steps[0],D.autofocusStep(p,p.guideElement)):D.autofocusStep(n,t)));return k(".pendo-video-wrapper",o).each(function(t){k("iframe",t).each(function(e){t.setAttribute("data-pendo-video-loading",""),D.addVideoLoadListener(t,e)})}),o},autofocusStep:function(e,o){var n="autofocus for guide id: "+e.getGuide().id+" step id: "+e.id+" ",i={maxRetries:100,delay:50,exponentialBackoff:!1};pt(function(){var e,t,n,i,r=k(o).find("#pendo-guide-container");return(r=r[0]||r)&&ca(r)&&(n=wo(n=r),i=jo(),E.extend(i,{top:0,left:0,bottom:i.height,right:i.width}),Xo(i,n))&&(i=r,n=E.contains(["A","INPUT","LABEL","SELECT","TEXTAREA","BUTTON","FIELDSET","LEGEND","DATALIST","OUTPUT","OPTION","OPTGROUP"],i.nodeName),e=!!i.tabIndex,t=!i.hidden,i=!i.disabled,(n||e)&&t&&i)?r:null},i,function(t){pt(function(){return!!(e=t)&&(e.focus(),e===k.getRootNode(e).activeElement);var e},i,function(){},function(){C.warn(n+"#pendo-guide-container is available on page but could not capture focus")})},function(){C.warn(n+"#pendo-guide-container did not render or become visible in time to focus")})},trapFocusStep:function(e,t){!function(e){var o,a,s,t,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=E.toArray(e.find(t))).length)&&(a=o[0],s=o[o.length-1],t=_v(e),u=t[0],d=t[1],n=function(e){var t,n,i=wv(e),r=e.shiftKey;i&&(t=(i=k.getRootNode(c).activeElement)===c,n=document.activeElement===document.body,r?(i===u||t||n)&&(Iv(o,s).focus(),e.preventDefault()):(t||i===d||n)&&(Iv(o,a).focus(),e.preventDefault()))},l(document,"keyup",n),l(document,"keydown",n),m.one("unmounted",()=>{Du(document,"keyup",n),Du(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]=_v(k(u));var t=function(e){var t=wv(e),n=e.shiftKey;if(t){var t=k.getRootNode(u).activeElement,i=k(s.attributes.activation.selector)[0];if(i){var r=t===d,t=t===c;const a=k(sa);function o(t){return Object.values(a).findIndex(e=>e===t)}n?r?(i.focus(),e.preventDefault()):t&&Sv(0===(n=o(d))?a.length-1:n-1,a,e):t?Sv(o(i)+1,a,e):r&&Sv((n=o(c))>=a.length-1?0:n+1,a,e)}}},n=function(e){var t=wv(e),n=e.shiftKey;t&&!n&&Sv(0,k('[id^="pendo-g-"]').find(sa),e)},i=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=d&&t&&Sv((n=k('[id^="pendo-g-"]').find(sa)).length-1,n,e)};l(document,"keyup",t),l(document,"keydown",t),l(e,"keydown",n),l(e,"focus",i),m.one("unmounted",()=>{Du(document,"keyup",t),Du(document,"keydown",t),Du(e,"keydown",n),Du(e,"focus",i)})}}},addAriaHiddenOutsideGuide:function Aw(e,n=[]){if(!e||e===Ko())return n;const t=Jo(e);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&&Aw(e.parentNode,n);return n},renderResourceCenterModule:P.renderResourceCenterModule,buildNodeFromJSON:pl,attachImgLoadHandlers:hl,recalculateGuideHeightOnImgLoad:fl,buildStyleString:function(e){var n="";return E.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:ml,bindActionToNode:gl,recalculateGuideHeight:Vc,recalculateGuideWidth:Kc,adjustGuideContentWidth:Jc,findDomBlockInDomJson:Jd,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(E.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:dl,findGuideContainerJSON:Kd,maintainAspectRatios:M.maintainAspectRatios,sizeElement:qc,sizeElements:Wc,getAllowedAttributes:ll,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:xc.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:Hm,addVideoLoadListener:function(e,t){l(t,"load",function(){e.removeAttribute("data-pendo-video-loading")})}};function wv(e){return"Tab"===e.key||9===e.keyCode}function Sv(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function Iv(e,t){let n;if("radio"===t.getAttribute("type")){const i=t.getAttribute("data-pendo-poll-id");n=E.find(e,function(e){var t=e.getAttribute("data-pendo-poll-id");return i===t&&e.checked})}return n||t}function _v(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:E.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:E.extend({},t,{tabIndex:0})},{selector:".pendo-end-focus-bumper:hover",styles:t},{selector:".pendo-end-focus-bumper:focus",styles:t}]},t=D.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 Ev=100,Cv=[],Tv=[];const xv="log-enabled",kv="active-contexts";var Av=function(){return Nv()?yv?"logging already enabled":(h.write(xv,"true",null,!0),yv=!0,"logging enabled"):"logging unavailable"},Ov=function(){return yv?(h.write(xv,"false",null,!0),yv=!1,"logging disabled"):"logging already disabled"};var Rv=function(e,t){return E.compact([].concat(e,t))},Nv=function(e){return e=e||"log","undefined"!=typeof console&&E.isFunction(console[e])},Mv=function(e){return e=Rv(e),0<vv.length?0<E.intersection(vv,e).length:!!yv||!!ph()},Lv=function(e,...t){C.info(e,{contexts:t})};function Pv(e){var t;e.level!==gt.Debug&&e.level!==gt.Info||(t=e.attributes?Rv(e.attributes.contexts):[],Nv()&&Mv(t)&&jv(e.message),$v(Cv,e.message,t))}function Fv(...e){Nv("error")&&console.error.apply(console,e),$v(Tv,e.join(" "))}var $v=function(e,t,n){E.contains(n,"debug")||(e.length==Ev&&e.shift(),e.push([t,n]))},Dv=function(t){t=Rv(t),E.each(E.map(E.filter(Cv,function(e){return 0===t.length||0<E.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){jv(e,"[Pendo-History] ")})},Uv=function(){return E.union.apply(E,E.map(Cv,function(e){return e[1]}))},Gv=function(e){vv=Rv(e),h.write(kv,vv.join(","),null,!0)},jv=function(e,t){var n;Nv()&&(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 Bv(t,n){if(t&&E.isString(t)){let e=n;E.isObject(n)||(e={__err__:n});n=A.get();Ss("track",e,n,t)}else C.error("Must provide valid name string for event tracking")}Lv.init=function(){var e,t;e=h.read(kv,!0),vv=e?e.split(","):[],e=Ge,t=h.read(xv,!0),yv=null!==t?"true"==t:!E.contains(["prod","prod-eu","prod-us1","prod-jp","prod-hsbc","prod-au","prod-gov","rc"],e),C.addEventListener("log",Pv),h.registry.addLocal(xv),h.registry.addLocal(kv)},Lv.enableLogging=Av,Lv.disableLogging=Ov,Lv.getActiveContexts=function(){return vv},Lv.setActiveContexts=Gv,Lv.showLogHistory=Dv,Lv.getLoggedContexts=Uv;var zv=function zv(r){var o=[];function a(e,t,n,i){r?o.push({type:n,message:t,value:i}):ge(i)?console[e](t,i):console[e](t)}if("undefined"==typeof console||!console.group)return"Please run this test in the latest version of Chrome, Firefox, Safari, or Internet Explorer";r||console.group("Pendo Install Validation"),I.apiKey||a("error","No Pendo API key configured. Make sure to call pendo.initialize() with a valid Pendo API key.","apiKey");var e=b(),e=(xn(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"),Rn(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),Gn()),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"),xl());if(E.each(["visitor","account","parentAccount"],function(n){var i=t&&t[n],e=E.chain(i).keys().value();0<e.length?(r||console.group(n+" metadata (does this look right?):"),0<(e=E.chain(e).map(function(e){return e.toLowerCase()}).countBy().pick(function(e){return 1<e}).keys().value()).length&&E.each(e,function(e){a("warn","Keys will be lowercased and any duplicates overwritten. Please choose unique key names for:",n+"MetadataConflict",e)}),E.each(E.keys(i),function(e){var t=i[e];E.isObject(t)&&!E.isArray(t)?a("warn",e+" is an object and will be ignored.",n+"Metadata",t):E.isArray(t)&&E.any(t,E.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()},Hv=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:Jt.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=(E.each(e,function(e){var n=e.nativeType,i=[],t=e.propsToCheck||Object.getOwnPropertyNames(n);E.each(t,function(e){try{e&&n[e]&&"function"==typeof n[e]&&(n[e].toString().includes("[native code]")||i.push(e))}catch(t){}}),i.length&&(e.nonNativeImplementations=i,r=!0)}),{hasNonNativeMethods:r,implementations:[]});return n||console.group("Native javascript method check:"),r?(n||console.warn("Pendo has detected that your application may be changing native javascript functionality. We suggest consulting an engineer or your CSM to better understand if these changes will negatively impact Pendo's ability to function properly"),E.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())},Wv=function(e){var t=[];if(E.isNumber(window.frames.length)&&E.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:"),E.each(t,function(e){console.warn(e)}),console.groupEnd()}},qv=function(e){var t,n=window.location.href,i=[];try{(t=Fr())!==n&&i.push({type:"customizedUrl",msg:"URL has been customized. This will affect data collection, guide requests, and reload tests.",value:t})}catch(o){i.push({method:"error",msg:"Error getting Custom URL",value:o})}try{var r=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),E.each(i,function(e){e.method?console[e.method](e.msg+"\n"+e.value):console.warn(e.msg+"\n"+e.value)}),console.groupEnd()};const Vv=e=>{if(0<Tv.length){var t=[].concat(Tv);if(e)return t;console.group("Agent Error History"),E.each(t,(e,t)=>{console.log("Error History ",t,e)}),console.groupEnd()}},Kv=e=>{t=e;var t,n=E.map(Vm,function(e){return e.validate&&!t&&e.validate(I,Jm),e.name});if(e)return n;console.group("Active Plugins"),E.each(n,e=>console.log(e)),console.groupEnd()};var Jv=function(e){var t={install:zv(e),plugins:Kv(e),globals:Wv(e),url:qv(e),errors:Vv(e)};if(e)return t.methods=Hv(e),t;f.validate(console)},Zv={BuildingBlockGuides:D,BuildingBlockResourceCenter:P,BuildingBlockTemplates:Xd,BuildingBlockTooltips:xc,BuildingBlockSvgs:ic};function Yv(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=Dt(this.run,this.state.duration)},this.run=E.compose(E.bind(this.afterJobRun,this),E.bind(this.doJob,this),E.bind(this.shouldJobRun,this))}Yv.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},Yv.prototype.stop=function(){clearTimeout(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var Xv=xr.urlFor;function Qv(e,t,n){var i={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};if(E.isObject(e)&&(t=e.action,n=e.data,e=e.attr),!i[e])throw new Error("Invalid URL attribute type: "+e);if(!E.contains(i[e],t))throw new Error("Invalid transform ("+t+") for attribute ("+e+")");this.attr=e,this.action=t,this.data=n}function ey(e){return e instanceof qn||e instanceof HTMLAnchorElement}Qv.prototype.applyToURL=function(e){return{AllowOnlyKeys:function(e,t,n){E.isFunction(n)&&(n=n(e[t],e));t=e.href;return new qn(Zr(t,null,n,!1))},ExcludeKeys:function(e,t,n){E.isFunction(n)&&(n=n(e[t],e));t=e.href;return new qn(Zr(t,null,n,!0))},AddTo:function(e,t,n){E.isFunction(n)&&(n=n(e[t],e));t=e.href;return new qn(Xv(t,n))},Clear:function(e,t){return e[t]="",e},Replace:function(e,t,n){return E.isFunction(n)&&(n=n(e[t],e)),"href"===t?new qn(n):(e[t]=n,e)},ForceSecure:function(e,t){return"protocol"===t?e.protocol="https":e.href=e.href.replace(/^(.*:\/\/\/)/,"https://"),e}}[this.action](e,this.attr,this.data)},Qv.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},Qv.fromJSON=function(e){return e instanceof Qv?e:new Qv(e.attr,e.action,e.data)};ty=function(t,n,i,r){return[new Qv("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new Qv("href","ForceSecure")]},Mi={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:ny=function(){var e=Pr(),t=A.isElectron()?ty(A.electronAppName(),A.electronResourcesPath(),A.electronUserDirectory(),A.electronUserHomeDirectory()):[];return ay([].concat(t),e)}},iy=new Yv(500,function(e){!sv()||au(document)||ou()}),ry=function(e){if("string"==typeof e)return new qn(e);if(ey(e))return e;throw new Error("Invalid type from custom URL source. Must be either an URL or a String of a valid url.")},oy=function(e){return e||window.location},ay=function(e,t){return E.reduce(e,function(e,t){return t.applyToURL(e)},t)};var ty,ny,iy,ry,oy,ay,sy,e={state:Mi,actions:{init:function(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:function(t,e){E.each(e,function(e){t.commit("addTransform",Qv.fromJSON(e))})},addInternalTransforms:function(t,e){E.each(e,function(e){t.commit("addInternalTransform",Qv.fromJSON(e))})},removeInternalTransforms:function(t,e){E.each(e,function(e){t.commit("removeInternalTransform",Qv.fromJSON(e))})},startPolling:function(e){iy.start()},stopPolling:function(e){e.state.currentSrcFn===ny&&iy.stop()}},mutations:{addTransform:function(e,t){e.transforms.push(t)},addInternalTransform:function(e,t){e.internalTransforms.push(t)},removeInternalTransform:function(e,t){t=E.indexOf(e.internalTransforms,t);0<=t&&e.internalTransforms.splice(t,1)},clearTransforms:function(e){e.transforms=[]},clearInternalTransforms:function(e){e.internalTransforms=[]},changeUrlSource:function(e,t){if(t){if("string"==typeof t)var n=new qn(t),n=E.partial(E.identity,n);else if(ey(t))n=E.partial(E.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,iy.start(!sv())}else e.currentSrcFn=ny,iy.stop()}},getters:{url:sy=function(e){try{var t=function(e){return n=e},n=E.reduce([e.currentSrcFn,ry,t,E.partial(ay,e.transforms),ry,t,E.partial(ay,e.internalTransforms),ry],function(e,t){return t(e)},null)}catch(i){C.critical(i),n=oy(n)}return n},href:function(e){return sy(e).href}}};function uy(e){var t;if("function"==typeof uy[e])return t=E.toArray(arguments).slice(1),uy[e].apply(uy,t)}E.extend(uy,{getHref:function(){return g.getters["location/href"]()},clearTransforms:function(){g.commit("location/clearTransforms"),ou()},addTransforms:function(e){g.dispatch("location/addTransforms",e),ou()},setUrl:function(e){g.commit("location/changeUrlSource",e)},useBrowserUrl:function(){g.commit("location/changeUrlSource"),ou()}});function dy(){return f.get("guideSeenTimeoutLength")||1e4}cy=[];var cy,ly={name:"StepTimeoutMonitor",initialize:function(){this._beforeGuideShow=E.bind(ly.beforeGuideShow,ly),this._stop=E.bind(ly.stop,ly),m.beforeGuideShow.on(this._beforeGuideShow),m.guideSeen.on(this._stop),m.guideNotSeen.on(this._stop)},teardown:function(){ly.stop(),m.beforeGuideShow.off(this._beforeGuideShow),m.guideSeen.off(this._stop),m.guideNotSeen.off(this._stop)},beforeGuideShow:function(e){var t=e.data[0],e=e.data[1],n=t.guide;f.get("enableGuideTimeout")&&(e=-1<E.indexOf(["dom","launcher","badge","api"],e),"active"===t.seenState||t.hasBeenControlled()||t.isTimedOut()||(n=n&&n.steps)&&(0!==E.indexOf(n,t)||e)&&ly.start(t))},start:function(e){var u,t,n=cy[0];n&&n===e.id||(n&&n!==e.id&&(n=cy[1],E.isFunction(n))&&n(),e.shouldStartTimer()&&(u=dy(),n=E.partial(function(e,t){var n,i,r,o,a,s=N(t);s&&(n=s.findStepById(e))&&!s.isShown()&&(a=n.canShowOnPage(Vg())?Cg(n)?"other":"element":"page",i=t,r=e,o=b(),a=a,s=s.language,i=Bg({type:"guideTimeout",guideId:i,stepId:r,visitorId:o,seen_reason:a,language:s,guideSeenTimeoutLength:u}),Wg(i),m.guideTimeout.trigger(i),C.info("Guide "+t+" timed out showing Step "+e),n.timeout()),ly.stop()},e.id,e.guide.id),t=Dt(n,u),cy=[e.id,n,t]))},stop:function(){var e=cy[2];e&&clearTimeout(e),cy=[]},getGuideSeenTimeoutLength:dy};function py(){console.warn("This functionality is not supported by your subscription.")}function s(e){return So?e:py}var hy="is going away",fy="is gone",gy=E.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return C.info(e),e});function my(e,t,n){return function(){return gy("pendo."+t,n),(e||E.noop).apply(null,arguments)}}function vy(e){return e&&1===e.length?e[0]:E.any(e,ft)?y.all(e).then(function(e){return E.any(e)}):void 0}function yy(){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||{},E.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),Gd(e,this)},this),this.isActivatedByEvent=function(e){return!!(this.hasLaunchMethod("dom")&&this.attributes&&this.attributes.activation&&E.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=E.first(this.steps);return e&&"whatsnew"===e.type},this.isAnnouncement=function(){return E.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")&&E.any(this.steps,function(e){return e.shouldAutoDisplay()})},this.autoDisplay=function(){if(this.shouldAutoDisplay())return vy(E.map(this.steps,function(e){return e.autoDisplay()}))},this.isRendered=function(){return E.any(this.steps,function(e){return e.isRendered()})},this.isShown=function(){return E.any(this.steps,function(e){return e.isShown()})},this.canShowOnDevice=function(){if(!rd()){var e=od(),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()&&E.any(this.steps,function(e){return e.canShow()})},this.launch=function(e){var t;return this.hasGuideBeenControlled()||(t=this.show(e)),this.isShown()?E.each(this.steps,function(e){e.seenState="active"}):!this.isShown()&&this.isControlGroup()&&E.each(this.steps,function(e){e.seenState="notSeen"}),t},this.show=function(t){return vy(E.map(this.steps,function(e){return e.show(t)}))},this.checkForHiddenGroupSteps=function(){},this.hide=function(t){E.each(this.steps,function(e){e.hide(t)})},this.hasBeenSeen=function(){return E.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=E.get(this,"attributes.resourceCenter"),this.isControlGroup()&&!e?this.hasGuideBeenControlled()||this.steps[0].onControlGuide("control"):(e=E.first(this.steps))&&E.isFunction(e.canShowOnPage)&&e.canShowOnPage(Vg())&&yh(this)):Sh(this)},this.findStepById=function(t){return E.find(this.steps,function(e){return e.id===t})},this.isPoweredByEnabled=function(){return!!E.find(this.steps,function(e){return e.isPoweredByEnabled()})},this.searchFor=function(t){var e,n,i=null;return st(this.name,t,!0)?i="name":(e=!(n=[]),(e=0<(n=this.attributes&&this.attributes.launcher&&this.attributes.launcher.keywords?this.attributes.launcher.keywords:n).length?E.find(n,function(e){return st(e.text,t,!0)}):e)?i="tag":(n=E.map(this.steps,function(e){return e.searchFor(t)}),0<E.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&&!E.isFunction(t.steps[0].fetchContent)||(e=t.steps[0],!t.hasLaunchMethod("launcher")&&!t.isWhatsNew())||!e.canShowOnPage(Vg())||!t.canShowOnDevice()||!Cg(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(Vg())||!this.canShowOnDevice()||!Cg(e)||this.outsideTimebox())};var e,n="PENDO_HELPER_STEP";return this.getPositionOfStep=function(e){var t=E.reject(this.steps,function(e){return st(e.content,n)});return E.indexOf(t,e)+1},this.getTotalSteps=function(){return E.reject(this.steps,function(e){return st(e.content,n)}).length},this.getSeenSteps=function(){return E.size(E.filter(this.steps,function(e){return e.hasBeenSeen()}))},this.isComplete=function(){var t=["advanced","dismissed"];return E.all(this.steps,function(e){return E.contains(t,e.seenState)})},this.isInProgress=function(){var t=["active","advanced","dismissed"];return!this.isComplete()&&E.any(this.steps,function(e){return E.contains(t,e.seenState)})},this.isNotStarted=function(){return!this.isInProgress()&&!this.isComplete()},this.fetchContent=function(){return y.all(E.map(this.steps,function(e){if(E.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 E.any(this.steps,function(e){return e.isSnoozed()})},this.hasGuideBeenControlled=function(){return E.any(this.steps,function(e){return e.hasBeenControlled()})},this.isControlGroup=function(){return this.control},this.shouldShowSnoozedGuide=function(){var t=!1;return!this.outsideTimebox()&&E.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,E.forEach(this.steps,function(e){t=Math.max(t,e.lastSeenAt||0)}),!t))&&v()-t>=this.redisplay.interval},this.isExpired=function(){return!!this.expiresAfter&&v()>this.expiresAfter},this.isBeforeStartTime=()=>!!this.showsAfter&&v()<this.showsAfter,this.outsideTimebox=()=>this.isExpired()||this.isBeforeStartTime(),this.calculateDismissCountFromSteps=function(){var t=0;return E.forEach(this.steps,function(e){e.dismissCount&&(t+=e.dismissCount)}),t},this.hasReachedMaxDismissals=function(){return this.redisplay&&0!==this.redisplay.maxDismissals&&this.calculateDismissCountFromSteps()>=this.redisplay.maxDismissals},this}function by(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){E.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var wy=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function Sy(){var r,o=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(E.each(this.steps,function(e){e.after("render",function(){E.each(e.elements,function(e){k(e).addClass("_pendo-guide-walkthrough_")})})}),r=null,this.sections=E.reduce(this.steps,function(e,t){var n,i;return i=t,!(n=r)||(n=E.last(n)).attributes.isRequired!=i.attributes.isRequired&&n.attributes.isRequired?(e.push(r),r=[t]):r.push(t),e},[]),this.sections=E.compact(this.sections.concat([r])),this.findSectionForStep=function(t){return E.find(this.sections,function(e){return E.contains(e,t)})},this.getSubSection=function(e,t){t=E.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=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&&!wy(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()||E.all(this.steps,function(e){return e.shouldAutoDisplay()}))},this.autoDisplay=function(){var e,t,n;if(this.shouldAutoDisplay())return e=this.shouldRepeatGuide(),t=E.first(this.steps),n=this.nextStep(Fp())||t,this.shouldShowSnoozedGuide()||e?n.show(e?"repeatGuide":"auto"):t.autoDisplay()},this.launch=function(e){return E.first(this.steps).show(e)},this.show=function(e){var t=Fp(),n=E.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=E.last(this.steps);return!!e&&E.contains(["advanced","dismissed"],e.seenState)},this.activeStep=function(){var e=[].concat(this.steps).reverse();return E.findWhere(e,{seenState:"active"})}),this}function Iy(){var a=this;function t(r){var o=[];return function(e){try{return e.apply(a,E.toArray(arguments).slice(1))}catch(i){var t,n="ERROR in guide "+r+' (ID="'+a.id+'")';throw o.push(v()),5<=o.length&&(t=0<(t=E.last(o)-E.first(o))?(o.length-1)/(t/6e4):Infinity,Iy.MAX_ERRORS_PER_MINUTE<=t&&(n="Exceeded error rate limit, dropping guide.\n"+n,Ku.addGuide(a),m.trigger("renderFail",a)),o.shift()),C.critical(n,{error:i}),i}}}return E.each(["canShow","placeBadge","show"],function(e){a[e]=E.wrap(a[e],t(e))}),a}function _y(){return E.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=E.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=E.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 Ey(e){var t=this;return"whatsnew"===t.type||E.isFunction(e.isAnnouncement)&&e.isAnnouncement()||(t.isShown=E.wrap(t.isShown,function(e){return e.apply(this,arguments)||g.getters["frames/isShownInAnotherFrame"]()(t)})),t}function Cy(o){var a,t,i,s,r,n,u,d=this;return d.pollIds&&d.pollIds.length&&(a="_pendo-poll-selected_",t=E.indexBy(o.polls,"id"),i=E.map(d.pollIds,function(e){return t[e]}),r=function(e,t){if(e&&t!==undefined)return e.numericResponses?parseInt(t,10):t},n=function(){var e=o.id,t=d.id,n=v();Dg(e,t,b(),d.seenReason,o.language),og(e,t,"advanced",n),Lp({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=E.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(E.compact(t)),u()}):d.attachEvent(n,"click",function(e){var t,e=k(Cr(e)).closest("._pendo-poll-question_ :button,._pendo-poll-question_ :radio");e.length&&(t=i[0],e=r(t,e.attr("data-pendo-poll-value")||e.attr("value")),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:""})),E.isFunction(d.resize)&&d.resize()}))}),d.after("show",function(){s=(new Date).getTime()}),d.response=function(e,r){e&&e.length&&(Tm(),E.each(e,function(e,t){var n=function(t,e){if(e&&e.polls&&e.polls.length)return E.find(e.polls,function(e){return e.id===t})}(e.pollId,o),i=Bg("pollResponse",d.guideId,d.id,b(),undefined,o.language);E.extend(i.props,{poll_id:e.pollId,poll_response:e.value,duration:(new Date).getTime()-s},r),n&&n.attributes&&n.attributes.type&&E.extend(i.props,{poll_type:n.attributes.type}),wm.push(i)}),wm.flush())}),d}Iy.MAX_ERRORS_PER_MINUTE=30;var Ty={show:function(t,n){if(rd()&&E.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return xy(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 xy(e.steps[0],t)}}(t,n);if(ft(e))return e.then(function(){return xy(t,n)}).then(function(e){return!!e||ky(t,n)});e=xy(t,n);if(ft(e))return e.then(function(e){return!!e||ky(t,n)});if(e)return!0}return ky(t,n)},showLocal:xy};function xy(e,t){return Hd.hasContent(e)&&Fd.valid(e)?(e._show(t),e.isShown()):!(Hd.hasContent(e)&&Fd.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(Vg()))&&(e.lock(),Hd.fetchContent(e).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&Fd.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(e.unlock(),e._show(t),e.isShown())}))}function ky(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 Ay(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 Wm),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=E.indexOf(t,this),i=xl();try{var r=this.attributes.variables||{},o={step:{id:this.id,isFirst:0===n,isLast:n===t.length-1,index:n,number:n+1},guide:{id:e.id,name:e.name,publishedAt:e.publishedAt,showsAfter:e.showsAfter,percentComplete:t.length?Math.round((n+1)/t.length*100):0,stepCount:t.length},metadata:nt(i),template:r};return this.template||(this.template=E.template(this.content||"")),jd(this.template(o).replace(/#_pendo_g_undefined/g,"#_pendo_g_"+this.id).replace(/pendo-src="([^"]+)"/g,function(e,t){return/<%=[^>]+>/.test(t)?e:'src="'+t+'"'}))}catch(a){return this.content}},this.isLocked=function(){return e},this.lock=function(){e=!0},this.unlock=function(){e=!1},this.isTimedOut=function(){return t},this.timeout=function(){t=!0},this.isRendered=function(){return this.elements&&0<this.elements.length},this.isShown=function(){return this.isRendered()||this.isLocked()},this.canShow=function(){return!E.get(this,"guide.attributes.isAnnouncement")&&!!u.canShowOnDevice()&&!this.isShown()&&!E.get(this,"stepIneligibleForApp")&&this.canShowOnPage(Vg())&&Cg(this)},this.canShowOnPage=function(e){e=Jg(this.regexUrlRule,e);return ph()&&m.stepEligibility.trigger({stepId:this.id,guideId:this.guideId,eligible:e,reason:"page_match"}),e},this.shouldAutoDisplay=function(){return this.shouldRepeat()||!this.hasBeenControlled()&&!this.isSnoozed()&&!E.contains(["dismissed","advanced"],this.seenState)},this.autoDisplay=function(){var e;if(this.shouldAutoDisplay())return e=this.shouldRepeat()?"repeatGuide":"auto",this.show(e)},this._preRenderHealthCheck=function(){var e,t;return!(!(I.designer||rd()||Nh())&&(e=Vg(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!Jg(this.regexUrlRule,e)?(Ku.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)?(Ku.addGuide(u),t.error=new Error('missing regexUrlRule"'),C.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(Ku.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=E.find(Wu(),function(e){return e.id===u.moduleIdToReplaceHomeViewWith}),n=E.get(t,"attributes.resourceCenter.integrationProvider"),P.renderNativeIntegration(n,t)):u.continueToNativeModule?P.handleNativeIntegrationContinuation(u):(E.get(u,"attributes.resourceCenter")&&th(P.getResourceCenter(),nh),u.isModule?D.renderResourceCenterModule(u,!1):(n=D.renderGuideFromJSON(e.domJson,e),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=I.TOOLTIP_ARROW_SIZE,r="_pendo-group-id-"+u.id+"_",r=k(document.createElement("div")).attr("id",Ag(e)).addClass(Xf+" "+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&&E.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"]}),E.each(this.handlers,function(e){Du(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,E.has(this.attributes,"imgCount")&&(this.attributes.imgCount=0),this.hiddenElements&&(E.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),vl(this.id)},this.show=function(e){var t;if(!E.contains(["auto","continue"],e)||!g.getters["healthCheck/isRedisplay"]()(this))return(t=Ty.show(this,e))&&t["catch"]&&t["catch"](E.noop),t;g.dispatch("healthCheck/fixSeenStateAndLogError",{step:this,reason:e})},this.redraw=function(){var e,t,n,i,r,o=this;o.guideElement&&!I.designer&&(t=(e=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"===E.get(u.activeModule,"attributes.resourceCenter.moduleId"),m.beforeUpdate.trigger(o),t||r||(D.recalculateGuideWidth(n,o.guideElement),D.adjustGuideContentWidth(n,o.guideElement)),e?(P.adjustResourceCenterWidth(i),r&&u.activeModule.guidesInModule?E.forEach(u.activeModule.guidesInModule,function(e){var t;!E.isUndefined(e.steps[0].attributes.imgCount)&&0!==E.get(e.steps[0],"attributes.imgCount")||(t=e.steps[0].id,t=k(i).find("#pendo-g-"+t)[0]?t:e.id,D.adjustGuideContentWidth("pendo-g-"+t,o.guideElement),D.flexAllThings("pendo-g-"+t,o))}):D.flexAllThings("pendo-resource-center-container")):D.flexAllThings(n,o),t||D.recalculateGuideHeight(n,o.guideElement),m.updated.trigger(o))},this._show=function(e){m.beforeGuideShow.trigger(this,e),this.canShow()&&(!rd()&&u.control?this.hasBeenControlled()||this.onControlGuide("control"):m.beforeMount.trigger(this).cancel||(this.render(),this.isShown()&&this.onShown(e)))},this.shouldStartTimer=function(){return u.canShowOnDevice()&&!u.attributes.isAnnouncement&&!_g(this)},this.getStepPollTypes=function(n,e){var i;if(e.pollIds&&e.pollIds.length)return i=[],E.forEach(e.pollIds,function(t){var e=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;rd()||(this.seenReason=e,tg(v()),t=this.getStepPollTypes(u,this),this.hasBeenControlled())||(Pg(this.guideId,this.id,b(),e,u.language,t),E.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(),rd()||(i.seenReason=r,i.seenState="active",tg(v()),t={last_updated_at:i.lastUpdatedAt},(n=this.getStepPollTypes(u,i))&&(t.step_poll_types=n),e&&Fg(i.guideId,i.id,b(),r,u.language,t),g.dispatch("guideState/updateLastGuideStepSeen",{guideId:u.id,guideStepId:i.id,time:eg,state:i.seenState,seenReason:r,visitorId:b()}),E.each(u.steps,function(e){var t,n,i;"snoozed"===e.seenState&&(e.snoozeEndTime=0,t=u.id,e=e.id,n=b(),i=u.language,t=Bg({type:"guideSnoozeCanceled",guideId:t,stepId:e,visitorId:n,seen_reason:r,language:i}),Wg(t,null,!0),m.guideSnoozeCancelled.trigger(t))}),Vd.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||(I.ignoreResize=!0,Dt(function(){I.ignoreResize=!1},1e3))})},this.hide=function(e){var t=this;t.unlock(),m.beforeUnmount.trigger(t),t.teardown(),E.each(t.elements,function(e){Wo(e)}),m.unmounted.trigger(t),t.attributes&&e&&e.stayHidden&&(t.attributes.stayHidden=e.stayHidden),t.elements.length=0,t.element=null,t.guideElement=null,t.overrideElement&&(k.removeClass(t.overrideElement,"triggered"),t.overrideElement.checkAriaExpanded)&&t.overrideElement.checkAriaExpanded(),g.dispatch("frames/guideStepHiddenInFrame",{guideId:u.id,stepId:t.id})},this.advance=function(){"advanced"===this.seenState&&!this.isRendered()||wg(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||vg(this)},this.isPoweredByEnabled=function(){return!0!==this.hideCredits},this.isSnoozed=function(){var e="snoozed"===this.seenState,t=!this.snoozeEndTime||(new Date).getTime()>this.snoozeEndTime;return e&&!t},this.shouldRepeat=function(){return!!this.lastSeenAt&&u.redisplay&&!u.outsideTimebox()&&!this.isSnoozed()&&v()-this.lastSeenAt>=u.redisplay.interval&&!u.hasReachedMaxDismissals()},this.hasBeenControlled=function(){return u.isControlGroup()&&"notSeen"===this.seenState},this.attachEvent=function(e,t,n){var i={element:e,type:t,fn:n};l(e,t,n,!0),this.handlers.push(i)},this.searchFor=function(e){return!(e.length<3)&&st(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&xc.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&bc(this)},this.getType=function(){return this.domJson?E.get(this,"attributes.calculatedType"):this.type},this}function Oy(){return this.after("render",function(){var e,t;F&&F.contentWindow&&F.style&&(e=E.first(k('#pendo-resource-center-container, [id^="pendo-g-"]')))&&(e=O(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}Ay.isGuideStep=function(e){return!!e&&E.isFunction(e.render)};const Ry={state:{errorCount:0,errors:{}},actions:{write:function(e,t){var n=t.error;if(n&&!t.logged){var i=e.getters.hasLogged()(t);if(e.dispatch("update",t),!i){try{t.logged=!0}catch(r){}e=`[${t}]`;t.level===gt.Critical?(i=window.pendo_options||{},Fv(e),!1!==I.logStackTraces&&!1!==i.logStackTraces&&n.stack?Co(e+`
9
+ `+n.stack):Eo(e)):t.level===gt.Error?Fv(e):t.level===gt.Warn&&(i=[e],Nv("warn"))&&console.warn.apply(console,i)}}},update:function(e,t){t&&(e.getters.hasLogged()(t)||e.commit("addError",t),e.commit("incrementError",t))}},mutations:{addError:function(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:function(e,t){e.errors[t.hashCode()].count++,e.errorCount++}},getters:{hasLogged:function(t){return function(e){return!!t.errors[e.hashCode()]}}}},Ny=h.getSession(),My="pendo_cd";class Ly{constructor(){this.name="CloneDetection"}initialize(){if(E.isFunction(window.BroadcastChannel))return h.registry.addSession(My),this.tabId=sn.getTabId(),this.id=at(16),this.channel=new BroadcastChannel("pendo-clone-detection-"+I.apiKey),this.channel.addEventListener("message",E.bind(this.onmessage,this)),this.detectClonedSession(this.id),E.bind(this.teardown,this)}teardown(){this.stopCloneDetectionTimer(),this.channel.removeEventListener("message",this.onmessage),this.channel.close(),this.channel=null}onmessage(e){var t=E.get(e,"data.type"),n=E.get(e,"data.tabId"),i=E.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=Ny.getItem(My)||"";-1===t.indexOf(e)&&(t+="-"+e),Ny.setItem(My,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()}isClonedSession(e){return this.startCloneDetectionTimer(),-1===(Ny.getItem(My)||"").indexOf(e)}clearCloneDetectionValue(){Ny.removeItem(My),this.cloneDetectionTimer=null}startCloneDetectionTimer(){this.stopCloneDetectionTimer(),this.cloneDetectionTimer=Dt(E.bind(this.clearCloneDetectionValue,this),1e4)}stopCloneDetectionTimer(){this.cloneDetectionTimer&&(clearTimeout(this.cloneDetectionTimer),this.cloneDetectionTimer=null)}clearClonedStorage(){Ny.clearPendo(),sn.setParentTabId(this.tabId),this.tabId=sn.newTabId(),m.trigger("tabIdChanged:self"),g.dispatch("frames/setTabId",this.tabId)}sendMessage(e,t){this.channel.postMessage(Object.assign({type:e},t))}}let Py=new Ly;function Fy(e){g.dispatch("frames/setReady",{isReady:!0})}var $y=["unknown","hidden","visible"];function Dy(e){return"visible"===e.visibility||"unknown"===e.visibility}Uy={};var Uy,t={actions:{init:function(e){var t,n,i=e.state;i.initialized||(h.registry.addSession(Xt),h.registry.addSession(Qt),t=sn.addTracerIds({}),n=we(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),m.ready.on(Fy),m.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&$.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),Py.initialize(),e.commit("setInitialized",!0))},changeGuideList:function(e,t){e=e.state,t=jy(t);$.postMessage({action:"frames/receiveGuideList",frameId:e.frameId,guides:t,autoOrdering:I.autoOrdering||[]})},receiveGuideList:function(e,t){e.commit("setGuideList",t),t.frameId===e.state.frameId&&e.commit("setGuidesLoaded"),By(e.state)},join:function(e){var t,n,i,r;e.state.disabled||(Jp(),t=e.state,n=window.top==window,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:jy(Xu())}),(r=[].concat(f.get("leaderKey"))).length||t.agentInstallType!==ye||(r=[I.apiKey]),e.dispatch("receiveFrame",{frame:E.extend({agentInstallType:t.agentInstallType,id:t.frameId,joinedAt:v(),isTop:n,visibility:n?"visible":"unknown",apiKey:I.apiKey,leaderKey:r},i)}))},receiveFrame:function(e,t){var n,i=e.state;if(I.designerv2.launched&&(n=Object.assign({},tf.hostConfig,{selectionOnly:!0}),$.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:E.toArray(E.get(t,"frame.guides",[]))}),t.frame.isTop){for(var r=e.getters.leaderKeyPreference(),o=E.filter(i.frames,e=>e.isTop);r.length;){var a=r.shift(),s=E.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[Eh]&&e.dispatch("receiveStartPreview",t),$.postMessage({action:"frames/receiveFrame",frame:i.frames[i.frameId],"pendo-preview":e.rootState.preview.preview}),e.dispatch("waitThenElectLeader")}},leave:function(t){var e=t.state;$.postMessage({action:"frames/removeFrame",frameId:e.frameId}),E.each(e.frames,function(e){t.commit("removeFrame",e.id)}),$.close()},removeFrame:function(e,n){e.getters.hasFrame()(n.frameId)&&(e.commit("removeFrame",n.frameId),E.each(Uy,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete Uy[t])}),e.dispatch("electLeader"))},waitThenElectLeader:E.debounce(function(e){e.dispatch("electLeader")},50),electLeader:function(e){var t=e.state,n=t.frames,i=e.getters.leaderKeyPreference();if(i.length)for(;i.length;){var r=i.shift(),o=E.filter(t.frames,e=>e.apiKey===r);if(o.length){n=o;break}}var a=E.find(n,e=>e.isTop);a?e.dispatch("followLeader",{leaderId:a.id}):(a=E.min(n,"joinedAt"),e.dispatch("followLeader",{leaderId:a.id})),By(e.state),e.getters.isLeader()&&m.childFrameJoined.trigger()},followLeader:function(e,t){var n=e.state,i=n.leaderId,r=t.leaderId;e.commit("setLeaderId",t.leaderId),i!==r&&m.leaderChanged.trigger({frameId:n.frameId,oldLeaderId:i,newLeaderId:r})},showGuideStep:function(t,n){var i=E.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",E.extend({frameId:e.id},n)).then(function(e){return e.error?y.reject(e.error):e.isShown?e:r()}):y.resolve({isShown:!1})}()},requestShowGuideStepInFrame:function(e,t){var n=t.frameId+"/"+at(32),i=y.defer();return Uy[n]=i,$.postMessage(E.extend({action:"frames/showGuideStepInFrame",requestId:n},t)),i.promise},showGuideStepInFrame:function(t,n){var e;function i(e){t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:e})}t.state.frameId===n.frameId&&((e=(e=N(n.guideId))&&e.findStepById(n.stepId))?ft(e=Ty.showLocal(e,n.reason))?e.then(i)["catch"](E.noop):i(e):t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:!1}))},guideStepShownInFrame:function(e,t){e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:t.isShown}),$.postMessage(E.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame:function(e,t){var n=Uy[t.requestId];n&&(n.resolve(t),delete Uy[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:function(e,t){t=E.isArray(t)?t:[],$.postMessage({action:"frames/receiveHideGuides",frameId:e.state.frameId,guideIds:t}),e.commit("hideGuides")},receiveHideGuides:function(e,t){e.state.frameId!==t.frameId&&(t.guideIds.length?E.each(E.compact(E.map(t.guideIds,N)),function(e){e.hide()}):sg(),e.commit("hideGuides"))},guideStepHiddenInFrame:function(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}),$.postMessage(E.extend({action:"frames/receiveGuideStepHiddenInFrame",frameId:e.state.frameId},t)),n&&e.dispatch("fixDoubleDisplay",t)},receiveGuideStepHiddenInFrame:function(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:function(n,i){E.each(n.state.frames,function(e,t){t!==n.state.frameId&&n.getters.isShownInFrame()(t,{id:i.stepId})&&$.postMessage(E.extend({action:"frames/receiveHideGuideInFrame",frameId:t,guideId:i.guideId,stepId:i.stepId},i))})},receiveHideGuideInFrame:function(e,t){e.state.frameId===t.frameId&&(t=(e=N(t.guideId))&&e.findStepById(t.stepId))&&t.hide()},changeLastGuideStepSeen:function(e,t){$.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:function(e,t){var n;t.frameId!==e.state.frameId&&(n=e.state.frames[t.frameId],(n=E.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:function(e,t){$.postMessage(E.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState:function(e,t){t.frameId!==e.state.frameId&&E.each(Ug,function(e){t[e]&&jg(t[e],e)})},startPreview:function(e){$.postMessage({action:"frames/receiveStartPreview","pendo-preview":e.rootState.preview.preview})},restartPreview:function(e){$.postMessage({action:"frames/receiveRestartPreview","pendo-preview":e.rootState.preview.preview})},stopPreview:function(e,t){$.postMessage(E.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview:function(e,t){e.dispatch("preview/start",t[Eh],{root:!0}),xh(window),jm()},receiveRestartPreview:function(e){var t=Oh(R,Fp());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview:function(e,t){Uh({preventWindowClose:!!t.preventWindowClose})},checkFrameVisibility:function(e,t){if(!e.getters.isTop()&&!e.state.disableFrameVisibilityCheck)try{var n="unknown",i=(t=null==t?window:t).frameElement;i?(n=ca(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility:function(e,t){var n;!E.find($y,function(e){return e===t.visibility})||(n=t.visibility,e.getters.frameVisibility()===n)||(e.commit("setFrameVisibility",{frameId:e.state.frameId,visibility:n}),$.postMessage({action:"frames/receiveFrameVisibility",frameId:e.state.frameId,visibility:n}))},receiveFrameVisibility:function(e,t){e.commit("setFrameVisibility",t)},addSelectionModeToFrames:function(e,t){t=t.options;tf.launchInAppDesigner(t)},syncOptions:function(e,t){t.options&&$.postMessage({action:"frames/receiveOptions",frameId:e.state.frameId,options:t.options})},receiveOptions:function(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&t.options&&Il(t.options)},syncIdentity:function(e,t){var n;(t.visitorId||t.accountId)&&({visitorId:t,accountId:n}=t,$.postMessage({action:"frames/receiveIdentity",frameId:e.state.frameId,visitorId:t,accountId:n}))},receiveIdentity:function(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&(t.visitorId||t.accountId)&&Fn(t.visitorId,t.accountId)},setReady:function(e,t){e.commit("setReady",t.isReady)},receiveGuideSeen:function(e,t){t.frameId!==e.state.frameId&&m.guideSeen.trigger(t.guideSeen)},checkGuideEligibility:function(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=cd(t))&&((i=E.first(yr(i)))?ca(i)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),E.isFunction(n.canShowOnPage)&&!n.canShowOnPage(Vg())&&(a.PAGE="mismatch"),n.elementPathRule&&((i=E.first(yr(n.elementPathRule)))?ca(i)?n.elementContainsRulesList&&!xg(i,n.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),n.triggerElementPathRule&&((i=E.first(yr(n.triggerElementPathRule)))?ca(i)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),E.get(t,"attributes.embedConfig")&&(n=E.get(t,"attributes.embedConfig.selector"),(i=E.first(yr(n)))?ca(i)||(a.EMBED_CONTAINER="notVisible"):a.EMBED_CONTAINER="notFound")):a.GUIDE="notFound",o&&r&&$.postMessage({errors:a,action:"frameEligibilityResponse",targetFrame:r,resolveId:o}),a},setTabId:function(e,t){e.commit("setTabId",t)}},mutations:{addFrame:function(e,t){var n=t.id;e.frames[n]=E.extend({},e.frames[n],t)},removeFrame:function(e,t){delete e.frames[t]},setGuideList:function(e,t){var n=t.frameId;e.frames[n]=E.extend({},e.frames[n],{guides:E.indexBy(jy(t.guides),"id"),autoOrdering:t.autoOrdering})},setStepShown:function(e,t){var n=t.frameId,n=e.frames[n]=E.extend({},e.frames[n]);n.shown=E.extend({},n.shown),n.shown[t.stepId]=t.shown},setInitialized:function(e,t){e.initialized=t},setLeaderId:function(e,t){e.leaderId=t},setFrameId:function(e,t){e.frameId=t},setTabId:function(e,t){e.tabId=t},setTopId:function(e,t){e.topId=t},setAgentInstallType:function(e,t){e.agentInstallType=t},setLeadershipMode:function(e,t){e.leadershipMode!==ye&&(e.leadershipMode=t)},setFrameVisibility:function(e,t){var n=t.frameId;e.frames[n]=E.extend({},e.frames[n],{visibility:t.visibility})},setReady:function(e,t){e.isReady=t},disableFrameVisibilityCheck:function(e){e.disableFrameVisibilityCheck=!0},hideGuides:function(e){E.each(e.frames,function(n){E.each(n.shown,function(e,t){n.shown[t]=!1})})},setChannelType:function(e,t){e.channelType=t},setGuidesLoaded:function(e){e.guidesLoaded=!0},setConnectFailed:function(e){e.connectFailed=!0},updateLastGuideStepSeen:function(e,t){t&&E.each(e.frames,function(e){e.guides&&(e=e.guides[t.guideId])&&(e=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:function(e){return e.frames},autoOrdering:function(e){return E.reduce(e.frames,(e,t)=>(e[t.apiKey]=t.autoOrdering,e),{})},leaderExists:function(e){return!!e.leaderId},isLeader:function(e){return e.leaderId===e.frameId},leaderKey:function(e,t){if(t.leaderExists()){t=e.frames[e.leaderId];if(t)return t.apiKey}},isFollower:function(e){return!!e.leaderId&&e.leaderId!==e.frameId},isTop:function(e,t){t=t.window();return e.topId===e.frameId||t==t.top},frameVisibility:function(e){return(e.frames?e.frames[e.frameId]:{}).visibility||"unknown"},isGuideInThisFrame:function(n){return function(e){var t=n.frames&&n.frames[n.frameId];return!!(t&&t.guides||{})[e.id]}},isGuideInDifferentFrame:function(i){return function(n){return E.any(i.frames,function(e,t){return t!==i.frameId&&e.guides&&e.guides[n.id]})}},isReady:function(e){return e.isReady},isShownInAnotherFrame:function(i){return function(n){return E.any(i.frames,function(e,t){return t!==i.frameId&&e.shown&&e.shown[n.id]})}},isShownInFrame:function(n){return function(e,t){e=n.frames&&n.frames[e],e=e&&e.shown||{};return!(!e||!e[t.id])}},hasFrame:function(t){return function(e){return t.frames&&t.frames[e]}},hasFrames:function(e){return 1<E.size(e.frames)},shouldBeAddedToLauncher:function(i,e){return function(n){return e.canShowRCBadge()&&E.any(i.frames,function(e,t){return t!==i.frameId&&!!Dy(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToLauncher})}},shouldBeAddedToResourceCenter:function(i,e){return function(n){return e.canShowRCBadge()&&E.any(i.frames,function(e,t){return t!==i.frameId&&e.apiKey===I.apiKey&&!!Dy(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToResourceCenter})}},isBroadcastChannel:function(e){return"BroadcastChannel"===e.channelType},channelType:function(e){return e.channelType},canShowRCBadge:function(e,t){var n,i;return t.leaderKey()!==I.apiKey?(n=E.filter(e.frames,function(e){return e.apiKey===I.apiKey}),(i=E.find(n,function(e){return e.isTop}))?e.frameId===i.id:(i=E.min(n,function(e){return e.joinedAt}),e.frameId===i.id)):E.any(e.frames,function(e){return e.isTop})?t.isTop():t.isLeader()},leaderKeyPreference:function(e){e=E.filter(e.frames,e=>e.leaderKey&&e.leaderKey.length);return 1===E.unique(E.map(e,e=>e.leaderKey.join(","))).length?[].concat(e[0].leaderKey):[]},getMyApiKey:function(e,t){return t.getMyFrame().apiKey},getMyFrame:function(e){return e.frames[e.frameId]},window:function(){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:Uy};function Gy(e){var t=E.pick(e,"id","name","launchMethod","isMultiStep","steps","control","lastUpdatedAt","language","state","polls","redisplay");return t.attributes=E.pick(e.attributes,"overrideAutoThrottling","priority","isAnnouncement","resourceCenter","device","sharedServiceVersion","embedConfig"),t._shouldBeAddedToLauncher=E.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e._shouldBeAddedToLauncher||!1,t._shouldBeAddedToResourceCenter=E.isFunction(e.shouldBeAddedToResourceCenter)?e.shouldBeAddedToResourceCenter():e._shouldBeAddedToResourceCenter||!1,t.steps=E.map(e.steps,function(e){return E.pick(e,"id","guideId","type","seenReason","seenState","lastSeenAt","lastUpdatedAt","dismissCount","snoozeEndTime","regexUrlRule","pageId","elementPathRule","triggerElementPathRule","elementContainsRulesList")}),t}function jy(e){return E.map(e,Gy)}function By(t){var n=E.indexBy(E.filter(Xu(),function(e){return!e.isFrameProxy}),"id"),e=E.chain(t.frames).filter(function(e){return e.id!==t.frameId}).map(function(e){return E.toArray(E.get(e,"guides",[]))}).flatten(!0).unique("id").filter(function(e){return!n[e.id]}).map(function(e){return E.extend(JSON.parse(JSON.stringify(e)),{isFrameProxy:!0})}).map(Ud).value(),e=E.toArray(n).concat(e).filter(am);E.sortBy(e,sm),Em(e),Vu(e),t.guidesLoaded&&0===E.size(E.get(t,"frames."+t.frameId+".guides",[]))&&Zp()}function zy(e,t){new(dt("MutationObserver"))(t).observe(e,{subtree:!0,attributes:!0,childList:!0,characterData:!0})}const Hy={startObserver:function(r){{var t=r;const n=Element.prototype.attachShadow;Element.prototype.attachShadow=function(e){e=n.call(this,e);return this.shadowRoot&&zy(this.shadowRoot,t),e},Element.prototype.attachShadow.toString=function(){return n.toString()}}if(E.isFunction(document.createNodeIterator)){let t=0,n=[Ko()],i;!function o(e){do{if(!(e=e||document.createNodeIterator(n.pop(),NodeFilter.SHOW_ELEMENT))||!e.nextNode)break;for(;(i=e.nextNode())&&(t++,i&&i.shadowRoot&&(zy(i.shadowRoot,r),n.push(i.shadowRoot),Hy.foundShadowRoots=!0),t%5e3!=0););}while(!i&&(e=null,n.length));i&&Hy.foundShadowRoots&&Dt(()=>{o(e)},50),5e3!==t||Hy.foundShadowRoots||(Hy.stoppedSearchEarly=!0)}()}},foundShadowRoots:!1,stoppedSearchEarly:!1};var Wy,Ti={actions:{documentChanged:function(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,qp-t),qp),t=Dt(Vy,t),e.commit("setScheduledUpdate",t))},handleScheduledUpdate:function(e){e.dispatch("stopScheduledUpdate"),Zp()},stopScheduledUpdate:function(e){e.state.scheduledUpdate&&(clearTimeout(e.state.scheduledUpdate),e.commit("setScheduledUpdate",null))},startObserverIfNeeded:function(e,t){var n;e.state.useObserver&&((n=e.getters.observer())||(n=new(t||dt("MutationObserver"))(qy),Wy=n),e.state.observing||(n.observe(document.documentElement,{subtree:!0,attributes:!0,childList:!0,characterData:!0}),e.state.observeShadowRoots&&Hy.startObserver(qy),e.commit("setObserving",!0)))},stopObserver:function(e){var t=e.getters.observer();t&&E.isFunction(t.disconnect)&&t.disconnect(),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setUseObserver:function(e){e.useObserver=!0},setObserveShadowRoots:function(e){e.observeShadowRoots=!0},setObserving:function(e,t){e.observing=t},setNeedsUpdate:function(e){e.needsUpdate=!0},setScheduledUpdate:function(e,t){e.scheduledUpdate=t},startUpdate:function(e,t){e.needsUpdate=!1,e.updateId=t},completeUpdate:function(e,t){e.updateId=null,e.updateCompleteTime=t}},getters:{now:v,observer:function(){return Wy}},state:{useObserver:!1,observeShadowRoots:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}};function qy(){g.dispatch("guideUpdate/documentChanged")}function Vy(){g.dispatch("guideUpdate/handleScheduledUpdate")}Ky=["advanced","dismissed","snoozed"];var Ky,Mi={actions:{init:function(t,e){E.each(e,function(e){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){Co(['Attempted redisplay of guide="',t.guideId,'" step="',t.id,'" reason="',t.reason,'" seenState="',t.seenState,'" previousSeenState="',t.previousSeenState,'"'].join())}},mutations:{updateStepState:function(e,t){var n=v();e.steps[t.id]=E.extend({},e.steps[t.id],{pageId:t.pageId,regexUrlRule:t.regexUrlRule,seenState:t.seenState,updatedAt:n,allowedAt:n+6e4})},resetStepStatus:function(e){e.steps={}}},getters:{isRedisplay:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(e.resetAt>t.updatedAt)&&!(v()>=t.allowedAt)&&E.contains(Ky,t.seenState)&&!E.contains(Ky,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}},Jy={state:{lastFlush:v(),flushInterval:3e5,counters:{ptmGifFailures:0,guideGifFailures:0},timers:{}},actions:{flush:function(n){E.each(n.state.counters,function(e,t){n.commit("resetCounter",t)}),E.each(n.state.timers,function(e,t){n.commit("resetTimer",t)}),n.commit("setLastFlush",n.getters.now())}},mutations:{setLastFlush:function(e,t){e.lastFlush=t},incrementCounter:function(e,t){e.counters[t]!==undefined&&e.counters[t]++},resetCounter:function(e,t){e.counters[t]!==undefined&&(e.counters[t]=0)},setTimer:function(e,{name:t,time:n}={}){t&&null!=n&&(e.timers[t]=n)},resetTimer:function(e,t){delete e.timers[t]}},getters:{shouldFlush:function(e,t){return t.now()-e.lastFlush>=e.flushInterval},payload:function(e){var t=E.reduce(e.counters,function(e,t,n){return 0<t&&(e[n]=t),e},{});return E.extend({},t,e.timers)},now:v}},Zy={state:{visitor:{},account:{},parentAccount:{},date:null,version:null,selfHosted:null},actions:{},mutations:{setMetadata:function(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:function(e){e.account={}},reset:function(e,t){e.visitor={id:t.visitor_id},e.account={},e.parentAccount={},e.date=null,e.version=null,e.selfHosted=null}},getters:{metadata:function(e){return e},selfHosted:function(e){return e.selfHosted}}};const Yy=h.getLocal();var Xy="pendo-preview",Qy="current-guide-preview",eb={state:{preview:null,designerPreview:null},actions:{start:function(e,t){e.commit("setPreview",t),e.dispatch("write")},restart:function(e,t){e.commit("updatePreview",{state:null}),e.commit("updatePreview",t)},update:function(e,t){e.commit("updatePreview",{state:t}),e.dispatch("write")},load:function(e){try{var t=e.getters.storage(),n=JSON.parse(t.getItem(Xy)),i=(n.apiKey===I.apiKey&&e.commit("setPreview",n),t.getItem(Qy));i&&e.commit("setDesignerPreview",JSON.parse(i))}catch(r){}},write:function(e){try{var t=e.getters.storage();e.state.preview?t.setItem(Xy,JSON.stringify(e.state.preview)):t.removeItem(Xy)}catch(n){}},exit:function(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview:function(e){e.commit("setDesignerPreview",null),e.getters.storage().removeItem(Qy)},launchInAppDesigner:function(e,t){tf.launchInAppDesigner(t)}},mutations:{updatePreview:function(e,t){e.preview&&E.extend(e.preview,t)},setPreview:function(e,t){e.preview=t},setDesignerPreview:function(e,t){e.designerPreview=t}},getters:{isInPreviewMode:function(e){return!!e.preview},isInDesignerPreviewMode:function(e,t){return!!e.designerPreview&&t.isInPreviewMode()},storage:function(){return Yy}}};const tb=(()=>{const n={isTop:undefined,isLeader:undefined,frameId:null,tabId:null,frames:{},autoOrdering:[],excludedGuides:[],throttling:{},enableEventLogging:!1,eventsCaptured:[],cspErrors:[],installType:null,doNotProcess:!1},a={TOP_DOWN:"top-down",BOTTOM_UP:"bottom-up"},s={debuggingEnabled:{type:a.TOP_DOWN,defaultValue:!1},guideLoopRunning:{type:a.BOTTOM_UP,defaultValue:!1},stepEligibilitySet:{type:a.BOTTOM_UP,defaultValue:{}},identity:{type:a.BOTTOM_UP,defaultValue:{}},location:{type:a.BOTTOM_UP,defaultValue:{}}};var e={init:e=>{e.commit("setFrameId",sn.getFrameId()),e.commit("setTabId",sn.getTabId()),e.commit("setInstallType",we());var t=hd()&&window.top===window;n.isTop,e.commit("setIsTop",t),e.commit("isLeader",hd()),t?(t=lh(),e.commit("debuggingEnabled",!0===t.enabled),t.enableEventLogging&&e.commit("enableEventLogging",!0)):$.postMessage({action:"debugger/join",frameId:e.state.frameId})},join:(n,e)=>{n.state.frameId!==e.frameId&&E.each(s,({type:e},t)=>{e===a.TOP_DOWN&&$.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;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.state.isTop?e.commit("eventsCaptured",t):$.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):$.postMessage({action:"debugger/recieveCspError",frameId:e.state.frameId,data:t})},recieveCspError:(e,t)=>{e.state.isTop&&e.commit("cspError",t.data)},checkGuideEligibility:function(e,t){const{guideId:i,response:n}=t;var t=E.filter(g.state.frames.frames,e=>e.guides&&e.guides[i]);t.length&&(t=E.map(t,n=>{var e=E.map(n.guides[i].steps,(e,t)=>$.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:n.id,stepId:e.id,currentStepIndex:t,guideId:i}));return y.all(e).then(e=>({frameId:n.id,frameVisibility:n.visibility,errors:E.map(e,e=>JSON.parse(e).errors)}))}),y.all(t).then(e=>e).then(e=>n(e))["catch"](e=>n({error:e})))}};const t={},u={setFrameId:function(e,t){e.frameId=t},setTabId:function(e,t){e.tabId=t},setIsTop:function(e,t){e.isTop=t},isLeader:function(e,t){e.isLeader=t},setInstallType:function(e,t){e.installType=t},stepEligibilitySet:function(e,t){var n=t["stepId"];e.stepEligibilitySet[n]=t},guideLoopRunning:function(e,t){e.guideLoopRunning!==t&&(e.guideLoopRunning=t)},identity:function(e,t){e.identity=t},location:function(e,t){e.location=t},debuggingEnabled:function(e,t){e.debuggingEnabled=t,t=t,e=e.isTop,n.debuggingEnabled!==t&&(t?(d(),c(),m.on("stepEligibility",i),m.on("guideUpdateComplete",p),m.on("guideLoopStopped",h),m.on("eventCaptured",o),m.on("identify",d),m.on("urlChanged",c),e&&(r(),m.on("guidesLoaded",r))):(m.off("stepEligibility",i),m.off("guideUpdateComplete",p),m.off("guideLoopStopped",h),m.off("eventCaptured",o),m.off("identify",d),m.off("urlChanged",c),e&&m.off("guidesLoaded",r)))},excludedGuides:function(e,t){e.excludedGuides=t},autoOrdering:function(e,t){e.autoOrdering=t},throttling:function(e,t){e.throttling=t},eventsCaptured:function(e,t){E.isArray(t)&&0===t.length?e.eventsCaptured=[]:e.debuggingEnabled&&e.enableEventLogging&&e.eventsCaptured.unshift(t)},enableEventLogging:function(e,t){e.enableEventLogging=t},cspError:function(e,t){e.cspErrors.unshift(t),10<e.cspErrors.length&&e.cspErrors.pop()},doNotProcess:function(e,t){e.doNotProcess=t}};function i(e){e=e.data[0];g.commit("debugger/stepEligibilitySet",e)}function r(e){var t=E.map($p.sortAndFilter(R,I.autoOrdering),e=>e.id);g.commit("debugger/autoOrdering",t||[]),g.commit("debugger/excludedGuides",I.excludedGuides||[]),g.commit("debugger/throttling",I.throttling||{})}function o(e){g.dispatch("debugger/eventCaptured",e.data[0])}function d(e){g.commit("debugger/identity",{visitorId:E.get(e,"data.0.visitor_id")||I.get_visitor_id(),accountId:E.get(e,"data.0.account_id")||I.get_account_id(),apiKey:I.apiKey})}function c(){g.commit("debugger/location",{href:Fr(),browserUrl:window.location.href})}function l(e){g.commit("debugger/guideLoopRunning",e)}const p=E.partial(l,!0),h=E.partial(l,!1);return E.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]=E.wrap(o,(e,t,n)=>{!t.isTop&&i===a.TOP_DOWN||(e(t,n),t.isTop&&i===a.BOTTOM_UP)||$.postMessage({action:"debugger/sync",frameId:t.frameId,fields:{[r]:n}})}),o=u["_sync_"+r]||o,u["_sync_"+r]=(e,{value:t,frameId:n})=>{e.frames[n]||(e.frames[n]={}),e.frames[n][r]||(e.frames[n][r]=s[r].defaultValue),o(e.frames[n],t),e.isTop||i!==a.TOP_DOWN||o(e,t)}}),{state:n,actions:e,getters:t,mutations:u}})();const nb=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]);Dt(e,250)}function l(){e()}function p(){return!n||n&&o.store.getters["frames/isLeader"]()}function h(e){p()&&(e=null==(e=e.data)?void 0:e[0]).storeChanged&&o.store.dispatch("frames/syncOptions",{options:e.options})}function f(e){var t;g(null==(t=e.data)?void 0:t[0].visitor_id,null==(t=e.data)?void 0:t[0].account_id)}function g(e=b(),t=Gn()){p()&&o.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}}();function ib(e,n){return e.length==n.length&&E.all(e,function(e,t){return e===n[t]})}class rb{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=yr(n.selector)}catch(i){t=[]}t.length>this.maxTargets&&(t.length=this.maxTargets),ib(t,n.targets)||(n.targets=t,this.domActivation.detach(n,this.domActivation.targets),E.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 ob,ab,sb,ub,db,cb,lb={name:"DOMActivation",key:sb="pendoTargetId",guides:ub=[],targets:db={},reset:mb,init:yb,attach:function(n,i,e){var t=n[sb],r=t?e[t]:null;r||(t=t||"target"+E.uniqueId(),r={target:n,events:{}},e[t]=r,n[sb]=t);var o=e[i.id]||[];o.push(t),e[i.id]=o,E.each(i.events,function(e){var t=r.events[e];t||((t={guideIds:{}}).fn=E.partial(gb,E,t.guideIds),l(n,e="mouseover"===e?"mouseenter":e,t.fn),r.events[e]=t),t.guideIds[i.id]=1})},detach:fb,handler:gb,activates:vb,prefetch:bb,initialize:function(e,t){(ob=t).Events.on("deliverablesLoaded",mb),t.Events.on("guideListChanged",pb),t.Events.on("guidesLoaded",hb),sh(ab=new rb(lb))},teardown:function(){uh(ab),ob.Events.off("deliverablesLoaded",mb),ob.Events.off("guideListChanged",pb),ob.Events.off("guidesLoaded",hb)}};function pb(){mb(),yb(Wu())}function hb(){bb(Wu())}function fb(i,t){E.each(t[i.id],function(e){var n=e?t[e]:null;n&&(E.each(n.events,function(e,t){e&&e.guideIds&&(delete e.guideIds[i.id],E.size(e.guideIds)<=0)&&(Du(n.target,t="mouseover"===t?"mouseenter":t,e.fn),delete n.events[t])}),E.size(n.events)<=0)&&(delete n.target[sb],n.target=null,delete t[e])}),delete t[i.id]}function gb(e,t){var n;!e.pendoActivatedGuide&&!k.data.get(e,"advanced")&&(n=f.get("adoptPrioritizeAdoptGuides"),t=E.compact(E.map(E.keys(t),N)),t=E.filter(t,function(e){return!(!e.steps||!e.steps.length||E.get(e,"attributes.dom.isOnlyShowOnce")&&e.steps[0].hasBeenSeen())}),t=E(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=E.find(t,function(e){var t=E.first(e.steps);return E.get(e,"attributes.resourceCenter",!1)&&e.isShown()?P.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||Lg(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function mb(){E.each(ub,function(e){fb(e,db),e.targets=[]}),ub.length=0}function vb(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(Vg())){var t=E.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=cd(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function yb(e){E.each(e,function(e){e=vb(e);e&&ub.push(e)})}function bb(e){f.get("disablePrefetch")||E.each(e,function(e){E.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&E.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent(!0)})}var wb=function(){(cb=cb||{dom:k,placeBadge:yh,showPreview:Rg,stopGuides:Jp,removeAllBadges:bh,_:E,sizzle:yr,tellMaster:za,tell:za,log:Lv,attachEvent:l,createLauncher:E.constant({}),removeLauncher:E.noop,addGuideToLauncher:E.noop,updateLauncherContent:E.noop,DEFAULT_TIMER_LENGTH:qp,getOffsetPosition:Ho,getScreenDimensions:jo,registerMessageHandler:Ma,whenLoadedCall:Gu,loadResource:Ta,loadGuideCss:ym,GuideFactory:Ud,GuideStep:Gd,extractElementTreeContext:ku,previewGuideFromJSON:D.previewGuideFromJSON,hidePreviewedGuide:D.hidePreviewedGuide,shadowAPI:Yn,getTarget:Cr,pullContentsFromTargetElement:Tg,doesElementMatchContainsRules:xg,doesElementContentMatchRule:kg,getGuideAttachPoint:ad}).areGuidesEnabled=!Am(),I.designer||(I.designer=cb)},Sb=function(){var r,o,i;let a;return{name:"DesignerConnect",initialize:function(e,t){r=e,o=t,Va()||Ma("connect",n);Ma("pendo-designer-launch::launch",d),Ma("pendo-preview::launch",c),e.app_name=document.title,(Ha()||window.opener)&&window.addEventListener&&(r.log(e.app_name+": listening to messages"),window.addEventListener("message",Aa,!1));window.opener&&r._.isFunction(window.opener.postMessage)&&window.opener.postMessage({type:"pendo::ready"},"*");r.onConnectMessage=n},teardown:function(){window.removeEventListener&&window.removeEventListener("message",Aa,!1),s(),La("connect"),La("pendo-designer-launch::launch"),La("pendo-preview::launch"),a&&(o.Events.appUnloaded.off(a),a=undefined);i=i&&undefined},onConnectMessage:n,disconnectDesigner:s,launchDesignerListener:d,launchPreviewListener:c,sendToken:u};function n(e,t){var n=t.origin,i=(r.stopGuides(),r.buffers.lock(),t.source);Ea=i,r.designerv2.hostConfig||(o.store.dispatch("frames/leave"),a=r._.partial(s,i,n),o.Events.appUnloaded.on(a)),wb(),za(t.source,{status:"success",type:"connect"},n),Ua("selection.js")&&(r.log("Designer Modules already loaded."),za({type:"ready"},n)),o.Events.designerLaunched.trigger()}function s(e,t){r.buffers.unlock(),I.designer&&(I.designer=null,delete I.designer),e&&za(e,{type:"unload"},t)}function u(e,t){var n;i&&(n={token:i,type:"pendo-designer-launch::set-token"},t.source.postMessage(n,t.origin),i=undefined)}function d(e,t){var n,t=t.data.token;t&&(i=t,Ma("pendo-designer-launch::get-token",u),n=t.DADesigner?"da-designer":"in-app-designer",n={lookaside:t.baseUrl,host:t.host,target:t.target||"latest",DADesigner:!!t.DADesigner,gcsBucket:t.gcsBucket||n,forceNativeDesigner:!!t.forceNativeDesigner,sidebarDesigner:!!t.sidebarDesigner},r.designerv2.launchInAppDesigner(n))}function c(e,t){var n=t.data.config.preferredAgentInstallType;n&&n!==we()?r.log("Skipping preview launch due to agent install type mismatch."):(n=r._.extend({},t.data.config,{origin:t.origin}),oo()&&(n.apiKey=r.apiKey),o.store.dispatch("preview/exitDesignerPreview"),o.store.dispatch("preview/start",n),xh(window)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:r.apiKey,accountId:r.accountId},t.origin),jm(),o.store.dispatch("frames/startPreview")))}}();const Ib="__sg__";Eb="promotedAgentMetadataConfigurations",Cb=[],Tb={},xb={};var _b,Eb,Cb,Tb,xb,kb={name:"PromoteMetadata",initialize:function(e,t){if(Cb=(_b=t).ConfigReader.get(Eb),xb={},_b.agentStorage.registry.addLocal(Ib),kn())try{Tb=JSON.parse(_b.agentStorage.read(Ib))||{}}catch(n){Lb()}Cb&&Cb.length&&(_b.Events.on("metadata",Rb),_b.Events.on("eventCaptured",Fb),_b.Events.on("identify",Nb))},teardown:function(){_b.Events.off("metadata",Rb),_b.Events.off("eventCaptured",Fb),_b.Events.off("identify",Nb)},getPromotedMetadata:function(){return Cb},hasPromotedMetadataKind:Ab,setSchemaGroup:Rb,getSchemaGroup:Ob,resetSchemaGroup:Mb,resetCachedSchemaGroup:Lb};function Ab(t){return E.some(Cb,function(e){return e.kind===t})}function Ob(){return xb}function Rb(e){var t;e?(e=e.data[0]["options"],e&&(t=e)):t=xl(),xb=function(r){if(kn())try{var e=_b.agentStorage.read(Ib);Tb=function(e){e=E.mapObject(e,(t,e)=>{const n={};return Object.keys(t).forEach(e=>{n[e.replace("agent__","")]=t[e]}),n});return e}(Tb=e?JSON.parse(e):{})}catch(t){Lb()}var o=xb;E.each(["visitor","account","parentAccount"],function(e){var t=Ab(e),n=!E.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!E.isEmpty(Tb)&&E.isEmpty(fs.get())&&(o[i]=Pb(Tb[i],e)),n)&&(t=Pb(r[e],e),E.isEmpty(t)||(o[i]=Object.assign(Object.assign({},o[i]),t)))}),kn()&&_b.agentStorage.write(Ib,JSON.stringify(o),undefined,!1,!0);return o}(t)}function Nb(e){e=e.data[0];E.get(e,"wasCleared")&&(_b.agentStorage.clear(Ib),Mb())}function Mb(){xb={}}function Lb(){Tb={}}function Pb(e,i){var r={};return e&&E.each(e,function(e,t){var n=t.toLowerCase();Boolean(E.find(Cb,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function Fb(e){e=e.data[0];e&&(E.isEmpty(xb)&&Rb(),E.isEmpty(xb)||("track"===e.type?e.props.__sg__=xb:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=xb)))}function $b(e,t,n){this.element=e,this.method="element"==t?"click":"hover"==t?"mouseover":t,this.step=n,this.guide=n.getGuide()}$b.prototype.add=function(){0===E.indexOf(this.guide.steps,this.step)&&!$b.shouldAttachHandler(this.guide,this.method)||td(this.guide)&&!nd(this.guide)||this.setupElementEvent(this.element,this.method)},$b.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},$b.prototype.setupElementEvent=function(e,t){this.advanceFn||(this.advanceFn=E.compose(E.bind(this.teardownElementEvent,this,e,t),E.bind(this.step.advance,this.step))),$b.attach(this.step,e,t,this.advanceFn)},$b.prototype.teardownElementEvent=function(e,t){C.info("detach onGuideAdvanced",{contexts:["guide"]}),Du(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},$b.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||lb.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector};var Db=null,Ub=function(){return od()?ed:Qu},Gb=function(e){return"#_pendo_g_"+e.id},jb=function(e,t){Db=null;var n,i,r,o,e=Ho(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(Ub()),o=Yb(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}),Bb(n[0],o),n[0])},Bb=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=E.chain(n).filter(function(e){return e!==o}).map(function(e){return"border-"+e+"-width:"+I.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=k("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),u=k("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");E.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)},zb=function(e,t){t===undefined&&(t=ju),e.element=ud(e);var n=e.element;if(!n)return C.info("No element found for step: "+e.id),null;pa(n);var i=jb(n,e);return null===i?null:(i.id=I.getTooltipDivId(e),k(i).appendTo(ad()),t.push(i),l(i,"mouseover",E.partial(k.addClass,i,"mouseover")),l(i,"mouseout",E.partial(k.removeClass,i,"mouseover")),ld(n,i),Kb(e),n)},Hb=null,Wb=null;var qb=null,Vb={top:"north",left:"east",bottom:"south",right:"west"},Kb=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=dc(n=n.concat(E.compact(E.flatten(E.map(t.additionalElements,function(e){return E.toArray(k(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=uc(a=sc(),i,o),h=i,f=!E.isEqual(h,Hb),Hb=h,f||(l=a,p=!E.isEqual(l,Wb),Wb=l,p)||(d=s,c=!E.isEqual(d,qb),qb=d,c))&&(u={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(u["background-color"]=t.bgColor),t.opacity&&(u.opacity=t.opacity),E.each(s,function(e,t){t=Vb[t],e=E.extend({},e,u),t=k("div._pendo-guide-tt-region-block_._pendo-region-"+t+"_")[0]||Jb(t),k(t).css(e)}))}catch(g){C.info("Failed to add BlockOut ui",{contexts:["error"]})}var d,c,l,p,h,f},Jb=function(e){e=k(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");k("body").append(e)},Zb=function(e){var t=E.isEqual(e,Db);return Db=e,!t},Yb=function(e,t,n,i){var r=I.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=jo();return o.width=Math.min(n,a.width),o.height=t,o.content.width=o.width-2*r,o.content.height=o.height-2*r,o=Xb(o,e,a,i=i||"auto"),o=Qb(o,e,a,i),o=e0(o,e,a)},Xb=function(e,t,n,i){return e.arrow.hbias=Tc(t,n,i),e},Qb=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-ho(),t=(r=t.left-fo())+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},e0=function(e,t,n){var i,r,o,a=e.height,s=e.width;return De()?Ue(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-I.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=_e(9,6)?6:0,e.arrow.top+=8==Ie?-1:0,i=1),r=10+I.TOOLTIP_ARROW_SIZE,o=s-3*I.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==_c?(e.left=t.left+t.width/2-(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==Ec?(e.left=t.left-s+t.width/2+(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=o):(e.left=t.left+t.width/2-s/2,e.arrow.left=s/2-I.TOOLTIP_ARROW_SIZE),!1!==e.arrow.floating&&(n=e.left+s-n.width,0<(n-=Math.max(0,e.arrow.left+n-o))&&(e.left-=n,e.arrow.left+=n),o=-e.left,0<(o-=Math.max(0,r-(e.arrow.left-o))))&&(e.left+=o,e.arrow.left-=o),e.arrow.border.top=e.arrow.top+i,e.arrow.border.left=e.arrow.left):(e.arrow.hbias==_c?(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==Ec&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-I.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=_e(10,6)?5:0,e.arrow.left+=7==Ie&&6<=ke?1:0,e.arrow.border.left=e.arrow.left+1),e.top=t.top-a/2+t.height/2,e.arrow.top=a/2-I.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e)},t0=430,n0=200,i0=15;function r0(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||I.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||I.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.getTriggers=function(e){var t=this,n=t.element||ud(t);return!n&&e?[]:(e=(t.advanceMethod||"").split(","),this.triggers=E.map(e,function(e){return new $b(n,e,t)}),this.triggers)},this.removeTrigger=function(e){this.triggers=E.without(this.triggers,e),0===this.triggers.length&&(this.triggers=null)},this.canShow=function(){return!_g(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(Vg())&&Cg(t)},this.after("render",function(){zb(this,this.elements)&&(E.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=Ho(this.element),t=Yb(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(),Bb(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,Kb(this)},this.onscroll=function(e){ca(e.element)?(e.reposition(),Uo(e.elements[0],"display:block")):Uo(e.elements[0],"display:none")},this.teardownElementEvent=function(){E.each(this.triggers,function(e){e.remove()})},this.after("hide",function(){k("._pendo-guide-tt-region-block_").remove(),qb=Wb=Hb=null})),this}var o0=function(e,t){var n=!!k("._pendo-backdrop_")[0];return E.get(t,"overlayDiv[0]")||(t.overlayDiv=k(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(ad())),De()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&k(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},a0=function(e){var t=e.guideElement,n=I.TOOLTIP_ARROW_SIZE,i=e.attributes.height,e=e.attributes.width,e=Math.floor(e/2),i=Math.floor(i/2);t.addClass("_pendo-guide-lb_").css({top:"50%",left:"50%","margin-top":-i,"margin-left":-e}),k("._pendo-guide-container_",t).css({bottom:n,right:n}),De()&&t.css({position:"absolute"})},s0=function(e,t){t===undefined&&(t=ju),e.element=ud(e),a0(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(o0(n,e),e.guideElement);t.push(n[0]),n.appendTo(ad())},u0=function(e,t){t===undefined&&(t=ju),e.element=ud(e),e.guideElement.addClass("_pendo-guide-mobile-lb_");var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=o0(n,e),e=e.guideElement,i=I.TOOLTIP_ARROW_SIZE,i=(e.css({width:"",height:""}),k("._pendo-guide-container_",e).css({bottom:i,right:i}));function r(e){e.preventDefault()}k("._pendo-close-guide_",e).remove().prependTo(i),e.appendTo(ad()),t.push(e[0]),l(n[0],"touchmove",r),l(e[0],"touchmove",r)};function d0(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||I.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||I.LB_DEFAULT_WIDTH,e.after("render",function(){(od()?u0:s0)(e,e.elements)}),e.reposition=function(){od()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var c0=500,l0="_pendo-guide-banner_";function p0(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||c0,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=I.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(l0).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),rd()||e.addClass("_pendo-in_"),k("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=ud(n),n.elements.push(e[0]),e.appendTo(ad())})),n}function h0(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(E.extend(n,{isShown:E.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",Ag(n)).addClass("_pendo-guide-whatsnew_").html(n.getContent()),E.isNumber(t)&&!n.attributes.autoHeight&&e.height(t),n.seenState===r&&e.addClass(i),n.guideElement=e)},seen:s}),E.extend(t,{addToLauncher:function(){var e=n.guideElement;e&&!Zo(e[0])&&(k("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),Vd.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){rd()||a()&&n.seenState!==r&&function(e){{var t,n;if(ca(e,/(auto|scroll|hidden)/))return(t=ea(e))?(t=Yo(t),e=Yo(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(Fg(n.guideId,n.id,b(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,E.delay(function(){n.guideElement.addClass(i+" out")},E.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function u(){}}var f0="_pendo-launcher-searching_",g0="._pendo-launcher-search-box_ input";var m0,v0=function(e){return e&&E.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function y0(){var e;return function(){var e;if(I.guideWidget)return(e=I.guideWidget.data)&&e.enableSearch}()&&(e=k(g0)[0])&&0<(e=e.value).length?(e=Ye.call(e),[].concat(E.compact(e.split(" ")))):[]}function b0(e){if(!f.get("disablePrefetch"))return y.all(E.map(e,function(e){return e.fetchContent()}))}function w0(e,t){return C.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||R,t&&0!==t.length?E.chain(e).filter(v0).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return E.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var S0=function(){var e=Xu();if(hd()){if(I.guideWidget&&I.guideWidget.enabled){var t=O0(e),n=!0;if(I.guideWidget&&E.isFunction(I.guideWidget.update))I.guideWidget.update(t,n)}}else{G0();t=qu(e),n=R0(O0(t));n!==m0&&g.dispatch("frames/changeGuideList",t),m0=n}},I0="launcher-closed",_0=null,E0=null,C0=!($b.attach=function(e,t,n,i){if(e){for(var r=$b.handlers=$b.handlers||{},o=r[e.id]=r[e.id]||[],a=0;a<o.length;++a){var s=o[a];t===s[0]&&n===s[1]&&(Du(t,n,s[2],!0),o.splice(E.indexOf(o,s),1),a--)}o.push([t,n,i]),Du(t,n,i,!0),l(t,n,i,!0)}}),T0="_pendo-launcher-active_",x0=null,k0=function(){return""};function A0(e,t){k0=t}function O0(e){var t,e=E.filter(e||R,v0);return e=e,0===(t=y0()).length?e:(t=E.map(t,E.partial(w0,e)),E.union.apply(E,t))}function R0(e){return rt(E.map(e,function(e){var t=e.isWhatsNew()?[]:E.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function N0(e){var n=this,t=e.launchType||"badge",i=(E.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(ad()),e.className="",n.element=t[0])}},dispose:function(){k.removeNode(n.element)},setActive:function(e){e?k(n.element).addClass(T0):k(n.element).removeClass(T0)}}),e),e=i.position||"bottom-right",r=document.createElement("img");k(n.element=r).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+e+"_"),i.launcherBadgeUrl&&(r.src=jd(i.launcherBadgeUrl)),r.onerror=function(e){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})},De()&&(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"})),ad().appendChild(r)}function M0(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=Cr(e),t=n();k(e).closest(t).length&&(W0()?h.write(I0,"yes",864e6):I.guideWidget.position(e),J0())}I.guideWidget.removeCountBadge=function(){k("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),E.extend(this,{getLauncherTarget:function(){return k(n())[0]},dispose:function(){Du(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&k("._pendo-launcher-whatsnew-count_").remove()}}),l(document,"click",t)}function L0(){var n,s="bottom-right",u="bottom-left";return this.update=function(e,t){t=t?e:O0(e),e=R0(t)+rt(y0());return e!==n&&(n=e,this.updateLauncherContent(t)),D0(),0<t.length},this.updateLauncherContent=z0,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(_0=new N0(e),e.height||310),n=(e.enableSearch&&(t+=De()?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=(E0=i[0],Ho(_0.element)),r=Yb(r,t,n),o=(i.css({width:n,height:t}),I.TOOLTIP_ARROW_SIZE),n=k(document.createElement("div")).addClass("_pendo-guide-container_ "+r.arrowPosition).addClass("_pendo-guide-container-"+r.arrowPosition+"_").css({top:o,left:o,width:n-2*o,height:t-2*o}).appendTo(i),t=B0(),o=jd(P0(this.template(t))),t=k(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),ig(i[0],function(){V0(),h.write(I0,"yes",288e5)}),t.on("click",function(e){var t=k(Cr(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=N((t=/^launcher-(.+)$/.exec(Ye.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(Lg(t.steps[0],"launcher"),V0(),Uu(e))}),De()&&(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(ad()),E.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=Ho(e),n=Yb(e,this.height,this.width),i=k(E0),"badge"===(r=t.launchType||"badge")?(o=t.position,E.indexOf(a=[s,u,"top-left","top-right"],t.position)<0&&(o=s),E.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=E.contains([s,u],o)?"bottom":"top",n.arrow.hbias=E.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(),e0(n,e,{width:Infinity,height:Infinity}),Bb(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=J0,this}function P0(e){return e=E.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function F0(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)),x0=new M0(e);var n,i,r=L0.create(I.guideWidget);return E.isFunction(r.template)||(r.template=e.template?E.template(e.template):k0),r.render(),r.position(x0.getLauncherTarget()),t&&r.toggle(),r}L0.create=function(e){return E.reduce(L0.behaviors,function(e,t){return t.call(e)},e)},L0.behaviors=[dh,L0,Fd.Launcher,function(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){k(g0).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,I.disableGuideCenterContentSearch||this.before("update",b0),this.before("update",function(){t.text=y0().join(" ");var e=k("._pendo-launcher_");t.text?e.addClass(f0):e.removeClass(f0)})),this},function(){var n=this;{var i;n.data&&n.data.onboarding&&(i=n.onboarding=n.onboarding||{},n.before("update",function(e){var e=E.filter(e,wy),t=E.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=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=(E.each(t,function(e){e.show()}),E.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),E.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(){j0()?i.appendTo(this.data.launchElement):(_0.wrap(),i.appendTo(_0.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 $0=function(){E0&&(k.removeNode(E0),E0=null),x0&&(x0.dispose(),x0=null),_0&&(_0.dispose(),_0=null)},D0=function(){(!j0()&&(q0()||0<y0().length)?U0:G0)()},U0=function(){_0&&_0.show()},G0=function(){j0()||V0(),_0&&_0.hide()},j0=function(){return!(!I.guideWidget||!I.guideWidget.data||"element"!==I.guideWidget.data.launchType)},B0=function(e){var t=xl(),t=E.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:nt(t)},I.guideWidget);return t.data=E.extend({},t.data),e&&(t.guides=e),t};function z0(e){var t=I.guideWidget.template||k0,e=B0(e),e=k(document.createElement("div")).html(P0(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 H0=E.compose(D0,function(e,t){var n,i,r,o;v0(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,E.isNumber(t)&&(r=k("._pendo-launcher-item_"))[t]?e.id!=r[t].id&&n.insertBefore(e,r[t]):n.appendChild(e))}),W0=function(){return k(E0).hasClass(T0)},q0=function(){return 0<k("._pendo-launcher-item_").length},V0=function(){var e;E0&&(e=k(E0))&&e.hasClass(T0)&&(e.removeClass(T0),_0)&&_0.setActive(!1)},K0=function(){var e;E0&&(e=k(E0))&&!e.hasClass(T0)&&(e.addClass(T0),_0)&&_0.setActive(!0)},J0=function(){E0&&!C0&&(W0()?V0:K0)()};var Z0=function(){try{var e=I.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};$0(),!od()&&!n.desktop||od()&&!n.mobile||Ha()&&!n.iframe||e.enabled&&(F0(t),G0())}catch(i){C.critical("ERROR while initializing launcher",{error:i})}},Y0=function(e){e.defaultLauncher=A0,e.toggleLauncher=J0,e.showLauncher=K0,e.hideLauncher=V0,e.removeLauncher=$0,e.initLauncher=Z0,e.createLauncher=F0,e._addGuideToLauncher=H0,e.launcherToolTipDiv=E0},X0=function(){Z0()},Q0=function(){var e;(e=I).designer&&(e.designer.createLauncher=F0,e.designer.removeLauncher=$0,e.designer.addGuideToLauncher=H0,e.designer.updateLauncherContent=z0)},e1=function(){var e;(e=I).debugging&&(e.debugging.getLauncherGuides=O0)},t1=function(e){return i=I.guideWidget,e=e,r=i&&i.data,e=E.filter(e,function(e){e=E.first(e.steps);return e&&"launcher"===e.type}),(e=E.first(E.sortBy(e,function(e){return-e.lastUpdatedAt})))&&r&&(e=E.first(e.steps),E.extend(r,E.pick(e,"contentUrl","contentUrlCss","contentUrlJs"),e.attributes),E.defaults(r,{whatsnew:{},knowledgebase:{}}),r.id=e.guideId+e.id),n=(t=i)&&t.data||{},!0!==f.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?xd.verify(n).then(function(){return zd.load(n)}).then(function(e){return n.template=e.content,E.extend(t,e)}):y.resolve();var t,n,i,r},n1=function(e,t){Y0(e),t.Events.on("guidesLoaded",X0),t.Events.on("designerLaunched",Q0),t.Events.on("debuggerLaunched",e1),t.GuideLoop.addUpdatePhase(S0),pm.push(t1),t.agentStorage.registry.addLocal(I0)},i1=function(e,t){var n;n=t1,0<=(n=E.indexOf(pm,n))&&pm.splice(n,1),t.GuideLoop.removeUpdatePhase(S0),t.Events.off("guidesLoaded",X0),t.Events.off("designerLaunched",Q0),t.Events.off("debuggerLaunched",e1)};Jm.Extensions.API.addTopic("Launcher",{addBehavior:function(e){L0.behaviors.push(e)}});var r1,o1,a1,s1={name:"P1Guides",initialize:function(e,t){var n;o1=t,r1=e.dom,a1=[r0,d0,p0,h0,c1,l1,d1,u1],-1<E.indexOf(Gd.behaviors,r0)||(n=E.indexOf(Gd.behaviors,Cy),Gd.behaviors.splice.apply(Gd.behaviors,[n,0].concat(a1)),t.Events.guideLoopStopped.on(G0),e.TOOLTIP_DEFAULT_WIDTH=t0,e.TOOLTIP_DEFAULT_HEIGHT=n0,e.TOOLTIP_ARROW_SIZE=i0,e._showElementGuide=zb,e._createTooltip=jb,e._get_tooltip_dimensions=Yb,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e._showLightboxGuide=s0,n1(e,t))},teardown:function(){i1(0,o1),o1.Events.guideLoopStopped.off(G0),a1.forEach(e=>{e=E.indexOf(Gd.behaviors,e);0<=e&&Gd.behaviors.splice(e,1)}),a1=[]}};function u1(){const o=this;return"tooltip"!==o.type||o.domJson||(o.checkPlacement=function(){var e,t,n,i,r;e=o,r=Ho(e.element||ud(e)),Kb(e),Zb(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=Yb(r,n,i,t),(i=k(Gb(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),Bb(i,n))}),o}function d1(){var i=this;return i.attributes&&i.attributes.autoHeight&&(i.after("render",function(){i.guideElement&&i.guideElement.length&&(i.resize(),i.attachEvent(i.guideElement[0],"load",function(){i.resize()}))}),i.resize=function(){var e,t=I.TOOLTIP_ARROW_SIZE,n=i.guideElement;n&&(e=r1("._pendo-guide-container_",n),"tooltip"==i.type||De()&&"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 c1(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&ig(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||vg(t)})}),t}function l1(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||id(e.guide)||e.after("render",function(){Ig(e.guideElement[0])}),e}var p1,h1,f1={name:"Branding",initialize:function(e,t){p1=e,(h1=t).ConfigReader.get("isPendoFree")&&h1.Events.on("guideSeen",g1)},teardown:function(){h1.Events.off("guideSeen",g1)},addBranding:m1};function g1(e){m1(p1,e)}function m1(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",io()+"/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 v1,y1=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 Jt(r.bind(function(t){return Dt(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 Dt(r.bind(function(){return this.getElement(n,u).then(r.bind(function(e){if(e)if(e.disabled)this.automationQueue=[],o.log("automation target found but disabled. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug");else{switch(n.type){case"autofill":var t=this.getValue(n);this.injectText(e,t);break;case"autoclick":this.simulateClick(e)}this.automationQueue.shift(),this.automationQueue.length&&this.popQueue()}else this.automationQueue=[],o.log("automation target element not found. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug")},this))},this),e)},setActive:function(e){i=e}};function d(e){var t;e.step&&(this.setActive({guide:e.step.guide,step:e.step}),e.params)&&((e=r.find(e.params,function(e){return"automationIds"===e.name&&r.isArray(e.value)&&e.value.length}))?(e=this.getAutomationConfigs(e.value),t=!this.automationQueue.length,this.automationQueue=this.automationQueue.concat(e),t&&this.popQueue()):o.log("no automation ids were found","debug"))}}();function b1(e,i){return"undefined"!=typeof Proxy&&E.isFunction(i)?new Proxy(e,{get:function(e,t){if("textContent"===t)return i(e);if("parentNode"===t){var n=e[t];if(e.ownerDocument!==n)return b1(e[t],i)}return E.isFunction(e[t])?function(){return e[t].apply(e,arguments)}:e[t]}}):e}const w1=function(){let n,l,p,h,t;const i=Wn(function(n){{var e;p.eventProperties&&p.eventProperties.length&&(e=function c(i){var r=h.ConfigReader.get("eventPropertyMatchParents");var e=v();var t={};var n;for(var o=0;o<p.eventProperties.length&&v()-e<50;o++){n=p.eventProperties[o];var a=p._.any(n.featureRules,function(e){try{var t=f(r,l);return t(i,e)}catch(n){return!1}});if(a)for(var s=0;s<n.eventPropertyRules.length&&v()-e<50;s++){var u=n.eventPropertyRules[s];if(!u.name)return;t[u.name]=m(u,i)}}var d=v()-e;if(50<d){if(r&&l===p._.identity&&p._.isFunction(p.getText))return p.log("switching event property collection to fast text implementation"),l=function(e){return b1(e,function(e){return p.getText(e,128)})},c(i);g(50,n)}return t}(n.target),p._.pairs(e).forEach(([e,t])=>{n.addEventProperty(e,t)}))}}),r=Wn(function(){var e={};if(n)return{};var t=h.ConfigReader.get("eventPropertyConfigurations");if(!t||p._.isEmpty(t))return{};if(e=function(e){for(var t,n=v(),i={},r=0;r<e.length&&v()-n<50;r++){if(!(t=e[r]).name)return;var o=m(t);o&&(i["_pendo_"+t.name]=o)}50<v()-n&&g(50,t);return i}(t),p._.isEmpty(e))return{};return e});return{name:"EventProperties",initialize:function(e,t){p=e,h=t,l=p._.identity,n=!1,p.getEventPropertyTarget=s,p.previewEventProperty=m,h.Events.onClickCaptured.off(o),h.Events.onClickCaptured.on(o),h.Events.ready.on(a)},teardown:function(){h.Events.onClickCaptured.off(o),h.Events.ready.off(a),h.store.dispatch("location/removeInternalTransforms",t),t=[],h.store.dispatch("location/stopPolling")},collectClickEventProperties:i,collectEventProperty:m,collectPageEventProperties:r,getEventPropertyTarget:s,addPageEventProperties:a};function f(e,n){return e?function(e,t){return 0<p.dom(n(e)).closest(t).length}:function(e,t){return p.Sizzle.matchesSelector(e,t)}}function o(e){i(e.data[0])}function a(){var e;t=(e=h.ConfigReader.get("eventPropertyConfigurations"))&&!p._.isEmpty(e)?[new Qv("search","AddTo",function(){return r()})]:[],h.store.dispatch("location/addInternalTransforms",t),0<t.length&&h.store.dispatch("location/startPolling")}function g(e,t){p.log("event property collection disabled; collection took greater than "+e+" milliseconds.");e="ERROR event property collection exceeded time limit.";t.featureId?e+="\n For feature with id: "+t.featureId:e+="\n For page event with name: "+t.name,h.log.critical(e),t.featureId?p.eventProperties=[]:n=!0}function m(e,t){if(e.path)return t=s(e,t),p._.get(t,e.path,undefined)}function s(e,t){e=e.source||e.selector;if(e&&t){for(var n,i=e,r=t;!n&&r;){try{if((n=p.Sizzle.matchesSelector(r,i)?r:p.Sizzle(i,r)[0])&&("password"===n.type||"hidden"===n.type))return}catch(o){return}r=Yn.getParent(r)}return n}return e?!(t=p.Sizzle(e)[0])||"password"!==t.type&&"hidden"!==t.type?t:void 0:window}}();function S1(){var e;lh().enabled&&(g.commit("debugger/debuggingEnabled",!0),I1(),k("#pendo-client-debugger").length||(e=f.get("agentDebuggerPluginLoader"),Jm.restartDebugger?Jm.restartDebugger():"function"==typeof e?e():((e=document.createElement("script")).src=J(I).createScriptURL(ro("debugger-plugin.min.js")),e.setAttribute("id","pendo-debugger-plugin"),f.get("pendoGlobalKey")&&e.setAttribute("data-pendo-global-key",f.get("pendoGlobalKey")),k.getBody().appendChild(e)),m.debuggerLaunched.trigger()))}function I1(){v1=v1||{store:g,ConfigReader:f,getState:function(){return JSON.stringify(g.state)},getEventCache:function(){return[].concat(Ka)},getAllGuides:function(){return[].concat(R)},getAutoGuides:function(){return $p.sortAndFilter(R,I.autoOrdering)},getBadgeGuides:function(){return E.filter(R,td)},getLauncherGuides:function(){return[]},getEventHistory:function(){return[]},getAllFrames:function(){return g.getters["frames/allFrames"]()},getChannelType:function(){return g.getters["frames/channelType"]()},isStepShownInFrame:function(e,t){return g.getters["frames/isShownInFrame"]()(e,t)},setActiveGuides:Vu,getBody:k.getBody,isMobileUserAgent:$e.isMobileUserAgent,areGuidesDelayed:Om,doesElementMatchContainsRules:xg,getMetadata:xl,isStagingServer:ie,AutoDisplay:$p,isLeader:hd,Events:m},I.debugging=v1}function _1(e){if(ph())return e?t:"debugging already enabled";if(!hd())return;const t=lh();return t.enabled=!0,h.write(ch,JSON.stringify(t),null,!0),S1(),e?t:"debugging enabled"}function E1(){if(!ph())return"debugging already disabled";g.commit("debugger/debuggingEnabled",!1);var e=lh();return e.enabled=!1,h.write(ch,JSON.stringify(e),null,!0),I.debugging=null,delete I.debugging,k("#pendo-client-debugger").remove(),"debugging disabled"}E.extend(function(e){C.debug(e,{contexts:["debug"]})},v1);const C1=(e,t,n)=>{if(t.getters["frames/leaderExists"]())return n.resolve();const i=n.defer();return e.on("leaderChanged",()=>{i.resolve()}),i.promise},T1=function(){let t,o;return{name:"DebuggerLauncher",initialize:function(n,e){const{Events:i,q:r}=e;o=e.store,C1(i,o,r).then(()=>{o.dispatch("debugger/init"),o.getters["frames/isLeader"]()&&S1()}),Ma("pendo-debugger::launch",(e,t)=>{e.config.apiKey===n.apiKey&&C1(i,o,r).then(()=>{t.source.postMessage({type:"pendo-debugger::ready",apiKey:n.apiKey},t.origin),!ph()&&o.getters["frames/isLeader"]()&&_1(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",a);(t=n).isDebuggingEnabled=(e=!1)=>ph(e),n.enableDebugging=_1,n.disableDebugging=E1,n.addDebuggingFunctions=I1},teardown:function(){La("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",a),t.debugging&&t.debugging.teardown&&t.debugging.teardown();E1()}};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})}}(),x1=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 I="errorClickLogging",_=1500;let E=!1;return{name:"FrustrationEvent",initialize:function(e,t){S=e,c=S._,i=t,a=0,l=[],f=[],y={},E=i.ConfigReader.get(I),this.detachErrorEvent=i.attachEvent(window,"error",L,!0),this.detachDocumentEvents=function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange","visibilitychange","selectionchange","scroll"],t=[];for(var n=0;n<e.length;n++)switch(e[n]){case"selectionchange":t.push(i.attachEvent(window,e[n],x,!0));break;case"visibilitychange":t.push(i.attachEvent(window,e[n],()=>{T(250)},!0));break;default:t.push(i.attachEvent(window,e[n],T,!0))}return t}(),i.Events.on("eventCaptured",F),i.agentStorage.registry.addSession(w),S.sniffer.MutationObserver&&(e=dt("MutationObserver"),(n=new e(k)).observe(S.dom.getBody(),{childList:!0,attributes:!0,subtree:!0}))},teardown:function(){i.Events.off("eventCaptured",F),this.detachErrorEvent&&(this.detachErrorEvent(),this.detachErrorEvent=null);if(this.detachDocumentEvents){for(var e=0;e<this.detachDocumentEvents.length;e++)this.detachDocumentEvents[e]();this.detachDocumentEvents=null}n&&n.disconnect()},addErrorClickLog:R,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&&Dt(C,p)}function T(e=g){v=!1,c.each(y,e=>{clearTimeout(e)}),y={},Dt(()=>{v=!0},e)}function x(){var e=document.getSelection().toString();(b||e.length)&&(T(),b=!!e.length)}function k(e){e.length&&T()}function t(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function A(e){return e&&t(e.element)}function O(e,t){var{frustrationTypes:n=[]}=e;c.contains(n,t)||(n.push(t),e.frustrationTypes=n)}function R(e,t){let n;var{detail:i={}}=t;(n=(A(i)&&i.error?i.error:t).message)&&n.length>_&&(n=n.substring(0,_)),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=Dt(()=>{delete y[o],O(r,"deadClick")},g);y[o]=o}l.length>h&&l.pop(),l.unshift({target:t.target,activeElement:document.activeElement,browser_time:e.browser_time,timestamp:t.timeStamp}),Dt(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,O(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&&(O(e,"errorClick"),E)&&R(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)&&O(e,"uTurn"),2===r.length&&r.shift(),r.push({url:e.url,browser_time:e.browser_time}),e=r,i.sessionStorage.setItem(w,JSON.stringify(e))}function 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||T(),c.has(e,"target")&&c.contains(m,e.target.tagName));"focus"===t.type&&e&&T()}}(),k1=function(){let n,i,o;const a=[];let e=[];return{name:"EmbeddedGuides",activeEmbeddedGuides:a,initialize:function(e,t){n=t,i=e,o=i._,function(e){e.getEmbeddedGuides=A1,e.getActiveEmbeddedGuides=O1}(e),n.Events.on("deliverablesLoaded",u),n.Events.on("guideLoopStopped",s),n.Events.on("guideListChanged",h),n.Events.on("urlChanged",d),n.GuideLoop.addUpdatePhase(r),n.guides.addProcessor(c),n.GuideActivity.registerGuideResolver(p),this.removeResizeEvent=e.attachEvent(window,"resize",l)},teardown:function(){u(),n.Events.off("deliverablesLoaded",u),n.Events.off("guideLoopStopped",s),n.Events.off("guideListChanged",h),n.Events.off("urlChanged",d),n.GuideLoop.removeUpdatePhase(r),n.guides.removeProcessor(c),n.GuideActivity.removeGuideResolver(p),this.removeResizeEvent&&this.removeResizeEvent();e.length=0}};function r(){o.forEach(a,function(e){e.process()})}function s(){o.forEach(a,function(e){e.isShownInThisFrame()&&e.hide()})}function u(){e=o.toArray(a),n.guides.removeDisplayableGuides("embeddedGuides"),a.length=0}function d(){o.forEach(a,function(e){e.forceShowFirstStep=!!o.get(e,"attributes.restartOnReload")})}function c(t){var e;return!(e=t)||!e.launchMethod||"embed"!==e.launchMethod||(o.some(a,({id:e})=>e===t.id)||a.push(t),!1)}function l(){Lm()||o.forEach(a,function(e){e=e.getActiveStep();e&&!i.ignoreResize&&e.redraw()})}function p(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)?p(n.parentElem):null}return null}function h(){o.each(e,function(t){var e=o.findIndex(a,function(e){return e.id===t.id});-1===e&&t.isShownInThisFrame()?t.hide():t.isFrameProxy||(a[e]=t)}),e.length=0,n.guides.registerDisplayableGuides("embeddedGuides",a),o.map(a,function(e){!function({globalPendo:o,pluginApi:e}){const a=o["_"],i=e["store"],r=(this.process=function(){let e=null;var t,n=a.get(this,"attributes.embedConfig.selector"),i=a.get(this,"attributes.embedConfig.method"),n=a.first(o.Sizzle(n)),r=this.isShownInThisFrame();n&&r&&(t="#pendo-guide-container-"+a.get(this.getActiveStep(),"id"),e=!!o.Sizzle(t,n).length),!r&&n&&this.shouldAutoDisplay()?"replace"===i&&o.Sizzle('[id^="pendo-guide-container"]',n).length||this.show("embed"):!r||n&&e||this.hide()},this.getActiveStep=function(){return this?a.find(this.steps,function(e){return e.isShown()}):null},this.shouldAutoDisplay=function(){return this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||a.all(this.steps,function(e){return e.shouldRepeat()||!e.isSnoozed()&&"dismissed"!==e.seenState})},this.show=function(e){var t,n=a.first(this.steps);return this.forceShowFirstStep?(this.forceShowFirstStep=!1,n.show("reason")):(t=this.steps.map(e=>a.get(i,"state.guideState.steps."+e.id,r(e))),(t=a.max(t,function({time:e}){return e}))&&"advanced"==t.state&&!t.destinationStepId?this.findStepById(t.guideStepId).dismiss():(this.nextStep(t)||n).show(e))},this.hasOwnProperty("forceShowFirstStep")||(this.forceShowFirstStep=a.get(this,"attributes.restartOnReload")),this.isShownInThisFrame=function(){return a.any(this.steps,function(e){return e.isRendered()||e.isLocked()})},({id:e,guideId:t,seenReason:n,seenState:i,lastSeenAt:r,destinationStepId:o})=>({guideId:t,guideStepId:e,seenReason:n,state:i,time:r,destinationStepId:o}))}.call(e,{globalPendo:i,pluginApi:n}),o.map(e.steps,function(e){!function({pluginApi:n}){if(this._onShown||Object.defineProperty(this,"_onShown",{value:this.onShown,writable:!1,configurable:!1}),!this._onShown)return null;this.onShown=function(e){var t=!this.lastSeenAt||!!n.ConfigReader.get("enableAllEmbeddedGuideEvents");return this._onShown(e,t)}}.call(e,{pluginApi:n,_:o})})})}}();function A1(){return k1.activeEmbeddedGuides}function O1(){return k1.activeEmbeddedGuides.filter(e=>e.isShown())}const R1="sessionId";class N1{constructor(){this.name="SessionManager"}initialize(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"eventCaptured",E.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",18e5),this.api.agentStorage.registry.addLocal(R1),this.suffix=this.api.ConfigReader.get("identityStorageSuffix")}teardown(){E.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0}isExpired(e,t){e=E.get(e,"timestamp");return!!(e&&t-e>this.inactivityDuration)}eventCaptured(t){if(t&&t.data&&t.data.length){var t=t.data[0],n=t.browser_time||(new Date).getTime();let e=this.sessionInfo();this.isExpired(e,n)&&(e=this.clearSessionInfo(),this.api.Events.sessionChanged.trigger()),this.storeLastInteractionEventInformation(e,n),t.sessionId=e.sessionId}}sessionInfo(e=this.pendo.randomString(16)){let t=this.api.agentStorage.read(R1,!1,this.suffix)||this.api.agentStorage.read(R1);return t||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(R1,t,undefined,!1,!0,this.suffix)),JSON.parse(t)}clearSessionInfo(){return this.api.agentStorage.clear(R1),this.api.agentStorage.clear(R1,!1,this.suffix),this.sessionInfo()}storeLastInteractionEventInformation(e,t){e.timestamp=t,this.api.agentStorage.write(R1,JSON.stringify(e),undefined,!1,!0,this.suffix)}}var M1=new N1;function L1(e,t,s,u){return new(s=s||Jt)(function(n,i){function r(e){try{a(u.next(e))}catch(t){i(t)}}function o(e){try{a(u["throw"](e))}catch(t){i(t)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}a((u=u.apply(e,t||[])).next())})}class P1{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 L1(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.get(t);this.segmentsPayload(e.data)})}postLoad(t,n){return L1(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.postJSON(t,n);this.segmentsPayload(e.data)})}}var F1=new P1;const $1=["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"],D1=new RegExp(`(${$1.join("|")})`,"i"),U1=["facebook","twitter","linkedin","instagram","pinterest","tiktok","snapchat"],G1=new RegExp(`(${U1.join("|")})`,"i"),j1=["youtube","vimeo","dailymotion","twitch","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"],B1=new RegExp(`(${j1.join("|")})`,"i");const z1=new RegExp(`(${["amazon","ebay","walmart","etsy","shopify","shop","target","bestbuy","costco"].join("|")})`,"i");const H1=new RegExp(`(${["google performance max","microsoft audience network","facebook audience network"].join("|")})`,"i");function W1(e,t){return"self"!==t&&"direct"!==t&&null!==t.match(e)}function q1({referrer:e,currentHost:t}){if(!e||""===e)return"direct";e=new qn(e).hostname;let n="self";return n=e!==t?null==e?void 0:e.toLowerCase():n}const V1=new RegExp("^(.*cp.*|ppc|retargeting)$"),K1=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i"),J1=[["Email",({source:e,medium:t,referrer:n})=>"direct"===n&&(null!==t.match(K1)||null!==e.match(K1)||"newsletter"===t)],["Paid Search",({source:e,medium:t,gclid:n,_:i})=>n||"paid-search"===t||t.match(V1)&&i.contains($1,e)],["Organic Search",({source:e,medium:t,referrer:n,_:i})=>"organic"===t&&i.contains($1,e)||!t&&W1(D1,n)],["Display",({medium:e,_:t})=>t.contains(["display","cpm","banner","interstitial","expandable","programmatic"],e)],["Paid Social",({source:e,medium:t,fbclid:n,_:i})=>n||"paid-social"===t||t.match(V1)&&i.contains(U1,e)],["Organic Social",({source:e,medium:t,referrer:n,_:i})=>!t&&W1(G1,n)||"social"===t||i.contains(U1,e)],["Paid Shopping",({medium:e})=>"shopping"==e||"paid-shopping"==e],["Organic Shopping",({medium:e,referrer:t})=>"organic-shopping"===e||!e&&W1(z1,t)],["Paid Video",({medium:e,source:t,_:n})=>"paid-video"==e||!e.match(V1)&&n.contains(j1,t)],["Organic Video",({medium:e,referrer:t})=>"video"===e||!e&&W1(B1,t)],["Affiliates",({medium:e})=>"affiliate"===e||"partner"===e],["Audio",({medium:e})=>"podcast"===e||"audio"===e],["Cross-network",({source:e,medium:t})=>"cross-network"===t||e.match(H1)],["Other Advertising",({medium:e})=>"cpv"===e||"cpa"===e],["SMS",({source:e,medium:t})=>"sms"===e||"sms"===t],["Push Notifications",({source:e,medium:t})=>t.endsWith("push")||0<=t.indexOf("notification")||"firebase"===e],["Referral",({medium:e,referrer:t})=>"referral"===e||!!t&&"self"!==t&&"direct"!==t],["Paid Other",({medium:e})=>"paid-other"==e||e.match(V1)],["Other",({medium:e})=>!!e],["Direct",({source:e,medium:t})=>!t&&!e]],Z1="utm",Y1="enableFullUtmReferrer";class X1{constructor(){this.name="WebAnalytics"}initialize(e,t){this.pendo=e;var n=(this.api=t)["ConfigReader"],n=(n.addOption(Y1,[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(Z1),this.storeParameters(i,t.agentStorage),this.suffix=this.api.ConfigReader.get("identityStorageSuffix")}extractParameters(e,t){var n=q1({referrer:t,currentHost:new qn(e).hostname});if("self"!==n){e=this.api.util.parseUrl(e);if(!e)return{};var e=e["query"],i=e.utm_source,r=e.utm_medium,o=e.utm_campaign,a=e.utm_term,s=e.utm_content,u=e.gclid,e=e.fbclid;if(this.pendo._.compact([i,r,o,a,s,u]).length)return(i={source:i,medium:r,campaign:o,term:a,content:s}).channel=this.calculateUtmChannel({referrerValue:n,utm:i,gclid:u,fbclid:e}),t&&this.api.ConfigReader.get(Y1)?i.referrer=t:"direct"!==n&&(i.referrer=n),i}return{}}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(J1,e=>e[1](o));return e?e[0]:"Direct"}storeParameters(e,t){0<this.pendo._.size(e)&&(this.utm=e,t.write(Z1,JSON.stringify(e),undefined,!1,!0,this.suffix))}loadParameters(e){e=e.read(Z1,!1,this.suffix)||e.read(Z1);return e?JSON.parse(e):null}teardown(){for(var e of this.subscriptions)e();this.subscriptions.length=0,this.utm=null}addUtmToEvent(e){this.utm&&(e.data[0].utm=this.utm)}sessionChanged(){this.utm=null;var e=this.api.agentStorage,t=(e.clear(Z1),e.clear(Z1,!1,this.suffix),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)}}var Q1=new X1;const ew={children:[],props:{"class":"_pendo-step-container","data-layout":"tooltipBlank",id:"pendo-base"},type:"div"},tw={css:[],props:{scoped:"scoped",type:"text/css"},type:"style"},nw={children:[],props:{"class":"_pendo-step-container-size","data-relative-alignment":!0,"data-vertical-alignment":"Relative to Element",id:"pendo-g-validation-tooltip-container",style:{display:"block",width:"300px","z-index":3e5}},type:"div"},iw={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"},rw={children:[],props:{"class":"_pendo-text-paragraph",style:{}},type:"div"};function ow(e,t){return{content:t,props:{id:"text-"+e,"class":"_pendo-text-plain",style:{color:"gray",margin:0}},type:"p"}}function aw(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 sw=`
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
- `,rw=`
16
+ `,uw=`
17
17
  <svg xmlns="http://www.w3.org/2000/svg"
18
18
  width="10" height="10" viewBox="0 0 10 10"
19
19
  fill="none" stroke="green" stroke-width="2"
@@ -21,7 +21,7 @@ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{
21
21
  class="feather feather-check">
22
22
  <polyline points="2 5 4 7 8 2"></polyline>
23
23
  </svg>
24
- `,ow=`
24
+ `,dw=`
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,12 +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
- `,aw={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()@:%_+.~#?&/=]*)$/},sw={"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 uw={email:function(e){return aw.emailRegex.test(e)},phone:function(e){return aw.phoneRegex.test(e)},date:function(e,t={}){return(sw[t.format]||sw["MM/DD/YYYY"]).test(e)},url:function(e){return aw.urlRegex.test(e)},number:function(e,t={}){if(""===e)return!1;let{min:n,max:i,allowDecimal:r}=t;var t=dw(n),o=dw(i),e=(t&&(n=Number(n)),o&&(i=Number(i)),Number(e));return!isNaN(e)&&!(t&&e<n||o&&e>i||!r&&e%1!=0)},characterLength:function(e,t={}){let{min:n,max:i}=t;var t=dw(n),r=dw(i);return t&&(n=Number(n)),r&&(i=Number(i)),!(t&&e.length<n||r&&e.length>i)}};function dw(e){return e!==undefined&&null!==e&&""!==e}const cw=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=E.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:I,setValidationStyle:_};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(){E.map(i,function(e){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=wr.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||E.some(i,({id:e})=>e===t.id)||i.push(t),!0}function t(){var e=document.createElement("style");e.innerHTML=`
34
- input[data-pendo-field-valid="false"] {
33
+ `,cw={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()@:%_+.~#?&/=]*)$/},lw={"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 pw={email:function(e){return cw.emailRegex.test(e)},phone:function(e){return cw.phoneRegex.test(e)},date:function(e,t={}){return(lw[t.format]||lw["MM/DD/YYYY"]).test(e)},url:function(e){return cw.urlRegex.test(e)},number:function(e,t={}){if(""===e)return!1;let{min:n,max:i,allowDecimal:r}=t;var t=hw(n),o=hw(i),e=(t&&(n=Number(n)),o&&(i=Number(i)),Number(e));return!isNaN(e)&&!(t&&e<n||o&&e>i||!r&&e%1!=0)},characterLength:function(e,t={}){let{min:n,max:i}=t;var t=hw(n),r=hw(i);return t&&(n=Number(n)),r&&(i=Number(i)),!(t&&e.length<n||r&&e.length>i)}};function hw(e){return e!==undefined&&null!==e&&""!==e}const fw=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=E.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:I,setValidationStyle:_};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(){E.map(i,function(e){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=wr.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||E.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"] {
35
34
  border-color: red !important;
36
35
  outline-color: red !important;
37
- }
38
- `,document.head.appendChild(e)}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=tw("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:[tw(e,t)],type:"div"}}(n.id,n.ruleText):null,0!==(i=[i,n].filter(Boolean)).length&&(n=me(Y1),r=me(Z1),o=me(X1),a=me(Q1),s=me(ew),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?nw(iw):c?nw(rw):nw(ow),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)&&_(e,c),u.hide({validationHidden:!0}),null===d.isValid&&!1===c&&(I().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=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=uw[n.type];if(i){n=i(t.value,n.options),i=(c=!!n,I());let e;null===d.isValid?(i.props.style.color=n?"green":"gray",e=nw(n?rw:iw)):(i.props.style.color=n?"green":"red",e=nw(n?rw:ow),_(t,n)),u.hide({stepHidden:!0}),u.show("api");i=document.getElementById("rule-"+d.rules[0].id);i&&i.insertBefore(e,i.firstChild)}}}function I(){return qd("text-"+d.rules[0].id,u.domJson)}function _(e,t){!1===t?e.setAttribute("data-pendo-field-valid",!1):e.removeAttribute("data-pendo-field-valid")}}();class lw{constructor(e,t,n,i){this.listeners=[],this.latestPromptValue="",this.dom=e.dom,this._=e._,this.q=t.q,this.inputEl=new this.dom.Element(n),this.submitEl=new this.dom.Element(i),this.inputEl.addEventListener("change",e=>{this.capturePromptValue()},!0),this.inputEl.addEventListener("keydown",e=>{e="Enter"===e.code;this.capturePromptValue(e),e&&this.submit(this.latestPromptValue)},!0),this.submitEl.addEventListener("click",()=>{this.submit(this.latestPromptValue)},!0),this.promptContainer=new this.dom.Observer,this.promptContainer.addObservers(this.inputEl,this.submitEl)}submit(t){t&&(this._.each(this.listeners,e=>e(t)),this.latestPromptValue="")}capturePromptValue(e=!1){var t=this.getPromptValue();!t&&e||(this.latestPromptValue=t)}getPromptValue(){return this.inputEl.getText()}onSubmit(e){this.listeners.push(e)}teardown(){this.promptContainer.teardown(),this.inputEl.teardown(),this.submitEl.teardown()}}const pw="_pendoHeaders";class hw{constructor(){this.name="PromptAnalytics",this.configName="aiAgents",this.prompts=[]}initialize(e,t){this.pendo=e,this.api=t,this._=this.pendo._,this.api.ConfigReader.addOption(this.configName,["pendoconfig","snippet"]),this.loadConfig(this.configName).then(e=>this.onConfigLoaded(e))["catch"](()=>{})}loadConfig(e){var{q:t,ConfigReader:n}=this.api,t=t.defer(),e=n.get(e);return t.resolve(e),t.promise}onConfigLoaded(e=[]){var t;e&&this._.isArray(e)&&0!==e.length&&(t=e.filter(e=>"network"===e.trackingMethod),e=e.filter(e=>"network"!==e.trackingMethod),0<t.length&&(this.networkAgents=t,this.patchNetwork(({method:o,url:a,body:s})=>{this.networkAgents.forEach(e=>{let t=null;if(e.privacyFilters)try{t=new RegExp(e.privacyFilters,"gmi")}catch(r){this.api.log.error("Invalid privacy filter for agent",e.id,r)}var n=s||"",i=this.applyPrivacyFilter(n,t);this.api.analytics.collectEvent("prompt",{prompt:i,agentId:e.id,promptType:o,url:a,privacyFilterApplied:i!==n})})})),e.forEach(e=>{this.observePrompt(e)}))}patchNetwork(a){const s=this;s._networkPatched||(s._networkPatched=!0,s._originalSetRequestHeader||(s._originalSetRequestHeader=XMLHttpRequest.prototype.setRequestHeader,XMLHttpRequest.prototype.setRequestHeader=function(e,t){return this[pw]=this[pw]||{},this[pw][e]=t,s._originalSetRequestHeader.apply(this,arguments)}),s._originalFetch=window.fetch,window.fetch=function(...o){return O1(this,void 0,void 0,function*(){var[e,t={}]=o,n=t.method||"GET",i=gw(t.headers),t=fw(t.body);try{a({method:n,url:e,body:t,headers:i})}catch(r){s.api.log.debug("[PromptPlugin] Fetch tracking failed:",r)}return s._originalFetch.apply(this,o)})},s._originalXHROpen=XMLHttpRequest.prototype.open,s._originalXHRSend=XMLHttpRequest.prototype.send,XMLHttpRequest.prototype.open=function(e,t){return this._method=e,this._url=t,s._originalXHROpen.apply(this,arguments)},XMLHttpRequest.prototype.send=function(e){try{var t=mw(this),n=fw(e);a({method:this._method||"GET",url:this._url,body:n,headers:t})}catch(i){s.api.log.debug("[PromptPlugin] XHR tracking failed:",i)}return s._originalXHRSend.apply(this,arguments)})}observePrompt(e){var{id:e,cssSelectors:t,privacyFilters:n}=e,t=(this.setFilters(n),this.agentId=e,n=this.parseCssSelector("input",t),e=this.parseCssSelector("submit",t),new lw(this.pendo,this.api,n,e));t.onSubmit(e=>{this.sendEvent(e)}),this.prompts.push(t)}parseCssSelector(t,e){return this._.find(e,e=>e.type===t).cssSelector}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}sendEvent(e){var t=this.applyPrivacyFilter(e);this.api.analytics.collectEvent("prompt",{prompt:t,agentId:this.agentId,promptType:"request",privacyFilterApplied:e!==t})}applyPrivacyFilter(e,t=null){t=t||this.privacyFilters;return t&&this._.isRegExp(t)?e.replace(t,"redacted"):e}teardown(){this._originalFetch&&(window.fetch=this._originalFetch,this._originalFetch=null),this._originalXHROpen&&(XMLHttpRequest.prototype.open=this._originalXHROpen,XMLHttpRequest.prototype.send=this._originalXHRSend,this._originalXHROpen=null,this._originalXHRSend=null),this._networkPatched=!1,this._.each(this.prompts,e=>e.teardown()),this._originalSetRequestHeader&&(XMLHttpRequest.prototype.setRequestHeader=this._originalSetRequestHeader,this._originalSetRequestHeader=null)}}function fw(e){if(!e)return undefined;if("string"==typeof e)return e;if(e instanceof FormData){var t,n,i={};for([t,n]of e.entries())i[t]=n;return JSON.stringify(i)}try{return JSON.stringify(e)}catch(r){return"[unserializable-body]"}}function gw(e={}){const n={};return e instanceof Headers?e.forEach((e,t)=>{n[t]=e}):"object"==typeof e&&Object.entries(e).forEach(([e,t])=>{n[e]=t}),n}function mw(e){return e[pw]||{}}var vw=new hw;function yw(i){var e,t;(e=i).getVersion=qe,e.isReady=iv,e.pageLoad=tu,e.getVisitorId=Un,e.getAccountId=Gn,e.clearSession=zn,e.VERSION=He,e.LOADER=We,e.flushNow=s(function(e){return as(0,e)}),e.teardown=Wn(pv),e.initGuides=s(Em),e.loadGuides=s(sm),e.findGuideByName=s(qu),e.hideGuides=s(ig),e.onGuideDismissed=s(hg),e.goToStep=gg,e.onGuideAdvanced=s(mg),e.onGuidePrevious=s(vg),e.onGuideSnoozed=fg,e.startGuides=s(qp),e.stopGuides=s(Vp),e.defaultCssUrl=s(Vf()),e.getActiveGuides=Gu,e.getActiveGuide=Um,e.guideSeenTimeoutLength=sy.getGuideSeenTimeoutLength(),e.guidesPayload=Xg,e.areGuidesDisabled=s(Cm),e.setGuidesDisabled=s(xm),e.buildNodeFromJSON=D.buildNodeFromJSON,e.flexElement=s(D.flexElement),e.GuideFactory=s(Pd),e.dom=k,e.getText=ma,e.attachEvent=s(l),e.detactEvent=s(Lu),e.frames={setFrameVisibility:cd},e.log=Ov,e.enableLogging=Cv,e.disableLogging=Tv,e.setActiveContexts=$v,e.showLogHistory=Lv,e.getLoggedContexts=Pv,e.isDebuggingEnabled=E.noop,e.enableDebugging=E.noop,e.disableDebugging=E.noop,e.addDebuggingFunctions=E.noop,e.stopSendingEvents=s(ns.lock),e.startSendingEvents=s(ns.unlock),e.isSendingEvents=s(Ro),e.fromByteArray=c.uint8ToBase64,e.events=s(fd),e.track=s(Dv),e.validateInstall=Uv,e.validateNativeMethods=Gv,e.validateBuiltInGlobals=jv,e.validateUrl=Bv,e.validateEnvironment=Wv,e.doesExist=ge,e.generate_unique_id=Cn,e.TEMP_PREFIX=wn,e.SIZE_UNIQUE_ID=Sn,e.defaultLauncher=E.noop,e.toggleLauncher=E.noop,e.showLauncher=E.noop,e.hideLauncher=E.noop,e.removeLauncher=E.noop,e.identify=bl,e.get_visitor_id=Un,e.set_visitor_id=function(e){bl(e)},e.get_account_id=Gn,e.set_account_id=function(e){bl(b(),e)},e.getSerializedMetadata=_l,e.compress=et,e.squeezeAndCompress=et,e.randomElement=ot,e.randomString=at,e.toUTF8Array=Ye,e.getNumberFromText=ht,e._addCredits=s(yg),e.getCurrentUrl=zg,e.getNormalizedUrl=zg,e.testUrlForStep=s(Wg),e.showGuideByName=s(qg),e.showGuideById=s(Vg),e.designerv2=Yh,e.P2AutoLaunch=s(mf),e.BuildingBlocks=s(qv),e.onConnectMessage=E.noop,e.buffers=ns,e.guideDev=s(gv),e.badgesShown=s(Du),e.get_pendo_cookie=Ft,e.DEFAULT_EXPIRE_LEN=jt,e.set_pendo_cookie=zt,e.loadResource=Ta,e.loadWatcher=xa,e.messageLogger=ka,e.messageReceiver=Aa,e.messageValidator=Oa,e.MESSAGE_TYPES=Na,e.messageDispatcher=Pa,e.moduleRegistry=$a,e.addModule=Fa,e.hasModule=s(Da),e.findModuleByName=s(Ua),e.modulesWaiting=Ga,e.loadModules=ja,e.moduleLoader=Ba,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=Fe,e.url=A,e.location=ry,e.Sizzle=yr,e._=E,e.ajax=xr,e.Zlib=tt,e.guideContent=s(Ud.guideContent),e.receiveDomStructureJson=s(Ud.receiveDomStructureJson),e.addExtension=Ol,(t=i).SHADOW_STYLE="",E.extend(t,{_showElementGuide:E.noop,flushEventCache:py(null,"flushEventCache",cy),HOST:Zr,MAX_LENGTH:Xa,MAX_NUM_EVENTS:Za,_createToolTip:E.noop,_get_tooltip_dimensions:E.noop,_isOldIE:s(py(_e,"_isOldIE",dy)),_logMessage:py(Eo,"_logMessage",dy),_sendEvent:py(null,"_sendEvent",cy),_sendGuideEvent:py(null,"_sendGuideEvent",cy),_stopEvents:!1,_storeInCache:py(null,"_storeInCache",cy),_writeEventImgTag:py(null,"_writeEventImgTag",cy),_writeImgTag:s(py(To,"_writeImgTag",dy)),getUA:py(Te,"getUA",dy),ifDebugThen:py(null,"ifDebugThen",cy),send_event:s(py(ys,"send_event","has changed to pendo.cache.createEvent")),wire_page:py(Ou,"wire_page",dy),messageOriginTester:py(null,"messageOriginTester",cy),findGuideBy:s(Wu),findGuideById:s(N),findStepInGuide:s(Vu),_updateGuideStepStatus:s(tg),_addCloseButton:s(Qf),initialize:sv,getEventCache:s(ym),processEventCache:s(vm),isGuideShown:s(Xf),_getNextStepInMultistep:s(Bg),attachEvent:l,detachEvent:Lu,updateOptions:yl,createLauncher:E.constant({}),initLauncher:E.noop,_addGuideToLauncher:E.noop,launcherToolTipDiv:null,isAnonymousVisitor:(e=t.get_visitor_id())=>xn(e),DEFAULT_VISITOR_ID:On,shouldIdentityChange:E.constant(!1),read:f.read,write:f.write,_delete_cookie:f.clear,_set_cookie:Lt,_get_cookie:Mt,get_cookie_key:$t,ENV:Ge,eventCache:s(Ka),_getOpacityStyles:py(null,"_getOpacityStyles",dy),setStyle:Uo,_createGuideEvent:s(Dg),seenGuide:s(Ng),dismissedGuide:s(Mg),advancedGuide:s(Lg),seenTime:0,placeBadge:s(hh),isBadge:s(Zu),showPreview:s(py(xg,"showPreview",dy)),removeAllBadges:s(fh),tellMaster:za,DEFAULT_TIMER_LENGTH:jp,registerMessageHandler:Ma,_get_offset:s(Ho),_shouldAutoDisplayGuide:E.constant(!1),removeBadge:gh,_showLightboxGuide:E.noop,_showGuide:s(Og),getElementForGuideStep:s(rd),isElementVisible:ca,getTooltipDivId:s(Cg),setupWatchOnTooltip:s(Tg),letters:"",charset:"",detectMaster:Ha,listenToMaster:py(null,"listenToMaster",cy),start:$u,SEND_INTERVAL:Ya,stageGuideEvent:s(jg),startStagedTimer:Gg,isURLValid:es,getURL:ts,_get_screen_dim:s(jo),_isInViewport:s(Bo),_getCss3Prop:Fo,waitThenStartGuides:s(Bp),guidesProcessingThreadHandle:Gp,getMode:E.constant("default")}),E.each(["identify","updateOptions","pageLoad","track"],function(t){var n=i[t];i[t]=function(){try{iv()?n.apply(this,arguments):oe(i,t,arguments)}catch(e){C.critical(e)}}})}var bw,ww,Sw,Iw=le(),_w=function(e){var t=X(e)?{}:window,n=te(document.getElementsByTagName("script"),e.apiKey);let i=e.pendoGlobalKey||"pendo";return n&&(i=n.getAttribute("data-pendo-global-key")||i,e.pendoGlobalKey=i),I=t[i]=t[i]||{}}(Iw);return bw=_w,ce(Iw=Iw),Ge=pe("env")||Ge,je=pe("server")||je,Be=pe("assetHost")||Be,ze=pe("assetPath")||ze,n=pe("designerEnv")||n,n=Ve()?Ge+"_ext":Ge,He=Pe+"_"+n,!X(Iw)&&(n=Iw,Iw=bw,Sw=sh(),se(n,Iw,Sw)||ue(n,Iw,Sw))||bw&&bw.VERSION||(h.get("disablePendo")?(ww=bw,E.each(["initialize","identify","updateOptions","pageLoad","track"],function(e){ww[e]=function(){console.log("Pendo is currently disabled.")}})):((n=g).registerModule("debugger",Zy),n.registerModule("errorLog",xy),n.registerModule("frames",t),n.registerModule("guideUpdate",Ti),n.registerModule("guideState",r),n.registerModule("healthCheck",Mi),n.registerModule("location",e),n.registerModule("monitoring",Wy),n.registerModule("metadata",qy),n.registerModule("preview",Yy),no(),Pd.behaviors=[rh,fy,Nd.Guide,gy,vy,yy,by],$d.behaviors=[rh,Cy,wy,Gd,Nd.Step,Sy,Ty],Gd.reset(),g.dispatch("frames/init"),Ov.init(),Zn.wrapSizzle(yr),yr.intercept(ud),yw(bw),C.addEventListener("log",E.partial(g.dispatch,"errorLog/write")),qm(Xy),qm(sb),qm(vb),qm(Eb),qm(i1),qm(c1),qm(f1),qm(m1),qm(sy),qm(I1),qm(_1),qm(E1),qm(A1),qm(N1),qm(J1),qm(cw),qm(vw),Iw=bw._q,Sw=lv,n=$u,h.get("disableAutoInitialize")||(Iw=(Iw=dv(Iw))&&1<Iw.length?Iw[1]:{},E.get(Iw,ov)||h.get(ov)?Sw():av.push(n(Sw))))),_w}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=[]){return"button"===e.type&&e.actions&&t.push(e),e.children&&e.children.forEach(e=>{lookupGuideButtons(e,t)}),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};const goToRegex=new RegExp(guideMarkdownUtil.goToString),PollBranching={name:"PollBranching",script:function(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:function(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:function(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=ow("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:[ow(e,t)],type:"div"}}(n.id,n.ruleText):null,0!==(i=[i,n].filter(Boolean)).length&&(n=me(ew),r=me(tw),o=me(nw),a=me(iw),s=me(rw),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?aw(sw):c?aw(uw):aw(dw),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)&&_(e,c),u.hide({validationHidden:!0}),null===d.isValid&&!1===c&&(I().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=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=pw[n.type];if(i){n=i(t.value,n.options),i=(c=!!n,I());let e;null===d.isValid?(i.props.style.color=n?"green":"gray",e=aw(n?uw:sw)):(i.props.style.color=n?"green":"red",e=aw(n?uw:dw),_(t,n)),u.hide({stepHidden:!0}),u.show("api");i=document.getElementById("rule-"+d.rules[0].id);i&&i.insertBefore(e,i.firstChild)}}}function I(){return Zd("text-"+d.rules[0].id,u.domJson)}function _(e,t){!1===t?e.setAttribute("data-pendo-field-valid",!1):e.removeAttribute("data-pendo-field-valid")}}();class gw{constructor(e,t,n,i){this.listeners=[],this.latestPromptValue="",this.dom=e.dom,this._=e._,this.q=t.q,this.inputEl=new this.dom.Element(n),this.submitEl=new this.dom.Element(i),this.inputEl.addEventListener("change",e=>{this.capturePromptValue()},!0),this.inputEl.addEventListener("keydown",e=>{e="Enter"===e.code;this.capturePromptValue(e),e&&this.submit(this.latestPromptValue)},!0),this.submitEl.addEventListener("click",()=>{this.submit(this.latestPromptValue)},!0),this.promptContainer=new this.dom.Observer,this.promptContainer.addObservers(this.inputEl,this.submitEl)}submit(t){t&&(this._.each(this.listeners,e=>e(t)),this.latestPromptValue="")}capturePromptValue(e=!1){var t=this.getPromptValue();!t&&e||(this.latestPromptValue=t)}getPromptValue(){return this.inputEl.getText()}onSubmit(e){this.listeners.push(e)}teardown(){this.promptContainer.teardown(),this.inputEl.teardown(),this.submitEl.teardown()}}const mw="_pendoHeaders";class vw{constructor(){this.name="PromptAnalytics",this.configName="aiAgents",this.prompts=[]}initialize(e,t){this.pendo=e,this.api=t,this._=this.pendo._,this.api.ConfigReader.addOption(this.configName,["pendoconfig","snippet"]),this.loadConfig(this.configName).then(e=>this.onConfigLoaded(e))["catch"](()=>{})}loadConfig(e){var{q:t,ConfigReader:n}=this.api,t=t.defer(),e=n.get(e);return t.resolve(e),t.promise}onConfigLoaded(e=[]){var t;e&&this._.isArray(e)&&0!==e.length&&(t=e.filter(e=>"network"===e.trackingMethod),e=e.filter(e=>"network"!==e.trackingMethod),0<t.length&&(this.networkAgents=t,this.patchNetwork(({method:o,url:a,body:s})=>{this.networkAgents.forEach(e=>{let t=null;if(e.privacyFilters)try{t=new RegExp(e.privacyFilters,"gmi")}catch(r){this.api.log.error("Invalid privacy filter for agent",e.id,r)}var n=s||"",i=this.applyPrivacyFilter(n,t);this.api.analytics.collectEvent("prompt",{prompt:i,agentId:e.id,promptType:o,url:a,privacyFilterApplied:i!==n})})})),e.forEach(e=>{this.observePrompt(e)}))}patchNetwork(a){const s=this;s._networkPatched||(s._networkPatched=!0,s._originalSetRequestHeader||(s._originalSetRequestHeader=XMLHttpRequest.prototype.setRequestHeader,XMLHttpRequest.prototype.setRequestHeader=function(e,t){return this[mw]=this[mw]||{},this[mw][e]=t,s._originalSetRequestHeader.apply(this,arguments)}),s._originalFetch=window.fetch,window.fetch=function(...o){return L1(this,void 0,void 0,function*(){var[e,t={}]=o,n=t.method||"GET",i=bw(t.headers),t=yw(t.body);try{a({method:n,url:e,body:t,headers:i})}catch(r){s.api.log.debug("[PromptPlugin] Fetch tracking failed:",r)}return s._originalFetch.apply(this,o)})},s._originalXHROpen=XMLHttpRequest.prototype.open,s._originalXHRSend=XMLHttpRequest.prototype.send,XMLHttpRequest.prototype.open=function(e,t){return this._method=e,this._url=t,s._originalXHROpen.apply(this,arguments)},XMLHttpRequest.prototype.send=function(e){try{var t=ww(this),n=yw(e);a({method:this._method||"GET",url:this._url,body:n,headers:t})}catch(i){s.api.log.debug("[PromptPlugin] XHR tracking failed:",i)}return s._originalXHRSend.apply(this,arguments)})}observePrompt(e){var{id:e,cssSelectors:t,privacyFilters:n}=e,t=(this.setFilters(n),this.agentId=e,n=this.parseCssSelector("input",t),e=this.parseCssSelector("submit",t),new gw(this.pendo,this.api,n,e));t.onSubmit(e=>{this.sendEvent(e)}),this.prompts.push(t)}parseCssSelector(t,e){return this._.find(e,e=>e.type===t).cssSelector}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}sendEvent(e){var t=this.applyPrivacyFilter(e);this.api.analytics.collectEvent("prompt",{prompt:t,agentId:this.agentId,promptType:"request",privacyFilterApplied:e!==t})}applyPrivacyFilter(e,t=null){t=t||this.privacyFilters;return t&&this._.isRegExp(t)?e.replace(t,"redacted"):e}teardown(){this._originalFetch&&(window.fetch=this._originalFetch,this._originalFetch=null),this._originalXHROpen&&(XMLHttpRequest.prototype.open=this._originalXHROpen,XMLHttpRequest.prototype.send=this._originalXHRSend,this._originalXHROpen=null,this._originalXHRSend=null),this._networkPatched=!1,this._.each(this.prompts,e=>e.teardown()),this._originalSetRequestHeader&&(XMLHttpRequest.prototype.setRequestHeader=this._originalSetRequestHeader,this._originalSetRequestHeader=null)}}function yw(e){if(!e)return undefined;if("string"==typeof e)return e;if(e instanceof FormData){var t,n,i={};for([t,n]of e.entries())i[t]=n;return JSON.stringify(i)}try{return JSON.stringify(e)}catch(r){return"[unserializable-body]"}}function bw(e={}){const n={};return e instanceof Headers?e.forEach((e,t)=>{n[t]=e}):"object"==typeof e&&Object.entries(e).forEach(([e,t])=>{n[e]=t}),n}function ww(e){return e[mw]||{}}var Sw=new vw;function Iw(i){var e,t;(e=i).getVersion=qe,e.isReady=sv,e.pageLoad=ou,e.getVisitorId=Un,e.getAccountId=Gn,e.clearSession=zn,e.VERSION=He,e.LOADER=We,e.flushNow=s(function(e){return as(0,e)}),e.teardown=Wn(mv),e.initGuides=s(km),e.loadGuides=s(lm),e.findGuideByName=s(Zu),e.hideGuides=s(sg),e.onGuideDismissed=s(vg),e.goToStep=bg,e.onGuideAdvanced=s(wg),e.onGuidePrevious=s(Sg),e.onGuideSnoozed=yg,e.startGuides=s(Yp),e.stopGuides=s(Xp),e.defaultCssUrl=s(Yf()),e.getActiveGuides=Hu,e.getActiveGuide=zm,e.guideSeenTimeoutLength=ly.getGuideSeenTimeoutLength(),e.guidesPayload=nm,e.areGuidesDisabled=s(Am),e.setGuidesDisabled=s(Rm),e.buildNodeFromJSON=D.buildNodeFromJSON,e.flexElement=s(D.flexElement),e.GuideFactory=s(Ud),e.dom=k,e.getText=ma,e.attachEvent=s(l),e.detactEvent=s(Du),e.frames={setFrameVisibility:fd},e.log=Lv,e.enableLogging=Av,e.disableLogging=Ov,e.setActiveContexts=Gv,e.showLogHistory=Dv,e.getLoggedContexts=Uv,e.isDebuggingEnabled=E.noop,e.enableDebugging=E.noop,e.disableDebugging=E.noop,e.addDebuggingFunctions=E.noop,e.stopSendingEvents=s(ns.lock),e.startSendingEvents=s(ns.unlock),e.isSendingEvents=s(Ro),e.fromByteArray=c.uint8ToBase64,e.events=s(yd),e.track=s(Bv),e.validateInstall=zv,e.validateNativeMethods=Hv,e.validateBuiltInGlobals=Wv,e.validateUrl=qv,e.validateEnvironment=Jv,e.doesExist=ge,e.generate_unique_id=Cn,e.TEMP_PREFIX=wn,e.SIZE_UNIQUE_ID=Sn,e.defaultLauncher=E.noop,e.toggleLauncher=E.noop,e.showLauncher=E.noop,e.hideLauncher=E.noop,e.removeLauncher=E.noop,e.identify=El,e.get_visitor_id=Un,e.set_visitor_id=function(e){El(e)},e.get_account_id=Gn,e.set_account_id=function(e){El(b(),e)},e.getSerializedMetadata=kl,e.compress=et,e.squeezeAndCompress=et,e.randomElement=ot,e.randomString=at,e.toUTF8Array=Ze,e.getNumberFromText=ht,e._addCredits=s(Ig),e.getCurrentUrl=Vg,e.getNormalizedUrl=Vg,e.testUrlForStep=s(Jg),e.showGuideByName=s(Zg),e.showGuideById=s(Yg),e.designerv2=tf,e.P2AutoLaunch=s(wf),e.BuildingBlocks=s(Zv),e.onConnectMessage=E.noop,e.buffers=ns,e.guideDev=s(bv),e.badgesShown=s(Bu),e.get_pendo_cookie=$t,e.DEFAULT_EXPIRE_LEN=jt,e.set_pendo_cookie=zt,e.loadResource=Ta,e.loadWatcher=xa,e.messageLogger=ka,e.messageReceiver=Aa,e.messageValidator=Oa,e.MESSAGE_TYPES=Na,e.messageDispatcher=Pa,e.moduleRegistry=Fa,e.addModule=$a,e.hasModule=s(Da),e.findModuleByName=s(Ua),e.modulesWaiting=Ga,e.loadModules=ja,e.moduleLoader=Ba,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=$e,e.url=A,e.location=uy,e.Sizzle=yr,e._=E,e.ajax=xr,e.Zlib=tt,e.guideContent=s(zd.guideContent),e.receiveDomStructureJson=s(zd.receiveDomStructureJson),e.addExtension=Pl,(t=i).SHADOW_STYLE="",E.extend(t,{_showElementGuide:E.noop,flushEventCache:my(null,"flushEventCache",fy),HOST:Yr,MAX_LENGTH:Xa,MAX_NUM_EVENTS:Ya,_createToolTip:E.noop,_get_tooltip_dimensions:E.noop,_isOldIE:s(my(_e,"_isOldIE",hy)),_logMessage:my(Eo,"_logMessage",hy),_sendEvent:my(null,"_sendEvent",fy),_sendGuideEvent:my(null,"_sendGuideEvent",fy),_stopEvents:!1,_storeInCache:my(null,"_storeInCache",fy),_writeEventImgTag:my(null,"_writeEventImgTag",fy),_writeImgTag:s(my(To,"_writeImgTag",hy)),getUA:my(Te,"getUA",hy),ifDebugThen:my(null,"ifDebugThen",fy),send_event:s(my(Ss,"send_event","has changed to pendo.cache.createEvent")),wire_page:my(Lu,"wire_page",hy),messageOriginTester:my(null,"messageOriginTester",fy),findGuideBy:s(Ju),findGuideById:s(N),findStepInGuide:s(Yu),_updateGuideStepStatus:s(og),_addCloseButton:s(ig),initialize:lv,getEventCache:s(Im),processEventCache:s(Sm),isGuideShown:s(ng),_getNextStepInMultistep:s(qg),attachEvent:l,detachEvent:Du,updateOptions:_l,createLauncher:E.constant({}),initLauncher:E.noop,_addGuideToLauncher:E.noop,launcherToolTipDiv:null,isAnonymousVisitor:(e=t.get_visitor_id())=>xn(e),DEFAULT_VISITOR_ID:On,shouldIdentityChange:E.constant(!1),read:h.read,write:h.write,_delete_cookie:h.clear,_set_cookie:Lt,_get_cookie:Mt,get_cookie_key:Ft,ENV:Ge,eventCache:s(Ka),_getOpacityStyles:my(null,"_getOpacityStyles",hy),setStyle:Uo,_createGuideEvent:s(Bg),seenGuide:s(Fg),dismissedGuide:s($g),advancedGuide:s(Dg),seenTime:0,placeBadge:s(yh),isBadge:s(td),showPreview:s(my(Rg,"showPreview",hy)),removeAllBadges:s(bh),tellMaster:za,DEFAULT_TIMER_LENGTH:qp,registerMessageHandler:Ma,_get_offset:s(Ho),_shouldAutoDisplayGuide:E.constant(!1),removeBadge:wh,_showLightboxGuide:E.noop,_showGuide:s(Lg),getElementForGuideStep:s(ud),isElementVisible:ca,getTooltipDivId:s(Ag),setupWatchOnTooltip:s(Og),letters:"",charset:"",detectMaster:Ha,listenToMaster:my(null,"listenToMaster",fy),start:Gu,SEND_INTERVAL:Za,stageGuideEvent:s(Wg),startStagedTimer:Hg,isURLValid:es,getURL:ts,_get_screen_dim:s(jo),_isInViewport:s(Bo),_getCss3Prop:$o,waitThenStartGuides:s(Vp),guidesProcessingThreadHandle:Wp,getMode:E.constant("default")}),E.each(["identify","updateOptions","pageLoad","track"],function(t){var n=i[t];i[t]=function(){try{sv()?n.apply(this,arguments):oe(i,t,arguments)}catch(e){C.critical(e)}}})}var _w,Ew,Cw,Tw=le(),xw=function(e){var t=X(e)?{}:window,n=te(document.getElementsByTagName("script"),e.apiKey);let i=e.pendoGlobalKey||"pendo";return n&&(i=n.getAttribute("data-pendo-global-key")||i,e.pendoGlobalKey=i),I=t[i]=t[i]||{}}(Tw);return _w=xw,ce(Tw=Tw),Ge=pe("env")||Ge,je=pe("server")||je,Be=pe("assetHost")||Be,ze=pe("assetPath")||ze,n=pe("designerEnv")||n,n=Ve()?Ge+"_ext":Ge,He=Pe+"_"+n,!X(Tw)&&(n=Tw,Tw=_w,Cw=ph(),se(n,Tw,Cw)||ue(n,Tw,Cw))||_w&&_w.VERSION||(f.get("disablePendo")?(Ew=_w,E.each(["initialize","identify","updateOptions","pageLoad","track"],function(e){Ew[e]=function(){console.log("Pendo is currently disabled.")}})):((n=g).registerModule("debugger",tb),n.registerModule("errorLog",Ry),n.registerModule("frames",t),n.registerModule("guideUpdate",Ti),n.registerModule("guideState",r),n.registerModule("healthCheck",Mi),n.registerModule("location",e),n.registerModule("monitoring",Jy),n.registerModule("metadata",Zy),n.registerModule("preview",eb),no(),Ud.behaviors=[dh,yy,Fd.Guide,by,Sy,Iy,_y],Gd.behaviors=[dh,Ay,Ey,Hd,Fd.Step,Cy,Oy],Hd.reset(),g.dispatch("frames/init"),Lv.init(),Yn.wrapSizzle(yr),yr.intercept(pd),Iw(_w),C.addEventListener("log",E.partial(g.dispatch,"errorLog/write")),Zm(nb),Zm(lb),Zm(Sb),Zm(kb),Zm(s1),Zm(f1),Zm(y1),Zm(w1),Zm(ly),Zm(T1),Zm(x1),Zm(k1),Zm(M1),Zm(F1),Zm(Q1),Zm(fw),Zm(Sw),Tw=_w._q,Cw=gv,n=Gu,f.get("disableAutoInitialize")||(Tw=(Tw=hv(Tw))&&1<Tw.length?Tw[1]:{},E.get(Tw,dv)||f.get(dv)?Cw():cv.push(n(Cw))))),xw}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=[]){return"button"===e.type&&e.actions&&t.push(e),e.children&&e.children.forEach(e=>{lookupGuideButtons(e,t)}),t}function removeMarkdownSyntax(e,t,n,i){var r;i.dom(e).hasClass("_pendo-nps-open-text-poll-question")&&(e.innerHTML=null==(r=e.innerHTML)?void 0:r.replace(t,n)),"div"===e.localName||("button"!==e.localName&&"label"!==e.localName&&"a"!==e.localName||(e.textContent=e.textContent.replace(t,n)),0<e.children.length)||(i.dom(e).hasClass("_pendo-simple-text")||i.dom(e).hasClass("_pendo-text-plain")||i.dom(e).hasClass("_pendo-text-list-item")||i.dom(e).hasClass("_pendo-text-link"))&&(e.textContent=e.textContent.replace(t,n))}var guideMarkdownUtil={substitutionRegex:substitutionRegex,skipStepString:skipStepString,goToString:goToString,lookupGuideButtons:lookupGuideButtons,removeMarkdownSyntax:removeMarkdownSyntax};function getZoneSafeMethod(e,t,n=window){var i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}const goToRegex=new RegExp(guideMarkdownUtil.goToString),PollBranching={name:"PollBranching",script:function(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:function(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:function(i){var e=i.dom.getBody();function r(e,t){return`<svg id="pendo-ps-branching-svg" viewBox="0 0 24 24" fill="none"
39
37
  style="margin-left: 5px;
40
38
  height:${t}; width:${t}; display:inline; vertical-align:middle;" xmlns="http://www.w3.org/2000/svg">
41
39
  <g stroke-width="0"></g>
@@ -50,10 +48,10 @@ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{
50
48
  stroke-linecap="round" stroke-linejoin="round"></path>
51
49
  <path d="M7 7V7C8.65685 7 10 8.34315 10 10V15C10 16.1046 10.8954 17 12 17H18"
52
50
  stroke="${e}" stroke-width="2" stroke-linecap="round"
53
- stroke-linejoin="round"></path> </g></svg>`}new MutationObserver(function(e){e.forEach(function(e){var t=i._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelector);e.addedNodes.length&&t&&e.addedNodes[0].querySelector("._pendo-multi-choice-poll-select-border")&&i._.size(i.dom('._pendo-multi-choice-poll-question:contains("{branching/}")'))&&i.dom('._pendo-multi-choice-poll-question:contains("{branching/}")').each((e,t)=>{i._.each(i.dom(`#${e.id} *`),e=>{guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","",i)}),i.dom(`#${e.id} p`).css({display:"inline-block !important"}).append(r("#999","20px")).attr({title:"Custom Branching Added"});var n=e.getAttribute("data-pendo-poll-id"),n=(i.dom(`._pendo-multi-choice-poll-question[data-pendo-poll-id=${n}]`)[0]&&i.dom(`._pendo-multi-choice-poll-question[data-pendo-poll-id=${n}]`)[0].textContent.trim(),i.dom(`label[for*=${n}]`));i._.size(n)&&i._.forEach(n,e=>{var t;goToRegex.test(e.textContent)&&(t=goToRegex.exec(e.textContent)[2],guideMarkdownUtil.removeMarkdownSyntax(e,goToRegex,"",i),i.dom(e).append(r("#999","14px")).attr({title:"Branching to step "+t}))}),0<t&&(i.dom(e).append(`<div style="text-align:lrft; font-size: 14px; color: red;
51
+ stroke-linejoin="round"></path> </g></svg>`}new(getZoneSafeMethod(i._,"MutationObserver"))(function(e){e.forEach(function(e){var t=i._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelector);e.addedNodes.length&&t&&e.addedNodes[0].querySelector("._pendo-multi-choice-poll-select-border")&&i._.size(i.dom('._pendo-multi-choice-poll-question:contains("{branching/}")'))&&i.dom('._pendo-multi-choice-poll-question:contains("{branching/}")').each((e,t)=>{i._.each(i.dom(`#${e.id} *`),e=>{guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","",i)}),i.dom(`#${e.id} p`).css({display:"inline-block !important"}).append(r("#999","20px")).attr({title:"Custom Branching Added"});var n=e.getAttribute("data-pendo-poll-id"),n=(i.dom(`._pendo-multi-choice-poll-question[data-pendo-poll-id=${n}]`)[0]&&i.dom(`._pendo-multi-choice-poll-question[data-pendo-poll-id=${n}]`)[0].textContent.trim(),i.dom(`label[for*=${n}]`));i._.size(n)&&i._.forEach(n,e=>{var t;goToRegex.test(e.textContent)&&(t=goToRegex.exec(e.textContent)[2],guideMarkdownUtil.removeMarkdownSyntax(e,goToRegex,"",i),i.dom(e).append(r("#999","14px")).attr({title:"Branching to step "+t}))}),0<t&&(i.dom(e).append(`<div style="text-align:lrft; font-size: 14px; color: red;
54
52
  font-style: italic; margin-top: 0px;" class="branching-wrapper"
55
53
  name="${e.dataset.pendoPollId}">
56
- * Branching Error: Multiple branching polls not supported</div>`),i.dom(`#${e.id} #pendo-ps-branching-svg`).remove(),i.dom(`#${e.id} p`).css({display:"inline-block !important"}).append(r("red","20px")).attr({title:"Unsupported Branching configuration"}))})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function initialBranchingSetup(n,i){var e=n.guideElement.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return i._.forEach(e,e=>{var t=e.getAttribute("data-pendo-poll-id"),e=(i._.each(n.guideElement.find(`#${e.id} *`),e=>{guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","",i)}),n.guideElement.find(`label[for*=${t}]`)),e=(i._.forEach(e,e=>{var t,n;i._.isNull(goToRegex.exec(e.textContent))||(t=goToRegex.exec(e.textContent)[1],n=goToRegex.exec(e.textContent)[2],e.setAttribute("goToStep",n),guideMarkdownUtil.removeMarkdownSyntax(e,t,"",i))}),n.guideElement.find(`[data-pendo-poll-id=${t}]._pendo-multi-choice-poll-select-border`));e&&e.length&&e[0].setAttribute("branching","")}),e}function branchingGoToStep(e,t,n,i){var r=null==(r=t.guideElement.find("[branching] input.pendo-radio[data-pendo-poll-id]:checked")[0])?void 0:r.id,r=t.guideElement.find(`label[for="${r}"]`)[0],t=(null==r?void 0:r.getAttribute("goToStep"))-1;t<0||(r={destinationStepId:n.steps[t].id},i.goToStep(r),e.cancel=!0)}const containerSelector='[id^="pendo-guide-container"]',MetadataSubstitution={name:"MetadataSubstitution",script:function(e,t,n){var i=findSubstitutableElements(n);e.domJson&&findSubstitutableUrlsInJson(e.domJson,i,n),n._.size(i)&&(n._.each(i,function(e){processPlaceholder(e,n)}),updateGuideContainer("pendo-g-"+e.id,e.guideElement,n))},designerListener:function(i){var e=i.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t,n;e.addedNodes.length&&document.querySelector(containerSelector)&&(e=findSubstitutableElements(i),t=null==(t=i.designerv2.currentlyPreviewedGuide)?void 0:t.steps[0])&&(n=t.buildingBlocks,i._.isUndefined(n)||findSubstitutableUrlsInJson(n,e,i),i._.size(e))&&(i._.each(e,function(e){i._.isUndefined(e)||processPlaceholder(e,i)}),updateGuideContainer("pendo-g-"+t.id,t.guideElement,i))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function processPlaceholder(e,t){for(var{data:n,target:i}=e,r=new RegExp(guideMarkdownUtil.substitutionRegex);o=matchPlaceholder(e,r);){var o=r.exec(o);substituteMetadataByTarget(n,i,getSubstituteValue(o,t),o)}}function matchPlaceholder(e,t){return("textContent"===e.target?e.data[e.target]:decodeURI(e.data[e.target])).match(t)}function getSubstituteValue(e,t){if(!t._.isUndefined(e[1])&&!t._.isUndefined(e[2])){var n=e[1],i=e[2],e=e[3];if(!t._.isUndefined(n)&&!t._.isUndefined(i))return t._.get(t.getSerializedMetadata(),n+"."+i)||e||""}}function substituteMetadataByTarget(e,t,n,i){e[t]="href"===t||"value"===t?decodeURI(e[t]).replace(i[0],window.encodeURI(n)):e[t].replace(i[0],n)}function updateGuideContainer(e,t,n){n.designer&&!n._.size(n.dom("#pendo-ps-substitution-icon"))&&n.dom(containerSelector).append(substitutionIcon("#999","30px")),n.flexElement(n.dom(containerSelector)),n.BuildingBlocks.BuildingBlockGuides.recalculateGuideHeight(e,t)}function findSubstitutableUrlsInJson(e,t=[],n){var i=new RegExp(guideMarkdownUtil.substitutionRegex);return"url"!==e.name&&"href"!==e.name||!e.value||i.test(e.value)&&t.push({data:e,target:"value"}),e.properties&&"href_link_block"===e.id&&n._.each(e.properties,e=>{findSubstitutableUrlsInJson(e,t,n)}),e.views&&n._.each(e.views,e=>{findSubstitutableUrlsInJson(e,t,n)}),e.parameters&&n._.each(e.parameters,e=>{findSubstitutableUrlsInJson(e,t,n)}),e.actions&&n._.each(e.actions,e=>{findSubstitutableUrlsInJson(e,t,n)}),e.children&&n._.each(e.children,e=>{findSubstitutableUrlsInJson(e,t,n)}),t}function findSubstitutableElements(n){var e=n.dom(containerSelector+" *:not(.pendo-inline-ui)");return n._.chain(e).filter(function(e){var t=new RegExp(guideMarkdownUtil.substitutionRegex);return"a"===e.localName?t.test(decodeURI(e.href))||t.test(e.textContent):"div"!==e.localName?"button"===e.localName||"label"===e.localName?t.test(e.textContent):0<e.children.length?void 0:n.dom(e).hasClass("_pendo-simple-text")||n.dom(e).hasClass("_pendo-text-plain")||n.dom(e).hasClass("_pendo-text-list-item")||n.dom(e).hasClass("_pendo-text-link")?t.test(e.textContent):t.test(e.textContent)||t.test(decodeURI(e.href)):void 0}).map(function(e){return"a"===e.localName&&n.dom(e).hasClass("_pendo-text-link")?[{data:e,target:"href"},{data:e,target:"textContent"}]:"a"===e.localName?{data:e,target:"href"}:"button"===e.localName||n.dom(e).hasClass("_pendo-simple-text")||n.dom(e).hasClass("_pendo-text-plain")||n.dom(e).hasClass("_pendo-text-list-item")||n.dom(e).hasClass("_pendo-text-link")?{data:e,target:"textContent"}:void 0}).flatten().value()}function substitutionIcon(e,t){return`<div title="Metadata Substitution added">
54
+ * Branching Error: Multiple branching polls not supported</div>`),i.dom(`#${e.id} #pendo-ps-branching-svg`).remove(),i.dom(`#${e.id} p`).css({display:"inline-block !important"}).append(r("red","20px")).attr({title:"Unsupported Branching configuration"}))})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function initialBranchingSetup(n,i){var e=n.guideElement.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return i._.forEach(e,e=>{var t=e.getAttribute("data-pendo-poll-id"),e=(i._.each(n.guideElement.find(`#${e.id} *`),e=>{guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","",i)}),n.guideElement.find(`label[for*=${t}]`)),e=(i._.forEach(e,e=>{var t,n;i._.isNull(goToRegex.exec(e.textContent))||(t=goToRegex.exec(e.textContent)[1],n=goToRegex.exec(e.textContent)[2],e.setAttribute("goToStep",n),guideMarkdownUtil.removeMarkdownSyntax(e,t,"",i))}),n.guideElement.find(`[data-pendo-poll-id=${t}]._pendo-multi-choice-poll-select-border`));e&&e.length&&e[0].setAttribute("branching","")}),e}function branchingGoToStep(e,t,n,i){var r=null==(r=t.guideElement.find("[branching] input.pendo-radio[data-pendo-poll-id]:checked")[0])?void 0:r.id,r=t.guideElement.find(`label[for="${r}"]`)[0],t=(null==r?void 0:r.getAttribute("goToStep"))-1;t<0||(r={destinationStepId:n.steps[t].id},i.goToStep(r),e.cancel=!0)}const containerSelector='[id^="pendo-guide-container"]',MetadataSubstitution={name:"MetadataSubstitution",script:function(e,t,n){var i=findSubstitutableElements(n);e.domJson&&findSubstitutableUrlsInJson(e.domJson,i,n),n._.size(i)&&(n._.each(i,function(e){processPlaceholder(e,n)}),updateGuideContainer("pendo-g-"+e.id,e.guideElement,n))},designerListener:function(i){var e=i.dom.getBody();new(getZoneSafeMethod(i._,"MutationObserver"))(function(e){e.forEach(function(e){var t,n;e.addedNodes.length&&document.querySelector(containerSelector)&&(e=findSubstitutableElements(i),t=null==(t=i.designerv2.currentlyPreviewedGuide)?void 0:t.steps[0])&&(n=t.buildingBlocks,i._.isUndefined(n)||findSubstitutableUrlsInJson(n,e,i),i._.size(e))&&(i._.each(e,function(e){i._.isUndefined(e)||processPlaceholder(e,i)}),updateGuideContainer("pendo-g-"+t.id,t.guideElement,i))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function processPlaceholder(e,t){for(var{data:n,target:i}=e,r=new RegExp(guideMarkdownUtil.substitutionRegex);o=matchPlaceholder(e,r);){var o=r.exec(o);substituteMetadataByTarget(n,i,getSubstituteValue(o,t),o)}}function matchPlaceholder(e,t){return("textContent"===e.target?e.data[e.target]:decodeURI(e.data[e.target])).match(t)}function getSubstituteValue(e,t){if(!t._.isUndefined(e[1])&&!t._.isUndefined(e[2])){var n=e[1],i=e[2],e=e[3];if(!t._.isUndefined(n)&&!t._.isUndefined(i))return t._.get(t.getSerializedMetadata(),n+"."+i)||e||""}}function substituteMetadataByTarget(e,t,n,i){e[t]="href"===t||"value"===t?decodeURI(e[t]).replace(i[0],window.encodeURI(n)):e[t].replace(i[0],n)}function updateGuideContainer(e,t,n){n.designer&&!n._.size(n.dom("#pendo-ps-substitution-icon"))&&n.dom(containerSelector).append(substitutionIcon("#999","30px")),n.flexElement(n.dom(containerSelector)),n.BuildingBlocks.BuildingBlockGuides.recalculateGuideHeight(e,t)}function findSubstitutableUrlsInJson(e,t=[],n){var i=new RegExp(guideMarkdownUtil.substitutionRegex);return"url"!==e.name&&"href"!==e.name||!e.value||i.test(e.value)&&t.push({data:e,target:"value"}),e.properties&&"href_link_block"===e.id&&n._.each(e.properties,e=>{findSubstitutableUrlsInJson(e,t,n)}),e.views&&n._.each(e.views,e=>{findSubstitutableUrlsInJson(e,t,n)}),e.parameters&&n._.each(e.parameters,e=>{findSubstitutableUrlsInJson(e,t,n)}),e.actions&&n._.each(e.actions,e=>{findSubstitutableUrlsInJson(e,t,n)}),e.children&&n._.each(e.children,e=>{findSubstitutableUrlsInJson(e,t,n)}),t}function findSubstitutableElements(n){var e=n.dom(containerSelector+" *:not(.pendo-inline-ui)");return n._.chain(e).filter(function(e){var t=new RegExp(guideMarkdownUtil.substitutionRegex);return"a"===e.localName?t.test(decodeURI(e.href))||t.test(e.textContent):"div"!==e.localName?"button"===e.localName||"label"===e.localName?t.test(e.textContent):0<e.children.length?void 0:n.dom(e).hasClass("_pendo-simple-text")||n.dom(e).hasClass("_pendo-text-plain")||n.dom(e).hasClass("_pendo-text-list-item")||n.dom(e).hasClass("_pendo-text-link")?t.test(e.textContent):t.test(e.textContent)||t.test(decodeURI(e.href)):void 0}).map(function(e){return"a"===e.localName&&n.dom(e).hasClass("_pendo-text-link")?[{data:e,target:"href"},{data:e,target:"textContent"}]:"a"===e.localName?{data:e,target:"href"}:"button"===e.localName||n.dom(e).hasClass("_pendo-simple-text")||n.dom(e).hasClass("_pendo-text-plain")||n.dom(e).hasClass("_pendo-text-list-item")||n.dom(e).hasClass("_pendo-text-link")?{data:e,target:"textContent"}:void 0}).flatten().value()}function substitutionIcon(e,t){return`<div title="Metadata Substitution added">
57
55
  <svg id="pendo-ps-substitution-icon" viewBox="0 0 24 24"
58
56
  preserveAspectRatio="xMidYMid meet"
59
57
  height=${t} width=${t} title="Metadata Substitution"
@@ -93,7 +91,7 @@ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{
93
91
  [data-pendo-poll-id=${e}] textarea,
94
92
  [data-pendo-poll-id=${e}] input:text,
95
93
  [data-pendo-poll-id=${e}] select,
96
- [data-pendo-poll-id=${e}] input:radio:checked`);if(e&&e.length&&e[0].value)return e[0].value})),(e=t.includes(undefined)||r._.isEmpty(t)?!1:e)?o.forEach(function(e){i.guideElement.find("#"+e.props.id)[0]&&(i.guideElement.find("#"+e.props.id)[0].disabled=!1,i.guideElement.find("#"+e.props.id)[0].parentElement.title="")}):u(o)}}function u(e){e.forEach(function(e){i.guideElement.find("#"+e.props.id)[0]&&(i.guideElement.find("#"+e.props.id)[0].disabled=!0,i.guideElement.find("#"+e.props.id)[0].parentElement.title="Please complete all required questions.")})}a&&(r._.forEach(a,e=>{e.classList.contains("_pendo-open-text-poll-question")&&(e=e.dataset.pendoPollId,i.attachEvent(i.guideElement.find(`[data-pendo-poll-id=${e}]._pendo-open-text-poll-input`)[0],"input",function(){s(a)}))}),i.attachEvent(i.guideElement.find("#pendo-guide-container")[0],"click",function(e){e.target.classList.contains("_pendo-button")||s(a)}))},test:function(e,t,n){e=null==(e=e.guideElement)?void 0:e.find("[class*=-poll-question]:contains({required/})");return!n._.isUndefined(e)&&n._.size(e)},designerListener:function(i){var e=i.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t=i._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelectorAll);e.addedNodes.length&&t&&(t=e.addedNodes[0].querySelectorAll("[class*=-poll-wrapper], [class*=-poll-select-border]"))&&t.forEach(function(e){let t;t=e.classList.contains("_pendo-open-text-poll-wrapper")||e.classList.contains("_pendo-number-scale-poll-wrapper")?e.getAttribute("name"):e.getAttribute("data-pendo-poll-id");let n;(n=i.dom(`[class*="-poll-question"][data-pendo-poll-id=${t}]`)[0]?i.dom(`[class*="-poll-question"][data-pendo-poll-id=${t}]`)[0].textContent:n).includes("{required/}")&&(i._.each(i.dom(`[data-pendo-poll-id=${t}]:not(.pendo-radio)`),e=>{i._.each(i.dom(`#${e.id} *:not(".pendo-radio"), #${e.id}:not(".pendo-radio")`),e=>{guideMarkdownUtil.removeMarkdownSyntax(e,"{required/}","",i)})}),(0!==i.dom(`.bb-text[data-pendo-poll-id=${t}] p`).length||0!==i.dom(`.bb-text[data-pendo-poll-id=${t}] li`).length?(i.dom(`.bb-text[data-pendo-poll-id=${t}] p`).append(requiredElement),i.dom(`.bb-text[data-pendo-poll-id=${t}] li`)):i.dom(`.bb-text[data-pendo-poll-id=${t}]`)).append(requiredElement))})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}},skipStepRegex=new RegExp(guideMarkdownUtil.skipStepString),SkipToEligibleStep={script:function(i,r,o){let n=!1,a=!1;var e=i.guideElement.find("#pendo-guide-container"),t=e.attr("aria-label");let s=skipStepRegex.exec(t)[1];function u(e,t){var n=d(r.getPositionOfStep(i),"next",e),e=d(r.getPositionOfStep(i)-2,"previous",e);return n&&"next"==t&&o.goToStep({destinationStepId:n}),e&&"previous"==t&&o.goToStep({destinationStepId:e}),"next"===t?n:e}function d(e,t,n){var i;if(!o._.isNaN(e))return(i=r.steps[e])&&!i.canShow()?"auto"!==n?r.steps[n-1]:"next"===t?d(e+1,"next",n):d(e-1,"previous",n):i}e&&e.attr({"aria-label":e.attr("aria-label").replace(skipStepRegex,"")}),this.on("beforeAdvance",e=>{var t;r.getPositionOfStep(i)===r.steps.length||o._.isUndefined(s)||(t=u(s,"next"),!n&&s&&(n=!0,o.goToStep({destinationStepId:t.id}),e.cancel=!0))}),this.on("beforePrevious",e=>{var t;o._.isUndefined(s)||(t=u(s,"previous"),!a&&s&&(a=!0,o.goToStep({destinationStepId:t.id}),e.cancel=!0))})},test:function(e,t,n){e=null==(e=e.guideElement)?void 0:e.find("#pendo-guide-container").attr("aria-label");return!n._.isUndefined(e)&&(null==e?void 0:e.includes("{skipStep"))},designerListener:function(n){var e=n.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t=n._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelectorAll);e.addedNodes.length&&t&&(e=null==(t=e.addedNodes[0].querySelectorAll("#pendo-guide-container")[0])?void 0:t.getAttribute("aria-label"))&&e.match(skipStepRegex)&&(t=e.match(skipStepRegex)[0],e.replace(t,""),n.dom("#_pendoSkipIcon").length||n.dom("#pendo-guide-container").append(`<div title="Skip step added"><svg id="_pendoSkipIcon" version="1.0" xmlns="http://www.w3.org/2000/svg"
94
+ [data-pendo-poll-id=${e}] input:radio:checked`);if(e&&e.length&&e[0].value)return e[0].value})),(e=t.includes(undefined)||r._.isEmpty(t)?!1:e)?o.forEach(function(e){i.guideElement.find("#"+e.props.id)[0]&&(i.guideElement.find("#"+e.props.id)[0].disabled=!1,i.guideElement.find("#"+e.props.id)[0].parentElement.title="")}):u(o)}}function u(e){e.forEach(function(e){i.guideElement.find("#"+e.props.id)[0]&&(i.guideElement.find("#"+e.props.id)[0].disabled=!0,i.guideElement.find("#"+e.props.id)[0].parentElement.title="Please complete all required questions.")})}a&&(r._.forEach(a,e=>{e.classList.contains("_pendo-open-text-poll-question")&&(e=e.dataset.pendoPollId,i.attachEvent(i.guideElement.find(`[data-pendo-poll-id=${e}]._pendo-open-text-poll-input`)[0],"input",function(){s(a)}))}),i.attachEvent(i.guideElement.find("#pendo-guide-container")[0],"click",function(e){e.target.classList.contains("_pendo-button")||s(a)}))},test:function(e,t,n){e=null==(e=e.guideElement)?void 0:e.find("[class*=-poll-question]:contains({required/})");return!n._.isUndefined(e)&&n._.size(e)},designerListener:function(i){var e=i.dom.getBody();new(getZoneSafeMethod(i._,"MutationObserver"))(function(e){e.forEach(function(e){var t=i._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelectorAll);e.addedNodes.length&&t&&(t=e.addedNodes[0].querySelectorAll("[class*=-poll-wrapper], [class*=-poll-select-border]"))&&t.forEach(function(e){let t;t=e.classList.contains("_pendo-open-text-poll-wrapper")||e.classList.contains("_pendo-number-scale-poll-wrapper")?e.getAttribute("name"):e.getAttribute("data-pendo-poll-id");let n;(n=i.dom(`[class*="-poll-question"][data-pendo-poll-id=${t}]`)[0]?i.dom(`[class*="-poll-question"][data-pendo-poll-id=${t}]`)[0].textContent:n).includes("{required/}")&&(i._.each(i.dom(`[data-pendo-poll-id=${t}]:not(.pendo-radio)`),e=>{i._.each(i.dom(`#${e.id} *:not(".pendo-radio"), #${e.id}:not(".pendo-radio")`),e=>{guideMarkdownUtil.removeMarkdownSyntax(e,"{required/}","",i)})}),(0!==i.dom(`.bb-text[data-pendo-poll-id=${t}] p`).length||0!==i.dom(`.bb-text[data-pendo-poll-id=${t}] li`).length?(i.dom(`.bb-text[data-pendo-poll-id=${t}] p`).append(requiredElement),i.dom(`.bb-text[data-pendo-poll-id=${t}] li`)):i.dom(`.bb-text[data-pendo-poll-id=${t}]`)).append(requiredElement))})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}},skipStepRegex=new RegExp(guideMarkdownUtil.skipStepString),SkipToEligibleStep={script:function(i,r,o){let n=!1,a=!1;var e=i.guideElement.find("#pendo-guide-container"),t=e.attr("aria-label");let s=skipStepRegex.exec(t)[1];function u(e,t){var n=d(r.getPositionOfStep(i),"next",e),e=d(r.getPositionOfStep(i)-2,"previous",e);return n&&"next"==t&&o.goToStep({destinationStepId:n}),e&&"previous"==t&&o.goToStep({destinationStepId:e}),"next"===t?n:e}function d(e,t,n){var i;if(!o._.isNaN(e))return(i=r.steps[e])&&!i.canShow()?"auto"!==n?r.steps[n-1]:"next"===t?d(e+1,"next",n):d(e-1,"previous",n):i}e&&e.attr({"aria-label":e.attr("aria-label").replace(skipStepRegex,"")}),this.on("beforeAdvance",e=>{var t;r.getPositionOfStep(i)===r.steps.length||o._.isUndefined(s)||(t=u(s,"next"),!n&&s&&(n=!0,o.goToStep({destinationStepId:t.id}),e.cancel=!0))}),this.on("beforePrevious",e=>{var t;o._.isUndefined(s)||(t=u(s,"previous"),!a&&s&&(a=!0,o.goToStep({destinationStepId:t.id}),e.cancel=!0))})},test:function(e,t,n){e=null==(e=e.guideElement)?void 0:e.find("#pendo-guide-container").attr("aria-label");return!n._.isUndefined(e)&&(null==e?void 0:e.includes("{skipStep"))},designerListener:function(n){var e=n.dom.getBody();new(getZoneSafeMethod(n._,"MutationObserver"))(function(e){e.forEach(function(e){var t=n._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelectorAll);e.addedNodes.length&&t&&(e=null==(t=e.addedNodes[0].querySelectorAll("#pendo-guide-container")[0])?void 0:t.getAttribute("aria-label"))&&e.match(skipStepRegex)&&(t=e.match(skipStepRegex)[0],e.replace(t,""),n.dom("#_pendoSkipIcon").length||n.dom("#pendo-guide-container").append(`<div title="Skip step added"><svg id="_pendoSkipIcon" version="1.0" xmlns="http://www.w3.org/2000/svg"
97
95
  width="${t="30px"}" height="${t}" viewBox="0 0 512.000000 512.000000"
98
96
  preserveAspectRatio="xMidYMid meet" style="bottom:5px; right:10px; position: absolute;">
99
97
  <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"
@@ -111,14 +109,14 @@ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{
111
109
  <path d="M2880 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>
112
110
  <path d="M3840 1440 l0 -160 480 0 480 0 0 160 0 160 -480 0 -480 0 0 -160z"/>
113
111
  </g></svg></div>
114
- `.trim()))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function GuideMarkdown(){let r,o,a;return{name:"GuideMarkdown",initialize:function(e,t){a=e;var n=(o=t).ConfigReader,i="guideMarkdown",i=(n.addOption(i,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),n.get(i));i&&(r=[PollBranching,MetadataSubstitution,RequiredQuestions,SkipToEligibleStep],e.designer||r.forEach(e=>{t.GlobalRuntime.addGlobalScript(e)}),t.Events.on("designerLaunched",s))},teardown:function(){o.Events.off("designerLaunched",s),r.forEach(e=>{o.GlobalRuntime.removeGlobalScript(e)})}};function s(){r.forEach(e=>{e.designerListener&&e.designerListener(a,o)})}}var setTimeout=safeBind(window.setTimeout,window);function safeBind(e,t){return"function"==typeof e.bind?e.bind(t):e}var setTimeout$1=setTimeout=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 safeBind(e[t],e)}(window),Promise$3=window.Promise,Promise$4=Promise$3=function(e){var t=window.Promise;return"function"==typeof t&&/native/.test(t)?t:e()}(function(){var t=setTimeout$1;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 isObject$8(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1=isObject$8,freeGlobal$1="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root$9=freeGlobal||freeSelf||Function("return this")(),_root=root$9,root$8=_root,now$1=function(){return root$8.Date.now()},now_1=now$1,reWhitespace=/\s/;function trimmedEndIndex$1(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=trimmedEndIndex$1,reTrimStart=/^\s+/;function baseTrim$1(e){return e&&e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,root$7=_root,Symbol$6=_root.Symbol,_Symbol=Symbol$6,Symbol$5=_Symbol,objectProto$d=Object.prototype,hasOwnProperty$a=objectProto$d.hasOwnProperty,nativeObjectToString$1=objectProto$d.toString,symToStringTag$1=Symbol$5?Symbol$5.toStringTag:undefined;function getRawTag$1(e){var t=hasOwnProperty$a.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=undefined;var i=!0}catch(o){}var r=nativeObjectToString$1.call(e);return i&&(t?e[symToStringTag$1]=n:delete e[symToStringTag$1]),r}var _getRawTag=getRawTag$1,objectProto$c=Object.prototype,nativeObjectToString=objectProto$c.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$4=_Symbol,getRawTag=_getRawTag,objectToString=objectToString$1,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=_Symbol?_Symbol.toStringTag:undefined;function baseGetTag$6(e){return null==e?e===undefined?undefinedTag:nullTag:(symToStringTag&&symToStringTag in Object(e)?getRawTag:objectToString)(e)}var _baseGetTag=baseGetTag$6;function isObjectLike$7(e){return null!=e&&"object"==typeof e}var isObjectLike_1=isObjectLike$7,baseGetTag$5=_baseGetTag,isObjectLike$6=isObjectLike_1,symbolTag$2="[object Symbol]";function isSymbol$4(e){return"symbol"==typeof e||isObjectLike$6(e)&&baseGetTag$5(e)==symbolTag$2}var isSymbol_1=isSymbol$4,baseTrim=_baseTrim,isObject$7=isObject_1,isSymbol$3=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(e){if("number"==typeof e)return e;if(isSymbol$3(e))return NAN;if(isObject$7(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=isObject$7(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=baseTrim(e);var t=reIsBinary.test(e);return t||reIsOctal.test(e)?freeParseInt(e.slice(2),t?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$1,isObject$6=isObject_1,now=now_1,toNumber=toNumber$1,FUNC_ERROR_TEXT$2="Expected a function",nativeMax$1=Math.max,nativeMin=Math.min;function debounce$1(i,n,e){var r,o,a,s,u,d,c=0,l=!1,p=!1,t=!0;if("function"!=typeof i)throw new TypeError(FUNC_ERROR_TEXT$2);function h(e){var t=r,n=o;return r=o=undefined,c=e,s=i.apply(n,t)}function f(e){var t=e-d;return d===undefined||n<=t||t<0||p&&a<=e-c}function g(){var e,t=now();if(f(t))return m(t);u=setTimeout$1(g,(e=n-((t=t)-d),p?nativeMin(e,a-(t-c)):e))}function m(e){return u=undefined,t&&r?h(e):(r=o=undefined,s)}function v(){var e=now(),t=f(e);if(r=arguments,o=this,d=e,t){if(u===undefined)return c=e=d,u=setTimeout$1(g,n),l?h(e):s;if(p)return clearTimeout(u),u=setTimeout$1(g,n),h(d)}return u===undefined&&(u=setTimeout$1(g,n)),s}return n=toNumber(n)||0,isObject$6(e)&&(l=!!e.leading,p="maxWait"in e,a=p?nativeMax$1(toNumber(e.maxWait)||0,n):a,t="trailing"in e?!!e.trailing:t),v.cancel=function(){u!==undefined&&clearTimeout(u),c=0,r=d=o=u=undefined},v.flush=function(){return u===undefined?s:m(now())},v}var debounce_1=debounce$1,debounce=debounce$1,isObject$5=isObject_1,FUNC_ERROR_TEXT$1="Expected a function";function throttle(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1);return isObject$5(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),debounce(e,t,{leading:i,maxWait:t,trailing:r})}var throttle_1=throttle,throttle$1=getDefaultExportFromCjs(throttle),isArray$8=Array.isArray,isArray_1=isArray$8,isArray$7=isArray_1,isSymbol$2=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$1(e,t){var n;return!isArray$7(e)&&(!("number"!=(n=typeof e)&&"symbol"!=n&&"boolean"!=n&&null!=e&&!isSymbol$2(e))||reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}var _isKey=isKey$1,baseGetTag$4=_baseGetTag,isObject$4=isObject_1,asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(e){return!!isObject$4(e)&&((e=baseGetTag$4(e))==funcTag$2||e==genTag$1||e==asyncTag||e==proxyTag)}var isFunction_1=isFunction$2,isFunction$3=getDefaultExportFromCjs(isFunction_1),root$6=_root,coreJsData$1=_root["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=coreJsData$1,maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked$1(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked$1,funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource$2(e){if(null!=e){try{return funcToString$2.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$3=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$b=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$9=objectProto$b.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$9).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(e){return!(!isObject$3(e)||isMasked(e))&&(isFunction$1(e)?reIsNative:reIsHostCtor).test(toSource$1(e))}var _baseIsNative=baseIsNative$1;function getValue$1(e,t){return null==e?undefined:e[t]}var _getValue=getValue$1,baseIsNative=baseIsNative$1,getValue=getValue$1;function getNative$7(e,t){e=getValue(e,t);return baseIsNative(e)?e:undefined}var _getNative=getNative$7,getNative$6=_getNative,nativeCreate$4=_getNative(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(e){e=this.has(e)&&delete this.__data__[e];return this.size-=e?1:0,e}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__",objectProto$a=Object.prototype,hasOwnProperty$8=objectProto$a.hasOwnProperty;function hashGet$1(e){var t,n=this.__data__;return nativeCreate$2?(t=n[e])===HASH_UNDEFINED$1?undefined:t:hasOwnProperty$8.call(n,e)?n[e]:undefined}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$9=Object.prototype,hasOwnProperty$7=objectProto$9.hasOwnProperty;function hashHas$1(e){var t=this.__data__;return nativeCreate$1?t[e]!==undefined:hasOwnProperty$7.call(t,e)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet$1(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nativeCreate&&t===undefined?HASH_UNDEFINED:t,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=hashHas$1,hashSet=hashSet$1;function Hash$1(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Hash$1.prototype.clear=hashClear,Hash$1.prototype["delete"]=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var _Hash=Hash$1;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(e,t){return e===t||e!=e&&t!=t}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(e,t){for(var n=e.length;n--;)if(eq$1(e[n][0],t))return n;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(e){var t=this.__data__,e=assocIndexOf$3(t,e);return!(e<0||(e==t.length-1?t.pop():splice.call(t,e,1),--this.size,0))}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(e){var t=this.__data__,e=assocIndexOf$2(t,e);return e<0?undefined:t[e][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(e){return-1<assocIndexOf$1(this.__data__,e)}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(e,t){var n=this.__data__,i=assocIndexOf(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=listCacheDelete$1,listCacheGet=listCacheGet$1,listCacheHas=listCacheHas$1,listCacheSet=listCacheSet$1;function ListCache$4(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}ListCache$4.prototype.clear=listCacheClear,ListCache$4.prototype["delete"]=listCacheDelete,ListCache$4.prototype.get=listCacheGet,ListCache$4.prototype.has=listCacheHas,ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,getNative$5=_getNative,root$5=_root,Map$4=_getNative(_root,"Map"),_Map=Map$4,Hash=_Hash,ListCache$3=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$3),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var _isKeyable=isKeyable$1,isKeyable=isKeyable$1;function getMapData$4(e,t){e=e.__data__;return isKeyable(t)?e["string"==typeof t?"string":"hash"]:e.map}var _getMapData=getMapData$4,getMapData$3=getMapData$4;function mapCacheDelete$1(e){e=getMapData$3(this,e)["delete"](e);return this.size-=e?1:0,e}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=getMapData$4;function mapCacheGet$1(e){return getMapData$2(this,e).get(e)}var _mapCacheGet=mapCacheGet$1,getMapData$1=getMapData$4;function mapCacheHas$1(e){return getMapData$1(this,e).has(e)}var _mapCacheHas=mapCacheHas$1,getMapData=getMapData$4;function mapCacheSet$1(e,t){var n=getMapData(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=mapCacheClear$1,mapCacheDelete=mapCacheDelete$1,mapCacheGet=mapCacheGet$1,mapCacheHas=mapCacheHas$1,mapCacheSet=mapCacheSet$1;function MapCache$2(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}MapCache$2.prototype.clear=mapCacheClear,MapCache$2.prototype["delete"]=mapCacheDelete,MapCache$2.prototype.get=mapCacheGet,MapCache$2.prototype.has=mapCacheHas,MapCache$2.prototype.set=mapCacheSet;var _MapCache=MapCache$2,MapCache$1=_MapCache,FUNC_ERROR_TEXT="Expected a function";function memoize$1(i,r){if("function"!=typeof i||null!=r&&"function"!=typeof r)throw new TypeError(FUNC_ERROR_TEXT);var o=function(){var e=arguments,t=r?r.apply(this,e):e[0],n=o.cache;return n.has(t)?n.get(t):(e=i.apply(this,e),o.cache=n.set(t,e)||n,e)};return o.cache=new(memoize$1.Cache||MapCache$1),o}memoize$1.Cache=MapCache$1;var memoize_1=memoize$1,memoize=memoize$1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(e){var e=memoize(e,function(e){return t.size===MAX_MEMOIZE_SIZE&&t.clear(),e}),t=e.cache;return e}var _memoizeCapped=memoizeCapped$1,memoizeCapped=memoizeCapped$1,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped$1(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(rePropName,function(e,t,n,i){r.push(n?i.replace(reEscapeChar,"$1"):t||e)}),r}),_stringToPath=stringToPath$1;function arrayMap$2(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}var _arrayMap=arrayMap$2,Symbol$3=_Symbol,arrayMap$1=_arrayMap,isArray$6=isArray_1,isSymbol$1=isSymbol_1,INFINITY$1=1/0,symbolProto$1=_Symbol?_Symbol.prototype:undefined,symbolToString=symbolProto$1?symbolProto$1.toString:undefined;function baseToString$1(e){var t;return"string"==typeof e?e:isArray$6(e)?arrayMap$1(e,baseToString$1)+"":isSymbol$1(e)?symbolToString?symbolToString.call(e):"":"0"==(t=e+"")&&1/e==-INFINITY$1?"-0":t}var _baseToString=baseToString$1,baseToString=baseToString$1;function toString$2(e){return null==e?"":baseToString(e)}var toString_1=toString$2,isArray$5=isArray_1,isKey=_isKey,stringToPath=_stringToPath,toString$1=toString$2;function castPath$3(e,t){return isArray$5(e)?e:isKey(e,t)?[e]:stringToPath(toString$1(e))}var _castPath=castPath$3,isSymbol=isSymbol_1,INFINITY=1/0;function toKey$2(e){var t;return"string"==typeof e||isSymbol(e)?e:"0"==(t=e+"")&&1/e==-INFINITY?"-0":t}var _toKey=toKey$2,castPath$2=_castPath,toKey$1=_toKey;function baseGet$2(e,t){for(var n=0,i=(t=castPath$2(t,e)).length;null!=e&&n<i;)e=e[toKey$1(t[n++])];return n&&n==i?e:undefined}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get(e,t,n){e=null==e?undefined:baseGet$1(e,t);return e===undefined?n:e}var get_1=get,get$1=getDefaultExportFromCjs(get),toString=toString$2,idCounter=0;function uniqueId(e){var t=++idCounter;return toString(e)+t}var uniqueId_1=uniqueId,uniqueId$1=getDefaultExportFromCjs(uniqueId),ListCache$2=_ListCache;function stackClear$1(){this.__data__=new ListCache$2,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(e){var t=this.__data__,e=t["delete"](e);return this.size=t.size,e}var _stackDelete=stackDelete$1;function stackGet$1(e){return this.__data__.get(e)}var _stackGet=stackGet$1;function stackHas$1(e){return this.__data__.has(e)}var _stackHas=stackHas$1,ListCache$1=_ListCache,Map$2=_Map,MapCache=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(e,t){var n=this.__data__;if(n instanceof ListCache$1){var i=n.__data__;if(!Map$2||i.length<LARGE_ARRAY_SIZE-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new MapCache(i)}return n.set(e,t),this.size=n.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=stackClear$1,stackDelete=stackDelete$1,stackGet=stackGet$1,stackHas=stackHas$1,stackSet=stackSet$1;function Stack$1(e){e=this.__data__=new ListCache(e);this.size=e.size}Stack$1.prototype.clear=stackClear,Stack$1.prototype["delete"]=stackDelete,Stack$1.prototype.get=stackGet,Stack$1.prototype.has=stackHas,Stack$1.prototype.set=stackSet;var _Stack=Stack$1;function arrayEach$2(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}var _arrayEach=arrayEach$2,getNative$4=_getNative,defineProperty$2=function(){try{var e=getNative$4(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),_defineProperty=defineProperty$2,defineProperty$1=_defineProperty;function baseAssignValue$2(e,t,n){"__proto__"==t&&defineProperty$1?defineProperty$1(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var _baseAssignValue=baseAssignValue$2,baseAssignValue$1=_baseAssignValue,eq=eq_1,objectProto$8=Object.prototype,hasOwnProperty$6=objectProto$8.hasOwnProperty;function assignValue$2(e,t,n){var i=e[t];hasOwnProperty$6.call(e,t)&&eq(i,n)&&(n!==undefined||t in e)||baseAssignValue$1(e,t,n)}var _assignValue=assignValue$2,assignValue$1=_assignValue,baseAssignValue=_baseAssignValue;function copyObject$5(e,t,n,i){for(var r=!n,o=(n=n||{},-1),a=t.length;++o<a;){var s=t[o],u=i?i(n[s],e[s],s,n,e):undefined;u===undefined&&(u=e[s]),(r?baseAssignValue:assignValue$1)(n,s,u)}return n}var _copyObject=copyObject$5;function baseTimes$1(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}var _baseTimes=baseTimes$1,baseGetTag$3=_baseGetTag,isObjectLike$5=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(e){return isObjectLike$5(e)&&baseGetTag$3(e)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=baseIsArguments$1,isObjectLike$4=isObjectLike_1,objectProto$7=Object.prototype,hasOwnProperty$5=objectProto$7.hasOwnProperty,propertyIsEnumerable$1=objectProto$7.propertyIsEnumerable,isArguments$2=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike$4(e)&&hasOwnProperty$5.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")},isArguments_1=isArguments$2,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse,isBufferExports=(isBuffer$2.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,n=n&&n.exports===t?_root.Buffer:undefined,t=n?n.isBuffer:undefined;e.exports=t||stubFalse_1}(isBuffer$2,isBuffer$2.exports),isBuffer$2.exports),MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$1(e,t){var n=typeof e;return!!(t=null==t?MAX_SAFE_INTEGER$1:t)&&("number"==n||"symbol"!=n&&reIsUint.test(e))&&-1<e&&e%1==0&&e<t}var _isIndex=isIndex$1,MAX_SAFE_INTEGER=9007199254740991;function isLength$2(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$2=_baseGetTag,isLength$1=isLength_1,isObjectLike$3=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$3="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray$1(e){return isObjectLike$3(e)&&isLength$1(e.length)&&!!typedArrayTags[baseGetTag$2(e)]}typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(t){return function(e){return t(e)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}},_nodeUtilExports=(_nodeUtil.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,i=n&&n.exports===t&&_freeGlobal.process,t=function(){try{var e=n&&n.require&&n.require("util").types;return e?e:i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=t}(_nodeUtil,_nodeUtil.exports),_nodeUtil.exports),baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=_nodeUtilExports&&_nodeUtilExports.isTypedArray,isTypedArray$1=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$1,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$4=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray=isTypedArray$1,objectProto$6=Object.prototype,hasOwnProperty$4=objectProto$6.hasOwnProperty;function arrayLikeKeys$2(e,t){var n,i=isArray$4(e),r=!i&&isArguments$1(e),o=!i&&!r&&isBuffer$1(e),a=!i&&!r&&!o&&isTypedArray(e),s=i||r||o||a,u=s?baseTimes(e.length,String):[],d=u.length;for(n in e)!t&&!hasOwnProperty$4.call(e,n)||s&&("length"==n||o&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||isIndex(n,d))||u.push(n);return u}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$5=Object.prototype;function isPrototype$3(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||objectProto$5)}var _isPrototype=isPrototype$3;function overArg$2(t,n){return function(e){return t(n(e))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=_overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=nativeKeys$1,objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function baseKeys$1(e){if(!isPrototype$2(e))return nativeKeys(e);var t,n=[];for(t in Object(e))hasOwnProperty$3.call(e,t)&&"constructor"!=t&&n.push(t);return n}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength=isLength_1;function isArrayLike$3(e){return null!=e&&isLength(e.length)&&!isFunction(e)}var isArrayLike_1=isArrayLike$3,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=baseKeys$1,isArrayLike$2=isArrayLike_1;function keys$4(e){return(isArrayLike$2(e)?arrayLikeKeys$1:baseKeys)(e)}var keys_1=keys$4,copyObject$4=_copyObject,keys$3=keys_1;function baseAssign$1(e,t){return e&&copyObject$4(t,keys$3(t),e)}var _baseAssign=baseAssign$1;function nativeKeysIn$1(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var _nativeKeysIn=nativeKeysIn$1,isObject$2=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=nativeKeysIn$1,objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty;function baseKeysIn$1(e){if(!isObject$2(e))return nativeKeysIn(e);var t,n=isPrototype$1(e),i=[];for(t in e)("constructor"!=t||!n&&hasOwnProperty$2.call(e,t))&&i.push(t);return i}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=baseKeysIn$1,isArrayLike$1=isArrayLike_1;function keysIn$3(e){return isArrayLike$1(e)?arrayLikeKeys(e,!0):baseKeysIn(e)}var keysIn_1=keysIn$3,copyObject$3=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(e,t){return e&&copyObject$3(t,keysIn$2(t),e)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}},_cloneBufferExports=(_cloneBuffer.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,n=n&&n.exports===t?_root.Buffer:undefined,i=n?n.allocUnsafe:undefined;e.exports=function(e,t){return t?e.slice():(t=e.length,t=i?i(t):new e.constructor(t),e.copy(t),t)}}(_cloneBuffer,_cloneBuffer.exports),_cloneBuffer.exports);function copyArray$1(e,t){var n=-1,i=e.length;for(t=t||Array(i);++n<i;)t[n]=e[n];return t}var _copyArray=copyArray$1;function arrayFilter$1(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}var _arrayFilter=arrayFilter$1;function stubArray$2(){return[]}var stubArray_1=stubArray$2,arrayFilter=arrayFilter$1,stubArray$1=stubArray_1,objectProto$2=Object.prototype,propertyIsEnumerable=objectProto$2.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols$3=nativeGetSymbols$1?function(t){return null==t?[]:(t=Object(t),arrayFilter(nativeGetSymbols$1(t),function(e){return propertyIsEnumerable.call(t,e)}))}:stubArray$1,_getSymbols=getSymbols$3,copyObject$2=_copyObject,getSymbols$2=_getSymbols;function copySymbols$1(e,t){return copyObject$2(e,getSymbols$2(e),t)}var _copySymbols=copySymbols$1;function arrayPush$3(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}var _arrayPush=arrayPush$3,overArg=_overArg,getPrototype$3=_overArg(Object.getPrototypeOf,Object),_getPrototype=getPrototype$3,arrayPush$2=_arrayPush,getPrototype$2=_getPrototype,getSymbols$1=_getSymbols,stubArray=stubArray_1,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn$2=nativeGetSymbols?function(e){for(var t=[];e;)arrayPush$2(t,getSymbols$1(e)),e=getPrototype$2(e);return t}:stubArray,_getSymbolsIn=getSymbolsIn$2,copyObject$1=_copyObject,getSymbolsIn$1=getSymbolsIn$2;function copySymbolsIn$1(e,t){return copyObject$1(e,getSymbolsIn$1(e),t)}var _copySymbolsIn=copySymbolsIn$1,arrayPush$1=_arrayPush,isArray$3=isArray_1;function baseGetAllKeys$2(e,t,n){t=t(e);return isArray$3(e)?t:arrayPush$1(t,n(e))}var _baseGetAllKeys=baseGetAllKeys$2,baseGetAllKeys$1=baseGetAllKeys$2,getSymbols=_getSymbols,keys$2=keys_1;function getAllKeys$1(e){return baseGetAllKeys$1(e,keys$2,getSymbols)}var _getAllKeys=getAllKeys$1,baseGetAllKeys=baseGetAllKeys$2,getSymbolsIn=getSymbolsIn$2,keysIn$1=keysIn_1;function getAllKeysIn$2(e){return baseGetAllKeys(e,keysIn$1,getSymbolsIn)}var _getAllKeysIn=getAllKeysIn$2,getNative$3=_getNative,root$4=_root,DataView$2=_getNative(_root,"DataView"),_DataView=DataView$2,getNative$2=_getNative,root$3=_root,Promise$2=_getNative(_root,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$2=_root,Set$2=_getNative(_root,"Set"),_Set=Set$2,getNative=_getNative,root$1=_root,WeakMap$2=_getNative(_root,"WeakMap"),_WeakMap=WeakMap$2,DataView$1=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=WeakMap$2,baseGetTag$1=_baseGetTag,toSource=_toSource,mapTag$3="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$3="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$2="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$3=baseGetTag$1,_getTag=getTag$3=DataView$1&&getTag$3(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$2||Map$1&&getTag$3(new Map$1)!=mapTag$3||Promise$1&&getTag$3(Promise$1.resolve())!=promiseTag||Set$1&&getTag$3(new Set$1)!=setTag$3||WeakMap$1&&getTag$3(new WeakMap$1)!=weakMapTag$1?function(e){var t=baseGetTag$1(e),e=t==objectTag$2?e.constructor:undefined,e=e?toSource(e):"";if(e)switch(e){case dataViewCtorString:return dataViewTag$2;case mapCtorString:return mapTag$3;case promiseCtorString:return promiseTag;case setCtorString:return setTag$3;case weakMapCtorString:return weakMapTag$1}return t}:getTag$3,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function initCloneArray$1(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&hasOwnProperty$1.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var _initCloneArray=initCloneArray$1,root=_root,Uint8Array$2=_root.Uint8Array,_Uint8Array=Uint8Array$2,Uint8Array$1=Uint8Array$2;function cloneArrayBuffer$3(e){var t=new e.constructor(e.byteLength);return new Uint8Array$1(t).set(new Uint8Array$1(e)),t}var _cloneArrayBuffer=cloneArrayBuffer$3,cloneArrayBuffer$2=_cloneArrayBuffer;function cloneDataView$1(e,t){t=t?cloneArrayBuffer$2(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}var _cloneDataView=cloneDataView$1,reFlags=/\w*$/;function cloneRegExp$1(e){var t=new e.constructor(e.source,reFlags.exec(e));return t.lastIndex=e.lastIndex,t}var _cloneRegExp=cloneRegExp$1,Symbol$2=_Symbol,symbolProto=_Symbol?_Symbol.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined;function cloneSymbol$1(e){return symbolValueOf?Object(symbolValueOf.call(e)):{}}var _cloneSymbol=cloneSymbol$1,cloneArrayBuffer$1=_cloneArrayBuffer;function cloneTypedArray$1(e,t){t=t?cloneArrayBuffer$1(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var _cloneTypedArray=cloneTypedArray$1,cloneArrayBuffer=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=cloneSymbol$1,cloneTypedArray=cloneTypedArray$1,boolTag$1="[object Boolean]",dateTag$1="[object Date]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag$1(e,t,n){var i=e.constructor;switch(t){case arrayBufferTag$1:return cloneArrayBuffer(e);case boolTag$1:case dateTag$1:return new i(+e);case dataViewTag$1:return cloneDataView(e,n);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(e,n);case mapTag$2:return new i;case numberTag$1:case stringTag$1:return new i(e);case regexpTag$1:return cloneRegExp(e);case setTag$2:return new i;case symbolTag$1:return cloneSymbol(e)}}var _initCloneByTag=initCloneByTag$1,isObject$1=isObject_1,objectCreate=Object.create,baseCreate$1=function(){function t(){}return function(e){if(!isObject$1(e))return{};if(objectCreate)return objectCreate(e);t.prototype=e;e=new t;return t.prototype=undefined,e}}(),_baseCreate=baseCreate$1,baseCreate=baseCreate$1,getPrototype$1=_getPrototype,isPrototype=_isPrototype;function initCloneObject$1(e){return"function"!=typeof e.constructor||isPrototype(e)?{}:baseCreate(getPrototype$1(e))}var _initCloneObject=initCloneObject$1,getTag$2=_getTag,isObjectLike$2=isObjectLike_1,mapTag$1="[object Map]";function baseIsMap$1(e){return isObjectLike$2(e)&&getTag$2(e)==mapTag$1}var _baseIsMap=baseIsMap$1,baseIsMap=baseIsMap$1,baseUnary$1=_baseUnary,nodeUtil$1=_nodeUtilExports,nodeIsMap=_nodeUtilExports&&_nodeUtilExports.isMap,isMap$1=nodeIsMap?baseUnary$1(nodeIsMap):baseIsMap,isMap_1=isMap$1,getTag$1=_getTag,isObjectLike$1=isObjectLike_1,setTag$1="[object Set]";function baseIsSet$1(e){return isObjectLike$1(e)&&getTag$1(e)==setTag$1}var _baseIsSet=baseIsSet$1,baseIsSet=baseIsSet$1,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsSet=_nodeUtilExports&&_nodeUtilExports.isSet,isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,isSet_1=isSet$1,Stack=_Stack,arrayEach$1=_arrayEach,assignValue=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer=_cloneBufferExports,copyArray=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys=_getAllKeys,getAllKeysIn$1=_getAllKeysIn,getTag=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject=_initCloneObject,isArray$2=isArray_1,isBuffer=isBufferExports,isMap=isMap_1,isObject=isObject_1,isSet=isSet$1,keys$1=keys_1,keysIn=keysIn_1,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$1=4,argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",objectTag$1="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};function baseClone$1(n,i,r,e,t,o){var a,s=i&CLONE_DEEP_FLAG$1,u=i&CLONE_FLAT_FLAG$1,d=i&CLONE_SYMBOLS_FLAG$1;if((a=r?t?r(n,e,t,o):r(n):a)===undefined){if(!isObject(n))return n;e=isArray$2(n);if(e){if(a=initCloneArray(n),!s)return copyArray(n,a)}else{var c=getTag(n),l=c==funcTag||c==genTag;if(isBuffer(n))return cloneBuffer(n,s);if(c==objectTag$1||c==argsTag||l&&!t){if(a=u||l?{}:initCloneObject(n),!s)return u?copySymbolsIn(n,baseAssignIn(a,n)):copySymbols(n,baseAssign(a,n))}else{if(!cloneableTags[c])return t?n:{};a=initCloneByTag(n,c,s)}}l=(o=o||new Stack).get(n);if(l)return l;o.set(n,a),isSet(n)?n.forEach(function(e){a.add(baseClone$1(e,i,r,e,n,o))}):isMap(n)&&n.forEach(function(e,t){a.set(t,baseClone$1(e,i,r,t,n,o))});var p=e?undefined:(d?u?getAllKeysIn$1:getAllKeys:u?keysIn:keys$1)(n);arrayEach$1(p||n,function(e,t){p&&(e=n[t=e]),assignValue(a,t,baseClone$1(e,i,r,t,n,o))})}return a}cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag$1]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;var _baseClone=baseClone$1;function last$1(e){var t=null==e?0:e.length;return t?e[t-1]:undefined}var last_1=last$1;function baseSlice$1(e,t,n){for(var i=-1,r=e.length,o=((n=r<n?r:n)<0&&(n+=r),r=n<(t=t<0?r<-t?0:r+t:t)?0:n-t>>>0,t>>>=0,Array(r));++i<r;)o[i]=e[i+t];return o}var _baseSlice=baseSlice$1,baseGet=_baseGet,baseSlice=baseSlice$1;function parent$1(e,t){return t.length<2?e:baseGet(e,baseSlice(t,0,-1))}var _parent=parent$1,castPath$1=_castPath,last=last$1,parent=parent$1,toKey=_toKey;function baseUnset$1(e,t){return t=castPath$1(t,e),null==(e=parent(e,t))||delete e[toKey(last(t))]}var _baseUnset=baseUnset$1,baseGetTag=_baseGetTag,getPrototype=_getPrototype,isObjectLike=isObjectLike_1,objectTag="[object Object]",funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$1(e){return!(!isObjectLike(e)||baseGetTag(e)!=objectTag)&&(null===(e=getPrototype(e))||"function"==typeof(e=hasOwnProperty.call(e,"constructor")&&e.constructor)&&e instanceof e&&funcToString.call(e)==objectCtorString)}var isPlainObject_1=isPlainObject$1,isPlainObject=isPlainObject$1;function customOmitClone$1(e){return isPlainObject(e)?undefined:e}var _customOmitClone=customOmitClone$1,Symbol$1=_Symbol,isArguments=isArguments_1,isArray$1=isArray_1,spreadableSymbol=_Symbol?_Symbol.isConcatSpreadable:undefined;function isFlattenable$1(e){return isArray$1(e)||isArguments(e)||!!(spreadableSymbol&&e&&e[spreadableSymbol])}var _isFlattenable=isFlattenable$1,arrayPush=_arrayPush,isFlattenable=isFlattenable$1;function baseFlatten$1(e,t,n,i,r){var o=-1,a=e.length;for(n=n||isFlattenable,r=r||[];++o<a;){var s=e[o];0<t&&n(s)?1<t?baseFlatten$1(s,t-1,n,i,r):arrayPush(r,s):i||(r[r.length]=s)}return r}var _baseFlatten=baseFlatten$1,baseFlatten=baseFlatten$1;function flatten$1(e){return(null==e?0:e.length)?baseFlatten(e,1):[]}var flatten_1=flatten$1;function apply$1(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var _apply=apply$1,apply=apply$1,nativeMax=Math.max;function overRest$1(o,a,s){return a=nativeMax(a===undefined?o.length-1:a,0),function(){for(var e=arguments,t=-1,n=nativeMax(e.length-a,0),i=Array(n);++t<n;)i[t]=e[a+t];for(var t=-1,r=Array(a+1);++t<a;)r[t]=e[t];return r[a]=s(i),apply(o,this,r)}}var _overRest=overRest$1;function constant$1(e){return function(){return e}}var constant_1=constant$1;function identity$2(e){return e}var identity_1=identity$2,constant=constant$1,defineProperty=_defineProperty,identity$1=identity_1,baseSetToString$1=defineProperty?function(e,t){return defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:constant(t),writable:!0})}:identity_1,_baseSetToString=baseSetToString$1,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut$1(n){var i=0,r=0;return function(){var e=nativeNow(),t=HOT_SPAN-(e-r);if(r=e,0<t){if(++i>=HOT_COUNT)return arguments[0]}else i=0;return n.apply(undefined,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=shortOut$1,setToString$1=shortOut$1(_baseSetToString),_setToString=setToString$1,flatten=flatten_1,overRest=_overRest,setToString=setToString$1;function flatRest$1(e){return setToString(overRest(e,undefined,flatten),e+"")}var _flatRest=flatRest$1,arrayMap=_arrayMap,baseClone=_baseClone,baseUnset=_baseUnset,castPath=_castPath,copyObject=_copyObject,customOmitClone=_customOmitClone,flatRest=flatRest$1,getAllKeysIn=_getAllKeysIn,CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4,omit=flatRest$1(function(t,e){var n={};if(null!=t)for(var i=!1,r=(e=arrayMap(e,function(e){return e=castPath(e,t),i=i||1<e.length,e}),copyObject(t,getAllKeysIn(t),n),i&&(n=baseClone(n,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone)),e.length);r--;)baseUnset(n,e[r]);return n}),omit_1=omit,omit$1=getDefaultExportFromCjs(omit);function doesExist(e){return!(null==e)}const MESSAGE_PROMISE="promise";function Message(e,t,n){this.name=e,this.type=t,this.data=n}Message.prototype.toString=function(){return`Message.${this.type} - `+this.name};const createMessage=(e,t,n)=>{e=new Message(e,t,n);return t===MESSAGE_PROMISE&&(e.requestId=uniqueId$1()),e},fromEvent=e=>{try{var{name:t,type:n,isResponse:i,data:r,requestId:o,sender:a}=e.data||{},s=new Message(t,n,doesExist(r)?JSON.parse(r):undefined);return s.requestId=o,s.sender=a,s.destination=e.source,s.isResponse=i,s}catch(u){return!1}},serialize=e=>{var t=omit$1(e,["destination","toString","data"]);return t.data=JSON.stringify(e.data,(e,t)=>"function"==typeof t||t instanceof RegExp?t.toString?t.toString():undefined:t),t},asResponse=e=>(e.isResponse=!0,e),pipe=(...e)=>r=>{return[].concat(e).reduce((e,t,n,i)=>{e=t(e,r);return e||i.splice(n,i.length-n),e},r)},tap=n=>(e,...t)=>(n(e,...t),e);function createBaseFor$1(u){return function(e,t,n){for(var i=-1,r=Object(e),o=n(e),a=o.length;a--;){var s=o[u?a:++i];if(!1===t(r[s],s,r))break}return e}}var _createBaseFor=createBaseFor$1,createBaseFor=createBaseFor$1,baseFor$1=createBaseFor$1(),_baseFor=baseFor$1,baseFor=baseFor$1,keys=keys_1;function baseForOwn$1(e,t){return e&&baseFor(e,t,keys)}var _baseForOwn=baseForOwn$1,isArrayLike=isArrayLike_1;function createBaseEach$1(o,a){return function(e,t){if(null!=e){if(!isArrayLike(e))return o(e,t);for(var n=e.length,i=a?n:-1,r=Object(e);(a?i--:++i<n)&&!1!==t(r[i],i,r););}return e}}var _createBaseEach=createBaseEach$1,baseForOwn=baseForOwn$1,createBaseEach=createBaseEach$1,baseEach$1=createBaseEach$1(baseForOwn$1),_baseEach=baseEach$1,identity=identity_1;function castFunction$1(e){return"function"==typeof e?e:identity}var _castFunction=castFunction$1,arrayEach=_arrayEach,baseEach=baseEach$1,castFunction=castFunction$1,isArray=isArray_1;function forEach(e,t){return(isArray(e)?arrayEach:baseEach)(e,castFunction(t))}var forEach_1=forEach,each=forEach,each$1=getDefaultExportFromCjs(forEach);const dead="dead_connection",disconnected="disconnected",connected="connected",isConnected=e=>e<1e4,isDisconnected=e=>1e4<e,isDead=e=>3e4<e,state$1={lastMessageReceivedAt:0,currentConnectionQuality:disconnected,changeCallbacks:{},evalCallbacks:{}},triggerConnectionStatusChanged=()=>{each$1(state$1.changeCallbacks,e=>{e(state$1.currentConnectionQuality)})},triggerEval=()=>{each$1(state$1.evalCallbacks,e=>{e(state$1.currentConnectionQuality)})},setConnectionStatus=e=>{e!==state$1.currentConnectionQuality&&(state$1.currentConnectionQuality=e,triggerConnectionStatusChanged())},evaluateConnectionQuality=()=>{var e;0===state$1.lastMessageReceivedAt?setConnectionStatus(disconnected):(e=Date.now()-state$1.lastMessageReceivedAt,isConnected(e)?setConnectionStatus(connected):isDisconnected(e)&&(isDead(e)?setConnectionStatus(dead):setConnectionStatus(disconnected)),triggerEval())};let stopFn;const start=(e=0)=>{const t=setInterval(evaluateConnectionQuality,100);stopFn=()=>clearInterval(t)},stop=()=>{stopFn&&stopFn(),resetMonitor()};let _listenerId=0;const onStatusEval=e=>{if(isFunction$3(e)){const t=_listenerId++;return state$1.evalCallbacks[t]=e,()=>{delete state$1.evalCallbacks[t]}}},markTime=(e=Date.now())=>{state$1.lastMessageReceivedAt=e},resetMonitor=()=>{state$1.currentConnectionQuality=disconnected,state$1.lastMessageReceivedAt=0},state={appName:undefined,connectionName:undefined,frameId:undefined,pendingRequests:{},topics:{},senderIds:{},originProvider:undefined,destinationProvider:undefined},getListener=()=>""+state.appName+state.connectionName+`(${state.frameId})`,_send=e=>{e.sender||(e.sender=getListener());var t=e.destination||state.destinationProvider(),n=serialize(e),i=getPortForSender(e.sender),r=hasSenderTriedToUpgradeToMessageChannel(e.sender);i||r?i?i.postMessage(n):t.postMessage(n,state.originProvider()):(r=new MessageChannel,addPort(r.port1,e.sender),t.postMessage(n,state.originProvider(),[r.port2]))},promise=(r,o,a=1e3)=>new Promise$4((e,t)=>{const n=createMessage(r,MESSAGE_PROMISE,o),i=setTimeout$1(()=>{t(r+" timeout"),clearPendingRequest(n),downgradeToPostMessage(n)},a);addPendingRequest(n,()=>clearTimeout(i),e,t),_send(n)}),addSenderId=e=>{state.senderIds[e]||(state.senderIds[e]={port:undefined,hasTriedToUpgradeToMessageChannel:!1})},getSenderInfo=e=>(state.senderIds[e]||addSenderId(e),state.senderIds[e]),getPortForSender=e=>getSenderInfo(e).port,hasSenderTriedToUpgradeToMessageChannel=e=>getSenderInfo(e).hasTriedToUpgradeToMessageChannel,addPendingRequest=(e,t,n,i)=>{state.pendingRequests[e.requestId]={message:e,clearTimeoutfn:t,resolve:n,reject:i}},resolveRequest=e=>{var t=state.pendingRequests[e.requestId];return t&&(t.resolve(e.data),clearPendingRequest(e)),e},clearPendingRequest=e=>{var t=e["requestId"];return state.pendingRequests[t].clearTimeoutfn(),delete state.pendingRequests[t],e},updateSubscriptions=t=>{var e=state.topics[t.name];return e&&e.forEach(e=>e(t.data)),t},PING_MSG="message::ping",sendPing=()=>{promise(PING_MSG)["catch"](()=>{console.log("message::ping timedout")})},dispatchMessage=t=>{var e;return t&&!t.isResponse&&(t.name===PING_MSG?_send(asResponse(t)):(e=state.routeHandlerLookup(t.name))?e(t,e=>{t.data=e,_send(asResponse(t))}):console.log(getListener(),"No route handler for "+t.name,t)),t},commonFns=pipe(resolveRequest,updateSubscriptions,dispatchMessage,tap(()=>{markTime()})),filterWrongOrigin=e=>("*"===state.originProvider()||e.origin===state.originProvider())&&e,filterWrongSender=e=>{var t=get$1(e,"data.sender");return!(!t||"string"!=typeof t||!t.includes(state.appName))&&e},addPort=(e,t)=>{t=getSenderInfo(t);t.port=e,t.hasTriedToUpgradeToMessageChannel=!0,t.port.onmessage=pipe(fromEvent,commonFns)},removePort=e=>{e=getSenderInfo(e);e.port=undefined,e.hasTriedToUpgradeToMessageChannel=!1},upgradeToChannel=(e,t)=>{return!getSenderInfo(e.sender).hasTriedToUpgradeToMessageChannel&&t.ports&&t.ports[0]&&addPort(t.ports[0],e.sender),e},downgradeToPostMessage=e=>{removePort(e.sender)};let _stopListening=()=>{};const stopListening=()=>{_stopListening(),_stopListening=()=>{},stop()},notConnectedListener=throttle$1(e=>{"connected"!==e&&state.usePingAutoReconnect&&sendPing()},1e3),startListening=(e,t,n,i,r,o=!1,a)=>{if(window.addEventListener){state.appName=e,state.frameId=t,state.routeHandlerLookup=n,state.usePingAutoReconnect=o,state.connectionName=a||"",state.originProvider=i||(()=>window.location.origin||"*"),state.destinationProvider=r||(()=>window.parent||window.top),start(),onStatusEval(notConnectedListener);const s=pipe(filterWrongOrigin,filterWrongSender,fromEvent,upgradeToChannel,commonFns);window.addEventListener("message",s),_stopListening=()=>window.removeEventListener("message",s)}};function VocPortal(){let r,l;return{name:"VocPortal",initialize:function(e,t){r=e;e=(l=t).EventTracer.addTracerIds({}).frameId;this.removeResizeEvent=r.attachEvent(window,"resize",p),startListening("VocPortal",e,n,()=>"*")},routeHandlerLookup:n,queryMessageHandler:t,resizeMessageHandler:i,teardown:function(){this.removeResizeEvent&&this.removeResizeEvent();stopListening()}};function n(e){switch(e){case"pendo-voc::query":return t;case"pendo-voc::resize":return i;default:return undefined}}function p(){var e=document.getElementById("pendo-resource-center-container"),e=r.dom(e);l.sizeElements(e)}function t(e,t){var n=r.getSerializedMetadata(),i=!!r.designer||l.store.getters["preview/isInPreviewMode"]();t({apiKey:r.apiKey,url:r.url.externalizeURL(),visitor:n.visitor,account:n.account,parentAccount:n.parentAccount,sandboxMode:i})}function i(e){try{var t,n,i,{value:r,unit:o,isImportant:a}=e.data.width,{value:s,unit:u,isImportant:d}=e.data.height;"number"==typeof r&&"number"==typeof s&&((t=["px","%","vh","vw"]).includes(o)&&t.includes(u))&&(n=""+r+o+(a?" !important":""),i=""+s+u+(d?" !important":""),document.getElementById("pendo-resource-center-container").appendChild(document.createElement("style")).innerHTML=`#pendo-resource-center-container:has(iframe[src*="portal"][src*="mode=rc"]) {
115
- width: ${n};
116
- height: ${i};
117
- ._pendo-step-container-size {
112
+ `.trim()))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function GuideMarkdown(){let r,o,a;return{name:"GuideMarkdown",initialize:function(e,t){a=e;var n=(o=t).ConfigReader,i="guideMarkdown",i=(n.addOption(i,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),n.get(i));i&&(r=[PollBranching,MetadataSubstitution,RequiredQuestions,SkipToEligibleStep],e.designer||r.forEach(e=>{t.GlobalRuntime.addGlobalScript(e)}),t.Events.on("designerLaunched",s))},teardown:function(){o.Events.off("designerLaunched",s),r.forEach(e=>{o.GlobalRuntime.removeGlobalScript(e)})}};function s(){r.forEach(e=>{e.designerListener&&e.designerListener(a,o)})}}var setTimeout=safeBind(window.setTimeout,window);function safeBind(e,t){return"function"==typeof e.bind?e.bind(t):e}var setTimeout$1=setTimeout=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 safeBind(e[t],e)}(window),Promise$3=window.Promise,Promise$4=Promise$3=function(e){var t=window.Promise;return"function"==typeof t&&/native/.test(t)?t:e()}(function(){var t=setTimeout$1;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 isObject$8(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1=isObject$8,freeGlobal$1="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root$9=freeGlobal||freeSelf||Function("return this")(),_root=root$9,root$8=_root,now$1=function(){return root$8.Date.now()},now_1=now$1,reWhitespace=/\s/;function trimmedEndIndex$1(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=trimmedEndIndex$1,reTrimStart=/^\s+/;function baseTrim$1(e){return e&&e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,root$7=_root,Symbol$6=_root.Symbol,_Symbol=Symbol$6,Symbol$5=_Symbol,objectProto$d=Object.prototype,hasOwnProperty$a=objectProto$d.hasOwnProperty,nativeObjectToString$1=objectProto$d.toString,symToStringTag$1=Symbol$5?Symbol$5.toStringTag:undefined;function getRawTag$1(e){var t=hasOwnProperty$a.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=undefined;var i=!0}catch(o){}var r=nativeObjectToString$1.call(e);return i&&(t?e[symToStringTag$1]=n:delete e[symToStringTag$1]),r}var _getRawTag=getRawTag$1,objectProto$c=Object.prototype,nativeObjectToString=objectProto$c.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$4=_Symbol,getRawTag=_getRawTag,objectToString=objectToString$1,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=_Symbol?_Symbol.toStringTag:undefined;function baseGetTag$6(e){return null==e?e===undefined?undefinedTag:nullTag:(symToStringTag&&symToStringTag in Object(e)?getRawTag:objectToString)(e)}var _baseGetTag=baseGetTag$6;function isObjectLike$7(e){return null!=e&&"object"==typeof e}var isObjectLike_1=isObjectLike$7,baseGetTag$5=_baseGetTag,isObjectLike$6=isObjectLike_1,symbolTag$2="[object Symbol]";function isSymbol$4(e){return"symbol"==typeof e||isObjectLike$6(e)&&baseGetTag$5(e)==symbolTag$2}var isSymbol_1=isSymbol$4,baseTrim=_baseTrim,isObject$7=isObject_1,isSymbol$3=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(e){if("number"==typeof e)return e;if(isSymbol$3(e))return NAN;if(isObject$7(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=isObject$7(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=baseTrim(e);var t=reIsBinary.test(e);return t||reIsOctal.test(e)?freeParseInt(e.slice(2),t?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$1,isObject$6=isObject_1,now=now_1,toNumber=toNumber$1,FUNC_ERROR_TEXT$2="Expected a function",nativeMax$1=Math.max,nativeMin=Math.min;function debounce$1(i,n,e){var r,o,a,s,u,d,c=0,l=!1,p=!1,t=!0;if("function"!=typeof i)throw new TypeError(FUNC_ERROR_TEXT$2);function h(e){var t=r,n=o;return r=o=undefined,c=e,s=i.apply(n,t)}function f(e){var t=e-d;return d===undefined||n<=t||t<0||p&&a<=e-c}function g(){var e,t=now();if(f(t))return m(t);u=setTimeout$1(g,(e=n-((t=t)-d),p?nativeMin(e,a-(t-c)):e))}function m(e){return u=undefined,t&&r?h(e):(r=o=undefined,s)}function v(){var e=now(),t=f(e);if(r=arguments,o=this,d=e,t){if(u===undefined)return c=e=d,u=setTimeout$1(g,n),l?h(e):s;if(p)return clearTimeout(u),u=setTimeout$1(g,n),h(d)}return u===undefined&&(u=setTimeout$1(g,n)),s}return n=toNumber(n)||0,isObject$6(e)&&(l=!!e.leading,p="maxWait"in e,a=p?nativeMax$1(toNumber(e.maxWait)||0,n):a,t="trailing"in e?!!e.trailing:t),v.cancel=function(){u!==undefined&&clearTimeout(u),c=0,r=d=o=u=undefined},v.flush=function(){return u===undefined?s:m(now())},v}var debounce_1=debounce$1,debounce=debounce$1,isObject$5=isObject_1,FUNC_ERROR_TEXT$1="Expected a function";function throttle(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1);return isObject$5(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),debounce(e,t,{leading:i,maxWait:t,trailing:r})}var throttle_1=throttle,throttle$1=getDefaultExportFromCjs(throttle),isArray$8=Array.isArray,isArray_1=isArray$8,isArray$7=isArray_1,isSymbol$2=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$1(e,t){var n;return!isArray$7(e)&&(!("number"!=(n=typeof e)&&"symbol"!=n&&"boolean"!=n&&null!=e&&!isSymbol$2(e))||reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}var _isKey=isKey$1,baseGetTag$4=_baseGetTag,isObject$4=isObject_1,asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(e){return!!isObject$4(e)&&((e=baseGetTag$4(e))==funcTag$2||e==genTag$1||e==asyncTag||e==proxyTag)}var isFunction_1=isFunction$2,isFunction$3=getDefaultExportFromCjs(isFunction_1),root$6=_root,coreJsData$1=_root["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=coreJsData$1,maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked$1(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked$1,funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource$2(e){if(null!=e){try{return funcToString$2.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$3=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$b=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$9=objectProto$b.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$9).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(e){return!(!isObject$3(e)||isMasked(e))&&(isFunction$1(e)?reIsNative:reIsHostCtor).test(toSource$1(e))}var _baseIsNative=baseIsNative$1;function getValue$1(e,t){return null==e?undefined:e[t]}var _getValue=getValue$1,baseIsNative=baseIsNative$1,getValue=getValue$1;function getNative$7(e,t){e=getValue(e,t);return baseIsNative(e)?e:undefined}var _getNative=getNative$7,getNative$6=_getNative,nativeCreate$4=_getNative(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(e){e=this.has(e)&&delete this.__data__[e];return this.size-=e?1:0,e}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__",objectProto$a=Object.prototype,hasOwnProperty$8=objectProto$a.hasOwnProperty;function hashGet$1(e){var t,n=this.__data__;return nativeCreate$2?(t=n[e])===HASH_UNDEFINED$1?undefined:t:hasOwnProperty$8.call(n,e)?n[e]:undefined}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$9=Object.prototype,hasOwnProperty$7=objectProto$9.hasOwnProperty;function hashHas$1(e){var t=this.__data__;return nativeCreate$1?t[e]!==undefined:hasOwnProperty$7.call(t,e)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet$1(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nativeCreate&&t===undefined?HASH_UNDEFINED:t,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=hashHas$1,hashSet=hashSet$1;function Hash$1(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Hash$1.prototype.clear=hashClear,Hash$1.prototype["delete"]=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var _Hash=Hash$1;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(e,t){return e===t||e!=e&&t!=t}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(e,t){for(var n=e.length;n--;)if(eq$1(e[n][0],t))return n;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(e){var t=this.__data__,e=assocIndexOf$3(t,e);return!(e<0||(e==t.length-1?t.pop():splice.call(t,e,1),--this.size,0))}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(e){var t=this.__data__,e=assocIndexOf$2(t,e);return e<0?undefined:t[e][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(e){return-1<assocIndexOf$1(this.__data__,e)}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(e,t){var n=this.__data__,i=assocIndexOf(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=listCacheDelete$1,listCacheGet=listCacheGet$1,listCacheHas=listCacheHas$1,listCacheSet=listCacheSet$1;function ListCache$4(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}ListCache$4.prototype.clear=listCacheClear,ListCache$4.prototype["delete"]=listCacheDelete,ListCache$4.prototype.get=listCacheGet,ListCache$4.prototype.has=listCacheHas,ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,getNative$5=_getNative,root$5=_root,Map$4=_getNative(_root,"Map"),_Map=Map$4,Hash=_Hash,ListCache$3=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$3),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var _isKeyable=isKeyable$1,isKeyable=isKeyable$1;function getMapData$4(e,t){e=e.__data__;return isKeyable(t)?e["string"==typeof t?"string":"hash"]:e.map}var _getMapData=getMapData$4,getMapData$3=getMapData$4;function mapCacheDelete$1(e){e=getMapData$3(this,e)["delete"](e);return this.size-=e?1:0,e}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=getMapData$4;function mapCacheGet$1(e){return getMapData$2(this,e).get(e)}var _mapCacheGet=mapCacheGet$1,getMapData$1=getMapData$4;function mapCacheHas$1(e){return getMapData$1(this,e).has(e)}var _mapCacheHas=mapCacheHas$1,getMapData=getMapData$4;function mapCacheSet$1(e,t){var n=getMapData(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=mapCacheClear$1,mapCacheDelete=mapCacheDelete$1,mapCacheGet=mapCacheGet$1,mapCacheHas=mapCacheHas$1,mapCacheSet=mapCacheSet$1;function MapCache$2(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}MapCache$2.prototype.clear=mapCacheClear,MapCache$2.prototype["delete"]=mapCacheDelete,MapCache$2.prototype.get=mapCacheGet,MapCache$2.prototype.has=mapCacheHas,MapCache$2.prototype.set=mapCacheSet;var _MapCache=MapCache$2,MapCache$1=_MapCache,FUNC_ERROR_TEXT="Expected a function";function memoize$1(i,r){if("function"!=typeof i||null!=r&&"function"!=typeof r)throw new TypeError(FUNC_ERROR_TEXT);var o=function(){var e=arguments,t=r?r.apply(this,e):e[0],n=o.cache;return n.has(t)?n.get(t):(e=i.apply(this,e),o.cache=n.set(t,e)||n,e)};return o.cache=new(memoize$1.Cache||MapCache$1),o}memoize$1.Cache=MapCache$1;var memoize_1=memoize$1,memoize=memoize$1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(e){var e=memoize(e,function(e){return t.size===MAX_MEMOIZE_SIZE&&t.clear(),e}),t=e.cache;return e}var _memoizeCapped=memoizeCapped$1,memoizeCapped=memoizeCapped$1,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped$1(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(rePropName,function(e,t,n,i){r.push(n?i.replace(reEscapeChar,"$1"):t||e)}),r}),_stringToPath=stringToPath$1;function arrayMap$2(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}var _arrayMap=arrayMap$2,Symbol$3=_Symbol,arrayMap$1=_arrayMap,isArray$6=isArray_1,isSymbol$1=isSymbol_1,INFINITY$1=1/0,symbolProto$1=_Symbol?_Symbol.prototype:undefined,symbolToString=symbolProto$1?symbolProto$1.toString:undefined;function baseToString$1(e){var t;return"string"==typeof e?e:isArray$6(e)?arrayMap$1(e,baseToString$1)+"":isSymbol$1(e)?symbolToString?symbolToString.call(e):"":"0"==(t=e+"")&&1/e==-INFINITY$1?"-0":t}var _baseToString=baseToString$1,baseToString=baseToString$1;function toString$2(e){return null==e?"":baseToString(e)}var toString_1=toString$2,isArray$5=isArray_1,isKey=_isKey,stringToPath=_stringToPath,toString$1=toString$2;function castPath$3(e,t){return isArray$5(e)?e:isKey(e,t)?[e]:stringToPath(toString$1(e))}var _castPath=castPath$3,isSymbol=isSymbol_1,INFINITY=1/0;function toKey$2(e){var t;return"string"==typeof e||isSymbol(e)?e:"0"==(t=e+"")&&1/e==-INFINITY?"-0":t}var _toKey=toKey$2,castPath$2=_castPath,toKey$1=_toKey;function baseGet$2(e,t){for(var n=0,i=(t=castPath$2(t,e)).length;null!=e&&n<i;)e=e[toKey$1(t[n++])];return n&&n==i?e:undefined}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get(e,t,n){e=null==e?undefined:baseGet$1(e,t);return e===undefined?n:e}var get_1=get,get$1=getDefaultExportFromCjs(get),toString=toString$2,idCounter=0;function uniqueId(e){var t=++idCounter;return toString(e)+t}var uniqueId_1=uniqueId,uniqueId$1=getDefaultExportFromCjs(uniqueId),ListCache$2=_ListCache;function stackClear$1(){this.__data__=new ListCache$2,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(e){var t=this.__data__,e=t["delete"](e);return this.size=t.size,e}var _stackDelete=stackDelete$1;function stackGet$1(e){return this.__data__.get(e)}var _stackGet=stackGet$1;function stackHas$1(e){return this.__data__.has(e)}var _stackHas=stackHas$1,ListCache$1=_ListCache,Map$2=_Map,MapCache=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(e,t){var n=this.__data__;if(n instanceof ListCache$1){var i=n.__data__;if(!Map$2||i.length<LARGE_ARRAY_SIZE-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new MapCache(i)}return n.set(e,t),this.size=n.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=stackClear$1,stackDelete=stackDelete$1,stackGet=stackGet$1,stackHas=stackHas$1,stackSet=stackSet$1;function Stack$1(e){e=this.__data__=new ListCache(e);this.size=e.size}Stack$1.prototype.clear=stackClear,Stack$1.prototype["delete"]=stackDelete,Stack$1.prototype.get=stackGet,Stack$1.prototype.has=stackHas,Stack$1.prototype.set=stackSet;var _Stack=Stack$1;function arrayEach$2(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}var _arrayEach=arrayEach$2,getNative$4=_getNative,defineProperty$2=function(){try{var e=getNative$4(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),_defineProperty=defineProperty$2,defineProperty$1=_defineProperty;function baseAssignValue$2(e,t,n){"__proto__"==t&&defineProperty$1?defineProperty$1(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var _baseAssignValue=baseAssignValue$2,baseAssignValue$1=_baseAssignValue,eq=eq_1,objectProto$8=Object.prototype,hasOwnProperty$6=objectProto$8.hasOwnProperty;function assignValue$2(e,t,n){var i=e[t];hasOwnProperty$6.call(e,t)&&eq(i,n)&&(n!==undefined||t in e)||baseAssignValue$1(e,t,n)}var _assignValue=assignValue$2,assignValue$1=_assignValue,baseAssignValue=_baseAssignValue;function copyObject$5(e,t,n,i){for(var r=!n,o=(n=n||{},-1),a=t.length;++o<a;){var s=t[o],u=i?i(n[s],e[s],s,n,e):undefined;u===undefined&&(u=e[s]),(r?baseAssignValue:assignValue$1)(n,s,u)}return n}var _copyObject=copyObject$5;function baseTimes$1(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}var _baseTimes=baseTimes$1,baseGetTag$3=_baseGetTag,isObjectLike$5=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(e){return isObjectLike$5(e)&&baseGetTag$3(e)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=baseIsArguments$1,isObjectLike$4=isObjectLike_1,objectProto$7=Object.prototype,hasOwnProperty$5=objectProto$7.hasOwnProperty,propertyIsEnumerable$1=objectProto$7.propertyIsEnumerable,isArguments$2=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike$4(e)&&hasOwnProperty$5.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")},isArguments_1=isArguments$2,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse,isBufferExports=(isBuffer$2.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,n=n&&n.exports===t?_root.Buffer:undefined,t=n?n.isBuffer:undefined;e.exports=t||stubFalse_1}(isBuffer$2,isBuffer$2.exports),isBuffer$2.exports),MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$1(e,t){var n=typeof e;return!!(t=null==t?MAX_SAFE_INTEGER$1:t)&&("number"==n||"symbol"!=n&&reIsUint.test(e))&&-1<e&&e%1==0&&e<t}var _isIndex=isIndex$1,MAX_SAFE_INTEGER=9007199254740991;function isLength$2(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$2=_baseGetTag,isLength$1=isLength_1,isObjectLike$3=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$3="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray$1(e){return isObjectLike$3(e)&&isLength$1(e.length)&&!!typedArrayTags[baseGetTag$2(e)]}typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(t){return function(e){return t(e)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}},_nodeUtilExports=(_nodeUtil.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,i=n&&n.exports===t&&_freeGlobal.process,t=function(){try{var e=n&&n.require&&n.require("util").types;return e?e:i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=t}(_nodeUtil,_nodeUtil.exports),_nodeUtil.exports),baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=_nodeUtilExports&&_nodeUtilExports.isTypedArray,isTypedArray$1=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$1,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$4=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray=isTypedArray$1,objectProto$6=Object.prototype,hasOwnProperty$4=objectProto$6.hasOwnProperty;function arrayLikeKeys$2(e,t){var n,i=isArray$4(e),r=!i&&isArguments$1(e),o=!i&&!r&&isBuffer$1(e),a=!i&&!r&&!o&&isTypedArray(e),s=i||r||o||a,u=s?baseTimes(e.length,String):[],d=u.length;for(n in e)!t&&!hasOwnProperty$4.call(e,n)||s&&("length"==n||o&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||isIndex(n,d))||u.push(n);return u}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$5=Object.prototype;function isPrototype$3(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||objectProto$5)}var _isPrototype=isPrototype$3;function overArg$2(t,n){return function(e){return t(n(e))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=_overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=nativeKeys$1,objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function baseKeys$1(e){if(!isPrototype$2(e))return nativeKeys(e);var t,n=[];for(t in Object(e))hasOwnProperty$3.call(e,t)&&"constructor"!=t&&n.push(t);return n}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength=isLength_1;function isArrayLike$3(e){return null!=e&&isLength(e.length)&&!isFunction(e)}var isArrayLike_1=isArrayLike$3,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=baseKeys$1,isArrayLike$2=isArrayLike_1;function keys$4(e){return(isArrayLike$2(e)?arrayLikeKeys$1:baseKeys)(e)}var keys_1=keys$4,copyObject$4=_copyObject,keys$3=keys_1;function baseAssign$1(e,t){return e&&copyObject$4(t,keys$3(t),e)}var _baseAssign=baseAssign$1;function nativeKeysIn$1(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var _nativeKeysIn=nativeKeysIn$1,isObject$2=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=nativeKeysIn$1,objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty;function baseKeysIn$1(e){if(!isObject$2(e))return nativeKeysIn(e);var t,n=isPrototype$1(e),i=[];for(t in e)("constructor"!=t||!n&&hasOwnProperty$2.call(e,t))&&i.push(t);return i}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=baseKeysIn$1,isArrayLike$1=isArrayLike_1;function keysIn$3(e){return isArrayLike$1(e)?arrayLikeKeys(e,!0):baseKeysIn(e)}var keysIn_1=keysIn$3,copyObject$3=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(e,t){return e&&copyObject$3(t,keysIn$2(t),e)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}},_cloneBufferExports=(_cloneBuffer.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,n=n&&n.exports===t?_root.Buffer:undefined,i=n?n.allocUnsafe:undefined;e.exports=function(e,t){return t?e.slice():(t=e.length,t=i?i(t):new e.constructor(t),e.copy(t),t)}}(_cloneBuffer,_cloneBuffer.exports),_cloneBuffer.exports);function copyArray$1(e,t){var n=-1,i=e.length;for(t=t||Array(i);++n<i;)t[n]=e[n];return t}var _copyArray=copyArray$1;function arrayFilter$1(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}var _arrayFilter=arrayFilter$1;function stubArray$2(){return[]}var stubArray_1=stubArray$2,arrayFilter=arrayFilter$1,stubArray$1=stubArray_1,objectProto$2=Object.prototype,propertyIsEnumerable=objectProto$2.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols$3=nativeGetSymbols$1?function(t){return null==t?[]:(t=Object(t),arrayFilter(nativeGetSymbols$1(t),function(e){return propertyIsEnumerable.call(t,e)}))}:stubArray$1,_getSymbols=getSymbols$3,copyObject$2=_copyObject,getSymbols$2=_getSymbols;function copySymbols$1(e,t){return copyObject$2(e,getSymbols$2(e),t)}var _copySymbols=copySymbols$1;function arrayPush$3(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}var _arrayPush=arrayPush$3,overArg=_overArg,getPrototype$3=_overArg(Object.getPrototypeOf,Object),_getPrototype=getPrototype$3,arrayPush$2=_arrayPush,getPrototype$2=_getPrototype,getSymbols$1=_getSymbols,stubArray=stubArray_1,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn$2=nativeGetSymbols?function(e){for(var t=[];e;)arrayPush$2(t,getSymbols$1(e)),e=getPrototype$2(e);return t}:stubArray,_getSymbolsIn=getSymbolsIn$2,copyObject$1=_copyObject,getSymbolsIn$1=getSymbolsIn$2;function copySymbolsIn$1(e,t){return copyObject$1(e,getSymbolsIn$1(e),t)}var _copySymbolsIn=copySymbolsIn$1,arrayPush$1=_arrayPush,isArray$3=isArray_1;function baseGetAllKeys$2(e,t,n){t=t(e);return isArray$3(e)?t:arrayPush$1(t,n(e))}var _baseGetAllKeys=baseGetAllKeys$2,baseGetAllKeys$1=baseGetAllKeys$2,getSymbols=_getSymbols,keys$2=keys_1;function getAllKeys$1(e){return baseGetAllKeys$1(e,keys$2,getSymbols)}var _getAllKeys=getAllKeys$1,baseGetAllKeys=baseGetAllKeys$2,getSymbolsIn=getSymbolsIn$2,keysIn$1=keysIn_1;function getAllKeysIn$2(e){return baseGetAllKeys(e,keysIn$1,getSymbolsIn)}var _getAllKeysIn=getAllKeysIn$2,getNative$3=_getNative,root$4=_root,DataView$2=_getNative(_root,"DataView"),_DataView=DataView$2,getNative$2=_getNative,root$3=_root,Promise$2=_getNative(_root,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$2=_root,Set$2=_getNative(_root,"Set"),_Set=Set$2,getNative=_getNative,root$1=_root,WeakMap$2=_getNative(_root,"WeakMap"),_WeakMap=WeakMap$2,DataView$1=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=WeakMap$2,baseGetTag$1=_baseGetTag,toSource=_toSource,mapTag$3="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$3="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$2="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$3=baseGetTag$1,_getTag=getTag$3=DataView$1&&getTag$3(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$2||Map$1&&getTag$3(new Map$1)!=mapTag$3||Promise$1&&getTag$3(Promise$1.resolve())!=promiseTag||Set$1&&getTag$3(new Set$1)!=setTag$3||WeakMap$1&&getTag$3(new WeakMap$1)!=weakMapTag$1?function(e){var t=baseGetTag$1(e),e=t==objectTag$2?e.constructor:undefined,e=e?toSource(e):"";if(e)switch(e){case dataViewCtorString:return dataViewTag$2;case mapCtorString:return mapTag$3;case promiseCtorString:return promiseTag;case setCtorString:return setTag$3;case weakMapCtorString:return weakMapTag$1}return t}:getTag$3,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function initCloneArray$1(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&hasOwnProperty$1.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var _initCloneArray=initCloneArray$1,root=_root,Uint8Array$2=_root.Uint8Array,_Uint8Array=Uint8Array$2,Uint8Array$1=Uint8Array$2;function cloneArrayBuffer$3(e){var t=new e.constructor(e.byteLength);return new Uint8Array$1(t).set(new Uint8Array$1(e)),t}var _cloneArrayBuffer=cloneArrayBuffer$3,cloneArrayBuffer$2=_cloneArrayBuffer;function cloneDataView$1(e,t){t=t?cloneArrayBuffer$2(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}var _cloneDataView=cloneDataView$1,reFlags=/\w*$/;function cloneRegExp$1(e){var t=new e.constructor(e.source,reFlags.exec(e));return t.lastIndex=e.lastIndex,t}var _cloneRegExp=cloneRegExp$1,Symbol$2=_Symbol,symbolProto=_Symbol?_Symbol.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined;function cloneSymbol$1(e){return symbolValueOf?Object(symbolValueOf.call(e)):{}}var _cloneSymbol=cloneSymbol$1,cloneArrayBuffer$1=_cloneArrayBuffer;function cloneTypedArray$1(e,t){t=t?cloneArrayBuffer$1(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var _cloneTypedArray=cloneTypedArray$1,cloneArrayBuffer=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=cloneSymbol$1,cloneTypedArray=cloneTypedArray$1,boolTag$1="[object Boolean]",dateTag$1="[object Date]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag$1(e,t,n){var i=e.constructor;switch(t){case arrayBufferTag$1:return cloneArrayBuffer(e);case boolTag$1:case dateTag$1:return new i(+e);case dataViewTag$1:return cloneDataView(e,n);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(e,n);case mapTag$2:return new i;case numberTag$1:case stringTag$1:return new i(e);case regexpTag$1:return cloneRegExp(e);case setTag$2:return new i;case symbolTag$1:return cloneSymbol(e)}}var _initCloneByTag=initCloneByTag$1,isObject$1=isObject_1,objectCreate=Object.create,baseCreate$1=function(){function t(){}return function(e){if(!isObject$1(e))return{};if(objectCreate)return objectCreate(e);t.prototype=e;e=new t;return t.prototype=undefined,e}}(),_baseCreate=baseCreate$1,baseCreate=baseCreate$1,getPrototype$1=_getPrototype,isPrototype=_isPrototype;function initCloneObject$1(e){return"function"!=typeof e.constructor||isPrototype(e)?{}:baseCreate(getPrototype$1(e))}var _initCloneObject=initCloneObject$1,getTag$2=_getTag,isObjectLike$2=isObjectLike_1,mapTag$1="[object Map]";function baseIsMap$1(e){return isObjectLike$2(e)&&getTag$2(e)==mapTag$1}var _baseIsMap=baseIsMap$1,baseIsMap=baseIsMap$1,baseUnary$1=_baseUnary,nodeUtil$1=_nodeUtilExports,nodeIsMap=_nodeUtilExports&&_nodeUtilExports.isMap,isMap$1=nodeIsMap?baseUnary$1(nodeIsMap):baseIsMap,isMap_1=isMap$1,getTag$1=_getTag,isObjectLike$1=isObjectLike_1,setTag$1="[object Set]";function baseIsSet$1(e){return isObjectLike$1(e)&&getTag$1(e)==setTag$1}var _baseIsSet=baseIsSet$1,baseIsSet=baseIsSet$1,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsSet=_nodeUtilExports&&_nodeUtilExports.isSet,isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,isSet_1=isSet$1,Stack=_Stack,arrayEach$1=_arrayEach,assignValue=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer=_cloneBufferExports,copyArray=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys=_getAllKeys,getAllKeysIn$1=_getAllKeysIn,getTag=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject=_initCloneObject,isArray$2=isArray_1,isBuffer=isBufferExports,isMap=isMap_1,isObject=isObject_1,isSet=isSet$1,keys$1=keys_1,keysIn=keysIn_1,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$1=4,argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",objectTag$1="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};function baseClone$1(n,i,r,e,t,o){var a,s=i&CLONE_DEEP_FLAG$1,u=i&CLONE_FLAT_FLAG$1,d=i&CLONE_SYMBOLS_FLAG$1;if((a=r?t?r(n,e,t,o):r(n):a)===undefined){if(!isObject(n))return n;e=isArray$2(n);if(e){if(a=initCloneArray(n),!s)return copyArray(n,a)}else{var c=getTag(n),l=c==funcTag||c==genTag;if(isBuffer(n))return cloneBuffer(n,s);if(c==objectTag$1||c==argsTag||l&&!t){if(a=u||l?{}:initCloneObject(n),!s)return u?copySymbolsIn(n,baseAssignIn(a,n)):copySymbols(n,baseAssign(a,n))}else{if(!cloneableTags[c])return t?n:{};a=initCloneByTag(n,c,s)}}l=(o=o||new Stack).get(n);if(l)return l;o.set(n,a),isSet(n)?n.forEach(function(e){a.add(baseClone$1(e,i,r,e,n,o))}):isMap(n)&&n.forEach(function(e,t){a.set(t,baseClone$1(e,i,r,t,n,o))});var p=e?undefined:(d?u?getAllKeysIn$1:getAllKeys:u?keysIn:keys$1)(n);arrayEach$1(p||n,function(e,t){p&&(e=n[t=e]),assignValue(a,t,baseClone$1(e,i,r,t,n,o))})}return a}cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag$1]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;var _baseClone=baseClone$1;function last$1(e){var t=null==e?0:e.length;return t?e[t-1]:undefined}var last_1=last$1;function baseSlice$1(e,t,n){for(var i=-1,r=e.length,o=((n=r<n?r:n)<0&&(n+=r),r=n<(t=t<0?r<-t?0:r+t:t)?0:n-t>>>0,t>>>=0,Array(r));++i<r;)o[i]=e[i+t];return o}var _baseSlice=baseSlice$1,baseGet=_baseGet,baseSlice=baseSlice$1;function parent$1(e,t){return t.length<2?e:baseGet(e,baseSlice(t,0,-1))}var _parent=parent$1,castPath$1=_castPath,last=last$1,parent=parent$1,toKey=_toKey;function baseUnset$1(e,t){return t=castPath$1(t,e),null==(e=parent(e,t))||delete e[toKey(last(t))]}var _baseUnset=baseUnset$1,baseGetTag=_baseGetTag,getPrototype=_getPrototype,isObjectLike=isObjectLike_1,objectTag="[object Object]",funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$1(e){return!(!isObjectLike(e)||baseGetTag(e)!=objectTag)&&(null===(e=getPrototype(e))||"function"==typeof(e=hasOwnProperty.call(e,"constructor")&&e.constructor)&&e instanceof e&&funcToString.call(e)==objectCtorString)}var isPlainObject_1=isPlainObject$1,isPlainObject=isPlainObject$1;function customOmitClone$1(e){return isPlainObject(e)?undefined:e}var _customOmitClone=customOmitClone$1,Symbol$1=_Symbol,isArguments=isArguments_1,isArray$1=isArray_1,spreadableSymbol=_Symbol?_Symbol.isConcatSpreadable:undefined;function isFlattenable$1(e){return isArray$1(e)||isArguments(e)||!!(spreadableSymbol&&e&&e[spreadableSymbol])}var _isFlattenable=isFlattenable$1,arrayPush=_arrayPush,isFlattenable=isFlattenable$1;function baseFlatten$1(e,t,n,i,r){var o=-1,a=e.length;for(n=n||isFlattenable,r=r||[];++o<a;){var s=e[o];0<t&&n(s)?1<t?baseFlatten$1(s,t-1,n,i,r):arrayPush(r,s):i||(r[r.length]=s)}return r}var _baseFlatten=baseFlatten$1,baseFlatten=baseFlatten$1;function flatten$1(e){return(null==e?0:e.length)?baseFlatten(e,1):[]}var flatten_1=flatten$1;function apply$1(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var _apply=apply$1,apply=apply$1,nativeMax=Math.max;function overRest$1(o,a,s){return a=nativeMax(a===undefined?o.length-1:a,0),function(){for(var e=arguments,t=-1,n=nativeMax(e.length-a,0),i=Array(n);++t<n;)i[t]=e[a+t];for(var t=-1,r=Array(a+1);++t<a;)r[t]=e[t];return r[a]=s(i),apply(o,this,r)}}var _overRest=overRest$1;function constant$1(e){return function(){return e}}var constant_1=constant$1;function identity$2(e){return e}var identity_1=identity$2,constant=constant$1,defineProperty=_defineProperty,identity$1=identity_1,baseSetToString$1=defineProperty?function(e,t){return defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:constant(t),writable:!0})}:identity_1,_baseSetToString=baseSetToString$1,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut$1(n){var i=0,r=0;return function(){var e=nativeNow(),t=HOT_SPAN-(e-r);if(r=e,0<t){if(++i>=HOT_COUNT)return arguments[0]}else i=0;return n.apply(undefined,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=shortOut$1,setToString$1=shortOut$1(_baseSetToString),_setToString=setToString$1,flatten=flatten_1,overRest=_overRest,setToString=setToString$1;function flatRest$1(e){return setToString(overRest(e,undefined,flatten),e+"")}var _flatRest=flatRest$1,arrayMap=_arrayMap,baseClone=_baseClone,baseUnset=_baseUnset,castPath=_castPath,copyObject=_copyObject,customOmitClone=_customOmitClone,flatRest=flatRest$1,getAllKeysIn=_getAllKeysIn,CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4,omit=flatRest$1(function(t,e){var n={};if(null!=t)for(var i=!1,r=(e=arrayMap(e,function(e){return e=castPath(e,t),i=i||1<e.length,e}),copyObject(t,getAllKeysIn(t),n),i&&(n=baseClone(n,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone)),e.length);r--;)baseUnset(n,e[r]);return n}),omit_1=omit,omit$1=getDefaultExportFromCjs(omit);function doesExist(e){return!(null==e)}const MESSAGE_PROMISE="promise";function Message(e,t,n){this.name=e,this.type=t,this.data=n}Message.prototype.toString=function(){return`Message.${this.type} - `+this.name};const createMessage=(e,t,n)=>{e=new Message(e,t,n);return t===MESSAGE_PROMISE&&(e.requestId=uniqueId$1()),e},fromEvent=e=>{try{var{name:t,type:n,isResponse:i,data:r,requestId:o,sender:a}=e.data||{},s=new Message(t,n,doesExist(r)?JSON.parse(r):undefined);return s.requestId=o,s.sender=a,s.destination=e.source,s.isResponse=i,s}catch(u){return!1}},serialize=e=>{var t=omit$1(e,["destination","toString","data"]);return t.data=JSON.stringify(e.data,(e,t)=>"function"==typeof t||t instanceof RegExp?t.toString?t.toString():undefined:t),t},asResponse=e=>(e.isResponse=!0,e),pipe=(...e)=>r=>{return[].concat(e).reduce((e,t,n,i)=>{e=t(e,r);return e||i.splice(n,i.length-n),e},r)},tap=n=>(e,...t)=>(n(e,...t),e);function createBaseFor$1(u){return function(e,t,n){for(var i=-1,r=Object(e),o=n(e),a=o.length;a--;){var s=o[u?a:++i];if(!1===t(r[s],s,r))break}return e}}var _createBaseFor=createBaseFor$1,createBaseFor=createBaseFor$1,baseFor$1=createBaseFor$1(),_baseFor=baseFor$1,baseFor=baseFor$1,keys=keys_1;function baseForOwn$1(e,t){return e&&baseFor(e,t,keys)}var _baseForOwn=baseForOwn$1,isArrayLike=isArrayLike_1;function createBaseEach$1(o,a){return function(e,t){if(null!=e){if(!isArrayLike(e))return o(e,t);for(var n=e.length,i=a?n:-1,r=Object(e);(a?i--:++i<n)&&!1!==t(r[i],i,r););}return e}}var _createBaseEach=createBaseEach$1,baseForOwn=baseForOwn$1,createBaseEach=createBaseEach$1,baseEach$1=createBaseEach$1(baseForOwn$1),_baseEach=baseEach$1,identity=identity_1;function castFunction$1(e){return"function"==typeof e?e:identity}var _castFunction=castFunction$1,arrayEach=_arrayEach,baseEach=baseEach$1,castFunction=castFunction$1,isArray=isArray_1;function forEach(e,t){return(isArray(e)?arrayEach:baseEach)(e,castFunction(t))}var forEach_1=forEach,each=forEach,each$1=getDefaultExportFromCjs(forEach);const dead="dead_connection",disconnected="disconnected",connected="connected",isConnected=e=>e<1e4,isDisconnected=e=>1e4<e,isDead=e=>3e4<e,state$1={lastMessageReceivedAt:0,currentConnectionQuality:disconnected,changeCallbacks:{},evalCallbacks:{}},triggerConnectionStatusChanged=()=>{each$1(state$1.changeCallbacks,e=>{e(state$1.currentConnectionQuality)})},triggerEval=()=>{each$1(state$1.evalCallbacks,e=>{e(state$1.currentConnectionQuality)})},setConnectionStatus=e=>{e!==state$1.currentConnectionQuality&&(state$1.currentConnectionQuality=e,triggerConnectionStatusChanged())},evaluateConnectionQuality=()=>{var e;0===state$1.lastMessageReceivedAt?setConnectionStatus(disconnected):(e=Date.now()-state$1.lastMessageReceivedAt,isConnected(e)?setConnectionStatus(connected):isDisconnected(e)&&(isDead(e)?setConnectionStatus(dead):setConnectionStatus(disconnected)),triggerEval())};let stopFn;const start=(e=0)=>{const t=setInterval(evaluateConnectionQuality,100);stopFn=()=>clearInterval(t)},stop=()=>{stopFn&&stopFn(),resetMonitor()};let _listenerId=0;const onStatusEval=e=>{if(isFunction$3(e)){const t=_listenerId++;return state$1.evalCallbacks[t]=e,()=>{delete state$1.evalCallbacks[t]}}},markTime=(e=Date.now())=>{state$1.lastMessageReceivedAt=e},resetMonitor=()=>{state$1.currentConnectionQuality=disconnected,state$1.lastMessageReceivedAt=0},state={appName:undefined,connectionName:undefined,frameId:undefined,pendingRequests:{},topics:{},senderIds:{},originProvider:undefined,destinationProvider:undefined},getListener=()=>""+state.appName+state.connectionName+`(${state.frameId})`,_send=e=>{e.sender||(e.sender=getListener());var t=e.destination||state.destinationProvider(),n=serialize(e),i=getPortForSender(e.sender),r=hasSenderTriedToUpgradeToMessageChannel(e.sender);i||r?i?i.postMessage(n):t.postMessage(n,state.originProvider()):(r=new MessageChannel,addPort(r.port1,e.sender),t.postMessage(n,state.originProvider(),[r.port2]))},promise=(r,o,a=1e3)=>new Promise$4((e,t)=>{const n=createMessage(r,MESSAGE_PROMISE,o),i=setTimeout$1(()=>{t(r+" timeout"),clearPendingRequest(n),downgradeToPostMessage(n)},a);addPendingRequest(n,()=>clearTimeout(i),e,t),_send(n)}),addSenderId=e=>{state.senderIds[e]||(state.senderIds[e]={port:undefined,hasTriedToUpgradeToMessageChannel:!1})},getSenderInfo=e=>(state.senderIds[e]||addSenderId(e),state.senderIds[e]),getPortForSender=e=>getSenderInfo(e).port,hasSenderTriedToUpgradeToMessageChannel=e=>getSenderInfo(e).hasTriedToUpgradeToMessageChannel,addPendingRequest=(e,t,n,i)=>{state.pendingRequests[e.requestId]={message:e,clearTimeoutfn:t,resolve:n,reject:i}},resolveRequest=e=>{var t=state.pendingRequests[e.requestId];return t&&(t.resolve(e.data),clearPendingRequest(e)),e},clearPendingRequest=e=>{var t=e["requestId"];return state.pendingRequests[t].clearTimeoutfn(),delete state.pendingRequests[t],e},updateSubscriptions=t=>{var e=state.topics[t.name];return e&&e.forEach(e=>e(t.data)),t},PING_MSG="message::ping",sendPing=()=>{promise(PING_MSG)["catch"](()=>{console.log("message::ping timedout")})},dispatchMessage=t=>{var e;return t&&!t.isResponse&&(t.name===PING_MSG?_send(asResponse(t)):(e=state.routeHandlerLookup(t.name))?e(t,e=>{t.data=e,_send(asResponse(t))}):console.log(getListener(),"No route handler for "+t.name,t)),t},commonFns=pipe(resolveRequest,updateSubscriptions,dispatchMessage,tap(()=>{markTime()})),filterWrongOrigin=e=>("*"===state.originProvider()||e.origin===state.originProvider())&&e,filterWrongSender=e=>{var t=get$1(e,"data.sender");return!(!t||"string"!=typeof t||!t.includes(state.appName))&&e},addPort=(e,t)=>{t=getSenderInfo(t);t.port=e,t.hasTriedToUpgradeToMessageChannel=!0,t.port.onmessage=pipe(fromEvent,commonFns)},removePort=e=>{e=getSenderInfo(e);e.port=undefined,e.hasTriedToUpgradeToMessageChannel=!1},upgradeToChannel=(e,t)=>{return!getSenderInfo(e.sender).hasTriedToUpgradeToMessageChannel&&t.ports&&t.ports[0]&&addPort(t.ports[0],e.sender),e},downgradeToPostMessage=e=>{removePort(e.sender)};let _stopListening=()=>{};const stopListening=()=>{_stopListening(),_stopListening=()=>{},stop()},notConnectedListener=throttle$1(e=>{"connected"!==e&&state.usePingAutoReconnect&&sendPing()},1e3),startListening=(e,t,n,i,r,o=!1,a)=>{if(window.addEventListener){state.appName=e,state.frameId=t,state.routeHandlerLookup=n,state.usePingAutoReconnect=o,state.connectionName=a||"",state.originProvider=i||(()=>window.location.origin||"*"),state.destinationProvider=r||(()=>window.parent||window.top),start(),onStatusEval(notConnectedListener);const s=pipe(filterWrongOrigin,filterWrongSender,fromEvent,upgradeToChannel,commonFns);window.addEventListener("message",s),_stopListening=()=>window.removeEventListener("message",s)}};function VocPortal(){let r,p;return{name:"VocPortal",initialize:function(e,t){r=e;e=(p=t).EventTracer.addTracerIds({}).frameId;this.removeResizeEvent=r.attachEvent(window,"resize",h),startListening("VocPortal",e,n,()=>"*")},routeHandlerLookup:n,queryMessageHandler:t,resizeMessageHandler:i,teardown:function(){this.removeResizeEvent&&this.removeResizeEvent();stopListening()}};function n(e){switch(e){case"pendo-voc::query":return t;case"pendo-voc::resize":return i;default:return undefined}}function h(){var e=document.getElementById("pendo-resource-center-container"),e=r.dom(e);p.sizeElements(e)}function t(e,t){var n=r.getSerializedMetadata(),i=!!r.designer||p.store.getters["preview/isInPreviewMode"]();t({apiKey:r.apiKey,url:r.url.externalizeURL(),visitor:n.visitor,account:n.account,parentAccount:n.parentAccount,sandboxMode:i})}function i(e){try{var t,n,i,r,{value:o,unit:a,isImportant:s}=e.data.width,{value:u,unit:d,isImportant:c}=e.data.height;"number"==typeof o&&"number"==typeof u&&((t=["px","%","vh","vw"]).includes(a)&&t.includes(d))&&(n=""+o+a+(s?" !important":""),i=""+u+d+(c?" !important":""),r=document.getElementById("pendo-resource-center-container"),p.util.addInlineStyles("pendo-voc-portal-styles",`#pendo-resource-center-container:has(iframe[src*="portal"][src*="mode=rc"]) {
118
113
  width: ${n};
119
114
  height: ${i};
120
- }
121
- }`,p())}catch(c){l.log.error("Error while adjusting RC module",c)}}}function isFeedbackOn(e){return e.ConfigReader.get("pendoFeedback")}function isUnsupportedIE(e){return!e.sniffer.isMinimumIEVersion(10)}function Feedback(){var i="feedback_notification_count",a="",s="",u="",r="",o=!1,d="",c=!1;const l="feedback_ping_sent",F=36e5;var p={feedbackIframe:"feedback-widget_iframe",feedbackTrigger:"feedback-trigger",feedbackWidget:"feedback-widget",feedbackOverlay:"feedback-overlay",feedbackTriggerButton:"feedback-trigger-button",feedbackStyles:"pendo-feedback-styles",feedbackFrameStyles:"pendo-feedback-visible-buttons-styles"};let h,f;return{name:"Feedback",initialize:function(e,t){h=e,f=t;var n={ping:w,init:P,initialized:z,loginAndRedirect:E,openFeedback:O,initializeFeedbackOnce:_,isFeedbackLoaded:j,convertPendoToFeedbackOptions:$,isUnsupportedIE:e._.partial(isUnsupportedIE,t),removeFeedbackWidget:H};return e.feedback=n,e.getFeedbackSettings=W,t.Events.identify.on(m),t.Events.metadata.on(m),t.Events.ready.on(v),t.agentStorage.registry.addLocal(i),t.agentStorage.registry.addLocal(l),{validate:g}},teardown:function(){H(),f.Events.identify.off(m),f.Events.metadata.off(m),f.Events.ready.off(v),delete h.feedback,delete h.getFeedbackSettings},validate:g};function g(e,t){t=isFeedbackOn(t);return t&&isUnsupportedIE(e)?(console.warn("The current version of IE is not supported by Pendo Feedback"),!1):t}function t(){var e=L();c?w($(e)):!isFeedbackOn(f)||f.ConfigReader.get("disableFeedbackAutoInit")||f.ConfigReader.get("disableFeedback",!1)||h._.isEmpty(e)||P(e,f.ConfigReader.get("feedbackSettings"))["catch"](h._.noop)}function m(e){e=h._.get(e,"data.0.visitor_id")||h._.get(e,"data.0.options.visitor.id");h.isAnonymousVisitor(e)||t()}function v(){t()}function y(){return u+"/html/widget/notLoaded.html"}function n(e){return e=e||$(L()),f.agentStorage.read(l)===b(e)}function b(e){return JSON.stringify(e)}function w(e){if(!n(e)){t=e,f.agentStorage.write(l,b(t),F);t=S(e);if(t.data&&"{}"!==t.data&&"null"!==t.data)return h.ajax.postJSON(a+"/widget/pendo_ping",t).then(e=>{e=e.data.notifications;f.agentStorage.write(i,e),I()})["catch"](()=>{f.agentStorage.clear(l)})}var t;return f.q.resolve()}function S(e){return e=e||$(L()),{data:JSON.stringify(e)}}function I(){var e,t=h.dom("#feedback-trigger-notification");0!==t.length&&(e=f.agentStorage.read(i)||0,0<parseInt(e,10)?h._.each(t,function(e){h.dom(e).css({visibility:"visible"})}):h._.each(t,function(e){h.dom(e).css({visibility:"hidden"})}))}function _(){return c&&n()?f.q.resolve():P(L(),f.ConfigReader.get("feedbackSettings"))}function E(e){return _().then(function(){if(h._.isUndefined(e)&&(e={}),"A"===h._.get(e,"anchor.nodeName","").toUpperCase())return t=window.open(y(),Math.random().toString(36).substring(7)),T().then(function(e){t.location=e}),!1;var t;T().then(function(e){window.location.href=e})},function(){})}function C(e){var t=document.createElement("a");return t.href=e,t.host}function T(){var e=S();if(e.data&&"{}"!==e.data&&"null"!==e.data)return h.ajax.postJSON(a+"/widget/token",e).then(function(e){var t;return t=e.data.login_url,r=C(t),e.data.login_url})}function x(){return document.getElementById(p.feedbackWidget)}function k(){return document.getElementById(p.feedbackIframe)}function A(){var e=k();return e||(G(),e=k()),e}function O(e){var t,n;B()&&(e&&e.preventDefault&&e.preventDefault(),(t=A()).src&&t.src!==y()||T().then(function(e){t.src=e+"&inWidget=true"}),(e=h.dom("#"+p.feedbackWidget))&&((n=h.dom(document.createElement("div"))).attr("id","feedback-overlay"),n.css({position:"fixed",top:"0",right:"0",bottom:"0",left:"0",background:"rgba(0, 0, 0, 0.4)","z-index":"9000",opacity:"0",animation:"pendoFeedbackFadeIn 0.5s 0s 1 alternate both","-webkit-animation":"pendoFeedbackFadeIn 0.5s 0s 1 alternate both"}),n.appendTo(e.getParent())),h.dom.addClass(x(),"visible"),N("user.widget.opened"))}function R(){var e,t;e=document.getElementById(p.feedbackWidget),t=document.getElementById(p.feedbackOverlay),e&&t&&(e=document.getElementById(p.feedbackOverlay)).parentNode.removeChild(e),h.dom.removeClass(x(),"visible"),N("user.widget.closed")}function N(e){var t=S();t.event=e,h.ajax.postJSON(a+"/analytics",t)}function D(){window.addEventListener("message",function(e){var t=e.origin||e.originalEvent.origin;if(t=t,r?C(t)===r:C(t)===C(u)){var t=e.data.message,n=e.data.data;switch(t){case"close-receptive-widget":R();break;case"open-receptive":E();break;case"update-receptive-notification-count":f.agentStorage.write(i,n.count),I();break;case"handle-logout":A().src=y(),R();break;case"loaded-receptive-widget":o=!0}}},!1)}function M(e,t){var n;h.dom("#"+e)[0]||((n=h.dom(document.createElement("style"))).attr("id",e),n.html(t),n.appendTo(document.head))}function U(e){var t,n,i=h._.extend(e,{triggerColor:"#"+e.triggerColor,triggerPosition:e.triggerPosition.toLowerCase()}),r=("undefined"!=typeof Turbolinks&&document.addEventListener("turbolinks:before-visit",function(e){var t=document.getElementById(p.feedbackIframe);t&&(t.src=y())}),function(e){e=e.triggerPosition.split("_");return{horizontalPosition:e[1],verticalPosition:e[0]}}(i));M(p.feedbackStyles,(n="left"===(n=r.horizontalPosition)?(t="@-webkit-keyframes pendoFeedbackSlideFrom-left{from{opacity:0;transform:translate(-460px,0)}to{opacity:1;transform:translate(0,0)}}@keyframes pendoFeedbackSlideFrom-left{from{opacity:0;transform:translate(-460px,0)}to{opacity:1;transform:translate(0,0)}}","@media only screen and (max-width:470px){#feedback-widget.buttonIs-left.visible{width:100%}}"):(t="@-webkit-keyframes pendoFeedbackSlideFrom-right{from{transform:translate(-460px,0)}to{transform:translate(0,0)}}@keyframes pendoFeedbackSlideFrom-right{from{opacity:0;transform:translate(460px,0)}to{opacity:1;transform:translate(0,0)}}","@media only screen and (max-width:470px){#feedback-widget.buttonIs-right.visible{width:100%;right:2%}}"),"@media only screen and (max-device-width:1112px){#feedback-widget{overflow-y:scroll}}@-webkit-keyframes pendoFeedbackSlideIn{from{opacity:0;transform:translate(145px,0) rotate(270deg) translateY(-50%)}to{opacity:1;transform:translate(50%,0) rotate(270deg) translateY(-50%)}}@keyframes pendoFeedbackSlideIn{from{opacity:0;transform:translate(145px,0) rotate(270deg) translateY(-50%)}to{opacity:1;transform:translate(50%,0) rotate(270deg) translateY(-50%)}}@-webkit-keyframes pendoFeedbackSlideIn-left{from{opacity:0;transform:rotate(270deg) translateX(-55%) translateY(-55%)}to{opacity:1;transform:rotate(270deg) translateX(-55%) translateY(0)}}@keyframes pendoFeedbackSlideIn-left{from{opacity:0;transform:rotate(270deg) translateX(-55%) translateY(-55%)}to{opacity:1;transform:rotate(270deg) translateX(-55%) translateY(0)}}"+t+"@-webkit-keyframes pendoFeedbackPulse{from{-webkit-transform:scale(1,1);transform:scale(1,1)}50%{-webkit-transform:scale(1.15,1.15);transform:scale(1.15,1.15)}to{-webkit-transform:scale(1,1);transform:scale(1,1)}}@keyframes pendoFeedbackPulse{from{-webkit-transform:scale(1,1);transform:scale(1,1)}50%{-webkit-transform:scale(1.15,1.15);transform:scale(1.15,1.15)}to{-webkit-transform:scale(1,1);transform:scale(1,1)}}@-webkit-keyframes pendoFeedbackFadeIn{from{opacity:0}to{opacity:1}}@keyframes pendoFeedbackFadeIn{from{opacity:0}to{opacity:1}}"+n+"#feedback-trigger button:focus,#feedback-trigger button:hover{box-shadow:0 -5px 20px rgba(0,0,0,.19);outline:0;background:#3e566f}")),e.customTrigger||(t=i,n=r,M("pendo-feedback-trigger-styles",`
115
+ ._pendo-step-container-size {
116
+ width: ${n};
117
+ height: ${i};
118
+ }
119
+ }`,r),h())}catch(l){p.log.error("Error while adjusting RC module",l)}}}function isFeedbackOn(e){return e.ConfigReader.get("pendoFeedback")}function isUnsupportedIE(e){return!e.sniffer.isMinimumIEVersion(10)}function Feedback(){var i="feedback_notification_count",a="",s="",u="",r="",o=!1,d="",c=!1;const l="feedback_ping_sent",$=36e5;var p={feedbackIframe:"feedback-widget_iframe",feedbackTrigger:"feedback-trigger",feedbackWidget:"feedback-widget",feedbackOverlay:"feedback-overlay",feedbackTriggerButton:"feedback-trigger-button",feedbackStyles:"pendo-feedback-styles",feedbackFrameStyles:"pendo-feedback-visible-buttons-styles"};let h,f;return{name:"Feedback",initialize:function(e,t){h=e,f=t;var n={ping:w,init:L,initialized:z,loginAndRedirect:E,openFeedback:O,initializeFeedbackOnce:_,isFeedbackLoaded:j,convertPendoToFeedbackOptions:P,isUnsupportedIE:e._.partial(isUnsupportedIE,t),removeFeedbackWidget:F};return e.feedback=n,e.getFeedbackSettings=H,t.Events.identify.on(m),t.Events.metadata.on(m),t.Events.ready.on(v),t.agentStorage.registry.addLocal(i),t.agentStorage.registry.addLocal(l),{validate:g}},teardown:function(){F(),f.Events.identify.off(m),f.Events.metadata.off(m),f.Events.ready.off(v),delete h.feedback,delete h.getFeedbackSettings},validate:g};function g(e,t){t=isFeedbackOn(t);return t&&isUnsupportedIE(e)?(console.warn("The current version of IE is not supported by Pendo Feedback"),!1):t}function t(){var e=M();c?w(P(e)):!isFeedbackOn(f)||f.ConfigReader.get("disableFeedbackAutoInit")||f.ConfigReader.get("disableFeedback",!1)||h._.isEmpty(e)||L(e,f.ConfigReader.get("feedbackSettings"))["catch"](h._.noop)}function m(e){e=h._.get(e,"data.0.visitor_id")||h._.get(e,"data.0.options.visitor.id");(h.isAnonymousVisitor(e)?F:t)()}function v(){t()}function y(){return u+"/html/widget/notLoaded.html"}function n(e){return e=e||P(M()),f.agentStorage.read(l)===b(e)}function b(e){return JSON.stringify(e)}function w(e){if(!n(e)){t=e,f.agentStorage.write(l,b(t),$);t=S(e);if(t.data&&"{}"!==t.data&&"null"!==t.data)return h.ajax.postJSON(a+"/widget/pendo_ping",t).then(e=>{e=e.data.notifications;f.agentStorage.write(i,e),I()})["catch"](()=>{f.agentStorage.clear(l)})}var t;return f.q.resolve()}function S(e){return e=e||P(M()),{data:JSON.stringify(e)}}function I(){var e,t=h.dom("#feedback-trigger-notification");0!==t.length&&(e=f.agentStorage.read(i)||0,0<parseInt(e,10)?h._.each(t,function(e){h.dom(e).css({visibility:"visible"})}):h._.each(t,function(e){h.dom(e).css({visibility:"hidden"})}))}function _(){return c&&n()?f.q.resolve():L(M(),f.ConfigReader.get("feedbackSettings"))}function E(e){return _().then(function(){if(h._.isUndefined(e)&&(e={}),"A"===h._.get(e,"anchor.nodeName","").toUpperCase())return t=window.open(y(),Math.random().toString(36).substring(7)),T().then(function(e){t.location=e}),!1;var t;T().then(function(e){window.location.href=e})},function(){})}function C(e){var t=document.createElement("a");return t.href=e,t.host}function T(){var e=S();if(e.data&&"{}"!==e.data&&"null"!==e.data)return h.ajax.postJSON(a+"/widget/token",e).then(function(e){var t;return t=e.data.login_url,r=C(t),e.data.login_url})}function x(){return document.getElementById(p.feedbackWidget)}function k(){return document.getElementById(p.feedbackIframe)}function A(){var e=k();return e||(G(),e=k()),e}function O(e){var t,n;B()&&(e&&e.preventDefault&&e.preventDefault(),(t=A()).src&&t.src!==y()||T().then(function(e){t.src=e+"&inWidget=true"}),(e=h.dom("#"+p.feedbackWidget))&&((n=h.dom(document.createElement("div"))).attr("id","feedback-overlay"),n.css({position:"fixed",top:"0",right:"0",bottom:"0",left:"0",background:"rgba(0, 0, 0, 0.4)","z-index":"9000",opacity:"0",animation:"pendoFeedbackFadeIn 0.5s 0s 1 alternate both","-webkit-animation":"pendoFeedbackFadeIn 0.5s 0s 1 alternate both"}),n.appendTo(e.getParent())),h.dom.addClass(x(),"visible"),N("user.widget.opened"))}function R(){var e,t;e=document.getElementById(p.feedbackWidget),t=document.getElementById(p.feedbackOverlay),e&&t&&(e=document.getElementById(p.feedbackOverlay)).parentNode.removeChild(e),h.dom.removeClass(x(),"visible"),N("user.widget.closed")}function N(e){var t=S();t.event=e,h.ajax.postJSON(a+"/analytics",t)}function D(){window.addEventListener("message",function(e){var t=e.origin||e.originalEvent.origin;if(t=t,r?C(t)===r:C(t)===C(u)){var t=e.data.message,n=e.data.data;switch(t){case"close-receptive-widget":R();break;case"open-receptive":E();break;case"update-receptive-notification-count":f.agentStorage.write(i,n.count),I();break;case"handle-logout":A().src=y(),R();break;case"loaded-receptive-widget":o=!0}}},!1)}function U(e){var t,n,i=h._.extend(e,{triggerColor:"#"+e.triggerColor,triggerPosition:e.triggerPosition.toLowerCase()}),r=("undefined"!=typeof Turbolinks&&document.addEventListener("turbolinks:before-visit",function(e){var t=document.getElementById(p.feedbackIframe);t&&(t.src=y())}),function(e){e=e.triggerPosition.split("_");return{horizontalPosition:e[1],verticalPosition:e[0]}}(i));f.util.addInlineStyles(p.feedbackStyles,(n="left"===(n=r.horizontalPosition)?(t="@-webkit-keyframes pendoFeedbackSlideFrom-left{from{opacity:0;transform:translate(-460px,0)}to{opacity:1;transform:translate(0,0)}}@keyframes pendoFeedbackSlideFrom-left{from{opacity:0;transform:translate(-460px,0)}to{opacity:1;transform:translate(0,0)}}","@media only screen and (max-width:470px){#feedback-widget.buttonIs-left.visible{width:100%}}"):(t="@-webkit-keyframes pendoFeedbackSlideFrom-right{from{transform:translate(-460px,0)}to{transform:translate(0,0)}}@keyframes pendoFeedbackSlideFrom-right{from{opacity:0;transform:translate(460px,0)}to{opacity:1;transform:translate(0,0)}}","@media only screen and (max-width:470px){#feedback-widget.buttonIs-right.visible{width:100%;right:2%}}"),"@media only screen and (max-device-width:1112px){#feedback-widget{overflow-y:scroll}}@-webkit-keyframes pendoFeedbackSlideIn{from{opacity:0;transform:translate(145px,0) rotate(270deg) translateY(-50%)}to{opacity:1;transform:translate(50%,0) rotate(270deg) translateY(-50%)}}@keyframes pendoFeedbackSlideIn{from{opacity:0;transform:translate(145px,0) rotate(270deg) translateY(-50%)}to{opacity:1;transform:translate(50%,0) rotate(270deg) translateY(-50%)}}@-webkit-keyframes pendoFeedbackSlideIn-left{from{opacity:0;transform:rotate(270deg) translateX(-55%) translateY(-55%)}to{opacity:1;transform:rotate(270deg) translateX(-55%) translateY(0)}}@keyframes pendoFeedbackSlideIn-left{from{opacity:0;transform:rotate(270deg) translateX(-55%) translateY(-55%)}to{opacity:1;transform:rotate(270deg) translateX(-55%) translateY(0)}}"+t+"@-webkit-keyframes pendoFeedbackPulse{from{-webkit-transform:scale(1,1);transform:scale(1,1)}50%{-webkit-transform:scale(1.15,1.15);transform:scale(1.15,1.15)}to{-webkit-transform:scale(1,1);transform:scale(1,1)}}@keyframes pendoFeedbackPulse{from{-webkit-transform:scale(1,1);transform:scale(1,1)}50%{-webkit-transform:scale(1.15,1.15);transform:scale(1.15,1.15)}to{-webkit-transform:scale(1,1);transform:scale(1,1)}}@-webkit-keyframes pendoFeedbackFadeIn{from{opacity:0}to{opacity:1}}@keyframes pendoFeedbackFadeIn{from{opacity:0}to{opacity:1}}"+n+"#feedback-trigger button:focus,#feedback-trigger button:hover{box-shadow:0 -5px 20px rgba(0,0,0,.19);outline:0;background:#3e566f}")),e.customTrigger||(t=i,n=r,f.util.addInlineStyles("pendo-feedback-trigger-styles",`
122
120
  #feedback-trigger button:hover {
123
121
  box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;
124
122
  outline: none !important;
@@ -129,8 +127,8 @@ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{
129
127
  outline: none !important;
130
128
  background: #3e566f !important;
131
129
  }
132
- `),e=function(e){var t=function(e){return"left"===e.horizontalPosition?{"transform-origin":"center left",left:"23px",animation:"pendoFeedbackSlideIn-left 0.2s 0s 1 alternate forwards","-webkit-animation":"pendoFeedbackSlideIn-left 0.2s 0s 1 alternate forwards"}:{right:"0px",animation:"pendoFeedbackSlideIn 0.2s 0s 1 alternate forwards","-webkit-animation":"pendoFeedbackSlideIn 0.2s 0s 1 alternate forwards"}}(e),e=function(e){switch(e.verticalPosition){case"top":return{top:" 10%"};case"middle":return{top:" 45%"};case"bottom":return{bottom:" 20%"}}}(e),t=h._.extend({position:"fixed",height:"43px",opacity:"1 !important","z-index":"9001"},t,e),e=h.dom(document.createElement("div"));return e.attr("id",p.feedbackTrigger),e.css(t),e.attr("data-turbolinks-permanent",""),e}(n),i=function(){var e=h.dom(document.createElement("span"));return e.attr("id","feedback-trigger-notification"),e.css({"background-color":"#D85039",color:"#fff","border-radius":"50%",height:"17px",width:"17px",position:"absolute",right:"-6px",top:"-8px",visibility:"hidden","z-index":"1",animation:"pendoFeedbackPulse","animation-fill-mode":"both","animation-duration":"1s","animation-delay":"1s","animation-iteration-count":"1"}),e}(),t=function(e,t){let n;n="left"===t.horizontalPosition?"0 0 5px 5px":"3px 3px 0 0";var t={border:"none",padding:"11px 18px 14px 18px","background-color":e.triggerColor,"border-radius":n,"font-size":"15px",color:"#fff","box-shadow":"0 -5px 9px rgba(0,0,0,.16)",cursor:"pointer","text-align":"left"},i=h.dom(document.createElement("button"));return i.attr("id",p.feedbackTriggerButton),i.css(t),i.text(e.triggerText),i}(t,n),e.append(i),e.append(t),e.appendTo(h.dom.getBody()),f.attachEvent(t[0],"click",O)),G(r.horizontalPosition)}function G(e){t="left"===(t=e)?"left":"right",M(p.feedbackFrameStyles,`
133
- .buttonIs-${t}.visible {
130
+ `),e=function(e){var t=function(e){return"left"===e.horizontalPosition?{"transform-origin":"center left",left:"23px",animation:"pendoFeedbackSlideIn-left 0.2s 0s 1 alternate forwards","-webkit-animation":"pendoFeedbackSlideIn-left 0.2s 0s 1 alternate forwards"}:{right:"0px",animation:"pendoFeedbackSlideIn 0.2s 0s 1 alternate forwards","-webkit-animation":"pendoFeedbackSlideIn 0.2s 0s 1 alternate forwards"}}(e),e=function(e){switch(e.verticalPosition){case"top":return{top:" 10%"};case"middle":return{top:" 45%"};case"bottom":return{bottom:" 20%"}}}(e),t=h._.extend({position:"fixed",height:"43px",opacity:"1 !important","z-index":"9001"},t,e),e=h.dom(document.createElement("div"));return e.attr("id",p.feedbackTrigger),e.css(t),e.attr("data-turbolinks-permanent",""),e}(n),i=function(){var e=h.dom(document.createElement("span"));return e.attr("id","feedback-trigger-notification"),e.css({"background-color":"#D85039",color:"#fff","border-radius":"50%",height:"17px",width:"17px",position:"absolute",right:"-6px",top:"-8px",visibility:"hidden","z-index":"1",animation:"pendoFeedbackPulse","animation-fill-mode":"both","animation-duration":"1s","animation-delay":"1s","animation-iteration-count":"1"}),e}(),t=function(e,t){let n;n="left"===t.horizontalPosition?"0 0 5px 5px":"3px 3px 0 0";var t={border:"none",padding:"11px 18px 14px 18px","background-color":e.triggerColor,"border-radius":n,"font-size":"15px",color:"#fff","box-shadow":"0 -5px 9px rgba(0,0,0,.16)",cursor:"pointer","text-align":"left"},i=h.dom(document.createElement("button"));return i.attr("id",p.feedbackTriggerButton),i.css(t),i.text(e.triggerText),i}(t,n),e.append(i),e.append(t),e.appendTo(h.dom.getBody()),f.attachEvent(t[0],"click",O)),G(r.horizontalPosition)}function G(e){t=`
131
+ .buttonIs-${t="left"===(t=e)?"left":"right"}.visible {
134
132
  ${t}: 0 !important;
135
133
  width: 470px !important;
136
134
  animation-direction: alternate-reverse !important;
@@ -138,4 +136,4 @@ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{
138
136
  -webkit-animation: pendoFeedbackSlideFrom-${t} 0.5s 0s 1 alternate both !important;
139
137
  z-index: 9002 !important;
140
138
  }
141
- `),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 j(){return o}function L(){let e=f.ConfigReader.getLocalConfig();return h._.isObject(e)||(e={}),h._.isObject(e.visitor)||(e.visitor={}),h._.isObject(e.account)||(e.account={}),e}function B(e){e=e||L();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 P(e,t){if(s=t.vendorId,a=t.apiUrl,u=t.siteUrl,d=t.productId,c)return f.q.reject();if(!B(e))return f.q.reject();var n,i,e=$(e);try{n=h.url.get(),i="fdbkDst";const o=null!=(i=new RegExp("[?&]"+i+"=([^&#]*)").exec(n))&&decodeURI(i[1])||null;if(o&&o.startsWith("case"))return c=!0,void T().then(function(e){e=e+"&fdbkDst="+o;window.location.href=e})}catch(r){c=!1,h.log(r,"unhandled error while checking feedback destination")}try{return c=!0,"WIDGET"===t.type&&U(t),I(),w(e)}catch(r){return c=!1,h.log(r,"unhandled error while initializing feedback"),f.q.reject(r)}}function $(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 z(){return c}function H(){h._.each(h._.values(p),function(e){h.dom("#"+e).remove()}),d=r=u=s=a="",c=o=!1}function W(){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 t,s=Object.defineProperty,a=(e,t,n)=>{return n=n,(t="symbol"!=typeof t?t+"":t)in(e=e)?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},d=Object.defineProperty,c=(e,t,n)=>{return n=n,(t="symbol"!=typeof t?t+"":t)in(e=e)?d(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 h={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},g={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},u={};function m(e){if(u[e])return u[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 h?h[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 g?g[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 u[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?u[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 $={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 V(e){return e.nodeType===e.ELEMENT_NODE}function F(e){var t=e&&"host"in e&&"mode"in e&&$.host(e)||null;return Boolean(t&&"shadowRoot"in t&&$.shadowRoot(t)===e)}function D(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 U="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&&e.ownerNode.ownerDocument&&(t=e.ownerNode.ownerDocument.location.href);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(){c(this,"idNodeMap",new Map),c(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&&x(i);return s=t[n.toLowerCase()]||r&&t[r]||a?o?o(s,e):"*".repeat(s.length):s}function x(e){return e.toLowerCase()}const O="__rrweb_original__";function J(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?x(t):null}function Y(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 I=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,_=/^(?:[a-z+]+:)?\/\//i,E=/^www\..*/i,C=/^(data:)([^,]*),(.*)/i;function f(e,u){return(e||"").replace(I,(e,t,n,i,r,o)=>{n=n||r||o,r=t||i||"";if(!n)return e;if(_.test(n)||E.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 T(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function R(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=T(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=T(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=T(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=T(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 Z=1;const N=new RegExp("[^a-z0-9-_:]"),G=-2;function M(){return Z++}let k,ce;const le=/^[^ \t\n\r\u000c]+/,pe=/^[, \t\n\r\u000c]+/;function he(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(pe),!(o>=r.length);){let n=e(le);if(","===n.slice(-1))n=ge(i,n.substring(0,n.length-1)),a.push(n);else{let e="",t=(n=ge(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 fe=new WeakMap;function ge(e,t){return t&&""!==t.trim()?me(e,t):t}function me(e,t){let n=fe.get(e);if(n||(n=e.createElement("a"),fe.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function ve(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?he(e,i):"style"===n?f(i,me(e)):"object"===t&&"data"===n?ge(e,i):i:ge(e,i))}function ye(e,t){return("video"===e||"audio"===e)&&"autoplay"===t}function be(t,n,e){if(!t)return!1;if(!n)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!e&&be($.parentNode(t),n,e);for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}return!!e&&be($.parentNode(t),n,e)}function we(e,t,n,i){let r;if(V(e)){if(r=e,"*"===n)return!0;if(!$.childNodes(r).length)return!1}else{if(null===$.parentElement(e))return!1;r=$.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(be(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,me(t.doc))}return p?c="SCRIPT_PLACEHOLDER":u||(c=$.textContent(e),l&&(c=c&&f(c,me(t.doc)))),!l&&!p&&c&&i&&(c=r?r(c,$.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 Ie(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=x(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];ye(g,b.name,b.value)||(m[b.name]=ve(n,g,x(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=R(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:J(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=O in r?r[O]: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"),ce=k.getContext("2d"));const _=t,E=_.currentSrc||_.getAttribute("src")||"<unknown-src>",C=_.crossOrigin,T=()=>{_.removeEventListener("load",T);try{k.width=_.naturalWidth,k.height=_.naturalHeight,ce.drawImage(_,0,0),m.rr_dataURL=k.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==_.crossOrigin)return _.crossOrigin="anonymous",void(_.complete&&0!==_.naturalWidth?T():_.addEventListener("load",T));console.warn(`Cannot inline img src=${E}! Error: `+e)}"anonymous"===_.crossOrigin&&(C?m.crossOrigin=C:_.removeAttribute("crossorigin"))};_.complete&&0!==_.naturalWidth?T():_.addEventListener("load",T)}"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(I){}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 X(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:I=()=>!1,newlyAddedElement:_=!1,cssCaptured:E=!1}=e;let C=e["needsMask"],{preserveWhiteSpace:T=!0}=e;C||(e=void 0===C,C=we(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 Ie(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:$.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:I,newlyAddedElement:_,cssCaptured:E});if(!e)return console.warn(t,"not serialized"),null;let x;x=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"===Y(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)||!T&&e.type===P.Text&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?G:Z++;var k=Object.assign(e,{id:x});if(i.add(t,k),x===G)return null;v&&v(t);let A=!u;if(k.type===P.Element&&(A=A&&!k.needBlock,delete k.needBlock,e=$.shadowRoot(t))&&D(e)&&(k.isShadowHost=!0),(k.type===P.Document||k.type===P.Element)&&A){h.headWhitespace&&k.type===P.Element&&"head"===k.tagName&&(T=!1);var O={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:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:S,keepIframeSrcFn:I,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&&(O.cssCaptured=!0);for(const M of Array.from($.childNodes(t))){var R=X(M,O);R&&k.childNodes.push(R)}}let e=null;if(V(t)&&(e=$.shadowRoot(t)))for(const L of Array.from($.childNodes(e))){var N=X(L,O);N&&(D(e)&&(N.isShadow=!0),k.childNodes.push(N))}}e=$.parentNode(t);return e&&F(e)&&D(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=U(()=>{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 U(i,0),n.addEventListener("load",i);n.addEventListener("load",i)}}}(t,()=>{var e=t.contentDocument;e&&y&&(e=X(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:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:S,keepIframeSrcFn:I}))&&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"===Y(k.attributes.href))&&function(e,t,n){let i=!1,r;try{r=e.sheet}catch(o){return}if(!r){const a=U(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}}(t,()=>{var e;w&&(e=X(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:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:S,keepIframeSrcFn:I}))&&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 _e={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ee={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ce={};function Te(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 _e?_e[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 Ee?Ee[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 xe={};function i(e,t,n){var i=e+"."+String(n);return xe[i]?xe[i].call(t):(e=Te(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(xe[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=Te(e)[n])?t[n]:(ke[i]=e).bind(t)}function Oe(){return Te("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:Oe,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 Re={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 B(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=U(()=>{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){U(()=>{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(Re,{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 $e(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Fe(e){return e?e.nodeType===e.ELEMENT_NODE?e:Q.parentElement(e):null}function z(e,t,n,i){if(e){e=Fe(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(be(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 De(e,t){return-1!==t.getId(e)}function Ue(e,t,n){return"TITLE"===e.tagName&&n.headTitleMutations||t.getId(e)===G}function Ge(e,t){var n;return!F(e)&&(n=t.getId(e),!t.has(n)||(!(n=Q.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||Ge(n,t)))}function je(e){return Boolean(e.changedTouches)}function Be(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function ze(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function He(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(){a(this,"id",1),a(this,"styleIDMap",new WeakMap),a(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 qe(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 Ve(e){var t=e.ownerDocument;return!!t&&(e=function(e){let t=e;for(var n;n=qe(t);)t=n;return t}(e),Q.contains(t,e))}function Ke(e){var t=e.ownerDocument;return t&&(Q.contains(t,e)||Ve(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||{}),Je=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))({}),H=(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))(H||{}),Ye=(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(){a(this,"length",0),a(this,"head",null),a(this,"tail",null),a(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 Qe=(e,t)=>e+"@"+t;class et{constructor(){a(this,"frozen",!1),a(this,"locked",!1),a(this,"texts",[]),a(this,"attributes",[]),a(this,"attributeMap",new WeakMap),a(this,"removes",[]),a(this,"mapRemoves",[]),a(this,"movedMap",{}),a(this,"addedSet",new Set),a(this,"movedSet",new Set),a(this,"droppedSet",new Set),a(this,"removesSubTreeCache",new Set),a(this,"mutationCb"),a(this,"blockClass"),a(this,"blockSelector"),a(this,"maskTextClass"),a(this,"maskTextSelector"),a(this,"inlineStylesheet"),a(this,"maskInputOptions"),a(this,"maskTextFn"),a(this,"maskInputFn"),a(this,"keepIframeSrcFn"),a(this,"recordCanvas"),a(this,"inlineImages"),a(this,"slimDOMOptions"),a(this,"dataURLOptions"),a(this,"doc"),a(this,"mirror"),a(this,"iframeManager"),a(this,"stylesheetManager"),a(this,"shadowDomManager"),a(this,"canvasManager"),a(this,"processedNodeManager"),a(this,"unattachedDoc"),a(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),a(this,"emit",()=>{if(!this.frozen&&!this.locked){const u=[],d=new Set,c=new Xe,l=e=>{let t=e,n=G;for(;n===G;)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&&Ke(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=F(n)?this.mirror.getId(qe(t)):this.mirror.getId(n),n=l(t);if(-1===i||-1===n)return c.addNode(t);var r=X(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=>{Be(e,this.mirror)&&this.iframeManager.addIframe(e),ze(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),He(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);it(this.removesSubTreeCache,p,this.mirror)&&!this.movedSet.has(t)&&!this.addedSet.has(t)||r(p)}for(const h of this.addedSet)!rt(this.droppedSet,h)&&!it(this.removesSubTreeCache,h,this.mirror)||rt(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))}}),a(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("");t.attributes.value=K({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:J(e),value:n,maskInputFn:this.maskInputFn})}),a(this,"processMutation",i=>{if(!Ue(i.target,this.mirror,this.slimDOMOptions))switch(i.type){case"characterData":var r=Q.textContent(i.target);z(i.target,this.blockClass,this.blockSelector,!1)||r===i.oldValue||this.texts.push({value:we(i.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,Fe(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=J(a),o=we(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})),z(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"),!ye(a.tagName,e))if(n.attributes[e]=ve(this.doc,x(a.tagName),x(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":z(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=F(i.target)?this.mirror.getId(Q.host(i.target)):this.mirror.getId(i.target);z(i.target,this.blockClass,this.blockSelector,!1)||Ue(e,this.mirror,this.slimDOMOptions)||!De(e,this.mirror)||(this.addedSet.has(e)?(tt(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(i.target)&&-1===t||Ge(i.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[Qe(t,n)]?tt(this.movedSet,e):(this.removes.push({parentId:n,id:t,isShadow:!(!F(i.target)||!D(i.target))||void 0}),nt(e,this.removesSubTreeCache))),this.mapRemoves.push(e))})):this.genTextAreaValueMutation(i.target))}}),a(this,"genAdds",(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(Ue(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[Qe(this.mirror.getId(t),e)]=!0)}else this.addedSet.add(t),this.droppedSet["delete"](t);z(t,this.blockClass,this.blockSelector,!1)||(Q.childNodes(t).forEach(e=>this.genAdds(e)),He(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 tt(t,e){t["delete"](e),Q.childNodes(e).forEach(e=>tt(t,e))}function nt(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 it(e,t){if(0!==e.size)return e=e,t=t,(t=Q.parentNode(t))&&e.has(t)}function rt(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 W(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 ot(e,t){var n=new et,e=(oe.push(n),n.init(e),new(Oe())(re(n.processMutations.bind(n))));return e.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function at({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=x(e);o=e;var o,n=n=>{var i=W(n);if(!z(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 je(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=je(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 st({scrollCb:i,doc:r,mirror:o,blockClass:a,blockSelector:s,sampling:e}){return ee("scroll",re(B(re(e=>{var t,n,e=W(e);e&&!z(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 ut=["INPUT","TEXTAREA","SELECT"],dt=new WeakMap;function ct(e){var t,n;return e=e,t=[],ht("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||ht("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||ht("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||ht("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 q(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function lt({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 pt(e,t={}){var o,n=e.doc.defaultView;if(!n)return()=>{};{var i=e,r=t;const{mutationCb:w,mousemoveCb:S,mouseInteractionCb:I,scrollCb:_,viewportResizeCb:E,inputCb:C,mediaInteractionCb:T,styleSheetRuleCb:x,styleDeclarationCb:k,canvasMutationCb:A,fontCb:O,selectionCb:R,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),I(...e)},i.scrollCb=(...e)=>{r.scroll&&r.scroll(...e),_(...e)},i.viewportResizeCb=(...e)=>{r.viewportResize&&r.viewportResize(...e),E(...e)},i.inputCb=(...e)=>{r.input&&r.input(...e),C(...e)},i.mediaInteractionCb=(...e)=>{r.mediaInteaction&&r.mediaInteaction(...e),T(...e)},i.styleSheetRuleCb=(...e)=>{r.styleSheetRule&&r.styleSheetRule(...e),x(...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),O(...e)},i.selectionCb=(...e)=>{r.selection&&r.selection(...e),R(...e)},i.customElementCb=(...e)=>{r.customElement&&r.customElement(...e),N(...e)}}let a;e.recordDOM&&(a=ot(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=B(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(B(re(e=>{var t=W(e),{clientX:n,clientY:i}=je(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=at(e),d=st(e),c=function({viewportResizeCb:n},{win:e}){let i=-1,r=-1;return ee("resize",re(B(re(()=>{var e=Pe(),t=$e();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=W(t);var t=t.isTrusted,r=i&&i.tagName;if((i=i&&"OPTION"===r?Q.parentElement(i):i)&&r&&!(ut.indexOf(r)<0)&&!z(i,e,n,!0)&&!(i.classList.contains(u)||d&&i.matches(d))){let e=i.value,n=!1;var o=J(i)||"",a=we(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=dt.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(dt.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=>B(re(e=>{var t,n,i,r,o,e=W(e);e&&!z(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(H.Play),t),ee("pause",n(H.Pause),t),ee("seeked",n(H.Seeked),t),ee("volumechange",n(H.VolumeChange),t),ee("ratechange",n(H.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}=q(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}=q(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}=q(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}=q(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=(ft("CSSGroupingRule")?o.CSSGroupingRule=i.CSSGroupingRule:(ft("CSSMediaRule")&&(o.CSSMediaRule=i.CSSMediaRule),ft("CSSConditionRule")&&(o.CSSConditionRule=i.CSSConditionRule),ft("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}=q(t.parentStyleSheet,u,d.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:[...ct(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}=q(t.parentStyleSheet,u,d.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:[...ct(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=lt(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}=q(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:ct(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}=q(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:ct(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 U(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);z(r,c,l,!0)||z(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 ht(e){return"undefined"!=typeof window[e]}function ft(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class gt{constructor(e){a(this,"iframeIdToRemoteIdMap",new WeakMap),a(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 mt{constructor(e){a(this,"iframes",new WeakMap),a(this,"crossOriginIframeMap",new WeakMap),a(this,"crossOriginIframeMirror",new gt(M)),a(this,"crossOriginIframeStyleMirror"),a(this,"crossOriginIframeRootIdMap",new WeakMap),a(this,"mirror"),a(this,"mutationCb"),a(this,"wrappedEmit"),a(this,"takeFullSnapshot"),a(this,"loadListener"),a(this,"stylesheetManager"),a(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 gt(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=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===Ye.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class vt{constructor(e){a(this,"shadowDoms",new WeakSet),a(this,"mutationCb"),a(this,"scrollCb"),a(this,"bypassOptions"),a(this,"mirror"),a(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(D(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);const n=ot({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(st({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),U(()=>{e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(Q.host(e))),this.restoreHandlers.push(lt({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&&Ke(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+/",yt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),bt=0;bt<o.length;bt++)yt[o.charCodeAt(bt)]=bt;var wt,St=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 It=new Map;const _t=(t,n,i)=>{if(t&&(Ct(t,n)||"object"==typeof t)){n=function(e,t){let n=It.get(e);return n||(n=new Map,It.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 Et=(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:St(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]}:Ct(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:_t(e,t,n)}:e}(e,t,n)),Ct=(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 Tt(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 z(this.canvas,r,o,!0)||U(()=>{var e=Et(t,i,this);n(this.canvas,{type:Je["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:Je["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 z(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 kt(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 _t(t,s,this),"tagName"in this.canvas&&!z(this.canvas,o,a,!0)&&(e=Et(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 At(e,t,n,i){const r=[];return r.push(...kt(t.WebGLRenderingContext.prototype,Je.WebGL,e,n,i,t)),"undefined"!=typeof t.WebGL2RenderingContext&&r.push(...kt(t.WebGL2RenderingContext.prototype,Je.WebGL2,e,n,i,t)),()=>{r.forEach(e=>e())}}class Ot{constructor(e){a(this,"pendingCanvasMutations",new Map),a(this,"rafStamps",{latestId:0,invokeId:null}),a(this,"mirror"),a(this,"mutationCb"),a(this,"resetObservers"),a(this,"frozen",!1),a(this,"locked",!1),a(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}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===t&&this.initCanvasMutationObserver(n,i,r)}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=xt(e,t,n,!1),r=Tt(this.processMutation.bind(this),e,t,n),o=At(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 Rt{constructor(e){a(this,"trackedLinkElements",new WeakSet),a(this,"mutationCb"),a(this,"adoptedStyleSheetCb"),a(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(){a(this,"nodeMap",new WeakMap),a(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]&&(wt=document.createElement("iframe"),document.body.appendChild(wt),Array.from=(null==(t=wt.contentWindow)?void 0:t.Array.from)||Array.from,document.body.removeChild(wt))}catch(Pt){console.debug("Unable to override Array.from",Pt)}const ue=new de;function e(e={}){const{emit:i,checkoutEveryNms:r,checkoutEveryNth:o,blockClass:n="rr-block",blockSelector:a=null,ignoreClass:$="rr-ignore",ignoreSelector:F=null,maskTextClass:s="rr-mask",maskTextSelector:u=null,inlineStylesheet:d=!0,maskAllInputs:D,maskInputOptions:t,slimDOMOptions:c,maskInputFn:l,maskTextFn:p,hooks:U,packFn:h,sampling:f={},dataURLOptions:g={},mousemoveWait:m,recordDOM:G=!0,recordCanvas:v=!1,recordCrossOriginIframes:j=!1,recordAfter:B="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:z=!1,collectFonts:H=!1,inlineImages:y=!1,plugins:b,keepIframeSrcFn:w=()=>!1,ignoreCSSAttributes:W=new Set([]),errorHandler:q}=e;e=q,ie=e;const S=!j||window.parent===window;let I=!1;if(!S)try{window.parent.document&&(I=!1)}catch(Z){I=!0}if(S&&!i)throw new Error("emit function is required");if(!S&&!I)return()=>{};void 0!==m&&void 0===f.mousemove&&(f.mousemove=m),ue.reset();const _=!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}:void 0!==t?t:{password:!0},E=!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 V,C=0;const K=e=>{for(const t of b||[])t.eventProcessor&&(e=t.eventProcessor(e));return e=h&&!I?h(e):e},T=(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(K(e),t):I&&(n={type:"rrweb",event:K(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===te.FullSnapshot?(V=e,C=0):e.type!==te.IncrementalSnapshot||e.data.source===ne.Mutation&&e.data.isAttachIframe||(C++,t=o&&C>=o,n=r&&e.timestamp-V.timestamp>r,(t||n)&&se(!0))},e=>{ae({type:te.IncrementalSnapshot,data:{source:ne.Mutation,...e}})}),J=e=>ae({type:te.IncrementalSnapshot,data:{source:ne.Scroll,...e}}),Y=e=>ae({type:te.IncrementalSnapshot,data:{source:ne.CanvasMutation,...e}});const x=new Rt({mutationCb:T,adoptedStyleSheetCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.AdoptedStyleSheet,...e}})}),k=new mt({mirror:ue,mutationCb:T,stylesheetManager:x,recordCrossOriginIframes:j,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,O=(Mt=new Ot({recordCanvas:v,mutationCb:Y,win:window,blockClass:n,blockSelector:a,mirror:ue,sampling:f.canvas,dataURLOptions:g}),new vt({mutationCb:T,scrollCb:J,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:u,inlineStylesheet:d,maskInputOptions:_,dataURLOptions:g,maskTextFn:p,maskInputFn:l,recordCanvas:v,inlineImages:y,sampling:f,slimDOMOptions:E,iframeManager:k,stylesheetManager:x,canvasManager:Mt,keepIframeSrcFn:w,processedNodeManager:A},mirror:ue}));se=(e=!1)=>{if(G){ae({type:te.Meta,data:{href:window.location.href,width:$e(),height:Pe()}},e),x.reset(),O.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 X(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:_,maskTextFn:p,maskInputFn:l,slimDOM:E,dataURLOptions:g,recordCanvas:v,inlineImages:y,onSerialize:e=>{Be(e,ue)&&k.addIframe(e),ze(e,ue)&&x.trackLinkElement(e),He(e)&&O.addShadowRoot(Q.shadowRoot(e),document)},onIframeLoad:(e,t)=>{k.attachIframe(e,t),O.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{x.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&&x.adoptStyleSheets(document.adoptedStyleSheets,ue.getId(document))}},k.setTakeFullSnapshot(se);try{const M=[],L=e=>{return re(pt)({mutationCb:T,mousemoveCb:(e,t)=>ae({type:te.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.MouseInteraction,...e}}),scrollCb:J,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:Y,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:$,ignoreSelector:F,maskTextClass:s,maskTextSelector:u,maskInputOptions:_,inlineStylesheet:d,sampling:f,recordDOM:G,recordCanvas:v,inlineImages:y,userTriggeredOnInput:z,collectFonts:H,doc:e,maskInputFn:l,maskTextFn:p,keepIframeSrcFn:w,blockSelector:a,slimDOMOptions:E,dataURLOptions:g,mirror:ue,iframeManager:k,stylesheetManager:x,shadowDomManager:O,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}})})))||[]},U)},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"===B&&P()})),M.push(ee("load",()=>{ae({type:te.Load,data:{}}),"load"===B&&P()},window))),()=>{M.forEach(e=>e()),A.destroy(),Lt=!1,ie=void 0}}catch(R){console.warn(R)}}return e.addCustomEvent=(e,t)=>{if(!Lt)throw new Error("please add custom event after start recording");ae({type:te.Custom,data:{tag:e,payload:t}})},e.freezePage=()=>{oe.forEach(e=>e.freeze())},e.takeFullSnapshot=e=>{if(!Lt)throw new Error("please take full snapshot after start recording");se(e)},e.mirror=ue,0,e}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$4.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$4.all(n)}}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.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.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$4((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$4.resolve():Promise$4.reject(new Error("sendBeacon failed to send recording data")):this.pendo.ajax.post(e,t.body)}_onMessage(e){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}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=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,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.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.subscriptions.length=0,this.stop(),this.transport.stop()}ready(){!1!==this.api.ConfigReader.get(RECORDING_CONFIG_AUTO_START)&&this.start()}changeIdentity(e){this.allowStart&&(clearTimeout(this._changeIdentityTimer),this.isRecording()&&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.fetchVisitorConfig().then(e=>{e&&e.enable||!this.isRecording()?e&&e.enable&&!this.isRecording()&&this._startRecordingForVisitor(e):this.stop()})["catch"](e=>{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)for(var t of e)t.visitor_id===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),this.recordingConfig(e));this._stop=this.record(this.pendo._.extend({emit:t(this.emit,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}}emit(e){e.timestamp&&e.timestamp.getTime&&(e.timestamp=e.timestamp.getTime()),e.timestamp||(e.timestamp=(new Date).getTime());var t=e.type===EVENT_TYPES.META,n=e.type===EVENT_TYPES.FULL_SNAPSHOT,i=this.pendo._.get(this.getLastUserInteractionEventInformation(),"timestamp");let r=!i&&t?!0:!1;this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,r);var o=this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES);i&&e.timestamp-i>o&&!n&&!t?(this.send(),this.clearSessionInfo(),this.snapshot()):(t&&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,o=(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),o||n&&t||e)&&(this.currentRecordingSize=0,this.snapshot()))}updateCurrentRecordingSize(e){this.currentRecordingSize+=e}onWorkerMessage(e){switch(e.type){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"];n&&this.sendHostedResources(n)}}addRecordingId(e){this.recordingId&&e&&e.data&&e.data.length&&"recording"!==(e=e.data[0]).type&&"identify"!==e.type&&(e.visitor_id!==this.visitorId?(this.api.log.warn("Visitor id has diverged from agent"),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()},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)}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 e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function c(e,t){t=t||r;e=function(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||57344<=i?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}("string"==typeof e?e:JSON.stringify(e)),e=new i.Deflate(e).compress();return t===r?n.uint8ToBase64(e):e}function l(e,t){t=t.match(/https:\/\/[^\s]+?\.(woff|woff2|ttf|otf|eot)\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 a,n,t,i,r;a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),n={uint8ToBase64:function(e){var t,n,i,r=e.length%3,o="";for(t=0,i=e.length-r;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=function(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=a[n>>2])+a[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=a[n>>10])+a[n>>4&63])+a[n<<2&63]}return o}},function(){var X=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===X?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&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,$,n=this.input;switch(this.d){case 0:for(t=0,$=n.length;t<$;){var F,D,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===$,o=X,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),F=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&F,a[s++]=F>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,D=i.length;o<D;++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,U=c.length;l<U;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,G,b,w,S,j,I=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],z=Array(19),_=ne;for(I.b(1,1,Q),I.b(_,2,Q),p=re(this,n),_=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 E,C,T,x,k,H=h,W=f,A=new(ee?Uint32Array:Array)(H+W),O=new(ee?Uint32Array:Array)(316),R=new(ee?Uint8Array:Array)(19),N=E=0;N<H;N++)A[E++]=m[N];for(N=0;N<W;N++)A[E++]=v[N];if(!ee)for(N=0,T=R.length;N<T;++N)R[N]=0;for(N=x=0,T=A.length;N<T;N+=E){for(E=1;N+E<T&&A[N+E]===A[N];++E);if(C=E,0===A[N])if(C<3)for(;0<C--;)R[O[x++]=0]++;else for(;0<C;)(k=C-3<(k=C<138?C:138)&&k<C?C-3:k)<=10?(O[x++]=17,O[x++]=k-3,R[17]++):(O[x++]=18,O[x++]=k-11,R[18]++),C-=k;else if(O[x++]=A[N],R[A[N]]++,--C<3)for(;0<C--;)O[x++]=A[N],R[A[N]]++;else for(;0<C;)C-3<(k=C<6?C:6)&&k<C&&(k=C-3),O[x++]=16,O[x++]=k-3,R[16]++,C-=k}for(e=ee?O.subarray(0,x):O.slice(0,x),y=oe(R,7),S=0;S<19;S++)z[S]=y[B[S]];for(g=19;4<g&&0===z[g-1];g--);for(G=ae(y),I.b(h-257,5,Q),I.b(f-1,5,Q),I.b(g-4,4,Q),S=0;S<g;S++)I.b(z[S],3,Q);for(S=0,j=e.length;S<j;S++)if(b=e[S],I.b(G[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}I.b(e[S],w,Q)}for(var M,q,_=[_,m],L=[L,v],V=_[0],K=_[1],J=L[0],Y=L[1],P=0,Z=p.length;P<Z;++P)if(M=p[P],I.b(V[M],K[M],Q),256<M)I.b(p[++P],p[++P],Q),q=p[++P],I.b(J[q],Y[q],Q),I.b(p[++P],p[++P],Q);else if(256===M)break;this.a=I.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,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]===X&&(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,I=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,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(I);else for(m in g=[],v=0,I)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),I[m])}.call((t={exports:{}}).exports),i={Deflate:e(t.exports).Zlib.Deflate},r="base64url",self.onmessage=function(e){try{if(e.data.url&&e.data.payload){var{url:t,payload:n,shouldCacheResources:i}=e.data;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})}))}}catch(e){postMessage({error:e})}}},null);function createReplayPlugin(){return errorLogger(new SessionRecorder(record(),WorkerFactory))}export{Feedback,GuideMarkdown,createReplayPlugin as Replay,TextCapture,VocPortal,loadAgent};
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 j(){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 B(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(!B(e))return f.q.reject();var n,i,e=P(e);try{n=h.url.get(),i="fdbkDst";const o=null!=(i=new RegExp("[?&]"+i+"=([^&#]*)").exec(n))&&decodeURI(i[1])||null;if(o&&o.startsWith("case"))return c=!0,void T().then(function(e){e=e+"&fdbkDst="+o;window.location.href=e})}catch(r){c=!1,h.log(r,"unhandled error while checking feedback destination")}try{return c=!0,"WIDGET"===t.type&&U(t),I(),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 z(){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 t,s=Object.defineProperty,a=(e,t,n)=>{return n=n,(t="symbol"!=typeof t?t+"":t)in(e=e)?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},d=Object.defineProperty,c=(e,t,n)=>{return n=n,(t="symbol"!=typeof t?t+"":t)in(e=e)?d(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 h={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},g={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},u={};function m(e){if(u[e])return u[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 h?h[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 g?g[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 u[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?u[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 V(e){return e.nodeType===e.ELEMENT_NODE}function $(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 D(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 U="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&&e.ownerNode.ownerDocument&&(t=e.ownerNode.ownerDocument.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(){c(this,"idNodeMap",new Map),c(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&&x(i);return s=t[n.toLowerCase()]||r&&t[r]||a?o?o(s,e):"*".repeat(s.length):s}function x(e){return e.toLowerCase()}const O="__rrweb_original__";function J(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?x(t):null}function Z(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 I=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,_=/^(?:[a-z+]+:)?\/\//i,E=/^www\..*/i,C=/^(data:)([^,]*),(.*)/i;function f(e,u){return(e||"").replace(I,(e,t,n,i,r,o)=>{n=n||r||o,r=t||i||"";if(!n)return e;if(_.test(n)||E.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 T(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function R(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=T(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=T(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=T(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=T(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 Y=1;const N=new RegExp("[^a-z0-9-_:]"),G=-2;function M(){return Y++}let k,ce;const le=/^[^ \t\n\r\u000c]+/,pe=/^[, \t\n\r\u000c]+/;function he(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(pe),!(o>=r.length);){let n=e(le);if(","===n.slice(-1))n=ge(i,n.substring(0,n.length-1)),a.push(n);else{let e="",t=(n=ge(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 fe=new WeakMap;function ge(e,t){return t&&""!==t.trim()?me(e,t):t}function me(e,t){let n=fe.get(e);if(n||(n=e.createElement("a"),fe.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function ve(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?he(e,i):"style"===n?f(i,me(e)):"object"===t&&"data"===n?ge(e,i):i:ge(e,i))}function ye(e,t){return("video"===e||"audio"===e)&&"autoplay"===t}function be(t,n,e){if(!t)return!1;if(!n)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!e&&be(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&&be(F.parentNode(t),n,e)}function we(e,t,n,i){let r;if(V(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(be(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,me(t.doc))}return p?c="SCRIPT_PLACEHOLDER":u||(c=F.textContent(e),l&&(c=c&&f(c,me(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 Ie(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=x(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];ye(g,b.name,b.value)||(m[b.name]=ve(n,g,x(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=R(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:J(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=O in r?r[O]: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"),ce=k.getContext("2d"));const _=t,E=_.currentSrc||_.getAttribute("src")||"<unknown-src>",C=_.crossOrigin,T=()=>{_.removeEventListener("load",T);try{k.width=_.naturalWidth,k.height=_.naturalHeight,ce.drawImage(_,0,0),m.rr_dataURL=k.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==_.crossOrigin)return _.crossOrigin="anonymous",void(_.complete&&0!==_.naturalWidth?T():_.addEventListener("load",T));console.warn(`Cannot inline img src=${E}! Error: `+e)}"anonymous"===_.crossOrigin&&(C?m.crossOrigin=C:_.removeAttribute("crossorigin"))};_.complete&&0!==_.naturalWidth?T():_.addEventListener("load",T)}"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(I){}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 X(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:I=()=>!1,newlyAddedElement:_=!1,cssCaptured:E=!1}=e;let C=e["needsMask"],{preserveWhiteSpace:T=!0}=e;C||(e=void 0===C,C=we(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 Ie(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:I,newlyAddedElement:_,cssCaptured:E});if(!e)return console.warn(t,"not serialized"),null;let x;x=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"===Z(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)||!T&&e.type===P.Text&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?G:Y++;var k=Object.assign(e,{id:x});if(i.add(t,k),x===G)return null;v&&v(t);let A=!u;if(k.type===P.Element&&(A=A&&!k.needBlock,delete k.needBlock,e=F.shadowRoot(t))&&D(e)&&(k.isShadowHost=!0),(k.type===P.Document||k.type===P.Element)&&A){h.headWhitespace&&k.type===P.Element&&"head"===k.tagName&&(T=!1);var O={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:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:S,keepIframeSrcFn:I,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&&(O.cssCaptured=!0);for(const M of Array.from(F.childNodes(t))){var R=X(M,O);R&&k.childNodes.push(R)}}let e=null;if(V(t)&&(e=F.shadowRoot(t)))for(const L of Array.from(F.childNodes(e))){var N=X(L,O);N&&(D(e)&&(N.isShadow=!0),k.childNodes.push(N))}}e=F.parentNode(t);return e&&$(e)&&D(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=U(()=>{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 U(i,0),n.addEventListener("load",i);n.addEventListener("load",i)}}}(t,()=>{var e=t.contentDocument;e&&y&&(e=X(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:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:S,keepIframeSrcFn:I}))&&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"===Z(k.attributes.href))&&function(e,t,n){let i=!1,r;try{r=e.sheet}catch(o){return}if(!r){const a=U(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}}(t,()=>{var e;w&&(e=X(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:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:S,keepIframeSrcFn:I}))&&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 _e={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ee={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ce={};function Te(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 _e?_e[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 Ee?Ee[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 xe={};function i(e,t,n){var i=e+"."+String(n);return xe[i]?xe[i].call(t):(e=Te(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(xe[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=Te(e)[n])?t[n]:(ke[i]=e).bind(t)}function Oe(){return Te("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:Oe,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 Re={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 B(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=U(()=>{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){U(()=>{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(Re,{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 $e(e){return e?e.nodeType===e.ELEMENT_NODE?e:Q.parentElement(e):null}function z(e,t,n,i){if(e){e=$e(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(be(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 De(e,t){return-1!==t.getId(e)}function Ue(e,t,n){return"TITLE"===e.tagName&&n.headTitleMutations||t.getId(e)===G}function Ge(e,t){var n;return!$(e)&&(n=t.getId(e),!t.has(n)||(!(n=Q.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||Ge(n,t)))}function je(e){return Boolean(e.changedTouches)}function Be(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function ze(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function He(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(){a(this,"id",1),a(this,"styleIDMap",new WeakMap),a(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 qe(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 Ve(e){var t=e.ownerDocument;return!!t&&(e=function(e){let t=e;for(var n;n=qe(t);)t=n;return t}(e),Q.contains(t,e))}function Ke(e){var t=e.ownerDocument;return t&&(Q.contains(t,e)||Ve(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||{}),Je=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))({}),H=(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))(H||{}),Ze=(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 Ye(e){return"__ln"in e}class Xe{constructor(){a(this,"length",0),a(this,"head",null),a(this,"tail",null),a(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&&Ye(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&&Ye(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||!Ye(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 Qe=(e,t)=>e+"@"+t;class et{constructor(){a(this,"frozen",!1),a(this,"locked",!1),a(this,"texts",[]),a(this,"attributes",[]),a(this,"attributeMap",new WeakMap),a(this,"removes",[]),a(this,"mapRemoves",[]),a(this,"movedMap",{}),a(this,"addedSet",new Set),a(this,"movedSet",new Set),a(this,"droppedSet",new Set),a(this,"removesSubTreeCache",new Set),a(this,"mutationCb"),a(this,"blockClass"),a(this,"blockSelector"),a(this,"maskTextClass"),a(this,"maskTextSelector"),a(this,"inlineStylesheet"),a(this,"maskInputOptions"),a(this,"maskTextFn"),a(this,"maskInputFn"),a(this,"keepIframeSrcFn"),a(this,"recordCanvas"),a(this,"inlineImages"),a(this,"slimDOMOptions"),a(this,"dataURLOptions"),a(this,"doc"),a(this,"mirror"),a(this,"iframeManager"),a(this,"stylesheetManager"),a(this,"shadowDomManager"),a(this,"canvasManager"),a(this,"processedNodeManager"),a(this,"unattachedDoc"),a(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),a(this,"emit",()=>{if(!this.frozen&&!this.locked){const u=[],d=new Set,c=new Xe,l=e=>{let t=e,n=G;for(;n===G;)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&&Ke(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=$(n)?this.mirror.getId(qe(t)):this.mirror.getId(n),n=l(t);if(-1===i||-1===n)return c.addNode(t);var r=X(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=>{Be(e,this.mirror)&&this.iframeManager.addIframe(e),ze(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),He(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);it(this.removesSubTreeCache,p,this.mirror)&&!this.movedSet.has(t)&&!this.addedSet.has(t)||r(p)}for(const h of this.addedSet)!rt(this.droppedSet,h)&&!it(this.removesSubTreeCache,h,this.mirror)||rt(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))}}),a(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("");t.attributes.value=K({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:J(e),value:n,maskInputFn:this.maskInputFn})}),a(this,"processMutation",i=>{if(!Ue(i.target,this.mirror,this.slimDOMOptions))switch(i.type){case"characterData":var r=Q.textContent(i.target);z(i.target,this.blockClass,this.blockSelector,!1)||r===i.oldValue||this.texts.push({value:we(i.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,$e(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=J(a),o=we(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})),z(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"),!ye(a.tagName,e))if(n.attributes[e]=ve(this.doc,x(a.tagName),x(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":z(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=$(i.target)?this.mirror.getId(Q.host(i.target)):this.mirror.getId(i.target);z(i.target,this.blockClass,this.blockSelector,!1)||Ue(e,this.mirror,this.slimDOMOptions)||!De(e,this.mirror)||(this.addedSet.has(e)?(tt(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(i.target)&&-1===t||Ge(i.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[Qe(t,n)]?tt(this.movedSet,e):(this.removes.push({parentId:n,id:t,isShadow:!(!$(i.target)||!D(i.target))||void 0}),nt(e,this.removesSubTreeCache))),this.mapRemoves.push(e))})):this.genTextAreaValueMutation(i.target))}}),a(this,"genAdds",(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(Ue(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[Qe(this.mirror.getId(t),e)]=!0)}else this.addedSet.add(t),this.droppedSet["delete"](t);z(t,this.blockClass,this.blockSelector,!1)||(Q.childNodes(t).forEach(e=>this.genAdds(e)),He(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 tt(t,e){t["delete"](e),Q.childNodes(e).forEach(e=>tt(t,e))}function nt(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 it(e,t){if(0!==e.size)return e=e,t=t,(t=Q.parentNode(t))&&e.has(t)}function rt(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 W(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 ot(e,t){var n=new et,e=(oe.push(n),n.init(e),new(Oe())(re(n.processMutations.bind(n))));return e.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function at({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=x(e);o=e;var o,n=n=>{var i=W(n);if(!z(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 je(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=je(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 st({scrollCb:i,doc:r,mirror:o,blockClass:a,blockSelector:s,sampling:e}){return ee("scroll",re(B(re(e=>{var t,n,e=W(e);e&&!z(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 ut=["INPUT","TEXTAREA","SELECT"],dt=new WeakMap;function ct(e){var t,n;return e=e,t=[],ht("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||ht("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||ht("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||ht("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 q(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function lt({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 pt(e,t={}){var o,n=e.doc.defaultView;if(!n)return()=>{};{var i=e,r=t;const{mutationCb:w,mousemoveCb:S,mouseInteractionCb:I,scrollCb:_,viewportResizeCb:E,inputCb:C,mediaInteractionCb:T,styleSheetRuleCb:x,styleDeclarationCb:k,canvasMutationCb:A,fontCb:O,selectionCb:R,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),I(...e)},i.scrollCb=(...e)=>{r.scroll&&r.scroll(...e),_(...e)},i.viewportResizeCb=(...e)=>{r.viewportResize&&r.viewportResize(...e),E(...e)},i.inputCb=(...e)=>{r.input&&r.input(...e),C(...e)},i.mediaInteractionCb=(...e)=>{r.mediaInteaction&&r.mediaInteaction(...e),T(...e)},i.styleSheetRuleCb=(...e)=>{r.styleSheetRule&&r.styleSheetRule(...e),x(...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),O(...e)},i.selectionCb=(...e)=>{r.selection&&r.selection(...e),R(...e)},i.customElementCb=(...e)=>{r.customElement&&r.customElement(...e),N(...e)}}let a;e.recordDOM&&(a=ot(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=B(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(B(re(e=>{var t=W(e),{clientX:n,clientY:i}=je(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=at(e),d=st(e),c=function({viewportResizeCb:n},{win:e}){let i=-1,r=-1;return ee("resize",re(B(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=W(t);var t=t.isTrusted,r=i&&i.tagName;if((i=i&&"OPTION"===r?Q.parentElement(i):i)&&r&&!(ut.indexOf(r)<0)&&!z(i,e,n,!0)&&!(i.classList.contains(u)||d&&i.matches(d))){let e=i.value,n=!1;var o=J(i)||"",a=we(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=dt.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(dt.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=>B(re(e=>{var t,n,i,r,o,e=W(e);e&&!z(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(H.Play),t),ee("pause",n(H.Pause),t),ee("seeked",n(H.Seeked),t),ee("volumechange",n(H.VolumeChange),t),ee("ratechange",n(H.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}=q(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}=q(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}=q(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}=q(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=(ft("CSSGroupingRule")?o.CSSGroupingRule=i.CSSGroupingRule:(ft("CSSMediaRule")&&(o.CSSMediaRule=i.CSSMediaRule),ft("CSSConditionRule")&&(o.CSSConditionRule=i.CSSConditionRule),ft("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}=q(t.parentStyleSheet,u,d.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:[...ct(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}=q(t.parentStyleSheet,u,d.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:[...ct(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=lt(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}=q(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:ct(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}=q(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:ct(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 U(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);z(r,c,l,!0)||z(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 ht(e){return"undefined"!=typeof window[e]}function ft(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class gt{constructor(e){a(this,"iframeIdToRemoteIdMap",new WeakMap),a(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 mt{constructor(e){a(this,"iframes",new WeakMap),a(this,"crossOriginIframeMap",new WeakMap),a(this,"crossOriginIframeMirror",new gt(M)),a(this,"crossOriginIframeStyleMirror"),a(this,"crossOriginIframeRootIdMap",new WeakMap),a(this,"mirror"),a(this,"mutationCb"),a(this,"wrappedEmit"),a(this,"takeFullSnapshot"),a(this,"loadListener"),a(this,"stylesheetManager"),a(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 gt(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=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===Ze.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class vt{constructor(e){a(this,"shadowDoms",new WeakSet),a(this,"mutationCb"),a(this,"scrollCb"),a(this,"bypassOptions"),a(this,"mirror"),a(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(D(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);const n=ot({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(st({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),U(()=>{e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(Q.host(e))),this.restoreHandlers.push(lt({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&&Ke(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+/",yt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),bt=0;bt<o.length;bt++)yt[o.charCodeAt(bt)]=bt;var wt,St=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 It=new Map;const _t=(t,n,i)=>{if(t&&(Ct(t,n)||"object"==typeof t)){n=function(e,t){let n=It.get(e);return n||(n=new Map,It.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 Et=(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:St(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]}:Ct(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:_t(e,t,n)}:e}(e,t,n)),Ct=(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 Tt(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 z(this.canvas,r,o,!0)||U(()=>{var e=Et(t,i,this);n(this.canvas,{type:Je["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:Je["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 z(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 kt(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 _t(t,s,this),"tagName"in this.canvas&&!z(this.canvas,o,a,!0)&&(e=Et(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 At(e,t,n,i){const r=[];return r.push(...kt(t.WebGLRenderingContext.prototype,Je.WebGL,e,n,i,t)),"undefined"!=typeof t.WebGL2RenderingContext&&r.push(...kt(t.WebGL2RenderingContext.prototype,Je.WebGL2,e,n,i,t)),()=>{r.forEach(e=>e())}}class Ot{constructor(e){a(this,"pendingCanvasMutations",new Map),a(this,"rafStamps",{latestId:0,invokeId:null}),a(this,"mirror"),a(this,"mutationCb"),a(this,"resetObservers"),a(this,"frozen",!1),a(this,"locked",!1),a(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}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===t&&this.initCanvasMutationObserver(n,i,r)}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=xt(e,t,n,!1),r=Tt(this.processMutation.bind(this),e,t,n),o=At(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 Rt{constructor(e){a(this,"trackedLinkElements",new WeakSet),a(this,"mutationCb"),a(this,"adoptedStyleSheetCb"),a(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(){a(this,"nodeMap",new WeakMap),a(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]&&(wt=document.createElement("iframe"),document.body.appendChild(wt),Array.from=(null==(t=wt.contentWindow)?void 0:t.Array.from)||Array.from,document.body.removeChild(wt))}catch(Pt){console.debug("Unable to override Array.from",Pt)}const ue=new de;function e(e={}){const{emit:i,checkoutEveryNms:r,checkoutEveryNth:o,blockClass:n="rr-block",blockSelector:a=null,ignoreClass:F="rr-ignore",ignoreSelector:$=null,maskTextClass:s="rr-mask",maskTextSelector:u=null,inlineStylesheet:d=!0,maskAllInputs:D,maskInputOptions:t,slimDOMOptions:c,maskInputFn:l,maskTextFn:p,hooks:U,packFn:h,sampling:f={},dataURLOptions:g={},mousemoveWait:m,recordDOM:G=!0,recordCanvas:v=!1,recordCrossOriginIframes:j=!1,recordAfter:B="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:z=!1,collectFonts:H=!1,inlineImages:y=!1,plugins:b,keepIframeSrcFn:w=()=>!1,ignoreCSSAttributes:W=new Set([]),errorHandler:q}=e;e=q,ie=e;const S=!j||window.parent===window;let I=!1;if(!S)try{window.parent.document&&(I=!1)}catch(Y){I=!0}if(S&&!i)throw new Error("emit function is required");if(!S&&!I)return()=>{};void 0!==m&&void 0===f.mousemove&&(f.mousemove=m),ue.reset();const _=!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}:void 0!==t?t:{password:!0},E=!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 V,C=0;const K=e=>{for(const t of b||[])t.eventProcessor&&(e=t.eventProcessor(e));return e=h&&!I?h(e):e},T=(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(K(e),t):I&&(n={type:"rrweb",event:K(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===te.FullSnapshot?(V=e,C=0):e.type!==te.IncrementalSnapshot||e.data.source===ne.Mutation&&e.data.isAttachIframe||(C++,t=o&&C>=o,n=r&&e.timestamp-V.timestamp>r,(t||n)&&se(!0))},e=>{ae({type:te.IncrementalSnapshot,data:{source:ne.Mutation,...e}})}),J=e=>ae({type:te.IncrementalSnapshot,data:{source:ne.Scroll,...e}}),Z=e=>ae({type:te.IncrementalSnapshot,data:{source:ne.CanvasMutation,...e}});const x=new Rt({mutationCb:T,adoptedStyleSheetCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.AdoptedStyleSheet,...e}})}),k=new mt({mirror:ue,mutationCb:T,stylesheetManager:x,recordCrossOriginIframes:j,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,O=(Mt=new Ot({recordCanvas:v,mutationCb:Z,win:window,blockClass:n,blockSelector:a,mirror:ue,sampling:f.canvas,dataURLOptions:g}),new vt({mutationCb:T,scrollCb:J,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:u,inlineStylesheet:d,maskInputOptions:_,dataURLOptions:g,maskTextFn:p,maskInputFn:l,recordCanvas:v,inlineImages:y,sampling:f,slimDOMOptions:E,iframeManager:k,stylesheetManager:x,canvasManager:Mt,keepIframeSrcFn:w,processedNodeManager:A},mirror:ue}));se=(e=!1)=>{if(G){ae({type:te.Meta,data:{href:window.location.href,width:Fe(),height:Pe()}},e),x.reset(),O.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 X(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:_,maskTextFn:p,maskInputFn:l,slimDOM:E,dataURLOptions:g,recordCanvas:v,inlineImages:y,onSerialize:e=>{Be(e,ue)&&k.addIframe(e),ze(e,ue)&&x.trackLinkElement(e),He(e)&&O.addShadowRoot(Q.shadowRoot(e),document)},onIframeLoad:(e,t)=>{k.attachIframe(e,t),O.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{x.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&&x.adoptStyleSheets(document.adoptedStyleSheets,ue.getId(document))}},k.setTakeFullSnapshot(se);try{const M=[],L=e=>{return re(pt)({mutationCb:T,mousemoveCb:(e,t)=>ae({type:te.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.MouseInteraction,...e}}),scrollCb:J,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:$,maskTextClass:s,maskTextSelector:u,maskInputOptions:_,inlineStylesheet:d,sampling:f,recordDOM:G,recordCanvas:v,inlineImages:y,userTriggeredOnInput:z,collectFonts:H,doc:e,maskInputFn:l,maskTextFn:p,keepIframeSrcFn:w,blockSelector:a,slimDOMOptions:E,dataURLOptions:g,mirror:ue,iframeManager:k,stylesheetManager:x,shadowDomManager:O,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}})})))||[]},U)},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"===B&&P()})),M.push(ee("load",()=>{ae({type:te.Load,data:{}}),"load"===B&&P()},window))),()=>{M.forEach(e=>e()),A.destroy(),Lt=!1,ie=void 0}}catch(R){console.warn(R)}}return e.addCustomEvent=(e,t)=>{if(!Lt)throw new Error("please add custom event after start recording");ae({type:te.Custom,data:{tag:e,payload:t}})},e.freezePage=()=>{oe.forEach(e=>e.freeze())},e.takeFullSnapshot=e=>{if(!Lt)throw new Error("please take full snapshot after start recording");se(e)},e.mirror=ue,0,e}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$4.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$4.all(n)}}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.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.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$4((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$4.resolve():Promise$4.reject(new Error("sendBeacon failed to send recording data")):this.pendo.ajax.post(e,t.body)}_onMessage(e){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}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=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,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.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.subscriptions.length=0,this.stop(),this.transport.stop()}ready(){!1!==this.api.ConfigReader.get(RECORDING_CONFIG_AUTO_START)&&this.start()}changeIdentity(e){this.allowStart&&(clearTimeout(this._changeIdentityTimer),this.isRecording()&&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.fetchVisitorConfig().then(e=>{e&&e.enable||!this.isRecording()?e&&e.enable&&!this.isRecording()&&this._startRecordingForVisitor(e):this.stop()})["catch"](e=>{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)for(var t of e)t.visitor_id===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),this.recordingConfig(e));this._stop=this.record(this.pendo._.extend({emit:t(this.emit,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}}emit(e){e.timestamp&&e.timestamp.getTime&&(e.timestamp=e.timestamp.getTime()),e.timestamp||(e.timestamp=(new Date).getTime());var t=e.type===EVENT_TYPES.META,n=e.type===EVENT_TYPES.FULL_SNAPSHOT,i=this.pendo._.get(this.getLastUserInteractionEventInformation(),"timestamp");let r=!i&&t?!0:!1;this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,r);var o=this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES);i&&e.timestamp-i>o&&!n&&!t?(this.send(),this.clearSessionInfo(),this.snapshot()):(t&&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,o=(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),o||n&&t||e)&&(this.currentRecordingSize=0,this.snapshot()))}updateCurrentRecordingSize(e){this.currentRecordingSize+=e}onWorkerMessage(e){switch(e.type){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"];n&&this.sendHostedResources(n)}}addRecordingId(e){this.recordingId&&e&&e.data&&e.data.length&&"recording"!==(e=e.data[0]).type&&"identify"!==e.type&&(e.visitor_id!==this.visitorId?(this.api.log.warn("Visitor id has diverged from agent"),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()},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)}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 e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function c(e,t){t=t||r;e=function(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||57344<=i?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}("string"==typeof e?e:JSON.stringify(e)),e=new i.Deflate(e).compress();return t===r?n.uint8ToBase64(e):e}function l(e,t){t=t.match(/https:\/\/[^\s]+?\.(woff|woff2|ttf|otf|eot)\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 a,n,t,i,r;a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),n={uint8ToBase64:function(e){var t,n,i,r=e.length%3,o="";for(t=0,i=e.length-r;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=function(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=a[n>>2])+a[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=a[n>>10])+a[n>>4&63])+a[n<<2&63]}return o}},function(){var X=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===X?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&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,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===F,o=X,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),$=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&$,a[s++]=$>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,D=i.length;o<D;++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,U=c.length;l<U;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,G,b,w,S,j,I=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],z=Array(19),_=ne;for(I.b(1,1,Q),I.b(_,2,Q),p=re(this,n),_=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 E,C,T,x,k,H=h,W=f,A=new(ee?Uint32Array:Array)(H+W),O=new(ee?Uint32Array:Array)(316),R=new(ee?Uint8Array:Array)(19),N=E=0;N<H;N++)A[E++]=m[N];for(N=0;N<W;N++)A[E++]=v[N];if(!ee)for(N=0,T=R.length;N<T;++N)R[N]=0;for(N=x=0,T=A.length;N<T;N+=E){for(E=1;N+E<T&&A[N+E]===A[N];++E);if(C=E,0===A[N])if(C<3)for(;0<C--;)R[O[x++]=0]++;else for(;0<C;)(k=C-3<(k=C<138?C:138)&&k<C?C-3:k)<=10?(O[x++]=17,O[x++]=k-3,R[17]++):(O[x++]=18,O[x++]=k-11,R[18]++),C-=k;else if(O[x++]=A[N],R[A[N]]++,--C<3)for(;0<C--;)O[x++]=A[N],R[A[N]]++;else for(;0<C;)C-3<(k=C<6?C:6)&&k<C&&(k=C-3),O[x++]=16,O[x++]=k-3,R[16]++,C-=k}for(e=ee?O.subarray(0,x):O.slice(0,x),y=oe(R,7),S=0;S<19;S++)z[S]=y[B[S]];for(g=19;4<g&&0===z[g-1];g--);for(G=ae(y),I.b(h-257,5,Q),I.b(f-1,5,Q),I.b(g-4,4,Q),S=0;S<g;S++)I.b(z[S],3,Q);for(S=0,j=e.length;S<j;S++)if(b=e[S],I.b(G[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}I.b(e[S],w,Q)}for(var M,q,_=[_,m],L=[L,v],V=_[0],K=_[1],J=L[0],Z=L[1],P=0,Y=p.length;P<Y;++P)if(M=p[P],I.b(V[M],K[M],Q),256<M)I.b(p[++P],p[++P],Q),q=p[++P],I.b(J[q],Z[q],Q),I.b(p[++P],p[++P],Q);else if(256===M)break;this.a=I.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,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]===X&&(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,I=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,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(I);else for(m in g=[],v=0,I)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),I[m])}.call((t={exports:{}}).exports),i={Deflate:e(t.exports).Zlib.Deflate},r="base64url",self.onmessage=function(e){try{if(e.data.url&&e.data.payload){var{url:t,payload:n,shouldCacheResources:i}=e.data;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})}))}}catch(e){postMessage({error:e})}}},null);function createReplayPlugin(){return errorLogger(new SessionRecorder(record(),WorkerFactory))}export{Feedback,GuideMarkdown,createReplayPlugin as Replay,TextCapture,VocPortal,loadAgent};