@pendo/agent 2.330.1 → 2.330.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dom.esm.js +7 -3
- package/dist/pendo.module.js +799 -806
- package/dist/pendo.module.min.js +3 -101
- package/dist/servers.json +7 -7
- package/package.json +1 -1
package/dist/pendo.module.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license https://agent.pendo.io/licenses
|
|
3
3
|
*/
|
|
4
|
-
function loadAgent(B){d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");var d,u={uint8ToBase64:function(e){var t,n,i,r=e.length%3,o="";for(t=0,i=e.length-r;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=function(e){return d[e>>18&63]+d[e>>12&63]+d[e>>6&63]+d[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=d[n>>2])+d[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=d[n>>10])+d[n>>4&63])+d[n<<2&63]}return o}},Gt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var l,o,p,H,z,j,q,e={exports:{}};function W(e){e?(j[0]=j[16]=j[1]=j[2]=j[3]=j[4]=j[5]=j[6]=j[7]=j[8]=j[9]=j[10]=j[11]=j[12]=j[13]=j[14]=j[15]=0,this.blocks=j):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}n=e,l="object"==typeof window?window:{},t=!l.JS_SHA1_NO_COMMON_JS&&n.exports,o="0123456789abcdef".split(""),p=[-2147483648,8388608,32768,128],H=[24,16,8,0],z=["hex","array","digest","arrayBuffer"],j=[],q=function(t){return function(e){return new W(!0).update(e)[t]()}},W.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===l.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]<<H[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<H[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<H[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<H[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<H[3&n++],a[n>>2]|=(128|t>>12&63)<<H[3&n++]),a[n>>2]|=(128|t>>6&63)<<H[3&n++]),a[n>>2]|=(128|63&t)<<H[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]|=p[3&t],this.block=e[16],56<=t&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash())},W.prototype.hash=function(){for(var e,t=this.h0,n=this.h1,i=this.h2,r=this.h3,o=this.h4,a=this.blocks,s=16;s<80;++s)e=a[s-3]^a[s-8]^a[s-14]^a[s-16],a[s]=e<<1|e>>>31;for(s=0;s<20;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|~n&r)+o+1518500249+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|~t&i)+r+1518500249+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|~o&n)+i+1518500249+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|~r&t)+n+1518500249+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|~i&o)+t+1518500249+a[s+4]<<0,i=i<<30|i>>>2;for(;s<40;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o+1859775393+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r+1859775393+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i+1859775393+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n+1859775393+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t+1859775393+a[s+4]<<0,i=i<<30|i>>>2;for(;s<60;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|n&r|i&r)+o-1894007588+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|t&i|n&i)+r-1894007588+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|o&n|t&n)+i-1894007588+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|r&t|o&t)+n-1894007588+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|i&o|r&o)+t-1894007588+a[s+4]<<0,i=i<<30|i>>>2;for(;s<80;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o-899497514+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r-899497514+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i-899497514+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n-899497514+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t-899497514+a[s+4]<<0,i=i<<30|i>>>2;this.h0=this.h0+t<<0,this.h1=this.h1+n<<0,this.h2=this.h2+i<<0,this.h3=this.h3+r<<0,this.h4=this.h4+o<<0},W.prototype.toString=W.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return o[e>>28&15]+o[e>>24&15]+o[e>>20&15]+o[e>>16&15]+o[e>>12&15]+o[e>>8&15]+o[e>>4&15]+o[15&e]+o[t>>28&15]+o[t>>24&15]+o[t>>20&15]+o[t>>16&15]+o[t>>12&15]+o[t>>8&15]+o[t>>4&15]+o[15&t]+o[n>>28&15]+o[n>>24&15]+o[n>>20&15]+o[n>>16&15]+o[n>>12&15]+o[n>>8&15]+o[n>>4&15]+o[15&n]+o[i>>28&15]+o[i>>24&15]+o[i>>20&15]+o[i>>16&15]+o[i>>12&15]+o[i>>8&15]+o[i>>4&15]+o[15&i]+o[r>>28&15]+o[r>>24&15]+o[r>>20&15]+o[r>>16&15]+o[r>>12&15]+o[r>>8&15]+o[r>>4&15]+o[15&r]},W.prototype.array=W.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r]},W.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(20),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),e},i=function(){var t=q("hex");t.create=function(){return new W},t.update=function(e){return t.create().update(e)};for(var e=0;e<z.length;++e){var n=z[e];t[n]=q(n)}return t}(),t?n.exports=i:l.sha1=i;var V=c(e.exports);let J;const K={createScriptURL:e=>e,createHTML:e=>e};function $(e){return J||(J=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",K):K),e.trustedTypesPolicy=J),J}var E,X="stagingServerHashes",Y="stagingDomains",Z={};function Q(e){return e.loadAsModule}function ee(e){return"staging"===e.environmentName}function te(e){return"extension"===e.installType}function ne(t=[],n){var i=/^https:\/\/[\w\-.]*cdn[\w\-.]*\.(pendo-dev\.com|pendo\.io)\/agent\/static\/([\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}|PENDO_API_KEY)\/pendo\.js$/g;for(let e=0;e<t.length;e++){var r=t[e];if(i.test(r.src)||r.id==="pendo-"+n)return r}}function ie(e,t,n){e=function(e=[]){if(e=ne(e))return e.src.replace(/\.js$/,"-staging.js")}(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function re(n,i=[],r=[]){if(n){if(0<r.length){var o=se(n);for(let e=0,t=r.length;e<t;++e)if(r[e]===o)return!0}if(0<i.length)for(let t=0,e=i.length;t<e;++t){let e=i[t];if((e="string"==typeof(e="object"==typeof e&&e.value?e.regexp?(e.value.startsWith("/")&&e.value.endsWith("/")&&(e.value=e.value.substring(1,e.value.length-1)),new RegExp(e.value)):e.value:e)?new RegExp("^"+e+"$"):e)instanceof RegExp&&e.test(n))return!0}}return!1}function oe(e,t=[]){if(t.length)for(var n=function(e){if(!(e=(e||"").split(":")[0].toLowerCase())||/^[\d.]+$/.test(e)||0<=e.indexOf(":"))return[];for(var t=e.split("."),n=[],i=0;i<=t.length-2;i++)n.push(t.slice(i).join("."));return n}(e),i=0;i<n.length;i++)if(0<=t.indexOf(se(n[i])))return!0;return!1}function ae(e,t){return!!(e=e||Z)&&(!!ee(e)||re((t=t||window.location).host,e.stagingServers,e[X])||oe(t.host,e[Y]))}function se(e){return u.uint8ToBase64(V.create().update(e).digest())}var de=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function ue(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function ce(e){if(!e._q)for(var t=de,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){ue(t,e,arguments)}}(t[n],e)}function le(e,t,n){if(!te(i=e)&&!ee(i)&&ae(i)){i=ie(e,!0,n);if(i)return ce(t),he(i,t),!0}var i;return!1}function pe(e,t,n){if(r=n,!te(i=e)&&!i.unminified&&r){i=ie(e,!1,n);if(i)return ce(t),he(i,t),!0}var i,r;return!1}function he(e,t){var n=document.createElement("script"),t=(n["async"]=!0,n.src=$(t).createScriptURL(e),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(n,t):(document.head||document.body).appendChild(n)}function fe(e){Z=e}function ge(){return void 0===B?{}:B}function me(e){return Z[e]}ve(window.setTimeout,window);function ve(e,t){return"function"==typeof e.bind?e.bind(t):e}var ye,Ut=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return ve(e[t],e)}(window),_=c(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Gt&&Gt.global===Gt&&Gt||Function("return this")()||{},i=Array.prototype,D=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,U=i.push,d=i.slice,l=D.toString,G=D.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),B=Array.isArray,H=Object.keys,z=Object.create,j=t&&ArrayBuffer.isView,q=isNaN,W=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],K=Math.pow(2,53)-1;function c(r,o){return o=null==o?r.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),n=0;n<e;n++)t[n]=arguments[n+o];switch(o){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}for(var i=Array(o+1),n=0;n<o;n++)i[n]=arguments[n];return i[o]=t,r.apply(this,i)}}function o(e){var t=typeof e;return"function"==t||"object"==t&&!!e}function $(e){return void 0===e}function X(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"),Z=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=B||r("Array");function g(e,t){return null!=e&&G.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return Z(e)&&q(e)}function de(e){return function(){return e}}function ue(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=K}}function ce(t){return function(e){return null==e?void 0:e[t]}}var m=ce("byteLength"),le=ue(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return j?j(e)&&!h(e):le(e)&&pe.test(l.call(e))}:de(!1),v=ce("length");function fe(e,t){t=function(t){for(var n={},e=t.length,i=0;i<e;++i)n[t[i]]=!0;return{contains:function(e){return!0===n[e]},push:function(e){return n[e]=!0,t.push(e)}}}(t);var n=J.length,i=e.constructor,r=p(i)&&i.prototype||D,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=J[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(H)return H(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return V&&fe(e,n),n}function ge(e,t){var n=y(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function c(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=l.call(e);if(r!==l.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return F.valueOf.call(e)===F.valueOf.call(t);case"[object ArrayBuffer]":case ve:return c(me(e),me(t),n,i)}r="[object Array]"===r;if(!r&&he(e)){var o=m(e);if(o!==m(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];i=i||[];var s=n.length;for(;s--;)if(n[s]===e)return i[s]===t;n.push(e);i.push(t);if(r){if((s=e.length)!==t.length)return!1;for(;s--;)if(!ye(e[s],t[s],n,i))return!1}else{var d,u=y(e);if(s=u.length,y(t).length!==s)return!1;for(;s--;)if(d=u[s],!g(t,d)||!ye(e[d],t[d],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function u(e){if(!o(e))return[];var t,n=[];for(t in e)n.push(t);return V&&fe(e,n),n}function be(i){var r=v(i);return function(e){if(null==e)return!1;var t=u(e);if(v(t))return!1;for(var n=0;n<r;n++)if(!p(e[i[n]]))return!1;return i!==Se||!p(e[we])}}var we="forEach",e=["clear","delete"],n=["get","has","set"],B=e.concat(we,n),Se=e.concat(n),t=["add"].concat(e,we,"has"),n=a?be(B):r("Map"),e=a?be(Se):r("WeakMap"),B=a?be(t):r("Set"),a=r("WeakSet");function w(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ee(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Ie(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function _e(d,u){return function(e){var t=arguments.length;if(u&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=d(i),o=r.length,a=0;a<o;a++){var s=r[a];u&&void 0!==e[s]||(e[s]=i[s])}return e}}var Ce=_e(u),s=_e(y),xe=_e(u,!0);function Te(e){var t;return o(e)?z?z(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function Re(e){return f(e)?e:[e]}function S(e){return b.toPath(e)}function ke(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function Ae(e,t,n){e=ke(e,S(t));return $(e)?n:e}function Oe(e){return e}function E(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return ke(e,t)}}function I(r,o,e){if(void 0===o)return r;switch(null==e?3:e){case 1:return function(e){return r.call(o,e)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return function(){return r.apply(o,arguments)}}function Me(e,t,n){return null==e?Oe:p(e)?I(e,t,n):(o(e)&&!f(e)?E:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function _(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Pe(){}function De(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=Re,b.iteratee=Le;var C=Date.now||function(){return(new Date).getTime()};function Fe(t){var n=function(e){return t[e]},e="(?:"+y(t).join("|")+")",i=RegExp(e),r=RegExp(e,"g");return function(e){return i.test(e=null==e?"":""+e)?e.replace(r,n):e}}var t={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Ue=Fe(t),t=Fe(Ee(t)),Ge=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Be=/(.)^/,He={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ze=/\\|'|\r|\n|\u2028|\u2029/g;function je(e){return"\\"+He[e]}var qe=/^\s*(\w|\$)+\s*$/;var We=0;function Ve(e,t,n,i,r){return i instanceof t?(i=Te(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var x=c(function(r,o){var a=x.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),i=0;i<t;i++)n[i]=o[i]===a?arguments[e++]:o[i];for(;e<arguments.length;)n.push(arguments[e++]);return Ve(r,s,this,this,n)};return s}),Je=(x.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return Ve(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),T=ue(v);function R(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=Infinity;for(var r=i.length,o=0,a=v(e);o<a;o++){var s=e[o];if(T(s)&&(f(s)||ae(s)))if(1<t)R(s,t-1,n,i),r=i.length;else for(var d=0,u=s.length;d<u;)i[r++]=s[d++];else n||(i[r++]=s)}return i}var Ke=c(function(e,t){var n=(t=R(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Je(e[i],e)}return e});var $e=c(function(e,t,n){return Ut(function(){return e.apply(null,n)},t)}),Xe=x($e,b,1);function Ye(e){return function(){return!e.apply(this,arguments)}}function Ze(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=x(Ze,2);function et(e,t,n){t=_(t,n);for(var i,r=y(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function tt(o){return function(e,t,n){t=_(t,n);for(var i=v(e),r=0<o?0:i-1;0<=r&&r<i;r+=o)if(t(e[r],r,e))return r;return-1}}var nt=tt(1),it=tt(-1);function rt(e,t,n,i){for(var r=(n=_(n,i,1))(t),o=0,a=v(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function ot(o,a,s){return function(e,t,n){var i=0,r=v(e);if("number"==typeof n)0<o?i=0<=n?n:Math.max(n+r,i):r=0<=n?Math.min(n+1,r):n+r+1;else if(s&&n&&r)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(d.call(e,i,r),se))?n+i:-1;for(n=0<o?i:r-1;0<=n&&n<r;n+=o)if(e[n]===t)return n;return-1}}var at=ot(1,nt,rt),st=ot(-1,it);function dt(e,t,n){t=(T(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function k(e,t,n){if(t=I(t,n),T(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function A(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function ut(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=I(t,i,4),s=n,d=!T(o)&&y(o),u=(d||o).length,c=0<p?0:u-1;for(r||(s=o[d?d[c]:c],c+=p);0<=c&&c<u;c+=p){var l=d?d[c]:c;s=a(s,o[l],l,o)}return s}}var ct=ut(1),lt=ut(-1);function O(e,i,t){var r=[];return i=_(i,t),k(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function N(e,t,n,i){return T(e)||(e=w(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=c(function(e,n,i){var r,o;return p(n)?o=n:(n=S(n),r=n.slice(0,-1),n=n[n.length-1]),A(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?ke(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return A(e,Ne(t))}function mt(e,i,t){var n,r,o=-Infinity,a=-Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=T(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&o<n&&(o=n);else i=_(i,t),k(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?d.call(e):Y(e)?e.match(vt):T(e)?A(e,Oe):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=T(e)?e:w(e))[De(e.length-1)];for(var i=yt(e),n=v(i),r=(t=Math.max(Math.min(t,n),0),n-1),o=0;o<t;o++){var a=De(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function M(o,t){return function(n,i,e){var r=t?[[],[]]:{};return i=_(i,e),k(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var wt=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),St=M(function(e,t,n){e[n]=t}),Et=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),It=M(function(e,t,n){e[n?0:1].push(t)},!0);function _t(e,t,n){return t in n}var Ct=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=I(i,t[1])),t=u(e)):(i=_t,t=R(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=e[a];i(s,a,e)&&(n[a]=s)}}return n}),xt=c(function(e,n){var t,i=n[0];return p(i)?(i=Ye(i),1<n.length&&(t=n[1])):(n=A(R(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Ct(e,i,t)});function Tt(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Rt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Tt(e,e.length-t)}function L(e,t,n){return d.call(e,null==t||n?1:t)}var kt=c(function(e,t){return t=R(t,!0,!0),O(e,function(e){return!N(t,e)})}),At=c(function(e,t){return kt(e,t)});function Ot(e,t,n,i){X(t)||(i=n,n=t,t=!1),null!=n&&(n=_(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var d=e[a],u=n?n(d,a,e):d;t&&!n?(a&&o===u||r.push(d),o=u):n?N(o,u)||(o.push(u),r.push(d)):N(r,d)||r.push(d)}return r}var Nt=c(function(e){return Ot(R(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Pt(e,t){return e._chain?b(t).chain():t}function Dt(n){return k(Ie(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return U.apply(e,arguments),Pt(this,t.apply(b,e))}}),b}k(["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)}}),k(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Pt(this,e=null!=e?t.apply(e,arguments):e)}});var P=Dt({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:$,isBoolean:X,isElement:function(e){return!(!e||1!==e.nodeType)},isString:Y,isNumber:Z,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&W(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||Y(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:B,isWeakSet:a,keys:y,allKeys:u,values:w,pairs:function(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:Ee,functions:Ie,methods:Ie,extend:Ce,extendOwn:s,assign:s,defaults:xe,create:function(e,t){return e=Te(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:Ae,has:function(e,t){for(var n=(t=S(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=_(t,n);for(var i=y(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Oe,constant:de,noop:Pe,toPath:Re,property:Ne,propertyOf:function(t){return null==t?Pe:function(e){return Ae(t,e)}},matcher:E,matches:E,times:function(e,t,n){var i=Array(Math.max(0,e));t=I(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:De,now:C,escape:Ue,unescape:t,templateSettings:Ge,template:function(o,e,t){e=xe({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||Be).source,(e.interpolate||Be).source,(e.evaluate||Be).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace(ze,je),a=r+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(s+="';\n"+i+"\n__p+='"),e}),s+="';\n",t=e.variable){if(!qe.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{throw new Error("Function constructor not supported")}catch(n){throw n.source=s,n}return(e=function(e){return(void 0).call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=S(t)).length;if(!i)return p(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++We+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:x,bind:Je,bindAll:Ke,memoize:function(i,r){var o=function(e){var t=o.cache,n=""+(r?r.apply(this,arguments):e);return g(t,n)||(t[n]=i.apply(this,arguments)),t[n]};return o.cache={},o},delay:$e,defer:Xe,throttle:function(n,i,r){var o,a,s,d,u=0,c=(r=r||{},function(){u=!1===r.leading?0:C(),o=null,d=n.apply(a,s),o||(a=s=null)}),e=function(){var e=C(),t=(u||!1!==r.leading||(u=e),i-(e-u));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout(o),o=null),u=e,d=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=Ut(c,t)),d};return e.cancel=function(){clearTimeout(o),u=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,d,u=function(){var e=C()-o;e<n?r=Ut(u,n-e):(r=null,i||(s=t.apply(d,a)),r||(a=d=null))},e=c(function(e){return d=this,a=e,o=C(),r||(r=Ut(u,n),i&&(s=t.apply(d,a))),s});return e.cancel=function(){clearTimeout(r),r=a=d=null},e},wrap:function(e,t){return x(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:Ze,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:dt,detect:dt,findWhere:function(e,t){return dt(e,E(t))},each:k,forEach:k,map:A,collect:A,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Ye(_(t)),n)},every:pt,all:pt,some:ht,any:ht,contains:N,includes:N,include:N,invoke:ft,pluck:gt,where:function(e,t){return O(e,E(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=T(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&n<o&&(o=n);else i=_(i,t),k(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=_(i,t),gt(A(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:wt,indexBy:St,countBy:Et,partition:It,toArray:yt,size:function(e){return null==e?0:(T(e)?e:y(e)).length},pick:Ct,omit:xt,first:Rt,head:Rt,take:Rt,initial:Tt,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return O(e,Boolean)},flatten:function(e,t){return R(e,t,!1)},without:At,uniq:Ot,unique:Ot,union:Nt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=v(e);i<r;i++){var o=e[i];if(!N(t,o)){for(var a=1;a<n&&N(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:kt,unzip:Mt,transpose:Mt,zip:Lt,object:function(e,t){for(var n={},i=0,r=v(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n=n||(t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(d.call(e,i,i+=t));return n},mixin:Dt,"default":b}),Ft=P.toPath;return P.mixin({toPath:function(e){return P.isString(e)?e.split("."):Ft(e)}}),P._=P}());function I(e){return!(null==e)}function be(e){return _.isFunction(e)||_.isRegExp(e)?e:_.isArray(e)?_.map(e,be):_.isObject(e)?_.reduce(e,function(e,t,n){return e[n]=be(t),e},{}):e}var S=function(){var i=_.all,r=_.each,o=_.filter,a=_.first,s=_.find,n=_.map,d=_.pluck,u="snippet",c="pendoconfig",l="global",p="default";const h={};function e(e,t=[c],n,i,r=[]){var o;e&&!h[e]&&(o={name:e,aliases:r=_.isArray(r)?r:[],defaultValue:n,supportedSources:t},null!=i&&(o.useAnySource=i),h[e]=o,0<r.length)&&_.each(r,function(e){h[e]===undefined&&(h[e]=o)})}e("additionalPublicAppIds",[c,u],undefined,undefined,["additionalApiKeys"]),e("allowedOriginServers"),e("allowedOriginServerHashes"),e("allowMixedApplicationFrames",[u,c],!0),e("allowMixedApiKeyFrames",[u,c],!0),e("annotateUrl",[u]),e("publicAppId",[c,u],undefined,undefined,["apiKey"]),e("assetHost",[u,c]),e("autoFrameInstall",[u,c],!1),e("blockWebSDKMetadata",[c],!1,undefined,["blockAgentMetadata"]),e("contentHost",[u,c]),e("cookieDomain",[u,c]),e("dataHost",[u,c]),e("disableAutoInitialize"),e("initializeWhenVisible",[c],!1),e("disableCookies",[u,c]),e("disablePendo",[u,c],!1),e("disablePersistence",[u,c]),e("enableSignedMetadata",[c],!1),e("forceAnonymous",[u,c],!1),e("forcedLeader",[u,c],!1),e("frameIdentitySync",[u,c],!1),e("frameIdentityTopDownOnly",[u,c],!0),e("identityStorageLifetime",[u,c]),e("identityStorageSuffix",[u,c]),e("ignoreHashRouting",[u,c]),e("initializeImmediately",[u,c],!1),e("installType"),e("localStorageOnly",[u,c]),e("location.pushState",[u,c],!0),e("maxCookieTTLDays",[u,c],Infinity),e("observeShadowRoots",[u,c],!1),e("pendoCore",[c],!0),e("pendoGlobalKey",[c]),e("preferBroadcastChannel",[u,c],!1),e("preferMutationObserver",[u,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[u,c],!1),e("promotedWebSDKMetadataConfigurations",[c],undefined,undefined,["promotedAgentMetadataConfigurations"]),e("queryStringWhitelist",[u]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[u]),e("selfHosted"),e("selfHostedWebSDKUrl",[u,c],undefined,undefined,["selfHostedAgentUrl"]),e("sendEventsWithPostOnly",[u,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[c,u],[],!0),e("analytics.excludeEvents",[u,c],[]),e("analytics.localStorageUnload",[u,c],!1),e("enableDebugEvents",[u,c]),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[u,c],!0),e("excludeAllText",[c,u],!1,!0),e("excludeNonGuideAnalytics",[u,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptPreventDefault",[u,c],!0),e("interceptStopPropagation",[u,c],!0),e("syntheticClicks.elementRemoval",[u,c],!1,undefined,["interceptElementRemoval"]),e("syntheticClicks.targetChanged",[u,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[u,c]),e("cacheGuides",[u,c],!1),e("cacheGuidesTimeout",[c],6e5),e("disableDesigner",[c,u],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[u,c],!1),e("disableGuidePseudoStyles",[u,c],!1),e("disablePrefetch",[u,c]),e("doNotTrackGuides",[u,c]),e("enableDesignerKeyboardShortcut",[u]),e("enableGuideTimeout",[c,u],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,u],1e4),e("guideValidation",[u,c],!1),e("guides.attachPoint",[u]),e("guides.delay",[u],!1,undefined,["delayGuides"]),e("guides.disabled",[u],!1,undefined,["disableGuides"]),e("guides.ejectOnTimeout",[u,c],!1),e("guides.globalScripts",[u,c],[]),e("guides.timeout",[u],undefined,undefined,["guideTimeout"]),e("guides.tooltip.arrowSize",[u]),e("inlineStyleNonce",[u]),e("leaderApplication",[u,c],[]),e("leaderKey",[u,c],[]),e("preventCodeInjection",[c,u,l],!1),e("previewModeAssetPath"),e("useAssetHostForDesigner",[u,c],!1),e("storage.allowKeys",[u],"*"),e("disableFeedback",[u]),e("disableFeedbackAutoInit"),e("feedbackSettings",[c],{}),e("pendoFeedback",[c],!1),e("crossAppGuideStorageSuffix",[u,c]),e("enableCrossOriginIsolation",[u,c],!1),e("secureDesignerConnect",[u,c],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("webSDKDebuggerPluginLoader",[c],undefined,undefined,["agentDebuggerPluginLoader"]),e("allowPartnerAnalyticsForwarding",[u],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerWebSDKPluginsLoader",[c,u],undefined,undefined,["designerAgentPluginsLoader"]),e("guideContentLoader",[c]),e("trainingPartner"),e("oemAccountId",[u]),e("whiteLabelSettings",[c]),e("errorClickLogging",[c],!1),e("enableAllEmbeddedGuideEvents",[c],!1),e("formValidation",[c],!1),e("performanceMetricsEnabled",[u,c],!0),e("performanceMetricsSampleRate",[u,c],10);var f={};function g(e){return h[e]||{name:e}}function m(t,n){if(n){const i=n();let e=_.get(i.lookup,(n=t,_.get(n,"key")||_.get(n,"name")));return I(e)||(n=_.find(t.aliases||[],function(e){e=_.get(i.lookup,e);if(I(e))return e}))&&(e=_.get(i.lookup,n)),I(e)?e:undefined}}function v(e,t){var n=m(e,f[t]);return new w(e.name,n,t)}function y(e,t){return t=t||_.get(e,"supportedSources",[u,c,l]),o(n(t,_.partial(v,e)),function(e){return I(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||_.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&I(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function w(e,t,n){this.name=e,this.value=t,this.source=n}function S(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(d(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[u]=function(){return{lookup:ye||window.pendo_options,name:u}},f[c]=function(){return{lookup:Z,name:c}},f[l]=function(){return{lookup:E,name:l}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get(e,t){return b(e,t).value},getLocalConfig(e,t){return arguments.length?b(e,t,[u]).value:be(ye)},getHostedConfig(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig(e){ye=e},options:()=>d(h,"name"),sources:{SNIPPET_SRC:u,PENDO_CONFIG_SRC:c,GLOBAL_SRC:l,DEFAULT_SRC:p},validate(t){t.groupCollapsed("Validate Config options"),r(S(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}();const we="extension",Se="native";function Ee(){return S.get("installType")||ge().installType||Se}function Ie(){return Ee()===we}function _e(e){return/native/.test(e)}const Ce=e=>{e=_.get(window,e);return e&&_e(e)};function xe(e,t){return e=e||10,(t=!isNaN(Re)&&(!t||Re<t))&&Te<e}const Te=function(e){let t=ke((/msie (\d+)/.exec(Ae(e))||[])[1]);isNaN(t)&&(t=ke((/trident\/.*; rv:(\d+)/.exec(Ae(e))||[])[1]));return t}(Oe()),Re=function(e,t){let n=ke((/trident\/(\d+)/.exec(Ae(e))||[])[1]);isNaN(n)&&7==t&&(n=3);return n}(Oe(),Te);function ke(e){return parseInt(e,10)}function Ae(e){return _.isString(e)?e.toLowerCase():e}function Oe(){return(window.navigator||{}).userAgent}const Ne={},Me=ke((/android (\d+)/.exec(Ae(Oe()))||[])[1]),Le=/Boxee/i.test(Oe()),Pe=window.document||{},De=Pe.documentMode;let Fe;var Ue,Ge=/^(Moz|webkit|O|ms)(?=[A-Z])/,t=Pe.body&&Pe.body.style;let Be=!1,He=!1;if(t){for(const xE in t)if(Ue=Ge.exec(xE)){Fe=(Fe=Ue[0]).substr(0,1).toUpperCase()+Fe.substr(1);break}Fe=Fe||"WebkitOpacity"in t&&"webkit",Be=!!("transition"in t||Fe+"Transition"in t),He=!!("animation"in t||Fe+"Animation"in t),!Me||Be&&He||(Be=_.isString(Pe.body.style.webkitTransition),He=_.isString(Pe.body.style.webkitAnimation))}var n=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id;const ze=_.memoize(function ze(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&_.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&_.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&_.get(n,"pushState.writable",!0)&&_.get(n,"replaceState.writable",!0),i=!(Me<4);return!(!e||t||!n||!i||Le||Ie())});const je={supportsHistoryApi:ze,supportsHashChange:function(){var e="onhashchange"in window,t=!De||7<De;return!(!e||!t||Ie())},hasEvent(e){var t;return("input"!=e||9!=Te)&&(_.isUndefined(Ne[e])&&(t=Pe.createElement("div"),Ne[e]="on"+e in t),Ne[e])},vendorPrefix:Fe,transitions:Be,animations:He,android:Me,msie:Te,msieDocumentMode:De,safari:0<=(i=Oe()).indexOf("Safari")&&0<=!i.indexOf("Chrome"),sri:"integrity"in document.createElement("script"),addEventListener:_.isFunction(window.addEventListener),MutationObserver:_e(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:_.memoize(function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Oe())}),isChromeExtension:n};var qe=function(){return!isNaN(Te)&&11!=Te&&"CSS1Compat"!==document.compatMode},We=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,Te<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+E.TOOLTIP_ARROW_SIZE),e.arrow.top=i-E.TOOLTIP_ARROW_SIZE,10==Te?e.arrow.top--:Te<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=10+E.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*E.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-E.TOOLTIP_ARROW_SIZE),e.arrow.border.top=e.arrow.top+n,e.arrow.border.left=e.arrow.left):("left"==e.arrow.hbias?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left-1):"right"==e.arrow.hbias&&(e.left=Math.max(0,t.left-r-E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left+1),e.top=t.top+t.height/2-i/2,e.arrow.top=i/2-E.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e};let Ve="",Je="",Ke="",$e="",Xe="",Ye="",Ze="",Qe="2.330.1_",et="2.330.1",tt="xhr";const nt=function(){return qe()?Qe+"+quirksmode":Qe};var it=/^\s+|\s+$/g;function rt(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 ot=(ot=String.prototype.trim)||function(){return this.replace(it,"")},e={exports:{}};!function(){var Z=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===Z?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&d(this)}function d(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(u[255&e]<<24|u[e>>>8&255]<<16|u[e>>>16&255]<<8|u[e>>>24&255])>>32-t:u[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=u[s],s=0,o===r.length)&&(r=d(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=u[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var u=t;function c(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&e instanceof Array?new Uint8Array(e):e,this.c=0,t&&(t.lazy&&(this.i=t.lazy),"number"==typeof t.compressionType&&(this.d=t.compressionType),t.outputBuffer&&(this.a=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.prototype.push=function(e,t){var n,i,r=this.buffer,o=this.length;for(r[this.length++]=t,r[this.length++]=e;0<o&&(n=this.getParent(o),r[o]>r[n]);)i=r[o],r[o]=r[n],r[n]=i,i=r[o+1],r[o+1]=r[n+1],r[n+1]=i,o=n;return this.length},c.prototype.pop=function(){var e,t,n,i=this.buffer,r=i[0],o=i[1];for(this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],n=0;!((t=2*n+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[n]);)e=i[n],i[n]=i[t],i[t]=e,e=i[n+1],i[n+1]=i[t+1],i[t+1]=e,n=t;return{index:o,value:r,length:this.length}};for(var ne=2,l={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,D,n=this.input;switch(this.d){case 0:for(t=0,D=n.length;t<D;){var F,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===D,o=Z,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),F=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&F,a[s++]=F>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,U=i.length;o<U;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var d,u=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(u.b(1,1,Q),u.b(1,2,Q),re(this,n)),l=0,G=c.length;l<G;l++)if(d=c[l],te.prototype.b.apply(u,ie[d]),256<d)u.b(c[++l],c[++l],Q),u.b(c[++l],5),u.b(c[++l],c[++l],Q);else if(256===d)break;this.a=u.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,H,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,x,T,R,q=h,W=f,k=new(ee?Uint32Array:Array)(q+W),A=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<q;N++)k[_++]=m[N];for(N=0;N<W;N++)k[_++]=v[N];if(!ee)for(N=0,x=O.length;N<x;++N)O[N]=0;for(N=T=0,x=k.length;N<x;N+=_){for(_=1;N+_<x&&k[N+_]===k[N];++_);if(C=_,0===k[N])if(C<3)for(;0<C--;)O[A[T++]=0]++;else for(;0<C;)(R=C-3<(R=C<138?C:138)&&R<C?C-3:R)<=10?(A[T++]=17,A[T++]=R-3,O[17]++):(A[T++]=18,A[T++]=R-11,O[18]++),C-=R;else if(A[T++]=k[N],O[k[N]]++,--C<3)for(;0<C--;)A[T++]=k[N],O[k[N]]++;else for(;0<C;)C-3<(R=C<6?C:6)&&R<C&&(R=C-3),A[T++]=16,A[T++]=R-3,O[16]++,C-=R}for(e=ee?A.subarray(0,T):A.slice(0,T),y=oe(O,7),S=0;S<19;S++)j[S]=y[z[S]];for(g=19;4<g&&0===j[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(j[S],3,Q);for(S=0,H=e.length;S<H;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],J=I[0],K=I[1],$=L[0],X=L[1],P=0,Y=p.length;P<Y;++P)if(M=p[P],E.b(J[M],K[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b($[V],X[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,d=w[e.length];switch(a[s++]=65535&d,a[s++]=d>>16&255,a[s++]=d>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(d=n,a[s++]=d[0],a[+s]=d[1],a[5]=d[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,c=null}var i,r,o,a,s,d,u,c,l,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===Z&&(p[s]=[]),d=p[s],!(0<g--)){for(;0<d.length&&32768<i-d[0];)d.shift();if(r<=i+3){for(c&&n(c,-1),o=0,a=r-i;o<a;++o)l=t[i+o],h[f++]=l,++m[l];break}0<d.length?(u=function(e,t,n){var i,r,o,a,s,d,u=0,c=e.length;a=0,d=n.length;e:for(;a<d;a++){if(i=n[d-a-1],(o=3)<u){for(s=u;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=u}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(u<o&&(r=i,u=o),258===o)break}return new b(u,t-r)}(t,i,d),c?c.length<u.length?(l=t[i-1],h[f++]=l,++m[l],n(u,0)):n(c,-1):u.length<y?c=u:n(u,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}d.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,d=new c(572),u=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)u[o]=0;for(o=0;o<s;++o)0<e[o]&&d.push(o,e[o]);if(n=Array(d.length/2),i=new(ee?Uint32Array:Array)(d.length/2),1===n.length)u[d.pop().index]=1;else{for(o=0,a=d.length/2;o<a;++o)n[o]=d.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,d=new(ee?Uint16Array:Array)(t),u=new(ee?Uint8Array:Array)(t),c=new(ee?Uint8Array:Array)(n),l=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(d[t-1]=n,r=0;r<t;++r)f<g?u[r]=0:(u[r]=1,f-=g),f<<=1,d[t-2-r]=(d[t-1-r]/2|0)+n;for(d[0]=u[0],l[0]=Array(d[0]),p[0]=Array(d[0]),r=1;r<t;++r)d[r]>2*d[r-1]+u[r]&&(d[r]=2*d[r-1]+u[r]),l[r]=Array(d[r]),p[r]=Array(d[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<d[t-1];++o)l[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===u[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<d[r];o++)(a=l[r+1][s]+l[r+1][s+1])>e[i]?(l[r][o]=a,p[r][o]=n,s+=2):(l[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===u[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--c[t],++h[e]}(r)}return c}(i,i.length,t),o=0,a=n.length;o<a;++o)u[n[o].index]=r[o]}return u}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,d=e.length;s<d;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,d=16;s<=d;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,d=e.length;s<d;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,S=l,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,d=a.length;s<d;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var u,c=1,l=0,p=o.length,h=0;0<p;){for(p-=u=1024<p?1024:p;l+=c+=o[h++],--u;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call(e.exports);var at={Deflate:c(e.exports).Zlib.Deflate},st="base64url";function dt(e,t){t=t||st;e=rt("string"==typeof e?e:JSON.stringify(e)),e=new at.Deflate(e).compress();return t===st?u.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 ut={CRC32:c(t.exports).Zlib.CRC32},ct=function(e,n){var i;return 200<=(n=n||0)?e:_.isArray(e)?_.map(e,function(e){return ct(e,n+1)}):!_.isObject(e)||_.isDate(e)||_.isRegExp(e)||_.isElement(e)?_.isString(e)?_.escape(e):e:(i={},_.each(e,function(e,t){i[t]=ct(e,n+1)}),i)},lt=function(e){e=rt(e);return u.uint8ToBase64(e)},pt=function(e){if(void 0!==e)return e=rt(e=_.isString(e)?e:JSON.stringify(e)),ut.CRC32.calc(e,0,e.length)};function ht(e){return e[Math.floor(Math.random()*e.length)]}function ft(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=ht(i);return n}var gt=function(e,t,n){return!(!I(e)||!I(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function C(){return(new Date).getTime()}function mt(){return"undefined"!=typeof $A&&_.isFunction($A.get)&&_.isString($A.get("$Browser.formFactor"))}function vt(e,t=window){var[e,t,n=window]=[_,e,t],i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}i=window;var yt=_.isFunction(i.isFinite)?i.isFinite:i.Number&&_.isFunction(i.Number.isFinite)?i.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function bt(e){return"number"==typeof e&&yt(e)&&Math.floor(e)===e}function wt(e,t,n,i){(t=t||{}).maxRetries=bt(t.maxRetries)?t.maxRetries:10,t.delay=bt(t.delay)?t.delay:50,t.exponentialBackoff=t.exponentialBackoff||!1;var r=function(e){return e&&"[object Function]"==={}.toString.call(e)},o=r(n)?n:function(){},a=r(i)?i:function(){},n=e();n?o(n):0<t.maxRetries?Ut(function(){t.maxRetries=--t.maxRetries,t.delay=t.exponentialBackoff?2*t.delay:t.delay,wt(e,t,o,a)},t.delay):(a||function(){})()}var St=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function Et(e){return _.isObject(e)&&_.isFunction(e.then)}function It(e){return e&&e.hasOwnProperty("wrappedJSObject")?e.wrappedJSObject:e}var _t,Ct=_.isFunction(window.decodeURIComponent)?window.decodeURIComponent:_.identity,xt=_.isFunction(window.encodeURIComponent)?window.encodeURIComponent:_.identity;class Tt{constructor(){this.listeners={}}addEventListener(e,t){let n=this.listeners[e];n||(n=[],this.listeners[e]=n),_.findIndex(n,e=>t===e)<0&&n.push(t)}removeEventListener(e,t){var n,i=this.listeners[e];i&&0<=(n=_.findIndex(i,e=>t===e))&&(i.splice(n,1),i.length||delete this.listeners[e])}dispatchEvent(t){var e=this.listeners[t.type];e&&_.each(e,e=>{e(t)})}}class Rt{constructor(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}toString(){let e=this.message;return this.error&&e!==this.error.message&&(e=e+":"+this.error.message),this.attributes&&(e+=": "+_.map(this.attributes,(e,t)=>t+"="+e)),e}hashCode(){return this.toString()}}(n=_t=_t||{}).Debug="debug",n.Info="info",n.Warn="warn",n.Error="error",n.Critical="critical";class kt extends Tt{write(e,t,n){this.dispatchEvent(new Rt(t,e,n))}writeError(e,t,n){let i,r;_.isString(e)?(i=e,r={message:i}):(r=e,i=r.message),n&&n.error&&(r=n.error,delete n.error);e=new Rt(t,i,n);e.error=r,this.dispatchEvent(e)}debug(e,t){this.write(e,_t.Debug,t)}info(e,t){this.write(e,_t.Info,t)}warn(e,t){this.writeError(e,_t.Warn,t)}error(e,t){this.writeError(e,_t.Error,t)}critical(e,t){this.writeError(e,_t.Critical,t)}}const x=new kt;function At(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Ot=function(){var e=S.get("storage.allowKeys")||"*";return _.isArray(e)?_.indexBy(e):e};function Nt(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function Mt(n){_.forEach(_.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function Lt(e){var t=_.noop,t={getItem:()=>null,setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:Nt(n,n.getItem,null),setItem:Nt(n,n.setItem),removeItem:Nt(n,n.removeItem),clearPendo:_.partial(Mt,n)}:t}catch(i){return t}}var Pt=Lt(function(){return window.localStorage}),Dt=Lt(function(){return window.sessionStorage});function Ft(e){try{return JSON.parse(e)}catch(t){return null}}var Bt,Ht={},zt=!0,jt=function(){return S.get("localStorageOnly")},qt=function(){return!!S.get("disableCookies")};function Wt(e){zt=e}var Vt=function(e){return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(document.cookie))?Ct(e[2]):null},Jt=function(e,t,n,i){var r,o,a;!zt||S.get("preventCookieRefresh")&&Vt(e)===t||(a=Qt(n),r=new Date,o=(i="https:"===document.location.protocol||i)?"None":"Strict",r.setTime(r.getTime()+a),a=e+"="+xt(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+(i?";secure":"")+"; SameSite="+o,Bt&&(a+=";domain="+Bt),document.cookie=a)};function Kt(e){e+="=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT";Bt&&(e+=";domain="+Bt),document.cookie=e}var $t=function(e,t){return`_pendo_${e}.`+(t||E.apiKey)},Xt=function(e,t){return Vt($t(e,t))};const Yt=864e5,Zt=100*Yt,Qt=(e=Zt)=>{var t=S.get("maxCookieTTLDays"),t=t<Infinity?t*Yt:Infinity;return Math.min(e,t)};var en=function(e,t,n,i,r){n=n||Zt,Jt($t(e,r),t,n,i)};class tn{constructor(){this.keys={}}addLocal(e,t){this._add(e,"local",t)}addSession(e,t){this._add(e,"session",t)}hasLocal(e){return this._has(e,"local")}hasSession(e){return this._has(e,"session")}getKeyConfig(e,t,n){return I(n)?n:this.keys[e]?this.keys[e][t]:undefined}getKeySerializer(e){return this.keys[e]?this.keys[e].serializer:_.identity}getKeyDeserializer(e){return this.keys[e]?this.keys[e].deserializer:_.identity}_add(e,t,n={}){n=_.extend({type:t,duration:null,isPlain:!1,isSecure:!1,localStorageOnly:!1,cookieSuffix:undefined,serializer:_.identity,deserializer:_.identity},n),this.keys[e]||(this.keys[e]=n)}_has(e,t){return!!this.keys[e]&&this.keys[e].type===t}}var nn,rn,on,an,m,T=function(){const d=new tn;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=Ot())||n[t])return d[r](e)||x.warn(`storage key ${e} is not registered`),i.apply(this,arguments);x.debug(`writing storage key ${e} is not allowed`)}}function u(e){return e||jt()||!Bt}var c=_.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.getItem(n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}});function l(e){e.cache&&(e.cache={})}function p(e){if(null===e)return null;try{var t=JSON.parse(e);return null!==t&&"object"==typeof t&&"ttl"in t&&"value"in t?"number"==typeof t.ttl&&isFinite(t.ttl)&&0<t.ttl&&t.ttl<(new Date).getTime()?null:String(t.value||t):e}catch(n){return e}}function h(e,t){return null===t?e:(t=(new Date).getTime()+Qt(t),JSON.stringify({ttl:t,value:e}))}function f(e,t,n){t=d.getKeyConfig(e,"isPlain",t),n=d.getKeyConfig(e,"cookieSuffix",n);var i=d.getKeyConfig(e,"localStorageOnly"),t=t?e:$t(e,n);if(qt()&&delete Ht[t],u(i)){if(c("localStorage"))try{return void localStorage.removeItem(t)}catch(r){}}else try{return void Kt(t)}catch(r){}delete Ht[t]}const t=_.extend({},Dt),n=(t.setItem=e(t.setItem,"hasSession"),_.extend({},Pt));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){t=d.getKeyConfig(e,"isPlain",t),n=d.getKeyConfig(e,"cookieSuffix",n);var i=d.getKeyConfig(e,"localStorageOnly"),r=t?e:$t(e,n);let o;var a=d.getKeyDeserializer(e);if(qt())return a(p(Ht[r])||null);if(u(i)){if(c("localStorage"))try{return null===(o=p(localStorage.getItem(r)))&&f(e,t,n),a(o)}catch(s){l(c)}}else try{if(null!==(o=Vt(r)))return a(o)}catch(s){}return null===(o=p(Ht[r]||null))&&delete Ht[r],a(o)},write:e(function(e,t,n,i,r,o){n=d.getKeyConfig(e,"duration",n),i=d.getKeyConfig(e,"isPlain",i),r=d.getKeyConfig(e,"isSecure",r),o=d.getKeyConfig(e,"cookieSuffix",o);var a=d.getKeyConfig(e,"localStorageOnly"),e=(t=d.getKeySerializer(e)(t),i?e:$t(e,o));if(l(c),!qt())if(u(a)){if(c("localStorage"))try{return void localStorage.setItem(e,h(t,n))}catch(s){}}else try{return i||(n=n||Zt),void Jt(e,t,n,r)}catch(s){}Ht[e]=h(t,n)},"hasLocal"),clear:f,clearAll:function(){_.each(d.keys,(e,t)=>{"local"===e.type&&f(t)})},registry:d,getLocal:()=>n,getSession:()=>t}}(),sn=(window.Promise,e=function(){var t=Ut;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a},"function"==typeof(t=window.Promise)&&/native/.test(t)?t:e()),i=(rn=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},on=function(n,i){var r=nn.defer(),o=function(n,i){Ut(function(){var e;try{e=n(i)}catch(t){return void r.reject(t)}e===r.promise?r.reject(new TypeError("Cannot resolve promise with itself")):r.resolve(e)},1)};return{promise:r.promise,handle:function(e,t){e===an?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},an=1,(nn={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,_.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(an,e)},a=function(e){t(2,e)},s=function(e,t){e=on(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},d=function(e){var t=rn();try{e(t(u),t(a))}catch(n){t(a)(n)}},u=function(e){var t;try{t=function(e){var t=e&&e.then;if("object"==typeof e&&"function"==typeof t)return function(){return t.apply(e,arguments)}}(e)}catch(n){return void a(n)}t?d(t):o(e)},e=rn();return{resolve:e(u),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},nn);function dn(e){var n,i=m.defer(),r=_.isArray(e)?[]:{},o=_.size(e);return o?(n=!1,_.each(e,function(e,t){m.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):m.resolve(e)}!Ie()&&je.isMinimumIEVersion(11)?m={all:function(e){return _.isArray(e)?sn.all.apply(sn,arguments):dn(e)},reject:function(){return sn.reject.apply(sn,arguments)},resolve:function(){return sn.resolve.apply(sn,arguments)},defer:function(){var n={};return n.promise=new sn(function(e,t){n.resolve=e,n.reject=t}),n}}:((m=i).all=dn,m.reject=function(e){var t=m.defer();return t.reject(e),t.promise},m.resolve=function(e){var t=m.defer();return t.resolve(e),t.promise});const un=T.getSession(),cn="pendo_tabId",ln="pendo_parentTabId";pn=window,n=_.partial,hn=_.extend,fn=_.omit,gn={data:{},getItem(e){return gn.data[e]},setItem(e,t){gn.data[e]=t},removeItem(e){gn.data[e]=null,delete gn.data[e]}},mn=n(Sn,cn,En),vn=n(Sn,"pendo_frameId",gn);var pn,hn,fn,gn,mn,vn,yn={addTracerIds(e){return fn(hn(e,{parentTabId:bn(ln,En),tabId:mn(),frameId:vn()}),function(e){return e===undefined})},setParentTabId:function(e){wn(ln,e,En)},newTabId:function(){var e=ft(16);return wn(cn,e,En),e},getTabId:mn,getFrameId:vn,tabIdChanged:function(t){var e;if(je.addEventListener)return pn.addEventListener("storage",e=function(e){e.key===cn&&(gn.removeItem(cn),t())}),function(){pn.removeEventListener("storage",e)}}};function bn(e,t){return(_.isFunction(t)?t():t).getItem(e)}function wn(e,t,n){(_.isFunction(n)?n():n).setItem(e,t)}function Sn(e,t){var n=bn(e,t);return n||wn(e,n=ft(16),t),n}function En(){return n=gn,i=un,{getItem(e){var t=n.getItem(e);return t===undefined&&(t=i.getItem(e),n.setItem(e,t)),t},setItem(e,t){n.setItem(e,t),i.setItem(e,t)},removeItem(e){n.removeItem(e),i.removeItem(e)}};var n,i}function In(){var i=this._handlers={};return this.addEventListener=function(){this.on.apply(this,arguments)},this.removeEventListener=function(){this.off.apply(this,arguments)},this.on=function(e,t){var n;return(_.isString(e)||_.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),_.indexOf(n,t)<0)&&n.push(t),this},this.one=function(e,t){var n=this,i=function(){n.off(e,i),t.apply(this,arguments)};return this.on(e,i)},this.once=this.one,this.off=function(e,t){var n,e=i[e];return _.isFunction(t)?(n=_.indexOf(e,t),e&&0<=n&&e.splice(n,1)):e&&t===undefined&&(e.length=0),this},this.trigger=function(e){var t=i[e]?i[e].slice():[],n=_.toArray(arguments).slice(1);return _.map(t,function(e){return e.apply(E,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return _.map(e,function(e){if(!t.cancel)return e.apply(E,[t])})},this.triggerAsync=function(){var e=_.map(this.trigger.apply(this,arguments),function(e){return!1===e?m.reject():e});return m.all(e)},this}In.clear=function(t){t&&_.each(_.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};Fi={DEBUG:t="debug",FRAMES:e="frames",LIFECYCLE:i="lifecycle",RUNTIME:n="runtime"},_n=[new r("ready",[t,i]),new r("deliverablesLoaded",[t,i]),new r("guidesFailed",[t,i]),new r("guidesLoaded",[t,i]),new r("segmentFlagsUpdated",[t,i]),new r("segmentFlagsReady",[t,i]),new r("segmentFlagsError",[t,i]),new r("guideListChanged",[t,i]),new r("guidesReceived",[t,i]),new r("guideSeen",[t,i]),new r("guideNotSeen",[t,i]),new r("guideAdvanced",[t,i]),new r("guideDismissed",[t,i]),new r("guideSnoozed",[t,i]),new r("beforeGuideShow",[i]),new r("beforeMount",[n]),new r("beforeAdvance",[n]),new r("beforePrevious",[n]),new r("beforeSnooze",[n]),new r("beforeDismiss",[n]),new r("beforeUnmount",[n]),new r("unmounted",[n]),new r("beforeUpdate",[n]),new r("updated",[n]),new r("guideSnoozeCancelled",[t,i]),new r("guideTimeout",[t,i]),new r("guideLoopStopped",[t,i]),new r("guideUpdateComplete",[i]),new r("designerLaunched",[t,i]),new r("debuggerLaunched",[t,i]),new r("stepEligibility",[t]),new r("identify",[t,i]),new r("metadata",[t,i]),new r("appUnloaded",[t,i]),new r("appHidden",[t,i]),new r("startPreview",[t]),new r("resourceFetchFail",[t]),new r("contentVerificationFail",[t]),new r("contentValidationFail",[t]),new r("renderFail",[t]),new r("appUsage",[i]),new r("eventCaptured",[t]),new r("error",[t,i]),new r("onClickCaptured",[t]),new r("onEventCaptured",[t]),new r("urlChanged",[i]),new r("leaderChanged",[i,e]),new r("transmit:locked",[i]),new r("transmit:unlocked",[i]),new r("sessionChanged",[i]),new r("ptm:unpaused",[i]),new r("ptm:paused",[i]),new r("recording:unpaused",[i]),new r("recording:paused",[i]),new r("childFrameJoined",[e]),new r("tabIdChanged:self",[t,i])],Cn=In.call({}),xn={debug(){return yn.addTracerIds(Rn.apply(null,arguments))},lifecycle:Rn,runtime:Rn,frames:Rn},Tn=Cn.trigger,Cn.trigger=kn,_.each(_.values(Fi),function(e){Cn[e]={on:_.partial(Cn.on,e),one:_.partial(Cn.one,e),off:_.partial(Cn.off,e)}}),_.each(_n,function(e){e=e.name,Cn[e]={on:_.partial(Cn.on,e),one:_.partial(Cn.one,e),off:_.partial(Cn.off,e),trigger:_.partial(kn,e)}});var _n,Cn,xn,Tn,R=Cn;function r(e,t){this.name=e,this.groups=t||[]}function Rn(e,t){e={type:e,ts:C()};return I(t)&&_.isObject(t)&&(e.data=t),e}function kn(t){var e=_.findWhere(_n,{name:t}),n=_.toArray(arguments).slice(1),i={};return _.each(e.groups,function(e){i.cancel||(i=xn[e](t,n),Tn.apply(Cn,[e].concat(i)))}),i.cancel||(i=Rn(t,n),Tn.apply(Cn,[t].concat(i))),i}function An(e){var i=[],r=[],o={},a={},s={state:{},commit:function(t,n){var e=o[t];if(!e)throw new Error("mutation "+t+" not found");e(n),_.each(i,function(e){e({type:t,payload:n},s.state)})},dispatch:function(t,n){var e=a[t];if(e)return e=e(n),_.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:_.partial(t,i),subscribeAction:_.partial(t,r),registerModule:function h(n,e){_.isString(n)&&(n=[n]);var t=u(s.state,e,n);_.extend(s.getters,p(e,t,s,n));_.extend(o,c(e,t,n));_.extend(a,l(e,t,s,n));_.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return _.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):_.noop;var n,i}function d(e,t){return(e=t?e.concat([t]):e).join("/")}function u(e,t,n){var i=e;return _.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),_.extend(i,be(t.state||{}))}function c(e,n,i){var r={};return _.each(e.mutations,function(e,t){r[d(i,t)]=_.partial(e,n)}),r}function l(e,t,i,r){var n={},o={state:t,rootState:i.state,commit:function(e,t,n){n=n&&n.root?e:d(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:d(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=d(t);i&&(i+="/");return _.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return _.each(e.actions,function(e,t){n[d(r,t)]=_.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return _.each(e.getters,function(e,t){a[t]=o[d(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var k=An(),On=(k.subscribe(function(e,t){}),"_PENDO_T_"),Nn=11;const Mn="visitorId",Ln="oldVisitorId",Pn="accountId";var Dn=function(e=""){return e+ft(Nn)};var Fn=function(e){return I(e)&&""!==e&&e!==jn&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===ot.call(e).length)},Un=function(e){return!(!e||"number"==typeof e)&&e.substring(0,On.length)===On},Gn=function(){return!S.get("disablePersistence")},Bn=function(e){e=e||[Mn,Pn,Ln];const t=S.get("identityStorageSuffix")||E.apiKey;_.each(e,function(e){Kt($t(e,t)),T.clear(e,!1,t)})},Hn="VISITOR-UNIQUE-ID",zn=function(e){return Hn===e},jn="::",qn=function(e){return new RegExp(jn).test(e)};function Wn(e){return e.old_visitor_id!==e.visitor_id}var Vn,Jn=function(e,t){var n,i={old_visitor_id:v(),old_account_id:Yn()};Fn(e)?(Fn(n=e)?$n(""+n):x.info("Invalid visitor id "+n),n=t,_.isUndefined(n)?x.info("No account id provided"):Fn(n)?(E.accountId=""+n,Gn()&&Zn(Pn,E.accountId)):(delete E.accountId,delete(t=S.getLocalConfig()).account,S.setLocalConfig(t),k.commit("metadata/clearAccount"),Gn()&&T.clear(Pn),x.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=v({generate:!0}),i.account_id=Yn(),!Wn(t=i)&&t.old_account_id===t.account_id||(Wn(i)&&(n=i.old_visitor_id)&&(Vn=n,Zn(Ln,Vn)),R.identify.trigger(i))):x.info("Invalid visitor id "+e)};function Kn(){return Dn(On)}function $n(e){E.visitorId!==e&&(Gn()&&Zn(Mn,e),E.visitorId=e)}function v(e={}){var t=function(){if(Fn(E.visitorId))return E.visitorId;var e=S.get("forceAnonymous");if(Gn()){var t=Qn(Mn);if(Fn(t)&&(!e||Un(t)))return t}return undefined}();return $n(t=!t&&e.generate?Kn():t),t}function Xn(){return v()||Kn()}var Yn=function(){var e=S.get("forceAnonymous");return Fn(E.accountId)||!Gn()||e||(e=Qn(Pn),E.accountId=e),E.accountId};function Zn(e,t){var n=S.get("identityStorageLifetime")||Zt,i=S.get("identityStorageSuffix")||E.apiKey;T.write(e,t,n,!1,!0,i)}function Qn(e){var t=S.get("identityStorageSuffix"),n=t||E.apiKey,n=T.read(e,!1,n)||T.read(e,!1,E.apiKey);return t&&T.clear(e,!1,E.apiKey),n}function ei(){var e={old_visitor_id:v({generate:!1}),old_account_id:Yn(),wasCleared:!0};Bn(),delete E.visitorId,delete E.accountId,v({generate:!0}),_.extend(e,{visitor_id:v(),account_id:Yn()}),R.identify.trigger(e)}function ti(e){e=e.data[0];return _.get(e,"wasCleared")}n=function(n){return function ni(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 ni="function"==typeof(e=window.URL)&&/native/.test(e)?e:n(document);function ii(e){if((t=e)&&"function"==typeof t.composedPath)try{return e.composedPath()}catch(n){return e.path}var t;return null}function ri(e){return e.shadowRoot}function oi(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function ai(e,t){return oi(e,t)?e.host:e.parentNode}var si={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:ii,getShadowRoot:ri,isElementShadowRoot:oi,getParent:ai,isShadowSelector:di,wrapSizzle(i,u){i.intercept(function(a,t,n,i,r){var e,o;if(di(t))return _.isFunction(document.documentElement.attachShadow)?(o=a,e=(e=t).replace(si.PSEUDO_REGEX,si.PSEUDO_SAFE),e=_.map(o.tokenize(e),ui),_.reduce(e,function(e,t){return e.concat(s(t,n,i,r))},[])):a(t.replace(si.PSEUDO_REGEX,""),n,i,r);{const d=a(t,n,i,r);return 0<u.cache.size&&u.cache.forEach(e=>{n&&n!==document&&!function(e,t,n){let i=t;for(;i;){if(i===e)return 1;i=ai(i,n)}}(n,e)||d.push(...a(t,e,i,r))}),d}function s(e,t,n,i){var r,o;return di(e)?(o=s((r={baseCss:(o=(o=e).split(si.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(si.PSEUDO_ELEMENT)}).baseCss,t),_.reduce(o,function(e,t){return si.getShadowRoot(t)?e.concat(s(r.shadowCss,si.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!si.isElementShadowRoot(t)&&(di(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function di(e){return!!e&&-1<e.indexOf(si.PSEUDO_ELEMENT)}function ui(e){return _.reduce(e,function(e,t){return t.value===si.PSEUDO_SAFE?e+si.PSEUDO_ELEMENT:e+t.value},"")}var ci,h,w,li,pi,hi,fi,gi,mi,vi,yi,bi,A,wi,Si,Ei,Ii,_i,Ci,t={exports:{}},i=t,xi=window,O="sizzle"+ +new Date,Ti=xi.document,Ri=0,ki=0,Ai=hr(),Oi=hr(),Ni=hr(),Mi=hr(),Li=hr(),Pi=function(e,t){return e===t&&(yi=!0),0},Di={}.hasOwnProperty,Fi=[],Ui=Fi.pop,Gi=Fi.push,Bi=Fi.push,Hi=Fi.slice,zi=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},ji="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",e="(?:\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",n="\\["+a+"*("+e+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+e+"))|)"+a+"*\\]",qi=":("+e+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+n+")*)|.*)\\)|)",Wi=new RegExp(a+"+","g"),Vi=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),Ji=new RegExp("^"+a+"*,"+a+"*"),Ki=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),$i=new RegExp(a+"|>"),Xi=new RegExp(qi),Yi=new RegExp("^"+e+"$"),Zi={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+n),PSEUDO:new RegExp("^"+qi),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("^(?:"+ji+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},Qi=/HTML$/i,er=/^(?:input|select|textarea|button)$/i,tr=/^h\d$/i,nr=/^[^{]+\{\s*\[native \w/,ir=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rr=/[+~]/,or=new RegExp("\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\([^\\r\\n\\f])","g"),ar=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))},sr=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,dr=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ur=function(){bi()},cr=Ir(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Bi.apply(Fi=Hi.call(Ti.childNodes),Ti.childNodes),Fi[Ti.childNodes.length].nodeType}catch(_E){Bi={apply:Fi.length?function(e,t){Gi.apply(e,Hi.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function lr(e){return e[0].length?e.map(lr).join(","):Er(e)}function pr(e,t,n){var i=n[e+" "];i=i||lr(function o(e,t){return e[0].length?e.map(function(e){return o(e,t)}):e.filter(t)}(hi(e),function(e){return!("PSEUDO"===(e=e).type&&e.matches.length&&"contains"===e.matches[0].replace(Vi,"$1").toLowerCase())}));try{var r=[];return Bi.apply(r,t.querySelectorAll(i)),n(e,i),r}catch(_E){}}function N(e,t,n,i){var r,o,a,s,d,u,c=t&&t.ownerDocument,l=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==l&&9!==l&&11!==l)return n;if(!i&&(bi(t),t=t||A,Si)){if(11!==l&&(s=ir.exec(e)))if(r=s[1]){if(9===l){if(!(u=t.getElementById(r)))return n;if(u.id===r)return n.push(u),n}else if(c&&(u=c.getElementById(r))&&Ci(t,u)&&u.id===r)return n.push(u),n}else{if(s[2])return Bi.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&h.getElementsByClassName&&t.getElementsByClassName)return Bi.apply(n,t.getElementsByClassName(r)),n}if(h.qsa&&(!Mi[e+" "]||Li[e+" "])&&(!Ei||!Ei.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(u=e,c=t,1===l&&($i.test(e)||Ki.test(e))){for((c=rr.test(e)&&wr(t.parentNode)||t)===t&&h.scope||((a=t.getAttribute("id"))?a=a.replace(sr,dr):t.setAttribute("id",a=O)),o=(d=hi(e)).length;o--;)d[o]=(a?"#"+a:":scope")+" "+Er(d[o]);u=d.join(",")}try{return Bi.apply(n,c.querySelectorAll(u)),n}catch(p){Mi(e,!0)}finally{a===O&&t.removeAttribute("id")}!i&&Mi[e+" "]&&(i=pr(e,c,Li))}}return gi(e.replace(Vi,"$1"),t,n,i)}function hr(){var n=[];function i(e,t){return n.push(e+" ")>w.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function fr(e){return e[O]=!0,e}function gr(e){var t=A.createElement("fieldset");try{return!!e(t)}catch(_E){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function mr(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function vr(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 yr(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&&cr(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function br(a){return fr(function(o){return o=+o,fr(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 wr(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ci in h=N.support={},pi=N.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!Qi.test(t||e&&e.nodeName||"HTML")},bi=N.setDocument=function(e){var e=e?e.ownerDocument||e:Ti;return e!=A&&9===e.nodeType&&e.documentElement&&(wi=(A=e).documentElement,Si=!pi(A),Ti!=A&&(e=A.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",ur,!1):e.attachEvent&&e.attachEvent("onunload",ur)),h.scope=gr(function(e){return wi.appendChild(e).appendChild(A.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),h.attributes=gr(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=gr(function(e){return e.appendChild(A.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=!!A.getElementsByClassName,h.getById=gr(function(e){return wi.appendChild(e).id=O,!A.getElementsByName||!A.getElementsByName(O).length}),h.getById?(w.filter.ID=function(e){var t=e.replace(or,ar);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&Si)return(e=t.getElementById(e))?[e]:[]}):(w.filter.ID=function(e){var t=e.replace(or,ar);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&Si){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=h.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):h.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=h.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&Si?t.getElementsByClassName(e):h.qsa&&Si?t.querySelectorAll("."+e):void 0},Ii=[],Ei=[],(h.qsa=!!A.querySelectorAll)&&(gr(function(e){var t;wi.appendChild(e).innerHTML=$().createHTML("<a id='"+O+"'></a><select id='"+O+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&Ei.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||Ei.push("\\["+a+"*(?:value|"+ji+")"),e.querySelectorAll("[id~="+O+"-]").length||Ei.push("~="),(t=A.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||Ei.push("\\["+a+"*name"+a+"*="+a+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||Ei.push(":checked"),e.querySelectorAll("a#"+O+"+*").length||Ei.push(".#.+[+~]"),e.querySelectorAll("\\\f"),Ei.push("[\\r\\n\\f]")}),gr(function(e){e.innerHTML=$().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=A.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&Ei.push("name"+a+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&Ei.push(":enabled",":disabled"),wi.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&Ei.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),Ei.push(",.*:")})),(h.matchesSelector=nr.test(_i=wi.matches||wi.webkitMatchesSelector||wi.mozMatchesSelector||wi.oMatchesSelector||wi.msMatchesSelector))&&gr(function(e){h.disconnectedMatch=_i.call(e,"*"),_i.call(e,"[s!='']:x"),Ii.push("!=",qi)}),Ei=Ei.length&&new RegExp(Ei.join("|")),Ii=Ii.length&&new RegExp(Ii.join("|")),e=!!wi.compareDocumentPosition,Ci=e||wi.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},Pi=e?function(e,t){var n;return e===t?(yi=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===n?e==A||e.ownerDocument==Ti&&Ci(Ti,e)?-1:t==A||t.ownerDocument==Ti&&Ci(Ti,t)?1:vi?zi(vi,e)-zi(vi,t):0:4&n?-1:1)}:function(e,t){if(e===t)return yi=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==A?-1:t==A?1:r?-1:o?1:vi?zi(vi,e)-zi(vi,t):0;if(r===o)return vr(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?vr(a[i],s[i]):a[i]==Ti?-1:s[i]==Ti?1:0}),A},N.matches=function(e,t){return N(e,null,null,t)},N.matchesSelector=function(e,t){if(bi(e),h.matchesSelector&&Si&&!Mi[t+" "]&&(!Ii||!Ii.test(t))&&(!Ei||!Ei.test(t)))try{var n=_i.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(_E){Mi(t,!0)}return 0<N(t,A,null,[e]).length},N.contains=function(e,t){return(e.ownerDocument||e)!=A&&bi(e),Ci(e,t)},N.attr=function(e,t){(e.ownerDocument||e)!=A&&bi(e);var n=w.attrHandle[t.toLowerCase()],n=n&&Di.call(w.attrHandle,t.toLowerCase())?n(e,t,!Si):undefined;return n!==undefined?n:h.attributes||!Si?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},N.escape=function(e){return(e+"").replace(sr,dr)},N.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},N.uniqueSort=function(e){var t,n=[],i=0,r=0;if(yi=!h.detectDuplicates,vi=!h.sortStable&&e.slice(0),e.sort(Pi),yi){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return vi=null,e},li=N.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=li(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=li(t);return n},(w=N.selectors={cacheLength:50,createPseudo:fr,match:Zi,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(or,ar),e[3]=(e[3]||e[4]||e[5]||"").replace(or,ar),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||N.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&N.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Zi.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Xi.test(n)&&(t=(t=hi(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(or,ar).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Ai[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&Ai(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=N.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e.replace(Wi," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,e,t,g,m){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,d,u=v!=y?"nextSibling":"previousSibling",c=e.parentNode,l=b&&e.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(v){for(;u;){for(a=e;a=a[u];)if(b?a.nodeName.toLowerCase()===l:1===a.nodeType)return!1;d=u="only"===f&&!d&&"nextSibling"}return!0}if(d=[y?c.firstChild:c.lastChild],y&&p){for(h=(s=(i=(r=(o=(a=c)[O]||(a[O]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Ri&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[u]||(h=s=0,d.pop());)if(1===a.nodeType&&++h&&a===e){r[f]=[Ri,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[O]||(a[O]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Ri&&i[1]:h))for(;(a=++s&&a&&a[u]||(h=s=0,d.pop()))&&((b?a.nodeName.toLowerCase()!==l:1!==a.nodeType)||!++h||(p&&((r=(o=a[O]||(a[O]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[Ri,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=w.pseudos[e]||w.setFilters[e.toLowerCase()]||N.error("unsupported pseudo: "+e);return a[O]?a(o):1<a.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?fr(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=zi(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:fr(function(e){var i=[],r=[],s=fi(e.replace(Vi,"$1"));return s[O]?fr(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:fr(function(t){return function(e){return 0<N(t,e).length}}),contains:fr(function(t){return t=t.replace(or,ar),function(e){return-1<(e.textContent||li(e)).indexOf(t)}}),lang:fr(function(n){return Yi.test(n||"")||N.error("unsupported lang: "+n),n=n.replace(or,ar).toLowerCase(),function(e){var t;do{if(t=Si?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=xi.location&&xi.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===wi},focus:function(e){return e===A.activeElement&&(!A.hasFocus||A.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:yr(!1),disabled:yr(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return tr.test(e.nodeName)},input:function(e){return er.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:br(function(){return[0]}),last:br(function(e,t){return[t-1]}),eq:br(function(e,t,n){return[n<0?n+t:n]}),even:br(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:br(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:br(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:br(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[ci]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ci);for(ci in{submit:!0,reset:!0})w.pseudos[ci]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ci);function Sr(){}function Er(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function Ir(a,e,t){var s=e.dir,d=e.next,u=d||s,c=t&&"parentNode"===u,l=ki++;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=[Ri,l];if(n){for(;e=e[s];)if((1===e.nodeType||c)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||c)if(r=(r=e[O]||(e[O]={}))[e.uniqueID]||(r[e.uniqueID]={}),d&&d===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[u])&&i[0]===Ri&&i[1]===l)return o[2]=i[2];if((r[u]=o)[2]=a(e,t,n))return!0}return!1}}function _r(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 Cr(e,t,n,i,r){for(var o,a=[],s=0,d=e.length,u=null!=t;s<d;s++)!(o=e[s])||n&&!n(o,i,r)||(a.push(o),u&&t.push(s));return a}function xr(h,f,g,m,v,e){return m&&!m[O]&&(m=xr(m)),v&&!v[O]&&(v=xr(v,e)),fr(function(e,t,n,i){var r,o,a,s=[],d=[],u=t.length,c=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)N(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),l=!h||!e&&f?c:Cr(c,s,h,n,i),p=g?v||(e?h:u||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=Cr(p,d),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[d[o]]=!(l[d[o]]=a));if(e){if(v||h){if(v){for(r=[],o=p.length;o--;)(a=p[o])&&r.push(l[o]=a);v(null,p=[],r,i)}for(o=p.length;o--;)(a=p[o])&&-1<(r=v?zi(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=Cr(p===t?p.splice(u,p.length):p),v?v(null,t,p,i):Bi.apply(t,p)})}Sr.prototype=w.filters=w.pseudos,w.setFilters=new Sr,hi=N.tokenize=function(e,t){var n,i,r,o,a,s,d,u=Oi[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],d=w.preFilter;a;){for(o in n&&!(i=Ji.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Ki.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Vi," ")}),a=a.slice(n.length)),w.filter)w.filter.hasOwnProperty(o)&&(i=Zi[o].exec(a))&&(!d[o]||(i=d[o](i)))&&(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?N.error(e):Oi(e,s).slice(0)},fi=N.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=Ni[e+" "];if(!a){for(n=(t=t||hi(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=w.relative[e[0].type],a=o||w.relative[" "],s=o?1:0,d=Ir(function(e){return e===i},a,!0),u=Ir(function(e){return-1<zi(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==mi)||((i=t).nodeType?d:u)(e,t,n),i=null,e}];s<r;s++)if(t=w.relative[e[s].type])c=[Ir(_r(c),t)];else{if((t=w.filter[e[s].type].apply(null,e[s].matches))[O]){for(n=++s;n<r&&!w.relative[e[n].type];n++);return xr(1<s&&_r(c),1<s&&Er(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Vi,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&Er(e))}c.push(t)}return _r(c)}(t[n]))[O]?r:o).push(a);(a=Ni(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,d=0,u="0",c=e&&[],l=[],p=mi,h=e||b&&w.find.TAG("*",r),f=Ri+=null==p?1:Math.random()||.1,g=h.length;for(r&&(mi=t==A||t||r);u!==g&&null!=(o=h[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument==A||(bi(o),n=!Si);s=m[a++];)if(s(o,t||A,n)){i.push(o);break}r&&(Ri=f)}y&&((o=!s&&o)&&d--,e)&&c.push(o)}if(d+=u,y&&u!==d){for(a=0;s=v[a++];)s(c,l,t,n);if(e){if(0<d)for(;u--;)c[u]||l[u]||(l[u]=Ui.call(i));l=Cr(l)}Bi.apply(i,l),r&&!e&&0<l.length&&1<d+v.length&&N.uniqueSort(i)}return r&&(Ri=f,mi=p),c},y?fr(i):i))).selector=e}return a},gi=N.select=function(e,t,n,i){var r,o,a,s,d,u="function"==typeof e&&e,c=!i&&hi(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&Si&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(or,ar),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Zi.needsContext.test(e)?0:o.length;r--&&(a=o[r],!w.relative[s=a.type]);)if((d=w.find[s])&&(i=d(a.matches[0].replace(or,ar),rr.test(o[0].type)&&wr(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&Er(o))break;return Bi.apply(n,i),n}}return(u||fi(e,c))(i,t,!Si,n,!t||rr.test(e)&&wr(t.parentNode)||t),n},h.sortStable=O.split("").sort(Pi).join("")===O,h.detectDuplicates=!!yi,bi(),h.sortDetached=gr(function(e){return 1&e.compareDocumentPosition(A.createElement("fieldset"))}),gr(function(e){return e.innerHTML=$().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||mr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&gr(function(e){return e.innerHTML=$().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||mr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),gr(function(e){return null==e.getAttribute("disabled")})||mr(ji,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var Tr=xi.Sizzle;N.noConflict=function(){return xi.Sizzle===N&&(xi.Sizzle=Tr),N},i.exports?i.exports=N:xi.Sizzle=N;Rr=c(t.exports),(kr=_.extend(function(){return kr.Sizzle.apply(this,arguments)},Rr)).reset=function(){kr.Sizzle=Rr,kr.matchesSelector=Rr.matchesSelector,kr.matches=Rr.matches},kr.intercept=function(e,t="Sizzle"){kr[t]=_.wrap(kr[t],e)},kr.reset();var Rr,kr,Ar=kr;function M(e,t){var n,i=this;if(e&&e instanceof M)return e;if(!(i instanceof M))return new M(e,t);if(e)if(e.nodeType)n=[e];else if(r=/^<(\w+)\/?>$/.exec(e))n=[document.createElement(r[1])];else if(/^<[\w\W]+>$/.test(e)){var r=document.createElement("div");r.innerHTML=e,n=_.toArray(r.childNodes)}else if(_.isString(e)){t instanceof M&&(t=0<t.length?t[0]:null);try{n=Ar(e,t)}catch(o){n=[]}}else n=[e];else n=[];return _.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,"undefined"!=typeof Symbol&&Symbol.iterator&&(i[Symbol.iterator]=function*(){for(const e of n)yield e}),i}function Or(){this.ownerKey="_pendo_"+ft(8)}_.extend(Or.prototype,{cache(e){var t;return _.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set(e,t,n){e=this.cache(e);return e[t]=n,e},get(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!_.isEmpty(n)||(e[this.ownerKey]=undefined)}});var Nr=new Or,Mr=1;function Lr(e){return _.isNumber(e.eventPhase)&&e.eventPhase===Mr}function Pr(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?vt("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{Dr(e,t,n,i)}):_.noop}function Dr(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?vt("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var Fr=function(e){var t=si.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},Ur={add(t,e){var n=Nr.get(t),i=(n.handle||(n.handle=function(e){Ur.dispatch(t,e)}),e.id=_.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||Pr(t,e.type,n.handle,e.capture),i.push(e),()=>{M.event.remove(t,e.type,e.handler,e.capture)}},dispatch(r,o){var e,t,a;r&&(e=(Nr.get(r,"captureEvents")||{})[o.type]||[],t=(Nr.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=Nr.get(o)).ignore&&(a.handled=a.handled||{},_.each(t.slice(),function(e){var t=!!e.capture===Lr(o),n=(n=o,_.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(Fr(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!I(e.selector)||0<M(Fr(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){x.error(i)}}}))},remove(e,t,n,i){var r=Nr.get(e);if(r){if(_.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=_.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],Dr(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],Dr(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],Dr(e,t,r.handle));_.isEmpty(r.captureEvents)&&_.isEmpty(r.bubbleEvents)&&(Nr.remove(e,"captureEvents"),Nr.remove(e,"bubbleEvents"),Nr.remove(e,"handle"))}},trigger(e){var t=Nr.get(e);if(!t.pendoStopped)if(e.bubbles){var n=Fr(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=si.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),Lr(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)Ur.dispatch(o[i],e);(e=Ur.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(Ur.dispatch(n,e),(e=Ur.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)Ur.dispatch(o[i],e)}}else Ur.dispatch(Fr(e),e)},clone(e){var t=_.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",Nr.ownerKey]),e=si.getComposedPath(e);return e&&(t.composedPath=_.constant(e)),t},$:{on(e,n,i,r){return _.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){_.each(e,function(e){Ur.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},Gr=_.extend(Hr,{get:function(e,t){return Hr({method:"GET",url:e,headers:t})},post:zr,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",zr(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(_.isArray(t))i=t;else{if(!_.isObject(t))return e||"";i=_.keys(t)}var i=_.map(i,function(e){return _.isArray(t)?xt(e):xt(e)+"="+xt(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=_.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported(){return void 0!==Br()}});function Br(){return window.XMLHttpRequest||ActiveXObject}function Hr(e){var t=m.defer(),n=new(Br())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),_.each(e.headers,function(e,t){n.setRequestHeader(t.toLowerCase(),e)}),n.onreadystatechange=function(){var e;4===n.readyState&&(e=function(e){var t={status:e.status};try{t.data=JSON.parse(e.responseText)}catch(n){t.data=e.responseText}return t}(n),200<=n.status&&n.status<300?t.resolve(e):t.reject(e))},e.withCredentials&&(n.withCredentials=!0),e.data?n.send(e.data):n.send(),t.promise}function zr(e,t,n){return Hr({method:"POST",url:e,data:t,headers:n})}var jr,qr=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},Wr=function(){return S.get("annotateUrl")||Xr()||S.get("sanitizeUrl")||S.get(ro)||S.get("xhrWhitelist")},Vr=function(){return Xr()?{href:$r(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Jr=function(){return new ni(window.location.href)},Kr=function(){var e,t,n,i;return Wr()?(e=Jr(),Xr()&&(e.href=$r(e.href)),qr()?(t=L.electronResourcesPath(),n=L.electronUserDirectory(),i=L.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(L.electronUserHomeDirectory(),"").replace("file:///","")):ao(e.href)):k.getters["location/href"]()},$r=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Xr=function(){return!0===S.get("ignoreHashRouting")},Yr=500;function Zr(){return _.isUndefined(jr)&&function e(){io(),jr=Ut(e,Yr)}(),()=>{clearTimeout(jr),jr=undefined}}var Qr=function(e){var t;try{t=Kr()}catch(n){}return t},eo=[],to=!1,no=null;function io(){var t=Vr().href;no!=t&&(no=t,_.map(eo,function(e){e(t)}))}var ro="queryStringWhitelist";function oo(e){var t=S.get("sanitizeUrl");return _.isFunction(t)?t(e):e}function ao(e){e=e||Vr().href;var t=S.get("annotateUrl");if(t)if(_.isFunction(t))try{var n,i,r,o=t();return o&&(_.isObject(o)||_.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&_.isArray(n)||i&&(_.isArray(i)||_.isObject(i)))&&(n&&(e=uo(e,null,n,!0)),o=i||{}),Gr.urlFor(e,o,r)):e}catch(a){x.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else x.error("customer-provided `annotateUrl` must be of type: function");return e}function so(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function uo(e,t,n,i){e=e||Qr(),t=t||so(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=_.isArray(n)?lo(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var co,lo=function(e,t,n){return n&&_.contains(t,"*")?"":(e=po(e),e=n?_.omit(e,t):_.pick(e,t),ho(e))},po=function(e){e=e.split("&");return _.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&Ct(t[1])),e},{})},ho=function(e){return _.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},L={watch:function(e){const n=[];x.info("Initializing Pendo URL Watcher");var i,t=S.get("location.pushState")&&je.supportsHistoryApi();return to||(t&&(i=window.history,_.each(["pushState","replaceState"],function(e){var t=i[e];i[e]=_.wrap(i[e],function(e){var t=e.apply(i,_.toArray(arguments).slice(1));return Ut(io,0),t}),i[e]._pendoUnwrapped=t,n.push(()=>{i[e]=t})}),n.push(Pr(window,"popstate",io))),je.supportsHashChange()&&n.push(Pr(window,"hashchange",io)),!1!==t&&je.supportsHashChange()||n.push(Zr()),to=!0),eo.push(e),()=>{_.each(n,function(e){e()}),eo.length=0,to=!1}},get:Qr,externalizeURL:function(e,t,n){n=n||S.get(ro);return oo(uo(e,t,n=_.isFunction(n)?n():n,!1))},startPoller:Zr,getWindowLocation:Vr,clear:function(){eo=[]},isElectron:qr,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 fo(){var e=S.getLocalConfig("dataHost");return e||((e=S.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:$e)}function go(){co=fo()}function mo(){var e=S.get("assetHost");return e?-1===e.indexOf("://")?"https://"+e:e:vo()}function vo(){var e=S.get("contentHost")||Xe;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function yo(e){var t=mo(),n=0<=(n=t).indexOf("localhost")||0<=n.indexOf("local.pendo.io")?e.replace(".min.js",".js"):e;return t+"/"+(Ye?Ye+"/":"")+n}function bo(){var e=S.get("allowPartnerAnalyticsForwarding",!1)&&S.get("adoptAnalyticsForwarding",!1);return S.get("trainingPartner",!1)||e}function wo(e,t,n){return n?e.acc=lt(n):t&&"ACCOUNT-UNIQUE-ID"!==t&&(e.acc=lt(t)),e}var So=3,Eo=1,Io=9,_o=11,Co=4;function f(e){var t;if((t=e)&&t.nodeType===Eo)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function xo(e,t){var n;return!(!e||!_.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&_.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),_.any(n,function(e){return e&&"none"!==e}))}function To(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function Ro(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function ko(e){return _.isNumber(e)?e:0}function Ao(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!No(e)?null:e}function Oo(e){return xo(f(e),Fe)&&isNaN(Te)}function No(e){if(e)return(e=f(e))&&(_.contains(["relative","absolute","fixed"],e.position)||xo(e,Fe))}function Mo(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=No(t)?t:Ao(t,n),i=t?Lo(t):{top:0,left:0},e=Lo(e),r=function(e){if(e){var e=f(e),t=function(e){if(/^matrix\(/.test(e))return e.split(/\(|,|\)/).slice(1,-1).map(e=>parseFloat(e))}(e.transform);if(t&&/^0px\s+0px/.test(e.transformOrigin))return function([e,t,n,i,r,o]){var a=e*i-t*n;return 0!=a?[i/a,-t/a,-n/a,e/a,(n*o-i*r)/a,(t*r-e*o)/a]:null}(t)}}(t),r=(r&&(i=Do(r,i),e=Do(r,e)),{top:e.top-i.top,left:e.left-i.left,width:e.width,height:e.height});return t?(t!==n.document.scrollingElement&&(r.top+=ko(t.scrollTop),r.left+=ko(t.scrollLeft)),r.top-=ko(t.clientTop),r.left-=ko(t.clientLeft)):(r.top+=To(n),r.left+=Ro(n)),r.bottom=r.top+r.height,r.right=r.left+r.width,r}function Lo(e){var t;return e?e.getBoundingClientRect?{top:(t=e.getBoundingClientRect()).top,left:t.left,bottom:t.bottom,right:t.right,width:t.width||Math.abs(t.right-t.left),height:t.height||Math.abs(t.bottom-t.top)}:{top:0,left:0,width:e.offsetWidth,height:e.offsetHeight,right:e.offsetWidth,bottom:e.offsetHeight}:{width:0,height:0}}function Po([e,t,n,i,r,o],[a,s]){return[e*a+n*s+r,t*a+i*s+o]}function Do(e,t){var n=Po(e,[t.left,t.top]),e=Po(e,[t.right,t.bottom]),t={top:n[1],left:n[0],bottom:e[1],right:e[0]};return t.width=t.right-t.left,t.height=t.bottom-t.top,t}var Fo=void 0===(e=S.get("pendoCore"))||e,Uo=function(e,t,n){e=co+"/data/"+e+"/"+t,t=_.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function Go(){return _.compact([E.apiKey].concat(E.additionalApiKeys))}var Bo=function(e){e+="v"+Qe;e=Uo("log.gif",E.apiKey,{msg:e,version:Qe});return m.resolve(jo(e))["catch"](_.noop)};function Ho(e){try{var t=co+"/data/errorlog?apiKey="+E.apiKey,n={error:e,version:"v"+Qe,visitorId:v()},i=qo.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):Gr.postJSON(t,n);return i.then(function(){x.info("successfully wrote error")},function(e){x.info("error writing error:"+e)})}catch(r){return x.info("Failed to write error to server using POST endpoint: "+r),Bo("Failed to write error to server using POST endpoint: "+r)}}function zo(e){try{var t=Uo("metrics",E.apiKey,{v:Qe});x.debug(`Sending ${JSON.stringify(e)} to ${t} using `+(qo.supported()?"fetch":"xhr")),qo.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(e),headers:{"Content-Type":"application/json"}}):Gr.postJSON(t,e)}catch(n){x.critical("Failed to write metrics payload to server: "+n)}}function jo(e){var t,n;return $o()?(t=m.defer(),Pr(n=new Image,"load",t.resolve),Pr(n,"error",t.reject),n.src=e,t.promise):m.resolve()}function qo(e,t={}){t=_.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t)}function Wo(e,t){return navigator.sendBeacon(e,t)}qo.supported=function(){try{return _.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var Vo=!(Wo.supported=function(){return _.isFunction(navigator.sendBeacon)}),Jo=function(){var e=$o();return Vo=!0,e&&R["transmit:locked"].trigger(),"Pendo Web SDK locked. No more events will be written."},Ko=function(){var e=!$o();return Vo=!1,e&&R["transmit:unlocked"].trigger(),"Pendo Web SDK unlocked. Events will be written."},$o=function(){return!Vo&&Fo},Xo=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(ea(e))}catch(n){return!1}},Yo=function(e,t){try{var n;Xo(e,t)||(n=ot.call(ea(e))+" "+t,Qo(e,n))}catch(i){}},Zo=function(e,t){try{var n,i;Xo(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=ea(e).replace(n," "),Qo(e,i))}catch(r){}},Qo=function(e,t){_.isString(e.className)?e.className=t:e.setAttribute("class",t)},ea=function(e){try{var t=e["classList"];if(t&&0<t.length){for(var n=[],i=0;i<t.length;i++)n.push(t[i]);return n.join(" ")}var r=e.className;return(_.isString(r)||!I(r)?r:e.getAttribute("class"))||""}catch(o){return""}},ta=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},na={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},ia=function(e,t){t=function(e){if(_.isString(e)){var t=e.split(";");var n;var i;var r;var o;e={};for(r=0;r<t.length;r++){n=t[r];o=n.indexOf(":");i=n.substring(0,o);e[i]=n.substring(o+1)}}return e}(t);ra(e,t)},ra=function(a,e){_.each(e,function(e,t){if(""!==(t=ot.call(t))){var n=ta(t),i=(!_.isNumber(e)||isNaN(e)||na[n]?_.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=ot.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=ot.call(e)}catch(o){x.info("failed to set style: "+t+" with value "+e)}}})},oa=function(e=window){return qe()?{width:e.document.documentElement.offsetWidth||0,height:e.document.documentElement.offsetHeight||0}:{width:e.innerWidth||e.document.documentElement.clientWidth,height:e.innerHeight||e.document.documentElement.clientHeight}},aa=function(e){var t=oa(),n=To(),i=Ro();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function sa(t){return _.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function da(e,t=window){var n;return function(e){var t,n=e;for(;n;){if(!(t=f(n)))return;if("fixed"===t.position)return!isNaN(Te)||!ma(n);n=n.parentNode}return}(e)?((n=Lo(e)).fixed=!0,sa(n)):sa(Mo(e,la(t.document),t))}var ua=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},ca=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return x.info("error interrogating body elements: "+n),Bo("error picking best body:"+n),0}},la=function(e=document){try{var t=Array.prototype.slice.call(e.getElementsByTagName("body"));return t&&1<t.length?(t.sort(ca),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return Bo("Error getting body element: "+n),e.body}};function pa(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 ha(e,t=document){if(Ar.contains(t,e))return!0;for(;e&&e.parentNode||si.isElementShadowRoot(e);)e=si.getParent(e);return e===t}var fa=function(e){var t,n,i;if(null!=e)return t=(n=e.ownerDocument||document).defaultView||window,i=la(n),e===n||e===t?((n={left:t.pageXOffset||i.scrollLeft,top:t.pageYOffset||i.scrollTop,width:t.innerWidth,height:t.innerHeight}).right=n.left+n.width,n.bottom=n.top+n.height,n):((i=da(e,t)).right=i.left+i.width,i.bottom=i.top+i.height,i)},ga=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function ma(e){for(var t=e&&e.parentNode;t;){if(xo(f(t),Fe))return 1;t=t.parentNode}}var va=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(ha(e))for(i=e;i;)if(si.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=f(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=f(r))&&!_.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&ma(i))i=Ao(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function ya(e,t){e=f(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?ba.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?ba.BOTH:t.test(e.overflowY)?ba.Y:t.test(e.overflowX)?ba.X:t.test(e.overflow)?ba.BOTH:ba.NONE}var ba={X:"x",Y:"y",BOTH:"both",NONE:"none"};function wa(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&ha(e)}function Sa(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 Ea(e){if(e){if(_.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function Ia(e,t,n){const i=[];var r=Ea(document.documentElement);let o=Ea(va(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=Ea(va(o)),a++;return()=>{_.each(_.compact(i),function(e){e()}),i.length=0}}const _a=['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 Ca(e,t,n){var i=fa(t),t=ya(t,n);if(t!==ba.BOTH||ga(e,i)){if(t===ba.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===ba.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function xa(e){if(e){if(wa(e))return 1;var t=fa(e);if(0!==t.width&&0!==t.height){var n=f(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=f(i=i.parentNode)}return 1}}}}function Ta(e,t){if(!xa(e))return!1;if(!wa(e)){for(var n=fa(e),i=va(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!Ca(n,i,t))return!1;i=va(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=Ro(),e+=To()),o<=0||e<=0)return!1}}return!0}function Ra(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,d=fa(e),u=va(e,s);if(!xa(e))return!1;for(;u;){if(t=fa(u),(o=ya(u,a))!==ba.NONE&&(i=n=0,o!==ba.Y&&o!==ba.BOTH||(d.bottom>t.bottom&&(n+=d.bottom-t.bottom,d.top-=n,d.bottom-=n),d.top<t.top&&(n-=r=t.top-d.top,d.top+=r,d.bottom+=r)),o!==ba.X&&o!==ba.BOTH||(d.right>t.right&&(i+=d.right-t.right,d.left-=i,d.right-=i),d.left<t.left&&(i-=r=t.left-d.left,d.left+=r,d.right+=r))),!Ca(d,u,s))return!1;u=va(u,s)}return!0}function ka(e,t){var n,e=fa(e),i=fa(t),r=0,o=0,i=(e.bottom>i.bottom&&(r+=e.bottom-i.bottom,e.top-=r,e.bottom-=r),e.top<i.top&&(r-=n=i.top-e.top,e.top+=n,e.bottom+=n),e.right>i.right&&(o+=e.right-i.right,e.left-=o,e.right-=o),e.left<i.left&&(o-=n=i.left-e.left,e.left+=n,e.right+=n),_.isFunction(t.scrollBy)),e=i&&_e(t.scrollBy);i?e?t.scrollBy(o,r):t.scrollTo(t.scrollX+o,t.scrollY+r):(t.scrollTop+=r,t.scrollLeft+=o)}function Aa(e){for(var t=/(auto|scroll)/,n=la(),i=va(e,t);i&&i!==n;)ka(e,i),i=va(i,t)}n={$:{findOrCreate(e){return 0<this.length?this:M(e)},find(e){var t=M();return t.context=this.context,this.each(function(){M(e,this).each(function(){t[t.length++]=this})}),t},each(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text(e){var t="innerText"in document.body;return e===undefined?t?this.length?this[0].innerText:this:this.length?this[0].textContent:this:this.each(function(){ia(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Yo(t,e)})})},removeClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Zo(t,e)})})},hasClass(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){_.each(e,function(e){n=n&&Xo(t,e)})}),n)},toggleClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){(Xo(t,e)?Zo:Yo)(t,e)})})},css(e){return this.each(function(){ia(this,e)}),this},appendTo(e){return M(e).append(this),this},append(e){var t=this;return M(e).each(function(){t.length&&t[0].appendChild(this),ha(this)&&_.each(Ar("script",this),Sa)}),t},prependTo(e){return M(e).prepend(this),this},prepend(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],M(e).each(function(){n?M(this).insertBefore(n):M(this).appendTo(t)})),this},getParent(){var e=M(this)[0];if(e&&e.parentNode)return M(e.parentNode)},insertBefore(e){e=M(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),ha(this[0]))&&_.each(Ar("script",this[0]),Sa)},remove(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr(e,t){return _.isObject(e)?(this.each(function(){_.each(e,function(e,t){this.setAttribute(t,e)},this)}),this):t!==undefined?(this.each(function(){this.setAttribute(e,t)}),this):0<this.length?this[0].getAttribute(e):void 0},closest(e,t){for(var n=this[0];n&&!Ar.matchesSelector(n,e);)if((n=ai(n))===document||t&&Ar.matchesSelector(n,t))return M();return M(n)},eq(e){return M(this[e])},height(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus(){return this.each(function(){_.isFunction(this.focus)&&this.focus()})}}};class Oa{constructor(e=la(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},je.MutationObserver){const n=new(vt("MutationObserver"))((e,t)=>{this.signal()});n.observe(e,t),this._teardown=()=>n.disconnect}else{const i=setInterval(()=>{this.signal()},500);this._teardown=()=>{clearInterval(i)}}}signal(){_.each(this.listeners,e=>{e.get()})}addObservers(...e){this.listeners=[].concat(this.listeners,e)}teardown(){this._teardown()}}Fi=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var Na="function"==typeof(i=window.WeakRef)&&/native/.test(i)?i:Fi();function Ma(e,t){var n,i;return e.tagName&&_.contains(["textarea","input"],e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:Fa(n.substring(0,i))):La(e,t)}function La(e,t=128){var n,i="",r=e.nodeType;if(r===So||r===Co)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===Eo||r===Io||r===_o)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=La(e.childNodes[a],t-i.length))).length)return i+Fa(o.substring(0,t-i.length));i+=o}}return i}function Pa(e){return 55296<=e&&e<=56319}function Da(e){return 56320<=e&&e<=57343}function Fa(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(Pa(t)||Da(t)){if(1===e.length)return e.slice(0,-1);if(Pa(t))return e.slice(0,-1);if(Da(t))if(!Pa(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class Ua{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let t=this.elRef&&this.elRef.deref&&this.elRef.deref();var e=ha(t);if(!t||!e){if(t&&!e&&this.teardown(t),!(t=M(this.cssSelector)[0]))return undefined;_.each(this.events,e=>{t.addEventListener(e,e=>this.onEvent(e))}),this.elRef=new Na(t)}return t}getText(e=1024){return Ma(this.get(),e)}addEventListener(e,t){var n=this.get();this.events.indexOf(e)<0&&(this.events.push(e),n)&&n.addEventListener(e,e=>this.onEvent(e)),this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)}onEvent(t){var e=t.type;_.each(this.listeners[e],e=>e(t))}teardown(t=this.get()){t&&_.each(this.events,e=>t.removeEventListener(e,this.onEvent))}}function Ga(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===fo())return!0;if(t===mo())return!0;if(t===vo())return!0;var e=S.get("adoptHost");if(e&&t==="https://"+e)return!0;return!!re(t,S.get("allowedOriginServers",[]),S.get("allowedOriginServerHashes",[]))||_.any([/^https:\/\/(adopt\.)?((us1)\.)?(app|via|adopt|cdn|oem|novus-api|novus)(\.(au|eu|gov|hsbc|jpn))?\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)(pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-us1)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)(pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-us1)\.appspot\.com$/,/^https:\/\/(pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-us1)-static\.storage\.googleapis\.com$/,/^https:\/\/([a-zA-Z0-9-]+\.)*pendo-dev\.com$/,/^https:\/\/([a-zA-Z0-9-]+-dot-)?(pendo-apollo|pendo-armada|pendo-atlas|pendo-batman|pendo-calypso|pendo-dap|pendo-dev|pendo-dr-us-east1|pendo-eu-dev|pendo-freeze|pendo-helix|pendo-link|pendo-magic|pendo-mango|pendo-mcfly|pendo-ml|pendo-mobile-fbi|pendo-mobile-guides|pendo-mobile-hummus|pendo-mobile-plat|pendo-perfserf|pendo-voc|pendo-wildlings|pendo-ionchef|pendo-scrum-ops|pendo-security|pendo-test|pendo-uat|pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-us1)\.appspot\.com$/,/^https:\/\/(via|adopt|local)\.pendo\.(local|io):\d{4}$/,/^https:\/\/(pendo-apollo|pendo-armada|pendo-atlas|pendo-batman|pendo-calypso|pendo-dap|pendo-dev|pendo-dr-us-east1|pendo-eu-dev|pendo-freeze|pendo-helix|pendo-link|pendo-magic|pendo-mango|pendo-mcfly|pendo-ml|pendo-mobile-fbi|pendo-mobile-guides|pendo-mobile-hummus|pendo-mobile-plat|pendo-perfserf|pendo-voc|pendo-wildlings|pendo-ionchef|pendo-scrum-ops|pendo-security|pendo-test|pendo-uat)-static\.storage\.googleapis\.com$/],function(e){return e.test(t)})}function Ba(e){if(_.isString(e)){try{var t=new ni(e);const o=_.last(t.pathname.split("/")),a=o.split(".");var n,i={filename:_.first(a),extension:a.slice(1).join("."),query:{}};return t.search.length&&(i.query=po(t.search.substring(1))),t.hash.length&&0<=(r=t.hash.indexOf("?"))&&(n=t.hash.substring(r+1),i.fragmentQuery=po(n)),i}catch(s){}var r=so(e).substring(1),t=r&&r.length?po(r):{},o=_.last(_.first(e.split(/[?#]/)).split("/")),a=o.split(".");return{filename:_.first(a),extension:a.slice(1).join("."),query:t}}}function Ha(e,t){var n;S.get("guideValidation")&&je.sri&&(n=Ba(t),t=_.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],_.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}_.extend(M,{data:Nr,event:Ur,removeNode:ua,getClass:ea,hasClass:Xo,addClass:function(e,t){var n;"string"==typeof e?(n=M(e),_.map(n,function(e){Yo(e,t)})):Yo(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=M(e),_.map(n,function(e){Zo(e,t)})):Zo(e,t)},getBody:la,getComputedStyle:f,getClientRect:fa,intersectRect:ga,getScrollParent:va,isElementVisible:Ta,Observer:Oa,Element:Ua,scrollIntoView:Aa,getRootNode:Ea}),_.extend(M.prototype,Ur.$,n.$);var za,ja=function(e){var t=!((t=S.get("allowedOriginServers",[]))&&0<t.length||(t=S.get("allowedOriginServerHashes",[]))&&0<t.length),n=bo();return!(!t&&!n)||Ga(e)},qa=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(_.isString(e)&&(e={url:e}),!ja((c=e.url,new ni(c,window.location.href).origin)))throw new Error;e.type=e.type||/\.css/.test(e.url)?r:o;var a=null,s=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0],d=S.get("guideContentLoader");if(e.type===r){var u=document.createElement("link");u.type=r,u.rel="stylesheet",u.href=e.url,Ha(u,e.url),a=u}else{if(mt())return(i=document.createElement("script")).addEventListener("load",function(){t(),ua(i)}),i.type=o,i.src=$(E).createScriptURL(e.url),Ha(i,e.url),document.body.appendChild(i),i;if(_.isFunction(d))return d(e),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=$(E).createScriptURL(e.url),Ha(i,e.url),a=i,t=_.wrap(t,function(e,t){if(M.removeNode(i),t)return n&&e(t),{};e.apply(this,_.toArray(arguments).slice(1))})}return s.appendChild(a),Wa(a,e.url,t),a}catch(l){return{}}var c},Wa=function(e,t,n){var i=!1;I(n)&&(e.onload=function(){!0!==i&&(i=!0,n(null,t))},e.onerror=function(){!0!==i&&(i=!0,n(new Error("Failed to load script"),t))},e.onreadystatechange=function(){i||e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(i=!0,n(null,t))},"link"===e.tagName.toLowerCase())&&(Ut(function(){var e;i||((e=new Image).onload=e.onerror=function(){!0!==i&&(i=!0,n(null,t))},e.src=t)},500),Ut(function(){i||x.critical("Failed to load "+t+" within 10 seconds")},1e4))},Va=function(e){var t=JSON.parse(e.data),n=e.origin;x.debug(E.app_name+": Message: "+JSON.stringify(t)+" from "+n),ss(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},Ja=function(e){$a(Qa)(Ka(e))},Ka=function(e){if(e.data)try{var t="string"==typeof e.data?JSON.parse(e.data):e.data,n=e.origin,i=e.source;if(!t.action&&!t.mutation&&(t.type&&"string"==typeof t.type))return{data:t,origin:n,source:i}}catch(r){}};function $a(t){return function(e){if(e&&Ga(e.origin))return t.apply(this,arguments)}}var Xa={disconnect(e){},module:function(e){as(e.moduleURL)},debug:function(e){cs(Va)}},Ya=function(e,t){Xa[e]=t},Za=function(e){delete Xa[e]},Qa=function(e){var t;e&&(t=e.data)&&I(Xa[t.type])&&Xa[t.type](t,e)},es={},ts=function(e){if(es[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},ns=function(e){return I(es[e])},is=function(e){if(es)for(var t in es)if(0<=t.indexOf(e))return t;return null},rs=[],os=function(){var e;rs.length<1||(e=rs.shift(),ns(e))||qa(e,function(){ts(e),os()})};var as=function(e){!function(e){var t={"/js/lib/ckeditor/ckeditor.js":1};_.each(["depres.js","tether.js","sortable.js","selection.js","selection.css","html2canvas.js","ckeditor/ckeditor.js"],function(e){t["/modules/pendo.designer/plugins/"+e]=1,t["/engage-app-ui/assets/classic-designer/plugins/"+e]=1});try{var n=new ni(e);return Ga(n.origin)&&t[n.pathname]}catch(i){x.debug("Invalid module URL: "+e)}}(e)||(rs.push(e),1<rs.length)||os()},ss=function(e,t,n){var i,r=_.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=za||us(),n="*"),t.guid=r,e&&_.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";x.info("Failed to postMessage: "+t)}return r},ds=function(){return window!=window.top},us=function(){return new RegExp("^"+At(co).replace(/^https?:/,"https?:")).test(location.href)?window.parent:window.top},cs=function(e){var t;return I(window.addEventListener)&&_.isFunction(window.addEventListener)&&(t=$a(e),window.addEventListener("message",t,!1)),function(){I(window.removeEventListener)&&_.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},ls=_.memoize(function(){return S.get("restrictP1Access")}),ps=[],hs=[],fs=[],gs=12e4,ms=16,vs=1900,ys=65536,bs=function(e){return!(!e||""===e)},ws=function(){return L.get()},Ss={flush:_.noop,flushBy:_.noop,flushEvents:Cs,flushTrackEvents:Cs,flushAgenticEvents:Cs,flushSilos:Cs,flushTrackEventSilos:Cs,flushAgenticEventSilos:Cs,flushBeacons:Cs,flushNow:Cs,flushLater:xs,flushEvery:Ts,flushStop:Rs,beacons:[],silos:[],trackEventSilos:[],agenticEventSilos:[],lock:Jo,unlock:function(){if(!$o())return ks(),Ko()}},Es=[];function Is(e){Es.push(e)}function _s(e){e=Es.indexOf(e);0<=e&&Es.splice(e,1)}function Cs(t){try{_.each(Es,function(e){e.flush&&e.flush(t)})}catch(e){x.critical("unhandled error while flushing event cache",{error:e})}}function xs(e){return t=Cs,n=e,n=parseInt(n,10)||0,t[n]||(i=Ut(function(){t(),t[n]()},n),t[n]=function(){window.clearTimeout(i),delete t[n]});var t,n,i}function Ts(e){var t;if(e=parseInt(e,10)||0,_.isObject(Ts.intervals)||(Ts.intervals={}),!Ts.intervals[e])return t=window.setInterval(Cs,e),Ts.intervals[e]=function(){clearInterval(t),delete Ts.intervals[e]}}function Rs(){var e=_.values(Ts.intervals).concat([Cs]);_.map(e,function(e){_.isFunction(e)&&e()})}function ks(){_.each(Es,function(e){e.clear&&e.clear()}),Rs()}function As(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 Os(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(x.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(x.debug(t+"The signingKeyName is supplied but missing jwt."),!1):(e=e.jwt,!(!_.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(x.debug(t+"The jwt is invalid."),!1)):(x.debug(t+"Missing jwt and signingKeyName."),!1)}Ns=null;var Ns,Ms={set:function(e){Ns=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==Ns?Ns:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!S.get("enableSignedMetadata")&&(n=Os(e,t),S.get("requireSignedMetadata")&&!n?(x.debug("Pendo will not "+t+"."),!1):n?As(e.jwt):void x.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class Ls{constructor(e){this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.firstFailureTime=null,this.sendFn=e}isEmpty(){return this.queue.length<=0}stop(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.firstFailureTime=null,this.stopped=!0,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),null==this.firstFailureTime&&(this.firstFailureTime=(new Date).getTime()),t}pass(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e),this.failures["delete"](e),this.firstFailureTime=null;e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()}fail(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e);e=this.incrementFailure(e);!this.stopped&&t&&(72e5<=(t=(new Date).getTime())-(this.firstFailureTime||t)?(this.onTimeout&&this.onTimeout(),this.firstFailureTime=null,this.retryLater(36e5)):this.retryLater(Math.min(1e3*Math.pow(2,e-1),3e5)))}retryNow(){clearTimeout(this.timer),delete this.timer,this.next()}retryLater(e){this.timer=Ut(()=>{this.retryNow()},e)}failed(){return 0<this.failures.get(this.queue[0])&&null!=this.timer}send(e,t,n){return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(()=>this.pass(e,n),()=>this.fail(e,n))}drain(e,t=!0){if(this.queue.push(...e),this.failed()&&!this.allowDrainWhileFailed)return sn.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 sn.all(n)}}const Ps="unsentEvents",Ds=6048e5;function Fs(e){var n,t,i=Xt(Ps);if(i){try{n=e,t=JSON.parse(i),_.each(t,(e,t)=>{n[t]=(n[t]||[]).concat(e)})}catch(r){}Kt($t(Ps))}}class Us{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(Ps,{localStorageOnly:!0,duration:Ds});try{this.events=JSON.parse(e.read(Ps)||"{}")}catch(t){this.events={}}Fs(this.events),e.clear(Ps)}write(e){0<_.size(this.events)?e.write(Ps,JSON.stringify(this.events),Ds):e.clear(Ps)}}var Gs=new Us;const Bs=e=>_.reduce(e,(e,t)=>e+_.get(t,"detail.increment",1),0),Hs="pendo-guide-loop-timeout",zs={ptm:"pendo-ptm-gif-failure",guide:"pendo-guide-gif-failure",poll:"pendo-poll-gif-failure",agentic:"pendo-agentic-gif-failure"},js={name:"pendo-guide-loop",debuggingOnly:!0},qs={name:"pendo-event-captured",debuggingOnly:!0},Ws="pendo-initialize",Vs="pendo-teardown",Js={};Js[Hs]={name:Hs,type:"counter",instrument:Bs},_.each(zs,e=>{Js[e]={name:e,type:"counter",instrument:Bs}}),Js[js.name]=js,Js[qs.name]=qs,Js[Ws]={name:Ws},Js[Vs]={name:Vs};var Ks="debug-enabled";function $s(){try{var e=T.read(Ks)||JSON.parse(Vt(Ks));return"boolean"==typeof e?{enabled:e}:e||{}}catch(t){return{}}}function Xs(e=!0){let t;return t=k&&k.getters&&k.getters["debugger/debuggingEnabled"]?k.getters["debugger/debuggingEnabled"]():!0===$s().enabled,e?t:t?"Yes":"No"}class Ys{constructor(){this._isPerformanceApiAvailable=this._checkPerformanceApi(),this._sending=!1,this._measuringPerformance=!1,this._debugging=!1,this._setDebuggingBound=_.bind(this._setDebugging,this),this.marks=new Set,this.measures=new Set}initialize(){if(!S.get("performanceMetricsEnabled"))return _.noop;this._measuringPerformance=!0,this._markPerformance(Ws),this._setDebugging(),R.debuggerLaunched.on(this._setDebuggingBound);var e=100*Math.random()<S.get("performanceMetricsSampleRate");return this._setSending(e),this.interval=setInterval(()=>{this.send()},6e5),()=>{this.teardown()}}teardown(){this._markPerformance(Vs),this.send(),this._measuringPerformance=!1,this._setDebugging(),R.debuggerLaunched.off(this._setDebuggingBound),this._clearMarksAndMeasures(),clearInterval(this.interval)}startTimer({name:e,debuggingOnly:t},n=null){t&&!this._debugging||this._markPerformance(e+"-start",{detail:n})}stopTimer({name:e,debuggingOnly:t},n=null){t&&!this._debugging||(this._markPerformance(e+"-stop",{detail:n}),this._measurePerformance(e,{detail:n}))}count(e,t=1){this._markPerformance(e,{detail:1<t?{type:"counter",increment:t}:null})}send(){var e=_.reduce(Js,(e,t)=>{var{name:t,type:n,instrument:i}=t;return i&&0<(i=i(performance.getEntriesByName(t)))&&e.push({name:t,type:n,value:i,timestamp:Date.now()}),e},[]);this._clearMarksAndMeasures(),_.size(e)&&this._sending&&zo(e)}_checkPerformanceApi(){return Ce("performance.mark")&&Ce("performance.measure")&&Ce("performance.getEntries")&&Ce("performance.getEntriesByName")&&Ce("performance.clearMarks")&&Ce("performance.clearMeasures")}_shouldMeasurePerformance(){return this._isPerformanceApiAvailable&&this._measuringPerformance}_setDebugging(){this._debugging=Xs()}_setSending(e){this._sending=e}_markPerformance(e,t){this._shouldMeasurePerformance()&&(performance.mark(e,t),this.marks.add(e))}_measurePerformance(e,t){var n,i;this._shouldMeasurePerformance()&&(n=e+"-start",i=e+"-stop",performance.getEntriesByName(n).length)&&performance.getEntriesByName(i).length&&(performance.measure(e,n,i,t),this.measures.add(e))}_clearMarksAndMeasures(){this.marks.forEach(e=>{performance.clearMarks(e)}),this.marks.clear(),this.measures.forEach(e=>{performance.clearMeasures(e)}),this.measures.clear()}}const Zs=new Ys;var Qs="_PENDO_UNNAMED_";function ed(e,t,n,i,r,o){var a,s;a=S.get("dropAnonymous"),s=Un(v()),!Fo||a&&s||(a=t,s=n,t=i,n=r,s={type:r=e,browser_time:C(),visitor_id:v({generate:!0}),account_id:Yn(),url:L.externalizeURL(s),props:a||{},eventProperties:n},s=yn.addTracerIds(s),"track"===r&&(s.track_event_name=t||Qs),a=s,R.eventCaptured.trigger(a,o).cancel)||bs(a.url)&&("track"===e?fd:"agentic"===i?gd:hd).push(a)}function td(){var r=_.toArray(arguments);return function(e,t){var n=r.concat([t]);!function i(t,e){t<n.length&&n[t](e,function(e){i(t+1,e)})}(0,e)}}let nd=0;function id(e,t){e.sequence=nd++,t(e)}function rd(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 od(e,t){return bo()?ad("account_id")(e,t):t(e)}function ad(s){return function(e,t){if(!e.length)return t(e);for(var n=_.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==_.get(e[r],s)){i=!1;break}if(i)return t(e);var o=e.slice(0,r),a=e.slice(r);t(o),t(a)}}function sd(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function dd(e,t,n){t=n[t-1]||_.last(n);return Math.ceil(e/t)}function ud(e,t){for(var n,i=0,r=(_.isFunction(t.overhead)?t.overhead:_.constant(0))(),o=0;o<e.length;++o){if(dd(n=sd(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(dd(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(dd(i+(n=sd(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function cd(){var e=Ms.get();return _.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var ld,pd,hd,fd,gd,md;function vd(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=E.squeezeAndCompress(e.slice()),e.JZB.length<=ys)||1===e.length?t(e):(n=e.length/2,vd(e.slice(0,n),t),void vd(e.slice(n),t))}function yd(e,t){$o()&&t(e)}function bd(e,t){!_.isNumber(e.browser_time)||isNaN(e.browser_time)?x.critical(new Error("Event missing browser_time")):t(e)}function wd(e,t){R.eventCaptured.trigger(e).cancel||t(e)}function Sd(){return function(e,t){1===e.length&&e.JZB.length>ys?(x.debug("Couldn't write event"),Bo("Single item is: "+e.JZB.length+". Dropping."),Ho(e.JZB)):t(e)}}function Ed(e,t){return Uo(t.beacon+".gif",e,_.extend({v:Qe,ct:C(),jzb:t.JZB},t.params,t.auth))}function Id(e,t){return Uo(t.beacon+".gif",e,_.extend({v:Qe,ct:C(),s:t.JZB.length},t.params))}function _d(i){return function(e,t){e.params=_.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length,e.ts=e[0].browser_time||C();var n=Ms.get();_.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function Cd(e,t){var n,i;bo()&&(i=_.first(e),n=_.get(i,"account_id"),i=_.get(i,"oem_account_id"),wo(e.params||(e.params={}),n,i)),t(e)}function xd(e,t){var n=_.first(e),n=_.get(n,"props.source");n&&(e.params=_.extend({},e.params,{source:n})),t(e)}function Td(e){return JSON.stringify(_.extend({events:e.JZB},e.auth))}function Rd(e){return e.status<200||300<=e.status?m.reject(new Error(`received status code ${e.status}: `+e.statusText)):m.resolve()}function kd(e,t){return qo(Ed(e,t)).then(Rd)}function Ad(e,t){return fetch(Id(e,t),{method:"POST",keepalive:!0,body:Td(t),headers:{"Content-Type":"application/json"}}).then(Rd)}function Od(e,t){var n=Td(t);return Wo(Id(e,t),n)?m.resolve():m.reject()}function Nd(n){return function(e,t){return t.JZB?t.eventLength<=vs&&!S.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&qo.supported()?kd(e,t):t.auth?Gr({method:"GET",url:Ed(e,t)}):jo(Ed(e,t)):n.allowPost&&t.eventLength<=ys?qo.supported()?Ad(e,t):Wo.supported()?Od(e,t):Gr({method:"POST",url:Id(e,e=t),data:Td(e),headers:{"Content-Type":"application/json"}}):m.resolve():m.resolve()}}function Md(n){return function(e,t){if(t.JZB){if(t.eventLength<=vs&&!S.get("sendEventsWithPostOnly",!1)){if(!t.auth&&qo.supported())return kd(e,t);if(je.msie<=11)return Gr({method:"GET",url:Ed(e,t),sync:!0})}if(t.eventLength<=ys&&n.allowPost){if(qo.supported())return Ad(e,t);if(Wo.supported())return Od(e,t);if(je.msie<=11)return Gr({method:"POST",url:Id(e,e=t),data:Td(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return m.resolve()}}function Ld(e,t){e.length=0;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);t(i)}function Pd(e){return td(yd,od,vd,(t=e.shorten,t=_.defaults(t||{},{fields:[],siloMaxLength:ys}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],x.debug("Max length exceeded for an event"),_.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(x.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),vd,Sd(),_d(e),Cd,xd,Ld);var t}class Dd{constructor(e){this.queues=e}isEmpty(){return _.all(this.queues,e=>e.isEmpty())}stop(){_.each(this.queues,e=>e.stop())}push(){const t=_.toArray(arguments);_.each(this.queues,e=>e.push.apply(e,t))}drain(){const t=_.toArray(arguments);return m.all(_.map(this.queues,e=>e.drain.apply(e,t)))}}function Fd(a,s,d){s=s||Nd(a),d=d||Md(a);e=a;var e=_.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=_.map(e,(i,r)=>{const o=new Ls(function(e,t,n){return C()-e.ts>Ds?m.resolve():(n&&(e.params=_.extend({},e.params,{rt:n})),a.localStorageUnload&&t?(0===r&&Gs.push(a.beacon,e),m.resolve()):t&&o.failed()?m.reject():(t?d:s)(i,e))});return o.onTimeout=function(){Zs.count(zs[a.beacon])},o.allowDrainWhileFailed=!0,o.retryPending=!0,o}),e=new Dd(e);return Gs.send(a.beacon,e),e}function Ud(e,t){var n=S.get("analytics.excludeEvents");0<=_.indexOf(n,e.type)||t(e)}class Gd{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=Fd(e)}pause(e=1e4){var t=_.uniqueId();const n=this["locks"];n[t]=1;var i=()=>{n[t]&&(R.trigger("ptm:unpaused"),clearTimeout(r),delete n[t],this.flush())},r=Ut(i,e);return R.trigger("ptm:paused"),i}push(e){this.packageSilos(e,e=>{this.silos.push(e)})}clear(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()}flush({unload:e=!1,hidden:t=!1}={}){var{cache:n,silos:i}=this;if((0!==n.length||0!==i.length||!this.sendQueue.isEmpty())&&_.isEmpty(this.locks)){i.push(n.slice()),n.length=0;n=i.slice();i.length=0;const r=[];_.each(n,function(e){this.processSilos(e,function(e){r.push(e)})},this),e||t?this.sendQueue.drain(r,e):this.sendQueue.push(...r)}}}function Bd(e){var i,r,t=Pd(e),n=td(bd,(r=e.beacon,function(e,t){var n=S.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),Ud,id,rd(e.cache),(i={overhead:cd,lower:S.get("sendEventsWithPostOnly")?ys:vs,upper:ys,compressionRatio:[2.5,3.75,5]},function(e,t){for(var n=ud(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=ud(e,i)}));return new Gd(_.extend({processSilos:t,packageSilos:n},e))}var Hd=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||x.critical(e)}}},zd=Hd(function(e){var t,n,i;if((e=e||L.get())&&e!==zd.lastUrl)return zd.lastUrl=e,t=-1,ls()||ds()&&(i=us(),ss(i,{type:"load",url:location.toString()},"*")),x.debug("sending load event for url "+e),t={load_time:t="undefined"!=typeof performance&&_.isFunction(performance.getEntriesByType)&&!_.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},ds()&&(t.is_frame=!0),"*"!==(n=Ot())&&(t.allowed_storage_keys=_.keys(n)),ed("load",t,e),xs(),R.urlChanged.trigger(),!0});function jd(){return E.normalizedUrl||function(e){try{var t=new ni(e),n=_.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return x.error("Invalid URL provided to normalize"),e}}(L.externalizeURL())}function qd(t,e,n={}){if(!I(t))return!0;var i=e||jd(),{logger:r,context:o,id:a}=n;if(Array.isArray(t)){if(0===t.length)return!0;for(let e=0;e<t.length;e++){var s=t[e];if(I(s))try{if(new RegExp(s).test(i))return!0}catch(d){r&&o&&a&&r.error(`Invalid page rule regex for ${o} (rule ${e}):`,a,d)}}}else if("string"==typeof t)try{return new RegExp(t).test(i)}catch(d){r&&o&&a&&r.error(`Invalid page rule regex for ${o}:`,a,d)}return!1}function Wd(e,t){return qd(e,t,{logger:x,context:"guide",id:"unknown"})}zd.reset=function(){zd.lastUrl=null};var Vd=[],Jd=[],Kd={};const $d={ALL:"*",DEFAULT:"default"};function g(e){e=function(e={}){let t=e.channel;return e.hasOwnProperty("channel")?null==t&&(t=$d.DEFAULT):t=$d.ALL,t===$d.ALL?()=>!0:t===$d.DEFAULT?e=>null==e.channel:e=>e.channel==t}(e);return _.filter(Vd,e)}function Xd(e){return Yd(g(e))}function Yd(e){return _.filter(e,function(e){return!e.isFrameProxy})}function Zd(e){_.isArray(e)?(Vd=e,R.guideListChanged.trigger({guideIds:_.pluck(e,"id")})):x.info("bad guide array input to `setActiveGuides`")}function Qd(e={}){return _.any(g(e),function(e){return e.isShown()})}var eu=function(){let n=[];return{addGuide:e=>{var t;_.isEmpty(e)||(n=n.concat(e),_.each(n,e=>e.hide&&e.hide()),e=g(),(t=_.difference(e,n)).length<e.length&&(Zd(t),k.dispatch("frames/changeGuideList",t)))}}}();function tu(t,n){return _.find(g(),function(e){return _.get(e,t)===n})||null}function y(e){return tu("id",e)}function nu(e){return tu("name",e)}function iu(e,t){return e&&e.id?(e=y(e.id)).findStepById(t):null}var ru="_pendo-guide-tt_",ou="_pendo-guide-mobile-tt_",au=_.partial(_.get,_,"attributes.resourceCenter"),su=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},du=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},uu=function(e){return!!_.get(e,"attributes.form")};function cu(){return"undefined"!=typeof selmo&&!!selmo.isPreviewing}function lu(){return!!(cu()&&oa().width<=320)||je.isMobileUserAgent()}function pu(e=document){var t=pu.attachPoint;if(null==t){var n=S.get("guides.attachPoint");if(_.isString(n)){try{t=Ar(n)[0]}catch(i){x.info('Error finding guide attach point "'+n+'"')}t=t||document.createElement("div")}else t=!!_.isFunction(n)&&n();pu.attachPoint=t}return t||la(e)}var hu=function(e){var t=e.getGuide();if(t){t.placeBadge();t=Kd[e.guideId];if(t){t=t.element();if(ha(t)&&t.id==="_pendo-badge_"+e.id)return t}}},fu=function(e,t){var n;return e?(n=e.getGuide(),n="building-block"===_.get(n,"attributes.type")||!du(n),!e.overrideElement&&n&&(e.overrideElement=hu(e)),e.targetElement=gu(e,t),e.overrideElement||e.targetElement):(x.info("Can't get element for null step"),null)},gu=function(e,t){e=e.elementPathRule||null,e=e?Ar(e,t):[la(t)];return 0===e.length?null:_.first(e)};function mu(e){var t=_.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function vu(e,t,n){var i,r,o,e=da(e),t=da(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!==aa(a)||t.fixed||(o=function(e,t,n,i){var r={x:e.left+e.width-t.width,y:0};r.y="top"===n?e.top:e.top+e.height-t.height;r.y=Math.max(r.y,0),r.x=Math.max(r.x,0),_.contains([ba.X,ba.BOTH],i)&&(r.x=0);_.contains([ba.Y,ba.BOTH],i)&&(r.y=0);return r}(a,oa(),n,ya(la(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function yu(e,t,n,i,r){var o,a=_.toArray(arguments).slice(1),s=e.apply(this,a);return n||Ea(o=pu())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function bu(){return k.getters["frames/isLeader"]()}function wu(e){return k.dispatch("frames/updateFrameVisibility",{visibility:e})}const Su={validateGuide:1,validateLauncher:1,validateGlobalScript:1},Eu={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1,onEventCaptured:1,segmentFlagsUpdated:1,segmentFlagsReady:1,segmentFlagsError:1},Iu={ready:1,segmentFlagsUpdated:1,segmentFlagsReady:1,segmentFlagsError:1},_u=["ready","onClickCaptured","onEventCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","segmentFlagsUpdated","segmentFlagsReady","segmentFlagsError","validateGuide","validateLauncher","validateGlobalScript"];function Cu(i){const e=_.reduce(_u,function(e,r){if(Eu[r]){const t=function(e){return Tu[r].apply(Tu[r],e.data)};i[r].on(t),e.push(()=>i[r].off(t))}if(Iu[r]){const n=function(t){{var n=r;t=t.data[0];let e;try{e=new CustomEvent("pendo_"+n,{detail:t})}catch(i){if(!document.createEvent)return;(e=document.createEvent("Event")).initEvent("pendo_"+n,!0,!0),e.detail=t}document.dispatchEvent(e)}};i[r].on(n),e.push(()=>i[r].off(n))}return e},[]);return()=>_.each(e,e=>e())}xu=In.call({}),_.each(_u,function(n){xu[n]=function(e){var t;return _.isFunction(e)?xu.on(n,e):(t=Su[n]?"triggerAsync":"trigger",xu[t].apply(xu,[n].concat(_.toArray(arguments))))}});var xu,Tu=xu;var Ru={post:function(e,t,n,i){return n.ajax.postJSON(e.replace(/\/guides\.js\//,"/guides.json/"),t).then(function(e){n.guidesPayload(e.data),i()})},load(e,t,n){return t.ajax.get(e).then(function(e){t.guidesPayload(e.data),n()})},endpoint(){return"guide.json"},usesXhr(){return!0}};function ku(e){e=Ba(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}Ou=Pu={failed:{},verified:{}},Mu=Ho,Lu=function(e){try{var t=[];return!Ru.usesXhr()&&e.domJsonpUrl?t.push(Uu(e,"domJsonpUrl")):Ru.usesXhr()&&e.domUrl&&t.push(Fu(e,"domUrl")),e.contentUrlJs?t.push(Uu(e,"contentUrlJs")):e.contentUrl&&t.push(Uu(e,"contentUrl")),m.all(t)}catch(n){throw R.contentVerificationFail.trigger(e,n),n}},Nu=function(e){return Lu(e).then(_.noop,function(e){return/verify/.test(e)&&Mu(e),m.reject(e)})},Au=function(t){return Ou.failed[t.id]?m.reject():Ou.verified[t.id]?m.resolve():Nu(t).then(function(){Ou.verified[t.id]=!0},function(e){return Ou.failed[t.id]=!0,m.reject(e)})};var Au,Ou,Nu,Mu,Lu,Pu,Du={verify:function(e){return S.get("guideValidation")?Au(e):m.resolve()},reset:function(){Pu.failed={},Pu.verified={}}};function Fu(e,t){var n,i=e[t];return _.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||ku(e[t]),Gr.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=V.create()).update(e),u.uint8ToBase64(t.digest())!==n)return m.reject('Unable to verify content at "'+i+'"')})):m.reject('unable to parse "'+i+'"')}function Uu(e,t){var n=e[t];return je.sri&&/[?&]sha(256|384|512)=/.test(n)?m.resolve():Fu(e,t)}Gu="allow",Bu="deny",Hu="pending",ju=function(){return 0<_.size(Tu._handlers.validateGuide)},qu=function(e,n){var i=[];return _.each(e,function(e,t){n&&(t=n+"."+t),_.isObject(e)?_.each(qu(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var Gu,Bu,Hu,zu,ju,qu,Wu={state:zu={},Step:function(e){var n=this;function i(e){return _.filter([["content",ku(e.contentUrl)],["contentCss",ku(e.contentUrlCss)],["contentJs",ku(e.contentUrlJs)],["dom",ku(e.domUrl)],["domJsonp",ku(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=qu(t)).length&&(t=_.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return _.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<_.size(Tu._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-"+pt(n.signature()),(t=zu[t])!==Bu)&&(t!==Gu?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+pt(t),Tu.validateLauncher(t).then(function(){zu[e]=Gu},function(){zu[e]=Bu}).then(function(){i=!1,n.render(),n.update(g())},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=qu(this.data);return t.length&&(t=_.chain(t).filter(function(e){return!/^contentUrl/.test(e[0])}).sortBy(function(e){return e[0]}).value(),e.push(["variables",t])),e},n},validate:function(e){if(!ju())return m.resolve();try{return _.isArray(e)?m.all(_.map(e,Vu)):Vu(e)}catch(t){throw R.contentValidationFail.trigger(e,t),t}},valid:function(e){return!ju()||!!(e=zu[e.guideId])&&e.status===Gu},invalid:function(e){return!!ju()&&!!(e=zu[e.guideId])&&e.status===Bu},reset(){zu={}}};function Vu(i){var r=zu[i.id];return r||(r={},zu[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+pt(e),n=(r[t]||(r[t]={status:Hu},r.status=Hu),r[t].promise);return n||(n=Tu.validateGuide(e,i).then(function(){r[t].status=Gu,r.status=Gu},function(e){return r[t].status=Bu,r.status=Bu,m.reject(e)}),r[t].promise=n),n})}function Ju(e,t){var n=_.toArray(arguments).slice(2);return _.reduce(e,function(e,t){return t.apply(e,n)},t)}function Ku(e){return _.isFunction(e.before)?e:(e=It(e),Ju(Ku.behaviors,e))}function $u(e,t){return e=It(e),t=It(t),Ju($u.behaviors,e,t)}function Xu(e){var t,n,i=S.getLocalConfig("contentHost");return i&&e?(t=new RegExp(`(https:)?\\/\\/${Ke}-\\d+\\.storage\\.googleapis\\.com`,"g"),n=new RegExp(`(https:)?\\/\\/${Je}\\.storage\\.googleapis\\.com`,"g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+At(Xe),"g"),i)):e}function Yu(e){return S.getLocalConfig("contentHost")?JSON.parse(Xu(JSON.stringify(e))):e}Ku.behaviors=[],$u.behaviors=[];var Zu=function(){var u={},c=_.compose(function(e){var t=function(){var e=At(S.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&x.debug("Failed to verify URL: "+e+" vs "+t),e},Xu);const d=[function(e,t,n){return e.replace(`<% if (typeof guide !== 'undefined') { %>
|
|
4
|
+
function loadAgent(B){d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");var d,u={uint8ToBase64:function(e){var t,n,i,r=e.length%3,o="";for(t=0,i=e.length-r;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=function(e){return d[e>>18&63]+d[e>>12&63]+d[e>>6&63]+d[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=d[n>>2])+d[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=d[n>>10])+d[n>>4&63])+d[n<<2&63]}return o}},Gt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var l,o,p,H,z,j,q,e={exports:{}};function W(e){e?(j[0]=j[16]=j[1]=j[2]=j[3]=j[4]=j[5]=j[6]=j[7]=j[8]=j[9]=j[10]=j[11]=j[12]=j[13]=j[14]=j[15]=0,this.blocks=j):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}n=e,l="object"==typeof window?window:{},t=!l.JS_SHA1_NO_COMMON_JS&&n.exports,o="0123456789abcdef".split(""),p=[-2147483648,8388608,32768,128],H=[24,16,8,0],z=["hex","array","digest","arrayBuffer"],j=[],q=function(t){return function(e){return new W(!0).update(e)[t]()}},W.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===l.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]<<H[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<H[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<H[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<H[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<H[3&n++],a[n>>2]|=(128|t>>12&63)<<H[3&n++]),a[n>>2]|=(128|t>>6&63)<<H[3&n++]),a[n>>2]|=(128|63&t)<<H[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]|=p[3&t],this.block=e[16],56<=t&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash())},W.prototype.hash=function(){for(var e,t=this.h0,n=this.h1,i=this.h2,r=this.h3,o=this.h4,a=this.blocks,s=16;s<80;++s)e=a[s-3]^a[s-8]^a[s-14]^a[s-16],a[s]=e<<1|e>>>31;for(s=0;s<20;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|~n&r)+o+1518500249+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|~t&i)+r+1518500249+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|~o&n)+i+1518500249+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|~r&t)+n+1518500249+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|~i&o)+t+1518500249+a[s+4]<<0,i=i<<30|i>>>2;for(;s<40;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o+1859775393+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r+1859775393+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i+1859775393+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n+1859775393+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t+1859775393+a[s+4]<<0,i=i<<30|i>>>2;for(;s<60;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|n&r|i&r)+o-1894007588+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|t&i|n&i)+r-1894007588+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|o&n|t&n)+i-1894007588+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|r&t|o&t)+n-1894007588+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|i&o|r&o)+t-1894007588+a[s+4]<<0,i=i<<30|i>>>2;for(;s<80;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o-899497514+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r-899497514+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i-899497514+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n-899497514+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t-899497514+a[s+4]<<0,i=i<<30|i>>>2;this.h0=this.h0+t<<0,this.h1=this.h1+n<<0,this.h2=this.h2+i<<0,this.h3=this.h3+r<<0,this.h4=this.h4+o<<0},W.prototype.toString=W.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return o[e>>28&15]+o[e>>24&15]+o[e>>20&15]+o[e>>16&15]+o[e>>12&15]+o[e>>8&15]+o[e>>4&15]+o[15&e]+o[t>>28&15]+o[t>>24&15]+o[t>>20&15]+o[t>>16&15]+o[t>>12&15]+o[t>>8&15]+o[t>>4&15]+o[15&t]+o[n>>28&15]+o[n>>24&15]+o[n>>20&15]+o[n>>16&15]+o[n>>12&15]+o[n>>8&15]+o[n>>4&15]+o[15&n]+o[i>>28&15]+o[i>>24&15]+o[i>>20&15]+o[i>>16&15]+o[i>>12&15]+o[i>>8&15]+o[i>>4&15]+o[15&i]+o[r>>28&15]+o[r>>24&15]+o[r>>20&15]+o[r>>16&15]+o[r>>12&15]+o[r>>8&15]+o[r>>4&15]+o[15&r]},W.prototype.array=W.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r]},W.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(20),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),e},i=function(){var t=q("hex");t.create=function(){return new W},t.update=function(e){return t.create().update(e)};for(var e=0;e<z.length;++e){var n=z[e];t[n]=q(n)}return t}(),t?n.exports=i:l.sha1=i;var V=c(e.exports);let J;const K={createScriptURL:e=>e,createHTML:e=>e};function $(e){return J||(J=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",K):K),e.trustedTypesPolicy=J),J}var E,X="stagingServerHashes",Y="stagingDomains",Z={};function Q(e){return e.loadAsModule}function ee(e){return"staging"===e.environmentName}function te(e){return"extension"===e.installType}function ne(t=[],n){var i=/^https:\/\/[\w\-.]*cdn[\w\-.]*\.(pendo-dev\.com|pendo\.io)\/agent\/static\/([\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}|PENDO_API_KEY)\/pendo\.js$/g;for(let e=0;e<t.length;e++){var r=t[e];if(i.test(r.src)||r.id==="pendo-"+n)return r}}function ie(e,t,n){e=function(e=[]){if(e=ne(e))return e.src.replace(/\.js$/,"-staging.js")}(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function re(n,i=[],r=[]){if(n){if(0<r.length){var o=se(n);for(let e=0,t=r.length;e<t;++e)if(r[e]===o)return!0}if(0<i.length)for(let t=0,e=i.length;t<e;++t){let e=i[t];if((e="string"==typeof(e="object"==typeof e&&e.value?e.regexp?(e.value.startsWith("/")&&e.value.endsWith("/")&&(e.value=e.value.substring(1,e.value.length-1)),new RegExp(e.value)):e.value:e)?new RegExp("^"+e+"$"):e)instanceof RegExp&&e.test(n))return!0}}return!1}function oe(e,t=[]){if(t.length)for(var n=function(e){if(!(e=(e||"").split(":")[0].toLowerCase())||/^[\d.]+$/.test(e)||0<=e.indexOf(":"))return[];for(var t=e.split("."),n=[],i=0;i<=t.length-2;i++)n.push(t.slice(i).join("."));return n}(e),i=0;i<n.length;i++)if(0<=t.indexOf(se(n[i])))return!0;return!1}function ae(e,t){return!!(e=e||Z)&&(!!ee(e)||re((t=t||window.location).host,e.stagingServers,e[X])||oe(t.host,e[Y]))}function se(e){return u.uint8ToBase64(V.create().update(e).digest())}var de=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function ue(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function ce(e){if(!e._q)for(var t=de,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){ue(t,e,arguments)}}(t[n],e)}function le(e,t,n){if(!te(i=e)&&!ee(i)&&ae(i)){i=ie(e,!0,n);if(i)return ce(t),he(i,t),!0}var i;return!1}function pe(e,t,n){if(r=n,!te(i=e)&&!i.unminified&&r){i=ie(e,!1,n);if(i)return ce(t),he(i,t),!0}var i,r;return!1}function he(e,t){var n=document.createElement("script"),t=(n["async"]=!0,n.src=$(t).createScriptURL(e),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(n,t):(document.head||document.body).appendChild(n)}function fe(e){Z=e}function ge(){return void 0===B?{}:B}function me(e){return Z[e]}ve(window.setTimeout,window);function ve(e,t){return"function"==typeof e.bind?e.bind(t):e}var ye,Ut=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return ve(e[t],e)}(window),_=c(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Gt&&Gt.global===Gt&&Gt||Function("return this")()||{},i=Array.prototype,D=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,U=i.push,d=i.slice,l=D.toString,G=D.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),B=Array.isArray,H=Object.keys,z=Object.create,j=t&&ArrayBuffer.isView,q=isNaN,W=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],K=Math.pow(2,53)-1;function c(r,o){return o=null==o?r.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),n=0;n<e;n++)t[n]=arguments[n+o];switch(o){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}for(var i=Array(o+1),n=0;n<o;n++)i[n]=arguments[n];return i[o]=t,r.apply(this,i)}}function o(e){var t=typeof e;return"function"==t||"object"==t&&!!e}function $(e){return void 0===e}function X(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"),Z=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=B||r("Array");function g(e,t){return null!=e&&G.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return Z(e)&&q(e)}function de(e){return function(){return e}}function ue(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=K}}function ce(t){return function(e){return null==e?void 0:e[t]}}var m=ce("byteLength"),le=ue(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return j?j(e)&&!h(e):le(e)&&pe.test(l.call(e))}:de(!1),v=ce("length");function fe(e,t){t=function(t){for(var n={},e=t.length,i=0;i<e;++i)n[t[i]]=!0;return{contains:function(e){return!0===n[e]},push:function(e){return n[e]=!0,t.push(e)}}}(t);var n=J.length,i=e.constructor,r=p(i)&&i.prototype||D,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=J[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(H)return H(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return V&&fe(e,n),n}function ge(e,t){var n=y(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function c(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=l.call(e);if(r!==l.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return F.valueOf.call(e)===F.valueOf.call(t);case"[object ArrayBuffer]":case ve:return c(me(e),me(t),n,i)}r="[object Array]"===r;if(!r&&he(e)){var o=m(e);if(o!==m(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];i=i||[];var s=n.length;for(;s--;)if(n[s]===e)return i[s]===t;n.push(e);i.push(t);if(r){if((s=e.length)!==t.length)return!1;for(;s--;)if(!ye(e[s],t[s],n,i))return!1}else{var d,u=y(e);if(s=u.length,y(t).length!==s)return!1;for(;s--;)if(d=u[s],!g(t,d)||!ye(e[d],t[d],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function u(e){if(!o(e))return[];var t,n=[];for(t in e)n.push(t);return V&&fe(e,n),n}function be(i){var r=v(i);return function(e){if(null==e)return!1;var t=u(e);if(v(t))return!1;for(var n=0;n<r;n++)if(!p(e[i[n]]))return!1;return i!==Se||!p(e[we])}}var we="forEach",e=["clear","delete"],n=["get","has","set"],B=e.concat(we,n),Se=e.concat(n),t=["add"].concat(e,we,"has"),n=a?be(B):r("Map"),e=a?be(Se):r("WeakMap"),B=a?be(t):r("Set"),a=r("WeakSet");function w(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ee(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Ie(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function _e(d,u){return function(e){var t=arguments.length;if(u&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=d(i),o=r.length,a=0;a<o;a++){var s=r[a];u&&void 0!==e[s]||(e[s]=i[s])}return e}}var Ce=_e(u),s=_e(y),xe=_e(u,!0);function Te(e){var t;return o(e)?z?z(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function Re(e){return f(e)?e:[e]}function S(e){return b.toPath(e)}function ke(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function Ae(e,t,n){e=ke(e,S(t));return $(e)?n:e}function Oe(e){return e}function E(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return ke(e,t)}}function I(r,o,e){if(void 0===o)return r;switch(null==e?3:e){case 1:return function(e){return r.call(o,e)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return function(){return r.apply(o,arguments)}}function Me(e,t,n){return null==e?Oe:p(e)?I(e,t,n):(o(e)&&!f(e)?E:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function _(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Pe(){}function De(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=Re,b.iteratee=Le;var C=Date.now||function(){return(new Date).getTime()};function Fe(t){var n=function(e){return t[e]},e="(?:"+y(t).join("|")+")",i=RegExp(e),r=RegExp(e,"g");return function(e){return i.test(e=null==e?"":""+e)?e.replace(r,n):e}}var t={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Ue=Fe(t),t=Fe(Ee(t)),Ge=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Be=/(.)^/,He={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ze=/\\|'|\r|\n|\u2028|\u2029/g;function je(e){return"\\"+He[e]}var qe=/^\s*(\w|\$)+\s*$/;var We=0;function Ve(e,t,n,i,r){return i instanceof t?(i=Te(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var x=c(function(r,o){var a=x.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),i=0;i<t;i++)n[i]=o[i]===a?arguments[e++]:o[i];for(;e<arguments.length;)n.push(arguments[e++]);return Ve(r,s,this,this,n)};return s}),Je=(x.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return Ve(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),T=ue(v);function R(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=Infinity;for(var r=i.length,o=0,a=v(e);o<a;o++){var s=e[o];if(T(s)&&(f(s)||ae(s)))if(1<t)R(s,t-1,n,i),r=i.length;else for(var d=0,u=s.length;d<u;)i[r++]=s[d++];else n||(i[r++]=s)}return i}var Ke=c(function(e,t){var n=(t=R(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Je(e[i],e)}return e});var $e=c(function(e,t,n){return Ut(function(){return e.apply(null,n)},t)}),Xe=x($e,b,1);function Ye(e){return function(){return!e.apply(this,arguments)}}function Ze(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=x(Ze,2);function et(e,t,n){t=_(t,n);for(var i,r=y(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function tt(o){return function(e,t,n){t=_(t,n);for(var i=v(e),r=0<o?0:i-1;0<=r&&r<i;r+=o)if(t(e[r],r,e))return r;return-1}}var nt=tt(1),it=tt(-1);function rt(e,t,n,i){for(var r=(n=_(n,i,1))(t),o=0,a=v(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function ot(o,a,s){return function(e,t,n){var i=0,r=v(e);if("number"==typeof n)0<o?i=0<=n?n:Math.max(n+r,i):r=0<=n?Math.min(n+1,r):n+r+1;else if(s&&n&&r)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(d.call(e,i,r),se))?n+i:-1;for(n=0<o?i:r-1;0<=n&&n<r;n+=o)if(e[n]===t)return n;return-1}}var at=ot(1,nt,rt),st=ot(-1,it);function dt(e,t,n){t=(T(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function k(e,t,n){if(t=I(t,n),T(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function A(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function ut(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=I(t,i,4),s=n,d=!T(o)&&y(o),u=(d||o).length,c=0<p?0:u-1;for(r||(s=o[d?d[c]:c],c+=p);0<=c&&c<u;c+=p){var l=d?d[c]:c;s=a(s,o[l],l,o)}return s}}var ct=ut(1),lt=ut(-1);function O(e,i,t){var r=[];return i=_(i,t),k(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function N(e,t,n,i){return T(e)||(e=w(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=c(function(e,n,i){var r,o;return p(n)?o=n:(n=S(n),r=n.slice(0,-1),n=n[n.length-1]),A(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?ke(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return A(e,Ne(t))}function mt(e,i,t){var n,r,o=-Infinity,a=-Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=T(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&o<n&&(o=n);else i=_(i,t),k(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?d.call(e):Y(e)?e.match(vt):T(e)?A(e,Oe):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=T(e)?e:w(e))[De(e.length-1)];for(var i=yt(e),n=v(i),r=(t=Math.max(Math.min(t,n),0),n-1),o=0;o<t;o++){var a=De(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function M(o,t){return function(n,i,e){var r=t?[[],[]]:{};return i=_(i,e),k(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var wt=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),St=M(function(e,t,n){e[n]=t}),Et=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),It=M(function(e,t,n){e[n?0:1].push(t)},!0);function _t(e,t,n){return t in n}var Ct=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=I(i,t[1])),t=u(e)):(i=_t,t=R(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=e[a];i(s,a,e)&&(n[a]=s)}}return n}),xt=c(function(e,n){var t,i=n[0];return p(i)?(i=Ye(i),1<n.length&&(t=n[1])):(n=A(R(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Ct(e,i,t)});function Tt(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Rt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Tt(e,e.length-t)}function L(e,t,n){return d.call(e,null==t||n?1:t)}var kt=c(function(e,t){return t=R(t,!0,!0),O(e,function(e){return!N(t,e)})}),At=c(function(e,t){return kt(e,t)});function Ot(e,t,n,i){X(t)||(i=n,n=t,t=!1),null!=n&&(n=_(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var d=e[a],u=n?n(d,a,e):d;t&&!n?(a&&o===u||r.push(d),o=u):n?N(o,u)||(o.push(u),r.push(d)):N(r,d)||r.push(d)}return r}var Nt=c(function(e){return Ot(R(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Pt(e,t){return e._chain?b(t).chain():t}function Dt(n){return k(Ie(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return U.apply(e,arguments),Pt(this,t.apply(b,e))}}),b}k(["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)}}),k(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Pt(this,e=null!=e?t.apply(e,arguments):e)}});var P=Dt({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:$,isBoolean:X,isElement:function(e){return!(!e||1!==e.nodeType)},isString:Y,isNumber:Z,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&W(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||Y(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:B,isWeakSet:a,keys:y,allKeys:u,values:w,pairs:function(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:Ee,functions:Ie,methods:Ie,extend:Ce,extendOwn:s,assign:s,defaults:xe,create:function(e,t){return e=Te(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:Ae,has:function(e,t){for(var n=(t=S(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=_(t,n);for(var i=y(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Oe,constant:de,noop:Pe,toPath:Re,property:Ne,propertyOf:function(t){return null==t?Pe:function(e){return Ae(t,e)}},matcher:E,matches:E,times:function(e,t,n){var i=Array(Math.max(0,e));t=I(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:De,now:C,escape:Ue,unescape:t,templateSettings:Ge,template:function(o,e,t){e=xe({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||Be).source,(e.interpolate||Be).source,(e.evaluate||Be).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace(ze,je),a=r+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(s+="';\n"+i+"\n__p+='"),e}),s+="';\n",t=e.variable){if(!qe.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{throw new Error("Function constructor not supported")}catch(n){throw n.source=s,n}return(e=function(e){return(void 0).call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=S(t)).length;if(!i)return p(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++We+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:x,bind:Je,bindAll:Ke,memoize:function(i,r){var o=function(e){var t=o.cache,n=""+(r?r.apply(this,arguments):e);return g(t,n)||(t[n]=i.apply(this,arguments)),t[n]};return o.cache={},o},delay:$e,defer:Xe,throttle:function(n,i,r){var o,a,s,d,u=0,c=(r=r||{},function(){u=!1===r.leading?0:C(),o=null,d=n.apply(a,s),o||(a=s=null)}),e=function(){var e=C(),t=(u||!1!==r.leading||(u=e),i-(e-u));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout(o),o=null),u=e,d=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=Ut(c,t)),d};return e.cancel=function(){clearTimeout(o),u=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,d,u=function(){var e=C()-o;e<n?r=Ut(u,n-e):(r=null,i||(s=t.apply(d,a)),r||(a=d=null))},e=c(function(e){return d=this,a=e,o=C(),r||(r=Ut(u,n),i&&(s=t.apply(d,a))),s});return e.cancel=function(){clearTimeout(r),r=a=d=null},e},wrap:function(e,t){return x(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:Ze,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:dt,detect:dt,findWhere:function(e,t){return dt(e,E(t))},each:k,forEach:k,map:A,collect:A,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Ye(_(t)),n)},every:pt,all:pt,some:ht,any:ht,contains:N,includes:N,include:N,invoke:ft,pluck:gt,where:function(e,t){return O(e,E(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=T(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&n<o&&(o=n);else i=_(i,t),k(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=_(i,t),gt(A(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:wt,indexBy:St,countBy:Et,partition:It,toArray:yt,size:function(e){return null==e?0:(T(e)?e:y(e)).length},pick:Ct,omit:xt,first:Rt,head:Rt,take:Rt,initial:Tt,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return O(e,Boolean)},flatten:function(e,t){return R(e,t,!1)},without:At,uniq:Ot,unique:Ot,union:Nt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=v(e);i<r;i++){var o=e[i];if(!N(t,o)){for(var a=1;a<n&&N(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:kt,unzip:Mt,transpose:Mt,zip:Lt,object:function(e,t){for(var n={},i=0,r=v(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n=n||(t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(d.call(e,i,i+=t));return n},mixin:Dt,"default":b}),Ft=P.toPath;return P.mixin({toPath:function(e){return P.isString(e)?e.split("."):Ft(e)}}),P._=P}());function I(e){return!(null==e)}function be(e){return _.isFunction(e)||_.isRegExp(e)?e:_.isArray(e)?_.map(e,be):_.isObject(e)?_.reduce(e,function(e,t,n){return e[n]=be(t),e},{}):e}var S=function(){var i=_.all,r=_.each,o=_.filter,a=_.first,s=_.find,n=_.map,d=_.pluck,u="snippet",c="pendoconfig",l="global",p="default";const h={};function e(e,t=[c],n,i,r=[]){var o;e&&!h[e]&&(o={name:e,aliases:r=_.isArray(r)?r:[],defaultValue:n,supportedSources:t},null!=i&&(o.useAnySource=i),h[e]=o,0<r.length)&&_.each(r,function(e){h[e]===undefined&&(h[e]=o)})}e("additionalPublicAppIds",[c,u],undefined,undefined,["additionalApiKeys"]),e("allowedOriginServers"),e("allowedOriginServerHashes"),e("allowMixedApplicationFrames",[u,c],!0),e("allowMixedApiKeyFrames",[u,c],!0),e("annotateUrl",[u]),e("publicAppId",[c,u],undefined,undefined,["apiKey"]),e("assetHost",[u,c]),e("autoFrameInstall",[u,c],!1),e("blockWebSDKMetadata",[c],!1,undefined,["blockAgentMetadata"]),e("contentHost",[u,c]),e("cookieDomain",[u,c]),e("dataHost",[u,c]),e("disableAutoInitialize"),e("initializeWhenVisible",[c],!1),e("disableCookies",[u,c]),e("disablePendo",[u,c],!1),e("disablePersistence",[u,c]),e("enableSignedMetadata",[c],!1),e("forceAnonymous",[u,c],!1),e("forcedLeader",[u,c],!1),e("frameIdentitySync",[u,c],!1),e("frameIdentityTopDownOnly",[u,c],!0),e("identityStorageLifetime",[u,c]),e("identityStorageSuffix",[u,c]),e("ignoreHashRouting",[u,c]),e("initializeImmediately",[u,c],!1),e("installType"),e("localStorageOnly",[u,c]),e("location.pushState",[u,c],!0),e("maxCookieTTLDays",[u,c],Infinity),e("observeShadowRoots",[u,c],!1),e("pendoCore",[c],!0),e("pendoGlobalKey",[c]),e("preferBroadcastChannel",[u,c],!1),e("preferMutationObserver",[u,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[u,c],!1),e("promotedWebSDKMetadataConfigurations",[c],undefined,undefined,["promotedAgentMetadataConfigurations"]),e("queryStringWhitelist",[u]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[u]),e("selfHosted"),e("selfHostedWebSDKUrl",[u,c],undefined,undefined,["selfHostedAgentUrl"]),e("sendEventsWithPostOnly",[u,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[c,u],[],!0),e("analytics.excludeEvents",[u,c],[]),e("analytics.localStorageUnload",[u,c],!1),e("enableDebugEvents",[u,c]),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[u,c],!0),e("excludeAllText",[c,u],!1,!0),e("excludeNonGuideAnalytics",[u,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptPreventDefault",[u,c],!0),e("interceptStopPropagation",[u,c],!0),e("syntheticClicks.elementRemoval",[u,c],!1,undefined,["interceptElementRemoval"]),e("syntheticClicks.targetChanged",[u,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[u,c]),e("cacheGuides",[u,c],!1),e("cacheGuidesTimeout",[c],6e5),e("disableDesigner",[c,u],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[u,c],!1),e("disableGuidePseudoStyles",[u,c],!1),e("disablePrefetch",[u,c]),e("doNotTrackGuides",[u,c]),e("enableDesignerKeyboardShortcut",[u]),e("enableGuideTimeout",[c,u],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,u],1e4),e("guideValidation",[u,c],!1),e("guides.attachPoint",[u]),e("guides.delay",[u],!1,undefined,["delayGuides"]),e("guides.disabled",[u],!1,undefined,["disableGuides"]),e("guides.ejectOnTimeout",[u,c],!1),e("guides.globalScripts",[u,c],[]),e("guides.timeout",[u],undefined,undefined,["guideTimeout"]),e("guides.tooltip.arrowSize",[u]),e("inlineStyleNonce",[u]),e("leaderApplication",[u,c],[]),e("leaderKey",[u,c],[]),e("preventCodeInjection",[c,u,l],!1),e("previewModeAssetPath"),e("useAssetHostForDesigner",[u,c],!1),e("storage.allowKeys",[u],"*"),e("disableFeedback",[u]),e("disableFeedbackAutoInit"),e("feedbackSettings",[c],{}),e("pendoFeedback",[c],!1),e("crossAppGuideStorageSuffix",[u,c]),e("enableCrossOriginIsolation",[u,c],!1),e("secureDesignerConnect",[u,c],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("webSDKDebuggerPluginLoader",[c],undefined,undefined,["agentDebuggerPluginLoader"]),e("allowPartnerAnalyticsForwarding",[u],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerWebSDKPluginsLoader",[c,u],undefined,undefined,["designerAgentPluginsLoader"]),e("guideContentLoader",[c]),e("trainingPartner"),e("oemAccountId",[u]),e("whiteLabelSettings",[c]),e("errorClickLogging",[c],!1),e("enableAllEmbeddedGuideEvents",[c],!1),e("formValidation",[c],!1),e("performanceMetricsEnabled",[u,c],!0),e("performanceMetricsSampleRate",[u,c],10);var f={};function g(e){return h[e]||{name:e}}function m(t,n){if(n){const i=n();let e=_.get(i.lookup,(n=t,_.get(n,"key")||_.get(n,"name")));return I(e)||(n=_.find(t.aliases||[],function(e){e=_.get(i.lookup,e);if(I(e))return e}))&&(e=_.get(i.lookup,n)),I(e)?e:undefined}}function v(e,t){var n=m(e,f[t]);return new w(e.name,n,t)}function y(e,t){return t=t||_.get(e,"supportedSources",[u,c,l]),o(n(t,_.partial(v,e)),function(e){return I(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||_.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&I(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function w(e,t,n){this.name=e,this.value=t,this.source=n}function S(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(d(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[u]=function(){return{lookup:ye||window.pendo_options,name:u}},f[c]=function(){return{lookup:Z,name:c}},f[l]=function(){return{lookup:E,name:l}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get(e,t){return b(e,t).value},getLocalConfig(e,t){return arguments.length?b(e,t,[u]).value:be(ye)},getHostedConfig(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig(e){ye=e},options:()=>d(h,"name"),sources:{SNIPPET_SRC:u,PENDO_CONFIG_SRC:c,GLOBAL_SRC:l,DEFAULT_SRC:p},validate(t){t.groupCollapsed("Validate Config options"),r(S(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}();const we="extension",Se="native";function Ee(){return S.get("installType")||ge().installType||Se}function Ie(){return Ee()===we}function _e(e){return/native/.test(e)}const Ce=e=>{e=_.get(window,e);return e&&_e(e)};function xe(e,t){return e=e||10,(t=!isNaN(Re)&&(!t||Re<t))&&Te<e}const Te=function(e){let t=ke((/msie (\d+)/.exec(Ae(e))||[])[1]);isNaN(t)&&(t=ke((/trident\/.*; rv:(\d+)/.exec(Ae(e))||[])[1]));return t}(Oe()),Re=function(e,t){let n=ke((/trident\/(\d+)/.exec(Ae(e))||[])[1]);isNaN(n)&&7==t&&(n=3);return n}(Oe(),Te);function ke(e){return parseInt(e,10)}function Ae(e){return _.isString(e)?e.toLowerCase():e}function Oe(){return(window.navigator||{}).userAgent}const Ne={},Me=ke((/android (\d+)/.exec(Ae(Oe()))||[])[1]),Le=/Boxee/i.test(Oe()),Pe=window.document||{},De=Pe.documentMode;let Fe;var Ue,Ge=/^(Moz|webkit|O|ms)(?=[A-Z])/,t=Pe.body&&Pe.body.style;let Be=!1,He=!1;if(t){for(const xE in t)if(Ue=Ge.exec(xE)){Fe=(Fe=Ue[0]).substr(0,1).toUpperCase()+Fe.substr(1);break}Fe=Fe||"WebkitOpacity"in t&&"webkit",Be=!!("transition"in t||Fe+"Transition"in t),He=!!("animation"in t||Fe+"Animation"in t),!Me||Be&&He||(Be=_.isString(Pe.body.style.webkitTransition),He=_.isString(Pe.body.style.webkitAnimation))}var n=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id;const ze=_.memoize(function ze(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&_.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&_.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&_.get(n,"pushState.writable",!0)&&_.get(n,"replaceState.writable",!0),i=!(Me<4);return!(!e||t||!n||!i||Le||Ie())});const je={supportsHistoryApi:ze,supportsHashChange:function(){var e="onhashchange"in window,t=!De||7<De;return!(!e||!t||Ie())},hasEvent(e){var t;return("input"!=e||9!=Te)&&(_.isUndefined(Ne[e])&&(t=Pe.createElement("div"),Ne[e]="on"+e in t),Ne[e])},vendorPrefix:Fe,transitions:Be,animations:He,android:Me,msie:Te,msieDocumentMode:De,safari:0<=(i=Oe()).indexOf("Safari")&&0<=!i.indexOf("Chrome"),sri:"integrity"in document.createElement("script"),addEventListener:_.isFunction(window.addEventListener),MutationObserver:_e(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:_.memoize(function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Oe())}),isChromeExtension:n};var qe=function(){return!isNaN(Te)&&11!=Te&&"CSS1Compat"!==document.compatMode},We=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,Te<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+E.TOOLTIP_ARROW_SIZE),e.arrow.top=i-E.TOOLTIP_ARROW_SIZE,10==Te?e.arrow.top--:Te<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=10+E.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*E.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-E.TOOLTIP_ARROW_SIZE),e.arrow.border.top=e.arrow.top+n,e.arrow.border.left=e.arrow.left):("left"==e.arrow.hbias?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left-1):"right"==e.arrow.hbias&&(e.left=Math.max(0,t.left-r-E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left+1),e.top=t.top+t.height/2-i/2,e.arrow.top=i/2-E.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e};let Ve="",Je="",Ke="",$e="",Xe="",Ye="",Ze="",Qe="2.330.2_",et="2.330.2",tt="xhr";const nt=function(){return qe()?Qe+"+quirksmode":Qe};var it=/^\s+|\s+$/g;function rt(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 ot=(ot=String.prototype.trim)||function(){return this.replace(it,"")},e={exports:{}};!function(){var Z=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===Z?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&d(this)}function d(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(u[255&e]<<24|u[e>>>8&255]<<16|u[e>>>16&255]<<8|u[e>>>24&255])>>32-t:u[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=u[s],s=0,o===r.length)&&(r=d(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=u[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var u=t;function c(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&e instanceof Array?new Uint8Array(e):e,this.c=0,t&&(t.lazy&&(this.i=t.lazy),"number"==typeof t.compressionType&&(this.d=t.compressionType),t.outputBuffer&&(this.a=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.prototype.push=function(e,t){var n,i,r=this.buffer,o=this.length;for(r[this.length++]=t,r[this.length++]=e;0<o&&(n=this.getParent(o),r[o]>r[n]);)i=r[o],r[o]=r[n],r[n]=i,i=r[o+1],r[o+1]=r[n+1],r[n+1]=i,o=n;return this.length},c.prototype.pop=function(){var e,t,n,i=this.buffer,r=i[0],o=i[1];for(this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],n=0;!((t=2*n+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[n]);)e=i[n],i[n]=i[t],i[t]=e,e=i[n+1],i[n+1]=i[t+1],i[t+1]=e,n=t;return{index:o,value:r,length:this.length}};for(var ne=2,l={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,D,n=this.input;switch(this.d){case 0:for(t=0,D=n.length;t<D;){var F,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===D,o=Z,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),F=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&F,a[s++]=F>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,U=i.length;o<U;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var d,u=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(u.b(1,1,Q),u.b(1,2,Q),re(this,n)),l=0,G=c.length;l<G;l++)if(d=c[l],te.prototype.b.apply(u,ie[d]),256<d)u.b(c[++l],c[++l],Q),u.b(c[++l],5),u.b(c[++l],c[++l],Q);else if(256===d)break;this.a=u.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,H,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,x,T,R,q=h,W=f,k=new(ee?Uint32Array:Array)(q+W),A=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<q;N++)k[_++]=m[N];for(N=0;N<W;N++)k[_++]=v[N];if(!ee)for(N=0,x=O.length;N<x;++N)O[N]=0;for(N=T=0,x=k.length;N<x;N+=_){for(_=1;N+_<x&&k[N+_]===k[N];++_);if(C=_,0===k[N])if(C<3)for(;0<C--;)O[A[T++]=0]++;else for(;0<C;)(R=C-3<(R=C<138?C:138)&&R<C?C-3:R)<=10?(A[T++]=17,A[T++]=R-3,O[17]++):(A[T++]=18,A[T++]=R-11,O[18]++),C-=R;else if(A[T++]=k[N],O[k[N]]++,--C<3)for(;0<C--;)A[T++]=k[N],O[k[N]]++;else for(;0<C;)C-3<(R=C<6?C:6)&&R<C&&(R=C-3),A[T++]=16,A[T++]=R-3,O[16]++,C-=R}for(e=ee?A.subarray(0,T):A.slice(0,T),y=oe(O,7),S=0;S<19;S++)j[S]=y[z[S]];for(g=19;4<g&&0===j[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(j[S],3,Q);for(S=0,H=e.length;S<H;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],J=I[0],K=I[1],$=L[0],X=L[1],P=0,Y=p.length;P<Y;++P)if(M=p[P],E.b(J[M],K[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b($[V],X[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,d=w[e.length];switch(a[s++]=65535&d,a[s++]=d>>16&255,a[s++]=d>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(d=n,a[s++]=d[0],a[+s]=d[1],a[5]=d[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,c=null}var i,r,o,a,s,d,u,c,l,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===Z&&(p[s]=[]),d=p[s],!(0<g--)){for(;0<d.length&&32768<i-d[0];)d.shift();if(r<=i+3){for(c&&n(c,-1),o=0,a=r-i;o<a;++o)l=t[i+o],h[f++]=l,++m[l];break}0<d.length?(u=function(e,t,n){var i,r,o,a,s,d,u=0,c=e.length;a=0,d=n.length;e:for(;a<d;a++){if(i=n[d-a-1],(o=3)<u){for(s=u;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=u}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(u<o&&(r=i,u=o),258===o)break}return new b(u,t-r)}(t,i,d),c?c.length<u.length?(l=t[i-1],h[f++]=l,++m[l],n(u,0)):n(c,-1):u.length<y?c=u:n(u,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}d.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,d=new c(572),u=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)u[o]=0;for(o=0;o<s;++o)0<e[o]&&d.push(o,e[o]);if(n=Array(d.length/2),i=new(ee?Uint32Array:Array)(d.length/2),1===n.length)u[d.pop().index]=1;else{for(o=0,a=d.length/2;o<a;++o)n[o]=d.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,d=new(ee?Uint16Array:Array)(t),u=new(ee?Uint8Array:Array)(t),c=new(ee?Uint8Array:Array)(n),l=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(d[t-1]=n,r=0;r<t;++r)f<g?u[r]=0:(u[r]=1,f-=g),f<<=1,d[t-2-r]=(d[t-1-r]/2|0)+n;for(d[0]=u[0],l[0]=Array(d[0]),p[0]=Array(d[0]),r=1;r<t;++r)d[r]>2*d[r-1]+u[r]&&(d[r]=2*d[r-1]+u[r]),l[r]=Array(d[r]),p[r]=Array(d[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<d[t-1];++o)l[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===u[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<d[r];o++)(a=l[r+1][s]+l[r+1][s+1])>e[i]?(l[r][o]=a,p[r][o]=n,s+=2):(l[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===u[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--c[t],++h[e]}(r)}return c}(i,i.length,t),o=0,a=n.length;o<a;++o)u[n[o].index]=r[o]}return u}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,d=e.length;s<d;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,d=16;s<=d;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,d=e.length;s<d;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,S=l,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,d=a.length;s<d;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var u,c=1,l=0,p=o.length,h=0;0<p;){for(p-=u=1024<p?1024:p;l+=c+=o[h++],--u;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call(e.exports);var at={Deflate:c(e.exports).Zlib.Deflate},st="base64url";function dt(e,t){t=t||st;e=rt("string"==typeof e?e:JSON.stringify(e)),e=new at.Deflate(e).compress();return t===st?u.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 ut={CRC32:c(t.exports).Zlib.CRC32},ct=function(e,n){var i;return 200<=(n=n||0)?e:_.isArray(e)?_.map(e,function(e){return ct(e,n+1)}):!_.isObject(e)||_.isDate(e)||_.isRegExp(e)||_.isElement(e)?_.isString(e)?_.escape(e):e:(i={},_.each(e,function(e,t){i[t]=ct(e,n+1)}),i)},lt=function(e){e=rt(e);return u.uint8ToBase64(e)},pt=function(e){if(void 0!==e)return e=rt(e=_.isString(e)?e:JSON.stringify(e)),ut.CRC32.calc(e,0,e.length)};function ht(e){return e[Math.floor(Math.random()*e.length)]}function ft(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=ht(i);return n}var gt=function(e,t,n){return!(!I(e)||!I(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function C(){return(new Date).getTime()}function mt(){return"undefined"!=typeof $A&&_.isFunction($A.get)&&_.isString($A.get("$Browser.formFactor"))}function vt(e,t=window){var[e,t,n=window]=[_,e,t],i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}i=window;var yt=_.isFunction(i.isFinite)?i.isFinite:i.Number&&_.isFunction(i.Number.isFinite)?i.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function bt(e){return"number"==typeof e&&yt(e)&&Math.floor(e)===e}function wt(e,t,n,i){(t=t||{}).maxRetries=bt(t.maxRetries)?t.maxRetries:10,t.delay=bt(t.delay)?t.delay:50,t.exponentialBackoff=t.exponentialBackoff||!1;var r=function(e){return e&&"[object Function]"==={}.toString.call(e)},o=r(n)?n:function(){},a=r(i)?i:function(){},n=e();n?o(n):0<t.maxRetries?Ut(function(){t.maxRetries=--t.maxRetries,t.delay=t.exponentialBackoff?2*t.delay:t.delay,wt(e,t,o,a)},t.delay):(a||function(){})()}var St=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function Et(e){return _.isObject(e)&&_.isFunction(e.then)}function It(e){return e&&e.hasOwnProperty("wrappedJSObject")?e.wrappedJSObject:e}var _t,Ct=_.isFunction(window.decodeURIComponent)?window.decodeURIComponent:_.identity,xt=_.isFunction(window.encodeURIComponent)?window.encodeURIComponent:_.identity;class Tt{constructor(){this.listeners={}}addEventListener(e,t){let n=this.listeners[e];n||(n=[],this.listeners[e]=n),_.findIndex(n,e=>t===e)<0&&n.push(t)}removeEventListener(e,t){var n,i=this.listeners[e];i&&0<=(n=_.findIndex(i,e=>t===e))&&(i.splice(n,1),i.length||delete this.listeners[e])}dispatchEvent(t){var e=this.listeners[t.type];e&&_.each(e,e=>{e(t)})}}class Rt{constructor(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}toString(){let e=this.message;return this.error&&e!==this.error.message&&(e=e+":"+this.error.message),this.attributes&&(e+=": "+_.map(this.attributes,(e,t)=>t+"="+e)),e}hashCode(){return this.toString()}}(n=_t=_t||{}).Debug="debug",n.Info="info",n.Warn="warn",n.Error="error",n.Critical="critical";class kt extends Tt{write(e,t,n){this.dispatchEvent(new Rt(t,e,n))}writeError(e,t,n){let i,r;_.isString(e)?(i=e,r={message:i}):(r=e,i=r.message),n&&n.error&&(r=n.error,delete n.error);e=new Rt(t,i,n);e.error=r,this.dispatchEvent(e)}debug(e,t){this.write(e,_t.Debug,t)}info(e,t){this.write(e,_t.Info,t)}warn(e,t){this.writeError(e,_t.Warn,t)}error(e,t){this.writeError(e,_t.Error,t)}critical(e,t){this.writeError(e,_t.Critical,t)}}const x=new kt;function At(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Ot=function(){var e=S.get("storage.allowKeys")||"*";return _.isArray(e)?_.indexBy(e):e};function Nt(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function Mt(n){_.forEach(_.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function Lt(e){var t=_.noop,t={getItem:()=>null,setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:Nt(n,n.getItem,null),setItem:Nt(n,n.setItem),removeItem:Nt(n,n.removeItem),clearPendo:_.partial(Mt,n)}:t}catch(i){return t}}var Pt=Lt(function(){return window.localStorage}),Dt=Lt(function(){return window.sessionStorage});function Ft(e){try{return JSON.parse(e)}catch(t){return null}}var Bt,Ht={},zt=!0,jt=function(){return S.get("localStorageOnly")},qt=function(){return!!S.get("disableCookies")};function Wt(e){zt=e}var Vt=function(e){return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(document.cookie))?Ct(e[2]):null},Jt=function(e,t,n,i){var r,o,a;!zt||S.get("preventCookieRefresh")&&Vt(e)===t||(a=Qt(n),r=new Date,o=(i="https:"===document.location.protocol||i)?"None":"Strict",r.setTime(r.getTime()+a),a=e+"="+xt(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+(i?";secure":"")+"; SameSite="+o,Bt&&(a+=";domain="+Bt),document.cookie=a)};function Kt(e){var t="=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT";Bt&&(document.cookie=e+t+";domain="+Bt),document.cookie=e+t}var $t=function(e,t){return`_pendo_${e}.`+(t||E.apiKey)},Xt=function(e,t){return Vt($t(e,t))};const Yt=864e5,Zt=100*Yt,Qt=(e=Zt)=>{var t=S.get("maxCookieTTLDays"),t=t<Infinity?t*Yt:Infinity;return Math.min(e,t)};var en=function(e,t,n,i,r){n=n||Zt,Jt($t(e,r),t,n,i)};class tn{constructor(){this.keys={}}addLocal(e,t){this._add(e,"local",t)}addSession(e,t){this._add(e,"session",t)}hasLocal(e){return this._has(e,"local")}hasSession(e){return this._has(e,"session")}getKeyConfig(e,t,n){return I(n)?n:this.keys[e]?this.keys[e][t]:undefined}getKeySerializer(e){return this.keys[e]?this.keys[e].serializer:_.identity}getKeyDeserializer(e){return this.keys[e]?this.keys[e].deserializer:_.identity}_add(e,t,n={}){n=_.extend({type:t,duration:null,isPlain:!1,isSecure:!1,localStorageOnly:!1,cookieSuffix:undefined,serializer:_.identity,deserializer:_.identity},n),this.keys[e]||(this.keys[e]=n)}_has(e,t){return!!this.keys[e]&&this.keys[e].type===t}}var nn,rn,on,an,m,T=function(){const d=new tn;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=Ot())||n[t])return d[r](e)||x.warn(`storage key ${e} is not registered`),i.apply(this,arguments);x.debug(`writing storage key ${e} is not allowed`)}}function u(e){return e||jt()||!Bt}var c=_.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.getItem(n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}});function l(e){e.cache&&(e.cache={})}function p(e){if(null===e)return null;try{var t=JSON.parse(e);return null!==t&&"object"==typeof t&&"ttl"in t&&"value"in t?"number"==typeof t.ttl&&isFinite(t.ttl)&&0<t.ttl&&t.ttl<(new Date).getTime()?null:String(t.value||t):e}catch(n){return e}}function h(e,t){return null===t?e:(t=(new Date).getTime()+Qt(t),JSON.stringify({ttl:t,value:e}))}function f(e,t,n){t=d.getKeyConfig(e,"isPlain",t),n=d.getKeyConfig(e,"cookieSuffix",n);var i=d.getKeyConfig(e,"localStorageOnly"),t=t?e:$t(e,n);if(qt()&&delete Ht[t],u(i)){if(c("localStorage"))try{return void localStorage.removeItem(t)}catch(r){}}else try{return void Kt(t)}catch(r){}delete Ht[t]}const t=_.extend({},Dt),n=(t.setItem=e(t.setItem,"hasSession"),_.extend({},Pt));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){t=d.getKeyConfig(e,"isPlain",t),n=d.getKeyConfig(e,"cookieSuffix",n);var i=d.getKeyConfig(e,"localStorageOnly"),r=t?e:$t(e,n);let o;var a=d.getKeyDeserializer(e);if(qt())return a(p(Ht[r])||null);if(u(i)){if(c("localStorage"))try{return null===(o=p(localStorage.getItem(r)))&&f(e,t,n),a(o)}catch(s){l(c)}}else try{if(null!==(o=Vt(r)))return a(o)}catch(s){}return null===(o=p(Ht[r]||null))&&delete Ht[r],a(o)},write:e(function(e,t,n,i,r,o){n=d.getKeyConfig(e,"duration",n),i=d.getKeyConfig(e,"isPlain",i),r=d.getKeyConfig(e,"isSecure",r),o=d.getKeyConfig(e,"cookieSuffix",o);var a=d.getKeyConfig(e,"localStorageOnly"),e=(t=d.getKeySerializer(e)(t),i?e:$t(e,o));if(l(c),!qt())if(u(a)){if(c("localStorage"))try{return void localStorage.setItem(e,h(t,n))}catch(s){}}else try{return i||(n=n||Zt),void Jt(e,t,n,r)}catch(s){}Ht[e]=h(t,n)},"hasLocal"),clear:f,clearAll:function(){_.each(d.keys,(e,t)=>{"local"===e.type&&f(t)})},registry:d,getLocal:()=>n,getSession:()=>t}}(),sn=(window.Promise,e=function(){var t=Ut;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a},"function"==typeof(t=window.Promise)&&/native/.test(t)?t:e()),i=(rn=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},on=function(n,i){var r=nn.defer(),o=function(n,i){Ut(function(){var e;try{e=n(i)}catch(t){return void r.reject(t)}e===r.promise?r.reject(new TypeError("Cannot resolve promise with itself")):r.resolve(e)},1)};return{promise:r.promise,handle:function(e,t){e===an?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},an=1,(nn={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,_.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(an,e)},a=function(e){t(2,e)},s=function(e,t){e=on(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},d=function(e){var t=rn();try{e(t(u),t(a))}catch(n){t(a)(n)}},u=function(e){var t;try{t=function(e){var t=e&&e.then;if("object"==typeof e&&"function"==typeof t)return function(){return t.apply(e,arguments)}}(e)}catch(n){return void a(n)}t?d(t):o(e)},e=rn();return{resolve:e(u),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},nn);function dn(e){var n,i=m.defer(),r=_.isArray(e)?[]:{},o=_.size(e);return o?(n=!1,_.each(e,function(e,t){m.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):m.resolve(e)}!Ie()&&je.isMinimumIEVersion(11)?m={all:function(e){return _.isArray(e)?sn.all.apply(sn,arguments):dn(e)},reject:function(){return sn.reject.apply(sn,arguments)},resolve:function(){return sn.resolve.apply(sn,arguments)},defer:function(){var n={};return n.promise=new sn(function(e,t){n.resolve=e,n.reject=t}),n}}:((m=i).all=dn,m.reject=function(e){var t=m.defer();return t.reject(e),t.promise},m.resolve=function(e){var t=m.defer();return t.resolve(e),t.promise});const un=T.getSession(),cn="pendo_tabId",ln="pendo_parentTabId";pn=window,n=_.partial,hn=_.extend,fn=_.omit,gn={data:{},getItem(e){return gn.data[e]},setItem(e,t){gn.data[e]=t},removeItem(e){gn.data[e]=null,delete gn.data[e]}},mn=n(Sn,cn,En),vn=n(Sn,"pendo_frameId",gn);var pn,hn,fn,gn,mn,vn,yn={addTracerIds(e){return fn(hn(e,{parentTabId:bn(ln,En),tabId:mn(),frameId:vn()}),function(e){return e===undefined})},setParentTabId:function(e){wn(ln,e,En)},newTabId:function(){var e=ft(16);return wn(cn,e,En),e},getTabId:mn,getFrameId:vn,tabIdChanged:function(t){var e;if(je.addEventListener)return pn.addEventListener("storage",e=function(e){e.key===cn&&(gn.removeItem(cn),t())}),function(){pn.removeEventListener("storage",e)}}};function bn(e,t){return(_.isFunction(t)?t():t).getItem(e)}function wn(e,t,n){(_.isFunction(n)?n():n).setItem(e,t)}function Sn(e,t){var n=bn(e,t);return n||wn(e,n=ft(16),t),n}function En(){return n=gn,i=un,{getItem(e){var t=n.getItem(e);return t===undefined&&(t=i.getItem(e),n.setItem(e,t)),t},setItem(e,t){n.setItem(e,t),i.setItem(e,t)},removeItem(e){n.removeItem(e),i.removeItem(e)}};var n,i}function In(){var i=this._handlers={};return this.addEventListener=function(){this.on.apply(this,arguments)},this.removeEventListener=function(){this.off.apply(this,arguments)},this.on=function(e,t){var n;return(_.isString(e)||_.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),_.indexOf(n,t)<0)&&n.push(t),this},this.one=function(e,t){var n=this,i=function(){n.off(e,i),t.apply(this,arguments)};return this.on(e,i)},this.once=this.one,this.off=function(e,t){var n,e=i[e];return _.isFunction(t)?(n=_.indexOf(e,t),e&&0<=n&&e.splice(n,1)):e&&t===undefined&&(e.length=0),this},this.trigger=function(e){var t=i[e]?i[e].slice():[],n=_.toArray(arguments).slice(1);return _.map(t,function(e){return e.apply(E,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return _.map(e,function(e){if(!t.cancel)return e.apply(E,[t])})},this.triggerAsync=function(){var e=_.map(this.trigger.apply(this,arguments),function(e){return!1===e?m.reject():e});return m.all(e)},this}In.clear=function(t){t&&_.each(_.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};Fi={DEBUG:t="debug",FRAMES:e="frames",LIFECYCLE:i="lifecycle",RUNTIME:n="runtime"},_n=[new r("ready",[t,i]),new r("deliverablesLoaded",[t,i]),new r("guidesFailed",[t,i]),new r("guidesLoaded",[t,i]),new r("segmentFlagsUpdated",[t,i]),new r("segmentFlagsReady",[t,i]),new r("segmentFlagsError",[t,i]),new r("guideListChanged",[t,i]),new r("guidesReceived",[t,i]),new r("guideSeen",[t,i]),new r("guideNotSeen",[t,i]),new r("guideAdvanced",[t,i]),new r("guideDismissed",[t,i]),new r("guideSnoozed",[t,i]),new r("beforeGuideShow",[i]),new r("beforeMount",[n]),new r("beforeAdvance",[n]),new r("beforePrevious",[n]),new r("beforeSnooze",[n]),new r("beforeDismiss",[n]),new r("beforeUnmount",[n]),new r("unmounted",[n]),new r("beforeUpdate",[n]),new r("updated",[n]),new r("guideSnoozeCancelled",[t,i]),new r("guideTimeout",[t,i]),new r("guideLoopStopped",[t,i]),new r("guideUpdateComplete",[i]),new r("designerLaunched",[t,i]),new r("debuggerLaunched",[t,i]),new r("stepEligibility",[t]),new r("identify",[t,i]),new r("metadata",[t,i]),new r("appUnloaded",[t,i]),new r("appHidden",[t,i]),new r("startPreview",[t]),new r("resourceFetchFail",[t]),new r("contentVerificationFail",[t]),new r("contentValidationFail",[t]),new r("renderFail",[t]),new r("appUsage",[i]),new r("eventCaptured",[t]),new r("error",[t,i]),new r("onClickCaptured",[t]),new r("onEventCaptured",[t]),new r("urlChanged",[i]),new r("leaderChanged",[i,e]),new r("transmit:locked",[i]),new r("transmit:unlocked",[i]),new r("sessionChanged",[i]),new r("ptm:unpaused",[i]),new r("ptm:paused",[i]),new r("recording:unpaused",[i]),new r("recording:paused",[i]),new r("childFrameJoined",[e]),new r("tabIdChanged:self",[t,i])],Cn=In.call({}),xn={debug(){return yn.addTracerIds(Rn.apply(null,arguments))},lifecycle:Rn,runtime:Rn,frames:Rn},Tn=Cn.trigger,Cn.trigger=kn,_.each(_.values(Fi),function(e){Cn[e]={on:_.partial(Cn.on,e),one:_.partial(Cn.one,e),off:_.partial(Cn.off,e)}}),_.each(_n,function(e){e=e.name,Cn[e]={on:_.partial(Cn.on,e),one:_.partial(Cn.one,e),off:_.partial(Cn.off,e),trigger:_.partial(kn,e)}});var _n,Cn,xn,Tn,R=Cn;function r(e,t){this.name=e,this.groups=t||[]}function Rn(e,t){e={type:e,ts:C()};return I(t)&&_.isObject(t)&&(e.data=t),e}function kn(t){var e=_.findWhere(_n,{name:t}),n=_.toArray(arguments).slice(1),i={};return _.each(e.groups,function(e){i.cancel||(i=xn[e](t,n),Tn.apply(Cn,[e].concat(i)))}),i.cancel||(i=Rn(t,n),Tn.apply(Cn,[t].concat(i))),i}function An(e){var i=[],r=[],o={},a={},s={state:{},commit:function(t,n){var e=o[t];if(!e)throw new Error("mutation "+t+" not found");e(n),_.each(i,function(e){e({type:t,payload:n},s.state)})},dispatch:function(t,n){var e=a[t];if(e)return e=e(n),_.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:_.partial(t,i),subscribeAction:_.partial(t,r),registerModule:function h(n,e){_.isString(n)&&(n=[n]);var t=u(s.state,e,n);_.extend(s.getters,p(e,t,s,n));_.extend(o,c(e,t,n));_.extend(a,l(e,t,s,n));_.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return _.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):_.noop;var n,i}function d(e,t){return(e=t?e.concat([t]):e).join("/")}function u(e,t,n){var i=e;return _.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),_.extend(i,be(t.state||{}))}function c(e,n,i){var r={};return _.each(e.mutations,function(e,t){r[d(i,t)]=_.partial(e,n)}),r}function l(e,t,i,r){var n={},o={state:t,rootState:i.state,commit:function(e,t,n){n=n&&n.root?e:d(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:d(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=d(t);i&&(i+="/");return _.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return _.each(e.actions,function(e,t){n[d(r,t)]=_.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return _.each(e.getters,function(e,t){a[t]=o[d(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var k=An(),On=(k.subscribe(function(e,t){}),"_PENDO_T_"),Nn=11;const Mn="visitorId",Ln="oldVisitorId",Pn="accountId";var Dn=function(e=""){return e+ft(Nn)};var Fn=function(e){return I(e)&&""!==e&&e!==jn&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===ot.call(e).length)},Un=function(e){return!(!e||"number"==typeof e)&&e.substring(0,On.length)===On},Gn=function(){return!S.get("disablePersistence")},Bn=function(e){e=e||[Mn,Pn,Ln];const t=S.get("identityStorageSuffix")||E.apiKey;_.each(e,function(e){Kt($t(e,t)),T.clear(e,!1,t)})},Hn="VISITOR-UNIQUE-ID",zn=function(e){return Hn===e},jn="::",qn=function(e){return new RegExp(jn).test(e)};function Wn(e){return e.old_visitor_id!==e.visitor_id}var Vn,Jn=function(e,t){var n,i={old_visitor_id:v(),old_account_id:Yn()};Fn(e)?(Fn(n=e)?$n(""+n):x.info("Invalid visitor id "+n),n=t,_.isUndefined(n)?x.info("No account id provided"):Fn(n)?(E.accountId=""+n,Gn()&&Zn(Pn,E.accountId)):(delete E.accountId,delete(t=S.getLocalConfig()).account,S.setLocalConfig(t),k.commit("metadata/clearAccount"),Gn()&&T.clear(Pn),x.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=v({generate:!0}),i.account_id=Yn(),!Wn(t=i)&&t.old_account_id===t.account_id||(Wn(i)&&(n=i.old_visitor_id)&&(Vn=n,Zn(Ln,Vn)),R.identify.trigger(i))):x.info("Invalid visitor id "+e)};function Kn(){return Dn(On)}function $n(e){E.visitorId!==e&&(Gn()&&Zn(Mn,e),E.visitorId=e)}function v(e={}){var t=function(){if(Fn(E.visitorId))return E.visitorId;var e=S.get("forceAnonymous");if(Gn()){var t=Qn(Mn);if(Fn(t)&&(!e||Un(t)))return t}return undefined}();return $n(t=!t&&e.generate?Kn():t),t}function Xn(){return v()||Kn()}var Yn=function(){var e=S.get("forceAnonymous");return Fn(E.accountId)||!Gn()||e||(e=Qn(Pn),E.accountId=e),E.accountId};function Zn(e,t){var n=S.get("identityStorageLifetime")||Zt,i=S.get("identityStorageSuffix")||E.apiKey;T.write(e,t,n,!1,!0,i)}function Qn(e){var t=S.get("identityStorageSuffix"),n=t||E.apiKey,n=T.read(e,!1,n)||T.read(e,!1,E.apiKey);return t&&T.clear(e,!1,E.apiKey),n}function ei(){var e={old_visitor_id:v({generate:!1}),old_account_id:Yn(),wasCleared:!0};Bn(),delete E.visitorId,delete E.accountId,v({generate:!0}),_.extend(e,{visitor_id:v(),account_id:Yn()}),R.identify.trigger(e)}function ti(e){e=e.data[0];return _.get(e,"wasCleared")}n=function(n){return function ni(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 ni="function"==typeof(e=window.URL)&&/native/.test(e)?e:n(document);function ii(e){if((t=e)&&"function"==typeof t.composedPath)try{return e.composedPath()}catch(n){return e.path}var t;return null}function ri(e){return e.shadowRoot}function oi(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function ai(e,t){return oi(e,t)?e.host:e.parentNode}var si={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:ii,getShadowRoot:ri,isElementShadowRoot:oi,getParent:ai,isShadowSelector:di,wrapSizzle(i,u){i.intercept(function(a,t,n,i,r){var e,o;if(di(t))return _.isFunction(document.documentElement.attachShadow)?(o=a,e=(e=t).replace(si.PSEUDO_REGEX,si.PSEUDO_SAFE),e=_.map(o.tokenize(e),ui),_.reduce(e,function(e,t){return e.concat(s(t,n,i,r))},[])):a(t.replace(si.PSEUDO_REGEX,""),n,i,r);{const d=a(t,n,i,r);return 0<u.cache.size&&u.cache.forEach(e=>{n&&n!==document&&!function(e,t,n){let i=t;for(;i;){if(i===e)return 1;i=ai(i,n)}}(n,e)||d.push(...a(t,e,i,r))}),d}function s(e,t,n,i){var r,o;return di(e)?(o=s((r={baseCss:(o=(o=e).split(si.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(si.PSEUDO_ELEMENT)}).baseCss,t),_.reduce(o,function(e,t){return si.getShadowRoot(t)?e.concat(s(r.shadowCss,si.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!si.isElementShadowRoot(t)&&(di(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function di(e){return!!e&&-1<e.indexOf(si.PSEUDO_ELEMENT)}function ui(e){return _.reduce(e,function(e,t){return t.value===si.PSEUDO_SAFE?e+si.PSEUDO_ELEMENT:e+t.value},"")}var ci,h,w,li,pi,hi,fi,gi,mi,vi,yi,bi,A,wi,Si,Ei,Ii,_i,Ci,t={exports:{}},i=t,xi=window,O="sizzle"+ +new Date,Ti=xi.document,Ri=0,ki=0,Ai=hr(),Oi=hr(),Ni=hr(),Mi=hr(),Li=hr(),Pi=function(e,t){return e===t&&(yi=!0),0},Di={}.hasOwnProperty,Fi=[],Ui=Fi.pop,Gi=Fi.push,Bi=Fi.push,Hi=Fi.slice,zi=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},ji="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",e="(?:\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",n="\\["+a+"*("+e+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+e+"))|)"+a+"*\\]",qi=":("+e+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+n+")*)|.*)\\)|)",Wi=new RegExp(a+"+","g"),Vi=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),Ji=new RegExp("^"+a+"*,"+a+"*"),Ki=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),$i=new RegExp(a+"|>"),Xi=new RegExp(qi),Yi=new RegExp("^"+e+"$"),Zi={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+n),PSEUDO:new RegExp("^"+qi),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("^(?:"+ji+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},Qi=/HTML$/i,er=/^(?:input|select|textarea|button)$/i,tr=/^h\d$/i,nr=/^[^{]+\{\s*\[native \w/,ir=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rr=/[+~]/,or=new RegExp("\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\([^\\r\\n\\f])","g"),ar=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))},sr=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,dr=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ur=function(){bi()},cr=Ir(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Bi.apply(Fi=Hi.call(Ti.childNodes),Ti.childNodes),Fi[Ti.childNodes.length].nodeType}catch(_E){Bi={apply:Fi.length?function(e,t){Gi.apply(e,Hi.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function lr(e){return e[0].length?e.map(lr).join(","):Er(e)}function pr(e,t,n){var i=n[e+" "];i=i||lr(function o(e,t){return e[0].length?e.map(function(e){return o(e,t)}):e.filter(t)}(hi(e),function(e){return!("PSEUDO"===(e=e).type&&e.matches.length&&"contains"===e.matches[0].replace(Vi,"$1").toLowerCase())}));try{var r=[];return Bi.apply(r,t.querySelectorAll(i)),n(e,i),r}catch(_E){}}function N(e,t,n,i){var r,o,a,s,d,u,c=t&&t.ownerDocument,l=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==l&&9!==l&&11!==l)return n;if(!i&&(bi(t),t=t||A,Si)){if(11!==l&&(s=ir.exec(e)))if(r=s[1]){if(9===l){if(!(u=t.getElementById(r)))return n;if(u.id===r)return n.push(u),n}else if(c&&(u=c.getElementById(r))&&Ci(t,u)&&u.id===r)return n.push(u),n}else{if(s[2])return Bi.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&h.getElementsByClassName&&t.getElementsByClassName)return Bi.apply(n,t.getElementsByClassName(r)),n}if(h.qsa&&(!Mi[e+" "]||Li[e+" "])&&(!Ei||!Ei.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(u=e,c=t,1===l&&($i.test(e)||Ki.test(e))){for((c=rr.test(e)&&wr(t.parentNode)||t)===t&&h.scope||((a=t.getAttribute("id"))?a=a.replace(sr,dr):t.setAttribute("id",a=O)),o=(d=hi(e)).length;o--;)d[o]=(a?"#"+a:":scope")+" "+Er(d[o]);u=d.join(",")}try{return Bi.apply(n,c.querySelectorAll(u)),n}catch(p){Mi(e,!0)}finally{a===O&&t.removeAttribute("id")}!i&&Mi[e+" "]&&(i=pr(e,c,Li))}}return gi(e.replace(Vi,"$1"),t,n,i)}function hr(){var n=[];function i(e,t){return n.push(e+" ")>w.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function fr(e){return e[O]=!0,e}function gr(e){var t=A.createElement("fieldset");try{return!!e(t)}catch(_E){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function mr(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function vr(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 yr(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&&cr(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function br(a){return fr(function(o){return o=+o,fr(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 wr(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ci in h=N.support={},pi=N.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!Qi.test(t||e&&e.nodeName||"HTML")},bi=N.setDocument=function(e){var e=e?e.ownerDocument||e:Ti;return e!=A&&9===e.nodeType&&e.documentElement&&(wi=(A=e).documentElement,Si=!pi(A),Ti!=A&&(e=A.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",ur,!1):e.attachEvent&&e.attachEvent("onunload",ur)),h.scope=gr(function(e){return wi.appendChild(e).appendChild(A.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),h.attributes=gr(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=gr(function(e){return e.appendChild(A.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=!!A.getElementsByClassName,h.getById=gr(function(e){return wi.appendChild(e).id=O,!A.getElementsByName||!A.getElementsByName(O).length}),h.getById?(w.filter.ID=function(e){var t=e.replace(or,ar);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&Si)return(e=t.getElementById(e))?[e]:[]}):(w.filter.ID=function(e){var t=e.replace(or,ar);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&Si){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=h.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):h.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=h.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&Si?t.getElementsByClassName(e):h.qsa&&Si?t.querySelectorAll("."+e):void 0},Ii=[],Ei=[],(h.qsa=!!A.querySelectorAll)&&(gr(function(e){var t;wi.appendChild(e).innerHTML=$().createHTML("<a id='"+O+"'></a><select id='"+O+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&Ei.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||Ei.push("\\["+a+"*(?:value|"+ji+")"),e.querySelectorAll("[id~="+O+"-]").length||Ei.push("~="),(t=A.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||Ei.push("\\["+a+"*name"+a+"*="+a+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||Ei.push(":checked"),e.querySelectorAll("a#"+O+"+*").length||Ei.push(".#.+[+~]"),e.querySelectorAll("\\\f"),Ei.push("[\\r\\n\\f]")}),gr(function(e){e.innerHTML=$().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=A.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&Ei.push("name"+a+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&Ei.push(":enabled",":disabled"),wi.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&Ei.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),Ei.push(",.*:")})),(h.matchesSelector=nr.test(_i=wi.matches||wi.webkitMatchesSelector||wi.mozMatchesSelector||wi.oMatchesSelector||wi.msMatchesSelector))&&gr(function(e){h.disconnectedMatch=_i.call(e,"*"),_i.call(e,"[s!='']:x"),Ii.push("!=",qi)}),Ei=Ei.length&&new RegExp(Ei.join("|")),Ii=Ii.length&&new RegExp(Ii.join("|")),e=!!wi.compareDocumentPosition,Ci=e||wi.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},Pi=e?function(e,t){var n;return e===t?(yi=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===n?e==A||e.ownerDocument==Ti&&Ci(Ti,e)?-1:t==A||t.ownerDocument==Ti&&Ci(Ti,t)?1:vi?zi(vi,e)-zi(vi,t):0:4&n?-1:1)}:function(e,t){if(e===t)return yi=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==A?-1:t==A?1:r?-1:o?1:vi?zi(vi,e)-zi(vi,t):0;if(r===o)return vr(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?vr(a[i],s[i]):a[i]==Ti?-1:s[i]==Ti?1:0}),A},N.matches=function(e,t){return N(e,null,null,t)},N.matchesSelector=function(e,t){if(bi(e),h.matchesSelector&&Si&&!Mi[t+" "]&&(!Ii||!Ii.test(t))&&(!Ei||!Ei.test(t)))try{var n=_i.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(_E){Mi(t,!0)}return 0<N(t,A,null,[e]).length},N.contains=function(e,t){return(e.ownerDocument||e)!=A&&bi(e),Ci(e,t)},N.attr=function(e,t){(e.ownerDocument||e)!=A&&bi(e);var n=w.attrHandle[t.toLowerCase()],n=n&&Di.call(w.attrHandle,t.toLowerCase())?n(e,t,!Si):undefined;return n!==undefined?n:h.attributes||!Si?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},N.escape=function(e){return(e+"").replace(sr,dr)},N.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},N.uniqueSort=function(e){var t,n=[],i=0,r=0;if(yi=!h.detectDuplicates,vi=!h.sortStable&&e.slice(0),e.sort(Pi),yi){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return vi=null,e},li=N.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=li(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=li(t);return n},(w=N.selectors={cacheLength:50,createPseudo:fr,match:Zi,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(or,ar),e[3]=(e[3]||e[4]||e[5]||"").replace(or,ar),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||N.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&N.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Zi.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Xi.test(n)&&(t=(t=hi(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(or,ar).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Ai[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&Ai(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=N.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e.replace(Wi," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,e,t,g,m){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,d,u=v!=y?"nextSibling":"previousSibling",c=e.parentNode,l=b&&e.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(v){for(;u;){for(a=e;a=a[u];)if(b?a.nodeName.toLowerCase()===l:1===a.nodeType)return!1;d=u="only"===f&&!d&&"nextSibling"}return!0}if(d=[y?c.firstChild:c.lastChild],y&&p){for(h=(s=(i=(r=(o=(a=c)[O]||(a[O]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Ri&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[u]||(h=s=0,d.pop());)if(1===a.nodeType&&++h&&a===e){r[f]=[Ri,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[O]||(a[O]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Ri&&i[1]:h))for(;(a=++s&&a&&a[u]||(h=s=0,d.pop()))&&((b?a.nodeName.toLowerCase()!==l:1!==a.nodeType)||!++h||(p&&((r=(o=a[O]||(a[O]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[Ri,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=w.pseudos[e]||w.setFilters[e.toLowerCase()]||N.error("unsupported pseudo: "+e);return a[O]?a(o):1<a.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?fr(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=zi(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:fr(function(e){var i=[],r=[],s=fi(e.replace(Vi,"$1"));return s[O]?fr(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:fr(function(t){return function(e){return 0<N(t,e).length}}),contains:fr(function(t){return t=t.replace(or,ar),function(e){return-1<(e.textContent||li(e)).indexOf(t)}}),lang:fr(function(n){return Yi.test(n||"")||N.error("unsupported lang: "+n),n=n.replace(or,ar).toLowerCase(),function(e){var t;do{if(t=Si?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=xi.location&&xi.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===wi},focus:function(e){return e===A.activeElement&&(!A.hasFocus||A.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:yr(!1),disabled:yr(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return tr.test(e.nodeName)},input:function(e){return er.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:br(function(){return[0]}),last:br(function(e,t){return[t-1]}),eq:br(function(e,t,n){return[n<0?n+t:n]}),even:br(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:br(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:br(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:br(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[ci]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ci);for(ci in{submit:!0,reset:!0})w.pseudos[ci]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ci);function Sr(){}function Er(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function Ir(a,e,t){var s=e.dir,d=e.next,u=d||s,c=t&&"parentNode"===u,l=ki++;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=[Ri,l];if(n){for(;e=e[s];)if((1===e.nodeType||c)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||c)if(r=(r=e[O]||(e[O]={}))[e.uniqueID]||(r[e.uniqueID]={}),d&&d===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[u])&&i[0]===Ri&&i[1]===l)return o[2]=i[2];if((r[u]=o)[2]=a(e,t,n))return!0}return!1}}function _r(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 Cr(e,t,n,i,r){for(var o,a=[],s=0,d=e.length,u=null!=t;s<d;s++)!(o=e[s])||n&&!n(o,i,r)||(a.push(o),u&&t.push(s));return a}function xr(h,f,g,m,v,e){return m&&!m[O]&&(m=xr(m)),v&&!v[O]&&(v=xr(v,e)),fr(function(e,t,n,i){var r,o,a,s=[],d=[],u=t.length,c=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)N(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),l=!h||!e&&f?c:Cr(c,s,h,n,i),p=g?v||(e?h:u||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=Cr(p,d),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[d[o]]=!(l[d[o]]=a));if(e){if(v||h){if(v){for(r=[],o=p.length;o--;)(a=p[o])&&r.push(l[o]=a);v(null,p=[],r,i)}for(o=p.length;o--;)(a=p[o])&&-1<(r=v?zi(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=Cr(p===t?p.splice(u,p.length):p),v?v(null,t,p,i):Bi.apply(t,p)})}Sr.prototype=w.filters=w.pseudos,w.setFilters=new Sr,hi=N.tokenize=function(e,t){var n,i,r,o,a,s,d,u=Oi[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],d=w.preFilter;a;){for(o in n&&!(i=Ji.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Ki.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Vi," ")}),a=a.slice(n.length)),w.filter)w.filter.hasOwnProperty(o)&&(i=Zi[o].exec(a))&&(!d[o]||(i=d[o](i)))&&(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?N.error(e):Oi(e,s).slice(0)},fi=N.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=Ni[e+" "];if(!a){for(n=(t=t||hi(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=w.relative[e[0].type],a=o||w.relative[" "],s=o?1:0,d=Ir(function(e){return e===i},a,!0),u=Ir(function(e){return-1<zi(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==mi)||((i=t).nodeType?d:u)(e,t,n),i=null,e}];s<r;s++)if(t=w.relative[e[s].type])c=[Ir(_r(c),t)];else{if((t=w.filter[e[s].type].apply(null,e[s].matches))[O]){for(n=++s;n<r&&!w.relative[e[n].type];n++);return xr(1<s&&_r(c),1<s&&Er(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Vi,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&Er(e))}c.push(t)}return _r(c)}(t[n]))[O]?r:o).push(a);(a=Ni(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,d=0,u="0",c=e&&[],l=[],p=mi,h=e||b&&w.find.TAG("*",r),f=Ri+=null==p?1:Math.random()||.1,g=h.length;for(r&&(mi=t==A||t||r);u!==g&&null!=(o=h[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument==A||(bi(o),n=!Si);s=m[a++];)if(s(o,t||A,n)){i.push(o);break}r&&(Ri=f)}y&&((o=!s&&o)&&d--,e)&&c.push(o)}if(d+=u,y&&u!==d){for(a=0;s=v[a++];)s(c,l,t,n);if(e){if(0<d)for(;u--;)c[u]||l[u]||(l[u]=Ui.call(i));l=Cr(l)}Bi.apply(i,l),r&&!e&&0<l.length&&1<d+v.length&&N.uniqueSort(i)}return r&&(Ri=f,mi=p),c},y?fr(i):i))).selector=e}return a},gi=N.select=function(e,t,n,i){var r,o,a,s,d,u="function"==typeof e&&e,c=!i&&hi(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&Si&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(or,ar),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Zi.needsContext.test(e)?0:o.length;r--&&(a=o[r],!w.relative[s=a.type]);)if((d=w.find[s])&&(i=d(a.matches[0].replace(or,ar),rr.test(o[0].type)&&wr(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&Er(o))break;return Bi.apply(n,i),n}}return(u||fi(e,c))(i,t,!Si,n,!t||rr.test(e)&&wr(t.parentNode)||t),n},h.sortStable=O.split("").sort(Pi).join("")===O,h.detectDuplicates=!!yi,bi(),h.sortDetached=gr(function(e){return 1&e.compareDocumentPosition(A.createElement("fieldset"))}),gr(function(e){return e.innerHTML=$().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||mr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&gr(function(e){return e.innerHTML=$().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||mr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),gr(function(e){return null==e.getAttribute("disabled")})||mr(ji,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var Tr=xi.Sizzle;N.noConflict=function(){return xi.Sizzle===N&&(xi.Sizzle=Tr),N},i.exports?i.exports=N:xi.Sizzle=N;Rr=c(t.exports),(kr=_.extend(function(){return kr.Sizzle.apply(this,arguments)},Rr)).reset=function(){kr.Sizzle=Rr,kr.matchesSelector=Rr.matchesSelector,kr.matches=Rr.matches},kr.intercept=function(e,t="Sizzle"){kr[t]=_.wrap(kr[t],e)},kr.reset();var Rr,kr,Ar=kr;function M(e,t){var n,i=this;if(e&&e instanceof M)return e;if(!(i instanceof M))return new M(e,t);if(e)if(e.nodeType)n=[e];else if(r=/^<(\w+)\/?>$/.exec(e))n=[document.createElement(r[1])];else if(/^<[\w\W]+>$/.test(e)){var r=document.createElement("div");r.innerHTML=e,n=_.toArray(r.childNodes)}else if(_.isString(e)){t instanceof M&&(t=0<t.length?t[0]:null);try{n=Ar(e,t)}catch(o){n=[]}}else n=[e];else n=[];return _.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,"undefined"!=typeof Symbol&&Symbol.iterator&&(i[Symbol.iterator]=function*(){for(const e of n)yield e}),i}function Or(){this.ownerKey="_pendo_"+ft(8)}_.extend(Or.prototype,{cache(e){var t;return _.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set(e,t,n){e=this.cache(e);return e[t]=n,e},get(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!_.isEmpty(n)||(e[this.ownerKey]=undefined)}});var Nr=new Or,Mr=1;function Lr(e){return _.isNumber(e.eventPhase)&&e.eventPhase===Mr}function Pr(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?vt("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{Dr(e,t,n,i)}):_.noop}function Dr(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?vt("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var Fr=function(e){var t=si.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},Ur={add(t,e){var n=Nr.get(t),i=(n.handle||(n.handle=function(e){Ur.dispatch(t,e)}),e.id=_.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||Pr(t,e.type,n.handle,e.capture),i.push(e),()=>{M.event.remove(t,e.type,e.handler,e.capture)}},dispatch(r,o){var e,t,a;r&&(e=(Nr.get(r,"captureEvents")||{})[o.type]||[],t=(Nr.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=Nr.get(o)).ignore&&(a.handled=a.handled||{},_.each(t.slice(),function(e){var t=!!e.capture===Lr(o),n=(n=o,_.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(Fr(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!I(e.selector)||0<M(Fr(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){x.error(i)}}}))},remove(e,t,n,i){var r=Nr.get(e);if(r){if(_.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=_.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],Dr(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],Dr(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],Dr(e,t,r.handle));_.isEmpty(r.captureEvents)&&_.isEmpty(r.bubbleEvents)&&(Nr.remove(e,"captureEvents"),Nr.remove(e,"bubbleEvents"),Nr.remove(e,"handle"))}},trigger(e){var t=Nr.get(e);if(!t.pendoStopped)if(e.bubbles){var n=Fr(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=si.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),Lr(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)Ur.dispatch(o[i],e);(e=Ur.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(Ur.dispatch(n,e),(e=Ur.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)Ur.dispatch(o[i],e)}}else Ur.dispatch(Fr(e),e)},clone(e){var t=_.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",Nr.ownerKey]),e=si.getComposedPath(e);return e&&(t.composedPath=_.constant(e)),t},$:{on(e,n,i,r){return _.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){_.each(e,function(e){Ur.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},Gr=_.extend(Hr,{get:function(e,t){return Hr({method:"GET",url:e,headers:t})},post:zr,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",zr(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(_.isArray(t))i=t;else{if(!_.isObject(t))return e||"";i=_.keys(t)}var i=_.map(i,function(e){return _.isArray(t)?xt(e):xt(e)+"="+xt(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=_.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported(){return void 0!==Br()}});function Br(){return window.XMLHttpRequest||ActiveXObject}function Hr(e){var t=m.defer(),n=new(Br())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),_.each(e.headers,function(e,t){n.setRequestHeader(t.toLowerCase(),e)}),n.onreadystatechange=function(){var e;4===n.readyState&&(e=function(e){var t={status:e.status};try{t.data=JSON.parse(e.responseText)}catch(n){t.data=e.responseText}return t}(n),200<=n.status&&n.status<300?t.resolve(e):t.reject(e))},e.withCredentials&&(n.withCredentials=!0),e.data?n.send(e.data):n.send(),t.promise}function zr(e,t,n){return Hr({method:"POST",url:e,data:t,headers:n})}var jr,qr=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},Wr=function(){return S.get("annotateUrl")||Xr()||S.get("sanitizeUrl")||S.get(ro)||S.get("xhrWhitelist")},Vr=function(){return Xr()?{href:$r(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Jr=function(){return new ni(window.location.href)},Kr=function(){var e,t,n,i;return Wr()?(e=Jr(),Xr()&&(e.href=$r(e.href)),qr()?(t=L.electronResourcesPath(),n=L.electronUserDirectory(),i=L.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(L.electronUserHomeDirectory(),"").replace("file:///","")):ao(e.href)):k.getters["location/href"]()},$r=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Xr=function(){return!0===S.get("ignoreHashRouting")},Yr=500;function Zr(){return _.isUndefined(jr)&&function e(){io(),jr=Ut(e,Yr)}(),()=>{clearTimeout(jr),jr=undefined}}var Qr=function(e){var t;try{t=Kr()}catch(n){}return t},eo=[],to=!1,no=null;function io(){var t=Vr().href;no!=t&&(no=t,_.map(eo,function(e){e(t)}))}var ro="queryStringWhitelist";function oo(e){var t=S.get("sanitizeUrl");return _.isFunction(t)?t(e):e}function ao(e){e=e||Vr().href;var t=S.get("annotateUrl");if(t)if(_.isFunction(t))try{var n,i,r,o=t();return o&&(_.isObject(o)||_.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&_.isArray(n)||i&&(_.isArray(i)||_.isObject(i)))&&(n&&(e=uo(e,null,n,!0)),o=i||{}),Gr.urlFor(e,o,r)):e}catch(a){x.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else x.error("customer-provided `annotateUrl` must be of type: function");return e}function so(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function uo(e,t,n,i){e=e||Qr(),t=t||so(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=_.isArray(n)?lo(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var co,lo=function(e,t,n){return n&&_.contains(t,"*")?"":(e=po(e),e=n?_.omit(e,t):_.pick(e,t),ho(e))},po=function(e){e=e.split("&");return _.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&Ct(t[1])),e},{})},ho=function(e){return _.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},L={watch:function(e){const n=[];x.info("Initializing Pendo URL Watcher");var i,t=S.get("location.pushState")&&je.supportsHistoryApi();return to||(t&&(i=window.history,_.each(["pushState","replaceState"],function(e){var t=i[e];i[e]=_.wrap(i[e],function(e){var t=e.apply(i,_.toArray(arguments).slice(1));return Ut(io,0),t}),i[e]._pendoUnwrapped=t,n.push(()=>{i[e]=t})}),n.push(Pr(window,"popstate",io))),je.supportsHashChange()&&n.push(Pr(window,"hashchange",io)),!1!==t&&je.supportsHashChange()||n.push(Zr()),to=!0),eo.push(e),()=>{_.each(n,function(e){e()}),eo.length=0,to=!1}},get:Qr,externalizeURL:function(e,t,n){n=n||S.get(ro);return oo(uo(e,t,n=_.isFunction(n)?n():n,!1))},startPoller:Zr,getWindowLocation:Vr,clear:function(){eo=[]},isElectron:qr,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 fo(){var e=S.getLocalConfig("dataHost");return e||((e=S.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:$e)}function go(){co=fo()}function mo(){var e=S.get("assetHost");return e?-1===e.indexOf("://")?"https://"+e:e:vo()}function vo(){var e=S.get("contentHost")||Xe;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function yo(e){var t=mo(),n=0<=(n=t).indexOf("localhost")||0<=n.indexOf("local.pendo.io")?e.replace(".min.js",".js"):e;return t+"/"+(Ye?Ye+"/":"")+n}function bo(){var e=S.get("allowPartnerAnalyticsForwarding",!1)&&S.get("adoptAnalyticsForwarding",!1);return S.get("trainingPartner",!1)||e}function wo(e,t,n){return n?e.acc=lt(n):t&&"ACCOUNT-UNIQUE-ID"!==t&&(e.acc=lt(t)),e}var So=3,Eo=1,Io=9,_o=11,Co=4;function f(e){var t;if((t=e)&&t.nodeType===Eo)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function xo(e,t){var n;return!(!e||!_.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&_.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),_.any(n,function(e){return e&&"none"!==e}))}function To(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function Ro(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function ko(e){return _.isNumber(e)?e:0}function Ao(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!No(e)?null:e}function Oo(e){return xo(f(e),Fe)&&isNaN(Te)}function No(e){if(e)return(e=f(e))&&(_.contains(["relative","absolute","fixed"],e.position)||xo(e,Fe))}function Mo(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=No(t)?t:Ao(t,n),i=t?Lo(t):{top:0,left:0},e=Lo(e),r=function(e){if(e){var e=f(e),t=function(e){if(/^matrix\(/.test(e))return e.split(/\(|,|\)/).slice(1,-1).map(e=>parseFloat(e))}(e.transform);if(t&&/^0px\s+0px/.test(e.transformOrigin))return function([e,t,n,i,r,o]){var a=e*i-t*n;return 0!=a?[i/a,-t/a,-n/a,e/a,(n*o-i*r)/a,(t*r-e*o)/a]:null}(t)}}(t),r=(r&&(i=Do(r,i),e=Do(r,e)),{top:e.top-i.top,left:e.left-i.left,width:e.width,height:e.height});return t?(t!==n.document.scrollingElement&&(r.top+=ko(t.scrollTop),r.left+=ko(t.scrollLeft)),r.top-=ko(t.clientTop),r.left-=ko(t.clientLeft)):(r.top+=To(n),r.left+=Ro(n)),r.bottom=r.top+r.height,r.right=r.left+r.width,r}function Lo(e){var t;return e?e.getBoundingClientRect?{top:(t=e.getBoundingClientRect()).top,left:t.left,bottom:t.bottom,right:t.right,width:t.width||Math.abs(t.right-t.left),height:t.height||Math.abs(t.bottom-t.top)}:{top:0,left:0,width:e.offsetWidth,height:e.offsetHeight,right:e.offsetWidth,bottom:e.offsetHeight}:{width:0,height:0}}function Po([e,t,n,i,r,o],[a,s]){return[e*a+n*s+r,t*a+i*s+o]}function Do(e,t){var n=Po(e,[t.left,t.top]),e=Po(e,[t.right,t.bottom]),t={top:n[1],left:n[0],bottom:e[1],right:e[0]};return t.width=t.right-t.left,t.height=t.bottom-t.top,t}var Fo=void 0===(e=S.get("pendoCore"))||e,Uo=function(e,t,n){e=co+"/data/"+e+"/"+t,t=_.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function Go(){return _.compact([E.apiKey].concat(E.additionalApiKeys))}var Bo=function(e){e+="v"+Qe;e=Uo("log.gif",E.apiKey,{msg:e,version:Qe});return m.resolve(jo(e))["catch"](_.noop)};function Ho(e){try{var t=co+"/data/errorlog?apiKey="+E.apiKey,n={error:e,version:"v"+Qe,visitorId:v()},i=qo.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):Gr.postJSON(t,n);return i.then(function(){x.info("successfully wrote error")},function(e){x.info("error writing error:"+e)})}catch(r){return x.info("Failed to write error to server using POST endpoint: "+r),Bo("Failed to write error to server using POST endpoint: "+r)}}function zo(e){try{var t=Uo("metrics",E.apiKey,{v:Qe});x.debug(`Sending ${JSON.stringify(e)} to ${t} using `+(qo.supported()?"fetch":"xhr")),qo.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(e),headers:{"Content-Type":"application/json"}}):Gr.postJSON(t,e)}catch(n){x.critical("Failed to write metrics payload to server: "+n)}}function jo(e){var t,n;return $o()?(t=m.defer(),Pr(n=new Image,"load",t.resolve),Pr(n,"error",t.reject),n.src=e,t.promise):m.resolve()}function qo(e,t={}){t=_.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t)}function Wo(e,t){return navigator.sendBeacon(e,t)}qo.supported=function(){try{return _.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var Vo=!(Wo.supported=function(){return _.isFunction(navigator.sendBeacon)}),Jo=function(){var e=$o();return Vo=!0,e&&R["transmit:locked"].trigger(),"Pendo Web SDK locked. No more events will be written."},Ko=function(){var e=!$o();return Vo=!1,e&&R["transmit:unlocked"].trigger(),"Pendo Web SDK unlocked. Events will be written."},$o=function(){return!Vo&&Fo},Xo=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(ea(e))}catch(n){return!1}},Yo=function(e,t){try{var n;Xo(e,t)||(n=ot.call(ea(e))+" "+t,Qo(e,n))}catch(i){}},Zo=function(e,t){try{var n,i;Xo(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=ea(e).replace(n," "),Qo(e,i))}catch(r){}},Qo=function(e,t){_.isString(e.className)?e.className=t:e.setAttribute("class",t)},ea=function(e){try{var t=e["classList"];if(t&&0<t.length){for(var n=[],i=0;i<t.length;i++)n.push(t[i]);return n.join(" ")}var r=e.className;return(_.isString(r)||!I(r)?r:e.getAttribute("class"))||""}catch(o){return""}},ta=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},na={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},ia=function(e,t){t=function(e){if(_.isString(e)){var t=e.split(";");var n;var i;var r;var o;e={};for(r=0;r<t.length;r++){n=t[r];o=n.indexOf(":");i=n.substring(0,o);e[i]=n.substring(o+1)}}return e}(t);ra(e,t)},ra=function(a,e){_.each(e,function(e,t){if(""!==(t=ot.call(t))){var n=ta(t),i=(!_.isNumber(e)||isNaN(e)||na[n]?_.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=ot.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=ot.call(e)}catch(o){x.info("failed to set style: "+t+" with value "+e)}}})},oa=function(e=window){return qe()?{width:e.document.documentElement.offsetWidth||0,height:e.document.documentElement.offsetHeight||0}:{width:e.innerWidth||e.document.documentElement.clientWidth,height:e.innerHeight||e.document.documentElement.clientHeight}},aa=function(e){var t=oa(),n=To(),i=Ro();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function sa(t){return _.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function da(e,t=window){var n;return function(e){var t,n=e;for(;n;){if(!(t=f(n)))return;if("fixed"===t.position)return!isNaN(Te)||!ma(n);n=n.parentNode}return}(e)?((n=Lo(e)).fixed=!0,sa(n)):sa(Mo(e,la(t.document),t))}var ua=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},ca=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return x.info("error interrogating body elements: "+n),Bo("error picking best body:"+n),0}},la=function(e=document){try{var t=Array.prototype.slice.call(e.getElementsByTagName("body"));return t&&1<t.length?(t.sort(ca),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return Bo("Error getting body element: "+n),e.body}};function pa(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 ha(e,t=document){if(Ar.contains(t,e))return!0;for(;e&&e.parentNode||si.isElementShadowRoot(e);)e=si.getParent(e);return e===t}var fa=function(e){var t,n,i;if(null!=e)return t=(n=e.ownerDocument||document).defaultView||window,i=la(n),e===n||e===t?((n={left:t.pageXOffset||i.scrollLeft,top:t.pageYOffset||i.scrollTop,width:t.innerWidth,height:t.innerHeight}).right=n.left+n.width,n.bottom=n.top+n.height,n):((i=da(e,t)).right=i.left+i.width,i.bottom=i.top+i.height,i)},ga=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function ma(e){for(var t=e&&e.parentNode;t;){if(xo(f(t),Fe))return 1;t=t.parentNode}}var va=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(ha(e))for(i=e;i;)if(si.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=f(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=f(r))&&!_.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&ma(i))i=Ao(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function ya(e,t){e=f(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?ba.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?ba.BOTH:t.test(e.overflowY)?ba.Y:t.test(e.overflowX)?ba.X:t.test(e.overflow)?ba.BOTH:ba.NONE}var ba={X:"x",Y:"y",BOTH:"both",NONE:"none"};function wa(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&ha(e)}function Sa(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 Ea(e){if(e){if(_.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function Ia(e,t,n){const i=[];var r=Ea(document.documentElement);let o=Ea(va(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=Ea(va(o)),a++;return()=>{_.each(_.compact(i),function(e){e()}),i.length=0}}const _a=['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 Ca(e,t,n){var i=fa(t),t=ya(t,n);if(t!==ba.BOTH||ga(e,i)){if(t===ba.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===ba.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function xa(e){if(e){if(wa(e))return 1;var t=fa(e);if(0!==t.width&&0!==t.height){var n=f(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=f(i=i.parentNode)}return 1}}}}function Ta(e,t){if(!xa(e))return!1;if(!wa(e)){for(var n=fa(e),i=va(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!Ca(n,i,t))return!1;i=va(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=Ro(),e+=To()),o<=0||e<=0)return!1}}return!0}function Ra(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,d=fa(e),u=va(e,s);if(!xa(e))return!1;for(;u;){if(t=fa(u),(o=ya(u,a))!==ba.NONE&&(i=n=0,o!==ba.Y&&o!==ba.BOTH||(d.bottom>t.bottom&&(n+=d.bottom-t.bottom,d.top-=n,d.bottom-=n),d.top<t.top&&(n-=r=t.top-d.top,d.top+=r,d.bottom+=r)),o!==ba.X&&o!==ba.BOTH||(d.right>t.right&&(i+=d.right-t.right,d.left-=i,d.right-=i),d.left<t.left&&(i-=r=t.left-d.left,d.left+=r,d.right+=r))),!Ca(d,u,s))return!1;u=va(u,s)}return!0}function ka(e,t){var n,e=fa(e),i=fa(t),r=0,o=0,i=(e.bottom>i.bottom&&(r+=e.bottom-i.bottom,e.top-=r,e.bottom-=r),e.top<i.top&&(r-=n=i.top-e.top,e.top+=n,e.bottom+=n),e.right>i.right&&(o+=e.right-i.right,e.left-=o,e.right-=o),e.left<i.left&&(o-=n=i.left-e.left,e.left+=n,e.right+=n),_.isFunction(t.scrollBy)),e=i&&_e(t.scrollBy);i?e?t.scrollBy(o,r):t.scrollTo(t.scrollX+o,t.scrollY+r):(t.scrollTop+=r,t.scrollLeft+=o)}function Aa(e){for(var t=/(auto|scroll)/,n=la(),i=va(e,t);i&&i!==n;)ka(e,i),i=va(i,t)}n={$:{findOrCreate(e){return 0<this.length?this:M(e)},find(e){var t=M();return t.context=this.context,this.each(function(){M(e,this).each(function(){t[t.length++]=this})}),t},each(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text(e){var t="innerText"in document.body;return e===undefined?t?this.length?this[0].innerText:this:this.length?this[0].textContent:this:this.each(function(){ia(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Yo(t,e)})})},removeClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Zo(t,e)})})},hasClass(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){_.each(e,function(e){n=n&&Xo(t,e)})}),n)},toggleClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){(Xo(t,e)?Zo:Yo)(t,e)})})},css(e){return this.each(function(){ia(this,e)}),this},appendTo(e){return M(e).append(this),this},append(e){var t=this;return M(e).each(function(){t.length&&t[0].appendChild(this),ha(this)&&_.each(Ar("script",this),Sa)}),t},prependTo(e){return M(e).prepend(this),this},prepend(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],M(e).each(function(){n?M(this).insertBefore(n):M(this).appendTo(t)})),this},getParent(){var e=M(this)[0];if(e&&e.parentNode)return M(e.parentNode)},insertBefore(e){e=M(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),ha(this[0]))&&_.each(Ar("script",this[0]),Sa)},remove(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr(e,t){return _.isObject(e)?(this.each(function(){_.each(e,function(e,t){this.setAttribute(t,e)},this)}),this):t!==undefined?(this.each(function(){this.setAttribute(e,t)}),this):0<this.length?this[0].getAttribute(e):void 0},closest(e,t){for(var n=this[0];n&&!Ar.matchesSelector(n,e);)if((n=ai(n))===document||t&&Ar.matchesSelector(n,t))return M();return M(n)},eq(e){return M(this[e])},height(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus(){return this.each(function(){_.isFunction(this.focus)&&this.focus()})}}};class Oa{constructor(e=la(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},je.MutationObserver){const n=new(vt("MutationObserver"))((e,t)=>{this.signal()});n.observe(e,t),this._teardown=()=>n.disconnect}else{const i=setInterval(()=>{this.signal()},500);this._teardown=()=>{clearInterval(i)}}}signal(){_.each(this.listeners,e=>{e.get()})}addObservers(...e){this.listeners=[].concat(this.listeners,e)}teardown(){this._teardown()}}Fi=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var Na="function"==typeof(i=window.WeakRef)&&/native/.test(i)?i:Fi();function Ma(e,t){var n,i;return e.tagName&&_.contains(["textarea","input"],e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:Fa(n.substring(0,i))):La(e,t)}function La(e,t=128){var n,i="",r=e.nodeType;if(r===So||r===Co)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===Eo||r===Io||r===_o)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=La(e.childNodes[a],t-i.length))).length)return i+Fa(o.substring(0,t-i.length));i+=o}}return i}function Pa(e){return 55296<=e&&e<=56319}function Da(e){return 56320<=e&&e<=57343}function Fa(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(Pa(t)||Da(t)){if(1===e.length)return e.slice(0,-1);if(Pa(t))return e.slice(0,-1);if(Da(t))if(!Pa(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class Ua{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let t=this.elRef&&this.elRef.deref&&this.elRef.deref();var e=ha(t);if(!t||!e){if(t&&!e&&this.teardown(t),!(t=M(this.cssSelector)[0]))return undefined;_.each(this.events,e=>{t.addEventListener(e,e=>this.onEvent(e))}),this.elRef=new Na(t)}return t}getText(e=1024){return Ma(this.get(),e)}addEventListener(e,t){var n=this.get();this.events.indexOf(e)<0&&(this.events.push(e),n)&&n.addEventListener(e,e=>this.onEvent(e)),this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)}onEvent(t){var e=t.type;_.each(this.listeners[e],e=>e(t))}teardown(t=this.get()){t&&_.each(this.events,e=>t.removeEventListener(e,this.onEvent))}}function Ga(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===fo())return!0;if(t===mo())return!0;if(t===vo())return!0;var e=S.get("adoptHost");if(e&&t==="https://"+e)return!0;return!!re(t,S.get("allowedOriginServers",[]),S.get("allowedOriginServerHashes",[]))||_.any([/^https:\/\/(adopt\.)?((us1)\.)?(app|via|adopt|cdn|oem|novus-api|novus)(\.(au|eu|gov|hsbc|jpn))?\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)(pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-us1)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)(pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-us1)\.appspot\.com$/,/^https:\/\/(pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-us1)-static\.storage\.googleapis\.com$/,/^https:\/\/([a-zA-Z0-9-]+\.)*pendo-dev\.com$/,/^https:\/\/([a-zA-Z0-9-]+-dot-)?(pendo-apollo|pendo-armada|pendo-atlas|pendo-batman|pendo-calypso|pendo-dap|pendo-dev|pendo-dr-us-east1|pendo-eu-dev|pendo-freeze|pendo-helix|pendo-link|pendo-magic|pendo-mango|pendo-mcfly|pendo-ml|pendo-mobile-fbi|pendo-mobile-guides|pendo-mobile-hummus|pendo-mobile-plat|pendo-perfserf|pendo-voc|pendo-wildlings|pendo-ionchef|pendo-scrum-ops|pendo-security|pendo-test|pendo-uat|pendo-au|pendo-eu|pendo-govramp|pendo-hsbc|pendo-io|pendo-jp-prod|pendo-us1)\.appspot\.com$/,/^https:\/\/(via|adopt|local)\.pendo\.(local|io):\d{4}$/,/^https:\/\/(pendo-apollo|pendo-armada|pendo-atlas|pendo-batman|pendo-calypso|pendo-dap|pendo-dev|pendo-dr-us-east1|pendo-eu-dev|pendo-freeze|pendo-helix|pendo-link|pendo-magic|pendo-mango|pendo-mcfly|pendo-ml|pendo-mobile-fbi|pendo-mobile-guides|pendo-mobile-hummus|pendo-mobile-plat|pendo-perfserf|pendo-voc|pendo-wildlings|pendo-ionchef|pendo-scrum-ops|pendo-security|pendo-test|pendo-uat)-static\.storage\.googleapis\.com$/],function(e){return e.test(t)})}function Ba(e){if(_.isString(e)){try{var t=new ni(e);const o=_.last(t.pathname.split("/")),a=o.split(".");var n,i={filename:_.first(a),extension:a.slice(1).join("."),query:{}};return t.search.length&&(i.query=po(t.search.substring(1))),t.hash.length&&0<=(r=t.hash.indexOf("?"))&&(n=t.hash.substring(r+1),i.fragmentQuery=po(n)),i}catch(s){}var r=so(e).substring(1),t=r&&r.length?po(r):{},o=_.last(_.first(e.split(/[?#]/)).split("/")),a=o.split(".");return{filename:_.first(a),extension:a.slice(1).join("."),query:t}}}function Ha(e,t){var n;S.get("guideValidation")&&je.sri&&(n=Ba(t),t=_.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],_.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}_.extend(M,{data:Nr,event:Ur,removeNode:ua,getClass:ea,hasClass:Xo,addClass:function(e,t){var n;"string"==typeof e?(n=M(e),_.map(n,function(e){Yo(e,t)})):Yo(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=M(e),_.map(n,function(e){Zo(e,t)})):Zo(e,t)},getBody:la,getComputedStyle:f,getClientRect:fa,intersectRect:ga,getScrollParent:va,isElementVisible:Ta,Observer:Oa,Element:Ua,scrollIntoView:Aa,getRootNode:Ea}),_.extend(M.prototype,Ur.$,n.$);var za,ja=function(e){var t=!((t=S.get("allowedOriginServers",[]))&&0<t.length||(t=S.get("allowedOriginServerHashes",[]))&&0<t.length),n=bo();return!(!t&&!n)||Ga(e)},qa=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(_.isString(e)&&(e={url:e}),!ja((c=e.url,new ni(c,window.location.href).origin)))throw new Error;e.type=e.type||/\.css/.test(e.url)?r:o;var a=null,s=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0],d=S.get("guideContentLoader");if(e.type===r){var u=document.createElement("link");u.type=r,u.rel="stylesheet",u.href=e.url,Ha(u,e.url),a=u}else{if(mt())return(i=document.createElement("script")).addEventListener("load",function(){t(),ua(i)}),i.type=o,i.src=$(E).createScriptURL(e.url),Ha(i,e.url),document.body.appendChild(i),i;if(_.isFunction(d))return d(e),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=$(E).createScriptURL(e.url),Ha(i,e.url),a=i,t=_.wrap(t,function(e,t){if(M.removeNode(i),t)return n&&e(t),{};e.apply(this,_.toArray(arguments).slice(1))})}return s.appendChild(a),Wa(a,e.url,t),a}catch(l){return{}}var c},Wa=function(e,t,n){var i=!1;I(n)&&(e.onload=function(){!0!==i&&(i=!0,n(null,t))},e.onerror=function(){!0!==i&&(i=!0,n(new Error("Failed to load script"),t))},e.onreadystatechange=function(){i||e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(i=!0,n(null,t))},"link"===e.tagName.toLowerCase())&&(Ut(function(){var e;i||((e=new Image).onload=e.onerror=function(){!0!==i&&(i=!0,n(null,t))},e.src=t)},500),Ut(function(){i||x.critical("Failed to load "+t+" within 10 seconds")},1e4))},Va=function(e){var t=JSON.parse(e.data),n=e.origin;x.debug(E.app_name+": Message: "+JSON.stringify(t)+" from "+n),ss(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},Ja=function(e){$a(Qa)(Ka(e))},Ka=function(e){if(e.data)try{var t="string"==typeof e.data?JSON.parse(e.data):e.data,n=e.origin,i=e.source;if(!t.action&&!t.mutation&&(t.type&&"string"==typeof t.type))return{data:t,origin:n,source:i}}catch(r){}};function $a(t){return function(e){if(e&&Ga(e.origin))return t.apply(this,arguments)}}var Xa={disconnect(e){},module:function(e){as(e.moduleURL)},debug:function(e){cs(Va)}},Ya=function(e,t){Xa[e]=t},Za=function(e){delete Xa[e]},Qa=function(e){var t;e&&(t=e.data)&&I(Xa[t.type])&&Xa[t.type](t,e)},es={},ts=function(e){if(es[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},ns=function(e){return I(es[e])},is=function(e){if(es)for(var t in es)if(0<=t.indexOf(e))return t;return null},rs=[],os=function(){var e;rs.length<1||(e=rs.shift(),ns(e))||qa(e,function(){ts(e),os()})};var as=function(e){!function(e){var t={"/js/lib/ckeditor/ckeditor.js":1};_.each(["depres.js","tether.js","sortable.js","selection.js","selection.css","html2canvas.js","ckeditor/ckeditor.js"],function(e){t["/modules/pendo.designer/plugins/"+e]=1,t["/engage-app-ui/assets/classic-designer/plugins/"+e]=1});try{var n=new ni(e);return Ga(n.origin)&&t[n.pathname]}catch(i){x.debug("Invalid module URL: "+e)}}(e)||(rs.push(e),1<rs.length)||os()},ss=function(e,t,n){var i,r=_.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=za||us(),n="*"),t.guid=r,e&&_.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";x.info("Failed to postMessage: "+t)}return r},ds=function(){return window!=window.top},us=function(){return new RegExp("^"+At(co).replace(/^https?:/,"https?:")).test(location.href)?window.parent:window.top},cs=function(e){var t;return I(window.addEventListener)&&_.isFunction(window.addEventListener)&&(t=$a(e),window.addEventListener("message",t,!1)),function(){I(window.removeEventListener)&&_.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},ls=_.memoize(function(){return S.get("restrictP1Access")}),ps=[],hs=[],fs=[],gs=12e4,ms=16,vs=1900,ys=65536,bs=function(e){return!(!e||""===e)},ws=function(){return L.get()},Ss={flush:_.noop,flushBy:_.noop,flushEvents:Cs,flushTrackEvents:Cs,flushAgenticEvents:Cs,flushSilos:Cs,flushTrackEventSilos:Cs,flushAgenticEventSilos:Cs,flushBeacons:Cs,flushNow:Cs,flushLater:xs,flushEvery:Ts,flushStop:Rs,beacons:[],silos:[],trackEventSilos:[],agenticEventSilos:[],lock:Jo,unlock:function(){if(!$o())return ks(),Ko()}},Es=[];function Is(e){Es.push(e)}function _s(e){e=Es.indexOf(e);0<=e&&Es.splice(e,1)}function Cs(t){try{_.each(Es,function(e){e.flush&&e.flush(t)})}catch(e){x.critical("unhandled error while flushing event cache",{error:e})}}function xs(e){return t=Cs,n=e,n=parseInt(n,10)||0,t[n]||(i=Ut(function(){t(),t[n]()},n),t[n]=function(){window.clearTimeout(i),delete t[n]});var t,n,i}function Ts(e){var t;if(e=parseInt(e,10)||0,_.isObject(Ts.intervals)||(Ts.intervals={}),!Ts.intervals[e])return t=window.setInterval(Cs,e),Ts.intervals[e]=function(){clearInterval(t),delete Ts.intervals[e]}}function Rs(){var e=_.values(Ts.intervals).concat([Cs]);_.map(e,function(e){_.isFunction(e)&&e()})}function ks(){_.each(Es,function(e){e.clear&&e.clear()}),Rs()}function As(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 Os(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(x.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(x.debug(t+"The signingKeyName is supplied but missing jwt."),!1):(e=e.jwt,!(!_.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(x.debug(t+"The jwt is invalid."),!1)):(x.debug(t+"Missing jwt and signingKeyName."),!1)}Ns=null;var Ns,Ms={set:function(e){Ns=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==Ns?Ns:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!S.get("enableSignedMetadata")&&(n=Os(e,t),S.get("requireSignedMetadata")&&!n?(x.debug("Pendo will not "+t+"."),!1):n?As(e.jwt):void x.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class Ls{constructor(e){this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.firstFailureTime=null,this.sendFn=e}isEmpty(){return this.queue.length<=0}stop(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.firstFailureTime=null,this.stopped=!0,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),null==this.firstFailureTime&&(this.firstFailureTime=(new Date).getTime()),t}pass(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e),this.failures["delete"](e),this.firstFailureTime=null;e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()}fail(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e);e=this.incrementFailure(e);!this.stopped&&t&&(72e5<=(t=(new Date).getTime())-(this.firstFailureTime||t)?(this.onTimeout&&this.onTimeout(),this.firstFailureTime=null,this.retryLater(36e5)):this.retryLater(Math.min(1e3*Math.pow(2,e-1),3e5)))}retryNow(){clearTimeout(this.timer),delete this.timer,this.next()}retryLater(e){this.timer=Ut(()=>{this.retryNow()},e)}failed(){return 0<this.failures.get(this.queue[0])&&null!=this.timer}send(e,t,n){return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(()=>this.pass(e,n),()=>this.fail(e,n))}drain(e,t=!0){if(this.queue.push(...e),this.failed()&&!this.allowDrainWhileFailed)return sn.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 sn.all(n)}}const Ps="unsentEvents",Ds=6048e5;function Fs(e){var n,t,i=Xt(Ps);if(i){try{n=e,t=JSON.parse(i),_.each(t,(e,t)=>{n[t]=(n[t]||[]).concat(e)})}catch(r){}Kt($t(Ps))}}class Us{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(Ps,{localStorageOnly:!0,duration:Ds});try{this.events=JSON.parse(e.read(Ps)||"{}")}catch(t){this.events={}}Fs(this.events),e.clear(Ps)}write(e){0<_.size(this.events)?e.write(Ps,JSON.stringify(this.events),Ds):e.clear(Ps)}}var Gs=new Us;const Bs=e=>_.reduce(e,(e,t)=>e+_.get(t,"detail.increment",1),0),Hs="pendo-guide-loop-timeout",zs={ptm:"pendo-ptm-gif-failure",guide:"pendo-guide-gif-failure",poll:"pendo-poll-gif-failure",agentic:"pendo-agentic-gif-failure"},js={name:"pendo-guide-loop",debuggingOnly:!0},qs={name:"pendo-event-captured",debuggingOnly:!0},Ws="pendo-initialize",Vs="pendo-teardown",Js={};Js[Hs]={name:Hs,type:"counter",instrument:Bs},_.each(zs,e=>{Js[e]={name:e,type:"counter",instrument:Bs}}),Js[js.name]=js,Js[qs.name]=qs,Js[Ws]={name:Ws},Js[Vs]={name:Vs};var Ks="debug-enabled";function $s(){try{var e=T.read(Ks)||JSON.parse(Vt(Ks));return"boolean"==typeof e?{enabled:e}:e||{}}catch(t){return{}}}function Xs(e=!0){let t;return t=k&&k.getters&&k.getters["debugger/debuggingEnabled"]?k.getters["debugger/debuggingEnabled"]():!0===$s().enabled,e?t:t?"Yes":"No"}class Ys{constructor(){this._isPerformanceApiAvailable=this._checkPerformanceApi(),this._sending=!1,this._measuringPerformance=!1,this._debugging=!1,this._setDebuggingBound=_.bind(this._setDebugging,this),this.marks=new Set,this.measures=new Set}initialize(){if(!S.get("performanceMetricsEnabled"))return _.noop;this._measuringPerformance=!0,this._markPerformance(Ws),this._setDebugging(),R.debuggerLaunched.on(this._setDebuggingBound);var e=100*Math.random()<S.get("performanceMetricsSampleRate");return this._setSending(e),this.interval=setInterval(()=>{this.send()},6e5),()=>{this.teardown()}}teardown(){this._markPerformance(Vs),this.send(),this._measuringPerformance=!1,this._setDebugging(),R.debuggerLaunched.off(this._setDebuggingBound),this._clearMarksAndMeasures(),clearInterval(this.interval)}startTimer({name:e,debuggingOnly:t},n=null){t&&!this._debugging||this._markPerformance(e+"-start",{detail:n})}stopTimer({name:e,debuggingOnly:t},n=null){t&&!this._debugging||(this._markPerformance(e+"-stop",{detail:n}),this._measurePerformance(e,{detail:n}))}count(e,t=1){this._markPerformance(e,{detail:1<t?{type:"counter",increment:t}:null})}send(){var e=_.reduce(Js,(e,t)=>{var{name:t,type:n,instrument:i}=t;return i&&0<(i=i(performance.getEntriesByName(t)))&&e.push({name:t,type:n,value:i,timestamp:Date.now()}),e},[]);this._clearMarksAndMeasures(),_.size(e)&&this._sending&&zo(e)}_checkPerformanceApi(){return Ce("performance.mark")&&Ce("performance.measure")&&Ce("performance.getEntries")&&Ce("performance.getEntriesByName")&&Ce("performance.clearMarks")&&Ce("performance.clearMeasures")}_shouldMeasurePerformance(){return this._isPerformanceApiAvailable&&this._measuringPerformance}_setDebugging(){this._debugging=Xs()}_setSending(e){this._sending=e}_markPerformance(e,t){this._shouldMeasurePerformance()&&(performance.mark(e,t),this.marks.add(e))}_measurePerformance(e,t){var n,i;this._shouldMeasurePerformance()&&(n=e+"-start",i=e+"-stop",performance.getEntriesByName(n).length)&&performance.getEntriesByName(i).length&&(performance.measure(e,n,i,t),this.measures.add(e))}_clearMarksAndMeasures(){this.marks.forEach(e=>{performance.clearMarks(e)}),this.marks.clear(),this.measures.forEach(e=>{performance.clearMeasures(e)}),this.measures.clear()}}const Zs=new Ys;var Qs="_PENDO_UNNAMED_";function ed(e,t,n,i,r,o){var a,s;a=S.get("dropAnonymous"),s=Un(v()),!Fo||a&&s||(a=t,s=n,t=i,n=r,s={type:r=e,browser_time:C(),visitor_id:v({generate:!0}),account_id:Yn(),url:L.externalizeURL(s),props:a||{},eventProperties:n},s=yn.addTracerIds(s),"track"===r&&(s.track_event_name=t||Qs),a=s,R.eventCaptured.trigger(a,o).cancel)||bs(a.url)&&("track"===e?fd:"agentic"===i?gd:hd).push(a)}function td(){var r=_.toArray(arguments);return function(e,t){var n=r.concat([t]);!function i(t,e){t<n.length&&n[t](e,function(e){i(t+1,e)})}(0,e)}}let nd=0;function id(e,t){e.sequence=nd++,t(e)}function rd(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 od(e,t){return bo()?ad("account_id")(e,t):t(e)}function ad(s){return function(e,t){if(!e.length)return t(e);for(var n=_.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==_.get(e[r],s)){i=!1;break}if(i)return t(e);var o=e.slice(0,r),a=e.slice(r);t(o),t(a)}}function sd(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function dd(e,t,n){t=n[t-1]||_.last(n);return Math.ceil(e/t)}function ud(e,t){for(var n,i=0,r=(_.isFunction(t.overhead)?t.overhead:_.constant(0))(),o=0;o<e.length;++o){if(dd(n=sd(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(dd(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(dd(i+(n=sd(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function cd(){var e=Ms.get();return _.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var ld,pd,hd,fd,gd,md;function vd(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=E.squeezeAndCompress(e.slice()),e.JZB.length<=ys)||1===e.length?t(e):(n=e.length/2,vd(e.slice(0,n),t),void vd(e.slice(n),t))}function yd(e,t){$o()&&t(e)}function bd(e,t){!_.isNumber(e.browser_time)||isNaN(e.browser_time)?x.critical(new Error("Event missing browser_time")):t(e)}function wd(e,t){R.eventCaptured.trigger(e).cancel||t(e)}function Sd(){return function(e,t){1===e.length&&e.JZB.length>ys?(x.debug("Couldn't write event"),Bo("Single item is: "+e.JZB.length+". Dropping."),Ho(e.JZB)):t(e)}}function Ed(e,t){return Uo(t.beacon+".gif",e,_.extend({v:Qe,ct:C(),jzb:t.JZB},t.params,t.auth))}function Id(e,t){return Uo(t.beacon+".gif",e,_.extend({v:Qe,ct:C(),s:t.JZB.length},t.params))}function _d(i){return function(e,t){e.params=_.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length,e.ts=e[0].browser_time||C();var n=Ms.get();_.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function Cd(e,t){var n,i;bo()&&(i=_.first(e),n=_.get(i,"account_id"),i=_.get(i,"oem_account_id"),wo(e.params||(e.params={}),n,i)),t(e)}function xd(e,t){var n=_.first(e),n=_.get(n,"props.source");n&&(e.params=_.extend({},e.params,{source:n})),t(e)}function Td(e){return JSON.stringify(_.extend({events:e.JZB},e.auth))}function Rd(e){return e.status<200||300<=e.status?m.reject(new Error(`received status code ${e.status}: `+e.statusText)):m.resolve()}function kd(e,t){return qo(Ed(e,t)).then(Rd)}function Ad(e,t){return fetch(Id(e,t),{method:"POST",keepalive:!0,body:Td(t),headers:{"Content-Type":"application/json"}}).then(Rd)}function Od(e,t){var n=Td(t);return Wo(Id(e,t),n)?m.resolve():m.reject()}function Nd(n){return function(e,t){return t.JZB?t.eventLength<=vs&&!S.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&qo.supported()?kd(e,t):t.auth?Gr({method:"GET",url:Ed(e,t)}):jo(Ed(e,t)):n.allowPost&&t.eventLength<=ys?qo.supported()?Ad(e,t):Wo.supported()?Od(e,t):Gr({method:"POST",url:Id(e,e=t),data:Td(e),headers:{"Content-Type":"application/json"}}):m.resolve():m.resolve()}}function Md(n){return function(e,t){if(t.JZB){if(t.eventLength<=vs&&!S.get("sendEventsWithPostOnly",!1)){if(!t.auth&&qo.supported())return kd(e,t);if(je.msie<=11)return Gr({method:"GET",url:Ed(e,t),sync:!0})}if(t.eventLength<=ys&&n.allowPost){if(qo.supported())return Ad(e,t);if(Wo.supported())return Od(e,t);if(je.msie<=11)return Gr({method:"POST",url:Id(e,e=t),data:Td(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return m.resolve()}}function Ld(e,t){e.length=0;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);t(i)}function Pd(e){return td(yd,od,vd,(t=e.shorten,t=_.defaults(t||{},{fields:[],siloMaxLength:ys}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],x.debug("Max length exceeded for an event"),_.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(x.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),vd,Sd(),_d(e),Cd,xd,Ld);var t}class Dd{constructor(e){this.queues=e}isEmpty(){return _.all(this.queues,e=>e.isEmpty())}stop(){_.each(this.queues,e=>e.stop())}push(){const t=_.toArray(arguments);_.each(this.queues,e=>e.push.apply(e,t))}drain(){const t=_.toArray(arguments);return m.all(_.map(this.queues,e=>e.drain.apply(e,t)))}}function Fd(a,s,d){s=s||Nd(a),d=d||Md(a);e=a;var e=_.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=_.map(e,(i,r)=>{const o=new Ls(function(e,t,n){return C()-e.ts>Ds?m.resolve():(n&&(e.params=_.extend({},e.params,{rt:n})),a.localStorageUnload&&t?(0===r&&Gs.push(a.beacon,e),m.resolve()):t&&o.failed()?m.reject():(t?d:s)(i,e))});return o.onTimeout=function(){Zs.count(zs[a.beacon])},o.allowDrainWhileFailed=!0,o.retryPending=!0,o}),e=new Dd(e);return Gs.send(a.beacon,e),e}function Ud(e,t){var n=S.get("analytics.excludeEvents");0<=_.indexOf(n,e.type)||t(e)}class Gd{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=Fd(e)}pause(e=1e4){var t=_.uniqueId();const n=this["locks"];n[t]=1;var i=()=>{n[t]&&(R.trigger("ptm:unpaused"),clearTimeout(r),delete n[t],this.flush())},r=Ut(i,e);return R.trigger("ptm:paused"),i}push(e){this.packageSilos(e,e=>{this.silos.push(e)})}clear(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()}flush({unload:e=!1,hidden:t=!1}={}){var{cache:n,silos:i}=this;if((0!==n.length||0!==i.length||!this.sendQueue.isEmpty())&&_.isEmpty(this.locks)){i.push(n.slice()),n.length=0;n=i.slice();i.length=0;const r=[];_.each(n,function(e){this.processSilos(e,function(e){r.push(e)})},this),e||t?this.sendQueue.drain(r,e):this.sendQueue.push(...r)}}}function Bd(e){var i,r,t=Pd(e),n=td(bd,(r=e.beacon,function(e,t){var n=S.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),Ud,id,rd(e.cache),(i={overhead:cd,lower:S.get("sendEventsWithPostOnly")?ys:vs,upper:ys,compressionRatio:[2.5,3.75,5]},function(e,t){for(var n=ud(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=ud(e,i)}));return new Gd(_.extend({processSilos:t,packageSilos:n},e))}var Hd=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||x.critical(e)}}},zd=Hd(function(e){var t,n,i;if((e=e||L.get())&&e!==zd.lastUrl)return zd.lastUrl=e,t=-1,ls()||ds()&&(i=us(),ss(i,{type:"load",url:location.toString()},"*")),x.debug("sending load event for url "+e),t={load_time:t="undefined"!=typeof performance&&_.isFunction(performance.getEntriesByType)&&!_.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},ds()&&(t.is_frame=!0),"*"!==(n=Ot())&&(t.allowed_storage_keys=_.keys(n)),ed("load",t,e),xs(),R.urlChanged.trigger(),!0});function jd(){return E.normalizedUrl||function(e){try{var t=new ni(e),n=_.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return x.error("Invalid URL provided to normalize"),e}}(L.externalizeURL())}function qd(t,e,n={}){if(!I(t))return!0;var i=e||jd(),{logger:r,context:o,id:a}=n;if(Array.isArray(t)){if(0===t.length)return!0;for(let e=0;e<t.length;e++){var s=t[e];if(I(s))try{if(new RegExp(s).test(i))return!0}catch(d){r&&o&&a&&r.error(`Invalid page rule regex for ${o} (rule ${e}):`,a,d)}}}else if("string"==typeof t)try{return new RegExp(t).test(i)}catch(d){r&&o&&a&&r.error(`Invalid page rule regex for ${o}:`,a,d)}return!1}function Wd(e,t){return qd(e,t,{logger:x,context:"guide",id:"unknown"})}zd.reset=function(){zd.lastUrl=null};var Vd=[],Jd=[],Kd={};const $d={ALL:"*",DEFAULT:"default"};function g(e){e=function(e={}){let t=e.channel;return e.hasOwnProperty("channel")?null==t&&(t=$d.DEFAULT):t=$d.ALL,t===$d.ALL?()=>!0:t===$d.DEFAULT?e=>null==e.channel:e=>e.channel==t}(e);return _.filter(Vd,e)}function Xd(e){return Yd(g(e))}function Yd(e){return _.filter(e,function(e){return!e.isFrameProxy})}function Zd(e){_.isArray(e)?(Vd=e,R.guideListChanged.trigger({guideIds:_.pluck(e,"id")})):x.info("bad guide array input to `setActiveGuides`")}function Qd(e={}){return _.any(g(e),function(e){return e.isShown()})}var eu=function(){let n=[];return{addGuide:e=>{var t;_.isEmpty(e)||(n=n.concat(e),_.each(n,e=>e.hide&&e.hide()),e=g(),(t=_.difference(e,n)).length<e.length&&(Zd(t),k.dispatch("frames/changeGuideList",t)))}}}();function tu(t,n){return _.find(g(),function(e){return _.get(e,t)===n})||null}function y(e){return tu("id",e)}function nu(e){return tu("name",e)}function iu(e,t){return e&&e.id?(e=y(e.id)).findStepById(t):null}var ru="_pendo-guide-tt_",ou="_pendo-guide-mobile-tt_",au=_.partial(_.get,_,"attributes.resourceCenter"),su=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},du=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},uu=function(e){return!!_.get(e,"attributes.form")};function cu(){return"undefined"!=typeof selmo&&!!selmo.isPreviewing}function lu(){return!!(cu()&&oa().width<=320)||je.isMobileUserAgent()}function pu(e=document){var t=pu.attachPoint;if(null==t){var n=S.get("guides.attachPoint");if(_.isString(n)){try{t=Ar(n)[0]}catch(i){x.info('Error finding guide attach point "'+n+'"')}t=t||document.createElement("div")}else t=!!_.isFunction(n)&&n();pu.attachPoint=t}return t||la(e)}var hu=function(e){var t=e.getGuide();if(t){t.placeBadge();t=Kd[e.guideId];if(t){t=t.element();if(ha(t)&&t.id==="_pendo-badge_"+e.id)return t}}},fu=function(e,t){var n;return e?(n=e.getGuide(),n="building-block"===_.get(n,"attributes.type")||!du(n),!e.overrideElement&&n&&(e.overrideElement=hu(e)),e.targetElement=gu(e,t),e.overrideElement||e.targetElement):(x.info("Can't get element for null step"),null)},gu=function(e,t){e=e.elementPathRule||null,e=e?Ar(e,t):[la(t)];return 0===e.length?null:_.first(e)};function mu(e){var t=_.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function vu(e,t,n){var i,r,o,e=da(e),t=da(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!==aa(a)||t.fixed||(o=function(e,t,n,i){var r={x:e.left+e.width-t.width,y:0};r.y="top"===n?e.top:e.top+e.height-t.height;r.y=Math.max(r.y,0),r.x=Math.max(r.x,0),_.contains([ba.X,ba.BOTH],i)&&(r.x=0);_.contains([ba.Y,ba.BOTH],i)&&(r.y=0);return r}(a,oa(),n,ya(la(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function yu(e,t,n,i,r){var o,a=_.toArray(arguments).slice(1),s=e.apply(this,a);return n||Ea(o=pu())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function bu(){return k.getters["frames/isLeader"]()}function wu(e){return k.dispatch("frames/updateFrameVisibility",{visibility:e})}const Su={validateGuide:1,validateLauncher:1,validateGlobalScript:1},Eu={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1,onEventCaptured:1,segmentFlagsUpdated:1,segmentFlagsReady:1,segmentFlagsError:1},Iu={ready:1,segmentFlagsUpdated:1,segmentFlagsReady:1,segmentFlagsError:1},_u=["ready","onClickCaptured","onEventCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","segmentFlagsUpdated","segmentFlagsReady","segmentFlagsError","validateGuide","validateLauncher","validateGlobalScript"];function Cu(i){const e=_.reduce(_u,function(e,r){if(Eu[r]){const t=function(e){return Tu[r].apply(Tu[r],e.data)};i[r].on(t),e.push(()=>i[r].off(t))}if(Iu[r]){const n=function(t){{var n=r;t=t.data[0];let e;try{e=new CustomEvent("pendo_"+n,{detail:t})}catch(i){if(!document.createEvent)return;(e=document.createEvent("Event")).initEvent("pendo_"+n,!0,!0),e.detail=t}document.dispatchEvent(e)}};i[r].on(n),e.push(()=>i[r].off(n))}return e},[]);return()=>_.each(e,e=>e())}xu=In.call({}),_.each(_u,function(n){xu[n]=function(e){var t;return _.isFunction(e)?xu.on(n,e):(t=Su[n]?"triggerAsync":"trigger",xu[t].apply(xu,[n].concat(_.toArray(arguments))))}});var xu,Tu=xu;var Ru={post:function(e,t,n,i){return n.ajax.postJSON(e.replace(/\/guides\.js\//,"/guides.json/"),t).then(function(e){n.guidesPayload(e.data),i()})},load(e,t,n){return t.ajax.get(e).then(function(e){t.guidesPayload(e.data),n()})},endpoint(){return"guide.json"},usesXhr(){return!0}};function ku(e){e=Ba(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}Ou=Pu={failed:{},verified:{}},Mu=Ho,Lu=function(e){try{var t=[];return!Ru.usesXhr()&&e.domJsonpUrl?t.push(Uu(e,"domJsonpUrl")):Ru.usesXhr()&&e.domUrl&&t.push(Fu(e,"domUrl")),e.contentUrlJs?t.push(Uu(e,"contentUrlJs")):e.contentUrl&&t.push(Uu(e,"contentUrl")),m.all(t)}catch(n){throw R.contentVerificationFail.trigger(e,n),n}},Nu=function(e){return Lu(e).then(_.noop,function(e){return/verify/.test(e)&&Mu(e),m.reject(e)})},Au=function(t){return Ou.failed[t.id]?m.reject():Ou.verified[t.id]?m.resolve():Nu(t).then(function(){Ou.verified[t.id]=!0},function(e){return Ou.failed[t.id]=!0,m.reject(e)})};var Au,Ou,Nu,Mu,Lu,Pu,Du={verify:function(e){return S.get("guideValidation")?Au(e):m.resolve()},reset:function(){Pu.failed={},Pu.verified={}}};function Fu(e,t){var n,i=e[t];return _.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||ku(e[t]),Gr.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=V.create()).update(e),u.uint8ToBase64(t.digest())!==n)return m.reject('Unable to verify content at "'+i+'"')})):m.reject('unable to parse "'+i+'"')}function Uu(e,t){var n=e[t];return je.sri&&/[?&]sha(256|384|512)=/.test(n)?m.resolve():Fu(e,t)}Gu="allow",Bu="deny",Hu="pending",ju=function(){return 0<_.size(Tu._handlers.validateGuide)},qu=function(e,n){var i=[];return _.each(e,function(e,t){n&&(t=n+"."+t),_.isObject(e)?_.each(qu(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var Gu,Bu,Hu,zu,ju,qu,Wu={state:zu={},Step:function(e){var n=this;function i(e){return _.filter([["content",ku(e.contentUrl)],["contentCss",ku(e.contentUrlCss)],["contentJs",ku(e.contentUrlJs)],["dom",ku(e.domUrl)],["domJsonp",ku(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=qu(t)).length&&(t=_.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return _.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<_.size(Tu._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-"+pt(n.signature()),(t=zu[t])!==Bu)&&(t!==Gu?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+pt(t),Tu.validateLauncher(t).then(function(){zu[e]=Gu},function(){zu[e]=Bu}).then(function(){i=!1,n.render(),n.update(g())},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=qu(this.data);return t.length&&(t=_.chain(t).filter(function(e){return!/^contentUrl/.test(e[0])}).sortBy(function(e){return e[0]}).value(),e.push(["variables",t])),e},n},validate:function(e){if(!ju())return m.resolve();try{return _.isArray(e)?m.all(_.map(e,Vu)):Vu(e)}catch(t){throw R.contentValidationFail.trigger(e,t),t}},valid:function(e){return!ju()||!!(e=zu[e.guideId])&&e.status===Gu},invalid:function(e){return!!ju()&&!!(e=zu[e.guideId])&&e.status===Bu},reset(){zu={}}};function Vu(i){var r=zu[i.id];return r||(r={},zu[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+pt(e),n=(r[t]||(r[t]={status:Hu},r.status=Hu),r[t].promise);return n||(n=Tu.validateGuide(e,i).then(function(){r[t].status=Gu,r.status=Gu},function(e){return r[t].status=Bu,r.status=Bu,m.reject(e)}),r[t].promise=n),n})}function Ju(e,t){var n=_.toArray(arguments).slice(2);return _.reduce(e,function(e,t){return t.apply(e,n)},t)}function Ku(e){return _.isFunction(e.before)?e:(e=It(e),Ju(Ku.behaviors,e))}function $u(e,t){return e=It(e),t=It(t),Ju($u.behaviors,e,t)}function Xu(e){var t,n,i=S.getLocalConfig("contentHost");return i&&e?(t=new RegExp(`(https:)?\\/\\/${Ke}-\\d+\\.storage\\.googleapis\\.com`,"g"),n=new RegExp(`(https:)?\\/\\/${Je}\\.storage\\.googleapis\\.com`,"g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+At(Xe),"g"),i)):e}function Yu(e){return S.getLocalConfig("contentHost")?JSON.parse(Xu(JSON.stringify(e))):e}Ku.behaviors=[],$u.behaviors=[];var Zu=function(){var u={},c=_.compose(function(e){var t=function(){var e=At(S.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&x.debug("Failed to verify URL: "+e+" vs "+t),e},Xu);const d=[function(e,t,n){return e.replace(`<% if (typeof guide !== 'undefined') { %>
|
|
5
5
|
var guide = pendo.findGuideById('<%= guide.id %>');
|
|
6
6
|
var step = guide && guide.findStepById('<%= step.id %>');
|
|
7
7
|
<% } %>`,`var guide = pendo.findGuideById('${t}');
|
|
@@ -33,109 +33,11 @@ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{
|
|
|
33
33
|
`,Ow={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()@:%_+.~#?&/=]*)$/},Nw={"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 Mw={email(e){return Ow.emailRegex.test(e)},phone(e){return Ow.phoneRegex.test(e)},date(e,t={}){return(Nw[t.format]||Nw["MM/DD/YYYY"]).test(e)},url(e){return Ow.urlRegex.test(e)},number(e,t={}){if(""===e)return!1;let{min:n,max:i,allowDecimal:r}=t;var t=Lw(n),o=Lw(i),e=(t&&(n=Number(n)),o&&(i=Number(i)),Number(e));return!isNaN(e)&&!(t&&e<n||o&&e>i||!r&&e%1!=0)},characterLength(e,t={}){let{min:n,max:i}=t;var t=Lw(n),r=Lw(i);return t&&(n=Number(n)),r&&(i=Number(i)),!(t&&e.length<n||r&&e.length>i)}};function Lw(e){return e!==undefined&&null!==e&&""!==e}const Pw="formValidation",Dw=function(){let r,o,i=[],a,d,u,c=null,s;return{name:"FormValidation",CHANNEL:Pw,validationGuides:i,debouncedValidate:a,initialize:function(e,t){var n=t.ConfigReader.get("formValidation");if(n){r=e,o=t,a=_.debounce(w,100),o.Events.on("deliverablesLoaded",p),o.Events.on("guideLoopStopped",h),o.Events.on("guideListChanged",f),o.GuideLoop.addUpdatePhase(g);const i=!(null===r||void 0===r||!r.designer);s=setInterval(()=>{i&&(l(),clearInterval(s),s=null)},1e3),e.attachEvent(document,"focusin",v),e.attachEvent(document,"focusout",y),e.attachEvent(document,"input",a)}},teardown:l,appendValidationStyles:m,getActiveStep:function(){return d},setActiveStep:function(e){d=e},setActiveField:function(e){u=e},getActiveField:function(){return u},getActiveFieldIsValid:function(){return c},setActiveFieldIsValid:function(e){c=e},getValidationGuides:function(){return i},setValidationGuides:function(e){i=e},initializeFormValidation:f,onDeliverablesLoaded:p,clearAllValidationGuides:e,extractValidationGuides:n,applyFormBehaviors:t,checkValidationFieldVisibility:g,hideValidationTooltip:h,focusField:v,blurField:y,findFieldByElement:b,validateInput:w,validateField:S,getRuleText:E,setValidationStyle:I};function l(){o&&(s&&(clearInterval(s),s=null),o.Events.off("deliverablesLoaded",p),o.Events.off("guideLoopStopped",h),o.Events.off("guideListChanged",f),o.GuideLoop.removeUpdatePhase(g),r.detachEvent(document,"focusin",v),r.detachEvent(document,"focusout",y),r.detachEvent(document,"input",a),a.cancel(),i=[],d=null,u=null,c=null)}function p(){e(),r&&r.guides&&_.each(r.guides,n)}function e(){i=[]}function h(){r.detachEvent(document,"focusin",v),u&&(u=null,c=null),d&&(d.hide({validationHidden:!0}),d=null)}function f(){m(),t()}function t(){_.map(i,function(e){_.map(e.steps,function(e){var t=function(){if(!this.attributes)return x.info("buildFormStepBehaviors called with invalid context"),{};const t=this,n=t.show,i=t.hide;return{show:function(e){return!t.attributes.validationHidden&&n.call(t,e)},hide:function(e){return e&&e.validationHidden&&(t.attributes.validationHidden=!0),i.call(t,e)}}}.call(e);Object.assign(e,t)})})}function g(){!u||(e=r.Sizzle(d.elementPathRule)[0])&&r.isElementVisible(e)||(u=null,c=null,d.hide({validationHidden:!0}),d=null);var e=Nr.get(document);((null==(e=e.bubbleEvents)?void 0:e.focusin)||[]).some(e=>e.handler===v)||r.attachEvent(document,"focusin",v)}function n(t){return"form"!==t.launchMethod||_.some(i,({id:e})=>e===t.id)||(t.channel=Pw,i.push(t)),!0}function m(){0!==i.length&&o.util.addInlineStyles("pendo-form-validation-styles",`input[data-pendo-field-valid="false"] {
|
|
34
34
|
border-color: red !important;
|
|
35
35
|
outline-color: red !important;
|
|
36
|
-
}`)}function v(e){var t,n,i,r,o,a,s,e=e["target"];"INPUT"===e.tagName&&(t=b(e))&&d&&(d.attributes.validationHidden=!1,d.domJson||(n=u.rules[0],i=xw("context-"+u.id,u.context),n=null!=n&&n.type?function(e,t){return{props:{id:"rule-"+e,"class":"text-row",style:{display:"flex","align-items":"center"}},children:[xw(e,t)],type:"div"}}(n.id,n.ruleText):null,0!==(i=[i,n].filter(Boolean)).length&&(n=be(Sw),r=be(Ew),o=be(Iw),a=be(_w),s=be(Cw),n.children.push(r,o),o.children.push(a),a.children.push(s),s.children=i,d.domJson=n)),d.show("api"),(o=document.getElementById("rule-"+(null==(r=null===u||void 0===u?void 0:u.rules[0])?void 0:r.id)))&&null!=(a=null===u||void 0===u?void 0:u.rules[0])&&a.type&&(s=null===u.isValid?Tw(Rw):c?Tw(kw):Tw(Aw),o.insertBefore(s,o.firstChild)),""!==t.value)&&S(e)}function y(e){e=e.target;u&&d&&(r.Sizzle.matchesSelector(e,null===d||void 0===d?void 0:d.elementPathRule)&&I(e,c),d.hide({validationHidden:!0}),null===u.isValid&&!1===c&&(E().props.style.color="red"),u.isValid=c,u=null,d=null,c=null)}function b(t){d&&d.hide({validationHidden:!0}),d=null,u=null,c=null;for(const n of i){var e=_.find(n.steps,function(e){return r.Sizzle.matchesSelector(t,e.elementPathRule)});if(e)return d=e,u=null==(e=e.attributes)?void 0:e.field,c=u.isValid,u}return null}function w(e){var t,e=e["target"];r.Sizzle.matchesSelector(e,null===d||void 0===d?void 0:d.elementPathRule)?S(e):(t=b(e))&&(c=t.isValid,S(e))}function S(t){var n=null===u||void 0===u?void 0:u.rules[0];if(n){var i=Mw[n.type];if(i){n=i(t.value,n.options),i=(c=!!n,E());let e;null===u.isValid?(i.props.style.color=n?"green":"gray",e=Tw(n?kw:Rw)):(i.props.style.color=n?"green":"red",e=Tw(n?kw:Aw),I(t,n)),d.hide({stepHidden:!0}),d.show("api");i=document.getElementById("rule-"+u.rules[0].id);i&&i.insertBefore(e,i.firstChild)}}}function E(){return oc("text-"+u.rules[0].id,d.domJson)}function I(e,t){!1===t?e.setAttribute("data-pendo-field-valid",!1):e.removeAttribute("data-pendo-field-valid")}}(),Fw=function(){let i,a=0,s,d,u,c,l=[];const p=100,h=9;let f;const o=4,g=500,m=["TEXTAREA","INPUT"];let v=!0,y={},n,b,r;const w="previous_page_loads";let S;const E="errorClickLogging",I=1500;let _=!1;return{name:"FrustrationEvent",initialize:function(e,t){S=e,c=S._,i=t,a=0,l=[],f=[],y={},_=i.ConfigReader.get(E),this.detachErrorEvent=i.attachEvent(window,"error",P,!0),this.detachDocumentEvents=function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange","visibilitychange","selectionchange","scroll"],t=[];for(var n=0;n<e.length;n++)switch(e[n]){case"selectionchange":t.push(i.attachEvent(window,e[n],T,!0));break;case"visibilitychange":t.push(i.attachEvent(window,e[n],()=>{x(250)},!0));break;default:t.push(i.attachEvent(window,e[n],x,!0))}return t}(),i.Events.on("eventCaptured",D),i.agentStorage.registry.addSession(w),S.sniffer.MutationObserver&&(Dy.observing?Dy.addEventListener("mutation",R):function(){var e=vt("MutationObserver");n=new e(k);try{n.observe(S.dom.getBody(),{childList:!0,attributes:!0,subtree:!0})}catch(t){n=null}}())},teardown:function(){i.Events.off("eventCaptured",D),this.detachErrorEvent&&(this.detachErrorEvent(),this.detachErrorEvent=null);if(this.detachDocumentEvents){for(var e=0;e<this.detachDocumentEvents.length;e++)this.detachDocumentEvents[e]();this.detachDocumentEvents=null}n&&n.disconnect();Dy.observing&&Dy.removeEventListener("mutation",R)},addErrorClickLog:N,getErrorEventTarget:L,checkErrorEvent:P,observeDOMMutation:k,checkFrustrationEvent:D};function C(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()){(l=c.filter(l,e=>t-e.timestamp<=p)).length&&Ut(C,p)}function x(e=g){v=!1,c.each(y,e=>{clearTimeout(e)}),y={},Ut(()=>{v=!0},e)}function T(){var e=document.getSelection().toString();(b||e.length)&&(x(),b=!!e.length)}function R({mutation:e=[]}={}){k(e)}function k(e){e.length&&x()}function t(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function A(e){return e&&t(e.element)}function O(e,t){var{frustrationTypes:n=[]}=e;c.contains(n,t)||(n.push(t),e.frustrationTypes=n,S.buffers.flushLater())}function N(e,t){let n;var{detail:i={}}=t;(n=(A(i)&&i.error?i.error:t).message)&&n.length>I&&(n=n.substring(0,I)),e.errorClickLog=n}function M(e,t){var n=t.target&&"A"===t.target.tagName&&c.isFunction(t.target.hasAttribute)&&t.target.hasAttribute("href"),i=t.target&&!c.contains(m,t.target.tagName);if(v&&!b&&i&&!n){var r=e;const o=Ut(()=>{delete y[o],O(r,"deadClick")},g);y[o]=o}l.length>h&&l.pop(),l.unshift({target:t.target,activeElement:document.activeElement,browser_time:e.browser_time,timestamp:t.timeStamp}),Ut(C,p),c.each(f,e=>{P(e)}),s?(i=t,e.browser_time-s<=1e3&&Math.abs(d-i.x)<=30&&Math.abs(u-i.y)<=30?a++:(a=1,d=t.x,u=t.y),s=e.browser_time,4===a&&(s=null,O(e,"rageClick"))):(s=e.browser_time,d=t.x,u=t.y,a=1)}function L(e){if(t(e.target))return{detail:e={}}=e,A(e)?e.element:t(document.activeElement)?document.activeElement:void 0}function P(t){const n=L(t);if(n){const i=c.find(l,e=>(e.target===n||e.activeElement===n)&&t.timeStamp-e.timestamp<p);if(i){const r=e=>e.browser_time===i.browser_time&&"click"===e.type;var e=c.find(S.buffers.events,r)||c.find(S.buffers.silos,e=>c.find(e,r));e&&(O(e,"errorClick"),_)&&N(e,t)}else c.contains(f,t)||f.push(t),f.length>o&&f.pop()}}function F(e){r=function(){let e=i.sessionStorage.getItem(w);return null!=e&&0<e.length&&(e=JSON.parse(e)),c.isArray(e)?e:[]}(),function(e){var t,n;if(!(r.length<2))return t=r[0],n=r[1],t&&n&&t.url&&n.url&&t.browser_time&&n.browser_time?t.url===e.url&&e.browser_time-n.browser_time<=7e3&&n.url!==e.url:void 0}(e)&&O(e,"uTurn"),2===r.length&&r.shift(),r.push({url:e.url,browser_time:e.browser_time}),e=r,i.sessionStorage.setItem(w,JSON.stringify(e))}function D(e){var t=e.data[0],e=e.data[1],e=("click"===t.type&&e&&M(t,e),"load"===t.type&&F(t),"submit"!==t.type&&"change"!==t.type||x(),c.has(e,"target")&&c.contains(m,e.target.tagName));"focus"===t.type&&e&&x()}}(),Uw={};function Gw(e){return 1===_.keys(e).length&&e.id}const Bw={name:"GuideCache",initialize(e,t){this.onGuidesReceived=_.bind(this.guidesReceived,this),this.onEventCaptured=_.bind(this.eventCaptured,this),t.Events.on("guidesReceived",this.onGuidesReceived),this.subscriptions=[t.attachEvent(t.Events,"eventCaptured",this.onEventCaptured)]},teardown(e,t){t.Events.off("guidesReceived",this.onGuidesReceived),_.each(this.subscriptions,function(e){e()}),this.subscriptions=[]},guidesReceived(e){_.each(_.keys(Uw),function(e){delete Uw[e]});var t,n,i,r,e=e.data[0];e&&e.guideCache&&e.guides&&(n=e.guides,t=e.guideCache,n&&t&&_.each(n,function(i){if(i&&i.id){if(Gw(i)){const r=t.get(i.id);return r&&r.steps?void _.each(r.steps,function(e){var t;e&&e.id&&(t={payload_seen_state:null},_.isUndefined(e.seenState)||null===e.seenState||(t.cached_seen_state=e.seenState),Uw[i.id+":"+e.id]=t)}):void 0}const r=t.get(i.id);_.each(i.steps||[],function(e){var t,n;e&&e.id&&(t={payload_seen_state:_.isUndefined(e.seenState)?null:e.seenState},(n=r&&_.findWhere(r.steps,{id:e.id}))&&!_.isUndefined(n.seenState)&&null!==n.seenState&&(t.cached_seen_state=n.seenState),Uw[i.id+":"+e.id]=t)})}}),e.guides=(n=e.guides,i=e.visitorId,r=e.guideCache,n&&(r?_.map(n,function(e){return Gw(e)?r.get(e.id):(r.add(e,i),e)}):n)))},eventCaptured(e){var t,n;e&&e.data&&e.data.length&&(e=e.data[0])&&"guideSeen"===e.type&&_.contains(["auto","continue"],e.props.reason)&&(t=e.props.guide_id,n=e.props.guide_step_id,t=Uw[t+":"+n])&&(e.props.payload_seen_state=t.payload_seen_state,_.isUndefined(t.cached_seen_state)||(e.props.cached_seen_state=t.cached_seen_state))}},Hw=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&&e.document.body&&!e.document.body.hasChildNodes()||!!e.document.getElementById(i)}function d(e,t){var n;s(e)||((n=o.ConfigReader.getLocalConfig()).apiKey||(n.apiKey=r.apiKey),e.pendo={_q:[["initialize",n]]},(n=e.document.createElement("script")).src=t,n["async"]=!0,n.id=i,(t=e.document.getElementsByTagName("script")[0])&&t.parentNode?t.parentNode.insertBefore(n,t):(e.document.head||e.document.body).appendChild(n))}function u(e,t){e.pendo.iframeWaiting=!1,d(e,t)}function c(e){try{if(s(e))return}catch(n){return}var t=function(){var e=o.ConfigReader.get("selfHostedAgentUrl");if(e)return e;e=r.dom("script");const t=/\/pendo(\.\w+)?\.js$/;return(e=r._.find(e,e=>t.test(e.src)))&&e.src}();t?"complete"===e.document.readyState?d(e,t):(e.pendo={iframeWaiting:!0},e.addEventListener("load",r._.partial(u,e,t))):r.log("Unable to find agent url to install agent in frames","debug")}function e(){var t=r.dom("iframe").length;for(let e=0;e<t;e++)c(window.frames[e]);Ut(e,250)}function l(){e()}function p(){return!n||n&&o.store.getters["frames/isLeader"]()}function h(e){p()&&(e=null==(e=e.data)?void 0:e[0]).storeChanged&&o.store.dispatch("frames/syncOptions",{options:e.options})}function f(e){var t;g(null==(t=e.data)?void 0:t[0].visitor_id,null==(t=e.data)?void 0:t[0].account_id)}function g(e=v(),t=Yn()){p()&&o.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}}(),zw=function(){let n,i,r;return{name:"OemAccountId",initialize:function(e,t){n=t,(i=n.ConfigReader.get("oemAccountId"))&&(r=function(e){e=e,i&&e&&e.data&&e.data[0]&&(e.data[0].oem_account_id=i)},n.Events.on("eventCaptured",r))},teardown:function(){r&&n.Events.off("eventCaptured",r)}}}();var jw=null,qw=function(){return lu()?ou:ru},Ww=function(e){return"#_pendo_g_"+e.id},Vw=function(e,t){jw=null;var n,i,r,o,e=da(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(qw()),o=nS(e,o,i,r),t&&(t.dim=o),n.css({width:o.width,height:o.height,left:o.left,top:o.top}),e.fixed&&n.css({position:"fixed"}),M("._pendo-guide-container_",n).addClass(o.arrowPosition).css({top:o.content.top,left:o.content.left,width:o.content.width,height:o.content.height}),Jw(n[0],o),n[0])},Jw=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=_.chain(n).filter(function(e){return e!==o}).map(function(e){return"border-"+e+"-width:"+E.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=M("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),d=M("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");_.each(n,function(e){s.removeClass(i+e+"_").removeClass(e),d.removeClass(r+e+"_").removeClass(e)}),s.addClass(i+o+"_").addClass(o).css(a+"top:"+t.arrow.top+"px;left:"+t.arrow.left+"px;"),d.addClass(r+o+"_").addClass(o).css(a+"top:"+t.arrow.border.top+"px;left:"+t.arrow.border.left+"px;"),M(e).append(s).append(d)},Kw=function(e,t){t===undefined&&(t=Jd),e.element=fu(e);var n=e.element;if(!n)return x.info("No element found for step: "+e.id),null;Aa(n);var i=Vw(n,e);return null===i?null:(i.id=E.getTooltipDivId(e),M(i).appendTo(pu()),t.push(i),F(i,"mouseover",_.partial(M.addClass,i,"mouseover")),F(i,"mouseout",_.partial(M.removeClass,i,"mouseover")),vu(n,i),Qw(e),n)},$w=null,Xw=null;var Yw=null,Zw={top:"north",left:"east",bottom:"south",right:"west"},Qw=function(e){try{var t,n,i,r,o,a,s,d;e.attributes&&e.attributes.blockOutUI&&e.attributes.blockOutUI.enabled&&(t=e.attributes.blockOutUI,(n=[]).push(e.element),i=_c(n=n.concat(_.compact(_.flatten(_.map(t.additionalElements,function(e){return _.toArray(M(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=Ic(a=Ec(),i,o),h=i,f=!_.isEqual(h,$w),$w=h,f||(l=a,p=!_.isEqual(l,Xw),Xw=l,p)||(u=s,c=!_.isEqual(u,Yw),Yw=u,c))&&(d={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(d["background-color"]=t.bgColor),t.opacity&&(d.opacity=t.opacity),_.each(s,function(e,t){t=Zw[t],e=_.extend({},e,d),t=M("div._pendo-guide-tt-region-block_._pendo-region-"+t+"_")[0]||eS(t),M(t).css(e)}))}catch(g){x.info("Failed to add BlockOut ui",{contexts:["error"]})}var u,c,l,p,h,f},eS=function(e){e=M(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");M("body").append(e)},tS=function(e){var t=_.isEqual(e,jw);return jw=e,!t},nS=function(e,t,n,i){var r=E.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=oa();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=iS(o,e,a,i=i||"auto"),o=rS(o,e,a,i),o=oS(o,e,a)},iS=function(e,t,n,i){return e.arrow.hbias=Hc(t,n,i),e},rS=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-To(),t=(r=t.left-Ro())+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},oS=function(e,t,n){var i,r,o,a=e.height,s=e.width;return qe()?We(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=xe(9,6)?6:2,i=-1):"bottom"==e.arrowPosition&&(e.top=t.top-a,e.arrow.top=a-E.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=xe(9,6)?6:0,e.arrow.top+=8==Te?-1:0,i=1),r=10+E.TOOLTIP_ARROW_SIZE,o=s-3*E.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==Uc?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==Gc?(e.left=t.left-s+t.width/2+(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=o):(e.left=t.left+t.width/2-s/2,e.arrow.left=s/2-E.TOOLTIP_ARROW_SIZE),!1!==e.arrow.floating&&(n=e.left+s-n.width,0<(n-=Math.max(0,e.arrow.left+n-o))&&(e.left-=n,e.arrow.left+=n),o=-e.left,0<(o-=Math.max(0,r-(e.arrow.left-o))))&&(e.left+=o,e.arrow.left-=o),e.arrow.border.top=e.arrow.top+i,e.arrow.border.left=e.arrow.left):(e.arrow.hbias==Uc?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=xe(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==Gc&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=xe(10,6)?5:0,e.arrow.left+=7==Te&&6<=Re?1:0,e.arrow.border.left=e.arrow.left+1),e.top=t.top-a/2+t.height/2,e.arrow.top=a/2-E.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e)},aS=430,sS=200,dS=15;function uS(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||E.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||E.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.canShow=function(){return!hg(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(jd())&&gg(t)},this.after("render",function(){Kw(this,this.elements)}),this.reposition=function(){var e=this.attributes.width,t=this.attributes.height,n=this.attributes.layoutDir,i=this.guideElement,r=M("._pendo-guide-container_",i),o=da(this.element),t=nS(o,t,e,n);r.removeClass("top right bottom left").removeClass("_pendo-guide-container-top_ _pendo-guide-container-right_ _pendo-guide-container-bottom_ _pendo-guide-container-left_").addClass(t.arrowPosition).addClass("_pendo-guide-container-"+t.arrowPosition+"_"),M("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),Jw(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,Qw(this)},this.after("hide",function(){M("._pendo-guide-tt-region-block_").remove(),Yw=Xw=$w=null})),this}var cS=function(e,t){var n=!!M("._pendo-backdrop_")[0];return _.get(t,"overlayDiv[0]")||(t.overlayDiv=M(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(pu())),qe()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&M(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},lS=function(e){var t=e.guideElement,n=E.TOOLTIP_ARROW_SIZE,i=e.attributes.height,e=e.attributes.width,e=Math.floor(e/2),i=Math.floor(i/2);t.addClass("_pendo-guide-lb_").css({top:"50%",left:"50%","margin-top":-i,"margin-left":-e}),M("._pendo-guide-container_",t).css({bottom:n,right:n}),qe()&&t.css({position:"absolute"})},pS=function(e,t){t===undefined&&(t=Jd),e.element=fu(e),lS(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(cS(n,e),e.guideElement);t.push(n[0]),n.appendTo(pu())},hS=function(e,t){t===undefined&&(t=Jd),e.element=fu(e),e.guideElement.addClass("_pendo-guide-mobile-lb_");var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=cS(n,e),e=e.guideElement,i=E.TOOLTIP_ARROW_SIZE,i=(e.css({width:"",height:""}),M("._pendo-guide-container_",e).css({bottom:i,right:i}));function r(e){e.preventDefault()}M("._pendo-close-guide_",e).remove().prependTo(i),e.appendTo(pu()),t.push(e[0]),F(n[0],"touchmove",r),F(e[0],"touchmove",r)};function fS(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||E.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||E.LB_DEFAULT_WIDTH,e.after("render",function(){(lu()?hS:pS)(e,e.elements)}),e.reposition=function(){lu()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var gS=500,mS="_pendo-guide-banner_";function vS(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||gS,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=E.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(mS).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),cu()||e.addClass("_pendo-in_"),M("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=fu(n),n.elements.push(e[0]),e.appendTo(pu())})),n}function yS(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(_.extend(n,{isShown:_.constant(!1),launch:d,onShown:d,render:function(){var e=n.guideElement,t=n.attributes.height;e&&e.html()||(e=M(document.createElement("div")).attr("id",bg(n)).addClass("_pendo-guide-whatsnew_").html(n.getContent()),_.isNumber(t)&&!n.attributes.autoHeight&&e.height(t),n.seenState===r&&e.addClass(i),n.guideElement=e)},seen:s}),_.extend(t,{addToLauncher:function(){var e=n.guideElement;e&&!ha(e[0])&&(M("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),nc.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){cu()||a()&&n.seenState!==r&&function(e){{var t,n;if(Ta(e,/(auto|scroll|hidden)/))return(t=va(e))?(t=fa(t),e=fa(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(Cg(n.guideId,n.id,v(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,_.delay(function(){n.guideElement.addClass(i+" out")},_.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function d(){}}var bS="_pendo-launcher-searching_",wS="._pendo-launcher-search-box_ input";var SS,ES=function(e){return e&&_.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function IS(){var e;return function(){var e;if(E.guideWidget)return(e=E.guideWidget.data)&&e.enableSearch}()&&(e=M(wS)[0])&&0<(e=e.value).length?(e=ot.call(e),[].concat(_.compact(e.split(" ")))):[]}function _S(e){if(!S.get("disablePrefetch"))return m.all(_.map(e,function(e){return e.fetchContent()}))}function CS(e,t){return x.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||g(),t&&0!==t.length?_.chain(e).filter(ES).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return _.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var xS=function(){var e=g();if(bu()){if(E.guideWidget&&E.guideWidget.enabled){var t=PS(e),n=!0;if(E.guideWidget&&_.isFunction(E.guideWidget.update))E.guideWidget.update(t,n)}}else{WS();t=Yd(e),n=DS(PS(t));n!==SS&&k.dispatch("frames/changeGuideList",t),SS=n}},TS="launcher-closed",RS=null,kS=null,AS=!1,OS="_pendo-launcher-active_",NS=null,MS=function(){return""};function LS(e,t){MS=t}function PS(e){var t,e=_.filter(e||g(),ES);return e=e,0===(t=IS()).length?e:(t=_.map(t,_.partial(CS,e)),_.union.apply(_,t))}function DS(e){return pt(_.map(e,function(e){var t=e.isWhatsNew()?[]:_.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function FS(e){var n=this,t=e.launchType||"badge",i=(_.extend(n,{show:function(){"badge"===t&&M(n.element).css("display: ;")},hide:function(){M(n.element).css("display: none;")},wrap:function(){var e=n.element;{var t;e&&/^img$/i.test(e.nodeName)&&(t=M(document.createElement("div")).addClass(e.className).append(e).appendTo(pu()),e.className="",n.element=t[0])}},dispose:function(){M.removeNode(n.element)},setActive:function(e){e?M(n.element).addClass(OS):M(n.element).removeClass(OS)}}),e),e=i.position||"bottom-right",r=document.createElement("img");M(n.element=r).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+e+"_"),i.launcherBadgeUrl&&(r.src=Xu(i.launcherBadgeUrl)),r.onerror=function(e){x.info("[Pendo Web SDK] Error! Unable to load guide center image "+i.launcherBadgeUrl),x.critical("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},qe()&&(F(r,"mouseover",function(e){M(r).addClass("_pendo-launcher-badge-active_")}),F(r,"mouseout",function(e){M(r).removeClass("_pendo-launcher-badge-active_")}),M(r).css({position:"absolute"})),pu().appendChild(r)}function US(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=Fr(e),t=n();M(e).closest(t).length&&(XS()?T.write(TS,"yes"):E.guideWidget.position(e),e1())}E.guideWidget.removeCountBadge=function(){M("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),_.extend(this,{getLauncherTarget:function(){return M(n())[0]},dispose:function(){pf(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&M("._pendo-launcher-whatsnew-count_").remove()}}),F(document,"click",t)}function GS(){var n,s="bottom-right",d="bottom-left";return this.update=function(e,t){t=t?e:PS(e),e=DS(t)+pt(IS());return e!==n&&(n=e,this.updateLauncherContent(t)),jS(),0<t.length},this.updateLauncherContent=KS,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(RS=new FS(e),e.height||310),n=(e.enableSearch&&(t+=qe()?50:39),this&&!this.hidePoweredBy&&(t+=40),e.addHeight&&(t+=e.addHeight),this.height=t,e.width||330),i=(e.addWidth&&(n+=e.addWidth),this.width=n,M(document.createElement("div")).addClass("_pendo-launcher_")),r=(kS=i[0],da(RS.element)),r=nS(r,t,n),o=(i.css({width:n,height:t}),E.TOOLTIP_ARROW_SIZE),n=M(document.createElement("div")).addClass("_pendo-guide-container_ "+r.arrowPosition).addClass("_pendo-guide-container-"+r.arrowPosition+"_").css({top:o,left:o,width:n-2*o,height:t-2*o}).appendTo(i),t=JS(),o=Xu(BS(this.template(t))),t=M(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),Zf(i[0],function(){ZS(),T.write(TS,"yes",288e5)}),t.on("click",function(e){var t=M(Fr(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=y((t=/^launcher-(.+)$/.exec(ot.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(Ig(t.steps[0],"launcher"),ZS(),hf(e))}),qe()&&(M("._pendo-launcher-header_",i).css({padding:"10px","margin-right":"10px","margin-left":"10px"}),M("._pendo-launcher-footer_",i).css({"border-top":"1px solid #bbb"}),i.css({position:"absolute"})),i.find("[pendo-style]").each(function(){var e=this.getAttribute("pendo-style");M(this).css(e)}),i.appendTo(pu()),_.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!xe(9,6)&&(o=e.autoHeight.offset||100,i.css({height:"calc(100% - "+o+"px)",maxHeight:e.height,minHeight:e.height/2}),M("._pendo-guide-container_."+r.arrowPosition).css({maxHeight:e.height-30,minHeight:e.height/2-30,height:"calc(100% - 30px)"}))},this.position=function(e){var t,n,i,r,o,a;e&&(t=this.data||{},e=da(e),n=nS(e,this.height,this.width),i=M(kS),"badge"===(r=t.launchType||"badge")?(o=t.position,_.indexOf(a=[s,d,"top-left","top-right"],t.position)<0&&(o=s),_.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=_.contains([s,d],o)?"bottom":"top",n.arrow.hbias=_.contains([d,"top-left"],o)?"left":"right",n.arrow.floating=!1):"element"===r&&i.css({top:n.top,left:n.left,height:n.height,width:n.width,position:e.fixed?"fixed":"absolute"}),M("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),oS(n,e,{width:Infinity,height:Infinity}),Jw(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=e1,this}function BS(e){return e=_.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function HS(e,t){e.contentHostUrl&&(e.contentHostUrl=(n=e.contentHostUrl,i=location,(r=S.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)),NS=new US(e);var n,i,r=GS.create(E.guideWidget);return _.isFunction(r.template)||(r.template=e.template?_.template(e.template):MS),r.render(),r.position(NS.getLauncherTarget()),t&&r.toggle(),r}GS.create=function(e){return _.reduce(GS.behaviors,function(e,t){return t.call(e)},e)},GS.behaviors=[Oh,GS,Wu.Launcher,function(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){M(wS).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,E.disableGuideCenterContentSearch||this.before("update",_S),this.before("update",function(){t.text=IS().join(" ");var e=M("._pendo-launcher_");t.text?e.addClass(bS):e.removeClass(bS)})),this},function(){var n=this;{var i;n.data&&n.data.onboarding&&(i=n.onboarding=n.onboarding||{},n.before("update",function(e){var e=_.filter(e,o0),t=_.filter(e,function(e){return"complete"==n.guideStatus(e)}),e=i.total=e.length,t=(i.percentComplete=0<e?Math.round(t.length/e*100):0,M("._pendo-launcher_,._pendo-launcher-badge_"));e?(t.addClass("onboarding"),t.addClass("_pendo-launcher-onboarding_")):(t.removeClass("onboarding"),t.removeClass("_pendo-launcher-onboarding_"))}),n.getOnboardingState=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":e.isNotStarted()?"not-started":null})}return n},function(){var n=this,i=M(document.createElement("div")).addClass("_pendo-launcher-whatsnew-count_");n.data&&n.data.whatsnew&&n.data.whatsnew.enabled&&(n.before("updateLauncherContent",function(e){e=_.filter(e,function(e){return e.isWhatsNew()});e.sort(t),n.data.whatsnew.total=e.length,n.data.whatsnew.guides=e}),n.after("update",function(e){var t=n.data.whatsnew.guides,t=(_.each(t,function(e){e.show()}),_.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),_.filter(t,function(e){return"active"!==e.steps[0].seenState}).length);t!==n.data.whatsnew.unseenCount&&(i.html(t).css({display:t?"":"none"}),n.data.whatsnew.unseenCount=t,M("span._pendo-launcher-whatsnew-count_").text(n.data.whatsnew.unseenCount))}),n.after("render",function(){VS()?i.appendTo(this.data.launchElement):(RS.wrap(),i.appendTo(RS.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 zS=function(){kS&&(M.removeNode(kS),kS=null),NS&&(NS.dispose(),NS=null),RS&&(RS.dispose(),RS=null)},jS=function(){(!VS()&&(YS()||0<IS().length)?qS:WS)()},qS=function(){RS&&RS.show()},WS=function(){VS()||ZS(),RS&&RS.hide()},VS=function(){return!(!E.guideWidget||!E.guideWidget.data||"element"!==E.guideWidget.data.launchType)},JS=function(e){var t=ql(),t=_.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:ct(t)},E.guideWidget);return t.data=_.extend({},t.data),e&&(t.guides=e),t};function KS(e){var t=E.guideWidget.template||MS,e=JS(e),e=M(document.createElement("div")).html(BS(t(e))),n=e.find("._pendo-launcher-guide-listing_"),t=e.find("._pendo-launcher-footer_").html(),e=e.find("._pendo-launcher-search-results_").html();M("._pendo-launcher_ ._pendo-launcher-guide-listing_").each(function(e,t){M(e).html(n.eq(t).html())}),M("._pendo-launcher_ ._pendo-launcher-footer_").html(t),M("._pendo-launcher_ ._pendo-launcher-search-results_").html(e)}var $S=_.compose(jS,function(e,t){var n,i,r,o;ES(e)&&(n=M("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0])&&(e=(o=M("#launcher-"+e.id)).length?o[0]:(e=e,M(i=document.createElement("div")).addClass("_pendo-launcher-item_"),M(i).attr("id","launcher-"+e.id),(r=document.createElement("a")).href="#",r.innerHTML=e.name,i.appendChild(r),i),o=0<o.length,_.isNumber(t)&&(r=M("._pendo-launcher-item_"))[t]?e.id!=r[t].id&&n.insertBefore(e,r[t]):n.appendChild(e))}),XS=function(){return M(kS).hasClass(OS)},YS=function(){return 0<M("._pendo-launcher-item_").length},ZS=function(){var e;kS&&(e=M(kS))&&e.hasClass(OS)&&(e.removeClass(OS),RS)&&RS.setActive(!1)},QS=function(){var e;kS&&(e=M(kS))&&!e.hasClass(OS)&&(e.addClass(OS),RS)&&RS.setActive(!0)},e1=function(){kS&&!AS&&(XS()?ZS:QS)()};var t1=function(){try{var e=E.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};zS(),!lu()&&!n.desktop||lu()&&!n.mobile||ds()&&!n.iframe||e.enabled&&(HS(t),WS())}catch(i){x.critical("ERROR while initializing launcher",{error:i})}},n1=function(e){e.defaultLauncher=LS,_.each(e._defaultLauncher_queue,e=>{LS.apply(null,e)}),e._defaultLauncher_queue=[],e.toggleLauncher=e1,e.showLauncher=QS,e.hideLauncher=ZS,e.removeLauncher=zS,e.initLauncher=t1,e.createLauncher=HS,e._addGuideToLauncher=$S,e.launcherToolTipDiv=kS},i1=function(){t1()},r1=function(){var e;(e=E).designer&&(e.designer.createLauncher=HS,e.designer.removeLauncher=zS,e.designer.addGuideToLauncher=$S,e.designer.updateLauncherContent=KS)},o1=function(){var e;(e=E).debugging&&(e.debugging.getLauncherGuides=PS)},a1=function(e){return i=E.guideWidget,e=e,r=i&&i.data,e=_.filter(e,function(e){e=_.first(e.steps);return e&&"launcher"===e.type}),(e=_.first(_.sortBy(e,function(e){return-e.lastUpdatedAt})))&&r&&(e=_.first(e.steps),_.extend(r,_.pick(e,"contentUrl","contentUrlCss","contentUrlJs"),e.attributes),_.defaults(r,{whatsnew:{},knowledgebase:{}}),r.id=e.guideId+e.id),n=(t=i)&&t.data||{},!0!==S.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?Du.verify(n).then(function(){return Zu.load(n)}).then(function(e){return n.template=e.content,_.extend(t,e)}):m.resolve();var t,n,i,r},s1=function(e,t){n1(e),t.Events.on("guidesLoaded",i1),t.Events.on("designerLaunched",r1),t.Events.on("debuggerLaunched",o1),t.GuideLoop.addUpdatePhase(xS),Xg.push(a1),t.agentStorage.registry.addLocal(TS,{duration:864e6,localStorageOnly:!0})},d1=function(e,t){var n;n=a1,0<=(n=_.indexOf(Xg,n))&&Xg.splice(n,1),t.GuideLoop.removeUpdatePhase(xS),t.Events.off("guidesLoaded",i1),t.Events.off("designerLaunched",r1),t.Events.off("debuggerLaunched",o1)};vy.Extensions.API.addTopic("Launcher",{addBehavior(e){GS.behaviors.push(e)}});var u1,c1,l1,p1,h1={name:"P1Guides",initialize:function(e,t){var n;l1=t,u1=(c1=e).dom,p1=[uS,fS,vS,yS,m1,v1,g1,f1],-1<_.indexOf($u.behaviors,uS)||(n=_.indexOf($u.behaviors,c0),$u.behaviors.splice.apply($u.behaviors,[n,0].concat(p1)),t.Events.guideLoopStopped.on(WS),e.TOOLTIP_DEFAULT_WIDTH=aS,e.TOOLTIP_DEFAULT_HEIGHT=sS,e.TOOLTIP_ARROW_SIZE=dS,e._showElementGuide=Kw,e._createTooltip=Vw,e._get_tooltip_dimensions=nS,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e._showLightboxGuide=pS,s1(e,t))},teardown:function(){d1(0,l1),l1.Events.guideLoopStopped.off(WS),c1._.each(p1,function(e){e=_.indexOf($u.behaviors,e);0<=e&&$u.behaviors.splice(e,1)}),p1=[]}};function f1(){const o=this;return"tooltip"!==o.type||o.domJson||(o.checkPlacement=function(){var e,t,n,i,r;e=o,r=da(e.element||fu(e)),Qw(e),tS(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=nS(r,n,i,t),(i=M(Ww(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),Jw(i,n))}),o}function g1(){var i=this;return i.attributes&&i.attributes.autoHeight&&(i.after("render",function(){i.guideElement&&i.guideElement.length&&(i.resize(),i.attachEvent(i.guideElement[0],"load",function(){i.resize()}))}),i.resize=function(){var e,t=E.TOOLTIP_ARROW_SIZE,n=i.guideElement;n&&(e=u1("._pendo-guide-container_",n),"tooltip"==i.type||qe()&&"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 m1(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&Zf(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||sg(t)})}),t}function v1(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||uu(e.guide)||e.after("render",function(){pg(e.guideElement[0])}),e}const y1="__sg__";w1="promotedAgentMetadataConfigurations",S1=[],E1={},I1={};var b1,w1,S1,E1,I1,_1={name:"PromoteMetadata",initialize:function(e,t){if(S1=(b1=t).ConfigReader.get(w1),I1={},b1.agentStorage.registry.addLocal(y1,{isSecure:!0,serializer:JSON.stringify,deserializer:Ft}),Gn())try{E1=b1.agentStorage.read(y1)}catch(n){A1()}S1&&S1.length&&(b1.Events.on("metadata",T1),b1.Events.on("eventCaptured",N1),b1.Events.on("identify",R1))},teardown:function(){b1.Events.off("metadata",T1),b1.Events.off("eventCaptured",N1),b1.Events.off("identify",R1)},getPromotedMetadata:function(){return S1},hasPromotedMetadataKind:C1,setSchemaGroup:T1,getSchemaGroup:x1,resetSchemaGroup:k1,resetCachedSchemaGroup:A1};function C1(t){return _.some(S1,function(e){return e.kind===t})}function x1(){return I1}function T1(e){var t;e?(e=e.data[0]["options"],e&&(t=e)):t=ql(),I1=function(r){if(Gn())try{var e=b1.agentStorage.read(y1);E1=function(e){e=_.mapObject(e,(t,e)=>{const n={};return _.each(Object.keys(t),function(e){n[e.replace("agent__","")]=t[e]}),n});return e}(E1=e)}catch(t){A1()}var o=I1;_.each(["visitor","account","parentAccount"],function(e){var t=C1(e),n=!_.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!_.isEmpty(E1)&&_.isEmpty(Ms.get())&&(o[i]=O1(E1[i],e)),n)&&(t=O1(r[e],e),_.isEmpty(t)||(o[i]=Object.assign(Object.assign({},o[i]),t)))}),Gn()&&b1.agentStorage.write(y1,o);return o}(t)}function R1(e){e=e.data[0];_.get(e,"wasCleared")&&(b1.agentStorage.clear(y1),k1())}function k1(){I1={}}function A1(){E1={}}function O1(e,i){var r={};return e&&_.each(e,function(e,t){var n=t.toLowerCase();Boolean(_.find(S1,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function N1(e){e=e.data[0];e&&(_.isEmpty(I1)&&T1(),_.isEmpty(I1)||("track"===e.type?e.props.__sg__=I1:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=I1)))}const M1="segmentFlagsCache";function L1(){let s,d,o,u=null,a=!1,c={},l,p,e=!1;return{name:"SegmentFlags",initialize:function(e,t){var n="requestSegmentFlags",e=(s=e,(d=t).ConfigReader);if(e.addOption(n,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],false),o=e.get(n)){if(u=null,a=!1,t.agentStorage.registry.addLocal(M1,{isSecure:!0,localStorageOnly:!0,duration:2592e6,serializer:JSON.stringify,deserializer:Ft}),c={},Gn())try{var i=t.agentStorage.read(M1);i&&i.flags&&(c=i.flags,s.segmentFlags=Object.keys(i.flags),l=i.timestamp||null,p=i.hash||null,a=!0,d.Events.segmentFlagsReady.trigger({flags:s.segmentFlags,fromCache:!0,cacheTimestamp:l}))}catch(r){d.Events.segmentFlagsError.trigger("Error reading segment flags from cache")}s.getSegmentFlag=m,s.segmentsPayload=v,d.Events.ready.on(h),d.Events.identify.on(g),d.Events.metadata.on(g),d.Events.eventCaptured.on(f)}},teardown:function(){o&&(s.segmentsPayload=s._.noop,d.Events.ready.off(h),d.Events.identify.off(g),d.Events.metadata.off(g),d.Events.eventCaptured.off(f),u=null,a=!1,c={},l=null,p=null,e=!1)}};function h(){e=!0,g()}function f(e){p&&e&&e.data&&e.data.length&&(e=e.data[0])&&"object"==typeof e&&(e.segmentFlagsHash=p)}function g(){if(e){var t=s._.uniqueId(),n=(u=t,{visitorId:s.get_visitor_id(),accountId:s.get_account_id(),metadata:s.getSerializedMetadata(),url:s.url.get()}),i=s.compress(n),t={id:t,jzb:i,v:s.VERSION,ct:(new Date).getTime()},n=(d.agent.treatAsAdoptPartner()&&d.agent.addAccountIdParams(t,n.accountId,d.ConfigReader.get("oemAccountId")),"script"===s.LOADER?"segmentflag.js":"segmentflag.json");let e=d.transmit.buildBaseDataUrl(n,s.apiKey,t);var r,o,n=d.agent.getJwtInfoCopy();try{e.length>d.constants.URL_MAX_LENGTH||!s._.isEmpty(n)?(delete t.jzb,e=d.transmit.buildBaseDataUrl("segmentflag.json",s.apiKey,t),r=s._.extend({events:i},n),function(t,n){Yv(this,void 0,void 0,function*(){try{v((yield s.ajax.postJSON(t,n)).data)}catch(e){d.Events.segmentFlagsError.trigger("Error requesting new segment flags")}})}(e,r)):"script"===s.LOADER?(o=e,s.loadResource(o,s._.noop)):function(t){Yv(this,void 0,void 0,function*(){try{v((yield s.ajax.get(t)).data)}catch(e){d.Events.segmentFlagsError.trigger("Error requesting new segment flags")}})}(e)}catch(a){d.log.error("Failed to load segment flags",{error:a}),d.Events.segmentFlagsError.trigger("Error requesting new segment flags")}}}function m(e){return!(!c||c[e]===undefined)&&c[e]}function v(e){if(u&&(!s._.isString(e.id)||e.id===u)){let t={},n=[];if(e.segmentFlags){n=e.segmentFlags;for(let e=0;e<n.length;e++)t[n[e]]=!0}else e.flags&&(t=e.flags,n=Object.keys(t));var i=function(t={},n={}){var i=Object.keys(t),e=Object.keys(n);if(i.length!==e.length)return!0;for(let e=0;e<i.length;e++){var r=i[e];if(t[r]!==n[r])return!0}return!1}(c,t);s.segmentFlags=n,c=t,l=Date.now(),p=e.hash||null,Gn()&&d.agentStorage.write(M1,{flags:t,timestamp:l,hash:p}),a?i&&d.Events.segmentFlagsUpdated.trigger(s.segmentFlags):(a=!0,d.Events.segmentFlagsReady.trigger({flags:s.segmentFlags,fromCache:!1,cacheTimestamp:l})),d.log.info("successfully loaded segment flags"),u=null}}}class P1{constructor(e,t,n,i,r){this.listeners=[],this.latestPromptValue="",this.isActive=!0,this.lastSubmitTime=0,this.compositionState=new WeakMap,this.dom=e.dom,this._=e._,this.api=t,this.q=t.q,this.id=n,this._.isArray(i)||(this.api.log.error("inputCssSelectors must be an array, received:",typeof i),i=[]),this._.isArray(r)||(this.api.log.error("submitCssSelectors must be an array, received:",typeof r),r=[]),this.inputEls=this._.map(i,e=>new this.dom.Element(e)),this.submitEls=this._.map(r,e=>new this.dom.Element(e)),this.setupInputListeners(),this.setupSubmitListeners(),this.setupObserver()}isComposing(e){var t=e.target,t=t&&this.compositionState.get(t);return e.isComposing!==undefined?e.isComposing:t}isEnterKey(e){return"Enter"===e.code||"Enter"===e.key||13===e.keyCode}setupInputListeners(){this._.each(this.inputEls,e=>{e&&(e.addEventListener("compositionstart",e=>{e=e.target;e&&this.compositionState.set(e,!0)},!0),e.addEventListener("compositionend",e=>{e=e.target;e&&(this.compositionState.set(e,!1),this.capturePromptValue())},!0),e.addEventListener("compositionupdate",e=>{e=e.target;e&&this.compositionState.set(e,!0)},!0),e.addEventListener("blur",e=>{e=e.target;e&&this.compositionState.set(e,!1)},!0),e.addEventListener("input",e=>{this.isComposing(e)||this.capturePromptValue()},!0),e.addEventListener("change",e=>{this.capturePromptValue()},!0),e.addEventListener("keydown",e=>{this.isEnterKey(e)&&!this.isComposing(e)&&this.submit(this.latestPromptValue)},!0),e.addEventListener("keyup",e=>{this.isComposing(e)||this.capturePromptValue()},!0))})}setupSubmitListeners(){this._.each(this.submitEls,e=>{e&&(e.addEventListener("mousedown",e=>{var t=this.getPromptValue()||this.latestPromptValue;this.submit(t)},!0),e.addEventListener("keydown",e=>{this.isEnterKey(e)&&(e=this.getPromptValue()||this.latestPromptValue,this.submit(e))},!0))})}setupObserver(){this.promptContainer=new this.dom.Observer;var e=this._.filter(this.inputEls,e=>e),t=this._.filter(this.submitEls,e=>e);this.promptContainer.addObservers(...e,...t)}submit(e){if(e&&this.isActive){var t=Date.now();if(!(t-this.lastSubmitTime<2)){this.lastSubmitTime=t;const n={agentId:this.id,prompt:e};this._.each(this.listeners,e=>e(n))}}}capturePromptValue(e=!1){var t=this.getPromptValue();return!t&&e||(this.latestPromptValue=t),t}getPromptValue(){var e=this._.find(this.inputEls,e=>{if(e)try{var t=e.getText();return t&&t.trim()}catch(n){}return!1});if(e)try{return e.getText().trim()}catch(t){}return""}onSubmit(e){this.listeners.push(e)}suspend(){this.isActive=!1}resume(){this.isActive=!0,this._.each(this.inputEls,e=>{e&&e.get()}),this._.each(this.submitEls,e=>{e&&e.get()})}teardown(){this.promptContainer&&this.promptContainer.teardown(),this._.each(this.inputEls,e=>{e&&e.teardown()}),this._.each(this.submitEls,e=>{e&&e.teardown()})}}class D1{constructor(){this.name="PromptAnalytics",this.configName="aiAgents",this.prompts=[]}initialize(e,t){this.pendo=e,this.api=t,this._=this.pendo._,this.agentsCache=new Map,this.api.ConfigReader.addOption(this.configName,["pendoconfig","snippet"]),this.loadConfig(this.configName).then(e=>this.onConfigLoaded(e))["catch"](()=>{}),null!=(e=this.api.Events.guidesLoaded)&&e.on(()=>{this.reEvaluatePageRules()})}loadConfig(e){var{q:t,ConfigReader:n}=this.api,t=t.defer(),e=n.get(e);return t.resolve(e),t.promise}testPageRule(e,t,n="unknown"){let i=e;var r;return Array.isArray(e)?(r=this._.filter(e,e=>e&&""!==e.trim()),i=this._.map(r,e=>e.startsWith("//*/")?e.substring(1):e)):"string"==typeof e&&e.startsWith("//*/")&&(i=e.substring(1)),qd(i,t,{logger:this.api.log,context:"agent",id:n})}reEvaluatePageRules(){const n=jd();var e=this.api.ConfigReader.get(this.configName)||[];this._.each(this.prompts,e=>{var t=this.findAgentById(e.id);t&&this.testPageRule(t.pageRule,n,t.id)?e.resume():e.suspend()});const i=this._.map(this._.filter(this.prompts,e=>e.isActive),e=>e.id);this._.each(e,e=>{var t;this.isConversationAgent(e)||(t=this._.contains(i,e.id),this.testPageRule(e.pageRule,n,e.id)&&!t&&this.observePrompt(e))})}findAgentById(e){return this.agentsCache||(this.agentsCache=new Map),this.agentsCache.get(e)}isConversationAgent(e){return e.preset&&"chatgpt"!=e.preset}onConfigLoaded(e=[]){if(e&&this._.isArray(e)&&0!==e.length){var t=[],n=[];for(const i of e)this.isConversationAgent(i)||("network"===i.trackingMethod?t:(i.trackingMethod,n)).push(i);0<t.length&&(this.networkAgents=t,this.api.NetworkRequest.on({request:this.handleRequest,error:this.handleError})),this.agentsCache||(this.agentsCache=new Map),this.agentsCache.clear(),this._.each(e,e=>this.agentsCache.set(e.id,e)),this._.each(n,e=>{var t=jd();this.testPageRule(e.pageRule,t,e.id)&&this.observePrompt(e)})}}handleRequest({method:t,url:n,body:i}){const r=jd();this._.each(this.networkAgents,e=>{this.testPageRule(e.pageRule,r,e.id)&&this.api.analytics.collectEvent("prompt",{prompt:i||"",agentId:e.id,promptType:t,url:n},undefined,"agentic")})}handleError({error:e,context:t}){"fetch"==t&&this.api.log.debug("[PromptPlugin] Fetch tracking failed:",e),"xhr"==t&&this.api.log.debug("[PromptPlugin] XHR tracking failed:",e)}observePrompt(e){const{id:t,cssSelectors:n}=e;var i;this._.find(this.prompts,e=>e.id===t)||(e=this.parseCssSelector("input",n),i=this.parseCssSelector("submit",n),(e=new P1(this.pendo,this.api,t,e,i)).onSubmit(e=>{this.sendPromptEvent(e)}),this.prompts.push(e))}parseCssSelector(t,e){e=this._.filter(e,e=>e.type===t);return this._.map(e,e=>e.cssSelector)}sendPromptEvent(t){var e=this._.find(this.prompts,e=>e.id===t.agentId);e&&!e.isActive||(e=this._.extend({promptType:"request",agentType:"prompt"},t),this.api.analytics.collectEvent("prompt",e,undefined,"agentic"))}teardown(){this._.each(this.prompts,e=>e.teardown()),this.agentsCache&&this.agentsCache.clear(),this.api.NetworkRequest.off({request:this.handleRequest,error:this.handleError})}}var F1=new D1;class U1{initialize(e,{Events:t}){var{_:e,attachEvent:n}=this.pendo=e,i=e.bind(this.setForceShowFirstStepFlags,this);this.subscriptions=[n(t,"deliverablesLoaded",i),n(t,"urlChanged",i),n(t,"guideSeen",e.bind(this.clearForceShowFirstStepFlags,this))]}teardown(){this.pendo._.forEach(this.subscriptions,function(e){e()}),this.subscriptions.length=0}setForceShowFirstStepFlags(){var e=this["pendo"];const t=e["_"];t.forEach(e.guides,function(e){!t.get(e,"attributes.restartOnReload")||(e.forceShowFirstStep=!0)})}clearForceShowFirstStepFlags(e){var{_:t,findGuideById:n}=this.pendo,e=t.get(e,"data.0.props.guide_id");e&&(t=n(e))&&t.forceShowFirstStep&&(t.forceShowFirstStep=!1)}}var G1=new U1;const B1="sessionId";class H1{constructor(){this.name="SessionManager"}initialize(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"identify",_.bind(this.changeIdentity,this)),this.api.attachEvent(this.api.Events,"eventCaptured",_.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",18e5),this.suffix=this.api.ConfigReader.get("identityStorageSuffix"),this.api.agentStorage.registry.addLocal(B1,{cookieSuffix:this.suffix,isSecure:!0})}changeIdentity(e){var t;e&&e.data&&e.data.length&&({visitor_id:e,old_visitor_id:t}=e.data[0],e===t||this.pendo.isAnonymousVisitor(t)||this.expireSession())}teardown(){_.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0}isExpired(e,t){e=_.get(e,"timestamp");return!this.pendo._.isNumber(e)||t-e>this.inactivityDuration}expireSession(){var e=this.clearSessionInfo();return this.api.Events.sessionChanged.trigger(e),e}eventCaptured(t){if(t&&t.data&&t.data.length){var t=t.data[0],n=t.browser_time||(new Date).getTime();let e=this.sessionInfo();!t.hasUserInteraction&&"recording"===t.type||(this.isExpired(e,n)&&(e=this.expireSession()),this.storeLastInteractionEventInformation(e,n)),t.sessionId=e.sessionId}}sessionInfo(e=this.pendo.randomString(16)){let t=this.api.agentStorage.read(B1)||this.api.agentStorage.read(B1,!1,"");return t||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(B1,t)),JSON.parse(t)}clearSessionInfo(){return this.api.agentStorage.clear(B1),this.api.agentStorage.clear(B1,!1,""),this.sessionInfo()}storeLastInteractionEventInformation(e,t){e.timestamp=t,this.api.agentStorage.write(B1,JSON.stringify(e))}}var z1=new H1;const j1=["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"],q1=new RegExp(`(${j1.join("|")})`,"i"),W1=["facebook","twitter","linkedin","instagram","pinterest","tiktok","snapchat","twitch","reddit","quora","tumblr","flickr","discord","twitch","whatsapp","telegram","weibo","qq","line"],V1=["t.co","x.com"],J1=new RegExp(`(${W1.join("|")})`,"i");function K1(e,t){return eE(J1,e)||t.contains(V1,e)}const $1=["youtube","vimeo","dailymotion","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"],X1=new RegExp(`(${$1.join("|")})`,"i"),Y1=["amazon","ebay","walmart","etsy","shopify","shop","target","bestbuy","costco","temu","alibaba","aliexpress"],Z1=new RegExp(`(${Y1.join("|")})`,"i");const Q1=new RegExp(`(${["google performance max","microsoft audience network","facebook audience network"].join("|")})`,"i");function eE(e,t){return"self"!==t&&"direct"!==t&&null!==t.match(e)}function tE({referrer:e,currentHost:t}){if(!e||""===e)return"direct";e=new ni(e).hostname;let n="self";return n=e!==t?null==e?void 0:e.toLowerCase():n}const nE=new RegExp("^(.*cp.*|ppc|retargeting|paid)$"),iE=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i");function rE(e="",t){return-1!==e.replace(/[^a-zA-Z]/g,"").indexOf(t)}const oE=[[undefined,({medium:e,source:t,referrer:n,gclid:i,fbclid:r})=>!(e||t||"self"!==n||i||r)],["Direct",({source:e,medium:t,referrer:n})=>!(t||e&&"direct"!==e||"direct"!==n)],["Cross-network",({source:e,medium:t})=>rE(t,"crossnetwork")||e.match(Q1)],["Paid Search",({source:e,medium:t,referrer:n,gclid:i,_:r})=>i||rE(t,"paidsearch")||t.match(nE)&&(r.contains(j1,e)||eE(q1,n))],["Paid Social",({source:e,medium:t,referrer:n,fbclid:i,_:r})=>i||rE(t,"paidsocial")||t.match(nE)&&(r.contains(W1,e)||K1(n,r))],["Paid Video",({medium:e,source:t,referrer:n,_:i})=>rE(e,"paidvideo")||e.match(nE)&&(i.contains($1,t)||eE(X1,n))],["Paid Shopping",({medium:e,source:t,referrer:n,_:i})=>rE(e,"paidshopping")||"shopping"===e||(eE(Z1,n)||i.contains(Y1,t))&&e.match(nE)],["Display",({medium:e,_:t})=>t.contains(["display","cpm","banner","interstitial","expandable","programmatic"],e)||rE(e,"display")],["Paid Other",({medium:e})=>rE(e,"paidother")||e.match(nE)],["Organic Search",({source:e,medium:t,referrer:n,_:i})=>rE(t,"organic")&&i.contains(j1,e)||!t&&eE(q1,n)],["Organic Social",({source:e,medium:t,referrer:n,_:i})=>!t&&K1(n,i)||rE(t,"social")||i.contains(W1,e)&&!t.match(nE)],["Organic Video",({medium:e,referrer:t})=>rE(e,"video")||!e&&eE(X1,t)],["Organic Shopping",({medium:e,referrer:t})=>rE(e,"organicshopping")||!e&&eE(Z1,t)],["Email",({source:e,medium:t})=>null!==t.match(iE)||null!==e.match(iE)||rE(t,"newsletter")],["Affiliates",({medium:e})=>rE(e,"affiliate")||rE(e,"partner")],["SMS",({source:e,medium:t})=>rE(e,"sms")||rE(t,"sms")],["Push Notifications",({source:e,medium:t})=>t.endsWith("push")||rE(t,"mobile")||rE(t,"notification")||rE(e,"firebase")],["Audio",({medium:e})=>rE(e,"podcast")||rE(e,"audio")],["Referral",({medium:e,referrer:t})=>rE(e,"referral")||!!t&&"self"!==t&&"direct"!==t],["Other",({medium:e,source:t})=>!!e||!!t]],aE="utm",sE="enableFullUtmReferrer";class dE{constructor(){this.name="WebAnalytics"}initialize(e,t){this.pendo=e;var n=(this.api=t)["ConfigReader"],n=(n.addOption(sE,[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))],this.suffix=this.api.ConfigReader.get("identityStorageSuffix"),this.api.agentStorage.registry.addLocal(aE,{cookieSuffix:this.suffix,isSecure:!0});let i=this.loadParameters(t.agentStorage);i&&!e._.isEmpty(i)||(i=this.extractParameters(window.location.href,document.referrer)),this.storeParameters(i,t.agentStorage)}extractParameters(e,t){var n,i,r,o,a,s,d=new ni(e).hostname,u=tE({referrer:t,currentHost:d}),e=this.api.util.parseUrl(e);return e?(s=(e=this.pendo._.extend({},e.fragmentQuery,e.query)).utm_source,n=e.utm_medium,i=e.utm_campaign,r=e.utm_term,o=e.utm_content,a=e.gclid,e=e.fbclid,(s={source:s,medium:n,campaign:i,term:r,content:o}).channel=this.calculateUtmChannel({referrerValue:u,utm:s,gclid:a,fbclid:e}),t&&this.api.ConfigReader.get(sE)?s.referrer=t:"self"===u?s.referrer=d:"direct"!==u&&(s.referrer=u),s):{}}calculateUtmChannel({referrerValue:e,utm:t,gclid:n,fbclid:i}){var r=(null==(r=t.medium)?void 0:r.toLowerCase())||"",t=(null==(t=t.source)?void 0:t.toLowerCase())||"";const o={_:this.pendo._,referrer:e,source:t,medium:r,gclid:n,fbclid:i};e=this.pendo._.find(oE,e=>e[1](o));if(e)return e[0]}storeParameters(e,t){0<this.pendo._.size(e)&&t.write(aE,JSON.stringify(e))}loadParameters(e){e=e.read(aE)||e.read(aE,!1,"");return e?JSON.parse(e):null}teardown(){for(var e of this.subscriptions)e();this.subscriptions.length=0}addUtmToEvent(e){let t;try{t=this.loadParameters(this.api.agentStorage)}catch(n){}t&&(e.data[0].utm=t)}sessionChanged(){var e=this.api.agentStorage,t=(e.clear(aE),e.clear(aE,!1,""),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)}}var uE=new dE;function cE(e,t){_.isEmpty(t)||(e.eventProperties=_.extend({},e.eventProperties,t))}function lE(e){e=hE({target:e});return R.onClickCaptured.trigger(e),e.getEventProperties()}function pE(e,t){t=hE({event:t,target:e});return R.onEventCaptured.trigger(t),t.getEventProperties()}function hE(e){const n={};return _.extend({getEventProperties(){return n},addEventProperty(e,t){_.isString(e)&&!_.isUndefined(t)?n[e]=t:x.error("Failed to add click event property")}},e)}class fE{constructor(){this.name="EventCaptured"}initialize(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"eventCaptured",_.bind(this.eventCaptured,this))]}teardown(){_.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0}eventCaptured(e){var t;e&&e.data&&e.data.length&&(t=e.data[0],e=(e=e.data[1])&&e.target,"click"===t.type&&cE(t,lE(e)),cE(t,pE(e,t)))}}var gE=new fE;function mE(i){var t;!function(e){e.getVersion=nt,e.isReady=My,e.pageLoad=zd,e.getVisitorId=Xn,e.getAccountId=Yn,e.clearSession=ei,e.VERSION=Qe,e.LOADER=tt,e.flushNow=s(Cs),e.teardown=Hd(Jy),e.initGuides=s(hm),e.loadGuides=s($g),e.findGuideByName=s(nu),e.hideGuides=s(ng),e.onGuideDismissed=s(sg),e.goToStep=ug,e.onGuideAdvanced=s(cg),e.onGuidePrevious=s(lg),e.onGuideSnoozed=dg,e.startGuides=s(bh),e.stopGuides=s(wh),e.defaultCssUrl=s($f()),e.getActiveGuides=function(e={channel:$d.DEFAULT}){return g(e)},e.getActiveGuide=function(e={channel:$d.DEFAULT}){return Rm(e)},e.guideSeenTimeoutLength=Xb.getGuideSeenTimeoutLength(),e.guidesPayload=Bg,e.areGuidesDisabled=s(fm),e.setGuidesDisabled=s(mm),e.areGuidesDelayed=s(gm),e.buildNodeFromJSON=Zy.buildNodeFromJSON,e.flexElement=s(Zy.flexElement),e.GuideFactory=s(Ku),e.dom=M,e.getText=La,e.attachEvent=s(F),e.detactEvent=s(pf),e.frames={setFrameVisibility:wu},e.log=fb,e.enableLogging=ub,e.disableLogging=cb,e.setActiveContexts=wb,e.showLogHistory=yb,e.getLoggedContexts=bb,e.isDebuggingEnabled=_.noop,e.enableDebugging=_.noop,e.disableDebugging=_.noop,e.addDebuggingFunctions=_.noop,e.stopSendingEvents=s(Ss.lock),e.startSendingEvents=s(Ss.unlock),e.isSendingEvents=s($o),e.fromByteArray=u.uint8ToBase64,e.events=s(Tu),e.track=s(Ib),e.trackAgent=s(_b),e.validateInstall=Cb,e.validateNativeMethods=xb,e.validateBuiltInGlobals=Tb,e.validateUrl=Rb,e.validateEnvironment=Ob,e.doesExist=I,e.generate_unique_id=Dn,e.TEMP_PREFIX=On,e.SIZE_UNIQUE_ID=Nn,e._defaultLauncher_queue=[],e.defaultLauncher=()=>{e._defaultLauncher_queue.push(arguments)},e.toggleLauncher=_.noop,e.showLauncher=_.noop,e.hideLauncher=_.noop,e.removeLauncher=_.noop,e.identify=Hl,e.get_visitor_id=Xn,e.set_visitor_id=function(e){Hl(e)},e.get_account_id=Yn,e.set_account_id=function(e){Hl(v(),e)},e.getSerializedMetadata=Wl,e.compress=dt,e.squeezeAndCompress=dt,e.randomElement=ht,e.randomString=ft,e.toUTF8Array=rt,e.getNumberFromText=St,e._addCredits=s(pg),e.getCurrentUrl=jd,e.getNormalizedUrl=jd,e.testUrlForStep=s(Wd),e.showGuideByName=s(Dg),e.showGuideById=s(Fg),e.designerv2=Iv,e.P2AutoLaunch=s(Hv),e.BuildingBlocks=s(Nb),e.onConnectMessage=_.noop,e.buffers=Ss,e.guideDev=s(Yy),e.badgesShown=s(Kd),e.get_pendo_cookie=Xt,e.DEFAULT_EXPIRE_LEN=Zt,e.set_pendo_cookie=en,e.loadResource=qa,e.loadWatcher=Wa,e.messageLogger=Va,e.messageReceiver=Ja,e.messageValidator=Ka,e.MESSAGE_TYPES=Xa,e.messageDispatcher=Qa,e.moduleRegistry=es,e.addModule=ts,e.hasModule=s(ns),e.findModuleByName=s(is),e.modulesWaiting=rs,e.loadModules=os,e.moduleLoader=as,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=je,e.url=L,e.location=Jb,e.Sizzle=Ar,e._=_,e.ajax=Gr,e.Zlib=ut,e.guideContent=s(Zu.guideContent),e.receiveDomStructureJson=s(Zu.receiveDomStructureJson),e.addExtension=Ql,e.getConfigValue=S.get}(i),(t=i).SHADOW_STYLE="",_.extend(t,{_showElementGuide:_.noop,flushEventCache:t0(null,"flushEventCache",Qb),HOST:co,MAX_LENGTH:vs,MAX_NUM_EVENTS:ms,_createToolTip:_.noop,_get_tooltip_dimensions:_.noop,_isOldIE:s(t0(xe,"_isOldIE",Zb)),_logMessage:t0(Bo,"_logMessage",Zb),_sendEvent:t0(null,"_sendEvent",Qb),_sendGuideEvent:t0(null,"_sendGuideEvent",Qb),_stopEvents:!1,_storeInCache:t0(null,"_storeInCache",Qb),_writeEventImgTag:t0(null,"_writeEventImgTag",Qb),_writeImgTag:s(t0(jo,"_writeImgTag",Zb)),getUA:t0(Oe,"getUA",Zb),ifDebugThen:t0(null,"ifDebugThen",Qb),send_event:s(t0(ed,"send_event","has changed to pendo.cache.createEvent")),wire_page:t0(df,"wire_page",Zb),messageOriginTester:t0(null,"messageOriginTester",Qb),findGuideBy:s(tu),findGuideById:s(y),findStepInGuide:s(iu),_updateGuideStepStatus:s(eg),_addCloseButton:s(Zf),initialize:zy,getEventCache:s(am),processEventCache:s(om),isGuideShown:s(Qd),_getNextStepInMultistep:s(Pg),attachEvent:F,detachEvent:pf,updateOptions:Bl,createLauncher:_.constant({}),initLauncher:_.noop,_addGuideToLauncher:_.noop,launcherToolTipDiv:null,isAnonymousVisitor:(e=t.get_visitor_id())=>Un(e),DEFAULT_VISITOR_ID:Hn,shouldIdentityChange:_.constant(!1),read:T.read,write:T.write,_delete_cookie:T.clear,_set_cookie:Jt,_get_cookie:Vt,get_cookie_key:$t,ENV:Ve,eventCache:s(ps),_getOpacityStyles:t0(null,"_getOpacityStyles",Zb),setStyle:ia,_createGuideEvent:s(Ag),seenGuide:s(Cg),dismissedGuide:s(xg),advancedGuide:s(Tg),seenTime:0,placeBadge:s(wf),isBadge:s(su),showPreview:s(t0(Sg,"showPreview",Zb)),removeAllBadges:s(Sf),tellMaster:ss,DEFAULT_TIMER_LENGTH:fh,registerMessageHandler:Ya,_get_offset:s(da),_shouldAutoDisplayGuide:_.constant(!1),removeBadge:Ef,_showLightboxGuide:_.noop,_showGuide:s(Ig),getElementForGuideStep:s(fu),isElementVisible:Ta,getTooltipDivId:s(bg),setupWatchOnTooltip:s(wg),letters:"",charset:"",detectMaster:ds,listenToMaster:t0(null,"listenToMaster",Qb),start:ff,SEND_INTERVAL:gs,stageGuideEvent:s(Lg),startStagedTimer:Ng,isURLValid:bs,getURL:ws,_get_screen_dim:s(oa),_isInViewport:s(aa),_getCss3Prop:ta,waitThenStartGuides:s(gh),guidesProcessingThreadHandle:hh,getMode:_.constant("default")}),_.each(["identify","updateOptions","pageLoad","track","trackAgent"],function(t){var n=i[t];i[t]=function(){try{My()?n.apply(this,arguments):ue(i,t,arguments)}catch(e){x.critical(e)}}})}var vE,yE,bE,wE,SE,EE=ge(),IE=function(e){var t=Q(e)?{}:window,n=document.currentScript||ne(document.getElementsByTagName("script"),e.apiKey);let i=e.pendoGlobalKey||"pendo";return n&&(i=n.getAttribute("data-pendo-global-key")||i,e.pendoGlobalKey=i),E=t[i]=t[i]||{}}(EE);return vE=IE,EE=EE,T.registry.addLocal(Ks,{isPlain:!0,serializer:JSON.stringify,deserializer:Ft,localStorageOnly:!0}),fe(EE),Ve=me("env")||Ve,$e=me("server")||$e,Xe=me("assetHost")||Xe,Ye=me("assetPath")||Ye,Ze=me("designerServer")||Ze,Je=me("globalBucket")||Je,Ke=me("subscriptionBucket")||Ke,yE=Ie()?Ve+"_ext":Ve,Qe=et+"_"+yE,!Q(EE)&&(yE=EE,wE=vE,SE=Xs(),le(yE,wE,SE)||pe(yE,wE,SE))||vE&&vE.VERSION||(!je.isChromeExtension||(yE=EE)&&yE.useAssetHostForDesigner||console.warn("Pendo Agent detected running in a Chrome extension with setup that is incompatible with manifest V3. Please follow the linked instructions to maintain manifest V3 compatibility: https://www.npmjs.com/package/@pendo/agent#manifest-v3-extensions"),S.get("disablePendo")?(bE=vE,_.each(["initialize","identify","updateOptions","pageLoad","track","trackAgent"],function(e){bE[e]=function(){console.log("Pendo is currently disabled.")}})):((wE=k).registerModule("debugger",L0),wE.registerModule("errorLog",m0),wE.registerModule("frames",Fi),wE.registerModule("guideUpdate",n),wE.registerModule("guideState",t),wE.registerModule("healthCheck",i),wE.registerModule("location",e),wE.registerModule("metadata",k0),wE.registerModule("preview",M0),wE.registerModule("nodeAttr",D0),wE.registerModule("networkUrl",F0),go(),Ku.behaviors=[Oh,i0,Wu.Guide,r0,a0,s0,d0],$u.behaviors=[Oh,f0,u0,Qu,Wu.Step,c0,g0],Qu.reset(),k.dispatch("frames/init"),fb.init(),si.wrapSizzle(Ar,Dy.shadowDom),Ar.intercept(yu),mE(vE),x.addEventListener("log",_.partial(k.dispatch,"errorLog/write")),wy(z0),wy(j0),wy(Y0),wy(Q0),wy(sw),wy(mw),wy(ww),wy(Dw),wy(Fw),wy(Bw),wy(Hw),wy(zw),wy(h1),wy(_1),wy(F1),wy(G1),wy(L1()),wy(z1),wy(Xb),wy(uE),wy(gE),SE=vE._q,EE=Vy,S.get("disableAutoInitialize")||(SE=(SE=qy(SE))&&1<SE.length?SE[1]:{},_.get(SE,Uy)||S.get(Uy)?EE():By.push(ff(EE))))),IE}function TextCapture(){var i,r,n,o={};return{name:"TextCapture",initialize:function(e,t){r=t,(i=e).excludeAllText=r.ConfigReader.get("excludeAllText");t=r.ConfigReader.get("allowedText");o=i._.reduce(t,function(e,t){return i._.isString(t)&&(e[t]=!0),e},{}),r.NodeSerializer.add(a),n=i._.partial(s,e),r.Events.on("eventCaptured",n)},teardown:function(){r.NodeSerializer.remove(a),r.Events.off("eventCaptured",n)},isEnabled:d,isTextCapturable:u,hasWhitelist:c,serializer:a,guideActivity:s};function a(e,t,n){return t===n&&(d()||!d()&&c())&&u(t=i.getText(n,128))&&(e.txt=c()?r.util.trim.call(t):t),e}function s(e,n){if(d()){const i=e["_"],r=n.data[0];if(r&&"guideActivity"===r.type){n=i.reduce(e.getActiveGuides({channel:"*"}),(e,t)=>t.isShown()?e.concat(i.filter(t.steps,e=>e.isShown())):e,[]);if(n.length){const o=e.BuildingBlocks.BuildingBlockGuides.findDomBlockInDomJson;let t;i.find(n,e=>!!e.domJson&&(t=o(e.domJson,function(e){return e.props&&e.props.id&&e.props.id===r.props.ui_element_id}))),t&&(r.props.ui_element_text=t.content)}}}}function d(){return!i.excludeAllText}function u(e){var t=r.util.trim.call(e);return d()||i._.has(o,[t])||i._.has(o,[e])}function c(){return 0<i._.size(o)}}var substitutionRegex="\\{(?:\\s?)([^.\\s]?visitor|account|parentAccount)\\.([^|\\s/]*)(?:\\s?\\|\\s?([^}]+|[\\/s]+))?(?:\\s?\\/\\s?){1}\\}",skipStepString="{skipStep:* *(auto|\\d+)\\/}",goToMiddleString="(?!0)(\\d+)",goToString="({goto-".concat(goToMiddleString,"\\/})"),containerSelector='[id^="pendo-guide-container"]';function lookupGuideButtons(e,t){if(void 0===t&&(t=[]),"button"===e.type&&e.actions&&t.push(e),e.children)for(var n=0,i=e.children;n<i.length;n++)lookupGuideButtons(i[n],t);return t}function removeMarkdownSyntax(e,t,n,i){var r;i.dom(e).hasClass("_pendo-nps-open-text-poll-question")&&(e.innerHTML=null==(r=e.innerHTML)?void 0:r.replace(t,n)),"button"!==e.localName&&"label"!==e.localName&&"a"!==e.localName||(e.textContent=e.textContent.replace(t,n)),0<e.children.length||(i.dom(e).hasClass("_pendo-simple-text")||i.dom(e).hasClass("_pendo-text-plain")||i.dom(e).hasClass("_pendo-text-list-item")||i.dom(e).hasClass("_pendo-text-link"))&&(e.textContent=e.textContent.replace(t,n))}var guideMarkdownUtil={substitutionRegex:substitutionRegex,skipStepString:skipStepString,goToString:goToString,containerSelector:containerSelector,lookupGuideButtons:lookupGuideButtons,removeMarkdownSyntax:removeMarkdownSyntax};function getZoneSafeMethod(e,t,n){void 0===n&&(n=window);var i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}const goToRegex=new RegExp(guideMarkdownUtil.goToString),PollBranching={name:"PollBranching",script(r,o,a){let s=!1;var e=initialBranchingSetup(r,a);!e||1<a._.size(e)||this.on("beforeAdvance",e=>{var t=0===r.guideElement.find("[branching] .pendo-radio:checked").length,n=r.guideElement.find("[branching] .pendo-radio:checked + label")[0];let i;n&&(i=a._.isNull(n.getAttribute("goToStep"))),s||t||i||(s=!0,branchingGoToStep(e,r,o,a))})},test(e,t,n){e=null==(e=e.guideElement)?void 0:e.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return!n._.isUndefined(e)&&n._.size(e)},designerListener(i){var e=i.dom.getBody();function r(e,t){return`<svg id="pendo-ps-branching-svg" viewBox="0 0 24 24" fill="none"
|
|
37
|
-
style="margin-left: 5px;
|
|
38
|
-
height:${t}; width:${t}; display:inline; vertical-align:middle;" xmlns="http://www.w3.org/2000/svg">
|
|
39
|
-
<g stroke-width="0"></g>
|
|
40
|
-
<g stroke-linecap="round" stroke-linejoin="round"></g>
|
|
41
|
-
<g> <circle cx="4" cy="7" r="2" stroke="${e}"
|
|
42
|
-
stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>
|
|
43
|
-
<circle cx="20" cy="7" r="2" stroke="${e}"
|
|
44
|
-
stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>
|
|
45
|
-
<circle cx="20" cy="17" r="2" stroke="${e}" stroke-width="2"
|
|
46
|
-
stroke-linecap="round" stroke-linejoin="round"></circle>
|
|
47
|
-
<path d="M18 7H6" stroke="${e}" stroke-width="2"
|
|
48
|
-
stroke-linecap="round" stroke-linejoin="round"></path>
|
|
49
|
-
<path d="M7 7V7C8.65685 7 10 8.34315 10 10V15C10 16.1046 10.8954 17 12 17H18"
|
|
50
|
-
stroke="${e}" stroke-width="2" stroke-linecap="round"
|
|
51
|
-
stroke-linejoin="round"></path> </g></svg>`}new(getZoneSafeMethod(i._,"MutationObserver"))(function(e){i._.each(e,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;
|
|
52
|
-
font-style: italic; margin-top: 0px;" class="branching-wrapper"
|
|
53
|
-
name="${e.dataset.pendoPollId}">
|
|
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:!0})}};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],r=(null==r?void 0:r.getAttribute("goToStep"))-1;r<0||(r={destinationStepId:n.steps[r].id,step:t},i.goToStep(r),e.cancel=!0)}var DANGEROUS_URL_SCHEME=/^\s*(javascript|data|vbscript):/i;function encodeMetadataForUrl(e,t){void 0===t&&(t="");e=e===undefined||null===e?"":String(e);return-1!==t.indexOf("?")||-1!==t.indexOf("#")?window.encodeURIComponent(e):!(-1!==t.indexOf(":"))&&DANGEROUS_URL_SCHEME.test(e)?"":window.encodeURI(e)}const MetadataSubstitution={name:"MetadataSubstitution",script(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(i){var e=i.dom.getBody();i.designerv2&&(i.designerv2.runMetadataSubstitutionForDesignerPreview=function(){var e,t;document.querySelector(guideMarkdownUtil.containerSelector)&&(e=null==(e=i.designerv2.currentlyPreviewedGuide)?void 0:e.steps[0])&&(t=findSubstitutableElements(i),e.buildingBlocks&&findSubstitutableUrlsInJson(e.buildingBlocks,t,i),i._.size(t))&&(i._.each(t,function(e){i._.isUndefined(e)||processPlaceholder(e,i)}),updateGuideContainer("pendo-g-"+e.id,e.guideElement,i))});new(getZoneSafeMethod(i._,"MutationObserver"))(function(e){i._.each(e,function(e){var t,n;e.addedNodes.length&&document.querySelector(guideMarkdownUtil.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:!0})}};function processPlaceholder(e,t){for(var n,{data:i,target:r}=e,o=new RegExp(guideMarkdownUtil.substitutionRegex);n=matchPlaceholder(e,o);){var a=Array.isArray(n)&&2<=n.length,s="textContent"===r?i[r]:decodeURI(!i.getAttribute||"href"!==r&&"value"!==r?i[r]:i.getAttribute(r)||""),a=a?n:o.exec(s);a&&substituteMetadataByTarget(i,r,getSubstituteValue(a,t),a)}}function matchPlaceholder(e,t){return("textContent"===e.target?e.data[e.target]:(e=!e.data.getAttribute||"href"!==e.target&&"value"!==e.target?e.data[e.target]:e.data.getAttribute(e.target)||"",decodeURI(e))).match(t)}function getMetadataValueCaseInsensitive(e,t,n){t=e&&e[t];if(!t||"object"!=typeof t)return undefined;e=Object.prototype.hasOwnProperty.call(t,n)?t[n]:undefined;if(e!==undefined)return e;const i=n.toLowerCase();e=Object.keys(t).find(e=>e.toLowerCase()===i);return e!==undefined?t[e]:undefined}function getSubstituteValue(t,n){if(!n._.isUndefined(t[1])&&!n._.isUndefined(t[2])){var i=t[1],r=t[2],t=t[3];if(!n._.isUndefined(i)&&!n._.isUndefined(r)){let e=getMetadataValueCaseInsensitive(n.getSerializedMetadata(),i,r);return e=e!==undefined&&null!==e?e:t||""}}}function substituteMetadataByTarget(e,t,n,i){var r,o,a=e&&"function"==typeof e.getAttribute,a="href"!==t&&"value"!==t||!a?e[t]:e.getAttribute(t)||"";"href"===t||"value"===t?(o=encodeMetadataForUrl(n,(r=decodeURI(a)).slice(0,r.indexOf(i[0]))),e[t]=r.replace(i[0],o)):e[t]=a.replace(i[0],n)}function updateGuideContainer(e,t,n){n.designer&&!n._.size(n.dom("#pendo-ps-substitution-icon"))&&n.dom(guideMarkdownUtil.containerSelector).append(substitutionIcon("#999","30px")),n.flexElement(n.dom(guideMarkdownUtil.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(guideMarkdownUtil.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">
|
|
55
|
-
<svg id="pendo-ps-substitution-icon" viewBox="0 0 24 24"
|
|
56
|
-
preserveAspectRatio="xMidYMid meet"
|
|
57
|
-
height=${t} width=${t} title="Metadata Substitution"
|
|
58
|
-
style="bottom:5px; right:10px; position: absolute;"
|
|
59
|
-
fill="none" xmlns="http://www.w3.org/2000/svg" stroke="${e}"
|
|
60
|
-
transform="matrix(1, 0, 0, 1, 0, 0)rotate(0)">
|
|
61
|
-
<g stroke-width="0"></g>
|
|
62
|
-
<g stroke-linecap="round" stroke-linejoin="round"
|
|
63
|
-
stroke="${e}" stroke-width="0.528"></g>
|
|
64
|
-
<g><path fill-rule="evenodd" clip-rule="evenodd"
|
|
65
|
-
d="M5 5.5C4.17157 5.5 3.5 6.17157 3.5 7V10C3.5 10.8284
|
|
66
|
-
4.17157 11.5 5 11.5H8C8.82843 11.5 9.5 10.8284 9.5
|
|
67
|
-
10V9H17V11C17 11.2761 17.2239 11.5 17.5 11.5C17.7761
|
|
68
|
-
11.5 18 11.2761 18 11V8.5C18 8.22386 17.7761 8 17.5
|
|
69
|
-
8H9.5V7C9.5 6.17157 8.82843 5.5 8 5.5H5ZM8.5 7C8.5
|
|
70
|
-
6.72386 8.27614 6.5 8 6.5H5C4.72386 6.5 4.5 6.72386
|
|
71
|
-
4.5 7V10C4.5 10.2761 4.72386 10.5 5 10.5H8C8.27614
|
|
72
|
-
10.5 8.5 10.2761 8.5 10V7Z" fill="${e}"></path>
|
|
73
|
-
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
74
|
-
d="M7 13C7 12.7239 6.77614 12.5 6.5 12.5C6.22386 12.5
|
|
75
|
-
6 12.7239 6 13V15.5C6 15.7761 6.22386 16 6.5
|
|
76
|
-
16H14.5V17C14.5 17.8284 15.1716 18.5 16 18.5H19C19.8284
|
|
77
|
-
18.5 20.5 17.8284 20.5 17V14C20.5 13.1716 19.8284 12.5
|
|
78
|
-
19 12.5H16C15.1716 12.5 14.5 13.1716 14.5
|
|
79
|
-
14V15H7V13ZM15.5 17C15.5 17.2761 15.7239 17.5 16
|
|
80
|
-
17.5H19C19.2761 17.5 19.5 17.2761 19.5 17V14C19.5
|
|
81
|
-
13.7239 19.2761 13.5 19 13.5H16C15.7239 13.5 15.5
|
|
82
|
-
13.7239 15.5 14V17Z" fill="${e}"></path> </g></svg></div>`}const requiredElement='<span class="_pendo-required-indicator" style="color:red; font-style:italic;" title="Question is required"> *</span>',requiredSyntax="{required/}",RequiredQuestions={name:"RequiredQuestions",script(r,e,o){var t;let n=[],i=null==(t=guideMarkdownUtil.lookupGuideButtons(r.domJson))?void 0:t.filter(e=>e.actions.find(e=>"submitPoll"===e.action||"submitPollAndGoToStep"===e.action));const a=function(){var e=function(){const e=o._.toArray(r.guideElement.find(`[class*=-poll-question]:contains(${requiredSyntax})`)),n=o._.toArray(r.guideElement.find(`[data-pendo-poll-id]:contains(${requiredSyntax})`)),t=o._.filter(n,t=>!o._.some(n,e=>e!==t&&t.contains(e))),i=o._.uniq(e.concat(t));return o._.reduce(i,(e,t)=>(t.classList.contains("_pendo-yes-no-poll-question")||e.push(t),e),[])}();e&&o._.forEach(e,e=>{var t=e.getAttribute("data-pendo-poll-id"),t=(n.push(t),r.guideElement.find(`#${e.id} *, #`+e.id)),e=o._.find(t,s)||e,t=(o._.each(t,e=>{guideMarkdownUtil.removeMarkdownSyntax(e,requiredSyntax,"",o)}),o.dom(e));0===t.find("._pendo-required-indicator").length&&((e=t.find("p"))&&e.length?o.dom(e[0]):t).append(requiredElement)});o._.size(n)&&(0===o.dom("#_pendo-guide-required-disabled").length&&o.dom("head").append(`<style type=text/css
|
|
83
|
-
id=_pendo-guide-required-disabled>
|
|
84
|
-
._pendo-button:disabled, ._pendo-buttons[disabled] {
|
|
85
|
-
border: 1px solid #999999 !important;
|
|
86
|
-
background-color: #cccccc !important;
|
|
87
|
-
color: #666666 !important;
|
|
88
|
-
pointer-events: none !important;
|
|
89
|
-
}
|
|
90
|
-
</style>`),u(i));return e}();function s(e){return o._.some(e.childNodes,e=>3===e.nodeType&&e.nodeValue&&-1!==e.nodeValue.indexOf(requiredSyntax))}function d(n){if(0!==n.length){let e=!0,t=[];t=t.concat(o._.map(n,e=>{e=e.getAttribute("data-pendo-poll-id"),e=r.guideElement.find(`
|
|
91
|
-
[data-pendo-poll-id=${e}] textarea,
|
|
92
|
-
[data-pendo-poll-id=${e}] input:text,
|
|
93
|
-
[data-pendo-poll-id=${e}] select,
|
|
94
|
-
[data-pendo-poll-id=${e}] input:radio:checked`);if(e&&e.length&&e[0].value)return e[0].value})),(e=o._.contains(t,undefined)||o._.isEmpty(t)?!1:e)?(n=i,o._.each(n,function(e){r.guideElement.find("#"+e.props.id)[0]&&(r.guideElement.find("#"+e.props.id)[0].disabled=!1,r.guideElement.find("#"+e.props.id)[0].parentElement.title="")})):u(i)}}function u(e){o._.each(e,function(e){r.guideElement.find("#"+e.props.id)[0]&&(r.guideElement.find("#"+e.props.id)[0].disabled=!0,r.guideElement.find("#"+e.props.id)[0].parentElement.title="Please complete all required questions.")})}a&&(o._.forEach(a,e=>{e.classList.contains("_pendo-open-text-poll-question")&&(e=e.dataset.pendoPollId,r.attachEvent(r.guideElement.find(`[data-pendo-poll-id=${e}]._pendo-open-text-poll-input`)[0],"input",function(){d(a)}))}),r.attachEvent(r.guideElement.find(guideMarkdownUtil.containerSelector)[0],"click",function(e){e.target.classList.contains("_pendo-button")||d(a)}))},test(e,t,n){var i=null==(i=e.guideElement)?void 0:i.find(`[class*=-poll-question]:contains(${requiredSyntax})`),e=null==(e=e.guideElement)?void 0:e.find(`[data-pendo-poll-id]:contains(${requiredSyntax})`);return!n._.isUndefined(i)&&n._.size(i)||!n._.isUndefined(e)&&n._.size(e)},designerListener(a){const s=[];var e=a.dom.getBody();new(getZoneSafeMethod(a._,"MutationObserver"))(function(e){a._.each(e,function(e){var t=a._.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], [id^=survey-item-wrapper__]"))&&a._.each(t,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;var i,r,o,e=a.dom(`[class*="-poll-question"][data-pendo-poll-id=${t}]`)[0]||a.dom(`.bb-text[data-pendo-poll-id=${t}]`)[0];-1<((n=e?e.textContent:n)?n.indexOf(requiredSyntax):-1)?(a._.each(a.dom(`[data-pendo-poll-id=${t}]:not(.pendo-radio)`),e=>{a._.each(a.dom(`#${e.id} *:not(".pendo-radio"), #${e.id}:not(".pendo-radio")`),e=>{guideMarkdownUtil.removeMarkdownSyntax(e,requiredSyntax,"",a)})}),r=(e=`.bb-text[data-pendo-poll-id=${t}]`)+" ._pendo-required-indicator",a._.each(a.dom((o=e+" p")+", "+(i=e+" li")),e=>{a._.each(e.childNodes,e=>{3===e.nodeType&&-1!==e.nodeValue.indexOf(requiredSyntax)&&(e.nodeValue=e.nodeValue.split(requiredSyntax).join(""))})}),0===a.dom(r).length&&(0!==a.dom(o).length||0!==a.dom(i).length?(a.dom(o).append(requiredElement),a.dom(i)):a.dom(e)).append(requiredElement),a._.contains(s,t)?-1!==(r=s.indexOf(t))&&s.splice(r,1):s.push(t)):a._.contains(s,t)&&-1!==(o=s.indexOf(t))&&s.splice(o,1)})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!0})}},skipStepRegex=new RegExp(guideMarkdownUtil.skipStepString),SkipToEligibleStep={script(i,r,o){let n=!1,a=!1;var e=i.guideElement.find(guideMarkdownUtil.containerSelector),t=e.attr("aria-label");let s=skipStepRegex.exec(t)[1];function d(e,t){var n=u(r.getPositionOfStep(i),"next",e),e=u(r.getPositionOfStep(i)-2,"previous",e);return n&&"next"==t&&o.goToStep({destinationStepId:n,step:i}),e&&"previous"==t&&o.goToStep({destinationStepId:e,step:i}),"next"===t?n:e}function u(e,t,n){var i;if(!o._.isNaN(e))return(i=r.steps[e])&&!i.canShow()?"auto"!==n?r.steps[n-1]:"next"===t?u(e+1,"next",n):u(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=d(s,"next"),!n&&s&&(n=!0,o.goToStep({destinationStepId:t.id,step:i}),e.cancel=!0))}),this.on("beforePrevious",e=>{var t;o._.isUndefined(s)||(t=d(s,"previous"),!a&&s&&(a=!0,o.goToStep({destinationStepId:t.id,step:i}),e.cancel=!0))})},test(e,t,n){e=null==(e=e.guideElement)?void 0:e.find(guideMarkdownUtil.containerSelector).attr("aria-label");return n._.isString(e)&&-1!==e.indexOf("{skipStep")},designerListener(n){var e=n.dom.getBody();new(getZoneSafeMethod(n._,"MutationObserver"))(function(e){n._.each(e,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(guideMarkdownUtil.containerSelector)[0])?void 0:t.getAttribute("aria-label"))&&e.match(skipStepRegex)&&(t=e.match(skipStepRegex)[0],e.replace(t,""),n.dom("#_pendoSkipIcon").length||n.dom(guideMarkdownUtil.containerSelector).append(`<div title="Skip step added"><svg id="_pendoSkipIcon" version="1.0" xmlns="http://www.w3.org/2000/svg"
|
|
95
|
-
width="${t="30px"}" height="${t}" viewBox="0 0 512.000000 512.000000"
|
|
96
|
-
preserveAspectRatio="xMidYMid meet" style="bottom:5px; right:10px; position: absolute;">
|
|
97
|
-
<g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"
|
|
98
|
-
fill="${"#999"}" stroke="none">
|
|
99
|
-
<path d="M2185 4469 c-363 -38 -739 -186 -1034 -407 -95 -71 -273 -243 -357
|
|
100
|
-
-343 -205 -246 -364 -577 -429 -897 -25 -121 -45 -288 -45 -373 l0 -49 160 0
|
|
101
|
-
160 0 0 48 c0 26 5 88 10 137 68 593 417 1103 940 1374 1100 570 2418 -137
|
|
102
|
-
2560 -1374 5 -49 10 -111 10 -137 l0 -47 -155 -3 -155 -3 235 -235 235 -236
|
|
103
|
-
235 236 235 235 -155 3 -155 3 0 48 c0 27 -5 95 -10 152 -100 989 -878 1767
|
|
104
|
-
-1869 1868 -117 12 -298 12 -416 0z"/>
|
|
105
|
-
<path d="M320 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>
|
|
106
|
-
<path d="M960 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>
|
|
107
|
-
<path d="M1600 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>
|
|
108
|
-
<path d="M2240 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>
|
|
109
|
-
<path d="M2880 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>
|
|
110
|
-
<path d="M3840 1440 l0 -160 480 0 480 0 0 160 0 160 -480 0 -480 0 0 -160z"/>
|
|
111
|
-
</g></svg></div>
|
|
112
|
-
`.trim()))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!0})}};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||e._.each(r,function(e){t.GlobalRuntime.addGlobalScript(e)}),t.Events.on("designerLaunched",s))},teardown:function(){o.Events.off("designerLaunched",s),a._.each(r,function(e){o.GlobalRuntime.removeGlobalScript(e)})}};function s(){var e;e=r,a._.each(e,function(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$1=window.Promise,Promise$2=Promise$1=function(e){var t=window.Promise;return"function"==typeof t&&/native/.test(t)?t:e()}(function(){var t=setTimeout$1;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a});const 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);let idCounter=0;const uniqueId=(e="")=>e+(idCounter+=1),get=(e,t,n)=>{if(!e||"string"!=typeof t)return n;let i=e;for(const r of t.split(".")){if(null==i)return n;i=i[r]}return i===undefined?n:i},omit=(e,t)=>{if(!e||"object"!=typeof e)return{};var n=Array.isArray(t)?t:[t],i={};for(const r in e)e.hasOwnProperty(r)&&!n.includes(r)&&(i[r]=e[r]);return i},throttle=(i,r=0)=>{let o,a=0,s;return function(...e){var t=now(),n=r-(t-a);return n<=0||r<n?(o&&(clearTimeout(o),o=null),a=t,s=i.apply(this,e)):!o&&0<r&&(o=setTimeout$1(()=>{a=now(),o=null,s=i.apply(this,e)},n)),s}},each=(t,n)=>{if(t&&n)if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e],e,t);else if("object"==typeof t)for(const e in t)t.hasOwnProperty(e)&&n(t[e],e,t);return t},isFunction=e=>"function"==typeof e,doesExist=e=>!(null==e),now=()=>Date.now(),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()),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(d){return!1}},serialize=e=>{var t=omit(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),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(state$1.changeCallbacks,e=>{e(state$1.currentConnectionQuality)})},triggerEval=()=>{each(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=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(e)){const t=_listenerId++;return state$1.evalCallbacks[t]=e,()=>{delete state$1.evalCallbacks[t]}}},markTime=(e=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$2((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"](()=>{})},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(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(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 f,g;return{name:"VocPortal",initialize:function(e,t){f=e;e=(g=t).EventTracer.addTracerIds({}).frameId;this.removeResizeEvent=f.attachEvent(window,"resize",m),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 m(){var e=document.getElementById("pendo-resource-center-container"),e=f.dom(e);g.sizeElements(e)}function t(e,t){var n=f.getSerializedMetadata(),i=!!f.designer||g.store.getters["preview/isInPreviewMode"]();t({apiKey:f.apiKey,url:f.url.externalizeURL(),visitor:n.visitor,account:n.account,parentAccount:n.parentAccount,sandboxMode:i,guideId:f._.get(f.getActiveGuide(),"guide.id"),rcModuleId:f._.get(f.BuildingBlocks.BuildingBlockResourceCenter.getResourceCenter(),"activeModule.id")})}function i(e){try{var t,n,i,r,{value:o,unit:a,isImportant:s}=e.data.width,{value:d,unit:u,isImportant:c}=e.data.height;"number"==typeof o&&"number"==typeof d&&(t=["px","%","vh","vw"],f._.contains(t,a)&&f._.contains(t,u)&&(n=""+o+a+(s?" !important":""),i=""+d+u+(c?" !important":""),r=document.getElementById("pendo-resource-center-container"),g.util.addInlineStyles("pendo-voc-portal-styles",`#pendo-resource-center-container:has(iframe[src*="portal"][src*="mode=rc"]) {
|
|
36
|
+
}`)}function v(e){var t,n,i,r,o,a,s,e=e["target"];"INPUT"===e.tagName&&(t=b(e))&&d&&(d.attributes.validationHidden=!1,d.domJson||(n=u.rules[0],i=xw("context-"+u.id,u.context),n=null!=n&&n.type?function(e,t){return{props:{id:"rule-"+e,"class":"text-row",style:{display:"flex","align-items":"center"}},children:[xw(e,t)],type:"div"}}(n.id,n.ruleText):null,0!==(i=[i,n].filter(Boolean)).length&&(n=be(Sw),r=be(Ew),o=be(Iw),a=be(_w),s=be(Cw),n.children.push(r,o),o.children.push(a),a.children.push(s),s.children=i,d.domJson=n)),d.show("api"),(o=document.getElementById("rule-"+(null==(r=null===u||void 0===u?void 0:u.rules[0])?void 0:r.id)))&&null!=(a=null===u||void 0===u?void 0:u.rules[0])&&a.type&&(s=null===u.isValid?Tw(Rw):c?Tw(kw):Tw(Aw),o.insertBefore(s,o.firstChild)),""!==t.value)&&S(e)}function y(e){e=e.target;u&&d&&(r.Sizzle.matchesSelector(e,null===d||void 0===d?void 0:d.elementPathRule)&&I(e,c),d.hide({validationHidden:!0}),null===u.isValid&&!1===c&&(E().props.style.color="red"),u.isValid=c,u=null,d=null,c=null)}function b(t){d&&d.hide({validationHidden:!0}),d=null,u=null,c=null;for(const n of i){var e=_.find(n.steps,function(e){return r.Sizzle.matchesSelector(t,e.elementPathRule)});if(e)return d=e,u=null==(e=e.attributes)?void 0:e.field,c=u.isValid,u}return null}function w(e){var t,e=e["target"];r.Sizzle.matchesSelector(e,null===d||void 0===d?void 0:d.elementPathRule)?S(e):(t=b(e))&&(c=t.isValid,S(e))}function S(t){var n=null===u||void 0===u?void 0:u.rules[0];if(n){var i=Mw[n.type];if(i){n=i(t.value,n.options),i=(c=!!n,E());let e;null===u.isValid?(i.props.style.color=n?"green":"gray",e=Tw(n?kw:Rw)):(i.props.style.color=n?"green":"red",e=Tw(n?kw:Aw),I(t,n)),d.hide({stepHidden:!0}),d.show("api");i=document.getElementById("rule-"+u.rules[0].id);i&&i.insertBefore(e,i.firstChild)}}}function E(){return oc("text-"+u.rules[0].id,d.domJson)}function I(e,t){!1===t?e.setAttribute("data-pendo-field-valid",!1):e.removeAttribute("data-pendo-field-valid")}}(),Fw=function(){let i,a=0,s,d,u,c,l=[];const p=100,h=9;let f;const o=4,g=500,m=["TEXTAREA","INPUT"];let v=!0,y={},n,b,r;const w="previous_page_loads";let S;const E="errorClickLogging",I=1500;let _=!1;return{name:"FrustrationEvent",initialize:function(e,t){S=e,c=S._,i=t,a=0,l=[],f=[],y={},_=i.ConfigReader.get(E),this.detachErrorEvent=i.attachEvent(window,"error",P,!0),this.detachDocumentEvents=function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange","visibilitychange","selectionchange","scroll"],t=[];for(var n=0;n<e.length;n++)switch(e[n]){case"selectionchange":t.push(i.attachEvent(window,e[n],T,!0));break;case"visibilitychange":t.push(i.attachEvent(window,e[n],()=>{x(250)},!0));break;default:t.push(i.attachEvent(window,e[n],x,!0))}return t}(),i.Events.on("eventCaptured",D),i.agentStorage.registry.addSession(w),S.sniffer.MutationObserver&&(Dy.observing?Dy.addEventListener("mutation",R):function(){var e=vt("MutationObserver");n=new e(k);try{n.observe(S.dom.getBody(),{childList:!0,attributes:!0,subtree:!0})}catch(t){n=null}}())},teardown:function(){i.Events.off("eventCaptured",D),this.detachErrorEvent&&(this.detachErrorEvent(),this.detachErrorEvent=null);if(this.detachDocumentEvents){for(var e=0;e<this.detachDocumentEvents.length;e++)this.detachDocumentEvents[e]();this.detachDocumentEvents=null}n&&n.disconnect();Dy.observing&&Dy.removeEventListener("mutation",R)},addErrorClickLog:N,getErrorEventTarget:L,checkErrorEvent:P,observeDOMMutation:k,checkFrustrationEvent:D};function C(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()){(l=c.filter(l,e=>t-e.timestamp<=p)).length&&Ut(C,p)}function x(e=g){v=!1,c.each(y,e=>{clearTimeout(e)}),y={},Ut(()=>{v=!0},e)}function T(){var e=document.getSelection().toString();(b||e.length)&&(x(),b=!!e.length)}function R({mutation:e=[]}={}){k(e)}function k(e){e.length&&x()}function t(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function A(e){return e&&t(e.element)}function O(e,t){var{frustrationTypes:n=[]}=e;c.contains(n,t)||(n.push(t),e.frustrationTypes=n,S.buffers.flushLater())}function N(e,t){let n;var{detail:i={}}=t;(n=(A(i)&&i.error?i.error:t).message)&&n.length>I&&(n=n.substring(0,I)),e.errorClickLog=n}function M(e,t){var n=t.target&&"A"===t.target.tagName&&c.isFunction(t.target.hasAttribute)&&t.target.hasAttribute("href"),i=t.target&&!c.contains(m,t.target.tagName);if(v&&!b&&i&&!n){var r=e;const o=Ut(()=>{delete y[o],O(r,"deadClick")},g);y[o]=o}l.length>h&&l.pop(),l.unshift({target:t.target,activeElement:document.activeElement,browser_time:e.browser_time,timestamp:t.timeStamp}),Ut(C,p),c.each(f,e=>{P(e)}),s?(i=t,e.browser_time-s<=1e3&&Math.abs(d-i.x)<=30&&Math.abs(u-i.y)<=30?a++:(a=1,d=t.x,u=t.y),s=e.browser_time,4===a&&(s=null,O(e,"rageClick"))):(s=e.browser_time,d=t.x,u=t.y,a=1)}function L(e){if(t(e.target))return{detail:e={}}=e,A(e)?e.element:t(document.activeElement)?document.activeElement:void 0}function P(t){const n=L(t);if(n){const i=c.find(l,e=>(e.target===n||e.activeElement===n)&&t.timeStamp-e.timestamp<p);if(i){const r=e=>e.browser_time===i.browser_time&&"click"===e.type;var e=c.find(S.buffers.events,r)||c.find(S.buffers.silos,e=>c.find(e,r));e&&(O(e,"errorClick"),_)&&N(e,t)}else c.contains(f,t)||f.push(t),f.length>o&&f.pop()}}function F(e){r=function(){let e=i.sessionStorage.getItem(w);return null!=e&&0<e.length&&(e=JSON.parse(e)),c.isArray(e)?e:[]}(),function(e){var t,n;if(!(r.length<2))return t=r[0],n=r[1],t&&n&&t.url&&n.url&&t.browser_time&&n.browser_time?t.url===e.url&&e.browser_time-n.browser_time<=7e3&&n.url!==e.url:void 0}(e)&&O(e,"uTurn"),2===r.length&&r.shift(),r.push({url:e.url,browser_time:e.browser_time}),e=r,i.sessionStorage.setItem(w,JSON.stringify(e))}function D(e){var t=e.data[0],e=e.data[1],e=("click"===t.type&&e&&M(t,e),"load"===t.type&&F(t),"submit"!==t.type&&"change"!==t.type||x(),c.has(e,"target")&&c.contains(m,e.target.tagName));"focus"===t.type&&e&&x()}}(),Uw={};function Gw(e){return 1===_.keys(e).length&&e.id}const Bw={name:"GuideCache",initialize(e,t){this.onGuidesReceived=_.bind(this.guidesReceived,this),this.onEventCaptured=_.bind(this.eventCaptured,this),t.Events.on("guidesReceived",this.onGuidesReceived),this.subscriptions=[t.attachEvent(t.Events,"eventCaptured",this.onEventCaptured)]},teardown(e,t){t.Events.off("guidesReceived",this.onGuidesReceived),_.each(this.subscriptions,function(e){e()}),this.subscriptions=[]},guidesReceived(e){_.each(_.keys(Uw),function(e){delete Uw[e]});var t,n,i,r,e=e.data[0];e&&e.guideCache&&e.guides&&(n=e.guides,t=e.guideCache,n&&t&&_.each(n,function(i){if(i&&i.id){if(Gw(i)){const r=t.get(i.id);return r&&r.steps?void _.each(r.steps,function(e){var t;e&&e.id&&(t={payload_seen_state:null},_.isUndefined(e.seenState)||null===e.seenState||(t.cached_seen_state=e.seenState),Uw[i.id+":"+e.id]=t)}):void 0}const r=t.get(i.id);_.each(i.steps||[],function(e){var t,n;e&&e.id&&(t={payload_seen_state:_.isUndefined(e.seenState)?null:e.seenState},(n=r&&_.findWhere(r.steps,{id:e.id}))&&!_.isUndefined(n.seenState)&&null!==n.seenState&&(t.cached_seen_state=n.seenState),Uw[i.id+":"+e.id]=t)})}}),e.guides=(n=e.guides,i=e.visitorId,r=e.guideCache,n&&(r?_.map(n,function(e){return Gw(e)?r.get(e.id):(r.add(e,i),e)}):n)))},eventCaptured(e){var t,n;e&&e.data&&e.data.length&&(e=e.data[0])&&"guideSeen"===e.type&&_.contains(["auto","continue"],e.props.reason)&&(t=e.props.guide_id,n=e.props.guide_step_id,t=Uw[t+":"+n])&&(e.props.payload_seen_state=t.payload_seen_state,_.isUndefined(t.cached_seen_state)||(e.props.cached_seen_state=t.cached_seen_state))}},Hw=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&&e.document.body&&!e.document.body.hasChildNodes()||!!e.document.getElementById(i)}function d(e,t){var n;s(e)||((n=o.ConfigReader.getLocalConfig()).apiKey||(n.apiKey=r.apiKey),e.pendo={_q:[["initialize",n]]},(n=e.document.createElement("script")).src=t,n["async"]=!0,n.id=i,(t=e.document.getElementsByTagName("script")[0])&&t.parentNode?t.parentNode.insertBefore(n,t):(e.document.head||e.document.body).appendChild(n))}function u(e,t){e.pendo.iframeWaiting=!1,d(e,t)}function c(e){try{if(s(e))return}catch(n){return}var t=function(){var e=o.ConfigReader.get("selfHostedAgentUrl");if(e)return e;e=r.dom("script");const t=/\/pendo(\.\w+)?\.js$/;return(e=r._.find(e,e=>t.test(e.src)))&&e.src}();t?"complete"===e.document.readyState?d(e,t):(e.pendo={iframeWaiting:!0},e.addEventListener("load",r._.partial(u,e,t))):r.log("Unable to find agent url to install agent in frames","debug")}function e(){var t=r.dom("iframe").length;for(let e=0;e<t;e++)c(window.frames[e]);Ut(e,250)}function l(){e()}function p(){return!n||n&&o.store.getters["frames/isLeader"]()}function h(e){p()&&(e=null==(e=e.data)?void 0:e[0]).storeChanged&&o.store.dispatch("frames/syncOptions",{options:e.options})}function f(e){var t;g(null==(t=e.data)?void 0:t[0].visitor_id,null==(t=e.data)?void 0:t[0].account_id)}function g(e=v(),t=Yn()){p()&&o.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}}(),zw=function(){let n,i,r;return{name:"OemAccountId",initialize:function(e,t){n=t,(i=n.ConfigReader.get("oemAccountId"))&&(r=function(e){e=e,i&&e&&e.data&&e.data[0]&&(e.data[0].oem_account_id=i)},n.Events.on("eventCaptured",r))},teardown:function(){r&&n.Events.off("eventCaptured",r)}}}();var jw=null,qw=function(){return lu()?ou:ru},Ww=function(e){return"#_pendo_g_"+e.id},Vw=function(e,t){jw=null;var n,i,r,o,e=da(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(qw()),o=nS(e,o,i,r),t&&(t.dim=o),n.css({width:o.width,height:o.height,left:o.left,top:o.top}),e.fixed&&n.css({position:"fixed"}),M("._pendo-guide-container_",n).addClass(o.arrowPosition).css({top:o.content.top,left:o.content.left,width:o.content.width,height:o.content.height}),Jw(n[0],o),n[0])},Jw=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=_.chain(n).filter(function(e){return e!==o}).map(function(e){return"border-"+e+"-width:"+E.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=M("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),d=M("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");_.each(n,function(e){s.removeClass(i+e+"_").removeClass(e),d.removeClass(r+e+"_").removeClass(e)}),s.addClass(i+o+"_").addClass(o).css(a+"top:"+t.arrow.top+"px;left:"+t.arrow.left+"px;"),d.addClass(r+o+"_").addClass(o).css(a+"top:"+t.arrow.border.top+"px;left:"+t.arrow.border.left+"px;"),M(e).append(s).append(d)},Kw=function(e,t){t===undefined&&(t=Jd),e.element=fu(e);var n=e.element;if(!n)return x.info("No element found for step: "+e.id),null;Aa(n);var i=Vw(n,e);return null===i?null:(i.id=E.getTooltipDivId(e),M(i).appendTo(pu()),t.push(i),F(i,"mouseover",_.partial(M.addClass,i,"mouseover")),F(i,"mouseout",_.partial(M.removeClass,i,"mouseover")),vu(n,i),Qw(e),n)},$w=null,Xw=null;var Yw=null,Zw={top:"north",left:"east",bottom:"south",right:"west"},Qw=function(e){try{var t,n,i,r,o,a,s,d;e.attributes&&e.attributes.blockOutUI&&e.attributes.blockOutUI.enabled&&(t=e.attributes.blockOutUI,(n=[]).push(e.element),i=_c(n=n.concat(_.compact(_.flatten(_.map(t.additionalElements,function(e){return _.toArray(M(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=Ic(a=Ec(),i,o),h=i,f=!_.isEqual(h,$w),$w=h,f||(l=a,p=!_.isEqual(l,Xw),Xw=l,p)||(u=s,c=!_.isEqual(u,Yw),Yw=u,c))&&(d={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(d["background-color"]=t.bgColor),t.opacity&&(d.opacity=t.opacity),_.each(s,function(e,t){t=Zw[t],e=_.extend({},e,d),t=M("div._pendo-guide-tt-region-block_._pendo-region-"+t+"_")[0]||eS(t),M(t).css(e)}))}catch(g){x.info("Failed to add BlockOut ui",{contexts:["error"]})}var u,c,l,p,h,f},eS=function(e){e=M(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");M("body").append(e)},tS=function(e){var t=_.isEqual(e,jw);return jw=e,!t},nS=function(e,t,n,i){var r=E.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=oa();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=iS(o,e,a,i=i||"auto"),o=rS(o,e,a,i),o=oS(o,e,a)},iS=function(e,t,n,i){return e.arrow.hbias=Hc(t,n,i),e},rS=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-To(),t=(r=t.left-Ro())+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},oS=function(e,t,n){var i,r,o,a=e.height,s=e.width;return qe()?We(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=xe(9,6)?6:2,i=-1):"bottom"==e.arrowPosition&&(e.top=t.top-a,e.arrow.top=a-E.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=xe(9,6)?6:0,e.arrow.top+=8==Te?-1:0,i=1),r=10+E.TOOLTIP_ARROW_SIZE,o=s-3*E.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==Uc?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==Gc?(e.left=t.left-s+t.width/2+(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=o):(e.left=t.left+t.width/2-s/2,e.arrow.left=s/2-E.TOOLTIP_ARROW_SIZE),!1!==e.arrow.floating&&(n=e.left+s-n.width,0<(n-=Math.max(0,e.arrow.left+n-o))&&(e.left-=n,e.arrow.left+=n),o=-e.left,0<(o-=Math.max(0,r-(e.arrow.left-o))))&&(e.left+=o,e.arrow.left-=o),e.arrow.border.top=e.arrow.top+i,e.arrow.border.left=e.arrow.left):(e.arrow.hbias==Uc?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=xe(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==Gc&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-E.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=xe(10,6)?5:0,e.arrow.left+=7==Te&&6<=Re?1:0,e.arrow.border.left=e.arrow.left+1),e.top=t.top-a/2+t.height/2,e.arrow.top=a/2-E.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e)},aS=430,sS=200,dS=15;function uS(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||E.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||E.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.canShow=function(){return!hg(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(jd())&&gg(t)},this.after("render",function(){Kw(this,this.elements)}),this.reposition=function(){var e=this.attributes.width,t=this.attributes.height,n=this.attributes.layoutDir,i=this.guideElement,r=M("._pendo-guide-container_",i),o=da(this.element),t=nS(o,t,e,n);r.removeClass("top right bottom left").removeClass("_pendo-guide-container-top_ _pendo-guide-container-right_ _pendo-guide-container-bottom_ _pendo-guide-container-left_").addClass(t.arrowPosition).addClass("_pendo-guide-container-"+t.arrowPosition+"_"),M("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),Jw(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,Qw(this)},this.after("hide",function(){M("._pendo-guide-tt-region-block_").remove(),Yw=Xw=$w=null})),this}var cS=function(e,t){var n=!!M("._pendo-backdrop_")[0];return _.get(t,"overlayDiv[0]")||(t.overlayDiv=M(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(pu())),qe()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&M(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},lS=function(e){var t=e.guideElement,n=E.TOOLTIP_ARROW_SIZE,i=e.attributes.height,e=e.attributes.width,e=Math.floor(e/2),i=Math.floor(i/2);t.addClass("_pendo-guide-lb_").css({top:"50%",left:"50%","margin-top":-i,"margin-left":-e}),M("._pendo-guide-container_",t).css({bottom:n,right:n}),qe()&&t.css({position:"absolute"})},pS=function(e,t){t===undefined&&(t=Jd),e.element=fu(e),lS(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(cS(n,e),e.guideElement);t.push(n[0]),n.appendTo(pu())},hS=function(e,t){t===undefined&&(t=Jd),e.element=fu(e),e.guideElement.addClass("_pendo-guide-mobile-lb_");var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=cS(n,e),e=e.guideElement,i=E.TOOLTIP_ARROW_SIZE,i=(e.css({width:"",height:""}),M("._pendo-guide-container_",e).css({bottom:i,right:i}));function r(e){e.preventDefault()}M("._pendo-close-guide_",e).remove().prependTo(i),e.appendTo(pu()),t.push(e[0]),F(n[0],"touchmove",r),F(e[0],"touchmove",r)};function fS(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||E.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||E.LB_DEFAULT_WIDTH,e.after("render",function(){(lu()?hS:pS)(e,e.elements)}),e.reposition=function(){lu()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var gS=500,mS="_pendo-guide-banner_";function vS(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||gS,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=E.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(mS).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),cu()||e.addClass("_pendo-in_"),M("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=fu(n),n.elements.push(e[0]),e.appendTo(pu())})),n}function yS(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(_.extend(n,{isShown:_.constant(!1),launch:d,onShown:d,render:function(){var e=n.guideElement,t=n.attributes.height;e&&e.html()||(e=M(document.createElement("div")).attr("id",bg(n)).addClass("_pendo-guide-whatsnew_").html(n.getContent()),_.isNumber(t)&&!n.attributes.autoHeight&&e.height(t),n.seenState===r&&e.addClass(i),n.guideElement=e)},seen:s}),_.extend(t,{addToLauncher:function(){var e=n.guideElement;e&&!ha(e[0])&&(M("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),nc.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){cu()||a()&&n.seenState!==r&&function(e){{var t,n;if(Ta(e,/(auto|scroll|hidden)/))return(t=va(e))?(t=fa(t),e=fa(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(Cg(n.guideId,n.id,v(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,_.delay(function(){n.guideElement.addClass(i+" out")},_.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function d(){}}var bS="_pendo-launcher-searching_",wS="._pendo-launcher-search-box_ input";var SS,ES=function(e){return e&&_.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function IS(){var e;return function(){var e;if(E.guideWidget)return(e=E.guideWidget.data)&&e.enableSearch}()&&(e=M(wS)[0])&&0<(e=e.value).length?(e=ot.call(e),[].concat(_.compact(e.split(" ")))):[]}function _S(e){if(!S.get("disablePrefetch"))return m.all(_.map(e,function(e){return e.fetchContent()}))}function CS(e,t){return x.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||g(),t&&0!==t.length?_.chain(e).filter(ES).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return _.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var xS=function(){var e=g();if(bu()){if(E.guideWidget&&E.guideWidget.enabled){var t=PS(e),n=!0;if(E.guideWidget&&_.isFunction(E.guideWidget.update))E.guideWidget.update(t,n)}}else{WS();t=Yd(e),n=DS(PS(t));n!==SS&&k.dispatch("frames/changeGuideList",t),SS=n}},TS="launcher-closed",RS=null,kS=null,AS=!1,OS="_pendo-launcher-active_",NS=null,MS=function(){return""};function LS(e,t){MS=t}function PS(e){var t,e=_.filter(e||g(),ES);return e=e,0===(t=IS()).length?e:(t=_.map(t,_.partial(CS,e)),_.union.apply(_,t))}function DS(e){return pt(_.map(e,function(e){var t=e.isWhatsNew()?[]:_.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function FS(e){var n=this,t=e.launchType||"badge",i=(_.extend(n,{show:function(){"badge"===t&&M(n.element).css("display: ;")},hide:function(){M(n.element).css("display: none;")},wrap:function(){var e=n.element;{var t;e&&/^img$/i.test(e.nodeName)&&(t=M(document.createElement("div")).addClass(e.className).append(e).appendTo(pu()),e.className="",n.element=t[0])}},dispose:function(){M.removeNode(n.element)},setActive:function(e){e?M(n.element).addClass(OS):M(n.element).removeClass(OS)}}),e),e=i.position||"bottom-right",r=document.createElement("img");M(n.element=r).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+e+"_"),i.launcherBadgeUrl&&(r.src=Xu(i.launcherBadgeUrl)),r.onerror=function(e){x.info("[Pendo Web SDK] Error! Unable to load guide center image "+i.launcherBadgeUrl),x.critical("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},qe()&&(F(r,"mouseover",function(e){M(r).addClass("_pendo-launcher-badge-active_")}),F(r,"mouseout",function(e){M(r).removeClass("_pendo-launcher-badge-active_")}),M(r).css({position:"absolute"})),pu().appendChild(r)}function US(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=Fr(e),t=n();M(e).closest(t).length&&(XS()?T.write(TS,"yes"):E.guideWidget.position(e),e1())}E.guideWidget.removeCountBadge=function(){M("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),_.extend(this,{getLauncherTarget:function(){return M(n())[0]},dispose:function(){pf(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&M("._pendo-launcher-whatsnew-count_").remove()}}),F(document,"click",t)}function GS(){var n,s="bottom-right",d="bottom-left";return this.update=function(e,t){t=t?e:PS(e),e=DS(t)+pt(IS());return e!==n&&(n=e,this.updateLauncherContent(t)),jS(),0<t.length},this.updateLauncherContent=KS,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(RS=new FS(e),e.height||310),n=(e.enableSearch&&(t+=qe()?50:39),this&&!this.hidePoweredBy&&(t+=40),e.addHeight&&(t+=e.addHeight),this.height=t,e.width||330),i=(e.addWidth&&(n+=e.addWidth),this.width=n,M(document.createElement("div")).addClass("_pendo-launcher_")),r=(kS=i[0],da(RS.element)),r=nS(r,t,n),o=(i.css({width:n,height:t}),E.TOOLTIP_ARROW_SIZE),n=M(document.createElement("div")).addClass("_pendo-guide-container_ "+r.arrowPosition).addClass("_pendo-guide-container-"+r.arrowPosition+"_").css({top:o,left:o,width:n-2*o,height:t-2*o}).appendTo(i),t=JS(),o=Xu(BS(this.template(t))),t=M(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),Zf(i[0],function(){ZS(),T.write(TS,"yes",288e5)}),t.on("click",function(e){var t=M(Fr(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=y((t=/^launcher-(.+)$/.exec(ot.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(Ig(t.steps[0],"launcher"),ZS(),hf(e))}),qe()&&(M("._pendo-launcher-header_",i).css({padding:"10px","margin-right":"10px","margin-left":"10px"}),M("._pendo-launcher-footer_",i).css({"border-top":"1px solid #bbb"}),i.css({position:"absolute"})),i.find("[pendo-style]").each(function(){var e=this.getAttribute("pendo-style");M(this).css(e)}),i.appendTo(pu()),_.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!xe(9,6)&&(o=e.autoHeight.offset||100,i.css({height:"calc(100% - "+o+"px)",maxHeight:e.height,minHeight:e.height/2}),M("._pendo-guide-container_."+r.arrowPosition).css({maxHeight:e.height-30,minHeight:e.height/2-30,height:"calc(100% - 30px)"}))},this.position=function(e){var t,n,i,r,o,a;e&&(t=this.data||{},e=da(e),n=nS(e,this.height,this.width),i=M(kS),"badge"===(r=t.launchType||"badge")?(o=t.position,_.indexOf(a=[s,d,"top-left","top-right"],t.position)<0&&(o=s),_.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=_.contains([s,d],o)?"bottom":"top",n.arrow.hbias=_.contains([d,"top-left"],o)?"left":"right",n.arrow.floating=!1):"element"===r&&i.css({top:n.top,left:n.left,height:n.height,width:n.width,position:e.fixed?"fixed":"absolute"}),M("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),oS(n,e,{width:Infinity,height:Infinity}),Jw(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=e1,this}function BS(e){return e=_.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function HS(e,t){e.contentHostUrl&&(e.contentHostUrl=(n=e.contentHostUrl,i=location,(r=S.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)),NS=new US(e);var n,i,r=GS.create(E.guideWidget);return _.isFunction(r.template)||(r.template=e.template?_.template(e.template):MS),r.render(),r.position(NS.getLauncherTarget()),t&&r.toggle(),r}GS.create=function(e){return _.reduce(GS.behaviors,function(e,t){return t.call(e)},e)},GS.behaviors=[Oh,GS,Wu.Launcher,function(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){M(wS).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,E.disableGuideCenterContentSearch||this.before("update",_S),this.before("update",function(){t.text=IS().join(" ");var e=M("._pendo-launcher_");t.text?e.addClass(bS):e.removeClass(bS)})),this},function(){var n=this;{var i;n.data&&n.data.onboarding&&(i=n.onboarding=n.onboarding||{},n.before("update",function(e){var e=_.filter(e,o0),t=_.filter(e,function(e){return"complete"==n.guideStatus(e)}),e=i.total=e.length,t=(i.percentComplete=0<e?Math.round(t.length/e*100):0,M("._pendo-launcher_,._pendo-launcher-badge_"));e?(t.addClass("onboarding"),t.addClass("_pendo-launcher-onboarding_")):(t.removeClass("onboarding"),t.removeClass("_pendo-launcher-onboarding_"))}),n.getOnboardingState=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":e.isNotStarted()?"not-started":null})}return n},function(){var n=this,i=M(document.createElement("div")).addClass("_pendo-launcher-whatsnew-count_");n.data&&n.data.whatsnew&&n.data.whatsnew.enabled&&(n.before("updateLauncherContent",function(e){e=_.filter(e,function(e){return e.isWhatsNew()});e.sort(t),n.data.whatsnew.total=e.length,n.data.whatsnew.guides=e}),n.after("update",function(e){var t=n.data.whatsnew.guides,t=(_.each(t,function(e){e.show()}),_.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),_.filter(t,function(e){return"active"!==e.steps[0].seenState}).length);t!==n.data.whatsnew.unseenCount&&(i.html(t).css({display:t?"":"none"}),n.data.whatsnew.unseenCount=t,M("span._pendo-launcher-whatsnew-count_").text(n.data.whatsnew.unseenCount))}),n.after("render",function(){VS()?i.appendTo(this.data.launchElement):(RS.wrap(),i.appendTo(RS.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 zS=function(){kS&&(M.removeNode(kS),kS=null),NS&&(NS.dispose(),NS=null),RS&&(RS.dispose(),RS=null)},jS=function(){(!VS()&&(YS()||0<IS().length)?qS:WS)()},qS=function(){RS&&RS.show()},WS=function(){VS()||ZS(),RS&&RS.hide()},VS=function(){return!(!E.guideWidget||!E.guideWidget.data||"element"!==E.guideWidget.data.launchType)},JS=function(e){var t=ql(),t=_.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:ct(t)},E.guideWidget);return t.data=_.extend({},t.data),e&&(t.guides=e),t};function KS(e){var t=E.guideWidget.template||MS,e=JS(e),e=M(document.createElement("div")).html(BS(t(e))),n=e.find("._pendo-launcher-guide-listing_"),t=e.find("._pendo-launcher-footer_").html(),e=e.find("._pendo-launcher-search-results_").html();M("._pendo-launcher_ ._pendo-launcher-guide-listing_").each(function(e,t){M(e).html(n.eq(t).html())}),M("._pendo-launcher_ ._pendo-launcher-footer_").html(t),M("._pendo-launcher_ ._pendo-launcher-search-results_").html(e)}var $S=_.compose(jS,function(e,t){var n,i,r,o;ES(e)&&(n=M("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0])&&(e=(o=M("#launcher-"+e.id)).length?o[0]:(e=e,M(i=document.createElement("div")).addClass("_pendo-launcher-item_"),M(i).attr("id","launcher-"+e.id),(r=document.createElement("a")).href="#",r.innerHTML=e.name,i.appendChild(r),i),o=0<o.length,_.isNumber(t)&&(r=M("._pendo-launcher-item_"))[t]?e.id!=r[t].id&&n.insertBefore(e,r[t]):n.appendChild(e))}),XS=function(){return M(kS).hasClass(OS)},YS=function(){return 0<M("._pendo-launcher-item_").length},ZS=function(){var e;kS&&(e=M(kS))&&e.hasClass(OS)&&(e.removeClass(OS),RS)&&RS.setActive(!1)},QS=function(){var e;kS&&(e=M(kS))&&!e.hasClass(OS)&&(e.addClass(OS),RS)&&RS.setActive(!0)},e1=function(){kS&&!AS&&(XS()?ZS:QS)()};var t1=function(){try{var e=E.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};zS(),!lu()&&!n.desktop||lu()&&!n.mobile||ds()&&!n.iframe||e.enabled&&(HS(t),WS())}catch(i){x.critical("ERROR while initializing launcher",{error:i})}},n1=function(e){e.defaultLauncher=LS,_.each(e._defaultLauncher_queue,e=>{LS.apply(null,e)}),e._defaultLauncher_queue=[],e.toggleLauncher=e1,e.showLauncher=QS,e.hideLauncher=ZS,e.removeLauncher=zS,e.initLauncher=t1,e.createLauncher=HS,e._addGuideToLauncher=$S,e.launcherToolTipDiv=kS},i1=function(){t1()},r1=function(){var e;(e=E).designer&&(e.designer.createLauncher=HS,e.designer.removeLauncher=zS,e.designer.addGuideToLauncher=$S,e.designer.updateLauncherContent=KS)},o1=function(){var e;(e=E).debugging&&(e.debugging.getLauncherGuides=PS)},a1=function(e){return i=E.guideWidget,e=e,r=i&&i.data,e=_.filter(e,function(e){e=_.first(e.steps);return e&&"launcher"===e.type}),(e=_.first(_.sortBy(e,function(e){return-e.lastUpdatedAt})))&&r&&(e=_.first(e.steps),_.extend(r,_.pick(e,"contentUrl","contentUrlCss","contentUrlJs"),e.attributes),_.defaults(r,{whatsnew:{},knowledgebase:{}}),r.id=e.guideId+e.id),n=(t=i)&&t.data||{},!0!==S.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?Du.verify(n).then(function(){return Zu.load(n)}).then(function(e){return n.template=e.content,_.extend(t,e)}):m.resolve();var t,n,i,r},s1=function(e,t){n1(e),t.Events.on("guidesLoaded",i1),t.Events.on("designerLaunched",r1),t.Events.on("debuggerLaunched",o1),t.GuideLoop.addUpdatePhase(xS),Xg.push(a1),t.agentStorage.registry.addLocal(TS,{duration:864e6,localStorageOnly:!0})},d1=function(e,t){var n;n=a1,0<=(n=_.indexOf(Xg,n))&&Xg.splice(n,1),t.GuideLoop.removeUpdatePhase(xS),t.Events.off("guidesLoaded",i1),t.Events.off("designerLaunched",r1),t.Events.off("debuggerLaunched",o1)};vy.Extensions.API.addTopic("Launcher",{addBehavior(e){GS.behaviors.push(e)}});var u1,c1,l1,p1,h1={name:"P1Guides",initialize:function(e,t){var n;l1=t,u1=(c1=e).dom,p1=[uS,fS,vS,yS,m1,v1,g1,f1],-1<_.indexOf($u.behaviors,uS)||(n=_.indexOf($u.behaviors,c0),$u.behaviors.splice.apply($u.behaviors,[n,0].concat(p1)),t.Events.guideLoopStopped.on(WS),e.TOOLTIP_DEFAULT_WIDTH=aS,e.TOOLTIP_DEFAULT_HEIGHT=sS,e.TOOLTIP_ARROW_SIZE=dS,e._showElementGuide=Kw,e._createTooltip=Vw,e._get_tooltip_dimensions=nS,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e._showLightboxGuide=pS,s1(e,t))},teardown:function(){d1(0,l1),l1.Events.guideLoopStopped.off(WS),c1._.each(p1,function(e){e=_.indexOf($u.behaviors,e);0<=e&&$u.behaviors.splice(e,1)}),p1=[]}};function f1(){const o=this;return"tooltip"!==o.type||o.domJson||(o.checkPlacement=function(){var e,t,n,i,r;e=o,r=da(e.element||fu(e)),Qw(e),tS(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=nS(r,n,i,t),(i=M(Ww(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),Jw(i,n))}),o}function g1(){var i=this;return i.attributes&&i.attributes.autoHeight&&(i.after("render",function(){i.guideElement&&i.guideElement.length&&(i.resize(),i.attachEvent(i.guideElement[0],"load",function(){i.resize()}))}),i.resize=function(){var e,t=E.TOOLTIP_ARROW_SIZE,n=i.guideElement;n&&(e=u1("._pendo-guide-container_",n),"tooltip"==i.type||qe()&&"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 m1(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&Zf(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||sg(t)})}),t}function v1(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||uu(e.guide)||e.after("render",function(){pg(e.guideElement[0])}),e}const y1="__sg__";w1="promotedAgentMetadataConfigurations",S1=[],E1={},I1={};var b1,w1,S1,E1,I1,_1={name:"PromoteMetadata",initialize:function(e,t){if(S1=(b1=t).ConfigReader.get(w1),I1={},b1.agentStorage.registry.addLocal(y1,{isSecure:!0,serializer:JSON.stringify,deserializer:Ft}),Gn())try{E1=b1.agentStorage.read(y1)}catch(n){A1()}S1&&S1.length&&(b1.Events.on("metadata",T1),b1.Events.on("eventCaptured",N1),b1.Events.on("identify",R1))},teardown:function(){b1.Events.off("metadata",T1),b1.Events.off("eventCaptured",N1),b1.Events.off("identify",R1)},getPromotedMetadata:function(){return S1},hasPromotedMetadataKind:C1,setSchemaGroup:T1,getSchemaGroup:x1,resetSchemaGroup:k1,resetCachedSchemaGroup:A1};function C1(t){return _.some(S1,function(e){return e.kind===t})}function x1(){return I1}function T1(e){var t;e?(e=e.data[0]["options"],e&&(t=e)):t=ql(),I1=function(r){if(Gn())try{var e=b1.agentStorage.read(y1);E1=function(e){e=_.mapObject(e,(t,e)=>{const n={};return _.each(Object.keys(t),function(e){n[e.replace("agent__","")]=t[e]}),n});return e}(E1=e)}catch(t){A1()}var o=I1;_.each(["visitor","account","parentAccount"],function(e){var t=C1(e),n=!_.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!_.isEmpty(E1)&&_.isEmpty(Ms.get())&&(o[i]=O1(E1[i],e)),n)&&(t=O1(r[e],e),_.isEmpty(t)||(o[i]=Object.assign(Object.assign({},o[i]),t)))}),Gn()&&b1.agentStorage.write(y1,o);return o}(t)}function R1(e){e=e.data[0];_.get(e,"wasCleared")&&(b1.agentStorage.clear(y1),k1())}function k1(){I1={}}function A1(){E1={}}function O1(e,i){var r={};return e&&_.each(e,function(e,t){var n=t.toLowerCase();Boolean(_.find(S1,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function N1(e){e=e.data[0];e&&(_.isEmpty(I1)&&T1(),_.isEmpty(I1)||("track"===e.type?e.props.__sg__=I1:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=I1)))}const M1="segmentFlagsCache";function L1(){let s,d,o,u=null,a=!1,c={},l,p,e=!1;return{name:"SegmentFlags",initialize:function(e,t){var n="requestSegmentFlags",e=(s=e,(d=t).ConfigReader);if(e.addOption(n,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],false),o=e.get(n)){if(u=null,a=!1,t.agentStorage.registry.addLocal(M1,{isSecure:!0,localStorageOnly:!0,duration:2592e6,serializer:JSON.stringify,deserializer:Ft}),c={},Gn())try{var i=t.agentStorage.read(M1);i&&i.flags&&(c=i.flags,s.segmentFlags=Object.keys(i.flags),l=i.timestamp||null,p=i.hash||null,a=!0,d.Events.segmentFlagsReady.trigger({flags:s.segmentFlags,fromCache:!0,cacheTimestamp:l}))}catch(r){d.Events.segmentFlagsError.trigger("Error reading segment flags from cache")}s.getSegmentFlag=m,s.segmentsPayload=v,d.Events.ready.on(h),d.Events.identify.on(g),d.Events.metadata.on(g),d.Events.eventCaptured.on(f)}},teardown:function(){o&&(s.segmentsPayload=s._.noop,d.Events.ready.off(h),d.Events.identify.off(g),d.Events.metadata.off(g),d.Events.eventCaptured.off(f),u=null,a=!1,c={},l=null,p=null,e=!1)}};function h(){e=!0,g()}function f(e){p&&e&&e.data&&e.data.length&&(e=e.data[0])&&"object"==typeof e&&(e.segmentFlagsHash=p)}function g(){if(e){var t=s._.uniqueId(),n=(u=t,{visitorId:s.get_visitor_id(),accountId:s.get_account_id(),metadata:s.getSerializedMetadata(),url:s.url.get()}),i=s.compress(n),t={id:t,jzb:i,v:s.VERSION,ct:(new Date).getTime()},n=(d.agent.treatAsAdoptPartner()&&d.agent.addAccountIdParams(t,n.accountId,d.ConfigReader.get("oemAccountId")),"script"===s.LOADER?"segmentflag.js":"segmentflag.json");let e=d.transmit.buildBaseDataUrl(n,s.apiKey,t);var r,o,n=d.agent.getJwtInfoCopy();try{e.length>d.constants.URL_MAX_LENGTH||!s._.isEmpty(n)?(delete t.jzb,e=d.transmit.buildBaseDataUrl("segmentflag.json",s.apiKey,t),r=s._.extend({events:i},n),function(t,n){Yv(this,void 0,void 0,function*(){try{v((yield s.ajax.postJSON(t,n)).data)}catch(e){d.Events.segmentFlagsError.trigger("Error requesting new segment flags")}})}(e,r)):"script"===s.LOADER?(o=e,s.loadResource(o,s._.noop)):function(t){Yv(this,void 0,void 0,function*(){try{v((yield s.ajax.get(t)).data)}catch(e){d.Events.segmentFlagsError.trigger("Error requesting new segment flags")}})}(e)}catch(a){d.log.error("Failed to load segment flags",{error:a}),d.Events.segmentFlagsError.trigger("Error requesting new segment flags")}}}function m(e){return!(!c||c[e]===undefined)&&c[e]}function v(e){if(u&&(!s._.isString(e.id)||e.id===u)){let t={},n=[];if(e.segmentFlags){n=e.segmentFlags;for(let e=0;e<n.length;e++)t[n[e]]=!0}else e.flags&&(t=e.flags,n=Object.keys(t));var i=function(t={},n={}){var i=Object.keys(t),e=Object.keys(n);if(i.length!==e.length)return!0;for(let e=0;e<i.length;e++){var r=i[e];if(t[r]!==n[r])return!0}return!1}(c,t);s.segmentFlags=n,c=t,l=Date.now(),p=e.hash||null,Gn()&&d.agentStorage.write(M1,{flags:t,timestamp:l,hash:p}),a?i&&d.Events.segmentFlagsUpdated.trigger(s.segmentFlags):(a=!0,d.Events.segmentFlagsReady.trigger({flags:s.segmentFlags,fromCache:!1,cacheTimestamp:l})),d.log.info("successfully loaded segment flags"),u=null}}}class P1{constructor(e,t,n,i,r){this.listeners=[],this.latestPromptValue="",this.isActive=!0,this.lastSubmitTime=0,this.compositionState=new WeakMap,this.dom=e.dom,this._=e._,this.api=t,this.q=t.q,this.id=n,this._.isArray(i)||(this.api.log.error("inputCssSelectors must be an array, received:",typeof i),i=[]),this._.isArray(r)||(this.api.log.error("submitCssSelectors must be an array, received:",typeof r),r=[]),this.inputEls=this._.map(i,e=>new this.dom.Element(e)),this.submitEls=this._.map(r,e=>new this.dom.Element(e)),this.setupInputListeners(),this.setupSubmitListeners(),this.setupObserver()}isComposing(e){var t=e.target,t=t&&this.compositionState.get(t);return e.isComposing!==undefined?e.isComposing:t}isEnterKey(e){return"Enter"===e.code||"Enter"===e.key||13===e.keyCode}setupInputListeners(){this._.each(this.inputEls,e=>{e&&(e.addEventListener("compositionstart",e=>{e=e.target;e&&this.compositionState.set(e,!0)},!0),e.addEventListener("compositionend",e=>{e=e.target;e&&(this.compositionState.set(e,!1),this.capturePromptValue())},!0),e.addEventListener("compositionupdate",e=>{e=e.target;e&&this.compositionState.set(e,!0)},!0),e.addEventListener("blur",e=>{e=e.target;e&&this.compositionState.set(e,!1)},!0),e.addEventListener("input",e=>{this.isComposing(e)||this.capturePromptValue()},!0),e.addEventListener("change",e=>{this.capturePromptValue()},!0),e.addEventListener("keydown",e=>{this.isEnterKey(e)&&!this.isComposing(e)&&this.submit(this.latestPromptValue)},!0),e.addEventListener("keyup",e=>{this.isComposing(e)||this.capturePromptValue()},!0))})}setupSubmitListeners(){this._.each(this.submitEls,e=>{e&&(e.addEventListener("mousedown",e=>{var t=this.getPromptValue()||this.latestPromptValue;this.submit(t)},!0),e.addEventListener("keydown",e=>{this.isEnterKey(e)&&(e=this.getPromptValue()||this.latestPromptValue,this.submit(e))},!0))})}setupObserver(){this.promptContainer=new this.dom.Observer;var e=this._.filter(this.inputEls,e=>e),t=this._.filter(this.submitEls,e=>e);this.promptContainer.addObservers(...e,...t)}submit(e){if(e&&this.isActive){var t=Date.now();if(!(t-this.lastSubmitTime<2)){this.lastSubmitTime=t;const n={agentId:this.id,prompt:e};this._.each(this.listeners,e=>e(n))}}}capturePromptValue(e=!1){var t=this.getPromptValue();return!t&&e||(this.latestPromptValue=t),t}getPromptValue(){var e=this._.find(this.inputEls,e=>{if(e)try{var t=e.getText();return t&&t.trim()}catch(n){}return!1});if(e)try{return e.getText().trim()}catch(t){}return""}onSubmit(e){this.listeners.push(e)}suspend(){this.isActive=!1}resume(){this.isActive=!0,this._.each(this.inputEls,e=>{e&&e.get()}),this._.each(this.submitEls,e=>{e&&e.get()})}teardown(){this.promptContainer&&this.promptContainer.teardown(),this._.each(this.inputEls,e=>{e&&e.teardown()}),this._.each(this.submitEls,e=>{e&&e.teardown()})}}class D1{constructor(){this.name="PromptAnalytics",this.configName="aiAgents",this.prompts=[]}initialize(e,t){this.pendo=e,this.api=t,this._=this.pendo._,this.agentsCache=new Map,this.api.ConfigReader.addOption(this.configName,["pendoconfig","snippet"]),this.loadConfig(this.configName).then(e=>this.onConfigLoaded(e))["catch"](()=>{}),null!=(e=this.api.Events.guidesLoaded)&&e.on(()=>{this.reEvaluatePageRules()})}loadConfig(e){var{q:t,ConfigReader:n}=this.api,t=t.defer(),e=n.get(e);return t.resolve(e),t.promise}testPageRule(e,t,n="unknown"){let i=e;var r;return Array.isArray(e)?(r=this._.filter(e,e=>e&&""!==e.trim()),i=this._.map(r,e=>e.startsWith("//*/")?e.substring(1):e)):"string"==typeof e&&e.startsWith("//*/")&&(i=e.substring(1)),qd(i,t,{logger:this.api.log,context:"agent",id:n})}reEvaluatePageRules(){const n=jd();var e=this.api.ConfigReader.get(this.configName)||[];this._.each(this.prompts,e=>{var t=this.findAgentById(e.id);t&&this.testPageRule(t.pageRule,n,t.id)?e.resume():e.suspend()});const i=this._.map(this._.filter(this.prompts,e=>e.isActive),e=>e.id);this._.each(e,e=>{var t;this.isConversationAgent(e)||(t=this._.contains(i,e.id),this.testPageRule(e.pageRule,n,e.id)&&!t&&this.observePrompt(e))})}findAgentById(e){return this.agentsCache||(this.agentsCache=new Map),this.agentsCache.get(e)}isConversationAgent(e){return e.preset&&"chatgpt"!=e.preset}onConfigLoaded(e=[]){if(e&&this._.isArray(e)&&0!==e.length){var t=[],n=[];for(const i of e)this.isConversationAgent(i)||("network"===i.trackingMethod?t:(i.trackingMethod,n)).push(i);0<t.length&&(this.networkAgents=t,this.api.NetworkRequest.on({request:this.handleRequest,error:this.handleError})),this.agentsCache||(this.agentsCache=new Map),this.agentsCache.clear(),this._.each(e,e=>this.agentsCache.set(e.id,e)),this._.each(n,e=>{var t=jd();this.testPageRule(e.pageRule,t,e.id)&&this.observePrompt(e)})}}handleRequest({method:t,url:n,body:i}){const r=jd();this._.each(this.networkAgents,e=>{this.testPageRule(e.pageRule,r,e.id)&&this.api.analytics.collectEvent("prompt",{prompt:i||"",agentId:e.id,promptType:t,url:n},undefined,"agentic")})}handleError({error:e,context:t}){"fetch"==t&&this.api.log.debug("[PromptPlugin] Fetch tracking failed:",e),"xhr"==t&&this.api.log.debug("[PromptPlugin] XHR tracking failed:",e)}observePrompt(e){const{id:t,cssSelectors:n}=e;var i;this._.find(this.prompts,e=>e.id===t)||(e=this.parseCssSelector("input",n),i=this.parseCssSelector("submit",n),(e=new P1(this.pendo,this.api,t,e,i)).onSubmit(e=>{this.sendPromptEvent(e)}),this.prompts.push(e))}parseCssSelector(t,e){e=this._.filter(e,e=>e.type===t);return this._.map(e,e=>e.cssSelector)}sendPromptEvent(t){var e=this._.find(this.prompts,e=>e.id===t.agentId);e&&!e.isActive||(e=this._.extend({promptType:"request",agentType:"prompt"},t),this.api.analytics.collectEvent("prompt",e,undefined,"agentic"))}teardown(){this._.each(this.prompts,e=>e.teardown()),this.agentsCache&&this.agentsCache.clear(),this.api.NetworkRequest.off({request:this.handleRequest,error:this.handleError})}}var F1=new D1;class U1{initialize(e,{Events:t}){var{_:e,attachEvent:n}=this.pendo=e,i=e.bind(this.setForceShowFirstStepFlags,this);this.subscriptions=[n(t,"deliverablesLoaded",i),n(t,"urlChanged",i),n(t,"guideSeen",e.bind(this.clearForceShowFirstStepFlags,this))]}teardown(){this.pendo._.forEach(this.subscriptions,function(e){e()}),this.subscriptions.length=0}setForceShowFirstStepFlags(){var e=this["pendo"];const t=e["_"];t.forEach(e.guides,function(e){!t.get(e,"attributes.restartOnReload")||(e.forceShowFirstStep=!0)})}clearForceShowFirstStepFlags(e){var{_:t,findGuideById:n}=this.pendo,e=t.get(e,"data.0.props.guide_id");e&&(t=n(e))&&t.forceShowFirstStep&&(t.forceShowFirstStep=!1)}}var G1=new U1;const B1="sessionId";class H1{constructor(){this.name="SessionManager"}initialize(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"identify",_.bind(this.changeIdentity,this)),this.api.attachEvent(this.api.Events,"eventCaptured",_.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",18e5),this.suffix=this.api.ConfigReader.get("identityStorageSuffix"),this.api.agentStorage.registry.addLocal(B1,{cookieSuffix:this.suffix,isSecure:!0})}changeIdentity(e){var t;e&&e.data&&e.data.length&&({visitor_id:e,old_visitor_id:t}=e.data[0],e===t||this.pendo.isAnonymousVisitor(t)||this.expireSession())}teardown(){_.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0}isExpired(e,t){e=_.get(e,"timestamp");return!this.pendo._.isNumber(e)||t-e>this.inactivityDuration}expireSession(){var e=this.clearSessionInfo();return this.api.Events.sessionChanged.trigger(e),e}eventCaptured(t){if(t&&t.data&&t.data.length){var t=t.data[0],n=t.browser_time||(new Date).getTime();let e=this.sessionInfo();!t.hasUserInteraction&&"recording"===t.type||(this.isExpired(e,n)&&(e=this.expireSession()),this.storeLastInteractionEventInformation(e,n)),t.sessionId=e.sessionId}}sessionInfo(e=this.pendo.randomString(16)){let t=this.api.agentStorage.read(B1)||this.api.agentStorage.read(B1,!1,"");return t||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(B1,t)),JSON.parse(t)}clearSessionInfo(){return this.api.agentStorage.clear(B1),this.api.agentStorage.clear(B1,!1,""),this.sessionInfo()}storeLastInteractionEventInformation(e,t){e.timestamp=t,this.api.agentStorage.write(B1,JSON.stringify(e))}}var z1=new H1;const j1=["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"],q1=new RegExp(`(${j1.join("|")})`,"i"),W1=["facebook","twitter","linkedin","instagram","pinterest","tiktok","snapchat","twitch","reddit","quora","tumblr","flickr","discord","twitch","whatsapp","telegram","weibo","qq","line"],V1=["t.co","x.com"],J1=new RegExp(`(${W1.join("|")})`,"i");function K1(e,t){return eE(J1,e)||t.contains(V1,e)}const $1=["youtube","vimeo","dailymotion","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"],X1=new RegExp(`(${$1.join("|")})`,"i"),Y1=["amazon","ebay","walmart","etsy","shopify","shop","target","bestbuy","costco","temu","alibaba","aliexpress"],Z1=new RegExp(`(${Y1.join("|")})`,"i");const Q1=new RegExp(`(${["google performance max","microsoft audience network","facebook audience network"].join("|")})`,"i");function eE(e,t){return"self"!==t&&"direct"!==t&&null!==t.match(e)}function tE({referrer:e,currentHost:t}){if(!e||""===e)return"direct";e=new ni(e).hostname;let n="self";return n=e!==t?null==e?void 0:e.toLowerCase():n}const nE=new RegExp("^(.*cp.*|ppc|retargeting|paid)$"),iE=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i");function rE(e="",t){return-1!==e.replace(/[^a-zA-Z]/g,"").indexOf(t)}const oE=[[undefined,({medium:e,source:t,referrer:n,gclid:i,fbclid:r})=>!(e||t||"self"!==n||i||r)],["Direct",({source:e,medium:t,referrer:n})=>!(t||e&&"direct"!==e||"direct"!==n)],["Cross-network",({source:e,medium:t})=>rE(t,"crossnetwork")||e.match(Q1)],["Paid Search",({source:e,medium:t,referrer:n,gclid:i,_:r})=>i||rE(t,"paidsearch")||t.match(nE)&&(r.contains(j1,e)||eE(q1,n))],["Paid Social",({source:e,medium:t,referrer:n,fbclid:i,_:r})=>i||rE(t,"paidsocial")||t.match(nE)&&(r.contains(W1,e)||K1(n,r))],["Paid Video",({medium:e,source:t,referrer:n,_:i})=>rE(e,"paidvideo")||e.match(nE)&&(i.contains($1,t)||eE(X1,n))],["Paid Shopping",({medium:e,source:t,referrer:n,_:i})=>rE(e,"paidshopping")||"shopping"===e||(eE(Z1,n)||i.contains(Y1,t))&&e.match(nE)],["Display",({medium:e,_:t})=>t.contains(["display","cpm","banner","interstitial","expandable","programmatic"],e)||rE(e,"display")],["Paid Other",({medium:e})=>rE(e,"paidother")||e.match(nE)],["Organic Search",({source:e,medium:t,referrer:n,_:i})=>rE(t,"organic")&&i.contains(j1,e)||!t&&eE(q1,n)],["Organic Social",({source:e,medium:t,referrer:n,_:i})=>!t&&K1(n,i)||rE(t,"social")||i.contains(W1,e)&&!t.match(nE)],["Organic Video",({medium:e,referrer:t})=>rE(e,"video")||!e&&eE(X1,t)],["Organic Shopping",({medium:e,referrer:t})=>rE(e,"organicshopping")||!e&&eE(Z1,t)],["Email",({source:e,medium:t})=>null!==t.match(iE)||null!==e.match(iE)||rE(t,"newsletter")],["Affiliates",({medium:e})=>rE(e,"affiliate")||rE(e,"partner")],["SMS",({source:e,medium:t})=>rE(e,"sms")||rE(t,"sms")],["Push Notifications",({source:e,medium:t})=>t.endsWith("push")||rE(t,"mobile")||rE(t,"notification")||rE(e,"firebase")],["Audio",({medium:e})=>rE(e,"podcast")||rE(e,"audio")],["Referral",({medium:e,referrer:t})=>rE(e,"referral")||!!t&&"self"!==t&&"direct"!==t],["Other",({medium:e,source:t})=>!!e||!!t]],aE="utm",sE="enableFullUtmReferrer";class dE{constructor(){this.name="WebAnalytics"}initialize(e,t){this.pendo=e;var n=(this.api=t)["ConfigReader"],n=(n.addOption(sE,[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))],this.suffix=this.api.ConfigReader.get("identityStorageSuffix"),this.api.agentStorage.registry.addLocal(aE,{cookieSuffix:this.suffix,isSecure:!0});let i=this.loadParameters(t.agentStorage);i&&!e._.isEmpty(i)||(i=this.extractParameters(window.location.href,document.referrer)),this.storeParameters(i,t.agentStorage)}extractParameters(e,t){var n,i,r,o,a,s,d=new ni(e).hostname,u=tE({referrer:t,currentHost:d}),e=this.api.util.parseUrl(e);return e?(s=(e=this.pendo._.extend({},e.fragmentQuery,e.query)).utm_source,n=e.utm_medium,i=e.utm_campaign,r=e.utm_term,o=e.utm_content,a=e.gclid,e=e.fbclid,(s={source:s,medium:n,campaign:i,term:r,content:o}).channel=this.calculateUtmChannel({referrerValue:u,utm:s,gclid:a,fbclid:e}),t&&this.api.ConfigReader.get(sE)?s.referrer=t:"self"===u?s.referrer=d:"direct"!==u&&(s.referrer=u),s):{}}calculateUtmChannel({referrerValue:e,utm:t,gclid:n,fbclid:i}){var r=(null==(r=t.medium)?void 0:r.toLowerCase())||"",t=(null==(t=t.source)?void 0:t.toLowerCase())||"";const o={_:this.pendo._,referrer:e,source:t,medium:r,gclid:n,fbclid:i};e=this.pendo._.find(oE,e=>e[1](o));if(e)return e[0]}storeParameters(e,t){0<this.pendo._.size(e)&&t.write(aE,JSON.stringify(e))}loadParameters(e){e=e.read(aE)||e.read(aE,!1,"");return e?JSON.parse(e):null}teardown(){for(var e of this.subscriptions)e();this.subscriptions.length=0}addUtmToEvent(e){let t;try{t=this.loadParameters(this.api.agentStorage)}catch(n){}t&&(e.data[0].utm=t)}sessionChanged(){var e=this.api.agentStorage,t=(e.clear(aE),e.clear(aE,!1,""),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)}}var uE=new dE;function cE(e,t){_.isEmpty(t)||(e.eventProperties=_.extend({},e.eventProperties,t))}function lE(e){e=hE({target:e});return R.onClickCaptured.trigger(e),e.getEventProperties()}function pE(e,t){t=hE({event:t,target:e});return R.onEventCaptured.trigger(t),t.getEventProperties()}function hE(e){const n={};return _.extend({getEventProperties(){return n},addEventProperty(e,t){_.isString(e)&&!_.isUndefined(t)?n[e]=t:x.error("Failed to add click event property")}},e)}class fE{constructor(){this.name="EventCaptured"}initialize(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"eventCaptured",_.bind(this.eventCaptured,this))]}teardown(){_.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0}eventCaptured(e){var t;e&&e.data&&e.data.length&&(t=e.data[0],e=(e=e.data[1])&&e.target,"click"===t.type&&cE(t,lE(e)),cE(t,pE(e,t)))}}var gE=new fE;function mE(i){var t;!function(e){e.getVersion=nt,e.isReady=My,e.pageLoad=zd,e.getVisitorId=Xn,e.getAccountId=Yn,e.clearSession=ei,e.VERSION=Qe,e.LOADER=tt,e.flushNow=s(Cs),e.teardown=Hd(Jy),e.initGuides=s(hm),e.loadGuides=s($g),e.findGuideByName=s(nu),e.hideGuides=s(ng),e.onGuideDismissed=s(sg),e.goToStep=ug,e.onGuideAdvanced=s(cg),e.onGuidePrevious=s(lg),e.onGuideSnoozed=dg,e.startGuides=s(bh),e.stopGuides=s(wh),e.defaultCssUrl=s($f()),e.getActiveGuides=function(e={channel:$d.DEFAULT}){return g(e)},e.getActiveGuide=function(e={channel:$d.DEFAULT}){return Rm(e)},e.guideSeenTimeoutLength=Xb.getGuideSeenTimeoutLength(),e.guidesPayload=Bg,e.areGuidesDisabled=s(fm),e.setGuidesDisabled=s(mm),e.areGuidesDelayed=s(gm),e.buildNodeFromJSON=Zy.buildNodeFromJSON,e.flexElement=s(Zy.flexElement),e.GuideFactory=s(Ku),e.dom=M,e.getText=La,e.attachEvent=s(F),e.detactEvent=s(pf),e.frames={setFrameVisibility:wu},e.log=fb,e.enableLogging=ub,e.disableLogging=cb,e.setActiveContexts=wb,e.showLogHistory=yb,e.getLoggedContexts=bb,e.isDebuggingEnabled=_.noop,e.enableDebugging=_.noop,e.disableDebugging=_.noop,e.addDebuggingFunctions=_.noop,e.stopSendingEvents=s(Ss.lock),e.startSendingEvents=s(Ss.unlock),e.isSendingEvents=s($o),e.fromByteArray=u.uint8ToBase64,e.events=s(Tu),e.track=s(Ib),e.trackAgent=s(_b),e.validateInstall=Cb,e.validateNativeMethods=xb,e.validateBuiltInGlobals=Tb,e.validateUrl=Rb,e.validateEnvironment=Ob,e.doesExist=I,e.generate_unique_id=Dn,e.TEMP_PREFIX=On,e.SIZE_UNIQUE_ID=Nn,e._defaultLauncher_queue=[],e.defaultLauncher=()=>{e._defaultLauncher_queue.push(arguments)},e.toggleLauncher=_.noop,e.showLauncher=_.noop,e.hideLauncher=_.noop,e.removeLauncher=_.noop,e.identify=Hl,e.get_visitor_id=Xn,e.set_visitor_id=function(e){Hl(e)},e.get_account_id=Yn,e.set_account_id=function(e){Hl(v(),e)},e.getSerializedMetadata=Wl,e.compress=dt,e.squeezeAndCompress=dt,e.randomElement=ht,e.randomString=ft,e.toUTF8Array=rt,e.getNumberFromText=St,e._addCredits=s(pg),e.getCurrentUrl=jd,e.getNormalizedUrl=jd,e.testUrlForStep=s(Wd),e.showGuideByName=s(Dg),e.showGuideById=s(Fg),e.designerv2=Iv,e.P2AutoLaunch=s(Hv),e.BuildingBlocks=s(Nb),e.onConnectMessage=_.noop,e.buffers=Ss,e.guideDev=s(Yy),e.badgesShown=s(Kd),e.get_pendo_cookie=Xt,e.DEFAULT_EXPIRE_LEN=Zt,e.set_pendo_cookie=en,e.loadResource=qa,e.loadWatcher=Wa,e.messageLogger=Va,e.messageReceiver=Ja,e.messageValidator=Ka,e.MESSAGE_TYPES=Xa,e.messageDispatcher=Qa,e.moduleRegistry=es,e.addModule=ts,e.hasModule=s(ns),e.findModuleByName=s(is),e.modulesWaiting=rs,e.loadModules=os,e.moduleLoader=as,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=je,e.url=L,e.location=Jb,e.Sizzle=Ar,e._=_,e.ajax=Gr,e.Zlib=ut,e.guideContent=s(Zu.guideContent),e.receiveDomStructureJson=s(Zu.receiveDomStructureJson),e.addExtension=Ql,e.getConfigValue=S.get}(i),(t=i).SHADOW_STYLE="",_.extend(t,{_showElementGuide:_.noop,flushEventCache:t0(null,"flushEventCache",Qb),HOST:co,MAX_LENGTH:vs,MAX_NUM_EVENTS:ms,_createToolTip:_.noop,_get_tooltip_dimensions:_.noop,_isOldIE:s(t0(xe,"_isOldIE",Zb)),_logMessage:t0(Bo,"_logMessage",Zb),_sendEvent:t0(null,"_sendEvent",Qb),_sendGuideEvent:t0(null,"_sendGuideEvent",Qb),_stopEvents:!1,_storeInCache:t0(null,"_storeInCache",Qb),_writeEventImgTag:t0(null,"_writeEventImgTag",Qb),_writeImgTag:s(t0(jo,"_writeImgTag",Zb)),getUA:t0(Oe,"getUA",Zb),ifDebugThen:t0(null,"ifDebugThen",Qb),send_event:s(t0(ed,"send_event","has changed to pendo.cache.createEvent")),wire_page:t0(df,"wire_page",Zb),messageOriginTester:t0(null,"messageOriginTester",Qb),findGuideBy:s(tu),findGuideById:s(y),findStepInGuide:s(iu),_updateGuideStepStatus:s(eg),_addCloseButton:s(Zf),initialize:zy,getEventCache:s(am),processEventCache:s(om),isGuideShown:s(Qd),_getNextStepInMultistep:s(Pg),attachEvent:F,detachEvent:pf,updateOptions:Bl,createLauncher:_.constant({}),initLauncher:_.noop,_addGuideToLauncher:_.noop,launcherToolTipDiv:null,isAnonymousVisitor:(e=t.get_visitor_id())=>Un(e),DEFAULT_VISITOR_ID:Hn,shouldIdentityChange:_.constant(!1),read:T.read,write:T.write,_delete_cookie:T.clear,_set_cookie:Jt,_get_cookie:Vt,get_cookie_key:$t,ENV:Ve,eventCache:s(ps),_getOpacityStyles:t0(null,"_getOpacityStyles",Zb),setStyle:ia,_createGuideEvent:s(Ag),seenGuide:s(Cg),dismissedGuide:s(xg),advancedGuide:s(Tg),seenTime:0,placeBadge:s(wf),isBadge:s(su),showPreview:s(t0(Sg,"showPreview",Zb)),removeAllBadges:s(Sf),tellMaster:ss,DEFAULT_TIMER_LENGTH:fh,registerMessageHandler:Ya,_get_offset:s(da),_shouldAutoDisplayGuide:_.constant(!1),removeBadge:Ef,_showLightboxGuide:_.noop,_showGuide:s(Ig),getElementForGuideStep:s(fu),isElementVisible:Ta,getTooltipDivId:s(bg),setupWatchOnTooltip:s(wg),letters:"",charset:"",detectMaster:ds,listenToMaster:t0(null,"listenToMaster",Qb),start:ff,SEND_INTERVAL:gs,stageGuideEvent:s(Lg),startStagedTimer:Ng,isURLValid:bs,getURL:ws,_get_screen_dim:s(oa),_isInViewport:s(aa),_getCss3Prop:ta,waitThenStartGuides:s(gh),guidesProcessingThreadHandle:hh,getMode:_.constant("default")}),_.each(["identify","updateOptions","pageLoad","track","trackAgent"],function(t){var n=i[t];i[t]=function(){try{My()?n.apply(this,arguments):ue(i,t,arguments)}catch(e){x.critical(e)}}})}var vE,yE,bE,wE,SE,EE=ge(),IE=function(e){var t=Q(e)?{}:window,n=document.currentScript||ne(document.getElementsByTagName("script"),e.apiKey);let i=e.pendoGlobalKey||"pendo";return n&&(i=n.getAttribute("data-pendo-global-key")||i,e.pendoGlobalKey=i),E=t[i]=t[i]||{}}(EE);return vE=IE,EE=EE,T.registry.addLocal(Ks,{isPlain:!0,serializer:JSON.stringify,deserializer:Ft,localStorageOnly:!0}),fe(EE),Ve=me("env")||Ve,$e=me("server")||$e,Xe=me("assetHost")||Xe,Ye=me("assetPath")||Ye,Ze=me("designerServer")||Ze,Je=me("globalBucket")||Je,Ke=me("subscriptionBucket")||Ke,yE=Ie()?Ve+"_ext":Ve,Qe=et+"_"+yE,!Q(EE)&&(yE=EE,wE=vE,SE=Xs(),le(yE,wE,SE)||pe(yE,wE,SE))||vE&&vE.VERSION||(!je.isChromeExtension||(yE=EE)&&yE.useAssetHostForDesigner||console.warn("Pendo Agent detected running in a Chrome extension with setup that is incompatible with manifest V3. Please follow the linked instructions to maintain manifest V3 compatibility: https://www.npmjs.com/package/@pendo/agent#manifest-v3-extensions"),S.get("disablePendo")?(bE=vE,_.each(["initialize","identify","updateOptions","pageLoad","track","trackAgent"],function(e){bE[e]=function(){console.log("Pendo is currently disabled.")}})):((wE=k).registerModule("debugger",L0),wE.registerModule("errorLog",m0),wE.registerModule("frames",Fi),wE.registerModule("guideUpdate",n),wE.registerModule("guideState",t),wE.registerModule("healthCheck",i),wE.registerModule("location",e),wE.registerModule("metadata",k0),wE.registerModule("preview",M0),wE.registerModule("nodeAttr",D0),wE.registerModule("networkUrl",F0),go(),Ku.behaviors=[Oh,i0,Wu.Guide,r0,a0,s0,d0],$u.behaviors=[Oh,f0,u0,Qu,Wu.Step,c0,g0],Qu.reset(),k.dispatch("frames/init"),fb.init(),si.wrapSizzle(Ar,Dy.shadowDom),Ar.intercept(yu),mE(vE),x.addEventListener("log",_.partial(k.dispatch,"errorLog/write")),wy(z0),wy(j0),wy(Y0),wy(Q0),wy(sw),wy(mw),wy(ww),wy(Dw),wy(Fw),wy(Bw),wy(Hw),wy(zw),wy(h1),wy(_1),wy(F1),wy(G1),wy(L1()),wy(z1),wy(Xb),wy(uE),wy(gE),SE=vE._q,EE=Vy,S.get("disableAutoInitialize")||(SE=(SE=qy(SE))&&1<SE.length?SE[1]:{},_.get(SE,Uy)||S.get(Uy)?EE():By.push(ff(EE))))),IE}function TextCapture(){var i,r,n,o={};return{name:"TextCapture",initialize:function(e,t){r=t,(i=e).excludeAllText=r.ConfigReader.get("excludeAllText");t=r.ConfigReader.get("allowedText");o=i._.reduce(t,function(e,t){return i._.isString(t)&&(e[t]=!0),e},{}),r.NodeSerializer.add(a),n=i._.partial(s,e),r.Events.on("eventCaptured",n)},teardown:function(){r.NodeSerializer.remove(a),r.Events.off("eventCaptured",n)},isEnabled:d,isTextCapturable:u,hasWhitelist:c,serializer:a,guideActivity:s};function a(e,t,n){return t===n&&(d()||!d()&&c())&&u(t=i.getText(n,128))&&(e.txt=c()?r.util.trim.call(t):t),e}function s(e,n){if(d()){const i=e["_"],r=n.data[0];if(r&&"guideActivity"===r.type){n=i.reduce(e.getActiveGuides({channel:"*"}),(e,t)=>t.isShown()?e.concat(i.filter(t.steps,e=>e.isShown())):e,[]);if(n.length){const o=e.BuildingBlocks.BuildingBlockGuides.findDomBlockInDomJson;let t;i.find(n,e=>!!e.domJson&&(t=o(e.domJson,function(e){return e.props&&e.props.id&&e.props.id===r.props.ui_element_id}))),t&&(r.props.ui_element_text=t.content)}}}}function d(){return!i.excludeAllText}function u(e){var t=r.util.trim.call(e);return d()||i._.has(o,[t])||i._.has(o,[e])}function c(){return 0<i._.size(o)}}var substitutionRegex="\\{(?:\\s?)([^.\\s]?visitor|account|parentAccount)\\.([^|\\s/]*)(?:\\s?\\|\\s?([^}]+|[\\/s]+))?(?:\\s?\\/\\s?){1}\\}",skipStepString="{skipStep:* *(auto|\\d+)\\/}",goToMiddleString="(?!0)(\\d+)",goToString="({goto-".concat(goToMiddleString,"\\/})"),containerSelector='[id^="pendo-guide-container"]';function lookupGuideButtons(e,t){if(void 0===t&&(t=[]),"button"===e.type&&e.actions&&t.push(e),e.children)for(var n=0,i=e.children;n<i.length;n++)lookupGuideButtons(i[n],t);return t}function removeMarkdownSyntax(e,t,n,i){var r;i.dom(e).hasClass("_pendo-nps-open-text-poll-question")&&(e.innerHTML=null==(r=e.innerHTML)?void 0:r.replace(t,n)),"button"!==e.localName&&"label"!==e.localName&&"a"!==e.localName||(e.textContent=e.textContent.replace(t,n)),0<e.children.length||(i.dom(e).hasClass("_pendo-simple-text")||i.dom(e).hasClass("_pendo-text-plain")||i.dom(e).hasClass("_pendo-text-list-item")||i.dom(e).hasClass("_pendo-text-link"))&&(e.textContent=e.textContent.replace(t,n))}var guideMarkdownUtil={substitutionRegex:substitutionRegex,skipStepString:skipStepString,goToString:goToString,containerSelector:containerSelector,lookupGuideButtons:lookupGuideButtons,removeMarkdownSyntax:removeMarkdownSyntax};function getZoneSafeMethod(e,t,n){void 0===n&&(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]}var goToRegex=new RegExp(guideMarkdownUtil.goToString),PollBranching={name:"PollBranching",script:function(r,o,a){var s=!1,e=initialBranchingSetup(r,a);!e||1<a._.size(e)||this.on("beforeAdvance",function(e){var t,n=0===r.guideElement.find("[branching] .pendo-radio:checked").length,i=r.guideElement.find("[branching] .pendo-radio:checked + label")[0];i&&(t=a._.isNull(i.getAttribute("goToStep"))),s||n||t||(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"\n style="margin-left: 5px;\n height:'.concat(t,"; width:").concat(t,'; display:inline; vertical-align:middle;" xmlns="http://www.w3.org/2000/svg">\n <g stroke-width="0"></g>\n <g stroke-linecap="round" stroke-linejoin="round"></g>\n <g> <circle cx="4" cy="7" r="2" stroke="').concat(e,'"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>\n <circle cx="20" cy="7" r="2" stroke="').concat(e,'"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>\n <circle cx="20" cy="17" r="2" stroke="').concat(e,'" stroke-width="2"\n stroke-linecap="round" stroke-linejoin="round"></circle>\n <path d="M18 7H6" stroke="').concat(e,'" stroke-width="2"\n stroke-linecap="round" stroke-linejoin="round"></path>\n <path d="M7 7V7C8.65685 7 10 8.34315 10 10V15C10 16.1046 10.8954 17 12 17H18"\n stroke="').concat(e,'" stroke-width="2" stroke-linecap="round"\n stroke-linejoin="round"></path> </g></svg>')}new(getZoneSafeMethod(i._,"MutationObserver"))(function(e){i._.each(e,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(function(e,t){i._.each(i.dom("#".concat(e.id," *")),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","",i)}),i.dom("#".concat(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=".concat(n,"]"))[0]&&i.dom("._pendo-multi-choice-poll-question[data-pendo-poll-id=".concat(n,"]"))[0].textContent.trim(),i.dom("label[for*=".concat(n,"]")));i._.size(n)&&i._.forEach(n,function(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 ".concat(t)}))}),0<t&&(i.dom(e).append('<div style="text-align:lrft; font-size: 14px; color: red;\n font-style: italic; margin-top: 0px;" class="branching-wrapper"\n name="'.concat(e.dataset.pendoPollId,'">\n * Branching Error: Multiple branching polls not supported</div>')),i.dom("#".concat(e.id," #pendo-ps-branching-svg")).remove(),i.dom("#".concat(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:!0})}};function initialBranchingSetup(n,i){var e=n.guideElement.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return i._.forEach(e,function(e){var t=e.getAttribute("data-pendo-poll-id"),e=(i._.each(n.guideElement.find("#".concat(e.id," *")),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","",i)}),n.guideElement.find("label[for*=".concat(t,"]"))),e=(i._.forEach(e,function(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=".concat(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="'.concat(r,'"]'))[0],r=(null==r?void 0:r.getAttribute("goToStep"))-1;r<0||(r={destinationStepId:n.steps[r].id,step:t},i.goToStep(r),e.cancel=!0)}var DANGEROUS_URL_SCHEME=/^\s*(javascript|data|vbscript):/i;function encodeMetadataForUrl(e,t){void 0===t&&(t="");e=e===undefined||null===e?"":String(e);return-1!==t.indexOf("?")||-1!==t.indexOf("#")?window.encodeURIComponent(e):!(-1!==t.indexOf(":"))&&DANGEROUS_URL_SCHEME.test(e)?"":window.encodeURI(e)}var 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-".concat(e.id),e.guideElement,n))},designerListener:function(i){var e=i.dom.getBody();i.designerv2&&(i.designerv2.runMetadataSubstitutionForDesignerPreview=function(){var e,t;document.querySelector(guideMarkdownUtil.containerSelector)&&(e=null==(e=i.designerv2.currentlyPreviewedGuide)?void 0:e.steps[0])&&(t=findSubstitutableElements(i),e.buildingBlocks&&findSubstitutableUrlsInJson(e.buildingBlocks,t,i),i._.size(t))&&(i._.each(t,function(e){i._.isUndefined(e)||processPlaceholder(e,i)}),updateGuideContainer("pendo-g-".concat(e.id),e.guideElement,i))});new(getZoneSafeMethod(i._,"MutationObserver"))(function(e){i._.each(e,function(e){var t,n;e.addedNodes.length&&document.querySelector(guideMarkdownUtil.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-".concat(t.id),t.guideElement,i))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!0})}};function processPlaceholder(e,t){for(var n,i=e.data,r=e.target,o=new RegExp(guideMarkdownUtil.substitutionRegex);n=matchPlaceholder(e,o);){var a=Array.isArray(n)&&2<=n.length,s="textContent"===r?i[r]:decodeURI(!i.getAttribute||"href"!==r&&"value"!==r?i[r]:i.getAttribute(r)||""),a=a?n:o.exec(s);a&&substituteMetadataByTarget(i,r,getSubstituteValue(a,t),a)}}function matchPlaceholder(e,t){return("textContent"===e.target?e.data[e.target]:(e=!e.data.getAttribute||"href"!==e.target&&"value"!==e.target?e.data[e.target]:e.data.getAttribute(e.target)||"",decodeURI(e))).match(t)}function getMetadataValueCaseInsensitive(e,t,n){var i,t=e&&e[t];return t&&"object"==typeof t?(e=Object.prototype.hasOwnProperty.call(t,n)?t[n]:undefined)!==undefined?e:(i=n.toLowerCase(),(e=Object.keys(t).find(function(e){return e.toLowerCase()===i}))!==undefined?t[e]:undefined):undefined}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=getMetadataValueCaseInsensitive(t.getSerializedMetadata(),n,i))!==undefined&&null!==t?t:e||""}}function substituteMetadataByTarget(e,t,n,i){var r,o,a=e&&"function"==typeof e.getAttribute,a="href"!==t&&"value"!==t||!a?e[t]:e.getAttribute(t)||"";"href"===t||"value"===t?(o=encodeMetadataForUrl(n,(r=decodeURI(a)).slice(0,r.indexOf(i[0]))),e[t]=r.replace(i[0],o)):e[t]=a.replace(i[0],n)}function updateGuideContainer(e,t,n){n.designer&&!n._.size(n.dom("#pendo-ps-substitution-icon"))&&n.dom(guideMarkdownUtil.containerSelector).append(substitutionIcon("#999","30px")),n.flexElement(n.dom(guideMarkdownUtil.containerSelector)),n.BuildingBlocks.BuildingBlockGuides.recalculateGuideHeight(e,t)}function findSubstitutableUrlsInJson(e,t,n){void 0===t&&(t=[]);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,function(e){findSubstitutableUrlsInJson(e,t,n)}),e.views&&n._.each(e.views,function(e){findSubstitutableUrlsInJson(e,t,n)}),e.parameters&&n._.each(e.parameters,function(e){findSubstitutableUrlsInJson(e,t,n)}),e.actions&&n._.each(e.actions,function(e){findSubstitutableUrlsInJson(e,t,n)}),e.children&&n._.each(e.children,function(e){findSubstitutableUrlsInJson(e,t,n)}),t}function findSubstitutableElements(n){var e=n.dom("".concat(guideMarkdownUtil.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">\n <svg id="pendo-ps-substitution-icon" viewBox="0 0 24 24"\n preserveAspectRatio="xMidYMid meet"\n height='.concat(t," width=").concat(t,' title="Metadata Substitution"\n style="bottom:5px; right:10px; position: absolute;"\n fill="none" xmlns="http://www.w3.org/2000/svg" stroke="').concat(e,'"\n transform="matrix(1, 0, 0, 1, 0, 0)rotate(0)">\n <g stroke-width="0"></g>\n <g stroke-linecap="round" stroke-linejoin="round"\n stroke="').concat(e,'" stroke-width="0.528"></g>\n <g><path fill-rule="evenodd" clip-rule="evenodd"\n d="M5 5.5C4.17157 5.5 3.5 6.17157 3.5 7V10C3.5 10.8284\n 4.17157 11.5 5 11.5H8C8.82843 11.5 9.5 10.8284 9.5\n 10V9H17V11C17 11.2761 17.2239 11.5 17.5 11.5C17.7761\n 11.5 18 11.2761 18 11V8.5C18 8.22386 17.7761 8 17.5\n 8H9.5V7C9.5 6.17157 8.82843 5.5 8 5.5H5ZM8.5 7C8.5\n 6.72386 8.27614 6.5 8 6.5H5C4.72386 6.5 4.5 6.72386\n 4.5 7V10C4.5 10.2761 4.72386 10.5 5 10.5H8C8.27614\n 10.5 8.5 10.2761 8.5 10V7Z" fill="').concat(e,'"></path>\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M7 13C7 12.7239 6.77614 12.5 6.5 12.5C6.22386 12.5\n 6 12.7239 6 13V15.5C6 15.7761 6.22386 16 6.5\n 16H14.5V17C14.5 17.8284 15.1716 18.5 16 18.5H19C19.8284\n 18.5 20.5 17.8284 20.5 17V14C20.5 13.1716 19.8284 12.5\n 19 12.5H16C15.1716 12.5 14.5 13.1716 14.5\n 14V15H7V13ZM15.5 17C15.5 17.2761 15.7239 17.5 16\n 17.5H19C19.2761 17.5 19.5 17.2761 19.5 17V14C19.5\n 13.7239 19.2761 13.5 19 13.5H16C15.7239 13.5 15.5\n 13.7239 15.5 14V17Z" fill="').concat(e,'"></path> </g></svg></div>')}var requiredElement='<span class="_pendo-required-indicator" style="color:red; font-style:italic;" title="Question is required"> *</span>',requiredSyntax="{required/}",RequiredQuestions={name:"RequiredQuestions",script:function(i,e,r){var t,n=[],o=null==(t=guideMarkdownUtil.lookupGuideButtons(i.domJson))?void 0:t.filter(function(e){return e.actions.find(function(e){return"submitPoll"===e.action||"submitPollAndGoToStep"===e.action})}),a=function(){var e=function(){var e=r._.toArray(i.guideElement.find("[class*=-poll-question]:contains(".concat(requiredSyntax,")"))),n=r._.toArray(i.guideElement.find("[data-pendo-poll-id]:contains(".concat(requiredSyntax,")"))),t=r._.filter(n,function(t){return!r._.some(n,function(e){return e!==t&&t.contains(e)})}),t=r._.uniq(e.concat(t));return r._.reduce(t,function(e,t){return t.classList.contains("_pendo-yes-no-poll-question")||e.push(t),e},[])}();e&&r._.forEach(e,function(e){var t=e.getAttribute("data-pendo-poll-id"),t=(n.push(t),i.guideElement.find("#".concat(e.id," *, #").concat(e.id))),e=r._.find(t,s)||e,t=(r._.each(t,function(e){guideMarkdownUtil.removeMarkdownSyntax(e,requiredSyntax,"",r)}),r.dom(e));0===t.find("._pendo-required-indicator").length&&((e=t.find("p"))&&e.length?r.dom(e[0]):t).append(requiredElement)});r._.size(n)&&(0===r.dom("#_pendo-guide-required-disabled").length&&r.dom("head").append("<style type=text/css\n id=_pendo-guide-required-disabled>\n ._pendo-button:disabled, ._pendo-buttons[disabled] {\n border: 1px solid #999999 !important;\n background-color: #cccccc !important;\n color: #666666 !important;\n pointer-events: none !important;\n }\n </style>"),u(o));return e}();function s(e){return r._.some(e.childNodes,function(e){return 3===e.nodeType&&e.nodeValue&&-1!==e.nodeValue.indexOf(requiredSyntax)})}function d(e){var t,n;0!==e.length&&(t=!0,n=(n=[]).concat(r._.map(e,function(e){e=e.getAttribute("data-pendo-poll-id"),e=i.guideElement.find("\n [data-pendo-poll-id=".concat(e,"] textarea,\n [data-pendo-poll-id=").concat(e,"] input:text,\n [data-pendo-poll-id=").concat(e,"] select,\n [data-pendo-poll-id=").concat(e,"] input:radio:checked"));if(e&&e.length&&e[0].value)return e[0].value})),(t=r._.contains(n,undefined)||r._.isEmpty(n)?!1:t)?r._.each(o,function(e){i.guideElement.find("#".concat(e.props.id))[0]&&(i.guideElement.find("#".concat(e.props.id))[0].disabled=!1,i.guideElement.find("#".concat(e.props.id))[0].parentElement.title="")}):u(o))}function u(e){r._.each(e,function(e){i.guideElement.find("#".concat(e.props.id))[0]&&(i.guideElement.find("#".concat(e.props.id))[0].disabled=!0,i.guideElement.find("#".concat(e.props.id))[0].parentElement.title="Please complete all required questions.")})}a&&(r._.forEach(a,function(e){e.classList.contains("_pendo-open-text-poll-question")&&(e=e.dataset.pendoPollId,i.attachEvent(i.guideElement.find("[data-pendo-poll-id=".concat(e,"]._pendo-open-text-poll-input"))[0],"input",function(){d(a)}))}),i.attachEvent(i.guideElement.find(guideMarkdownUtil.containerSelector)[0],"click",function(e){e.target.classList.contains("_pendo-button")||d(a)}))},test:function(e,t,n){var i=null==(i=e.guideElement)?void 0:i.find("[class*=-poll-question]:contains(".concat(requiredSyntax,")")),e=null==(e=e.guideElement)?void 0:e.find("[data-pendo-poll-id]:contains(".concat(requiredSyntax,")"));return!n._.isUndefined(i)&&n._.size(i)||!n._.isUndefined(e)&&n._.size(e)},designerListener:function(o){var a=[],e=o.dom.getBody();new(getZoneSafeMethod(o._,"MutationObserver"))(function(e){o._.each(e,function(e){var t=o._.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], [id^=survey-item-wrapper__]"))&&o._.each(t,function(e){var t,n,i,e=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"),r=o.dom('[class*="-poll-question"][data-pendo-poll-id='.concat(e,"]"))[0]||o.dom(".bb-text[data-pendo-poll-id=".concat(e,"]"))[0];-1<((i=r?r.textContent:i)?i.indexOf(requiredSyntax):-1)?(o._.each(o.dom("[data-pendo-poll-id=".concat(e,"]:not(.pendo-radio)")),function(e){o._.each(o.dom("#".concat(e.id,' *:not(".pendo-radio"), #').concat(e.id,':not(".pendo-radio")')),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,requiredSyntax,"",o)})}),r=".bb-text[data-pendo-poll-id=".concat(e,"]"),i="".concat(r," p"),t="".concat(r," li"),n="".concat(r," ._pendo-required-indicator"),o._.each(o.dom("".concat(i,", ").concat(t)),function(e){o._.each(e.childNodes,function(e){3===e.nodeType&&-1!==e.nodeValue.indexOf(requiredSyntax)&&(e.nodeValue=e.nodeValue.split(requiredSyntax).join(""))})}),0===o.dom(n).length&&(0!==o.dom(i).length||0!==o.dom(t).length?(o.dom(i).append(requiredElement),o.dom(t)):o.dom(r)).append(requiredElement),o._.contains(a,e)?-1!==(n=a.indexOf(e))&&a.splice(n,1):a.push(e)):o._.contains(a,e)&&-1!==(i=a.indexOf(e))&&a.splice(i,1)})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!0})}},skipStepRegex=new RegExp(guideMarkdownUtil.skipStepString),SkipToEligibleStep={script:function(i,r,o){var n=!1,a=!1,e=i.guideElement.find(guideMarkdownUtil.containerSelector),t=e.attr("aria-label"),s=skipStepRegex.exec(t)[1];function d(e,t){var n=u(r.getPositionOfStep(i),"next",e),e=u(r.getPositionOfStep(i)-2,"previous",e);return n&&"next"==t&&o.goToStep({destinationStepId:n,step:i}),e&&"previous"==t&&o.goToStep({destinationStepId:e,step:i}),"next"===t?n:e}function u(e,t,n){var i;if(!o._.isNaN(e))return(i=r.steps[e])&&!i.canShow()?"auto"!==n?r.steps[n-1]:"next"===t?u(e+1,"next",n):u(e-1,"previous",n):i}e&&e.attr({"aria-label":e.attr("aria-label").replace(skipStepRegex,"")}),this.on("beforeAdvance",function(e){var t;r.getPositionOfStep(i)===r.steps.length||o._.isUndefined(s)||(t=d(s,"next"),!n&&s&&(n=!0,o.goToStep({destinationStepId:t.id,step:i}),e.cancel=!0))}),this.on("beforePrevious",function(e){var t;o._.isUndefined(s)||(t=d(s,"previous"),!a&&s&&(a=!0,o.goToStep({destinationStepId:t.id,step:i}),e.cancel=!0))})},test:function(e,t,n){e=null==(e=e.guideElement)?void 0:e.find(guideMarkdownUtil.containerSelector).attr("aria-label");return n._.isString(e)&&-1!==e.indexOf("{skipStep")},designerListener:function(n){var e=n.dom.getBody();new(getZoneSafeMethod(n._,"MutationObserver"))(function(e){n._.each(e,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(guideMarkdownUtil.containerSelector)[0])?void 0:t.getAttribute("aria-label"))&&e.match(skipStepRegex)&&(t=e.match(skipStepRegex)[0],e.replace(t,""),n.dom("#_pendoSkipIcon").length||n.dom(guideMarkdownUtil.containerSelector).append((t="#999",'<div title="Skip step added"><svg id="_pendoSkipIcon" version="1.0" xmlns="http://www.w3.org/2000/svg"\n width="'.concat(e="30px",'" height="').concat(e,'" viewBox="0 0 512.000000 512.000000"\n preserveAspectRatio="xMidYMid meet" style="bottom:5px; right:10px; position: absolute;">\n <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"\n fill="').concat(t,'" stroke="none">\n <path d="M2185 4469 c-363 -38 -739 -186 -1034 -407 -95 -71 -273 -243 -357\n -343 -205 -246 -364 -577 -429 -897 -25 -121 -45 -288 -45 -373 l0 -49 160 0\n 160 0 0 48 c0 26 5 88 10 137 68 593 417 1103 940 1374 1100 570 2418 -137\n 2560 -1374 5 -49 10 -111 10 -137 l0 -47 -155 -3 -155 -3 235 -235 235 -236\n 235 236 235 235 -155 3 -155 3 0 48 c0 27 -5 95 -10 152 -100 989 -878 1767\n -1869 1868 -117 12 -298 12 -416 0z"/>\n <path d="M320 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M960 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M1600 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M2240 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M2880 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M3840 1440 l0 -160 480 0 480 0 0 160 0 160 -480 0 -480 0 0 -160z"/>\n </g></svg></div>\n ').trim())))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!0})}};function GuideMarkdown(){var r,o,a;return{name:"GuideMarkdown",initialize:function(e,t){a=e;var n=(o=t).ConfigReader,i="guideMarkdown";n.addOption(i,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),n.get(i)&&(r=[PollBranching,MetadataSubstitution,RequiredQuestions,SkipToEligibleStep],e.designer||e._.each(r,function(e){t.GlobalRuntime.addGlobalScript(e)}),t.Events.on("designerLaunched",s))},teardown:function(){o.Events.off("designerLaunched",s),a._.each(r,function(e){o.GlobalRuntime.removeGlobalScript(e)})}};function s(){var e;e=r,a._.each(e,function(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$1=window.Promise,Promise$2=Promise$1=function(e){var t=window.Promise;return"function"==typeof t&&/native/.test(t)?t:e()}(function(){var t=setTimeout$1;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a});const 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);let idCounter=0;const uniqueId=(e="")=>e+(idCounter+=1),get=(e,t,n)=>{if(!e||"string"!=typeof t)return n;let i=e;for(const r of t.split(".")){if(null==i)return n;i=i[r]}return i===undefined?n:i},omit=(e,t)=>{if(!e||"object"!=typeof e)return{};var n=Array.isArray(t)?t:[t],i={};for(const r in e)e.hasOwnProperty(r)&&!n.includes(r)&&(i[r]=e[r]);return i},throttle=(i,r=0)=>{let o,a=0,s;return function(...e){var t=now(),n=r-(t-a);return n<=0||r<n?(o&&(clearTimeout(o),o=null),a=t,s=i.apply(this,e)):!o&&0<r&&(o=setTimeout$1(()=>{a=now(),o=null,s=i.apply(this,e)},n)),s}},each=(t,n)=>{if(t&&n)if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e],e,t);else if("object"==typeof t)for(const e in t)t.hasOwnProperty(e)&&n(t[e],e,t);return t},isFunction=e=>"function"==typeof e,doesExist=e=>!(null==e),now=()=>Date.now(),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()),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(d){return!1}},serialize=e=>{var t=omit(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),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(state$1.changeCallbacks,e=>{e(state$1.currentConnectionQuality)})},triggerEval=()=>{each(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=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(e)){const t=_listenerId++;return state$1.evalCallbacks[t]=e,()=>{delete state$1.evalCallbacks[t]}}},markTime=(e=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$2((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"](()=>{})},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(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(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 f,g;return{name:"VocPortal",initialize:function(e,t){f=e;e=(g=t).EventTracer.addTracerIds({}).frameId;this.removeResizeEvent=f.attachEvent(window,"resize",m),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 m(){var e=document.getElementById("pendo-resource-center-container"),e=f.dom(e);g.sizeElements(e)}function t(e,t){var n=f.getSerializedMetadata(),i=!!f.designer||g.store.getters["preview/isInPreviewMode"]();t({apiKey:f.apiKey,url:f.url.externalizeURL(),visitor:n.visitor,account:n.account,parentAccount:n.parentAccount,sandboxMode:i,guideId:f._.get(f.getActiveGuide(),"guide.id"),rcModuleId:f._.get(f.BuildingBlocks.BuildingBlockResourceCenter.getResourceCenter(),"activeModule.id")})}function i(e){try{var t,n,i,r,{value:o,unit:a,isImportant:s}=e.data.width,{value:d,unit:u,isImportant:c}=e.data.height;"number"==typeof o&&"number"==typeof d&&(t=["px","%","vh","vw"],f._.contains(t,a)&&f._.contains(t,u)&&(n=""+o+a+(s?" !important":""),i=""+d+u+(c?" !important":""),r=document.getElementById("pendo-resource-center-container"),g.util.addInlineStyles("pendo-voc-portal-styles",`#pendo-resource-center-container:has(iframe[src*="portal"][src*="mode=rc"]) {
|
|
113
37
|
width: ${n};
|
|
114
38
|
height: ${i};
|
|
115
39
|
._pendo-step-container-size {
|
|
116
40
|
width: ${n};
|
|
117
41
|
height: ${i};
|
|
118
42
|
}
|
|
119
|
-
}`,r),m(),l=r))&&((p=l.getBoundingClientRect()).left<10?l.style.transform=`translateX(${10-p.left}px)`:l.style.transform="")}catch(h){g.log.error("Error while adjusting RC module",h)}var l,p}}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="",d="",r="",o=!1,u="",c=!1;const l="feedback_ping_sent";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:_,openFeedback:A,initializeFeedbackOnce:I,isFeedbackLoaded:B,convertPendoToFeedbackOptions:P,isUnsupportedIE:e._.partial(isUnsupportedIE,t),removeFeedbackWidget:D};return e.feedback=n,e.getFeedbackSettings=j,t.Events.identify.on(m),t.Events.metadata.on(m),t.Events.ready.on(v),t.agentStorage.registry.addLocal(i,{localStorageOnly:!0}),t.agentStorage.registry.addLocal(l,{duration:36e5,localStorageOnly:!0}),{validate:g}},teardown:function(){D(),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)?D:t)()}function v(){t()}function y(){return d+"/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),E()})["catch"](()=>{f.agentStorage.clear(l)})}var t;return f.q.resolve()}function S(e){return e=e||P(M()),{data:JSON.stringify(e)}}function E(){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 I(){return c&&n()?f.q.resolve():L(M(),f.ConfigReader.get("feedbackSettings"))}function _(e){return I().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)),x().then(function(e){t.location=e}),!1;var t;x().then(function(e){window.location.href=e})},function(){})}function C(e){var t=document.createElement("a");return t.href=e,t.host}function x(){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 T(){return document.getElementById(p.feedbackWidget)}function R(){return document.getElementById(p.feedbackIframe)}function k(){var e=R();return e||(G(),e=R()),e}function A(e){var t,n;H()&&(e&&e.preventDefault&&e.preventDefault(),(t=k()).src&&t.src!==y()||x().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(T(),"visible"),N("user.widget.opened"))}function O(){var e,t;e=document.getElementById(p.feedbackWidget),t=document.getElementById(p.feedbackOverlay),e&&t&&t.parentNode.removeChild(t),h.dom.removeClass(T(),"visible"),N("user.widget.closed")}function N(e){var t=S();t.event=e,h.ajax.postJSON(a+"/analytics",t)}function F(){window.addEventListener("message",function(e){var t=e.origin||e.originalEvent.origin;if(t=t,r?C(t)===r:C(t)===C(d)){var t=e.data.message,n=e.data.data;switch(t){case"close-receptive-widget":O();break;case"open-receptive":_();break;case"update-receptive-notification-count":f.agentStorage.write(i,n.count),E();break;case"handle-logout":k().src=y(),O();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",`
|
|
120
|
-
#feedback-trigger button:hover {
|
|
121
|
-
box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;
|
|
122
|
-
outline: none !important;
|
|
123
|
-
background: #3e566f !important;
|
|
124
|
-
}
|
|
125
|
-
#feedback-trigger button:focus {
|
|
126
|
-
box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;
|
|
127
|
-
outline: none !important;
|
|
128
|
-
background: #3e566f !important;
|
|
129
|
-
}
|
|
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",A)),G(r.horizontalPosition)}function G(e){t=`
|
|
131
|
-
.buttonIs-${t="left"===(t=e)?"left":"right"}.visible {
|
|
132
|
-
${t}: 0 !important;
|
|
133
|
-
width: 470px !important;
|
|
134
|
-
animation-direction: alternate-reverse !important;
|
|
135
|
-
animation: pendoFeedbackSlideFrom-${t} 0.5s 0s 1 alternate both !important;
|
|
136
|
-
-webkit-animation: pendoFeedbackSlideFrom-${t} 0.5s 0s 1 alternate both !important;
|
|
137
|
-
z-index: 9002 !important;
|
|
138
|
-
}
|
|
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()),F()}function B(){return o}function M(){let e=f.ConfigReader.getLocalConfig();return h._.isObject(e)||(e={}),h._.isObject(e.visitor)||(e.visitor={}),h._.isObject(e.account)||(e.account={}),e}function H(e){e=e||M();if(!isUnsupportedIE(h)&&s&&a&&d&&u)if(h._.get(e.visitor,"id")){if(!h.isAnonymousVisitor(e.visitor.id)){if(h._.get(e.account,"id"))return 1;h.log("The current visitor is not associated with an account.")}}else h.log("Not valid visitor id")}function L(e,t){if(s=t.vendorId,a=t.apiUrl,d=t.siteUrl,u=t.productId,c)return f.q.reject();if(!H(e))return f.q.reject();var n,i,e=P(e);try{n=h.url.get(),i="fdbkDst";const o=null!=(i=new RegExp("[?&]"+i+"=([^&#]*)").exec(n))&&decodeURI(i[1])||null;if(o&&o.startsWith("case"))return c=!0,void x().then(function(e){e=e+"&fdbkDst="+o;window.location.href=e})}catch(r){c=!1,h.log(r,"unhandled error while checking feedback destination")}try{return c=!0,"WIDGET"===t.type&&U(t),E(),w(e)}catch(r){return c=!1,h.log(r,"unhandled error while initializing feedback"),f.q.reject(r)}}function P(e){var t,n,i=f.agent.getJwtInfoCopy();return h._.isEmpty(i)?((t={}).user=h._.pick(e.visitor,"id","full_name","firstName","lastName","email","tags","custom_allowed_products"),h._.extend(t.user,{allowed_products:[{id:u}]}),t.account=h._.pick(e.account,"id","name","monthly_value","is_paying","tags"),h._.extend(t,{vendor:{id:s}}),h._.isUndefined(t.account.is_paying)&&(t.account.is_paying=!0),null!=t.user.email&&""!=t.user.email||(t.user.email=(e=t,h._.isUndefined(e.user)||h._.isUndefined(e.user.id)?"noemail+"+h.randomString(32)+"@pendo.io":"noemail+"+e.user.id+"@pendo.io")),null!=t.user.full_name&&""!=t.user.full_name||(t.user.full_name=(e=t,h._.isUndefined(e.user.firstName)&&h._.isUndefined(e.user.lastName)?h._.isUndefined(e.user)||h._.isUndefined(e.user.id)?"No Name Provided"+h.randomString(32):"No Name Provided"+e.user.id:(n=[],h._.isUndefined(e.user.firstName)||n.push(e.user.firstName),h._.isUndefined(e.user.lastName)||n.push(e.user.lastName),n.join(" ")))),t):(e=JSON.parse(JSON.stringify(i)),h._.extend(e,{vendor:{id:s}}),h._.extend(e,{allowed_products:[{id:u}]}),e)}function z(){return c}function D(){h._.each(h._.values(p),function(e){h.dom("#"+e).remove()}),u=r=d=s=a="",c=o=!1,f.agentStorage.clear(i),f.agentStorage.clear(l)}function j(){return JSON.parse(JSON.stringify(f.ConfigReader.get("feedbackSettings",{})))}}function URLPolyfillFactory(n){return function URL(e){var t=n.createElement("a");if(t.href=e,":"===t.protocol)throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");if(t.href!==e&&t.href!==encodeURI(e))throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return t.toString||(t.toString=function(){return t.href}),null==t.origin&&(t.origin=t.protocol+"//"+t.hostname,"80"!==t.port)&&"443"!==t.port&&(t.origin+=":"+t.port),t}}var URL$1=function(e){var t=window.URL;return"function"==typeof t&&/native/.test(t)?t:e(document)}(URLPolyfillFactory);function record(){var e,d=Object.defineProperty,s=(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},u=Object.defineProperty,c=(e,t,n)=>{return n=n,(t="symbol"!=typeof t?t+"":t)in(e=e)?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},D=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(D||{});const h={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot"],MutationObserver:[],EventTarget:[]},g={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:["querySelector","querySelectorAll"],MutationObserver:["constructor"],EventTarget:["addEventListener","removeEventListener"]},m={};function v(e){if(m[e])return m[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 m[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?m[e]=o:n):t.prototype}catch{return n}}const y={};function t(e,t,n){var i=e+"."+String(n);return y[i]?y[i].call(t):(e=v(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(y[i]=e).call(t):t[n])}const b={};function r(e,t,n){var i=e+"."+String(n);if(b[i])return b[i].bind(t);var r=null==(o=null==(r=null==globalThis?void 0:globalThis.Zone)?void 0:r.__symbol__)?void 0:o.call(r,String(n));if(r){var o=null==(o=globalThis[e])?void 0:o.prototype,r=globalThis[r]??(null==o?void 0:o[r]);if("function"==typeof r)return(b[i]=r).bind(t)}o=v(e)[n];return"function"!=typeof o?t[n]:(b[i]=o).bind(t)}const F={childNodes:function(e){return t("Node",e,"childNodes")},parentNode:function(e){return t("Node",e,"parentNode")},parentElement:function(e){return t("Node",e,"parentElement")},textContent:function(e){return t("Node",e,"textContent")},contains:function(e,t){return r("Node",e,"contains")(t)},getRootNode:function(e){return r("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?t("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?t("Element",e,"shadowRoot"):null},querySelector:function(e,t){return r("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return r("Element",e,"querySelectorAll")(t)},addEventListener:function(e,t,n,i){r("EventTarget",e,"addEventListener")(t,n,i)},removeEventListener:function(e,t,n,i){r("EventTarget",e,"removeEventListener")(t,n,i)},mutationObserver:function(){return v("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 K(e){return e.nodeType===e.ELEMENT_NODE}function U(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 G(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}const B="undefined"!=typeof window?function(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}("setTimeout").bind(window):global.setTimeout;function O(e){try{var n=e.rules||e.cssRules;if(!n)return null;let t=e.href;!t&&e.ownerNode&&(t=e.ownerNode.baseURI);var i=Array.from(n,e=>w(e,t)).join("");return r=(r=i).includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")?r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"):r}catch(t){return null}var r}function w(t,n){var i,r;if("styleSheet"in t){let e;try{e=O(t.styleSheet)||((r=(i=t).cssText).split('"').length<3?r:(r=["@import",`url(${JSON.stringify(i.href)})`],""===i.layerName?r.push("layer"):i.layerName&&r.push(`layer(${i.layerName})`),i.supportsText&&r.push(`supports(${i.supportsText})`),i.media.length&&r.push(i.media.mediaText),r.join(" ")+";"))}catch(o){e=t.cssText}return null!=(i=null==t?void 0:t.styleSheet)&&i.href?f(e,t.styleSheet.href):e}{let e=t.cssText;return"selectorText"in t&&(e=function(t){var e=t.cssText.includes("grid-template:"),n=""!==t.style.getPropertyValue("grid-template-areas"),i=t.cssText.includes("grid-template-areas:");if(e&&n&&!i){var r=[];for(let e=0;e<t.style.length;e++){var o=t.style[e],a=t.style.getPropertyValue(o);r.push(o+": "+a)}return`${t.selectorText} { ${r.join("; ")}; }`}return t.cssText}(t),t.selectorText.includes(":"))&&(e=e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n?f(e,n):e}}class le{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 $({element:e,maskInputOptions:t,tagName:n,type:i,value:r,maskInputFn:o,needsMask:a}){let s=r||"";r=i&&k(i);return s=t[n.toLowerCase()]||r&&t[r]||a?o?o(s,e):"*".repeat(s.length):s}function k(e){return e.toLowerCase()}const N="__rrweb_original__";function X(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?k(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 S=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,E=/^(?:[a-z+]+:)?\/\//i,I=/^www\..*/i,_=/^(data:)([^,]*),(.*)/i;function f(e,d){return(e||"").replace(S,(e,t,n,i,r,o)=>{n=n||r||o,r=t||i||"";if(!n)return e;if(E.test(n)||I.test(n))return`url(${r}${n}${r})`;if(_.test(n))return`url(${r}${n}${r})`;if("/"===n[0])return`url(${r}${function(e){let t="";return t=(t=-1<e.indexOf("//")?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}(d)+n}${r})`;var a=d.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 C(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function M(e,t){return function(a,e,s=!1){var d=Array.from(e.childNodes),u=[];let c=0;if(1<d.length&&a&&"string"==typeof a){let o=C(a,s);var l=o.length/a.length;for(let r=1;r<d.length;r++)if(d[r].textContent&&"string"==typeof d[r].textContent){var p,h=C(d[r].textContent,s);let i=3;for(;i<h.length&&(h[i].match(/[a-zA-Z0-9]/)||-1!==h.indexOf(h.substring(0,i),1));i++);for(;i<h.length;i++){let e=h.substring(0,i),t=o.split(e),n=-1;if(2===t.length)n=t[0].length;else if(2<t.length&&""===t[0]&&""!==d[r-1].textContent)n=o.indexOf(e,1);else if(1===t.length){if(e=e.substring(0,e.length-1),(t=o.split(e)).length<=1)return u.push(a),u;i=101}else i===h.length-1&&(n=o.indexOf(e));if(-1!==(n=2<=t.length&&100<i&&((p=d[r-1].textContent)&&"string"==typeof p&&(p=C(p).length,n=o.indexOf(e,p)),-1===n)?t[0].length:n)){let e=Math.floor(n/l);for(;0<e&&e<a.length;){if((c+=1)>50*d.length)return u.push(a),u;var f=C(a.substring(0,e),s);if(f.length===n){u.push(a.substring(0,e)),a=a.substring(e),o=o.substring(n);break}f.length<n?e+=Math.max(1,Math.floor((n-f.length)/l)):e-=Math.max(1,Math.floor((f.length-n)*l))}break}}}}return u.push(a),u}(e,t).join("/* rr_split */")}let Z=1;const Q=new RegExp("[^a-z0-9-_:]"),H=-2;function x(){return Z++}let A,ee;const T=/^[^ \t\n\r\u000c]+/,R=/^[, \t\n\r\u000c]+/;function pe(i,r){if(""===r.trim())return r;let o=0;function e(e){var e=e.exec(r.substring(o));return e?(e=e[0],o+=e.length,e):""}for(var a=[];e(R),!(o>=r.length);){let n=e(T);if(","===n.slice(-1))n=fe(i,n.substring(0,n.length-1)),a.push(n);else{let e="",t=(n=fe(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 he=new WeakMap;function fe(e,t){return t&&""!==t.trim()?ge(e,t):t}function ge(e,t){let n=he.get(e);if(n||(n=e.createElement("a"),he.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function me(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?pe(e,i):"style"===n?f(i,ge(e)):"object"===t&&"data"===n?fe(e,i):i:fe(e,i))}function ve(e,t){return("video"===e||"audio"===e)&&"autoplay"===t}function ye(t,n,e){try{if("string"==typeof n){if(t.classList.contains(n))return!0}else if(n)for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}if(e)return t.matches(e)}catch(r){}return!1}function 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 z(e,t,n,i){let r;if(K(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 we(e,t){var n,{needsMask:i,maskTextFn:r,maskInputOptions:o,maskInputFn:a,rootId:s,cssCaptured:d}=t,u=e.parentNode&&e.parentNode.tagName;let c="";var l="STYLE"===u||void 0,p="SCRIPT"===u||void 0,u="TEXTAREA"===u||void 0;if(l&&c){try{e.nextSibling||e.previousSibling||null!=(n=e.parentNode.sheet)&&n.cssRules&&(c=O(e.parentNode.sheet))}catch(h){console.warn("Cannot get CSS styles from text's parentNode. Error: "+h,e)}c=f(c,ge(t.doc))}return p?c="SCRIPT_PLACEHOLDER":d||(c=F.textContent(e),l&&(c=c&&f(c,ge(t.doc)))),!l&&!p&&c&&i&&(c=r?r(c,F.parentElement(e)):c.replace(/[\S]/g,"*")),u&&c&&o.textarea&&(c=a?a(c,e.parentNode):c.replace(/[\S]/g,"*")),{type:D.Text,textContent:c||"",rootId:s}}function Se(t,e){const{doc:n,blockClass:i,blockSelector:r,hideSelector:o,inlineStylesheet:a,maskInputOptions:s={},maskInputFn:d,dataURLOptions:u={},inlineImages:c,recordCanvas:l,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:f,needsMask:g}=e;var e=ye(t,i,r),m=!(!e||!o)&&ye(t,"",o),v=(E=t)instanceof HTMLFormElement?"form":(E=k(E.tagName),Q.test(E)?"div":E);let y={};var b,w=t.attributes.length;for(let e=0;e<w;e++){var S=t.attributes[e];ve(v,S.name,S.value)||(y[S.name]=me(n,v,k(S.name),S.value))}if("link"===v&&a){var E=Array.from(n.styleSheets).find(e=>e.href===t.href);let e=null;(e=E?O(E):e)&&(delete y.rel,delete y.href,y._cssText=e)}if("style"===v&&t.sheet){let e=O(t.sheet);e&&(1<t.childNodes.length&&(e=M(e,t)),y._cssText=e)}if("input"!==v&&"textarea"!==v&&"select"!==v||(E=t.value,b=t.checked,"radio"!==y.type&&"checkbox"!==y.type&&"submit"!==y.type&&"button"!==y.type&&E?y.value=$({element:t,type:X(t),tagName:v,value:E,maskInputOptions:s,maskInputFn:d,needsMask:g}):b&&(y.checked=b)),"option"===v&&(t.selected&&!s.select?y.selected=!0:delete y.selected),"dialog"===v&&t.open&&(y.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),"canvas"===v&&l&&("2d"===t.__context?function(n){var i=n.getContext("2d");if(i)for(let t=0;t<n.width;t+=50)for(let e=0;e<n.height;e+=50){var r=i.getImageData,r=N in r?r[N]:r;if(new Uint32Array(r.call(i,t,e,Math.min(50,n.width-t),Math.min(50,n.height-e)).data.buffer).some(e=>0!==e))return}return 1}(t)||(y.rr_dataURL=t.toDataURL(u.type,u.quality)):"__context"in t||(E=t.toDataURL(u.type,u.quality),(b=n.createElement("canvas")).width=t.width,b.height=t.height,E!==b.toDataURL(u.type,u.quality)&&(y.rr_dataURL=E))),"img"===v&&c){A||(A=n.createElement("canvas"),ee=A.getContext("2d"));const C=t,x=C.currentSrc||C.getAttribute("src")||"<unknown-src>",T=C.crossOrigin,R=()=>{C.removeEventListener("load",R);try{A.width=C.naturalWidth,A.height=C.naturalHeight,ee.drawImage(C,0,0),y.rr_dataURL=A.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==C.crossOrigin)return C.crossOrigin="anonymous",void(C.complete&&0!==C.naturalWidth?R():C.addEventListener("load",R));console.warn(`Cannot inline img src=${x}! Error: `+e)}"anonymous"===C.crossOrigin&&(T?y.crossOrigin=T:C.removeAttribute("crossorigin"))};C.complete&&0!==C.naturalWidth?R():C.addEventListener("load",R)}"audio"!==v&&"video"!==v||((b=y).rr_mediaState=t.paused?"paused":"played",b.rr_mediaCurrentTime=t.currentTime,b.rr_mediaPlaybackRate=t.playbackRate,b.rr_mediaMuted=t.muted,b.rr_mediaLoop=t.loop,b.rr_mediaVolume=t.volume),h||(t.scrollLeft&&(y.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(y.rr_scrollTop=t.scrollTop)),m?y={"class":y["class"],rr_display:"none"}:e&&({width:E,height:b}=t.getBoundingClientRect(),y={"class":y["class"],rr_width:E+"px",rr_height:b+"px"}),"iframe"!==v||p(y.src)||(t.contentDocument||(y.rr_src=y.src),delete y.src);let I;try{customElements.get(v)&&(I=!0)}catch(_){}return{type:D.Element,tagName:v,attributes:y,childNodes:[],isSVG:(m=t,Boolean("svg"===m.tagName||m.ownerSVGElement)||void 0),needBlock:e,rootId:f,isCustom:I}}function j(e){return null==e?"":e.toLowerCase()}function te(t,e){const{doc:n,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,maskTextClass:s,maskTextSelector:d,skipChild:u=!1,inlineStylesheet:c=!0,maskInputOptions:l={},maskTextFn:p,maskInputFn:h,slimDOMOptions:f,dataURLOptions:g={},inlineImages:m=!1,recordCanvas:v=!1,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:E=5e3,keepIframeSrcFn:I=()=>!1,newlyAddedElement:_=!1,cssCaptured:C=!1}=e;let x=e["needsMask"],{preserveWhiteSpace:T=!0}=e;x||(e=void 0===x,x=z(t,s,d,e));e=function(e,t){var n,{doc:i,mirror:t,blockClass:r,blockSelector:o,hideSelector:a,needsMask:s,inlineStylesheet:d,maskInputOptions:u={},maskTextFn:c,maskInputFn:l,dataURLOptions:p={},inlineImages:h,recordCanvas:f,keepIframeSrcFn:g,newlyAddedElement:m=!1,cssCaptured:v=!1}=t,y=(n=i,!(t=t).hasNode(n)||1===(n=t.getId(n))?void 0:n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:D.Document,childNodes:[],compatMode:e.compatMode}:{type:D.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:D.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return Se(e,{doc:i,blockClass:r,blockSelector:o,hideSelector:a,inlineStylesheet:d,maskInputOptions:u,maskInputFn:l,dataURLOptions:p,inlineImages:h,recordCanvas:f,keepIframeSrcFn:g,newlyAddedElement:m,rootId:y,needsMask:s});case e.TEXT_NODE:return we(e,{doc:i,needsMask:s,maskTextFn:c,maskInputOptions:u,maskInputFn:l,rootId:y,cssCaptured:v});case e.CDATA_SECTION_NODE:return{type:D.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:D.Comment,textContent:F.textContent(e)||"",rootId:y};default:return!1}}(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,needsMask:x,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:h,dataURLOptions:g,inlineImages:m,recordCanvas:v,keepIframeSrcFn:I,newlyAddedElement:_,cssCaptured:C});if(!e)return console.warn(t,"not serialized"),null;let R;R=i.hasNode(t)?i.getId(t):function(e,t){if(t.comment&&e.type===D.Comment)return 1;if(e.type===D.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===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,f)||!T&&e.type===D.Text&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?H:Z++;var k=Object.assign(e,{id:R});if(i.add(t,k),R===H)return null;y&&y(t);let A=!u;if(k.type===D.Element&&(A=A&&!k.needBlock,delete k.needBlock,e=F.shadowRoot(t))&&G(e)&&(k.isShadowHost=!0),(k.type===D.Document||k.type===D.Element)&&A){f.headWhitespace&&k.type===D.Element&&"head"===k.tagName&&(T=!1);var O={doc:n,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,needsMask:x,maskTextClass:s,maskTextSelector:d,skipChild:u,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:h,slimDOMOptions:f,dataURLOptions:g,inlineImages:m,recordCanvas:v,preserveWhiteSpace:T,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:I,cssCaptured:!1};if(k.type!==D.Element||"textarea"!==k.tagName||void 0===k.attributes.value){k.type===D.Element&&void 0!==k.attributes._cssText&&"string"==typeof k.attributes._cssText&&(O.cssCaptured=!0);for(const L of Array.from(F.childNodes(t))){var N=te(L,O);N&&k.childNodes.push(N)}}let e=null;if(K(t)&&(e=F.shadowRoot(t)))for(const P of Array.from(F.childNodes(e))){var M=te(P,O);M&&(G(e)&&(M.isShadow=!0),k.childNodes.push(M))}}e=F.parentNode(t);return e&&U(e)&&G(e)&&(k.isShadow=!0),k.type===D.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=B(()=>{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 B(i,0),n.addEventListener("load",i);n.addEventListener("load",i)}}}(t,()=>{var e=t.contentDocument;e&&b&&(e=te(e,{doc:e,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,needsMask:x,maskTextClass:s,maskTextSelector:d,skipChild:!1,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:h,slimDOMOptions:f,dataURLOptions:g,inlineImages:m,recordCanvas:v,preserveWhiteSpace:T,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:I}))&&b(t,e)},w),k.type===D.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=B(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}}(t,()=>{var e;S&&(e=te(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,needsMask:x,maskTextClass:s,maskTextSelector:d,skipChild:!1,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:h,slimDOMOptions:f,dataURLOptions:g,inlineImages:m,recordCanvas:v,preserveWhiteSpace:T,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:I}))&&S(t,e)},E),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 Ee={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot"],MutationObserver:[],EventTarget:[]},Ie={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:["querySelector","querySelectorAll"],MutationObserver:["constructor"],EventTarget:["addEventListener","removeEventListener"]},_e={};function Ce(e){if(_e[e])return _e[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 Ee?Ee[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 Ie?Ie[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 _e[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?_e[e]=o:n):t.prototype}catch{return n}}const xe={};function n(e,t,n){var i=e+"."+String(n);return xe[i]?xe[i].call(t):(e=Ce(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(xe[i]=e).call(t):t[n])}const Te={};function o(e,t,n){var i=e+"."+String(n);if(Te[i])return Te[i].bind(t);var r=null==(o=null==(r=null==globalThis?void 0:globalThis.Zone)?void 0:r.__symbol__)?void 0:o.call(r,String(n));if(r){var o=null==(o=globalThis[e])?void 0:o.prototype,r=globalThis[r]??(null==o?void 0:o[r]);if("function"==typeof r)return(Te[i]=r).bind(t)}o=Ce(e)[n];return"function"!=typeof o?t[n]:(Te[i]=o).bind(t)}function Re(){return Ce("MutationObserver").constructor}function ke(){var e,t,n;let i=window.Proxy;try{"function"==typeof window.Proxy&&null!=(e=window.Proxy)&&e.toString().includes("[native code]")||((n=document.createElement("iframe")).style.display="none",document.documentElement.appendChild(n),i=(null==(t=n.contentWindow)?void 0:t.Proxy)||window.Proxy,document.documentElement.removeChild(n))}catch(r){console.debug("Unable to get untainted Proxy from iframe",r)}return i}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 ne={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 o("Node",e,"contains")(t)},getRootNode:function(e){return o("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 o("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return o("Element",e,"querySelectorAll")(t)},addEventListener:function(e,t,n,i){o("EventTarget",e,"addEventListener")(t,n,i)},removeEventListener:function(e,t,n,i){o("EventTarget",e,"removeEventListener")(t,n,i)},mutationObserver:Re,patch:L};function ie(e,t,n=document){const i={capture:!0,passive:!0};return ne.addEventListener(n,e,t,i),()=>ne.removeEventListener(n,e,t,i)}const i="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";var Ae={map:{},getId(){return console.error(i),-1},getNode(){return console.error(i),null},removeNodeFromMap(){console.error(i)},has(){return console.error(i),!1},reset(){console.error(i)}};function P(r,o,a={}){let s=null,d=0;return function(...e){var t=Date.now(),n=(d||!1!==a.leading||(d=t),o-(t-d));const i=this;n<=0||o<n?(s&&(clearTimeout(s),s=null),d=t,r.apply(i,e)):s||!1===a.trailing||(s=B(()=>{d=!1===a.leading?0:Date.now(),s=null,r.apply(i,e)},n))}}function Oe(e,t,n,i,r=window){const o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(e){B(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>Oe(e,t,o||{},!0)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Ae=new(ke())(Ae,{get(e,t,n){return"map"===t&&console.error(i),Reflect.get(e,t,n)}}));let Ne=Date.now;function Me(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=ne.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=ne.parentElement(n.body))?void 0:t.scrollTop)||(null==(e=null==n?void 0:n.body)?void 0:e.scrollTop)||0}}function Le(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Pe(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function De(e){return e?e.nodeType===e.ELEMENT_NODE?e:ne.parentElement(e):null}function q(e,t,n,i){if(e){e=De(e);if(e){try{if("string"==typeof t){if(e.classList.contains(t))return!0;if(i&&null!==e.closest("."+t))return!0}else if(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 Fe(e,t){return-1!==t.getId(e)}function Ue(e,t,n){return"TITLE"===e.tagName&&n.headTitleMutations||t.getId(e)===H}function Ge(e,t){var n;return!U(e)&&(n=t.getId(e),!t.has(n)||(!(n=ne.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||Ge(n,t)))}function Be(e){return Boolean(e.changedTouches)}function He(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 je(e){return e&&(!1&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(ne.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Ne=()=>(new Date).getTime());class qe{constructor(){s(this,"id",1),s(this,"styleIDMap",new WeakMap),s(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function We(e){var t;let n=null;return n="getRootNode"in e&&(null==(t=ne.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ne.host(ne.getRootNode(e))?ne.host(ne.getRootNode(e)):n}function Ve(e){var t=e.ownerDocument;return!!t&&(e=function(e){let t=e;for(var n;n=We(t);)t=n;return t}(e),ne.contains(t,e))}function Je(e){var t=e.ownerDocument;return t&&(ne.contains(t,e)||Ve(e))}var re=(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))({}),oe=(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))(oe||{}),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||{}),Ke=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))({}),W=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(W||{}),$e=(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 Xe(e){return"__ln"in e}class Ye{constructor(){s(this,"length",0),s(this,"head",null),s(this,"tail",null),s(this,"reordered",!1)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let e=0;e<t;e++)n=(null==n?void 0:n.next)||null;return n}addNode(e){var t,n={value:e,previous:null,next:null};e.__ln=n,e.previousSibling&&Xe(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&&Xe(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||!Xe(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 Ze=(e,t)=>e+"@"+t;class Qe{constructor(){s(this,"frozen",!1),s(this,"locked",!1),s(this,"texts",[]),s(this,"attributes",[]),s(this,"attributeMap",new WeakMap),s(this,"removes",[]),s(this,"mapRemoves",[]),s(this,"movedMap",{}),s(this,"addedSet",new Set),s(this,"movedSet",new Set),s(this,"droppedSet",new Set),s(this,"removesSubTreeCache",new Set),s(this,"mutationCb"),s(this,"blockClass"),s(this,"blockSelector"),s(this,"hideSelector"),s(this,"maskTextClass"),s(this,"maskTextSelector"),s(this,"inlineStylesheet"),s(this,"maskInputOptions"),s(this,"maskTextFn"),s(this,"maskInputFn"),s(this,"keepIframeSrcFn"),s(this,"recordCanvas"),s(this,"inlineImages"),s(this,"slimDOMOptions"),s(this,"dataURLOptions"),s(this,"doc"),s(this,"mirror"),s(this,"iframeManager"),s(this,"stylesheetManager"),s(this,"shadowDomManager"),s(this,"canvasManager"),s(this,"processedNodeManager"),s(this,"unattachedDoc"),s(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),s(this,"emit",()=>{if(!this.frozen&&!this.locked){const d=[],u=new Set,c=new Ye,l=e=>{let t=e,n=H;for(;n===H;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n};for(var n,i,r=t=>{var n=ne.parentNode(t);if(n&&Je(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=U(n)?this.mirror.getId(We(t)):this.mirror.getId(n),n=l(t);if(-1===i||-1===n)return c.addNode(t);var r=te(t,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,hideSelector:this.hideSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{He(e,this.mirror)&&this.iframeManager.addIframe(e),ze(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),je(t)&&this.shadowDomManager.addShadowRoot(ne.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&&(d.push({parentId:i,nextId:n,node:r}),u.add(r.id))}};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const p of this.movedSet){var t=ne.parentNode(p);nt(this.removesSubTreeCache,p,this.mirror)&&!this.movedSet.has(t)&&!this.addedSet.has(t)||r(p)}for(const h of this.addedSet)!it(this.droppedSet,h)&&!nt(this.removesSubTreeCache,h,this.mirror)||it(this.movedSet,h)?r(h):this.droppedSet.add(h);let e=null;for(;c.length;){let t=null;if(!(t=e&&(n=this.mirror.getId(ne.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(ne.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=ne.parentNode(a);if(a&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){a=ne.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=ne.parentNode(t);return n&&"TEXTAREA"===n.tagName&&this.genTextAreaValueMutation(n),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!u.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=>!u.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:d};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(s))}}),s(this,"bufferBelongsToIframe",e=>this.doc===e.contentDocument),s(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));var n=Array.from(ne.childNodes(e),e=>ne.textContent(e)||"").join(""),i=z(e,this.maskTextClass,this.maskTextSelector,!0);t.attributes.value=$({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:X(e),value:n,maskInputFn:this.maskInputFn,needsMask:i})}),s(this,"processMutation",i=>{if(!Ue(i.target,this.mirror,this.slimDOMOptions))switch(i.type){case"characterData":var r=ne.textContent(i.target);q(i.target,this.blockClass,this.blockSelector,!1)||r===i.oldValue||this.texts.push({value:z(i.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,De(i.target)):r.replace(/[\S]/g,"*"):r,node:i.target});break;case"attributes":{var o,a=i.target;let e=i.attributeName,t=i.target.getAttribute(e);if("value"===e&&(r=X(a),o=z(i.target,this.maskTextClass,this.maskTextSelector,!0),t=$({element:a,maskInputOptions:this.maskInputOptions,tagName:a.tagName,type:r,value:t,maskInputFn:this.maskInputFn,needsMask:o})),q(i.target,this.blockClass,this.blockSelector,!1)||t===i.oldValue)return;let n=this.attributeMap.get(i.target);if("IFRAME"===a.tagName&&"src"===e&&!this.keepIframeSrcFn(t)){if(a.contentDocument)return;e="rr_src"}if(n||(n={node:i.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(i.target,n)),"type"===e&&"INPUT"===a.tagName&&"password"===(i.oldValue||"").toLowerCase()&&a.setAttribute("data-rr-is-password","true"),!ve(a.tagName,e))if(n.attributes[e]=me(this.doc,k(a.tagName),k(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 d=a.style.getPropertyValue(l),u=a.style.getPropertyPriority(l);d!==s.style.getPropertyValue(l)||u!==s.style.getPropertyPriority(l)?n.styleDiff[l]=""===u?d:[d,u]:n._unchangedStyles[l]=[d,u]}for(const p of Array.from(s.style))""===a.style.getPropertyValue(p)&&(n.styleDiff[p]=!1)}else"open"===e&&"DIALOG"===a.tagName&&(a.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal");break}case"childList":q(i.target,this.blockClass,this.blockSelector,!0)||("TEXTAREA"!==i.target.tagName?(i.addedNodes.forEach(e=>this.genAdds(e,i.target)),i.removedNodes.forEach(e=>{var t=this.mirror.getId(e),n=U(i.target)?this.mirror.getId(ne.host(i.target)):this.mirror.getId(i.target);q(i.target,this.blockClass,this.blockSelector,!1)||Ue(e,this.mirror,this.slimDOMOptions)||!Fe(e,this.mirror)||(this.addedSet.has(e)?(et(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[Ze(t,n)]?et(this.movedSet,e):(this.removes.push({parentId:n,id:t,isShadow:!(!U(i.target)||!G(i.target))||void 0}),tt(e,this.removesSubTreeCache))),this.mapRemoves.push(e))})):this.genTextAreaValueMutation(i.target))}}),s(this,"genAdds",(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(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[Ze(this.mirror.getId(t),e)]=!0)}else this.addedSet.add(t),this.droppedSet["delete"](t);q(t,this.blockClass,this.blockSelector,!1)||(ne.childNodes(t).forEach(e=>this.genAdds(e)),je(t)&&ne.childNodes(ne.shadowRoot(t)).forEach(e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","hideSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(e=>{this[e]=t[e]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function et(t,e){t["delete"](e),ne.childNodes(e).forEach(e=>et(t,e))}function tt(e,t){const n=[e];for(;n.length;){var i=n.pop();t.has(i)||(t.add(i),ne.childNodes(i).forEach(e=>n.push(e)))}}function nt(e,t){if(0!==e.size)return e=e,t=t,(t=ne.parentNode(t))&&e.has(t)}function it(e,t){return 0!==e.size&&function i(e,t){const n=ne.parentNode(t);if(!n)return!1;if(e.has(n))return!0;return i(e,n)}(e,t)}let rt;const ae=n=>{return rt?(...e)=>{try{return n(...e)}catch(t){if(!rt||!0!==rt(t))throw t}}:n},se=[],V=ke();function ot(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 at(e,t){var n=new Qe,e=(se.push(n),n.init(e),new(Re())(ae(n.processMutations.bind(n))));return e.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function st({mouseInteractionCb:a,doc:i,mirror:s,blockClass:d,blockSelector:u,sampling:e}){if(!1===e.mouseInteraction)return()=>{};const t=!0===e.mouseInteraction||void 0===e.mouseInteraction?{}:e.mouseInteraction,r=[];let c=null;return Object.keys(l).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==t[e]).forEach(e=>{let t=k(e);o=e;var o,n=n=>{var i=ot(n);if(!q(i,d,u,!0)){let e=null,t=o;if("pointerType"in n){switch(n.pointerType){case"mouse":e=p.Mouse;break;case"touch":e=p.Touch;break;case"pen":e=p.Pen}e===p.Touch?l[o]===l.MouseDown?t="TouchStart":l[o]===l.MouseUp&&(t="TouchEnd"):(e,p.Pen)}else Be(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=Be(n)?n.changedTouches[0]:n;n&&(i=s.getId(i),{clientX:n,clientY:r}=n,ae(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(ie(t,n,i))}),ae(()=>{r.forEach(e=>e())})}function dt({scrollCb:i,doc:r,mirror:o,blockClass:a,blockSelector:s,sampling:e}){return ie("scroll",ae(P(ae(e=>{var t,n,e=ot(e);e&&!q(e,a,s,!0)&&(t=o.getId(e),e===r&&r.defaultView?(n=Me(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"],ct=new WeakMap;function lt(e){return function i(e,t){var n;return ft("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||ft("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||ft("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||ft("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?(n=Array.from(e.parentRule.cssRules).indexOf(e),t.unshift(n),i(e.parentRule,t)):(e.parentStyleSheet&&(n=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(n)),t)}(e,[])}function J(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function pt({mirror:e,stylesheetManager:i},t){let r=null;r="#document"===t.nodeName?e.getId(t):e.getId(ne.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}}),ae(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function ht(e,t={}){var o,n=e.doc.defaultView;if(!n)return()=>{};{var i=e,r=t;const{mutationCb:w,mousemoveCb:S,mouseInteractionCb:E,scrollCb:I,viewportResizeCb:_,inputCb:C,mediaInteractionCb:x,styleSheetRuleCb:T,styleDeclarationCb:R,canvasMutationCb:k,fontCb:A,selectionCb:O,customElementCb:N}=i;i.mutationCb=(...e)=>{r.mutation&&r.mutation(...e),w(...e)},i.mousemoveCb=(...e)=>{r.mousemove&&r.mousemove(...e),S(...e)},i.mouseInteractionCb=(...e)=>{r.mouseInteraction&&r.mouseInteraction(...e),E(...e)},i.scrollCb=(...e)=>{r.scroll&&r.scroll(...e),I(...e)},i.viewportResizeCb=(...e)=>{r.viewportResize&&r.viewportResize(...e),_(...e)},i.inputCb=(...e)=>{r.input&&r.input(...e),C(...e)},i.mediaInteractionCb=(...e)=>{r.mediaInteaction&&r.mediaInteaction(...e),x(...e)},i.styleSheetRuleCb=(...e)=>{r.styleSheetRule&&r.styleSheetRule(...e),T(...e)},i.styleDeclarationCb=(...e)=>{r.styleDeclaration&&r.styleDeclaration(...e),R(...e)},i.canvasMutationCb=(...e)=>{r.canvasMutation&&r.canvasMutation(...e),k(...e)},i.fontCb=(...e)=>{r.font&&r.font(...e),A(...e)},i.selectionCb=(...e)=>{r.selection&&r.selection(...e),O(...e)},i.customElementCb=(...e)=>{r.customElement&&r.customElement(...e),N(...e)}}let a;e.recordDOM&&(a=at(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=P(ae(e=>{const t=Date.now()-a;n(o.map(e=>(e.timeOffset-=t,e)),e),o=[],a=null}),e),d=[ie("mousemove",e=ae(P(ae(e=>{var t=ot(e),{clientX:n,clientY:i}=Be(e)?e.changedTouches[0]:e;a=a||Ne(),o.push({x:n,y:i,id:r.getId(t),timeOffset:Ne()-a}),s("undefined"!=typeof DragEvent&&e instanceof DragEvent?oe.Drag:e instanceof MouseEvent?oe.MouseMove:oe.TouchMove)}),i,{trailing:!1})),t),ie("touchmove",e,t),ie("drag",e,t)];return ae(()=>{d.forEach(e=>e())})}(e),d=st(e),u=dt(e),c=function({viewportResizeCb:n},{win:e}){let i=-1,r=-1;return ie("resize",ae(P(ae(()=>{var e=Le(),t=Pe();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:d,ignoreSelector:u,maskInputOptions:c,maskInputFn:l,sampling:t,userTriggeredOnInput:p,maskTextClass:h,maskTextSelector:f}){function o(t){let i=ot(t);var t=t.isTrusted,r=i&&i.tagName;if((i=i&&"OPTION"===r?ne.parentElement(i):i)&&r&&!(ut.indexOf(r)<0)&&!q(i,e,n,!0)&&!(i.classList.contains(d)||u&&i.matches(u))){let e=i.value,n=!1;var o=X(i)||"",a=z(i,h,f,!0),r=("radio"===o||"checkbox"===o?n=i.checked:(c[r.toLowerCase()]||c[o]||a)&&(e=$({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=ct.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(ct.set(e,t),n=r.getId(e),ae(i)({...t,id:n}))}var a;const m=("last"===t.input?["change"]:["input","change"]).map(e=>ie(e,ae(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=>Oe(e[0],e[1],{set(){ae(o)({target:this,isTrusted:!1})}},!1,v))),ae(()=>{m.forEach(e=>e())})):()=>{m.forEach(e=>e())}}(e),p=function({mediaInteractionCb:s,blockClass:d,blockSelector:u,mirror:c,sampling:e,doc:t}){var n=ae(a=>P(ae(e=>{var t,n,i,r,o,e=ot(e);e&&!q(e,d,u,!0)&&({currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}=e,s({type:a,id:c.getId(e),currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}))}),e.media||500));const i=[ie("play",n(W.Play),t),ie("pause",n(W.Pause),t),ie("seeked",n(W.Seeked),t),ie("volumechange",n(W.VolumeChange),t),ie("ratechange",n(W.RateChange),t)];return ae(()=>{i.forEach(e=>e())})}(e);let h=()=>{},f=()=>{},g=()=>{},m=()=>{};e.recordDOM&&(h=function({styleSheetRuleCb:s,mirror:d,stylesheetManager:u},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const e=i.CSSStyleSheet.prototype.insertRule,t=(i.CSSStyleSheet.prototype.insertRule=new V(e,{apply:ae((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=J(t,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:r}]}),e.apply(t,n)})}),i.CSSStyleSheet.prototype.addRule=function(e,t,n=this.cssRules.length){return i.CSSStyleSheet.prototype.insertRule.apply(this,[e+` { ${t} }`,n])},i.CSSStyleSheet.prototype.deleteRule);i.CSSStyleSheet.prototype.deleteRule=new V(t,{apply:ae((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:i}]}),e.apply(t,n)})}),i.CSSStyleSheet.prototype.removeRule=function(e){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[e])};let n;i.CSSStyleSheet.prototype.replace&&(n=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new V(n,{apply:ae((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replace:i}),e.apply(t,n)})}));let r;i.CSSStyleSheet.prototype.replaceSync&&(r=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new V(r,{apply:ae((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replaceSync:i}),e.apply(t,n)})}));const o={},a=(gt("CSSGroupingRule")?o.CSSGroupingRule=i.CSSGroupingRule:(gt("CSSMediaRule")&&(o.CSSMediaRule=i.CSSMediaRule),gt("CSSConditionRule")&&(o.CSSConditionRule=i.CSSConditionRule),gt("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 V(a[e].insertRule,{apply:ae((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=J(t.parentStyleSheet,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:[...lt(t),r||0]}]}),e.apply(t,n)})}),t.prototype.deleteRule=new V(a[e].deleteRule,{apply:ae((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t.parentStyleSheet,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:[...lt(t),i]}]}),e.apply(t,n)})})}),ae(()=>{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=pt(e,e.doc),g=function({styleDeclarationCb:d,mirror:u,ignoreCSSAttributes:c,stylesheetManager:l},{win:e}){const p=e.CSSStyleDeclaration.prototype.setProperty,a=(e.CSSStyleDeclaration.prototype.setProperty=new V(p,{apply:ae((e,t,n)=>{var i,r,[o,a,s]=n;return c.has(o)?p.apply(t,[o,a,s]):({id:i,styleId:r}=J(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,set:{property:o,value:a,priority:s},index:lt(t.parentRule)}),e.apply(t,n))})}),e.CSSStyleDeclaration.prototype.removeProperty);return e.CSSStyleDeclaration.prototype.removeProperty=new V(a,{apply:ae((e,t,n)=>{var i,r,[o]=n;return c.has(o)?a.apply(t,[o]):({id:i,styleId:r}=J(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,remove:{property:o},index:lt(t.parentRule)}),e.apply(t,n))})}),ae(()=>{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 B(ae(()=>{var e=r.get(t);e&&(n(e),r["delete"](t))}),0),e.apply(this,[t])}}),i.push(()=>{t.FontFace=o}),i.push(e),ae(()=>{i.forEach(e=>e())})}(e));const v=function(e){const{doc:d,mirror:u,blockClass:c,blockSelector:l,selectionCb:p}=e;let h=!0;return(e=ae(()=>{var t=d.getSelection();if(!(!t||h&&null!=t&&t.isCollapsed)){h=t.isCollapsed||!1;var n=[],i=t.rangeCount||0;for(let e=0;e<i;e++){var{startContainer:r,startOffset:o,endContainer:a,endOffset:s}=t.getRangeAt(e);q(r,c,l,!0)||q(a,c,l,!0)||n.push({start:u.getId(r),startOffset:o,end:u.getId(a),endOffset:s})}p({ranges:n})}}))(),ie("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 ae(()=>{se.forEach(e=>e.reset()),null!=a&&a.disconnect(),s(),d(),u(),c(),l(),p(),h(),f(),g(),m(),v(),y(),b.forEach(e=>e())})}function ft(e){return"undefined"!=typeof window[e]}function gt(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class mt{constructor(e){s(this,"iframeIdToRemoteIdMap",new WeakMap),s(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,n,i){n=n||this.getIdToRemoteIdMap(e),i=i||this.getRemoteIdToIdMap(e);let r=n.get(t);return r||(r=this.generateIdFn(),n.set(t,r),i.set(r,t)),r}getIds(t,e){const n=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return e.map(e=>this.getId(t,e,n,i))}getRemoteId(e,t,n){n=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map(e=>this.getRemoteId(t,e,n))}reset(e){e?(this.iframeIdToRemoteIdMap["delete"](e),this.iframeRemoteIdToIdMap["delete"](e)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class vt{constructor(e){s(this,"iframes",new WeakMap),s(this,"crossOriginIframeMap",new WeakMap),s(this,"crossOriginIframeMirror",new mt(x)),s(this,"crossOriginIframeStyleMirror"),s(this,"crossOriginIframeRootIdMap",new WeakMap),s(this,"mirror"),s(this,"mutationCb"),s(this,"wrappedEmit"),s(this,"takeFullSnapshot"),s(this,"loadListener"),s(this,"pageHideListener"),s(this,"stylesheetManager"),s(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.takeFullSnapshot=e.takeFullSnapshot,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new mt(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}addPageHideListener(e){this.pageHideListener=e}attachIframe(t,e){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null!=(e=t.contentWindow)&&e.addEventListener("message",this.handleMessage.bind(this)),null!=(e=t.contentWindow))&&e.addEventListener("pagehide",()=>{var e;null!=(e=this.pageHideListener)&&e.call(this,t),this.mirror.removeNodeFromMap(t.contentDocument),this.crossOriginIframeMap["delete"](t.contentWindow)}),null!=(e=this.loadListener)&&e.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&0<t.contentDocument.adoptedStyleSheets.length&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(e){var t,n=e;"rrweb"===n.data.type&&n.origin===n.data.origin&&(t=e.source)&&(t==window.parent&&window!=window.parent&&e.data.snapshot?this.takeFullSnapshot():(t=this.crossOriginIframeMap.get(e.source))&&(e=this.transformCrossOriginEvent(t,n.data.event))&&this.wrappedEmit(e,n.data.isCheckout))}transformCrossOriginEvent(n,e){var t;switch(e.type){case re.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:re.IncrementalSnapshot,data:{source:oe.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case re.Meta:case re.Load:case re.DomContentLoaded:return!1;case re.Plugin:return e;case re.Custom:return this.replaceIds(e.data.payload,n,["id","parentId","previousId","nextId"]),e;case re.IncrementalSnapshot:switch(e.data.source){case oe.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 oe.Drag:case oe.TouchMove:case oe.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case oe.ViewportResize:return!1;case oe.MediaInteraction:case oe.MouseInteraction:case oe.Scroll:case oe.CanvasMutation:case oe.Input:return this.replaceIds(e.data,n,["id"]),e;case oe.StyleSheetRule:case oe.StyleDeclaration:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleId"]),e;case oe.Font:return e;case oe.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,n,["start","end"])}),e;case oe.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===$e.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class yt{constructor(e){s(this,"shadowDoms",new WeakSet),s(this,"mutationCb"),s(this,"scrollCb"),s(this,"bypassOptions"),s(this,"mirror"),s(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(G(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);const n=at({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(dt({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),B(()=>{e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(ne.host(e))),this.restoreHandlers.push(pt({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=ne.shadowRoot(this);return t&&Je(this)&&r.addShadowRoot(t,i),e}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),wt=0;wt<a.length;wt++)bt[a.charCodeAt(wt)]=wt;var St,Et=function(e){for(var t=new Uint8Array(e),n=t.length,i="",r=0;r<n;r+=3)i=(i=(i=(i+=a[t[r]>>2])+a[(3&t[r])<<4|t[r+1]>>4])+a[(15&t[r+1])<<2|t[r+2]>>6])+a[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&&(xt(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 Ct=(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:Et(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]}:xt(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:_t(e,t,n)}:e}(e,t,n)),xt=(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 q(this.canvas,r,o,!0)||B(()=>{var e=Ct(t,i,this);n(this.canvas,{type:Ke["2D"],property:s,args:e})},0),e.apply(this,t)}}),e.push(t))}catch{var a=Oe(i.CanvasRenderingContext2D.prototype,s,{set(e){n(this.canvas,{type:Ke["2D"],property:s,args:[e],setter:!0})}});e.push(a)}return()=>{e.forEach(e=>e())}}function Rt(e,r,o,a){const t=[];try{var n=L(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(e,...t){var n;return q(this,r,o,!0)||(n="experimental-webgl"===(n=e)?"webgl":n,"__context"in this||(this.__context=n),a&&["webgl","webgl2"].includes(n)&&(t[0]&&"object"==typeof t[0]?(n=t[0]).preserveDrawingBuffer||(n.preserveDrawingBuffer=!0):t.splice(0,1,{preserveDrawingBuffer:!0}))),i.apply(this,[e,...t])}});t.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{t.forEach(e=>e())}}function kt(e,i,r,o,a,s){var t,n=[];for(const u of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))try{"function"==typeof e[u]&&(t=L(e,u,function(n){return function(...e){var t=n.apply(this,e);return _t(t,s,this),"tagName"in this.canvas&&!q(this.canvas,o,a,!0)&&(e=Ct(e,s,this),e={type:i,property:u,args:e},r(this.canvas,e)),t}}),n.push(t))}catch{var d=Oe(e,u,{set(e){r(this.canvas,{type:i,property:u,args:[e],setter:!0})}});n.push(d)}return n}function At(e,t,n,i){const r=[];return r.push(...kt(t.WebGLRenderingContext.prototype,Ke.WebGL,e,n,i,t)),"undefined"!=typeof t.WebGL2RenderingContext&&r.push(...kt(t.WebGL2RenderingContext.prototype,Ke.WebGL2,e,n,i,t)),()=>{r.forEach(e=>e())}}function Ot(e){return function(){return{onerror:null,onmessage:null}}}class Nt{constructor(e){s(this,"pendingCanvasMutations",new Map),s(this,"rafStamps",{latestId:0,invokeId:null}),s(this,"mirror"),s(this,"mutationCb"),s(this,"resetObservers"),s(this,"frozen",!1),s(this,"locked",!1),s(this,"processMutation",(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});var{sampling:t="all",win:n,blockClass:i,blockSelector:r,recordCanvas:o,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===t&&this.initCanvasMutationObserver(n,i,r),o&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,i,r,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,n,i,r,o){const t=Rt(n,i,r,!0),a=new Map,s=new Ot,d=(s.onmessage=e=>{var t,n,i,r=e.data["id"];a.set(r,!1),"base64"in e.data&&({base64:e,type:t,width:n,height:i}=e.data,this.mutationCb({id:r,type:Ke["2D"],commands:[{property:"clearRect",args:[0,0,n,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:e}],type:t}]},0,0]}]}))},1e3/e);let u=0,c;const l=()=>{const t=[];return n.document.querySelectorAll("canvas").forEach(e=>{q(e,i,r,!0)||t.push(e)}),t},p=e=>{c=(u&&e-u<d||(u=e,l().forEach(async e=>{var t,n,i=this.mirror.getId(e);a.get(i)||0!==e.width&&0!==e.height&&(a.set(i,!0),["webgl","webgl2"].includes(e.__context)&&!1===(null==(n=null==(t=e.getContext(e.__context))?void 0:t.getContextAttributes())?void 0:n.preserveDrawingBuffer)&&t.clear(t.COLOR_BUFFER_BIT),n=await createImageBitmap(e),s.postMessage({id:i,bitmap:n,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[n]))})),requestAnimationFrame(p))};c=requestAnimationFrame(p),this.resetObservers=()=>{t(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=Rt(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 Mt{constructor(e){s(this,"trackedLinkElements",new WeakSet),s(this,"mutationCb"),s(this,"adoptedStyleSheetCb"),s(this,"styleMirror",new qe),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0!==e.length){var n={id:t,styleIds:[]},i=[];for(const o of e){let e;if(this.styleMirror.has(o))e=this.styleMirror.getId(o);else{e=this.styleMirror.add(o);var r=[];for(let e=0;e<o.rules.length;++e)r.push({rule:w(o.rules[e],o.href),index:e});i.push({styleId:e,rules:Array.from(o.rules||CSSRule,(e,t)=>({rule:w(e,o.href),index:t}))})}n.styleIds.push(e)}0<i.length&&(n.styles=i),this.adoptedStyleSheetCb(n)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Lt{constructor(){s(this,"nodeMap",new WeakMap),s(this,"active",!1)}inOtherBuffer(e,t){e=this.nodeMap.get(e);return e&&Array.from(e).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let de,ue=()=>{},Pt,Dt=!1;try{2!==Array.from([1],e=>2*e)[0]&&(St=document.createElement("iframe"),document.body.appendChild(St),Array.from=(null==(e=St.contentWindow)?void 0:e.Array.from)||Array.from,document.body.removeChild(St))}catch(Ut){console.debug("Unable to override Array.from",Ut)}const ce=new le;function Ft(e={}){const{emit:i,checkoutEveryNms:r,checkoutEveryNth:o,blockClass:n="rr-block",blockSelector:a=null,hideSelector:s=null,ignoreClass:D="rr-ignore",ignoreSelector:F=null,maskTextClass:d="rr-mask",maskTextSelector:u=null,inlineStylesheet:c=!0,maskAllInputs:U,maskInputOptions:t,slimDOMOptions:l,maskInputFn:p,maskTextFn:h,hooks:G,packFn:B,sampling:f={},dataURLOptions:g={},mousemoveWait:H,recordDOM:z=!0,recordCanvas:m=!1,recordCrossOriginIframes:j=!1,emitFromIframe:q=!1,recordAfter:W="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:V=!1,collectFonts:J=!1,inlineImages:v=!1,plugins:y,keepIframeSrcFn:b=()=>!1,ignoreCSSAttributes:K=new Set([]),errorHandler:$}=e;e=$,rt=e;const w=!!q||!j||window.parent===window;let S=!1;if(!w)try{window.parent.document&&(S=!1)}catch(ee){S=!0}if(w&&!i)throw new Error("emit function is required");if(!w&&!S)return()=>{};void 0!==H&&void 0===f.mousemove&&(f.mousemove=H),ce.reset();const E=!0===U?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==t?t:{password:!0},I=!0===l||"all"===l?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===l,headMetaDescKeywords:"all"===l,headTitleMutations:"all"===l}:l||{};"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 X,_=0;const Y=e=>{for(const t of y||[])t.eventProcessor&&(e=t.eventProcessor(e));return e=B&&!S?B(e):e},C=(de=(e,t)=>{var n;e.timestamp=Ne(),null==(n=se[0])||!n.isFrozen()||e.type===re.FullSnapshot||e.type===re.IncrementalSnapshot&&e.data.source===oe.Mutation||se.forEach(e=>e.unfreeze()),w?null!=i&&i(Y(e),t):S&&(n={type:"rrweb",event:Y(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===re.FullSnapshot?(X=e,_=0):e.type!==re.IncrementalSnapshot||e.data.source===oe.Mutation&&e.data.isAttachIframe||(_++,t=o&&_>=o,n=r&&e.timestamp-X.timestamp>r,(t||n)&&ue(!0))},e=>{de({type:re.IncrementalSnapshot,data:{source:oe.Mutation,...e}})}),Z=e=>de({type:re.IncrementalSnapshot,data:{source:oe.Scroll,...e}}),Q=e=>de({type:re.IncrementalSnapshot,data:{source:oe.CanvasMutation,...e}});const x=new Mt({mutationCb:C,adoptedStyleSheetCb:e=>de({type:re.IncrementalSnapshot,data:{source:oe.AdoptedStyleSheet,...e}})}),T=new vt({mirror:ce,mutationCb:C,stylesheetManager:x,recordCrossOriginIframes:j,wrappedEmit:de,takeFullSnapshot:ue});for(const O of y||[])O.getMirror&&O.getMirror({nodeMirror:ce,crossOriginIframeMirror:T.crossOriginIframeMirror,crossOriginIframeStyleMirror:T.crossOriginIframeStyleMirror});const R=new Lt,k=(Pt=new Nt({recordCanvas:m,mutationCb:Q,win:window,blockClass:n,blockSelector:a,mirror:ce,sampling:f.canvas,dataURLOptions:g}),new yt({mutationCb:C,scrollCb:Z,bypassOptions:{blockClass:n,blockSelector:a,hideSelector:s,maskTextClass:d,maskTextSelector:u,inlineStylesheet:c,maskInputOptions:E,dataURLOptions:g,maskTextFn:h,maskInputFn:p,recordCanvas:m,inlineImages:v,sampling:f,slimDOMOptions:I,iframeManager:T,stylesheetManager:x,canvasManager:Pt,keepIframeSrcFn:b,processedNodeManager:R},mirror:ce}));ue=(e=!1)=>{if(z){de({type:re.Meta,data:{href:window.location.href,width:Pe(),height:Le()}},e),x.reset(),k.init(),se.forEach(e=>e.lock());var t=function(e,t){var{mirror:t=new le,blockClass:n="rr-block",blockSelector:i=null,hideSelector:r=null,maskTextClass:o="rr-mask",maskTextSelector:a=null,inlineStylesheet:s=!0,inlineImages:d=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:l,maskInputFn:p,slimDOM:h=!1,dataURLOptions:f,preserveWhiteSpace:g,onSerialize:m,onIframeLoad:v,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:w,keepIframeSrcFn:S=()=>!1}=t||{};return te(e,{doc:e,mirror:t,blockClass:n,blockSelector:i,hideSelector:r,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:s,maskInputOptions:!0===c?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===c?{password:!0}:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:!0===h||"all"===h?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===h,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===h?{}:h,dataURLOptions:f,inlineImages:d,recordCanvas:u,preserveWhiteSpace:g,onSerialize:m,onIframeLoad:v,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:w,keepIframeSrcFn:S,newlyAddedElement:!1})}(document,{mirror:ce,blockClass:n,blockSelector:a,hideSelector:s,maskTextClass:d,maskTextSelector:u,inlineStylesheet:c,maskAllInputs:E,maskTextFn:h,maskInputFn:p,slimDOM:I,dataURLOptions:g,recordCanvas:m,inlineImages:v,onSerialize:e=>{He(e,ce)&&T.addIframe(e),ze(e,ce)&&x.trackLinkElement(e),je(e)&&k.addShadowRoot(ne.shadowRoot(e),document)},onIframeLoad:(e,t)=>{T.attachIframe(e,t),k.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{x.attachLinkElement(e,t)},keepIframeSrcFn:b});if(!t)return console.warn("Failed to snapshot the document");de({type:re.FullSnapshot,data:{node:t,initialOffset:Me(window)}},e),se.forEach(e=>e.unlock()),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&x.adoptStyleSheets(document.adoptedStyleSheets,ce.getId(document))}},T.setTakeFullSnapshot(ue);try{const N=[],M=new Map,L=e=>{return ae(ht)({mutationCb:C,mousemoveCb:(e,t)=>de({type:re.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>de({type:re.IncrementalSnapshot,data:{source:oe.MouseInteraction,...e}}),scrollCb:Z,viewportResizeCb:e=>de({type:re.IncrementalSnapshot,data:{source:oe.ViewportResize,...e}}),inputCb:e=>de({type:re.IncrementalSnapshot,data:{source:oe.Input,...e}}),mediaInteractionCb:e=>de({type:re.IncrementalSnapshot,data:{source:oe.MediaInteraction,...e}}),styleSheetRuleCb:e=>de({type:re.IncrementalSnapshot,data:{source:oe.StyleSheetRule,...e}}),styleDeclarationCb:e=>de({type:re.IncrementalSnapshot,data:{source:oe.StyleDeclaration,...e}}),canvasMutationCb:Q,fontCb:e=>de({type:re.IncrementalSnapshot,data:{source:oe.Font,...e}}),selectionCb:e=>{de({type:re.IncrementalSnapshot,data:{source:oe.Selection,...e}})},customElementCb:e=>{de({type:re.IncrementalSnapshot,data:{source:oe.CustomElement,...e}})},blockClass:n,ignoreClass:D,ignoreSelector:F,maskTextClass:d,maskTextSelector:u,maskInputOptions:E,inlineStylesheet:c,sampling:f,recordDOM:z,recordCanvas:m,inlineImages:v,userTriggeredOnInput:V,collectFonts:J,doc:e,maskInputFn:p,maskTextFn:h,keepIframeSrcFn:b,blockSelector:a,hideSelector:s,slimDOMOptions:I,dataURLOptions:g,mirror:ce,iframeManager:T,stylesheetManager:x,shadowDomManager:k,processedNodeManager:R,canvasManager:Pt,ignoreCSSAttributes:K,plugins:(null==(e=null==y?void 0:y.filter(e=>e.observer))?void 0:e.map(t=>({observer:t.observer,options:t.options,callback:e=>de({type:re.Plugin,data:{plugin:t.name,payload:e}})})))||[]},G)},P=(T.addLoadListener(e=>{try{M.set(e,L(e.contentDocument))}catch(t){console.warn(t)}}),T.addPageHideListener(e=>{var t=M.get(e),n=(t&&(t(),M["delete"](e)),e);for(let e=se.length-1;0<=e;e--){var i=se[e];i.bufferBelongsToIframe(n)&&(i.reset(),se.splice(e,1))}}),()=>{ue(),N.push(L(document)),Dt=!0});return"interactive"===document.readyState||"complete"===document.readyState?P():(N.push(ie("DOMContentLoaded",()=>{de({type:re.DomContentLoaded,data:{}}),"DOMContentLoaded"===W&&P()})),N.push(ie("load",()=>{de({type:re.Load,data:{}}),"load"===W&&P()},window))),()=>{N.forEach(e=>e()),M.forEach(e=>e()),R.destroy(),Dt=!1,rt=void 0}}catch(A){console.warn(A)}}return Ft.addCustomEvent=(e,t)=>{if(!Dt)throw new Error("please add custom event after start recording");de({type:re.Custom,data:{tag:e,payload:t}})},Ft.freezePage=()=>{se.forEach(e=>e.freeze())},Ft.takeFullSnapshot=e=>{if(!Dt)throw new Error("please take full snapshot after start recording");ue(e)},Ft.mirror=ce,0,Ft}class SessionRecorderBuffer{constructor(e,t=Infinity){this.data=[],this.sequenceNumber=0,this.interval=e,this.maxCount=t,this.doubledMaxCount=2*t}isEmpty(){return 0===this.data.length}count(){return this.data.length}clear(){this.data.length=0}clearSequence(){this.sequenceNumber=0}push(e){this.data.push(e),this.checkRateLimit()}pack(e,n){var t=this.data.splice(0,this.maxCount);return e.recordingPayload=t,e.sequence=this.sequenceNumber,e.recordingPayloadCount=t.length,t.length&&(e.browserTime=t[0].timestamp),e.recordingPayloadMetadata=n.map(t,e=>{var t=n.pick(e,"type","timestamp");return e.data&&(t.data=n.pick(e.data,"source","type","x","y","id","height","width","href")),t}),this.sequenceNumber+=t.length,e}checkRateLimit(){var e=this.data.length;e>=this.doubledMaxCount&&e%this.maxCount==0&&this.data[e-1].timestamp-this.data[e-this.doubledMaxCount].timestamp<=this.interval&&this.onRateLimit&&this.onRateLimit()}}function __rest(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function __awaiter(e,t,s,d){return new(s=s||Promise$2)(function(n,i){function r(e){try{a(d.next(e))}catch(t){i(t)}}function o(e){try{a(d["throw"](e))}catch(t){i(t)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}a((d=d.apply(e,t||[])).next())})}const RECORDING_CONFIG_WORKERURL$1="recording.workerUrl",MAX_SIZE=2e6,RESOURCE_CACHING$1="resourceCaching";class Transport{constructor(e,t,n){this.WorkerClass=e,this.pendo=t,this.api=n,this.maxSize=MAX_SIZE,this.lockID="worker-lock-"+this.pendo.randomString(16),this.isResourceCachingEnabled=this.api.ConfigReader.get(RESOURCE_CACHING$1)}start(e){if(!e.disableWorker&&!this.worker)try{var t;e.workerOverride?this.worker=e.workerOverride:(t=this.api.ConfigReader.get(RECORDING_CONFIG_WORKERURL$1),this.usesSelfHostedWorker=null!=t,this.worker=t?new Worker(t):new this.WorkerClass),this.worker.postMessage({type:"init",lockID:this.lockID}),this.worker.onmessage=this.pendo._.bind(this._onMessage,this),this.worker.onerror=this.pendo._.bind(this._onError,this)}catch(n){this.worker=null}}stop(){this.worker&&(this.worker.terminate(),delete this.worker)}send(e,t,n=0){let i=e["url"];var r=e["payload"];if(0<n&&(i=i+"&rt="+n),this.worker&&!t&&r){const a={};return a.promise=new Promise$2((e,t)=>{a.resolve=e,a.reject=t}),this.workerResponse=a,this.worker.postMessage({url:i,payload:r,shouldCacheResources:this.isResourceCachingEnabled}),a.promise}if(!e.body){var o,n=JSON.stringify(r);if(n.length>this.maxSize)throw(o=new Error("maximum recording payload size exceeded")).reason="HEAVY_EVENT",o.context={size:n.length,count:null==r?void 0:r.recordingPayloadCount},o;e.body=this.pendo.compress(n,"binary"),delete e.payload}return i=i+"&ct="+(new Date).getTime(),this.post(i,{keepalive:t,body:e.body})}post(e,t){return t.method="POST",t.keepalive&&this.api.transmit.fetchKeepalive.supported()?this.api.transmit.fetchKeepalive(e,t):t.keepalive&&this.api.transmit.sendBeacon.supported()?this.api.transmit.sendBeacon(e,new Blob([t.body]))?Promise$2.resolve():Promise$2.reject(new Error("sendBeacon failed to send recording data")):this.pendo.ajax.post(e,t.body)}_onMessage(e){return __awaiter(this,void 0,void 0,function*(){e.data&&e.data.ready&&navigator.locks&&(yield navigator.locks.request(this.lockID,()=>{}),this.onWorkerMessage({type:"workerDied"})),e.data&&e.data.type?this.onWorkerMessage(e.data):(e.data&&e.data.error&&((e.data.status&&e.data.status<500||null==e.data.sequence)&&this.api.log.critical("Failed to send recording data from web worker",{error:e.data.error}),this.workerResponse)&&(this.workerResponse.reject(),this.workerResponse=null),this.workerResponse&&(this.workerResponse.resolve(),this.workerResponse=null))})}_onError(){this.onError&&this.onError()}}const ELEMENT_NODE=1,INPUT_MASK="*".repeat(10),NUMBER_INPUT_MASK="0".repeat(10);function isElementNode(e){return!!e&&e.nodeType===ELEMENT_NODE}function getParent(e){return"undefined"!=typeof window.ShadowRoot&&e instanceof window.ShadowRoot&&e.host?e.host:e.parentNode}function distanceToMatch(e,t,n=Infinity,i=0){if(n<i)return-1;if(!e)return-1;if(isElementNode(e)){if(e.matches(t))return i;if(e.parentNode)return distanceToMatch(e.parentNode,t,n,i+1)}return distanceToMatch(getParent(e),t,n,i+1)}function shouldMask(n,i){var{maskAllText:i,maskTextSelector:r,unmaskTextSelector:o}=i;try{var a=isElementNode(n)?n:n.parentElement;if(null===a)return!1;if("STYLE"===(a.tagName||"").toUpperCase())return!1;let e=-1,t=-1;if(i){if((t=distanceToMatch(a,o))<0)return!0;e=distanceToMatch(a,r,0<=t?t:Infinity)}else{if((e=distanceToMatch(a,r))<0)return!1;t=distanceToMatch(a,o,0<=e?e:Infinity)}return 0<=e?!(0<=t)||e<=t:!(0<=t||!i)}catch(e){}return!!i}function isNumberInput(e){return"input"===(e.tagName||"").toLowerCase()&&"number"===(e.type||"").toLowerCase()}function shouldMaskInput(e,t){if(t&&isElementNode(e)){var n=(e.tagName||"").toLowerCase(),e=(e.type||"").toLowerCase();if(t[n]||t[e])return!0}return!1}function maskInput(e,t,n){return shouldMaskInput(n,e.maskInputOptions)||shouldMask(n,e)?t?isNumberInput(n)?NUMBER_INPUT_MASK:INPUT_MASK:"":t}function maskText(e,t,n){return shouldMask(n,e)?t?t.replace(/[\S]/g,"*"):"":t}const RECORDING_CONFIG="recording",RECORDING_CONFIG_ENABLED="recording.enabled",RECORDING_CONFIG_AUTO_START="recording.autoStart",RECORDING_CONFIG_WORKERURL="recording.workerUrl",RECORDING_CONFIG_ON_RECORDING_START="recording.onRecordingStart",RECORDING_CONFIG_ON_RECORDING_STOP="recording.onRecordingStop",RECORDING_CONFIG_WORKER_OVERRIDE="recording.workerOverride",RECORDING_CONFIG_TREAT_IFRAME_AS_ROOT="recording.treatIframeAsRoot",RECORDING_CONFIG_DISABLE_UNLOAD="recording.disableUnload",RESOURCE_CACHING="resourceCaching",ONE_DAY_IN_MILLISECONDS=864e5,ONE_MINUTE_IN_MILLISECONDS=6e4,THIRTY_MINUTES=18e5,ONE_HUNDRED_MB_IN_BYTES=104857600,SESSION_RECORDING_ID="pendo_srId",SESSION_RECORDING_LAST_USER_INTERACTION_EVENT="pendo_srLastUserInteractionEvent",SEND_INTERVAL=5e3,MAX_SEND_COUNT=2e4,EVENT_TYPES={INCREMENTAL_SOURCE_MUTATION:0,FULL_SNAPSHOT:2,INCREMENTAL_SNAPSHOT:3,META:4,INCREMENTAL_SOURCE_INPUT:5};class SessionRecorder{constructor(e,t){this.name="Replay",this.record=e,this.WorkerClass=t,this.lastKeyFrameTime=0,this.eventsSinceLastKeyFrame=0,this.currentRecordingSize=0}addConfigOptions(){var e=this.api.ConfigReader;e.addOption(RECORDING_CONFIG,[e.sources.PENDO_CONFIG_SRC],{}),e.addOption(RECORDING_CONFIG_AUTO_START,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ENABLED,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_START,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_STOP,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKERURL,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKER_OVERRIDE,[e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_TREAT_IFRAME_AS_ROOT,[e.sources.SNIPPET_SRC],undefined),e.addOption(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 this.api.SendQueue(e(this.transport.send,this.transport)),this.sendQueue.onTimeout=e(this.sendFailure,this,"SEND_TIMEOUT"),this.errorHandler=this.pendo._.throttle(e(this.logStopReason,this,"RRWEB_ERROR"),ONE_MINUTE_IN_MILLISECONDS,{trailing:!1}),this.isNewSession=!1,this.isCheckingVisitorEligibility=!1,this.pageLifecycleListeners=[],this.addConfigOptions(),this.config=t.get(RECORDING_CONFIG),this.onRecordingStart=this.pendo._.isFunction(t.get(RECORDING_CONFIG_ON_RECORDING_START))?t.get(RECORDING_CONFIG_ON_RECORDING_START):function(){},this.onRecordingStop=this.pendo._.isFunction(t.get(RECORDING_CONFIG_ON_RECORDING_STOP))?t.get(RECORDING_CONFIG_ON_RECORDING_STOP):function(){};let n=!1;var i=t.get(RECORDING_CONFIG_ENABLED);if(this.pendo._.isBoolean(i)?(n=i)||this.api.log.info("Session Replay disabled via the snippet config"):n=this.config.enabled,n)if(t.get("excludeNonGuideAnalytics"))this.api.log.info("Session Replay is disabled because excludeNonGuideAnalytics is enabled");else{i=this.sessionIdKey=SESSION_RECORDING_ID+"."+this.pendo.apiKey;this.pendo.recording={start:e(this.start,this),stop:e(this.stop,this)},this.subscriptions=[this.api.attachEvent(this.api.Events,"appHidden",e(this.handleHidden,this)),this.api.attachEvent(this.api.Events,"appUnloaded",e(this.handleUnload,this)),this.api.attachEvent(this.api.Events,"identify",e(this.changeIdentity,this)),this.api.attachEvent(this.api.Events,"metadata",e(this.changeMetadata,this)),this.api.attachEvent(this.api.Events,"eventCaptured",e(this.addRecordingId,this)),this.api.attachEvent(this.api.Events,"transmit:locked",e(this.stop,this)),this.api.attachEvent(this.api.Events,"transmit:unlocked",e(this._start,this)),this.api.attachEvent(this.api.Events,"tabIdChanged:self",e(this.handleTabIdChange,this))];const r=this.api.frames.getChannel(),o=e(this._frameMessage,this);r.addEventListener("message",o),this.subscriptions.push(()=>{r.removeEventListener("message",o)}),this.api.store.getters["frames/isReady"]()?this.ready():this.subscriptions.push(this.api.attachEvent(this.api.Events,"ready",e(this.ready,this))),this.api.agentStorage.registry.addSession(i),this.api.agentStorage.registry.addSession(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)}}teardown(){delete this.pendo.recording,delete this.allowStart,this.pendo._.each(this.subscriptions,function(e){e()}),this.removePageLifecycleListeners(),this.subscriptions.length=0,this.stop(),this.transport.stop()}ready(){!1!==this.api.ConfigReader.get(RECORDING_CONFIG_AUTO_START)&&this.start()}addPageLifecycleListeners(){this.pendo._.each(["pageshow","focus","blur","visibilitychange","resume"],e=>{this.pageLifecycleListeners.push(this.api.attachEventInternal(window,e,this.pendo._.bind(this.checkPageLifecycleState,this),!0))})}removePageLifecycleListeners(){this.pendo._.each(this.pageLifecycleListeners,function(e){e()}),this.pageLifecycleListeners=[]}checkPageLifecycleState(){var e=this.getPageLifecycleState();"active"!==e&&"passive"!==e||!this.isRecording()&&this.allowStart&&(this.removePageLifecycleListeners(),this.ready())}getPageLifecycleState(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}changeIdentity(e){this.allowStart&&(clearTimeout(this._changeIdentityTimer),this.isRecording()&&(this.logStopReason("IDENTITY_CHANGED",{previousVisitorId:this.visitorId,newVisitorId:e.data[0].visitor_id,previousAccountId:this.accountId,newAccountId:e.data[0].account_id}),this.stop()),this.visitorId=e.data[0].visitor_id,this.accountId=e.data[0].account_id,this._changeIdentityTimer=setTimeout$1(()=>{this._start()},500))}changeMetadata(e){var{hashChanged:e,options:t}=e.data[0];if(this.allowStart&&e)return clearTimeout(this._changeIdentityTimer),this.visitorId=t.visitor.id,this.accountId=t.account.id,this.checkVisitorEligibility()}checkVisitorEligibility(t){if(this.isRecording()||!this.pendo._.isNull(this.visitorId)||!this.pendo._.isNull(this.accountId))return this.isCheckingVisitorEligibility=!0,this.fetchVisitorConfig().then(e=>{e&&e.enable||!this.isRecording()||this.stop(),e&&e.enable&&this.isRecording()&&(t&&t.call(this),this.api.Events.trigger("recording:unpaused")),e&&e.enable&&!this.isRecording()&&this._startRecordingForVisitor(e),this.isCheckingVisitorEligibility=!1})["catch"](e=>{this.isCheckingVisitorEligibility=!1,this.api.log.critical("Failed to re-fetch recording config",{error:e}),this.logStopReason("VISITOR_CONFIG_ERROR")})}snapshot(){this.isRecording()&&(this.send(),this.record.takeFullSnapshot())}isRecording(){return null!=this.interval}recordingConfig(e){var e=this.pendo._.extend({},this.config.options,e),t={maskAllText:null==e.privateByDefault||e.privateByDefault,maskTextSelector:[".pendo-sr-mask"].concat(e.maskedSelectors||[]).join(","),unmaskTextSelector:[".pendo-sr-unmask"].concat(e.unmaskedSelectors||[]).join(","),maskInputOptions:{}},n=(this.pendo._.isObject(e.maskInputOptions)&&(t.maskInputOptions=e.maskInputOptions),t.maskInputOptions=this.pendo._.extend(t.maskInputOptions,{email:!0,password:!0,tel:!0}),[".pendo-ignore",".pendo-sr-ignore"].concat(e.blockedSelectors||[])),i=[".pendo-sr-hide"].concat(e.hiddenSelectors||[]);return{maskInputFn:this.pendo._.partial(maskInput,t),maskTextFn:this.pendo._.partial(maskText,t),maskTextSelector:"*",maskTextClass:null,maskInputOptions:t.maskInputOptions,blockClass:null,blockSelector:n.concat(i).join(","),hideSelector:i.join(","),recordCrossOriginIframes:null==e.recordCrossOriginIframes||e.recordCrossOriginIframes,emitFromIframe:!!this.api.ConfigReader.get(RECORDING_CONFIG_TREAT_IFRAME_AS_ROOT)}}start(){this._restartPtm=this.api.analytics.ptm().pause(),this.allowStart=!0,this.visitorId=this.pendo.get_visitor_id(),this.accountId=this.pendo.get_account_id(),this._start()}_markEvents(e){if(this.recordingId&&this.isRecording())for(var t of e)t.visitor_id!==this.visitorId&&t.visitorId!==this.visitorId||"identify"===t.type||(t.recordingId=this.recordingId,t.recordingSessionId=this.sessionId(this.recordingId))}restartPtm(){if(this.pendo._.isFunction(this._restartPtm)){this._markEvents(this.pendo.buffers.events);for(var e of this.pendo.buffers.silos)this._markEvents(e);this._restartPtm(),this._restartPtm=null}}_start(){if(!this.isRecording()&&this.pendo.isSendingEvents()&&this.allowStart)return this.fetchVisitorConfig().then(e=>{this.allowStart&&(e&&e.enable?this._startRecordingForVisitor(e):(this.restartPtm(),this.logStopReason("VISITOR_DISABLED")))})["catch"](e=>{this.restartPtm(),e&&/Failed to fetch/.test(e.toString())||(this.api.log.critical("Failed to fetch recording config",{error:e,visitorId:this.visitorId,accountId:this.accountId,url:this.pendo.url.get()}),this.logStopReason("VISITOR_CONFIG_ERROR"))})}_startRecordingForVisitor(e){if(this.api.Events.trigger("recording:unpaused"),this.transport.start(this.config),this.pendo._.get(this.config,"disableFallback",!0)&&!this.transport.worker)this.restartPtm(),this.pendo.log("Worker failed to start and main thread fallback is disabled. Recording prevented from starting."),this.logStopReason("WORKER_ERROR");else try{var t=this.pendo._.bind,n=(this.visitorConfig=e,this.clearOldSessionId(),this.sendQueue.start(),this.interval=setInterval(()=>{this.sendQueue.failed()||this.send()},SEND_INTERVAL),this.recordingConfig(e));this._stop=this.record(this.pendo._.extend({emit:t(this.emit,this),errorHandler:this.errorHandler},n)),this._refreshIds(),this.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){var t=e.type===EVENT_TYPES.META,n=e.type===EVENT_TYPES.FULL_SNAPSHOT,i=this.pendo._.get(this.getLastUserInteractionEventInformation(),"timestamp"),r=this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES);let o=!1;e.timestamp&&e.timestamp.getTime&&(e.timestamp=e.timestamp.getTime()),e.timestamp||(e.timestamp=(new Date).getTime());var r=i&&e.timestamp-i<=r;!i&&t&&(o=!0,this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,o)),t||this.isCheckingVisitorEligibility||!r||this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,o),r||n||t?(t&&(this.pendo._.has(e,"data.href")&&(e.data.href=this.pendo.location.getHref()),this.send()),this.buffer.push(e),n?(this.lastKeyFrameTime=e.timestamp,this.eventsSinceLastKeyFrame=0,this.recordingId=this.pendo.randomString(16),this.buffer.clearSequence(),this.sessionId(this.recordingId),this.restartPtm(),this._sendIds(),this.send({keyframe:!0})):!t&&(this.eventsSinceLastKeyFrame+=1,r=(i=e.timestamp-this.lastKeyFrameTime)>=ONE_DAY_IN_MILLISECONDS,n=i>=this.pendo._.get(this.visitorConfig,"keyframeTimeFrequency",30645047),t=this.eventsSinceLastKeyFrame>=this.pendo._.get(this.visitorConfig,"keyframeEventFrequency",4548),e=this.currentRecordingSize>=this.pendo._.get(this.visitorConfig,"recordingSizeLimit",ONE_HUNDRED_MB_IN_BYTES),r||n&&t||e)&&(i=function(){this.currentRecordingSize=0,this.snapshot()},r&&!this.isCheckingVisitorEligibility?this.checkVisitorEligibility(i):i.call(this))):("hidden"===this.getPageLifecycleState()&&(this.stop(),this.addPageLifecycleListeners(),this.logStopReason("INACTIVE_HIDDEN_TAB")),this.isCheckingVisitorEligibility||this.checkVisitorEligibility(function(){this.send(),this.clearSessionInfo(),this.snapshot()}))}updateCurrentRecordingSize(e){this.currentRecordingSize+=e}onWorkerMessage(e){switch(e.type){case"workerDied":this.logStopReason("WORKER_DIED");break;case"recordingPayloadSize":var{recordingPayloadSize:t,exceedsPayloadSizeLimit:n}=e;if(!t)return;if(n)return this.stop(),void this.logStopReason("BIG_PAYLOAD",t);this.updateCurrentRecordingSize(t);break;case"hostedResources":n=e["hostedResourcesEvent"];if(!n)return;this.sendHostedResources(n);break;case"emptyPayload":this.logStopReason("EMPTY_PAYLOAD");break;case"missingData":this.logStopReason("MISSING_"+e.missingData)}}addRecordingId(e){this.isRecording()&&this.recordingId&&e&&e.data&&e.data.length&&"recording"!==(e=e.data[0]).type&&"identify"!==e.type&&(e.visitor_id!==this.visitorId&&e.visitorId!==this.visitorId?(this.api.log.warn("Visitor id has diverged from agent"),this.logStopReason("VISITOR_ID_DIVERGED",{agentVisitorId:e.visitor_id||e.visitorId,recordingVisitorId:this.visitorId}),this.stop()):this._markEvents([e]))}stop(){this._stop&&this._stop(),this.send(),this.sendQueue.stop(),this.recordingId=null,clearInterval(this.interval),this.interval=null,this._stop=null,this.visitorConfig=null,this.api.Events.trigger("recording:paused"),this.visitorId=null,this.accountId=null,this.clearSessionInfo(),this.onRecordingStop()}handleHidden(){this.send({hidden:!0})}handleUnload(){this.api.ConfigReader.get(RECORDING_CONFIG_DISABLE_UNLOAD)||this.send({unload:!0})}buildRequestUrl(e,t){t=this.pendo._.extend({},this.api.agent.getJwtInfoCopy(),t),t=this.pendo._.map(t,function(e,t){return t+"="+e}).join("&");return t.length?e+"?"+t:e}sendFailure(e){this.stop(),this.logStopReason(e)}rateLimitExceeded(){this.send(),this.stop(),this.logStopReason("DATA_OVERLOAD")}send({unload:e=!1,keyframe:t=!1,hidden:n=!1}={}){if(this.isRecording()&&this.buffer&&this.recordingId&&!this.buffer.isEmpty())if(this.pendo.isSendingEvents()){var i=this.api.EventTracer.addTracerIds({}),t=this.pendo._.extend({type:"recording",visitorId:this.visitorId,accountId:this.accountId,keyFrame:!!t,lastKeyFrame:this.lastKeyFrameTime,recordingId:this.recordingId,recordingSessionId:this.sessionId(this.recordingId),url:this.pendo.url.get(),hasUserInteraction:this.pendo._.any(this.buffer.data,this.isUserInteraction)},i),i=(this.transport.usesSelfHostedWorker&&(t.usesSelfHostedWorker=!0),this.api.Events.eventCaptured.trigger(t),{v:this.pendo.VERSION,recordingId:this.recordingId}),i=(t.keyFrame&&(i.kf=1),this.isNewSession&&(this.isNewSession=!(i.ns=1)),this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+this.pendo.apiKey,i)),t=this.buffer.pack(t,this.pendo._);if(e||n)try{this.sendQueue.drain([{url:i,payload:t}],e)}catch(r){r.reason?this.logStopReason(r.reason,r.context):this.logStopReason("SEND_QUEUE_ERROR",r)}else this.sendQueue.push({url:i,payload:t});this.buffer.isEmpty()||this.send({unload:e})}else this.buffer.clear()}fetchVisitorConfig(){var e=this.pendo.compress({url:this.pendo.url.get(),metadata:this.pendo.getSerializedMetadata(),visitorId:this.visitorId,accountId:this.accountId}),e=this.buildRequestUrl(this.pendo.HOST+"/data/recordingconf/"+this.pendo.apiKey,{jzb:e,ct:(new Date).getTime(),v:this.pendo.VERSION});return fetch(e,{method:"GET"}).then(e=>e.json())}logStopReason(e,t){var n=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend({type:"recording",visitorId:this.visitorId||this.pendo.get_visitor_id(),accountId:this.accountId||this.pendo.get_account_id(),browserTime:(new Date).getTime(),keyFrame:!1,lastKeyFrame:0,recordingId:"log",recordingSessionId:"log",url:this.pendo.url.get(),subType:"log",recordingPayload:[],sequence:0,recordingPayloadCount:0,props:Object.assign({reason:e},t&&{error:t instanceof Error?null==t?void 0:t.message:t})},n),t=this.pendo.compress(e),n=this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+this.pendo.apiKey,{jzb:t,ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),t=this.pendo.compress(e,"binary");return this.transport.post(n,{body:t,keepalive:!0})["catch"](e=>{this.api.log.critical("Failed to send reason for stopping recording",{error:e})})}sendHostedResources(e){var t=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend(Object.assign(Object.assign({},e),{browserTime:(new Date).getTime()}),t),t=this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+this.pendo.apiKey,{ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),e=this.pendo.compress(e,"binary");return this.transport.post(t,{body:e,keepalive:!0})["catch"](e=>{this.api.log.critical("Failed to send hosted resources for recording event",{error:e})})}handleTabIdChange(){this.send(),this.clearSessionInfo(),this.snapshot()}}function wrapMethodWithCatch(t){return function(){try{return t.apply(this,arguments)}catch(e){this.api&&this.api.log&&this.api.log.critical("session recording error",{error:e})}}}function errorLogger(e){if("undefined"!=typeof Object&&"function"==typeof Object.getOwnPropertyNames&&e.constructor&&e.constructor.prototype)for(var t of Object.getOwnPropertyNames(e.constructor.prototype))"constructor"!==t&&(e[t]=wrapMethodWithCatch(e[t]));return e}function funcToSource(e,t){var t=t===undefined?null:t,n=[],e=(e=e.toString()).replace(/(['"])__worker_loader_strict__(['"])/g,"$1use strict$2");return n.push("("+e+")()"),t&&n.push("//# sourceMappingURL="+t+"\n"),n}function createURL(e,t){e=funcToSource(e,t),t=new Blob(e,{type:"application/javascript"});return URL.createObjectURL(t)}function createInlineWorkerFactory(t,n){var i;return function WorkerFactory(e){return i=i||createURL(t,n),new Worker(i,e)}}var WorkerFactory=createInlineWorkerFactory(function(){function i(e,t){return"function"==typeof e.bind?e.bind(t):e}function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function c(e,t){t=t||d;e=function(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||57344<=i?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}("string"==typeof e?e:JSON.stringify(e)),e=new s.Deflate(e).compress();return t===d?r.uint8ToBase64(e):e}function l(e,t){t=t.match(/https:\/\/[^"\\\s]+?\.(woff2?|ttf|otf|eot)(\?[^"\\\s]*)?\b/g),t=t?Array.from(new Set(t)):[];return{type:"recording",visitorId:e.visitorId,accountId:e.accountId,keyFrame:!1,lastKeyFrame:e.lastKeyFrame,recordingId:e.recordingId,recordingSessionId:e.recordingSessionId,url:e.url,subType:"hostedResources",recordingPayload:[],recordingPayloadMetadata:[],sequence:0,recordingPayloadCount:0,hostedResources:t}}var t,a,n,p,r,o,s,d;i(window.setTimeout,window),n=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return i(e[t],e)}(window),window.Promise,t=function(){var t=n;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a},p="function"==typeof(o=window.Promise)&&/native/.test(o)?o:t(),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),r={uint8ToBase64:function(e){var t,n,i,r=e.length%3,o="";for(t=0,i=e.length-r;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=function(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=a[n>>2])+a[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=a[n>>10])+a[n>>4&63])+a[n<<2&63]}return o}},function(){var Z=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===Z?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&d(this)}function d(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(u[255&e]<<24|u[e>>>8&255]<<16|u[e>>>16&255]<<8|u[e>>>24&255])>>32-t:u[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=u[s],s=0,o===r.length)&&(r=d(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=u[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var u=t;function c(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&e instanceof Array?new Uint8Array(e):e,this.c=0,t&&(t.lazy&&(this.i=t.lazy),"number"==typeof t.compressionType&&(this.d=t.compressionType),t.outputBuffer&&(this.a=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.prototype.push=function(e,t){var n,i,r=this.buffer,o=this.length;for(r[this.length++]=t,r[this.length++]=e;0<o&&(n=this.getParent(o),r[o]>r[n]);)i=r[o],r[o]=r[n],r[n]=i,i=r[o+1],r[o+1]=r[n+1],r[n+1]=i,o=n;return this.length},c.prototype.pop=function(){var e,t,n,i=this.buffer,r=i[0],o=i[1];for(this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],n=0;!((t=2*n+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[n]);)e=i[n],i[n]=i[t],i[t]=e,e=i[n+1],i[n+1]=i[t+1],i[t+1]=e,n=t;return{index:o,value:r,length:this.length}};for(var ne=2,l={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,D,n=this.input;switch(this.d){case 0:for(t=0,D=n.length;t<D;){var F,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===D,o=Z,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),F=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&F,a[s++]=F>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,U=i.length;o<U;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var d,u=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(u.b(1,1,Q),u.b(1,2,Q),re(this,n)),l=0,G=c.length;l<G;l++)if(d=c[l],te.prototype.b.apply(u,ie[d]),256<d)u.b(c[++l],c[++l],Q),u.b(c[++l],5),u.b(c[++l],c[++l],Q);else if(256===d)break;this.a=u.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,H,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,x,T,R,q=h,W=f,k=new(ee?Uint32Array:Array)(q+W),A=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<q;N++)k[_++]=m[N];for(N=0;N<W;N++)k[_++]=v[N];if(!ee)for(N=0,x=O.length;N<x;++N)O[N]=0;for(N=T=0,x=k.length;N<x;N+=_){for(_=1;N+_<x&&k[N+_]===k[N];++_);if(C=_,0===k[N])if(C<3)for(;0<C--;)O[A[T++]=0]++;else for(;0<C;)(R=C-3<(R=C<138?C:138)&&R<C?C-3:R)<=10?(A[T++]=17,A[T++]=R-3,O[17]++):(A[T++]=18,A[T++]=R-11,O[18]++),C-=R;else if(A[T++]=k[N],O[k[N]]++,--C<3)for(;0<C--;)A[T++]=k[N],O[k[N]]++;else for(;0<C;)C-3<(R=C<6?C:6)&&R<C&&(R=C-3),A[T++]=16,A[T++]=R-3,O[16]++,C-=R}for(e=ee?A.subarray(0,T):A.slice(0,T),y=oe(O,7),S=0;S<19;S++)j[S]=y[z[S]];for(g=19;4<g&&0===j[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(j[S],3,Q);for(S=0,H=e.length;S<H;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],J=I[0],K=I[1],$=L[0],X=L[1],P=0,Y=p.length;P<Y;++P)if(M=p[P],E.b(J[M],K[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b($[V],X[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,d=w[e.length];switch(a[s++]=65535&d,a[s++]=d>>16&255,a[s++]=d>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(d=n,a[s++]=d[0],a[+s]=d[1],a[5]=d[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,c=null}var i,r,o,a,s,d,u,c,l,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===Z&&(p[s]=[]),d=p[s],!(0<g--)){for(;0<d.length&&32768<i-d[0];)d.shift();if(r<=i+3){for(c&&n(c,-1),o=0,a=r-i;o<a;++o)l=t[i+o],h[f++]=l,++m[l];break}0<d.length?(u=function(e,t,n){var i,r,o,a,s,d,u=0,c=e.length;a=0,d=n.length;e:for(;a<d;a++){if(i=n[d-a-1],(o=3)<u){for(s=u;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=u}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(u<o&&(r=i,u=o),258===o)break}return new b(u,t-r)}(t,i,d),c?c.length<u.length?(l=t[i-1],h[f++]=l,++m[l],n(u,0)):n(c,-1):u.length<y?c=u:n(u,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}d.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,d=new c(572),u=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)u[o]=0;for(o=0;o<s;++o)0<e[o]&&d.push(o,e[o]);if(n=Array(d.length/2),i=new(ee?Uint32Array:Array)(d.length/2),1===n.length)u[d.pop().index]=1;else{for(o=0,a=d.length/2;o<a;++o)n[o]=d.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,d=new(ee?Uint16Array:Array)(t),u=new(ee?Uint8Array:Array)(t),c=new(ee?Uint8Array:Array)(n),l=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(d[t-1]=n,r=0;r<t;++r)f<g?u[r]=0:(u[r]=1,f-=g),f<<=1,d[t-2-r]=(d[t-1-r]/2|0)+n;for(d[0]=u[0],l[0]=Array(d[0]),p[0]=Array(d[0]),r=1;r<t;++r)d[r]>2*d[r-1]+u[r]&&(d[r]=2*d[r-1]+u[r]),l[r]=Array(d[r]),p[r]=Array(d[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<d[t-1];++o)l[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===u[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<d[r];o++)(a=l[r+1][s]+l[r+1][s+1])>e[i]?(l[r][o]=a,p[r][o]=n,s+=2):(l[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===u[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--c[t],++h[e]}(r)}return c}(i,i.length,t),o=0,a=n.length;o<a;++o)u[n[o].index]=r[o]}return u}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,d=e.length;s<d;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,d=16;s<=d;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,d=e.length;s<d;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,S=l,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,d=a.length;s<d;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var u,c=1,l=0,p=o.length,h=0;0<p;){for(p-=u=1024<p?1024:p;l+=c+=o[h++],--u;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call((o={exports:{}}).exports),s={Deflate:e(o.exports).Zlib.Deflate},d="base64url",self.onmessage=function(e){try{if("init"===e.data.type&&e.data.lockID)navigator.locks&&navigator.locks.request(e.data.lockID,()=>(postMessage({ready:!0}),new p(()=>{})));else if(e.data.url&&e.data.payload){var{url:t,payload:n,shouldCacheResources:i}=e.data;0===Object.keys(n).length&&postMessage({type:"emptyPayload"});const u=n["sequence"];var r,o,a=JSON.stringify(n.recordingPayload),s=(new TextEncoder).encode(a).length,d=104857600<=s;postMessage({type:"recordingPayloadSize",recordingPayloadSize:s,exceedsPayloadSizeLimit:d}),d||(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:u}):postMessage({sequence:u})})["catch"](function(e){postMessage({error:e,sequence:u})}))}else postMessage({type:"missingData",missingData:e.data.url?"PAYLOAD":"URL"})}catch(e){postMessage({error:e})}}},null);function createReplayPlugin(){return errorLogger(new SessionRecorder(record(),WorkerFactory))}var NUM_OF_KEYS_LIMIT=50,DEPTH_OF_LIMIT=4;function serializeHTML(e){var t;return e&&e.nodeType===e.ELEMENT_NODE&&(t=e.cloneNode(!1),(e=e.textContent)&&(t.textContent=e),t.outerHTML)||""}function isObject(e){return null!==e&&"object"==typeof e&&((e=Object.getPrototypeOf(e))===Object.prototype||null===e)}function isObjTooDeep(t,n){var e;return 0===n||0!==(e=Object.keys(t)).length&&e.some(function(e){e=t[e];return isObject(e)&&isObjTooDeep(e,n-1)})}function shouldIgnore(e){return e instanceof RegExp||!!isObject(e)&&(Object.keys(e).length>NUM_OF_KEYS_LIMIT||isObjTooDeep(e,DEPTH_OF_LIMIT))}function stringify(e){return e===undefined?"undefined":"object"!=typeof e?"bigint"==typeof e?e.toString()+"n":"function"==typeof e?e.toString():String(e):JSON.stringify(e,function(e,t){if(null!==t){if(t===undefined)return"undefined";if(shouldIgnore(t))return t.toString?t.toString():"[object Object]";if(t instanceof ArrayBuffer)return"ArrayBuffer { byteLength: ".concat(t.byteLength," }");if(t instanceof Error)return t.name+": "+t.message;if(t instanceof Node)return t instanceof HTMLElement?serializeHTML(t):t.nodeName;if(t instanceof Event){var n,i={};for(n in t){var r=t[n];i[n]=Array.isArray(r)&&r[0]instanceof HTMLElement?serializeHTML(r[0]):r}return i}}return t})}var StackFrame=function(){function e(e){this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}return e.prototype.toString=function(){var e=this.fileName,t=this.functionName,n=this.lineNumber,n=void 0===n?"":n,i=this.columnNumber,i=void 0===i?"":i;return t?"".concat(t," (").concat(e,":").concat(n,":").concat(i,")"):"".concat(e,":").concat(n,":").concat(i)},e}(),FIREFOX_SAFARI_STACK_REGEXP=/(^|@)\S+:\d+/,CHROME_EDGE_STACK_REGEXP=/^\s*at .*(\S+:\d+|\(native\))/m,SAFARI_NATIVE_CODE_REGEXP=/^(eval@)?(\[native code])?$/,LOCATION_REGEXP=/(.+?)(?::(\d+))?(?::(\d+))?$/,DEFAULT_NUM_FRAMES_TO_SKIP=5,ErrorStackParser={parse:function(e,t){return null!=e&&e.stack?CHROME_EDGE_STACK_REGEXP.test(e.stack)?this.parseChromiumStack(e,t):FIREFOX_SAFARI_STACK_REGEXP.test(e.stack)?this.parseFirefoxSafariStack(e,t):[]:[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=LOCATION_REGEXP.exec(e.replace(/[()]/g,""));if(t)return[t[1],t[2]||undefined,t[3]||undefined];throw new Error("Cannot parse given url: ".concat(e))},parseHelper:function(e,t,n,i){for(var r=e.regex,o=e.includeMatchedLine,a=t.stack.split("\n"),s=[],d=0,u=0;u<a.length;u++){var c=a[u],l=r.test(c),l=o&&!l||!o&&l;if(!l&&!(++d<=DEFAULT_NUM_FRAMES_TO_SKIP)){if(n&&DEFAULT_NUM_FRAMES_TO_SKIP+n<d)break;i(c,s)}}return s},parseChromiumStack:function(e,t){var r=this;return this.parseHelper({regex:CHROME_EDGE_STACK_REGEXP,includeMatchedLine:!0},e,t,function(e,t){var e=(e=(n=-1<(e=-1<e.indexOf("(eval ")?e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,"").replace(/^\s+/,"").replace(/\(eval code/g,"("):e.replace(/^\s+/,"")).indexOf("(")&&-1<e.indexOf("):")?e.match(/ (\((.+):(\d+):(\d+)\)$)/):n)?e.replace(n[0],""):e).split(/\s+/).slice(1),n=r.extractLocation(n?n[1]:e.pop()||""),e=e.join(" ")||undefined,i="eval"===n[0]||"<anonymous>"===n[0]?undefined:n[0];t.push(new StackFrame({functionName:e,fileName:i,lineNumber:n[1],columnNumber:n[2]}))})},parseFirefoxSafariStack:function(e,t){var r=this;return this.parseHelper({regex:SAFARI_NATIVE_CODE_REGEXP,includeMatchedLine:!1},e,t,function(e,t){var n,i;-1===(e=-1<e.indexOf(" > eval")?e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1"):e).indexOf("@")&&-1===e.indexOf(":")?t.push(new StackFrame({functionName:e})):(n=(n=e.match(i=/((.*".+"[^@]*)?[^@]*)(?:@)/))&&n[1]?n[1]:undefined,i=r.extractLocation(e.replace(i,"")),t.push(new StackFrame({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})))})}};function includes(e,t){return-1!==e.indexOf(t)}function getResourceType(e,t){if(!t||"string"!=typeof t)return"resource";t=t.toLowerCase();if("inline"===e){if(includes(t,"script-src-attr"))return"inline event handler";if(includes(t,"style-src-attr"))return"inline style attribute";if(includes(t,"script"))return"inline script";if(includes(t,"style"))return"inline style"}return"eval"===e?"eval script execution":includes(t,"worker")?"worker":includes(t,"script")?includes(t,"elem")?"script element":"script":includes(t,"style")?includes(t,"elem")?"style element":"stylesheet":includes(t,"img")?"image":includes(t,"font")?"font":includes(t,"connect")?"network request":includes(t,"media")?"media resource":includes(t,"frame-ancestors")?"display of your page in a frame":includes(t,"frame")?"frame":includes(t,"manifest")?"manifest":includes(t,"base-uri")?"base URI":includes(t,"form-action")?"form submission":"resource"}function getDirective(e,t){if(e&&t){var n=t.toLowerCase();for(const o of e.split(";")){var i=o.trim(),r=i.toLowerCase();if(r===n||r.startsWith(n+" "))return i}}return""}function getArticle(e){return e&&"string"==typeof e&&includes("aeiou",e.trim().charAt(0).toLowerCase())?"An":"A"}function formatBlockedUri(e){return e&&"inline"!==e&&"eval"!==e?e:""}function createCspViolationMessage(e,t,n,i){if(!t||"string"!=typeof t)return"Content Security Policy: Unknown violation occurred.";try{var r,o,a=n?" (Report-Only)":"";return"frame-ancestors"===(null==t?void 0:t.toLowerCase())?`Content Security Policy${a}: The display of ${e} in a frame was blocked because an ancestor violates your site's frame-ancestors policy.
|
|
140
|
-
Current CSP: "${i}".`:`Content Security Policy${a}: ${getArticle(r=getResourceType(e,t))+" "+r+((o=formatBlockedUri(e))?" from "+o:"")} was blocked by your site's \`${getDirective(i,t)||t}\` policy.
|
|
141
|
-
Current CSP: "${i}".`}catch(s){return"Content Security Policy: Error formatting violation message: "+s.message}}const MAX_LENGTH=1e3,PII_PATTERN={ip:/\b(?:\d{1,3}\.){3}\d{1,3}\b/g,ssn:/\b\d{3}-\d{2}-\d{4}\b/g,creditCard:/\b(?:\d[ -]?){12,18}\d\b/g,httpsUrls:/https:\/\/[^\s]+/g,email:/[\w._+-]+@[\w.-]+\.\w+/g},PII_REPLACEMENT="*".repeat(10),JSON_PII_KEYS=["password","email","key","token","auth","authentication","phone","address","ssn"],UNABLE_TO_DISPLAY_BODY="[Unable to display body: detected PII could not be redacted]",joinedKeys=JSON_PII_KEYS.join("|"),keyPattern=`"([^"]*(?:${joinedKeys})[^"]*)"`,acceptedValues='("([^"\\\\]*(?:\\\\.[^"\\\\]*)*")|(\\d+)|(true|false))';function truncate(e,t=!1){return e.length<=MAX_LENGTH?e:t?e.slice(0,MAX_LENGTH).concat("..."):e.slice(0,MAX_LENGTH)}function generateLogKey(e,t,n){return e+`|${t}|`+n}function mightContainPII(e){return/[\d]{2,}|https:\/\/|@/.test(e)}function scrubPII({string:e,_:t}){return e&&"string"==typeof e&&mightContainPII(e)?t.reduce(t.values(PII_PATTERN),(e,t)=>e.replace(t,PII_REPLACEMENT),e):e}function scrubJsonPII(e){var t;return new RegExp(keyPattern+"\\s*:\\s*[\\{\\[]","i").test(e)?UNABLE_TO_DISPLAY_BODY:(t=new RegExp(keyPattern+"\\s*:\\s*"+acceptedValues,"gi"),e.replace(t,(e,t)=>`"${t}":"${PII_REPLACEMENT}"`))}function mightContainJson(e,t){return!!(e&&"string"==typeof e&&(e=e.charAt(0),t&&-1!==t.indexOf("application/json")||"{"===e||"["===e))}function maskSensitiveFields({string:e,contentType:t,_:n}){return e=e&&"string"==typeof e&&mightContainPII(e=mightContainJson(e,t)?scrubJsonPII(e):e)?scrubPII({string:e,_:n}):e}const DEV_LOG_TYPE="devlog";function createDevLogEnvelope(e,t){return{browser_time:e.util.getNow(),url:t.url.get(),visitorId:t.get_visitor_id(),accountId:t.get_account_id(),type:DEV_LOG_TYPE}}const TOKEN_MAX_SIZE=100,TOKEN_REFILL_RATE=10,TOKEN_REFRESH_INTERVAL=1e3,MAX_UNCOMPRESSED_SIZE=125e3;class DevlogBuffer{constructor(e,t){this.pendo=e,this.pluginAPI=t,this.events=[],this.lastEvent=null,this.uncompressedSize=0,this.payloads=[],this.tokens=TOKEN_MAX_SIZE,this.lastRefillTime=this.pluginAPI.util.getNow(),this.nextRefillTime=this.lastRefillTime+TOKEN_REFRESH_INTERVAL}isEmpty(){return 0===this.events.length&&0===this.payloads.length}refillTokens(){var e,t=this.pluginAPI.util.getNow();t>=this.nextRefillTime&&(e=t-this.lastRefillTime,e=Math.floor(e/TOKEN_REFRESH_INTERVAL)*TOKEN_REFILL_RATE,this.tokens=Math.min(this.tokens+e,TOKEN_MAX_SIZE),this.lastRefillTime=t,this.nextRefillTime=t+TOKEN_REFRESH_INTERVAL)}clear(){this.events=[],this.lastEvent=null,this.uncompressedSize=0}hasTokenAvailable(){return this.refillTokens(),0<this.tokens}estimateEventSize(e){return JSON.stringify(e).length}push(e){var t;return!!this.hasTokenAvailable()&&(t=this.estimateEventSize(e),this.uncompressedSize+t>MAX_UNCOMPRESSED_SIZE&&this.compressCurrentChunk(),this.uncompressedSize+=t,this.lastEvent=e,this.events.push(e),this.tokens=Math.max(this.tokens-1,0),!0)}compressCurrentChunk(){var e;0!==this.events.length&&(e=this.pendo.compress(this.events),this.payloads.push(e),this.clear())}generateUrl(){var e={v:this.pendo.VERSION,ct:this.pluginAPI.util.getNow()};return this.pluginAPI.transmit.buildBaseDataUrl(DEV_LOG_TYPE,this.pendo.apiKey,e)}pack(){if(!this.isEmpty()){const t=this.generateUrl();this.compressCurrentChunk();var e=this.pendo._.map(this.payloads,e=>({jzb:e,url:t}));return this.payloads=[],e}}}class DevlogTransport{constructor(e,t){this.pendo=e,this.pluginAPI=t}buildGetUrl(e,t){var n={},i=(this.pluginAPI.agent.treatAsAdoptPartner()&&this.pluginAPI.agent.addAccountIdParams(n,this.pendo.get_account_id(),this.pluginAPI.ConfigReader.get("oemAccountId")),this.pluginAPI.agent.getJwtInfoCopy()),i=(this.pendo._.isEmpty(i)||this.pendo._.extend(n,i),n.jzb=t,this.pendo._.map(n,(e,t)=>t+"="+e).join("&"));return""+e+(-1!==e.indexOf("?")?"&":"?")+i}get(e,t){return t.method="GET",this.pluginAPI.transmit.fetchKeepalive.supported()?this.pluginAPI.transmit.fetchKeepalive(e,t):this.pendo.ajax.get(e)}sendRequestWithGet({url:e,jzb:t}){e=this.buildGetUrl(e,t);return this.get(e,{headers:{"Content-Type":"application/octet-stream"}})}post(e,t){return t.method="POST",t.keepalive&&this.pluginAPI.transmit.fetchKeepalive.supported()?this.pluginAPI.transmit.fetchKeepalive(e,t):t.keepalive&&this.pluginAPI.transmit.sendBeacon.supported()?this.pluginAPI.transmit.sendBeacon(e,new Blob([t.body]))?Promise$2.resolve():Promise$2.reject(new Error("sendBeacon failed to send devlog data")):this.pendo.ajax.post(e,t.body)}sendRequestWithPost({url:e,jzb:t},n){var i=this.pluginAPI.agent.getJwtInfoCopy(),t={events:t,browser_time:this.pluginAPI.util.getNow()},t=(this.pluginAPI.agent.treatAsAdoptPartner()&&this.pluginAPI.agent.addAccountIdParams(t,this.pendo.get_account_id(),this.pluginAPI.ConfigReader.get("oemAccountId")),JSON.stringify(this.pendo._.extend(t,i)));return this.post(e,{body:t,headers:{"Content-Type":"application/json"},keepalive:n})}sendRequest({url:e,jzb:t},n){return t.length<=this.pluginAPI.constants.ENCODED_EVENT_MAX_LENGTH&&!this.pluginAPI.ConfigReader.get("sendEventsWithPostOnly")?this.sendRequestWithGet({url:e,jzb:t}):this.sendRequestWithPost({url:e,jzb:t},n)}}function ConsoleCapture(){let a,s,d,u,i,n,r,c,l=!1;const o="captureConsoleLogs",e=["log","warn","error","info"],p="console";let h="";return{name:"ConsoleCapture",initialize:function(e,t){s=e._;t=(a=t).ConfigReader,t.addOption(o,[t.sources.PENDO_CONFIG_SRC],!1),t=t.get(o);t&&(d=e,u=new DevlogBuffer(e,a),r=new DevlogTransport(e,a),i=new a.SendQueue(r.sendRequest.bind(r)),n=setInterval(()=>{i.failed()||C()},a.constants.SEND_INTERVAL),i.start(),a.Events.ready.on(w),a.Events["recording:unpaused"].on(y),a.Events["recording:paused"].on(b),a.Events.appUnloaded.on(g),a.Events.appHidden.on(f),a.Events["ptm:paused"].on(m),a.Events["ptm:unpaused"].on(v))},teardown:x,addIntercepts:S,createConsoleEvent:I,captureStackTrace:_,send:C,setCaptureState:t,recordingStarted:y,recordingStopped:b,onAppHidden:f,onAppUnloaded:g,onPtmPaused:m,onPtmUnpaused:v,securityPolicyViolationFn:E,get isCapturingConsoleLogs(){return l},get buffer(){return u},get sendQueue(){return i},get isPtmPaused(){return c}};function f(){C({hidden:!0})}function g(){C({unload:!0})}function m(){c=!0}function v(){if(c=!1,!u.isEmpty()){for(const e of u.events)a.Events.eventCaptured.trigger(e);C()}}function t({shouldCapture:e=!1,reason:t=""}={}){e!==l&&(l=e,a.log.info("[ConsoleCapture] Console log capture "+(e?"started":"stopped")+(t?": "+t:"")))}function y(){t({shouldCapture:!0,reason:"recording started"})}function b(){t({shouldCapture:!1,reason:"recording stopped"})}function w(){try{S(),a.attachEventInternal(window,"securitypolicyviolation",E)}catch(e){a.log.error("Error setting up console capture intercepts: ",e),x()}}function S(){s.each(e,function(n){const e=console[n];e&&(console[n]=s.wrap(e,function(e){var t=s.toArray(arguments).slice(1);e.apply(console,t),I(t,n)}),console[n]._pendoUnwrap=function(){console[n]=e})})}function E(e){var t,n,i,r;e&&"object"==typeof e&&({blockedURI:e,violatedDirective:t,effectiveDirective:n,disposition:i,originalPolicy:r}=e,I([createCspViolationMessage(e,t||n,e="report"===i,r)],e?"warn":"error",{skipStackTrace:!0,skipScrubPII:!0}))}function I(t,n,{skipStackTrace:i=!1,skipScrubPII:r=!1}={}){if(l&&t&&0!==t.length&&s.contains(e,n)){t=s.compact(s.map(t,e=>{let t;try{t=stringify(e)}catch(n){a.log.error("Error stringifying arg: ",n)}return t})).join(" ");if(t){let e="";i||(e=_("error"===n?4:1));var o,i=generateLogKey(n,t=truncate(t),e=truncate(e));if(i!==h||!u.lastEvent)return o=createDevLogEnvelope(a,d),o=Object.assign(Object.assign({},o),{subType:p,devLogLevel:"log"===n?"info":n,devLogMessage:r?t:scrubPII({string:t,_:s}),devLogTrace:e,devLogCount:1}),u.hasTokenAvailable()&&(c||a.Events.eventCaptured.trigger(o),u.push(o),n=i,h=n),o;u.lastEvent.devLogCount++}}}function _(e){try{var t=ErrorStackParser.parse(new Error,e);return s.map(t,e=>e.toString()).join("\n")}catch(n){return""}}function C({unload:e=!1,hidden:t=!1}={}){var n;u&&!u.isEmpty()&&(d.isSendingEvents()?(n=u.pack())&&0!==n.length&&(e||t?i.drain(n,e):i.push(...n)):u.clear())}function x(){C({unload:!0}),n&&clearInterval(n),i&&i.stop(),u&&u.clear(),a.Events.appHidden.off(f),a.Events.appUnloaded.off(g),a.Events["ptm:paused"].off(m),a.Events["ptm:unpaused"].off(v),a.Events["recording:unpaused"].off(y),a.Events["recording:paused"].off(b),a.detachEventInternal(window,"securitypolicyviolation",E),s.each(e,function(e){if(!console[e])return s.noop;e=console[e]._pendoUnwrap;s.isFunction(e)&&e()})}}function NetworkCapture(){let o,a,n={},i,r,s,d,u,c,l,p,h=!1,f=[];const g="captureNetworkRequests",D="network",t="networkLogs",m="networkLogs.allowedRequestHeaders",v="networkLogs.allowedResponseHeaders",F="networkLogs.captureRequestBody",U="networkLogs.captureResponseBody",y="networkLogs.excludeRequestUrls",b={"content-type":!0,"content-length":!0,accept:!0,"accept-language":!0},w={"cache-control":!0,"content-length":!0,"content-type":!0,"content-language":!0};return{name:"NetworkCapture",initialize:function(e,t){o=t,a=e;t=o.ConfigReader,t.addOption(g,[t.sources.PENDO_CONFIG_SRC],!1),t=t.get(g);t&&(i=new DevlogBuffer(e,o),d=new DevlogTransport(e,o),r=new o.SendQueue(d.sendRequest.bind(d)),S(),E(m,b),E(v,w),I(),G(),s=setInterval(()=>{r.failed()||P()},o.constants.SEND_INTERVAL),r.start(),o.Events.ready.on(B),o.Events["recording:unpaused"].on(R),o.Events["recording:paused"].on(k),o.Events["ptm:paused"].on(_),o.Events["ptm:unpaused"].on(C),o.Events.appHidden.on(x),o.Events.appUnloaded.on(T),p=o.transmit.buildBaseDataUrl(DEV_LOG_TYPE,a.apiKey))},teardown:function(){s&&clearInterval(s);r&&r.stop();i&&i.clear();o.NetworkRequest.off({request:A,response:O,error:N}),n={},o.Events["ptm:paused"].off(_),o.Events["ptm:unpaused"].off(C),o.Events.appHidden.off(x),o.Events.appUnloaded.off(T),o.Events["recording:unpaused"].off(R),o.Events["recording:paused"].off(k)},handleRequest:A,handleResponse:O,handleError:N,startCapture:B,createNetworkEvent:q,send:P,onPtmPaused:_,onPtmUnpaused:C,onAppHidden:x,onAppUnloaded:T,setCaptureState:e,recordingStarted:R,recordingStopped:k,addConfigOptions:S,processHeaderConfig:E,extractHeaders:M,setupBodyCallbacks:I,processBody:L,processRequestBody:z,processResponseBody:j,buildExcludeRequestUrls:G,isUrlExcluded:H,get isCapturingNetworkLogs(){return h},get requestMap(){return n},get buffer(){return i},get sendQueue(){return r},get isPtmPaused(){return u},get allowedRequestHeaders(){return b},get allowedResponseHeaders(){return w},get requestBodyCb(){return c},get responseBodyCb(){return l},get excludeRequestUrls(){return f}};function S(){var e=o["ConfigReader"];e.addOption(t,[e.sources.SNIPPET_SRC],{}),e.addOption(m,[e.sources.SNIPPET_SRC],[]),e.addOption(v,[e.sources.SNIPPET_SRC],[]),e.addOption(F,[e.sources.SNIPPET_SRC],undefined),e.addOption(U,[e.sources.SNIPPET_SRC],undefined),e.addOption(y,[e.sources.SNIPPET_SRC],[])}function E(e,t){e=o.ConfigReader.get(e);e&&0!==e.length&&a._.each(e,e=>{e&&a._.isString(e)&&(t[e.toLowerCase()]=!0)})}function I(){var e=o.ConfigReader.get(t);e&&(a._.isFunction(e.captureRequestBody)&&(c=e.captureRequestBody),a._.isFunction(e.captureResponseBody))&&(l=e.captureResponseBody)}function G(){var e=o.ConfigReader.get(y);e&&0!==e.length&&a._.each(e,e=>{e=function(e){if(e){var t=a._.isRegExp(e);if(a._.isString(e)||t)return t?e:(t=o.util.escapeRegExp(e),new RegExp(`^${t}$`))}}(e);e&&f.push(e)})}function _(){u=!0}function C(){if(u=!1,!i.isEmpty()){for(const e of i.events)o.Events.eventCaptured.trigger(e);P()}}function x(){P({hidden:!0})}function T(){P({unload:!0})}function e({shouldCapture:e=!1,reason:t=""}={}){e!==h&&(h=e,o.log.info("[NetworkCapture] Network request capture "+(e?"started":"stopped")+(t?": "+t:"")))}function R(){return e({shouldCapture:!0,reason:"recording started"})}function k(){return e({shouldCapture:!1,reason:"recording stopped"})}function B(){o.NetworkRequest.on({request:A,response:O,error:N})}function H(t){return!(!t||!a._.isString(t))&&0!==f.length&&a._.some(f,e=>e.test(t))}function A(e){h&&e&&!H(e.url)&&(n[e.requestId]=e)}function O(e){var t;h&&e&&(t=n[e.requestId])&&(-1!==t.url.indexOf(p)&&200===e.status||i.hasTokenAvailable()&&(t=q({request:t,response:e}),u||o.Events.eventCaptured.trigger(t),i.push(t)),delete n[e.requestId])}function N({error:e,context:t}){h&&(e.requestId&&n[e.requestId]&&delete n[e.requestId],-1!==t.indexOf("fetch")&&o.log.debug("[NetworkCapture] Fetch tracking failed:",e),-1!==t.indexOf("xhr"))&&o.log.debug("[NetworkCapture] XHR tracking failed:",e)}function M(i,r){var{keys:e,reduce:t}=a._;return i&&r?t(e(i),(e,t)=>{var n=t.toLowerCase();return r[n]&&e.push(t+": "+i[t]),e},[]):[]}function L(e,t){return e&&a._.isString(e)?truncate(maskSensitiveFields({string:e,contentType:t,_:a._}),!0):""}function z({request:e}){if(!e||!e.body||!c)return"";try{return L(c(e.body,{request:e}),a._.get(e,"headers.content-type",""))}catch(t){return o.log.error("[NetworkCapture] Error processing request body",t),"[Failed to process request body]"}}function j({response:e}){if(!e||!e.body||!l)return"";try{return L(l(e.body,{response:e}),a._.get(e,"headers.content-type",""))}catch(t){return o.log.error("[NetworkCapture] Error processing response body",t),"[Failed to process response body]"}}function q({request:e,response:t}){var n=createDevLogEnvelope(o,a),i=M(e.headers,b),r=M(t.headers,w),n=Object.assign(Object.assign({},n),{subType:D,devLogMethod:e.method,devLogStatusCode:t.status,devLogRequestUrl:e.url,devLogRequestHeaders:i,devLogResponseHeaders:r,devLogCount:1});return c&&(n.devLogRequestBody=z({request:e})),l&&(n.devLogResponseBody=j({response:t})),n}function P({unload:e=!1,hidden:t=!1}={}){var n;i&&!i.isEmpty()&&(a.isSendingEvents()?(n=i.pack(),e||t?r.drain(n,e):r.push(...n)):i.clear())}}var PREDICT_STEP_REGEX=/\$\$predict\$\$/,DRAG_THRESHOLD=5,STYLE_ID="pendo-predict-plugin-styles",PREDICT_BASE_URL="https://predict.pendo.io",GUIDE_BUTTON_IDENTIFIER='button:contains("token")',pluginVersion="1.0.1",$=function(e){return document.getElementById(e)},createElement=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n=null);for(var i=document.createElement(e),r=Object.entries(t),o=0;o<r.length;o++){var a=r[o],s=a[0],a=a[1];"className"===s?i.className=a:"innerHTML"===s?i.innerHTML=a:i[s]=a}return n&&n.appendChild(i),i},injectStyles=function(e,t){void 0===t&&(t=function(){});var n="".concat(STYLE_ID,"-").concat(e);$(n)?t("[predict] style already exists, skipping: ".concat(n)):(t("[predict] injecting styles: ".concat(n)),createElement("style",{id:n,textContent:"\n #".concat(e," {\n display: none !important;\n }\n .frame-explanation {\n aspect-ratio: 16/9; overflow: hidden; min-height: 300px;\n width: 100vw; height: 100vh; background: transparent;\n position: fixed; bottom: 0; right: 0; z-index: 1; border: none;\n visibility: hidden; opacity: 0; pointer-events: none;\n transition: opacity 0.1s ease-out, visibility 0s linear 0.1s;\n display: none;\n }\n .frame-explanation.is-visible {\n z-index: 999999;\n visibility: visible; opacity: 1; pointer-events: auto;\n transition: opacity 0.1s ease-out, visibility 0s linear 0s;\n }\n .frame-explanation.is-exists {\n display: block !important;\n }\n .floating-modal-container {\n position: fixed; top: 20px; right: 20px; z-index: 500000;\n visibility: hidden; opacity: 0; pointer-events: none;\n transition: opacity 0.1s ease-out, visibility 0s linear 0.1s;\n border-radius: 8px; box-shadow: 0px 4px 12px 0px rgba(0,0,0,0.15);\n overflow: hidden; width: 384px; height: 176px;\n }\n .floating-modal-container.is-visible {\n visibility: visible; opacity: 1; pointer-events: auto;\n transition: opacity 0.1s ease-out, visibility 0s linear 0s;\n }\n .floating-modal-container.is-dragging { will-change: left, top; }\n .floating-modal-drag-handle {\n position: absolute; left: 50%; transform: translateX(-50%);\n top: 5px; width: calc(100% - 46px); min-width: 166px; height: 17px;\n z-index: 9999; transition: left 0.2s ease, right 0.2s ease;\n display: flex; justify-content: center; align-items: center;\n }\n .floating-modal-drag-handle svg g { fill: #A0A0A0; }\n .floating-modal-drag-handle:hover { cursor: grab; }\n .floating-modal-drag-handle:hover svg g { fill: #1f2937; }\n .floating-modal-drag-handle.is-dragging { cursor: grabbing; }\n .floating-modal-drag-handle.is-collapsed { top: 0px; }\n .frame-floating-modal { width: 100%; height: 100%; background: white; border: none; display: block; }\n ")},document.head))},getRecordIdFromUrl=function(e,t){void 0===t&&(t=function(){});var e=window.location.href.match(e),e=null!=(e=null==e?void 0:e[1])?e:null;return t("[predict] recordId found: ".concat(e)),e},safeStringify=function(e,t){try{return JSON.stringify(e)}catch(n){return null!=t?t:""}},safeParse=function(e,t,n){void 0===n&&(n=function(){});try{return JSON.parse(e)}catch(i){return n("[predict] JSON parse error: ".concat(i)),t}},buildQueryParams=function(e){var t=new URLSearchParams,n=Object.entries(e);t.set("pluginVersion",pluginVersion);for(var i=0;i<n.length;i++){var r=n[i],o=r[0],r=r[1];null!=r&&t.set(o,("object"==typeof r?safeStringify:String)(r))}return t.toString()},setupDragAndDrop=function(n,r){var o=!1,a=!1,i=!1,s=0,d=0,u=0,c=0,l=null,p=r.querySelector("iframe"),e=function(e){var t;0===e.button&&(e.preventDefault(),a=!(o=!0),n.classList.add("is-dragging"),r.classList.add("is-dragging"),p&&(p.style.pointerEvents="none"),t=r.getBoundingClientRect(),u=t.left,c=t.top,r.style.left="".concat(u,"px"),r.style.right="auto",s=e.clientX,d=e.clientY,document.addEventListener("mousemove",h),document.addEventListener("mouseup",f))},h=function(e){var n,i;o&&(n=e.clientX-s,i=e.clientY-d,(Math.abs(n)>DRAG_THRESHOLD||Math.abs(i)>DRAG_THRESHOLD)&&(a=!0),l&&cancelAnimationFrame(l),l=requestAnimationFrame(function(){var e=r.getBoundingClientRect(),t=Math.max(0,Math.min(u+n,window.innerWidth-e.width)),e=Math.max(0,Math.min(c+i,window.innerHeight-e.height));r.style.left="".concat(t,"px"),r.style.top="".concat(e,"px")}))},f=function(e){var t;o&&(o=!1,n.classList.remove("is-dragging"),r.classList.remove("is-dragging"),p&&(p.style.pointerEvents=""),l&&cancelAnimationFrame(l),l=null,document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",f),!a)&&i&&p&&null!=(t=null==p?void 0:p.contentWindow)&&t.postMessage({type:"TRIGGER_EXPAND"},PREDICT_BASE_URL)};return n.setCollapsedState=function(e){i=e,n.classList.toggle("is-collapsed",e)},n.addEventListener("mousedown",e),n.cleanup=function(){n.removeEventListener("mousedown",e),document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",f),l&&cancelAnimationFrame(l)},n},createExplanationIframe=function(e){var t=e.analysisId,n=e.recordId,e=e.configuration,i="frameExplanation-".concat(t),r=(null!=(r=$(i))&&r.remove(),"".concat(PREDICT_BASE_URL,"/external/analysis/").concat(t,"/prediction/drilldown/").concat(n)),t=buildQueryParams(e);createElement("iframe",{id:i,className:"frame-explanation",title:"Explanation",loading:"lazy",referrerPolicy:"strict-origin-when-cross-origin",allowFullscreen:!0,src:"".concat(r,"?").concat(t)},document.body)},createFloatingModal=function(e){for(var t=e.recordId,n=e.configuration,r=null==(e=n.analysisIds)?void 0:e.flat(Infinity),i=0;i<r.length;i++)createExplanationIframe({analysisId:r[i],recordId:t,configuration:n});var o=createElement("div",{id:"floatingModalContainer",className:"floating-modal-container"},document.body),e=createElement("div",{className:"floating-modal-drag-handle",innerHTML:'<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <g fill="#EBEBEB">\n <circle cx="3.33" cy="6" r="1.5"/><circle cx="8" cy="6" r="1.5"/><circle cx="12.67" cy="6" r="1.5"/>\n <circle cx="3.33" cy="10" r="1.5"/><circle cx="8" cy="10" r="1.5"/><circle cx="12.67" cy="10" r="1.5"/>\n </g>\n </svg>'},o),a="".concat(PREDICT_BASE_URL,"/external/analysis/prediction/summary/").concat(t),s=buildQueryParams(n);return createElement("iframe",{id:"frameFloatingModal",className:"frame-floating-modal",loading:"lazy",referrerPolicy:"strict-origin-when-cross-origin",allowFullscreen:!0,title:"Floating Modal",src:"".concat(a,"?").concat(s)},o),o.dragHandle=setupDragAndDrop(e,o),function(){var e,t;null!=(t=null==(e=o.dragHandle)?void 0:e.cleanup)&&t.call(e),o.remove();for(var n=0;n<r.length;n++){var i=$("frameExplanation-".concat(r[n]));i&&i.remove()}}},setupMessageListener=function(e){var u=e.token,c=e.forceAccountId,l=e.cleanup,p=e.pendo,t=function(e){var t,n,i,r,o,a,s=e.origin,d=e.data;s===PREDICT_BASE_URL&&d&&"object"==typeof d&&(e=d.type,s=d.analysisId,t=d.height,n=d.width,i=$("frameExplanation-".concat(s)),r=$("floatingModalContainer"),o=function(){r&&(r.style.height="".concat(t,"px"),r.style.width="".concat(n,"px"))},a=function(e){var t,n;r&&null!=(n=null==(t=r.dragHandle)?void 0:t.setCollapsedState)&&n.call(t,e)},s={MODAL_INITIALIZED:function(){var e,t,n,i,r=$("frameFloatingModal");r&&(t=e=null,n=p.getConfigValue("retrieveIDPToken"),p._.isFunction(n)&&(n=n())&&(e=n.idToken,t=n.extensionAPIKeys),n=null==(n=null==p?void 0:p.getVisitorId)?void 0:n.call(p),i=null!=c?c:null==(i=null==p?void 0:p.getAccountId)?void 0:i.call(p),null!=(r=r.contentWindow))&&r.postMessage({type:"TOKEN_RECEIVED",token:u,idToken:e,extensionAPIKeys:t,visitorId:n,accountId:i},PREDICT_BASE_URL)},OPEN_EXPLANATION:function(){var e;null!=i&&i.classList.add("is-visible"),null!=(e=null==i?void 0:i.contentWindow)&&e.postMessage(d,PREDICT_BASE_URL)},CLOSE_EXPLANATION:function(){return null==i?void 0:i.classList.remove("is-visible")},AUTH_ERROR_EXPLANATION:function(){null!=i&&i.classList.remove("is-visible");var e=$("frameFloatingModal");e&&(e.src=e.src)},DATA_READY:function(){null!=r&&r.classList.add("is-visible"),o();for(var e=d.analysisIds||[],t=0;t<e.length;t++){var n=$("frameExplanation-".concat(e[t]));n&&n.classList.add("is-exists")}},AUTH_ERROR:function(){null!=r&&r.classList.add("is-visible"),o()},CLOSE_FLOATING_MODAL:l,EXPAND_FLOATING_MODAL:function(){o(),a(!1)},COLLAPSE_FLOATING_MODAL:function(){o(),a(!0)}},e)&&e in s&&null!=(e=null===s?void 0:s[e])&&e.call(s)};return window.addEventListener("message",t),function(){return window.removeEventListener("message",t)}},predictGuidesScript=function(e){var t,n=e.step,i=e.pendo,r=e.cleanupArray,o=e.cleanup,e=e.log,a=(e("[predict] initializing"),null==n?void 0:n.containerId);injectStyles(a,e),0<r.length?e("[predict] cleanupArray is not empty"):(n=null==(a=n.guideElement.find(GUIDE_BUTTON_IDENTIFIER))?void 0:a[0])?(n=(a=safeParse(n.textContent,{},e)).token,(a=__rest(a,["token"]))&&n?(t=new RegExp("/".concat(a.recordRegexName,"/([a-zA-Z0-9]+)(?:/|$)")),(t=getRecordIdFromUrl(t,e))?(r.push(setupMessageListener({token:n,forceAccountId:null==a?void 0:a.forceAccountId,cleanup:o,pendo:i})),r.push(createFloatingModal({recordId:t,configuration:a}))):e("[predict] no recordId found in URL, aborting")):e("[predict] no configuration found, aborting")):e("[predict] no guide button found, aborting")};const PredictGuides=()=>{let o=null,a=[];const s=()=>{var e;null!=(e=null===o||void 0===o?void 0:o.log)&&e.debug("[predict] cleaning up");for(let e=0;e<a.length;e++)try{a[e]()}catch(t){}a=[]};return{name:"PredictGuides",initialize:(e,t)=>{var n=(o=t).ConfigReader,i="predictGuides",i=(n.addOption(i,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),n.get(i));if(i){const r=t.log.debug.bind(t.log);o.Events.urlChanged.on(s);n={name:"PredictFrameScript",script(e,t,n){predictGuidesScript({step:e,pendo:n,cleanupArray:a,cleanup:s,log:r}),this.on("unmounted",e=>{"hidden"!==e.reason&&s()})},test(e,t){e=e.name||"";return PREDICT_STEP_REGEX.test(e)}};o.GlobalRuntime.addGlobalScript(n)}},teardown:()=>{var e;s(),null!=(e=null==(e=null===o||void 0===o?void 0:o.Events)?void 0:e.urlChanged)&&e.off(s)}}},ASSISTANT_MESSAGE="assistantMessage",CONVERSATION_ID_URL_PATTERN="conversationIdUrlPattern",MESSAGE_ID_ATTR="messageIdAttr",MESSAGE_ID_PATTERN="messageIdPattern",MODEL_USED_ATTR="modelUsedAttr",REACTION_ACTIVE="reactionActive",STREAMING_ACTIVE="streamingActive",STREAMING_ACTIVE_ATTR="streamingActiveAttr",THUMB_DOWN="thumbDown",THUMB_UP="thumbUp",TURN_CONTAINER="turnContainer",USER_MESSAGE="userMessage",CUSTOM_AGENT_ID_URL_PATTERN="customAgentIdUrlPattern",CUSTOM_AGENT_NAME="customAgentName",REQUIRED_SELECTORS=[ASSISTANT_MESSAGE,CONVERSATION_ID_URL_PATTERN,MESSAGE_ID_ATTR,STREAMING_ACTIVE,TURN_CONTAINER,USER_MESSAGE],SUPPORTED_PRESETS=["chatgpt-full","gemini-full"],STREAMING_END_SETTLE_MS=500,SUBMISSION_START_RETRY_MS=1e3,SUBMISSION_START_MAX_ATTEMPTS=4;class DOMConversation{static validateConfig(e){if(!Array.isArray(e))return REQUIRED_SELECTORS.slice();const t=new Set;for(const i of e)if(i&&i.type&&i.cssSelector){if(i.type===CONVERSATION_ID_URL_PATTERN)try{RegExp(i.cssSelector)}catch(n){continue}t.add(i.type)}return REQUIRED_SELECTORS.filter(e=>!t.has(e))}static supportedPreset(e){return-1!==SUPPORTED_PRESETS.indexOf(e)}constructor(e,t,n,i){this.selectors={},this.listeners=[],this.isActive=!0,this.observers=[],this.wasStreaming=!1,this.streamingEndTimer=null,this.submissionStartRetryTimer=null,this.requestNode=null,this.conversationIdRegex=null,this.customAgentIdRegex=null,this.messageIdRegex=null,this.lastReturnedMessageId=null,this.dom=e.dom,this._=e._,this.api=t,this.Sizzle=e.Sizzle,this.id=n,this._.isArray(i)||(this.api.log.error("cssSelectors must be an array, received: "+typeof i),i=[]),this._.each(i,e=>{e&&e.type&&(this.selectors[e.type]=e.cssSelector)}),this.conversationIdRegex=new RegExp(this.selectors[CONVERSATION_ID_URL_PATTERN]);t=this.selectors[CUSTOM_AGENT_ID_URL_PATTERN];if(t)try{this.customAgentIdRegex=new RegExp(t)}catch(r){this.api.log.error("bad customAgentIdUrlPattern "+t,{error:r})}e=this.selectors[MESSAGE_ID_PATTERN];if(e)try{this.messageIdRegex=new RegExp(e)}catch(r){this.api.log.error("bad messageIdPattern "+e,{error:r})}this.root=document.body,this.setupReactionListener(),this.setupStreamingObserver()}setupReactionListener(){(this.findSelector(THUMB_UP)||this.findSelector(THUMB_DOWN))&&(this.reactionClickHandler=this.handleReactionClick.bind(this),this.root.addEventListener("click",this.reactionClickHandler,!0))}handleReactionClick(e){var t,n,e=e.target;e&&1===e.nodeType&&(t=this.findSelector(THUMB_UP),n=this.findSelector(THUMB_DOWN),(e=this.dom(e).closest(t+", "+n)).length)&&(n=this.Sizzle.matchesSelector(e[0],t),t=(t=this.findSelector(REACTION_ACTIVE))&&this.Sizzle.matchesSelector(e[0],t)?"unreact":n?"positive":"negative",n=e.closest(this.findSelector(TURN_CONTAINER)).find(this.findSelector(ASSISTANT_MESSAGE)),this.emit("user_reaction",{agentId:this.id,messageId:this.getMessageId(n),content:t}))}setupStreamingObserver(){this.wasStreaming=0<this.select(STREAMING_ACTIVE).length,this.stopStreamingEndTimer();var e=new(getZoneSafeMethod(this._,"MutationObserver"))(this.handleMutation.bind(this)),t=this.findSelector(STREAMING_ACTIVE_ATTR);e.observe(this.root,{childList:!0,subtree:!0,attributes:!0,attributeFilter:t?[t]:undefined}),this.observers.push(e)}handleMutation(){var e=0<this.select(STREAMING_ACTIVE).length;e!==this.wasStreaming&&(e?this.streamingEndTimer?this.stopStreamingEndTimer():this.onSubmissionStart():this.startStreamingEndTimer(),this.wasStreaming=e)}onSubmissionStart(e=1){this.requestNode=this.findLastRequestNode(),this.requestNode?this.handleUserMessage(this.requestNode):e<SUBMISSION_START_MAX_ATTEMPTS&&this.startSubmissionStartRetryTimer(e+1)}onSubmissionEnd(){this.stopSubmissionStartRetryTimer();let e=this.requestNode;if(this.requestNode=null,!e){if(!(e=this.findLastRequestNode()))return;this.handleUserMessage(e)}var t=e[0];if(t){var n=this.select(ASSISTANT_MESSAGE);for(let e=0;e<n.length;e++){var i=n[e];t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING&&this.handleAssistantMessage(this.dom(i))}}}extractContent(e){return{content:e.text().trim()}}getMessageId(e){return e.attr(this.findSelector(MESSAGE_ID_ATTR))}handleUserMessage(e){this.emit("prompt",Object.assign({agentId:this.id,messageId:this.getMessageId(e)},this.extractContent(e)))}handleAssistantMessage(e){var t=this.findSelector(MODEL_USED_ATTR),t=t&&e.attr(t);this.emit("agent_response",Object.assign({agentId:this.id,messageId:this.getMessageId(e),agentModelsUsed:t?[t]:[]},this.extractContent(e)))}findLastRequestNode(){var e,t;return!this.getConversationId()||!(e=this._.last(this.select(USER_MESSAGE)))||(e=this.dom(e),!(t=this.getMessageId(e)))||this.messageIdRegex&&!this.messageIdRegex.test(t)||t===this.lastReturnedMessageId?null:(this.lastReturnedMessageId=t,e)}findSelector(e){return this.selectors[e]}select(e){return this.dom(this.findSelector(e),this.root)}getConversationId(){var e=location.href.match(this.conversationIdRegex);return e?e[1]!==undefined?e[1]:e[0]:null}getCustomAgentId(){var e;return this.customAgentIdRegex&&(e=location.href.match(this.customAgentIdRegex))?e[1]!==undefined?e[1]:e[0]:undefined}getCustomAgentName(){var e;return this.findSelector(CUSTOM_AGENT_NAME)&&(e=this.select(CUSTOM_AGENT_NAME)).length?e.text().trim():""}addCustomAgentInfo(e){var t=this.getCustomAgentId();t&&(e.customAgentId=t,t=this.getCustomAgentName())&&(e.customAgentName=t)}onSubmit(e){this.listeners.push(e)}emit(t,n){n.conversationId=this.getConversationId(),this.addCustomAgentInfo(n),this._.each(this.listeners,e=>e(t,n))}startStreamingEndTimer(){this.stopStreamingEndTimer(),this.streamingEndTimer=setTimeout$1(()=>{this.streamingEndTimer=null,this.onSubmissionEnd()},STREAMING_END_SETTLE_MS)}stopStreamingEndTimer(){this.streamingEndTimer&&(clearTimeout(this.streamingEndTimer),this.streamingEndTimer=null)}startSubmissionStartRetryTimer(e){this.stopSubmissionStartRetryTimer(),this.submissionStartRetryTimer=setTimeout$1(()=>{this.submissionStartRetryTimer=null,this.onSubmissionStart(e)},SUBMISSION_START_RETRY_MS)}stopSubmissionStartRetryTimer(){this.submissionStartRetryTimer&&(clearTimeout(this.submissionStartRetryTimer),this.submissionStartRetryTimer=null)}suspend(){this.isActive=!1}resume(){this.isActive=!0}teardown(){this._.each(this.observers,e=>e&&e.disconnect&&e.disconnect()),this.observers=[],this.reactionClickHandler&&this.root&&(this.root.removeEventListener("click",this.reactionClickHandler,!0),this.reactionClickHandler=null),this.stopStreamingEndTimer(),this.stopSubmissionStartRetryTimer(),this.listeners=[]}}function ConversationAnalytics(){let i,r,o,a,s=[],d=new Map;const u="aiAgents";return{name:"ConversationAnalytics",initialize:function(e,t){i=e,r=t,o=i._,a=r.log;e=r.ConfigReader;e.addOption(u,[e.sources.PENDO_CONFIG_SRC,e.sources.SNIPPET_SRC]),p(e.get(u)),null!=(t=r.Events.guidesLoaded)&&t.on(n)},teardown:function(){o.each(s,e=>e.teardown()),s=[],d.clear()},onConfigLoaded:p,observeConversation:h,sendConversationEvent:f,reEvaluatePageRules:n};function c(e,t="unknown"){let n=e;var i;return Array.isArray(e)?(i=o.filter(e,e=>e&&""!==e.trim()),n=o.map(i,e=>e.startsWith("//*/")?e.substring(1):e)):"string"==typeof e&&e.startsWith("//*/")&&(n=e.substring(1)),r.util.testPageRule(n,undefined,{logger:a,context:"agent",id:t})}function n(){o.each(s,e=>{t=e.id;var t=d.get(t);t&&c(t.pageRule,t.id)?e.resume():e.suspend()});const n=o.map(o.filter(s,e=>e.isActive),e=>e.id);var e=r.ConfigReader.get(u)||[];o.each(e,e=>{var t;l(e)&&(t=o.contains(n,e.id),c(e.pageRule,e.id))&&!t&&h(e)})}function l(e){return DOMConversation.supportedPreset(e.preset)}function p(e=[]){e&&o.isArray(e)&&0!==e.length&&(d.clear(),o.each(e,e=>{l(e)&&(d.set(e.id,e),c(e.pageRule,e.id))&&h(e)}))}function h(e){const{id:t,cssSelectors:n}=e;o.find(s,e=>e.id===t)||((e=DOMConversation.validateConfig(n)).length?a.error("aiAgent config missing required selectors",{agentId:t,missing:e}):((e=new DOMConversation(i,r,t,n)).onSubmit(f),s.push(e)))}function f(e,t){var n=o.find(s,e=>e.id===t.agentId);n&&!n.isActive||(t=o.extend({agentType:"conversation"},t),r.analytics.collectEvent(e,t,undefined,"agentic"))}}export{ConsoleCapture,ConversationAnalytics,Feedback,GuideMarkdown,NetworkCapture,PredictGuides,createReplayPlugin as Replay,TextCapture,VocPortal,loadAgent};
|
|
43
|
+
}`,r),m(),l=r))&&((p=l.getBoundingClientRect()).left<10?l.style.transform=`translateX(${10-p.left}px)`:l.style.transform="")}catch(h){g.log.error("Error while adjusting RC module",h)}var l,p}}function isFeedbackOn(e){return e.ConfigReader.get("pendoFeedback")}function isUnsupportedIE(e){return!e.sniffer.isMinimumIEVersion(10)}function Feedback(){var a,s,i="feedback_notification_count",d="",u="",c="",r="",o=!1,l="",p=!1,h="feedback_ping_sent",f={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"};return{name:"Feedback",initialize:function(e,t){s=t;var n={ping:w,init:L,initialized:z,loginAndRedirect:_,openFeedback:A,initializeFeedbackOnce:I,isFeedbackLoaded:B,convertPendoToFeedbackOptions:P,isUnsupportedIE:(a=e)._.partial(isUnsupportedIE,t),removeFeedbackWidget:D};return e.feedback=n,e.getFeedbackSettings=j,t.Events.identify.on(m),t.Events.metadata.on(m),t.Events.ready.on(v),t.agentStorage.registry.addLocal(i,{localStorageOnly:!0}),t.agentStorage.registry.addLocal(h,{duration:36e5,localStorageOnly:!0}),{validate:g}},teardown:function(){D(),s.Events.identify.off(m),s.Events.metadata.off(m),s.Events.ready.off(v),delete a.feedback,delete a.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();p?w(P(e)):!isFeedbackOn(s)||s.ConfigReader.get("disableFeedbackAutoInit")||s.ConfigReader.get("disableFeedback",!1)||a._.isEmpty(e)||L(e,s.ConfigReader.get("feedbackSettings"))["catch"](a._.noop)}function m(e){e=a._.get(e,"data.0.visitor_id")||a._.get(e,"data.0.options.visitor.id");(a.isAnonymousVisitor(e)?D:t)()}function v(){t()}function y(){return c+"/html/widget/notLoaded.html"}function n(e){return e=e||P(M()),s.agentStorage.read(h)===b(e)}function b(e){return JSON.stringify(e)}function w(e){if(!n(e)){s.agentStorage.write(h,b(e));e=S(e);if(e.data&&"{}"!==e.data&&"null"!==e.data)return a.ajax.postJSON(d+"/widget/pendo_ping",e).then(function(e){e=e.data.notifications;s.agentStorage.write(i,e),E()})["catch"](function(){s.agentStorage.clear(h)})}return s.q.resolve()}function S(e){return e=e||P(M()),{data:JSON.stringify(e)}}function E(){var e,t=a.dom("#feedback-trigger-notification");0!==t.length&&(e=s.agentStorage.read(i)||0,0<parseInt(e,10)?a._.each(t,function(e){a.dom(e).css({visibility:"visible"})}):a._.each(t,function(e){a.dom(e).css({visibility:"hidden"})}))}function I(){return p&&n()?s.q.resolve():L(M(),s.ConfigReader.get("feedbackSettings"))}function _(e){return I().then(function(){if(a._.isUndefined(e)&&(e={}),"A"===a._.get(e,"anchor.nodeName","").toUpperCase())return t=window.open(y(),Math.random().toString(36).substring(7)),x().then(function(e){t.location=e}),!1;var t;x().then(function(e){window.location.href=e})},function(){})}function C(e){var t=document.createElement("a");return t.href=e,t.host}function x(){var e=S();if(e.data&&"{}"!==e.data&&"null"!==e.data)return a.ajax.postJSON(d+"/widget/token",e).then(function(e){var t;return t=e.data.login_url,r=C(t),e.data.login_url})}function T(){return document.getElementById(f.feedbackWidget)}function R(){return document.getElementById(f.feedbackIframe)}function k(){var e=R();return e||(G(),e=R()),e}function A(e){var t,n;H()&&(e&&e.preventDefault&&e.preventDefault(),(t=k()).src&&t.src!==y()||x().then(function(e){t.src=e+"&inWidget=true"}),(e=a.dom("#".concat(f.feedbackWidget)))&&((n=a.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())),a.dom.addClass(T(),"visible"),N("user.widget.opened"))}function O(){var e,t;e=document.getElementById(f.feedbackWidget),t=document.getElementById(f.feedbackOverlay),e&&t&&t.parentNode.removeChild(t),a.dom.removeClass(T(),"visible"),N("user.widget.closed")}function N(e){var t=S();t.event=e,a.ajax.postJSON(d+"/analytics",t)}function F(){window.addEventListener("message",function(e){var t=e.origin||e.originalEvent.origin;if(t=t,r?C(t)===r:C(t)===C(c)){var t=e.data.message,n=e.data.data;switch(t){case"close-receptive-widget":O();break;case"open-receptive":_();break;case"update-receptive-notification-count":s.agentStorage.write(i,n.count),E();break;case"handle-logout":k().src=y(),O();break;case"loaded-receptive-widget":o=!0}}},!1)}function U(e){var t,n,i=a._.extend(e,{triggerColor:"#"+e.triggerColor,triggerPosition:e.triggerPosition.toLowerCase()}),r=("undefined"!=typeof Turbolinks&&document.addEventListener("turbolinks:before-visit",function(e){var t=document.getElementById(f.feedbackIframe);t&&(t.src=y())}),function(e){e=e.triggerPosition.split("_");return{horizontalPosition:e[1],verticalPosition:e[0]}}(i));s.util.addInlineStyles(f.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,s.util.addInlineStyles("pendo-feedback-trigger-styles","\n #feedback-trigger button:hover {\n box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;\n outline: none !important;\n background: #3e566f !important;\n }\n #feedback-trigger button:focus {\n box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;\n outline: none !important;\n background: #3e566f !important;\n }\n "),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=a._.extend({position:"fixed",height:"43px",opacity:"1 !important","z-index":"9001"},t,e),e=a.dom(document.createElement("div"));return e.attr("id",f.feedbackTrigger),e.css(t),e.attr("data-turbolinks-permanent",""),e}(n),i=function(){var e=a.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){t="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":t,"font-size":"15px",color:"#fff","box-shadow":"0 -5px 9px rgba(0,0,0,.16)",cursor:"pointer","text-align":"left"},n=a.dom(document.createElement("button"));return n.attr("id",f.feedbackTriggerButton),n.css(t),n.text(e.triggerText),n}(t,n),e.append(i),e.append(t),e.appendTo(a.dom.getBody()),s.attachEvent(t[0],"click",A)),G(r.horizontalPosition)}function G(e){t="\n .buttonIs-".concat(t="left"===(t=e)?"left":"right",".visible {\n ").concat(t,": 0 !important;\n width: 470px !important;\n animation-direction: alternate-reverse !important;\n animation: pendoFeedbackSlideFrom-").concat(t," 0.5s 0s 1 alternate both !important;\n -webkit-animation: pendoFeedbackSlideFrom-").concat(t," 0.5s 0s 1 alternate both !important;\n z-index: 9002 !important;\n }\n "),s.util.addInlineStyles(f.feedbackFrameStyles,t),t=e,(e=a.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",f.feedbackWidget),e.attr("data-turbolinks-permanent","true"),e.addClass("buttonIs-".concat(t));var t=e;t.append(((e=a.dom(document.createElement("iframe"))).css({width:"100%",height:"99.6%",border:"0 none"}),e.attr("id",f.feedbackIframe),e.attr("title","Feedback"),e.attr("src",y()),e)),t.appendTo(a.dom.getBody()),F()}function B(){return o}function M(){var e=s.ConfigReader.getLocalConfig();return a._.isObject(e)||(e={}),a._.isObject(e.visitor)||(e.visitor={}),a._.isObject(e.account)||(e.account={}),e}function H(e){e=e||M();if(!isUnsupportedIE(a)&&u&&d&&c&&l)if(a._.get(e.visitor,"id")){if(!a.isAnonymousVisitor(e.visitor.id)){if(a._.get(e.account,"id"))return 1;a.log("The current visitor is not associated with an account.")}}else a.log("Not valid visitor id")}function L(e,t){if(u=t.vendorId,d=t.apiUrl,c=t.siteUrl,l=t.productId,p)return s.q.reject();if(!H(e))return s.q.reject();var n,i,e=P(e);try{n=a.url.get(),i="fdbkDst";var r=null!=(i=new RegExp("[?&]"+i+"=([^&#]*)").exec(n))&&decodeURI(i[1])||null;if(r&&r.startsWith("case"))return p=!0,void x().then(function(e){window.location.href=e+"&fdbkDst="+r})}catch(o){p=!1,a.log(o,"unhandled error while checking feedback destination")}try{return p=!0,"WIDGET"===t.type&&U(t),E(),w(e)}catch(o){return p=!1,a.log(o,"unhandled error while initializing feedback"),s.q.reject(o)}}function P(e){var t,n,i=s.agent.getJwtInfoCopy();return a._.isEmpty(i)?((t={}).user=a._.pick(e.visitor,"id","full_name","firstName","lastName","email","tags","custom_allowed_products"),a._.extend(t.user,{allowed_products:[{id:l}]}),t.account=a._.pick(e.account,"id","name","monthly_value","is_paying","tags"),a._.extend(t,{vendor:{id:u}}),a._.isUndefined(t.account.is_paying)&&(t.account.is_paying=!0),null!=t.user.email&&""!=t.user.email||(t.user.email=(e=t,a._.isUndefined(e.user)||a._.isUndefined(e.user.id)?"noemail+"+a.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,a._.isUndefined(e.user.firstName)&&a._.isUndefined(e.user.lastName)?a._.isUndefined(e.user)||a._.isUndefined(e.user.id)?"No Name Provided"+a.randomString(32):"No Name Provided"+e.user.id:(n=[],a._.isUndefined(e.user.firstName)||n.push(e.user.firstName),a._.isUndefined(e.user.lastName)||n.push(e.user.lastName),n.join(" ")))),t):(e=JSON.parse(JSON.stringify(i)),a._.extend(e,{vendor:{id:u}}),a._.extend(e,{allowed_products:[{id:l}]}),e)}function z(){return p}function D(){a._.each(a._.values(f),function(e){a.dom("#"+e).remove()}),l=r=c=u=d="",p=o=!1,s.agentStorage.clear(i),s.agentStorage.clear(h)}function j(){return JSON.parse(JSON.stringify(s.ConfigReader.get("feedbackSettings",{})))}}function URLPolyfillFactory(n){return function URL(e){var t=n.createElement("a");if(t.href=e,":"===t.protocol)throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");if(t.href!==e&&t.href!==encodeURI(e))throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return t.toString||(t.toString=function(){return t.href}),null==t.origin&&(t.origin=t.protocol+"//"+t.hostname,"80"!==t.port)&&"443"!==t.port&&(t.origin+=":"+t.port),t}}var URL$1=function(e){var t=window.URL;return"function"==typeof t&&/native/.test(t)?t:e(document)}(URLPolyfillFactory);function record(){var e,d=Object.defineProperty,s=(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},u=Object.defineProperty,c=(e,t,n)=>{return n=n,(t="symbol"!=typeof t?t+"":t)in(e=e)?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},D=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(D||{});const h={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot"],MutationObserver:[],EventTarget:[]},g={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:["querySelector","querySelectorAll"],MutationObserver:["constructor"],EventTarget:["addEventListener","removeEventListener"]},m={};function v(e){if(m[e])return m[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 m[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?m[e]=o:n):t.prototype}catch{return n}}const y={};function t(e,t,n){var i=e+"."+String(n);return y[i]?y[i].call(t):(e=v(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(y[i]=e).call(t):t[n])}const b={};function r(e,t,n){var i=e+"."+String(n);if(b[i])return b[i].bind(t);var r=null==(o=null==(r=null==globalThis?void 0:globalThis.Zone)?void 0:r.__symbol__)?void 0:o.call(r,String(n));if(r){var o=null==(o=globalThis[e])?void 0:o.prototype,r=globalThis[r]??(null==o?void 0:o[r]);if("function"==typeof r)return(b[i]=r).bind(t)}o=v(e)[n];return"function"!=typeof o?t[n]:(b[i]=o).bind(t)}const F={childNodes:function(e){return t("Node",e,"childNodes")},parentNode:function(e){return t("Node",e,"parentNode")},parentElement:function(e){return t("Node",e,"parentElement")},textContent:function(e){return t("Node",e,"textContent")},contains:function(e,t){return r("Node",e,"contains")(t)},getRootNode:function(e){return r("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?t("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?t("Element",e,"shadowRoot"):null},querySelector:function(e,t){return r("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return r("Element",e,"querySelectorAll")(t)},addEventListener:function(e,t,n,i){r("EventTarget",e,"addEventListener")(t,n,i)},removeEventListener:function(e,t,n,i){r("EventTarget",e,"removeEventListener")(t,n,i)},mutationObserver:function(){return v("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 K(e){return e.nodeType===e.ELEMENT_NODE}function U(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 G(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}const B="undefined"!=typeof window?function(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}("setTimeout").bind(window):global.setTimeout;function O(e){try{var n=e.rules||e.cssRules;if(!n)return null;let t=e.href;!t&&e.ownerNode&&(t=e.ownerNode.baseURI);var i=Array.from(n,e=>w(e,t)).join("");return r=(r=i).includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")?r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"):r}catch(t){return null}var r}function w(t,n){var i,r;if("styleSheet"in t){let e;try{e=O(t.styleSheet)||((r=(i=t).cssText).split('"').length<3?r:(r=["@import",`url(${JSON.stringify(i.href)})`],""===i.layerName?r.push("layer"):i.layerName&&r.push(`layer(${i.layerName})`),i.supportsText&&r.push(`supports(${i.supportsText})`),i.media.length&&r.push(i.media.mediaText),r.join(" ")+";"))}catch(o){e=t.cssText}return null!=(i=null==t?void 0:t.styleSheet)&&i.href?f(e,t.styleSheet.href):e}{let e=t.cssText;return"selectorText"in t&&(e=function(t){var e=t.cssText.includes("grid-template:"),n=""!==t.style.getPropertyValue("grid-template-areas"),i=t.cssText.includes("grid-template-areas:");if(e&&n&&!i){var r=[];for(let e=0;e<t.style.length;e++){var o=t.style[e],a=t.style.getPropertyValue(o);r.push(o+": "+a)}return`${t.selectorText} { ${r.join("; ")}; }`}return t.cssText}(t),t.selectorText.includes(":"))&&(e=e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n?f(e,n):e}}class le{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 $({element:e,maskInputOptions:t,tagName:n,type:i,value:r,maskInputFn:o,needsMask:a}){let s=r||"";r=i&&k(i);return s=t[n.toLowerCase()]||r&&t[r]||a?o?o(s,e):"*".repeat(s.length):s}function k(e){return e.toLowerCase()}const N="__rrweb_original__";function X(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?k(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 S=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,E=/^(?:[a-z+]+:)?\/\//i,I=/^www\..*/i,_=/^(data:)([^,]*),(.*)/i;function f(e,d){return(e||"").replace(S,(e,t,n,i,r,o)=>{n=n||r||o,r=t||i||"";if(!n)return e;if(E.test(n)||I.test(n))return`url(${r}${n}${r})`;if(_.test(n))return`url(${r}${n}${r})`;if("/"===n[0])return`url(${r}${function(e){let t="";return t=(t=-1<e.indexOf("//")?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}(d)+n}${r})`;var a=d.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 C(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function M(e,t){return function(a,e,s=!1){var d=Array.from(e.childNodes),u=[];let c=0;if(1<d.length&&a&&"string"==typeof a){let o=C(a,s);var l=o.length/a.length;for(let r=1;r<d.length;r++)if(d[r].textContent&&"string"==typeof d[r].textContent){var p,h=C(d[r].textContent,s);let i=3;for(;i<h.length&&(h[i].match(/[a-zA-Z0-9]/)||-1!==h.indexOf(h.substring(0,i),1));i++);for(;i<h.length;i++){let e=h.substring(0,i),t=o.split(e),n=-1;if(2===t.length)n=t[0].length;else if(2<t.length&&""===t[0]&&""!==d[r-1].textContent)n=o.indexOf(e,1);else if(1===t.length){if(e=e.substring(0,e.length-1),(t=o.split(e)).length<=1)return u.push(a),u;i=101}else i===h.length-1&&(n=o.indexOf(e));if(-1!==(n=2<=t.length&&100<i&&((p=d[r-1].textContent)&&"string"==typeof p&&(p=C(p).length,n=o.indexOf(e,p)),-1===n)?t[0].length:n)){let e=Math.floor(n/l);for(;0<e&&e<a.length;){if((c+=1)>50*d.length)return u.push(a),u;var f=C(a.substring(0,e),s);if(f.length===n){u.push(a.substring(0,e)),a=a.substring(e),o=o.substring(n);break}f.length<n?e+=Math.max(1,Math.floor((n-f.length)/l)):e-=Math.max(1,Math.floor((f.length-n)*l))}break}}}}return u.push(a),u}(e,t).join("/* rr_split */")}let Z=1;const Q=new RegExp("[^a-z0-9-_:]"),H=-2;function x(){return Z++}let A,ee;const T=/^[^ \t\n\r\u000c]+/,R=/^[, \t\n\r\u000c]+/;function pe(i,r){if(""===r.trim())return r;let o=0;function e(e){var e=e.exec(r.substring(o));return e?(e=e[0],o+=e.length,e):""}for(var a=[];e(R),!(o>=r.length);){let n=e(T);if(","===n.slice(-1))n=fe(i,n.substring(0,n.length-1)),a.push(n);else{let e="",t=(n=fe(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 he=new WeakMap;function fe(e,t){return t&&""!==t.trim()?ge(e,t):t}function ge(e,t){let n=he.get(e);if(n||(n=e.createElement("a"),he.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function me(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?pe(e,i):"style"===n?f(i,ge(e)):"object"===t&&"data"===n?fe(e,i):i:fe(e,i))}function ve(e,t){return("video"===e||"audio"===e)&&"autoplay"===t}function ye(t,n,e){try{if("string"==typeof n){if(t.classList.contains(n))return!0}else if(n)for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}if(e)return t.matches(e)}catch(r){}return!1}function 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 z(e,t,n,i){let r;if(K(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 we(e,t){var n,{needsMask:i,maskTextFn:r,maskInputOptions:o,maskInputFn:a,rootId:s,cssCaptured:d}=t,u=e.parentNode&&e.parentNode.tagName;let c="";var l="STYLE"===u||void 0,p="SCRIPT"===u||void 0,u="TEXTAREA"===u||void 0;if(l&&c){try{e.nextSibling||e.previousSibling||null!=(n=e.parentNode.sheet)&&n.cssRules&&(c=O(e.parentNode.sheet))}catch(h){console.warn("Cannot get CSS styles from text's parentNode. Error: "+h,e)}c=f(c,ge(t.doc))}return p?c="SCRIPT_PLACEHOLDER":d||(c=F.textContent(e),l&&(c=c&&f(c,ge(t.doc)))),!l&&!p&&c&&i&&(c=r?r(c,F.parentElement(e)):c.replace(/[\S]/g,"*")),u&&c&&o.textarea&&(c=a?a(c,e.parentNode):c.replace(/[\S]/g,"*")),{type:D.Text,textContent:c||"",rootId:s}}function Se(t,e){const{doc:n,blockClass:i,blockSelector:r,hideSelector:o,inlineStylesheet:a,maskInputOptions:s={},maskInputFn:d,dataURLOptions:u={},inlineImages:c,recordCanvas:l,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:f,needsMask:g}=e;var e=ye(t,i,r),m=!(!e||!o)&&ye(t,"",o),v=(E=t)instanceof HTMLFormElement?"form":(E=k(E.tagName),Q.test(E)?"div":E);let y={};var b,w=t.attributes.length;for(let e=0;e<w;e++){var S=t.attributes[e];ve(v,S.name,S.value)||(y[S.name]=me(n,v,k(S.name),S.value))}if("link"===v&&a){var E=Array.from(n.styleSheets).find(e=>e.href===t.href);let e=null;(e=E?O(E):e)&&(delete y.rel,delete y.href,y._cssText=e)}if("style"===v&&t.sheet){let e=O(t.sheet);e&&(1<t.childNodes.length&&(e=M(e,t)),y._cssText=e)}if("input"!==v&&"textarea"!==v&&"select"!==v||(E=t.value,b=t.checked,"radio"!==y.type&&"checkbox"!==y.type&&"submit"!==y.type&&"button"!==y.type&&E?y.value=$({element:t,type:X(t),tagName:v,value:E,maskInputOptions:s,maskInputFn:d,needsMask:g}):b&&(y.checked=b)),"option"===v&&(t.selected&&!s.select?y.selected=!0:delete y.selected),"dialog"===v&&t.open&&(y.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),"canvas"===v&&l&&("2d"===t.__context?function(n){var i=n.getContext("2d");if(i)for(let t=0;t<n.width;t+=50)for(let e=0;e<n.height;e+=50){var r=i.getImageData,r=N in r?r[N]:r;if(new Uint32Array(r.call(i,t,e,Math.min(50,n.width-t),Math.min(50,n.height-e)).data.buffer).some(e=>0!==e))return}return 1}(t)||(y.rr_dataURL=t.toDataURL(u.type,u.quality)):"__context"in t||(E=t.toDataURL(u.type,u.quality),(b=n.createElement("canvas")).width=t.width,b.height=t.height,E!==b.toDataURL(u.type,u.quality)&&(y.rr_dataURL=E))),"img"===v&&c){A||(A=n.createElement("canvas"),ee=A.getContext("2d"));const C=t,x=C.currentSrc||C.getAttribute("src")||"<unknown-src>",T=C.crossOrigin,R=()=>{C.removeEventListener("load",R);try{A.width=C.naturalWidth,A.height=C.naturalHeight,ee.drawImage(C,0,0),y.rr_dataURL=A.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==C.crossOrigin)return C.crossOrigin="anonymous",void(C.complete&&0!==C.naturalWidth?R():C.addEventListener("load",R));console.warn(`Cannot inline img src=${x}! Error: `+e)}"anonymous"===C.crossOrigin&&(T?y.crossOrigin=T:C.removeAttribute("crossorigin"))};C.complete&&0!==C.naturalWidth?R():C.addEventListener("load",R)}"audio"!==v&&"video"!==v||((b=y).rr_mediaState=t.paused?"paused":"played",b.rr_mediaCurrentTime=t.currentTime,b.rr_mediaPlaybackRate=t.playbackRate,b.rr_mediaMuted=t.muted,b.rr_mediaLoop=t.loop,b.rr_mediaVolume=t.volume),h||(t.scrollLeft&&(y.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(y.rr_scrollTop=t.scrollTop)),m?y={"class":y["class"],rr_display:"none"}:e&&({width:E,height:b}=t.getBoundingClientRect(),y={"class":y["class"],rr_width:E+"px",rr_height:b+"px"}),"iframe"!==v||p(y.src)||(t.contentDocument||(y.rr_src=y.src),delete y.src);let I;try{customElements.get(v)&&(I=!0)}catch(_){}return{type:D.Element,tagName:v,attributes:y,childNodes:[],isSVG:(m=t,Boolean("svg"===m.tagName||m.ownerSVGElement)||void 0),needBlock:e,rootId:f,isCustom:I}}function j(e){return null==e?"":e.toLowerCase()}function te(t,e){const{doc:n,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,maskTextClass:s,maskTextSelector:d,skipChild:u=!1,inlineStylesheet:c=!0,maskInputOptions:l={},maskTextFn:p,maskInputFn:h,slimDOMOptions:f,dataURLOptions:g={},inlineImages:m=!1,recordCanvas:v=!1,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:E=5e3,keepIframeSrcFn:I=()=>!1,newlyAddedElement:_=!1,cssCaptured:C=!1}=e;let x=e["needsMask"],{preserveWhiteSpace:T=!0}=e;x||(e=void 0===x,x=z(t,s,d,e));e=function(e,t){var n,{doc:i,mirror:t,blockClass:r,blockSelector:o,hideSelector:a,needsMask:s,inlineStylesheet:d,maskInputOptions:u={},maskTextFn:c,maskInputFn:l,dataURLOptions:p={},inlineImages:h,recordCanvas:f,keepIframeSrcFn:g,newlyAddedElement:m=!1,cssCaptured:v=!1}=t,y=(n=i,!(t=t).hasNode(n)||1===(n=t.getId(n))?void 0:n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:D.Document,childNodes:[],compatMode:e.compatMode}:{type:D.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:D.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return Se(e,{doc:i,blockClass:r,blockSelector:o,hideSelector:a,inlineStylesheet:d,maskInputOptions:u,maskInputFn:l,dataURLOptions:p,inlineImages:h,recordCanvas:f,keepIframeSrcFn:g,newlyAddedElement:m,rootId:y,needsMask:s});case e.TEXT_NODE:return we(e,{doc:i,needsMask:s,maskTextFn:c,maskInputOptions:u,maskInputFn:l,rootId:y,cssCaptured:v});case e.CDATA_SECTION_NODE:return{type:D.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:D.Comment,textContent:F.textContent(e)||"",rootId:y};default:return!1}}(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,needsMask:x,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:h,dataURLOptions:g,inlineImages:m,recordCanvas:v,keepIframeSrcFn:I,newlyAddedElement:_,cssCaptured:C});if(!e)return console.warn(t,"not serialized"),null;let R;R=i.hasNode(t)?i.getId(t):function(e,t){if(t.comment&&e.type===D.Comment)return 1;if(e.type===D.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===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,f)||!T&&e.type===D.Text&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?H:Z++;var k=Object.assign(e,{id:R});if(i.add(t,k),R===H)return null;y&&y(t);let A=!u;if(k.type===D.Element&&(A=A&&!k.needBlock,delete k.needBlock,e=F.shadowRoot(t))&&G(e)&&(k.isShadowHost=!0),(k.type===D.Document||k.type===D.Element)&&A){f.headWhitespace&&k.type===D.Element&&"head"===k.tagName&&(T=!1);var O={doc:n,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,needsMask:x,maskTextClass:s,maskTextSelector:d,skipChild:u,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:h,slimDOMOptions:f,dataURLOptions:g,inlineImages:m,recordCanvas:v,preserveWhiteSpace:T,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:I,cssCaptured:!1};if(k.type!==D.Element||"textarea"!==k.tagName||void 0===k.attributes.value){k.type===D.Element&&void 0!==k.attributes._cssText&&"string"==typeof k.attributes._cssText&&(O.cssCaptured=!0);for(const L of Array.from(F.childNodes(t))){var N=te(L,O);N&&k.childNodes.push(N)}}let e=null;if(K(t)&&(e=F.shadowRoot(t)))for(const P of Array.from(F.childNodes(e))){var M=te(P,O);M&&(G(e)&&(M.isShadow=!0),k.childNodes.push(M))}}e=F.parentNode(t);return e&&U(e)&&G(e)&&(k.isShadow=!0),k.type===D.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=B(()=>{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 B(i,0),n.addEventListener("load",i);n.addEventListener("load",i)}}}(t,()=>{var e=t.contentDocument;e&&b&&(e=te(e,{doc:e,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,needsMask:x,maskTextClass:s,maskTextSelector:d,skipChild:!1,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:h,slimDOMOptions:f,dataURLOptions:g,inlineImages:m,recordCanvas:v,preserveWhiteSpace:T,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:I}))&&b(t,e)},w),k.type===D.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=B(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}}(t,()=>{var e;S&&(e=te(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,hideSelector:a,needsMask:x,maskTextClass:s,maskTextSelector:d,skipChild:!1,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:h,slimDOMOptions:f,dataURLOptions:g,inlineImages:m,recordCanvas:v,preserveWhiteSpace:T,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:I}))&&S(t,e)},E),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 Ee={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot"],MutationObserver:[],EventTarget:[]},Ie={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:["querySelector","querySelectorAll"],MutationObserver:["constructor"],EventTarget:["addEventListener","removeEventListener"]},_e={};function Ce(e){if(_e[e])return _e[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 Ee?Ee[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 Ie?Ie[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 _e[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?_e[e]=o:n):t.prototype}catch{return n}}const xe={};function n(e,t,n){var i=e+"."+String(n);return xe[i]?xe[i].call(t):(e=Ce(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(xe[i]=e).call(t):t[n])}const Te={};function o(e,t,n){var i=e+"."+String(n);if(Te[i])return Te[i].bind(t);var r=null==(o=null==(r=null==globalThis?void 0:globalThis.Zone)?void 0:r.__symbol__)?void 0:o.call(r,String(n));if(r){var o=null==(o=globalThis[e])?void 0:o.prototype,r=globalThis[r]??(null==o?void 0:o[r]);if("function"==typeof r)return(Te[i]=r).bind(t)}o=Ce(e)[n];return"function"!=typeof o?t[n]:(Te[i]=o).bind(t)}function Re(){return Ce("MutationObserver").constructor}function ke(){var e,t,n;let i=window.Proxy;try{"function"==typeof window.Proxy&&null!=(e=window.Proxy)&&e.toString().includes("[native code]")||((n=document.createElement("iframe")).style.display="none",document.documentElement.appendChild(n),i=(null==(t=n.contentWindow)?void 0:t.Proxy)||window.Proxy,document.documentElement.removeChild(n))}catch(r){console.debug("Unable to get untainted Proxy from iframe",r)}return i}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 ne={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 o("Node",e,"contains")(t)},getRootNode:function(e){return o("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 o("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return o("Element",e,"querySelectorAll")(t)},addEventListener:function(e,t,n,i){o("EventTarget",e,"addEventListener")(t,n,i)},removeEventListener:function(e,t,n,i){o("EventTarget",e,"removeEventListener")(t,n,i)},mutationObserver:Re,patch:L};function ie(e,t,n=document){const i={capture:!0,passive:!0};return ne.addEventListener(n,e,t,i),()=>ne.removeEventListener(n,e,t,i)}const i="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";var Ae={map:{},getId(){return console.error(i),-1},getNode(){return console.error(i),null},removeNodeFromMap(){console.error(i)},has(){return console.error(i),!1},reset(){console.error(i)}};function P(r,o,a={}){let s=null,d=0;return function(...e){var t=Date.now(),n=(d||!1!==a.leading||(d=t),o-(t-d));const i=this;n<=0||o<n?(s&&(clearTimeout(s),s=null),d=t,r.apply(i,e)):s||!1===a.trailing||(s=B(()=>{d=!1===a.leading?0:Date.now(),s=null,r.apply(i,e)},n))}}function Oe(e,t,n,i,r=window){const o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(e){B(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>Oe(e,t,o||{},!0)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Ae=new(ke())(Ae,{get(e,t,n){return"map"===t&&console.error(i),Reflect.get(e,t,n)}}));let Ne=Date.now;function Me(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=ne.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=ne.parentElement(n.body))?void 0:t.scrollTop)||(null==(e=null==n?void 0:n.body)?void 0:e.scrollTop)||0}}function Le(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Pe(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function De(e){return e?e.nodeType===e.ELEMENT_NODE?e:ne.parentElement(e):null}function q(e,t,n,i){if(e){e=De(e);if(e){try{if("string"==typeof t){if(e.classList.contains(t))return!0;if(i&&null!==e.closest("."+t))return!0}else if(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 Fe(e,t){return-1!==t.getId(e)}function Ue(e,t,n){return"TITLE"===e.tagName&&n.headTitleMutations||t.getId(e)===H}function Ge(e,t){var n;return!U(e)&&(n=t.getId(e),!t.has(n)||(!(n=ne.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||Ge(n,t)))}function Be(e){return Boolean(e.changedTouches)}function He(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 je(e){return e&&(!1&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(ne.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Ne=()=>(new Date).getTime());class qe{constructor(){s(this,"id",1),s(this,"styleIDMap",new WeakMap),s(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function We(e){var t;let n=null;return n="getRootNode"in e&&(null==(t=ne.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ne.host(ne.getRootNode(e))?ne.host(ne.getRootNode(e)):n}function Ve(e){var t=e.ownerDocument;return!!t&&(e=function(e){let t=e;for(var n;n=We(t);)t=n;return t}(e),ne.contains(t,e))}function Je(e){var t=e.ownerDocument;return t&&(ne.contains(t,e)||Ve(e))}var re=(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))({}),oe=(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))(oe||{}),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||{}),Ke=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))({}),W=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(W||{}),$e=(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 Xe(e){return"__ln"in e}class Ye{constructor(){s(this,"length",0),s(this,"head",null),s(this,"tail",null),s(this,"reordered",!1)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let e=0;e<t;e++)n=(null==n?void 0:n.next)||null;return n}addNode(e){var t,n={value:e,previous:null,next:null};e.__ln=n,e.previousSibling&&Xe(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&&Xe(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||!Xe(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 Ze=(e,t)=>e+"@"+t;class Qe{constructor(){s(this,"frozen",!1),s(this,"locked",!1),s(this,"texts",[]),s(this,"attributes",[]),s(this,"attributeMap",new WeakMap),s(this,"removes",[]),s(this,"mapRemoves",[]),s(this,"movedMap",{}),s(this,"addedSet",new Set),s(this,"movedSet",new Set),s(this,"droppedSet",new Set),s(this,"removesSubTreeCache",new Set),s(this,"mutationCb"),s(this,"blockClass"),s(this,"blockSelector"),s(this,"hideSelector"),s(this,"maskTextClass"),s(this,"maskTextSelector"),s(this,"inlineStylesheet"),s(this,"maskInputOptions"),s(this,"maskTextFn"),s(this,"maskInputFn"),s(this,"keepIframeSrcFn"),s(this,"recordCanvas"),s(this,"inlineImages"),s(this,"slimDOMOptions"),s(this,"dataURLOptions"),s(this,"doc"),s(this,"mirror"),s(this,"iframeManager"),s(this,"stylesheetManager"),s(this,"shadowDomManager"),s(this,"canvasManager"),s(this,"processedNodeManager"),s(this,"unattachedDoc"),s(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),s(this,"emit",()=>{if(!this.frozen&&!this.locked){const d=[],u=new Set,c=new Ye,l=e=>{let t=e,n=H;for(;n===H;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n};for(var n,i,r=t=>{var n=ne.parentNode(t);if(n&&Je(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=U(n)?this.mirror.getId(We(t)):this.mirror.getId(n),n=l(t);if(-1===i||-1===n)return c.addNode(t);var r=te(t,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,hideSelector:this.hideSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{He(e,this.mirror)&&this.iframeManager.addIframe(e),ze(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),je(t)&&this.shadowDomManager.addShadowRoot(ne.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&&(d.push({parentId:i,nextId:n,node:r}),u.add(r.id))}};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const p of this.movedSet){var t=ne.parentNode(p);nt(this.removesSubTreeCache,p,this.mirror)&&!this.movedSet.has(t)&&!this.addedSet.has(t)||r(p)}for(const h of this.addedSet)!it(this.droppedSet,h)&&!nt(this.removesSubTreeCache,h,this.mirror)||it(this.movedSet,h)?r(h):this.droppedSet.add(h);let e=null;for(;c.length;){let t=null;if(!(t=e&&(n=this.mirror.getId(ne.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(ne.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=ne.parentNode(a);if(a&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){a=ne.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=ne.parentNode(t);return n&&"TEXTAREA"===n.tagName&&this.genTextAreaValueMutation(n),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!u.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=>!u.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:d};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(s))}}),s(this,"bufferBelongsToIframe",e=>this.doc===e.contentDocument),s(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));var n=Array.from(ne.childNodes(e),e=>ne.textContent(e)||"").join(""),i=z(e,this.maskTextClass,this.maskTextSelector,!0);t.attributes.value=$({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:X(e),value:n,maskInputFn:this.maskInputFn,needsMask:i})}),s(this,"processMutation",i=>{if(!Ue(i.target,this.mirror,this.slimDOMOptions))switch(i.type){case"characterData":var r=ne.textContent(i.target);q(i.target,this.blockClass,this.blockSelector,!1)||r===i.oldValue||this.texts.push({value:z(i.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,De(i.target)):r.replace(/[\S]/g,"*"):r,node:i.target});break;case"attributes":{var o,a=i.target;let e=i.attributeName,t=i.target.getAttribute(e);if("value"===e&&(r=X(a),o=z(i.target,this.maskTextClass,this.maskTextSelector,!0),t=$({element:a,maskInputOptions:this.maskInputOptions,tagName:a.tagName,type:r,value:t,maskInputFn:this.maskInputFn,needsMask:o})),q(i.target,this.blockClass,this.blockSelector,!1)||t===i.oldValue)return;let n=this.attributeMap.get(i.target);if("IFRAME"===a.tagName&&"src"===e&&!this.keepIframeSrcFn(t)){if(a.contentDocument)return;e="rr_src"}if(n||(n={node:i.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(i.target,n)),"type"===e&&"INPUT"===a.tagName&&"password"===(i.oldValue||"").toLowerCase()&&a.setAttribute("data-rr-is-password","true"),!ve(a.tagName,e))if(n.attributes[e]=me(this.doc,k(a.tagName),k(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 d=a.style.getPropertyValue(l),u=a.style.getPropertyPriority(l);d!==s.style.getPropertyValue(l)||u!==s.style.getPropertyPriority(l)?n.styleDiff[l]=""===u?d:[d,u]:n._unchangedStyles[l]=[d,u]}for(const p of Array.from(s.style))""===a.style.getPropertyValue(p)&&(n.styleDiff[p]=!1)}else"open"===e&&"DIALOG"===a.tagName&&(a.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal");break}case"childList":q(i.target,this.blockClass,this.blockSelector,!0)||("TEXTAREA"!==i.target.tagName?(i.addedNodes.forEach(e=>this.genAdds(e,i.target)),i.removedNodes.forEach(e=>{var t=this.mirror.getId(e),n=U(i.target)?this.mirror.getId(ne.host(i.target)):this.mirror.getId(i.target);q(i.target,this.blockClass,this.blockSelector,!1)||Ue(e,this.mirror,this.slimDOMOptions)||!Fe(e,this.mirror)||(this.addedSet.has(e)?(et(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[Ze(t,n)]?et(this.movedSet,e):(this.removes.push({parentId:n,id:t,isShadow:!(!U(i.target)||!G(i.target))||void 0}),tt(e,this.removesSubTreeCache))),this.mapRemoves.push(e))})):this.genTextAreaValueMutation(i.target))}}),s(this,"genAdds",(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(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[Ze(this.mirror.getId(t),e)]=!0)}else this.addedSet.add(t),this.droppedSet["delete"](t);q(t,this.blockClass,this.blockSelector,!1)||(ne.childNodes(t).forEach(e=>this.genAdds(e)),je(t)&&ne.childNodes(ne.shadowRoot(t)).forEach(e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","hideSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(e=>{this[e]=t[e]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function et(t,e){t["delete"](e),ne.childNodes(e).forEach(e=>et(t,e))}function tt(e,t){const n=[e];for(;n.length;){var i=n.pop();t.has(i)||(t.add(i),ne.childNodes(i).forEach(e=>n.push(e)))}}function nt(e,t){if(0!==e.size)return e=e,t=t,(t=ne.parentNode(t))&&e.has(t)}function it(e,t){return 0!==e.size&&function i(e,t){const n=ne.parentNode(t);if(!n)return!1;if(e.has(n))return!0;return i(e,n)}(e,t)}let rt;const ae=n=>{return rt?(...e)=>{try{return n(...e)}catch(t){if(!rt||!0!==rt(t))throw t}}:n},se=[],V=ke();function ot(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 at(e,t){var n=new Qe,e=(se.push(n),n.init(e),new(Re())(ae(n.processMutations.bind(n))));return e.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function st({mouseInteractionCb:a,doc:i,mirror:s,blockClass:d,blockSelector:u,sampling:e}){if(!1===e.mouseInteraction)return()=>{};const t=!0===e.mouseInteraction||void 0===e.mouseInteraction?{}:e.mouseInteraction,r=[];let c=null;return Object.keys(l).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==t[e]).forEach(e=>{let t=k(e);o=e;var o,n=n=>{var i=ot(n);if(!q(i,d,u,!0)){let e=null,t=o;if("pointerType"in n){switch(n.pointerType){case"mouse":e=p.Mouse;break;case"touch":e=p.Touch;break;case"pen":e=p.Pen}e===p.Touch?l[o]===l.MouseDown?t="TouchStart":l[o]===l.MouseUp&&(t="TouchEnd"):(e,p.Pen)}else Be(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=Be(n)?n.changedTouches[0]:n;n&&(i=s.getId(i),{clientX:n,clientY:r}=n,ae(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(ie(t,n,i))}),ae(()=>{r.forEach(e=>e())})}function dt({scrollCb:i,doc:r,mirror:o,blockClass:a,blockSelector:s,sampling:e}){return ie("scroll",ae(P(ae(e=>{var t,n,e=ot(e);e&&!q(e,a,s,!0)&&(t=o.getId(e),e===r&&r.defaultView?(n=Me(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"],ct=new WeakMap;function lt(e){return function i(e,t){var n;return ft("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||ft("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||ft("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||ft("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?(n=Array.from(e.parentRule.cssRules).indexOf(e),t.unshift(n),i(e.parentRule,t)):(e.parentStyleSheet&&(n=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(n)),t)}(e,[])}function J(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function pt({mirror:e,stylesheetManager:i},t){let r=null;r="#document"===t.nodeName?e.getId(t):e.getId(ne.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}}),ae(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function ht(e,t={}){var o,n=e.doc.defaultView;if(!n)return()=>{};{var i=e,r=t;const{mutationCb:w,mousemoveCb:S,mouseInteractionCb:E,scrollCb:I,viewportResizeCb:_,inputCb:C,mediaInteractionCb:x,styleSheetRuleCb:T,styleDeclarationCb:R,canvasMutationCb:k,fontCb:A,selectionCb:O,customElementCb:N}=i;i.mutationCb=(...e)=>{r.mutation&&r.mutation(...e),w(...e)},i.mousemoveCb=(...e)=>{r.mousemove&&r.mousemove(...e),S(...e)},i.mouseInteractionCb=(...e)=>{r.mouseInteraction&&r.mouseInteraction(...e),E(...e)},i.scrollCb=(...e)=>{r.scroll&&r.scroll(...e),I(...e)},i.viewportResizeCb=(...e)=>{r.viewportResize&&r.viewportResize(...e),_(...e)},i.inputCb=(...e)=>{r.input&&r.input(...e),C(...e)},i.mediaInteractionCb=(...e)=>{r.mediaInteaction&&r.mediaInteaction(...e),x(...e)},i.styleSheetRuleCb=(...e)=>{r.styleSheetRule&&r.styleSheetRule(...e),T(...e)},i.styleDeclarationCb=(...e)=>{r.styleDeclaration&&r.styleDeclaration(...e),R(...e)},i.canvasMutationCb=(...e)=>{r.canvasMutation&&r.canvasMutation(...e),k(...e)},i.fontCb=(...e)=>{r.font&&r.font(...e),A(...e)},i.selectionCb=(...e)=>{r.selection&&r.selection(...e),O(...e)},i.customElementCb=(...e)=>{r.customElement&&r.customElement(...e),N(...e)}}let a;e.recordDOM&&(a=at(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=P(ae(e=>{const t=Date.now()-a;n(o.map(e=>(e.timeOffset-=t,e)),e),o=[],a=null}),e),d=[ie("mousemove",e=ae(P(ae(e=>{var t=ot(e),{clientX:n,clientY:i}=Be(e)?e.changedTouches[0]:e;a=a||Ne(),o.push({x:n,y:i,id:r.getId(t),timeOffset:Ne()-a}),s("undefined"!=typeof DragEvent&&e instanceof DragEvent?oe.Drag:e instanceof MouseEvent?oe.MouseMove:oe.TouchMove)}),i,{trailing:!1})),t),ie("touchmove",e,t),ie("drag",e,t)];return ae(()=>{d.forEach(e=>e())})}(e),d=st(e),u=dt(e),c=function({viewportResizeCb:n},{win:e}){let i=-1,r=-1;return ie("resize",ae(P(ae(()=>{var e=Le(),t=Pe();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:d,ignoreSelector:u,maskInputOptions:c,maskInputFn:l,sampling:t,userTriggeredOnInput:p,maskTextClass:h,maskTextSelector:f}){function o(t){let i=ot(t);var t=t.isTrusted,r=i&&i.tagName;if((i=i&&"OPTION"===r?ne.parentElement(i):i)&&r&&!(ut.indexOf(r)<0)&&!q(i,e,n,!0)&&!(i.classList.contains(d)||u&&i.matches(u))){let e=i.value,n=!1;var o=X(i)||"",a=z(i,h,f,!0),r=("radio"===o||"checkbox"===o?n=i.checked:(c[r.toLowerCase()]||c[o]||a)&&(e=$({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=ct.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(ct.set(e,t),n=r.getId(e),ae(i)({...t,id:n}))}var a;const m=("last"===t.input?["change"]:["input","change"]).map(e=>ie(e,ae(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=>Oe(e[0],e[1],{set(){ae(o)({target:this,isTrusted:!1})}},!1,v))),ae(()=>{m.forEach(e=>e())})):()=>{m.forEach(e=>e())}}(e),p=function({mediaInteractionCb:s,blockClass:d,blockSelector:u,mirror:c,sampling:e,doc:t}){var n=ae(a=>P(ae(e=>{var t,n,i,r,o,e=ot(e);e&&!q(e,d,u,!0)&&({currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}=e,s({type:a,id:c.getId(e),currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}))}),e.media||500));const i=[ie("play",n(W.Play),t),ie("pause",n(W.Pause),t),ie("seeked",n(W.Seeked),t),ie("volumechange",n(W.VolumeChange),t),ie("ratechange",n(W.RateChange),t)];return ae(()=>{i.forEach(e=>e())})}(e);let h=()=>{},f=()=>{},g=()=>{},m=()=>{};e.recordDOM&&(h=function({styleSheetRuleCb:s,mirror:d,stylesheetManager:u},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const e=i.CSSStyleSheet.prototype.insertRule,t=(i.CSSStyleSheet.prototype.insertRule=new V(e,{apply:ae((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=J(t,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:r}]}),e.apply(t,n)})}),i.CSSStyleSheet.prototype.addRule=function(e,t,n=this.cssRules.length){return i.CSSStyleSheet.prototype.insertRule.apply(this,[e+` { ${t} }`,n])},i.CSSStyleSheet.prototype.deleteRule);i.CSSStyleSheet.prototype.deleteRule=new V(t,{apply:ae((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:i}]}),e.apply(t,n)})}),i.CSSStyleSheet.prototype.removeRule=function(e){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[e])};let n;i.CSSStyleSheet.prototype.replace&&(n=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new V(n,{apply:ae((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replace:i}),e.apply(t,n)})}));let r;i.CSSStyleSheet.prototype.replaceSync&&(r=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new V(r,{apply:ae((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replaceSync:i}),e.apply(t,n)})}));const o={},a=(gt("CSSGroupingRule")?o.CSSGroupingRule=i.CSSGroupingRule:(gt("CSSMediaRule")&&(o.CSSMediaRule=i.CSSMediaRule),gt("CSSConditionRule")&&(o.CSSConditionRule=i.CSSConditionRule),gt("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 V(a[e].insertRule,{apply:ae((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=J(t.parentStyleSheet,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:[...lt(t),r||0]}]}),e.apply(t,n)})}),t.prototype.deleteRule=new V(a[e].deleteRule,{apply:ae((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t.parentStyleSheet,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:[...lt(t),i]}]}),e.apply(t,n)})})}),ae(()=>{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=pt(e,e.doc),g=function({styleDeclarationCb:d,mirror:u,ignoreCSSAttributes:c,stylesheetManager:l},{win:e}){const p=e.CSSStyleDeclaration.prototype.setProperty,a=(e.CSSStyleDeclaration.prototype.setProperty=new V(p,{apply:ae((e,t,n)=>{var i,r,[o,a,s]=n;return c.has(o)?p.apply(t,[o,a,s]):({id:i,styleId:r}=J(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,set:{property:o,value:a,priority:s},index:lt(t.parentRule)}),e.apply(t,n))})}),e.CSSStyleDeclaration.prototype.removeProperty);return e.CSSStyleDeclaration.prototype.removeProperty=new V(a,{apply:ae((e,t,n)=>{var i,r,[o]=n;return c.has(o)?a.apply(t,[o]):({id:i,styleId:r}=J(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,remove:{property:o},index:lt(t.parentRule)}),e.apply(t,n))})}),ae(()=>{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 B(ae(()=>{var e=r.get(t);e&&(n(e),r["delete"](t))}),0),e.apply(this,[t])}}),i.push(()=>{t.FontFace=o}),i.push(e),ae(()=>{i.forEach(e=>e())})}(e));const v=function(e){const{doc:d,mirror:u,blockClass:c,blockSelector:l,selectionCb:p}=e;let h=!0;return(e=ae(()=>{var t=d.getSelection();if(!(!t||h&&null!=t&&t.isCollapsed)){h=t.isCollapsed||!1;var n=[],i=t.rangeCount||0;for(let e=0;e<i;e++){var{startContainer:r,startOffset:o,endContainer:a,endOffset:s}=t.getRangeAt(e);q(r,c,l,!0)||q(a,c,l,!0)||n.push({start:u.getId(r),startOffset:o,end:u.getId(a),endOffset:s})}p({ranges:n})}}))(),ie("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 ae(()=>{se.forEach(e=>e.reset()),null!=a&&a.disconnect(),s(),d(),u(),c(),l(),p(),h(),f(),g(),m(),v(),y(),b.forEach(e=>e())})}function ft(e){return"undefined"!=typeof window[e]}function gt(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class mt{constructor(e){s(this,"iframeIdToRemoteIdMap",new WeakMap),s(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,n,i){n=n||this.getIdToRemoteIdMap(e),i=i||this.getRemoteIdToIdMap(e);let r=n.get(t);return r||(r=this.generateIdFn(),n.set(t,r),i.set(r,t)),r}getIds(t,e){const n=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return e.map(e=>this.getId(t,e,n,i))}getRemoteId(e,t,n){n=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map(e=>this.getRemoteId(t,e,n))}reset(e){e?(this.iframeIdToRemoteIdMap["delete"](e),this.iframeRemoteIdToIdMap["delete"](e)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class vt{constructor(e){s(this,"iframes",new WeakMap),s(this,"crossOriginIframeMap",new WeakMap),s(this,"crossOriginIframeMirror",new mt(x)),s(this,"crossOriginIframeStyleMirror"),s(this,"crossOriginIframeRootIdMap",new WeakMap),s(this,"mirror"),s(this,"mutationCb"),s(this,"wrappedEmit"),s(this,"takeFullSnapshot"),s(this,"loadListener"),s(this,"pageHideListener"),s(this,"stylesheetManager"),s(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.takeFullSnapshot=e.takeFullSnapshot,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new mt(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}addPageHideListener(e){this.pageHideListener=e}attachIframe(t,e){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null!=(e=t.contentWindow)&&e.addEventListener("message",this.handleMessage.bind(this)),null!=(e=t.contentWindow))&&e.addEventListener("pagehide",()=>{var e;null!=(e=this.pageHideListener)&&e.call(this,t),this.mirror.removeNodeFromMap(t.contentDocument),this.crossOriginIframeMap["delete"](t.contentWindow)}),null!=(e=this.loadListener)&&e.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&0<t.contentDocument.adoptedStyleSheets.length&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(e){var t,n=e;"rrweb"===n.data.type&&n.origin===n.data.origin&&(t=e.source)&&(t==window.parent&&window!=window.parent&&e.data.snapshot?this.takeFullSnapshot():(t=this.crossOriginIframeMap.get(e.source))&&(e=this.transformCrossOriginEvent(t,n.data.event))&&this.wrappedEmit(e,n.data.isCheckout))}transformCrossOriginEvent(n,e){var t;switch(e.type){case re.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:re.IncrementalSnapshot,data:{source:oe.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case re.Meta:case re.Load:case re.DomContentLoaded:return!1;case re.Plugin:return e;case re.Custom:return this.replaceIds(e.data.payload,n,["id","parentId","previousId","nextId"]),e;case re.IncrementalSnapshot:switch(e.data.source){case oe.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 oe.Drag:case oe.TouchMove:case oe.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case oe.ViewportResize:return!1;case oe.MediaInteraction:case oe.MouseInteraction:case oe.Scroll:case oe.CanvasMutation:case oe.Input:return this.replaceIds(e.data,n,["id"]),e;case oe.StyleSheetRule:case oe.StyleDeclaration:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleId"]),e;case oe.Font:return e;case oe.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,n,["start","end"])}),e;case oe.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===$e.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class yt{constructor(e){s(this,"shadowDoms",new WeakSet),s(this,"mutationCb"),s(this,"scrollCb"),s(this,"bypassOptions"),s(this,"mirror"),s(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(G(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);const n=at({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(dt({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),B(()=>{e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(ne.host(e))),this.restoreHandlers.push(pt({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=ne.shadowRoot(this);return t&&Je(this)&&r.addShadowRoot(t,i),e}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),wt=0;wt<a.length;wt++)bt[a.charCodeAt(wt)]=wt;var St,Et=function(e){for(var t=new Uint8Array(e),n=t.length,i="",r=0;r<n;r+=3)i=(i=(i=(i+=a[t[r]>>2])+a[(3&t[r])<<4|t[r+1]>>4])+a[(15&t[r+1])<<2|t[r+2]>>6])+a[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&&(xt(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 Ct=(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:Et(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]}:xt(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:_t(e,t,n)}:e}(e,t,n)),xt=(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 q(this.canvas,r,o,!0)||B(()=>{var e=Ct(t,i,this);n(this.canvas,{type:Ke["2D"],property:s,args:e})},0),e.apply(this,t)}}),e.push(t))}catch{var a=Oe(i.CanvasRenderingContext2D.prototype,s,{set(e){n(this.canvas,{type:Ke["2D"],property:s,args:[e],setter:!0})}});e.push(a)}return()=>{e.forEach(e=>e())}}function Rt(e,r,o,a){const t=[];try{var n=L(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(e,...t){var n;return q(this,r,o,!0)||(n="experimental-webgl"===(n=e)?"webgl":n,"__context"in this||(this.__context=n),a&&["webgl","webgl2"].includes(n)&&(t[0]&&"object"==typeof t[0]?(n=t[0]).preserveDrawingBuffer||(n.preserveDrawingBuffer=!0):t.splice(0,1,{preserveDrawingBuffer:!0}))),i.apply(this,[e,...t])}});t.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{t.forEach(e=>e())}}function kt(e,i,r,o,a,s){var t,n=[];for(const u of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))try{"function"==typeof e[u]&&(t=L(e,u,function(n){return function(...e){var t=n.apply(this,e);return _t(t,s,this),"tagName"in this.canvas&&!q(this.canvas,o,a,!0)&&(e=Ct(e,s,this),e={type:i,property:u,args:e},r(this.canvas,e)),t}}),n.push(t))}catch{var d=Oe(e,u,{set(e){r(this.canvas,{type:i,property:u,args:[e],setter:!0})}});n.push(d)}return n}function At(e,t,n,i){const r=[];return r.push(...kt(t.WebGLRenderingContext.prototype,Ke.WebGL,e,n,i,t)),"undefined"!=typeof t.WebGL2RenderingContext&&r.push(...kt(t.WebGL2RenderingContext.prototype,Ke.WebGL2,e,n,i,t)),()=>{r.forEach(e=>e())}}function Ot(e){return function(){return{onerror:null,onmessage:null}}}class Nt{constructor(e){s(this,"pendingCanvasMutations",new Map),s(this,"rafStamps",{latestId:0,invokeId:null}),s(this,"mirror"),s(this,"mutationCb"),s(this,"resetObservers"),s(this,"frozen",!1),s(this,"locked",!1),s(this,"processMutation",(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});var{sampling:t="all",win:n,blockClass:i,blockSelector:r,recordCanvas:o,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===t&&this.initCanvasMutationObserver(n,i,r),o&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,i,r,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,n,i,r,o){const t=Rt(n,i,r,!0),a=new Map,s=new Ot,d=(s.onmessage=e=>{var t,n,i,r=e.data["id"];a.set(r,!1),"base64"in e.data&&({base64:e,type:t,width:n,height:i}=e.data,this.mutationCb({id:r,type:Ke["2D"],commands:[{property:"clearRect",args:[0,0,n,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:e}],type:t}]},0,0]}]}))},1e3/e);let u=0,c;const l=()=>{const t=[];return n.document.querySelectorAll("canvas").forEach(e=>{q(e,i,r,!0)||t.push(e)}),t},p=e=>{c=(u&&e-u<d||(u=e,l().forEach(async e=>{var t,n,i=this.mirror.getId(e);a.get(i)||0!==e.width&&0!==e.height&&(a.set(i,!0),["webgl","webgl2"].includes(e.__context)&&!1===(null==(n=null==(t=e.getContext(e.__context))?void 0:t.getContextAttributes())?void 0:n.preserveDrawingBuffer)&&t.clear(t.COLOR_BUFFER_BIT),n=await createImageBitmap(e),s.postMessage({id:i,bitmap:n,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[n]))})),requestAnimationFrame(p))};c=requestAnimationFrame(p),this.resetObservers=()=>{t(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=Rt(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 Mt{constructor(e){s(this,"trackedLinkElements",new WeakSet),s(this,"mutationCb"),s(this,"adoptedStyleSheetCb"),s(this,"styleMirror",new qe),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0!==e.length){var n={id:t,styleIds:[]},i=[];for(const o of e){let e;if(this.styleMirror.has(o))e=this.styleMirror.getId(o);else{e=this.styleMirror.add(o);var r=[];for(let e=0;e<o.rules.length;++e)r.push({rule:w(o.rules[e],o.href),index:e});i.push({styleId:e,rules:Array.from(o.rules||CSSRule,(e,t)=>({rule:w(e,o.href),index:t}))})}n.styleIds.push(e)}0<i.length&&(n.styles=i),this.adoptedStyleSheetCb(n)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Lt{constructor(){s(this,"nodeMap",new WeakMap),s(this,"active",!1)}inOtherBuffer(e,t){e=this.nodeMap.get(e);return e&&Array.from(e).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let de,ue=()=>{},Pt,Dt=!1;try{2!==Array.from([1],e=>2*e)[0]&&(St=document.createElement("iframe"),document.body.appendChild(St),Array.from=(null==(e=St.contentWindow)?void 0:e.Array.from)||Array.from,document.body.removeChild(St))}catch(Ut){console.debug("Unable to override Array.from",Ut)}const ce=new le;function Ft(e={}){const{emit:i,checkoutEveryNms:r,checkoutEveryNth:o,blockClass:n="rr-block",blockSelector:a=null,hideSelector:s=null,ignoreClass:D="rr-ignore",ignoreSelector:F=null,maskTextClass:d="rr-mask",maskTextSelector:u=null,inlineStylesheet:c=!0,maskAllInputs:U,maskInputOptions:t,slimDOMOptions:l,maskInputFn:p,maskTextFn:h,hooks:G,packFn:B,sampling:f={},dataURLOptions:g={},mousemoveWait:H,recordDOM:z=!0,recordCanvas:m=!1,recordCrossOriginIframes:j=!1,emitFromIframe:q=!1,recordAfter:W="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:V=!1,collectFonts:J=!1,inlineImages:v=!1,plugins:y,keepIframeSrcFn:b=()=>!1,ignoreCSSAttributes:K=new Set([]),errorHandler:$}=e;e=$,rt=e;const w=!!q||!j||window.parent===window;let S=!1;if(!w)try{window.parent.document&&(S=!1)}catch(ee){S=!0}if(w&&!i)throw new Error("emit function is required");if(!w&&!S)return()=>{};void 0!==H&&void 0===f.mousemove&&(f.mousemove=H),ce.reset();const E=!0===U?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==t?t:{password:!0},I=!0===l||"all"===l?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===l,headMetaDescKeywords:"all"===l,headTitleMutations:"all"===l}:l||{};"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 X,_=0;const Y=e=>{for(const t of y||[])t.eventProcessor&&(e=t.eventProcessor(e));return e=B&&!S?B(e):e},C=(de=(e,t)=>{var n;e.timestamp=Ne(),null==(n=se[0])||!n.isFrozen()||e.type===re.FullSnapshot||e.type===re.IncrementalSnapshot&&e.data.source===oe.Mutation||se.forEach(e=>e.unfreeze()),w?null!=i&&i(Y(e),t):S&&(n={type:"rrweb",event:Y(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===re.FullSnapshot?(X=e,_=0):e.type!==re.IncrementalSnapshot||e.data.source===oe.Mutation&&e.data.isAttachIframe||(_++,t=o&&_>=o,n=r&&e.timestamp-X.timestamp>r,(t||n)&&ue(!0))},e=>{de({type:re.IncrementalSnapshot,data:{source:oe.Mutation,...e}})}),Z=e=>de({type:re.IncrementalSnapshot,data:{source:oe.Scroll,...e}}),Q=e=>de({type:re.IncrementalSnapshot,data:{source:oe.CanvasMutation,...e}});const x=new Mt({mutationCb:C,adoptedStyleSheetCb:e=>de({type:re.IncrementalSnapshot,data:{source:oe.AdoptedStyleSheet,...e}})}),T=new vt({mirror:ce,mutationCb:C,stylesheetManager:x,recordCrossOriginIframes:j,wrappedEmit:de,takeFullSnapshot:ue});for(const O of y||[])O.getMirror&&O.getMirror({nodeMirror:ce,crossOriginIframeMirror:T.crossOriginIframeMirror,crossOriginIframeStyleMirror:T.crossOriginIframeStyleMirror});const R=new Lt,k=(Pt=new Nt({recordCanvas:m,mutationCb:Q,win:window,blockClass:n,blockSelector:a,mirror:ce,sampling:f.canvas,dataURLOptions:g}),new yt({mutationCb:C,scrollCb:Z,bypassOptions:{blockClass:n,blockSelector:a,hideSelector:s,maskTextClass:d,maskTextSelector:u,inlineStylesheet:c,maskInputOptions:E,dataURLOptions:g,maskTextFn:h,maskInputFn:p,recordCanvas:m,inlineImages:v,sampling:f,slimDOMOptions:I,iframeManager:T,stylesheetManager:x,canvasManager:Pt,keepIframeSrcFn:b,processedNodeManager:R},mirror:ce}));ue=(e=!1)=>{if(z){de({type:re.Meta,data:{href:window.location.href,width:Pe(),height:Le()}},e),x.reset(),k.init(),se.forEach(e=>e.lock());var t=function(e,t){var{mirror:t=new le,blockClass:n="rr-block",blockSelector:i=null,hideSelector:r=null,maskTextClass:o="rr-mask",maskTextSelector:a=null,inlineStylesheet:s=!0,inlineImages:d=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:l,maskInputFn:p,slimDOM:h=!1,dataURLOptions:f,preserveWhiteSpace:g,onSerialize:m,onIframeLoad:v,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:w,keepIframeSrcFn:S=()=>!1}=t||{};return te(e,{doc:e,mirror:t,blockClass:n,blockSelector:i,hideSelector:r,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:s,maskInputOptions:!0===c?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===c?{password:!0}:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:!0===h||"all"===h?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===h,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===h?{}:h,dataURLOptions:f,inlineImages:d,recordCanvas:u,preserveWhiteSpace:g,onSerialize:m,onIframeLoad:v,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:w,keepIframeSrcFn:S,newlyAddedElement:!1})}(document,{mirror:ce,blockClass:n,blockSelector:a,hideSelector:s,maskTextClass:d,maskTextSelector:u,inlineStylesheet:c,maskAllInputs:E,maskTextFn:h,maskInputFn:p,slimDOM:I,dataURLOptions:g,recordCanvas:m,inlineImages:v,onSerialize:e=>{He(e,ce)&&T.addIframe(e),ze(e,ce)&&x.trackLinkElement(e),je(e)&&k.addShadowRoot(ne.shadowRoot(e),document)},onIframeLoad:(e,t)=>{T.attachIframe(e,t),k.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{x.attachLinkElement(e,t)},keepIframeSrcFn:b});if(!t)return console.warn("Failed to snapshot the document");de({type:re.FullSnapshot,data:{node:t,initialOffset:Me(window)}},e),se.forEach(e=>e.unlock()),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&x.adoptStyleSheets(document.adoptedStyleSheets,ce.getId(document))}},T.setTakeFullSnapshot(ue);try{const N=[],M=new Map,L=e=>{return ae(ht)({mutationCb:C,mousemoveCb:(e,t)=>de({type:re.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>de({type:re.IncrementalSnapshot,data:{source:oe.MouseInteraction,...e}}),scrollCb:Z,viewportResizeCb:e=>de({type:re.IncrementalSnapshot,data:{source:oe.ViewportResize,...e}}),inputCb:e=>de({type:re.IncrementalSnapshot,data:{source:oe.Input,...e}}),mediaInteractionCb:e=>de({type:re.IncrementalSnapshot,data:{source:oe.MediaInteraction,...e}}),styleSheetRuleCb:e=>de({type:re.IncrementalSnapshot,data:{source:oe.StyleSheetRule,...e}}),styleDeclarationCb:e=>de({type:re.IncrementalSnapshot,data:{source:oe.StyleDeclaration,...e}}),canvasMutationCb:Q,fontCb:e=>de({type:re.IncrementalSnapshot,data:{source:oe.Font,...e}}),selectionCb:e=>{de({type:re.IncrementalSnapshot,data:{source:oe.Selection,...e}})},customElementCb:e=>{de({type:re.IncrementalSnapshot,data:{source:oe.CustomElement,...e}})},blockClass:n,ignoreClass:D,ignoreSelector:F,maskTextClass:d,maskTextSelector:u,maskInputOptions:E,inlineStylesheet:c,sampling:f,recordDOM:z,recordCanvas:m,inlineImages:v,userTriggeredOnInput:V,collectFonts:J,doc:e,maskInputFn:p,maskTextFn:h,keepIframeSrcFn:b,blockSelector:a,hideSelector:s,slimDOMOptions:I,dataURLOptions:g,mirror:ce,iframeManager:T,stylesheetManager:x,shadowDomManager:k,processedNodeManager:R,canvasManager:Pt,ignoreCSSAttributes:K,plugins:(null==(e=null==y?void 0:y.filter(e=>e.observer))?void 0:e.map(t=>({observer:t.observer,options:t.options,callback:e=>de({type:re.Plugin,data:{plugin:t.name,payload:e}})})))||[]},G)},P=(T.addLoadListener(e=>{try{M.set(e,L(e.contentDocument))}catch(t){console.warn(t)}}),T.addPageHideListener(e=>{var t=M.get(e),n=(t&&(t(),M["delete"](e)),e);for(let e=se.length-1;0<=e;e--){var i=se[e];i.bufferBelongsToIframe(n)&&(i.reset(),se.splice(e,1))}}),()=>{ue(),N.push(L(document)),Dt=!0});return"interactive"===document.readyState||"complete"===document.readyState?P():(N.push(ie("DOMContentLoaded",()=>{de({type:re.DomContentLoaded,data:{}}),"DOMContentLoaded"===W&&P()})),N.push(ie("load",()=>{de({type:re.Load,data:{}}),"load"===W&&P()},window))),()=>{N.forEach(e=>e()),M.forEach(e=>e()),R.destroy(),Dt=!1,rt=void 0}}catch(A){console.warn(A)}}return Ft.addCustomEvent=(e,t)=>{if(!Dt)throw new Error("please add custom event after start recording");de({type:re.Custom,data:{tag:e,payload:t}})},Ft.freezePage=()=>{se.forEach(e=>e.freeze())},Ft.takeFullSnapshot=e=>{if(!Dt)throw new Error("please take full snapshot after start recording");ue(e)},Ft.mirror=ce,0,Ft}var SessionRecorderBuffer=function(){function e(e,t){void 0===t&&(t=Infinity),this.data=[],this.sequenceNumber=0,this.interval=e,this.maxCount=t,this.doubledMaxCount=2*t}return e.prototype.isEmpty=function(){return 0===this.data.length},e.prototype.count=function(){return this.data.length},e.prototype.clear=function(){this.data.length=0},e.prototype.clearSequence=function(){this.sequenceNumber=0},e.prototype.push=function(e){this.data.push(e),this.checkRateLimit()},e.prototype.pack=function(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,function(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},e.prototype.checkRateLimit=function(){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()},e}(),__assign=function(){return(__assign=Object.assign||function __assign(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function __rest(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function __awaiter(e,t,s,d){return new(s=s||Promise$2)(function(n,i){function r(e){try{a(d.next(e))}catch(t){i(t)}}function o(e){try{a(d["throw"](e))}catch(t){i(t)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}a((d=d.apply(e,t||[])).next())})}function __generator(n,i){var r,o,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},d=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return d.next=e(0),d["throw"]=e(1),d["return"]=e(2),"function"==typeof Symbol&&(d[Symbol.iterator]=function(){return this}),d;function e(t){return function(e){return u([t,e])}}function u(e){if(r)throw new TypeError("Generator is already executing.");for(;s=d&&e[d=0]?0:s;)try{if(r=1,o&&(a=2&e[0]?o["return"]:e[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,e[1])).done)return a;switch(o=0,(e=a?[2&e[0],a.value]:e)[0]){case 0:case 1:a=e;break;case 4:return s.label++,{value:e[1],done:!1};case 5:s.label++,o=e[1],e=[0];continue;case 7:e=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===e[0]||2===e[0])){s=0;continue}if(3===e[0]&&(!a||e[1]>a[0]&&e[1]<a[3]))s.label=e[1];else if(6===e[0]&&s.label<a[1])s.label=a[1],a=e;else{if(!(a&&s.label<a[2])){a[2]&&s.ops.pop(),s.trys.pop();continue}s.label=a[2],s.ops.push(e)}}e=i.call(n,s)}catch(t){e=[6,t],o=0}finally{r=a=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}var RECORDING_CONFIG_WORKERURL$1="recording.workerUrl",MAX_SIZE=2e6,RESOURCE_CACHING$1="resourceCaching",Transport=function(){function e(e,t,n){this.WorkerClass=e,this.pendo=t,this.api=n,this.maxSize=MAX_SIZE,this.lockID="worker-lock-".concat(this.pendo.randomString(16)),this.isResourceCachingEnabled=this.api.ConfigReader.get(RESOURCE_CACHING$1)}return e.prototype.start=function(e){if(!e.disableWorker&&!this.worker)try{var t;e.workerOverride?this.worker=e.workerOverride:(t=this.api.ConfigReader.get(RECORDING_CONFIG_WORKERURL$1),this.usesSelfHostedWorker=null!=t,this.worker=t?new Worker(t):new this.WorkerClass),this.worker.postMessage({type:"init",lockID:this.lockID}),this.worker.onmessage=this.pendo._.bind(this._onMessage,this),this.worker.onerror=this.pendo._.bind(this._onError,this)}catch(n){this.worker=null}},e.prototype.stop=function(){this.worker&&(this.worker.terminate(),delete this.worker)},e.prototype.send=function(e,t,n){var i,r=e.url,o=e.payload;if(0<(n=void 0===n?0:n)&&(r="".concat(r,"&rt=").concat(n)),this.worker&&!t&&o)return(i={}).promise=new Promise$2(function(e,t){i.resolve=e,i.reject=t}),this.workerResponse=i,this.worker.postMessage({url:r,payload:o,shouldCacheResources:this.isResourceCachingEnabled}),i.promise;if(!e.body){var a,n=JSON.stringify(o);if(n.length>this.maxSize)throw(a=new Error("maximum recording payload size exceeded")).reason="HEAVY_EVENT",a.context={size:n.length,count:null==o?void 0:o.recordingPayloadCount},a;e.body=this.pendo.compress(n,"binary"),delete e.payload}return r="".concat(r,"&ct=").concat((new Date).getTime()),this.post(r,{keepalive:t,body:e.body})},e.prototype.post=function(e,t){return t.method="POST",t.keepalive&&this.api.transmit.fetchKeepalive.supported()?this.api.transmit.fetchKeepalive(e,t):t.keepalive&&this.api.transmit.sendBeacon.supported()?this.api.transmit.sendBeacon(e,new Blob([t.body]))?Promise$2.resolve():Promise$2.reject(new Error("sendBeacon failed to send recording data")):this.pendo.ajax.post(e,t.body)},e.prototype._onMessage=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return t.data&&t.data.ready&&navigator.locks?[4,navigator.locks.request(this.lockID,function(){})]:[3,2];case 1:e.sent(),this.onWorkerMessage({type:"workerDied"}),e.label=2;case 2:return t.data&&t.data.type?this.onWorkerMessage(t.data):(t.data&&t.data.error&&((t.data.status&&t.data.status<500||null==t.data.sequence)&&this.api.log.critical("Failed to send recording data from web worker",{error:t.data.error}),this.workerResponse)&&(this.workerResponse.reject(),this.workerResponse=null),this.workerResponse&&(this.workerResponse.resolve(),this.workerResponse=null)),[2]}})})},e.prototype._onError=function(){this.onError&&this.onError()},e}(),ELEMENT_NODE=1,INPUT_MASK="*".repeat(10),NUMBER_INPUT_MASK="0".repeat(10);function isElementNode(e){return!!e&&e.nodeType===ELEMENT_NODE}function getParent(e){return"undefined"!=typeof window.ShadowRoot&&e instanceof window.ShadowRoot&&e.host?e.host:e.parentNode}function distanceToMatch(e,t,n,i){if((n=void 0===n?Infinity:n)<(i=void 0===i?0:i))return-1;if(!e)return-1;if(isElementNode(e)){if(e.matches(t))return i;if(e.parentNode)return distanceToMatch(e.parentNode,t,n,i+1)}return distanceToMatch(getParent(e),t,n,i+1)}function shouldMask(e,t){var n=t.maskAllText,i=t.maskTextSelector,t=t.unmaskTextSelector;try{var r=isElementNode(e)?e:e.parentElement;if(null===r)return!1;if("STYLE"===(r.tagName||"").toUpperCase())return!1;var o=-1,a=-1;if(n){if((a=distanceToMatch(r,t))<0)return!0;o=distanceToMatch(r,i,0<=a?a:Infinity)}else{if((o=distanceToMatch(r,i))<0)return!1;a=distanceToMatch(r,t,0<=o?o:Infinity)}return 0<=o?!(0<=a)||o<=a:!(0<=a||!n)}catch(s){}return!!n}function isNumberInput(e){return"input"===(e.tagName||"").toLowerCase()&&"number"===(e.type||"").toLowerCase()}function shouldMaskInput(e,t){if(t&&isElementNode(e)){var n=(e.tagName||"").toLowerCase(),e=(e.type||"").toLowerCase();if(t[n]||t[e])return!0}return!1}function maskInput(e,t,n){return shouldMaskInput(n,e.maskInputOptions)||shouldMask(n,e)?t?isNumberInput(n)?NUMBER_INPUT_MASK:INPUT_MASK:"":t}function maskText(e,t,n){return shouldMask(n,e)?t?t.replace(/[\S]/g,"*"):"":t}const RECORDING_CONFIG="recording",RECORDING_CONFIG_ENABLED="recording.enabled",RECORDING_CONFIG_AUTO_START="recording.autoStart",RECORDING_CONFIG_WORKERURL="recording.workerUrl",RECORDING_CONFIG_ON_RECORDING_START="recording.onRecordingStart",RECORDING_CONFIG_ON_RECORDING_STOP="recording.onRecordingStop",RECORDING_CONFIG_WORKER_OVERRIDE="recording.workerOverride",RECORDING_CONFIG_TREAT_IFRAME_AS_ROOT="recording.treatIframeAsRoot",RECORDING_CONFIG_DISABLE_UNLOAD="recording.disableUnload",RESOURCE_CACHING="resourceCaching",ONE_DAY_IN_MILLISECONDS=864e5,ONE_MINUTE_IN_MILLISECONDS=6e4,THIRTY_MINUTES=18e5,ONE_HUNDRED_MB_IN_BYTES=104857600,SESSION_RECORDING_ID="pendo_srId",SESSION_RECORDING_LAST_USER_INTERACTION_EVENT="pendo_srLastUserInteractionEvent",SEND_INTERVAL=5e3,MAX_SEND_COUNT=2e4,EVENT_TYPES={INCREMENTAL_SOURCE_MUTATION:0,FULL_SNAPSHOT:2,INCREMENTAL_SNAPSHOT:3,META:4,INCREMENTAL_SOURCE_INPUT:5};class SessionRecorder{constructor(e,t){this.name="Replay",this.record=e,this.WorkerClass=t,this.lastKeyFrameTime=0,this.eventsSinceLastKeyFrame=0,this.currentRecordingSize=0}addConfigOptions(){var e=this.api.ConfigReader;e.addOption(RECORDING_CONFIG,[e.sources.PENDO_CONFIG_SRC],{}),e.addOption(RECORDING_CONFIG_AUTO_START,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ENABLED,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_START,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_STOP,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKERURL,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKER_OVERRIDE,[e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_TREAT_IFRAME_AS_ROOT,[e.sources.SNIPPET_SRC],undefined),e.addOption(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 this.api.SendQueue(e(this.transport.send,this.transport)),this.sendQueue.onTimeout=e(this.sendFailure,this,"SEND_TIMEOUT"),this.errorHandler=this.pendo._.throttle(e(this.logStopReason,this,"RRWEB_ERROR"),ONE_MINUTE_IN_MILLISECONDS,{trailing:!1}),this.isNewSession=!1,this.isCheckingVisitorEligibility=!1,this.pageLifecycleListeners=[],this.addConfigOptions(),this.config=t.get(RECORDING_CONFIG),this.onRecordingStart=this.pendo._.isFunction(t.get(RECORDING_CONFIG_ON_RECORDING_START))?t.get(RECORDING_CONFIG_ON_RECORDING_START):function(){},this.onRecordingStop=this.pendo._.isFunction(t.get(RECORDING_CONFIG_ON_RECORDING_STOP))?t.get(RECORDING_CONFIG_ON_RECORDING_STOP):function(){};let n=!1;var i=t.get(RECORDING_CONFIG_ENABLED);if(this.pendo._.isBoolean(i)?(n=i)||this.api.log.info("Session Replay disabled via the snippet config"):n=this.config.enabled,n)if(t.get("excludeNonGuideAnalytics"))this.api.log.info("Session Replay is disabled because excludeNonGuideAnalytics is enabled");else{i=this.sessionIdKey=SESSION_RECORDING_ID+"."+this.pendo.apiKey;this.pendo.recording={start:e(this.start,this),stop:e(this.stop,this)},this.subscriptions=[this.api.attachEvent(this.api.Events,"appHidden",e(this.handleHidden,this)),this.api.attachEvent(this.api.Events,"appUnloaded",e(this.handleUnload,this)),this.api.attachEvent(this.api.Events,"identify",e(this.changeIdentity,this)),this.api.attachEvent(this.api.Events,"metadata",e(this.changeMetadata,this)),this.api.attachEvent(this.api.Events,"eventCaptured",e(this.addRecordingId,this)),this.api.attachEvent(this.api.Events,"transmit:locked",e(this.stop,this)),this.api.attachEvent(this.api.Events,"transmit:unlocked",e(this._start,this)),this.api.attachEvent(this.api.Events,"tabIdChanged:self",e(this.handleTabIdChange,this))];const r=this.api.frames.getChannel(),o=e(this._frameMessage,this);r.addEventListener("message",o),this.subscriptions.push(()=>{r.removeEventListener("message",o)}),this.api.store.getters["frames/isReady"]()?this.ready():this.subscriptions.push(this.api.attachEvent(this.api.Events,"ready",e(this.ready,this))),this.api.agentStorage.registry.addSession(i),this.api.agentStorage.registry.addSession(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)}}teardown(){delete this.pendo.recording,delete this.allowStart,this.pendo._.each(this.subscriptions,function(e){e()}),this.removePageLifecycleListeners(),this.subscriptions.length=0,this.stop(),this.transport.stop()}ready(){!1!==this.api.ConfigReader.get(RECORDING_CONFIG_AUTO_START)&&this.start()}addPageLifecycleListeners(){this.pendo._.each(["pageshow","focus","blur","visibilitychange","resume"],e=>{this.pageLifecycleListeners.push(this.api.attachEventInternal(window,e,this.pendo._.bind(this.checkPageLifecycleState,this),!0))})}removePageLifecycleListeners(){this.pendo._.each(this.pageLifecycleListeners,function(e){e()}),this.pageLifecycleListeners=[]}checkPageLifecycleState(){var e=this.getPageLifecycleState();"active"!==e&&"passive"!==e||!this.isRecording()&&this.allowStart&&(this.removePageLifecycleListeners(),this.ready())}getPageLifecycleState(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}changeIdentity(e){this.allowStart&&(clearTimeout(this._changeIdentityTimer),this.isRecording()&&(this.logStopReason("IDENTITY_CHANGED",{previousVisitorId:this.visitorId,newVisitorId:e.data[0].visitor_id,previousAccountId:this.accountId,newAccountId:e.data[0].account_id}),this.stop()),this.visitorId=e.data[0].visitor_id,this.accountId=e.data[0].account_id,this._changeIdentityTimer=setTimeout$1(()=>{this._start()},500))}changeMetadata(e){var{hashChanged:e,options:t}=e.data[0];if(this.allowStart&&e)return clearTimeout(this._changeIdentityTimer),this.visitorId=t.visitor.id,this.accountId=t.account.id,this.checkVisitorEligibility()}checkVisitorEligibility(t){if(this.isRecording()||!this.pendo._.isNull(this.visitorId)||!this.pendo._.isNull(this.accountId))return this.isCheckingVisitorEligibility=!0,this.fetchVisitorConfig().then(e=>{e&&e.enable||!this.isRecording()||this.stop(),e&&e.enable&&this.isRecording()&&(t&&t.call(this),this.api.Events.trigger("recording:unpaused")),e&&e.enable&&!this.isRecording()&&this._startRecordingForVisitor(e),this.isCheckingVisitorEligibility=!1})["catch"](e=>{this.isCheckingVisitorEligibility=!1,this.api.log.critical("Failed to re-fetch recording config",{error:e}),this.logStopReason("VISITOR_CONFIG_ERROR")})}snapshot(){this.isRecording()&&(this.send(),this.record.takeFullSnapshot())}isRecording(){return null!=this.interval}recordingConfig(e){var e=this.pendo._.extend({},this.config.options,e),t={maskAllText:null==e.privateByDefault||e.privateByDefault,maskTextSelector:[".pendo-sr-mask"].concat(e.maskedSelectors||[]).join(","),unmaskTextSelector:[".pendo-sr-unmask"].concat(e.unmaskedSelectors||[]).join(","),maskInputOptions:{}},n=(this.pendo._.isObject(e.maskInputOptions)&&(t.maskInputOptions=e.maskInputOptions),t.maskInputOptions=this.pendo._.extend(t.maskInputOptions,{email:!0,password:!0,tel:!0}),[".pendo-ignore",".pendo-sr-ignore"].concat(e.blockedSelectors||[])),i=[".pendo-sr-hide"].concat(e.hiddenSelectors||[]);return{maskInputFn:this.pendo._.partial(maskInput,t),maskTextFn:this.pendo._.partial(maskText,t),maskTextSelector:"*",maskTextClass:null,maskInputOptions:t.maskInputOptions,blockClass:null,blockSelector:n.concat(i).join(","),hideSelector:i.join(","),recordCrossOriginIframes:null==e.recordCrossOriginIframes||e.recordCrossOriginIframes,emitFromIframe:!!this.api.ConfigReader.get(RECORDING_CONFIG_TREAT_IFRAME_AS_ROOT)}}start(){this._restartPtm=this.api.analytics.ptm().pause(),this.allowStart=!0,this.visitorId=this.pendo.get_visitor_id(),this.accountId=this.pendo.get_account_id(),this._start()}_markEvents(e){if(this.recordingId&&this.isRecording())for(var t of e)t.visitor_id!==this.visitorId&&t.visitorId!==this.visitorId||"identify"===t.type||(t.recordingId=this.recordingId,t.recordingSessionId=this.sessionId(this.recordingId))}restartPtm(){if(this.pendo._.isFunction(this._restartPtm)){this._markEvents(this.pendo.buffers.events);for(var e of this.pendo.buffers.silos)this._markEvents(e);this._restartPtm(),this._restartPtm=null}}_start(){if(!this.isRecording()&&this.pendo.isSendingEvents()&&this.allowStart)return this.fetchVisitorConfig().then(e=>{this.allowStart&&(e&&e.enable?this._startRecordingForVisitor(e):(this.restartPtm(),this.logStopReason("VISITOR_DISABLED")))})["catch"](e=>{this.restartPtm(),e&&/Failed to fetch/.test(e.toString())||(this.api.log.critical("Failed to fetch recording config",{error:e,visitorId:this.visitorId,accountId:this.accountId,url:this.pendo.url.get()}),this.logStopReason("VISITOR_CONFIG_ERROR"))})}_startRecordingForVisitor(e){if(this.api.Events.trigger("recording:unpaused"),this.transport.start(this.config),this.pendo._.get(this.config,"disableFallback",!0)&&!this.transport.worker)this.restartPtm(),this.pendo.log("Worker failed to start and main thread fallback is disabled. Recording prevented from starting."),this.logStopReason("WORKER_ERROR");else try{var t=this.pendo._.bind,n=(this.visitorConfig=e,this.clearOldSessionId(),this.sendQueue.start(),this.interval=setInterval(()=>{this.sendQueue.failed()||this.send()},SEND_INTERVAL),this.recordingConfig(e));this._stop=this.record(this.pendo._.extend({emit:t(this.emit,this),errorHandler:this.errorHandler},n)),this._refreshIds(),this.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){var t=e.type===EVENT_TYPES.META,n=e.type===EVENT_TYPES.FULL_SNAPSHOT,i=this.pendo._.get(this.getLastUserInteractionEventInformation(),"timestamp"),r=this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES);let o=!1;e.timestamp&&e.timestamp.getTime&&(e.timestamp=e.timestamp.getTime()),e.timestamp||(e.timestamp=(new Date).getTime());var r=i&&e.timestamp-i<=r;!i&&t&&(o=!0,this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,o)),t||this.isCheckingVisitorEligibility||!r||this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,o),r||n||t?(t&&(this.pendo._.has(e,"data.href")&&(e.data.href=this.pendo.location.getHref()),this.send()),this.buffer.push(e),n?(this.lastKeyFrameTime=e.timestamp,this.eventsSinceLastKeyFrame=0,this.recordingId=this.pendo.randomString(16),this.buffer.clearSequence(),this.sessionId(this.recordingId),this.restartPtm(),this._sendIds(),this.send({keyframe:!0})):!t&&(this.eventsSinceLastKeyFrame+=1,r=(i=e.timestamp-this.lastKeyFrameTime)>=ONE_DAY_IN_MILLISECONDS,n=i>=this.pendo._.get(this.visitorConfig,"keyframeTimeFrequency",30645047),t=this.eventsSinceLastKeyFrame>=this.pendo._.get(this.visitorConfig,"keyframeEventFrequency",4548),e=this.currentRecordingSize>=this.pendo._.get(this.visitorConfig,"recordingSizeLimit",ONE_HUNDRED_MB_IN_BYTES),r||n&&t||e)&&(i=function(){this.currentRecordingSize=0,this.snapshot()},r&&!this.isCheckingVisitorEligibility?this.checkVisitorEligibility(i):i.call(this))):("hidden"===this.getPageLifecycleState()&&(this.stop(),this.addPageLifecycleListeners(),this.logStopReason("INACTIVE_HIDDEN_TAB")),this.isCheckingVisitorEligibility||this.checkVisitorEligibility(function(){this.send(),this.clearSessionInfo(),this.snapshot()}))}updateCurrentRecordingSize(e){this.currentRecordingSize+=e}onWorkerMessage(e){switch(e.type){case"workerDied":this.logStopReason("WORKER_DIED");break;case"recordingPayloadSize":var{recordingPayloadSize:t,exceedsPayloadSizeLimit:n}=e;if(!t)return;if(n)return this.stop(),void this.logStopReason("BIG_PAYLOAD",t);this.updateCurrentRecordingSize(t);break;case"hostedResources":n=e["hostedResourcesEvent"];if(!n)return;this.sendHostedResources(n);break;case"emptyPayload":this.logStopReason("EMPTY_PAYLOAD");break;case"missingData":this.logStopReason("MISSING_"+e.missingData)}}addRecordingId(e){this.isRecording()&&this.recordingId&&e&&e.data&&e.data.length&&"recording"!==(e=e.data[0]).type&&"identify"!==e.type&&(e.visitor_id!==this.visitorId&&e.visitorId!==this.visitorId?(this.api.log.warn("Visitor id has diverged from agent"),this.logStopReason("VISITOR_ID_DIVERGED",{agentVisitorId:e.visitor_id||e.visitorId,recordingVisitorId:this.visitorId}),this.stop()):this._markEvents([e]))}stop(){this._stop&&this._stop(),this.send(),this.sendQueue.stop(),this.recordingId=null,clearInterval(this.interval),this.interval=null,this._stop=null,this.visitorConfig=null,this.api.Events.trigger("recording:paused"),this.visitorId=null,this.accountId=null,this.clearSessionInfo(),this.onRecordingStop()}handleHidden(){this.send({hidden:!0})}handleUnload(){this.api.ConfigReader.get(RECORDING_CONFIG_DISABLE_UNLOAD)||this.send({unload:!0})}buildRequestUrl(e,t){t=this.pendo._.extend({},this.api.agent.getJwtInfoCopy(),t),t=this.pendo._.map(t,function(e,t){return t+"="+e}).join("&");return t.length?e+"?"+t:e}sendFailure(e){this.stop(),this.logStopReason(e)}rateLimitExceeded(){this.send(),this.stop(),this.logStopReason("DATA_OVERLOAD")}send({unload:e=!1,keyframe:t=!1,hidden:n=!1}={}){if(this.isRecording()&&this.buffer&&this.recordingId&&!this.buffer.isEmpty())if(this.pendo.isSendingEvents()){var i=this.api.EventTracer.addTracerIds({}),t=this.pendo._.extend({type:"recording",visitorId:this.visitorId,accountId:this.accountId,keyFrame:!!t,lastKeyFrame:this.lastKeyFrameTime,recordingId:this.recordingId,recordingSessionId:this.sessionId(this.recordingId),url:this.pendo.url.get(),hasUserInteraction:this.pendo._.any(this.buffer.data,this.isUserInteraction)},i),i=(this.transport.usesSelfHostedWorker&&(t.usesSelfHostedWorker=!0),this.api.Events.eventCaptured.trigger(t),{v:this.pendo.VERSION,recordingId:this.recordingId}),i=(t.keyFrame&&(i.kf=1),this.isNewSession&&(this.isNewSession=!(i.ns=1)),this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+this.pendo.apiKey,i)),t=this.buffer.pack(t,this.pendo._);if(e||n)try{this.sendQueue.drain([{url:i,payload:t}],e)}catch(r){r.reason?this.logStopReason(r.reason,r.context):this.logStopReason("SEND_QUEUE_ERROR",r)}else this.sendQueue.push({url:i,payload:t});this.buffer.isEmpty()||this.send({unload:e})}else this.buffer.clear()}fetchVisitorConfig(){var e=this.pendo.compress({url:this.pendo.url.get(),metadata:this.pendo.getSerializedMetadata(),visitorId:this.visitorId,accountId:this.accountId}),e=this.buildRequestUrl(this.pendo.HOST+"/data/recordingconf/"+this.pendo.apiKey,{jzb:e,ct:(new Date).getTime(),v:this.pendo.VERSION});return fetch(e,{method:"GET"}).then(e=>e.json())}logStopReason(e,t){var n=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend({type:"recording",visitorId:this.visitorId||this.pendo.get_visitor_id(),accountId:this.accountId||this.pendo.get_account_id(),browserTime:(new Date).getTime(),keyFrame:!1,lastKeyFrame:0,recordingId:"log",recordingSessionId:"log",url:this.pendo.url.get(),subType:"log",recordingPayload:[],sequence:0,recordingPayloadCount:0,props:Object.assign({reason:e},t&&{error:t instanceof Error?null==t?void 0:t.message:t})},n),t=this.pendo.compress(e),n=this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+this.pendo.apiKey,{jzb:t,ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),t=this.pendo.compress(e,"binary");return this.transport.post(n,{body:t,keepalive:!0})["catch"](e=>{this.api.log.critical("Failed to send reason for stopping recording",{error:e})})}sendHostedResources(e){var t=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend(Object.assign(Object.assign({},e),{browserTime:(new Date).getTime()}),t),t=this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+this.pendo.apiKey,{ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),e=this.pendo.compress(e,"binary");return this.transport.post(t,{body:e,keepalive:!0})["catch"](e=>{this.api.log.critical("Failed to send hosted resources for recording event",{error:e})})}handleTabIdChange(){this.send(),this.clearSessionInfo(),this.snapshot()}}function wrapMethodWithCatch(t){return function(){try{return t.apply(this,arguments)}catch(e){this.api&&this.api.log&&this.api.log.critical("session recording error",{error:e})}}}function errorLogger(e){if("undefined"!=typeof Object&&"function"==typeof Object.getOwnPropertyNames&&e.constructor&&e.constructor.prototype)for(var t of Object.getOwnPropertyNames(e.constructor.prototype))"constructor"!==t&&(e[t]=wrapMethodWithCatch(e[t]));return e}function funcToSource(e,t){var t=t===undefined?null:t,n=[],e=(e=e.toString()).replace(/(['"])__worker_loader_strict__(['"])/g,"$1use strict$2");return n.push("("+e+")()"),t&&n.push("//# sourceMappingURL="+t+"\n"),n}function createURL(e,t){e=funcToSource(e,t),t=new Blob(e,{type:"application/javascript"});return URL.createObjectURL(t)}function createInlineWorkerFactory(t,n){var i;return function WorkerFactory(e){return i=i||createURL(t,n),new Worker(i,e)}}var WorkerFactory=createInlineWorkerFactory(function(){function i(e,t){return"function"==typeof e.bind?e.bind(t):e}function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function l(e,t){t=t||d;e=function(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||57344<=i?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}("string"==typeof e?e:JSON.stringify(e)),e=new s.Deflate(e).compress();return t===d?r.uint8ToBase64(e):e}function p(e,t){t=t.match(/https:\/\/[^"\\\s]+?\.(woff2?|ttf|otf|eot)(\?[^"\\\s]*)?\b/g),t=t?Array.from(new Set(t)):[];return{type:"recording",visitorId:e.visitorId,accountId:e.accountId,keyFrame:!1,lastKeyFrame:e.lastKeyFrame,recordingId:e.recordingId,recordingSessionId:e.recordingSessionId,url:e.url,subType:"hostedResources",recordingPayload:[],recordingPayloadMetadata:[],sequence:0,recordingPayloadCount:0,hostedResources:t}}var t,a,n,h,r,o,s,d;i(window.setTimeout,window),n=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return i(e[t],e)}(window),window.Promise,t=function(){var t=n;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a},h="function"==typeof(o=window.Promise)&&/native/.test(o)?o:t(),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),r={uint8ToBase64:function(e){var t,n,i,r=e.length%3,o="";for(t=0,i=e.length-r;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=function(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=a[n>>2])+a[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=a[n>>10])+a[n>>4&63])+a[n<<2&63]}return o}},function(){var Z=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===Z?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&d(this)}function d(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(u[255&e]<<24|u[e>>>8&255]<<16|u[e>>>16&255]<<8|u[e>>>24&255])>>32-t:u[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=u[s],s=0,o===r.length)&&(r=d(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=u[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var u=t;function c(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&e instanceof Array?new Uint8Array(e):e,this.c=0,t&&(t.lazy&&(this.i=t.lazy),"number"==typeof t.compressionType&&(this.d=t.compressionType),t.outputBuffer&&(this.a=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.prototype.push=function(e,t){var n,i,r=this.buffer,o=this.length;for(r[this.length++]=t,r[this.length++]=e;0<o&&(n=this.getParent(o),r[o]>r[n]);)i=r[o],r[o]=r[n],r[n]=i,i=r[o+1],r[o+1]=r[n+1],r[n+1]=i,o=n;return this.length},c.prototype.pop=function(){var e,t,n,i=this.buffer,r=i[0],o=i[1];for(this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],n=0;!((t=2*n+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[n]);)e=i[n],i[n]=i[t],i[t]=e,e=i[n+1],i[n+1]=i[t+1],i[t+1]=e,n=t;return{index:o,value:r,length:this.length}};for(var ne=2,l={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,D,n=this.input;switch(this.d){case 0:for(t=0,D=n.length;t<D;){var F,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===D,o=Z,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),F=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&F,a[s++]=F>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,U=i.length;o<U;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var d,u=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(u.b(1,1,Q),u.b(1,2,Q),re(this,n)),l=0,G=c.length;l<G;l++)if(d=c[l],te.prototype.b.apply(u,ie[d]),256<d)u.b(c[++l],c[++l],Q),u.b(c[++l],5),u.b(c[++l],c[++l],Q);else if(256===d)break;this.a=u.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,H,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,x,T,R,q=h,W=f,k=new(ee?Uint32Array:Array)(q+W),A=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<q;N++)k[_++]=m[N];for(N=0;N<W;N++)k[_++]=v[N];if(!ee)for(N=0,x=O.length;N<x;++N)O[N]=0;for(N=T=0,x=k.length;N<x;N+=_){for(_=1;N+_<x&&k[N+_]===k[N];++_);if(C=_,0===k[N])if(C<3)for(;0<C--;)O[A[T++]=0]++;else for(;0<C;)(R=C-3<(R=C<138?C:138)&&R<C?C-3:R)<=10?(A[T++]=17,A[T++]=R-3,O[17]++):(A[T++]=18,A[T++]=R-11,O[18]++),C-=R;else if(A[T++]=k[N],O[k[N]]++,--C<3)for(;0<C--;)A[T++]=k[N],O[k[N]]++;else for(;0<C;)C-3<(R=C<6?C:6)&&R<C&&(R=C-3),A[T++]=16,A[T++]=R-3,O[16]++,C-=R}for(e=ee?A.subarray(0,T):A.slice(0,T),y=oe(O,7),S=0;S<19;S++)j[S]=y[z[S]];for(g=19;4<g&&0===j[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(j[S],3,Q);for(S=0,H=e.length;S<H;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],J=I[0],K=I[1],$=L[0],X=L[1],P=0,Y=p.length;P<Y;++P)if(M=p[P],E.b(J[M],K[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b($[V],X[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,d=w[e.length];switch(a[s++]=65535&d,a[s++]=d>>16&255,a[s++]=d>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(d=n,a[s++]=d[0],a[+s]=d[1],a[5]=d[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,c=null}var i,r,o,a,s,d,u,c,l,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===Z&&(p[s]=[]),d=p[s],!(0<g--)){for(;0<d.length&&32768<i-d[0];)d.shift();if(r<=i+3){for(c&&n(c,-1),o=0,a=r-i;o<a;++o)l=t[i+o],h[f++]=l,++m[l];break}0<d.length?(u=function(e,t,n){var i,r,o,a,s,d,u=0,c=e.length;a=0,d=n.length;e:for(;a<d;a++){if(i=n[d-a-1],(o=3)<u){for(s=u;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=u}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(u<o&&(r=i,u=o),258===o)break}return new b(u,t-r)}(t,i,d),c?c.length<u.length?(l=t[i-1],h[f++]=l,++m[l],n(u,0)):n(c,-1):u.length<y?c=u:n(u,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}d.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,d=new c(572),u=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)u[o]=0;for(o=0;o<s;++o)0<e[o]&&d.push(o,e[o]);if(n=Array(d.length/2),i=new(ee?Uint32Array:Array)(d.length/2),1===n.length)u[d.pop().index]=1;else{for(o=0,a=d.length/2;o<a;++o)n[o]=d.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,d=new(ee?Uint16Array:Array)(t),u=new(ee?Uint8Array:Array)(t),c=new(ee?Uint8Array:Array)(n),l=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(d[t-1]=n,r=0;r<t;++r)f<g?u[r]=0:(u[r]=1,f-=g),f<<=1,d[t-2-r]=(d[t-1-r]/2|0)+n;for(d[0]=u[0],l[0]=Array(d[0]),p[0]=Array(d[0]),r=1;r<t;++r)d[r]>2*d[r-1]+u[r]&&(d[r]=2*d[r-1]+u[r]),l[r]=Array(d[r]),p[r]=Array(d[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<d[t-1];++o)l[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===u[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<d[r];o++)(a=l[r+1][s]+l[r+1][s+1])>e[i]?(l[r][o]=a,p[r][o]=n,s+=2):(l[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===u[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--c[t],++h[e]}(r)}return c}(i,i.length,t),o=0,a=n.length;o<a;++o)u[n[o].index]=r[o]}return u}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,d=e.length;s<d;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,d=16;s<=d;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,d=e.length;s<d;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,S=l,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,d=a.length;s<d;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var u,c=1,l=0,p=o.length,h=0;0<p;){for(p-=u=1024<p?1024:p;l+=c+=o[h++],--u;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call((o={exports:{}}).exports),s={Deflate:e(o.exports).Zlib.Deflate},d="base64url",self.onmessage=function(e){try{var t,n,i,r,o,a,s,d,u,c;"init"===e.data.type&&e.data.lockID?navigator.locks&&navigator.locks.request(e.data.lockID,function(){return postMessage({ready:!0}),new h(function(){})}):e.data.url&&e.data.payload?(c=(t=e.data).url,n=t.payload,i=t.shouldCacheResources,0===Object.keys(n).length&&postMessage({type:"emptyPayload"}),r=n.sequence,o=JSON.stringify(n.recordingPayload),s=104857600<=(a=(new TextEncoder).encode(o).length),postMessage({type:"recordingPayloadSize",recordingPayloadSize:a,exceedsPayloadSizeLimit:s}),s||(i&&(d=p(n,o)).hostedResources.length&&postMessage({type:"hostedResources",hostedResourcesEvent:d}),n.recordingSize=a,u=l(n,"binary"),c="".concat(c,"&ct=").concat((new Date).getTime()),fetch(c,{method:"POST",body:u}).then(function(e){e.status<200||300<=e.status?postMessage({error:new Error("received status code ".concat(e.status,": ").concat(e.statusText)),status:e.status,sequence:r}):postMessage({sequence:r})})["catch"](function(e){postMessage({error:e,sequence:r})}))):postMessage({type:"missingData",missingData:e.data.url?"PAYLOAD":"URL"})}catch(e){postMessage({error:e})}}},null);function createReplayPlugin(){return errorLogger(new SessionRecorder(record(),WorkerFactory))}var NUM_OF_KEYS_LIMIT=50,DEPTH_OF_LIMIT=4;function serializeHTML(e){var t;return e&&e.nodeType===e.ELEMENT_NODE&&(t=e.cloneNode(!1),(e=e.textContent)&&(t.textContent=e),t.outerHTML)||""}function isObject(e){return null!==e&&"object"==typeof e&&((e=Object.getPrototypeOf(e))===Object.prototype||null===e)}function isObjTooDeep(t,n){var e;return 0===n||0!==(e=Object.keys(t)).length&&e.some(function(e){e=t[e];return isObject(e)&&isObjTooDeep(e,n-1)})}function shouldIgnore(e){return e instanceof RegExp||!!isObject(e)&&(Object.keys(e).length>NUM_OF_KEYS_LIMIT||isObjTooDeep(e,DEPTH_OF_LIMIT))}function stringify(e){return e===undefined?"undefined":"object"!=typeof e?"bigint"==typeof e?e.toString()+"n":"function"==typeof e?e.toString():String(e):JSON.stringify(e,function(e,t){if(null!==t){if(t===undefined)return"undefined";if(shouldIgnore(t))return t.toString?t.toString():"[object Object]";if(t instanceof ArrayBuffer)return"ArrayBuffer { byteLength: ".concat(t.byteLength," }");if(t instanceof Error)return t.name+": "+t.message;if(t instanceof Node)return t instanceof HTMLElement?serializeHTML(t):t.nodeName;if(t instanceof Event){var n,i={};for(n in t){var r=t[n];i[n]=Array.isArray(r)&&r[0]instanceof HTMLElement?serializeHTML(r[0]):r}return i}}return t})}var StackFrame=function(){function e(e){this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}return e.prototype.toString=function(){var e=this.fileName,t=this.functionName,n=this.lineNumber,n=void 0===n?"":n,i=this.columnNumber,i=void 0===i?"":i;return t?"".concat(t," (").concat(e,":").concat(n,":").concat(i,")"):"".concat(e,":").concat(n,":").concat(i)},e}(),FIREFOX_SAFARI_STACK_REGEXP=/(^|@)\S+:\d+/,CHROME_EDGE_STACK_REGEXP=/^\s*at .*(\S+:\d+|\(native\))/m,SAFARI_NATIVE_CODE_REGEXP=/^(eval@)?(\[native code])?$/,LOCATION_REGEXP=/(.+?)(?::(\d+))?(?::(\d+))?$/,DEFAULT_NUM_FRAMES_TO_SKIP=5,ErrorStackParser={parse:function(e,t){return null!=e&&e.stack?CHROME_EDGE_STACK_REGEXP.test(e.stack)?this.parseChromiumStack(e,t):FIREFOX_SAFARI_STACK_REGEXP.test(e.stack)?this.parseFirefoxSafariStack(e,t):[]:[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=LOCATION_REGEXP.exec(e.replace(/[()]/g,""));if(t)return[t[1],t[2]||undefined,t[3]||undefined];throw new Error("Cannot parse given url: ".concat(e))},parseHelper:function(e,t,n,i){for(var r=e.regex,o=e.includeMatchedLine,a=t.stack.split("\n"),s=[],d=0,u=0;u<a.length;u++){var c=a[u],l=r.test(c),l=o&&!l||!o&&l;if(!l&&!(++d<=DEFAULT_NUM_FRAMES_TO_SKIP)){if(n&&DEFAULT_NUM_FRAMES_TO_SKIP+n<d)break;i(c,s)}}return s},parseChromiumStack:function(e,t){var r=this;return this.parseHelper({regex:CHROME_EDGE_STACK_REGEXP,includeMatchedLine:!0},e,t,function(e,t){var e=(e=(n=-1<(e=-1<e.indexOf("(eval ")?e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,"").replace(/^\s+/,"").replace(/\(eval code/g,"("):e.replace(/^\s+/,"")).indexOf("(")&&-1<e.indexOf("):")?e.match(/ (\((.+):(\d+):(\d+)\)$)/):n)?e.replace(n[0],""):e).split(/\s+/).slice(1),n=r.extractLocation(n?n[1]:e.pop()||""),e=e.join(" ")||undefined,i="eval"===n[0]||"<anonymous>"===n[0]?undefined:n[0];t.push(new StackFrame({functionName:e,fileName:i,lineNumber:n[1],columnNumber:n[2]}))})},parseFirefoxSafariStack:function(e,t){var r=this;return this.parseHelper({regex:SAFARI_NATIVE_CODE_REGEXP,includeMatchedLine:!1},e,t,function(e,t){var n,i;-1===(e=-1<e.indexOf(" > eval")?e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1"):e).indexOf("@")&&-1===e.indexOf(":")?t.push(new StackFrame({functionName:e})):(n=(n=e.match(i=/((.*".+"[^@]*)?[^@]*)(?:@)/))&&n[1]?n[1]:undefined,i=r.extractLocation(e.replace(i,"")),t.push(new StackFrame({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})))})}};function includes(e,t){return-1!==e.indexOf(t)}function getResourceType(e,t){if(!t||"string"!=typeof t)return"resource";t=t.toLowerCase();if("inline"===e){if(includes(t,"script-src-attr"))return"inline event handler";if(includes(t,"style-src-attr"))return"inline style attribute";if(includes(t,"script"))return"inline script";if(includes(t,"style"))return"inline style"}return"eval"===e?"eval script execution":includes(t,"worker")?"worker":includes(t,"script")?includes(t,"elem")?"script element":"script":includes(t,"style")?includes(t,"elem")?"style element":"stylesheet":includes(t,"img")?"image":includes(t,"font")?"font":includes(t,"connect")?"network request":includes(t,"media")?"media resource":includes(t,"frame-ancestors")?"display of your page in a frame":includes(t,"frame")?"frame":includes(t,"manifest")?"manifest":includes(t,"base-uri")?"base URI":includes(t,"form-action")?"form submission":"resource"}function getDirective(e,t){if(e&&t)for(var n=t.toLowerCase(),i=0,r=e.split(";");i<r.length;i++){var o=r[i].trim(),a=o.toLowerCase();if(a===n||a.startsWith("".concat(n," ")))return o}return""}function getArticle(e){return e&&"string"==typeof e&&includes("aeiou",e.trim().charAt(0).toLowerCase())?"An":"A"}function formatBlockedUri(e){return e&&"inline"!==e&&"eval"!==e?e:""}function createCspViolationMessage(e,t,n,i){if(!t||"string"!=typeof t)return"Content Security Policy: Unknown violation occurred.";try{var r,o,a,s,d,u=n?" (Report-Only)":"";return"frame-ancestors"===(null==t?void 0:t.toLowerCase())?"Content Security Policy".concat(u,": The display of ").concat(e," in a frame was blocked because an ancestor violates your site's frame-ancestors policy.\nCurrent CSP: \"").concat(i,'".'):(o=getArticle(r=getResourceType(e,t)),a=formatBlockedUri(e),s=getDirective(i,t)||t,d="".concat(o," ").concat(r).concat(a?" from ".concat(a):""),"Content Security Policy".concat(u,": ").concat(d," was blocked by your site's `").concat(s,'` policy.\nCurrent CSP: "').concat(i,'".'))}catch(c){return"Content Security Policy: Error formatting violation message: ".concat(c.message)}}var MAX_LENGTH=1e3,PII_PATTERN={ip:/\b(?:\d{1,3}\.){3}\d{1,3}\b/g,ssn:/\b\d{3}-\d{2}-\d{4}\b/g,creditCard:/\b(?:\d[ -]?){12,18}\d\b/g,httpsUrls:/https:\/\/[^\s]+/g,email:/[\w._+-]+@[\w.-]+\.\w+/g},PII_REPLACEMENT="*".repeat(10),JSON_PII_KEYS=["password","email","key","token","auth","authentication","phone","address","ssn"],UNABLE_TO_DISPLAY_BODY="[Unable to display body: detected PII could not be redacted]",joinedKeys=JSON_PII_KEYS.join("|"),keyPattern='"([^"]*(?:'.concat(joinedKeys,')[^"]*)"'),acceptedValues='("([^"\\\\]*(?:\\\\.[^"\\\\]*)*")|(\\d+)|(true|false))';function truncate(e,t){return void 0===t&&(t=!1),e.length<=MAX_LENGTH?e:t?e.slice(0,MAX_LENGTH).concat("..."):e.slice(0,MAX_LENGTH)}function generateLogKey(e,t,n){return"".concat(e,"|").concat(t,"|").concat(n)}function mightContainPII(e){return/[\d]{2,}|https:\/\/|@/.test(e)}function scrubPII(e){var t=e.string,e=e._;return t&&"string"==typeof t&&mightContainPII(t)?e.reduce(e.values(PII_PATTERN),function(e,t){return e.replace(t,PII_REPLACEMENT)},t):t}function scrubJsonPII(e){var t;return new RegExp("".concat(keyPattern,"\\s*:\\s*[\\{\\[]"),"i").test(e)?UNABLE_TO_DISPLAY_BODY:(t=new RegExp("".concat(keyPattern,"\\s*:\\s*").concat(acceptedValues),"gi"),e.replace(t,function(e,t){return'"'.concat(t,'":"').concat(PII_REPLACEMENT,'"')}))}function mightContainJson(e,t){return!!(e&&"string"==typeof e&&(e=e.charAt(0),t&&-1!==t.indexOf("application/json")||"{"===e||"["===e))}function maskSensitiveFields(e){var t=e.string,n=e.contentType,e=e._;return t=t&&"string"==typeof t&&mightContainPII(t=mightContainJson(t,n)?scrubJsonPII(t):t)?scrubPII({string:t,_:e}):t}var DEV_LOG_TYPE="devlog";function createDevLogEnvelope(e,t){return{browser_time:e.util.getNow(),url:t.url.get(),visitorId:t.get_visitor_id(),accountId:t.get_account_id(),type:DEV_LOG_TYPE}}var TOKEN_MAX_SIZE=100,TOKEN_REFILL_RATE=10,TOKEN_REFRESH_INTERVAL=1e3,MAX_UNCOMPRESSED_SIZE=125e3,DevlogBuffer=function(){function e(e,t){this.pendo=e,this.pluginAPI=t,this.events=[],this.lastEvent=null,this.uncompressedSize=0,this.payloads=[],this.tokens=TOKEN_MAX_SIZE,this.lastRefillTime=this.pluginAPI.util.getNow(),this.nextRefillTime=this.lastRefillTime+TOKEN_REFRESH_INTERVAL}return e.prototype.isEmpty=function(){return 0===this.events.length&&0===this.payloads.length},e.prototype.refillTokens=function(){var e,t=this.pluginAPI.util.getNow();t>=this.nextRefillTime&&(e=t-this.lastRefillTime,e=Math.floor(e/TOKEN_REFRESH_INTERVAL),this.tokens=Math.min(this.tokens+e*TOKEN_REFILL_RATE,TOKEN_MAX_SIZE),this.lastRefillTime=t,this.nextRefillTime=t+TOKEN_REFRESH_INTERVAL)},e.prototype.clear=function(){this.events=[],this.lastEvent=null,this.uncompressedSize=0},e.prototype.hasTokenAvailable=function(){return this.refillTokens(),0<this.tokens},e.prototype.estimateEventSize=function(e){return JSON.stringify(e).length},e.prototype.push=function(e){var t;return!!this.hasTokenAvailable()&&(t=this.estimateEventSize(e),this.uncompressedSize+t>MAX_UNCOMPRESSED_SIZE&&this.compressCurrentChunk(),this.uncompressedSize+=t,this.lastEvent=e,this.events.push(e),this.tokens=Math.max(this.tokens-1,0),!0)},e.prototype.compressCurrentChunk=function(){var e;0!==this.events.length&&(e=this.pendo.compress(this.events),this.payloads.push(e),this.clear())},e.prototype.generateUrl=function(){var e={v:this.pendo.VERSION,ct:this.pluginAPI.util.getNow()};return this.pluginAPI.transmit.buildBaseDataUrl(DEV_LOG_TYPE,this.pendo.apiKey,e)},e.prototype.pack=function(){var t,e;if(!this.isEmpty())return t=this.generateUrl(),this.compressCurrentChunk(),e=this.pendo._.map(this.payloads,function(e){return{jzb:e,url:t}}),this.payloads=[],e},e}(),DevlogTransport=function(){function e(e,t){this.pendo=e,this.pluginAPI=t}return e.prototype.buildGetUrl=function(e,t){var n={},i=(this.pluginAPI.agent.treatAsAdoptPartner()&&this.pluginAPI.agent.addAccountIdParams(n,this.pendo.get_account_id(),this.pluginAPI.ConfigReader.get("oemAccountId")),this.pluginAPI.agent.getJwtInfoCopy()),i=(this.pendo._.isEmpty(i)||this.pendo._.extend(n,i),n.jzb=t,this.pendo._.map(n,function(e,t){return"".concat(t,"=").concat(e)}).join("&"));return"".concat(e).concat(-1!==e.indexOf("?")?"&":"?").concat(i)},e.prototype.get=function(e,t){return t.method="GET",this.pluginAPI.transmit.fetchKeepalive.supported()?this.pluginAPI.transmit.fetchKeepalive(e,t):this.pendo.ajax.get(e)},e.prototype.sendRequestWithGet=function(e){var t=e.url,e=e.jzb,t=this.buildGetUrl(t,e);return this.get(t,{headers:{"Content-Type":"application/octet-stream"}})},e.prototype.post=function(e,t){return t.method="POST",t.keepalive&&this.pluginAPI.transmit.fetchKeepalive.supported()?this.pluginAPI.transmit.fetchKeepalive(e,t):t.keepalive&&this.pluginAPI.transmit.sendBeacon.supported()?this.pluginAPI.transmit.sendBeacon(e,new Blob([t.body]))?Promise$2.resolve():Promise$2.reject(new Error("sendBeacon failed to send devlog data")):this.pendo.ajax.post(e,t.body)},e.prototype.sendRequestWithPost=function(e,t){var n=e.url,e=e.jzb,i=this.pluginAPI.agent.getJwtInfoCopy(),e={events:e,browser_time:this.pluginAPI.util.getNow()},e=(this.pluginAPI.agent.treatAsAdoptPartner()&&this.pluginAPI.agent.addAccountIdParams(e,this.pendo.get_account_id(),this.pluginAPI.ConfigReader.get("oemAccountId")),JSON.stringify(this.pendo._.extend(e,i)));return this.post(n,{body:e,headers:{"Content-Type":"application/json"},keepalive:t})},e.prototype.sendRequest=function(e,t){var n=e.url,e=e.jzb;return e.length<=this.pluginAPI.constants.ENCODED_EVENT_MAX_LENGTH&&!this.pluginAPI.ConfigReader.get("sendEventsWithPostOnly")?this.sendRequestWithGet({url:n,jzb:e}):this.sendRequestWithPost({url:n,jzb:e},t)},e}();function ConsoleCapture(){var a,s,d,u,i,n,r,c,l=!1,o="captureConsoleLogs",p=["log","warn","error","info"],h="console",f="";return{name:"ConsoleCapture",initialize:function(e,t){s=e._;t=(a=t).ConfigReader;t.addOption(o,[t.sources.PENDO_CONFIG_SRC],!1),t.get(o)&&(u=new DevlogBuffer(d=e,a),r=new DevlogTransport(e,a),i=new a.SendQueue(r.sendRequest.bind(r)),n=setInterval(function(){i.failed()||C()},a.constants.SEND_INTERVAL),i.start(),a.Events.ready.on(S),a.Events["recording:unpaused"].on(b),a.Events["recording:paused"].on(w),a.Events.appUnloaded.on(m),a.Events.appHidden.on(g),a.Events["ptm:paused"].on(v),a.Events["ptm:unpaused"].on(y))},teardown:x,addIntercepts:t,createConsoleEvent:I,captureStackTrace:_,send:C,setCaptureState:e,recordingStarted:b,recordingStopped:w,onAppHidden:g,onAppUnloaded:m,onPtmPaused:v,onPtmUnpaused:y,securityPolicyViolationFn:E,get isCapturingConsoleLogs(){return l},get buffer(){return u},get sendQueue(){return i},get isPtmPaused(){return c}};function g(){C({hidden:!0})}function m(){C({unload:!0})}function v(){c=!0}function y(){if(c=!1,!u.isEmpty()){for(var e=0,t=u.events;e<t.length;e++){var n=t[e];a.Events.eventCaptured.trigger(n)}C()}}function e(e){var e=void 0===e?{}:e,t=e.shouldCapture,t=void 0!==t&&t,e=e.reason,e=void 0===e?"":e;t!==l&&(l=t,a.log.info("[ConsoleCapture] Console log capture ".concat(t?"started":"stopped").concat(e?": ".concat(e):"")))}function b(){e({shouldCapture:!0,reason:"recording started"})}function w(){e({shouldCapture:!1,reason:"recording stopped"})}function S(){try{t(),a.attachEventInternal(window,"securitypolicyviolation",E)}catch(e){a.log.error("Error setting up console capture intercepts: ",e),x()}}function t(){s.each(p,function(n){var e=console[n];e&&(console[n]=s.wrap(e,function(e){var t=s.toArray(arguments).slice(1);e.apply(console,t),I(t,n)}),console[n]._pendoUnwrap=function(){console[n]=e})})}function E(e){var t,n,i;e&&"object"==typeof e&&(i=e.blockedURI,t=e.violatedDirective,n=e.effectiveDirective,I([createCspViolationMessage(i,t||n,i="report"===e.disposition,e.originalPolicy)],i?"warn":"error",{skipStackTrace:!0,skipScrubPII:!0}))}function I(e,t,n){var n=void 0===n?{}:n,i=n.skipStackTrace,i=void 0!==i&&i,n=n.skipScrubPII,n=void 0!==n&&n;if(l&&e&&0!==e.length&&s.contains(p,t)){e=s.compact(s.map(e,function(e){var t;try{t=stringify(e)}catch(n){a.log.error("Error stringifying arg: ",n)}return t})).join(" ");if(e){var r,o="",i=(i||(o=_("error"===t?4:1)),generateLogKey(t,e=truncate(e),o=truncate(o)));if(i!==f||!u.lastEvent)return r=createDevLogEnvelope(a,d),r=__assign(__assign({},r),{subType:h,devLogLevel:"log"===t?"info":t,devLogMessage:n?e:scrubPII({string:e,_:s}),devLogTrace:o,devLogCount:1}),u.hasTokenAvailable()&&(c||a.Events.eventCaptured.trigger(r),u.push(r),f=i),r;u.lastEvent.devLogCount++}}}function _(e){try{var t=ErrorStackParser.parse(new Error,e);return s.map(t,function(e){return e.toString()}).join("\n")}catch(n){return""}}function C(e){var t,e=void 0===e?{}:e,n=e.unload,n=void 0!==n&&n,e=e.hidden,e=void 0!==e&&e;u&&!u.isEmpty()&&(d.isSendingEvents()?(t=u.pack())&&0!==t.length&&(n||e?i.drain(t,n):i.push.apply(i,t)):u.clear())}function x(){C({unload:!0}),n&&clearInterval(n),i&&i.stop(),u&&u.clear(),a.Events.appHidden.off(g),a.Events.appUnloaded.off(m),a.Events["ptm:paused"].off(v),a.Events["ptm:unpaused"].off(y),a.Events["recording:unpaused"].off(b),a.Events["recording:paused"].off(w),a.detachEventInternal(window,"securitypolicyviolation",E),s.each(p,function(e){if(!console[e])return s.noop;e=console[e]._pendoUnwrap;s.isFunction(e)&&e()})}}function NetworkCapture(){let o,a,n={},i,r,s,d,u,c,l,p,h=!1,f=[];const g="captureNetworkRequests",D="network",t="networkLogs",m="networkLogs.allowedRequestHeaders",v="networkLogs.allowedResponseHeaders",F="networkLogs.captureRequestBody",U="networkLogs.captureResponseBody",y="networkLogs.excludeRequestUrls",b={"content-type":!0,"content-length":!0,accept:!0,"accept-language":!0},w={"cache-control":!0,"content-length":!0,"content-type":!0,"content-language":!0};return{name:"NetworkCapture",initialize:function(e,t){o=t,a=e;t=o.ConfigReader,t.addOption(g,[t.sources.PENDO_CONFIG_SRC],!1),t=t.get(g);t&&(i=new DevlogBuffer(e,o),d=new DevlogTransport(e,o),r=new o.SendQueue(d.sendRequest.bind(d)),S(),E(m,b),E(v,w),I(),G(),s=setInterval(()=>{r.failed()||P()},o.constants.SEND_INTERVAL),r.start(),o.Events.ready.on(B),o.Events["recording:unpaused"].on(R),o.Events["recording:paused"].on(k),o.Events["ptm:paused"].on(_),o.Events["ptm:unpaused"].on(C),o.Events.appHidden.on(x),o.Events.appUnloaded.on(T),p=o.transmit.buildBaseDataUrl(DEV_LOG_TYPE,a.apiKey))},teardown:function(){s&&clearInterval(s);r&&r.stop();i&&i.clear();o.NetworkRequest.off({request:A,response:O,error:N}),n={},o.Events["ptm:paused"].off(_),o.Events["ptm:unpaused"].off(C),o.Events.appHidden.off(x),o.Events.appUnloaded.off(T),o.Events["recording:unpaused"].off(R),o.Events["recording:paused"].off(k)},handleRequest:A,handleResponse:O,handleError:N,startCapture:B,createNetworkEvent:q,send:P,onPtmPaused:_,onPtmUnpaused:C,onAppHidden:x,onAppUnloaded:T,setCaptureState:e,recordingStarted:R,recordingStopped:k,addConfigOptions:S,processHeaderConfig:E,extractHeaders:M,setupBodyCallbacks:I,processBody:L,processRequestBody:z,processResponseBody:j,buildExcludeRequestUrls:G,isUrlExcluded:H,get isCapturingNetworkLogs(){return h},get requestMap(){return n},get buffer(){return i},get sendQueue(){return r},get isPtmPaused(){return u},get allowedRequestHeaders(){return b},get allowedResponseHeaders(){return w},get requestBodyCb(){return c},get responseBodyCb(){return l},get excludeRequestUrls(){return f}};function S(){var e=o["ConfigReader"];e.addOption(t,[e.sources.SNIPPET_SRC],{}),e.addOption(m,[e.sources.SNIPPET_SRC],[]),e.addOption(v,[e.sources.SNIPPET_SRC],[]),e.addOption(F,[e.sources.SNIPPET_SRC],undefined),e.addOption(U,[e.sources.SNIPPET_SRC],undefined),e.addOption(y,[e.sources.SNIPPET_SRC],[])}function E(e,t){e=o.ConfigReader.get(e);e&&0!==e.length&&a._.each(e,e=>{e&&a._.isString(e)&&(t[e.toLowerCase()]=!0)})}function I(){var e=o.ConfigReader.get(t);e&&(a._.isFunction(e.captureRequestBody)&&(c=e.captureRequestBody),a._.isFunction(e.captureResponseBody))&&(l=e.captureResponseBody)}function G(){var e=o.ConfigReader.get(y);e&&0!==e.length&&a._.each(e,e=>{e=function(e){if(e){var t=a._.isRegExp(e);if(a._.isString(e)||t)return t?e:(t=o.util.escapeRegExp(e),new RegExp(`^${t}$`))}}(e);e&&f.push(e)})}function _(){u=!0}function C(){if(u=!1,!i.isEmpty()){for(const e of i.events)o.Events.eventCaptured.trigger(e);P()}}function x(){P({hidden:!0})}function T(){P({unload:!0})}function e({shouldCapture:e=!1,reason:t=""}={}){e!==h&&(h=e,o.log.info("[NetworkCapture] Network request capture "+(e?"started":"stopped")+(t?": "+t:"")))}function R(){return e({shouldCapture:!0,reason:"recording started"})}function k(){return e({shouldCapture:!1,reason:"recording stopped"})}function B(){o.NetworkRequest.on({request:A,response:O,error:N})}function H(t){return!(!t||!a._.isString(t))&&0!==f.length&&a._.some(f,e=>e.test(t))}function A(e){h&&e&&!H(e.url)&&(n[e.requestId]=e)}function O(e){var t;h&&e&&(t=n[e.requestId])&&(-1!==t.url.indexOf(p)&&200===e.status||i.hasTokenAvailable()&&(t=q({request:t,response:e}),u||o.Events.eventCaptured.trigger(t),i.push(t)),delete n[e.requestId])}function N({error:e,context:t}){h&&(e.requestId&&n[e.requestId]&&delete n[e.requestId],-1!==t.indexOf("fetch")&&o.log.debug("[NetworkCapture] Fetch tracking failed:",e),-1!==t.indexOf("xhr"))&&o.log.debug("[NetworkCapture] XHR tracking failed:",e)}function M(i,r){var{keys:e,reduce:t}=a._;return i&&r?t(e(i),(e,t)=>{var n=t.toLowerCase();return r[n]&&e.push(t+": "+i[t]),e},[]):[]}function L(e,t){return e&&a._.isString(e)?truncate(maskSensitiveFields({string:e,contentType:t,_:a._}),!0):""}function z({request:e}){if(!e||!e.body||!c)return"";try{return L(c(e.body,{request:e}),a._.get(e,"headers.content-type",""))}catch(t){return o.log.error("[NetworkCapture] Error processing request body",t),"[Failed to process request body]"}}function j({response:e}){if(!e||!e.body||!l)return"";try{return L(l(e.body,{response:e}),a._.get(e,"headers.content-type",""))}catch(t){return o.log.error("[NetworkCapture] Error processing response body",t),"[Failed to process response body]"}}function q({request:e,response:t}){var n=createDevLogEnvelope(o,a),i=M(e.headers,b),r=M(t.headers,w),n=Object.assign(Object.assign({},n),{subType:D,devLogMethod:e.method,devLogStatusCode:t.status,devLogRequestUrl:e.url,devLogRequestHeaders:i,devLogResponseHeaders:r,devLogCount:1});return c&&(n.devLogRequestBody=z({request:e})),l&&(n.devLogResponseBody=j({response:t})),n}function P({unload:e=!1,hidden:t=!1}={}){var n;i&&!i.isEmpty()&&(a.isSendingEvents()?(n=i.pack(),e||t?r.drain(n,e):r.push(...n)):i.clear())}}var PREDICT_STEP_REGEX=/\$\$predict\$\$/,DRAG_THRESHOLD=5,STYLE_ID="pendo-predict-plugin-styles",PREDICT_BASE_URL="https://predict.pendo.io",GUIDE_BUTTON_IDENTIFIER='button:contains("token")',pluginVersion="1.0.1",$=function(e){return document.getElementById(e)},createElement=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n=null);for(var i=document.createElement(e),r=Object.entries(t),o=0;o<r.length;o++){var a=r[o],s=a[0],a=a[1];"className"===s?i.className=a:"innerHTML"===s?i.innerHTML=a:i[s]=a}return n&&n.appendChild(i),i},injectStyles=function(e,t){void 0===t&&(t=function(){});var n="".concat(STYLE_ID,"-").concat(e);$(n)?t("[predict] style already exists, skipping: ".concat(n)):(t("[predict] injecting styles: ".concat(n)),createElement("style",{id:n,textContent:"\n #".concat(e," {\n display: none !important;\n }\n .frame-explanation {\n aspect-ratio: 16/9; overflow: hidden; min-height: 300px;\n width: 100vw; height: 100vh; background: transparent;\n position: fixed; bottom: 0; right: 0; z-index: 1; border: none;\n visibility: hidden; opacity: 0; pointer-events: none;\n transition: opacity 0.1s ease-out, visibility 0s linear 0.1s;\n display: none;\n }\n .frame-explanation.is-visible {\n z-index: 999999;\n visibility: visible; opacity: 1; pointer-events: auto;\n transition: opacity 0.1s ease-out, visibility 0s linear 0s;\n }\n .frame-explanation.is-exists {\n display: block !important;\n }\n .floating-modal-container {\n position: fixed; top: 20px; right: 20px; z-index: 500000;\n visibility: hidden; opacity: 0; pointer-events: none;\n transition: opacity 0.1s ease-out, visibility 0s linear 0.1s;\n border-radius: 8px; box-shadow: 0px 4px 12px 0px rgba(0,0,0,0.15);\n overflow: hidden; width: 384px; height: 176px;\n }\n .floating-modal-container.is-visible {\n visibility: visible; opacity: 1; pointer-events: auto;\n transition: opacity 0.1s ease-out, visibility 0s linear 0s;\n }\n .floating-modal-container.is-dragging { will-change: left, top; }\n .floating-modal-drag-handle {\n position: absolute; left: 50%; transform: translateX(-50%);\n top: 5px; width: calc(100% - 46px); min-width: 166px; height: 17px;\n z-index: 9999; transition: left 0.2s ease, right 0.2s ease;\n display: flex; justify-content: center; align-items: center;\n }\n .floating-modal-drag-handle svg g { fill: #A0A0A0; }\n .floating-modal-drag-handle:hover { cursor: grab; }\n .floating-modal-drag-handle:hover svg g { fill: #1f2937; }\n .floating-modal-drag-handle.is-dragging { cursor: grabbing; }\n .floating-modal-drag-handle.is-collapsed { top: 0px; }\n .frame-floating-modal { width: 100%; height: 100%; background: white; border: none; display: block; }\n ")},document.head))},getRecordIdFromUrl=function(e,t){void 0===t&&(t=function(){});var e=window.location.href.match(e),e=null!=(e=null==e?void 0:e[1])?e:null;return t("[predict] recordId found: ".concat(e)),e},safeStringify=function(e,t){try{return JSON.stringify(e)}catch(n){return null!=t?t:""}},safeParse=function(e,t,n){void 0===n&&(n=function(){});try{return JSON.parse(e)}catch(i){return n("[predict] JSON parse error: ".concat(i)),t}},buildQueryParams=function(e){var t=new URLSearchParams,n=Object.entries(e);t.set("pluginVersion",pluginVersion);for(var i=0;i<n.length;i++){var r=n[i],o=r[0],r=r[1];null!=r&&t.set(o,("object"==typeof r?safeStringify:String)(r))}return t.toString()},setupDragAndDrop=function(n,r){var o=!1,a=!1,i=!1,s=0,d=0,u=0,c=0,l=null,p=r.querySelector("iframe"),e=function(e){var t;0===e.button&&(e.preventDefault(),a=!(o=!0),n.classList.add("is-dragging"),r.classList.add("is-dragging"),p&&(p.style.pointerEvents="none"),t=r.getBoundingClientRect(),u=t.left,c=t.top,r.style.left="".concat(u,"px"),r.style.right="auto",s=e.clientX,d=e.clientY,document.addEventListener("mousemove",h),document.addEventListener("mouseup",f))},h=function(e){var n,i;o&&(n=e.clientX-s,i=e.clientY-d,(Math.abs(n)>DRAG_THRESHOLD||Math.abs(i)>DRAG_THRESHOLD)&&(a=!0),l&&cancelAnimationFrame(l),l=requestAnimationFrame(function(){var e=r.getBoundingClientRect(),t=Math.max(0,Math.min(u+n,window.innerWidth-e.width)),e=Math.max(0,Math.min(c+i,window.innerHeight-e.height));r.style.left="".concat(t,"px"),r.style.top="".concat(e,"px")}))},f=function(e){var t;o&&(o=!1,n.classList.remove("is-dragging"),r.classList.remove("is-dragging"),p&&(p.style.pointerEvents=""),l&&cancelAnimationFrame(l),l=null,document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",f),!a)&&i&&p&&null!=(t=null==p?void 0:p.contentWindow)&&t.postMessage({type:"TRIGGER_EXPAND"},PREDICT_BASE_URL)};return n.setCollapsedState=function(e){i=e,n.classList.toggle("is-collapsed",e)},n.addEventListener("mousedown",e),n.cleanup=function(){n.removeEventListener("mousedown",e),document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",f),l&&cancelAnimationFrame(l)},n},createExplanationIframe=function(e){var t=e.analysisId,n=e.recordId,e=e.configuration,i="frameExplanation-".concat(t),r=(null!=(r=$(i))&&r.remove(),"".concat(PREDICT_BASE_URL,"/external/analysis/").concat(t,"/prediction/drilldown/").concat(n)),t=buildQueryParams(e);createElement("iframe",{id:i,className:"frame-explanation",title:"Explanation",loading:"lazy",referrerPolicy:"strict-origin-when-cross-origin",allowFullscreen:!0,src:"".concat(r,"?").concat(t)},document.body)},createFloatingModal=function(e){for(var t=e.recordId,n=e.configuration,r=null==(e=n.analysisIds)?void 0:e.flat(Infinity),i=0;i<r.length;i++)createExplanationIframe({analysisId:r[i],recordId:t,configuration:n});var o=createElement("div",{id:"floatingModalContainer",className:"floating-modal-container"},document.body),e=createElement("div",{className:"floating-modal-drag-handle",innerHTML:'<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <g fill="#EBEBEB">\n <circle cx="3.33" cy="6" r="1.5"/><circle cx="8" cy="6" r="1.5"/><circle cx="12.67" cy="6" r="1.5"/>\n <circle cx="3.33" cy="10" r="1.5"/><circle cx="8" cy="10" r="1.5"/><circle cx="12.67" cy="10" r="1.5"/>\n </g>\n </svg>'},o),a="".concat(PREDICT_BASE_URL,"/external/analysis/prediction/summary/").concat(t),s=buildQueryParams(n);return createElement("iframe",{id:"frameFloatingModal",className:"frame-floating-modal",loading:"lazy",referrerPolicy:"strict-origin-when-cross-origin",allowFullscreen:!0,title:"Floating Modal",src:"".concat(a,"?").concat(s)},o),o.dragHandle=setupDragAndDrop(e,o),function(){var e,t;null!=(t=null==(e=o.dragHandle)?void 0:e.cleanup)&&t.call(e),o.remove();for(var n=0;n<r.length;n++){var i=$("frameExplanation-".concat(r[n]));i&&i.remove()}}},setupMessageListener=function(e){var u=e.token,c=e.forceAccountId,l=e.cleanup,p=e.pendo,t=function(e){var t,n,i,r,o,a,s=e.origin,d=e.data;s===PREDICT_BASE_URL&&d&&"object"==typeof d&&(e=d.type,s=d.analysisId,t=d.height,n=d.width,i=$("frameExplanation-".concat(s)),r=$("floatingModalContainer"),o=function(){r&&(r.style.height="".concat(t,"px"),r.style.width="".concat(n,"px"))},a=function(e){var t,n;r&&null!=(n=null==(t=r.dragHandle)?void 0:t.setCollapsedState)&&n.call(t,e)},s={MODAL_INITIALIZED:function(){var e,t,n,i,r=$("frameFloatingModal");r&&(t=e=null,n=p.getConfigValue("retrieveIDPToken"),p._.isFunction(n)&&(n=n())&&(e=n.idToken,t=n.extensionAPIKeys),n=null==(n=null==p?void 0:p.getVisitorId)?void 0:n.call(p),i=null!=c?c:null==(i=null==p?void 0:p.getAccountId)?void 0:i.call(p),null!=(r=r.contentWindow))&&r.postMessage({type:"TOKEN_RECEIVED",token:u,idToken:e,extensionAPIKeys:t,visitorId:n,accountId:i},PREDICT_BASE_URL)},OPEN_EXPLANATION:function(){var e;null!=i&&i.classList.add("is-visible"),null!=(e=null==i?void 0:i.contentWindow)&&e.postMessage(d,PREDICT_BASE_URL)},CLOSE_EXPLANATION:function(){return null==i?void 0:i.classList.remove("is-visible")},AUTH_ERROR_EXPLANATION:function(){null!=i&&i.classList.remove("is-visible");var e=$("frameFloatingModal");e&&(e.src=e.src)},DATA_READY:function(){null!=r&&r.classList.add("is-visible"),o();for(var e=d.analysisIds||[],t=0;t<e.length;t++){var n=$("frameExplanation-".concat(e[t]));n&&n.classList.add("is-exists")}},AUTH_ERROR:function(){null!=r&&r.classList.add("is-visible"),o()},CLOSE_FLOATING_MODAL:l,EXPAND_FLOATING_MODAL:function(){o(),a(!1)},COLLAPSE_FLOATING_MODAL:function(){o(),a(!0)}},e)&&e in s&&null!=(e=null===s?void 0:s[e])&&e.call(s)};return window.addEventListener("message",t),function(){return window.removeEventListener("message",t)}},predictGuidesScript=function(e){var t,n=e.step,i=e.pendo,r=e.cleanupArray,o=e.cleanup,e=e.log,a=(e("[predict] initializing"),null==n?void 0:n.containerId);injectStyles(a,e),0<r.length?e("[predict] cleanupArray is not empty"):(n=null==(a=n.guideElement.find(GUIDE_BUTTON_IDENTIFIER))?void 0:a[0])?(n=(a=safeParse(n.textContent,{},e)).token,(a=__rest(a,["token"]))&&n?(t=new RegExp("/".concat(a.recordRegexName,"/([a-zA-Z0-9]+)(?:/|$)")),(t=getRecordIdFromUrl(t,e))?(r.push(setupMessageListener({token:n,forceAccountId:null==a?void 0:a.forceAccountId,cleanup:o,pendo:i})),r.push(createFloatingModal({recordId:t,configuration:a}))):e("[predict] no recordId found in URL, aborting")):e("[predict] no configuration found, aborting")):e("[predict] no guide button found, aborting")};const PredictGuides=()=>{let o=null,a=[];const s=()=>{var e;null!=(e=null===o||void 0===o?void 0:o.log)&&e.debug("[predict] cleaning up");for(let e=0;e<a.length;e++)try{a[e]()}catch(t){}a=[]};return{name:"PredictGuides",initialize:(e,t)=>{var n=(o=t).ConfigReader,i="predictGuides",i=(n.addOption(i,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),n.get(i));if(i){const r=t.log.debug.bind(t.log);o.Events.urlChanged.on(s);n={name:"PredictFrameScript",script(e,t,n){predictGuidesScript({step:e,pendo:n,cleanupArray:a,cleanup:s,log:r}),this.on("unmounted",e=>{"hidden"!==e.reason&&s()})},test(e,t){e=e.name||"";return PREDICT_STEP_REGEX.test(e)}};o.GlobalRuntime.addGlobalScript(n)}},teardown:()=>{var e;s(),null!=(e=null==(e=null===o||void 0===o?void 0:o.Events)?void 0:e.urlChanged)&&e.off(s)}}};var ASSISTANT_MESSAGE="assistantMessage",CONVERSATION_ID_URL_PATTERN="conversationIdUrlPattern",MESSAGE_ID_ATTR="messageIdAttr",MESSAGE_ID_PATTERN="messageIdPattern",MODEL_USED_ATTR="modelUsedAttr",REACTION_ACTIVE="reactionActive",STREAMING_ACTIVE="streamingActive",STREAMING_ACTIVE_ATTR="streamingActiveAttr",THUMB_DOWN="thumbDown",THUMB_UP="thumbUp",TURN_CONTAINER="turnContainer",USER_MESSAGE="userMessage",CUSTOM_AGENT_ID_URL_PATTERN="customAgentIdUrlPattern",CUSTOM_AGENT_NAME="customAgentName",REQUIRED_SELECTORS=[ASSISTANT_MESSAGE,CONVERSATION_ID_URL_PATTERN,MESSAGE_ID_ATTR,STREAMING_ACTIVE,TURN_CONTAINER,USER_MESSAGE],SUPPORTED_PRESETS=["chatgpt-full","gemini-full"],STREAMING_END_SETTLE_MS=500,SUBMISSION_START_RETRY_MS=1e3,SUBMISSION_START_MAX_ATTEMPTS=4,DOMConversation=function(){function e(e,t,n,i){var r=this,t=(this.selectors={},this.listeners=[],this.isActive=!0,this.observers=[],this.wasStreaming=!1,this.streamingEndTimer=null,this.submissionStartRetryTimer=null,this.requestNode=null,this.conversationIdRegex=null,this.customAgentIdRegex=null,this.messageIdRegex=null,this.lastReturnedMessageId=null,this.dom=e.dom,this._=e._,this.api=t,this.Sizzle=e.Sizzle,this.id=n,this._.isArray(i)||(this.api.log.error("cssSelectors must be an array, received: ".concat(typeof i)),i=[]),this._.each(i,function(e){e&&e.type&&(r.selectors[e.type]=e.cssSelector)}),this.conversationIdRegex=new RegExp(this.selectors[CONVERSATION_ID_URL_PATTERN]),this.selectors[CUSTOM_AGENT_ID_URL_PATTERN]);if(t)try{this.customAgentIdRegex=new RegExp(t)}catch(o){this.api.log.error("bad customAgentIdUrlPattern ".concat(t),{error:o})}e=this.selectors[MESSAGE_ID_PATTERN];if(e)try{this.messageIdRegex=new RegExp(e)}catch(o){this.api.log.error("bad messageIdPattern ".concat(e),{error:o})}this.root=document.body,this.setupReactionListener(),this.setupStreamingObserver()}return e.validateConfig=function(e){if(!Array.isArray(e))return REQUIRED_SELECTORS.slice();for(var t=new Set,n=0,i=e;n<i.length;n++){var r=i[n];if(r&&r.type&&r.cssSelector){if(r.type===CONVERSATION_ID_URL_PATTERN)try{RegExp(r.cssSelector)}catch(o){continue}t.add(r.type)}}return REQUIRED_SELECTORS.filter(function(e){return!t.has(e)})},e.supportedPreset=function(e){return-1!==SUPPORTED_PRESETS.indexOf(e)},e.prototype.setupReactionListener=function(){(this.findSelector(THUMB_UP)||this.findSelector(THUMB_DOWN))&&(this.reactionClickHandler=this.handleReactionClick.bind(this),this.root.addEventListener("click",this.reactionClickHandler,!0))},e.prototype.handleReactionClick=function(e){var t,n,e=e.target;e&&1===e.nodeType&&(t=this.findSelector(THUMB_UP),n=this.findSelector(THUMB_DOWN),(e=this.dom(e).closest("".concat(t,", ").concat(n))).length)&&(n=this.Sizzle.matchesSelector(e[0],t),t=(t=this.findSelector(REACTION_ACTIVE))&&this.Sizzle.matchesSelector(e[0],t)?"unreact":n?"positive":"negative",n=e.closest(this.findSelector(TURN_CONTAINER)).find(this.findSelector(ASSISTANT_MESSAGE)),this.emit("user_reaction",{agentId:this.id,messageId:this.getMessageId(n),content:t}))},e.prototype.setupStreamingObserver=function(){this.wasStreaming=0<this.select(STREAMING_ACTIVE).length,this.stopStreamingEndTimer();var e=new(getZoneSafeMethod(this._,"MutationObserver"))(this.handleMutation.bind(this)),t=this.findSelector(STREAMING_ACTIVE_ATTR);e.observe(this.root,{childList:!0,subtree:!0,attributes:!0,attributeFilter:t?[t]:undefined}),this.observers.push(e)},e.prototype.handleMutation=function(){var e=0<this.select(STREAMING_ACTIVE).length;e!==this.wasStreaming&&(e?this.streamingEndTimer?this.stopStreamingEndTimer():this.onSubmissionStart():this.startStreamingEndTimer(),this.wasStreaming=e)},e.prototype.onSubmissionStart=function(e){void 0===e&&(e=1),this.requestNode=this.findLastRequestNode(),this.requestNode?this.handleUserMessage(this.requestNode):e<SUBMISSION_START_MAX_ATTEMPTS&&this.startSubmissionStartRetryTimer(e+1)},e.prototype.onSubmissionEnd=function(){this.stopSubmissionStartRetryTimer();var e=this.requestNode;if(this.requestNode=null,!e){if(!(e=this.findLastRequestNode()))return;this.handleUserMessage(e)}var t=e[0];if(t)for(var n=this.select(ASSISTANT_MESSAGE),i=0;i<n.length;i++){var r=n[i];t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING&&this.handleAssistantMessage(this.dom(r))}},e.prototype.extractContent=function(e){return{content:e.text().trim()}},e.prototype.getMessageId=function(e){return e.attr(this.findSelector(MESSAGE_ID_ATTR))},e.prototype.handleUserMessage=function(e){this.emit("prompt",__assign({agentId:this.id,messageId:this.getMessageId(e)},this.extractContent(e)))},e.prototype.handleAssistantMessage=function(e){var t=this.findSelector(MODEL_USED_ATTR),t=t&&e.attr(t);this.emit("agent_response",__assign({agentId:this.id,messageId:this.getMessageId(e),agentModelsUsed:t?[t]:[]},this.extractContent(e)))},e.prototype.findLastRequestNode=function(){var e,t;return!this.getConversationId()||!(e=this._.last(this.select(USER_MESSAGE)))||(e=this.dom(e),!(t=this.getMessageId(e)))||this.messageIdRegex&&!this.messageIdRegex.test(t)||t===this.lastReturnedMessageId?null:(this.lastReturnedMessageId=t,e)},e.prototype.findSelector=function(e){return this.selectors[e]},e.prototype.select=function(e){return this.dom(this.findSelector(e),this.root)},e.prototype.getConversationId=function(){var e=location.href.match(this.conversationIdRegex);return e?e[1]!==undefined?e[1]:e[0]:null},e.prototype.getCustomAgentId=function(){var e;return this.customAgentIdRegex&&(e=location.href.match(this.customAgentIdRegex))?e[1]!==undefined?e[1]:e[0]:undefined},e.prototype.getCustomAgentName=function(){var e;return this.findSelector(CUSTOM_AGENT_NAME)&&(e=this.select(CUSTOM_AGENT_NAME)).length?e.text().trim():""},e.prototype.addCustomAgentInfo=function(e){var t=this.getCustomAgentId();t&&(e.customAgentId=t,t=this.getCustomAgentName())&&(e.customAgentName=t)},e.prototype.onSubmit=function(e){this.listeners.push(e)},e.prototype.emit=function(t,n){n.conversationId=this.getConversationId(),this.addCustomAgentInfo(n),this._.each(this.listeners,function(e){return e(t,n)})},e.prototype.startStreamingEndTimer=function(){var e=this;this.stopStreamingEndTimer(),this.streamingEndTimer=setTimeout$1(function(){e.streamingEndTimer=null,e.onSubmissionEnd()},STREAMING_END_SETTLE_MS)},e.prototype.stopStreamingEndTimer=function(){this.streamingEndTimer&&(clearTimeout(this.streamingEndTimer),this.streamingEndTimer=null)},e.prototype.startSubmissionStartRetryTimer=function(e){var t=this;this.stopSubmissionStartRetryTimer(),this.submissionStartRetryTimer=setTimeout$1(function(){t.submissionStartRetryTimer=null,t.onSubmissionStart(e)},SUBMISSION_START_RETRY_MS)},e.prototype.stopSubmissionStartRetryTimer=function(){this.submissionStartRetryTimer&&(clearTimeout(this.submissionStartRetryTimer),this.submissionStartRetryTimer=null)},e.prototype.suspend=function(){this.isActive=!1},e.prototype.resume=function(){this.isActive=!0},e.prototype.teardown=function(){this._.each(this.observers,function(e){return e&&e.disconnect&&e.disconnect()}),this.observers=[],this.reactionClickHandler&&this.root&&(this.root.removeEventListener("click",this.reactionClickHandler,!0),this.reactionClickHandler=null),this.stopStreamingEndTimer(),this.stopSubmissionStartRetryTimer(),this.listeners=[]},e}();function ConversationAnalytics(){var i,r,o,a,s=[],d=new Map,u="aiAgents";return{name:"ConversationAnalytics",initialize:function(e,t){r=t,o=(i=e)._,a=r.log;t=r.ConfigReader;t.addOption(u,[t.sources.PENDO_CONFIG_SRC,t.sources.SNIPPET_SRC]),p(t.get(u)),null!=(e=r.Events.guidesLoaded)&&e.on(n)},teardown:function(){o.each(s,function(e){return e.teardown()}),s=[],d.clear()},onConfigLoaded:p,observeConversation:h,sendConversationEvent:f,reEvaluatePageRules:n};function c(e,t){void 0===t&&(t="unknown");var n,i=e;return Array.isArray(e)?(n=o.filter(e,function(e){return e&&""!==e.trim()}),i=o.map(n,function(e){return e.startsWith("//*/")?e.substring(1):e})):"string"==typeof e&&e.startsWith("//*/")&&(i=e.substring(1)),r.util.testPageRule(i,undefined,{logger:a,context:"agent",id:t})}function n(){o.each(s,function(e){t=e.id;var t=d.get(t);t&&c(t.pageRule,t.id)?e.resume():e.suspend()});var n=o.map(o.filter(s,function(e){return e.isActive}),function(e){return e.id}),e=r.ConfigReader.get(u)||[];o.each(e,function(e){var t;l(e)&&(t=o.contains(n,e.id),c(e.pageRule,e.id))&&!t&&h(e)})}function l(e){return DOMConversation.supportedPreset(e.preset)}function p(e){(e=void 0===e?[]:e)&&o.isArray(e)&&0!==e.length&&(d.clear(),o.each(e,function(e){l(e)&&(d.set(e.id,e),c(e.pageRule,e.id))&&h(e)}))}function h(e){var t,n=e.id,e=e.cssSelectors;o.find(s,function(e){return e.id===n})||((t=DOMConversation.validateConfig(e)).length?a.error("aiAgent config missing required selectors",{agentId:n,missing:t}):((t=new DOMConversation(i,r,n,e)).onSubmit(f),s.push(t)))}function f(e,t){var n=o.find(s,function(e){return e.id===t.agentId});n&&!n.isActive||(t=o.extend({agentType:"conversation"},t),r.analytics.collectEvent(e,t,undefined,"agentic"))}}export{ConsoleCapture,ConversationAnalytics,Feedback,GuideMarkdown,NetworkCapture,PredictGuides,createReplayPlugin as Replay,TextCapture,VocPortal,loadAgent};
|