(function(){var __webpack_modules__={4846:function(e,t,r){e.exports=r(8544)},8544:function(e,t){"use strict";var r=function(){function e(){}return e.isError=function(e){return"ProtocolError"===e.status||"InternalServerError"===e.status},e.isValidationError=function(e){return"ValidationError"===e.status},e.isSuccess=function(e){return"Success"===e.status},e}();t.ServiceResponses=r},4316:function(e,t){"use strict";t.__esModule=!0;var r=function(){function e(t){if(!t)throw new TypeError("Invalid argument; `value` has no value.");this.value=e.EMPTY,t&&e.isGuid(t)&&(this.value=t)}return e.isGuid=function(t){var r=t.toString();return t&&(t instanceof e||e.validator.test(r))},e.create=function(){return new e([e.gen(2),e.gen(1),e.gen(1),e.gen(1),e.gen(3)].join("-"))},e.createEmpty=function(){return new e("emptyguid")},e.parse=function(t){return new e(t)},e.raw=function(){return[e.gen(2),e.gen(1),e.gen(1),e.gen(1),e.gen(3)].join("-")},e.gen=function(e){for(var t="",r=0;r ").concat(t))||this}return n.__extends(t,e),t}(i);t.SdkModuleError=s;var a=function(e){function t(t){return void 0===t&&(t=""),e.call(this,t,"core")||this}return n.__extends(t,e),t}(s);t.CoreSdkError=a;var u=function(e){function t(t){return void 0===t&&(t=""),e.call(this,t,"webpush")||this}return n.__extends(t,e),t}(s);t.WebPushSdkError=u},4304:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=void 0;var n=r(1616),o=function(){function e(e){var t=this;if(this.logExceptionInternal=function(e,r){t.logger.trackException(e,r)},this.logAndThrowExceptionInternal=function(e,r){throw t.logger.trackException(e,r),e},this.logEvent=function(e,r){t.logger.trackEvent(e,r)},null==e)throw new Error("'logger' cannot be null");this.logger=e}return e.create=function(t){if(null==t)throw new Error("'loggerProvider' cannot be null");self.LogManager=new e(t())},e.LogException=function(t,r){e.getOrCreateInstance().logExceptionInternal(t,r)},e.LogAndThrowException=function(t,r){e.getOrCreateInstance().logAndThrowExceptionInternal(t,r)},e.LogEvent=function(t,r){e.getOrCreateInstance().logEvent(t,r)},e.selectProvider=function(){return new n.LoggerStub},e.getOrCreateInstance=function(){var t=self;return null==t.LogManager&&(console.warn("LogManager was not instantiated before (in entry file). Using dummy."),t.LogManager=new e(e.selectProvider())),t.LogManager},e}();t.Logger=o},1616:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggerStub=void 0;var r=function(){function e(){}return e.prototype.trackException=function(e,t){},e.prototype.trackEvent=function(e,t){},e}();t.LoggerStub=r},525:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MicroSentryLogger=void 0;var n=r(1635),o=r(1616),i=r(995),s=function(){function e(e,t){void 0===t&&(t=.05),this.sentryClient=e,this.sampleRate=t}return e.initialize=function(t){void 0===t&&(t=.05);var r="https://d58a6b9c96364635b562983c2df90da8@autobugs-external.maestra.io/1354";return r.indexOf("sentryDsnDefinedByDeployment")>-1?new o.LoggerStub:new e(new i.BrowserMicroSentryClient({dsn:r}),t)},e.prototype.canReportError=function(){return Math.random()1){r.push(e);for(var n=1;n=400&&t.status<=499:return[3,4]}return[3,5];case 2:return[4,t.blob()];case 3:return[2,r.sent()];case 4:return[2,null];case 5:throw new Error(t.statusText)}}))}))},e.prototype.loadScript=function(e){return new Promise((function(t,r){var n=document.createElement("script");n.async=!0,n.type="text/javascript",n.src=e,n.onload=function(){return t()},n.onerror=function(){return r("Blob failed by url ".concat(e))},document.getElementsByTagName("head")[0].appendChild(n)}))},e}(),JsModulesClientStub=function(){function JsModulesClientStub(){this.responses=new Map,this.invokedRequests=new Array,this.errors=new Map,this.invokedErrors=new Array,this.defaultResponse=null,this.defaultError=new Error("Something went wrong")}return JsModulesClientStub.prototype.getRemoteBlob=function(e){return tslib_1.__awaiter(this,void 0,Promise,(function(){var t=this;return tslib_1.__generator(this,(function(r){return[2,new Promise((function(r,n){if(t.errors.has(e))return t.invokedErrors.push(e),n(t.errors.get(e));var o={response:t.defaultResponse,timeout:0};t.responses.has(e)&&(t.invokedRequests.push(e),o=t.responses.get(e)),o.instant?r(o.response):setTimeout((function(){o.onBeforeResolve&&o.onBeforeResolve(),r(o.response)}),o.timeout)}))]}))}))},JsModulesClientStub.prototype.loadScript=function(url){return tslib_1.__awaiter(this,void 0,Promise,(function(){var response,responseText,_a;return tslib_1.__generator(this,(function(_b){switch(_b.label){case 0:return _b.trys.push([0,3,,4]),[4,this.getRemoteBlob(url)];case 1:return response=_b.sent(),[4,response.text()];case 2:return responseText=_b.sent(),eval(responseText),[2];case 3:throw _a=_b.sent(),new Error("Blob failed by url ".concat(url));case 4:return[2]}}))}))},JsModulesClientStub.prototype.setResponse=function(e,t,r){var n=void 0===r?{timeout:0}:r,o=n.timeout,i=void 0===o?0:o,s=n.instant,a=n.onBeforeResolve;this.responses.set(e,{response:t,timeout:i,instant:s,onBeforeResolve:a})},JsModulesClientStub.prototype.setError=function(e,t){void 0===t&&(t=null),null==t&&(t=this.defaultError),this.errors.set(e,t)},JsModulesClientStub.prototype.flush=function(){this.responses.clear(),this.errors.clear()},JsModulesClientStub.prototype.invokedRequest=function(e,t){return t==this.invokedRequests.filter((function(t){return t==e})).length},JsModulesClientStub.prototype.allRequestUrls=function(){return tslib_1.__spreadArray([],tslib_1.__read(this.invokedRequests),!1)},JsModulesClientStub.prototype.invokedError=function(e,t){return t==this.invokedErrors.filter((function(t){return t==e})).length},JsModulesClientStub}();exports.JsModulesClientStub=JsModulesClientStub;var jsModulesClient=new JsModulesClient;exports.jsModulesClient=jsModulesClient},7775:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runPrioritizedChain=void 0;var n=r(1635),o=r(3652);t.runPrioritizedChain=function(e){return n.__awaiter(void 0,void 0,Promise,(function(){var t,r;return n.__generator(this,(function(i){return t=e.map((function(e){return new o.PromiseWithRetries((function(){return e}))})),r=t.map((function(e,r){return n.__awaiter(void 0,void 0,void 0,(function(){var o,i;return n.__generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.execute()];case 1:return o=n.sent(),i=t[r+1],o&&i&&i.cancel(),[2,{lastResult:o,lastError:null}];case 2:return[2,{lastResult:null,lastError:n.sent()}];case 3:return[2]}}))}))})),[2,Promise.all(r)]}))}))}},9204:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Format=t.Manager=void 0;var r,n=function(){function e(e,t,r,n){this._pluses=/\+/g,this.MaxCookieExpirationDate=new Date(2038,1,19),this._navigator=e?e.navigator:navigator,this._document=e?e.document:document,this._domain=t,this._path=r,this._secure=n}return e.prototype.remove=function(e,t){return null!=this.tryGet(e,r.Raw)&&(this.set(e,"",-1,r.Raw,t),!this.tryGet(e,r.Raw))},e.prototype.tryGetJson=function(e){return this.tryGet(e,r.Json)},e.prototype.tryGet=function(e,t){var n=null;void 0===t&&(t=r.String);for(var o=this._document.cookie,i=o?o.split("; "):[],s=0,a=i.length;s=0;o--){var i="."+r.slice(o).join(".");this.remove(e,i)}this.remove(e,this._document.domain)},e.prototype.isCookieEnabled=function(){try{if(this.isInternetExplorer()){this._document.cookie="testcookie=testcookie";var e=-1!==this._document.cookie.indexOf("testcookie=testcookie");return this.remove("testcookie"),e}e=!!this._navigator.cookieEnabled;return void 0!==this._navigator.cookieEnabled||e||(this._document.cookie="testcookie=testcookie",e=-1!==this._document.cookie.indexOf("testcookie=testcookie"),this.remove("testcookie")),e}catch(e){return!1}},e.prototype.isInternetExplorer=function(){var e=this._navigator.userAgent;if(void 0===e)return!1;var t=e.indexOf("MSIE "),r=e.indexOf("Trident/"),n=e.indexOf("Edge/");return t>0||r>0||n>0},e.prototype.read=function(e,t){t!=r.Raw&&t!=r.String||0!==e.indexOf('"')||(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{switch(e=t==r.Raw?e:decodeURIComponent(e.replace(this._pluses," ")),t){case r.Raw:case r.String:return e;case r.Json:return JSON.parse(e);default:throw new Error("Unknown format")}}catch(e){}},e.prototype.encode=function(e,t){switch(t){case r.Raw:return e;case r.Json:case r.String:return encodeURIComponent(e);default:throw new Error("Unknown format")}},e.prototype.decode=function(e,t){switch(t){case r.Raw:return e;case r.Json:case r.String:return decodeURIComponent(e);default:throw new Error("Unknown format")}},e.prototype.stringifyCookieValue=function(e,t){switch(t){case r.Raw:case r.String:return this.encode(String(e),t);case r.Json:return this.encode(JSON.stringify(e),t);default:throw new Error("Unknown format")}},e.prototype.setBaseDomain=function(){this._domain=this.getBaseDomain()},e.prototype.getBaseDomain=function(){return this._baseDomain||(this._baseDomain=this.computeBaseDomain()),this._baseDomain},e.prototype.computeBaseDomain=function(){if(!this.isCookieEnabled())return null;for(var e=this._document.domain?"."+this._document.domain:"",t=e.length-1;;){if(t<=0)return null;for(;t>=0&&"."!==e[t];)t--;var r=e.substr(t);if(this._document.cookie="domaintest=value; path=/; domain="+r,-1!==this._document.cookie.indexOf("domaintest=value"))return this._document.cookie="domaintest=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT; domain="+r,r;t--}},e}();t.Manager=n,function(e){e[e.Json=0]="Json",e[e.String=1]="String",e[e.Raw=2]="Raw"}(r=t.Format||(t.Format={}))},8054:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CrossDomainRequestFactory=void 0;var n=r(4846),o=r(3129),i=r(2744),s=r(4869),a=r(6e3);t.CrossDomainRequestFactory=function(e,t,r,n,o){return new u(e,t,r,n,o)};var u=function(){function e(e,t,r,n,o){this.timeout=6e4,this._httpMethod=e,this._url=t,this._payload=i.PayloadSerializer.serialize(r),this._essentialQueryStringParameters=i.PayloadSerializer.serialize(n),this._headers=o||{}}return e.prototype.sendAndGetResult=function(){var e=this.sendViaXmlHttpRequest()||this.sendViaJsonp();if(null==e)throw new Error("Browser doesn't support big cross domain requests.");return e},e.prototype.sendAndForget=function(){if(Object.keys(this._headers).length>0){var e=this.sendViaXmlHttpRequest();if(e)return e}var t=this.sendViaBeacon()||this.sendViaImage()||this.sendViaXmlHttpRequest();if(null==t)throw new Error("Browser doesn't support big cross domain requests.");return t},e.prototype.sendViaBeacon=function(){var t=e.appendQueryString(this._url,"transport=beacon");this._essentialQueryStringParameters&&(t=e.appendQueryString(t,this._essentialQueryStringParameters));try{return void 0!==navigator.sendBeacon&&navigator.sendBeacon(t,this._payload)?Promise.resolve():null}catch(e){return null}},e.prototype.sendViaImage=function(){var t=this,r=e.appendQueryString(this._url,"transport=image&"+this._payload);if(r.length>e.maxUrlLength)return null;var n=document.createElement("img");n.width=1,n.height=1,n.src=r;var o=new Promise((function(e,t){n.onload=n.onerror=function(t){n.onload=null,n.onerror=null,e()}})),i=new Promise((function(e,r){setTimeout((function(){return r(new s.Timeout("Timeout in sendViaImage."))}),t.timeout)}));return Promise.race([o,i])},e.prototype.sendViaJsonp=function(){var t=this,r=a.trackerName+"_jsonp_"+e.jsonpRequestNumber++,o=r+"resolve",i=e.appendQueryString(this._url,"transport=jsonp&"+this._payload+'&jsonpCallback=window["'+r+'"]');if(i.length>e.maxUrlLength)return null;var u=document.createElement("script");u.type="text/javascript",u.src=i;var c=new Promise((function(e){window[o]=e,window[r]=function(e){try{window[o](e)}finally{document.getElementsByTagName("head")[0].removeChild(u),u=null;try{delete window[r],delete window[o]}catch(e){window[r]=void 0,window[o]=void 0}}}}));document.getElementsByTagName("head")[0].appendChild(u);var l=new Promise((function(e,r){setTimeout((function(){r(new s.Timeout("Timeout in sendViaJsonp."))}),t.timeout)}));return c=c.then((function(e){if(n.ServiceResponses.isError(e))throw new s.HttpError(e.httpStatusCode,e.errorMessage);return e})),Promise.race([c,l])},e.prototype.sendViaXmlHttpRequest=function(){if("undefined"==typeof XMLHttpRequest)return null;var t=new XMLHttpRequest;if(!("withCredentials"in t))return null;var r=e.appendQueryString(this._url,"transport=XmlHttpRequest");for(var i in this._httpMethod==o.HttpMethods.GET?r=e.appendQueryString(r,this._payload):this._essentialQueryStringParameters&&(r=e.appendQueryString(r,this._essentialQueryStringParameters)),t.open(this._httpMethod,r,!0),t.withCredentials=!0,t.timeout=this.timeout,t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),this._headers)this._headers.hasOwnProperty(i)&&t.setRequestHeader(i,this._headers[i]);var a=new Promise((function(e,r){t.onreadystatechange=function(){if(4==t.readyState)if(t.status>=200&&t.status<300)e(JSON.parse(t.responseText));else if(0==t.status)r(new s.Timeout("Timeout in sendViaXmlHttpRequest."));else{var o=void 0,i=void 0;try{var a=JSON.parse(t.responseText);n.ServiceResponses.isError(a)&&(o=a.errorMessage);var u=a;u.requestId&&(i=u.requestId)}catch(e){}r(new s.HttpError(t.status,o||t.responseText,i))}}}));return this._httpMethod==o.HttpMethods.GET?t.send():t.send(this._payload),a},e.appendQueryString=function(e,t){return e+(e.match(/\?/)?"&":"?")+t},e.maxUrlLength=2036,e.jsonpRequestNumber=0,e}()},3129:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpMethods=void 0;var r=function(){function e(){}return e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e}();t.HttpMethods=r},5980:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomerSessionStorage=void 0;var n=r(4316),o="directCrm-session",i=function(){function e(e){var t=e.cookieManager,r=e.windowOverride,n=e.deviceUUIDVarName,o=e.migrationDeviceUUIDVarName,i=e.isMigrationRequired,s=e.logger,a=e.initialDeviceUUID,u=this;this.isDeviceUUIDCompletelySetOrSyncedResolve=function(){},this._window=r||window,this._cookieManager=t,this.deviceUUIDVarName=n,this.migrationDeviceUUIDVarName=o,this.isMigrationRequired=i,this.logger=s,this.initialDeviceUUID=a,a&&(this.setDeviceUUIDToLocalStorage(this.deviceUUIDVarName,a),this._cookieManager.removeAcrossBaseDomain(this.deviceUUIDVarName),this._cookieManager.set(this.deviceUUIDVarName,a,this._cookieManager.MaxCookieExpirationDate),this.migrationDeviceUUIDVarName&&this.isMigrationRequired&&(this.setDeviceUUIDToLocalStorage(this.migrationDeviceUUIDVarName,a),this._cookieManager.removeAcrossBaseDomain(this.migrationDeviceUUIDVarName),this._cookieManager.set(this.migrationDeviceUUIDVarName,a,this._cookieManager.MaxCookieExpirationDate))),this.syncMigrationVarNames(),this.isDeviceUUIDCompletelySetOrSynced=new Promise((function(e){try{if(u.isDeviceUUIDCompletelySet())return e()}catch(t){return u.logger.logError(t),e()}u.isDeviceUUIDCompletelySetOrSyncedResolve=e}))}return e.prototype.syncMigrationVarNames=function(){if(this.migrationDeviceUUIDVarName&&this.migrationDeviceUUIDVarName!==this.deviceUUIDVarName){var e=this.tryGetDeviceUUIDByVarName(this.migrationDeviceUUIDVarName),t=this.tryGetDeviceUUIDByVarName(this.deviceUUIDVarName);e?this.setDeviceUUID(e):this.isMigrationRequired&&t&&this.setMigrationDeviceUUID(t)}},e.prototype.setSession=function(e){var t=new Date,r=new Date(t.getFullYear()+2,t.getMonth(),t.getDate());this._cookieManager.removeAcrossBaseDomain(o),this._cookieManager.setJson(o,e,r);try{this._window.localStorage[o]=JSON.stringify(e)}catch(e){}},e.prototype.getDeviceUUID=function(){var e=this.tryGetDeviceUUID();if(null==e)throw new Error("DeviceUUID not set");return e},e.prototype.tryGetDeviceUUID=function(){return this.initialDeviceUUID?this.initialDeviceUUID:this.tryGetDeviceUUIDByVarName(this.deviceUUIDVarName)},e.prototype.tryGetDeviceUUIDByVarName=function(e){return this.tryGetDeviceUUIDFromLocalStorageByVarName(e)||this._cookieManager.tryGet(e)},e.prototype.tryGetDeviceUUIDFromLocalStorage=function(){return this.tryGetDeviceUUIDFromLocalStorageByVarName(this.deviceUUIDVarName)},e.prototype.tryGetDeviceUUIDFromLocalStorageByVarName=function(e){try{return this._window.localStorage[e]}catch(e){return null}},e.prototype.provideNewDeviceUUID=function(){if(this.deviceUUIDCookieIsSet()||this.isUsingDeviceUUIDInLocalStorage())this.isDeviceUUIDCompletelySetOrSyncedResolve();else{var e=n.Guid.create().toString();this.setDeviceUUIDToLocalStorage(this.deviceUUIDVarName,e),this.migrationDeviceUUIDVarName&&this.isMigrationRequired&&this.setDeviceUUIDToLocalStorage(this.migrationDeviceUUIDVarName,e),this.isDeviceUUIDCompletelySetOrSyncedResolve()}},e.prototype.setDeviceUUID=function(e){var t=this.initialDeviceUUID||e;this._cookieManager.removeAcrossBaseDomain(this.deviceUUIDVarName),this._cookieManager.set(this.deviceUUIDVarName,t,this._cookieManager.MaxCookieExpirationDate),this.setSession({deviceGuid:t}),this.setDeviceUUIDToLocalStorage(this.deviceUUIDVarName,t),this.migrationDeviceUUIDVarName&&this.isMigrationRequired&&this.setMigrationDeviceUUID(e),this.removeOldLocalStorage(),this.isDeviceUUIDCompletelySetOrSyncedResolve()},e.prototype.setMigrationDeviceUUID=function(e){this._cookieManager.removeAcrossBaseDomain(this.migrationDeviceUUIDVarName),this._cookieManager.set(this.migrationDeviceUUIDVarName,e,this._cookieManager.MaxCookieExpirationDate),this.setDeviceUUIDToLocalStorage(this.migrationDeviceUUIDVarName,e)},e.prototype.setDeviceUUIDToLocalStorage=function(e,t){try{this._window.localStorage[e]=t}catch(e){}},e.prototype.removeOldLocalStorage=function(){try{this._window.localStorage.removeItem(o)}catch(e){}},e.prototype.isUsingDeviceUUIDInLocalStorage=function(){var e=this.tryGetDeviceUUIDFromLocalStorageByVarName(this.deviceUUIDVarName);return Boolean(e)},e.prototype.deviceUUIDCookieIsSet=function(){if(this.initialDeviceUUID)return!0;var e=this._cookieManager.tryGet(this.deviceUUIDVarName);return Boolean(e)},e.prototype.isDeviceUUIDCompletelySet=function(){return!!this.initialDeviceUUID||this.deviceUUIDCookieIsSet()&&this.isUsingDeviceUUIDInLocalStorage()},e}();t.CustomerSessionStorage=i},6454:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultServiceDomain=t.getStaticAssetsDomain=t.targetModern=t.version=void 0,t.version="1.0.791",t.targetModern=!1;var r="api.maestra.io",n="ws.maestra-static.io";t.getStaticAssetsDomain=function(){return-1!=n.indexOf("staticAssetsDomainDefinedByDeployment")?"ws.maestra-static.io":n};t.getDefaultServiceDomain=function(){return-1!=r.indexOf("serviceDomainDefinedByDeployment")?"api.maestra.io":r}},9015:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpError=void 0;var r=function(e,t,r){this.statusCode=e,this.name="HttpError",this.message=t,this.requestId=r;try{throw new Error}catch(e){this.stack=e.stack}};t.HttpError=r},7095:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultipleCallsToCreateError=void 0;var r=function(e){if(this.stack=null,null==e)throw new Error("'settingsDiff' cannot be null");this.name="MultipleCallsToCreateError";var t=e.map((function(e){return"".concat(e.key,": ").concat(e.message)})).join("; ");this.message="".concat("Multiple call for create. These settings are different from current",": ").concat(t)};t.MultipleCallsToCreateError=r},8850:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Timeout=void 0;var r=function(e){this.name="Timeout",this.message=e;try{throw new Error}catch(e){this.stack=e.stack}};t.Timeout=r},4869:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultipleCallsToCreateError=t.Timeout=t.HttpError=void 0;var n=r(9015);Object.defineProperty(t,"HttpError",{enumerable:!0,get:function(){return n.HttpError}});var o=r(8850);Object.defineProperty(t,"Timeout",{enumerable:!0,get:function(){return o.Timeout}});var i=r(7095);Object.defineProperty(t,"MultipleCallsToCreateError",{enumerable:!0,get:function(){return i.MultipleCallsToCreateError}})},2573:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Feature=void 0,function(e){e.UseWebpushErrorLogging="useWebpushErrorLogging",e.UseWebpushFirebaseInitializationLogging="useWebpushFirebaseInitializationLogging",e.UseClientScriptsErrorLogging="useClientScriptsErrorLogging"}(t.Feature||(t.Feature={}))},6540:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.helpersCommands=void 0;var n=r(3e3),o=r(5821),i=r(3969);t.helpersCommands={checkProductSegments:function(e){return(0,n.checkProductSegments)(e)},getDeviceUUID:function(e,t){return(0,o.getDeviceUUID)(e,t)},getEndpointId:i.getEndpointId}},9220:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CacheWithExpiry=void 0;var r=function(){function e(e,t,r){this.dateTimeMs=t,this.expiryMs=e,this.storage=r?JSON.parse(r):{},this.purge()}return e.prototype.purge=function(){var e=this.dateTimeMs();for(var t in this.storage){if(this.storage.hasOwnProperty(t))this.storage[t].expiry0){var f=(0,t.buildRequestDataFor)(e,n,i,(function(e){return{product:e,segmentations:[]}}));s.products=f.requestProductsOrGroups,s.segmentations=f.requestSegmentations,a=f.responseFromCache,c=(0,t.toCacheKeyCollectionIdMap)(n,t.getProductOrGroupKey),p=f.requestedSegmentations}if(null!=o&&o.length>0){var h=(0,t.buildRequestDataFor)(r,o,i,(function(e){return{productGroup:e,segmentations:[]}}));s.productGroups=h.requestProductsOrGroups;for(var g=0;g0&&(d=(0,t.toCacheKeyCollectionIdMap)(i,t.getSegmentationKey)),{request:s,productResponseFromCache:a,productGroupResponseFromCache:u,productOrderMap:c,productGroupOrderMap:l,segmentationOrderMap:d}};t.buildRequestDataFor=function(e,r,n,o){for(var i=[],s=[],a=[],u={},c=0;c0&&(0,t.buildCompleteResponseFor)(e,n.productResponseFromCache,o.products,n.productOrderMap,n.segmentationOrderMap),null!=o.productGroups&&o.productGroups.length>0&&(0,t.buildCompleteResponseFor)(r,n.productGroupResponseFromCache,o.productGroups,n.productGroupOrderMap,n.segmentationOrderMap);for(var s=0;s50)return Promise.reject(new Error("Too many products and product groups for a single call"));if(e.segmentations.length>10)return Promise.reject(new Error("Too many segmentations for a single call"));var l="".concat(o.trackerName,"ProductSegmentsCache"),d="".concat(o.trackerName,"ProductGroupSegmentsCache"),p=new n.CacheWithExpiry(3e5,Date.now,window.localStorage.getItem(l)),f=new n.CacheWithExpiry(3e5,Date.now,window.localStorage.getItem(d)),h=(0,t.buildRequestData)(p,f,e.products,e.productGroups,e.segmentations);if(0==(null===(u=h.request.products)||void 0===u?void 0:u.length)&&0==(null===(c=h.request.productGroups)||void 0===c?void 0:c.length)){var g=(0,t.buildCompleteResponse)(p,f,h,{products:[],productGroups:[]});return new Promise((function(t,r){e.onSuccess(g.response),t()}))}return new Promise((function(r,n){window[o.trackerName]("sync",{operation:"Tracker.CheckProductSegments",data:h.request,onError:function(t){e.onError(t),n(t)},onSuccess:function(n){var o=(0,t.buildCompleteResponse)(p,f,h,n);window.localStorage.setItem(l,o.productCache.serialize()),window.localStorage.setItem(d,o.productGroupCache.serialize()),e.onSuccess(o.response),r()}})}))}},5821:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDeviceUUID=void 0;t.getDeviceUUID=function(e,t){return t(e),Promise.resolve()}},3969:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEndpointId=void 0;var n=r(6e3);t.getEndpointId=function(e,t){var r;return t(null!==(r=window[n.endpointVariableName])&&void 0!==r?r:e.endpointId),Promise.resolve()}},2802:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaestraTracker=void 0;var n=r(1635),o=r(3829),i=r(7486),s=r(154),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.initialize=function(e){if(window.mindboxInitialized||window.maestraInitialized)throw new Error("Multiple attepmts to initialize tracker. Look for duplicate maestra script-blocks.");var r,n,o=!1;null!=window.maestra&&null!=window.maestra.queue?(r=window.maestra.queue,n="maestra"):null!=window.mindbox&&null!=window.mindbox.queue?(r=window.mindbox.queue,o=!0,n="mindbox"):r=new Array,(0,i.setBatchedModuleInitialized)(!1);var a=new t(r,{deviceUUIDVarName:t.deviceUUIDVarName,migrationDeviceUUIDVarName:t.migrationDeviceUUIDVarName,isMigrationRequired:o},n,e);if(window.maestra=a.createProcess("maestra"),window.maestraInitialized=!0,window.maestra("shopify.create",{}),window.mindbox)window.mindbox=a.createProcess("mindbox"),window.mindboxInitialized=!0;else{window.maestraCreateCompatibilityTracker=function(e){var t;return!(e&&!window.mindbox)&&(r=(null===(t=window.mindbox)||void 0===t?void 0:t.queue)||[],window.mindbox=a.createProcess("mindbox"),window.mindboxInitialized=!0,a._trackerName="mindbox",(0,s.iterateQueue)(r,(function(e,t){"create"==e[0]&&(a.invoke(e.shift(),e),r.splice(t,1))})),(0,s.iterateQueue)(r,(function(e,t){return a.invoke(e.shift(),e)})),!0)};var u=50,c=function(){window.maestraCreateCompatibilityTracker(!0)||(u=Math.min(2*u,1e4),setTimeout(c,u))};c()}},t.dispose=function(){delete window.mindbox,delete window.maestra,delete window.mindboxInitialized,delete window.maestraInitialized,delete window.maestraBatchedModulesInitialized,delete window.MaestraEndpointSettings,delete window.MaestraActualEndpointId},t.deviceUUIDVarName="maestraDeviceUUID",t.migrationDeviceUUIDVarName="mindboxDeviceUUID",t}(o.Tracker);t.MaestraTracker=a},7486:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModuleManager=t.setBatchedModuleInitialized=t.getBatchedModuleInitialized=t.SdkCommandsQueue=void 0;var n=r(1635),o=r(8397),i=r(6454),s=r(6e3),a=r(561);t.SdkCommandsQueue=[];var u="maestraBatchedModulesInitialized".split(",");t.getBatchedModuleInitialized=function(){return u.some((function(e){return window[e]}))};t.setBatchedModuleInitialized=function(e){u.forEach((function(t){window[t]=e}))};var c=function(){function e(e){var t=e.trackerSettings,r=e.sessionStorage,n=e.deviceUUIDObtainingPromiseProvider,o=e.logger;if(this.loadingModulePromises={},this.previousCommandPromise=Promise.resolve(),this.isSupportedByBrowserCommand=function(e,t){return"isSupportedByBrowser"===e},null==t)throw new Error("'trackerSettings' cannot be null");if(null==r)throw new Error("'sessionStorage' cannot be null");if(null==n)throw new Error("'deviceUUIDObtainingPromiseProvider' cannot be null");if(null==o)throw new Error("'logger' cannot be null");this.trackerSettings=t,this.sessionStorage=r,this.deviceUUIDObtainingPromiseProvider=n,this.logger=o}return e.prototype.tryGetModuleCommand=function(e,t,r){return void 0===r&&(r={getModuleInfo:o.getModuleInfo,moduleExists:o.moduleExists}),n.__awaiter(this,void 0,Promise,(function(){var o,i,s,a,u,c;return n.__generator(this,(function(n){switch(n.label){case 0:return(o=e.indexOf("."))<=0?[2,null]:(i=e.substr(0,o),r.moduleExists(i)?(s=r.getModuleInfo(i),a=i,s.getModuleNameToReplace?[4,t]:[3,3]):[3,4]);case 1:return u=n.sent(),[4,s.getModuleNameToReplace(u)];case 2:a=n.sent(),n.label=3;case 3:return c=e.substr(o+1),[2,{moduleName:r.moduleExists(a)?a:i,command:c}];case 4:return[2,null]}}))}))},e.prototype.invokeModule=function(e,r){var n=this,i=e.moduleName,s=e.command;if(r instanceof Array&&r.length>1)throw new a.SdkModuleError("Too many arguments for command.",i);var u=r instanceof Array?r[0]:r,c=(0,o.getModuleInfo)(i),l=c.isSupportedByBrowser();if(!c.requiresSdkInitialization()||(0,t.getBatchedModuleInitialized)())if(this.isSupportedByBrowserCommand(s,u)){if(null==u||"function"!=typeof u.callback)throw new a.SdkModuleError('Callback for command "isSupportedByBrowser" not set.',i);u.callback(l)}else l&&this.moduleThen(i,(function(e){var t=e.commands&&e.commands[s]||e[s];return t?t(n.trackerSettings,n.sessionStorage.getDeviceUUID(),u):Promise.reject(new a.SdkModuleError('Unknown command "'.concat(s,'".'),i))}));else t.SdkCommandsQueue.push(["".concat(i,".").concat(s),u])},e.prototype.moduleThen=function(e,t){var r=this,a=this.deviceUUIDObtainingPromiseProvider();if(null==a)throw new Error("Previous request promise is expected to be set. "+"'".concat(s.trackerName,'("create")\' is expected to be called ahead of every other command'));if(null==this.loadingModulePromises[e]){var u=new Promise((function(t,n){(0,o.loadModule)(r.trackerSettings,e,i.version,r.logger).then((function(e){return t(e)}),(function(e){return n(e)}))}));this.loadingModulePromises[e]=Promise.all([u,a]).then((function(e){return n.__awaiter(r,void 0,void 0,(function(){var t,r;return n.__generator(this,(function(n){switch(n.label){case 0:return(null===(t=e[0].hooks)||void 0===t?void 0:t.onLoad)?[4,null===(r=e[0].hooks)||void 0===r?void 0:r.onLoad(this.trackerSettings)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2,e[0]]}}))}))}),(function(e){return Promise.reject(e)}))}this.loadingModulePromises[e].then((function(e){r.previousCommandPromise=r.previousCommandPromise.then((function(){return new Promise((function(n){t(e).then(n,(function(e){r.logger.logError(e),n()}))}))}))}),(function(e){return r.logger.logError(e)}))},e}();t.ModuleManager=c},1437:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SdkCommandsQueue=t.ModuleManager=void 0;var n=r(7486);Object.defineProperty(t,"ModuleManager",{enumerable:!0,get:function(){return n.ModuleManager}}),Object.defineProperty(t,"SdkCommandsQueue",{enumerable:!0,get:function(){return n.SdkCommandsQueue}})},2744:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PayloadSerializer=void 0;var r=function(){function e(){}return e.prototype.serialize=function(e,t){var r=[],n=!1;if("string"!=typeof e)for(var o in e)if(e.hasOwnProperty(o)){n=!0;var i=t?t+"."+o:o,s=e[o];if(Array.isArray(s))for(var a=0;a Bot protection challenge failed")),[3,4];case 4:return[2,void 0]}}))}))},e.prototype.sendToTrackerAndForget=function(e,t,r,o,i){return n.__awaiter(this,void 0,Promise,(function(){var a,u,c=this;return n.__generator(this,(function(n){switch(n.label){case 0:return[4,this.getHeaders(i)];case 1:return a=n.sent(),u=this.createCrossDomainRequest(s.HttpMethods.POST,this._serviceDomain+e,t,r,o,a),this._sessionStorage.isDeviceUUIDCompletelySet()?[2,u.sendAndForget()]:[2,u.sendAndGetResult().then((function(e){return c.processResponse(e)}),(function(e){return c.processFailure(e)}))]}}))}))},e.prototype.sendToTrackerAndGetResult=function(e,t,r,o,i){return n.__awaiter(this,void 0,Promise,(function(){var a,u=this;return n.__generator(this,(function(n){switch(n.label){case 0:return[4,this.getHeaders(i)];case 1:return a=n.sent(),[2,this.createCrossDomainRequest(s.HttpMethods.POST,this._serviceDomain+e,t,r,o,a).sendAndGetResult().then((function(e){return u.processResponse(e),e}),(function(e){return u.processFailure(e)}))]}}))}))},e.prototype.sendToTrackerWithoutSessionAndGetResult=function(e,t){return this.createCrossDomainRequest(s.HttpMethods.POST,this._serviceDomain+e,t).sendAndGetResult()},e.prototype.createCrossDomainRequest=function(e,t,r,n,o,s){return t=this.getProtocol()+t+(t.match(/\?/)?"&":"?")+"version="+i.version,n&&n.length>0&&(t+="&"+n.map((function(e){return e.name+"="+e.value})).join("&")),this._crossDomainRequestFactory(e,t,r,o,s)},e.prototype.sendToDirectCrm=function(e,t){if(!this._projectDomain)throw new Error("You should initialize tracker with projectDomain property.");var r={deviceGuid:this._sessionStorage.tryGetDeviceUUID()};return t.customerSession=encodeURIComponent(JSON.stringify(r)),t.deviceUUID=this._sessionStorage.tryGetDeviceUUID(),this.createCrossDomainRequest(s.HttpMethods.GET,this._projectDomain+e,t).sendAndGetResult()},e.prototype.processResponse=function(e){if(!e.deviceUUID)throw this._sessionStorage.provideNewDeviceUUID(),new Error("Incorrect server response: ".concat(JSON.stringify(e)));this._sessionStorage.setDeviceUUID(e.deviceUUID)},e.prototype.processFailure=function(e){throw this._sessionStorage.provideNewDeviceUUID(),e},e}();t.RequestSender=u},3908:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IanaTimeZoneProvider=void 0;var r=function(){function e(){}return e.prototype.tryGetTimeZone=function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return null}},e}();t.IanaTimeZoneProvider=r},3829:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tracker=void 0;var n=r(1635);r(1421);var o=r(6454),i=r(6454),s=r(9929),a=r(4869),u=r(9204),c=r(5980),l=r(9986),d=r(6e3),p=r(1437),f=r(6540),h=r(2536),g=r(4846),v=r(3908);r(2573);var m=r(7095),y=r(4304),_=r(666),w=r(7732),b=r(154),S=r(7486),D={queue:[]},P=[],k=function(){function e(e,t,r,f){var h=t.deviceUUIDVarName,g=t.migrationDeviceUUIDVarName,_=t.isMigrationRequired,k=void 0!==_&&_,E=this;this._previousRequestPromise=null,this.createRequestsCounter=0,this.endpointSettingsFetching={promise:Promise.resolve(null),resolve:function(){}},this.createProcess=function(e){var t=function(){for(var t=[],r=0;r0&&(n.tags=t),Object.keys(r).length>0&&(n.extra=r),n.tags||n.extra)return n}},e}();t.TrackerLogger=u},6e3:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareSettings=t.getScriptsRoot=t.getStaticAssetsRoot=t.getEffectiveApiUri=t.endpointSettingsVariableName=t.endpointVariableName=t.trackerName=void 0;var n=r(1635);t.trackerName="maestra",t.endpointVariableName="MaestraActualEndpointId",t.endpointSettingsVariableName="MaestraEndpointSettings";t.compareSettings=function(e,t){var r,i,s=new Array;try{for(var a=n.__values(Object.keys(e)),u=a.next();!u.done;u=a.next()){var c=u.value,l=o(c,e,t);null!=l&&s.push(l)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return 0===s.length?null:s};var o=function(e,t,r){var n;switch(e){case"serviceDomain":case"staticAssetsDomain":n=null;break;case"redirectedFrom":n=i(t[e],r[e])?null:"redirectedFrom objects are different";break;default:n=t[e]===r[e]?null:"".concat(t[e]," !== ").concat(r[e])}return null==n?null:{key:e,message:n}},i=function(e,t){return e.requestUrl===t.requestUrl&&e.referrerUrl===t.referrerUrl},s=function(e){if(null==e)throw new Error("'settings' cannot be null");var t=e.useHttp?"http":"https",r=null!=e.serviceDomain?e.serviceDomain:"api.maestra.io";return"".concat(t,"://").concat(r)};t.getEffectiveApiUri=s;t.getStaticAssetsRoot=function(e){if(null==e)throw new Error("'settings' cannot be null");var t=e.useHttp?"http":"https",r=null!=e.staticAssetsDomain?e.staticAssetsDomain:"ws.maestra-static.io";return"".concat(t,"://").concat(r)};t.getScriptsRoot=function(e){return s(e)}},995:function(e,t,r){"use strict";var n;r.r(t),r.d(t,{BrowserMicroSentryClient:function(){return g}}),function(e){e.fatal="fatal",e.error="error",e.warning="warning",e.log="log",e.info="info",e.debug="debug",e.critical="critical"}(n||(n={}));const o=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,i=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,s=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a="?",u=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function c(e){return(e&&e.message||"No error message").split("\n").filter((e=>!!e))[0]}function l(e){try{const t=function(e){if(!e.stack)return null;const t=[],r=e.stack.split("\n");let n,u;for(let c=0;c{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}}function p(e,t){return"[object RegExp]"===Object.prototype.toString.call(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t)}const f=100;function h(){return window}class g extends d{constructor(e,t=h()){super(e),this.options=e,this.window=t,this.breadcrumbsKeyName="breadcrumbs",this.destroyed=!1,this._state={};const{plugins:r=[],beforeSend:n=(e=>e),beforeBreadcrumb:o=(e=>e),blacklistUrls:i=[],ignoreErrors:s=[],release:a,maxBreadcrumbs:u=f}=this.options||{}||[];this.plugins=r.map((e=>new e(this))),this.beforeSend=n,this.beforeBreadcrumb=o,this.blacklistUrls=i,this.ignoreErrors=s,this.release=a,this.maxBreadcrumbs=u>=0?u:f}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",e?{...e}:void 0),this}clone(){const e=new g({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){const t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){const t=this.beforeBreadcrumb(e);t&&(this.extendState({[this.breadcrumbsKeyName]:[{timestamp:Date.now()/1e3,...t}]}),this.trimBreadcrumbs())}setBreadcrumbs(e){this.setKeyState(this.breadcrumbsKeyName,e),this.trimBreadcrumbs()}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach((e=>{e.destroy&&e.destroy()}))}isIgnoredError(e){return!!this.ignoreErrors.length&&this.getPossibleEventMessages(e).some((e=>this.ignoreErrors.some((t=>p(e,t)))))}extractQueryString(e){let t=e;if(t){t.startsWith("/")&&(t=`http://prefix${t}`);try{const e=new URL(t).search.slice(1);return e.length?e:void 0}catch(e){return}}}getRequestBlank(){const e=this.window.location.toString();return{request:{url:e,query_string:this.extractQueryString(e),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){if(this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e))return;const t=this.beforeSend({release:this.release,...e});t&&(super.send(t),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:r=""}=e.exception.values&&e.exception.values[0]||{};return[`${r}`,`${t}: ${r}`]}catch(e){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;const t=this.getEventFilterUrl(e);return!!t&&this.blacklistUrls.some((e=>p(t,e)))}getEventFilterUrl(e){try{if(e.exception){const t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(e){return null}}extendState(e){this._state=Object.keys(e).reduce(((t,r)=>{const n=this._state[r],o=Array.isArray(n)?n:null,i=e[r],s=Array.isArray(i)?i:null;return{...t,[r]:o||s?[...o||[],...s||[]]:{..."string"!=typeof n?n:{},..."string"!=typeof i?i:{}}}}),this._state)}setKeyState(e,t){this._state[e]=t}getKeyState(e){return this._state[e]}trimBreadcrumbs(){const e=this.getKeyState(this.breadcrumbsKeyName);e&&(e.length??0)>this.maxBreadcrumbs&&this.setKeyState(this.breadcrumbsKeyName,this.maxBreadcrumbs>0?e.slice(-this.maxBreadcrumbs):[])}}},1635:function(e,t,r){"use strict";r.r(t),r.d(t,{__addDisposableResource:function(){return T},__assign:function(){return i},__asyncDelegator:function(){return k},__asyncGenerator:function(){return P},__asyncValues:function(){return E},__await:function(){return D},__awaiter:function(){return h},__classPrivateFieldGet:function(){return x},__classPrivateFieldIn:function(){return R},__classPrivateFieldSet:function(){return O},__createBinding:function(){return v},__decorate:function(){return a},__disposeResources:function(){return q},__esDecorate:function(){return c},__exportStar:function(){return m},__extends:function(){return o},__generator:function(){return g},__importDefault:function(){return I},__importStar:function(){return U},__makeTemplateObject:function(){return C},__metadata:function(){return f},__param:function(){return u},__propKey:function(){return d},__read:function(){return _},__rest:function(){return s},__runInitializers:function(){return l},__setFunctionName:function(){return p},__spread:function(){return w},__spreadArray:function(){return S},__spreadArrays:function(){return b},__values:function(){return y}}); /****************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t,r,n,o,i){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,u=n.kind,c="getter"===u?"get":"setter"===u?"set":"value",l=!t&&e?n.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),p=!1,f=r.length-1;f>=0;f--){var h={};for(var g in n)h[g]="access"===g?{}:n[g];for(var g in n.access)h.access[g]=n.access[g];h.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(e||null))};var v=(0,r[f])("accessor"===u?{get:d.get,set:d.set}:d[c],h);if("accessor"===u){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(a=s(v.get))&&(d.get=a),(a=s(v.set))&&(d.set=a),(a=s(v.init))&&o.unshift(a)}else(a=s(v))&&("field"===u?o.unshift(a):d[c]=a)}l&&Object.defineProperty(l,n.name,d),p=!0}function l(e,t,r){for(var n=arguments.length>2,o=0;o0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function w(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{(r=o[e](t)).value instanceof D?Promise.resolve(r.value.v).then(u,c):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function k(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:D(e[n](t)),done:!1}:o?o(t):t}:o}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=y(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var M=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function U(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&v(t,e,r);return M(t,e),t}function I(e){return e&&e.__esModule?e:{default:e}}function x(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function O(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function R(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function T(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var j="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function q(e){function t(t){e.error=e.hasError?new j(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}t.default={__extends:o,__assign:i,__rest:s,__decorate:a,__param:u,__metadata:f,__awaiter:h,__generator:g,__createBinding:v,__exportStar:m,__values:y,__read:_,__spread:w,__spreadArrays:b,__spreadArray:S,__await:D,__asyncGenerator:P,__asyncDelegator:k,__asyncValues:E,__makeTemplateObject:C,__importStar:U,__importDefault:I,__classPrivateFieldGet:x,__classPrivateFieldSet:O,__classPrivateFieldIn:R,__addDisposableResource:T,__disposeResources:q}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};!function(){"use strict";__webpack_require__(2802).MaestraTracker.initialize()}()})();