!function(){var e=[,function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.startOnceReady=v;var n=i(3),o=i(90),a=i(93),r=i(120),d=i(40),c=i(33),l=i(34),u=s(i(43)),h=i(41),g=s(i(42)),p=i(121),f=i(102);const m=()=>{console.warn(`loadImmediately is set to false and widget.load() has not been called on window.${l.GLOBAL_VARIABLE} yet. Please call widget.load() first or set loadImmediately on window.${l.SETTINGS_VARIABLE} to true.`)};function E({eventEmitter:e,logError:t}){const i=(0,a.createEmbedScriptContext)(),s=new n.WidgetShell(i,t,e);if(window.hubspot_live_messages_running)console.warn("duplicate instance of live chat exists on page");else{window.hubspot_live_messages_running=!0;s.start()}return s}function _(e){(0,o.loadWidgetCss)(document);if((0,c.getExternalApiSettings)().loadImmediately)E({logError:e});else{const t=new u.default,i=new g.default;(0,d.setupExternalApi)({debug:m,on:t.on,off:t.off,clear:m,resetAndReloadWidget:m,widget:{load:()=>{E({eventEmitter:t,logError:e}).loadWidget()},remove:m,open:m,close:m,refresh:m,status:()=>({loaded:!1})}});(0,h.flushOnReadyCallbacks)({logger:i})}}function v(){if((0,r.hasRequiredFeatures)(window)){if(!new RegExp("^/_hcms/(livechat/embedded-content|customer-agent-embed)$","i").test(window.location.pathname)){const e=new p.ErrorLogger;(0,f.getIsLocal)()?_():e.captureErrors((()=>{_(e)}))}}}},function(e){"use strict";function t(e){return e&&e.__esModule?e:{default:e}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.WidgetShell=t.METADATA_UPDATE_SOURCES=void 0;var n=i(4),o=i(7),a=i(8),r=i(9),d=s(i(13)),c=i(15),l=i(16),u=i(18),h=s(i(17)),g=i(19),p=i(22),f=i(23),m=i(24),E=i(25),_=i(26),v=i(30),T=i(39),I=i(40),b=i(41),O=s(i(42)),A=s(i(43)),S=i(49),y=i(50),R=i(52),P=i(53),C=i(54),N=i(32),D=s(i(57)),L=s(i(61)),M=i(62),w=i(64),k=i(66),U=i(67),x=i(21),H=i(69),W=i(70),G=i(72),j=i(74),F=i(75),B=i(76),$=i(77),q=i(81),V=i(82),K=i(83),z=i(86),Y=i(87),X=i(20),Q=i(48),Z=i(33),J=i(88),ee=i(89);const te="help-widget",ie=()=>{},se=t.METADATA_UPDATE_SOURCES={MUTATION_OBSERVER:"metadata updated via mutation observer",EXTERNAL_API:"metadata updated via external api"};class ne{constructor(e,t,i){this.handleDragStart=e=>{const t=document.getElementById(T.PARENT_ID);this.isDragging=!0;const i="RIGHT_ALIGNED"===this.widgetData[k.WIDGET_LOCATION];this.offsetX=i?t.getBoundingClientRect().right-e.clientX:e.clientX-t.getBoundingClientRect().left;this.offsetY=t.getBoundingClientRect().bottom-e.clientY;this.dragOverlayEl instanceof HTMLDivElement&&this.dragOverlayEl.style.setProperty("display","block");this.dragHandleEl instanceof HTMLDivElement&&this.dragHandleEl.style.setProperty("cursor","grabbing")};this.handleDragEnd=()=>{if(!this.dragHandleEl||!this.isDragging)return;this.iframeMessage.post(a.TRACK_WIDGET_DRAGGED,{timeOnPage:performance&&Math.round(performance.now()/1e3),isOpen:this.isOpen||!1});this.dragHandleEl.style.setProperty("cursor","grab");this.dragOverlayEl instanceof HTMLDivElement&&this.dragOverlayEl.style.setProperty("display","none");this.isDragging=!1;const e=this.widgetData?"RIGHT_ALIGNED"===this.widgetData[k.WIDGET_LOCATION]:"RIGHT_ALIGNED",t=e?"right":"left",i=`${u.cookies.WIDGET_POSITION}_${t}`,s=document.getElementById(T.PARENT_ID),n=window.getComputedStyle(s),o=parseInt(n.bottom,10),r=e?parseInt(n.right,10):parseInt(n.left,10);if(r||o)(0,l.setCookie)(i,JSON.stringify({bottom:o,horizontal:r}),h.default.THIRTY_MINUTES);else{s.style.removeProperty(t);s.style.removeProperty("bottom");(0,X.deleteCookie)(i)}};this.handleDrag=e=>{if(!this.isDragging)return;const t=document.getElementById(T.PARENT_ID),i=this.widgetData?"RIGHT_ALIGNED"===this.widgetData[k.WIDGET_LOCATION]:"RIGHT_ALIGNED",s=i?"right":"left",n=i?window.innerWidth-e.clientX-this.offsetX:e.clientX-this.offsetX,o=window.innerHeight-e.clientY-this.offsetY;t.style.setProperty(s,`${Math.min(Math.max(0,n),window.innerWidth-t.clientWidth)}px`,"important");t.style.setProperty("bottom",`${Math.min(Math.max(0,o),window.innerHeight-t.clientHeight)}px`,"important");t.style.setProperty("position","fixed","!important")};this.unintializeDrag=()=>{if(this.dragHandleEl){this.dragHandleEl.removeEventListener("mousedown",this.handleDragStart);window.removeEventListener("mousemove",this.handleDrag);window.removeEventListener("mouseup",this.handleDragEnd);window.removeEventListener("mouseleave",this.handleDragEnd);this.dragHandleEl.remove()}};this.initalizeDrag=()=>{const{draggable:e}=this.widgetData;if(!e||(0,n.isAnyMobile)()||(0,Z.getExternalApiSettings)().isFullscreen)return;this.dragHandleEl=document.createElement("div");this.dragHandleEl.classList.add("hs-drag-handle");this.dragHandleEl.title="Drag";this.dragHandleEl.style.setProperty("color",ee.NEUTRAL_800);this.dragHandleEl.innerHTML=`\n \n \n \n `;this.dragOverlayEl=document.createElement("div");this.dragOverlayEl.classList.add("hs-drag-overlay");const t=document.getElementById(T.PARENT_ID);t.appendChild(this.dragOverlayEl);t.appendChild(this.dragHandleEl);t.style.setProperty("user-select","none");this.dragHandleEl.addEventListener("mousedown",this.handleDragStart);window.addEventListener("mousemove",this.handleDrag);window.addEventListener("mouseup",this.handleDragEnd);window.addEventListener("mouseleave",this.handleDragEnd)};this.getDefaultSize=()=>({width:100,height:96});this.getStartPosition=()=>{if(!this.widgetData.draggable||(0,n.isAnyMobile)()||(0,Z.getExternalApiSettings)().isFullscreen)return null;const e=(this.widgetData?"RIGHT_ALIGNED"===this.widgetData[k.WIDGET_LOCATION]:"RIGHT_ALIGNED")?"right":"left",t=`${u.cookies.WIDGET_POSITION}_${e}`,i=(0,l.getCookie)(t);if(!i)return null;try{return JSON.parse(i)}catch(e){console.error("Error parsing cookie",e);return null}};this.loadIFrame=()=>{(0,n.isAnyMobile)()&&document.documentElement.classList.add(p.MOBILE);const e=document.createElement("iframe");this.iframeSrc=this.embedScriptContext.getIFrameSrc();e.src=this.iframeSrc;e.id=T.IFRAME_ID;e.title="Chat Widget";e.allowFullscreen=!0;e.setAttribute("data-test-id","chat-widget-iframe");e.addEventListener("load",this.handleIframeLoad);const t=document.createElement("div");t.role="region";t.ariaLabel="Chat Widget";if((0,N.shouldEmbedInline)()){const i=document.querySelector((0,N.getInlineEmbedSelector)());if(!i){this.devLogger.error(`cannot embed widget - element at \`${(0,N.getInlineEmbedSelector)()}\` cannot be found`);return}t.id=T.INLINE_PARENT_ID;e.id=T.INLINE_IFRAME_ID;this.iframe=t.appendChild(e);i.appendChild(t);return}if(document.getElementById(T.PARENT_ID)){console.warn(`Element with id ${T.PARENT_ID} already exists. Unable to load HubSpot Conversations Widget.`);return}t.id=T.PARENT_ID;const i=this.getStartPosition();if(i){const e="RIGHT_ALIGNED"===this.widgetData[k.WIDGET_LOCATION]?"right":"left";t.style.setProperty(e,`${i.horizontal}px`,"important");t.style.setProperty("bottom",`${i.bottom}px`,"important")}const{height:s,width:o}=this.getDefaultSize();t.style.minHeight=`${s}px`;t.style.minWidth=`${o}px`;const a=document.createElement("div");a.className=p.SHADOW_CONTAINER;const r=(0,E.isEmbeddedInProduct)(this.embedScriptContext);if(r){t.classList.add(p.INTERNAL);a.classList.add(p.INTERNAL)}t.appendChild(a);r&&(e.id=te);this.iframe=t.appendChild(e);document.body.appendChild(t);this.initalizeDrag();this.setFrameClass()};this.handleI18nLabels=({data:e})=>{if(!this.iframe||!e)return;const t=e["conversations-visitor-ui.visitorExperienceAriaLabels.chatWidget"],i=e["conversations-visitor-experience-components.visitorExperienceAriaLabels.drag"],s=document.getElementById((0,N.shouldEmbedInline)()?T.INLINE_PARENT_ID:T.PARENT_ID);if(t){this.iframe.setAttribute("title",t);s&&(s.ariaLabel=t)}i&&this.dragHandleEl&&this.dragHandleEl.setAttribute("title",i)};this.clampPosition=()=>{var e;if(null===(e=this.widgetData)||void 0===e||!e.draggable||(0,n.isAnyMobile)()||(0,Z.getExternalApiSettings)().isFullscreen)return;let t=!1;const i=document.getElementById(T.PARENT_ID),s="RIGHT_ALIGNED"===this.widgetData[k.WIDGET_LOCATION];if(!i||!i.getBoundingClientRect)return;const{top:o,left:a,right:r}=i.getBoundingClientRect(),{innerWidth:d,innerHeight:c}=window,{clientWidth:l,clientHeight:u}=i;if(o<0){t=!0;i.style.setProperty("bottom",`${Math.max(c-u,0)}px`,"important")}if(s&&a<0){t=!0;i.style.setProperty("right",`${Math.max(d-l,0)}px`,"important")}if(!s&&d-r<0){t=!0;i.style.setProperty("left",`${Math.max(d-l,0)}px`,"important")}t&&this.handleDragEnd()};this.setWidgetData=e=>{this.widgetData=e;this.setFrameClass()};this.embedScriptContext=e;this.dragHandleEl=null;this.dragOverlayEl=null;this.isDragging=!1;this.offsetX=0;this.offsetY=0;this.isOpen=(0,v.shouldWidgetStartOpen)();this.iframe=null;this.iframeSrc=null;this.hasLoadedIframe=!1;this.isLoadingIframe=!1;this.requestWidgetOpen=this.requestWidgetOpen.bind(this);this.requestWidgetClose=this.requestWidgetClose.bind(this);this.requestWidgetRefresh=(0,P.throttle)(this.requestWidgetRefresh.bind(this),1e3);this.requestSetInputText=this.requestSetInputText.bind(this);this.handleWindowResize=this.handleWindowResize.bind(this);this.handleIframeLoad=this.handleIframeLoad.bind(this);this.handleResizeMessage=this.handleResizeMessage.bind(this);this.handleOpenChange=this.handleOpenChange.bind(this);this.handleStoreMessagesCookie=this.handleStoreMessagesCookie.bind(this);this.handleRequestWidget=this.handleRequestWidget.bind(this);this.handleWidgetRefresh=this.handleWidgetRefresh.bind(this);this.setWidgetNotLoaded=this.setWidgetNotLoaded.bind(this);this.removeIframe=this.removeIframe.bind(this);this.handleExternalApiEventMessage=this.handleExternalApiEventMessage.bind(this);this.loadWidget=(0,P.throttle)(this.loadWidget.bind(this),1e3);this.resetAndReloadWidget=this.resetAndReloadWidget.bind(this);this.setWidgetOpenCookie=this.setWidgetOpenCookie.bind(this);this.getStatus=this.getStatus.bind(this);this.handleScroll=this.handleScroll.bind(this);this.handleExitIntent=this.handleExitIntent.bind(this);this.extendedClearCookiesFunction=this.extendedClearCookiesFunction.bind(this);this.openToNewThread=this.openToNewThread.bind(this);this.handleDragHandlePositionChange=this.handleDragHandlePositionChange.bind(this);this.handleInputTextChanged=this.handleInputTextChanged.bind(this);this.devLogger=new O.default;this.eventEmitter=i||new A.default;this.logError=t?t.logError:ie;this.scrollPercentageTracker=new D.default({onScroll:this.handleScroll});this.exitIntentTracker=new L.default({onExitIntent:this.handleExitIntent});this.screenCapturePlugin=new J.ScreenCapturePlugin(this);this.iframeMessage=(0,$.iframeMessagePool)({iframeSrc:this.embedScriptContext.getIFrameSrc()});this.apiUsageTracker=new H.ApiUsageTracker({postMessageToIframe:this.iframeMessage.post});const s=new W.PostMessageApiClient(this.iframeMessage.post);this.pageTitleNotifications=new d.default;this.postMessageReceiver=new r.PostMessageReceiver({[o.SHOW_PAGE_TITLE_NOTIFICATION]:this.pageTitleNotifications.handleShow,[o.CLEAR_PAGE_TITLE_NOTIFICATION]:this.pageTitleNotifications.handleClear,[o.REQUEST_WIDGET]:this.handleRequestWidget,[a.REFRESH_WIDGET_DATA]:this.requestWidgetRefresh,[o.IFRAME_RESIZE]:this.handleResizeMessage,[o.OPEN_CHANGE]:this.handleOpenChange,[o.CLOSED_WELCOME_MESSAGE]:q.hideWelcomeMessage,[o.STORE_MESSAGES_COOKIE]:this.handleStoreMessagesCookie,[o.EXTERNAL_API_EVENT]:this.handleExternalApiEventMessage,[o.API_REQUEST]:s.makeApiRequest,[o.I18N_LABELS]:this.handleI18nLabels,[o.SCREEN_CAPTURE_REQUEST]:this.screenCapturePlugin.handleScreenCaptureRequest,[o.DRAG_HANDLE_POSITION_CHANGE]:this.handleDragHandlePositionChange,[o.INPUT_TEXT_CHANGED]:this.handleInputTextChanged},{allowedOrigin:this.embedScriptContext.getIFrameDomain(),iframeUuid:this.embedScriptContext.iframeUuid});this.exitIntentTracker.registerPostMessageReceivers(this.postMessageReceiver);this.scrollPercentageTracker.registerPostMessageReceivers(this.postMessageReceiver)}handleExternalApiEventMessage(e){(0,S.handleExternalApiEventMessage)(e,{eventEmitter:this.eventEmitter})}handleScroll({scrollPercentage:e}){this.iframeMessage.post(a.SCROLL_PERCENTAGE_CHANGE,{scrollPercentage:e})}handleExitIntent(){this.iframeMessage.post(a.EXIT_INTENT)}getStatus(){return{loaded:this.hasLoadedIframe,pending:this.isLoadingIframe}}handleIframeLoad(){setTimeout((()=>this.eventEmitter.trigger("widgetLoaded",{message:"widget has loaded"})));this.handleWindowResize();this.hasLoadedIframe=!0;this.isLoadingIframe=!1;(0,M.markEndPostDelay)();this.postPerfAttributes(this.embedScriptContext.getPerfAttributes())}postPerfAttributes(e){Math.random()<.5&&this.iframeMessage.post(a.PERF_ATTRIBUTES,{perfAttributes:e})}resetAndReloadWidget(){this.removeIframe();(0,U.resetAndLaunchWidget)()}removeIframe(){this.unintializeDrag();const e=(0,N.shouldEmbedInline)()?document.getElementById(T.INLINE_PARENT_ID):document.getElementById(T.PARENT_ID);e&&e.remove();this.iframeSrc=null;this.hasLoadedIframe=!1;this.isLoadingIframe=!1}handleResizeMessage({data:{height:e,width:t}={}}){(0,V.resizeWidgetIframe)({height:e,width:t});e&&e>60&&this.dragHandleEl?this.dragHandleEl.style.setProperty("display","flex"):this.dragHandleEl&&this.dragHandleEl.style.setProperty("display","none");this.clampPosition()}setWidgetOpenCookie({isOpen:e}){(0,l.setCookie)(u.cookies.IS_OPEN,e,h.default.THIRTY_MINUTES)}handleOpenChange({data:{isOpen:e,isUser:t}}){const i=document.documentElement,s=document.getElementById(T.PARENT_ID).getElementsByClassName(p.SHADOW_CONTAINER)[0];this.isOpen=e;t&&this.setWidgetOpenCookie({isOpen:this.isOpen});if(this.isOpen){i.classList.add(p.ACTIVE);s.classList.add("active")}else{i.classList.remove(p.ACTIVE);s.classList.remove("active")}}handleDragHandlePositionChange({data:{dragHandleState:e}}){const{draggable:t,gates:i,routingRuleDefinitionAI:s}=this.widgetData,o=i["Chatflows:CustomerAgentPrompts"],a=Boolean(s),r=o&&a;if(!t||(0,n.isAnyMobile)()||(0,Z.getExternalApiSettings)().isFullscreen)return;const d="RIGHT_ALIGNED"===this.widgetData[k.WIDGET_LOCATION]?"right":"left",c=()=>{this.dragHandleEl&&Array.from(this.dragHandleEl.classList).forEach((e=>{if(e.startsWith("hs-drag-handle--")){var t;null===(t=this.dragHandleEl)||void 0===t||t.classList.remove(e)}}))};if(this.dragHandleEl){c();r?this.dragHandleEl.classList.add(`hs-drag-handle--v2--${e}--${d}`):this.dragHandleEl.classList.add(`hs-drag-handle--v1--${d}`)}}handleInputTextChanged({data:{text:e}}){this.eventEmitter.trigger(Q.INPUT_TEXT_CHANGED,{text:e})}handleRequestWidget({source:e}){(0,G.sendWidgetDataToIframe)({source:e,widgetData:this.widgetData,embedScriptContext:this.embedScriptContext,apiUsageTracker:this.apiUsageTracker})}handleStoreMessagesCookie({data:e}){this.iframeMessage.post(a.FIRST_VISITOR_SESSION,{isFirstVisitorSession:!1});"yes"===(0,z.getGlobalCookieOptOut)()&&this.widgetData.gdprConsentOptions.cookieConsentPrompt!==Y.NEVER&&window._hsp.push(["showBanner"]);(0,m.setMessagesUtk)(e)}requestWidgetOpen(){this.isOpen?this.devLogger.log("cannot open the widget, it is already open."):this.iframeMessage.post(a.REQUEST_OPEN)}requestWidgetClose(){this.isOpen?this.iframeMessage.post(a.REQUEST_CLOSE):this.devLogger.log("cannot close the widget, it is already closed")}requestSetInputText(e){this.iframe?this.iframeMessage.post(a.SET_INPUT_TEXT,{text:e}):this.devLogger.log("cannot set input text, widget is not loaded")}handleWindowResize(){const e={height:window.innerHeight,width:window.innerWidth};this.iframeMessage.post(a.BROWSER_WINDOW_RESIZE,e);this.clampPosition()}requestWidgetRefresh({openToNewThread:e,setIdentification:t=!1}={}){const{portalId:i}=this.embedScriptContext;if(this.hasLoadedIframe||!this.isLoadingIframe)if(this.hasLoadedIframe){const s=this.embedScriptContext.getInitialRequestUrl(t);t&&this.postVisitorIdentificationAttributes();(0,y.fetchWidgetData)({requestUrl:s,portalId:i},(t=>{this.handleWidgetRefresh(t);e&&this.openToNewThread()}))}else{this.loadWidget();e&&this.openToNewThread()}else this.devLogger.log("Cannot refresh the widget - it is currently loading.")}openToNewThread(){this.iframeMessage.post(a.OPEN_TO_NEW_THREAD)}extendedClearCookiesFunction(e){e&&e[x.RESET_WIDGET]&&this.removeIframe();(0,g.clearCookies)(e)}handleWidgetRefresh(e){this.setWidgetData(e);(0,c.getWidgetDataResponseType)(this.widgetData)===f.HIDE_WIDGET?this.removeIframe():this.iframeMessage.post(a.REFRESH_WIDGET_DATA,Object.assign({},this.widgetData,(0,C.getIframeQueryParams)(this.embedScriptContext)))}setWidgetNotLoaded({reason:e,description:t}){this.hasLoadedIframe=!1;this.isLoadingIframe=!1;(e||t)&&this.eventEmitter.trigger(Q.WIDGET_HIDDEN,{reason:e,description:t})}loadWidget(e={}){const{portalId:t}=this.embedScriptContext;if(this.isLoadingIframe)this.devLogger.log("Cannot load the widget - The widget is already being loaded.");else if(this.hasLoadedIframe)this.devLogger.log("Cannot load the widget - the widget has already loaded.");else{this.isLoadingIframe=!0;e.widgetOpen&&this.setWidgetOpenCookie({isOpen:!0});(0,y.fetchWidgetData)({requestUrl:this.embedScriptContext.getInitialRequestUrl(),portalId:t},(0,K.handleTargetingAndDelay)(this.setWidgetData,this.loadIFrame,this.setWidgetNotLoaded),(()=>{R.EVENTS.messagesInitialized({messageWillRender:!1})}))}}start(){const{shouldRender:e}=(0,_.shouldRenderWidget)(this.embedScriptContext);if(e){(0,I.setupExternalApi)({debug:this.devLogger.debug,on:(e,t)=>{this.eventEmitter.on(e,t);this.apiUsageTracker.trackEventListener(e)},off:this.eventEmitter.off,clear:e=>{this.extendedClearCookiesFunction(e);this.apiUsageTracker.trackMethod("clear")},resetAndReloadWidget:this.resetAndReloadWidget,widget:{load:(...e)=>{this.loadWidget(...e);this.apiUsageTracker.trackMethod("load")},remove:()=>{this.removeIframe();this.apiUsageTracker.trackMethod("remove")},open:()=>{this.requestWidgetOpen();this.apiUsageTracker.trackMethod("open")},close:()=>{this.requestWidgetClose();this.apiUsageTracker.trackMethod("close")},refresh:(...e)=>{this.requestWidgetRefresh(...e);this.apiUsageTracker.trackMethod("refresh")},status:()=>{this.apiUsageTracker.trackMethod("status");return this.getStatus()},updateEntryUrlMetadata:e=>{this.postEntryUrlMetadata(se.EXTERNAL_API,e);this.apiUsageTracker.trackMethod("updateEntryUrlMetadata")},setInputText:e=>{this.requestSetInputText(e);this.apiUsageTracker.trackMethod("setInputText")}}});(0,b.flushOnReadyCallbacks)({logger:this.devLogger,trackCallback:this.apiUsageTracker.trackOnReady});(0,F.registerHashChangeListener)({requestWidgetOpen:this.requestWidgetOpen,isOpen:this.isOpen});(0,B.registerWindowResizeListener)({resizeCallbackFn:this.handleWindowResize});(0,j.registerCookieListeners)({postMessageToIframe:this.iframeMessage.post});(0,N.shouldLoadImmediately)()&&this.loadWidget();this.postVisitorIdentificationAttributes();this.postEntryUrlMetadata();this.registerEntryUrlMetadataObserver()}else try{R.EVENTS.messagesInitialized({messageWillRender:!1})}catch(e){this.devLogger.log("widget load aborted")}}postVisitorIdentificationAttributes(){const{identificationEmail:e,identificationToken:t}=this.embedScriptContext;this.iframeMessage.post(a.VISITOR_IDENTIFICATION_ATTRIBUTES,{identificationEmail:e,identificationToken:t})}postEntryUrlMetadata(e,t){var i;const s="string"==typeof(null==t?void 0:t.title)?t.title:document.title,n="string"==typeof(null==t?void 0:t.description)?t.description:(null===(i=document.querySelector('meta[name="description"]'))||void 0===i?void 0:i.getAttribute("content"))||"";this.iframeMessage.post(a.ENTRY_URL_METADATA,{title:s,description:n,source:e})}registerEntryUrlMetadataObserver(){const e=document.querySelector("title"),t=document.querySelector('meta[name="description"]'),i=new MutationObserver((e=>{this.pageTitleNotifications.notificationIntervalIsRunning()||e.forEach((()=>{setTimeout((()=>{this.postEntryUrlMetadata(se.MUTATION_OBSERVER)}),0)}))}));e&&i.observe(e,{childList:!0});t&&i.observe(t,{attributes:!0})}setFrameClass(){const e=document.getElementById(T.PARENT_ID);if(!e)return;const t=this.widgetData[k.WIDGET_LOCATION];(0,w.setClassInClassList)({widgetLocation:t,classList:e.classList})}}t.WidgetShell=ne},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.getMobileState=r;t.isAnyMobile=d;t.isIOSMobile=u;t.isMobileSafari=c;t.isWindowsMobile=l;var n=s(i(5));const o=/WebKit/i;function a(e,t){return e.test(t)}function r(e=window.navigator.userAgent){let t=e,i=t.split("[FBAN");void 0!==i[1]&&(t=i[0]);i=t.split("Twitter");void 0!==i[1]&&(t=i[0]);const s=new n.default(t);s.other.webkit=a(o,t);s.safari=s.apple.device&&s.other.webkit&&!s.other.opera&&!s.other.chrome;return s}function d(){const e=r();return e.any&&!e.tablet}function c(){return r().safari}function l(){return r().windows.phone}function u(){return r().apple.phone}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s={};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.default}});var n=a(i(6));Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(o=function(e){return e?i:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=o(t);if(i&&i.has(e))return i.get(e);var s={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var r=n?Object.getOwnPropertyDescriptor(e,a):null;r&&(r.get||r.set)?Object.defineProperty(s,a,r):s[a]=e[a]}s.default=e;i&&i.set(e,s);return s}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=v;var i=/iPhone/i,s=/iPod/i,n=/iPad/i,o=/\biOS-universal(?:.+)Mac\b/i,a=/\bAndroid(?:.+)Mobile\b/i,r=/Android/i,d=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,c=/Silk/i,l=/Windows Phone/i,u=/\bWindows(?:.+)ARM\b/i,h=/BlackBerry/i,g=/BB10/i,p=/Opera Mini/i,f=/\b(CriOS|Chrome)(?:.+)Mobile/i,m=/Mobile(?:.+)Firefox\b/i,E=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream};function _(e){return function(t){return t.test(e)}}function v(e){var t={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var v=t.userAgent,T=v.split("[FBAN");void 0!==T[1]&&(v=T[0]);void 0!==(T=v.split("Twitter"))[1]&&(v=T[0]);var I=_(v),b={apple:{phone:I(i)&&!I(l),ipod:I(s),tablet:!I(i)&&(I(n)||E(t))&&!I(l),universal:I(o),device:(I(i)||I(s)||I(n)||I(o)||E(t))&&!I(l)},amazon:{phone:I(d),tablet:!I(d)&&I(c),device:I(d)||I(c)},android:{phone:!I(l)&&I(d)||!I(l)&&I(a),tablet:!I(l)&&!I(d)&&!I(a)&&(I(c)||I(r)),device:!I(l)&&(I(d)||I(c)||I(a)||I(r))||I(/\bokhttp\b/i)},windows:{phone:I(l),tablet:I(u),device:I(l)||I(u)},other:{blackberry:I(h),blackberry10:I(g),opera:I(p),firefox:I(m),chrome:I(f),device:I(h)||I(g)||I(p)||I(m)||I(f)},any:!1,phone:!1,tablet:!1};b.any=b.apple.device||b.android.device||b.windows.device||b.other.device;b.phone=b.apple.phone||b.android.phone||b.windows.phone;b.tablet=b.apple.tablet||b.android.tablet||b.windows.tablet;return b}e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.STORE_MESSAGES_COOKIE=t.STOP_TRACK_SCROLL_PERCENTAGE=t.STOP_TRACK_EXIT_INTENT=t.START_TRACK_SCROLL_PERCENTAGE=t.START_TRACK_EXIT_INTENT=t.SHOW_PAGE_TITLE_NOTIFICATION=t.SCREEN_CAPTURE_REQUEST=t.REQUEST_WIDGET=t.REFRESH_WIDGET_DATA=t.OPEN_CHANGE=t.INPUT_TEXT_CHANGED=t.IFRAME_RESIZE=t.I18N_LABELS=t.EXTERNAL_API_EVENT=t.DRAG_HANDLE_POSITION_CHANGE=t.CLOSED_WELCOME_MESSAGE=t.CLEAR_PAGE_TITLE_NOTIFICATION=t.API_REQUEST=void 0;t.SHOW_PAGE_TITLE_NOTIFICATION="show-page-title-notification",t.CLEAR_PAGE_TITLE_NOTIFICATION="clear-page-title-notification",t.IFRAME_RESIZE="iframe-resize",t.OPEN_CHANGE="open-change",t.CLOSED_WELCOME_MESSAGE="closed-welcome-message",t.REQUEST_WIDGET="request-widget",t.STORE_MESSAGES_COOKIE="store-messages-cookie",t.EXTERNAL_API_EVENT="external-api-event",t.START_TRACK_SCROLL_PERCENTAGE="start-track-scroll-percentage",t.STOP_TRACK_SCROLL_PERCENTAGE="stop-track-scroll-percentage",t.START_TRACK_EXIT_INTENT="start-track-exit-intent",t.STOP_TRACK_EXIT_INTENT="stop-track-exit-intent",t.API_REQUEST="api-request",t.I18N_LABELS="i18n-labels",t.REFRESH_WIDGET_DATA="refresh-widget-data",t.SCREEN_CAPTURE_REQUEST="screen-capture-request",t.DRAG_HANDLE_POSITION_CHANGE="drag-handle-position-change",t.INPUT_TEXT_CHANGED="input-text-changed"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.WIDGET_DATA=t.VISITOR_IDENTIFICATION_ATTRIBUTES=t.TRACK_WIDGET_DRAGGED=t.TRACK_API_USAGE=t.SET_INPUT_TEXT=t.SCROLL_PERCENTAGE_CHANGE=t.SCREEN_CAPTURE_BLOB=t.REQUEST_OPEN=t.REQUEST_CLOSE=t.REFRESH_WIDGET_DATA=t.PERF_ATTRIBUTES=t.OPEN_TO_NEW_THREAD=t.HUBSPOT_UTK=t.GLOBAL_COOKIE_OPT_OUT=t.FIRST_VISITOR_SESSION=t.EXIT_INTENT=t.ENTRY_URL_METADATA=t.BROWSER_WINDOW_RESIZE=t.API_REQUEST_RESULT=void 0;t.WIDGET_DATA="widget-data",t.HUBSPOT_UTK="hubspot-utk",t.GLOBAL_COOKIE_OPT_OUT="global-cookie-opt-out",t.FIRST_VISITOR_SESSION="first-visitor-session",t.REFRESH_WIDGET_DATA="refresh-widget-data",t.REQUEST_OPEN="request-open",t.REQUEST_CLOSE="request-close",t.BROWSER_WINDOW_RESIZE="browser-window-resize",t.SCROLL_PERCENTAGE_CHANGE="scroll-percentage-change",t.EXIT_INTENT="exit-intent",t.PERF_ATTRIBUTES="perf-attributes",t.TRACK_API_USAGE="track-api-usage",t.TRACK_WIDGET_DRAGGED="track-widget-dragged",t.SCREEN_CAPTURE_BLOB="screen-capture-blob",t.OPEN_TO_NEW_THREAD="open-to-new-thread",t.API_REQUEST_RESULT="api-request-result",t.VISITOR_IDENTIFICATION_ATTRIBUTES="visitor-identification-attributes",t.ENTRY_URL_METADATA="entry-url-metadata",t.SET_INPUT_TEXT="set-input-text"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PostMessageReceiver=void 0;var s=i(10),n=i(12);class o{constructor(e,{allowedOrigin:t,iframeUuid:i}){(0,n.objectInvariant)(e);(0,s.stringInvariant)(t);(0,s.stringInvariant)(i);this.allowedOrigin=t;this.iframeUuid=i;this._handlers=e;this.handleMessage=this.handleMessage.bind(this);window.addEventListener("message",this.handleMessage)}isOriginAllowed(e){return e===this.allowedOrigin}handleMessage(e){const{data:t,origin:i,source:s}=e;if(this.isOriginAllowed(i))try{const e=JSON.parse(t);if(e.uuid!==this.iframeUuid)return;const{type:i,data:n}=e,o=this._handlers[i];"function"==typeof o&&o({data:n,source:s})}catch(e){return}}register(e,t){this._handlers[e]=t}}t.PostMessageReceiver=o},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.stringInvariant=void 0;var n=s(i(11));const o=(e,t="")=>(0,n.default)("string"==typeof e,"Expected %s to be a string, not a %s",t||e,typeof e);t.stringInvariant=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;const i=(e,t,...i)=>{if(e)return;let s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let e=0;s=new Error(`Invariant Violation: ${t.replace(/%s/g,(()=>i[e++]))}`)}throw s};t.default=i;e.exports=t.default},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.objectInvariant=void 0;var n=s(i(11));const o=(e,t="")=>(0,n.default)("object"==typeof e&&null!==e,"Expected %s to be an object",t||e);t.objectInvariant=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;var s=i(10),n=i(14);class o{constructor(){this.handleShow=this.handleShow.bind(this);this.handleClear=this.handleClear.bind(this);this.notificationIntervalId=0;this.notificationMessageIsInPageTitle=!1;this.cachedOriginalDocumentTitle=document.title}clearNotificationInterval(){clearInterval(this.notificationIntervalId)}notificationIntervalIsRunning(){return Boolean(this.notificationIntervalId)}start({title:e}){if(!this.notificationIntervalIsRunning()){this.cachedOriginalDocumentTitle=document.title;this.togglePageTitle({notificationTitle:e});this.notificationIntervalId=setInterval((()=>{this.togglePageTitle({notificationTitle:e})}),n.NOTIFICATION_INTERVAL_MS)}}stop(){if(this.notificationIntervalIsRunning()){this.clearNotificationInterval();this.updatePageTitle(this.cachedOriginalDocumentTitle);this.notificationIntervalId=0;this.notificationMessageIsInPageTitle=!1;this.cachedOriginalDocumentTitle=""}}togglePageTitle({notificationTitle:e}){if(this.notificationMessageIsInPageTitle){this.updatePageTitle(this.cachedOriginalDocumentTitle);this.notificationMessageIsInPageTitle=!1}else{this.updatePageTitle(e);this.notificationMessageIsInPageTitle=!0}}handleShow({data:e}){this.start({title:e.title})}handleClear(){this.stop()}updatePageTitle(e){(0,s.stringInvariant)(e);document.title=e}}t.default=o;e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.NOTIFICATION_INTERVAL_MS=void 0;t.NOTIFICATION_INTERVAL_MS=1250},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getWidgetDataResponseType=void 0;const i="@type",s=e=>null==e?void 0:e[i];t.getWidgetDataResponseType=s},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.getCookie=a;t.getHostnameWithoutWww=r;t.setCookie=d;var n=s(i(17));let o=!1;function a(e){let t="";if(document.cookie&&""!==document.cookie){const i=document.cookie.split(";");for(let s=0;s-1)s.push("Secure");else if(!o){console.warn("HubSpot Conversations: You are using conversations on a non-https site! Not using https puts your visitor's data at risk, please enforce using https.");o=!0}const a=s.join(";");document.cookie=a}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;const i=864e5,s={TWO_MINUTES:12e4,THIRTY_MINUTES:18e5,ONE_DAY:i,SIX_MONTHS:30*i*6};t.default=s;e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.cookies=t.cookieValues=void 0;t.cookies={HUBSPOT:"hubspotutk",MESSAGES:"messagesUtk",IS_OPEN:"hs-messages-is-open",HIDE_WELCOME_MESSAGE:"hs-messages-hide-welcome-message",WIDGET_POSITION:"hs-messages-widget-position",HUBSPOT_API_CSRF:"hubspotapi-csrf",HSTC:"__hstc",HSSC:"__hssc",GLOBAL_COOKIE_OPT_OUT:"__hs_opt_out"},t.cookieValues={GLOBAL_COOKIE_OPT_OUT_YES:"yes",GLOBAL_COOKIE_OPT_OUT_NO:"no"}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.clearCookies=r;var s=i(18),n=i(20),o=i(1),a=i(21);function r(e){(0,n.deleteCookie)(s.cookies.MESSAGES);(0,n.deleteCookie)(s.cookies.IS_OPEN);(0,n.deleteCookie)(s.cookies.HIDE_WELCOME_MESSAGE);(0,n.deleteCookie)(`${s.cookies.WIDGET_POSITION}_right`);(0,n.deleteCookie)(`${s.cookies.WIDGET_POSITION}_left`);if(null!=e&&e[a.RESET_WIDGET]){window.hubspot_live_messages_running=!1;(0,o.startOnceReady)()}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.deleteCookie=n;var s=i(16);function n(e){(0,s.setCookie)(e,"",-1)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.RESET_WIDGET=void 0;t.RESET_WIDGET="resetWidget"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SHADOW_CONTAINER=t.MOBILE=t.INTERNAL=t.ALIGNED_RIGHT_CLASS=t.ALIGNED_LEFT_CLASS=t.ACTIVE=void 0;t.ACTIVE="hs-messages-widget-open",t.MOBILE="hs-messages-mobile",t.SHADOW_CONTAINER="hs-shadow-container",t.INTERNAL="internal",t.ALIGNED_LEFT_CLASS="widget-align-left",t.ALIGNED_RIGHT_CLASS="widget-align-right"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.V1=t.HIDE_WIDGET=void 0;t.V1="V1",t.HIDE_WIDGET="HIDE_WIDGET"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.setMessagesUtk=o;var s=i(16),n=i(18);function o(e){(0,s.setCookie)(n.cookies.MESSAGES,e)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isEmbeddedInProduct=c;const i=53,s=99535353,n=100048175,o=/^(?:app|local)\.hubspot(?:qa)?\.com$/,a=/(?:pricing)\/[0-9]+/,r=/signup-hubspot/,d="pricing";function c({portalId:e,hostname:t=window.location.hostname,pathname:c=window.location.pathname}){const l=-1!==c.indexOf(d)&&!a.test(c),u=r.test(c);return!(!o.test(t)||l||u)&&(-1!==t.indexOf("qa")?e===i||e===s||e===n:e===i)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.shouldRenderWidget=void 0;var s=i(4),n=i(25),o=i(27),a=i(28);const r=({portalId:e})=>{var t;const i=!!(0,o.getPortalIdFromPath)(window.location.pathname),r=(0,n.isEmbeddedInProduct)({portalId:e})&&!i,d=null===(t=window)||void 0===t||null===(t=t.disabledHsPopups)||void 0===t?void 0:t.includes("LIVE_CHAT");return(0,s.isWindowsMobile)()?{shouldRender:!1,reason:"WINDOWS_PHONE"}:(0,a.isUsingUnsupportedFramework)()?{shouldRender:!1,reason:"UNSUPPORTED_FRAMEWORK"}:r?{shouldRender:!1,reason:"MISSING_PORTAL_ID"}:d?{shouldRender:!1,reason:"IS_EMBEDDED_MEETINGS"}:{shouldRender:!0}};t.shouldRenderWidget=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getPortalIdFromPath=s;const i=/^\/(?:[A-Za-z0-9-_]*)\/(\d+)(?:\/|$)/;function s(e){try{return i.exec(e)[1]}catch(e){return""}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isUsingUnsupportedFramework=void 0;var s=i(29);const n=()=>{const e=s.METHODS.filter((e=>!!e)).length;return Boolean(e)};t.isUsingUnsupportedFramework=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.METHODS=void 0;t.METHODS=[Object.prototype.toJSON,Array.prototype.toJSON,String.prototype.toJSON]},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.shouldWidgetStartOpen=c;var s=i(31),n=i(16),o=i(32),a=i(18),r=i(37),d=i(38);function c(){const e=(0,o.shouldEmbedInline)();if(!e&&(0,s.cookieIsSet)(a.cookies.IS_OPEN)){const e=(0,n.getCookie)(a.cookies.IS_OPEN);return(0,d.stringToBoolean)(e)}return e||(0,r.urlHasHsChatHashLink)(window.location.href)||void 0}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.cookieIsSet=void 0;var s=i(16);const n=e=>Boolean((0,s.getCookie)(e));t.cookieIsSet=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.shouldLoadImmediately=t.shouldHideScrollToButton=t.shouldHideNewThreadLink=t.shouldEmbedInline=t.shouldDisableInitialInputFocus=t.shouldDisableAttachment=t.shouldBeFullscreen=t.getInlineEmbedSelector=t.getIdentificationToken=t.getIdentificationEmail=t.getEnableWidgetCookieBanner=void 0;var s=i(33);const n=()=>!!(0,s.getExternalApiSettings)().loadImmediately;t.shouldLoadImmediately=n;const o=()=>!!(0,s.getExternalApiSettings)().isFullscreen;t.shouldBeFullscreen=o;const a=()=>(0,s.getExternalApiSettings)().inlineEmbedSelector;t.getInlineEmbedSelector=a;const r=()=>!!(0,s.getExternalApiSettings)().inlineEmbedSelector;t.shouldEmbedInline=r;const d=()=>!!(0,s.getExternalApiSettings)().disableAttachment;t.shouldDisableAttachment=d;const c=()=>!!(0,s.getExternalApiSettings)().disableInitialInputFocus;t.shouldDisableInitialInputFocus=c;const l=()=>(0,s.getExternalApiSettings)().enableWidgetCookieBanner;t.getEnableWidgetCookieBanner=l;const u=()=>(0,s.getExternalApiSettings)().identificationEmail;t.getIdentificationEmail=u;const h=()=>(0,s.getExternalApiSettings)().identificationToken;t.getIdentificationToken=h;const g=()=>(0,s.getExternalApiSettings)().hideScrollToButton;t.shouldHideScrollToButton=g;const p=()=>(0,s.getExternalApiSettings)().hideNewThreadLink;t.shouldHideNewThreadLink=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.defaultSettings=void 0;t.getExternalApiSettings=c;var s=i(34),n=i(35),o=i(10),a=i(36);const r=t.defaultSettings={loadImmediately:!0,isFullscreen:!1,inlineEmbedSelector:"",disableAttachment:!1,enableWidgetCookieBanner:!1,identificationEmail:"",identificationToken:"",disableInitialInputFocus:!1,hideScrollToButton:!0,hideNewThreadLink:!1};function d(e){return Object.fromEntries(Object.entries(e).filter((([e,t])=>void 0!==t)))}function c(){const e=window[s.SETTINGS_VARIABLE],t=Object.assign({},r,d(e||{}));(0,n.booleanInvariant)(t.loadImmediately,"mergedSettings.loadImmediately");(0,n.booleanInvariant)(t.isFullscreen,"mergedSettings.isFullscreen");(0,n.booleanInvariant)(t.disableAttachment,"mergedSettings.disableAttachment");(0,n.booleanInvariant)(t.disableInitialInputFocus,"mergedSettings.disableInitialInputFocus");(0,n.booleanInvariant)(t.hideNewThreadLink,"mergedSettings.hideNewThreadLink");(0,a.oneOfListInvariant)(t.enableWidgetCookieBanner,"mergedSettings.enableWidgetCookieBanner",[!1,!0,s.ON_WIDGET_LOAD,s.ON_EXIT_INTENT]);(0,o.stringInvariant)(t.inlineEmbedSelector,"mergedSettings.inlineEmbedSelector");(0,o.stringInvariant)(t.identificationEmail,"mergedSettings.identificationEmail");(0,o.stringInvariant)(t.identificationToken,"mergedSettings.identificationToken");return t}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SETTINGS_VARIABLE=t.ON_WIDGET_LOAD=t.ON_READY_CALLBACKS=t.ON_EXIT_INTENT=t.GLOBAL_VARIABLE=void 0;t.GLOBAL_VARIABLE="HubSpotConversations",t.ON_READY_CALLBACKS="hsConversationsOnReady",t.SETTINGS_VARIABLE="hsConversationsSettings",t.ON_EXIT_INTENT="ON_EXIT_INTENT",t.ON_WIDGET_LOAD="ON_WIDGET_LOAD"},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.booleanInvariant=void 0;var n=s(i(11));const o=(e,t)=>(0,n.default)(!0===e||!1===e,"Expected %s to be a boolean but received a %s",t||e,typeof e);t.booleanInvariant=o},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.oneOfListInvariant=o;var n=s(i(11));function o(e,t,i){(0,n.default)(i.indexOf(e)>-1,`Expected %s to be one of ${i.toString()} but got %s`,t,e)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.urlHasHsChatHashLink=void 0;const i=new RegExp("#hs-chat-open","i"),s=e=>i.test(e);t.urlHasHsChatHashLink=s},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.stringToBoolean=void 0;const i=e=>"true"===e;t.stringToBoolean=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PARENT_ID=t.INLINE_PARENT_ID=t.INLINE_IFRAME_ID=t.IFRAME_ID=void 0;t.PARENT_ID="hubspot-messages-iframe-container",t.INLINE_PARENT_ID="hubspot-conversations-inline-parent",t.INLINE_IFRAME_ID="hubspot-conversations-inline-iframe",t.IFRAME_ID="hubspot-conversations-iframe"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.setupExternalApi=n;var s=i(34);function n(e){window[s.GLOBAL_VARIABLE]=e}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.flushOnReadyCallbacks=n;var s=i(34);function n(e){let{logger:t,trackCallback:i}=e;const n=window[s.ON_READY_CALLBACKS];if(Array.isArray(n)){i&&i();n.forEach((e=>{try{e()}catch(e){e instanceof Error&&t.error(e.message)}}))}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;class i{constructor({debug:e}={}){this._debug=Boolean(e);this.debug=this.debug.bind(this)}_isDebugMode(){return this._debug}debug(e){this._debug=e}log(e){this._isDebugMode()&&console.log(`${i.LOGGING_PREFIX} ${e}`)}error(e){this._isDebugMode()&&console.error(`${i.LOGGING_PREFIX} ${e}`)}}i.LOGGING_PREFIX="HubSpot Conversations log:";t.default=i;e.exports=t.default},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;var n=s(i(44)),o=i(10),a=i(45),r=i(46),d=i(47);class c{constructor(){this._eventEmitter=new n.default;this._namespacedEventType=this._namespacedEventType.bind(this);this.on=this.on.bind(this);this.off=this.off.bind(this);this.trigger=this.trigger.bind(this)}_namespacedEventType(e){return`${r.EVENT_NAMESPACE}:${e}`}on(e,t){(0,o.stringInvariant)(e);(0,a.functionInvariant)(t);if(!e.length)return;const i=this._namespacedEventType(e);this._eventEmitter.addListener(i,t)}off(e,t){(0,o.stringInvariant)(e);(0,a.functionInvariant)(t);if(!e.length)return;const i=this._namespacedEventType(e);this._eventEmitter.removeListener(i,t)}trigger(e,t){(0,d.eventTypeInvariant)(e);const i=this._namespacedEventType(e);this._eventEmitter.emit(i,t)}}t.default=c;e.exports=t.default},function(e){"use strict";t=function(){return function e(t,i,s){function n(a,r){if(!i[a]){if(!t[a]){0;if(o)return o(a,!0);var d=new Error("Cannot find module '"+a+"'");throw d.code="MODULE_NOT_FOUND",d}var c=i[a]={exports:{}};t[a][0].call(c.exports,(function(e){return n(t[a][1][e]||e)}),c,c.exports,e,t,i,s)}return i[a].exports}for(var o=void 0,a=0;a(0,n.default)("function"==typeof e&&null!==e,"Expected %s to be a function",e);t.functionInvariant=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.EVENT_NAMESPACE=void 0;t.EVENT_NAMESPACE="HubSpotConversations"},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.eventTypeInvariant=void 0;var n=s(i(11)),o=r(i(48));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(a=function(e){return e?i:t})(e)}function r(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=a(t);if(i&&i.has(e))return i.get(e);var s={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var r=n?Object.getOwnPropertyDescriptor(e,o):null;r&&(r.get||r.set)?Object.defineProperty(s,o,r):s[o]=e[o]}s.default=e;i&&i.set(e,s);return s}const d=Object.values(o),c=e=>(0,n.default)(-1!==d.indexOf(e),"Expected a valid event type but received %s. Valid event types include %s.",e,d);t.eventTypeInvariant=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.WIDGET_LOADED=t.WIDGET_HIDDEN=t.WIDGET_CLOSED=t.USER_SELECTED_THREAD=t.USER_INTERACTED_WITH_WIDGET=t.UNREAD_CONVERSATION_COUNT_CHANGED=t.SDK_CLOSE_BUTTON_CLICK=t.QUICK_REPLY_BUTTON_CLICK=t.MESSAGE_INPUT_STATE_CHANGED=t.INPUT_TEXT_CHANGED=t.INPUT_STAGING=t.CONVERSATION_STARTED=t.CONVERSATION_CLOSED=t.CONTACT_ASSOCIATED=void 0;t.CONVERSATION_STARTED="conversationStarted",t.CONVERSATION_CLOSED="conversationClosed",t.UNREAD_CONVERSATION_COUNT_CHANGED="unreadConversationCountChanged",t.INPUT_STAGING="inputStaging",t.CONTACT_ASSOCIATED="contactAssociated",t.USER_INTERACTED_WITH_WIDGET="userInteractedWithWidget",t.QUICK_REPLY_BUTTON_CLICK="quickReplyButtonClick",t.WIDGET_LOADED="widgetLoaded",t.WIDGET_CLOSED="widgetClosed",t.USER_SELECTED_THREAD="userSelectedThread",t.WIDGET_HIDDEN="widgetHidden",t.SDK_CLOSE_BUTTON_CLICK="sdkCloseButtonClick",t.MESSAGE_INPUT_STATE_CHANGED="messageInputStateChanged",t.INPUT_TEXT_CHANGED="inputTextChanged"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.handleExternalApiEventMessage=void 0;var s=i(12),n=i(10);const o=({data:e},{eventEmitter:t})=>{(0,n.stringInvariant)(e.eventType);(0,s.objectInvariant)(e.payload);t.trigger(e.eventType,e.payload)};t.handleExternalApiEventMessage=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.WIDGET_WILL_LOAD_CODES=t.EXPECTED_WIDGET_WILL_NOT_LOAD_CODES=void 0;t.fetchWidgetData=h;var s=i(25),n=i(51);const o="X-HubSpot-Messages-Uri",a=4,r=t.WIDGET_WILL_LOAD_CODES=[200,304],d=t.EXPECTED_WIDGET_WILL_NOT_LOAD_CODES=[204,404],c=e=>r.indexOf(e)>-1,l=e=>!c(e)&&d.indexOf(e)<0,u=()=>{};function h({requestUrl:e,portalId:t},i,r=u){const d=new XMLHttpRequest;d.addEventListener("readystatechange",(()=>{if(d.readyState===a)if(c(d.status))try{const e=JSON.parse(d.responseText);i(e)}catch(e){console.warn("Initial messages API response is invalid");r()}else{l(d.status)&&console.warn("Initial messages API call failed");r()}}));d.open("GET",e);const h="about:srcdoc"===window.location.href?window.top.location.href:window.location.href;d.setRequestHeader(o,h);(0,s.isEmbeddedInProduct)({portalId:t})&&(0,n.addAuthToRequest)(d);d.send()}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.addCsrfHeader=t.addAuthToRequest=void 0;var s=i(16),n=i(18);const o=e=>{e.setRequestHeader("X-HubSpot-CSRF-hubspotapi",(0,s.getCookie)(n.cookies.HUBSPOT_API_CSRF))};t.addCsrfHeader=o;const a=e=>{o(e);e.withCredentials=!0};t.addAuthToRequest=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.EVENTS=void 0;t.triggerEvent=s;const i="hubspot:messages:";function s(e,t){let s;const n=`${i}${e}`;if("function"==typeof window.Event)s=Object.assign(new Event(n),t);else{s=Object.assign(document.createEvent("Event"),t);s.initEvent(n,!0,!0)}window.dispatchEvent(s)}t.EVENTS={messagesInitialized:({messageWillRender:e,reason:t})=>{s("initialized",{messageWillRender:e,reason:t})}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.throttle=i;function i(e,t){let i=!1,s=null;return(...n)=>{if(i)s=()=>{e(...n)};else{i=!0;e(...n);setTimeout((()=>{i=!1;"function"==typeof s&&s();s=null}),t)}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getIframeQueryParams=l;var s=i(16),n=i(4),o=i(25),a=i(55),r=i(30),d=i(32),c=i(56);function l({messagesUtk:e,hubspotUtk:t,portalId:i,iframeUuid:l,globalCookieOptOut:u,isFirstVisitorSession:h,hstc:g}){const p=(0,n.isAnyMobile)(),f=(0,d.shouldEmbedInline)(),m=(0,r.shouldWidgetStartOpen)(),E=(0,d.shouldDisableInitialInputFocus)(),_=(0,d.shouldHideNewThreadLink)(),v=f&&E;!f&&E&&console.warn("hsConversationsSettings: the `disableInitialInputFocus` object is only enabled for use when an `inlineEmbedSelector` object is also set");const T={uuid:l,mobile:p,mobileSafari:(0,n.isMobileSafari)(),hideWelcomeMessage:(0,a.shouldHideWelcomeMessage)(),hstc:g,domain:(0,s.getHostnameWithoutWww)(),inApp53:(0,o.isEmbeddedInProduct)({portalId:i}),messagesUtk:e,url:window.location.href,inline:f,isFullscreen:(0,d.shouldBeFullscreen)(),globalCookieOptOut:u,isFirstVisitorSession:h,isAttachmentDisabled:(0,d.shouldDisableAttachment)(),isInitialInputFocusDisabled:v,enableWidgetCookieBanner:(0,d.getEnableWidgetCookieBanner)(),isInCMS:(0,c.isInCMS)(),hideScrollToButton:(0,d.shouldHideScrollToButton)(),isIOSMobile:(0,n.isIOSMobile)()};void 0!==m&&(T.startOpen=m);t&&(T.hubspotUtk=t);_&&(T.hideNewThreadLink=!0);return T}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.shouldHideWelcomeMessage=o;var s=i(16),n=i(18);function o(){return!!(0,s.getCookie)(n.cookies.HIDE_WELCOME_MESSAGE)||!1}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isInCMS=void 0;const i=()=>void 0!==window.hsVars;t.isInCMS=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;var s=i(58),n=i(59),o=i(60),a=i(7);class r{constructor({onScroll:e}){this._onScroll=e;this._handleScroll=this._handleScroll.bind(this);this.add=this.add.bind(this);this.remove=this.remove.bind(this)}_handleScroll(){const e=(0,o.getPageHeight)()-(0,n.getViewportHeight)();if(0===e)return;const t=100*(0,s.getBodyScrollTop)()/e;this._onScroll({scrollPercentage:t})}_add(){window.addEventListener("scroll",this._handleScroll,{capture:!0,passive:!0})}add(){this.remove();this._add()}remove(){window.removeEventListener("scroll",this._handleScroll,{capture:!0})}registerPostMessageReceivers(e){e.register(a.START_TRACK_SCROLL_PERCENTAGE,this.add);e.register(a.STOP_TRACK_SCROLL_PERCENTAGE,this.remove)}}t.default=r;e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getBodyScrollTop=void 0;const i=()=>document.body.scrollTop||document.documentElement.scrollTop;t.getBodyScrollTop=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getViewportHeight=void 0;const i=()=>Math.max(window.innerHeight||0,document.documentElement.clientHeight);t.getViewportHeight=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getPageHeight=void 0;const i=()=>Math.max(document.body.offsetHeight,document.body.scrollHeight);t.getPageHeight=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;var s=i(7);class n{constructor({onExitIntent:e}){this._onExitIntent=e;this._handleMouseOut=this._handleMouseOut.bind(this);this._isExitIntent=this._isExitIntent.bind(this);this.add=this.add.bind(this);this.remove=this.remove.bind(this)}_isExitIntent(e){if(!e)return!1;const t=e.relatedTarget||e.toElement;return(!t||"HTML"===t.nodeName)&&e.clientY<100}_handleMouseOut(e){this._isExitIntent(e)&&this._onExitIntent()}_add(){window.document.addEventListener("mouseout",this._handleMouseOut)}add(){this.remove();this._add()}remove(){window.document.removeEventListener("mouseout",this._handleMouseOut)}addExitIntentTracker(){this.add()}removeExitIntentTracker(){this.remove()}registerPostMessageReceivers(e){e.register(s.START_TRACK_EXIT_INTENT,this.add);e.register(s.STOP_TRACK_EXIT_INTENT,this.remove)}}t.default=n;e.exports=t.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.markEndPostDelay=n;t.markEndPreDelay=o;var s=i(63);function n(){try{performance.mark(s.END_MARK_POST_DELAY)}catch(e){}}function o(){try{performance.mark(s.END_MARK_PRE_DELAY)}catch(e){}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.START_MARK_PRE_DELAY=t.START_MARK_POST_DELAY=t.EXECUTION_MEASUREMENT_PRE_DELAY=t.EXECUTION_MEASUREMENT_POST_DELAY=t.END_MARK_PRE_DELAY=t.END_MARK_POST_DELAY=void 0;t.START_MARK_PRE_DELAY="embed-script-start-pre-delay",t.END_MARK_PRE_DELAY="embed-script-end-pre-delay",t.START_MARK_POST_DELAY="embed-script-start-post-delay",t.END_MARK_POST_DELAY="embed-script-end-post-delay",t.EXECUTION_MEASUREMENT_POST_DELAY="embed-script-load-time-post-delay",t.EXECUTION_MEASUREMENT_PRE_DELAY="embed-script-load-time-pre-delay"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.setClassInClassList=void 0;var s=i(65),n=i(22);const o={[s.LEFT_ALIGNED]:n.ALIGNED_LEFT_CLASS,[s.RIGHT_ALIGNED]:n.ALIGNED_RIGHT_CLASS},a=({widgetLocation:e,classList:t})=>{const i=o[e];if(t.contains(i))return;Object.keys(o).filter((t=>t!==e)).forEach((e=>{t.remove(e)}));t.add(i)};t.setClassInClassList=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.RIGHT_ALIGNED=t.LEFT_ALIGNED=void 0;t.LEFT_ALIGNED="LEFT_ALIGNED",t.RIGHT_ALIGNED="RIGHT_ALIGNED"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.WIDGET_LOCATION=void 0;t.WIDGET_LOCATION="widgetLocation"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.resetAndLaunchWidget=void 0;var s=i(19),n=i(1),o=i(68);const a=()=>{(0,s.clearCookies)();window[o.USER_TOKEN_KEY]="";window.hubspot_live_messages_running=!1;(0,n.startOnceReady)()};t.resetAndLaunchWidget=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.USER_TOKEN_KEY=void 0;t.USER_TOKEN_KEY="__hsUserToken"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ApiUsageTracker=void 0;var s=i(8);class n{constructor({postMessageToIframe:e}){if("function"!=typeof e)throw new TypeError("ApiUsageTracker: postMessageToIframe was not a function");this._postMessageToIframe=e;this.sendEventToTracker=this.sendEventToTracker.bind(this);this.trackSettingsUsed=this.trackSettingsUsed.bind(this);this.trackMethod=this.trackMethod.bind(this);this.trackEventListener=this.trackEventListener.bind(this);this.trackOnReady=this.trackOnReady.bind(this)}sendEventToTracker(e,t={}){this._postMessageToIframe(s.TRACK_API_USAGE,{eventName:e,properties:t})}trackSettingsUsed(e){const t={};!1===e.loadImmediately&&(t.loadImmediately=!0);e.inlineEmbedSelector&&(t.inlineEmbedSelector=!0);e.enableWidgetCookieBanner&&(t.enableWidgetCookieBanner=!0);e.disableAttachment&&(t.disableAttachment=!0);e.disableInitialInputFocus&&(t.disableInitialInputFocus=!0);Object.keys(t).length>0&&this.sendEventToTracker("HubspotConversations-hsConversationsSettings-used",t)}trackMethod(e){this.sendEventToTracker("HubspotConversations-api-method-used",{method:e})}trackEventListener(e){this.sendEventToTracker("HubspotConversations-api-event-listener-registered",{event:e})}trackOnReady(){this.sendEventToTracker("HubspotConversations-hsConversationsOnReady-used",{method:"hsConversationsOnReady"})}}t.ApiUsageTracker=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PostMessageApiClient=void 0;var s=i(71),n=i(8);class o{constructor(e){this.makeApiRequest=({data:e})=>{const{type:t,url:i,data:o}=e,a=`/_hcms${i}`;this.currentRequest&&this.currentRequest.readyState!==s.DONE_STATE&&this.abortCurrentApiRequest();this.currentRequest=(0,s.doRequest)(t)(a,o)(((e,t)=>{t?this.postMessage(n.API_REQUEST_RESULT,{result:"failed",data:t,url:i}):this.postMessage(n.API_REQUEST_RESULT,{result:"succeeded",data:e,url:i})}))};this.postMessage=e;this.currentRequest=null}abortCurrentApiRequest(){this.currentRequest&&this.currentRequest.abort()}}t.PostMessageApiClient=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.put=t.post=t.get=t.doRequest=t.DONE_STATE=void 0;const i=t.DONE_STATE=4,s=e=>e>=300,n=e=>(t,n)=>o=>{const a=new XMLHttpRequest;a.addEventListener("readystatechange",(()=>{if(a.readyState===i)try{const e=JSON.parse(a.responseText);s(a.status)?o(null,e):o(e)}catch(e){o(null,"Invalid api response")}}));a.open(e,t);a.send(n);return a};t.doRequest=n;t.get=n("GET"),t.post=n("POST"),t.put=n("PUT")},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.sendWidgetDataToIframe=void 0;var s=i(73),n=i(33),o=i(54),a=i(8);const r=({source:e,widgetData:t,embedScriptContext:i,apiUsageTracker:r})=>{const{notificationAudio:d}=(0,n.getExternalApiSettings)();e.postMessage(JSON.stringify({type:a.WIDGET_DATA,data:Object.assign({},t,(0,o.getIframeQueryParams)(i),{notificationAudio:d})}),"*");(0,s.throttleInProductInitialMessagePopups)(i);r.trackSettingsUsed((0,n.getExternalApiSettings)())};t.sendWidgetDataToIframe=r},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.throttleInProductInitialMessagePopups=c;var n=i(16),o=i(18),a=s(i(17)),r=i(25),d=i(55);function c({portalId:e}){(0,r.isEmbeddedInProduct)({portalId:e})&&!(0,d.shouldHideWelcomeMessage)()&&(0,n.setCookie)(o.cookies.HIDE_WELCOME_MESSAGE,!0,a.default.ONE_DAY)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.registerCookieListeners=void 0;var s=i(8),n=i(18),o=i(20);const a=({postMessageToIframe:e})=>{const t=t=>{const i=t.categories?t.categories.functionality:t.allowed,a=i?n.cookieValues.GLOBAL_COOKIE_OPT_OUT_NO:n.cookieValues.GLOBAL_COOKIE_OPT_OUT_YES;e(s.GLOBAL_COOKIE_OPT_OUT,{globalCookieOptOut:a});i||(0,o.deleteCookie)(n.cookies.MESSAGES)};window._hsq=window._hsq||[];window._hsq.push(["addPrivacyConsentListener",t]);window._hsq.push(["addUserTokenListener",t=>e(s.HUBSPOT_UTK,{utk:t})])};t.registerCookieListeners=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.registerHashChangeListener=void 0;var s=i(37);const n=({requestWidgetOpen:e,isOpen:t})=>{window.addEventListener("hashchange",(()=>{(0,s.urlHasHsChatHashLink)(window.location.href)&&!t&&e()}))};t.registerHashChangeListener=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.registerWindowResizeListener=void 0;const i=({resizeCallbackFn:e})=>{window.addEventListener("resize",e,{passive:!0})};t.registerWindowResizeListener=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.iframeMessagePool=t.createQueue=void 0;var s=i(78),n=i(79),o=i(80);const a=()=>{const e=[];return{enqueue:t=>e.unshift(t),dequeue:()=>e.shift(),peek:()=>e[0]}};t.createQueue=a;const r=({iframeSrc:e})=>{const t=a();return{post:(i,a={})=>{var r;const d=(0,s.getIframeFromDocumentQuery)(),c="about:blank"===(null==d||null===(r=d.contentDocument)||void 0===r?void 0:r.URL);if(!d||c)t.enqueue({type:i,data:a});else{(0,n.postMessageToIframe)({iframe:d,iframeSrc:e,type:i,data:a});(0,o.executeAllIframeMessageQueueEvents)({iframe:d,iframeSrc:e,eventQueue:t})}}}};t.iframeMessagePool=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getIframeFromDocumentQuery=void 0;var s=i(32),n=i(39);const o=()=>{const e=(0,s.shouldEmbedInline)()?(0,s.getInlineEmbedSelector)():`#${n.PARENT_ID}`;return document.querySelector(`${e} iframe`)};t.getIframeFromDocumentQuery=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.postMessageToIframe=void 0;const i=({iframe:e,iframeSrc:t,type:i,data:s})=>{var n;let o;try{o=null==e?void 0:e.contentWindow}catch(t){o=null==e?void 0:e.contentWindow}return null===(n=o)||void 0===n?void 0:n.postMessage(JSON.stringify({type:i,data:s}),t)};t.postMessageToIframe=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.executeAllIframeMessageQueueEvents=void 0;var s=i(79);const n=({iframe:e,iframeSrc:t,eventQueue:i})=>{do{const n=i.dequeue();if(n){const{type:i,data:o}=n;(0,s.postMessageToIframe)({iframe:e,iframeSrc:t,type:i,data:o})}}while(i.peek()&&0!==Object.keys(i.peek()).length)};t.executeAllIframeMessageQueueEvents=n},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.hideWelcomeMessage=void 0;var n=i(18),o=i(16),a=s(i(17));const r=()=>{(0,o.setCookie)(n.cookies.HIDE_WELCOME_MESSAGE,!0,a.default.ONE_DAY)};t.hideWelcomeMessage=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.resizeWidgetIframe=void 0;var s=i(39);const n=({height:e,width:t})=>{const i=document.getElementById(s.PARENT_ID);if(i&&t&&e){i.style.width=`${t}px`;i.style.height=`${e}px`}};t.resizeWidgetIframe=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.handleTargetingAndDelay=void 0;var s=i(4),n=i(15),o=i(23),a=i(84),r=i(52),d=i(62),c=i(85);const l=(e,t,i)=>l=>{const u=!((0,n.getWidgetDataResponseType)(l)===o.HIDE_WIDGET)&&!!l.sessionId;if(u){const{shouldDelayLoadingIframe:i,timeDelay:n}=(0,a.getDelayLoadingWidgetIframe)(l,(0,s.isAnyMobile)());(0,d.markEndPreDelay)();if(i)setTimeout((()=>{e(l);(0,c.markStartPostDelay)();t()}),n);else{e(l);(0,c.markStartPostDelay)();t()}}else{const{description:e,reason:t}=l.metadata||{};i({description:e,reason:t})}r.EVENTS.messagesInitialized({messageWillRender:u})};t.handleTargetingAndDelay=l},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getDelayLoadingWidgetIframe=void 0;const i=(e,t)=>{const{message:i}=e,{popOpenWelcomeMessage:s,popOpenWidget:n,popMessageOnSmallScreens:o,clientTriggers:a}=i,{displayOnTimeDelay:r}=a,{enabled:d,timeDelaySeconds:c}=r,l=1e3*c;return t?{shouldDelayLoadingIframe:!o&&d&&!window.ONLY_53_DISPLAY_LAUNCHER_ON_MOBILE,timeDelay:l}:{shouldDelayLoadingIframe:!n&&!s&&d,timeDelay:l}};t.getDelayLoadingWidgetIframe=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.markStartPostDelay=o;t.markStartPreDelay=n;var s=i(63);function n(){try{performance.mark(s.START_MARK_PRE_DELAY)}catch(e){}}function o(){try{performance.mark(s.START_MARK_POST_DELAY)}catch(e){}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getGlobalCookieOptOut=o;var s=i(16),n=i(18);function o(){return(0,s.getCookie)(n.cookies.GLOBAL_COOKIE_OPT_OUT)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ON_WIDGET_LOAD=t.ON_EXIT_INTENT=t.NEVER=void 0;t.NEVER="NEVER",t.ON_WIDGET_LOAD="ON_WIDGET_LOAD",t.ON_EXIT_INTENT="ON_EXIT_INTENT"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ScreenCapturePlugin=void 0;var s=i(39),n=i(8);class o{constructor(e){this.setWidgetVisibility=e=>{const t=document.getElementById(s.PARENT_ID);t&&t.style.setProperty("opacity",e?"1":"0")};this.captureScreenshot=async()=>{try{const e=await navigator.mediaDevices.getDisplayMedia({preferCurrentTab:!0,video:{displaySurface:"browser"}}),t=document.createElement("video");t.srcObject=e;await t.play();const i=document.createElement("canvas");i.width=t.videoWidth;i.height=t.videoHeight;const s=i.getContext("2d");s&&s.drawImage(t,0,0,i.width,i.height);e.getTracks().forEach((e=>e.stop()));return i.toDataURL("image/png")}catch(e){this.widgetShell.devLogger.error(e instanceof Error?e.message:"Unknown error")}};this.handleScreenCaptureRequest=async()=>{this.setWidgetVisibility(!1);const e=await this.captureScreenshot();if(e){const t=`${document.title}-${Date.now()}.png`;this.widgetShell.iframeMessage.post(n.SCREEN_CAPTURE_BLOB,{dataUrl:e,fileName:t})}this.setWidgetVisibility(!0)};this.widgetShell=e}}t.ScreenCapturePlugin=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.WHITE=t.THUNDERDOME_MEDIUM=t.THUNDERDOME_LIGHT=t.THUNDERDOME_DARK=t.THUNDERDOME=t.SLINKY=t.PANTERA=t.OZ_MEDIUM=t.OZ_LIGHT=t.OZ_DARK=t.OZ=t.OLAF=t.OBSIDIAN=t.NORMAN_MEDIUM=t.NORMAN_LIGHT=t.NORMAN_DARK=t.NORMAN=t.NEUTRAL_900=t.NEUTRAL_800=t.NEUTRAL_700=t.NEUTRAL_600=t.NEUTRAL_500=t.NEUTRAL_400=t.NEUTRAL_300=t.NEUTRAL_200=t.NEUTRAL_1600=t.NEUTRAL_1500=t.NEUTRAL_1400=t.NEUTRAL_1300=t.NEUTRAL_1200=t.NEUTRAL_1100=t.NEUTRAL_1000=t.NEUTRAL_100=t.MARIGOLD_MEDIUM=t.MARIGOLD_LIGHT=t.MARIGOLD_DARK=t.MARIGOLD=t.KOALA=t.HEFFALUMP=t.GYPSUM=t.GREAT_WHITE=t.FLINT=t.EERIE=t.CIRRUS=t.CHART_RED=t.CHART_ORANGE=t.CHART_GREEN=t.CANDY_APPLE=t.CALYPSO_MEDIUM=t.CALYPSO_LIGHT=t.CALYPSO_DARK=t.CALYPSO=t.BUTTON_DISABLED_TEXT=t.BATTLESHIP=void 0;t.OLAF="#ffffff",t.GYPSUM="#f5f8fa",t.KOALA="#eaf0f6",t.GREAT_WHITE="#dfe3eb";const i=t.BATTLESHIP="#cbd6e2";t.FLINT="#99acc2",t.EERIE="#7c98b6",t.SLINKY="#516f90",t.HEFFALUMP="#425b76",t.PANTERA="#2d3e50",t.CALYPSO="#00a4bd",t.CALYPSO_DARK="#0091ae",t.CALYPSO_MEDIUM="#7fd1de",t.CALYPSO_LIGHT="#e5f5f8",t.OBSIDIAN="#33475b",t.CIRRUS="#f2f5f8",t.NORMAN="#f2547d",t.NORMAN_DARK="#d94c71",t.NORMAN_MEDIUM="#f9aabe",t.NORMAN_LIGHT="#fdedf2",t.CANDY_APPLE="#f2545b",t.OZ="#00bda5",t.OZ_DARK="#00a38d",t.OZ_MEDIUM="#7fded2",t.OZ_LIGHT="#e5f8f6",t.BUTTON_DISABLED_TEXT=i,t.CHART_GREEN="#a2d28f",t.CHART_ORANGE="#fea58e",t.CHART_RED="#ea90b1",t.MARIGOLD="#f5c26b",t.MARIGOLD_DARK="#dbae60",t.MARIGOLD_MEDIUM="#fae0b5",t.MARIGOLD_LIGHT="#fef8f0",t.THUNDERDOME="#6a78d1",t.THUNDERDOME_DARK="#5e6ab8",t.THUNDERDOME_MEDIUM="#b4bbe8",t.THUNDERDOME_LIGHT="#f0f1fa",t.WHITE="#ffffff",t.NEUTRAL_100="#f8f7f6",t.NEUTRAL_200="#f5f3f2",t.NEUTRAL_300="#efedeb",t.NEUTRAL_400="#e7e5e4",t.NEUTRAL_500="#cfcccb",t.NEUTRAL_600="#b6b1af",t.NEUTRAL_700="#9b9897",t.NEUTRAL_800="#676565",t.NEUTRAL_900="#4d4c4c",t.NEUTRAL_1000="#333333",t.NEUTRAL_1100="#292929",t.NEUTRAL_1200="#242424",t.NEUTRAL_1300="#1f1f1f",t.NEUTRAL_1400="#1c1c1c",t.NEUTRAL_1500="#171717",t.NEUTRAL_1600="#141414"},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.loadWidgetCss=o;var n=s(i(91));function o(e){const{hsConversationsSettings:t}=window;if(null!=t&&t.avoidInlineStyles){const t=e.createElement("link");t.setAttribute("rel","stylesheet");t.setAttribute("type","text/css");t.setAttribute("href",n.default.replace(".sass",".css"));e.head.appendChild(t);return}const s=i(92),o=e.createElement("style");o.setAttribute("type","text/css");const a=document.createTextNode(s);o.appendChild(a);e.head.appendChild(o)}},function(e,t){e.exports="//static.hsappstatic.net/conversations-embed/static-1.24626/sass/messagesWidgetShell.sass"},function(e){e.exports='html.hs-messages-widget-open.hs-messages-mobile,html.hs-messages-widget-open.hs-messages-mobile body{overflow:hidden!important;position:relative!important}html.hs-messages-widget-open.hs-messages-mobile body{height:100%!important;margin:0!important}#hubspot-messages-iframe-container{display:initial!important;z-index:2147483647;position:fixed!important;bottom:0!important}#hubspot-messages-iframe-container:hover .hs-drag-handle--v2--widget-open--left,#hubspot-messages-iframe-container:hover .hs-drag-handle--v2--widget-open--right{display:flex!important}#hubspot-messages-iframe-container.widget-align-left{left:0!important}#hubspot-messages-iframe-container.widget-align-right{right:0!important}#hubspot-messages-iframe-container.internal{z-index:1016}#hubspot-messages-iframe-container.internal iframe{min-width:108px}#hubspot-messages-iframe-container .hs-shadow-container{display:initial!important;z-index:-1;position:absolute;width:0;height:0;bottom:0;content:""}#hubspot-messages-iframe-container .hs-shadow-container.internal{display:none!important}#hubspot-messages-iframe-container .hs-shadow-container.active{width:400px;height:400px}#hubspot-messages-iframe-container iframe{display:initial!important;width:100%!important;height:100%!important;border:none!important;position:absolute!important;bottom:0!important;right:0!important;background:transparent!important}#hubspot-messages-iframe-container .hs-drag-handle--v2--widget-open--right{bottom:20px;left:-5px;display:none!important}#hubspot-messages-iframe-container .hs-drag-handle--v2--widget-open--left{bottom:20px;right:-5px;display:none!important}.hs-drag-handle{position:absolute;cursor:grab;height:60px;display:none;align-items:center;transition:opacity .5s ease;transition-delay:.5s;opacity:1}.hs-drag-handle--v1--right{right:82px;bottom:16px}.hs-drag-handle--v1--left{left:82px;bottom:16px}.hs-drag-handle--v2--icon-launcher--right{bottom:23px;left:15px}.hs-drag-handle--v2--icon-launcher--left{bottom:23px;right:15px}.hs-drag-handle--v2--ask-me-anything-launcher--right{bottom:20px;left:10px}.hs-drag-handle--v2--ask-me-anything-launcher--left{bottom:20px;right:10px}.hs-drag-handle--v2--hidden--left,.hs-drag-handle--v2--hidden--right{opacity:0!important;pointer-events:none!important;transition:none!important}.hs-drag-overlay{position:absolute;top:0;left:0;right:0;bottom:0;user-select:none;z-index:999;display:none}'},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.createEmbedScriptContext=c;var n=i(94),o=i(95),a=i(102),r=s(i(103)),d=i(32);function c(){var e;const{messagesEnv:t,portalId:i,messagesHublet:s}=(0,a.getScriptEnvParams)();let c=!1;try{c=localStorage&&"true"===localStorage["live-chat-local-toggle"]}catch(e){}const l=(null===(e=window)||void 0===e||null===(e=e.messagesConfig)||void 0===e?void 0:e.iFrameDomain)||"",u=(0,n.getUuid)(),h=encodeURIComponent(document.referrer),{messagesUtk:g,hubspotUtk:p,hstc:f,hssc:m,globalCookieOptOut:E,isFirstVisitorSession:_}=(0,o.prepareVisitorIdentifiers)();return new r.default({messagesHublet:s,globalCookieOptOut:E,hubspotUtk:p,hstc:f,hssc:m,iFrameDomainOverride:l,iframeUuid:u,isFirstVisitorSession:_,messagesEnv:t,messagesUtk:g,referrer:h,portalId:i,useLocalBuild:c,identificationEmail:(0,d.getIdentificationEmail)(),identificationToken:(0,d.getIdentificationToken)()})}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getUuid=n;function i(){let e=(new Date).getTime();return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(t=>{const i=(e+16*Math.random())%16|0;e=Math.floor(e/16);return("x"===t?i:3&i|8).toString(16)}))}function s(){const e=window.crypto||window.msCrypto,t=new Uint16Array(8);e.getRandomValues(t);const i=e=>{let t=e.toString(16);for(;t.length<4;)t=`0${t}`;return t};return i(t[0])+i(t[1])+i(t[2])+i(t[3])+i(t[4])+i(t[5])+i(t[6])+i(t[7])}function n(){var e;const t=window.crypto||window.msCrypto;return null==t||!t.getRandomValues||null!==(e=window)&&void 0!==e&&e.Uint16Array?i():s()}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.prepareVisitorIdentifiers=void 0;var s=i(96),n=i(97),o=i(99),a=i(86),r=i(100),d=i(101),c=i(24);const l=()=>{const e=(0,n.getMessagesUtkFromCookie)();e&&(0,c.setMessagesUtk)(e);const t=(0,o.getHubSpotUtkFromCookie)(),i=(0,r.getHstcFromCookie)(),l=(0,d.getHsscFromCookie)(),u=(0,a.getGlobalCookieOptOut)(),{messagesUtk:h,isFirstVisitorSession:g}=(0,s.chooseMessagesUtk)({existingMessagesUtk:e});return{messagesUtk:h,hubspotUtk:t,hstc:i,hssc:l,globalCookieOptOut:u,isFirstVisitorSession:g}};t.prepareVisitorIdentifiers=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.chooseMessagesUtk=n;var s=i(94);function n({existingMessagesUtk:e}={}){let t,i=!1;if(e)t=e;else{i=!0;t=(0,s.getUuid)()}return{messagesUtk:t,isFirstVisitorSession:i}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getMessagesUtkFromCookie=a;var s=i(16),n=i(98),o=i(18);function a(){const e=(0,s.getCookie)(o.cookies.MESSAGES);return(0,n.isUtk)(e)?e:void 0}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.UTK_REGEX=void 0;t.isUtk=s;const i=t.UTK_REGEX=/[a-zA-Z\d]{32}/;function s(e){return i.test(e)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getHubSpotUtkFromCookie=o;var s=i(18),n=i(16);function o(){return(0,n.getCookie)(s.cookies.HUBSPOT)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getHstcFromCookie=o;var s=i(18),n=i(16);function o(){return(0,n.getCookie)(s.cookies.HSTC)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getHsscFromCookie=o;var s=i(18),n=i(16);function o(){return(0,n.getCookie)(s.cookies.HSSC)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getPortalId=t.getMessagesHublet=t.getMessagesEnv=t.getIsLocal=void 0;t.getScriptEnvParams=a;const i=()=>{const e=document.getElementById("hubspot-messages-loader");return parseInt(e.getAttribute("data-hsjs-portal"),10)};t.getPortalId=i;const s=()=>document.getElementById("hubspot-messages-loader").getAttribute("data-hsjs-env");t.getMessagesEnv=s;const n=()=>document.getElementById("hubspot-messages-loader").getAttribute("data-hsjs-hublet");t.getMessagesHublet=n;const o=()=>"true"===document.getElementById("hubspot-messages-loader").getAttribute("data-hsjs-local");t.getIsLocal=o;function a(){return{ungatedFor:document.getElementById("hubspot-messages-loader").getAttribute("ungated-for"),portalId:i(),messagesEnv:s(),messagesHublet:n(),isLocal:o()}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=t.EmbedScriptContext=void 0;var s=i(104),n=i(10),o=i(25),a=i(105),r=i(114),d=i(54),c=i(56),l=i(115),u=i(32),h=i(119),g=i(106),p=i(110);class f{constructor(e){const{globalCookieOptOut:t,hubspotUtk:i,hstc:o,hssc:a,iFrameDomainOverride:r,iframeUuid:d,isFirstVisitorSession:c,messagesEnv:l,messagesUtk:u,referrer:h,portalId:g,useLocalBuild:f,identificationEmail:m,identificationToken:E,messagesHublet:_}=e;(0,n.stringInvariant)(d,"iframeUuid");(0,n.stringInvariant)(l,"messagesEnv");(0,n.stringInvariant)(u,"messagesUtk");(0,s.numberInvariant)(g,"portalId");this.globalCookieOptOut=t;this.hubspotUtk=i;this.hstc=o;this.hssc=a;this.iFrameDomainOverride=r;this.iframeUuid=d;this.isFirstVisitorSession=c;this.messagesEnv=l;this.messagesUtk=u;this.referrer=h;this.portalId=g;this.useLocalBuild=f;this.identificationEmail=m;this.identificationToken=E;this.messagesHublet=_||p.na1;this.getIFrameDomain=this.getIFrameDomain.bind(this);this.getIFrameSrc=this.getIFrameSrc.bind(this);this.getInitialRequestUrl=this.getInitialRequestUrl.bind(this)}getIFrameDomain(){return this.iFrameDomainOverride?this.iFrameDomainOverride:(0,g.getFullUrl)(this.useLocalBuild?"local":"app",{envOverride:this.messagesEnv,hubletOverride:this.messagesHublet})}getIFrameSrc(){const e=(0,r.serializeQueryParameters)((0,d.getIframeQueryParams)({messagesUtk:this.messagesUtk,hubspotUtk:this.hubspotUtk,portalId:this.portalId,iframeUuid:this.iframeUuid,globalCookieOptOut:this.globalCookieOptOut,isFirstVisitorSession:this.isFirstVisitorSession,hstc:this.hstc}));return`${this.getIFrameDomain()}/conversations-visitor/${this.portalId}/threads/utk/${this.messagesUtk}?${e}`}getEncodedIdentificationEmail(){let e=this.identificationEmail;e.includes("@")||(e=decodeURIComponent(e));return encodeURIComponent(e)}getInitialRequestUrl(e){if(e){this.identificationEmail=(0,u.getIdentificationEmail)();this.identificationToken=(0,u.getIdentificationToken)()}if((0,c.isInCMS)())return(0,a.getCMSRequestUrl)({messagesUtk:this.messagesUtk,hubspotUtk:this.hubspotUtk,portalId:this.portalId,referrer:this.referrer,hstc:this.hstc,hssc:this.hssc,email:this.identificationEmail&&this.getEncodedIdentificationEmail(),identificationToken:this.identificationToken});if((0,o.isEmbeddedInProduct)({portalId:this.portalId}))return(0,a.getInternalRequestUrl)({messagesHublet:this.messagesHublet,messagesEnv:this.messagesEnv,messagesUtk:this.messagesUtk,portalId:this.portalId});return((0,h.isInSDK)()?a.getPublicRequestUrlForMobileSDK:a.getPublicRequestUrl)({messagesHublet:this.messagesHublet,messagesEnv:this.messagesEnv,messagesUtk:this.messagesUtk,hubspotUtk:this.hubspotUtk,portalId:this.portalId,referrer:this.referrer,hstc:this.hstc,hssc:this.hssc,email:this.identificationEmail&&this.getEncodedIdentificationEmail(),identificationToken:this.identificationToken})}getPerfAttributes(){const e=(0,l.getPerfAttributes)({portalId:this.portalId,messagesEnv:this.messagesEnv});if((0,u.shouldLoadImmediately)()&&e)return e}}t.EmbedScriptContext=f;t.default=f},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.numberInvariant=void 0;var n=s(i(11));const o=(e,t="")=>(0,n.default)("number"==typeof e,"Expected %s to be a number, not a %s",t||e,typeof e);t.numberInvariant=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getCMSRequestUrl=l;t.getInternalRequestUrl=d;t.getPublicRequestUrl=u;t.getPublicRequestUrlForMobileSDK=h;var s=i(106),n=i(112),o=i(113),a=i(27),r=i(4);function d({messagesEnv:e,portalId:t,messagesUtk:i,messagesHublet:n}){const o=(0,a.getPortalIdFromPath)(window.location.pathname);return`${(0,s.getFullUrl)("api",{envOverride:e,hubletOverride:n})}/livechat/v1/message/public/hubspot-app?portalId=${o}&mobile=${(0,r.isAnyMobile)()}&embeddedPortalId=${t}&traceId=${i}`}function c({messagesUtk:e,hubspotUtk:t,portalId:i,referrer:s,hstc:o,hssc:a,email:d,identificationToken:c}){let l=`?portalId=${i}&${n.bender.project}=${n.bender.depVersions[n.bender.project]}&mobile=${(0,r.isAnyMobile)()}`;e&&(l=`${l}&messagesUtk=${e}&traceId=${e}`);t&&(l=`${l}&hubspotUtk=${t}`);o&&(l=`${l}&__hstc=${o}`);a&&(l=`${l}&__hssc=${a}`);s&&(l=`${l}&referrer=${s}`);c&&(l=`${l}&identificationToken=${c}`);d&&(l=`${l}&email=${d}`);return l}function l({messagesUtk:e,hubspotUtk:t,portalId:i,referrer:s,hstc:n,hssc:o,email:a,identificationToken:r}){return`/_hcms/livechat/widget${c({messagesUtk:e,hubspotUtk:t,portalId:i,referrer:s,hstc:n,hssc:o,email:a,identificationToken:r})}`}function u({messagesHublet:e,messagesEnv:t,messagesUtk:i,hubspotUtk:n,portalId:o,referrer:a,hstc:r,hssc:d,email:l,identificationToken:u}){return`${(0,s.getFullUrl)("api",{envOverride:t,hubletOverride:e})}/livechat-public/v1/message/public${c({messagesUtk:i,hubspotUtk:n,portalId:o,referrer:a,hstc:r,hssc:d,email:l,identificationToken:u})}`}function h({messagesHublet:e,messagesEnv:t,messagesUtk:i,hubspotUtk:n,portalId:a,referrer:r,hstc:d,hssc:l,email:u,identificationToken:h}){return`${(0,s.getFullUrl)("api",{envOverride:t,hubletOverride:e})}/livechat-public/v1/message/public/mobile${c({messagesUtk:i,hubspotUtk:n,portalId:a,referrer:r,hstc:d,hssc:l,email:u,identificationToken:h})}&chatflow=${(0,o.getChatflowTagFromQueryParams)()}`}},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.getFullUrl=a;t.getFullUrlWithCurrentSubDomain=r;var n=s(i(107)),o=i(108);function a(e,t){return`https://${(0,o.getSubDomain)(e,t)}.${(0,o.getDomain)(t)}.${(0,o.getTld)(t)}${(0,o.getPathPrefix)(e)}`}function r(){return a(n.default.deployed()?"app":"local")}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;const i=["api","local","app","private","platform","tools","meetings","payments","mcp"],s=["hubspotstarter","hubspotfree","hubspotemail"],n=["growth"],o={com:["hubspot","hubteam","grader","getsignals","getsidekick","gettally","hubspotemail","customer-hub","hubspotservicehub","hubspotquote","hubspotdocuments","hs-data-privacy"].join("|"),net:s.join("|"),org:n.join("|")},a=function e(t){const s=new RegExp(`^(?!local|test|selenium)(.*\\.)?(${Object.entries(o).map((([e,t])=>`(?:${t})(qa)?\\.${e}`)).join("|")}|(?:connect)\\.com|(?:connect)(qa)\\.co|wthubspot\\.(com|de|es|fr|jp))$`).test(t.hostname),n=new RegExp(`${Object.entries(o).map((([e,t])=>`(?:${t})qa\\.${e}`)).join("|")}|(?:connect)qa\\.co|wthubspot\\.(com|de|es|fr|jp)|hsqa-sales(?:crm)?-sub\\.com|(?:hubspotstarter|hubspotfree|hubspotemail)(qa)(?:-.*)\\.net|(?:hubspotemail)(qa)(?:-.*)\\.com`),a=[new RegExp(`^(?:${i.join("|")})-(.*).(?:hubspot|hubteam)(?:qa)?.com`),new RegExp("^(.*).(?:hubspotquote)(?:qa)?.com"),new RegExp("^app-(.*).(?:hubspotdocuments)(?:qa)?.com"),new RegExp("^(?:[0-9]+).(.*).hs(?:qa)?-sales(?:crm)?-sub.com"),new RegExp("^hs-(?:[0-9]+).s.(?:hubspotfree|hubspotstarter|hubspotemail)(?:qa)?-(.*).net"),new RegExp("^hs-(?:[0-9]+).s.(?:hubspotemail)(?:qa)?-(.*).com"),new RegExp("^t.sidekickopen(?:\\d)+-([a-z]+[0-9]).com"),new RegExp("^([a-z]+[0-9]).hs-data-privacy(?:qa)?.com")],r="ENV",d="Enviro error: the default argument for .get and .getShort is no longer supported",c=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},l=()=>{const e=c(r);return e||(n.test(t.host)?"qa":"prod")},u=(e,t)=>{window[e]=t;return t},h={prod:"production",qa:"development"},g=e=>{if("string"==typeof e){const t=e.toLowerCase();return h[t]||t}return e},p=e=>{e="string"==typeof e?e.toLowerCase():void 0;return Object.keys(h).find((t=>e===h[t]))||e},f=(e,t)=>{if(null!=t)throw new Error(d);let i=null;if(e){const t=e.split(".").reverse();for(let e=0;e{if(null!=t)throw new Error(d);return p(f(e))},_=E,v=e=>"prod"===_(e),T=e=>"qa"===_(e),I=()=>{const e=c("HUBLET");if(e)return e;for(const e of a)if(e.test(t.hostname))return e.exec(t.hostname)[1];return"na1"};function b({isNa1:e,isNonNa1:t},i){i||(i=I());return"na1"===i?"function"==typeof e?e(i):void 0:"function"==typeof t?t(i):void 0}return{createEnviro:e,debug:(e,t=!1)=>{let i;"string"==typeof e&&(i=c(`${e.toUpperCase()}_DEBUG`));null==i&&(i=c("DEBUG"));return null==i?t:i},denormalize:p,deployed:e=>{let t;"string"==typeof e&&(t=c(`${e.toUpperCase()}_DEPLOYED`));null==t&&(t=c("DEPLOYED"));return null==t?s:!!t},enabled:(e,t=!1)=>{let i=c(`${e.toUpperCase()}_ENABLED`);null==i&&(i=JSON.stringify(t));return"true"===`${i}`.toLowerCase()},get:f,getHublet:I,getInternal:E,getShort:_,isProd:v,isQa:T,ifHublet:b,normalize:g,set:m,setDebug:(e,t=!0)=>{if("string"==typeof e)try{t?localStorage.setItem(`${e.toUpperCase()}_DEBUG`,JSON.stringify(!0)):localStorage.removeItem(`${e.toUpperCase()}_DEBUG`)}catch(i){u(`${e.toUpperCase()}_DEBUG`,t||void 0)}else{t=null==e||e;try{t?localStorage.setItem("DEBUG",JSON.stringify(t)):localStorage.removeItem("DEBUG")}catch(e){u("DEBUG",t||void 0)}}}}};t.default=a(document.location);e.exports=t.default},function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.getDomain=h;t.getDomainPrefix=p;t.getEnvPostfix=g;t.getHubletDomainPostfix=f;t.getHubletPostfix=l;t.getPathPrefix=E;t.getSubDomain=u;t.getTld=m;var n=s(i(107)),o=r(i(109));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(a=function(e){return e?i:t})(e)}function r(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=a(t);if(i&&i.has(e))return i.get(e);var s={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var r=n?Object.getOwnPropertyDescriptor(e,o):null;r&&(r.get||r.set)?Object.defineProperty(s,o,r):s[o]=e[o]}s.default=e;i&&i.set(e,s);return s}function d(e){return e&&e.hubletOverride?e.hubletOverride:n.default.getHublet()}function c(e){return e&&e.envOverride?e.envOverride:n.default.getShort()}function l(e){const t=d(e);return o.getHubletPostfix(t,e)}function u(e,t){const i=d(t);return o.getSubDomain(i,e,t)}function h(e){const t=d(e),i=c(e);return o.getDomain(t,i,e)}function g(e){const t=c(e);return o.getEnvPostfix(t,e)}function p(e){return o.getDomainPrefix(e)}function f(e){const t=d(e);return o.getHubletDomainPostfix(t,e)}function m(e){return o.getTld(e)}function E(e){return o.getPathPrefix(e)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getDomain=c;t.getDomainPrefix=u;t.getEnvPostfix=l;t.getHubletDomainPostfix=h;t.getHubletPostfix=r;t.getPathPrefix=p;t.getSubDomain=d;t.getTld=g;var s=a(i(110)),n=i(111);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(o=function(e){return e?i:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=o(t);if(i&&i.has(e))return i.get(e);var s={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var r=n?Object.getOwnPropertyDescriptor(e,a):null;r&&(r.get||r.set)?Object.defineProperty(s,a,r):s[a]=e[a]}s.default=e;i&&i.set(e,s);return s}function r(e,t){const i=t&&t.hubletOverride?t.hubletOverride:e,n=t&&!0===t.hubletizeNa1;return i!==s.na1||n?`-${i}`:""}function d(e,t,i){if(i&&i.hubletPostfixLocation&&"domain"===i.hubletPostfixLocation)return t;t===n.Subdomains.APP_API&&(t=n.Subdomains.APP);return`${t}${r(e,i)}`}function c(e,t,i){return`${u(i)}${l(t,i)}${h(e,i)}`}function l(e,t){return"qa"===(t&&t.envOverride?t.envOverride:e)?"qa":""}function u(e){return e&&e.domainOverride?e.domainOverride:"hubspot"}function h(e,t){return t&&t.hubletPostfixLocation&&"domain"===t.hubletPostfixLocation?r(e,t):""}function g(e){return e&&e.tldOverride?e.tldOverride:"com"}function p(e){return e===n.Subdomains.APP_API?"/api":""}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.test2=t.na1=t.eu1=void 0;t.na1="na1",t.test2="test2",t.eu1="eu1"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Subdomains=void 0;t.Subdomains={APP:"app",APP_API:"app-api"}},function(e){"use strict";e.exports={mode:"compressed",staticDomainPrefix:"//static.hsappstatic.net",bender:{depVersions:{"conversations-embed":"static-1.24626","conversations-internal-schema":"static-1.12010","head-dlb":"static-1.4360","hs-test-utils":"static-1.7352","hubspot-url-utils":"static-1.3569",HubStyleTokens:"static-2.10876",I18n:"static-7.1454","jasmine-runner":"static-1.5779",quartz:"static-1.6175",react:"static-7.151",sinon:"static-1.9","webpack-env":"static-1.54",isMobile:"static-1.7",StyleGuideUI:"static-3.476","visitor-ui-component-library":"static-1.5521",enviro:"static-4.328","hs-promise-rejection-tracking":"static-1.4750",PortalIdParser:"static-2.306",raven:"static-3.5229","raven-hubspot":"static-1.5536","bend-plugin-trellis-migration":"static-1.2889",moment:"static-3.26","cv-backend-services":"static-1.1345","hub-http":"static-1.5499",immutable:"static-2.19","immutable-less":"static-1.3921","quartz-core":"static-1.5394",transmute:"static-2.77",HeadJS:"static-2.624","react-dom":"static-7.85","foundations-components":"static-1.6874","framer-motion":"static-1.53","hs-test-utils-bend-plugin":"static-1.2463",msw:"static-1.39","react-redux":"static-7.16",redux:"static-4.16","testing-library":"static-1.135","foundations-theming":"static-1.3704","i18n-data":"static-1.208","metrics-js":"static-1.9115","moment-timezone":"static-5.68","react-utils":"static-2.4743",jasmine:"static-4.3670","quartz-core-utils":"static-1.3042",csstype:"static-1.50","hoist-non-react-statics":"static-3.9",PatternValidationJS:"static-1.437","react-aria":"static-1.44","styled-components":"static-2.64",UIComponents:"static-3.7823","visitor-ui-component-library-icons":"static-1.5332","bender-build-tools":"static-1.2538","rpc-client-utils":"static-1.4057","ts-schema":"static-1.3532","hs-lodash":"static-4.45",immer:"static-1.33",dispatcher:"static-1.122","general-store":"static-6.20",history:"static-4.47","hub-http-janus":"static-1.701","hub-http-shared-msw-handlers":"static-1.8467","hubspotter-http":"static-1.4004","hubspotter-http-shared-msw-handlers":"static-1.8465",icons:"static-2.596","mobile-manifest-mixins":"static-1.396","platform-navigation-bootstrap":"static-1.11874","quick-fetch":"static-1-hqd-latest.1","react-rhumb":"static-1.15968","react-router-dom":"static-5.26","ui-fonts":"static-1.334","bend-plugin-foundations-components":"static-1.3143","floating-ui":"static-1.41","foundations-assets":"static-1.4218","foundations-theming-specialty":"static-1.1420","hs-story-utils":"static-1.8727","react-select-plus":"static-1.65","react-virtualized":"static-2.82","tanstack-table":"static-1.23","ui-images":"static-2.968","bend-plugin-foundations-theming":"static-1.2187","foundations-theming-base":"static-1.2689",classnames:"static-2.10",cssUtils:"static-1.603",HubStyle:"static-2.11184",sassPrefix:"static-1.142","platform-infra-nav-components":"static-1.7114","react-input-autosize":"static-2.17"},depPathPrefixes:{"conversations-embed":"/conversations-embed/static-1.24626","conversations-internal-schema":"/conversations-internal-schema/static-1.12010","head-dlb":"/head-dlb/static-1.4360","hs-test-utils":"/hs-test-utils/static-1.7352","hubspot-url-utils":"/hubspot-url-utils/static-1.3569",HubStyleTokens:"/HubStyleTokens/static-2.10876",I18n:"/I18n/static-7.1454","jasmine-runner":"/jasmine-runner/static-1.5779",quartz:"/quartz/static-1.6175",react:"/react/static-7.151",sinon:"/sinon/static-1.9","webpack-env":"/webpack-env/static-1.54",isMobile:"/isMobile/static-1.7",StyleGuideUI:"/StyleGuideUI/static-3.476","visitor-ui-component-library":"/visitor-ui-component-library/static-1.5521",enviro:"/enviro/static-4.328","hs-promise-rejection-tracking":"/hs-promise-rejection-tracking/static-1.4750",PortalIdParser:"/PortalIdParser/static-2.306",raven:"/raven/static-3.5229","raven-hubspot":"/raven-hubspot/static-1.5536","bend-plugin-trellis-migration":"/bend-plugin-trellis-migration/static-1.2889",moment:"/moment/static-3.26","cv-backend-services":"/cv-backend-services/static-1.1345","hub-http":"/hub-http/static-1.5499",immutable:"/immutable/static-2.19","immutable-less":"/immutable-less/static-1.3921","quartz-core":"/quartz-core/static-1.5394",transmute:"/transmute/static-2.77",HeadJS:"/HeadJS/static-2.624","react-dom":"/react-dom/static-7.85","foundations-components":"/foundations-components/static-1.6874","framer-motion":"/framer-motion/static-1.53","hs-test-utils-bend-plugin":"/hs-test-utils-bend-plugin/static-1.2463",msw:"/msw/static-1.39","react-redux":"/react-redux/static-7.16",redux:"/redux/static-4.16","testing-library":"/testing-library/static-1.135","foundations-theming":"/foundations-theming/static-1.3704","i18n-data":"/i18n-data/static-1.208","metrics-js":"/metrics-js/static-1.9115","moment-timezone":"/moment-timezone/static-5.68","react-utils":"/react-utils/static-2.4743",jasmine:"/jasmine/static-4.3670","quartz-core-utils":"/quartz-core-utils/static-1.3042",csstype:"/csstype/static-1.50","hoist-non-react-statics":"/hoist-non-react-statics/static-3.9",PatternValidationJS:"/PatternValidationJS/static-1.437","react-aria":"/react-aria/static-1.44","styled-components":"/styled-components/static-2.64",UIComponents:"/UIComponents/static-3.7823","visitor-ui-component-library-icons":"/visitor-ui-component-library-icons/static-1.5332","bender-build-tools":"/bender-build-tools/static-1.2538","rpc-client-utils":"/rpc-client-utils/static-1.4057","ts-schema":"/ts-schema/static-1.3532","hs-lodash":"/hs-lodash/static-4.45",immer:"/immer/static-1.33",dispatcher:"/dispatcher/static-1.122","general-store":"/general-store/static-6.20",history:"/history/static-4.47","hub-http-janus":"/hub-http-janus/static-1.701","hub-http-shared-msw-handlers":"/hub-http-shared-msw-handlers/static-1.8467","hubspotter-http":"/hubspotter-http/static-1.4004","hubspotter-http-shared-msw-handlers":"/hubspotter-http-shared-msw-handlers/static-1.8465",icons:"/icons/static-2.596","mobile-manifest-mixins":"/mobile-manifest-mixins/static-1.396","platform-navigation-bootstrap":"/platform-navigation-bootstrap/static-1.11874","quick-fetch":"/quick-fetch/static-1-hqd-latest.1","react-rhumb":"/react-rhumb/static-1.15968","react-router-dom":"/react-router-dom/static-5.26","ui-fonts":"/ui-fonts/static-1.334","bend-plugin-foundations-components":"/bend-plugin-foundations-components/static-1.3143","floating-ui":"/floating-ui/static-1.41","foundations-assets":"/foundations-assets/static-1.4218","foundations-theming-specialty":"/foundations-theming-specialty/static-1.1420","hs-story-utils":"/hs-story-utils/static-1.8727","react-select-plus":"/react-select-plus/static-1.65","react-virtualized":"/react-virtualized/static-2.82","tanstack-table":"/tanstack-table/static-1.23","ui-images":"/ui-images/static-2.968","bend-plugin-foundations-theming":"/bend-plugin-foundations-theming/static-1.2187","foundations-theming-base":"/foundations-theming-base/static-1.2689",classnames:"/classnames/static-2.10",cssUtils:"/cssUtils/static-1.603",HubStyle:"/HubStyle/static-2.11184",sassPrefix:"/sassPrefix/static-1.142","platform-infra-nav-components":"/platform-infra-nav-components/static-1.7114","react-input-autosize":"/react-input-autosize/static-2.17"},project:"conversations-embed",staticDomain:"//static.hsappstatic.net",staticDomainPrefix:"//static.hsappstatic.net"}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getChatflowTagFromQueryParams=i;function i(){return new URL(window.location.href).searchParams.get("chatflow")||""}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.withValuesConvertedToString=t.serializeQueryParameters=void 0;const i=e=>Object.keys(e).map((t=>[t,`${e[t]}`]));t.withValuesConvertedToString=i;const s=e=>new URLSearchParams(i(e)).toString();t.serializeQueryParameters=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getPerfAttributes=r;var s=i(63),n=i(116),o=i(117),a=i(118);function r({portalId:e,messagesEnv:t}){try{const i="qa"===t?"qa":"",r=(0,a.buildNonCmsScriptLoaderPath)({env:i,portalId:e}),d=(0,n.buildCmsScriptLoaderSrc)({portalId:e}),c=(0,o.buildCmsScriptLoaderPath)({portalId:e}),l=`https://js.usemessages${i}.com/conversations-embed.js`,u=performance.getEntries().map((({name:e})=>e)),h=u.find((e=>e.includes(r)))||r,g=u.find((e=>e.includes(c)))||c,p=Boolean(document.querySelector(`script[src^="${d}"]`));performance.measure(s.EXECUTION_MEASUREMENT_PRE_DELAY,s.START_MARK_PRE_DELAY,s.END_MARK_PRE_DELAY);performance.measure(s.EXECUTION_MEASUREMENT_POST_DELAY,s.START_MARK_POST_DELAY,s.END_MARK_POST_DELAY);const f=performance.getEntriesByName(s.EXECUTION_MEASUREMENT_PRE_DELAY)[0],m=performance.getEntriesByName(s.EXECUTION_MEASUREMENT_POST_DELAY)[0],E=f.duration+m.duration,_=performance.getEntriesByName(h)[0],v=performance.getEntriesByName(g)[0],T=(p?v:_).duration,I=performance.getEntriesByName(l)[0].duration;if(E&&T&&I)return{iframeLoadTime:E,scriptLoaderScriptTime:T,embedScriptTime:I}}catch(e){}return null}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.buildCmsScriptLoaderSrc=void 0;const i=({portalId:e})=>`/hs/scriptloader/${e}.js`;t.buildCmsScriptLoaderSrc=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.buildCmsScriptLoaderPath=void 0;var s=i(116);const n=({portalId:e})=>{const t=(0,s.buildCmsScriptLoaderSrc)({portalId:e});return`${document.location.origin}${t}`};t.buildCmsScriptLoaderPath=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.buildNonCmsScriptLoaderPath=void 0;const i=({env:e="",portalId:t})=>`${document.location.protocol}//js.hs-scripts${e}.com/${t}.js`;t.buildNonCmsScriptLoaderPath=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isInSDK=t.hasMinimumMobileSdkVersion=t.SDK_USER_AGENT_REGEX=void 0;const i=t.SDK_USER_AGENT_REGEX=/Hub[sS]pot ?Mobile ?SDK/,s=/\/(\d+\.\d+\.\d+)/,n=new RegExp(i.source+s.source),o=()=>i.test(window.navigator.userAgent);t.isInSDK=o;const a=({minMajor:e,minMinor:t,minPatch:i})=>{const s=window.navigator.userAgent.match(n);if(!s)return!1;const[,o]=s,[a,r,d]=o.split(".").map(Number);return a>e||a===e&&r>t||a===e&&r===t&&d>=i};t.hasMinimumMobileSdkVersion=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.hasRequiredFeatures=s;function i(){function e(){}try{e.toString=function(){};return!0}catch(e){return!1}}function s(e){return["function"==typeof e.WeakMap,"function"==typeof e.requestAnimationFrame,"function"==typeof e.URLSearchParams,"function"==typeof Object.fromEntries,i()].every((e=>e))}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ErrorLogger=void 0;var s=i(122),n=i(102),o=i(110);const a="7ab6425e7a7c4b01b71fdb51e76514bf",r=4;function d(){return Date.now()/1e3}function c(){const e=window.crypto||window.msCrypto;if(void 0!==typeof e&&e.getRandomValues){const t=new Uint16Array(8);e.getRandomValues(t);t[3]=4095&t[3]|16384;t[4]=16383&t[4]|32768;const i=function(e){let t=e.toString(16);for(;t.length<4;)t=`0${t}`;return t};return i(t[0])+i(t[1])+i(t[2])+i(t[3])+i(t[4])+i(t[5])+i(t[6])+i(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function l(e,t){const i=new XMLHttpRequest;i.addEventListener("readystatechange",(()=>{i.readyState===r&&i.status>=300&&console.warn("Failed logging HSConversations error")}));i.open("POST",e);i.setRequestHeader("Content-Type","text/plain;charset=UTF-8");i.send(JSON.stringify(t))}class u{constructor(){const e=(0,n.getMessagesEnv)(),t=(0,n.getMessagesHublet)();this.config={environment:e,tags:{portalId:(0,n.getPortalId)(),env:e,project:"conversations-embed"},logger:"javascript",platform:"javascript",request:{headers:{"User-Agent":navigator.userAgent},url:window.location.href}};const i=null==t||t===o.na1?"":`-${t}`,s=null==e||"prod"===e?"":"qa",r=`sentry_version=7&sentry_client=raven-js%2F3.19.1&sentry_key=${a}`;this.sentryUrl=`https://exceptions${i}.hubspot${s}.com/v2/api/store/?${r}`;this.logError=this.logError.bind(this)}logError(e){const t=d();l(this.sentryUrl,Object.assign({},this.config,{event_id:c(),transaction:"conversations embed error",level:"error",exception:{values:[{mechanism:{handled:!0,type:"generic"},type:e,value:e}]},timestamp:t}))}captureErrors(e){try{e()}catch(e){const t=d();if(e instanceof Error&&"Aborting: redirection in progress"!==e.message){const i=(0,s.computeStackTrace)(e);l(this.sentryUrl,Object.assign({},this.config,{event_id:c(),transaction:i.stack[0].filename,level:"error",exception:{values:[{mechanism:{handled:!0,type:"generic"},type:i.name,value:i.message,stacktrace:{frames:i.stack.reverse()}}]},timestamp:t}))}throw e}}}t.ErrorLogger=u},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.computeStackTrace=d;const i="?";function s(){return"undefined"==typeof document||null==document.location?"":document.location.href}function n(){return"undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:`${document.location.protocol}//${document.location.hostname}${document.location.port?`:${document.location.port}`:""}`}function o(e){if(void 0===e.stack||!e.stack)return null;const t=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack||[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,r=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,d=/\((\S*)(?::(\d+))(?::(\d+))\)/,c=e.stack.split("\n"),l=[];let u,h,g;for(let s=0,p=c.length;s eval")>-1&&(u=r.exec(h[3]))){h[3]=u[1];h[4]=u[2];h[5]=null}else 0!==s||h[5]||void 0===e.columnNumber||(l[0].column=e.columnNumber+1);g={filename:h[3],function:h[1]||i,args:h[2]?h[2].split(","):[],lineno:h[4]?+h[4]:null,colno:h[5]?+h[5]:null}}!g.function&&g.line&&(g.function=i);if(g.filename&&"blob:"===g.filename.substr(0,5)){const e=new XMLHttpRequest;e.open("GET",g.filename,!1);e.send(null);if(200===e.status){let t=e.responseText||"";t=t.slice(-300);const i=t.match(/\/\/# sourceMappingURL=(.*)$/);if(i){let e=i[1];"~"===e.charAt(0)&&(e=n()+e.slice(1));g.url=e.slice(0,-4)}}}l.push(g)}return l.length?{name:e.name,message:e.message,url:s(),stack:l}:null}function a(e,t,s){const n={filename:t,lineno:s};if(n.filename&&n.lineno){e.incomplete=!1;n.function||(n.function=i);if(e.stack.length>0&&e.stack[0].filename===n.filename){if(e.stack[0].lineno===n.lineno)return!1;if(!e.stack[0].lineno&&e.stack[0].function===n.function){e.stack[0].lineno=n.lineno;return!1}}e.stack.unshift(n);e.partial=!0;return!0}e.incomplete=!0;return!1}function r(e,t){const n=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,o=[],c={};let l,u,h=!1;for(let e=r.caller;e&&!h;e=e.caller)if(e!==d){u={filename:null,function:i,lineno:null,colno:null};e.name?u.function=e.name:(l=n.exec(e.toString()))&&(u.function=l[1]);if(void 0===u.function)try{u.function=l.input.substring(0,l.input.indexOf("{"))}catch(e){}c[`${e}`]?h=!0:c[`${e}`]=!0;o.push(u)}t&&o.splice(0,t);const g={name:e.name,message:e.message,filename:s(),stack:o};a(g,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description);return g}function d(e,t){let i=null;t=null==t?0:+t;try{i=o(e);if(i)return i}catch(e){}try{i=r(e,t+1);if(i)return i}catch(e){}return{name:e.name,message:e.message,filename:s()}}}],t={};function i(s){var n=t[s];if(void 0!==n)return n.exports;var o=t[s]={exports:{}};e[s].call(o.exports,o,o.exports,i);return o.exports}!function(){"use strict";var e=i(1);(0,i(85).markStartPreDelay)();const t=()=>{(0,e.startOnceReady)();document.removeEventListener("DOMContentLoaded",t)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):(0,e.startOnceReady)()}()}(); //# sourceMappingURL=//static.hsappstatic.net/conversations-embed/static-1.24626/bundles/project.js.map