"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[101],{51322(t,e,n){var r=n(50539),i=n(25084),o=n(75865);!function(t){const e=function(t){const e=new Map,n=(0,r.subscribe)(()=>{(0,r.select)("core/block-editor").getInserterItems().filter(({id:e})=>t.includes(e)).forEach(({id:t,title:n})=>e.set(t,n)),e.size===t.length&&n()});return function(t){return e.get(t)}}(t),n=new Set((0,r.select)("core/block-editor").getBlocks().map(t=>t.clientId));(0,r.subscribe)(()=>{(0,r.select)("core/block-editor").getBlocks().forEach(s=>{const{clientId:a,name:c}=s;t.includes(c)&&!n.has(a)&&(0,r.select)("core/block-editor").isBlockSelected(a)&&(0,o.sx)(`${i.k$}_rrm`,"insert_block",e(c)),n.add(a)})})}(["google-site-kit/rrm-subscribe-with-google","google-site-kit/rrm-contribute-with-google"])},72558(t,e,n){n.d(e,{A:()=>c});var r=n(4452),i=n.n(r),o=n(62688),s=n.n(o),a=n(62540);function ChangeArrow({direction:t,invertColor:e,width:n,height:r}){return(0,a.jsx)("svg",{className:i()("googlesitekit-change-arrow",`googlesitekit-change-arrow--${t}`,{"googlesitekit-change-arrow--inverted-color":e}),width:n,height:r,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.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:s().string,invertColor:s().bool,width:s().number,height:s().number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9};const c=ChangeArrow},67608(t,e,n){n.d(e,{G:()=>i,t:()=>r});const r=new Set(globalThis?._googlesitekitBaseData?.enabledFeatures||[]);function i(t,e=r){return e instanceof Set&&e.has(t)}},25084(t,e,n){n.d(e,{Ax:()=>o,CZ:()=>l,Ej:()=>D,Gw:()=>S,Is:()=>s,KK:()=>f,Nn:()=>$,OT:()=>v,SH:()=>w,Y$:()=>d,ZS:()=>a,bg:()=>h,en:()=>N,ep:()=>p,f7:()=>i,hi:()=>m,jU:()=>r,k$:()=>y,kz:()=>I,ly:()=>c,mo:()=>b,s3:()=>k,uR:()=>u,x2:()=>_,zx:()=>g});const r="mainDashboard",i="entityDashboard",o="mainDashboardViewOnly",s="entityDashboardViewOnly",a="userInput",c="activation",u="splash",l="adminBar",g="adminBarViewOnly",f="settings",d="adBlockingRecovery",m="wpDashboard",p="wpDashboardViewOnly",h="moduleSetup",b="metricSelection",y="wpBlockEditor",k="keyMetricsSetup",w="key-metrics",v="traffic",_="site-goals",N="content",D="speed",S="monetization",I=[r,i,o,s,a,u,f,h,b],$=[o,s,g,p]},54218(t,e,n){n.d(e,{Du:()=>f,GH:()=>a,Gp:()=>c,IS:()=>b,Jg:()=>l,N_:()=>k,O5:()=>y,Ql:()=>d,Qr:()=>m,XH:()=>h,r0:()=>u,sq:()=>p,tt:()=>g});var r=n(32091),i=n.n(r),o=n(17243),s=n(82871);const a="Invalid dateString parameter, it must be a string.",c='Invalid date range, it must be a string with the format "last-x-days".',u=60,l=60*u,g=24*l,f=7*g;function d(){function t(t){return(0,s.sprintf)(/* translators: %s: number of days */ /* translators: %s: number of days */
(0,s._n)("Last %s day","Last %s days",t,"google-site-kit"),t)}return{"last-7-days":{slug:"last-7-days",label:t(7),days:7},"last-14-days":{slug:"last-14-days",label:t(14),days:14},"last-28-days":{slug:"last-28-days",label:t(28),days:28},"last-90-days":{slug:"last-90-days",label:t(90),days:90}}}function m(t=""){if(!(0,o.isString)(t))return!1;if(3!==t.split("-").length)return!1;const e=new Date(t);return(0,o.isDate)(e)&&!isNaN(e)}function p(t){i()((0,o.isDate)(t)&&!isNaN(t),"Date param must construct to a valid date instance or be a valid date instance itself.");const e=`${t.getMonth()+1}`,n=`${t.getDate()}`;return[t.getFullYear(),e.length<2?`0${e}`:e,n.length<2?`0${n}`:n].join("-")}function h(t){i()(m(t),a);const[e,n,r]=t.split("-");return new Date(e,n-1,r)}function b(t,e){return p(k(t,e*g))}function y(t){const e=t.split("-");return 3===e.length&&"last"===e[0]&&!Number.isNaN(e[1])&&!Number.isNaN(parseFloat(e[1]))&&"days"===e[2]}function k(t,e){i()(m(t)||(0,o.isDate)(t)&&!isNaN(t),a);const n=m(t)?h(t).getTime():t.getTime();return new Date(n-1e3*e)}},26703(t,e,n){n.d(e,{Eo:()=>g,JK:()=>p,K5:()=>m,jq:()=>d,mK:()=>l});var r=n(17243),i=n(50532),o=n.n(i),s=n(82871);function a(t,e={}){const{formatUnit:n,formatDecimal:r}=function(t,e={}){const{hours:n,minutes:r,seconds:i}=c(t);return{hours:n,minutes:r,seconds:i,formatUnit(){const{unitDisplay:o="short",...a}=e,c={unitDisplay:o,...a,style:"unit"};return 0===t?d(i,{...c,unit:"second"}):(0,s.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
(0,s._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?d(i,{...c,unit:"second"}):"",r?d(r,{...c,unit:"minute"}):"",n?d(n,{...c,unit:"hour"}):"").trim()},formatDecimal(){const e=(0,s.sprintf)(
// translators: %s: number of seconds with "s" as the abbreviated unit.
// translators: %s: number of seconds with "s" as the abbreviated unit.
(0,s.__)("%ds","google-site-kit"),i);if(0===t)return e;const o=(0,s.sprintf)(
// translators: %s: number of minutes with "m" as the abbreviated unit.
// translators: %s: number of minutes with "m" as the abbreviated unit.
(0,s.__)("%dm","google-site-kit"),r),a=(0,s.sprintf)(
// translators: %s: number of hours with "h" as the abbreviated unit.
// translators: %s: number of hours with "h" as the abbreviated unit.
(0,s.__)("%dh","google-site-kit"),n);return(0,s.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
(0,s._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?e:"",r?o:"",n?a:"").trim()}}}(t,e);try{return n()}catch{return r()}}function c(t){t=parseInt(t,10),Number.isNaN(t)&&(t=0);return{hours:Math.floor(t/60/60),minutes:Math.floor(t/60%60),seconds:Math.floor(t%60)}}function u(t){return 1e6<=t?Math.round(t/1e5)/10:1e4<=t?Math.round(t/1e3):1e3<=t?Math.round(t/100)/10:t}function l(t){let e={};return"%"===t?e={style:"percent",maximumFractionDigits:2}:"s"===t?e={style:"duration",unitDisplay:"narrow"}:t&&"string"==typeof t?e={style:"currency",currency:t}:(0,r.isPlainObject)(t)&&(e={...t}),e}function g(t,e={}){t=(0,r.isFinite)(t)?t:Number(t),(0,r.isFinite)(t)||(console.warn("Invalid number",t,typeof t),t=0);const n=l(e),{style:i="metric"}=n;return"metric"===i?function(t){const e={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=t?(0,s.sprintf)(
// translators: %s: an abbreviated number in millions.
// translators: %s: an abbreviated number in millions.
(0,s.__)("%sM","google-site-kit"),d(u(t),t%10==0?{}:e)):1e4<=t?(0,s.sprintf)(
// translators: %s: an abbreviated number in thousands.
// translators: %s: an abbreviated number in thousands.
(0,s.__)("%sK","google-site-kit"),d(u(t))):1e3<=t?(0,s.sprintf)(
// translators: %s: an abbreviated number in thousands.
// translators: %s: an abbreviated number in thousands.
(0,s.__)("%sK","google-site-kit"),d(u(t),t%10==0?{}:e)):d(t,{signDisplay:"never",maximumFractionDigits:1})}(t):"duration"===i?a(t,n):"durationISO"===i?function(t){let{hours:e,minutes:n,seconds:r}=c(t);return r=("0"+r).slice(-2),n=("0"+n).slice(-2),e=("0"+e).slice(-2),"00"===e?`${n}:${r}`:`${e}:${n}:${r}`}(t):d(t,n)}const f=o()(console.warn);function d(t,e={}){const{locale:n=p(),...r}=e;try{return new Intl.NumberFormat(n,r).format(t)}catch(e){f(`Site Kit numberFormat error: Intl.NumberFormat( ${JSON.stringify(n)}, ${JSON.stringify(r)} ).format( ${typeof t} )`,e.message)}const i={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},o=["signDisplay","compactDisplay"],s={};for(const[t,e]of Object.entries(r))i[t]&&e===i[t]||o.includes(t)||(s[t]=e);try{return new Intl.NumberFormat(n,s).format(t)}catch{return new Intl.NumberFormat(n).format(t)}}function m(t,e={}){const{locale:n=p(),style:r="long",type:i="conjunction"}=e;if(Intl.ListFormat){return new Intl.ListFormat(n,{style:r,type:i}).format(t)}
/* translators: used between list items, there is a space after the comma. */const o=(0,s.__)(", ","google-site-kit");return t.join(o)}function p(t=globalThis){const e=(0,r.get)(t,["_googlesitekitLegacyData","locale"]);if(e){const t=e.match(/^(\w{2})?(_)?(\w{2})/);if(t&&t[0])return t[0].replace(/_/g,"-")}return t.navigator.language}},75865(t,e,n){n.d(e,{tt:()=>m.tt,Jg:()=>m.Jg,Gp:()=>m.Gp,GH:()=>m.GH,r0:()=>m.r0,Du:()=>m.Du,Zf:()=>S,Cn:()=>k,G7:()=>d,vH:()=>f,N_:()=>m.N_,zh:()=>$,mK:()=>a.mK,Ql:()=>m.Ql,vY:()=>y,sq:()=>m.sq,VZ:()=>w.VZ,JK:()=>a.JK,IS:()=>m.IS,pH:()=>w.pH,kf:()=>_,O5:()=>m.O5,Qr:()=>m.Qr,x6:()=>v,K5:()=>a.K5,S_:()=>g,dc:()=>w.dc,Eo:()=>a.Eo,jq:()=>a.jq,DK:()=>D.D,N9:()=>N,p9:()=>o.p,XH:()=>m.XH,Zm:()=>s.Z,sx:()=>i.sx,BI:()=>i.BI,CZ:()=>o.C,BG:()=>I});var r=n(17243),i=n(39494),o=n(12968),s=n(65294),a=n(26703);function c(t){return t.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function u(t){return`<p>${t.replace(/\n{2,}/g,"</p><p>")}</p>`}function l(t){return t.replace(/\n/gi,"<br>")}function g(t){const e=[c,u,l];let n=t;for(const t of e)n=t(n);return n}function f(t){return t=parseFloat(t),isNaN(t)||0===t?[0,0,0,0]:[Math.floor(t/60/60),Math.floor(t/60%60),Math.floor(t%60),Math.floor(1e3*t)-1e3*Math.floor(t)]}function d(t){const e=t&&!Number.isInteger(t)?new Date(t).getTime():t;return isNaN(e)||!e?0:e}var m=n(54218),p=n(30908),h=n(72558),b=n(62540);function y(t,e={}){if(Number.isNaN(Number(t)))return"";const{invertColor:n=!1}=e;return(0,p.Ay)((0,b.jsx)(h.A,{direction:t>0?"up":"down",invertColor:n}))}function k(t,e){return t>0&&e>0?t/e-1:t>0?1:e>0?-1:0}var w=n(28085);function v(t){const e=parseFloat(t)||0;return!!Number.isInteger(e)&&e>0}function _(t){if("number"==typeof t)return!0;const e=(t||"").toString();return!!e&&!isNaN(e)}function N(t){return Array.isArray(t)?[...t].sort():t}var D=n(86416);function S(t,e){function n(t){return"0"===t||0===t}if(n(t)&&n(e))return 0;if(n(t)||Number.isNaN(t))return null;const r=(e-t)/t;return Number.isNaN(r)||!Number.isFinite(r)?null:r}function I(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}}function $(t){if(!t)return"";const e=t.replace(/&#(\d+);/g,(t,e)=>String.fromCharCode(e)).replace(/(\\)/g,"");return(0,r.unescape)(e)}},86416(t,e,n){n.d(e,{D:()=>o});var r=n(32091),i=n.n(r);function o(t,{dateRangeLength:e}){i()(Array.isArray(t),"report must be an array to partition."),i()(Number.isInteger(e)&&e>0,"dateRangeLength must be a positive integer.");const n=-1*e;return{currentRange:t.slice(n),compareRange:t.slice(2*n,n)}}},81480(t,e,n){n.d(e,{O:()=>i});var r=n(31234);const i=n.n(r)()(globalThis)},12968(t,e,n){n.d(e,{C:()=>o,p:()=>i});var r=n(81480);function i(t,e={}){return{__html:r.O.sanitize(t,e)}}function o(t){const e="object"==typeof t?t.toString():t;return e?.replace?.(/\/+$/,"")}},65294(t,e,n){n.d(e,{Z:()=>o});var r=n(10523),i=n.n(r);function o(t){return i()(JSON.stringify(s(t)))}function s(t){const e={};return Object.keys(t).sort().forEach(n=>{let r=t[n];r&&"object"==typeof r&&!Array.isArray(r)&&(r=s(r)),e[n]=r}),e}},39494(t,e,n){n.d(e,{M9:()=>D,sx:()=>_,BI:()=>N});var r=n(17243),i=n(67608);const o="_googlesitekitDataLayer",s="data-googlesitekit-gtag";function a(t){return function(){t[o]=t[o]||[],t[o].push(arguments)}}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:h}=globalThis._googlesitekitTrackingData||{},b={activeModules:u,trackingEnabled:g,trackingID:f,referenceSiteURL:d,userIDHash:m,isSiteKitScreen:l,userRoles:h,isAuthenticated:p,pluginVersion:"1.185.0"},{enableTracking:y,disableTracking:k,isTrackingEnabled:w,initializeSnippet:v,trackEvent:_,trackEventOnce:N}=function(t,e=globalThis,n=globalThis){const u={...c,...t};u.referenceSiteURL&&(u.referenceSiteURL=u.referenceSiteURL.toString().replace(/\/+$/,""));const l=function(t,e){const n=a(e);let r;const{activeModules:c,referenceSiteURL:u,userIDHash:l,userRoles:g=[],isAuthenticated:f,pluginVersion:d}=t;return function(){const{document:e}=globalThis;if(void 0===r&&(r=!!e.querySelector(`script[${s}]`)),r)return!1;r=!0;const a=g?.length?g.join(","):"";n("js",new Date),n("config",t.trackingID,{groups:"site_kit",send_page_view:t.isSiteKitScreen,domain:u,plugin_version:d||"",enabled_features:Array.from(i.t).join(","),active_modules:c.join(","),authenticated:f?"1":"0",user_properties:{user_roles:a,user_identifier:l}});const m=e.createElement("script");return m.setAttribute(s,""),m.async=!0,m.src=`https://www.googletagmanager.com/gtag/js?id=${t.trackingID}&l=${o}`,e.head.appendChild(m),{scriptTagSrc:`https://www.googletagmanager.com/gtag/js?id=${t.trackingID}&l=${o}`}}}(u,e),g=function(t,e,n,r){const i=a(e);return async function(e,o,s,a){const{trackingEnabled:c}=t;if(!c)return null;n();const u={send_to:"site_kit",event_category:e,event_label:s,value:a};return new Promise(t=>{const n=setTimeout(function(){r.console.warn(`Tracking event "${o}" (category "${e}") took too long to fire.`),t()},1e3);function s(){clearTimeout(n),t()}i("event",o,{...u,event_callback:s}),r._gaUserPrefs?.ioo?.()&&s()})}}(u,e,l,n),f={};return{enableTracking:function(){u.trackingEnabled=!0},disableTracking:function(){u.trackingEnabled=!1},initializeSnippet:l,isTrackingEnabled:function(){return!!u.trackingEnabled},trackEvent:g,trackEventOnce:function(...t){const e=JSON.stringify(t);f[e]||(f[e]=(0,r.once)(g)),f[e](...t)}}}(b);function D(t){t?y():k()}l&&g&&v()},28085(t,e,n){n.d(e,{VZ:()=>o,dc:()=>s,pH:()=>i,r0:()=>a});var r=n(84024);function i(t){try{return new URL(t).pathname}catch{}return null}function o(t,e){try{return new URL(e,t).href}catch{}return("string"==typeof t?t:"")+("string"==typeof e?e:"")}function s(t){return"string"!=typeof t?t:t.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function a(t,e){if(!(0,r.m)(t))return t;if(t.length<=e)return t;const n=new URL(t),i=t.replace(n.origin,"");if(i.length<e)return i;const o=i.length-Math.floor(e)+1;return"…"+i.substr(o)}},50539(t){t.exports=googlesitekit.data},82871(t){t.exports=googlesitekit.i18n}},t=>{t.O(0,[660],()=>{return e=51322,t(t.s=e);var e});t.O()}]);