!function(){"use strict";var t={5329:function(){Array.from||(Array.from=function(){var t=Object.prototype.toString,e=function(e){return"function"===typeof e||"[object Function]"===t.call(e)},o=Math.pow(2,53)-1,r=function(t){var e=function(t){var e=Number(t);return isNaN(e)?0:0!==e&&isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),o)};return function(t){var o=this,n=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var i,s=arguments.length>1?arguments[1]:void 0;if("undefined"!==typeof s){if(!e(s))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(i=arguments[2])}for(var a,c=r(n.length),u=e(o)?Object(new o(c)):new Array(c),d=0;d15){var c=new t(window.smartlook);c.setSessionId(void 0),c.setVisitorId(void 0),c.setProjectKey(void 0),r=null,n=null}return{sid:r,vid:n}},t.prototype.loadDebugMode=function(){localStorage.getItem("smartlook_debug")&&(this.smartlook.debug=!0)},t.prototype.setOptions=function(t){this.smartlook.options||(this.smartlook.options={});var e=this.smartlook.options;"undefined"===typeof e.recordConsole&&(e.recordConsole=t.recordConsole),"undefined"===typeof e.recordNetwork&&(e.recordNetwork=t.recordNetwork),"undefined"===typeof e.storeGroup&&(e.storeGroup=t.storeGroup),"undefined"===typeof e.identifyApi&&(e.identifyApi=t.identifyApi)},t.prototype.setAnalyticsSettings=function(t){this.smartlook.analytics||(this.smartlook.analytics={}),t.host&&!this.smartlook.analytics.host&&(this.smartlook.analytics.host=t.host),t.host&&!t.error&&t.ok||(this.smartlook.analytics=void 0)},t.prototype.setRecordingSettings=function(t){this.smartlook.recording||(this.smartlook.recording={});var e=this.smartlook.recording;e.hostDefault=t.hostDefault,e.host||(e.host=t.hostDefault),t.assetsHost&&!e.assetsHost&&(e.assetsHost=t.assetsHost),e.host&&!t.error||(this.smartlook.recording=void 0)},t.prototype.setIntegrationSettings=function(t){this.smartlook.integrations=t},t}(),k=function(){return k=Object.assign||function(t){for(var e,o=1,r=arguments.length;o1&&i=300}:c,d=t.withCredentials,l=void 0!==d&&d,p=new XMLHttpRequest;if("number"===typeof s&&(p.timeout=s),p.open(o,r,!0),n&&Object.keys(n).forEach((function(t){p.setRequestHeader(t,n[t])})),l)try{p.withCredentials=!0}catch(f){}p.onload=function(){u(p.status)?S(p,t):a&&a(p)},p.onabort=function(){S(p,t)},p.onerror=function(){S(p,t)},p.ontimeout=function(){S(p,t)},i?p.send(i):p.send()},O=function(){function t(){this.uid=null,this.props=null,this.host=null,this.timeout=null,this.logger=null,this.initialized=!1}return t.prototype.initialize=function(t,e){this.initialized||(this.host=t,this.logger=e,this.initialized=!0)},t.prototype.addIdentity=function(t,e){void 0===e&&(e={}),this.uid=t,this.props=e,this.sendData()},t.prototype.sendData=function(){var t=this,e=_.getVisitorId()||"";if(!this.initialized||!e)return clearTimeout(this.timeout),void(this.timeout=window.setTimeout(this.sendData.bind(this),500));if(this.uid){var o={vid:e,uid:this.uid,props:this.props||{}};I({method:"POST",url:"https://".concat(this.host,"/rec/identify"),body:s(o),headers:{"Content-Type":"text/plain;charset=UTF-8"},numberOfRetries:3,timeout:5e3,onSuccess:function(){t.logger&&t.logger.log("Sent identity",o)}}),this.uid=null,this.props=null}},t}(),P=function(){function t(){}return t.getCurrentUrl=function(){var t=window,e=t.smartlook,o=t.location&&t.location.href||"";if(e&&e._url_beforeSendHook)try{o=e._url_beforeSendHook(o)}catch(r){console.warn("Could not modify url with url:beforeSend method",r)}return"string"===typeof o?o.substring(0,1e3):""},t}(),j="Look at 'https://smartlook.github.io/docs/web/custom-events/' for more info.",E="Calling 'track' API with missing or invalid value in 'eventName' parameter. Non-empty string expected. ".concat(j),A="Calling 'track' API with invalid value in 'properties' parameter. Object with key value pairs expected. ".concat(j),T=function(){function t(){this.host=null,this.timeout=null,this.logger=null,this.initialized=!1,this.queue=[],this.w=window}return t.prototype.initialize=function(t,e){this.initialized||(this.host=t,this.logger=e,this.initialized=!0)},t.prototype.getUrl=function(){var t=this.w.smartlook,e=t.key,o=t.vid,r=t.rid,n=t.sid,i=this.w.smartlook.options&&this.w.smartlook.options.storeGroup||"";return e&&o&&r&&n&&i?"https://".concat(this.host,"/rec/events?rid=").concat(r,"&sid=").concat(n,"&key=").concat(e,"&vid=").concat(o,"&group=").concat(i,"&source=website&s=1"):null},t.prototype.addEvent=function(t){if(t.name&&"string"===typeof t.name)if(t.props&&"object"!==typeof t.props)console.warn(A);else{var e=0;this.w.smartlook.recording&&this.w.smartlook.recording.startTime&&(e=Math.max(0,t.createdAt-this.w.smartlook.recording.startTime));var o={type:"custom",time:e,name:t.name,id:t.id,createdAt:t.createdAt,props:t.props,pageUrl:P.getCurrentUrl(),internalProps:{}};t.elements&&Object.assign(o,{elements:t.elements}),t.className&&Object.assign(o.internalProps,{className:t.className}),t.elementId&&Object.assign(o.internalProps,{elementId:t.elementId}),this.w.smartlook._identityUid&&Object.assign(o.internalProps,{uid:this.w.smartlook._identityUid}),this.w.smartlook._globalProps&&Object.assign(o.props,this.w.smartlook._globalProps),this.w.smartlook._identityProps&&Object.assign(o.props,this.w.smartlook._identityProps),o.internalProps&&0===Object.keys(o.internalProps).length&&delete o.internalProps,o&&(this.queue.push({event:o,url:this.getUrl()}),this.sendEvents())}else console.warn(E)},t.prototype.sendEvents=function(){var t=this;if(!this.initialized)return clearTimeout(this.timeout),void(this.timeout=window.setTimeout(this.sendEvents.bind(this),333));var e=!1,o=this.queue.slice();this.queue=[],o.forEach((function(o){var r=o.url;if(r||(r=t.getUrl()),!r)return t.queue.push(o),void(e=!0);var n=s([o.event]);n?navigator.sendBeacon&&navigator.sendBeacon(r,n)?t.logger&&t.logger.log("Sent custom event using beacon",o.event):I({method:"POST",url:r,headers:{"Content-Type":"text/plain;charset=UTF-8"},body:n,timeout:5e3,numberOfRetries:2,onSuccess:function(){t.logger&&t.logger.log("Sent custom event using XHR",o.event)}}):t.logger&&t.logger.error("Could not create a stringify body of a custom event",o.event)})),e&&(clearTimeout(this.timeout),this.timeout=window.setTimeout(this.sendEvents.bind(this),333))},t}(),C=window.performance&&window.performance.timing&&window.performance.timing.navigationStart&&window.performance.now,N=function(){function t(){}return t.getElapsedTime=function(){return C?Math.round(window.performance.now()):Date.now()},t.now=function(){return C?Math.round(window.performance.timing.navigationStart+window.performance.now()):Date.now()},t}(),x=function(t,e){void 0===e&&(e=!0);var o=this;this.subscribe=function(t){o.listeners.push(t),o.useQueueEvents&&o.eventsQueue.length>0&&(o.eventsQueue=o.eventsQueue.filter((function(t){return t.ttl>=N.getElapsedTime()})),o.eventsQueue.forEach((function(e){return t(e.event)})))},this.unsubscribe=function(t){o.listeners=o.listeners.filter((function(e){return e!==t}))},this.publish=function(t){o.listeners.forEach((function(e){return e(t)}))},this.startTimeElapsed=N.getElapsedTime(),this.listeners=[],this.eventsQueue=[],this.w=t,this.useQueueEvents=e},R=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!==typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R(e,t),e}(x),L=M,H=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!==typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return H(e,t),e}(x),U=D,V=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!==typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return V(e,t),e}(x),F=K,z=function(){function t(){}return t.generate=function(){return function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21,e="",o=crypto.getRandomValues(new Uint8Array(t));t--;){var r=63&o[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e}(10)},t}(),J="smartlook_ban_reason",W="smartlook_ban_expire";function q(t,e){void 0===e&&(e=3e5);var o=Date.now()+e;localStorage.setItem(W,o.toString()),localStorage.setItem(J,t)}var B,G,Q=function(t,e,o){if(o||2===arguments.length)for(var r,n=0,i=e.length;n-1&&(t="main.js"),t.indexOf("PICKER_PATH")>-1&&(t="picker.js");var e=document.getElementsByTagName("head")[0],o=document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.type="text/javascript",o.src="".concat('https://rec.smartlook.com',"/").concat(t),e.appendChild(o)},t}(),rt=function(){function t(){}return t.tryLoad=function(t){window.smartlook_key=t,window.sessionStorage.getItem(g)||window.localStorage.getItem(g)?ot.appendScript("picker-20220808093649.js"):document.referrer.indexOf("picker/4f249306-efd5-4127-b768-79a6750a7c5d-ca97caf7-335a-4e1f-b047-be42cb6098f9")>=0&&(window.sessionStorage.setItem(g,"1"),ot.appendScript("picker-20220808093649.js"))},t}(),nt=function(){return nt=Object.assign||function(t){for(var e,o=1,r=arguments.length;oDate.now())||(localStorage.removeItem(W),localStorage.removeItem(J),!1)}())window.smartlook=function(){return X("This visitor is temporarily excluded from recording.")};else{var d=et.getResolution();if(d)if(window===self){e.orientation=d.orientation,e.width=d.width||t.screen.width,e.height=d.height||t.screen.height;var p=new _(e),f=p.getStoredSidVid(u),h=f.sid,g=f.vid;p.loadDebugMode();var m={key:u,sid:h,vid:g,domain:t.document.location&&t.document.location.host,pageUrl:P.getCurrentUrl(),referer:t.document.referrer,screenWidth:e.width,screenHeight:e.height,internalProps:{version:"040a99dbebc3488c77a09e4617188919a9dc3ad4".substring(0,10)}};e._identityUid&&Object.assign(m,{uid:e._identityUid}),e._identityProps&&Object.assign(m,{props:e._identityProps}),I({method:"POST",url:"https://".concat(e.host,"/rec/check"),headers:{"Content-Type":"text/plain;charset=UTF-8"},body:s(m),withCredentials:!0,onSuccess:function(o){var r=JSON.parse(o.response);p.setSessionId(r.sid),p.setVisitorId(r.vid),p.setProjectKey(u),e._checkResponse=r,r.options&&(e._consentVersion=2,p.setOptions(nt(nt({},r.options),{identifyApi:r.options.identifyApi}))),r.analytics&&p.setAnalyticsSettings(r.analytics),r.recording&&p.setRecordingSettings(r.recording),r.integrations&&p.setIntegrationSettings(r.integrations),e._recordEmails="boolean"===typeof e._recordEmails&&e._recordEmails,e._recordNumbers="boolean"===typeof e._recordNumbers&&e._recordNumbers,e._recordIPs="boolean"===typeof e._recordIPs&&e._recordIPs,e._recordForms="boolean"===typeof e._recordForms&&e._recordForms;var n=new Y(!!e.debug);t.smartlook_stopped||(tt.initialize({host:e.host,analyticsHost:e.analytics?e.analytics.host:void 0,logger:n}),e.recording&&ot.appendScript("main-20220808093649.js"))},onError:function(t){q("Check error - ".concat(t.response," - ").concat(t.status));try{var e=JSON.parse(t.response);console.warn("Smartlook not recording, reason:",e.message)}catch(v){}}})}else window.smartlook=function(){return X("Cannot record this user because self or window object is replaced with custom value.")};else window.smartlook=function(){return X("Cannot record this user because it is not possible to get visitor's display resolution.")}}}else window.smartlook=function(){return X("Missing Smartlook key.")}}}))}()}();