"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[643],{6109:(e,t,r)=>{r.d(t,{tt:()=>E,Jg:()=>w,Gp:()=>_,GH:()=>S,r0:()=>k,Du:()=>D,Zf:()=>P,Cn:()=>C,G7:()=>y,vH:()=>p,N_:()=>T,zh:()=>Z,mK:()=>l.mK,Ql:()=>A,vY:()=>F,sq:()=>R,VZ:()=>H.VZ,JK:()=>l.JK,IS:()=>I,pH:()=>H.pH,kf:()=>K,O5:()=>L,Qr:()=>$,x6:()=>J,K5:()=>l.K5,S_:()=>m,dc:()=>H.dc,Eo:()=>l.Eo,jq:()=>l.jq,DK:()=>U.D,N9:()=>q,p9:()=>s.p,XH:()=>O,Zm:()=>c,sx:()=>o.sx,BI:()=>o.BI,CZ:()=>s.C,BG:()=>V});var n=r(17243),o=r(65054),s=r(50477),a=r(10523),i=r.n(a);function c(e){return i()(JSON.stringify(u(e)))}function u(e){const t={};return Object.keys(e).sort().forEach(r=>{let n=e[r];n&&"object"==typeof n&&!Array.isArray(n)&&(n=u(n)),t[r]=n}),t}var l=r(49746);function g(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function f(e){return`<p>${e.replace(/\n{2,}/g,"</p><p>")}</p>`}function d(e){return e.replace(/\n/gi,"<br>")}function m(e){const t=[g,f,d];let r=e;for(const e of t)r=e(r);return r}function p(e){return e=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]}function y(e){const t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t}var h=r(32091),b=r.n(h),N=r(82871);const v="Date param must construct to a valid date instance or be a valid date instance itself.",S="Invalid dateString parameter, it must be a string.",_='Invalid date range, it must be a string with the format "last-x-days".',k=60,w=60*k,E=24*w,D=7*E;function A(){function e(e){return(0,N.sprintf)(/* translators: %s: number of days */ /* translators: %s: number of days */
(0,N._n)("Last %s day","Last %s days",e,"google-site-kit"),e)}return{"last-7-days":{slug:"last-7-days",label:e(7),days:7},"last-14-days":{slug:"last-14-days",label:e(14),days:14},"last-28-days":{slug:"last-28-days",label:e(28),days:28},"last-90-days":{slug:"last-90-days",label:e(90),days:90}}}function $(e=""){if(!(0,n.isString)(e))return!1;if(3!==e.split("-").length)return!1;const t=new Date(e);return(0,n.isDate)(t)&&!isNaN(t)}function R(e){b()((0,n.isDate)(e)&&!isNaN(e),v);const t=`${e.getMonth()+1}`,r=`${e.getDate()}`;return[e.getFullYear(),t.length<2?`0${t}`:t,r.length<2?`0${r}`:r].join("-")}function O(e){b()($(e),S);const[t,r,n]=e.split("-");return new Date(t,r-1,n)}function I(e,t){return R(T(e,t*E))}function L(e){const t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}function T(e,t){b()($(e)||(0,n.isDate)(e)&&!isNaN(e),S);const r=$(e)?Date.parse(e):e.getTime();return new Date(r-1e3*t)}var M=r(78159),j=r(38017),x=r(62540);function F(e,t={}){if(Number.isNaN(Number(e)))return"";const{invertColor:r=!1}=t;return(0,M.Ay)((0,x.jsx)(j.A,{direction:e>0?"up":"down",invertColor:r}))}function C(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}var H=r(48276);function J(e){const t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function K(e){if("number"==typeof e)return!0;const t=(e||"").toString();return!!t&&!isNaN(t)}function q(e){return Array.isArray(e)?[...e].sort():e}var U=r(11193);function P(e,t){function r(e){return"0"===e||0===e}if(r(e)&&r(t))return 0;if(r(e)||Number.isNaN(e))return null;const n=(t-e)/e;return Number.isNaN(n)||!Number.isFinite(n)?null:n}function V(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}}function Z(e){if(!e)return"";const t=e.replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(t)).replace(/(\\)/g,"");return(0,n.unescape)(t)}},11193:(e,t,r)=>{r.d(t,{D:()=>s});var n=r(32091),o=r.n(n);function s(e,{dateRangeLength:t}){o()(Array.isArray(e),"report must be an array to partition."),o()(Number.isInteger(t)&&t>0,"dateRangeLength must be a positive integer.");const r=-1*t;return{currentRange:e.slice(r),compareRange:e.slice(2*r,r)}}},11999:(e,t,r)=>{r.d(t,{s:()=>n});const n="core/forms"},38017:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(62688),o=r.n(n),s=r(4452),a=r.n(s),i=r(62540);function ChangeArrow({direction:e,invertColor:t,width:r,height:n}){return(0,i.jsx)("svg",{className:a()("googlesitekit-change-arrow",`googlesitekit-change-arrow--${e}`,{"googlesitekit-change-arrow--inverted-color":t}),width:r,height:n,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"})})}ChangeArrow.propTypes={direction:o().string,invertColor:o().bool,width:o().number,height:o().number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9};const c=ChangeArrow},48276:(e,t,r)=>{r.d(t,{VZ:()=>s,dc:()=>a,pH:()=>o,r0:()=>i});var n=r(84024);function o(e){try{return new URL(e).pathname}catch{}return null}function s(e,t){try{return new URL(t,e).href}catch{}return("string"==typeof e?e:"")+("string"==typeof t?t:"")}function a(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function i(e,t){if(!(0,n.m)(e))return e;if(e.length<=t)return e;const r=new URL(e),o=e.replace(r.origin,"");if(o.length<t)return o;const s=o.length-Math.floor(t)+1;return"…"+o.substr(s)}},49746:(e,t,r)=>{r.d(t,{Eo:()=>g,JK:()=>p,K5:()=>m,jq:()=>d,mK:()=>l});var n=r(17243),o=r(50532),s=r.n(o),a=r(82871);function i(e,t={}){const{formatUnit:r,formatDecimal:n}=function(e,t={}){const{hours:r,minutes:n,seconds:o}=c(e);return{hours:r,minutes:n,seconds:o,formatUnit(){const{unitDisplay:s="short",...i}=t,c={unitDisplay:s,...i,style:"unit"};return 0===e?d(o,{...c,unit:"second"}):(0,a.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
(0,a._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?d(o,{...c,unit:"second"}):"",n?d(n,{...c,unit:"minute"}):"",r?d(r,{...c,unit:"hour"}):"").trim()},formatDecimal(){const t=(0,a.sprintf)(
// translators: %s: number of seconds with "s" as the abbreviated unit.
// translators: %s: number of seconds with "s" as the abbreviated unit.
(0,a.__)("%ds","google-site-kit"),o);if(0===e)return t;const s=(0,a.sprintf)(
// translators: %s: number of minutes with "m" as the abbreviated unit.
// translators: %s: number of minutes with "m" as the abbreviated unit.
(0,a.__)("%dm","google-site-kit"),n),i=(0,a.sprintf)(
// translators: %s: number of hours with "h" as the abbreviated unit.
// translators: %s: number of hours with "h" as the abbreviated unit.
(0,a.__)("%dh","google-site-kit"),r);return(0,a.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
(0,a._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?t:"",n?s:"",r?i:"").trim()}}}(e,t);try{return r()}catch{return n()}}function c(e){e=parseInt(e,10),Number.isNaN(e)&&(e=0);return{hours:Math.floor(e/60/60),minutes:Math.floor(e/60%60),seconds:Math.floor(e%60)}}function u(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e}function l(e){let t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:(0,n.isPlainObject)(e)&&(t={...e}),t}function g(e,t={}){e=(0,n.isFinite)(e)?e:Number(e),(0,n.isFinite)(e)||(console.warn("Invalid number",e,typeof e),e=0);const r=l(t),{style:o="metric"}=r;return"metric"===o?function(e){const t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?(0,a.sprintf)(
// translators: %s: an abbreviated number in millions.
// translators: %s: an abbreviated number in millions.
(0,a.__)("%sM","google-site-kit"),d(u(e),e%10==0?{}:t)):1e4<=e?(0,a.sprintf)(
// translators: %s: an abbreviated number in thousands.
// translators: %s: an abbreviated number in thousands.
(0,a.__)("%sK","google-site-kit"),d(u(e))):1e3<=e?(0,a.sprintf)(
// translators: %s: an abbreviated number in thousands.
// translators: %s: an abbreviated number in thousands.
(0,a.__)("%sK","google-site-kit"),d(u(e),e%10==0?{}:t)):d(e,{signDisplay:"never",maximumFractionDigits:1})}(e):"duration"===o?i(e,r):"durationISO"===o?function(e){let{hours:t,minutes:r,seconds:n}=c(e);return n=("0"+n).slice(-2),r=("0"+r).slice(-2),t=("0"+t).slice(-2),"00"===t?`${r}:${n}`:`${t}:${r}:${n}`}(e):d(e,r)}const f=s()(console.warn);function d(e,t={}){const{locale:r=p(),...n}=t;try{return new Intl.NumberFormat(r,n).format(e)}catch(t){f(`Site Kit numberFormat error: Intl.NumberFormat( ${JSON.stringify(r)}, ${JSON.stringify(n)} ).format( ${typeof e} )`,t.message)}const o={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],a={};for(const[e,t]of Object.entries(n))o[e]&&t===o[e]||s.includes(e)||(a[e]=t);try{return new Intl.NumberFormat(r,a).format(e)}catch{return new Intl.NumberFormat(r).format(e)}}function m(e,t={}){const{locale:r=p(),style:n="long",type:o="conjunction"}=t;if(Intl.ListFormat){return new Intl.ListFormat(r,{style:n,type:o}).format(e)}
/* translators: used between list items, there is a space after the comma. */const s=(0,a.__)(", ","google-site-kit");return e.join(s)}function p(e=r.g){const t=(0,n.get)(e,["_googlesitekitLegacyData","locale"]);if(t){const e=t.match(/^(\w{2})?(_)?(\w{2})/);if(e&&e[0])return e[0].replace(/_/g,"-")}return e.navigator.language}},49993:(e,t,r)=>{r.d(t,{Gq:()=>g,IL:()=>p,LD:()=>d,SO:()=>f,a2:()=>o,xD:()=>m});var n=r(6109);const o="googlesitekit_",s=`${o}1.170.0_${r.g._googlesitekitBaseData.storagePrefix}_`,a=["sessionStorage","localStorage"];let i,c=[...a];async function u(e){const t=r.g[e];if(!t)return!1;try{const e="__storage_test__";return t.setItem(e,e),t.removeItem(e),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==t.length}}async function l(){if(void 0!==i)return i;for(const e of c)i||await u(e)&&(i=r.g[e]);return void 0===i&&(i=null),i}async function g(e){const t=await l();if(t){const r=t.getItem(`${s}${e}`);if(r){const e=JSON.parse(r),{timestamp:t,ttl:n,value:o,isError:s}=e;if(t&&(!n||Math.round(Date.now()/1e3)-t<n))return{cacheHit:!0,value:o,isError:s}}}return{cacheHit:!1,value:void 0}}async function f(e,t,{ttl:o=n.Jg,timestamp:a=Math.round(Date.now()/1e3),isError:i=!1}={}){const c=await l();if(c)try{return c.setItem(`${s}${e}`,JSON.stringify({timestamp:a,ttl:o,value:t,isError:i})),!0}catch(e){return r.g.console.warn("Encountered an unexpected storage error:",e),!1}return!1}async function d(e){const t=await l();if(t)try{const r=e.startsWith(o)?e:`${s}${e}`;return t.removeItem(r),!0}catch(e){return r.g.console.warn("Encountered an unexpected storage error:",e),!1}return!1}async function m(){const e=await l();if(e)try{const t=[];for(let r=0;r<e.length;r++){const n=e.key(r);0===n.indexOf(o)&&t.push(n)}return t}catch(e){return r.g.console.warn("Encountered an unexpected storage error:",e),[]}return[]}async function p(){if(await l()){const e=await m();for(const t of e)await d(t);return!0}return!1}},50477:(e,t,r)=>{r.d(t,{C:()=>s,p:()=>o});var n=r(55465);function o(e,t={}){return{__html:n.O.sanitize(e,t)}}function s(e){const t="object"==typeof e?e.toString():e;return t?.replace?.(/\/+$/,"")}},50539:e=>{e.exports=googlesitekit.data},55465:(e,t,r)=>{r.d(t,{O:()=>o});var n=r(31234);const o=r.n(n)()(r.g)},65054:(e,t,r)=>{r.d(t,{M9:()=>w,sx:()=>_,BI:()=>k});var n=r(17243);const o="_googlesitekitDataLayer",s="data-googlesitekit-gtag";function a(e){return function(){e[o]=e[o]||[],e[o].push(arguments)}}var i=r(84895);const c={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};const{activeModules:u=[],isSiteKitScreen:l,trackingEnabled:g,trackingID:f,referenceSiteURL:d,userIDHash:m,isAuthenticated:p,userRoles:y}=r.g._googlesitekitTrackingData||{},h={activeModules:u,trackingEnabled:g,trackingID:f,referenceSiteURL:d,userIDHash:m,isSiteKitScreen:l,userRoles:y,isAuthenticated:p,pluginVersion:"1.170.0"},{enableTracking:b,disableTracking:N,isTrackingEnabled:v,initializeSnippet:S,trackEvent:_,trackEventOnce:k}=function(e,t=r.g,u=r.g){const l={...c,...e};l.referenceSiteURL&&(l.referenceSiteURL=l.referenceSiteURL.toString().replace(/\/+$/,""));const g=function(e,t){const n=a(t);let c;const{activeModules:u,referenceSiteURL:l,userIDHash:g,userRoles:f=[],isAuthenticated:d,pluginVersion:m}=e;return function(){const{document:t}=r.g;if(void 0===c&&(c=!!t.querySelector(`script[${s}]`)),c)return!1;c=!0;const a=f?.length?f.join(","):"";n("js",new Date),n("config",e.trackingID,{groups:"site_kit",send_page_view:e.isSiteKitScreen,domain:l,plugin_version:m||"",enabled_features:Array.from(i.t).join(","),active_modules:u.join(","),authenticated:d?"1":"0",user_properties:{user_roles:a,user_identifier:g}});const p=t.createElement("script");return p.setAttribute(s,""),p.async=!0,p.src=`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${o}`,t.head.appendChild(p),{scriptTagSrc:`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${o}`}}}(l,t),f=function(e,t,r,n){const o=a(t);return async function(t,s,a,i){const{trackingEnabled:c}=e;if(!c)return null;r();const u={send_to:"site_kit",event_category:t,event_label:a,value:i};return new Promise(e=>{const r=setTimeout(function(){n.console.warn(`Tracking event "${s}" (category "${t}") took too long to fire.`),e()},1e3);function a(){clearTimeout(r),e()}o("event",s,{...u,event_callback:a}),n._gaUserPrefs?.ioo?.()&&a()})}}(l,t,g,u),d={};return{enableTracking:function(){l.trackingEnabled=!0},disableTracking:function(){l.trackingEnabled=!1},initializeSnippet:g,isTrackingEnabled:function(){return!!l.trackingEnabled},trackEvent:f,trackEventOnce:function(...e){const t=JSON.stringify(e);d[t]||(d[t]=(0,n.once)(f)),d[t](...e)}}}(h);function w(e){e?b():N()}l&&g&&S()},68686:(e,t,r)=>{var n=r(50539),o=r.n(n),s=r(73866),a=r(78990),i=r(32091),c=r.n(i),u=r(17243);const l="SET_FORM_VALUES",g={initialState:{},actions:{setValues:(e,t)=>(c()(e&&"string"==typeof e,"a valid formName is required for setting values."),c()((0,u.isPlainObject)(t),"formData must be an object."),{payload:{formName:e,formData:t},type:l})},controls:{},reducer:(0,n.createReducer)((e,{type:t,payload:r})=>{if(t===l){const{formName:t,formData:n}=r;e[t]={...e[t],...n}}}),resolvers:{},selectors:{getValue:(e,t,r)=>(e[t]||{})[r],hasForm:(e,t)=>!!e[t]}};var f=r(11999);const d=(0,n.combineStores)(n.commonStore,g,(0,a.k)(f.s),(0,s.g4)(f.s));d.initialState,d.actions,d.controls,d.reducer,d.resolvers,d.selectors;o().registerStore(f.s,d)},73866:(e,t,r)=>{r.d(t,{g4:()=>p,o1:()=>m});var n=r(78913),o=r(32091),s=r.n(o),a=r(10523),i=r.n(a),c=r(6109),u=r(50539);const l="RECEIVE_ERROR",g="CLEAR_ERROR",f="CLEAR_ERRORS";function d(e,t){if(t&&Array.isArray(t)){const r=t.map(e=>"object"==typeof e?(0,c.Zm)(e):e);return`${e}::${i()(JSON.stringify(r))}`}return e}const m={receiveError:(e,t,r=[])=>(s()(e,"error is required."),s()(t,"baseName is required."),s()(r&&Array.isArray(r),"args must be an array."),{type:l,payload:{error:e,baseName:t,args:r}}),clearError:(e,t=[])=>(s()(e,"baseName is required."),s()(t&&Array.isArray(t),"args must be an array."),{type:g,payload:{baseName:e,args:t}}),clearErrors:e=>({type:f,payload:{baseName:e}})};function p(e){s()(e,"storeName must be defined.");const t=(0,u.createReducer)((e,{type:t,payload:r})=>{switch(t){case l:{const{baseName:t,args:n,error:o}=r,s=d(t,n);e.errors=e.errors||{},e.errorArgs=e.errorArgs||{},e.errors[s]=o,e.errorArgs[s]=n;break}case g:{const{baseName:t,args:n}=r,o=d(t,n);e.errors=e.errors||{},e.errorArgs=e.errorArgs||{},delete e.errors[o],delete e.errorArgs[o];break}case f:{const{baseName:t}=r;if(t){e.errors=e.errors||{},e.errorArgs=e.errorArgs||{};for(const r in e.errors)(r===t||r.startsWith(`${t}::`))&&(delete e.errors[r],delete e.errorArgs[r])}else e.errors={},e.errorArgs={};break}}}),r={getErrorForSelector:(e,t,n=[])=>(s()(t,"selectorName is required."),r.getError(e,t,n)),getErrorForAction:(e,t,n=[])=>(s()(t,"actionName is required."),r.getError(e,t,n)),getError(e,t,r){const{errors:n}=e;return s()(t,"baseName is required."),n[d(t,r)]},getErrors(e){const t=new Set(Object.values(e.errors));return Array.from(t)},getMetaDataForError(e,t){const r=Object.keys(e.errors).find(r=>e.errors[r]===t);if(r){return{baseName:r.substring(0,r.indexOf("::")),args:e.errorArgs[r]}}return null},getSelectorDataForError:(0,n.N)(t=>function(r,n){const o=t(e).getMetaDataForError(n);if(o){const{baseName:r,args:n}=o;if(!!t(e)[r])return{storeName:e,name:r,args:n}}return null}),hasErrors:e=>r.getErrors(e).length>0};return{initialState:{errors:{},errorArgs:{}},actions:m,controls:{},reducer:t,resolvers:{},selectors:r}}},78990:(e,t,r)=>{r.d(t,{P9:()=>h,k:()=>m,mR:()=>y});var n=r(32091),o=r.n(n),s=r(17243),a=r(50539),i=r.n(a),c=r(49993),u=r(6109);const l="CREATE_SNAPSHOT",g="DELETE_SNAPSHOT",f="RESTORE_SNAPSHOT",d="SET_STATE_FROM_SNAPSHOT";function m(e,{keysToSnapshot:t}={}){o()(e,"storeName is required to create a snapshot store.");const r={},n={*deleteSnapshot(){return yield{payload:{},type:g}},*restoreSnapshot(e={}){const{clearAfterRestore:t=!0}=e,{cacheHit:r,value:n}=yield{payload:{},type:f};return r&&(yield{payload:{snapshot:n},type:d},t&&(yield{payload:{},type:g})),r},*createSnapshot(){return yield{payload:{},type:l}}},i={[g]:()=>(0,c.LD)(`datastore::cache::${e}`),[l]:(0,a.createRegistryControl)(r=>()=>{const n=r.stores[e].store.getState(),o=t?.length>0?(0,s.pick)(n,t):n;return(0,c.SO)(`datastore::cache::${e}`,o)}),[f]:()=>(0,c.Gq)(`datastore::cache::${e}`,u.Jg)};return{initialState:r,actions:n,controls:i,reducer:function(e=r,{type:n,payload:o}){if(n===d){const{snapshot:r}=o,{error:n,...s}=r;return t?.length>0?{...e,...s}:s}return e}}}function p(e=i()){return Object.values(e.stores).filter(e=>Object.keys(e.getActions()).includes("restoreSnapshot"))}function y(e=i()){return Promise.all(p(e).map(e=>e.getActions().createSnapshot()))}function h(e=i()){return Promise.all(p(e).map(e=>e.getActions().restoreSnapshot()))}},82871:e=>{e.exports=googlesitekit.i18n},84895:(e,t,r)=>{r.d(t,{G:()=>o,t:()=>n});const n=new Set(r.g?._googlesitekitBaseData?.enabledFeatures||[]);function o(e,t=n){return t instanceof Set&&t.has(e)}}},e=>{e.O(0,[660],()=>{return t=68686,e(e.s=t);var t});e.O()}]);