forked from bombastictranz/Slack-api-platform
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtag.js.download
2 lines (2 loc) · 43.5 KB
/
tag.js.download
1
2
var CJApi;!function(){"use strict";var e={885:function(e,t){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0;var n={policyApiUrl:"https://www.sjwoe.com/policy"},o=function(){try{return n}catch(e){return n}}();t.config=r(r({},o),{version:"88b3872b1"})},375:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.consentForAdvertiser=void 0;var n,o=r(232),i=r(569),a=r(357),c="cjConsent";function s(e){var t=function(e){return"Y"==e};if(new RegExp("\\d+\\|[YN]\\|[YN0]\\|[YN]\\|\\d+").test(e)){var r=e.split("|");return{version:r[0],isInGdprZone:t(r[1]),dtmConsent:r[2],isInterimPeriod:t(r[3]),loyaltyExpiration:r[4]}}}function u(e){return atob(decodeURIComponent(e))}function l(e){return encodeURI(btoa((r=function(e){return e?"Y":"N"},"".concat((t=e).version,"|").concat(r(t.isInGdprZone),"|").concat(t.dtmConsent.toString(),"|").concat(r(t.isInterimPeriod),"|").concat(t.loyaltyExpiration))));var t,r}function d(e,t,r){(0,a.addCookie)(e,c,t,r)}function f(){return v(!1)}function v(e,t){return{isDeviceAccessGranted:e,encodedCjConsent:t}}!function(e){e.CONFIRMED="Y",e.DECLINED="N",e.NEVER_ASKED="0"}(n||(n={})),t.consentForAdvertiser=function(e,t,r,p){var y=r?s(u(r)):void 0;if(y?function(e,t,r){d(t,l(e),r)}(y,e,t):y=function(e){var t=function(e){return(0,a.getCookieUriDecoded)(c,e)}(e.document);return t?s(u(t)):void 0}(e),y)return v(function(e,t){return!e.isInGdprZone||!!function(e,t){var r=Number(e);return!isNaN(r)&&0!==r&&r>t.getTime()}(e.loyaltyExpiration,t)||e.dtmConsent==n.CONFIRMED||e.dtmConsent!=n.DECLINED&&e.isInterimPeriod}(y,t),r=l(y));try{if(p){var g=function(e){return["AT","BE","BG","CY","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IS","IT","LI","LT","LU","LV","MT","NL","NO","PL","PT","RO","SE","SI","SK"].includes(e)}(p);return function(e,t,r){var o=!e,i=l({version:"0",isInGdprZone:e,dtmConsent:n.NEVER_ASKED,isInterimPeriod:!1,loyaltyExpiration:"0"});return d(r,i,t),v(o,i)}(g,t,e)}return f()}catch(e){o.reporter.send({tag:"consentForAdvertiserUnexpectedError",payload:"Unexpected error: ".concat((0,i.errorMessage)(e)),logLevel:"ERROR"})}return f()}},357:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.addCookie=t.getCookieUriDecoded=t.getCookie=t.COOKIE_LIFETIME_MILLIS=void 0;var n=r(569);function o(e,t){var r,o=e+"=";return null===(r=t.cookie.split("; ").find((function(e){return(0,n.startsWith)(o,e)})))||void 0===r?void 0:r.substring(o.length)}t.COOKIE_LIFETIME_MILLIS=34128e6,t.getCookie=o,t.getCookieUriDecoded=function(e,t){var r=o(e,t);return r?decodeURIComponent(r):r},t.addCookie=function(e,r,n,i){if(null!=n&&""!==n)return function a(c){if(!(c>3)){var s=e.location.hostname;!function(e,r,n,o,i){var a=function(e,r,n,o,i){var a=i?new Date(i.getTime()+t.COOKIE_LIFETIME_MILLIS).toUTCString():"",c=["".concat(r,"=").concat(n),"expires=".concat(a),"path=/"];return"https:"===o&&c.push("secure"),""!==e&&c.push("domain="+e),c.join(";")}(e,r,o,n.location.protocol,i);!function(e,t){e.cookie=t}(n.document,a)}("localhost"===s?"localhost":".".concat(s.split(".").splice(-c).join(".")),r,e,n,i);var u=o(r,e.document);return u===n?u:a(c+1)}}(2)}},648:function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function c(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,c)}s((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.FetchRetrier=void 0;var i=r(232),a=r(569),c=function(){function e(t,r){var c=this;this.fetchRetry=function(e,t){return n(c,void 0,void 0,(function(){var r,n,c,s,u,l,d;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),[4,this.httpCall(e,t)];case 1:return r=o.sent(),[200,204].includes(r.status)?[3,3]:(n=202==r.status?"202":"".concat(r.status.toString()[0],"xx"),[4,(0,a.readBlobFromBodyInit)(null==t?void 0:t.body)]);case 2:if(c=o.sent(),s=this.isOrder(c)?"-WithOrder":"",u={tag:"PageInfoStatus".concat(n).concat(s),payload:"Status code: ".concat(r.status,". Message: ").concat(r.statusText,". For url: ").concat(e,". These were the parameters: ").concat(JSON.stringify(t)," with body : ").concat(c),logLevel:"ERROR"},i.reporter.send(u),!r.ok)return[2,this._retryCall("Status code: ".concat(r.status,". Message: ").concat(r.statusText),e,t)];o.label=3;case 3:return[2,r];case 4:return l=o.sent(),d=l instanceof Error?l.message:"non-error object thrown: ".concat(l),[2,this._retryCall("Message: ".concat(d),e,t)];case 5:return[2]}}))}))},this._retryCall=function(t,r,s){return n(c,void 0,void 0,(function(){var n;return o(this,(function(o){switch(o.label){case 0:return this.retryCount>0?[4,(0,a.readBlobFromBodyInit)(null==s?void 0:s.body)]:[3,3];case 1:return n=o.sent(),i.reporter.send({tag:"retryingFetch",payload:"".concat(t,". For url: ").concat(r,". ").concat(this.retryCount," attempts left. These were the parameters: ").concat(JSON.stringify(s)," with body : ").concat(n),logLevel:"ERROR"}),[4,new e(this.httpCall,this.retryCount-1).fetchRetry(r,s)];case 2:return[2,o.sent()];case 3:throw Error("Exceeded max number of retry attempts.")}}))}))},this.httpCall=t,this.retryCount=r}return e.prototype.isOrder=function(e){return"string"==typeof e&&new RegExp(/payload.*(orders|order)%/).test(e)},e}();t.FetchRetrier=c},868:function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function c(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,c)}s((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeCjEvent=t.getConfigWithDefaults=t.innerCJApi=t.IntegrationTypes=t.ICJApiDefaults=t.CJ_PARTNER_KEY=t.CJ_USER_KEY=void 0;var a=r(614),c=r(375),s=r(489),u=r(569),l=r(357),d=r(189),f=r(232),v=r(527),p=r(885),y=r(648),g=r(304),h=r(485),m=r(714),C=r(651);function b(e,t,r,n,o,i){var a=(0,g.liveRampWorkflow)(o,e,t,i.liveRamp,r,n),c=(0,h.addRevLifterScriptToDom)(o.document,i.revLifter);return{liveRamp:a,tvScientific:(0,m.addTvScientificUniversalPixelToDom)(o.document,i.tvScientific),revLifter:c}}function w(e,r,n){return void 0===n&&(n=fetch),o(this,void 0,void 0,(function(){var o,v,p,y,g,h,m,C,w,S,E,T,R,P;return i(this,(function(i){switch(i.label){case 0:return o=e.win,v=e.date,p=e.countryCode,y=e.partnership,L=g=o.location.search,h=(0,u.getValueFromQueryString)(L,"cjData"),m=function(e){return(0,u.getValueFromQueryString)(e,"cjevent")}(g),C=function(e,t,r){return f.reporter.send({tag:"getTagData",payload:JSON.stringify({tagData:null==e?void 0:e.tagData,cjDataQueryString:t,cjEventQueryString:r}),logLevel:"INFO"}),!(null==e?void 0:e.tagData)||t&&r?{}:e.tagData}(o.CJClientApi,h,m),w=h||C.cjdata,S=m||C.cjevent,E=I(S),T=(0,c.consentForAdvertiser)(o,v,w,p),f.reporter.send({tag:"afterConsentForAdvertiser",payload:JSON.stringify(T),logLevel:"INFO"}),R=function(e,r){if(e.isDeviceAccessGranted){var n=(0,l.getCookieUriDecoded)(t.CJ_USER_KEY,r);if(n)return f.reporter.send({tag:"cjUserFound",payload:n,logLevel:"INFO"}),n;var o=(0,a.v4)();return f.reporter.send({tag:"newCjUserCreated",payload:o,logLevel:"INFO"}),o}return a.NIL}(T,o.document),function(e,r){var n=e.win,o=e.date,i=e.setCookieUrl,a=e.path,c=e.tagId,u=e.integrationType,v=r.consent,p=r.cjevent,y=r.cjUser;if(!O(u)&&v.isDeviceAccessGranted&&function(e,r,n){(0,l.addCookie)(e,t.CJ_USER_KEY,n,r)}(n,o,y),v.isDeviceAccessGranted&&!!p&&function(e,t,r){(0,l.addCookie)(e,s.CjEventKeys.DocumentCookie,r,t),(0,s.setStorageItem)(s.CjEventKeys.LocalStorage,r,e.localStorage),(0,s.setStorageItem)(s.CjEventKeys.SessionStorage,r,e.sessionStorage)}(n,o,p),!!p){var g=function(e,r,n,o,i,a,c){return n?function(e,r,n,o){var i=[];return n.isDeviceAccessGranted&&r&&i.push("cje=".concat(r)),n.isDeviceAccessGranted&&o&&i.push("".concat(t.CJ_USER_KEY,"=").concat(o)),n.encodedCjConsent&&i.push("cjConsent=".concat(n.encodedCjConsent)),"".concat(e,"?").concat(i.join("&"))}(n,r,e,c):function(e,t,r,n,o,i){var a=["hasConsent=".concat(o.isDeviceAccessGranted)];return o.encodedCjConsent&&a.push("cjConsent=".concat(o.encodedCjConsent)),"".concat(_(e)).concat(k(t),"/tags/images/").concat(r,"/").concat(n,"/").concat(i,"/seteventid.png?").concat(a.join("&"))}(o,i,r,a,e,c)}(v,p,i,n,a,c,y);f.reporter.send({tag:"setEventPng",payload:g,logLevel:"INFO"}),(0,d.addPixelToDom)(n.document,g,"cjSetEventIdPixel")}}(e,{consent:T,cjevent:E,cjUser:R}),P=b(v,p,T,R,o,y),[4,j(e,{tagUuid:r,consent:T,cjevent:E,cjUser:R,partnershipStatuses:P,countryCode:p,partnership:y},n)];case 1:return i.sent(),[2,{cjevent:E,cjUser:R,consent:T}]}var L}))}))}function S(e){var r,o=n(n({},t.ICJApiDefaults),e),i=function(e,t,r){var o,i;if(r&&e){var a=r.toLowerCase().split("|").map((function(e){return e.trim()})),c={liveRamp:n(n({},t.liveRamp),{enabled:a.includes("liveramp")}),revLifter:n(n({},t.revLifter),{enabled:a.includes("revlifter"),key:{mode:C.PartnerMode.LIVE,value:null===(o=t.revLifter.key)||void 0===o?void 0:o.value}}),tvScientific:n(n({},t.tvScientific),{enabled:a.includes("tvscientific"),key:{mode:C.PartnerMode.LIVE,value:null===(i=t.tvScientific.key)||void 0===i?void 0:i.value}})};return console.group("Configuration override by Cookie"),console.log("cjPartner: ".concat(r)),console.log(c),console.groupEnd(),c}}(null!==(r=e.flags.enablePerformance)&&void 0!==r&&r,e.partnership,(0,l.getCookie)(t.CJ_PARTNER_KEY,e.win.document));if(i){var a={partnership:i};return n(n({},o),a)}return o}function E(e,t,r){var n=this;return function(a){return o(n,void 0,void 0,(function(){var n,o,c,s,u,l,p,y,g;return i(this,(function(i){switch(i.label){case 0:return f.reporter.send({tag:"sendOrderDirectlyCalled",payload:"TagId directly called sendOrder function: ".concat(e.tagId),logLevel:"ERROR"}),n=e.integrationDomain,o=e.integrationType,c=e.win,[4,r];case 1:if(void 0===(s=i.sent()))throw new Error("orderReady undefined");return u=s.cjevent,l=s.cjUser,p=s.consent,b(e.date,e.countryCode,p,l,c,e.partnership),(0,m.addTvScientificPurchaseScriptToDom)(c.document,c.cj,e.partnership.tvScientific),y=I(u),g=(0,v.getCjEvents)(c,p,y,a),(0,d.transact)(c,g,n,o,t,l,a),[2]}}))}))}}function j(e,t,r){var a,c;return o(this,void 0,void 0,(function(){var o,s,l,p,y,g,h,C,b,w,S,E,j,I,O,T,_,k,L;return i(this,(function(i){switch(i.label){case 0:return o=t.tagUuid,s=t.consent,l=t.cjevent,p=t.cjUser,y=t.partnershipStatuses,g=t.countryCode,h=t.partnership,C=e.win,b=e.path,w=e.tagId,S=e.integrationDomain,E=e.integrationType,(j=null===(a=C.cj)||void 0===a?void 0:a.order)&&f.reporter.send({tag:"foundOrder",payload:JSON.stringify(j),logLevel:"INFO"}),(I=null===(c=C.cj)||void 0===c?void 0:c.orders)&&f.reporter.send({tag:"foundOrders",payload:JSON.stringify(I),logLevel:"INFO"}),O=(0,m.addTvScientificPurchaseScriptToDom)(C.document,C.cj,h.tvScientific),y.tvScientific=n({universalPixelIsCalled:y.tvScientific.universalPixelIsCalled},O),T=(0,v.getCjEvents)(C,s,l,j),(0,d.transact)(C,T,S,E,o,p,j),null==I||I.forEach((function(e){return(0,d.transact)(C,T,S,E,o,p,e)})),f.reporter.send({tag:"castCJObject",payload:JSON.stringify(C.cj),logLevel:"INFO"}),f.reporter.send({tag:"prepareMakePageInfo",payload:JSON.stringify({tagUuid:o,cjObject:C.cj,cjEvents:T,consent:s.isDeviceAccessGranted,cjUser:p,cookie:C.document.cookie,href:C.location.href,partnershipStatuses:y,countryCode:g}),logLevel:"INFO"}),_=R(o,C.cj,T,s.isDeviceAccessGranted,p,C.document.cookie,C.location.href,y,g),f.reporter.send({tag:"generatedPageInfoBody",payload:JSON.stringify(_),logLevel:"INFO"}),k=function(e,t,r,n,o,i,a,c,s){var u=R(e,t,r,n,o,i,a,c,s),l=new Blob([u],{type:"application/x-www-form-urlencoded"});return null!==u&&0!==l.size||f.reporter.send({tag:"InvalidPageInfoBlob",payload:"PageInfo is empty or could not be converted into a valid Blob type",logLevel:"ERROR"}),l}(o,C.cj,T,s.isDeviceAccessGranted,p,C.document.cookie,C.location.href,y,g),[4,(0,u.getBlobText)(k)];case 1:return L=i.sent(),f.reporter.send({tag:"generatedPageInfo",payload:JSON.stringify(L),logLevel:"INFO"}),[4,P(w,C,b,s.isDeviceAccessGranted,E,k,r)];case 2:return i.sent(),[2]}}))}))}function I(e){var t=void 0;if(e)try{t=decodeURI(e)}catch(t){f.reporter.send({tag:"sanitizeCjEventError",payload:"Failed to decode ".concat(e),logLevel:"ERROR"})}return null!==t&&""!==(null==t?void 0:t.trim())&&"undefined"!==t&&void 0!==t?t:void 0}function O(e){return e===t.IntegrationTypes.Proxy}function T(e,t,r,n,a){return o(this,void 0,void 0,(function(){var o,c;return i(this,(function(i){switch(i.label){case 0:return o={Accept:"*/*"},(null==n?void 0:n.type)&&(o["Content-Type"]=n.type),c=O(r)&&t?"include":"omit",[4,a(e,{method:"POST",mode:"cors",cache:"no-cache",credentials:c,headers:o,body:n})];case 1:return[4,i.sent().text()];case 2:return i.sent(),[2]}}))}))}function R(e,r,n,o,i,a,c,s,l){try{return[["id",e],["fullReferrerUrl",c],["payload",JSON.stringify(r)],["partnerships",JSON.stringify(s)],["countryCode",l],["cjeventls",n.localStorage],["cjeventss",n.sessionStorage],["cjeventq",n.cjeventQueryString],["isDeviceAccessGranted",o],[t.CJ_USER_KEY,i],["cookies",a?a.split(";").map((function(e){return e.trim()})).filter((function(e){return(0,u.startsWith)("cj",e)})).join("; "):null],["version",p.config.version]].filter((function(e){return null!==e[1]&&void 0!==e[1]})).map((function(e){return e.map((function(e){return encodeURIComponent(e)})).join("=")})).join("&")}catch(e){throw f.reporter.send({tag:"makePageInfoBodyError",payload:(0,u.errorMessage)(e),logLevel:"ERROR"}),new Error((0,u.errorMessage)(e))}}function P(e,t,r,n,a,c,s){return o(this,void 0,void 0,(function(){var o,l,d;return i(this,(function(i){switch(i.label){case 0:o=function(e,t,r){return function(e,t){return _(e)+k(t)}(e,t)+"/"+r+"/pageInfo"}(t,r,e),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,T(o,n,a,c,s)];case 2:return i.sent(),[3,4];case 3:return l=i.sent(),d=(0,u.errorMessage)(l),f.reporter.send({tag:"failedToSendPageInfo",payload:d,logLevel:"ERROR"}),[3,4];case 4:return[2]}}))}))}function _(e){var t=e.document.getElementById("cjapitag");return function(e,t){var r=e.document.createElement("a");return r.href=t,r.origin||r.protocol+"//"+r.hostname}(e,t.src)}function k(e){if(0===e.length)return e;var t=e;return"/"!=t.charAt(0)&&(t="/"+t),"/"===t.charAt(t.length-1)&&(t=t.slice(0,t.length-1)),t}t.CJ_USER_KEY="cjUser",t.CJ_PARTNER_KEY="cjPartner",t.ICJApiDefaults={path:"",consentTimeout:1e3,reporterType:"NO_OP",partnership:{liveRamp:{enabled:!1,periodInDays:5},revLifter:{enabled:!1},tvScientific:{enabled:!1}}},t.IntegrationTypes={Direct:1,Proxy:2},t.innerCJApi=w,t.getConfigWithDefaults=S,t.default=function(e){if(void 0!==e.win){var t,r,n=(0,a.v4)();t=e.win,r=e.partnership,(0,C.loadPartnerQueryString)(t,h.REV_LIFTER_KEY,r.revLifter.key),(0,C.loadPartnerQueryString)(t,m.TV_SCIENTIFIC_KEY,r.tvScientific.key);var o=S(e),i="".concat(o.reporterUrl,"/").concat(o.tagId,"/report");return f.reporter.set((0,f.createReporter)(o.reporterType,{globals:{pageUrl:o.win.location.href,tagUuid:n,tagId:o.tagId},window:o.win,url:i})),{sendOrder:E(o,n,w(o,n,new y.FetchRetrier(fetch.bind(window),1).fetchRetry).catch((function(e){f.reporter.send({tag:"innerCJApiError",payload:(0,u.errorMessage)(e),logLevel:"ERROR"})}))),setRevLifterTest:(0,C.createPartnerTestCookie)(o.win,h.REV_LIFTER_KEY,o.partnership.revLifter),setTvScientificTest:(0,C.createPartnerTestCookie)(o.win,m.TV_SCIENTIFIC_KEY,o.partnership.tvScientific)}}},t.sanitizeCjEvent=I},527:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.getCjEvents=void 0;var n=r(489);t.getCjEvents=function(e,t,r,o){var i={cjeventOrder:o?o.cjeventOrder:void 0,cjeventQueryString:r},a=t.isDeviceAccessGranted?(0,n.getPersistedCjEvents)(e.document,e.localStorage,e.sessionStorage):{};return Object.assign(i,a)}},651:function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function c(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,c)}s((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.loadPartnerQueryString=t.createPartnerTestCookie=t.addPartnerTestCookie=t.isTest=t.isLive=t.toPartnerTestMode=t.PartnerTestMode=t.PartnerMode=void 0;var i,a,c=r(357),s=r(569);function u(e){return"ON"===(null==e?void 0:e.toUpperCase())?a.ON:a.OFF}function l(e,t,r,n){n&&n.mode===i.TEST&&(0,c.addCookie)(e,t,u(r))}!function(e){e.LIVE="LIVE",e.TEST="TEST"}(i||(t.PartnerMode=i={})),function(e){e.ON="ON",e.OFF="OFF"}(a||(t.PartnerTestMode=a={})),t.toPartnerTestMode=u,t.isLive=function(e){return e===i.LIVE},t.isTest=function(e,t,r){return u((0,c.getCookie)(e,t))===a.ON&&r===i.TEST},t.addPartnerTestCookie=l,t.createPartnerTestCookie=function(e,t,r){var i=this;return function(a){return n(i,void 0,void 0,(function(){return o(this,(function(n){return l(e,t,a,r.key),[2]}))}))}},t.loadPartnerQueryString=function(e,t,r){var n=(0,s.getValueFromQueryString)(e.location.search,t);n&&l(e,t,n,r)}},304:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.liveRampWorkflow=t.shouldCallLiveRamp=void 0;var n=r(189),o=r(357),i=r(232),a=r(569),c="cjLiveRampLastCall";function s(e,t,r,n,i,a){return e&&t.isDeviceAccessGranted&&function(e){return void 0!==e.chrome}(r)&&!function(e){var t,r,n,o=(null===(r=null===(t=e.navigator)||void 0===t?void 0:t.userAgentData)||void 0===r?void 0:r.platform)||(null===(n=e.navigator)||void 0===n?void 0:n.platform)||"unknown";return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(o)||e.navigator.userAgent.includes("Mac")&&"ontouchend"in document}(r)&&function(e,t,r){var n=(0,o.getCookieUriDecoded)(c,t.document);return void 0===n||e>=function(e,t){return r=new Date(e),n=t,(o=new Date(r)).setDate(r.getDate()+n),o;var r,n,o}(n,r)}(n,r,i)&&function(e){return"US"===e}(a)}t.shouldCallLiveRamp=s,t.liveRampWorkflow=function(e,t,r,u,l,d){try{return s(u.enabled,l,e,t,u.periodInDays,r)?(function(e,t){var r=e.toISOString();(0,o.addCookie)(t,c,r,e)}(t,e),function(e,t){var r,o,i="https://idsync.rlcdn.com/".concat("711037",".gif?partner_uid=").concat(e);r=t.document,o=i,(0,n.addPixelToDom)(r,o,"liveRampPixel")}(d,e),{isCalled:!0}):{isCalled:!1}}catch(e){return i.reporter.send({tag:"liverampWorkflow-Error",payload:(0,a.errorMessage)(e),logLevel:"ERROR"}),{isCalled:!1}}}},485:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.addRevLifterScriptToDom=t.REV_LIFTER_KEY=void 0;var n=r(232),o=r(569),i=r(651);t.REV_LIFTER_KEY="cjRevLifterTest",t.addRevLifterScriptToDom=function(e,r){try{var a=r.key;if(r.enabled&&a&&((0,i.isLive)(a.mode)||(0,i.isTest)(t.REV_LIFTER_KEY,e,a.mode))){var c='(function (i, s, o, g, r, a, m) {\n i["RevLifterObject"] = r;\n (i[r] =\n i[r] ||\n function () {\n (i[r].q = i[r].q || []).push(arguments);\n }),\n (i[r].l = 1 * new Date());\n (a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);\n a.async = 1;\n a.src = g;\n m.parentNode.insertBefore(a, m);\n })(\n window,\n document,\n "script",\n "https://assets.revlifter.io/'.concat(a.value,'.js",\n "revlifter"\n );\n revlifter("load", "').concat(a.value,'");'),s=e.createElement("script");s.type="text/javascript",s.id="revlifter-script";var u=e.createTextNode(c);return s.appendChild(u),e.body.appendChild(s),{isCalled:!0}}return{isCalled:!1}}catch(e){return n.reporter.send({tag:"revLifterScript",payload:(0,o.errorMessage)(e),logLevel:"ERROR"}),{isCalled:!1}}}},714:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.addTvScientificScriptToDom=t.addTvScientificPurchaseToDom=t.addTvScientificPurchaseScriptToDom=t.addTvScientificUniversalPixelToDom=t.cjOrderToTvScientificOrder=t.TV_SCIENTIFIC_KEY=void 0;var n=r(232),o=r(569),i=r(651);function a(e){var t,r=null===(t=e.items)||void 0===t?void 0:t.map((function(e){var t=e.itemId,r=e.discount,n=e.quantity,o=e.unitPrice,i=r&&r/Number(n)||0;return{SKU:t,CAT:"",PR:Number(o)-i,QTY:Number(n)}})),n=(null==r?void 0:r.reduce((function(e,t){return t.PR*t.QTY+e}),0))||e.amount-Number(e.discount||0);return{orderId:e.orderId,orderAmount:n.toFixed(2),currency:e.currency,customerId:e.enterpriseId.toString(),customerStatus:"",promoCode:e.coupon||"",note:"",lastTouchChannel:"",items:r||[]}}function c(e,r,c){try{var s=c.key;if(c.enabled&&s&&((0,i.isLive)(s.mode)||(0,i.isTest)(t.TV_SCIENTIFIC_KEY,e,s.mode))){var u=a(r),l="(function (j) {var l='".concat(s.value,"', s, d, w, e = encodeURIComponent, d = document, w = window.location, p = d.createElement(\"IMG\"); \n s = w.protocol + '//tvspix.com/t.png?t=' + (new Date()).getTime() + '&l=' + l + '&u3=' + e(w.href) + '&u1=complete_purchase&u2=' + j.orderAmount + '&u4=' + e(j.orderId) + '&u5=' + e(j.lastTouchChannel) + '&u6=' + e(j.customerId) + '&u8=' + e(j.customerStatus || '') + '&u12=' + e(j.note) + '&u13=' + e(JSON.stringify(j.items)) + '&u14=' + e(j.promoCode) + '&u15=' + (j.currency || ''); \n p.setAttribute(\"src\", s); p.setAttribute(\"height\", \"0\"); p.setAttribute(\"width\", \"0\"); \n p.setAttribute(\"alt\", \"\"); p.style.display = 'none'; p.style.position = 'fixed'; \n d.body.appendChild(p);\n })(").concat(JSON.stringify(u),");"),d=e.createElement("script");d.type="text/javascript",d.id="tvScientific-purchase-script-".concat(u.orderId);var f=e.createTextNode(l);return d.appendChild(f),e.body.appendChild(d),!0}return!1}catch(e){return n.reporter.send({tag:"tvScientificPurchaseScript",payload:(0,o.errorMessage)(e),logLevel:"ERROR"}),!1}}function s(e,r){try{var a=r.key;if(r.enabled&&a&&((0,i.isLive)(a.mode)||(0,i.isTest)(t.TV_SCIENTIFIC_KEY,e,a.mode))){var c='(function () {var p, s, d, w;d = document;w = window.location;p = d.createElement("IMG");s = w.protocol + "//tvspix.com/t.png?&t=" + (new Date).getTime() + "&l='.concat(a.value,'&u3=" + encodeURIComponent(w.href);p.setAttribute("src", s);\np.setAttribute("height", "0");p.setAttribute("width", "0");p.setAttribute("alt", "");p.style.setProperty("display", "none");p.style.setProperty("position", "absolute");\np.style.setProperty("visibility", "hidden");d.body.appendChild(p);})();'),s=e.createElement("script");s.type="text/javascript",s.id="tvScientific-script";var u=e.createTextNode(c);return s.appendChild(u),e.body.appendChild(s),!0}return!1}catch(e){return n.reporter.send({tag:"tvScientificScript",payload:(0,o.errorMessage)(e),logLevel:"ERROR"}),!1}}t.TV_SCIENTIFIC_KEY="cjTvScientificTest",t.cjOrderToTvScientificOrder=a,t.addTvScientificUniversalPixelToDom=function(e,t){return{universalPixelIsCalled:s(e,t)}},t.addTvScientificPurchaseScriptToDom=function(e,t,r){var n=!1,o=[];return(null==t?void 0:t.order)&&(n=c(e,t.order,r)),(null==t?void 0:t.orders)&&t.orders.forEach((function(t){var n=c(e,t,r);o.push(n)})),{onePurchasePixelIsCalled:n,multiplePurchasePixelWereCalled:0===o.length?{result:"NoMultipleOrders"}:o.includes(!1)?{result:"Failure",failedCount:o.filter((function(e){return!e})).length,totalOrders:o.length}:{result:"Success",totalOrders:o.length}}},t.addTvScientificPurchaseToDom=c,t.addTvScientificScriptToDom=s},489:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.setStorageItem=t.getStorageItem=t.getPersistedCjEvents=t.CjEventKeys=void 0;var n,o=r(357);function i(e,t){return t&&t.getItem(e)}!function(e){e.DocumentCookie="cjevent_dc",e.SetCookie="cjevent_sc",e.LocalStorage="cjevent",e.SessionStorage="cjevent",e.ClientServerCookie="cje"}(n||(t.CjEventKeys=n={})),t.getPersistedCjEvents=function(e,t,r){return{clientServerCookie:(0,o.getCookieUriDecoded)(n.ClientServerCookie,e),documentCookie:(0,o.getCookieUriDecoded)(n.DocumentCookie,e),serverSetCookie:(0,o.getCookieUriDecoded)(n.SetCookie,e),localStorage:i(n.LocalStorage,t),sessionStorage:i(n.SessionStorage,r)}},t.getStorageItem=i,t.setStorageItem=function(e,t,r){return r&&r.setItem(e,t)}},189:function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t._private=t.addPixelToDom=t.transact=void 0;var o,i=r(569),a=r(232),c=(o="[A-Za-z0-9_\\-\\.]",new RegExp("".concat(o,"+%40").concat(o,"+[.]").concat(o,"+"),"g")),s={"items.itemId":"item","items.unitPrice":"amt","items.quantity":"qty","items.discount":"dcnt","bypassChannel.name":"channel","bypassChannel.timestamp":"channel_ts","items.":"",actionTrackerId:"type",enterpriseId:"cid",orderId:"oid"};t.transact=function(e,t,r,o,u,d,v){v&&(a.reporter.send({tag:"transactionPixelFired",payload:JSON.stringify({integrationDomain:r,integrationType:o,tagUuid:u,cjOrder:v,cjEvents:t,cjUser:d}),logLevel:"INFO"}),function(e,t,r,o,u,d,v){try{var g=function(e,t,r,o,i){var a=function(e){var t={},r="";return l.forEach((function(n){var o=n.key,i=n.type,a=e[i];a&&(r&&r!==a&&(t[o]=a),r=r||a)})),r&&(t.cjevent=r),t}(o),c=function(e,t){var r,n=e||0;return l.forEach((function(e){var r=e.value,o=e.type;t[o]&&(n+=r)})),(r={})["custom.stats"]=n,r}(e,o),s={};return f(r,s,""),n(n(n(n(n({},a),s),c),{tagUuid:t}),i?{cjUser:i}:{})}(t,r,u,d,v),h=function(e,t){return"https://".concat(e,"/u?method=img&").concat(t)}(e,function(e){var t,r,n=[];for(t in e)e.hasOwnProperty(t)&&(r=e[t]+""||"",n.push(encodeURIComponent(t)+"="+encodeURIComponent(r)));return n.join("&")}(function(e,t){var r=n({},e);if((0,i.isEmpty)(t)||(0,i.isEmpty)(r))return r;for(var o in t)t.hasOwnProperty(o)&&p(o,t[o],r);return r}(g,s))).replace(c,"removedemail");y(o,h)}catch(e){var m=(0,i.errorMessage)(e);a.reporter.send({tag:"orderFailed",payload:m,logLevel:"ERROR"})}}(r,o,u,e.document,v,t,d))};var u=(0,i.values)(s),l=[{key:"cjeventOrder",value:3276800,type:"cjeventOrder"},{key:"cjevent",value:65536,type:"serverSetCookie"},{key:"cjevent_adv",value:1441792,type:"clientServerCookie"},{key:"cjeventc",value:131072,type:"documentCookie"},{key:"cjeventl",value:262144,type:"localStorage"},{key:"cjevents",value:524288,type:"sessionStorage"},{key:"cjeventq",value:6553600,type:"cjeventQueryString"}];function d(e,t,r){for(var n=0;n<e.length;n++){var o=e[n];if((0,i.isDefined)(o)&&!(0,i.isEmpty)(o))for(var a in o)if(o.hasOwnProperty(a)){var c=v(a+(n+1),r);(0,i.includes)(a,u)||(t[c]=o[a])}}}function f(e,t,r){if(!(0,i.isEmpty)(e))for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];if((0,i.isDefined)(o)){var a=v(n,r);Array.isArray(o)?d(o,t,a):(0,i.isObject)(o)?f(o,t,a):t[a]=o}}}function v(e,t){return t?t+"."+e:e}function p(e,t,r){var n=e.toLowerCase();for(var o in r)if(r.hasOwnProperty(o)){var a=o.toLowerCase();(0,i.startsWith)(n,a)&&(r[a.replace(n,t)]=r[o],delete r[o])}}function y(e,t,r){var n=e.createElement("img");r&&(n.id=r),n.alt="",n.style.display="none",n.height=1,n.width=1,n.src=t,e.body.appendChild(n)}t.addPixelToDom=y,t._private={populateFromArray:d,populateFromObject:f}},232:function(e,t){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function n(e,t){try{var r=e.url,n=e.globals;e.window.navigator.sendBeacon(r,JSON.stringify({globals:n,report:t}))}catch(e){}}function o(e){var t={tag:"sendBeaconUnsupported",payload:window.navigator.userAgent,logLevel:"INFO"},r=e.url,n=e.globals;e.window.fetch(r,{method:"POST",body:JSON.stringify({globals:n,report:t})}).then((function(){})).catch((function(){}))}function i(e){return t.noOpReporter}Object.defineProperty(t,"__esModule",{value:!0}),t.createReporter=t.reporter=t.noOpReporter=void 0,t.noOpReporter={send:function(e){}},t.reporter=r({set:function(e){t.reporter.send=e.send}},t.noOpReporter),t.createReporter=function(e,r){switch(e){case"NO_OP":default:return t.noOpReporter;case"ACTIVE":return function(e){return e.window.navigator.sendBeacon?{send:function(t){n(e,t)}}:(o(e),i())}(r);case"ERROR_ONLY":return function(e){return e.window.navigator.sendBeacon?{send:function(t){"ERROR"===t.logLevel&&n(e,t)}}:(o(e),i())}(r)}}},569:function(e,t){var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function c(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,c)}s((n=n.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.readBlobFromBodyInit=t.getBlobText=t.Result=t.capitalize=t.errorMessage=t.isObject=t.values=t.startsWith=t.isEmpty=t.isDefined=t.includes=t.getValueFromQueryString=void 0,t.getValueFromQueryString=function(e,r){for(var n=((0,t.startsWith)("?",e)?e.substring(1):e).split("&"),o=r.toLowerCase(),i=0,a=n;i<a.length;i++){var c=a[i].split("=");if(c[0].toLowerCase()===o)return c[1]}},t.includes=function(e,t){for(var r in t)if(t[r]===e)return!0;return!1},t.isDefined=function(e){return void 0!==e},t.isEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},t.startsWith=function(e,t){return t.substring(0,e.length)===e};var o=function(e){return!(null!=e)};function i(e){return new Promise((function(t){var r=new FileReader;r.onload=function(){t(r.result)},r.readAsText(e)}))}t.values=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t},t.isObject=function(e){return"object"==typeof e&&null!==e},"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(o(e))throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(!o(i))for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])}return r},writable:!0,configurable:!0}),t.errorMessage=function(e){return"string"==typeof e?e:(t=e)&&"string"==typeof t.message?e.message:"Unknown object thrown:"+JSON.stringify(e);var t},t.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.Result=Object.freeze({Ok:function(e){return{_tag:"Ok",ok:e}},Err:function(e){return{_tag:"Err",err:e}}}),t.getBlobText=i,t.readBlobFromBodyInit=function(e){return r(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return e instanceof Blob?[4,i(e)]:[3,2];case 1:return[2,t.sent()];case 2:return[2,""]}}))}))}},614:function(e,t,r){var n;r.r(t),r.d(t,{NIL:function(){return _},parse:function(){return g},stringify:function(){return f},v1:function(){return y},v3:function(){return I},v4:function(){return O},v5:function(){return P},validate:function(){return c},version:function(){return k}});var o=new Uint8Array(16);function i(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}for(var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,c=function(e){return"string"==typeof e&&a.test(e)},s=[],u=0;u<256;++u)s.push((u+256).toString(16).substr(1));var l,d,f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!c(r))throw TypeError("Stringified UUID is invalid");return r},v=0,p=0,y=function(e,t,r){var n=t&&r||0,o=t||new Array(16),a=(e=e||{}).node||l,c=void 0!==e.clockseq?e.clockseq:d;if(null==a||null==c){var s=e.random||(e.rng||i)();null==a&&(a=l=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==c&&(c=d=16383&(s[6]<<8|s[7]))}var u=void 0!==e.msecs?e.msecs:Date.now(),y=void 0!==e.nsecs?e.nsecs:p+1,g=u-v+(y-p)/1e4;if(g<0&&void 0===e.clockseq&&(c=c+1&16383),(g<0||u>v)&&void 0===e.nsecs&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");v=u,p=y,d=c;var h=(1e4*(268435455&(u+=122192928e5))+y)%4294967296;o[n++]=h>>>24&255,o[n++]=h>>>16&255,o[n++]=h>>>8&255,o[n++]=255&h;var m=u/4294967296*1e4&268435455;o[n++]=m>>>8&255,o[n++]=255&m,o[n++]=m>>>24&15|16,o[n++]=m>>>16&255,o[n++]=c>>>8|128,o[n++]=255&c;for(var C=0;C<6;++C)o[n+C]=a[C];return t||f(o)},g=function(e){if(!c(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function h(e,t,r){function n(e,n,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=g(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(n),a.set(e,n.length),(a=r(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,o){i=i||0;for(var c=0;c<16;++c)o[i+c]=a[c];return o}return f(a)}try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function m(e){return 14+(e+64>>>9<<4)+1}function C(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function b(e,t,r,n,o,i){return C((a=C(C(t,e),C(n,i)))<<(c=o)|a>>>32-c,r);var a,c}function w(e,t,r,n,o,i,a){return b(t&r|~t&n,e,t,o,i,a)}function S(e,t,r,n,o,i,a){return b(t&n|r&~n,e,t,o,i,a)}function E(e,t,r,n,o,i,a){return b(t^r^n,e,t,o,i,a)}function j(e,t,r,n,o,i,a){return b(r^(t|~n),e,t,o,i,a)}var I=h("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,n="0123456789abcdef",o=0;o<r;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[m(t)-1]=t;for(var r=1732584193,n=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var c=r,s=n,u=o,l=i;r=w(r,n,o,i,e[a],7,-680876936),i=w(i,r,n,o,e[a+1],12,-389564586),o=w(o,i,r,n,e[a+2],17,606105819),n=w(n,o,i,r,e[a+3],22,-1044525330),r=w(r,n,o,i,e[a+4],7,-176418897),i=w(i,r,n,o,e[a+5],12,1200080426),o=w(o,i,r,n,e[a+6],17,-1473231341),n=w(n,o,i,r,e[a+7],22,-45705983),r=w(r,n,o,i,e[a+8],7,1770035416),i=w(i,r,n,o,e[a+9],12,-1958414417),o=w(o,i,r,n,e[a+10],17,-42063),n=w(n,o,i,r,e[a+11],22,-1990404162),r=w(r,n,o,i,e[a+12],7,1804603682),i=w(i,r,n,o,e[a+13],12,-40341101),o=w(o,i,r,n,e[a+14],17,-1502002290),r=S(r,n=w(n,o,i,r,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=S(i,r,n,o,e[a+6],9,-1069501632),o=S(o,i,r,n,e[a+11],14,643717713),n=S(n,o,i,r,e[a],20,-373897302),r=S(r,n,o,i,e[a+5],5,-701558691),i=S(i,r,n,o,e[a+10],9,38016083),o=S(o,i,r,n,e[a+15],14,-660478335),n=S(n,o,i,r,e[a+4],20,-405537848),r=S(r,n,o,i,e[a+9],5,568446438),i=S(i,r,n,o,e[a+14],9,-1019803690),o=S(o,i,r,n,e[a+3],14,-187363961),n=S(n,o,i,r,e[a+8],20,1163531501),r=S(r,n,o,i,e[a+13],5,-1444681467),i=S(i,r,n,o,e[a+2],9,-51403784),o=S(o,i,r,n,e[a+7],14,1735328473),r=E(r,n=S(n,o,i,r,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=E(i,r,n,o,e[a+8],11,-2022574463),o=E(o,i,r,n,e[a+11],16,1839030562),n=E(n,o,i,r,e[a+14],23,-35309556),r=E(r,n,o,i,e[a+1],4,-1530992060),i=E(i,r,n,o,e[a+4],11,1272893353),o=E(o,i,r,n,e[a+7],16,-155497632),n=E(n,o,i,r,e[a+10],23,-1094730640),r=E(r,n,o,i,e[a+13],4,681279174),i=E(i,r,n,o,e[a],11,-358537222),o=E(o,i,r,n,e[a+3],16,-722521979),n=E(n,o,i,r,e[a+6],23,76029189),r=E(r,n,o,i,e[a+9],4,-640364487),i=E(i,r,n,o,e[a+12],11,-421815835),o=E(o,i,r,n,e[a+15],16,530742520),r=j(r,n=E(n,o,i,r,e[a+2],23,-995338651),o,i,e[a],6,-198630844),i=j(i,r,n,o,e[a+7],10,1126891415),o=j(o,i,r,n,e[a+14],15,-1416354905),n=j(n,o,i,r,e[a+5],21,-57434055),r=j(r,n,o,i,e[a+12],6,1700485571),i=j(i,r,n,o,e[a+3],10,-1894986606),o=j(o,i,r,n,e[a+10],15,-1051523),n=j(n,o,i,r,e[a+1],21,-2054922799),r=j(r,n,o,i,e[a+8],6,1873313359),i=j(i,r,n,o,e[a+15],10,-30611744),o=j(o,i,r,n,e[a+6],15,-1560198380),n=j(n,o,i,r,e[a+13],21,1309151649),r=j(r,n,o,i,e[a+4],6,-145523070),i=j(i,r,n,o,e[a+11],10,-1120210379),o=j(o,i,r,n,e[a+2],15,718787259),n=j(n,o,i,r,e[a+9],21,-343485551),r=C(r,c),n=C(n,s),o=C(o,u),i=C(i,l)}return[r,n,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(m(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))})),O=function(e,t,r){var n=(e=e||{}).random||(e.rng||i)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return f(n)};function T(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function R(e,t){return e<<t|e>>>32-t}var P=h("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var o=0;o<n.length;++o)e.push(n.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,a=Math.ceil(i/16),c=new Array(a),s=0;s<a;++s){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=e[64*s+4*l]<<24|e[64*s+4*l+1]<<16|e[64*s+4*l+2]<<8|e[64*s+4*l+3];c[s]=u}c[a-1][14]=8*(e.length-1)/Math.pow(2,32),c[a-1][14]=Math.floor(c[a-1][14]),c[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++d){for(var f=new Uint32Array(80),v=0;v<16;++v)f[v]=c[d][v];for(var p=16;p<80;++p)f[p]=R(f[p-3]^f[p-8]^f[p-14]^f[p-16],1);for(var y=r[0],g=r[1],h=r[2],m=r[3],C=r[4],b=0;b<80;++b){var w=Math.floor(b/20),S=R(y,5)+T(w,g,h,m)+C+t[w]+f[b]>>>0;C=m,m=h,h=R(g,30)>>>0,g=y,y=S}r[0]=r[0]+y>>>0,r[1]=r[1]+g>>>0,r[2]=r[2]+h>>>0,r[3]=r[3]+m>>>0,r[4]=r[4]+C>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),_="00000000-0000-0000-0000-000000000000",k=function(e){if(!c(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n=r(868);CJApi=n}();
var cjApi = CJApi.default({win: this.window, date: new Date(), integrationDomain: "www.emjcd.com", integrationType: 1, tagId: "639879746232", path: "", reporterType: "ERROR_ONLY", flags: {enablePerformance:false,enableLoggingForTagIds:[{},{}]}, countryCode: "CA", reporterUrl: "https://www.mczbf.com", partnership: {liveRamp:{enabled:true,periodInDays:5},revLifter:{enabled:true},tvScientific:{enabled:true}}});