!function(e){var t,r,n={} function o(t){if(n[t])return n[t].exports var r=n[t]={i:t,l:!1,exports:{}} e[t].call(r.exports,r,r.exports,o) r.l=!0 return r.exports}o.linkDlb=function(e,n){t=e r=n} window["__webpack_require_head-dlb/bundle.production.js__"]=o o.dlbcr=function(e){if(!t)throw new Error("dlb consumer not properly linked") var n=r[e] if(void 0===n)throw new Error("dlb consumer does not provide module "+e) return t(n)} o.m=e o.c=n o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})} o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}) Object.defineProperty(e,"__esModule",{value:!0})} o.t=function(e,t){1&t&&(e=o(e)) if(8&t)return e if(4&t&&"object"==typeof e&&e&&e.__esModule)return e var r=Object.create(null) o.r(r) Object.defineProperty(r,"default",{enumerable:!0,value:e}) if(2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n)) return r} o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e} o.d(t,"a",t) return t} o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)} o.p="//static.hsappstatic.net/head-dlb/static-1.234/" o(o.s=0)}([function(e,t,r){"use strict" var n=r(1) r(2) var o=r(3),i=n(r(5)),a=n(r(6));(0,o.enableRejectionTracking)();(0,a.default)() i.default.modules.useGlobals=e=>"raven-hubspot/configure"!==e&&"PortalIdParser"!==e&&"enviro"!==e i.default.define("raven-hubspot/configure",[],()=>{const e=r(7) return e.default||e}) i.default.define("PortalIdParser",[],()=>{const e=r(9) return e.default||e}) i.default.define("enviro",[],()=>{const e=r(8) return e.default||e}) Object.defineProperty(window,"Raven",{get:()=>r(4)}) Object.defineProperty(window,"enviro",{get(){const e=r(8) return e.default||e}})},function(e,t){function r(e){return e&&e.__esModule?e:{default:e}}e.exports=r},function(e,t){var r;((r="undefined"!=typeof window&&null!==window?window:"undefined"!=typeof global&&null!==global?global:this).hns=r.hns2=function(e,t){var n,o,i,a,s=e.split("."),l=r,u="",c=s.length-1 t=t||{} n=s[c] for(var f=0;f0;){a=i.shift() for(var p in a.qSource)a.qSource.hasOwnProperty(p)&&("object"!=typeof a.qSource[p]||"object"!=typeof a.qTarget[p]||a.qSource[p]&&void 0!==a.qSource[p].classList&&void 0!==a.qSource[p].nodeType?a.qTarget[p]=a.qSource[p]:a.qSource[p]!==a.qTarget[p]&&i.push({qSource:a.qSource[p],qTarget:a.qTarget[p]}))}}else o[d]=t[d]}else l[n]=t "undefined"!=typeof hubspot&&hubspot.updateDependencies&&hubspot.updateDependencies(e) return l[n]})("hubspot") !function(){"undefined"!=typeof hubspot&&null!==hubspot&&hubspot.define&&console.warn("hubspot.define included more than once, you most certainly _don't_ want this") hubspot=hubspot||{} hubspot.modules=hubspot.modules||{} var e=[],t={},r={},n={},o={},i="",a=1 hubspot.modules.useGlobals=function(e){return!0} hubspot.modules.getNamespace=function(e){if(r[e])return r[e] if(!hubspot.modules.useGlobals(e))return null var t,n=e.split("."),o=n.length,i=window for(t=0;t"," "+a+++">")} hubspot.getBlockingModules=function(){for(var t,r=e,n=[],o={},i={},a=r.length;a--;){var s=r[a] if(s&&s.deps){i[s.ns]=!0 for(var l=s.deps.length;l--;)o[s.deps[l]]=!0}}for(t in o)i[t]||n.push(t) return n} function l(){var e if(void 0!==hubspot._cached_debug_define_enabled)return hubspot._cached_debug_define_enabled if(!0===window.HUBSPOT_DEBUG_DEFINE)e=!0 else{var t="test" try{localStorage.setItem(t,t) localStorage.removeItem(t) e="true"===localStorage.HUBSPOT_DEBUG_DEFINE}catch(t){e=!1}}hubspot._cached_debug_define_enabled=e return e}function u(e){var t,r,o=[],a=e.allDeps for(t=0;t0&&console.log("Error while defining hubspot module:",s) throw t}),0) return}return r}function c(e){var t t=u(e) if(e.ns){r[e.ns]=t hubspot.modules.useGlobals(e.ns)?window.hns2(e.ns,t):hubspot.updateDependencies(e.ns)}}hubspot.updateDependencies=function(t){var r,n,o,i,a=[] for(o=0;o0?e.push(n):c(n) for(l=0;l0?n:null}catch(e){return null}finally{Error.prepareStackTrace=e}}hubspot.defineHelper=function(e,n,i,a){var u,c,p,g={} l()&&(p=h()) if("string"==typeof n)throw new Error("hubspot.define/require must be provided an array of dependencies, not a string") if("boolean"!=typeof a)throw new Error("hubspot.defineHelper must be called with the isEagerDefinition flag") if(void 0!==r[e]){if("function"!=typeof i)throw new Error("You cannot redefine a module with hubspot.define, '"+e+"' has already been defined once.") console.warn("You should not redefine a module with hubspot.define, '"+e+"' has already been defined once.")}for(var b=0;bwindow.newrelic,i=e=>null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1),a=e=>{const t=r(4),n={tags:{isUnhandledPromiseRejection:!0}} "string"==typeof e?t.captureMessage(e,n):t.captureException(e,n) o()&&o().noticeError(e,{isUnhandledPromiseRejection:!0,typeOfReason:i(e)})},s=e=>"object"==typeof e?null!==e:"function"==typeof e,l=e=>{e.preventDefault() if(s(e.promise)){console.error("Unhandled Promise Rejection",e.reason) a(e.reason)}},u=()=>{n=!1 window.removeEventListener("unhandledrejection",l)} t.disableRejectionTracking=u const c=()=>{n&&u() n=!0 window.addEventListener("unhandledrejection",l)} t.enableRejectionTracking=c},function(e,t,r){var n,o o=function(){return function e(t,r,o){function i(s,l){if(!r[s]){if(!t[s]){if(!l&&"function"==typeof n&&n)return n(s,!0) if(a)return a(s,!0) var u=new Error("Cannot find module '"+s+"'") throw u.code="MODULE_NOT_FOUND",u}var c=r[s]={exports:{}} t[s][0].call(c.exports,(function(e){var r=t[s][1][e] return i(r||e)}),c,c.exports,e,t,r,o)}return r[s].exports}for(var a="function"==typeof n&&n,s=0;sthis._globalOptions.maxBreadcrumbs&&this._breadcrumbs.shift() return this},addPlugin:function(e){var t=[].slice.call(arguments,1) this._plugins.push([e,t]) this._isRavenInstalled&&this._drainPlugins() return this},setUserContext:function(e){this._globalContext.user=e return this},setExtraContext:function(e){this._mergeContext("extra",e) return this},setTagsContext:function(e){this._mergeContext("tags",e) return this},clearContext:function(){this._globalContext={} return this},getContext:function(){return JSON.parse(o(this._globalContext))},setEnvironment:function(e){this._globalOptions.environment=e return this},setRelease:function(e){this._globalOptions.release=e return this},setDataCallback:function(e){var t=this._globalOptions.dataCallback this._globalOptions.dataCallback=I(t,e) return this},setBreadcrumbCallback:function(e){var t=this._globalOptions.breadcrumbCallback this._globalOptions.breadcrumbCallback=I(t,e) return this},setShouldSendCallback:function(e){var t=this._globalOptions.shouldSendCallback this._globalOptions.shouldSendCallback=I(t,e) return this},setTransport:function(e){this._globalOptions.transport=e return this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){if(!this._hasJSON)return!1 if(!this._globalServer){if(!this.ravenNotConfiguredError){this.ravenNotConfiguredError=!0 this._logDebug("error","Error: Raven has not been configured.")}return!1}return!0},afterLoad:function(){var e=D.RavenConfig e&&this.config(e.dsn,e.config).install()},showReportDialog:function(e){if(P){var t=(e=e||{}).eventId||this.lastEventId() if(!t)throw new i("Missing eventId") var r=e.dsn||this._dsn if(!r)throw new i("Missing DSN") var n=encodeURIComponent,o="" o+="?eventId="+n(t) o+="&dsn="+n(r) var a=e.user||this._globalContext.user if(a){a.name&&(o+="&name="+n(a.name)) a.email&&(o+="&email="+n(a.email))}var s=this._getGlobalServer(this._parseDSN(r)),l=P.createElement("script") l.async=!0 l.src=s+"/api/embed/error-page/"+o;(P.head||P.body).appendChild(l)}},_ignoreNextOnError:function(){var e=this this._ignoreOnError+=1 setTimeout((function(){e._ignoreOnError-=1}))},_triggerEvent:function(e,t){var r,n if(this._hasDocument){t=t||{} e="raven"+e.substr(0,1).toUpperCase()+e.substr(1) P.createEvent?(r=P.createEvent("HTMLEvents")).initEvent(e,!0,!0):(r=P.createEventObject()).eventType=e for(n in t)m(t,n)&&(r[n]=t[n]) if(P.createEvent)P.dispatchEvent(r) else try{P.fireEvent("on"+r.eventType.toLowerCase(),r)}catch(e){}}},_breadcrumbEventHandler:function(e){var t=this return function(r){t._keypressTimeout=null if(t._lastCapturedEvent!==r){t._lastCapturedEvent=r var n try{n=E(r.target)}catch(e){n=""}t.captureBreadcrumb({category:"ui."+e,message:n})}}},_keypressEventHandler:function(){var e=this,t=1e3 return function(r){var n try{n=r.target}catch(e){return}var o=n&&n.tagName if(o&&("INPUT"===o||"TEXTAREA"===o||n.isContentEditable)){var i=e._keypressTimeout i||e._breadcrumbEventHandler("input")(r) clearTimeout(i) e._keypressTimeout=setTimeout((function(){e._keypressTimeout=null}),t)}}},_captureUrlChange:function(e,t){var r=S(this._location.href),n=S(t),o=S(e) this._lastHref=t r.protocol===n.protocol&&r.host===n.host&&(t=n.relative) r.protocol===o.protocol&&r.host===o.host&&(e=o.relative) this.captureBreadcrumb({category:"navigation",data:{to:t,from:e}})},_instrumentTryCatch:function(){var e=this,t=e._wrappedBuiltIns function r(t){return function(r,n){for(var o=new Array(arguments.length),i=0;i2?arguments[2]:void 0 r&&e._captureUrlChange(e._lastHref,r+"") return t.apply(this,arguments)}} O(history,"pushState",l,r) O(history,"replaceState",l,r)}if(t.console&&"console"in D&&console.log){var u=function(t,r){e.captureBreadcrumb({message:t,level:r.level,category:"console"})} h(["debug","info","warn","error","log"],(function(e,t){C(console,t,u)}))}},_restoreBuiltIns:function(){for(var e;this._wrappedBuiltIns.length;){var t=(e=this._wrappedBuiltIns.shift())[0],r=e[1],n=e[2] t[r]=n}},_drainPlugins:function(){var e=this h(this._plugins,(function(t,r){var n=r[0],o=r[1] n.apply(e,[e].concat(o))}))},_parseDSN:function(e){var t=R.exec(e),r={},n=7 try{for(;n--;)r[j[n]]=t[n]||""}catch(t){throw new i("Invalid DSN: "+e)}if(r.pass&&!this._globalOptions.allowSecretKey)throw new i("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key") return r},_getGlobalServer:function(e){var t="//"+e.host+(e.port?":"+e.port:"") e.protocol&&(t=e.protocol+":"+t) return t},_handleOnErrorStackInfo:function(){this._ignoreOnError||this._handleStackInfo.apply(this,arguments)},_handleStackInfo:function(e,t){var r=this._prepareFrames(e,t) this._triggerEvent("handle",{stackInfo:e,options:t}) this._processException(e.name,e.message,e.url,e.lineno,r,t)},_prepareFrames:function(e,t){var r=this,n=[] if(e.stack&&e.stack.length){h(e.stack,(function(t,o){var i=r._normalizeFrame(o,e.url) i&&n.push(i)})) if(t&&t.trimHeadFrames)for(var o=0;o0&&(e.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}) p(e.tags)&&delete e.tags this._globalContext.user&&(e.user=this._globalContext.user) t.environment&&(e.environment=t.environment) t.release&&(e.release=t.release) t.serverName&&(e.server_name=t.serverName) f(t.dataCallback)&&(e=t.dataCallback(e)||e) e&&!p(e)&&(f(t.shouldSendCallback)&&!t.shouldSendCallback(e)||(this._shouldBackoff()?this._logDebug("warn","Raven dropped error due to backoff: ",e):"number"==typeof t.sampleRate?Math.random() ",l=s.length;e&&i++1&&a+o.length*l+t.length>=n);){o.push(t) a+=t.length e=e.parentNode}return o.reverse().join(s)}function E(e){var t,r,n,o,i,a=[] if(!e||!e.tagName)return"" a.push(e.tagName.toLowerCase()) e.id&&a.push("#"+e.id) if((t=e.className)&&l(t)){r=t.split(/\s+/) for(i=0;i=0;--t)r[t]===e&&r.splice(t,1)}function g(){_() r=[]}function b(e,t){var n=null if(!t||o.collectWindowErrors){for(var i in r)if(r.hasOwnProperty(i))try{r[i].apply(null,[e].concat(a.call(arguments,2)))}catch(e){n=e}if(n)throw n}}function v(t,r,i,a,c){if(d){o.computeStackTrace.augmentStackTraceWithInitialElement(d,r,i,t) y()}else if(c&&n.isError(c))b(o.computeStackTrace(c),!0) else{var f={url:r,line:i,column:a},p=void 0,h=t if("[object String]"==={}.toString.call(t)){var g if(g=t.match(l)){p=g[1] h=g[2]}}f.func=s b({name:p,message:h,url:u(),stack:[f]},!0)}return!!e&&e.apply(this,arguments)}function m(){if(!t){e=i.onerror i.onerror=v t=!0}}function _(){if(t){i.onerror=e t=!1 e=void 0}}function y(){var e=d,t=c c=null d=null f=null b.apply(null,[e,!1].concat(t))}function w(e,t){var r=a.call(arguments,1) if(d){if(f===e)return y()}var n=o.computeStackTrace(e) d=n f=e c=r setTimeout((function(){f===e&&y()}),n.incomplete?2e3:0) if(!1!==t)throw e}w.subscribe=p w.unsubscribe=h w.uninstall=g return w}() o.computeStackTrace=function(){function e(e){if(void 0!==e.stack&&e.stack){for(var t,r,n,o=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|bpm||[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,i=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|bpm|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,a=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|bpm|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/,f=e.stack.split("\n"),d=[],p=(/^(.*) is undefined$/.exec(e.message),0),h=f.length;p eval")>-1&&(t=l.exec(r[3]))){r[3]=t[1] r[4]=t[2] r[5]=null}else 0!==p||r[5]||void 0===e.columnNumber||(d[0].column=e.columnNumber+1) n={url:r[3],func:r[1]||s,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!n.func&&n.line&&(n.func=s) d.push(n)}return d.length?{name:e.name,message:e.message,url:u(),stack:d}:null}}function t(e,t,r,n){var o={url:t,line:r} if(o.url&&o.line){e.incomplete=!1 o.func||(o.func=s) if(e.stack.length>0&&e.stack[0].url===o.url){if(e.stack[0].line===o.line)return!1 if(!e.stack[0].line&&e.stack[0].func===o.func){e.stack[0].line=o.line return!1}}e.stack.unshift(o) e.partial=!0 return!0}e.incomplete=!0 return!1}function r(e,i){for(var a,l,c=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,f=[],d={},p=!1,h=r.caller;h&&!p;h=h.caller)if(h!==n&&h!==o.report){l={url:null,func:s,line:null,column:null} h.name?l.func=h.name:(a=c.exec(h.toString()))&&(l.func=a[1]) if(void 0===l.func)try{l.func=a.input.substring(0,a.input.indexOf("{"))}catch(e){}d[""+h]?p=!0:d[""+h]=!0 f.push(l)}i&&f.splice(0,i) var g={name:e.name,message:e.message,url:u(),stack:f} t(g,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description) return g}function n(t,n){var i=null n=null==n?0:+n try{if(i=e(t))return i}catch(e){if(o.debug)throw e}try{if(i=r(t,n+1))return i}catch(e){if(o.debug)throw e}return{name:t.name,message:t.message,url:u()}}n.augmentStackTraceWithInitialElement=t n.computeStackTraceFromStackProp=e return n}() t.exports=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{5:5}],7:[function(e,t,r){(t.exports=o).getSerialize=a function n(e,t){for(var r=0;r0){var l=n(r,this) ~l?r.splice(l+1):r.push(this) ~l?o.splice(l,1/0,a):o.push(a) ~n(r,s)&&(s=t.call(this,a,s))}else r.push(s) return null==e?s instanceof Error?i(s):s:e.call(this,a,s)}}},{}]},{},[4])(4)},e.exports=o()},function(e,t){e.exports=function(){if(void 0===window.hubspot)throw new Error("Could not find hubspot global variable.") return window.hubspot}()},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) t.default=n function n(){window.addEventListener("pageshow",e=>{e.persisted&&window.location.reload()})}e.exports=t.default},function(e,t,r){"use strict" var n=r(1) Object.defineProperty(t,"__esModule",{value:!0}) t.default=f var o=n(r(8)),i=n(r(9)),a=n(r(4)),s=n(r(5)) const l=2e5 function u(e){const t=()=>{s.default.newRelicErrorsToIgnore(e)} s.default._newRelicCallbacks?s.default._newRelicCallbacks.push(t):s.default._newRelicCallbacks=[t]}function c(e){return function(t){e&&(t=e(t)) try{const e=JSON.stringify(t.extra) if(e.length>l){o.default.debug("sentry")&&console.error(`Excessively large message logged to Raven (${e.length} characters). The extra data is logged here but will not be sent to Sentry.`,t.extra) t.extra={message:"Error processing Sentry (extra data more than 200kb stringified). Existing extra data removed."}}}catch(e){o.default.debug("sentry")&&console.error("An unserializable object was logged to Raven as `extra` data. The extra data is logged here but will not be sent to Sentry.",t.extra) t.extra={message:"Error processing Sentry (extra data not serializable). Existing extra data removed."}}return t}}function f(e,t={}){if(void 0===s.default.bender)if("prod"!==o.default.getShort("sentry"))console.warn("[raven-hubspot] `project` and `release` Sentry tags will not be set. See: HubSpot/raven-hubspot/issues/40") else{s.default._newRelicCallbacks=s.default._newRelicCallbacks||[] s.default._newRelicCallbacks.push(()=>{window.newrelic.setCustomAttribute&&window.newrelic.setCustomAttribute("ravenMissingTags",!0)})}const{bender:r}=s.default,n={sampleRate:1,ignoreErrors:["Aborting: redirection in progress",/Aborting: notifying parents of unauthorized response/,/Cannot set property 'install' of undefined/,/ResizeObserver loop completed with undelivered notifications/,/ResizeObserver loop limit exceeded/,/'URLSearchParams' is not defined/,/Not implemented on this platform/],ignoreUrls:[]},l=t.ignoreErrors||[] u((t=Object.assign({},n,{},t,{ignoreErrors:[...n.ignoreErrors,...l]})).ignoreErrors) const f=o.default.getShort("sentry") a.default.config(e,{release:r&&r.currentProjectVersion,ignoreErrors:t.ignoreErrors,ignoreUrls:t.ignoreUrls,sampleRate:t.sampleRate,environment:f,tags:Object.assign({env:f,project:r&&r.currentProject,portalId:i.default.get(),hublet:o.default.getHublet()},t.tags),breadcrumbCallback:t.breadcrumbCallback||(e=>e),autoBreadcrumbs:{console:!1},dataCallback:c(t.dataCallback),shouldSendCallback:t.shouldSendCallback||(()=>!0)}).install() !o.default.debug("sentry")&&o.default.deployed("sentry")||(a.default.debug=!0) o.default.deployed("sentry")||a.default.setTransport(({onSuccess:e})=>{e()})}const d=window.setInterval window.setInterval=function(e,...t){"function"!=typeof e&&a.default.captureException(new Error("Implied eval. Only a function should be passed as first arg of setInterval.")) return d(e,...t)} const p=window.setTimeout window.setTimeout=function(e,...t){"function"!=typeof e&&a.default.captureException(new Error("Implied eval. Only a function should be passed as first arg of setTimeout.")) return p(e,...t)} e.exports=t.default},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) t.default=void 0 const n=["api","local","app","private","platform","tools","meetings"],o=["hubspotstarter","hubspotfree"],i=["growth"],a={com:["hubspot","hubteam","grader","getsignals","getsidekick","gettally","hubspotemail","customer-hub","hubspotservicehub","hubspotquote"].join("|"),net:o.join("|"),org:i.join("|")} var s=function e(t){const r=new RegExp(`^(?!local|test|selenium)(.*\\.)?(${Object.entries(a).map(([e,t])=>`(?:${t})(qa)?\\.${e}`).join("|")}|(?:connect)\\.com|(?:connect)(qa)\\.co)$`).test(t.hostname),o=new RegExp(Object.entries(a).map(([e,t])=>`(?:${t})qa\\.${e}`).join("|")+"|(?:connect)qa\\.co"),i=new RegExp(`^(?:${n.join("|")})-(.*).(?:hubspot|hubteam)(?:qa)?.com`),s="ENV",l="Enviro error: the default argument for .get and .getShort is no longer supported",u=e=>{let t=window[e] if(null==t)try{t=window.sessionStorage.getItem(e)}catch(e){}if(null==t)try{t=window.localStorage.getItem(e)}catch(e){}return t},c=()=>{const e=u(s) return e||(o.test(t.host)?"qa":"prod")},f=(e,t)=>{window[e]=t return t},d={prod:"production",qa:"development"},p=e=>{if("string"==typeof e){const t=e.toLowerCase() return d[t]||t}return e},h=e=>{e="string"==typeof e?e.toLowerCase():void 0 return Object.keys(d).find(t=>e===d[t])||e},g=(e,t)=>{if(null!=t)throw new Error(l) let r=null if(e){const t=e.split(".").reverse() for(let e=0;e{if(null!=t)throw new Error(l) return h(g(e))},v=b,m=e=>"prod"===v(e),_=e=>"qa"===v(e) return{createEnviro:e,debug:(e,t=!1)=>{let r "string"==typeof e&&(r=u(e.toUpperCase()+"_DEBUG")) null==r&&(r=u("DEBUG")) return null==r?t:r},denormalize:h,deployed:e=>{let t "string"==typeof e&&(t=u(e.toUpperCase()+"_DEPLOYED")) null==t&&(t=u("DEPLOYED")) return null==t?r:!!t},enabled:(e,t=!1)=>{let r=u(e.toUpperCase()+"_ENABLED") null==r&&(r=JSON.stringify(t)) return"true"===(""+r).toLowerCase()},get:g,getHublet:()=>{const e=u("HUBLET") return e||(i.test(t.hostname)?i.exec(t.hostname)[1]:"na1")},getInternal:b,getShort:v,isProd:m,isQa:_,normalize:p,set:function(e,t){if(1===arguments.length){t=e e=s}return f(e,t)},setDebug:(e,t=!0)=>{if("string"==typeof e)try{t?localStorage.setItem(e.toUpperCase()+"_DEBUG",JSON.stringify(!0)):localStorage.removeItem(e.toUpperCase()+"_DEBUG")}catch(r){f(e.toUpperCase()+"_DEBUG",t||void 0)}else{t=null==e||e try{t?localStorage.setItem("DEBUG",JSON.stringify(t)):localStorage.removeItem("DEBUG")}catch(e){f("DEBUG",t||void 0)}}}}}(document.location) t.default=s e.exports=t.default},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) t.default=void 0 var n={id:null,pathRegex:/^\/(?:[A-Za-z0-9-_]*)\/(\d+)(?:\/|$)/,queryParamRegex:/(?:\?|&)portalid=(\d+)/i,getPortalIdFromPath(e){if(document){null==e&&(e=this.pathRegex) return this.parsePortalIdFromString(document.location.pathname,e)}},getPortalIdFromQueryParam(){if(document)return this.parsePortalIdFromString(document.location.search,this.queryParamRegex)},parsePortalIdFromString(e,t){const r=t.exec(e),n=null!=r?r[1]:void 0 return n?+n:void 0},get(e){null==e&&(e={}) if(this.id&&!e.reparse)return this.id const t=this.getPortalIdFromPath(e.regex)||this.getPortalIdFromQueryParam() if(!e.preserveGlobalId){null==window.hubspot&&(window.hubspot={}) null==window.hubspot.portal&&(window.hubspot.portal={}) null==window.hubspot.portal.id&&(window.hubspot.portal.id=t) t&&(this.id=t)}return t}} t.default=n e.exports=t.default}]) //# sourceMappingURL=bundle.production.js.map