!function(){var e={5033:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(1388),i=function(e,t){var o=t+"_"+Math.floor(1e4*Math.random(1,1e4)+(new Date).getTime()*Math.random(1e3,9999)*1e5);try{n.Storage.get("userpilot-un-id")?o=n.Storage.get("userpilot-un-id"):n.Storage.set("userpilot-un-id",o)}catch(e){}return o};t.default=i},9606:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,r,s=(n=o(6032))&&n.__esModule?n:{default:n},u=o(1388);function l(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function a(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;if(i=u.Storage.get("userpilotUserId".concat(o))||"",r=u.Storage.get("userpilotIdentifiedObj".concat(o))||"",void 0!==e&&"undefined"!==e&&null!==e&&"null"!==e)if("object"!=d(e)){if(""==e)return!1;try{return i!==(e+="")&&(u.Storage.remove("userpilotIdentifiedObj".concat(o)),i=e,r=""),r&&(t=a(a({},JSON.parse(r)),t)),"string"==typeof e&&(e=e.trim()),window.userpilot.log("Identifying..."),window.userpilotSettings||(window.userpilotSettings=(0,s.default)({},{customer:{},userid:e},window.userpilotSettings)),u.Storage.set("userpilotIdentifiedObj".concat(o),JSON.stringify(t)),void u.Storage.set("userpilotUserId".concat(o),e)}catch(e){}}else console.info("userpilot msg: user id can only be of type string or number");else console.info("userpilot msg: undefined user id")};t.default=p},1388:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Storage=void 0;var o="userpilot:session_id",n="userpilot:sessions",i="userpilot:checklist:manual",r=["up_prev_def","userpilot_injected_engine","userpilot-next-click-event"],s=["userpilotChromeBuilding","userpilotRecorder","userpilot_injected_engine","userpilotExtensionFound","userpilot-next-click-event","up_prev_def"],u="userpilotSDK",l={},a={user:"userpilotUser",settings:"userpilotSettings",userpilotSDK:"userpilotSDK"},c={continuity:null},d={init:function(e,t){a=e,c=t;try{u=a.userpilotSDK,l=JSON.parse(p.getLocal(u))||{}}catch(e){}},getAll:function(){return l},get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(t.compressed,t.parse),n=void 0!==o&&o;if(p.hasSession(e)||-1!==e.indexOf("preview")||s.includes(e))return p.getSession(e);if("theme"!=e&&p.hasLocal(e))return p.getLocal(e);var i=l[e];if(n)try{i=JSON.parse(i)}catch(e){}return i},set:function(e,t){-1===[a.user,a.settings,o,n].indexOf(e)?"cont_flows"!=e||c.continuity?e.split("preview").length>1||r.includes(e)||e==i?p.setSession(e,t):(l[e]=t,p.setLocal(u,JSON.stringify(l))||"running_flows"!=e&&e.indexOf("theme_")||d.remove(e)):d.remove(e):p.setLocal(e,t)},remove:function(e){if(e.split("preview").length>1||["userpilot-next-click-event","up_prev_def",i].includes(e))return p.removeSession(e),!1;if("theme_*"==e)for(var t in l)-1!==t.indexOf("theme_")&&delete l[t];else delete l[e];p.setLocal(u,JSON.stringify(l))},has:function(e){return void 0!==l[e]},isSupportedSession:function(){try{return sessionStorage.removeItem("userpilot_test_flag_01414"),!0}catch(e){return!1}},isSupported:function(){try{var e="__userpilot_test__";return localStorage.setItem(e,""),localStorage.removeItem(e),!0}catch(e){return!1}}};t.Storage=d;var p={hasLocal:function(e){try{return null!==localStorage.getItem(e)}catch(e){return window.userpilot.log("Error checking local storage"),!1}},getLocal:function(e){return localStorage.getItem(e)},setLocal:function(e,t){try{return localStorage.setItem(e,t),!0}catch(o){return window.userpilot.log("Error setting local storage"),window.userpilot.log(e),window.userpilot.log(t),window.userpilot.log(o),!1}},getSession:function(e){return sessionStorage.getItem(e)},removeSession:function(e){sessionStorage.removeItem(e)},setSession:function(e,t){sessionStorage.setItem(e,t)},hasSession:function(e){try{return null!==sessionStorage.getItem(e)}catch(e){return window.userpilot.log("Error checking session storage"),!1}}}},3422:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){var t=0;if(0===e.length)return e;for(var o=0;o0&&void 0!==arguments[0])||arguments[0],l=function(e){return-1!==(null==e?void 0:e.indexOf("NX-c13b0c77"))&&"propertymanager.theguarantors.com"==window.location.hostname?e.replace("STG-",""):e}((null===(o=window.userpilotSettings)||void 0===o?void 0:o.token)||"");if(!(l||null!==(n=window.userpilotSettings)&&void 0!==n&&n.previewMode))return u&&console.warn("Userpilot: App token is missing, please provide the app token before initializing the SDK. Retrying in 500ms."),setTimeout((function(){var e,t;null===(e=window.userpilot)||void 0===e||null===(t=e.init)||void 0===t||t.call(e,!1)}),500),!1;s=(0,e.default)(l+((null===(i=window)||void 0===i||null===(r=i.userpilotSettings)||void 0===r?void 0:r.noConflictId)||"")||"");var a={user:"userpilotUser".concat(s),settings:"userpilotSettings".concat(s),userpilotSDK:"userpilotSDK".concat(s)};t.Storage.init(a),p.hasUser(a)&&d()},identify:function(e,t){window.userpilotCallMethods.identify.push({userid:e,data:t});var o=function(){(0,n.default)(e,t,s),u||d()};s?o():setTimeout(o,500)},locale:function(e){window.userpilotCallMethods.locale.push({data:e})},group:function(e,t){window.userpilotCallMethods.group.push({companyId:e,data:t})},reload:function(e){window.userpilotCallMethods.reload.push({events:e})},log:function(){window.userpilotCallMethods.log.push({log:1})},end:function(e){window.userpilotCallMethods.end.push({content:e})},track:function(e,t){window.userpilotCallMethods.track.push({title:e,meta:t})},trigger:function(e){window.userpilotCallMethods.trigger.push({token:e})},anonymous:function(e){window.userpilotCallMethods.anonymous.push({data:e});var t=function(){var t=(0,i.default)(e,window.userpilotSettings.token);(0,n.default)(t,e,s),u||d()};s?t():setTimeout(t,500)},reset:function(){window.userpilotCallMethods.reset.push({reset:1})},isRunning:function(){return{}},suppress:function(){window.userpilotCallMethods.suppress.push({suppress:1})},unsuppress:function(){},clean:function(){window.userpilotCallMethods.clean.push({clean:1})},on:function(e,t){window.userpilotCallMethods.on.push({name:e,fn:t})},off:function(e){window.userpilotCallMethods.off.push({name:e})},once:function(e,t){window.userpilotCallMethods.once.push({name:e,fn:t})},theme:function(e){window.userpilotCallMethods.theme.push({name:e})},preview:function(e,t){window.userpilotCallMethods.preview=[{component:e,object:t}]},destroy:function(){window.userpilotCallMethods.destroy=!0},next:function(){},prev:function(){},getToken:function(){},getNoConflictKey:function(){},initializing:function(){return!0}};var d=function(){var e;for(e in u=!0,window.userpilotSettings||(window.userpilotSettings={}),"NX-f6e84007"==window.userpilotSettings.token&&(window.userpilotSettings.version="1.473"),l)window.userpilotSettings.hasOwnProperty(e)||(window.userpilotSettings[e]=l[e]);var t=document.createElement("script"),o=window.userpilotSettings.domain||"js.userpilot.io";try{sessionStorage.getItem("temp-userpilot-token")&&(window.userpilotSettings.token=sessionStorage.getItem("temp-userpilot-token")),sessionStorage.getItem("temp-userpilot-version")?(window.userpilotSettings.version=sessionStorage.getItem("temp-userpilot-version"),t.src="https://"+o+"/sdk/version/"+window.userpilotSettings.version+"/app.js?ver="+(new Date).getTime()):t.src="https://"+o+"/sdk/version/"+window.userpilotSettings.version+"/app.js"}catch(e){t.src="https://"+o+"/sdk/version/"+window.userpilotSettings.version+"/app.js"}a&&c&&(t.integrity=a,t.crossOrigin="anonymous"),t.async="true",document.querySelector("head").appendChild(t)},p={hasUser:function(e){var o;return!!(localStorage.getItem(e.user)||t.Storage.get("userpilotUserId".concat(s))||sessionStorage.getItem("userpilotChromeBuilding")||1==(null===(o=window.userpilotSettings)||void 0===o?void 0:o.previewMode))}};return window.userpilot};u.init()}()}();