var Demandbase=window.Demandbase||{};!function(g){"use strict";var M,x=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;os[0]&&e[1]"],e[0])?void 0:e[0],line:this._parseInt(e[1]),column:this._parseInt(e[2])}},this)};E.parseFFOrSafari=function(t){return t.stack.split("\n").filter(function(t){return!t.match(H)},this).map(function(t){-1 eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1"));var e;return-1===I.Shims.indexOf(t,"@")&&-1===I.Shims.indexOf(t,":")?{function:t}:(t=t.split("@"),e=this.extractLocation(t.pop()),{function:t.join("@")||void 0,file:e[0],line:this._parseInt(e[1]),column:this._parseInt(e[2])})},this)};E.parseOpera=function(t){return!t.stacktrace||-1t.stacktrace.split("\n").length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)};E.parseOpera9=function(t){for(var e=/Line (\d+).*script (?:in )?(\S+)/i,i=t.message.split("\n"),n=[],o=2,r=i.length;o/,"$2").replace(/\([^\)]*\)/g,"")||void 0;void 0!==(e=t.match(/\(([^\)]*)\)/)?t.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"):e)&&"[arguments not available]"!==e&&e.split(",");return{function:n,file:i[0],line:this._parseInt(i[1]),column:this._parseInt(i[2])}},this)};var t=g=g||{};(t=t.Shims||(t.Shims={})).console=window.console||{log:function(){},debug:function(){}};t.JSON=window.JSON||{stringify:function(){},parse:function(){}};t.indexOf=function(t,e,i){if(null==t)throw new TypeError("Array.indexOf called on null or undefined");return t.indexOf?t.indexOf(e,i):J(t,e,i)};t.assign=function(){for(var t=[],e=0;e>>0,o=Math.min(0|i,n);if(o<0)o=Math.max(0,n+o);else if(n<=o)return-1;if(void 0===e){for(;o!==n;++o)if(void 0===t[o]&&o in t)return o}else if(e!=e){for(;o!==n;++o)if(t[o]!=t[o])return o}else for(;o!==n;++o)if(t[o]===e)return o;return-1}t._indexOfPolyfill=J;function K(t){for(var e=Object(t[0]),i=1;i>0==+n[i+1]?[]:{}},t)[n[n.length-1]]=e);return t};E.flatten=function(t){if(t&&"object"==typeof t)for(var e in t){var i=t[e];if("object"==typeof i&&null!==i&&t.hasOwnProperty(e)){for(var n in i)t["".concat(e,"_").concat(n)]=i[n];delete t[e]}}return t};E.getAttributeValue=function(t,e){if(!1===t[e])return"false";for(var i=T.Config.nonCompanyDefault||T.Utilities.Constants.DFLT_NON_COMPANY,n=T.Config.emptyWatchDefault||T.Utilities.Constants.DFLT_AW_EMPTY,o=t[e]||t[{city:"registry_city",state:"registry_state",zip:"registry_zip_code",country:"registry_country_code",country_name:"registry_country",latitude:"registry_latitude",longitude:"registry_longitude"}[e]||""]||T.Utilities.dig(t,"custom_fields",e)||i,i=(t.company_name||i)!==i,r=T.Shims.keys(t),a=!1,s=0;st.length)return;return-1!==R.Shims.indexOf(t,e)}(t,e[i]))return!0;return!1};E.isValidEmail=function(t){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)};E.escapeRegExp=function(t){return t.replace(/[.*+?^${}()|[\]\\\/]/g,"\\$&")};E.nodeListToArray=function(t){for(var e=[],i=0;ithis.configuration.polling.maxCount||this.configuration.polling.hasBeenInitialized){this._sendCachedEventsWhenPollingEnd();h.Utilities.Logging.log("From base-google-analytics: GA is giving up on polling with count: "+this.pollCount)}else{h.Utilities.Logging.log("From base-google-analytics: Polling one more time: Count: "+this.pollCount);this.pollCount++;setTimeout(this._waitForGATrackers.bind(this),this.configuration.polling.interval)}};t.prototype._sendCachedEventsWhenPollingEnd=function(){var a=this;this.configuration.polling.hasBeenInitialized=!0;h.Utilities.Logging.log("_sendCachedEventsWhenPollingEnd(): sending ".concat(this.cachedEvents.length," cached events to GA"));this.cachedEvents.forEach(function(t){var e=t.gaType,i=t.category,n=t.action,o=t.label,r=t.eventName,t=t.payload;"ga4"===e&&r&&t?a.sendEventGA4(r,t):a.sendEvent(i,n,o)});this.cachedEvents=[];this.pollCount=0};t.prototype._setTrackerName=function(){var r=this;if(!this.configuration.trackerName){var t="function"==typeof window.ga;if(void 0!==window._gat&&"function"==typeof window._gat._getTrackers){var e=_gat._getTrackers();if(void 0!==e.length&&0this.pardotMaxPollWindow)y.Utilities.Logging.log("Pardot cookie not found within ".concat(this.pardotMaxPollWindow," ms"));else if(this.fetchOrPollForPardotCookie()){y.Utilities.Logging.log("Pardot cookie found, making second API call");this.get(void 0,!1)}else window.setTimeout(function(){t.pollForPardotCookie()},100)};return t}(y.BaseModule),y.IpApiModule=t;v=g=g||{},E=function(i){n(t,i);function t(t){var e=i.call(this)||this;e.DEFAULT_CONFIGURATION={isEnabled:!1,experiences:{},retryMS:0,totalWaitTime:0};e.SC_QUERY_PARAMETER_FORCE_FIRE="db_sc_experience_by_id";e.preTagModuleEnabled=!1;e.configuration=v.Shims.assign({},e.DEFAULT_CONFIGURATION);e.wrappedExperiences={};e.initialized=!1;e.preTagModuleEnabled=!!v.PreTag;i.prototype.mergeConfigs.call(e,e.configuration,e.DEFAULT_CONFIGURATION,v.Config.SiteCustomization,t);return e}t.prototype.isEnabled=function(){return!0===this.configuration.isEnabled||!0===this.configuration.enabled};t.prototype.initialize=function(){if(this.isEnabled()){v.Utilities.Logging.log("SiteCustomization.initialize(): Initializing...");this.setup();v.Utilities.Callbacks.registerCallback(this.callback.bind(this))}else v.Utilities.Logging.log("Site Customization is currently disabled, will not fire.")};t.prototype.callback=function(){if(this.fireExperienceByQueryParameter())v.Utilities.Logging.log("SiteCustomization.callback(): Experience already forced to fire by query parameter!");else{v.Utilities.Logging.log("SiteCustomization.callback(): Invoked! Setting up SC and firing.");this.setup();this.fireSiteCustomization();this.preTagModuleEnabled&&v.PreTag.restorePageVisibility()}};t.prototype.setup=function(t){if(!t&&this.initialized)v.Utilities.Logging.log("SiteCustomization.setup(): already initilaized! not running setup again.");else if(void 0!==this.configuration.experiences){var e,i=this.configuration.experiences||{},t=v.Shims.keys(i)||[];v.Utilities.Logging.log("SiteCustomization.setup(): Wrapping ".concat(t.length," experiences for setup"));for(e in i){var n=i[e],n=new w(n);n&&(this.wrappedExperiences[n.id]=n)}this.initialized=!0}};t.prototype.fireSiteCustomization=function(){var o=this;return v.ErrorReporter.wrap(function(){var e=v.IpApi.experiences;v.Utilities.Logging.log("fireSiteCustomization(): Running for IP API experiences: ".concat(JSON.stringify(e)));if(e){for(var t=Object.keys(e).map(function(t){return e[t]}),i=o.sortExperiencesToFire(t),n=0;n=e.length){v.Utilities.Logging.log("applyModifications(): All modifications have returned");i&&i(0===o)}return t}.bind(n),0)})};t.prototype.applyModificationRetry=function(t,e,i){var n=t.value,o=t.aliases,r=t.selector,t=t.typeKey,a=document.querySelector(r);if(a){var s=this.generateChangeActionValue(n,o);if(s){t.includes("backgroundImage")&&(s="url("+s+")");v.Utilities.set(a,t,s);v.Utilities.Logging.log("applyModificationRetry(): Successfully applied for selector: "+r+" after "+i+" attempts.");return e(!0)}return v.Utilities.Logging.log("applyModificationRetry(): No change action applied for selector: "+r+" after "+i+" attempts."),e(!1)}if(i*this.configuration.retryMS>=this.configuration.totalWaitTime)return v.Utilities.Logging.log("applyModificationRetry(): Applying modification for querySelector: "+r+" timeout after "+i+" attempts."),e(!1);v.Utilities.Logging.log("applyModificationRetry(): Retrying for selector: "+r+" currently at "+i+" attempts.");setTimeout(this.applyModificationRetry.bind(this,{value:n,aliases:o,selector:r,typeKey:t},e,i+1),this.configuration.retryMS);return!1};return t}(v.BaseModule),w=(v.SiteCustomizationModule=E,function(){function t(t){this.exp=t;this.isEnabled=!1;this.priority=null;this.id="";this.name="";this.pages=t.pages||[];this.pages instanceof Array||(this.pages=[this.pages]);this.isEnabled=t.isEnabled||!1;this.name=t.name||"";this.id=t.id||"";this.priority=t.priority||5e3;this.modify=t.modify||function(){}}t.prototype.forceRun=function(){try{v.Utilities.Logging.log("Experience.forceRun: running modify function for: ".concat(this.name));v.PreTag?this.modify.call(document,v.PreTag.restorePageVisibility):this.modify.call(document);return!0}catch(t){t.name=v.Utilities.Constants.MODIFICATION_ERROR;throw t}};t.prototype.run=function(){if(!this.isEnabled)return v.Utilities.Logging.log("Experience.run(): Experience named: ".concat(this.name," is currently disabled, will not fire.")),!1;if(!this.doesPageMatch())return v.Utilities.Logging.log("Experience.run(): SiteCustomization modify ".concat(this.name," not fired. no URL match with: ").concat(JSON.stringify(this.pages))),!1;v.Utilities.Logging.log("Experience.run(): Experience named: ".concat(this.name," url matched and will run."));return this.forceRun()};t.prototype.doesPageMatch=function(){v.Utilities.Logging.log("Experience.doesPageMatch(): Experience named: ".concat(this.name," checking these URLs: ").concat(JSON.stringify(this.pages)));for(var t=0;t