{c.push(g)});return c},G.prototype._eval=function(e,t,n,r,i,o){this.currSandbox._$_parentProperty=o,this.currSandbox._$_parent=i,this.currSandbox._$_property=n,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;const s=e.includes(«@path»);s&&(this.currSandbox._$_path=G.toPathString(r.concat([n])));const l=this.currEval+»Script:»+e;if(!G.cache[l]){let a=e.replaceAll(«@parentProperty»,»_$_parentProperty»).replaceAll(«@parent»,»_$_parent»).replaceAll(«@property»,»_$_property»).replaceAll(«@root»,»_$_root»).replaceAll(/@([.\s)[])/gu,»_$_v$1″);if(s&&(a=a.replaceAll(«@path»,»_$_path»)),this.currEval===»safe»||this.currEval===!0||this.currEval===void 0)G.cache[l]=new this.safeVm.Script(a);else if(this.currEval===»native»)G.cache[l]=new this.vm.Script(a);else if(typeof this.currEval==»function»&&this.currEval.prototype&&Object.hasOwn(this.currEval.prototype,»runInNewContext»)){const u=this.currEval;G.cache[l]=new u(a)}else if(typeof this.currEval==»function»)G.cache[l]={runInNewContext:u=>this.currEval(a,u)};else throw new TypeError(`Unknown «eval» property «${this.currEval}»`)}try{return G.cache[l].runInNewContext(this.currSandbox)}catch(a){if(this.ignoreEvalErrors)return!1;throw new Error(«jsonPath: «+a.message+»: «+e)}},G.cache={},G.toPathString=function(e){const t=e,n=t.length;let r=»$»;for(let i=1;i=0){var g=this._originalMappings[d];if(f.column===void 0)for(var E=g.originalLine;g&&g.originalLine===E;)h.push({line:e.getArg(g,»generatedLine»,null),column:e.getArg(g,»generatedColumn»,null),lastColumn:e.getArg(g,»lastGeneratedColumn»,null)}),g=this._originalMappings[++d];else for(var w=g.originalColumn;g&&g.originalLine===p&&g.originalColumn==w;)h.push({line:e.getArg(g,»generatedLine»,null),column:e.getArg(g,»generatedColumn»,null),lastColumn:e.getArg(g,»lastGeneratedColumn»,null)}),g=this._originalMappings[++d]}return h},ln.SourceMapConsumer=o;function s(u,f){var p=u;typeof u==»string»&&(p=e.parseSourceMapInput(u));var c=e.getArg(p,»version»),h=e.getArg(p,»sources»),d=e.getArg(p,»names»,[]),g=e.getArg(p,»sourceRoot»,null),E=e.getArg(p,»sourcesContent»,null),w=e.getArg(p,»mappings»),_=e.getArg(p,»file»,null);if(c!=this._version)throw new Error(«Unsupported version: «+c);g&&(g=e.normalize(g)),h=h.map(String).map(e.normalize).map(function(I){return g&&e.isAbsolute(g)&&e.isAbsolute(I)?e.relative(g,I):I}),this._names=n.fromArray(d.map(String),!0),this._sources=n.fromArray(h,!0),this._absoluteSources=this._sources.toArray().map(function(I){return e.computeSourceURL(g,I,f)}),this.sourceRoot=g,this.sourcesContent=E,this._mappings=w,this._sourceMapURL=f,this.file=_}s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.prototype._findSourceIndex=function(u){var f=u;if(this.sourceRoot!=null&&(f=e.relative(this.sourceRoot,f)),this._sources.has(f))return this._sources.indexOf(f);var p;for(p=0;p
Test Form SF
// Bundle time – 2026-02-26T12:46:40Z – SalesforceInteractions
// SDK – npm/@salesforce/interactions/2.0/target/dist/scripts/interactions-bundle.min.js [2.0.9]
/*
regenerator-runtime — Copyright (c) 2014-present, Facebook, Inc. — license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE js-cookie v3.0.5 | MIT */
‘use strict’;var SalesforceInteractions=function(e){function ma(b,a){(null==a||a>b.length)&&(a=b.length);for(var c=0,d=Array(a);c=b.length?{done:!0}:{done:!1,value:b[d++]}},e:function(a){throw a;},f:a}}throw new TypeError(«Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.»);}var f,h=!0,l=!1;return{s:function(){c=c.call(b)},n:function(){var a=c.next();return h=a.done,a},e:function(a){l=!0;f=a},f:function(){try{h||null==c.return||c.return()}finally{if(l)throw f;
}}}}function X(b,a,c){return(a=cb(a))in b?Object.defineProperty(b,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):b[a]=c,b}function pa(){return pa=»undefined»!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(b,a,c){var d;for(d=b;!{}.hasOwnProperty.call(d,a)&&null!==(d=K(d)););if(d)return d=Object.getOwnPropertyDescriptor(d,a),d.get?d.get.call(3>arguments.length?b:c):d.value},pa.apply(null,arguments)}function K(b){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||
Object.getPrototypeOf(a)},K(b)}function mc(b,a){if(«function»!=typeof a&&null!==a)throw new TypeError(«Super expression must either be null or a function»);b.prototype=Object.create(a&&a.prototype,{constructor:{value:b,writable:!0,configurable:!0}});Object.defineProperty(b,»prototype»,{writable:!1});a&&qa(b,a)}function ab(){try{var b=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(ab=function(){return!!b})()}function db(b,a){var c=Object.keys(b);if(Object.getOwnPropertySymbols){var d=
Object.getOwnPropertySymbols(b);a&&(d=d.filter(function(a){return Object.getOwnPropertyDescriptor(b,a).enumerable}));c.push.apply(c,d)}return c}function q(b){for(var a=1;a>2]|=e.charCodeAt(p)<<8*~p--;for(a=p=0;ap;c=[c[4]+(f[p]=16>p?~~l[a+p]:2*e|0>e)+1518500249+[d&g|~d&k,e=341275144+(d^g^k),882459459+(d&g|d&k|g&k),e+1535694389][p++/5>>2]+((e=c[0])<<5|e>>>27),e,d<<30|d>>>2,g,k]){e=f[p-3]^f[p-8]^f[p-14]^f[p-16];d=c[1];var g=c[2];var k=c[3]}for(p=5;p;)h[–p]+=
c[p]}for(e=»»;40>p;)e+=(h[p>>3]>>4*(7-p++)&15).toString(16);return e}function Z(b){for(var a=1;ab.indexOf(a)})}function wc(b,
a,c,d,f){f.guid=f.guid||k.guid++;var h=b.___ce=b.___ce||{};h[a]=h[a]||[];h[a].push([c,d,f]);b.addEventListener(a,f)}function Ba(b){b=b.split(«.»);return[b[0],b.slice(1).sort()]}function da(b,a,c,d,f){var h=b.___ce=b.___ce||{};if(a)h[a]&&(h[a]=h[a].filter(function(l){var h=Y(l,3);l=h[0];var e=h[1];h=h[2];if(f&&h.guid!==f.guid||!qb(l,c)||d&&d!==e)return!0;b.removeEventListener(a,h)}));else for(a in h)da(b,a,c,d,f)}function rb(b){return b.multiple&&b.options?B(xa.call(b.options,function(a){return a.selected&&
!a.disabled&&!a.parentNode.disabled}),»value»):b.value||»»}function sb(b){if(!u(b))return[];if(xc.test(b))return[J(RegExp.$1)];var a=yc.test(b)&&RegExp.$1;a=tb[a]||tb[«*»];a.innerHTML=b;return k(a.childNodes).detach().get()}function zc(b,a){b=k(b);b.filter(«script»).add(b.find(«script»)).each(function(b,d){if(Ac.test(d.type)&&Ca.contains(d)){var c=J(«script»);c.text=d.textContent.replace(Bc,»»);t(Cc,function(a,b){d[b]&&(c[b]=d[b])});a.head.insertBefore(c,null);a.head.removeChild(c)}})}function E(b,
a,c,d,f,h,l,e){t(b,function(b,h){t(k(h),function(b,h){t(k(a),function(a,b){var l=c?b:h;b=c?h:b;a=a?l.cloneNode(!0):l;f?b.insertBefore(a,d?b.firstElementChild:null):b.parentNode.insertBefore(a,d?b:b.nextElementSibling);zc(a,b.ownerDocument)},e)},l)},h);return a}function Dc(b){var a=b.pageTypeDefault;b=0/,pc=/^\w+$/,ba=function(){function b(a){var c=1a?0:1;carguments.length?this[0]&&this[0][b]:this.each(function(c,f){f[b]=a});for(var c in b)this.prop(c,b[c]);return this}};g.get=function(b){return void 0===b?Ib.call(this):this[0>b?b+this.length:b]};g.eq=function(b){return k(this.get(b))};g.first=function(){return this.eq(0)};g.last=function(){return this.eq(-1)};g.filter=function(b){var a=wa(b);return k(xa.call(this,function(b,d){return a.call(b,d,b)}))};var rc=/\S+/g;g.hasClass=function(b){return!!b&&Aa.call(this,function(a){return a.classList.contains(b)})};
g.removeAttr=function(b){var a=ca(b);return this.each(function(b,d){t(a,function(a,b){d.removeAttribute(b)})})};g.attr=function(b,a){if(b){if(u(b)){if(2>arguments.length){if(!this[0])return;var c=this[0].getAttribute(b);return null===c?void 0:c}return void 0===a?this:null===a?this.removeAttr(b):this.each(function(c,f){f.setAttribute(b,a)})}for(c in b)this.attr(c,b[c]);return this}};g.toggleClass=function(b,a){var c=ca(b),d=void 0!==a;return this.each(function(b,h){t(c,function(b,c){d?a?h.classList.add(c):
h.classList.remove(c):h.classList.toggle(c)})})};g.addClass=function(b){return this.toggleClass(b,!0)};g.removeClass=function(b){return arguments.length?this.toggleClass(b,!1):this.attr(«class»,»»)};k.unique=A;g.add=function(b,a){return k(A(this.get().concat(k(b,a).get())))};var ya=/^–/,za={},uc=Gb.style,tc=[«webkit»,»moz»,»ms»];k.prefixedProp=mb;var vc={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};
g.css=function(b,a){if(u(b)){var c=ya.test(b);b=mb(b,c);if(2>arguments.length)return this[0]&&I(this[0],b,c);if(!b)return this;a=nb(b,a,c);return this.each(function(d,h){h&&1===h.nodeType&&(c?h.style.setProperty(b,a):h.style[b]=a)})}for(var d in b)this.css(d,b[d]);return this};g.data=function(b,a){if(!b){if(!this[0])return;var c={},d;for(d in this[0].dataset)c[d]=ob(this[0],d);return c}if(u(b))return 2>arguments.length?this[0]&&ob(this[0],b):this.each(function(c,d){c=a;try{c=JSON.stringify(c)}catch(l){}d.dataset[S(b)]=
c});for(c in b)this.data(c,b[c]);return this};t([!0,!1],function(b,a){t([«Width»,»Height»],function(b,d){var c=»».concat(a?»outer»:»inner»).concat(d);g[c]=function(f){if(this[0])return va(this[0])?T[c]:this[0][«».concat(a?»offset»:»client»).concat(d)]+(f&&a?O(this[0],»margin».concat(b?»Top»:»Left»))+O(this[0],»margin».concat(b?»Bottom»:»Right»)):0)}})});t([«width»,»height»],function(b,a){g[a]=function(c){if(!this[0])return void 0===c?void 0:this;if(!arguments.length)return va(this[0])?this[0][S(«outer-«.concat(a))]:
this[0].getBoundingClientRect()[a]-pb(this[0],!b);var d=parseInt(c,10);return this.each(function(c,h){h&&1===h.nodeType&&(c=I(h,»boxSizing»),h.style[a]=nb(a,d+(«border-box»===c?pb(h,!b):0)))})}});var Na={};g.toggle=function(b){return this.each(function(a,c){if(void 0===b?»none»===I(c,»display»):b){if(c.style.display=c.___cd||»»,»none»===I(c,»display»)){a=c.style;c=c.tagName;if(Na[c])c=Na[c];else{var d=J(c);z.body.insertBefore(d,null);var f=I(d,»display»);z.body.removeChild(d);c=Na[c]=»none»!==f?f:
«block»}a.display=c}}else c.___cd=I(c,»display»),c.style.display=»none»})};g.hide=function(){return this.toggle(!1)};g.show=function(){return this.toggle(!0)};var Oa={focus:»focusin»,blur:»focusout»},Jb={mouseenter:»mouseover»,mouseleave:»mouseout»},Nc=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;g.off=function(b,a,c){var d=this;if(void 0===b)this.each(function(a,b){da(b)});else if(u(b))H(a)&&(c=a,a=»»),t(ca(b),function(b,f){b=Ba(Jb[f]||Oa[f]||f);b=Y(b,2);var l=b[0],h=b[1];d.each(function(b,
d){da(d,l,h,a,c)})});else for(var f in b)this.off(f,b[f]);return this};g.on=function(b,a,c,d){var f=this;if(!u(b)){for(var h in b)this.on(h,a,b[h]);return this}H(a)&&(c=a,a=»»);t(ca(b),function(b,h){b=Ba(Jb[h]||Oa[h]||h);b=Y(b,2);var l=b[0],e=b[1];f.each(function(b,f){var h=function(b){if(!b.namespace||qb(e,b.namespace.split(«.»))){var g=f;if(a){for(var k=b.target;!ua(k,a);){if(k===f)return;k=k.parentNode;if(!k)return}g=k;b.___cd=!0}b.___cd&&Object.defineProperty(b,»currentTarget»,{configurable:!0,
get:function(){return g}});k=c.call(g,b,b.data);d&&da(f,l,e,a,h);!1===k&&(b.preventDefault(),b.stopPropagation())}};h.guid=c.guid=c.guid||k.guid++;wc(f,l,e,a,h)})});return this};g.one=function(b,a,c){return this.on(b,a,c,!0)};g.ready=function(b){«loading»!==z.readyState?b(k):z.addEventListener(«DOMContentLoaded»,function(){b(k)});return this};g.trigger=function(b,a){if(u(b)){var c=Ba(b),d=Y(c,2);c=d[0];d=d[1];var f=Nc.test(c)?»MouseEvents»:»HTMLEvents»;b=z.createEvent(f);b.initEvent(c,!0,!0);b.namespace=
d.join(«.»)}b.data=a;var h=b.type in Oa;return this.each(function(a,c){if(h&&H(c[b.type]))c[b.type]();else c.dispatchEvent(b)})};var Oc=/%20/g,Pc=/file|reset|submit|button|image/i,Qc=/radio|checkbox/i;g.serialize=function(){var b=»»;this.each(function(a,c){t(c.elements||[c],function(a,c){c.disabled||!c.name||»FIELDSET»===c.tagName||Pc.test(c.type)||Qc.test(c.type)&&!c.checked||(a=rb(c),void 0!==a&&(a=Ma(a)?a:[a],t(a,function(a,d){a=b;d=»&».concat(encodeURIComponent(c.name),»=»).concat(encodeURIComponent(d).replace(Oc,
«+»));b=a+d})))})});return b.slice(1)};g.val=function(b){return void 0===b?this[0]&&rb(this[0]):this.each(function(a,c){if(«SELECT»===c.tagName){var d=Ma(b)?b:null===b?[]:[b];t(c.options,function(a,b){b.selected=0<=d.indexOf(b.value)})}else c.value=null===b?"":b})};g.clone=function(){return this.map(function(b,a){return a.cloneNode(!0)})};g.detach=function(){return this.each(function(b,a){a.parentNode&&a.parentNode.removeChild(a)})};var yc=/^\s*<(\w+)[^>]*>/,xc=/^\s*<(\w+)\s*\/?>(?:<\/\1>)?\s*$/,
tb={«*»:Gb,tr:Ic,td:Hb,th:Hb,thead:La,tbody:La,tfoot:La};k.parseHTML=sb;g.empty=function(){return this.each(function(b,a){for(;a.firstChild;)a.removeChild(a.firstChild)})};g.html=function(b){return void 0===b?this[0]&&this[0].innerHTML:this.each(function(a,c){c.innerHTML=b})};g.remove=function(){return this.detach().off()};g.text=function(b){return void 0===b?this[0]?this[0].textContent:»»:this.each(function(a,c){c.textContent=b})};g.unwrap=function(){this.parent().each(function(b,a){b=k(a);b.replaceWith(b.children())});
return this};g.offset=function(){var b=this[0];if(b)return b=b.getBoundingClientRect(),{top:b.top+T.pageYOffset-Ca.clientTop,left:b.left+T.pageXOffset-Ca.clientLeft}};g.offsetParent=function(){return k(this[0]&&this[0].offsetParent)};g.position=function(){var b=this[0];if(b)return{left:b.offsetLeft,top:b.offsetTop}};g.children=function(b){return N(k(A(B(this,function(a){return a.children}))),b)};g.contents=function(){return k(A(B(this,function(b){return»IFRAME»===b.tagName?[b.contentDocument]:b.childNodes})))};
g.find=function(b){return k(A(B(this,function(a){return ta(b,a)})))};var Bc=/^\s*\s*$/g,Ac=/^$|^module$|\/(java|ecma)script/i,Cc=[«type»,»src»,»nonce»,»noModule»];g.after=function(){return E(arguments,this,!1,!1,!1,!0,!0)};g.append=function(){return E(arguments,this,!1,!1,!0)};g.appendTo=function(b){return E(arguments,this,!0,!1,!0)};g.before=function(){return E(arguments,this,!1,!0)};g.insertAfter=function(b){return E(arguments,this,!0,!1,!1,!1,!1,!0)};g.insertBefore=
function(b){return E(arguments,this,!0,!0)};g.prepend=function(){return E(arguments,this,!1,!0,!0,!0,!0)};g.prependTo=function(b){return E(arguments,this,!0,!0,!0,!1,!1,!0)};g.replaceWith=function(b){return this.before(b).remove()};g.replaceAll=function(b){k(b).replaceWith(this);return this};g.wrapAll=function(b){b=k(b);for(var a=b[0];a.children.length;)a=a.firstElementChild;this.first().before(b);return this.appendTo(a)};g.wrap=function(b){return this.each(function(a,c){var d=k(b)[0];k(c).wrapAll(a?
d.cloneNode(!0):d)})};g.wrapInner=function(b){return this.each(function(a,c){a=k(c);c=a.contents();c.length?c.wrapAll(b):a.append(b)})};g.has=function(b){var a=u(b)?function(a,d){return ta(b,d).length}:function(a,d){return d.contains(b)};return this.filter(a)};g.is=function(b){var a=wa(b);return Aa.call(this,function(b,d){return a.call(b,d,b)})};g.next=function(b,a){return N(k(A(B(this,»nextElementSibling»,a))),b)};g.nextAll=function(b){return this.next(b,!0)};g.not=function(b){var a=wa(b);return this.filter(function(b,
d){return!a.call(d,b,d)})};g.parent=function(b){return N(k(A(B(this,»parentNode»))),b)};g.index=function(b){var a=b?k(b)[0]:this[0];b=b?this:k(a).parent().children();return lb.call(b,a)};g.closest=function(b){var a=this.filter(b);if(a.length)return a;var c=this.parent();return c.length?c.closest(b):a};g.parents=function(b){return N(k(A(B(this,»parentElement»,!0))),b)};g.prev=function(b,a){return N(k(A(B(this,»previousElementSibling»,a))),b)};g.prevAll=function(b){return this.prev(b,!0)};g.siblings=
function(b){return N(k(A(B(this,function(a){return k(a).parent().children().not(a)}))),b)};var ja=function(){function b(){L(this,b);this.listeners=[]}return M(b,[{key:»on»,value:function(a){var b=this;(this.listeners=this.listeners||[]).push(a);return function(){b.listeners=b.listeners.filter(function(b){return b!==a})}}},{key:»once»,value:function(a){var b=this;return this.on(function(){b.unbindAll();try{for(var c=arguments.length,f=Array(c),h=0;h=new Date(a.lastSentTime)}).map(function(a){return a.consent});Vc(a.consents)};document.addEventListener(e.CustomEvents.OnConsentGrant,function(a){a.detail&&a.detail.grantedConsent&&Vb(a.detail.grantedConsent)});document.addEventListener(e.CustomEvents.OnConsentRevoke,function(a){a.detail&&a.detail.revokedConsent&&Vb(a.detail.revokedConsent)});var Ua=function(a){return Wb(a,Tb).catch(function(c){r.error(c.message);
n.onFireException.emit(c,»Site-wide JavaScript»);return a})},Vb=function(a){Wb({interaction:{name:e.MetadataUpdateInteractionName.MetadataUpdate},consents:[a.consent]},function(){return!0}).then(function(){return r.debug(«Consent event: «.concat(a.consent.status))},function(a){return n.onFireException.emit(a,»Site-wide JavaScript»)})},Wb=function(a,c){a:{var d=a,f=m.result.matchedConfig;try{d=f&&f.onActionEvent?f.onActionEvent(d):d;if(«object»===x(d)){a=d;break a}n.onFireException.emit(Error(«onActionEvent failed for the «.concat(m.result.matchedConfig.name,
» page config. Must return an object or null.»)),»Site-wide Javascript»)}catch(h){n.onFireException.emit(Error(«onActionEvent failed for the «.concat(m.result.matchedConfig.name,» page config. «).concat(h.message,».»)),»Site-wide Javascript»)}a=void 0}a:{d=a;f=m.config;try{d=f.global&&f.global.onActionEvent?f.global.onActionEvent(d):d;if(«object»===x(d)){a=d;break a}n.onFireException.emit(Error(«onActionEvent failed for the global page config. Must return an object or null.»),»Site-wide Javascript»)}catch(h){n.onFireException.emit(Error(«onActionEvent failed for the global page config. «.concat(h.message,
«.»)),»Site-wide Javascript»)}a=void 0}Ub(a);c&&!c()&&r.debug(«No opt-in consents provided. Event will still be dispatched.»);r.debug(«Sent event: «,a);n.onEventSend.emit(a);return Promise.resolve(a)},$c=function(a){return new Promise(function(c,d){n.onInitSitemap.once(function(){return d(«sitemap_reinit»)});var f={name:null},h=[];Object.keys(a.interaction).forEach(function(c){var d=Xb(a.interaction[c],c).then(function(a){f[c]=a});h.push(d)});Promise.all(h).then(function(){c(f)}).catch(function(a){n.onFireException.emit(Error(«Catalog object interaction config was rejected»),
«Site-wide Javascript»)})})},Xb=function(a,c){try{return v=c,»object»===x(a)&&!Array.isArray(a)&&0=d&&(W(c),e(!1))}catch(eb){W(c),l(eb)}},f);G[c]=function(){clearInterval(g)}})},unbind:W,getBindings:function(){return G},clearBindings:function(){for(var a in G)G.hasOwnProperty(a)&&»function»===typeof G[a]&&W(a)}}},bc=function(a){a.global=a.global||{};»object»!=x(a.global)&&n.onFireException.emit(Error(«The global config has a type of «.concat(x(a.global),», but it must be an object»)),»Sitewide Javascript»);Object.assign(m.config,q({},
a));n.onInitSitemap.emit(m.config)},Wa=function(a){bd(a);return!0},ec=function(a){Ra(a.pageTypes).then(cc).then(dc).catch(function(a){«sitemap_reinit»!==a&&n.onFireException.emit(Error(«Unhandled exception: «.concat(a)),»Site-wide Javascript»)})},dc=function(a){m.result.matchedConfig=q(q({},a),{},{listeners:cd(a)});m.result.currentPage=q(q({},m.result.currentPage||{}),{},{source:{pageType:a.name,locale:dd(a)},user:{anonymousId:null},interaction:null,pageView:!0});return a.interaction?$c(a).then(function(a){m.result.currentPage.interaction=
a}):Promise.resolve()},cd=function(a){return(a.listeners||[]).map(function(a){return Va(a)})},dd=function(a){return»function»===typeof a.locale?a.locale():a.locale},fc=function(){for(var a=arguments.length,c=Array(a),d=0;d«+f,e);d[c]=function(){m&&m.disconnect()}})},pageElementVisible:function(f,g){var l=g||0;if(«string»!==typeof f||»»===f||»number»!==typeof l||0>l||1«+
f,e);d[c]=function(){m.disconnect()}})},pageExit:function(f){f=f||0;if(«number»!==typeof f||0>f)throw Error(«[pageExit] Invalid arguments»);return new Promise(function(g){function l(a){clearTimeout(n);10>=a.pageY-window.pageYOffset&&(n=0«,e);d[c]=function(){m.off(«mousemove»,l)}})},pageInactive:function(f){function g(a,d){var e=
new Promise(function(e){function f(a){a=a||new Event(«pageInactive»);c&&!d.isSubscribe?h.unbind(c):l.off(«mousemove click scroll keyup keydown»,g);e(a)}function g(c){clearTimeout(k);k=setTimeout(f.bind(this,c),a)}var l=y(document),k;g();l.on(«mousemove click scroll keyup keydown»,g)});e.subscribe=function(f){delete e.subscribe;d.isSubscribe=!0;e.then(function(e){e.disconnect=function(){c?h.unbind(c):d.isDisconnected=!0};f(e);!d.isDisconnected&&g(a,d).subscribe(f)});return e};return e}if(«number»!==
typeof f||0>=f)throw Error(«[pageInactive] Invalid arguments»);var l={isDisconnected:!1,isSubscribe:!1};c=a(c,»«,e);d[c]=function(){l.isDisconnected=!0};return g(f,l)},pageScroll:function(f){if(«number»!==typeof f||0>f||1=f&&(g(a),c?h.unbind(c):k.off(«scroll»,l))}var k=y(document);k.on(«scroll»,l);c=a(c,»«,
e);d[c]=function(){k.off(«scroll»,l)}})}}}var d={},e=c(null,!0),h=function(){return{bind:function(a){a&&d[a]&&(d[a](),delete d[a]);return c(a)},unbind:function(a){if(!a||»string»!==typeof a||»function»!==typeof d[a])return null;d[a]();delete d[a]},getBindings:function(){return d},clearBindings:function(){for(var a in d)d.hasOwnProperty(a)&&(d[a](),delete d[a])}}}();return Object.assign(e,h)}(),jc=function(){function a(c){var d=this;L(this,a);this.clearRateLimiter=function(){d.sentEvents=[]};this.eventWithinLimitTimeRange=
function(a,c,d){return d-c.time
f)?(r.info(«Event rate limit exceeded. More than «.concat(f,» events «)+»sent in «.concat(e,»ms.»)),!0):!1};this.checkLimits=function(a,c){return d.checkGlobalLimits(a,c.time)};this.sentEvents=[];this.eventRateLimiterConfig=c}return M(a,[{key:»resetCounters»,value:function(){this.globalCounter=0}},{key:»isTriggerLimitExceeded»,value:function(a){var c=Date.now();a=q(q({},a),{},{time:c});this.sentEvents.push(a);this.removeOldEvents(c);this.resetCounters();for(c=this.sentEvents.length-1;0<=c;c--)if(this.checkLimits(c,
a))return!0;return!1}}])}(),gd=function(a){function c(a){L(this,c);var d=lc(this,c,[a]);d.getTimeRangeMax=function(){return d.eventRateLimiterConfig.perInteractionTimeRange?Math.max(d.eventRateLimiterConfig.globalTimeRange,d.eventRateLimiterConfig.perInteractionTimeRange):d.eventRateLimiterConfig.globalTimeRange};d.checkInteractionLimits=function(a,c,e){return d.eventRateLimiterConfig.perInteractionLimit&&d.eventRateLimiterConfig.perInteractionTimeRange&&d.eventWithinLimitTimeRange(d.eventRateLimiterConfig.perInteractionTimeRange,
d.sentEvents[a],c)&&d.sentEvents[a].name===e&&(d.perEventCounter++,d.perEventCounter>d.eventRateLimiterConfig.perInteractionLimit)?(r.info(«Event rate limit exceeded. More than «.concat(d.eventRateLimiterConfig.perInteractionLimit,» events «)+»with interaction name of «.concat(e,» sent in «).concat(d.eventRateLimiterConfig.perInteractionTimeRange,»ms.»)),!0):!1};d.checkLimits=function(a,c){return d.checkGlobalLimits(a,c.time)||d.checkInteractionLimits(a,c.time,c.name)};return d}mc(c,a);return M(c,
[{key:»resetCounters»,value:function(){fb(c,»resetCounters»,this,3)([]);this.perEventCounter=0}},{key:»isTriggerLimitExceeded»,value:function(a){return fb(c,»isTriggerLimitExceeded»,this,3)([a])}}])}(jc),Da,Ea,Fa,Ga,$a=function(){var a=0{if(null==e||!1===Object.prototype.hasOwnProperty.call(e,t)||null==e[t])throw new Error(`missing required option «${String(t)}»`)})}function n(e,t){const n=new CustomEvent(e,{detail:t});document.dispatchEvent(n)}async function i(e){return await new Promise((t,n)=>{const i=new XMLHttpRequest;i.onload=()=>t(i),i.onerror=()=>t(i),i.abort=()=>n(new Error(«Request aborted»)),e(i)})}async function o(e){await new Promise(t=>{setTimeout(t,e)})}function a(e){return 200===(null==e?void 0:e.status)||204===(null==e?void 0:e.status)}function s(){return window.SalesforceInteractions}function r(){const e=s().getAnonymousId();if(null==e||»»===e)throw new Error(«sessionId is missing»);return e}function c(e){var t;return null!==(t=e.deviceId)&&void 0!==t?t:r()}function l(e){var t,n;const s=e.tenantSpecificEndpoint+»/web/v2/authentication»,r=null!==(t=e.authenticator.maxAttempts)&&void 0!==t?t:5,l=null!==(n=e.authenticator.retryDelay)&&void 0!==n?n:5;let u=!1,d=!1;return async()=>{if(u)return!0;if(d)return!1;const t=async()=>{const t=await i(t=>{const n=btoa(JSON.stringify({appSourceId:e.authenticator.appSourceId,deviceId:c(e)}));t.open(«POST»,s),t.setRequestHeader(«Content-Type»,»application/x-www-form-urlencoded»),t.send(`auth=${n}`)});if(401===t.status)throw d=!0,new Error(«Unauthorized»);return a(t)};for(let e=r;e>0;e–)try{if(u=await t(),u)return!0}finally{!(u||d)&&e>1&&await o(l)}throw d=!0,new Error(«No more authentication retries»)}}function u(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(e,t)=>{const n=t.toString();return String.fromCharCode(parseInt(`0x${n}`,16))}))}var d;let m;!function(e){e.OnBeforeEventSend=»dataCloud:onBeforeEventSend»,e.OnEventSend=»dataCloud:onEventSend»}(d||(d={})),null!=window.SalesforceInteractions&&(window.SalesforceInteractions.DataCloud={CustomEvents:d,profileHasChanged:!1});const h=new Uint8Array(16);function g(){if(!m&&(m=»undefined»!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!m))throw new Error(«crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported»);return m(h)}const v=[];for(let e=0;e<256;++e)v.push((e+256).toString(16).slice(1));var p={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function f(e,t,n){if(p.randomUUID&&!e)return p.randomUUID();const i=(e=e||{}).random||(e.rng||g)();return i[6]=15&i[6]|64,i[8]=63&i[8]|128,function(e,t=0){return v[e[t+0]]+v[e[t+1]]+v[e[t+2]]+v[e[t+3]]+"-"+v[e[t+4]]+v[e[t+5]]+"-"+v[e[t+6]]+v[e[t+7]]+"-"+v[e[t+8]]+v[e[t+9]]+"-"+v[e[t+10]]+v[e[t+11]]+v[e[t+12]]+v[e[t+13]]+v[e[t+14]]+v[e[t+15]]}(i)}function T(e){return("number"==typeof(null==e?void 0:e.time)?new Date(e.time):new Date).toISOString()}function y(e,t){return{eventId:f(),dateTime:T(e),sessionId:r(),deviceId:c(t)}}function b(t,n){var i;const o=null!==(i=t.consents)&&void 0!==i?i:[];if(0===o.length)return[];const a=[];return o.forEach(i=>{const o=function(t,n,i){try{let o;if(t.status===e.ConsentStatus.OptIn)o=»opt-in»;else{if(t.status!==e.ConsentStatus.OptOut)return s().log.error(`Consent value should be either «${e.ConsentStatus.OptIn}» or «${e.ConsentStatus.OptOut}»`,n),null;o=»opt-out»}return Object.assign(Object.assign({},y(n,i)),{eventType:»consentLog»,category:»Engagement»,purpose:t.purpose,provider:t.provider,status:o})}catch(e){const t=e instanceof Error?e.message:»Unknown error occurred during consent extraction»;return s().log.error(t),null}}(i,t,n);null!=o&&a.push(o)}),a}function w(e){var t,n,i,o,a,s;return{interactionName:null===(t=null==e?void 0:e.interaction)||void 0===t?void 0:t.name,pageView:null==e?void 0:e.pageView,sourceUrl:null===(n=null==e?void 0:e.source)||void 0===n?void 0:n.url,sourceUrlReferrer:null===(i=null==e?void 0:e.source)||void 0===i?void 0:i.urlReferrer,sourceChannel:null===(o=null==e?void 0:e.source)||void 0===o?void 0:o.channel,sourceLocale:null===(a=null==e?void 0:e.source)||void 0===a?void 0:a.locale,sourcePageType:null===(s=null==e?void 0:e.source)||void 0===s?void 0:s.pageType}}const E=/^[a-zA-Z](?!.*__)(?!.*_$)\w{0,79}$/;function I(e){return»string»==typeof e&&E.test(e)?e:(s().log.warn(`[Invalid eventType: «${e}»] Must begin with a letter (a-zA-Z) and can only contain alphanumeric characters and underscores (no spaces.) Also cannot end with or have consecutive underscores. Max 80 characters.`),null)}function O(e){return{eventId:f(),category:e.category,dateTime:e.dateTime,deviceId:e.deviceId,sessionId:e.sessionId,eventType:»»,interactionName:e.interactionName}}function x(e){return null!=(null==e?void 0:e.catalogObjectId)&&null!=(null==e?void 0:e.catalogObjectType)&&null!=(null==e?void 0:e.quantity)}function S(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,»default»)?e.default:e}var C,j={exports:{}};var L=function(){if(C)return j.exports;C=1;const e=/[\p{Lu}]/u,t=/[\p{Ll}]/u,n=/^[\p{Lu}](?![\p{Lu}])/gu,i=/([\p{Alpha}\p{N}_]|$)/u,o=/[_.\- ]+/,a=new RegExp(«^»+o.source),s=new RegExp(o.source+i.source,»gu»),r=new RegExp(«\\d+»+i.source,»gu»),c=(i,o)=>{if(«string»!=typeof i&&!Array.isArray(i))throw new TypeError(«Expected the input to be `string | string[]`»);if(o={pascalCase:!1,preserveConsecutiveUppercase:!1,…o},0===(i=Array.isArray(i)?i.map(e=>e.trim()).filter(e=>e.length).join(«-«):i.trim()).length)return»»;const c=!1===o.locale?e=>e.toLowerCase():e=>e.toLocaleLowerCase(o.locale),l=!1===o.locale?e=>e.toUpperCase():e=>e.toLocaleUpperCase(o.locale);if(1===i.length)return o.pascalCase?l(i):c(i);return i!==c(i)&&(i=((n,i,o)=>{let a=!1,s=!1,r=!1;for(let c=0;c(n.lastIndex=0,e.replace(n,e=>t(e))))(i,c):c(i),o.pascalCase&&(i=l(i.charAt(0))+i.slice(1)),((e,t)=>(s.lastIndex=0,r.lastIndex=0,e.replace(s,(e,n)=>t(n)).replace(r,e=>t(e))))(i,l)};return j.exports=c,j.exports.default=c,j.exports}(),A=S(L);function R(e,t,n={}){return null==e||(«object»==typeof e?Object.keys(e).forEach(i=>R(e[i],A(null!=t?t+».»+i:i),n)):null!=t&&(n[t]=e)),n}function k(e){return t(e,»catalogObjectType»,»catalogObjectId»,»quantity»),Object.assign({catalogObjectType:e.catalogObjectType,catalogObjectId:e.catalogObjectId,price:e.price,quantity:e.quantity,currency:e.currency},R(e.attributes,»attribute»))}function P(e,t,n){const i=function(e,t){return Object.assign(Object.assign(Object.assign({},y(e,t)),w(e)),{category:»Engagement»,eventType:»cart»})}(e,n);return[i,…D(i,t)]}function D(n,i){const o=[];if(function(t){return t.name===e.CartInteractionName.AddToCart}(i)||function(t){return t.name===e.CartInteractionName.RemoveFromCart}(i)){t(i,»lineItem»);const e=M(n,i.lineItem);null!=e&&o.push(e)}else!function(t){return t.name===e.CartInteractionName.ReplaceCart}(i)?new Set(i.lineItems).add(i.lineItem).forEach(e=>{if(x(e)){const t=M(n,e);null!=t&&o.push(t)}}):(t(i,»lineItems»),i.lineItems.forEach(e=>{const t=M(n,e);null!=t&&o.push(t)}));return o}function M(e,t){try{return Object.assign(Object.assign(Object.assign({},O(e)),k(t)),{eventType:»cartItem»,cartEventId:e.eventId})}catch(e){const t=e instanceof Error?e.message:»Unknown error occurred during cart event extraction»;return s().log.error(t),null}}function N(e,n,i){t(n,»catalogObject»);return[$(e,n.catalogObject,i)]}function $(e,n,i){return t(n,»id»,»type»),Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},y(e,i)),w(e)),R(n.attributes,»attribute»)),R(n.relatedCatalogObjects,»relatedCatalogObject»)),{category:»Engagement»,eventType:»catalog»,id:n.id,type:n.type})}function U(e,n,i){t(n,»order»);const o=n.order,a=function(e,n,i){return t(n,»id»),Object.assign(Object.assign(Object.assign(Object.assign({},y(e,i)),w(e)),R(n.attributes,»attribute»)),{category:»Engagement»,eventType:»order»,orderId:n.id,orderCurrency:n.currency,orderTotalValue:n.totalValue})}(e,o,i);return[a,…F(a,o)]}function F(e,t){if(null==t.lineItems)return[];const n=[];return t.lineItems.forEach(t=>{const i=function(e,t){try{return Object.assign(Object.assign(Object.assign({},O(e)),k(t)),{eventType:»orderItem»,orderEventId:e.eventId})}catch(e){const t=e instanceof Error?e.message:»Unknown error occurred during order event extraction»;return s().log.error(t),null}}(e,t);null!=i&&n.push(i)}),n}const H=»timeTracking»,q=[«pageViewId»,»pingSequence»,»pageStartTime»,»lastActivityTime»,»activeTime»,»totalActiveTime»,»threshold»];function B(e){if(!(«eventType»in e)||!(«name»in e))return!1;const t=e.eventType,n=e.name;return»string»==typeof t&&(t===H||t.endsWith(«Time»))&&(«timeOnPage»===n||»pageExit»===n)}function V(e,t,n){var i;const o=I(null!==(i=t.eventType)&&void 0!==i?i:t.name);if(null==o)return[];const a=Object.keys(e.interaction).reduce((e,n)=>(«name»!==n&&(e[n]=t[n]),e),{});return[Object.assign(Object.assign(Object.assign(Object.assign({},R(a)),y(e,n)),w(e)),{eventType:o,category:»Engagement»})]}function W(e,t,n){return null==(null==t?void 0:t.eventType)?[…_(e,t,n),…z(e,t,n),…J(e,t,n)]:[]}function _(e,t,n){return function(e){return t=null==e?void 0:e.order,null!=(null==t?void 0:t.id);var t}(t)?U(e,t,n):[]}function z(e,t,n){return function(e){return t=null==e?void 0:e.catalogObject,null!=(null==t?void 0:t.id)&&null!=(null==t?void 0:t.type);var t}(t)?N(e,t,n):[]}function J(e,t,n){return function(e){var t;return x(null==e?void 0:e.lineItem)||(null===(t=null==e?void 0:e.lineItems)||void 0===t?void 0:t.some(x))}(t)?P(e,t,n):[]}function K(n,i){const o=null==n?void 0:n.interaction;return null==o?[]:(t(n.interaction,»name»),function(t){return e.OrderInteractionName.Return===t.name||e.OrderInteractionName.Ship===t.name||e.OrderInteractionName.Preorder===t.name||e.OrderInteractionName.Cancel===t.name||e.OrderInteractionName.Exchange===t.name||e.OrderInteractionName.Purchase===t.name||e.OrderInteractionName.Deliver===t.name}(o)?U(n,o,i):function(t){return e.CatalogObjectInteractionName.ViewCatalogObject===t.name||e.CatalogObjectInteractionName.CommentCatalogObject===t.name||e.CatalogObjectInteractionName.FavoriteCatalogObject===t.name||e.CatalogObjectInteractionName.ReviewCatalogObject===t.name||e.CatalogObjectInteractionName.ShareCatalogObject===t.name||e.CatalogObjectInteractionName.QuickViewCatalogObject===t.name||e.CatalogObjectInteractionName.ViewCatalogObjectDetail===t.name}(o)?N(n,o,i):function(t){return e.CartInteractionName.ReplaceCart===t.name||e.CartInteractionName.AddToCart===t.name||e.CartInteractionName.RemoveFromCart===t.name}(o)?P(n,o,i):B(o)?function(e,t,n){if(!B(t))return[];const i=t,o=I(i.eventType);if(null==o)return[];const a=q.reduce((e,t)=>{const n=i[t];return void 0!==n&&(e[t]=n),e},{}),s={};for(const[e,t]of Object.entries(i))void 0!==t&&»name»!==e&&»eventType»!==e&&(q.includes(e)||(s[e]=t));const r=Object.assign(Object.assign({},a),s);return[Object.assign(Object.assign(Object.assign(Object.assign({},R(r)),y(e,n)),w(e)),{eventType:o,category:»Engagement»})]}(n,o,i):function(e,t,n){return[…W(e,t,n),…V(e,t,n)]}(n,o,i))}function Z(e,t){var n,i;const o=b(e,t);if(function(e){return e.length>0&&e.every(e=>»opt-out»===e.status)}(o))return o;const a=function(e,t){var n;const i=null===(n=null==e?void 0:e.user)||void 0===n?void 0:n.attributes;if(«object»!=typeof i)return[];const o=I(null==i?void 0:i.eventType);if(null==o)throw new Error(`Missing or invalid required «user.attributes.eventType» string in action: ${JSON.stringify(e,null,»\t»)}`);return[Object.assign(Object.assign(Object.assign(Object.assign({},y(e,t)),w(e)),i),{eventType:o,category:»Profile»})]}(e,t);return(null===(i=null===(n=s())||void 0===n?void 0:n.DataCloud)||void 0===i?void 0:i.profileHasChanged)&&(0===a.length&&(a.push(Object.assign(Object.assign({},y(e,t)),{category:»Profile»,eventType:»identity»,isAnonymous:1})),s().log.debug(`Attaching new anonymous identity: ${c(t)}`)),s().DataCloud.profileHasChanged=!1),[…o,…a,…K(e,t)]}function G(e,t){return»boolean»==typeof t?t?1:0:t}const Q=»application/json, text/javascript, */*; q=0.01″,X=»Rate Limit Telemetry»,Y=»rateLimitTelemetry»,ee=»blocked»;async function te(e,t,o){const r=function(e,t,n,i){if(!i||0===Object.keys(i).length)return n;const o={time:Date.now(),source:e.source,interaction:{name:X,eventType:Y,[ee]:i}},a=Z(o,t);if(0===a.length)return n;return n.concat(a)}(e,t,Z(e,t),o),c={actionEvent:e,events:r};(null==e?void 0:e.suppressDataCloudSend)&&(c.suppressDataCloudSend=!0);const l=!document.dispatchEvent(new CustomEvent(d.OnBeforeEventSend,{detail:c,cancelable:!0}));if(s().getLoggingLevel()>=4&&s().log.debug(`Events translated for Data Cloud: ${JSON.stringify(r,G,»\t»)}`),!c.suppressDataCloudSend&&!(null==e?void 0:e.suppressDataCloudSend)&&r.length>0&&!l){const e=t.tenantSpecificEndpoint+»/web/events/»+t.authenticator.appSourceId,o={events:r},s=JSON.stringify(o,G);n(d.OnEventSend,JSON.parse(s)),await async function(e,t){!function(){if(«function»!=typeof window.fetch)return!1;try{return!!new Request(«_»,{keepalive:!0}).keepalive}catch(e){return!1}}()?await async function(e,t){const n=await i(n=>{const i=encodeURIComponent(u(t));n.open(«POST»,e,!0),n.setRequestHeader(«Accept»,Q),n.setRequestHeader(«Content-Type»,»application/x-www-form-urlencoded»),n.send(`event=${i}`)});if(!a(n)){const e=new Error(`Response was not OK: ${n.responseText}`);throw Object.assign(e,{status:n.status,statusText:n.statusText}),e}}(e,t):await async function(e,t){const n=encodeURIComponent(u(t)),i=new Headers;i.append(«Accept»,Q),i.append(«Content-Type»,»application/x-www-form-urlencoded»);const o={method:»POST»,headers:i,body:`event=${n}`,credentials:»omit»,keepalive:!0},a=await fetch(e,o);if(await a.text(),!a.ok){const e=new Error(`Response was not OK. Type: ${a.type}, status: ${a.status} (${a.statusText})`);throw Object.assign(e,{status:a.status,statusText:a.statusText,type:a.type}),e}}(e,t)}(e,s)}}const ne=1e4,ie=1e3,oe=36e5,ae={enabled:!0,enableBlockedEventTelemetry:!0,globalLimit:200,globalTimeRange:6e4,perInteractionLimit:60,perInteractionTimeRange:6e4};function se(t,n){var i;const o=null!=n?n:l(t);let a=null;const r=null!==(i=t.rateLimiting)&&void 0!==i?i:ae,c=r.enabled,u=r.enableBlockedEventTelemetry;let d={};if(c){const t={globalLimit:r.globalLimit,globalTimeRange:r.globalTimeRange,perInteractionLimit:r.perInteractionLimit,perInteractionTimeRange:r.perInteractionTimeRange};a=new e.InteractionEventRateLimiter(t)}else s().log.info(«Rate limiting is disabled. All events will be sent.»);return async e=>{const n=e.interaction,i=(null==n?void 0:n.eventType)||(null==n?void 0:n.name)||»unknown»;if(a&&a.isTriggerLimitExceeded({name:i})){if(u){const e=i,t=!(e in d);if(d[e]=(d[e]||0)+1,t){const e=Object.keys(d);if(e.length>100){const t=e[0];delete d[t]}}}return void s().log.warn(`Event rate limit exceeded for interaction «${i}». Event dropped.`)}if(await o()){let n;u&&Object.keys(d).length>0&&(n=Object.assign({},d),d={}),await te(e,t,n)}}}function re(){return s().getConsents().findIndex(t=>t.consent.status===e.ConsentStatus.OptIn)>=0}const ce={enabled:!1,activityTimeoutMillis:5e3,minimumActivityTimeToRegister:300,maxSessionDurationMillis:36e5,eventTypes:[«catalog»],thresholds:[{label:»LOW_INTEREST»,threshold:3e4},{label:»HIGH_INTEREST»,threshold:6e4}],sendPageExitWithoutThreshold:!1,maxEventsPerSession:20};class le{getEffectiveConfig(){return this.config}getTotalActiveTime(){return this.snapshot.totalActiveTime}constructor(e){this.intervalId=null,this.lastFlushedTotalActiveTime=0,this.pageHidden=!1,this.pingSequence=0,this.capturedContextEvent=null,this.capturedEventType=null,this.activityListeners=[],this.nextThresholdIndex=0,this.hasSentInitialThreshold=!1,this.onPageHideHandler=null,this.options=e,this.config=this.withDefaults(e.timeTracking);const t=Date.now();this.snapshot={pageStartTime:t,lastActivityTime:t,totalActiveTime:0},this.pageViewId=f()}start(){this.config.enabled&&(this.bindActivityListeners(),this.bindUnloadListeners(),this.intervalId=window.setInterval(()=>this.onTick(),1e3),this.trace(«TimeTracking: started»,{intervalMs:1e3,activityTimeout:this.config.activityTimeoutMillis}))}stop(){null!=this.intervalId&&(window.clearInterval(this.intervalId),this.intervalId=null),this.unbindActivityListeners(),this.handlePageExit(),this.unbindUnloadListeners(),this.trace(«TimeTracking: stopped»)}observeOutgoingAction(e,t=[]){try{const n=null==e?void 0:e.interaction;if(this.isTimeTrackingEvent(n))return;if(this.capturedContextEvent)return;for(const e of this.config.eventTypes){const n=t.find(t=>t.eventType===e);if(n)return void this.captureContextEvent(n)}}catch(e){this.trace(«TimeTracking: error observing action»,e)}}isTimeTrackingEvent(e){const t=null==e?void 0:e.eventType,n=null==e?void 0:e.name;return»string»==typeof t&&t.trim().length>0&&(t===H||t.endsWith(«Time»))&&(«timeOnPage»===n||»pageExit»===n)}captureContextEvent(e){const t=Object.assign({},e);this.capturedEventType=e.eventType;if([«category»,»dateTime»,»deviceId»,»eventId»,»eventType»,»sessionId»,»interactionName»,»pageView»,»sourceChannel»,»sourceLocale»,»sourcePageType»,»sourceUrl»,»sourceUrlReferrer»].forEach(e=>{delete t[e]}),e.eventType&&e.eventId){const n=`${e.eventType}EventId`;t[n]=e.eventId}this.capturedContextEvent=t,this.trace(«TimeTracking: captured context»,this.capturedContextEvent)}onTick(){const e=Date.now();if(e-this.snapshot.pageStartTime>this.config.maxSessionDurationMillis)return void this.resetSession(e,»max duration exceeded»);const t=e-this.snapshot.lastActivityTime,n=t<=this.config.activityTimeoutMillis;if(this.trace("TimeTracking: tick",{sinceLast:t,isActive:n,totalActiveTime:this.snapshot.totalActiveTime}),n)for(this.addActiveTime(e);this.nextThresholdIndex=this.config.thresholds[this.nextThresholdIndex].threshold;){const e=this.config.thresholds[this.nextThresholdIndex];this.trace(«TimeTracking: threshold reached»,e),this.sendTimeTrackingEvent(«timeOnPage»,e.label),this.nextThresholdIndex++}else this.snapshot.activeSince=void 0}resetSession(e,t){const n=e-this.snapshot.pageStartTime;this.flushActiveTime(),this.sendTimeTrackingEvent(«timeOnPage»,»pageExit»),this.snapshot.pageStartTime=e,this.snapshot.totalActiveTime=0,this.lastFlushedTotalActiveTime=0,this.pageViewId=f(),this.pingSequence=0,this.nextThresholdIndex=0,this.hasSentInitialThreshold=!1,this.capturedContextEvent=null,this.capturedEventType=null,this.trace(`TimeTracking: session reset (${t})`,{sessionDuration:n,maxDuration:this.config.maxSessionDurationMillis})}bindActivityListeners(){const e=()=>{const e=Date.now();null==this.snapshot.activeSince&&(this.snapshot.activeSince=e,this.trace(«TimeTracking: activity resumed»)),this.snapshot.lastActivityTime=e};[{element:document,event:»mousemove»,handler:e,options:{passive:!0}},{element:document,event:»click»,handler:e,options:{passive:!0}},{element:document,event:»scroll»,handler:e,options:{passive:!0}},{element:document,event:»wheel»,handler:e,options:{passive:!0}},{element:document,event:»mousedown»,handler:e,options:{passive:!0}},{element:document,event:»keydown»,handler:e,options:{passive:!0}},{element:document,event:»touchstart»,handler:e,options:{passive:!0}},{element:document,event:»touchmove»,handler:e,options:{passive:!0}},{element:window,event:»focus»,handler:e,options:{passive:!0}},{element:window,event:»blur»,handler:()=>{this.trace(«TimeTracking: blur -> flush»),this.flushActiveTime(),this.markFlushPoint()},options:{passive:!0}},{element:document,event:»visibilitychange»,handler:()=>{if(«hidden»===document.visibilityState)this.trace(«TimeTracking: visibility hidden -> flush»),this.flushActiveTime(),this.markFlushPoint();else if(«visible»===document.visibilityState){const e=Date.now();this.snapshot.activeSince=e,this.snapshot.lastActivityTime=e,this.trace(«TimeTracking: visibility visible -> resume»)}},options:{passive:!0}},{element:document,event:d.OnBeforeEventSend,handler:e=>{const t=e,{actionEvent:n,events:i}=t.detail||{};n&&this.observeOutgoingAction(n,i)}}].forEach(({element:e,event:t,handler:n,options:i})=>{void 0!==i?e.addEventListener(t,n,i):e.addEventListener(t,n),this.activityListeners.push({element:e,event:t,handler:n})})}unbindActivityListeners(){this.activityListeners.forEach(({element:e,event:t,handler:n})=>{e.removeEventListener(t,n)}),this.activityListeners=[]}bindUnloadListeners(){this.onPageHideHandler=()=>this.handlePageExit(),window.addEventListener(«pagehide»,this.onPageHideHandler)}unbindUnloadListeners(){this.onPageHideHandler&&(window.removeEventListener(«pagehide»,this.onPageHideHandler),this.onPageHideHandler=null)}handlePageExit(){this.pageHidden||(this.pageHidden=!0,this.capturedContextEvent?this.hasSentInitialThreshold||this.config.sendPageExitWithoutThreshold?(this.flushActiveTime(),this.trace(«TimeTracking: pageExit»,{totalActiveTime:this.snapshot.totalActiveTime}),this.sendTimeTrackingEvent(«pageExit»,»pageExit»)):this.trace(«TimeTracking: pageExit skipped (no threshold sent and sendPageExitWithoutThreshold is false)»):this.trace(«TimeTracking: pageExit skipped (no context)»))}flushActiveTime(){const e=Date.now();this.addActiveTime(e),this.snapshot.activeSince=void 0,this.trace(«TimeTracking: flushed»,{totalActiveTime:this.snapshot.totalActiveTime})}markFlushPoint(){this.lastFlushedTotalActiveTime=this.snapshot.totalActiveTime}addActiveTime(e){var t;if(null==this.snapshot.activeSince)return;const n=e-this.snapshot.activeSince,i=Math.max(3e5,this.config.activityTimeoutMillis);if(n<0||n>i)return s().log.debug(«TimeTracking: rejected delta»,{delta:n,reason:n<0?"negative":"excessive",maxActivityDelta:i}),void(this.snapshot.activeSince=e);n>=(null!==(t=this.config.minimumActivityTimeToRegister)&&void 0!==t?t:0)&&(this.snapshot.totalActiveTime+=n,this.snapshot.activeSince=e)}buildTimeTrackingInteraction(e,t,n,i){const o={name:e,eventType:`${this.capturedEventType}Time`,pageViewId:this.pageViewId,pingSequence:++this.pingSequence,pageStartTime:new Date(this.snapshot.pageStartTime).toISOString(),lastActivityTime:new Date(this.snapshot.lastActivityTime).toISOString(),activeTime:t,totalActiveTime:n,threshold:i};if(this.capturedContextEvent)for(const e in this.capturedContextEvent)Object.prototype.hasOwnProperty.call(this.capturedContextEvent,e)&&(Object.prototype.hasOwnProperty.call(o,e)?s().log.warn(`TimeTracking: context field collision ‘${e}’ – ignoring context value`):o[e]=this.capturedContextEvent[e]);return o}sendTimeTrackingEvent(t,i){var o;if(!this.capturedContextEvent)return;if(this.pingSequence>=this.config.maxEventsPerSession)return void s().log.warn(«TimeTracking: max events limit reached, skipping send»,{limit:this.config.maxEventsPerSession,sent:this.pingSequence});»timeOnPage»===t&&(this.hasSentInitialThreshold=!0);const a=Date.now(),r=this.snapshot.totalActiveTime,c=Math.max(0,r-this.lastFlushedTotalActiveTime);if(«timeOnPage»===t&&c<=0)return void this.trace("TimeTracking: suppress timeOnPage (no new active time)",{deltaSinceFlush:c,totalActiveTime:r});const l=this.buildTimeTrackingInteraction(t,c,r,i),d={time:a,source:{url:null===(o=window.location)||void 0===o?void 0:o.href,urlReferrer:document.referrer},interaction:l};if("pageExit"===t&&"undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon)try{if(!re())return void this.trace("TimeTracking: pageExit beacon skipped (no consent)");const t=Z(d,this.options);if(t.length>0){const i=JSON.stringify({events:t},G),o=function(e,t){try{if(«undefined»==typeof navigator||»function»!=typeof navigator.sendBeacon)return!1;const n=e.tenantSpecificEndpoint+»/web/events/»+e.authenticator.appSourceId,i=encodeURIComponent(u(t)),o=new Blob([`event=${i}`],{type:»application/x-www-form-urlencoded»});return o.size>65536&&s().log.warn(`navigator.sendBeacon payload too large (${o.size} bytes). Limit is 64KB. Beacon will likely fail.`),navigator.sendBeacon(n,o)}catch(e){return s().log.warn(«Beacon send failed:»,e),!1}}(this.options,i);if(this.trace(«TimeTracking: pageExit beacon attempt»,{events:t.length,queued:o}),o){this.markFlushPoint();return d.suppressDataCloudSend=!0,void n(e.CustomEvents.OnEventSend,{actionEvent:d})}}}catch(e){}n(e.CustomEvents.OnEventSend,{actionEvent:d}),this.markFlushPoint()}withDefaults(e){var t,n,i,o,a,s,r,c;if(void 0===e)return ce;const l=e,u=[…null!==(t=l.thresholds)&&void 0!==t?t:ce.thresholds].sort((e,t)=>e.threshold-t.threshold),d=null!==(n=l.maxEventsPerSession)&&void 0!==n?n:ce.maxEventsPerSession;return this.validateConfiguration(u,d),{enabled:null!==(i=l.enabled)&&void 0!==i?i:ce.enabled,activityTimeoutMillis:Math.max(1e3,null!==(o=l.activityTimeoutMillis)&&void 0!==o?o:ce.activityTimeoutMillis),minimumActivityTimeToRegister:null!==(a=l.minimumActivityTimeToRegister)&&void 0!==a?a:ce.minimumActivityTimeToRegister,maxSessionDurationMillis:null!==(s=l.maxSessionDurationMillis)&&void 0!==s?s:ce.maxSessionDurationMillis,eventTypes:null!==(r=l.eventTypes)&&void 0!==r?r:ce.eventTypes,thresholds:u,sendPageExitWithoutThreshold:null!==(c=l.sendPageExitWithoutThreshold)&&void 0!==c?c:ce.sendPageExitWithoutThreshold,maxEventsPerSession:d}}validateConfiguration(e,t){try{const n=e.length+1;ts(),window.getSalesforceInteractionsName=()=>»SalesforceInteractions»,function(i){t(i,»tenantSpecificEndpoint»,»authenticator»),t(i.authenticator,»appSourceId»),i.tenantSpecificEndpoint=function(e,t=»»){const n=»https://»;try{if(e=e.trim(),/^.+:\/\/.*/.test(e)||(e=n+e),!(e=n+new URL(e).hostname).endsWith(«.salesforce.com»))throw new TypeError(«Invalid URL: «+e)}catch(n){if(e=»»,»»!==t)throw new Error(t)}return e}(i.tenantSpecificEndpoint,»tenantSpecificEndpoint is invalid»);let o=Object.assign(Object.assign(Object.assign({},i),void 0===i.timeTracking&&{timeTracking:ce}),void 0===i.rateLimiting&&{rateLimiting:ae});const a=l(o);let r=se(o,a),c=null;try{c=new le(o),c.start(),window.addEventListener(«pagehide»,()=>{try{null==c||c.stop()}catch(e){}}),ue(e.CustomEvents.OnShutDown,async()=>{try{null==c||c.stop()}catch(e){}c=null}),s().DataCloud.stopTimeTracking=()=>{try{null==c||c.stop()}catch(e){s().log.error(«Error stopping time tracking service via global method»,e)}}}catch(e){s().log.error(«Failed to initialize time tracking service»,e)}function u(e,t){const n=function(e){if(!e)return;const t=s().log,n=e,i=[],o={};if(«enabled»in n&&(«boolean»!=typeof n.enabled?i.push(‘»enabled» must be a boolean, got ‘+typeof n.enabled):o.enabled=n.enabled),»activityTimeoutMillis»in n&&(«number»!=typeof n.activityTimeoutMillis||!Number.isFinite(n.activityTimeoutMillis)||n.activityTimeoutMillis<0?i.push('"activityTimeoutMillis" must be a non-negative number, got '+typeof n.activityTimeoutMillis):o.activityTimeoutMillis=Math.max(1e3,n.activityTimeoutMillis)),"minimumActivityTimeToRegister"in n&&("number"!=typeof n.minimumActivityTimeToRegister||!Number.isFinite(n.minimumActivityTimeToRegister)||n.minimumActivityTimeToRegister<0?i.push('"minimumActivityTimeToRegister" must be a non-negative number, got '+typeof n.minimumActivityTimeToRegister):o.minimumActivityTimeToRegister=n.minimumActivityTimeToRegister),"maxSessionDurationMillis"in n&&("number"!=typeof n.maxSessionDurationMillis||!Number.isFinite(n.maxSessionDurationMillis)||n.maxSessionDurationMillis<0?i.push('"maxSessionDurationMillis" must be a non-negative number, got '+typeof n.maxSessionDurationMillis):o.maxSessionDurationMillis=n.maxSessionDurationMillis),"eventTypes"in n)if(Array.isArray(n.eventTypes)){const e=[],t=[];for(const i of n.eventTypes)if("string"!=typeof i)e.push(String(i));else{const n=I(i);null===n?e.push(i):t.push(n)}e.length>0?i.push(`»eventTypes» contains invalid entries: ${e.join(«, «)}`):o.eventTypes=t}else i.push(‘»eventTypes» must be an array of strings, got ‘+typeof n.eventTypes);if(«thresholds»in n)if(Array.isArray(n.thresholds)){const e=[],t=[],a=new Set,s=new Set;for(let i=0;i 0)`);continue}const l=r.trim();a.has(l)?e.push(`entry at index ${i} (duplicate label «${l}»)`):s.has(c)?e.push(`entry at index ${i} (duplicate threshold ${c})`):(a.add(l),s.add(c),t.push({label:l,threshold:c}))}e.length>0?i.push(`»thresholds» contains invalid entries: ${e.join(«; «)}`):t.length>0&&(t.sort((e,t)=>e.threshold-t.threshold),o.thresholds=t)}else i.push(‘»thresholds» must be an array, got ‘+typeof n.thresholds);if(«sendPageExitWithoutThreshold»in n&&(«boolean»!=typeof n.sendPageExitWithoutThreshold?i.push(‘»sendPageExitWithoutThreshold» must be a boolean, got ‘+typeof n.sendPageExitWithoutThreshold):o.sendPageExitWithoutThreshold=n.sendPageExitWithoutThreshold),»maxEventsPerSession»in n&&(«number»!=typeof n.maxEventsPerSession||!Number.isFinite(n.maxEventsPerSession)||n.maxEventsPerSession<0?i.push('"maxEventsPerSession" must be a non-negative number, got '+typeof n.maxEventsPerSession):o.maxEventsPerSession=n.maxEventsPerSession),!(i.length>0))return o;t.error(«TimeTracking: Invalid configuration provided. All values must have correct types. Keeping existing configuration.»,{errors:i,providedConfig:n})}(t);return void 0===n?e:Object.assign(Object.assign({},e),n)}function d(e,t){const n=function(e){if(!e)return;const t=s().log,n=[],i={};if(void 0!==e.enabled&&(«boolean»!=typeof e.enabled?n.push(‘»enabled» must be a boolean, got ‘+typeof e.enabled):i.enabled=e.enabled),void 0!==e.enableBlockedEventTelemetry&&(«boolean»!=typeof e.enableBlockedEventTelemetry?n.push(‘»enableBlockedEventTelemetry» must be a boolean, got ‘+typeof e.enableBlockedEventTelemetry):i.enableBlockedEventTelemetry=e.enableBlockedEventTelemetry),void 0!==e.globalLimit&&(«number»!=typeof e.globalLimit||!Number.isFinite(e.globalLimit)||e.globalLimit<1||e.globalLimit>ne?n.push(‘»globalLimit» must be a number between 1 and 10000, got ‘+typeof e.globalLimit):i.globalLimit=Math.floor(e.globalLimit)),void 0!==e.globalTimeRange&&(«number»!=typeof e.globalTimeRange||!Number.isFinite(e.globalTimeRange)||e.globalTimeRangeoe?n.push(‘»globalTimeRange» must be a number between 1000 and 3600000, got ‘+typeof e.globalTimeRange):i.globalTimeRange=Math.floor(e.globalTimeRange)),void 0!==e.perInteractionLimit&&(«number»!=typeof e.perInteractionLimit||!Number.isFinite(e.perInteractionLimit)||e.perInteractionLimit<1||e.perInteractionLimit>ne?n.push(‘»perInteractionLimit» must be a number between 1 and 10000, got ‘+typeof e.perInteractionLimit):i.perInteractionLimit=Math.floor(e.perInteractionLimit)),void 0!==e.perInteractionTimeRange&&(«number»!=typeof e.perInteractionTimeRange||!Number.isFinite(e.perInteractionTimeRange)||e.perInteractionTimeRangeoe?n.push(‘»perInteractionTimeRange» must be a number between 1000 and 3600000, got ‘+typeof e.perInteractionTimeRange):i.perInteractionTimeRange=Math.floor(e.perInteractionTimeRange)),!(n.length>0))return void 0!==i.perInteractionLimit&&void 0!==i.globalLimit&&i.perInteractionLimit>i.globalLimit&&t.warn(`RateLimiting: perInteractionLimit (${i.perInteractionLimit}) exceeds globalLimit (${i.globalLimit}). This may not behave as expected.`,{perInteractionLimit:i.perInteractionLimit,globalLimit:i.globalLimit}),void 0!==i.perInteractionTimeRange&&void 0!==i.globalTimeRange&&i.perInteractionTimeRange>i.globalTimeRange&&t.warn(`RateLimiting: perInteractionTimeRange (${i.perInteractionTimeRange}ms) exceeds globalTimeRange (${i.globalTimeRange}ms). This may not behave as expected.`,{perInteractionTimeRange:i.perInteractionTimeRange,globalTimeRange:i.globalTimeRange}),i;t.error(«RateLimiting: Invalid configuration provided. All values must have correct types and be within bounds. Keeping existing configuration.»,{errors:n,providedConfig:e})}(t);return void 0===n?e:Object.assign(Object.assign({},e),n)}function m(e){var t,n;const i=null==e?void 0:e.dataCloud;let l,m;if(void 0!==(null==i?void 0:i.timeTracking)){l=u(null!==(t=o.timeTracking)&&void 0!==t?t:ce,i.timeTracking)}if(void 0!==(null==i?void 0:i.rateLimiting)){m=d(null!==(n=o.rateLimiting)&&void 0!==n?n:ae,i.rateLimiting)}void 0===l&&void 0===m||(o=Object.assign(Object.assign(Object.assign({},o),void 0!==l&&{timeTracking:l}),void 0!==m&&{rateLimiting:m})),e.dataCloud=Object.assign(Object.assign(Object.assign({},o),void 0!==l&&{timeTracking:l}),void 0!==m&&{rateLimiting:m}),void 0!==l&&function(){const e=c;try{null==c||c.stop(),c=new le(o),c.start()}catch(t){c=e,s().log.error(«Failed to reconfigure time tracking service»,t)}}(),void 0!==m&&function(){try{r=se(o,a)}catch(e){s().log.error(«Failed to reconfigure rate limiting»,e)}}()}ue(e.CustomEvents.OnBeforeInit,async e=>{void 0!==(null==e?void 0:e.detail.sdkConfig)&&m(e.detail.sdkConfig)}),ue(e.CustomEvents.OnSetAnonymousId,async e=>{const{newAnonymousId:t,previousAnonymousId:n}=e.detail;»previousAnonymousId»in e.detail&&»newAnonymousId»in e.detail&&t!==n&&(s().DataCloud.profileHasChanged=!0,s().log.debug(`deviceId has changed from «${String(n)}» to «${String(t)}»`))}),ue(e.CustomEvents.OnEventSend,async t=>{try{const n=t.detail.actionEvent;re()||function(t){var n;return(null===(n=null==t?void 0:t.interaction)||void 0===n?void 0:n.name)===e.MetadataUpdateInteractionName.MetadataUpdate&&Array.isArray(t.consents)&&t.consents.some(t=>t.status===e.ConsentStatus.OptOut)}(n)?await r(n):s().log.debug(«event not sent to CDP because consent was not given»)}catch(t){const i=t instanceof Error?t.message:»Unknown error occurred during event send»;s().log.error(i),n(e.CustomEvents.OnException,{error:t})}})}}(SalesforceInteractions);
try {
cdpEventReceiver({
tenantSpecificEndpoint: «https://mjqtsnrsgvsd9mrtgfqwmnbrmm.c360a.salesforce.com»,
authenticator: {
appSourceId: «87b5c25f-e596-4e96-aca8-023312deb024»
}
});
} catch (e) {
console.error(«[Salesforce Data Cloud] Error initializing Web SDK:», e);
}
})();
(function () {
// —– module personalization – npm/@salesforce/interactions-personalization/1.0/build/dist/index.min.js [1.0.15]
try {
(function(y){«use strict»;function gl(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!==»default»){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var P=gl(y),ml=Object.defineProperty,$i=Object.getOwnPropertySymbols,vl=Object.prototype.hasOwnProperty,El=Object.prototype.propertyIsEnumerable,Yi=(e,t,n)=>t in e?ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yl=(e,t)=>{for(var n in t||(t={}))vl.call(t,n)&&Yi(e,n,t[n]);if($i)for(var n of $i(t))El.call(t,n)&&Yi(e,n,t[n]);return e},_l=(e,t,n)=>new Promise((r,i)=>{var o=a=>{try{l(n.next(a))}catch(u){i(u)}},s=a=>{try{l(n.throw(a))}catch(u){i(u)}},l=a=>a.done?r(a.value):Promise.resolve(a.value).then(o,s);l((n=n.apply(e,t)).next())});function Zi(e,t=(n=>(n=window==null?void 0:window.location)==null?void 0:n.search)()){if(b(e)&&b(t)){const n=new URLSearchParams(t);return Array.from(n.keys()).find(r=>r.toLowerCase()===e.toLowerCase())!==void 0}return!1}function Tl(e,t=(n=>(n=window==null?void 0:window.location)==null?void 0:n.search)()){if(b(e)&&b(t)){const n=new URLSearchParams(t),r=Array.from(n.keys()).find(i=>i.toLowerCase()===e.toLowerCase());if(b(r))return n.get(r)}return null}function bl(e,t=(n=>(n=window==null?void 0:window.location)==null?void 0:n.search)()){if(H(e)&&b(t)){const n=new URLSearchParams(t),r=e.map(o=>o.toLowerCase()),i=Array.from(n.keys()).filter(o=>r.includes(o.toLowerCase()));if(i.length>0){let o={};return i.forEach(s=>{var l;o=yl({[s]:(l=n.get(s))!=null?l:»»},o)}),o}}return null}function wl(e,t=(n=>(n=window==null?void 0:window.location)==null?void 0:n.href)()){const n=new URL(t);if(b(e)){const r=n.searchParams,i=Array.from(r.keys()).find(o=>o.toLowerCase()===e.toLowerCase());b(i)&&n.searchParams.delete(i)}return n}function b(e,t=!1,n=!0){return typeof e!=»string»?!1:t?!0:(n?e.trim():e)!==»»}function D(e){return typeof e==»undefined»||e===null}function H(e,t=!1){return Array.isArray(e)?t?!0:e.length!==0:!1}function Sl(e,t=!1){return e instanceof Map?t?!0:e.size!==0:!1}function Il(e,t=!1){return e instanceof Set?t?!0:e.size!==0:!1}function N(e,t=!0){if(typeof e!=»object»||e===null||Array.isArray(e))return!1;if(!t){for(const n in e)return!0;return!1}return!0}function J(e,t){return N(e)&&!!Object.prototype.hasOwnProperty.call(e,t)}function Ht(e,t=!0){return typeof e==»number»&&(t?Number.isFinite(e):!0)}function et(e){return typeof e==»boolean»}function gn(e){return e!==null&&!isNaN(e)&&e instanceof Date}function tr(e){return typeof e==»function»}function nr(e,t){return!b(e)||!b(t)?e===t:e.toLowerCase()===t.toLowerCase()}function rr(e){return e+»:»+y.generateUuid()}function Ki(e){return`[${e}]`}const Al=function(){return{pageElementVisible:function(e){return _l(this,null,function*(){return yield new Promise(function(t){const n=(i,o)=>{for(let s=0;s{r.disconnect()}),r.observe(e)})})}}}();class Cl{constructor(t,n=50,r=!0){this.name=t,this.maxEntries=n,this.entries=new Map,r&&document.addEventListener(y.CustomEvents.OnShutDown,()=>{this.clear()})}get(t){return this.entries.get(t)}set(t,n){y.log.debug(`Cache «${this.name}»: adding ${t}`,n),this.entries.set(t,n),this.trimIfNecessary()}clear(){y.log.info(`Cache «${this.name}»: clearing all ${this.entries.size} entries`),this.entries.clear()}delete(t){y.log.debug(`Cache «${this.name}»: deleting ${t}`),this.entries.delete(t)}trimIfNecessary(){let t=this.entries.size-this.maxEntries;if(!(Ht(t)||t<=0)){y.log.info(`Cache "${this.name}": removing oldest ${String(t)} entries`);for(const[n,r]of this.entries)if(y.log.info(`Cache "${this.name}": removing value:`,r),this.entries.delete(n),--t<=0)break}}}function Ft(e,t){let n=null;try{b(t)?n=new Date(t):Ht(t)?n=new Date(t):gn(t)&&(n=t)}catch(r){}if(gn(n))return n;throw new Error(`${e} is not a valid date`)}function Xi(e,t){return e.endsWith("Date")?Ft(e,t):t}function Qi(e){let t=0;switch(e){case"ERROR":t=1;break;case"WARN":t=2;break;case"INFO":t=3;break;case"DEBUG":t=4;break;case"TRACE":t=5;break}return y.log.shouldLog(t)}class k{constructor(t,n=new Date){this.detail=t,this.timestamp=n}}class ir{constructor(t){this.updates=[],D(t)?this.setFinished(Promise.reject(new Error("Never updated")),!1):this.setFinished(t)}get finished(){return this._finished}update(t,n){this.updates.push(t),this.setFinished(n)}setFinished(t,n=!0){D(t)||(this._finished=t,this._finished.catch(r=>{if(!n)return;let i;if(r instanceof Error)i=r;else{let o;b(r)?o=r:b(r.message)?o=r.message:o=String(r),i=new Error(o)}this.updates.push(new k(i))}))}}class mn{constructor(t){this.pec=t,this.status=new ir}get revertStatus(){return this._revertStatus}revert(){return D(this._revertStatus)?(D(this.initiateRevert)?this._revertStatus=new ir(Promise.resolve()):this._revertStatus=this.initiateRevert(),this._revertStatus.update(new k(«Requested»)),this._revertStatus):this._revertStatus}static updateForAll(t,n,r){t.forEach(i=>{i.status.update(n,r)})}}class se extends Error{constructor(t,n,r){var i;super(),this.name=t,this.message=n,this.level=(i=r==null?void 0:r.level)!=null?i:»error»,this.cause=r==null?void 0:r.cause,this.context=r==null?void 0:r.context}isContextWithConfigName(t){return N(t)&&»configName»in t&&typeof t.configName==»string»}getConfigName(){return this.isContextWithConfigName(this.context)?this.context.configName:»»}getMessageWithContext(){return this.context!==void 0?`${this.message} Context: ${JSON.stringify(this.context)}`:this.message}}var ce=(e=>(e.AnchorDmoNameRequired=»ANCHOR_DMO_NAME_REQUIRED»,e.AnchorIdNullOrNotEmpty=»ANCHOR_ID_NULL_OR_NOT_EMPTY»,e.AnchorIdRequiredWithDmoName=»ANCHOR_ID_REQUIRED_WITH_DMO_NAME»,e.ConsentOptInRequired=»CONSENT_OPT_IN_REQUIRED»,e.ContextIsNotAnObject=»CONTEXT_IS_NOT_AN_OBJECT»,e.InitRequiresAppSource=»INIT_REQUIRES_APP_SOURCE»,e.InitRequiresTSE=»INIT_REQUIRES_TSE»,e.PersonalizationPointIsNotDefined=»PERSONALIZATION_POINT_IS_NOT_DEFINED»,e.PersonalizationPointNameIsNotAString=»PERSONALIZATION_POINT_NAME_IS_NOT_A_STRING»,e.PersonalizationPointDecisionIdIsNotAString=»PERSONALIZATION_POINT_DECISION_ID_IS_NOT_A_STRING»,e.PersonalizationPointDecisionIdProvidedNonPreview=»PERSONALIZATION_POINT_DECISION_ID_PROVIDED_NON_PREVIEW»,e.PersonalizationPointsIsNotAnArray=»PERSONALIZATION_POINTS_IS_NOT_AN_ARRAY»,e.DecisionIdNotValid=»DECISION_ID_NOT_VALID»,e.EndpointOverrideNotValid=»ENDPOINT_OVERRIDE_NOT_VALID»,e.IndividualIdNotValid=»INDIVIDUAL_ID_NOT_VALID»,e))(ce||{});class he extends se{}var Ji=(e=>(e.PersonalizationFetchFailed=»PERSONALIZATION_FETCH_FAILED»,e))(Ji||{});class eo extends se{}var vt=(e=>(e.InvalidJsonObject=»INVALID_JSON_OBJECT»,e.MissingPersonalizationId=»MISSING_PERSONALIZATION_ID»,e.MissingPersonalizationPointName=»MISSING_PERSONALIZATION_POINT_NAME»,e.MissingPersonalizationContent=»MISSING_PERSONALIZATION_CONTENT»,e.MissingPersonalizationsArray=»MISSING_PERSONALIZATIONS_ARRAY»,e))(vt||{});class zt extends se{}var fe=(e=>(e.MissingPersonalization=»MISSING_PERSONALIZATION»,e.ElementsNotFound=»ELEMENTS_NOT_FOUND»,e.FoundNonElement=»FOUND_NON_ELEMENT»,e.AlreadyPersonalized=»ALREADY_PERSONALIZED»,e.NotSupported=»NOT_SUPPORTED»,e.MissingSubstitutions=»MISSING_SUBSTITUTIONS»,e.MissingPersonalizationDataAttributes=»MISSING_PERSONALIZATION_DATA_ATTRIBUTES»,e.FlickerDefenseRedisplayElapsed=»FLICKER_DEFENSE_REDISPLAY_ELAPSED»,e))(fe||{});class oe extends se{}var j=(e=>(e.DuplicateTransformer=»DUPLICATE_TRANSFORMER»,e.InvalidHandlebarsHelperName=»INVALID_HANDLEBARS_HELPER_NAME»,e.InvalidHandlebarsHelperFunction=»INVALID_HANDLEBARS_HELPER_FUNCTION»,e.InvalidLastModifiedDate=»INVALID_LAST_MODIFIED_DATE»,e.InvalidPublishedDate=»INVALID_PUBLISHED_DATE»,e.InvalidSubstitutionConfigType=»INVALID_SUBSTITUTION_CONFIG_TYPE»,e.InvalidSubstitutionDefinitionConfigDataType=»INVALID_SUBSTITUTION_DEFINITION_CONFIG_DATA_TYPE»,e.InvalidSubstitutionDefinitionConfigType=»INVALID_SUBSTITUTION_DEFINITION_CONFIG_TYPE»,e.InvalidSubstitutionDefinitionDescription=»INVALID_SUBSTITUTION_DEFINITION_DESCRIPTION»,e.InvalidSubstitutionDefinitionLabel=»INVALID_SUBSTITUTION_DEFINITION_LABEL»,e.InvalidSubstitutionDefinitions=»INVALID_SUBSTITUTION_DEFINITIONS»,e.InvalidSubstitutionDefinitionValue=»INVALID_SUBSTITUTION_DEFINITION_VALUE»,e.InvalidTransformerCategory=»INVALID_TRANSFORMER_CATEGORY»,e.InvalidTransformerDescription=»INVALID_TRANSFORMER_DESCRIPTION»,e.InvalidTransformerLabel=»INVALID_TRANSFORMER_LABEL»,e.InvalidTransformerSchemaReference=»INVALID_TRANSFORMER_SCHEMA_REFERENCE»,e.InvalidTransformerType=»INVALID_TRANSFORMER_TYPE»,e.InvalidTransformerTypeDetails=»INVALID_TRANSFORMER_TYPE_DETAILS»,e.InvalidTransformerTypeDetailsType=»INVALID_TRANSFORMER_TYPE_DETAILS_TYPE»,e.InvalidTransformerTypeForCategory=»INVALID_TRANSFORMER_TYPE_FOR_CATEGORY»,e.MissingImplementation=»MISSING_IMPLEMENTATION»,e.MissingTransformer=»MISSING_TRANSFORMER»,e.MissingTransformerName=»MISSING_TRANSFORMER_NAME»,e.MissingTransformerSubstitutionDefinition=»MISSING_TRANSFORMER_SUBSTITUTION_DEFINITION»,e.MissingTransformerSubstitutionDefinitionKey=»MISSING_TRANSFORMER_SUBSTITUTION_DEFINITION_KEY»,e.MissingTransformerTypeDetails=»MISSING_TRANSFORMER_TYPE_DETAILS»,e.MissingTransformerTypeDetailsHtml=»MISSING_TRANSFORMER_TYPE_DETAILS_HTML»,e))(j||{});class B extends se{}var R=(e=>(e.ContentZonesNotAvailable=»CONTENT_ZONES_NOT_AVAILABLE»,e.DisabledTransformer=»TRANSFORMER_IS_DISABLED»,e.DuplicatePersonalizationExperienceConfig=»DUPLICATE_PERSONALIZATION_EXPERIENCE_CONFIG»,e.EngagementDestinationsNotAvailable=»ENGAGEMENT_DESTINATIONS_NOT_AVAILABLE»,e.InvalidDataProviderDataSpaceReferenceType=»INVALID_DATA_PROVIDER_DATA_SPACE_REFERENCE_TYPE»,e.InvalidDataProviderGroupByReferenceType=»INVALID_DATA_PROVIDER_GROUP_BY_REFERENCE_TYPE»,e.InvalidDataProviderGroupByType=»INVALID_DATA_PROVIDER_GROUP_BY_TYPE»,e.InvalidDataProviderReferenceType=»INVALID_DATA_PROVIDER_REFERENCE_TYPE»,e.InvalidDataProviderType=»INVALID_DATA_PROVIDER_TYPE»,e.InvalidDescription=»INVALID_DESCRIPTION»,e.InvalidLabel=»INVALID_LABEL»,e.InvalidLastModifiedDate=»INVALID_LAST_MODIFIED_DATE»,e.InvalidPublishedDate=»INVALID_PUBLISHED_DATE»,e.InvalidRenderIfEmpty=»INVALID_RENDER_IF_EMPTY»,e.InvalidSourceMatchers=»INVALID_SOURCE_MATCHERS»,e.InvalidSourceMatcherType=»INVALID_SOURCE_MATCHER_TYPE»,e.InvalidSourceMatcherValueOnlyStar=»INVALID_SOURCE_MATCHER_ONLY_STAR»,e.InvalidSourceMatcherValueRepeatedStars=»INVALID_SOURCE_MATCHER_REPEATED_STARS»,e.InvalidSourceMatcherValueSpaceWithStars=»INVALID_SOURCE_MATCHER_SPACE_WITH_STARS»,e.InvalidTransformationConfigEngagementDestination=»INVALID_TRANSFORMATION_CONFIG_ENGAGEMENT_DESTINATION»,e.InvalidTransformationConfigEngagementDestinationName=»INVALID_TRANSFORMATION_CONFIG_ENGAGEMENT_DESTINATION_NAME»,e.InvalidTransformationConfigMethod=»INVALID_TRANSFORMATION_CONFIG_METHOD»,e.InvalidTransformationConfigWhen=»INVALID_TRANSFORMATION_CONFIG_WHEN»,e.InvalidTransformationConfigWhenTypes=»INVALID_TRANSFORMATION_CONFIG_WHEN_TYPES»,e.InvalidTransformationContentZone=»INVALID_TRANSFORMATION_CONTENT_ZONE»,e.InvalidTransformations=»INVALID_TRANSFORMATIONS»,e.InvalidTransformationSubstitutionValue=»INVALID_TRANSFORMATION_SUBSTITUTION_VALUE»,e.InvalidTransformationSubstitutionValues=»INVALID_TRANSFORMATION_SUBSTITUTION_VALUES»,e.InvalidTransformationSubstitutionValueType=»INVALID_TRANSFORMATION_SUBSTITUTION_VALUE_TYPE»,e.InvalidTransformationType=»INVALID_TRANSFORMATION_TYPE»,e.InvalidTransformerName=»INVALID_TRANSFORMER_NAME»,e.InvalidWhenValueDelay=»INVALID_WHEN_VALUE_DELAY»,e.InvalidWhenValuePath=»INVALID_WHEN_VALUE_PATH»,e.InvalidWhenValuePercent=»INVALID_WHEN_VALUE_PERCENT»,e.InvalidWhenValueTag=»INVALID_WHEN_VALUE_TAG»,e.MethodRequiresSpecificTransformations=»METHOD_REQUIRES_SPECIFIC_TRANSFORMATIONS»,e.MissingConfig=»MISSING_CONFIG»,e.MissingDataGroupByValue=»MISSING_DATA_PROVIDER_GROUP_BY_VALUE»,e.MissingDataProvider=»MISSING_DATA_PROVIDER»,e.MissingDataProviderValue=»MISSING_DATA_PROVIDER_VALUE»,e.MissingDataSpaceValue=»MISSING_DATA_SPACE_VALUE»,e.MissingEngagementConfig=» MISSING_ENGAGEMENT_CONFIG»,e.MissingEngagementConfigDefaults=» MISSING_ENGAGEMENT_CONFIG_DEFAULTS»,e.MissingEngagementConfigGlobalDefault=» MISSING_ENGAGEMENT_CONFIG_GLOBAL_DEFAULT»,e.MissingName=»MISSING_NAME»,e.MissingSourceMatchers=»MISSING_SOURCE_MATCHERS»,e.MissingSourceMatcherValue=»MISSING_SOURCE_MATCHER_VALUE»,e.MissingSubstitutionDefinitionDefaultValue=»MISSING_SUBSTITUTION_DEFINITION_DEFAULT_VALUE»,e.MissingTransformation=»MISSING_TRANSFORMATION»,e.MissingTransformationConfig=»MISSING_TRANSFORMATION_CONFIG»,e.MissingTransformationConfigMethod=»MISSING_TRANSFORMATION_CONFIG_METHOD»,e.MissingTransformationName=»MISSING_TRANSFORMATION_NAME»,e.MissingTransformationPath=»MISSING_TRANSFORMATION_PATH»,e.MissingTransformationSubstitutionValues=»MISSING_TRANSFORMATION_SUBSTITUTION_VALUES»,e.MissingTransformationTag=»MISSING_TRANSFORMATION_TAG»,e.MissingTransformerName=»MISSING_TRANSFORMER_NAME»,e.PaddedSourceMatcherValue=»PADDED_SOURCE_MATCHER_VALUE»,e.SubstitutionDefinitionKeyNotSupported=»SUBSTITUTION_DEFINITION_KEY_NOT_SUPPORTED»,e.TransformerDoesNotSupportSubstitutionValues=»TRANSFORMER_DOES_NOT_SUPPORT_SUBSTITUTION_VALUES»,e.TransformationConfigMethodNotSupported=»TRANSFORMATION_CONFIG_METHOD_NOT_SUPPORTED»,e.TransformationNameNotSupported=»TRANSFORMATION_NAME_NOT_SUPPORTED»,e.TransformationPathNotSupported=»TRANSFORMATION_PATH_NOT_SUPPORTED»,e.TransformationTagNotSupported=»TRANSFORMATION_TAG_NOT_SUPPORTED»,e.TransformersNotAvailable=»TRANSFORMATIONS_NOT_AVAILABLE»,e.UnexpectedError=»UNEXPECTED_ERROR»,e.WhenValuesNotSupported=»WHEN_VALUES_NOT_SUPPORTED»,e.WhenValuesValidationLogicNotImplemented=»WHEN_VALUES_VALIDATION_LOGIC_NOT_IMPLEMENTED»,e.WhenTypeRequiresSpecificMethodType=»WHEN_TYPE_REQUIRES_SPECIFIC_METHOD_TYPE»,e))(R||{});class M extends se{}var Et=(e=>(e.MissingPersonalizationExperienceConfig=»MISSING_PERSONALIZATION_EXPERIENCE_CONFIG»,e.DuplicatePersonalizationExperienceConfigs=»DUPLICATE_PERSONALIZATION_EXPERIENCE_CONFIGS»,e.PointOptionsNotValid=»POINT_OPTIONS_NOT_VALID»,e.PointOptionKeyInvalid=»POINT_OPTION_KEY_INVALID»,e))(Et||{});class Vt extends se{}var to=(e=>(e.OnlySupportConfiguredDataSpace=»ONLY_SUPPORT_CONFIGURED_DATA_SPACE»,e.OnlySupportDataProviderApiName=»ONLY_SUPPORT_DATA_PROVIDER_API_NAME»,e.OnlySupportDataSpaceApiName=»ONLY_SUPPORT_DATA_SPACE_API_NAME»,e.OnlySupportPersonalizationPoint=»ONLY_SUPPORT_PERSONALIZATION_POINT»,e))(to||{});class Pl extends se{}var De=(e=>(e.AddingClickListenerError=»ADDING_CLICK_LISTENER_ERROR»,e.DisplayUtilsPageExitError=»DISPLAY_UTILS_PAGE_EXIT_ERROR»,e.DisplayUtilsPageScrollError=»DISPLAY_UTILS_PAGE_SCROLL_ERROR»,e.NotWaitingForElementClick=»NOT_WAITING_FOR_ELEMENT_CLICK»,e.NotWaitingForElementPath=»NOT_WAITING_FOR_ELEMENT_PATH»,e.NotWaitingForPageExit=»NOT_WAITING_FOR_PAGE_EXIT»,e.NotWaitingForPageScroll=»NOT_WAITING_FOR_PAGE_SCROLL»,e))(De||{});class Ge extends se{}var pe=(e=>(e.InvalidAllowedElements=»INVALID_ALLOWED_ELEMENTS»,e.InvalidAllowedElementKey=»INVALID_ALLOWED_ELEMENT_KEY»,e.InvalidAllowedProperties=»INVALID_ALLOWED_PROPERTIES»,e.InvalidAllowedTargetMethodTypeMethod=»INVALID_ALLOWED_TARGET_METHOD_TYPE_METHOD»,e.InvalidAllowedTargetMethodTypes=»INVALID_ALLOWED_TARGET_METHOD_TYPES»,e.InvalidAllowedTransformers=»INVALID_ALLOWED_TRANSFORMERS»,e.InvalidConfig=»INVALID_CONFIG»,e.InvalidConfigOptions=»INVALID_CONFIG_OPTIONS»,e))(pe||{});class ye extends se{}var lt=(e=>(e.ConfigIsRequired=»CONFIG_IS_REQUIRED»,e.TransformersAreRequired=»TRANSFORMERS_ARE_REQUIRED»,e.WpmConfigIsRequired=»WPM_CONFIG_IS_REQUIRED»,e))(lt||{});class yt extends se{}var Ie=(e=>(e.MethodIsRequired=»METHOD_IS_REQUIRED»,e.MethodNotAllowed=»METHOD_NOT_ALLOWED»,e.OnlyElementsSupported=»ONLY_TARGET_ELEMENTS_ARE_SUPPORTED»,e.OneSourceMatcherSupported=»ONE_SOURCE_MATCHER_IS_SUPPORTED»,e.OneTransformerSupported=»ONE_TRANSFORMER_IS_SUPPORTED»,e.PropertyNotAllowed=»PROPERTY_NOT_ALLOWED»,e.SubstitutionValuesNotAllowed=»SUBSTITUTION_VALUES_NOT_ALLOWED»,e.TagsNotAllowed=»TAGS_NOT_ALLOWED»,e.TransformersAreDisabled=»TRANSFORMERS_ARE_DISABLED»,e))(Ie||{});class Me extends se{}var q=(e=>(e.DestinationEventModifiersAreRequired=»DESTINATION_EVENT_MODIFIERS_ARE_REQUIRED»,e.EngagementDestinationsAreRequired=»ENGAGEMENT_DESTINATIONS_ARE_REQUIRED»,e.EngagementDestinationDefaultsAreRequired=»ENGAGEMENT_DESTINATION_DEFAULTS_ARE_REQUIRED»,e.InvalidConfig=»INVALID_CONFIG»,e.InvalidDestinationEventModifier=»INVALID_DESTINATION_EVENT_MODIFIER»,e.InvalidEngagementDestinationDefaultByName=»INVALID_ENGAGEMENT_DESTINATION_DEFAULT_BY_NAME»,e.InvalidEngagementDestinationDefaultByNameValue=»INVALID_ENGAGEMENT_DESTINATION_DEFAULT_BY_NAME_VALUE»,e.InvalidEngagementDestinationDefaultByType=»INVALID_ENGAGEMENT_DESTINATION_DEFAULT_BY_TYPE»,e.InvalidEngagementDestinationDefaultByTypeValue=»INVALID_ENGAGEMENT_DESTINATION_DEFAULT_BY_TYPE_VALUE»,e.InvalidEngagementDestinationDefaultGlobal=»INVALID_ENGAGEMENT_DESTINATION_DEFAULT_GLOBAL»,e.InvalidEngagementDestinationDescription=»INVALID_ENGAGEMENT_DESTINATION_DESCRIPTION»,e.InvalidEngagementDestinationAttributeDescription=»INVALID_ENGAGEMENT_DESTINATION_ATTRIBUTE_DESCRIPTION»,e.InvalidEngagementDestinationAttributeEngagements=»INVALID_ENGAGEMENT_DESTINATION_ATTRIBUTE_ENGAGEMENTS»,e.InvalidEngagementDestinationAttributeEngagementHandle=»INVALID_ENGAGEMENT_DESTINATION_ATTRIBUTE_ENGAGEMENT_HANDLE»,e.InvalidEngagementDestinationAttributeEngagementObserve=»INVALID_ENGAGEMENT_DESTINATION_ATTRIBUTE_ENGAGEMENT_OBSERVE»,e.InvalidEngagementDestinationAttributeEngagementQualify=»INVALID_ENGAGEMENT_DESTINATION_ATTRIBUTE_ENGAGEMENT_QUALIFY»,e.InvalidEngagementDestinationAttributeEngagementValue=»INVALID_ENGAGEMENT_DESTINATION_ATTRIBUTE_ENGAGEMENT_VALUE»,e.InvalidEngagementDestinationAttributeEventModifierModifyEvent=»INVALID_ENGAGEMENT_DESTINATION_ATTRIBUTE_EVENT_MODIFIER_MODIFY_EVENT»,e.InvalidEngagementDestinationAttributeEventModifiers=»INVALID_ENGAGEMENT_DESTINATION_ATTRIBUTE_EVENT_MODIFIERS»,e.InvalidEngagementDestinationAttributeEventModifiersValue=»INVALID_ENGAGEMENT_DESTINATION_ATTRIBUTE_EVENT_MODIFIERS_VALUE»,e.InvalidEngagementDestinationAttributeEventModifierValueDefault=»INVALID_ENGAGEMENT_DESTINATION_ATTRIBUTE_EVENT_MODIFIER_VALUE_DEFAULT»,e.InvalidEngagementDestinationAttributeEventModifierValueType=»INVALID_ENGAGEMENT_DESTINATION_ATTRIBUTE_EVENT_MODIFIER_VALUE_TYPE»,e.InvalidEngagementDestinationAttributes=»INVALID_ENGAGEMENT_DESTINATION_ATTRIBUTES»,e.InvalidEngagementDestinationAttributeScope=»INVALID_ENGAGEMENT_DESTINATION_ATTRIBUTE_SCOPE»,e.MissingEngagementDestinationAttributeEngagementHandle=»MISSING_ENGAGEMENT_DESTINATION_ATTRIBUTE_ENGAGEMENT_HANDLE»,e.MissingEngagementDestinationAttributeEngagementObserve=»MISSING_ENGAGEMENT_DESTINATION_ATTRIBUTE_ENGAGEMENT_OBSERVE»,e.MissingEngagementDestinationAttributeEngagementQualify=»MISSING_ENGAGEMENT_DESTINATION_ATTRIBUTE_ENGAGEMENT_QUALIFY»,e.MissingEngagementDestinationAttributeEventModifierModifyEvent=»MISSING_ENGAGEMENT_DESTINATION_ATTRIBUTE_EVENT_MODIFIER_MODIFY_EVENT»,e))(q||{});class Y extends se{}var je=(e=>(e.InvalidContentZoneHandlerName=»INVALID_CONTENT_ZONE_HANDLER_NAME»,e.InvalidContentZoneHandlerProperties=»INVALID_CONTENT_ZONE_HANDLER_PROPERTIES»,e.InvalidContentZoneHandlerProperty=»INVALID_CONTENT_ZONE_HANDLER_PROPERTY»,e))(je||{});class tt extends se{}class or extends Error{constructor(t){super(t),this.name=this.constructor.name}}function Nl(e){return N(e)&&»message»in e&&typeof e.message==»string»}function K(e){if(e instanceof se)return{message:e.getMessageWithContext()};if(Nl(e))return e;if(b(e))return{message:e};try{return new Error(JSON.stringify(e))}catch(t){return new Error(String(e))}}const Ol=»personalization/decisions»;var Dl=Object.defineProperty,no=Object.getOwnPropertySymbols,Ml=Object.prototype.hasOwnProperty,Rl=Object.prototype.propertyIsEnumerable,ro=(e,t,n)=>t in e?Dl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,io=(e,t)=>{for(var n in t||(t={}))Ml.call(t,n)&&ro(e,n,t[n]);if(no)for(var n of no(t))Rl.call(t,n)&&ro(e,n,t[n]);return e};let vn,ar,oo=»»,_t={};function sr(){return vn!=null?vn:»»}function Ll(){return ar!=null?ar:»»}function xl(){return _t}function lr(){var e;return(e=_t==null?void 0:_t.dataspace)!=null?e:»»}function En(){return oo}function kl(){document.addEventListener(P.CustomEvents.OnBeforeInit,e=>{var t;const n=e==null?void 0:e.detail.sdkConfig;n!==void 0&&(_t=io(io({},_t),(t=n.personalization)!=null?t:{}),e.detail.sdkConfig.personalization=_t)})}function Ul(){document.addEventListener(P.CustomEvents.OnInit,e=>{var t,n,r;const i=(n=(t=e==null?void 0:e.detail)==null?void 0:t.sdkConfig)==null?void 0:n.dataCloud;if(D(i)){P.log.warn(«OnInit did not include Data Cloud config»);return}if(!b(i.tenantSpecificEndpoint))P.log.warn(«Tenant Specific Endpoint URL was not provided in Data Cloud config»);else try{vn=new URL(Ol,i.tenantSpecificEndpoint).toString()}catch(o){P.log.warn(`Tenant Specific Endpoint URL is not valid: ${i.tenantSpecificEndpoint}`)}!N(i.authenticator)||!b(i.authenticator.appSourceId)?P.log.warn(«App Source Id was not provided in Data Cloud config»):ar=i.authenticator.appSourceId,N(document.currentScript)&&(oo=(r=document.currentScript.nonce)!=null?r:»»)})}function ao(e){if(e===void 0){if(!b(vn))throw new he(ce.InitRequiresTSE,»Tenant Specific Endpoint URL must be set by calling SalesforceInteractions.init.»)}else if(!b(e))throw new he(ce.EndpointOverrideNotValid,»Endpoint URL must be a valid string if provided.»)}function nt(){return!b(sr())}var rt=(e=>(e.EmbeddedContent=»EmbeddedContent»,e.Agent=»Agent»,e))(rt||{}),ge=(e=>(e.HtmlElementModifier=»HTMLElementModifier»,e.Handlebars=»Handlebars»,e.AgentScript=»AgentScript»,e))(ge||{});const Hl={EmbeddedContent:{supportedTypes:[«HTMLElementModifier»,»Handlebars»]},Agent:{supportedTypes:[«AgentScript»]}};var yn=(e=>(e.String=»String»,e))(yn||{}),Re=(e=>(e.SchemaPath=»SchemaPath»,e.Static=»Static»,e))(Re||{}),ur=(e=>(e.PersonalizationPoint=»PersonalizationPoint»,e))(ur||{}),so=(e=>(e.ApiName=»ApiName»,e))(so||{}),lo=(e=>(e.DataGraph=»DataGraph»,e))(lo||{}),Ae=(e=>(e.Immediately=»Immediately»,e.ExitIntent=»ExitIntent»,e.ElementClick=»ElementClick»,e.ScrollPercent=»ScrollPercent»,e))(Ae||{}),$=(e=>(e.ReplaceContentZoneContent=»ReplaceContentZoneContent»,e.ReplaceElementContent=»ReplaceElementContent»,e.AddAfterElement=»AddAfterElement»,e.AddBeforeElement=»AddBeforeElement»,e.AddOverlay=»AddOverlay»,e.ContentZoneHandler=»ContentZoneHandler»,e))($||{});function Tt(e){return e!==void 0&&e===»AddOverlay»}function it(e){return(e==null?void 0:e.tag)!==void 0}function Bt(e){return(e==null?void 0:e.name)!==void 0}function _n(e,t){return Bt(e)&&t!==void 0&&t===»ReplaceContentZoneContent»}function cr(e,t){return Bt(e)&&t!==void 0&&t===»ContentZoneHandler»}function uo(e){return e===ge.AgentScript}function co(e){return(e==null?void 0:e.path)!==void 0}function fo(e){return(e==null?void 0:e.percent)!==void 0}function ho(e){return(e==null?void 0:e.delay)!==void 0}function Tn(e){return D(e)||e===»PersonalizationPoint»}const Fl=»_unknown_»;/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:po,setPrototypeOf:go,isFrozen:zl,getPrototypeOf:Vl,getOwnPropertyDescriptor:Bl}=Object;let{freeze:me,seal:be,create:fr}=Object,{apply:dr,construct:hr}=typeof Reflect!=»undefined»&&Reflect;me||(me=function(t){return t}),be||(be=function(t){return t}),dr||(dr=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o1?n-1:0),i=1;i1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:wn;go&&go(e,null);let r=t.length;for(;r–;){let i=t[r];if(typeof i==»string»){const o=n(i);o!==i&&(zl(t)||(t[r]=o),i=o)}e[i]=!0}return e}function Yl(e){for(let t=0;t/gm),Jl=be(/\$\{[\w\W]*/gm),eu=be(/^data-[\-\w.\u00B7-\uFFFF]+$/),tu=be(/^aria-[\-\w]+$/),To=be(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),nu=be(/^(?:\w+script|data):/i),ru=be(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bo=be(/^html$/i),iu=be(/^[a-z][.\w]*(-[.\w]+)+$/i);var wo=Object.freeze({__proto__:null,ARIA_ATTR:tu,ATTR_WHITESPACE:ru,CUSTOM_ELEMENT:iu,DATA_ATTR:eu,DOCTYPE_NAME:bo,ERB_EXPR:Ql,IS_ALLOWED_URI:To,IS_SCRIPT_OR_DATA:nu,MUSTACHE_EXPR:Xl,TMPLIT_EXPR:Jl});const $t={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ou=function(){return typeof window==»undefined»?null:window},au=function(t,n){if(typeof t!=»object»||typeof t.createPolicy!=»function»)return null;let r=null;const i=»data-tt-policy-suffix»;n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o=»dompurify»+(r?»#»+r:»»);try{return t.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch(s){return console.warn(«TrustedTypes policy «+o+» could not be created.»),null}},So=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Io(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ou();const t=x=>Io(x);if(t.version=»3.3.1″,t.removed=[],!e||!e.document||e.document.nodeType!==$t.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:l,Element:a,NodeFilter:u,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:c,trustedTypes:h}=e,d=a.prototype,g=qt(d,»cloneNode»),E=qt(d,»remove»),w=qt(d,»nextSibling»),_=qt(d,»childNodes»),I=qt(d,»parentNode»);if(typeof s==»function»){const x=n.createElement(«template»);x.content&&x.content.ownerDocument&&(n=x.content.ownerDocument)}let m,T=»»;const{implementation:O,createNodeIterator:A,createDocumentFragment:U,getElementsByTagName:Q}=n,{importNode:W}=r;let V=So();t.isSupported=typeof po==»function»&&typeof I==»function»&&O&&O.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Fe,ERB_EXPR:ze,TMPLIT_EXPR:Li,DATA_ATTR:fg,ARIA_ATTR:dg,IS_SCRIPT_OR_DATA:hg,ATTR_WHITESPACE:Ws,CUSTOM_ELEMENT:pg}=wo;let{IS_ALLOWED_URI:qs}=wo,ae=null;const $s=F({},[…vo,…mr,…vr,…Er,…Eo]);let le=null;const Ys=F({},[…yo,…yr,…_o,…Sn]);let ne=Object.seal(fr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),dn=null,xi=null;const Dt=Object.seal(fr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Zs=!0,ki=!0,Ks=!1,Xs=!0,Mt=!1,$n=!0,gt=!1,Ui=!1,Hi=!1,Rt=!1,Yn=!1,Zn=!1,Qs=!0,Js=!1;const gg=»user-content-«;let Fi=!0,hn=!1,Lt={},Ve=null;const zi=F({},[«annotation-xml»,»audio»,»colgroup»,»desc»,»foreignobject»,»head»,»iframe»,»math»,»mi»,»mn»,»mo»,»ms»,»mtext»,»noembed»,»noframes»,»noscript»,»plaintext»,»script»,»style»,»svg»,»template»,»thead»,»title»,»video»,»xmp»]);let el=null;const tl=F({},[«audio»,»video»,»img»,»source»,»image»,»track»]);let Vi=null;const nl=F({},[«alt»,»class»,»for»,»id»,»label»,»name»,»pattern»,»placeholder»,»role»,»summary»,»title»,»value»,»style»,»xmlns»]),Kn=»http://www.w3.org/1998/Math/MathML»,Xn=»http://www.w3.org/2000/svg»,Xe=»http://www.w3.org/1999/xhtml»;let xt=Xe,Bi=!1,Gi=null;const mg=F({},[Kn,Xn,Xe],pr);let Qn=F({},[«mi»,»mo»,»mn»,»ms»,»mtext»]),Jn=F({},[«annotation-xml»]);const vg=F({},[«title»,»style»,»font»,»a»,»script»]);let pn=null;const Eg=[«application/xhtml+xml»,»text/html»],yg=»text/html»;let ie=null,kt=null;const _g=n.createElement(«form»),rl=function(v){return v instanceof RegExp||v instanceof Function},ji=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(kt&&kt===v)){if((!v||typeof v!=»object»)&&(v={}),v=Le(v),pn=Eg.indexOf(v.PARSER_MEDIA_TYPE)===-1?yg:v.PARSER_MEDIA_TYPE,ie=pn===»application/xhtml+xml»?pr:wn,ae=Ce(v,»ALLOWED_TAGS»)?F({},v.ALLOWED_TAGS,ie):$s,le=Ce(v,»ALLOWED_ATTR»)?F({},v.ALLOWED_ATTR,ie):Ys,Gi=Ce(v,»ALLOWED_NAMESPACES»)?F({},v.ALLOWED_NAMESPACES,pr):mg,Vi=Ce(v,»ADD_URI_SAFE_ATTR»)?F(Le(nl),v.ADD_URI_SAFE_ATTR,ie):nl,el=Ce(v,»ADD_DATA_URI_TAGS»)?F(Le(tl),v.ADD_DATA_URI_TAGS,ie):tl,Ve=Ce(v,»FORBID_CONTENTS»)?F({},v.FORBID_CONTENTS,ie):zi,dn=Ce(v,»FORBID_TAGS»)?F({},v.FORBID_TAGS,ie):Le({}),xi=Ce(v,»FORBID_ATTR»)?F({},v.FORBID_ATTR,ie):Le({}),Lt=Ce(v,»USE_PROFILES»)?v.USE_PROFILES:!1,Zs=v.ALLOW_ARIA_ATTR!==!1,ki=v.ALLOW_DATA_ATTR!==!1,Ks=v.ALLOW_UNKNOWN_PROTOCOLS||!1,Xs=v.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Mt=v.SAFE_FOR_TEMPLATES||!1,$n=v.SAFE_FOR_XML!==!1,gt=v.WHOLE_DOCUMENT||!1,Rt=v.RETURN_DOM||!1,Yn=v.RETURN_DOM_FRAGMENT||!1,Zn=v.RETURN_TRUSTED_TYPE||!1,Hi=v.FORCE_BODY||!1,Qs=v.SANITIZE_DOM!==!1,Js=v.SANITIZE_NAMED_PROPS||!1,Fi=v.KEEP_CONTENT!==!1,hn=v.IN_PLACE||!1,qs=v.ALLOWED_URI_REGEXP||To,xt=v.NAMESPACE||Xe,Qn=v.MATHML_TEXT_INTEGRATION_POINTS||Qn,Jn=v.HTML_INTEGRATION_POINTS||Jn,ne=v.CUSTOM_ELEMENT_HANDLING||{},v.CUSTOM_ELEMENT_HANDLING&&rl(v.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ne.tagNameCheck=v.CUSTOM_ELEMENT_HANDLING.tagNameCheck),v.CUSTOM_ELEMENT_HANDLING&&rl(v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ne.attributeNameCheck=v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),v.CUSTOM_ELEMENT_HANDLING&&typeof v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==»boolean»&&(ne.allowCustomizedBuiltInElements=v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Mt&&(ki=!1),Yn&&(Rt=!0),Lt&&(ae=F({},Eo),le=[],Lt.html===!0&&(F(ae,vo),F(le,yo)),Lt.svg===!0&&(F(ae,mr),F(le,yr),F(le,Sn)),Lt.svgFilters===!0&&(F(ae,vr),F(le,yr),F(le,Sn)),Lt.mathMl===!0&&(F(ae,Er),F(le,_o),F(le,Sn))),v.ADD_TAGS&&(typeof v.ADD_TAGS==»function»?Dt.tagCheck=v.ADD_TAGS:(ae===$s&&(ae=Le(ae)),F(ae,v.ADD_TAGS,ie))),v.ADD_ATTR&&(typeof v.ADD_ATTR==»function»?Dt.attributeCheck=v.ADD_ATTR:(le===Ys&&(le=Le(le)),F(le,v.ADD_ATTR,ie))),v.ADD_URI_SAFE_ATTR&&F(Vi,v.ADD_URI_SAFE_ATTR,ie),v.FORBID_CONTENTS&&(Ve===zi&&(Ve=Le(Ve)),F(Ve,v.FORBID_CONTENTS,ie)),v.ADD_FORBID_CONTENTS&&(Ve===zi&&(Ve=Le(Ve)),F(Ve,v.ADD_FORBID_CONTENTS,ie)),Fi&&(ae[«#text»]=!0),gt&&F(ae,[«html»,»head»,»body»]),ae.table&&(F(ae,[«tbody»]),delete dn.tbody),v.TRUSTED_TYPES_POLICY){if(typeof v.TRUSTED_TYPES_POLICY.createHTML!=»function»)throw Wt(‘TRUSTED_TYPES_POLICY configuration option must provide a «createHTML» hook.’);if(typeof v.TRUSTED_TYPES_POLICY.createScriptURL!=»function»)throw Wt(‘TRUSTED_TYPES_POLICY configuration option must provide a «createScriptURL» hook.’);m=v.TRUSTED_TYPES_POLICY,T=m.createHTML(«»)}else m===void 0&&(m=au(h,i)),m!==null&&typeof T==»string»&&(T=m.createHTML(«»));me&&me(v),kt=v}},il=F({},[…mr,…vr,…Zl]),ol=F({},[…Er,…Kl]),Tg=function(v){let C=I(v);(!C||!C.tagName)&&(C={namespaceURI:xt,tagName:»template»});const L=wn(v.tagName),ee=wn(C.tagName);return Gi[v.namespaceURI]?v.namespaceURI===Xn?C.namespaceURI===Xe?L===»svg»:C.namespaceURI===Kn?L===»svg»&&(ee===»annotation-xml»||Qn[ee]):!!il[L]:v.namespaceURI===Kn?C.namespaceURI===Xe?L===»math»:C.namespaceURI===Xn?L===»math»&&Jn[ee]:!!ol[L]:v.namespaceURI===Xe?C.namespaceURI===Xn&&!Jn[ee]||C.namespaceURI===Kn&&!Qn[ee]?!1:!ol[L]&&(vg[L]||!il[L]):!!(pn===»application/xhtml+xml»&&Gi[v.namespaceURI]):!1},Be=function(v){Gt(t.removed,{element:v});try{I(v).removeChild(v)}catch(C){E(v)}},mt=function(v,C){try{Gt(t.removed,{attribute:C.getAttributeNode(v),from:C})}catch(L){Gt(t.removed,{attribute:null,from:C})}if(C.removeAttribute(v),v===»is»)if(Rt||Yn)try{Be(C)}catch(L){}else try{C.setAttribute(v,»»)}catch(L){}},al=function(v){let C=null,L=null;if(Hi)v=» «+v;else{const re=gr(v,/^[\r\n\t ]+/);L=re&&re[0]}pn===»application/xhtml+xml»&&xt===Xe&&(v=’‘+v+»«);const ee=m?m.createHTML(v):v;if(xt===Xe)try{C=new c().parseFromString(ee,pn)}catch(re){}if(!C||!C.documentElement){C=O.createDocument(xt,»template»,null);try{C.documentElement.innerHTML=Bi?T:ee}catch(re){}}const de=C.body||C.documentElement;return v&&L&&de.insertBefore(n.createTextNode(L),de.childNodes[0]||null),xt===Xe?Q.call(C,gt?»html»:»body»)[0]:gt?C.documentElement:de},sl=function(v){return A.call(v.ownerDocument||v,v,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Wi=function(v){return v instanceof p&&(typeof v.nodeName!=»string»||typeof v.textContent!=»string»||typeof v.removeChild!=»function»||!(v.attributes instanceof f)||typeof v.removeAttribute!=»function»||typeof v.setAttribute!=»function»||typeof v.namespaceURI!=»string»||typeof v.insertBefore!=»function»||typeof v.hasChildNodes!=»function»)},ll=function(v){return typeof l==»function»&&v instanceof l};function Qe(x,v,C){bn(x,L=>{L.call(t,v,C,kt)})}const ul=function(v){let C=null;if(Qe(V.beforeSanitizeElements,v,null),Wi(v))return Be(v),!0;const L=ie(v.nodeName);if(Qe(V.uponSanitizeElement,v,{tagName:L,allowedTags:ae}),$n&&v.hasChildNodes()&&!ll(v.firstElementChild)&&ve(/<[/\w!]/g,v.innerHTML)&&ve(/<[/\w!]/g,v.textContent)||v.nodeType===$t.progressingInstruction||$n&&v.nodeType===$t.comment&&ve(/<[/\w]/g,v.data))return Be(v),!0;if(!(Dt.tagCheck instanceof Function&&Dt.tagCheck(L))&&(!ae[L]||dn[L])){if(!dn[L]&&fl(L)&&(ne.tagNameCheck instanceof RegExp&&ve(ne.tagNameCheck,L)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(L)))return!1;if(Fi&&!Ve[L]){const ee=I(v)||v.parentNode,de=_(v)||v.childNodes;if(de&&ee){const re=de.length;for(let _e=re-1;_e>=0;–_e){const Je=g(de[_e],!0);Je.__removalCount=(v.__removalCount||0)+1,ee.insertBefore(Je,w(v))}}}return Be(v),!0}return v instanceof a&&!Tg(v)||(L===»noscript»||L===»noembed»||L===»noframes»)&&ve(/<\/no(script|embed|frames)/i,v.innerHTML)?(Be(v),!0):(Mt&&v.nodeType===$t.text&&(C=v.textContent,bn([Fe,ze,Li],ee=>{C=jt(C,ee,» «)}),v.textContent!==C&&(Gt(t.removed,{element:v.cloneNode()}),v.textContent=C)),Qe(V.afterSanitizeElements,v,null),!1)},cl=function(v,C,L){if(Qs&&(C===»id»||C===»name»)&&(L in n||L in _g))return!1;if(!(ki&&!xi[C]&&ve(fg,C))){if(!(Zs&&ve(dg,C))){if(!(Dt.attributeCheck instanceof Function&&Dt.attributeCheck(C,v))){if(!le[C]||xi[C]){if(!(fl(v)&&(ne.tagNameCheck instanceof RegExp&&ve(ne.tagNameCheck,v)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(v))&&(ne.attributeNameCheck instanceof RegExp&&ve(ne.attributeNameCheck,C)||ne.attributeNameCheck instanceof Function&&ne.attributeNameCheck(C,v))||C===»is»&&ne.allowCustomizedBuiltInElements&&(ne.tagNameCheck instanceof RegExp&&ve(ne.tagNameCheck,L)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(L))))return!1}else if(!Vi[C]){if(!ve(qs,jt(L,Ws,»»))){if(!((C===»src»||C===»xlink:href»||C===»href»)&&v!==»script»&&Wl(L,»data:»)===0&&el[v])){if(!(Ks&&!ve(hg,jt(L,Ws,»»)))){if(L)return!1}}}}}}}return!0},fl=function(v){return v!==»annotation-xml»&&gr(v,pg)},dl=function(v){Qe(V.beforeSanitizeAttributes,v,null);const{attributes:C}=v;if(!C||Wi(v))return;const L={attrName:»»,attrValue:»»,keepAttr:!0,allowedAttributes:le,forceKeepAttr:void 0};let ee=C.length;for(;ee–;){const de=C[ee],{name:re,namespaceURI:_e,value:Je}=de,Ut=ie(re),qi=Je;let ue=re===»value»?qi:ql(qi);if(L.attrName=Ut,L.attrValue=ue,L.keepAttr=!0,L.forceKeepAttr=void 0,Qe(V.uponSanitizeAttribute,v,L),ue=L.attrValue,Js&&(Ut===»id»||Ut===»name»)&&(mt(re,v),ue=gg+ue),$n&&ve(/((–!?|])>)|<\/(style|title|textarea)/i,ue)){mt(re,v);continue}if(Ut==="attributename"&&gr(ue,"href")){mt(re,v);continue}if(L.forceKeepAttr)continue;if(!L.keepAttr){mt(re,v);continue}if(!Xs&&ve(/\/>/i,ue)){mt(re,v);continue}Mt&&bn([Fe,ze,Li],pl=>{ue=jt(ue,pl,» «)});const hl=ie(v.nodeName);if(!cl(hl,Ut,ue)){mt(re,v);continue}if(m&&typeof h==»object»&&typeof h.getAttributeType==»function»&&!_e)switch(h.getAttributeType(hl,Ut)){case»TrustedHTML»:{ue=m.createHTML(ue);break}case»TrustedScriptURL»:{ue=m.createScriptURL(ue);break}}if(ue!==qi)try{_e?v.setAttributeNS(_e,re,ue):v.setAttribute(re,ue),Wi(v)?Be(v):mo(t.removed)}catch(pl){mt(re,v)}}Qe(V.afterSanitizeAttributes,v,null)},bg=function x(v){let C=null;const L=sl(v);for(Qe(V.beforeSanitizeShadowDOM,v,null);C=L.nextNode();)Qe(V.uponSanitizeShadowNode,C,null),ul(C),dl(C),C.content instanceof o&&x(C.content);Qe(V.afterSanitizeShadowDOM,v,null)};return t.sanitize=function(x){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,L=null,ee=null,de=null;if(Bi=!x,Bi&&(x=»«),typeof x!=»string»&&!ll(x))if(typeof x.toString==»function»){if(x=x.toString(),typeof x!=»string»)throw Wt(«dirty is not a string, aborting»)}else throw Wt(«toString is not a function»);if(!t.isSupported)return x;if(Ui||ji(v),t.removed=[],typeof x==»string»&&(hn=!1),hn){if(x.nodeName){const Je=ie(x.nodeName);if(!ae[Je]||dn[Je])throw Wt(«root node is forbidden and cannot be sanitized in-place»)}}else if(x instanceof l)C=al(««),L=C.ownerDocument.importNode(x,!0),L.nodeType===$t.element&&L.nodeName===»BODY»||L.nodeName===»HTML»?C=L:C.appendChild(L);else{if(!Rt&&!Mt&&!gt&&x.indexOf(«<")===-1)return m&&Zn?m.createHTML(x):x;if(C=al(x),!C)return Rt?null:Zn?T:""}C&&Hi&&Be(C.firstChild);const re=sl(hn?x:C);for(;ee=re.nextNode();)ul(ee),dl(ee),ee.content instanceof o&&bg(ee.content);if(hn)return x;if(Rt){if(Yn)for(de=U.call(C.ownerDocument);C.firstChild;)de.appendChild(C.firstChild);else de=C;return(le.shadowroot||le.shadowrootmode)&&(de=W.call(r,de,!0)),de}let _e=gt?C.outerHTML:C.innerHTML;return gt&&ae["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&ve(bo,C.ownerDocument.doctype.name)&&(_e="
`+_e),Mt&&bn([Fe,ze,Li],Je=>{_e=jt(_e,Je,» «)}),m&&Zn?m.createHTML(_e):_e},t.setConfig=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ji(x),Ui=!0},t.clearConfig=function(){kt=null,Ui=!1},t.isValidAttribute=function(x,v,C){kt||ji({});const L=ie(x),ee=ie(v);return cl(L,ee,C)},t.addHook=function(x,v){typeof v==»function»&&Gt(V[x],v)},t.removeHook=function(x,v){if(v!==void 0){const C=Gl(V[x],v);return C===-1?void 0:jl(V[x],C,1)[0]}return mo(V[x])},t.removeHooks=function(x){V[x]=[]},t.removeAllHooks=function(){V=So()},t}var su=Io();class lu{sanitizeString(t){if(!b(t))return»»;try{return su.sanitize(t)}catch(n){return y.log.error(«could not verify that content was safe»,n),»»}}sanitizeObject(t){const n=H(t);if(!N(t)&&!n)if(b(t))try{return this.sanitizeString(String(t))}catch(r){return y.log.error(«could not verify that content was safe»,r),»»}else return t;if(n)return this.sanitizeArray(t);for(const r in t)N(t[r])?t[r]=this.sanitizeObject(t[r]):H(t[r])?t[r]=this.sanitizeArray(t[r]):J(t,r)&&(t[r]=this.sanitizeObject(t[r]));return t}sanitizeArray(t){if(!H(t))return[];for(let n=0;n(e.TransformerConfig=»TransformerConfig»,e.Element=»Element»,e.Any=»Any»,e))(ct||{}),Cn=(e=>(e.SchemaPath=»SchemaPath»,e))(Cn||{});class fu{add(t,n,r){if(typeof arguments[0]!=»string»)for(let i in arguments[0])this.add(i,arguments[0][i],arguments[1]);else(Array.isArray(t)?t:[t]).forEach(function(i){this[i]=this[i]||[],n&&this[i][r?»unshift»:»push»](n)},this)}run(t,n){this[t]=this[t]||[],this[t].forEach(function(r){r.call(n&&n.context?n.context:n,n)})}}class du{constructor(t){this.jsep=t,this.registered={}}register(){for(var t=arguments.length,n=new Array(t),r=0;r{if(typeof i!=»object»||!i.name||!i.init)throw new Error(«Invalid JSEP plugin format»);this.registered[i.name]||(i.init(this.jsep),this.registered[i.name]=i)})}}class S{static get version(){return»1.4.0″}static toString(){return»JavaScript Expression Parser (JSEP) v»+S.version}static addUnaryOp(t){return S.max_unop_len=Math.max(t.length,S.max_unop_len),S.unary_ops[t]=1,S}static addBinaryOp(t,n,r){return S.max_binop_len=Math.max(t.length,S.max_binop_len),S.binary_ops[t]=n,r?S.right_associative.add(t):S.right_associative.delete(t),S}static addIdentifierChar(t){return S.additional_identifier_chars.add(t),S}static addLiteral(t,n){return S.literals[t]=n,S}static removeUnaryOp(t){return delete S.unary_ops[t],t.length===S.max_unop_len&&(S.max_unop_len=S.getMaxKeyLen(S.unary_ops)),S}static removeAllUnaryOps(){return S.unary_ops={},S.max_unop_len=0,S}static removeIdentifierChar(t){return S.additional_identifier_chars.delete(t),S}static removeBinaryOp(t){return delete S.binary_ops[t],t.length===S.max_binop_len&&(S.max_binop_len=S.getMaxKeyLen(S.binary_ops)),S.right_associative.delete(t),S}static removeAllBinaryOps(){return S.binary_ops={},S.max_binop_len=0,S}static removeLiteral(t){return delete S.literals[t],S}static removeAllLiterals(){return S.literals={},S}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(t){this.expr=t,this.index=0}static parse(t){return new S(t).parse()}static getMaxKeyLen(t){return Math.max(0,…Object.keys(t).map(n=>n.length))}static isDecimalDigit(t){return t>=48&&t<=57}static binaryPrecedence(t){return S.binary_ops[t]||0}static isIdentifierStart(t){return t>=65&&t<=90||t>=97&&t<=122||t>=128&&!S.binary_ops[String.fromCharCode(t)]||S.additional_identifier_chars.has(String.fromCharCode(t))}static isIdentifierPart(t){return S.isIdentifierStart(t)||S.isDecimalDigit(t)}throwError(t){const n=new Error(t+» at character «+this.index);throw n.index=this.index,n.description=t,n}runHook(t,n){if(S.hooks[t]){const r={context:this,node:n};return S.hooks.run(t,r),r.node}return n}searchHook(t){if(S.hooks[t]){const n={context:this};return S.hooks[t].find(function(r){return r.call(n.context,n),n.node}),n.node}}gobbleSpaces(){let t=this.code;for(;t===S.SPACE_CODE||t===S.TAB_CODE||t===S.LF_CODE||t===S.CR_CODE;)t=this.expr.charCodeAt(++this.index);this.runHook(«gobble-spaces»)}parse(){this.runHook(«before-all»);const t=this.gobbleExpressions(),n=t.length===1?t[0]:{type:S.COMPOUND,body:t};return this.runHook(«after-all»,n)}gobbleExpressions(t){let n=[],r,i;for(;this.index0;){if(S.binary_ops.hasOwnProperty(t)&&(!S.isIdentifierStart(this.code)||this.index+t.lengtho.right_a&&p.right_a?r>p.prec:r<=p.prec;for(;i.length>2&&f(i[i.length-2]);)l=i.pop(),n=i.pop().value,s=i.pop(),t={type:S.BINARY_EXP,operator:n,left:s,right:l},i.push(t);t=this.gobbleToken(),t||this.throwError(«Expected expression after «+u),i.push(o,t)}for(a=i.length-1,t=i[a];a>1;)t={type:S.BINARY_EXP,operator:i[a-1].value,left:i[a-2],right:t},a-=2;return t}gobbleToken(){let t,n,r,i;if(this.gobbleSpaces(),i=this.searchHook(«gobble-token»),i)return this.runHook(«after-token»,i);if(t=this.code,S.isDecimalDigit(t)||t===S.PERIOD_CODE)return this.gobbleNumericLiteral();if(t===S.SQUOTE_CODE||t===S.DQUOTE_CODE)i=this.gobbleStringLiteral();else if(t===S.OBRACK_CODE)i=this.gobbleArray();else{for(n=this.expr.substr(this.index,S.max_unop_len),r=n.length;r>0;){if(S.unary_ops.hasOwnProperty(n)&&(!S.isIdentifierStart(this.code)||this.index+n.length=n.length&&this.throwError(«Unexpected token «+String.fromCharCode(t));break}else if(o===S.COMMA_CODE){if(this.index++,i++,i!==n.length){if(t===S.CPAREN_CODE)this.throwError(«Unexpected token ,»);else if(t===S.CBRACK_CODE)for(let s=n.length;s«:7,»<=":7,">=»:7,»<<":8,">>»:8,»>>>»:8,»+»:9,»-«:9,»*»:10,»/»:10,»%»:10,»**»:11},right_associative:new Set([«**»]),additional_identifier_chars:new Set([«$»,»_»]),literals:{true:!0,false:!1,null:null},this_str:»this»}),S.max_unop_len=S.getMaxKeyLen(S.unary_ops),S.max_binop_len=S.getMaxKeyLen(S.binary_ops);const We=e=>new S(e).parse(),pu=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(S).filter(e=>!pu.includes(e)&&We[e]===void 0).forEach(e=>{We[e]=S[e]}),We.Jsep=S;const gu=»ConditionalExpression»;var mu={name:»ternary»,init(e){e.hooks.add(«after-expression»,function(n){if(n.node&&this.code===e.QUMARK_CODE){this.index++;const r=n.node,i=this.gobbleExpression();if(i||this.throwError(«Expected expression»),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;const o=this.gobbleExpression();if(o||this.throwError(«Expected expression»),n.node={type:gu,test:r,consequent:i,alternate:o},r.operator&&e.binary_ops[r.operator]<=.9){let s=r;for(;s.right.operator&&e.binary_ops[s.right.operator]<=.9;)s=s.right;n.node.test=s.right,s.right=n.node,n.node=r}}else this.throwError("Expected :")}})}};We.plugins.register(mu);const No=47,vu=92;var Eu={name:"regex",init(e){e.hooks.add("gobble-token",function(n){if(this.code===No){const r=++this.index;let i=!1;for(;this.index=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57)s+=this.char;else break}let l;try{l=new RegExp(o,s)}catch(a){this.throwError(a.message)}return n.node={type:e.LITERAL,value:l,raw:this.expr.slice(r-1,this.index)},n.node=this.gobbleTokenProperty(n.node),n.node}this.code===e.OBRACK_CODE?i=!0:i&&this.code===e.CBRACK_CODE&&(i=!1),this.index+=this.code===vu?2:1}this.throwError("Unclosed Regex")}})}};const Tr=43,Pt={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=»,»>>>=»,»&=»,»^=»,»|=»,»||=»,»&&=»,»??=»]),updateOperators:[Tr,45],assignmentPrecedence:.9,init(e){const t=[e.IDENTIFIER,e.MEMBER_EXP];Pt.assignmentOperators.forEach(r=>e.addBinaryOp(r,Pt.assignmentPrecedence,!0)),e.hooks.add(«gobble-token»,function(i){const o=this.code;Pt.updateOperators.some(s=>s===o&&s===this.expr.charCodeAt(this.index+1))&&(this.index+=2,i.node={type:»UpdateExpression»,operator:o===Tr?»++»:»–«,argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},(!i.node.argument||!t.includes(i.node.argument.type))&&this.throwError(`Unexpected ${i.node.operator}`))}),e.hooks.add(«after-token»,function(i){if(i.node){const o=this.code;Pt.updateOperators.some(s=>s===o&&s===this.expr.charCodeAt(this.index+1))&&(t.includes(i.node.type)||this.throwError(`Unexpected ${i.node.operator}`),this.index+=2,i.node={type:»UpdateExpression»,operator:o===Tr?»++»:»–«,argument:i.node,prefix:!1})}}),e.hooks.add(«after-expression»,function(i){i.node&&n(i.node)});function n(r){Pt.assignmentOperators.has(r.operator)?(r.type=»AssignmentExpression»,n(r.left),n(r.right)):r.operator||Object.values(r).forEach(i=>{i&&typeof i==»object»&&n(i)})}}};We.plugins.register(Eu,Pt),We.addUnaryOp(«typeof»),We.addLiteral(«null»,null),We.addLiteral(«undefined»,void 0);const yu=new Set([«constructor»,»__proto__»,»__defineGetter__»,»__defineSetter__»]),Z={evalAst(e,t){switch(e.type){case»BinaryExpression»:case»LogicalExpression»:return Z.evalBinaryExpression(e,t);case»Compound»:return Z.evalCompound(e,t);case»ConditionalExpression»:return Z.evalConditionalExpression(e,t);case»Identifier»:return Z.evalIdentifier(e,t);case»Literal»:return Z.evalLiteral(e,t);case»MemberExpression»:return Z.evalMemberExpression(e,t);case»UnaryExpression»:return Z.evalUnaryExpression(e,t);case»ArrayExpression»:return Z.evalArrayExpression(e,t);case»CallExpression»:return Z.evalCallExpression(e,t);case»AssignmentExpression»:return Z.evalAssignmentExpression(e,t);default:throw SyntaxError(«Unexpected expression»,e)}},evalBinaryExpression(e,t){return{«||»:(r,i)=>r||i(),»&&»:(r,i)=>r&&i(),»|»:(r,i)=>r|i(),»^»:(r,i)=>r^i(),»&»:(r,i)=>r&i(),»==»:(r,i)=>r==i(),»!=»:(r,i)=>r!=i(),»===»:(r,i)=>r===i(),»!==»:(r,i)=>r!==i(),»<":(r,i)=>r«:(r,i)=>r>i(),»<=":(r,i)=>r<=i(),">=»:(r,i)=>r>=i(),»<<":(r,i)=>r<>»:(r,i)=>r>>i(),»>>>»:(r,i)=>r>>>i(),»+»:(r,i)=>r+i(),»-«:(r,i)=>r-i(),»*»:(r,i)=>r*i(),»/»:(r,i)=>r/i(),»%»:(r,i)=>r%i()}[e.operator](Z.evalAst(e.left,t),()=>Z.evalAst(e.right,t))},evalCompound(e,t){let n;for(let r=0;r-Z.evalAst(r,t),»!»:r=>!Z.evalAst(r,t),»~»:r=>~Z.evalAst(r,t),»+»:r=>+Z.evalAst(r,t),typeof:r=>typeof Z.evalAst(r,t)}[e.operator](e.argument)},evalArrayExpression(e,t){return e.elements.map(n=>Z.evalAst(n,t))},evalCallExpression(e,t){const n=e.arguments.map(i=>Z.evalAst(i,t));return Z.evalAst(e.callee,t)(…n)},evalAssignmentExpression(e,t){if(e.left.type!==»Identifier»)throw SyntaxError(«Invalid left-hand side in assignment»);const n=e.left.name,r=Z.evalAst(e.right,t);return t[n]=r,t[n]}};class _u{constructor(t){this.code=t,this.ast=We(this.code)}runInNewContext(t){const n=Object.assign(Object.create(null),t);return Z.evalAst(this.ast,n)}}function ot(e,t){return e=e.slice(),e.push(t),e}function br(e,t){return t=t.slice(),t.unshift(e),t}class Tu extends Error{constructor(t){super(‘JSONPath should not be called with «new» (it prevents return of (unwrapped) scalar values)’),this.avoidNew=!0,this.value=t,this.name=»NewError»}}function G(e,t,n,r,i){if(!(this instanceof G))try{return new G(e,t,n,r,i)}catch(s){if(!s.avoidNew)throw s;return s.value}typeof e==»string»&&(i=r,r=n,n=t,t=e,e=null);const o=e&&typeof e==»object»;if(e=e||{},this.json=e.json||n,this.path=e.path||t,this.resultType=e.resultType||»value»,this.flatten=e.flatten||!1,this.wrap=Object.hasOwn(e,»wrap»)?e.wrap:!0,this.sandbox=e.sandbox||{},this.eval=e.eval===void 0?»safe»:e.eval,this.ignoreEvalErrors=typeof e.ignoreEvalErrors==»undefined»?!1:e.ignoreEvalErrors,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||r||null,this.otherTypeCallback=e.otherTypeCallback||i||function(){throw new TypeError(«You must supply an otherTypeCallback callback option with the @other() operator.»)},e.autostart!==!1){const s={path:o?e.path:t};o?»json»in e&&(s.json=e.json):s.json=n;const l=this.evaluate(s);if(!l||typeof l!=»object»)throw new Tu(l);return l}}G.prototype.evaluate=function(e,t,n,r){let i=this.parent,o=this.parentProperty,{flatten:s,wrap:l}=this;if(this.currResultType=this.resultType,this.currEval=this.eval,this.currSandbox=this.sandbox,n=n||this.callback,this.currOtherTypeCallback=r||this.otherTypeCallback,t=t||this.json,e=e||this.path,e&&typeof e==»object»&&!Array.isArray(e)){if(!e.path&&e.path!==»»)throw new TypeError(‘You must supply a «path» property when providing an object argument to JSONPath.evaluate().’);if(!Object.hasOwn(e,»json»))throw new TypeError(‘You must supply a «json» property when providing an object argument to JSONPath.evaluate().’);({json:t}=e),s=Object.hasOwn(e,»flatten»)?e.flatten:s,this.currResultType=Object.hasOwn(e,»resultType»)?e.resultType:this.currResultType,this.currSandbox=Object.hasOwn(e,»sandbox»)?e.sandbox:this.currSandbox,l=Object.hasOwn(e,»wrap»)?e.wrap:l,this.currEval=Object.hasOwn(e,»eval»)?e.eval:this.currEval,n=Object.hasOwn(e,»callback»)?e.callback:n,this.currOtherTypeCallback=Object.hasOwn(e,»otherTypeCallback»)?e.otherTypeCallback:this.currOtherTypeCallback,i=Object.hasOwn(e,»parent»)?e.parent:i,o=Object.hasOwn(e,»parentProperty»)?e.parentProperty:o,e=e.path}if(i=i||null,o=o||null,Array.isArray(e)&&(e=G.toPathString(e)),!e&&e!==»»||!t)return;const a=G.toPathArray(e);a[0]===»$»&&a.length>1&&a.shift(),this._hasParentSelector=null;const u=this._trace(a,t,[«$»],i,o,n).filter(function(f){return f&&!f.isParentSelector});return u.length?!l&&u.length===1&&!u[0].hasArrExpr?this._getPreferredOutput(u[0]):u.reduce((f,p)=>{const c=this._getPreferredOutput(p);return s&&Array.isArray(c)?f=f.concat(c):f.push(c),f},[]):l?[]:void 0},G.prototype._getPreferredOutput=function(e){const t=this.currResultType;switch(t){case»all»:{const n=Array.isArray(e.path)?e.path:G.toPathArray(e.path);return e.pointer=G.toPointer(n),e.path=typeof e.path==»string»?e.path:G.toPathString(e.path),e}case»value»:case»parent»:case»parentProperty»:return e[t];case»path»:return G.toPathString(e[t]);case»pointer»:return G.toPointer(e.path);default:throw new TypeError(«Unknown result type»)}},G.prototype._handleCallback=function(e,t,n){if(t){const r=this._getPreferredOutput(e);e.path=typeof e.path==»string»?e.path:G.toPathString(e.path),t(r,n,e)}},G.prototype._trace=function(e,t,n,r,i,o,s,l){let a;if(!e.length)return a={path:n,value:t,parent:r,parentProperty:i,hasArrExpr:s},this._handleCallback(a,o,»value»),a;const u=e[0],f=e.slice(1),p=[];function c(h){Array.isArray(h)?h.forEach(d=>{p.push(d)}):p.push(h)}if((typeof u!=»string»||l)&&t&&Object.hasOwn(t,u))c(this._trace(f,t[u],ot(n,u),t,u,o,s));else if(u===»*»)this._walk(t,h=>{c(this._trace(f,t[h],ot(n,h),t,h,o,!0,!0))});else if(u===»..»)c(this._trace(f,t,n,r,i,o,s)),this._walk(t,h=>{typeof t[h]==»object»&&c(this._trace(e.slice(),t[h],ot(n,h),t,h,o,!0))});else{if(u===»^»)return this._hasParentSelector=!0,{path:n.slice(0,-1),expr:f,isParentSelector:!0};if(u===»~»)return a={path:ot(n,u),value:i,parent:r,parentProperty:null},this._handleCallback(a,o,»property»),a;if(u===»$»)c(this._trace(f,t,n,null,null,o,s));else if(/^(-?\d*):(-?\d*):?(\d*)$/u.test(u))c(this._slice(u,f,t,n,r,i,o));else if(u.indexOf(«?(«)===0){if(this.currEval===!1)throw new Error(«Eval [?(expr)] prevented in JSONPath expression.»);const h=u.replace(/^\?\((.*?)\)$/u,»$1″),d=/@.?([^?]*)[[‘](\??\(.*?\))(?!.\)\])[\]’]/gu.exec(h);d?this._walk(t,g=>{const E=[d[2]],w=d[1]?t[g][d[1]]:t[g];this._trace(E,w,n,r,i,o,!0).length>0&&c(this._trace(f,t[g],ot(n,g),t,g,o,!0))}):this._walk(t,g=>{this._eval(h,t[g],g,n,r,i)&&c(this._trace(f,t[g],ot(n,g),t,g,o,!0))})}else if(u[0]===»(«){if(this.currEval===!1)throw new Error(«Eval [(expr)] prevented in JSONPath expression.»);c(this._trace(br(this._eval(u,t,n.at(-1),n.slice(0,-1),r,i),f),t,n,r,i,o,s))}else if(u[0]===»@»){let h=!1;const d=u.slice(1,-2);switch(d){case»scalar»:(!t||![«object»,»function»].includes(typeof t))&&(h=!0);break;case»boolean»:case»string»:case»undefined»:case»function»:typeof t===d&&(h=!0);break;case»integer»:Number.isFinite(t)&&!(t%1)&&(h=!0);break;case»number»:Number.isFinite(t)&&(h=!0);break;case»nonFinite»:typeof t==»number»&&!Number.isFinite(t)&&(h=!0);break;case»object»:t&&typeof t===d&&(h=!0);break;case»array»:Array.isArray(t)&&(h=!0);break;case»other»:h=this.currOtherTypeCallback(t,n,r,i);break;case»null»:t===null&&(h=!0);break;default:throw new TypeError(«Unknown value type «+d)}if(h)return a={path:n,value:t,parent:r,parentProperty:i},this._handleCallback(a,o,»value»),a}else if(u[0]===»`»&&t&&Object.hasOwn(t,u.slice(1))){const h=u.slice(1);c(this._trace(f,t[h],ot(n,h),t,h,o,s,!0))}else if(u.includes(«,»)){const h=u.split(«,»);for(const d of h)c(this._trace(br(d,f),t,n,r,i,o,!0))}else!l&&t&&Object.hasOwn(t,u)&&c(this._trace(f,t[u],ot(n,u),t,u,o,s,!0))}if(this._hasParentSelector)for(let h=0;h{t(n)})},G.prototype._slice=function(e,t,n,r,i,o,s){if(!Array.isArray(n))return;const l=n.length,a=e.split(«:»),u=a[2]&&Number.parseInt(a[2])||1;let f=a[0]&&Number.parseInt(a[0])||0,p=a[1]&&Number.parseInt(a[1])||l;f=f<0?Math.max(0,f+l):Math.min(l,f),p=p<0?Math.max(0,p+l):Math.min(l,p);const c=[];for(let h=f;h