1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,37910,(e,t,s)=>{t.exports={author:{name:"Sitecore Corporation",url:"https://doc.sitecore.com/xmc/en/developers/content-sdk/index.html"},bugs:{url:"https://github.com/sitecore/content-sdk/issues"},dependencies:{"@sitecore-content-sdk/core":"^2.1.0",debug:"^4.4.3",isbot:"^5.1.39"},description:"Provides shared logic and runtime initialization. Required for the Content SDK 'events' and 'personalize' packages to function.",devDependencies:{"@jest/types":"^29.6.3","@stylistic/eslint-plugin":"^5.2.2","@types/debug":"^4.1.12","@types/jest":"^29.5.12","@typescript-eslint/eslint-plugin":"8.39.0","@typescript-eslint/parser":"8.39.0","del-cli":"^6.0.0",eslint:"^9.32.0","eslint-config-prettier":"^10.1.8","eslint-plugin-import":"2.32.0","eslint-plugin-jsdoc":"52.0.3","eslint-plugin-prettier":"^4.0.0",jest:"^29.7.0","jest-environment-jsdom":"^29.7.0","jest-environment-node":"^29.7.0","ts-jest":"^29.1.0","ts-node":"^10.9.2"},main:"dist/cjs/index.js",module:"dist/esm/index.js",types:"types/src/index.d.ts",exports:{".":{import:"./dist/esm/src/index.js",require:"./dist/cjs/src/index.js",types:"./types/src/index.d.ts"},"./internal":{import:"./dist/esm/src/internal.js",require:"./dist/cjs/src/internal.js",types:"./types/src/internal.d.ts"},"./utils":{import:"./dist/esm/src/utils.js",require:"./dist/cjs/src/utils.js",types:"./types/src/utils.d.ts"}},files:["dist","types","/*.d.ts"],homepage:"https://doc.sitecore.com/xmc/en/developers/content-sdk/index.html",license:"Apache-2.0",name:"@sitecore-content-sdk/analytics-core",publishConfig:{access:"public",registry:"https://registry.npmjs.org/"},scripts:{build:"npm run clean && tsc -p tsconfig.json && tsc -p tsconfig-esm.json",clean:"del-cli dist types",coverage:"jest --config jest.config.ts --coverage","generate-docs":"npx typedoc --plugin typedoc-plugin-markdown --outputFileStrategy Members --parametersFormat table --readme none --out ../../ref-docs/analytics-core --entryPoints src/index.ts --entryPoints src/internal.ts --entryPoints src/utils.ts --githubPages false",lint:'eslint "./src/**/*.ts"',prepublishOnly:"npm run build",test:"jest --config jest.config.ts","api-extractor":"npm run build && api-extractor run --local --verbose","api-extractor:verify":"api-extractor run"},version:"2.1.0",gitHead:"c505c331a61f4ebf65f1bd5fe514cb0ab9192c56"}},86158,26470,e=>{"use strict";let t=e.i(37910).default.version;e.s(["API_VERSION",0,"v1.2","CLIENT_ID_COOKIE_NAME",0,"cid","COOKIE_NAME_PREFIX",0,"sc_","CORRELATION_ID_HEADER",0,"x-sc-correlation-id","DAILY_SECONDS",0,86400,"DEFAULT_COOKIE_EXPIRY_DAYS",0,730,"LIBRARY_VERSION",0,t],86158),e.s(["ANALYTICS_PLUGIN_NAME",0,"AnalyticsPlugin"],26470)},55824,e=>{"use strict";e.s(["language",0,function(){return"u"<typeof window||window.document.documentElement.lang.length<=1?void 0:new Intl.Locale(window.document.documentElement.lang).language.toLocaleUpperCase()},"pageName",0,function(){return"u"<typeof window?"":"/"===window.location.pathname?"Home Page":window.location.pathname.split("/").pop()}])},79338,54605,52373,e=>{"use strict";let t;e.s(["analyticsPlugin",()=>h,"getAnalyticsPlugin",()=>y],79338);var s=e.i(86158),n=e.i(26470),i=e.i(10026),r=e.i(27840);let a=i.default.init;async function o(e){var t;for(let s of(a(`Initializing ${e.size}
1 plugins`),e.values())){if(s.dependencies){for(let t of s.dependencies)if(!e.has(t))throw Error(r.ERROR_MESSAGES.IE_001(s.name,t));a(`All required dependencies for "${s.name}" are present`)}await (null==(t=s.init)?void 0:t.call(s)),a(`Successfully initialized "${s.name}"`)}a(`Successfully initialized ${e.size} plugins`)}function c(){if(!t)throw Error(r.ERROR_MESSAGES.IE_002);return t}async function l(e){i.default.init("Initializing Content SDK with params:",e);let{config:s,plugins:n}=e,c=function(e){var t;let{contextId:s,siteName:n,edgeUrl:i}=e;if(!s||0===s.trim().length)throw Error(r.ERROR_MESSAGES.MV_001);if(!n||0===n.trim().length)throw Error(r.ERROR_MESSAGES.MV_002);if(void 0!==i)try{new URL(i)}catch(e){throw Error(r.ERROR_MESSAGES.IV_001)}return a("Configuration is valid"),Object.assign(Object.assign({},e),{edgeUrl:null!=(t=null==i?void 0:i.trim())?t:r.SITECORE_EDGE_PLATFORM_URL_DEFAULT})}(s);for(let e of(0===n.length&&i.default.init("No plugins provided to the plugins array"),t={config:c,plugins:new Map,readyPromise:null},n))t.plugins.set(e.name,e);i.default.init(`Registered ${t.plugins.size} plugins`),t.readyPromise=o(t.plugins),await t.readyPromise,i.default.init("Content SDK initialization complete")}e.s(["getCoreContext",0,c,"initContentSdk",0,l],54605);var u=i;e.s(["debug",()=>u.default],52373);var u=i,d=e.i(32719);function g(){return y().adapter.getClientId()||""}let p=u.default.init,{ERROR_MESSAGES:f}=d.constants;function h(e){var t;let{options:i,adapter:r}=e,a={cookies:{domain:null==i?void 0:i.cookieDomain,enabled:null!=(t=null==i?void 0:i.enableCookie)&&t,expiryDays:(null==i?void 0:i.cookieExpiryDays)||s.DEFAULT_COOKIE_EXPIRY_DAYS,name:`${s.COOKIE_NAME_PREFIX}${s.CLIENT_ID_COOKIE_NAME}`,path:(null==i?void 0:i.cookiePath)||"/"},timeout:null==i?void 0:i.timeout};return{name:n.ANALYTICS_PLUGIN_NAME,init:m,options:a,adapter:r}}async function m(){var e;p(`Initializing ${n.ANALYTICS_PLUGIN_NAME}`);let t=c(),i=y();if(!i.options.cookies.enabled)return void p(`Cookies are disabled for ${n.ANALYTICS_PLUGIN_NAME}. If this was not intentional, set "enableCookie" to "true".`);let r=i.adapter;(null==(e=r.isBot)?void 0:e.call(r))||r.getClientId()&&"browser"===i.adapter.type||(await r.setClientId(),p(`Cookie set for ${n.ANALYTICS_PLUGIN_NAME}`)),"browser"===i.adapter.type&&(window.scContentSDK=Object.assign(Object.assign({},window.scContentSDK),{analytics_core:{getClientId:g,options:{siteName:t.config.siteName,contextId:t.config.contextId,edgeUrl:t.config.edgeUrl},version:s.LIBRARY_VERSION}}))}function y(){let e=c().plugins.get(n.ANALYTICS_PLUGIN_NAME);if(!e)throw Error(f.IE_004(n.ANALYTICS_PLUGIN_NAME));return e}},18488,e=>{"use strict";e.s(["flattenObject",0,function e(t){var s;let{currentKey:n,object:i}=t,r=null!=(s=t.newObject)?s:{};for(let t in i){let s=i[t];void 0!==s&&("object"!=typeof s||Array.isArray(s)?r[n?`${n}_${t}`:t]=s:e({currentKey:`${n?`${n}_${t}`:t}`,newObject:r,object:s}))}return r}])},10026,e=>{"use strict";var t,s=e.i(50461),n=e.i(26455),i=e.i(1514);let r=n.default,a="content-sdk";(0,i.default)()&&(null==(t=null===s.default||void 0===s.default?void 0:s.default.env)?void 0:t.DEBUG_MULTILINE)==="true"&&n.default.formatters.o&&n.default.formatters.O&&(n.default.formatters.o=n.default.formatters.O);let o={common:(0,n.default)(`${a}:common`),http:(0,n.default)(`${a}:http`),init:(0,n.default)(`${a}:init`)};e.s(["debugModule",0,r,"debugNamespace",0,a,"default",0,o])},75617,50060,e=>{"use strict";var t=e.i(10026),s=e.i(27840);class n{constructor(e){this.timeout=e,this.timeoutId=void 0}get start(){return new Promise((e,t)=>{if(!Number.isInteger(this.timeout)||this.timeout<0)throw Error(s.ERROR_MESSAGES.IV_002);this.timeoutId=setTimeout(()=>{let e=Error(s.ERROR_MESSAGES.IE_003);e.name="AbortError",t(e)},this.timeout)})}clear(){this.timeoutId&&clearTimeout(this.timeoutId)}}e.s(["default",0,n],50060);var i=function(e,t){var s={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(s[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(s[n[i]]=e[n[i]]);return s};e.s(["NativeDataFetcher",0,class{constructor(e={}){this.config=e}async fetch(e,s={}){var r;let a=this.config,{debugger:o,fetch:c}=a,l=i(a,["debugger","fetch"]),u=Date.now(),d=c||fetch,g=o||t.default.http,p=this.getRequestInit(Object.assign(Object.assign({},l),s)),f=[d(e,p)];l.timeout&&(this.abortTimeout=new n(l.timeout),f.push(this.abortTimeout.start)),g("Request initiated: %o",Object.assign({url:e,headers:this.extractDebugHeaders(p.headers)},p));try{let e=await Promise.race(f).then(e=>{var t;return null==(t=this.abortTimeout)||t.clear(),e}),t=await this.parseResponse(e,g);if(!e.ok){let s=this.createError(e,t);throw g("Response error: %o",s.response),s}return g("Response in %dms: %o",Date.now()-u,{status:e.status,statusText:e.statusText,headers:this.extractDebugHeaders(e.headers),url:e.url,data:t}),{data:t,headers:e.headers,status:e.status,statusText:e.statusText}}catch(e){throw null==(r=this.abortTimeout)||r.clear(),g("Request failed: %o",e),e}}async get(e,t={}){return this.fetch(e,Object.assign({method:"GET"},t))}async post(e,t,s={}){return this.fetch(e,Object.assign({method:"POST",body:JSON.stringify(t)},s))}async delete(e,t={}){return this.fetch(e,Object.assign({method:"DELETE"},t))}async put(e,t,s={}){return this.fetch(e,Object.assign({method:"PUT",body:JSON.stringify(t)},s))}head(e,t={}){return this.fetch(e,Object.assign({method:"HEAD"},t))}getRequestInit(e={}){let t=new Headers(e.headers);return e.method||(e.method=e.body?"POST":"GET"),t.set("Content-Type","application/json"),e.headers=t,e}extractDebugHeaders(e={}){let t={};return"string"!=typeof(null==e?void 0:e.forEach)&&e.forEach&&(null==e||e.forEach((e,s)=>{t[s]=e})),t}async parseResponse(e,t){let s=e.headers.get("Content-Type")||"";try{if(s.includes("application/json"))return await e.json();return await e.text()}catch(e){t("Response parsing error: %o",e);return}}createError(e,t){let s=Error(`HTTP ${e.status}${e.statusText?` ${e.statusText}`:""}`);return{name:s.name,message:s.message,stack:s.stack,response:{status:e.status,statusText:e.statusText,headers:this.extractDebugHeaders(e.headers),data:t}}}}],75617)},1514,e=>{"use strict";e.s(["default",0,function(){return!("u">typeof window&&window.document)}])},64224,(e,t,s)=>{t.exports={author:{name:"Sitecore Corporation",url:"https://doc.sitecore.com/xmc/en/developers/content-sdk/index.html"},bugs:{url:"https://github.com/Sitecore/content-sdk/issues"},dependencies:{"@sitecore-content-sdk/analytics-core":"^2.1.0","@sitecore-content-sdk/core":"^2.1.0",debug:"^4.4.3"},description:"Enables real-time, unified tracking to send events to Sitecore.",devDependencies:{"@jest/globals":"^30.2.0","@jest/types":"^29.6.3","@stylistic/eslint-plugin":"^5.2.2","@types/debug":"^4.1.12","@types/jest":"^29.5.12","@typescript-eslint/eslint-plugin":"8.39.0","@typescript-eslint/parser":"8.39.0","del-cli":"^6.0.0",eslint:"^9.32.0","eslint-config-prettier":"^10.1.8","eslint-plugin-import":"2.32.0","eslint-plugin-jsdoc":"52.0.3","eslint-plugin-
1prettier":"^4.0.0",jest:"^29.7.0","jest-environment-jsdom":"^29.7.0","jest-environment-node":"^29.7.0","ts-jest":"^29.4.6","ts-node":"^10.9.2"},main:"dist/cjs/index.js",module:"dist/esm/index.js",types:"types/src/index.d.ts",exports:{".":{import:"./dist/esm/src/index.js",require:"./dist/cjs/src/index.js",types:"./types/src/index.d.ts"},"./browser":{import:"./dist/esm/src/browser.js",require:"./dist/cjs/src/browser.js",types:"./types/src/browser.d.ts"},"./internal":{import:"./dist/esm/src/internal.js",require:"./dist/cjs/src/internal.js",types:"./types/src/internal.d.ts"}},files:["dist","types","/*.d.ts"],homepage:"https://doc.sitecore.com/xmc/en/developers/content-sdk/index.html",license:"Apache-2.0",name:"@sitecore-content-sdk/events",publishConfig:{access:"public",registry:"https://registry.npmjs.org/"},scripts:{build:"npm run clean && tsc -p tsconfig.json && tsc -p tsconfig-esm.json",clean:"del-cli dist types",coverage:"jest --config jest.config.ts --coverage","generate-docs":"npx typedoc --plugin typedoc-plugin-markdown --outputFileStrategy Members --parametersFormat table --readme none --out ../../ref-docs/events --entryPoints src/browser.ts --entryPoints src/internal.ts --entryPoints src/index.ts --githubPages false",lint:'eslint "./src/**/*.ts"',prepublishOnly:"npm run build",test:"jest --config jest.config.ts","api-extractor":"npm run build && api-extractor run --local --verbose","api-extractor:verify":"api-extractor run"},version:"2.1.0",gitHead:"c505c331a61f4ebf65f1bd5fe514cb0ab9192c56"}},81170,e=>{"use strict";var t=e.i(64224);let s=t.default.version,n=t.default.name,i=`${n} ${s}`;e.s(["PACKAGE_VERSION",0,s,"X_CLIENT_SOFTWARE_ID",0,i])},71491,e=>{"use strict";e.s(["addToEventQueue",()=>r]);var t=e.i(79338),s=e.i(43340),n=e.i(54605),i=e.i(22667);async function r(e){let r=(0,n.getCoreContext)();await r.readyPromise,(0,i.getEventsPlugin)();let{options:a,adapter:o}=(0,t.getAnalyticsPlugin)(),c={eventData:e,id:o.getClientId()||"",config:Object.assign(Object.assign({},r.config),a)};s.eventQueue.enqueueEvent(c)}},43340,e=>{"use strict";var t=e.i(55824);e.i(71538);var s=e.i(19502),n=e.i(82759);let i=new class{constructor(){this.key="EventQueue"}enqueueEvent(e){var i,r;let a=this.getSessionStorage();e.eventData.page=null!=(i=e.eventData.page)?i:(0,t.pageName)(),e.eventData.language=null!=(r=e.eventData.language)?r:(0,t.language)(),new s.CustomEvent(Object.assign({sendEvent:n.sendEvent},e));let o=this.getEventQueue();o.push(e),a.setItem(this.key,JSON.stringify(o))}async sendAllEvents(){for(let e of this.getEventQueue())await new s.CustomEvent({eventData:e.eventData,id:e.id,sendEvent:n.sendEvent,config:e.config}).send();this.clearQueue()}clearQueue(){this.getSessionStorage().removeItem(this.key)}getEventQueue(){var e;let t=null!=(e=this.getSessionStorage().getItem(this.key))?e:'""';try{let e=JSON.parse(t);return Array.isArray(e)?e:[]}catch(e){return[]}}getSessionStorage(){return sessionStorage}};e.s(["eventQueue",0,i])},41325,e=>{"use strict";var t=e.i(55824);e.s(["BaseEvent",0,class{constructor(e,s){var n,i;this.baseEventData=e,this.clientId=s,this.language=null!=(n=this.baseEventData.language)?n:(0,t.language)(),this.page=null!=(i=this.baseEventData.page)?i:(0,t.pageName)()}mapBaseEventPayload(){return{browser_id:this.clientId,channel:this.baseEventData.channel,client_key:"",currency:this.baseEventData.currency,language:this.language,page:this.page,pos:"",requested_at:new Date().toISOString()}}}])},63970,e=>{"use strict";e.s(["MAX_EXT_ATTRIBUTES",0,50,"UTM_PREFIX",0,"utm_"])},19502,e=>{"use strict";var t=e.i(18488),s=e.i(41325),n=e.i(63970),i=e.i(32719),r=function(e,t){var s={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(s[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(s[n[i]]=e[n[i]]);return s};let{ERROR_MESSAGES:a}=i.constants;class o extends s.BaseEvent{constructor(e){const s=e.eventData,{channel:i,currency:o,language:c,page:l,type:u,extensionData:d,searchData:g}=s,p=r(s,["channel","currency","language","page","type","extensionData","
1searchData"]);super({channel:i,currency:o,language:c,page:l},e.id),this.extensionData={},this.sendEvent=e.sendEvent,this.config=e.config,this.customEventPayload=Object.assign({type:u},p),d&&(this.extensionData=(0,t.flattenObject)({object:d}));const f=Object.entries(this.extensionData).length;if(f>n.MAX_EXT_ATTRIBUTES)throw Error(a.IV_006(n.MAX_EXT_ATTRIBUTES));f>0&&(this.customEventPayload.ext=this.extensionData),g&&(this.customEventPayload.sc_search={data:g,metadata:{ut_api_version:"1.0"}})}async send(){let e=this.mapBaseEventPayload(),t=Object.assign({},this.customEventPayload,e);return await this.sendEvent(t,this.config)}}e.s(["CustomEvent",0,o])},35993,e=>{"use strict";e.s(["form",()=>a]);var t=e.i(79338),s=e.i(82759),n=e.i(19502),i=e.i(54605),r=e.i(22667);async function a(e,a,o){let c=(0,i.getCoreContext)();await c.readyPromise,(0,r.getEventsPlugin)();let{options:l,adapter:u}=(0,t.getAnalyticsPlugin)(),d=u.getClientId()||"",g=new n.CustomEvent({eventData:{extensionData:{componentInstanceId:o,formId:e,interactionType:a.toUpperCase()},type:"FORM"},id:d,sendEvent:s.sendEvent,config:Object.assign(Object.assign({},c.config),l)});return g.page=void 0,g.send()}},18400,e=>{"use strict";e.s(["identity",()=>d],18400);var t=e.i(79338),s=e.i(82759),n=e.i(18488);function i(e){try{return new Date(e+"Z").toISOString().substring(0,16)===e}catch(e){return!1}}var r=e.i(41325),a=e.i(63970);let{ERROR_MESSAGES:o}=e.i(32719).constants;class c extends r.BaseEvent{constructor(e){const{channel:t,currency:s,language:i,page:r,extensionData:c}=e.identityData;if(super({channel:t,currency:s,language:i,page:r},e.id),this.extensionData={},this.numberOfExtensionDataProperties=0,this.validateAttributes(e.identityData),this.identityData=e.identityData,this.sendEvent=e.sendEvent,this.config=e.config,c&&(this.extensionData=(0,n.flattenObject)({object:c})),this.numberOfExtensionDataProperties=Object.entries(this.extensionData).length,this.numberOfExtensionDataProperties>a.MAX_EXT_ATTRIBUTES)throw Error(o.IV_006(a.MAX_EXT_ATTRIBUTES))}async send(){let e=this.mapBaseEventPayload(),t=Object.assign({},this.mapAttributes(),e);return await this.sendEvent(t,this.config)}validateAttributes(e){var t;if(0===e.identifiers.length)throw Error(o.MV_003);if(void 0!==e.dob&&!i(e.dob))throw Error(o.IV_003);if(e.identifiers.forEach(e=>{if(e.expiryDate&&!i(e.expiryDate))throw Error(o.IV_005)}),e.email&&!((t=e.email)&&!(t.length>320)&&/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(t)))throw Error(o.IV_004)}mapAttributes(){let e={city:this.identityData.city,country:this.identityData.country,dob:this.identityData.dob,email:this.identityData.email,firstname:this.identityData.firstName,gender:this.identityData.gender,identifiers:this.identityData.identifiers.map(e=>({expiry_date:e.expiryDate,id:e.id,provider:e.provider})),lastname:this.identityData.lastName,mobile:this.identityData.mobile,phone:this.identityData.phone,postal_code:this.identityData.postalCode,state:this.identityData.state,street:this.identityData.street,title:this.identityData.title,type:"IDENTITY"};return this.numberOfExtensionDataProperties>0&&(e.ext=this.extensionData),e}}var l=e.i(54605),u=e.i(22667);async function d(e){let n=(0,l.getCoreContext)();await n.readyPromise,(0,u.getEventsPlugin)();let{options:i,adapter:r}=(0,t.getAnalyticsPlugin)();return new c({id:r.getClientId()||"",identityData:e,sendEvent:s.sendEvent,config:Object.assign(Object.assign({},n.config),i)}).send()}},71538,e=>{"use strict";e.i(98756),e.i(19502),e.s([])},98756,e=>{"use strict";var t=e.i(63970),s=e.i(41325),n=e.i(18488);let{ERROR_MESSAGES:i}=e.i(32719).constants;class r extends s.BaseEvent{constructor(e){var s;const{channel:r,currency:a,language:o,page:c,extensionData:l}=Object.assign({},e.pageViewData);if(super({channel:r,currency:a,language:o,page:c},e.id),this.extensionData={},this.pageViewData=e.pageViewData,this.sendEvent=e.sendEvent,this.config=e.config,this.urlSearchParams=new URLSearchParams(decodeURI(e.searchParams)),l&&(this.extensionData=(0,n.flattenObject)({object:l})),Object.entries(this.extensionData).length>t.MAX_EXT_ATTRIBUTES)throw Error(i.IV_006(t.MAX_EXT_ATTRIBUTES));this.includeUTMParameters=null==(s=e.pageViewData&&e.pageViewData.includeUTMParameters)||s}async send(){let e=this.mapBaseEventPayload(),t=this.mapAttributes();return r.isFirstPageView=!1,await this.sendEvent(Object.assign(Object.assign({},e),t),this.config)}getPageVariantId(e,t){if(e)return e;let s=this.urlSearchParams.get("variantid");return s||t||null}getReferrer(){var e;if(null==(e=this.pageViewData)?void 0:e.referrer)return this.pageViewData.referrer;if("u"<typeof window||!r.isFirstPageView||!document.referrer)return null;let{hostname:t,href:s}=new URL(document.referrer);return window.location.hostname!==t?s:null}mapAttributes(){var e;let t={type:"VIEW"},s=this.pageViewData&&this.getPageVariantId(this.pageViewData.pageVariantId,this.extensionData.pageVariantId);if(null!==s&&(t.ext=Object.assign(Object.assign({},t.ext),{pageVariantId:s}
1)),Object.keys(this.extensionData).length>0&&(delete this.extensionData.pageVariantId,t.ext=Object.assign(Object.assign({},t.ext),this.extensionData)),this.includeUTMParameters){let e=this.getUTMParameters();t=Object.assign(Object.assign({},t),e)}let n=this.getReferrer();return null!==n&&(t=Object.assign(Object.assign({},t),{referrer:n})),(null==(e=this.pageViewData)?void 0:e.searchData)&&(t.sc_search={data:this.pageViewData.searchData,metadata:{ut_api_version:"1.0"}}),t}getUTMParameters(){let e={};return this.urlSearchParams.forEach((s,n)=>{let i=n.toLowerCase();0===i.indexOf(t.UTM_PREFIX)&&(e[i]=s)}),e}}r.isFirstPageView=!0,e.s(["PageViewEvent",0,r])},55162,e=>{"use strict";e.s(["pageView",()=>o]);var t=e.i(79338),s=e.i(82759),n=e.i(98756),i=e.i(54605),r=e.i(22667),a=e.i(25280);async function o(e){var o;let c=(0,i.getCoreContext)();await c.readyPromise,(0,r.getEventsPlugin)();let{options:l,adapter:u}=(0,t.getAnalyticsPlugin)();if(null==(o=u.isBot)?void 0:o.call(u))return a.debug.events("pageView skipped (visitor is a bot)"),null;let d=u.getClientId()||"",g=u.location.getSearchParams();return new n.PageViewEvent({id:d,pageViewData:e,searchParams:g,sendEvent:s.sendEvent,config:Object.assign(Object.assign({},c.config),l)}).send()}},82759,25280,e=>{"use strict";var t=e.i(86158),s=e.i(81170),n=e.i(75617),i=e.i(10026);let r={events:(0,i.debugModule)(`${i.debugNamespace}:events`)};async function a(e,i){let a=`${i.edgeUrl}/v1/events/${t.API_VERSION}/events?siteId=${i.siteName}`,o={body:JSON.stringify(e),headers:{"Content-Type":"application/json","X-Client-Software-ID":s.X_CLIENT_SOFTWARE_ID,"X-Library-Version":s.PACKAGE_VERSION,"x-sitecore-contextid":i.contextId},method:"POST"},c=new n.NativeDataFetcher({debugger:r.events});return await c.fetch(a,o).then(async e=>e.data).catch(()=>null)}e.s(["debug",0,r],25280),e.s(["sendEvent",0,a],82759)},9972,56469,e=>{"use strict";e.s(["event",()=>a],56469),e.s(["EVENTS_PLUGIN_NAME",0,"EventsPlugin"],9972);var t=e.i(79338),s=e.i(82759),n=e.i(19502),i=e.i(54605),r=e.i(22667);async function a(e){let a=(0,i.getCoreContext)();await a.readyPromise,(0,r.getEventsPlugin)();let{options:o,adapter:c}=(0,t.getAnalyticsPlugin)(),l=c.getClientId()||"";return new n.CustomEvent({eventData:e,id:l,sendEvent:s.sendEvent,config:Object.assign(Object.assign({},a.config),o)}).send()}},22667,32457,53935,e=>{"use strict";e.s(["eventsPlugin",()=>m,"getEventsPlugin",()=>y],22667),e.s(["clearEventQueue",()=>d],32457),e.s(["processEventQueue",()=>g],53935);var t=e.i(54605),s=e.i(32719),n=e.i(9972),i=e.i(81170),r=e.i(56469),a=e.i(35993),o=e.i(18400),c=e.i(55162),l=e.i(71491),u=e.i(43340);async function d(){await (0,t.getCoreContext)().readyPromise,y(),u.eventQueue.clearQueue()}async function g(){await (0,t.getCoreContext)().readyPromise,y(),u.eventQueue.sendAllEvents()}var p=e.i(26470);let{ERROR_MESSAGES:f}=s.constants;async function h(){"u">typeof window&&(window.scContentSDK=Object.assign(Object.assign({},window.scContentSDK),{events:{addToEventQueue:l.addToEventQueue,clearEventQueue:d,event:r.event,form:a.form,identity:o.identity,pageView:c.pageView,processEventQueue:g,version:i.PACKAGE_VERSION}}))}function m(){return{name:n.EVENTS_PLUGIN_NAME,init:h,dependencies:[p.ANALYTICS_PLUGIN_NAME]}}function y(){let e=(0,t.getCoreContext)().plugins.get(n.EVENTS_PLUGIN_NAME);if(!e)throw Error(f.IE_004(n.EVENTS_PLUGIN_NAME));return e}},9082,(e,t,s)=>{"use strict";t.exports=function e(t,s){if(t===s)return!0;if(t&&s&&"object"==typeof t&&"object"==typeof s){if(t.constructor!==s.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=s.length)return!1;for(i=n;0!=i--;)if(!e(t[i],s[i]))return!1;return!0}if(t instanceof Map&&s instanceof Map){if(t.size!==s.size)return!1;for(i of t.entries())if(!s.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],s.get(i[0])))return!1;return!0}if(t instanceof Set&&s instanceof Set){if(t.size!==s.size)return!1;for(i of t.entries())if(!s.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(s)){if((n=t.length)!=s.length)return!1;for(i=n;0!=i--;)if(t[i]!==s[i])return!1;return!0}if(t.constructor===RegExp)return t.source===s.source&&t.flags===s.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===s.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===s.toString();if((n=(r=Object.keys(t)).length)!==Object.keys(s).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(s,r[i]))return!1;for(i=n;0!=i--;){var n,i,r,a=r[i];if(("_owner"!==a||!t.$$typeof)&&!e(t[a],s[a]))return!1}return!0}return t!=t&&s!=s}},28562,e=>{"use strict";var t=e.i(91788),s=e.i(9082);let n=t.default.createContext({});t.default.createContext(new Map),t.default.createContext(void 0);let i=e=>{let{api:i,page:r,componentMap:a,loadImportMap:o,children:c}=e,[l,u]=(0,t.useState)(r),d=(0,t.useCallback)(e=>{u(e)},[]);(0,t.useEffect)(()=>{(0,s.default)(r,l)||d(r)},[r,l,d]);let g=(0,t.useMemo)(()=>({page:l,setPage:d,api:i,componentMap:a,loadImportMap:o}),[l,d,i,a,o]);return t.default.createElement(n.Provider,{value:g},c)};i.displayName="SitecoreProvider",e.s(["SitecoreProvider",0,i,"SitecoreProviderReactContext",0,n,"useSitecore",0,function(e){let s=(0,t.useContext)(n),i=null==e?void 0:e.updatable;return Object.assign(Object.assign({},s),{setPage:i?s.setPage:void 0})}])},34201,(e,t,s)=>{function n(e,t,s,n){return Math.round(e/s)+" "+n+(t>=1.5*s?"s":"")}t.exports=function(e,t){t=t||{};var s,i,r,a,o=typeof e;if("string"===o&&e.length>0){var c=e;if(!((c=String(c)).length>100)){var l=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(l){var u=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*u;case"weeks":case"week":case"w":return 6048e5*u;case"days":case"day":case"d":return 864e5*u;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*u;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*u;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:break}}}return}if("number"===o&&isFinite(e)){return t.long?(i=Math.abs(s=e))>=864e5?n(s,i,864e5,"day"):i>=36e5?n(s,i,36e5,"hour"):i>=6e4?n(s,i,6e4,"minute"):i>=1e3?n(s,i,1e3,"second"):s+" ms":(a=Math.abs(r=e))>=864e5?Math.round(r/864e5)+"d":a>=36e5?Math.round(r/36e5)+"h":a>=6e4?Math.round(r/6e4)+"m":a>=1e3?Math.round(r/1e3)+"s":r+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},80416,(e,t,s)=>{t.exports=function(t){function s(e){let t,i,r,a=null;function o(...e){if(!o.enabled)return;let n=Number(new Date);o.diff=n-(t||n),o.prev=t,o.curr=n,t=n,e[0]=s.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,n)=>{if("%%"===t)return"%";i++;let r=s.formatters[n];if("function"==typeof r){let s=e[i];t=r.call(o,s),e.splice(i,1),i--}return t}),s.formatArgs.call(o,e),(o.log||s.log).apply(o,e)}return o.namespace=e,o.useColors=s.useColors(),o.color=s.selectColor(e),o.extend=n,o.destroy=s.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==s.namespaces&&(i=s.namespaces,r=s.enabled(e)),r),set:e=>{a=e}}),"function"==typeof s.init&&s.init(o),o}function n(e,t){let n=s(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function i(e,t){let s=0,n=0,i=-1,r=0;for(;s<e.length;)if(n<t.length&&(t[n]===e[s]||"*"===t[n]))"*"===t[n]?(i=n,r=s):s++,n++;else{if(-1===i)return!1;n=i+1,s=++r}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return s.debug=s,s.default=s,s.coerce=function(e){return e instanceof Error?e.stack||e.message:e},s.disable=function(){let e=[...s.names,...s.skips.map(e=>"-"+e)].join(",");return s.enable(""),e},s.enable=function(e){for(let t of(s.save(e),s.namespaces=e,s.names=[],s.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(
1Boolean)))"-"===t[0]?s.skips.push(t.slice(1)):s.names.push(t)},s.enabled=function(e){for(let t of s.skips)if(i(e,t))return!1;for(let t of s.names)if(i(e,t))return!0;return!1},s.humanize=e.r(34201),s.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach(e=>{s[e]=t[e]}),s.names=[],s.skips=[],s.formatters={},s.selectColor=function(e){let t=0;for(let s=0;s<e.length;s++)t=(t<<5)-t+e.charCodeAt(s)|0;return s.colors[Math.abs(t)%s.colors.length]},s.enable(s.load()),s}},26455,(e,t,s)=>{let n;var i=e.i(50461);s.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let s="color: "+this.color;e.splice(1,0,s,"color: inherit");let n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),e.splice(i,0,s)},s.save=function(e){try{e?s.storage.setItem("debug",e):s.storage.removeItem("debug")}catch(e){}},s.load=function(){let e;try{e=s.storage.getItem("debug")||s.storage.getItem("DEBUG")}catch(e){}return!e&&void 0!==i.default&&"env"in i.default&&(e=i.default.env.DEBUG),e},s.useColors=function(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},s.storage=function(){try{return localStorage}catch(e){}}(),n=!1,s.destroy=()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},s.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],s.log=console.debug||console.log||(()=>{}),t.exports=e.r(80416)(s);let{formatters:r}=t.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.